@univerjs-pro/bases-dashboard-ui 1.4.0 → 1.5.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 (103) hide show
  1. package/README.md +13 -9
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/cs-CZ.js +1 -1
  6. package/lib/cjs/locale/de-DE.js +1 -1
  7. package/lib/cjs/locale/en-US.js +1 -1
  8. package/lib/cjs/locale/es-ES.js +1 -1
  9. package/lib/cjs/locale/fa-IR.js +1 -1
  10. package/lib/cjs/locale/fr-FR.js +1 -1
  11. package/lib/cjs/locale/id-ID.js +1 -1
  12. package/lib/cjs/locale/it-IT.js +1 -1
  13. package/lib/cjs/locale/ja-JP.js +1 -1
  14. package/lib/cjs/locale/ko-KR.js +1 -1
  15. package/lib/cjs/locale/nl-NL.js +1 -1
  16. package/lib/cjs/locale/pl-PL.js +1 -1
  17. package/lib/cjs/locale/pt-BR.js +1 -1
  18. package/lib/cjs/locale/ru-RU.js +1 -1
  19. package/lib/cjs/locale/sk-SK.js +1 -1
  20. package/lib/cjs/locale/th-TH.js +1 -1
  21. package/lib/cjs/locale/tr-TR.js +1 -1
  22. package/lib/cjs/locale/uk-UA.js +1 -1
  23. package/lib/cjs/locale/vi-VN.js +1 -1
  24. package/lib/cjs/locale/zh-CN.js +1 -1
  25. package/lib/cjs/locale/zh-HK.js +1 -1
  26. package/lib/cjs/locale/zh-TW.js +1 -1
  27. package/lib/es/index.js +1 -1
  28. package/lib/es/locale/ar-SA.js +1 -1
  29. package/lib/es/locale/ca-ES.js +1 -1
  30. package/lib/es/locale/cs-CZ.js +1 -1
  31. package/lib/es/locale/de-DE.js +1 -1
  32. package/lib/es/locale/en-US.js +1 -1
  33. package/lib/es/locale/es-ES.js +1 -1
  34. package/lib/es/locale/fa-IR.js +1 -1
  35. package/lib/es/locale/fr-FR.js +1 -1
  36. package/lib/es/locale/id-ID.js +1 -1
  37. package/lib/es/locale/it-IT.js +1 -1
  38. package/lib/es/locale/ja-JP.js +1 -1
  39. package/lib/es/locale/ko-KR.js +1 -1
  40. package/lib/es/locale/nl-NL.js +1 -1
  41. package/lib/es/locale/pl-PL.js +1 -1
  42. package/lib/es/locale/pt-BR.js +1 -1
  43. package/lib/es/locale/ru-RU.js +1 -1
  44. package/lib/es/locale/sk-SK.js +1 -1
  45. package/lib/es/locale/th-TH.js +1 -1
  46. package/lib/es/locale/tr-TR.js +1 -1
  47. package/lib/es/locale/uk-UA.js +1 -1
  48. package/lib/es/locale/vi-VN.js +1 -1
  49. package/lib/es/locale/zh-CN.js +1 -1
  50. package/lib/es/locale/zh-HK.js +1 -1
  51. package/lib/es/locale/zh-TW.js +1 -1
  52. package/lib/index.js +1 -1
  53. package/lib/locale/ar-SA.js +1 -1
  54. package/lib/locale/ca-ES.js +1 -1
  55. package/lib/locale/cs-CZ.js +1 -1
  56. package/lib/locale/de-DE.js +1 -1
  57. package/lib/locale/en-US.js +1 -1
  58. package/lib/locale/es-ES.js +1 -1
  59. package/lib/locale/fa-IR.js +1 -1
  60. package/lib/locale/fr-FR.js +1 -1
  61. package/lib/locale/id-ID.js +1 -1
  62. package/lib/locale/it-IT.js +1 -1
  63. package/lib/locale/ja-JP.js +1 -1
  64. package/lib/locale/ko-KR.js +1 -1
  65. package/lib/locale/nl-NL.js +1 -1
  66. package/lib/locale/pl-PL.js +1 -1
  67. package/lib/locale/pt-BR.js +1 -1
  68. package/lib/locale/ru-RU.js +1 -1
  69. package/lib/locale/sk-SK.js +1 -1
  70. package/lib/locale/th-TH.js +1 -1
  71. package/lib/locale/tr-TR.js +1 -1
  72. package/lib/locale/uk-UA.js +1 -1
  73. package/lib/locale/vi-VN.js +1 -1
  74. package/lib/locale/zh-CN.js +1 -1
  75. package/lib/locale/zh-HK.js +1 -1
  76. package/lib/locale/zh-TW.js +1 -1
  77. package/lib/types/locale/en-US.d.ts +2 -0
  78. package/lib/umd/index.js +1 -1
  79. package/lib/umd/locale/ar-SA.js +1 -1
  80. package/lib/umd/locale/ca-ES.js +1 -1
  81. package/lib/umd/locale/cs-CZ.js +1 -1
  82. package/lib/umd/locale/de-DE.js +1 -1
  83. package/lib/umd/locale/en-US.js +1 -1
  84. package/lib/umd/locale/es-ES.js +1 -1
  85. package/lib/umd/locale/fa-IR.js +1 -1
  86. package/lib/umd/locale/fr-FR.js +1 -1
  87. package/lib/umd/locale/id-ID.js +1 -1
  88. package/lib/umd/locale/it-IT.js +1 -1
  89. package/lib/umd/locale/ja-JP.js +1 -1
  90. package/lib/umd/locale/ko-KR.js +1 -1
  91. package/lib/umd/locale/nl-NL.js +1 -1
  92. package/lib/umd/locale/pl-PL.js +1 -1
  93. package/lib/umd/locale/pt-BR.js +1 -1
  94. package/lib/umd/locale/ru-RU.js +1 -1
  95. package/lib/umd/locale/sk-SK.js +1 -1
  96. package/lib/umd/locale/th-TH.js +1 -1
  97. package/lib/umd/locale/tr-TR.js +1 -1
  98. package/lib/umd/locale/uk-UA.js +1 -1
  99. package/lib/umd/locale/vi-VN.js +1 -1
  100. package/lib/umd/locale/zh-CN.js +1 -1
  101. package/lib/umd/locale/zh-HK.js +1 -1
  102. package/lib/umd/locale/zh-TW.js +1 -1
  103. package/package.json +19 -19
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5d48da=_0x187c;(function(_0x24cc04,_0x21c685){const _0x20ab5a=_0x187c,_0xc2fabe=_0x24cc04();while(!![]){try{const _0x16c100=parseInt(_0x20ab5a(0xcb))/0x1+parseInt(_0x20ab5a(0x12e))/0x2*(parseInt(_0x20ab5a(0x26c))/0x3)+parseInt(_0x20ab5a(0x3d0))/0x4*(parseInt(_0x20ab5a(0x1d8))/0x5)+-parseInt(_0x20ab5a(0xd6))/0x6*(parseInt(_0x20ab5a(0x242))/0x7)+parseInt(_0x20ab5a(0x182))/0x8+parseInt(_0x20ab5a(0x197))/0x9+-parseInt(_0x20ab5a(0x30c))/0xa;if(_0x16c100===_0x21c685)break;else _0xc2fabe['push'](_0xc2fabe['shift']());}catch(_0x4c4a15){_0xc2fabe['push'](_0xc2fabe['shift']());}}}(_0x1f68,0xdbcfe));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x560757,BASES_DASHBOARD_GRID_COLUMNS as _0x3587a5,BaseChartRuntimeService as _0x2cf236,BaseDashboardResourceService as _0x3a16be,BaseDashboardWidgetType as _0x4dd1ab,CreateBaseDashboardCommand as _0x4764c4,DeleteBaseDashboardCommand as _0x391460,RemoveBaseDashboardWidgetCommand as _0x105c7d,UniverBaseDashboardPlugin as _0x7e7509,UpdateBaseDashboardCommand as _0x1e3e1b,UpdateBasePivotViewCommand as _0x173771,UpsertBaseDashboardWidgetCommand as _0x1041db,canEditBaseDashboard as _0x5706cb,canEditBasePivotView as _0x86a5a0,createBasePivotTable as _0x2a70ba,resolveBasePivotChartRowDirection as _0x1aba1a}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x166344,BaseMobileDrawer as _0x19aa31,BaseMobileFilterOperand as _0x2e05d2,BaseMobileFilterPanel as _0x52caf8,BaseUnitCollaborationStatus as _0x450293,FormulaEditorPanel as _0x6c795b,IBaseDashboardUIExtensionRegistryService as _0x5b5009,IBaseViewUIRegistryService as _0x414da1,MobileFormulaEditorPanel as _0x4524e4,UniverBasesMobileUIPlugin as _0x36ac31,UniverBasesUIPlugin as _0x408ea8,formulaToEditorFormula as _0x196177,normalizeEditorFormulaForConfig as _0x43ca80,toFormulaMenuTables as _0x372e38,toMenuFields as _0x28d476}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x8d6a08,ChartAxisSection as _0x51c0bf,ChartColorField as _0x209a9d,ChartCommonDataMappingSection as _0x70f2bb,ChartEditBlockTitle as _0x30e809,ChartEditPanel as _0x59879a,ChartEditPanelSection as _0x4baf7f,ChartEditPanelTab as _0x389329,ChartEditPanelTabs as _0x46e44d,ChartEditorCapability as _0xc8129,ChartEditorProvider as _0x4f5736,ChartFunnelStyleSection as _0x5591da,ChartGradientFillField as _0x1ca39a,ChartGridlinesAndTicksSection as _0x58fc11,ChartHeatmapStyleSection as _0x1aca4d,ChartHostAdapter as _0x367b2a,ChartIndicatorLineSection as _0x54d111,ChartLegendSection as _0x2205cf,ChartLineAndAreaSection as _0x2a4c4d,ChartNumberFormatAtom as _0x3f2847,ChartParetoSeriesSection as _0x117afe,ChartPieStyleSection as _0x32a1e9,ChartRadarStyleSection as _0x1423a1,ChartRelationStyleSection as _0x4117cf,ChartSectionAccordion as _0x151ab2,ChartSectionAccordionContent as _0x37b567,ChartSectionAccordionItem as _0x53ec64,ChartSectionAccordionTrigger as _0x51656d,ChartSeriesSection as _0x4f3338,ChartStackField as _0x1ed3a5,ChartStyleSection as _0xc54821,ChartThemeField as _0x3aee5e,ChartThreeDSection as _0x31fb16,ChartTitlesSection as _0x517322,ChartTrendlineSection as _0x311435,ChartTypeField as _0x3352ce,ChartTypeSpecificDataSection as _0x468257,ChartTypeSpecificSetupSection as _0x53d74e,ChartTypeSpecificStyleSection as _0x3f116c,ChartUIService as _0x4186b4,ChartViewStateRegistry as _0x3de432,ChartWaterfallSetupFields as _0x153e3c,ChartWaterfallStyleSection as _0x122082,ChartWordCloudStyleSection as _0x51f587,DEFAULT_CHART_AXIS_VALUES as _0x2b6728,DEFAULT_CHART_FUNNEL_VALUES as _0x5683c7,DEFAULT_CHART_HEATMAP_VALUES as _0x165da0,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x2adc54,DEFAULT_CHART_LEGEND_VALUES as _0x1267c7,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x514143,DEFAULT_CHART_PARETO_VALUES as _0x1e2ae9,DEFAULT_CHART_PIE_VALUES as _0x2e45c9,DEFAULT_CHART_RADAR_VALUES as _0x32285a,DEFAULT_CHART_RELATION_VALUES as _0x270a4f,DEFAULT_CHART_SERIES_VALUES as _0x338c3f,DEFAULT_CHART_STYLE_VALUES as _0x2d6dc1,DEFAULT_CHART_TITLE_VALUES as _0x5a35d2,DEFAULT_CHART_TRENDLINE_VALUES as _0x59bb04,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x3d8d6d,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x5630e0,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x5624b3,MobileChartEditorControls as _0x103427,MobileChartEditorProvider as _0x323b1b,UniverChartMobileUIPlugin as _0x38b402,UniverChartUIPlugin as _0x41f191,buildChartTypeSelectOptions as _0x2f5cf3,chartTypeSupportsCapability as _0x2ecac2,chartTypeSupportsLineAndAreaStyle as _0x1dac15,useChartEditorChartType as _0x10d8e4,useChartEditorHasRightAxis as _0xef83d1}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x5d1ed0}from'@univerjs-pro/license';import{ShapeFormulaService as _0x4aaa31,UniverShapeEditorPlugin as _0xff803e,createFormulaShapeData as _0x154b06}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0x3bfbe2,BaseFilterConjunction as _0x26ccb5,BaseFilterOperator as _0x462609,BaseViewType as _0xc74f11,DependentOn as _0xb94e7b,Disposable as _0x419e57,ICommandService as _0x1e6f93,IConfigService as _0x8e960e,IImageIoService as _0x2667ef,ILogService as _0x53f9ce,IPermissionService as _0x100697,IUndoRedoService as _0x12718a,IUniverInstanceService as _0x4829da,ImageSourceType as _0x3892df,Inject as _0x2d5804,Injector as _0x3c350b,LocaleService as _0x1ecd96,ObjectPermissionService as _0x5df1d5,Plugin as _0x1ea012,RedoCommand as _0x5eb015,ThemeService as _0x56b689,UndoCommand as _0x1c6299,UniverInstanceType as _0x247fc0,createParagraphId as _0x1be82d,dateKit as _0x3276ff,debounce as _0x18fc5e,generateRandomId as _0x2cedf9,merge as _0x362ea8,numfmt as _0x52ec2b,touchDependencies as _0xe4152}from'@univerjs/core';import{UniverDocsUIPlugin as _0x175601}from'@univerjs/docs-ui';import{ArrowDownIcon as _0xfb8e72,ArrowUpIcon as _0x343cd3,AscendingIcon as _0x558ec6,CalendarIcon as _0x143320,ChartIcon as _0x5f4d2a,CloseIcon as _0x1ab83b,DeleteIcon as _0x275aa7,DescendingIcon as _0x3c94ed,ExpandIcon as _0x6d0af7,FilterIcon as _0x266672,GripVerticalIcon as _0x1e67fc,IncreaseIcon as _0x4f1759,MoreDownIcon as _0x3693ad,MoreHorizontalIcon as _0x4093a6,NumberIcon as _0xfa6b5,PenIcon as _0x1d4ca0,PivotTableIcon as _0x55ff4b,ProtectIcon as _0x44f2df,RedoIcon as _0x245c5e,SearchIcon as _0xa664ad,TextIcon as _0x45f36b,UndoIcon as _0x4e88b7}from'@univerjs/icons';import{combineLatest as _0x4b0df4,map as _0x51821f,merge as _0x5f1bfe,skip as _0xf92f5f}from'rxjs';import{SetBasePermissionCommand as _0x5205b3,getBaseDashboardPermissionObjectId as _0x4b369a}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x5b5322}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x3069d9,ShapeLineTypeEnum as _0xaf4f42,ShapeTypeEnum as _0x5d0718}from'@univerjs-pro/engine-shape';import{Button as _0x101ca4,Checkbox as _0x57ed34,DatePicker as _0x485a77,Dialog as _0x4ce712,DropdownMenu as _0x56bbe5,Input as _0x5d579d,InputNumber as _0x57c888,MobileDialog as _0x5aeff1,MobileDropdownMenu as _0x4b4d66,MobileSelect as _0x71f9e8,MultipleSelect as _0x5ca0fb,Segmented as _0x18f25a,Select as _0x701e3d,Textarea as _0x80dadb,Tooltip as _0x2f0618,borderClassName as _0x3b0e1f,clsx as _0x37e66c,scrollbarClassName as _0xb0e9d1}from'@univerjs/design';import{UnitObject as _0x346fe7}from'@univerjs/protocol';import{ILayoutService as _0x23d8e9,ObjectPermissionButton as _0x4faeac,openObjectPermissionDialog as _0x523b72,useDependency as _0x40463f,useObservable as _0x5056f6}from'@univerjs/ui';import{useCallback as _0x26d744,useEffect as _0x185176,useMemo as _0x5c672b,useRef as _0x25fc59,useState as _0x4ebd7a}from'react';import{Fragment as _0x5554ea,jsx as _0x5628d9,jsxs as _0x2fa798}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x2ab57e,ChartRenderMode as _0x2d3214,ChartThemeService as _0x259141,ChartTypeBits as _0x1cf6fa,ChartWaterfallStyleTarget as _0x148de0,IChartRenderModelManagerService as _0x1b1321,RTLChartStyle as _0xa4c4f5,chartBitsUtils as _0x242779,chartTypeCanUseTrendLine as _0x3f9965,resolveChartRuntimeStyle as _0x197630,resolveDefaultChartHostFrameStyle as _0x4b1e9d,toChartModelUpdate as _0x5adbe1}from'@univerjs-pro/engine-chart';import{createPortal as _0x1c0161}from'react-dom';import{PivotCellStyleTypeEnum as _0x1dbe62,PivotDataFieldDataTypeEnum as _0xd2fae4,PivotDataFieldSortOperatorEnum as _0x1b5f3a,PivotFilterTypeEnum as _0x829bf6,PivotLayoutTypeEnum as _0xd936c5,PivotSubtotalPositionEnum as _0x551070,PivotSubtotalTypeEnum as _0x3bfa9b,PivotTableFiledAreaEnum as _0x87fd74,PivotTableValuePositionEnum as _0x3fa86b,isErrorValue as _0x3e551d,isPrefixValue as _0x2b18e7}from'@univerjs-pro/engine-pivot';var mr=_0x5d48da(0x3a6),hr=_0x5d48da(0x344);const gr='bases-dashboard-ui.config',_r={};function vr(_0x5a422e,_0x2463ea){const _0x5ac22d=_0x5d48da;let _0x111362=_0x40463f(_0x100697),_0x55e2a8=_0x5706cb(_0x111362,_0x5a422e,_0x2463ea);return _0x5056f6(()=>_0x111362[_0x5ac22d(0x27a)][_0x5ac22d(0x209)](_0x51821f(()=>_0x5706cb(_0x111362,_0x5a422e,_0x2463ea))),_0x55e2a8,!0x1,[_0x2463ea,_0x111362,_0x5a422e]);}function yr(_0x48aa7e,_0x650981,_0x29c2a5){const _0x2809a5=_0x5d48da;let _0x213337=_0x40463f(_0x100697),_0x5ee902=_0x86a5a0(_0x213337,_0x48aa7e,_0x650981,_0x29c2a5);return _0x5056f6(()=>_0x213337[_0x2809a5(0x27a)][_0x2809a5(0x209)](_0x51821f(()=>_0x86a5a0(_0x213337,_0x48aa7e,_0x650981,_0x29c2a5))),_0x5ee902,!0x1,[_0x213337,_0x650981,_0x48aa7e,_0x29c2a5]);}function br(_0x4b060b,_0x5be540=_0x5d48da(0x15c)){const _0xedf963=_0x5d48da;return{'backgroundImage':_0xedf963(0x274)+JSON[_0xedf963(0x3c1)](_0x4b060b)+')','backgroundPosition':_0x5be540===_0xedf963(0x2a3)?_0xedf963(0x1d5):_0xedf963(0x38c),'backgroundRepeat':_0x5be540===_0xedf963(0x2a3)?_0xedf963(0x2a3):_0xedf963(0x396),'backgroundSize':_0x5be540===_0xedf963(0x15c)?_0xedf963(0x15c):_0xedf963(0x1eb)};}const xr={'alignment':_0x5d48da(0x269),'currency':'USD','decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x5d48da(0x1eb),'numberFormat':'general'},Sr={'CNY':'¥','EUR':'€','USD':'$'};function Cr(_0x5b70d1){const _0x35391c=_0x5d48da;var _0x276a57;let _0x9d4daa=Dr(((_0x276a57=_0x5b70d1[_0x35391c(0x27e)][_0x35391c(0x3cb)])==null||(_0x276a57=_0x276a57[_0x35391c(0x371)])==null?void 0x0:_0x276a57[_0x35391c(0x1b0)])??'');return{...xr,..._0x9d4daa,..._0x5b70d1[_0x35391c(0x374)]};}function wr(_0x777079,_0xf92c84){const _0x572cde=_0x5d48da;let _0xed0cc4={..._0x777079[_0x572cde(0x374)],..._0xf92c84},_0x1707fc=Cr({..._0x777079,'appearance':_0xed0cc4}),_0x17e9b3=_0x777079[_0x572cde(0x27e)][_0x572cde(0x3cb)]??{'formula':''};return{..._0x777079,'appearance':_0xed0cc4,'shapeData':{..._0x777079[_0x572cde(0x27e)],'formulaBinding':{..._0x17e9b3,'numberFormat':{'pattern':Tr(_0x1707fc[_0x572cde(0x371)],_0x1707fc[_0x572cde(0xc9)],_0x1707fc[_0x572cde(0x1b3)])}}}};}function Tr(_0x4ba51e,_0x1488b2,_0x1c778a){const _0x1fe250=_0x5d48da;let _0x1d77b4=Math[_0x1fe250(0x16b)](0x0,Math[_0x1fe250(0x2cf)](0x8,Math['round'](_0x1488b2))),_0x3e7288=_0x1d77b4?'.'+'0'[_0x1fe250(0x2a3)](_0x1d77b4):'';switch(_0x4ba51e){case _0x1fe250(0x31b):return'0'+_0x3e7288;case _0x1fe250(0x228):return'0'+_0x3e7288+'%';case _0x1fe250(0x1b3):return(Sr[_0x1c778a]??_0x1c778a)+_0x1fe250(0x31c)+_0x3e7288;case'grouped':return _0x1fe250(0x31c)+_0x3e7288;case'compact':case _0x1fe250(0x308):return _0x1fe250(0x139);}}function Er(_0x54adf6,_0x7114fc,_0x43fb45){const _0x3fb8b8=_0x5d48da;return _0x43fb45['numberFormat']!==_0x3fb8b8(0xbd)||typeof _0x7114fc!='number'||!Number[_0x3fb8b8(0x206)](_0x7114fc)?_0x54adf6:new Intl[(_0x3fb8b8(0x160))](void 0x0,{'notation':_0x3fb8b8(0xbd),'minimumFractionDigits':_0x43fb45[_0x3fb8b8(0xc9)]??0x0,'maximumFractionDigits':_0x43fb45[_0x3fb8b8(0xc9)]??0x0})[_0x3fb8b8(0x231)](_0x7114fc);}function Dr(_0x11c280){const _0x3bfb32=_0x5d48da;var _0x150e9b,_0x3399bd;if(!_0x11c280||_0x11c280===_0x3bfb32(0x139))return{};let _0x443a3c=_0x11c280[_0x3bfb32(0x1c2)](/\.([0#]+)/),_0x178f1d=(_0x443a3c==null||(_0x150e9b=_0x443a3c[0x1])==null?void 0x0:_0x150e9b[_0x3bfb32(0x193)])??0x0;if(_0x11c280['includes']('%'))return{'decimalPlaces':_0x178f1d,'numberFormat':'percent'};let _0x447a83=(_0x3399bd=Object[_0x3bfb32(0x39a)](Sr)[_0x3bfb32(0x153)](([,_0x59cfa9])=>_0x11c280[_0x3bfb32(0x292)](_0x59cfa9)))==null?void 0x0:_0x3399bd[0x0];return _0x447a83?{'currency':_0x447a83,'decimalPlaces':_0x178f1d,'numberFormat':_0x3bfb32(0x1b3)}:{'decimalPlaces':_0x178f1d,'numberFormat':_0x11c280['includes'](',')?_0x3bfb32(0xa5):_0x3bfb32(0x31b)};}const Or={'center':'center','left':'flex-start','right':'flex-end'};function kr({dashboardId:_0x53a4b8,unitId:_0x3b08e6,widget:_0xcd3564}){const _0x7b1f9f=_0x5d48da;var _0x1f89d9,_0x3ab0d5,_0x2c225e,_0x67635e,_0x30baaa,_0x24796e,_0xe4b7f6,_0x1cdbd4,_0x59bd15;let _0x218504=_0x40463f(_0x4aaa31),_0x32044c=_0x40463f(_0x2667ef),_0x4558de=_0x40463f(_0x1ecd96),_0x38941e=_0x5c672b(()=>({'hostType':_0x247fc0[_0x7b1f9f(0x324)],'unitId':_0x3b08e6,'subUnitId':_0x53a4b8,'shapeId':_0xcd3564['id']}),[_0x53a4b8,_0x3b08e6,_0xcd3564['id']]),[_0x2b31c2,_0x366142]=_0x4ebd7a(()=>_0x218504[_0x7b1f9f(0x14d)](_0x38941e)),[_0x277246,_0x1fb780]=_0x4ebd7a(()=>{const _0x270289=_0x7b1f9f;var _0x259627;return(_0x259627=_0x218504[_0x270289(0xb7)](_0x38941e))==null?void 0x0:_0x259627['value'];}),[_0x43689c,_0x269e76]=_0x4ebd7a(),_0x3320a6=_0x25fc59(null),_0x23eb16=_0x25fc59(null),_0x573600=Cr(_0xcd3564);_0x185176(()=>{const _0x4f5797=_0x7b1f9f;let _0x56237c=_0x218504[_0x4f5797(0x338)][_0x4f5797(0x336)](_0x50affd=>{const _0x39b0fe=_0x4f5797;_0x50affd['unitId']===_0x3b08e6&&_0x50affd['subUnitId']===_0x53a4b8&&_0x50affd[_0x39b0fe(0x379)]===_0xcd3564['id']&&(_0x366142(_0x50affd[_0x39b0fe(0xf2)]),_0x1fb780(_0x50affd['result'][_0x39b0fe(0x32d)]));});return()=>_0x56237c[_0x4f5797(0x18f)]();},[_0x53a4b8,_0x218504,_0x38941e,_0x3b08e6,_0xcd3564['id']]),_0x185176(()=>{const _0x5e5b90=_0x7b1f9f;let _0x41db5f=_0x573600[_0x5e5b90(0x33c)];if(!_0x41db5f||_0x41db5f[_0x5e5b90(0xa8)]!==_0x3892df[_0x5e5b90(0xe0)])return;let _0x38fdbb=_0x32044c['getImageSourceCache'](_0x41db5f[_0x5e5b90(0x136)],_0x41db5f[_0x5e5b90(0xa8)]);if(_0x38fdbb!=null&&_0x38fdbb[_0x5e5b90(0x1f5)])return;let _0x2dc7bb=!0x0;return _0x32044c[_0x5e5b90(0xec)](_0x41db5f[_0x5e5b90(0x136)])['then'](_0x3dc761=>{const _0x246727=_0x5e5b90;_0x2dc7bb&&_0x269e76({'source':_0x41db5f[_0x246727(0x136)],'value':_0x3dc761});})['catch'](()=>void 0x0),()=>{_0x2dc7bb=!0x1;};},[_0x573600[_0x7b1f9f(0x33c)],_0x32044c]);let _0x4e6fd9=((_0x1f89d9=_0x573600['backgroundImage'])==null?void 0x0:_0x1f89d9[_0x7b1f9f(0xa8)])===_0x3892df[_0x7b1f9f(0xe0)]?((_0x3ab0d5=_0x32044c[_0x7b1f9f(0x17f)](_0x573600[_0x7b1f9f(0x33c)][_0x7b1f9f(0x136)],_0x573600[_0x7b1f9f(0x33c)]['sourceType']))==null?void 0x0:_0x3ab0d5[_0x7b1f9f(0x1f5)])??((_0x43689c==null?void 0x0:_0x43689c[_0x7b1f9f(0x136)])===_0x573600[_0x7b1f9f(0x33c)][_0x7b1f9f(0x136)]?_0x43689c[_0x7b1f9f(0x32d)]:''):((_0x2c225e=_0x573600[_0x7b1f9f(0x33c)])==null?void 0x0:_0x2c225e['source'])??'',_0x276d4f=_0xcd3564['shapeData'][_0x7b1f9f(0x261)],_0x4bbf16=_0x276d4f&&_0x7b1f9f(0x1e4)in _0x276d4f?(_0x67635e=_0x276d4f[_0x7b1f9f(0x1e4)])==null?void 0x0:_0x67635e[_0x7b1f9f(0x146)]:void 0x0,_0x4623c7=Er((_0x2b31c2==null?void 0x0:_0x2b31c2[_0x7b1f9f(0x2e2)])??'',_0x277246,_0x573600),_0x39432b=_0xcd3564[_0x7b1f9f(0x27e)][_0x7b1f9f(0x100)],_0x252f80=_0xcd3564[_0x7b1f9f(0x27e)][_0x7b1f9f(0x345)],_0x3892ca=_0x4bbf16==null||(_0x30baaa=_0x4bbf16[_0x7b1f9f(0x305)])==null?void 0x0:_0x30baaa[_0x7b1f9f(0x14b)],_0x42d84d=_0xcd3564[_0x7b1f9f(0x16e)]??_0xcd3564['title']??'';return _0x185176(()=>{const _0x24b721=_0x7b1f9f;let _0x370b40=_0x3320a6[_0x24b721(0xe8)],_0x4a2b7c=_0x23eb16[_0x24b721(0xe8)];if(!_0x370b40||!_0x4a2b7c)return;let _0x21fd10=()=>{const _0x3c7f7b=_0x24b721;if(_0x573600[_0x3c7f7b(0x27d)]===_0x3c7f7b(0x2ec)||!_0x370b40[_0x3c7f7b(0x178)]||!_0x370b40[_0x3c7f7b(0x34a)]){_0x4a2b7c['style'][_0x3c7f7b(0x268)]=_0x573600[_0x3c7f7b(0x268)]+'px';return;}let _0x3c2042=0x1,_0x135117=0x48,_0x416295=_0x3c2042;for(;_0x3c2042<=_0x135117;){let _0xadccdf=Math[_0x3c7f7b(0xf5)]((_0x3c2042+_0x135117)/0x2);_0x4a2b7c[_0x3c7f7b(0x36b)][_0x3c7f7b(0x268)]=_0xadccdf+'px',_0x4a2b7c[_0x3c7f7b(0x156)]<=_0x370b40[_0x3c7f7b(0x178)]&&_0x4a2b7c['scrollHeight']<=_0x370b40['clientHeight']?(_0x416295=_0xadccdf,_0x3c2042=_0xadccdf+0x1):_0x135117=_0xadccdf-0x1;}_0x4a2b7c[_0x3c7f7b(0x36b)][_0x3c7f7b(0x268)]=_0x416295+'px';};if(_0x21fd10(),typeof ResizeObserver>'u')return;let _0x1d599d=new ResizeObserver(_0x21fd10);return _0x1d599d[_0x24b721(0x386)](_0x370b40),()=>_0x1d599d[_0x24b721(0x101)]();},[_0x573600[_0x7b1f9f(0x268)],_0x573600[_0x7b1f9f(0x27d)],_0x4623c7]),_0x2fa798('div',{'data-dashboard-formula-shape':_0xcd3564['id'],'className':_0x7b1f9f(0x2dc),'style':{'backgroundColor':((_0x24796e=_0xcd3564[_0x7b1f9f(0x374)])==null?void 0x0:_0x24796e[_0x7b1f9f(0x2e5)])??((_0x39432b==null?void 0x0:_0x39432b['fillType'])===_0x3069d9['SolidFill']?_0x39432b[_0x7b1f9f(0x264)]??void 0x0:void 0x0),'border':(_0x252f80==null?void 0x0:_0x252f80['lineStrokeType'])===_0xaf4f42['SolidLine']?(_0x252f80[_0x7b1f9f(0x3ed)]??0x1)+_0x7b1f9f(0x215)+(_0x252f80['color']??'currentColor'):void 0x0,'borderRadius':_0xcd3564[_0x7b1f9f(0x273)]===_0x5d0718[_0x7b1f9f(0x226)]?0xc:void 0x0,'color':((_0xe4b7f6=_0xcd3564[_0x7b1f9f(0x374)])==null?void 0x0:_0xe4b7f6[_0x7b1f9f(0x13d)])??(_0x2b31c2==null?void 0x0:_0x2b31c2[_0x7b1f9f(0x264)])??(_0x3892ca==null||(_0x1cdbd4=_0x3892ca['cl'])==null?void 0x0:_0x1cdbd4[_0x7b1f9f(0x27b)])??void 0x0,'fontWeight':_0x3892ca!=null&&_0x3892ca['bl']?0x258:void 0x0,'textAlign':_0x573600['alignment']},'children':[_0x4e6fd9&&_0x5628d9('img',{'src':_0x4e6fd9,'alt':'','aria-hidden':_0x7b1f9f(0x1da),'className':'univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','style':{'objectFit':((_0x59bd15=_0x573600[_0x7b1f9f(0x33c)])==null?void 0x0:_0x59bd15[_0x7b1f9f(0x1f3)])??_0x7b1f9f(0x15c)}}),_0x2fa798('div',{'className':'univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','children':[_0x42d84d&&_0x5628d9(_0x7b1f9f(0x334),{'data-dashboard-formula-description':!0x0,'className':_0x7b1f9f(0x368),'children':_0x42d84d}),_0x5628d9('div',{'ref':_0x3320a6,'data-dashboard-formula-value':!0x0,'aria-label':_0x42d84d||_0x4558de['t'](_0x7b1f9f(0x38b)),'className':_0x7b1f9f(0x123),'style':{'justifyContent':Or[_0x573600[_0x7b1f9f(0x326)]]},'children':_0x5628d9(_0x7b1f9f(0x339),{'ref':_0x23eb16,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x573600[_0x7b1f9f(0x27d)],'className':_0x7b1f9f(0x2da),'children':_0x4623c7})})]})]});}function Y(_0x3c52d0,_0x52ca40){return function(_0x234436,_0x580925){_0x52ca40(_0x234436,_0x580925,_0x3c52d0);};}function Ar(_0x209677,_0x750a2a,_0x1f3817,_0x24be8c){const _0x2a5568=_0x5d48da;var _0x1cb919=arguments[_0x2a5568(0x193)],_0x68ea59=_0x1cb919<0x3?_0x750a2a:_0x24be8c===null?_0x24be8c=Object[_0x2a5568(0x138)](_0x750a2a,_0x1f3817):_0x24be8c,_0x4f63bb;if(typeof Reflect==_0x2a5568(0x262)&&typeof Reflect[_0x2a5568(0x301)]==_0x2a5568(0x201))_0x68ea59=Reflect[_0x2a5568(0x301)](_0x209677,_0x750a2a,_0x1f3817,_0x24be8c);else{for(var _0x43d555=_0x209677[_0x2a5568(0x193)]-0x1;_0x43d555>=0x0;_0x43d555--)(_0x4f63bb=_0x209677[_0x43d555])&&(_0x68ea59=(_0x1cb919<0x3?_0x4f63bb(_0x68ea59):_0x1cb919>0x3?_0x4f63bb(_0x750a2a,_0x1f3817,_0x68ea59):_0x4f63bb(_0x750a2a,_0x1f3817))||_0x68ea59);}return _0x1cb919>0x3&&_0x68ea59&&Object['defineProperty'](_0x750a2a,_0x1f3817,_0x68ea59),_0x68ea59;}let jr=class{constructor(_0x19cede,_0x1667f6,_0xc9129c){const _0x1eaf86=_0x5d48da;this[_0x1eaf86(0xa3)]=_0x19cede,this['_chartThemeService']=_0x1667f6,this[_0x1eaf86(0x135)]=_0xc9129c;}[_0x5d48da(0xfd)](){const _0x4eb9e9=_0x5d48da;return this[_0x4eb9e9(0x135)][_0x4eb9e9(0x36d)](_0x2d3214[_0x4eb9e9(0x3b2)],this[_0x4eb9e9(0x3d2)]());}['createRenderInput'](_0x75b2c4){const _0x17a813=_0x5d48da;let _0x47682c=_0x75b2c4[_0x17a813(0x1ad)]['config'];if(!_0x47682c)throw Error(_0x17a813(0x38e)+_0x75b2c4[_0x17a813(0x1c1)]+'\x20has\x20no\x20render\x20config.');let _0x543cdd=this[_0x17a813(0xa3)][_0x17a813(0x29b)]();return{'config':_0x47682c,'style':_0x197630({..._0x75b2c4[_0x17a813(0x1ad)][_0x17a813(0x36b)],'runtime':_0x75b2c4[_0x17a813(0x1ad)][_0x17a813(0xa9)](_0x543cdd),'direction':_0x543cdd},_0x47682c['type'])};}['_createContext'](){const _0x20b727=_0x5d48da;return{'resolveHostStyle':({style:_0x326437})=>_0x4b1e9d({'style':_0x326437,'getRenderColor':_0x29f14c=>this['_chartThemeService'][_0x20b727(0xac)](_0x29f14c)}),'resolveRenderBackgroundColor':({hostStyle:_0x1b71a2})=>_0x1b71a2[_0x20b727(0x100)]};}};jr=Ar([Y(0x0,_0x2d5804(_0x1ecd96)),Y(0x1,_0x2d5804(_0x259141)),Y(0x2,_0x1b1321)],jr);function Mr(_0x317ba1,_0x3baaec){const _0x1ba7ee=_0x5d48da;var _0x320c6e;_0x317ba1[_0x1ba7ee(0x36b)][_0x1ba7ee(0x2e5)]=_0x3baaec[_0x1ba7ee(0x100)]??_0x1ba7ee(0x317),_0x317ba1['style'][_0x1ba7ee(0x2e1)]=(_0x320c6e=_0x3baaec[_0x1ba7ee(0x2e1)])!=null&&_0x320c6e[_0x1ba7ee(0x264)]&&_0x3baaec[_0x1ba7ee(0x2e1)][_0x1ba7ee(0x3ed)]?_0x3baaec[_0x1ba7ee(0x2e1)][_0x1ba7ee(0x3ed)]+'px\x20solid\x20'+_0x3baaec[_0x1ba7ee(0x2e1)][_0x1ba7ee(0x264)]:'',_0x317ba1[_0x1ba7ee(0x36b)][_0x1ba7ee(0x194)]=_0x3baaec[_0x1ba7ee(0x2c0)]?_0x3baaec[_0x1ba7ee(0x2c0)]+'px':'',_0x317ba1[_0x1ba7ee(0x36b)][_0x1ba7ee(0x312)]='hidden',_0x317ba1[_0x1ba7ee(0x36b)][_0x1ba7ee(0x2ab)]=_0x1ba7ee(0x20d);}function Nr(_0x40e74e){'@babel/helpers - typeof';const _0x4c9bc3=_0x5d48da;return Nr=typeof Symbol=='function'&&typeof Symbol[_0x4c9bc3(0x109)]==_0x4c9bc3(0x15e)?function(_0x43314e){return typeof _0x43314e;}:function(_0xdca108){const _0x1db8df=_0x4c9bc3;return _0xdca108&&typeof Symbol==_0x1db8df(0x201)&&_0xdca108['constructor']===Symbol&&_0xdca108!==Symbol['prototype']?_0x1db8df(0x15e):typeof _0xdca108;},Nr(_0x40e74e);}function Pr(_0x23bbb2,_0x5c844a){const _0x2e08b1=_0x5d48da;if(Nr(_0x23bbb2)!=_0x2e08b1(0x262)||!_0x23bbb2)return _0x23bbb2;var _0x11b894=_0x23bbb2[Symbol[_0x2e08b1(0x113)]];if(_0x11b894!==void 0x0){var _0x94eae1=_0x11b894[_0x2e08b1(0xdf)](_0x23bbb2,_0x5c844a||'default');if(Nr(_0x94eae1)!=_0x2e08b1(0x262))return _0x94eae1;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5c844a===_0x2e08b1(0xd5)?String:Number)(_0x23bbb2);}function Fr(_0x2c73a6){const _0x2d011f=_0x5d48da;var _0x5868ea=Pr(_0x2c73a6,'string');return Nr(_0x5868ea)==_0x2d011f(0x15e)?_0x5868ea:_0x5868ea+'';}function Ir(_0x6c6fc5,_0xfd2eee,_0x4feb91){const _0x139fd3=_0x5d48da;return(_0xfd2eee=Fr(_0xfd2eee))in _0x6c6fc5?Object[_0x139fd3(0x2df)](_0x6c6fc5,_0xfd2eee,{'value':_0x4feb91,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x6c6fc5[_0xfd2eee]=_0x4feb91,_0x6c6fc5;}var Lr=class extends _0x419e57{constructor(_0x325a3b,_0x4d04a5){const _0x56ca11=_0x5d48da;super(),this['chartId']=_0x325a3b,this[_0x56ca11(0x11a)]=_0x4d04a5,Ir(this,_0x56ca11(0x362),_0x2d3214[_0x56ca11(0x3b2)]);}[_0x5d48da(0x1a9)](){const _0x928b31=_0x5d48da;return{'width':Math[_0x928b31(0x16b)](0x1,this[_0x928b31(0x11a)][_0x928b31(0x178)]),'height':Math[_0x928b31(0x16b)](0x1,this[_0x928b31(0x11a)]['clientHeight'])};}[_0x5d48da(0x235)](_0x31d235){const _0x32d635=_0x5d48da;Mr(this[_0x32d635(0x11a)],_0x31d235);}async[_0x5d48da(0x2ee)](){const _0x42fb32=_0x5d48da;return this[_0x42fb32(0x11a)];}[_0x5d48da(0x107)](){const _0x188f09=_0x5d48da;return this['_element'][_0x188f09(0x1f1)];}[_0x5d48da(0x216)](){}['markReady'](){}['markNotReady'](){}};function Rr({isRowDirection:_0x9ecf32,runtime:_0x112fb0}){const _0x56054e=_0x5d48da;let _0x3a1d28=_0x25fc59(null),_0x528e77=_0x40463f(_0x1ecd96),_0x1d4368=_0x40463f(_0x53f9ce),_0x1e2165=_0x40463f(jr),_0x3ee7cf=_0x40463f(_0x56b689);return _0x185176(()=>{const _0x4fadb8=_0x187c;let _0x1f28ca=_0x3a1d28[_0x4fadb8(0xe8)];if(!_0x1f28ca)return;_0x1f28ca[_0x4fadb8(0x23c)]();let {chartId:_0x3228cc,model:_0x2a519b}=_0x112fb0,_0x275e73=_0x2a519b[_0x4fadb8(0x3e2)],_0x582836=new Lr(_0x3228cc,_0x1f28ca),_0x299edb=_0x1e2165[_0x4fadb8(0xfd)](),_0x54c634=!0x1,_0x2efd0f=null,_0x176978=null,_0x32a32b=null,_0x1fcd7a=null,_0x2a81d2=!0x1,_0x3237ec=!0x1,_0x480bac=Promise[_0x4fadb8(0x248)]();_0x299edb[_0x4fadb8(0x202)](_0x582836);let _0xf95632=()=>{const _0xea578=_0x4fadb8;var _0x3b532f,_0xad6c65,_0x43a356,_0x1c1155;if(document[_0xea578(0x103)]===_0xea578(0x30b)||(_0x3b532f=(_0xad6c65=window)[_0xea578(0x30f)])!=null&&(_0x3b532f=_0x3b532f['call'](_0xad6c65,_0xea578(0x212)))!=null&&_0x3b532f[_0xea578(0xa2)]||(_0x43a356=(_0x1c1155=window)[_0xea578(0x30f)])!=null&&(_0x43a356=_0x43a356[_0xea578(0xdf)](_0x1c1155,'print'))!=null&&_0x43a356[_0xea578(0xa2)]||!_0x1f28ca[_0xea578(0x1f1)])return!0x1;let _0x2b5eb5=_0x1f28ca[_0xea578(0x319)]();return _0x2b5eb5['width']>0x0&&_0x2b5eb5['height']>0x0&&_0x2b5eb5[_0xea578(0x39f)]>0x0&&_0x2b5eb5[_0xea578(0xdc)]>0x0&&_0x2b5eb5[_0xea578(0x269)]<window[_0xea578(0xed)]&&_0x2b5eb5['top']<window[_0xea578(0x219)];},_0x1de769=()=>{const _0x1793ee=_0x4fadb8;_0x176978!==null&&clearTimeout(_0x176978),_0x1f28ca[_0x1793ee(0x19e)]['baseChartDataAnimation']='true',_0x1f28ca[_0x1793ee(0x19e)][_0x1793ee(0x207)]=String(_0x2ab57e),_0x176978=setTimeout(()=>{const _0x4aff10=_0x1793ee;_0x176978=null,delete _0x1f28ca['dataset'][_0x4aff10(0x13f)],delete _0x1f28ca[_0x4aff10(0x19e)][_0x4aff10(0x207)];},_0x2ab57e);},_0x2cc027=_0x18fc5e(()=>{const _0x139be7=_0x4fadb8;if(_0x54c634||(_0x2efd0f!==null&&(clearTimeout(_0x2efd0f),_0x2efd0f=null),!_0x2a519b[_0x139be7(0xa7)]))return;let _0x142150=_0x3237ec;_0x3237ec=!0x1,_0x1f28ca[_0x139be7(0x19e)]['chartType']=String(_0x2a519b[_0x139be7(0x287)]),_0x1f28ca[_0x139be7(0x19e)]['chartRowDirection']=String(_0x9ecf32);let _0x42d7d5=_0x1e2165[_0x139be7(0x1c5)](_0x112fb0),_0xdf0e40={'chartId':_0x3228cc,'config':_0x42d7d5[_0x139be7(0xa7)],'style':_0x42d7d5[_0x139be7(0x36b)]};_0x480bac=_0x480bac['then'](async()=>{const _0x532d4d=_0x139be7;_0x54c634||(_0x1f28ca[_0x532d4d(0x19e)][_0x532d4d(0x3ea)]=String(Number(_0x1f28ca['dataset'][_0x532d4d(0x3ea)]??0x0)+0x1),_0x142150&&_0x32a32b&&_0x299edb['renderTransition']&&_0xf95632()?(await _0x299edb[_0x532d4d(0x33a)](_0x32a32b,_0xdf0e40,{'duration':_0x2ab57e}),_0x54c634||_0x1de769()):await _0x299edb[_0x532d4d(0x14e)](_0xdf0e40),_0x32a32b=_0xdf0e40);})[_0x139be7(0x26d)](_0xabee1d=>_0x1d4368[_0x139be7(0x1a0)](_0x139be7(0xde),_0xabee1d));},0x64,{'leading':!0x0,'trailing':!0x0,'maxWait':0x64}),_0x5f0bb7=(_0x155494=!0x1)=>{_0x3237ec||=_0x155494,_0x2a81d2||(_0x2a81d2=!0x0,queueMicrotask(()=>{_0x2a81d2=!0x1,_0x54c634||_0x2cc027();}));},_0x3ba4f9=[_0x275e73['data$'][_0x4fadb8(0x336)](_0x17c1c2=>{const _0x258670=_0x4fadb8;let _0x3c216a=JSON[_0x258670(0x3c1)](_0x17c1c2);_0x1fcd7a!=null&&_0x1fcd7a!==_0x3c216a&&_0x5f0bb7(!0x0),_0x1fcd7a=_0x3c216a;}),_0x2a519b['config$']['subscribe'](_0x51f2e6=>{_0x51f2e6&&_0x5f0bb7();}),_0x2a519b['style$']['subscribe'](()=>_0x5f0bb7()),_0x528e77[_0x4fadb8(0x1bc)][_0x4fadb8(0x336)](()=>_0x5f0bb7()),_0x4b0df4([_0x3ee7cf['currentTheme$'],_0x3ee7cf[_0x4fadb8(0x227)]])[_0x4fadb8(0x209)](_0xf92f5f(0x1))[_0x4fadb8(0x336)](()=>_0x5f0bb7())],_0x1d090e=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x5b73d6=_0x4fadb8;_0x54c634||(_0x582836[_0x5b73d6(0x216)](),_0x2efd0f!==null&&clearTimeout(_0x2efd0f),_0x2efd0f=setTimeout(()=>_0x5f0bb7(),0x64));});return _0x1d090e==null||_0x1d090e[_0x4fadb8(0x386)](_0x1f28ca),()=>{const _0x6b5b90=_0x4fadb8;_0x54c634=!0x0,_0x2cc027[_0x6b5b90(0x1bd)](),_0x2efd0f!==null&&clearTimeout(_0x2efd0f),_0x176978!==null&&clearTimeout(_0x176978),delete _0x1f28ca[_0x6b5b90(0x19e)][_0x6b5b90(0x13f)],delete _0x1f28ca[_0x6b5b90(0x19e)][_0x6b5b90(0x207)],_0x1d090e==null||_0x1d090e[_0x6b5b90(0x101)](),_0x3ba4f9['forEach'](_0x2b94cd=>_0x2b94cd[_0x6b5b90(0x18f)]()),_0x299edb[_0x6b5b90(0x1b9)](),_0x582836['dispose'](),_0x1f28ca[_0x6b5b90(0x23c)]();};},[_0x9ecf32,_0x528e77,_0x1d4368,_0x1e2165,_0x112fb0,_0x3ee7cf]),_0x5628d9(_0x56054e(0x334),{'ref':_0x3a1d28,'data-u-comp':'base-pivot-chart','className':'univer-absolute\x20univer-inset-0\x20univer-overflow-hidden'});}function zr({filters:_0x5af1c9,onRuntimeChange:_0xc0c239,unitId:_0x3de44b,widget:_0x40a9cc}){const _0x1a2402=_0x5d48da;let _0x32895f=_0x40463f(_0x4829da),_0x70fe7e=_0x40463f(_0x1ecd96),_0x2f89b1=_0x40463f(_0x53f9ce),_0x5c0b3a=_0x40463f(_0x2cf236),[_0x53cd94,_0x2f9f66]=_0x4ebd7a(null),[_0x3b63f9,_0x1fd0d0]=_0x4ebd7a(!0x1),[_0x2172ff,_0x4afc9a]=_0x4ebd7a(null),_0x3b64a8=_0x25fc59(_0x1a2402(0x1e6)+_0x2cedf9(0x8)),_0x15d9a6=_0x32895f['getUnit'](_0x3de44b,_0x247fc0[_0x1a2402(0x324)]),_0x5b64ca=_0x15d9a6==null?void 0x0:_0x15d9a6[_0x1a2402(0x3e8)]()[_0x1a2402(0x3b5)][_0x40a9cc[_0x1a2402(0x9d)]],_0x475831=_0x5b64ca==null?void 0x0:_0x5b64ca[_0x1a2402(0x2eb)][_0x40a9cc[_0x1a2402(0x260)]],_0x1ac970=Br(_0x475831);if(_0x185176(()=>{const _0x1f2893=_0x1a2402;if(!_0x1ac970)return;let _0x14fcee=_0x3b64a8[_0x1f2893(0xe8)];return _0x5c0b3a[_0x1f2893(0x1fe)](_0x14fcee,{'unitId':_0x3de44b,'tableId':_0x40a9cc[_0x1f2893(0x9d)],'viewId':_0x40a9cc[_0x1f2893(0x260)],'filters':[]}),()=>{const _0x558f62=_0x1f2893;_0x5c0b3a[_0x558f62(0x3e0)](_0x3de44b,_0x14fcee),_0xc0c239==null||_0xc0c239(_0x40a9cc['id'],null);};},[_0x1ac970,_0xc0c239,_0x5c0b3a,_0x3de44b,_0x40a9cc['id'],_0x40a9cc[_0x1a2402(0x260)],_0x40a9cc[_0x1a2402(0x9d)]]),_0x185176(()=>{const _0x2c85ed=_0x1a2402;if(!Br(_0x475831))return;let _0x13a4b8=!0x0,_0x164060=_0x40a9cc[_0x2c85ed(0x204)]??_0x475831['config'][_0x2c85ed(0x204)],_0x4adec5={'unitId':_0x3de44b,'tableId':_0x40a9cc[_0x2c85ed(0x9d)],'viewId':_0x40a9cc[_0x2c85ed(0x260)],'filters':[_0x475831[_0x2c85ed(0x122)]??null,..._0x5af1c9]};return _0x5c0b3a[_0x2c85ed(0x276)](_0x3de44b,_0x3b64a8[_0x2c85ed(0xe8)],_0x4adec5,_0x164060)['then'](_0xbd77b2=>{const _0x517776=_0x2c85ed;if(!_0x13a4b8||!_0xbd77b2)return;let _0x4a88c9=_0x5c0b3a[_0x517776(0x128)](_0x3de44b,_0x3b64a8['current'])??null;_0x2f9f66(_0xbd77b2),_0x4afc9a(_0x4a88c9),_0x1fd0d0(!0x1),_0xc0c239==null||_0xc0c239(_0x40a9cc['id'],_0x4a88c9);})['catch'](_0x2db6fb=>{_0x2f89b1['error']('[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x2db6fb),_0x13a4b8&&(_0x2f9f66(null),_0x1fd0d0(!0x0));}),()=>{_0x13a4b8=!0x1;};},[_0x5af1c9,_0x2f89b1,_0xc0c239,_0x5c0b3a,_0x3de44b,_0x475831,_0x40a9cc[_0x1a2402(0x204)],_0x40a9cc['id'],_0x40a9cc[_0x1a2402(0x260)],_0x40a9cc[_0x1a2402(0x9d)]]),!Br(_0x475831))return _0x5628d9('div',{'className':_0x1a2402(0x2bf),'children':_0x70fe7e['t'](_0x1a2402(0x1bb))});let _0x23f5f0=_0x5c0b3a[_0x1a2402(0x128)](_0x3de44b,_0x3b64a8[_0x1a2402(0xe8)])===_0x2172ff?_0x2172ff:null;return _0x53cd94&&_0x23f5f0?_0x5628d9(Rr,{'isRowDirection':_0x1aba1a((_0x40a9cc['chart']??_0x475831['config'][_0x1a2402(0x204)])[_0x1a2402(0x1e8)]),'runtime':_0x23f5f0}):_0x5628d9(_0x1a2402(0x334),{'className':_0x1a2402(0x2bf),'children':_0x70fe7e['t'](_0x3b63f9?_0x1a2402(0x372):_0x1a2402(0x2a9))});}function Br(_0x431f9d){const _0x44ddea=_0x5d48da;return(_0x431f9d==null?void 0x0:_0x431f9d['type'])===_0xc74f11[_0x44ddea(0xe1)]&&typeof _0x431f9d[_0x44ddea(0xa7)]=='object'&&_0x431f9d[_0x44ddea(0xa7)]!==null&&_0x44ddea(0x106)in _0x431f9d[_0x44ddea(0xa7)]&&_0x44ddea(0x204)in _0x431f9d[_0x44ddea(0xa7)];}const Vr={'alignment':_0x5d48da(0x269),'fontSize':0x12,'fontSizeMode':_0x5d48da(0x1eb)};function Hr(_0x247a55){const _0x25d962=_0x5d48da;return{...Vr,..._0x247a55[_0x25d962(0x374)]};}function Ur(_0x57ad97){const _0x121ad3=_0x5d48da;var _0x2b2668;return((_0x2b2668=_0x57ad97[_0x121ad3(0x3eb)])==null?void 0x0:_0x2b2668['dataStream']['replace'](/\r\n$/,'')[_0x121ad3(0x2e0)](/\r/g,'\x0a'))??'';}function Wr(_0x4ead5e,_0x1a7cff){const _0x436060=_0x5d48da;var _0x8bb7d5;let _0x545986=_0x1a7cff['replace'](/\r\n|\r/g,'\x0a')[_0x436060(0x120)]('\x0a'),_0x5968b2=_0x545986['join']('\x0d')+'\x0d\x0a',_0x34aa7a=((_0x8bb7d5=_0x4ead5e[_0x436060(0x3eb)])==null?void 0x0:_0x8bb7d5[_0x436060(0x367)])??[],_0x398ddb=new Set(_0x34aa7a[_0x436060(0x2ea)](_0xa26442=>_0xa26442[_0x436060(0x15a)])),_0x26ee5b=0x0,_0x4aab4e=_0x545986[_0x436060(0x2ea)]((_0x1d6fa1,_0x195290)=>{_0x26ee5b+=_0x1d6fa1['length'];let _0x178f21={..._0x34aa7a[_0x195290]??{'startIndex':_0x26ee5b,'paragraphId':_0x1be82d(_0x398ddb)},'startIndex':_0x26ee5b};return _0x26ee5b+=0x1,_0x178f21;});return{..._0x4ead5e,'body':{..._0x4ead5e['body'],'dataStream':_0x5968b2,'paragraphs':_0x4aab4e,'textRuns':[]}};}function Gr({widget:_0x132cd7}){const _0x45e077=_0x5d48da;let _0x45e8bd=_0x40463f(_0x56b689),_0x2c3af1=_0x40463f(_0x1ecd96),_0x3b3c6c=_0x5056f6(()=>_0x45e8bd[_0x45e077(0x137)],_0x45e8bd[_0x45e077(0x3cf)](),!0x1,[_0x45e8bd]),_0x2b893f=_0x25fc59(null),_0x58a1a2=_0x25fc59(null),_0x4cc9f0=Hr(_0x132cd7),_0x12aa01=_0x4cc9f0[_0x45e077(0x2e5)]??_0x3b3c6c['gray'][0x0],_0x511ce0=_0x4cc9f0[_0x45e077(0x13d)]??_0x3b3c6c[_0x45e077(0x14a)][0x3e8],_0x3a894c=Ur(_0x132cd7['document']);return _0x185176(()=>{const _0x5afb81=_0x45e077;let _0xfae14=_0x2b893f[_0x5afb81(0xe8)],_0x266a12=_0x58a1a2[_0x5afb81(0xe8)];if(!_0xfae14||!_0x266a12)return;let _0x1fd93e=()=>{const _0x41907c=_0x5afb81;if(_0x4cc9f0[_0x41907c(0x27d)]===_0x41907c(0x2ec)||!_0xfae14[_0x41907c(0x178)]||!_0xfae14[_0x41907c(0x34a)]){_0x266a12[_0x41907c(0x36b)][_0x41907c(0x268)]=_0x4cc9f0[_0x41907c(0x268)]+'px';return;}let _0x5c6b69=0x8,_0x1b468b=0x48,_0x1ce856=_0x5c6b69;for(;_0x5c6b69<=_0x1b468b;){let _0x45cb1e=Math[_0x41907c(0xf5)]((_0x5c6b69+_0x1b468b)/0x2);_0x266a12['style'][_0x41907c(0x268)]=_0x45cb1e+'px',_0x266a12['scrollWidth']<=_0xfae14[_0x41907c(0x178)]&&_0x266a12['scrollHeight']<=_0xfae14['clientHeight']?(_0x1ce856=_0x45cb1e,_0x5c6b69=_0x45cb1e+0x1):_0x1b468b=_0x45cb1e-0x1;}_0x266a12[_0x41907c(0x36b)]['fontSize']=_0x1ce856+'px';};if(_0x1fd93e(),typeof ResizeObserver>'u')return;let _0x2b8625=new ResizeObserver(_0x1fd93e);return _0x2b8625['observe'](_0xfae14),()=>_0x2b8625[_0x5afb81(0x101)]();},[_0x4cc9f0[_0x45e077(0x268)],_0x4cc9f0[_0x45e077(0x27d)],_0x3a894c]),_0x5628d9(_0x45e077(0x334),{'data-dashboard-text-widget':_0x132cd7['id'],'className':_0x45e077(0x3bf),'style':{'backgroundColor':_0x12aa01,'color':_0x511ce0},'children':_0x5628d9('div',{'ref':_0x2b893f,'data-dashboard-text-content':!0x0,'aria-label':_0x2c3af1['t'](_0x45e077(0x126)),'className':_0x45e077(0x291),'children':_0x5628d9(_0x45e077(0x334),{'ref':_0x58a1a2,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x4cc9f0[_0x45e077(0x27d)],'className':_0x45e077(0x29f),'style':{'textAlign':_0x4cc9f0[_0x45e077(0x326)]},'children':_0x3a894c})})});}function Kr({dashboard:_0x1351cd,editable:_0x22bfb3=!0x0,onSelectWidget:_0x42be92,renderWidget:_0x379327,renderWidgetActions:_0x26f84e,selectedWidgetId:_0x58e435,widgetLabel:_0x474819}){const _0x553c96=_0x5d48da;return _0x5628d9(_0x553c96(0x334),{'data-dashboard-scroll-container':!0x0,'className':_0x37e66c(_0x553c96(0x2b2),_0xb0e9d1),'onClick':_0x22bfb3?_0x1e848f=>{const _0x28ad38=_0x553c96;if(!(_0x1e848f[_0x28ad38(0x320)]instanceof Node)||!_0x1e848f[_0x28ad38(0x3c6)][_0x28ad38(0x1d4)](_0x1e848f[_0x28ad38(0x320)]))return;let _0x3d7747=_0x1e848f[_0x28ad38(0x320)]instanceof Element?_0x1e848f[_0x28ad38(0x320)]:_0x1e848f[_0x28ad38(0x320)][_0x28ad38(0x3b0)];_0x3d7747!=null&&_0x3d7747['closest']('[data-dashboard-widget]')||_0x42be92==null||_0x42be92();}:void 0x0,'children':_0x5628d9(_0x553c96(0x334),{'data-dashboard-grid':!0x0,'className':_0x553c96(0x35f),'children':_0x1351cd[_0x553c96(0x3a0)][_0x553c96(0x2ea)](_0x19e746=>{const _0x6b23c8=_0x553c96;let _0x4035fa=_0x1351cd[_0x6b23c8(0x1f6)][_0x19e746];if(!_0x4035fa)return null;let _0x32a09a=Math['max'](0xb4,_0x4035fa[_0x6b23c8(0x3e1)][_0x6b23c8(0x314)]*_0x560757);return _0x2fa798(_0x6b23c8(0x335),{'data-dashboard-widget':_0x4035fa['id'],'aria-label':_0x4035fa[_0x6b23c8(0xbc)]??_0x474819(_0x4035fa),'className':_0x37e66c(_0x6b23c8(0x18e),_0x4035fa['type']===_0x4dd1ab[_0x6b23c8(0x3c0)]||_0x4035fa[_0x6b23c8(0x278)]===_0x4dd1ab[_0x6b23c8(0x2c2)]?'univer-bg-transparent\x20dark:!univer-bg-transparent':'univer-bg-gray-0\x20dark:!univer-bg-gray-900',_0x22bfb3&&_0x58e435===_0x4035fa['id']?_0x6b23c8(0x2b6):'univer-border-gray-200\x20dark:!univer-border-gray-700'),'style':{'minHeight':_0x32a09a,'height':_0x32a09a},'tabIndex':_0x22bfb3?0x0:void 0x0,'onClick':_0x22bfb3?()=>_0x42be92==null?void 0x0:_0x42be92(_0x4035fa['id']):void 0x0,'onFocus':_0x22bfb3?()=>_0x42be92==null?void 0x0:_0x42be92(_0x4035fa['id']):void 0x0,'children':[_0x22bfb3&&_0x5628d9(_0x6b23c8(0x334),{'className':_0x6b23c8(0x143),'children':_0x26f84e==null?void 0x0:_0x26f84e(_0x4035fa)}),_0x5628d9('div',{'className':_0x6b23c8(0x20a),'children':_0x379327(_0x4035fa)})]},_0x4035fa['id']);})})});}let qr=class extends _0x4186b4{constructor(_0x4cb094){const _0x4adf75=_0x5d48da;super(_0x4cb094),Ir(this,_0x4adf75(0x1ab),null);}[_0x5d48da(0xb2)](_0x18dfb0){}};qr=Ar([Y(0x0,_0x2d5804(_0x3de432))],qr);function Jr({children:_0x57d3af}){return _0x5628d9(_0x103427,{'children':_0x57d3af});}function Yr(_0x351973){return _0x5628d9(_0x71f9e8,{..._0x351973});}function Xr(_0x1a8e74){return _0x5628d9(_0x4b4d66,{..._0x1a8e74});}function Zr(_0x113d6a){return _0x5628d9(_0x5aeff1,{..._0x113d6a});}var Qr;const X={'axis':{..._0x2b6728,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x5683c7,'heatmap':_0x165da0,'indicatorLine':_0x2adc54,'legend':_0x1267c7,'lineAndArea':_0x514143,'pareto':_0x1e2ae9,'pie':_0x2e45c9,'radar':_0x32285a,'relation':{..._0x270a4f,'useValueAsSymbolSize':!0x0},'series':{..._0x338c3f,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Qr=_0xa4c4f5[_0x5d48da(0x1fb)])==null?void 0x0:Qr['rightYAxis'])??!0x1}},'style':_0x2d6dc1,'titles':_0x5a35d2,'trendline':_0x59bb04,'waterfall':{..._0x3d8d6d,'useSubtotal':!0x0},'waterfallStyle':_0x5630e0,'wordCloud':_0x5624b3},$r=[_0x1cf6fa['Line'],_0x1cf6fa[_0x5d48da(0x140)],_0x1cf6fa['WordCloud'],_0x1cf6fa[_0x5d48da(0x34d)],_0x1cf6fa['Funnel'],_0x1cf6fa[_0x5d48da(0x28b)],_0x1cf6fa['Sankey'],_0x1cf6fa[_0x5d48da(0x385)],_0x1cf6fa[_0x5d48da(0x3cd)],_0x1cf6fa['Candlestick'],_0x1cf6fa[_0x5d48da(0xb8)],_0x1cf6fa[_0x5d48da(0x28d)],_0x1cf6fa[_0x5d48da(0xf1)],_0x1cf6fa[_0x5d48da(0x186)],_0x1cf6fa[_0x5d48da(0xe5)]];function ei(_0x338386){const _0x45af5c=_0x5d48da;let {config:_0x1e03f4,onChange:_0x2fe0f1,runtime:_0x4ccc22,tableName:_0x3d18f4}=_0x338386,_0xbbbfa6=_0x40463f(qr),_0x53d506=_0x40463f(_0x1ecd96),[_0x416928,_0x550f64]=_0x4ebd7a(_0x389329[_0x45af5c(0xf0)]),_0x59aec9=_0x5c672b(()=>new _0x367b2a(_0x4ccc22['model'],{'commit':_0x2712b6=>{const _0x1eb803=_0x45af5c;var _0x5a73bf;let _0x218c0a=_0x4ccc22[_0x1eb803(0x1ad)],_0x495fbb=_0x5adbe1(_0x2712b6,{'series':(_0x5a73bf=_0x218c0a[_0x1eb803(0xa7)])==null?void 0x0:_0x5a73bf[_0x1eb803(0x32f)],'currentChartType':_0x218c0a[_0x1eb803(0x287)],'currentStyle':_0x218c0a[_0x1eb803(0x36b)],'currentContext':_0x218c0a[_0x1eb803(0x378)],'currentDataAggregation':_0x218c0a[_0x1eb803(0x2fa)]});_0x2fe0f1({'chart':ti(_0x1e03f4[_0x1eb803(0x204)],_0x495fbb)});}}),[_0x1e03f4[_0x45af5c(0x204)],_0x2fe0f1,_0x4ccc22]),_0x4e577d=_0x5c672b(()=>_0x2f5cf3(_0x8d6a08['map'](_0x5019d9=>({..._0x5019d9,'label':_0x53d506['t'](ai(_0x5019d9['labelId']))}))),[_0x53d506]);return _0x5628d9(_0x323b1b,{'chartUIService':_0xbbbfa6,'hostAdapter':_0x59aec9,'children':_0x2fa798(_0x45af5c(0x334),{'className':_0x45af5c(0x1e2),'children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x53d506['t'](_0x45af5c(0x142)),'className':_0x45af5c(0x3c9),'items':[{'label':_0x53d506['t'](_0x45af5c(0x360)),'panelId':_0x45af5c(0x3b1),'value':_0x389329[_0x45af5c(0xf0)]},{'label':_0x53d506['t'](_0x45af5c(0x15b)),'panelId':_0x45af5c(0x271),'value':_0x389329[_0x45af5c(0x2c8)]}],'value':_0x416928,'onChange':_0x550f64}),_0x416928===_0x389329[_0x45af5c(0xf0)]?_0x5628d9(_0x59879a,{'id':_0x45af5c(0x3b1),'label':_0x53d506['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x2fa798(_0x45af5c(0x334),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x5628d9(_0x3352ce,{'options':_0x4e577d}),_0x5628d9(_0x53d74e,{}),_0x5628d9(_0x3aee5e,{}),_0x5628d9(ni,{}),_0x5628d9(_0x1ed3a5,{}),_0x2fa798(_0x45af5c(0x334),{'children':[_0x5628d9(_0x30e809,{'title':_0x53d506['t'](_0x45af5c(0x22f))}),_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':_0x3d18f4})]}),_0x5628d9(_0x70f2bb,{'orientationControl':_0x5628d9(_0x101ca4,{'size':_0x45af5c(0x147),'onClick':()=>_0x2fe0f1({'chart':{..._0x1e03f4[_0x45af5c(0x204)],'orient':_0x1e03f4[_0x45af5c(0x204)][_0x45af5c(0x1e8)]===_0x45af5c(0x1f2)?_0x45af5c(0x33b):_0x45af5c(0x1f2)}}),'children':_0x53d506['t']('bases-dashboard-ui.chart.common.switchRowColumn')})}),_0x5628d9(_0x468257,{}),_0x5628d9(_0x153e3c,{'defaultValues':X['waterfall']}),_0x2fa798(_0x45af5c(0x334),{'children':[_0x5628d9(_0x30e809,{'title':_0x53d506['t'](_0x45af5c(0xb1))}),_0x5628d9(Yr,{'value':_0x1e03f4[_0x45af5c(0x31a)],'options':[{'value':_0x45af5c(0x27c),'label':_0x53d506['t'](_0x45af5c(0x239))},{'value':_0x45af5c(0x204),'label':_0x53d506['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':_0x45af5c(0x2d3),'label':_0x53d506['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x270154=>{const _0x436cde=_0x45af5c;(_0x270154===_0x436cde(0x27c)||_0x270154===_0x436cde(0x204)||_0x270154==='table')&&_0x2fe0f1({'displayMode':_0x270154});}})]})]})}):_0x5628d9(_0x59879a,{'id':_0x45af5c(0x271),'label':_0x53d506['t'](_0x45af5c(0x15b)),'children':_0x5628d9(ri,{})})]})});}function ti(_0x788fa0,_0x3ab5f3){const _0x21b13f=_0x5d48da;return{..._0x788fa0,'type':_0x3ab5f3[_0x21b13f(0x287)]??_0x788fa0['type'],'style':_0x3ab5f3[_0x21b13f(0x36b)]??_0x788fa0['style'],'context':_0x3ab5f3[_0x21b13f(0x378)]??_0x788fa0[_0x21b13f(0x378)],'dataAggregation':_0x3ab5f3[_0x21b13f(0x2fa)]??_0x788fa0[_0x21b13f(0x2fa)]};}function ni(){const _0x151a73=_0x5d48da;let _0x46dd2b=_0x10d8e4();return _0x5628d9(_0x1ca39a,{'visible':$r[_0x151a73(0x35b)](_0x464e5c=>!_0x242779['baseOn'](_0x46dd2b,_0x464e5c))});}function Z(_0x190672){const _0x328109=_0x5d48da;return _0x2fa798(_0x53ec64,{'id':_0x190672['id'],'children':[_0x5628d9(_0x51656d,{'children':_0x190672[_0x328109(0x249)]}),_0x5628d9(_0x37b567,{'children':_0x190672[_0x328109(0x29e)]})]});}function ri(){const _0x5541ae=_0x5d48da;let _0x518a23=_0x40463f(_0x1ecd96),_0x5347ce=_0x10d8e4(),_0x96a956=_0xef83d1(),[_0x506ab1,_0x5c276e]=_0x4ebd7a(null),_0x339d40=_0x242779['baseOn'](_0x5347ce,_0x1cf6fa[_0x5541ae(0x282)]),_0x1135bb=_0x5347ce===_0x1cf6fa['Radar'],_0x3b8ce7=_0x5347ce===_0x1cf6fa[_0x5541ae(0x21a)],_0x31606a=_0x5347ce===_0x1cf6fa[_0x5541ae(0x30a)],_0x212941=_0x242779[_0x5541ae(0x263)](_0x5347ce,_0x1cf6fa[_0x5541ae(0x3d8)]),_0x4113bf=_0x5347ce===_0x1cf6fa[_0x5541ae(0x28b)],_0x4e1512=_0x5347ce===_0x1cf6fa[_0x5541ae(0x33f)],_0x1e1a80=_0x5347ce===_0x1cf6fa[_0x5541ae(0x218)],_0x44df03=_0x5347ce===_0x1cf6fa[_0x5541ae(0x385)],_0x43dae0=_0x2ecac2(_0x5347ce,_0xc8129[_0x5541ae(0x3de)])&&!_0x212941&&!_0x1e1a80,_0x101f68=ii(_0x5347ce,_0x518a23);return _0x2fa798(_0x151ab2,{'value':_0x506ab1,'onChange':_0x5c276e,'children':[_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x119)],'label':_0x518a23['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0x5628d9(_0xc54821,{'defaultValues':X[_0x5541ae(0x36b)]})}),_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x1cd)],'label':_0x518a23['t'](_0x5541ae(0x24d)),'children':_0x5628d9(_0x517322,{'commitMode':_0x5541ae(0x19f),'defaultValues':X[_0x5541ae(0x161)]})}),_0x5628d9(_0x31fb16,{'section':'view'}),_0x43dae0&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x2c3)],'label':_0x518a23['t'](_0x5541ae(0x112)),'children':_0x5628d9(_0x4f3338,{'defaultValues':X['series'],'NumberFormatField':_0x3f2847})}),_0x4e1512&&_0x5628d9(Z,{'id':_0x4baf7f['WaterfallSeries'],'label':_0x518a23['t']('bases-dashboard-ui.chart.section.waterfall'),'children':_0x5628d9(_0x122082,{'defaultValues':X[_0x5541ae(0x12d)],'getDefaultBucketName':({seriesName:_0x41bc71,target:_0x1bd5f5})=>_0x1bd5f5===_0x148de0[_0x5541ae(0x1fa)]?_0x518a23['t'](_0x5541ae(0x1df)):_0x41bc71?_0x41bc71+'-('+_0x518a23['t'](_0x5541ae(0x2b5)+(_0x1bd5f5===_0x148de0['Positive']?'waterfall.positive':_0x5541ae(0x34c)))+')':'','NumberFormatField':_0x3f2847})}),_0x1e1a80&&_0x2fa798(_0x5554ea,{'children':[_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x380)],'label':_0x518a23['t'](_0x5541ae(0xd8)),'children':_0x5628d9(_0x117afe,{'defaultValues':X['pareto'],'NumberFormatField':_0x3f2847,'showDataPointEditor':!0x0,'target':_0x5541ae(0x2fc)})}),_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x21f)],'label':_0x518a23['t'](_0x5541ae(0x2d7)),'children':_0x5628d9(_0x117afe,{'defaultValues':X[_0x5541ae(0x2cc)],'NumberFormatField':_0x3f2847,'showDataPointEditor':!0x1,'target':_0x5541ae(0x246)})})]}),_0x339d40&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x1b8)],'label':_0x518a23['t'](_0x5541ae(0x3ef)),'children':_0x5628d9(_0x32a1e9,{'defaultValues':X[_0x5541ae(0x225)],'NumberFormatField':_0x3f2847})}),_0x3b8ce7&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x21a)],'label':_0x518a23['t'](_0x5541ae(0x25e)),'children':_0x5628d9(_0x51f587,{'defaultValues':X[_0x5541ae(0x286)]})}),_0x1135bb&&_0x5628d9(Z,{'id':_0x4baf7f['Radar'],'label':_0x518a23['t']('bases-dashboard-ui.chart.section.radar'),'children':_0x5628d9(_0x1423a1,{'defaultValues':X[_0x5541ae(0x294)]})}),_0x31606a&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x30a)],'label':_0x518a23['t'](_0x5541ae(0x3bb)),'children':_0x5628d9(_0x5591da,{'defaultValues':X[_0x5541ae(0xfe)],'gapControl':_0x5541ae(0x315)})}),_0x44df03&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x385)],'label':_0x518a23['t']('bases-dashboard-ui.chart.common.heatmap'),'children':_0x5628d9(_0x1aca4d,{'defaultValues':X[_0x5541ae(0x337)]})}),_0x4113bf&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x28b)],'label':_0x518a23['t'](_0x5541ae(0x1c4)),'children':_0x5628d9(_0x4117cf,{'defaultValues':X[_0x5541ae(0x2bb)]})}),_0x1dac15(_0x5347ce)&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0xf3)],'label':_0x518a23['t'](_0x242779['baseOn'](_0x5347ce,_0x1cf6fa[_0x5541ae(0x332)])?_0x5541ae(0x1cf):'bases-dashboard-ui.chart.chartTypes.line'),'children':_0x5628d9(_0x2a4c4d,{'defaultValues':X[_0x5541ae(0x366)],'lineStyleControl':_0x5541ae(0x1d2)})}),_0x2ecac2(_0x5347ce,_0xc8129['Legend'])&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x2a2)],'label':_0x518a23['t'](_0x5541ae(0x183)),'children':_0x5628d9(_0x2205cf,{'defaultValues':X[_0x5541ae(0xdb)]})}),_0x2ecac2(_0x5347ce,_0xc8129[_0x5541ae(0x31e)])&&_0x2fa798(_0x5554ea,{'children':[_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x266)],'label':_0x518a23['t'](_0x5541ae(0x2f1)),'children':_0x5628d9(_0x51c0bf,{'axis':'x','defaultValues':X[_0x5541ae(0x399)],'NumberFormatField':_0x3f2847})}),_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x9e)],'label':_0x518a23['t'](_0x5541ae(0x32b)),'children':_0x5628d9(_0x51c0bf,{'axis':'y','defaultValues':X[_0x5541ae(0x399)],'NumberFormatField':_0x3f2847})}),_0x5628d9(_0x31fb16,{'section':_0x5541ae(0x2c7)}),_0x96a956&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x375)],'label':_0x518a23['t']('bases-dashboard-ui.chart.common.rightVerticalAxis'),'children':_0x5628d9(_0x51c0bf,{'axis':'rightY','defaultValues':X[_0x5541ae(0x399)],'NumberFormatField':_0x3f2847})}),_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x210)],'label':_0x518a23['t'](_0x5541ae(0x2ba)),'children':_0x5628d9(_0x58fc11,{'defaultValues':X[_0x5541ae(0x399)]})})]}),_0x2ecac2(_0x5347ce,_0xc8129[_0x5541ae(0x306)])&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x306)],'label':_0x518a23['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x5628d9(_0x54d111,{'defaultValues':X[_0x5541ae(0x20f)]})}),_0x3f9965(_0x5347ce)&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x36f)],'label':_0x518a23['t']('bases-dashboard-ui.chart.common.trendline'),'children':_0x5628d9(_0x311435,{'defaultValues':X['trendline']})}),_0x101f68&&_0x5628d9(Z,{'id':_0x101f68['id'],'label':_0x101f68[_0x5541ae(0x249)],'children':_0x5628d9(_0x3f116c,{})})]});}function ii(_0x856a82,_0x4f803e){const _0x23e851=_0x5d48da;let _0x5a00cf={[_0x1cf6fa[_0x23e851(0x395)]]:{'id':_0x4baf7f[_0x23e851(0x395)],'localeKey':_0x23e851(0xba)},[_0x1cf6fa['Histogram']]:{'id':_0x4baf7f[_0x23e851(0xb8)],'localeKey':_0x23e851(0x13e)},[_0x1cf6fa[_0x23e851(0x28d)]]:{'id':_0x4baf7f[_0x23e851(0x28d)],'localeKey':'bases-dashboard-ui.chart.section.treemap'},[_0x1cf6fa[_0x23e851(0xf1)]]:{'id':_0x4baf7f[_0x23e851(0xf1)],'localeKey':'bases-dashboard-ui.chart.section.sunburst'},[_0x1cf6fa['Gauge']]:{'id':_0x4baf7f['Gauge'],'localeKey':'bases-dashboard-ui.chart.section.gauge'},[_0x1cf6fa[_0x23e851(0xe5)]]:{'id':_0x4baf7f['Chord'],'localeKey':_0x23e851(0x277)}}[_0x856a82];return _0x5a00cf?{'id':_0x5a00cf['id'],'label':_0x4f803e['t'](_0x5a00cf[_0x23e851(0x1f0)])}:null;}function ai(_0x241979){const _0x546bf6=_0x5d48da;return _0x546bf6(0x36a)+_0x241979;}function oi({onChange:_0x5c2ec8,onEditData:_0x175b09,runtime:_0x4ec0d2,sourceChart:_0x8517da,sourceName:_0x3bbd0c,widget:_0x35a48e}){const _0x34270d=_0x5d48da;let _0x547bcd=_0x40463f(qr),_0x294249=_0x40463f(_0x1ecd96),[_0x47b93d,_0x556225]=_0x4ebd7a(_0x389329[_0x34270d(0xf0)]),_0x442bae=_0x35a48e[_0x34270d(0x204)]??_0x8517da,_0x49e667=_0x5c672b(()=>new _0x367b2a(_0x4ec0d2[_0x34270d(0x1ad)],{'commit':_0x2f103e=>{const _0x148c09=_0x34270d;var _0xc31ecf;let _0x2b0bce=_0x4ec0d2[_0x148c09(0x1ad)],_0x1b09cf=_0x5adbe1(_0x2f103e,{'series':(_0xc31ecf=_0x2b0bce[_0x148c09(0xa7)])==null?void 0x0:_0xc31ecf['series'],'currentChartType':_0x2b0bce['chartType'],'currentStyle':_0x2b0bce[_0x148c09(0x36b)],'currentContext':_0x2b0bce['context'],'currentDataAggregation':_0x2b0bce[_0x148c09(0x2fa)]});_0x5c2ec8({..._0x35a48e,'chart':ti(_0x442bae,_0x1b09cf)})[_0x148c09(0x26d)](()=>void 0x0);}}),[_0x442bae,_0x5c2ec8,_0x4ec0d2,_0x35a48e]),_0x511c7b=_0x5c672b(()=>_0x2f5cf3(_0x8d6a08[_0x34270d(0x2ea)](_0x32bbaf=>({..._0x32bbaf,'label':_0x294249['t'](si(_0x32bbaf[_0x34270d(0x2fb)]))}))),[_0x294249]);return _0x5628d9(_0x4f5736,{'chartUIService':_0x547bcd,'hostAdapter':_0x49e667,'children':_0x2fa798(_0x34270d(0x334),{'data-dashboard-chart-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x294249['t'](_0x34270d(0x142)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x294249['t'](_0x34270d(0x360)),'panelId':_0x34270d(0x22c),'value':_0x389329[_0x34270d(0xf0)]},{'label':_0x294249['t'](_0x34270d(0x15b)),'panelId':_0x34270d(0x358),'value':_0x389329['Style']}],'value':_0x47b93d,'onChange':_0x556225}),_0x47b93d===_0x389329['Data']?_0x5628d9(_0x59879a,{'id':_0x34270d(0x22c),'label':_0x294249['t'](_0x34270d(0x360)),'children':_0x2fa798('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x5628d9(_0x3352ce,{'options':_0x511c7b}),_0x5628d9(_0x53d74e,{}),_0x5628d9(_0x3aee5e,{}),_0x5628d9(ni,{}),_0x5628d9(_0x1ed3a5,{}),_0x2fa798(_0x34270d(0x334),{'children':[_0x5628d9(_0x30e809,{'title':_0x294249['t'](_0x34270d(0xab))}),_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':_0x3bbd0c}),_0x5628d9(_0x101ca4,{'className':_0x34270d(0xd1),'onClick':_0x175b09,'children':_0x294249['t']('bases-dashboard-ui.dashboardInspector.editData')})]})]})}):_0x5628d9(_0x59879a,{'id':_0x34270d(0x358),'label':_0x294249['t'](_0x34270d(0x15b)),'children':_0x5628d9(ri,{})})]})});}function si(_0x18d757){return'bases-dashboard-ui.chart.chartTypes.'+_0x18d757;}const ci=[_0x5d48da(0x308),_0x5d48da(0x31b),_0x5d48da(0x228),_0x5d48da(0x1b3),_0x5d48da(0xa5),_0x5d48da(0xbd)];function li({base:_0x28774c,onChange:_0x46fa4e,onSelectBackgroundImage:_0x274f5a,widget:_0x444a44}){const _0x46b1f2=_0x5d48da;var _0x4ff028;let _0x18e59c=_0x40463f(_0x1ecd96),_0x13613a=_0x40463f(_0x56b689),_0x505650=_0x5056f6(()=>_0x13613a[_0x46b1f2(0x137)],_0x13613a[_0x46b1f2(0x3cf)](),!0x1,[_0x13613a]),_0x3c08e8=_0x5056f6(()=>_0x13613a[_0x46b1f2(0x227)],_0x13613a['darkMode'],!0x1,[_0x13613a]),[_0x15674a,_0xe3f0b1]=_0x4ebd7a(_0x46b1f2(0x373)),[_0x46d349,_0x4b56d0]=_0x4ebd7a(!0x1),_0x37dfe=Cr(_0x444a44),_0x75b2db=_0x28774c['getSnapshot']()['tables'][_0x444a44[_0x46b1f2(0x9d)]],_0x559c89=_0x75b2db==null?void 0x0:_0x75b2db[_0x46b1f2(0x389)][_0x46b1f2(0x153)](_0xb5404=>_0x75b2db[_0x46b1f2(0x2eb)][_0xb5404]),_0x5d302a=_0x559c89?_0x75b2db==null?void 0x0:_0x75b2db[_0x46b1f2(0x2eb)][_0x559c89]:void 0x0,_0x2dbb60=_0x75b2db&&_0x5d302a?_0x372e38(_0x28774c['getSnapshot'](),_0x75b2db,_0x5d302a)[_0x46b1f2(0x2ea)](_0x5b6ee7=>({..._0x5b6ee7,'current':!0x1})):[],_0x301f90=((_0x4ff028=_0x444a44[_0x46b1f2(0x27e)][_0x46b1f2(0x3cb)])==null?void 0x0:_0x4ff028[_0x46b1f2(0x2ad)])??'',_0x273f38=_0x2597f5=>_0x46fa4e(wr(_0x444a44,_0x2597f5))[_0x46b1f2(0x26d)](()=>void 0x0),_0x2fa296=_0x5703b7=>_0x46fa4e({..._0x444a44,'description':_0x5703b7})['catch'](()=>void 0x0);return _0x2fa798(_0x46b1f2(0x334),{'data-dashboard-formula-inspector':!0x0,'className':_0x46b1f2(0x34b),'children':[_0x5628d9(_0x18f25a,{'className':_0x46b1f2(0x313),'items':[{'value':'data','label':_0x18e59c['t']('bases-dashboard-ui.dashboardInspector.data')},{'value':_0x46b1f2(0x36b),'label':_0x18e59c['t'](_0x46b1f2(0x369))}],'value':_0x15674a,'onChange':_0xe3f0b1}),_0x5628d9(_0x46b1f2(0x334),{'className':_0x46b1f2(0xf4),'children':_0x15674a===_0x46b1f2(0x373)?_0x2fa798(_0x46b1f2(0x334),{'className':_0x46b1f2(0x3b7),'children':[_0x5628d9(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x295)),'children':_0x5628d9(_0x5d579d,{'value':_0x444a44[_0x46b1f2(0x16e)]??_0x444a44[_0x46b1f2(0xbc)]??'','onChange':_0x2fa296,'onBlur':_0x19ab35=>_0x2fa296(_0x19ab35[_0x46b1f2(0x320)][_0x46b1f2(0x32d)])})}),_0x5628d9(ui,{'label':_0x18e59c['t'](_0x46b1f2(0xab)),'children':_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':(_0x75b2db==null?void 0x0:_0x75b2db[_0x46b1f2(0x3d7)])??_0x18e59c['t'](_0x46b1f2(0x1bb))})}),_0x2fa798(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x2fd)),'children':[_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':_0x196177(_0x301f90,_0x2dbb60)}),_0x5628d9(_0x101ca4,{'className':'univer-mt-2\x20univer-w-full','onClick':()=>_0x4b56d0(!0x0),'children':_0x18e59c['t'](_0x46b1f2(0x333))})]})]}):_0x2fa798(_0x46b1f2(0x334),{'className':_0x46b1f2(0x3b7),'children':[_0x5628d9(_0x209a9d,{'emptyLabel':_0x18e59c['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x18e59c['t'](_0x46b1f2(0x3b9)),'pickerFallbackValue':_0x3c08e8?_0x505650['gray'][0x384]:_0x505650['gray'][0x0],'resetLabel':_0x18e59c['t'](_0x46b1f2(0x23f)),'value':_0x37dfe[_0x46b1f2(0x2e5)]??null,'onChange':_0x39ebdb=>_0x273f38({'backgroundColor':_0x39ebdb??void 0x0})}),_0x2fa798(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x38d)),'children':[_0x2fa798(_0x46b1f2(0x334),{'className':_0x46b1f2(0x316),'children':[_0x2fa798(_0x101ca4,{'className':'univer-flex-1','onClick':()=>{const _0x4ae866=_0x46b1f2;_0x274f5a()[_0x4ae866(0xa4)](_0x2d6eca=>{const _0x28d6ed=_0x4ae866;if(_0x2d6eca){var _0x53f040;return _0x273f38({'backgroundImage':{..._0x2d6eca,'fit':((_0x53f040=_0x37dfe['backgroundImage'])==null?void 0x0:_0x53f040['fit'])??_0x28d6ed(0x15c)}});}})['catch'](()=>void 0x0);},'children':[_0x5628d9(_0x4f1759,{}),_0x37dfe['backgroundImage']?_0x18e59c['t']('bases-dashboard-ui.dashboardInspector.replaceImage'):_0x18e59c['t'](_0x46b1f2(0x158))]}),_0x37dfe[_0x46b1f2(0x33c)]&&_0x5628d9(_0x101ca4,{'aria-label':_0x18e59c['t'](_0x46b1f2(0xe4)),'title':_0x18e59c['t'](_0x46b1f2(0xe4)),'onClick':()=>_0x273f38({'backgroundImage':void 0x0}),'children':_0x5628d9(_0x275aa7,{})})]}),_0x37dfe[_0x46b1f2(0x33c)]&&_0x5628d9(_0x18f25a,{'className':_0x46b1f2(0xd9),'items':[{'value':'cover','label':_0x18e59c['t'](_0x46b1f2(0x214))},{'value':'contain','label':_0x18e59c['t'](_0x46b1f2(0x1cc))}],'value':_0x37dfe[_0x46b1f2(0x33c)][_0x46b1f2(0x1f3)],'onChange':_0x2c6d64=>_0x273f38({'backgroundImage':_0x37dfe[_0x46b1f2(0x33c)]?{..._0x37dfe[_0x46b1f2(0x33c)],'fit':_0x2c6d64}:void 0x0})})]}),_0x5628d9(_0x209a9d,{'emptyLabel':_0x18e59c['t'](_0x46b1f2(0x37a)),'label':_0x18e59c['t'](_0x46b1f2(0x37a)),'pickerFallbackValue':_0x3c08e8?_0x505650['gray'][0x32]:_0x505650[_0x46b1f2(0x14a)][0x3e8],'resetLabel':_0x18e59c['t'](_0x46b1f2(0x23f)),'value':_0x37dfe[_0x46b1f2(0x13d)]??null,'onChange':_0x291007=>_0x273f38({'textColor':_0x291007??void 0x0})}),_0x5628d9(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x281)),'children':_0x5628d9(_0x18f25a,{'items':[{'value':_0x46b1f2(0x269),'label':_0x18e59c['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':'center','label':_0x18e59c['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0x46b1f2(0x39f),'label':_0x18e59c['t'](_0x46b1f2(0x363))}],'value':_0x37dfe['alignment'],'onChange':_0x2c6a1a=>_0x273f38({'alignment':_0x2c6a1a})})}),_0x2fa798(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x102)),'children':[_0x5628d9(_0x18f25a,{'items':[{'value':'auto','label':_0x18e59c['t'](_0x46b1f2(0xcc))},{'value':_0x46b1f2(0x2ec),'label':_0x18e59c['t'](_0x46b1f2(0x133))}],'value':_0x37dfe[_0x46b1f2(0x27d)],'onChange':_0x191afd=>_0x273f38({'fontSizeMode':_0x191afd})}),_0x37dfe[_0x46b1f2(0x27d)]==='custom'&&_0x5628d9(_0x57c888,{'className':_0x46b1f2(0xd9),'min':0xc,'max':0x78,'value':_0x37dfe[_0x46b1f2(0x268)],'onChange':_0x45da96=>_0x273f38({'fontSize':_0x45da96??0x28,'fontSizeMode':_0x46b1f2(0x2ec)})})]}),_0x5628d9(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x3c3)),'children':_0x5628d9(Yr,{'value':_0x37dfe[_0x46b1f2(0x371)],'options':[{'value':_0x46b1f2(0x308),'label':_0x18e59c['t'](_0x46b1f2(0x1be))},{'value':'number','label':_0x18e59c['t']('bases-dashboard-ui.dashboardInspector.number')},{'value':'percent','label':_0x18e59c['t'](_0x46b1f2(0x3b8))},{'value':_0x46b1f2(0x1b3),'label':_0x18e59c['t'](_0x46b1f2(0x325))},{'value':_0x46b1f2(0xa5),'label':_0x18e59c['t'](_0x46b1f2(0x175))},{'value':'compact','label':_0x18e59c['t'](_0x46b1f2(0x10e))}],'onChange':_0x75c96f=>{const _0x5ee7e3=_0x46b1f2;let _0x5170bd=ci[_0x5ee7e3(0x153)](_0x5c9f81=>_0x5c9f81===_0x75c96f);_0x5170bd&&_0x273f38({'numberFormat':_0x5170bd});}})}),_0x37dfe['numberFormat']===_0x46b1f2(0x1b3)&&_0x5628d9(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x130)),'children':_0x5628d9(_0x5d579d,{'value':_0x37dfe[_0x46b1f2(0x1b3)],'onChange':_0xcadffc=>_0x273f38({'currency':_0xcadffc[_0x46b1f2(0x165)](0x0,0x3)[_0x46b1f2(0x26a)]()})})}),_0x37dfe[_0x46b1f2(0x371)]!==_0x46b1f2(0x308)&&_0x5628d9(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x384)),'children':_0x5628d9(_0x57c888,{'min':0x0,'max':0x8,'value':_0x37dfe[_0x46b1f2(0xc9)],'onChange':_0x3f8f32=>_0x273f38({'decimalPlaces':_0x3f8f32??0x0})})})]})}),_0x46d349&&_0x5628d9(Zr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x5628d9(_0x4524e4,{'tables':_0x2dbb60,'formula':_0x196177(_0x301f90,_0x2dbb60),'onCancel':()=>_0x4b56d0(!0x1),'onSave':_0x2d56f8=>{const _0x16b9e5=_0x46b1f2;let _0x2d3aa5=_0x444a44[_0x16b9e5(0x27e)][_0x16b9e5(0x3cb)]??{'formula':''};return _0x46fa4e({..._0x444a44,'shapeData':{..._0x444a44[_0x16b9e5(0x27e)],'formulaBinding':{..._0x2d3aa5,'formula':_0x43ca80(_0x2d56f8,_0x2dbb60)}}})[_0x16b9e5(0xa4)](()=>_0x4b56d0(!0x1))[_0x16b9e5(0x26d)](()=>void 0x0);}})})]});}function ui({children:_0x588a2c,label:_0x27d752}){const _0x315641=_0x5d48da;return _0x2fa798('div',{'role':'group','aria-label':_0x27d752,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x5628d9(_0x315641(0x339),{'children':_0x27d752}),_0x588a2c]});}function di({disabled:_0x72d03d,fields:_0x1f05d4,filter:_0x36b470,onChange:_0x235711}){const _0x28d18a=_0x5d48da;let _0x2e8118=_0x40463f(_0x23d8e9)[_0x28d18a(0xaa)]??null,[_0x4ed653,_0x46962d]=_0x4ebd7a(null),_0x183d2a=_0x40463f(_0x1ecd96),_0x140238=(_0x36b470==null?void 0x0:_0x36b470[_0x28d18a(0x32c)])??[];if(!_0x140238['length'])return _0x2fa798(_0x28d18a(0x334),{'className':_0x28d18a(0x2b4),'children':[_0x5628d9(_0x266672,{'className':'univer-mx-auto\x20univer-size-6'}),_0x5628d9(_0x28d18a(0x339),{'className':_0x28d18a(0x3ab),'children':_0x183d2a['t'](_0x28d18a(0x108))})]});let _0xfb43fd=_0x4ed653==null?void 0x0:_0x140238[_0x4ed653],_0x54be79=_0x1f05d4[_0x28d18a(0x153)](_0x32fcd5=>_0x32fcd5['id']===(_0xfb43fd==null?void 0x0:_0xfb43fd[_0x28d18a(0x221)]));return _0x2fa798(_0x28d18a(0x334),{'className':_0x28d18a(0x1af),'children':[_0x140238[_0x28d18a(0x2ea)]((_0x15799f,_0xdb41f9)=>{const _0x319a2b=_0x28d18a;var _0x33b1a7;return _0x2fa798(_0x101ca4,{'disabled':_0x72d03d,'onClick':()=>_0x46962d(_0xdb41f9),'children':[_0x5628d9(_0x319a2b(0x339),{'children':((_0x33b1a7=_0x1f05d4[_0x319a2b(0x153)](_0x576ab7=>_0x576ab7['id']===_0x15799f[_0x319a2b(0x221)]))==null?void 0x0:_0x33b1a7['name'])??_0x15799f[_0x319a2b(0x221)]}),_0x5628d9(_0x319a2b(0x339),{'className':_0x319a2b(0xae),'children':String(_0x15799f[_0x319a2b(0x2d6)]??'')})]},_0x15799f['fieldId']+'-'+_0xdb41f9);}),_0x54be79&&_0xfb43fd&&_0x4ed653!=null&&_0x2e8118&&_0x1c0161(_0x5628d9(_0x2e05d2,{'field':_0x54be79,'value':_0xfb43fd[_0x28d18a(0x2d6)],'onClose':()=>_0x46962d(null),'onSave':_0x58328c=>{const _0x2c784a=_0x28d18a;_0x235711({'conjunction':(_0x36b470==null?void 0x0:_0x36b470[_0x2c784a(0xc3)])??_0x26ccb5[_0x2c784a(0x2f5)],'conditions':_0x140238['map']((_0x5e93bc,_0x31971b)=>_0x31971b===_0x4ed653?{..._0x5e93bc,'operand':_0x58328c}:_0x5e93bc)}),_0x46962d(null);}}),_0x2e8118)]});}function fi({fields:_0x3d6429,filter:_0x2db991,onChange:_0x3a7c2c,onClear:_0x56efc3}){const _0x26e14b=_0x5d48da;let _0x118316=_0x40463f(_0x1ecd96);return _0x2fa798(_0x26e14b(0x334),{'children':[_0x5628d9(_0x52caf8,{'fields':_0x3d6429,'value':_0x2db991??{'conjunction':_0x26ccb5[_0x26e14b(0x2f5)],'conditions':[]},'onChange':_0x3a7c2c}),_0x5628d9(_0x101ca4,{'onClick':_0x56efc3,'children':_0x118316['t']('bases-dashboard-ui.dashboardInspector.reset')})]});}function pi({base:_0x3a7c8f,chartRuntime:_0x14bca1,onChange:_0x5ed203,onClose:_0x5beda3,onSelectBackgroundImage:_0x38878c,onSelectImage:_0x1af6bb,unitId:_0x4d7b67,widget:_0x28438b}){const _0x5893d4=_0x5d48da;let _0x389d8f=_0x40463f(_0x1e6f93),_0x457443=_0x40463f(_0x1ecd96),_0x2593c6=_0x3a7c8f[_0x5893d4(0x3e8)](),_0x273cc7=_0x5893d4(0x9d)in _0x28438b?_0x2593c6[_0x5893d4(0x3b5)][_0x28438b[_0x5893d4(0x9d)]]:void 0x0,_0x44795f=_0x28438b[_0x5893d4(0x278)]===_0x4dd1ab[_0x5893d4(0x173)]?_0x273cc7==null?void 0x0:_0x273cc7[_0x5893d4(0x2eb)][_0x28438b['pivotViewId']]:void 0x0,_0x32f685=_0x457443['t'](bi(_0x28438b)),_0xa6fe25=_0x2fa798(_0x5893d4(0x3da),{'data-dashboard-inspector':!0x0,'className':_0x5893d4(0x2fe),'children':[_0x28438b[_0x5893d4(0x278)]===_0x4dd1ab[_0x5893d4(0x173)]&&(yi(_0x44795f)&&_0x14bca1?_0x5628d9(oi,{'runtime':_0x14bca1,'sourceChart':_0x44795f[_0x5893d4(0xa7)][_0x5893d4(0x204)],'sourceName':((_0x273cc7==null?void 0x0:_0x273cc7[_0x5893d4(0x3d7)])??'')+'\x20/\x20'+_0x44795f['name'],'widget':_0x28438b,'onChange':_0x5ed203,'onEditData':()=>{const _0x24cc67=_0x5893d4;_0x389d8f[_0x24cc67(0x3e3)](_0x166344['id'],{'unitId':_0x4d7b67,'tableId':_0x28438b['tableId'],'viewId':_0x28438b[_0x24cc67(0x260)]})[_0x24cc67(0x26d)](()=>void 0x0);}}):_0x5628d9(_i,{'message':yi(_0x44795f)?_0x457443['t'](_0x5893d4(0x349)):_0x457443['t'](_0x5893d4(0x1bb))})),_0x28438b['type']===_0x4dd1ab[_0x5893d4(0x2c2)]&&_0x5628d9(li,{'base':_0x3a7c8f,'widget':_0x28438b,'onChange':_0x5ed203,'onSelectBackgroundImage':_0x38878c}),_0x28438b[_0x5893d4(0x278)]===_0x4dd1ab[_0x5893d4(0x296)]&&_0x5628d9(hi,{'base':_0x3a7c8f,'onChange':_0x5ed203,'widget':_0x28438b}),_0x28438b[_0x5893d4(0x278)]===_0x4dd1ab[_0x5893d4(0x1c9)]&&_0x5628d9(gi,{'onChange':_0x5ed203,'widget':_0x28438b}),_0x28438b[_0x5893d4(0x278)]===_0x4dd1ab[_0x5893d4(0x3c0)]&&_0x5628d9(mi,{'onChange':_0x5ed203,'onSelectImage':_0x1af6bb,'widget':_0x28438b})]});return _0x5628d9(_0x19aa31,{'title':_0x32f685,'onClose':_0x5beda3,'children':_0xa6fe25});}function mi({onChange:_0x483eb7,onSelectImage:_0x1936a2,widget:_0x5330d6}){const _0x43c96c=_0x5d48da;let _0x5f1543=_0x40463f(_0x1ecd96);return _0x2fa798('div',{'className':_0x43c96c(0x195),'children':[_0x2fa798(_0x101ca4,{'className':_0x43c96c(0x23b),'onClick':()=>_0x1936a2()[_0x43c96c(0xa4)](_0x152105=>_0x152105&&_0x483eb7({..._0x5330d6,'source':_0x152105[_0x43c96c(0x136)],'sourceType':_0x152105[_0x43c96c(0xa8)],'alt':_0x152105[_0x43c96c(0x3d7)]}))[_0x43c96c(0x26d)](()=>void 0x0),'children':[_0x5628d9(_0x4f1759,{}),_0x5f1543['t'](_0x43c96c(0x16d))]}),_0x2fa798('label',{'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x5628d9(_0x43c96c(0x339),{'children':_0x5f1543['t'](_0x43c96c(0x38d))}),_0x5628d9(_0x18f25a,{'items':[{'value':_0x43c96c(0x15c),'label':_0x5f1543['t'](_0x43c96c(0x214))},{'value':_0x43c96c(0x2a3),'label':_0x5f1543['t'](_0x43c96c(0x10c))},{'value':'original','label':_0x5f1543['t'](_0x43c96c(0xc2))}],'value':_0x5330d6['displayMode']??_0x43c96c(0x15c),'onChange':_0x31ee28=>_0x483eb7({..._0x5330d6,'displayMode':_0x31ee28})[_0x43c96c(0x26d)](()=>void 0x0)})]})]});}function hi({base:_0x19db93,onChange:_0x2ebcbf,widget:_0x2eae23}){const _0x381fb5=_0x5d48da;let _0x4c9996=_0x19db93[_0x381fb5(0x3e8)]()[_0x381fb5(0x3b5)][_0x2eae23[_0x381fb5(0x9d)]],_0x3f3d99=_0x4c9996==null?void 0x0:_0x4c9996[_0x381fb5(0x389)][_0x381fb5(0x153)](_0x513c62=>_0x4c9996['views'][_0x513c62]),_0x124361=_0x3f3d99?_0x4c9996==null?void 0x0:_0x4c9996[_0x381fb5(0x2eb)][_0x3f3d99]:void 0x0,_0x58f610=_0x4c9996&&_0x124361?_0x28d476(_0x4c9996,_0x124361):[];return _0x5628d9(fi,{'fields':_0x58f610,'filter':_0x2eae23[_0x381fb5(0x122)],'onChange':_0x6bb692=>_0x2ebcbf({..._0x2eae23,'filter':_0x6bb692})['catch'](()=>void 0x0),'onClear':()=>_0x2ebcbf({..._0x2eae23,'filter':null})[_0x381fb5(0x26d)](()=>void 0x0)});}function gi({onChange:_0x19d381,widget:_0x1554b9}){const _0x3c7ca8=_0x5d48da;let _0x328578=_0x40463f(_0x1ecd96),_0x2e3c25=_0x40463f(_0x56b689),_0x43fea7=_0x5056f6(()=>_0x2e3c25[_0x3c7ca8(0x137)],_0x2e3c25[_0x3c7ca8(0x3cf)](),!0x1,[_0x2e3c25]),_0x5e6bec=Hr(_0x1554b9),_0x5a82e8=_0x1c0573=>_0x19d381({..._0x1554b9,'appearance':{..._0x5e6bec,..._0x1c0573}})[_0x3c7ca8(0x26d)](()=>void 0x0);return _0x2fa798(_0x3c7ca8(0x334),{'className':_0x3c7ca8(0x285),'children':[_0x5628d9(_0x80dadb,{'className':'univer-max-h-40\x20univer-text-base','defaultValue':Ur(_0x1554b9[_0x3c7ca8(0x348)]),'rows':0x8,'onBlur':_0x5a4a22=>_0x19d381({..._0x1554b9,'document':Wr(_0x1554b9['document'],_0x5a4a22[_0x3c7ca8(0x320)][_0x3c7ca8(0x32d)])})['catch'](()=>void 0x0)}),_0x5628d9(_0x209a9d,{'emptyLabel':_0x328578['t'](_0x3c7ca8(0x3b9)),'label':_0x328578['t'](_0x3c7ca8(0x3b9)),'pickerFallbackValue':_0x43fea7[_0x3c7ca8(0x14a)][0x0],'resetLabel':_0x328578['t'](_0x3c7ca8(0x23f)),'value':_0x5e6bec[_0x3c7ca8(0x2e5)]??null,'onChange':_0x1807b4=>_0x5a82e8({'backgroundColor':_0x1807b4??void 0x0})}),_0x5628d9(_0x209a9d,{'emptyLabel':_0x328578['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x328578['t'](_0x3c7ca8(0x37a)),'pickerFallbackValue':_0x43fea7[_0x3c7ca8(0x14a)][0x3e8],'resetLabel':_0x328578['t'](_0x3c7ca8(0x23f)),'value':_0x5e6bec['textColor']??null,'onChange':_0x9a05b7=>_0x5a82e8({'textColor':_0x9a05b7??void 0x0})}),_0x5628d9(vi,{'label':_0x328578['t'](_0x3c7ca8(0x281)),'children':_0x5628d9(_0x18f25a,{'items':[{'value':_0x3c7ca8(0x269),'label':_0x328578['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':_0x3c7ca8(0x38c),'label':_0x328578['t'](_0x3c7ca8(0x11c))},{'value':_0x3c7ca8(0x39f),'label':_0x328578['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x5e6bec['alignment'],'onChange':_0x1c5afd=>_0x5a82e8({'alignment':_0x1c5afd})})}),_0x2fa798(vi,{'label':_0x328578['t'](_0x3c7ca8(0x102)),'children':[_0x5628d9(_0x18f25a,{'items':[{'value':_0x3c7ca8(0x1eb),'label':_0x328578['t'](_0x3c7ca8(0xcc))},{'value':_0x3c7ca8(0x2ec),'label':_0x328578['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x5e6bec[_0x3c7ca8(0x27d)],'onChange':_0x20863b=>_0x5a82e8({'fontSizeMode':_0x20863b})}),_0x5e6bec[_0x3c7ca8(0x27d)]===_0x3c7ca8(0x2ec)&&_0x5628d9(_0x57c888,{'className':_0x3c7ca8(0xd9),'min':0xa,'max':0x78,'value':_0x5e6bec[_0x3c7ca8(0x268)],'onChange':_0x5d0074=>_0x5a82e8({'fontSize':_0x5d0074??0x12,'fontSizeMode':'custom'})})]})]});}function _i({message:_0x2d560e}){const _0x17b836=_0x5d48da;return _0x5628d9('div',{'className':_0x17b836(0x16f),'children':_0x2d560e});}function vi({children:_0x377de0,label:_0x38d74a}){const _0x3736d3=_0x5d48da;return _0x2fa798('div',{'role':_0x3736d3(0x350),'aria-':!0x0,'className':_0x3736d3(0x127),'children':[_0x5628d9(_0x3736d3(0x339),{'children':_0x38d74a}),_0x377de0]});}function yi(_0xa05e1d){const _0x335662=_0x5d48da;return(_0xa05e1d==null?void 0x0:_0xa05e1d['type'])===_0xc74f11[_0x335662(0xe1)]&&typeof _0xa05e1d[_0x335662(0xa7)]=='object'&&_0xa05e1d['config']!==null&&_0x335662(0x106)in _0xa05e1d[_0x335662(0xa7)]&&'chart'in _0xa05e1d[_0x335662(0xa7)];}function _0x1f68(){const _0x41dfb7=['dataFieldId','refreshChartRuntime','bases-dashboard-ui.chart.section.chord','type','isSubtotal','permissionPointUpdate$','rgb','chart-and-table','fontSizeMode','shapeData','kind','univer-w-24','bases-dashboard-ui.dashboardInspector.alignment','Pie','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','bases-dashboard-ui.pivot.addToColumn','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','wordCloud','chartType','clientX','rowView','scrollTop','Relation','bases-dashboard-ui.pivot.ascending','Treemap','bases-dashboard-ui.operators.before','bases-dashboard-ui.pivot.filterField','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','includes','onDragStart','radar','bases-dashboard-ui.dashboardInspector.description','TableFilter','bases-dashboard-ui.dashboard.deleteWidget','Person','pluginName','IS_NOT','getDirection','view','bases-dashboard-ui.dashboardInspector.dragWidget','children','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','getValueIndex','options','Legend','repeat','bases-dashboard-ui.dashboard.image','\x20/\x20','None','redos','bases-dashboard-ui.pivot.descending','bases-dashboard-ui.pivot.calculating','initial','boxSizing','average','formula','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','bases-dashboard-ui.mobile.moveDown','bases-dashboard-ui.pivot.max','updateValuePosition','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','bases-dashboard-ui.chart.','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','bases-dashboard-ui.chart.common.switchRowColumn','defaultValue','univer-h-full\x20univer-w-full\x20univer-bg-transparent','bases-dashboard-ui.chart.section.gridlinesAndTicks','relation','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','getAttachmentUrl','bases-dashboard-ui.operators.lessThanOrEqual','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','radius','list','FormulaShape','Series','grandTotal','valueFields','bases-dashboard-ui.pivot.countNumbers','depthAxis','Style','rows','link','onDragOver','pareto','repeatColLabels','getId','min','key','univer-text-sm\x20univer-font-medium','univer-bg-gray-0\x20dark:!univer-bg-gray-900','table','LESS_THAN','Currency','operand','bases-dashboard-ui.chart.section.paretoLine','bases-dashboard-ui.pivot.defaultName','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','onCancel','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','Checkbox','round','defineProperty','replace','border','text','documentElement','bases-dashboard-ui.pivot.layout','backgroundColor','bases-dashboard-ui.pivot.cancel','bases-dashboard-ui.pivot.fieldSettings','univer-size-5\x20univer-rotate-90','lastCol','map','views','custom','base-pivot-chart-configuration','ensureMount','showColSubtotal','countNums','bases-dashboard-ui.chart.common.horizontalAxis','onMoveUp','showRowSubtotal','contain','AND','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.pivot.layoutOutline','saveImage','snapshot','dataAggregation','labelId','barStyle','bases-dashboard-ui.dashboardInspector.formula','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','index','prefix','decorate','CreatedAt','bases-dashboard-ui.dashboard.section','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','documentStyle','IndicatorLine','UpdatedAt','general','valueIndex','Funnel','hidden','26225750TxXOXa','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.pivot.variance','matchMedia','univer-min-h-11\x20univer-px-3\x20univer-text-base','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','overflow','univer-m-3','rowSpan','select','univer-flex\x20univer-gap-2','transparent','rowSubtotalPosition','getBoundingClientRect','displayMode','number','#,##0','bases-dashboard-ui.pivot.fields','Axes','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','target','item','pageView','bases-dashboard-ui.mobile.moveUp','UNIVER_BASE','bases-dashboard-ui.dashboardInspector.currency','alignment','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','bases-dashboard-ui.pivot.rowSubtotalPosition','SingleSelect','bases-dashboard-ui.pivot.dropFieldsHere','bases-dashboard-ui.chart.common.verticalAxis','conditions','value','bases-dashboard-ui.pivot.stdDevPopulation','series','pageRows','bases-dashboard-ui.pivot.pageWrap','Area','bases-dashboard-ui.dashboardInspector.editFormula','div','article','subscribe','heatmap','presentationChanged$','span','renderTransition','column','backgroundImage','bases-dashboard-ui.pivot.valuePosition','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','Waterfall','setConfig','keydown','univer-flex\x20univer-flex-col','register','1.4.0','stroke','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','measure','document','bases-dashboard-ui.dashboardInspector.loading','clientHeight','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','waterfall.negative','Scatter','univer-mx-auto\x20univer-size-6','indexOf','group','AFTER','LESS_THAN_OR_EQUAL','some','bases-dashboard-ui.chart.common.chartStyle','darkMode','univer-bg-transparent\x20dark:!univer-bg-transparent','bases-dashboard-ui.dashboard.rename','dashboard-chart-style','tableFieldId','bases-dashboard-ui.chart.section.radar','every','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','subtotal','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','bases-dashboard-ui.chart.common.setup','bases-dashboard-ui.chart.section.treemap','mode','bases-dashboard-ui.dashboardInspector.right','bases-dashboard-ui.dashboard.configure','createElement','lineAndArea','paragraphs','univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','bases-dashboard-ui.dashboardInspector.style','bases-dashboard-ui.chart.chartTypes.','style','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','createChartInstance','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','Trendline','values','numberFormat','bases-dashboard-ui.pivot.calculationFailed','data','appearance','RightVerticalAxis','bases-dashboard-ui.operators.greaterThan','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','context','shapeId','bases-dashboard-ui.dashboardInspector.textColor','BaseDashboard','bases-dashboard-ui.pivot.showColumnSubtotal','packageName','product','onDragEnd','ParetoBarSeries','sum','bases-dashboard-ui.mobile.permissions','push','bases-dashboard-ui.dashboardInspector.decimalPlaces','Heatmap','observe','onSettings','bases-dashboard-ui.chart.common.trendline','viewOrder','Progress','bases-dashboard-ui.dashboard.formulaShape','center','bases-dashboard-ui.dashboardInspector.backgroundImage','Base\x20dashboard\x20chart\x20','\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','dashboard-text-','rowType','getFieldPositionInfoById','Rating','preventDefault','Candlestick','no-repeat','onMove','colView','axis','entries','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','file','RecordId','filterFields','right','widgetOrder','onStarting','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','bases-dashboard-ui.pivot.acrossThenDown','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.count','@univerjs-pro/bases-dashboard-ui','[data-dashboard-widget]','startX','GREATER_THAN_OR_EQUAL','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','univer-text-sm','bases-dashboard-ui.pivot.summarizeBy','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','pageWrap','bases-dashboard-ui.pivot.showColumnGrandTotal','parentElement','base-pivot-chart-setup','Dom','pointerup','system','tables','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','univer-grid\x20univer-gap-4','bases-dashboard-ui.dashboardInspector.percent','bases-dashboard-ui.dashboardInspector.backgroundColor','Date','bases-dashboard-ui.chart.section.funnel','size','displayName','bases-dashboard-ui.dashboardInspector.enterValue','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','Image','stringify','bases-dashboard-ui.pivot.removeField','bases-dashboard-ui.dashboardInspector.numberFormat','click','bases-dashboard-ui.dashboardInspector.number','currentTarget','univer-flex-1','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','univer-shrink-0\x20univer-px-3','valuePosition','formulaBinding','bases-dashboard-ui.operators.isEmpty','Boxplot','forEach','getCurrentTheme','4WdqiGC','univer-text-gray-400','_createContext','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','waterfall','name','Bubble','thead','aside','univer-size-4','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','BEFORE','GeneralSeries','removeEventListener','releaseChartRuntime','layout','dataSource','executeCommand','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','dashboards','bases-dashboard-ui.operators.contains','resizeDirection','getSnapshot','bases-dashboard-ui.pivot.grandTotal','renderRevision','body','setOptions','width','univer-cursor-grab','bases-dashboard-ui.chart.section.pie','change$','fields','has','tableId','VerticalAxis','pointerY','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','bases-dashboard-ui.pivot.showRowGrandTotal','matches','_localeService','then','grouped','CONTAINS','config','sourceType','getRuntimeContext','rootContainerElement','bases-dashboard-ui.dashboardInspector.dataSource','getRenderColor','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','univer-truncate','fullscreenchange','bases-dashboard-ui.dashboardInspector.left','bases-dashboard-ui.pivot.display','executeChartUpdateConfig','sortInfo','bases-dashboard-ui.pivot.options','bases-dashboard-ui.pivot.filters','fieldOrder','getResult','Histogram','bases-dashboard-ui.pivot.addToFilter','bases-dashboard-ui.chart.section.candlestick','univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','title','compact','Group','_injector','bases-dashboard-ui.dashboard.defaultName','getResource','bases-dashboard-ui.dashboardInspector.originalSize','conjunction','bases-dashboard-ui.pivot.values','bases-dashboard-ui.operators.isNotEmpty','_configService','date','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','decimalPlaces','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','1114177gGbYbu','bases-dashboard-ui.dashboardInspector.autoFit','bases-dashboard-ui.pivot.stdDev','bases-dashboard-ui.pivot.rows','bases-dashboard-ui.dashboardInspector.checked','addFieldWithSourceId','univer-mt-2\x20univer-w-full','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','rowFields','dashboardOrder','string','6QgCTbZ','bases-dashboard-ui.pivot.description','bases-dashboard-ui.chart.section.paretoBar','univer-mt-2','bases-dashboard-ui.chart.common.heatmap','legend','bottom','bases-dashboard-ui.pivot.confirm','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','call','UUID','Pivot','bases-dashboard-ui.dashboard.editWidget','bases-dashboard-ui.pivot.pageDirection','bases-dashboard-ui.dashboardInspector.removeImage','Chord','rightY','bases-dashboard-ui.dashboard.delete','current','bases-dashboard-ui.dashboard.addWidget','bases-dashboard-ui.dashboard.redo','img','getImage','innerWidth','subItem','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','Data','Sunburst','presentation','LineAndArea','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','floor','false','stopPropagation','univer-text-right','addImageSourceCache','bases-dashboard-ui.dashboard.add','undoRedoStatus$','var','createDomChartInstance','funnel','pointermove','fill','disconnect','bases-dashboard-ui.dashboardInspector.textSize','visibilityState','bases-dashboard-ui.pivot.variancePopulation','WaterfallSeries','pivot','checkMounted','bases-dashboard-ui.dashboard.tableFilter','iterator','bases-dashboard-ui.dashboard.search','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','bases-dashboard-ui.dashboardInspector.repeat','bases-dashboard-ui.pivot.product','bases-dashboard-ui.dashboardInspector.compact','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','getDataFieldByTableId','section','bases-dashboard-ui.chart.common.series','toPrimitive','bases-dashboard-ui.pivot.layoutTabular','image/*','tabular','bases-dashboard-ui.pivot.average','base-pivot-chart-','ChartStyle','_element','bases-dashboard-ui.pivot.blank','bases-dashboard-ui.dashboardInspector.center','column:','isArray','button','split','getFieldCountByArea','filter','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','bases-dashboard-ui.operators.is','toLocaleLowerCase','bases-dashboard-ui.dashboard.text','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','getChartRuntime','bases-dashboard-ui.pivot.sourceFields','onFilter','bases-dashboard-ui.chart.section.gauge','info','waterfallStyle','215018aupjJt','univer-relative\x20univer-z-10','bases-dashboard-ui.dashboardInspector.currencyCode','saveAttachment','bases-dashboard-ui.pivot.top','bases-dashboard-ui.dashboardInspector.custom','clientY','_renderModelManager','source','currentTheme$','getOwnPropertyDescriptor','General','undos','Escape','bases-dashboard-ui.dashboard.fullScreen','textColor','bases-dashboard-ui.chart.section.histogram','baseChartDataAnimation','Radar','input','bases-dashboard-ui.chart.common.editChart','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','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','doc','small','header','toDate','gray','textStyle','univer-border-gray-200\x20dark:!univer-border-gray-700','getPresentation','render','Number','updateFieldPosition','tbody','stdDevp','find','bases-dashboard-ui.dashboard.widgetActions','YYYY-MM-DD','scrollWidth','setLabelFilterInfo','bases-dashboard-ui.dashboardInspector.uploadImage','ceil','paragraphId','bases-dashboard-ui.chart.common.customize','cover','changed$','symbol','univer-flex\x20univer-justify-end\x20univer-gap-2','NumberFormat','titles','repeatRowLabels','Filter','rightYAxis','slice','set','univer-w-36','IS_NOT_EMPTY','univer-size-8\x20univer-p-0\x20univer-text-red-500','isTopTotal','max','univer-flex\x20univer-flex-col\x20univer-gap-4','bases-dashboard-ui.dashboardInspector.replaceImage','description','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','files','top','bases-dashboard-ui.pivot.chartConfiguration','PivotChart','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','bases-dashboard-ui.dashboardInspector.grouped','IS_EMPTY','accept','clientWidth','univer-flex\x20univer-items-center\x20univer-gap-2','addEventListener','bases-dashboard-ui.dashboardInspector.close','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','getUnit','delete','getImageSourceCache','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','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','5675400DTOhAx','bases-dashboard-ui.chart.common.legend','headerRowCount','get','Gauge','onReady','pageOverThenDown','showRowGrandTotal','fullscreenElement','getDashboard','default','bases-dashboard-ui.pivot.downThenAcross','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','unsubscribe','bases-dashboard-ui.operators.after','from','bases-dashboard-ui.operators.isNot','length','borderRadius','univer-grid\x20univer-gap-4\x20univer-p-4','isTotal','7870626tdoYTS','ascending','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','bases-dashboard-ui.pivot.addToRow','univer-flex','descending','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','dataset','blur','error','bases-dashboard-ui.dashboard.undo','renameField','bases-dashboard-ui.pivot.showRowSubtotal','bases-dashboard-ui.pivot.columns','bases-dashboard-ui.pivot.repeatRowLabels','decimal','onDrop','setSortInfo','getRect','headerMap','activeRuntimeModel','flatMap','model','version','univer-grid\x20univer-gap-2\x20univer-p-3','pattern','_config','count','currency','trim','varp','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','dimension','PieStyle','dispose','pointerX','bases-dashboard-ui.dashboardInspector.sourceUnavailable','direction$','cancel','bases-dashboard-ui.dashboardInspector.general','add','imageSourceType','chartId','match','area','bases-dashboard-ui.chart.section.relation','createRenderInput','bases-dashboard-ui.operators.lessThan','formatMap','base-pivot-table-configuration','Text','bases-dashboard-ui.dashboard.pivotChart','cornerView','bases-dashboard-ui.dashboardInspector.contain','ChartAndAxisTitles','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','bases-dashboard-ui.chart.chartTypes.area','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','blank','segmented','\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','contains','0\x200','base-pivot-options','bases-dashboard-ui.pivot.pivotConfiguration','7503380zhRQkj','bases-dashboard-ui.pivot.tableOnly','true','minmax(0,\x203fr)\x20minmax(0,\x202fr)','disposeWithMe','supports','setLayout','bases-dashboard-ui.chart.waterfall.subtotal','bases-dashboard-ui.pivot.sum','bases-dashboard-ui.pivot.layoutCompact','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.operators.notContains','dataModel','univer-min-w-0\x20univer-flex-1','base-dashboard-pivot-chart-','rowCount','orient','base-pivot-fields','change','auto','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','end','\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','base64Cache','localeKey','isConnected','row','fit','MultipleGrandTotal','src','widgets','exitFullscreen','getOptions','Line','Subtotal','allSeriesStyle','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','separator','acquireChartRuntime','bases-dashboard-ui.dashboardInspector.editData','Column','function','bind','bases-dashboard-ui.dashboardInspector.data','chart','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','isFinite','baseChartDataAnimationDuration','\x20/\x20span\x20','pipe','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','MultiSelect','bases-dashboard-ui.pivot.name','border-box','onMoveDown','indicatorLine','GridlinesAndTicks','onCommit','(prefers-reduced-motion:\x20reduce)','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','bases-dashboard-ui.dashboardInspector.cover','px\x20solid\x20','syncLayout','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','Pareto','innerHeight','WordCloud','getTableFieldsByDataFieldId','columnFields','bases-dashboard-ui.pivot.addToValue','Row','ParetoLineSeries','defaultPrevented','fieldId','waterfall.positive','filterInfo','univer-size-5\x20univer-text-primary-600','pie','RoundRect','darkMode$','percent','columnSpan','field','height','dashboard-chart-setup','primary','row:','bases-dashboard-ui.pivot.dataSource','operator','format','tableOrder','bases-dashboard-ui.pivot.selectAll','bases-dashboard-ui.dashboard.new','setStyle','dashboard-widget-','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','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','bases-dashboard-ui.pivot.chartAndTable','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','univer-w-full','replaceChildren','\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','univer-flex\x20univer-min-h-full\x20univer-flex-col','bases-dashboard-ui.dashboardInspector.reset','bases-dashboard-ui.pivot.clearFilter','showColGrandTotal','5483632XcSvKR','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','lastRow','onRemove','cumulativeLineStyle','destructive','resolve','label','setFieldFormat','Value','colCount','bases-dashboard-ui.chart.common.chartAndAxisTitles','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','removeField','alt','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','items','ownerDocument','ManualFilter','dom','dataView','setSubtotalType','bases-dashboard-ui.dashboardInspector.selectOption','univer-cursor-grabbing','original','move','setCurrentUnitForType','dashboard-','bases-dashboard-ui.chart.section.wordCloud','data:','pivotViewId','shapeText','object','baseOn','color','toJSON','HorizontalAxis','univer-mb-2\x20univer-border-collapse\x20univer-text-sm','fontSize','left','toUpperCase','bases-dashboard-ui.pivot.bottom','3WgasRS','catch','isHeader','canView','outline','base-pivot-chart-style','bases-dashboard-ui.pivot.searchFields','shapeType','url('];_0x1f68=function(){return _0x41dfb7;};return _0x1f68();}function bi(_0x381111){const _0x126147=_0x5d48da;switch(_0x381111[_0x126147(0x278)]){case _0x4dd1ab['PivotChart']:return _0x126147(0x1ca);case _0x4dd1ab[_0x126147(0x296)]:return _0x126147(0x108);case _0x4dd1ab[_0x126147(0x1c9)]:return'bases-dashboard-ui.dashboard.text';case _0x4dd1ab[_0x126147(0x3c0)]:return _0x126147(0x2a4);case _0x4dd1ab['FormulaShape']:return _0x126147(0x38b);}}function xi({onDelete:_0x18bf02,onEdit:_0x2e43df,onMoveUp:_0x2997e5,onMoveDown:_0x6ceadb}){const _0x491ddc=_0x5d48da;let [_0x288c7d,_0x3216fe]=_0x4ebd7a(!0x1),_0x2b9ea9=_0x40463f(_0x1ecd96),_0x2af55f=_0x2b9ea9['t'](_0x491ddc(0xe2)),_0x2febf0=_0x2b9ea9['t'](_0x491ddc(0x297)),_0x10956b=_0x2b9ea9['t'](_0x491ddc(0x154)),_0x312e07=[{'type':'item','children':_0x2fa798(_0x491ddc(0x339),{'className':_0x491ddc(0x179),'children':[_0x5628d9(_0x1d4ca0,{'className':_0x491ddc(0x3db),'aria-hidden':_0x491ddc(0x1da)}),_0x5628d9(_0x491ddc(0x339),{'children':_0x2af55f})]}),'onSelect':_0x2e43df},..._0x2997e5?[{'type':'item','children':_0x2fa798(_0x491ddc(0x339),{'className':_0x491ddc(0x179),'children':[_0x5628d9(_0x343cd3,{'className':_0x491ddc(0x3db),'aria-hidden':_0x491ddc(0x1da)}),_0x5628d9(_0x491ddc(0x339),{'children':_0x2b9ea9['t'](_0x491ddc(0x323))})]}),'onSelect':_0x2997e5}]:[],..._0x6ceadb?[{'type':_0x491ddc(0x321),'children':_0x2fa798(_0x491ddc(0x339),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x5628d9(_0xfb8e72,{'className':_0x491ddc(0x3db),'aria-hidden':_0x491ddc(0x1da)}),_0x5628d9(_0x491ddc(0x339),{'children':_0x2b9ea9['t'](_0x491ddc(0x2af))})]}),'onSelect':_0x6ceadb}]:[],{'type':_0x491ddc(0x1fd)},{'type':_0x491ddc(0x321),'variant':_0x491ddc(0x247),'children':_0x2fa798('span',{'className':_0x491ddc(0x179),'children':[_0x5628d9(_0x275aa7,{'className':_0x491ddc(0x3db),'aria-hidden':_0x491ddc(0x1da)}),_0x5628d9('span',{'children':_0x2febf0})]}),'onSelect':_0x18bf02}];return _0x5628d9(_0x56bbe5,{'open':_0x288c7d,'onOpenChange':_0x3216fe,'align':_0x491ddc(0x1ed),'sideOffset':0x4,'items':_0x312e07[_0x491ddc(0x2ea)](_0x250ade=>({..._0x250ade,'className':_0x250ade[_0x491ddc(0x278)]===_0x491ddc(0x321)?_0x491ddc(0x310):void 0x0})),'children':_0x5628d9(_0x101ca4,{'type':_0x491ddc(0x11f),'size':_0x491ddc(0x147),'variant':_0x491ddc(0x2e2),'onPointerDown':_0x23fa92=>_0x23fa92[_0x491ddc(0x394)](),'onClick':()=>_0x3216fe(_0x44ffb5=>!_0x44ffb5),'title':_0x10956b,'aria-label':_0x10956b,'className':'univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','children':_0x5628d9(_0x4093a6,{'className':_0x491ddc(0x3db),'aria-hidden':_0x491ddc(0x1da)})})});}function Si({dashboardId:_0x344e64,presentation:_0x2f0eff=!0x1,unitId:_0x3685a3}){const _0x579ef5=_0x5d48da;let _0x1d0650=_0x40463f(_0x3c350b),_0x31d123=_0x40463f(_0x5df1d5);_0x5056f6(_0x31d123[_0x579ef5(0x15d)],0x0);let _0x419f5b=_0x40463f(_0x1e6f93),_0x32d2dc=_0x40463f(_0x5b5322),_0x45a81e=_0x40463f(_0x2667ef),_0x30df4c=_0x40463f(_0x4829da),_0x24e3bd=_0x40463f(_0x1ecd96),_0x53d840=_0x40463f(_0x3a16be),_0x32ca48=_0x40463f(_0x12718a),[_0x14c7cb,_0x1b6d4a]=_0x4ebd7a(!0x1),[_0x45e171,_0x245b72]=_0x4ebd7a(),[_0x1fa87d,_0x250275]=_0x4ebd7a(!0x1),[_0x483dbc,_0x41c410]=_0x4ebd7a(()=>new Map()),_0xf3b021=_0x26d744((_0x4935fb,_0x5f5087)=>{_0x41c410(_0x4db09d=>{const _0x5585f3=_0x187c;let _0x449013=new Map(_0x4db09d);return _0x5f5087?_0x449013[_0x5585f3(0x166)](_0x4935fb,_0x5f5087):_0x449013['delete'](_0x4935fb),_0x449013;});},[]),_0x1186dd=_0x5056f6(()=>_0x53d840[_0x579ef5(0x9a)][_0x579ef5(0x209)](_0x51821f(()=>_0x53d840[_0x579ef5(0x18b)](_0x3685a3,_0x344e64))),_0x53d840[_0x579ef5(0x18b)](_0x3685a3,_0x344e64),!0x1,[_0x344e64,_0x53d840,_0x3685a3]),_0x53b4d2=_0x30df4c[_0x579ef5(0x17d)](_0x3685a3,_0x247fc0[_0x579ef5(0x324)]),_0x52d1e8=_0x5056f6(()=>_0x32ca48[_0x579ef5(0xfb)],{'undos':0x0,'redos':0x0},!0x1,[_0x32ca48]),_0x1caeb0=vr(_0x3685a3,_0x344e64);if(_0x185176(()=>{const _0xb2a5be=_0x579ef5;_0x30df4c[_0xb2a5be(0x25c)](_0x3685a3),_0x30df4c['focusUnit'](_0x3685a3);},[_0x30df4c,_0x3685a3]),!_0x1186dd||!_0x53b4d2)return null;let _0x25cbea={'unitId':_0x3685a3,'objectId':_0x4b369a(_0x344e64),'objectType':_0x346fe7[_0x579ef5(0x37b)]},_0x3f4dfc=(_0x9664e1,_0x30dc42)=>{const _0x2b7077=_0x579ef5;let _0x500cb9=[..._0x1186dd['widgetOrder']],_0x19bbff=_0x500cb9[_0x2b7077(0x34f)](_0x9664e1),_0x35313e=_0x19bbff+_0x30dc42;if(!(_0x19bbff<0x0||_0x35313e<0x0||_0x35313e>=_0x500cb9[_0x2b7077(0x193)]))return[_0x500cb9[_0x19bbff],_0x500cb9[_0x35313e]]=[_0x500cb9[_0x35313e],_0x500cb9[_0x19bbff]],_0x419f5b['executeCommand'](_0x1e3e1b['id'],{'unitId':_0x3685a3,'dashboard':{..._0x1186dd,'widgetOrder':_0x500cb9}});},_0x4d9180=_0x59e56e=>_0x419f5b[_0x579ef5(0x3e3)](_0x1041db['id'],{'unitId':_0x3685a3,'dashboardId':_0x344e64,'widget':_0x59e56e})[_0x579ef5(0x26d)](()=>void 0x0),_0x265dd0=(_0x2b0e00,_0x240f1f,_0xa7dfb7)=>{const _0x11d10f=_0x579ef5;let _0x3ae9a0=Math['max'](0x0,..._0x1186dd['widgetOrder']['flatMap'](_0x1a4921=>{const _0x19c0ab=_0x187c;var _0x32461e;let _0x29eb02=(_0x32461e=_0x1186dd[_0x19c0ab(0x1f6)][_0x1a4921])==null?void 0x0:_0x32461e[_0x19c0ab(0x3e1)];return _0x29eb02?[_0x29eb02[_0x19c0ab(0x1f2)]+_0x29eb02[_0x19c0ab(0x314)]]:[];})),_0x3d48cc='dashboard-widget-'+_0x2cedf9(0x8),_0x8e074a={'column':0x0,'row':_0x3ae9a0,'columnSpan':_0x240f1f,'rowSpan':_0xa7dfb7};switch(_0x2b0e00[_0x11d10f(0x278)]){case _0x4dd1ab[_0x11d10f(0x173)]:return _0x4d9180({..._0x2b0e00,'id':_0x3d48cc,'layout':_0x8e074a});case _0x4dd1ab['TableFilter']:return _0x4d9180({..._0x2b0e00,'id':_0x3d48cc,'layout':_0x8e074a});case _0x4dd1ab[_0x11d10f(0x1c9)]:return _0x4d9180({..._0x2b0e00,'id':_0x3d48cc,'layout':_0x8e074a});case _0x4dd1ab[_0x11d10f(0x3c0)]:return _0x4d9180({..._0x2b0e00,'id':_0x3d48cc,'layout':_0x8e074a});case _0x4dd1ab[_0x11d10f(0x2c2)]:return _0x4d9180({..._0x2b0e00,'id':_0x3d48cc,'layout':_0x8e074a});}},_0x2e1d94=_0x53b4d2[_0x579ef5(0x3e8)](),_0x1f54d1=_0x2e1d94['tableOrder'][_0x579ef5(0x1ac)](_0xeee8e1=>{const _0x118a13=_0x579ef5;let _0x3d12aa=_0x2e1d94['tables'][_0xeee8e1];if(!_0x3d12aa)return[];let _0x5e779e=_0x3d12aa[_0x118a13(0x389)][_0x118a13(0x1ac)](_0x1ea831=>{const _0x4407b5=_0x118a13;let _0x198e33=_0x3d12aa[_0x4407b5(0x2eb)][_0x1ea831];return Ai(_0x198e33)?[{'type':_0x4407b5(0x321),'children':_0x198e33[_0x4407b5(0x3d7)],'onSelect':()=>_0x265dd0({'type':_0x4dd1ab[_0x4407b5(0x173)],'tableId':_0xeee8e1,'pivotViewId':_0x1ea831,'chart':{..._0x198e33[_0x4407b5(0xa7)][_0x4407b5(0x204)]}},0x6,0xa)}]:[];});return[{'type':_0x118a13(0xee),'children':_0x3d12aa[_0x118a13(0x3d7)],'options':[..._0x5e779e,..._0x5e779e[_0x118a13(0x193)]?[{'type':_0x118a13(0x1fd)}]:[],{'type':_0x118a13(0x321),'children':_0x24e3bd['t'](_0x118a13(0x108)),'onSelect':()=>_0x265dd0({'type':_0x4dd1ab[_0x118a13(0x296)],'tableId':_0xeee8e1,'filter':null},0x6,0x8)}]}];}),_0x81f383=[..._0x1f54d1,..._0x1f54d1['length']?[{'type':_0x579ef5(0x1fd)}]:[],{'type':_0x579ef5(0x321),'children':_0x24e3bd['t']('bases-dashboard-ui.dashboard.text'),'onSelect':()=>_0x265dd0({'type':_0x4dd1ab[_0x579ef5(0x1c9)],'document':Ei()},0x4,0x6)},{'type':'item','children':_0x24e3bd['t'](_0x579ef5(0x2a4)),'onSelect':()=>Di(_0x32d2dc)[_0x579ef5(0xa4)](_0x41be3b=>_0x41be3b&&_0x265dd0({'type':_0x4dd1ab['Image'],'source':_0x41be3b[_0x579ef5(0x136)],'sourceType':_0x41be3b['sourceType'],'alt':_0x41be3b[_0x579ef5(0x3d7)],'displayMode':_0x579ef5(0x15c)},0x4,0x6))},{'type':_0x579ef5(0x321),'children':_0x24e3bd['t'](_0x579ef5(0x38b)),'onSelect':()=>{const _0x2c40e6=_0x579ef5;let _0x67bae1=_0x2e1d94[_0x2c40e6(0x232)]['find'](_0x4c1339=>_0x2e1d94[_0x2c40e6(0x3b5)][_0x4c1339]);_0x67bae1&&_0x265dd0({'type':_0x4dd1ab[_0x2c40e6(0x2c2)],'tableId':_0x67bae1,'shapeType':_0x5d0718[_0x2c40e6(0x226)],'shapeData':_0x154b06(),'description':_0x24e3bd['t'](_0x2c40e6(0x38b))},0x4,0x6);}}],_0x1c0c53=_0x45e171?_0x1186dd[_0x579ef5(0x1f6)][_0x45e171]:void 0x0,_0x5ecdcc=()=>_0x250275(_0xd7f9c9=>!_0xd7f9c9),_0xf7478c=_0x2f0eff||_0x1fa87d,_0xfb6a63=_0x1caeb0&&!_0xf7478c;return _0x5628d9(Jr,{'children':_0x2fa798(_0x579ef5(0x334),{'className':_0x579ef5(0x38f)+(_0x1fa87d?_0x579ef5(0x1ce):_0x579ef5(0x12f))+_0x579ef5(0x205),'children':[_0x1fa87d&&_0x5628d9(_0x101ca4,{'onClick':()=>_0x250275(!0x1),'children':_0x24e3bd['t']('bases-dashboard-ui.dashboardInspector.close')}),!_0xf7478c&&_0x2fa798(_0x579ef5(0x148),{'className':_0x579ef5(0x283),'children':[_0x5628d9(_0x5f4d2a,{'className':_0x579ef5(0x224)}),_0x5628d9('h2',{'className':_0x579ef5(0x327),'children':_0x1186dd[_0x579ef5(0x3d7)]}),_0x31d123[_0x579ef5(0x1dd)](_0x25cbea)&&_0x5628d9(_0x101ca4,{'variant':_0x579ef5(0x2e2),'disabled':!_0x31d123[_0x579ef5(0x26f)](_0x25cbea),'aria-label':_0x24e3bd['t'](_0x579ef5(0x382)),'onClick':()=>{const _0x1d64b0=_0x579ef5;_0x523b72(_0x1d0650,{'target':_0x25cbea,'name':_0x1186dd[_0x1d64b0(0x3d7)],'commandId':_0x5205b3['id'],'exists':()=>!!_0x53d840[_0x1d64b0(0x18b)](_0x3685a3,_0x344e64)});},'children':_0x5628d9(_0x44f2df,{})}),_0x5628d9(_0x450293,{'unitId':_0x3685a3}),_0x5628d9(_0x101ca4,{'type':_0x579ef5(0x11f),'size':_0x579ef5(0x147),'variant':_0x579ef5(0x2e2),'aria-label':_0x24e3bd['t'](_0x579ef5(0x1a1)),'disabled':!_0x1caeb0||_0x52d1e8[_0x579ef5(0x13a)]===0x0,'onClick':()=>_0x419f5b['executeCommand'](_0x1c6299['id'])[_0x579ef5(0x26d)](()=>void 0x0),'children':_0x5628d9(_0x4e88b7,{})}),_0x5628d9(_0x101ca4,{'type':_0x579ef5(0x11f),'size':_0x579ef5(0x147),'variant':_0x579ef5(0x2e2),'aria-label':_0x24e3bd['t'](_0x579ef5(0xea)),'disabled':!_0x1caeb0||_0x52d1e8[_0x579ef5(0x2a7)]===0x0,'onClick':()=>_0x419f5b[_0x579ef5(0x3e3)](_0x5eb015['id'])[_0x579ef5(0x26d)](()=>void 0x0),'children':_0x5628d9(_0x245c5e,{})}),_0x5628d9(_0x101ca4,{'type':_0x579ef5(0x11f),'size':_0x579ef5(0x147),'variant':_0x579ef5(0x2e2),'aria-label':_0x24e3bd['t'](_0x579ef5(0x13c)),'onClick':_0x5ecdcc,'children':_0x5628d9(_0x6d0af7,{})}),_0x5628d9(Xr,{'items':_0x81f383,'children':_0x2fa798(_0x101ca4,{'variant':_0x579ef5(0x22d),'disabled':!_0x1caeb0,'children':[_0x5628d9(_0x4f1759,{}),_0x24e3bd['t'](_0x579ef5(0xe9))]})})]}),_0x2fa798(_0x579ef5(0x334),{'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1','children':[_0x5628d9(_0x579ef5(0x334),{'className':_0x579ef5(0x1e5),'children':_0x5628d9(Kr,{'dashboard':_0x1186dd,'editable':_0xfb6a63,'widgetLabel':_0x10ffd8=>_0x24e3bd['t'](ki(_0x10ffd8[_0x579ef5(0x278)])),'selectedWidgetId':_0xfb6a63?_0x45e171:void 0x0,'onSelectWidget':_0xfb6a63?_0x54c664=>{_0x245b72(_0x54c664),_0x54c664||_0x1b6d4a(!0x1);}:void 0x0,'renderWidget':_0x4e33b9=>_0x5628d9(Ci,{'base':_0x53b4d2,'dashboard':_0x1186dd,'unitId':_0x3685a3,'widget':_0x4e33b9,'onChange':_0x4d9180,'onChartRuntimeChange':_0xf3b021}),'renderWidgetActions':_0x10ea10=>_0x5628d9(xi,{'onMoveUp':_0x1186dd[_0x579ef5(0x3a0)][_0x579ef5(0x34f)](_0x10ea10['id'])>0x0?()=>_0x3f4dfc(_0x10ea10['id'],-0x1):void 0x0,'onMoveDown':_0x1186dd[_0x579ef5(0x3a0)][_0x579ef5(0x34f)](_0x10ea10['id'])<_0x1186dd[_0x579ef5(0x3a0)][_0x579ef5(0x193)]-0x1?()=>_0x3f4dfc(_0x10ea10['id'],0x1):void 0x0,'onEdit':()=>{_0x245b72(_0x10ea10['id']),_0x1b6d4a(!0x0);},'onDelete':()=>{const _0x59da80=_0x579ef5;_0x45e171===_0x10ea10['id']&&(_0x245b72(void 0x0),_0x1b6d4a(!0x1)),_0x419f5b[_0x59da80(0x3e3)](_0x105c7d['id'],{'unitId':_0x3685a3,'dashboardId':_0x344e64,'widgetId':_0x10ea10['id']})[_0x59da80(0x26d)](()=>void 0x0);}})})}),_0xfb6a63&&_0x14c7cb&&_0x1c0c53&&_0x5628d9(pi,{'base':_0x53b4d2,'chartRuntime':_0x483dbc['get'](_0x1c0c53['id']),'unitId':_0x3685a3,'widget':_0x1c0c53,'onChange':_0x4d9180,'onClose':()=>_0x1b6d4a(!0x1),'onSelectBackgroundImage':()=>Oi(_0x45a81e),'onSelectImage':()=>Di(_0x32d2dc)})]})]})});}function Ci({base:_0x3a18bd,dashboard:_0xe9b27f,onChange:_0x43b75b,onChartRuntimeChange:_0x2027c4,unitId:_0x4055cd,widget:_0xd56595}){const _0x218b06=_0x5d48da;let _0xa42cf8=_0x5c672b(()=>_0xe9b27f[_0x218b06(0x3a0)][_0x218b06(0x1ac)](_0x1bd3cb=>{const _0x358f7d=_0x218b06;let _0x3b8d9e=_0xe9b27f[_0x358f7d(0x1f6)][_0x1bd3cb];return(_0x3b8d9e==null?void 0x0:_0x3b8d9e[_0x358f7d(0x278)])===_0x4dd1ab[_0x358f7d(0x296)]&&_0x3b8d9e[_0x358f7d(0x9d)]===(_0x358f7d(0x9d)in _0xd56595?_0xd56595[_0x358f7d(0x9d)]:'')&&_0x3b8d9e[_0x358f7d(0x122)]?[_0x3b8d9e[_0x358f7d(0x122)]]:[];}),[_0xe9b27f,_0xd56595]);switch(_0xd56595['type']){case _0x4dd1ab[_0x218b06(0x173)]:return _0x5628d9(zr,{'filters':_0xa42cf8,'unitId':_0x4055cd,'widget':_0xd56595,'onRuntimeChange':_0x2027c4});case _0x4dd1ab['TableFilter']:return _0x5628d9(di,{'fields':wi(_0x3a18bd,_0xd56595[_0x218b06(0x9d)]),'filter':_0xd56595[_0x218b06(0x122)],'onChange':_0x1814e4=>_0x43b75b({..._0xd56595,'filter':_0x1814e4})[_0x218b06(0x26d)](()=>void 0x0)});case _0x4dd1ab[_0x218b06(0x1c9)]:return _0x5628d9(Gr,{'widget':_0xd56595});case _0x4dd1ab[_0x218b06(0x3c0)]:return _0x5628d9(Ti,{'widget':_0xd56595});case _0x4dd1ab['FormulaShape']:return _0x5628d9(kr,{'dashboardId':_0xe9b27f['id'],'unitId':_0x4055cd,'widget':_0xd56595});}}function wi(_0x1465c7,_0x3f5c77){const _0x5177cf=_0x5d48da;let _0x277a64=_0x1465c7[_0x5177cf(0x3e8)]()[_0x5177cf(0x3b5)][_0x3f5c77],_0xd52c79=_0x277a64==null?void 0x0:_0x277a64['viewOrder']['find'](_0x4427e7=>_0x277a64['views'][_0x4427e7]),_0x4ed7b2=_0xd52c79?_0x277a64==null?void 0x0:_0x277a64[_0x5177cf(0x2eb)][_0xd52c79]:void 0x0;return _0x277a64&&_0x4ed7b2?_0x28d476(_0x277a64,_0x4ed7b2):[];}function Ti({widget:_0x41aab8}){const _0x39cf2f=_0x5d48da;let _0x42c68f=_0x40463f(_0x5b5322),[_0x4c0d9f,_0x38a241]=_0x4ebd7a(_0x41aab8[_0x39cf2f(0xa8)]===_0x3892df[_0x39cf2f(0xe0)]?'':_0x41aab8[_0x39cf2f(0x136)]);return _0x185176(()=>{const _0xbe77ad=_0x39cf2f;let _0x28841f=!0x0;return _0x42c68f[_0xbe77ad(0x2bd)](_0x41aab8[_0xbe77ad(0x136)],_0x41aab8[_0xbe77ad(0xa8)])[_0xbe77ad(0xa4)](_0x1093a8=>{_0x28841f&&_0x38a241(_0x1093a8);})[_0xbe77ad(0x26d)](()=>void 0x0),()=>{_0x28841f=!0x1;};},[_0x42c68f,_0x41aab8[_0x39cf2f(0x136)],_0x41aab8['sourceType']]),_0x4c0d9f?_0x5628d9(_0x39cf2f(0x334),{'role':_0x41aab8['alt']?_0x39cf2f(0xeb):void 0x0,'aria-label':_0x41aab8[_0x39cf2f(0x250)]||void 0x0,'data-dashboard-image':_0x41aab8['id'],'className':_0x39cf2f(0x2b9),'style':br(_0x4c0d9f,_0x41aab8[_0x39cf2f(0x31a)])}):null;}function Ei(){const _0x1d55e3=_0x5d48da;let _0x193659=_0x1be82d(new Set());return{'id':_0x1d55e3(0x390)+_0x2cedf9(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x193659}]},'documentStyle':{}};}function Di(_0x33f46e){return new Promise(_0x1e65df=>{const _0x42e3a7=_0x187c;let _0x76a4d2=document['createElement']('input');_0x76a4d2[_0x42e3a7(0x278)]='file',_0x76a4d2[_0x42e3a7(0x177)]='image/*',_0x76a4d2[_0x42e3a7(0x17a)]('change',()=>{const _0x5efeb4=_0x42e3a7;var _0x3b3110;let _0x360d57=(_0x3b3110=_0x76a4d2[_0x5efeb4(0x170)])==null?void 0x0:_0x3b3110[0x0];_0x360d57?_0x33f46e[_0x5efeb4(0x131)](_0x360d57)[_0x5efeb4(0xa4)](_0x5c8ac8=>{const _0x36f771=_0x5efeb4;!_0x5c8ac8[_0x36f771(0x136)]||_0x5c8ac8[_0x36f771(0xa8)]===void 0x0?_0x1e65df(null):_0x1e65df({'name':_0x5c8ac8['name'],'source':_0x5c8ac8['source'],'sourceType':_0x5c8ac8[_0x36f771(0xa8)]});})[_0x5efeb4(0x26d)](()=>_0x1e65df(null)):_0x1e65df(null);},{'once':!0x0}),_0x76a4d2[_0x42e3a7(0x3c4)]();});}function Oi(_0x574f76){return new Promise(_0x29ca06=>{const _0x35ab79=_0x187c;let _0x1ccbd8=document[_0x35ab79(0x365)]('input');_0x1ccbd8[_0x35ab79(0x278)]='file',_0x1ccbd8['accept']=_0x35ab79(0x115),_0x1ccbd8[_0x35ab79(0x17a)](_0x35ab79(0x1ea),()=>{const _0x2b4496=_0x35ab79;var _0x4d336;let _0x26c5db=(_0x4d336=_0x1ccbd8[_0x2b4496(0x170)])==null?void 0x0:_0x4d336[0x0];_0x26c5db?_0x574f76['saveImage'](_0x26c5db)[_0x2b4496(0xa4)](_0x54b034=>{const _0x299753=_0x2b4496;if(!(_0x54b034!=null&&_0x54b034[_0x299753(0x136)]))_0x29ca06(null);else{if(_0x54b034[_0x299753(0x1ef)]){let _0x4548fe=new Image();_0x4548fe[_0x299753(0x1f5)]=_0x54b034[_0x299753(0x1ef)],_0x574f76[_0x299753(0xf9)](_0x54b034[_0x299753(0x136)],_0x54b034[_0x299753(0x1c0)],_0x4548fe);}_0x29ca06({'source':_0x54b034[_0x299753(0x136)],'sourceType':_0x54b034['imageSourceType']});}})['catch'](()=>_0x29ca06(null)):_0x29ca06(null);},{'once':!0x0}),_0x1ccbd8['click']();});}function ki(_0x5ede19){const _0x3914bf=_0x5d48da;switch(_0x5ede19){case _0x4dd1ab['PivotChart']:return _0x3914bf(0x1ca);case _0x4dd1ab[_0x3914bf(0x296)]:return _0x3914bf(0x108);case _0x4dd1ab[_0x3914bf(0x1c9)]:return _0x3914bf(0x126);case _0x4dd1ab[_0x3914bf(0x3c0)]:return _0x3914bf(0x2a4);case _0x4dd1ab['FormulaShape']:return'bases-dashboard-ui.dashboard.formulaShape';}}function Ai(_0x183ddd){const _0x3a32ba=_0x5d48da;return(_0x183ddd==null?void 0x0:_0x183ddd[_0x3a32ba(0x278)])===_0xc74f11[_0x3a32ba(0xe1)]&&typeof _0x183ddd[_0x3a32ba(0xa7)]==_0x3a32ba(0x262)&&_0x183ddd['config']!==null&&_0x3a32ba(0x106)in _0x183ddd[_0x3a32ba(0xa7)]&&_0x3a32ba(0x204)in _0x183ddd[_0x3a32ba(0xa7)];}function ji({pivot:_0x7f2cc,view:_0x41d75c}){const _0x38921c=_0x5d48da;let _0x4c13e6=_0x40463f(_0x1ecd96),_0x1818b3=_0x5c672b(()=>Mi(_0x41d75c,_0x7f2cc,_0x4c13e6['t'](_0x38921c(0x3e9))),[_0x4c13e6,_0x7f2cc,_0x41d75c]);return _0x2fa798(_0x38921c(0x334),{'className':'univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','children':[_0x1818b3[_0x38921c(0x330)]['length']>0x0&&_0x5628d9(_0x38921c(0x2d3),{'className':_0x38921c(0x267),'children':_0x5628d9(_0x38921c(0x151),{'children':Ni(_0x1818b3[_0x38921c(0x330)])})}),_0x2fa798(_0x38921c(0x2d3),{'className':'univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','children':[_0x1818b3['headerRowCount']>0x0&&_0x5628d9(_0x38921c(0x3d9),{'className':_0x38921c(0x2b3),'children':Ni(_0x1818b3[_0x38921c(0x2c9)]['slice'](0x0,_0x1818b3['headerRowCount']))}),_0x5628d9(_0x38921c(0x151),{'children':Ni(_0x1818b3[_0x38921c(0x2c9)][_0x38921c(0x165)](_0x1818b3[_0x38921c(0x184)]))})]})]});}function Mi(_0x57491d,_0x442b68,_0x2e7fd1){const _0x8c85b=_0x5d48da;let _0xaa0d1a=_0x57491d[_0x8c85b(0x398)][_0x8c85b(0x1e7)],_0x25398b=_0x57491d[_0x8c85b(0x289)][_0x8c85b(0x24c)],_0x583ddf=_0x57491d[_0x8c85b(0x256)]['rowCount'],_0x2cad1e=_0x57491d[_0x8c85b(0x256)]['colCount'],_0x18824b=Array[_0x8c85b(0x191)]({'length':_0xaa0d1a+_0x583ddf},(_0x3082f6,_0x1410a5)=>Array[_0x8c85b(0x191)]({'length':_0x25398b+_0x2cad1e},(_0x3acda9,_0x4f26f4)=>{const _0x4196a1=_0x8c85b;var _0xc9c05a,_0x115433;if(_0x1410a5<_0xaa0d1a&&_0x4f26f4<_0x25398b)return Pi(_0x57491d[_0x4196a1(0x1cb)],_0x1410a5,_0x4f26f4,void 0x0,_0x2e7fd1,!0x0,!0x1,'corner:'+_0x1410a5+':'+_0x4f26f4);if(_0x1410a5<_0xaa0d1a){var _0x710fca;let _0x1484be=_0x4f26f4-_0x25398b,_0x23bf38=(_0x710fca=_0x57491d[_0x4196a1(0x398)][_0x4196a1(0x1aa)][_0x1410a5])==null?void 0x0:_0x710fca[_0x4196a1(0x359)];return Pi(_0x57491d[_0x4196a1(0x398)],_0x1410a5,_0x1484be,_0x23bf38?_0x57491d[_0x4196a1(0x1c7)][_0x23bf38]:void 0x0,_0x2e7fd1,!0x0,Li(_0x57491d['colView'][_0x4196a1(0x12c)][_0x1484be]),_0x4196a1(0x11d)+_0x1410a5+':'+_0x1484be);}if(_0x4f26f4<_0x25398b){var _0x495a73;let _0x9e645e=_0x1410a5-_0xaa0d1a,_0xcdf512=(_0x495a73=_0x57491d[_0x4196a1(0x289)]['headerMap'][_0x4f26f4])==null?void 0x0:_0x495a73[_0x4196a1(0x359)];return Pi(_0x57491d[_0x4196a1(0x289)],_0x9e645e,_0x4f26f4,_0xcdf512?_0x57491d[_0x4196a1(0x1c7)][_0xcdf512]:void 0x0,_0x2e7fd1,!0x0,Li(_0x57491d[_0x4196a1(0x289)][_0x4196a1(0x12c)][_0x9e645e]),_0x4196a1(0x22e)+_0x9e645e+':'+_0x4f26f4);}let _0x403928=_0x1410a5-_0xaa0d1a,_0x1dbede=_0x4f26f4-_0x25398b,_0x31c253=Math['max'](((_0xc9c05a=_0x57491d[_0x4196a1(0x289)][_0x4196a1(0x12c)][_0x403928])==null?void 0x0:_0xc9c05a[_0x4196a1(0x309)])??-0x1,((_0x115433=_0x57491d['colView'][_0x4196a1(0x12c)][_0x1dbede])==null?void 0x0:_0x115433[_0x4196a1(0x309)])??-0x1),_0x52cf8e=_0x442b68[_0x4196a1(0x2c5)][_0x31c253<0x0?0x0:_0x31c253];return Pi(_0x57491d[_0x4196a1(0x256)],_0x403928,_0x1dbede,_0x52cf8e?_0x57491d[_0x4196a1(0x1c7)][_0x52cf8e]:void 0x0,_0x2e7fd1,!0x1,Li(_0x57491d['rowView'][_0x4196a1(0x12c)][_0x403928])||Li(_0x57491d[_0x4196a1(0x398)]['info'][_0x1dbede]),_0x4196a1(0x25f)+_0x403928+':'+_0x1dbede);}));return{'headerColumnCount':_0x25398b,'headerRowCount':_0xaa0d1a,'pageRows':_0x57491d[_0x8c85b(0x322)][_0x8c85b(0x244)]<0x0||_0x57491d[_0x8c85b(0x322)]['lastCol']<0x0?[]:Array['from']({'length':_0x57491d[_0x8c85b(0x322)][_0x8c85b(0x244)]+0x1},(_0x23ce06,_0x5b3991)=>Array[_0x8c85b(0x191)]({'length':_0x57491d[_0x8c85b(0x322)][_0x8c85b(0x2e9)]+0x1},(_0x98630a,_0x57c095)=>Pi(_0x57491d[_0x8c85b(0x322)],_0x5b3991,_0x57c095,void 0x0,_0x2e7fd1,!0x0,!0x1,'page:'+_0x5b3991+':'+_0x57c095))),'rows':_0x18824b};}function Ni(_0x2e69a8){const _0x49d01d=_0x5d48da;return _0x2e69a8[_0x49d01d(0x2ea)](_0x134280=>{const _0x3ab10b=_0x49d01d;var _0x527abd;return _0x5628d9('tr',{'children':_0x134280[_0x3ab10b(0x2ea)](_0x380cbc=>{const _0x4ebd6b=_0x3ab10b;let _0x481282=_0x380cbc[_0x4ebd6b(0x26e)]?'th':'td';return _0x5628d9(_0x481282,{'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'+(_0x380cbc[_0x4ebd6b(0x196)]?_0x4ebd6b(0x1ee):'')+_0x4ebd6b(0x23d)+(_0x380cbc[_0x4ebd6b(0x26e)]?'':_0x4ebd6b(0xf8))+_0x4ebd6b(0x1d3),'children':_0x380cbc['value']},_0x380cbc[_0x4ebd6b(0x2d0)]);})},(_0x527abd=_0x134280[0x0])==null?void 0x0:_0x527abd[_0x3ab10b(0x2d0)]);});}function Pi(_0x5c8711,_0x180e28,_0x353fe7,_0x21554d,_0x1286e3,_0x559a8e,_0x5cbd68,_0x55e177){const _0x4604fc=_0x5d48da;var _0x2f20e1;let _0x43fd7c=(_0x2f20e1=_0x5c8711[_0x4604fc(0x373)][_0x180e28])==null?void 0x0:_0x2f20e1[_0x353fe7],_0x189405=_0x43fd7c==null?void 0x0:_0x43fd7c['s'],_0x5a6571=_0x5cbd68||_0x189405===_0x1dbe62['GrandTotal']||_0x189405===_0x1dbe62[_0x4604fc(0x1f4)];return{'isHeader':_0x559a8e,'isTotal':_0x5a6571||_0x189405===_0x1dbe62['Subtotal'],'key':_0x55e177,'style':_0x189405,'value':_0x5a6571&&Ii(_0x43fd7c==null?void 0x0:_0x43fd7c['v'])?_0x1286e3:Fi(_0x43fd7c,_0x21554d)};}function Fi(_0x57f2f3,_0x1d8b95){const _0x2cccb1=_0x5d48da;let _0x5c1738=_0x57f2f3==null?void 0x0:_0x57f2f3['v'];return _0x2b18e7(_0x5c1738)?String(_0x5c1738['value']??_0x5c1738[_0x2cccb1(0x300)]??''):_0x3e551d(_0x5c1738)?'#'+_0x5c1738['errorType']:_0x1d8b95&&typeof _0x5c1738==_0x2cccb1(0x31b)?_0x52ec2b[_0x2cccb1(0x231)](_0x1d8b95,_0x5c1738):String(_0x5c1738??'');}function Ii(_0x317726){return _0x317726===void 0x0||_0x317726==='';}function Li(_0x3b1f8d){const _0x2fee8c=_0x5d48da;return!!(_0x3b1f8d!=null&&_0x3b1f8d['isBottomTotal']||_0x3b1f8d!=null&&_0x3b1f8d[_0x2fee8c(0x16a)]||_0x3b1f8d!=null&&_0x3b1f8d[_0x2fee8c(0x279)]||(_0x3b1f8d==null?void 0x0:_0x3b1f8d[_0x2fee8c(0x391)])===_0x2fee8c(0x2c4));}const Ri=[{'area':_0x87fd74[_0x5d48da(0x163)],'key':_0x5d48da(0x39e),'label':_0x5d48da(0xb5)},{'area':_0x87fd74['Column'],'key':_0x5d48da(0x21c),'label':_0x5d48da(0x1a4)},{'area':_0x87fd74[_0x5d48da(0x21e)],'key':_0x5d48da(0xd3),'label':_0x5d48da(0xce)},{'area':_0x87fd74[_0x5d48da(0x24b)],'key':_0x5d48da(0x2c5),'label':'bases-dashboard-ui.pivot.values'}],zi=[{'value':_0x3bfa9b[_0x5d48da(0x381)],'localeKey':_0x5d48da(0x1e0)},{'value':_0x3bfa9b[_0x5d48da(0x1b2)],'localeKey':_0x5d48da(0x3a5)},{'value':_0x3bfa9b[_0x5d48da(0x2f0)],'localeKey':'bases-dashboard-ui.pivot.countNumbers'},{'value':_0x3bfa9b[_0x5d48da(0x2ac)],'localeKey':_0x5d48da(0x117)},{'value':_0x3bfa9b['max'],'localeKey':_0x5d48da(0x2b0)},{'value':_0x3bfa9b[_0x5d48da(0x2cf)],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x3bfa9b[_0x5d48da(0x37e)],'localeKey':_0x5d48da(0x10d)},{'value':_0x3bfa9b['stdDev'],'localeKey':_0x5d48da(0xcd)},{'value':_0x3bfa9b[_0x5d48da(0x152)],'localeKey':_0x5d48da(0x32e)},{'value':_0x3bfa9b['var'],'localeKey':_0x5d48da(0x30e)},{'value':_0x3bfa9b[_0x5d48da(0x1b5)],'localeKey':_0x5d48da(0x104)}];function Bi(_0x476cb4){const _0x5c1add=_0x5d48da;let {config:_0x18305b,onChange:_0x42b47f,table:_0x1fd691}=_0x476cb4,_0x558896=_0x40463f(_0x1ecd96),[_0x44379d,_0x4c258e]=_0x4ebd7a(_0x5c1add(0x9b)),[_0x1ccee0,_0x298248]=_0x4ebd7a(''),[_0x1f362e,_0x134d56]=_0x4ebd7a(null),[_0x3a4df7,_0x560213]=_0x4ebd7a(null),[_0x33fd1e,_0xe63d9f]=_0x4ebd7a(null),[_0x4c2860,_0x5305c7]=_0x4ebd7a(null),_0x3e4e15=_0x25fc59(null),_0x4ee7f2=_0x5c672b(()=>_0x1fd691[_0x5c1add(0xb6)][_0x5c1add(0x1ac)](_0x1952e4=>{const _0x594a0a=_0x5c1add;let _0x48507a=_0x1fd691[_0x594a0a(0x9b)][_0x1952e4];return _0x48507a&&_0x48507a[_0x594a0a(0x3b4)]!==!0x0&&_0x48507a['type']!==_0x3bfbe2['RecordId']?[_0x48507a]:[];})['filter'](_0x11acd3=>_0x11acd3[_0x5c1add(0x3d7)][_0x5c1add(0x125)]()['includes'](_0x1ccee0[_0x5c1add(0x1b4)]()[_0x5c1add(0x125)]())),[_0x1ccee0,_0x1fd691]),_0x4622d5=_0x325b82=>{const _0x4566bb=_0x5c1add;let _0x358faf=_0x2a70ba(_0x1fd691,_0x18305b[_0x4566bb(0x106)]);try{_0x325b82(_0x358faf),_0x42b47f({'pivot':_0x358faf[_0x4566bb(0x265)]()});}finally{_0x358faf[_0x4566bb(0x1b9)]();}},_0x40f947=(_0x2c1830,_0x324d9b)=>{_0x1f362e&&(_0x4622d5(_0x1185d2=>{const _0x1c7387=_0x187c;if(_0x1f362e[_0x1c7387(0x27f)]==='field'){let _0x174706=_0x1185d2['getFieldPositionInfoById'](_0x1f362e['id']),_0xc17f06=_0x174706[_0x1c7387(0x1c3)]===_0x2c1830&&_0x174706[_0x1c7387(0x2ff)]<_0x324d9b?_0x324d9b-0x1:_0x324d9b;_0x1185d2[_0x1c7387(0x150)](_0x1f362e['id'],_0x2c1830,_0xc17f06);}else Ji(_0x1185d2,_0x1f362e['id'],_0x2c1830,_0x324d9b);}),_0x134d56(null),_0x560213(null));};return _0x2fa798(_0x5c1add(0x334),{'className':_0x5c1add(0x23e),'children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x558896['t'](_0x5c1add(0x1d7)),'className':_0x5c1add(0x3c9),'items':[{'label':_0x558896['t'](_0x5c1add(0x31d)),'panelId':_0x5c1add(0x1e9),'value':_0x5c1add(0x9b)},{'label':_0x558896['t'](_0x5c1add(0xb4)),'panelId':_0x5c1add(0x1d6),'value':_0x5c1add(0x2a1)}],'value':_0x44379d,'onChange':_0x4c258e}),_0x5628d9(_0x5c1add(0x334),{'ref':_0x3e4e15,'className':_0x37e66c('univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3',_0xb0e9d1),'onDragOver':_0x31cd82=>{const _0x5386f8=_0x5c1add;let _0xa6b15f=_0x3e4e15[_0x5386f8(0xe8)];if(!_0xa6b15f)return;let _0x264595=_0xa6b15f[_0x5386f8(0x319)]();_0x31cd82[_0x5386f8(0x134)]<_0x264595[_0x5386f8(0x171)]+0x30?_0xa6b15f[_0x5386f8(0x28a)]-=0x10:_0x31cd82['clientY']>_0x264595[_0x5386f8(0xdc)]-0x30&&(_0xa6b15f[_0x5386f8(0x28a)]+=0x10);},'children':_0x44379d===_0x5c1add(0x2a1)?_0x5628d9(qi,{'config':_0x18305b,'commit':_0x4622d5}):_0x2fa798(_0x5c1add(0x334),{'className':_0x5c1add(0x16c),'children':[_0x2fa798('div',{'children':[_0x5628d9(_0x5c1add(0x334),{'className':_0x5c1add(0x36e),'children':_0x558896['t']('bases-dashboard-ui.pivot.sourceFields')}),_0x5628d9(_0x5d579d,{'allowClear':!0x0,'slot':_0x5628d9(_0xa664ad,{}),'value':_0x1ccee0,'placeholder':_0x558896['t'](_0x5c1add(0x272)),'onChange':_0x298248}),_0x5628d9('div',{'className':_0x5c1add(0x1d0),'children':_0x4ee7f2[_0x5c1add(0x2ea)](_0x583cc2=>_0x5628d9(Vi,{'config':_0x18305b,'field':_0x583cc2,'onAdd':_0x12ad09=>_0x4622d5(_0x1eb3b3=>Ji(_0x1eb3b3,_0x583cc2['id'],_0x12ad09,_0x1eb3b3['getFieldCountByArea'](_0x12ad09))),'onCheckedChange':_0x3016b0=>_0x4622d5(_0x1becc9=>{const _0xc306dc=_0x5c1add;let _0x313ebb=_0x1becc9['getTableFieldsByDataFieldId'](_0x583cc2['id']);if(!_0x3016b0)_0x313ebb[_0xc306dc(0x3ce)](_0x3fea5e=>_0x1becc9['removeField'](_0x3fea5e[_0xc306dc(0x2ce)]()));else{if(_0x313ebb[_0xc306dc(0x193)]===0x0){let _0x3fc905=Xi(_0x583cc2)?_0x87fd74['Value']:_0x87fd74[_0xc306dc(0x21e)];_0x1becc9[_0xc306dc(0xd0)](_0x583cc2['id'],_0x3fc905);}}}),'onDragStart':()=>_0x134d56({'kind':_0x5c1add(0x136),'id':_0x583cc2['id']})},_0x583cc2['id']))})]}),_0x5628d9(_0x5c1add(0x334),{'className':'univer-grid\x20univer-gap-3','children':Ri['map'](_0x58ff9e=>_0x5628d9(Ui,{'area':_0x58ff9e[_0x5c1add(0x1c3)],'dropTarget':_0x3a4df7,'fields':_0x18305b['pivot'][_0x58ff9e[_0x5c1add(0x2d0)]],'label':_0x558896['t'](_0x58ff9e['label']),'snapshot':_0x18305b[_0x5c1add(0x106)],'onDragEnd':()=>{_0x134d56(null),_0x560213(null);},'onDragStart':_0x106852=>_0x134d56({'kind':'field','id':_0x106852,'area':_0x58ff9e[_0x5c1add(0x1c3)]}),'onDragOver':_0x1b2a73=>_0x560213({'area':_0x58ff9e[_0x5c1add(0x1c3)],'index':_0x1b2a73}),'onDrop':_0x5ab16=>_0x40f947(_0x58ff9e[_0x5c1add(0x1c3)],_0x5ab16),'onFilter':_0xe63d9f,'onMove':(_0x4cb7b5,_0x3e4166,_0x33c89f)=>_0x4622d5(_0x36a3b1=>_0x36a3b1[_0x5c1add(0x150)](_0x4cb7b5,_0x3e4166,_0x33c89f)),'onRemove':_0x1fd1d3=>_0x4622d5(_0x3e0e08=>_0x3e0e08['removeField'](_0x1fd1d3)),'onSettings':_0x5305c7},_0x58ff9e[_0x5c1add(0x1c3)]))}),_0x33fd1e&&_0x5628d9(Gi,{'fieldId':_0x33fd1e,'snapshot':_0x18305b[_0x5c1add(0x106)],'table':_0x1fd691,'onCancel':()=>_0xe63d9f(null),'onCommit':(_0x4cff8c,_0x20e130)=>{_0x4622d5(_0x1bdacb=>{const _0x1fc063=_0x187c;let _0x24aaa8=_0x1bdacb[_0x1fc063(0x110)](_0x33fd1e),_0x5a4d72=(_0x24aaa8==null?void 0x0:_0x24aaa8[_0x1fc063(0x252)])??[];_0x1bdacb['setLabelFilterInfo'](_0x33fd1e,{'type':_0x829bf6[_0x1fc063(0x254)],'list':_0x4cff8c,'isAll':_0x4cff8c[_0x1fc063(0x193)]===_0x5a4d72[_0x1fc063(0x193)]}),_0x1bdacb[_0x1fc063(0x1a8)](_0x33fd1e,_0x20e130===void 0x0?void 0x0:{'type':_0x20e130});}),_0xe63d9f(null);}},_0x33fd1e),_0x4c2860&&_0x5628d9(Ki,{'field':_0x18305b['pivot']['measure'][_0x4c2860],'onCancel':()=>_0x5305c7(null),'onCommit':(_0x2f02a5,_0x5b87eb,_0x60858)=>{_0x4622d5(_0x29f14a=>{const _0x58f02f=_0x187c;_0x29f14a[_0x58f02f(0x1a2)](_0x4c2860,_0x2f02a5),_0x29f14a[_0x58f02f(0x257)](_0x4c2860,_0x5b87eb),_0x29f14a[_0x58f02f(0x24a)](_0x4c2860,_0x60858||void 0x0);}),_0x5305c7(null);}},_0x4c2860)]})})]});}function Vi(_0x3d2847){const _0x247a2c=_0x5d48da;let {config:_0x107005,field:_0x4d409d,onAdd:_0x383b12,onCheckedChange:_0x463fd6,onDragStart:_0x1ca69a}=_0x3d2847,_0x220b94=_0x40463f(_0x1ecd96),_0x24a1c0=[...Object[_0x247a2c(0x370)](_0x107005[_0x247a2c(0x106)][_0x247a2c(0x1b7)]),...Object[_0x247a2c(0x370)](_0x107005['pivot'][_0x247a2c(0x347)])][_0x247a2c(0x353)](_0x161247=>_0x161247[_0x247a2c(0x275)]===_0x4d409d['id']),_0x1c729b=Ri[_0x247a2c(0x2ea)](_0x5aa2a0=>({'type':_0x247a2c(0x321),'children':_0x220b94['t'](Zi(_0x5aa2a0[_0x247a2c(0x1c3)])),'onSelect':()=>_0x383b12(_0x5aa2a0['area'])}));return _0x2fa798(_0x247a2c(0x334),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x247a2c(0x2bc),'onDragStart':_0x1ca69a,'children':[_0x5628d9(_0x57ed34,{'checked':_0x24a1c0,'onChange':_0x15e2d4=>_0x463fd6(!!_0x15e2d4)}),_0x5628d9(Hi,{'field':_0x4d409d}),_0x5628d9(_0x247a2c(0x339),{'className':_0x247a2c(0x3d3),'children':_0x4d409d[_0x247a2c(0x3d7)]}),_0x5628d9(Xr,{'align':_0x247a2c(0x1ed),'items':_0x1c729b,'children':_0x5628d9(_0x101ca4,{'variant':_0x247a2c(0x2e2),'aria-label':_0x220b94['t'](_0x247a2c(0x2e7)),'children':_0x5628d9(_0x3693ad,{})})})]});}function Hi({field:_0x36fe9a}){const _0x416411=_0x5d48da;return Xi(_0x36fe9a)?_0x5628d9(_0xfa6b5,{'className':'univer-text-gray-400'}):_0x36fe9a[_0x416411(0x278)]===_0x3bfbe2['Date']||_0x36fe9a['type']===_0x3bfbe2[_0x416411(0x302)]||_0x36fe9a[_0x416411(0x278)]===_0x3bfbe2[_0x416411(0x307)]?_0x5628d9(_0x143320,{'className':_0x416411(0x3d1)}):_0x5628d9(_0x45f36b,{'className':_0x416411(0x3d1)});}function Ui(_0x48547e){const _0xaf2b24=_0x5d48da;let {area:_0x238323,dropTarget:_0x34ba9e,fields:_0x460cbf,label:_0x379052,snapshot:_0x2520e2}=_0x48547e,_0x617c76=_0x40463f(_0x1ecd96);return _0x2fa798('section',{'className':_0x37e66c(_0xaf2b24(0x251),_0x3b0e1f),'onDragOver':_0x429b9f=>{const _0x553f3f=_0xaf2b24;_0x429b9f[_0x553f3f(0x394)](),_0x48547e['onDragOver'](_0x460cbf[_0x553f3f(0x193)]);},'onDrop':_0x39cf4c=>{const _0x2fbceb=_0xaf2b24;_0x39cf4c['preventDefault'](),_0x48547e[_0x2fbceb(0x1a7)]((_0x34ba9e==null?void 0x0:_0x34ba9e['area'])===_0x238323?_0x34ba9e[_0x2fbceb(0x2ff)]:_0x460cbf[_0x2fbceb(0x193)]);},'children':[_0x5628d9(_0xaf2b24(0x334),{'className':_0xaf2b24(0x3dc),'children':_0x379052}),_0x2fa798(_0xaf2b24(0x334),{'className':_0xaf2b24(0x342),'children':[_0x460cbf[_0xaf2b24(0x2ea)]((_0x2e8081,_0x3f2240)=>{const _0x26ea4b=_0xaf2b24;let _0x3f97e2=_0x2520e2[_0x26ea4b(0x1b7)][_0x2e8081]??_0x2520e2[_0x26ea4b(0x347)][_0x2e8081];if(!_0x3f97e2)return null;let _0x21aae2=(_0x34ba9e==null?void 0x0:_0x34ba9e['area'])===_0x238323&&_0x34ba9e[_0x26ea4b(0x2ff)]===_0x3f2240;return _0x2fa798(_0x26ea4b(0x334),{'onDragOver':_0xfff3e0=>{const _0x1753d7=_0x26ea4b;_0xfff3e0[_0x1753d7(0x394)](),_0xfff3e0[_0x1753d7(0xf7)]();let _0x58d5d4=_0xfff3e0[_0x1753d7(0x3c6)]['getBoundingClientRect']();_0x48547e[_0x1753d7(0x2cb)](_0x3f2240+ +(_0xfff3e0['clientY']>_0x58d5d4[_0x1753d7(0x171)]+_0x58d5d4['height']/0x2));},'onDrop':_0xadcd49=>{const _0x1d1e43=_0x26ea4b;_0xadcd49['preventDefault'](),_0xadcd49[_0x1d1e43(0xf7)](),_0x48547e[_0x1d1e43(0x1a7)]((_0x34ba9e==null?void 0x0:_0x34ba9e['area'])===_0x238323?_0x34ba9e[_0x1d1e43(0x2ff)]:_0x3f2240);},'children':[_0x21aae2&&_0x5628d9(_0x26ea4b(0x334),{'className':_0x26ea4b(0x3e4)}),_0x5628d9(Wi,{'area':_0x238323,'field':_0x3f97e2,'onDragEnd':_0x48547e[_0x26ea4b(0x37f)],'onDragStart':()=>_0x48547e[_0x26ea4b(0x293)](_0x2e8081),'onFilter':()=>_0x48547e[_0x26ea4b(0x12a)](_0x2e8081),'onMove':_0x4972e7=>_0x48547e[_0x26ea4b(0x397)](_0x2e8081,_0x4972e7,0x0),'onMoveUp':_0x3f2240>0x0?()=>_0x48547e[_0x26ea4b(0x397)](_0x2e8081,_0x238323,_0x3f2240-0x1):void 0x0,'onMoveDown':_0x3f2240<_0x460cbf[_0x26ea4b(0x193)]-0x1?()=>_0x48547e[_0x26ea4b(0x397)](_0x2e8081,_0x238323,_0x3f2240+0x1):void 0x0,'onRemove':()=>_0x48547e['onRemove'](_0x2e8081),'onSettings':()=>_0x48547e[_0x26ea4b(0x387)](_0x2e8081)})]},_0x2e8081);}),(_0x34ba9e==null?void 0x0:_0x34ba9e[_0xaf2b24(0x1c3)])===_0x238323&&_0x34ba9e[_0xaf2b24(0x2ff)]===_0x460cbf['length']&&_0x5628d9(_0xaf2b24(0x334),{'className':_0xaf2b24(0x3e4)}),_0x460cbf['length']===0x0&&_0x5628d9(_0xaf2b24(0x334),{'className':'univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','children':_0x617c76['t']('bases-dashboard-ui.pivot.sourceFields')})]})]});}function Wi(_0x4ac1ce){const _0x6e25f0=_0x5d48da;let _0x5a28b1=_0x40463f(_0x1ecd96),_0x270a44=_0x4ac1ce[_0x6e25f0(0x1c3)]===_0x87fd74[_0x6e25f0(0x24b)],_0xfe45b4=[...Ri['filter'](_0xe2f56a=>_0xe2f56a[_0x6e25f0(0x1c3)]!==_0x4ac1ce[_0x6e25f0(0x1c3)])[_0x6e25f0(0x2ea)](_0x16f89d=>({'type':_0x6e25f0(0x321),'children':_0x5a28b1['t'](Zi(_0x16f89d[_0x6e25f0(0x1c3)])),'onSelect':()=>_0x4ac1ce[_0x6e25f0(0x397)](_0x16f89d['area'])})),..._0x4ac1ce[_0x6e25f0(0x2f2)]?[{'type':'item','children':_0x5a28b1['t'](_0x6e25f0(0x323)),'onSelect':_0x4ac1ce['onMoveUp']}]:[],..._0x4ac1ce[_0x6e25f0(0x20e)]?[{'type':_0x6e25f0(0x321),'children':_0x5a28b1['t']('bases-dashboard-ui.mobile.moveDown'),'onSelect':_0x4ac1ce[_0x6e25f0(0x20e)]}]:[],{'type':_0x6e25f0(0x321),'children':_0x5a28b1['t'](_0x6e25f0(0x3c2)),'onSelect':_0x4ac1ce[_0x6e25f0(0x245)]},{'type':_0x6e25f0(0x321),'children':_0x5a28b1['t'](_0x270a44?_0x6e25f0(0x2e7):_0x6e25f0(0x28f)),'onSelect':_0x270a44?_0x4ac1ce[_0x6e25f0(0x387)]:_0x4ac1ce[_0x6e25f0(0x12a)]}];return _0x2fa798(_0x6e25f0(0x334),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x6e25f0(0x3a2),'onDragEnd':_0x4ac1ce['onDragEnd'],'onDragStart':_0x4ac1ce['onDragStart'],'children':[_0x5628d9(_0x2f0618,{'title':_0x4ac1ce[_0x6e25f0(0x22a)][_0x6e25f0(0x3bd)],'children':_0x5628d9(_0x6e25f0(0x339),{'className':_0x6e25f0(0x3d3),'children':_0x4ac1ce[_0x6e25f0(0x22a)][_0x6e25f0(0x3bd)]})}),_0x5628d9(Xr,{'align':_0x6e25f0(0x1ed),'items':_0xfe45b4,'children':_0x5628d9(_0x101ca4,{'variant':_0x6e25f0(0x2e2),'aria-label':_0x5a28b1['t']('bases-dashboard-ui.pivot.fieldSettings'),'children':_0x5628d9(_0x3693ad,{})})})]});}function Gi(_0x4eb1fa){const _0x4b1386=_0x5d48da;var _0x254f07,_0x6bffef;let _0x4e4b99=_0x40463f(_0x1ecd96),{format:_0x2ae7dc,items:_0x23024b,itemTypes:_0x5d544d}=_0x5c672b(()=>{const _0xad4fa0=_0x187c;let _0x175c6c=_0x2a70ba(_0x4eb1fa[_0xad4fa0(0x2d3)],_0x4eb1fa[_0xad4fa0(0x2f9)]);try{let _0x51e91c=_0x175c6c[_0xad4fa0(0x110)](_0x4eb1fa['fieldId']);return{'format':_0x51e91c==null?void 0x0:_0x51e91c['format'],'items':[...(_0x51e91c==null?void 0x0:_0x51e91c[_0xad4fa0(0x252)])??[]],'itemTypes':[...(_0x51e91c==null?void 0x0:_0x51e91c['itemTypes'])??[]]};}finally{_0x175c6c[_0xad4fa0(0x1b9)]();}},[_0x4eb1fa[_0x4b1386(0x221)],_0x4eb1fa['snapshot'],_0x4eb1fa['table']]),_0x3583d2=(_0x254f07=_0x4eb1fa[_0x4b1386(0x2f9)][_0x4b1386(0x1b7)][_0x4eb1fa[_0x4b1386(0x221)]])==null?void 0x0:_0x254f07['filterInfo'],[_0x292df1,_0x11de30]=_0x4ebd7a((_0x3583d2==null?void 0x0:_0x3583d2[_0x4b1386(0x278)])===_0x829bf6['ManualFilter']?_0x3583d2[_0x4b1386(0x2c1)]:_0x23024b),[_0x4a1acd,_0x4ebee4]=_0x4ebd7a((_0x6bffef=_0x4eb1fa[_0x4b1386(0x2f9)][_0x4b1386(0x1b7)][_0x4eb1fa['fieldId']])==null||(_0x6bffef=_0x6bffef['sortInfo'])==null?void 0x0:_0x6bffef[_0x4b1386(0x278)]),_0x585e08=_0x292df1[_0x4b1386(0x193)]===_0x23024b[_0x4b1386(0x193)],_0x4643bc=_0x2fa798(_0x4b1386(0x111),{'className':_0x37e66c(_0x4b1386(0x33e),_0x3b0e1f),'children':[_0x5628d9(_0x4b1386(0x334),{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0x4e4b99['t'](_0x4b1386(0x28f))}),_0x2fa798(_0x4b1386(0x334),{'className':'univer-flex','children':[_0x2fa798(_0x101ca4,{'className':_0x4b1386(0x3c7),'variant':_0x4a1acd===_0x1b5f3a[_0x4b1386(0x198)]?_0x4b1386(0x22d):'default','onClick':()=>_0x4ebee4(_0x1b5f3a[_0x4b1386(0x198)]),'children':[_0x5628d9(_0x558ec6,{}),_0x4e4b99['t'](_0x4b1386(0x28c))]}),_0x2fa798(_0x101ca4,{'className':_0x4b1386(0x3c7),'variant':_0x4a1acd===_0x1b5f3a[_0x4b1386(0x19c)]?_0x4b1386(0x22d):_0x4b1386(0x18c),'onClick':()=>_0x4ebee4(_0x1b5f3a[_0x4b1386(0x19c)]),'children':[_0x5628d9(_0x3c94ed,{}),_0x4e4b99['t'](_0x4b1386(0x2a8))]})]}),_0x2fa798(_0x4b1386(0x334),{'className':_0x4b1386(0x311),'children':[_0x2fa798('label',{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x5628d9(_0x57ed34,{'checked':_0x585e08,'indeterminate':_0x292df1[_0x4b1386(0x193)]>0x0&&!_0x585e08,'onChange':()=>_0x11de30(_0x585e08?[]:_0x23024b)}),_0x4e4b99['t'](_0x4b1386(0x233))]}),_0x23024b['map']((_0xff2918,_0x40b8d7)=>_0x2fa798(_0x4b1386(0x249),{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x5628d9(_0x57ed34,{'checked':_0x292df1[_0x4b1386(0x292)](_0xff2918),'onChange':()=>_0x11de30(_0xa10cff=>_0xa10cff[_0x4b1386(0x292)](_0xff2918)?_0xa10cff[_0x4b1386(0x122)](_0x1b8298=>_0x1b8298!==_0xff2918):[..._0xa10cff,_0xff2918])}),_0x5628d9(_0x4b1386(0x339),{'className':_0x4b1386(0xae),'children':Yi(_0xff2918,_0x5d544d[_0x40b8d7],_0x2ae7dc,_0x4e4b99['t']('bases-dashboard-ui.pivot.blank'))})]},_0xff2918))]}),_0x2fa798(_0x4b1386(0x334),{'className':_0x4b1386(0x1fc),'children':[_0x5628d9(_0x101ca4,{'variant':_0x4b1386(0x2ca),'onClick':()=>_0x4eb1fa[_0x4b1386(0x211)](_0x23024b,_0x4a1acd),'children':_0x4e4b99['t'](_0x4b1386(0x240))}),_0x2fa798('div',{'className':_0x4b1386(0x316),'children':[_0x5628d9(_0x101ca4,{'onClick':_0x4eb1fa[_0x4b1386(0x2db)],'children':_0x4e4b99['t'](_0x4b1386(0x2e6))}),_0x5628d9(_0x101ca4,{'variant':_0x4b1386(0x22d),'disabled':_0x292df1[_0x4b1386(0x193)]===0x0,'onClick':()=>_0x4eb1fa[_0x4b1386(0x211)](_0x292df1,_0x4a1acd),'children':_0x4e4b99['t'](_0x4b1386(0xdd))})]})]})]});return _0x5628d9(_0x19aa31,{'title':_0x4e4b99['t'](_0x4b1386(0x28f)),'onClose':_0x4eb1fa[_0x4b1386(0x2db)],'children':_0x4643bc});}function Ki(_0x48f8f7){const _0x193279=_0x5d48da;var _0x412db9,_0x4563dd,_0x3b0b11;let _0x39b5a3=_0x40463f(_0x1ecd96),[_0x24a857,_0x1185c4]=_0x4ebd7a(((_0x412db9=_0x48f8f7['field'])==null?void 0x0:_0x412db9[_0x193279(0x3bd)])??''),[_0x56c168,_0x49bc09]=_0x4ebd7a(((_0x4563dd=_0x48f8f7[_0x193279(0x22a)])==null?void 0x0:_0x4563dd['subtotal'])??_0x3bfa9b[_0x193279(0x381)]),[_0x26f337,_0x5dcd0a]=_0x4ebd7a(((_0x3b0b11=_0x48f8f7['field'])==null?void 0x0:_0x3b0b11[_0x193279(0x231)])??'');if(!_0x48f8f7[_0x193279(0x22a)])return null;let _0x523e24=_0x2fa798(_0x193279(0x111),{'className':_0x37e66c(_0x193279(0x23a),_0x3b0e1f),'children':[_0x5628d9(_0x193279(0x334),{'className':_0x193279(0x2d1),'children':_0x39b5a3['t']('bases-dashboard-ui.pivot.fieldSettings')}),_0x2fa798('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x39b5a3['t']('bases-dashboard-ui.pivot.displayName'),_0x5628d9(_0x5d579d,{'value':_0x24a857,'onChange':_0x1185c4})]}),_0x2fa798(_0x193279(0x249),{'className':_0x193279(0x10f),'children':[_0x39b5a3['t'](_0x193279(0x3ac)),_0x5628d9(Yr,{'value':String(_0x56c168),'options':zi['map'](_0x335844=>({'value':String(_0x335844[_0x193279(0x32d)]),'label':_0x39b5a3['t'](_0x335844[_0x193279(0x1f0)])})),'onChange':_0x3f8f8d=>{const _0x400e20=_0x193279;let _0x293d68=zi[_0x400e20(0x153)](_0x365454=>String(_0x365454[_0x400e20(0x32d)])===_0x3f8f8d);_0x293d68&&_0x49bc09(_0x293d68['value']);}})]}),_0x2fa798(_0x193279(0x249),{'className':_0x193279(0x10f),'children':[_0x39b5a3['t']('bases-dashboard-ui.pivot.numberFormat'),_0x5628d9(_0x5d579d,{'value':_0x26f337,'onChange':_0x5dcd0a})]}),_0x2fa798(_0x193279(0x334),{'className':_0x193279(0x15f),'children':[_0x5628d9(_0x101ca4,{'onClick':_0x48f8f7[_0x193279(0x2db)],'children':_0x39b5a3['t']('bases-dashboard-ui.pivot.cancel')}),_0x5628d9(_0x101ca4,{'variant':_0x193279(0x22d),'disabled':!_0x24a857['trim'](),'onClick':()=>_0x48f8f7[_0x193279(0x211)](_0x24a857[_0x193279(0x1b4)](),_0x56c168,_0x26f337),'children':_0x39b5a3['t'](_0x193279(0xdd))})]})]});return _0x5628d9(_0x19aa31,{'title':_0x39b5a3['t'](_0x193279(0x2e7)),'onClose':_0x48f8f7[_0x193279(0x2db)],'children':_0x523e24});}function qi(_0x40c212){const _0x29fc73=_0x5d48da;let {config:_0xf4db8a,commit:_0x52e448}=_0x40c212,_0x18f108=_0x40463f(_0x1ecd96),_0x5be5a7=_0xf4db8a[_0x29fc73(0x106)][_0x29fc73(0x2a1)],_0x1553c4=_0x129d92=>_0x52e448(_0x54156f=>_0x54156f['setOptions']({..._0x54156f[_0x29fc73(0x1f8)](),..._0x129d92}));return _0x2fa798(_0x29fc73(0x334),{'className':_0x29fc73(0x16c),'children':[_0x2fa798('label',{'className':_0x29fc73(0x238),'children':[_0x18f108['t'](_0x29fc73(0x2e4)),_0x5628d9(Yr,{'className':_0x29fc73(0x167),'value':String(_0xf4db8a[_0x29fc73(0x106)][_0x29fc73(0x3e1)]),'options':[{'value':String(_0xd936c5[_0x29fc73(0x116)]),'label':_0x18f108['t'](_0x29fc73(0x114))},{'value':String(_0xd936c5[_0x29fc73(0xbd)]),'label':_0x18f108['t'](_0x29fc73(0x1e1))},{'value':String(_0xd936c5[_0x29fc73(0x270)]),'label':_0x18f108['t'](_0x29fc73(0x2f7))}],'onChange':_0x3d106b=>{const _0x529e44=_0x29fc73;let _0x1126fc=[_0xd936c5[_0x529e44(0x116)],_0xd936c5[_0x529e44(0xbd)],_0xd936c5[_0x529e44(0x270)]][_0x529e44(0x153)](_0x2e310f=>String(_0x2e310f)===_0x3d106b);_0x1126fc!==void 0x0&&_0x52e448(_0x4b3206=>_0x4b3206[_0x529e44(0x1de)](_0x1126fc));}})]}),[{'key':_0x29fc73(0x162),'label':_0x29fc73(0x1a5),'defaultValue':!0x1},{'key':_0x29fc73(0x2cd),'label':'bases-dashboard-ui.pivot.repeatColumnLabels','defaultValue':!0x1},{'key':_0x29fc73(0x2f3),'label':_0x29fc73(0x1a3),'defaultValue':!0x0},{'key':_0x29fc73(0x189),'label':_0x29fc73(0xa1),'defaultValue':!0x0},{'key':_0x29fc73(0x2ef),'label':_0x29fc73(0x37c),'defaultValue':!0x0},{'key':_0x29fc73(0x241),'label':_0x29fc73(0x3af),'defaultValue':!0x0}][_0x29fc73(0x2ea)](_0x5c081d=>_0x2fa798(_0x29fc73(0x249),{'className':_0x29fc73(0x3c8),'children':[_0x5628d9(_0x57ed34,{'checked':!!(_0x5be5a7[_0x5c081d[_0x29fc73(0x2d0)]]??_0x5c081d[_0x29fc73(0x2b8)]),'disabled':_0x5c081d[_0x29fc73(0x2d0)]===_0x29fc73(0x162)&&_0xf4db8a[_0x29fc73(0x106)][_0x29fc73(0x3e1)]===_0xd936c5[_0x29fc73(0xbd)],'onChange':_0x529c68=>_0x1553c4({[_0x5c081d['key']]:!!_0x529c68})}),_0x18f108['t'](_0x5c081d[_0x29fc73(0x249)])]},_0x5c081d[_0x29fc73(0x2d0)])),_0xf4db8a[_0x29fc73(0x106)][_0x29fc73(0x3e1)]===_0xd936c5[_0x29fc73(0x270)]&&_0x2fa798(_0x29fc73(0x249),{'className':_0x29fc73(0x238),'children':[_0x18f108['t']('bases-dashboard-ui.pivot.rowSubtotalPosition'),_0x5628d9(Yr,{'className':_0x29fc73(0x167),'value':String(_0x5be5a7[_0x29fc73(0x318)]??_0x551070[_0x29fc73(0x171)]),'options':[{'value':String(_0x551070['top']),'label':_0x18f108['t'](_0x29fc73(0x132))},{'value':String(_0x551070[_0x29fc73(0xdc)]),'label':_0x18f108['t'](_0x29fc73(0x26b))}],'onChange':_0x3cbe42=>{const _0x516ed8=_0x29fc73;let _0x14eb6f=[_0x551070[_0x516ed8(0x171)],_0x551070[_0x516ed8(0xdc)]][_0x516ed8(0x153)](_0x28399e=>String(_0x28399e)===_0x3cbe42);_0x14eb6f!==void 0x0&&_0x1553c4({'rowSubtotalPosition':_0x14eb6f});}})]}),_0x2fa798('label',{'className':_0x29fc73(0x238),'children':[_0x18f108['t'](_0x29fc73(0x33d)),_0x5628d9(Yr,{'className':'univer-w-36','value':String(_0xf4db8a[_0x29fc73(0x106)][_0x29fc73(0x3ca)]===_0x3fa86b[_0x29fc73(0x2a6)]?_0x3fa86b[_0x29fc73(0x200)]:_0xf4db8a[_0x29fc73(0x106)][_0x29fc73(0x3ca)]),'options':[{'value':String(_0x3fa86b[_0x29fc73(0x200)]),'label':_0x18f108['t'](_0x29fc73(0x1a4))},{'value':String(_0x3fa86b[_0x29fc73(0x21e)]),'label':_0x18f108['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x56b158=>{const _0x19eea7=_0x29fc73;let _0x5c7096=[_0x3fa86b[_0x19eea7(0x200)],_0x3fa86b[_0x19eea7(0x21e)]][_0x19eea7(0x153)](_0x41016f=>String(_0x41016f)===_0x56b158);_0x5c7096!==void 0x0&&_0x52e448(_0x17eee7=>_0x17eee7[_0x19eea7(0x2b1)](_0x5c7096,_0x17eee7[_0x19eea7(0x2a0)]()<0x0?0x0:_0x17eee7['getValueIndex']()));}})]}),_0x2fa798(_0x29fc73(0x249),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x18f108['t'](_0x29fc73(0x331)),_0x5628d9(_0x57c888,{'className':_0x29fc73(0x280),'min':0x1,'max':0x14,'value':_0x5be5a7[_0x29fc73(0x3ae)]??0x1,'onChange':_0x51fe2d=>{const _0x7b3761=_0x29fc73;let _0x4f6b85=Number(_0x51fe2d);Number[_0x7b3761(0x206)](_0x4f6b85)&&_0x4f6b85>=0x1&&_0x1553c4({'pageWrap':_0x4f6b85});}})]}),_0x2fa798('label',{'className':_0x29fc73(0x238),'children':[_0x18f108['t']('bases-dashboard-ui.pivot.pageDirection'),_0x5628d9(Yr,{'className':'univer-w-36','value':String(_0x5be5a7[_0x29fc73(0x188)]??!0x1),'options':[{'value':_0x29fc73(0xf6),'label':_0x18f108['t'](_0x29fc73(0x18d))},{'value':_0x29fc73(0x1da),'label':_0x18f108['t'](_0x29fc73(0x3a3))}],'onChange':_0x35a480=>_0x1553c4({'pageOverThenDown':_0x35a480===_0x29fc73(0x1da)})})]})]});}function Ji(_0x5639ed,_0x48ad1c,_0x1893db,_0x12f90d){const _0x4b7e04=_0x5d48da;let _0x2f9733=_0x5639ed['getTableFieldsByDataFieldId'](_0x48ad1c)[_0x4b7e04(0x153)](_0x87129e=>_0x5639ed['getFieldPositionInfoById'](_0x87129e[_0x4b7e04(0x2ce)]())[_0x4b7e04(0x1c3)]!==_0x87fd74['Value']);_0x1893db!==_0x87fd74[_0x4b7e04(0x24b)]&&_0x2f9733?_0x5639ed[_0x4b7e04(0x150)](_0x2f9733[_0x4b7e04(0x2ce)](),_0x1893db,_0x12f90d):_0x5639ed['addFieldWithSourceId'](_0x48ad1c,_0x1893db,_0x12f90d);}function Yi(_0xa36ea6,_0x3397df,_0x167c44,_0x575678){const _0x30affe=_0x5d48da;return _0x3397df===_0xd2fae4['blank']?_0x575678:_0x3397df===_0xd2fae4[_0x30affe(0xc7)]&&_0x167c44?_0x52ec2b[_0x30affe(0x231)](_0x167c44,Number(_0xa36ea6)):_0xa36ea6;}function Xi(_0x54c280){const _0x5c2b15=_0x5d48da;return _0x54c280['type']===_0x3bfbe2['Number']||_0x54c280['type']===_0x3bfbe2[_0x5c2b15(0x2d5)]||_0x54c280[_0x5c2b15(0x278)]===_0x3bfbe2[_0x5c2b15(0x38a)]||_0x54c280[_0x5c2b15(0x278)]===_0x3bfbe2['Rating'];}function Zi(_0x109e0a){const _0x2bb8ee=_0x5d48da;switch(_0x109e0a){case _0x87fd74['Row']:return _0x2bb8ee(0x19a);case _0x87fd74['Column']:return _0x2bb8ee(0x284);case _0x87fd74[_0x2bb8ee(0x24b)]:return _0x2bb8ee(0x21d);default:return _0x2bb8ee(0xb9);}}function Qi({config:_0x576d40,onChange:_0x546351,runtime:_0x1f5cb0,table:_0x3c2e82}){const _0x135239=_0x5d48da;let _0x10d2d8=_0x40463f(_0x1ecd96),[_0x218a12,_0xeeb1ba]=_0x4ebd7a('chart');return _0x2fa798(_0x135239(0x3da),{'className':_0x135239(0x19d),'children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x10d2d8['t']('bases-dashboard-ui.pivot.name'),'className':_0x135239(0x217),'items':[{'label':_0x10d2d8['t'](_0x135239(0x172)),'panelId':_0x135239(0x2ed),'value':'chart'},{'label':_0x10d2d8['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'panelId':_0x135239(0x1c8),'value':_0x135239(0x106)}],'value':_0x218a12,'variant':'segmented','onChange':_0xeeb1ba}),_0x5628d9(_0x135239(0x334),{'className':_0x135239(0x213),'children':_0x218a12==='chart'?_0x1f5cb0&&_0x5628d9(ei,{'config':_0x576d40,'runtime':_0x1f5cb0,'tableName':_0x3c2e82[_0x135239(0x3d7)],'onChange':_0x546351}):_0x5628d9(Bi,{'config':_0x576d40,'table':_0x3c2e82,'onChange':_0x546351})})]});}function $i({tableId:_0x144859,unitId:_0x46c3a9,viewId:_0xc9b528}){const _0x3c8a07=_0x5d48da;let [_0x2ef899,_0x16a35b]=_0x4ebd7a(!0x1),_0x1057e0=_0x40463f(_0x1e6f93),_0x254c2d=_0x40463f(_0x4829da),_0x3954ff=_0x40463f(_0x53f9ce),_0x2543fa=_0x40463f(_0x1ecd96),_0x3473db=_0x40463f(_0x2cf236),[_0x507a85,_0x3885e4]=_0x4ebd7a(null),[_0x4587ba,_0x8d7023]=_0x4ebd7a(null),_0x5ac5cc=_0x25fc59(_0x3c8a07(0x118)+_0x2cedf9(0x8)),[_0x28439f,_0x5e2e3f]=_0x4ebd7a(!0x1),_0x2e3b1e=_0x254c2d['getUnit'](_0x46c3a9,_0x247fc0[_0x3c8a07(0x324)]),_0x245fe3=_0x2e3b1e==null?void 0x0:_0x2e3b1e[_0x3c8a07(0x3e8)]()['tables'][_0x144859],_0x864bb1=_0x245fe3==null?void 0x0:_0x245fe3['views'][_0xc9b528],_0xdc59b8=ea(_0x864bb1),_0x2a40da=yr(_0x46c3a9,_0x144859,_0xc9b528);if(_0x185176(()=>{const _0x2d07fc=_0x3c8a07;if(!_0xdc59b8)return;let _0xa6ac=_0x5ac5cc[_0x2d07fc(0xe8)];return _0x3473db[_0x2d07fc(0x1fe)](_0xa6ac,{'unitId':_0x46c3a9,'tableId':_0x144859,'viewId':_0xc9b528,'filters':[]}),()=>{const _0x112530=_0x2d07fc;_0x3473db[_0x112530(0x3e0)](_0x46c3a9,_0xa6ac);};},[_0xdc59b8,_0x3473db,_0x144859,_0x46c3a9,_0xc9b528]),_0x185176(()=>{const _0x6920a2=_0x3c8a07;if(!ea(_0x864bb1))return;let _0x37962d=!0x0,_0x509872={'unitId':_0x46c3a9,'tableId':_0x144859,'viewId':_0xc9b528,'filters':[_0x864bb1[_0x6920a2(0x122)]??null]};return _0x3473db['refreshChartRuntime'](_0x46c3a9,_0x5ac5cc['current'],_0x509872)[_0x6920a2(0xa4)](_0x2ea849=>{const _0x9e6712=_0x6920a2;_0x37962d&&_0x2ea849&&(_0x3885e4(_0x2ea849),_0x8d7023(_0x3473db[_0x9e6712(0x128)](_0x46c3a9,_0x5ac5cc[_0x9e6712(0xe8)])??null),_0x5e2e3f(!0x1));})[_0x6920a2(0x26d)](_0x28e46b=>{_0x3954ff['error']('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x28e46b),_0x37962d&&(_0x3885e4(null),_0x5e2e3f(!0x0));}),()=>{_0x37962d=!0x1;};},[_0x3954ff,_0x3473db,_0x144859,_0x46c3a9,_0x864bb1,_0xc9b528]),!_0x245fe3||!ea(_0x864bb1))return null;let _0xae5603=_0x3473db[_0x3c8a07(0x128)](_0x46c3a9,_0x5ac5cc[_0x3c8a07(0xe8)])===_0x4587ba?_0x4587ba:null,_0x4f1b5d=_0x507a85?_0x2fa798('div',{'className':_0x3c8a07(0x377),'style':{'gridTemplateRows':_0x864bb1['config'][_0x3c8a07(0x31a)]===_0x3c8a07(0x27c)?_0x3c8a07(0x1db):'minmax(0,\x201fr)'},'children':[_0x864bb1[_0x3c8a07(0xa7)]['displayMode']!==_0x3c8a07(0x2d3)&&_0xae5603&&_0x5628d9(_0x3c8a07(0x334),{'className':_0x3c8a07(0x3d5),'children':_0x5628d9(Rr,{'isRowDirection':_0x1aba1a(_0x864bb1['config'][_0x3c8a07(0x204)][_0x3c8a07(0x1e8)]),'runtime':_0xae5603})}),_0x864bb1[_0x3c8a07(0xa7)][_0x3c8a07(0x31a)]!==_0x3c8a07(0x204)&&_0x5628d9(_0x3c8a07(0x334),{'className':_0x3c8a07(0x24e),'children':_0x5628d9(ji,{'pivot':_0x864bb1[_0x3c8a07(0xa7)][_0x3c8a07(0x106)],'view':_0x507a85[_0x3c8a07(0x29c)]})})]}):_0x5628d9('div',{'className':_0x3c8a07(0x3aa),'children':_0x28439f?_0x2543fa['t'](_0x3c8a07(0x372)):_0x2543fa['t'](_0x3c8a07(0x2a9))}),_0x2ca392=_0x5628d9(Qi,{'config':_0x864bb1[_0x3c8a07(0xa7)],'runtime':_0xae5603,'table':_0x245fe3,'onChange':_0x4305c9=>{const _0x161e53=_0x3c8a07;_0x254c2d[_0x161e53(0x25c)](_0x46c3a9),_0x254c2d['focusUnit'](_0x46c3a9),_0x1057e0[_0x161e53(0x3e3)](_0x173771['id'],{'unitId':_0x46c3a9,'tableId':_0x144859,'viewId':_0xc9b528,'patch':_0x4305c9})[_0x161e53(0x26d)](_0x4266b7=>_0x3954ff['error']('[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.',_0x4266b7));}});return _0x5628d9(Jr,{'children':_0x2fa798('div',{'className':_0x3c8a07(0x237),'children':[_0x2a40da&&_0x5628d9(_0x101ca4,{'onClick':()=>_0x16a35b(!0x0),'children':_0x2543fa['t'](_0x3c8a07(0x172))}),_0x5628d9(_0x3c8a07(0x334),{'className':_0x3c8a07(0x17c),'children':_0x4f1b5d}),_0x2a40da&&_0x2ef899&&_0x5628d9(_0x19aa31,{'title':_0x2543fa['t'](_0x3c8a07(0x20c)),'onClose':()=>_0x16a35b(!0x1),'children':_0x2ca392})]})});}function ea(_0x4173cb){const _0x56ac88=_0x5d48da;return(_0x4173cb==null?void 0x0:_0x4173cb['type'])===_0xc74f11[_0x56ac88(0xe1)]&&typeof _0x4173cb[_0x56ac88(0xa7)]=='object'&&_0x4173cb[_0x56ac88(0xa7)]!==null&&_0x56ac88(0x106)in _0x4173cb[_0x56ac88(0xa7)]&&_0x56ac88(0x204)in _0x4173cb[_0x56ac88(0xa7)]&&_0x56ac88(0x31a)in _0x4173cb[_0x56ac88(0xa7)];}let ta=class extends _0x419e57{constructor(_0x151ca0,_0x2f087c,_0x256f4a,_0xbcd738,_0x3af1ec,_0x33a213){const _0x4113eb=_0x5d48da;super(),this['disposeWithMe'](_0x2f087c[_0x4113eb(0x343)]({'type':_0xc74f11[_0x4113eb(0xe1)],'renderMode':'dom','icon':_0x55ff4b,'component':$i,'menu':{get 'label'(){const _0x3250a1=_0x4113eb;return _0x33a213['t'](_0x3250a1(0x20c));},get 'description'(){const _0x581394=_0x4113eb;return _0x33a213['t'](_0x581394(0xd7));},get 'defaultName'(){return _0x33a213['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x4113eb(0x1dc)](_0x151ca0[_0x4113eb(0x343)](na(_0x256f4a,_0xbcd738,_0x3af1ec,_0x33a213)));}};ta=Ar([Y(0x0,_0x5b5009),Y(0x1,_0x414da1),Y(0x2,_0x2d5804(_0x3a16be)),Y(0x3,_0x1e6f93),Y(0x4,_0x100697),Y(0x5,_0x2d5804(_0x1ecd96))],ta);function na(_0x5a600f,_0x52267a,_0x3b10cb,_0x475b4d){const _0x47f867=_0x5d48da;return{'change$':_0x5f1bfe(_0x5a600f[_0x47f867(0x9a)],_0x3b10cb[_0x47f867(0x27a)]),'component':Si,get 'labels'(){const _0x33dbbb=_0x47f867;return{'add':_0x475b4d['t'](_0x33dbbb(0xfa)),'configure':_0x221f24=>_0x475b4d['t'](_0x33dbbb(0x364),_0x221f24),'delete':_0x475b4d['t'](_0x33dbbb(0xe7)),'new':_0x475b4d['t'](_0x33dbbb(0x234)),'rename':_0x475b4d['t'](_0x33dbbb(0x357)),'search':_0x475b4d['t'](_0x33dbbb(0x10a)),'section':_0x475b4d['t']('bases-dashboard-ui.dashboard.section')};},'getItems':_0x249e14=>{const _0x36ad9f=_0x47f867;let _0x4b8f16=_0x5a600f[_0x36ad9f(0xc1)](_0x249e14);return _0x4b8f16[_0x36ad9f(0xd4)][_0x36ad9f(0x1ac)](_0x3da7b6=>{const _0xde567b=_0x36ad9f;let _0x549c38=_0x4b8f16['dashboards'][_0x3da7b6];return _0x549c38?[{'id':_0x549c38['id'],'name':_0x549c38[_0xde567b(0x3d7)],'readonly':!_0x5706cb(_0x3b10cb,_0x249e14,_0x549c38['id'])}]:[];});},'create':async _0x4ada3e=>{const _0x143098=_0x47f867;let _0x5165a3=_0x5a600f['getResource'](_0x4ada3e),_0x3b8f29='dashboard-'+_0x2cedf9(0x8),_0x11e277=ra(_0x5165a3[_0x143098(0xd4)][_0x143098(0x1ac)](_0x53936c=>{const _0x397365=_0x143098;let _0x433a5d=_0x5165a3[_0x397365(0x3e5)][_0x53936c];return _0x433a5d?[_0x433a5d[_0x397365(0x3d7)]]:[];}),_0x230bc4=>_0x475b4d['t'](_0x143098(0xc0),String(_0x230bc4)));return await _0x52267a[_0x143098(0x3e3)](_0x4764c4['id'],{'unitId':_0x4ada3e,'dashboard':{'id':_0x3b8f29,'name':_0x11e277,'widgetOrder':[],'widgets':{}}})?_0x3b8f29:null;},'rename':async(_0x29e391,_0x35917d,_0x5b8bc5)=>{const _0x5c5c3b=_0x47f867;let _0x562017=_0x5a600f[_0x5c5c3b(0x18b)](_0x29e391,_0x35917d);return!!(_0x562017&&await _0x52267a[_0x5c5c3b(0x3e3)](_0x1e3e1b['id'],{'unitId':_0x29e391,'dashboard':{..._0x562017,'name':_0x5b8bc5}}));},'remove':(_0x4f009a,_0x58d9c1)=>_0x52267a[_0x47f867(0x3e3)](_0x391460['id'],{'unitId':_0x4f009a,'dashboardId':_0x58d9c1})};}function ra(_0x480d0c,_0x5c3d6b){const _0x561647=_0x5d48da;let _0x515285=new Set(_0x480d0c),_0x4b0c29=_0x515285['size']+0x1,_0x19a38c=_0x5c3d6b(_0x4b0c29);for(;_0x515285[_0x561647(0x9c)](_0x19a38c);)_0x4b0c29+=0x1,_0x19a38c=_0x5c3d6b(_0x4b0c29);return _0x19a38c;}let ia=class extends _0x1ea012{constructor(_0x32cb91=_r,_0x101420,_0x1a75e8){const _0x31f69e=_0x5d48da;super(),this['_config']=_0x32cb91,this[_0x31f69e(0xbf)]=_0x101420,this[_0x31f69e(0xc6)]=_0x1a75e8;let {..._0x4e586b}=_0x362ea8({},_r,this[_0x31f69e(0x1b1)]);this[_0x31f69e(0xc6)]['setConfig'](gr,_0x4e586b);}[_0x5d48da(0x3a1)](){const _0x44fef5=_0x5d48da;this[_0x44fef5(0xbf)][_0x44fef5(0x1bf)]([jr]),this[_0x44fef5(0xbf)][_0x44fef5(0x1bf)]([qr]),this[_0x44fef5(0xbf)]['add']([ta]);}[_0x5d48da(0x187)](){_0xe4152(this['_injector'],[[jr],[qr],[ta]]);}};Ir(ia,_0x5d48da(0x278),_0x247fc0['UNIVER_BASE']),Ir(ia,'pluginName','BASE_DASHBOARD_UI_PLUGIN'),Ir(ia,_0x5d48da(0x37d),mr),Ir(ia,_0x5d48da(0x1ae),hr),ia=Ar([_0xb94e7b(_0x5d1ed0,_0x7e7509,_0x36ac31,_0x38b402,_0xff803e,_0x175601),Y(0x1,_0x2d5804(_0x3c350b)),Y(0x2,_0x8e960e)],ia);function aa(_0x1bb3c1,_0x5a0653,_0x3b9c5c,_0x39f3fb){const _0xb64bd2=_0x5d48da;let _0x11398c={..._0x1bb3c1};if(_0x5a0653['includes']('w')){let _0x43924d=_0x1bb3c1[_0xb64bd2(0x33b)]+_0x1bb3c1[_0xb64bd2(0x229)];_0x11398c[_0xb64bd2(0x33b)]=Math[_0xb64bd2(0x16b)](0x0,Math[_0xb64bd2(0x2cf)](_0x43924d-0x1,_0x1bb3c1[_0xb64bd2(0x33b)]+_0x3b9c5c)),_0x11398c[_0xb64bd2(0x229)]=_0x43924d-_0x11398c['column'];}else _0x5a0653['includes']('e')&&(_0x11398c[_0xb64bd2(0x229)]=Math['max'](0x1,Math[_0xb64bd2(0x2cf)](_0x3587a5-_0x1bb3c1[_0xb64bd2(0x33b)],_0x1bb3c1[_0xb64bd2(0x229)]+_0x3b9c5c)));if(_0x5a0653[_0xb64bd2(0x292)]('n')){let _0x478c41=_0x1bb3c1['row']+_0x1bb3c1['rowSpan'];_0x11398c['row']=Math['max'](0x0,Math['min'](_0x478c41-0x1,_0x1bb3c1[_0xb64bd2(0x1f2)]+_0x39f3fb)),_0x11398c[_0xb64bd2(0x314)]=_0x478c41-_0x11398c['row'];}else _0x5a0653['includes']('s')&&(_0x11398c['rowSpan']=Math[_0xb64bd2(0x16b)](0x1,_0x1bb3c1[_0xb64bd2(0x314)]+_0x39f3fb));return _0x11398c;}function oa(_0x285327){const _0x2ddb5b=_0x5d48da;let _0x5d7dcc=Math[_0x2ddb5b(0x16b)](0x1,Math[_0x2ddb5b(0x2cf)](_0x3587a5,Math['round'](_0x285327[_0x2ddb5b(0x229)])));return{'column':Math['max'](0x0,Math[_0x2ddb5b(0x2cf)](_0x3587a5-_0x5d7dcc,Math[_0x2ddb5b(0x2de)](_0x285327[_0x2ddb5b(0x33b)]))),'row':Math['max'](0x0,Math[_0x2ddb5b(0x2de)](_0x285327['row'])),'columnSpan':_0x5d7dcc,'rowSpan':Math[_0x2ddb5b(0x16b)](0x1,Math[_0x2ddb5b(0x2de)](_0x285327['rowSpan']))};}function sa(_0x2d4ef6,_0x31b55a,_0x4ccdee){const _0x52823e=_0x5d48da;let _0x3ddd52=new Map(_0x2d4ef6),_0x2ca97d=oa(_0x4ccdee);_0x3ddd52[_0x52823e(0x166)](_0x31b55a,_0x2ca97d);let _0x5af7e1=[[_0x31b55a,_0x2ca97d]];for(let [_0x5a80e2,_0x12f5cf]of _0x3ddd52){if(_0x5a80e2===_0x31b55a)continue;let _0x158fc3=oa(_0x12f5cf);for(;_0x5af7e1['some'](([,_0x3b11df])=>la(_0x158fc3,_0x3b11df));)_0x158fc3={..._0x158fc3,'row':_0x158fc3['row']+0x1};for(;_0x158fc3[_0x52823e(0x1f2)]>0x0;){let _0x46a756={..._0x158fc3,'row':_0x158fc3['row']-0x1};if(_0x5af7e1[_0x52823e(0x353)](([,_0x441c98])=>la(_0x46a756,_0x441c98)))break;_0x158fc3=_0x46a756;}_0x5af7e1[_0x52823e(0x383)]([_0x5a80e2,_0x158fc3]),_0x3ddd52[_0x52823e(0x166)](_0x5a80e2,_0x158fc3);}return _0x3ddd52;}function ca(_0x535333,_0x15a7b8,_0x2bebed,_0x508a40=0x38,_0x552fe1=0x16){const _0x15e5e8=_0x5d48da;return _0x535333<_0x15a7b8+_0x508a40?-Math[_0x15e5e8(0x159)](_0x552fe1*(0x1-Math[_0x15e5e8(0x16b)](0x0,_0x535333-_0x15a7b8)/_0x508a40)):_0x535333>_0x2bebed-_0x508a40?Math[_0x15e5e8(0x159)](_0x552fe1*(0x1-Math[_0x15e5e8(0x16b)](0x0,_0x2bebed-_0x535333)/_0x508a40)):0x0;}function la(_0xca1eaf,_0x3ed001){const _0xc79a33=_0x5d48da;return _0xca1eaf['column']<_0x3ed001[_0xc79a33(0x33b)]+_0x3ed001[_0xc79a33(0x229)]&&_0xca1eaf['column']+_0xca1eaf['columnSpan']>_0x3ed001['column']&&_0xca1eaf[_0xc79a33(0x1f2)]<_0x3ed001[_0xc79a33(0x1f2)]+_0x3ed001[_0xc79a33(0x314)]&&_0xca1eaf[_0xc79a33(0x1f2)]+_0xca1eaf['rowSpan']>_0x3ed001[_0xc79a33(0x1f2)];}const ua=[{'direction':'nw','className':_0x5d48da(0x3ad)},{'direction':'n','className':_0x5d48da(0x31f)},{'direction':'ne','className':_0x5d48da(0x35c)},{'direction':'e','className':'-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize'},{'direction':'se','className':'univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize'},{'direction':'s','className':'-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize'},{'direction':'sw','className':_0x5d48da(0x39b)},{'direction':'w','className':_0x5d48da(0xc8)}];function da({dashboard:_0x5c0f76,dragLabel:_0x250fe7,editable:_0x4990d5=!0x0,onLayoutsCommit:_0x5501a8,onSelectWidget:_0x4d2892,renderWidget:_0x3f1b5d,renderWidgetActions:_0x3d0866,resizeLabel:_0x3adc56,selectedWidgetId:_0x4f8888,widgetLabel:_0x13250d}){const _0xcc61b2=_0x5d48da;let _0x3d5304=_0x25fc59(null),_0x41f80c=_0x25fc59(null),[_0x1e6763,_0x59aff2]=_0x4ebd7a(!0x1),_0x57744c=_0x5c672b(()=>new Map(_0x5c0f76[_0xcc61b2(0x3a0)][_0xcc61b2(0x1ac)](_0xe999e9=>{const _0x1e6431=_0xcc61b2;let _0x239c3e=_0x5c0f76[_0x1e6431(0x1f6)][_0xe999e9];return _0x239c3e?[[_0xe999e9,_0x239c3e[_0x1e6431(0x3e1)]]]:[];})),[_0x5c0f76]),[_0xb7528a,_0x26bfc3]=_0x4ebd7a(_0x57744c);_0x185176(()=>{const _0x21f503=_0xcc61b2;_0x41f80c[_0x21f503(0xe8)]||_0x26bfc3(_0x57744c);},[_0x57744c]),_0x185176(()=>{const _0x2b6e32=_0xcc61b2;if(!_0x1e6763)return;let _0x5d2011=_0x512805=>{const _0xe8cd84=_0x187c;let _0x59bade=_0x3d5304['current'];if(!_0x59bade)return null;let _0x4f4468=_0x59bade[_0xe8cd84(0x319)](),_0x202457=Math['max'](0x1,(_0x4f4468[_0xe8cd84(0x3ed)]-0x8*(_0x3587a5-0x1))/_0x3587a5),_0x3d6c00=Math[_0xe8cd84(0x2de)]((_0x59bade[_0xe8cd84(0x28a)]-_0x512805['startScrollTop'])/(_0x560757+0x8)),_0x5acfd6=Math['round']((_0x512805[_0xe8cd84(0x1ba)]-_0x512805[_0xe8cd84(0x3a8)])/(_0x202457+0x8)),_0x519928=Math['round']((_0x512805[_0xe8cd84(0x9f)]-_0x512805['startY'])/(_0x560757+0x8))+_0x3d6c00,_0x319fe1=_0x512805[_0xe8cd84(0x362)]==='move'?{..._0x512805[_0xe8cd84(0x2aa)],'column':_0x512805['initial'][_0xe8cd84(0x33b)]+_0x5acfd6,'row':_0x512805[_0xe8cd84(0x2aa)]['row']+_0x519928}:aa(_0x512805['initial'],_0x512805[_0xe8cd84(0x3e7)]??'se',_0x5acfd6,_0x519928),_0x360c86=sa(_0x512805['initialLayouts'],_0x512805['id'],_0x319fe1);return _0x26bfc3(_0x360c86),_0x360c86;},_0x5b62cc=_0x1c1951=>{const _0x5691e1=_0x187c;let _0x3e8d78=_0x41f80c[_0x5691e1(0xe8)];if(!_0x3e8d78)return;let _0x4f2a8c={..._0x3e8d78,'pointerX':_0x1c1951[_0x5691e1(0x288)],'pointerY':_0x1c1951[_0x5691e1(0x134)]};_0x41f80c[_0x5691e1(0xe8)]=_0x4f2a8c;},_0x22ac25=()=>{const _0xb7e3b8=_0x187c;let _0x5c24a9=_0x41f80c['current'],_0x397265=_0x5c24a9?_0x5d2011(_0x5c24a9):null;_0x41f80c[_0xb7e3b8(0xe8)]=null,_0x59aff2(!0x1),_0x397265&&_0x5501a8(_0x397265);},_0x169591=0x0,_0x3eb395=()=>{const _0x230d61=_0x187c;let _0x10e2f6=_0x3d5304[_0x230d61(0xe8)],_0x21ae9e=_0x41f80c[_0x230d61(0xe8)];if(_0x10e2f6&&_0x21ae9e){let _0x4b015f=_0x10e2f6[_0x230d61(0x319)](),_0x21154f=ca(_0x21ae9e[_0x230d61(0x9f)],_0x4b015f[_0x230d61(0x171)],_0x4b015f['bottom']);_0x21154f!==0x0&&(_0x10e2f6['scrollTop']+=_0x21154f),_0x5d2011(_0x21ae9e),_0x169591=requestAnimationFrame(_0x3eb395);}};return _0x169591=requestAnimationFrame(_0x3eb395),window['addEventListener'](_0x2b6e32(0xff),_0x5b62cc),window['addEventListener'](_0x2b6e32(0x3b3),_0x22ac25),()=>{const _0x28ed51=_0x2b6e32;cancelAnimationFrame(_0x169591),window[_0x28ed51(0x3df)](_0x28ed51(0xff),_0x5b62cc),window[_0x28ed51(0x3df)](_0x28ed51(0x3b3),_0x22ac25);};},[_0x1e6763,_0x5501a8]);let _0x752435=Math[_0xcc61b2(0x16b)](0x8,...Array[_0xcc61b2(0x191)](_0xb7528a[_0xcc61b2(0x370)]())['map'](_0x4cb712=>_0x4cb712[_0xcc61b2(0x1f2)]+_0x4cb712[_0xcc61b2(0x314)])),_0x569838=(_0x52e214,_0x59c5c4,_0x5cce43,_0x5ded77)=>{const _0x29c611=_0xcc61b2;_0x52e214[_0x29c611(0x394)](),_0x52e214[_0x29c611(0xf7)]();let _0x997e95=_0x3d5304[_0x29c611(0xe8)],_0x4337c1={'id':_0x59c5c4['id'],'mode':_0x5cce43,'pointerX':_0x52e214['clientX'],'pointerY':_0x52e214[_0x29c611(0x134)],'startX':_0x52e214[_0x29c611(0x288)],'startY':_0x52e214[_0x29c611(0x134)],'startScrollTop':(_0x997e95==null?void 0x0:_0x997e95[_0x29c611(0x28a)])??0x0,'initial':_0xb7528a[_0x29c611(0x185)](_0x59c5c4['id'])??_0x59c5c4[_0x29c611(0x3e1)],'initialLayouts':new Map(_0xb7528a),'resizeDirection':_0x5ded77};_0x41f80c[_0x29c611(0xe8)]=_0x4337c1,_0x59aff2(!0x0);};return _0x5628d9(_0xcc61b2(0x334),{'ref':_0x3d5304,'data-dashboard-scroll-container':!0x0,'className':_0x37e66c('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',_0xb0e9d1),'onClick':_0x4990d5?_0x4c53c9=>{const _0x3f296c=_0xcc61b2;if(!(_0x4c53c9[_0x3f296c(0x320)]instanceof Node)||!_0x4c53c9[_0x3f296c(0x3c6)][_0x3f296c(0x1d4)](_0x4c53c9[_0x3f296c(0x320)]))return;let _0x1124e5=_0x4c53c9[_0x3f296c(0x320)]instanceof Element?_0x4c53c9[_0x3f296c(0x320)]:_0x4c53c9[_0x3f296c(0x320)][_0x3f296c(0x3b0)];_0x1124e5!=null&&_0x1124e5['closest'](_0x3f296c(0x3a7))||_0x4d2892==null||_0x4d2892();}:void 0x0,'children':_0x5628d9(_0xcc61b2(0x334),{'data-dashboard-grid':!0x0,'className':_0xcc61b2(0x35d),'style':{'gap':0x8,'gridAutoRows':_0x560757,'minHeight':_0x752435*(_0x560757+0x8)},'children':_0x5c0f76[_0xcc61b2(0x3a0)][_0xcc61b2(0x2ea)](_0x165107=>{const _0x309e28=_0xcc61b2;var _0x3c2172;let _0x11c5c1=_0x5c0f76['widgets'][_0x165107],_0x593604=_0xb7528a[_0x309e28(0x185)](_0x165107);return!_0x11c5c1||!_0x593604?null:_0x2fa798(_0x309e28(0x335),{'data-dashboard-widget':_0x11c5c1['id'],'aria-label':_0x11c5c1[_0x309e28(0xbc)]??_0x13250d(_0x11c5c1),'className':_0x37e66c(_0x309e28(0x18e),_0x11c5c1[_0x309e28(0x278)]===_0x4dd1ab[_0x309e28(0x3c0)]||_0x11c5c1[_0x309e28(0x278)]===_0x4dd1ab[_0x309e28(0x2c2)]?_0x309e28(0x356):_0x309e28(0x2d2),_0x4990d5&&_0x4f8888===_0x11c5c1['id']?'univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500':_0x309e28(0x14c)),'style':{'gridColumn':_0x593604[_0x309e28(0x33b)]+0x1+_0x309e28(0x208)+_0x593604[_0x309e28(0x229)],'gridRow':_0x593604[_0x309e28(0x1f2)]+0x1+_0x309e28(0x208)+_0x593604[_0x309e28(0x314)]},'tabIndex':_0x4990d5?0x0:void 0x0,'onClick':_0x4990d5?()=>_0x4d2892==null?void 0x0:_0x4d2892(_0x11c5c1['id']):void 0x0,'onFocus':_0x4990d5?()=>_0x4d2892==null?void 0x0:_0x4d2892(_0x11c5c1['id']):void 0x0,'children':[_0x4990d5&&_0x5628d9(_0x309e28(0x11f),{'type':_0x309e28(0x11f),'aria-label':_0x250fe7,'data-dashboard-drag-handle':_0x11c5c1['id'],'className':_0x37e66c(_0x309e28(0x243),_0x1e6763&&((_0x3c2172=_0x41f80c[_0x309e28(0xe8)])==null?void 0x0:_0x3c2172['id'])===_0x11c5c1['id']&&_0x41f80c['current'][_0x309e28(0x362)]==='move'?_0x309e28(0x259):_0x309e28(0x3ee)),'onPointerDown':_0x5466fa=>_0x569838(_0x5466fa,_0x11c5c1,_0x309e28(0x25b)),'children':_0x5628d9(_0x1e67fc,{'className':_0x309e28(0x2e8),'aria-hidden':_0x309e28(0x1da)})}),_0x4990d5&&_0x5628d9('div',{'className':_0x309e28(0x143),'children':_0x3d0866==null?void 0x0:_0x3d0866(_0x11c5c1)}),_0x5628d9('div',{'className':_0x309e28(0x20a),'children':_0x3f1b5d(_0x11c5c1)}),_0x4990d5&&ua['map'](({className:_0x44a8db,direction:_0xba4d02})=>{const _0x275ad5=_0x309e28;let _0x553e07=_0xba4d02['length']===0x2;return _0x5628d9(_0x275ad5(0x11f),{'type':_0x275ad5(0x11f),'aria-label':_0x3adc56,'data-dashboard-resize-handle':_0xba4d02,'data-dashboard-resize-control':_0x553e07?_0xba4d02:void 0x0,'data-dashboard-resize-edge':_0x553e07?void 0x0:_0xba4d02,'className':_0x37e66c(_0x275ad5(0xef),_0x553e07?'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',_0x44a8db,_0x4f8888===_0x11c5c1['id']&&'univer-pointer-events-auto\x20univer-opacity-100'),'onPointerDown':_0x8bc6ac=>_0x569838(_0x8bc6ac,_0x11c5c1,'resize',_0xba4d02)},_0xba4d02);})]},_0x11c5c1['id']);})})});}var fa;const Q={'axis':{..._0x2b6728,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x5683c7,'heatmap':_0x165da0,'indicatorLine':_0x2adc54,'legend':_0x1267c7,'lineAndArea':_0x514143,'pareto':_0x1e2ae9,'pie':_0x2e45c9,'radar':_0x32285a,'relation':{..._0x270a4f,'useValueAsSymbolSize':!0x0},'series':{..._0x338c3f,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((fa=_0xa4c4f5[_0x5d48da(0x1fb)])==null?void 0x0:fa[_0x5d48da(0x164)])??!0x1}},'style':_0x2d6dc1,'titles':_0x5a35d2,'trendline':_0x59bb04,'waterfall':{..._0x3d8d6d,'useSubtotal':!0x0},'waterfallStyle':_0x5630e0,'wordCloud':_0x5624b3},pa=[_0x1cf6fa[_0x5d48da(0x1f9)],_0x1cf6fa[_0x5d48da(0x140)],_0x1cf6fa[_0x5d48da(0x21a)],_0x1cf6fa[_0x5d48da(0x34d)],_0x1cf6fa[_0x5d48da(0x30a)],_0x1cf6fa['Relation'],_0x1cf6fa['Sankey'],_0x1cf6fa[_0x5d48da(0x385)],_0x1cf6fa[_0x5d48da(0x3cd)],_0x1cf6fa['Candlestick'],_0x1cf6fa[_0x5d48da(0xb8)],_0x1cf6fa[_0x5d48da(0x28d)],_0x1cf6fa[_0x5d48da(0xf1)],_0x1cf6fa[_0x5d48da(0x186)],_0x1cf6fa['Chord']];function ma(_0x5e4261){const _0x20cf11=_0x5d48da;let {config:_0x140358,onChange:_0x586001,runtime:_0x14c80c,tableName:_0x3d27d4}=_0x5e4261,_0x27e997=_0x40463f(qr),_0x4a95bd=_0x40463f(_0x1ecd96),[_0x42b44f,_0x1076cf]=_0x4ebd7a(_0x389329[_0x20cf11(0xf0)]),_0x5736dc=_0x5c672b(()=>new _0x367b2a(_0x14c80c[_0x20cf11(0x1ad)],{'commit':_0x12a5ad=>{const _0x5c9b32=_0x20cf11;var _0x29e1ae;let _0x4c05ea=_0x14c80c[_0x5c9b32(0x1ad)],_0xad87a5=_0x5adbe1(_0x12a5ad,{'series':(_0x29e1ae=_0x4c05ea[_0x5c9b32(0xa7)])==null?void 0x0:_0x29e1ae['series'],'currentChartType':_0x4c05ea[_0x5c9b32(0x287)],'currentStyle':_0x4c05ea[_0x5c9b32(0x36b)],'currentContext':_0x4c05ea[_0x5c9b32(0x378)],'currentDataAggregation':_0x4c05ea[_0x5c9b32(0x2fa)]});_0x586001({'chart':ha(_0x140358[_0x5c9b32(0x204)],_0xad87a5)});}}),[_0x140358[_0x20cf11(0x204)],_0x586001,_0x14c80c]),_0x4487d4=_0x5c672b(()=>_0x2f5cf3(_0x8d6a08[_0x20cf11(0x2ea)](_0x52c25e=>({..._0x52c25e,'label':_0x4a95bd['t'](ya(_0x52c25e[_0x20cf11(0x2fb)]))}))),[_0x4a95bd]);return _0x5628d9(_0x4f5736,{'chartUIService':_0x27e997,'hostAdapter':_0x5736dc,'children':_0x2fa798(_0x20cf11(0x334),{'className':_0x20cf11(0x1e2),'children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x4a95bd['t'](_0x20cf11(0x142)),'className':_0x20cf11(0x3c9),'items':[{'label':_0x4a95bd['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0x20cf11(0x3b1),'value':_0x389329[_0x20cf11(0xf0)]},{'label':_0x4a95bd['t'](_0x20cf11(0x15b)),'panelId':_0x20cf11(0x271),'value':_0x389329['Style']}],'value':_0x42b44f,'onChange':_0x1076cf}),_0x42b44f===_0x389329[_0x20cf11(0xf0)]?_0x5628d9(_0x59879a,{'id':_0x20cf11(0x3b1),'label':_0x4a95bd['t'](_0x20cf11(0x360)),'children':_0x2fa798(_0x20cf11(0x334),{'className':_0x20cf11(0x36c),'children':[_0x5628d9(_0x3352ce,{'options':_0x4487d4}),_0x5628d9(_0x53d74e,{}),_0x5628d9(_0x3aee5e,{}),_0x5628d9(ga,{}),_0x5628d9(_0x1ed3a5,{}),_0x2fa798(_0x20cf11(0x334),{'children':[_0x5628d9(_0x30e809,{'title':_0x4a95bd['t'](_0x20cf11(0x22f))}),_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':_0x3d27d4})]}),_0x5628d9(_0x70f2bb,{'orientationControl':_0x5628d9(_0x101ca4,{'size':_0x20cf11(0x147),'onClick':()=>_0x586001({'chart':{..._0x140358[_0x20cf11(0x204)],'orient':_0x140358[_0x20cf11(0x204)]['orient']==='row'?'column':_0x20cf11(0x1f2)}}),'children':_0x4a95bd['t'](_0x20cf11(0x2b7))})}),_0x5628d9(_0x468257,{}),_0x5628d9(_0x153e3c,{'defaultValues':Q[_0x20cf11(0x3d6)]}),_0x2fa798(_0x20cf11(0x334),{'children':[_0x5628d9(_0x30e809,{'title':_0x4a95bd['t'](_0x20cf11(0xb1))}),_0x5628d9(_0x701e3d,{'value':_0x140358[_0x20cf11(0x31a)],'options':[{'value':_0x20cf11(0x27c),'label':_0x4a95bd['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':_0x20cf11(0x204),'label':_0x4a95bd['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':'table','label':_0x4a95bd['t'](_0x20cf11(0x1d9))}],'onChange':_0x8a85ae=>{const _0x417094=_0x20cf11;(_0x8a85ae===_0x417094(0x27c)||_0x8a85ae===_0x417094(0x204)||_0x8a85ae===_0x417094(0x2d3))&&_0x586001({'displayMode':_0x8a85ae});}})]})]})}):_0x5628d9(_0x59879a,{'id':_0x20cf11(0x271),'label':_0x4a95bd['t'](_0x20cf11(0x15b)),'children':_0x5628d9(_a,{})})]})});}function ha(_0x3fd9f5,_0x32c1ea){const _0x588675=_0x5d48da;return{..._0x3fd9f5,'type':_0x32c1ea[_0x588675(0x287)]??_0x3fd9f5['type'],'style':_0x32c1ea[_0x588675(0x36b)]??_0x3fd9f5['style'],'context':_0x32c1ea[_0x588675(0x378)]??_0x3fd9f5['context'],'dataAggregation':_0x32c1ea['dataAggregation']??_0x3fd9f5['dataAggregation']};}function ga(){const _0x6da6a0=_0x5d48da;let _0x1cf177=_0x10d8e4();return _0x5628d9(_0x1ca39a,{'visible':pa[_0x6da6a0(0x35b)](_0x2b3852=>!_0x242779[_0x6da6a0(0x263)](_0x1cf177,_0x2b3852))});}function $(_0x5ba49d){const _0x489fb2=_0x5d48da;return _0x2fa798(_0x53ec64,{'id':_0x5ba49d['id'],'children':[_0x5628d9(_0x51656d,{'children':_0x5ba49d[_0x489fb2(0x249)]}),_0x5628d9(_0x37b567,{'children':_0x5ba49d[_0x489fb2(0x29e)]})]});}function _a(){const _0x359dda=_0x5d48da;let _0x2ce9cb=_0x40463f(_0x1ecd96),_0x1f9f3e=_0x10d8e4(),_0x389383=_0xef83d1(),[_0x2bf06f,_0xd2cd4d]=_0x4ebd7a(null),_0xe9f49e=_0x242779[_0x359dda(0x263)](_0x1f9f3e,_0x1cf6fa[_0x359dda(0x282)]),_0xfd5037=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x140)],_0x1d95db=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x21a)],_0x29b8ae=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x30a)],_0xc231e1=_0x242779[_0x359dda(0x263)](_0x1f9f3e,_0x1cf6fa[_0x359dda(0x3d8)]),_0x50deef=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x28b)],_0x5bc611=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x33f)],_0x58cd42=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x218)],_0xbf275d=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x385)],_0x31b0e4=_0x2ecac2(_0x1f9f3e,_0xc8129[_0x359dda(0x3de)])&&!_0xc231e1&&!_0x58cd42,_0x5a872e=va(_0x1f9f3e,_0x2ce9cb);return _0x2fa798(_0x151ab2,{'value':_0x2bf06f,'onChange':_0xd2cd4d,'children':[_0x5628d9($,{'id':_0x4baf7f['ChartStyle'],'label':_0x2ce9cb['t'](_0x359dda(0x354)),'children':_0x5628d9(_0xc54821,{'defaultValues':Q['style']})}),_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x1cd)],'label':_0x2ce9cb['t'](_0x359dda(0x24d)),'children':_0x5628d9(_0x517322,{'commitMode':'blur','defaultValues':Q[_0x359dda(0x161)]})}),_0x5628d9(_0x31fb16,{'section':'view'}),_0x31b0e4&&_0x5628d9($,{'id':_0x4baf7f['Series'],'label':_0x2ce9cb['t'](_0x359dda(0x112)),'children':_0x5628d9(_0x4f3338,{'defaultValues':Q['series'],'NumberFormatField':_0x3f2847})}),_0x5bc611&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x105)],'label':_0x2ce9cb['t']('bases-dashboard-ui.chart.section.waterfall'),'children':_0x5628d9(_0x122082,{'defaultValues':Q['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x394955,target:_0x1dfed8})=>_0x1dfed8===_0x148de0[_0x359dda(0x1fa)]?_0x2ce9cb['t'](_0x359dda(0x1df)):_0x394955?_0x394955+'-('+_0x2ce9cb['t']('bases-dashboard-ui.chart.'+(_0x1dfed8===_0x148de0['Positive']?_0x359dda(0x222):_0x359dda(0x34c)))+')':'','NumberFormatField':_0x3f2847})}),_0x58cd42&&_0x2fa798(_0x5554ea,{'children':[_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x380)],'label':_0x2ce9cb['t'](_0x359dda(0xd8)),'children':_0x5628d9(_0x117afe,{'defaultValues':Q[_0x359dda(0x2cc)],'NumberFormatField':_0x3f2847,'showDataPointEditor':!0x0,'target':'barStyle'})}),_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x21f)],'label':_0x2ce9cb['t'](_0x359dda(0x2d7)),'children':_0x5628d9(_0x117afe,{'defaultValues':Q[_0x359dda(0x2cc)],'NumberFormatField':_0x3f2847,'showDataPointEditor':!0x1,'target':_0x359dda(0x246)})})]}),_0xe9f49e&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x1b8)],'label':_0x2ce9cb['t']('bases-dashboard-ui.chart.section.pie'),'children':_0x5628d9(_0x32a1e9,{'defaultValues':Q['pie'],'NumberFormatField':_0x3f2847})}),_0x1d95db&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x21a)],'label':_0x2ce9cb['t'](_0x359dda(0x25e)),'children':_0x5628d9(_0x51f587,{'defaultValues':Q[_0x359dda(0x286)]})}),_0xfd5037&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x140)],'label':_0x2ce9cb['t'](_0x359dda(0x35a)),'children':_0x5628d9(_0x1423a1,{'defaultValues':Q[_0x359dda(0x294)]})}),_0x29b8ae&&_0x5628d9($,{'id':_0x4baf7f['Funnel'],'label':_0x2ce9cb['t'](_0x359dda(0x3bb)),'children':_0x5628d9(_0x5591da,{'defaultValues':Q[_0x359dda(0xfe)],'gapControl':'select'})}),_0xbf275d&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x385)],'label':_0x2ce9cb['t'](_0x359dda(0xda)),'children':_0x5628d9(_0x1aca4d,{'defaultValues':Q[_0x359dda(0x337)]})}),_0x50deef&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x28b)],'label':_0x2ce9cb['t'](_0x359dda(0x1c4)),'children':_0x5628d9(_0x4117cf,{'defaultValues':Q[_0x359dda(0x2bb)]})}),_0x1dac15(_0x1f9f3e)&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0xf3)],'label':_0x2ce9cb['t'](_0x242779[_0x359dda(0x263)](_0x1f9f3e,_0x1cf6fa[_0x359dda(0x332)])?'bases-dashboard-ui.chart.chartTypes.area':'bases-dashboard-ui.chart.chartTypes.line'),'children':_0x5628d9(_0x2a4c4d,{'defaultValues':Q[_0x359dda(0x366)],'lineStyleControl':_0x359dda(0x1d2)})}),_0x2ecac2(_0x1f9f3e,_0xc8129[_0x359dda(0x2a2)])&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x2a2)],'label':_0x2ce9cb['t'](_0x359dda(0x183)),'children':_0x5628d9(_0x2205cf,{'defaultValues':Q[_0x359dda(0xdb)]})}),_0x2ecac2(_0x1f9f3e,_0xc8129[_0x359dda(0x31e)])&&_0x2fa798(_0x5554ea,{'children':[_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x266)],'label':_0x2ce9cb['t']('bases-dashboard-ui.chart.common.horizontalAxis'),'children':_0x5628d9(_0x51c0bf,{'axis':'x','defaultValues':Q[_0x359dda(0x399)],'NumberFormatField':_0x3f2847})}),_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x9e)],'label':_0x2ce9cb['t'](_0x359dda(0x32b)),'children':_0x5628d9(_0x51c0bf,{'axis':'y','defaultValues':Q['axis'],'NumberFormatField':_0x3f2847})}),_0x5628d9(_0x31fb16,{'section':_0x359dda(0x2c7)}),_0x389383&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x375)],'label':_0x2ce9cb['t'](_0x359dda(0x144)),'children':_0x5628d9(_0x51c0bf,{'axis':_0x359dda(0xe6),'defaultValues':Q[_0x359dda(0x399)],'NumberFormatField':_0x3f2847})}),_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x210)],'label':_0x2ce9cb['t']('bases-dashboard-ui.chart.section.gridlinesAndTicks'),'children':_0x5628d9(_0x58fc11,{'defaultValues':Q['axis']})})]}),_0x2ecac2(_0x1f9f3e,_0xc8129['IndicatorLine'])&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x306)],'label':_0x2ce9cb['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x5628d9(_0x54d111,{'defaultValues':Q[_0x359dda(0x20f)]})}),_0x3f9965(_0x1f9f3e)&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x36f)],'label':_0x2ce9cb['t'](_0x359dda(0x388)),'children':_0x5628d9(_0x311435,{'defaultValues':Q['trendline']})}),_0x5a872e&&_0x5628d9($,{'id':_0x5a872e['id'],'label':_0x5a872e[_0x359dda(0x249)],'children':_0x5628d9(_0x3f116c,{})})]});}function va(_0x2f476e,_0x2d7374){const _0x727a13=_0x5d48da;let _0x491a48={[_0x1cf6fa[_0x727a13(0x395)]]:{'id':_0x4baf7f[_0x727a13(0x395)],'localeKey':'bases-dashboard-ui.chart.section.candlestick'},[_0x1cf6fa[_0x727a13(0xb8)]]:{'id':_0x4baf7f[_0x727a13(0xb8)],'localeKey':'bases-dashboard-ui.chart.section.histogram'},[_0x1cf6fa[_0x727a13(0x28d)]]:{'id':_0x4baf7f[_0x727a13(0x28d)],'localeKey':_0x727a13(0x361)},[_0x1cf6fa[_0x727a13(0xf1)]]:{'id':_0x4baf7f[_0x727a13(0xf1)],'localeKey':'bases-dashboard-ui.chart.section.sunburst'},[_0x1cf6fa[_0x727a13(0x186)]]:{'id':_0x4baf7f[_0x727a13(0x186)],'localeKey':_0x727a13(0x12b)},[_0x1cf6fa[_0x727a13(0xe5)]]:{'id':_0x4baf7f[_0x727a13(0xe5)],'localeKey':'bases-dashboard-ui.chart.section.chord'}}[_0x2f476e];return _0x491a48?{'id':_0x491a48['id'],'label':_0x2d7374['t'](_0x491a48[_0x727a13(0x1f0)])}:null;}function ya(_0x214f9e){const _0x57bcd0=_0x5d48da;return _0x57bcd0(0x36a)+_0x214f9e;}function ba({onChange:_0x5f1f9b,onEditData:_0x3872d4,runtime:_0x11416c,sourceChart:_0x58c79a,sourceName:_0x5f26be,widget:_0x1da6ed}){const _0x49f9f=_0x5d48da;let _0x2fa628=_0x40463f(qr),_0x57c118=_0x40463f(_0x1ecd96),[_0x5825e1,_0x1b34a3]=_0x4ebd7a(_0x389329['Data']),_0x43412c=_0x1da6ed['chart']??_0x58c79a,_0x2cf70e=_0x5c672b(()=>new _0x367b2a(_0x11416c[_0x49f9f(0x1ad)],{'commit':_0x41c6cd=>{const _0x32486a=_0x49f9f;var _0x415b42;let _0x2d1249=_0x11416c[_0x32486a(0x1ad)],_0x49392c=_0x5adbe1(_0x41c6cd,{'series':(_0x415b42=_0x2d1249[_0x32486a(0xa7)])==null?void 0x0:_0x415b42[_0x32486a(0x32f)],'currentChartType':_0x2d1249[_0x32486a(0x287)],'currentStyle':_0x2d1249[_0x32486a(0x36b)],'currentContext':_0x2d1249[_0x32486a(0x378)],'currentDataAggregation':_0x2d1249[_0x32486a(0x2fa)]});_0x5f1f9b({..._0x1da6ed,'chart':ha(_0x43412c,_0x49392c)})[_0x32486a(0x26d)](()=>void 0x0);}}),[_0x43412c,_0x5f1f9b,_0x11416c,_0x1da6ed]),_0x25ed3f=_0x5c672b(()=>_0x2f5cf3(_0x8d6a08[_0x49f9f(0x2ea)](_0x468342=>({..._0x468342,'label':_0x57c118['t'](xa(_0x468342[_0x49f9f(0x2fb)]))}))),[_0x57c118]);return _0x5628d9(_0x4f5736,{'chartUIService':_0x2fa628,'hostAdapter':_0x2cf70e,'children':_0x2fa798(_0x49f9f(0x334),{'data-dashboard-chart-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x57c118['t'](_0x49f9f(0x142)),'className':_0x49f9f(0x3c9),'items':[{'label':_0x57c118['t']('bases-dashboard-ui.chart.common.setup'),'panelId':'dashboard-chart-setup','value':_0x389329[_0x49f9f(0xf0)]},{'label':_0x57c118['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x49f9f(0x358),'value':_0x389329[_0x49f9f(0x2c8)]}],'value':_0x5825e1,'onChange':_0x1b34a3}),_0x5825e1===_0x389329[_0x49f9f(0xf0)]?_0x5628d9(_0x59879a,{'id':_0x49f9f(0x22c),'label':_0x57c118['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x2fa798('div',{'className':_0x49f9f(0x36c),'children':[_0x5628d9(_0x3352ce,{'options':_0x25ed3f}),_0x5628d9(_0x53d74e,{}),_0x5628d9(_0x3aee5e,{}),_0x5628d9(ga,{}),_0x5628d9(_0x1ed3a5,{}),_0x2fa798(_0x49f9f(0x334),{'children':[_0x5628d9(_0x30e809,{'title':_0x57c118['t'](_0x49f9f(0xab))}),_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':_0x5f26be}),_0x5628d9(_0x101ca4,{'className':'univer-mt-2\x20univer-w-full','onClick':_0x3872d4,'children':_0x57c118['t'](_0x49f9f(0x1ff))})]})]})}):_0x5628d9(_0x59879a,{'id':_0x49f9f(0x358),'label':_0x57c118['t'](_0x49f9f(0x15b)),'children':_0x5628d9(_a,{})})]})});}function xa(_0x5e56b6){const _0x11cb06=_0x5d48da;return _0x11cb06(0x36a)+_0x5e56b6;}const Sa=[_0x5d48da(0x308),_0x5d48da(0x31b),_0x5d48da(0x228),'currency',_0x5d48da(0xa5),_0x5d48da(0xbd)];function Ca({base:_0x183954,onChange:_0x4c6cc4,onSelectBackgroundImage:_0x1f92a0,widget:_0x4ec832}){const _0x119591=_0x5d48da;var _0x371262;let _0x3dfa37=_0x40463f(_0x1ecd96),_0x15eddc=_0x40463f(_0x56b689),_0x213c18=_0x5056f6(()=>_0x15eddc[_0x119591(0x137)],_0x15eddc['getCurrentTheme'](),!0x1,[_0x15eddc]),_0x44ea35=_0x5056f6(()=>_0x15eddc[_0x119591(0x227)],_0x15eddc[_0x119591(0x355)],!0x1,[_0x15eddc]),[_0x343dbe,_0x31d178]=_0x4ebd7a(_0x119591(0x373)),[_0x37d69e,_0x389c4b]=_0x4ebd7a(!0x1),_0x4043d0=Cr(_0x4ec832),_0x37c41f=_0x183954[_0x119591(0x3e8)]()['tables'][_0x4ec832[_0x119591(0x9d)]],_0xb78604=_0x37c41f==null?void 0x0:_0x37c41f['viewOrder'][_0x119591(0x153)](_0x1194e4=>_0x37c41f['views'][_0x1194e4]),_0x2b6add=_0xb78604?_0x37c41f==null?void 0x0:_0x37c41f[_0x119591(0x2eb)][_0xb78604]:void 0x0,_0x197da3=_0x37c41f&&_0x2b6add?_0x372e38(_0x183954[_0x119591(0x3e8)](),_0x37c41f,_0x2b6add)[_0x119591(0x2ea)](_0x1a6aa7=>({..._0x1a6aa7,'current':!0x1})):[],_0x2e4649=((_0x371262=_0x4ec832[_0x119591(0x27e)][_0x119591(0x3cb)])==null?void 0x0:_0x371262[_0x119591(0x2ad)])??'',_0x32e02f=_0x172edf=>_0x4c6cc4(wr(_0x4ec832,_0x172edf))[_0x119591(0x26d)](()=>void 0x0),_0x52f79a=_0x420a8d=>_0x4c6cc4({..._0x4ec832,'description':_0x420a8d})['catch'](()=>void 0x0);return _0x2fa798('div',{'data-dashboard-formula-inspector':!0x0,'className':_0x119591(0x34b),'children':[_0x5628d9(_0x18f25a,{'className':_0x119591(0x313),'items':[{'value':'data','label':_0x3dfa37['t'](_0x119591(0x203))},{'value':_0x119591(0x36b),'label':_0x3dfa37['t'](_0x119591(0x369))}],'value':_0x343dbe,'onChange':_0x31d178}),_0x5628d9(_0x119591(0x334),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0x343dbe===_0x119591(0x373)?_0x2fa798(_0x119591(0x334),{'className':'univer-grid\x20univer-gap-4','children':[_0x5628d9(wa,{'label':_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.description'),'children':_0x5628d9(_0x5d579d,{'value':_0x4ec832[_0x119591(0x16e)]??_0x4ec832[_0x119591(0xbc)]??'','onChange':_0x52f79a,'onBlur':_0x2c5a66=>_0x52f79a(_0x2c5a66[_0x119591(0x320)]['value'])})}),_0x5628d9(wa,{'label':_0x3dfa37['t'](_0x119591(0xab)),'children':_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':(_0x37c41f==null?void 0x0:_0x37c41f[_0x119591(0x3d7)])??_0x3dfa37['t'](_0x119591(0x1bb))})}),_0x2fa798(wa,{'label':_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.formula'),'children':[_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':_0x196177(_0x2e4649,_0x197da3)}),_0x5628d9(_0x101ca4,{'className':_0x119591(0xd1),'onClick':()=>_0x389c4b(!0x0),'children':_0x3dfa37['t'](_0x119591(0x333))})]})]}):_0x2fa798(_0x119591(0x334),{'className':'univer-grid\x20univer-gap-4','children':[_0x5628d9(_0x209a9d,{'emptyLabel':_0x3dfa37['t'](_0x119591(0x3b9)),'label':_0x3dfa37['t'](_0x119591(0x3b9)),'pickerFallbackValue':_0x44ea35?_0x213c18[_0x119591(0x14a)][0x384]:_0x213c18['gray'][0x0],'resetLabel':_0x3dfa37['t'](_0x119591(0x23f)),'value':_0x4043d0[_0x119591(0x2e5)]??null,'onChange':_0x2d9490=>_0x32e02f({'backgroundColor':_0x2d9490??void 0x0})}),_0x2fa798(wa,{'label':_0x3dfa37['t'](_0x119591(0x38d)),'children':[_0x2fa798(_0x119591(0x334),{'className':_0x119591(0x316),'children':[_0x2fa798(_0x101ca4,{'className':_0x119591(0x3c7),'onClick':()=>{const _0x314567=_0x119591;_0x1f92a0()['then'](_0x47446f=>{const _0x499a90=_0x187c;if(_0x47446f){var _0x29a41b;return _0x32e02f({'backgroundImage':{..._0x47446f,'fit':((_0x29a41b=_0x4043d0['backgroundImage'])==null?void 0x0:_0x29a41b[_0x499a90(0x1f3)])??_0x499a90(0x15c)}});}})[_0x314567(0x26d)](()=>void 0x0);},'children':[_0x5628d9(_0x4f1759,{}),_0x4043d0['backgroundImage']?_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.replaceImage'):_0x3dfa37['t'](_0x119591(0x158))]}),_0x4043d0[_0x119591(0x33c)]&&_0x5628d9(_0x101ca4,{'aria-label':_0x3dfa37['t'](_0x119591(0xe4)),'title':_0x3dfa37['t'](_0x119591(0xe4)),'onClick':()=>_0x32e02f({'backgroundImage':void 0x0}),'children':_0x5628d9(_0x275aa7,{})})]}),_0x4043d0['backgroundImage']&&_0x5628d9(_0x18f25a,{'className':_0x119591(0xd9),'items':[{'value':_0x119591(0x15c),'label':_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x119591(0x2f4),'label':_0x3dfa37['t'](_0x119591(0x1cc))}],'value':_0x4043d0[_0x119591(0x33c)][_0x119591(0x1f3)],'onChange':_0x4e52bc=>_0x32e02f({'backgroundImage':_0x4043d0[_0x119591(0x33c)]?{..._0x4043d0[_0x119591(0x33c)],'fit':_0x4e52bc}:void 0x0})})]}),_0x5628d9(_0x209a9d,{'emptyLabel':_0x3dfa37['t'](_0x119591(0x37a)),'label':_0x3dfa37['t'](_0x119591(0x37a)),'pickerFallbackValue':_0x44ea35?_0x213c18[_0x119591(0x14a)][0x32]:_0x213c18[_0x119591(0x14a)][0x3e8],'resetLabel':_0x3dfa37['t'](_0x119591(0x23f)),'value':_0x4043d0[_0x119591(0x13d)]??null,'onChange':_0x62dff2=>_0x32e02f({'textColor':_0x62dff2??void 0x0})}),_0x5628d9(wa,{'label':_0x3dfa37['t'](_0x119591(0x281)),'children':_0x5628d9(_0x18f25a,{'items':[{'value':_0x119591(0x269),'label':_0x3dfa37['t'](_0x119591(0xb0))},{'value':_0x119591(0x38c),'label':_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0x119591(0x39f),'label':_0x3dfa37['t'](_0x119591(0x363))}],'value':_0x4043d0['alignment'],'onChange':_0x40a36f=>_0x32e02f({'alignment':_0x40a36f})})}),_0x2fa798(wa,{'label':_0x3dfa37['t'](_0x119591(0x102)),'children':[_0x5628d9(_0x18f25a,{'items':[{'value':_0x119591(0x1eb),'label':_0x3dfa37['t'](_0x119591(0xcc))},{'value':'custom','label':_0x3dfa37['t'](_0x119591(0x133))}],'value':_0x4043d0['fontSizeMode'],'onChange':_0x16e9c6=>_0x32e02f({'fontSizeMode':_0x16e9c6})}),_0x4043d0[_0x119591(0x27d)]===_0x119591(0x2ec)&&_0x5628d9(_0x57c888,{'className':_0x119591(0xd9),'min':0xc,'max':0x78,'value':_0x4043d0[_0x119591(0x268)],'onChange':_0xeb395d=>_0x32e02f({'fontSize':_0xeb395d??0x28,'fontSizeMode':'custom'})})]}),_0x5628d9(wa,{'label':_0x3dfa37['t'](_0x119591(0x3c3)),'children':_0x5628d9(_0x701e3d,{'value':_0x4043d0[_0x119591(0x371)],'options':[{'value':_0x119591(0x308),'label':_0x3dfa37['t'](_0x119591(0x1be))},{'value':_0x119591(0x31b),'label':_0x3dfa37['t'](_0x119591(0x3c5))},{'value':_0x119591(0x228),'label':_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.percent')},{'value':_0x119591(0x1b3),'label':_0x3dfa37['t'](_0x119591(0x325))},{'value':'grouped','label':_0x3dfa37['t'](_0x119591(0x175))},{'value':_0x119591(0xbd),'label':_0x3dfa37['t'](_0x119591(0x10e))}],'onChange':_0x380797=>{const _0x53bd3a=_0x119591;let _0x4bb652=Sa[_0x53bd3a(0x153)](_0x199a92=>_0x199a92===_0x380797);_0x4bb652&&_0x32e02f({'numberFormat':_0x4bb652});}})}),_0x4043d0[_0x119591(0x371)]===_0x119591(0x1b3)&&_0x5628d9(wa,{'label':_0x3dfa37['t'](_0x119591(0x130)),'children':_0x5628d9(_0x5d579d,{'value':_0x4043d0[_0x119591(0x1b3)],'onChange':_0x4f6a5d=>_0x32e02f({'currency':_0x4f6a5d[_0x119591(0x165)](0x0,0x3)[_0x119591(0x26a)]()})})}),_0x4043d0[_0x119591(0x371)]!==_0x119591(0x308)&&_0x5628d9(wa,{'label':_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.decimalPlaces'),'children':_0x5628d9(_0x57c888,{'min':0x0,'max':0x8,'value':_0x4043d0[_0x119591(0xc9)],'onChange':_0x58d4f5=>_0x32e02f({'decimalPlaces':_0x58d4f5??0x0})})})]})}),_0x37d69e&&_0x5628d9(_0x4ce712,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x5628d9(_0x6c795b,{'tables':_0x197da3,'formula':_0x196177(_0x2e4649,_0x197da3),'onCancel':()=>_0x389c4b(!0x1),'onSave':_0x3d8e8e=>{const _0x641d26=_0x119591;let _0x4d61eb=_0x4ec832[_0x641d26(0x27e)][_0x641d26(0x3cb)]??{'formula':''};return _0x4c6cc4({..._0x4ec832,'shapeData':{..._0x4ec832[_0x641d26(0x27e)],'formulaBinding':{..._0x4d61eb,'formula':_0x43ca80(_0x3d8e8e,_0x197da3)}}})[_0x641d26(0xa4)](()=>_0x389c4b(!0x1))[_0x641d26(0x26d)](()=>void 0x0);}})})]});}function wa({children:_0x46214d,label:_0x5bc1e6}){const _0x2129c8=_0x5d48da;return _0x2fa798('div',{'role':_0x2129c8(0x350),'aria-label':_0x5bc1e6,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x5628d9(_0x2129c8(0x339),{'children':_0x5bc1e6}),_0x46214d]});}const Ta={[_0x462609['IS']]:_0x5d48da(0x124),[_0x462609[_0x5d48da(0x29a)]]:_0x5d48da(0x192),[_0x462609[_0x5d48da(0xa6)]]:_0x5d48da(0x3e6),[_0x462609['NOT_CONTAINS']]:_0x5d48da(0x1e3),[_0x462609['IS_EMPTY']]:_0x5d48da(0x3cc),[_0x462609[_0x5d48da(0x168)]]:_0x5d48da(0xc5),[_0x462609['GREATER_THAN']]:_0x5d48da(0x376),[_0x462609[_0x5d48da(0x3a9)]]:'bases-dashboard-ui.operators.greaterThanOrEqual',[_0x462609[_0x5d48da(0x2d4)]]:_0x5d48da(0x1c6),[_0x462609[_0x5d48da(0x352)]]:_0x5d48da(0x2be),[_0x462609[_0x5d48da(0x3dd)]]:_0x5d48da(0x28e),[_0x462609[_0x5d48da(0x351)]]:_0x5d48da(0x190)};function Ea({disabled:_0x5d937b,fields:_0x1d3bc3,filter:_0x330a62,onChange:_0x57b3d2}){const _0x4f5d6d=_0x5d48da;let _0x43665b=_0x40463f(_0x1ecd96),_0xd00d48=(_0x330a62==null?void 0x0:_0x330a62['conditions'])??[];return _0xd00d48[_0x4f5d6d(0x193)]?_0x5628d9('div',{'className':_0x4f5d6d(0x1ec),'children':_0xd00d48[_0x4f5d6d(0x2ea)]((_0x4b9b89,_0x2ea1cb)=>{const _0x1a9055=_0x4f5d6d;let _0x3e212a=_0x1d3bc3[_0x1a9055(0x153)](_0x1b0360=>_0x1b0360['id']===_0x4b9b89[_0x1a9055(0x221)]);return _0x2fa798(_0x1a9055(0x334),{'className':_0x1a9055(0x2ae),'children':[_0x2fa798(_0x1a9055(0x334),{'className':_0x1a9055(0xad),'children':[_0x5628d9(_0x1a9055(0x339),{'className':_0x1a9055(0x3b6),'children':(_0x3e212a==null?void 0x0:_0x3e212a[_0x1a9055(0x3d7)])??_0x4b9b89['fieldId']}),_0x5628d9(_0x1a9055(0x339),{'className':_0x1a9055(0x181),'children':_0x43665b['t'](Ta[_0x4b9b89[_0x1a9055(0x230)]])})]}),Pa(_0x4b9b89[_0x1a9055(0x230)])&&_0x5628d9(Oa,{'disabled':_0x5d937b,'field':_0x3e212a,'value':_0x4b9b89[_0x1a9055(0x2d6)],'onChange':_0xf99018=>_0x57b3d2(ja(_0x330a62,_0x2ea1cb,{'operand':_0xf99018}))})]},La(_0xd00d48,_0x4b9b89,_0x2ea1cb));})}):_0x2fa798(_0x4f5d6d(0x334),{'className':_0x4f5d6d(0x2b4),'children':[_0x5628d9(_0x266672,{'className':_0x4f5d6d(0x34e)}),_0x5628d9(_0x4f5d6d(0x339),{'className':'univer-text-sm','children':_0x43665b['t']('bases-dashboard-ui.dashboard.tableFilter')})]});}function Da({fields:_0x3142fc,filter:_0x2f2ab0,onChange:_0x35b9d6,onClear:_0x4478a2}){const _0x19f4c1=_0x5d48da;let _0xcb8f59=_0x40463f(_0x1ecd96),_0x78b6cc=(_0x2f2ab0==null?void 0x0:_0x2f2ab0[_0x19f4c1(0x32c)])??[];return _0x2fa798(_0x19f4c1(0x334),{'data-dashboard-filter-inspector':!0x0,'className':_0x19f4c1(0xbb),'children':[_0x78b6cc['map']((_0x58f70f,_0x595404)=>{const _0x2d7008=_0x19f4c1;let _0x4f38d0=_0x3142fc['find'](_0x2bc1ef=>_0x2bc1ef['id']===_0x58f70f[_0x2d7008(0x221)])??_0x3142fc[0x0],_0x59ce63=Ma(_0x4f38d0);return _0x2fa798(_0x2d7008(0x111),{'className':_0x2d7008(0x145),'children':[_0x2fa798('div',{'className':_0x2d7008(0x2d9),'children':[_0x5628d9(_0x701e3d,{'value':_0x58f70f[_0x2d7008(0x221)],'options':_0x3142fc[_0x2d7008(0x2ea)](_0x4bd7d5=>({'value':_0x4bd7d5['id'],'label':_0x4bd7d5[_0x2d7008(0x3d7)]})),'onChange':_0x1e2b6c=>{const _0x359f89=_0x2d7008;let _0x5dcd66=_0x3142fc[_0x359f89(0x153)](_0x321627=>_0x321627['id']===_0x1e2b6c);if(!_0x5dcd66)return;let _0x48f377=Ma(_0x5dcd66)[0x0];_0x35b9d6(ja(_0x2f2ab0,_0x595404,Aa(_0x5dcd66,_0x48f377)));}}),_0x5628d9(_0x101ca4,{'type':'button','variant':_0x2d7008(0x2e2),'aria-label':_0xcb8f59['t']('bases-dashboard-ui.dashboardInspector.delete'),'className':_0x2d7008(0x169),'onClick':()=>_0x35b9d6(ka(_0x2f2ab0,_0x78b6cc[_0x2d7008(0x122)]((_0x5cec7a,_0x3d0ea4)=>_0x3d0ea4!==_0x595404))),'children':_0x5628d9(_0x1ab83b,{})})]}),_0x5628d9(_0x701e3d,{'value':_0x58f70f['operator'],'options':_0x59ce63[_0x2d7008(0x2ea)](_0x2d0357=>({'value':_0x2d0357,'label':_0xcb8f59['t'](Ta[_0x2d0357])})),'onChange':_0x428f11=>{const _0x2e0b34=_0x2d7008;let _0x4090bc=_0x59ce63[_0x2e0b34(0x153)](_0x534b61=>_0x534b61===_0x428f11);_0x4090bc&&_0x35b9d6(ja(_0x2f2ab0,_0x595404,{'operator':_0x4090bc,'operand':Na(_0x4f38d0)}));}}),Pa(_0x58f70f['operator'])&&_0x5628d9(Oa,{'field':_0x4f38d0,'value':_0x58f70f[_0x2d7008(0x2d6)],'onChange':_0x5f3c28=>_0x35b9d6(ja(_0x2f2ab0,_0x595404,{'operand':_0x5f3c28}))})]},La(_0x78b6cc,_0x58f70f,_0x595404));}),_0x2fa798(_0x101ca4,{'type':_0x19f4c1(0x11f),'variant':_0x19f4c1(0x2e2),'className':_0x19f4c1(0xd2),'disabled':!_0x3142fc['length'],'onClick':()=>{let _0x3b51f2=_0x3142fc[0x0];if(!_0x3b51f2)return;let _0x22a610=Ma(_0x3b51f2)[0x0];_0x35b9d6(ka(_0x2f2ab0,[..._0x78b6cc,Aa(_0x3b51f2,_0x22a610)]));},'children':[_0x5628d9(_0x4f1759,{}),_0xcb8f59['t']('bases-dashboard-ui.dashboardInspector.newCondition')]}),_0x78b6cc[_0x19f4c1(0x193)]>0x0&&_0x5628d9(_0x101ca4,{'type':_0x19f4c1(0x11f),'variant':'text','className':_0x19f4c1(0x23b),'onClick':_0x4478a2,'children':_0xcb8f59['t']('bases-dashboard-ui.dashboardInspector.clear')})]});}function Oa({disabled:_0xeb0dc,field:_0x16b38f,onChange:_0x3a03f0,value:_0x51d1ac}){const _0x529cc4=_0x5d48da;let _0x2401e7=_0x40463f(_0x1ecd96),[_0x3edc1a,_0xb7e071]=_0x4ebd7a({'value':_0x51d1ac,'text':String(_0x51d1ac??'')});Object['is'](_0x3edc1a[_0x529cc4(0x32d)],_0x51d1ac)||_0xb7e071({'value':_0x51d1ac,'text':String(_0x51d1ac??'')});let _0x3b0170=_0x3edc1a['text'],_0x56af6b=_0x112757=>_0xb7e071({'value':_0x51d1ac,'text':_0x112757}),_0x6e65c8=_0x16b38f==null?void 0x0:_0x16b38f[_0x529cc4(0x278)];if(_0x6e65c8===_0x3bfbe2[_0x529cc4(0x2dd)]){let _0xc704e9=_0x51d1ac===!0x0||_0x51d1ac===_0x529cc4(0x1da);return _0x2fa798(_0x101ca4,{'type':_0x529cc4(0x11f),'variant':'default','disabled':_0xeb0dc,'className':'univer-w-full\x20univer-justify-start','onClick':()=>_0x3a03f0(!_0xc704e9),'children':[_0x5628d9(_0x57ed34,{'checked':_0xc704e9,'disabled':_0xeb0dc,'onChange':()=>void 0x0}),_0xc704e9?_0x2401e7['t'](_0x529cc4(0xcf)):_0x2401e7['t']('bases-dashboard-ui.dashboardInspector.unchecked')]});}return Ra(_0x6e65c8)?_0xeb0dc?_0x5628d9(_0x101ca4,{'type':'button','variant':_0x529cc4(0x18c),'className':'univer-w-full','disabled':!0x0,'children':_0x3276ff(_0x51d1ac==null||_0x51d1ac===''?void 0x0:String(_0x51d1ac))[_0x529cc4(0x231)](_0x529cc4(0x155))}):_0x5628d9(_0x485a77,{'className':_0x529cc4(0x23b),'value':_0x3276ff(_0x51d1ac==null||_0x51d1ac===''?void 0x0:String(_0x51d1ac))[_0x529cc4(0x149)](),'onValueChange':_0x4e86d5=>_0x3a03f0(_0x3276ff(_0x4e86d5)['format'](_0x529cc4(0x155)))}):Ba(_0x16b38f)?_0x5628d9(_0x5ca0fb,{'className':'univer-w-full','disabled':_0xeb0dc,'value':Array[_0x529cc4(0x11e)](_0x51d1ac)?_0x51d1ac[_0x529cc4(0x2ea)](String):[],'options':Fa(_0x16b38f),'onChange':_0x3a03f0}):_0x6e65c8===_0x3bfbe2[_0x529cc4(0x329)]||_0x6e65c8===_0x3bfbe2[_0x529cc4(0xbe)]||_0x6e65c8===_0x3bfbe2['Person']?_0x5628d9(_0x701e3d,{'className':_0x529cc4(0x23b),'disabled':_0xeb0dc,'value':String(_0x51d1ac??''),'options':[{'value':'','label':_0x2401e7['t'](_0x529cc4(0x258))},...Fa(_0x16b38f)],'onChange':_0x3a03f0}):za(_0x6e65c8)?_0x5628d9(_0x5d579d,{'className':_0x529cc4(0x23b),'disabled':_0xeb0dc,'inputMode':_0x529cc4(0x1a6),'value':_0x3b0170,'aria-invalid':_0x3b0170!==''&&!Number[_0x529cc4(0x206)](Number(_0x3b0170)),'onChange':_0x3e1ce9=>{_0x56af6b(_0x3e1ce9),_0x3e1ce9===''?_0x3a03f0(''):Number['isFinite'](Number(_0x3e1ce9))&&_0x3a03f0(Number(_0x3e1ce9));},'onBlur':()=>_0x56af6b(String(_0x51d1ac??''))}):_0x5628d9(_0x5d579d,{'disabled':_0xeb0dc,'value':String(_0x51d1ac??''),'placeholder':_0x2401e7['t'](_0x529cc4(0x3be)),'onChange':_0x3a03f0});}function ka(_0x41c18c,_0x5c13f6){const _0x155ffe=_0x5d48da;return{'conjunction':(_0x41c18c==null?void 0x0:_0x41c18c['conjunction'])??_0x26ccb5[_0x155ffe(0x2f5)],'conditions':_0x5c13f6};}function Aa(_0x18dee5,_0x92364d){return Pa(_0x92364d)?{'fieldId':_0x18dee5['id'],'operator':_0x92364d,'operand':Na(_0x18dee5)}:{'fieldId':_0x18dee5['id'],'operator':_0x92364d};}function ja(_0x2325a7,_0x5b8348,_0x3edc47){const _0x27e036=_0x5d48da;return ka(_0x2325a7,((_0x2325a7==null?void 0x0:_0x2325a7[_0x27e036(0x32c)])??[])[_0x27e036(0x2ea)]((_0x31c4eb,_0x4fd57d)=>_0x4fd57d===_0x5b8348?{..._0x31c4eb,..._0x3edc47}:_0x31c4eb));}function Ma(_0x582bc2){const _0x14b035=_0x5d48da;let _0x34f399=[_0x462609['IS_EMPTY'],_0x462609['IS_NOT_EMPTY']];switch(_0x582bc2==null?void 0x0:_0x582bc2[_0x14b035(0x278)]){case _0x3bfbe2[_0x14b035(0x14f)]:case _0x3bfbe2[_0x14b035(0x2d5)]:case _0x3bfbe2[_0x14b035(0x38a)]:case _0x3bfbe2[_0x14b035(0x393)]:return[_0x462609['IS'],_0x462609['IS_NOT'],_0x462609['GREATER_THAN'],_0x462609[_0x14b035(0x2d4)],..._0x34f399];case _0x3bfbe2[_0x14b035(0x3ba)]:case _0x3bfbe2[_0x14b035(0x302)]:case _0x3bfbe2[_0x14b035(0x307)]:return[_0x462609['IS'],_0x462609[_0x14b035(0x29a)],_0x462609[_0x14b035(0x3dd)],_0x462609['AFTER'],..._0x34f399];case _0x3bfbe2[_0x14b035(0x2dd)]:return[_0x462609['IS'],_0x462609[_0x14b035(0x29a)]];default:return[_0x462609['IS'],_0x462609[_0x14b035(0x29a)],_0x462609[_0x14b035(0xa6)],_0x462609['NOT_CONTAINS'],..._0x34f399];}}function Na(_0x57db6c){const _0xf136db=_0x5d48da;return _0x57db6c?_0x57db6c['type']===_0x3bfbe2[_0xf136db(0x2dd)]?!0x1:Ra(_0x57db6c['type'])?_0x3276ff()[_0xf136db(0x231)](_0xf136db(0x155)):Ba(_0x57db6c)?[]:'':'';}function Pa(_0x2a3ca2){const _0x27cead=_0x5d48da;return _0x2a3ca2!==_0x462609[_0x27cead(0x176)]&&_0x2a3ca2!==_0x462609[_0x27cead(0x168)];}function Fa(_0x1ba98d){const _0x4e843a=_0x5d48da;var _0x26e078;return(Array[_0x4e843a(0x11e)](_0x1ba98d==null||(_0x26e078=_0x1ba98d[_0x4e843a(0xa7)])==null?void 0x0:_0x26e078[_0x4e843a(0x2a1)])?_0x1ba98d[_0x4e843a(0xa7)][_0x4e843a(0x2a1)]:[])[_0x4e843a(0x2ea)]((_0x48d6d7,_0x46f924)=>{if(typeof _0x48d6d7=='string')return{'label':_0x48d6d7,'value':_0x48d6d7};if(!Ia(_0x48d6d7))return{'label':String(_0x46f924+0x1),'value':String(_0x46f924+0x1)};let _0x46b266=_0x48d6d7,_0x467670=String(_0x46b266['name']??_0x46b266['id']??_0x46f924+0x1),_0x378ee5=String(_0x46b266['id']??_0x467670);return{'label':_0x467670,'value':/^opt-\d+$/['test'](_0x378ee5)?_0x467670:_0x378ee5};});}function Ia(_0x151e41){return typeof _0x151e41=='object'&&!!_0x151e41;}function La(_0x406e71,_0x5453d4,_0x4624bd){const _0x327c73=_0x5d48da;let _0x505bab=JSON[_0x327c73(0x3c1)](_0x5453d4);return _0x505bab+'-'+_0x406e71[_0x327c73(0x165)](0x0,_0x4624bd)[_0x327c73(0x122)](_0x5cf6cc=>JSON[_0x327c73(0x3c1)](_0x5cf6cc)===_0x505bab)[_0x327c73(0x193)];}function Ra(_0x504570){const _0xca6c9e=_0x5d48da;return _0x504570===_0x3bfbe2['Date']||_0x504570===_0x3bfbe2['CreatedAt']||_0x504570===_0x3bfbe2[_0xca6c9e(0x307)];}function za(_0x28849e){const _0xc9bf12=_0x5d48da;return _0x28849e===_0x3bfbe2[_0xc9bf12(0x14f)]||_0x28849e===_0x3bfbe2[_0xc9bf12(0x2d5)]||_0x28849e===_0x3bfbe2[_0xc9bf12(0x38a)]||_0x28849e===_0x3bfbe2['Rating'];}function Ba(_0x480a27){const _0x300773=_0x5d48da;var _0xfd4b4f;return(_0x480a27==null?void 0x0:_0x480a27[_0x300773(0x278)])===_0x3bfbe2[_0x300773(0x20b)]||(_0x480a27==null?void 0x0:_0x480a27[_0x300773(0x278)])===_0x3bfbe2[_0x300773(0xbe)]||(_0x480a27==null?void 0x0:_0x480a27[_0x300773(0x278)])===_0x3bfbe2[_0x300773(0x298)]&&((_0xfd4b4f=_0x480a27[_0x300773(0xa7)])==null?void 0x0:_0xfd4b4f['allowMultiple'])===!0x0;}function Va({base:_0x5747c8,chartRuntime:_0x4570d4,onChange:_0x245905,onClose:_0x3734db,onSelectBackgroundImage:_0x4813fb,onSelectImage:_0x1faefb,unitId:_0x482c3e,widget:_0x3b6108}){const _0x22c92f=_0x5d48da;let _0x347822=_0x40463f(_0x1e6f93),_0x241ab6=_0x40463f(_0x1ecd96),_0x559385=_0x5747c8['getSnapshot'](),_0x19b0e7=_0x22c92f(0x9d)in _0x3b6108?_0x559385[_0x22c92f(0x3b5)][_0x3b6108[_0x22c92f(0x9d)]]:void 0x0,_0x37906a=_0x3b6108[_0x22c92f(0x278)]===_0x4dd1ab['PivotChart']?_0x19b0e7==null?void 0x0:_0x19b0e7[_0x22c92f(0x2eb)][_0x3b6108[_0x22c92f(0x260)]]:void 0x0,_0x523552=_0x241ab6['t'](Ja(_0x3b6108));return _0x2fa798(_0x22c92f(0x3da),{'data-dashboard-inspector':!0x0,'className':_0x22c92f(0x304),'children':[_0x2fa798(_0x22c92f(0x148),{'className':_0x22c92f(0x180),'children':[_0x5628d9('h3',{'className':_0x22c92f(0x327),'children':_0x523552}),_0x5628d9(_0x101ca4,{'type':_0x22c92f(0x11f),'size':_0x22c92f(0x147),'variant':_0x22c92f(0x2e2),'aria-label':_0x241ab6['t'](_0x22c92f(0x17b)),'onClick':_0x3734db,'children':_0x5628d9(_0x1ab83b,{})})]}),_0x3b6108['type']===_0x4dd1ab[_0x22c92f(0x173)]&&(qa(_0x37906a)&&_0x4570d4?_0x5628d9(ba,{'runtime':_0x4570d4,'sourceChart':_0x37906a[_0x22c92f(0xa7)][_0x22c92f(0x204)],'sourceName':((_0x19b0e7==null?void 0x0:_0x19b0e7[_0x22c92f(0x3d7)])??'')+_0x22c92f(0x2a5)+_0x37906a[_0x22c92f(0x3d7)],'widget':_0x3b6108,'onChange':_0x245905,'onEditData':()=>{const _0x3352f8=_0x22c92f;_0x347822[_0x3352f8(0x3e3)](_0x166344['id'],{'unitId':_0x482c3e,'tableId':_0x3b6108[_0x3352f8(0x9d)],'viewId':_0x3b6108[_0x3352f8(0x260)]})[_0x3352f8(0x26d)](()=>void 0x0);}}):_0x5628d9(Ga,{'message':qa(_0x37906a)?_0x241ab6['t']('bases-dashboard-ui.dashboardInspector.loading'):_0x241ab6['t'](_0x22c92f(0x1bb))})),_0x3b6108['type']===_0x4dd1ab[_0x22c92f(0x2c2)]&&_0x5628d9(Ca,{'base':_0x5747c8,'widget':_0x3b6108,'onChange':_0x245905,'onSelectBackgroundImage':_0x4813fb}),_0x3b6108['type']===_0x4dd1ab['TableFilter']&&_0x5628d9(Ua,{'base':_0x5747c8,'onChange':_0x245905,'widget':_0x3b6108}),_0x3b6108[_0x22c92f(0x278)]===_0x4dd1ab['Text']&&_0x5628d9(Wa,{'onChange':_0x245905,'widget':_0x3b6108}),_0x3b6108['type']===_0x4dd1ab[_0x22c92f(0x3c0)]&&_0x5628d9(Ha,{'onChange':_0x245905,'onSelectImage':_0x1faefb,'widget':_0x3b6108})]});}function Ha({onChange:_0x1f483f,onSelectImage:_0x12d8f7,widget:_0x5686c9}){const _0x3d97c2=_0x5d48da;let _0x3fc926=_0x40463f(_0x1ecd96);return _0x2fa798(_0x3d97c2(0x334),{'className':_0x3d97c2(0x195),'children':[_0x2fa798(_0x101ca4,{'className':_0x3d97c2(0x23b),'onClick':()=>_0x12d8f7()[_0x3d97c2(0xa4)](_0xce622d=>_0xce622d&&_0x1f483f({..._0x5686c9,'source':_0xce622d[_0x3d97c2(0x136)],'sourceType':_0xce622d[_0x3d97c2(0xa8)],'alt':_0xce622d[_0x3d97c2(0x3d7)]}))['catch'](()=>void 0x0),'children':[_0x5628d9(_0x4f1759,{}),_0x3fc926['t'](_0x3d97c2(0x16d))]}),_0x2fa798(_0x3d97c2(0x249),{'className':_0x3d97c2(0x127),'children':[_0x5628d9(_0x3d97c2(0x339),{'children':_0x3fc926['t']('bases-dashboard-ui.dashboardInspector.backgroundImage')}),_0x5628d9(_0x18f25a,{'items':[{'value':_0x3d97c2(0x15c),'label':_0x3fc926['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x3d97c2(0x2a3),'label':_0x3fc926['t'](_0x3d97c2(0x10c))},{'value':_0x3d97c2(0x25a),'label':_0x3fc926['t'](_0x3d97c2(0xc2))}],'value':_0x5686c9[_0x3d97c2(0x31a)]??_0x3d97c2(0x15c),'onChange':_0x2966ef=>_0x1f483f({..._0x5686c9,'displayMode':_0x2966ef})[_0x3d97c2(0x26d)](()=>void 0x0)})]})]});}function Ua({base:_0x3d2cdf,onChange:_0x309766,widget:_0x55045c}){const _0x6d14f3=_0x5d48da;let _0x1beba5=_0x3d2cdf[_0x6d14f3(0x3e8)]()[_0x6d14f3(0x3b5)][_0x55045c[_0x6d14f3(0x9d)]],_0x401ff1=_0x1beba5==null?void 0x0:_0x1beba5[_0x6d14f3(0x389)][_0x6d14f3(0x153)](_0x2e8d2f=>_0x1beba5[_0x6d14f3(0x2eb)][_0x2e8d2f]),_0x5bf8df=_0x401ff1?_0x1beba5==null?void 0x0:_0x1beba5[_0x6d14f3(0x2eb)][_0x401ff1]:void 0x0,_0x245d1a=_0x1beba5&&_0x5bf8df?_0x28d476(_0x1beba5,_0x5bf8df):[];return _0x5628d9(Da,{'fields':_0x245d1a,'filter':_0x55045c[_0x6d14f3(0x122)],'onChange':_0x1919db=>_0x309766({..._0x55045c,'filter':_0x1919db})[_0x6d14f3(0x26d)](()=>void 0x0),'onClear':()=>_0x309766({..._0x55045c,'filter':null})[_0x6d14f3(0x26d)](()=>void 0x0)});}function Wa({onChange:_0x25d194,widget:_0x4a2a49}){const _0x23c9e2=_0x5d48da;let _0x5babed=_0x40463f(_0x1ecd96),_0x17bd8b=_0x40463f(_0x56b689),_0x39d6ad=_0x5056f6(()=>_0x17bd8b[_0x23c9e2(0x137)],_0x17bd8b[_0x23c9e2(0x3cf)](),!0x1,[_0x17bd8b]),_0x343320=Hr(_0x4a2a49),_0x3dfa89=_0x28ee09=>_0x25d194({..._0x4a2a49,'appearance':{..._0x343320,..._0x28ee09}})[_0x23c9e2(0x26d)](()=>void 0x0);return _0x2fa798(_0x23c9e2(0x334),{'className':_0x23c9e2(0x285),'children':[_0x5628d9(_0x80dadb,{'defaultValue':Ur(_0x4a2a49['document']),'rows':0x8,'onBlur':_0x3f3413=>_0x25d194({..._0x4a2a49,'document':Wr(_0x4a2a49[_0x23c9e2(0x348)],_0x3f3413[_0x23c9e2(0x320)][_0x23c9e2(0x32d)])})[_0x23c9e2(0x26d)](()=>void 0x0)}),_0x5628d9(_0x209a9d,{'emptyLabel':_0x5babed['t'](_0x23c9e2(0x3b9)),'label':_0x5babed['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x39d6ad[_0x23c9e2(0x14a)][0x0],'resetLabel':_0x5babed['t'](_0x23c9e2(0x23f)),'value':_0x343320[_0x23c9e2(0x2e5)]??null,'onChange':_0x2d94f6=>_0x3dfa89({'backgroundColor':_0x2d94f6??void 0x0})}),_0x5628d9(_0x209a9d,{'emptyLabel':_0x5babed['t'](_0x23c9e2(0x37a)),'label':_0x5babed['t'](_0x23c9e2(0x37a)),'pickerFallbackValue':_0x39d6ad['gray'][0x3e8],'resetLabel':_0x5babed['t'](_0x23c9e2(0x23f)),'value':_0x343320['textColor']??null,'onChange':_0x19a305=>_0x3dfa89({'textColor':_0x19a305??void 0x0})}),_0x5628d9(Ka,{'label':_0x5babed['t'](_0x23c9e2(0x281)),'children':_0x5628d9(_0x18f25a,{'items':[{'value':_0x23c9e2(0x269),'label':_0x5babed['t'](_0x23c9e2(0xb0))},{'value':_0x23c9e2(0x38c),'label':_0x5babed['t'](_0x23c9e2(0x11c))},{'value':_0x23c9e2(0x39f),'label':_0x5babed['t'](_0x23c9e2(0x363))}],'value':_0x343320[_0x23c9e2(0x326)],'onChange':_0x3c3553=>_0x3dfa89({'alignment':_0x3c3553})})}),_0x2fa798(Ka,{'label':_0x5babed['t']('bases-dashboard-ui.dashboardInspector.textSize'),'children':[_0x5628d9(_0x18f25a,{'items':[{'value':_0x23c9e2(0x1eb),'label':_0x5babed['t'](_0x23c9e2(0xcc))},{'value':_0x23c9e2(0x2ec),'label':_0x5babed['t'](_0x23c9e2(0x133))}],'value':_0x343320[_0x23c9e2(0x27d)],'onChange':_0x4229a6=>_0x3dfa89({'fontSizeMode':_0x4229a6})}),_0x343320[_0x23c9e2(0x27d)]==='custom'&&_0x5628d9(_0x57c888,{'className':_0x23c9e2(0xd9),'min':0xa,'max':0x78,'value':_0x343320[_0x23c9e2(0x268)],'onChange':_0x430338=>_0x3dfa89({'fontSize':_0x430338??0x12,'fontSizeMode':'custom'})})]})]});}function Ga({message:_0x326efb}){const _0x4ef60b=_0x5d48da;return _0x5628d9(_0x4ef60b(0x334),{'className':_0x4ef60b(0x16f),'children':_0x326efb});}function Ka({children:_0x1dcedc,label:_0xb75303}){const _0x3f3e24=_0x5d48da;return _0x2fa798(_0x3f3e24(0x334),{'role':_0x3f3e24(0x350),'aria-':!0x0,'className':_0x3f3e24(0x127),'children':[_0x5628d9(_0x3f3e24(0x339),{'children':_0xb75303}),_0x1dcedc]});}function qa(_0x1f6590){const _0x358311=_0x5d48da;return(_0x1f6590==null?void 0x0:_0x1f6590[_0x358311(0x278)])===_0xc74f11[_0x358311(0xe1)]&&typeof _0x1f6590[_0x358311(0xa7)]=='object'&&_0x1f6590[_0x358311(0xa7)]!==null&&_0x358311(0x106)in _0x1f6590[_0x358311(0xa7)]&&'chart'in _0x1f6590['config'];}function Ja(_0x10b327){const _0x15c851=_0x5d48da;switch(_0x10b327[_0x15c851(0x278)]){case _0x4dd1ab[_0x15c851(0x173)]:return _0x15c851(0x1ca);case _0x4dd1ab['TableFilter']:return _0x15c851(0x108);case _0x4dd1ab[_0x15c851(0x1c9)]:return _0x15c851(0x126);case _0x4dd1ab['Image']:return _0x15c851(0x2a4);case _0x4dd1ab[_0x15c851(0x2c2)]:return _0x15c851(0x38b);}}function Ya({onDelete:_0x4baf48,onEdit:_0x1dcbae}){const _0x588c3e=_0x5d48da;let _0x2def2e=_0x40463f(_0x1ecd96),_0x8173bf=_0x2def2e['t'](_0x588c3e(0xe2)),_0x5bbe0a=_0x2def2e['t'](_0x588c3e(0x297)),_0x585ba0=_0x2def2e['t'](_0x588c3e(0x154));return _0x5628d9(_0x56bbe5,{'items':[{'type':_0x588c3e(0x321),'children':_0x2fa798(_0x588c3e(0x339),{'className':_0x588c3e(0x179),'children':[_0x5628d9(_0x1d4ca0,{'className':_0x588c3e(0x3db),'aria-hidden':_0x588c3e(0x1da)}),_0x5628d9(_0x588c3e(0x339),{'children':_0x8173bf})]}),'onSelect':_0x1dcbae},{'type':_0x588c3e(0x1fd)},{'type':'item','variant':_0x588c3e(0x247),'children':_0x2fa798(_0x588c3e(0x339),{'className':_0x588c3e(0x179),'children':[_0x5628d9(_0x275aa7,{'className':_0x588c3e(0x3db),'aria-hidden':_0x588c3e(0x1da)}),_0x5628d9('span',{'children':_0x5bbe0a})]}),'onSelect':_0x4baf48}],'children':_0x5628d9(_0x101ca4,{'type':_0x588c3e(0x11f),'size':_0x588c3e(0x147),'variant':'text','title':_0x585ba0,'aria-label':_0x585ba0,'className':_0x588c3e(0x3a4),'children':_0x5628d9(_0x4093a6,{'className':_0x588c3e(0x3db),'aria-hidden':_0x588c3e(0x1da)})})});}function Xa({dashboardId:_0x2f3d4c,presentation:_0x3d9b0c=!0x1,unitId:_0x378083}){const _0x4b477c=_0x5d48da;let _0x523db1=_0x40463f(_0x1e6f93),_0x3191d2=_0x40463f(_0x5b5322),_0x568d56=_0x40463f(_0x2667ef),_0xe26474=_0x40463f(_0x4829da),_0x499a70=_0x40463f(_0x1ecd96),_0x55c4f3=_0x40463f(_0x3a16be),_0x112ff4=_0x40463f(_0x12718a),_0x10c776=_0x25fc59(null),[_0x401528,_0x267471]=_0x4ebd7a(!0x1),[_0x490473,_0x16ab0f]=_0x4ebd7a(),[_0x2f69d9,_0x4191c8]=_0x4ebd7a(!0x1),[_0x15ff89,_0x131041]=_0x4ebd7a(()=>new Map()),_0x383ef5=_0x26d744((_0x51220f,_0x18f8f4)=>{_0x131041(_0x3e3ff6=>{const _0x481405=_0x187c;let _0x20c694=new Map(_0x3e3ff6);return _0x18f8f4?_0x20c694['set'](_0x51220f,_0x18f8f4):_0x20c694[_0x481405(0x17e)](_0x51220f),_0x20c694;});},[]),_0x3d0e9c=_0x5056f6(()=>_0x55c4f3[_0x4b477c(0x9a)][_0x4b477c(0x209)](_0x51821f(()=>_0x55c4f3['getDashboard'](_0x378083,_0x2f3d4c))),_0x55c4f3[_0x4b477c(0x18b)](_0x378083,_0x2f3d4c),!0x1,[_0x2f3d4c,_0x55c4f3,_0x378083]),_0x1b4a97=_0xe26474['getUnit'](_0x378083,_0x247fc0[_0x4b477c(0x324)]),_0x2dde64=_0x5056f6(()=>_0x112ff4['undoRedoStatus$'],{'undos':0x0,'redos':0x0},!0x1,[_0x112ff4]),_0x222763=vr(_0x378083,_0x2f3d4c);if(_0x185176(()=>{const _0x277ba4=_0x4b477c;_0xe26474[_0x277ba4(0x25c)](_0x378083),_0xe26474['focusUnit'](_0x378083);},[_0xe26474,_0x378083]),_0x185176(()=>{const _0x5f3b60=_0x4b477c;let _0x1a156f=_0x10c776[_0x5f3b60(0xe8)],_0x40bc31=_0x1a156f==null?void 0x0:_0x1a156f[_0x5f3b60(0x253)];if(!_0x1a156f||!_0x40bc31)return;let _0x1225fb=()=>_0x4191c8(_0x40bc31['fullscreenElement']===_0x40bc31[_0x5f3b60(0x2e3)]),_0x4a53d9=_0x4e1a1c=>{const _0x5b3920=_0x5f3b60;_0x4e1a1c[_0x5b3920(0x2d0)]===_0x5b3920(0x13b)&&!_0x4e1a1c[_0x5b3920(0x220)]&&_0x40bc31[_0x5b3920(0x18a)]===_0x40bc31[_0x5b3920(0x2e3)]&&_0x40bc31[_0x5b3920(0x1f7)]()['catch'](_0x1225fb);};return _0x40bc31[_0x5f3b60(0x17a)]('fullscreenchange',_0x1225fb),_0x40bc31['addEventListener'](_0x5f3b60(0x341),_0x4a53d9),()=>{const _0x4b7961=_0x5f3b60;_0x40bc31['removeEventListener'](_0x4b7961(0xaf),_0x1225fb),_0x40bc31[_0x4b7961(0x3df)](_0x4b7961(0x341),_0x4a53d9);};},[]),!_0x3d0e9c||!_0x1b4a97)return null;let _0x31019c=_0x1e9e68=>_0x523db1[_0x4b477c(0x3e3)](_0x1041db['id'],{'unitId':_0x378083,'dashboardId':_0x2f3d4c,'widget':_0x1e9e68})[_0x4b477c(0x26d)](()=>void 0x0),_0x745c26=(_0x2e2aa5,_0x164590,_0x296cbd)=>{const _0x1ceba9=_0x4b477c;let _0x40a702=Math[_0x1ceba9(0x16b)](0x0,..._0x3d0e9c[_0x1ceba9(0x3a0)]['flatMap'](_0x48159c=>{const _0x2a5dfd=_0x1ceba9;var _0x1af889;let _0x336316=(_0x1af889=_0x3d0e9c[_0x2a5dfd(0x1f6)][_0x48159c])==null?void 0x0:_0x1af889[_0x2a5dfd(0x3e1)];return _0x336316?[_0x336316['row']+_0x336316['rowSpan']]:[];})),_0x45c6b3=_0x1ceba9(0x236)+_0x2cedf9(0x8),_0x15c47c={'column':0x0,'row':_0x40a702,'columnSpan':_0x164590,'rowSpan':_0x296cbd};switch(_0x2e2aa5[_0x1ceba9(0x278)]){case _0x4dd1ab[_0x1ceba9(0x173)]:return _0x31019c({..._0x2e2aa5,'id':_0x45c6b3,'layout':_0x15c47c});case _0x4dd1ab[_0x1ceba9(0x296)]:return _0x31019c({..._0x2e2aa5,'id':_0x45c6b3,'layout':_0x15c47c});case _0x4dd1ab[_0x1ceba9(0x1c9)]:return _0x31019c({..._0x2e2aa5,'id':_0x45c6b3,'layout':_0x15c47c});case _0x4dd1ab['Image']:return _0x31019c({..._0x2e2aa5,'id':_0x45c6b3,'layout':_0x15c47c});case _0x4dd1ab['FormulaShape']:return _0x31019c({..._0x2e2aa5,'id':_0x45c6b3,'layout':_0x15c47c});}},_0x5ace19=_0x1b4a97[_0x4b477c(0x3e8)](),_0x45dfdc=_0x5ace19['tableOrder'][_0x4b477c(0x1ac)](_0x594b31=>{const _0xbb35f0=_0x4b477c;let _0x46ae40=_0x5ace19['tables'][_0x594b31];if(!_0x46ae40)return[];let _0x53e0ac=_0x46ae40[_0xbb35f0(0x389)]['flatMap'](_0x3a0c55=>{const _0x55e1c6=_0xbb35f0;let _0x5d3ca6=_0x46ae40[_0x55e1c6(0x2eb)][_0x3a0c55];return io(_0x5d3ca6)?[{'type':'item','children':_0x5d3ca6[_0x55e1c6(0x3d7)],'onSelect':()=>_0x745c26({'type':_0x4dd1ab[_0x55e1c6(0x173)],'tableId':_0x594b31,'pivotViewId':_0x3a0c55,'chart':{..._0x5d3ca6[_0x55e1c6(0xa7)][_0x55e1c6(0x204)]}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0x46ae40[_0xbb35f0(0x3d7)],'options':[..._0x53e0ac,..._0x53e0ac['length']?[{'type':'separator'}]:[],{'type':_0xbb35f0(0x321),'children':_0x499a70['t'](_0xbb35f0(0x108)),'onSelect':()=>_0x745c26({'type':_0x4dd1ab[_0xbb35f0(0x296)],'tableId':_0x594b31,'filter':null},0x6,0x8)}]}];}),_0x1f079a=[..._0x45dfdc,..._0x45dfdc[_0x4b477c(0x193)]?[{'type':_0x4b477c(0x1fd)}]:[],{'type':_0x4b477c(0x321),'children':_0x499a70['t'](_0x4b477c(0x126)),'onSelect':()=>_0x745c26({'type':_0x4dd1ab['Text'],'document':eo()},0x4,0x6)},{'type':_0x4b477c(0x321),'children':_0x499a70['t'](_0x4b477c(0x2a4)),'onSelect':()=>to(_0x3191d2)[_0x4b477c(0xa4)](_0x5765fd=>_0x5765fd&&_0x745c26({'type':_0x4dd1ab[_0x4b477c(0x3c0)],'source':_0x5765fd[_0x4b477c(0x136)],'sourceType':_0x5765fd['sourceType'],'alt':_0x5765fd[_0x4b477c(0x3d7)],'displayMode':'cover'},0x4,0x6))},{'type':'item','children':_0x499a70['t']('bases-dashboard-ui.dashboard.formulaShape'),'onSelect':()=>{const _0x4152d2=_0x4b477c;let _0x5d0242=_0x5ace19[_0x4152d2(0x232)][_0x4152d2(0x153)](_0x2d5ef3=>_0x5ace19[_0x4152d2(0x3b5)][_0x2d5ef3]);_0x5d0242&&_0x745c26({'type':_0x4dd1ab[_0x4152d2(0x2c2)],'tableId':_0x5d0242,'shapeType':_0x5d0718[_0x4152d2(0x226)],'shapeData':_0x154b06(),'description':_0x499a70['t'](_0x4152d2(0x38b))},0x4,0x6);}}],_0xe5bd36=_0x490473?_0x3d0e9c['widgets'][_0x490473]:void 0x0,_0x21c32b=async()=>{const _0x5da1aa=_0x4b477c;let _0x1381d2=_0x10c776[_0x5da1aa(0xe8)];if(!_0x1381d2)return;let _0x2450c4=_0x1381d2['ownerDocument'];_0x2450c4[_0x5da1aa(0x18a)]===_0x2450c4[_0x5da1aa(0x2e3)]?await _0x2450c4[_0x5da1aa(0x1f7)]():await _0x2450c4[_0x5da1aa(0x2e3)]['requestFullscreen']();},_0x5152ac=_0x3d9b0c||_0x2f69d9,_0x1eb6c4=_0x222763&&!_0x5152ac;return _0x2fa798('div',{'ref':_0x10c776,'className':'\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'+(_0x2f69d9?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':'univer-relative\x20univer-z-10')+_0x4b477c(0x2f6),'children':[!_0x5152ac&&_0x2fa798(_0x4b477c(0x148),{'className':_0x4b477c(0x174),'children':[_0x5628d9(_0x5f4d2a,{'className':'univer-size-5\x20univer-text-primary-600'}),_0x5628d9('h2',{'className':_0x4b477c(0x327),'children':_0x3d0e9c[_0x4b477c(0x3d7)]}),_0x5628d9(_0x4faeac,{'target':{'unitId':_0x378083,'objectId':_0x4b369a(_0x2f3d4c),'objectType':_0x346fe7[_0x4b477c(0x37b)]},'name':_0x3d0e9c[_0x4b477c(0x3d7)],'commandId':_0x5205b3['id'],'exists':()=>!!_0x55c4f3['getDashboard'](_0x378083,_0x2f3d4c)},_0x378083+'/'+_0x2f3d4c),_0x5628d9(_0x450293,{'unitId':_0x378083}),_0x5628d9(_0x101ca4,{'type':'button','size':_0x4b477c(0x147),'variant':_0x4b477c(0x2e2),'aria-label':_0x499a70['t']('bases-dashboard-ui.dashboard.undo'),'disabled':!_0x222763||_0x2dde64[_0x4b477c(0x13a)]===0x0,'onClick':()=>_0x523db1[_0x4b477c(0x3e3)](_0x1c6299['id'])['catch'](()=>void 0x0),'children':_0x5628d9(_0x4e88b7,{})}),_0x5628d9(_0x101ca4,{'type':'button','size':_0x4b477c(0x147),'variant':'text','aria-label':_0x499a70['t'](_0x4b477c(0xea)),'disabled':!_0x222763||_0x2dde64[_0x4b477c(0x2a7)]===0x0,'onClick':()=>_0x523db1[_0x4b477c(0x3e3)](_0x5eb015['id'])['catch'](()=>void 0x0),'children':_0x5628d9(_0x245c5e,{})}),_0x5628d9(_0x101ca4,{'type':_0x4b477c(0x11f),'size':'small','variant':_0x4b477c(0x2e2),'aria-label':_0x499a70['t'](_0x4b477c(0x13c)),'onClick':()=>_0x21c32b()[_0x4b477c(0x26d)](()=>void 0x0),'children':_0x5628d9(_0x6d0af7,{})}),_0x5628d9(_0x56bbe5,{'items':_0x1f079a,'children':_0x2fa798(_0x101ca4,{'variant':'primary','disabled':!_0x222763,'children':[_0x5628d9(_0x4f1759,{}),_0x499a70['t']('bases-dashboard-ui.dashboard.addWidget')]})})]}),_0x2fa798('div',{'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1','children':[_0x5628d9('div',{'className':_0x4b477c(0x1e5),'children':_0x5628d9(da,{'dashboard':_0x3d0e9c,'dragLabel':_0x499a70['t'](_0x4b477c(0x29d)),'editable':_0x1eb6c4,'resizeLabel':_0x499a70['t']('bases-dashboard-ui.dashboard.resizeWidget'),'widgetLabel':_0x1380f7=>_0x499a70['t'](ro(_0x1380f7['type'])),'selectedWidgetId':_0x1eb6c4?_0x490473:void 0x0,'onSelectWidget':_0x1eb6c4?_0x342d35=>{_0x16ab0f(_0x342d35),_0x342d35||_0x267471(!0x1);}:void 0x0,'onLayoutsCommit':_0x17e34f=>{const _0x8814a6=_0x4b477c;let _0x1ca494={..._0x3d0e9c[_0x8814a6(0x1f6)]};_0x17e34f[_0x8814a6(0x3ce)]((_0x95767c,_0x3b87ce)=>{let _0x2bd2e4=_0x1ca494[_0x3b87ce];_0x2bd2e4&&(_0x1ca494[_0x3b87ce]={..._0x2bd2e4,'layout':_0x95767c});}),_0x523db1[_0x8814a6(0x3e3)](_0x1e3e1b['id'],{'unitId':_0x378083,'dashboard':{..._0x3d0e9c,'widgets':_0x1ca494}})[_0x8814a6(0x26d)](()=>void 0x0);},'renderWidget':_0x3ef608=>_0x5628d9(Za,{'base':_0x1b4a97,'dashboard':_0x3d0e9c,'unitId':_0x378083,'widget':_0x3ef608,'onChange':_0x31019c,'onChartRuntimeChange':_0x383ef5}),'renderWidgetActions':_0x23eed4=>_0x5628d9(Ya,{'onEdit':()=>{_0x16ab0f(_0x23eed4['id']),_0x267471(!0x0);},'onDelete':()=>{const _0x17c019=_0x4b477c;_0x490473===_0x23eed4['id']&&(_0x16ab0f(void 0x0),_0x267471(!0x1)),_0x523db1[_0x17c019(0x3e3)](_0x105c7d['id'],{'unitId':_0x378083,'dashboardId':_0x2f3d4c,'widgetId':_0x23eed4['id']})[_0x17c019(0x26d)](()=>void 0x0);}})})}),_0x1eb6c4&&_0x401528&&_0xe5bd36&&_0x5628d9(Va,{'base':_0x1b4a97,'chartRuntime':_0x15ff89[_0x4b477c(0x185)](_0xe5bd36['id']),'unitId':_0x378083,'widget':_0xe5bd36,'onChange':_0x31019c,'onClose':()=>_0x267471(!0x1),'onSelectBackgroundImage':()=>no(_0x568d56),'onSelectImage':()=>to(_0x3191d2)})]})]});}function Za({base:_0x369ef8,dashboard:_0x573cea,onChange:_0x245b6f,onChartRuntimeChange:_0x5eef8a,unitId:_0x15daee,widget:_0x193055}){const _0x29b28d=_0x5d48da;let _0x28f6ab=_0x5c672b(()=>_0x573cea['widgetOrder'][_0x29b28d(0x1ac)](_0x5d1592=>{const _0x402769=_0x29b28d;let _0x2aef60=_0x573cea[_0x402769(0x1f6)][_0x5d1592];return(_0x2aef60==null?void 0x0:_0x2aef60['type'])===_0x4dd1ab[_0x402769(0x296)]&&_0x2aef60['tableId']===('tableId'in _0x193055?_0x193055['tableId']:'')&&_0x2aef60[_0x402769(0x122)]?[_0x2aef60['filter']]:[];}),[_0x573cea,_0x193055]);switch(_0x193055[_0x29b28d(0x278)]){case _0x4dd1ab[_0x29b28d(0x173)]:return _0x5628d9(zr,{'filters':_0x28f6ab,'unitId':_0x15daee,'widget':_0x193055,'onRuntimeChange':_0x5eef8a});case _0x4dd1ab['TableFilter']:return _0x5628d9(Ea,{'fields':Qa(_0x369ef8,_0x193055[_0x29b28d(0x9d)]),'filter':_0x193055[_0x29b28d(0x122)],'onChange':_0x10c8fa=>_0x245b6f({..._0x193055,'filter':_0x10c8fa})[_0x29b28d(0x26d)](()=>void 0x0)});case _0x4dd1ab[_0x29b28d(0x1c9)]:return _0x5628d9(Gr,{'widget':_0x193055});case _0x4dd1ab[_0x29b28d(0x3c0)]:return _0x5628d9($a,{'widget':_0x193055});case _0x4dd1ab[_0x29b28d(0x2c2)]:return _0x5628d9(kr,{'dashboardId':_0x573cea['id'],'unitId':_0x15daee,'widget':_0x193055});}}function Qa(_0x3797f5,_0x5d0515){const _0xa30b48=_0x5d48da;let _0x5e2498=_0x3797f5[_0xa30b48(0x3e8)]()[_0xa30b48(0x3b5)][_0x5d0515],_0x558d8f=_0x5e2498==null?void 0x0:_0x5e2498[_0xa30b48(0x389)][_0xa30b48(0x153)](_0x47a75a=>_0x5e2498['views'][_0x47a75a]),_0x51ae31=_0x558d8f?_0x5e2498==null?void 0x0:_0x5e2498[_0xa30b48(0x2eb)][_0x558d8f]:void 0x0;return _0x5e2498&&_0x51ae31?_0x28d476(_0x5e2498,_0x51ae31):[];}function $a({widget:_0x106b80}){const _0xd292b1=_0x5d48da;let _0x2f0fbd=_0x40463f(_0x5b5322),[_0x4be827,_0x56b26d]=_0x4ebd7a(_0x106b80[_0xd292b1(0xa8)]===_0x3892df[_0xd292b1(0xe0)]?'':_0x106b80[_0xd292b1(0x136)]);return _0x185176(()=>{const _0x2e22bd=_0xd292b1;let _0x4f8720=!0x0;return _0x2f0fbd[_0x2e22bd(0x2bd)](_0x106b80[_0x2e22bd(0x136)],_0x106b80['sourceType'])[_0x2e22bd(0xa4)](_0x472aa1=>{_0x4f8720&&_0x56b26d(_0x472aa1);})['catch'](()=>void 0x0),()=>{_0x4f8720=!0x1;};},[_0x2f0fbd,_0x106b80[_0xd292b1(0x136)],_0x106b80[_0xd292b1(0xa8)]]),_0x4be827?_0x5628d9(_0xd292b1(0x334),{'role':_0x106b80[_0xd292b1(0x250)]?'img':void 0x0,'aria-label':_0x106b80[_0xd292b1(0x250)]||void 0x0,'data-dashboard-image':_0x106b80['id'],'className':_0xd292b1(0x2b9),'style':br(_0x4be827,_0x106b80[_0xd292b1(0x31a)])}):null;}function eo(){let _0x38a11c=_0x1be82d(new Set());return{'id':'dashboard-text-'+_0x2cedf9(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x38a11c}]},'documentStyle':{}};}function to(_0x1e12ac){return new Promise(_0x57f65a=>{const _0xaa6146=_0x187c;let _0x3c0e3f=document[_0xaa6146(0x365)](_0xaa6146(0x141));_0x3c0e3f[_0xaa6146(0x278)]=_0xaa6146(0x39c),_0x3c0e3f[_0xaa6146(0x177)]=_0xaa6146(0x115),_0x3c0e3f[_0xaa6146(0x17a)](_0xaa6146(0x1ea),()=>{const _0x47e0bd=_0xaa6146;var _0x40b2a6;let _0x5a473a=(_0x40b2a6=_0x3c0e3f['files'])==null?void 0x0:_0x40b2a6[0x0];_0x5a473a?_0x1e12ac[_0x47e0bd(0x131)](_0x5a473a)[_0x47e0bd(0xa4)](_0x1c49bd=>{const _0x115305=_0x47e0bd;!_0x1c49bd['source']||_0x1c49bd[_0x115305(0xa8)]===void 0x0?_0x57f65a(null):_0x57f65a({'name':_0x1c49bd[_0x115305(0x3d7)],'source':_0x1c49bd[_0x115305(0x136)],'sourceType':_0x1c49bd[_0x115305(0xa8)]});})[_0x47e0bd(0x26d)](()=>_0x57f65a(null)):_0x57f65a(null);},{'once':!0x0}),_0x3c0e3f[_0xaa6146(0x3c4)]();});}function no(_0x24755){return new Promise(_0x88afdb=>{const _0x5d8698=_0x187c;let _0x54cd96=document[_0x5d8698(0x365)](_0x5d8698(0x141));_0x54cd96[_0x5d8698(0x278)]=_0x5d8698(0x39c),_0x54cd96[_0x5d8698(0x177)]='image/*',_0x54cd96[_0x5d8698(0x17a)]('change',()=>{const _0x34f5e8=_0x5d8698;var _0x45e7b3;let _0x3f5274=(_0x45e7b3=_0x54cd96[_0x34f5e8(0x170)])==null?void 0x0:_0x45e7b3[0x0];_0x3f5274?_0x24755[_0x34f5e8(0x2f8)](_0x3f5274)[_0x34f5e8(0xa4)](_0x3b0445=>{const _0x571274=_0x34f5e8;if(!(_0x3b0445!=null&&_0x3b0445[_0x571274(0x136)]))_0x88afdb(null);else{if(_0x3b0445['base64Cache']){let _0x3002c8=new Image();_0x3002c8[_0x571274(0x1f5)]=_0x3b0445[_0x571274(0x1ef)],_0x24755[_0x571274(0xf9)](_0x3b0445[_0x571274(0x136)],_0x3b0445[_0x571274(0x1c0)],_0x3002c8);}_0x88afdb({'source':_0x3b0445[_0x571274(0x136)],'sourceType':_0x3b0445[_0x571274(0x1c0)]});}})[_0x34f5e8(0x26d)](()=>_0x88afdb(null)):_0x88afdb(null);},{'once':!0x0}),_0x54cd96[_0x5d8698(0x3c4)]();});}function ro(_0x5412e3){const _0x301777=_0x5d48da;switch(_0x5412e3){case _0x4dd1ab[_0x301777(0x173)]:return _0x301777(0x1ca);case _0x4dd1ab[_0x301777(0x296)]:return _0x301777(0x108);case _0x4dd1ab[_0x301777(0x1c9)]:return _0x301777(0x126);case _0x4dd1ab[_0x301777(0x3c0)]:return _0x301777(0x2a4);case _0x4dd1ab[_0x301777(0x2c2)]:return _0x301777(0x38b);}}function io(_0x47b093){const _0x210bc2=_0x5d48da;return(_0x47b093==null?void 0x0:_0x47b093[_0x210bc2(0x278)])===_0xc74f11[_0x210bc2(0xe1)]&&typeof _0x47b093[_0x210bc2(0xa7)]=='object'&&_0x47b093[_0x210bc2(0xa7)]!==null&&_0x210bc2(0x106)in _0x47b093['config']&&_0x210bc2(0x204)in _0x47b093[_0x210bc2(0xa7)];}const ao=[{'area':_0x87fd74[_0x5d48da(0x163)],'key':'filterFields','label':'bases-dashboard-ui.pivot.filters'},{'area':_0x87fd74[_0x5d48da(0x200)],'key':_0x5d48da(0x21c),'label':_0x5d48da(0x1a4)},{'area':_0x87fd74[_0x5d48da(0x21e)],'key':'rowFields','label':_0x5d48da(0xce)},{'area':_0x87fd74[_0x5d48da(0x24b)],'key':_0x5d48da(0x2c5),'label':_0x5d48da(0xc4)}],oo=[{'value':_0x3bfa9b[_0x5d48da(0x381)],'localeKey':_0x5d48da(0x1e0)},{'value':_0x3bfa9b[_0x5d48da(0x1b2)],'localeKey':'bases-dashboard-ui.pivot.count'},{'value':_0x3bfa9b[_0x5d48da(0x2f0)],'localeKey':_0x5d48da(0x2c6)},{'value':_0x3bfa9b[_0x5d48da(0x2ac)],'localeKey':'bases-dashboard-ui.pivot.average'},{'value':_0x3bfa9b[_0x5d48da(0x16b)],'localeKey':_0x5d48da(0x2b0)},{'value':_0x3bfa9b[_0x5d48da(0x2cf)],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x3bfa9b['product'],'localeKey':_0x5d48da(0x10d)},{'value':_0x3bfa9b['stdDev'],'localeKey':_0x5d48da(0xcd)},{'value':_0x3bfa9b[_0x5d48da(0x152)],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x3bfa9b[_0x5d48da(0xfc)],'localeKey':'bases-dashboard-ui.pivot.variance'},{'value':_0x3bfa9b[_0x5d48da(0x1b5)],'localeKey':_0x5d48da(0x104)}];function so(_0x430c40){const _0x4e8f7f=_0x5d48da;let {config:_0x5c606e,onChange:_0x41b711,table:_0x561400}=_0x430c40,_0x284ab6=_0x40463f(_0x1ecd96),[_0x384708,_0xcc7417]=_0x4ebd7a('fields'),[_0x4c0216,_0x7fdf2e]=_0x4ebd7a(''),[_0x28795b,_0xadb283]=_0x4ebd7a(null),[_0x3d8aa4,_0x39ab19]=_0x4ebd7a(null),[_0xfe240e,_0x523dd0]=_0x4ebd7a(null),[_0x12e167,_0x3dbfce]=_0x4ebd7a(null),_0x48b624=_0x25fc59(null),_0x5b6e04=_0x5c672b(()=>_0x561400[_0x4e8f7f(0xb6)][_0x4e8f7f(0x1ac)](_0x20741a=>{const _0x1746b7=_0x4e8f7f;let _0x26610f=_0x561400[_0x1746b7(0x9b)][_0x20741a];return _0x26610f&&_0x26610f[_0x1746b7(0x3b4)]!==!0x0&&_0x26610f[_0x1746b7(0x278)]!==_0x3bfbe2[_0x1746b7(0x39d)]?[_0x26610f]:[];})[_0x4e8f7f(0x122)](_0x27a55a=>_0x27a55a[_0x4e8f7f(0x3d7)][_0x4e8f7f(0x125)]()[_0x4e8f7f(0x292)](_0x4c0216[_0x4e8f7f(0x1b4)]()[_0x4e8f7f(0x125)]())),[_0x4c0216,_0x561400]),_0x35da6d=_0x5f006f=>{const _0x2c9192=_0x4e8f7f;let _0xd1c7c6=_0x2a70ba(_0x561400,_0x5c606e[_0x2c9192(0x106)]);try{_0x5f006f(_0xd1c7c6),_0x41b711({'pivot':_0xd1c7c6[_0x2c9192(0x265)]()});}finally{_0xd1c7c6[_0x2c9192(0x1b9)]();}},_0x2226fa=(_0x21e7b8,_0x26128e)=>{_0x28795b&&(_0x35da6d(_0x220448=>{const _0x175842=_0x187c;if(_0x28795b[_0x175842(0x27f)]===_0x175842(0x22a)){let _0x3c89dc=_0x220448[_0x175842(0x392)](_0x28795b['id']),_0x78ab26=_0x3c89dc[_0x175842(0x1c3)]===_0x21e7b8&&_0x3c89dc[_0x175842(0x2ff)]<_0x26128e?_0x26128e-0x1:_0x26128e;_0x220448['updateFieldPosition'](_0x28795b['id'],_0x21e7b8,_0x78ab26);}else go(_0x220448,_0x28795b['id'],_0x21e7b8,_0x26128e);}),_0xadb283(null),_0x39ab19(null));};return _0x2fa798(_0x4e8f7f(0x334),{'className':_0x4e8f7f(0x23e),'children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x284ab6['t'](_0x4e8f7f(0x1d7)),'className':_0x4e8f7f(0x3c9),'items':[{'label':_0x284ab6['t'](_0x4e8f7f(0x31d)),'panelId':_0x4e8f7f(0x1e9),'value':_0x4e8f7f(0x9b)},{'label':_0x284ab6['t'](_0x4e8f7f(0xb4)),'panelId':_0x4e8f7f(0x1d6),'value':_0x4e8f7f(0x2a1)}],'value':_0x384708,'onChange':_0xcc7417}),_0x5628d9(_0x4e8f7f(0x334),{'ref':_0x48b624,'className':_0x37e66c(_0x4e8f7f(0xa0),_0xb0e9d1),'onDragOver':_0x1cbaba=>{const _0x4facfe=_0x4e8f7f;let _0x279160=_0x48b624[_0x4facfe(0xe8)];if(!_0x279160)return;let _0x52de6a=_0x279160[_0x4facfe(0x319)]();_0x1cbaba[_0x4facfe(0x134)]<_0x52de6a['top']+0x30?_0x279160[_0x4facfe(0x28a)]-=0x10:_0x1cbaba[_0x4facfe(0x134)]>_0x52de6a['bottom']-0x30&&(_0x279160[_0x4facfe(0x28a)]+=0x10);},'children':_0x384708==='options'?_0x5628d9(ho,{'config':_0x5c606e,'commit':_0x35da6d}):_0x2fa798(_0x4e8f7f(0x334),{'className':_0x4e8f7f(0x16c),'children':[_0x2fa798(_0x4e8f7f(0x334),{'children':[_0x5628d9(_0x4e8f7f(0x334),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x284ab6['t'](_0x4e8f7f(0x129))}),_0x5628d9(_0x5d579d,{'allowClear':!0x0,'slot':_0x5628d9(_0xa664ad,{}),'value':_0x4c0216,'placeholder':_0x284ab6['t']('bases-dashboard-ui.pivot.searchFields'),'onChange':_0x7fdf2e}),_0x5628d9(_0x4e8f7f(0x334),{'className':_0x4e8f7f(0x1d0),'children':_0x5b6e04[_0x4e8f7f(0x2ea)](_0x59357a=>_0x5628d9(co,{'config':_0x5c606e,'field':_0x59357a,'onAdd':_0x3e1301=>_0x35da6d(_0x3a7852=>go(_0x3a7852,_0x59357a['id'],_0x3e1301,_0x3a7852[_0x4e8f7f(0x121)](_0x3e1301))),'onCheckedChange':_0x4d0dd0=>_0x35da6d(_0x5452e8=>{const _0x5c8322=_0x4e8f7f;let _0xb6b349=_0x5452e8[_0x5c8322(0x21b)](_0x59357a['id']);if(!_0x4d0dd0)_0xb6b349['forEach'](_0x366684=>_0x5452e8[_0x5c8322(0x24f)](_0x366684['getId']()));else{if(_0xb6b349[_0x5c8322(0x193)]===0x0){let _0x1146ac=vo(_0x59357a)?_0x87fd74['Value']:_0x87fd74['Row'];_0x5452e8[_0x5c8322(0xd0)](_0x59357a['id'],_0x1146ac);}}}),'onDragStart':()=>_0xadb283({'kind':_0x4e8f7f(0x136),'id':_0x59357a['id']})},_0x59357a['id']))})]}),_0x5628d9(_0x4e8f7f(0x334),{'className':_0x4e8f7f(0x199),'children':ao[_0x4e8f7f(0x2ea)](_0x51fdad=>_0x5628d9(uo,{'area':_0x51fdad[_0x4e8f7f(0x1c3)],'dropTarget':_0x3d8aa4,'fields':_0x5c606e['pivot'][_0x51fdad[_0x4e8f7f(0x2d0)]],'label':_0x284ab6['t'](_0x51fdad[_0x4e8f7f(0x249)]),'snapshot':_0x5c606e['pivot'],'onDragEnd':()=>{_0xadb283(null),_0x39ab19(null);},'onDragStart':_0x1f30e5=>_0xadb283({'kind':'field','id':_0x1f30e5,'area':_0x51fdad[_0x4e8f7f(0x1c3)]}),'onDragOver':_0x3566bd=>_0x39ab19({'area':_0x51fdad[_0x4e8f7f(0x1c3)],'index':_0x3566bd}),'onDrop':_0xdbf793=>_0x2226fa(_0x51fdad[_0x4e8f7f(0x1c3)],_0xdbf793),'onFilter':_0x523dd0,'onRemove':_0x24001c=>_0x35da6d(_0x591bd2=>_0x591bd2[_0x4e8f7f(0x24f)](_0x24001c)),'onSettings':_0x3dbfce},_0x51fdad['area']))}),_0xfe240e&&_0x5628d9(po,{'fieldId':_0xfe240e,'snapshot':_0x5c606e[_0x4e8f7f(0x106)],'table':_0x561400,'onCancel':()=>_0x523dd0(null),'onCommit':(_0x27566f,_0x3bea7f)=>{_0x35da6d(_0xcf5488=>{const _0x335dbd=_0x187c;let _0x22d602=_0xcf5488[_0x335dbd(0x110)](_0xfe240e),_0x36ef2c=(_0x22d602==null?void 0x0:_0x22d602['items'])??[];_0xcf5488[_0x335dbd(0x157)](_0xfe240e,{'type':_0x829bf6[_0x335dbd(0x254)],'list':_0x27566f,'isAll':_0x27566f[_0x335dbd(0x193)]===_0x36ef2c[_0x335dbd(0x193)]}),_0xcf5488['setSortInfo'](_0xfe240e,_0x3bea7f===void 0x0?void 0x0:{'type':_0x3bea7f});}),_0x523dd0(null);}},_0xfe240e),_0x12e167&&_0x5628d9(mo,{'field':_0x5c606e[_0x4e8f7f(0x106)][_0x4e8f7f(0x347)][_0x12e167],'onCancel':()=>_0x3dbfce(null),'onCommit':(_0x5a500b,_0x275b46,_0x3b9af6)=>{_0x35da6d(_0x39d2f0=>{const _0x2e03b0=_0x187c;_0x39d2f0['renameField'](_0x12e167,_0x5a500b),_0x39d2f0[_0x2e03b0(0x257)](_0x12e167,_0x275b46),_0x39d2f0['setFieldFormat'](_0x12e167,_0x3b9af6||void 0x0);}),_0x3dbfce(null);}},_0x12e167)]})})]});}function co(_0x317278){const _0x3c9374=_0x5d48da;let {config:_0x310c97,field:_0x44eaf1,onAdd:_0x3bfbd0,onCheckedChange:_0x23be0d,onDragStart:_0x4dce6a}=_0x317278,_0xb52867=_0x40463f(_0x1ecd96),_0x3171b7=[...Object['values'](_0x310c97['pivot'][_0x3c9374(0x1b7)]),...Object[_0x3c9374(0x370)](_0x310c97[_0x3c9374(0x106)]['measure'])]['some'](_0x130177=>_0x130177[_0x3c9374(0x275)]===_0x44eaf1['id']),_0x11efb1=ao[_0x3c9374(0x2ea)](_0x37e0e8=>({'type':_0x3c9374(0x321),'children':_0xb52867['t'](yo(_0x37e0e8[_0x3c9374(0x1c3)])),'onSelect':()=>_0x3bfbd0(_0x37e0e8[_0x3c9374(0x1c3)])}));return _0x2fa798(_0x3c9374(0x334),{'draggable':!0x0,'className':_0x3c9374(0x2bc),'onDragStart':_0x4dce6a,'children':[_0x5628d9(_0x1e67fc,{'className':'univer-text-gray-400'}),_0x5628d9(_0x57ed34,{'checked':_0x3171b7,'onChange':_0x218bbf=>_0x23be0d(!!_0x218bbf)}),_0x5628d9(lo,{'field':_0x44eaf1}),_0x5628d9('span',{'className':_0x3c9374(0x3d3),'children':_0x44eaf1[_0x3c9374(0x3d7)]}),_0x5628d9(_0x56bbe5,{'align':'end','items':_0x11efb1,'children':_0x5628d9('span',{'className':_0x3c9374(0x10b),'children':_0x5628d9(_0x3693ad,{})})})]});}function lo({field:_0x5e9071}){const _0x93cda0=_0x5d48da;return vo(_0x5e9071)?_0x5628d9(_0xfa6b5,{'className':_0x93cda0(0x3d1)}):_0x5e9071['type']===_0x3bfbe2[_0x93cda0(0x3ba)]||_0x5e9071[_0x93cda0(0x278)]===_0x3bfbe2[_0x93cda0(0x302)]||_0x5e9071[_0x93cda0(0x278)]===_0x3bfbe2['UpdatedAt']?_0x5628d9(_0x143320,{'className':_0x93cda0(0x3d1)}):_0x5628d9(_0x45f36b,{'className':_0x93cda0(0x3d1)});}function uo(_0x2b8ccf){const _0x2ed79e=_0x5d48da;let {area:_0x50bb75,dropTarget:_0x5dcfb5,fields:_0x31ef59,label:_0x4a5bb8,snapshot:_0x2e5859}=_0x2b8ccf,_0x4ed8f3=_0x40463f(_0x1ecd96);return _0x2fa798(_0x2ed79e(0x111),{'className':_0x37e66c(_0x2ed79e(0x251),_0x3b0e1f),'onDragOver':_0x237797=>{const _0x430a3e=_0x2ed79e;_0x237797['preventDefault'](),_0x2b8ccf[_0x430a3e(0x2cb)](_0x31ef59['length']);},'onDrop':_0x3121b8=>{const _0x6ef66d=_0x2ed79e;_0x3121b8[_0x6ef66d(0x394)](),_0x2b8ccf[_0x6ef66d(0x1a7)]((_0x5dcfb5==null?void 0x0:_0x5dcfb5[_0x6ef66d(0x1c3)])===_0x50bb75?_0x5dcfb5[_0x6ef66d(0x2ff)]:_0x31ef59[_0x6ef66d(0x193)]);},'children':[_0x5628d9(_0x2ed79e(0x334),{'className':_0x2ed79e(0x3dc),'children':_0x4a5bb8}),_0x2fa798(_0x2ed79e(0x334),{'className':_0x2ed79e(0x342),'children':[_0x31ef59[_0x2ed79e(0x2ea)]((_0x29dcbb,_0x593913)=>{const _0x402d76=_0x2ed79e;let _0x1b9a7f=_0x2e5859[_0x402d76(0x1b7)][_0x29dcbb]??_0x2e5859[_0x402d76(0x347)][_0x29dcbb];if(!_0x1b9a7f)return null;let _0x44169f=(_0x5dcfb5==null?void 0x0:_0x5dcfb5['area'])===_0x50bb75&&_0x5dcfb5['index']===_0x593913;return _0x2fa798(_0x402d76(0x334),{'onDragOver':_0x3eeed8=>{const _0x54a4ea=_0x402d76;_0x3eeed8[_0x54a4ea(0x394)](),_0x3eeed8[_0x54a4ea(0xf7)]();let _0x50b279=_0x3eeed8[_0x54a4ea(0x3c6)]['getBoundingClientRect']();_0x2b8ccf[_0x54a4ea(0x2cb)](_0x593913+ +(_0x3eeed8[_0x54a4ea(0x134)]>_0x50b279[_0x54a4ea(0x171)]+_0x50b279[_0x54a4ea(0x22b)]/0x2));},'onDrop':_0x555bdc=>{const _0x1550ea=_0x402d76;_0x555bdc[_0x1550ea(0x394)](),_0x555bdc[_0x1550ea(0xf7)](),_0x2b8ccf['onDrop']((_0x5dcfb5==null?void 0x0:_0x5dcfb5[_0x1550ea(0x1c3)])===_0x50bb75?_0x5dcfb5['index']:_0x593913);},'children':[_0x44169f&&_0x5628d9('div',{'className':_0x402d76(0x3e4)}),_0x5628d9(fo,{'area':_0x50bb75,'field':_0x1b9a7f,'onDragEnd':_0x2b8ccf[_0x402d76(0x37f)],'onDragStart':()=>_0x2b8ccf[_0x402d76(0x293)](_0x29dcbb),'onFilter':()=>_0x2b8ccf[_0x402d76(0x12a)](_0x29dcbb),'onRemove':()=>_0x2b8ccf[_0x402d76(0x245)](_0x29dcbb),'onSettings':()=>_0x2b8ccf[_0x402d76(0x387)](_0x29dcbb)})]},_0x29dcbb);}),(_0x5dcfb5==null?void 0x0:_0x5dcfb5[_0x2ed79e(0x1c3)])===_0x50bb75&&_0x5dcfb5[_0x2ed79e(0x2ff)]===_0x31ef59[_0x2ed79e(0x193)]&&_0x5628d9(_0x2ed79e(0x334),{'className':_0x2ed79e(0x3e4)}),_0x31ef59['length']===0x0&&_0x5628d9('div',{'className':_0x2ed79e(0x3d4),'children':_0x4ed8f3['t'](_0x2ed79e(0x32a))})]})]});}function fo(_0x56ffc7){const _0x163aef=_0x5d48da;let _0x21f844=_0x40463f(_0x1ecd96),_0x5bd94b=_0x56ffc7[_0x163aef(0x1c3)]===_0x87fd74['Value'],_0x325f9a=[{'type':_0x163aef(0x321),'children':_0x21f844['t'](_0x163aef(0x3c2)),'onSelect':_0x56ffc7['onRemove']},{'type':_0x163aef(0x321),'children':_0x21f844['t'](_0x5bd94b?_0x163aef(0x2e7):_0x163aef(0x28f)),'onSelect':_0x5bd94b?_0x56ffc7[_0x163aef(0x387)]:_0x56ffc7[_0x163aef(0x12a)]}];return _0x2fa798(_0x163aef(0x334),{'draggable':!0x0,'className':_0x163aef(0x3a2),'onDragEnd':_0x56ffc7['onDragEnd'],'onDragStart':_0x56ffc7[_0x163aef(0x293)],'children':[_0x5628d9(_0x1e67fc,{'className':_0x163aef(0x3d1)}),_0x5628d9(_0x2f0618,{'title':_0x56ffc7[_0x163aef(0x22a)]['displayName'],'children':_0x5628d9(_0x163aef(0x339),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x56ffc7[_0x163aef(0x22a)][_0x163aef(0x3bd)]})}),_0x5628d9(_0x56bbe5,{'align':_0x163aef(0x1ed),'items':_0x325f9a,'children':_0x5628d9(_0x163aef(0x339),{'className':_0x163aef(0x10b),'children':_0x5628d9(_0x3693ad,{})})})]});}function po(_0x3ad3b2){const _0x30bd79=_0x5d48da;var _0x30b9a2,_0x123059;let _0x2b5abe=_0x40463f(_0x1ecd96),{format:_0x2751ad,items:_0x1cf29a,itemTypes:_0x55980c}=_0x5c672b(()=>{const _0x1f5141=_0x187c;let _0xbe2796=_0x2a70ba(_0x3ad3b2[_0x1f5141(0x2d3)],_0x3ad3b2['snapshot']);try{let _0x40ac64=_0xbe2796[_0x1f5141(0x110)](_0x3ad3b2['fieldId']);return{'format':_0x40ac64==null?void 0x0:_0x40ac64[_0x1f5141(0x231)],'items':[...(_0x40ac64==null?void 0x0:_0x40ac64[_0x1f5141(0x252)])??[]],'itemTypes':[...(_0x40ac64==null?void 0x0:_0x40ac64['itemTypes'])??[]]};}finally{_0xbe2796['dispose']();}},[_0x3ad3b2[_0x30bd79(0x221)],_0x3ad3b2['snapshot'],_0x3ad3b2[_0x30bd79(0x2d3)]]),_0x2c09bd=(_0x30b9a2=_0x3ad3b2[_0x30bd79(0x2f9)]['dimension'][_0x3ad3b2['fieldId']])==null?void 0x0:_0x30b9a2[_0x30bd79(0x223)],[_0x3e20c9,_0xdd2514]=_0x4ebd7a((_0x2c09bd==null?void 0x0:_0x2c09bd[_0x30bd79(0x278)])===_0x829bf6['ManualFilter']?_0x2c09bd[_0x30bd79(0x2c1)]:_0x1cf29a),[_0x539b14,_0x4ecba9]=_0x4ebd7a((_0x123059=_0x3ad3b2[_0x30bd79(0x2f9)][_0x30bd79(0x1b7)][_0x3ad3b2[_0x30bd79(0x221)]])==null||(_0x123059=_0x123059[_0x30bd79(0xb3)])==null?void 0x0:_0x123059[_0x30bd79(0x278)]),_0x4ca8cb=_0x3e20c9['length']===_0x1cf29a[_0x30bd79(0x193)];return _0x2fa798(_0x30bd79(0x111),{'className':_0x37e66c(_0x30bd79(0x33e),_0x3b0e1f),'children':[_0x5628d9(_0x30bd79(0x334),{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0x2b5abe['t']('bases-dashboard-ui.pivot.filterField')}),_0x2fa798('div',{'className':_0x30bd79(0x19b),'children':[_0x2fa798(_0x101ca4,{'className':_0x30bd79(0x3c7),'variant':_0x539b14===_0x1b5f3a[_0x30bd79(0x198)]?_0x30bd79(0x22d):_0x30bd79(0x18c),'onClick':()=>_0x4ecba9(_0x1b5f3a[_0x30bd79(0x198)]),'children':[_0x5628d9(_0x558ec6,{}),_0x2b5abe['t'](_0x30bd79(0x28c))]}),_0x2fa798(_0x101ca4,{'className':_0x30bd79(0x3c7),'variant':_0x539b14===_0x1b5f3a[_0x30bd79(0x19c)]?_0x30bd79(0x22d):'default','onClick':()=>_0x4ecba9(_0x1b5f3a[_0x30bd79(0x19c)]),'children':[_0x5628d9(_0x3c94ed,{}),_0x2b5abe['t'](_0x30bd79(0x2a8))]})]}),_0x2fa798(_0x30bd79(0x334),{'className':_0x30bd79(0x311),'children':[_0x2fa798(_0x30bd79(0x249),{'className':_0x30bd79(0xca),'children':[_0x5628d9(_0x57ed34,{'checked':_0x4ca8cb,'indeterminate':_0x3e20c9[_0x30bd79(0x193)]>0x0&&!_0x4ca8cb,'onChange':()=>_0xdd2514(_0x4ca8cb?[]:_0x1cf29a)}),_0x2b5abe['t'](_0x30bd79(0x233))]}),_0x1cf29a[_0x30bd79(0x2ea)]((_0x3ec416,_0x3a68d1)=>_0x2fa798(_0x30bd79(0x249),{'className':_0x30bd79(0xca),'children':[_0x5628d9(_0x57ed34,{'checked':_0x3e20c9[_0x30bd79(0x292)](_0x3ec416),'onChange':()=>_0xdd2514(_0xfd95b9=>_0xfd95b9[_0x30bd79(0x292)](_0x3ec416)?_0xfd95b9['filter'](_0xa46608=>_0xa46608!==_0x3ec416):[..._0xfd95b9,_0x3ec416])}),_0x5628d9(_0x30bd79(0x339),{'className':_0x30bd79(0xae),'children':_o(_0x3ec416,_0x55980c[_0x3a68d1],_0x2751ad,_0x2b5abe['t'](_0x30bd79(0x11b)))})]},_0x3ec416))]}),_0x2fa798(_0x30bd79(0x334),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[_0x5628d9(_0x101ca4,{'variant':_0x30bd79(0x2ca),'onClick':()=>_0x3ad3b2[_0x30bd79(0x211)](_0x1cf29a,_0x539b14),'children':_0x2b5abe['t'](_0x30bd79(0x240))}),_0x2fa798(_0x30bd79(0x334),{'className':_0x30bd79(0x316),'children':[_0x5628d9(_0x101ca4,{'onClick':_0x3ad3b2[_0x30bd79(0x2db)],'children':_0x2b5abe['t'](_0x30bd79(0x2e6))}),_0x5628d9(_0x101ca4,{'variant':_0x30bd79(0x22d),'disabled':_0x3e20c9['length']===0x0,'onClick':()=>_0x3ad3b2['onCommit'](_0x3e20c9,_0x539b14),'children':_0x2b5abe['t'](_0x30bd79(0xdd))})]})]})]});}function mo(_0xb4f96a){const _0x2db665=_0x5d48da;var _0x58406a,_0x5cba29,_0x239a83;let _0x165dfd=_0x40463f(_0x1ecd96),[_0x1f7f11,_0x1e64c4]=_0x4ebd7a(((_0x58406a=_0xb4f96a[_0x2db665(0x22a)])==null?void 0x0:_0x58406a[_0x2db665(0x3bd)])??''),[_0x52d846,_0x53e38b]=_0x4ebd7a(((_0x5cba29=_0xb4f96a[_0x2db665(0x22a)])==null?void 0x0:_0x5cba29[_0x2db665(0x35e)])??_0x3bfa9b[_0x2db665(0x381)]),[_0x16ec1e,_0x30bf27]=_0x4ebd7a(((_0x239a83=_0xb4f96a[_0x2db665(0x22a)])==null?void 0x0:_0x239a83[_0x2db665(0x231)])??'');return _0xb4f96a[_0x2db665(0x22a)]?_0x2fa798('section',{'className':_0x37e66c(_0x2db665(0x23a),_0x3b0e1f),'children':[_0x5628d9('div',{'className':_0x2db665(0x2d1),'children':_0x165dfd['t']('bases-dashboard-ui.pivot.fieldSettings')}),_0x2fa798('label',{'className':_0x2db665(0x10f),'children':[_0x165dfd['t']('bases-dashboard-ui.pivot.displayName'),_0x5628d9(_0x5d579d,{'value':_0x1f7f11,'onChange':_0x1e64c4})]}),_0x2fa798(_0x2db665(0x249),{'className':_0x2db665(0x10f),'children':[_0x165dfd['t'](_0x2db665(0x3ac)),_0x5628d9(_0x701e3d,{'value':String(_0x52d846),'options':oo[_0x2db665(0x2ea)](_0x5bcc8a=>({'value':String(_0x5bcc8a[_0x2db665(0x32d)]),'label':_0x165dfd['t'](_0x5bcc8a['localeKey'])})),'onChange':_0x5be54c=>{const _0x497068=_0x2db665;let _0x24e110=oo['find'](_0x4fc3a2=>String(_0x4fc3a2[_0x497068(0x32d)])===_0x5be54c);_0x24e110&&_0x53e38b(_0x24e110[_0x497068(0x32d)]);}})]}),_0x2fa798('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x165dfd['t']('bases-dashboard-ui.pivot.numberFormat'),_0x5628d9(_0x5d579d,{'value':_0x16ec1e,'onChange':_0x30bf27})]}),_0x2fa798(_0x2db665(0x334),{'className':_0x2db665(0x15f),'children':[_0x5628d9(_0x101ca4,{'onClick':_0xb4f96a[_0x2db665(0x2db)],'children':_0x165dfd['t'](_0x2db665(0x2e6))}),_0x5628d9(_0x101ca4,{'variant':_0x2db665(0x22d),'disabled':!_0x1f7f11[_0x2db665(0x1b4)](),'onClick':()=>_0xb4f96a['onCommit'](_0x1f7f11[_0x2db665(0x1b4)](),_0x52d846,_0x16ec1e),'children':_0x165dfd['t'](_0x2db665(0xdd))})]})]}):null;}function ho(_0x3bf3d4){const _0x508911=_0x5d48da;let {config:_0x47e7d7,commit:_0x4c94fc}=_0x3bf3d4,_0xbadeae=_0x40463f(_0x1ecd96),_0x1c7b69=_0x47e7d7[_0x508911(0x106)]['options'],_0x3fd2b6=_0x2fa89f=>_0x4c94fc(_0x9ebeb8=>_0x9ebeb8[_0x508911(0x3ec)]({..._0x9ebeb8[_0x508911(0x1f8)](),..._0x2fa89f}));return _0x2fa798(_0x508911(0x334),{'className':_0x508911(0x16c),'children':[_0x2fa798(_0x508911(0x249),{'className':_0x508911(0x238),'children':[_0xbadeae['t'](_0x508911(0x2e4)),_0x5628d9(_0x701e3d,{'className':'univer-w-36','value':String(_0x47e7d7[_0x508911(0x106)][_0x508911(0x3e1)]),'options':[{'value':String(_0xd936c5[_0x508911(0x116)]),'label':_0xbadeae['t'](_0x508911(0x114))},{'value':String(_0xd936c5[_0x508911(0xbd)]),'label':_0xbadeae['t'](_0x508911(0x1e1))},{'value':String(_0xd936c5[_0x508911(0x270)]),'label':_0xbadeae['t'](_0x508911(0x2f7))}],'onChange':_0x42b8e2=>{const _0x14a036=_0x508911;let _0x4fd45b=[_0xd936c5[_0x14a036(0x116)],_0xd936c5['compact'],_0xd936c5[_0x14a036(0x270)]]['find'](_0x33d343=>String(_0x33d343)===_0x42b8e2);_0x4fd45b!==void 0x0&&_0x4c94fc(_0x57e256=>_0x57e256['setLayout'](_0x4fd45b));}})]}),[{'key':_0x508911(0x162),'label':_0x508911(0x1a5),'defaultValue':!0x1},{'key':_0x508911(0x2cd),'label':'bases-dashboard-ui.pivot.repeatColumnLabels','defaultValue':!0x1},{'key':_0x508911(0x2f3),'label':_0x508911(0x1a3),'defaultValue':!0x0},{'key':'showRowGrandTotal','label':_0x508911(0xa1),'defaultValue':!0x0},{'key':_0x508911(0x2ef),'label':'bases-dashboard-ui.pivot.showColumnSubtotal','defaultValue':!0x0},{'key':_0x508911(0x241),'label':_0x508911(0x3af),'defaultValue':!0x0}][_0x508911(0x2ea)](_0x5aec9a=>_0x2fa798(_0x508911(0x249),{'className':_0x508911(0x3c8),'children':[_0x5628d9(_0x57ed34,{'checked':!!(_0x1c7b69[_0x5aec9a[_0x508911(0x2d0)]]??_0x5aec9a[_0x508911(0x2b8)]),'disabled':_0x5aec9a[_0x508911(0x2d0)]===_0x508911(0x162)&&_0x47e7d7[_0x508911(0x106)][_0x508911(0x3e1)]===_0xd936c5[_0x508911(0xbd)],'onChange':_0x387ae9=>_0x3fd2b6({[_0x5aec9a[_0x508911(0x2d0)]]:!!_0x387ae9})}),_0xbadeae['t'](_0x5aec9a[_0x508911(0x249)])]},_0x5aec9a['key'])),_0x47e7d7[_0x508911(0x106)][_0x508911(0x3e1)]===_0xd936c5[_0x508911(0x270)]&&_0x2fa798(_0x508911(0x249),{'className':_0x508911(0x238),'children':[_0xbadeae['t'](_0x508911(0x328)),_0x5628d9(_0x701e3d,{'className':_0x508911(0x167),'value':String(_0x1c7b69[_0x508911(0x318)]??_0x551070[_0x508911(0x171)]),'options':[{'value':String(_0x551070['top']),'label':_0xbadeae['t'](_0x508911(0x132))},{'value':String(_0x551070['bottom']),'label':_0xbadeae['t'](_0x508911(0x26b))}],'onChange':_0x1399c7=>{const _0x2704ec=_0x508911;let _0x1744c0=[_0x551070['top'],_0x551070[_0x2704ec(0xdc)]][_0x2704ec(0x153)](_0x3b8d38=>String(_0x3b8d38)===_0x1399c7);_0x1744c0!==void 0x0&&_0x3fd2b6({'rowSubtotalPosition':_0x1744c0});}})]}),_0x2fa798(_0x508911(0x249),{'className':_0x508911(0x238),'children':[_0xbadeae['t']('bases-dashboard-ui.pivot.valuePosition'),_0x5628d9(_0x701e3d,{'className':_0x508911(0x167),'value':String(_0x47e7d7['pivot']['valuePosition']===_0x3fa86b['None']?_0x3fa86b[_0x508911(0x200)]:_0x47e7d7[_0x508911(0x106)][_0x508911(0x3ca)]),'options':[{'value':String(_0x3fa86b[_0x508911(0x200)]),'label':_0xbadeae['t'](_0x508911(0x1a4))},{'value':String(_0x3fa86b['Row']),'label':_0xbadeae['t'](_0x508911(0xce))}],'onChange':_0x5e5478=>{const _0x51cea2=_0x508911;let _0x487a22=[_0x3fa86b[_0x51cea2(0x200)],_0x3fa86b['Row']]['find'](_0x3df4ee=>String(_0x3df4ee)===_0x5e5478);_0x487a22!==void 0x0&&_0x4c94fc(_0x4e2d07=>_0x4e2d07['updateValuePosition'](_0x487a22,_0x4e2d07[_0x51cea2(0x2a0)]()<0x0?0x0:_0x4e2d07[_0x51cea2(0x2a0)]()));}})]}),_0x2fa798(_0x508911(0x249),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0xbadeae['t']('bases-dashboard-ui.pivot.pageWrap'),_0x5628d9(_0x57c888,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x1c7b69[_0x508911(0x3ae)]??0x1,'onChange':_0xb09cd7=>{const _0x7dd5cc=_0x508911;let _0x405912=Number(_0xb09cd7);Number[_0x7dd5cc(0x206)](_0x405912)&&_0x405912>=0x1&&_0x3fd2b6({'pageWrap':_0x405912});}})]}),_0x2fa798('label',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0xbadeae['t'](_0x508911(0xe3)),_0x5628d9(_0x701e3d,{'className':'univer-w-36','value':String(_0x1c7b69[_0x508911(0x188)]??!0x1),'options':[{'value':_0x508911(0xf6),'label':_0xbadeae['t'](_0x508911(0x18d))},{'value':_0x508911(0x1da),'label':_0xbadeae['t'](_0x508911(0x3a3))}],'onChange':_0x573e63=>_0x3fd2b6({'pageOverThenDown':_0x573e63==='true'})})]})]});}function go(_0x4fea19,_0x438192,_0x40e062,_0x320b83){const _0x44bb6c=_0x5d48da;let _0x325915=_0x4fea19[_0x44bb6c(0x21b)](_0x438192)[_0x44bb6c(0x153)](_0x12662f=>_0x4fea19['getFieldPositionInfoById'](_0x12662f[_0x44bb6c(0x2ce)]())[_0x44bb6c(0x1c3)]!==_0x87fd74[_0x44bb6c(0x24b)]);_0x40e062!==_0x87fd74['Value']&&_0x325915?_0x4fea19[_0x44bb6c(0x150)](_0x325915[_0x44bb6c(0x2ce)](),_0x40e062,_0x320b83):_0x4fea19['addFieldWithSourceId'](_0x438192,_0x40e062,_0x320b83);}function _o(_0x31f3ed,_0x531b9f,_0x4f37b5,_0x325ede){const _0x378272=_0x5d48da;return _0x531b9f===_0xd2fae4[_0x378272(0x1d1)]?_0x325ede:_0x531b9f===_0xd2fae4['date']&&_0x4f37b5?_0x52ec2b[_0x378272(0x231)](_0x4f37b5,Number(_0x31f3ed)):_0x31f3ed;}function vo(_0x34e402){const _0xd03e20=_0x5d48da;return _0x34e402[_0xd03e20(0x278)]===_0x3bfbe2[_0xd03e20(0x14f)]||_0x34e402[_0xd03e20(0x278)]===_0x3bfbe2[_0xd03e20(0x2d5)]||_0x34e402['type']===_0x3bfbe2[_0xd03e20(0x38a)]||_0x34e402['type']===_0x3bfbe2[_0xd03e20(0x393)];}function yo(_0x51dd41){const _0x3a7fd7=_0x5d48da;switch(_0x51dd41){case _0x87fd74[_0x3a7fd7(0x21e)]:return _0x3a7fd7(0x19a);case _0x87fd74[_0x3a7fd7(0x200)]:return _0x3a7fd7(0x284);case _0x87fd74[_0x3a7fd7(0x24b)]:return _0x3a7fd7(0x21d);default:return'bases-dashboard-ui.pivot.addToFilter';}}function bo({config:_0x5ba92f,onChange:_0x4c411f,runtime:_0xfedd9d,table:_0x54c544}){const _0x1006bb=_0x5d48da;let _0x564b76=_0x40463f(_0x1ecd96),[_0x3bce83,_0x3d0283]=_0x4ebd7a(_0x1006bb(0x204));return _0x2fa798(_0x1006bb(0x3da),{'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':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x564b76['t'](_0x1006bb(0x20c)),'className':_0x1006bb(0x217),'items':[{'label':_0x564b76['t'](_0x1006bb(0x172)),'panelId':_0x1006bb(0x2ed),'value':_0x1006bb(0x204)},{'label':_0x564b76['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'panelId':_0x1006bb(0x1c8),'value':_0x1006bb(0x106)}],'value':_0x3bce83,'variant':_0x1006bb(0x1d2),'onChange':_0x3d0283}),_0x5628d9(_0x1006bb(0x334),{'className':_0x1006bb(0x213),'children':_0x3bce83===_0x1006bb(0x204)?_0xfedd9d&&_0x5628d9(ma,{'config':_0x5ba92f,'runtime':_0xfedd9d,'tableName':_0x54c544[_0x1006bb(0x3d7)],'onChange':_0x4c411f}):_0x5628d9(so,{'config':_0x5ba92f,'table':_0x54c544,'onChange':_0x4c411f})})]});}function xo({tableId:_0x196ea7,unitId:_0xb95277,viewId:_0x4a9b2e}){const _0x2518f6=_0x5d48da;let _0x57d4ee=_0x40463f(_0x1e6f93),_0x29f593=_0x40463f(_0x4829da),_0xd14c90=_0x40463f(_0x53f9ce),_0x21b765=_0x40463f(_0x1ecd96),_0x398f99=_0x40463f(_0x2cf236),[_0x3cd74d,_0x3caaf4]=_0x4ebd7a(null),[_0x4d39aa,_0x43cb76]=_0x4ebd7a(null),_0x5a5f2b=_0x25fc59(_0x2518f6(0x118)+_0x2cedf9(0x8)),[_0x29f4b8,_0x517ea8]=_0x4ebd7a(!0x1),_0x3866ac=_0x29f593[_0x2518f6(0x17d)](_0xb95277,_0x247fc0[_0x2518f6(0x324)]),_0x1d788c=_0x3866ac==null?void 0x0:_0x3866ac[_0x2518f6(0x3e8)]()[_0x2518f6(0x3b5)][_0x196ea7],_0x4cd4f5=_0x1d788c==null?void 0x0:_0x1d788c['views'][_0x4a9b2e],_0x21f54b=So(_0x4cd4f5),_0x5c6939=yr(_0xb95277,_0x196ea7,_0x4a9b2e);if(_0x185176(()=>{const _0x321f81=_0x2518f6;if(!_0x21f54b)return;let _0x4214b2=_0x5a5f2b[_0x321f81(0xe8)];return _0x398f99[_0x321f81(0x1fe)](_0x4214b2,{'unitId':_0xb95277,'tableId':_0x196ea7,'viewId':_0x4a9b2e,'filters':[]}),()=>{const _0xdab2f=_0x321f81;_0x398f99[_0xdab2f(0x3e0)](_0xb95277,_0x4214b2);};},[_0x21f54b,_0x398f99,_0x196ea7,_0xb95277,_0x4a9b2e]),_0x185176(()=>{const _0x568035=_0x2518f6;if(!So(_0x4cd4f5))return;let _0x416e7d=!0x0,_0x129730={'unitId':_0xb95277,'tableId':_0x196ea7,'viewId':_0x4a9b2e,'filters':[_0x4cd4f5[_0x568035(0x122)]??null]};return _0x398f99[_0x568035(0x276)](_0xb95277,_0x5a5f2b['current'],_0x129730)['then'](_0x3d2e8c=>{_0x416e7d&&_0x3d2e8c&&(_0x3caaf4(_0x3d2e8c),_0x43cb76(_0x398f99['getChartRuntime'](_0xb95277,_0x5a5f2b['current'])??null),_0x517ea8(!0x1));})['catch'](_0x2dfe3b=>{const _0x186166=_0x568035;_0xd14c90[_0x186166(0x1a0)](_0x186166(0x30d),_0x2dfe3b),_0x416e7d&&(_0x3caaf4(null),_0x517ea8(!0x0));}),()=>{_0x416e7d=!0x1;};},[_0xd14c90,_0x398f99,_0x196ea7,_0xb95277,_0x4cd4f5,_0x4a9b2e]),!_0x1d788c||!So(_0x4cd4f5))return null;let _0x425a58=_0x398f99['getChartRuntime'](_0xb95277,_0x5a5f2b[_0x2518f6(0xe8)])===_0x4d39aa?_0x4d39aa:null,_0x3a9441=_0x3cd74d?_0x2fa798(_0x2518f6(0x334),{'className':_0x2518f6(0x377),'style':{'gridTemplateRows':_0x4cd4f5[_0x2518f6(0xa7)][_0x2518f6(0x31a)]==='chart-and-table'?_0x2518f6(0x346):'minmax(0,\x201fr)'},'children':[_0x4cd4f5['config']['displayMode']!==_0x2518f6(0x2d3)&&_0x425a58&&_0x5628d9('div',{'className':_0x2518f6(0x3d5),'children':_0x5628d9(Rr,{'isRowDirection':_0x1aba1a(_0x4cd4f5[_0x2518f6(0xa7)][_0x2518f6(0x204)][_0x2518f6(0x1e8)]),'runtime':_0x425a58})}),_0x4cd4f5[_0x2518f6(0xa7)][_0x2518f6(0x31a)]!==_0x2518f6(0x204)&&_0x5628d9(_0x2518f6(0x334),{'className':_0x2518f6(0x24e),'children':_0x5628d9(ji,{'pivot':_0x4cd4f5[_0x2518f6(0xa7)][_0x2518f6(0x106)],'view':_0x3cd74d[_0x2518f6(0x29c)]})})]}):_0x5628d9('div',{'className':_0x2518f6(0x3aa),'children':_0x29f4b8?_0x21b765['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x21b765['t']('bases-dashboard-ui.pivot.calculating')});return _0x2fa798(_0x2518f6(0x334),{'className':_0x2518f6(0x290),'children':[_0x5628d9(_0x2518f6(0x334),{'className':_0x2518f6(0x17c),'children':_0x3a9441}),_0x5c6939&&_0x5628d9(bo,{'config':_0x4cd4f5[_0x2518f6(0xa7)],'runtime':_0x425a58,'table':_0x1d788c,'onChange':_0x334a47=>{const _0x3f5043=_0x2518f6;_0x57d4ee[_0x3f5043(0x3e3)](_0x173771['id'],{'unitId':_0xb95277,'tableId':_0x196ea7,'viewId':_0x4a9b2e,'patch':_0x334a47})[_0x3f5043(0x26d)](_0x4c806a=>_0xd14c90[_0x3f5043(0x1a0)](_0x3f5043(0x1b6),_0x4c806a));}})]});}function So(_0x1c7c16){const _0x297745=_0x5d48da;return(_0x1c7c16==null?void 0x0:_0x1c7c16[_0x297745(0x278)])===_0xc74f11[_0x297745(0xe1)]&&typeof _0x1c7c16[_0x297745(0xa7)]==_0x297745(0x262)&&_0x1c7c16[_0x297745(0xa7)]!==null&&_0x297745(0x106)in _0x1c7c16['config']&&_0x297745(0x204)in _0x1c7c16['config']&&_0x297745(0x31a)in _0x1c7c16[_0x297745(0xa7)];}let Co=class extends _0x419e57{constructor(_0x2c0e23,_0x3c9994,_0x715b75,_0x5e0bd9,_0x30d75f,_0x31867a){const _0x10185c=_0x5d48da;super(),this[_0x10185c(0x1dc)](_0x3c9994[_0x10185c(0x343)]({'type':_0xc74f11[_0x10185c(0xe1)],'renderMode':_0x10185c(0x255),'icon':_0x55ff4b,'component':xo,'menu':{get 'label'(){const _0x3e8ff4=_0x10185c;return _0x31867a['t'](_0x3e8ff4(0x20c));},get 'description'(){return _0x31867a['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){const _0x530b4d=_0x10185c;return _0x31867a['t'](_0x530b4d(0x2d8));}}})),this[_0x10185c(0x1dc)](_0x2c0e23['register'](wo(_0x715b75,_0x5e0bd9,_0x30d75f,_0x31867a)));}};Co=Ar([Y(0x0,_0x5b5009),Y(0x1,_0x414da1),Y(0x2,_0x2d5804(_0x3a16be)),Y(0x3,_0x1e6f93),Y(0x4,_0x100697),Y(0x5,_0x2d5804(_0x1ecd96))],Co);function _0x187c(_0x9f099f,_0x203d0e){_0x9f099f=_0x9f099f-0x9a;const _0x1f688e=_0x1f68();let _0x187c20=_0x1f688e[_0x9f099f];return _0x187c20;}function wo(_0x434256,_0x175cd5,_0x58dd2f,_0x355255){const _0x493f81=_0x5d48da;return{'change$':_0x5f1bfe(_0x434256['change$'],_0x58dd2f[_0x493f81(0x27a)]),'component':Xa,get 'labels'(){const _0x3096ff=_0x493f81;return{'add':_0x355255['t']('bases-dashboard-ui.dashboard.add'),'configure':_0x1ccedb=>_0x355255['t'](_0x3096ff(0x364),_0x1ccedb),'delete':_0x355255['t']('bases-dashboard-ui.dashboard.delete'),'new':_0x355255['t'](_0x3096ff(0x234)),'rename':_0x355255['t'](_0x3096ff(0x357)),'search':_0x355255['t']('bases-dashboard-ui.dashboard.search'),'section':_0x355255['t'](_0x3096ff(0x303))};},'getItems':_0x287529=>{const _0x4ecd86=_0x493f81;let _0xd7cdbb=_0x434256[_0x4ecd86(0xc1)](_0x287529);return _0xd7cdbb['dashboardOrder']['flatMap'](_0xb98674=>{const _0x3636af=_0x4ecd86;let _0x2ddb62=_0xd7cdbb['dashboards'][_0xb98674];return _0x2ddb62?[{'id':_0x2ddb62['id'],'name':_0x2ddb62[_0x3636af(0x3d7)],'readonly':!_0x5706cb(_0x58dd2f,_0x287529,_0x2ddb62['id'])}]:[];});},'create':async _0x53f19b=>{const _0x409b72=_0x493f81;let _0x53278c=_0x434256[_0x409b72(0xc1)](_0x53f19b),_0x10ff23=_0x409b72(0x25d)+_0x2cedf9(0x8),_0x472a6b=To(_0x53278c[_0x409b72(0xd4)][_0x409b72(0x1ac)](_0x180f8e=>{const _0x22bce0=_0x409b72;let _0x1406f6=_0x53278c['dashboards'][_0x180f8e];return _0x1406f6?[_0x1406f6[_0x22bce0(0x3d7)]]:[];}),_0xd3766c=>_0x355255['t'](_0x409b72(0xc0),String(_0xd3766c)));return await _0x175cd5[_0x409b72(0x3e3)](_0x4764c4['id'],{'unitId':_0x53f19b,'dashboard':{'id':_0x10ff23,'name':_0x472a6b,'widgetOrder':[],'widgets':{}}})?_0x10ff23:null;},'rename':async(_0x19767c,_0x15322f,_0x8ba776)=>{const _0x3666a8=_0x493f81;let _0x3823b7=_0x434256[_0x3666a8(0x18b)](_0x19767c,_0x15322f);return!!(_0x3823b7&&await _0x175cd5[_0x3666a8(0x3e3)](_0x1e3e1b['id'],{'unitId':_0x19767c,'dashboard':{..._0x3823b7,'name':_0x8ba776}}));},'remove':(_0x3b8b17,_0xa245bb)=>_0x175cd5[_0x493f81(0x3e3)](_0x391460['id'],{'unitId':_0x3b8b17,'dashboardId':_0xa245bb})};}function To(_0x4d7f12,_0x422f1a){const _0x5b7964=_0x5d48da;let _0x194faf=new Set(_0x4d7f12),_0x391e73=_0x194faf[_0x5b7964(0x3bc)]+0x1,_0x4812fc=_0x422f1a(_0x391e73);for(;_0x194faf['has'](_0x4812fc);)_0x391e73+=0x1,_0x4812fc=_0x422f1a(_0x391e73);return _0x4812fc;}let Eo=class extends _0x1ea012{constructor(_0x55d3b7=_r,_0x2c001a,_0x4ccc68){const _0x1d28fe=_0x5d48da;super(),this['_config']=_0x55d3b7,this[_0x1d28fe(0xbf)]=_0x2c001a,this['_configService']=_0x4ccc68;let {..._0x131bf2}=_0x362ea8({},_r,this[_0x1d28fe(0x1b1)]);this[_0x1d28fe(0xc6)][_0x1d28fe(0x340)](gr,_0x131bf2);}[_0x5d48da(0x3a1)](){const _0x425116=_0x5d48da;this[_0x425116(0xbf)][_0x425116(0x1bf)]([jr]),this[_0x425116(0xbf)][_0x425116(0x1bf)]([qr]),this[_0x425116(0xbf)][_0x425116(0x1bf)]([Co]);}[_0x5d48da(0x187)](){_0xe4152(this['_injector'],[[jr],[qr],[Co]]);}};Ir(Eo,_0x5d48da(0x278),_0x247fc0[_0x5d48da(0x324)]),Ir(Eo,_0x5d48da(0x299),'BASE_DASHBOARD_UI_PLUGIN'),Ir(Eo,_0x5d48da(0x37d),mr),Ir(Eo,_0x5d48da(0x1ae),hr),Eo=Ar([_0xb94e7b(_0x5d1ed0,_0x7e7509,_0x408ea8,_0x41f191,_0xff803e,_0x175601),Y(0x1,_0x2d5804(_0x3c350b)),Y(0x2,_0x8e960e)],Eo);export{ia as UniverBaseDashboardMobileUIPlugin,Eo as UniverBaseDashboardUIPlugin};
1
+ const _0x290871=_0x29b7;(function(_0xa23879,_0x5e535a){const _0x350b28=_0x29b7,_0x2a45f3=_0xa23879();while(!![]){try{const _0x1cd565=parseInt(_0x350b28(0x37f))/0x1+-parseInt(_0x350b28(0x2bd))/0x2*(-parseInt(_0x350b28(0x14a))/0x3)+-parseInt(_0x350b28(0x181))/0x4+parseInt(_0x350b28(0x242))/0x5*(-parseInt(_0x350b28(0x31c))/0x6)+-parseInt(_0x350b28(0x408))/0x7+-parseInt(_0x350b28(0x1cc))/0x8*(-parseInt(_0x350b28(0x1bc))/0x9)+parseInt(_0x350b28(0x429))/0xa;if(_0x1cd565===_0x5e535a)break;else _0x2a45f3['push'](_0x2a45f3['shift']());}catch(_0x393e96){_0x2a45f3['push'](_0x2a45f3['shift']());}}}(_0x5bbc,0xe0c34));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x37eeaf,BASES_DASHBOARD_GRID_COLUMNS as _0x2fad3b,BaseChartRuntimeService as _0xcfb712,BaseDashboardResourceService as _0x1aeb78,BaseDashboardWidgetType as _0x39775d,CreateBaseDashboardCommand as _0x28dee1,DeleteBaseDashboardCommand as _0x1d2c48,RemoveBaseDashboardWidgetCommand as _0x3707f4,UniverBaseDashboardPlugin as _0x528fcf,UpdateBaseDashboardCommand as _0xe5ba16,UpdateBasePivotViewCommand as _0x423077,UpsertBaseDashboardWidgetCommand as _0x2e234a,canEditBaseDashboard as _0x353928,canEditBasePivotView as _0x1db759,createBasePivotTable as _0x2abd9d,resolveBasePivotChartRowDirection as _0x52d288}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x32f41c,BaseMobileDrawer as _0x3da581,BaseMobileFilterOperand as _0x28df3d,BaseMobileFilterPanel as _0xdfeac7,BaseUnitCollaborationStatus as _0xd9e87c,FormulaEditorPanel as _0x461c68,IBaseDashboardUIExtensionRegistryService as _0x73fa49,IBaseViewUIRegistryService as _0x33fef6,MobileFormulaEditorPanel as _0x558efe,UniverBasesMobileUIPlugin as _0x221667,UniverBasesUIPlugin as _0x2ed41f,formulaToEditorFormula as _0x3cad2e,normalizeEditorFormulaForConfig as _0x1a63bf,toFormulaMenuTables as _0x3134ee,toMenuFields as _0x5dcd9e}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x1bd142,ChartAxisSection as _0xaa8939,ChartColorField as _0x43bcb4,ChartCommonDataMappingSection as _0x362f58,ChartEditBlockTitle as _0xce0d39,ChartEditPanel as _0x1199fe,ChartEditPanelSection as _0x111171,ChartEditPanelTab as _0x147b03,ChartEditPanelTabs as _0xbfe45a,ChartEditorCapability as _0x518183,ChartEditorProvider as _0x32b767,ChartFunnelStyleSection as _0x5e8635,ChartGradientFillField as _0x309fc7,ChartGridlinesAndTicksSection as _0x54cf11,ChartHeatmapStyleSection as _0x48cea1,ChartHostAdapter as _0x1be047,ChartIndicatorLineSection as _0x5b0ede,ChartLegendSection as _0x179da2,ChartLineAndAreaSection as _0x4ec390,ChartNumberFormatAtom as _0x3f6633,ChartParetoSeriesSection as _0x4ad9db,ChartPieStyleSection as _0x36413b,ChartRadarStyleSection as _0x1ef123,ChartRelationStyleSection as _0x1271d5,ChartSectionAccordion as _0x1b215e,ChartSectionAccordionContent as _0x50d9e3,ChartSectionAccordionItem as _0x410c47,ChartSectionAccordionTrigger as _0x4a23d8,ChartSeriesSection as _0x126708,ChartStackField as _0x11955e,ChartStyleSection as _0x3488e9,ChartThemeField as _0xdeb132,ChartThreeDSection as _0x2dcd87,ChartTitlesSection as _0x5bf2da,ChartTrendlineSection as _0x452c9a,ChartTypeField as _0x3e755e,ChartTypeSpecificDataSection as _0x311d22,ChartTypeSpecificSetupSection as _0x3c8f1a,ChartTypeSpecificStyleSection as _0x5d8d27,ChartUIService as _0x19ef03,ChartViewStateRegistry as _0x598437,ChartWaterfallSetupFields as _0x41d408,ChartWaterfallStyleSection as _0x271332,ChartWordCloudStyleSection as _0x3b9d11,DEFAULT_CHART_AXIS_VALUES as _0x2dd039,DEFAULT_CHART_FUNNEL_VALUES as _0x5cde1d,DEFAULT_CHART_HEATMAP_VALUES as _0x380efc,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x204acd,DEFAULT_CHART_LEGEND_VALUES as _0x492f3b,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x2c3d74,DEFAULT_CHART_PARETO_VALUES as _0x2602cf,DEFAULT_CHART_PIE_VALUES as _0x51c1c6,DEFAULT_CHART_RADAR_VALUES as _0x2f51cf,DEFAULT_CHART_RELATION_VALUES as _0x20d453,DEFAULT_CHART_SERIES_VALUES as _0x3f5b1f,DEFAULT_CHART_STYLE_VALUES as _0x44b136,DEFAULT_CHART_TITLE_VALUES as _0x53b57d,DEFAULT_CHART_TRENDLINE_VALUES as _0x23fc75,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x3cf6dc,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x2841cd,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x4bd002,MobileChartEditorControls as _0x231698,MobileChartEditorProvider as _0x371701,UniverChartMobileUIPlugin as _0x500bc9,UniverChartUIPlugin as _0xc5d54f,buildChartTypeSelectOptions as _0x2ed067,chartTypeSupportsCapability as _0x1d4e5d,chartTypeSupportsLineAndAreaStyle as _0x422d44,useChartEditorChartType as _0x3b67f6,useChartEditorHasRightAxis as _0x1f9302}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x47a995}from'@univerjs-pro/license';import{ShapeFormulaService as _0x23e297,UniverShapeEditorPlugin as _0x48b358,createFormulaShapeData as _0x501502}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0x5e006f,BaseFilterConjunction as _0x369900,BaseFilterOperator as _0x5cc925,BaseViewType as _0x3744eb,DependentOn as _0x3bb5e2,Disposable as _0x92f3c1,ICommandService as _0x299365,IConfigService as _0x32ba7f,IImageIoService as _0x1c9925,ILogService as _0x104d80,IPermissionService as _0x3813b4,IUndoRedoService as _0x2ce242,IUniverInstanceService as _0x5abbf9,ImageSourceType as _0x2b3585,Inject as _0x106e69,Injector as _0x117569,LocaleService as _0x4b0f72,ObjectPermissionService as _0x2a9732,Plugin as _0x447642,RedoCommand as _0x40e22e,ThemeService as _0x32e309,UndoCommand as _0x2cf828,UniverInstanceType as _0x1516ee,createParagraphId as _0x2900cb,dateKit as _0x1a7bb5,debounce as _0x5d60c1,generateRandomId as _0x89ef13,merge as _0x4fa520,numfmt as _0x488061,touchDependencies as _0x49d35e}from'@univerjs/core';import{UniverDocsUIPlugin as _0x542cb3}from'@univerjs/docs-ui';import{ArrowDownIcon as _0x402220,ArrowUpIcon as _0x12ff8f,AscendingIcon as _0x16058f,CalendarIcon as _0x2ac587,ChartIcon as _0x3c5010,CloseIcon as _0x2f343c,DeleteIcon as _0x152022,DescendingIcon as _0x39dc4f,ExpandIcon as _0x552f90,FilterIcon as _0x27cd4d,GripVerticalIcon as _0x4cfa50,IncreaseIcon as _0x2dc2bd,MoreDownIcon as _0xed8c69,MoreHorizontalIcon as _0x37e5b5,NumberIcon as _0x15cd07,PenIcon as _0xd735a9,PivotTableIcon as _0x3abb8f,ProtectIcon as _0x1352c6,RedoIcon as _0x9c5a81,SearchIcon as _0x282ad6,TextIcon as _0x277b88,UndoIcon as _0x4dc9e7}from'@univerjs/icons';import{combineLatest as _0x35c468,map as _0x263c89,merge as _0x5d4904,skip as _0x43c3f6}from'rxjs';import{SetBasePermissionCommand as _0x3c4b15,getBaseDashboardPermissionObjectId as _0x3a0eab}from'@univerjs-pro/bases';import{IAttachmentIoService as _0xdb66e}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x2d3577,ShapeLineTypeEnum as _0x354b42,ShapeTypeEnum as _0x25ce73}from'@univerjs-pro/engine-shape';import{Button as _0x5d2b24,Checkbox as _0x283511,DatePicker as _0x34c307,Dialog as _0x446051,DropdownMenu as _0x4acc99,Input as _0x448a93,InputNumber as _0x2963f5,MobileDialog as _0x5992e1,MobileDropdownMenu as _0xb4f8a7,MobileSelect as _0x366613,MultipleSelect as _0x2eb6e4,Segmented as _0x4110dc,Select as _0x296606,Textarea as _0x27cc24,Tooltip as _0x9a071a,borderClassName as _0x434c98,clsx as _0x2c3136,scrollbarClassName as _0x443bf8}from'@univerjs/design';import{UnitObject as _0x1d0cb1}from'@univerjs/protocol';import{ILayoutService as _0x23e99d,ObjectPermissionButton as _0x276888,openObjectPermissionDialog as _0xaa0c2a,useDependency as _0xe276a8,useObservable as _0x45d384}from'@univerjs/ui';import{useCallback as _0x12bed3,useEffect as _0x330c05,useMemo as _0x50478e,useRef as _0x3987b,useState as _0x3f626c}from'react';import{Fragment as _0x42483e,jsx as _0x414ebe,jsxs as _0x3c00a1}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x4b80d0,ChartRenderMode as _0x1d5083,ChartThemeService as _0x3d43ec,ChartTypeBits as _0x376127,ChartWaterfallStyleTarget as _0x34ed53,IChartRenderModelManagerService as _0x3f88ee,RTLChartStyle as _0x38bf7d,chartBitsUtils as _0x4ec613,chartTypeCanUseTrendLine as _0x2db1ff,resolveChartRuntimeStyle as _0x495002,resolveDefaultChartHostFrameStyle as _0x568c1b,toChartModelUpdate as _0x2d72ce}from'@univerjs-pro/engine-chart';import{createPortal as _0x17d46a}from'react-dom';import{PivotCellStyleTypeEnum as _0x57b037,PivotDataFieldDataTypeEnum as _0x3a56c2,PivotDataFieldSortOperatorEnum as _0x34bdeb,PivotFilterTypeEnum as _0x101c58,PivotLayoutTypeEnum as _0x5c7745,PivotSubtotalPositionEnum as _0x1c5136,PivotSubtotalTypeEnum as _0x358af4,PivotTableFiledAreaEnum as _0x1b52e3,PivotTableValuePositionEnum as _0x3d12ff,isErrorValue as _0xb054a9,isPrefixValue as _0x2a61e8}from'@univerjs-pro/engine-pivot';var mr=_0x290871(0x269),hr=_0x290871(0x422);const gr='bases-dashboard-ui.config',_r={};function vr(_0x40d162,_0x40ba40){const _0x1d7032=_0x290871;let _0x1e5a06=_0xe276a8(_0x3813b4),_0x12046d=_0x353928(_0x1e5a06,_0x40d162,_0x40ba40);return _0x45d384(()=>_0x1e5a06[_0x1d7032(0x2ef)]['pipe'](_0x263c89(()=>_0x353928(_0x1e5a06,_0x40d162,_0x40ba40))),_0x12046d,!0x1,[_0x40ba40,_0x1e5a06,_0x40d162]);}function yr(_0x1d6053,_0x3078de,_0x3bd468){const _0x11567f=_0x290871;let _0x549b49=_0xe276a8(_0x3813b4),_0x4c4fce=_0x1db759(_0x549b49,_0x1d6053,_0x3078de,_0x3bd468);return _0x45d384(()=>_0x549b49[_0x11567f(0x2ef)][_0x11567f(0x453)](_0x263c89(()=>_0x1db759(_0x549b49,_0x1d6053,_0x3078de,_0x3bd468))),_0x4c4fce,!0x1,[_0x549b49,_0x3078de,_0x1d6053,_0x3bd468]);}function br(_0x59b9a3,_0xb5f9d7=_0x290871(0x257)){const _0x40e495=_0x290871;return{'backgroundImage':_0x40e495(0x1fd)+JSON[_0x40e495(0x32a)](_0x59b9a3)+')','backgroundPosition':_0xb5f9d7==='repeat'?_0x40e495(0x1c9):_0x40e495(0x15d),'backgroundRepeat':_0xb5f9d7===_0x40e495(0x413)?'repeat':'no-repeat','backgroundSize':_0xb5f9d7===_0x40e495(0x257)?_0x40e495(0x257):'auto'};}const xr={'alignment':_0x290871(0x2f9),'currency':_0x290871(0x376),'decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x290871(0x449),'numberFormat':_0x290871(0x3ae)},Sr={'CNY':'¥','EUR':'€','USD':'$'};function Cr(_0x4b5f1c){const _0x3e45eb=_0x290871;var _0x1bd2e4;let _0x441869=Dr(((_0x1bd2e4=_0x4b5f1c[_0x3e45eb(0x3c7)][_0x3e45eb(0x3c0)])==null||(_0x1bd2e4=_0x1bd2e4[_0x3e45eb(0x262)])==null?void 0x0:_0x1bd2e4[_0x3e45eb(0x30a)])??'');return{...xr,..._0x441869,..._0x4b5f1c['appearance']};}function wr(_0x20bbc0,_0x176122){const _0x108ab5=_0x290871;let _0x9ae2d0={..._0x20bbc0['appearance'],..._0x176122},_0x3246c5=Cr({..._0x20bbc0,'appearance':_0x9ae2d0}),_0x4b53e1=_0x20bbc0[_0x108ab5(0x3c7)]['formulaBinding']??{'formula':''};return{..._0x20bbc0,'appearance':_0x9ae2d0,'shapeData':{..._0x20bbc0[_0x108ab5(0x3c7)],'formulaBinding':{..._0x4b53e1,'numberFormat':{'pattern':Tr(_0x3246c5['numberFormat'],_0x3246c5[_0x108ab5(0x2d6)],_0x3246c5[_0x108ab5(0x3c6)])}}}};}function Tr(_0x4da4a2,_0x36fcb7,_0x3abe82){const _0x3e6cc3=_0x290871;let _0x2dc790=Math[_0x3e6cc3(0x399)](0x0,Math[_0x3e6cc3(0x459)](0x8,Math['round'](_0x36fcb7))),_0x1352d2=_0x2dc790?'.'+'0'['repeat'](_0x2dc790):'';switch(_0x4da4a2){case _0x3e6cc3(0x475):return'0'+_0x1352d2;case'percent':return'0'+_0x1352d2+'%';case _0x3e6cc3(0x3c6):return(Sr[_0x3abe82]??_0x3abe82)+_0x3e6cc3(0x172)+_0x1352d2;case _0x3e6cc3(0x146):return'#,##0'+_0x1352d2;case'compact':case _0x3e6cc3(0x3ae):return'General';}}function Er(_0x34187d,_0x11bd70,_0x1c6aee){const _0x4a7541=_0x290871;return _0x1c6aee[_0x4a7541(0x262)]!==_0x4a7541(0x177)||typeof _0x11bd70!=_0x4a7541(0x475)||!Number[_0x4a7541(0x433)](_0x11bd70)?_0x34187d:new Intl[(_0x4a7541(0x174))](void 0x0,{'notation':_0x4a7541(0x177),'minimumFractionDigits':_0x1c6aee[_0x4a7541(0x2d6)]??0x0,'maximumFractionDigits':_0x1c6aee[_0x4a7541(0x2d6)]??0x0})[_0x4a7541(0x30f)](_0x11bd70);}function Dr(_0x472b9e){const _0x46547d=_0x290871;var _0x100e20,_0x11c036;if(!_0x472b9e||_0x472b9e===_0x46547d(0x201))return{};let _0x4c6f73=_0x472b9e['match'](/\.([0#]+)/),_0x1a3eea=(_0x4c6f73==null||(_0x100e20=_0x4c6f73[0x1])==null?void 0x0:_0x100e20[_0x46547d(0x151)])??0x0;if(_0x472b9e[_0x46547d(0x424)]('%'))return{'decimalPlaces':_0x1a3eea,'numberFormat':_0x46547d(0x261)};let _0x114f84=(_0x11c036=Object[_0x46547d(0x47e)](Sr)[_0x46547d(0x47f)](([,_0x1de319])=>_0x472b9e[_0x46547d(0x424)](_0x1de319)))==null?void 0x0:_0x11c036[0x0];return _0x114f84?{'currency':_0x114f84,'decimalPlaces':_0x1a3eea,'numberFormat':_0x46547d(0x3c6)}:{'decimalPlaces':_0x1a3eea,'numberFormat':_0x472b9e[_0x46547d(0x424)](',')?'grouped':_0x46547d(0x475)};}const Or={'center':_0x290871(0x15d),'left':'flex-start','right':_0x290871(0x1c1)};function kr({dashboardId:_0x4dc65f,unitId:_0xb5111f,widget:_0x59bd8e}){const _0x28f407=_0x290871;var _0x47c625,_0x2cf0b7,_0x56e677,_0x2e9d52,_0x3bf4aa,_0x3f9099,_0x12ab64,_0x3dbdd1,_0x1b7464;let _0x50f7ab=_0xe276a8(_0x23e297),_0x442486=_0xe276a8(_0x1c9925),_0x48ce53=_0xe276a8(_0x4b0f72),_0x6c210e=_0x50478e(()=>({'hostType':_0x1516ee[_0x28f407(0x3c2)],'unitId':_0xb5111f,'subUnitId':_0x4dc65f,'shapeId':_0x59bd8e['id']}),[_0x4dc65f,_0xb5111f,_0x59bd8e['id']]),[_0x17c03e,_0x3a47bd]=_0x3f626c(()=>_0x50f7ab[_0x28f407(0x32c)](_0x6c210e)),[_0x1abd7a,_0x1d8983]=_0x3f626c(()=>{const _0x59d189=_0x28f407;var _0x2ec5a0;return(_0x2ec5a0=_0x50f7ab[_0x59d189(0x3ab)](_0x6c210e))==null?void 0x0:_0x2ec5a0[_0x59d189(0x1c2)];}),[_0x1c764b,_0x15ef70]=_0x3f626c(),_0x9db26f=_0x3987b(null),_0x1defa5=_0x3987b(null),_0x464c39=Cr(_0x59bd8e);_0x330c05(()=>{const _0xb300db=_0x28f407;let _0x4a8eb4=_0x50f7ab[_0xb300db(0x256)][_0xb300db(0x3e3)](_0x4930f9=>{const _0x222426=_0xb300db;_0x4930f9['unitId']===_0xb5111f&&_0x4930f9[_0x222426(0x3ce)]===_0x4dc65f&&_0x4930f9['shapeId']===_0x59bd8e['id']&&(_0x3a47bd(_0x4930f9[_0x222426(0x13f)]),_0x1d8983(_0x4930f9[_0x222426(0x1e0)][_0x222426(0x1c2)]));});return()=>_0x4a8eb4[_0xb300db(0x471)]();},[_0x4dc65f,_0x50f7ab,_0x6c210e,_0xb5111f,_0x59bd8e['id']]),_0x330c05(()=>{const _0xfc230a=_0x28f407;let _0x4879d9=_0x464c39['backgroundImage'];if(!_0x4879d9||_0x4879d9[_0xfc230a(0x260)]!==_0x2b3585[_0xfc230a(0x320)])return;let _0x5072f1=_0x442486[_0xfc230a(0x322)](_0x4879d9[_0xfc230a(0x237)],_0x4879d9[_0xfc230a(0x260)]);if(_0x5072f1!=null&&_0x5072f1[_0xfc230a(0x2f2)])return;let _0x4ce82e=!0x0;return _0x442486[_0xfc230a(0x235)](_0x4879d9['source'])[_0xfc230a(0x1fb)](_0x2434e4=>{_0x4ce82e&&_0x15ef70({'source':_0x4879d9['source'],'value':_0x2434e4});})[_0xfc230a(0x147)](()=>void 0x0),()=>{_0x4ce82e=!0x1;};},[_0x464c39[_0x28f407(0x313)],_0x442486]);let _0x746a49=((_0x47c625=_0x464c39[_0x28f407(0x313)])==null?void 0x0:_0x47c625[_0x28f407(0x260)])===_0x2b3585[_0x28f407(0x320)]?((_0x2cf0b7=_0x442486[_0x28f407(0x322)](_0x464c39[_0x28f407(0x313)][_0x28f407(0x237)],_0x464c39['backgroundImage'][_0x28f407(0x260)]))==null?void 0x0:_0x2cf0b7[_0x28f407(0x2f2)])??((_0x1c764b==null?void 0x0:_0x1c764b[_0x28f407(0x237)])===_0x464c39['backgroundImage'][_0x28f407(0x237)]?_0x1c764b['value']:''):((_0x56e677=_0x464c39['backgroundImage'])==null?void 0x0:_0x56e677['source'])??'',_0x348a9a=_0x59bd8e[_0x28f407(0x3c7)][_0x28f407(0x200)],_0x32ff1f=_0x348a9a&&_0x28f407(0x400)in _0x348a9a?(_0x2e9d52=_0x348a9a['dataModel'])==null?void 0x0:_0x2e9d52[_0x28f407(0x3ea)]:void 0x0,_0x40b596=Er((_0x17c03e==null?void 0x0:_0x17c03e[_0x28f407(0x476)])??'',_0x1abd7a,_0x464c39),_0x32e0cf=_0x59bd8e['shapeData']['fill'],_0x24e453=_0x59bd8e[_0x28f407(0x3c7)]['stroke'],_0x364791=_0x32ff1f==null||(_0x3bf4aa=_0x32ff1f[_0x28f407(0x3e2)])==null?void 0x0:_0x3bf4aa[_0x28f407(0x2e4)],_0x41808b=_0x59bd8e[_0x28f407(0x451)]??_0x59bd8e[_0x28f407(0x43d)]??'';return _0x330c05(()=>{const _0xd5e16d=_0x28f407;let _0x42fb06=_0x9db26f[_0xd5e16d(0x2e7)],_0xe6b723=_0x1defa5[_0xd5e16d(0x2e7)];if(!_0x42fb06||!_0xe6b723)return;let _0x4ff7e2=()=>{const _0x208d10=_0xd5e16d;if(_0x464c39[_0x208d10(0x307)]===_0x208d10(0x3b7)||!_0x42fb06[_0x208d10(0x44c)]||!_0x42fb06[_0x208d10(0x3b3)]){_0xe6b723[_0x208d10(0x148)][_0x208d10(0x1a7)]=_0x464c39[_0x208d10(0x1a7)]+'px';return;}let _0x345add=0x1,_0x672e90=0x48,_0x6d5336=_0x345add;for(;_0x345add<=_0x672e90;){let _0x275d3f=Math[_0x208d10(0x16d)]((_0x345add+_0x672e90)/0x2);_0xe6b723[_0x208d10(0x148)][_0x208d10(0x1a7)]=_0x275d3f+'px',_0xe6b723[_0x208d10(0x2ab)]<=_0x42fb06[_0x208d10(0x44c)]&&_0xe6b723[_0x208d10(0x41e)]<=_0x42fb06['clientHeight']?(_0x6d5336=_0x275d3f,_0x345add=_0x275d3f+0x1):_0x672e90=_0x275d3f-0x1;}_0xe6b723[_0x208d10(0x148)][_0x208d10(0x1a7)]=_0x6d5336+'px';};if(_0x4ff7e2(),typeof ResizeObserver>'u')return;let _0x2ae31a=new ResizeObserver(_0x4ff7e2);return _0x2ae31a[_0xd5e16d(0x1a1)](_0x42fb06),()=>_0x2ae31a[_0xd5e16d(0x246)]();},[_0x464c39['fontSize'],_0x464c39[_0x28f407(0x307)],_0x40b596]),_0x3c00a1('div',{'data-dashboard-formula-shape':_0x59bd8e['id'],'className':_0x28f407(0x143),'style':{'backgroundColor':((_0x3f9099=_0x59bd8e[_0x28f407(0x366)])==null?void 0x0:_0x3f9099['backgroundColor'])??((_0x32e0cf==null?void 0x0:_0x32e0cf[_0x28f407(0x2b2)])===_0x2d3577['SolidFill']?_0x32e0cf[_0x28f407(0x458)]??void 0x0:void 0x0),'border':(_0x24e453==null?void 0x0:_0x24e453[_0x28f407(0x40e)])===_0x354b42[_0x28f407(0x20f)]?(_0x24e453[_0x28f407(0x361)]??0x1)+_0x28f407(0x25d)+(_0x24e453[_0x28f407(0x458)]??_0x28f407(0x327)):void 0x0,'borderRadius':_0x59bd8e[_0x28f407(0x46d)]===_0x25ce73['RoundRect']?0xc:void 0x0,'color':((_0x12ab64=_0x59bd8e[_0x28f407(0x366)])==null?void 0x0:_0x12ab64[_0x28f407(0x467)])??(_0x17c03e==null?void 0x0:_0x17c03e[_0x28f407(0x458)])??(_0x364791==null||(_0x3dbdd1=_0x364791['cl'])==null?void 0x0:_0x3dbdd1['rgb'])??void 0x0,'fontWeight':_0x364791!=null&&_0x364791['bl']?0x258:void 0x0,'textAlign':_0x464c39[_0x28f407(0x1f6)]},'children':[_0x746a49&&_0x414ebe(_0x28f407(0x19c),{'src':_0x746a49,'alt':'','aria-hidden':_0x28f407(0x2b6),'className':_0x28f407(0x179),'style':{'objectFit':((_0x1b7464=_0x464c39[_0x28f407(0x313)])==null?void 0x0:_0x1b7464['fit'])??_0x28f407(0x257)}}),_0x3c00a1(_0x28f407(0x384),{'className':'univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','children':[_0x41808b&&_0x414ebe(_0x28f407(0x384),{'data-dashboard-formula-description':!0x0,'className':_0x28f407(0x248),'children':_0x41808b}),_0x414ebe(_0x28f407(0x384),{'ref':_0x9db26f,'data-dashboard-formula-value':!0x0,'aria-label':_0x41808b||_0x48ce53['t'](_0x28f407(0x1d2)),'className':_0x28f407(0x2f4),'style':{'justifyContent':Or[_0x464c39['alignment']]},'children':_0x414ebe(_0x28f407(0x415),{'ref':_0x1defa5,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x464c39[_0x28f407(0x307)],'className':_0x28f407(0x1fc),'children':_0x40b596})})]})]});}function Y(_0x8359a9,_0x460fb6){return function(_0x5a568b,_0x13e07b){_0x460fb6(_0x5a568b,_0x13e07b,_0x8359a9);};}function Ar(_0x497249,_0x365144,_0x4b4a14,_0x3d84f0){const _0x3e25e2=_0x290871;var _0x17d0d2=arguments['length'],_0x2a741d=_0x17d0d2<0x3?_0x365144:_0x3d84f0===null?_0x3d84f0=Object[_0x3e25e2(0x28e)](_0x365144,_0x4b4a14):_0x3d84f0,_0x22f8b4;if(typeof Reflect==_0x3e25e2(0x30e)&&typeof Reflect['decorate']==_0x3e25e2(0x3e7))_0x2a741d=Reflect[_0x3e25e2(0x1b3)](_0x497249,_0x365144,_0x4b4a14,_0x3d84f0);else{for(var _0x1e7004=_0x497249[_0x3e25e2(0x151)]-0x1;_0x1e7004>=0x0;_0x1e7004--)(_0x22f8b4=_0x497249[_0x1e7004])&&(_0x2a741d=(_0x17d0d2<0x3?_0x22f8b4(_0x2a741d):_0x17d0d2>0x3?_0x22f8b4(_0x365144,_0x4b4a14,_0x2a741d):_0x22f8b4(_0x365144,_0x4b4a14))||_0x2a741d);}return _0x17d0d2>0x3&&_0x2a741d&&Object['defineProperty'](_0x365144,_0x4b4a14,_0x2a741d),_0x2a741d;}let jr=class{constructor(_0x22ff9e,_0x14f478,_0xb99c51){this['_localeService']=_0x22ff9e,this['_chartThemeService']=_0x14f478,this['_renderModelManager']=_0xb99c51;}['createDomChartInstance'](){const _0x469eb1=_0x290871;return this['_renderModelManager'][_0x469eb1(0x1e1)](_0x1d5083[_0x469eb1(0x2fc)],this[_0x469eb1(0x1e4)]());}[_0x290871(0x2c2)](_0x3f7bc9){const _0x5550a7=_0x290871;let _0x3f79e0=_0x3f7bc9[_0x5550a7(0x1cd)]['config'];if(!_0x3f79e0)throw Error('Base\x20dashboard\x20chart\x20'+_0x3f7bc9['chartId']+_0x5550a7(0x3d6));let _0x4109cf=this[_0x5550a7(0x1c7)]['getDirection']();return{'config':_0x3f79e0,'style':_0x495002({..._0x3f7bc9['model'][_0x5550a7(0x148)],'runtime':_0x3f7bc9[_0x5550a7(0x1cd)]['getRuntimeContext'](_0x4109cf),'direction':_0x4109cf},_0x3f79e0['type'])};}[_0x290871(0x1e4)](){const _0x5262c8=_0x290871;return{'resolveHostStyle':({style:_0x127ea0})=>_0x568c1b({'style':_0x127ea0,'getRenderColor':_0x1f5de3=>this[_0x5262c8(0x2dc)][_0x5262c8(0x2b4)](_0x1f5de3)}),'resolveRenderBackgroundColor':({hostStyle:_0x31a9f0})=>_0x31a9f0[_0x5262c8(0x1b2)]};}};jr=Ar([Y(0x0,_0x106e69(_0x4b0f72)),Y(0x1,_0x106e69(_0x3d43ec)),Y(0x2,_0x3f88ee)],jr);function Mr(_0x39aef8,_0x5080e2){const _0xdceca5=_0x290871;var _0x177f6a;_0x39aef8[_0xdceca5(0x148)]['backgroundColor']=_0x5080e2[_0xdceca5(0x1b2)]??_0xdceca5(0x46e),_0x39aef8[_0xdceca5(0x148)][_0xdceca5(0x329)]=(_0x177f6a=_0x5080e2[_0xdceca5(0x329)])!=null&&_0x177f6a[_0xdceca5(0x458)]&&_0x5080e2[_0xdceca5(0x329)][_0xdceca5(0x361)]?_0x5080e2[_0xdceca5(0x329)][_0xdceca5(0x361)]+_0xdceca5(0x25d)+_0x5080e2[_0xdceca5(0x329)][_0xdceca5(0x458)]:'',_0x39aef8[_0xdceca5(0x148)][_0xdceca5(0x28c)]=_0x5080e2['radius']?_0x5080e2[_0xdceca5(0x2e1)]+'px':'',_0x39aef8[_0xdceca5(0x148)]['overflow']=_0xdceca5(0x1b5),_0x39aef8[_0xdceca5(0x148)][_0xdceca5(0x390)]=_0xdceca5(0x35b);}function Nr(_0x2c23b2){'@babel/helpers - typeof';const _0xc2875c=_0x290871;return Nr=typeof Symbol=='function'&&typeof Symbol['iterator']==_0xc2875c(0x436)?function(_0x4cf923){return typeof _0x4cf923;}:function(_0x1db7cd){const _0x3c528f=_0xc2875c;return _0x1db7cd&&typeof Symbol==_0x3c528f(0x3e7)&&_0x1db7cd[_0x3c528f(0x41a)]===Symbol&&_0x1db7cd!==Symbol[_0x3c528f(0x1ac)]?_0x3c528f(0x436):typeof _0x1db7cd;},Nr(_0x2c23b2);}function Pr(_0x27d413,_0x4b6049){const _0x373743=_0x290871;if(Nr(_0x27d413)!=_0x373743(0x30e)||!_0x27d413)return _0x27d413;var _0x40654f;if(typeof Symbol<'u'&&(_0x40654f=_0x27d413[Symbol[_0x373743(0x1bd)]])!==void 0x0){var _0x56987c=_0x40654f[_0x373743(0x358)](_0x27d413,_0x4b6049||_0x373743(0x22e));if(Nr(_0x56987c)!=_0x373743(0x30e))return _0x56987c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4b6049==='string'?String:Number)(_0x27d413);}function Fr(_0x2792e6){const _0x47a762=_0x290871;var _0x5f111b=Pr(_0x2792e6,_0x47a762(0x26b));return Nr(_0x5f111b)=='symbol'?_0x5f111b:_0x5f111b+'';}function Ir(_0x39a603,_0x2587a3,_0x237216){const _0x2630ab=_0x290871;return(_0x2587a3=Fr(_0x2587a3))in _0x39a603?Object[_0x2630ab(0x30c)](_0x39a603,_0x2587a3,{'value':_0x237216,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39a603[_0x2587a3]=_0x237216,_0x39a603;}var Lr=class extends _0x92f3c1{constructor(_0x2f1342,_0x65d16f){const _0x9095cf=_0x290871;super(),this[_0x9095cf(0x385)]=_0x2f1342,this[_0x9095cf(0x3ee)]=_0x65d16f,Ir(this,'mode',_0x1d5083[_0x9095cf(0x2fc)]);}[_0x290871(0x27d)](){const _0x23934e=_0x290871;return{'width':Math[_0x23934e(0x399)](0x1,this[_0x23934e(0x3ee)]['clientWidth']),'height':Math[_0x23934e(0x399)](0x1,this[_0x23934e(0x3ee)]['clientHeight'])};}[_0x290871(0x2f8)](_0x2377f6){const _0x533c44=_0x290871;Mr(this[_0x533c44(0x3ee)],_0x2377f6);}async[_0x290871(0x205)](){const _0x39a7a7=_0x290871;return this[_0x39a7a7(0x3ee)];}[_0x290871(0x168)](){const _0x1aa4d9=_0x290871;return this[_0x1aa4d9(0x3ee)][_0x1aa4d9(0x3fe)];}['syncLayout'](){}[_0x290871(0x346)](){}[_0x290871(0x290)](){}};function Rr({isRowDirection:_0x4bde5e,runtime:_0x5095e6}){const _0x164f9c=_0x290871;let _0x48f3e2=_0x3987b(null),_0x538018=_0xe276a8(_0x4b0f72),_0x17839b=_0xe276a8(_0x104d80),_0x150782=_0xe276a8(jr),_0x4b3664=_0xe276a8(_0x32e309);return _0x330c05(()=>{const _0x3114ac=_0x29b7;let _0x29ab17=_0x48f3e2[_0x3114ac(0x2e7)];if(!_0x29ab17)return;_0x29ab17['replaceChildren']();let {chartId:_0x587950,model:_0x536b0a}=_0x5095e6,_0x470420=_0x536b0a[_0x3114ac(0x431)],_0x5cd8eb=new Lr(_0x587950,_0x29ab17),_0x376eee=_0x150782[_0x3114ac(0x2cb)](),_0xfc65a2=!0x1,_0x52b847=null,_0x5d441b=null,_0x40a0d3=null,_0x1d05ed=null,_0x4c1d5d=!0x1,_0x543248=!0x1,_0x3daac5=Promise[_0x3114ac(0x215)]();_0x376eee[_0x3114ac(0x265)](_0x5cd8eb);let _0x55f91f=()=>{const _0x3a0d60=_0x3114ac;var _0xe3079a,_0x528e06,_0x254c8b,_0x52a7ea;if(document[_0x3a0d60(0x3ec)]===_0x3a0d60(0x1b5)||(_0xe3079a=(_0x528e06=window)['matchMedia'])!=null&&(_0xe3079a=_0xe3079a[_0x3a0d60(0x358)](_0x528e06,_0x3a0d60(0x37d)))!=null&&_0xe3079a[_0x3a0d60(0x18c)]||(_0x254c8b=(_0x52a7ea=window)[_0x3a0d60(0x39a)])!=null&&(_0x254c8b=_0x254c8b[_0x3a0d60(0x358)](_0x52a7ea,_0x3a0d60(0x30d)))!=null&&_0x254c8b[_0x3a0d60(0x18c)]||!_0x29ab17[_0x3a0d60(0x3fe)])return!0x1;let _0x390e9d=_0x29ab17[_0x3a0d60(0x439)]();return _0x390e9d['width']>0x0&&_0x390e9d[_0x3a0d60(0x45c)]>0x0&&_0x390e9d[_0x3a0d60(0x33f)]>0x0&&_0x390e9d[_0x3a0d60(0x314)]>0x0&&_0x390e9d[_0x3a0d60(0x2f9)]<window[_0x3a0d60(0x21e)]&&_0x390e9d[_0x3a0d60(0x392)]<window['innerHeight'];},_0x37b043=()=>{const _0x3a1bff=_0x3114ac;_0x5d441b!==null&&clearTimeout(_0x5d441b),_0x29ab17[_0x3a1bff(0x410)][_0x3a1bff(0x43c)]='true',_0x29ab17[_0x3a1bff(0x410)][_0x3a1bff(0x238)]=String(_0x4b80d0),_0x5d441b=setTimeout(()=>{const _0x59c8e6=_0x3a1bff;_0x5d441b=null,delete _0x29ab17['dataset'][_0x59c8e6(0x43c)],delete _0x29ab17[_0x59c8e6(0x410)][_0x59c8e6(0x238)];},_0x4b80d0);},_0x52a6fe=_0x5d60c1(()=>{const _0x14b3b4=_0x3114ac;if(_0xfc65a2||(_0x52b847!==null&&(clearTimeout(_0x52b847),_0x52b847=null),!_0x536b0a[_0x14b3b4(0x193)]))return;let _0x2dccb1=_0x543248;_0x543248=!0x1,_0x29ab17['dataset'][_0x14b3b4(0x21c)]=String(_0x536b0a[_0x14b3b4(0x21c)]),_0x29ab17[_0x14b3b4(0x410)][_0x14b3b4(0x1ec)]=String(_0x4bde5e);let _0xf8c827=_0x150782[_0x14b3b4(0x2c2)](_0x5095e6),_0x42c889={'chartId':_0x587950,'config':_0xf8c827[_0x14b3b4(0x193)],'style':_0xf8c827[_0x14b3b4(0x148)]};_0x3daac5=_0x3daac5[_0x14b3b4(0x1fb)](async()=>{const _0x1d744f=_0x14b3b4;_0xfc65a2||(_0x29ab17[_0x1d744f(0x410)][_0x1d744f(0x288)]=String(Number(_0x29ab17[_0x1d744f(0x410)]['renderRevision']??0x0)+0x1),_0x2dccb1&&_0x40a0d3&&_0x376eee['renderTransition']&&_0x55f91f()?(await _0x376eee[_0x1d744f(0x1b7)](_0x40a0d3,_0x42c889,{'duration':_0x4b80d0}),_0xfc65a2||_0x37b043()):await _0x376eee['render'](_0x42c889),_0x40a0d3=_0x42c889);})[_0x14b3b4(0x147)](_0x56c393=>_0x17839b[_0x14b3b4(0x198)](_0x14b3b4(0x226),_0x56c393));},0x64,{'leading':!0x0,'trailing':!0x0,'maxWait':0x64}),_0x197e46=(_0x5a3f04=!0x1)=>{_0x543248||=_0x5a3f04,_0x4c1d5d||(_0x4c1d5d=!0x0,queueMicrotask(()=>{_0x4c1d5d=!0x1,_0xfc65a2||_0x52a6fe();}));},_0x2d9b28=[_0x470420['data$'][_0x3114ac(0x3e3)](_0x4e8fa7=>{const _0x2f66df=_0x3114ac;let _0x20fe6f=JSON[_0x2f66df(0x32a)](_0x4e8fa7);_0x1d05ed!=null&&_0x1d05ed!==_0x20fe6f&&_0x197e46(!0x0),_0x1d05ed=_0x20fe6f;}),_0x536b0a[_0x3114ac(0x206)][_0x3114ac(0x3e3)](_0x5662b1=>{_0x5662b1&&_0x197e46();}),_0x536b0a['style$'][_0x3114ac(0x3e3)](()=>_0x197e46()),_0x538018[_0x3114ac(0x46c)][_0x3114ac(0x3e3)](()=>_0x197e46()),_0x35c468([_0x4b3664[_0x3114ac(0x343)],_0x4b3664[_0x3114ac(0x39b)]])[_0x3114ac(0x453)](_0x43c3f6(0x1))[_0x3114ac(0x3e3)](()=>_0x197e46())],_0x59b026=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x43981b=_0x3114ac;_0xfc65a2||(_0x5cd8eb[_0x43981b(0x3ff)](),_0x52b847!==null&&clearTimeout(_0x52b847),_0x52b847=setTimeout(()=>_0x197e46(),0x64));});return _0x59b026==null||_0x59b026[_0x3114ac(0x1a1)](_0x29ab17),()=>{const _0x45f579=_0x3114ac;_0xfc65a2=!0x0,_0x52a6fe[_0x45f579(0x221)](),_0x52b847!==null&&clearTimeout(_0x52b847),_0x5d441b!==null&&clearTimeout(_0x5d441b),delete _0x29ab17[_0x45f579(0x410)]['baseChartDataAnimation'],delete _0x29ab17[_0x45f579(0x410)][_0x45f579(0x238)],_0x59b026==null||_0x59b026[_0x45f579(0x246)](),_0x2d9b28[_0x45f579(0x24e)](_0x5683da=>_0x5683da[_0x45f579(0x471)]()),_0x376eee[_0x45f579(0x470)](),_0x5cd8eb['dispose'](),_0x29ab17[_0x45f579(0x323)]();};},[_0x4bde5e,_0x538018,_0x17839b,_0x150782,_0x5095e6,_0x4b3664]),_0x414ebe('div',{'ref':_0x48f3e2,'data-u-comp':'base-pivot-chart','className':_0x164f9c(0x241)});}function zr({filters:_0xb14883,onRuntimeChange:_0x883ad9,unitId:_0x48d78f,widget:_0x2a2457}){const _0x687e2=_0x290871;let _0x277a4a=_0xe276a8(_0x5abbf9),_0x5d5e87=_0xe276a8(_0x4b0f72),_0x5cd56f=_0xe276a8(_0x104d80),_0x3bda52=_0xe276a8(_0xcfb712),[_0x4bd812,_0x4cff1c]=_0x3f626c(null),[_0x3e8b49,_0x34f270]=_0x3f626c(!0x1),[_0x44262f,_0x58c0a9]=_0x3f626c(null),_0xa5772a=_0x3987b(_0x687e2(0x450)+_0x89ef13(0x8)),_0x5c3305=_0x277a4a['getUnit'](_0x48d78f,_0x1516ee[_0x687e2(0x3c2)]),_0x217d4c=_0x5c3305==null?void 0x0:_0x5c3305[_0x687e2(0x18e)]()[_0x687e2(0x377)][_0x2a2457[_0x687e2(0x1b9)]],_0x377f72=_0x217d4c==null?void 0x0:_0x217d4c['views'][_0x2a2457[_0x687e2(0x154)]],_0x52b9f8=Br(_0x377f72);if(_0x330c05(()=>{const _0x3b01e5=_0x687e2;if(!_0x52b9f8)return;let _0x9fd723=_0xa5772a[_0x3b01e5(0x2e7)];return _0x3bda52[_0x3b01e5(0x1e8)](_0x9fd723,{'unitId':_0x48d78f,'tableId':_0x2a2457[_0x3b01e5(0x1b9)],'viewId':_0x2a2457[_0x3b01e5(0x154)],'filters':[]}),()=>{const _0x1a2bdf=_0x3b01e5;_0x3bda52[_0x1a2bdf(0x15c)](_0x48d78f,_0x9fd723),_0x883ad9==null||_0x883ad9(_0x2a2457['id'],null);};},[_0x52b9f8,_0x883ad9,_0x3bda52,_0x48d78f,_0x2a2457['id'],_0x2a2457[_0x687e2(0x154)],_0x2a2457[_0x687e2(0x1b9)]]),_0x330c05(()=>{const _0x58bf5f=_0x687e2;if(!Br(_0x377f72))return;let _0x27f98e=!0x0,_0x3b35c8=_0x2a2457[_0x58bf5f(0x3a5)]??_0x377f72[_0x58bf5f(0x193)][_0x58bf5f(0x3a5)],_0x1d0846={'unitId':_0x48d78f,'tableId':_0x2a2457['tableId'],'viewId':_0x2a2457[_0x58bf5f(0x154)],'filters':[_0x377f72[_0x58bf5f(0x42d)]??null,..._0xb14883]};return _0x3bda52[_0x58bf5f(0x3d1)](_0x48d78f,_0xa5772a[_0x58bf5f(0x2e7)],_0x1d0846,_0x3b35c8)['then'](_0x240631=>{const _0xc588cd=_0x58bf5f;if(!_0x27f98e||!_0x240631)return;let _0x12903e=_0x3bda52['getChartRuntime'](_0x48d78f,_0xa5772a[_0xc588cd(0x2e7)])??null;_0x4cff1c(_0x240631),_0x58c0a9(_0x12903e),_0x34f270(!0x1),_0x883ad9==null||_0x883ad9(_0x2a2457['id'],_0x12903e);})[_0x58bf5f(0x147)](_0x5c01b3=>{const _0x4c56fc=_0x58bf5f;_0x5cd56f['error'](_0x4c56fc(0x427),_0x5c01b3),_0x27f98e&&(_0x4cff1c(null),_0x34f270(!0x0));}),()=>{_0x27f98e=!0x1;};},[_0xb14883,_0x5cd56f,_0x883ad9,_0x3bda52,_0x48d78f,_0x377f72,_0x2a2457['chart'],_0x2a2457['id'],_0x2a2457['pivotViewId'],_0x2a2457[_0x687e2(0x1b9)]]),!Br(_0x377f72))return _0x414ebe(_0x687e2(0x384),{'className':_0x687e2(0x40a),'children':_0x5d5e87['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')});let _0x5dffb7=_0x3bda52['getChartRuntime'](_0x48d78f,_0xa5772a[_0x687e2(0x2e7)])===_0x44262f?_0x44262f:null;return _0x4bd812&&_0x5dffb7?_0x414ebe(Rr,{'isRowDirection':_0x52d288((_0x2a2457[_0x687e2(0x3a5)]??_0x377f72[_0x687e2(0x193)][_0x687e2(0x3a5)])[_0x687e2(0x3b2)]),'runtime':_0x5dffb7}):_0x414ebe(_0x687e2(0x384),{'className':_0x687e2(0x40a),'children':_0x5d5e87['t'](_0x3e8b49?_0x687e2(0x32f):_0x687e2(0x275))});}function Br(_0x518145){const _0x312b07=_0x290871;return(_0x518145==null?void 0x0:_0x518145['type'])===_0x3744eb[_0x312b07(0x250)]&&typeof _0x518145[_0x312b07(0x193)]==_0x312b07(0x30e)&&_0x518145[_0x312b07(0x193)]!==null&&_0x312b07(0x145)in _0x518145['config']&&_0x312b07(0x3a5)in _0x518145[_0x312b07(0x193)];}const Vr={'alignment':_0x290871(0x2f9),'fontSize':0x12,'fontSizeMode':_0x290871(0x449)};function Hr(_0x5cba88){const _0xe1d003=_0x290871;return{...Vr,..._0x5cba88[_0xe1d003(0x366)]};}function Ur(_0x5c4156){const _0x97bc6a=_0x290871;var _0x362481;return((_0x362481=_0x5c4156[_0x97bc6a(0x344)])==null?void 0x0:_0x362481[_0x97bc6a(0x38a)][_0x97bc6a(0x24a)](/\r\n$/,'')[_0x97bc6a(0x24a)](/\r/g,'\x0a'))??'';}function Wr(_0xb22d37,_0x36c974){const _0x19b7ed=_0x290871;var _0x112cc3;let _0x5e7d33=_0x36c974[_0x19b7ed(0x24a)](/\r\n|\r/g,'\x0a')[_0x19b7ed(0x31b)]('\x0a'),_0x580ee1=_0x5e7d33[_0x19b7ed(0x20e)]('\x0d')+'\x0d\x0a',_0x42e33f=((_0x112cc3=_0xb22d37[_0x19b7ed(0x344)])==null?void 0x0:_0x112cc3['paragraphs'])??[],_0xaaea26=new Set(_0x42e33f['map'](_0x1cc158=>_0x1cc158[_0x19b7ed(0x267)])),_0x32d71c=0x0,_0x2888de=_0x5e7d33['map']((_0x46bbdc,_0x54ca03)=>{const _0x217a11=_0x19b7ed;_0x32d71c+=_0x46bbdc[_0x217a11(0x151)];let _0x2489e7={..._0x42e33f[_0x54ca03]??{'startIndex':_0x32d71c,'paragraphId':_0x2900cb(_0xaaea26)},'startIndex':_0x32d71c};return _0x32d71c+=0x1,_0x2489e7;});return{..._0xb22d37,'body':{..._0xb22d37['body'],'dataStream':_0x580ee1,'paragraphs':_0x2888de,'textRuns':[]}};}function Gr({widget:_0x40a384}){const _0x335222=_0x290871;let _0x12b4fa=_0xe276a8(_0x32e309),_0x46e653=_0xe276a8(_0x4b0f72),_0x20db29=_0x45d384(()=>_0x12b4fa[_0x335222(0x343)],_0x12b4fa[_0x335222(0x212)](),!0x1,[_0x12b4fa]),_0x46bf58=_0x3987b(null),_0x5519b5=_0x3987b(null),_0x3a63ef=Hr(_0x40a384),_0x5cfa43=_0x3a63ef[_0x335222(0x16a)]??_0x20db29[_0x335222(0x3cd)][0x0],_0x3852df=_0x3a63ef[_0x335222(0x467)]??_0x20db29[_0x335222(0x3cd)][0x3e8],_0x269adb=Ur(_0x40a384[_0x335222(0x270)]);return _0x330c05(()=>{const _0x5c4563=_0x335222;let _0x4f4a04=_0x46bf58[_0x5c4563(0x2e7)],_0x5a638f=_0x5519b5[_0x5c4563(0x2e7)];if(!_0x4f4a04||!_0x5a638f)return;let _0x53e9e4=()=>{const _0x1a46f5=_0x5c4563;if(_0x3a63ef[_0x1a46f5(0x307)]==='custom'||!_0x4f4a04[_0x1a46f5(0x44c)]||!_0x4f4a04['clientHeight']){_0x5a638f[_0x1a46f5(0x148)][_0x1a46f5(0x1a7)]=_0x3a63ef[_0x1a46f5(0x1a7)]+'px';return;}let _0x41831b=0x8,_0x2dba96=0x48,_0x2d626f=_0x41831b;for(;_0x41831b<=_0x2dba96;){let _0x36160b=Math[_0x1a46f5(0x16d)]((_0x41831b+_0x2dba96)/0x2);_0x5a638f[_0x1a46f5(0x148)]['fontSize']=_0x36160b+'px',_0x5a638f['scrollWidth']<=_0x4f4a04['clientWidth']&&_0x5a638f['scrollHeight']<=_0x4f4a04[_0x1a46f5(0x3b3)]?(_0x2d626f=_0x36160b,_0x41831b=_0x36160b+0x1):_0x2dba96=_0x36160b-0x1;}_0x5a638f[_0x1a46f5(0x148)][_0x1a46f5(0x1a7)]=_0x2d626f+'px';};if(_0x53e9e4(),typeof ResizeObserver>'u')return;let _0x4aae57=new ResizeObserver(_0x53e9e4);return _0x4aae57[_0x5c4563(0x1a1)](_0x4f4a04),()=>_0x4aae57[_0x5c4563(0x246)]();},[_0x3a63ef[_0x335222(0x1a7)],_0x3a63ef[_0x335222(0x307)],_0x269adb]),_0x414ebe('div',{'data-dashboard-text-widget':_0x40a384['id'],'className':_0x335222(0x255),'style':{'backgroundColor':_0x5cfa43,'color':_0x3852df},'children':_0x414ebe(_0x335222(0x384),{'ref':_0x46bf58,'data-dashboard-text-content':!0x0,'aria-label':_0x46e653['t'](_0x335222(0x37b)),'className':_0x335222(0x1d6),'children':_0x414ebe(_0x335222(0x384),{'ref':_0x5519b5,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x3a63ef[_0x335222(0x307)],'className':'univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','style':{'textAlign':_0x3a63ef[_0x335222(0x1f6)]},'children':_0x269adb})})});}function Kr({dashboard:_0x158c4c,editable:_0x2ad665=!0x0,onSelectWidget:_0x3738f9,renderWidget:_0x40db29,renderWidgetActions:_0x4ad319,selectedWidgetId:_0x1d937f,widgetLabel:_0x2540b1}){const _0xa2b5ee=_0x290871;return _0x414ebe('div',{'data-dashboard-scroll-container':!0x0,'className':_0x2c3136('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',_0x443bf8),'onClick':_0x2ad665?_0x2e4fc5=>{const _0x447ff6=_0x29b7;if(!(_0x2e4fc5['target']instanceof Node)||!_0x2e4fc5['currentTarget'][_0x447ff6(0x351)](_0x2e4fc5[_0x447ff6(0x1d8)]))return;let _0x52bddd=_0x2e4fc5['target']instanceof Element?_0x2e4fc5[_0x447ff6(0x1d8)]:_0x2e4fc5['target'][_0x447ff6(0x447)];_0x52bddd!=null&&_0x52bddd[_0x447ff6(0x443)](_0x447ff6(0x42c))||_0x3738f9==null||_0x3738f9();}:void 0x0,'children':_0x414ebe(_0xa2b5ee(0x384),{'data-dashboard-grid':!0x0,'className':_0xa2b5ee(0x149),'children':_0x158c4c[_0xa2b5ee(0x47d)][_0xa2b5ee(0x3a8)](_0x3b77f3=>{const _0x3fa2c8=_0xa2b5ee;let _0x320ac7=_0x158c4c['widgets'][_0x3b77f3];if(!_0x320ac7)return null;let _0x22f513=Math[_0x3fa2c8(0x399)](0xb4,_0x320ac7[_0x3fa2c8(0x2c7)][_0x3fa2c8(0x220)]*_0x37eeaf);return _0x3c00a1(_0x3fa2c8(0x2a0),{'data-dashboard-widget':_0x320ac7['id'],'aria-label':_0x320ac7[_0x3fa2c8(0x43d)]??_0x2540b1(_0x320ac7),'className':_0x2c3136(_0x3fa2c8(0x268),_0x320ac7['type']===_0x39775d[_0x3fa2c8(0x3d2)]||_0x320ac7[_0x3fa2c8(0x183)]===_0x39775d['FormulaShape']?_0x3fa2c8(0x421):_0x3fa2c8(0x452),_0x2ad665&&_0x1d937f===_0x320ac7['id']?_0x3fa2c8(0x1a5):'univer-border-gray-200\x20dark:!univer-border-gray-700'),'style':{'minHeight':_0x22f513,'height':_0x22f513},'tabIndex':_0x2ad665?0x0:void 0x0,'onClick':_0x2ad665?()=>_0x3738f9==null?void 0x0:_0x3738f9(_0x320ac7['id']):void 0x0,'onFocus':_0x2ad665?()=>_0x3738f9==null?void 0x0:_0x3738f9(_0x320ac7['id']):void 0x0,'children':[_0x2ad665&&_0x414ebe('div',{'className':_0x3fa2c8(0x423),'children':_0x4ad319==null?void 0x0:_0x4ad319(_0x320ac7)}),_0x414ebe(_0x3fa2c8(0x384),{'className':_0x3fa2c8(0x1a2),'children':_0x40db29(_0x320ac7)})]},_0x320ac7['id']);})})});}let qr=class extends _0x19ef03{constructor(_0x4ffc7a){const _0x12ef96=_0x290871;super(_0x4ffc7a),Ir(this,_0x12ef96(0x3ca),null);}['executeChartUpdateConfig'](_0x2d4924){}};qr=Ar([Y(0x0,_0x106e69(_0x598437))],qr);function Jr({children:_0x220519}){return _0x414ebe(_0x231698,{'children':_0x220519});}function Yr(_0x447ff3){const _0x5d3b22=_0x290871;return _0x414ebe(_0x366613,{..._0x447ff3,'size':_0x5d3b22(0x231)});}function Xr(_0x1a233d){return _0x414ebe(_0xb4f8a7,{..._0x1a233d});}function Zr(_0x38d1a6){return _0x414ebe(_0x5992e1,{..._0x38d1a6});}var Qr;const X={'axis':{..._0x2dd039,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x5cde1d,'heatmap':_0x380efc,'indicatorLine':_0x204acd,'legend':_0x492f3b,'lineAndArea':_0x2c3d74,'pareto':_0x2602cf,'pie':_0x51c1c6,'radar':_0x2f51cf,'relation':{..._0x20d453,'useValueAsSymbolSize':!0x0},'series':{..._0x3f5b1f,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Qr=_0x38bf7d[_0x290871(0x355)])==null?void 0x0:Qr[_0x290871(0x2e2)])??!0x1}},'style':_0x44b136,'titles':_0x53b57d,'trendline':_0x23fc75,'waterfall':{..._0x3cf6dc,'useSubtotal':!0x0},'waterfallStyle':_0x2841cd,'wordCloud':_0x4bd002},$r=[_0x376127[_0x290871(0x416)],_0x376127[_0x290871(0x2b9)],_0x376127['WordCloud'],_0x376127['Scatter'],_0x376127['Funnel'],_0x376127[_0x290871(0x2a2)],_0x376127['Sankey'],_0x376127['Heatmap'],_0x376127[_0x290871(0x259)],_0x376127[_0x290871(0x36b)],_0x376127[_0x290871(0x37c)],_0x376127[_0x290871(0x21d)],_0x376127[_0x290871(0x3e1)],_0x376127[_0x290871(0x47b)],_0x376127[_0x290871(0x1a0)]];function ei(_0x52bf8e){const _0x3cece8=_0x290871;let {config:_0xd11c05,onChange:_0x355a6c,runtime:_0x1c1911,tableName:_0x9864ea}=_0x52bf8e,_0xdd7ef8=_0xe276a8(qr),_0x56dc80=_0xe276a8(_0x4b0f72),[_0x404c03,_0x1afee0]=_0x3f626c(_0x147b03[_0x3cece8(0x227)]),_0x22331c=_0x50478e(()=>new _0x1be047(_0x1c1911[_0x3cece8(0x1cd)],{'commit':_0x5aaa2c=>{const _0x1a3e57=_0x3cece8;var _0xb74721;let _0x276bf0=_0x1c1911['model'],_0x21f461=_0x2d72ce(_0x5aaa2c,{'series':(_0xb74721=_0x276bf0[_0x1a3e57(0x193)])==null?void 0x0:_0xb74721[_0x1a3e57(0x414)],'currentChartType':_0x276bf0['chartType'],'currentStyle':_0x276bf0[_0x1a3e57(0x148)],'currentContext':_0x276bf0[_0x1a3e57(0x254)],'currentDataAggregation':_0x276bf0[_0x1a3e57(0x171)]});_0x355a6c({'chart':ti(_0xd11c05[_0x1a3e57(0x3a5)],_0x21f461)});}}),[_0xd11c05['chart'],_0x355a6c,_0x1c1911]),_0x342457=_0x50478e(()=>_0x2ed067(_0x1bd142[_0x3cece8(0x3a8)](_0x61dc4=>({..._0x61dc4,'label':_0x56dc80['t'](ai(_0x61dc4['labelId']))}))),[_0x56dc80]);return _0x414ebe(_0x371701,{'chartUIService':_0xdd7ef8,'hostAdapter':_0x22331c,'children':_0x3c00a1(_0x3cece8(0x384),{'className':_0x3cece8(0x298),'children':[_0x414ebe(_0xbfe45a,{'ariaLabel':_0x56dc80['t'](_0x3cece8(0x2a4)),'className':_0x3cece8(0x17e),'items':[{'label':_0x56dc80['t'](_0x3cece8(0x224)),'panelId':_0x3cece8(0x1dd),'value':_0x147b03['Data']},{'label':_0x56dc80['t'](_0x3cece8(0x3d7)),'panelId':'base-pivot-chart-style','value':_0x147b03[_0x3cece8(0x332)]}],'value':_0x404c03,'onChange':_0x1afee0}),_0x404c03===_0x147b03[_0x3cece8(0x227)]?_0x414ebe(_0x1199fe,{'id':'base-pivot-chart-setup','label':_0x56dc80['t'](_0x3cece8(0x224)),'children':_0x3c00a1('div',{'className':_0x3cece8(0x3af),'children':[_0x414ebe(_0x3e755e,{'options':_0x342457}),_0x414ebe(_0x3c8f1a,{}),_0x414ebe(_0xdeb132,{}),_0x414ebe(ni,{}),_0x414ebe(_0x11955e,{}),_0x3c00a1(_0x3cece8(0x384),{'children':[_0x414ebe(_0xce0d39,{'title':_0x56dc80['t'](_0x3cece8(0x446))}),_0x414ebe(_0x448a93,{'disabled':!0x0,'value':_0x9864ea,'size':'small'})]}),_0x414ebe(_0x362f58,{'orientationControl':_0x414ebe(_0x5d2b24,{'size':'middle','onClick':()=>_0x355a6c({'chart':{..._0xd11c05[_0x3cece8(0x3a5)],'orient':_0xd11c05[_0x3cece8(0x3a5)][_0x3cece8(0x3b2)]===_0x3cece8(0x3a9)?'column':'row'}}),'children':_0x56dc80['t'](_0x3cece8(0x19e))})}),_0x414ebe(_0x311d22,{}),_0x414ebe(_0x41d408,{'defaultValues':X[_0x3cece8(0x2c6)]}),_0x3c00a1(_0x3cece8(0x384),{'children':[_0x414ebe(_0xce0d39,{'title':_0x56dc80['t'](_0x3cece8(0x24f))}),_0x414ebe(Yr,{'value':_0xd11c05[_0x3cece8(0x3f8)],'options':[{'value':_0x3cece8(0x438),'label':_0x56dc80['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':_0x3cece8(0x3a5),'label':_0x56dc80['t'](_0x3cece8(0x2a6))},{'value':_0x3cece8(0x363),'label':_0x56dc80['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x4fd30b=>{const _0x3c29c4=_0x3cece8;(_0x4fd30b===_0x3c29c4(0x438)||_0x4fd30b===_0x3c29c4(0x3a5)||_0x4fd30b===_0x3c29c4(0x363))&&_0x355a6c({'displayMode':_0x4fd30b});}})]})]})}):_0x414ebe(_0x1199fe,{'id':'base-pivot-chart-style','label':_0x56dc80['t'](_0x3cece8(0x3d7)),'children':_0x414ebe(ri,{})})]})});}function ti(_0x19b964,_0x5ef7b5){const _0x1848eb=_0x290871;return{..._0x19b964,'type':_0x5ef7b5['chartType']??_0x19b964['type'],'style':_0x5ef7b5['style']??_0x19b964['style'],'context':_0x5ef7b5[_0x1848eb(0x254)]??_0x19b964[_0x1848eb(0x254)],'dataAggregation':_0x5ef7b5[_0x1848eb(0x171)]??_0x19b964[_0x1848eb(0x171)]};}function ni(){const _0x401771=_0x290871;let _0x1c10eb=_0x3b67f6();return _0x414ebe(_0x309fc7,{'visible':$r[_0x401771(0x24b)](_0x5b5b2c=>!_0x4ec613[_0x401771(0x273)](_0x1c10eb,_0x5b5b2c))});}function Z(_0x379a9b){const _0x4704bc=_0x290871;return _0x3c00a1(_0x410c47,{'id':_0x379a9b['id'],'children':[_0x414ebe(_0x4a23d8,{'children':_0x379a9b[_0x4704bc(0x1e5)]}),_0x414ebe(_0x50d9e3,{'children':_0x379a9b[_0x4704bc(0x1c0)]})]});}function ri(){const _0x32e27a=_0x290871;let _0x3ddc8f=_0xe276a8(_0x4b0f72),_0x4dccae=_0x3b67f6(),_0x459f09=_0x1f9302(),[_0xaaacf4,_0x1f1f53]=_0x3f626c(null),_0x3d74e1=_0x4ec613[_0x32e27a(0x273)](_0x4dccae,_0x376127['Pie']),_0x360098=_0x4dccae===_0x376127[_0x32e27a(0x2b9)],_0x52fc36=_0x4dccae===_0x376127[_0x32e27a(0x1f5)],_0x1da87d=_0x4dccae===_0x376127[_0x32e27a(0x20b)],_0x483e3c=_0x4ec613['baseOn'](_0x4dccae,_0x376127[_0x32e27a(0x13a)]),_0x2d4738=_0x4dccae===_0x376127['Relation'],_0x2b305d=_0x4dccae===_0x376127[_0x32e27a(0x460)],_0x2aa73a=_0x4dccae===_0x376127[_0x32e27a(0x3f5)],_0x152f42=_0x4dccae===_0x376127[_0x32e27a(0x1eb)],_0x55aad0=_0x1d4e5d(_0x4dccae,_0x518183[_0x32e27a(0x39c)])&&!_0x483e3c&&!_0x2aa73a,_0x8461b2=ii(_0x4dccae,_0x3ddc8f);return _0x3c00a1(_0x1b215e,{'value':_0xaaacf4,'onChange':_0x1f1f53,'children':[_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x283)],'label':_0x3ddc8f['t'](_0x32e27a(0x3a2)),'children':_0x414ebe(_0x3488e9,{'defaultValues':X[_0x32e27a(0x148)]})}),_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x15b)],'label':_0x3ddc8f['t'](_0x32e27a(0x3d5)),'children':_0x414ebe(_0x5bf2da,{'commitMode':'blur','defaultValues':X[_0x32e27a(0x28b)]})}),_0x414ebe(_0x2dcd87,{'section':_0x32e27a(0x141)}),_0x55aad0&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x478)],'label':_0x3ddc8f['t']('bases-dashboard-ui.chart.common.series'),'children':_0x414ebe(_0x126708,{'defaultValues':X[_0x32e27a(0x414)],'NumberFormatField':_0x3f6633})}),_0x2b305d&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x13e)],'label':_0x3ddc8f['t'](_0x32e27a(0x2b8)),'children':_0x414ebe(_0x271332,{'defaultValues':X[_0x32e27a(0x1e9)],'getDefaultBucketName':({seriesName:_0x3e76a1,target:_0x4bb9d4})=>_0x4bb9d4===_0x34ed53[_0x32e27a(0x3d3)]?_0x3ddc8f['t'](_0x32e27a(0x191)):_0x3e76a1?_0x3e76a1+'-('+_0x3ddc8f['t'](_0x32e27a(0x20a)+(_0x4bb9d4===_0x34ed53[_0x32e27a(0x244)]?_0x32e27a(0x1bb):_0x32e27a(0x411)))+')':'','NumberFormatField':_0x3f6633})}),_0x2aa73a&&_0x3c00a1(_0x42483e,{'children':[_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x1ed)],'label':_0x3ddc8f['t'](_0x32e27a(0x180)),'children':_0x414ebe(_0x4ad9db,{'defaultValues':X[_0x32e27a(0x2ff)],'NumberFormatField':_0x3f6633,'showDataPointEditor':!0x0,'target':_0x32e27a(0x1d3)})}),_0x414ebe(Z,{'id':_0x111171['ParetoLineSeries'],'label':_0x3ddc8f['t'](_0x32e27a(0x412)),'children':_0x414ebe(_0x4ad9db,{'defaultValues':X['pareto'],'NumberFormatField':_0x3f6633,'showDataPointEditor':!0x1,'target':_0x32e27a(0x2d9)})})]}),_0x3d74e1&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x441)],'label':_0x3ddc8f['t'](_0x32e27a(0x2ac)),'children':_0x414ebe(_0x36413b,{'defaultValues':X['pie'],'NumberFormatField':_0x3f6633})}),_0x52fc36&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x1f5)],'label':_0x3ddc8f['t'](_0x32e27a(0x387)),'children':_0x414ebe(_0x3b9d11,{'defaultValues':X[_0x32e27a(0x185)]})}),_0x360098&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x2b9)],'label':_0x3ddc8f['t'](_0x32e27a(0x479)),'children':_0x414ebe(_0x1ef123,{'defaultValues':X[_0x32e27a(0x1c5)]})}),_0x1da87d&&_0x414ebe(Z,{'id':_0x111171['Funnel'],'label':_0x3ddc8f['t'](_0x32e27a(0x19b)),'children':_0x414ebe(_0x5e8635,{'defaultValues':X['funnel'],'gapControl':_0x32e27a(0x42e)})}),_0x152f42&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x1eb)],'label':_0x3ddc8f['t'](_0x32e27a(0x1d9)),'children':_0x414ebe(_0x48cea1,{'defaultValues':X[_0x32e27a(0x2a8)]})}),_0x2d4738&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x2a2)],'label':_0x3ddc8f['t'](_0x32e27a(0x38c)),'children':_0x414ebe(_0x1271d5,{'defaultValues':X['relation']})}),_0x422d44(_0x4dccae)&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x397)],'label':_0x3ddc8f['t'](_0x4ec613[_0x32e27a(0x273)](_0x4dccae,_0x376127[_0x32e27a(0x187)])?_0x32e27a(0x3c1):_0x32e27a(0x3e5)),'children':_0x414ebe(_0x4ec390,{'defaultValues':X[_0x32e27a(0x3b0)],'lineStyleControl':'segmented'})}),_0x1d4e5d(_0x4dccae,_0x518183[_0x32e27a(0x186)])&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x186)],'label':_0x3ddc8f['t'](_0x32e27a(0x31e)),'children':_0x414ebe(_0x179da2,{'defaultValues':X[_0x32e27a(0x31d)]})}),_0x1d4e5d(_0x4dccae,_0x518183[_0x32e27a(0x3a3)])&&_0x3c00a1(_0x42483e,{'children':[_0x414ebe(Z,{'id':_0x111171['HorizontalAxis'],'label':_0x3ddc8f['t']('bases-dashboard-ui.chart.common.horizontalAxis'),'children':_0x414ebe(_0xaa8939,{'axis':'x','defaultValues':X[_0x32e27a(0x1f3)],'NumberFormatField':_0x3f6633})}),_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x2f5)],'label':_0x3ddc8f['t'](_0x32e27a(0x27c)),'children':_0x414ebe(_0xaa8939,{'axis':'y','defaultValues':X[_0x32e27a(0x1f3)],'NumberFormatField':_0x3f6633})}),_0x414ebe(_0x2dcd87,{'section':_0x32e27a(0x33b)}),_0x459f09&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x1d1)],'label':_0x3ddc8f['t'](_0x32e27a(0x42b)),'children':_0x414ebe(_0xaa8939,{'axis':_0x32e27a(0x3f7),'defaultValues':X['axis'],'NumberFormatField':_0x3f6633})}),_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x1aa)],'label':_0x3ddc8f['t'](_0x32e27a(0x199)),'children':_0x414ebe(_0x54cf11,{'defaultValues':X[_0x32e27a(0x1f3)]})})]}),_0x1d4e5d(_0x4dccae,_0x518183[_0x32e27a(0x419)])&&_0x414ebe(Z,{'id':_0x111171['IndicatorLine'],'label':_0x3ddc8f['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x414ebe(_0x5b0ede,{'defaultValues':X['indicatorLine']})}),_0x2db1ff(_0x4dccae)&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x2c9)],'label':_0x3ddc8f['t']('bases-dashboard-ui.chart.common.trendline'),'children':_0x414ebe(_0x452c9a,{'defaultValues':X[_0x32e27a(0x1f2)]})}),_0x8461b2&&_0x414ebe(Z,{'id':_0x8461b2['id'],'label':_0x8461b2[_0x32e27a(0x1e5)],'children':_0x414ebe(_0x5d8d27,{})})]});}function ii(_0x1ccb74,_0x57edb3){const _0x3e1be2=_0x290871;let _0x4fbcb6={[_0x376127['Candlestick']]:{'id':_0x111171['Candlestick'],'localeKey':_0x3e1be2(0x164)},[_0x376127[_0x3e1be2(0x37c)]]:{'id':_0x111171[_0x3e1be2(0x37c)],'localeKey':_0x3e1be2(0x16c)},[_0x376127['Treemap']]:{'id':_0x111171[_0x3e1be2(0x21d)],'localeKey':_0x3e1be2(0x23d)},[_0x376127[_0x3e1be2(0x3e1)]]:{'id':_0x111171['Sunburst'],'localeKey':_0x3e1be2(0x29e)},[_0x376127[_0x3e1be2(0x47b)]]:{'id':_0x111171[_0x3e1be2(0x47b)],'localeKey':'bases-dashboard-ui.chart.section.gauge'},[_0x376127[_0x3e1be2(0x1a0)]]:{'id':_0x111171[_0x3e1be2(0x1a0)],'localeKey':_0x3e1be2(0x403)}}[_0x1ccb74];return _0x4fbcb6?{'id':_0x4fbcb6['id'],'label':_0x57edb3['t'](_0x4fbcb6[_0x3e1be2(0x48b)])}:null;}function ai(_0x6381bc){return'bases-dashboard-ui.chart.chartTypes.'+_0x6381bc;}function oi({onChange:_0xcc07b3,onEditData:_0x6a7069,runtime:_0x21f0e1,sourceChart:_0x2d028c,sourceName:_0x39dda2,widget:_0xf4ed24}){const _0x48de97=_0x290871;let _0x2177a8=_0xe276a8(qr),_0x50e33b=_0xe276a8(_0x4b0f72),[_0x517758,_0x50b0aa]=_0x3f626c(_0x147b03[_0x48de97(0x227)]),_0x8b69a2=_0xf4ed24[_0x48de97(0x3a5)]??_0x2d028c,_0x569725=_0x50478e(()=>new _0x1be047(_0x21f0e1[_0x48de97(0x1cd)],{'commit':_0x1f0189=>{const _0x5019b4=_0x48de97;var _0x52023a;let _0x575d09=_0x21f0e1[_0x5019b4(0x1cd)],_0x546bc9=_0x2d72ce(_0x1f0189,{'series':(_0x52023a=_0x575d09['config'])==null?void 0x0:_0x52023a[_0x5019b4(0x414)],'currentChartType':_0x575d09[_0x5019b4(0x21c)],'currentStyle':_0x575d09[_0x5019b4(0x148)],'currentContext':_0x575d09[_0x5019b4(0x254)],'currentDataAggregation':_0x575d09[_0x5019b4(0x171)]});_0xcc07b3({..._0xf4ed24,'chart':ti(_0x8b69a2,_0x546bc9)})[_0x5019b4(0x147)](()=>void 0x0);}}),[_0x8b69a2,_0xcc07b3,_0x21f0e1,_0xf4ed24]),_0x485925=_0x50478e(()=>_0x2ed067(_0x1bd142[_0x48de97(0x3a8)](_0x5f0043=>({..._0x5f0043,'label':_0x50e33b['t'](si(_0x5f0043[_0x48de97(0x44f)]))}))),[_0x50e33b]);return _0x414ebe(_0x32b767,{'chartUIService':_0x2177a8,'hostAdapter':_0x569725,'children':_0x3c00a1('div',{'data-dashboard-chart-inspector':!0x0,'className':_0x48de97(0x480),'children':[_0x414ebe(_0xbfe45a,{'ariaLabel':_0x50e33b['t'](_0x48de97(0x2a4)),'className':_0x48de97(0x17e),'items':[{'label':_0x50e33b['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0x48de97(0x2d1),'value':_0x147b03[_0x48de97(0x227)]},{'label':_0x50e33b['t']('bases-dashboard-ui.chart.common.customize'),'panelId':'dashboard-chart-style','value':_0x147b03[_0x48de97(0x332)]}],'value':_0x517758,'onChange':_0x50b0aa}),_0x517758===_0x147b03[_0x48de97(0x227)]?_0x414ebe(_0x1199fe,{'id':_0x48de97(0x2d1),'label':_0x50e33b['t'](_0x48de97(0x224)),'children':_0x3c00a1('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x414ebe(_0x3e755e,{'options':_0x485925}),_0x414ebe(_0x3c8f1a,{}),_0x414ebe(_0xdeb132,{}),_0x414ebe(ni,{}),_0x414ebe(_0x11955e,{}),_0x3c00a1(_0x48de97(0x384),{'children':[_0x414ebe(_0xce0d39,{'title':_0x50e33b['t']('bases-dashboard-ui.dashboardInspector.dataSource')}),_0x414ebe(_0x448a93,{'disabled':!0x0,'value':_0x39dda2,'size':'small'}),_0x414ebe(_0x5d2b24,{'className':_0x48de97(0x473),'onClick':_0x6a7069,'size':_0x48de97(0x45d),'children':_0x50e33b['t'](_0x48de97(0x2fb))})]})]})}):_0x414ebe(_0x1199fe,{'id':_0x48de97(0x197),'label':_0x50e33b['t'](_0x48de97(0x3d7)),'children':_0x414ebe(ri,{})})]})});}function si(_0x9828f2){const _0x37f593=_0x290871;return _0x37f593(0x482)+_0x9828f2;}const ci=[_0x290871(0x3ae),_0x290871(0x475),_0x290871(0x261),_0x290871(0x3c6),_0x290871(0x146),_0x290871(0x177)];function li({base:_0x387327,onChange:_0x2a033f,onSelectBackgroundImage:_0x5a185c,widget:_0x39f1d7}){const _0x4de0eb=_0x290871;var _0x45cfe4;let _0x470a4a=_0xe276a8(_0x4b0f72),_0x54f0f3=_0xe276a8(_0x32e309),_0x101f35=_0x45d384(()=>_0x54f0f3[_0x4de0eb(0x343)],_0x54f0f3[_0x4de0eb(0x212)](),!0x1,[_0x54f0f3]),_0xaf610c=_0x45d384(()=>_0x54f0f3[_0x4de0eb(0x39b)],_0x54f0f3['darkMode'],!0x1,[_0x54f0f3]),[_0x436264,_0x1fd405]=_0x3f626c(_0x4de0eb(0x409)),[_0x37f266,_0x46d3c4]=_0x3f626c(!0x1),_0x33a667=Cr(_0x39f1d7),_0x4824fe=_0x387327[_0x4de0eb(0x18e)]()[_0x4de0eb(0x377)][_0x39f1d7[_0x4de0eb(0x1b9)]],_0x3f5512=_0x4824fe==null?void 0x0:_0x4824fe['viewOrder']['find'](_0x211e9a=>_0x4824fe[_0x4de0eb(0x483)][_0x211e9a]),_0x2d55bf=_0x3f5512?_0x4824fe==null?void 0x0:_0x4824fe[_0x4de0eb(0x483)][_0x3f5512]:void 0x0,_0x43c617=_0x4824fe&&_0x2d55bf?_0x3134ee(_0x387327['getSnapshot'](),_0x4824fe,_0x2d55bf)[_0x4de0eb(0x3a8)](_0x9c17=>({..._0x9c17,'current':!0x1})):[],_0xcd67e6=((_0x45cfe4=_0x39f1d7['shapeData'][_0x4de0eb(0x3c0)])==null?void 0x0:_0x45cfe4[_0x4de0eb(0x1c6)])??'',_0x533b24=_0x3a2e61=>_0x2a033f(wr(_0x39f1d7,_0x3a2e61))['catch'](()=>void 0x0),_0x451556=_0x3f4bea=>_0x2a033f({..._0x39f1d7,'description':_0x3f4bea})[_0x4de0eb(0x147)](()=>void 0x0);return _0x3c00a1('div',{'data-dashboard-formula-inspector':!0x0,'className':_0x4de0eb(0x480),'children':[_0x414ebe(_0x4110dc,{'className':_0x4de0eb(0x2e8),'items':[{'value':_0x4de0eb(0x409),'label':_0x470a4a['t'](_0x4de0eb(0x20c))},{'value':_0x4de0eb(0x148),'label':_0x470a4a['t'](_0x4de0eb(0x379))}],'value':_0x436264,'onChange':_0x1fd405}),_0x414ebe('div',{'className':_0x4de0eb(0x20d),'children':_0x436264==='data'?_0x3c00a1(_0x4de0eb(0x384),{'className':_0x4de0eb(0x350),'children':[_0x414ebe(ui,{'label':_0x470a4a['t'](_0x4de0eb(0x2cd)),'children':_0x414ebe(_0x448a93,{'value':_0x39f1d7[_0x4de0eb(0x451)]??_0x39f1d7[_0x4de0eb(0x43d)]??'','onChange':_0x451556,'onBlur':_0x6d78ae=>_0x451556(_0x6d78ae[_0x4de0eb(0x1d8)]['value']),'size':_0x4de0eb(0x231)})}),_0x414ebe(ui,{'label':_0x470a4a['t'](_0x4de0eb(0x16f)),'children':_0x414ebe(_0x448a93,{'disabled':!0x0,'value':(_0x4824fe==null?void 0x0:_0x4824fe[_0x4de0eb(0x2a3)])??_0x470a4a['t'](_0x4de0eb(0x2be)),'size':_0x4de0eb(0x231)})}),_0x3c00a1(ui,{'label':_0x470a4a['t'](_0x4de0eb(0x39e)),'children':[_0x414ebe(_0x448a93,{'disabled':!0x0,'value':_0x3cad2e(_0xcd67e6,_0x43c617),'size':_0x4de0eb(0x231)}),_0x414ebe(_0x5d2b24,{'className':_0x4de0eb(0x473),'onClick':()=>_0x46d3c4(!0x0),'size':_0x4de0eb(0x45d),'children':_0x470a4a['t'](_0x4de0eb(0x28a))})]})]}):_0x3c00a1(_0x4de0eb(0x384),{'className':'univer-grid\x20univer-gap-4','children':[_0x414ebe(_0x43bcb4,{'emptyLabel':_0x470a4a['t'](_0x4de0eb(0x301)),'label':_0x470a4a['t'](_0x4de0eb(0x301)),'pickerFallbackValue':_0xaf610c?_0x101f35[_0x4de0eb(0x3cd)][0x384]:_0x101f35[_0x4de0eb(0x3cd)][0x0],'resetLabel':_0x470a4a['t'](_0x4de0eb(0x337)),'value':_0x33a667[_0x4de0eb(0x16a)]??null,'onChange':_0x321b35=>_0x533b24({'backgroundColor':_0x321b35??void 0x0})}),_0x3c00a1(ui,{'label':_0x470a4a['t'](_0x4de0eb(0x159)),'children':[_0x3c00a1(_0x4de0eb(0x384),{'className':_0x4de0eb(0x292),'children':[_0x3c00a1(_0x5d2b24,{'className':'univer-flex-1','onClick':()=>{const _0x53cb68=_0x4de0eb;_0x5a185c()[_0x53cb68(0x1fb)](_0x507d7b=>{const _0x2d7833=_0x53cb68;if(_0x507d7b){var _0x1ee763;return _0x533b24({'backgroundImage':{..._0x507d7b,'fit':((_0x1ee763=_0x33a667[_0x2d7833(0x313)])==null?void 0x0:_0x1ee763['fit'])??_0x2d7833(0x257)}});}})[_0x53cb68(0x147)](()=>void 0x0);},'size':_0x4de0eb(0x45d),'children':[_0x414ebe(_0x2dc2bd,{}),_0x33a667['backgroundImage']?_0x470a4a['t']('bases-dashboard-ui.dashboardInspector.replaceImage'):_0x470a4a['t'](_0x4de0eb(0x3eb))]}),_0x33a667[_0x4de0eb(0x313)]&&_0x414ebe(_0x5d2b24,{'aria-label':_0x470a4a['t'](_0x4de0eb(0x2bb)),'title':_0x470a4a['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'onClick':()=>_0x533b24({'backgroundImage':void 0x0}),'size':_0x4de0eb(0x45d),'children':_0x414ebe(_0x152022,{})})]}),_0x33a667[_0x4de0eb(0x313)]&&_0x414ebe(_0x4110dc,{'className':'univer-mt-2','items':[{'value':_0x4de0eb(0x257),'label':_0x470a4a['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x4de0eb(0x1b4),'label':_0x470a4a['t'](_0x4de0eb(0x2f6))}],'value':_0x33a667[_0x4de0eb(0x313)]['fit'],'onChange':_0x17add1=>_0x533b24({'backgroundImage':_0x33a667[_0x4de0eb(0x313)]?{..._0x33a667['backgroundImage'],'fit':_0x17add1}:void 0x0})})]}),_0x414ebe(_0x43bcb4,{'emptyLabel':_0x470a4a['t'](_0x4de0eb(0x481)),'label':_0x470a4a['t'](_0x4de0eb(0x481)),'pickerFallbackValue':_0xaf610c?_0x101f35[_0x4de0eb(0x3cd)][0x32]:_0x101f35[_0x4de0eb(0x3cd)][0x3e8],'resetLabel':_0x470a4a['t'](_0x4de0eb(0x337)),'value':_0x33a667[_0x4de0eb(0x467)]??null,'onChange':_0x42f078=>_0x533b24({'textColor':_0x42f078??void 0x0})}),_0x414ebe(ui,{'label':_0x470a4a['t'](_0x4de0eb(0x228)),'children':_0x414ebe(_0x4110dc,{'items':[{'value':_0x4de0eb(0x2f9),'label':_0x470a4a['t'](_0x4de0eb(0x3c8))},{'value':_0x4de0eb(0x15d),'label':_0x470a4a['t'](_0x4de0eb(0x3ef))},{'value':_0x4de0eb(0x33f),'label':_0x470a4a['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x33a667[_0x4de0eb(0x1f6)],'onChange':_0xcc1694=>_0x533b24({'alignment':_0xcc1694})})}),_0x3c00a1(ui,{'label':_0x470a4a['t'](_0x4de0eb(0x46a)),'children':[_0x414ebe(_0x4110dc,{'items':[{'value':_0x4de0eb(0x449),'label':_0x470a4a['t'](_0x4de0eb(0x352))},{'value':_0x4de0eb(0x3b7),'label':_0x470a4a['t'](_0x4de0eb(0x2d8))}],'value':_0x33a667[_0x4de0eb(0x307)],'onChange':_0x4cb83b=>_0x533b24({'fontSizeMode':_0x4cb83b})}),_0x33a667[_0x4de0eb(0x307)]===_0x4de0eb(0x3b7)&&_0x414ebe(_0x2963f5,{'className':_0x4de0eb(0x188),'min':0xc,'max':0x78,'value':_0x33a667[_0x4de0eb(0x1a7)],'onChange':_0x3f58f9=>_0x533b24({'fontSize':_0x3f58f9??0x28,'fontSizeMode':'custom'}),'size':_0x4de0eb(0x231),'controls':!0x1})]}),_0x414ebe(ui,{'label':_0x470a4a['t'](_0x4de0eb(0x272)),'children':_0x414ebe(Yr,{'value':_0x33a667[_0x4de0eb(0x262)],'options':[{'value':'general','label':_0x470a4a['t'](_0x4de0eb(0x380))},{'value':'number','label':_0x470a4a['t'](_0x4de0eb(0x3bc))},{'value':_0x4de0eb(0x261),'label':_0x470a4a['t'](_0x4de0eb(0x1b1))},{'value':_0x4de0eb(0x3c6),'label':_0x470a4a['t'](_0x4de0eb(0x42f))},{'value':_0x4de0eb(0x146),'label':_0x470a4a['t'](_0x4de0eb(0x158))},{'value':'compact','label':_0x470a4a['t']('bases-dashboard-ui.dashboardInspector.compact')}],'onChange':_0x292fd4=>{const _0x33cea9=_0x4de0eb;let _0x1627b3=ci[_0x33cea9(0x47f)](_0x2b8537=>_0x2b8537===_0x292fd4);_0x1627b3&&_0x533b24({'numberFormat':_0x1627b3});}})}),_0x33a667[_0x4de0eb(0x262)]==='currency'&&_0x414ebe(ui,{'label':_0x470a4a['t'](_0x4de0eb(0x166)),'children':_0x414ebe(_0x448a93,{'value':_0x33a667['currency'],'onChange':_0x1fe4ec=>_0x533b24({'currency':_0x1fe4ec[_0x4de0eb(0x234)](0x0,0x3)[_0x4de0eb(0x294)]()}),'size':_0x4de0eb(0x231)})}),_0x33a667['numberFormat']!==_0x4de0eb(0x3ae)&&_0x414ebe(ui,{'label':_0x470a4a['t']('bases-dashboard-ui.dashboardInspector.decimalPlaces'),'children':_0x414ebe(_0x2963f5,{'min':0x0,'max':0x8,'value':_0x33a667[_0x4de0eb(0x2d6)],'onChange':_0x4d2262=>_0x533b24({'decimalPlaces':_0x4d2262??0x0}),'size':_0x4de0eb(0x231),'controls':!0x1})})]})}),_0x37f266&&_0x414ebe(Zr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x414ebe(_0x558efe,{'tables':_0x43c617,'formula':_0x3cad2e(_0xcd67e6,_0x43c617),'onCancel':()=>_0x46d3c4(!0x1),'onSave':_0x40f552=>{const _0x471c29=_0x4de0eb;let _0x5ba7c5=_0x39f1d7[_0x471c29(0x3c7)][_0x471c29(0x3c0)]??{'formula':''};return _0x2a033f({..._0x39f1d7,'shapeData':{..._0x39f1d7[_0x471c29(0x3c7)],'formulaBinding':{..._0x5ba7c5,'formula':_0x1a63bf(_0x40f552,_0x43c617)}}})['then'](()=>_0x46d3c4(!0x1))[_0x471c29(0x147)](()=>void 0x0);}})})]});}function ui({children:_0x2df94f,label:_0x240424}){const _0x542a15=_0x290871;return _0x3c00a1(_0x542a15(0x384),{'role':'group','aria-label':_0x240424,'className':_0x542a15(0x45a),'children':[_0x414ebe('span',{'children':_0x240424}),_0x2df94f]});}function di({disabled:_0x32d091,fields:_0x297e04,filter:_0x41a12c,onChange:_0xc5615b}){const _0x2baa05=_0x290871;let _0x5539ea=_0xe276a8(_0x23e99d)[_0x2baa05(0x465)]??null,[_0x42e7bc,_0x454081]=_0x3f626c(null),_0x5d41e6=_0xe276a8(_0x4b0f72),_0x1b08f0=(_0x41a12c==null?void 0x0:_0x41a12c[_0x2baa05(0x338)])??[];if(!_0x1b08f0[_0x2baa05(0x151)])return _0x3c00a1(_0x2baa05(0x384),{'className':_0x2baa05(0x440),'children':[_0x414ebe(_0x27cd4d,{'className':_0x2baa05(0x1f8)}),_0x414ebe(_0x2baa05(0x415),{'className':_0x2baa05(0x368),'children':_0x5d41e6['t'](_0x2baa05(0x296))})]});let _0xfe6da1=_0x42e7bc==null?void 0x0:_0x1b08f0[_0x42e7bc],_0x164925=_0x297e04[_0x2baa05(0x47f)](_0x59acb7=>_0x59acb7['id']===(_0xfe6da1==null?void 0x0:_0xfe6da1[_0x2baa05(0x48a)]));return _0x3c00a1('div',{'className':_0x2baa05(0x47a),'children':[_0x1b08f0[_0x2baa05(0x3a8)]((_0x207908,_0x2a3dee)=>{const _0x583e18=_0x2baa05;var _0x1ecc06;return _0x3c00a1(_0x5d2b24,{'disabled':_0x32d091,'onClick':()=>_0x454081(_0x2a3dee),'size':_0x583e18(0x45d),'children':[_0x414ebe(_0x583e18(0x415),{'children':((_0x1ecc06=_0x297e04[_0x583e18(0x47f)](_0x12b8d0=>_0x12b8d0['id']===_0x207908[_0x583e18(0x48a)]))==null?void 0x0:_0x1ecc06[_0x583e18(0x2a3)])??_0x207908['fieldId']}),_0x414ebe(_0x583e18(0x415),{'className':_0x583e18(0x1cf),'children':String(_0x207908[_0x583e18(0x312)]??'')})]},_0x207908[_0x583e18(0x48a)]+'-'+_0x2a3dee);}),_0x164925&&_0xfe6da1&&_0x42e7bc!=null&&_0x5539ea&&_0x17d46a(_0x414ebe(_0x28df3d,{'field':_0x164925,'value':_0xfe6da1[_0x2baa05(0x312)],'onClose':()=>_0x454081(null),'onSave':_0x2b1275=>{const _0x39d2fb=_0x2baa05;_0xc5615b({'conjunction':(_0x41a12c==null?void 0x0:_0x41a12c[_0x39d2fb(0x253)])??_0x369900[_0x39d2fb(0x36d)],'conditions':_0x1b08f0[_0x39d2fb(0x3a8)]((_0x5dce64,_0x4c2134)=>_0x4c2134===_0x42e7bc?{..._0x5dce64,'operand':_0x2b1275}:_0x5dce64)}),_0x454081(null);}}),_0x5539ea)]});}function fi({fields:_0x5c66da,filter:_0x16551f,onChange:_0x2e7ba8,onClear:_0x2e3f78}){const _0x27190b=_0x290871;let _0x2496b3=_0xe276a8(_0x4b0f72);return _0x3c00a1('div',{'children':[_0x414ebe(_0xdfeac7,{'fields':_0x5c66da,'value':_0x16551f??{'conjunction':_0x369900[_0x27190b(0x36d)],'conditions':[]},'onChange':_0x2e7ba8}),_0x414ebe(_0x5d2b24,{'onClick':_0x2e3f78,'size':_0x27190b(0x45d),'children':_0x2496b3['t'](_0x27190b(0x337))})]});}function pi({base:_0x19e810,chartRuntime:_0x1ddbd7,onChange:_0x1549cb,onClose:_0x36cc99,onSelectBackgroundImage:_0x58d113,onSelectImage:_0x49fbfa,unitId:_0x30f51d,widget:_0x5c7697}){const _0x4cb1f7=_0x290871;let _0x3c8385=_0xe276a8(_0x299365),_0x556769=_0xe276a8(_0x4b0f72),_0x23a3ad=_0x19e810[_0x4cb1f7(0x18e)](),_0x3fefb8=_0x4cb1f7(0x1b9)in _0x5c7697?_0x23a3ad[_0x4cb1f7(0x377)][_0x5c7697[_0x4cb1f7(0x1b9)]]:void 0x0,_0x4d9a13=_0x5c7697[_0x4cb1f7(0x183)]===_0x39775d[_0x4cb1f7(0x26a)]?_0x3fefb8==null?void 0x0:_0x3fefb8[_0x4cb1f7(0x483)][_0x5c7697[_0x4cb1f7(0x154)]]:void 0x0,_0x1b1e53=_0x556769['t'](bi(_0x5c7697)),_0x4c0a13=_0x3c00a1(_0x4cb1f7(0x3dc),{'data-dashboard-inspector':!0x0,'className':_0x4cb1f7(0x34e),'children':[_0x5c7697['type']===_0x39775d['PivotChart']&&(yi(_0x4d9a13)&&_0x1ddbd7?_0x414ebe(oi,{'runtime':_0x1ddbd7,'sourceChart':_0x4d9a13[_0x4cb1f7(0x193)]['chart'],'sourceName':((_0x3fefb8==null?void 0x0:_0x3fefb8[_0x4cb1f7(0x2a3)])??'')+_0x4cb1f7(0x1de)+_0x4d9a13[_0x4cb1f7(0x2a3)],'widget':_0x5c7697,'onChange':_0x1549cb,'onEditData':()=>{const _0x47b4fe=_0x4cb1f7;_0x3c8385[_0x47b4fe(0x25b)](_0x32f41c['id'],{'unitId':_0x30f51d,'tableId':_0x5c7697[_0x47b4fe(0x1b9)],'viewId':_0x5c7697[_0x47b4fe(0x154)]})[_0x47b4fe(0x147)](()=>void 0x0);}}):_0x414ebe(_i,{'message':yi(_0x4d9a13)?_0x556769['t'](_0x4cb1f7(0x144)):_0x556769['t'](_0x4cb1f7(0x2be))})),_0x5c7697[_0x4cb1f7(0x183)]===_0x39775d[_0x4cb1f7(0x474)]&&_0x414ebe(li,{'base':_0x19e810,'widget':_0x5c7697,'onChange':_0x1549cb,'onSelectBackgroundImage':_0x58d113}),_0x5c7697[_0x4cb1f7(0x183)]===_0x39775d[_0x4cb1f7(0x324)]&&_0x414ebe(hi,{'base':_0x19e810,'onChange':_0x1549cb,'widget':_0x5c7697}),_0x5c7697[_0x4cb1f7(0x183)]===_0x39775d[_0x4cb1f7(0x300)]&&_0x414ebe(gi,{'onChange':_0x1549cb,'widget':_0x5c7697}),_0x5c7697['type']===_0x39775d[_0x4cb1f7(0x3d2)]&&_0x414ebe(mi,{'onChange':_0x1549cb,'onSelectImage':_0x49fbfa,'widget':_0x5c7697})]});return _0x414ebe(_0x3da581,{'title':_0x1b1e53,'onClose':_0x36cc99,'children':_0x4c0a13});}function mi({onChange:_0x493ef8,onSelectImage:_0x2d91fd,widget:_0x53c20e}){const _0x220a75=_0x290871;let _0x203100=_0xe276a8(_0x4b0f72);return _0x3c00a1('div',{'className':_0x220a75(0x150),'children':[_0x3c00a1(_0x5d2b24,{'className':'univer-w-full','onClick':()=>_0x2d91fd()[_0x220a75(0x1fb)](_0x58637e=>_0x58637e&&_0x493ef8({..._0x53c20e,'source':_0x58637e['source'],'sourceType':_0x58637e[_0x220a75(0x260)],'alt':_0x58637e['name']}))['catch'](()=>void 0x0),'size':'middle','children':[_0x414ebe(_0x2dc2bd,{}),_0x203100['t'](_0x220a75(0x18a))]}),_0x3c00a1(_0x220a75(0x1e5),{'className':_0x220a75(0x45a),'children':[_0x414ebe('span',{'children':_0x203100['t'](_0x220a75(0x159))}),_0x414ebe(_0x4110dc,{'items':[{'value':_0x220a75(0x257),'label':_0x203100['t'](_0x220a75(0x2f1))},{'value':_0x220a75(0x413),'label':_0x203100['t'](_0x220a75(0x208))},{'value':_0x220a75(0x258),'label':_0x203100['t'](_0x220a75(0x374))}],'value':_0x53c20e[_0x220a75(0x3f8)]??_0x220a75(0x257),'onChange':_0x21d40a=>_0x493ef8({..._0x53c20e,'displayMode':_0x21d40a})[_0x220a75(0x147)](()=>void 0x0)})]})]});}function hi({base:_0x25b6d4,onChange:_0x185fee,widget:_0x28d465}){const _0x5315cc=_0x290871;let _0x13da0c=_0x25b6d4['getSnapshot']()[_0x5315cc(0x377)][_0x28d465[_0x5315cc(0x1b9)]],_0xf17179=_0x13da0c==null?void 0x0:_0x13da0c[_0x5315cc(0x40f)][_0x5315cc(0x47f)](_0x5460fe=>_0x13da0c[_0x5315cc(0x483)][_0x5460fe]),_0x352178=_0xf17179?_0x13da0c==null?void 0x0:_0x13da0c[_0x5315cc(0x483)][_0xf17179]:void 0x0,_0xfe6859=_0x13da0c&&_0x352178?_0x5dcd9e(_0x13da0c,_0x352178):[];return _0x414ebe(fi,{'fields':_0xfe6859,'filter':_0x28d465[_0x5315cc(0x42d)],'onChange':_0x538b45=>_0x185fee({..._0x28d465,'filter':_0x538b45})[_0x5315cc(0x147)](()=>void 0x0),'onClear':()=>_0x185fee({..._0x28d465,'filter':null})[_0x5315cc(0x147)](()=>void 0x0)});}function gi({onChange:_0x1f5597,widget:_0x2a4aa4}){const _0x46767b=_0x290871;let _0x187991=_0xe276a8(_0x4b0f72),_0x8e129a=_0xe276a8(_0x32e309),_0x1fdfbb=_0x45d384(()=>_0x8e129a[_0x46767b(0x343)],_0x8e129a['getCurrentTheme'](),!0x1,[_0x8e129a]),_0xf5f91b=Hr(_0x2a4aa4),_0xe967a=_0x3ea971=>_0x1f5597({..._0x2a4aa4,'appearance':{..._0xf5f91b,..._0x3ea971}})['catch'](()=>void 0x0);return _0x3c00a1('div',{'className':_0x46767b(0x461),'children':[_0x414ebe(_0x27cc24,{'className':_0x46767b(0x468),'defaultValue':Ur(_0x2a4aa4['document']),'rows':0x8,'onBlur':_0x5a9715=>_0x1f5597({..._0x2a4aa4,'document':Wr(_0x2a4aa4[_0x46767b(0x270)],_0x5a9715[_0x46767b(0x1d8)]['value'])})['catch'](()=>void 0x0),'size':_0x46767b(0x231)}),_0x414ebe(_0x43bcb4,{'emptyLabel':_0x187991['t'](_0x46767b(0x301)),'label':_0x187991['t'](_0x46767b(0x301)),'pickerFallbackValue':_0x1fdfbb[_0x46767b(0x3cd)][0x0],'resetLabel':_0x187991['t'](_0x46767b(0x337)),'value':_0xf5f91b[_0x46767b(0x16a)]??null,'onChange':_0x682fdc=>_0xe967a({'backgroundColor':_0x682fdc??void 0x0})}),_0x414ebe(_0x43bcb4,{'emptyLabel':_0x187991['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x187991['t'](_0x46767b(0x481)),'pickerFallbackValue':_0x1fdfbb[_0x46767b(0x3cd)][0x3e8],'resetLabel':_0x187991['t'](_0x46767b(0x337)),'value':_0xf5f91b['textColor']??null,'onChange':_0x2c220e=>_0xe967a({'textColor':_0x2c220e??void 0x0})}),_0x414ebe(vi,{'label':_0x187991['t'](_0x46767b(0x228)),'children':_0x414ebe(_0x4110dc,{'items':[{'value':_0x46767b(0x2f9),'label':_0x187991['t'](_0x46767b(0x3c8))},{'value':_0x46767b(0x15d),'label':_0x187991['t'](_0x46767b(0x3ef))},{'value':'right','label':_0x187991['t'](_0x46767b(0x3aa))}],'value':_0xf5f91b[_0x46767b(0x1f6)],'onChange':_0x2d1ab7=>_0xe967a({'alignment':_0x2d1ab7})})}),_0x3c00a1(vi,{'label':_0x187991['t'](_0x46767b(0x46a)),'children':[_0x414ebe(_0x4110dc,{'items':[{'value':_0x46767b(0x449),'label':_0x187991['t'](_0x46767b(0x352))},{'value':'custom','label':_0x187991['t'](_0x46767b(0x2d8))}],'value':_0xf5f91b[_0x46767b(0x307)],'onChange':_0x17c68e=>_0xe967a({'fontSizeMode':_0x17c68e})}),_0xf5f91b[_0x46767b(0x307)]===_0x46767b(0x3b7)&&_0x414ebe(_0x2963f5,{'className':_0x46767b(0x188),'min':0xa,'max':0x78,'value':_0xf5f91b[_0x46767b(0x1a7)],'onChange':_0x19bd2c=>_0xe967a({'fontSize':_0x19bd2c??0x12,'fontSizeMode':_0x46767b(0x3b7)}),'size':_0x46767b(0x231),'controls':!0x1})]})]});}function _i({message:_0x32e899}){const _0x11c1af=_0x290871;return _0x414ebe(_0x11c1af(0x384),{'className':'univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','children':_0x32e899});}function vi({children:_0x4ff906,label:_0x5757df}){const _0x11b26a=_0x290871;return _0x3c00a1(_0x11b26a(0x384),{'role':_0x11b26a(0x1d4),'aria-':!0x0,'className':_0x11b26a(0x45a),'children':[_0x414ebe(_0x11b26a(0x415),{'children':_0x5757df}),_0x4ff906]});}function yi(_0x51b3af){const _0x307b3c=_0x290871;return(_0x51b3af==null?void 0x0:_0x51b3af[_0x307b3c(0x183)])===_0x3744eb['Pivot']&&typeof _0x51b3af[_0x307b3c(0x193)]==_0x307b3c(0x30e)&&_0x51b3af[_0x307b3c(0x193)]!==null&&'pivot'in _0x51b3af[_0x307b3c(0x193)]&&_0x307b3c(0x3a5)in _0x51b3af[_0x307b3c(0x193)];}function bi(_0x27a32d){const _0x45e992=_0x290871;switch(_0x27a32d['type']){case _0x39775d['PivotChart']:return _0x45e992(0x2fa);case _0x39775d[_0x45e992(0x324)]:return _0x45e992(0x296);case _0x39775d[_0x45e992(0x300)]:return _0x45e992(0x37b);case _0x39775d[_0x45e992(0x3d2)]:return'bases-dashboard-ui.dashboard.image';case _0x39775d[_0x45e992(0x474)]:return _0x45e992(0x1d2);}}function xi({onDelete:_0x291fb1,onEdit:_0xb68ad5,onMoveUp:_0x4cd1bf,onMoveDown:_0x26fa04}){const _0x4469f8=_0x290871;let [_0x50ea44,_0x4614c5]=_0x3f626c(!0x1),_0x1cb451=_0xe276a8(_0x4b0f72),_0x5dde21=_0x1cb451['t'](_0x4469f8(0x16e)),_0x268e90=_0x1cb451['t'](_0x4469f8(0x454)),_0x31962f=_0x1cb451['t'](_0x4469f8(0x3d8)),_0x3d2f5c=[{'type':_0x4469f8(0x3de),'children':_0x3c00a1(_0x4469f8(0x415),{'className':_0x4469f8(0x21b),'children':[_0x414ebe(_0xd735a9,{'className':'univer-size-4','aria-hidden':_0x4469f8(0x2b6)}),_0x414ebe(_0x4469f8(0x415),{'children':_0x5dde21})]}),'onSelect':_0xb68ad5},..._0x4cd1bf?[{'type':_0x4469f8(0x3de),'children':_0x3c00a1('span',{'className':_0x4469f8(0x21b),'children':[_0x414ebe(_0x12ff8f,{'className':_0x4469f8(0x2e0),'aria-hidden':_0x4469f8(0x2b6)}),_0x414ebe(_0x4469f8(0x415),{'children':_0x1cb451['t'](_0x4469f8(0x2eb))})]}),'onSelect':_0x4cd1bf}]:[],..._0x26fa04?[{'type':_0x4469f8(0x3de),'children':_0x3c00a1(_0x4469f8(0x415),{'className':_0x4469f8(0x21b),'children':[_0x414ebe(_0x402220,{'className':_0x4469f8(0x2e0),'aria-hidden':_0x4469f8(0x2b6)}),_0x414ebe(_0x4469f8(0x415),{'children':_0x1cb451['t'](_0x4469f8(0x2d5))})]}),'onSelect':_0x26fa04}]:[],{'type':'separator'},{'type':_0x4469f8(0x3de),'variant':_0x4469f8(0x2ca),'children':_0x3c00a1('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x414ebe(_0x152022,{'className':'univer-size-4','aria-hidden':_0x4469f8(0x2b6)}),_0x414ebe(_0x4469f8(0x415),{'children':_0x268e90})]}),'onSelect':_0x291fb1}];return _0x414ebe(_0x4acc99,{'open':_0x50ea44,'onOpenChange':_0x4614c5,'align':'end','sideOffset':0x4,'items':_0x3d2f5c[_0x4469f8(0x3a8)](_0x283e71=>({..._0x283e71,'className':_0x283e71[_0x4469f8(0x183)]===_0x4469f8(0x3de)?'univer-min-h-11\x20univer-px-3\x20univer-text-base':void 0x0})),'children':_0x414ebe(_0x5d2b24,{'type':_0x4469f8(0x30b),'size':_0x4469f8(0x1dc),'variant':_0x4469f8(0x476),'onPointerDown':_0x4c9c30=>_0x4c9c30[_0x4469f8(0x32d)](),'onClick':()=>_0x4614c5(_0xefaab3=>!_0xefaab3),'title':_0x31962f,'aria-label':_0x31962f,'className':'univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','children':_0x414ebe(_0x37e5b5,{'className':'univer-size-4','aria-hidden':'true'})})});}function Si({dashboardId:_0x2e94ca,presentation:_0x13c816=!0x1,unitId:_0x44524e}){const _0xfa3ecc=_0x290871;let _0x270aea=_0xe276a8(_0x117569),_0x48864d=_0xe276a8(_0x2a9732);_0x45d384(_0x48864d['changed$'],0x0);let _0x3791bc=_0xe276a8(_0x299365),_0x217f3e=_0xe276a8(_0xdb66e),_0x2598b8=_0xe276a8(_0x1c9925),_0x5787ea=_0xe276a8(_0x5abbf9),_0x9b2a15=_0xe276a8(_0x4b0f72),_0x3bcc98=_0xe276a8(_0x1aeb78),_0x21fbc3=_0xe276a8(_0x2ce242),[_0x327851,_0x508c7b]=_0x3f626c(!0x1),[_0x4399ab,_0x1d1ca4]=_0x3f626c(),[_0x545a3c,_0x359d85]=_0x3f626c(!0x1),[_0x1d0a0f,_0x40be57]=_0x3f626c(()=>new Map()),_0x22705d=_0x12bed3((_0x511aa0,_0x2beaf5)=>{_0x40be57(_0x56db4a=>{let _0x5bd11d=new Map(_0x56db4a);return _0x2beaf5?_0x5bd11d['set'](_0x511aa0,_0x2beaf5):_0x5bd11d['delete'](_0x511aa0),_0x5bd11d;});},[]),_0x44bc08=_0x45d384(()=>_0x3bcc98[_0xfa3ecc(0x3f9)][_0xfa3ecc(0x453)](_0x263c89(()=>_0x3bcc98[_0xfa3ecc(0x40d)](_0x44524e,_0x2e94ca))),_0x3bcc98[_0xfa3ecc(0x40d)](_0x44524e,_0x2e94ca),!0x1,[_0x2e94ca,_0x3bcc98,_0x44524e]),_0x3eb253=_0x5787ea[_0xfa3ecc(0x3be)](_0x44524e,_0x1516ee[_0xfa3ecc(0x3c2)]),_0x35e996=_0x45d384(()=>_0x21fbc3[_0xfa3ecc(0x2ed)],{'undos':0x0,'redos':0x0},!0x1,[_0x21fbc3]),_0x158047=vr(_0x44524e,_0x2e94ca);if(_0x330c05(()=>{const _0x494d22=_0xfa3ecc;_0x5787ea[_0x494d22(0x173)](_0x44524e),_0x5787ea[_0x494d22(0x3bb)](_0x44524e);},[_0x5787ea,_0x44524e]),!_0x44bc08||!_0x3eb253)return null;let _0x37ca29={'unitId':_0x44524e,'objectId':_0x3a0eab(_0x2e94ca),'objectType':_0x1d0cb1[_0xfa3ecc(0x306)]},_0xff4042=(_0x53df75,_0x49c0bd)=>{const _0xd5e8a=_0xfa3ecc;let _0x4e9b58=[..._0x44bc08['widgetOrder']],_0x47ec02=_0x4e9b58[_0xd5e8a(0x406)](_0x53df75),_0x543c52=_0x47ec02+_0x49c0bd;if(!(_0x47ec02<0x0||_0x543c52<0x0||_0x543c52>=_0x4e9b58[_0xd5e8a(0x151)]))return[_0x4e9b58[_0x47ec02],_0x4e9b58[_0x543c52]]=[_0x4e9b58[_0x543c52],_0x4e9b58[_0x47ec02]],_0x3791bc[_0xd5e8a(0x25b)](_0xe5ba16['id'],{'unitId':_0x44524e,'dashboard':{..._0x44bc08,'widgetOrder':_0x4e9b58}});},_0x26ccac=_0x1cdaf3=>_0x3791bc['executeCommand'](_0x2e234a['id'],{'unitId':_0x44524e,'dashboardId':_0x2e94ca,'widget':_0x1cdaf3})[_0xfa3ecc(0x147)](()=>void 0x0),_0x533c68=(_0x26bab3,_0x231f55,_0x495257)=>{const _0x2d8904=_0xfa3ecc;let _0xc37e47=Math[_0x2d8904(0x399)](0x0,..._0x44bc08['widgetOrder']['flatMap'](_0x22ee22=>{const _0x22cd79=_0x2d8904;var _0x1464bf;let _0x300701=(_0x1464bf=_0x44bc08[_0x22cd79(0x33d)][_0x22ee22])==null?void 0x0:_0x1464bf[_0x22cd79(0x2c7)];return _0x300701?[_0x300701[_0x22cd79(0x3a9)]+_0x300701[_0x22cd79(0x220)]]:[];})),_0x4937c5=_0x2d8904(0x3cf)+_0x89ef13(0x8),_0x49810a={'column':0x0,'row':_0xc37e47,'columnSpan':_0x231f55,'rowSpan':_0x495257};switch(_0x26bab3[_0x2d8904(0x183)]){case _0x39775d[_0x2d8904(0x26a)]:return _0x26ccac({..._0x26bab3,'id':_0x4937c5,'layout':_0x49810a});case _0x39775d[_0x2d8904(0x324)]:return _0x26ccac({..._0x26bab3,'id':_0x4937c5,'layout':_0x49810a});case _0x39775d[_0x2d8904(0x300)]:return _0x26ccac({..._0x26bab3,'id':_0x4937c5,'layout':_0x49810a});case _0x39775d[_0x2d8904(0x3d2)]:return _0x26ccac({..._0x26bab3,'id':_0x4937c5,'layout':_0x49810a});case _0x39775d[_0x2d8904(0x474)]:return _0x26ccac({..._0x26bab3,'id':_0x4937c5,'layout':_0x49810a});}},_0x5a7466=_0x3eb253[_0xfa3ecc(0x18e)](),_0x362b5d=_0x5a7466[_0xfa3ecc(0x284)][_0xfa3ecc(0x2af)](_0x427b66=>{const _0x4b465e=_0xfa3ecc;let _0x381c69=_0x5a7466[_0x4b465e(0x377)][_0x427b66];if(!_0x381c69)return[];let _0x635cfc=_0x381c69[_0x4b465e(0x40f)]['flatMap'](_0x43de46=>{const _0x4a7690=_0x4b465e;let _0x366a8e=_0x381c69['views'][_0x43de46];return Ai(_0x366a8e)?[{'type':'item','children':_0x366a8e[_0x4a7690(0x2a3)],'onSelect':()=>_0x533c68({'type':_0x39775d[_0x4a7690(0x26a)],'tableId':_0x427b66,'pivotViewId':_0x43de46,'chart':{..._0x366a8e[_0x4a7690(0x193)][_0x4a7690(0x3a5)]}},0x6,0xa)}]:[];});return[{'type':_0x4b465e(0x303),'children':_0x381c69[_0x4b465e(0x2a3)],'options':[..._0x635cfc,..._0x635cfc[_0x4b465e(0x151)]?[{'type':_0x4b465e(0x2b1)}]:[],{'type':_0x4b465e(0x3de),'children':_0x9b2a15['t']('bases-dashboard-ui.dashboard.tableFilter'),'onSelect':()=>_0x533c68({'type':_0x39775d['TableFilter'],'tableId':_0x427b66,'filter':null},0x6,0x8)}]}];}),_0x1c60e5=[..._0x362b5d,..._0x362b5d[_0xfa3ecc(0x151)]?[{'type':_0xfa3ecc(0x2b1)}]:[],{'type':_0xfa3ecc(0x3de),'children':_0x9b2a15['t'](_0xfa3ecc(0x37b)),'onSelect':()=>_0x533c68({'type':_0x39775d[_0xfa3ecc(0x300)],'document':Ei()},0x4,0x6)},{'type':'item','children':_0x9b2a15['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>Di(_0x217f3e)[_0xfa3ecc(0x1fb)](_0x51327d=>_0x51327d&&_0x533c68({'type':_0x39775d[_0xfa3ecc(0x3d2)],'source':_0x51327d[_0xfa3ecc(0x237)],'sourceType':_0x51327d[_0xfa3ecc(0x260)],'alt':_0x51327d[_0xfa3ecc(0x2a3)],'displayMode':'cover'},0x4,0x6))},{'type':_0xfa3ecc(0x3de),'children':_0x9b2a15['t'](_0xfa3ecc(0x1d2)),'onSelect':()=>{const _0x2acc7c=_0xfa3ecc;let _0x322d2c=_0x5a7466[_0x2acc7c(0x284)][_0x2acc7c(0x47f)](_0x378de3=>_0x5a7466[_0x2acc7c(0x377)][_0x378de3]);_0x322d2c&&_0x533c68({'type':_0x39775d[_0x2acc7c(0x474)],'tableId':_0x322d2c,'shapeType':_0x25ce73['RoundRect'],'shapeData':_0x501502(),'description':_0x9b2a15['t'](_0x2acc7c(0x1d2))},0x4,0x6);}}],_0x5ec154=_0x4399ab?_0x44bc08[_0xfa3ecc(0x33d)][_0x4399ab]:void 0x0,_0x402312=()=>_0x359d85(_0x3ffeed=>!_0x3ffeed),_0x535905=_0x13c816||_0x545a3c,_0x3245c9=_0x158047&&!_0x535905;return _0x414ebe(Jr,{'children':_0x3c00a1(_0xfa3ecc(0x384),{'className':_0xfa3ecc(0x27b)+(_0x545a3c?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':_0xfa3ecc(0x18b))+_0xfa3ecc(0x335),'children':[_0x545a3c&&_0x414ebe(_0x5d2b24,{'onClick':()=>_0x359d85(!0x1),'size':_0xfa3ecc(0x45d),'children':_0x9b2a15['t']('bases-dashboard-ui.dashboardInspector.close')}),!_0x535905&&_0x3c00a1(_0xfa3ecc(0x38b),{'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':[_0x414ebe(_0x3c5010,{'className':'univer-size-5\x20univer-text-primary-600'}),_0x414ebe('h2',{'className':_0xfa3ecc(0x32e),'children':_0x44bc08[_0xfa3ecc(0x2a3)]}),_0x48864d['supports'](_0x37ca29)&&_0x414ebe(_0x5d2b24,{'variant':_0xfa3ecc(0x476),'disabled':!_0x48864d[_0xfa3ecc(0x233)](_0x37ca29),'aria-label':_0x9b2a15['t'](_0xfa3ecc(0x1df)),'onClick':()=>{const _0x584b4c=_0xfa3ecc;_0xaa0c2a(_0x270aea,{'target':_0x37ca29,'name':_0x44bc08[_0x584b4c(0x2a3)],'commandId':_0x3c4b15['id'],'exists':()=>!!_0x3bcc98['getDashboard'](_0x44524e,_0x2e94ca)});},'size':_0xfa3ecc(0x45d),'children':_0x414ebe(_0x1352c6,{})}),_0x414ebe(_0xd9e87c,{'unitId':_0x44524e}),_0x414ebe(_0x5d2b24,{'type':_0xfa3ecc(0x30b),'size':'middle','variant':'text','aria-label':_0x9b2a15['t']('bases-dashboard-ui.dashboard.undo'),'disabled':!_0x158047||_0x35e996[_0xfa3ecc(0x189)]===0x0,'onClick':()=>_0x3791bc[_0xfa3ecc(0x25b)](_0x2cf828['id'])['catch'](()=>void 0x0),'children':_0x414ebe(_0x4dc9e7,{})}),_0x414ebe(_0x5d2b24,{'type':'button','size':'middle','variant':_0xfa3ecc(0x476),'aria-label':_0x9b2a15['t'](_0xfa3ecc(0x22b)),'disabled':!_0x158047||_0x35e996[_0xfa3ecc(0x29b)]===0x0,'onClick':()=>_0x3791bc[_0xfa3ecc(0x25b)](_0x40e22e['id'])['catch'](()=>void 0x0),'children':_0x414ebe(_0x9c5a81,{})}),_0x414ebe(_0x5d2b24,{'type':_0xfa3ecc(0x30b),'size':_0xfa3ecc(0x45d),'variant':'text','aria-label':_0x9b2a15['t'](_0xfa3ecc(0x382)),'onClick':_0x402312,'children':_0x414ebe(_0x552f90,{})}),_0x414ebe(Xr,{'items':_0x1c60e5,'children':_0x3c00a1(_0x5d2b24,{'variant':'primary','disabled':!_0x158047,'size':_0xfa3ecc(0x45d),'children':[_0x414ebe(_0x2dc2bd,{}),_0x9b2a15['t']('bases-dashboard-ui.dashboard.addWidget')]})})]}),_0x3c00a1(_0xfa3ecc(0x384),{'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1','children':[_0x414ebe('div',{'className':_0xfa3ecc(0x1f4),'children':_0x414ebe(Kr,{'dashboard':_0x44bc08,'editable':_0x3245c9,'widgetLabel':_0x3a3501=>_0x9b2a15['t'](ki(_0x3a3501['type'])),'selectedWidgetId':_0x3245c9?_0x4399ab:void 0x0,'onSelectWidget':_0x3245c9?_0x132170=>{_0x1d1ca4(_0x132170),_0x132170||_0x508c7b(!0x1);}:void 0x0,'renderWidget':_0xf4cfc2=>_0x414ebe(Ci,{'base':_0x3eb253,'dashboard':_0x44bc08,'unitId':_0x44524e,'widget':_0xf4cfc2,'onChange':_0x26ccac,'onChartRuntimeChange':_0x22705d}),'renderWidgetActions':_0x50c05a=>_0x414ebe(xi,{'onMoveUp':_0x44bc08[_0xfa3ecc(0x47d)][_0xfa3ecc(0x406)](_0x50c05a['id'])>0x0?()=>_0xff4042(_0x50c05a['id'],-0x1):void 0x0,'onMoveDown':_0x44bc08[_0xfa3ecc(0x47d)][_0xfa3ecc(0x406)](_0x50c05a['id'])<_0x44bc08[_0xfa3ecc(0x47d)][_0xfa3ecc(0x151)]-0x1?()=>_0xff4042(_0x50c05a['id'],0x1):void 0x0,'onEdit':()=>{_0x1d1ca4(_0x50c05a['id']),_0x508c7b(!0x0);},'onDelete':()=>{const _0x24f74b=_0xfa3ecc;_0x4399ab===_0x50c05a['id']&&(_0x1d1ca4(void 0x0),_0x508c7b(!0x1)),_0x3791bc[_0x24f74b(0x25b)](_0x3707f4['id'],{'unitId':_0x44524e,'dashboardId':_0x2e94ca,'widgetId':_0x50c05a['id']})[_0x24f74b(0x147)](()=>void 0x0);}})})}),_0x3245c9&&_0x327851&&_0x5ec154&&_0x414ebe(pi,{'base':_0x3eb253,'chartRuntime':_0x1d0a0f[_0xfa3ecc(0x44b)](_0x5ec154['id']),'unitId':_0x44524e,'widget':_0x5ec154,'onChange':_0x26ccac,'onClose':()=>_0x508c7b(!0x1),'onSelectBackgroundImage':()=>Oi(_0x2598b8),'onSelectImage':()=>Di(_0x217f3e)})]})]})});}function Ci({base:_0x50e220,dashboard:_0x4bf823,onChange:_0x29717d,onChartRuntimeChange:_0x3d879e,unitId:_0x2ae4e8,widget:_0x63615e}){const _0x3825fd=_0x290871;let _0x46c8a4=_0x50478e(()=>_0x4bf823[_0x3825fd(0x47d)][_0x3825fd(0x2af)](_0x5078cb=>{const _0x10f9f5=_0x3825fd;let _0x4f4b71=_0x4bf823[_0x10f9f5(0x33d)][_0x5078cb];return(_0x4f4b71==null?void 0x0:_0x4f4b71[_0x10f9f5(0x183)])===_0x39775d['TableFilter']&&_0x4f4b71[_0x10f9f5(0x1b9)]===(_0x10f9f5(0x1b9)in _0x63615e?_0x63615e[_0x10f9f5(0x1b9)]:'')&&_0x4f4b71['filter']?[_0x4f4b71[_0x10f9f5(0x42d)]]:[];}),[_0x4bf823,_0x63615e]);switch(_0x63615e[_0x3825fd(0x183)]){case _0x39775d['PivotChart']:return _0x414ebe(zr,{'filters':_0x46c8a4,'unitId':_0x2ae4e8,'widget':_0x63615e,'onRuntimeChange':_0x3d879e});case _0x39775d[_0x3825fd(0x324)]:return _0x414ebe(di,{'fields':wi(_0x50e220,_0x63615e[_0x3825fd(0x1b9)]),'filter':_0x63615e[_0x3825fd(0x42d)],'onChange':_0x1b7025=>_0x29717d({..._0x63615e,'filter':_0x1b7025})[_0x3825fd(0x147)](()=>void 0x0)});case _0x39775d[_0x3825fd(0x300)]:return _0x414ebe(Gr,{'widget':_0x63615e});case _0x39775d[_0x3825fd(0x3d2)]:return _0x414ebe(Ti,{'widget':_0x63615e});case _0x39775d[_0x3825fd(0x474)]:return _0x414ebe(kr,{'dashboardId':_0x4bf823['id'],'unitId':_0x2ae4e8,'widget':_0x63615e});}}function wi(_0x2fef50,_0x120a12){const _0x3a2b73=_0x290871;let _0x3deb86=_0x2fef50[_0x3a2b73(0x18e)]()[_0x3a2b73(0x377)][_0x120a12],_0x3d30a2=_0x3deb86==null?void 0x0:_0x3deb86[_0x3a2b73(0x40f)][_0x3a2b73(0x47f)](_0x28f231=>_0x3deb86[_0x3a2b73(0x483)][_0x28f231]),_0x57ea1a=_0x3d30a2?_0x3deb86==null?void 0x0:_0x3deb86[_0x3a2b73(0x483)][_0x3d30a2]:void 0x0;return _0x3deb86&&_0x57ea1a?_0x5dcd9e(_0x3deb86,_0x57ea1a):[];}function Ti({widget:_0x4c5005}){const _0x216889=_0x290871;let _0x1b47bc=_0xe276a8(_0xdb66e),[_0x5539de,_0x50c6cc]=_0x3f626c(_0x4c5005[_0x216889(0x260)]===_0x2b3585[_0x216889(0x320)]?'':_0x4c5005['source']);return _0x330c05(()=>{const _0x5af781=_0x216889;let _0x41464e=!0x0;return _0x1b47bc['getAttachmentUrl'](_0x4c5005[_0x5af781(0x237)],_0x4c5005[_0x5af781(0x260)])[_0x5af781(0x1fb)](_0xfe65c6=>{_0x41464e&&_0x50c6cc(_0xfe65c6);})[_0x5af781(0x147)](()=>void 0x0),()=>{_0x41464e=!0x1;};},[_0x1b47bc,_0x4c5005[_0x216889(0x237)],_0x4c5005[_0x216889(0x260)]]),_0x5539de?_0x414ebe('div',{'role':_0x4c5005[_0x216889(0x35c)]?'img':void 0x0,'aria-label':_0x4c5005[_0x216889(0x35c)]||void 0x0,'data-dashboard-image':_0x4c5005['id'],'className':_0x216889(0x362),'style':br(_0x5539de,_0x4c5005[_0x216889(0x3f8)])}):null;}function Ei(){let _0x39b73f=_0x2900cb(new Set());return{'id':'dashboard-text-'+_0x89ef13(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x39b73f}]},'documentStyle':{}};}function Di(_0x5ba008){return new Promise(_0x4c5606=>{const _0x2f18b2=_0x29b7;let _0x1c4a95=document[_0x2f18b2(0x437)]('input');_0x1c4a95['type']=_0x2f18b2(0x279),_0x1c4a95[_0x2f18b2(0x2f3)]=_0x2f18b2(0x36c),_0x1c4a95[_0x2f18b2(0x232)](_0x2f18b2(0x464),()=>{const _0x330149=_0x2f18b2;var _0x5a2d89;let _0x15740b=(_0x5a2d89=_0x1c4a95[_0x330149(0x1bf)])==null?void 0x0:_0x5a2d89[0x0];_0x15740b?_0x5ba008[_0x330149(0x243)](_0x15740b)[_0x330149(0x1fb)](_0x3ceee0=>{const _0x1e6777=_0x330149;!_0x3ceee0[_0x1e6777(0x237)]||_0x3ceee0[_0x1e6777(0x260)]===void 0x0?_0x4c5606(null):_0x4c5606({'name':_0x3ceee0[_0x1e6777(0x2a3)],'source':_0x3ceee0['source'],'sourceType':_0x3ceee0['sourceType']});})['catch'](()=>_0x4c5606(null)):_0x4c5606(null);},{'once':!0x0}),_0x1c4a95[_0x2f18b2(0x334)]();});}function Oi(_0x2658d3){return new Promise(_0x3f4572=>{const _0x1eca2f=_0x29b7;let _0x362e4e=document[_0x1eca2f(0x437)]('input');_0x362e4e['type']='file',_0x362e4e[_0x1eca2f(0x2f3)]=_0x1eca2f(0x36c),_0x362e4e[_0x1eca2f(0x232)]('change',()=>{const _0x5ef53a=_0x1eca2f;var _0x1dd25e;let _0x583838=(_0x1dd25e=_0x362e4e['files'])==null?void 0x0:_0x1dd25e[0x0];_0x583838?_0x2658d3[_0x5ef53a(0x282)](_0x583838)[_0x5ef53a(0x1fb)](_0x5d8783=>{const _0x189808=_0x5ef53a;if(!(_0x5d8783!=null&&_0x5d8783[_0x189808(0x237)]))_0x3f4572(null);else{if(_0x5d8783[_0x189808(0x43f)]){let _0x577526=new Image();_0x577526[_0x189808(0x2f2)]=_0x5d8783[_0x189808(0x43f)],_0x2658d3[_0x189808(0x23c)](_0x5d8783[_0x189808(0x237)],_0x5d8783[_0x189808(0x293)],_0x577526);}_0x3f4572({'source':_0x5d8783[_0x189808(0x237)],'sourceType':_0x5d8783[_0x189808(0x293)]});}})[_0x5ef53a(0x147)](()=>_0x3f4572(null)):_0x3f4572(null);},{'once':!0x0}),_0x362e4e['click']();});}function ki(_0x5e3132){const _0x4e5b66=_0x290871;switch(_0x5e3132){case _0x39775d[_0x4e5b66(0x26a)]:return _0x4e5b66(0x2fa);case _0x39775d[_0x4e5b66(0x324)]:return'bases-dashboard-ui.dashboard.tableFilter';case _0x39775d[_0x4e5b66(0x300)]:return _0x4e5b66(0x37b);case _0x39775d['Image']:return'bases-dashboard-ui.dashboard.image';case _0x39775d[_0x4e5b66(0x474)]:return _0x4e5b66(0x1d2);}}function Ai(_0x449e06){const _0xac7a40=_0x290871;return(_0x449e06==null?void 0x0:_0x449e06[_0xac7a40(0x183)])===_0x3744eb[_0xac7a40(0x250)]&&typeof _0x449e06[_0xac7a40(0x193)]=='object'&&_0x449e06[_0xac7a40(0x193)]!==null&&_0xac7a40(0x145)in _0x449e06[_0xac7a40(0x193)]&&'chart'in _0x449e06[_0xac7a40(0x193)];}function ji({pivot:_0x3b987f,view:_0x1b1a9e}){const _0x51820b=_0x290871;let _0x1be2db=_0xe276a8(_0x4b0f72),_0x6afb10=_0x50478e(()=>Mi(_0x1b1a9e,_0x3b987f,_0x1be2db['t'](_0x51820b(0x373))),[_0x1be2db,_0x3b987f,_0x1b1a9e]);return _0x3c00a1(_0x51820b(0x384),{'className':_0x51820b(0x2dd),'children':[_0x6afb10[_0x51820b(0x22d)][_0x51820b(0x151)]>0x0&&_0x414ebe(_0x51820b(0x363),{'className':_0x51820b(0x37e),'children':_0x414ebe(_0x51820b(0x216),{'children':Ni(_0x6afb10['pageRows'])})}),_0x3c00a1(_0x51820b(0x363),{'className':'univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','children':[_0x6afb10[_0x51820b(0x41c)]>0x0&&_0x414ebe(_0x51820b(0x280),{'className':_0x51820b(0x297),'children':Ni(_0x6afb10['rows'][_0x51820b(0x234)](0x0,_0x6afb10[_0x51820b(0x41c)]))}),_0x414ebe(_0x51820b(0x216),{'children':Ni(_0x6afb10['rows'][_0x51820b(0x234)](_0x6afb10['headerRowCount']))})]})]});}function Mi(_0x4f6297,_0x2ff28a,_0x3e73b7){const _0x2015ce=_0x290871;let _0x185c49=_0x4f6297[_0x2015ce(0x44d)][_0x2015ce(0x432)],_0x2b3611=_0x4f6297['rowView']['colCount'],_0x551ab2=_0x4f6297[_0x2015ce(0x393)][_0x2015ce(0x432)],_0x188494=_0x4f6297['dataView'][_0x2015ce(0x222)],_0x4cbfae=Array[_0x2015ce(0x2ba)]({'length':_0x185c49+_0x551ab2},(_0x6df274,_0x1a04c3)=>Array[_0x2015ce(0x2ba)]({'length':_0x2b3611+_0x188494},(_0x18740c,_0x247160)=>{const _0x58d1d5=_0x2015ce;var _0x1f1341,_0x11d00a;if(_0x1a04c3<_0x185c49&&_0x247160<_0x2b3611)return Pi(_0x4f6297['cornerView'],_0x1a04c3,_0x247160,void 0x0,_0x3e73b7,!0x0,!0x1,_0x58d1d5(0x28f)+_0x1a04c3+':'+_0x247160);if(_0x1a04c3<_0x185c49){var _0x211c3d;let _0x483afa=_0x247160-_0x2b3611,_0x25856a=(_0x211c3d=_0x4f6297['colView'][_0x58d1d5(0x34f)][_0x1a04c3])==null?void 0x0:_0x211c3d[_0x58d1d5(0x14c)];return Pi(_0x4f6297['colView'],_0x1a04c3,_0x483afa,_0x25856a?_0x4f6297[_0x58d1d5(0x1d7)][_0x25856a]:void 0x0,_0x3e73b7,!0x0,Li(_0x4f6297['colView'][_0x58d1d5(0x247)][_0x483afa]),_0x58d1d5(0x1e3)+_0x1a04c3+':'+_0x483afa);}if(_0x247160<_0x2b3611){var _0x23b19b;let _0x4ef877=_0x1a04c3-_0x185c49,_0x158859=(_0x23b19b=_0x4f6297['rowView'][_0x58d1d5(0x34f)][_0x247160])==null?void 0x0:_0x23b19b['tableFieldId'];return Pi(_0x4f6297[_0x58d1d5(0x1a8)],_0x4ef877,_0x247160,_0x158859?_0x4f6297[_0x58d1d5(0x1d7)][_0x158859]:void 0x0,_0x3e73b7,!0x0,Li(_0x4f6297['rowView'][_0x58d1d5(0x247)][_0x4ef877]),'row:'+_0x4ef877+':'+_0x247160);}let _0x42d219=_0x1a04c3-_0x185c49,_0x5538d5=_0x247160-_0x2b3611,_0x3b36a2=Math[_0x58d1d5(0x399)](((_0x1f1341=_0x4f6297[_0x58d1d5(0x1a8)][_0x58d1d5(0x247)][_0x42d219])==null?void 0x0:_0x1f1341[_0x58d1d5(0x3cc)])??-0x1,((_0x11d00a=_0x4f6297[_0x58d1d5(0x44d)]['info'][_0x5538d5])==null?void 0x0:_0x11d00a[_0x58d1d5(0x3cc)])??-0x1),_0x326288=_0x2ff28a[_0x58d1d5(0x167)][_0x3b36a2<0x0?0x0:_0x3b36a2];return Pi(_0x4f6297[_0x58d1d5(0x393)],_0x42d219,_0x5538d5,_0x326288?_0x4f6297[_0x58d1d5(0x1d7)][_0x326288]:void 0x0,_0x3e73b7,!0x1,Li(_0x4f6297['rowView'][_0x58d1d5(0x247)][_0x42d219])||Li(_0x4f6297[_0x58d1d5(0x44d)]['info'][_0x5538d5]),_0x58d1d5(0x310)+_0x42d219+':'+_0x5538d5);}));return{'headerColumnCount':_0x2b3611,'headerRowCount':_0x185c49,'pageRows':_0x4f6297[_0x2015ce(0x182)][_0x2015ce(0x389)]<0x0||_0x4f6297[_0x2015ce(0x182)][_0x2015ce(0x3a1)]<0x0?[]:Array['from']({'length':_0x4f6297[_0x2015ce(0x182)][_0x2015ce(0x389)]+0x1},(_0x4084af,_0x3925fb)=>Array[_0x2015ce(0x2ba)]({'length':_0x4f6297['pageView'][_0x2015ce(0x3a1)]+0x1},(_0x166816,_0x9aae74)=>Pi(_0x4f6297[_0x2015ce(0x182)],_0x3925fb,_0x9aae74,void 0x0,_0x3e73b7,!0x0,!0x1,_0x2015ce(0x381)+_0x3925fb+':'+_0x9aae74))),'rows':_0x4cbfae};}function Ni(_0x3d7e2a){const _0x13bbba=_0x290871;return _0x3d7e2a[_0x13bbba(0x3a8)](_0x12d728=>{const _0x5577f8=_0x13bbba;var _0x437d2c;return _0x414ebe('tr',{'children':_0x12d728[_0x5577f8(0x3a8)](_0x64b049=>{const _0x581a08=_0x5577f8;let _0xe88f92=_0x64b049[_0x581a08(0x34a)]?'th':'td';return _0x414ebe(_0xe88f92,{'className':_0x581a08(0x2fd)+(_0x64b049['isTotal']?_0x581a08(0x13d):'')+_0x581a08(0x487)+(_0x64b049[_0x581a08(0x34a)]?'':_0x581a08(0x2c4))+_0x581a08(0x21a),'children':_0x64b049[_0x581a08(0x1c2)]},_0x64b049['key']);})},(_0x437d2c=_0x12d728[0x0])==null?void 0x0:_0x437d2c[_0x5577f8(0x29d)]);});}function Pi(_0x57ccab,_0x51b4b2,_0x240e86,_0xb6d521,_0x567e9e,_0x3acf02,_0x27fd7d,_0x2e089f){const _0x1412fb=_0x290871;var _0x296f1c;let _0x313d73=(_0x296f1c=_0x57ccab['data'][_0x51b4b2])==null?void 0x0:_0x296f1c[_0x240e86],_0x2a01a4=_0x313d73==null?void 0x0:_0x313d73['s'],_0xe75dc9=_0x27fd7d||_0x2a01a4===_0x57b037[_0x1412fb(0x328)]||_0x2a01a4===_0x57b037[_0x1412fb(0x1ad)];return{'isHeader':_0x3acf02,'isTotal':_0xe75dc9||_0x2a01a4===_0x57b037[_0x1412fb(0x3d3)],'key':_0x2e089f,'style':_0x2a01a4,'value':_0xe75dc9&&Ii(_0x313d73==null?void 0x0:_0x313d73['v'])?_0x567e9e:Fi(_0x313d73,_0xb6d521)};}function Fi(_0xfe4ec0,_0x2d4efb){const _0x353100=_0x290871;let _0x47bef9=_0xfe4ec0==null?void 0x0:_0xfe4ec0['v'];return _0x2a61e8(_0x47bef9)?String(_0x47bef9[_0x353100(0x1c2)]??_0x47bef9['prefix']??''):_0xb054a9(_0x47bef9)?'#'+_0x47bef9['errorType']:_0x2d4efb&&typeof _0x47bef9==_0x353100(0x475)?_0x488061[_0x353100(0x30f)](_0x2d4efb,_0x47bef9):String(_0x47bef9??'');}function Ii(_0x303fb7){return _0x303fb7===void 0x0||_0x303fb7==='';}function Li(_0x282427){const _0x48a540=_0x290871;return!!(_0x282427!=null&&_0x282427[_0x48a540(0x2aa)]||_0x282427!=null&&_0x282427[_0x48a540(0x353)]||_0x282427!=null&&_0x282427[_0x48a540(0x176)]||(_0x282427==null?void 0x0:_0x282427[_0x48a540(0x14d)])===_0x48a540(0x386));}const Ri=[{'area':_0x1b52e3[_0x290871(0x40c)],'key':_0x290871(0x245),'label':_0x290871(0x418)},{'area':_0x1b52e3[_0x290871(0x356)],'key':_0x290871(0x18d),'label':'bases-dashboard-ui.pivot.columns'},{'area':_0x1b52e3[_0x290871(0x1c8)],'key':_0x290871(0x281),'label':_0x290871(0x41f)},{'area':_0x1b52e3[_0x290871(0x19f)],'key':_0x290871(0x167),'label':_0x290871(0x3e8)}],zi=[{'value':_0x358af4[_0x290871(0x2d0)],'localeKey':'bases-dashboard-ui.pivot.sum'},{'value':_0x358af4[_0x290871(0x2a7)],'localeKey':_0x290871(0x24d)},{'value':_0x358af4['countNums'],'localeKey':_0x290871(0x2d4)},{'value':_0x358af4[_0x290871(0x1db)],'localeKey':_0x290871(0x24c)},{'value':_0x358af4[_0x290871(0x399)],'localeKey':_0x290871(0x2a9)},{'value':_0x358af4[_0x290871(0x459)],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x358af4['product'],'localeKey':'bases-dashboard-ui.pivot.product'},{'value':_0x358af4[_0x290871(0x367)],'localeKey':_0x290871(0x17a)},{'value':_0x358af4[_0x290871(0x21f)],'localeKey':_0x290871(0x295)},{'value':_0x358af4[_0x290871(0x1fe)],'localeKey':_0x290871(0x203)},{'value':_0x358af4[_0x290871(0x156)],'localeKey':_0x290871(0x321)}];function Bi(_0x84a526){const _0x1a719e=_0x290871;let {config:_0x2031cc,onChange:_0x4eb225,table:_0x2ccd29}=_0x84a526,_0x32e43f=_0xe276a8(_0x4b0f72),[_0x26fb95,_0x3a68e4]=_0x3f626c(_0x1a719e(0x345)),[_0x3f79b8,_0x5b766a]=_0x3f626c(''),[_0x528048,_0x16dc56]=_0x3f626c(null),[_0x242942,_0x5e6d43]=_0x3f626c(null),[_0xca9927,_0x3625df]=_0x3f626c(null),[_0x55a7bb,_0x3bb537]=_0x3f626c(null),_0x4c2f21=_0x3987b(null),_0x252893=_0x50478e(()=>_0x2ccd29['fieldOrder'][_0x1a719e(0x2af)](_0x3dda3c=>{const _0x2b5cdc=_0x1a719e;let _0x36f821=_0x2ccd29[_0x2b5cdc(0x345)][_0x3dda3c];return _0x36f821&&_0x36f821[_0x2b5cdc(0x266)]!==!0x0&&_0x36f821[_0x2b5cdc(0x183)]!==_0x5e006f[_0x2b5cdc(0x41d)]?[_0x36f821]:[];})[_0x1a719e(0x42d)](_0xd8f896=>_0xd8f896['name'][_0x1a719e(0x3da)]()[_0x1a719e(0x424)](_0x3f79b8['trim']()['toLocaleLowerCase']())),[_0x3f79b8,_0x2ccd29]),_0x55f162=_0x2e1af1=>{const _0x2f2df3=_0x1a719e;let _0x4b5303=_0x2abd9d(_0x2ccd29,_0x2031cc[_0x2f2df3(0x145)]);try{_0x2e1af1(_0x4b5303),_0x4eb225({'pivot':_0x4b5303['toJSON']()});}finally{_0x4b5303[_0x2f2df3(0x470)]();}},_0x3785d4=(_0x125714,_0x594bd9)=>{_0x528048&&(_0x55f162(_0xef3b6c=>{const _0xa8929b=_0x29b7;if(_0x528048[_0xa8929b(0x3f2)]==='field'){let _0x1af989=_0xef3b6c[_0xa8929b(0x325)](_0x528048['id']),_0x382c4e=_0x1af989[_0xa8929b(0x225)]===_0x125714&&_0x1af989[_0xa8929b(0x23e)]<_0x594bd9?_0x594bd9-0x1:_0x594bd9;_0xef3b6c['updateFieldPosition'](_0x528048['id'],_0x125714,_0x382c4e);}else Ji(_0xef3b6c,_0x528048['id'],_0x125714,_0x594bd9);}),_0x16dc56(null),_0x5e6d43(null));};return _0x3c00a1('div',{'className':_0x1a719e(0x142),'children':[_0x414ebe(_0xbfe45a,{'ariaLabel':_0x32e43f['t'](_0x1a719e(0x165)),'className':'univer-shrink-0\x20univer-px-4','items':[{'label':_0x32e43f['t'](_0x1a719e(0x489)),'panelId':_0x1a719e(0x456),'value':_0x1a719e(0x345)},{'label':_0x32e43f['t'](_0x1a719e(0x3b4)),'panelId':_0x1a719e(0x157),'value':'options'}],'value':_0x26fb95,'onChange':_0x3a68e4}),_0x414ebe(_0x1a719e(0x384),{'ref':_0x4c2f21,'className':_0x2c3136('univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3',_0x443bf8),'onDragOver':_0x34743c=>{const _0x59a1fb=_0x1a719e;let _0x4645a5=_0x4c2f21[_0x59a1fb(0x2e7)];if(!_0x4645a5)return;let _0xc52716=_0x4645a5['getBoundingClientRect']();_0x34743c[_0x59a1fb(0x396)]<_0xc52716[_0x59a1fb(0x392)]+0x30?_0x4645a5[_0x59a1fb(0x17d)]-=0x10:_0x34743c[_0x59a1fb(0x396)]>_0xc52716['bottom']-0x30&&(_0x4645a5['scrollTop']+=0x10);},'children':_0x26fb95===_0x1a719e(0x209)?_0x414ebe(qi,{'config':_0x2031cc,'commit':_0x55f162}):_0x3c00a1(_0x1a719e(0x384),{'className':_0x1a719e(0x214),'children':[_0x3c00a1('div',{'children':[_0x414ebe(_0x1a719e(0x384),{'className':_0x1a719e(0x41b),'children':_0x32e43f['t'](_0x1a719e(0x43e))}),_0x414ebe(_0x448a93,{'allowClear':!0x0,'slot':_0x414ebe(_0x282ad6,{}),'value':_0x3f79b8,'placeholder':_0x32e43f['t'](_0x1a719e(0x417)),'onChange':_0x5b766a,'size':_0x1a719e(0x231)}),_0x414ebe(_0x1a719e(0x384),{'className':'univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','children':_0x252893[_0x1a719e(0x3a8)](_0x271b82=>_0x414ebe(Vi,{'config':_0x2031cc,'field':_0x271b82,'onAdd':_0x4c4a7f=>_0x55f162(_0x3f4e5a=>Ji(_0x3f4e5a,_0x271b82['id'],_0x4c4a7f,_0x3f4e5a[_0x1a719e(0x3a7)](_0x4c4a7f))),'onCheckedChange':_0x49af29=>_0x55f162(_0x444ae6=>{const _0xfb42dc=_0x1a719e;let _0x2a4426=_0x444ae6['getTableFieldsByDataFieldId'](_0x271b82['id']);if(!_0x49af29)_0x2a4426[_0xfb42dc(0x24e)](_0x5d238c=>_0x444ae6[_0xfb42dc(0x17b)](_0x5d238c[_0xfb42dc(0x378)]()));else{if(_0x2a4426[_0xfb42dc(0x151)]===0x0){let _0x3ece8=Xi(_0x271b82)?_0x1b52e3['Value']:_0x1b52e3[_0xfb42dc(0x1c8)];_0x444ae6[_0xfb42dc(0x229)](_0x271b82['id'],_0x3ece8);}}}),'onDragStart':()=>_0x16dc56({'kind':_0x1a719e(0x237),'id':_0x271b82['id']})},_0x271b82['id']))})]}),_0x414ebe('div',{'className':_0x1a719e(0x1ff),'children':Ri['map'](_0x5f4480=>_0x414ebe(Ui,{'area':_0x5f4480[_0x1a719e(0x225)],'dropTarget':_0x242942,'fields':_0x2031cc[_0x1a719e(0x145)][_0x5f4480[_0x1a719e(0x29d)]],'label':_0x32e43f['t'](_0x5f4480[_0x1a719e(0x1e5)]),'snapshot':_0x2031cc[_0x1a719e(0x145)],'onDragEnd':()=>{_0x16dc56(null),_0x5e6d43(null);},'onDragStart':_0x348ae9=>_0x16dc56({'kind':_0x1a719e(0x2db),'id':_0x348ae9,'area':_0x5f4480[_0x1a719e(0x225)]}),'onDragOver':_0x2e32d0=>_0x5e6d43({'area':_0x5f4480[_0x1a719e(0x225)],'index':_0x2e32d0}),'onDrop':_0x44edd3=>_0x3785d4(_0x5f4480[_0x1a719e(0x225)],_0x44edd3),'onFilter':_0x3625df,'onMove':(_0x3e73e9,_0x100fd7,_0x15fbce)=>_0x55f162(_0x5adb3d=>_0x5adb3d['updateFieldPosition'](_0x3e73e9,_0x100fd7,_0x15fbce)),'onRemove':_0x156c6b=>_0x55f162(_0x3d0903=>_0x3d0903[_0x1a719e(0x17b)](_0x156c6b)),'onSettings':_0x3bb537},_0x5f4480[_0x1a719e(0x225)]))}),_0xca9927&&_0x414ebe(Gi,{'fieldId':_0xca9927,'snapshot':_0x2031cc[_0x1a719e(0x145)],'table':_0x2ccd29,'onCancel':()=>_0x3625df(null),'onCommit':(_0x4b7ef6,_0x2c2fa3)=>{_0x55f162(_0x4dfca0=>{const _0x54ad85=_0x29b7;let _0x13a6dd=_0x4dfca0[_0x54ad85(0x1b6)](_0xca9927),_0x147f78=(_0x13a6dd==null?void 0x0:_0x13a6dd[_0x54ad85(0x184)])??[];_0x4dfca0[_0x54ad85(0x44e)](_0xca9927,{'type':_0x101c58[_0x54ad85(0x42a)],'list':_0x4b7ef6,'isAll':_0x4b7ef6[_0x54ad85(0x151)]===_0x147f78['length']}),_0x4dfca0[_0x54ad85(0x1ea)](_0xca9927,_0x2c2fa3===void 0x0?void 0x0:{'type':_0x2c2fa3});}),_0x3625df(null);}},_0xca9927),_0x55a7bb&&_0x414ebe(Ki,{'field':_0x2031cc[_0x1a719e(0x145)][_0x1a719e(0x33a)][_0x55a7bb],'onCancel':()=>_0x3bb537(null),'onCommit':(_0x1fd0fd,_0x2f1378,_0x4c27e1)=>{_0x55f162(_0x22f8eb=>{const _0x2c175a=_0x29b7;_0x22f8eb['renameField'](_0x55a7bb,_0x1fd0fd),_0x22f8eb[_0x2c175a(0x3c9)](_0x55a7bb,_0x2f1378),_0x22f8eb['setFieldFormat'](_0x55a7bb,_0x4c27e1||void 0x0);}),_0x3bb537(null);}},_0x55a7bb)]})})]});}function Vi(_0x122898){const _0x345b86=_0x290871;let {config:_0x410531,field:_0x2cdede,onAdd:_0x3caa85,onCheckedChange:_0x431e0e,onDragStart:_0x30c901}=_0x122898,_0x44a3fe=_0xe276a8(_0x4b0f72),_0xe36868=[...Object[_0x345b86(0x1ef)](_0x410531[_0x345b86(0x145)][_0x345b86(0x349)]),...Object['values'](_0x410531['pivot'][_0x345b86(0x33a)])][_0x345b86(0x331)](_0x36c641=>_0x36c641['dataFieldId']===_0x2cdede['id']),_0x1c6d92=Ri[_0x345b86(0x3a8)](_0x18378e=>({'type':_0x345b86(0x3de),'children':_0x44a3fe['t'](Zi(_0x18378e[_0x345b86(0x225)])),'onSelect':()=>_0x3caa85(_0x18378e[_0x345b86(0x225)])}));return _0x3c00a1(_0x345b86(0x384),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x345b86(0x3dd),'onDragStart':_0x30c901,'children':[_0x414ebe(_0x283511,{'checked':_0xe36868,'onChange':_0x1922a7=>_0x431e0e(!!_0x1922a7)}),_0x414ebe(Hi,{'field':_0x2cdede}),_0x414ebe('span',{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x2cdede[_0x345b86(0x2a3)]}),_0x414ebe(Xr,{'align':_0x345b86(0x375),'items':_0x1c6d92,'children':_0x414ebe(_0x5d2b24,{'variant':_0x345b86(0x476),'aria-label':_0x44a3fe['t'](_0x345b86(0x276)),'size':_0x345b86(0x45d),'children':_0x414ebe(_0xed8c69,{})})})]});}function Hi({field:_0x13ca83}){const _0x2bcc6d=_0x290871;return Xi(_0x13ca83)?_0x414ebe(_0x15cd07,{'className':'univer-text-gray-400'}):_0x13ca83[_0x2bcc6d(0x183)]===_0x5e006f[_0x2bcc6d(0x28d)]||_0x13ca83['type']===_0x5e006f[_0x2bcc6d(0x2e5)]||_0x13ca83[_0x2bcc6d(0x183)]===_0x5e006f[_0x2bcc6d(0x371)]?_0x414ebe(_0x2ac587,{'className':_0x2bcc6d(0x27e)}):_0x414ebe(_0x277b88,{'className':'univer-text-gray-400'});}function Ui(_0x251d43){const _0x368ee6=_0x290871;let {area:_0x20dabc,dropTarget:_0x418e05,fields:_0x2773e3,label:_0x3b7937,snapshot:_0x188397}=_0x251d43,_0x4c5f02=_0xe276a8(_0x4b0f72);return _0x3c00a1(_0x368ee6(0x1ab),{'className':_0x2c3136(_0x368ee6(0x404),_0x434c98),'onDragOver':_0xbdfc44=>{const _0x1a050f=_0x368ee6;_0xbdfc44[_0x1a050f(0x32d)](),_0x251d43[_0x1a050f(0x318)](_0x2773e3[_0x1a050f(0x151)]);},'onDrop':_0x5b89f4=>{const _0xbdf12e=_0x368ee6;_0x5b89f4[_0xbdf12e(0x32d)](),_0x251d43[_0xbdf12e(0x311)]((_0x418e05==null?void 0x0:_0x418e05[_0xbdf12e(0x225)])===_0x20dabc?_0x418e05['index']:_0x2773e3[_0xbdf12e(0x151)]);},'children':[_0x414ebe(_0x368ee6(0x384),{'className':_0x368ee6(0x1c4),'children':_0x3b7937}),_0x3c00a1(_0x368ee6(0x384),{'className':'univer-flex\x20univer-flex-col','children':[_0x2773e3[_0x368ee6(0x3a8)]((_0x3aaf51,_0x46c6ab)=>{const _0x454df4=_0x368ee6;let _0x4cc05c=_0x188397['dimension'][_0x3aaf51]??_0x188397[_0x454df4(0x33a)][_0x3aaf51];if(!_0x4cc05c)return null;let _0x489e79=(_0x418e05==null?void 0x0:_0x418e05[_0x454df4(0x225)])===_0x20dabc&&_0x418e05[_0x454df4(0x23e)]===_0x46c6ab;return _0x3c00a1(_0x454df4(0x384),{'onDragOver':_0x3121b2=>{const _0xd3cc74=_0x454df4;_0x3121b2[_0xd3cc74(0x32d)](),_0x3121b2[_0xd3cc74(0x442)]();let _0x2081c7=_0x3121b2[_0xd3cc74(0x36e)]['getBoundingClientRect']();_0x251d43[_0xd3cc74(0x318)](_0x46c6ab+ +(_0x3121b2[_0xd3cc74(0x396)]>_0x2081c7[_0xd3cc74(0x392)]+_0x2081c7[_0xd3cc74(0x45c)]/0x2));},'onDrop':_0x58be9b=>{const _0x11b006=_0x454df4;_0x58be9b[_0x11b006(0x32d)](),_0x58be9b[_0x11b006(0x442)](),_0x251d43[_0x11b006(0x311)]((_0x418e05==null?void 0x0:_0x418e05[_0x11b006(0x225)])===_0x20dabc?_0x418e05[_0x11b006(0x23e)]:_0x46c6ab);},'children':[_0x489e79&&_0x414ebe(_0x454df4(0x384),{'className':_0x454df4(0x1be)}),_0x414ebe(Wi,{'area':_0x20dabc,'field':_0x4cc05c,'onDragEnd':_0x251d43[_0x454df4(0x3c4)],'onDragStart':()=>_0x251d43[_0x454df4(0x466)](_0x3aaf51),'onFilter':()=>_0x251d43[_0x454df4(0x33e)](_0x3aaf51),'onMove':_0x251b65=>_0x251d43[_0x454df4(0x47c)](_0x3aaf51,_0x251b65,0x0),'onMoveUp':_0x46c6ab>0x0?()=>_0x251d43[_0x454df4(0x47c)](_0x3aaf51,_0x20dabc,_0x46c6ab-0x1):void 0x0,'onMoveDown':_0x46c6ab<_0x2773e3[_0x454df4(0x151)]-0x1?()=>_0x251d43[_0x454df4(0x47c)](_0x3aaf51,_0x20dabc,_0x46c6ab+0x1):void 0x0,'onRemove':()=>_0x251d43[_0x454df4(0x2d2)](_0x3aaf51),'onSettings':()=>_0x251d43[_0x454df4(0x36f)](_0x3aaf51)})]},_0x3aaf51);}),(_0x418e05==null?void 0x0:_0x418e05[_0x368ee6(0x225)])===_0x20dabc&&_0x418e05[_0x368ee6(0x23e)]===_0x2773e3['length']&&_0x414ebe(_0x368ee6(0x384),{'className':_0x368ee6(0x1be)}),_0x2773e3[_0x368ee6(0x151)]===0x0&&_0x414ebe('div',{'className':_0x368ee6(0x178),'children':_0x4c5f02['t'](_0x368ee6(0x43e))})]})]});}function Wi(_0x2e8f4e){const _0x5f1a83=_0x290871;let _0x267f34=_0xe276a8(_0x4b0f72),_0x25fe5c=_0x2e8f4e['area']===_0x1b52e3[_0x5f1a83(0x19f)],_0x1886bd=[...Ri[_0x5f1a83(0x42d)](_0x186218=>_0x186218[_0x5f1a83(0x225)]!==_0x2e8f4e[_0x5f1a83(0x225)])['map'](_0x218c45=>({'type':_0x5f1a83(0x3de),'children':_0x267f34['t'](Zi(_0x218c45['area'])),'onSelect':()=>_0x2e8f4e[_0x5f1a83(0x47c)](_0x218c45[_0x5f1a83(0x225)])})),..._0x2e8f4e['onMoveUp']?[{'type':_0x5f1a83(0x3de),'children':_0x267f34['t'](_0x5f1a83(0x2eb)),'onSelect':_0x2e8f4e['onMoveUp']}]:[],..._0x2e8f4e[_0x5f1a83(0x2fe)]?[{'type':_0x5f1a83(0x3de),'children':_0x267f34['t'](_0x5f1a83(0x2d5)),'onSelect':_0x2e8f4e['onMoveDown']}]:[],{'type':_0x5f1a83(0x3de),'children':_0x267f34['t'](_0x5f1a83(0x287)),'onSelect':_0x2e8f4e[_0x5f1a83(0x2d2)]},{'type':_0x5f1a83(0x3de),'children':_0x267f34['t'](_0x25fe5c?_0x5f1a83(0x276):_0x5f1a83(0x190)),'onSelect':_0x25fe5c?_0x2e8f4e[_0x5f1a83(0x36f)]:_0x2e8f4e[_0x5f1a83(0x33e)]}];return _0x3c00a1('div',{'draggable':!0x1,'style':{'minHeight':0x30},'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':_0x2e8f4e[_0x5f1a83(0x3c4)],'onDragStart':_0x2e8f4e['onDragStart'],'children':[_0x414ebe(_0x9a071a,{'title':_0x2e8f4e[_0x5f1a83(0x2db)]['displayName'],'children':_0x414ebe(_0x5f1a83(0x415),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x2e8f4e['field'][_0x5f1a83(0x230)]})}),_0x414ebe(Xr,{'align':_0x5f1a83(0x375),'items':_0x1886bd,'children':_0x414ebe(_0x5d2b24,{'variant':_0x5f1a83(0x476),'aria-label':_0x267f34['t'](_0x5f1a83(0x276)),'size':_0x5f1a83(0x45d),'children':_0x414ebe(_0xed8c69,{})})})]});}function Gi(_0x13479e){const _0x29c8ae=_0x290871;var _0x288d34,_0x54b6ab;let _0xe5b94=_0xe276a8(_0x4b0f72),{format:_0x4ad501,items:_0x44073d,itemTypes:_0x4cbc50}=_0x50478e(()=>{const _0x53caf9=_0x29b7;let _0x3e432e=_0x2abd9d(_0x13479e[_0x53caf9(0x363)],_0x13479e['snapshot']);try{let _0x2f25c8=_0x3e432e[_0x53caf9(0x1b6)](_0x13479e['fieldId']);return{'format':_0x2f25c8==null?void 0x0:_0x2f25c8['format'],'items':[...(_0x2f25c8==null?void 0x0:_0x2f25c8[_0x53caf9(0x184)])??[]],'itemTypes':[...(_0x2f25c8==null?void 0x0:_0x2f25c8['itemTypes'])??[]]};}finally{_0x3e432e[_0x53caf9(0x470)]();}},[_0x13479e[_0x29c8ae(0x48a)],_0x13479e[_0x29c8ae(0x1af)],_0x13479e[_0x29c8ae(0x363)]]),_0x761d1c=(_0x288d34=_0x13479e['snapshot']['dimension'][_0x13479e['fieldId']])==null?void 0x0:_0x288d34[_0x29c8ae(0x445)],[_0x2c3c89,_0x1949d1]=_0x3f626c((_0x761d1c==null?void 0x0:_0x761d1c[_0x29c8ae(0x183)])===_0x101c58[_0x29c8ae(0x42a)]?_0x761d1c[_0x29c8ae(0x277)]:_0x44073d),[_0x1adb9c,_0x11ba3f]=_0x3f626c((_0x54b6ab=_0x13479e[_0x29c8ae(0x1af)]['dimension'][_0x13479e[_0x29c8ae(0x48a)]])==null||(_0x54b6ab=_0x54b6ab[_0x29c8ae(0x36a)])==null?void 0x0:_0x54b6ab[_0x29c8ae(0x183)]),_0x2ff674=_0x2c3c89[_0x29c8ae(0x151)]===_0x44073d[_0x29c8ae(0x151)],_0x586b9f=_0x3c00a1(_0x29c8ae(0x1ab),{'className':_0x2c3136(_0x29c8ae(0x2a1),_0x434c98),'children':[_0x414ebe('div',{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0xe5b94['t'](_0x29c8ae(0x190))}),_0x3c00a1(_0x29c8ae(0x384),{'className':_0x29c8ae(0x485),'children':[_0x3c00a1(_0x5d2b24,{'className':'univer-flex-1','variant':_0x1adb9c===_0x34bdeb[_0x29c8ae(0x26c)]?_0x29c8ae(0x2c1):'default','onClick':()=>_0x11ba3f(_0x34bdeb[_0x29c8ae(0x26c)]),'size':'middle','children':[_0x414ebe(_0x16058f,{}),_0xe5b94['t'](_0x29c8ae(0x3db))]}),_0x3c00a1(_0x5d2b24,{'className':'univer-flex-1','variant':_0x1adb9c===_0x34bdeb['descending']?_0x29c8ae(0x2c1):_0x29c8ae(0x22e),'onClick':()=>_0x11ba3f(_0x34bdeb[_0x29c8ae(0x1cb)]),'size':_0x29c8ae(0x45d),'children':[_0x414ebe(_0x39dc4f,{}),_0xe5b94['t']('bases-dashboard-ui.pivot.descending')]})]}),_0x3c00a1('div',{'className':_0x29c8ae(0x31a),'children':[_0x3c00a1(_0x29c8ae(0x1e5),{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x414ebe(_0x283511,{'checked':_0x2ff674,'indeterminate':_0x2c3c89[_0x29c8ae(0x151)]>0x0&&!_0x2ff674,'onChange':()=>_0x1949d1(_0x2ff674?[]:_0x44073d)}),_0xe5b94['t']('bases-dashboard-ui.pivot.selectAll')]}),_0x44073d[_0x29c8ae(0x3a8)]((_0x52f2d0,_0x110a40)=>_0x3c00a1(_0x29c8ae(0x1e5),{'className':_0x29c8ae(0x223),'children':[_0x414ebe(_0x283511,{'checked':_0x2c3c89[_0x29c8ae(0x424)](_0x52f2d0),'onChange':()=>_0x1949d1(_0x5c46f0=>_0x5c46f0[_0x29c8ae(0x424)](_0x52f2d0)?_0x5c46f0[_0x29c8ae(0x42d)](_0x2f4a54=>_0x2f4a54!==_0x52f2d0):[..._0x5c46f0,_0x52f2d0])}),_0x414ebe(_0x29c8ae(0x415),{'className':_0x29c8ae(0x1cf),'children':Yi(_0x52f2d0,_0x4cbc50[_0x110a40],_0x4ad501,_0xe5b94['t']('bases-dashboard-ui.pivot.blank'))})]},_0x52f2d0))]}),_0x3c00a1(_0x29c8ae(0x384),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[_0x414ebe(_0x5d2b24,{'variant':_0x29c8ae(0x3f0),'onClick':()=>_0x13479e[_0x29c8ae(0x22a)](_0x44073d,_0x1adb9c),'size':'middle','children':_0xe5b94['t']('bases-dashboard-ui.pivot.clearFilter')}),_0x3c00a1(_0x29c8ae(0x384),{'className':_0x29c8ae(0x292),'children':[_0x414ebe(_0x5d2b24,{'onClick':_0x13479e[_0x29c8ae(0x252)],'size':_0x29c8ae(0x45d),'children':_0xe5b94['t'](_0x29c8ae(0x1da))}),_0x414ebe(_0x5d2b24,{'variant':_0x29c8ae(0x2c1),'disabled':_0x2c3c89[_0x29c8ae(0x151)]===0x0,'onClick':()=>_0x13479e[_0x29c8ae(0x22a)](_0x2c3c89,_0x1adb9c),'size':_0x29c8ae(0x45d),'children':_0xe5b94['t'](_0x29c8ae(0x236))})]})]})]});return _0x414ebe(_0x3da581,{'title':_0xe5b94['t'](_0x29c8ae(0x190)),'onClose':_0x13479e['onCancel'],'children':_0x586b9f});}function Ki(_0x27de02){const _0x97d67e=_0x290871;var _0x20f0c3,_0x294029,_0x54f3ee;let _0x3d2e5d=_0xe276a8(_0x4b0f72),[_0x28c8cb,_0x1928fe]=_0x3f626c(((_0x20f0c3=_0x27de02[_0x97d67e(0x2db)])==null?void 0x0:_0x20f0c3[_0x97d67e(0x230)])??''),[_0x53a9d2,_0xed9a80]=_0x3f626c(((_0x294029=_0x27de02[_0x97d67e(0x2db)])==null?void 0x0:_0x294029[_0x97d67e(0x299)])??_0x358af4[_0x97d67e(0x2d0)]),[_0x2f7962,_0x2d77c3]=_0x3f626c(((_0x54f3ee=_0x27de02['field'])==null?void 0x0:_0x54f3ee[_0x97d67e(0x30f)])??'');if(!_0x27de02[_0x97d67e(0x2db)])return null;let _0xffcc9f=_0x3c00a1(_0x97d67e(0x1ab),{'className':_0x2c3136(_0x97d67e(0x43a),_0x434c98),'children':[_0x414ebe('div',{'className':'univer-text-sm\x20univer-font-medium','children':_0x3d2e5d['t'](_0x97d67e(0x276))}),_0x3c00a1(_0x97d67e(0x1e5),{'className':_0x97d67e(0x3f6),'children':[_0x3d2e5d['t'](_0x97d67e(0x289)),_0x414ebe(_0x448a93,{'value':_0x28c8cb,'onChange':_0x1928fe,'size':'small'})]}),_0x3c00a1(_0x97d67e(0x1e5),{'className':_0x97d67e(0x3f6),'children':[_0x3d2e5d['t']('bases-dashboard-ui.pivot.summarizeBy'),_0x414ebe(Yr,{'value':String(_0x53a9d2),'options':zi[_0x97d67e(0x3a8)](_0x3e3d4e=>({'value':String(_0x3e3d4e[_0x97d67e(0x1c2)]),'label':_0x3d2e5d['t'](_0x3e3d4e[_0x97d67e(0x48b)])})),'onChange':_0x144130=>{const _0x284c0a=_0x97d67e;let _0x516b00=zi[_0x284c0a(0x47f)](_0x32a19c=>String(_0x32a19c['value'])===_0x144130);_0x516b00&&_0xed9a80(_0x516b00[_0x284c0a(0x1c2)]);}})]}),_0x3c00a1(_0x97d67e(0x1e5),{'className':_0x97d67e(0x3f6),'children':[_0x3d2e5d['t'](_0x97d67e(0x336)),_0x414ebe(_0x448a93,{'value':_0x2f7962,'onChange':_0x2d77c3,'size':'small'})]}),_0x3c00a1(_0x97d67e(0x384),{'className':_0x97d67e(0x391),'children':[_0x414ebe(_0x5d2b24,{'onClick':_0x27de02[_0x97d67e(0x252)],'size':_0x97d67e(0x45d),'children':_0x3d2e5d['t'](_0x97d67e(0x1da))}),_0x414ebe(_0x5d2b24,{'variant':_0x97d67e(0x2c1),'disabled':!_0x28c8cb[_0x97d67e(0x29a)](),'onClick':()=>_0x27de02[_0x97d67e(0x22a)](_0x28c8cb[_0x97d67e(0x29a)](),_0x53a9d2,_0x2f7962),'size':_0x97d67e(0x45d),'children':_0x3d2e5d['t'](_0x97d67e(0x236))})]})]});return _0x414ebe(_0x3da581,{'title':_0x3d2e5d['t'](_0x97d67e(0x276)),'onClose':_0x27de02[_0x97d67e(0x252)],'children':_0xffcc9f});}function qi(_0x37b0fd){const _0x39180a=_0x290871;let {config:_0x46d048,commit:_0x26e6dc}=_0x37b0fd,_0x459db8=_0xe276a8(_0x4b0f72),_0x57de59=_0x46d048['pivot'][_0x39180a(0x209)],_0x462e18=_0x1f68c7=>_0x26e6dc(_0x317149=>_0x317149[_0x39180a(0x3c5)]({..._0x317149['getOptions'](),..._0x1f68c7}));return _0x3c00a1(_0x39180a(0x384),{'className':_0x39180a(0x214),'children':[_0x3c00a1(_0x39180a(0x1e5),{'className':_0x39180a(0x463),'children':[_0x459db8['t'](_0x39180a(0x271)),_0x414ebe(Yr,{'className':_0x39180a(0x217),'value':String(_0x46d048[_0x39180a(0x145)][_0x39180a(0x2c7)]),'options':[{'value':String(_0x5c7745[_0x39180a(0x2e9)]),'label':_0x459db8['t'](_0x39180a(0x3f4))},{'value':String(_0x5c7745[_0x39180a(0x177)]),'label':_0x459db8['t'](_0x39180a(0x428))},{'value':String(_0x5c7745[_0x39180a(0x1d5)]),'label':_0x459db8['t'](_0x39180a(0x1f0))}],'onChange':_0x38a083=>{const _0x1c451f=_0x39180a;let _0x2b70ba=[_0x5c7745['tabular'],_0x5c7745[_0x1c451f(0x177)],_0x5c7745[_0x1c451f(0x1d5)]][_0x1c451f(0x47f)](_0x44fad0=>String(_0x44fad0)===_0x38a083);_0x2b70ba!==void 0x0&&_0x26e6dc(_0x48108c=>_0x48108c[_0x1c451f(0x359)](_0x2b70ba));}})]}),[{'key':_0x39180a(0x13b),'label':_0x39180a(0x3f1),'defaultValue':!0x1},{'key':'repeatColLabels','label':_0x39180a(0x48d),'defaultValue':!0x1},{'key':_0x39180a(0x2ad),'label':_0x39180a(0x2d3),'defaultValue':!0x0},{'key':_0x39180a(0x2bf),'label':'bases-dashboard-ui.pivot.showRowGrandTotal','defaultValue':!0x0},{'key':_0x39180a(0x448),'label':'bases-dashboard-ui.pivot.showColumnSubtotal','defaultValue':!0x0},{'key':_0x39180a(0x2bc),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}]['map'](_0x4c246f=>_0x3c00a1(_0x39180a(0x1e5),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x414ebe(_0x283511,{'checked':!!(_0x57de59[_0x4c246f[_0x39180a(0x29d)]]??_0x4c246f[_0x39180a(0x457)]),'disabled':_0x4c246f[_0x39180a(0x29d)]==='repeatRowLabels'&&_0x46d048[_0x39180a(0x145)][_0x39180a(0x2c7)]===_0x5c7745[_0x39180a(0x177)],'onChange':_0x2a82cf=>_0x462e18({[_0x4c246f[_0x39180a(0x29d)]]:!!_0x2a82cf})}),_0x459db8['t'](_0x4c246f[_0x39180a(0x1e5)])]},_0x4c246f[_0x39180a(0x29d)])),_0x46d048[_0x39180a(0x145)][_0x39180a(0x2c7)]===_0x5c7745[_0x39180a(0x1d5)]&&_0x3c00a1(_0x39180a(0x1e5),{'className':_0x39180a(0x463),'children':[_0x459db8['t'](_0x39180a(0x2f0)),_0x414ebe(Yr,{'className':'univer-w-36','value':String(_0x57de59['rowSubtotalPosition']??_0x1c5136[_0x39180a(0x392)]),'options':[{'value':String(_0x1c5136[_0x39180a(0x392)]),'label':_0x459db8['t'](_0x39180a(0x2c8))},{'value':String(_0x1c5136[_0x39180a(0x314)]),'label':_0x459db8['t'](_0x39180a(0x3e6))}],'onChange':_0x5ddb7a=>{const _0x32060c=_0x39180a;let _0x52d2e8=[_0x1c5136[_0x32060c(0x392)],_0x1c5136['bottom']][_0x32060c(0x47f)](_0x219d1f=>String(_0x219d1f)===_0x5ddb7a);_0x52d2e8!==void 0x0&&_0x462e18({'rowSubtotalPosition':_0x52d2e8});}})]}),_0x3c00a1(_0x39180a(0x1e5),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x459db8['t']('bases-dashboard-ui.pivot.valuePosition'),_0x414ebe(Yr,{'className':_0x39180a(0x217),'value':String(_0x46d048[_0x39180a(0x145)][_0x39180a(0x3ed)]===_0x3d12ff[_0x39180a(0x2d7)]?_0x3d12ff[_0x39180a(0x356)]:_0x46d048['pivot'][_0x39180a(0x3ed)]),'options':[{'value':String(_0x3d12ff[_0x39180a(0x356)]),'label':_0x459db8['t'](_0x39180a(0x204))},{'value':String(_0x3d12ff['Row']),'label':_0x459db8['t'](_0x39180a(0x41f))}],'onChange':_0x1f756d=>{const _0x523b62=_0x39180a;let _0x583cc2=[_0x3d12ff[_0x523b62(0x356)],_0x3d12ff[_0x523b62(0x1c8)]][_0x523b62(0x47f)](_0x5f30ba=>String(_0x5f30ba)===_0x1f756d);_0x583cc2!==void 0x0&&_0x26e6dc(_0x2aaaad=>_0x2aaaad[_0x523b62(0x2de)](_0x583cc2,_0x2aaaad[_0x523b62(0x194)]()<0x0?0x0:_0x2aaaad[_0x523b62(0x194)]()));}})]}),_0x3c00a1(_0x39180a(0x1e5),{'className':_0x39180a(0x463),'children':[_0x459db8['t']('bases-dashboard-ui.pivot.pageWrap'),_0x414ebe(_0x2963f5,{'className':_0x39180a(0x1d0),'min':0x1,'max':0x14,'value':_0x57de59[_0x39180a(0x401)]??0x1,'onChange':_0x38d655=>{let _0x4a3dd5=Number(_0x38d655);Number['isFinite'](_0x4a3dd5)&&_0x4a3dd5>=0x1&&_0x462e18({'pageWrap':_0x4a3dd5});},'size':_0x39180a(0x231),'controls':!0x1})]}),_0x3c00a1(_0x39180a(0x1e5),{'className':_0x39180a(0x463),'children':[_0x459db8['t'](_0x39180a(0x347)),_0x414ebe(Yr,{'className':_0x39180a(0x217),'value':String(_0x57de59['pageOverThenDown']??!0x1),'options':[{'value':'false','label':_0x459db8['t'](_0x39180a(0x3d9))},{'value':_0x39180a(0x2b6),'label':_0x459db8['t'](_0x39180a(0x3b8))}],'onChange':_0x2bcc27=>_0x462e18({'pageOverThenDown':_0x2bcc27===_0x39180a(0x2b6)})})]})]});}function Ji(_0x3a9725,_0x1336d7,_0x49d698,_0x133431){const _0x379bd3=_0x290871;let _0x3b822e=_0x3a9725[_0x379bd3(0x2c0)](_0x1336d7)[_0x379bd3(0x47f)](_0x1ca87a=>_0x3a9725[_0x379bd3(0x325)](_0x1ca87a[_0x379bd3(0x378)]())[_0x379bd3(0x225)]!==_0x1b52e3[_0x379bd3(0x19f)]);_0x49d698!==_0x1b52e3[_0x379bd3(0x19f)]&&_0x3b822e?_0x3a9725[_0x379bd3(0x46b)](_0x3b822e[_0x379bd3(0x378)](),_0x49d698,_0x133431):_0x3a9725[_0x379bd3(0x229)](_0x1336d7,_0x49d698,_0x133431);}function Yi(_0x37586a,_0x26da44,_0x56cefa,_0x2e9547){const _0x11ceaa=_0x290871;return _0x26da44===_0x3a56c2[_0x11ceaa(0x341)]?_0x2e9547:_0x26da44===_0x3a56c2[_0x11ceaa(0x1e6)]&&_0x56cefa?_0x488061['format'](_0x56cefa,Number(_0x37586a)):_0x37586a;}function Xi(_0x2667bc){const _0x561223=_0x290871;return _0x2667bc[_0x561223(0x183)]===_0x5e006f[_0x561223(0x196)]||_0x2667bc[_0x561223(0x183)]===_0x5e006f[_0x561223(0x3b6)]||_0x2667bc['type']===_0x5e006f['Progress']||_0x2667bc[_0x561223(0x183)]===_0x5e006f[_0x561223(0x39f)];}function Zi(_0x106e34){const _0x589b67=_0x290871;switch(_0x106e34){case _0x1b52e3[_0x589b67(0x1c8)]:return _0x589b67(0x2c5);case _0x1b52e3[_0x589b67(0x356)]:return'bases-dashboard-ui.pivot.addToColumn';case _0x1b52e3['Value']:return _0x589b67(0x1b0);default:return _0x589b67(0x308);}}function Qi({config:_0x5f4ab2,onChange:_0x1dfef2,runtime:_0x1493f6,table:_0x14f3b0}){const _0x402663=_0x290871;let _0x36c4da=_0xe276a8(_0x4b0f72),[_0xb3163,_0x3f50ce]=_0x3f626c(_0x402663(0x3a5));return _0x3c00a1(_0x402663(0x3dc),{'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':[_0x414ebe(_0xbfe45a,{'ariaLabel':_0x36c4da['t'](_0x402663(0x34b)),'className':'univer-mx-4\x20univer-mt-4\x20univer-shrink-0','items':[{'label':_0x36c4da['t']('bases-dashboard-ui.pivot.chartConfiguration'),'panelId':'base-pivot-chart-configuration','value':_0x402663(0x3a5)},{'label':_0x36c4da['t'](_0x402663(0x165)),'panelId':_0x402663(0x25c),'value':_0x402663(0x145)}],'value':_0xb3163,'onChange':_0x3f50ce}),_0x414ebe(_0x402663(0x384),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','children':_0xb3163===_0x402663(0x3a5)?_0x1493f6&&_0x414ebe(ei,{'config':_0x5f4ab2,'runtime':_0x1493f6,'tableName':_0x14f3b0[_0x402663(0x2a3)],'onChange':_0x1dfef2}):_0x414ebe(Bi,{'config':_0x5f4ab2,'table':_0x14f3b0,'onChange':_0x1dfef2})})]});}function $i({tableId:_0x4f5062,unitId:_0x39ef06,viewId:_0x1e8eac}){const _0x25d94e=_0x290871;let [_0x1e768b,_0x4797e8]=_0x3f626c(!0x1),_0x3a5932=_0xe276a8(_0x299365),_0xa2a7f3=_0xe276a8(_0x5abbf9),_0x3fb617=_0xe276a8(_0x104d80),_0x4713eb=_0xe276a8(_0x4b0f72),_0x219ec7=_0xe276a8(_0xcfb712),[_0x19d3a1,_0x1711be]=_0x3f626c(null),[_0x4e0025,_0x200f5d]=_0x3f626c(null),_0x2b3c26=_0x3987b(_0x25d94e(0x26d)+_0x89ef13(0x8)),[_0x233c40,_0x202f56]=_0x3f626c(!0x1),_0x4660c9=_0xa2a7f3['getUnit'](_0x39ef06,_0x1516ee[_0x25d94e(0x3c2)]),_0x588f09=_0x4660c9==null?void 0x0:_0x4660c9['getSnapshot']()['tables'][_0x4f5062],_0x52406d=_0x588f09==null?void 0x0:_0x588f09[_0x25d94e(0x483)][_0x1e8eac],_0xa50aee=ea(_0x52406d),_0x159ecc=yr(_0x39ef06,_0x4f5062,_0x1e8eac);if(_0x330c05(()=>{const _0x3658c9=_0x25d94e;if(!_0xa50aee)return;let _0x2878f4=_0x2b3c26[_0x3658c9(0x2e7)];return _0x219ec7[_0x3658c9(0x1e8)](_0x2878f4,{'unitId':_0x39ef06,'tableId':_0x4f5062,'viewId':_0x1e8eac,'filters':[]}),()=>{const _0x1110c1=_0x3658c9;_0x219ec7[_0x1110c1(0x15c)](_0x39ef06,_0x2878f4);};},[_0xa50aee,_0x219ec7,_0x4f5062,_0x39ef06,_0x1e8eac]),_0x330c05(()=>{const _0x1c7b4b=_0x25d94e;if(!ea(_0x52406d))return;let _0x4c0d6c=!0x0,_0x1e32a2={'unitId':_0x39ef06,'tableId':_0x4f5062,'viewId':_0x1e8eac,'filters':[_0x52406d[_0x1c7b4b(0x42d)]??null]};return _0x219ec7[_0x1c7b4b(0x3d1)](_0x39ef06,_0x2b3c26[_0x1c7b4b(0x2e7)],_0x1e32a2)['then'](_0x4f0c84=>{const _0x295e07=_0x1c7b4b;_0x4c0d6c&&_0x4f0c84&&(_0x1711be(_0x4f0c84),_0x200f5d(_0x219ec7[_0x295e07(0x3fb)](_0x39ef06,_0x2b3c26[_0x295e07(0x2e7)])??null),_0x202f56(!0x1));})[_0x1c7b4b(0x147)](_0x232a00=>{const _0x366f14=_0x1c7b4b;_0x3fb617[_0x366f14(0x198)]('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x232a00),_0x4c0d6c&&(_0x1711be(null),_0x202f56(!0x0));}),()=>{_0x4c0d6c=!0x1;};},[_0x3fb617,_0x219ec7,_0x4f5062,_0x39ef06,_0x52406d,_0x1e8eac]),!_0x588f09||!ea(_0x52406d))return null;let _0xc1a8c5=_0x219ec7[_0x25d94e(0x3fb)](_0x39ef06,_0x2b3c26[_0x25d94e(0x2e7)])===_0x4e0025?_0x4e0025:null,_0x1296ff=_0x19d3a1?_0x3c00a1(_0x25d94e(0x384),{'className':_0x25d94e(0x2cc),'style':{'gridTemplateRows':_0x52406d[_0x25d94e(0x193)][_0x25d94e(0x3f8)]===_0x25d94e(0x438)?'minmax(0,\x203fr)\x20minmax(0,\x202fr)':_0x25d94e(0x3e9)},'children':[_0x52406d['config'][_0x25d94e(0x3f8)]!==_0x25d94e(0x363)&&_0xc1a8c5&&_0x414ebe(_0x25d94e(0x384),{'className':_0x25d94e(0x14f),'children':_0x414ebe(Rr,{'isRowDirection':_0x52d288(_0x52406d[_0x25d94e(0x193)][_0x25d94e(0x3a5)][_0x25d94e(0x3b2)]),'runtime':_0xc1a8c5})}),_0x52406d['config'][_0x25d94e(0x3f8)]!=='chart'&&_0x414ebe(_0x25d94e(0x384),{'className':'univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':_0x414ebe(ji,{'pivot':_0x52406d[_0x25d94e(0x193)][_0x25d94e(0x145)],'view':_0x19d3a1[_0x25d94e(0x141)]})})]}):_0x414ebe(_0x25d94e(0x384),{'className':_0x25d94e(0x2b5),'children':_0x233c40?_0x4713eb['t'](_0x25d94e(0x32f)):_0x4713eb['t'](_0x25d94e(0x275))}),_0x5a464c=_0x414ebe(Qi,{'config':_0x52406d['config'],'runtime':_0xc1a8c5,'table':_0x588f09,'onChange':_0x3f6d39=>{const _0x3a7984=_0x25d94e;_0xa2a7f3['setCurrentUnitForType'](_0x39ef06),_0xa2a7f3[_0x3a7984(0x3bb)](_0x39ef06),_0x3a5932[_0x3a7984(0x25b)](_0x423077['id'],{'unitId':_0x39ef06,'tableId':_0x4f5062,'viewId':_0x1e8eac,'patch':_0x3f6d39})[_0x3a7984(0x147)](_0x1ce520=>_0x3fb617[_0x3a7984(0x198)](_0x3a7984(0x210),_0x1ce520));}});return _0x414ebe(Jr,{'children':_0x3c00a1(_0x25d94e(0x384),{'className':_0x25d94e(0x18f),'children':[_0x159ecc&&_0x414ebe(_0x5d2b24,{'onClick':()=>_0x4797e8(!0x0),'size':'middle','children':_0x4713eb['t'](_0x25d94e(0x3fa))}),_0x414ebe(_0x25d94e(0x384),{'className':'univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','children':_0x1296ff}),_0x159ecc&&_0x1e768b&&_0x414ebe(_0x3da581,{'title':_0x4713eb['t'](_0x25d94e(0x34b)),'onClose':()=>_0x4797e8(!0x1),'children':_0x5a464c})]})});}function ea(_0x2431e8){const _0x50a723=_0x290871;return(_0x2431e8==null?void 0x0:_0x2431e8[_0x50a723(0x183)])===_0x3744eb['Pivot']&&typeof _0x2431e8[_0x50a723(0x193)]==_0x50a723(0x30e)&&_0x2431e8[_0x50a723(0x193)]!==null&&_0x50a723(0x145)in _0x2431e8[_0x50a723(0x193)]&&_0x50a723(0x3a5)in _0x2431e8[_0x50a723(0x193)]&&_0x50a723(0x3f8)in _0x2431e8[_0x50a723(0x193)];}let ta=class extends _0x92f3c1{constructor(_0x365166,_0xbab4ea,_0x385ed5,_0x3a4184,_0x2426e4,_0x502b8e){const _0x43dae0=_0x290871;super(),this[_0x43dae0(0x444)](_0xbab4ea[_0x43dae0(0x13c)]({'type':_0x3744eb[_0x43dae0(0x250)],'renderMode':_0x43dae0(0x342),'icon':_0x3abb8f,'component':$i,'menu':{get 'label'(){return _0x502b8e['t']('bases-dashboard-ui.pivot.name');},get 'description'(){return _0x502b8e['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){const _0x29ac00=_0x43dae0;return _0x502b8e['t'](_0x29ac00(0x333));}}})),this['disposeWithMe'](_0x365166[_0x43dae0(0x13c)](na(_0x385ed5,_0x3a4184,_0x2426e4,_0x502b8e)));}};ta=Ar([Y(0x0,_0x73fa49),Y(0x1,_0x33fef6),Y(0x2,_0x106e69(_0x1aeb78)),Y(0x3,_0x299365),Y(0x4,_0x3813b4),Y(0x5,_0x106e69(_0x4b0f72))],ta);function na(_0x4d943b,_0x3a2476,_0x47c54d,_0x18341a){const _0x558cc9=_0x290871;return{'change$':_0x5d4904(_0x4d943b[_0x558cc9(0x3f9)],_0x47c54d[_0x558cc9(0x2ef)]),'component':Si,get 'labels'(){const _0x36579a=_0x558cc9;return{'add':_0x18341a['t'](_0x36579a(0x3ba)),'configure':_0x4b1bac=>_0x18341a['t'](_0x36579a(0x2da),_0x4b1bac),'delete':_0x18341a['t']('bases-dashboard-ui.dashboard.delete'),'new':_0x18341a['t'](_0x36579a(0x477)),'rename':_0x18341a['t']('bases-dashboard-ui.dashboard.rename'),'search':_0x18341a['t']('bases-dashboard-ui.dashboard.search'),'section':_0x18341a['t'](_0x36579a(0x48e))};},'getItems':_0x4962f4=>{const _0xadb1b5=_0x558cc9;let _0x3642b1=_0x4d943b['getResource'](_0x4962f4);return _0x3642b1[_0xadb1b5(0x35e)][_0xadb1b5(0x2af)](_0x16b4d2=>{const _0x26ed95=_0xadb1b5;let _0x4180a4=_0x3642b1[_0x26ed95(0x15a)][_0x16b4d2];return _0x4180a4?[{'id':_0x4180a4['id'],'name':_0x4180a4['name'],'readonly':!_0x353928(_0x47c54d,_0x4962f4,_0x4180a4['id'])}]:[];});},'create':async _0x3ab2f2=>{const _0x1b1fb4=_0x558cc9;let _0x3b20dd=_0x4d943b[_0x1b1fb4(0x3fc)](_0x3ab2f2),_0xf9325a='dashboard-'+_0x89ef13(0x8),_0x36a6f2=ra(_0x3b20dd[_0x1b1fb4(0x35e)]['flatMap'](_0x3a7d88=>{const _0x39d109=_0x1b1fb4;let _0xab302c=_0x3b20dd['dashboards'][_0x3a7d88];return _0xab302c?[_0xab302c[_0x39d109(0x2a3)]]:[];}),_0x25fba5=>_0x18341a['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x25fba5)));return await _0x3a2476[_0x1b1fb4(0x25b)](_0x28dee1['id'],{'unitId':_0x3ab2f2,'dashboard':{'id':_0xf9325a,'name':_0x36a6f2,'widgetOrder':[],'widgets':{}}})?_0xf9325a:null;},'rename':async(_0x207ba9,_0x469fcf,_0xeffa5d)=>{const _0x368b8b=_0x558cc9;let _0x26be4c=_0x4d943b[_0x368b8b(0x40d)](_0x207ba9,_0x469fcf);return!!(_0x26be4c&&await _0x3a2476['executeCommand'](_0xe5ba16['id'],{'unitId':_0x207ba9,'dashboard':{..._0x26be4c,'name':_0xeffa5d}}));},'remove':(_0x25054d,_0x290c44)=>_0x3a2476[_0x558cc9(0x25b)](_0x1d2c48['id'],{'unitId':_0x25054d,'dashboardId':_0x290c44})};}function ra(_0x14ccd9,_0x38b733){const _0x570acf=_0x290871;let _0x52f2ff=new Set(_0x14ccd9),_0x337b0b=_0x52f2ff[_0x570acf(0x25a)]+0x1,_0x60f5f2=_0x38b733(_0x337b0b);for(;_0x52f2ff['has'](_0x60f5f2);)_0x337b0b+=0x1,_0x60f5f2=_0x38b733(_0x337b0b);return _0x60f5f2;}let ia=class extends _0x447642{constructor(_0x3fe5ef=_r,_0x3d7fa7,_0x49138d){const _0x4ea8bc=_0x290871;super(),this['_config']=_0x3fe5ef,this[_0x4ea8bc(0x405)]=_0x3d7fa7,this[_0x4ea8bc(0x23b)]=_0x49138d;let {..._0x3b1b16}=_0x4fa520({},_r,this['_config']);this[_0x4ea8bc(0x23b)][_0x4ea8bc(0x38f)](gr,_0x3b1b16);}[_0x290871(0x2ec)](){const _0x185195=_0x290871;this[_0x185195(0x405)][_0x185195(0x2e6)]([jr]),this[_0x185195(0x405)][_0x185195(0x2e6)]([qr]),this[_0x185195(0x405)][_0x185195(0x2e6)]([ta]);}[_0x290871(0x2a5)](){_0x49d35e(this['_injector'],[[jr],[qr],[ta]]);}};Ir(ia,_0x290871(0x183),_0x1516ee[_0x290871(0x3c2)]),Ir(ia,'pluginName',_0x290871(0x2b7)),Ir(ia,_0x290871(0x304),mr),Ir(ia,_0x290871(0x14b),hr),ia=Ar([_0x3bb5e2(_0x47a995,_0x528fcf,_0x221667,_0x500bc9,_0x48b358,_0x542cb3),Y(0x1,_0x106e69(_0x117569)),Y(0x2,_0x32ba7f)],ia);function aa(_0x46ed36,_0x5ee75f,_0x32260f,_0x583d56){const _0x31bbcd=_0x290871;let _0x15ec92={..._0x46ed36};if(_0x5ee75f[_0x31bbcd(0x424)]('w')){let _0x2ec364=_0x46ed36['column']+_0x46ed36[_0x31bbcd(0x29f)];_0x15ec92[_0x31bbcd(0x23f)]=Math['max'](0x0,Math['min'](_0x2ec364-0x1,_0x46ed36[_0x31bbcd(0x23f)]+_0x32260f)),_0x15ec92[_0x31bbcd(0x29f)]=_0x2ec364-_0x15ec92[_0x31bbcd(0x23f)];}else _0x5ee75f[_0x31bbcd(0x424)]('e')&&(_0x15ec92[_0x31bbcd(0x29f)]=Math[_0x31bbcd(0x399)](0x1,Math[_0x31bbcd(0x459)](_0x2fad3b-_0x46ed36[_0x31bbcd(0x23f)],_0x46ed36[_0x31bbcd(0x29f)]+_0x32260f)));if(_0x5ee75f[_0x31bbcd(0x424)]('n')){let _0xd5cc2=_0x46ed36[_0x31bbcd(0x3a9)]+_0x46ed36[_0x31bbcd(0x220)];_0x15ec92[_0x31bbcd(0x3a9)]=Math['max'](0x0,Math['min'](_0xd5cc2-0x1,_0x46ed36[_0x31bbcd(0x3a9)]+_0x583d56)),_0x15ec92['rowSpan']=_0xd5cc2-_0x15ec92[_0x31bbcd(0x3a9)];}else _0x5ee75f['includes']('s')&&(_0x15ec92[_0x31bbcd(0x220)]=Math['max'](0x1,_0x46ed36[_0x31bbcd(0x220)]+_0x583d56));return _0x15ec92;}function oa(_0xe44df7){const _0x22c933=_0x290871;let _0x3b2dbc=Math[_0x22c933(0x399)](0x1,Math[_0x22c933(0x459)](_0x2fad3b,Math[_0x22c933(0x388)](_0xe44df7[_0x22c933(0x29f)])));return{'column':Math[_0x22c933(0x399)](0x0,Math[_0x22c933(0x459)](_0x2fad3b-_0x3b2dbc,Math['round'](_0xe44df7[_0x22c933(0x23f)]))),'row':Math[_0x22c933(0x399)](0x0,Math['round'](_0xe44df7[_0x22c933(0x3a9)])),'columnSpan':_0x3b2dbc,'rowSpan':Math['max'](0x1,Math[_0x22c933(0x388)](_0xe44df7[_0x22c933(0x220)]))};}function sa(_0x25f4b4,_0x156727,_0x409c5e){const _0x9811d5=_0x290871;let _0xffba29=new Map(_0x25f4b4),_0x2f97cb=oa(_0x409c5e);_0xffba29[_0x9811d5(0x32b)](_0x156727,_0x2f97cb);let _0x57b800=[[_0x156727,_0x2f97cb]];for(let [_0x15cc6d,_0x488683]of _0xffba29){if(_0x15cc6d===_0x156727)continue;let _0x1a601c=oa(_0x488683);for(;_0x57b800[_0x9811d5(0x331)](([,_0x3ade4a])=>la(_0x1a601c,_0x3ade4a));)_0x1a601c={..._0x1a601c,'row':_0x1a601c[_0x9811d5(0x3a9)]+0x1};for(;_0x1a601c['row']>0x0;){let _0x28a43c={..._0x1a601c,'row':_0x1a601c[_0x9811d5(0x3a9)]-0x1};if(_0x57b800[_0x9811d5(0x331)](([,_0x55f5c7])=>la(_0x28a43c,_0x55f5c7)))break;_0x1a601c=_0x28a43c;}_0x57b800[_0x9811d5(0x435)]([_0x15cc6d,_0x1a601c]),_0xffba29[_0x9811d5(0x32b)](_0x15cc6d,_0x1a601c);}return _0xffba29;}function ca(_0x52633f,_0x5f28b5,_0x3bf010,_0x5a94fb=0x38,_0x1faf8a=0x16){const _0x76b6c6=_0x290871;return _0x52633f<_0x5f28b5+_0x5a94fb?-Math['ceil'](_0x1faf8a*(0x1-Math[_0x76b6c6(0x399)](0x0,_0x52633f-_0x5f28b5)/_0x5a94fb)):_0x52633f>_0x3bf010-_0x5a94fb?Math['ceil'](_0x1faf8a*(0x1-Math['max'](0x0,_0x3bf010-_0x52633f)/_0x5a94fb)):0x0;}function la(_0x314aee,_0x37eb6d){const _0x2330c7=_0x290871;return _0x314aee[_0x2330c7(0x23f)]<_0x37eb6d['column']+_0x37eb6d[_0x2330c7(0x29f)]&&_0x314aee[_0x2330c7(0x23f)]+_0x314aee[_0x2330c7(0x29f)]>_0x37eb6d[_0x2330c7(0x23f)]&&_0x314aee[_0x2330c7(0x3a9)]<_0x37eb6d[_0x2330c7(0x3a9)]+_0x37eb6d[_0x2330c7(0x220)]&&_0x314aee[_0x2330c7(0x3a9)]+_0x314aee[_0x2330c7(0x220)]>_0x37eb6d[_0x2330c7(0x3a9)];}const ua=[{'direction':'nw','className':_0x290871(0x484)},{'direction':'n','className':_0x290871(0x1ca)},{'direction':'ne','className':_0x290871(0x1fa)},{'direction':'e','className':_0x290871(0x315)},{'direction':'se','className':'univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize'},{'direction':'s','className':_0x290871(0x239)},{'direction':'sw','className':_0x290871(0x3bd)},{'direction':'w','className':_0x290871(0x394)}];function da({dashboard:_0x326fe3,dragLabel:_0x1d824d,editable:_0x559029=!0x0,onLayoutsCommit:_0x545d7a,onSelectWidget:_0x2694e4,renderWidget:_0x7bc4a,renderWidgetActions:_0x1064c1,resizeLabel:_0x40c00f,selectedWidgetId:_0x35970c,widgetLabel:_0xefa889}){const _0x32e189=_0x290871;let _0x31c85e=_0x3987b(null),_0x5cf6bd=_0x3987b(null),[_0x197b59,_0x2f858f]=_0x3f626c(!0x1),_0x1aca07=_0x50478e(()=>new Map(_0x326fe3[_0x32e189(0x47d)][_0x32e189(0x2af)](_0x3e4955=>{const _0x2a3605=_0x32e189;let _0x5a1ec7=_0x326fe3[_0x2a3605(0x33d)][_0x3e4955];return _0x5a1ec7?[[_0x3e4955,_0x5a1ec7['layout']]]:[];})),[_0x326fe3]),[_0x1c9c68,_0x4818fc]=_0x3f626c(_0x1aca07);_0x330c05(()=>{const _0x2cc923=_0x32e189;_0x5cf6bd[_0x2cc923(0x2e7)]||_0x4818fc(_0x1aca07);},[_0x1aca07]),_0x330c05(()=>{const _0x58758d=_0x32e189;if(!_0x197b59)return;let _0x1a09a3=_0x337e85=>{const _0x160b38=_0x29b7;let _0x283331=_0x31c85e[_0x160b38(0x2e7)];if(!_0x283331)return null;let _0x6a742b=_0x283331[_0x160b38(0x439)](),_0x5a196d=Math[_0x160b38(0x399)](0x1,(_0x6a742b[_0x160b38(0x361)]-0x8*(_0x2fad3b-0x1))/_0x2fad3b),_0x4cca90=Math['round']((_0x283331[_0x160b38(0x17d)]-_0x337e85[_0x160b38(0x3ac)])/(_0x37eeaf+0x8)),_0x3d1ae9=Math[_0x160b38(0x388)]((_0x337e85[_0x160b38(0x264)]-_0x337e85[_0x160b38(0x218)])/(_0x5a196d+0x8)),_0x4ac534=Math[_0x160b38(0x388)]((_0x337e85[_0x160b38(0x3b5)]-_0x337e85[_0x160b38(0x2ee)])/(_0x37eeaf+0x8))+_0x4cca90,_0x30a10c=_0x337e85[_0x160b38(0x38e)]===_0x160b38(0x1ee)?{..._0x337e85['initial'],'column':_0x337e85[_0x160b38(0x23a)][_0x160b38(0x23f)]+_0x3d1ae9,'row':_0x337e85['initial'][_0x160b38(0x3a9)]+_0x4ac534}:aa(_0x337e85[_0x160b38(0x23a)],_0x337e85[_0x160b38(0x169)]??'se',_0x3d1ae9,_0x4ac534),_0x4ae252=sa(_0x337e85['initialLayouts'],_0x337e85['id'],_0x30a10c);return _0x4818fc(_0x4ae252),_0x4ae252;},_0x192064=_0x4e2588=>{const _0x4037ed=_0x29b7;let _0x6cc26f=_0x5cf6bd['current'];if(!_0x6cc26f)return;let _0x40f05a={..._0x6cc26f,'pointerX':_0x4e2588['clientX'],'pointerY':_0x4e2588['clientY']};_0x5cf6bd[_0x4037ed(0x2e7)]=_0x40f05a;},_0x46dab9=()=>{const _0x377977=_0x29b7;let _0x126e45=_0x5cf6bd[_0x377977(0x2e7)],_0x302847=_0x126e45?_0x1a09a3(_0x126e45):null;_0x5cf6bd[_0x377977(0x2e7)]=null,_0x2f858f(!0x1),_0x302847&&_0x545d7a(_0x302847);},_0x4b42b1=0x0,_0x9c20c2=()=>{const _0x3489ba=_0x29b7;let _0x4d6ca8=_0x31c85e['current'],_0xfa10a1=_0x5cf6bd['current'];if(_0x4d6ca8&&_0xfa10a1){let _0x1b0d97=_0x4d6ca8[_0x3489ba(0x439)](),_0x551f14=ca(_0xfa10a1[_0x3489ba(0x3b5)],_0x1b0d97[_0x3489ba(0x392)],_0x1b0d97['bottom']);_0x551f14!==0x0&&(_0x4d6ca8[_0x3489ba(0x17d)]+=_0x551f14),_0x1a09a3(_0xfa10a1),_0x4b42b1=requestAnimationFrame(_0x9c20c2);}};return _0x4b42b1=requestAnimationFrame(_0x9c20c2),window[_0x58758d(0x232)](_0x58758d(0x370),_0x192064),window[_0x58758d(0x232)](_0x58758d(0x240),_0x46dab9),()=>{const _0x3e13f4=_0x58758d;cancelAnimationFrame(_0x4b42b1),window[_0x3e13f4(0x309)](_0x3e13f4(0x370),_0x192064),window['removeEventListener'](_0x3e13f4(0x240),_0x46dab9);};},[_0x197b59,_0x545d7a]);let _0x5d1a65=Math[_0x32e189(0x399)](0x8,...Array['from'](_0x1c9c68[_0x32e189(0x1ef)]())[_0x32e189(0x3a8)](_0x46b649=>_0x46b649['row']+_0x46b649[_0x32e189(0x220)])),_0x5a20f6=(_0x3957c4,_0x438d6e,_0x173b09,_0x2b8a48)=>{const _0x5d224d=_0x32e189;_0x3957c4[_0x5d224d(0x32d)](),_0x3957c4['stopPropagation']();let _0x25c852=_0x31c85e[_0x5d224d(0x2e7)],_0x43e467={'id':_0x438d6e['id'],'mode':_0x173b09,'pointerX':_0x3957c4['clientX'],'pointerY':_0x3957c4[_0x5d224d(0x396)],'startX':_0x3957c4[_0x5d224d(0x1a4)],'startY':_0x3957c4[_0x5d224d(0x396)],'startScrollTop':(_0x25c852==null?void 0x0:_0x25c852[_0x5d224d(0x17d)])??0x0,'initial':_0x1c9c68[_0x5d224d(0x44b)](_0x438d6e['id'])??_0x438d6e[_0x5d224d(0x2c7)],'initialLayouts':new Map(_0x1c9c68),'resizeDirection':_0x2b8a48};_0x5cf6bd[_0x5d224d(0x2e7)]=_0x43e467,_0x2f858f(!0x0);};return _0x414ebe('div',{'ref':_0x31c85e,'data-dashboard-scroll-container':!0x0,'className':_0x2c3136(_0x32e189(0x207),_0x443bf8),'onClick':_0x559029?_0xa92afa=>{const _0x102482=_0x32e189;if(!(_0xa92afa[_0x102482(0x1d8)]instanceof Node)||!_0xa92afa[_0x102482(0x36e)][_0x102482(0x351)](_0xa92afa['target']))return;let _0x8abb82=_0xa92afa[_0x102482(0x1d8)]instanceof Element?_0xa92afa['target']:_0xa92afa[_0x102482(0x1d8)][_0x102482(0x447)];_0x8abb82!=null&&_0x8abb82[_0x102482(0x443)](_0x102482(0x42c))||_0x2694e4==null||_0x2694e4();}:void 0x0,'children':_0x414ebe(_0x32e189(0x384),{'data-dashboard-grid':!0x0,'className':'univer-grid\x20univer-grid-cols-12\x20univer-pb-6','style':{'gap':0x8,'gridAutoRows':_0x37eeaf,'minHeight':_0x5d1a65*(_0x37eeaf+0x8)},'children':_0x326fe3[_0x32e189(0x47d)][_0x32e189(0x3a8)](_0xe8d9f5=>{const _0x3e8e43=_0x32e189;var _0xb8d1f;let _0xe20fa0=_0x326fe3[_0x3e8e43(0x33d)][_0xe8d9f5],_0x31c7e8=_0x1c9c68[_0x3e8e43(0x44b)](_0xe8d9f5);return!_0xe20fa0||!_0x31c7e8?null:_0x3c00a1('article',{'data-dashboard-widget':_0xe20fa0['id'],'aria-label':_0xe20fa0[_0x3e8e43(0x43d)]??_0xefa889(_0xe20fa0),'className':_0x2c3136(_0x3e8e43(0x268),_0xe20fa0[_0x3e8e43(0x183)]===_0x39775d['Image']||_0xe20fa0[_0x3e8e43(0x183)]===_0x39775d[_0x3e8e43(0x474)]?'univer-bg-transparent\x20dark:!univer-bg-transparent':_0x3e8e43(0x452),_0x559029&&_0x35970c===_0xe20fa0['id']?_0x3e8e43(0x1a5):_0x3e8e43(0x3cb)),'style':{'gridColumn':_0x31c7e8[_0x3e8e43(0x23f)]+0x1+_0x3e8e43(0x2c3)+_0x31c7e8[_0x3e8e43(0x29f)],'gridRow':_0x31c7e8[_0x3e8e43(0x3a9)]+0x1+'\x20/\x20span\x20'+_0x31c7e8[_0x3e8e43(0x220)]},'tabIndex':_0x559029?0x0:void 0x0,'onClick':_0x559029?()=>_0x2694e4==null?void 0x0:_0x2694e4(_0xe20fa0['id']):void 0x0,'onFocus':_0x559029?()=>_0x2694e4==null?void 0x0:_0x2694e4(_0xe20fa0['id']):void 0x0,'children':[_0x559029&&_0x414ebe(_0x3e8e43(0x30b),{'type':'button','aria-label':_0x1d824d,'data-dashboard-drag-handle':_0xe20fa0['id'],'className':_0x2c3136(_0x3e8e43(0x2e3),_0x197b59&&((_0xb8d1f=_0x5cf6bd['current'])==null?void 0x0:_0xb8d1f['id'])===_0xe20fa0['id']&&_0x5cf6bd[_0x3e8e43(0x2e7)][_0x3e8e43(0x38e)]==='move'?_0x3e8e43(0x383):_0x3e8e43(0x34c)),'onPointerDown':_0x4d71ca=>_0x5a20f6(_0x4d71ca,_0xe20fa0,_0x3e8e43(0x1ee)),'children':_0x414ebe(_0x4cfa50,{'className':'univer-size-5\x20univer-rotate-90','aria-hidden':_0x3e8e43(0x2b6)})}),_0x559029&&_0x414ebe(_0x3e8e43(0x384),{'className':_0x3e8e43(0x423),'children':_0x1064c1==null?void 0x0:_0x1064c1(_0xe20fa0)}),_0x414ebe(_0x3e8e43(0x384),{'className':_0x3e8e43(0x1a2),'children':_0x7bc4a(_0xe20fa0)}),_0x559029&&ua[_0x3e8e43(0x3a8)](({className:_0xcf7542,direction:_0x6b50fa})=>{const _0x428613=_0x3e8e43;let _0x1be000=_0x6b50fa[_0x428613(0x151)]===0x2;return _0x414ebe(_0x428613(0x30b),{'type':_0x428613(0x30b),'aria-label':_0x40c00f,'data-dashboard-resize-handle':_0x6b50fa,'data-dashboard-resize-control':_0x1be000?_0x6b50fa:void 0x0,'data-dashboard-resize-edge':_0x1be000?void 0x0:_0x6b50fa,'className':_0x2c3136(_0x428613(0x26f),_0x1be000?_0x428613(0x3bf):'univer-border-0\x20univer-bg-transparent',_0xcf7542,_0x35970c===_0xe20fa0['id']&&_0x428613(0x369)),'onPointerDown':_0xe21fcf=>_0x5a20f6(_0xe21fcf,_0xe20fa0,'resize',_0x6b50fa)},_0x6b50fa);})]},_0xe20fa0['id']);})})});}var fa;const Q={'axis':{..._0x2dd039,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x5cde1d,'heatmap':_0x380efc,'indicatorLine':_0x204acd,'legend':_0x492f3b,'lineAndArea':_0x2c3d74,'pareto':_0x2602cf,'pie':_0x51c1c6,'radar':_0x2f51cf,'relation':{..._0x20d453,'useValueAsSymbolSize':!0x0},'series':{..._0x3f5b1f,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((fa=_0x38bf7d[_0x290871(0x355)])==null?void 0x0:fa[_0x290871(0x2e2)])??!0x1}},'style':_0x44b136,'titles':_0x53b57d,'trendline':_0x23fc75,'waterfall':{..._0x3cf6dc,'useSubtotal':!0x0},'waterfallStyle':_0x2841cd,'wordCloud':_0x4bd002},pa=[_0x376127[_0x290871(0x416)],_0x376127[_0x290871(0x2b9)],_0x376127['WordCloud'],_0x376127['Scatter'],_0x376127[_0x290871(0x20b)],_0x376127['Relation'],_0x376127[_0x290871(0x16b)],_0x376127['Heatmap'],_0x376127[_0x290871(0x259)],_0x376127['Candlestick'],_0x376127['Histogram'],_0x376127[_0x290871(0x21d)],_0x376127[_0x290871(0x3e1)],_0x376127[_0x290871(0x47b)],_0x376127[_0x290871(0x1a0)]];function ma(_0x1d4e01){const _0x564aaf=_0x290871;let {config:_0x334119,onChange:_0x3d2154,runtime:_0x593db4,tableName:_0x5c8e0e}=_0x1d4e01,_0x171b90=_0xe276a8(qr),_0x1af7e5=_0xe276a8(_0x4b0f72),[_0x224caa,_0x32a885]=_0x3f626c(_0x147b03['Data']),_0x3b77fc=_0x50478e(()=>new _0x1be047(_0x593db4['model'],{'commit':_0x1a6794=>{const _0x33fe14=_0x29b7;var _0x1c8611;let _0x11d36d=_0x593db4[_0x33fe14(0x1cd)],_0x3b48a0=_0x2d72ce(_0x1a6794,{'series':(_0x1c8611=_0x11d36d[_0x33fe14(0x193)])==null?void 0x0:_0x1c8611[_0x33fe14(0x414)],'currentChartType':_0x11d36d['chartType'],'currentStyle':_0x11d36d['style'],'currentContext':_0x11d36d['context'],'currentDataAggregation':_0x11d36d[_0x33fe14(0x171)]});_0x3d2154({'chart':ha(_0x334119[_0x33fe14(0x3a5)],_0x3b48a0)});}}),[_0x334119[_0x564aaf(0x3a5)],_0x3d2154,_0x593db4]),_0x187ef3=_0x50478e(()=>_0x2ed067(_0x1bd142[_0x564aaf(0x3a8)](_0x5bc5e9=>({..._0x5bc5e9,'label':_0x1af7e5['t'](ya(_0x5bc5e9[_0x564aaf(0x44f)]))}))),[_0x1af7e5]);return _0x414ebe(_0x32b767,{'chartUIService':_0x171b90,'hostAdapter':_0x3b77fc,'children':_0x3c00a1(_0x564aaf(0x384),{'className':_0x564aaf(0x298),'children':[_0x414ebe(_0xbfe45a,{'ariaLabel':_0x1af7e5['t'](_0x564aaf(0x2a4)),'className':'univer-shrink-0\x20univer-px-4','items':[{'label':_0x1af7e5['t'](_0x564aaf(0x224)),'panelId':_0x564aaf(0x1dd),'value':_0x147b03['Data']},{'label':_0x1af7e5['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x564aaf(0x163),'value':_0x147b03[_0x564aaf(0x332)]}],'value':_0x224caa,'onChange':_0x32a885}),_0x224caa===_0x147b03[_0x564aaf(0x227)]?_0x414ebe(_0x1199fe,{'id':_0x564aaf(0x1dd),'label':_0x1af7e5['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x3c00a1(_0x564aaf(0x384),{'className':_0x564aaf(0x3af),'children':[_0x414ebe(_0x3e755e,{'options':_0x187ef3}),_0x414ebe(_0x3c8f1a,{}),_0x414ebe(_0xdeb132,{}),_0x414ebe(ga,{}),_0x414ebe(_0x11955e,{}),_0x3c00a1(_0x564aaf(0x384),{'children':[_0x414ebe(_0xce0d39,{'title':_0x1af7e5['t'](_0x564aaf(0x446))}),_0x414ebe(_0x448a93,{'disabled':!0x0,'value':_0x5c8e0e})]}),_0x414ebe(_0x362f58,{'orientationControl':_0x414ebe(_0x5d2b24,{'size':_0x564aaf(0x231),'onClick':()=>_0x3d2154({'chart':{..._0x334119['chart'],'orient':_0x334119[_0x564aaf(0x3a5)]['orient']===_0x564aaf(0x3a9)?_0x564aaf(0x23f):_0x564aaf(0x3a9)}}),'children':_0x1af7e5['t']('bases-dashboard-ui.chart.common.switchRowColumn')})}),_0x414ebe(_0x311d22,{}),_0x414ebe(_0x41d408,{'defaultValues':Q[_0x564aaf(0x2c6)]}),_0x3c00a1('div',{'children':[_0x414ebe(_0xce0d39,{'title':_0x1af7e5['t']('bases-dashboard-ui.pivot.display')}),_0x414ebe(_0x296606,{'value':_0x334119[_0x564aaf(0x3f8)],'options':[{'value':_0x564aaf(0x438),'label':_0x1af7e5['t'](_0x564aaf(0x35d))},{'value':'chart','label':_0x1af7e5['t'](_0x564aaf(0x2a6))},{'value':_0x564aaf(0x363),'label':_0x1af7e5['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x41b298=>{const _0x1d2d4c=_0x564aaf;(_0x41b298===_0x1d2d4c(0x438)||_0x41b298===_0x1d2d4c(0x3a5)||_0x41b298==='table')&&_0x3d2154({'displayMode':_0x41b298});}})]})]})}):_0x414ebe(_0x1199fe,{'id':_0x564aaf(0x163),'label':_0x1af7e5['t'](_0x564aaf(0x3d7)),'children':_0x414ebe(_a,{})})]})});}function ha(_0x49ac69,_0x742f76){const _0x4f6be8=_0x290871;return{..._0x49ac69,'type':_0x742f76[_0x4f6be8(0x21c)]??_0x49ac69[_0x4f6be8(0x183)],'style':_0x742f76[_0x4f6be8(0x148)]??_0x49ac69[_0x4f6be8(0x148)],'context':_0x742f76[_0x4f6be8(0x254)]??_0x49ac69[_0x4f6be8(0x254)],'dataAggregation':_0x742f76[_0x4f6be8(0x171)]??_0x49ac69['dataAggregation']};}function ga(){const _0x3559ca=_0x290871;let _0x2d215b=_0x3b67f6();return _0x414ebe(_0x309fc7,{'visible':pa[_0x3559ca(0x24b)](_0x294c30=>!_0x4ec613['baseOn'](_0x2d215b,_0x294c30))});}function $(_0x4a19c7){const _0x3bef9c=_0x290871;return _0x3c00a1(_0x410c47,{'id':_0x4a19c7['id'],'children':[_0x414ebe(_0x4a23d8,{'children':_0x4a19c7[_0x3bef9c(0x1e5)]}),_0x414ebe(_0x50d9e3,{'children':_0x4a19c7[_0x3bef9c(0x1c0)]})]});}function _a(){const _0x10fe54=_0x290871;let _0x2b0170=_0xe276a8(_0x4b0f72),_0x545e7f=_0x3b67f6(),_0x4a3a9f=_0x1f9302(),[_0x52288b,_0x4e71bc]=_0x3f626c(null),_0x5101d9=_0x4ec613[_0x10fe54(0x273)](_0x545e7f,_0x376127[_0x10fe54(0x2b0)]),_0x5e62df=_0x545e7f===_0x376127[_0x10fe54(0x2b9)],_0x32f62e=_0x545e7f===_0x376127['WordCloud'],_0x363b90=_0x545e7f===_0x376127[_0x10fe54(0x20b)],_0xeba9a1=_0x4ec613[_0x10fe54(0x273)](_0x545e7f,_0x376127[_0x10fe54(0x13a)]),_0x3a0053=_0x545e7f===_0x376127[_0x10fe54(0x2a2)],_0x384026=_0x545e7f===_0x376127[_0x10fe54(0x460)],_0x438f5f=_0x545e7f===_0x376127[_0x10fe54(0x3f5)],_0x33a8de=_0x545e7f===_0x376127['Heatmap'],_0x2cc64c=_0x1d4e5d(_0x545e7f,_0x518183[_0x10fe54(0x39c)])&&!_0xeba9a1&&!_0x438f5f,_0x53ddb6=va(_0x545e7f,_0x2b0170);return _0x3c00a1(_0x1b215e,{'value':_0x52288b,'onChange':_0x4e71bc,'children':[_0x414ebe($,{'id':_0x111171[_0x10fe54(0x283)],'label':_0x2b0170['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0x414ebe(_0x3488e9,{'defaultValues':Q[_0x10fe54(0x148)]})}),_0x414ebe($,{'id':_0x111171['ChartAndAxisTitles'],'label':_0x2b0170['t'](_0x10fe54(0x3d5)),'children':_0x414ebe(_0x5bf2da,{'commitMode':_0x10fe54(0x211),'defaultValues':Q['titles']})}),_0x414ebe(_0x2dcd87,{'section':'view'}),_0x2cc64c&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x478)],'label':_0x2b0170['t'](_0x10fe54(0x455)),'children':_0x414ebe(_0x126708,{'defaultValues':Q[_0x10fe54(0x414)],'NumberFormatField':_0x3f6633})}),_0x384026&&_0x414ebe($,{'id':_0x111171['WaterfallSeries'],'label':_0x2b0170['t'](_0x10fe54(0x2b8)),'children':_0x414ebe(_0x271332,{'defaultValues':Q[_0x10fe54(0x1e9)],'getDefaultBucketName':({seriesName:_0xcaa67f,target:_0x1f8950})=>_0x1f8950===_0x34ed53[_0x10fe54(0x3d3)]?_0x2b0170['t'](_0x10fe54(0x191)):_0xcaa67f?_0xcaa67f+'-('+_0x2b0170['t'](_0x10fe54(0x20a)+(_0x1f8950===_0x34ed53[_0x10fe54(0x244)]?_0x10fe54(0x1bb):'waterfall.negative'))+')':'','NumberFormatField':_0x3f6633})}),_0x438f5f&&_0x3c00a1(_0x42483e,{'children':[_0x414ebe($,{'id':_0x111171[_0x10fe54(0x1ed)],'label':_0x2b0170['t'](_0x10fe54(0x180)),'children':_0x414ebe(_0x4ad9db,{'defaultValues':Q[_0x10fe54(0x2ff)],'NumberFormatField':_0x3f6633,'showDataPointEditor':!0x0,'target':_0x10fe54(0x1d3)})}),_0x414ebe($,{'id':_0x111171[_0x10fe54(0x161)],'label':_0x2b0170['t'](_0x10fe54(0x412)),'children':_0x414ebe(_0x4ad9db,{'defaultValues':Q[_0x10fe54(0x2ff)],'NumberFormatField':_0x3f6633,'showDataPointEditor':!0x1,'target':_0x10fe54(0x2d9)})})]}),_0x5101d9&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x441)],'label':_0x2b0170['t'](_0x10fe54(0x2ac)),'children':_0x414ebe(_0x36413b,{'defaultValues':Q['pie'],'NumberFormatField':_0x3f6633})}),_0x32f62e&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x1f5)],'label':_0x2b0170['t'](_0x10fe54(0x387)),'children':_0x414ebe(_0x3b9d11,{'defaultValues':Q[_0x10fe54(0x185)]})}),_0x5e62df&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x2b9)],'label':_0x2b0170['t'](_0x10fe54(0x479)),'children':_0x414ebe(_0x1ef123,{'defaultValues':Q[_0x10fe54(0x1c5)]})}),_0x363b90&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x20b)],'label':_0x2b0170['t']('bases-dashboard-ui.chart.section.funnel'),'children':_0x414ebe(_0x5e8635,{'defaultValues':Q[_0x10fe54(0x38d)],'gapControl':_0x10fe54(0x42e)})}),_0x33a8de&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x1eb)],'label':_0x2b0170['t']('bases-dashboard-ui.chart.common.heatmap'),'children':_0x414ebe(_0x48cea1,{'defaultValues':Q['heatmap']})}),_0x3a0053&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x2a2)],'label':_0x2b0170['t'](_0x10fe54(0x38c)),'children':_0x414ebe(_0x1271d5,{'defaultValues':Q['relation']})}),_0x422d44(_0x545e7f)&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x397)],'label':_0x2b0170['t'](_0x4ec613[_0x10fe54(0x273)](_0x545e7f,_0x376127[_0x10fe54(0x187)])?'bases-dashboard-ui.chart.chartTypes.area':_0x10fe54(0x3e5)),'children':_0x414ebe(_0x4ec390,{'defaultValues':Q['lineAndArea'],'lineStyleControl':_0x10fe54(0x488)})}),_0x1d4e5d(_0x545e7f,_0x518183[_0x10fe54(0x186)])&&_0x414ebe($,{'id':_0x111171['Legend'],'label':_0x2b0170['t'](_0x10fe54(0x31e)),'children':_0x414ebe(_0x179da2,{'defaultValues':Q[_0x10fe54(0x31d)]})}),_0x1d4e5d(_0x545e7f,_0x518183[_0x10fe54(0x3a3)])&&_0x3c00a1(_0x42483e,{'children':[_0x414ebe($,{'id':_0x111171[_0x10fe54(0x420)],'label':_0x2b0170['t'](_0x10fe54(0x1a6)),'children':_0x414ebe(_0xaa8939,{'axis':'x','defaultValues':Q[_0x10fe54(0x1f3)],'NumberFormatField':_0x3f6633})}),_0x414ebe($,{'id':_0x111171[_0x10fe54(0x2f5)],'label':_0x2b0170['t']('bases-dashboard-ui.chart.common.verticalAxis'),'children':_0x414ebe(_0xaa8939,{'axis':'y','defaultValues':Q[_0x10fe54(0x1f3)],'NumberFormatField':_0x3f6633})}),_0x414ebe(_0x2dcd87,{'section':_0x10fe54(0x33b)}),_0x4a3a9f&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x1d1)],'label':_0x2b0170['t'](_0x10fe54(0x42b)),'children':_0x414ebe(_0xaa8939,{'axis':_0x10fe54(0x3f7),'defaultValues':Q['axis'],'NumberFormatField':_0x3f6633})}),_0x414ebe($,{'id':_0x111171[_0x10fe54(0x1aa)],'label':_0x2b0170['t']('bases-dashboard-ui.chart.section.gridlinesAndTicks'),'children':_0x414ebe(_0x54cf11,{'defaultValues':Q['axis']})})]}),_0x1d4e5d(_0x545e7f,_0x518183[_0x10fe54(0x419)])&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x419)],'label':_0x2b0170['t'](_0x10fe54(0x274)),'children':_0x414ebe(_0x5b0ede,{'defaultValues':Q[_0x10fe54(0x31f)]})}),_0x2db1ff(_0x545e7f)&&_0x414ebe($,{'id':_0x111171['Trendline'],'label':_0x2b0170['t'](_0x10fe54(0x398)),'children':_0x414ebe(_0x452c9a,{'defaultValues':Q['trendline']})}),_0x53ddb6&&_0x414ebe($,{'id':_0x53ddb6['id'],'label':_0x53ddb6[_0x10fe54(0x1e5)],'children':_0x414ebe(_0x5d8d27,{})})]});}function va(_0x513a68,_0x1360bb){const _0x3a1a36=_0x290871;let _0x4fee5c={[_0x376127['Candlestick']]:{'id':_0x111171[_0x3a1a36(0x36b)],'localeKey':_0x3a1a36(0x164)},[_0x376127[_0x3a1a36(0x37c)]]:{'id':_0x111171[_0x3a1a36(0x37c)],'localeKey':_0x3a1a36(0x16c)},[_0x376127[_0x3a1a36(0x21d)]]:{'id':_0x111171[_0x3a1a36(0x21d)],'localeKey':_0x3a1a36(0x23d)},[_0x376127[_0x3a1a36(0x3e1)]]:{'id':_0x111171['Sunburst'],'localeKey':'bases-dashboard-ui.chart.section.sunburst'},[_0x376127['Gauge']]:{'id':_0x111171[_0x3a1a36(0x47b)],'localeKey':_0x3a1a36(0x434)},[_0x376127[_0x3a1a36(0x1a0)]]:{'id':_0x111171[_0x3a1a36(0x1a0)],'localeKey':_0x3a1a36(0x403)}}[_0x513a68];return _0x4fee5c?{'id':_0x4fee5c['id'],'label':_0x1360bb['t'](_0x4fee5c['localeKey'])}:null;}function ya(_0x46b96e){const _0x3194c6=_0x290871;return _0x3194c6(0x482)+_0x46b96e;}function ba({onChange:_0x2617fa,onEditData:_0x376190,runtime:_0xde18b3,sourceChart:_0x1e0fe4,sourceName:_0xbdd522,widget:_0x1608af}){const _0x1b0dad=_0x290871;let _0x168f6e=_0xe276a8(qr),_0x56a0bf=_0xe276a8(_0x4b0f72),[_0x157c10,_0x18dc90]=_0x3f626c(_0x147b03['Data']),_0x18e7c6=_0x1608af[_0x1b0dad(0x3a5)]??_0x1e0fe4,_0xe6beb1=_0x50478e(()=>new _0x1be047(_0xde18b3[_0x1b0dad(0x1cd)],{'commit':_0x492849=>{const _0x29d69f=_0x1b0dad;var _0x473df5;let _0x500d93=_0xde18b3[_0x29d69f(0x1cd)],_0x4c9d0a=_0x2d72ce(_0x492849,{'series':(_0x473df5=_0x500d93[_0x29d69f(0x193)])==null?void 0x0:_0x473df5[_0x29d69f(0x414)],'currentChartType':_0x500d93['chartType'],'currentStyle':_0x500d93[_0x29d69f(0x148)],'currentContext':_0x500d93[_0x29d69f(0x254)],'currentDataAggregation':_0x500d93[_0x29d69f(0x171)]});_0x2617fa({..._0x1608af,'chart':ha(_0x18e7c6,_0x4c9d0a)})[_0x29d69f(0x147)](()=>void 0x0);}}),[_0x18e7c6,_0x2617fa,_0xde18b3,_0x1608af]),_0x5cd3b7=_0x50478e(()=>_0x2ed067(_0x1bd142[_0x1b0dad(0x3a8)](_0x5742a4=>({..._0x5742a4,'label':_0x56a0bf['t'](xa(_0x5742a4[_0x1b0dad(0x44f)]))}))),[_0x56a0bf]);return _0x414ebe(_0x32b767,{'chartUIService':_0x168f6e,'hostAdapter':_0xe6beb1,'children':_0x3c00a1(_0x1b0dad(0x384),{'data-dashboard-chart-inspector':!0x0,'className':_0x1b0dad(0x480),'children':[_0x414ebe(_0xbfe45a,{'ariaLabel':_0x56a0bf['t'](_0x1b0dad(0x2a4)),'className':_0x1b0dad(0x17e),'items':[{'label':_0x56a0bf['t'](_0x1b0dad(0x224)),'panelId':_0x1b0dad(0x2d1),'value':_0x147b03[_0x1b0dad(0x227)]},{'label':_0x56a0bf['t']('bases-dashboard-ui.chart.common.customize'),'panelId':'dashboard-chart-style','value':_0x147b03['Style']}],'value':_0x157c10,'onChange':_0x18dc90}),_0x157c10===_0x147b03[_0x1b0dad(0x227)]?_0x414ebe(_0x1199fe,{'id':_0x1b0dad(0x2d1),'label':_0x56a0bf['t'](_0x1b0dad(0x224)),'children':_0x3c00a1('div',{'className':_0x1b0dad(0x3af),'children':[_0x414ebe(_0x3e755e,{'options':_0x5cd3b7}),_0x414ebe(_0x3c8f1a,{}),_0x414ebe(_0xdeb132,{}),_0x414ebe(ga,{}),_0x414ebe(_0x11955e,{}),_0x3c00a1(_0x1b0dad(0x384),{'children':[_0x414ebe(_0xce0d39,{'title':_0x56a0bf['t'](_0x1b0dad(0x16f))}),_0x414ebe(_0x448a93,{'disabled':!0x0,'value':_0xbdd522}),_0x414ebe(_0x5d2b24,{'className':_0x1b0dad(0x473),'onClick':_0x376190,'children':_0x56a0bf['t'](_0x1b0dad(0x2fb))})]})]})}):_0x414ebe(_0x1199fe,{'id':_0x1b0dad(0x197),'label':_0x56a0bf['t'](_0x1b0dad(0x3d7)),'children':_0x414ebe(_a,{})})]})});}function xa(_0x10f6aa){return'bases-dashboard-ui.chart.chartTypes.'+_0x10f6aa;}const Sa=[_0x290871(0x3ae),_0x290871(0x475),_0x290871(0x261),'currency','grouped','compact'];function Ca({base:_0x46ab8a,onChange:_0x563a1c,onSelectBackgroundImage:_0x345dca,widget:_0x3b206f}){const _0x529214=_0x290871;var _0x4457f0;let _0x5200c0=_0xe276a8(_0x4b0f72),_0x5e381e=_0xe276a8(_0x32e309),_0x491415=_0x45d384(()=>_0x5e381e['currentTheme$'],_0x5e381e['getCurrentTheme'](),!0x1,[_0x5e381e]),_0x523f62=_0x45d384(()=>_0x5e381e[_0x529214(0x39b)],_0x5e381e['darkMode'],!0x1,[_0x5e381e]),[_0x450bd1,_0x6f477a]=_0x3f626c(_0x529214(0x409)),[_0x2fb9b8,_0x44d5a2]=_0x3f626c(!0x1),_0x29defd=Cr(_0x3b206f),_0xc47190=_0x46ab8a[_0x529214(0x18e)]()[_0x529214(0x377)][_0x3b206f[_0x529214(0x1b9)]],_0x361cc9=_0xc47190==null?void 0x0:_0xc47190[_0x529214(0x40f)][_0x529214(0x47f)](_0xb87e0c=>_0xc47190[_0x529214(0x483)][_0xb87e0c]),_0x5a250e=_0x361cc9?_0xc47190==null?void 0x0:_0xc47190['views'][_0x361cc9]:void 0x0,_0x2e2605=_0xc47190&&_0x5a250e?_0x3134ee(_0x46ab8a[_0x529214(0x18e)](),_0xc47190,_0x5a250e)['map'](_0x5504df=>({..._0x5504df,'current':!0x1})):[],_0x3ca433=((_0x4457f0=_0x3b206f['shapeData']['formulaBinding'])==null?void 0x0:_0x4457f0[_0x529214(0x1c6)])??'',_0x833094=_0xa5556=>_0x563a1c(wr(_0x3b206f,_0xa5556))[_0x529214(0x147)](()=>void 0x0),_0x4b3ec7=_0x21fa0e=>_0x563a1c({..._0x3b206f,'description':_0x21fa0e})[_0x529214(0x147)](()=>void 0x0);return _0x3c00a1(_0x529214(0x384),{'data-dashboard-formula-inspector':!0x0,'className':_0x529214(0x480),'children':[_0x414ebe(_0x4110dc,{'className':_0x529214(0x2e8),'items':[{'value':'data','label':_0x5200c0['t']('bases-dashboard-ui.dashboardInspector.data')},{'value':'style','label':_0x5200c0['t'](_0x529214(0x379))}],'value':_0x450bd1,'onChange':_0x6f477a}),_0x414ebe('div',{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0x450bd1==='data'?_0x3c00a1(_0x529214(0x384),{'className':_0x529214(0x350),'children':[_0x414ebe(wa,{'label':_0x5200c0['t'](_0x529214(0x2cd)),'children':_0x414ebe(_0x448a93,{'value':_0x3b206f[_0x529214(0x451)]??_0x3b206f[_0x529214(0x43d)]??'','onChange':_0x4b3ec7,'onBlur':_0x2a73ba=>_0x4b3ec7(_0x2a73ba[_0x529214(0x1d8)][_0x529214(0x1c2)])})}),_0x414ebe(wa,{'label':_0x5200c0['t'](_0x529214(0x16f)),'children':_0x414ebe(_0x448a93,{'disabled':!0x0,'value':(_0xc47190==null?void 0x0:_0xc47190[_0x529214(0x2a3)])??_0x5200c0['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})}),_0x3c00a1(wa,{'label':_0x5200c0['t'](_0x529214(0x39e)),'children':[_0x414ebe(_0x448a93,{'disabled':!0x0,'value':_0x3cad2e(_0x3ca433,_0x2e2605)}),_0x414ebe(_0x5d2b24,{'className':'univer-mt-2\x20univer-w-full','onClick':()=>_0x44d5a2(!0x0),'children':_0x5200c0['t'](_0x529214(0x28a))})]})]}):_0x3c00a1('div',{'className':_0x529214(0x350),'children':[_0x414ebe(_0x43bcb4,{'emptyLabel':_0x5200c0['t'](_0x529214(0x301)),'label':_0x5200c0['t'](_0x529214(0x301)),'pickerFallbackValue':_0x523f62?_0x491415[_0x529214(0x3cd)][0x384]:_0x491415['gray'][0x0],'resetLabel':_0x5200c0['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x29defd[_0x529214(0x16a)]??null,'onChange':_0x5bc3c1=>_0x833094({'backgroundColor':_0x5bc3c1??void 0x0})}),_0x3c00a1(wa,{'label':_0x5200c0['t'](_0x529214(0x159)),'children':[_0x3c00a1('div',{'className':'univer-flex\x20univer-gap-2','children':[_0x3c00a1(_0x5d2b24,{'className':'univer-flex-1','onClick':()=>{const _0x441bc6=_0x529214;_0x345dca()[_0x441bc6(0x1fb)](_0x3c0416=>{const _0x4a4340=_0x441bc6;if(_0x3c0416){var _0x5d630c;return _0x833094({'backgroundImage':{..._0x3c0416,'fit':((_0x5d630c=_0x29defd[_0x4a4340(0x313)])==null?void 0x0:_0x5d630c[_0x4a4340(0x3e4)])??'cover'}});}})[_0x441bc6(0x147)](()=>void 0x0);},'children':[_0x414ebe(_0x2dc2bd,{}),_0x29defd[_0x529214(0x313)]?_0x5200c0['t'](_0x529214(0x18a)):_0x5200c0['t']('bases-dashboard-ui.dashboardInspector.uploadImage')]}),_0x29defd['backgroundImage']&&_0x414ebe(_0x5d2b24,{'aria-label':_0x5200c0['t'](_0x529214(0x2bb)),'title':_0x5200c0['t'](_0x529214(0x2bb)),'onClick':()=>_0x833094({'backgroundImage':void 0x0}),'children':_0x414ebe(_0x152022,{})})]}),_0x29defd[_0x529214(0x313)]&&_0x414ebe(_0x4110dc,{'className':_0x529214(0x188),'items':[{'value':_0x529214(0x257),'label':_0x5200c0['t'](_0x529214(0x2f1))},{'value':_0x529214(0x1b4),'label':_0x5200c0['t']('bases-dashboard-ui.dashboardInspector.contain')}],'value':_0x29defd[_0x529214(0x313)][_0x529214(0x3e4)],'onChange':_0x5af39d=>_0x833094({'backgroundImage':_0x29defd[_0x529214(0x313)]?{..._0x29defd[_0x529214(0x313)],'fit':_0x5af39d}:void 0x0})})]}),_0x414ebe(_0x43bcb4,{'emptyLabel':_0x5200c0['t'](_0x529214(0x481)),'label':_0x5200c0['t'](_0x529214(0x481)),'pickerFallbackValue':_0x523f62?_0x491415[_0x529214(0x3cd)][0x32]:_0x491415[_0x529214(0x3cd)][0x3e8],'resetLabel':_0x5200c0['t'](_0x529214(0x337)),'value':_0x29defd['textColor']??null,'onChange':_0x4ff5af=>_0x833094({'textColor':_0x4ff5af??void 0x0})}),_0x414ebe(wa,{'label':_0x5200c0['t'](_0x529214(0x228)),'children':_0x414ebe(_0x4110dc,{'items':[{'value':_0x529214(0x2f9),'label':_0x5200c0['t'](_0x529214(0x3c8))},{'value':_0x529214(0x15d),'label':_0x5200c0['t'](_0x529214(0x3ef))},{'value':_0x529214(0x33f),'label':_0x5200c0['t'](_0x529214(0x3aa))}],'value':_0x29defd[_0x529214(0x1f6)],'onChange':_0x1dfcf7=>_0x833094({'alignment':_0x1dfcf7})})}),_0x3c00a1(wa,{'label':_0x5200c0['t'](_0x529214(0x46a)),'children':[_0x414ebe(_0x4110dc,{'items':[{'value':_0x529214(0x449),'label':_0x5200c0['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':'custom','label':_0x5200c0['t'](_0x529214(0x2d8))}],'value':_0x29defd[_0x529214(0x307)],'onChange':_0x448ae1=>_0x833094({'fontSizeMode':_0x448ae1})}),_0x29defd[_0x529214(0x307)]===_0x529214(0x3b7)&&_0x414ebe(_0x2963f5,{'className':'univer-mt-2','min':0xc,'max':0x78,'value':_0x29defd['fontSize'],'onChange':_0x3e34ef=>_0x833094({'fontSize':_0x3e34ef??0x28,'fontSizeMode':_0x529214(0x3b7)})})]}),_0x414ebe(wa,{'label':_0x5200c0['t'](_0x529214(0x272)),'children':_0x414ebe(_0x296606,{'value':_0x29defd[_0x529214(0x262)],'options':[{'value':_0x529214(0x3ae),'label':_0x5200c0['t'](_0x529214(0x380))},{'value':_0x529214(0x475),'label':_0x5200c0['t'](_0x529214(0x3bc))},{'value':_0x529214(0x261),'label':_0x5200c0['t'](_0x529214(0x1b1))},{'value':_0x529214(0x3c6),'label':_0x5200c0['t'](_0x529214(0x42f))},{'value':_0x529214(0x146),'label':_0x5200c0['t'](_0x529214(0x158))},{'value':_0x529214(0x177),'label':_0x5200c0['t']('bases-dashboard-ui.dashboardInspector.compact')}],'onChange':_0x1d3b0f=>{const _0x34376a=_0x529214;let _0x577ccd=Sa[_0x34376a(0x47f)](_0x48aff3=>_0x48aff3===_0x1d3b0f);_0x577ccd&&_0x833094({'numberFormat':_0x577ccd});}})}),_0x29defd['numberFormat']===_0x529214(0x3c6)&&_0x414ebe(wa,{'label':_0x5200c0['t'](_0x529214(0x166)),'children':_0x414ebe(_0x448a93,{'value':_0x29defd[_0x529214(0x3c6)],'onChange':_0x1c3738=>_0x833094({'currency':_0x1c3738[_0x529214(0x234)](0x0,0x3)[_0x529214(0x294)]()})})}),_0x29defd[_0x529214(0x262)]!=='general'&&_0x414ebe(wa,{'label':_0x5200c0['t'](_0x529214(0x430)),'children':_0x414ebe(_0x2963f5,{'min':0x0,'max':0x8,'value':_0x29defd['decimalPlaces'],'onChange':_0xa87de8=>_0x833094({'decimalPlaces':_0xa87de8??0x0})})})]})}),_0x2fb9b8&&_0x414ebe(_0x446051,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x414ebe(_0x461c68,{'tables':_0x2e2605,'formula':_0x3cad2e(_0x3ca433,_0x2e2605),'onCancel':()=>_0x44d5a2(!0x1),'onSave':_0x1f5708=>{const _0x180984=_0x529214;let _0x4c4f28=_0x3b206f[_0x180984(0x3c7)][_0x180984(0x3c0)]??{'formula':''};return _0x563a1c({..._0x3b206f,'shapeData':{..._0x3b206f[_0x180984(0x3c7)],'formulaBinding':{..._0x4c4f28,'formula':_0x1a63bf(_0x1f5708,_0x2e2605)}}})[_0x180984(0x1fb)](()=>_0x44d5a2(!0x1))['catch'](()=>void 0x0);}})})]});}function wa({children:_0x24a331,label:_0x2b6bf5}){const _0x5a629f=_0x290871;return _0x3c00a1('div',{'role':'group','aria-label':_0x2b6bf5,'className':_0x5a629f(0x45a),'children':[_0x414ebe(_0x5a629f(0x415),{'children':_0x2b6bf5}),_0x24a331]});}const Ta={[_0x5cc925['IS']]:_0x290871(0x46f),[_0x5cc925[_0x290871(0x469)]]:_0x290871(0x25f),[_0x5cc925[_0x290871(0x1b8)]]:_0x290871(0x22f),[_0x5cc925[_0x290871(0x3d0)]]:_0x290871(0x1f9),[_0x5cc925[_0x290871(0x19a)]]:_0x290871(0x15e),[_0x5cc925[_0x290871(0x1a9)]]:'bases-dashboard-ui.operators.isNotEmpty',[_0x5cc925[_0x290871(0x15f)]]:_0x290871(0x17f),[_0x5cc925[_0x290871(0x2ce)]]:_0x290871(0x27a),[_0x5cc925[_0x290871(0x319)]]:'bases-dashboard-ui.operators.lessThan',[_0x5cc925[_0x290871(0x402)]]:_0x290871(0x326),[_0x5cc925['BEFORE']]:_0x290871(0x19d),[_0x5cc925[_0x290871(0x291)]]:_0x290871(0x3f3)};function Ea({disabled:_0x5a7e32,fields:_0x54b9a7,filter:_0x37545d,onChange:_0x169a12}){const _0x1a8a6c=_0x290871;let _0x377ff2=_0xe276a8(_0x4b0f72),_0x4aac87=(_0x37545d==null?void 0x0:_0x37545d['conditions'])??[];return _0x4aac87['length']?_0x414ebe(_0x1a8a6c(0x384),{'className':_0x1a8a6c(0x1e2),'children':_0x4aac87[_0x1a8a6c(0x3a8)]((_0x4c375e,_0x4c2755)=>{const _0x578dfe=_0x1a8a6c;let _0x3a27d8=_0x54b9a7['find'](_0x38b800=>_0x38b800['id']===_0x4c375e[_0x578dfe(0x48a)]);return _0x3c00a1(_0x578dfe(0x384),{'className':_0x578dfe(0x39d),'children':[_0x3c00a1(_0x578dfe(0x384),{'className':'univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','children':[_0x414ebe(_0x578dfe(0x415),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','children':(_0x3a27d8==null?void 0x0:_0x3a27d8['name'])??_0x4c375e[_0x578dfe(0x48a)]}),_0x414ebe('span',{'className':_0x578dfe(0x1ba),'children':_0x377ff2['t'](Ta[_0x4c375e[_0x578dfe(0x316)]])})]}),Pa(_0x4c375e['operator'])&&_0x414ebe(Oa,{'disabled':_0x5a7e32,'field':_0x3a27d8,'value':_0x4c375e[_0x578dfe(0x312)],'onChange':_0x1c2057=>_0x169a12(ja(_0x37545d,_0x4c2755,{'operand':_0x1c2057}))})]},La(_0x4aac87,_0x4c375e,_0x4c2755));})}):_0x3c00a1('div',{'className':_0x1a8a6c(0x440),'children':[_0x414ebe(_0x27cd4d,{'className':_0x1a8a6c(0x1f8)}),_0x414ebe(_0x1a8a6c(0x415),{'className':_0x1a8a6c(0x368),'children':_0x377ff2['t'](_0x1a8a6c(0x296))})]});}function Da({fields:_0x352512,filter:_0x3fe1df,onChange:_0x2e5cd2,onClear:_0x106701}){const _0x406e5c=_0x290871;let _0x3134b1=_0xe276a8(_0x4b0f72),_0x591390=(_0x3fe1df==null?void 0x0:_0x3fe1df['conditions'])??[];return _0x3c00a1('div',{'data-dashboard-filter-inspector':!0x0,'className':'univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','children':[_0x591390[_0x406e5c(0x3a8)]((_0x1b63fd,_0x18dcde)=>{const _0x4dff00=_0x406e5c;let _0x2d3128=_0x352512['find'](_0x433dcb=>_0x433dcb['id']===_0x1b63fd[_0x4dff00(0x48a)])??_0x352512[0x0],_0x5a6d60=Ma(_0x2d3128);return _0x3c00a1(_0x4dff00(0x1ab),{'className':'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','children':[_0x3c00a1(_0x4dff00(0x384),{'className':_0x4dff00(0x155),'children':[_0x414ebe(_0x296606,{'value':_0x1b63fd[_0x4dff00(0x48a)],'options':_0x352512[_0x4dff00(0x3a8)](_0x3261f6=>({'value':_0x3261f6['id'],'label':_0x3261f6[_0x4dff00(0x2a3)]})),'onChange':_0x12fc36=>{const _0x4aa5f5=_0x4dff00;let _0x56db21=_0x352512[_0x4aa5f5(0x47f)](_0x18adf3=>_0x18adf3['id']===_0x12fc36);if(!_0x56db21)return;let _0xf793be=Ma(_0x56db21)[0x0];_0x2e5cd2(ja(_0x3fe1df,_0x18dcde,Aa(_0x56db21,_0xf793be)));}}),_0x414ebe(_0x5d2b24,{'type':_0x4dff00(0x30b),'variant':_0x4dff00(0x476),'aria-label':_0x3134b1['t'](_0x4dff00(0x34d)),'className':_0x4dff00(0x160),'onClick':()=>_0x2e5cd2(ka(_0x3fe1df,_0x591390[_0x4dff00(0x42d)]((_0xa8457,_0x1301d4)=>_0x1301d4!==_0x18dcde))),'children':_0x414ebe(_0x2f343c,{})})]}),_0x414ebe(_0x296606,{'value':_0x1b63fd[_0x4dff00(0x316)],'options':_0x5a6d60[_0x4dff00(0x3a8)](_0x864297=>({'value':_0x864297,'label':_0x3134b1['t'](Ta[_0x864297])})),'onChange':_0x4b8ae4=>{const _0x415c83=_0x4dff00;let _0x1c3a45=_0x5a6d60[_0x415c83(0x47f)](_0x28c068=>_0x28c068===_0x4b8ae4);_0x1c3a45&&_0x2e5cd2(ja(_0x3fe1df,_0x18dcde,{'operator':_0x1c3a45,'operand':Na(_0x2d3128)}));}}),Pa(_0x1b63fd[_0x4dff00(0x316)])&&_0x414ebe(Oa,{'field':_0x2d3128,'value':_0x1b63fd[_0x4dff00(0x312)],'onChange':_0x3d9aad=>_0x2e5cd2(ja(_0x3fe1df,_0x18dcde,{'operand':_0x3d9aad}))})]},La(_0x591390,_0x1b63fd,_0x18dcde));}),_0x3c00a1(_0x5d2b24,{'type':_0x406e5c(0x30b),'variant':_0x406e5c(0x476),'className':_0x406e5c(0x44a),'disabled':!_0x352512[_0x406e5c(0x151)],'onClick':()=>{let _0x44e9e2=_0x352512[0x0];if(!_0x44e9e2)return;let _0x56b907=Ma(_0x44e9e2)[0x0];_0x2e5cd2(ka(_0x3fe1df,[..._0x591390,Aa(_0x44e9e2,_0x56b907)]));},'children':[_0x414ebe(_0x2dc2bd,{}),_0x3134b1['t'](_0x406e5c(0x364))]}),_0x591390['length']>0x0&&_0x414ebe(_0x5d2b24,{'type':_0x406e5c(0x30b),'variant':_0x406e5c(0x476),'className':_0x406e5c(0x35a),'onClick':_0x106701,'children':_0x3134b1['t'](_0x406e5c(0x45b))})]});}function Oa({disabled:_0x534ccc,field:_0x4d260f,onChange:_0x20d7d3,value:_0x38d382}){const _0x5e70c6=_0x290871;let _0x233561=_0xe276a8(_0x4b0f72),[_0x311d37,_0x4cdbb9]=_0x3f626c({'value':_0x38d382,'text':String(_0x38d382??'')});Object['is'](_0x311d37[_0x5e70c6(0x1c2)],_0x38d382)||_0x4cdbb9({'value':_0x38d382,'text':String(_0x38d382??'')});let _0x34143d=_0x311d37['text'],_0x5b2f0d=_0x48de8d=>_0x4cdbb9({'value':_0x38d382,'text':_0x48de8d}),_0x201e3b=_0x4d260f==null?void 0x0:_0x4d260f[_0x5e70c6(0x183)];if(_0x201e3b===_0x5e006f['Checkbox']){let _0x55a707=_0x38d382===!0x0||_0x38d382==='true';return _0x3c00a1(_0x5d2b24,{'type':_0x5e70c6(0x30b),'variant':'default','disabled':_0x534ccc,'className':_0x5e70c6(0x213),'onClick':()=>_0x20d7d3(!_0x55a707),'children':[_0x414ebe(_0x283511,{'checked':_0x55a707,'disabled':_0x534ccc,'onChange':()=>void 0x0}),_0x55a707?_0x233561['t']('bases-dashboard-ui.dashboardInspector.checked'):_0x233561['t']('bases-dashboard-ui.dashboardInspector.unchecked')]});}return Ra(_0x201e3b)?_0x534ccc?_0x414ebe(_0x5d2b24,{'type':_0x5e70c6(0x30b),'variant':'default','className':'univer-w-full','disabled':!0x0,'children':_0x1a7bb5(_0x38d382==null||_0x38d382===''?void 0x0:String(_0x38d382))['format']('YYYY-MM-DD')}):_0x414ebe(_0x34c307,{'className':_0x5e70c6(0x35a),'value':_0x1a7bb5(_0x38d382==null||_0x38d382===''?void 0x0:String(_0x38d382))[_0x5e70c6(0x486)](),'onValueChange':_0xed5370=>_0x20d7d3(_0x1a7bb5(_0xed5370)[_0x5e70c6(0x30f)](_0x5e70c6(0x14e)))}):Ba(_0x4d260f)?_0x414ebe(_0x2eb6e4,{'className':_0x5e70c6(0x35a),'disabled':_0x534ccc,'value':Array[_0x5e70c6(0x1e7)](_0x38d382)?_0x38d382[_0x5e70c6(0x3a8)](String):[],'options':Fa(_0x4d260f),'onChange':_0x20d7d3}):_0x201e3b===_0x5e006f[_0x5e70c6(0x192)]||_0x201e3b===_0x5e006f[_0x5e70c6(0x263)]||_0x201e3b===_0x5e006f['Person']?_0x414ebe(_0x296606,{'className':_0x5e70c6(0x35a),'disabled':_0x534ccc,'value':String(_0x38d382??''),'options':[{'value':'','label':_0x233561['t'](_0x5e70c6(0x278))},...Fa(_0x4d260f)],'onChange':_0x20d7d3}):za(_0x201e3b)?_0x414ebe(_0x448a93,{'className':_0x5e70c6(0x35a),'disabled':_0x534ccc,'inputMode':'decimal','value':_0x34143d,'aria-invalid':_0x34143d!==''&&!Number[_0x5e70c6(0x433)](Number(_0x34143d)),'onChange':_0x3ba1eb=>{const _0x37ec87=_0x5e70c6;_0x5b2f0d(_0x3ba1eb),_0x3ba1eb===''?_0x20d7d3(''):Number[_0x37ec87(0x433)](Number(_0x3ba1eb))&&_0x20d7d3(Number(_0x3ba1eb));},'onBlur':()=>_0x5b2f0d(String(_0x38d382??''))}):_0x414ebe(_0x448a93,{'disabled':_0x534ccc,'value':String(_0x38d382??''),'placeholder':_0x233561['t']('bases-dashboard-ui.dashboardInspector.enterValue'),'onChange':_0x20d7d3});}function ka(_0x286b39,_0x2fc849){const _0xb0d1e6=_0x290871;return{'conjunction':(_0x286b39==null?void 0x0:_0x286b39[_0xb0d1e6(0x253)])??_0x369900[_0xb0d1e6(0x36d)],'conditions':_0x2fc849};}function Aa(_0x22cbc8,_0x2dc01f){return Pa(_0x2dc01f)?{'fieldId':_0x22cbc8['id'],'operator':_0x2dc01f,'operand':Na(_0x22cbc8)}:{'fieldId':_0x22cbc8['id'],'operator':_0x2dc01f};}function ja(_0x30793c,_0x35c583,_0x406af0){const _0xa43fd7=_0x290871;return ka(_0x30793c,((_0x30793c==null?void 0x0:_0x30793c[_0xa43fd7(0x338)])??[])[_0xa43fd7(0x3a8)]((_0x49a42a,_0x549a74)=>_0x549a74===_0x35c583?{..._0x49a42a,..._0x406af0}:_0x49a42a));}function Ma(_0x320a90){const _0x2997e4=_0x290871;let _0x444bb3=[_0x5cc925['IS_EMPTY'],_0x5cc925['IS_NOT_EMPTY']];switch(_0x320a90==null?void 0x0:_0x320a90['type']){case _0x5e006f['Number']:case _0x5e006f[_0x2997e4(0x3b6)]:case _0x5e006f[_0x2997e4(0x3e0)]:case _0x5e006f['Rating']:return[_0x5cc925['IS'],_0x5cc925['IS_NOT'],_0x5cc925['GREATER_THAN'],_0x5cc925[_0x2997e4(0x319)],..._0x444bb3];case _0x5e006f[_0x2997e4(0x28d)]:case _0x5e006f[_0x2997e4(0x2e5)]:case _0x5e006f[_0x2997e4(0x371)]:return[_0x5cc925['IS'],_0x5cc925[_0x2997e4(0x469)],_0x5cc925['BEFORE'],_0x5cc925[_0x2997e4(0x291)],..._0x444bb3];case _0x5e006f['Checkbox']:return[_0x5cc925['IS'],_0x5cc925[_0x2997e4(0x469)]];default:return[_0x5cc925['IS'],_0x5cc925[_0x2997e4(0x469)],_0x5cc925['CONTAINS'],_0x5cc925[_0x2997e4(0x3d0)],..._0x444bb3];}}function Na(_0x66d79c){const _0x345878=_0x290871;return _0x66d79c?_0x66d79c['type']===_0x5e006f[_0x345878(0x330)]?!0x1:Ra(_0x66d79c[_0x345878(0x183)])?_0x1a7bb5()[_0x345878(0x30f)](_0x345878(0x14e)):Ba(_0x66d79c)?[]:'':'';}function Pa(_0x307354){const _0x2b427e=_0x290871;return _0x307354!==_0x5cc925[_0x2b427e(0x19a)]&&_0x307354!==_0x5cc925[_0x2b427e(0x1a9)];}function Fa(_0x2b1344){const _0x5c96d3=_0x290871;var _0x36b3b5;return(Array[_0x5c96d3(0x1e7)](_0x2b1344==null||(_0x36b3b5=_0x2b1344['config'])==null?void 0x0:_0x36b3b5[_0x5c96d3(0x209)])?_0x2b1344['config'][_0x5c96d3(0x209)]:[])['map']((_0x61e54a,_0x1aff41)=>{const _0x6e0b87=_0x5c96d3;if(typeof _0x61e54a==_0x6e0b87(0x26b))return{'label':_0x61e54a,'value':_0x61e54a};if(!Ia(_0x61e54a))return{'label':String(_0x1aff41+0x1),'value':String(_0x1aff41+0x1)};let _0x37e8a3=_0x61e54a,_0x4a2e1f=String(_0x37e8a3[_0x6e0b87(0x2a3)]??_0x37e8a3['id']??_0x1aff41+0x1),_0xb46f49=String(_0x37e8a3['id']??_0x4a2e1f);return{'label':_0x4a2e1f,'value':/^opt-\d+$/['test'](_0xb46f49)?_0x4a2e1f:_0xb46f49};});}function Ia(_0x30bfa3){const _0x3037da=_0x290871;return typeof _0x30bfa3==_0x3037da(0x30e)&&!!_0x30bfa3;}function La(_0x158bc2,_0x3c52f9,_0x176014){const _0x1208ad=_0x290871;let _0x2641e5=JSON[_0x1208ad(0x32a)](_0x3c52f9);return _0x2641e5+'-'+_0x158bc2[_0x1208ad(0x234)](0x0,_0x176014)[_0x1208ad(0x42d)](_0x1ba6e7=>JSON[_0x1208ad(0x32a)](_0x1ba6e7)===_0x2641e5)[_0x1208ad(0x151)];}function Ra(_0x347f3d){const _0x4b9f32=_0x290871;return _0x347f3d===_0x5e006f[_0x4b9f32(0x28d)]||_0x347f3d===_0x5e006f[_0x4b9f32(0x2e5)]||_0x347f3d===_0x5e006f[_0x4b9f32(0x371)];}function za(_0x5c595d){const _0x1a2cc0=_0x290871;return _0x5c595d===_0x5e006f[_0x1a2cc0(0x196)]||_0x5c595d===_0x5e006f[_0x1a2cc0(0x3b6)]||_0x5c595d===_0x5e006f[_0x1a2cc0(0x3e0)]||_0x5c595d===_0x5e006f[_0x1a2cc0(0x39f)];}function _0x29b7(_0x2eea85,_0x15ca81){_0x2eea85=_0x2eea85-0x13a;const _0x5bbc58=_0x5bbc();let _0x29b7c9=_0x5bbc58[_0x2eea85];return _0x29b7c9;}function Ba(_0x164571){const _0x392978=_0x290871;var _0x225e90;return(_0x164571==null?void 0x0:_0x164571[_0x392978(0x183)])===_0x5e006f[_0x392978(0x1ae)]||(_0x164571==null?void 0x0:_0x164571[_0x392978(0x183)])===_0x5e006f[_0x392978(0x263)]||(_0x164571==null?void 0x0:_0x164571[_0x392978(0x183)])===_0x5e006f[_0x392978(0x340)]&&((_0x225e90=_0x164571[_0x392978(0x193)])==null?void 0x0:_0x225e90['allowMultiple'])===!0x0;}function Va({base:_0xdd4304,chartRuntime:_0x5371e7,onChange:_0x9e0e9c,onClose:_0x3dab76,onSelectBackgroundImage:_0x4510f7,onSelectImage:_0x3b34cb,unitId:_0x348ac6,widget:_0x2078ff}){const _0x7eb746=_0x290871;let _0xc9a43d=_0xe276a8(_0x299365),_0x463f8a=_0xe276a8(_0x4b0f72),_0x1277b0=_0xdd4304[_0x7eb746(0x18e)](),_0x4606fe=_0x7eb746(0x1b9)in _0x2078ff?_0x1277b0[_0x7eb746(0x377)][_0x2078ff[_0x7eb746(0x1b9)]]:void 0x0,_0x5df7e7=_0x2078ff['type']===_0x39775d[_0x7eb746(0x26a)]?_0x4606fe==null?void 0x0:_0x4606fe[_0x7eb746(0x483)][_0x2078ff[_0x7eb746(0x154)]]:void 0x0,_0x4be288=_0x463f8a['t'](Ja(_0x2078ff));return _0x3c00a1(_0x7eb746(0x3dc),{'data-dashboard-inspector':!0x0,'className':'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','children':[_0x3c00a1(_0x7eb746(0x38b),{'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':[_0x414ebe('h3',{'className':_0x7eb746(0x32e),'children':_0x4be288}),_0x414ebe(_0x5d2b24,{'type':_0x7eb746(0x30b),'size':_0x7eb746(0x231),'variant':'text','aria-label':_0x463f8a['t'](_0x7eb746(0x48c)),'onClick':_0x3dab76,'children':_0x414ebe(_0x2f343c,{})})]}),_0x2078ff['type']===_0x39775d[_0x7eb746(0x26a)]&&(qa(_0x5df7e7)&&_0x5371e7?_0x414ebe(ba,{'runtime':_0x5371e7,'sourceChart':_0x5df7e7[_0x7eb746(0x193)]['chart'],'sourceName':((_0x4606fe==null?void 0x0:_0x4606fe[_0x7eb746(0x2a3)])??'')+_0x7eb746(0x1de)+_0x5df7e7['name'],'widget':_0x2078ff,'onChange':_0x9e0e9c,'onEditData':()=>{const _0x582408=_0x7eb746;_0xc9a43d[_0x582408(0x25b)](_0x32f41c['id'],{'unitId':_0x348ac6,'tableId':_0x2078ff['tableId'],'viewId':_0x2078ff[_0x582408(0x154)]})[_0x582408(0x147)](()=>void 0x0);}}):_0x414ebe(Ga,{'message':qa(_0x5df7e7)?_0x463f8a['t'](_0x7eb746(0x144)):_0x463f8a['t'](_0x7eb746(0x2be))})),_0x2078ff[_0x7eb746(0x183)]===_0x39775d[_0x7eb746(0x474)]&&_0x414ebe(Ca,{'base':_0xdd4304,'widget':_0x2078ff,'onChange':_0x9e0e9c,'onSelectBackgroundImage':_0x4510f7}),_0x2078ff[_0x7eb746(0x183)]===_0x39775d[_0x7eb746(0x324)]&&_0x414ebe(Ua,{'base':_0xdd4304,'onChange':_0x9e0e9c,'widget':_0x2078ff}),_0x2078ff['type']===_0x39775d[_0x7eb746(0x300)]&&_0x414ebe(Wa,{'onChange':_0x9e0e9c,'widget':_0x2078ff}),_0x2078ff[_0x7eb746(0x183)]===_0x39775d['Image']&&_0x414ebe(Ha,{'onChange':_0x9e0e9c,'onSelectImage':_0x3b34cb,'widget':_0x2078ff})]});}function Ha({onChange:_0x4fafd8,onSelectImage:_0x48a34e,widget:_0x2769c6}){const _0x122d18=_0x290871;let _0x50e715=_0xe276a8(_0x4b0f72);return _0x3c00a1(_0x122d18(0x384),{'className':'univer-grid\x20univer-gap-4\x20univer-p-4','children':[_0x3c00a1(_0x5d2b24,{'className':_0x122d18(0x35a),'onClick':()=>_0x48a34e()[_0x122d18(0x1fb)](_0x21943c=>_0x21943c&&_0x4fafd8({..._0x2769c6,'source':_0x21943c[_0x122d18(0x237)],'sourceType':_0x21943c[_0x122d18(0x260)],'alt':_0x21943c[_0x122d18(0x2a3)]}))[_0x122d18(0x147)](()=>void 0x0),'children':[_0x414ebe(_0x2dc2bd,{}),_0x50e715['t'](_0x122d18(0x18a))]}),_0x3c00a1('label',{'className':_0x122d18(0x45a),'children':[_0x414ebe(_0x122d18(0x415),{'children':_0x50e715['t'](_0x122d18(0x159))}),_0x414ebe(_0x4110dc,{'items':[{'value':_0x122d18(0x257),'label':_0x50e715['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x122d18(0x413),'label':_0x50e715['t'](_0x122d18(0x208))},{'value':_0x122d18(0x258),'label':_0x50e715['t'](_0x122d18(0x374))}],'value':_0x2769c6[_0x122d18(0x3f8)]??_0x122d18(0x257),'onChange':_0x3fb397=>_0x4fafd8({..._0x2769c6,'displayMode':_0x3fb397})[_0x122d18(0x147)](()=>void 0x0)})]})]});}function Ua({base:_0x3bdfd7,onChange:_0x2dfad0,widget:_0x5d7ccd}){const _0x64f967=_0x290871;let _0x318c61=_0x3bdfd7[_0x64f967(0x18e)]()[_0x64f967(0x377)][_0x5d7ccd[_0x64f967(0x1b9)]],_0x394eed=_0x318c61==null?void 0x0:_0x318c61[_0x64f967(0x40f)][_0x64f967(0x47f)](_0x2b0569=>_0x318c61[_0x64f967(0x483)][_0x2b0569]),_0x3e53c1=_0x394eed?_0x318c61==null?void 0x0:_0x318c61[_0x64f967(0x483)][_0x394eed]:void 0x0,_0x50da8c=_0x318c61&&_0x3e53c1?_0x5dcd9e(_0x318c61,_0x3e53c1):[];return _0x414ebe(Da,{'fields':_0x50da8c,'filter':_0x5d7ccd[_0x64f967(0x42d)],'onChange':_0x13b901=>_0x2dfad0({..._0x5d7ccd,'filter':_0x13b901})[_0x64f967(0x147)](()=>void 0x0),'onClear':()=>_0x2dfad0({..._0x5d7ccd,'filter':null})[_0x64f967(0x147)](()=>void 0x0)});}function Wa({onChange:_0x26b9a7,widget:_0x54cd2c}){const _0x5e9685=_0x290871;let _0x5d9cd3=_0xe276a8(_0x4b0f72),_0x26d8d0=_0xe276a8(_0x32e309),_0x26f52f=_0x45d384(()=>_0x26d8d0[_0x5e9685(0x343)],_0x26d8d0[_0x5e9685(0x212)](),!0x1,[_0x26d8d0]),_0x12c2e3=Hr(_0x54cd2c),_0xa4e1d4=_0x232498=>_0x26b9a7({..._0x54cd2c,'appearance':{..._0x12c2e3,..._0x232498}})[_0x5e9685(0x147)](()=>void 0x0);return _0x3c00a1(_0x5e9685(0x384),{'className':_0x5e9685(0x461),'children':[_0x414ebe(_0x27cc24,{'defaultValue':Ur(_0x54cd2c[_0x5e9685(0x270)]),'rows':0x8,'onBlur':_0x3a2be3=>_0x26b9a7({..._0x54cd2c,'document':Wr(_0x54cd2c[_0x5e9685(0x270)],_0x3a2be3[_0x5e9685(0x1d8)][_0x5e9685(0x1c2)])})[_0x5e9685(0x147)](()=>void 0x0)}),_0x414ebe(_0x43bcb4,{'emptyLabel':_0x5d9cd3['t'](_0x5e9685(0x301)),'label':_0x5d9cd3['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x26f52f[_0x5e9685(0x3cd)][0x0],'resetLabel':_0x5d9cd3['t'](_0x5e9685(0x337)),'value':_0x12c2e3[_0x5e9685(0x16a)]??null,'onChange':_0x3a61c6=>_0xa4e1d4({'backgroundColor':_0x3a61c6??void 0x0})}),_0x414ebe(_0x43bcb4,{'emptyLabel':_0x5d9cd3['t'](_0x5e9685(0x481)),'label':_0x5d9cd3['t'](_0x5e9685(0x481)),'pickerFallbackValue':_0x26f52f[_0x5e9685(0x3cd)][0x3e8],'resetLabel':_0x5d9cd3['t'](_0x5e9685(0x337)),'value':_0x12c2e3['textColor']??null,'onChange':_0x28327e=>_0xa4e1d4({'textColor':_0x28327e??void 0x0})}),_0x414ebe(Ka,{'label':_0x5d9cd3['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x414ebe(_0x4110dc,{'items':[{'value':_0x5e9685(0x2f9),'label':_0x5d9cd3['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':'center','label':_0x5d9cd3['t'](_0x5e9685(0x3ef))},{'value':_0x5e9685(0x33f),'label':_0x5d9cd3['t'](_0x5e9685(0x3aa))}],'value':_0x12c2e3[_0x5e9685(0x1f6)],'onChange':_0x2d7514=>_0xa4e1d4({'alignment':_0x2d7514})})}),_0x3c00a1(Ka,{'label':_0x5d9cd3['t'](_0x5e9685(0x46a)),'children':[_0x414ebe(_0x4110dc,{'items':[{'value':'auto','label':_0x5d9cd3['t'](_0x5e9685(0x352))},{'value':'custom','label':_0x5d9cd3['t'](_0x5e9685(0x2d8))}],'value':_0x12c2e3[_0x5e9685(0x307)],'onChange':_0x2664ed=>_0xa4e1d4({'fontSizeMode':_0x2664ed})}),_0x12c2e3[_0x5e9685(0x307)]===_0x5e9685(0x3b7)&&_0x414ebe(_0x2963f5,{'className':'univer-mt-2','min':0xa,'max':0x78,'value':_0x12c2e3[_0x5e9685(0x1a7)],'onChange':_0x3be20c=>_0xa4e1d4({'fontSize':_0x3be20c??0x12,'fontSizeMode':_0x5e9685(0x3b7)})})]})]});}function Ga({message:_0x3ffaaa}){const _0x37607c=_0x290871;return _0x414ebe(_0x37607c(0x384),{'className':_0x37607c(0x40b),'children':_0x3ffaaa});}function Ka({children:_0x4f74fd,label:_0x3a5723}){const _0x329a0f=_0x290871;return _0x3c00a1('div',{'role':_0x329a0f(0x1d4),'aria-':!0x0,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x414ebe(_0x329a0f(0x415),{'children':_0x3a5723}),_0x4f74fd]});}function qa(_0x1dfa2c){const _0x2e7b91=_0x290871;return(_0x1dfa2c==null?void 0x0:_0x1dfa2c[_0x2e7b91(0x183)])===_0x3744eb[_0x2e7b91(0x250)]&&typeof _0x1dfa2c[_0x2e7b91(0x193)]==_0x2e7b91(0x30e)&&_0x1dfa2c[_0x2e7b91(0x193)]!==null&&_0x2e7b91(0x145)in _0x1dfa2c['config']&&_0x2e7b91(0x3a5)in _0x1dfa2c[_0x2e7b91(0x193)];}function Ja(_0x3dccbe){const _0x39b4c4=_0x290871;switch(_0x3dccbe[_0x39b4c4(0x183)]){case _0x39775d['PivotChart']:return _0x39b4c4(0x2fa);case _0x39775d['TableFilter']:return _0x39b4c4(0x296);case _0x39775d[_0x39b4c4(0x300)]:return _0x39b4c4(0x37b);case _0x39775d[_0x39b4c4(0x3d2)]:return _0x39b4c4(0x26e);case _0x39775d['FormulaShape']:return _0x39b4c4(0x1d2);}}function Ya({onDelete:_0x1e14d2,onEdit:_0x249c38}){const _0x3d2a5b=_0x290871;let _0x2569bb=_0xe276a8(_0x4b0f72),_0x19b773=_0x2569bb['t'](_0x3d2a5b(0x16e)),_0x4081f7=_0x2569bb['t'](_0x3d2a5b(0x454)),_0x337d43=_0x2569bb['t']('bases-dashboard-ui.dashboard.widgetActions');return _0x414ebe(_0x4acc99,{'items':[{'type':'item','children':_0x3c00a1(_0x3d2a5b(0x415),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x414ebe(_0xd735a9,{'className':'univer-size-4','aria-hidden':_0x3d2a5b(0x2b6)}),_0x414ebe('span',{'children':_0x19b773})]}),'onSelect':_0x249c38},{'type':'separator'},{'type':_0x3d2a5b(0x3de),'variant':_0x3d2a5b(0x2ca),'children':_0x3c00a1(_0x3d2a5b(0x415),{'className':_0x3d2a5b(0x21b),'children':[_0x414ebe(_0x152022,{'className':_0x3d2a5b(0x2e0),'aria-hidden':'true'}),_0x414ebe(_0x3d2a5b(0x415),{'children':_0x4081f7})]}),'onSelect':_0x1e14d2}],'children':_0x414ebe(_0x5d2b24,{'type':_0x3d2a5b(0x30b),'size':_0x3d2a5b(0x231),'variant':_0x3d2a5b(0x476),'title':_0x337d43,'aria-label':_0x337d43,'className':'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','children':_0x414ebe(_0x37e5b5,{'className':_0x3d2a5b(0x2e0),'aria-hidden':_0x3d2a5b(0x2b6)})})});}function Xa({dashboardId:_0x328b35,presentation:_0x30fd09=!0x1,unitId:_0x1efaba}){const _0x1b6ef4=_0x290871;let _0x10a715=_0xe276a8(_0x299365),_0x561cb6=_0xe276a8(_0xdb66e),_0xadc272=_0xe276a8(_0x1c9925),_0x213fd0=_0xe276a8(_0x5abbf9),_0x2b2210=_0xe276a8(_0x4b0f72),_0x3935cb=_0xe276a8(_0x1aeb78),_0x1af82c=_0xe276a8(_0x2ce242),_0x44e155=_0x3987b(null),[_0x2aaa9a,_0x44e2a8]=_0x3f626c(!0x1),[_0x3b8d0a,_0x5131a2]=_0x3f626c(),[_0x1817fc,_0x2d40e0]=_0x3f626c(!0x1),[_0x406dae,_0x3841c1]=_0x3f626c(()=>new Map()),_0x489bfb=_0x12bed3((_0x41951e,_0x112b86)=>{_0x3841c1(_0x33ee28=>{const _0x7b00de=_0x29b7;let _0x22deab=new Map(_0x33ee28);return _0x112b86?_0x22deab[_0x7b00de(0x32b)](_0x41951e,_0x112b86):_0x22deab['delete'](_0x41951e),_0x22deab;});},[]),_0x4cf899=_0x45d384(()=>_0x3935cb['change$'][_0x1b6ef4(0x453)](_0x263c89(()=>_0x3935cb['getDashboard'](_0x1efaba,_0x328b35))),_0x3935cb[_0x1b6ef4(0x40d)](_0x1efaba,_0x328b35),!0x1,[_0x328b35,_0x3935cb,_0x1efaba]),_0x253cce=_0x213fd0[_0x1b6ef4(0x3be)](_0x1efaba,_0x1516ee[_0x1b6ef4(0x3c2)]),_0x4a63e5=_0x45d384(()=>_0x1af82c[_0x1b6ef4(0x2ed)],{'undos':0x0,'redos':0x0},!0x1,[_0x1af82c]),_0x6e5a17=vr(_0x1efaba,_0x328b35);if(_0x330c05(()=>{const _0x151628=_0x1b6ef4;_0x213fd0[_0x151628(0x173)](_0x1efaba),_0x213fd0[_0x151628(0x3bb)](_0x1efaba);},[_0x213fd0,_0x1efaba]),_0x330c05(()=>{const _0x2ab989=_0x1b6ef4;let _0x37d3fa=_0x44e155['current'],_0x311329=_0x37d3fa==null?void 0x0:_0x37d3fa[_0x2ab989(0x354)];if(!_0x37d3fa||!_0x311329)return;let _0x564163=()=>_0x2d40e0(_0x311329[_0x2ab989(0x425)]===_0x311329['documentElement']),_0x37bac1=_0x535fca=>{const _0x2dd2b5=_0x2ab989;_0x535fca[_0x2dd2b5(0x29d)]===_0x2dd2b5(0x140)&&!_0x535fca[_0x2dd2b5(0x3c3)]&&_0x311329[_0x2dd2b5(0x425)]===_0x311329[_0x2dd2b5(0x372)]&&_0x311329[_0x2dd2b5(0x29c)]()[_0x2dd2b5(0x147)](_0x564163);};return _0x311329['addEventListener'](_0x2ab989(0x27f),_0x564163),_0x311329[_0x2ab989(0x232)](_0x2ab989(0x3df),_0x37bac1),()=>{const _0x498e8d=_0x2ab989;_0x311329['removeEventListener'](_0x498e8d(0x27f),_0x564163),_0x311329[_0x498e8d(0x309)](_0x498e8d(0x3df),_0x37bac1);};},[]),!_0x4cf899||!_0x253cce)return null;let _0x21fb3e=_0x42b224=>_0x10a715['executeCommand'](_0x2e234a['id'],{'unitId':_0x1efaba,'dashboardId':_0x328b35,'widget':_0x42b224})[_0x1b6ef4(0x147)](()=>void 0x0),_0x3def5c=(_0x49af37,_0x3c598c,_0x8d80ac)=>{const _0x2d5d3c=_0x1b6ef4;let _0x4d5893=Math[_0x2d5d3c(0x399)](0x0,..._0x4cf899[_0x2d5d3c(0x47d)][_0x2d5d3c(0x2af)](_0x49057a=>{const _0x395ead=_0x2d5d3c;var _0x2861e5;let _0x556cb8=(_0x2861e5=_0x4cf899['widgets'][_0x49057a])==null?void 0x0:_0x2861e5[_0x395ead(0x2c7)];return _0x556cb8?[_0x556cb8[_0x395ead(0x3a9)]+_0x556cb8[_0x395ead(0x220)]]:[];})),_0x173b66=_0x2d5d3c(0x3cf)+_0x89ef13(0x8),_0x40fe08={'column':0x0,'row':_0x4d5893,'columnSpan':_0x3c598c,'rowSpan':_0x8d80ac};switch(_0x49af37[_0x2d5d3c(0x183)]){case _0x39775d['PivotChart']:return _0x21fb3e({..._0x49af37,'id':_0x173b66,'layout':_0x40fe08});case _0x39775d[_0x2d5d3c(0x324)]:return _0x21fb3e({..._0x49af37,'id':_0x173b66,'layout':_0x40fe08});case _0x39775d['Text']:return _0x21fb3e({..._0x49af37,'id':_0x173b66,'layout':_0x40fe08});case _0x39775d[_0x2d5d3c(0x3d2)]:return _0x21fb3e({..._0x49af37,'id':_0x173b66,'layout':_0x40fe08});case _0x39775d[_0x2d5d3c(0x474)]:return _0x21fb3e({..._0x49af37,'id':_0x173b66,'layout':_0x40fe08});}},_0x502ff8=_0x253cce[_0x1b6ef4(0x18e)](),_0x271d10=_0x502ff8[_0x1b6ef4(0x284)]['flatMap'](_0x4b363c=>{const _0x2c2057=_0x1b6ef4;let _0x4a4be8=_0x502ff8[_0x2c2057(0x377)][_0x4b363c];if(!_0x4a4be8)return[];let _0x3f4435=_0x4a4be8['viewOrder'][_0x2c2057(0x2af)](_0x4a40d5=>{const _0x24f906=_0x2c2057;let _0xef113=_0x4a4be8[_0x24f906(0x483)][_0x4a40d5];return io(_0xef113)?[{'type':_0x24f906(0x3de),'children':_0xef113['name'],'onSelect':()=>_0x3def5c({'type':_0x39775d[_0x24f906(0x26a)],'tableId':_0x4b363c,'pivotViewId':_0x4a40d5,'chart':{..._0xef113[_0x24f906(0x193)][_0x24f906(0x3a5)]}},0x6,0xa)}]:[];});return[{'type':_0x2c2057(0x303),'children':_0x4a4be8[_0x2c2057(0x2a3)],'options':[..._0x3f4435,..._0x3f4435[_0x2c2057(0x151)]?[{'type':_0x2c2057(0x2b1)}]:[],{'type':'item','children':_0x2b2210['t'](_0x2c2057(0x296)),'onSelect':()=>_0x3def5c({'type':_0x39775d[_0x2c2057(0x324)],'tableId':_0x4b363c,'filter':null},0x6,0x8)}]}];}),_0x2a3458=[..._0x271d10,..._0x271d10[_0x1b6ef4(0x151)]?[{'type':_0x1b6ef4(0x2b1)}]:[],{'type':_0x1b6ef4(0x3de),'children':_0x2b2210['t'](_0x1b6ef4(0x37b)),'onSelect':()=>_0x3def5c({'type':_0x39775d[_0x1b6ef4(0x300)],'document':eo()},0x4,0x6)},{'type':_0x1b6ef4(0x3de),'children':_0x2b2210['t'](_0x1b6ef4(0x26e)),'onSelect':()=>to(_0x561cb6)[_0x1b6ef4(0x1fb)](_0x513319=>_0x513319&&_0x3def5c({'type':_0x39775d[_0x1b6ef4(0x3d2)],'source':_0x513319[_0x1b6ef4(0x237)],'sourceType':_0x513319[_0x1b6ef4(0x260)],'alt':_0x513319['name'],'displayMode':'cover'},0x4,0x6))},{'type':_0x1b6ef4(0x3de),'children':_0x2b2210['t'](_0x1b6ef4(0x1d2)),'onSelect':()=>{const _0x16bf22=_0x1b6ef4;let _0xeff115=_0x502ff8[_0x16bf22(0x284)]['find'](_0x303b41=>_0x502ff8['tables'][_0x303b41]);_0xeff115&&_0x3def5c({'type':_0x39775d[_0x16bf22(0x474)],'tableId':_0xeff115,'shapeType':_0x25ce73[_0x16bf22(0x1ce)],'shapeData':_0x501502(),'description':_0x2b2210['t'](_0x16bf22(0x1d2))},0x4,0x6);}}],_0x1de466=_0x3b8d0a?_0x4cf899[_0x1b6ef4(0x33d)][_0x3b8d0a]:void 0x0,_0x2b8e39=async()=>{const _0x1cab1c=_0x1b6ef4;let _0x132bf3=_0x44e155[_0x1cab1c(0x2e7)];if(!_0x132bf3)return;let _0x5b8186=_0x132bf3[_0x1cab1c(0x354)];_0x5b8186[_0x1cab1c(0x425)]===_0x5b8186[_0x1cab1c(0x372)]?await _0x5b8186[_0x1cab1c(0x29c)]():await _0x5b8186[_0x1cab1c(0x372)][_0x1cab1c(0x195)]();},_0x424b6c=_0x30fd09||_0x1817fc,_0x25a7a2=_0x6e5a17&&!_0x424b6c;return _0x3c00a1(_0x1b6ef4(0x384),{'ref':_0x44e155,'className':'\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'+(_0x1817fc?_0x1b6ef4(0x317):_0x1b6ef4(0x18b))+_0x1b6ef4(0x2cf),'children':[!_0x424b6c&&_0x3c00a1(_0x1b6ef4(0x38b),{'className':_0x1b6ef4(0x1f1),'children':[_0x414ebe(_0x3c5010,{'className':_0x1b6ef4(0x357)}),_0x414ebe('h2',{'className':_0x1b6ef4(0x32e),'children':_0x4cf899[_0x1b6ef4(0x2a3)]}),_0x414ebe(_0x276888,{'target':{'unitId':_0x1efaba,'objectId':_0x3a0eab(_0x328b35),'objectType':_0x1d0cb1[_0x1b6ef4(0x306)]},'name':_0x4cf899['name'],'commandId':_0x3c4b15['id'],'exists':()=>!!_0x3935cb[_0x1b6ef4(0x40d)](_0x1efaba,_0x328b35)},_0x1efaba+'/'+_0x328b35),_0x414ebe(_0xd9e87c,{'unitId':_0x1efaba}),_0x414ebe(_0x5d2b24,{'type':_0x1b6ef4(0x30b),'size':_0x1b6ef4(0x231),'variant':_0x1b6ef4(0x476),'aria-label':_0x2b2210['t']('bases-dashboard-ui.dashboard.undo'),'disabled':!_0x6e5a17||_0x4a63e5[_0x1b6ef4(0x189)]===0x0,'onClick':()=>_0x10a715[_0x1b6ef4(0x25b)](_0x2cf828['id'])[_0x1b6ef4(0x147)](()=>void 0x0),'children':_0x414ebe(_0x4dc9e7,{})}),_0x414ebe(_0x5d2b24,{'type':_0x1b6ef4(0x30b),'size':'small','variant':_0x1b6ef4(0x476),'aria-label':_0x2b2210['t']('bases-dashboard-ui.dashboard.redo'),'disabled':!_0x6e5a17||_0x4a63e5['redos']===0x0,'onClick':()=>_0x10a715[_0x1b6ef4(0x25b)](_0x40e22e['id'])[_0x1b6ef4(0x147)](()=>void 0x0),'children':_0x414ebe(_0x9c5a81,{})}),_0x414ebe(_0x5d2b24,{'type':_0x1b6ef4(0x30b),'size':'small','variant':'text','aria-label':_0x2b2210['t'](_0x1b6ef4(0x382)),'onClick':()=>_0x2b8e39()[_0x1b6ef4(0x147)](()=>void 0x0),'children':_0x414ebe(_0x552f90,{})}),_0x414ebe(_0x4acc99,{'items':_0x2a3458,'children':_0x3c00a1(_0x5d2b24,{'variant':_0x1b6ef4(0x2c1),'disabled':!_0x6e5a17,'children':[_0x414ebe(_0x2dc2bd,{}),_0x2b2210['t']('bases-dashboard-ui.dashboard.addWidget')]})})]}),_0x3c00a1(_0x1b6ef4(0x384),{'className':_0x1b6ef4(0x472),'children':[_0x414ebe(_0x1b6ef4(0x384),{'className':_0x1b6ef4(0x1f4),'children':_0x414ebe(da,{'dashboard':_0x4cf899,'dragLabel':_0x2b2210['t'](_0x1b6ef4(0x3b1)),'editable':_0x25a7a2,'resizeLabel':_0x2b2210['t'](_0x1b6ef4(0x25e)),'widgetLabel':_0xb1fdc0=>_0x2b2210['t'](ro(_0xb1fdc0['type'])),'selectedWidgetId':_0x25a7a2?_0x3b8d0a:void 0x0,'onSelectWidget':_0x25a7a2?_0x471cbd=>{_0x5131a2(_0x471cbd),_0x471cbd||_0x44e2a8(!0x1);}:void 0x0,'onLayoutsCommit':_0x58e5fe=>{const _0x2a42ec=_0x1b6ef4;let _0x4b162c={..._0x4cf899[_0x2a42ec(0x33d)]};_0x58e5fe['forEach']((_0x28d27f,_0x527255)=>{let _0x3d9992=_0x4b162c[_0x527255];_0x3d9992&&(_0x4b162c[_0x527255]={..._0x3d9992,'layout':_0x28d27f});}),_0x10a715[_0x2a42ec(0x25b)](_0xe5ba16['id'],{'unitId':_0x1efaba,'dashboard':{..._0x4cf899,'widgets':_0x4b162c}})[_0x2a42ec(0x147)](()=>void 0x0);},'renderWidget':_0x5b007e=>_0x414ebe(Za,{'base':_0x253cce,'dashboard':_0x4cf899,'unitId':_0x1efaba,'widget':_0x5b007e,'onChange':_0x21fb3e,'onChartRuntimeChange':_0x489bfb}),'renderWidgetActions':_0x5b82a1=>_0x414ebe(Ya,{'onEdit':()=>{_0x5131a2(_0x5b82a1['id']),_0x44e2a8(!0x0);},'onDelete':()=>{const _0x59e05c=_0x1b6ef4;_0x3b8d0a===_0x5b82a1['id']&&(_0x5131a2(void 0x0),_0x44e2a8(!0x1)),_0x10a715[_0x59e05c(0x25b)](_0x3707f4['id'],{'unitId':_0x1efaba,'dashboardId':_0x328b35,'widgetId':_0x5b82a1['id']})[_0x59e05c(0x147)](()=>void 0x0);}})})}),_0x25a7a2&&_0x2aaa9a&&_0x1de466&&_0x414ebe(Va,{'base':_0x253cce,'chartRuntime':_0x406dae[_0x1b6ef4(0x44b)](_0x1de466['id']),'unitId':_0x1efaba,'widget':_0x1de466,'onChange':_0x21fb3e,'onClose':()=>_0x44e2a8(!0x1),'onSelectBackgroundImage':()=>no(_0xadc272),'onSelectImage':()=>to(_0x561cb6)})]})]});}function Za({base:_0x2bc5ff,dashboard:_0x191c63,onChange:_0x252903,onChartRuntimeChange:_0x594f0b,unitId:_0x440ba5,widget:_0x26d22b}){const _0x54354c=_0x290871;let _0x1a9bb6=_0x50478e(()=>_0x191c63['widgetOrder']['flatMap'](_0x5f2dcd=>{const _0x1c2351=_0x29b7;let _0x235bf4=_0x191c63[_0x1c2351(0x33d)][_0x5f2dcd];return(_0x235bf4==null?void 0x0:_0x235bf4[_0x1c2351(0x183)])===_0x39775d[_0x1c2351(0x324)]&&_0x235bf4[_0x1c2351(0x1b9)]===(_0x1c2351(0x1b9)in _0x26d22b?_0x26d22b[_0x1c2351(0x1b9)]:'')&&_0x235bf4[_0x1c2351(0x42d)]?[_0x235bf4[_0x1c2351(0x42d)]]:[];}),[_0x191c63,_0x26d22b]);switch(_0x26d22b[_0x54354c(0x183)]){case _0x39775d['PivotChart']:return _0x414ebe(zr,{'filters':_0x1a9bb6,'unitId':_0x440ba5,'widget':_0x26d22b,'onRuntimeChange':_0x594f0b});case _0x39775d['TableFilter']:return _0x414ebe(Ea,{'fields':Qa(_0x2bc5ff,_0x26d22b[_0x54354c(0x1b9)]),'filter':_0x26d22b[_0x54354c(0x42d)],'onChange':_0xcd670c=>_0x252903({..._0x26d22b,'filter':_0xcd670c})[_0x54354c(0x147)](()=>void 0x0)});case _0x39775d[_0x54354c(0x300)]:return _0x414ebe(Gr,{'widget':_0x26d22b});case _0x39775d['Image']:return _0x414ebe($a,{'widget':_0x26d22b});case _0x39775d[_0x54354c(0x474)]:return _0x414ebe(kr,{'dashboardId':_0x191c63['id'],'unitId':_0x440ba5,'widget':_0x26d22b});}}function Qa(_0x2129db,_0x3db823){const _0x5ab132=_0x290871;let _0x2b2012=_0x2129db[_0x5ab132(0x18e)]()[_0x5ab132(0x377)][_0x3db823],_0x3192d5=_0x2b2012==null?void 0x0:_0x2b2012[_0x5ab132(0x40f)][_0x5ab132(0x47f)](_0x18be48=>_0x2b2012[_0x5ab132(0x483)][_0x18be48]),_0x4cd844=_0x3192d5?_0x2b2012==null?void 0x0:_0x2b2012['views'][_0x3192d5]:void 0x0;return _0x2b2012&&_0x4cd844?_0x5dcd9e(_0x2b2012,_0x4cd844):[];}function $a({widget:_0x1af4f1}){const _0x464df0=_0x290871;let _0x2f6fd4=_0xe276a8(_0xdb66e),[_0x1a3bb3,_0x2ca5ca]=_0x3f626c(_0x1af4f1['sourceType']===_0x2b3585[_0x464df0(0x320)]?'':_0x1af4f1[_0x464df0(0x237)]);return _0x330c05(()=>{const _0x3852e0=_0x464df0;let _0x301ff4=!0x0;return _0x2f6fd4['getAttachmentUrl'](_0x1af4f1[_0x3852e0(0x237)],_0x1af4f1[_0x3852e0(0x260)])[_0x3852e0(0x1fb)](_0x4c78cd=>{_0x301ff4&&_0x2ca5ca(_0x4c78cd);})[_0x3852e0(0x147)](()=>void 0x0),()=>{_0x301ff4=!0x1;};},[_0x2f6fd4,_0x1af4f1[_0x464df0(0x237)],_0x1af4f1[_0x464df0(0x260)]]),_0x1a3bb3?_0x414ebe(_0x464df0(0x384),{'role':_0x1af4f1['alt']?_0x464df0(0x19c):void 0x0,'aria-label':_0x1af4f1[_0x464df0(0x35c)]||void 0x0,'data-dashboard-image':_0x1af4f1['id'],'className':_0x464df0(0x362),'style':br(_0x1a3bb3,_0x1af4f1['displayMode'])}):null;}function eo(){const _0x4dbd95=_0x290871;let _0x29a223=_0x2900cb(new Set());return{'id':_0x4dbd95(0x360)+_0x89ef13(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x29a223}]},'documentStyle':{}};}function to(_0x39c670){return new Promise(_0x4b10b7=>{const _0xa8a79c=_0x29b7;let _0x2e7135=document[_0xa8a79c(0x437)](_0xa8a79c(0x3d4));_0x2e7135[_0xa8a79c(0x183)]=_0xa8a79c(0x279),_0x2e7135[_0xa8a79c(0x2f3)]=_0xa8a79c(0x36c),_0x2e7135[_0xa8a79c(0x232)](_0xa8a79c(0x464),()=>{const _0x5245b1=_0xa8a79c;var _0x2c5cfb;let _0x1ec08a=(_0x2c5cfb=_0x2e7135[_0x5245b1(0x1bf)])==null?void 0x0:_0x2c5cfb[0x0];_0x1ec08a?_0x39c670[_0x5245b1(0x243)](_0x1ec08a)[_0x5245b1(0x1fb)](_0x3dfb0c=>{const _0x5861cf=_0x5245b1;!_0x3dfb0c[_0x5861cf(0x237)]||_0x3dfb0c[_0x5861cf(0x260)]===void 0x0?_0x4b10b7(null):_0x4b10b7({'name':_0x3dfb0c[_0x5861cf(0x2a3)],'source':_0x3dfb0c[_0x5861cf(0x237)],'sourceType':_0x3dfb0c[_0x5861cf(0x260)]});})[_0x5245b1(0x147)](()=>_0x4b10b7(null)):_0x4b10b7(null);},{'once':!0x0}),_0x2e7135[_0xa8a79c(0x334)]();});}function no(_0xf2e06f){return new Promise(_0x595694=>{const _0xd93570=_0x29b7;let _0x35158a=document[_0xd93570(0x437)](_0xd93570(0x3d4));_0x35158a[_0xd93570(0x183)]='file',_0x35158a[_0xd93570(0x2f3)]=_0xd93570(0x36c),_0x35158a[_0xd93570(0x232)]('change',()=>{const _0x157165=_0xd93570;var _0x3b5626;let _0x5d67a8=(_0x3b5626=_0x35158a[_0x157165(0x1bf)])==null?void 0x0:_0x3b5626[0x0];_0x5d67a8?_0xf2e06f[_0x157165(0x282)](_0x5d67a8)['then'](_0x14f71c=>{const _0x449580=_0x157165;if(!(_0x14f71c!=null&&_0x14f71c[_0x449580(0x237)]))_0x595694(null);else{if(_0x14f71c['base64Cache']){let _0x19de96=new Image();_0x19de96[_0x449580(0x2f2)]=_0x14f71c[_0x449580(0x43f)],_0xf2e06f[_0x449580(0x23c)](_0x14f71c[_0x449580(0x237)],_0x14f71c[_0x449580(0x293)],_0x19de96);}_0x595694({'source':_0x14f71c[_0x449580(0x237)],'sourceType':_0x14f71c[_0x449580(0x293)]});}})[_0x157165(0x147)](()=>_0x595694(null)):_0x595694(null);},{'once':!0x0}),_0x35158a['click']();});}function ro(_0x46537b){const _0xfe0276=_0x290871;switch(_0x46537b){case _0x39775d[_0xfe0276(0x26a)]:return _0xfe0276(0x2fa);case _0x39775d[_0xfe0276(0x324)]:return _0xfe0276(0x296);case _0x39775d[_0xfe0276(0x300)]:return'bases-dashboard-ui.dashboard.text';case _0x39775d['Image']:return _0xfe0276(0x26e);case _0x39775d[_0xfe0276(0x474)]:return _0xfe0276(0x1d2);}}function io(_0x1d1f06){const _0x1d90dd=_0x290871;return(_0x1d1f06==null?void 0x0:_0x1d1f06[_0x1d90dd(0x183)])===_0x3744eb[_0x1d90dd(0x250)]&&typeof _0x1d1f06[_0x1d90dd(0x193)]==_0x1d90dd(0x30e)&&_0x1d1f06[_0x1d90dd(0x193)]!==null&&_0x1d90dd(0x145)in _0x1d1f06['config']&&_0x1d90dd(0x3a5)in _0x1d1f06['config'];}const ao=[{'area':_0x1b52e3[_0x290871(0x40c)],'key':_0x290871(0x245),'label':'bases-dashboard-ui.pivot.filters'},{'area':_0x1b52e3[_0x290871(0x356)],'key':_0x290871(0x18d),'label':'bases-dashboard-ui.pivot.columns'},{'area':_0x1b52e3['Row'],'key':_0x290871(0x281),'label':'bases-dashboard-ui.pivot.rows'},{'area':_0x1b52e3[_0x290871(0x19f)],'key':_0x290871(0x167),'label':_0x290871(0x3e8)}],oo=[{'value':_0x358af4[_0x290871(0x2d0)],'localeKey':_0x290871(0x339)},{'value':_0x358af4['count'],'localeKey':'bases-dashboard-ui.pivot.count'},{'value':_0x358af4[_0x290871(0x1c3)],'localeKey':'bases-dashboard-ui.pivot.countNumbers'},{'value':_0x358af4[_0x290871(0x1db)],'localeKey':_0x290871(0x24c)},{'value':_0x358af4[_0x290871(0x399)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':_0x358af4[_0x290871(0x459)],'localeKey':_0x290871(0x1a3)},{'value':_0x358af4[_0x290871(0x33c)],'localeKey':_0x290871(0x162)},{'value':_0x358af4[_0x290871(0x367)],'localeKey':_0x290871(0x17a)},{'value':_0x358af4[_0x290871(0x21f)],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x358af4['var'],'localeKey':_0x290871(0x203)},{'value':_0x358af4[_0x290871(0x156)],'localeKey':_0x290871(0x321)}];function so(_0x5457c5){const _0xe2f2aa=_0x290871;let {config:_0x40dce7,onChange:_0x5e4fc6,table:_0x2776c5}=_0x5457c5,_0x57349b=_0xe276a8(_0x4b0f72),[_0x59c16b,_0x39807c]=_0x3f626c('fields'),[_0x11642c,_0x1ed6ba]=_0x3f626c(''),[_0xdda122,_0x356536]=_0x3f626c(null),[_0x1e739a,_0x583713]=_0x3f626c(null),[_0x38ea1d,_0x203658]=_0x3f626c(null),[_0xa3978d,_0x178e1e]=_0x3f626c(null),_0x5ac860=_0x3987b(null),_0x2c1198=_0x50478e(()=>_0x2776c5['fieldOrder'][_0xe2f2aa(0x2af)](_0x2a271f=>{const _0x1fb767=_0xe2f2aa;let _0x541ec3=_0x2776c5[_0x1fb767(0x345)][_0x2a271f];return _0x541ec3&&_0x541ec3[_0x1fb767(0x266)]!==!0x0&&_0x541ec3['type']!==_0x5e006f[_0x1fb767(0x41d)]?[_0x541ec3]:[];})[_0xe2f2aa(0x42d)](_0x114457=>_0x114457[_0xe2f2aa(0x2a3)][_0xe2f2aa(0x3da)]()[_0xe2f2aa(0x424)](_0x11642c[_0xe2f2aa(0x29a)]()['toLocaleLowerCase']())),[_0x11642c,_0x2776c5]),_0x234a75=_0x586940=>{const _0x23b339=_0xe2f2aa;let _0x19227d=_0x2abd9d(_0x2776c5,_0x40dce7[_0x23b339(0x145)]);try{_0x586940(_0x19227d),_0x5e4fc6({'pivot':_0x19227d['toJSON']()});}finally{_0x19227d[_0x23b339(0x470)]();}},_0x1b97e2=(_0xe9f26b,_0x26e652)=>{_0xdda122&&(_0x234a75(_0x49351e=>{const _0x49a7a6=_0x29b7;if(_0xdda122[_0x49a7a6(0x3f2)]===_0x49a7a6(0x2db)){let _0x1a546c=_0x49351e[_0x49a7a6(0x325)](_0xdda122['id']),_0x99e5bf=_0x1a546c[_0x49a7a6(0x225)]===_0xe9f26b&&_0x1a546c[_0x49a7a6(0x23e)]<_0x26e652?_0x26e652-0x1:_0x26e652;_0x49351e[_0x49a7a6(0x46b)](_0xdda122['id'],_0xe9f26b,_0x99e5bf);}else go(_0x49351e,_0xdda122['id'],_0xe9f26b,_0x26e652);}),_0x356536(null),_0x583713(null));};return _0x3c00a1(_0xe2f2aa(0x384),{'className':_0xe2f2aa(0x142),'children':[_0x414ebe(_0xbfe45a,{'ariaLabel':_0x57349b['t'](_0xe2f2aa(0x165)),'className':'univer-shrink-0\x20univer-px-4','items':[{'label':_0x57349b['t'](_0xe2f2aa(0x489)),'panelId':_0xe2f2aa(0x456),'value':_0xe2f2aa(0x345)},{'label':_0x57349b['t'](_0xe2f2aa(0x3b4)),'panelId':_0xe2f2aa(0x157),'value':_0xe2f2aa(0x209)}],'value':_0x59c16b,'onChange':_0x39807c}),_0x414ebe(_0xe2f2aa(0x384),{'ref':_0x5ac860,'className':_0x2c3136(_0xe2f2aa(0x285),_0x443bf8),'onDragOver':_0x7fea11=>{const _0x38ea9f=_0xe2f2aa;let _0x13de5a=_0x5ac860[_0x38ea9f(0x2e7)];if(!_0x13de5a)return;let _0x586425=_0x13de5a[_0x38ea9f(0x439)]();_0x7fea11['clientY']<_0x586425[_0x38ea9f(0x392)]+0x30?_0x13de5a[_0x38ea9f(0x17d)]-=0x10:_0x7fea11['clientY']>_0x586425[_0x38ea9f(0x314)]-0x30&&(_0x13de5a[_0x38ea9f(0x17d)]+=0x10);},'children':_0x59c16b===_0xe2f2aa(0x209)?_0x414ebe(ho,{'config':_0x40dce7,'commit':_0x234a75}):_0x3c00a1(_0xe2f2aa(0x384),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x3c00a1(_0xe2f2aa(0x384),{'children':[_0x414ebe(_0xe2f2aa(0x384),{'className':_0xe2f2aa(0x41b),'children':_0x57349b['t'](_0xe2f2aa(0x43e))}),_0x414ebe(_0x448a93,{'allowClear':!0x0,'slot':_0x414ebe(_0x282ad6,{}),'value':_0x11642c,'placeholder':_0x57349b['t'](_0xe2f2aa(0x417)),'onChange':_0x1ed6ba}),_0x414ebe(_0xe2f2aa(0x384),{'className':'univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','children':_0x2c1198['map'](_0x21c2ff=>_0x414ebe(co,{'config':_0x40dce7,'field':_0x21c2ff,'onAdd':_0x13af68=>_0x234a75(_0x335ed9=>go(_0x335ed9,_0x21c2ff['id'],_0x13af68,_0x335ed9['getFieldCountByArea'](_0x13af68))),'onCheckedChange':_0xa4a3cf=>_0x234a75(_0x4ef312=>{const _0x4b436a=_0xe2f2aa;let _0x17ad60=_0x4ef312['getTableFieldsByDataFieldId'](_0x21c2ff['id']);if(!_0xa4a3cf)_0x17ad60[_0x4b436a(0x24e)](_0x74ec46=>_0x4ef312[_0x4b436a(0x17b)](_0x74ec46['getId']()));else{if(_0x17ad60[_0x4b436a(0x151)]===0x0){let _0x57a4ad=vo(_0x21c2ff)?_0x1b52e3[_0x4b436a(0x19f)]:_0x1b52e3[_0x4b436a(0x1c8)];_0x4ef312[_0x4b436a(0x229)](_0x21c2ff['id'],_0x57a4ad);}}}),'onDragStart':()=>_0x356536({'kind':'source','id':_0x21c2ff['id']})},_0x21c2ff['id']))})]}),_0x414ebe('div',{'className':_0xe2f2aa(0x426),'children':ao[_0xe2f2aa(0x3a8)](_0x4a09e9=>_0x414ebe(uo,{'area':_0x4a09e9['area'],'dropTarget':_0x1e739a,'fields':_0x40dce7[_0xe2f2aa(0x145)][_0x4a09e9[_0xe2f2aa(0x29d)]],'label':_0x57349b['t'](_0x4a09e9[_0xe2f2aa(0x1e5)]),'snapshot':_0x40dce7['pivot'],'onDragEnd':()=>{_0x356536(null),_0x583713(null);},'onDragStart':_0x132011=>_0x356536({'kind':_0xe2f2aa(0x2db),'id':_0x132011,'area':_0x4a09e9[_0xe2f2aa(0x225)]}),'onDragOver':_0x478997=>_0x583713({'area':_0x4a09e9[_0xe2f2aa(0x225)],'index':_0x478997}),'onDrop':_0x1a84d0=>_0x1b97e2(_0x4a09e9['area'],_0x1a84d0),'onFilter':_0x203658,'onRemove':_0xcf2282=>_0x234a75(_0x5d5d9b=>_0x5d5d9b[_0xe2f2aa(0x17b)](_0xcf2282)),'onSettings':_0x178e1e},_0x4a09e9['area']))}),_0x38ea1d&&_0x414ebe(po,{'fieldId':_0x38ea1d,'snapshot':_0x40dce7[_0xe2f2aa(0x145)],'table':_0x2776c5,'onCancel':()=>_0x203658(null),'onCommit':(_0x31c0d7,_0x237e1a)=>{_0x234a75(_0x2d6e32=>{const _0x28a49a=_0x29b7;let _0x58b833=_0x2d6e32[_0x28a49a(0x1b6)](_0x38ea1d),_0x3b79bb=(_0x58b833==null?void 0x0:_0x58b833[_0x28a49a(0x184)])??[];_0x2d6e32[_0x28a49a(0x44e)](_0x38ea1d,{'type':_0x101c58[_0x28a49a(0x42a)],'list':_0x31c0d7,'isAll':_0x31c0d7[_0x28a49a(0x151)]===_0x3b79bb[_0x28a49a(0x151)]}),_0x2d6e32['setSortInfo'](_0x38ea1d,_0x237e1a===void 0x0?void 0x0:{'type':_0x237e1a});}),_0x203658(null);}},_0x38ea1d),_0xa3978d&&_0x414ebe(mo,{'field':_0x40dce7[_0xe2f2aa(0x145)][_0xe2f2aa(0x33a)][_0xa3978d],'onCancel':()=>_0x178e1e(null),'onCommit':(_0x4e0606,_0x2b7341,_0x48d20a)=>{_0x234a75(_0x50c601=>{const _0x1669c2=_0x29b7;_0x50c601[_0x1669c2(0x45f)](_0xa3978d,_0x4e0606),_0x50c601['setSubtotalType'](_0xa3978d,_0x2b7341),_0x50c601['setFieldFormat'](_0xa3978d,_0x48d20a||void 0x0);}),_0x178e1e(null);}},_0xa3978d)]})})]});}function co(_0x504e0e){const _0x2209a7=_0x290871;let {config:_0x58f6eb,field:_0x156ac1,onAdd:_0x586ea6,onCheckedChange:_0x5b58f5,onDragStart:_0x2f53a1}=_0x504e0e,_0x1b3625=_0xe276a8(_0x4b0f72),_0x3bcd80=[...Object['values'](_0x58f6eb[_0x2209a7(0x145)][_0x2209a7(0x349)]),...Object[_0x2209a7(0x1ef)](_0x58f6eb[_0x2209a7(0x145)]['measure'])][_0x2209a7(0x331)](_0x321a99=>_0x321a99['dataFieldId']===_0x156ac1['id']),_0x53f0ad=ao[_0x2209a7(0x3a8)](_0x5b58d4=>({'type':_0x2209a7(0x3de),'children':_0x1b3625['t'](yo(_0x5b58d4[_0x2209a7(0x225)])),'onSelect':()=>_0x586ea6(_0x5b58d4[_0x2209a7(0x225)])}));return _0x3c00a1(_0x2209a7(0x384),{'draggable':!0x0,'className':_0x2209a7(0x3dd),'onDragStart':_0x2f53a1,'children':[_0x414ebe(_0x4cfa50,{'className':_0x2209a7(0x27e)}),_0x414ebe(_0x283511,{'checked':_0x3bcd80,'onChange':_0x48c340=>_0x5b58f5(!!_0x48c340)}),_0x414ebe(lo,{'field':_0x156ac1}),_0x414ebe(_0x2209a7(0x415),{'className':_0x2209a7(0x219),'children':_0x156ac1[_0x2209a7(0x2a3)]}),_0x414ebe(_0x4acc99,{'align':_0x2209a7(0x375),'items':_0x53f0ad,'children':_0x414ebe(_0x2209a7(0x415),{'className':_0x2209a7(0x48f),'children':_0x414ebe(_0xed8c69,{})})})]});}function _0x5bbc(){const _0x55a1e6=['pareto','Text','bases-dashboard-ui.dashboardInspector.backgroundColor','univer-mb-3\x20univer-text-sm\x20univer-font-medium','subItem','packageName','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','BaseDashboard','fontSizeMode','bases-dashboard-ui.pivot.addToFilter','removeEventListener','pattern','button','defineProperty','print','object','format','data:','onDrop','operand','backgroundImage','bottom','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','operator','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','onDragOver','LESS_THAN','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','split','39462iURBlS','legend','bases-dashboard-ui.chart.common.legend','indicatorLine','UUID','bases-dashboard-ui.pivot.variancePopulation','getImageSourceCache','replaceChildren','TableFilter','getFieldPositionInfoById','bases-dashboard-ui.operators.lessThanOrEqual','currentColor','GrandTotal','border','stringify','set','getPresentation','preventDefault','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','bases-dashboard-ui.pivot.calculationFailed','Checkbox','some','Style','bases-dashboard-ui.pivot.defaultName','click','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.pivot.numberFormat','bases-dashboard-ui.dashboardInspector.reset','conditions','bases-dashboard-ui.pivot.sum','measure','depthAxis','product','widgets','onFilter','right','Person','blank','dom','currentTheme$','body','fields','markReady','bases-dashboard-ui.pivot.pageDirection','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','dimension','isHeader','bases-dashboard-ui.pivot.name','univer-cursor-grab','bases-dashboard-ui.dashboardInspector.delete','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','headerMap','univer-grid\x20univer-gap-4','contains','bases-dashboard-ui.dashboardInspector.autoFit','isTopTotal','ownerDocument','allSeriesStyle','Column','univer-size-5\x20univer-text-primary-600','call','setLayout','univer-w-full','border-box','alt','bases-dashboard-ui.pivot.chartAndTable','dashboardOrder','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','dashboard-text-','width','univer-h-full\x20univer-w-full\x20univer-bg-transparent','table','bases-dashboard-ui.dashboardInspector.newCondition','bases-dashboard-ui.dashboard.defaultName','appearance','stdDev','univer-text-sm','univer-pointer-events-auto\x20univer-opacity-100','sortInfo','Candlestick','image/*','AND','currentTarget','onSettings','pointermove','UpdatedAt','documentElement','bases-dashboard-ui.pivot.grandTotal','bases-dashboard-ui.dashboardInspector.originalSize','end','USD','tables','getId','bases-dashboard-ui.dashboardInspector.style','bases-dashboard-ui.pivot.selectAll','bases-dashboard-ui.dashboard.text','Histogram','(prefers-reduced-motion:\x20reduce)','univer-mb-2\x20univer-border-collapse\x20univer-text-sm','16853ModnmU','bases-dashboard-ui.dashboardInspector.general','page:','bases-dashboard-ui.dashboard.fullScreen','univer-cursor-grabbing','div','chartId','grandTotal','bases-dashboard-ui.chart.section.wordCloud','round','lastRow','dataStream','header','bases-dashboard-ui.chart.section.relation','funnel','mode','setConfig','boxSizing','univer-flex\x20univer-justify-end\x20univer-gap-2','top','dataView','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','itemTypes','clientY','LineAndArea','bases-dashboard-ui.chart.common.trendline','max','matchMedia','darkMode$','GeneralSeries','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','bases-dashboard-ui.dashboardInspector.formula','Rating','bases-dashboard-ui.pivot.dropFieldsHere','lastCol','bases-dashboard-ui.chart.common.chartStyle','Axes','bases-dashboard-ui.pivot.clearFilter','chart','bases-dashboard-ui.pivot.descending','getFieldCountByArea','map','row','bases-dashboard-ui.dashboardInspector.right','getResult','startScrollTop','getOptions','general','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','lineAndArea','bases-dashboard-ui.dashboardInspector.dragWidget','orient','clientHeight','bases-dashboard-ui.pivot.options','pointerY','Currency','custom','bases-dashboard-ui.pivot.acrossThenDown','bases-dashboard-ui.dashboard.delete','bases-dashboard-ui.dashboard.add','focusUnit','bases-dashboard-ui.dashboardInspector.number','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','getUnit','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','formulaBinding','bases-dashboard-ui.chart.chartTypes.area','UNIVER_BASE','defaultPrevented','onDragEnd','setOptions','currency','shapeData','bases-dashboard-ui.dashboardInspector.left','setSubtotalType','activeRuntimeModel','univer-border-gray-200\x20dark:!univer-border-gray-700','valueIndex','gray','subUnitId','dashboard-widget-','NOT_CONTAINS','refreshChartRuntime','Image','Subtotal','input','bases-dashboard-ui.chart.common.chartAndAxisTitles','\x20has\x20no\x20render\x20config.','bases-dashboard-ui.chart.common.customize','bases-dashboard-ui.dashboard.widgetActions','bases-dashboard-ui.pivot.downThenAcross','toLocaleLowerCase','bases-dashboard-ui.pivot.ascending','aside','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','item','keydown','Progress','Sunburst','documentStyle','subscribe','fit','bases-dashboard-ui.chart.chartTypes.line','bases-dashboard-ui.pivot.bottom','function','bases-dashboard-ui.pivot.values','minmax(0,\x201fr)','doc','bases-dashboard-ui.dashboardInspector.uploadImage','visibilityState','valuePosition','_element','bases-dashboard-ui.dashboardInspector.center','link','bases-dashboard-ui.pivot.repeatRowLabels','kind','bases-dashboard-ui.operators.after','bases-dashboard-ui.pivot.layoutTabular','Pareto','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','rightY','displayMode','change$','bases-dashboard-ui.pivot.chartConfiguration','getChartRuntime','getResource','base-pivot-chart-configuration','isConnected','syncLayout','dataModel','pageWrap','LESS_THAN_OR_EQUAL','bases-dashboard-ui.chart.section.chord','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','_injector','indexOf','univer-mx-4\x20univer-mt-4\x20univer-shrink-0','9934582EoliJs','data','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','Filter','getDashboard','lineStrokeType','viewOrder','dataset','waterfall.negative','bases-dashboard-ui.chart.section.paretoLine','repeat','series','span','Line','bases-dashboard-ui.pivot.searchFields','bases-dashboard-ui.pivot.filters','IndicatorLine','constructor','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','headerRowCount','RecordId','scrollHeight','bases-dashboard-ui.pivot.rows','HorizontalAxis','univer-bg-transparent\x20dark:!univer-bg-transparent','1.5.0','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','includes','fullscreenElement','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.pivot.layoutCompact','30744360TqyORc','ManualFilter','bases-dashboard-ui.chart.common.rightVerticalAxis','[data-dashboard-widget]','filter','select','bases-dashboard-ui.dashboardInspector.currency','bases-dashboard-ui.dashboardInspector.decimalPlaces','dataSource','rowCount','isFinite','bases-dashboard-ui.chart.section.gauge','push','symbol','createElement','chart-and-table','getBoundingClientRect','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','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','baseChartDataAnimation','title','bases-dashboard-ui.pivot.sourceFields','base64Cache','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','PieStyle','stopPropagation','closest','disposeWithMe','filterInfo','bases-dashboard-ui.pivot.dataSource','parentElement','showColSubtotal','auto','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','get','clientWidth','colView','setLabelFilterInfo','labelId','base-dashboard-pivot-chart-','description','univer-bg-gray-0\x20dark:!univer-bg-gray-900','pipe','bases-dashboard-ui.dashboard.deleteWidget','bases-dashboard-ui.chart.common.series','base-pivot-fields','defaultValue','color','min','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','bases-dashboard-ui.dashboardInspector.clear','height','middle','univer-flex-1','renameField','Waterfall','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','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','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','change','rootContainerElement','onDragStart','textColor','univer-max-h-40','IS_NOT','bases-dashboard-ui.dashboardInspector.textSize','updateFieldPosition','direction$','shapeType','transparent','bases-dashboard-ui.operators.is','dispose','unsubscribe','univer-flex\x20univer-min-h-0\x20univer-flex-1','univer-mt-2\x20univer-w-full','FormulaShape','number','text','bases-dashboard-ui.dashboard.new','Series','bases-dashboard-ui.chart.section.radar','univer-grid\x20univer-gap-2\x20univer-p-3','Gauge','onMove','widgetOrder','entries','find','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','bases-dashboard-ui.dashboardInspector.textColor','bases-dashboard-ui.chart.chartTypes.','views','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','univer-flex','toDate','\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','segmented','bases-dashboard-ui.pivot.fields','fieldId','localeKey','bases-dashboard-ui.dashboardInspector.close','bases-dashboard-ui.pivot.repeatColumnLabels','bases-dashboard-ui.dashboard.section','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','Bubble','repeatRowLabels','register','\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','WaterfallSeries','presentation','Escape','view','univer-flex\x20univer-min-h-full\x20univer-flex-col','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','bases-dashboard-ui.dashboardInspector.loading','pivot','grouped','catch','style','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','1027854aYSECk','version','tableFieldId','rowType','YYYY-MM-DD','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','univer-grid\x20univer-gap-4\x20univer-p-4','length','bases-dashboard-ui.pivot.blank','univer-flex\x20univer-flex-col','pivotViewId','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','varp','base-pivot-options','bases-dashboard-ui.dashboardInspector.grouped','bases-dashboard-ui.dashboardInspector.backgroundImage','dashboards','ChartAndAxisTitles','releaseChartRuntime','center','bases-dashboard-ui.operators.isEmpty','GREATER_THAN','univer-size-8\x20univer-p-0\x20univer-text-red-500','ParetoLineSeries','bases-dashboard-ui.pivot.product','base-pivot-chart-style','bases-dashboard-ui.chart.section.candlestick','bases-dashboard-ui.pivot.pivotConfiguration','bases-dashboard-ui.dashboardInspector.currencyCode','valueFields','checkMounted','resizeDirection','backgroundColor','Sankey','bases-dashboard-ui.chart.section.histogram','floor','bases-dashboard-ui.dashboard.editWidget','bases-dashboard-ui.dashboardInspector.dataSource','has','dataAggregation','#,##0','setCurrentUnitForType','NumberFormat','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','isSubtotal','compact','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','bases-dashboard-ui.pivot.stdDev','removeField','bases-dashboard-ui.pivot.description','scrollTop','univer-shrink-0\x20univer-px-4','bases-dashboard-ui.operators.greaterThan','bases-dashboard-ui.chart.section.paretoBar','5266412RQHYOl','pageView','type','items','wordCloud','Legend','Area','univer-mt-2','undos','bases-dashboard-ui.dashboardInspector.replaceImage','univer-relative\x20univer-z-10','matches','columnFields','getSnapshot','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','bases-dashboard-ui.pivot.filterField','bases-dashboard-ui.chart.waterfall.subtotal','SingleSelect','config','getValueIndex','requestFullscreen','Number','dashboard-chart-style','error','bases-dashboard-ui.chart.section.gridlinesAndTicks','IS_EMPTY','bases-dashboard-ui.chart.section.funnel','img','bases-dashboard-ui.operators.before','bases-dashboard-ui.chart.common.switchRowColumn','Value','Chord','observe','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','bases-dashboard-ui.pivot.min','clientX','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','bases-dashboard-ui.chart.common.horizontalAxis','fontSize','rowView','IS_NOT_EMPTY','GridlinesAndTicks','section','prototype','MultipleGrandTotal','MultiSelect','snapshot','bases-dashboard-ui.pivot.addToValue','bases-dashboard-ui.dashboardInspector.percent','fill','decorate','contain','hidden','getDataFieldByTableId','renderTransition','CONTAINS','tableId','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','waterfall.positive','45VTGqjk','toPrimitive','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','files','children','flex-end','value','countNums','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','radar','formula','_localeService','Row','0\x200','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','descending','2408104gfCybQ','model','RoundRect','univer-truncate','univer-w-24','RightVerticalAxis','bases-dashboard-ui.dashboard.formulaShape','barStyle','group','outline','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','formatMap','target','bases-dashboard-ui.chart.common.heatmap','bases-dashboard-ui.pivot.cancel','average','icon','base-pivot-chart-setup','\x20/\x20','bases-dashboard-ui.mobile.permissions','result','createChartInstance','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','column:','_createContext','label','date','isArray','acquireChartRuntime','waterfallStyle','setSortInfo','Heatmap','chartRowDirection','ParetoBarSeries','move','values','bases-dashboard-ui.pivot.layoutOutline','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','trendline','axis','univer-min-w-0\x20univer-flex-1','WordCloud','alignment','_config','univer-mx-auto\x20univer-size-6','bases-dashboard-ui.operators.notContains','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','then','univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','url(','var','univer-grid\x20univer-gap-3','shapeText','General','bases-dashboard-ui.pivot.showRowGrandTotal','bases-dashboard-ui.pivot.variance','bases-dashboard-ui.pivot.columns','ensureMount','config$','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','bases-dashboard-ui.dashboardInspector.repeat','options','bases-dashboard-ui.chart.','Funnel','bases-dashboard-ui.dashboardInspector.data','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','join','SolidLine','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','blur','getCurrentTheme','univer-w-full\x20univer-justify-start','univer-flex\x20univer-flex-col\x20univer-gap-4','resolve','tbody','univer-w-36','startX','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','\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','univer-flex\x20univer-items-center\x20univer-gap-2','chartType','Treemap','innerWidth','stdDevp','rowSpan','cancel','colCount','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','bases-dashboard-ui.chart.common.setup','area','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','Data','bases-dashboard-ui.dashboardInspector.alignment','addFieldWithSourceId','onCommit','bases-dashboard-ui.dashboard.redo','bases-dashboard-ui.pivot.valuePosition','pageRows','default','bases-dashboard-ui.operators.contains','displayName','small','addEventListener','canView','slice','getImage','bases-dashboard-ui.pivot.confirm','source','baseChartDataAnimationDuration','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','initial','_configService','addImageSourceCache','bases-dashboard-ui.chart.section.treemap','index','column','pointerup','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','975jYDQND','saveAttachment','Positive','filterFields','disconnect','info','univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','replace','every','bases-dashboard-ui.pivot.average','bases-dashboard-ui.pivot.count','forEach','bases-dashboard-ui.pivot.display','Pivot','dashboard-','onCancel','conjunction','context','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','presentationChanged$','cover','original','Boxplot','size','executeCommand','base-pivot-table-configuration','px\x20solid\x20','bases-dashboard-ui.dashboard.resizeWidget','bases-dashboard-ui.operators.isNot','sourceType','percent','numberFormat','Group','pointerX','bind','system','paragraphId','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','@univerjs-pro/bases-dashboard-ui','PivotChart','string','ascending','base-pivot-chart-','bases-dashboard-ui.dashboard.image','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','document','bases-dashboard-ui.pivot.layout','bases-dashboard-ui.dashboardInspector.numberFormat','baseOn','bases-dashboard-ui.chart.section.indicatorLine','bases-dashboard-ui.pivot.calculating','bases-dashboard-ui.pivot.fieldSettings','list','bases-dashboard-ui.dashboardInspector.selectOption','file','bases-dashboard-ui.operators.greaterThanOrEqual','\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','bases-dashboard-ui.chart.common.verticalAxis','getRect','univer-text-gray-400','fullscreenchange','thead','rowFields','saveImage','ChartStyle','tableOrder','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','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','bases-dashboard-ui.pivot.removeField','renderRevision','bases-dashboard-ui.pivot.displayName','bases-dashboard-ui.dashboardInspector.editFormula','titles','borderRadius','Date','getOwnPropertyDescriptor','corner:','markNotReady','AFTER','univer-flex\x20univer-gap-2','imageSourceType','toUpperCase','bases-dashboard-ui.pivot.stdDevPopulation','bases-dashboard-ui.dashboard.tableFilter','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','subtotal','trim','redos','exitFullscreen','key','bases-dashboard-ui.chart.section.sunburst','columnSpan','article','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','Relation','name','bases-dashboard-ui.chart.common.editChart','onReady','bases-dashboard-ui.pivot.chartOnly','count','heatmap','bases-dashboard-ui.pivot.max','isBottomTotal','scrollWidth','bases-dashboard-ui.chart.section.pie','showRowSubtotal','univer-text-sm\x20univer-font-medium','flatMap','Pie','separator','fillType','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','getRenderColor','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','true','BASE_DASHBOARD_UI_PLUGIN','bases-dashboard-ui.chart.section.waterfall','Radar','from','bases-dashboard-ui.dashboardInspector.removeImage','showColGrandTotal','2PYojae','bases-dashboard-ui.dashboardInspector.sourceUnavailable','showRowGrandTotal','getTableFieldsByDataFieldId','primary','createRenderInput','\x20/\x20span\x20','univer-text-right','bases-dashboard-ui.pivot.addToRow','waterfall','layout','bases-dashboard-ui.pivot.top','Trendline','destructive','createDomChartInstance','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','bases-dashboard-ui.dashboardInspector.description','GREATER_THAN_OR_EQUAL','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','sum','dashboard-chart-setup','onRemove','bases-dashboard-ui.pivot.showRowSubtotal','bases-dashboard-ui.pivot.countNumbers','bases-dashboard-ui.mobile.moveDown','decimalPlaces','None','bases-dashboard-ui.dashboardInspector.custom','cumulativeLineStyle','bases-dashboard-ui.dashboard.configure','field','_chartThemeService','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','updateValuePosition','pageOverThenDown','univer-size-4','radius','rightYAxis','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','textStyle','CreatedAt','add','current','univer-m-3','tabular','bases-dashboard-ui.pivot.showColumnSubtotal','bases-dashboard-ui.mobile.moveUp','onStarting','undoRedoStatus$','startY','permissionPointUpdate$','bases-dashboard-ui.pivot.rowSubtotalPosition','bases-dashboard-ui.dashboardInspector.cover','src','accept','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','VerticalAxis','bases-dashboard-ui.dashboardInspector.contain','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','setStyle','left','bases-dashboard-ui.dashboard.pivotChart','bases-dashboard-ui.dashboardInspector.editData','Dom','\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','onMoveDown'];_0x5bbc=function(){return _0x55a1e6;};return _0x5bbc();}function lo({field:_0x5ca589}){const _0x2879c6=_0x290871;return vo(_0x5ca589)?_0x414ebe(_0x15cd07,{'className':_0x2879c6(0x27e)}):_0x5ca589[_0x2879c6(0x183)]===_0x5e006f[_0x2879c6(0x28d)]||_0x5ca589[_0x2879c6(0x183)]===_0x5e006f[_0x2879c6(0x2e5)]||_0x5ca589[_0x2879c6(0x183)]===_0x5e006f[_0x2879c6(0x371)]?_0x414ebe(_0x2ac587,{'className':_0x2879c6(0x27e)}):_0x414ebe(_0x277b88,{'className':_0x2879c6(0x27e)});}function uo(_0x54b379){const _0x5d2c86=_0x290871;let {area:_0x25c937,dropTarget:_0x241772,fields:_0x56d1fe,label:_0x46b99a,snapshot:_0x3b5c06}=_0x54b379,_0xddbfc=_0xe276a8(_0x4b0f72);return _0x3c00a1(_0x5d2c86(0x1ab),{'className':_0x2c3136(_0x5d2c86(0x404),_0x434c98),'onDragOver':_0x44f70c=>{const _0x3d9898=_0x5d2c86;_0x44f70c[_0x3d9898(0x32d)](),_0x54b379[_0x3d9898(0x318)](_0x56d1fe[_0x3d9898(0x151)]);},'onDrop':_0x36fabb=>{const _0x42e8ba=_0x5d2c86;_0x36fabb['preventDefault'](),_0x54b379[_0x42e8ba(0x311)]((_0x241772==null?void 0x0:_0x241772[_0x42e8ba(0x225)])===_0x25c937?_0x241772['index']:_0x56d1fe[_0x42e8ba(0x151)]);},'children':[_0x414ebe('div',{'className':_0x5d2c86(0x1c4),'children':_0x46b99a}),_0x3c00a1(_0x5d2c86(0x384),{'className':_0x5d2c86(0x153),'children':[_0x56d1fe[_0x5d2c86(0x3a8)]((_0x3e52ab,_0x1cc58c)=>{const _0x2074af=_0x5d2c86;let _0x2871f9=_0x3b5c06[_0x2074af(0x349)][_0x3e52ab]??_0x3b5c06[_0x2074af(0x33a)][_0x3e52ab];if(!_0x2871f9)return null;let _0xc6c7b9=(_0x241772==null?void 0x0:_0x241772[_0x2074af(0x225)])===_0x25c937&&_0x241772[_0x2074af(0x23e)]===_0x1cc58c;return _0x3c00a1('div',{'onDragOver':_0x4fd587=>{const _0x524579=_0x2074af;_0x4fd587[_0x524579(0x32d)](),_0x4fd587[_0x524579(0x442)]();let _0x176a01=_0x4fd587[_0x524579(0x36e)][_0x524579(0x439)]();_0x54b379[_0x524579(0x318)](_0x1cc58c+ +(_0x4fd587[_0x524579(0x396)]>_0x176a01['top']+_0x176a01[_0x524579(0x45c)]/0x2));},'onDrop':_0x3d6303=>{const _0x29bdc7=_0x2074af;_0x3d6303[_0x29bdc7(0x32d)](),_0x3d6303[_0x29bdc7(0x442)](),_0x54b379[_0x29bdc7(0x311)]((_0x241772==null?void 0x0:_0x241772[_0x29bdc7(0x225)])===_0x25c937?_0x241772[_0x29bdc7(0x23e)]:_0x1cc58c);},'children':[_0xc6c7b9&&_0x414ebe(_0x2074af(0x384),{'className':_0x2074af(0x1be)}),_0x414ebe(fo,{'area':_0x25c937,'field':_0x2871f9,'onDragEnd':_0x54b379['onDragEnd'],'onDragStart':()=>_0x54b379['onDragStart'](_0x3e52ab),'onFilter':()=>_0x54b379[_0x2074af(0x33e)](_0x3e52ab),'onRemove':()=>_0x54b379[_0x2074af(0x2d2)](_0x3e52ab),'onSettings':()=>_0x54b379[_0x2074af(0x36f)](_0x3e52ab)})]},_0x3e52ab);}),(_0x241772==null?void 0x0:_0x241772[_0x5d2c86(0x225)])===_0x25c937&&_0x241772[_0x5d2c86(0x23e)]===_0x56d1fe[_0x5d2c86(0x151)]&&_0x414ebe(_0x5d2c86(0x384),{'className':_0x5d2c86(0x1be)}),_0x56d1fe[_0x5d2c86(0x151)]===0x0&&_0x414ebe('div',{'className':_0x5d2c86(0x178),'children':_0xddbfc['t'](_0x5d2c86(0x3a0))})]})]});}function fo(_0x11eecc){const _0x3e0c39=_0x290871;let _0x1fcd16=_0xe276a8(_0x4b0f72),_0x3c3f7c=_0x11eecc[_0x3e0c39(0x225)]===_0x1b52e3['Value'],_0x430238=[{'type':_0x3e0c39(0x3de),'children':_0x1fcd16['t'](_0x3e0c39(0x287)),'onSelect':_0x11eecc[_0x3e0c39(0x2d2)]},{'type':_0x3e0c39(0x3de),'children':_0x1fcd16['t'](_0x3c3f7c?_0x3e0c39(0x276):_0x3e0c39(0x190)),'onSelect':_0x3c3f7c?_0x11eecc[_0x3e0c39(0x36f)]:_0x11eecc[_0x3e0c39(0x33e)]}];return _0x3c00a1(_0x3e0c39(0x384),{'draggable':!0x0,'className':_0x3e0c39(0x286),'onDragEnd':_0x11eecc[_0x3e0c39(0x3c4)],'onDragStart':_0x11eecc[_0x3e0c39(0x466)],'children':[_0x414ebe(_0x4cfa50,{'className':_0x3e0c39(0x27e)}),_0x414ebe(_0x9a071a,{'title':_0x11eecc[_0x3e0c39(0x2db)][_0x3e0c39(0x230)],'children':_0x414ebe(_0x3e0c39(0x415),{'className':_0x3e0c39(0x219),'children':_0x11eecc['field'][_0x3e0c39(0x230)]})}),_0x414ebe(_0x4acc99,{'align':_0x3e0c39(0x375),'items':_0x430238,'children':_0x414ebe(_0x3e0c39(0x415),{'className':_0x3e0c39(0x48f),'children':_0x414ebe(_0xed8c69,{})})})]});}function po(_0x1b0e9e){const _0x1f6a59=_0x290871;var _0x1840ee,_0x23dbe2;let _0x1b7f9a=_0xe276a8(_0x4b0f72),{format:_0x41e1ac,items:_0x5a8573,itemTypes:_0xca19a7}=_0x50478e(()=>{const _0xf5a2ce=_0x29b7;let _0x5bd63e=_0x2abd9d(_0x1b0e9e[_0xf5a2ce(0x363)],_0x1b0e9e[_0xf5a2ce(0x1af)]);try{let _0x556b18=_0x5bd63e[_0xf5a2ce(0x1b6)](_0x1b0e9e[_0xf5a2ce(0x48a)]);return{'format':_0x556b18==null?void 0x0:_0x556b18[_0xf5a2ce(0x30f)],'items':[...(_0x556b18==null?void 0x0:_0x556b18[_0xf5a2ce(0x184)])??[]],'itemTypes':[...(_0x556b18==null?void 0x0:_0x556b18[_0xf5a2ce(0x395)])??[]]};}finally{_0x5bd63e[_0xf5a2ce(0x470)]();}},[_0x1b0e9e[_0x1f6a59(0x48a)],_0x1b0e9e['snapshot'],_0x1b0e9e[_0x1f6a59(0x363)]]),_0x121bb7=(_0x1840ee=_0x1b0e9e[_0x1f6a59(0x1af)][_0x1f6a59(0x349)][_0x1b0e9e[_0x1f6a59(0x48a)]])==null?void 0x0:_0x1840ee['filterInfo'],[_0x1756aa,_0x2bcd59]=_0x3f626c((_0x121bb7==null?void 0x0:_0x121bb7['type'])===_0x101c58[_0x1f6a59(0x42a)]?_0x121bb7['list']:_0x5a8573),[_0x4eb572,_0x2be111]=_0x3f626c((_0x23dbe2=_0x1b0e9e[_0x1f6a59(0x1af)][_0x1f6a59(0x349)][_0x1b0e9e[_0x1f6a59(0x48a)]])==null||(_0x23dbe2=_0x23dbe2[_0x1f6a59(0x36a)])==null?void 0x0:_0x23dbe2[_0x1f6a59(0x183)]),_0x504204=_0x1756aa[_0x1f6a59(0x151)]===_0x5a8573[_0x1f6a59(0x151)];return _0x3c00a1(_0x1f6a59(0x1ab),{'className':_0x2c3136('univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900',_0x434c98),'children':[_0x414ebe('div',{'className':_0x1f6a59(0x302),'children':_0x1b7f9a['t'](_0x1f6a59(0x190))}),_0x3c00a1('div',{'className':'univer-flex','children':[_0x3c00a1(_0x5d2b24,{'className':'univer-flex-1','variant':_0x4eb572===_0x34bdeb['ascending']?_0x1f6a59(0x2c1):_0x1f6a59(0x22e),'onClick':()=>_0x2be111(_0x34bdeb[_0x1f6a59(0x26c)]),'children':[_0x414ebe(_0x16058f,{}),_0x1b7f9a['t'](_0x1f6a59(0x3db))]}),_0x3c00a1(_0x5d2b24,{'className':_0x1f6a59(0x45e),'variant':_0x4eb572===_0x34bdeb[_0x1f6a59(0x1cb)]?_0x1f6a59(0x2c1):_0x1f6a59(0x22e),'onClick':()=>_0x2be111(_0x34bdeb[_0x1f6a59(0x1cb)]),'children':[_0x414ebe(_0x39dc4f,{}),_0x1b7f9a['t'](_0x1f6a59(0x3a6))]})]}),_0x3c00a1(_0x1f6a59(0x384),{'className':'univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','children':[_0x3c00a1(_0x1f6a59(0x1e5),{'className':_0x1f6a59(0x223),'children':[_0x414ebe(_0x283511,{'checked':_0x504204,'indeterminate':_0x1756aa[_0x1f6a59(0x151)]>0x0&&!_0x504204,'onChange':()=>_0x2bcd59(_0x504204?[]:_0x5a8573)}),_0x1b7f9a['t'](_0x1f6a59(0x37a))]}),_0x5a8573[_0x1f6a59(0x3a8)]((_0x536b3e,_0x3a8c73)=>_0x3c00a1(_0x1f6a59(0x1e5),{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x414ebe(_0x283511,{'checked':_0x1756aa['includes'](_0x536b3e),'onChange':()=>_0x2bcd59(_0x1bece1=>_0x1bece1[_0x1f6a59(0x424)](_0x536b3e)?_0x1bece1[_0x1f6a59(0x42d)](_0x7bfab4=>_0x7bfab4!==_0x536b3e):[..._0x1bece1,_0x536b3e])}),_0x414ebe(_0x1f6a59(0x415),{'className':_0x1f6a59(0x1cf),'children':_o(_0x536b3e,_0xca19a7[_0x3a8c73],_0x41e1ac,_0x1b7f9a['t'](_0x1f6a59(0x152)))})]},_0x536b3e))]}),_0x3c00a1(_0x1f6a59(0x384),{'className':_0x1f6a59(0x2b3),'children':[_0x414ebe(_0x5d2b24,{'variant':_0x1f6a59(0x3f0),'onClick':()=>_0x1b0e9e[_0x1f6a59(0x22a)](_0x5a8573,_0x4eb572),'children':_0x1b7f9a['t'](_0x1f6a59(0x3a4))}),_0x3c00a1(_0x1f6a59(0x384),{'className':_0x1f6a59(0x292),'children':[_0x414ebe(_0x5d2b24,{'onClick':_0x1b0e9e[_0x1f6a59(0x252)],'children':_0x1b7f9a['t'](_0x1f6a59(0x1da))}),_0x414ebe(_0x5d2b24,{'variant':_0x1f6a59(0x2c1),'disabled':_0x1756aa[_0x1f6a59(0x151)]===0x0,'onClick':()=>_0x1b0e9e[_0x1f6a59(0x22a)](_0x1756aa,_0x4eb572),'children':_0x1b7f9a['t'](_0x1f6a59(0x236))})]})]})]});}function mo(_0x191ca8){const _0x3cf5b5=_0x290871;var _0x497b61,_0x4945ed,_0x2e8e1d;let _0x231189=_0xe276a8(_0x4b0f72),[_0x3f7512,_0xe18817]=_0x3f626c(((_0x497b61=_0x191ca8[_0x3cf5b5(0x2db)])==null?void 0x0:_0x497b61[_0x3cf5b5(0x230)])??''),[_0x17ee69,_0x487fde]=_0x3f626c(((_0x4945ed=_0x191ca8[_0x3cf5b5(0x2db)])==null?void 0x0:_0x4945ed[_0x3cf5b5(0x299)])??_0x358af4[_0x3cf5b5(0x2d0)]),[_0xea6b73,_0x57288a]=_0x3f626c(((_0x2e8e1d=_0x191ca8[_0x3cf5b5(0x2db)])==null?void 0x0:_0x2e8e1d[_0x3cf5b5(0x30f)])??'');return _0x191ca8['field']?_0x3c00a1('section',{'className':_0x2c3136('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',_0x434c98),'children':[_0x414ebe(_0x3cf5b5(0x384),{'className':_0x3cf5b5(0x2ae),'children':_0x231189['t'](_0x3cf5b5(0x276))}),_0x3c00a1(_0x3cf5b5(0x1e5),{'className':_0x3cf5b5(0x3f6),'children':[_0x231189['t'](_0x3cf5b5(0x289)),_0x414ebe(_0x448a93,{'value':_0x3f7512,'onChange':_0xe18817})]}),_0x3c00a1(_0x3cf5b5(0x1e5),{'className':_0x3cf5b5(0x3f6),'children':[_0x231189['t']('bases-dashboard-ui.pivot.summarizeBy'),_0x414ebe(_0x296606,{'value':String(_0x17ee69),'options':oo['map'](_0x422ccd=>({'value':String(_0x422ccd[_0x3cf5b5(0x1c2)]),'label':_0x231189['t'](_0x422ccd['localeKey'])})),'onChange':_0x18caff=>{const _0x5cd6f5=_0x3cf5b5;let _0xfc1e84=oo['find'](_0xd6f134=>String(_0xd6f134[_0x5cd6f5(0x1c2)])===_0x18caff);_0xfc1e84&&_0x487fde(_0xfc1e84[_0x5cd6f5(0x1c2)]);}})]}),_0x3c00a1('label',{'className':_0x3cf5b5(0x3f6),'children':[_0x231189['t']('bases-dashboard-ui.pivot.numberFormat'),_0x414ebe(_0x448a93,{'value':_0xea6b73,'onChange':_0x57288a})]}),_0x3c00a1(_0x3cf5b5(0x384),{'className':'univer-flex\x20univer-justify-end\x20univer-gap-2','children':[_0x414ebe(_0x5d2b24,{'onClick':_0x191ca8[_0x3cf5b5(0x252)],'children':_0x231189['t'](_0x3cf5b5(0x1da))}),_0x414ebe(_0x5d2b24,{'variant':_0x3cf5b5(0x2c1),'disabled':!_0x3f7512['trim'](),'onClick':()=>_0x191ca8[_0x3cf5b5(0x22a)](_0x3f7512[_0x3cf5b5(0x29a)](),_0x17ee69,_0xea6b73),'children':_0x231189['t'](_0x3cf5b5(0x236))})]})]}):null;}function ho(_0x254d5c){const _0x4960fa=_0x290871;let {config:_0x20e019,commit:_0x12cd19}=_0x254d5c,_0x348c49=_0xe276a8(_0x4b0f72),_0x401559=_0x20e019[_0x4960fa(0x145)][_0x4960fa(0x209)],_0x3605e7=_0xeb8184=>_0x12cd19(_0x411928=>_0x411928[_0x4960fa(0x3c5)]({..._0x411928[_0x4960fa(0x3ad)](),..._0xeb8184}));return _0x3c00a1(_0x4960fa(0x384),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x3c00a1(_0x4960fa(0x1e5),{'className':_0x4960fa(0x463),'children':[_0x348c49['t'](_0x4960fa(0x271)),_0x414ebe(_0x296606,{'className':_0x4960fa(0x217),'value':String(_0x20e019['pivot']['layout']),'options':[{'value':String(_0x5c7745[_0x4960fa(0x2e9)]),'label':_0x348c49['t'](_0x4960fa(0x3f4))},{'value':String(_0x5c7745['compact']),'label':_0x348c49['t'](_0x4960fa(0x428))},{'value':String(_0x5c7745[_0x4960fa(0x1d5)]),'label':_0x348c49['t'](_0x4960fa(0x1f0))}],'onChange':_0x47cdc8=>{const _0x41113a=_0x4960fa;let _0x2f156d=[_0x5c7745[_0x41113a(0x2e9)],_0x5c7745[_0x41113a(0x177)],_0x5c7745[_0x41113a(0x1d5)]][_0x41113a(0x47f)](_0x333759=>String(_0x333759)===_0x47cdc8);_0x2f156d!==void 0x0&&_0x12cd19(_0x324d45=>_0x324d45[_0x41113a(0x359)](_0x2f156d));}})]}),[{'key':_0x4960fa(0x13b),'label':_0x4960fa(0x3f1),'defaultValue':!0x1},{'key':'repeatColLabels','label':_0x4960fa(0x48d),'defaultValue':!0x1},{'key':'showRowSubtotal','label':_0x4960fa(0x2d3),'defaultValue':!0x0},{'key':'showRowGrandTotal','label':_0x4960fa(0x202),'defaultValue':!0x0},{'key':_0x4960fa(0x448),'label':_0x4960fa(0x2ea),'defaultValue':!0x0},{'key':'showColGrandTotal','label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}][_0x4960fa(0x3a8)](_0x4e58fc=>_0x3c00a1(_0x4960fa(0x1e5),{'className':_0x4960fa(0x43b),'children':[_0x414ebe(_0x283511,{'checked':!!(_0x401559[_0x4e58fc[_0x4960fa(0x29d)]]??_0x4e58fc[_0x4960fa(0x457)]),'disabled':_0x4e58fc[_0x4960fa(0x29d)]==='repeatRowLabels'&&_0x20e019[_0x4960fa(0x145)][_0x4960fa(0x2c7)]===_0x5c7745[_0x4960fa(0x177)],'onChange':_0x3b45a2=>_0x3605e7({[_0x4e58fc[_0x4960fa(0x29d)]]:!!_0x3b45a2})}),_0x348c49['t'](_0x4e58fc[_0x4960fa(0x1e5)])]},_0x4e58fc[_0x4960fa(0x29d)])),_0x20e019[_0x4960fa(0x145)][_0x4960fa(0x2c7)]===_0x5c7745[_0x4960fa(0x1d5)]&&_0x3c00a1(_0x4960fa(0x1e5),{'className':_0x4960fa(0x463),'children':[_0x348c49['t']('bases-dashboard-ui.pivot.rowSubtotalPosition'),_0x414ebe(_0x296606,{'className':'univer-w-36','value':String(_0x401559['rowSubtotalPosition']??_0x1c5136[_0x4960fa(0x392)]),'options':[{'value':String(_0x1c5136[_0x4960fa(0x392)]),'label':_0x348c49['t'](_0x4960fa(0x2c8))},{'value':String(_0x1c5136[_0x4960fa(0x314)]),'label':_0x348c49['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x43079a=>{const _0x34e206=_0x4960fa;let _0x35c95d=[_0x1c5136[_0x34e206(0x392)],_0x1c5136[_0x34e206(0x314)]][_0x34e206(0x47f)](_0x40e74c=>String(_0x40e74c)===_0x43079a);_0x35c95d!==void 0x0&&_0x3605e7({'rowSubtotalPosition':_0x35c95d});}})]}),_0x3c00a1(_0x4960fa(0x1e5),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x348c49['t'](_0x4960fa(0x22c)),_0x414ebe(_0x296606,{'className':'univer-w-36','value':String(_0x20e019['pivot'][_0x4960fa(0x3ed)]===_0x3d12ff['None']?_0x3d12ff['Column']:_0x20e019[_0x4960fa(0x145)][_0x4960fa(0x3ed)]),'options':[{'value':String(_0x3d12ff[_0x4960fa(0x356)]),'label':_0x348c49['t']('bases-dashboard-ui.pivot.columns')},{'value':String(_0x3d12ff[_0x4960fa(0x1c8)]),'label':_0x348c49['t'](_0x4960fa(0x41f))}],'onChange':_0x1be06a=>{const _0x46a4b1=_0x4960fa;let _0x516d19=[_0x3d12ff[_0x46a4b1(0x356)],_0x3d12ff[_0x46a4b1(0x1c8)]][_0x46a4b1(0x47f)](_0x4d1a00=>String(_0x4d1a00)===_0x1be06a);_0x516d19!==void 0x0&&_0x12cd19(_0x25a491=>_0x25a491[_0x46a4b1(0x2de)](_0x516d19,_0x25a491['getValueIndex']()<0x0?0x0:_0x25a491[_0x46a4b1(0x194)]()));}})]}),_0x3c00a1(_0x4960fa(0x1e5),{'className':_0x4960fa(0x463),'children':[_0x348c49['t']('bases-dashboard-ui.pivot.pageWrap'),_0x414ebe(_0x2963f5,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x401559[_0x4960fa(0x401)]??0x1,'onChange':_0x365ebe=>{let _0x45a2eb=Number(_0x365ebe);Number['isFinite'](_0x45a2eb)&&_0x45a2eb>=0x1&&_0x3605e7({'pageWrap':_0x45a2eb});}})]}),_0x3c00a1('label',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x348c49['t']('bases-dashboard-ui.pivot.pageDirection'),_0x414ebe(_0x296606,{'className':_0x4960fa(0x217),'value':String(_0x401559[_0x4960fa(0x2df)]??!0x1),'options':[{'value':'false','label':_0x348c49['t']('bases-dashboard-ui.pivot.downThenAcross')},{'value':'true','label':_0x348c49['t']('bases-dashboard-ui.pivot.acrossThenDown')}],'onChange':_0x197f54=>_0x3605e7({'pageOverThenDown':_0x197f54==='true'})})]})]});}function go(_0x2c035a,_0x598361,_0x5a4fc7,_0x5f2f16){const _0x150382=_0x290871;let _0x4f28bc=_0x2c035a[_0x150382(0x2c0)](_0x598361)[_0x150382(0x47f)](_0x1fcd56=>_0x2c035a[_0x150382(0x325)](_0x1fcd56[_0x150382(0x378)]())[_0x150382(0x225)]!==_0x1b52e3['Value']);_0x5a4fc7!==_0x1b52e3[_0x150382(0x19f)]&&_0x4f28bc?_0x2c035a[_0x150382(0x46b)](_0x4f28bc['getId'](),_0x5a4fc7,_0x5f2f16):_0x2c035a[_0x150382(0x229)](_0x598361,_0x5a4fc7,_0x5f2f16);}function _o(_0x53bd87,_0x43b2aa,_0x38b4c3,_0x2c71ca){const _0x288496=_0x290871;return _0x43b2aa===_0x3a56c2['blank']?_0x2c71ca:_0x43b2aa===_0x3a56c2[_0x288496(0x1e6)]&&_0x38b4c3?_0x488061[_0x288496(0x30f)](_0x38b4c3,Number(_0x53bd87)):_0x53bd87;}function vo(_0x343727){const _0x31646d=_0x290871;return _0x343727[_0x31646d(0x183)]===_0x5e006f['Number']||_0x343727['type']===_0x5e006f[_0x31646d(0x3b6)]||_0x343727['type']===_0x5e006f[_0x31646d(0x3e0)]||_0x343727[_0x31646d(0x183)]===_0x5e006f['Rating'];}function yo(_0x56e645){const _0x3e0d3d=_0x290871;switch(_0x56e645){case _0x1b52e3['Row']:return _0x3e0d3d(0x2c5);case _0x1b52e3[_0x3e0d3d(0x356)]:return'bases-dashboard-ui.pivot.addToColumn';case _0x1b52e3['Value']:return'bases-dashboard-ui.pivot.addToValue';default:return'bases-dashboard-ui.pivot.addToFilter';}}function bo({config:_0x3b6174,onChange:_0x2a4dbc,runtime:_0x1d77e5,table:_0x3d9bd0}){const _0x41d293=_0x290871;let _0x188218=_0xe276a8(_0x4b0f72),[_0x4afc58,_0x2b78ab]=_0x3f626c(_0x41d293(0x3a5));return _0x3c00a1(_0x41d293(0x3dc),{'className':_0x41d293(0x462),'children':[_0x414ebe(_0xbfe45a,{'ariaLabel':_0x188218['t']('bases-dashboard-ui.pivot.name'),'className':_0x41d293(0x407),'items':[{'label':_0x188218['t'](_0x41d293(0x3fa)),'panelId':_0x41d293(0x3fd),'value':'chart'},{'label':_0x188218['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'panelId':_0x41d293(0x25c),'value':_0x41d293(0x145)}],'value':_0x4afc58,'onChange':_0x2b78ab}),_0x414ebe(_0x41d293(0x384),{'className':_0x41d293(0x305),'children':_0x4afc58===_0x41d293(0x3a5)?_0x1d77e5&&_0x414ebe(ma,{'config':_0x3b6174,'runtime':_0x1d77e5,'tableName':_0x3d9bd0[_0x41d293(0x2a3)],'onChange':_0x2a4dbc}):_0x414ebe(so,{'config':_0x3b6174,'table':_0x3d9bd0,'onChange':_0x2a4dbc})})]});}function xo({tableId:_0x6c53de,unitId:_0x42a6ad,viewId:_0x508161}){const _0x3d069e=_0x290871;let _0x5055d7=_0xe276a8(_0x299365),_0x3f6c5a=_0xe276a8(_0x5abbf9),_0x40d192=_0xe276a8(_0x104d80),_0x5a2ea1=_0xe276a8(_0x4b0f72),_0x5a361e=_0xe276a8(_0xcfb712),[_0x2661c9,_0x327432]=_0x3f626c(null),[_0x4bbc61,_0x43e5c6]=_0x3f626c(null),_0x5ca84e=_0x3987b(_0x3d069e(0x26d)+_0x89ef13(0x8)),[_0x202b99,_0xba72f7]=_0x3f626c(!0x1),_0x4ee408=_0x3f6c5a['getUnit'](_0x42a6ad,_0x1516ee['UNIVER_BASE']),_0x1d3e76=_0x4ee408==null?void 0x0:_0x4ee408[_0x3d069e(0x18e)]()[_0x3d069e(0x377)][_0x6c53de],_0x469fd3=_0x1d3e76==null?void 0x0:_0x1d3e76[_0x3d069e(0x483)][_0x508161],_0x42b1e2=So(_0x469fd3),_0x56db5a=yr(_0x42a6ad,_0x6c53de,_0x508161);if(_0x330c05(()=>{const _0xedba4=_0x3d069e;if(!_0x42b1e2)return;let _0x3c56c9=_0x5ca84e[_0xedba4(0x2e7)];return _0x5a361e['acquireChartRuntime'](_0x3c56c9,{'unitId':_0x42a6ad,'tableId':_0x6c53de,'viewId':_0x508161,'filters':[]}),()=>{const _0x39acb4=_0xedba4;_0x5a361e[_0x39acb4(0x15c)](_0x42a6ad,_0x3c56c9);};},[_0x42b1e2,_0x5a361e,_0x6c53de,_0x42a6ad,_0x508161]),_0x330c05(()=>{const _0x6c11d8=_0x3d069e;if(!So(_0x469fd3))return;let _0x2387e5=!0x0,_0x5635f2={'unitId':_0x42a6ad,'tableId':_0x6c53de,'viewId':_0x508161,'filters':[_0x469fd3[_0x6c11d8(0x42d)]??null]};return _0x5a361e['refreshChartRuntime'](_0x42a6ad,_0x5ca84e[_0x6c11d8(0x2e7)],_0x5635f2)[_0x6c11d8(0x1fb)](_0x26dfff=>{const _0x8f65d4=_0x6c11d8;_0x2387e5&&_0x26dfff&&(_0x327432(_0x26dfff),_0x43e5c6(_0x5a361e[_0x8f65d4(0x3fb)](_0x42a6ad,_0x5ca84e[_0x8f65d4(0x2e7)])??null),_0xba72f7(!0x1));})[_0x6c11d8(0x147)](_0x182f6f=>{const _0x4b89da=_0x6c11d8;_0x40d192[_0x4b89da(0x198)](_0x4b89da(0x35f),_0x182f6f),_0x2387e5&&(_0x327432(null),_0xba72f7(!0x0));}),()=>{_0x2387e5=!0x1;};},[_0x40d192,_0x5a361e,_0x6c53de,_0x42a6ad,_0x469fd3,_0x508161]),!_0x1d3e76||!So(_0x469fd3))return null;let _0x25071f=_0x5a361e['getChartRuntime'](_0x42a6ad,_0x5ca84e[_0x3d069e(0x2e7)])===_0x4bbc61?_0x4bbc61:null,_0x15ad3d=_0x2661c9?_0x3c00a1(_0x3d069e(0x384),{'className':'univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','style':{'gridTemplateRows':_0x469fd3[_0x3d069e(0x193)][_0x3d069e(0x3f8)]===_0x3d069e(0x438)?_0x3d069e(0x348):'minmax(0,\x201fr)'},'children':[_0x469fd3[_0x3d069e(0x193)][_0x3d069e(0x3f8)]!=='table'&&_0x25071f&&_0x414ebe('div',{'className':'univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':_0x414ebe(Rr,{'isRowDirection':_0x52d288(_0x469fd3[_0x3d069e(0x193)]['chart'][_0x3d069e(0x3b2)]),'runtime':_0x25071f})}),_0x469fd3['config'][_0x3d069e(0x3f8)]!==_0x3d069e(0x3a5)&&_0x414ebe(_0x3d069e(0x384),{'className':_0x3d069e(0x2f7),'children':_0x414ebe(ji,{'pivot':_0x469fd3['config'][_0x3d069e(0x145)],'view':_0x2661c9[_0x3d069e(0x141)]})})]}):_0x414ebe(_0x3d069e(0x384),{'className':_0x3d069e(0x2b5),'children':_0x202b99?_0x5a2ea1['t'](_0x3d069e(0x32f)):_0x5a2ea1['t'](_0x3d069e(0x275))});return _0x3c00a1(_0x3d069e(0x384),{'className':_0x3d069e(0x249),'children':[_0x414ebe('div',{'className':_0x3d069e(0x175),'children':_0x15ad3d}),_0x56db5a&&_0x414ebe(bo,{'config':_0x469fd3[_0x3d069e(0x193)],'runtime':_0x25071f,'table':_0x1d3e76,'onChange':_0x1d8891=>{const _0x254573=_0x3d069e;_0x5055d7[_0x254573(0x25b)](_0x423077['id'],{'unitId':_0x42a6ad,'tableId':_0x6c53de,'viewId':_0x508161,'patch':_0x1d8891})[_0x254573(0x147)](_0x2da57a=>_0x40d192[_0x254573(0x198)]('[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.',_0x2da57a));}})]});}function So(_0x165832){const _0xc3e777=_0x290871;return(_0x165832==null?void 0x0:_0x165832['type'])===_0x3744eb[_0xc3e777(0x250)]&&typeof _0x165832[_0xc3e777(0x193)]==_0xc3e777(0x30e)&&_0x165832[_0xc3e777(0x193)]!==null&&_0xc3e777(0x145)in _0x165832[_0xc3e777(0x193)]&&_0xc3e777(0x3a5)in _0x165832[_0xc3e777(0x193)]&&'displayMode'in _0x165832['config'];}let Co=class extends _0x92f3c1{constructor(_0x56217c,_0x5ba57f,_0x2abf17,_0xf6db20,_0x59b732,_0x46a3ae){const _0x5a4ae1=_0x290871;super(),this[_0x5a4ae1(0x444)](_0x5ba57f['register']({'type':_0x3744eb[_0x5a4ae1(0x250)],'renderMode':_0x5a4ae1(0x342),'icon':_0x3abb8f,'component':xo,'menu':{get 'label'(){const _0x1896b3=_0x5a4ae1;return _0x46a3ae['t'](_0x1896b3(0x34b));},get 'description'(){const _0x2e880f=_0x5a4ae1;return _0x46a3ae['t'](_0x2e880f(0x17c));},get 'defaultName'(){return _0x46a3ae['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x5a4ae1(0x444)](_0x56217c[_0x5a4ae1(0x13c)](wo(_0x2abf17,_0xf6db20,_0x59b732,_0x46a3ae)));}};Co=Ar([Y(0x0,_0x73fa49),Y(0x1,_0x33fef6),Y(0x2,_0x106e69(_0x1aeb78)),Y(0x3,_0x299365),Y(0x4,_0x3813b4),Y(0x5,_0x106e69(_0x4b0f72))],Co);function wo(_0x5c9898,_0x2a2d11,_0x33d5dd,_0x23a8a9){const _0x494f88=_0x290871;return{'change$':_0x5d4904(_0x5c9898[_0x494f88(0x3f9)],_0x33d5dd[_0x494f88(0x2ef)]),'component':Xa,get 'labels'(){const _0x130eed=_0x494f88;return{'add':_0x23a8a9['t'](_0x130eed(0x3ba)),'configure':_0x1eddb8=>_0x23a8a9['t'](_0x130eed(0x2da),_0x1eddb8),'delete':_0x23a8a9['t'](_0x130eed(0x3b9)),'new':_0x23a8a9['t'](_0x130eed(0x477)),'rename':_0x23a8a9['t']('bases-dashboard-ui.dashboard.rename'),'search':_0x23a8a9['t']('bases-dashboard-ui.dashboard.search'),'section':_0x23a8a9['t'](_0x130eed(0x48e))};},'getItems':_0xbd5899=>{const _0x3fd5ba=_0x494f88;let _0x1755e9=_0x5c9898['getResource'](_0xbd5899);return _0x1755e9[_0x3fd5ba(0x35e)][_0x3fd5ba(0x2af)](_0x5e30ad=>{const _0x8c01f8=_0x3fd5ba;let _0x40ba17=_0x1755e9[_0x8c01f8(0x15a)][_0x5e30ad];return _0x40ba17?[{'id':_0x40ba17['id'],'name':_0x40ba17['name'],'readonly':!_0x353928(_0x33d5dd,_0xbd5899,_0x40ba17['id'])}]:[];});},'create':async _0x26c92a=>{const _0x4365c5=_0x494f88;let _0x3d3a6b=_0x5c9898['getResource'](_0x26c92a),_0x202344=_0x4365c5(0x251)+_0x89ef13(0x8),_0x528f00=To(_0x3d3a6b[_0x4365c5(0x35e)][_0x4365c5(0x2af)](_0x54f17f=>{const _0x30bd45=_0x4365c5;let _0x4e05d8=_0x3d3a6b['dashboards'][_0x54f17f];return _0x4e05d8?[_0x4e05d8[_0x30bd45(0x2a3)]]:[];}),_0x5e708d=>_0x23a8a9['t'](_0x4365c5(0x365),String(_0x5e708d)));return await _0x2a2d11[_0x4365c5(0x25b)](_0x28dee1['id'],{'unitId':_0x26c92a,'dashboard':{'id':_0x202344,'name':_0x528f00,'widgetOrder':[],'widgets':{}}})?_0x202344:null;},'rename':async(_0x2fe90c,_0x501a90,_0x54ee75)=>{const _0x59e852=_0x494f88;let _0x221000=_0x5c9898[_0x59e852(0x40d)](_0x2fe90c,_0x501a90);return!!(_0x221000&&await _0x2a2d11[_0x59e852(0x25b)](_0xe5ba16['id'],{'unitId':_0x2fe90c,'dashboard':{..._0x221000,'name':_0x54ee75}}));},'remove':(_0x6507df,_0x4574c6)=>_0x2a2d11[_0x494f88(0x25b)](_0x1d2c48['id'],{'unitId':_0x6507df,'dashboardId':_0x4574c6})};}function To(_0x351886,_0x3594f6){const _0x4ed997=_0x290871;let _0x2546bb=new Set(_0x351886),_0x29893c=_0x2546bb[_0x4ed997(0x25a)]+0x1,_0x1dbafd=_0x3594f6(_0x29893c);for(;_0x2546bb[_0x4ed997(0x170)](_0x1dbafd);)_0x29893c+=0x1,_0x1dbafd=_0x3594f6(_0x29893c);return _0x1dbafd;}let Eo=class extends _0x447642{constructor(_0x11b269=_r,_0x27c9fd,_0x4b3070){const _0x444acb=_0x290871;super(),this[_0x444acb(0x1f7)]=_0x11b269,this[_0x444acb(0x405)]=_0x27c9fd,this[_0x444acb(0x23b)]=_0x4b3070;let {..._0x341dcf}=_0x4fa520({},_r,this[_0x444acb(0x1f7)]);this[_0x444acb(0x23b)][_0x444acb(0x38f)](gr,_0x341dcf);}['onStarting'](){const _0x9a3608=_0x290871;this[_0x9a3608(0x405)][_0x9a3608(0x2e6)]([jr]),this[_0x9a3608(0x405)][_0x9a3608(0x2e6)]([qr]),this[_0x9a3608(0x405)][_0x9a3608(0x2e6)]([Co]);}[_0x290871(0x2a5)](){const _0x460455=_0x290871;_0x49d35e(this[_0x460455(0x405)],[[jr],[qr],[Co]]);}};Ir(Eo,_0x290871(0x183),_0x1516ee[_0x290871(0x3c2)]),Ir(Eo,'pluginName','BASE_DASHBOARD_UI_PLUGIN'),Ir(Eo,_0x290871(0x304),mr),Ir(Eo,'version',hr),Eo=Ar([_0x3bb5e2(_0x47a995,_0x528fcf,_0x2ed41f,_0xc5d54f,_0x48b358,_0x542cb3),Y(0x1,_0x106e69(_0x117569)),Y(0x2,_0x32ba7f)],Eo);export{ia as UniverBaseDashboardMobileUIPlugin,Eo as UniverBaseDashboardUIPlugin};