@univerjs-pro/bases-dashboard-ui 1.1.0 → 1.2.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 (101) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/cs-CZ.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/nl-NL.js +1 -1
  15. package/lib/cjs/locale/pl-PL.js +1 -1
  16. package/lib/cjs/locale/pt-BR.js +1 -1
  17. package/lib/cjs/locale/ru-RU.js +1 -1
  18. package/lib/cjs/locale/sk-SK.js +1 -1
  19. package/lib/cjs/locale/th-TH.js +1 -1
  20. package/lib/cjs/locale/tr-TR.js +1 -1
  21. package/lib/cjs/locale/uk-UA.js +1 -1
  22. package/lib/cjs/locale/vi-VN.js +1 -1
  23. package/lib/cjs/locale/zh-CN.js +1 -1
  24. package/lib/cjs/locale/zh-HK.js +1 -1
  25. package/lib/cjs/locale/zh-TW.js +1 -1
  26. package/lib/es/index.js +1 -1
  27. package/lib/es/locale/ar-SA.js +1 -1
  28. package/lib/es/locale/ca-ES.js +1 -1
  29. package/lib/es/locale/cs-CZ.js +1 -1
  30. package/lib/es/locale/de-DE.js +1 -1
  31. package/lib/es/locale/en-US.js +1 -1
  32. package/lib/es/locale/es-ES.js +1 -1
  33. package/lib/es/locale/fa-IR.js +1 -1
  34. package/lib/es/locale/fr-FR.js +1 -1
  35. package/lib/es/locale/id-ID.js +1 -1
  36. package/lib/es/locale/it-IT.js +1 -1
  37. package/lib/es/locale/ja-JP.js +1 -1
  38. package/lib/es/locale/ko-KR.js +1 -1
  39. package/lib/es/locale/nl-NL.js +1 -1
  40. package/lib/es/locale/pl-PL.js +1 -1
  41. package/lib/es/locale/pt-BR.js +1 -1
  42. package/lib/es/locale/ru-RU.js +1 -1
  43. package/lib/es/locale/sk-SK.js +1 -1
  44. package/lib/es/locale/th-TH.js +1 -1
  45. package/lib/es/locale/tr-TR.js +1 -1
  46. package/lib/es/locale/uk-UA.js +1 -1
  47. package/lib/es/locale/vi-VN.js +1 -1
  48. package/lib/es/locale/zh-CN.js +1 -1
  49. package/lib/es/locale/zh-HK.js +1 -1
  50. package/lib/es/locale/zh-TW.js +1 -1
  51. package/lib/index.js +1 -1
  52. package/lib/locale/ar-SA.js +1 -1
  53. package/lib/locale/ca-ES.js +1 -1
  54. package/lib/locale/cs-CZ.js +1 -1
  55. package/lib/locale/de-DE.js +1 -1
  56. package/lib/locale/en-US.js +1 -1
  57. package/lib/locale/es-ES.js +1 -1
  58. package/lib/locale/fa-IR.js +1 -1
  59. package/lib/locale/fr-FR.js +1 -1
  60. package/lib/locale/id-ID.js +1 -1
  61. package/lib/locale/it-IT.js +1 -1
  62. package/lib/locale/ja-JP.js +1 -1
  63. package/lib/locale/ko-KR.js +1 -1
  64. package/lib/locale/nl-NL.js +1 -1
  65. package/lib/locale/pl-PL.js +1 -1
  66. package/lib/locale/pt-BR.js +1 -1
  67. package/lib/locale/ru-RU.js +1 -1
  68. package/lib/locale/sk-SK.js +1 -1
  69. package/lib/locale/th-TH.js +1 -1
  70. package/lib/locale/tr-TR.js +1 -1
  71. package/lib/locale/uk-UA.js +1 -1
  72. package/lib/locale/vi-VN.js +1 -1
  73. package/lib/locale/zh-CN.js +1 -1
  74. package/lib/locale/zh-HK.js +1 -1
  75. package/lib/locale/zh-TW.js +1 -1
  76. package/lib/umd/index.js +1 -1
  77. package/lib/umd/locale/ar-SA.js +1 -1
  78. package/lib/umd/locale/ca-ES.js +1 -1
  79. package/lib/umd/locale/cs-CZ.js +1 -1
  80. package/lib/umd/locale/de-DE.js +1 -1
  81. package/lib/umd/locale/en-US.js +1 -1
  82. package/lib/umd/locale/es-ES.js +1 -1
  83. package/lib/umd/locale/fa-IR.js +1 -1
  84. package/lib/umd/locale/fr-FR.js +1 -1
  85. package/lib/umd/locale/id-ID.js +1 -1
  86. package/lib/umd/locale/it-IT.js +1 -1
  87. package/lib/umd/locale/ja-JP.js +1 -1
  88. package/lib/umd/locale/ko-KR.js +1 -1
  89. package/lib/umd/locale/nl-NL.js +1 -1
  90. package/lib/umd/locale/pl-PL.js +1 -1
  91. package/lib/umd/locale/pt-BR.js +1 -1
  92. package/lib/umd/locale/ru-RU.js +1 -1
  93. package/lib/umd/locale/sk-SK.js +1 -1
  94. package/lib/umd/locale/th-TH.js +1 -1
  95. package/lib/umd/locale/tr-TR.js +1 -1
  96. package/lib/umd/locale/uk-UA.js +1 -1
  97. package/lib/umd/locale/vi-VN.js +1 -1
  98. package/lib/umd/locale/zh-CN.js +1 -1
  99. package/lib/umd/locale/zh-HK.js +1 -1
  100. package/lib/umd/locale/zh-TW.js +1 -1
  101. package/package.json +18 -18
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xbfff20=_0x5dbe;(function(_0x5b1820,_0x5afdf2){const _0x3a449a=_0x5dbe,_0x37a565=_0x5b1820();while(!![]){try{const _0x299548=parseInt(_0x3a449a(0x229))/0x1+-parseInt(_0x3a449a(0x32a))/0x2+-parseInt(_0x3a449a(0x1c6))/0x3*(parseInt(_0x3a449a(0x1dc))/0x4)+-parseInt(_0x3a449a(0x2b2))/0x5+parseInt(_0x3a449a(0x230))/0x6+parseInt(_0x3a449a(0x39c))/0x7*(parseInt(_0x3a449a(0x2f0))/0x8)+parseInt(_0x3a449a(0x1f9))/0x9*(-parseInt(_0x3a449a(0x3ce))/0xa);if(_0x299548===_0x5afdf2)break;else _0x37a565['push'](_0x37a565['shift']());}catch(_0x529867){_0x37a565['push'](_0x37a565['shift']());}}}(_0x1cf0,0x2a8c7));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x3e9cab,BASES_DASHBOARD_GRID_COLUMNS as _0x5c9bf8,BaseChartRuntimeService as _0x441727,BaseDashboardResourceService as _0x309002,BaseDashboardWidgetType as _0x1402ed,CreateBaseDashboardCommand as _0x28a4bb,DeleteBaseDashboardCommand as _0x22a544,RemoveBaseDashboardWidgetCommand as _0x55f0a4,UniverBaseDashboardPlugin as _0xbeeff3,UpdateBaseDashboardCommand as _0x39c855,UpdateBasePivotViewCommand as _0x50437b,UpsertBaseDashboardWidgetCommand as _0x1c8540,canEditBaseDashboard as _0x120634,canEditBasePivotView as _0x19dd77,createBasePivotTable as _0x560cf4,resolveBasePivotChartRowDirection as _0x3b57e8}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x24a280,BaseMobileDrawer as _0xbfe7,BaseMobileFilterOperand as _0x2a8e30,BaseMobileFilterPanel as _0x40f4ca,BaseUnitCollaborationStatus as _0x36e7c3,FormulaEditorPanel as _0x375bf1,IBaseDashboardUIExtensionRegistryService as _0x2a9f9e,IBaseViewUIRegistryService as _0x1611be,MobileFormulaEditorPanel as _0x5e5ef4,UniverBasesMobileUIPlugin as _0x31752d,UniverBasesUIPlugin as _0xfebde9,formulaToEditorFormula as _0x200012,normalizeEditorFormulaForConfig as _0x359363,toFormulaMenuTables as _0xacf6bd,toMenuFields as _0x173f22}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x1fbca7,ChartAxisSection as _0x54bdb3,ChartColorField as _0x4931cb,ChartCommonDataMappingSection as _0x521472,ChartEditBlockTitle as _0x4ed5df,ChartEditPanel as _0x420eaf,ChartEditPanelSection as _0x275cd6,ChartEditPanelTab as _0x39d056,ChartEditPanelTabs as _0x242d81,ChartEditorCapability as _0x235cca,ChartEditorProvider as _0x413b19,ChartFunnelStyleSection as _0x5c3a2a,ChartGradientFillField as _0x18f4fe,ChartGridlinesAndTicksSection as _0xd55416,ChartHeatmapStyleSection as _0x1a9d64,ChartHostAdapter as _0x439e96,ChartIndicatorLineSection as _0x4e8f14,ChartLegendSection as _0x40abfd,ChartLineAndAreaSection as _0x67621e,ChartNumberFormatAtom as _0x1fdd9c,ChartParetoSeriesSection as _0xc41187,ChartPieStyleSection as _0x411c97,ChartRadarStyleSection as _0x3cdb06,ChartRelationStyleSection as _0x43b09c,ChartSectionAccordion as _0x169833,ChartSectionAccordionContent as _0x50efea,ChartSectionAccordionItem as _0x476c3e,ChartSectionAccordionTrigger as _0x3ee43e,ChartSeriesSection as _0x3fdf0f,ChartStackField as _0x14bbde,ChartStyleSection as _0x392a75,ChartThemeField as _0x2a621a,ChartThreeDSection as _0x461f63,ChartTitlesSection as _0x3a97b5,ChartTrendlineSection as _0x2d84a4,ChartTypeField as _0x44e1cd,ChartTypeSpecificDataSection as _0x27502d,ChartTypeSpecificSetupSection as _0xd07337,ChartTypeSpecificStyleSection as _0x359635,ChartUIService as _0x22cc04,ChartViewStateRegistry as _0x41a29f,ChartWaterfallSetupFields as _0x1e15dd,ChartWaterfallStyleSection as _0x321527,ChartWordCloudStyleSection as _0x34e06c,DEFAULT_CHART_AXIS_VALUES as _0x3c4ba3,DEFAULT_CHART_FUNNEL_VALUES as _0x2c5e3a,DEFAULT_CHART_HEATMAP_VALUES as _0x4f57a1,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x57cad4,DEFAULT_CHART_LEGEND_VALUES as _0x43f27b,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x1a8b1f,DEFAULT_CHART_PARETO_VALUES as _0x1aa1b1,DEFAULT_CHART_PIE_VALUES as _0x258d6f,DEFAULT_CHART_RADAR_VALUES as _0x2ec41b,DEFAULT_CHART_RELATION_VALUES as _0x4805f6,DEFAULT_CHART_SERIES_VALUES as _0x13b217,DEFAULT_CHART_STYLE_VALUES as _0x13d7eb,DEFAULT_CHART_TITLE_VALUES as _0x4abb4a,DEFAULT_CHART_TRENDLINE_VALUES as _0x72a22e,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x2cc178,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x436808,DEFAULT_CHART_WORD_CLOUD_VALUES as _0xfd1cc7,MobileChartEditorControls as _0x16eea4,MobileChartEditorProvider as _0x5cda0c,UniverChartMobileUIPlugin as _0x48f981,UniverChartUIPlugin as _0x136391,buildChartTypeSelectOptions as _0x5b5e1c,chartTypeSupportsCapability as _0x4c4c0b,chartTypeSupportsLineAndAreaStyle as _0x2324f4,useChartEditorChartType as _0x486f74,useChartEditorHasRightAxis as _0x3d2664}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x36c2e0}from'@univerjs-pro/license';import{ShapeFormulaService as _0x5cf3f4,UniverShapeEditorPlugin as _0x3371b7,createFormulaShapeData as _0x18c256}from'@univerjs-pro/shape-editor';function _0x5dbe(_0x1bc8d8,_0x17cf69){_0x1bc8d8=_0x1bc8d8-0x158;const _0x1cf071=_0x1cf0();let _0x5dbe10=_0x1cf071[_0x1bc8d8];return _0x5dbe10;}import{BaseFieldType as _0x4fcd7c,BaseFilterConjunction as _0x4854b1,BaseFilterOperator as _0x30a5c8,BaseViewType as _0x54a718,DependentOn as _0x1957bf,Disposable as _0x2eec42,ICommandService as _0x2220df,IConfigService as _0x6de229,IImageIoService as _0x4fbe75,ILogService as _0x49fceb,IPermissionService as _0x4deb76,IUndoRedoService as _0x1daf4e,IUniverInstanceService as _0x14186a,ImageSourceType as _0x18951a,Inject as _0x38b292,Injector as _0x38337e,LocaleService as _0x2989fb,ObjectPermissionService as _0x4b64cf,Plugin as _0x14271e,RedoCommand as _0x413296,ThemeService as _0x3fdc71,UndoCommand as _0x38c4d5,UniverInstanceType as _0x37ea54,createParagraphId as _0x467708,dateKit as _0x1be5ea,generateRandomId as _0xd28735,merge as _0x2004cb,numfmt as _0x4bc3f5,touchDependencies as _0x5b9752}from'@univerjs/core';import{UniverDocsUIPlugin as _0xc91b76}from'@univerjs/docs-ui';import{ArrowDownIcon as _0x55a2db,ArrowUpIcon as _0x54c046,AscendingIcon as _0x5de895,CalendarIcon as _0x23c2ab,ChartIcon as _0x396df3,CloseIcon as _0x33d94a,DeleteIcon as _0x48daea,DescendingIcon as _0xcbb196,ExpandIcon as _0x275a4b,FilterIcon as _0xad9ba4,GripVerticalIcon as _0x4f0f93,IncreaseIcon as _0x34be53,MoreDownIcon as _0xacb52a,MoreHorizontalIcon as _0x122b7c,NumberIcon as _0x45f616,PenIcon as _0xddf888,PivotTableIcon as _0x25ef71,ProtectIcon as _0x2ff091,RedoIcon as _0x421b18,SearchIcon as _0x302bc4,TextIcon as _0x383758,UndoIcon as _0x5d8a74}from'@univerjs/icons';import{combineLatest as _0x2dd9ec,map as _0x3fca8e,merge as _0x440773,skip as _0x12e509}from'rxjs';import{SetBasePermissionCommand as _0x501d41,getBaseDashboardPermissionObjectId as _0x3f3aa0}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x3107a8}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x2ed70e,ShapeLineTypeEnum as _0x48222a,ShapeTypeEnum as _0xed2d79}from'@univerjs-pro/engine-shape';import{Button as _0x6d25a2,Checkbox as _0x1eb8df,DatePicker as _0x406bb7,Dialog as _0x178b21,DropdownMenu as _0x440082,Input as _0x1b54d7,InputNumber as _0x5a3ae3,MobileDialog as _0x2c4746,MobileDropdownMenu as _0x15dcec,MobileSelect as _0x3cb16e,MultipleSelect as _0x5cd170,Segmented as _0x4fe720,Select as _0x219a49,Textarea as _0x435e56,Tooltip as _0x501781,borderClassName as _0x14cf31,clsx as _0x14b647,scrollbarClassName as _0x439165}from'@univerjs/design';import{UnitObject as _0x26ad9b}from'@univerjs/protocol';import{ILayoutService as _0x3927ed,ObjectPermissionButton as _0xad9b28,openObjectPermissionDialog as _0x7236fe,useDependency as _0x29f087,useObservable as _0x39908a}from'@univerjs/ui';import{useCallback as _0xdcfb42,useEffect as _0x436796,useMemo as _0x548c0f,useRef as _0x2861da,useState as _0x34e679}from'react';import{Fragment as _0x52e8d3,jsx as _0x1c53e9,jsxs as _0x1108cb}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x5135e6,ChartRenderMode as _0x2fe426,ChartThemeService as _0x384907,ChartTypeBits as _0x217c21,ChartWaterfallStyleTarget as _0x17b66a,IChartRenderModelManagerService as _0x4a688d,RTLChartStyle as _0x40bf0b,chartBitsUtils as _0x1094d9,chartTypeCanUseTrendLine as _0x23f1e4,resolveChartRuntimeStyle as _0x21eccd,resolveDefaultChartHostFrameStyle as _0x1fcd93,toChartModelUpdate as _0x3aa652}from'@univerjs-pro/engine-chart';import{createPortal as _0x3ae99d}from'react-dom';import{PivotCellStyleTypeEnum as _0x4b5125,PivotDataFieldDataTypeEnum as _0x48a00c,PivotDataFieldSortOperatorEnum as _0xaa402b,PivotFilterTypeEnum as _0x5a1647,PivotLayoutTypeEnum as _0x66aa38,PivotSubtotalPositionEnum as _0x571e80,PivotSubtotalTypeEnum as _0x4ad10e,PivotTableFiledAreaEnum as _0x1126e4,PivotTableValuePositionEnum as _0xe5d4e5,isErrorValue as _0xfe435,isPrefixValue as _0x1a85fe}from'@univerjs-pro/engine-pivot';var pr=_0xbfff20(0x188),mr=_0xbfff20(0x43e);const hr='bases-dashboard-ui.config',gr={};function _r(_0x3c8b96,_0x55526d){const _0x3134c3=_0xbfff20;let _0x38c2f5=_0x29f087(_0x4deb76),_0x7e2a98=_0x120634(_0x38c2f5,_0x3c8b96,_0x55526d);return _0x39908a(()=>_0x38c2f5[_0x3134c3(0x179)][_0x3134c3(0x472)](_0x3fca8e(()=>_0x120634(_0x38c2f5,_0x3c8b96,_0x55526d))),_0x7e2a98,!0x1,[_0x55526d,_0x38c2f5,_0x3c8b96]);}function vr(_0x2303df,_0x397cf2,_0xe65f33){const _0x3ed6d6=_0xbfff20;let _0x5c06e9=_0x29f087(_0x4deb76),_0x36d55b=_0x19dd77(_0x5c06e9,_0x2303df,_0x397cf2,_0xe65f33);return _0x39908a(()=>_0x5c06e9['permissionPointUpdate$'][_0x3ed6d6(0x472)](_0x3fca8e(()=>_0x19dd77(_0x5c06e9,_0x2303df,_0x397cf2,_0xe65f33))),_0x36d55b,!0x1,[_0x5c06e9,_0x397cf2,_0x2303df,_0xe65f33]);}function yr(_0x3cca68,_0x5d72fb=_0xbfff20(0x2b8)){const _0x71e6ed=_0xbfff20;return{'backgroundImage':_0x71e6ed(0x20f)+JSON[_0x71e6ed(0x3e1)](_0x3cca68)+')','backgroundPosition':_0x5d72fb===_0x71e6ed(0x33c)?_0x71e6ed(0x1a9):_0x71e6ed(0x34f),'backgroundRepeat':_0x5d72fb==='repeat'?_0x71e6ed(0x33c):'no-repeat','backgroundSize':_0x5d72fb===_0x71e6ed(0x2b8)?_0x71e6ed(0x2b8):_0x71e6ed(0x2fd)};}const br={'alignment':_0xbfff20(0x297),'currency':'USD','decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':'auto','numberFormat':_0xbfff20(0x3b8)},xr={'CNY':'¥','EUR':'€','USD':'$'};function Sr(_0x565867){const _0x350c7d=_0xbfff20;var _0x4d4280;let _0x3f8985=Er(((_0x4d4280=_0x565867[_0x350c7d(0x18a)][_0x350c7d(0x226)])==null||(_0x4d4280=_0x4d4280['numberFormat'])==null?void 0x0:_0x4d4280[_0x350c7d(0x18b)])??'');return{...br,..._0x3f8985,..._0x565867[_0x350c7d(0x31e)]};}function Cr(_0x1f7427,_0x1e9c5f){const _0x5ed13b=_0xbfff20;let _0xec262e={..._0x1f7427[_0x5ed13b(0x31e)],..._0x1e9c5f},_0x324536=Sr({..._0x1f7427,'appearance':_0xec262e}),_0x52b8d8=_0x1f7427[_0x5ed13b(0x18a)]['formulaBinding']??{'formula':''};return{..._0x1f7427,'appearance':_0xec262e,'shapeData':{..._0x1f7427[_0x5ed13b(0x18a)],'formulaBinding':{..._0x52b8d8,'numberFormat':{'pattern':wr(_0x324536[_0x5ed13b(0x4a5)],_0x324536[_0x5ed13b(0x372)],_0x324536[_0x5ed13b(0x33e)])}}}};}function wr(_0x121837,_0x1bb12d,_0x24d2ab){const _0x586ed1=_0xbfff20;let _0x46ce6e=Math[_0x586ed1(0x43f)](0x0,Math['min'](0x8,Math['round'](_0x1bb12d))),_0xc4bb10=_0x46ce6e?'.'+'0'['repeat'](_0x46ce6e):'';switch(_0x121837){case _0x586ed1(0x2f5):return'0'+_0xc4bb10;case _0x586ed1(0x28d):return'0'+_0xc4bb10+'%';case _0x586ed1(0x33e):return(xr[_0x24d2ab]??_0x24d2ab)+_0x586ed1(0x1a4)+_0xc4bb10;case _0x586ed1(0x2ce):return _0x586ed1(0x1a4)+_0xc4bb10;case _0x586ed1(0x3eb):case _0x586ed1(0x3b8):return _0x586ed1(0x44a);}}function Tr(_0x576e08,_0x3b937e,_0x45c2b9){const _0x2de0b4=_0xbfff20;return _0x45c2b9[_0x2de0b4(0x4a5)]!==_0x2de0b4(0x3eb)||typeof _0x3b937e!=_0x2de0b4(0x2f5)||!Number['isFinite'](_0x3b937e)?_0x576e08:new Intl[(_0x2de0b4(0x2dc))](void 0x0,{'notation':_0x2de0b4(0x3eb),'minimumFractionDigits':_0x45c2b9[_0x2de0b4(0x372)]??0x0,'maximumFractionDigits':_0x45c2b9[_0x2de0b4(0x372)]??0x0})[_0x2de0b4(0x1ea)](_0x3b937e);}function Er(_0x20a969){const _0x357c0a=_0xbfff20;var _0x478141,_0x36bcee;if(!_0x20a969||_0x20a969===_0x357c0a(0x44a))return{};let _0x2e09a7=_0x20a969[_0x357c0a(0x2cd)](/\.([0#]+)/),_0x360f69=(_0x2e09a7==null||(_0x478141=_0x2e09a7[0x1])==null?void 0x0:_0x478141[_0x357c0a(0x2df)])??0x0;if(_0x20a969[_0x357c0a(0x3d0)]('%'))return{'decimalPlaces':_0x360f69,'numberFormat':_0x357c0a(0x28d)};let _0x45c538=(_0x36bcee=Object[_0x357c0a(0x1c1)](xr)[_0x357c0a(0x1ac)](([,_0x1f0dc2])=>_0x20a969[_0x357c0a(0x3d0)](_0x1f0dc2)))==null?void 0x0:_0x36bcee[0x0];return _0x45c538?{'currency':_0x45c538,'decimalPlaces':_0x360f69,'numberFormat':'currency'}:{'decimalPlaces':_0x360f69,'numberFormat':_0x20a969[_0x357c0a(0x3d0)](',')?_0x357c0a(0x2ce):_0x357c0a(0x2f5)};}const Dr={'center':_0xbfff20(0x34f),'left':_0xbfff20(0x407),'right':_0xbfff20(0x489)};function Or({dashboardId:_0x4f5ef8,unitId:_0x1f23c0,widget:_0x5ee796}){const _0x3c86f5=_0xbfff20;var _0x217dd3,_0x1f29e3,_0x1aeb9f,_0x37bc4f,_0x48ba1a,_0x228684,_0x4cdeb4,_0x6d7cbe,_0x1f2da7;let _0x5cc3ee=_0x29f087(_0x5cf3f4),_0x3dc9bd=_0x29f087(_0x4fbe75),_0x59e4eb=_0x29f087(_0x2989fb),_0x20043b=_0x548c0f(()=>({'hostType':_0x37ea54[_0x3c86f5(0x2e2)],'unitId':_0x1f23c0,'subUnitId':_0x4f5ef8,'shapeId':_0x5ee796['id']}),[_0x4f5ef8,_0x1f23c0,_0x5ee796['id']]),[_0x39bc01,_0x4998fb]=_0x34e679(()=>_0x5cc3ee[_0x3c86f5(0x1ae)](_0x20043b)),[_0x1af4cc,_0x2ae5be]=_0x34e679(()=>{const _0x408f7a=_0x3c86f5;var _0x497a7d;return(_0x497a7d=_0x5cc3ee[_0x408f7a(0x29b)](_0x20043b))==null?void 0x0:_0x497a7d[_0x408f7a(0x1b5)];}),[_0x3ba593,_0x19a062]=_0x34e679(),_0x5cabfb=_0x2861da(null),_0x5e6ee6=_0x2861da(null),_0x547f25=Sr(_0x5ee796);_0x436796(()=>{const _0x35b112=_0x3c86f5;let _0x4dbfbe=_0x5cc3ee['presentationChanged$'][_0x35b112(0x2d5)](_0x25d5d0=>{const _0x1f6740=_0x35b112;_0x25d5d0[_0x1f6740(0x289)]===_0x1f23c0&&_0x25d5d0[_0x1f6740(0x424)]===_0x4f5ef8&&_0x25d5d0['shapeId']===_0x5ee796['id']&&(_0x4998fb(_0x25d5d0['presentation']),_0x2ae5be(_0x25d5d0[_0x1f6740(0x324)][_0x1f6740(0x1b5)]));});return()=>_0x4dbfbe['unsubscribe']();},[_0x4f5ef8,_0x5cc3ee,_0x20043b,_0x1f23c0,_0x5ee796['id']]),_0x436796(()=>{const _0x52212e=_0x3c86f5;let _0x2ff2de=_0x547f25['backgroundImage'];if(!_0x2ff2de||_0x2ff2de[_0x52212e(0x18c)]!==_0x18951a[_0x52212e(0x202)])return;let _0x8a0296=_0x3dc9bd[_0x52212e(0x1fa)](_0x2ff2de[_0x52212e(0x2ad)],_0x2ff2de['sourceType']);if(_0x8a0296!=null&&_0x8a0296[_0x52212e(0x175)])return;let _0x582464=!0x0;return _0x3dc9bd[_0x52212e(0x3a4)](_0x2ff2de['source'])['then'](_0x4260a6=>{_0x582464&&_0x19a062({'source':_0x2ff2de['source'],'value':_0x4260a6});})['catch'](()=>void 0x0),()=>{_0x582464=!0x1;};},[_0x547f25[_0x3c86f5(0x345)],_0x3dc9bd]);let _0x2ede9c=((_0x217dd3=_0x547f25[_0x3c86f5(0x345)])==null?void 0x0:_0x217dd3[_0x3c86f5(0x18c)])===_0x18951a[_0x3c86f5(0x202)]?((_0x1f29e3=_0x3dc9bd['getImageSourceCache'](_0x547f25[_0x3c86f5(0x345)][_0x3c86f5(0x2ad)],_0x547f25[_0x3c86f5(0x345)][_0x3c86f5(0x18c)]))==null?void 0x0:_0x1f29e3['src'])??((_0x3ba593==null?void 0x0:_0x3ba593['source'])===_0x547f25[_0x3c86f5(0x345)][_0x3c86f5(0x2ad)]?_0x3ba593[_0x3c86f5(0x1b5)]:''):((_0x1aeb9f=_0x547f25[_0x3c86f5(0x345)])==null?void 0x0:_0x1aeb9f['source'])??'',_0x4f5bc5=_0x5ee796[_0x3c86f5(0x18a)][_0x3c86f5(0x1a7)],_0x42e43a=_0x4f5bc5&&_0x3c86f5(0x1a3)in _0x4f5bc5?(_0x37bc4f=_0x4f5bc5['dataModel'])==null?void 0x0:_0x37bc4f['doc']:void 0x0,_0x5d71d2=Tr((_0x39bc01==null?void 0x0:_0x39bc01['text'])??'',_0x1af4cc,_0x547f25),_0x47029f=_0x5ee796[_0x3c86f5(0x18a)][_0x3c86f5(0x467)],_0x58f84b=_0x5ee796[_0x3c86f5(0x18a)][_0x3c86f5(0x420)],_0x249def=_0x42e43a==null||(_0x48ba1a=_0x42e43a[_0x3c86f5(0x3b6)])==null?void 0x0:_0x48ba1a[_0x3c86f5(0x38b)],_0x408a81=_0x5ee796[_0x3c86f5(0x429)]??_0x5ee796['title']??'';return _0x436796(()=>{const _0x4a77e2=_0x3c86f5;let _0x4406e6=_0x5cabfb[_0x4a77e2(0x49d)],_0x7ec7fb=_0x5e6ee6[_0x4a77e2(0x49d)];if(!_0x4406e6||!_0x7ec7fb)return;let _0x2e5507=()=>{const _0xad9c41=_0x4a77e2;if(_0x547f25[_0xad9c41(0x1ab)]===_0xad9c41(0x22d)||!_0x4406e6[_0xad9c41(0x3c1)]||!_0x4406e6[_0xad9c41(0x2d6)]){_0x7ec7fb[_0xad9c41(0x2c8)][_0xad9c41(0x320)]=_0x547f25[_0xad9c41(0x320)]+'px';return;}let _0x1ae6b8=0x1,_0x4fa67a=0x48,_0x52d58b=_0x1ae6b8;for(;_0x1ae6b8<=_0x4fa67a;){let _0xc1324=Math['floor']((_0x1ae6b8+_0x4fa67a)/0x2);_0x7ec7fb[_0xad9c41(0x2c8)][_0xad9c41(0x320)]=_0xc1324+'px',_0x7ec7fb[_0xad9c41(0x302)]<=_0x4406e6['clientWidth']&&_0x7ec7fb['scrollHeight']<=_0x4406e6[_0xad9c41(0x2d6)]?(_0x52d58b=_0xc1324,_0x1ae6b8=_0xc1324+0x1):_0x4fa67a=_0xc1324-0x1;}_0x7ec7fb[_0xad9c41(0x2c8)][_0xad9c41(0x320)]=_0x52d58b+'px';};if(_0x2e5507(),typeof ResizeObserver>'u')return;let _0xd62ac0=new ResizeObserver(_0x2e5507);return _0xd62ac0[_0x4a77e2(0x42d)](_0x4406e6),()=>_0xd62ac0[_0x4a77e2(0x19f)]();},[_0x547f25[_0x3c86f5(0x320)],_0x547f25['fontSizeMode'],_0x5d71d2]),_0x1108cb(_0x3c86f5(0x1e8),{'data-dashboard-formula-shape':_0x5ee796['id'],'className':_0x3c86f5(0x212),'style':{'backgroundColor':((_0x228684=_0x5ee796[_0x3c86f5(0x31e)])==null?void 0x0:_0x228684[_0x3c86f5(0x33d)])??((_0x47029f==null?void 0x0:_0x47029f['fillType'])===_0x2ed70e['SolidFill']?_0x47029f['color']??void 0x0:void 0x0),'border':(_0x58f84b==null?void 0x0:_0x58f84b['lineStrokeType'])===_0x48222a[_0x3c86f5(0x3f7)]?(_0x58f84b[_0x3c86f5(0x4ac)]??0x1)+_0x3c86f5(0x2f6)+(_0x58f84b[_0x3c86f5(0x1cd)]??_0x3c86f5(0x363)):void 0x0,'borderRadius':_0x5ee796[_0x3c86f5(0x28c)]===_0xed2d79[_0x3c86f5(0x370)]?0xc:void 0x0,'color':((_0x4cdeb4=_0x5ee796['appearance'])==null?void 0x0:_0x4cdeb4[_0x3c86f5(0x42f)])??(_0x39bc01==null?void 0x0:_0x39bc01[_0x3c86f5(0x1cd)])??(_0x249def==null||(_0x6d7cbe=_0x249def['cl'])==null?void 0x0:_0x6d7cbe[_0x3c86f5(0x263)])??void 0x0,'fontWeight':_0x249def!=null&&_0x249def['bl']?0x258:void 0x0,'textAlign':_0x547f25[_0x3c86f5(0x2c1)]},'children':[_0x2ede9c&&_0x1c53e9(_0x3c86f5(0x15e),{'src':_0x2ede9c,'alt':'','aria-hidden':'true','className':_0x3c86f5(0x369),'style':{'objectFit':((_0x1f2da7=_0x547f25[_0x3c86f5(0x345)])==null?void 0x0:_0x1f2da7[_0x3c86f5(0x290)])??_0x3c86f5(0x2b8)}}),_0x1108cb(_0x3c86f5(0x1e8),{'className':_0x3c86f5(0x259),'children':[_0x408a81&&_0x1c53e9(_0x3c86f5(0x1e8),{'data-dashboard-formula-description':!0x0,'className':'univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','children':_0x408a81}),_0x1c53e9(_0x3c86f5(0x1e8),{'ref':_0x5cabfb,'data-dashboard-formula-value':!0x0,'aria-label':_0x408a81||_0x59e4eb['t'](_0x3c86f5(0x47b)),'className':_0x3c86f5(0x488),'style':{'justifyContent':Dr[_0x547f25[_0x3c86f5(0x2c1)]]},'children':_0x1c53e9('span',{'ref':_0x5e6ee6,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x547f25[_0x3c86f5(0x1ab)],'className':_0x3c86f5(0x498),'children':_0x5d71d2})})]})]});}function Y(_0x440931,_0x1911b6){return function(_0x58a2bd,_0x391246){_0x1911b6(_0x58a2bd,_0x391246,_0x440931);};}function kr(_0x1bb25b,_0x209bd4,_0x5a2f18,_0x240a2b){const _0x300a47=_0xbfff20;var _0x4c5bed=arguments[_0x300a47(0x2df)],_0x16a5d4=_0x4c5bed<0x3?_0x209bd4:_0x240a2b===null?_0x240a2b=Object[_0x300a47(0x245)](_0x209bd4,_0x5a2f18):_0x240a2b,_0xc14544;if(typeof Reflect==_0x300a47(0x235)&&typeof Reflect[_0x300a47(0x1e7)]==_0x300a47(0x3c7))_0x16a5d4=Reflect[_0x300a47(0x1e7)](_0x1bb25b,_0x209bd4,_0x5a2f18,_0x240a2b);else{for(var _0x10e7d2=_0x1bb25b['length']-0x1;_0x10e7d2>=0x0;_0x10e7d2--)(_0xc14544=_0x1bb25b[_0x10e7d2])&&(_0x16a5d4=(_0x4c5bed<0x3?_0xc14544(_0x16a5d4):_0x4c5bed>0x3?_0xc14544(_0x209bd4,_0x5a2f18,_0x16a5d4):_0xc14544(_0x209bd4,_0x5a2f18))||_0x16a5d4);}return _0x4c5bed>0x3&&_0x16a5d4&&Object[_0x300a47(0x49f)](_0x209bd4,_0x5a2f18,_0x16a5d4),_0x16a5d4;}let Ar=class{constructor(_0x4382e3,_0x269b10,_0x36d762){const _0x51a6b8=_0xbfff20;this['_localeService']=_0x4382e3,this[_0x51a6b8(0x27b)]=_0x269b10,this[_0x51a6b8(0x2b7)]=_0x36d762;}[_0xbfff20(0x1f1)](){const _0x124286=_0xbfff20;return this['_renderModelManager']['createChartInstance'](_0x2fe426[_0x124286(0x422)],this[_0x124286(0x473)]());}[_0xbfff20(0x47d)](_0x15527d){const _0x5ecc4c=_0xbfff20;let _0x33e7c3=_0x15527d[_0x5ecc4c(0x1ee)]['config'];if(!_0x33e7c3)throw Error(_0x5ecc4c(0x3be)+_0x15527d[_0x5ecc4c(0x371)]+_0x5ecc4c(0x3bc));let _0x174046=this[_0x5ecc4c(0x1d5)][_0x5ecc4c(0x484)]();return{'config':_0x33e7c3,'style':_0x21eccd({..._0x15527d['model'][_0x5ecc4c(0x2c8)],'runtime':_0x15527d[_0x5ecc4c(0x1ee)][_0x5ecc4c(0x2dd)](_0x174046),'direction':_0x174046},_0x33e7c3[_0x5ecc4c(0x427)])};}['_createContext'](){const _0xa39270=_0xbfff20;return{'resolveHostStyle':({style:_0xf25289})=>_0x1fcd93({'style':_0xf25289,'getRenderColor':_0x860c04=>this[_0xa39270(0x27b)][_0xa39270(0x47f)](_0x860c04)}),'resolveRenderBackgroundColor':({hostStyle:_0x257ea4})=>_0x257ea4['fill']};}};Ar=kr([Y(0x0,_0x38b292(_0x2989fb)),Y(0x1,_0x38b292(_0x384907)),Y(0x2,_0x4a688d)],Ar);function jr(_0x44e981,_0x51402f){const _0x1d0f3a=_0xbfff20;var _0x5d56c3;_0x44e981['style'][_0x1d0f3a(0x33d)]=_0x51402f['fill']??'transparent',_0x44e981[_0x1d0f3a(0x2c8)]['border']=(_0x5d56c3=_0x51402f[_0x1d0f3a(0x426)])!=null&&_0x5d56c3[_0x1d0f3a(0x1cd)]&&_0x51402f[_0x1d0f3a(0x426)][_0x1d0f3a(0x4ac)]?_0x51402f[_0x1d0f3a(0x426)][_0x1d0f3a(0x4ac)]+'px\x20solid\x20'+_0x51402f[_0x1d0f3a(0x426)][_0x1d0f3a(0x1cd)]:'',_0x44e981['style'][_0x1d0f3a(0x27d)]=_0x51402f[_0x1d0f3a(0x438)]?_0x51402f['radius']+'px':'',_0x44e981[_0x1d0f3a(0x2c8)][_0x1d0f3a(0x2e5)]=_0x1d0f3a(0x478),_0x44e981['style'][_0x1d0f3a(0x4aa)]=_0x1d0f3a(0x333);}function Mr(_0x3eaa09){'@babel/helpers - typeof';const _0xa44de6=_0xbfff20;return Mr=typeof Symbol=='function'&&typeof Symbol[_0xa44de6(0x1da)]==_0xa44de6(0x40c)?function(_0x486df9){return typeof _0x486df9;}:function(_0x303d80){const _0x34300c=_0xa44de6;return _0x303d80&&typeof Symbol==_0x34300c(0x3c7)&&_0x303d80[_0x34300c(0x2ee)]===Symbol&&_0x303d80!==Symbol['prototype']?'symbol':typeof _0x303d80;},Mr(_0x3eaa09);}function Nr(_0x509b42,_0x1530af){const _0x424cf0=_0xbfff20;if(Mr(_0x509b42)!=_0x424cf0(0x235)||!_0x509b42)return _0x509b42;var _0x25d03e=_0x509b42[Symbol[_0x424cf0(0x352)]];if(_0x25d03e!==void 0x0){var _0x485d3d=_0x25d03e[_0x424cf0(0x1be)](_0x509b42,_0x1530af||_0x424cf0(0x30e));if(Mr(_0x485d3d)!=_0x424cf0(0x235))return _0x485d3d;throw TypeError(_0x424cf0(0x29f));}return(_0x1530af==='string'?String:Number)(_0x509b42);}function Pr(_0xc0d0a1){const _0x20432e=_0xbfff20;var _0x176845=Nr(_0xc0d0a1,_0x20432e(0x3e0));return Mr(_0x176845)=='symbol'?_0x176845:_0x176845+'';}function Fr(_0x3395e6,_0x7b7c26,_0x5eb78d){const _0x478797=_0xbfff20;return(_0x7b7c26=Pr(_0x7b7c26))in _0x3395e6?Object[_0x478797(0x49f)](_0x3395e6,_0x7b7c26,{'value':_0x5eb78d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3395e6[_0x7b7c26]=_0x5eb78d,_0x3395e6;}var Ir=class extends _0x2eec42{constructor(_0x2ada83,_0x42d469){const _0x2a0698=_0xbfff20;super(),this[_0x2a0698(0x371)]=_0x2ada83,this[_0x2a0698(0x2ba)]=_0x42d469,Fr(this,_0x2a0698(0x3fd),_0x2fe426[_0x2a0698(0x422)]);}['getRect'](){const _0x5e5ca3=_0xbfff20;return{'width':Math['max'](0x1,this[_0x5e5ca3(0x2ba)][_0x5e5ca3(0x3c1)]),'height':Math[_0x5e5ca3(0x43f)](0x1,this['_element']['clientHeight'])};}[_0xbfff20(0x382)](_0x319a75){const _0x28f641=_0xbfff20;jr(this[_0x28f641(0x2ba)],_0x319a75);}async['ensureMount'](){return this['_element'];}[_0xbfff20(0x482)](){const _0xcefca=_0xbfff20;return this[_0xcefca(0x2ba)][_0xcefca(0x25b)];}[_0xbfff20(0x3e3)](){}['markReady'](){}[_0xbfff20(0x423)](){}};function Lr({isRowDirection:_0x49fe3d,runtime:_0x578e6b}){const _0x4902c0=_0xbfff20;let _0x1b4598=_0x2861da(null),_0x336474=_0x29f087(_0x2989fb),_0x1550ed=_0x29f087(_0x49fceb),_0x16d313=_0x29f087(Ar),_0x417db8=_0x29f087(_0x3fdc71);return _0x436796(()=>{const _0x1ef637=_0x5dbe;let _0x339500=_0x1b4598[_0x1ef637(0x49d)];if(!_0x339500)return;_0x339500[_0x1ef637(0x2c7)]();let {chartId:_0x3908ef,model:_0x3ff57a}=_0x578e6b,_0x19eeba=_0x3ff57a[_0x1ef637(0x21e)],_0x2ffa08=new Ir(_0x3908ef,_0x339500),_0x4662f6=_0x16d313['createDomChartInstance'](),_0x3224fe=!0x1,_0x464e6e=null,_0x2a1f7d=null,_0x31f657=null,_0x5856d6=null,_0x4a43e6=!0x1,_0x5c0909=!0x1,_0xc9f161=Promise[_0x1ef637(0x393)]();_0x4662f6[_0x1ef637(0x282)](_0x2ffa08);let _0x50c981=()=>{const _0x3876a9=_0x1ef637;var _0x4f88f9,_0x19ad60,_0x318f59,_0x3b1a8e;if(document[_0x3876a9(0x317)]===_0x3876a9(0x478)||(_0x4f88f9=(_0x19ad60=window)[_0x3876a9(0x2f7)])!=null&&(_0x4f88f9=_0x4f88f9['call'](_0x19ad60,'(prefers-reduced-motion:\x20reduce)'))!=null&&_0x4f88f9[_0x3876a9(0x17b)]||(_0x318f59=(_0x3b1a8e=window)[_0x3876a9(0x2f7)])!=null&&(_0x318f59=_0x318f59[_0x3876a9(0x1be)](_0x3b1a8e,_0x3876a9(0x3d9)))!=null&&_0x318f59[_0x3876a9(0x17b)]||!_0x339500[_0x3876a9(0x25b)])return!0x1;let _0x1dffbd=_0x339500[_0x3876a9(0x260)]();return _0x1dffbd['width']>0x0&&_0x1dffbd['height']>0x0&&_0x1dffbd[_0x3876a9(0x2e0)]>0x0&&_0x1dffbd[_0x3876a9(0x2a2)]>0x0&&_0x1dffbd[_0x3876a9(0x297)]<window[_0x3876a9(0x379)]&&_0x1dffbd[_0x3876a9(0x3e6)]<window[_0x3876a9(0x200)];},_0x3d1ae3=()=>{const _0x250c1e=_0x1ef637;_0x2a1f7d!==null&&clearTimeout(_0x2a1f7d),_0x339500[_0x250c1e(0x214)][_0x250c1e(0x36c)]='true',_0x339500['dataset'][_0x250c1e(0x394)]=String(_0x5135e6),_0x2a1f7d=setTimeout(()=>{const _0x281f35=_0x250c1e;_0x2a1f7d=null,delete _0x339500['dataset'][_0x281f35(0x36c)],delete _0x339500[_0x281f35(0x214)][_0x281f35(0x394)];},_0x5135e6);},_0x1de64b=_0x44da7e=>{const _0x1736d7=_0x1ef637;if(_0x3224fe)return;if(_0x464e6e!==null&&(clearTimeout(_0x464e6e),_0x464e6e=null),!_0x3ff57a[_0x1736d7(0x167)]){_0x5c0909||=_0x44da7e;return;}_0x339500[_0x1736d7(0x214)][_0x1736d7(0x288)]=String(_0x3ff57a[_0x1736d7(0x288)]),_0x339500[_0x1736d7(0x214)][_0x1736d7(0x17e)]=String(_0x49fe3d);let _0x365858=_0x16d313['createRenderInput'](_0x578e6b),_0x23ca58={'chartId':_0x3908ef,'config':_0x365858[_0x1736d7(0x167)],'style':_0x365858['style']};_0xc9f161=_0xc9f161[_0x1736d7(0x271)](async()=>{const _0x194588=_0x1736d7;_0x3224fe||(_0x339500['dataset'][_0x194588(0x3fe)]=String(Number(_0x339500[_0x194588(0x214)][_0x194588(0x3fe)]??0x0)+0x1),_0x44da7e&&_0x31f657&&_0x4662f6['renderTransition']&&_0x50c981()?(await _0x4662f6['renderTransition'](_0x31f657,_0x23ca58,{'duration':_0x5135e6}),_0x3224fe||_0x3d1ae3()):await _0x4662f6[_0x194588(0x165)](_0x23ca58),_0x31f657=_0x23ca58);})[_0x1736d7(0x433)](_0x531eac=>_0x1550ed[_0x1736d7(0x1a6)]('[BasePivotChart]\x20Failed\x20to\x20render\x20chart.',_0x531eac));},_0x65f83=(_0x1b4454=!0x1)=>{_0x5c0909||=_0x1b4454,!_0x4a43e6&&(_0x4a43e6=!0x0,queueMicrotask(()=>{_0x4a43e6=!0x1;let _0x11574b=_0x5c0909;_0x5c0909=!0x1,_0x1de64b(_0x11574b);}));},_0x1f0fed=[_0x19eeba[_0x1ef637(0x2bd)][_0x1ef637(0x2d5)](_0x4e76e1=>{let _0x56fe3e=JSON['stringify'](_0x4e76e1);_0x5856d6!=null&&_0x5856d6!==_0x56fe3e&&_0x65f83(!0x0),_0x5856d6=_0x56fe3e;}),_0x3ff57a[_0x1ef637(0x29a)][_0x1ef637(0x2d5)](_0x4fb2b8=>{_0x4fb2b8&&_0x65f83();}),_0x3ff57a[_0x1ef637(0x15d)][_0x1ef637(0x2d5)](()=>_0x65f83()),_0x336474[_0x1ef637(0x378)][_0x1ef637(0x2d5)](()=>_0x65f83()),_0x2dd9ec([_0x417db8[_0x1ef637(0x1d1)],_0x417db8[_0x1ef637(0x419)]])['pipe'](_0x12e509(0x1))[_0x1ef637(0x2d5)](()=>_0x65f83())],_0x158bb8=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x14c41b=_0x1ef637;_0x3224fe||(_0x2ffa08[_0x14c41b(0x3e3)](),_0x464e6e!==null&&clearTimeout(_0x464e6e),_0x464e6e=setTimeout(()=>_0x65f83(),0x64));});return _0x158bb8==null||_0x158bb8[_0x1ef637(0x42d)](_0x339500),()=>{const _0x4a93af=_0x1ef637;_0x3224fe=!0x0,_0x464e6e!==null&&clearTimeout(_0x464e6e),_0x2a1f7d!==null&&clearTimeout(_0x2a1f7d),delete _0x339500[_0x4a93af(0x214)][_0x4a93af(0x36c)],delete _0x339500['dataset'][_0x4a93af(0x394)],_0x158bb8==null||_0x158bb8[_0x4a93af(0x19f)](),_0x1f0fed[_0x4a93af(0x4a2)](_0x13fc3c=>_0x13fc3c[_0x4a93af(0x3f4)]()),_0x4662f6[_0x4a93af(0x19b)](),_0x2ffa08[_0x4a93af(0x19b)](),_0x339500[_0x4a93af(0x2c7)]();};},[_0x49fe3d,_0x336474,_0x1550ed,_0x16d313,_0x578e6b,_0x417db8]),_0x1c53e9(_0x4902c0(0x1e8),{'ref':_0x1b4598,'data-u-comp':_0x4902c0(0x2af),'className':'univer-absolute\x20univer-inset-0\x20univer-overflow-hidden'});}function Rr({filters:_0x169fb9,onRuntimeChange:_0x27ad12,unitId:_0x5b7c72,widget:_0x1e4e42}){const _0x38bd70=_0xbfff20;let _0x9bcf7=_0x29f087(_0x14186a),_0x2364b0=_0x29f087(_0x2989fb),_0x573fd2=_0x29f087(_0x49fceb),_0xbe7bfa=_0x29f087(_0x441727),[_0x27256b,_0x38f6c1]=_0x34e679(null),[_0x529e41,_0x3ba8ef]=_0x34e679(!0x1),[_0x5c7046,_0x10f41b]=_0x34e679(null),_0xea1b71=_0x2861da(_0x38bd70(0x210)+_0xd28735(0x8)),_0x3684e1=_0x9bcf7[_0x38bd70(0x454)](_0x5b7c72,_0x37ea54['UNIVER_BASE']),_0x58a9ba=_0x3684e1==null?void 0x0:_0x3684e1[_0x38bd70(0x373)]()[_0x38bd70(0x3df)][_0x1e4e42[_0x38bd70(0x335)]],_0xa41227=_0x58a9ba==null?void 0x0:_0x58a9ba[_0x38bd70(0x2b9)][_0x1e4e42[_0x38bd70(0x1b6)]],_0xa8ab98=zr(_0xa41227);if(_0x436796(()=>{const _0x132edf=_0x38bd70;if(!_0xa8ab98)return;let _0x46d7f7=_0xea1b71[_0x132edf(0x49d)];return _0xbe7bfa[_0x132edf(0x38c)](_0x46d7f7,{'unitId':_0x5b7c72,'tableId':_0x1e4e42[_0x132edf(0x335)],'viewId':_0x1e4e42[_0x132edf(0x1b6)],'filters':[]}),()=>{const _0x7f1be4=_0x132edf;_0xbe7bfa[_0x7f1be4(0x414)](_0x5b7c72,_0x46d7f7),_0x27ad12==null||_0x27ad12(_0x1e4e42['id'],null);};},[_0xa8ab98,_0x27ad12,_0xbe7bfa,_0x5b7c72,_0x1e4e42['id'],_0x1e4e42[_0x38bd70(0x1b6)],_0x1e4e42[_0x38bd70(0x335)]]),_0x436796(()=>{const _0x556a81=_0x38bd70;if(!zr(_0xa41227))return;let _0x586b1e=!0x0,_0x2a1710=_0x1e4e42[_0x556a81(0x252)]??_0xa41227[_0x556a81(0x167)][_0x556a81(0x252)],_0x52236d={'unitId':_0x5b7c72,'tableId':_0x1e4e42[_0x556a81(0x335)],'viewId':_0x1e4e42[_0x556a81(0x1b6)],'filters':[_0xa41227[_0x556a81(0x2be)]??null,..._0x169fb9]};return _0xbe7bfa['refreshChartRuntime'](_0x5b7c72,_0xea1b71[_0x556a81(0x49d)],_0x52236d,_0x2a1710)[_0x556a81(0x271)](_0x45aa55=>{const _0x36e822=_0x556a81;if(!_0x586b1e||!_0x45aa55)return;let _0x213673=_0xbe7bfa['getChartRuntime'](_0x5b7c72,_0xea1b71[_0x36e822(0x49d)])??null;_0x38f6c1(_0x45aa55),_0x10f41b(_0x213673),_0x3ba8ef(!0x1),_0x27ad12==null||_0x27ad12(_0x1e4e42['id'],_0x213673);})[_0x556a81(0x433)](_0x18f3b1=>{const _0x4983a0=_0x556a81;_0x573fd2[_0x4983a0(0x1a6)](_0x4983a0(0x340),_0x18f3b1),_0x586b1e&&(_0x38f6c1(null),_0x3ba8ef(!0x0));}),()=>{_0x586b1e=!0x1;};},[_0x169fb9,_0x573fd2,_0x27ad12,_0xbe7bfa,_0x5b7c72,_0xa41227,_0x1e4e42[_0x38bd70(0x252)],_0x1e4e42['id'],_0x1e4e42[_0x38bd70(0x1b6)],_0x1e4e42['tableId']]),!zr(_0xa41227))return _0x1c53e9('div',{'className':_0x38bd70(0x322),'children':_0x2364b0['t'](_0x38bd70(0x1ad))});let _0x4986ae=_0xbe7bfa['getChartRuntime'](_0x5b7c72,_0xea1b71[_0x38bd70(0x49d)])===_0x5c7046?_0x5c7046:null;return _0x27256b&&_0x4986ae?_0x1c53e9(Lr,{'isRowDirection':_0x3b57e8((_0x1e4e42[_0x38bd70(0x252)]??_0xa41227[_0x38bd70(0x167)][_0x38bd70(0x252)])[_0x38bd70(0x292)]),'runtime':_0x4986ae}):_0x1c53e9('div',{'className':_0x38bd70(0x322),'children':_0x2364b0['t'](_0x529e41?_0x38bd70(0x2ed):_0x38bd70(0x3b2))});}function zr(_0x557622){const _0x549aa0=_0xbfff20;return(_0x557622==null?void 0x0:_0x557622['type'])===_0x54a718['Pivot']&&typeof _0x557622[_0x549aa0(0x167)]==_0x549aa0(0x235)&&_0x557622['config']!==null&&_0x549aa0(0x274)in _0x557622[_0x549aa0(0x167)]&&_0x549aa0(0x252)in _0x557622[_0x549aa0(0x167)];}const Br={'alignment':_0xbfff20(0x297),'fontSize':0x12,'fontSizeMode':_0xbfff20(0x2fd)};function Vr(_0x5b5b08){const _0x18646f=_0xbfff20;return{...Br,..._0x5b5b08[_0x18646f(0x31e)]};}function Hr(_0x289fd0){const _0x32fa6a=_0xbfff20;var _0x24d903;return((_0x24d903=_0x289fd0[_0x32fa6a(0x45f)])==null?void 0x0:_0x24d903['dataStream']['replace'](/\r\n$/,'')[_0x32fa6a(0x1b9)](/\r/g,'\x0a'))??'';}function Ur(_0x15b943,_0x56af10){const _0x2c24ed=_0xbfff20;var _0x5e2bd0;let _0x7d15d7=_0x56af10[_0x2c24ed(0x1b9)](/\r\n|\r/g,'\x0a')[_0x2c24ed(0x3cf)]('\x0a'),_0x14aff1=_0x7d15d7[_0x2c24ed(0x284)]('\x0d')+'\x0d\x0a',_0x1275a4=((_0x5e2bd0=_0x15b943['body'])==null?void 0x0:_0x5e2bd0[_0x2c24ed(0x42c)])??[],_0x2bf03d=new Set(_0x1275a4['map'](_0x459e28=>_0x459e28['paragraphId'])),_0x35bc23=0x0,_0x4cf271=_0x7d15d7[_0x2c24ed(0x1fd)]((_0x4fb472,_0x2c5ed2)=>{const _0x1ac452=_0x2c24ed;_0x35bc23+=_0x4fb472[_0x1ac452(0x2df)];let _0x49c9f4={..._0x1275a4[_0x2c5ed2]??{'startIndex':_0x35bc23,'paragraphId':_0x467708(_0x2bf03d)},'startIndex':_0x35bc23};return _0x35bc23+=0x1,_0x49c9f4;});return{..._0x15b943,'body':{..._0x15b943[_0x2c24ed(0x45f)],'dataStream':_0x14aff1,'paragraphs':_0x4cf271,'textRuns':[]}};}function Wr({widget:_0x1a5f55}){const _0x381d32=_0xbfff20;let _0x1512f4=_0x29f087(_0x3fdc71),_0xa74eeb=_0x29f087(_0x2989fb),_0xeb9bd9=_0x39908a(()=>_0x1512f4[_0x381d32(0x1d1)],_0x1512f4[_0x381d32(0x21f)](),!0x1,[_0x1512f4]),_0x523f44=_0x2861da(null),_0x3e9542=_0x2861da(null),_0x4e5e07=Vr(_0x1a5f55),_0x3fca53=_0x4e5e07[_0x381d32(0x33d)]??_0xeb9bd9[_0x381d32(0x45c)][0x0],_0x2afeb1=_0x4e5e07[_0x381d32(0x42f)]??_0xeb9bd9['gray'][0x3e8],_0x23201f=Hr(_0x1a5f55['document']);return _0x436796(()=>{const _0x387db3=_0x381d32;let _0xe2ffe7=_0x523f44[_0x387db3(0x49d)],_0x37d9bb=_0x3e9542['current'];if(!_0xe2ffe7||!_0x37d9bb)return;let _0x1c1573=()=>{const _0x3f4228=_0x387db3;if(_0x4e5e07[_0x3f4228(0x1ab)]==='custom'||!_0xe2ffe7[_0x3f4228(0x3c1)]||!_0xe2ffe7['clientHeight']){_0x37d9bb[_0x3f4228(0x2c8)][_0x3f4228(0x320)]=_0x4e5e07[_0x3f4228(0x320)]+'px';return;}let _0x58ed4f=0x8,_0x5d59dd=0x48,_0x4f611c=_0x58ed4f;for(;_0x58ed4f<=_0x5d59dd;){let _0x1da050=Math['floor']((_0x58ed4f+_0x5d59dd)/0x2);_0x37d9bb[_0x3f4228(0x2c8)][_0x3f4228(0x320)]=_0x1da050+'px',_0x37d9bb[_0x3f4228(0x302)]<=_0xe2ffe7[_0x3f4228(0x3c1)]&&_0x37d9bb[_0x3f4228(0x2d7)]<=_0xe2ffe7[_0x3f4228(0x2d6)]?(_0x4f611c=_0x1da050,_0x58ed4f=_0x1da050+0x1):_0x5d59dd=_0x1da050-0x1;}_0x37d9bb[_0x3f4228(0x2c8)][_0x3f4228(0x320)]=_0x4f611c+'px';};if(_0x1c1573(),typeof ResizeObserver>'u')return;let _0x62f654=new ResizeObserver(_0x1c1573);return _0x62f654[_0x387db3(0x42d)](_0xe2ffe7),()=>_0x62f654[_0x387db3(0x19f)]();},[_0x4e5e07[_0x381d32(0x320)],_0x4e5e07['fontSizeMode'],_0x23201f]),_0x1c53e9(_0x381d32(0x1e8),{'data-dashboard-text-widget':_0x1a5f55['id'],'className':_0x381d32(0x16f),'style':{'backgroundColor':_0x3fca53,'color':_0x2afeb1},'children':_0x1c53e9(_0x381d32(0x1e8),{'ref':_0x523f44,'data-dashboard-text-content':!0x0,'aria-label':_0xa74eeb['t'](_0x381d32(0x3ba)),'className':_0x381d32(0x307),'children':_0x1c53e9(_0x381d32(0x1e8),{'ref':_0x3e9542,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x4e5e07[_0x381d32(0x1ab)],'className':_0x381d32(0x249),'style':{'textAlign':_0x4e5e07[_0x381d32(0x2c1)]},'children':_0x23201f})})});}function Gr({dashboard:_0x965068,editable:_0x364e00=!0x0,onSelectWidget:_0x4a9bdf,renderWidget:_0x1b3e45,renderWidgetActions:_0x518844,selectedWidgetId:_0xaff9cc,widgetLabel:_0x57a469}){const _0x21aec0=_0xbfff20;return _0x1c53e9('div',{'data-dashboard-scroll-container':!0x0,'className':_0x14b647(_0x21aec0(0x48f),_0x439165),'onClick':_0x364e00?_0xa1f2c2=>{const _0x5a2046=_0x21aec0;if(!(_0xa1f2c2[_0x5a2046(0x1cb)]instanceof Node)||!_0xa1f2c2[_0x5a2046(0x40a)][_0x5a2046(0x3e5)](_0xa1f2c2['target']))return;let _0x3e9ea1=_0xa1f2c2[_0x5a2046(0x1cb)]instanceof Element?_0xa1f2c2[_0x5a2046(0x1cb)]:_0xa1f2c2[_0x5a2046(0x1cb)][_0x5a2046(0x196)];_0x3e9ea1!=null&&_0x3e9ea1[_0x5a2046(0x21a)]('[data-dashboard-widget]')||_0x4a9bdf==null||_0x4a9bdf();}:void 0x0,'children':_0x1c53e9('div',{'data-dashboard-grid':!0x0,'className':_0x21aec0(0x21d),'children':_0x965068['widgetOrder']['map'](_0x5284e1=>{const _0x5af975=_0x21aec0;let _0x5da6ef=_0x965068[_0x5af975(0x280)][_0x5284e1];if(!_0x5da6ef)return null;let _0x262949=Math[_0x5af975(0x43f)](0xb4,_0x5da6ef[_0x5af975(0x2fc)][_0x5af975(0x1b2)]*_0x3e9cab);return _0x1108cb(_0x5af975(0x241),{'data-dashboard-widget':_0x5da6ef['id'],'aria-label':_0x5da6ef[_0x5af975(0x236)]??_0x57a469(_0x5da6ef),'className':_0x14b647(_0x5af975(0x1aa),_0x5da6ef[_0x5af975(0x427)]===_0x1402ed['Image']||_0x5da6ef['type']===_0x1402ed[_0x5af975(0x1d9)]?_0x5af975(0x361):_0x5af975(0x33a),_0x364e00&&_0xaff9cc===_0x5da6ef['id']?'univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500':_0x5af975(0x49c)),'style':{'minHeight':_0x262949,'height':_0x262949},'tabIndex':_0x364e00?0x0:void 0x0,'onClick':_0x364e00?()=>_0x4a9bdf==null?void 0x0:_0x4a9bdf(_0x5da6ef['id']):void 0x0,'onFocus':_0x364e00?()=>_0x4a9bdf==null?void 0x0:_0x4a9bdf(_0x5da6ef['id']):void 0x0,'children':[_0x364e00&&_0x1c53e9('div',{'className':_0x5af975(0x358),'children':_0x518844==null?void 0x0:_0x518844(_0x5da6ef)}),_0x1c53e9(_0x5af975(0x1e8),{'className':'univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','children':_0x1b3e45(_0x5da6ef)})]},_0x5da6ef['id']);})})});}let Kr=class extends _0x22cc04{constructor(_0x5b7b7c){super(_0x5b7b7c),Fr(this,'activeRuntimeModel',null);}[_0xbfff20(0x25c)](_0x23434c){}};Kr=kr([Y(0x0,_0x38b292(_0x41a29f))],Kr);function qr({children:_0x19c70e}){return _0x1c53e9(_0x16eea4,{'children':_0x19c70e});}function Jr(_0x2e61ef){return _0x1c53e9(_0x3cb16e,{..._0x2e61ef});}function Yr(_0x58ad19){return _0x1c53e9(_0x15dcec,{..._0x58ad19});}function Xr(_0x3082a8){return _0x1c53e9(_0x2c4746,{..._0x3082a8});}var Zr;const X={'axis':{..._0x3c4ba3,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x2c5e3a,'heatmap':_0x4f57a1,'indicatorLine':_0x57cad4,'legend':_0x43f27b,'lineAndArea':_0x1a8b1f,'pareto':_0x1aa1b1,'pie':_0x258d6f,'radar':_0x2ec41b,'relation':{..._0x4805f6,'useValueAsSymbolSize':!0x0},'series':{..._0x13b217,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Zr=_0x40bf0b[_0xbfff20(0x254)])==null?void 0x0:Zr[_0xbfff20(0x492)])??!0x1}},'style':_0x13d7eb,'titles':_0x4abb4a,'trendline':_0x72a22e,'waterfall':{..._0x2cc178,'useSubtotal':!0x0},'waterfallStyle':_0x436808,'wordCloud':_0xfd1cc7},Qr=[_0x217c21['Line'],_0x217c21[_0xbfff20(0x356)],_0x217c21[_0xbfff20(0x458)],_0x217c21['Scatter'],_0x217c21[_0xbfff20(0x25a)],_0x217c21['Relation'],_0x217c21[_0xbfff20(0x23a)],_0x217c21[_0xbfff20(0x1af)],_0x217c21[_0xbfff20(0x4a7)],_0x217c21[_0xbfff20(0x360)],_0x217c21[_0xbfff20(0x2f3)],_0x217c21[_0xbfff20(0x3a2)],_0x217c21[_0xbfff20(0x23b)],_0x217c21[_0xbfff20(0x38f)],_0x217c21['Chord']];function $r(_0x26defd){const _0x308408=_0xbfff20;let {config:_0xa61c77,onChange:_0x5dc0af,runtime:_0x392ed1,tableName:_0x4bba0f}=_0x26defd,_0x17241c=_0x29f087(Kr),_0x1930f4=_0x29f087(_0x2989fb),[_0x14307c,_0x577f83]=_0x34e679(_0x39d056[_0x308408(0x491)]),_0xab7d44=_0x548c0f(()=>new _0x439e96(_0x392ed1[_0x308408(0x1ee)],{'commit':_0x46f0a7=>{const _0x416bc1=_0x308408;var _0x559cf6;let _0x183678=_0x392ed1[_0x416bc1(0x1ee)],_0x39efdd=_0x3aa652(_0x46f0a7,{'series':(_0x559cf6=_0x183678[_0x416bc1(0x167)])==null?void 0x0:_0x559cf6[_0x416bc1(0x28b)],'currentChartType':_0x183678[_0x416bc1(0x288)],'currentStyle':_0x183678[_0x416bc1(0x2c8)],'currentContext':_0x183678[_0x416bc1(0x3b5)],'currentDataAggregation':_0x183678[_0x416bc1(0x48e)]});_0x5dc0af({'chart':ei(_0xa61c77['chart'],_0x39efdd)});}}),[_0xa61c77[_0x308408(0x252)],_0x5dc0af,_0x392ed1]),_0x52f374=_0x548c0f(()=>_0x5b5e1c(_0x1fbca7[_0x308408(0x1fd)](_0x47610f=>({..._0x47610f,'label':_0x1930f4['t'](ii(_0x47610f['labelId']))}))),[_0x1930f4]);return _0x1c53e9(_0x5cda0c,{'chartUIService':_0x17241c,'hostAdapter':_0xab7d44,'children':_0x1108cb(_0x308408(0x1e8),{'className':_0x308408(0x1d6),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x1930f4['t'](_0x308408(0x1b1)),'className':_0x308408(0x251),'items':[{'label':_0x1930f4['t'](_0x308408(0x242)),'panelId':_0x308408(0x41e),'value':_0x39d056[_0x308408(0x491)]},{'label':_0x1930f4['t'](_0x308408(0x1c3)),'panelId':_0x308408(0x474),'value':_0x39d056['Style']}],'value':_0x14307c,'onChange':_0x577f83}),_0x14307c===_0x39d056[_0x308408(0x491)]?_0x1c53e9(_0x420eaf,{'id':_0x308408(0x41e),'label':_0x1930f4['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x1108cb('div',{'className':_0x308408(0x3b9),'children':[_0x1c53e9(_0x44e1cd,{'options':_0x52f374}),_0x1c53e9(_0xd07337,{}),_0x1c53e9(_0x2a621a,{}),_0x1c53e9(ti,{}),_0x1c53e9(_0x14bbde,{}),_0x1108cb(_0x308408(0x1e8),{'children':[_0x1c53e9(_0x4ed5df,{'title':_0x1930f4['t'](_0x308408(0x264))}),_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':_0x4bba0f})]}),_0x1c53e9(_0x521472,{'orientationControl':_0x1c53e9(_0x6d25a2,{'size':_0x308408(0x189),'onClick':()=>_0x5dc0af({'chart':{..._0xa61c77[_0x308408(0x252)],'orient':_0xa61c77[_0x308408(0x252)][_0x308408(0x292)]===_0x308408(0x430)?'column':_0x308408(0x430)}}),'children':_0x1930f4['t'](_0x308408(0x3a6))})}),_0x1c53e9(_0x27502d,{}),_0x1c53e9(_0x1e15dd,{'defaultValues':X[_0x308408(0x1fc)]}),_0x1108cb('div',{'children':[_0x1c53e9(_0x4ed5df,{'title':_0x1930f4['t'](_0x308408(0x47e))}),_0x1c53e9(Jr,{'value':_0xa61c77['displayMode'],'options':[{'value':_0x308408(0x36e),'label':_0x1930f4['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':_0x308408(0x252),'label':_0x1930f4['t'](_0x308408(0x266))},{'value':_0x308408(0x405),'label':_0x1930f4['t'](_0x308408(0x186))}],'onChange':_0x1b0657=>{const _0x419dfb=_0x308408;(_0x1b0657===_0x419dfb(0x36e)||_0x1b0657===_0x419dfb(0x252)||_0x1b0657==='table')&&_0x5dc0af({'displayMode':_0x1b0657});}})]})]})}):_0x1c53e9(_0x420eaf,{'id':'base-pivot-chart-style','label':_0x1930f4['t'](_0x308408(0x1c3)),'children':_0x1c53e9(ni,{})})]})});}function ei(_0x438cfa,_0x40638e){const _0x4218b=_0xbfff20;return{..._0x438cfa,'type':_0x40638e[_0x4218b(0x288)]??_0x438cfa[_0x4218b(0x427)],'style':_0x40638e[_0x4218b(0x2c8)]??_0x438cfa['style'],'context':_0x40638e[_0x4218b(0x3b5)]??_0x438cfa[_0x4218b(0x3b5)],'dataAggregation':_0x40638e['dataAggregation']??_0x438cfa[_0x4218b(0x48e)]};}function ti(){const _0x3e7c31=_0xbfff20;let _0x200b5c=_0x486f74();return _0x1c53e9(_0x18f4fe,{'visible':Qr[_0x3e7c31(0x311)](_0x141bcf=>!_0x1094d9[_0x3e7c31(0x30f)](_0x200b5c,_0x141bcf))});}function Z(_0x211880){const _0x70d6d0=_0xbfff20;return _0x1108cb(_0x476c3e,{'id':_0x211880['id'],'children':[_0x1c53e9(_0x3ee43e,{'children':_0x211880[_0x70d6d0(0x1b8)]}),_0x1c53e9(_0x50efea,{'children':_0x211880[_0x70d6d0(0x310)]})]});}function ni(){const _0x1c6806=_0xbfff20;let _0x5677a6=_0x29f087(_0x2989fb),_0x275b0f=_0x486f74(),_0x464efb=_0x3d2664(),[_0x3413ad,_0x14510d]=_0x34e679(null),_0x597e35=_0x1094d9[_0x1c6806(0x30f)](_0x275b0f,_0x217c21['Pie']),_0x43a1fc=_0x275b0f===_0x217c21[_0x1c6806(0x356)],_0x26eda3=_0x275b0f===_0x217c21[_0x1c6806(0x458)],_0x380be0=_0x275b0f===_0x217c21['Funnel'],_0x2794b9=_0x1094d9[_0x1c6806(0x30f)](_0x275b0f,_0x217c21[_0x1c6806(0x3d3)]),_0x10af09=_0x275b0f===_0x217c21[_0x1c6806(0x1f4)],_0x1653e8=_0x275b0f===_0x217c21[_0x1c6806(0x1b3)],_0x1e8c58=_0x275b0f===_0x217c21[_0x1c6806(0x3f6)],_0x5910d2=_0x275b0f===_0x217c21[_0x1c6806(0x1af)],_0x45e6ce=_0x4c4c0b(_0x275b0f,_0x235cca[_0x1c6806(0x38d)])&&!_0x2794b9&&!_0x1e8c58,_0x27f116=ri(_0x275b0f,_0x5677a6);return _0x1108cb(_0x169833,{'value':_0x3413ad,'onChange':_0x14510d,'children':[_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x40f)],'label':_0x5677a6['t'](_0x1c6806(0x270)),'children':_0x1c53e9(_0x392a75,{'defaultValues':X['style']})}),_0x1c53e9(Z,{'id':_0x275cd6['ChartAndAxisTitles'],'label':_0x5677a6['t'](_0x1c6806(0x37f)),'children':_0x1c53e9(_0x3a97b5,{'commitMode':_0x1c6806(0x1bd),'defaultValues':X[_0x1c6806(0x2b6)]})}),_0x1c53e9(_0x461f63,{'section':_0x1c6806(0x1f5)}),_0x45e6ce&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x18d)],'label':_0x5677a6['t'](_0x1c6806(0x217)),'children':_0x1c53e9(_0x3fdf0f,{'defaultValues':X['series'],'NumberFormatField':_0x1fdd9c})}),_0x1653e8&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x3ee)],'label':_0x5677a6['t'](_0x1c6806(0x15a)),'children':_0x1c53e9(_0x321527,{'defaultValues':X['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x278edd,target:_0x5c3eda})=>_0x5c3eda===_0x17b66a[_0x1c6806(0x220)]?_0x5677a6['t'](_0x1c6806(0x3dc)):_0x278edd?_0x278edd+'-('+_0x5677a6['t'](_0x1c6806(0x33b)+(_0x5c3eda===_0x17b66a[_0x1c6806(0x3ab)]?_0x1c6806(0x2bb):'waterfall.negative'))+')':'','NumberFormatField':_0x1fdd9c})}),_0x1e8c58&&_0x1108cb(_0x52e8d3,{'children':[_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x31d)],'label':_0x5677a6['t'](_0x1c6806(0x321)),'children':_0x1c53e9(_0xc41187,{'defaultValues':X[_0x1c6806(0x1ec)],'NumberFormatField':_0x1fdd9c,'showDataPointEditor':!0x0,'target':'barStyle'})}),_0x1c53e9(Z,{'id':_0x275cd6['ParetoLineSeries'],'label':_0x5677a6['t'](_0x1c6806(0x44e)),'children':_0x1c53e9(_0xc41187,{'defaultValues':X[_0x1c6806(0x1ec)],'NumberFormatField':_0x1fdd9c,'showDataPointEditor':!0x1,'target':'cumulativeLineStyle'})})]}),_0x597e35&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x397)],'label':_0x5677a6['t'](_0x1c6806(0x1f2)),'children':_0x1c53e9(_0x411c97,{'defaultValues':X[_0x1c6806(0x20e)],'NumberFormatField':_0x1fdd9c})}),_0x26eda3&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x458)],'label':_0x5677a6['t']('bases-dashboard-ui.chart.section.wordCloud'),'children':_0x1c53e9(_0x34e06c,{'defaultValues':X[_0x1c6806(0x2a3)]})}),_0x43a1fc&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x356)],'label':_0x5677a6['t'](_0x1c6806(0x218)),'children':_0x1c53e9(_0x3cdb06,{'defaultValues':X['radar']})}),_0x380be0&&_0x1c53e9(Z,{'id':_0x275cd6['Funnel'],'label':_0x5677a6['t'](_0x1c6806(0x3a3)),'children':_0x1c53e9(_0x5c3a2a,{'defaultValues':X['funnel'],'gapControl':_0x1c6806(0x3fc)})}),_0x5910d2&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x1af)],'label':_0x5677a6['t'](_0x1c6806(0x1c8)),'children':_0x1c53e9(_0x1a9d64,{'defaultValues':X[_0x1c6806(0x1f3)]})}),_0x10af09&&_0x1c53e9(Z,{'id':_0x275cd6['Relation'],'label':_0x5677a6['t'](_0x1c6806(0x42a)),'children':_0x1c53e9(_0x43b09c,{'defaultValues':X['relation']})}),_0x2324f4(_0x275b0f)&&_0x1c53e9(Z,{'id':_0x275cd6['LineAndArea'],'label':_0x5677a6['t'](_0x1094d9[_0x1c6806(0x30f)](_0x275b0f,_0x217c21['Area'])?_0x1c6806(0x34b):'bases-dashboard-ui.chart.chartTypes.line'),'children':_0x1c53e9(_0x67621e,{'defaultValues':X[_0x1c6806(0x23f)],'lineStyleControl':'segmented'})}),_0x4c4c0b(_0x275b0f,_0x235cca['Legend'])&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x187)],'label':_0x5677a6['t'](_0x1c6806(0x351)),'children':_0x1c53e9(_0x40abfd,{'defaultValues':X[_0x1c6806(0x409)]})}),_0x4c4c0b(_0x275b0f,_0x235cca['Axes'])&&_0x1108cb(_0x52e8d3,{'children':[_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x39e)],'label':_0x5677a6['t']('bases-dashboard-ui.chart.common.horizontalAxis'),'children':_0x1c53e9(_0x54bdb3,{'axis':'x','defaultValues':X['axis'],'NumberFormatField':_0x1fdd9c})}),_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x3a5)],'label':_0x5677a6['t'](_0x1c6806(0x2cf)),'children':_0x1c53e9(_0x54bdb3,{'axis':'y','defaultValues':X[_0x1c6806(0x359)],'NumberFormatField':_0x1fdd9c})}),_0x1c53e9(_0x461f63,{'section':'depthAxis'}),_0x464efb&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x3ef)],'label':_0x5677a6['t'](_0x1c6806(0x476)),'children':_0x1c53e9(_0x54bdb3,{'axis':_0x1c6806(0x209),'defaultValues':X['axis'],'NumberFormatField':_0x1fdd9c})}),_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x247)],'label':_0x5677a6['t'](_0x1c6806(0x413)),'children':_0x1c53e9(_0xd55416,{'defaultValues':X[_0x1c6806(0x359)]})})]}),_0x4c4c0b(_0x275b0f,_0x235cca[_0x1c6806(0x19c)])&&_0x1c53e9(Z,{'id':_0x275cd6['IndicatorLine'],'label':_0x5677a6['t'](_0x1c6806(0x31a)),'children':_0x1c53e9(_0x4e8f14,{'defaultValues':X[_0x1c6806(0x3d1)]})}),_0x23f1e4(_0x275b0f)&&_0x1c53e9(Z,{'id':_0x275cd6['Trendline'],'label':_0x5677a6['t'](_0x1c6806(0x417)),'children':_0x1c53e9(_0x2d84a4,{'defaultValues':X[_0x1c6806(0x2cb)]})}),_0x27f116&&_0x1c53e9(Z,{'id':_0x27f116['id'],'label':_0x27f116['label'],'children':_0x1c53e9(_0x359635,{})})]});}function ri(_0x5e68ae,_0x24f253){const _0x37d778=_0xbfff20;let _0xe4413b={[_0x217c21[_0x37d778(0x360)]]:{'id':_0x275cd6[_0x37d778(0x360)],'localeKey':_0x37d778(0x2b3)},[_0x217c21[_0x37d778(0x2f3)]]:{'id':_0x275cd6[_0x37d778(0x2f3)],'localeKey':_0x37d778(0x26f)},[_0x217c21[_0x37d778(0x3a2)]]:{'id':_0x275cd6[_0x37d778(0x3a2)],'localeKey':_0x37d778(0x2ca)},[_0x217c21['Sunburst']]:{'id':_0x275cd6[_0x37d778(0x23b)],'localeKey':_0x37d778(0x399)},[_0x217c21[_0x37d778(0x38f)]]:{'id':_0x275cd6[_0x37d778(0x38f)],'localeKey':_0x37d778(0x1d3)},[_0x217c21[_0x37d778(0x44d)]]:{'id':_0x275cd6[_0x37d778(0x44d)],'localeKey':_0x37d778(0x411)}}[_0x5e68ae];return _0xe4413b?{'id':_0xe4413b['id'],'label':_0x24f253['t'](_0xe4413b[_0x37d778(0x39b)])}:null;}function ii(_0x33b29d){const _0x4b3719=_0xbfff20;return _0x4b3719(0x408)+_0x33b29d;}function ai({onChange:_0x161e22,onEditData:_0x1a6e35,runtime:_0x111503,sourceChart:_0x20abc4,sourceName:_0x2dc508,widget:_0x9cecd8}){const _0x17e9b4=_0xbfff20;let _0x321ce5=_0x29f087(Kr),_0xc00f89=_0x29f087(_0x2989fb),[_0x4aae78,_0x1bfbdf]=_0x34e679(_0x39d056[_0x17e9b4(0x491)]),_0x14857d=_0x9cecd8[_0x17e9b4(0x252)]??_0x20abc4,_0x4742fd=_0x548c0f(()=>new _0x439e96(_0x111503[_0x17e9b4(0x1ee)],{'commit':_0x3a21e7=>{const _0x478af1=_0x17e9b4;var _0x3032e0;let _0x25f81d=_0x111503[_0x478af1(0x1ee)],_0x33e6e9=_0x3aa652(_0x3a21e7,{'series':(_0x3032e0=_0x25f81d[_0x478af1(0x167)])==null?void 0x0:_0x3032e0[_0x478af1(0x28b)],'currentChartType':_0x25f81d[_0x478af1(0x288)],'currentStyle':_0x25f81d[_0x478af1(0x2c8)],'currentContext':_0x25f81d[_0x478af1(0x3b5)],'currentDataAggregation':_0x25f81d['dataAggregation']});_0x161e22({..._0x9cecd8,'chart':ei(_0x14857d,_0x33e6e9)})[_0x478af1(0x433)](()=>void 0x0);}}),[_0x14857d,_0x161e22,_0x111503,_0x9cecd8]),_0x19738c=_0x548c0f(()=>_0x5b5e1c(_0x1fbca7['map'](_0x33489b=>({..._0x33489b,'label':_0xc00f89['t'](oi(_0x33489b[_0x17e9b4(0x364)]))}))),[_0xc00f89]);return _0x1c53e9(_0x413b19,{'chartUIService':_0x321ce5,'hostAdapter':_0x4742fd,'children':_0x1108cb('div',{'data-dashboard-chart-inspector':!0x0,'className':_0x17e9b4(0x22b),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0xc00f89['t'](_0x17e9b4(0x1b1)),'className':_0x17e9b4(0x251),'items':[{'label':_0xc00f89['t'](_0x17e9b4(0x242)),'panelId':_0x17e9b4(0x380),'value':_0x39d056['Data']},{'label':_0xc00f89['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x17e9b4(0x248),'value':_0x39d056[_0x17e9b4(0x30a)]}],'value':_0x4aae78,'onChange':_0x1bfbdf}),_0x4aae78===_0x39d056[_0x17e9b4(0x491)]?_0x1c53e9(_0x420eaf,{'id':_0x17e9b4(0x380),'label':_0xc00f89['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x1108cb('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x1c53e9(_0x44e1cd,{'options':_0x19738c}),_0x1c53e9(_0xd07337,{}),_0x1c53e9(_0x2a621a,{}),_0x1c53e9(ti,{}),_0x1c53e9(_0x14bbde,{}),_0x1108cb(_0x17e9b4(0x1e8),{'children':[_0x1c53e9(_0x4ed5df,{'title':_0xc00f89['t'](_0x17e9b4(0x3cb))}),_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':_0x2dc508}),_0x1c53e9(_0x6d25a2,{'className':_0x17e9b4(0x1bb),'onClick':_0x1a6e35,'children':_0xc00f89['t'](_0x17e9b4(0x2c0))})]})]})}):_0x1c53e9(_0x420eaf,{'id':_0x17e9b4(0x248),'label':_0xc00f89['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x1c53e9(ni,{})})]})});}function oi(_0x243852){const _0x262d16=_0xbfff20;return _0x262d16(0x408)+_0x243852;}const si=[_0xbfff20(0x3b8),_0xbfff20(0x2f5),'percent',_0xbfff20(0x33e),_0xbfff20(0x2ce),'compact'];function ci({base:_0x420024,onChange:_0x5af384,onSelectBackgroundImage:_0x5c1f51,widget:_0x18e7e7}){const _0x179c6c=_0xbfff20;var _0x4350f8;let _0x3f7a5e=_0x29f087(_0x2989fb),_0x5e3611=_0x29f087(_0x3fdc71),_0xa22d16=_0x39908a(()=>_0x5e3611['currentTheme$'],_0x5e3611['getCurrentTheme'](),!0x1,[_0x5e3611]),_0xef2564=_0x39908a(()=>_0x5e3611[_0x179c6c(0x419)],_0x5e3611['darkMode'],!0x1,[_0x5e3611]),[_0x23e478,_0xe358ea]=_0x34e679(_0x179c6c(0x490)),[_0x1ac925,_0x511832]=_0x34e679(!0x1),_0x32919f=Sr(_0x18e7e7),_0x18b4f7=_0x420024['getSnapshot']()[_0x179c6c(0x3df)][_0x18e7e7[_0x179c6c(0x335)]],_0x4caaa4=_0x18b4f7==null?void 0x0:_0x18b4f7[_0x179c6c(0x18e)][_0x179c6c(0x1ac)](_0x23eafa=>_0x18b4f7['views'][_0x23eafa]),_0x32b0b1=_0x4caaa4?_0x18b4f7==null?void 0x0:_0x18b4f7[_0x179c6c(0x2b9)][_0x4caaa4]:void 0x0,_0xa7290b=_0x18b4f7&&_0x32b0b1?_0xacf6bd(_0x420024[_0x179c6c(0x373)](),_0x18b4f7,_0x32b0b1)[_0x179c6c(0x1fd)](_0x404910=>({..._0x404910,'current':!0x1})):[],_0x26d161=((_0x4350f8=_0x18e7e7['shapeData'][_0x179c6c(0x226)])==null?void 0x0:_0x4350f8[_0x179c6c(0x495)])??'',_0x2f0fd1=_0x5112cb=>_0x5af384(Cr(_0x18e7e7,_0x5112cb))[_0x179c6c(0x433)](()=>void 0x0),_0x4ffcd5=_0x4c41f4=>_0x5af384({..._0x18e7e7,'description':_0x4c41f4})['catch'](()=>void 0x0);return _0x1108cb('div',{'data-dashboard-formula-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x1c53e9(_0x4fe720,{'className':_0x179c6c(0x398),'items':[{'value':_0x179c6c(0x490),'label':_0x3f7a5e['t'](_0x179c6c(0x203))},{'value':'style','label':_0x3f7a5e['t'](_0x179c6c(0x49a))}],'value':_0x23e478,'onChange':_0xe358ea}),_0x1c53e9(_0x179c6c(0x1e8),{'className':_0x179c6c(0x298),'children':_0x23e478===_0x179c6c(0x490)?_0x1108cb(_0x179c6c(0x1e8),{'className':_0x179c6c(0x48b),'children':[_0x1c53e9(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x243)),'children':_0x1c53e9(_0x1b54d7,{'value':_0x18e7e7[_0x179c6c(0x429)]??_0x18e7e7[_0x179c6c(0x236)]??'','onChange':_0x4ffcd5,'onBlur':_0x4c15c3=>_0x4ffcd5(_0x4c15c3[_0x179c6c(0x1cb)][_0x179c6c(0x1b5)])})}),_0x1c53e9(li,{'label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.dataSource'),'children':_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':(_0x18b4f7==null?void 0x0:_0x18b4f7[_0x179c6c(0x3ca)])??_0x3f7a5e['t'](_0x179c6c(0x1ad))})}),_0x1108cb(li,{'label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.formula'),'children':[_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':_0x200012(_0x26d161,_0xa7290b)}),_0x1c53e9(_0x6d25a2,{'className':'univer-mt-2\x20univer-w-full','onClick':()=>_0x511832(!0x0),'children':_0x3f7a5e['t'](_0x179c6c(0x366))})]})]}):_0x1108cb('div',{'className':'univer-grid\x20univer-gap-4','children':[_0x1c53e9(_0x4931cb,{'emptyLabel':_0x3f7a5e['t'](_0x179c6c(0x41b)),'label':_0x3f7a5e['t'](_0x179c6c(0x41b)),'pickerFallbackValue':_0xef2564?_0xa22d16[_0x179c6c(0x45c)][0x384]:_0xa22d16['gray'][0x0],'resetLabel':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x32919f[_0x179c6c(0x33d)]??null,'onChange':_0x58c975=>_0x2f0fd1({'backgroundColor':_0x58c975??void 0x0})}),_0x1108cb(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x28a)),'children':[_0x1108cb(_0x179c6c(0x1e8),{'className':_0x179c6c(0x30b),'children':[_0x1108cb(_0x6d25a2,{'className':_0x179c6c(0x436),'onClick':()=>{const _0x5c76c0=_0x179c6c;_0x5c1f51()[_0x5c76c0(0x271)](_0x337481=>{const _0xd9c2c2=_0x5c76c0;if(_0x337481){var _0x94060b;return _0x2f0fd1({'backgroundImage':{..._0x337481,'fit':((_0x94060b=_0x32919f[_0xd9c2c2(0x345)])==null?void 0x0:_0x94060b[_0xd9c2c2(0x290)])??'cover'}});}})['catch'](()=>void 0x0);},'children':[_0x1c53e9(_0x34be53,{}),_0x32919f[_0x179c6c(0x345)]?_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.replaceImage'):_0x3f7a5e['t'](_0x179c6c(0x1bc))]}),_0x32919f['backgroundImage']&&_0x1c53e9(_0x6d25a2,{'aria-label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'onClick':()=>_0x2f0fd1({'backgroundImage':void 0x0}),'children':_0x1c53e9(_0x48daea,{})})]}),_0x32919f['backgroundImage']&&_0x1c53e9(_0x4fe720,{'className':_0x179c6c(0x313),'items':[{'value':_0x179c6c(0x2b8),'label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x179c6c(0x26b),'label':_0x3f7a5e['t'](_0x179c6c(0x483))}],'value':_0x32919f[_0x179c6c(0x345)][_0x179c6c(0x290)],'onChange':_0x4d65c5=>_0x2f0fd1({'backgroundImage':_0x32919f[_0x179c6c(0x345)]?{..._0x32919f[_0x179c6c(0x345)],'fit':_0x4d65c5}:void 0x0})})]}),_0x1c53e9(_0x4931cb,{'emptyLabel':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x3f7a5e['t'](_0x179c6c(0x384)),'pickerFallbackValue':_0xef2564?_0xa22d16[_0x179c6c(0x45c)][0x32]:_0xa22d16[_0x179c6c(0x45c)][0x3e8],'resetLabel':_0x3f7a5e['t'](_0x179c6c(0x272)),'value':_0x32919f['textColor']??null,'onChange':_0x2b61b1=>_0x2f0fd1({'textColor':_0x2b61b1??void 0x0})}),_0x1c53e9(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x316)),'children':_0x1c53e9(_0x4fe720,{'items':[{'value':_0x179c6c(0x297),'label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':'center','label':_0x3f7a5e['t'](_0x179c6c(0x207))},{'value':_0x179c6c(0x2e0),'label':_0x3f7a5e['t'](_0x179c6c(0x24b))}],'value':_0x32919f['alignment'],'onChange':_0x19fa72=>_0x2f0fd1({'alignment':_0x19fa72})})}),_0x1108cb(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x32f)),'children':[_0x1c53e9(_0x4fe720,{'items':[{'value':_0x179c6c(0x2fd),'label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':_0x179c6c(0x22d),'label':_0x3f7a5e['t'](_0x179c6c(0x238))}],'value':_0x32919f[_0x179c6c(0x1ab)],'onChange':_0x2c4b82=>_0x2f0fd1({'fontSizeMode':_0x2c4b82})}),_0x32919f[_0x179c6c(0x1ab)]===_0x179c6c(0x22d)&&_0x1c53e9(_0x5a3ae3,{'className':_0x179c6c(0x313),'min':0xc,'max':0x78,'value':_0x32919f[_0x179c6c(0x320)],'onChange':_0x3fe61c=>_0x2f0fd1({'fontSize':_0x3fe61c??0x28,'fontSizeMode':'custom'})})]}),_0x1c53e9(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x381)),'children':_0x1c53e9(Jr,{'value':_0x32919f[_0x179c6c(0x4a5)],'options':[{'value':'general','label':_0x3f7a5e['t'](_0x179c6c(0x376))},{'value':_0x179c6c(0x2f5),'label':_0x3f7a5e['t'](_0x179c6c(0x27f))},{'value':_0x179c6c(0x28d),'label':_0x3f7a5e['t'](_0x179c6c(0x31b))},{'value':_0x179c6c(0x33e),'label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.currency')},{'value':_0x179c6c(0x2ce),'label':_0x3f7a5e['t'](_0x179c6c(0x451))},{'value':_0x179c6c(0x3eb),'label':_0x3f7a5e['t'](_0x179c6c(0x36f))}],'onChange':_0x57ba02=>{let _0x2bf452=si['find'](_0x2a1550=>_0x2a1550===_0x57ba02);_0x2bf452&&_0x2f0fd1({'numberFormat':_0x2bf452});}})}),_0x32919f[_0x179c6c(0x4a5)]==='currency'&&_0x1c53e9(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x211)),'children':_0x1c53e9(_0x1b54d7,{'value':_0x32919f[_0x179c6c(0x33e)],'onChange':_0x2190cf=>_0x2f0fd1({'currency':_0x2190cf[_0x179c6c(0x26a)](0x0,0x3)[_0x179c6c(0x49e)]()})})}),_0x32919f[_0x179c6c(0x4a5)]!==_0x179c6c(0x3b8)&&_0x1c53e9(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x20b)),'children':_0x1c53e9(_0x5a3ae3,{'min':0x0,'max':0x8,'value':_0x32919f['decimalPlaces'],'onChange':_0x5a5833=>_0x2f0fd1({'decimalPlaces':_0x5a5833??0x0})})})]})}),_0x1ac925&&_0x1c53e9(Xr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1c53e9(_0x5e5ef4,{'tables':_0xa7290b,'formula':_0x200012(_0x26d161,_0xa7290b),'onCancel':()=>_0x511832(!0x1),'onSave':_0x191db2=>{const _0x994861=_0x179c6c;let _0x393ad7=_0x18e7e7[_0x994861(0x18a)][_0x994861(0x226)]??{'formula':''};return _0x5af384({..._0x18e7e7,'shapeData':{..._0x18e7e7[_0x994861(0x18a)],'formulaBinding':{..._0x393ad7,'formula':_0x359363(_0x191db2,_0xa7290b)}}})[_0x994861(0x271)](()=>_0x511832(!0x1))[_0x994861(0x433)](()=>void 0x0);}})})]});}function li({children:_0x42a216,label:_0x360096}){const _0x3e0995=_0xbfff20;return _0x1108cb(_0x3e0995(0x1e8),{'role':_0x3e0995(0x161),'aria-label':_0x360096,'className':_0x3e0995(0x277),'children':[_0x1c53e9(_0x3e0995(0x213),{'children':_0x360096}),_0x42a216]});}function ui({disabled:_0x2de3ce,fields:_0x5097d9,filter:_0x1c130c,onChange:_0x11afaa}){const _0x592ef6=_0xbfff20;let _0x24ac3c=_0x29f087(_0x3927ed)[_0x592ef6(0x35c)]??null,[_0x5b059d,_0x2a2d56]=_0x34e679(null),_0x533095=_0x29f087(_0x2989fb),_0x5bee87=(_0x1c130c==null?void 0x0:_0x1c130c[_0x592ef6(0x232)])??[];if(!_0x5bee87[_0x592ef6(0x2df)])return _0x1108cb(_0x592ef6(0x1e8),{'className':_0x592ef6(0x40e),'children':[_0x1c53e9(_0xad9ba4,{'className':_0x592ef6(0x30c)}),_0x1c53e9(_0x592ef6(0x213),{'className':_0x592ef6(0x479),'children':_0x533095['t']('bases-dashboard-ui.dashboard.tableFilter')})]});let _0x8d3ea9=_0x5b059d==null?void 0x0:_0x5bee87[_0x5b059d],_0x1aae5b=_0x5097d9[_0x592ef6(0x1ac)](_0x5638af=>_0x5638af['id']===(_0x8d3ea9==null?void 0x0:_0x8d3ea9[_0x592ef6(0x17d)]));return _0x1108cb(_0x592ef6(0x1e8),{'className':_0x592ef6(0x3e7),'children':[_0x5bee87[_0x592ef6(0x1fd)]((_0x365fc6,_0x34f86c)=>{const _0x14de37=_0x592ef6;var _0x272fc4;return _0x1108cb(_0x6d25a2,{'disabled':_0x2de3ce,'onClick':()=>_0x2a2d56(_0x34f86c),'children':[_0x1c53e9(_0x14de37(0x213),{'children':((_0x272fc4=_0x5097d9[_0x14de37(0x1ac)](_0x38a5fc=>_0x38a5fc['id']===_0x365fc6[_0x14de37(0x17d)]))==null?void 0x0:_0x272fc4[_0x14de37(0x3ca)])??_0x365fc6[_0x14de37(0x17d)]}),_0x1c53e9(_0x14de37(0x213),{'className':_0x14de37(0x3aa),'children':String(_0x365fc6[_0x14de37(0x377)]??'')})]},_0x365fc6['fieldId']+'-'+_0x34f86c);}),_0x1aae5b&&_0x8d3ea9&&_0x5b059d!=null&&_0x24ac3c&&_0x3ae99d(_0x1c53e9(_0x2a8e30,{'field':_0x1aae5b,'value':_0x8d3ea9[_0x592ef6(0x377)],'onClose':()=>_0x2a2d56(null),'onSave':_0x334bc7=>{const _0xd53cc9=_0x592ef6;_0x11afaa({'conjunction':(_0x1c130c==null?void 0x0:_0x1c130c['conjunction'])??_0x4854b1[_0xd53cc9(0x2b0)],'conditions':_0x5bee87[_0xd53cc9(0x1fd)]((_0x146db1,_0x5e1e40)=>_0x5e1e40===_0x5b059d?{..._0x146db1,'operand':_0x334bc7}:_0x146db1)}),_0x2a2d56(null);}}),_0x24ac3c)]});}function di({fields:_0x985c85,filter:_0xdff69e,onChange:_0x178b7d,onClear:_0x524108}){const _0x53db98=_0xbfff20;let _0x2dd381=_0x29f087(_0x2989fb);return _0x1108cb(_0x53db98(0x1e8),{'children':[_0x1c53e9(_0x40f4ca,{'fields':_0x985c85,'value':_0xdff69e??{'conjunction':_0x4854b1[_0x53db98(0x2b0)],'conditions':[]},'onChange':_0x178b7d}),_0x1c53e9(_0x6d25a2,{'onClick':_0x524108,'children':_0x2dd381['t'](_0x53db98(0x272))})]});}function fi({base:_0x1e66d9,chartRuntime:_0x1b94f8,onChange:_0x290d5b,onClose:_0x2ee278,onSelectBackgroundImage:_0x1ed1ef,onSelectImage:_0x4d5607,unitId:_0x3e6d5d,widget:_0x383b4c}){const _0x256852=_0xbfff20;let _0x36e8ae=_0x29f087(_0x2220df),_0x25feec=_0x29f087(_0x2989fb),_0x239e0d=_0x1e66d9['getSnapshot'](),_0x457123=_0x256852(0x335)in _0x383b4c?_0x239e0d[_0x256852(0x3df)][_0x383b4c[_0x256852(0x335)]]:void 0x0,_0x2df438=_0x383b4c[_0x256852(0x427)]===_0x1402ed[_0x256852(0x3c8)]?_0x457123==null?void 0x0:_0x457123[_0x256852(0x2b9)][_0x383b4c['pivotViewId']]:void 0x0,_0x33e563=_0x25feec['t'](yi(_0x383b4c)),_0x1fe8ee=_0x1108cb(_0x256852(0x1fb),{'data-dashboard-inspector':!0x0,'className':_0x256852(0x20a),'children':[_0x383b4c[_0x256852(0x427)]===_0x1402ed[_0x256852(0x3c8)]&&(vi(_0x2df438)&&_0x1b94f8?_0x1c53e9(ai,{'runtime':_0x1b94f8,'sourceChart':_0x2df438['config'][_0x256852(0x252)],'sourceName':((_0x457123==null?void 0x0:_0x457123['name'])??'')+_0x256852(0x2db)+_0x2df438['name'],'widget':_0x383b4c,'onChange':_0x290d5b,'onEditData':()=>{const _0x220b91=_0x256852;_0x36e8ae['executeCommand'](_0x24a280['id'],{'unitId':_0x3e6d5d,'tableId':_0x383b4c[_0x220b91(0x335)],'viewId':_0x383b4c[_0x220b91(0x1b6)]})[_0x220b91(0x433)](()=>void 0x0);}}):_0x1c53e9(gi,{'message':vi(_0x2df438)?_0x25feec['t']('bases-dashboard-ui.dashboardInspector.loading'):_0x25feec['t'](_0x256852(0x1ad))})),_0x383b4c[_0x256852(0x427)]===_0x1402ed[_0x256852(0x1d9)]&&_0x1c53e9(ci,{'base':_0x1e66d9,'widget':_0x383b4c,'onChange':_0x290d5b,'onSelectBackgroundImage':_0x1ed1ef}),_0x383b4c[_0x256852(0x427)]===_0x1402ed[_0x256852(0x287)]&&_0x1c53e9(mi,{'base':_0x1e66d9,'onChange':_0x290d5b,'widget':_0x383b4c}),_0x383b4c['type']===_0x1402ed[_0x256852(0x194)]&&_0x1c53e9(hi,{'onChange':_0x290d5b,'widget':_0x383b4c}),_0x383b4c[_0x256852(0x427)]===_0x1402ed[_0x256852(0x471)]&&_0x1c53e9(pi,{'onChange':_0x290d5b,'onSelectImage':_0x4d5607,'widget':_0x383b4c})]});return _0x1c53e9(_0xbfe7,{'title':_0x33e563,'onClose':_0x2ee278,'children':_0x1fe8ee});}function pi({onChange:_0x30565e,onSelectImage:_0x2af728,widget:_0x56d5fd}){const _0x38daef=_0xbfff20;let _0x123648=_0x29f087(_0x2989fb);return _0x1108cb(_0x38daef(0x1e8),{'className':_0x38daef(0x481),'children':[_0x1108cb(_0x6d25a2,{'className':_0x38daef(0x449),'onClick':()=>_0x2af728()[_0x38daef(0x271)](_0x36e2a0=>_0x36e2a0&&_0x30565e({..._0x56d5fd,'source':_0x36e2a0[_0x38daef(0x2ad)],'sourceType':_0x36e2a0[_0x38daef(0x18c)],'alt':_0x36e2a0[_0x38daef(0x3ca)]}))[_0x38daef(0x433)](()=>void 0x0),'children':[_0x1c53e9(_0x34be53,{}),_0x123648['t'](_0x38daef(0x3b0))]}),_0x1108cb('label',{'className':_0x38daef(0x277),'children':[_0x1c53e9(_0x38daef(0x213),{'children':_0x123648['t'](_0x38daef(0x28a))}),_0x1c53e9(_0x4fe720,{'items':[{'value':'cover','label':_0x123648['t'](_0x38daef(0x22f))},{'value':'repeat','label':_0x123648['t'](_0x38daef(0x1de))},{'value':'original','label':_0x123648['t'](_0x38daef(0x3db))}],'value':_0x56d5fd['displayMode']??_0x38daef(0x2b8),'onChange':_0x32c9e9=>_0x30565e({..._0x56d5fd,'displayMode':_0x32c9e9})[_0x38daef(0x433)](()=>void 0x0)})]})]});}function mi({base:_0x41b691,onChange:_0x48de97,widget:_0xdfe8fa}){const _0x25a205=_0xbfff20;let _0x542184=_0x41b691['getSnapshot']()[_0x25a205(0x3df)][_0xdfe8fa[_0x25a205(0x335)]],_0x238105=_0x542184==null?void 0x0:_0x542184[_0x25a205(0x18e)][_0x25a205(0x1ac)](_0x546a0d=>_0x542184[_0x25a205(0x2b9)][_0x546a0d]),_0x20875c=_0x238105?_0x542184==null?void 0x0:_0x542184[_0x25a205(0x2b9)][_0x238105]:void 0x0,_0x473718=_0x542184&&_0x20875c?_0x173f22(_0x542184,_0x20875c):[];return _0x1c53e9(di,{'fields':_0x473718,'filter':_0xdfe8fa[_0x25a205(0x2be)],'onChange':_0x15c56d=>_0x48de97({..._0xdfe8fa,'filter':_0x15c56d})[_0x25a205(0x433)](()=>void 0x0),'onClear':()=>_0x48de97({..._0xdfe8fa,'filter':null})['catch'](()=>void 0x0)});}function hi({onChange:_0x4216aa,widget:_0x1b73f3}){const _0xd16fbe=_0xbfff20;let _0x21c41c=_0x29f087(_0x2989fb),_0x4dacd7=_0x29f087(_0x3fdc71),_0x2732c4=_0x39908a(()=>_0x4dacd7[_0xd16fbe(0x1d1)],_0x4dacd7[_0xd16fbe(0x21f)](),!0x1,[_0x4dacd7]),_0x6d0010=Vr(_0x1b73f3),_0x17c7d8=_0x16bfd0=>_0x4216aa({..._0x1b73f3,'appearance':{..._0x6d0010,..._0x16bfd0}})[_0xd16fbe(0x433)](()=>void 0x0);return _0x1108cb('div',{'className':_0xd16fbe(0x442),'children':[_0x1c53e9(_0x435e56,{'className':'univer-max-h-40\x20univer-text-base','defaultValue':Hr(_0x1b73f3[_0xd16fbe(0x27c)]),'rows':0x8,'onBlur':_0x2fcd4d=>_0x4216aa({..._0x1b73f3,'document':Ur(_0x1b73f3[_0xd16fbe(0x27c)],_0x2fcd4d[_0xd16fbe(0x1cb)][_0xd16fbe(0x1b5)])})[_0xd16fbe(0x433)](()=>void 0x0)}),_0x1c53e9(_0x4931cb,{'emptyLabel':_0x21c41c['t'](_0xd16fbe(0x41b)),'label':_0x21c41c['t'](_0xd16fbe(0x41b)),'pickerFallbackValue':_0x2732c4[_0xd16fbe(0x45c)][0x0],'resetLabel':_0x21c41c['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x6d0010[_0xd16fbe(0x33d)]??null,'onChange':_0x303f30=>_0x17c7d8({'backgroundColor':_0x303f30??void 0x0})}),_0x1c53e9(_0x4931cb,{'emptyLabel':_0x21c41c['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x21c41c['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x2732c4[_0xd16fbe(0x45c)][0x3e8],'resetLabel':_0x21c41c['t'](_0xd16fbe(0x272)),'value':_0x6d0010[_0xd16fbe(0x42f)]??null,'onChange':_0x10fac1=>_0x17c7d8({'textColor':_0x10fac1??void 0x0})}),_0x1c53e9(_i,{'label':_0x21c41c['t'](_0xd16fbe(0x316)),'children':_0x1c53e9(_0x4fe720,{'items':[{'value':_0xd16fbe(0x297),'label':_0x21c41c['t'](_0xd16fbe(0x3ed))},{'value':_0xd16fbe(0x34f),'label':_0x21c41c['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':'right','label':_0x21c41c['t'](_0xd16fbe(0x24b))}],'value':_0x6d0010[_0xd16fbe(0x2c1)],'onChange':_0x13ea9f=>_0x17c7d8({'alignment':_0x13ea9f})})}),_0x1108cb(_i,{'label':_0x21c41c['t'](_0xd16fbe(0x32f)),'children':[_0x1c53e9(_0x4fe720,{'items':[{'value':_0xd16fbe(0x2fd),'label':_0x21c41c['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':_0xd16fbe(0x22d),'label':_0x21c41c['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x6d0010[_0xd16fbe(0x1ab)],'onChange':_0x3923a9=>_0x17c7d8({'fontSizeMode':_0x3923a9})}),_0x6d0010[_0xd16fbe(0x1ab)]===_0xd16fbe(0x22d)&&_0x1c53e9(_0x5a3ae3,{'className':_0xd16fbe(0x313),'min':0xa,'max':0x78,'value':_0x6d0010[_0xd16fbe(0x320)],'onChange':_0x21dacf=>_0x17c7d8({'fontSize':_0x21dacf??0x12,'fontSizeMode':_0xd16fbe(0x22d)})})]})]});}function gi({message:_0x4d22e4}){const _0x382c92=_0xbfff20;return _0x1c53e9(_0x382c92(0x1e8),{'className':_0x382c92(0x1bf),'children':_0x4d22e4});}function _i({children:_0x26d107,label:_0x1ae286}){const _0x4b23a5=_0xbfff20;return _0x1108cb(_0x4b23a5(0x1e8),{'role':_0x4b23a5(0x161),'aria-':!0x0,'className':_0x4b23a5(0x277),'children':[_0x1c53e9('span',{'children':_0x1ae286}),_0x26d107]});}function vi(_0x291aa5){const _0x451283=_0xbfff20;return(_0x291aa5==null?void 0x0:_0x291aa5[_0x451283(0x427)])===_0x54a718[_0x451283(0x2c9)]&&typeof _0x291aa5[_0x451283(0x167)]==_0x451283(0x235)&&_0x291aa5['config']!==null&&_0x451283(0x274)in _0x291aa5['config']&&_0x451283(0x252)in _0x291aa5[_0x451283(0x167)];}function yi(_0x1c4c68){const _0x2abaaf=_0xbfff20;switch(_0x1c4c68[_0x2abaaf(0x427)]){case _0x1402ed[_0x2abaaf(0x3c8)]:return _0x2abaaf(0x303);case _0x1402ed[_0x2abaaf(0x287)]:return'bases-dashboard-ui.dashboard.tableFilter';case _0x1402ed[_0x2abaaf(0x194)]:return _0x2abaaf(0x3ba);case _0x1402ed[_0x2abaaf(0x471)]:return _0x2abaaf(0x279);case _0x1402ed[_0x2abaaf(0x1d9)]:return _0x2abaaf(0x47b);}}function bi({onDelete:_0x1853cb,onEdit:_0x11ca52,onMoveUp:_0x488931,onMoveDown:_0x23c9ba}){const _0x374182=_0xbfff20;let [_0x1ac562,_0x1826a8]=_0x34e679(!0x1),_0x4d1c59=_0x29f087(_0x2989fb),_0x53c89a=_0x4d1c59['t'](_0x374182(0x2a1)),_0x2ac33e=_0x4d1c59['t'](_0x374182(0x164)),_0x30c3d4=_0x4d1c59['t']('bases-dashboard-ui.dashboard.widgetActions'),_0x10b322=[{'type':_0x374182(0x2c2),'children':_0x1108cb(_0x374182(0x213),{'className':_0x374182(0x208),'children':[_0x1c53e9(_0xddf888,{'className':_0x374182(0x305),'aria-hidden':_0x374182(0x354)}),_0x1c53e9(_0x374182(0x213),{'children':_0x53c89a})]}),'onSelect':_0x11ca52},..._0x488931?[{'type':_0x374182(0x2c2),'children':_0x1108cb(_0x374182(0x213),{'className':_0x374182(0x208),'children':[_0x1c53e9(_0x54c046,{'className':_0x374182(0x305),'aria-hidden':_0x374182(0x354)}),_0x1c53e9(_0x374182(0x213),{'children':_0x4d1c59['t'](_0x374182(0x45e))})]}),'onSelect':_0x488931}]:[],..._0x23c9ba?[{'type':'item','children':_0x1108cb('span',{'className':_0x374182(0x208),'children':[_0x1c53e9(_0x55a2db,{'className':'univer-size-4','aria-hidden':'true'}),_0x1c53e9('span',{'children':_0x4d1c59['t'](_0x374182(0x1b4))})]}),'onSelect':_0x23c9ba}]:[],{'type':_0x374182(0x174)},{'type':_0x374182(0x2c2),'variant':_0x374182(0x195),'children':_0x1108cb(_0x374182(0x213),{'className':_0x374182(0x208),'children':[_0x1c53e9(_0x48daea,{'className':_0x374182(0x305),'aria-hidden':'true'}),_0x1c53e9(_0x374182(0x213),{'children':_0x2ac33e})]}),'onSelect':_0x1853cb}];return _0x1c53e9(_0x440082,{'open':_0x1ac562,'onOpenChange':_0x1826a8,'align':_0x374182(0x221),'sideOffset':0x4,'items':_0x10b322['map'](_0x501304=>({..._0x501304,'className':_0x501304[_0x374182(0x427)]===_0x374182(0x2c2)?_0x374182(0x1ef):void 0x0})),'children':_0x1c53e9(_0x6d25a2,{'type':_0x374182(0x2d8),'size':'small','variant':_0x374182(0x173),'onPointerDown':_0x54cc6d=>_0x54cc6d[_0x374182(0x2ea)](),'onClick':()=>_0x1826a8(_0x288069=>!_0x288069),'title':_0x30c3d4,'aria-label':_0x30c3d4,'className':_0x374182(0x346),'children':_0x1c53e9(_0x122b7c,{'className':_0x374182(0x305),'aria-hidden':_0x374182(0x354)})})});}function xi({dashboardId:_0x3dd649,presentation:_0x2eecab=!0x1,unitId:_0x12c6f9}){const _0x10e9c8=_0xbfff20;let _0x2e6ca4=_0x29f087(_0x38337e),_0x36a628=_0x29f087(_0x4b64cf);_0x39908a(_0x36a628['changed$'],0x0);let _0x3adb4f=_0x29f087(_0x2220df),_0x742f5c=_0x29f087(_0x3107a8),_0x3d1a05=_0x29f087(_0x4fbe75),_0x4f1125=_0x29f087(_0x14186a),_0x4b85f6=_0x29f087(_0x2989fb),_0x21da88=_0x29f087(_0x309002),_0x1b980b=_0x29f087(_0x1daf4e),[_0xc8fa12,_0x308e2a]=_0x34e679(!0x1),[_0x191cf7,_0x131139]=_0x34e679(),[_0x94bbec,_0x4f7935]=_0x34e679(!0x1),[_0x1b6ac4,_0x182cc5]=_0x34e679(()=>new Map()),_0x31b78f=_0xdcfb42((_0xb78698,_0x36815a)=>{_0x182cc5(_0x8426be=>{const _0x53d515=_0x5dbe;let _0x1ed7f1=new Map(_0x8426be);return _0x36815a?_0x1ed7f1['set'](_0xb78698,_0x36815a):_0x1ed7f1[_0x53d515(0x375)](_0xb78698),_0x1ed7f1;});},[]),_0x2a53f1=_0x39908a(()=>_0x21da88[_0x10e9c8(0x2bc)][_0x10e9c8(0x472)](_0x3fca8e(()=>_0x21da88[_0x10e9c8(0x34a)](_0x12c6f9,_0x3dd649))),_0x21da88[_0x10e9c8(0x34a)](_0x12c6f9,_0x3dd649),!0x1,[_0x3dd649,_0x21da88,_0x12c6f9]),_0x1d493e=_0x4f1125[_0x10e9c8(0x454)](_0x12c6f9,_0x37ea54[_0x10e9c8(0x2e2)]),_0x119de3=_0x39908a(()=>_0x1b980b[_0x10e9c8(0x29c)],{'undos':0x0,'redos':0x0},!0x1,[_0x1b980b]),_0x2f334c=_r(_0x12c6f9,_0x3dd649);if(_0x436796(()=>{const _0x4b5854=_0x10e9c8;_0x4f1125['setCurrentUnitForType'](_0x12c6f9),_0x4f1125[_0x4b5854(0x177)](_0x12c6f9);},[_0x4f1125,_0x12c6f9]),!_0x2a53f1||!_0x1d493e)return null;let _0x16f237={'unitId':_0x12c6f9,'objectId':_0x3f3aa0(_0x3dd649),'objectType':_0x26ad9b[_0x10e9c8(0x24f)]},_0x28a74d=(_0x5a11f5,_0xbddb21)=>{const _0x423b1d=_0x10e9c8;let _0x871622=[..._0x2a53f1[_0x423b1d(0x3b1)]],_0x202374=_0x871622[_0x423b1d(0x494)](_0x5a11f5),_0x365f27=_0x202374+_0xbddb21;if(!(_0x202374<0x0||_0x365f27<0x0||_0x365f27>=_0x871622['length']))return[_0x871622[_0x202374],_0x871622[_0x365f27]]=[_0x871622[_0x365f27],_0x871622[_0x202374]],_0x3adb4f[_0x423b1d(0x42e)](_0x39c855['id'],{'unitId':_0x12c6f9,'dashboard':{..._0x2a53f1,'widgetOrder':_0x871622}});},_0x7963f7=_0x36ff41=>_0x3adb4f['executeCommand'](_0x1c8540['id'],{'unitId':_0x12c6f9,'dashboardId':_0x3dd649,'widget':_0x36ff41})[_0x10e9c8(0x433)](()=>void 0x0),_0x5a7293=(_0x3416a8,_0x462cf6,_0x4d467e)=>{const _0x22f873=_0x10e9c8;let _0x132c22=Math[_0x22f873(0x43f)](0x0,..._0x2a53f1[_0x22f873(0x3b1)]['flatMap'](_0x2eeb0c=>{const _0x3b6f77=_0x22f873;var _0x26e681;let _0x1695c7=(_0x26e681=_0x2a53f1[_0x3b6f77(0x280)][_0x2eeb0c])==null?void 0x0:_0x26e681[_0x3b6f77(0x2fc)];return _0x1695c7?[_0x1695c7['row']+_0x1695c7['rowSpan']]:[];})),_0x328dc1='dashboard-widget-'+_0xd28735(0x8),_0x1b8c93={'column':0x0,'row':_0x132c22,'columnSpan':_0x462cf6,'rowSpan':_0x4d467e};switch(_0x3416a8[_0x22f873(0x427)]){case _0x1402ed[_0x22f873(0x3c8)]:return _0x7963f7({..._0x3416a8,'id':_0x328dc1,'layout':_0x1b8c93});case _0x1402ed[_0x22f873(0x287)]:return _0x7963f7({..._0x3416a8,'id':_0x328dc1,'layout':_0x1b8c93});case _0x1402ed[_0x22f873(0x194)]:return _0x7963f7({..._0x3416a8,'id':_0x328dc1,'layout':_0x1b8c93});case _0x1402ed[_0x22f873(0x471)]:return _0x7963f7({..._0x3416a8,'id':_0x328dc1,'layout':_0x1b8c93});case _0x1402ed[_0x22f873(0x1d9)]:return _0x7963f7({..._0x3416a8,'id':_0x328dc1,'layout':_0x1b8c93});}},_0x33e07f=_0x1d493e[_0x10e9c8(0x373)](),_0x397cdf=_0x33e07f[_0x10e9c8(0x32d)][_0x10e9c8(0x31f)](_0x52fe67=>{const _0x3b2c39=_0x10e9c8;let _0x48c8c9=_0x33e07f['tables'][_0x52fe67];if(!_0x48c8c9)return[];let _0x13040a=_0x48c8c9['viewOrder'][_0x3b2c39(0x31f)](_0x51fa27=>{const _0x17341a=_0x3b2c39;let _0x9b3127=_0x48c8c9[_0x17341a(0x2b9)][_0x51fa27];return ki(_0x9b3127)?[{'type':_0x17341a(0x2c2),'children':_0x9b3127[_0x17341a(0x3ca)],'onSelect':()=>_0x5a7293({'type':_0x1402ed[_0x17341a(0x3c8)],'tableId':_0x52fe67,'pivotViewId':_0x51fa27,'chart':{..._0x9b3127[_0x17341a(0x167)][_0x17341a(0x252)]}},0x6,0xa)}]:[];});return[{'type':_0x3b2c39(0x466),'children':_0x48c8c9[_0x3b2c39(0x3ca)],'options':[..._0x13040a,..._0x13040a[_0x3b2c39(0x2df)]?[{'type':_0x3b2c39(0x174)}]:[],{'type':'item','children':_0x4b85f6['t']('bases-dashboard-ui.dashboard.tableFilter'),'onSelect':()=>_0x5a7293({'type':_0x1402ed[_0x3b2c39(0x287)],'tableId':_0x52fe67,'filter':null},0x6,0x8)}]}];}),_0x4a32eb=[..._0x397cdf,..._0x397cdf[_0x10e9c8(0x2df)]?[{'type':_0x10e9c8(0x174)}]:[],{'type':_0x10e9c8(0x2c2),'children':_0x4b85f6['t'](_0x10e9c8(0x3ba)),'onSelect':()=>_0x5a7293({'type':_0x1402ed[_0x10e9c8(0x194)],'document':Ti()},0x4,0x6)},{'type':_0x10e9c8(0x2c2),'children':_0x4b85f6['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>Ei(_0x742f5c)['then'](_0x1ef9c7=>_0x1ef9c7&&_0x5a7293({'type':_0x1402ed[_0x10e9c8(0x471)],'source':_0x1ef9c7[_0x10e9c8(0x2ad)],'sourceType':_0x1ef9c7[_0x10e9c8(0x18c)],'alt':_0x1ef9c7[_0x10e9c8(0x3ca)],'displayMode':_0x10e9c8(0x2b8)},0x4,0x6))},{'type':_0x10e9c8(0x2c2),'children':_0x4b85f6['t']('bases-dashboard-ui.dashboard.formulaShape'),'onSelect':()=>{const _0xb35c23=_0x10e9c8;let _0x587101=_0x33e07f[_0xb35c23(0x32d)][_0xb35c23(0x1ac)](_0x2969f9=>_0x33e07f[_0xb35c23(0x3df)][_0x2969f9]);_0x587101&&_0x5a7293({'type':_0x1402ed[_0xb35c23(0x1d9)],'tableId':_0x587101,'shapeType':_0xed2d79['RoundRect'],'shapeData':_0x18c256(),'description':_0x4b85f6['t'](_0xb35c23(0x47b))},0x4,0x6);}}],_0x43476a=_0x191cf7?_0x2a53f1[_0x10e9c8(0x280)][_0x191cf7]:void 0x0,_0xb72483=()=>_0x4f7935(_0x26153e=>!_0x26153e),_0x5a7b09=_0x2eecab||_0x94bbec,_0x47e4b7=_0x2f334c&&!_0x5a7b09;return _0x1c53e9(qr,{'children':_0x1108cb(_0x10e9c8(0x1e8),{'className':_0x10e9c8(0x4ab)+(_0x94bbec?_0x10e9c8(0x3e8):'univer-relative\x20univer-z-10')+_0x10e9c8(0x2b4),'children':[_0x94bbec&&_0x1c53e9(_0x6d25a2,{'onClick':()=>_0x4f7935(!0x1),'children':_0x4b85f6['t'](_0x10e9c8(0x19a))}),!_0x5a7b09&&_0x1108cb('header',{'className':_0x10e9c8(0x180),'children':[_0x1c53e9(_0x396df3,{'className':_0x10e9c8(0x3ec)}),_0x1c53e9('h2',{'className':_0x10e9c8(0x2e8),'children':_0x2a53f1['name']}),_0x36a628[_0x10e9c8(0x26e)](_0x16f237)&&_0x1c53e9(_0x6d25a2,{'variant':_0x10e9c8(0x173),'disabled':!_0x36a628[_0x10e9c8(0x395)](_0x16f237),'aria-label':_0x4b85f6['t'](_0x10e9c8(0x206)),'onClick':()=>{const _0x3f74e1=_0x10e9c8;_0x7236fe(_0x2e6ca4,{'target':_0x16f237,'name':_0x2a53f1[_0x3f74e1(0x3ca)],'commandId':_0x501d41['id'],'exists':()=>!!_0x21da88[_0x3f74e1(0x34a)](_0x12c6f9,_0x3dd649)});},'children':_0x1c53e9(_0x2ff091,{})}),_0x1c53e9(_0x36e7c3,{'unitId':_0x12c6f9}),_0x1c53e9(_0x6d25a2,{'type':'button','size':_0x10e9c8(0x189),'variant':_0x10e9c8(0x173),'aria-label':_0x4b85f6['t']('bases-dashboard-ui.dashboard.undo'),'disabled':!_0x2f334c||_0x119de3['undos']===0x0,'onClick':()=>_0x3adb4f[_0x10e9c8(0x42e)](_0x38c4d5['id'])[_0x10e9c8(0x433)](()=>void 0x0),'children':_0x1c53e9(_0x5d8a74,{})}),_0x1c53e9(_0x6d25a2,{'type':'button','size':_0x10e9c8(0x189),'variant':_0x10e9c8(0x173),'aria-label':_0x4b85f6['t'](_0x10e9c8(0x1c2)),'disabled':!_0x2f334c||_0x119de3[_0x10e9c8(0x47c)]===0x0,'onClick':()=>_0x3adb4f['executeCommand'](_0x413296['id'])[_0x10e9c8(0x433)](()=>void 0x0),'children':_0x1c53e9(_0x421b18,{})}),_0x1c53e9(_0x6d25a2,{'type':_0x10e9c8(0x2d8),'size':_0x10e9c8(0x189),'variant':'text','aria-label':_0x4b85f6['t'](_0x10e9c8(0x1e2)),'onClick':_0xb72483,'children':_0x1c53e9(_0x275a4b,{})}),_0x1c53e9(Yr,{'items':_0x4a32eb,'children':_0x1108cb(_0x6d25a2,{'variant':_0x10e9c8(0x3d2),'disabled':!_0x2f334c,'children':[_0x1c53e9(_0x34be53,{}),_0x4b85f6['t'](_0x10e9c8(0x486))]})})]}),_0x1108cb(_0x10e9c8(0x1e8),{'className':_0x10e9c8(0x447),'children':[_0x1c53e9(_0x10e9c8(0x1e8),{'className':_0x10e9c8(0x3a9),'children':_0x1c53e9(Gr,{'dashboard':_0x2a53f1,'editable':_0x47e4b7,'widgetLabel':_0xc9eaf9=>_0x4b85f6['t'](Oi(_0xc9eaf9[_0x10e9c8(0x427)])),'selectedWidgetId':_0x47e4b7?_0x191cf7:void 0x0,'onSelectWidget':_0x47e4b7?_0x409e16=>{_0x131139(_0x409e16),_0x409e16||_0x308e2a(!0x1);}:void 0x0,'renderWidget':_0x59b09b=>_0x1c53e9(Si,{'base':_0x1d493e,'dashboard':_0x2a53f1,'unitId':_0x12c6f9,'widget':_0x59b09b,'onChange':_0x7963f7,'onChartRuntimeChange':_0x31b78f}),'renderWidgetActions':_0x40c41c=>_0x1c53e9(bi,{'onMoveUp':_0x2a53f1[_0x10e9c8(0x3b1)][_0x10e9c8(0x494)](_0x40c41c['id'])>0x0?()=>_0x28a74d(_0x40c41c['id'],-0x1):void 0x0,'onMoveDown':_0x2a53f1[_0x10e9c8(0x3b1)][_0x10e9c8(0x494)](_0x40c41c['id'])<_0x2a53f1[_0x10e9c8(0x3b1)]['length']-0x1?()=>_0x28a74d(_0x40c41c['id'],0x1):void 0x0,'onEdit':()=>{_0x131139(_0x40c41c['id']),_0x308e2a(!0x0);},'onDelete':()=>{const _0x132ebf=_0x10e9c8;_0x191cf7===_0x40c41c['id']&&(_0x131139(void 0x0),_0x308e2a(!0x1)),_0x3adb4f[_0x132ebf(0x42e)](_0x55f0a4['id'],{'unitId':_0x12c6f9,'dashboardId':_0x3dd649,'widgetId':_0x40c41c['id']})[_0x132ebf(0x433)](()=>void 0x0);}})})}),_0x47e4b7&&_0xc8fa12&&_0x43476a&&_0x1c53e9(fi,{'base':_0x1d493e,'chartRuntime':_0x1b6ac4[_0x10e9c8(0x197)](_0x43476a['id']),'unitId':_0x12c6f9,'widget':_0x43476a,'onChange':_0x7963f7,'onClose':()=>_0x308e2a(!0x1),'onSelectBackgroundImage':()=>Di(_0x3d1a05),'onSelectImage':()=>Ei(_0x742f5c)})]})]})});}function Si({base:_0x1c678b,dashboard:_0x188842,onChange:_0x36fd22,onChartRuntimeChange:_0x5c9156,unitId:_0x4725a7,widget:_0x16d3a6}){const _0x519052=_0xbfff20;let _0x378f34=_0x548c0f(()=>_0x188842[_0x519052(0x3b1)][_0x519052(0x31f)](_0x304428=>{const _0x30823f=_0x519052;let _0x120672=_0x188842[_0x30823f(0x280)][_0x304428];return(_0x120672==null?void 0x0:_0x120672[_0x30823f(0x427)])===_0x1402ed[_0x30823f(0x287)]&&_0x120672[_0x30823f(0x335)]===('tableId'in _0x16d3a6?_0x16d3a6[_0x30823f(0x335)]:'')&&_0x120672['filter']?[_0x120672['filter']]:[];}),[_0x188842,_0x16d3a6]);switch(_0x16d3a6[_0x519052(0x427)]){case _0x1402ed[_0x519052(0x3c8)]:return _0x1c53e9(Rr,{'filters':_0x378f34,'unitId':_0x4725a7,'widget':_0x16d3a6,'onRuntimeChange':_0x5c9156});case _0x1402ed[_0x519052(0x287)]:return _0x1c53e9(ui,{'fields':Ci(_0x1c678b,_0x16d3a6[_0x519052(0x335)]),'filter':_0x16d3a6['filter'],'onChange':_0x5e16f6=>_0x36fd22({..._0x16d3a6,'filter':_0x5e16f6})['catch'](()=>void 0x0)});case _0x1402ed[_0x519052(0x194)]:return _0x1c53e9(Wr,{'widget':_0x16d3a6});case _0x1402ed['Image']:return _0x1c53e9(wi,{'widget':_0x16d3a6});case _0x1402ed[_0x519052(0x1d9)]:return _0x1c53e9(Or,{'dashboardId':_0x188842['id'],'unitId':_0x4725a7,'widget':_0x16d3a6});}}function Ci(_0x14185c,_0x11eb3b){const _0x34c892=_0xbfff20;let _0x2044ab=_0x14185c['getSnapshot']()['tables'][_0x11eb3b],_0x4f739d=_0x2044ab==null?void 0x0:_0x2044ab[_0x34c892(0x18e)][_0x34c892(0x1ac)](_0x4b1215=>_0x2044ab['views'][_0x4b1215]),_0x444a6e=_0x4f739d?_0x2044ab==null?void 0x0:_0x2044ab['views'][_0x4f739d]:void 0x0;return _0x2044ab&&_0x444a6e?_0x173f22(_0x2044ab,_0x444a6e):[];}function wi({widget:_0x39d796}){const _0x4b29f8=_0xbfff20;let _0x40cd00=_0x29f087(_0x3107a8),[_0x4ef6e4,_0x5c0e2a]=_0x34e679(_0x39d796[_0x4b29f8(0x18c)]===_0x18951a[_0x4b29f8(0x202)]?'':_0x39d796['source']);return _0x436796(()=>{const _0x5c4622=_0x4b29f8;let _0xbf56e2=!0x0;return _0x40cd00['getAttachmentUrl'](_0x39d796['source'],_0x39d796[_0x5c4622(0x18c)])[_0x5c4622(0x271)](_0x29f27d=>{_0xbf56e2&&_0x5c0e2a(_0x29f27d);})[_0x5c4622(0x433)](()=>void 0x0),()=>{_0xbf56e2=!0x1;};},[_0x40cd00,_0x39d796[_0x4b29f8(0x2ad)],_0x39d796['sourceType']]),_0x4ef6e4?_0x1c53e9(_0x4b29f8(0x1e8),{'role':_0x39d796[_0x4b29f8(0x1e4)]?_0x4b29f8(0x15e):void 0x0,'aria-label':_0x39d796[_0x4b29f8(0x1e4)]||void 0x0,'data-dashboard-image':_0x39d796['id'],'className':_0x4b29f8(0x453),'style':yr(_0x4ef6e4,_0x39d796[_0x4b29f8(0x463)])}):null;}function Ti(){let _0xcc7b22=_0x467708(new Set());return{'id':'dashboard-text-'+_0xd28735(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0xcc7b22}]},'documentStyle':{}};}function Ei(_0x3bfb31){return new Promise(_0xf58ad=>{const _0x1c4962=_0x5dbe;let _0x2d5bd2=document[_0x1c4962(0x457)]('input');_0x2d5bd2[_0x1c4962(0x427)]=_0x1c4962(0x1df),_0x2d5bd2[_0x1c4962(0x46d)]=_0x1c4962(0x46b),_0x2d5bd2[_0x1c4962(0x410)](_0x1c4962(0x17f),()=>{const _0x6ddf13=_0x1c4962;var _0xda6679;let _0x565e0b=(_0xda6679=_0x2d5bd2[_0x6ddf13(0x34c)])==null?void 0x0:_0xda6679[0x0];_0x565e0b?_0x3bfb31['saveAttachment'](_0x565e0b)[_0x6ddf13(0x271)](_0x3dedc3=>{const _0x327066=_0x6ddf13;!_0x3dedc3[_0x327066(0x2ad)]||_0x3dedc3[_0x327066(0x18c)]===void 0x0?_0xf58ad(null):_0xf58ad({'name':_0x3dedc3[_0x327066(0x3ca)],'source':_0x3dedc3[_0x327066(0x2ad)],'sourceType':_0x3dedc3[_0x327066(0x18c)]});})['catch'](()=>_0xf58ad(null)):_0xf58ad(null);},{'once':!0x0}),_0x2d5bd2[_0x1c4962(0x2a5)]();});}function Di(_0x33bb27){return new Promise(_0x21a168=>{const _0x39efb8=_0x5dbe;let _0xcd6096=document[_0x39efb8(0x457)]('input');_0xcd6096[_0x39efb8(0x427)]=_0x39efb8(0x1df),_0xcd6096[_0x39efb8(0x46d)]=_0x39efb8(0x46b),_0xcd6096['addEventListener'](_0x39efb8(0x17f),()=>{const _0x31c208=_0x39efb8;var _0x38b344;let _0x38f852=(_0x38b344=_0xcd6096[_0x31c208(0x34c)])==null?void 0x0:_0x38b344[0x0];_0x38f852?_0x33bb27['saveImage'](_0x38f852)[_0x31c208(0x271)](_0x45bb75=>{const _0x51534d=_0x31c208;if(!(_0x45bb75!=null&&_0x45bb75['source']))_0x21a168(null);else{if(_0x45bb75['base64Cache']){let _0x16b8e0=new Image();_0x16b8e0[_0x51534d(0x175)]=_0x45bb75[_0x51534d(0x1c7)],_0x33bb27[_0x51534d(0x388)](_0x45bb75['source'],_0x45bb75[_0x51534d(0x172)],_0x16b8e0);}_0x21a168({'source':_0x45bb75[_0x51534d(0x2ad)],'sourceType':_0x45bb75[_0x51534d(0x172)]});}})['catch'](()=>_0x21a168(null)):_0x21a168(null);},{'once':!0x0}),_0xcd6096[_0x39efb8(0x2a5)]();});}function Oi(_0x47accf){const _0x588d7f=_0xbfff20;switch(_0x47accf){case _0x1402ed['PivotChart']:return _0x588d7f(0x303);case _0x1402ed[_0x588d7f(0x287)]:return _0x588d7f(0x319);case _0x1402ed['Text']:return _0x588d7f(0x3ba);case _0x1402ed[_0x588d7f(0x471)]:return'bases-dashboard-ui.dashboard.image';case _0x1402ed[_0x588d7f(0x1d9)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function ki(_0x20e6aa){const _0xc999b=_0xbfff20;return(_0x20e6aa==null?void 0x0:_0x20e6aa[_0xc999b(0x427)])===_0x54a718[_0xc999b(0x2c9)]&&typeof _0x20e6aa['config']==_0xc999b(0x235)&&_0x20e6aa[_0xc999b(0x167)]!==null&&_0xc999b(0x274)in _0x20e6aa['config']&&_0xc999b(0x252)in _0x20e6aa[_0xc999b(0x167)];}function Ai({pivot:_0x2ec3d7,view:_0xf11c19}){const _0x4f408c=_0xbfff20;let _0x19c95d=_0x29f087(_0x2989fb),_0x23f3a2=_0x548c0f(()=>ji(_0xf11c19,_0x2ec3d7,_0x19c95d['t'](_0x4f408c(0x3f1))),[_0x19c95d,_0x2ec3d7,_0xf11c19]);return _0x1108cb(_0x4f408c(0x1e8),{'className':_0x4f408c(0x418),'children':[_0x23f3a2[_0x4f408c(0x338)][_0x4f408c(0x2df)]>0x0&&_0x1c53e9(_0x4f408c(0x405),{'className':_0x4f408c(0x168),'children':_0x1c53e9(_0x4f408c(0x3c5),{'children':Mi(_0x23f3a2[_0x4f408c(0x338)])})}),_0x1108cb(_0x4f408c(0x405),{'className':_0x4f408c(0x440),'children':[_0x23f3a2[_0x4f408c(0x22e)]>0x0&&_0x1c53e9(_0x4f408c(0x1dd),{'className':_0x4f408c(0x36d),'children':Mi(_0x23f3a2['rows']['slice'](0x0,_0x23f3a2[_0x4f408c(0x22e)]))}),_0x1c53e9(_0x4f408c(0x3c5),{'children':Mi(_0x23f3a2['rows'][_0x4f408c(0x26a)](_0x23f3a2['headerRowCount']))})]})]});}function ji(_0x465378,_0x1aa74b,_0x4dc8ce){const _0x1e1e9c=_0xbfff20;let _0xab333=_0x465378[_0x1e1e9c(0x3f9)][_0x1e1e9c(0x24d)],_0x37eef8=_0x465378[_0x1e1e9c(0x40d)][_0x1e1e9c(0x39f)],_0x1bfb3f=_0x465378[_0x1e1e9c(0x400)][_0x1e1e9c(0x24d)],_0x21d788=_0x465378['dataView'][_0x1e1e9c(0x39f)],_0x3007ed=Array[_0x1e1e9c(0x2a7)]({'length':_0xab333+_0x1bfb3f},(_0x4e250f,_0xf54998)=>Array[_0x1e1e9c(0x2a7)]({'length':_0x37eef8+_0x21d788},(_0xdd16f0,_0x5d1ab0)=>{const _0xa07144=_0x1e1e9c;var _0x5b0bbf,_0x2b2cc7;if(_0xf54998<_0xab333&&_0x5d1ab0<_0x37eef8)return Ni(_0x465378[_0xa07144(0x437)],_0xf54998,_0x5d1ab0,void 0x0,_0x4dc8ce,!0x0,!0x1,'corner:'+_0xf54998+':'+_0x5d1ab0);if(_0xf54998<_0xab333){var _0x10c556;let _0x32d603=_0x5d1ab0-_0x37eef8,_0x1fe4bd=(_0x10c556=_0x465378[_0xa07144(0x3f9)][_0xa07144(0x285)][_0xf54998])==null?void 0x0:_0x10c556[_0xa07144(0x2c6)];return Ni(_0x465378[_0xa07144(0x3f9)],_0xf54998,_0x32d603,_0x1fe4bd?_0x465378[_0xa07144(0x328)][_0x1fe4bd]:void 0x0,_0x4dc8ce,!0x0,Ii(_0x465378[_0xa07144(0x3f9)][_0xa07144(0x1a2)][_0x32d603]),_0xa07144(0x2bf)+_0xf54998+':'+_0x32d603);}if(_0x5d1ab0<_0x37eef8){var _0x16b0b3;let _0x37c1b7=_0xf54998-_0xab333,_0x18fcd1=(_0x16b0b3=_0x465378[_0xa07144(0x40d)][_0xa07144(0x285)][_0x5d1ab0])==null?void 0x0:_0x16b0b3['tableFieldId'];return Ni(_0x465378[_0xa07144(0x40d)],_0x37c1b7,_0x5d1ab0,_0x18fcd1?_0x465378['formatMap'][_0x18fcd1]:void 0x0,_0x4dc8ce,!0x0,Ii(_0x465378[_0xa07144(0x40d)][_0xa07144(0x1a2)][_0x37c1b7]),'row:'+_0x37c1b7+':'+_0x5d1ab0);}let _0x158dfd=_0xf54998-_0xab333,_0x5935cc=_0x5d1ab0-_0x37eef8,_0x2800c3=Math[_0xa07144(0x43f)](((_0x5b0bbf=_0x465378[_0xa07144(0x40d)][_0xa07144(0x1a2)][_0x158dfd])==null?void 0x0:_0x5b0bbf[_0xa07144(0x2e1)])??-0x1,((_0x2b2cc7=_0x465378['colView'][_0xa07144(0x1a2)][_0x5935cc])==null?void 0x0:_0x2b2cc7[_0xa07144(0x2e1)])??-0x1),_0x16ce18=_0x1aa74b['valueFields'][_0x2800c3<0x0?0x0:_0x2800c3];return Ni(_0x465378[_0xa07144(0x400)],_0x158dfd,_0x5935cc,_0x16ce18?_0x465378['formatMap'][_0x16ce18]:void 0x0,_0x4dc8ce,!0x1,Ii(_0x465378[_0xa07144(0x40d)][_0xa07144(0x1a2)][_0x158dfd])||Ii(_0x465378['colView'][_0xa07144(0x1a2)][_0x5935cc]),'data:'+_0x158dfd+':'+_0x5935cc);}));return{'headerColumnCount':_0x37eef8,'headerRowCount':_0xab333,'pageRows':_0x465378[_0x1e1e9c(0x334)]['lastRow']<0x0||_0x465378[_0x1e1e9c(0x334)][_0x1e1e9c(0x199)]<0x0?[]:Array['from']({'length':_0x465378[_0x1e1e9c(0x334)][_0x1e1e9c(0x35b)]+0x1},(_0x169259,_0x402f32)=>Array[_0x1e1e9c(0x2a7)]({'length':_0x465378[_0x1e1e9c(0x334)][_0x1e1e9c(0x199)]+0x1},(_0x502931,_0x583ca0)=>Ni(_0x465378[_0x1e1e9c(0x334)],_0x402f32,_0x583ca0,void 0x0,_0x4dc8ce,!0x0,!0x1,_0x1e1e9c(0x23c)+_0x402f32+':'+_0x583ca0))),'rows':_0x3007ed};}function Mi(_0x2f80d0){const _0x3b6550=_0xbfff20;return _0x2f80d0[_0x3b6550(0x1fd)](_0x327cb2=>{var _0x1dcc17;return _0x1c53e9('tr',{'children':_0x327cb2['map'](_0x39e525=>{const _0x56423b=_0x5dbe;let _0x3e2bad=_0x39e525['isHeader']?'th':'td';return _0x1c53e9(_0x3e2bad,{'className':_0x56423b(0x1d2)+(_0x39e525[_0x56423b(0x1b0)]?'\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':'')+_0x56423b(0x2a4)+(_0x39e525[_0x56423b(0x15b)]?'':'univer-text-right')+_0x56423b(0x24e),'children':_0x39e525[_0x56423b(0x1b5)]},_0x39e525['key']);})},(_0x1dcc17=_0x327cb2[0x0])==null?void 0x0:_0x1dcc17['key']);});}function Ni(_0x446f59,_0x2686f7,_0x4baacc,_0x217dbc,_0x4c2ab9,_0x50fba9,_0x4ca9fc,_0x53c494){const _0x76cf43=_0xbfff20;var _0x30d520;let _0x1acb6a=(_0x30d520=_0x446f59[_0x76cf43(0x490)][_0x2686f7])==null?void 0x0:_0x30d520[_0x4baacc],_0x5067ec=_0x1acb6a==null?void 0x0:_0x1acb6a['s'],_0x2ace40=_0x4ca9fc||_0x5067ec===_0x4b5125[_0x76cf43(0x459)]||_0x5067ec===_0x4b5125[_0x76cf43(0x315)];return{'isHeader':_0x50fba9,'isTotal':_0x2ace40||_0x5067ec===_0x4b5125['Subtotal'],'key':_0x53c494,'style':_0x5067ec,'value':_0x2ace40&&Fi(_0x1acb6a==null?void 0x0:_0x1acb6a['v'])?_0x4c2ab9:Pi(_0x1acb6a,_0x217dbc)};}function Pi(_0x47189d,_0x1e5de5){const _0x56d1c5=_0xbfff20;let _0x2b903f=_0x47189d==null?void 0x0:_0x47189d['v'];return _0x1a85fe(_0x2b903f)?String(_0x2b903f[_0x56d1c5(0x1b5)]??_0x2b903f[_0x56d1c5(0x15f)]??''):_0xfe435(_0x2b903f)?'#'+_0x2b903f[_0x56d1c5(0x312)]:_0x1e5de5&&typeof _0x2b903f==_0x56d1c5(0x2f5)?_0x4bc3f5[_0x56d1c5(0x1ea)](_0x1e5de5,_0x2b903f):String(_0x2b903f??'');}function Fi(_0x272401){return _0x272401===void 0x0||_0x272401==='';}function Ii(_0x3ee763){const _0x129c3d=_0xbfff20;return!!(_0x3ee763!=null&&_0x3ee763[_0x129c3d(0x1a1)]||_0x3ee763!=null&&_0x3ee763[_0x129c3d(0x461)]||_0x3ee763!=null&&_0x3ee763['isSubtotal']||(_0x3ee763==null?void 0x0:_0x3ee763[_0x129c3d(0x25f)])===_0x129c3d(0x2ac));}const Li=[{'area':_0x1126e4[_0xbfff20(0x2a9)],'key':'filterFields','label':_0xbfff20(0x178)},{'area':_0x1126e4[_0xbfff20(0x2b5)],'key':_0xbfff20(0x273),'label':_0xbfff20(0x3bb)},{'area':_0x1126e4[_0xbfff20(0x350)],'key':_0xbfff20(0x2ef),'label':_0xbfff20(0x25e)},{'area':_0x1126e4['Value'],'key':_0xbfff20(0x205),'label':_0xbfff20(0x246)}],Ri=[{'value':_0x4ad10e[_0xbfff20(0x3c2)],'localeKey':_0xbfff20(0x43d)},{'value':_0x4ad10e[_0xbfff20(0x1f6)],'localeKey':_0xbfff20(0x21b)},{'value':_0x4ad10e[_0xbfff20(0x261)],'localeKey':'bases-dashboard-ui.pivot.countNumbers'},{'value':_0x4ad10e['average'],'localeKey':_0xbfff20(0x396)},{'value':_0x4ad10e['max'],'localeKey':_0xbfff20(0x3d4)},{'value':_0x4ad10e['min'],'localeKey':_0xbfff20(0x47a)},{'value':_0x4ad10e[_0xbfff20(0x392)],'localeKey':_0xbfff20(0x24a)},{'value':_0x4ad10e[_0xbfff20(0x362)],'localeKey':_0xbfff20(0x25d)},{'value':_0x4ad10e[_0xbfff20(0x353)],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x4ad10e[_0xbfff20(0x374)],'localeKey':_0xbfff20(0x2f2)},{'value':_0x4ad10e['varp'],'localeKey':_0xbfff20(0x291)}];function zi(_0x5b5a48){const _0x41f600=_0xbfff20;let {config:_0x8709f8,onChange:_0x58232a,table:_0x564b31}=_0x5b5a48,_0x380a51=_0x29f087(_0x2989fb),[_0x5ef09a,_0x33e478]=_0x34e679(_0x41f600(0x1e9)),[_0x4e0fd2,_0x51e2aa]=_0x34e679(''),[_0x37cef1,_0x4b104f]=_0x34e679(null),[_0xe4554e,_0x49f438]=_0x34e679(null),[_0xbce925,_0x3f7b52]=_0x34e679(null),[_0x3cf5c9,_0x593532]=_0x34e679(null),_0xf6d67a=_0x2861da(null),_0x196b2d=_0x548c0f(()=>_0x564b31[_0x41f600(0x222)]['flatMap'](_0x3c4a65=>{const _0xab856e=_0x41f600;let _0x56d3f6=_0x564b31['fields'][_0x3c4a65];return _0x56d3f6&&_0x56d3f6[_0xab856e(0x2d2)]!==!0x0&&_0x56d3f6[_0xab856e(0x427)]!==_0x4fcd7c[_0xab856e(0x496)]?[_0x56d3f6]:[];})[_0x41f600(0x2be)](_0x4410cd=>_0x4410cd[_0x41f600(0x3ca)][_0x41f600(0x3d5)]()[_0x41f600(0x3d0)](_0x4e0fd2[_0x41f600(0x278)]()[_0x41f600(0x3d5)]())),[_0x4e0fd2,_0x564b31]),_0x2c9b2c=_0xb1cdad=>{const _0x122c8c=_0x41f600;let _0x3ae9f0=_0x560cf4(_0x564b31,_0x8709f8[_0x122c8c(0x274)]);try{_0xb1cdad(_0x3ae9f0),_0x58232a({'pivot':_0x3ae9f0[_0x122c8c(0x262)]()});}finally{_0x3ae9f0[_0x122c8c(0x19b)]();}},_0x54cd70=(_0x3f7e02,_0x34007e)=>{_0x37cef1&&(_0x2c9b2c(_0x1bda9f=>{const _0x2b6c9c=_0x5dbe;if(_0x37cef1['kind']===_0x2b6c9c(0x2e6)){let _0xbff79b=_0x1bda9f[_0x2b6c9c(0x19e)](_0x37cef1['id']),_0x4a2e70=_0xbff79b[_0x2b6c9c(0x450)]===_0x3f7e02&&_0xbff79b[_0x2b6c9c(0x365)]<_0x34007e?_0x34007e-0x1:_0x34007e;_0x1bda9f[_0x2b6c9c(0x445)](_0x37cef1['id'],_0x3f7e02,_0x4a2e70);}else qi(_0x1bda9f,_0x37cef1['id'],_0x3f7e02,_0x34007e);}),_0x4b104f(null),_0x49f438(null));};return _0x1108cb(_0x41f600(0x1e8),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col','children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x380a51['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'className':_0x41f600(0x251),'items':[{'label':_0x380a51['t'](_0x41f600(0x3f8)),'panelId':'base-pivot-fields','value':'fields'},{'label':_0x380a51['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x41f600(0x3da),'value':'options'}],'value':_0x5ef09a,'onChange':_0x33e478}),_0x1c53e9(_0x41f600(0x1e8),{'ref':_0xf6d67a,'className':_0x14b647(_0x41f600(0x1e3),_0x439165),'onDragOver':_0x521a80=>{const _0x16e09a=_0x41f600;let _0x37c771=_0xf6d67a[_0x16e09a(0x49d)];if(!_0x37c771)return;let _0x1f8f4d=_0x37c771[_0x16e09a(0x260)]();_0x521a80[_0x16e09a(0x4ae)]<_0x1f8f4d['top']+0x30?_0x37c771[_0x16e09a(0x389)]-=0x10:_0x521a80[_0x16e09a(0x4ae)]>_0x1f8f4d[_0x16e09a(0x2a2)]-0x30&&(_0x37c771[_0x16e09a(0x389)]+=0x10);},'children':_0x5ef09a===_0x41f600(0x37e)?_0x1c53e9(Ki,{'config':_0x8709f8,'commit':_0x2c9b2c}):_0x1108cb('div',{'className':_0x41f600(0x1e6),'children':[_0x1108cb(_0x41f600(0x1e8),{'children':[_0x1c53e9(_0x41f600(0x1e8),{'className':_0x41f600(0x368),'children':_0x380a51['t'](_0x41f600(0x1f7))}),_0x1c53e9(_0x1b54d7,{'allowClear':!0x0,'slot':_0x1c53e9(_0x302bc4,{}),'value':_0x4e0fd2,'placeholder':_0x380a51['t'](_0x41f600(0x257)),'onChange':_0x51e2aa}),_0x1c53e9(_0x41f600(0x1e8),{'className':_0x41f600(0x406),'children':_0x196b2d[_0x41f600(0x1fd)](_0x4d5964=>_0x1c53e9(Bi,{'config':_0x8709f8,'field':_0x4d5964,'onAdd':_0x29d2c3=>_0x2c9b2c(_0x274d09=>qi(_0x274d09,_0x4d5964['id'],_0x29d2c3,_0x274d09[_0x41f600(0x308)](_0x29d2c3))),'onCheckedChange':_0x128d29=>_0x2c9b2c(_0x1f5843=>{const _0x4e3f60=_0x41f600;let _0x48ac24=_0x1f5843['getTableFieldsByDataFieldId'](_0x4d5964['id']);if(!_0x128d29)_0x48ac24[_0x4e3f60(0x4a2)](_0x1cba24=>_0x1f5843[_0x4e3f60(0x38a)](_0x1cba24[_0x4e3f60(0x3c6)]()));else{if(_0x48ac24[_0x4e3f60(0x2df)]===0x0){let _0x26ead0=Yi(_0x4d5964)?_0x1126e4[_0x4e3f60(0x2aa)]:_0x1126e4[_0x4e3f60(0x350)];_0x1f5843[_0x4e3f60(0x39d)](_0x4d5964['id'],_0x26ead0);}}}),'onDragStart':()=>_0x4b104f({'kind':_0x41f600(0x2ad),'id':_0x4d5964['id']})},_0x4d5964['id']))})]}),_0x1c53e9(_0x41f600(0x1e8),{'className':'univer-grid\x20univer-gap-3','children':Li[_0x41f600(0x1fd)](_0x438c51=>_0x1c53e9(Hi,{'area':_0x438c51[_0x41f600(0x450)],'dropTarget':_0xe4554e,'fields':_0x8709f8[_0x41f600(0x274)][_0x438c51[_0x41f600(0x48d)]],'label':_0x380a51['t'](_0x438c51[_0x41f600(0x1b8)]),'snapshot':_0x8709f8[_0x41f600(0x274)],'onDragEnd':()=>{_0x4b104f(null),_0x49f438(null);},'onDragStart':_0x254378=>_0x4b104f({'kind':_0x41f600(0x2e6),'id':_0x254378,'area':_0x438c51[_0x41f600(0x450)]}),'onDragOver':_0xa15178=>_0x49f438({'area':_0x438c51[_0x41f600(0x450)],'index':_0xa15178}),'onDrop':_0xb14293=>_0x54cd70(_0x438c51[_0x41f600(0x450)],_0xb14293),'onFilter':_0x3f7b52,'onMove':(_0x4de124,_0x1102b7,_0x506392)=>_0x2c9b2c(_0x1c10c2=>_0x1c10c2[_0x41f600(0x445)](_0x4de124,_0x1102b7,_0x506392)),'onRemove':_0x83c256=>_0x2c9b2c(_0x1d1c79=>_0x1d1c79[_0x41f600(0x38a)](_0x83c256)),'onSettings':_0x593532},_0x438c51[_0x41f600(0x450)]))}),_0xbce925&&_0x1c53e9(Wi,{'fieldId':_0xbce925,'snapshot':_0x8709f8[_0x41f600(0x274)],'table':_0x564b31,'onCancel':()=>_0x3f7b52(null),'onCommit':(_0x42a5ee,_0x5be750)=>{_0x2c9b2c(_0x44394c=>{const _0x5af48b=_0x5dbe;let _0x580906=_0x44394c[_0x5af48b(0x2ab)](_0xbce925),_0x33720a=(_0x580906==null?void 0x0:_0x580906[_0x5af48b(0x1c0)])??[];_0x44394c['setLabelFilterInfo'](_0xbce925,{'type':_0x5a1647[_0x5af48b(0x224)],'list':_0x42a5ee,'isAll':_0x42a5ee[_0x5af48b(0x2df)]===_0x33720a[_0x5af48b(0x2df)]}),_0x44394c['setSortInfo'](_0xbce925,_0x5be750===void 0x0?void 0x0:{'type':_0x5be750});}),_0x3f7b52(null);}},_0xbce925),_0x3cf5c9&&_0x1c53e9(Gi,{'field':_0x8709f8[_0x41f600(0x274)][_0x41f600(0x421)][_0x3cf5c9],'onCancel':()=>_0x593532(null),'onCommit':(_0x235062,_0x19ef32,_0x5e90e3)=>{_0x2c9b2c(_0x3b330e=>{const _0x2891ff=_0x5dbe;_0x3b330e[_0x2891ff(0x455)](_0x3cf5c9,_0x235062),_0x3b330e[_0x2891ff(0x355)](_0x3cf5c9,_0x19ef32),_0x3b330e['setFieldFormat'](_0x3cf5c9,_0x5e90e3||void 0x0);}),_0x593532(null);}},_0x3cf5c9)]})})]});}function Bi(_0x5da7c9){const _0x70a43=_0xbfff20;let {config:_0x58e456,field:_0x2cc83b,onAdd:_0x5357b2,onCheckedChange:_0x488c41,onDragStart:_0x2ffc0d}=_0x5da7c9,_0x2e182a=_0x29f087(_0x2989fb),_0x2d4e8c=[...Object[_0x70a43(0x34e)](_0x58e456[_0x70a43(0x274)][_0x70a43(0x401)]),...Object['values'](_0x58e456[_0x70a43(0x274)][_0x70a43(0x421)])][_0x70a43(0x415)](_0x34052a=>_0x34052a[_0x70a43(0x2c4)]===_0x2cc83b['id']),_0x3a5f2b=Li[_0x70a43(0x1fd)](_0x4c0827=>({'type':_0x70a43(0x2c2),'children':_0x2e182a['t'](Xi(_0x4c0827[_0x70a43(0x450)])),'onSelect':()=>_0x5357b2(_0x4c0827[_0x70a43(0x450)])}));return _0x1108cb(_0x70a43(0x1e8),{'draggable':!0x1,'style':{'minHeight':0x30},'className':'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','onDragStart':_0x2ffc0d,'children':[_0x1c53e9(_0x1eb8df,{'checked':_0x2d4e8c,'onChange':_0x53d8f3=>_0x488c41(!!_0x53d8f3)}),_0x1c53e9(Vi,{'field':_0x2cc83b}),_0x1c53e9('span',{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x2cc83b[_0x70a43(0x3ca)]}),_0x1c53e9(Yr,{'align':_0x70a43(0x221),'items':_0x3a5f2b,'children':_0x1c53e9(_0x6d25a2,{'variant':'text','aria-label':_0x2e182a['t'](_0x70a43(0x4a6)),'children':_0x1c53e9(_0xacb52a,{})})})]});}function Vi({field:_0x21e378}){const _0x9652b3=_0xbfff20;return Yi(_0x21e378)?_0x1c53e9(_0x45f616,{'className':_0x9652b3(0x1d8)}):_0x21e378[_0x9652b3(0x427)]===_0x4fcd7c[_0x9652b3(0x43b)]||_0x21e378[_0x9652b3(0x427)]===_0x4fcd7c['CreatedAt']||_0x21e378[_0x9652b3(0x427)]===_0x4fcd7c[_0x9652b3(0x386)]?_0x1c53e9(_0x23c2ab,{'className':_0x9652b3(0x1d8)}):_0x1c53e9(_0x383758,{'className':_0x9652b3(0x1d8)});}function Hi(_0x546931){const _0xc0ddad=_0xbfff20;let {area:_0x4f6a85,dropTarget:_0x14e321,fields:_0x1a6bce,label:_0x134534,snapshot:_0x235288}=_0x546931,_0xf8cfb7=_0x29f087(_0x2989fb);return _0x1108cb(_0xc0ddad(0x493),{'className':_0x14b647(_0xc0ddad(0x332),_0x14cf31),'onDragOver':_0x5437d2=>{const _0x388332=_0xc0ddad;_0x5437d2[_0x388332(0x2ea)](),_0x546931[_0x388332(0x1ba)](_0x1a6bce[_0x388332(0x2df)]);},'onDrop':_0x564340=>{const _0x372b1f=_0xc0ddad;_0x564340[_0x372b1f(0x2ea)](),_0x546931[_0x372b1f(0x166)]((_0x14e321==null?void 0x0:_0x14e321[_0x372b1f(0x450)])===_0x4f6a85?_0x14e321[_0x372b1f(0x365)]:_0x1a6bce[_0x372b1f(0x2df)]);},'children':[_0x1c53e9(_0xc0ddad(0x1e8),{'className':_0xc0ddad(0x3af),'children':_0x134534}),_0x1108cb(_0xc0ddad(0x1e8),{'className':_0xc0ddad(0x27e),'children':[_0x1a6bce[_0xc0ddad(0x1fd)]((_0x55c076,_0x281386)=>{const _0x1686a8=_0xc0ddad;let _0x53cf7e=_0x235288[_0x1686a8(0x401)][_0x55c076]??_0x235288[_0x1686a8(0x421)][_0x55c076];if(!_0x53cf7e)return null;let _0x5527e1=(_0x14e321==null?void 0x0:_0x14e321[_0x1686a8(0x450)])===_0x4f6a85&&_0x14e321['index']===_0x281386;return _0x1108cb('div',{'onDragOver':_0x2c9add=>{const _0x18b4c6=_0x1686a8;_0x2c9add[_0x18b4c6(0x2ea)](),_0x2c9add[_0x18b4c6(0x3fb)]();let _0x4548f9=_0x2c9add[_0x18b4c6(0x40a)][_0x18b4c6(0x260)]();_0x546931[_0x18b4c6(0x1ba)](_0x281386+ +(_0x2c9add['clientY']>_0x4548f9[_0x18b4c6(0x3e6)]+_0x4548f9[_0x18b4c6(0x402)]/0x2));},'onDrop':_0x318add=>{const _0x1b5f63=_0x1686a8;_0x318add['preventDefault'](),_0x318add['stopPropagation'](),_0x546931[_0x1b5f63(0x166)]((_0x14e321==null?void 0x0:_0x14e321[_0x1b5f63(0x450)])===_0x4f6a85?_0x14e321[_0x1b5f63(0x365)]:_0x281386);},'children':[_0x5527e1&&_0x1c53e9('div',{'className':_0x1686a8(0x487)}),_0x1c53e9(Ui,{'area':_0x4f6a85,'field':_0x53cf7e,'onDragEnd':_0x546931[_0x1686a8(0x183)],'onDragStart':()=>_0x546931['onDragStart'](_0x55c076),'onFilter':()=>_0x546931[_0x1686a8(0x3b7)](_0x55c076),'onMove':_0x4c989b=>_0x546931[_0x1686a8(0x460)](_0x55c076,_0x4c989b,0x0),'onMoveUp':_0x281386>0x0?()=>_0x546931[_0x1686a8(0x460)](_0x55c076,_0x4f6a85,_0x281386-0x1):void 0x0,'onMoveDown':_0x281386<_0x1a6bce[_0x1686a8(0x2df)]-0x1?()=>_0x546931[_0x1686a8(0x460)](_0x55c076,_0x4f6a85,_0x281386+0x1):void 0x0,'onRemove':()=>_0x546931[_0x1686a8(0x169)](_0x55c076),'onSettings':()=>_0x546931[_0x1686a8(0x2cc)](_0x55c076)})]},_0x55c076);}),(_0x14e321==null?void 0x0:_0x14e321[_0xc0ddad(0x450)])===_0x4f6a85&&_0x14e321[_0xc0ddad(0x365)]===_0x1a6bce[_0xc0ddad(0x2df)]&&_0x1c53e9(_0xc0ddad(0x1e8),{'className':_0xc0ddad(0x487)}),_0x1a6bce[_0xc0ddad(0x2df)]===0x0&&_0x1c53e9('div',{'className':_0xc0ddad(0x1d0),'children':_0xf8cfb7['t'](_0xc0ddad(0x1f7))})]})]});}function Ui(_0x1a633e){const _0x48d809=_0xbfff20;let _0x5e0f17=_0x29f087(_0x2989fb),_0x372cdf=_0x1a633e['area']===_0x1126e4[_0x48d809(0x2aa)],_0x98e411=[...Li[_0x48d809(0x2be)](_0x1bf0b6=>_0x1bf0b6[_0x48d809(0x450)]!==_0x1a633e[_0x48d809(0x450)])[_0x48d809(0x1fd)](_0x1b1e3e=>({'type':'item','children':_0x5e0f17['t'](Xi(_0x1b1e3e[_0x48d809(0x450)])),'onSelect':()=>_0x1a633e[_0x48d809(0x460)](_0x1b1e3e[_0x48d809(0x450)])})),..._0x1a633e[_0x48d809(0x258)]?[{'type':_0x48d809(0x2c2),'children':_0x5e0f17['t']('bases-dashboard-ui.mobile.moveUp'),'onSelect':_0x1a633e[_0x48d809(0x258)]}]:[],..._0x1a633e['onMoveDown']?[{'type':_0x48d809(0x2c2),'children':_0x5e0f17['t'](_0x48d809(0x1b4)),'onSelect':_0x1a633e[_0x48d809(0x22a)]}]:[],{'type':_0x48d809(0x2c2),'children':_0x5e0f17['t'](_0x48d809(0x276)),'onSelect':_0x1a633e[_0x48d809(0x169)]},{'type':_0x48d809(0x2c2),'children':_0x5e0f17['t'](_0x372cdf?'bases-dashboard-ui.pivot.fieldSettings':_0x48d809(0x36a)),'onSelect':_0x372cdf?_0x1a633e[_0x48d809(0x2cc)]:_0x1a633e['onFilter']}];return _0x1108cb(_0x48d809(0x1e8),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x48d809(0x32c),'onDragEnd':_0x1a633e['onDragEnd'],'onDragStart':_0x1a633e['onDragStart'],'children':[_0x1c53e9(_0x501781,{'title':_0x1a633e['field'][_0x48d809(0x1cf)],'children':_0x1c53e9(_0x48d809(0x213),{'className':_0x48d809(0x309),'children':_0x1a633e['field'][_0x48d809(0x1cf)]})}),_0x1c53e9(Yr,{'align':_0x48d809(0x221),'items':_0x98e411,'children':_0x1c53e9(_0x6d25a2,{'variant':_0x48d809(0x173),'aria-label':_0x5e0f17['t']('bases-dashboard-ui.pivot.fieldSettings'),'children':_0x1c53e9(_0xacb52a,{})})})]});}function Wi(_0xfb31b4){const _0xebef80=_0xbfff20;var _0x206a55,_0x36c37b;let _0x3c4970=_0x29f087(_0x2989fb),{format:_0x15c460,items:_0x160b45,itemTypes:_0x459932}=_0x548c0f(()=>{const _0x5a2582=_0x5dbe;let _0x473415=_0x560cf4(_0xfb31b4[_0x5a2582(0x405)],_0xfb31b4[_0x5a2582(0x432)]);try{let _0x4bf390=_0x473415[_0x5a2582(0x2ab)](_0xfb31b4[_0x5a2582(0x17d)]);return{'format':_0x4bf390==null?void 0x0:_0x4bf390[_0x5a2582(0x1ea)],'items':[...(_0x4bf390==null?void 0x0:_0x4bf390[_0x5a2582(0x1c0)])??[]],'itemTypes':[...(_0x4bf390==null?void 0x0:_0x4bf390[_0x5a2582(0x22c)])??[]]};}finally{_0x473415['dispose']();}},[_0xfb31b4[_0xebef80(0x17d)],_0xfb31b4[_0xebef80(0x432)],_0xfb31b4[_0xebef80(0x405)]]),_0x1ede8a=(_0x206a55=_0xfb31b4[_0xebef80(0x432)][_0xebef80(0x401)][_0xfb31b4[_0xebef80(0x17d)]])==null?void 0x0:_0x206a55[_0xebef80(0x158)],[_0x565f86,_0x1f22ed]=_0x34e679((_0x1ede8a==null?void 0x0:_0x1ede8a[_0xebef80(0x427)])===_0x5a1647['ManualFilter']?_0x1ede8a[_0xebef80(0x1ca)]:_0x160b45),[_0x55b69d,_0x4ebec6]=_0x34e679((_0x36c37b=_0xfb31b4[_0xebef80(0x432)][_0xebef80(0x401)][_0xfb31b4[_0xebef80(0x17d)]])==null||(_0x36c37b=_0x36c37b[_0xebef80(0x23e)])==null?void 0x0:_0x36c37b['type']),_0x1eb802=_0x565f86[_0xebef80(0x2df)]===_0x160b45[_0xebef80(0x2df)],_0x5609fd=_0x1108cb(_0xebef80(0x493),{'className':_0x14b647(_0xebef80(0x35d),_0x14cf31),'children':[_0x1c53e9(_0xebef80(0x1e8),{'className':_0xebef80(0x2fb),'children':_0x3c4970['t'](_0xebef80(0x36a))}),_0x1108cb('div',{'className':_0xebef80(0x1f8),'children':[_0x1108cb(_0x6d25a2,{'className':'univer-flex-1','variant':_0x55b69d===_0xaa402b[_0xebef80(0x357)]?_0xebef80(0x3d2):_0xebef80(0x30e),'onClick':()=>_0x4ebec6(_0xaa402b['ascending']),'children':[_0x1c53e9(_0x5de895,{}),_0x3c4970['t'](_0xebef80(0x497))]}),_0x1108cb(_0x6d25a2,{'className':'univer-flex-1','variant':_0x55b69d===_0xaa402b[_0xebef80(0x2d4)]?_0xebef80(0x3d2):_0xebef80(0x30e),'onClick':()=>_0x4ebec6(_0xaa402b[_0xebef80(0x2d4)]),'children':[_0x1c53e9(_0xcbb196,{}),_0x3c4970['t']('bases-dashboard-ui.pivot.descending')]})]}),_0x1108cb(_0xebef80(0x1e8),{'className':_0xebef80(0x28f),'children':[_0x1108cb(_0xebef80(0x1b8),{'className':_0xebef80(0x299),'children':[_0x1c53e9(_0x1eb8df,{'checked':_0x1eb802,'indeterminate':_0x565f86[_0xebef80(0x2df)]>0x0&&!_0x1eb802,'onChange':()=>_0x1f22ed(_0x1eb802?[]:_0x160b45)}),_0x3c4970['t'](_0xebef80(0x337))]}),_0x160b45[_0xebef80(0x1fd)]((_0x4075b9,_0x2918ab)=>_0x1108cb('label',{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x1c53e9(_0x1eb8df,{'checked':_0x565f86['includes'](_0x4075b9),'onChange':()=>_0x1f22ed(_0xf12a1=>_0xf12a1[_0xebef80(0x3d0)](_0x4075b9)?_0xf12a1[_0xebef80(0x2be)](_0x1d88cd=>_0x1d88cd!==_0x4075b9):[..._0xf12a1,_0x4075b9])}),_0x1c53e9('span',{'className':_0xebef80(0x3aa),'children':Ji(_0x4075b9,_0x459932[_0x2918ab],_0x15c460,_0x3c4970['t']('bases-dashboard-ui.pivot.blank'))})]},_0x4075b9))]}),_0x1108cb(_0xebef80(0x1e8),{'className':_0xebef80(0x17a),'children':[_0x1c53e9(_0x6d25a2,{'variant':'link','onClick':()=>_0xfb31b4[_0xebef80(0x2d1)](_0x160b45,_0x55b69d),'children':_0x3c4970['t'](_0xebef80(0x43c))}),_0x1108cb(_0xebef80(0x1e8),{'className':_0xebef80(0x30b),'children':[_0x1c53e9(_0x6d25a2,{'onClick':_0xfb31b4[_0xebef80(0x16d)],'children':_0x3c4970['t'](_0xebef80(0x391))}),_0x1c53e9(_0x6d25a2,{'variant':'primary','disabled':_0x565f86[_0xebef80(0x2df)]===0x0,'onClick':()=>_0xfb31b4[_0xebef80(0x2d1)](_0x565f86,_0x55b69d),'children':_0x3c4970['t'](_0xebef80(0x3b4))})]})]})]});return _0x1c53e9(_0xbfe7,{'title':_0x3c4970['t']('bases-dashboard-ui.pivot.filterField'),'onClose':_0xfb31b4[_0xebef80(0x16d)],'children':_0x5609fd});}function Gi(_0x4766d6){const _0x40a297=_0xbfff20;var _0x5e9796,_0x58200e,_0x2bb519;let _0x518427=_0x29f087(_0x2989fb),[_0x588722,_0x599f9b]=_0x34e679(((_0x5e9796=_0x4766d6['field'])==null?void 0x0:_0x5e9796['displayName'])??''),[_0x5e5889,_0x5cbdf0]=_0x34e679(((_0x58200e=_0x4766d6[_0x40a297(0x2e6)])==null?void 0x0:_0x58200e[_0x40a297(0x4a3)])??_0x4ad10e[_0x40a297(0x3c2)]),[_0x556e0e,_0x457c0c]=_0x34e679(((_0x2bb519=_0x4766d6['field'])==null?void 0x0:_0x2bb519[_0x40a297(0x1ea)])??'');if(!_0x4766d6[_0x40a297(0x2e6)])return null;let _0x159650=_0x1108cb(_0x40a297(0x493),{'className':_0x14b647(_0x40a297(0x1e1),_0x14cf31),'children':[_0x1c53e9(_0x40a297(0x1e8),{'className':_0x40a297(0x3ea),'children':_0x518427['t']('bases-dashboard-ui.pivot.fieldSettings')}),_0x1108cb(_0x40a297(0x1b8),{'className':_0x40a297(0x223),'children':[_0x518427['t'](_0x40a297(0x480)),_0x1c53e9(_0x1b54d7,{'value':_0x588722,'onChange':_0x599f9b})]}),_0x1108cb('label',{'className':_0x40a297(0x223),'children':[_0x518427['t']('bases-dashboard-ui.pivot.summarizeBy'),_0x1c53e9(Jr,{'value':String(_0x5e5889),'options':Ri['map'](_0x20d305=>({'value':String(_0x20d305[_0x40a297(0x1b5)]),'label':_0x518427['t'](_0x20d305['localeKey'])})),'onChange':_0x24b20b=>{const _0x125e2b=_0x40a297;let _0x347d2e=Ri[_0x125e2b(0x1ac)](_0x568f12=>String(_0x568f12[_0x125e2b(0x1b5)])===_0x24b20b);_0x347d2e&&_0x5cbdf0(_0x347d2e[_0x125e2b(0x1b5)]);}})]}),_0x1108cb(_0x40a297(0x1b8),{'className':_0x40a297(0x223),'children':[_0x518427['t'](_0x40a297(0x341)),_0x1c53e9(_0x1b54d7,{'value':_0x556e0e,'onChange':_0x457c0c})]}),_0x1108cb('div',{'className':_0x40a297(0x431),'children':[_0x1c53e9(_0x6d25a2,{'onClick':_0x4766d6[_0x40a297(0x16d)],'children':_0x518427['t'](_0x40a297(0x391))}),_0x1c53e9(_0x6d25a2,{'variant':'primary','disabled':!_0x588722['trim'](),'onClick':()=>_0x4766d6[_0x40a297(0x2d1)](_0x588722['trim'](),_0x5e5889,_0x556e0e),'children':_0x518427['t'](_0x40a297(0x3b4))})]})]});return _0x1c53e9(_0xbfe7,{'title':_0x518427['t'](_0x40a297(0x4a6)),'onClose':_0x4766d6[_0x40a297(0x16d)],'children':_0x159650});}function Ki(_0x2c7ff2){const _0x25d0dd=_0xbfff20;let {config:_0xc060a6,commit:_0x45a923}=_0x2c7ff2,_0x55fdeb=_0x29f087(_0x2989fb),_0x5088da=_0xc060a6[_0x25d0dd(0x274)]['options'],_0x3b8e74=_0x5409be=>_0x45a923(_0xbe1793=>_0xbe1793[_0x25d0dd(0x159)]({..._0xbe1793['getOptions'](),..._0x5409be}));return _0x1108cb('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x1108cb(_0x25d0dd(0x1b8),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x55fdeb['t'](_0x25d0dd(0x348)),_0x1c53e9(Jr,{'className':'univer-w-36','value':String(_0xc060a6[_0x25d0dd(0x274)][_0x25d0dd(0x2fc)]),'options':[{'value':String(_0x66aa38['tabular']),'label':_0x55fdeb['t'](_0x25d0dd(0x385))},{'value':String(_0x66aa38[_0x25d0dd(0x3eb)]),'label':_0x55fdeb['t']('bases-dashboard-ui.pivot.layoutCompact')},{'value':String(_0x66aa38[_0x25d0dd(0x3ff)]),'label':_0x55fdeb['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x2d43c5=>{const _0x28f748=_0x25d0dd;let _0x33f527=[_0x66aa38[_0x28f748(0x383)],_0x66aa38[_0x28f748(0x3eb)],_0x66aa38['outline']][_0x28f748(0x1ac)](_0x439d63=>String(_0x439d63)===_0x2d43c5);_0x33f527!==void 0x0&&_0x45a923(_0x5a4f54=>_0x5a4f54[_0x28f748(0x37b)](_0x33f527));}})]}),[{'key':_0x25d0dd(0x3a1),'label':_0x25d0dd(0x3c3),'defaultValue':!0x1},{'key':_0x25d0dd(0x48a),'label':_0x25d0dd(0x1ff),'defaultValue':!0x1},{'key':_0x25d0dd(0x3d8),'label':'bases-dashboard-ui.pivot.showRowSubtotal','defaultValue':!0x0},{'key':_0x25d0dd(0x2c5),'label':_0x25d0dd(0x3ad),'defaultValue':!0x0},{'key':_0x25d0dd(0x160),'label':'bases-dashboard-ui.pivot.showColumnSubtotal','defaultValue':!0x0},{'key':_0x25d0dd(0x2a0),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}]['map'](_0x343f1d=>_0x1108cb(_0x25d0dd(0x1b8),{'className':_0x25d0dd(0x2ae),'children':[_0x1c53e9(_0x1eb8df,{'checked':!!(_0x5088da[_0x343f1d[_0x25d0dd(0x48d)]]??_0x343f1d[_0x25d0dd(0x3fa)]),'disabled':_0x343f1d[_0x25d0dd(0x48d)]===_0x25d0dd(0x3a1)&&_0xc060a6[_0x25d0dd(0x274)][_0x25d0dd(0x2fc)]===_0x66aa38[_0x25d0dd(0x3eb)],'onChange':_0x359e98=>_0x3b8e74({[_0x343f1d['key']]:!!_0x359e98})}),_0x55fdeb['t'](_0x343f1d[_0x25d0dd(0x1b8)])]},_0x343f1d['key'])),_0xc060a6[_0x25d0dd(0x274)][_0x25d0dd(0x2fc)]===_0x66aa38[_0x25d0dd(0x3ff)]&&_0x1108cb('label',{'className':_0x25d0dd(0x2f4),'children':[_0x55fdeb['t'](_0x25d0dd(0x323)),_0x1c53e9(Jr,{'className':_0x25d0dd(0x44c),'value':String(_0x5088da[_0x25d0dd(0x329)]??_0x571e80['top']),'options':[{'value':String(_0x571e80['top']),'label':_0x55fdeb['t'](_0x25d0dd(0x1c5))},{'value':String(_0x571e80['bottom']),'label':_0x55fdeb['t'](_0x25d0dd(0x464))}],'onChange':_0x3a14de=>{const _0xfb7345=_0x25d0dd;let _0x3ac494=[_0x571e80[_0xfb7345(0x3e6)],_0x571e80['bottom']][_0xfb7345(0x1ac)](_0x536968=>String(_0x536968)===_0x3a14de);_0x3ac494!==void 0x0&&_0x3b8e74({'rowSubtotalPosition':_0x3ac494});}})]}),_0x1108cb(_0x25d0dd(0x1b8),{'className':_0x25d0dd(0x2f4),'children':[_0x55fdeb['t']('bases-dashboard-ui.pivot.valuePosition'),_0x1c53e9(Jr,{'className':_0x25d0dd(0x44c),'value':String(_0xc060a6[_0x25d0dd(0x274)][_0x25d0dd(0x275)]===_0xe5d4e5['None']?_0xe5d4e5[_0x25d0dd(0x2b5)]:_0xc060a6[_0x25d0dd(0x274)][_0x25d0dd(0x275)]),'options':[{'value':String(_0xe5d4e5[_0x25d0dd(0x2b5)]),'label':_0x55fdeb['t'](_0x25d0dd(0x3bb))},{'value':String(_0xe5d4e5[_0x25d0dd(0x350)]),'label':_0x55fdeb['t'](_0x25d0dd(0x25e))}],'onChange':_0x5019c8=>{const _0x22bb3c=_0x25d0dd;let _0x587ae5=[_0xe5d4e5[_0x22bb3c(0x2b5)],_0xe5d4e5[_0x22bb3c(0x350)]]['find'](_0x2048cc=>String(_0x2048cc)===_0x5019c8);_0x587ae5!==void 0x0&&_0x45a923(_0x533a3c=>_0x533a3c['updateValuePosition'](_0x587ae5,_0x533a3c[_0x22bb3c(0x16e)]()<0x0?0x0:_0x533a3c['getValueIndex']()));}})]}),_0x1108cb(_0x25d0dd(0x1b8),{'className':_0x25d0dd(0x2f4),'children':[_0x55fdeb['t'](_0x25d0dd(0x182)),_0x1c53e9(_0x5a3ae3,{'className':_0x25d0dd(0x3d7),'min':0x1,'max':0x14,'value':_0x5088da[_0x25d0dd(0x38e)]??0x1,'onChange':_0x3b140f=>{const _0xa70cb6=_0x25d0dd;let _0x2ca393=Number(_0x3b140f);Number[_0xa70cb6(0x2da)](_0x2ca393)&&_0x2ca393>=0x1&&_0x3b8e74({'pageWrap':_0x2ca393});}})]}),_0x1108cb(_0x25d0dd(0x1b8),{'className':_0x25d0dd(0x2f4),'children':[_0x55fdeb['t']('bases-dashboard-ui.pivot.pageDirection'),_0x1c53e9(Jr,{'className':_0x25d0dd(0x44c),'value':String(_0x5088da[_0x25d0dd(0x40b)]??!0x1),'options':[{'value':_0x25d0dd(0x41f),'label':_0x55fdeb['t'](_0x25d0dd(0x3c4))},{'value':_0x25d0dd(0x354),'label':_0x55fdeb['t'](_0x25d0dd(0x269))}],'onChange':_0x1f8a41=>_0x3b8e74({'pageOverThenDown':_0x1f8a41===_0x25d0dd(0x354)})})]})]});}function qi(_0x16bbd8,_0x5e175e,_0x4bbfa0,_0xb76f0){const _0x26091d=_0xbfff20;let _0x3869bf=_0x16bbd8[_0x26091d(0x3e4)](_0x5e175e)['find'](_0x46e114=>_0x16bbd8['getFieldPositionInfoById'](_0x46e114[_0x26091d(0x3c6)]())[_0x26091d(0x450)]!==_0x1126e4[_0x26091d(0x2aa)]);_0x4bbfa0!==_0x1126e4[_0x26091d(0x2aa)]&&_0x3869bf?_0x16bbd8[_0x26091d(0x445)](_0x3869bf[_0x26091d(0x3c6)](),_0x4bbfa0,_0xb76f0):_0x16bbd8[_0x26091d(0x39d)](_0x5e175e,_0x4bbfa0,_0xb76f0);}function Ji(_0x386fc6,_0x2a801c,_0x662d62,_0x5b6ba3){const _0x100844=_0xbfff20;return _0x2a801c===_0x48a00c[_0x100844(0x330)]?_0x5b6ba3:_0x2a801c===_0x48a00c[_0x100844(0x2f1)]&&_0x662d62?_0x4bc3f5['format'](_0x662d62,Number(_0x386fc6)):_0x386fc6;}function Yi(_0x12dcac){const _0x63c974=_0xbfff20;return _0x12dcac['type']===_0x4fcd7c[_0x63c974(0x2e4)]||_0x12dcac[_0x63c974(0x427)]===_0x4fcd7c[_0x63c974(0x256)]||_0x12dcac[_0x63c974(0x427)]===_0x4fcd7c['Progress']||_0x12dcac['type']===_0x4fcd7c[_0x63c974(0x31c)];}function Xi(_0x850707){const _0x4b6719=_0xbfff20;switch(_0x850707){case _0x1126e4[_0x4b6719(0x350)]:return _0x4b6719(0x215);case _0x1126e4['Column']:return _0x4b6719(0x2fa);case _0x1126e4[_0x4b6719(0x2aa)]:return _0x4b6719(0x18f);default:return _0x4b6719(0x3a7);}}function Zi({config:_0xb45d85,onChange:_0xc74d7c,runtime:_0x22da3d,table:_0x23660c}){const _0x2d854f=_0xbfff20;let _0x1f762a=_0x29f087(_0x2989fb),[_0x55e02d,_0x1f7025]=_0x34e679(_0x2d854f(0x252));return _0x1108cb(_0x2d854f(0x1fb),{'className':_0x2d854f(0x439),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x1f762a['t'](_0x2d854f(0x3f2)),'className':_0x2d854f(0x3bd),'items':[{'label':_0x1f762a['t'](_0x2d854f(0x1eb)),'panelId':_0x2d854f(0x470),'value':'chart'},{'label':_0x1f762a['t'](_0x2d854f(0x3c9)),'panelId':'base-pivot-table-configuration','value':_0x2d854f(0x274)}],'value':_0x55e02d,'variant':'segmented','onChange':_0x1f7025}),_0x1c53e9(_0x2d854f(0x1e8),{'className':_0x2d854f(0x3ac),'children':_0x55e02d==='chart'?_0x22da3d&&_0x1c53e9($r,{'config':_0xb45d85,'runtime':_0x22da3d,'tableName':_0x23660c[_0x2d854f(0x3ca)],'onChange':_0xc74d7c}):_0x1c53e9(zi,{'config':_0xb45d85,'table':_0x23660c,'onChange':_0xc74d7c})})]});}function Qi({tableId:_0x5268e6,unitId:_0x32ec93,viewId:_0xcb365c}){const _0x1b60e0=_0xbfff20;let [_0x1dd88a,_0x17c392]=_0x34e679(!0x1),_0x178e49=_0x29f087(_0x2220df),_0x57e69b=_0x29f087(_0x14186a),_0x4490d1=_0x29f087(_0x49fceb),_0x5e3d36=_0x29f087(_0x2989fb),_0x5562fc=_0x29f087(_0x441727),[_0x69fcf9,_0x440b72]=_0x34e679(null),[_0x2e9b07,_0x107d57]=_0x34e679(null),_0x325e9a=_0x2861da(_0x1b60e0(0x244)+_0xd28735(0x8)),[_0x3dd905,_0x26a656]=_0x34e679(!0x1),_0x27616b=_0x57e69b[_0x1b60e0(0x454)](_0x32ec93,_0x37ea54[_0x1b60e0(0x2e2)]),_0x2c62e4=_0x27616b==null?void 0x0:_0x27616b[_0x1b60e0(0x373)]()['tables'][_0x5268e6],_0x7410e9=_0x2c62e4==null?void 0x0:_0x2c62e4['views'][_0xcb365c],_0x16f3e9=$i(_0x7410e9),_0x3df638=vr(_0x32ec93,_0x5268e6,_0xcb365c);if(_0x436796(()=>{const _0x3455cb=_0x1b60e0;if(!_0x16f3e9)return;let _0x288bda=_0x325e9a['current'];return _0x5562fc[_0x3455cb(0x38c)](_0x288bda,{'unitId':_0x32ec93,'tableId':_0x5268e6,'viewId':_0xcb365c,'filters':[]}),()=>{const _0x1a0615=_0x3455cb;_0x5562fc[_0x1a0615(0x414)](_0x32ec93,_0x288bda);};},[_0x16f3e9,_0x5562fc,_0x5268e6,_0x32ec93,_0xcb365c]),_0x436796(()=>{const _0x2ed499=_0x1b60e0;if(!$i(_0x7410e9))return;let _0x572aff=!0x0,_0x2124d1={'unitId':_0x32ec93,'tableId':_0x5268e6,'viewId':_0xcb365c,'filters':[_0x7410e9[_0x2ed499(0x2be)]??null]};return _0x5562fc['refreshChartRuntime'](_0x32ec93,_0x325e9a[_0x2ed499(0x49d)],_0x2124d1)[_0x2ed499(0x271)](_0x1cba5f=>{const _0x484619=_0x2ed499;_0x572aff&&_0x1cba5f&&(_0x440b72(_0x1cba5f),_0x107d57(_0x5562fc[_0x484619(0x3bf)](_0x32ec93,_0x325e9a[_0x484619(0x49d)])??null),_0x26a656(!0x1));})[_0x2ed499(0x433)](_0x3c7d54=>{const _0x3e4866=_0x2ed499;_0x4490d1[_0x3e4866(0x1a6)](_0x3e4866(0x33f),_0x3c7d54),_0x572aff&&(_0x440b72(null),_0x26a656(!0x0));}),()=>{_0x572aff=!0x1;};},[_0x4490d1,_0x5562fc,_0x5268e6,_0x32ec93,_0x7410e9,_0xcb365c]),!_0x2c62e4||!$i(_0x7410e9))return null;let _0x2ebf4e=_0x5562fc['getChartRuntime'](_0x32ec93,_0x325e9a[_0x1b60e0(0x49d)])===_0x2e9b07?_0x2e9b07:null,_0x2025f0=_0x69fcf9?_0x1108cb(_0x1b60e0(0x1e8),{'className':'univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','style':{'gridTemplateRows':_0x7410e9['config'][_0x1b60e0(0x463)]==='chart-and-table'?_0x1b60e0(0x2e7):_0x1b60e0(0x456)},'children':[_0x7410e9['config'][_0x1b60e0(0x463)]!==_0x1b60e0(0x405)&&_0x2ebf4e&&_0x1c53e9(_0x1b60e0(0x1e8),{'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':_0x1c53e9(Lr,{'isRowDirection':_0x3b57e8(_0x7410e9[_0x1b60e0(0x167)][_0x1b60e0(0x252)][_0x1b60e0(0x292)]),'runtime':_0x2ebf4e})}),_0x7410e9[_0x1b60e0(0x167)][_0x1b60e0(0x463)]!==_0x1b60e0(0x252)&&_0x1c53e9(_0x1b60e0(0x1e8),{'className':_0x1b60e0(0x45d),'children':_0x1c53e9(Ai,{'pivot':_0x7410e9['config'][_0x1b60e0(0x274)],'view':_0x69fcf9['view']})})]}):_0x1c53e9(_0x1b60e0(0x1e8),{'className':_0x1b60e0(0x216),'children':_0x3dd905?_0x5e3d36['t'](_0x1b60e0(0x2ed)):_0x5e3d36['t']('bases-dashboard-ui.pivot.calculating')}),_0x5c8284=_0x1c53e9(Zi,{'config':_0x7410e9[_0x1b60e0(0x167)],'runtime':_0x2ebf4e,'table':_0x2c62e4,'onChange':_0x50f441=>{const _0x73b1ad=_0x1b60e0;_0x57e69b[_0x73b1ad(0x1a8)](_0x32ec93),_0x57e69b[_0x73b1ad(0x177)](_0x32ec93),_0x178e49[_0x73b1ad(0x42e)](_0x50437b['id'],{'unitId':_0x32ec93,'tableId':_0x5268e6,'viewId':_0xcb365c,'patch':_0x50f441})[_0x73b1ad(0x433)](_0x206216=>_0x4490d1['error'](_0x73b1ad(0x3cd),_0x206216));}});return _0x1c53e9(qr,{'children':_0x1108cb(_0x1b60e0(0x1e8),{'className':_0x1b60e0(0x4a0),'children':[_0x3df638&&_0x1c53e9(_0x6d25a2,{'onClick':()=>_0x17c392(!0x0),'children':_0x5e3d36['t']('bases-dashboard-ui.pivot.chartConfiguration')}),_0x1c53e9(_0x1b60e0(0x1e8),{'className':'univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','children':_0x2025f0}),_0x3df638&&_0x1dd88a&&_0x1c53e9(_0xbfe7,{'title':_0x5e3d36['t'](_0x1b60e0(0x3f2)),'onClose':()=>_0x17c392(!0x1),'children':_0x5c8284})]})});}function $i(_0x46f4d6){const _0x309239=_0xbfff20;return(_0x46f4d6==null?void 0x0:_0x46f4d6[_0x309239(0x427)])===_0x54a718['Pivot']&&typeof _0x46f4d6['config']==_0x309239(0x235)&&_0x46f4d6['config']!==null&&_0x309239(0x274)in _0x46f4d6['config']&&_0x309239(0x252)in _0x46f4d6[_0x309239(0x167)]&&'displayMode'in _0x46f4d6['config'];}let ea=class extends _0x2eec42{constructor(_0x425ef9,_0x7b5489,_0x506c28,_0x247bc5,_0x3f42e9,_0x5df882){const _0x28c491=_0xbfff20;super(),this[_0x28c491(0x253)](_0x7b5489[_0x28c491(0x219)]({'type':_0x54a718[_0x28c491(0x2c9)],'renderMode':'dom','icon':_0x25ef71,'component':Qi,'menu':{get 'label'(){const _0xfa00bb=_0x28c491;return _0x5df882['t'](_0xfa00bb(0x3f2));},get 'description'(){return _0x5df882['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){const _0x2884f4=_0x28c491;return _0x5df882['t'](_0x2884f4(0x475));}}})),this['disposeWithMe'](_0x425ef9['register'](ta(_0x506c28,_0x247bc5,_0x3f42e9,_0x5df882)));}};ea=kr([Y(0x0,_0x2a9f9e),Y(0x1,_0x1611be),Y(0x2,_0x38b292(_0x309002)),Y(0x3,_0x2220df),Y(0x4,_0x4deb76),Y(0x5,_0x38b292(_0x2989fb))],ea);function ta(_0x129ae9,_0x2ea0d6,_0x715bb6,_0x2a23f5){const _0x3af9aa=_0xbfff20;return{'change$':_0x440773(_0x129ae9['change$'],_0x715bb6[_0x3af9aa(0x179)]),'component':xi,get 'labels'(){const _0x590806=_0x3af9aa;return{'add':_0x2a23f5['t']('bases-dashboard-ui.dashboard.add'),'configure':_0x211ad6=>_0x2a23f5['t']('bases-dashboard-ui.dashboard.configure',_0x211ad6),'delete':_0x2a23f5['t'](_0x590806(0x171)),'new':_0x2a23f5['t'](_0x590806(0x3ae)),'rename':_0x2a23f5['t'](_0x590806(0x336)),'search':_0x2a23f5['t'](_0x590806(0x325)),'section':_0x2a23f5['t'](_0x590806(0x2ec))};},'getItems':_0x32ed79=>{const _0x4a440c=_0x3af9aa;let _0xe1dfe=_0x129ae9[_0x4a440c(0x1ce)](_0x32ed79);return _0xe1dfe['dashboardOrder'][_0x4a440c(0x31f)](_0x4976d3=>{const _0x87b30f=_0x4a440c;let _0x46cbb1=_0xe1dfe[_0x87b30f(0x344)][_0x4976d3];return _0x46cbb1?[{'id':_0x46cbb1['id'],'name':_0x46cbb1[_0x87b30f(0x3ca)],'readonly':!_0x120634(_0x715bb6,_0x32ed79,_0x46cbb1['id'])}]:[];});},'create':async _0x425203=>{const _0x153cb3=_0x3af9aa;let _0x391635=_0x129ae9['getResource'](_0x425203),_0xfb9538='dashboard-'+_0xd28735(0x8),_0x227383=na(_0x391635[_0x153cb3(0x28e)][_0x153cb3(0x31f)](_0x5ce121=>{const _0x32ee0b=_0x153cb3;let _0x29e3da=_0x391635[_0x32ee0b(0x344)][_0x5ce121];return _0x29e3da?[_0x29e3da[_0x32ee0b(0x3ca)]]:[];}),_0x158a8b=>_0x2a23f5['t'](_0x153cb3(0x4ad),String(_0x158a8b)));return await _0x2ea0d6['executeCommand'](_0x28a4bb['id'],{'unitId':_0x425203,'dashboard':{'id':_0xfb9538,'name':_0x227383,'widgetOrder':[],'widgets':{}}})?_0xfb9538:null;},'rename':async(_0x2fbe8a,_0x449eed,_0x4dac9b)=>{const _0x2a1d98=_0x3af9aa;let _0x147389=_0x129ae9[_0x2a1d98(0x34a)](_0x2fbe8a,_0x449eed);return!!(_0x147389&&await _0x2ea0d6[_0x2a1d98(0x42e)](_0x39c855['id'],{'unitId':_0x2fbe8a,'dashboard':{..._0x147389,'name':_0x4dac9b}}));},'remove':(_0x3ce609,_0xa61371)=>_0x2ea0d6['executeCommand'](_0x22a544['id'],{'unitId':_0x3ce609,'dashboardId':_0xa61371})};}function na(_0x2877c3,_0x5a9e8c){const _0x4bb91c=_0xbfff20;let _0x57e948=new Set(_0x2877c3),_0x13d3ed=_0x57e948['size']+0x1,_0x412b98=_0x5a9e8c(_0x13d3ed);for(;_0x57e948[_0x4bb91c(0x2f8)](_0x412b98);)_0x13d3ed+=0x1,_0x412b98=_0x5a9e8c(_0x13d3ed);return _0x412b98;}let ra=class extends _0x14271e{constructor(_0x5a721a=gr,_0xc5bd45,_0x574f1c){const _0x509b9e=_0xbfff20;super(),this[_0x509b9e(0x469)]=_0x5a721a,this['_injector']=_0xc5bd45,this[_0x509b9e(0x403)]=_0x574f1c;let {..._0x30fd98}=_0x2004cb({},gr,this[_0x509b9e(0x469)]);this[_0x509b9e(0x403)][_0x509b9e(0x4a4)](hr,_0x30fd98);}[_0xbfff20(0x37a)](){const _0x2c81f9=_0xbfff20;this[_0x2c81f9(0x326)][_0x2c81f9(0x1d7)]([Ar]),this[_0x2c81f9(0x326)]['add']([Kr]),this[_0x2c81f9(0x326)][_0x2c81f9(0x1d7)]([ea]);}[_0xbfff20(0x184)](){const _0x1ba84d=_0xbfff20;_0x5b9752(this[_0x1ba84d(0x326)],[[Ar],[Kr],[ea]]);}};Fr(ra,_0xbfff20(0x427),_0x37ea54[_0xbfff20(0x2e2)]),Fr(ra,_0xbfff20(0x1d4),_0xbfff20(0x255)),Fr(ra,_0xbfff20(0x267),pr),Fr(ra,_0xbfff20(0x1b7),mr),ra=kr([_0x1957bf(_0x36c2e0,_0xbeeff3,_0x31752d,_0x48f981,_0x3371b7,_0xc91b76),Y(0x1,_0x38b292(_0x38337e)),Y(0x2,_0x6de229)],ra);function ia(_0x209c04,_0x49342f,_0xe76e85,_0x1d8b1f){const _0x5b6994=_0xbfff20;let _0x2550e5={..._0x209c04};if(_0x49342f[_0x5b6994(0x3d0)]('w')){let _0x55787c=_0x209c04[_0x5b6994(0x204)]+_0x209c04[_0x5b6994(0x41d)];_0x2550e5['column']=Math[_0x5b6994(0x43f)](0x0,Math[_0x5b6994(0x441)](_0x55787c-0x1,_0x209c04[_0x5b6994(0x204)]+_0xe76e85)),_0x2550e5[_0x5b6994(0x41d)]=_0x55787c-_0x2550e5[_0x5b6994(0x204)];}else _0x49342f[_0x5b6994(0x3d0)]('e')&&(_0x2550e5[_0x5b6994(0x41d)]=Math[_0x5b6994(0x43f)](0x1,Math[_0x5b6994(0x441)](_0x5c9bf8-_0x209c04[_0x5b6994(0x204)],_0x209c04[_0x5b6994(0x41d)]+_0xe76e85)));if(_0x49342f[_0x5b6994(0x3d0)]('n')){let _0x1f7210=_0x209c04[_0x5b6994(0x430)]+_0x209c04[_0x5b6994(0x1b2)];_0x2550e5['row']=Math[_0x5b6994(0x43f)](0x0,Math[_0x5b6994(0x441)](_0x1f7210-0x1,_0x209c04[_0x5b6994(0x430)]+_0x1d8b1f)),_0x2550e5[_0x5b6994(0x1b2)]=_0x1f7210-_0x2550e5[_0x5b6994(0x430)];}else _0x49342f[_0x5b6994(0x3d0)]('s')&&(_0x2550e5['rowSpan']=Math['max'](0x1,_0x209c04[_0x5b6994(0x1b2)]+_0x1d8b1f));return _0x2550e5;}function aa(_0x38e38a){const _0x1bc90c=_0xbfff20;let _0x6c8687=Math['max'](0x1,Math[_0x1bc90c(0x441)](_0x5c9bf8,Math[_0x1bc90c(0x4a9)](_0x38e38a[_0x1bc90c(0x41d)])));return{'column':Math[_0x1bc90c(0x43f)](0x0,Math[_0x1bc90c(0x441)](_0x5c9bf8-_0x6c8687,Math['round'](_0x38e38a['column']))),'row':Math['max'](0x0,Math[_0x1bc90c(0x4a9)](_0x38e38a['row'])),'columnSpan':_0x6c8687,'rowSpan':Math[_0x1bc90c(0x43f)](0x1,Math[_0x1bc90c(0x4a9)](_0x38e38a[_0x1bc90c(0x1b2)]))};}function oa(_0x4edf2a,_0x212e9e,_0x324666){const _0x3741d8=_0xbfff20;let _0x22bd85=new Map(_0x4edf2a),_0xa40428=aa(_0x324666);_0x22bd85[_0x3741d8(0x499)](_0x212e9e,_0xa40428);let _0x12d9a=[[_0x212e9e,_0xa40428]];for(let [_0xdb7a6f,_0x26f54a]of _0x22bd85){if(_0xdb7a6f===_0x212e9e)continue;let _0x55df51=aa(_0x26f54a);for(;_0x12d9a[_0x3741d8(0x415)](([,_0x3420de])=>ca(_0x55df51,_0x3420de));)_0x55df51={..._0x55df51,'row':_0x55df51['row']+0x1};for(;_0x55df51[_0x3741d8(0x430)]>0x0;){let _0x279c70={..._0x55df51,'row':_0x55df51['row']-0x1};if(_0x12d9a[_0x3741d8(0x415)](([,_0x3aa21a])=>ca(_0x279c70,_0x3aa21a)))break;_0x55df51=_0x279c70;}_0x12d9a[_0x3741d8(0x181)]([_0xdb7a6f,_0x55df51]),_0x22bd85['set'](_0xdb7a6f,_0x55df51);}return _0x22bd85;}function sa(_0x54c4b3,_0x4821a9,_0x10743b,_0x5e6245=0x38,_0x2efd5e=0x16){const _0x2a2a2d=_0xbfff20;return _0x54c4b3<_0x4821a9+_0x5e6245?-Math[_0x2a2a2d(0x1e0)](_0x2efd5e*(0x1-Math['max'](0x0,_0x54c4b3-_0x4821a9)/_0x5e6245)):_0x54c4b3>_0x10743b-_0x5e6245?Math[_0x2a2a2d(0x1e0)](_0x2efd5e*(0x1-Math[_0x2a2a2d(0x43f)](0x0,_0x10743b-_0x54c4b3)/_0x5e6245)):0x0;}function ca(_0x20b5e2,_0x252947){const _0x3bab8c=_0xbfff20;return _0x20b5e2['column']<_0x252947[_0x3bab8c(0x204)]+_0x252947[_0x3bab8c(0x41d)]&&_0x20b5e2[_0x3bab8c(0x204)]+_0x20b5e2[_0x3bab8c(0x41d)]>_0x252947[_0x3bab8c(0x204)]&&_0x20b5e2[_0x3bab8c(0x430)]<_0x252947['row']+_0x252947[_0x3bab8c(0x1b2)]&&_0x20b5e2[_0x3bab8c(0x430)]+_0x20b5e2['rowSpan']>_0x252947[_0x3bab8c(0x430)];}const la=[{'direction':'nw','className':_0xbfff20(0x193)},{'direction':'n','className':'-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize'},{'direction':'ne','className':_0xbfff20(0x26d)},{'direction':'e','className':_0xbfff20(0x49b)},{'direction':'se','className':_0xbfff20(0x46e)},{'direction':'s','className':'-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize'},{'direction':'sw','className':_0xbfff20(0x3a8)},{'direction':'w','className':_0xbfff20(0x35a)}];function ua({dashboard:_0x146d4e,dragLabel:_0x1d1287,editable:_0x1fa28f=!0x0,onLayoutsCommit:_0x2b7e04,onSelectWidget:_0x2febe6,renderWidget:_0x3721db,renderWidgetActions:_0x3f9efc,resizeLabel:_0x5dc9d4,selectedWidgetId:_0x23974d,widgetLabel:_0x46e96d}){const _0x383644=_0xbfff20;let _0x1aa9bc=_0x2861da(null),_0x1cf843=_0x2861da(null),[_0x3d1fe7,_0x46455d]=_0x34e679(!0x1),_0xde84dd=_0x548c0f(()=>new Map(_0x146d4e[_0x383644(0x3b1)][_0x383644(0x31f)](_0xb8bfae=>{const _0x4307fa=_0x383644;let _0x16cf78=_0x146d4e[_0x4307fa(0x280)][_0xb8bfae];return _0x16cf78?[[_0xb8bfae,_0x16cf78[_0x4307fa(0x2fc)]]]:[];})),[_0x146d4e]),[_0x20db1d,_0x470777]=_0x34e679(_0xde84dd);_0x436796(()=>{const _0x8c0fd8=_0x383644;_0x1cf843[_0x8c0fd8(0x49d)]||_0x470777(_0xde84dd);},[_0xde84dd]),_0x436796(()=>{const _0x3a2047=_0x383644;if(!_0x3d1fe7)return;let _0x1c92a7=_0x1ed6e3=>{const _0x16fb2b=_0x5dbe;let _0x2e2f64=_0x1aa9bc[_0x16fb2b(0x49d)];if(!_0x2e2f64)return null;let _0x351ce4=_0x2e2f64[_0x16fb2b(0x260)](),_0x1e8c94=Math[_0x16fb2b(0x43f)](0x1,(_0x351ce4[_0x16fb2b(0x4ac)]-0x8*(_0x5c9bf8-0x1))/_0x5c9bf8),_0x196d15=Math[_0x16fb2b(0x4a9)]((_0x2e2f64[_0x16fb2b(0x389)]-_0x1ed6e3[_0x16fb2b(0x234)])/(_0x3e9cab+0x8)),_0xbbe4ff=Math[_0x16fb2b(0x4a9)]((_0x1ed6e3['pointerX']-_0x1ed6e3[_0x16fb2b(0x283)])/(_0x1e8c94+0x8)),_0x1a7e60=Math[_0x16fb2b(0x4a9)]((_0x1ed6e3['pointerY']-_0x1ed6e3[_0x16fb2b(0x2fe)])/(_0x3e9cab+0x8))+_0x196d15,_0x1c3c1f=_0x1ed6e3[_0x16fb2b(0x3fd)]===_0x16fb2b(0x268)?{..._0x1ed6e3[_0x16fb2b(0x30d)],'column':_0x1ed6e3['initial'][_0x16fb2b(0x204)]+_0xbbe4ff,'row':_0x1ed6e3[_0x16fb2b(0x30d)][_0x16fb2b(0x430)]+_0x1a7e60}:ia(_0x1ed6e3[_0x16fb2b(0x30d)],_0x1ed6e3['resizeDirection']??'se',_0xbbe4ff,_0x1a7e60),_0x47c841=oa(_0x1ed6e3['initialLayouts'],_0x1ed6e3['id'],_0x1c3c1f);return _0x470777(_0x47c841),_0x47c841;},_0x518e04=_0x22c649=>{const _0x1ff540=_0x5dbe;let _0x467bab=_0x1cf843[_0x1ff540(0x49d)];if(!_0x467bab)return;let _0x6916ab={..._0x467bab,'pointerX':_0x22c649[_0x1ff540(0x1f0)],'pointerY':_0x22c649[_0x1ff540(0x4ae)]};_0x1cf843[_0x1ff540(0x49d)]=_0x6916ab;},_0x1ff33a=()=>{let _0x257699=_0x1cf843['current'],_0x3baf9e=_0x257699?_0x1c92a7(_0x257699):null;_0x1cf843['current']=null,_0x46455d(!0x1),_0x3baf9e&&_0x2b7e04(_0x3baf9e);},_0x5517b1=0x0,_0x4ca90d=()=>{const _0x30e415=_0x5dbe;let _0x20b903=_0x1aa9bc['current'],_0x4711f8=_0x1cf843['current'];if(_0x20b903&&_0x4711f8){let _0x4a5c10=_0x20b903['getBoundingClientRect'](),_0xc35a4e=sa(_0x4711f8['pointerY'],_0x4a5c10[_0x30e415(0x3e6)],_0x4a5c10[_0x30e415(0x2a2)]);_0xc35a4e!==0x0&&(_0x20b903[_0x30e415(0x389)]+=_0xc35a4e),_0x1c92a7(_0x4711f8),_0x5517b1=requestAnimationFrame(_0x4ca90d);}};return _0x5517b1=requestAnimationFrame(_0x4ca90d),window[_0x3a2047(0x410)]('pointermove',_0x518e04),window[_0x3a2047(0x410)](_0x3a2047(0x293),_0x1ff33a),()=>{const _0x16ce17=_0x3a2047;cancelAnimationFrame(_0x5517b1),window[_0x16ce17(0x300)](_0x16ce17(0x233),_0x518e04),window['removeEventListener'](_0x16ce17(0x293),_0x1ff33a);};},[_0x3d1fe7,_0x2b7e04]);let _0x2078a1=Math[_0x383644(0x43f)](0x8,...Array[_0x383644(0x2a7)](_0x20db1d['values']())[_0x383644(0x1fd)](_0x3b4179=>_0x3b4179['row']+_0x3b4179[_0x383644(0x1b2)])),_0x1f4ba7=(_0x592e48,_0x37d1e5,_0xa89720,_0x1d7137)=>{const _0x1c76f7=_0x383644;_0x592e48[_0x1c76f7(0x2ea)](),_0x592e48[_0x1c76f7(0x3fb)]();let _0x15a4ba=_0x1aa9bc['current'],_0x45b76d={'id':_0x37d1e5['id'],'mode':_0xa89720,'pointerX':_0x592e48['clientX'],'pointerY':_0x592e48[_0x1c76f7(0x4ae)],'startX':_0x592e48['clientX'],'startY':_0x592e48['clientY'],'startScrollTop':(_0x15a4ba==null?void 0x0:_0x15a4ba['scrollTop'])??0x0,'initial':_0x20db1d[_0x1c76f7(0x197)](_0x37d1e5['id'])??_0x37d1e5[_0x1c76f7(0x2fc)],'initialLayouts':new Map(_0x20db1d),'resizeDirection':_0x1d7137};_0x1cf843[_0x1c76f7(0x49d)]=_0x45b76d,_0x46455d(!0x0);};return _0x1c53e9(_0x383644(0x1e8),{'ref':_0x1aa9bc,'data-dashboard-scroll-container':!0x0,'className':_0x14b647(_0x383644(0x48f),_0x439165),'onClick':_0x1fa28f?_0xb8d4a7=>{const _0x346520=_0x383644;if(!(_0xb8d4a7['target']instanceof Node)||!_0xb8d4a7[_0x346520(0x40a)][_0x346520(0x3e5)](_0xb8d4a7[_0x346520(0x1cb)]))return;let _0xfbbbf2=_0xb8d4a7[_0x346520(0x1cb)]instanceof Element?_0xb8d4a7[_0x346520(0x1cb)]:_0xb8d4a7[_0x346520(0x1cb)][_0x346520(0x196)];_0xfbbbf2!=null&&_0xfbbbf2[_0x346520(0x21a)](_0x346520(0x16b))||_0x2febe6==null||_0x2febe6();}:void 0x0,'children':_0x1c53e9(_0x383644(0x1e8),{'data-dashboard-grid':!0x0,'className':_0x383644(0x3cc),'style':{'gap':0x8,'gridAutoRows':_0x3e9cab,'minHeight':_0x2078a1*(_0x3e9cab+0x8)},'children':_0x146d4e[_0x383644(0x3b1)]['map'](_0xca2d3a=>{const _0x5e7b5e=_0x383644;var _0x10b23d;let _0x431510=_0x146d4e[_0x5e7b5e(0x280)][_0xca2d3a],_0x532894=_0x20db1d['get'](_0xca2d3a);return!_0x431510||!_0x532894?null:_0x1108cb(_0x5e7b5e(0x241),{'data-dashboard-widget':_0x431510['id'],'aria-label':_0x431510[_0x5e7b5e(0x236)]??_0x46e96d(_0x431510),'className':_0x14b647('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',_0x431510[_0x5e7b5e(0x427)]===_0x1402ed['Image']||_0x431510[_0x5e7b5e(0x427)]===_0x1402ed[_0x5e7b5e(0x1d9)]?_0x5e7b5e(0x361):_0x5e7b5e(0x33a),_0x1fa28f&&_0x23974d===_0x431510['id']?_0x5e7b5e(0x462):'univer-border-gray-200\x20dark:!univer-border-gray-700'),'style':{'gridColumn':_0x532894[_0x5e7b5e(0x204)]+0x1+_0x5e7b5e(0x1fe)+_0x532894[_0x5e7b5e(0x41d)],'gridRow':_0x532894['row']+0x1+_0x5e7b5e(0x1fe)+_0x532894[_0x5e7b5e(0x1b2)]},'tabIndex':_0x1fa28f?0x0:void 0x0,'onClick':_0x1fa28f?()=>_0x2febe6==null?void 0x0:_0x2febe6(_0x431510['id']):void 0x0,'onFocus':_0x1fa28f?()=>_0x2febe6==null?void 0x0:_0x2febe6(_0x431510['id']):void 0x0,'children':[_0x1fa28f&&_0x1c53e9(_0x5e7b5e(0x2d8),{'type':_0x5e7b5e(0x2d8),'aria-label':_0x1d1287,'data-dashboard-drag-handle':_0x431510['id'],'className':_0x14b647(_0x5e7b5e(0x44b),_0x3d1fe7&&((_0x10b23d=_0x1cf843[_0x5e7b5e(0x49d)])==null?void 0x0:_0x10b23d['id'])===_0x431510['id']&&_0x1cf843[_0x5e7b5e(0x49d)][_0x5e7b5e(0x3fd)]==='move'?'univer-cursor-grabbing':_0x5e7b5e(0x36b)),'onPointerDown':_0x4c04b5=>_0x1f4ba7(_0x4c04b5,_0x431510,_0x5e7b5e(0x268)),'children':_0x1c53e9(_0x4f0f93,{'className':'univer-size-5\x20univer-rotate-90','aria-hidden':_0x5e7b5e(0x354)})}),_0x1fa28f&&_0x1c53e9(_0x5e7b5e(0x1e8),{'className':_0x5e7b5e(0x358),'children':_0x3f9efc==null?void 0x0:_0x3f9efc(_0x431510)}),_0x1c53e9(_0x5e7b5e(0x1e8),{'className':_0x5e7b5e(0x46f),'children':_0x3721db(_0x431510)}),_0x1fa28f&&la[_0x5e7b5e(0x1fd)](({className:_0x5d5ba5,direction:_0x9bfe47})=>{const _0x3e8113=_0x5e7b5e;let _0x311d9a=_0x9bfe47[_0x3e8113(0x2df)]===0x2;return _0x1c53e9(_0x3e8113(0x2d8),{'type':_0x3e8113(0x2d8),'aria-label':_0x5dc9d4,'data-dashboard-resize-handle':_0x9bfe47,'data-dashboard-resize-control':_0x311d9a?_0x9bfe47:void 0x0,'data-dashboard-resize-edge':_0x311d9a?void 0x0:_0x9bfe47,'className':_0x14b647(_0x3e8113(0x485),_0x311d9a?_0x3e8113(0x3d6):'univer-border-0\x20univer-bg-transparent',_0x5d5ba5,_0x23974d===_0x431510['id']&&'univer-pointer-events-auto\x20univer-opacity-100'),'onPointerDown':_0x2f65dc=>_0x1f4ba7(_0x2f65dc,_0x431510,_0x3e8113(0x306),_0x9bfe47)},_0x9bfe47);})]},_0x431510['id']);})})});}var da;const Q={'axis':{..._0x3c4ba3,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x2c5e3a,'heatmap':_0x4f57a1,'indicatorLine':_0x57cad4,'legend':_0x43f27b,'lineAndArea':_0x1a8b1f,'pareto':_0x1aa1b1,'pie':_0x258d6f,'radar':_0x2ec41b,'relation':{..._0x4805f6,'useValueAsSymbolSize':!0x0},'series':{..._0x13b217,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((da=_0x40bf0b[_0xbfff20(0x254)])==null?void 0x0:da[_0xbfff20(0x492)])??!0x1}},'style':_0x13d7eb,'titles':_0x4abb4a,'trendline':_0x72a22e,'waterfall':{..._0x2cc178,'useSubtotal':!0x0},'waterfallStyle':_0x436808,'wordCloud':_0xfd1cc7},fa=[_0x217c21['Line'],_0x217c21['Radar'],_0x217c21['WordCloud'],_0x217c21[_0xbfff20(0x170)],_0x217c21[_0xbfff20(0x25a)],_0x217c21[_0xbfff20(0x1f4)],_0x217c21[_0xbfff20(0x23a)],_0x217c21['Heatmap'],_0x217c21[_0xbfff20(0x4a7)],_0x217c21[_0xbfff20(0x360)],_0x217c21[_0xbfff20(0x2f3)],_0x217c21[_0xbfff20(0x3a2)],_0x217c21['Sunburst'],_0x217c21[_0xbfff20(0x38f)],_0x217c21['Chord']];function pa(_0xa2273e){const _0x16910b=_0xbfff20;let {config:_0x537b8c,onChange:_0x447127,runtime:_0x127e72,tableName:_0x1a256c}=_0xa2273e,_0x12dc89=_0x29f087(Kr),_0x2a8993=_0x29f087(_0x2989fb),[_0x1a7bc0,_0x3f0e81]=_0x34e679(_0x39d056[_0x16910b(0x491)]),_0x548a5d=_0x548c0f(()=>new _0x439e96(_0x127e72[_0x16910b(0x1ee)],{'commit':_0x10d07a=>{const _0x4e54e4=_0x16910b;var _0x4c1130;let _0x3d04d6=_0x127e72[_0x4e54e4(0x1ee)],_0x355b99=_0x3aa652(_0x10d07a,{'series':(_0x4c1130=_0x3d04d6[_0x4e54e4(0x167)])==null?void 0x0:_0x4c1130['series'],'currentChartType':_0x3d04d6[_0x4e54e4(0x288)],'currentStyle':_0x3d04d6[_0x4e54e4(0x2c8)],'currentContext':_0x3d04d6['context'],'currentDataAggregation':_0x3d04d6[_0x4e54e4(0x48e)]});_0x447127({'chart':ma(_0x537b8c['chart'],_0x355b99)});}}),[_0x537b8c[_0x16910b(0x252)],_0x447127,_0x127e72]),_0x20da2d=_0x548c0f(()=>_0x5b5e1c(_0x1fbca7[_0x16910b(0x1fd)](_0x4d1673=>({..._0x4d1673,'label':_0x2a8993['t'](va(_0x4d1673[_0x16910b(0x364)]))}))),[_0x2a8993]);return _0x1c53e9(_0x413b19,{'chartUIService':_0x12dc89,'hostAdapter':_0x548a5d,'children':_0x1108cb(_0x16910b(0x1e8),{'className':_0x16910b(0x1d6),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x2a8993['t'](_0x16910b(0x1b1)),'className':_0x16910b(0x251),'items':[{'label':_0x2a8993['t'](_0x16910b(0x242)),'panelId':_0x16910b(0x41e),'value':_0x39d056[_0x16910b(0x491)]},{'label':_0x2a8993['t'](_0x16910b(0x1c3)),'panelId':_0x16910b(0x474),'value':_0x39d056[_0x16910b(0x30a)]}],'value':_0x1a7bc0,'onChange':_0x3f0e81}),_0x1a7bc0===_0x39d056[_0x16910b(0x491)]?_0x1c53e9(_0x420eaf,{'id':_0x16910b(0x41e),'label':_0x2a8993['t'](_0x16910b(0x242)),'children':_0x1108cb('div',{'className':_0x16910b(0x3b9),'children':[_0x1c53e9(_0x44e1cd,{'options':_0x20da2d}),_0x1c53e9(_0xd07337,{}),_0x1c53e9(_0x2a621a,{}),_0x1c53e9(ha,{}),_0x1c53e9(_0x14bbde,{}),_0x1108cb(_0x16910b(0x1e8),{'children':[_0x1c53e9(_0x4ed5df,{'title':_0x2a8993['t']('bases-dashboard-ui.pivot.dataSource')}),_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':_0x1a256c})]}),_0x1c53e9(_0x521472,{'orientationControl':_0x1c53e9(_0x6d25a2,{'size':_0x16910b(0x189),'onClick':()=>_0x447127({'chart':{..._0x537b8c[_0x16910b(0x252)],'orient':_0x537b8c['chart'][_0x16910b(0x292)]==='row'?_0x16910b(0x204):'row'}}),'children':_0x2a8993['t'](_0x16910b(0x3a6))})}),_0x1c53e9(_0x27502d,{}),_0x1c53e9(_0x1e15dd,{'defaultValues':Q[_0x16910b(0x1fc)]}),_0x1108cb('div',{'children':[_0x1c53e9(_0x4ed5df,{'title':_0x2a8993['t'](_0x16910b(0x47e))}),_0x1c53e9(_0x219a49,{'value':_0x537b8c['displayMode'],'options':[{'value':_0x16910b(0x36e),'label':_0x2a8993['t'](_0x16910b(0x343))},{'value':'chart','label':_0x2a8993['t'](_0x16910b(0x266))},{'value':_0x16910b(0x405),'label':_0x2a8993['t'](_0x16910b(0x186))}],'onChange':_0x268bd2=>{const _0x9cacda=_0x16910b;(_0x268bd2==='chart-and-table'||_0x268bd2===_0x9cacda(0x252)||_0x268bd2==='table')&&_0x447127({'displayMode':_0x268bd2});}})]})]})}):_0x1c53e9(_0x420eaf,{'id':_0x16910b(0x474),'label':_0x2a8993['t'](_0x16910b(0x1c3)),'children':_0x1c53e9(ga,{})})]})});}function ma(_0x305916,_0x1ba861){const _0x442d42=_0xbfff20;return{..._0x305916,'type':_0x1ba861[_0x442d42(0x288)]??_0x305916[_0x442d42(0x427)],'style':_0x1ba861[_0x442d42(0x2c8)]??_0x305916[_0x442d42(0x2c8)],'context':_0x1ba861[_0x442d42(0x3b5)]??_0x305916['context'],'dataAggregation':_0x1ba861[_0x442d42(0x48e)]??_0x305916[_0x442d42(0x48e)]};}function ha(){const _0x44e44c=_0xbfff20;let _0x4186a6=_0x486f74();return _0x1c53e9(_0x18f4fe,{'visible':fa[_0x44e44c(0x311)](_0x739e4f=>!_0x1094d9['baseOn'](_0x4186a6,_0x739e4f))});}function _0x1cf0(){const _0x117c88=['bases-dashboard-ui.pivot.addToColumn','univer-mb-3\x20univer-text-sm\x20univer-font-medium','layout','auto','startY','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','removeEventListener','bases-dashboard-ui.dashboardInspector.enterValue','scrollWidth','bases-dashboard-ui.dashboard.pivotChart','dom','univer-size-4','resize','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','getFieldCountByArea','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','Style','univer-flex\x20univer-gap-2','univer-mx-auto\x20univer-size-6','initial','default','baseOn','children','every','errorType','univer-mt-2','bases-dashboard-ui.dashboard.undo','MultipleGrandTotal','bases-dashboard-ui.dashboardInspector.alignment','visibilityState','isArray','bases-dashboard-ui.dashboard.tableFilter','bases-dashboard-ui.chart.section.indicatorLine','bases-dashboard-ui.dashboardInspector.percent','Rating','ParetoBarSeries','appearance','flatMap','fontSize','bases-dashboard-ui.chart.section.paretoBar','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','bases-dashboard-ui.pivot.rowSubtotalPosition','result','bases-dashboard-ui.dashboard.search','_injector','bases-dashboard-ui.operators.isNot','formatMap','rowSubtotalPosition','114622ZlDzfz','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','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','tableOrder','fullscreenElement','bases-dashboard-ui.dashboardInspector.textSize','blank','filterFields','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','border-box','pageView','tableId','bases-dashboard-ui.dashboard.rename','bases-dashboard-ui.pivot.selectAll','pageRows','ChartAndAxisTitles','univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.chart.','repeat','backgroundColor','currency','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.pivot.numberFormat','waterfall.negative','bases-dashboard-ui.pivot.chartAndTable','dashboards','backgroundImage','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','kind','bases-dashboard-ui.pivot.layout','bases-dashboard-ui.operators.after','getDashboard','bases-dashboard-ui.chart.chartTypes.area','files','updateValuePosition','values','center','Row','bases-dashboard-ui.chart.common.legend','toPrimitive','stdDevp','true','setSubtotalType','Radar','ascending','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','axis','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','lastRow','rootContainerElement','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','saveImage','GREATER_THAN','Candlestick','univer-bg-transparent\x20dark:!univer-bg-transparent','stdDev','currentColor','labelId','index','bases-dashboard-ui.dashboardInspector.editFormula','LESS_THAN_OR_EQUAL','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','bases-dashboard-ui.pivot.filterField','univer-cursor-grab','baseChartDataAnimation','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','chart-and-table','bases-dashboard-ui.dashboardInspector.compact','RoundRect','chartId','decimalPlaces','getSnapshot','var','delete','bases-dashboard-ui.dashboardInspector.general','operand','direction$','innerWidth','onStarting','setLayout','bases-dashboard-ui.operators.lessThanOrEqual','base-pivot-table-configuration','options','bases-dashboard-ui.chart.common.chartAndAxisTitles','dashboard-chart-setup','bases-dashboard-ui.dashboardInspector.numberFormat','setStyle','tabular','bases-dashboard-ui.dashboardInspector.textColor','bases-dashboard-ui.pivot.layoutTabular','UpdatedAt','Checkbox','addImageSourceCache','scrollTop','removeField','textStyle','acquireChartRuntime','GeneralSeries','pageWrap','Gauge','bases-dashboard-ui.pivot.valuePosition','bases-dashboard-ui.pivot.cancel','product','resolve','baseChartDataAnimationDuration','canView','bases-dashboard-ui.pivot.average','PieStyle','univer-m-3','bases-dashboard-ui.chart.section.sunburst','AFTER','localeKey','301406KvMaxG','addFieldWithSourceId','HorizontalAxis','colCount','YYYY-MM-DD','repeatRowLabels','Treemap','bases-dashboard-ui.chart.section.funnel','getImage','VerticalAxis','bases-dashboard-ui.chart.common.switchRowColumn','bases-dashboard-ui.pivot.addToFilter','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','univer-min-w-0\x20univer-flex-1','univer-truncate','Positive','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','bases-dashboard-ui.pivot.showRowGrandTotal','bases-dashboard-ui.dashboard.new','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','bases-dashboard-ui.dashboardInspector.replaceImage','widgetOrder','bases-dashboard-ui.pivot.calculating','bases-dashboard-ui.chart.section.wordCloud','bases-dashboard-ui.pivot.confirm','context','documentStyle','onFilter','general','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','bases-dashboard-ui.dashboard.text','bases-dashboard-ui.pivot.columns','\x20has\x20no\x20render\x20config.','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','Base\x20dashboard\x20chart\x20','getChartRuntime','LESS_THAN','clientWidth','sum','bases-dashboard-ui.pivot.repeatRowLabels','bases-dashboard-ui.pivot.downThenAcross','tbody','getId','function','PivotChart','bases-dashboard-ui.pivot.pivotConfiguration','name','bases-dashboard-ui.dashboardInspector.dataSource','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','4990AkZDzS','split','includes','indicatorLine','primary','Bubble','bases-dashboard-ui.pivot.max','toLocaleLowerCase','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-w-24','showRowSubtotal','print','base-pivot-options','bases-dashboard-ui.dashboardInspector.originalSize','bases-dashboard-ui.chart.waterfall.subtotal','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','Progress','tables','string','stringify','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','syncLayout','getTableFieldsByDataFieldId','contains','top','univer-grid\x20univer-gap-2\x20univer-p-3','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','univer-text-sm\x20univer-font-medium','compact','univer-size-5\x20univer-text-primary-600','bases-dashboard-ui.dashboardInspector.left','WaterfallSeries','RightVerticalAxis','Axes','bases-dashboard-ui.pivot.grandTotal','bases-dashboard-ui.pivot.name','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','unsubscribe','bases-dashboard-ui.pivot.layoutCompact','Pareto','SolidLine','bases-dashboard-ui.pivot.fields','colView','defaultValue','stopPropagation','select','mode','renderRevision','outline','dataView','dimension','height','_configService','conjunction','table','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','flex-start','bases-dashboard-ui.chart.chartTypes.','legend','currentTarget','pageOverThenDown','symbol','rowView','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','ChartStyle','addEventListener','bases-dashboard-ui.chart.section.chord','defaultPrevented','bases-dashboard-ui.chart.section.gridlinesAndTicks','releaseChartRuntime','some','Escape','bases-dashboard-ui.chart.common.trendline','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','darkMode$','bases-dashboard-ui.operators.contains','bases-dashboard-ui.dashboardInspector.backgroundColor','bases-dashboard-ui.pivot.description','columnSpan','base-pivot-chart-setup','false','stroke','measure','Dom','markNotReady','subUnitId','CreatedAt','border','type','IS_NOT_EMPTY','description','bases-dashboard-ui.chart.section.relation','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','paragraphs','observe','executeCommand','textColor','row','univer-flex\x20univer-justify-end\x20univer-gap-2','snapshot','catch','bases-dashboard-ui.chart.chartTypes.line','bases-dashboard-ui.dashboardInspector.selectOption','univer-flex-1','cornerView','radius','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','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','Date','bases-dashboard-ui.pivot.clearFilter','bases-dashboard-ui.pivot.sum','1.1.0','max','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','min','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','bases-dashboard-ui.dashboard.add','exitFullscreen','updateFieldPosition','cumulativeLineStyle','univer-flex\x20univer-min-h-0\x20univer-flex-1','requestFullscreen','univer-w-full','General','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','univer-w-36','Chord','bases-dashboard-ui.chart.section.paretoLine','setSortInfo','area','bases-dashboard-ui.dashboardInspector.grouped','bases-dashboard-ui.operators.greaterThan','univer-h-full\x20univer-w-full\x20univer-bg-transparent','getUnit','renameField','minmax(0,\x201fr)','createElement','WordCloud','GrandTotal','bases-dashboard-ui.pivot.layoutOutline','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','gray','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','bases-dashboard-ui.mobile.moveUp','body','onMove','isTopTotal','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','displayMode','bases-dashboard-ui.pivot.bottom','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','subItem','fill','bases-dashboard-ui.operators.lessThan','_config','bases-dashboard-ui.dashboardInspector.unchecked','image/*','getOptions','accept','univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','base-pivot-chart-configuration','Image','pipe','_createContext','base-pivot-chart-style','bases-dashboard-ui.pivot.defaultName','bases-dashboard-ui.chart.common.rightVerticalAxis','allowMultiple','hidden','univer-text-sm','bases-dashboard-ui.pivot.min','bases-dashboard-ui.dashboard.formulaShape','redos','createRenderInput','bases-dashboard-ui.pivot.display','getRenderColor','bases-dashboard-ui.pivot.displayName','univer-grid\x20univer-gap-4\x20univer-p-4','checkMounted','bases-dashboard-ui.dashboardInspector.contain','getDirection','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','bases-dashboard-ui.dashboard.addWidget','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','flex-end','repeatColLabels','univer-grid\x20univer-gap-4','bases-dashboard-ui.operators.is','key','dataAggregation','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','data','Data','rightYAxis','section','indexOf','formula','RecordId','bases-dashboard-ui.pivot.ascending','univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','set','bases-dashboard-ui.dashboardInspector.style','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','univer-border-gray-200\x20dark:!univer-border-gray-700','current','toUpperCase','defineProperty','univer-relative\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-50\x20dark:univer-bg-gray-950','documentElement','forEach','subtotal','setConfig','numberFormat','bases-dashboard-ui.pivot.fieldSettings','Boxplot','dashboard-widget-','round','boxSizing','\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','width','bases-dashboard-ui.dashboard.defaultName','clientY','filterInfo','setOptions','bases-dashboard-ui.chart.section.waterfall','isHeader','\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','style$','img','prefix','showColSubtotal','group','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','bases-dashboard-ui.pivot.descending','bases-dashboard-ui.dashboard.deleteWidget','render','onDrop','config','univer-mb-2\x20univer-border-collapse\x20univer-text-sm','onRemove','segmented','[data-dashboard-widget]','univer-size-8\x20univer-p-0\x20univer-text-red-500','onCancel','getValueIndex','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','Scatter','bases-dashboard-ui.dashboard.delete','imageSourceType','text','separator','src','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','focusUnit','bases-dashboard-ui.pivot.filters','permissionPointUpdate$','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','matches','CONTAINS','fieldId','chartRowDirection','change','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','push','bases-dashboard-ui.pivot.pageWrap','onDragEnd','onReady','bases-dashboard-ui.dashboardInspector.dragWidget','bases-dashboard-ui.pivot.tableOnly','Legend','@univerjs-pro/bases-dashboard-ui','small','shapeData','pattern','sourceType','Series','viewOrder','bases-dashboard-ui.pivot.addToValue','fullscreenchange','SingleSelect','BEFORE','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','Text','destructive','parentElement','get','barStyle','lastCol','bases-dashboard-ui.dashboardInspector.close','dispose','IndicatorLine','Group','getFieldPositionInfoById','disconnect','Person','isBottomTotal','info','dataModel','#,##0','bases-dashboard-ui.dashboardInspector.clear','error','shapeText','setCurrentUnitForType','0\x200','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','fontSizeMode','find','bases-dashboard-ui.dashboardInspector.sourceUnavailable','getPresentation','Heatmap','isTotal','bases-dashboard-ui.chart.common.editChart','rowSpan','Waterfall','bases-dashboard-ui.mobile.moveDown','value','pivotViewId','version','label','replace','onDragOver','univer-mt-2\x20univer-w-full','bases-dashboard-ui.dashboardInspector.uploadImage','blur','call','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','items','entries','bases-dashboard-ui.dashboard.redo','bases-dashboard-ui.chart.common.customize','bases-dashboard-ui.pivot.pageDirection','bases-dashboard-ui.pivot.top','178593lNEYEz','base64Cache','bases-dashboard-ui.chart.common.heatmap','IS_NOT','list','target','bases-dashboard-ui.dashboard.resizeWidget','color','getResource','displayName','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','currentTheme$','\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','bases-dashboard-ui.chart.section.gauge','pluginName','_localeService','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','add','univer-text-gray-400','FormulaShape','iterator','bases-dashboard-ui.chart.common.horizontalAxis','4yKYtVM','thead','bases-dashboard-ui.dashboardInspector.repeat','file','ceil','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','bases-dashboard-ui.dashboard.fullScreen','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','alt','Area','univer-flex\x20univer-flex-col\x20univer-gap-4','decorate','div','fields','format','bases-dashboard-ui.pivot.chartConfiguration','pareto','bases-dashboard-ui.pivot.showColumnSubtotal','model','univer-min-h-11\x20univer-px-3\x20univer-text-base','clientX','createDomChartInstance','bases-dashboard-ui.chart.section.pie','heatmap','Relation','view','count','bases-dashboard-ui.pivot.sourceFields','univer-flex','5823JzFDXe','getImageSourceCache','aside','waterfall','map','\x20/\x20span\x20','bases-dashboard-ui.pivot.repeatColumnLabels','innerHeight','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','UUID','bases-dashboard-ui.dashboardInspector.data','column','valueFields','bases-dashboard-ui.mobile.permissions','bases-dashboard-ui.dashboardInspector.center','univer-flex\x20univer-items-center\x20univer-gap-2','rightY','univer-flex\x20univer-h-full\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.dashboardInspector.decimalPlaces','operator','bases-dashboard-ui.dashboardInspector.autoFit','pie','url(','base-dashboard-pivot-chart-','bases-dashboard-ui.dashboardInspector.currencyCode','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','span','dataset','bases-dashboard-ui.pivot.addToRow','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','bases-dashboard-ui.chart.common.series','bases-dashboard-ui.chart.section.radar','register','closest','bases-dashboard-ui.pivot.count','waterfallStyle','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','dataSource','getCurrentTheme','Subtotal','end','fieldOrder','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','ManualFilter','bases-dashboard-ui.pivot.showRowSubtotal','formulaBinding','undos','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','110813BLFSPE','onMoveDown','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','itemTypes','custom','headerRowCount','bases-dashboard-ui.dashboardInspector.cover','2065512yprZuI','univer-flex\x20univer-min-h-full\x20univer-flex-col','conditions','pointermove','startScrollTop','object','title','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.dashboardInspector.custom','bases-dashboard-ui.dashboardInspector.delete','Sankey','Sunburst','page:','bases-dashboard-ui.pivot.dropFieldsHere','sortInfo','lineAndArea','input','article','bases-dashboard-ui.chart.common.setup','bases-dashboard-ui.dashboardInspector.description','base-pivot-chart-','getOwnPropertyDescriptor','bases-dashboard-ui.pivot.values','GridlinesAndTicks','dashboard-chart-style','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','bases-dashboard-ui.pivot.product','bases-dashboard-ui.dashboardInspector.right','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','rowCount','\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','BaseDashboard','test','univer-shrink-0\x20univer-px-3','chart','disposeWithMe','allSeriesStyle','BASE_DASHBOARD_UI_PLUGIN','Currency','bases-dashboard-ui.pivot.searchFields','onMoveUp','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','Funnel','isConnected','executeChartUpdateConfig','bases-dashboard-ui.pivot.stdDev','bases-dashboard-ui.pivot.rows','rowType','getBoundingClientRect','countNums','toJSON','rgb','bases-dashboard-ui.pivot.dataSource','NOT_CONTAINS','bases-dashboard-ui.pivot.chartOnly','packageName','move','bases-dashboard-ui.pivot.acrossThenDown','slice','contain','None','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','supports','bases-dashboard-ui.chart.section.histogram','bases-dashboard-ui.chart.common.chartStyle','then','bases-dashboard-ui.dashboardInspector.reset','columnFields','pivot','valuePosition','bases-dashboard-ui.pivot.removeField','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','trim','bases-dashboard-ui.dashboard.image','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','_chartThemeService','document','borderRadius','univer-flex\x20univer-flex-col','bases-dashboard-ui.dashboardInspector.number','widgets','dashboard-text-','bind','startX','join','headerMap','MultiSelect','TableFilter','chartType','unitId','bases-dashboard-ui.dashboardInspector.backgroundImage','series','shapeType','percent','dashboardOrder','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','fit','bases-dashboard-ui.pivot.variancePopulation','orient','pointerup','univer-w-full\x20univer-justify-start','onDragStart','bases-dashboard-ui.pivot.summarizeBy','left','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','config$','getResult','undoRedoStatus$','univer-bg-gray-50/80\x20dark:!univer-bg-gray-800/70\x20univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-p-3\x20dark:!univer-border-gray-700','header','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','showColGrandTotal','bases-dashboard-ui.dashboard.editWidget','bottom','wordCloud','\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','click','bases-dashboard-ui.operators.isNotEmpty','from','ownerDocument','Filter','Value','getDataFieldByTableId','grandTotal','source','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','base-pivot-chart','AND','refreshChartRuntime','712485KtrQUP','bases-dashboard-ui.chart.section.candlestick','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Column','titles','_renderModelManager','cover','views','_element','waterfall.positive','change$','data$','filter','column:','bases-dashboard-ui.dashboardInspector.editData','alignment','item','varp','dataFieldId','showRowGrandTotal','tableFieldId','replaceChildren','style','Pivot','bases-dashboard-ui.chart.section.treemap','trendline','onSettings','match','grouped','bases-dashboard-ui.chart.common.verticalAxis','bases-dashboard-ui.dashboard.configure','onCommit','system','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','descending','subscribe','clientHeight','scrollHeight','button','keydown','isFinite','\x20/\x20','NumberFormat','getRuntimeContext','bases-dashboard-ui.dashboardInspector.checked','length','right','valueIndex','UNIVER_BASE','bases-dashboard-ui.dashboardInspector.removeImage','Number','overflow','field','minmax(0,\x203fr)\x20minmax(0,\x202fr)','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','bases-dashboard-ui.dashboard.widgetActions','preventDefault','bases-dashboard-ui.dashboardInspector.formula','bases-dashboard-ui.dashboard.section','bases-dashboard-ui.pivot.calculationFailed','constructor','rowFields','56cmIegS','date','bases-dashboard-ui.pivot.variance','Histogram','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','number','px\x20solid\x20','matchMedia','has','ParetoLineSeries'];_0x1cf0=function(){return _0x117c88;};return _0x1cf0();}function $(_0x50976e){const _0x390882=_0xbfff20;return _0x1108cb(_0x476c3e,{'id':_0x50976e['id'],'children':[_0x1c53e9(_0x3ee43e,{'children':_0x50976e[_0x390882(0x1b8)]}),_0x1c53e9(_0x50efea,{'children':_0x50976e[_0x390882(0x310)]})]});}function ga(){const _0x417c4c=_0xbfff20;let _0x5c7d91=_0x29f087(_0x2989fb),_0x3656f0=_0x486f74(),_0x3ee604=_0x3d2664(),[_0xbc1aa,_0x35a174]=_0x34e679(null),_0x4d7b2d=_0x1094d9[_0x417c4c(0x30f)](_0x3656f0,_0x217c21['Pie']),_0x507cf8=_0x3656f0===_0x217c21['Radar'],_0x588be2=_0x3656f0===_0x217c21[_0x417c4c(0x458)],_0x16531c=_0x3656f0===_0x217c21[_0x417c4c(0x25a)],_0x53ac14=_0x1094d9[_0x417c4c(0x30f)](_0x3656f0,_0x217c21[_0x417c4c(0x3d3)]),_0x356fc2=_0x3656f0===_0x217c21[_0x417c4c(0x1f4)],_0x4aa331=_0x3656f0===_0x217c21[_0x417c4c(0x1b3)],_0x4deb9d=_0x3656f0===_0x217c21[_0x417c4c(0x3f6)],_0x49670f=_0x3656f0===_0x217c21[_0x417c4c(0x1af)],_0x372635=_0x4c4c0b(_0x3656f0,_0x235cca['GeneralSeries'])&&!_0x53ac14&&!_0x4deb9d,_0xee96ee=_a(_0x3656f0,_0x5c7d91);return _0x1108cb(_0x169833,{'value':_0xbc1aa,'onChange':_0x35a174,'children':[_0x1c53e9($,{'id':_0x275cd6['ChartStyle'],'label':_0x5c7d91['t'](_0x417c4c(0x270)),'children':_0x1c53e9(_0x392a75,{'defaultValues':Q['style']})}),_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x339)],'label':_0x5c7d91['t'](_0x417c4c(0x37f)),'children':_0x1c53e9(_0x3a97b5,{'commitMode':_0x417c4c(0x1bd),'defaultValues':Q[_0x417c4c(0x2b6)]})}),_0x1c53e9(_0x461f63,{'section':_0x417c4c(0x1f5)}),_0x372635&&_0x1c53e9($,{'id':_0x275cd6['Series'],'label':_0x5c7d91['t'](_0x417c4c(0x217)),'children':_0x1c53e9(_0x3fdf0f,{'defaultValues':Q[_0x417c4c(0x28b)],'NumberFormatField':_0x1fdd9c})}),_0x4aa331&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x3ee)],'label':_0x5c7d91['t'](_0x417c4c(0x15a)),'children':_0x1c53e9(_0x321527,{'defaultValues':Q[_0x417c4c(0x21c)],'getDefaultBucketName':({seriesName:_0xa72cba,target:_0x44e494})=>_0x44e494===_0x17b66a[_0x417c4c(0x220)]?_0x5c7d91['t'](_0x417c4c(0x3dc)):_0xa72cba?_0xa72cba+'-('+_0x5c7d91['t'](_0x417c4c(0x33b)+(_0x44e494===_0x17b66a[_0x417c4c(0x3ab)]?'waterfall.positive':_0x417c4c(0x342)))+')':'','NumberFormatField':_0x1fdd9c})}),_0x4deb9d&&_0x1108cb(_0x52e8d3,{'children':[_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x31d)],'label':_0x5c7d91['t'](_0x417c4c(0x321)),'children':_0x1c53e9(_0xc41187,{'defaultValues':Q[_0x417c4c(0x1ec)],'NumberFormatField':_0x1fdd9c,'showDataPointEditor':!0x0,'target':_0x417c4c(0x198)})}),_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x2f9)],'label':_0x5c7d91['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':_0x1c53e9(_0xc41187,{'defaultValues':Q[_0x417c4c(0x1ec)],'NumberFormatField':_0x1fdd9c,'showDataPointEditor':!0x1,'target':_0x417c4c(0x446)})})]}),_0x4d7b2d&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x397)],'label':_0x5c7d91['t'](_0x417c4c(0x1f2)),'children':_0x1c53e9(_0x411c97,{'defaultValues':Q[_0x417c4c(0x20e)],'NumberFormatField':_0x1fdd9c})}),_0x588be2&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x458)],'label':_0x5c7d91['t'](_0x417c4c(0x3b3)),'children':_0x1c53e9(_0x34e06c,{'defaultValues':Q[_0x417c4c(0x2a3)]})}),_0x507cf8&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x356)],'label':_0x5c7d91['t'](_0x417c4c(0x218)),'children':_0x1c53e9(_0x3cdb06,{'defaultValues':Q['radar']})}),_0x16531c&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x25a)],'label':_0x5c7d91['t'](_0x417c4c(0x3a3)),'children':_0x1c53e9(_0x5c3a2a,{'defaultValues':Q['funnel'],'gapControl':_0x417c4c(0x3fc)})}),_0x49670f&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x1af)],'label':_0x5c7d91['t'](_0x417c4c(0x1c8)),'children':_0x1c53e9(_0x1a9d64,{'defaultValues':Q['heatmap']})}),_0x356fc2&&_0x1c53e9($,{'id':_0x275cd6['Relation'],'label':_0x5c7d91['t'](_0x417c4c(0x42a)),'children':_0x1c53e9(_0x43b09c,{'defaultValues':Q['relation']})}),_0x2324f4(_0x3656f0)&&_0x1c53e9($,{'id':_0x275cd6['LineAndArea'],'label':_0x5c7d91['t'](_0x1094d9[_0x417c4c(0x30f)](_0x3656f0,_0x217c21[_0x417c4c(0x1e5)])?_0x417c4c(0x34b):_0x417c4c(0x434)),'children':_0x1c53e9(_0x67621e,{'defaultValues':Q[_0x417c4c(0x23f)],'lineStyleControl':_0x417c4c(0x16a)})}),_0x4c4c0b(_0x3656f0,_0x235cca['Legend'])&&_0x1c53e9($,{'id':_0x275cd6['Legend'],'label':_0x5c7d91['t'](_0x417c4c(0x351)),'children':_0x1c53e9(_0x40abfd,{'defaultValues':Q[_0x417c4c(0x409)]})}),_0x4c4c0b(_0x3656f0,_0x235cca[_0x417c4c(0x3f0)])&&_0x1108cb(_0x52e8d3,{'children':[_0x1c53e9($,{'id':_0x275cd6['HorizontalAxis'],'label':_0x5c7d91['t'](_0x417c4c(0x1db)),'children':_0x1c53e9(_0x54bdb3,{'axis':'x','defaultValues':Q['axis'],'NumberFormatField':_0x1fdd9c})}),_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x3a5)],'label':_0x5c7d91['t'](_0x417c4c(0x2cf)),'children':_0x1c53e9(_0x54bdb3,{'axis':'y','defaultValues':Q[_0x417c4c(0x359)],'NumberFormatField':_0x1fdd9c})}),_0x1c53e9(_0x461f63,{'section':'depthAxis'}),_0x3ee604&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x3ef)],'label':_0x5c7d91['t'](_0x417c4c(0x476)),'children':_0x1c53e9(_0x54bdb3,{'axis':_0x417c4c(0x209),'defaultValues':Q[_0x417c4c(0x359)],'NumberFormatField':_0x1fdd9c})}),_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x247)],'label':_0x5c7d91['t'](_0x417c4c(0x413)),'children':_0x1c53e9(_0xd55416,{'defaultValues':Q[_0x417c4c(0x359)]})})]}),_0x4c4c0b(_0x3656f0,_0x235cca[_0x417c4c(0x19c)])&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x19c)],'label':_0x5c7d91['t'](_0x417c4c(0x31a)),'children':_0x1c53e9(_0x4e8f14,{'defaultValues':Q[_0x417c4c(0x3d1)]})}),_0x23f1e4(_0x3656f0)&&_0x1c53e9($,{'id':_0x275cd6['Trendline'],'label':_0x5c7d91['t']('bases-dashboard-ui.chart.common.trendline'),'children':_0x1c53e9(_0x2d84a4,{'defaultValues':Q[_0x417c4c(0x2cb)]})}),_0xee96ee&&_0x1c53e9($,{'id':_0xee96ee['id'],'label':_0xee96ee['label'],'children':_0x1c53e9(_0x359635,{})})]});}function _a(_0x3876be,_0x429d87){const _0x257c0e=_0xbfff20;let _0x5b823f={[_0x217c21['Candlestick']]:{'id':_0x275cd6[_0x257c0e(0x360)],'localeKey':_0x257c0e(0x2b3)},[_0x217c21['Histogram']]:{'id':_0x275cd6['Histogram'],'localeKey':_0x257c0e(0x26f)},[_0x217c21[_0x257c0e(0x3a2)]]:{'id':_0x275cd6['Treemap'],'localeKey':_0x257c0e(0x2ca)},[_0x217c21[_0x257c0e(0x23b)]]:{'id':_0x275cd6['Sunburst'],'localeKey':_0x257c0e(0x399)},[_0x217c21[_0x257c0e(0x38f)]]:{'id':_0x275cd6[_0x257c0e(0x38f)],'localeKey':_0x257c0e(0x1d3)},[_0x217c21[_0x257c0e(0x44d)]]:{'id':_0x275cd6[_0x257c0e(0x44d)],'localeKey':_0x257c0e(0x411)}}[_0x3876be];return _0x5b823f?{'id':_0x5b823f['id'],'label':_0x429d87['t'](_0x5b823f[_0x257c0e(0x39b)])}:null;}function va(_0x1a7341){const _0x201994=_0xbfff20;return _0x201994(0x408)+_0x1a7341;}function ya({onChange:_0x226b44,onEditData:_0x33cbca,runtime:_0x3cfa2e,sourceChart:_0x47a1bc,sourceName:_0x15bbc9,widget:_0x207c4e}){const _0x476e93=_0xbfff20;let _0x5ae7db=_0x29f087(Kr),_0x17d9cc=_0x29f087(_0x2989fb),[_0x27bf12,_0x400ff3]=_0x34e679(_0x39d056[_0x476e93(0x491)]),_0x40910b=_0x207c4e['chart']??_0x47a1bc,_0x3ba7e5=_0x548c0f(()=>new _0x439e96(_0x3cfa2e['model'],{'commit':_0x332e82=>{const _0x24df0f=_0x476e93;var _0x3989e8;let _0x5028b0=_0x3cfa2e[_0x24df0f(0x1ee)],_0x149da0=_0x3aa652(_0x332e82,{'series':(_0x3989e8=_0x5028b0['config'])==null?void 0x0:_0x3989e8['series'],'currentChartType':_0x5028b0[_0x24df0f(0x288)],'currentStyle':_0x5028b0[_0x24df0f(0x2c8)],'currentContext':_0x5028b0[_0x24df0f(0x3b5)],'currentDataAggregation':_0x5028b0[_0x24df0f(0x48e)]});_0x226b44({..._0x207c4e,'chart':ma(_0x40910b,_0x149da0)})[_0x24df0f(0x433)](()=>void 0x0);}}),[_0x40910b,_0x226b44,_0x3cfa2e,_0x207c4e]),_0x49a9be=_0x548c0f(()=>_0x5b5e1c(_0x1fbca7['map'](_0xbc3ba8=>({..._0xbc3ba8,'label':_0x17d9cc['t'](ba(_0xbc3ba8['labelId']))}))),[_0x17d9cc]);return _0x1c53e9(_0x413b19,{'chartUIService':_0x5ae7db,'hostAdapter':_0x3ba7e5,'children':_0x1108cb(_0x476e93(0x1e8),{'data-dashboard-chart-inspector':!0x0,'className':_0x476e93(0x22b),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x17d9cc['t'](_0x476e93(0x1b1)),'className':_0x476e93(0x251),'items':[{'label':_0x17d9cc['t'](_0x476e93(0x242)),'panelId':'dashboard-chart-setup','value':_0x39d056[_0x476e93(0x491)]},{'label':_0x17d9cc['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x476e93(0x248),'value':_0x39d056[_0x476e93(0x30a)]}],'value':_0x27bf12,'onChange':_0x400ff3}),_0x27bf12===_0x39d056[_0x476e93(0x491)]?_0x1c53e9(_0x420eaf,{'id':_0x476e93(0x380),'label':_0x17d9cc['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x1108cb(_0x476e93(0x1e8),{'className':_0x476e93(0x3b9),'children':[_0x1c53e9(_0x44e1cd,{'options':_0x49a9be}),_0x1c53e9(_0xd07337,{}),_0x1c53e9(_0x2a621a,{}),_0x1c53e9(ha,{}),_0x1c53e9(_0x14bbde,{}),_0x1108cb('div',{'children':[_0x1c53e9(_0x4ed5df,{'title':_0x17d9cc['t'](_0x476e93(0x3cb))}),_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':_0x15bbc9}),_0x1c53e9(_0x6d25a2,{'className':_0x476e93(0x1bb),'onClick':_0x33cbca,'children':_0x17d9cc['t'](_0x476e93(0x2c0))})]})]})}):_0x1c53e9(_0x420eaf,{'id':_0x476e93(0x248),'label':_0x17d9cc['t'](_0x476e93(0x1c3)),'children':_0x1c53e9(ga,{})})]})});}function ba(_0x126f91){const _0x38ead3=_0xbfff20;return _0x38ead3(0x408)+_0x126f91;}const xa=['general',_0xbfff20(0x2f5),_0xbfff20(0x28d),_0xbfff20(0x33e),_0xbfff20(0x2ce),_0xbfff20(0x3eb)];function Sa({base:_0x399bce,onChange:_0x436ad8,onSelectBackgroundImage:_0x5979c2,widget:_0x2a7c09}){const _0x166891=_0xbfff20;var _0x52136b;let _0x114dd9=_0x29f087(_0x2989fb),_0x5f1cb8=_0x29f087(_0x3fdc71),_0x2c53cf=_0x39908a(()=>_0x5f1cb8[_0x166891(0x1d1)],_0x5f1cb8[_0x166891(0x21f)](),!0x1,[_0x5f1cb8]),_0x42ea2d=_0x39908a(()=>_0x5f1cb8[_0x166891(0x419)],_0x5f1cb8['darkMode'],!0x1,[_0x5f1cb8]),[_0xb0ef65,_0x57056]=_0x34e679(_0x166891(0x490)),[_0x37d710,_0x2f80fa]=_0x34e679(!0x1),_0x3ed792=Sr(_0x2a7c09),_0xe9e46d=_0x399bce['getSnapshot']()[_0x166891(0x3df)][_0x2a7c09['tableId']],_0x3dc15d=_0xe9e46d==null?void 0x0:_0xe9e46d[_0x166891(0x18e)][_0x166891(0x1ac)](_0x11c016=>_0xe9e46d[_0x166891(0x2b9)][_0x11c016]),_0x58cbc1=_0x3dc15d?_0xe9e46d==null?void 0x0:_0xe9e46d[_0x166891(0x2b9)][_0x3dc15d]:void 0x0,_0x1a0cd4=_0xe9e46d&&_0x58cbc1?_0xacf6bd(_0x399bce[_0x166891(0x373)](),_0xe9e46d,_0x58cbc1)[_0x166891(0x1fd)](_0xf13f6a=>({..._0xf13f6a,'current':!0x1})):[],_0x3c8b07=((_0x52136b=_0x2a7c09['shapeData'][_0x166891(0x226)])==null?void 0x0:_0x52136b[_0x166891(0x495)])??'',_0x39fb46=_0xacb7f5=>_0x436ad8(Cr(_0x2a7c09,_0xacb7f5))[_0x166891(0x433)](()=>void 0x0),_0x1189b0=_0x53b821=>_0x436ad8({..._0x2a7c09,'description':_0x53b821})['catch'](()=>void 0x0);return _0x1108cb(_0x166891(0x1e8),{'data-dashboard-formula-inspector':!0x0,'className':_0x166891(0x22b),'children':[_0x1c53e9(_0x4fe720,{'className':_0x166891(0x398),'items':[{'value':_0x166891(0x490),'label':_0x114dd9['t'](_0x166891(0x203))},{'value':_0x166891(0x2c8),'label':_0x114dd9['t'](_0x166891(0x49a))}],'value':_0xb0ef65,'onChange':_0x57056}),_0x1c53e9('div',{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0xb0ef65===_0x166891(0x490)?_0x1108cb(_0x166891(0x1e8),{'className':_0x166891(0x48b),'children':[_0x1c53e9(Ca,{'label':_0x114dd9['t'](_0x166891(0x243)),'children':_0x1c53e9(_0x1b54d7,{'value':_0x2a7c09[_0x166891(0x429)]??_0x2a7c09['title']??'','onChange':_0x1189b0,'onBlur':_0x1e0d69=>_0x1189b0(_0x1e0d69['target'][_0x166891(0x1b5)])})}),_0x1c53e9(Ca,{'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.dataSource'),'children':_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':(_0xe9e46d==null?void 0x0:_0xe9e46d['name'])??_0x114dd9['t'](_0x166891(0x1ad))})}),_0x1108cb(Ca,{'label':_0x114dd9['t'](_0x166891(0x2eb)),'children':[_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':_0x200012(_0x3c8b07,_0x1a0cd4)}),_0x1c53e9(_0x6d25a2,{'className':'univer-mt-2\x20univer-w-full','onClick':()=>_0x2f80fa(!0x0),'children':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.editFormula')})]})]}):_0x1108cb(_0x166891(0x1e8),{'className':_0x166891(0x48b),'children':[_0x1c53e9(_0x4931cb,{'emptyLabel':_0x114dd9['t'](_0x166891(0x41b)),'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x42ea2d?_0x2c53cf['gray'][0x384]:_0x2c53cf[_0x166891(0x45c)][0x0],'resetLabel':_0x114dd9['t'](_0x166891(0x272)),'value':_0x3ed792[_0x166891(0x33d)]??null,'onChange':_0x2096f8=>_0x39fb46({'backgroundColor':_0x2096f8??void 0x0})}),_0x1108cb(Ca,{'label':_0x114dd9['t'](_0x166891(0x28a)),'children':[_0x1108cb(_0x166891(0x1e8),{'className':'univer-flex\x20univer-gap-2','children':[_0x1108cb(_0x6d25a2,{'className':_0x166891(0x436),'onClick':()=>{const _0x2c7a51=_0x166891;_0x5979c2()[_0x2c7a51(0x271)](_0x286cdc=>{const _0x5ebf99=_0x2c7a51;if(_0x286cdc){var _0xe3c5c1;return _0x39fb46({'backgroundImage':{..._0x286cdc,'fit':((_0xe3c5c1=_0x3ed792[_0x5ebf99(0x345)])==null?void 0x0:_0xe3c5c1[_0x5ebf99(0x290)])??_0x5ebf99(0x2b8)}});}})[_0x2c7a51(0x433)](()=>void 0x0);},'children':[_0x1c53e9(_0x34be53,{}),_0x3ed792[_0x166891(0x345)]?_0x114dd9['t'](_0x166891(0x3b0)):_0x114dd9['t'](_0x166891(0x1bc))]}),_0x3ed792['backgroundImage']&&_0x1c53e9(_0x6d25a2,{'aria-label':_0x114dd9['t'](_0x166891(0x2e3)),'title':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'onClick':()=>_0x39fb46({'backgroundImage':void 0x0}),'children':_0x1c53e9(_0x48daea,{})})]}),_0x3ed792[_0x166891(0x345)]&&_0x1c53e9(_0x4fe720,{'className':_0x166891(0x313),'items':[{'value':'cover','label':_0x114dd9['t'](_0x166891(0x22f))},{'value':_0x166891(0x26b),'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.contain')}],'value':_0x3ed792['backgroundImage'][_0x166891(0x290)],'onChange':_0x3a9a99=>_0x39fb46({'backgroundImage':_0x3ed792[_0x166891(0x345)]?{..._0x3ed792[_0x166891(0x345)],'fit':_0x3a9a99}:void 0x0})})]}),_0x1c53e9(_0x4931cb,{'emptyLabel':_0x114dd9['t'](_0x166891(0x384)),'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x42ea2d?_0x2c53cf[_0x166891(0x45c)][0x32]:_0x2c53cf[_0x166891(0x45c)][0x3e8],'resetLabel':_0x114dd9['t'](_0x166891(0x272)),'value':_0x3ed792[_0x166891(0x42f)]??null,'onChange':_0x4475d8=>_0x39fb46({'textColor':_0x4475d8??void 0x0})}),_0x1c53e9(Ca,{'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x1c53e9(_0x4fe720,{'items':[{'value':_0x166891(0x297),'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':_0x166891(0x34f),'label':_0x114dd9['t'](_0x166891(0x207))},{'value':_0x166891(0x2e0),'label':_0x114dd9['t'](_0x166891(0x24b))}],'value':_0x3ed792[_0x166891(0x2c1)],'onChange':_0x2c0d84=>_0x39fb46({'alignment':_0x2c0d84})})}),_0x1108cb(Ca,{'label':_0x114dd9['t'](_0x166891(0x32f)),'children':[_0x1c53e9(_0x4fe720,{'items':[{'value':'auto','label':_0x114dd9['t'](_0x166891(0x20d))},{'value':_0x166891(0x22d),'label':_0x114dd9['t'](_0x166891(0x238))}],'value':_0x3ed792[_0x166891(0x1ab)],'onChange':_0x46eb64=>_0x39fb46({'fontSizeMode':_0x46eb64})}),_0x3ed792[_0x166891(0x1ab)]===_0x166891(0x22d)&&_0x1c53e9(_0x5a3ae3,{'className':_0x166891(0x313),'min':0xc,'max':0x78,'value':_0x3ed792[_0x166891(0x320)],'onChange':_0x14f517=>_0x39fb46({'fontSize':_0x14f517??0x28,'fontSizeMode':'custom'})})]}),_0x1c53e9(Ca,{'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.numberFormat'),'children':_0x1c53e9(_0x219a49,{'value':_0x3ed792[_0x166891(0x4a5)],'options':[{'value':_0x166891(0x3b8),'label':_0x114dd9['t'](_0x166891(0x376))},{'value':_0x166891(0x2f5),'label':_0x114dd9['t'](_0x166891(0x27f))},{'value':'percent','label':_0x114dd9['t'](_0x166891(0x31b))},{'value':_0x166891(0x33e),'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.currency')},{'value':_0x166891(0x2ce),'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':'compact','label':_0x114dd9['t'](_0x166891(0x36f))}],'onChange':_0x5c8231=>{const _0x23d1fd=_0x166891;let _0x177a35=xa[_0x23d1fd(0x1ac)](_0x3974e4=>_0x3974e4===_0x5c8231);_0x177a35&&_0x39fb46({'numberFormat':_0x177a35});}})}),_0x3ed792[_0x166891(0x4a5)]===_0x166891(0x33e)&&_0x1c53e9(Ca,{'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x1c53e9(_0x1b54d7,{'value':_0x3ed792[_0x166891(0x33e)],'onChange':_0x2be3bf=>_0x39fb46({'currency':_0x2be3bf[_0x166891(0x26a)](0x0,0x3)[_0x166891(0x49e)]()})})}),_0x3ed792[_0x166891(0x4a5)]!=='general'&&_0x1c53e9(Ca,{'label':_0x114dd9['t'](_0x166891(0x20b)),'children':_0x1c53e9(_0x5a3ae3,{'min':0x0,'max':0x8,'value':_0x3ed792['decimalPlaces'],'onChange':_0x53e956=>_0x39fb46({'decimalPlaces':_0x53e956??0x0})})})]})}),_0x37d710&&_0x1c53e9(_0x178b21,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1c53e9(_0x375bf1,{'tables':_0x1a0cd4,'formula':_0x200012(_0x3c8b07,_0x1a0cd4),'onCancel':()=>_0x2f80fa(!0x1),'onSave':_0x345e94=>{const _0x511c86=_0x166891;let _0x4da87e=_0x2a7c09['shapeData']['formulaBinding']??{'formula':''};return _0x436ad8({..._0x2a7c09,'shapeData':{..._0x2a7c09['shapeData'],'formulaBinding':{..._0x4da87e,'formula':_0x359363(_0x345e94,_0x1a0cd4)}}})[_0x511c86(0x271)](()=>_0x2f80fa(!0x1))[_0x511c86(0x433)](()=>void 0x0);}})})]});}function Ca({children:_0x15e5c0,label:_0x1620c7}){const _0x443ff5=_0xbfff20;return _0x1108cb('div',{'role':_0x443ff5(0x161),'aria-label':_0x1620c7,'className':_0x443ff5(0x277),'children':[_0x1c53e9(_0x443ff5(0x213),{'children':_0x1620c7}),_0x15e5c0]});}const wa={[_0x30a5c8['IS']]:_0xbfff20(0x48c),[_0x30a5c8['IS_NOT']]:_0xbfff20(0x327),[_0x30a5c8[_0xbfff20(0x17c)]]:_0xbfff20(0x41a),[_0x30a5c8[_0xbfff20(0x265)]]:'bases-dashboard-ui.operators.notContains',[_0x30a5c8['IS_EMPTY']]:'bases-dashboard-ui.operators.isEmpty',[_0x30a5c8[_0xbfff20(0x428)]]:_0xbfff20(0x2a6),[_0x30a5c8[_0xbfff20(0x35f)]]:_0xbfff20(0x452),[_0x30a5c8['GREATER_THAN_OR_EQUAL']]:'bases-dashboard-ui.operators.greaterThanOrEqual',[_0x30a5c8[_0xbfff20(0x3c0)]]:_0xbfff20(0x468),[_0x30a5c8[_0xbfff20(0x367)]]:_0xbfff20(0x37c),[_0x30a5c8[_0xbfff20(0x192)]]:'bases-dashboard-ui.operators.before',[_0x30a5c8[_0xbfff20(0x39a)]]:_0xbfff20(0x349)};function Ta({disabled:_0x494021,fields:_0x3bfc03,filter:_0x4eec78,onChange:_0x335159}){const _0x42b935=_0xbfff20;let _0x2cc5da=_0x29f087(_0x2989fb),_0x359e04=(_0x4eec78==null?void 0x0:_0x4eec78[_0x42b935(0x232)])??[];return _0x359e04[_0x42b935(0x2df)]?_0x1c53e9(_0x42b935(0x1e8),{'className':_0x42b935(0x162),'children':_0x359e04['map']((_0x31da54,_0x4f56f5)=>{const _0x3ff4ea=_0x42b935;let _0x1a99dd=_0x3bfc03[_0x3ff4ea(0x1ac)](_0x16c797=>_0x16c797['id']===_0x31da54[_0x3ff4ea(0x17d)]);return _0x1108cb(_0x3ff4ea(0x1e8),{'className':_0x3ff4ea(0x29d),'children':[_0x1108cb(_0x3ff4ea(0x1e8),{'className':_0x3ff4ea(0x45b),'children':[_0x1c53e9(_0x3ff4ea(0x213),{'className':_0x3ff4ea(0x24c),'children':(_0x1a99dd==null?void 0x0:_0x1a99dd[_0x3ff4ea(0x3ca)])??_0x31da54[_0x3ff4ea(0x17d)]}),_0x1c53e9('span',{'className':_0x3ff4ea(0x2d3),'children':_0x2cc5da['t'](wa[_0x31da54['operator']])})]}),Na(_0x31da54[_0x3ff4ea(0x20c)])&&_0x1c53e9(Da,{'disabled':_0x494021,'field':_0x1a99dd,'value':_0x31da54[_0x3ff4ea(0x377)],'onChange':_0x4f549f=>_0x335159(Aa(_0x4eec78,_0x4f56f5,{'operand':_0x4f549f}))})]},Ia(_0x359e04,_0x31da54,_0x4f56f5));})}):_0x1108cb('div',{'className':_0x42b935(0x40e),'children':[_0x1c53e9(_0xad9ba4,{'className':_0x42b935(0x30c)}),_0x1c53e9('span',{'className':_0x42b935(0x479),'children':_0x2cc5da['t'](_0x42b935(0x319))})]});}function Ea({fields:_0x369364,filter:_0x30781a,onChange:_0x1e2ef1,onClear:_0x3e9d73}){const _0x3eab89=_0xbfff20;let _0x309b2d=_0x29f087(_0x2989fb),_0x90965d=(_0x30781a==null?void 0x0:_0x30781a[_0x3eab89(0x232)])??[];return _0x1108cb(_0x3eab89(0x1e8),{'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':[_0x90965d[_0x3eab89(0x1fd)]((_0x1360da,_0x4be841)=>{const _0x531bf8=_0x3eab89;let _0x532806=_0x369364[_0x531bf8(0x1ac)](_0x405c7e=>_0x405c7e['id']===_0x1360da['fieldId'])??_0x369364[0x0],_0x52b41e=ja(_0x532806);return _0x1108cb('section',{'className':_0x531bf8(0x32b),'children':[_0x1108cb(_0x531bf8(0x1e8),{'className':_0x531bf8(0x228),'children':[_0x1c53e9(_0x219a49,{'value':_0x1360da[_0x531bf8(0x17d)],'options':_0x369364[_0x531bf8(0x1fd)](_0x26fbd9=>({'value':_0x26fbd9['id'],'label':_0x26fbd9[_0x531bf8(0x3ca)]})),'onChange':_0x57fc10=>{const _0x52e949=_0x531bf8;let _0x1e0851=_0x369364[_0x52e949(0x1ac)](_0x8509c7=>_0x8509c7['id']===_0x57fc10);if(!_0x1e0851)return;let _0x2b3769=ja(_0x1e0851)[0x0];_0x1e2ef1(Aa(_0x30781a,_0x4be841,ka(_0x1e0851,_0x2b3769)));}}),_0x1c53e9(_0x6d25a2,{'type':'button','variant':_0x531bf8(0x173),'aria-label':_0x309b2d['t'](_0x531bf8(0x239)),'className':_0x531bf8(0x16c),'onClick':()=>_0x1e2ef1(Oa(_0x30781a,_0x90965d[_0x531bf8(0x2be)]((_0x8e273,_0x36d10d)=>_0x36d10d!==_0x4be841))),'children':_0x1c53e9(_0x33d94a,{})})]}),_0x1c53e9(_0x219a49,{'value':_0x1360da[_0x531bf8(0x20c)],'options':_0x52b41e[_0x531bf8(0x1fd)](_0x9e521=>({'value':_0x9e521,'label':_0x309b2d['t'](wa[_0x9e521])})),'onChange':_0x3ee0e9=>{let _0x18e5eb=_0x52b41e['find'](_0x31256b=>_0x31256b===_0x3ee0e9);_0x18e5eb&&_0x1e2ef1(Aa(_0x30781a,_0x4be841,{'operator':_0x18e5eb,'operand':Ma(_0x532806)}));}}),Na(_0x1360da['operator'])&&_0x1c53e9(Da,{'field':_0x532806,'value':_0x1360da[_0x531bf8(0x377)],'onChange':_0x4fe29d=>_0x1e2ef1(Aa(_0x30781a,_0x4be841,{'operand':_0x4fe29d}))})]},Ia(_0x90965d,_0x1360da,_0x4be841));}),_0x1108cb(_0x6d25a2,{'type':'button','variant':_0x3eab89(0x173),'className':_0x3eab89(0x43a),'disabled':!_0x369364[_0x3eab89(0x2df)],'onClick':()=>{let _0x35e51c=_0x369364[0x0];if(!_0x35e51c)return;let _0x2ce8ef=ja(_0x35e51c)[0x0];_0x1e2ef1(Oa(_0x30781a,[..._0x90965d,ka(_0x35e51c,_0x2ce8ef)]));},'children':[_0x1c53e9(_0x34be53,{}),_0x309b2d['t']('bases-dashboard-ui.dashboardInspector.newCondition')]}),_0x90965d[_0x3eab89(0x2df)]>0x0&&_0x1c53e9(_0x6d25a2,{'type':'button','variant':_0x3eab89(0x173),'className':_0x3eab89(0x449),'onClick':_0x3e9d73,'children':_0x309b2d['t'](_0x3eab89(0x1a5))})]});}function Da({disabled:_0x199311,field:_0x2efa2e,onChange:_0x9d535e,value:_0x3342d7}){const _0x50cce5=_0xbfff20;let _0xb09779=_0x29f087(_0x2989fb),[_0x2706c6,_0x2c3560]=_0x34e679({'value':_0x3342d7,'text':String(_0x3342d7??'')});Object['is'](_0x2706c6[_0x50cce5(0x1b5)],_0x3342d7)||_0x2c3560({'value':_0x3342d7,'text':String(_0x3342d7??'')});let _0x545b25=_0x2706c6[_0x50cce5(0x173)],_0x28de36=_0x4e3688=>_0x2c3560({'value':_0x3342d7,'text':_0x4e3688}),_0xfbaf16=_0x2efa2e==null?void 0x0:_0x2efa2e[_0x50cce5(0x427)];if(_0xfbaf16===_0x4fcd7c[_0x50cce5(0x387)]){let _0x2abe63=_0x3342d7===!0x0||_0x3342d7===_0x50cce5(0x354);return _0x1108cb(_0x6d25a2,{'type':_0x50cce5(0x2d8),'variant':_0x50cce5(0x30e),'disabled':_0x199311,'className':_0x50cce5(0x294),'onClick':()=>_0x9d535e(!_0x2abe63),'children':[_0x1c53e9(_0x1eb8df,{'checked':_0x2abe63,'disabled':_0x199311,'onChange':()=>void 0x0}),_0x2abe63?_0xb09779['t'](_0x50cce5(0x2de)):_0xb09779['t'](_0x50cce5(0x46a))]});}return La(_0xfbaf16)?_0x199311?_0x1c53e9(_0x6d25a2,{'type':_0x50cce5(0x2d8),'variant':_0x50cce5(0x30e),'className':_0x50cce5(0x449),'disabled':!0x0,'children':_0x1be5ea(_0x3342d7==null||_0x3342d7===''?void 0x0:String(_0x3342d7))[_0x50cce5(0x1ea)](_0x50cce5(0x3a0))}):_0x1c53e9(_0x406bb7,{'className':'univer-w-full','value':_0x1be5ea(_0x3342d7==null||_0x3342d7===''?void 0x0:String(_0x3342d7))['toDate'](),'onValueChange':_0x89d4e0=>_0x9d535e(_0x1be5ea(_0x89d4e0)[_0x50cce5(0x1ea)](_0x50cce5(0x3a0)))}):za(_0x2efa2e)?_0x1c53e9(_0x5cd170,{'className':_0x50cce5(0x449),'disabled':_0x199311,'value':Array[_0x50cce5(0x318)](_0x3342d7)?_0x3342d7['map'](String):[],'options':Pa(_0x2efa2e),'onChange':_0x9d535e}):_0xfbaf16===_0x4fcd7c[_0x50cce5(0x191)]||_0xfbaf16===_0x4fcd7c[_0x50cce5(0x19d)]||_0xfbaf16===_0x4fcd7c[_0x50cce5(0x1a0)]?_0x1c53e9(_0x219a49,{'className':_0x50cce5(0x449),'disabled':_0x199311,'value':String(_0x3342d7??''),'options':[{'value':'','label':_0xb09779['t'](_0x50cce5(0x435))},...Pa(_0x2efa2e)],'onChange':_0x9d535e}):Ra(_0xfbaf16)?_0x1c53e9(_0x1b54d7,{'className':_0x50cce5(0x449),'disabled':_0x199311,'inputMode':'decimal','value':_0x545b25,'aria-invalid':_0x545b25!==''&&!Number[_0x50cce5(0x2da)](Number(_0x545b25)),'onChange':_0x569022=>{const _0x3dfe2d=_0x50cce5;_0x28de36(_0x569022),_0x569022===''?_0x9d535e(''):Number[_0x3dfe2d(0x2da)](Number(_0x569022))&&_0x9d535e(Number(_0x569022));},'onBlur':()=>_0x28de36(String(_0x3342d7??''))}):_0x1c53e9(_0x1b54d7,{'disabled':_0x199311,'value':String(_0x3342d7??''),'placeholder':_0xb09779['t'](_0x50cce5(0x301)),'onChange':_0x9d535e});}function Oa(_0x127f14,_0x4c7e86){const _0x2394b6=_0xbfff20;return{'conjunction':(_0x127f14==null?void 0x0:_0x127f14[_0x2394b6(0x404)])??_0x4854b1[_0x2394b6(0x2b0)],'conditions':_0x4c7e86};}function ka(_0x19618b,_0x2cb2bb){return Na(_0x2cb2bb)?{'fieldId':_0x19618b['id'],'operator':_0x2cb2bb,'operand':Ma(_0x19618b)}:{'fieldId':_0x19618b['id'],'operator':_0x2cb2bb};}function Aa(_0x24b92c,_0x33818b,_0x122c9c){const _0x50a86f=_0xbfff20;return Oa(_0x24b92c,((_0x24b92c==null?void 0x0:_0x24b92c[_0x50a86f(0x232)])??[])[_0x50a86f(0x1fd)]((_0x563ef2,_0x38f8c1)=>_0x38f8c1===_0x33818b?{..._0x563ef2,..._0x122c9c}:_0x563ef2));}function ja(_0x5da5f3){const _0x3961ff=_0xbfff20;let _0x48dba6=[_0x30a5c8['IS_EMPTY'],_0x30a5c8[_0x3961ff(0x428)]];switch(_0x5da5f3==null?void 0x0:_0x5da5f3[_0x3961ff(0x427)]){case _0x4fcd7c['Number']:case _0x4fcd7c[_0x3961ff(0x256)]:case _0x4fcd7c[_0x3961ff(0x3de)]:case _0x4fcd7c[_0x3961ff(0x31c)]:return[_0x30a5c8['IS'],_0x30a5c8[_0x3961ff(0x1c9)],_0x30a5c8[_0x3961ff(0x35f)],_0x30a5c8[_0x3961ff(0x3c0)],..._0x48dba6];case _0x4fcd7c['Date']:case _0x4fcd7c[_0x3961ff(0x425)]:case _0x4fcd7c['UpdatedAt']:return[_0x30a5c8['IS'],_0x30a5c8[_0x3961ff(0x1c9)],_0x30a5c8[_0x3961ff(0x192)],_0x30a5c8[_0x3961ff(0x39a)],..._0x48dba6];case _0x4fcd7c['Checkbox']:return[_0x30a5c8['IS'],_0x30a5c8[_0x3961ff(0x1c9)]];default:return[_0x30a5c8['IS'],_0x30a5c8[_0x3961ff(0x1c9)],_0x30a5c8[_0x3961ff(0x17c)],_0x30a5c8['NOT_CONTAINS'],..._0x48dba6];}}function Ma(_0x7f4582){const _0x5db787=_0xbfff20;return _0x7f4582?_0x7f4582[_0x5db787(0x427)]===_0x4fcd7c[_0x5db787(0x387)]?!0x1:La(_0x7f4582['type'])?_0x1be5ea()[_0x5db787(0x1ea)]('YYYY-MM-DD'):za(_0x7f4582)?[]:'':'';}function Na(_0x460deb){return _0x460deb!==_0x30a5c8['IS_EMPTY']&&_0x460deb!==_0x30a5c8['IS_NOT_EMPTY'];}function Pa(_0x551879){const _0x37f01a=_0xbfff20;var _0x1daa3f;return(Array[_0x37f01a(0x318)](_0x551879==null||(_0x1daa3f=_0x551879['config'])==null?void 0x0:_0x1daa3f[_0x37f01a(0x37e)])?_0x551879[_0x37f01a(0x167)]['options']:[])[_0x37f01a(0x1fd)]((_0x10a639,_0x142eb4)=>{const _0x475a1=_0x37f01a;if(typeof _0x10a639=='string')return{'label':_0x10a639,'value':_0x10a639};if(!Fa(_0x10a639))return{'label':String(_0x142eb4+0x1),'value':String(_0x142eb4+0x1)};let _0x34066d=_0x10a639,_0x509edd=String(_0x34066d[_0x475a1(0x3ca)]??_0x34066d['id']??_0x142eb4+0x1),_0x4bf907=String(_0x34066d['id']??_0x509edd);return{'label':_0x509edd,'value':/^opt-\d+$/[_0x475a1(0x250)](_0x4bf907)?_0x509edd:_0x4bf907};});}function Fa(_0x51d0bc){return typeof _0x51d0bc=='object'&&!!_0x51d0bc;}function Ia(_0xc1d366,_0x1803c0,_0x556e2d){const _0x3ae947=_0xbfff20;let _0x151275=JSON['stringify'](_0x1803c0);return _0x151275+'-'+_0xc1d366[_0x3ae947(0x26a)](0x0,_0x556e2d)['filter'](_0xd51aaa=>JSON['stringify'](_0xd51aaa)===_0x151275)[_0x3ae947(0x2df)];}function La(_0x4e1318){const _0x5b781f=_0xbfff20;return _0x4e1318===_0x4fcd7c[_0x5b781f(0x43b)]||_0x4e1318===_0x4fcd7c[_0x5b781f(0x425)]||_0x4e1318===_0x4fcd7c[_0x5b781f(0x386)];}function Ra(_0x17cd24){const _0x2c7d07=_0xbfff20;return _0x17cd24===_0x4fcd7c[_0x2c7d07(0x2e4)]||_0x17cd24===_0x4fcd7c[_0x2c7d07(0x256)]||_0x17cd24===_0x4fcd7c[_0x2c7d07(0x3de)]||_0x17cd24===_0x4fcd7c[_0x2c7d07(0x31c)];}function za(_0x2b37b0){const _0x41bb26=_0xbfff20;var _0x5c856a;return(_0x2b37b0==null?void 0x0:_0x2b37b0[_0x41bb26(0x427)])===_0x4fcd7c[_0x41bb26(0x286)]||(_0x2b37b0==null?void 0x0:_0x2b37b0[_0x41bb26(0x427)])===_0x4fcd7c[_0x41bb26(0x19d)]||(_0x2b37b0==null?void 0x0:_0x2b37b0[_0x41bb26(0x427)])===_0x4fcd7c[_0x41bb26(0x1a0)]&&((_0x5c856a=_0x2b37b0[_0x41bb26(0x167)])==null?void 0x0:_0x5c856a[_0x41bb26(0x477)])===!0x0;}function Ba({base:_0x2c8e79,chartRuntime:_0x3ffbf1,onChange:_0x236797,onClose:_0xa9b256,onSelectBackgroundImage:_0x3777da,onSelectImage:_0x12ba09,unitId:_0xf700ca,widget:_0x5116d7}){const _0x18a484=_0xbfff20;let _0x22e8f4=_0x29f087(_0x2220df),_0x79eb11=_0x29f087(_0x2989fb),_0x2a4f85=_0x2c8e79[_0x18a484(0x373)](),_0x4ccf34='tableId'in _0x5116d7?_0x2a4f85[_0x18a484(0x3df)][_0x5116d7[_0x18a484(0x335)]]:void 0x0,_0x2f5aed=_0x5116d7[_0x18a484(0x427)]===_0x1402ed[_0x18a484(0x3c8)]?_0x4ccf34==null?void 0x0:_0x4ccf34[_0x18a484(0x2b9)][_0x5116d7[_0x18a484(0x1b6)]]:void 0x0,_0x5a4db0=_0x79eb11['t'](qa(_0x5116d7));return _0x1108cb(_0x18a484(0x1fb),{'data-dashboard-inspector':!0x0,'className':_0x18a484(0x201),'children':[_0x1108cb(_0x18a484(0x29e),{'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':[_0x1c53e9('h3',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0x5a4db0}),_0x1c53e9(_0x6d25a2,{'type':'button','size':_0x18a484(0x189),'variant':'text','aria-label':_0x79eb11['t']('bases-dashboard-ui.dashboardInspector.close'),'onClick':_0xa9b256,'children':_0x1c53e9(_0x33d94a,{})})]}),_0x5116d7[_0x18a484(0x427)]===_0x1402ed[_0x18a484(0x3c8)]&&(Ka(_0x2f5aed)&&_0x3ffbf1?_0x1c53e9(ya,{'runtime':_0x3ffbf1,'sourceChart':_0x2f5aed['config']['chart'],'sourceName':((_0x4ccf34==null?void 0x0:_0x4ccf34[_0x18a484(0x3ca)])??'')+_0x18a484(0x2db)+_0x2f5aed[_0x18a484(0x3ca)],'widget':_0x5116d7,'onChange':_0x236797,'onEditData':()=>{const _0x225885=_0x18a484;_0x22e8f4[_0x225885(0x42e)](_0x24a280['id'],{'unitId':_0xf700ca,'tableId':_0x5116d7[_0x225885(0x335)],'viewId':_0x5116d7[_0x225885(0x1b6)]})['catch'](()=>void 0x0);}}):_0x1c53e9(Wa,{'message':Ka(_0x2f5aed)?_0x79eb11['t']('bases-dashboard-ui.dashboardInspector.loading'):_0x79eb11['t'](_0x18a484(0x1ad))})),_0x5116d7[_0x18a484(0x427)]===_0x1402ed[_0x18a484(0x1d9)]&&_0x1c53e9(Sa,{'base':_0x2c8e79,'widget':_0x5116d7,'onChange':_0x236797,'onSelectBackgroundImage':_0x3777da}),_0x5116d7[_0x18a484(0x427)]===_0x1402ed[_0x18a484(0x287)]&&_0x1c53e9(Ha,{'base':_0x2c8e79,'onChange':_0x236797,'widget':_0x5116d7}),_0x5116d7['type']===_0x1402ed[_0x18a484(0x194)]&&_0x1c53e9(Ua,{'onChange':_0x236797,'widget':_0x5116d7}),_0x5116d7[_0x18a484(0x427)]===_0x1402ed[_0x18a484(0x471)]&&_0x1c53e9(Va,{'onChange':_0x236797,'onSelectImage':_0x12ba09,'widget':_0x5116d7})]});}function Va({onChange:_0x3a3f6c,onSelectImage:_0x1f83b7,widget:_0xbeda69}){const _0x47769c=_0xbfff20;let _0x3b5657=_0x29f087(_0x2989fb);return _0x1108cb(_0x47769c(0x1e8),{'className':_0x47769c(0x481),'children':[_0x1108cb(_0x6d25a2,{'className':_0x47769c(0x449),'onClick':()=>_0x1f83b7()['then'](_0x344d2a=>_0x344d2a&&_0x3a3f6c({..._0xbeda69,'source':_0x344d2a['source'],'sourceType':_0x344d2a[_0x47769c(0x18c)],'alt':_0x344d2a[_0x47769c(0x3ca)]}))[_0x47769c(0x433)](()=>void 0x0),'children':[_0x1c53e9(_0x34be53,{}),_0x3b5657['t']('bases-dashboard-ui.dashboardInspector.replaceImage')]}),_0x1108cb(_0x47769c(0x1b8),{'className':_0x47769c(0x277),'children':[_0x1c53e9(_0x47769c(0x213),{'children':_0x3b5657['t'](_0x47769c(0x28a))}),_0x1c53e9(_0x4fe720,{'items':[{'value':_0x47769c(0x2b8),'label':_0x3b5657['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x47769c(0x33c),'label':_0x3b5657['t']('bases-dashboard-ui.dashboardInspector.repeat')},{'value':'original','label':_0x3b5657['t'](_0x47769c(0x3db))}],'value':_0xbeda69['displayMode']??'cover','onChange':_0x35b872=>_0x3a3f6c({..._0xbeda69,'displayMode':_0x35b872})[_0x47769c(0x433)](()=>void 0x0)})]})]});}function Ha({base:_0x14f0ab,onChange:_0x51de64,widget:_0x4a3630}){const _0x8a5158=_0xbfff20;let _0x1f85db=_0x14f0ab[_0x8a5158(0x373)]()['tables'][_0x4a3630[_0x8a5158(0x335)]],_0x38bec7=_0x1f85db==null?void 0x0:_0x1f85db[_0x8a5158(0x18e)][_0x8a5158(0x1ac)](_0x312f35=>_0x1f85db[_0x8a5158(0x2b9)][_0x312f35]),_0xcf24b0=_0x38bec7?_0x1f85db==null?void 0x0:_0x1f85db[_0x8a5158(0x2b9)][_0x38bec7]:void 0x0,_0x7274df=_0x1f85db&&_0xcf24b0?_0x173f22(_0x1f85db,_0xcf24b0):[];return _0x1c53e9(Ea,{'fields':_0x7274df,'filter':_0x4a3630[_0x8a5158(0x2be)],'onChange':_0x179c81=>_0x51de64({..._0x4a3630,'filter':_0x179c81})[_0x8a5158(0x433)](()=>void 0x0),'onClear':()=>_0x51de64({..._0x4a3630,'filter':null})[_0x8a5158(0x433)](()=>void 0x0)});}function Ua({onChange:_0x4b4ea8,widget:_0x4b56fe}){const _0x3d7360=_0xbfff20;let _0x1fccca=_0x29f087(_0x2989fb),_0x18aa98=_0x29f087(_0x3fdc71),_0x272037=_0x39908a(()=>_0x18aa98[_0x3d7360(0x1d1)],_0x18aa98[_0x3d7360(0x21f)](),!0x1,[_0x18aa98]),_0x22b2f7=Vr(_0x4b56fe),_0x52acb5=_0xa7f0bf=>_0x4b4ea8({..._0x4b56fe,'appearance':{..._0x22b2f7,..._0xa7f0bf}})[_0x3d7360(0x433)](()=>void 0x0);return _0x1108cb(_0x3d7360(0x1e8),{'className':_0x3d7360(0x442),'children':[_0x1c53e9(_0x435e56,{'defaultValue':Hr(_0x4b56fe[_0x3d7360(0x27c)]),'rows':0x8,'onBlur':_0x5776eb=>_0x4b4ea8({..._0x4b56fe,'document':Ur(_0x4b56fe[_0x3d7360(0x27c)],_0x5776eb['target'][_0x3d7360(0x1b5)])})['catch'](()=>void 0x0)}),_0x1c53e9(_0x4931cb,{'emptyLabel':_0x1fccca['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x1fccca['t'](_0x3d7360(0x41b)),'pickerFallbackValue':_0x272037[_0x3d7360(0x45c)][0x0],'resetLabel':_0x1fccca['t'](_0x3d7360(0x272)),'value':_0x22b2f7[_0x3d7360(0x33d)]??null,'onChange':_0x8a36aa=>_0x52acb5({'backgroundColor':_0x8a36aa??void 0x0})}),_0x1c53e9(_0x4931cb,{'emptyLabel':_0x1fccca['t'](_0x3d7360(0x384)),'label':_0x1fccca['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x272037[_0x3d7360(0x45c)][0x3e8],'resetLabel':_0x1fccca['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x22b2f7[_0x3d7360(0x42f)]??null,'onChange':_0x52b395=>_0x52acb5({'textColor':_0x52b395??void 0x0})}),_0x1c53e9(Ga,{'label':_0x1fccca['t'](_0x3d7360(0x316)),'children':_0x1c53e9(_0x4fe720,{'items':[{'value':_0x3d7360(0x297),'label':_0x1fccca['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':'center','label':_0x1fccca['t'](_0x3d7360(0x207))},{'value':_0x3d7360(0x2e0),'label':_0x1fccca['t'](_0x3d7360(0x24b))}],'value':_0x22b2f7['alignment'],'onChange':_0x3349b2=>_0x52acb5({'alignment':_0x3349b2})})}),_0x1108cb(Ga,{'label':_0x1fccca['t'](_0x3d7360(0x32f)),'children':[_0x1c53e9(_0x4fe720,{'items':[{'value':_0x3d7360(0x2fd),'label':_0x1fccca['t'](_0x3d7360(0x20d))},{'value':_0x3d7360(0x22d),'label':_0x1fccca['t'](_0x3d7360(0x238))}],'value':_0x22b2f7[_0x3d7360(0x1ab)],'onChange':_0x2d11c0=>_0x52acb5({'fontSizeMode':_0x2d11c0})}),_0x22b2f7[_0x3d7360(0x1ab)]===_0x3d7360(0x22d)&&_0x1c53e9(_0x5a3ae3,{'className':'univer-mt-2','min':0xa,'max':0x78,'value':_0x22b2f7[_0x3d7360(0x320)],'onChange':_0x5d8c85=>_0x52acb5({'fontSize':_0x5d8c85??0x12,'fontSizeMode':_0x3d7360(0x22d)})})]})]});}function Wa({message:_0xfcf406}){const _0x4ea561=_0xbfff20;return _0x1c53e9(_0x4ea561(0x1e8),{'className':_0x4ea561(0x1bf),'children':_0xfcf406});}function Ga({children:_0x398928,label:_0x3ccd60}){const _0x1fe8f5=_0xbfff20;return _0x1108cb(_0x1fe8f5(0x1e8),{'role':_0x1fe8f5(0x161),'aria-':!0x0,'className':_0x1fe8f5(0x277),'children':[_0x1c53e9('span',{'children':_0x3ccd60}),_0x398928]});}function Ka(_0x2d242d){const _0x34db74=_0xbfff20;return(_0x2d242d==null?void 0x0:_0x2d242d[_0x34db74(0x427)])===_0x54a718[_0x34db74(0x2c9)]&&typeof _0x2d242d[_0x34db74(0x167)]==_0x34db74(0x235)&&_0x2d242d['config']!==null&&_0x34db74(0x274)in _0x2d242d['config']&&_0x34db74(0x252)in _0x2d242d[_0x34db74(0x167)];}function qa(_0x10987b){const _0x83461=_0xbfff20;switch(_0x10987b[_0x83461(0x427)]){case _0x1402ed[_0x83461(0x3c8)]:return'bases-dashboard-ui.dashboard.pivotChart';case _0x1402ed[_0x83461(0x287)]:return _0x83461(0x319);case _0x1402ed['Text']:return _0x83461(0x3ba);case _0x1402ed[_0x83461(0x471)]:return _0x83461(0x279);case _0x1402ed[_0x83461(0x1d9)]:return _0x83461(0x47b);}}function Ja({onDelete:_0xda979c,onEdit:_0x10d5ba}){const _0x4f812b=_0xbfff20;let _0x221cd5=_0x29f087(_0x2989fb),_0x21a214=_0x221cd5['t'](_0x4f812b(0x2a1)),_0x2e5251=_0x221cd5['t'](_0x4f812b(0x164)),_0x2d9884=_0x221cd5['t'](_0x4f812b(0x2e9));return _0x1c53e9(_0x440082,{'items':[{'type':_0x4f812b(0x2c2),'children':_0x1108cb(_0x4f812b(0x213),{'className':_0x4f812b(0x208),'children':[_0x1c53e9(_0xddf888,{'className':_0x4f812b(0x305),'aria-hidden':_0x4f812b(0x354)}),_0x1c53e9(_0x4f812b(0x213),{'children':_0x21a214})]}),'onSelect':_0x10d5ba},{'type':_0x4f812b(0x174)},{'type':'item','variant':_0x4f812b(0x195),'children':_0x1108cb(_0x4f812b(0x213),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1c53e9(_0x48daea,{'className':_0x4f812b(0x305),'aria-hidden':_0x4f812b(0x354)}),_0x1c53e9('span',{'children':_0x2e5251})]}),'onSelect':_0xda979c}],'children':_0x1c53e9(_0x6d25a2,{'type':_0x4f812b(0x2d8),'size':_0x4f812b(0x189),'variant':_0x4f812b(0x173),'title':_0x2d9884,'aria-label':_0x2d9884,'className':_0x4f812b(0x2ff),'children':_0x1c53e9(_0x122b7c,{'className':_0x4f812b(0x305),'aria-hidden':_0x4f812b(0x354)})})});}function Ya({dashboardId:_0x1bf5cb,presentation:_0x7b27b7=!0x1,unitId:_0x33d6b9}){const _0x297466=_0xbfff20;let _0x57e6f9=_0x29f087(_0x2220df),_0x16b795=_0x29f087(_0x3107a8),_0xfaba5b=_0x29f087(_0x4fbe75),_0x34bb52=_0x29f087(_0x14186a),_0x42404f=_0x29f087(_0x2989fb),_0x1d7ac4=_0x29f087(_0x309002),_0x12d2bd=_0x29f087(_0x1daf4e),_0x5dcd6b=_0x2861da(null),[_0x1d7a5c,_0xf5c829]=_0x34e679(!0x1),[_0x31d4ba,_0x15640a]=_0x34e679(),[_0x15d6d7,_0x128a9f]=_0x34e679(!0x1),[_0x21fc54,_0x11d50b]=_0x34e679(()=>new Map()),_0x157870=_0xdcfb42((_0x2b99a8,_0x447f36)=>{_0x11d50b(_0x5efdf0=>{const _0x41db13=_0x5dbe;let _0x35573c=new Map(_0x5efdf0);return _0x447f36?_0x35573c[_0x41db13(0x499)](_0x2b99a8,_0x447f36):_0x35573c[_0x41db13(0x375)](_0x2b99a8),_0x35573c;});},[]),_0x1e956c=_0x39908a(()=>_0x1d7ac4['change$'][_0x297466(0x472)](_0x3fca8e(()=>_0x1d7ac4[_0x297466(0x34a)](_0x33d6b9,_0x1bf5cb))),_0x1d7ac4[_0x297466(0x34a)](_0x33d6b9,_0x1bf5cb),!0x1,[_0x1bf5cb,_0x1d7ac4,_0x33d6b9]),_0x5d7033=_0x34bb52[_0x297466(0x454)](_0x33d6b9,_0x37ea54[_0x297466(0x2e2)]),_0x2260a7=_0x39908a(()=>_0x12d2bd[_0x297466(0x29c)],{'undos':0x0,'redos':0x0},!0x1,[_0x12d2bd]),_0x2d70fc=_r(_0x33d6b9,_0x1bf5cb);if(_0x436796(()=>{const _0x1e367f=_0x297466;_0x34bb52['setCurrentUnitForType'](_0x33d6b9),_0x34bb52[_0x1e367f(0x177)](_0x33d6b9);},[_0x34bb52,_0x33d6b9]),_0x436796(()=>{const _0x4b1c89=_0x297466;let _0x5da374=_0x5dcd6b[_0x4b1c89(0x49d)],_0xb98ff3=_0x5da374==null?void 0x0:_0x5da374['ownerDocument'];if(!_0x5da374||!_0xb98ff3)return;let _0x56d314=()=>_0x128a9f(_0xb98ff3[_0x4b1c89(0x32e)]===_0xb98ff3[_0x4b1c89(0x4a1)]),_0x490724=_0x217f02=>{const _0x58d568=_0x4b1c89;_0x217f02[_0x58d568(0x48d)]===_0x58d568(0x416)&&!_0x217f02[_0x58d568(0x412)]&&_0xb98ff3[_0x58d568(0x32e)]===_0xb98ff3['documentElement']&&_0xb98ff3[_0x58d568(0x444)]()[_0x58d568(0x433)](_0x56d314);};return _0xb98ff3[_0x4b1c89(0x410)]('fullscreenchange',_0x56d314),_0xb98ff3['addEventListener'](_0x4b1c89(0x2d9),_0x490724),()=>{const _0xe09099=_0x4b1c89;_0xb98ff3[_0xe09099(0x300)](_0xe09099(0x190),_0x56d314),_0xb98ff3[_0xe09099(0x300)]('keydown',_0x490724);};},[]),!_0x1e956c||!_0x5d7033)return null;let _0x39ec5a=_0x1d5eb9=>_0x57e6f9[_0x297466(0x42e)](_0x1c8540['id'],{'unitId':_0x33d6b9,'dashboardId':_0x1bf5cb,'widget':_0x1d5eb9})['catch'](()=>void 0x0),_0xba3562=(_0x4ed827,_0x4361c6,_0x4af7a8)=>{const _0x575fb7=_0x297466;let _0x27378=Math['max'](0x0,..._0x1e956c['widgetOrder'][_0x575fb7(0x31f)](_0x2ee1b4=>{const _0x36db5b=_0x575fb7;var _0xeeb995;let _0x5a4c02=(_0xeeb995=_0x1e956c[_0x36db5b(0x280)][_0x2ee1b4])==null?void 0x0:_0xeeb995['layout'];return _0x5a4c02?[_0x5a4c02[_0x36db5b(0x430)]+_0x5a4c02[_0x36db5b(0x1b2)]]:[];})),_0x536ce9=_0x575fb7(0x4a8)+_0xd28735(0x8),_0x2ae9af={'column':0x0,'row':_0x27378,'columnSpan':_0x4361c6,'rowSpan':_0x4af7a8};switch(_0x4ed827['type']){case _0x1402ed[_0x575fb7(0x3c8)]:return _0x39ec5a({..._0x4ed827,'id':_0x536ce9,'layout':_0x2ae9af});case _0x1402ed[_0x575fb7(0x287)]:return _0x39ec5a({..._0x4ed827,'id':_0x536ce9,'layout':_0x2ae9af});case _0x1402ed[_0x575fb7(0x194)]:return _0x39ec5a({..._0x4ed827,'id':_0x536ce9,'layout':_0x2ae9af});case _0x1402ed[_0x575fb7(0x471)]:return _0x39ec5a({..._0x4ed827,'id':_0x536ce9,'layout':_0x2ae9af});case _0x1402ed[_0x575fb7(0x1d9)]:return _0x39ec5a({..._0x4ed827,'id':_0x536ce9,'layout':_0x2ae9af});}},_0x5b7799=_0x5d7033[_0x297466(0x373)](),_0x31a9b8=_0x5b7799[_0x297466(0x32d)][_0x297466(0x31f)](_0x37309a=>{const _0x404e93=_0x297466;let _0x52069d=_0x5b7799[_0x404e93(0x3df)][_0x37309a];if(!_0x52069d)return[];let _0x2a8203=_0x52069d[_0x404e93(0x18e)][_0x404e93(0x31f)](_0x4f4a28=>{const _0xc43c1b=_0x404e93;let _0x43fd61=_0x52069d[_0xc43c1b(0x2b9)][_0x4f4a28];return ro(_0x43fd61)?[{'type':_0xc43c1b(0x2c2),'children':_0x43fd61[_0xc43c1b(0x3ca)],'onSelect':()=>_0xba3562({'type':_0x1402ed['PivotChart'],'tableId':_0x37309a,'pivotViewId':_0x4f4a28,'chart':{..._0x43fd61[_0xc43c1b(0x167)][_0xc43c1b(0x252)]}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0x52069d[_0x404e93(0x3ca)],'options':[..._0x2a8203,..._0x2a8203[_0x404e93(0x2df)]?[{'type':_0x404e93(0x174)}]:[],{'type':'item','children':_0x42404f['t'](_0x404e93(0x319)),'onSelect':()=>_0xba3562({'type':_0x1402ed[_0x404e93(0x287)],'tableId':_0x37309a,'filter':null},0x6,0x8)}]}];}),_0x110ee8=[..._0x31a9b8,..._0x31a9b8[_0x297466(0x2df)]?[{'type':_0x297466(0x174)}]:[],{'type':'item','children':_0x42404f['t']('bases-dashboard-ui.dashboard.text'),'onSelect':()=>_0xba3562({'type':_0x1402ed[_0x297466(0x194)],'document':$a()},0x4,0x6)},{'type':_0x297466(0x2c2),'children':_0x42404f['t'](_0x297466(0x279)),'onSelect':()=>eo(_0x16b795)['then'](_0x3244e5=>_0x3244e5&&_0xba3562({'type':_0x1402ed[_0x297466(0x471)],'source':_0x3244e5[_0x297466(0x2ad)],'sourceType':_0x3244e5[_0x297466(0x18c)],'alt':_0x3244e5['name'],'displayMode':'cover'},0x4,0x6))},{'type':'item','children':_0x42404f['t']('bases-dashboard-ui.dashboard.formulaShape'),'onSelect':()=>{const _0x178a9f=_0x297466;let _0x253a70=_0x5b7799['tableOrder'][_0x178a9f(0x1ac)](_0x4b5df9=>_0x5b7799[_0x178a9f(0x3df)][_0x4b5df9]);_0x253a70&&_0xba3562({'type':_0x1402ed[_0x178a9f(0x1d9)],'tableId':_0x253a70,'shapeType':_0xed2d79['RoundRect'],'shapeData':_0x18c256(),'description':_0x42404f['t'](_0x178a9f(0x47b))},0x4,0x6);}}],_0x1bd1ca=_0x31d4ba?_0x1e956c[_0x297466(0x280)][_0x31d4ba]:void 0x0,_0x580c99=async()=>{const _0x158ffc=_0x297466;let _0x2dffd6=_0x5dcd6b[_0x158ffc(0x49d)];if(!_0x2dffd6)return;let _0x38a106=_0x2dffd6[_0x158ffc(0x2a8)];_0x38a106['fullscreenElement']===_0x38a106[_0x158ffc(0x4a1)]?await _0x38a106[_0x158ffc(0x444)]():await _0x38a106[_0x158ffc(0x4a1)][_0x158ffc(0x448)]();},_0x45a778=_0x7b27b7||_0x15d6d7,_0x50a49b=_0x2d70fc&&!_0x45a778;return _0x1108cb(_0x297466(0x1e8),{'ref':_0x5dcd6b,'className':_0x297466(0x15c)+(_0x15d6d7?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':'univer-relative\x20univer-z-10')+_0x297466(0x237),'children':[!_0x45a778&&_0x1108cb('header',{'className':'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','children':[_0x1c53e9(_0x396df3,{'className':'univer-size-5\x20univer-text-primary-600'}),_0x1c53e9('h2',{'className':_0x297466(0x2e8),'children':_0x1e956c['name']}),_0x1c53e9(_0xad9b28,{'target':{'unitId':_0x33d6b9,'objectId':_0x3f3aa0(_0x1bf5cb),'objectType':_0x26ad9b[_0x297466(0x24f)]},'name':_0x1e956c[_0x297466(0x3ca)],'commandId':_0x501d41['id'],'exists':()=>!!_0x1d7ac4[_0x297466(0x34a)](_0x33d6b9,_0x1bf5cb)},_0x33d6b9+'/'+_0x1bf5cb),_0x1c53e9(_0x36e7c3,{'unitId':_0x33d6b9}),_0x1c53e9(_0x6d25a2,{'type':_0x297466(0x2d8),'size':_0x297466(0x189),'variant':_0x297466(0x173),'aria-label':_0x42404f['t'](_0x297466(0x314)),'disabled':!_0x2d70fc||_0x2260a7[_0x297466(0x227)]===0x0,'onClick':()=>_0x57e6f9[_0x297466(0x42e)](_0x38c4d5['id'])[_0x297466(0x433)](()=>void 0x0),'children':_0x1c53e9(_0x5d8a74,{})}),_0x1c53e9(_0x6d25a2,{'type':_0x297466(0x2d8),'size':'small','variant':_0x297466(0x173),'aria-label':_0x42404f['t'](_0x297466(0x1c2)),'disabled':!_0x2d70fc||_0x2260a7[_0x297466(0x47c)]===0x0,'onClick':()=>_0x57e6f9['executeCommand'](_0x413296['id'])[_0x297466(0x433)](()=>void 0x0),'children':_0x1c53e9(_0x421b18,{})}),_0x1c53e9(_0x6d25a2,{'type':'button','size':_0x297466(0x189),'variant':_0x297466(0x173),'aria-label':_0x42404f['t'](_0x297466(0x1e2)),'onClick':()=>_0x580c99()['catch'](()=>void 0x0),'children':_0x1c53e9(_0x275a4b,{})}),_0x1c53e9(_0x440082,{'items':_0x110ee8,'children':_0x1108cb(_0x6d25a2,{'variant':_0x297466(0x3d2),'disabled':!_0x2d70fc,'children':[_0x1c53e9(_0x34be53,{}),_0x42404f['t'](_0x297466(0x486))]})})]}),_0x1108cb(_0x297466(0x1e8),{'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1','children':[_0x1c53e9(_0x297466(0x1e8),{'className':_0x297466(0x3a9),'children':_0x1c53e9(ua,{'dashboard':_0x1e956c,'dragLabel':_0x42404f['t'](_0x297466(0x185)),'editable':_0x50a49b,'resizeLabel':_0x42404f['t'](_0x297466(0x1cc)),'widgetLabel':_0x2844c3=>_0x42404f['t'](no(_0x2844c3[_0x297466(0x427)])),'selectedWidgetId':_0x50a49b?_0x31d4ba:void 0x0,'onSelectWidget':_0x50a49b?_0x35f5ff=>{_0x15640a(_0x35f5ff),_0x35f5ff||_0xf5c829(!0x1);}:void 0x0,'onLayoutsCommit':_0x291259=>{const _0x31289f=_0x297466;let _0xc6a2c5={..._0x1e956c[_0x31289f(0x280)]};_0x291259['forEach']((_0x27a443,_0x4049ab)=>{let _0x5a08b7=_0xc6a2c5[_0x4049ab];_0x5a08b7&&(_0xc6a2c5[_0x4049ab]={..._0x5a08b7,'layout':_0x27a443});}),_0x57e6f9[_0x31289f(0x42e)](_0x39c855['id'],{'unitId':_0x33d6b9,'dashboard':{..._0x1e956c,'widgets':_0xc6a2c5}})[_0x31289f(0x433)](()=>void 0x0);},'renderWidget':_0x2d4a9d=>_0x1c53e9(Xa,{'base':_0x5d7033,'dashboard':_0x1e956c,'unitId':_0x33d6b9,'widget':_0x2d4a9d,'onChange':_0x39ec5a,'onChartRuntimeChange':_0x157870}),'renderWidgetActions':_0x3c37de=>_0x1c53e9(Ja,{'onEdit':()=>{_0x15640a(_0x3c37de['id']),_0xf5c829(!0x0);},'onDelete':()=>{const _0x3c62c0=_0x297466;_0x31d4ba===_0x3c37de['id']&&(_0x15640a(void 0x0),_0xf5c829(!0x1)),_0x57e6f9[_0x3c62c0(0x42e)](_0x55f0a4['id'],{'unitId':_0x33d6b9,'dashboardId':_0x1bf5cb,'widgetId':_0x3c37de['id']})[_0x3c62c0(0x433)](()=>void 0x0);}})})}),_0x50a49b&&_0x1d7a5c&&_0x1bd1ca&&_0x1c53e9(Ba,{'base':_0x5d7033,'chartRuntime':_0x21fc54[_0x297466(0x197)](_0x1bd1ca['id']),'unitId':_0x33d6b9,'widget':_0x1bd1ca,'onChange':_0x39ec5a,'onClose':()=>_0xf5c829(!0x1),'onSelectBackgroundImage':()=>to(_0xfaba5b),'onSelectImage':()=>eo(_0x16b795)})]})]});}function Xa({base:_0x14ef65,dashboard:_0x53489b,onChange:_0x2557e3,onChartRuntimeChange:_0x560a06,unitId:_0xa6631,widget:_0x276380}){const _0x2ca435=_0xbfff20;let _0x17afd4=_0x548c0f(()=>_0x53489b[_0x2ca435(0x3b1)][_0x2ca435(0x31f)](_0x5d1e20=>{const _0x5c7157=_0x2ca435;let _0x22ae49=_0x53489b[_0x5c7157(0x280)][_0x5d1e20];return(_0x22ae49==null?void 0x0:_0x22ae49[_0x5c7157(0x427)])===_0x1402ed[_0x5c7157(0x287)]&&_0x22ae49['tableId']===(_0x5c7157(0x335)in _0x276380?_0x276380[_0x5c7157(0x335)]:'')&&_0x22ae49[_0x5c7157(0x2be)]?[_0x22ae49[_0x5c7157(0x2be)]]:[];}),[_0x53489b,_0x276380]);switch(_0x276380[_0x2ca435(0x427)]){case _0x1402ed[_0x2ca435(0x3c8)]:return _0x1c53e9(Rr,{'filters':_0x17afd4,'unitId':_0xa6631,'widget':_0x276380,'onRuntimeChange':_0x560a06});case _0x1402ed['TableFilter']:return _0x1c53e9(Ta,{'fields':Za(_0x14ef65,_0x276380[_0x2ca435(0x335)]),'filter':_0x276380['filter'],'onChange':_0x4ad732=>_0x2557e3({..._0x276380,'filter':_0x4ad732})[_0x2ca435(0x433)](()=>void 0x0)});case _0x1402ed[_0x2ca435(0x194)]:return _0x1c53e9(Wr,{'widget':_0x276380});case _0x1402ed[_0x2ca435(0x471)]:return _0x1c53e9(Qa,{'widget':_0x276380});case _0x1402ed[_0x2ca435(0x1d9)]:return _0x1c53e9(Or,{'dashboardId':_0x53489b['id'],'unitId':_0xa6631,'widget':_0x276380});}}function Za(_0x189768,_0x2f63fb){const _0x3e2831=_0xbfff20;let _0x58f0f7=_0x189768[_0x3e2831(0x373)]()[_0x3e2831(0x3df)][_0x2f63fb],_0x4e5935=_0x58f0f7==null?void 0x0:_0x58f0f7[_0x3e2831(0x18e)][_0x3e2831(0x1ac)](_0x2c58e5=>_0x58f0f7[_0x3e2831(0x2b9)][_0x2c58e5]),_0x3f0506=_0x4e5935?_0x58f0f7==null?void 0x0:_0x58f0f7['views'][_0x4e5935]:void 0x0;return _0x58f0f7&&_0x3f0506?_0x173f22(_0x58f0f7,_0x3f0506):[];}function Qa({widget:_0x1d79dd}){const _0x274ae2=_0xbfff20;let _0x28eb7b=_0x29f087(_0x3107a8),[_0x4b16ec,_0x30e0ba]=_0x34e679(_0x1d79dd['sourceType']===_0x18951a['UUID']?'':_0x1d79dd[_0x274ae2(0x2ad)]);return _0x436796(()=>{const _0x271946=_0x274ae2;let _0x2888ea=!0x0;return _0x28eb7b['getAttachmentUrl'](_0x1d79dd[_0x271946(0x2ad)],_0x1d79dd[_0x271946(0x18c)])[_0x271946(0x271)](_0x303a03=>{_0x2888ea&&_0x30e0ba(_0x303a03);})[_0x271946(0x433)](()=>void 0x0),()=>{_0x2888ea=!0x1;};},[_0x28eb7b,_0x1d79dd[_0x274ae2(0x2ad)],_0x1d79dd[_0x274ae2(0x18c)]]),_0x4b16ec?_0x1c53e9(_0x274ae2(0x1e8),{'role':_0x1d79dd[_0x274ae2(0x1e4)]?_0x274ae2(0x15e):void 0x0,'aria-label':_0x1d79dd[_0x274ae2(0x1e4)]||void 0x0,'data-dashboard-image':_0x1d79dd['id'],'className':_0x274ae2(0x453),'style':yr(_0x4b16ec,_0x1d79dd['displayMode'])}):null;}function $a(){const _0x1a8871=_0xbfff20;let _0x34c540=_0x467708(new Set());return{'id':_0x1a8871(0x281)+_0xd28735(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x34c540}]},'documentStyle':{}};}function eo(_0x45d961){return new Promise(_0x3b8199=>{const _0x4f45f8=_0x5dbe;let _0xa6a9bf=document[_0x4f45f8(0x457)](_0x4f45f8(0x240));_0xa6a9bf[_0x4f45f8(0x427)]=_0x4f45f8(0x1df),_0xa6a9bf[_0x4f45f8(0x46d)]=_0x4f45f8(0x46b),_0xa6a9bf['addEventListener'](_0x4f45f8(0x17f),()=>{const _0x97159b=_0x4f45f8;var _0x2ec23d;let _0x56961a=(_0x2ec23d=_0xa6a9bf[_0x97159b(0x34c)])==null?void 0x0:_0x2ec23d[0x0];_0x56961a?_0x45d961['saveAttachment'](_0x56961a)[_0x97159b(0x271)](_0x2857ff=>{const _0x9e3e6d=_0x97159b;!_0x2857ff[_0x9e3e6d(0x2ad)]||_0x2857ff[_0x9e3e6d(0x18c)]===void 0x0?_0x3b8199(null):_0x3b8199({'name':_0x2857ff[_0x9e3e6d(0x3ca)],'source':_0x2857ff['source'],'sourceType':_0x2857ff[_0x9e3e6d(0x18c)]});})[_0x97159b(0x433)](()=>_0x3b8199(null)):_0x3b8199(null);},{'once':!0x0}),_0xa6a9bf[_0x4f45f8(0x2a5)]();});}function to(_0x1cf579){return new Promise(_0x3f25cb=>{const _0x9956ee=_0x5dbe;let _0x56bac4=document[_0x9956ee(0x457)]('input');_0x56bac4[_0x9956ee(0x427)]='file',_0x56bac4[_0x9956ee(0x46d)]=_0x9956ee(0x46b),_0x56bac4[_0x9956ee(0x410)](_0x9956ee(0x17f),()=>{const _0x1f0414=_0x9956ee;var _0x19aa85;let _0x24e845=(_0x19aa85=_0x56bac4[_0x1f0414(0x34c)])==null?void 0x0:_0x19aa85[0x0];_0x24e845?_0x1cf579[_0x1f0414(0x35e)](_0x24e845)[_0x1f0414(0x271)](_0x15a779=>{const _0x31b16c=_0x1f0414;if(!(_0x15a779!=null&&_0x15a779[_0x31b16c(0x2ad)]))_0x3f25cb(null);else{if(_0x15a779[_0x31b16c(0x1c7)]){let _0x5579fb=new Image();_0x5579fb[_0x31b16c(0x175)]=_0x15a779[_0x31b16c(0x1c7)],_0x1cf579[_0x31b16c(0x388)](_0x15a779[_0x31b16c(0x2ad)],_0x15a779['imageSourceType'],_0x5579fb);}_0x3f25cb({'source':_0x15a779[_0x31b16c(0x2ad)],'sourceType':_0x15a779[_0x31b16c(0x172)]});}})['catch'](()=>_0x3f25cb(null)):_0x3f25cb(null);},{'once':!0x0}),_0x56bac4[_0x9956ee(0x2a5)]();});}function no(_0xdb3e66){const _0x28d79b=_0xbfff20;switch(_0xdb3e66){case _0x1402ed[_0x28d79b(0x3c8)]:return _0x28d79b(0x303);case _0x1402ed[_0x28d79b(0x287)]:return _0x28d79b(0x319);case _0x1402ed['Text']:return _0x28d79b(0x3ba);case _0x1402ed['Image']:return _0x28d79b(0x279);case _0x1402ed['FormulaShape']:return _0x28d79b(0x47b);}}function ro(_0x4991e1){const _0x226abc=_0xbfff20;return(_0x4991e1==null?void 0x0:_0x4991e1[_0x226abc(0x427)])===_0x54a718[_0x226abc(0x2c9)]&&typeof _0x4991e1['config']==_0x226abc(0x235)&&_0x4991e1[_0x226abc(0x167)]!==null&&_0x226abc(0x274)in _0x4991e1[_0x226abc(0x167)]&&_0x226abc(0x252)in _0x4991e1[_0x226abc(0x167)];}const io=[{'area':_0x1126e4[_0xbfff20(0x2a9)],'key':_0xbfff20(0x331),'label':_0xbfff20(0x178)},{'area':_0x1126e4[_0xbfff20(0x2b5)],'key':_0xbfff20(0x273),'label':'bases-dashboard-ui.pivot.columns'},{'area':_0x1126e4[_0xbfff20(0x350)],'key':_0xbfff20(0x2ef),'label':_0xbfff20(0x25e)},{'area':_0x1126e4[_0xbfff20(0x2aa)],'key':'valueFields','label':_0xbfff20(0x246)}],ao=[{'value':_0x4ad10e['sum'],'localeKey':_0xbfff20(0x43d)},{'value':_0x4ad10e['count'],'localeKey':_0xbfff20(0x21b)},{'value':_0x4ad10e[_0xbfff20(0x261)],'localeKey':'bases-dashboard-ui.pivot.countNumbers'},{'value':_0x4ad10e['average'],'localeKey':_0xbfff20(0x396)},{'value':_0x4ad10e[_0xbfff20(0x43f)],'localeKey':_0xbfff20(0x3d4)},{'value':_0x4ad10e[_0xbfff20(0x441)],'localeKey':_0xbfff20(0x47a)},{'value':_0x4ad10e[_0xbfff20(0x392)],'localeKey':_0xbfff20(0x24a)},{'value':_0x4ad10e[_0xbfff20(0x362)],'localeKey':'bases-dashboard-ui.pivot.stdDev'},{'value':_0x4ad10e[_0xbfff20(0x353)],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x4ad10e['var'],'localeKey':_0xbfff20(0x2f2)},{'value':_0x4ad10e[_0xbfff20(0x2c3)],'localeKey':'bases-dashboard-ui.pivot.variancePopulation'}];function oo(_0x1f3a43){const _0x2186b4=_0xbfff20;let {config:_0x3ddf74,onChange:_0x4800d8,table:_0x28e3a6}=_0x1f3a43,_0x4ee229=_0x29f087(_0x2989fb),[_0x5f5012,_0x20ab0f]=_0x34e679(_0x2186b4(0x1e9)),[_0x912e51,_0x10b242]=_0x34e679(''),[_0x63ed5e,_0x5e66f0]=_0x34e679(null),[_0x574780,_0x5aef1d]=_0x34e679(null),[_0x9a6477,_0x13bc87]=_0x34e679(null),[_0x18a98e,_0x3c659a]=_0x34e679(null),_0x1e3d14=_0x2861da(null),_0x298a3a=_0x548c0f(()=>_0x28e3a6[_0x2186b4(0x222)][_0x2186b4(0x31f)](_0x291807=>{const _0x2fa8d8=_0x2186b4;let _0x46b644=_0x28e3a6[_0x2fa8d8(0x1e9)][_0x291807];return _0x46b644&&_0x46b644[_0x2fa8d8(0x2d2)]!==!0x0&&_0x46b644[_0x2fa8d8(0x427)]!==_0x4fcd7c[_0x2fa8d8(0x496)]?[_0x46b644]:[];})[_0x2186b4(0x2be)](_0x5718ba=>_0x5718ba[_0x2186b4(0x3ca)]['toLocaleLowerCase']()[_0x2186b4(0x3d0)](_0x912e51[_0x2186b4(0x278)]()['toLocaleLowerCase']())),[_0x912e51,_0x28e3a6]),_0x24daf=_0x4488a4=>{const _0x355922=_0x2186b4;let _0x1d34d9=_0x560cf4(_0x28e3a6,_0x3ddf74[_0x355922(0x274)]);try{_0x4488a4(_0x1d34d9),_0x4800d8({'pivot':_0x1d34d9[_0x355922(0x262)]()});}finally{_0x1d34d9[_0x355922(0x19b)]();}},_0x354d80=(_0x3035f7,_0x5f0afd)=>{_0x63ed5e&&(_0x24daf(_0x520332=>{const _0x261511=_0x5dbe;if(_0x63ed5e[_0x261511(0x347)]===_0x261511(0x2e6)){let _0x5b57e8=_0x520332['getFieldPositionInfoById'](_0x63ed5e['id']),_0x24f792=_0x5b57e8[_0x261511(0x450)]===_0x3035f7&&_0x5b57e8[_0x261511(0x365)]<_0x5f0afd?_0x5f0afd-0x1:_0x5f0afd;_0x520332[_0x261511(0x445)](_0x63ed5e['id'],_0x3035f7,_0x24f792);}else ho(_0x520332,_0x63ed5e['id'],_0x3035f7,_0x5f0afd);}),_0x5e66f0(null),_0x5aef1d(null));};return _0x1108cb(_0x2186b4(0x1e8),{'className':_0x2186b4(0x231),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x4ee229['t'](_0x2186b4(0x3c9)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x4ee229['t'](_0x2186b4(0x3f8)),'panelId':'base-pivot-fields','value':'fields'},{'label':_0x4ee229['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x2186b4(0x3da),'value':'options'}],'value':_0x5f5012,'onChange':_0x20ab0f}),_0x1c53e9(_0x2186b4(0x1e8),{'ref':_0x1e3d14,'className':_0x14b647(_0x2186b4(0x1e3),_0x439165),'onDragOver':_0x35a143=>{const _0x4255ec=_0x2186b4;let _0x1283b5=_0x1e3d14[_0x4255ec(0x49d)];if(!_0x1283b5)return;let _0x5b87b2=_0x1283b5['getBoundingClientRect']();_0x35a143[_0x4255ec(0x4ae)]<_0x5b87b2[_0x4255ec(0x3e6)]+0x30?_0x1283b5[_0x4255ec(0x389)]-=0x10:_0x35a143[_0x4255ec(0x4ae)]>_0x5b87b2[_0x4255ec(0x2a2)]-0x30&&(_0x1283b5[_0x4255ec(0x389)]+=0x10);},'children':_0x5f5012==='options'?_0x1c53e9(mo,{'config':_0x3ddf74,'commit':_0x24daf}):_0x1108cb('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x1108cb(_0x2186b4(0x1e8),{'children':[_0x1c53e9(_0x2186b4(0x1e8),{'className':_0x2186b4(0x368),'children':_0x4ee229['t'](_0x2186b4(0x1f7))}),_0x1c53e9(_0x1b54d7,{'allowClear':!0x0,'slot':_0x1c53e9(_0x302bc4,{}),'value':_0x912e51,'placeholder':_0x4ee229['t']('bases-dashboard-ui.pivot.searchFields'),'onChange':_0x10b242}),_0x1c53e9(_0x2186b4(0x1e8),{'className':'univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','children':_0x298a3a[_0x2186b4(0x1fd)](_0x9e6831=>_0x1c53e9(so,{'config':_0x3ddf74,'field':_0x9e6831,'onAdd':_0x4eb15a=>_0x24daf(_0x55a82c=>ho(_0x55a82c,_0x9e6831['id'],_0x4eb15a,_0x55a82c['getFieldCountByArea'](_0x4eb15a))),'onCheckedChange':_0x1c20bf=>_0x24daf(_0x5c6bff=>{const _0x3057f6=_0x2186b4;let _0x141187=_0x5c6bff[_0x3057f6(0x3e4)](_0x9e6831['id']);if(!_0x1c20bf)_0x141187[_0x3057f6(0x4a2)](_0xb61dcc=>_0x5c6bff[_0x3057f6(0x38a)](_0xb61dcc[_0x3057f6(0x3c6)]()));else{if(_0x141187[_0x3057f6(0x2df)]===0x0){let _0x1a579e=_o(_0x9e6831)?_0x1126e4[_0x3057f6(0x2aa)]:_0x1126e4[_0x3057f6(0x350)];_0x5c6bff[_0x3057f6(0x39d)](_0x9e6831['id'],_0x1a579e);}}}),'onDragStart':()=>_0x5e66f0({'kind':_0x2186b4(0x2ad),'id':_0x9e6831['id']})},_0x9e6831['id']))})]}),_0x1c53e9('div',{'className':'univer-grid\x20univer-grid-cols-2\x20univer-gap-3','children':io[_0x2186b4(0x1fd)](_0x5ce39f=>_0x1c53e9(lo,{'area':_0x5ce39f[_0x2186b4(0x450)],'dropTarget':_0x574780,'fields':_0x3ddf74['pivot'][_0x5ce39f[_0x2186b4(0x48d)]],'label':_0x4ee229['t'](_0x5ce39f[_0x2186b4(0x1b8)]),'snapshot':_0x3ddf74[_0x2186b4(0x274)],'onDragEnd':()=>{_0x5e66f0(null),_0x5aef1d(null);},'onDragStart':_0x48ea03=>_0x5e66f0({'kind':_0x2186b4(0x2e6),'id':_0x48ea03,'area':_0x5ce39f[_0x2186b4(0x450)]}),'onDragOver':_0x5f0400=>_0x5aef1d({'area':_0x5ce39f[_0x2186b4(0x450)],'index':_0x5f0400}),'onDrop':_0x4f4487=>_0x354d80(_0x5ce39f[_0x2186b4(0x450)],_0x4f4487),'onFilter':_0x13bc87,'onRemove':_0x36da5d=>_0x24daf(_0x4c6117=>_0x4c6117[_0x2186b4(0x38a)](_0x36da5d)),'onSettings':_0x3c659a},_0x5ce39f[_0x2186b4(0x450)]))}),_0x9a6477&&_0x1c53e9(fo,{'fieldId':_0x9a6477,'snapshot':_0x3ddf74[_0x2186b4(0x274)],'table':_0x28e3a6,'onCancel':()=>_0x13bc87(null),'onCommit':(_0x5c8749,_0x55c918)=>{_0x24daf(_0x513ad0=>{const _0x74b9c9=_0x5dbe;let _0x5f4a7b=_0x513ad0[_0x74b9c9(0x2ab)](_0x9a6477),_0x19d0f0=(_0x5f4a7b==null?void 0x0:_0x5f4a7b[_0x74b9c9(0x1c0)])??[];_0x513ad0['setLabelFilterInfo'](_0x9a6477,{'type':_0x5a1647[_0x74b9c9(0x224)],'list':_0x5c8749,'isAll':_0x5c8749[_0x74b9c9(0x2df)]===_0x19d0f0[_0x74b9c9(0x2df)]}),_0x513ad0[_0x74b9c9(0x44f)](_0x9a6477,_0x55c918===void 0x0?void 0x0:{'type':_0x55c918});}),_0x13bc87(null);}},_0x9a6477),_0x18a98e&&_0x1c53e9(po,{'field':_0x3ddf74[_0x2186b4(0x274)][_0x2186b4(0x421)][_0x18a98e],'onCancel':()=>_0x3c659a(null),'onCommit':(_0x441c81,_0x171fe4,_0x399c9f)=>{_0x24daf(_0x91e4a8=>{const _0x5db5f7=_0x5dbe;_0x91e4a8['renameField'](_0x18a98e,_0x441c81),_0x91e4a8[_0x5db5f7(0x355)](_0x18a98e,_0x171fe4),_0x91e4a8['setFieldFormat'](_0x18a98e,_0x399c9f||void 0x0);}),_0x3c659a(null);}},_0x18a98e)]})})]});}function so(_0x33f015){const _0x238e10=_0xbfff20;let {config:_0x4c7282,field:_0x1eece1,onAdd:_0x48e826,onCheckedChange:_0x386ed4,onDragStart:_0x1faa76}=_0x33f015,_0x1d3042=_0x29f087(_0x2989fb),_0xcf3b1f=[...Object[_0x238e10(0x34e)](_0x4c7282[_0x238e10(0x274)][_0x238e10(0x401)]),...Object['values'](_0x4c7282['pivot'][_0x238e10(0x421)])][_0x238e10(0x415)](_0x371319=>_0x371319[_0x238e10(0x2c4)]===_0x1eece1['id']),_0x2629d3=io['map'](_0x292be4=>({'type':_0x238e10(0x2c2),'children':_0x1d3042['t'](vo(_0x292be4[_0x238e10(0x450)])),'onSelect':()=>_0x48e826(_0x292be4[_0x238e10(0x450)])}));return _0x1108cb(_0x238e10(0x1e8),{'draggable':!0x0,'className':_0x238e10(0x3f3),'onDragStart':_0x1faa76,'children':[_0x1c53e9(_0x4f0f93,{'className':_0x238e10(0x1d8)}),_0x1c53e9(_0x1eb8df,{'checked':_0xcf3b1f,'onChange':_0x2dce3b=>_0x386ed4(!!_0x2dce3b)}),_0x1c53e9(co,{'field':_0x1eece1}),_0x1c53e9(_0x238e10(0x213),{'className':_0x238e10(0x309),'children':_0x1eece1['name']}),_0x1c53e9(_0x440082,{'align':'end','items':_0x2629d3,'children':_0x1c53e9(_0x238e10(0x213),{'className':_0x238e10(0x27a),'children':_0x1c53e9(_0xacb52a,{})})})]});}function co({field:_0x5f0835}){const _0x4f8808=_0xbfff20;return _o(_0x5f0835)?_0x1c53e9(_0x45f616,{'className':_0x4f8808(0x1d8)}):_0x5f0835[_0x4f8808(0x427)]===_0x4fcd7c[_0x4f8808(0x43b)]||_0x5f0835['type']===_0x4fcd7c[_0x4f8808(0x425)]||_0x5f0835['type']===_0x4fcd7c['UpdatedAt']?_0x1c53e9(_0x23c2ab,{'className':_0x4f8808(0x1d8)}):_0x1c53e9(_0x383758,{'className':_0x4f8808(0x1d8)});}function lo(_0x4d090c){const _0x3f6556=_0xbfff20;let {area:_0x19590e,dropTarget:_0x4d2267,fields:_0x11f479,label:_0x554cdb,snapshot:_0x3a01cf}=_0x4d090c,_0x3211ad=_0x29f087(_0x2989fb);return _0x1108cb(_0x3f6556(0x493),{'className':_0x14b647('univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800',_0x14cf31),'onDragOver':_0x109273=>{const _0x1ce8b4=_0x3f6556;_0x109273[_0x1ce8b4(0x2ea)](),_0x4d090c[_0x1ce8b4(0x1ba)](_0x11f479[_0x1ce8b4(0x2df)]);},'onDrop':_0x51d4d4=>{const _0x2600eb=_0x3f6556;_0x51d4d4[_0x2600eb(0x2ea)](),_0x4d090c[_0x2600eb(0x166)]((_0x4d2267==null?void 0x0:_0x4d2267[_0x2600eb(0x450)])===_0x19590e?_0x4d2267[_0x2600eb(0x365)]:_0x11f479['length']);},'children':[_0x1c53e9(_0x3f6556(0x1e8),{'className':'univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','children':_0x554cdb}),_0x1108cb(_0x3f6556(0x1e8),{'className':'univer-flex\x20univer-flex-col','children':[_0x11f479['map']((_0x6b4c42,_0x2eabc2)=>{const _0x12bd48=_0x3f6556;let _0x5e5e16=_0x3a01cf[_0x12bd48(0x401)][_0x6b4c42]??_0x3a01cf[_0x12bd48(0x421)][_0x6b4c42];if(!_0x5e5e16)return null;let _0x46db31=(_0x4d2267==null?void 0x0:_0x4d2267[_0x12bd48(0x450)])===_0x19590e&&_0x4d2267[_0x12bd48(0x365)]===_0x2eabc2;return _0x1108cb(_0x12bd48(0x1e8),{'onDragOver':_0x2bd644=>{const _0x45f764=_0x12bd48;_0x2bd644['preventDefault'](),_0x2bd644['stopPropagation']();let _0x53a77c=_0x2bd644[_0x45f764(0x40a)][_0x45f764(0x260)]();_0x4d090c[_0x45f764(0x1ba)](_0x2eabc2+ +(_0x2bd644['clientY']>_0x53a77c[_0x45f764(0x3e6)]+_0x53a77c[_0x45f764(0x402)]/0x2));},'onDrop':_0x5423db=>{const _0x2dabd6=_0x12bd48;_0x5423db[_0x2dabd6(0x2ea)](),_0x5423db[_0x2dabd6(0x3fb)](),_0x4d090c['onDrop']((_0x4d2267==null?void 0x0:_0x4d2267[_0x2dabd6(0x450)])===_0x19590e?_0x4d2267[_0x2dabd6(0x365)]:_0x2eabc2);},'children':[_0x46db31&&_0x1c53e9(_0x12bd48(0x1e8),{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),_0x1c53e9(uo,{'area':_0x19590e,'field':_0x5e5e16,'onDragEnd':_0x4d090c[_0x12bd48(0x183)],'onDragStart':()=>_0x4d090c[_0x12bd48(0x295)](_0x6b4c42),'onFilter':()=>_0x4d090c[_0x12bd48(0x3b7)](_0x6b4c42),'onRemove':()=>_0x4d090c[_0x12bd48(0x169)](_0x6b4c42),'onSettings':()=>_0x4d090c[_0x12bd48(0x2cc)](_0x6b4c42)})]},_0x6b4c42);}),(_0x4d2267==null?void 0x0:_0x4d2267[_0x3f6556(0x450)])===_0x19590e&&_0x4d2267[_0x3f6556(0x365)]===_0x11f479['length']&&_0x1c53e9('div',{'className':_0x3f6556(0x487)}),_0x11f479[_0x3f6556(0x2df)]===0x0&&_0x1c53e9(_0x3f6556(0x1e8),{'className':_0x3f6556(0x1d0),'children':_0x3211ad['t'](_0x3f6556(0x23d))})]})]});}function uo(_0xc08bad){const _0x47ea14=_0xbfff20;let _0x3789b1=_0x29f087(_0x2989fb),_0x438b72=_0xc08bad[_0x47ea14(0x450)]===_0x1126e4[_0x47ea14(0x2aa)],_0x5c1947=[{'type':_0x47ea14(0x2c2),'children':_0x3789b1['t'](_0x47ea14(0x276)),'onSelect':_0xc08bad[_0x47ea14(0x169)]},{'type':_0x47ea14(0x2c2),'children':_0x3789b1['t'](_0x438b72?_0x47ea14(0x4a6):_0x47ea14(0x36a)),'onSelect':_0x438b72?_0xc08bad[_0x47ea14(0x2cc)]:_0xc08bad['onFilter']}];return _0x1108cb('div',{'draggable':!0x0,'className':_0x47ea14(0x32c),'onDragEnd':_0xc08bad[_0x47ea14(0x183)],'onDragStart':_0xc08bad[_0x47ea14(0x295)],'children':[_0x1c53e9(_0x4f0f93,{'className':_0x47ea14(0x1d8)}),_0x1c53e9(_0x501781,{'title':_0xc08bad[_0x47ea14(0x2e6)]['displayName'],'children':_0x1c53e9('span',{'className':_0x47ea14(0x309),'children':_0xc08bad[_0x47ea14(0x2e6)][_0x47ea14(0x1cf)]})}),_0x1c53e9(_0x440082,{'align':_0x47ea14(0x221),'items':_0x5c1947,'children':_0x1c53e9(_0x47ea14(0x213),{'className':_0x47ea14(0x27a),'children':_0x1c53e9(_0xacb52a,{})})})]});}function fo(_0x49b02e){const _0x49739a=_0xbfff20;var _0x295977,_0x47e4b1;let _0x3081ca=_0x29f087(_0x2989fb),{format:_0x5cbf6a,items:_0x4f9285,itemTypes:_0x521371}=_0x548c0f(()=>{const _0x39e2eb=_0x5dbe;let _0x5dbcad=_0x560cf4(_0x49b02e[_0x39e2eb(0x405)],_0x49b02e[_0x39e2eb(0x432)]);try{let _0x503d3c=_0x5dbcad[_0x39e2eb(0x2ab)](_0x49b02e[_0x39e2eb(0x17d)]);return{'format':_0x503d3c==null?void 0x0:_0x503d3c[_0x39e2eb(0x1ea)],'items':[...(_0x503d3c==null?void 0x0:_0x503d3c[_0x39e2eb(0x1c0)])??[]],'itemTypes':[...(_0x503d3c==null?void 0x0:_0x503d3c[_0x39e2eb(0x22c)])??[]]};}finally{_0x5dbcad[_0x39e2eb(0x19b)]();}},[_0x49b02e[_0x49739a(0x17d)],_0x49b02e[_0x49739a(0x432)],_0x49b02e[_0x49739a(0x405)]]),_0x51841a=(_0x295977=_0x49b02e[_0x49739a(0x432)][_0x49739a(0x401)][_0x49b02e[_0x49739a(0x17d)]])==null?void 0x0:_0x295977[_0x49739a(0x158)],[_0x32d804,_0x5d69f4]=_0x34e679((_0x51841a==null?void 0x0:_0x51841a[_0x49739a(0x427)])===_0x5a1647[_0x49739a(0x224)]?_0x51841a[_0x49739a(0x1ca)]:_0x4f9285),[_0x18745f,_0xd07556]=_0x34e679((_0x47e4b1=_0x49b02e[_0x49739a(0x432)][_0x49739a(0x401)][_0x49b02e[_0x49739a(0x17d)]])==null||(_0x47e4b1=_0x47e4b1[_0x49739a(0x23e)])==null?void 0x0:_0x47e4b1[_0x49739a(0x427)]),_0x58db55=_0x32d804[_0x49739a(0x2df)]===_0x4f9285[_0x49739a(0x2df)];return _0x1108cb(_0x49739a(0x493),{'className':_0x14b647(_0x49739a(0x35d),_0x14cf31),'children':[_0x1c53e9(_0x49739a(0x1e8),{'className':_0x49739a(0x2fb),'children':_0x3081ca['t'](_0x49739a(0x36a))}),_0x1108cb(_0x49739a(0x1e8),{'className':_0x49739a(0x1f8),'children':[_0x1108cb(_0x6d25a2,{'className':_0x49739a(0x436),'variant':_0x18745f===_0xaa402b[_0x49739a(0x357)]?_0x49739a(0x3d2):_0x49739a(0x30e),'onClick':()=>_0xd07556(_0xaa402b['ascending']),'children':[_0x1c53e9(_0x5de895,{}),_0x3081ca['t'](_0x49739a(0x497))]}),_0x1108cb(_0x6d25a2,{'className':_0x49739a(0x436),'variant':_0x18745f===_0xaa402b['descending']?_0x49739a(0x3d2):'default','onClick':()=>_0xd07556(_0xaa402b['descending']),'children':[_0x1c53e9(_0xcbb196,{}),_0x3081ca['t'](_0x49739a(0x163))]})]}),_0x1108cb(_0x49739a(0x1e8),{'className':_0x49739a(0x28f),'children':[_0x1108cb(_0x49739a(0x1b8),{'className':_0x49739a(0x299),'children':[_0x1c53e9(_0x1eb8df,{'checked':_0x58db55,'indeterminate':_0x32d804['length']>0x0&&!_0x58db55,'onChange':()=>_0x5d69f4(_0x58db55?[]:_0x4f9285)}),_0x3081ca['t'](_0x49739a(0x337))]}),_0x4f9285['map']((_0x1c879b,_0x1869c4)=>_0x1108cb('label',{'className':_0x49739a(0x299),'children':[_0x1c53e9(_0x1eb8df,{'checked':_0x32d804[_0x49739a(0x3d0)](_0x1c879b),'onChange':()=>_0x5d69f4(_0x321c0a=>_0x321c0a[_0x49739a(0x3d0)](_0x1c879b)?_0x321c0a['filter'](_0x279d3d=>_0x279d3d!==_0x1c879b):[..._0x321c0a,_0x1c879b])}),_0x1c53e9(_0x49739a(0x213),{'className':_0x49739a(0x3aa),'children':go(_0x1c879b,_0x521371[_0x1869c4],_0x5cbf6a,_0x3081ca['t']('bases-dashboard-ui.pivot.blank'))})]},_0x1c879b))]}),_0x1108cb('div',{'className':_0x49739a(0x17a),'children':[_0x1c53e9(_0x6d25a2,{'variant':'link','onClick':()=>_0x49b02e['onCommit'](_0x4f9285,_0x18745f),'children':_0x3081ca['t'](_0x49739a(0x43c))}),_0x1108cb(_0x49739a(0x1e8),{'className':_0x49739a(0x30b),'children':[_0x1c53e9(_0x6d25a2,{'onClick':_0x49b02e[_0x49739a(0x16d)],'children':_0x3081ca['t']('bases-dashboard-ui.pivot.cancel')}),_0x1c53e9(_0x6d25a2,{'variant':_0x49739a(0x3d2),'disabled':_0x32d804[_0x49739a(0x2df)]===0x0,'onClick':()=>_0x49b02e['onCommit'](_0x32d804,_0x18745f),'children':_0x3081ca['t']('bases-dashboard-ui.pivot.confirm')})]})]})]});}function po(_0x51ce7d){const _0x376331=_0xbfff20;var _0x4ad8a9,_0x8dfc41,_0x2b21e8;let _0x3b1dfd=_0x29f087(_0x2989fb),[_0xe5b721,_0x474388]=_0x34e679(((_0x4ad8a9=_0x51ce7d['field'])==null?void 0x0:_0x4ad8a9['displayName'])??''),[_0x576214,_0xcf31d4]=_0x34e679(((_0x8dfc41=_0x51ce7d[_0x376331(0x2e6)])==null?void 0x0:_0x8dfc41['subtotal'])??_0x4ad10e[_0x376331(0x3c2)]),[_0x2b34e4,_0x43c510]=_0x34e679(((_0x2b21e8=_0x51ce7d[_0x376331(0x2e6)])==null?void 0x0:_0x2b21e8[_0x376331(0x1ea)])??'');return _0x51ce7d[_0x376331(0x2e6)]?_0x1108cb('section',{'className':_0x14b647('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',_0x14cf31),'children':[_0x1c53e9(_0x376331(0x1e8),{'className':_0x376331(0x3ea),'children':_0x3b1dfd['t']('bases-dashboard-ui.pivot.fieldSettings')}),_0x1108cb('label',{'className':_0x376331(0x223),'children':[_0x3b1dfd['t'](_0x376331(0x480)),_0x1c53e9(_0x1b54d7,{'value':_0xe5b721,'onChange':_0x474388})]}),_0x1108cb(_0x376331(0x1b8),{'className':_0x376331(0x223),'children':[_0x3b1dfd['t'](_0x376331(0x296)),_0x1c53e9(_0x219a49,{'value':String(_0x576214),'options':ao[_0x376331(0x1fd)](_0x24da6d=>({'value':String(_0x24da6d['value']),'label':_0x3b1dfd['t'](_0x24da6d[_0x376331(0x39b)])})),'onChange':_0xa05420=>{const _0x4e9a01=_0x376331;let _0x9d152f=ao[_0x4e9a01(0x1ac)](_0x28855c=>String(_0x28855c['value'])===_0xa05420);_0x9d152f&&_0xcf31d4(_0x9d152f['value']);}})]}),_0x1108cb('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x3b1dfd['t'](_0x376331(0x341)),_0x1c53e9(_0x1b54d7,{'value':_0x2b34e4,'onChange':_0x43c510})]}),_0x1108cb(_0x376331(0x1e8),{'className':_0x376331(0x431),'children':[_0x1c53e9(_0x6d25a2,{'onClick':_0x51ce7d[_0x376331(0x16d)],'children':_0x3b1dfd['t']('bases-dashboard-ui.pivot.cancel')}),_0x1c53e9(_0x6d25a2,{'variant':_0x376331(0x3d2),'disabled':!_0xe5b721['trim'](),'onClick':()=>_0x51ce7d[_0x376331(0x2d1)](_0xe5b721[_0x376331(0x278)](),_0x576214,_0x2b34e4),'children':_0x3b1dfd['t']('bases-dashboard-ui.pivot.confirm')})]})]}):null;}function mo(_0x1756c7){const _0x58ac66=_0xbfff20;let {config:_0x55b486,commit:_0x4cecc2}=_0x1756c7,_0x2778e8=_0x29f087(_0x2989fb),_0x26346f=_0x55b486[_0x58ac66(0x274)][_0x58ac66(0x37e)],_0x152a3d=_0x1b60c5=>_0x4cecc2(_0x1d3db4=>_0x1d3db4['setOptions']({..._0x1d3db4[_0x58ac66(0x46c)](),..._0x1b60c5}));return _0x1108cb(_0x58ac66(0x1e8),{'className':_0x58ac66(0x1e6),'children':[_0x1108cb(_0x58ac66(0x1b8),{'className':_0x58ac66(0x2f4),'children':[_0x2778e8['t'](_0x58ac66(0x348)),_0x1c53e9(_0x219a49,{'className':_0x58ac66(0x44c),'value':String(_0x55b486[_0x58ac66(0x274)][_0x58ac66(0x2fc)]),'options':[{'value':String(_0x66aa38['tabular']),'label':_0x2778e8['t'](_0x58ac66(0x385))},{'value':String(_0x66aa38[_0x58ac66(0x3eb)]),'label':_0x2778e8['t'](_0x58ac66(0x3f5))},{'value':String(_0x66aa38[_0x58ac66(0x3ff)]),'label':_0x2778e8['t'](_0x58ac66(0x45a))}],'onChange':_0x39441b=>{const _0x50cad2=_0x58ac66;let _0x56cd5e=[_0x66aa38['tabular'],_0x66aa38[_0x50cad2(0x3eb)],_0x66aa38['outline']][_0x50cad2(0x1ac)](_0x45de72=>String(_0x45de72)===_0x39441b);_0x56cd5e!==void 0x0&&_0x4cecc2(_0x8ceda9=>_0x8ceda9[_0x50cad2(0x37b)](_0x56cd5e));}})]}),[{'key':_0x58ac66(0x3a1),'label':_0x58ac66(0x3c3),'defaultValue':!0x1},{'key':_0x58ac66(0x48a),'label':_0x58ac66(0x1ff),'defaultValue':!0x1},{'key':_0x58ac66(0x3d8),'label':_0x58ac66(0x225),'defaultValue':!0x0},{'key':'showRowGrandTotal','label':_0x58ac66(0x3ad),'defaultValue':!0x0},{'key':_0x58ac66(0x160),'label':_0x58ac66(0x1ed),'defaultValue':!0x0},{'key':_0x58ac66(0x2a0),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}][_0x58ac66(0x1fd)](_0x2793af=>_0x1108cb(_0x58ac66(0x1b8),{'className':_0x58ac66(0x2ae),'children':[_0x1c53e9(_0x1eb8df,{'checked':!!(_0x26346f[_0x2793af[_0x58ac66(0x48d)]]??_0x2793af[_0x58ac66(0x3fa)]),'disabled':_0x2793af['key']==='repeatRowLabels'&&_0x55b486[_0x58ac66(0x274)][_0x58ac66(0x2fc)]===_0x66aa38['compact'],'onChange':_0x381a01=>_0x152a3d({[_0x2793af[_0x58ac66(0x48d)]]:!!_0x381a01})}),_0x2778e8['t'](_0x2793af[_0x58ac66(0x1b8)])]},_0x2793af[_0x58ac66(0x48d)])),_0x55b486[_0x58ac66(0x274)][_0x58ac66(0x2fc)]===_0x66aa38[_0x58ac66(0x3ff)]&&_0x1108cb('label',{'className':_0x58ac66(0x2f4),'children':[_0x2778e8['t'](_0x58ac66(0x323)),_0x1c53e9(_0x219a49,{'className':_0x58ac66(0x44c),'value':String(_0x26346f[_0x58ac66(0x329)]??_0x571e80['top']),'options':[{'value':String(_0x571e80[_0x58ac66(0x3e6)]),'label':_0x2778e8['t'](_0x58ac66(0x1c5))},{'value':String(_0x571e80[_0x58ac66(0x2a2)]),'label':_0x2778e8['t'](_0x58ac66(0x464))}],'onChange':_0x98d6e1=>{const _0x15d431=_0x58ac66;let _0x5e5f2f=[_0x571e80[_0x15d431(0x3e6)],_0x571e80[_0x15d431(0x2a2)]]['find'](_0x5483e0=>String(_0x5483e0)===_0x98d6e1);_0x5e5f2f!==void 0x0&&_0x152a3d({'rowSubtotalPosition':_0x5e5f2f});}})]}),_0x1108cb('label',{'className':_0x58ac66(0x2f4),'children':[_0x2778e8['t'](_0x58ac66(0x390)),_0x1c53e9(_0x219a49,{'className':_0x58ac66(0x44c),'value':String(_0x55b486[_0x58ac66(0x274)][_0x58ac66(0x275)]===_0xe5d4e5[_0x58ac66(0x26c)]?_0xe5d4e5[_0x58ac66(0x2b5)]:_0x55b486[_0x58ac66(0x274)][_0x58ac66(0x275)]),'options':[{'value':String(_0xe5d4e5['Column']),'label':_0x2778e8['t'](_0x58ac66(0x3bb))},{'value':String(_0xe5d4e5[_0x58ac66(0x350)]),'label':_0x2778e8['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x18433d=>{const _0x39b8ab=_0x58ac66;let _0x3bc02a=[_0xe5d4e5[_0x39b8ab(0x2b5)],_0xe5d4e5['Row']]['find'](_0x2231f4=>String(_0x2231f4)===_0x18433d);_0x3bc02a!==void 0x0&&_0x4cecc2(_0x53bd6e=>_0x53bd6e[_0x39b8ab(0x34d)](_0x3bc02a,_0x53bd6e[_0x39b8ab(0x16e)]()<0x0?0x0:_0x53bd6e['getValueIndex']()));}})]}),_0x1108cb(_0x58ac66(0x1b8),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x2778e8['t'](_0x58ac66(0x182)),_0x1c53e9(_0x5a3ae3,{'className':_0x58ac66(0x3d7),'min':0x1,'max':0x14,'value':_0x26346f[_0x58ac66(0x38e)]??0x1,'onChange':_0x1eb61b=>{const _0x554bad=_0x58ac66;let _0x331cbd=Number(_0x1eb61b);Number[_0x554bad(0x2da)](_0x331cbd)&&_0x331cbd>=0x1&&_0x152a3d({'pageWrap':_0x331cbd});}})]}),_0x1108cb('label',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x2778e8['t'](_0x58ac66(0x1c4)),_0x1c53e9(_0x219a49,{'className':_0x58ac66(0x44c),'value':String(_0x26346f['pageOverThenDown']??!0x1),'options':[{'value':_0x58ac66(0x41f),'label':_0x2778e8['t'](_0x58ac66(0x3c4))},{'value':_0x58ac66(0x354),'label':_0x2778e8['t'](_0x58ac66(0x269))}],'onChange':_0x43f531=>_0x152a3d({'pageOverThenDown':_0x43f531==='true'})})]})]});}function ho(_0x4721ee,_0x3dcce7,_0xeb2a9e,_0x39dccf){const _0x27ecd1=_0xbfff20;let _0x3ebb81=_0x4721ee[_0x27ecd1(0x3e4)](_0x3dcce7)[_0x27ecd1(0x1ac)](_0x3e44f3=>_0x4721ee[_0x27ecd1(0x19e)](_0x3e44f3[_0x27ecd1(0x3c6)]())[_0x27ecd1(0x450)]!==_0x1126e4[_0x27ecd1(0x2aa)]);_0xeb2a9e!==_0x1126e4['Value']&&_0x3ebb81?_0x4721ee[_0x27ecd1(0x445)](_0x3ebb81[_0x27ecd1(0x3c6)](),_0xeb2a9e,_0x39dccf):_0x4721ee['addFieldWithSourceId'](_0x3dcce7,_0xeb2a9e,_0x39dccf);}function go(_0x3ca653,_0x48de91,_0x1a1c1e,_0x264200){const _0xaf524=_0xbfff20;return _0x48de91===_0x48a00c[_0xaf524(0x330)]?_0x264200:_0x48de91===_0x48a00c[_0xaf524(0x2f1)]&&_0x1a1c1e?_0x4bc3f5[_0xaf524(0x1ea)](_0x1a1c1e,Number(_0x3ca653)):_0x3ca653;}function _o(_0x3e0ecd){const _0x23cf79=_0xbfff20;return _0x3e0ecd[_0x23cf79(0x427)]===_0x4fcd7c['Number']||_0x3e0ecd[_0x23cf79(0x427)]===_0x4fcd7c[_0x23cf79(0x256)]||_0x3e0ecd[_0x23cf79(0x427)]===_0x4fcd7c[_0x23cf79(0x3de)]||_0x3e0ecd[_0x23cf79(0x427)]===_0x4fcd7c['Rating'];}function vo(_0x3d1e3c){const _0x1c8e57=_0xbfff20;switch(_0x3d1e3c){case _0x1126e4[_0x1c8e57(0x350)]:return _0x1c8e57(0x215);case _0x1126e4['Column']:return _0x1c8e57(0x2fa);case _0x1126e4[_0x1c8e57(0x2aa)]:return'bases-dashboard-ui.pivot.addToValue';default:return _0x1c8e57(0x3a7);}}function yo({config:_0x3fd19a,onChange:_0x21e4a6,runtime:_0x1b216e,table:_0xc81a13}){const _0x3aa28d=_0xbfff20;let _0x22ac4d=_0x29f087(_0x2989fb),[_0x210eda,_0x3af5ea]=_0x34e679('chart');return _0x1108cb(_0x3aa28d(0x1fb),{'className':_0x3aa28d(0x42b),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x22ac4d['t'](_0x3aa28d(0x3f2)),'className':'univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','items':[{'label':_0x22ac4d['t'](_0x3aa28d(0x1eb)),'panelId':'base-pivot-chart-configuration','value':_0x3aa28d(0x252)},{'label':_0x22ac4d['t'](_0x3aa28d(0x3c9)),'panelId':_0x3aa28d(0x37d),'value':_0x3aa28d(0x274)}],'value':_0x210eda,'variant':_0x3aa28d(0x16a),'onChange':_0x3af5ea}),_0x1c53e9(_0x3aa28d(0x1e8),{'className':_0x3aa28d(0x3ac),'children':_0x210eda===_0x3aa28d(0x252)?_0x1b216e&&_0x1c53e9(pa,{'config':_0x3fd19a,'runtime':_0x1b216e,'tableName':_0xc81a13['name'],'onChange':_0x21e4a6}):_0x1c53e9(oo,{'config':_0x3fd19a,'table':_0xc81a13,'onChange':_0x21e4a6})})]});}function bo({tableId:_0xc8fe45,unitId:_0xdab8ad,viewId:_0x23e33b}){const _0x391ce8=_0xbfff20;let _0x2f789b=_0x29f087(_0x2220df),_0x5d13db=_0x29f087(_0x14186a),_0x51f38f=_0x29f087(_0x49fceb),_0x46050d=_0x29f087(_0x2989fb),_0x28a5ea=_0x29f087(_0x441727),[_0x4c06c1,_0x32c438]=_0x34e679(null),[_0x43c515,_0xcbc1a2]=_0x34e679(null),_0x56a9ee=_0x2861da('base-pivot-chart-'+_0xd28735(0x8)),[_0x3b6685,_0x1f4abd]=_0x34e679(!0x1),_0x1c1f3a=_0x5d13db['getUnit'](_0xdab8ad,_0x37ea54[_0x391ce8(0x2e2)]),_0x5f38f8=_0x1c1f3a==null?void 0x0:_0x1c1f3a[_0x391ce8(0x373)]()[_0x391ce8(0x3df)][_0xc8fe45],_0xf36d6e=_0x5f38f8==null?void 0x0:_0x5f38f8['views'][_0x23e33b],_0x1eb71e=xo(_0xf36d6e),_0x44f825=vr(_0xdab8ad,_0xc8fe45,_0x23e33b);if(_0x436796(()=>{const _0x508530=_0x391ce8;if(!_0x1eb71e)return;let _0x2a7cc6=_0x56a9ee[_0x508530(0x49d)];return _0x28a5ea['acquireChartRuntime'](_0x2a7cc6,{'unitId':_0xdab8ad,'tableId':_0xc8fe45,'viewId':_0x23e33b,'filters':[]}),()=>{const _0x1b0345=_0x508530;_0x28a5ea[_0x1b0345(0x414)](_0xdab8ad,_0x2a7cc6);};},[_0x1eb71e,_0x28a5ea,_0xc8fe45,_0xdab8ad,_0x23e33b]),_0x436796(()=>{const _0x54134b=_0x391ce8;if(!xo(_0xf36d6e))return;let _0x148d58=!0x0,_0x407bf8={'unitId':_0xdab8ad,'tableId':_0xc8fe45,'viewId':_0x23e33b,'filters':[_0xf36d6e[_0x54134b(0x2be)]??null]};return _0x28a5ea[_0x54134b(0x2b1)](_0xdab8ad,_0x56a9ee[_0x54134b(0x49d)],_0x407bf8)[_0x54134b(0x271)](_0x2fdc29=>{const _0x36d3de=_0x54134b;_0x148d58&&_0x2fdc29&&(_0x32c438(_0x2fdc29),_0xcbc1a2(_0x28a5ea[_0x36d3de(0x3bf)](_0xdab8ad,_0x56a9ee[_0x36d3de(0x49d)])??null),_0x1f4abd(!0x1));})[_0x54134b(0x433)](_0x537765=>{const _0x1c0989=_0x54134b;_0x51f38f[_0x1c0989(0x1a6)](_0x1c0989(0x33f),_0x537765),_0x148d58&&(_0x32c438(null),_0x1f4abd(!0x0));}),()=>{_0x148d58=!0x1;};},[_0x51f38f,_0x28a5ea,_0xc8fe45,_0xdab8ad,_0xf36d6e,_0x23e33b]),!_0x5f38f8||!xo(_0xf36d6e))return null;let _0x324be2=_0x28a5ea[_0x391ce8(0x3bf)](_0xdab8ad,_0x56a9ee[_0x391ce8(0x49d)])===_0x43c515?_0x43c515:null,_0x5136ac=_0x4c06c1?_0x1108cb('div',{'className':_0x391ce8(0x465),'style':{'gridTemplateRows':_0xf36d6e[_0x391ce8(0x167)]['displayMode']===_0x391ce8(0x36e)?_0x391ce8(0x3e2):'minmax(0,\x201fr)'},'children':[_0xf36d6e[_0x391ce8(0x167)]['displayMode']!=='table'&&_0x324be2&&_0x1c53e9('div',{'className':_0x391ce8(0x176),'children':_0x1c53e9(Lr,{'isRowDirection':_0x3b57e8(_0xf36d6e[_0x391ce8(0x167)][_0x391ce8(0x252)][_0x391ce8(0x292)]),'runtime':_0x324be2})}),_0xf36d6e[_0x391ce8(0x167)][_0x391ce8(0x463)]!==_0x391ce8(0x252)&&_0x1c53e9(_0x391ce8(0x1e8),{'className':_0x391ce8(0x45d),'children':_0x1c53e9(Ai,{'pivot':_0xf36d6e[_0x391ce8(0x167)]['pivot'],'view':_0x4c06c1[_0x391ce8(0x1f5)]})})]}):_0x1c53e9('div',{'className':_0x391ce8(0x216),'children':_0x3b6685?_0x46050d['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x46050d['t'](_0x391ce8(0x3b2))});return _0x1108cb(_0x391ce8(0x1e8),{'className':_0x391ce8(0x3dd),'children':[_0x1c53e9(_0x391ce8(0x1e8),{'className':_0x391ce8(0x3e9),'children':_0x5136ac}),_0x44f825&&_0x1c53e9(yo,{'config':_0xf36d6e[_0x391ce8(0x167)],'runtime':_0x324be2,'table':_0x5f38f8,'onChange':_0x382643=>{const _0xe72c6a=_0x391ce8;_0x2f789b[_0xe72c6a(0x42e)](_0x50437b['id'],{'unitId':_0xdab8ad,'tableId':_0xc8fe45,'viewId':_0x23e33b,'patch':_0x382643})[_0xe72c6a(0x433)](_0x1afb34=>_0x51f38f[_0xe72c6a(0x1a6)](_0xe72c6a(0x3cd),_0x1afb34));}})]});}function xo(_0x2b69b8){const _0x16b16c=_0xbfff20;return(_0x2b69b8==null?void 0x0:_0x2b69b8[_0x16b16c(0x427)])===_0x54a718['Pivot']&&typeof _0x2b69b8[_0x16b16c(0x167)]==_0x16b16c(0x235)&&_0x2b69b8[_0x16b16c(0x167)]!==null&&_0x16b16c(0x274)in _0x2b69b8[_0x16b16c(0x167)]&&_0x16b16c(0x252)in _0x2b69b8[_0x16b16c(0x167)]&&'displayMode'in _0x2b69b8[_0x16b16c(0x167)];}let So=class extends _0x2eec42{constructor(_0x52018b,_0x3ed455,_0x41eb33,_0x59d0e5,_0x4acb67,_0x1c867f){const _0x4bfe2b=_0xbfff20;super(),this[_0x4bfe2b(0x253)](_0x3ed455[_0x4bfe2b(0x219)]({'type':_0x54a718[_0x4bfe2b(0x2c9)],'renderMode':_0x4bfe2b(0x304),'icon':_0x25ef71,'component':bo,'menu':{get 'label'(){const _0x4855e0=_0x4bfe2b;return _0x1c867f['t'](_0x4855e0(0x3f2));},get 'description'(){const _0x1c2bf7=_0x4bfe2b;return _0x1c867f['t'](_0x1c2bf7(0x41c));},get 'defaultName'(){const _0x23e4a3=_0x4bfe2b;return _0x1c867f['t'](_0x23e4a3(0x475));}}})),this[_0x4bfe2b(0x253)](_0x52018b[_0x4bfe2b(0x219)](Co(_0x41eb33,_0x59d0e5,_0x4acb67,_0x1c867f)));}};So=kr([Y(0x0,_0x2a9f9e),Y(0x1,_0x1611be),Y(0x2,_0x38b292(_0x309002)),Y(0x3,_0x2220df),Y(0x4,_0x4deb76),Y(0x5,_0x38b292(_0x2989fb))],So);function Co(_0x3ad195,_0x4a009c,_0x1b38be,_0x2cd89b){const _0x3aa5ee=_0xbfff20;return{'change$':_0x440773(_0x3ad195[_0x3aa5ee(0x2bc)],_0x1b38be[_0x3aa5ee(0x179)]),'component':Ya,get 'labels'(){const _0x6024d7=_0x3aa5ee;return{'add':_0x2cd89b['t'](_0x6024d7(0x443)),'configure':_0x474657=>_0x2cd89b['t'](_0x6024d7(0x2d0),_0x474657),'delete':_0x2cd89b['t'](_0x6024d7(0x171)),'new':_0x2cd89b['t'](_0x6024d7(0x3ae)),'rename':_0x2cd89b['t']('bases-dashboard-ui.dashboard.rename'),'search':_0x2cd89b['t']('bases-dashboard-ui.dashboard.search'),'section':_0x2cd89b['t'](_0x6024d7(0x2ec))};},'getItems':_0x269143=>{const _0x570e74=_0x3aa5ee;let _0x332e74=_0x3ad195[_0x570e74(0x1ce)](_0x269143);return _0x332e74['dashboardOrder'][_0x570e74(0x31f)](_0x28cbba=>{const _0x20eadc=_0x570e74;let _0x4d5d2f=_0x332e74[_0x20eadc(0x344)][_0x28cbba];return _0x4d5d2f?[{'id':_0x4d5d2f['id'],'name':_0x4d5d2f[_0x20eadc(0x3ca)],'readonly':!_0x120634(_0x1b38be,_0x269143,_0x4d5d2f['id'])}]:[];});},'create':async _0xcf4b8b=>{const _0x9ba14a=_0x3aa5ee;let _0x1e24e5=_0x3ad195[_0x9ba14a(0x1ce)](_0xcf4b8b),_0x16e616='dashboard-'+_0xd28735(0x8),_0x2dd663=wo(_0x1e24e5[_0x9ba14a(0x28e)][_0x9ba14a(0x31f)](_0x412553=>{const _0x28e583=_0x9ba14a;let _0x1b3ba2=_0x1e24e5['dashboards'][_0x412553];return _0x1b3ba2?[_0x1b3ba2[_0x28e583(0x3ca)]]:[];}),_0x48d163=>_0x2cd89b['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x48d163)));return await _0x4a009c[_0x9ba14a(0x42e)](_0x28a4bb['id'],{'unitId':_0xcf4b8b,'dashboard':{'id':_0x16e616,'name':_0x2dd663,'widgetOrder':[],'widgets':{}}})?_0x16e616:null;},'rename':async(_0x528483,_0x5049e6,_0x26246d)=>{const _0x1dce32=_0x3aa5ee;let _0x470694=_0x3ad195[_0x1dce32(0x34a)](_0x528483,_0x5049e6);return!!(_0x470694&&await _0x4a009c[_0x1dce32(0x42e)](_0x39c855['id'],{'unitId':_0x528483,'dashboard':{..._0x470694,'name':_0x26246d}}));},'remove':(_0x477ada,_0x5335c2)=>_0x4a009c[_0x3aa5ee(0x42e)](_0x22a544['id'],{'unitId':_0x477ada,'dashboardId':_0x5335c2})};}function wo(_0x4322b4,_0x3572c4){const _0x2c09fa=_0xbfff20;let _0x5a1e60=new Set(_0x4322b4),_0x32da9c=_0x5a1e60['size']+0x1,_0x3ac5e6=_0x3572c4(_0x32da9c);for(;_0x5a1e60[_0x2c09fa(0x2f8)](_0x3ac5e6);)_0x32da9c+=0x1,_0x3ac5e6=_0x3572c4(_0x32da9c);return _0x3ac5e6;}let To=class extends _0x14271e{constructor(_0x30cb17=gr,_0x3a7904,_0xd55122){const _0x5e0c8e=_0xbfff20;super(),this[_0x5e0c8e(0x469)]=_0x30cb17,this[_0x5e0c8e(0x326)]=_0x3a7904,this[_0x5e0c8e(0x403)]=_0xd55122;let {..._0x2368db}=_0x2004cb({},gr,this[_0x5e0c8e(0x469)]);this[_0x5e0c8e(0x403)][_0x5e0c8e(0x4a4)](hr,_0x2368db);}[_0xbfff20(0x37a)](){const _0x48a8f6=_0xbfff20;this[_0x48a8f6(0x326)][_0x48a8f6(0x1d7)]([Ar]),this[_0x48a8f6(0x326)][_0x48a8f6(0x1d7)]([Kr]),this[_0x48a8f6(0x326)][_0x48a8f6(0x1d7)]([So]);}[_0xbfff20(0x184)](){const _0x5bfa0f=_0xbfff20;_0x5b9752(this[_0x5bfa0f(0x326)],[[Ar],[Kr],[So]]);}};Fr(To,'type',_0x37ea54[_0xbfff20(0x2e2)]),Fr(To,'pluginName','BASE_DASHBOARD_UI_PLUGIN'),Fr(To,_0xbfff20(0x267),pr),Fr(To,'version',mr),To=kr([_0x1957bf(_0x36c2e0,_0xbeeff3,_0xfebde9,_0x136391,_0x3371b7,_0xc91b76),Y(0x1,_0x38b292(_0x38337e)),Y(0x2,_0x6de229)],To);export{ra as UniverBaseDashboardMobileUIPlugin,To as UniverBaseDashboardUIPlugin};
1
+ const _0x51bd0c=_0x30a0;(function(_0xe646ec,_0x47d346){const _0x4dee96=_0x30a0,_0x15f976=_0xe646ec();while(!![]){try{const _0x594f77=parseInt(_0x4dee96(0x463))/0x1*(parseInt(_0x4dee96(0x26e))/0x2)+parseInt(_0x4dee96(0x196))/0x3*(parseInt(_0x4dee96(0x161))/0x4)+-parseInt(_0x4dee96(0x452))/0x5*(-parseInt(_0x4dee96(0x21d))/0x6)+parseInt(_0x4dee96(0x262))/0x7+-parseInt(_0x4dee96(0x26f))/0x8*(-parseInt(_0x4dee96(0x2a5))/0x9)+parseInt(_0x4dee96(0x224))/0xa+-parseInt(_0x4dee96(0x276))/0xb;if(_0x594f77===_0x47d346)break;else _0x15f976['push'](_0x15f976['shift']());}catch(_0x20050b){_0x15f976['push'](_0x15f976['shift']());}}}(_0x2270,0x46b9b));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x2dd572,BASES_DASHBOARD_GRID_COLUMNS as _0x24b836,BaseChartRuntimeService as _0x49c96a,BaseDashboardResourceService as _0x46b07c,BaseDashboardWidgetType as _0x9d376a,CreateBaseDashboardCommand as _0x184b01,DeleteBaseDashboardCommand as _0x1361be,RemoveBaseDashboardWidgetCommand as _0x56e93a,UniverBaseDashboardPlugin as _0x3f977a,UpdateBaseDashboardCommand as _0x5741e1,UpdateBasePivotViewCommand as _0x29ecfe,UpsertBaseDashboardWidgetCommand as _0x2bce9e,canEditBaseDashboard as _0x1c7e4f,canEditBasePivotView as _0x396953,createBasePivotTable as _0x3c1840,resolveBasePivotChartRowDirection as _0xa65f9f}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x426ed6,BaseMobileDrawer as _0x5abe1b,BaseMobileFilterOperand as _0x1fbf6a,BaseMobileFilterPanel as _0x18b26e,BaseUnitCollaborationStatus as _0x3c3ee4,FormulaEditorPanel as _0x3ee07b,IBaseDashboardUIExtensionRegistryService as _0x13f33c,IBaseViewUIRegistryService as _0x46f0b2,MobileFormulaEditorPanel as _0x2820c6,UniverBasesMobileUIPlugin as _0x320762,UniverBasesUIPlugin as _0x238faa,formulaToEditorFormula as _0x4c4798,normalizeEditorFormulaForConfig as _0x508683,toFormulaMenuTables as _0x1012bd,toMenuFields as _0x5d053c}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x2a4d2b,ChartAxisSection as _0x2f8b33,ChartColorField as _0x35e2b4,ChartCommonDataMappingSection as _0x2ef133,ChartEditBlockTitle as _0x23b11e,ChartEditPanel as _0x38b71a,ChartEditPanelSection as _0x39a6c4,ChartEditPanelTab as _0xd7f52a,ChartEditPanelTabs as _0x331878,ChartEditorCapability as _0x4ed18f,ChartEditorProvider as _0x1b7f92,ChartFunnelStyleSection as _0x2487c8,ChartGradientFillField as _0x4fbd7e,ChartGridlinesAndTicksSection as _0x3e0c2c,ChartHeatmapStyleSection as _0xa88506,ChartHostAdapter as _0x59650f,ChartIndicatorLineSection as _0x53b526,ChartLegendSection as _0x3a58c8,ChartLineAndAreaSection as _0x1feabd,ChartNumberFormatAtom as _0xc1dc99,ChartParetoSeriesSection as _0x133228,ChartPieStyleSection as _0x2d8742,ChartRadarStyleSection as _0x4acb7b,ChartRelationStyleSection as _0x347a14,ChartSectionAccordion as _0xf7e9d,ChartSectionAccordionContent as _0x493e5f,ChartSectionAccordionItem as _0x154f26,ChartSectionAccordionTrigger as _0x5948a8,ChartSeriesSection as _0x44dd07,ChartStackField as _0x1a336c,ChartStyleSection as _0x36e959,ChartThemeField as _0x4034d5,ChartThreeDSection as _0x3d51fa,ChartTitlesSection as _0x477bac,ChartTrendlineSection as _0x59bf12,ChartTypeField as _0x164a8c,ChartTypeSpecificDataSection as _0xa492d5,ChartTypeSpecificSetupSection as _0xedfe4a,ChartTypeSpecificStyleSection as _0x2529ec,ChartUIService as _0x14b251,ChartViewStateRegistry as _0x2606f1,ChartWaterfallSetupFields as _0x4bc741,ChartWaterfallStyleSection as _0x350f8c,ChartWordCloudStyleSection as _0x38fcfb,DEFAULT_CHART_AXIS_VALUES as _0x52e779,DEFAULT_CHART_FUNNEL_VALUES as _0x40f42e,DEFAULT_CHART_HEATMAP_VALUES as _0x236616,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x4b5c03,DEFAULT_CHART_LEGEND_VALUES as _0x128068,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0xf0a761,DEFAULT_CHART_PARETO_VALUES as _0x161614,DEFAULT_CHART_PIE_VALUES as _0x3717dd,DEFAULT_CHART_RADAR_VALUES as _0x5dc3b0,DEFAULT_CHART_RELATION_VALUES as _0x38bd5f,DEFAULT_CHART_SERIES_VALUES as _0x52331b,DEFAULT_CHART_STYLE_VALUES as _0x255ffa,DEFAULT_CHART_TITLE_VALUES as _0x1175bb,DEFAULT_CHART_TRENDLINE_VALUES as _0x4ed75f,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x4e5a18,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x2bc803,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x224db6,MobileChartEditorControls as _0x4de0fb,MobileChartEditorProvider as _0xcd7800,UniverChartMobileUIPlugin as _0xbff2bc,UniverChartUIPlugin as _0xb4aec9,buildChartTypeSelectOptions as _0x5ef485,chartTypeSupportsCapability as _0x5a38e7,chartTypeSupportsLineAndAreaStyle as _0xf7387b,useChartEditorChartType as _0x4ce6a7,useChartEditorHasRightAxis as _0x14227c}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x237f5b}from'@univerjs-pro/license';import{ShapeFormulaService as _0xee43d,UniverShapeEditorPlugin as _0x4e4724,createFormulaShapeData as _0x2775b7}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0x22c46f,BaseFilterConjunction as _0xf66dad,BaseFilterOperator as _0x189a6d,BaseViewType as _0x497849,DependentOn as _0x528588,Disposable as _0x1a82b4,ICommandService as _0x19ef53,IConfigService as _0x451e15,IImageIoService as _0x4ae27a,ILogService as _0x57f04c,IPermissionService as _0x278622,IUndoRedoService as _0x743e43,IUniverInstanceService as _0x490434,ImageSourceType as _0x476f1b,Inject as _0x986575,Injector as _0x58f1ef,LocaleService as _0x3e9ffe,ObjectPermissionService as _0x3023bc,Plugin as _0x465305,RedoCommand as _0x590feb,ThemeService as _0x445d1e,UndoCommand as _0x407305,UniverInstanceType as _0xe1c385,createParagraphId as _0x265312,dateKit as _0x483f21,debounce as _0x2a48d5,generateRandomId as _0x5620a1,merge as _0x24504d,numfmt as _0x5cfbc7,touchDependencies as _0x1aefec}from'@univerjs/core';import{UniverDocsUIPlugin as _0x5dd22a}from'@univerjs/docs-ui';import{ArrowDownIcon as _0x56d4e1,ArrowUpIcon as _0x3d935d,AscendingIcon as _0x2dc2a4,CalendarIcon as _0x255dc2,ChartIcon as _0x548907,CloseIcon as _0x1017fb,DeleteIcon as _0x9b7646,DescendingIcon as _0x1ef570,ExpandIcon as _0x34da2c,FilterIcon as _0x4d4214,GripVerticalIcon as _0x33b779,IncreaseIcon as _0x313c06,MoreDownIcon as _0x1ed3b5,MoreHorizontalIcon as _0x5b55fe,NumberIcon as _0x2e38a6,PenIcon as _0x5a0d30,PivotTableIcon as _0x3a5ee2,ProtectIcon as _0x54f15e,RedoIcon as _0x439808,SearchIcon as _0x586c4b,TextIcon as _0x5bb4c2,UndoIcon as _0x3b0f1b}from'@univerjs/icons';import{combineLatest as _0x5ccec2,map as _0xa2a9f7,merge as _0x4a9a96,skip as _0x33eb3c}from'rxjs';import{SetBasePermissionCommand as _0x1b8d6f,getBaseDashboardPermissionObjectId as _0x562c16}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x595f75}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x33e001,ShapeLineTypeEnum as _0x28520f,ShapeTypeEnum as _0x12a5a1}from'@univerjs-pro/engine-shape';import{Button as _0x2d5ef7,Checkbox as _0x191a88,DatePicker as _0x2030e2,Dialog as _0x1166cb,DropdownMenu as _0x13d257,Input as _0x177173,InputNumber as _0x1ccd7d,MobileDialog as _0x23cae4,MobileDropdownMenu as _0x51dd07,MobileSelect as _0x2c20a2,MultipleSelect as _0x49e2ad,Segmented as _0x16aea6,Select as _0x35cb89,Textarea as _0x562bce,Tooltip as _0x3f727d,borderClassName as _0x196159,clsx as _0x1ba4bd,scrollbarClassName as _0x2a2c66}from'@univerjs/design';import{UnitObject as _0x5c4bf9}from'@univerjs/protocol';import{ILayoutService as _0x196ea2,ObjectPermissionButton as _0x3ea620,openObjectPermissionDialog as _0x2a3c8c,useDependency as _0x59ceb1,useObservable as _0x50b983}from'@univerjs/ui';import{useCallback as _0x42d58e,useEffect as _0x3dfd92,useMemo as _0x592e4f,useRef as _0x2c3a8a,useState as _0x446379}from'react';import{Fragment as _0x10fa69,jsx as _0xe7503a,jsxs as _0x3067ce}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x123b5d,ChartRenderMode as _0x301ecd,ChartThemeService as _0x55c3f9,ChartTypeBits as _0x26e67f,ChartWaterfallStyleTarget as _0x49880d,IChartRenderModelManagerService as _0x470bf7,RTLChartStyle as _0x5a0d45,chartBitsUtils as _0x5dedd8,chartTypeCanUseTrendLine as _0x3ca261,resolveChartRuntimeStyle as _0x5e7381,resolveDefaultChartHostFrameStyle as _0x40bcb1,toChartModelUpdate as _0x33ebeb}from'@univerjs-pro/engine-chart';import{createPortal as _0x26e413}from'react-dom';import{PivotCellStyleTypeEnum as _0x426f17,PivotDataFieldDataTypeEnum as _0x502fcd,PivotDataFieldSortOperatorEnum as _0x4edbe4,PivotFilterTypeEnum as _0x16546e,PivotLayoutTypeEnum as _0x5aaea3,PivotSubtotalPositionEnum as _0x3472cd,PivotSubtotalTypeEnum as _0xc6923e,PivotTableFiledAreaEnum as _0x4fb992,PivotTableValuePositionEnum as _0x16715e,isErrorValue as _0x4e4eb4,isPrefixValue as _0x1d26d6}from'@univerjs-pro/engine-pivot';var mr=_0x51bd0c(0x149),hr=_0x51bd0c(0x1e7);const gr=_0x51bd0c(0x2c3),_r={};function vr(_0x53f5ab,_0xe6715c){const _0x9c49e9=_0x51bd0c;let _0x49af9f=_0x59ceb1(_0x278622),_0x12cbae=_0x1c7e4f(_0x49af9f,_0x53f5ab,_0xe6715c);return _0x50b983(()=>_0x49af9f[_0x9c49e9(0x19c)]['pipe'](_0xa2a9f7(()=>_0x1c7e4f(_0x49af9f,_0x53f5ab,_0xe6715c))),_0x12cbae,!0x1,[_0xe6715c,_0x49af9f,_0x53f5ab]);}function yr(_0x2965c3,_0x563ea9,_0x1c69d6){let _0x281fc7=_0x59ceb1(_0x278622),_0x5a54d7=_0x396953(_0x281fc7,_0x2965c3,_0x563ea9,_0x1c69d6);return _0x50b983(()=>_0x281fc7['permissionPointUpdate$']['pipe'](_0xa2a9f7(()=>_0x396953(_0x281fc7,_0x2965c3,_0x563ea9,_0x1c69d6))),_0x5a54d7,!0x1,[_0x281fc7,_0x563ea9,_0x2965c3,_0x1c69d6]);}function br(_0x3e70de,_0x2141f4=_0x51bd0c(0x1c6)){const _0x50ed19=_0x51bd0c;return{'backgroundImage':_0x50ed19(0x2f4)+JSON[_0x50ed19(0x324)](_0x3e70de)+')','backgroundPosition':_0x2141f4==='repeat'?_0x50ed19(0x178):'center','backgroundRepeat':_0x2141f4==='repeat'?_0x50ed19(0x3f4):_0x50ed19(0x1fe),'backgroundSize':_0x2141f4===_0x50ed19(0x1c6)?_0x50ed19(0x1c6):'auto'};}const xr={'alignment':_0x51bd0c(0x489),'currency':_0x51bd0c(0x341),'decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x51bd0c(0x2e5),'numberFormat':'general'},Sr={'CNY':'¥','EUR':'€','USD':'$'};function Cr(_0x54f06f){const _0x5004f9=_0x51bd0c;var _0x4b9d9a;let _0xe8b3a9=Dr(((_0x4b9d9a=_0x54f06f[_0x5004f9(0x346)]['formulaBinding'])==null||(_0x4b9d9a=_0x4b9d9a[_0x5004f9(0x33a)])==null?void 0x0:_0x4b9d9a[_0x5004f9(0x482)])??'');return{...xr,..._0xe8b3a9,..._0x54f06f[_0x5004f9(0x45e)]};}function wr(_0x1485cb,_0x50d8e5){const _0x3455d1=_0x51bd0c;let _0x36748d={..._0x1485cb[_0x3455d1(0x45e)],..._0x50d8e5},_0x42f023=Cr({..._0x1485cb,'appearance':_0x36748d}),_0xec9970=_0x1485cb[_0x3455d1(0x346)][_0x3455d1(0x42c)]??{'formula':''};return{..._0x1485cb,'appearance':_0x36748d,'shapeData':{..._0x1485cb[_0x3455d1(0x346)],'formulaBinding':{..._0xec9970,'numberFormat':{'pattern':Tr(_0x42f023[_0x3455d1(0x33a)],_0x42f023['decimalPlaces'],_0x42f023[_0x3455d1(0x38d)])}}}};}function Tr(_0x323a0c,_0x5318a0,_0x5e78d2){const _0x2157dd=_0x51bd0c;let _0x349ac6=Math[_0x2157dd(0x335)](0x0,Math[_0x2157dd(0x1f1)](0x8,Math[_0x2157dd(0x249)](_0x5318a0))),_0x4a75ad=_0x349ac6?'.'+'0'['repeat'](_0x349ac6):'';switch(_0x323a0c){case _0x2157dd(0x380):return'0'+_0x4a75ad;case _0x2157dd(0x48c):return'0'+_0x4a75ad+'%';case _0x2157dd(0x38d):return(Sr[_0x5e78d2]??_0x5e78d2)+_0x2157dd(0x1f9)+_0x4a75ad;case _0x2157dd(0x184):return'#,##0'+_0x4a75ad;case _0x2157dd(0x2a9):case _0x2157dd(0x148):return'General';}}function Er(_0x5b6f76,_0x27d359,_0x45075e){const _0x4f01fa=_0x51bd0c;return _0x45075e[_0x4f01fa(0x33a)]!==_0x4f01fa(0x2a9)||typeof _0x27d359!=_0x4f01fa(0x380)||!Number[_0x4f01fa(0x2d9)](_0x27d359)?_0x5b6f76:new Intl['NumberFormat'](void 0x0,{'notation':_0x4f01fa(0x2a9),'minimumFractionDigits':_0x45075e['decimalPlaces']??0x0,'maximumFractionDigits':_0x45075e['decimalPlaces']??0x0})[_0x4f01fa(0x477)](_0x27d359);}function Dr(_0x409a7e){const _0x11e571=_0x51bd0c;var _0x3f9fd9,_0x2c64ec;if(!_0x409a7e||_0x409a7e==='General')return{};let _0x5a00df=_0x409a7e[_0x11e571(0x274)](/\.([0#]+)/),_0x440d49=(_0x5a00df==null||(_0x3f9fd9=_0x5a00df[0x1])==null?void 0x0:_0x3f9fd9['length'])??0x0;if(_0x409a7e[_0x11e571(0x3d3)]('%'))return{'decimalPlaces':_0x440d49,'numberFormat':_0x11e571(0x48c)};let _0x2f5375=(_0x2c64ec=Object['entries'](Sr)['find'](([,_0x3a398e])=>_0x409a7e[_0x11e571(0x3d3)](_0x3a398e)))==null?void 0x0:_0x2c64ec[0x0];return _0x2f5375?{'currency':_0x2f5375,'decimalPlaces':_0x440d49,'numberFormat':_0x11e571(0x38d)}:{'decimalPlaces':_0x440d49,'numberFormat':_0x409a7e[_0x11e571(0x3d3)](',')?_0x11e571(0x184):_0x11e571(0x380)};}const Or={'center':'center','left':_0x51bd0c(0x23e),'right':_0x51bd0c(0x301)};function kr({dashboardId:_0x30af4a,unitId:_0x26e91f,widget:_0x357105}){const _0x31f537=_0x51bd0c;var _0x4bc5a9,_0x4be3ee,_0x55258e,_0x31574a,_0x45e48f,_0x3ea74e,_0xd5032d,_0x3fe173,_0x4d263d;let _0x1f2853=_0x59ceb1(_0xee43d),_0x5d6d55=_0x59ceb1(_0x4ae27a),_0xb2903=_0x59ceb1(_0x3e9ffe),_0x5cda24=_0x592e4f(()=>({'hostType':_0xe1c385[_0x31f537(0x319)],'unitId':_0x26e91f,'subUnitId':_0x30af4a,'shapeId':_0x357105['id']}),[_0x30af4a,_0x26e91f,_0x357105['id']]),[_0x1a130f,_0xa23f5b]=_0x446379(()=>_0x1f2853['getPresentation'](_0x5cda24)),[_0x130264,_0xa30705]=_0x446379(()=>{const _0x2de3ea=_0x31f537;var _0x2f377f;return(_0x2f377f=_0x1f2853[_0x2de3ea(0x2b5)](_0x5cda24))==null?void 0x0:_0x2f377f[_0x2de3ea(0x303)];}),[_0x271c24,_0x3388c5]=_0x446379(),_0x5d7360=_0x2c3a8a(null),_0x332623=_0x2c3a8a(null),_0x28704f=Cr(_0x357105);_0x3dfd92(()=>{const _0x4bcb7c=_0x31f537;let _0x5ab954=_0x1f2853[_0x4bcb7c(0x3a3)]['subscribe'](_0x256cbb=>{const _0x22877a=_0x4bcb7c;_0x256cbb['unitId']===_0x26e91f&&_0x256cbb[_0x22877a(0x13a)]===_0x30af4a&&_0x256cbb[_0x22877a(0x40c)]===_0x357105['id']&&(_0xa23f5b(_0x256cbb['presentation']),_0xa30705(_0x256cbb['result'][_0x22877a(0x303)]));});return()=>_0x5ab954[_0x4bcb7c(0x48d)]();},[_0x30af4a,_0x1f2853,_0x5cda24,_0x26e91f,_0x357105['id']]),_0x3dfd92(()=>{const _0x44cd9b=_0x31f537;let _0x3db048=_0x28704f['backgroundImage'];if(!_0x3db048||_0x3db048['sourceType']!==_0x476f1b['UUID'])return;let _0x1b13a5=_0x5d6d55[_0x44cd9b(0x1a7)](_0x3db048[_0x44cd9b(0x313)],_0x3db048[_0x44cd9b(0x401)]);if(_0x1b13a5!=null&&_0x1b13a5[_0x44cd9b(0x13d)])return;let _0x4b100f=!0x0;return _0x5d6d55[_0x44cd9b(0x194)](_0x3db048['source'])['then'](_0xb3b42a=>{const _0x6990ac=_0x44cd9b;_0x4b100f&&_0x3388c5({'source':_0x3db048[_0x6990ac(0x313)],'value':_0xb3b42a});})[_0x44cd9b(0x18c)](()=>void 0x0),()=>{_0x4b100f=!0x1;};},[_0x28704f['backgroundImage'],_0x5d6d55]);let _0x24ebd1=((_0x4bc5a9=_0x28704f[_0x31f537(0x375)])==null?void 0x0:_0x4bc5a9['sourceType'])===_0x476f1b['UUID']?((_0x4be3ee=_0x5d6d55[_0x31f537(0x1a7)](_0x28704f[_0x31f537(0x375)][_0x31f537(0x313)],_0x28704f[_0x31f537(0x375)][_0x31f537(0x401)]))==null?void 0x0:_0x4be3ee[_0x31f537(0x13d)])??((_0x271c24==null?void 0x0:_0x271c24[_0x31f537(0x313)])===_0x28704f[_0x31f537(0x375)]['source']?_0x271c24[_0x31f537(0x303)]:''):((_0x55258e=_0x28704f['backgroundImage'])==null?void 0x0:_0x55258e[_0x31f537(0x313)])??'',_0x408e79=_0x357105[_0x31f537(0x346)][_0x31f537(0x2f7)],_0x527291=_0x408e79&&_0x31f537(0x348)in _0x408e79?(_0x31574a=_0x408e79[_0x31f537(0x348)])==null?void 0x0:_0x31574a[_0x31f537(0x236)]:void 0x0,_0x1de4a0=Er((_0x1a130f==null?void 0x0:_0x1a130f[_0x31f537(0x1bf)])??'',_0x130264,_0x28704f),_0xad18b4=_0x357105[_0x31f537(0x346)]['fill'],_0x498e60=_0x357105[_0x31f537(0x346)][_0x31f537(0x387)],_0x5e2163=_0x527291==null||(_0x45e48f=_0x527291['documentStyle'])==null?void 0x0:_0x45e48f[_0x31f537(0x29c)],_0x3317d5=_0x357105['description']??_0x357105[_0x31f537(0x358)]??'';return _0x3dfd92(()=>{const _0x7e73f6=_0x31f537;let _0x132066=_0x5d7360[_0x7e73f6(0x228)],_0x4069d4=_0x332623['current'];if(!_0x132066||!_0x4069d4)return;let _0xa42ba7=()=>{const _0x54a7d8=_0x7e73f6;if(_0x28704f[_0x54a7d8(0x15d)]==='custom'||!_0x132066[_0x54a7d8(0x450)]||!_0x132066[_0x54a7d8(0x22e)]){_0x4069d4['style'][_0x54a7d8(0x16b)]=_0x28704f[_0x54a7d8(0x16b)]+'px';return;}let _0x4af84f=0x1,_0x27e357=0x48,_0x17f682=_0x4af84f;for(;_0x4af84f<=_0x27e357;){let _0x58a92c=Math[_0x54a7d8(0x242)]((_0x4af84f+_0x27e357)/0x2);_0x4069d4[_0x54a7d8(0x393)][_0x54a7d8(0x16b)]=_0x58a92c+'px',_0x4069d4['scrollWidth']<=_0x132066[_0x54a7d8(0x450)]&&_0x4069d4[_0x54a7d8(0x1a8)]<=_0x132066[_0x54a7d8(0x22e)]?(_0x17f682=_0x58a92c,_0x4af84f=_0x58a92c+0x1):_0x27e357=_0x58a92c-0x1;}_0x4069d4[_0x54a7d8(0x393)]['fontSize']=_0x17f682+'px';};if(_0xa42ba7(),typeof ResizeObserver>'u')return;let _0x1fb403=new ResizeObserver(_0xa42ba7);return _0x1fb403['observe'](_0x132066),()=>_0x1fb403[_0x7e73f6(0x321)]();},[_0x28704f[_0x31f537(0x16b)],_0x28704f['fontSizeMode'],_0x1de4a0]),_0x3067ce('div',{'data-dashboard-formula-shape':_0x357105['id'],'className':'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','style':{'backgroundColor':((_0x3ea74e=_0x357105[_0x31f537(0x45e)])==null?void 0x0:_0x3ea74e['backgroundColor'])??((_0xad18b4==null?void 0x0:_0xad18b4['fillType'])===_0x33e001[_0x31f537(0x3da)]?_0xad18b4[_0x31f537(0x40b)]??void 0x0:void 0x0),'border':(_0x498e60==null?void 0x0:_0x498e60[_0x31f537(0x2f0)])===_0x28520f[_0x31f537(0x233)]?(_0x498e60[_0x31f537(0x382)]??0x1)+_0x31f537(0x35e)+(_0x498e60[_0x31f537(0x40b)]??_0x31f537(0x2dc)):void 0x0,'borderRadius':_0x357105[_0x31f537(0x3e4)]===_0x12a5a1[_0x31f537(0x3b0)]?0xc:void 0x0,'color':((_0xd5032d=_0x357105['appearance'])==null?void 0x0:_0xd5032d[_0x31f537(0x40a)])??(_0x1a130f==null?void 0x0:_0x1a130f[_0x31f537(0x40b)])??(_0x5e2163==null||(_0x3fe173=_0x5e2163['cl'])==null?void 0x0:_0x3fe173[_0x31f537(0x14f)])??void 0x0,'fontWeight':_0x5e2163!=null&&_0x5e2163['bl']?0x258:void 0x0,'textAlign':_0x28704f[_0x31f537(0x1b4)]},'children':[_0x24ebd1&&_0xe7503a(_0x31f537(0x1f7),{'src':_0x24ebd1,'alt':'','aria-hidden':_0x31f537(0x38b),'className':_0x31f537(0x388),'style':{'objectFit':((_0x4d263d=_0x28704f[_0x31f537(0x375)])==null?void 0x0:_0x4d263d[_0x31f537(0x446)])??'cover'}}),_0x3067ce(_0x31f537(0x1fb),{'className':_0x31f537(0x1a4),'children':[_0x3317d5&&_0xe7503a(_0x31f537(0x1fb),{'data-dashboard-formula-description':!0x0,'className':_0x31f537(0x359),'children':_0x3317d5}),_0xe7503a(_0x31f537(0x1fb),{'ref':_0x5d7360,'data-dashboard-formula-value':!0x0,'aria-label':_0x3317d5||_0xb2903['t'](_0x31f537(0x18f)),'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','style':{'justifyContent':Or[_0x28704f[_0x31f537(0x1b4)]]},'children':_0xe7503a(_0x31f537(0x1b9),{'ref':_0x332623,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x28704f[_0x31f537(0x15d)],'className':_0x31f537(0x3d2),'children':_0x1de4a0})})]})]});}function Y(_0x420628,_0x1c8aec){return function(_0x321ce2,_0x4d8515){_0x1c8aec(_0x321ce2,_0x4d8515,_0x420628);};}function Ar(_0x3a4f3e,_0xb53d9e,_0x4b1b2c,_0x506c25){const _0x3d7b19=_0x51bd0c;var _0x11de35=arguments[_0x3d7b19(0x220)],_0x61ae85=_0x11de35<0x3?_0xb53d9e:_0x506c25===null?_0x506c25=Object[_0x3d7b19(0x223)](_0xb53d9e,_0x4b1b2c):_0x506c25,_0x928da9;if(typeof Reflect==_0x3d7b19(0x419)&&typeof Reflect[_0x3d7b19(0x17a)]==_0x3d7b19(0x36b))_0x61ae85=Reflect[_0x3d7b19(0x17a)](_0x3a4f3e,_0xb53d9e,_0x4b1b2c,_0x506c25);else{for(var _0x22104f=_0x3a4f3e[_0x3d7b19(0x220)]-0x1;_0x22104f>=0x0;_0x22104f--)(_0x928da9=_0x3a4f3e[_0x22104f])&&(_0x61ae85=(_0x11de35<0x3?_0x928da9(_0x61ae85):_0x11de35>0x3?_0x928da9(_0xb53d9e,_0x4b1b2c,_0x61ae85):_0x928da9(_0xb53d9e,_0x4b1b2c))||_0x61ae85);}return _0x11de35>0x3&&_0x61ae85&&Object[_0x3d7b19(0x32e)](_0xb53d9e,_0x4b1b2c,_0x61ae85),_0x61ae85;}let jr=class{constructor(_0x9f4290,_0x20494f,_0xd9fdaa){const _0x322a6f=_0x51bd0c;this[_0x322a6f(0x421)]=_0x9f4290,this[_0x322a6f(0x182)]=_0x20494f,this[_0x322a6f(0x177)]=_0xd9fdaa;}[_0x51bd0c(0x1c1)](){const _0x4f166b=_0x51bd0c;return this[_0x4f166b(0x177)][_0x4f166b(0x3fe)](_0x301ecd[_0x4f166b(0x22a)],this[_0x4f166b(0x2d0)]());}[_0x51bd0c(0x2de)](_0x8baeb5){const _0x22bbc1=_0x51bd0c;let _0xf7b09a=_0x8baeb5[_0x22bbc1(0x2be)][_0x22bbc1(0x18b)];if(!_0xf7b09a)throw Error('Base\x20dashboard\x20chart\x20'+_0x8baeb5[_0x22bbc1(0x282)]+_0x22bbc1(0x2c9));let _0x40c5cf=this[_0x22bbc1(0x421)]['getDirection']();return{'config':_0xf7b09a,'style':_0x5e7381({..._0x8baeb5[_0x22bbc1(0x2be)][_0x22bbc1(0x393)],'runtime':_0x8baeb5[_0x22bbc1(0x2be)][_0x22bbc1(0x156)](_0x40c5cf),'direction':_0x40c5cf},_0xf7b09a[_0x22bbc1(0x2e3)])};}[_0x51bd0c(0x2d0)](){const _0x43c713=_0x51bd0c;return{'resolveHostStyle':({style:_0x136539})=>_0x40bcb1({'style':_0x136539,'getRenderColor':_0x124cd3=>this[_0x43c713(0x182)]['getRenderColor'](_0x124cd3)}),'resolveRenderBackgroundColor':({hostStyle:_0xd79abd})=>_0xd79abd['fill']};}};jr=Ar([Y(0x0,_0x986575(_0x3e9ffe)),Y(0x1,_0x986575(_0x55c3f9)),Y(0x2,_0x470bf7)],jr);function Mr(_0x2a3898,_0xb81bb){const _0x4645db=_0x51bd0c;var _0x5c059c;_0x2a3898['style'][_0x4645db(0x17f)]=_0xb81bb[_0x4645db(0x22f)]??'transparent',_0x2a3898[_0x4645db(0x393)][_0x4645db(0x2ea)]=(_0x5c059c=_0xb81bb[_0x4645db(0x2ea)])!=null&&_0x5c059c[_0x4645db(0x40b)]&&_0xb81bb[_0x4645db(0x2ea)][_0x4645db(0x382)]?_0xb81bb[_0x4645db(0x2ea)]['width']+_0x4645db(0x35e)+_0xb81bb[_0x4645db(0x2ea)][_0x4645db(0x40b)]:'',_0x2a3898['style'][_0x4645db(0x3df)]=_0xb81bb[_0x4645db(0x245)]?_0xb81bb[_0x4645db(0x245)]+'px':'',_0x2a3898[_0x4645db(0x393)][_0x4645db(0x34c)]='hidden',_0x2a3898[_0x4645db(0x393)][_0x4645db(0x187)]=_0x4645db(0x257);}function Nr(_0x1bc5c0){'@babel/helpers - typeof';const _0x5530e4=_0x51bd0c;return Nr=typeof Symbol==_0x5530e4(0x36b)&&typeof Symbol[_0x5530e4(0x2fd)]==_0x5530e4(0x32d)?function(_0x5b9289){return typeof _0x5b9289;}:function(_0x5d535e){const _0x1fd4b5=_0x5530e4;return _0x5d535e&&typeof Symbol=='function'&&_0x5d535e['constructor']===Symbol&&_0x5d535e!==Symbol[_0x1fd4b5(0x30f)]?_0x1fd4b5(0x32d):typeof _0x5d535e;},Nr(_0x1bc5c0);}function Pr(_0x306506,_0x4bae61){const _0x1bf499=_0x51bd0c;if(Nr(_0x306506)!=_0x1bf499(0x419)||!_0x306506)return _0x306506;var _0x4c69c2=_0x306506[Symbol[_0x1bf499(0x3cb)]];if(_0x4c69c2!==void 0x0){var _0x247af7=_0x4c69c2[_0x1bf499(0x2a4)](_0x306506,_0x4bae61||_0x1bf499(0x47f));if(Nr(_0x247af7)!=_0x1bf499(0x419))return _0x247af7;throw TypeError(_0x1bf499(0x20c));}return(_0x4bae61===_0x1bf499(0x21c)?String:Number)(_0x306506);}function Fr(_0x1ddccd){const _0x47e8d3=_0x51bd0c;var _0x42e816=Pr(_0x1ddccd,_0x47e8d3(0x21c));return Nr(_0x42e816)==_0x47e8d3(0x32d)?_0x42e816:_0x42e816+'';}function Ir(_0x4095c4,_0x4add8d,_0xbed587){const _0x39232c=_0x51bd0c;return(_0x4add8d=Fr(_0x4add8d))in _0x4095c4?Object[_0x39232c(0x32e)](_0x4095c4,_0x4add8d,{'value':_0xbed587,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4095c4[_0x4add8d]=_0xbed587,_0x4095c4;}var Lr=class extends _0x1a82b4{constructor(_0x4319e1,_0x46a644){const _0x3c385f=_0x51bd0c;super(),this[_0x3c385f(0x282)]=_0x4319e1,this['_element']=_0x46a644,Ir(this,'mode',_0x301ecd[_0x3c385f(0x22a)]);}['getRect'](){const _0x3f1c98=_0x51bd0c;return{'width':Math[_0x3f1c98(0x335)](0x1,this['_element']['clientWidth']),'height':Math[_0x3f1c98(0x335)](0x1,this[_0x3f1c98(0x235)]['clientHeight'])};}['setStyle'](_0x40a961){Mr(this['_element'],_0x40a961);}async[_0x51bd0c(0x23d)](){const _0x222457=_0x51bd0c;return this[_0x222457(0x235)];}[_0x51bd0c(0x19e)](){const _0x31745f=_0x51bd0c;return this[_0x31745f(0x235)][_0x31745f(0x352)];}[_0x51bd0c(0x3a4)](){}[_0x51bd0c(0x23c)](){}[_0x51bd0c(0x3b5)](){}};function Rr({isRowDirection:_0x20bb31,runtime:_0x27bda9}){const _0x5e592a=_0x51bd0c;let _0xb2bfcd=_0x2c3a8a(null),_0x41f8ff=_0x59ceb1(_0x3e9ffe),_0x20de80=_0x59ceb1(_0x57f04c),_0xfd2234=_0x59ceb1(jr),_0x4195f9=_0x59ceb1(_0x445d1e);return _0x3dfd92(()=>{const _0x50614=_0x30a0;let _0x38b147=_0xb2bfcd[_0x50614(0x228)];if(!_0x38b147)return;_0x38b147['replaceChildren']();let {chartId:_0x36f898,model:_0x226431}=_0x27bda9,_0x30ad83=_0x226431[_0x50614(0x33f)],_0x4e2ef1=new Lr(_0x36f898,_0x38b147),_0x4fc44a=_0xfd2234[_0x50614(0x1c1)](),_0x19ad9f=!0x1,_0x470191=null,_0x1979de=null,_0xe2999b=null,_0x314aa4=null,_0x5bc193=!0x1,_0x4cfa5b=!0x1,_0x24d935=Promise[_0x50614(0x42a)]();_0x4fc44a['bind'](_0x4e2ef1);let _0x54914a=()=>{const _0xf0c2fc=_0x50614;var _0x1ae12,_0x39cb76,_0x3b0e4f,_0x3e5771;if(document[_0xf0c2fc(0x240)]==='hidden'||(_0x1ae12=(_0x39cb76=window)[_0xf0c2fc(0x19f)])!=null&&(_0x1ae12=_0x1ae12[_0xf0c2fc(0x2a4)](_0x39cb76,_0xf0c2fc(0x2b9)))!=null&&_0x1ae12[_0xf0c2fc(0x1a2)]||(_0x3b0e4f=(_0x3e5771=window)['matchMedia'])!=null&&(_0x3b0e4f=_0x3b0e4f[_0xf0c2fc(0x2a4)](_0x3e5771,'print'))!=null&&_0x3b0e4f[_0xf0c2fc(0x1a2)]||!_0x38b147[_0xf0c2fc(0x352)])return!0x1;let _0x55cb13=_0x38b147[_0xf0c2fc(0x138)]();return _0x55cb13[_0xf0c2fc(0x382)]>0x0&&_0x55cb13[_0xf0c2fc(0x3c5)]>0x0&&_0x55cb13[_0xf0c2fc(0x1b8)]>0x0&&_0x55cb13['bottom']>0x0&&_0x55cb13[_0xf0c2fc(0x489)]<window[_0xf0c2fc(0x2d3)]&&_0x55cb13['top']<window[_0xf0c2fc(0x45b)];},_0x41aa9d=()=>{const _0x5a9e57=_0x50614;_0x1979de!==null&&clearTimeout(_0x1979de),_0x38b147['dataset']['baseChartDataAnimation']=_0x5a9e57(0x38b),_0x38b147[_0x5a9e57(0x246)][_0x5a9e57(0x3e1)]=String(_0x123b5d),_0x1979de=setTimeout(()=>{const _0xb44cf8=_0x5a9e57;_0x1979de=null,delete _0x38b147[_0xb44cf8(0x246)][_0xb44cf8(0x3fb)],delete _0x38b147[_0xb44cf8(0x246)][_0xb44cf8(0x3e1)];},_0x123b5d);},_0x55c25a=_0x2a48d5(()=>{const _0x260bf5=_0x50614;if(_0x19ad9f||(_0x470191!==null&&(clearTimeout(_0x470191),_0x470191=null),!_0x226431[_0x260bf5(0x18b)]))return;let _0x29ad8c=_0x4cfa5b;_0x4cfa5b=!0x1,_0x38b147[_0x260bf5(0x246)][_0x260bf5(0x44b)]=String(_0x226431['chartType']),_0x38b147[_0x260bf5(0x246)][_0x260bf5(0x247)]=String(_0x20bb31);let _0x2219ac=_0xfd2234[_0x260bf5(0x2de)](_0x27bda9),_0x74ddb8={'chartId':_0x36f898,'config':_0x2219ac[_0x260bf5(0x18b)],'style':_0x2219ac[_0x260bf5(0x393)]};_0x24d935=_0x24d935['then'](async()=>{const _0x25cc67=_0x260bf5;_0x19ad9f||(_0x38b147[_0x25cc67(0x246)]['renderRevision']=String(Number(_0x38b147[_0x25cc67(0x246)]['renderRevision']??0x0)+0x1),_0x29ad8c&&_0xe2999b&&_0x4fc44a[_0x25cc67(0x209)]&&_0x54914a()?(await _0x4fc44a[_0x25cc67(0x209)](_0xe2999b,_0x74ddb8,{'duration':_0x123b5d}),_0x19ad9f||_0x41aa9d()):await _0x4fc44a[_0x25cc67(0x46d)](_0x74ddb8),_0xe2999b=_0x74ddb8);})[_0x260bf5(0x18c)](_0xa5f47a=>_0x20de80[_0x260bf5(0x2fa)](_0x260bf5(0x250),_0xa5f47a));},0x64,{'leading':!0x0,'trailing':!0x0,'maxWait':0x64}),_0x146d6a=(_0x38ba7=!0x1)=>{_0x4cfa5b||=_0x38ba7,!_0x5bc193&&(_0x5bc193=!0x0,queueMicrotask(()=>{_0x5bc193=!0x1,_0x19ad9f||_0x55c25a();}));},_0x2f6d33=[_0x30ad83[_0x50614(0x3ad)][_0x50614(0x462)](_0x804919=>{const _0x1766aa=_0x50614;let _0x3f2efe=JSON[_0x1766aa(0x324)](_0x804919);_0x314aa4!=null&&_0x314aa4!==_0x3f2efe&&_0x146d6a(!0x0),_0x314aa4=_0x3f2efe;}),_0x226431[_0x50614(0x470)][_0x50614(0x462)](_0x2df88e=>{_0x2df88e&&_0x146d6a();}),_0x226431['style$']['subscribe'](()=>_0x146d6a()),_0x41f8ff[_0x50614(0x3b6)][_0x50614(0x462)](()=>_0x146d6a()),_0x5ccec2([_0x4195f9[_0x50614(0x329)],_0x4195f9[_0x50614(0x129)]])[_0x50614(0x405)](_0x33eb3c(0x1))[_0x50614(0x462)](()=>_0x146d6a())],_0x3e1a08=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x3ca2c4=_0x50614;_0x19ad9f||(_0x4e2ef1[_0x3ca2c4(0x3a4)](),_0x470191!==null&&clearTimeout(_0x470191),_0x470191=setTimeout(()=>_0x146d6a(),0x64));});return _0x3e1a08==null||_0x3e1a08[_0x50614(0x403)](_0x38b147),()=>{const _0x386761=_0x50614;_0x19ad9f=!0x0,_0x55c25a[_0x386761(0x2af)](),_0x470191!==null&&clearTimeout(_0x470191),_0x1979de!==null&&clearTimeout(_0x1979de),delete _0x38b147[_0x386761(0x246)]['baseChartDataAnimation'],delete _0x38b147[_0x386761(0x246)][_0x386761(0x3e1)],_0x3e1a08==null||_0x3e1a08[_0x386761(0x321)](),_0x2f6d33[_0x386761(0x189)](_0x4e70c1=>_0x4e70c1[_0x386761(0x48d)]()),_0x4fc44a[_0x386761(0x147)](),_0x4e2ef1[_0x386761(0x147)](),_0x38b147[_0x386761(0x45c)]();};},[_0x20bb31,_0x41f8ff,_0x20de80,_0xfd2234,_0x27bda9,_0x4195f9]),_0xe7503a(_0x5e592a(0x1fb),{'ref':_0xb2bfcd,'data-u-comp':_0x5e592a(0x3af),'className':_0x5e592a(0x29a)});}function zr({filters:_0x153d62,onRuntimeChange:_0x1ccbb4,unitId:_0x3c86f6,widget:_0x487a2c}){const _0x4edbaa=_0x51bd0c;let _0x18ed61=_0x59ceb1(_0x490434),_0x45d426=_0x59ceb1(_0x3e9ffe),_0x375b64=_0x59ceb1(_0x57f04c),_0x2ced99=_0x59ceb1(_0x49c96a),[_0x30e3fe,_0x47535d]=_0x446379(null),[_0x2f55d2,_0x17432c]=_0x446379(!0x1),[_0xd6e8ab,_0x1b412b]=_0x446379(null),_0x14618d=_0x2c3a8a(_0x4edbaa(0x35d)+_0x5620a1(0x8)),_0x301550=_0x18ed61[_0x4edbaa(0x1de)](_0x3c86f6,_0xe1c385[_0x4edbaa(0x319)]),_0x2084ad=_0x301550==null?void 0x0:_0x301550[_0x4edbaa(0x1f8)]()['tables'][_0x487a2c[_0x4edbaa(0x46b)]],_0x100afb=_0x2084ad==null?void 0x0:_0x2084ad[_0x4edbaa(0x27f)][_0x487a2c[_0x4edbaa(0x1d5)]],_0x84bb8=Br(_0x100afb);if(_0x3dfd92(()=>{const _0x28d04d=_0x4edbaa;if(!_0x84bb8)return;let _0x4580e9=_0x14618d['current'];return _0x2ced99['acquireChartRuntime'](_0x4580e9,{'unitId':_0x3c86f6,'tableId':_0x487a2c[_0x28d04d(0x46b)],'viewId':_0x487a2c['pivotViewId'],'filters':[]}),()=>{const _0x58985e=_0x28d04d;_0x2ced99[_0x58985e(0x12a)](_0x3c86f6,_0x4580e9),_0x1ccbb4==null||_0x1ccbb4(_0x487a2c['id'],null);};},[_0x84bb8,_0x1ccbb4,_0x2ced99,_0x3c86f6,_0x487a2c['id'],_0x487a2c[_0x4edbaa(0x1d5)],_0x487a2c[_0x4edbaa(0x46b)]]),_0x3dfd92(()=>{const _0x50bbc7=_0x4edbaa;if(!Br(_0x100afb))return;let _0x4738fb=!0x0,_0x5139d9=_0x487a2c['chart']??_0x100afb['config'][_0x50bbc7(0x368)],_0x578915={'unitId':_0x3c86f6,'tableId':_0x487a2c[_0x50bbc7(0x46b)],'viewId':_0x487a2c[_0x50bbc7(0x1d5)],'filters':[_0x100afb[_0x50bbc7(0x1ff)]??null,..._0x153d62]};return _0x2ced99[_0x50bbc7(0x33b)](_0x3c86f6,_0x14618d['current'],_0x578915,_0x5139d9)[_0x50bbc7(0x439)](_0x1913c5=>{const _0x540794=_0x50bbc7;if(!_0x4738fb||!_0x1913c5)return;let _0x212846=_0x2ced99['getChartRuntime'](_0x3c86f6,_0x14618d[_0x540794(0x228)])??null;_0x47535d(_0x1913c5),_0x1b412b(_0x212846),_0x17432c(!0x1),_0x1ccbb4==null||_0x1ccbb4(_0x487a2c['id'],_0x212846);})['catch'](_0x4e164=>{const _0x3d46af=_0x50bbc7;_0x375b64['error'](_0x3d46af(0x317),_0x4e164),_0x4738fb&&(_0x47535d(null),_0x17432c(!0x0));}),()=>{_0x4738fb=!0x1;};},[_0x153d62,_0x375b64,_0x1ccbb4,_0x2ced99,_0x3c86f6,_0x100afb,_0x487a2c[_0x4edbaa(0x368)],_0x487a2c['id'],_0x487a2c['pivotViewId'],_0x487a2c[_0x4edbaa(0x46b)]]),!Br(_0x100afb))return _0xe7503a(_0x4edbaa(0x1fb),{'className':_0x4edbaa(0x155),'children':_0x45d426['t'](_0x4edbaa(0x2ef))});let _0x3cc71=_0x2ced99[_0x4edbaa(0x162)](_0x3c86f6,_0x14618d[_0x4edbaa(0x228)])===_0xd6e8ab?_0xd6e8ab:null;return _0x30e3fe&&_0x3cc71?_0xe7503a(Rr,{'isRowDirection':_0xa65f9f((_0x487a2c[_0x4edbaa(0x368)]??_0x100afb[_0x4edbaa(0x18b)][_0x4edbaa(0x368)])[_0x4edbaa(0x191)]),'runtime':_0x3cc71}):_0xe7503a(_0x4edbaa(0x1fb),{'className':_0x4edbaa(0x155),'children':_0x45d426['t'](_0x2f55d2?_0x4edbaa(0x31e):_0x4edbaa(0x3c2))});}function Br(_0x231633){const _0x5295b6=_0x51bd0c;return(_0x231633==null?void 0x0:_0x231633['type'])===_0x497849[_0x5295b6(0x1c2)]&&typeof _0x231633[_0x5295b6(0x18b)]=='object'&&_0x231633[_0x5295b6(0x18b)]!==null&&_0x5295b6(0x26c)in _0x231633['config']&&_0x5295b6(0x368)in _0x231633[_0x5295b6(0x18b)];}const Vr={'alignment':_0x51bd0c(0x489),'fontSize':0x12,'fontSizeMode':_0x51bd0c(0x2e5)};function Hr(_0x8c6d2d){const _0x418e82=_0x51bd0c;return{...Vr,..._0x8c6d2d[_0x418e82(0x45e)]};}function _0x2270(){const _0x26beae=['count','presentationChanged$','syncLayout','bases-dashboard-ui.pivot.countNumbers','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.chart.chartTypes.','getOptions','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','getValueIndex','primary','data$','Sankey','base-pivot-chart','RoundRect','bases-dashboard-ui.dashboardInspector.numberFormat','size','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','dashboard-','markNotReady','direction$','getDataFieldByTableId','executeCommand','setSortInfo','univer-size-4','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','Date','pageRows','bases-dashboard-ui.pivot.layoutCompact','blank','label','legend','bases-dashboard-ui.pivot.calculating','contains','join','height','exitFullscreen','VerticalAxis','isBottomTotal','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','widgets','toPrimitive','univer-flex\x20univer-flex-col\x20univer-gap-4','pointerY','showColSubtotal','file','bases-dashboard-ui.chart.common.setup','univer-min-h-11\x20univer-px-3\x20univer-text-base','univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','includes','tableOrder','redos','bases-dashboard-ui.chart.common.switchRowColumn','bases-dashboard-ui.pivot.addToFilter','bases-dashboard-ui.pivot.fieldSettings','univer-mt-2\x20univer-w-full','SolidFill','formatMap','univer-pointer-events-auto\x20univer-opacity-100','base-pivot-chart-configuration','\x20/\x20','borderRadius','section','baseChartDataAnimationDuration','Trendline','setSubtotalType','shapeType','bases-dashboard-ui.dashboardInspector.backgroundImage','colView','indexOf','group','info','document','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','area','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','univer-truncate','axis','RightVerticalAxis','univer-shrink-0\x20univer-px-3','Area','get','repeat','link','parentElement','alt','headerRowCount','cumulativeLineStyle','bases-dashboard-ui.dashboardInspector.currency','baseChartDataAnimation','executeChartUpdateConfig','values','createChartInstance','univer-flex\x20univer-items-center\x20univer-gap-2','table','sourceType','setCurrentUnitForType','observe','bases-dashboard-ui.pivot.addToValue','pipe','\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','univer-border-gray-200\x20dark:!univer-border-gray-700','bases-dashboard-ui.pivot.descending','bases-dashboard-ui.dashboard.search','textColor','color','shapeId','filterInfo','univer-bg-gray-0\x20dark:!univer-bg-gray-900','localeKey','stopPropagation','viewOrder','preventDefault','bases-dashboard-ui.pivot.rowSubtotalPosition','rowSpan','GridlinesAndTicks','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','GREATER_THAN','fieldId','object','IS_EMPTY','base-pivot-table-configuration','univer-mx-auto\x20univer-size-6','bases-dashboard-ui.pivot.pivotConfiguration','button','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','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','_localeService','end','bases-dashboard-ui.pivot.searchFields','bases-dashboard-ui.chart.section.sunburst','pointermove','bases-dashboard-ui.dashboardInspector.replaceImage','NOT_CONTAINS','errorType','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','resolve','bases-dashboard-ui.dashboard.image','formulaBinding','slice','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','univer-cursor-grabbing','setConfig','pageView','setLabelFilterInfo','pointerX','packageName','pareto','scrollWidth','Candlestick','LESS_THAN','then','dashboard-chart-setup','bases-dashboard-ui.dashboardInspector.data','headerMap','onMoveDown','bases-dashboard-ui.dashboardInspector.backgroundColor','field','dataAggregation','version','\x20/\x20span\x20','dashboard-widget-','bases-dashboard-ui.pivot.dataSource','bases-dashboard-ui.dashboard.rename','fit','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.dashboardInspector.compact','\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','chartType','univer-text-gray-400','bases-dashboard-ui.dashboard.redo','displayName','bases-dashboard-ui.dashboardInspector.custom','clientWidth','bases-dashboard-ui.pivot.repeatColumnLabels','35gEHbUM','dashboard-text-','bases-dashboard-ui.dashboardInspector.percent','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','pluginName','setLayout','bases-dashboard-ui.chart.common.verticalAxis','relation','column:','innerHeight','replaceChildren','bases-dashboard-ui.dashboard.new','appearance','bases-dashboard-ui.dashboardInspector.clear','univer-text-sm','getId','subscribe','612YQDNYG','WordCloud','layout','bases-dashboard-ui.pivot.columns','Histogram','HorizontalAxis','bases-dashboard-ui.dashboard.section','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','tableId','trim','render','createElement','corner:','config$','setFieldFormat','univer-mb-3\x20univer-text-sm\x20univer-font-medium','Person','dom','PivotChart','bases-dashboard-ui.pivot.layoutOutline','format','bases-dashboard-ui.chart.section.relation','bases-dashboard-ui.dashboard.undo','bases-dashboard-ui.chart.section.indicatorLine','\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','removeField','bases-dashboard-ui.dashboardInspector.grouped','small','default','depthAxis','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','pattern','documentElement','IS_NOT','lastRow','bases-dashboard-ui.operators.lessThan','tables','currentTarget','left','bases-dashboard-ui.dashboardInspector.selectOption','bases-dashboard-ui.pivot.bottom','percent','unsubscribe','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.pivot.tableOnly','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','darkMode$','releaseChartRuntime','bases-dashboard-ui.chart.section.gridlinesAndTicks','Positive','toUpperCase','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','requestFullscreen','bases-dashboard-ui.pivot.cancel','univer-size-5\x20univer-rotate-90','dataView','index','ChartStyle','name','dashboard-chart-style','getBoundingClientRect','image/*','subUnitId','bases-dashboard-ui.dashboardInspector.checked','clientX','src','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','bases-dashboard-ui.chart.section.paretoLine','lineAndArea','bases-dashboard-ui.operators.contains','find','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.addToRow','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','imageSourceType','dispose','general','@univerjs-pro/bases-dashboard-ui','change$','bases-dashboard-ui.dashboard.widgetActions','children','bases-dashboard-ui.dashboard.editWidget','bases-dashboard-ui.dashboardInspector.loading','rgb','view','bases-dashboard-ui.pivot.sourceFields','header','files','TableFilter','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','getRuntimeContext','operand','AFTER','FormulaShape','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','list','univer-flex\x20univer-gap-2','fontSizeMode','getTableFieldsByDataFieldId','YYYY-MM-DD','bases-dashboard-ui.pivot.blank','148vmHtKn','getChartRuntime','univer-grid\x20univer-gap-4\x20univer-p-4','bases-dashboard-ui.pivot.numberFormat','bases-dashboard-ui.dashboardInspector.enterValue','_injector','IS_NOT_EMPTY','GrandTotal','Subtotal','bases-dashboard-ui.operators.isNotEmpty','fontSize','stdDevp','onCancel','tableFieldId','waterfall.positive','subItem','dataFieldId','univer-flex\x20univer-min-h-full\x20univer-flex-col','onDrop','bases-dashboard-ui.pivot.defaultName','rightYAxis','removeEventListener','_renderModelManager','0\x200','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-96\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','decorate','options','renameField','filterFields','baseOn','backgroundColor','Image','bases-dashboard-ui.pivot.stdDevPopulation','_chartThemeService','\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','grouped','bases-dashboard-ui.dashboardInspector.dataSource','bases-dashboard-ui.dashboardInspector.decimalPlaces','boxSizing','base-pivot-chart-','forEach','getFieldCountByArea','config','catch','bases-dashboard-ui.dashboardInspector.uploadImage','RecordId','bases-dashboard-ui.dashboard.formulaShape','bases-dashboard-ui.pivot.removeField','orient','onDragStart','toLocaleLowerCase','getImage','bases-dashboard-ui.chart.common.trendline','1842sxkeVw','ascending','getAttachmentUrl','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','PieStyle','outline','permissionPointUpdate$','gray','checkMounted','matchMedia','Relation','bases-dashboard-ui.chart.section.waterfall','matches','bases-dashboard-ui.dashboardInspector.center','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','bases-dashboard-ui.pivot.displayName','Currency','getImageSourceCache','scrollHeight','Column','bases-dashboard-ui.pivot.min','univer-mt-2','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','item','Pie','ceil','bases-dashboard-ui.dashboardInspector.contain','bases-dashboard-ui.pivot.summarizeBy','Radar','allowMultiple','alignment','has','getResource','some','right','span','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','isTotal','click','waterfall.negative','pointerup','text','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','createDomChartInstance','Pivot','bases-dashboard-ui.pivot.values','replace','bases-dashboard-ui.chart.section.wordCloud','cover','undos','onMove','tabular','acquireChartRuntime','bases-dashboard-ui.dashboardInspector.reset','rowSubtotalPosition','bases-dashboard-ui.pivot.rows','bases-dashboard-ui.pivot.pageWrap','bases-dashboard-ui.pivot.average','bases-dashboard-ui.chart.chartTypes.line','sortInfo','bases-dashboard-ui.chart.common.chartStyle','bases-dashboard-ui.dashboardInspector.right','getDashboard','pivotViewId','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','canView','showRowSubtotal','univer-mb-2\x20univer-border-collapse\x20univer-text-sm','mode','funnel','univer-relative\x20univer-z-10','bases-dashboard-ui.pivot.selectAll','getUnit','[data-dashboard-widget]','bases-dashboard-ui.pivot.layoutTabular','Group','initial','radar','CreatedAt','bases-dashboard-ui.dashboardInspector.unchecked','change','1.2.0','snapshot','fullscreenElement','wordCloud','isSubtotal','univer-grid\x20univer-gap-3','bases-dashboard-ui.dashboard.addWidget','univer-w-full','BASE_DASHBOARD_UI_PLUGIN','bases-dashboard-ui.pivot.addToColumn','min','updateValuePosition','ownerDocument','bases-dashboard-ui.dashboard.pivotChart','Waterfall','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','img','getSnapshot','#,##0','getFieldPositionInfoById','div','univer-text-right','bases-dashboard-ui.dashboardInspector.left','no-repeat','filter','Text','MultiSelect','None','custom','varp','widgetOrder','onFilter','dimension','description','renderTransition','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','bases-dashboard-ui.dashboardInspector.number','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','updateFieldPosition','valueIndex','valuePosition','bases-dashboard-ui.mobile.permissions','Funnel','labelId','bases-dashboard-ui.operators.greaterThanOrEqual','bases-dashboard-ui.pivot.name','bases-dashboard-ui.pivot.stdDev','row','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','UpdatedAt','allSeriesStyle','bases-dashboard-ui.pivot.options','fields','string','429558tkphbv','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.chart.section.funnel','length','activeRuntimeModel','ParetoBarSeries','getOwnPropertyDescriptor','5437500WEJRGx','bases-dashboard-ui.operators.is','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-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','current','bases-dashboard-ui.dashboardInspector.delete','Dom','defaultValue','univer-flex','CONTAINS','clientHeight','fill','bases-dashboard-ui.pivot.chartOnly','base-pivot-fields','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','SolidLine','scrollTop','_element','doc','bases-dashboard-ui.pivot.count','heatmap','page:','set','BEFORE','markReady','ensureMount','flex-start','fieldOrder','visibilityState','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','floor','prefix','bases-dashboard-ui.pivot.clearFilter','radius','dataset','chartRowDirection','bases-dashboard-ui.pivot.downThenAcross','round','bases-dashboard-ui.operators.greaterThan','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','key','bases-dashboard-ui.dashboardInspector.currencyCode','paragraphs','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','cornerView','Sunburst','univer-m-3','bases-dashboard-ui.chart.common.editChart','_configService','select','border-box','waterfallStyle','map','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','bases-dashboard-ui.dashboardInspector.close','bases-dashboard-ui.chart.section.chord','formula','showColGrandTotal','pageWrap','colCount','bases-dashboard-ui.dashboard.text','1315825UUjCev','rowCount','bases-dashboard-ui.dashboard.configure','onDragOver','Row','rowView','bases-dashboard-ui.dashboard.fullScreen','univer-grid\x20univer-gap-4','univer-flex-1','bases-dashboard-ui.pivot.top','pivot','base-pivot-chart-setup','122niJUmc','104NEbwqx','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','Scatter','bases-dashboard-ui.pivot.showColumnGrandTotal','Pareto','match','closest','12272964yEfRrr','blur','countNums','pageOverThenDown','undoRedoStatus$','bases-dashboard-ui.operators.notContains','bases-dashboard-ui.pivot.sum','columnSpan','disposeWithMe','views','sum','bases-dashboard-ui.chart.common.customize','chartId','Value','univer-w-36','Treemap','bases-dashboard-ui.chart.section.pie','IndicatorLine','date','bases-dashboard-ui.dashboardInspector.editData','segmented','dashboardOrder','bases-dashboard-ui.chart.section.paretoBar','bases-dashboard-ui.dashboardInspector.textColor','bases-dashboard-ui.dashboardInspector.general','delete','supports','center','base64Cache','onSettings','addFieldWithSourceId','chart-and-table','bases-dashboard-ui.operators.isNot','rows','displayMode','univer-grid\x20univer-gap-2\x20univer-p-3','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','repeatRowLabels','textStyle','operator','bases-dashboard-ui.pivot.fields','bases-dashboard-ui.pivot.product','paragraphId','defaultPrevented','bases-dashboard-ui.dashboardInspector.description','items','call','77877pZMmrr','startY','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','bases-dashboard-ui.pivot.showRowGrandTotal','compact','saveImage','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','itemTypes','dashboards','base-pivot-chart-style','cancel','push','separator','columnFields','base-pivot-options','data:','getResult','bases-dashboard-ui.pivot.pageDirection','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','original','(prefers-reduced-motion:\x20reduce)','thead','bases-dashboard-ui.dashboardInspector.editFormula','AND','bases-dashboard-ui.chart.common.series','model','move','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','valueFields','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','bases-dashboard-ui.config','Bubble','dataStream','bases-dashboard-ui.pivot.filters','ParetoLineSeries','aside','\x20has\x20no\x20render\x20config.','bases-dashboard-ui.pivot.layout','Gauge','univer-flex\x20univer-min-h-0\x20univer-flex-1','Heatmap','pie','bases-dashboard-ui.dashboard.tableFilter','_createContext','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','conjunction','innerWidth','bases-dashboard-ui.dashboardInspector.cover','bases-dashboard-ui.chart.section.radar','bases-dashboard-ui.pivot.variancePopulation','_config','indicatorLine','isFinite','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','resizeDirection','currentColor','rightY','createRenderInput','split','decimalPlaces','SingleSelect','titles','type','bases-dashboard-ui.dashboardInspector.textSize','auto','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','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','bases-dashboard-ui.dashboard.deleteWidget','bases-dashboard-ui.dashboardInspector.originalSize','border','addEventListener','bases-dashboard-ui.operators.after','repeatColLabels','bases-dashboard-ui.chart.common.rightVerticalAxis','bases-dashboard-ui.dashboardInspector.sourceUnavailable','lineStrokeType','univer-min-w-0\x20univer-flex-1','LineAndArea','measure','url(','subtotal','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','shapeText','getCurrentTheme','bases-dashboard-ui.pivot.repeatRowLabels','error','bases-dashboard-ui.pivot.chartAndTable','MultipleGrandTotal','iterator','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','univer-size-5\x20univer-text-primary-600','flex-end','bases-dashboard-ui.chart.section.treemap','value','fullscreenchange','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','Number','destructive','onDragEnd','setOptions','add','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','minmax(0,\x201fr)','bases-dashboard-ui.pivot.valuePosition','onRemove','prototype','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','univer-h-full\x20univer-w-full\x20univer-bg-transparent','decimal','source','keydown','bases-dashboard-ui.pivot.confirm','trendline','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.mobile.moveDown','UNIVER_BASE','ManualFilter','Series','Checkbox','Data','bases-dashboard-ui.pivot.calculationFailed','onStarting','univer-text-sm\x20univer-font-medium','disconnect','kind','waterfall','stringify','WaterfallSeries','bases-dashboard-ui.pivot.dropFieldsHere','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','bases-dashboard-ui.chart.common.heatmap','currentTheme$','bases-dashboard-ui.dashboard.add','Escape','toJSON','symbol','defineProperty','bases-dashboard-ui.dashboardInspector.alignment','bottom','article','ChartAndAxisTitles','bases-dashboard-ui.chart.section.candlestick','bases-dashboard-ui.dashboard.defaultName','max','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','univer-flex\x20univer-flex-col','false','isArray','numberFormat','refreshChartRuntime','BaseDashboard','series','rowFields','dataSource','column','USD','startScrollTop','LESS_THAN_OR_EQUAL','onMoveUp','var','shapeData','grandTotal','dataModel','bases-dashboard-ui.pivot.grandTotal','univer-border-0\x20univer-bg-transparent','isHeader','overflow','bases-dashboard-ui.chart.section.histogram','tbody','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','univer-bg-transparent\x20dark:!univer-bg-transparent','isConnected','bases-dashboard-ui.operators.before','showRowGrandTotal','Progress','darkMode','bases-dashboard-ui.dashboardInspector.autoFit','title','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.pivot.showRowSubtotal','bases-dashboard-ui.dashboardInspector.removeImage','initialLayouts','base-dashboard-pivot-chart-','px\x20solid\x20','descending','Chord','top','barStyle','bases-dashboard-ui.chart.chartTypes.area','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','bases-dashboard-ui.pivot.showColumnSubtotal','Style','target','chart','bases-dashboard-ui.dashboard.delete','bases-dashboard-ui.pivot.filterField','function','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','focusUnit','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','conditions','minmax(0,\x203fr)\x20minmax(0,\x202fr)','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','Axes','Rating','bases-dashboard-ui.chart.common.legend','backgroundImage','bases-dashboard-ui.chart.section.gauge','register','from','bases-dashboard-ui.dashboardInspector.repeat','lastCol','stdDev','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','saveAttachment','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','number','onCommit','width','bases-dashboard-ui.pivot.chartConfiguration','context','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','bases-dashboard-ui.dashboardInspector.formula','stroke','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','input','every','true','bases-dashboard-ui.pivot.variance','currency','univer-w-24','system','onReady','Filter','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','style','bases-dashboard-ui.chart.common.horizontalAxis','rowType','addImageSourceCache','flatMap','bases-dashboard-ui.chart.common.chartAndAxisTitles','data','bases-dashboard-ui.dashboardInspector.style','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.chart.waterfall.subtotal','UUID','clientY','univer-flex\x20univer-justify-end\x20univer-gap-2','Legend','Line'];_0x2270=function(){return _0x26beae;};return _0x2270();}function Ur(_0x25cca3){const _0x4595b5=_0x51bd0c;var _0x131e75;return((_0x131e75=_0x25cca3['body'])==null?void 0x0:_0x131e75[_0x4595b5(0x2c5)][_0x4595b5(0x1c4)](/\r\n$/,'')[_0x4595b5(0x1c4)](/\r/g,'\x0a'))??'';}function Wr(_0x1a5ebb,_0x5059d5){const _0x3825b1=_0x51bd0c;var _0x20dcad;let _0x58f58f=_0x5059d5[_0x3825b1(0x1c4)](/\r\n|\r/g,'\x0a')[_0x3825b1(0x2df)]('\x0a'),_0x4fa9fb=_0x58f58f[_0x3825b1(0x3c4)]('\x0d')+'\x0d\x0a',_0x3266bc=((_0x20dcad=_0x1a5ebb['body'])==null?void 0x0:_0x20dcad[_0x3825b1(0x24e)])??[],_0xcc6f8e=new Set(_0x3266bc['map'](_0x300ea4=>_0x300ea4[_0x3825b1(0x2a0)])),_0x371d9b=0x0,_0x16d072=_0x58f58f['map']((_0x5a7a62,_0x1c4953)=>{const _0x314a86=_0x3825b1;_0x371d9b+=_0x5a7a62[_0x314a86(0x220)];let _0x570081={..._0x3266bc[_0x1c4953]??{'startIndex':_0x371d9b,'paragraphId':_0x265312(_0xcc6f8e)},'startIndex':_0x371d9b};return _0x371d9b+=0x1,_0x570081;});return{..._0x1a5ebb,'body':{..._0x1a5ebb['body'],'dataStream':_0x4fa9fb,'paragraphs':_0x16d072,'textRuns':[]}};}function Gr({widget:_0x2309f3}){const _0x897ef6=_0x51bd0c;let _0x3e115d=_0x59ceb1(_0x445d1e),_0x20df88=_0x59ceb1(_0x3e9ffe),_0x563eac=_0x50b983(()=>_0x3e115d['currentTheme$'],_0x3e115d['getCurrentTheme'](),!0x1,[_0x3e115d]),_0x4db727=_0x2c3a8a(null),_0x46addf=_0x2c3a8a(null),_0x194753=Hr(_0x2309f3),_0x49b474=_0x194753[_0x897ef6(0x17f)]??_0x563eac[_0x897ef6(0x19d)][0x0],_0x3dc904=_0x194753[_0x897ef6(0x40a)]??_0x563eac['gray'][0x3e8],_0x2f2cad=Ur(_0x2309f3[_0x897ef6(0x3ea)]);return _0x3dfd92(()=>{const _0x360bdf=_0x897ef6;let _0x51c783=_0x4db727[_0x360bdf(0x228)],_0x1e6e0c=_0x46addf['current'];if(!_0x51c783||!_0x1e6e0c)return;let _0x3f3c37=()=>{const _0x3171d5=_0x360bdf;if(_0x194753[_0x3171d5(0x15d)]===_0x3171d5(0x203)||!_0x51c783['clientWidth']||!_0x51c783[_0x3171d5(0x22e)]){_0x1e6e0c[_0x3171d5(0x393)][_0x3171d5(0x16b)]=_0x194753[_0x3171d5(0x16b)]+'px';return;}let _0x18bca4=0x8,_0xb3490c=0x48,_0x3aa791=_0x18bca4;for(;_0x18bca4<=_0xb3490c;){let _0x4eead2=Math[_0x3171d5(0x242)]((_0x18bca4+_0xb3490c)/0x2);_0x1e6e0c[_0x3171d5(0x393)][_0x3171d5(0x16b)]=_0x4eead2+'px',_0x1e6e0c[_0x3171d5(0x436)]<=_0x51c783['clientWidth']&&_0x1e6e0c['scrollHeight']<=_0x51c783['clientHeight']?(_0x3aa791=_0x4eead2,_0x18bca4=_0x4eead2+0x1):_0xb3490c=_0x4eead2-0x1;}_0x1e6e0c['style']['fontSize']=_0x3aa791+'px';};if(_0x3f3c37(),typeof ResizeObserver>'u')return;let _0x456b89=new ResizeObserver(_0x3f3c37);return _0x456b89[_0x360bdf(0x403)](_0x51c783),()=>_0x456b89['disconnect']();},[_0x194753[_0x897ef6(0x16b)],_0x194753[_0x897ef6(0x15d)],_0x2f2cad]),_0xe7503a(_0x897ef6(0x1fb),{'data-dashboard-text-widget':_0x2309f3['id'],'className':_0x897ef6(0x350),'style':{'backgroundColor':_0x49b474,'color':_0x3dc904},'children':_0xe7503a('div',{'ref':_0x4db727,'data-dashboard-text-content':!0x0,'aria-label':_0x20df88['t']('bases-dashboard-ui.dashboard.text'),'className':_0x897ef6(0x1d6),'children':_0xe7503a(_0x897ef6(0x1fb),{'ref':_0x46addf,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x194753[_0x897ef6(0x15d)],'className':'univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','style':{'textAlign':_0x194753[_0x897ef6(0x1b4)]},'children':_0x2f2cad})})});}function Kr({dashboard:_0x11504e,editable:_0x4976f2=!0x0,onSelectWidget:_0x1f1b15,renderWidget:_0x485898,renderWidgetActions:_0xa00150,selectedWidgetId:_0xcaa062,widgetLabel:_0x536254}){const _0x58bdb3=_0x51bd0c;return _0xe7503a(_0x58bdb3(0x1fb),{'data-dashboard-scroll-container':!0x0,'className':_0x1ba4bd('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',_0x2a2c66),'onClick':_0x4976f2?_0x335121=>{const _0x409ffe=_0x58bdb3;if(!(_0x335121[_0x409ffe(0x367)]instanceof Node)||!_0x335121[_0x409ffe(0x488)][_0x409ffe(0x3c3)](_0x335121[_0x409ffe(0x367)]))return;let _0x8959cc=_0x335121['target']instanceof Element?_0x335121[_0x409ffe(0x367)]:_0x335121[_0x409ffe(0x367)][_0x409ffe(0x3f6)];_0x8959cc!=null&&_0x8959cc[_0x409ffe(0x275)](_0x409ffe(0x1df))||_0x1f1b15==null||_0x1f1b15();}:void 0x0,'children':_0xe7503a(_0x58bdb3(0x1fb),{'data-dashboard-grid':!0x0,'className':'univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','children':_0x11504e[_0x58bdb3(0x205)][_0x58bdb3(0x259)](_0x3c9861=>{const _0xc42efd=_0x58bdb3;let _0x1197f5=_0x11504e['widgets'][_0x3c9861];if(!_0x1197f5)return null;let _0x11d23d=Math['max'](0xb4,_0x1197f5[_0xc42efd(0x465)][_0xc42efd(0x414)]*_0x2dd572);return _0x3067ce('article',{'data-dashboard-widget':_0x1197f5['id'],'aria-label':_0x1197f5[_0xc42efd(0x358)]??_0x536254(_0x1197f5),'className':_0x1ba4bd(_0xc42efd(0x2c0),_0x1197f5['type']===_0x9d376a[_0xc42efd(0x180)]||_0x1197f5[_0xc42efd(0x2e3)]===_0x9d376a['FormulaShape']?_0xc42efd(0x351):'univer-bg-gray-0\x20dark:!univer-bg-gray-900',_0x4976f2&&_0xcaa062===_0x1197f5['id']?'univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500':_0xc42efd(0x407)),'style':{'minHeight':_0x11d23d,'height':_0x11d23d},'tabIndex':_0x4976f2?0x0:void 0x0,'onClick':_0x4976f2?()=>_0x1f1b15==null?void 0x0:_0x1f1b15(_0x1197f5['id']):void 0x0,'onFocus':_0x4976f2?()=>_0x1f1b15==null?void 0x0:_0x1f1b15(_0x1197f5['id']):void 0x0,'children':[_0x4976f2&&_0xe7503a(_0xc42efd(0x1fb),{'className':_0xc42efd(0x2b7),'children':_0xa00150==null?void 0x0:_0xa00150(_0x1197f5)}),_0xe7503a('div',{'className':_0xc42efd(0x30b),'children':_0x485898(_0x1197f5)})]},_0x1197f5['id']);})})});}let qr=class extends _0x14b251{constructor(_0x10adb1){const _0x3f90fd=_0x51bd0c;super(_0x10adb1),Ir(this,_0x3f90fd(0x221),null);}[_0x51bd0c(0x3fc)](_0x5471b7){}};qr=Ar([Y(0x0,_0x986575(_0x2606f1))],qr);function Jr({children:_0x3d9e9c}){return _0xe7503a(_0x4de0fb,{'children':_0x3d9e9c});}function Yr(_0x584f17){return _0xe7503a(_0x2c20a2,{..._0x584f17});}function Xr(_0x165b3b){return _0xe7503a(_0x51dd07,{..._0x165b3b});}function Zr(_0x1dbe0f){return _0xe7503a(_0x23cae4,{..._0x1dbe0f});}var Qr;const X={'axis':{..._0x52e779,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x40f42e,'heatmap':_0x236616,'indicatorLine':_0x4b5c03,'legend':_0x128068,'lineAndArea':_0xf0a761,'pareto':_0x161614,'pie':_0x3717dd,'radar':_0x5dc3b0,'relation':{..._0x38bd5f,'useValueAsSymbolSize':!0x0},'series':{..._0x52331b,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Qr=_0x5a0d45['allSeriesStyle'])==null?void 0x0:Qr['rightYAxis'])??!0x1}},'style':_0x255ffa,'titles':_0x1175bb,'trendline':_0x4ed75f,'waterfall':{..._0x4e5a18,'useSubtotal':!0x0},'waterfallStyle':_0x2bc803,'wordCloud':_0x224db6},$r=[_0x26e67f[_0x51bd0c(0x3a1)],_0x26e67f['Radar'],_0x26e67f[_0x51bd0c(0x464)],_0x26e67f[_0x51bd0c(0x271)],_0x26e67f[_0x51bd0c(0x211)],_0x26e67f[_0x51bd0c(0x1a0)],_0x26e67f[_0x51bd0c(0x3ae)],_0x26e67f[_0x51bd0c(0x2cd)],_0x26e67f['Boxplot'],_0x26e67f[_0x51bd0c(0x437)],_0x26e67f['Histogram'],_0x26e67f[_0x51bd0c(0x285)],_0x26e67f['Sunburst'],_0x26e67f[_0x51bd0c(0x2cb)],_0x26e67f['Chord']];function ei(_0x6de30b){const _0x3177f5=_0x51bd0c;let {config:_0x3168e4,onChange:_0x4c368e,runtime:_0x595d47,tableName:_0x1abb25}=_0x6de30b,_0x1e69ec=_0x59ceb1(qr),_0x368f64=_0x59ceb1(_0x3e9ffe),[_0x835ef7,_0x320a15]=_0x446379(_0xd7f52a[_0x3177f5(0x31d)]),_0x457f94=_0x592e4f(()=>new _0x59650f(_0x595d47['model'],{'commit':_0x22ab88=>{const _0x467b1a=_0x3177f5;var _0x417704;let _0x57f0e7=_0x595d47[_0x467b1a(0x2be)],_0x8702e0=_0x33ebeb(_0x22ab88,{'series':(_0x417704=_0x57f0e7['config'])==null?void 0x0:_0x417704[_0x467b1a(0x33d)],'currentChartType':_0x57f0e7[_0x467b1a(0x44b)],'currentStyle':_0x57f0e7[_0x467b1a(0x393)],'currentContext':_0x57f0e7[_0x467b1a(0x384)],'currentDataAggregation':_0x57f0e7[_0x467b1a(0x440)]});_0x4c368e({'chart':ti(_0x3168e4[_0x467b1a(0x368)],_0x8702e0)});}}),[_0x3168e4[_0x3177f5(0x368)],_0x4c368e,_0x595d47]),_0x55f009=_0x592e4f(()=>_0x5ef485(_0x2a4d2b[_0x3177f5(0x259)](_0xceba76=>({..._0xceba76,'label':_0x368f64['t'](ai(_0xceba76['labelId']))}))),[_0x368f64]);return _0xe7503a(_0xcd7800,{'chartUIService':_0x1e69ec,'hostAdapter':_0x457f94,'children':_0x3067ce(_0x3177f5(0x1fb),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0xe7503a(_0x331878,{'ariaLabel':_0x368f64['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x3177f5(0x3f1),'items':[{'label':_0x368f64['t'](_0x3177f5(0x3d0)),'panelId':_0x3177f5(0x26d),'value':_0xd7f52a[_0x3177f5(0x31d)]},{'label':_0x368f64['t'](_0x3177f5(0x281)),'panelId':_0x3177f5(0x2ae),'value':_0xd7f52a[_0x3177f5(0x366)]}],'value':_0x835ef7,'onChange':_0x320a15}),_0x835ef7===_0xd7f52a['Data']?_0xe7503a(_0x38b71a,{'id':_0x3177f5(0x26d),'label':_0x368f64['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x3067ce(_0x3177f5(0x1fb),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0xe7503a(_0x164a8c,{'options':_0x55f009}),_0xe7503a(_0xedfe4a,{}),_0xe7503a(_0x4034d5,{}),_0xe7503a(ni,{}),_0xe7503a(_0x1a336c,{}),_0x3067ce(_0x3177f5(0x1fb),{'children':[_0xe7503a(_0x23b11e,{'title':_0x368f64['t'](_0x3177f5(0x444))}),_0xe7503a(_0x177173,{'disabled':!0x0,'value':_0x1abb25})]}),_0xe7503a(_0x2ef133,{'orientationControl':_0xe7503a(_0x2d5ef7,{'size':_0x3177f5(0x47e),'onClick':()=>_0x4c368e({'chart':{..._0x3168e4[_0x3177f5(0x368)],'orient':_0x3168e4['chart'][_0x3177f5(0x191)]==='row'?'column':'row'}}),'children':_0x368f64['t'](_0x3177f5(0x3d6))})}),_0xe7503a(_0xa492d5,{}),_0xe7503a(_0x4bc741,{'defaultValues':X[_0x3177f5(0x323)]}),_0x3067ce(_0x3177f5(0x1fb),{'children':[_0xe7503a(_0x23b11e,{'title':_0x368f64['t']('bases-dashboard-ui.pivot.display')}),_0xe7503a(Yr,{'value':_0x3168e4[_0x3177f5(0x298)],'options':[{'value':_0x3177f5(0x295),'label':_0x368f64['t'](_0x3177f5(0x2fb))},{'value':'chart','label':_0x368f64['t'](_0x3177f5(0x230))},{'value':_0x3177f5(0x400),'label':_0x368f64['t'](_0x3177f5(0x48f))}],'onChange':_0x41f2b3=>{const _0x3a705b=_0x3177f5;(_0x41f2b3===_0x3a705b(0x295)||_0x41f2b3===_0x3a705b(0x368)||_0x41f2b3===_0x3a705b(0x400))&&_0x4c368e({'displayMode':_0x41f2b3});}})]})]})}):_0xe7503a(_0x38b71a,{'id':_0x3177f5(0x2ae),'label':_0x368f64['t'](_0x3177f5(0x281)),'children':_0xe7503a(ri,{})})]})});}function ti(_0x3ac635,_0x3a589b){const _0x14702d=_0x51bd0c;return{..._0x3ac635,'type':_0x3a589b['chartType']??_0x3ac635[_0x14702d(0x2e3)],'style':_0x3a589b[_0x14702d(0x393)]??_0x3ac635[_0x14702d(0x393)],'context':_0x3a589b[_0x14702d(0x384)]??_0x3ac635['context'],'dataAggregation':_0x3a589b['dataAggregation']??_0x3ac635[_0x14702d(0x440)]};}function ni(){const _0xf9f211=_0x51bd0c;let _0x2cd3a1=_0x4ce6a7();return _0xe7503a(_0x4fbd7e,{'visible':$r['every'](_0x3e629f=>!_0x5dedd8[_0xf9f211(0x17e)](_0x2cd3a1,_0x3e629f))});}function Z(_0xdc72d4){const _0x2f58e4=_0x51bd0c;return _0x3067ce(_0x154f26,{'id':_0xdc72d4['id'],'children':[_0xe7503a(_0x5948a8,{'children':_0xdc72d4['label']}),_0xe7503a(_0x493e5f,{'children':_0xdc72d4[_0x2f58e4(0x14c)]})]});}function ri(){const _0x13166e=_0x51bd0c;let _0x2e10cd=_0x59ceb1(_0x3e9ffe),_0x5c585c=_0x4ce6a7(),_0x4ea68f=_0x14227c(),[_0x3c6931,_0x5b792a]=_0x446379(null),_0x13f9c3=_0x5dedd8[_0x13166e(0x17e)](_0x5c585c,_0x26e67f[_0x13166e(0x1ae)]),_0x3e42a5=_0x5c585c===_0x26e67f[_0x13166e(0x1b2)],_0x59c1e5=_0x5c585c===_0x26e67f['WordCloud'],_0x173752=_0x5c585c===_0x26e67f['Funnel'],_0x190516=_0x5dedd8['baseOn'](_0x5c585c,_0x26e67f[_0x13166e(0x2c4)]),_0x4bb2bb=_0x5c585c===_0x26e67f[_0x13166e(0x1a0)],_0x3a3262=_0x5c585c===_0x26e67f['Waterfall'],_0x1e73f1=_0x5c585c===_0x26e67f[_0x13166e(0x273)],_0x19ddaf=_0x5c585c===_0x26e67f[_0x13166e(0x2cd)],_0x480d31=_0x5a38e7(_0x5c585c,_0x4ed18f['GeneralSeries'])&&!_0x190516&&!_0x1e73f1,_0x4c687c=ii(_0x5c585c,_0x2e10cd);return _0x3067ce(_0xf7e9d,{'value':_0x3c6931,'onChange':_0x5b792a,'children':[_0xe7503a(Z,{'id':_0x39a6c4[_0x13166e(0x135)],'label':_0x2e10cd['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0xe7503a(_0x36e959,{'defaultValues':X[_0x13166e(0x393)]})}),_0xe7503a(Z,{'id':_0x39a6c4[_0x13166e(0x332)],'label':_0x2e10cd['t'](_0x13166e(0x398)),'children':_0xe7503a(_0x477bac,{'commitMode':'blur','defaultValues':X[_0x13166e(0x2e2)]})}),_0xe7503a(_0x3d51fa,{'section':'view'}),_0x480d31&&_0xe7503a(Z,{'id':_0x39a6c4[_0x13166e(0x31b)],'label':_0x2e10cd['t']('bases-dashboard-ui.chart.common.series'),'children':_0xe7503a(_0x44dd07,{'defaultValues':X[_0x13166e(0x33d)],'NumberFormatField':_0xc1dc99})}),_0x3a3262&&_0xe7503a(Z,{'id':_0x39a6c4[_0x13166e(0x325)],'label':_0x2e10cd['t']('bases-dashboard-ui.chart.section.waterfall'),'children':_0xe7503a(_0x350f8c,{'defaultValues':X[_0x13166e(0x258)],'getDefaultBucketName':({seriesName:_0x3ffe1b,target:_0x5d19e5})=>_0x5d19e5===_0x49880d[_0x13166e(0x169)]?_0x2e10cd['t']('bases-dashboard-ui.chart.waterfall.subtotal'):_0x3ffe1b?_0x3ffe1b+'-('+_0x2e10cd['t']('bases-dashboard-ui.chart.'+(_0x5d19e5===_0x49880d[_0x13166e(0x12c)]?_0x13166e(0x16f):_0x13166e(0x1bd)))+')':'','NumberFormatField':_0xc1dc99})}),_0x1e73f1&&_0x3067ce(_0x10fa69,{'children':[_0xe7503a(Z,{'id':_0x39a6c4['ParetoBarSeries'],'label':_0x2e10cd['t'](_0x13166e(0x28c)),'children':_0xe7503a(_0x133228,{'defaultValues':X['pareto'],'NumberFormatField':_0xc1dc99,'showDataPointEditor':!0x0,'target':'barStyle'})}),_0xe7503a(Z,{'id':_0x39a6c4[_0x13166e(0x2c7)],'label':_0x2e10cd['t'](_0x13166e(0x13f)),'children':_0xe7503a(_0x133228,{'defaultValues':X[_0x13166e(0x435)],'NumberFormatField':_0xc1dc99,'showDataPointEditor':!0x1,'target':_0x13166e(0x3f9)})})]}),_0x13f9c3&&_0xe7503a(Z,{'id':_0x39a6c4[_0x13166e(0x19a)],'label':_0x2e10cd['t'](_0x13166e(0x286)),'children':_0xe7503a(_0x2d8742,{'defaultValues':X[_0x13166e(0x2ce)],'NumberFormatField':_0xc1dc99})}),_0x59c1e5&&_0xe7503a(Z,{'id':_0x39a6c4[_0x13166e(0x464)],'label':_0x2e10cd['t']('bases-dashboard-ui.chart.section.wordCloud'),'children':_0xe7503a(_0x38fcfb,{'defaultValues':X['wordCloud']})}),_0x3e42a5&&_0xe7503a(Z,{'id':_0x39a6c4['Radar'],'label':_0x2e10cd['t'](_0x13166e(0x2d5)),'children':_0xe7503a(_0x4acb7b,{'defaultValues':X[_0x13166e(0x1e3)]})}),_0x173752&&_0xe7503a(Z,{'id':_0x39a6c4[_0x13166e(0x211)],'label':_0x2e10cd['t']('bases-dashboard-ui.chart.section.funnel'),'children':_0xe7503a(_0x2487c8,{'defaultValues':X[_0x13166e(0x1db)],'gapControl':'select'})}),_0x19ddaf&&_0xe7503a(Z,{'id':_0x39a6c4[_0x13166e(0x2cd)],'label':_0x2e10cd['t'](_0x13166e(0x328)),'children':_0xe7503a(_0xa88506,{'defaultValues':X['heatmap']})}),_0x4bb2bb&&_0xe7503a(Z,{'id':_0x39a6c4['Relation'],'label':_0x2e10cd['t'](_0x13166e(0x478)),'children':_0xe7503a(_0x347a14,{'defaultValues':X['relation']})}),_0xf7387b(_0x5c585c)&&_0xe7503a(Z,{'id':_0x39a6c4[_0x13166e(0x2f2)],'label':_0x2e10cd['t'](_0x5dedd8[_0x13166e(0x17e)](_0x5c585c,_0x26e67f[_0x13166e(0x3f2)])?_0x13166e(0x363):_0x13166e(0x1d0)),'children':_0xe7503a(_0x1feabd,{'defaultValues':X[_0x13166e(0x140)],'lineStyleControl':_0x13166e(0x28a)})}),_0x5a38e7(_0x5c585c,_0x4ed18f[_0x13166e(0x3a0)])&&_0xe7503a(Z,{'id':_0x39a6c4[_0x13166e(0x3a0)],'label':_0x2e10cd['t'](_0x13166e(0x374)),'children':_0xe7503a(_0x3a58c8,{'defaultValues':X[_0x13166e(0x3c1)]})}),_0x5a38e7(_0x5c585c,_0x4ed18f[_0x13166e(0x372)])&&_0x3067ce(_0x10fa69,{'children':[_0xe7503a(Z,{'id':_0x39a6c4[_0x13166e(0x468)],'label':_0x2e10cd['t']('bases-dashboard-ui.chart.common.horizontalAxis'),'children':_0xe7503a(_0x2f8b33,{'axis':'x','defaultValues':X[_0x13166e(0x3ef)],'NumberFormatField':_0xc1dc99})}),_0xe7503a(Z,{'id':_0x39a6c4['VerticalAxis'],'label':_0x2e10cd['t'](_0x13166e(0x458)),'children':_0xe7503a(_0x2f8b33,{'axis':'y','defaultValues':X[_0x13166e(0x3ef)],'NumberFormatField':_0xc1dc99})}),_0xe7503a(_0x3d51fa,{'section':_0x13166e(0x480)}),_0x4ea68f&&_0xe7503a(Z,{'id':_0x39a6c4[_0x13166e(0x3f0)],'label':_0x2e10cd['t'](_0x13166e(0x2ee)),'children':_0xe7503a(_0x2f8b33,{'axis':_0x13166e(0x2dd),'defaultValues':X[_0x13166e(0x3ef)],'NumberFormatField':_0xc1dc99})}),_0xe7503a(Z,{'id':_0x39a6c4[_0x13166e(0x415)],'label':_0x2e10cd['t'](_0x13166e(0x12b)),'children':_0xe7503a(_0x3e0c2c,{'defaultValues':X[_0x13166e(0x3ef)]})})]}),_0x5a38e7(_0x5c585c,_0x4ed18f['IndicatorLine'])&&_0xe7503a(Z,{'id':_0x39a6c4[_0x13166e(0x287)],'label':_0x2e10cd['t'](_0x13166e(0x47a)),'children':_0xe7503a(_0x53b526,{'defaultValues':X[_0x13166e(0x2d8)]})}),_0x3ca261(_0x5c585c)&&_0xe7503a(Z,{'id':_0x39a6c4[_0x13166e(0x3e2)],'label':_0x2e10cd['t'](_0x13166e(0x195)),'children':_0xe7503a(_0x59bf12,{'defaultValues':X[_0x13166e(0x316)]})}),_0x4c687c&&_0xe7503a(Z,{'id':_0x4c687c['id'],'label':_0x4c687c[_0x13166e(0x3c0)],'children':_0xe7503a(_0x2529ec,{})})]});}function ii(_0x1d02d0,_0x1971f0){const _0x4d46b1=_0x51bd0c;let _0x23cf54={[_0x26e67f[_0x4d46b1(0x437)]]:{'id':_0x39a6c4[_0x4d46b1(0x437)],'localeKey':'bases-dashboard-ui.chart.section.candlestick'},[_0x26e67f[_0x4d46b1(0x467)]]:{'id':_0x39a6c4[_0x4d46b1(0x467)],'localeKey':_0x4d46b1(0x34d)},[_0x26e67f[_0x4d46b1(0x285)]]:{'id':_0x39a6c4[_0x4d46b1(0x285)],'localeKey':'bases-dashboard-ui.chart.section.treemap'},[_0x26e67f[_0x4d46b1(0x252)]]:{'id':_0x39a6c4[_0x4d46b1(0x252)],'localeKey':'bases-dashboard-ui.chart.section.sunburst'},[_0x26e67f[_0x4d46b1(0x2cb)]]:{'id':_0x39a6c4[_0x4d46b1(0x2cb)],'localeKey':_0x4d46b1(0x376)},[_0x26e67f[_0x4d46b1(0x360)]]:{'id':_0x39a6c4[_0x4d46b1(0x360)],'localeKey':_0x4d46b1(0x25c)}}[_0x1d02d0];return _0x23cf54?{'id':_0x23cf54['id'],'label':_0x1971f0['t'](_0x23cf54[_0x4d46b1(0x40f)])}:null;}function ai(_0x40b6c1){const _0x4f2bfe=_0x51bd0c;return _0x4f2bfe(0x3a7)+_0x40b6c1;}function oi({onChange:_0x35cf82,onEditData:_0x5b008d,runtime:_0x279f04,sourceChart:_0x21264e,sourceName:_0x181b17,widget:_0x31eea2}){const _0xd1df56=_0x51bd0c;let _0x1842d5=_0x59ceb1(qr),_0x40612a=_0x59ceb1(_0x3e9ffe),[_0x18318c,_0x1f3b94]=_0x446379(_0xd7f52a[_0xd1df56(0x31d)]),_0x3167c3=_0x31eea2[_0xd1df56(0x368)]??_0x21264e,_0x1e9ace=_0x592e4f(()=>new _0x59650f(_0x279f04['model'],{'commit':_0x3568bb=>{const _0x516f80=_0xd1df56;var _0x23daac;let _0x349273=_0x279f04[_0x516f80(0x2be)],_0x3916f6=_0x33ebeb(_0x3568bb,{'series':(_0x23daac=_0x349273[_0x516f80(0x18b)])==null?void 0x0:_0x23daac[_0x516f80(0x33d)],'currentChartType':_0x349273[_0x516f80(0x44b)],'currentStyle':_0x349273['style'],'currentContext':_0x349273[_0x516f80(0x384)],'currentDataAggregation':_0x349273[_0x516f80(0x440)]});_0x35cf82({..._0x31eea2,'chart':ti(_0x3167c3,_0x3916f6)})[_0x516f80(0x18c)](()=>void 0x0);}}),[_0x3167c3,_0x35cf82,_0x279f04,_0x31eea2]),_0x384588=_0x592e4f(()=>_0x5ef485(_0x2a4d2b[_0xd1df56(0x259)](_0x130238=>({..._0x130238,'label':_0x40612a['t'](si(_0x130238[_0xd1df56(0x212)]))}))),[_0x40612a]);return _0xe7503a(_0x1b7f92,{'chartUIService':_0x1842d5,'hostAdapter':_0x1e9ace,'children':_0x3067ce(_0xd1df56(0x1fb),{'data-dashboard-chart-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0xe7503a(_0x331878,{'ariaLabel':_0x40612a['t'](_0xd1df56(0x254)),'className':_0xd1df56(0x3f1),'items':[{'label':_0x40612a['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0xd1df56(0x43a),'value':_0xd7f52a['Data']},{'label':_0x40612a['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0xd1df56(0x137),'value':_0xd7f52a[_0xd1df56(0x366)]}],'value':_0x18318c,'onChange':_0x1f3b94}),_0x18318c===_0xd7f52a[_0xd1df56(0x31d)]?_0xe7503a(_0x38b71a,{'id':_0xd1df56(0x43a),'label':_0x40612a['t'](_0xd1df56(0x3d0)),'children':_0x3067ce(_0xd1df56(0x1fb),{'className':_0xd1df56(0x227),'children':[_0xe7503a(_0x164a8c,{'options':_0x384588}),_0xe7503a(_0xedfe4a,{}),_0xe7503a(_0x4034d5,{}),_0xe7503a(ni,{}),_0xe7503a(_0x1a336c,{}),_0x3067ce(_0xd1df56(0x1fb),{'children':[_0xe7503a(_0x23b11e,{'title':_0x40612a['t']('bases-dashboard-ui.dashboardInspector.dataSource')}),_0xe7503a(_0x177173,{'disabled':!0x0,'value':_0x181b17}),_0xe7503a(_0x2d5ef7,{'className':'univer-mt-2\x20univer-w-full','onClick':_0x5b008d,'children':_0x40612a['t'](_0xd1df56(0x289))})]})]})}):_0xe7503a(_0x38b71a,{'id':_0xd1df56(0x137),'label':_0x40612a['t'](_0xd1df56(0x281)),'children':_0xe7503a(ri,{})})]})});}function si(_0xa76971){const _0x668732=_0x51bd0c;return _0x668732(0x3a7)+_0xa76971;}const ci=[_0x51bd0c(0x148),'number',_0x51bd0c(0x48c),_0x51bd0c(0x38d),_0x51bd0c(0x184),_0x51bd0c(0x2a9)];function li({base:_0x56aefd,onChange:_0x2910d7,onSelectBackgroundImage:_0x36c8ae,widget:_0x519322}){const _0x4a327f=_0x51bd0c;var _0x123def;let _0x5dbff7=_0x59ceb1(_0x3e9ffe),_0x1358bc=_0x59ceb1(_0x445d1e),_0x196f62=_0x50b983(()=>_0x1358bc[_0x4a327f(0x329)],_0x1358bc[_0x4a327f(0x2f8)](),!0x1,[_0x1358bc]),_0x245613=_0x50b983(()=>_0x1358bc[_0x4a327f(0x129)],_0x1358bc[_0x4a327f(0x356)],!0x1,[_0x1358bc]),[_0x3eb002,_0x1060dd]=_0x446379('data'),[_0x2e555d,_0x9ac143]=_0x446379(!0x1),_0x217985=Cr(_0x519322),_0x327c3f=_0x56aefd[_0x4a327f(0x1f8)]()[_0x4a327f(0x487)][_0x519322[_0x4a327f(0x46b)]],_0x3218c0=_0x327c3f==null?void 0x0:_0x327c3f[_0x4a327f(0x411)][_0x4a327f(0x142)](_0x5567fe=>_0x327c3f[_0x4a327f(0x27f)][_0x5567fe]),_0x260c3a=_0x3218c0?_0x327c3f==null?void 0x0:_0x327c3f['views'][_0x3218c0]:void 0x0,_0x42370a=_0x327c3f&&_0x260c3a?_0x1012bd(_0x56aefd['getSnapshot'](),_0x327c3f,_0x260c3a)[_0x4a327f(0x259)](_0x225a57=>({..._0x225a57,'current':!0x1})):[],_0x51aa1c=((_0x123def=_0x519322[_0x4a327f(0x346)][_0x4a327f(0x42c)])==null?void 0x0:_0x123def[_0x4a327f(0x25d)])??'',_0x4cb9d9=_0x4a16e5=>_0x2910d7(wr(_0x519322,_0x4a16e5))[_0x4a327f(0x18c)](()=>void 0x0),_0x2769ae=_0x233d00=>_0x2910d7({..._0x519322,'description':_0x233d00})[_0x4a327f(0x18c)](()=>void 0x0);return _0x3067ce(_0x4a327f(0x1fb),{'data-dashboard-formula-inspector':!0x0,'className':_0x4a327f(0x3a9),'children':[_0xe7503a(_0x16aea6,{'className':_0x4a327f(0x253),'items':[{'value':_0x4a327f(0x399),'label':_0x5dbff7['t'](_0x4a327f(0x43b))},{'value':_0x4a327f(0x393),'label':_0x5dbff7['t'](_0x4a327f(0x39a))}],'value':_0x3eb002,'onChange':_0x1060dd}),_0xe7503a(_0x4a327f(0x1fb),{'className':_0x4a327f(0x13e),'children':_0x3eb002===_0x4a327f(0x399)?_0x3067ce(_0x4a327f(0x1fb),{'className':_0x4a327f(0x269),'children':[_0xe7503a(ui,{'label':_0x5dbff7['t'](_0x4a327f(0x2a2)),'children':_0xe7503a(_0x177173,{'value':_0x519322[_0x4a327f(0x208)]??_0x519322['title']??'','onChange':_0x2769ae,'onBlur':_0x42e297=>_0x2769ae(_0x42e297[_0x4a327f(0x367)][_0x4a327f(0x303)])})}),_0xe7503a(ui,{'label':_0x5dbff7['t'](_0x4a327f(0x185)),'children':_0xe7503a(_0x177173,{'disabled':!0x0,'value':(_0x327c3f==null?void 0x0:_0x327c3f['name'])??_0x5dbff7['t'](_0x4a327f(0x2ef))})}),_0x3067ce(ui,{'label':_0x5dbff7['t']('bases-dashboard-ui.dashboardInspector.formula'),'children':[_0xe7503a(_0x177173,{'disabled':!0x0,'value':_0x4c4798(_0x51aa1c,_0x42370a)}),_0xe7503a(_0x2d5ef7,{'className':_0x4a327f(0x3d9),'onClick':()=>_0x9ac143(!0x0),'children':_0x5dbff7['t'](_0x4a327f(0x2bb))})]})]}):_0x3067ce(_0x4a327f(0x1fb),{'className':_0x4a327f(0x269),'children':[_0xe7503a(_0x35e2b4,{'emptyLabel':_0x5dbff7['t'](_0x4a327f(0x43e)),'label':_0x5dbff7['t'](_0x4a327f(0x43e)),'pickerFallbackValue':_0x245613?_0x196f62[_0x4a327f(0x19d)][0x384]:_0x196f62[_0x4a327f(0x19d)][0x0],'resetLabel':_0x5dbff7['t'](_0x4a327f(0x1cb)),'value':_0x217985[_0x4a327f(0x17f)]??null,'onChange':_0x2447b9=>_0x4cb9d9({'backgroundColor':_0x2447b9??void 0x0})}),_0x3067ce(ui,{'label':_0x5dbff7['t'](_0x4a327f(0x3e5)),'children':[_0x3067ce(_0x4a327f(0x1fb),{'className':_0x4a327f(0x15c),'children':[_0x3067ce(_0x2d5ef7,{'className':_0x4a327f(0x26a),'onClick':()=>{const _0x27e22d=_0x4a327f;_0x36c8ae()[_0x27e22d(0x439)](_0x5b69e7=>{const _0x1c7135=_0x27e22d;if(_0x5b69e7){var _0x4e84a8;return _0x4cb9d9({'backgroundImage':{..._0x5b69e7,'fit':((_0x4e84a8=_0x217985[_0x1c7135(0x375)])==null?void 0x0:_0x4e84a8[_0x1c7135(0x446)])??_0x1c7135(0x1c6)}});}})['catch'](()=>void 0x0);},'children':[_0xe7503a(_0x313c06,{}),_0x217985[_0x4a327f(0x375)]?_0x5dbff7['t']('bases-dashboard-ui.dashboardInspector.replaceImage'):_0x5dbff7['t'](_0x4a327f(0x18d))]}),_0x217985[_0x4a327f(0x375)]&&_0xe7503a(_0x2d5ef7,{'aria-label':_0x5dbff7['t'](_0x4a327f(0x35b)),'title':_0x5dbff7['t'](_0x4a327f(0x35b)),'onClick':()=>_0x4cb9d9({'backgroundImage':void 0x0}),'children':_0xe7503a(_0x9b7646,{})})]}),_0x217985[_0x4a327f(0x375)]&&_0xe7503a(_0x16aea6,{'className':'univer-mt-2','items':[{'value':_0x4a327f(0x1c6),'label':_0x5dbff7['t'](_0x4a327f(0x2d4))},{'value':'contain','label':_0x5dbff7['t']('bases-dashboard-ui.dashboardInspector.contain')}],'value':_0x217985[_0x4a327f(0x375)]['fit'],'onChange':_0x451b84=>_0x4cb9d9({'backgroundImage':_0x217985[_0x4a327f(0x375)]?{..._0x217985['backgroundImage'],'fit':_0x451b84}:void 0x0})})]}),_0xe7503a(_0x35e2b4,{'emptyLabel':_0x5dbff7['t'](_0x4a327f(0x28d)),'label':_0x5dbff7['t'](_0x4a327f(0x28d)),'pickerFallbackValue':_0x245613?_0x196f62['gray'][0x32]:_0x196f62['gray'][0x3e8],'resetLabel':_0x5dbff7['t'](_0x4a327f(0x1cb)),'value':_0x217985['textColor']??null,'onChange':_0x3ace45=>_0x4cb9d9({'textColor':_0x3ace45??void 0x0})}),_0xe7503a(ui,{'label':_0x5dbff7['t'](_0x4a327f(0x32f)),'children':_0xe7503a(_0x16aea6,{'items':[{'value':'left','label':_0x5dbff7['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':_0x4a327f(0x291),'label':_0x5dbff7['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0x4a327f(0x1b8),'label':_0x5dbff7['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x217985[_0x4a327f(0x1b4)],'onChange':_0x35d6f0=>_0x4cb9d9({'alignment':_0x35d6f0})})}),_0x3067ce(ui,{'label':_0x5dbff7['t'](_0x4a327f(0x2e4)),'children':[_0xe7503a(_0x16aea6,{'items':[{'value':_0x4a327f(0x2e5),'label':_0x5dbff7['t'](_0x4a327f(0x357))},{'value':_0x4a327f(0x203),'label':_0x5dbff7['t'](_0x4a327f(0x44f))}],'value':_0x217985[_0x4a327f(0x15d)],'onChange':_0x49b17f=>_0x4cb9d9({'fontSizeMode':_0x49b17f})}),_0x217985[_0x4a327f(0x15d)]==='custom'&&_0xe7503a(_0x1ccd7d,{'className':_0x4a327f(0x1ab),'min':0xc,'max':0x78,'value':_0x217985[_0x4a327f(0x16b)],'onChange':_0x555708=>_0x4cb9d9({'fontSize':_0x555708??0x28,'fontSizeMode':_0x4a327f(0x203)})})]}),_0xe7503a(ui,{'label':_0x5dbff7['t'](_0x4a327f(0x3b1)),'children':_0xe7503a(Yr,{'value':_0x217985['numberFormat'],'options':[{'value':_0x4a327f(0x148),'label':_0x5dbff7['t'](_0x4a327f(0x28e))},{'value':'number','label':_0x5dbff7['t'](_0x4a327f(0x20b))},{'value':_0x4a327f(0x48c),'label':_0x5dbff7['t']('bases-dashboard-ui.dashboardInspector.percent')},{'value':_0x4a327f(0x38d),'label':_0x5dbff7['t'](_0x4a327f(0x3fa))},{'value':_0x4a327f(0x184),'label':_0x5dbff7['t'](_0x4a327f(0x47d))},{'value':_0x4a327f(0x2a9),'label':_0x5dbff7['t']('bases-dashboard-ui.dashboardInspector.compact')}],'onChange':_0x346af0=>{let _0x3113b0=ci['find'](_0x2866db=>_0x2866db===_0x346af0);_0x3113b0&&_0x4cb9d9({'numberFormat':_0x3113b0});}})}),_0x217985['numberFormat']===_0x4a327f(0x38d)&&_0xe7503a(ui,{'label':_0x5dbff7['t'](_0x4a327f(0x24d)),'children':_0xe7503a(_0x177173,{'value':_0x217985['currency'],'onChange':_0x51939c=>_0x4cb9d9({'currency':_0x51939c[_0x4a327f(0x42d)](0x0,0x3)[_0x4a327f(0x12d)]()})})}),_0x217985[_0x4a327f(0x33a)]!=='general'&&_0xe7503a(ui,{'label':_0x5dbff7['t'](_0x4a327f(0x186)),'children':_0xe7503a(_0x1ccd7d,{'min':0x0,'max':0x8,'value':_0x217985[_0x4a327f(0x2e0)],'onChange':_0x2c25c5=>_0x4cb9d9({'decimalPlaces':_0x2c25c5??0x0})})})]})}),_0x2e555d&&_0xe7503a(Zr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0xe7503a(_0x2820c6,{'tables':_0x42370a,'formula':_0x4c4798(_0x51aa1c,_0x42370a),'onCancel':()=>_0x9ac143(!0x1),'onSave':_0x30e865=>{const _0x3f3d92=_0x4a327f;let _0x35b3da=_0x519322[_0x3f3d92(0x346)]['formulaBinding']??{'formula':''};return _0x2910d7({..._0x519322,'shapeData':{..._0x519322['shapeData'],'formulaBinding':{..._0x35b3da,'formula':_0x508683(_0x30e865,_0x42370a)}}})['then'](()=>_0x9ac143(!0x1))[_0x3f3d92(0x18c)](()=>void 0x0);}})})]});}function ui({children:_0x35c7e3,label:_0x4aecf9}){const _0x172a9c=_0x51bd0c;return _0x3067ce(_0x172a9c(0x1fb),{'role':'group','aria-label':_0x4aecf9,'className':_0x172a9c(0x15a),'children':[_0xe7503a(_0x172a9c(0x1b9),{'children':_0x4aecf9}),_0x35c7e3]});}function di({disabled:_0x56e21b,fields:_0xb5dfc5,filter:_0x2e81c7,onChange:_0x1e9244}){const _0x2d1fc4=_0x51bd0c;let _0x179175=_0x59ceb1(_0x196ea2)['rootContainerElement']??null,[_0x169a8a,_0x3ceb49]=_0x446379(null),_0x2aeab0=_0x59ceb1(_0x3e9ffe),_0x16eb2b=(_0x2e81c7==null?void 0x0:_0x2e81c7[_0x2d1fc4(0x36f)])??[];if(!_0x16eb2b[_0x2d1fc4(0x220)])return _0x3067ce(_0x2d1fc4(0x1fb),{'className':_0x2d1fc4(0x429),'children':[_0xe7503a(_0x4d4214,{'className':_0x2d1fc4(0x41c)}),_0xe7503a(_0x2d1fc4(0x1b9),{'className':_0x2d1fc4(0x460),'children':_0x2aeab0['t']('bases-dashboard-ui.dashboard.tableFilter')})]});let _0x3fed4e=_0x169a8a==null?void 0x0:_0x16eb2b[_0x169a8a],_0x21dbe0=_0xb5dfc5['find'](_0x5614cc=>_0x5614cc['id']===(_0x3fed4e==null?void 0x0:_0x3fed4e[_0x2d1fc4(0x418)]));return _0x3067ce('div',{'className':_0x2d1fc4(0x299),'children':[_0x16eb2b['map']((_0x126c6a,_0x3b3aa5)=>{const _0x44e5cf=_0x2d1fc4;var _0x171cc5;return _0x3067ce(_0x2d5ef7,{'disabled':_0x56e21b,'onClick':()=>_0x3ceb49(_0x3b3aa5),'children':[_0xe7503a(_0x44e5cf(0x1b9),{'children':((_0x171cc5=_0xb5dfc5[_0x44e5cf(0x142)](_0x198cab=>_0x198cab['id']===_0x126c6a['fieldId']))==null?void 0x0:_0x171cc5[_0x44e5cf(0x136)])??_0x126c6a[_0x44e5cf(0x418)]}),_0xe7503a(_0x44e5cf(0x1b9),{'className':'univer-truncate','children':String(_0x126c6a['operand']??'')})]},_0x126c6a[_0x44e5cf(0x418)]+'-'+_0x3b3aa5);}),_0x21dbe0&&_0x3fed4e&&_0x169a8a!=null&&_0x179175&&_0x26e413(_0xe7503a(_0x1fbf6a,{'field':_0x21dbe0,'value':_0x3fed4e[_0x2d1fc4(0x157)],'onClose':()=>_0x3ceb49(null),'onSave':_0xee3a5c=>{const _0x40c41f=_0x2d1fc4;_0x1e9244({'conjunction':(_0x2e81c7==null?void 0x0:_0x2e81c7['conjunction'])??_0xf66dad[_0x40c41f(0x2bc)],'conditions':_0x16eb2b['map']((_0x1526c6,_0x38ac06)=>_0x38ac06===_0x169a8a?{..._0x1526c6,'operand':_0xee3a5c}:_0x1526c6)}),_0x3ceb49(null);}}),_0x179175)]});}function fi({fields:_0x39f331,filter:_0x1a8a7f,onChange:_0x3c743f,onClear:_0xa8857b}){const _0x3e76dd=_0x51bd0c;let _0x1b1ae1=_0x59ceb1(_0x3e9ffe);return _0x3067ce(_0x3e76dd(0x1fb),{'children':[_0xe7503a(_0x18b26e,{'fields':_0x39f331,'value':_0x1a8a7f??{'conjunction':_0xf66dad[_0x3e76dd(0x2bc)],'conditions':[]},'onChange':_0x3c743f}),_0xe7503a(_0x2d5ef7,{'onClick':_0xa8857b,'children':_0x1b1ae1['t'](_0x3e76dd(0x1cb))})]});}function pi({base:_0xd16c26,chartRuntime:_0x2ab610,onChange:_0x49da2b,onClose:_0x4580b5,onSelectBackgroundImage:_0x2e4c68,onSelectImage:_0x2a379b,unitId:_0x6ed982,widget:_0xf714e5}){const _0x2e8b37=_0x51bd0c;let _0x5b1e18=_0x59ceb1(_0x19ef53),_0x18ef76=_0x59ceb1(_0x3e9ffe),_0x30b053=_0xd16c26[_0x2e8b37(0x1f8)](),_0x117452=_0x2e8b37(0x46b)in _0xf714e5?_0x30b053[_0x2e8b37(0x487)][_0xf714e5['tableId']]:void 0x0,_0x4cd9f3=_0xf714e5[_0x2e8b37(0x2e3)]===_0x9d376a[_0x2e8b37(0x475)]?_0x117452==null?void 0x0:_0x117452[_0x2e8b37(0x27f)][_0xf714e5[_0x2e8b37(0x1d5)]]:void 0x0,_0xbeeceb=_0x18ef76['t'](bi(_0xf714e5)),_0x544f6b=_0x3067ce(_0x2e8b37(0x2c8),{'data-dashboard-inspector':!0x0,'className':_0x2e8b37(0x128),'children':[_0xf714e5['type']===_0x9d376a[_0x2e8b37(0x475)]&&(yi(_0x4cd9f3)&&_0x2ab610?_0xe7503a(oi,{'runtime':_0x2ab610,'sourceChart':_0x4cd9f3[_0x2e8b37(0x18b)]['chart'],'sourceName':((_0x117452==null?void 0x0:_0x117452[_0x2e8b37(0x136)])??'')+_0x2e8b37(0x3de)+_0x4cd9f3[_0x2e8b37(0x136)],'widget':_0xf714e5,'onChange':_0x49da2b,'onEditData':()=>{const _0x3a0646=_0x2e8b37;_0x5b1e18[_0x3a0646(0x3b8)](_0x426ed6['id'],{'unitId':_0x6ed982,'tableId':_0xf714e5['tableId'],'viewId':_0xf714e5[_0x3a0646(0x1d5)]})['catch'](()=>void 0x0);}}):_0xe7503a(_i,{'message':yi(_0x4cd9f3)?_0x18ef76['t'](_0x2e8b37(0x14e)):_0x18ef76['t'](_0x2e8b37(0x2ef))})),_0xf714e5[_0x2e8b37(0x2e3)]===_0x9d376a['FormulaShape']&&_0xe7503a(li,{'base':_0xd16c26,'widget':_0xf714e5,'onChange':_0x49da2b,'onSelectBackgroundImage':_0x2e4c68}),_0xf714e5[_0x2e8b37(0x2e3)]===_0x9d376a[_0x2e8b37(0x154)]&&_0xe7503a(hi,{'base':_0xd16c26,'onChange':_0x49da2b,'widget':_0xf714e5}),_0xf714e5[_0x2e8b37(0x2e3)]===_0x9d376a[_0x2e8b37(0x200)]&&_0xe7503a(gi,{'onChange':_0x49da2b,'widget':_0xf714e5}),_0xf714e5[_0x2e8b37(0x2e3)]===_0x9d376a['Image']&&_0xe7503a(mi,{'onChange':_0x49da2b,'onSelectImage':_0x2a379b,'widget':_0xf714e5})]});return _0xe7503a(_0x5abe1b,{'title':_0xbeeceb,'onClose':_0x4580b5,'children':_0x544f6b});}function mi({onChange:_0x226735,onSelectImage:_0x5e2a5c,widget:_0x665566}){const _0x181907=_0x51bd0c;let _0x4671c5=_0x59ceb1(_0x3e9ffe);return _0x3067ce(_0x181907(0x1fb),{'className':_0x181907(0x163),'children':[_0x3067ce(_0x2d5ef7,{'className':_0x181907(0x1ee),'onClick':()=>_0x5e2a5c()[_0x181907(0x439)](_0x38203e=>_0x38203e&&_0x226735({..._0x665566,'source':_0x38203e[_0x181907(0x313)],'sourceType':_0x38203e[_0x181907(0x401)],'alt':_0x38203e[_0x181907(0x136)]}))['catch'](()=>void 0x0),'children':[_0xe7503a(_0x313c06,{}),_0x4671c5['t'](_0x181907(0x426))]}),_0x3067ce(_0x181907(0x3c0),{'className':_0x181907(0x15a),'children':[_0xe7503a(_0x181907(0x1b9),{'children':_0x4671c5['t'](_0x181907(0x3e5))}),_0xe7503a(_0x16aea6,{'items':[{'value':_0x181907(0x1c6),'label':_0x4671c5['t'](_0x181907(0x2d4))},{'value':_0x181907(0x3f4),'label':_0x4671c5['t'](_0x181907(0x379))},{'value':_0x181907(0x2b8),'label':_0x4671c5['t'](_0x181907(0x2e9))}],'value':_0x665566[_0x181907(0x298)]??'cover','onChange':_0x1514fa=>_0x226735({..._0x665566,'displayMode':_0x1514fa})[_0x181907(0x18c)](()=>void 0x0)})]})]});}function hi({base:_0x268a80,onChange:_0x487c3b,widget:_0x21e9bd}){const _0x2ad7d5=_0x51bd0c;let _0x2c494d=_0x268a80[_0x2ad7d5(0x1f8)]()[_0x2ad7d5(0x487)][_0x21e9bd['tableId']],_0x502de8=_0x2c494d==null?void 0x0:_0x2c494d[_0x2ad7d5(0x411)][_0x2ad7d5(0x142)](_0x5d4a92=>_0x2c494d[_0x2ad7d5(0x27f)][_0x5d4a92]),_0x3c096b=_0x502de8?_0x2c494d==null?void 0x0:_0x2c494d[_0x2ad7d5(0x27f)][_0x502de8]:void 0x0,_0x2dcc5e=_0x2c494d&&_0x3c096b?_0x5d053c(_0x2c494d,_0x3c096b):[];return _0xe7503a(fi,{'fields':_0x2dcc5e,'filter':_0x21e9bd[_0x2ad7d5(0x1ff)],'onChange':_0x2e125e=>_0x487c3b({..._0x21e9bd,'filter':_0x2e125e})[_0x2ad7d5(0x18c)](()=>void 0x0),'onClear':()=>_0x487c3b({..._0x21e9bd,'filter':null})[_0x2ad7d5(0x18c)](()=>void 0x0)});}function gi({onChange:_0x21a580,widget:_0x35789f}){const _0x5ddde7=_0x51bd0c;let _0x23c15a=_0x59ceb1(_0x3e9ffe),_0x56d6b9=_0x59ceb1(_0x445d1e),_0xbe33d=_0x50b983(()=>_0x56d6b9[_0x5ddde7(0x329)],_0x56d6b9[_0x5ddde7(0x2f8)](),!0x1,[_0x56d6b9]),_0x4a4439=Hr(_0x35789f),_0x2d0075=_0x3e487b=>_0x21a580({..._0x35789f,'appearance':{..._0x4a4439,..._0x3e487b}})[_0x5ddde7(0x18c)](()=>void 0x0);return _0x3067ce('div',{'className':_0x5ddde7(0x46a),'children':[_0xe7503a(_0x562bce,{'className':'univer-max-h-40\x20univer-text-base','defaultValue':Ur(_0x35789f[_0x5ddde7(0x3ea)]),'rows':0x8,'onBlur':_0x577a22=>_0x21a580({..._0x35789f,'document':Wr(_0x35789f[_0x5ddde7(0x3ea)],_0x577a22[_0x5ddde7(0x367)]['value'])})[_0x5ddde7(0x18c)](()=>void 0x0)}),_0xe7503a(_0x35e2b4,{'emptyLabel':_0x23c15a['t'](_0x5ddde7(0x43e)),'label':_0x23c15a['t'](_0x5ddde7(0x43e)),'pickerFallbackValue':_0xbe33d[_0x5ddde7(0x19d)][0x0],'resetLabel':_0x23c15a['t'](_0x5ddde7(0x1cb)),'value':_0x4a4439[_0x5ddde7(0x17f)]??null,'onChange':_0x376b8e=>_0x2d0075({'backgroundColor':_0x376b8e??void 0x0})}),_0xe7503a(_0x35e2b4,{'emptyLabel':_0x23c15a['t'](_0x5ddde7(0x28d)),'label':_0x23c15a['t'](_0x5ddde7(0x28d)),'pickerFallbackValue':_0xbe33d[_0x5ddde7(0x19d)][0x3e8],'resetLabel':_0x23c15a['t'](_0x5ddde7(0x1cb)),'value':_0x4a4439[_0x5ddde7(0x40a)]??null,'onChange':_0x263563=>_0x2d0075({'textColor':_0x263563??void 0x0})}),_0xe7503a(vi,{'label':_0x23c15a['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0xe7503a(_0x16aea6,{'items':[{'value':_0x5ddde7(0x489),'label':_0x23c15a['t'](_0x5ddde7(0x1fd))},{'value':'center','label':_0x23c15a['t'](_0x5ddde7(0x1a3))},{'value':_0x5ddde7(0x1b8),'label':_0x23c15a['t'](_0x5ddde7(0x1d3))}],'value':_0x4a4439[_0x5ddde7(0x1b4)],'onChange':_0x3bf3e8=>_0x2d0075({'alignment':_0x3bf3e8})})}),_0x3067ce(vi,{'label':_0x23c15a['t'](_0x5ddde7(0x2e4)),'children':[_0xe7503a(_0x16aea6,{'items':[{'value':'auto','label':_0x23c15a['t'](_0x5ddde7(0x357))},{'value':_0x5ddde7(0x203),'label':_0x23c15a['t'](_0x5ddde7(0x44f))}],'value':_0x4a4439[_0x5ddde7(0x15d)],'onChange':_0xa17721=>_0x2d0075({'fontSizeMode':_0xa17721})}),_0x4a4439[_0x5ddde7(0x15d)]===_0x5ddde7(0x203)&&_0xe7503a(_0x1ccd7d,{'className':_0x5ddde7(0x1ab),'min':0xa,'max':0x78,'value':_0x4a4439['fontSize'],'onChange':_0x2e8158=>_0x2d0075({'fontSize':_0x2e8158??0x12,'fontSizeMode':'custom'})})]})]});}function _i({message:_0x10b625}){const _0x1f42ba=_0x51bd0c;return _0xe7503a(_0x1f42ba(0x1fb),{'className':_0x1f42ba(0x455),'children':_0x10b625});}function vi({children:_0x254bac,label:_0x13ac88}){const _0x534562=_0x51bd0c;return _0x3067ce(_0x534562(0x1fb),{'role':_0x534562(0x3e8),'aria-':!0x0,'className':_0x534562(0x15a),'children':[_0xe7503a(_0x534562(0x1b9),{'children':_0x13ac88}),_0x254bac]});}function yi(_0x309034){const _0x32a1e7=_0x51bd0c;return(_0x309034==null?void 0x0:_0x309034[_0x32a1e7(0x2e3)])===_0x497849[_0x32a1e7(0x1c2)]&&typeof _0x309034[_0x32a1e7(0x18b)]==_0x32a1e7(0x419)&&_0x309034[_0x32a1e7(0x18b)]!==null&&_0x32a1e7(0x26c)in _0x309034[_0x32a1e7(0x18b)]&&_0x32a1e7(0x368)in _0x309034[_0x32a1e7(0x18b)];}function bi(_0x39bb36){const _0x19cecd=_0x51bd0c;switch(_0x39bb36['type']){case _0x9d376a[_0x19cecd(0x475)]:return _0x19cecd(0x1f4);case _0x9d376a[_0x19cecd(0x154)]:return _0x19cecd(0x2cf);case _0x9d376a[_0x19cecd(0x200)]:return'bases-dashboard-ui.dashboard.text';case _0x9d376a[_0x19cecd(0x180)]:return'bases-dashboard-ui.dashboard.image';case _0x9d376a[_0x19cecd(0x159)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function xi({onDelete:_0x560782,onEdit:_0x12226f,onMoveUp:_0x9e5872,onMoveDown:_0x26976e}){const _0x10d60e=_0x51bd0c;let [_0x1c665d,_0x5bff7c]=_0x446379(!0x1),_0x10c33e=_0x59ceb1(_0x3e9ffe),_0x25ee2b=_0x10c33e['t']('bases-dashboard-ui.dashboard.editWidget'),_0x29112e=_0x10c33e['t'](_0x10d60e(0x2e8)),_0x1deb80=_0x10c33e['t']('bases-dashboard-ui.dashboard.widgetActions'),_0x30f0b9=[{'type':_0x10d60e(0x1ad),'children':_0x3067ce('span',{'className':_0x10d60e(0x3ff),'children':[_0xe7503a(_0x5a0d30,{'className':'univer-size-4','aria-hidden':_0x10d60e(0x38b)}),_0xe7503a(_0x10d60e(0x1b9),{'children':_0x25ee2b})]}),'onSelect':_0x12226f},..._0x9e5872?[{'type':_0x10d60e(0x1ad),'children':_0x3067ce(_0x10d60e(0x1b9),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0xe7503a(_0x3d935d,{'className':_0x10d60e(0x3ba),'aria-hidden':_0x10d60e(0x38b)}),_0xe7503a('span',{'children':_0x10c33e['t']('bases-dashboard-ui.mobile.moveUp')})]}),'onSelect':_0x9e5872}]:[],..._0x26976e?[{'type':_0x10d60e(0x1ad),'children':_0x3067ce('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0xe7503a(_0x56d4e1,{'className':'univer-size-4','aria-hidden':'true'}),_0xe7503a(_0x10d60e(0x1b9),{'children':_0x10c33e['t'](_0x10d60e(0x318))})]}),'onSelect':_0x26976e}]:[],{'type':'separator'},{'type':_0x10d60e(0x1ad),'variant':'destructive','children':_0x3067ce(_0x10d60e(0x1b9),{'className':_0x10d60e(0x3ff),'children':[_0xe7503a(_0x9b7646,{'className':_0x10d60e(0x3ba),'aria-hidden':_0x10d60e(0x38b)}),_0xe7503a(_0x10d60e(0x1b9),{'children':_0x29112e})]}),'onSelect':_0x560782}];return _0xe7503a(_0x13d257,{'open':_0x1c665d,'onOpenChange':_0x5bff7c,'align':'end','sideOffset':0x4,'items':_0x30f0b9[_0x10d60e(0x259)](_0x3f012d=>({..._0x3f012d,'className':_0x3f012d['type']===_0x10d60e(0x1ad)?_0x10d60e(0x3d1):void 0x0})),'children':_0xe7503a(_0x2d5ef7,{'type':_0x10d60e(0x41e),'size':_0x10d60e(0x47e),'variant':'text','onPointerDown':_0x14b196=>_0x14b196[_0x10d60e(0x412)](),'onClick':()=>_0x5bff7c(_0x4d481d=>!_0x4d481d),'title':_0x1deb80,'aria-label':_0x1deb80,'className':_0x10d60e(0x241),'children':_0xe7503a(_0x5b55fe,{'className':_0x10d60e(0x3ba),'aria-hidden':_0x10d60e(0x38b)})})});}function Si({dashboardId:_0x30e600,presentation:_0x21527a=!0x1,unitId:_0x9646df}){const _0x4482b6=_0x51bd0c;let _0x34949d=_0x59ceb1(_0x58f1ef),_0x19bc8a=_0x59ceb1(_0x3023bc);_0x50b983(_0x19bc8a['changed$'],0x0);let _0x193ee7=_0x59ceb1(_0x19ef53),_0x560cc1=_0x59ceb1(_0x595f75),_0x39fe88=_0x59ceb1(_0x4ae27a),_0x3c5365=_0x59ceb1(_0x490434),_0xa733fd=_0x59ceb1(_0x3e9ffe),_0x1638a9=_0x59ceb1(_0x46b07c),_0x144c0f=_0x59ceb1(_0x743e43),[_0x16d66e,_0x326e02]=_0x446379(!0x1),[_0x550a5f,_0x22defc]=_0x446379(),[_0x202289,_0x26abf7]=_0x446379(!0x1),[_0xa53d28,_0x4e134c]=_0x446379(()=>new Map()),_0xe792d5=_0x42d58e((_0x4cdfb2,_0x437b30)=>{_0x4e134c(_0x5b1cd0=>{const _0x338ae4=_0x30a0;let _0x49abd9=new Map(_0x5b1cd0);return _0x437b30?_0x49abd9['set'](_0x4cdfb2,_0x437b30):_0x49abd9[_0x338ae4(0x28f)](_0x4cdfb2),_0x49abd9;});},[]),_0x25faec=_0x50b983(()=>_0x1638a9['change$'][_0x4482b6(0x405)](_0xa2a9f7(()=>_0x1638a9['getDashboard'](_0x9646df,_0x30e600))),_0x1638a9[_0x4482b6(0x1d4)](_0x9646df,_0x30e600),!0x1,[_0x30e600,_0x1638a9,_0x9646df]),_0x30f447=_0x3c5365[_0x4482b6(0x1de)](_0x9646df,_0xe1c385['UNIVER_BASE']),_0x3f7e3d=_0x50b983(()=>_0x144c0f[_0x4482b6(0x27a)],{'undos':0x0,'redos':0x0},!0x1,[_0x144c0f]),_0xd4f476=vr(_0x9646df,_0x30e600);if(_0x3dfd92(()=>{const _0x3e985c=_0x4482b6;_0x3c5365[_0x3e985c(0x402)](_0x9646df),_0x3c5365['focusUnit'](_0x9646df);},[_0x3c5365,_0x9646df]),!_0x25faec||!_0x30f447)return null;let _0x27697e={'unitId':_0x9646df,'objectId':_0x562c16(_0x30e600),'objectType':_0x5c4bf9[_0x4482b6(0x33c)]},_0x4db414=(_0x3d7ab2,_0x24771c)=>{const _0x1cceee=_0x4482b6;let _0x50fc88=[..._0x25faec[_0x1cceee(0x205)]],_0xe8120a=_0x50fc88['indexOf'](_0x3d7ab2),_0x4d46ea=_0xe8120a+_0x24771c;if(!(_0xe8120a<0x0||_0x4d46ea<0x0||_0x4d46ea>=_0x50fc88[_0x1cceee(0x220)]))return[_0x50fc88[_0xe8120a],_0x50fc88[_0x4d46ea]]=[_0x50fc88[_0x4d46ea],_0x50fc88[_0xe8120a]],_0x193ee7[_0x1cceee(0x3b8)](_0x5741e1['id'],{'unitId':_0x9646df,'dashboard':{..._0x25faec,'widgetOrder':_0x50fc88}});},_0x48dc8a=_0x1f1eef=>_0x193ee7['executeCommand'](_0x2bce9e['id'],{'unitId':_0x9646df,'dashboardId':_0x30e600,'widget':_0x1f1eef})[_0x4482b6(0x18c)](()=>void 0x0),_0x332aef=(_0x10d91a,_0x5d5a75,_0x30d230)=>{const _0x271c80=_0x4482b6;let _0x1ddbc3=Math[_0x271c80(0x335)](0x0,..._0x25faec[_0x271c80(0x205)]['flatMap'](_0x3aa3c8=>{const _0x1cefa1=_0x271c80;var _0x298de3;let _0x4c161d=(_0x298de3=_0x25faec[_0x1cefa1(0x3ca)][_0x3aa3c8])==null?void 0x0:_0x298de3[_0x1cefa1(0x465)];return _0x4c161d?[_0x4c161d[_0x1cefa1(0x216)]+_0x4c161d['rowSpan']]:[];})),_0x2d2ffd=_0x271c80(0x443)+_0x5620a1(0x8),_0x35e6fd={'column':0x0,'row':_0x1ddbc3,'columnSpan':_0x5d5a75,'rowSpan':_0x30d230};switch(_0x10d91a[_0x271c80(0x2e3)]){case _0x9d376a[_0x271c80(0x475)]:return _0x48dc8a({..._0x10d91a,'id':_0x2d2ffd,'layout':_0x35e6fd});case _0x9d376a['TableFilter']:return _0x48dc8a({..._0x10d91a,'id':_0x2d2ffd,'layout':_0x35e6fd});case _0x9d376a[_0x271c80(0x200)]:return _0x48dc8a({..._0x10d91a,'id':_0x2d2ffd,'layout':_0x35e6fd});case _0x9d376a[_0x271c80(0x180)]:return _0x48dc8a({..._0x10d91a,'id':_0x2d2ffd,'layout':_0x35e6fd});case _0x9d376a['FormulaShape']:return _0x48dc8a({..._0x10d91a,'id':_0x2d2ffd,'layout':_0x35e6fd});}},_0x5d04cd=_0x30f447[_0x4482b6(0x1f8)](),_0x4a700d=_0x5d04cd['tableOrder'][_0x4482b6(0x397)](_0x5f486f=>{const _0x220de4=_0x4482b6;let _0x432fe8=_0x5d04cd[_0x220de4(0x487)][_0x5f486f];if(!_0x432fe8)return[];let _0x4d6d73=_0x432fe8[_0x220de4(0x411)][_0x220de4(0x397)](_0x3aa671=>{const _0x248357=_0x220de4;let _0x144034=_0x432fe8[_0x248357(0x27f)][_0x3aa671];return Ai(_0x144034)?[{'type':_0x248357(0x1ad),'children':_0x144034[_0x248357(0x136)],'onSelect':()=>_0x332aef({'type':_0x9d376a[_0x248357(0x475)],'tableId':_0x5f486f,'pivotViewId':_0x3aa671,'chart':{..._0x144034['config']['chart']}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0x432fe8[_0x220de4(0x136)],'options':[..._0x4d6d73,..._0x4d6d73[_0x220de4(0x220)]?[{'type':'separator'}]:[],{'type':_0x220de4(0x1ad),'children':_0xa733fd['t'](_0x220de4(0x2cf)),'onSelect':()=>_0x332aef({'type':_0x9d376a[_0x220de4(0x154)],'tableId':_0x5f486f,'filter':null},0x6,0x8)}]}];}),_0x1e165b=[..._0x4a700d,..._0x4a700d[_0x4482b6(0x220)]?[{'type':_0x4482b6(0x2b1)}]:[],{'type':_0x4482b6(0x1ad),'children':_0xa733fd['t'](_0x4482b6(0x261)),'onSelect':()=>_0x332aef({'type':_0x9d376a[_0x4482b6(0x200)],'document':Ei()},0x4,0x6)},{'type':_0x4482b6(0x1ad),'children':_0xa733fd['t'](_0x4482b6(0x42b)),'onSelect':()=>Di(_0x560cc1)[_0x4482b6(0x439)](_0x26880e=>_0x26880e&&_0x332aef({'type':_0x9d376a['Image'],'source':_0x26880e[_0x4482b6(0x313)],'sourceType':_0x26880e[_0x4482b6(0x401)],'alt':_0x26880e['name'],'displayMode':_0x4482b6(0x1c6)},0x4,0x6))},{'type':_0x4482b6(0x1ad),'children':_0xa733fd['t'](_0x4482b6(0x18f)),'onSelect':()=>{const _0x239d11=_0x4482b6;let _0x5594a1=_0x5d04cd[_0x239d11(0x3d4)][_0x239d11(0x142)](_0x511942=>_0x5d04cd['tables'][_0x511942]);_0x5594a1&&_0x332aef({'type':_0x9d376a[_0x239d11(0x159)],'tableId':_0x5594a1,'shapeType':_0x12a5a1[_0x239d11(0x3b0)],'shapeData':_0x2775b7(),'description':_0xa733fd['t'](_0x239d11(0x18f))},0x4,0x6);}}],_0x2a1066=_0x550a5f?_0x25faec[_0x4482b6(0x3ca)][_0x550a5f]:void 0x0,_0x3ea6c7=()=>_0x26abf7(_0x8ce92f=>!_0x8ce92f),_0x24966d=_0x21527a||_0x202289,_0x48fffd=_0xd4f476&&!_0x24966d;return _0xe7503a(Jr,{'children':_0x3067ce(_0x4482b6(0x1fb),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x202289?_0x4482b6(0x2e7):_0x4482b6(0x1dc))+_0x4482b6(0x37f),'children':[_0x202289&&_0xe7503a(_0x2d5ef7,{'onClick':()=>_0x26abf7(!0x1),'children':_0xa733fd['t'](_0x4482b6(0x25b))}),!_0x24966d&&_0x3067ce('header',{'className':_0x4482b6(0x2e6),'children':[_0xe7503a(_0x548907,{'className':_0x4482b6(0x300)}),_0xe7503a('h2',{'className':_0x4482b6(0x12e),'children':_0x25faec[_0x4482b6(0x136)]}),_0x19bc8a[_0x4482b6(0x290)](_0x27697e)&&_0xe7503a(_0x2d5ef7,{'variant':'text','disabled':!_0x19bc8a[_0x4482b6(0x1d7)](_0x27697e),'aria-label':_0xa733fd['t'](_0x4482b6(0x210)),'onClick':()=>{const _0x2c857f=_0x4482b6;_0x2a3c8c(_0x34949d,{'target':_0x27697e,'name':_0x25faec['name'],'commandId':_0x1b8d6f['id'],'exists':()=>!!_0x1638a9[_0x2c857f(0x1d4)](_0x9646df,_0x30e600)});},'children':_0xe7503a(_0x54f15e,{})}),_0xe7503a(_0x3c3ee4,{'unitId':_0x9646df}),_0xe7503a(_0x2d5ef7,{'type':_0x4482b6(0x41e),'size':_0x4482b6(0x47e),'variant':'text','aria-label':_0xa733fd['t'](_0x4482b6(0x479)),'disabled':!_0xd4f476||_0x3f7e3d[_0x4482b6(0x1c7)]===0x0,'onClick':()=>_0x193ee7['executeCommand'](_0x407305['id'])[_0x4482b6(0x18c)](()=>void 0x0),'children':_0xe7503a(_0x3b0f1b,{})}),_0xe7503a(_0x2d5ef7,{'type':'button','size':'small','variant':'text','aria-label':_0xa733fd['t'](_0x4482b6(0x44d)),'disabled':!_0xd4f476||_0x3f7e3d[_0x4482b6(0x3d5)]===0x0,'onClick':()=>_0x193ee7[_0x4482b6(0x3b8)](_0x590feb['id'])['catch'](()=>void 0x0),'children':_0xe7503a(_0x439808,{})}),_0xe7503a(_0x2d5ef7,{'type':'button','size':_0x4482b6(0x47e),'variant':_0x4482b6(0x1bf),'aria-label':_0xa733fd['t'](_0x4482b6(0x268)),'onClick':_0x3ea6c7,'children':_0xe7503a(_0x34da2c,{})}),_0xe7503a(Xr,{'items':_0x1e165b,'children':_0x3067ce(_0x2d5ef7,{'variant':_0x4482b6(0x3ac),'disabled':!_0xd4f476,'children':[_0xe7503a(_0x313c06,{}),_0xa733fd['t'](_0x4482b6(0x1ed))]})})]}),_0x3067ce(_0x4482b6(0x1fb),{'className':_0x4482b6(0x2cc),'children':[_0xe7503a('div',{'className':_0x4482b6(0x2f1),'children':_0xe7503a(Kr,{'dashboard':_0x25faec,'editable':_0x48fffd,'widgetLabel':_0x423515=>_0xa733fd['t'](ki(_0x423515[_0x4482b6(0x2e3)])),'selectedWidgetId':_0x48fffd?_0x550a5f:void 0x0,'onSelectWidget':_0x48fffd?_0x360ee0=>{_0x22defc(_0x360ee0),_0x360ee0||_0x326e02(!0x1);}:void 0x0,'renderWidget':_0x282912=>_0xe7503a(Ci,{'base':_0x30f447,'dashboard':_0x25faec,'unitId':_0x9646df,'widget':_0x282912,'onChange':_0x48dc8a,'onChartRuntimeChange':_0xe792d5}),'renderWidgetActions':_0x5a8e9f=>_0xe7503a(xi,{'onMoveUp':_0x25faec[_0x4482b6(0x205)][_0x4482b6(0x3e7)](_0x5a8e9f['id'])>0x0?()=>_0x4db414(_0x5a8e9f['id'],-0x1):void 0x0,'onMoveDown':_0x25faec[_0x4482b6(0x205)][_0x4482b6(0x3e7)](_0x5a8e9f['id'])<_0x25faec['widgetOrder'][_0x4482b6(0x220)]-0x1?()=>_0x4db414(_0x5a8e9f['id'],0x1):void 0x0,'onEdit':()=>{_0x22defc(_0x5a8e9f['id']),_0x326e02(!0x0);},'onDelete':()=>{const _0x1569ad=_0x4482b6;_0x550a5f===_0x5a8e9f['id']&&(_0x22defc(void 0x0),_0x326e02(!0x1)),_0x193ee7[_0x1569ad(0x3b8)](_0x56e93a['id'],{'unitId':_0x9646df,'dashboardId':_0x30e600,'widgetId':_0x5a8e9f['id']})[_0x1569ad(0x18c)](()=>void 0x0);}})})}),_0x48fffd&&_0x16d66e&&_0x2a1066&&_0xe7503a(pi,{'base':_0x30f447,'chartRuntime':_0xa53d28[_0x4482b6(0x3f3)](_0x2a1066['id']),'unitId':_0x9646df,'widget':_0x2a1066,'onChange':_0x48dc8a,'onClose':()=>_0x326e02(!0x1),'onSelectBackgroundImage':()=>Oi(_0x39fe88),'onSelectImage':()=>Di(_0x560cc1)})]})]})});}function Ci({base:_0x193ae1,dashboard:_0x1a9c3c,onChange:_0x2a56b7,onChartRuntimeChange:_0x5b95e9,unitId:_0x336165,widget:_0x5cfbd5}){const _0x40db75=_0x51bd0c;let _0x326412=_0x592e4f(()=>_0x1a9c3c[_0x40db75(0x205)][_0x40db75(0x397)](_0x577750=>{const _0x5aa767=_0x40db75;let _0x279c77=_0x1a9c3c[_0x5aa767(0x3ca)][_0x577750];return(_0x279c77==null?void 0x0:_0x279c77[_0x5aa767(0x2e3)])===_0x9d376a[_0x5aa767(0x154)]&&_0x279c77['tableId']===(_0x5aa767(0x46b)in _0x5cfbd5?_0x5cfbd5[_0x5aa767(0x46b)]:'')&&_0x279c77['filter']?[_0x279c77[_0x5aa767(0x1ff)]]:[];}),[_0x1a9c3c,_0x5cfbd5]);switch(_0x5cfbd5[_0x40db75(0x2e3)]){case _0x9d376a[_0x40db75(0x475)]:return _0xe7503a(zr,{'filters':_0x326412,'unitId':_0x336165,'widget':_0x5cfbd5,'onRuntimeChange':_0x5b95e9});case _0x9d376a[_0x40db75(0x154)]:return _0xe7503a(di,{'fields':wi(_0x193ae1,_0x5cfbd5[_0x40db75(0x46b)]),'filter':_0x5cfbd5[_0x40db75(0x1ff)],'onChange':_0x26612c=>_0x2a56b7({..._0x5cfbd5,'filter':_0x26612c})[_0x40db75(0x18c)](()=>void 0x0)});case _0x9d376a[_0x40db75(0x200)]:return _0xe7503a(Gr,{'widget':_0x5cfbd5});case _0x9d376a[_0x40db75(0x180)]:return _0xe7503a(Ti,{'widget':_0x5cfbd5});case _0x9d376a[_0x40db75(0x159)]:return _0xe7503a(kr,{'dashboardId':_0x1a9c3c['id'],'unitId':_0x336165,'widget':_0x5cfbd5});}}function wi(_0x49f141,_0x5d306d){const _0x44f369=_0x51bd0c;let _0xa70ae5=_0x49f141['getSnapshot']()['tables'][_0x5d306d],_0x5acc4e=_0xa70ae5==null?void 0x0:_0xa70ae5[_0x44f369(0x411)][_0x44f369(0x142)](_0x2dc868=>_0xa70ae5['views'][_0x2dc868]),_0x2373b8=_0x5acc4e?_0xa70ae5==null?void 0x0:_0xa70ae5[_0x44f369(0x27f)][_0x5acc4e]:void 0x0;return _0xa70ae5&&_0x2373b8?_0x5d053c(_0xa70ae5,_0x2373b8):[];}function Ti({widget:_0x14936e}){const _0x1c130d=_0x51bd0c;let _0x52d35c=_0x59ceb1(_0x595f75),[_0x58ec2f,_0x3f87c7]=_0x446379(_0x14936e[_0x1c130d(0x401)]===_0x476f1b[_0x1c130d(0x39d)]?'':_0x14936e[_0x1c130d(0x313)]);return _0x3dfd92(()=>{const _0x516207=_0x1c130d;let _0x3c7bdc=!0x0;return _0x52d35c[_0x516207(0x198)](_0x14936e['source'],_0x14936e[_0x516207(0x401)])[_0x516207(0x439)](_0x24f4fe=>{_0x3c7bdc&&_0x3f87c7(_0x24f4fe);})[_0x516207(0x18c)](()=>void 0x0),()=>{_0x3c7bdc=!0x1;};},[_0x52d35c,_0x14936e[_0x1c130d(0x313)],_0x14936e[_0x1c130d(0x401)]]),_0x58ec2f?_0xe7503a(_0x1c130d(0x1fb),{'role':_0x14936e[_0x1c130d(0x3f7)]?_0x1c130d(0x1f7):void 0x0,'aria-label':_0x14936e['alt']||void 0x0,'data-dashboard-image':_0x14936e['id'],'className':_0x1c130d(0x311),'style':br(_0x58ec2f,_0x14936e[_0x1c130d(0x298)])}):null;}function Ei(){const _0x4eab11=_0x51bd0c;let _0x416645=_0x265312(new Set());return{'id':_0x4eab11(0x453)+_0x5620a1(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x416645}]},'documentStyle':{}};}function Di(_0xed397b){return new Promise(_0x1cde53=>{const _0x4aedc8=_0x30a0;let _0x415945=document['createElement'](_0x4aedc8(0x389));_0x415945['type']='file',_0x415945['accept']=_0x4aedc8(0x139),_0x415945['addEventListener'](_0x4aedc8(0x1e6),()=>{const _0x54249e=_0x4aedc8;var _0x3c87ef;let _0x44d7e7=(_0x3c87ef=_0x415945[_0x54249e(0x153)])==null?void 0x0:_0x3c87ef[0x0];_0x44d7e7?_0xed397b['saveAttachment'](_0x44d7e7)['then'](_0x256673=>{const _0x2a2b13=_0x54249e;!_0x256673[_0x2a2b13(0x313)]||_0x256673[_0x2a2b13(0x401)]===void 0x0?_0x1cde53(null):_0x1cde53({'name':_0x256673['name'],'source':_0x256673[_0x2a2b13(0x313)],'sourceType':_0x256673[_0x2a2b13(0x401)]});})['catch'](()=>_0x1cde53(null)):_0x1cde53(null);},{'once':!0x0}),_0x415945['click']();});}function Oi(_0x1541ae){return new Promise(_0xa3051f=>{const _0x5d8e80=_0x30a0;let _0x478efa=document[_0x5d8e80(0x46e)](_0x5d8e80(0x389));_0x478efa[_0x5d8e80(0x2e3)]=_0x5d8e80(0x3cf),_0x478efa['accept']=_0x5d8e80(0x139),_0x478efa['addEventListener'](_0x5d8e80(0x1e6),()=>{const _0x12b7f6=_0x5d8e80;var _0x5b7477;let _0x350347=(_0x5b7477=_0x478efa[_0x12b7f6(0x153)])==null?void 0x0:_0x5b7477[0x0];_0x350347?_0x1541ae[_0x12b7f6(0x2aa)](_0x350347)[_0x12b7f6(0x439)](_0x2b51d0=>{const _0x204973=_0x12b7f6;if(!(_0x2b51d0!=null&&_0x2b51d0[_0x204973(0x313)]))_0xa3051f(null);else{if(_0x2b51d0[_0x204973(0x292)]){let _0x2ca0f9=new Image();_0x2ca0f9[_0x204973(0x13d)]=_0x2b51d0['base64Cache'],_0x1541ae[_0x204973(0x396)](_0x2b51d0[_0x204973(0x313)],_0x2b51d0[_0x204973(0x146)],_0x2ca0f9);}_0xa3051f({'source':_0x2b51d0['source'],'sourceType':_0x2b51d0[_0x204973(0x146)]});}})[_0x12b7f6(0x18c)](()=>_0xa3051f(null)):_0xa3051f(null);},{'once':!0x0}),_0x478efa[_0x5d8e80(0x1bc)]();});}function ki(_0x2f901d){const _0x448ab0=_0x51bd0c;switch(_0x2f901d){case _0x9d376a[_0x448ab0(0x475)]:return'bases-dashboard-ui.dashboard.pivotChart';case _0x9d376a[_0x448ab0(0x154)]:return _0x448ab0(0x2cf);case _0x9d376a[_0x448ab0(0x200)]:return _0x448ab0(0x261);case _0x9d376a['Image']:return _0x448ab0(0x42b);case _0x9d376a[_0x448ab0(0x159)]:return _0x448ab0(0x18f);}}function Ai(_0x150c8c){const _0x1da0fb=_0x51bd0c;return(_0x150c8c==null?void 0x0:_0x150c8c[_0x1da0fb(0x2e3)])===_0x497849['Pivot']&&typeof _0x150c8c[_0x1da0fb(0x18b)]=='object'&&_0x150c8c['config']!==null&&_0x1da0fb(0x26c)in _0x150c8c['config']&&_0x1da0fb(0x368)in _0x150c8c[_0x1da0fb(0x18b)];}function ji({pivot:_0x47fda4,view:_0x303366}){const _0x753857=_0x51bd0c;let _0x5887b4=_0x59ceb1(_0x3e9ffe),_0x1dbf50=_0x592e4f(()=>Mi(_0x303366,_0x47fda4,_0x5887b4['t'](_0x753857(0x349))),[_0x5887b4,_0x47fda4,_0x303366]);return _0x3067ce(_0x753857(0x1fb),{'className':_0x753857(0x447),'children':[_0x1dbf50[_0x753857(0x3bd)][_0x753857(0x220)]>0x0&&_0xe7503a(_0x753857(0x400),{'className':_0x753857(0x1d9),'children':_0xe7503a(_0x753857(0x34e),{'children':Ni(_0x1dbf50[_0x753857(0x3bd)])})}),_0x3067ce('table',{'className':_0x753857(0x1ac),'children':[_0x1dbf50[_0x753857(0x3f8)]>0x0&&_0xe7503a(_0x753857(0x2ba),{'className':'univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','children':Ni(_0x1dbf50[_0x753857(0x297)][_0x753857(0x42d)](0x0,_0x1dbf50[_0x753857(0x3f8)]))}),_0xe7503a(_0x753857(0x34e),{'children':Ni(_0x1dbf50['rows'][_0x753857(0x42d)](_0x1dbf50['headerRowCount']))})]})]});}function Mi(_0x5c6cc0,_0x5683e1,_0x1cbecd){const _0x878bb8=_0x51bd0c;let _0x1544f3=_0x5c6cc0[_0x878bb8(0x3e6)][_0x878bb8(0x263)],_0x57808f=_0x5c6cc0[_0x878bb8(0x267)]['colCount'],_0x433a75=_0x5c6cc0[_0x878bb8(0x133)][_0x878bb8(0x263)],_0x315910=_0x5c6cc0['dataView'][_0x878bb8(0x260)],_0x259fa6=Array[_0x878bb8(0x378)]({'length':_0x1544f3+_0x433a75},(_0x16c0c3,_0xb20dc4)=>Array[_0x878bb8(0x378)]({'length':_0x57808f+_0x315910},(_0x518d07,_0x25204a)=>{const _0x33048d=_0x878bb8;var _0x108994,_0x5569ac;if(_0xb20dc4<_0x1544f3&&_0x25204a<_0x57808f)return Pi(_0x5c6cc0[_0x33048d(0x251)],_0xb20dc4,_0x25204a,void 0x0,_0x1cbecd,!0x0,!0x1,_0x33048d(0x46f)+_0xb20dc4+':'+_0x25204a);if(_0xb20dc4<_0x1544f3){var _0x31a7eb;let _0x52ed99=_0x25204a-_0x57808f,_0x5a6665=(_0x31a7eb=_0x5c6cc0[_0x33048d(0x3e6)][_0x33048d(0x43c)][_0xb20dc4])==null?void 0x0:_0x31a7eb[_0x33048d(0x16e)];return Pi(_0x5c6cc0[_0x33048d(0x3e6)],_0xb20dc4,_0x52ed99,_0x5a6665?_0x5c6cc0[_0x33048d(0x3db)][_0x5a6665]:void 0x0,_0x1cbecd,!0x0,Li(_0x5c6cc0[_0x33048d(0x3e6)][_0x33048d(0x3e9)][_0x52ed99]),_0x33048d(0x45a)+_0xb20dc4+':'+_0x52ed99);}if(_0x25204a<_0x57808f){var _0x1a0619;let _0x3747af=_0xb20dc4-_0x1544f3,_0x57dad2=(_0x1a0619=_0x5c6cc0['rowView'][_0x33048d(0x43c)][_0x25204a])==null?void 0x0:_0x1a0619[_0x33048d(0x16e)];return Pi(_0x5c6cc0[_0x33048d(0x267)],_0x3747af,_0x25204a,_0x57dad2?_0x5c6cc0['formatMap'][_0x57dad2]:void 0x0,_0x1cbecd,!0x0,Li(_0x5c6cc0[_0x33048d(0x267)][_0x33048d(0x3e9)][_0x3747af]),'row:'+_0x3747af+':'+_0x25204a);}let _0x510423=_0xb20dc4-_0x1544f3,_0x3e00ee=_0x25204a-_0x57808f,_0x5eccf2=Math['max'](((_0x108994=_0x5c6cc0['rowView'][_0x33048d(0x3e9)][_0x510423])==null?void 0x0:_0x108994[_0x33048d(0x20e)])??-0x1,((_0x5569ac=_0x5c6cc0['colView'][_0x33048d(0x3e9)][_0x3e00ee])==null?void 0x0:_0x5569ac[_0x33048d(0x20e)])??-0x1),_0x36da2f=_0x5683e1[_0x33048d(0x2c1)][_0x5eccf2<0x0?0x0:_0x5eccf2];return Pi(_0x5c6cc0[_0x33048d(0x133)],_0x510423,_0x3e00ee,_0x36da2f?_0x5c6cc0[_0x33048d(0x3db)][_0x36da2f]:void 0x0,_0x1cbecd,!0x1,Li(_0x5c6cc0[_0x33048d(0x267)][_0x33048d(0x3e9)][_0x510423])||Li(_0x5c6cc0[_0x33048d(0x3e6)][_0x33048d(0x3e9)][_0x3e00ee]),_0x33048d(0x2b4)+_0x510423+':'+_0x3e00ee);}));return{'headerColumnCount':_0x57808f,'headerRowCount':_0x1544f3,'pageRows':_0x5c6cc0[_0x878bb8(0x431)][_0x878bb8(0x485)]<0x0||_0x5c6cc0[_0x878bb8(0x431)][_0x878bb8(0x37a)]<0x0?[]:Array[_0x878bb8(0x378)]({'length':_0x5c6cc0[_0x878bb8(0x431)][_0x878bb8(0x485)]+0x1},(_0x296716,_0x2d6753)=>Array[_0x878bb8(0x378)]({'length':_0x5c6cc0[_0x878bb8(0x431)][_0x878bb8(0x37a)]+0x1},(_0x63547c,_0x493eb9)=>Pi(_0x5c6cc0[_0x878bb8(0x431)],_0x2d6753,_0x493eb9,void 0x0,_0x1cbecd,!0x0,!0x1,_0x878bb8(0x239)+_0x2d6753+':'+_0x493eb9))),'rows':_0x259fa6};}function Ni(_0x47acb9){const _0x569d41=_0x51bd0c;return _0x47acb9[_0x569d41(0x259)](_0x110457=>{const _0x2303a8=_0x569d41;var _0x53fc6e;return _0xe7503a('tr',{'children':_0x110457[_0x2303a8(0x259)](_0x2ae899=>{const _0x85026c=_0x2303a8;let _0x2ce39d=_0x2ae899[_0x85026c(0x34b)]?'th':'td';return _0xe7503a(_0x2ce39d,{'className':_0x85026c(0x183)+(_0x2ae899[_0x85026c(0x1bb)]?_0x85026c(0x406):'')+_0x85026c(0x3a6)+(_0x2ae899[_0x85026c(0x34b)]?'':_0x85026c(0x1fc))+_0x85026c(0x47b),'children':_0x2ae899[_0x85026c(0x303)]},_0x2ae899[_0x85026c(0x24c)]);})},(_0x53fc6e=_0x110457[0x0])==null?void 0x0:_0x53fc6e[_0x2303a8(0x24c)]);});}function Pi(_0x376a8e,_0x74a8,_0x4fd21d,_0x3fba99,_0x49970f,_0x16550e,_0x4db59d,_0x1d3d6b){const _0x1c84ce=_0x51bd0c;var _0x1791ac;let _0x77068a=(_0x1791ac=_0x376a8e[_0x1c84ce(0x399)][_0x74a8])==null?void 0x0:_0x1791ac[_0x4fd21d],_0x7d3ea8=_0x77068a==null?void 0x0:_0x77068a['s'],_0x1b5627=_0x4db59d||_0x7d3ea8===_0x426f17[_0x1c84ce(0x168)]||_0x7d3ea8===_0x426f17[_0x1c84ce(0x2fc)];return{'isHeader':_0x16550e,'isTotal':_0x1b5627||_0x7d3ea8===_0x426f17['Subtotal'],'key':_0x1d3d6b,'style':_0x7d3ea8,'value':_0x1b5627&&Ii(_0x77068a==null?void 0x0:_0x77068a['v'])?_0x49970f:Fi(_0x77068a,_0x3fba99)};}function Fi(_0x373499,_0x47cf7c){const _0x134dcb=_0x51bd0c;let _0x4d1f27=_0x373499==null?void 0x0:_0x373499['v'];return _0x1d26d6(_0x4d1f27)?String(_0x4d1f27['value']??_0x4d1f27[_0x134dcb(0x243)]??''):_0x4e4eb4(_0x4d1f27)?'#'+_0x4d1f27[_0x134dcb(0x428)]:_0x47cf7c&&typeof _0x4d1f27==_0x134dcb(0x380)?_0x5cfbc7['format'](_0x47cf7c,_0x4d1f27):String(_0x4d1f27??'');}function Ii(_0x430c53){return _0x430c53===void 0x0||_0x430c53==='';}function Li(_0x1ebed3){const _0x50a1a1=_0x51bd0c;return!!(_0x1ebed3!=null&&_0x1ebed3[_0x50a1a1(0x3c8)]||_0x1ebed3!=null&&_0x1ebed3['isTopTotal']||_0x1ebed3!=null&&_0x1ebed3[_0x50a1a1(0x1eb)]||(_0x1ebed3==null?void 0x0:_0x1ebed3[_0x50a1a1(0x395)])===_0x50a1a1(0x347));}const Ri=[{'area':_0x4fb992[_0x51bd0c(0x391)],'key':_0x51bd0c(0x17d),'label':_0x51bd0c(0x2c6)},{'area':_0x4fb992['Column'],'key':_0x51bd0c(0x2b2),'label':'bases-dashboard-ui.pivot.columns'},{'area':_0x4fb992[_0x51bd0c(0x266)],'key':'rowFields','label':_0x51bd0c(0x1cd)},{'area':_0x4fb992['Value'],'key':_0x51bd0c(0x2c1),'label':_0x51bd0c(0x1c3)}],zi=[{'value':_0xc6923e[_0x51bd0c(0x280)],'localeKey':'bases-dashboard-ui.pivot.sum'},{'value':_0xc6923e[_0x51bd0c(0x3a2)],'localeKey':_0x51bd0c(0x237)},{'value':_0xc6923e[_0x51bd0c(0x278)],'localeKey':_0x51bd0c(0x3a5)},{'value':_0xc6923e['average'],'localeKey':_0x51bd0c(0x1cf)},{'value':_0xc6923e[_0x51bd0c(0x335)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':_0xc6923e[_0x51bd0c(0x1f1)],'localeKey':_0x51bd0c(0x1aa)},{'value':_0xc6923e['product'],'localeKey':'bases-dashboard-ui.pivot.product'},{'value':_0xc6923e[_0x51bd0c(0x37b)],'localeKey':_0x51bd0c(0x215)},{'value':_0xc6923e[_0x51bd0c(0x16c)],'localeKey':_0x51bd0c(0x181)},{'value':_0xc6923e[_0x51bd0c(0x345)],'localeKey':'bases-dashboard-ui.pivot.variance'},{'value':_0xc6923e['varp'],'localeKey':_0x51bd0c(0x2d6)}];function Bi(_0x2226cc){const _0x33410b=_0x51bd0c;let {config:_0x3f7496,onChange:_0x44f30b,table:_0x252be6}=_0x2226cc,_0x45192a=_0x59ceb1(_0x3e9ffe),[_0x473e33,_0x40d3e6]=_0x446379('fields'),[_0x2ee56d,_0x40187c]=_0x446379(''),[_0x48ca82,_0x29111f]=_0x446379(null),[_0x469b1b,_0x2d17bd]=_0x446379(null),[_0x2a8b32,_0x13b1d0]=_0x446379(null),[_0x14adeb,_0x3c8e23]=_0x446379(null),_0x503d56=_0x2c3a8a(null),_0x13e77f=_0x592e4f(()=>_0x252be6[_0x33410b(0x23f)][_0x33410b(0x397)](_0x20179f=>{const _0x160d98=_0x33410b;let _0x212c56=_0x252be6[_0x160d98(0x21b)][_0x20179f];return _0x212c56&&_0x212c56[_0x160d98(0x38f)]!==!0x0&&_0x212c56[_0x160d98(0x2e3)]!==_0x22c46f[_0x160d98(0x18e)]?[_0x212c56]:[];})['filter'](_0x217648=>_0x217648[_0x33410b(0x136)][_0x33410b(0x193)]()['includes'](_0x2ee56d[_0x33410b(0x46c)]()[_0x33410b(0x193)]())),[_0x2ee56d,_0x252be6]),_0x32465f=_0x159eb7=>{const _0x2eb470=_0x33410b;let _0x449166=_0x3c1840(_0x252be6,_0x3f7496['pivot']);try{_0x159eb7(_0x449166),_0x44f30b({'pivot':_0x449166[_0x2eb470(0x32c)]()});}finally{_0x449166[_0x2eb470(0x147)]();}},_0x55291e=(_0x5114c4,_0x33516a)=>{_0x48ca82&&(_0x32465f(_0x4af024=>{const _0x422e4b=_0x30a0;if(_0x48ca82[_0x422e4b(0x322)]===_0x422e4b(0x43f)){let _0x149035=_0x4af024[_0x422e4b(0x1fa)](_0x48ca82['id']),_0x58d074=_0x149035['area']===_0x5114c4&&_0x149035[_0x422e4b(0x134)]<_0x33516a?_0x33516a-0x1:_0x33516a;_0x4af024[_0x422e4b(0x20d)](_0x48ca82['id'],_0x5114c4,_0x58d074);}else Ji(_0x4af024,_0x48ca82['id'],_0x5114c4,_0x33516a);}),_0x29111f(null),_0x2d17bd(null));};return _0x3067ce(_0x33410b(0x1fb),{'className':_0x33410b(0x172),'children':[_0xe7503a(_0x331878,{'ariaLabel':_0x45192a['t'](_0x33410b(0x41d)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x45192a['t'](_0x33410b(0x29e)),'panelId':_0x33410b(0x231),'value':_0x33410b(0x21b)},{'label':_0x45192a['t'](_0x33410b(0x21a)),'panelId':_0x33410b(0x2b3),'value':'options'}],'value':_0x473e33,'onChange':_0x40d3e6}),_0xe7503a(_0x33410b(0x1fb),{'ref':_0x503d56,'className':_0x1ba4bd(_0x33410b(0x392),_0x2a2c66),'onDragOver':_0x52c851=>{const _0x309860=_0x33410b;let _0x3f0911=_0x503d56[_0x309860(0x228)];if(!_0x3f0911)return;let _0x27e9ab=_0x3f0911[_0x309860(0x138)]();_0x52c851[_0x309860(0x39e)]<_0x27e9ab[_0x309860(0x361)]+0x30?_0x3f0911[_0x309860(0x234)]-=0x10:_0x52c851[_0x309860(0x39e)]>_0x27e9ab[_0x309860(0x330)]-0x30&&(_0x3f0911['scrollTop']+=0x10);},'children':_0x473e33===_0x33410b(0x17b)?_0xe7503a(qi,{'config':_0x3f7496,'commit':_0x32465f}):_0x3067ce(_0x33410b(0x1fb),{'className':_0x33410b(0x3cc),'children':[_0x3067ce(_0x33410b(0x1fb),{'children':[_0xe7503a(_0x33410b(0x1fb),{'className':_0x33410b(0x1c0),'children':_0x45192a['t']('bases-dashboard-ui.pivot.sourceFields')}),_0xe7503a(_0x177173,{'allowClear':!0x0,'slot':_0xe7503a(_0x586c4b,{}),'value':_0x2ee56d,'placeholder':_0x45192a['t'](_0x33410b(0x423)),'onChange':_0x40187c}),_0xe7503a(_0x33410b(0x1fb),{'className':_0x33410b(0x1f6),'children':_0x13e77f[_0x33410b(0x259)](_0x355303=>_0xe7503a(Vi,{'config':_0x3f7496,'field':_0x355303,'onAdd':_0x3cd053=>_0x32465f(_0x2ada15=>Ji(_0x2ada15,_0x355303['id'],_0x3cd053,_0x2ada15[_0x33410b(0x18a)](_0x3cd053))),'onCheckedChange':_0x20485d=>_0x32465f(_0x267d96=>{const _0x19cbcf=_0x33410b;let _0x2e3b43=_0x267d96[_0x19cbcf(0x15e)](_0x355303['id']);if(!_0x20485d)_0x2e3b43[_0x19cbcf(0x189)](_0x5c7767=>_0x267d96[_0x19cbcf(0x47c)](_0x5c7767[_0x19cbcf(0x461)]()));else{if(_0x2e3b43['length']===0x0){let _0x19c919=Xi(_0x355303)?_0x4fb992['Value']:_0x4fb992[_0x19cbcf(0x266)];_0x267d96['addFieldWithSourceId'](_0x355303['id'],_0x19c919);}}}),'onDragStart':()=>_0x29111f({'kind':_0x33410b(0x313),'id':_0x355303['id']})},_0x355303['id']))})]}),_0xe7503a(_0x33410b(0x1fb),{'className':_0x33410b(0x1ec),'children':Ri[_0x33410b(0x259)](_0x3b5b2c=>_0xe7503a(Ui,{'area':_0x3b5b2c[_0x33410b(0x3ec)],'dropTarget':_0x469b1b,'fields':_0x3f7496[_0x33410b(0x26c)][_0x3b5b2c[_0x33410b(0x24c)]],'label':_0x45192a['t'](_0x3b5b2c[_0x33410b(0x3c0)]),'snapshot':_0x3f7496['pivot'],'onDragEnd':()=>{_0x29111f(null),_0x2d17bd(null);},'onDragStart':_0x3e17d6=>_0x29111f({'kind':_0x33410b(0x43f),'id':_0x3e17d6,'area':_0x3b5b2c[_0x33410b(0x3ec)]}),'onDragOver':_0x4e3147=>_0x2d17bd({'area':_0x3b5b2c['area'],'index':_0x4e3147}),'onDrop':_0x2888f7=>_0x55291e(_0x3b5b2c[_0x33410b(0x3ec)],_0x2888f7),'onFilter':_0x13b1d0,'onMove':(_0x53efae,_0x393448,_0x2ce40c)=>_0x32465f(_0x513b92=>_0x513b92[_0x33410b(0x20d)](_0x53efae,_0x393448,_0x2ce40c)),'onRemove':_0x1db8ea=>_0x32465f(_0xd022d0=>_0xd022d0[_0x33410b(0x47c)](_0x1db8ea)),'onSettings':_0x3c8e23},_0x3b5b2c[_0x33410b(0x3ec)]))}),_0x2a8b32&&_0xe7503a(Gi,{'fieldId':_0x2a8b32,'snapshot':_0x3f7496[_0x33410b(0x26c)],'table':_0x252be6,'onCancel':()=>_0x13b1d0(null),'onCommit':(_0x31bddd,_0x47b9f8)=>{_0x32465f(_0x10b14b=>{const _0x46bb16=_0x30a0;let _0x2aa698=_0x10b14b[_0x46bb16(0x3b7)](_0x2a8b32),_0x174d39=(_0x2aa698==null?void 0x0:_0x2aa698[_0x46bb16(0x2a3)])??[];_0x10b14b['setLabelFilterInfo'](_0x2a8b32,{'type':_0x16546e[_0x46bb16(0x31a)],'list':_0x31bddd,'isAll':_0x31bddd[_0x46bb16(0x220)]===_0x174d39[_0x46bb16(0x220)]}),_0x10b14b[_0x46bb16(0x3b9)](_0x2a8b32,_0x47b9f8===void 0x0?void 0x0:{'type':_0x47b9f8});}),_0x13b1d0(null);}},_0x2a8b32),_0x14adeb&&_0xe7503a(Ki,{'field':_0x3f7496[_0x33410b(0x26c)]['measure'][_0x14adeb],'onCancel':()=>_0x3c8e23(null),'onCommit':(_0x163345,_0x11f71e,_0x218566)=>{_0x32465f(_0x5deecf=>{const _0x526b95=_0x30a0;_0x5deecf[_0x526b95(0x17c)](_0x14adeb,_0x163345),_0x5deecf[_0x526b95(0x3e3)](_0x14adeb,_0x11f71e),_0x5deecf[_0x526b95(0x471)](_0x14adeb,_0x218566||void 0x0);}),_0x3c8e23(null);}},_0x14adeb)]})})]});}function Vi(_0xe7b053){const _0x2065b9=_0x51bd0c;let {config:_0x36eb2b,field:_0x1fdb13,onAdd:_0x35fbe2,onCheckedChange:_0xad091d,onDragStart:_0x3398d4}=_0xe7b053,_0x387108=_0x59ceb1(_0x3e9ffe),_0x532222=[...Object[_0x2065b9(0x3fd)](_0x36eb2b[_0x2065b9(0x26c)]['dimension']),...Object[_0x2065b9(0x3fd)](_0x36eb2b[_0x2065b9(0x26c)][_0x2065b9(0x2f3)])][_0x2065b9(0x1b7)](_0xfec9e7=>_0xfec9e7[_0x2065b9(0x171)]===_0x1fdb13['id']),_0x30789d=Ri[_0x2065b9(0x259)](_0x67238a=>({'type':'item','children':_0x387108['t'](Zi(_0x67238a[_0x2065b9(0x3ec)])),'onSelect':()=>_0x35fbe2(_0x67238a[_0x2065b9(0x3ec)])}));return _0x3067ce('div',{'draggable':!0x1,'style':{'minHeight':0x30},'className':'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','onDragStart':_0x3398d4,'children':[_0xe7503a(_0x191a88,{'checked':_0x532222,'onChange':_0xc7ff4a=>_0xad091d(!!_0xc7ff4a)}),_0xe7503a(Hi,{'field':_0x1fdb13}),_0xe7503a('span',{'className':_0x2065b9(0x310),'children':_0x1fdb13[_0x2065b9(0x136)]}),_0xe7503a(Xr,{'align':'end','items':_0x30789d,'children':_0xe7503a(_0x2d5ef7,{'variant':_0x2065b9(0x1bf),'aria-label':_0x387108['t']('bases-dashboard-ui.pivot.fieldSettings'),'children':_0xe7503a(_0x1ed3b5,{})})})]});}function Hi({field:_0x3e0cfb}){const _0x418150=_0x51bd0c;return Xi(_0x3e0cfb)?_0xe7503a(_0x2e38a6,{'className':_0x418150(0x44c)}):_0x3e0cfb[_0x418150(0x2e3)]===_0x22c46f['Date']||_0x3e0cfb[_0x418150(0x2e3)]===_0x22c46f[_0x418150(0x1e4)]||_0x3e0cfb[_0x418150(0x2e3)]===_0x22c46f[_0x418150(0x218)]?_0xe7503a(_0x255dc2,{'className':_0x418150(0x44c)}):_0xe7503a(_0x5bb4c2,{'className':'univer-text-gray-400'});}function Ui(_0x3fc3fe){const _0x4adbc9=_0x51bd0c;let {area:_0x4ed95c,dropTarget:_0xf04461,fields:_0x831a83,label:_0xc763,snapshot:_0x3124da}=_0x3fc3fe,_0x31396d=_0x59ceb1(_0x3e9ffe);return _0x3067ce(_0x4adbc9(0x3e0),{'className':_0x1ba4bd(_0x4adbc9(0x336),_0x196159),'onDragOver':_0x1844c4=>{const _0x3688e1=_0x4adbc9;_0x1844c4[_0x3688e1(0x412)](),_0x3fc3fe['onDragOver'](_0x831a83[_0x3688e1(0x220)]);},'onDrop':_0x575bd4=>{const _0x20b45c=_0x4adbc9;_0x575bd4[_0x20b45c(0x412)](),_0x3fc3fe[_0x20b45c(0x173)]((_0xf04461==null?void 0x0:_0xf04461[_0x20b45c(0x3ec)])===_0x4ed95c?_0xf04461[_0x20b45c(0x134)]:_0x831a83[_0x20b45c(0x220)]);},'children':[_0xe7503a(_0x4adbc9(0x1fb),{'className':_0x4adbc9(0x37c),'children':_0xc763}),_0x3067ce(_0x4adbc9(0x1fb),{'className':_0x4adbc9(0x337),'children':[_0x831a83['map']((_0x10b843,_0x2d2293)=>{const _0x5d5ea7=_0x4adbc9;let _0x3c5735=_0x3124da['dimension'][_0x10b843]??_0x3124da[_0x5d5ea7(0x2f3)][_0x10b843];if(!_0x3c5735)return null;let _0x39ce04=(_0xf04461==null?void 0x0:_0xf04461[_0x5d5ea7(0x3ec)])===_0x4ed95c&&_0xf04461[_0x5d5ea7(0x134)]===_0x2d2293;return _0x3067ce('div',{'onDragOver':_0x57984c=>{const _0x19ba9b=_0x5d5ea7;_0x57984c[_0x19ba9b(0x412)](),_0x57984c[_0x19ba9b(0x410)]();let _0x248f35=_0x57984c['currentTarget'][_0x19ba9b(0x138)]();_0x3fc3fe[_0x19ba9b(0x265)](_0x2d2293+ +(_0x57984c['clientY']>_0x248f35[_0x19ba9b(0x361)]+_0x248f35[_0x19ba9b(0x3c5)]/0x2));},'onDrop':_0x2b1dc1=>{const _0x5c7868=_0x5d5ea7;_0x2b1dc1[_0x5c7868(0x412)](),_0x2b1dc1['stopPropagation'](),_0x3fc3fe[_0x5c7868(0x173)]((_0xf04461==null?void 0x0:_0xf04461[_0x5c7868(0x3ec)])===_0x4ed95c?_0xf04461[_0x5c7868(0x134)]:_0x2d2293);},'children':[_0x39ce04&&_0xe7503a('div',{'className':_0x5d5ea7(0x3c9)}),_0xe7503a(Wi,{'area':_0x4ed95c,'field':_0x3c5735,'onDragEnd':_0x3fc3fe[_0x5d5ea7(0x308)],'onDragStart':()=>_0x3fc3fe[_0x5d5ea7(0x192)](_0x10b843),'onFilter':()=>_0x3fc3fe[_0x5d5ea7(0x206)](_0x10b843),'onMove':_0x2229d3=>_0x3fc3fe['onMove'](_0x10b843,_0x2229d3,0x0),'onMoveUp':_0x2d2293>0x0?()=>_0x3fc3fe[_0x5d5ea7(0x1c8)](_0x10b843,_0x4ed95c,_0x2d2293-0x1):void 0x0,'onMoveDown':_0x2d2293<_0x831a83['length']-0x1?()=>_0x3fc3fe['onMove'](_0x10b843,_0x4ed95c,_0x2d2293+0x1):void 0x0,'onRemove':()=>_0x3fc3fe[_0x5d5ea7(0x30e)](_0x10b843),'onSettings':()=>_0x3fc3fe[_0x5d5ea7(0x293)](_0x10b843)})]},_0x10b843);}),(_0xf04461==null?void 0x0:_0xf04461['area'])===_0x4ed95c&&_0xf04461[_0x4adbc9(0x134)]===_0x831a83['length']&&_0xe7503a(_0x4adbc9(0x1fb),{'className':_0x4adbc9(0x3c9)}),_0x831a83['length']===0x0&&_0xe7503a(_0x4adbc9(0x1fb),{'className':_0x4adbc9(0x199),'children':_0x31396d['t'](_0x4adbc9(0x151))})]})]});}function Wi(_0xdc6b0a){const _0x412912=_0x51bd0c;let _0x37f998=_0x59ceb1(_0x3e9ffe),_0x441501=_0xdc6b0a['area']===_0x4fb992['Value'],_0x34bd6d=[...Ri[_0x412912(0x1ff)](_0x246012=>_0x246012[_0x412912(0x3ec)]!==_0xdc6b0a[_0x412912(0x3ec)])[_0x412912(0x259)](_0x368b4d=>({'type':_0x412912(0x1ad),'children':_0x37f998['t'](Zi(_0x368b4d['area'])),'onSelect':()=>_0xdc6b0a['onMove'](_0x368b4d['area'])})),..._0xdc6b0a[_0x412912(0x344)]?[{'type':_0x412912(0x1ad),'children':_0x37f998['t']('bases-dashboard-ui.mobile.moveUp'),'onSelect':_0xdc6b0a[_0x412912(0x344)]}]:[],..._0xdc6b0a[_0x412912(0x43d)]?[{'type':'item','children':_0x37f998['t'](_0x412912(0x318)),'onSelect':_0xdc6b0a['onMoveDown']}]:[],{'type':_0x412912(0x1ad),'children':_0x37f998['t'](_0x412912(0x190)),'onSelect':_0xdc6b0a['onRemove']},{'type':_0x412912(0x1ad),'children':_0x37f998['t'](_0x441501?'bases-dashboard-ui.pivot.fieldSettings':'bases-dashboard-ui.pivot.filterField'),'onSelect':_0x441501?_0xdc6b0a[_0x412912(0x293)]:_0xdc6b0a[_0x412912(0x206)]}];return _0x3067ce(_0x412912(0x1fb),{'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':_0xdc6b0a['onDragEnd'],'onDragStart':_0xdc6b0a[_0x412912(0x192)],'children':[_0xe7503a(_0x3f727d,{'title':_0xdc6b0a['field'][_0x412912(0x44e)],'children':_0xe7503a(_0x412912(0x1b9),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0xdc6b0a['field'][_0x412912(0x44e)]})}),_0xe7503a(Xr,{'align':_0x412912(0x422),'items':_0x34bd6d,'children':_0xe7503a(_0x2d5ef7,{'variant':_0x412912(0x1bf),'aria-label':_0x37f998['t'](_0x412912(0x3d8)),'children':_0xe7503a(_0x1ed3b5,{})})})]});}function Gi(_0x4ed6ef){const _0x58af17=_0x51bd0c;var _0xab5177,_0x449415;let _0x230ffc=_0x59ceb1(_0x3e9ffe),{format:_0x13291b,items:_0x3406dc,itemTypes:_0x3fe94c}=_0x592e4f(()=>{const _0x42b231=_0x30a0;let _0x2f701d=_0x3c1840(_0x4ed6ef[_0x42b231(0x400)],_0x4ed6ef[_0x42b231(0x1e8)]);try{let _0x1872df=_0x2f701d[_0x42b231(0x3b7)](_0x4ed6ef[_0x42b231(0x418)]);return{'format':_0x1872df==null?void 0x0:_0x1872df[_0x42b231(0x477)],'items':[...(_0x1872df==null?void 0x0:_0x1872df[_0x42b231(0x2a3)])??[]],'itemTypes':[...(_0x1872df==null?void 0x0:_0x1872df[_0x42b231(0x2ac)])??[]]};}finally{_0x2f701d[_0x42b231(0x147)]();}},[_0x4ed6ef[_0x58af17(0x418)],_0x4ed6ef[_0x58af17(0x1e8)],_0x4ed6ef[_0x58af17(0x400)]]),_0x486fce=(_0xab5177=_0x4ed6ef['snapshot']['dimension'][_0x4ed6ef[_0x58af17(0x418)]])==null?void 0x0:_0xab5177[_0x58af17(0x40d)],[_0x11ab82,_0x31d0a4]=_0x446379((_0x486fce==null?void 0x0:_0x486fce['type'])===_0x16546e[_0x58af17(0x31a)]?_0x486fce[_0x58af17(0x15b)]:_0x3406dc),[_0x4a6dd7,_0x22a7a8]=_0x446379((_0x449415=_0x4ed6ef[_0x58af17(0x1e8)][_0x58af17(0x207)][_0x4ed6ef[_0x58af17(0x418)]])==null||(_0x449415=_0x449415[_0x58af17(0x1d1)])==null?void 0x0:_0x449415[_0x58af17(0x2e3)]),_0x4ef503=_0x11ab82['length']===_0x3406dc[_0x58af17(0x220)],_0x2410b4=_0x3067ce('section',{'className':_0x1ba4bd('univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900',_0x196159),'children':[_0xe7503a('div',{'className':_0x58af17(0x472),'children':_0x230ffc['t'](_0x58af17(0x36a))}),_0x3067ce(_0x58af17(0x1fb),{'className':_0x58af17(0x22c),'children':[_0x3067ce(_0x2d5ef7,{'className':_0x58af17(0x26a),'variant':_0x4a6dd7===_0x4edbe4[_0x58af17(0x197)]?'primary':_0x58af17(0x47f),'onClick':()=>_0x22a7a8(_0x4edbe4[_0x58af17(0x197)]),'children':[_0xe7503a(_0x2dc2a4,{}),_0x230ffc['t']('bases-dashboard-ui.pivot.ascending')]}),_0x3067ce(_0x2d5ef7,{'className':_0x58af17(0x26a),'variant':_0x4a6dd7===_0x4edbe4[_0x58af17(0x35f)]?'primary':_0x58af17(0x47f),'onClick':()=>_0x22a7a8(_0x4edbe4[_0x58af17(0x35f)]),'children':[_0xe7503a(_0x1ef570,{}),_0x230ffc['t'](_0x58af17(0x408))]})]}),_0x3067ce(_0x58af17(0x1fb),{'className':_0x58af17(0x2d1),'children':[_0x3067ce(_0x58af17(0x3c0),{'className':_0x58af17(0x420),'children':[_0xe7503a(_0x191a88,{'checked':_0x4ef503,'indeterminate':_0x11ab82['length']>0x0&&!_0x4ef503,'onChange':()=>_0x31d0a4(_0x4ef503?[]:_0x3406dc)}),_0x230ffc['t'](_0x58af17(0x1dd))]}),_0x3406dc['map']((_0x17f513,_0x5f0ee5)=>_0x3067ce(_0x58af17(0x3c0),{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0xe7503a(_0x191a88,{'checked':_0x11ab82[_0x58af17(0x3d3)](_0x17f513),'onChange':()=>_0x31d0a4(_0x537af3=>_0x537af3[_0x58af17(0x3d3)](_0x17f513)?_0x537af3['filter'](_0x5617a4=>_0x5617a4!==_0x17f513):[..._0x537af3,_0x17f513])}),_0xe7503a(_0x58af17(0x1b9),{'className':_0x58af17(0x3ee),'children':Yi(_0x17f513,_0x3fe94c[_0x5f0ee5],_0x13291b,_0x230ffc['t'](_0x58af17(0x160)))})]},_0x17f513))]}),_0x3067ce(_0x58af17(0x1fb),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[_0xe7503a(_0x2d5ef7,{'variant':_0x58af17(0x3f5),'onClick':()=>_0x4ed6ef[_0x58af17(0x381)](_0x3406dc,_0x4a6dd7),'children':_0x230ffc['t'](_0x58af17(0x244))}),_0x3067ce('div',{'className':_0x58af17(0x15c),'children':[_0xe7503a(_0x2d5ef7,{'onClick':_0x4ed6ef[_0x58af17(0x16d)],'children':_0x230ffc['t'](_0x58af17(0x131))}),_0xe7503a(_0x2d5ef7,{'variant':_0x58af17(0x3ac),'disabled':_0x11ab82['length']===0x0,'onClick':()=>_0x4ed6ef[_0x58af17(0x381)](_0x11ab82,_0x4a6dd7),'children':_0x230ffc['t']('bases-dashboard-ui.pivot.confirm')})]})]})]});return _0xe7503a(_0x5abe1b,{'title':_0x230ffc['t'](_0x58af17(0x36a)),'onClose':_0x4ed6ef[_0x58af17(0x16d)],'children':_0x2410b4});}function Ki(_0x56e4e4){const _0x3d5465=_0x51bd0c;var _0x46f4e7,_0x5e409b,_0x10ba6d;let _0xe30894=_0x59ceb1(_0x3e9ffe),[_0x157822,_0x4ddf5a]=_0x446379(((_0x46f4e7=_0x56e4e4['field'])==null?void 0x0:_0x46f4e7[_0x3d5465(0x44e)])??''),[_0x55f016,_0x1e1541]=_0x446379(((_0x5e409b=_0x56e4e4[_0x3d5465(0x43f)])==null?void 0x0:_0x5e409b['subtotal'])??_0xc6923e[_0x3d5465(0x280)]),[_0x4b1d64,_0x48a6b3]=_0x446379(((_0x10ba6d=_0x56e4e4[_0x3d5465(0x43f)])==null?void 0x0:_0x10ba6d[_0x3d5465(0x477)])??'');if(!_0x56e4e4[_0x3d5465(0x43f)])return null;let _0x429b57=_0x3067ce(_0x3d5465(0x3e0),{'className':_0x1ba4bd(_0x3d5465(0x226),_0x196159),'children':[_0xe7503a(_0x3d5465(0x1fb),{'className':_0x3d5465(0x320),'children':_0xe30894['t'](_0x3d5465(0x3d8))}),_0x3067ce(_0x3d5465(0x3c0),{'className':_0x3d5465(0x36c),'children':[_0xe30894['t'](_0x3d5465(0x1a5)),_0xe7503a(_0x177173,{'value':_0x157822,'onChange':_0x4ddf5a})]}),_0x3067ce('label',{'className':_0x3d5465(0x36c),'children':[_0xe30894['t'](_0x3d5465(0x1b1)),_0xe7503a(Yr,{'value':String(_0x55f016),'options':zi[_0x3d5465(0x259)](_0x30f7b0=>({'value':String(_0x30f7b0[_0x3d5465(0x303)]),'label':_0xe30894['t'](_0x30f7b0[_0x3d5465(0x40f)])})),'onChange':_0x4a3753=>{const _0xca7026=_0x3d5465;let _0x2eda05=zi['find'](_0x20f663=>String(_0x20f663[_0xca7026(0x303)])===_0x4a3753);_0x2eda05&&_0x1e1541(_0x2eda05[_0xca7026(0x303)]);}})]}),_0x3067ce('label',{'className':_0x3d5465(0x36c),'children':[_0xe30894['t'](_0x3d5465(0x164)),_0xe7503a(_0x177173,{'value':_0x4b1d64,'onChange':_0x48a6b3})]}),_0x3067ce(_0x3d5465(0x1fb),{'className':_0x3d5465(0x39f),'children':[_0xe7503a(_0x2d5ef7,{'onClick':_0x56e4e4[_0x3d5465(0x16d)],'children':_0xe30894['t'](_0x3d5465(0x131))}),_0xe7503a(_0x2d5ef7,{'variant':_0x3d5465(0x3ac),'disabled':!_0x157822[_0x3d5465(0x46c)](),'onClick':()=>_0x56e4e4[_0x3d5465(0x381)](_0x157822[_0x3d5465(0x46c)](),_0x55f016,_0x4b1d64),'children':_0xe30894['t'](_0x3d5465(0x315))})]})]});return _0xe7503a(_0x5abe1b,{'title':_0xe30894['t']('bases-dashboard-ui.pivot.fieldSettings'),'onClose':_0x56e4e4[_0x3d5465(0x16d)],'children':_0x429b57});}function qi(_0x3e6795){const _0xcde0fa=_0x51bd0c;let {config:_0x1df86f,commit:_0x2ea313}=_0x3e6795,_0xbc0754=_0x59ceb1(_0x3e9ffe),_0x16dba1=_0x1df86f[_0xcde0fa(0x26c)][_0xcde0fa(0x17b)],_0x1e22cf=_0x6efeff=>_0x2ea313(_0x352b5f=>_0x352b5f[_0xcde0fa(0x309)]({..._0x352b5f[_0xcde0fa(0x3a8)](),..._0x6efeff}));return _0x3067ce('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x3067ce(_0xcde0fa(0x3c0),{'className':_0xcde0fa(0x385),'children':[_0xbc0754['t']('bases-dashboard-ui.pivot.layout'),_0xe7503a(Yr,{'className':_0xcde0fa(0x284),'value':String(_0x1df86f[_0xcde0fa(0x26c)][_0xcde0fa(0x465)]),'options':[{'value':String(_0x5aaea3[_0xcde0fa(0x1c9)]),'label':_0xbc0754['t'](_0xcde0fa(0x1e0))},{'value':String(_0x5aaea3[_0xcde0fa(0x2a9)]),'label':_0xbc0754['t'](_0xcde0fa(0x3be))},{'value':String(_0x5aaea3[_0xcde0fa(0x19b)]),'label':_0xbc0754['t'](_0xcde0fa(0x476))}],'onChange':_0xe34ebb=>{const _0x5a8d5a=_0xcde0fa;let _0x12cfa9=[_0x5aaea3['tabular'],_0x5aaea3[_0x5a8d5a(0x2a9)],_0x5aaea3[_0x5a8d5a(0x19b)]]['find'](_0x541ea5=>String(_0x541ea5)===_0xe34ebb);_0x12cfa9!==void 0x0&&_0x2ea313(_0xd7fb9c=>_0xd7fb9c['setLayout'](_0x12cfa9));}})]}),[{'key':_0xcde0fa(0x29b),'label':_0xcde0fa(0x2f9),'defaultValue':!0x1},{'key':'repeatColLabels','label':_0xcde0fa(0x451),'defaultValue':!0x1},{'key':_0xcde0fa(0x1d8),'label':_0xcde0fa(0x35a),'defaultValue':!0x0},{'key':_0xcde0fa(0x354),'label':_0xcde0fa(0x2a8),'defaultValue':!0x0},{'key':_0xcde0fa(0x3ce),'label':_0xcde0fa(0x365),'defaultValue':!0x0},{'key':_0xcde0fa(0x25e),'label':_0xcde0fa(0x272),'defaultValue':!0x0}]['map'](_0x30ef2d=>_0x3067ce(_0xcde0fa(0x3c0),{'className':_0xcde0fa(0x232),'children':[_0xe7503a(_0x191a88,{'checked':!!(_0x16dba1[_0x30ef2d[_0xcde0fa(0x24c)]]??_0x30ef2d[_0xcde0fa(0x22b)]),'disabled':_0x30ef2d[_0xcde0fa(0x24c)]===_0xcde0fa(0x29b)&&_0x1df86f[_0xcde0fa(0x26c)][_0xcde0fa(0x465)]===_0x5aaea3[_0xcde0fa(0x2a9)],'onChange':_0x43e094=>_0x1e22cf({[_0x30ef2d['key']]:!!_0x43e094})}),_0xbc0754['t'](_0x30ef2d[_0xcde0fa(0x3c0)])]},_0x30ef2d[_0xcde0fa(0x24c)])),_0x1df86f[_0xcde0fa(0x26c)][_0xcde0fa(0x465)]===_0x5aaea3['outline']&&_0x3067ce(_0xcde0fa(0x3c0),{'className':_0xcde0fa(0x385),'children':[_0xbc0754['t'](_0xcde0fa(0x413)),_0xe7503a(Yr,{'className':_0xcde0fa(0x284),'value':String(_0x16dba1[_0xcde0fa(0x1cc)]??_0x3472cd['top']),'options':[{'value':String(_0x3472cd[_0xcde0fa(0x361)]),'label':_0xbc0754['t'](_0xcde0fa(0x26b))},{'value':String(_0x3472cd[_0xcde0fa(0x330)]),'label':_0xbc0754['t'](_0xcde0fa(0x48b))}],'onChange':_0xf2f737=>{const _0x296b0f=_0xcde0fa;let _0x5e3a9d=[_0x3472cd[_0x296b0f(0x361)],_0x3472cd[_0x296b0f(0x330)]]['find'](_0x1de295=>String(_0x1de295)===_0xf2f737);_0x5e3a9d!==void 0x0&&_0x1e22cf({'rowSubtotalPosition':_0x5e3a9d});}})]}),_0x3067ce('label',{'className':_0xcde0fa(0x385),'children':[_0xbc0754['t'](_0xcde0fa(0x30d)),_0xe7503a(Yr,{'className':_0xcde0fa(0x284),'value':String(_0x1df86f[_0xcde0fa(0x26c)]['valuePosition']===_0x16715e[_0xcde0fa(0x202)]?_0x16715e[_0xcde0fa(0x1a9)]:_0x1df86f[_0xcde0fa(0x26c)][_0xcde0fa(0x20f)]),'options':[{'value':String(_0x16715e[_0xcde0fa(0x1a9)]),'label':_0xbc0754['t'](_0xcde0fa(0x466))},{'value':String(_0x16715e['Row']),'label':_0xbc0754['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x23cd22=>{const _0x4e6743=_0xcde0fa;let _0x1be234=[_0x16715e[_0x4e6743(0x1a9)],_0x16715e[_0x4e6743(0x266)]][_0x4e6743(0x142)](_0x461ccd=>String(_0x461ccd)===_0x23cd22);_0x1be234!==void 0x0&&_0x2ea313(_0x272ce5=>_0x272ce5['updateValuePosition'](_0x1be234,_0x272ce5['getValueIndex']()<0x0?0x0:_0x272ce5[_0x4e6743(0x3ab)]()));}})]}),_0x3067ce(_0xcde0fa(0x3c0),{'className':_0xcde0fa(0x385),'children':[_0xbc0754['t']('bases-dashboard-ui.pivot.pageWrap'),_0xe7503a(_0x1ccd7d,{'className':_0xcde0fa(0x38e),'min':0x1,'max':0x14,'value':_0x16dba1[_0xcde0fa(0x25f)]??0x1,'onChange':_0x18fbb7=>{const _0x424347=_0xcde0fa;let _0x34d1ac=Number(_0x18fbb7);Number[_0x424347(0x2d9)](_0x34d1ac)&&_0x34d1ac>=0x1&&_0x1e22cf({'pageWrap':_0x34d1ac});}})]}),_0x3067ce(_0xcde0fa(0x3c0),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0xbc0754['t']('bases-dashboard-ui.pivot.pageDirection'),_0xe7503a(Yr,{'className':_0xcde0fa(0x284),'value':String(_0x16dba1[_0xcde0fa(0x279)]??!0x1),'options':[{'value':_0xcde0fa(0x338),'label':_0xbc0754['t'](_0xcde0fa(0x248))},{'value':_0xcde0fa(0x38b),'label':_0xbc0754['t']('bases-dashboard-ui.pivot.acrossThenDown')}],'onChange':_0xf79b04=>_0x1e22cf({'pageOverThenDown':_0xf79b04===_0xcde0fa(0x38b)})})]})]});}function Ji(_0x32edf9,_0x3ef731,_0x6451f,_0x2b5202){const _0x4abf4e=_0x51bd0c;let _0x248434=_0x32edf9[_0x4abf4e(0x15e)](_0x3ef731)[_0x4abf4e(0x142)](_0x32ad55=>_0x32edf9[_0x4abf4e(0x1fa)](_0x32ad55['getId']())['area']!==_0x4fb992['Value']);_0x6451f!==_0x4fb992[_0x4abf4e(0x283)]&&_0x248434?_0x32edf9[_0x4abf4e(0x20d)](_0x248434[_0x4abf4e(0x461)](),_0x6451f,_0x2b5202):_0x32edf9['addFieldWithSourceId'](_0x3ef731,_0x6451f,_0x2b5202);}function Yi(_0xd7eec0,_0x32328f,_0x5f4dd6,_0x5ec0a8){const _0xa55b98=_0x51bd0c;return _0x32328f===_0x502fcd[_0xa55b98(0x3bf)]?_0x5ec0a8:_0x32328f===_0x502fcd[_0xa55b98(0x288)]&&_0x5f4dd6?_0x5cfbc7['format'](_0x5f4dd6,Number(_0xd7eec0)):_0xd7eec0;}function Xi(_0x53465c){const _0x50d996=_0x51bd0c;return _0x53465c[_0x50d996(0x2e3)]===_0x22c46f[_0x50d996(0x306)]||_0x53465c['type']===_0x22c46f['Currency']||_0x53465c[_0x50d996(0x2e3)]===_0x22c46f[_0x50d996(0x355)]||_0x53465c['type']===_0x22c46f[_0x50d996(0x373)];}function Zi(_0x3b8688){const _0x213341=_0x51bd0c;switch(_0x3b8688){case _0x4fb992[_0x213341(0x266)]:return _0x213341(0x144);case _0x4fb992['Column']:return _0x213341(0x1f0);case _0x4fb992['Value']:return _0x213341(0x404);default:return _0x213341(0x3d7);}}function Qi({config:_0x357a2b,onChange:_0x17f6da,runtime:_0x4fccdc,table:_0xe070ec}){const _0x5ec41c=_0x51bd0c;let _0x1dd3ee=_0x59ceb1(_0x3e9ffe),[_0x2079be,_0x5b6fc7]=_0x446379(_0x5ec41c(0x368));return _0x3067ce('aside',{'className':_0x5ec41c(0x41f),'children':[_0xe7503a(_0x331878,{'ariaLabel':_0x1dd3ee['t'](_0x5ec41c(0x214)),'className':_0x5ec41c(0x3bb),'items':[{'label':_0x1dd3ee['t'](_0x5ec41c(0x383)),'panelId':'base-pivot-chart-configuration','value':_0x5ec41c(0x368)},{'label':_0x1dd3ee['t'](_0x5ec41c(0x41d)),'panelId':_0x5ec41c(0x41b),'value':_0x5ec41c(0x26c)}],'value':_0x2079be,'variant':_0x5ec41c(0x28a),'onChange':_0x5b6fc7}),_0xe7503a(_0x5ec41c(0x1fb),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','children':_0x2079be===_0x5ec41c(0x368)?_0x4fccdc&&_0xe7503a(ei,{'config':_0x357a2b,'runtime':_0x4fccdc,'tableName':_0xe070ec[_0x5ec41c(0x136)],'onChange':_0x17f6da}):_0xe7503a(Bi,{'config':_0x357a2b,'table':_0xe070ec,'onChange':_0x17f6da})})]});}function $i({tableId:_0x5ad623,unitId:_0x3278b8,viewId:_0x36f18f}){const _0x2f72c8=_0x51bd0c;let [_0x3c110a,_0x3c0368]=_0x446379(!0x1),_0x47605b=_0x59ceb1(_0x19ef53),_0x39f40e=_0x59ceb1(_0x490434),_0xaf184f=_0x59ceb1(_0x57f04c),_0x37fb8c=_0x59ceb1(_0x3e9ffe),_0x51c117=_0x59ceb1(_0x49c96a),[_0x2aff99,_0x2770fd]=_0x446379(null),[_0x3c05d6,_0x36fa39]=_0x446379(null),_0x645775=_0x2c3a8a(_0x2f72c8(0x188)+_0x5620a1(0x8)),[_0x2c50dc,_0x4172c2]=_0x446379(!0x1),_0xe5d2ce=_0x39f40e[_0x2f72c8(0x1de)](_0x3278b8,_0xe1c385[_0x2f72c8(0x319)]),_0x466631=_0xe5d2ce==null?void 0x0:_0xe5d2ce['getSnapshot']()[_0x2f72c8(0x487)][_0x5ad623],_0x4a7a45=_0x466631==null?void 0x0:_0x466631[_0x2f72c8(0x27f)][_0x36f18f],_0x3ad078=ea(_0x4a7a45),_0x586727=yr(_0x3278b8,_0x5ad623,_0x36f18f);if(_0x3dfd92(()=>{const _0x137c19=_0x2f72c8;if(!_0x3ad078)return;let _0x4e017e=_0x645775[_0x137c19(0x228)];return _0x51c117[_0x137c19(0x1ca)](_0x4e017e,{'unitId':_0x3278b8,'tableId':_0x5ad623,'viewId':_0x36f18f,'filters':[]}),()=>{_0x51c117['releaseChartRuntime'](_0x3278b8,_0x4e017e);};},[_0x3ad078,_0x51c117,_0x5ad623,_0x3278b8,_0x36f18f]),_0x3dfd92(()=>{const _0x448898=_0x2f72c8;if(!ea(_0x4a7a45))return;let _0x439694=!0x0,_0x3be9dc={'unitId':_0x3278b8,'tableId':_0x5ad623,'viewId':_0x36f18f,'filters':[_0x4a7a45[_0x448898(0x1ff)]??null]};return _0x51c117[_0x448898(0x33b)](_0x3278b8,_0x645775['current'],_0x3be9dc)[_0x448898(0x439)](_0x370143=>{const _0x3040df=_0x448898;_0x439694&&_0x370143&&(_0x2770fd(_0x370143),_0x36fa39(_0x51c117['getChartRuntime'](_0x3278b8,_0x645775[_0x3040df(0x228)])??null),_0x4172c2(!0x1));})[_0x448898(0x18c)](_0x1ea0ec=>{const _0x55009a=_0x448898;_0xaf184f[_0x55009a(0x2fa)](_0x55009a(0x448),_0x1ea0ec),_0x439694&&(_0x2770fd(null),_0x4172c2(!0x0));}),()=>{_0x439694=!0x1;};},[_0xaf184f,_0x51c117,_0x5ad623,_0x3278b8,_0x4a7a45,_0x36f18f]),!_0x466631||!ea(_0x4a7a45))return null;let _0x11e501=_0x51c117[_0x2f72c8(0x162)](_0x3278b8,_0x645775[_0x2f72c8(0x228)])===_0x3c05d6?_0x3c05d6:null,_0x228bd3=_0x2aff99?_0x3067ce(_0x2f72c8(0x1fb),{'className':'univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','style':{'gridTemplateRows':_0x4a7a45['config'][_0x2f72c8(0x298)]===_0x2f72c8(0x295)?_0x2f72c8(0x370):'minmax(0,\x201fr)'},'children':[_0x4a7a45[_0x2f72c8(0x18b)][_0x2f72c8(0x298)]!==_0x2f72c8(0x400)&&_0x11e501&&_0xe7503a(_0x2f72c8(0x1fb),{'className':_0x2f72c8(0x371),'children':_0xe7503a(Rr,{'isRowDirection':_0xa65f9f(_0x4a7a45[_0x2f72c8(0x18b)][_0x2f72c8(0x368)]['orient']),'runtime':_0x11e501})}),_0x4a7a45[_0x2f72c8(0x18b)][_0x2f72c8(0x298)]!==_0x2f72c8(0x368)&&_0xe7503a(_0x2f72c8(0x1fb),{'className':_0x2f72c8(0x305),'children':_0xe7503a(ji,{'pivot':_0x4a7a45[_0x2f72c8(0x18b)][_0x2f72c8(0x26c)],'view':_0x2aff99[_0x2f72c8(0x150)]})})]}):_0xe7503a(_0x2f72c8(0x1fb),{'className':_0x2f72c8(0x327),'children':_0x2c50dc?_0x37fb8c['t'](_0x2f72c8(0x31e)):_0x37fb8c['t']('bases-dashboard-ui.pivot.calculating')}),_0x41008f=_0xe7503a(Qi,{'config':_0x4a7a45[_0x2f72c8(0x18b)],'runtime':_0x11e501,'table':_0x466631,'onChange':_0x14b75e=>{const _0x4859ae=_0x2f72c8;_0x39f40e[_0x4859ae(0x402)](_0x3278b8),_0x39f40e['focusUnit'](_0x3278b8),_0x47605b['executeCommand'](_0x29ecfe['id'],{'unitId':_0x3278b8,'tableId':_0x5ad623,'viewId':_0x36f18f,'patch':_0x14b75e})['catch'](_0x49e0c1=>_0xaf184f[_0x4859ae(0x2fa)](_0x4859ae(0x364),_0x49e0c1));}});return _0xe7503a(Jr,{'children':_0x3067ce(_0x2f72c8(0x1fb),{'className':_0x2f72c8(0x39b),'children':[_0x586727&&_0xe7503a(_0x2d5ef7,{'onClick':()=>_0x3c0368(!0x0),'children':_0x37fb8c['t'](_0x2f72c8(0x383))}),_0xe7503a('div',{'className':_0x2f72c8(0x24f),'children':_0x228bd3}),_0x586727&&_0x3c110a&&_0xe7503a(_0x5abe1b,{'title':_0x37fb8c['t'](_0x2f72c8(0x214)),'onClose':()=>_0x3c0368(!0x1),'children':_0x41008f})]})});}function ea(_0x2a770c){const _0x18d689=_0x51bd0c;return(_0x2a770c==null?void 0x0:_0x2a770c['type'])===_0x497849[_0x18d689(0x1c2)]&&typeof _0x2a770c['config']=='object'&&_0x2a770c[_0x18d689(0x18b)]!==null&&'pivot'in _0x2a770c[_0x18d689(0x18b)]&&'chart'in _0x2a770c[_0x18d689(0x18b)]&&_0x18d689(0x298)in _0x2a770c[_0x18d689(0x18b)];}let ta=class extends _0x1a82b4{constructor(_0x5cb4d8,_0x310127,_0x27ebb2,_0x56b824,_0xdac551,_0x299b1d){const _0x3fd6cd=_0x51bd0c;super(),this['disposeWithMe'](_0x310127[_0x3fd6cd(0x377)]({'type':_0x497849[_0x3fd6cd(0x1c2)],'renderMode':_0x3fd6cd(0x474),'icon':_0x3a5ee2,'component':$i,'menu':{get 'label'(){const _0x4efe30=_0x3fd6cd;return _0x299b1d['t'](_0x4efe30(0x214));},get 'description'(){return _0x299b1d['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){const _0x40267b=_0x3fd6cd;return _0x299b1d['t'](_0x40267b(0x174));}}})),this[_0x3fd6cd(0x27e)](_0x5cb4d8[_0x3fd6cd(0x377)](na(_0x27ebb2,_0x56b824,_0xdac551,_0x299b1d)));}};ta=Ar([Y(0x0,_0x13f33c),Y(0x1,_0x46f0b2),Y(0x2,_0x986575(_0x46b07c)),Y(0x3,_0x19ef53),Y(0x4,_0x278622),Y(0x5,_0x986575(_0x3e9ffe))],ta);function na(_0x3b8aa0,_0x1faf23,_0x16da8a,_0xbb4711){const _0x5357e3=_0x51bd0c;return{'change$':_0x4a9a96(_0x3b8aa0[_0x5357e3(0x14a)],_0x16da8a[_0x5357e3(0x19c)]),'component':Si,get 'labels'(){const _0x347ebb=_0x5357e3;return{'add':_0xbb4711['t']('bases-dashboard-ui.dashboard.add'),'configure':_0x4c2755=>_0xbb4711['t'](_0x347ebb(0x264),_0x4c2755),'delete':_0xbb4711['t'](_0x347ebb(0x369)),'new':_0xbb4711['t'](_0x347ebb(0x45d)),'rename':_0xbb4711['t'](_0x347ebb(0x445)),'search':_0xbb4711['t'](_0x347ebb(0x409)),'section':_0xbb4711['t'](_0x347ebb(0x469))};},'getItems':_0x4c321f=>{const _0x4fd2d6=_0x5357e3;let _0x10b771=_0x3b8aa0[_0x4fd2d6(0x1b6)](_0x4c321f);return _0x10b771[_0x4fd2d6(0x28b)][_0x4fd2d6(0x397)](_0xbd4419=>{const _0x31994d=_0x4fd2d6;let _0x1cbf4b=_0x10b771[_0x31994d(0x2ad)][_0xbd4419];return _0x1cbf4b?[{'id':_0x1cbf4b['id'],'name':_0x1cbf4b[_0x31994d(0x136)],'readonly':!_0x1c7e4f(_0x16da8a,_0x4c321f,_0x1cbf4b['id'])}]:[];});},'create':async _0x79aa24=>{const _0x4bdd80=_0x5357e3;let _0x2940eb=_0x3b8aa0[_0x4bdd80(0x1b6)](_0x79aa24),_0x1a7b62=_0x4bdd80(0x3b4)+_0x5620a1(0x8),_0x3ca919=ra(_0x2940eb[_0x4bdd80(0x28b)]['flatMap'](_0x204336=>{const _0x2522af=_0x4bdd80;let _0x4bb1c6=_0x2940eb[_0x2522af(0x2ad)][_0x204336];return _0x4bb1c6?[_0x4bb1c6[_0x2522af(0x136)]]:[];}),_0x42e626=>_0xbb4711['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x42e626)));return await _0x1faf23[_0x4bdd80(0x3b8)](_0x184b01['id'],{'unitId':_0x79aa24,'dashboard':{'id':_0x1a7b62,'name':_0x3ca919,'widgetOrder':[],'widgets':{}}})?_0x1a7b62:null;},'rename':async(_0x36a391,_0x55eeb5,_0x306833)=>{const _0x27efe8=_0x5357e3;let _0x1b37c2=_0x3b8aa0[_0x27efe8(0x1d4)](_0x36a391,_0x55eeb5);return!!(_0x1b37c2&&await _0x1faf23[_0x27efe8(0x3b8)](_0x5741e1['id'],{'unitId':_0x36a391,'dashboard':{..._0x1b37c2,'name':_0x306833}}));},'remove':(_0x5d19c1,_0xe3fffd)=>_0x1faf23[_0x5357e3(0x3b8)](_0x1361be['id'],{'unitId':_0x5d19c1,'dashboardId':_0xe3fffd})};}function ra(_0x2cf219,_0xcf580b){const _0x204177=_0x51bd0c;let _0xdd1bd0=new Set(_0x2cf219),_0xf945cd=_0xdd1bd0[_0x204177(0x3b2)]+0x1,_0x2514ce=_0xcf580b(_0xf945cd);for(;_0xdd1bd0[_0x204177(0x1b5)](_0x2514ce);)_0xf945cd+=0x1,_0x2514ce=_0xcf580b(_0xf945cd);return _0x2514ce;}let ia=class extends _0x465305{constructor(_0x168ecc=_r,_0x43b505,_0x2997bc){const _0x5b0b43=_0x51bd0c;super(),this['_config']=_0x168ecc,this[_0x5b0b43(0x166)]=_0x43b505,this['_configService']=_0x2997bc;let {..._0x41901a}=_0x24504d({},_r,this['_config']);this[_0x5b0b43(0x255)][_0x5b0b43(0x430)](gr,_0x41901a);}['onStarting'](){const _0x1f3e81=_0x51bd0c;this[_0x1f3e81(0x166)][_0x1f3e81(0x30a)]([jr]),this[_0x1f3e81(0x166)]['add']([qr]),this[_0x1f3e81(0x166)][_0x1f3e81(0x30a)]([ta]);}[_0x51bd0c(0x390)](){const _0x310063=_0x51bd0c;_0x1aefec(this[_0x310063(0x166)],[[jr],[qr],[ta]]);}};Ir(ia,'type',_0xe1c385[_0x51bd0c(0x319)]),Ir(ia,'pluginName',_0x51bd0c(0x1ef)),Ir(ia,'packageName',mr),Ir(ia,'version',hr),ia=Ar([_0x528588(_0x237f5b,_0x3f977a,_0x320762,_0xbff2bc,_0x4e4724,_0x5dd22a),Y(0x1,_0x986575(_0x58f1ef)),Y(0x2,_0x451e15)],ia);function aa(_0x3a1c8b,_0x1aec66,_0x2869f0,_0x117518){const _0x3e4a46=_0x51bd0c;let _0x2c2ae0={..._0x3a1c8b};if(_0x1aec66[_0x3e4a46(0x3d3)]('w')){let _0x23e0ea=_0x3a1c8b[_0x3e4a46(0x340)]+_0x3a1c8b[_0x3e4a46(0x27d)];_0x2c2ae0['column']=Math['max'](0x0,Math[_0x3e4a46(0x1f1)](_0x23e0ea-0x1,_0x3a1c8b[_0x3e4a46(0x340)]+_0x2869f0)),_0x2c2ae0[_0x3e4a46(0x27d)]=_0x23e0ea-_0x2c2ae0[_0x3e4a46(0x340)];}else _0x1aec66['includes']('e')&&(_0x2c2ae0[_0x3e4a46(0x27d)]=Math[_0x3e4a46(0x335)](0x1,Math[_0x3e4a46(0x1f1)](_0x24b836-_0x3a1c8b[_0x3e4a46(0x340)],_0x3a1c8b['columnSpan']+_0x2869f0)));if(_0x1aec66['includes']('n')){let _0xcfc781=_0x3a1c8b[_0x3e4a46(0x216)]+_0x3a1c8b[_0x3e4a46(0x414)];_0x2c2ae0[_0x3e4a46(0x216)]=Math[_0x3e4a46(0x335)](0x0,Math[_0x3e4a46(0x1f1)](_0xcfc781-0x1,_0x3a1c8b[_0x3e4a46(0x216)]+_0x117518)),_0x2c2ae0[_0x3e4a46(0x414)]=_0xcfc781-_0x2c2ae0[_0x3e4a46(0x216)];}else _0x1aec66[_0x3e4a46(0x3d3)]('s')&&(_0x2c2ae0[_0x3e4a46(0x414)]=Math[_0x3e4a46(0x335)](0x1,_0x3a1c8b[_0x3e4a46(0x414)]+_0x117518));return _0x2c2ae0;}function oa(_0x349cc0){const _0x292ae3=_0x51bd0c;let _0x10e7e4=Math['max'](0x1,Math[_0x292ae3(0x1f1)](_0x24b836,Math[_0x292ae3(0x249)](_0x349cc0[_0x292ae3(0x27d)])));return{'column':Math[_0x292ae3(0x335)](0x0,Math['min'](_0x24b836-_0x10e7e4,Math['round'](_0x349cc0[_0x292ae3(0x340)]))),'row':Math[_0x292ae3(0x335)](0x0,Math['round'](_0x349cc0[_0x292ae3(0x216)])),'columnSpan':_0x10e7e4,'rowSpan':Math['max'](0x1,Math[_0x292ae3(0x249)](_0x349cc0['rowSpan']))};}function sa(_0x57d6fe,_0x13d266,_0x5d0355){const _0x3b7807=_0x51bd0c;let _0x1d5160=new Map(_0x57d6fe),_0x2697e6=oa(_0x5d0355);_0x1d5160['set'](_0x13d266,_0x2697e6);let _0x427869=[[_0x13d266,_0x2697e6]];for(let [_0x3af34c,_0xa2cb3c]of _0x1d5160){if(_0x3af34c===_0x13d266)continue;let _0x2ee022=oa(_0xa2cb3c);for(;_0x427869['some'](([,_0x5e3f56])=>la(_0x2ee022,_0x5e3f56));)_0x2ee022={..._0x2ee022,'row':_0x2ee022['row']+0x1};for(;_0x2ee022[_0x3b7807(0x216)]>0x0;){let _0x17343b={..._0x2ee022,'row':_0x2ee022[_0x3b7807(0x216)]-0x1};if(_0x427869['some'](([,_0x5528b4])=>la(_0x17343b,_0x5528b4)))break;_0x2ee022=_0x17343b;}_0x427869[_0x3b7807(0x2b0)]([_0x3af34c,_0x2ee022]),_0x1d5160[_0x3b7807(0x23a)](_0x3af34c,_0x2ee022);}return _0x1d5160;}function ca(_0xeceb78,_0x465cd5,_0x330969,_0x5c9560=0x38,_0x49aa89=0x16){const _0x33f2ca=_0x51bd0c;return _0xeceb78<_0x465cd5+_0x5c9560?-Math[_0x33f2ca(0x1af)](_0x49aa89*(0x1-Math[_0x33f2ca(0x335)](0x0,_0xeceb78-_0x465cd5)/_0x5c9560)):_0xeceb78>_0x330969-_0x5c9560?Math[_0x33f2ca(0x1af)](_0x49aa89*(0x1-Math[_0x33f2ca(0x335)](0x0,_0x330969-_0xeceb78)/_0x5c9560)):0x0;}function la(_0xbda136,_0x4a3c55){const _0x5370cd=_0x51bd0c;return _0xbda136[_0x5370cd(0x340)]<_0x4a3c55[_0x5370cd(0x340)]+_0x4a3c55[_0x5370cd(0x27d)]&&_0xbda136[_0x5370cd(0x340)]+_0xbda136[_0x5370cd(0x27d)]>_0x4a3c55[_0x5370cd(0x340)]&&_0xbda136[_0x5370cd(0x216)]<_0x4a3c55[_0x5370cd(0x216)]+_0x4a3c55[_0x5370cd(0x414)]&&_0xbda136[_0x5370cd(0x216)]+_0xbda136[_0x5370cd(0x414)]>_0x4a3c55[_0x5370cd(0x216)];}const ua=[{'direction':'nw','className':_0x51bd0c(0x12f)},{'direction':'n','className':'-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize'},{'direction':'ne','className':_0x51bd0c(0x20a)},{'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':_0x51bd0c(0x416)},{'direction':'sw','className':_0x51bd0c(0x34f)},{'direction':'w','className':_0x51bd0c(0x42e)}];function da({dashboard:_0x205f7c,dragLabel:_0x5c46ff,editable:_0x1f05da=!0x0,onLayoutsCommit:_0x574843,onSelectWidget:_0x1c1257,renderWidget:_0x2280ed,renderWidgetActions:_0x29068f,resizeLabel:_0x38b3d1,selectedWidgetId:_0x38da37,widgetLabel:_0x3f2879}){const _0x5e6d22=_0x51bd0c;let _0x28613c=_0x2c3a8a(null),_0x319e13=_0x2c3a8a(null),[_0x20e45d,_0xd8767e]=_0x446379(!0x1),_0x5e719e=_0x592e4f(()=>new Map(_0x205f7c[_0x5e6d22(0x205)]['flatMap'](_0x988fb7=>{const _0x320ed5=_0x5e6d22;let _0x121c20=_0x205f7c[_0x320ed5(0x3ca)][_0x988fb7];return _0x121c20?[[_0x988fb7,_0x121c20['layout']]]:[];})),[_0x205f7c]),[_0x9a64e7,_0xe77dfa]=_0x446379(_0x5e719e);_0x3dfd92(()=>{const _0x123f72=_0x5e6d22;_0x319e13[_0x123f72(0x228)]||_0xe77dfa(_0x5e719e);},[_0x5e719e]),_0x3dfd92(()=>{const _0x507ad7=_0x5e6d22;if(!_0x20e45d)return;let _0x2cc14a=_0x59b57f=>{const _0x4d79f3=_0x30a0;let _0x3a0166=_0x28613c[_0x4d79f3(0x228)];if(!_0x3a0166)return null;let _0x2e12a1=_0x3a0166[_0x4d79f3(0x138)](),_0x3506b6=Math['max'](0x1,(_0x2e12a1[_0x4d79f3(0x382)]-0x8*(_0x24b836-0x1))/_0x24b836),_0x2b2719=Math[_0x4d79f3(0x249)]((_0x3a0166[_0x4d79f3(0x234)]-_0x59b57f[_0x4d79f3(0x342)])/(_0x2dd572+0x8)),_0x2545f0=Math['round']((_0x59b57f[_0x4d79f3(0x433)]-_0x59b57f['startX'])/(_0x3506b6+0x8)),_0x38cb1a=Math[_0x4d79f3(0x249)]((_0x59b57f['pointerY']-_0x59b57f[_0x4d79f3(0x2a6)])/(_0x2dd572+0x8))+_0x2b2719,_0x390a85=_0x59b57f[_0x4d79f3(0x1da)]===_0x4d79f3(0x2bf)?{..._0x59b57f[_0x4d79f3(0x1e2)],'column':_0x59b57f[_0x4d79f3(0x1e2)]['column']+_0x2545f0,'row':_0x59b57f['initial'][_0x4d79f3(0x216)]+_0x38cb1a}:aa(_0x59b57f[_0x4d79f3(0x1e2)],_0x59b57f[_0x4d79f3(0x2db)]??'se',_0x2545f0,_0x38cb1a),_0x1b6f1e=sa(_0x59b57f[_0x4d79f3(0x35c)],_0x59b57f['id'],_0x390a85);return _0xe77dfa(_0x1b6f1e),_0x1b6f1e;},_0x293c1a=_0x1decc9=>{const _0x3b4701=_0x30a0;let _0x4fe8f0=_0x319e13[_0x3b4701(0x228)];if(!_0x4fe8f0)return;let _0x435dd8={..._0x4fe8f0,'pointerX':_0x1decc9['clientX'],'pointerY':_0x1decc9['clientY']};_0x319e13[_0x3b4701(0x228)]=_0x435dd8;},_0x354b8c=()=>{const _0x46a6c6=_0x30a0;let _0x325204=_0x319e13[_0x46a6c6(0x228)],_0x562e34=_0x325204?_0x2cc14a(_0x325204):null;_0x319e13[_0x46a6c6(0x228)]=null,_0xd8767e(!0x1),_0x562e34&&_0x574843(_0x562e34);},_0xff97fa=0x0,_0x1bc6c3=()=>{const _0x5698fc=_0x30a0;let _0x1c16ca=_0x28613c[_0x5698fc(0x228)],_0x29b7e1=_0x319e13[_0x5698fc(0x228)];if(_0x1c16ca&&_0x29b7e1){let _0x340512=_0x1c16ca['getBoundingClientRect'](),_0x4c67cf=ca(_0x29b7e1[_0x5698fc(0x3cd)],_0x340512['top'],_0x340512[_0x5698fc(0x330)]);_0x4c67cf!==0x0&&(_0x1c16ca[_0x5698fc(0x234)]+=_0x4c67cf),_0x2cc14a(_0x29b7e1),_0xff97fa=requestAnimationFrame(_0x1bc6c3);}};return _0xff97fa=requestAnimationFrame(_0x1bc6c3),window[_0x507ad7(0x2eb)](_0x507ad7(0x425),_0x293c1a),window[_0x507ad7(0x2eb)](_0x507ad7(0x1be),_0x354b8c),()=>{const _0x4a56c8=_0x507ad7;cancelAnimationFrame(_0xff97fa),window[_0x4a56c8(0x176)](_0x4a56c8(0x425),_0x293c1a),window[_0x4a56c8(0x176)]('pointerup',_0x354b8c);};},[_0x20e45d,_0x574843]);let _0x438471=Math['max'](0x8,...Array[_0x5e6d22(0x378)](_0x9a64e7[_0x5e6d22(0x3fd)]())['map'](_0x3e0d2d=>_0x3e0d2d[_0x5e6d22(0x216)]+_0x3e0d2d['rowSpan'])),_0x5c380=(_0x5b4245,_0x3023ae,_0x3da2b1,_0x379c2d)=>{const _0x45f049=_0x5e6d22;_0x5b4245[_0x45f049(0x412)](),_0x5b4245['stopPropagation']();let _0x3f2c18=_0x28613c[_0x45f049(0x228)],_0x1c82ee={'id':_0x3023ae['id'],'mode':_0x3da2b1,'pointerX':_0x5b4245['clientX'],'pointerY':_0x5b4245[_0x45f049(0x39e)],'startX':_0x5b4245[_0x45f049(0x13c)],'startY':_0x5b4245['clientY'],'startScrollTop':(_0x3f2c18==null?void 0x0:_0x3f2c18[_0x45f049(0x234)])??0x0,'initial':_0x9a64e7[_0x45f049(0x3f3)](_0x3023ae['id'])??_0x3023ae['layout'],'initialLayouts':new Map(_0x9a64e7),'resizeDirection':_0x379c2d};_0x319e13[_0x45f049(0x228)]=_0x1c82ee,_0xd8767e(!0x0);};return _0xe7503a('div',{'ref':_0x28613c,'data-dashboard-scroll-container':!0x0,'className':_0x1ba4bd(_0x5e6d22(0x145),_0x2a2c66),'onClick':_0x1f05da?_0x2cf09a=>{const _0xb3be35=_0x5e6d22;if(!(_0x2cf09a[_0xb3be35(0x367)]instanceof Node)||!_0x2cf09a[_0xb3be35(0x488)]['contains'](_0x2cf09a[_0xb3be35(0x367)]))return;let _0x261845=_0x2cf09a[_0xb3be35(0x367)]instanceof Element?_0x2cf09a['target']:_0x2cf09a[_0xb3be35(0x367)][_0xb3be35(0x3f6)];_0x261845!=null&&_0x261845[_0xb3be35(0x275)](_0xb3be35(0x1df))||_0x1c1257==null||_0x1c1257();}:void 0x0,'children':_0xe7503a(_0x5e6d22(0x1fb),{'data-dashboard-grid':!0x0,'className':_0x5e6d22(0x2ab),'style':{'gap':0x8,'gridAutoRows':_0x2dd572,'minHeight':_0x438471*(_0x2dd572+0x8)},'children':_0x205f7c[_0x5e6d22(0x205)][_0x5e6d22(0x259)](_0x492042=>{const _0x37c511=_0x5e6d22;var _0x2123e7;let _0x3e5973=_0x205f7c[_0x37c511(0x3ca)][_0x492042],_0x5488f5=_0x9a64e7['get'](_0x492042);return!_0x3e5973||!_0x5488f5?null:_0x3067ce(_0x37c511(0x331),{'data-dashboard-widget':_0x3e5973['id'],'aria-label':_0x3e5973[_0x37c511(0x358)]??_0x3f2879(_0x3e5973),'className':_0x1ba4bd(_0x37c511(0x2c0),_0x3e5973[_0x37c511(0x2e3)]===_0x9d376a[_0x37c511(0x180)]||_0x3e5973[_0x37c511(0x2e3)]===_0x9d376a[_0x37c511(0x159)]?_0x37c511(0x351):_0x37c511(0x40e),_0x1f05da&&_0x38da37===_0x3e5973['id']?'univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500':_0x37c511(0x407)),'style':{'gridColumn':_0x5488f5[_0x37c511(0x340)]+0x1+_0x37c511(0x442)+_0x5488f5[_0x37c511(0x27d)],'gridRow':_0x5488f5[_0x37c511(0x216)]+0x1+_0x37c511(0x442)+_0x5488f5[_0x37c511(0x414)]},'tabIndex':_0x1f05da?0x0:void 0x0,'onClick':_0x1f05da?()=>_0x1c1257==null?void 0x0:_0x1c1257(_0x3e5973['id']):void 0x0,'onFocus':_0x1f05da?()=>_0x1c1257==null?void 0x0:_0x1c1257(_0x3e5973['id']):void 0x0,'children':[_0x1f05da&&_0xe7503a('button',{'type':_0x37c511(0x41e),'aria-label':_0x5c46ff,'data-dashboard-drag-handle':_0x3e5973['id'],'className':_0x1ba4bd(_0x37c511(0x3eb),_0x20e45d&&((_0x2123e7=_0x319e13[_0x37c511(0x228)])==null?void 0x0:_0x2123e7['id'])===_0x3e5973['id']&&_0x319e13[_0x37c511(0x228)]['mode']===_0x37c511(0x2bf)?_0x37c511(0x42f):'univer-cursor-grab'),'onPointerDown':_0x558ca5=>_0x5c380(_0x558ca5,_0x3e5973,'move'),'children':_0xe7503a(_0x33b779,{'className':_0x37c511(0x132),'aria-hidden':_0x37c511(0x38b)})}),_0x1f05da&&_0xe7503a(_0x37c511(0x1fb),{'className':_0x37c511(0x2b7),'children':_0x29068f==null?void 0x0:_0x29068f(_0x3e5973)}),_0xe7503a(_0x37c511(0x1fb),{'className':'univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','children':_0x2280ed(_0x3e5973)}),_0x1f05da&&ua[_0x37c511(0x259)](({className:_0x4ca1c0,direction:_0x195037})=>{const _0x1dec14=_0x37c511;let _0x10f260=_0x195037[_0x1dec14(0x220)]===0x2;return _0xe7503a(_0x1dec14(0x41e),{'type':_0x1dec14(0x41e),'aria-label':_0x38b3d1,'data-dashboard-resize-handle':_0x195037,'data-dashboard-resize-control':_0x10f260?_0x195037:void 0x0,'data-dashboard-resize-edge':_0x10f260?void 0x0:_0x195037,'className':_0x1ba4bd(_0x1dec14(0x2c2),_0x10f260?'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':_0x1dec14(0x34a),_0x4ca1c0,_0x38da37===_0x3e5973['id']&&_0x1dec14(0x3dc)),'onPointerDown':_0x11fc03=>_0x5c380(_0x11fc03,_0x3e5973,'resize',_0x195037)},_0x195037);})]},_0x3e5973['id']);})})});}var fa;const Q={'axis':{..._0x52e779,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x40f42e,'heatmap':_0x236616,'indicatorLine':_0x4b5c03,'legend':_0x128068,'lineAndArea':_0xf0a761,'pareto':_0x161614,'pie':_0x3717dd,'radar':_0x5dc3b0,'relation':{..._0x38bd5f,'useValueAsSymbolSize':!0x0},'series':{..._0x52331b,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((fa=_0x5a0d45[_0x51bd0c(0x219)])==null?void 0x0:fa[_0x51bd0c(0x175)])??!0x1}},'style':_0x255ffa,'titles':_0x1175bb,'trendline':_0x4ed75f,'waterfall':{..._0x4e5a18,'useSubtotal':!0x0},'waterfallStyle':_0x2bc803,'wordCloud':_0x224db6},pa=[_0x26e67f[_0x51bd0c(0x3a1)],_0x26e67f['Radar'],_0x26e67f['WordCloud'],_0x26e67f[_0x51bd0c(0x271)],_0x26e67f['Funnel'],_0x26e67f[_0x51bd0c(0x1a0)],_0x26e67f[_0x51bd0c(0x3ae)],_0x26e67f[_0x51bd0c(0x2cd)],_0x26e67f['Boxplot'],_0x26e67f['Candlestick'],_0x26e67f[_0x51bd0c(0x467)],_0x26e67f['Treemap'],_0x26e67f[_0x51bd0c(0x252)],_0x26e67f[_0x51bd0c(0x2cb)],_0x26e67f[_0x51bd0c(0x360)]];function ma(_0x5dc8a7){const _0x54c497=_0x51bd0c;let {config:_0x24c4d3,onChange:_0x2f62c7,runtime:_0x3a3082,tableName:_0x132486}=_0x5dc8a7,_0x1dee25=_0x59ceb1(qr),_0x1ede5c=_0x59ceb1(_0x3e9ffe),[_0x42ec52,_0x16721a]=_0x446379(_0xd7f52a['Data']),_0xe1d091=_0x592e4f(()=>new _0x59650f(_0x3a3082['model'],{'commit':_0x23bba2=>{const _0x2a74a8=_0x30a0;var _0x4d9c97;let _0x30a1ea=_0x3a3082[_0x2a74a8(0x2be)],_0x156ad4=_0x33ebeb(_0x23bba2,{'series':(_0x4d9c97=_0x30a1ea['config'])==null?void 0x0:_0x4d9c97[_0x2a74a8(0x33d)],'currentChartType':_0x30a1ea[_0x2a74a8(0x44b)],'currentStyle':_0x30a1ea[_0x2a74a8(0x393)],'currentContext':_0x30a1ea['context'],'currentDataAggregation':_0x30a1ea[_0x2a74a8(0x440)]});_0x2f62c7({'chart':ha(_0x24c4d3['chart'],_0x156ad4)});}}),[_0x24c4d3[_0x54c497(0x368)],_0x2f62c7,_0x3a3082]),_0x1ceebb=_0x592e4f(()=>_0x5ef485(_0x2a4d2b[_0x54c497(0x259)](_0x228b41=>({..._0x228b41,'label':_0x1ede5c['t'](ya(_0x228b41[_0x54c497(0x212)]))}))),[_0x1ede5c]);return _0xe7503a(_0x1b7f92,{'chartUIService':_0x1dee25,'hostAdapter':_0xe1d091,'children':_0x3067ce(_0x54c497(0x1fb),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0xe7503a(_0x331878,{'ariaLabel':_0x1ede5c['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x54c497(0x3f1),'items':[{'label':_0x1ede5c['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0x54c497(0x26d),'value':_0xd7f52a[_0x54c497(0x31d)]},{'label':_0x1ede5c['t'](_0x54c497(0x281)),'panelId':_0x54c497(0x2ae),'value':_0xd7f52a[_0x54c497(0x366)]}],'value':_0x42ec52,'onChange':_0x16721a}),_0x42ec52===_0xd7f52a[_0x54c497(0x31d)]?_0xe7503a(_0x38b71a,{'id':_0x54c497(0x26d),'label':_0x1ede5c['t'](_0x54c497(0x3d0)),'children':_0x3067ce(_0x54c497(0x1fb),{'className':_0x54c497(0x227),'children':[_0xe7503a(_0x164a8c,{'options':_0x1ceebb}),_0xe7503a(_0xedfe4a,{}),_0xe7503a(_0x4034d5,{}),_0xe7503a(ga,{}),_0xe7503a(_0x1a336c,{}),_0x3067ce(_0x54c497(0x1fb),{'children':[_0xe7503a(_0x23b11e,{'title':_0x1ede5c['t'](_0x54c497(0x444))}),_0xe7503a(_0x177173,{'disabled':!0x0,'value':_0x132486})]}),_0xe7503a(_0x2ef133,{'orientationControl':_0xe7503a(_0x2d5ef7,{'size':_0x54c497(0x47e),'onClick':()=>_0x2f62c7({'chart':{..._0x24c4d3[_0x54c497(0x368)],'orient':_0x24c4d3[_0x54c497(0x368)][_0x54c497(0x191)]===_0x54c497(0x216)?_0x54c497(0x340):_0x54c497(0x216)}}),'children':_0x1ede5c['t'](_0x54c497(0x3d6))})}),_0xe7503a(_0xa492d5,{}),_0xe7503a(_0x4bc741,{'defaultValues':Q[_0x54c497(0x323)]}),_0x3067ce(_0x54c497(0x1fb),{'children':[_0xe7503a(_0x23b11e,{'title':_0x1ede5c['t']('bases-dashboard-ui.pivot.display')}),_0xe7503a(_0x35cb89,{'value':_0x24c4d3[_0x54c497(0x298)],'options':[{'value':'chart-and-table','label':_0x1ede5c['t'](_0x54c497(0x2fb))},{'value':_0x54c497(0x368),'label':_0x1ede5c['t'](_0x54c497(0x230))},{'value':_0x54c497(0x400),'label':_0x1ede5c['t'](_0x54c497(0x48f))}],'onChange':_0x527925=>{const _0x389ea5=_0x54c497;(_0x527925==='chart-and-table'||_0x527925===_0x389ea5(0x368)||_0x527925===_0x389ea5(0x400))&&_0x2f62c7({'displayMode':_0x527925});}})]})]})}):_0xe7503a(_0x38b71a,{'id':_0x54c497(0x2ae),'label':_0x1ede5c['t']('bases-dashboard-ui.chart.common.customize'),'children':_0xe7503a(_a,{})})]})});}function ha(_0x2229eb,_0x1cdd34){const _0x328abf=_0x51bd0c;return{..._0x2229eb,'type':_0x1cdd34['chartType']??_0x2229eb[_0x328abf(0x2e3)],'style':_0x1cdd34[_0x328abf(0x393)]??_0x2229eb['style'],'context':_0x1cdd34['context']??_0x2229eb[_0x328abf(0x384)],'dataAggregation':_0x1cdd34[_0x328abf(0x440)]??_0x2229eb['dataAggregation']};}function ga(){const _0x421a03=_0x51bd0c;let _0x28ac04=_0x4ce6a7();return _0xe7503a(_0x4fbd7e,{'visible':pa[_0x421a03(0x38a)](_0x4a8526=>!_0x5dedd8[_0x421a03(0x17e)](_0x28ac04,_0x4a8526))});}function $(_0x55e936){const _0x53f7c4=_0x51bd0c;return _0x3067ce(_0x154f26,{'id':_0x55e936['id'],'children':[_0xe7503a(_0x5948a8,{'children':_0x55e936[_0x53f7c4(0x3c0)]}),_0xe7503a(_0x493e5f,{'children':_0x55e936['children']})]});}function _a(){const _0x1ee4cb=_0x51bd0c;let _0x5c3e50=_0x59ceb1(_0x3e9ffe),_0x5c190b=_0x4ce6a7(),_0x7cdb64=_0x14227c(),[_0x27c2c0,_0x1f3b74]=_0x446379(null),_0x988fec=_0x5dedd8['baseOn'](_0x5c190b,_0x26e67f['Pie']),_0x589721=_0x5c190b===_0x26e67f[_0x1ee4cb(0x1b2)],_0x3853f7=_0x5c190b===_0x26e67f[_0x1ee4cb(0x464)],_0x3e444f=_0x5c190b===_0x26e67f[_0x1ee4cb(0x211)],_0xeb649d=_0x5dedd8[_0x1ee4cb(0x17e)](_0x5c190b,_0x26e67f[_0x1ee4cb(0x2c4)]),_0x47e432=_0x5c190b===_0x26e67f[_0x1ee4cb(0x1a0)],_0x19ccb7=_0x5c190b===_0x26e67f[_0x1ee4cb(0x1f5)],_0x27ddf5=_0x5c190b===_0x26e67f[_0x1ee4cb(0x273)],_0x3d7dbe=_0x5c190b===_0x26e67f[_0x1ee4cb(0x2cd)],_0x37dc35=_0x5a38e7(_0x5c190b,_0x4ed18f['GeneralSeries'])&&!_0xeb649d&&!_0x27ddf5,_0xc34005=va(_0x5c190b,_0x5c3e50);return _0x3067ce(_0xf7e9d,{'value':_0x27c2c0,'onChange':_0x1f3b74,'children':[_0xe7503a($,{'id':_0x39a6c4[_0x1ee4cb(0x135)],'label':_0x5c3e50['t'](_0x1ee4cb(0x1d2)),'children':_0xe7503a(_0x36e959,{'defaultValues':Q[_0x1ee4cb(0x393)]})}),_0xe7503a($,{'id':_0x39a6c4[_0x1ee4cb(0x332)],'label':_0x5c3e50['t'](_0x1ee4cb(0x398)),'children':_0xe7503a(_0x477bac,{'commitMode':_0x1ee4cb(0x277),'defaultValues':Q[_0x1ee4cb(0x2e2)]})}),_0xe7503a(_0x3d51fa,{'section':_0x1ee4cb(0x150)}),_0x37dc35&&_0xe7503a($,{'id':_0x39a6c4[_0x1ee4cb(0x31b)],'label':_0x5c3e50['t'](_0x1ee4cb(0x2bd)),'children':_0xe7503a(_0x44dd07,{'defaultValues':Q[_0x1ee4cb(0x33d)],'NumberFormatField':_0xc1dc99})}),_0x19ccb7&&_0xe7503a($,{'id':_0x39a6c4['WaterfallSeries'],'label':_0x5c3e50['t'](_0x1ee4cb(0x1a1)),'children':_0xe7503a(_0x350f8c,{'defaultValues':Q[_0x1ee4cb(0x258)],'getDefaultBucketName':({seriesName:_0x408806,target:_0x50df30})=>_0x50df30===_0x49880d[_0x1ee4cb(0x169)]?_0x5c3e50['t'](_0x1ee4cb(0x39c)):_0x408806?_0x408806+'-('+_0x5c3e50['t']('bases-dashboard-ui.chart.'+(_0x50df30===_0x49880d[_0x1ee4cb(0x12c)]?_0x1ee4cb(0x16f):'waterfall.negative'))+')':'','NumberFormatField':_0xc1dc99})}),_0x27ddf5&&_0x3067ce(_0x10fa69,{'children':[_0xe7503a($,{'id':_0x39a6c4[_0x1ee4cb(0x222)],'label':_0x5c3e50['t']('bases-dashboard-ui.chart.section.paretoBar'),'children':_0xe7503a(_0x133228,{'defaultValues':Q[_0x1ee4cb(0x435)],'NumberFormatField':_0xc1dc99,'showDataPointEditor':!0x0,'target':_0x1ee4cb(0x362)})}),_0xe7503a($,{'id':_0x39a6c4['ParetoLineSeries'],'label':_0x5c3e50['t'](_0x1ee4cb(0x13f)),'children':_0xe7503a(_0x133228,{'defaultValues':Q[_0x1ee4cb(0x435)],'NumberFormatField':_0xc1dc99,'showDataPointEditor':!0x1,'target':_0x1ee4cb(0x3f9)})})]}),_0x988fec&&_0xe7503a($,{'id':_0x39a6c4[_0x1ee4cb(0x19a)],'label':_0x5c3e50['t']('bases-dashboard-ui.chart.section.pie'),'children':_0xe7503a(_0x2d8742,{'defaultValues':Q[_0x1ee4cb(0x2ce)],'NumberFormatField':_0xc1dc99})}),_0x3853f7&&_0xe7503a($,{'id':_0x39a6c4[_0x1ee4cb(0x464)],'label':_0x5c3e50['t'](_0x1ee4cb(0x1c5)),'children':_0xe7503a(_0x38fcfb,{'defaultValues':Q[_0x1ee4cb(0x1ea)]})}),_0x589721&&_0xe7503a($,{'id':_0x39a6c4[_0x1ee4cb(0x1b2)],'label':_0x5c3e50['t']('bases-dashboard-ui.chart.section.radar'),'children':_0xe7503a(_0x4acb7b,{'defaultValues':Q[_0x1ee4cb(0x1e3)]})}),_0x3e444f&&_0xe7503a($,{'id':_0x39a6c4['Funnel'],'label':_0x5c3e50['t'](_0x1ee4cb(0x21f)),'children':_0xe7503a(_0x2487c8,{'defaultValues':Q[_0x1ee4cb(0x1db)],'gapControl':_0x1ee4cb(0x256)})}),_0x3d7dbe&&_0xe7503a($,{'id':_0x39a6c4[_0x1ee4cb(0x2cd)],'label':_0x5c3e50['t'](_0x1ee4cb(0x328)),'children':_0xe7503a(_0xa88506,{'defaultValues':Q[_0x1ee4cb(0x238)]})}),_0x47e432&&_0xe7503a($,{'id':_0x39a6c4[_0x1ee4cb(0x1a0)],'label':_0x5c3e50['t'](_0x1ee4cb(0x478)),'children':_0xe7503a(_0x347a14,{'defaultValues':Q[_0x1ee4cb(0x459)]})}),_0xf7387b(_0x5c190b)&&_0xe7503a($,{'id':_0x39a6c4['LineAndArea'],'label':_0x5c3e50['t'](_0x5dedd8[_0x1ee4cb(0x17e)](_0x5c190b,_0x26e67f[_0x1ee4cb(0x3f2)])?_0x1ee4cb(0x363):_0x1ee4cb(0x1d0)),'children':_0xe7503a(_0x1feabd,{'defaultValues':Q[_0x1ee4cb(0x140)],'lineStyleControl':_0x1ee4cb(0x28a)})}),_0x5a38e7(_0x5c190b,_0x4ed18f['Legend'])&&_0xe7503a($,{'id':_0x39a6c4['Legend'],'label':_0x5c3e50['t'](_0x1ee4cb(0x374)),'children':_0xe7503a(_0x3a58c8,{'defaultValues':Q[_0x1ee4cb(0x3c1)]})}),_0x5a38e7(_0x5c190b,_0x4ed18f[_0x1ee4cb(0x372)])&&_0x3067ce(_0x10fa69,{'children':[_0xe7503a($,{'id':_0x39a6c4[_0x1ee4cb(0x468)],'label':_0x5c3e50['t'](_0x1ee4cb(0x394)),'children':_0xe7503a(_0x2f8b33,{'axis':'x','defaultValues':Q[_0x1ee4cb(0x3ef)],'NumberFormatField':_0xc1dc99})}),_0xe7503a($,{'id':_0x39a6c4[_0x1ee4cb(0x3c7)],'label':_0x5c3e50['t'](_0x1ee4cb(0x458)),'children':_0xe7503a(_0x2f8b33,{'axis':'y','defaultValues':Q['axis'],'NumberFormatField':_0xc1dc99})}),_0xe7503a(_0x3d51fa,{'section':'depthAxis'}),_0x7cdb64&&_0xe7503a($,{'id':_0x39a6c4['RightVerticalAxis'],'label':_0x5c3e50['t'](_0x1ee4cb(0x2ee)),'children':_0xe7503a(_0x2f8b33,{'axis':_0x1ee4cb(0x2dd),'defaultValues':Q[_0x1ee4cb(0x3ef)],'NumberFormatField':_0xc1dc99})}),_0xe7503a($,{'id':_0x39a6c4[_0x1ee4cb(0x415)],'label':_0x5c3e50['t']('bases-dashboard-ui.chart.section.gridlinesAndTicks'),'children':_0xe7503a(_0x3e0c2c,{'defaultValues':Q[_0x1ee4cb(0x3ef)]})})]}),_0x5a38e7(_0x5c190b,_0x4ed18f[_0x1ee4cb(0x287)])&&_0xe7503a($,{'id':_0x39a6c4[_0x1ee4cb(0x287)],'label':_0x5c3e50['t'](_0x1ee4cb(0x47a)),'children':_0xe7503a(_0x53b526,{'defaultValues':Q[_0x1ee4cb(0x2d8)]})}),_0x3ca261(_0x5c190b)&&_0xe7503a($,{'id':_0x39a6c4[_0x1ee4cb(0x3e2)],'label':_0x5c3e50['t'](_0x1ee4cb(0x195)),'children':_0xe7503a(_0x59bf12,{'defaultValues':Q['trendline']})}),_0xc34005&&_0xe7503a($,{'id':_0xc34005['id'],'label':_0xc34005[_0x1ee4cb(0x3c0)],'children':_0xe7503a(_0x2529ec,{})})]});}function va(_0xc65543,_0x23a59f){const _0x43cf4c=_0x51bd0c;let _0x1c1dfa={[_0x26e67f[_0x43cf4c(0x437)]]:{'id':_0x39a6c4[_0x43cf4c(0x437)],'localeKey':_0x43cf4c(0x333)},[_0x26e67f['Histogram']]:{'id':_0x39a6c4['Histogram'],'localeKey':'bases-dashboard-ui.chart.section.histogram'},[_0x26e67f[_0x43cf4c(0x285)]]:{'id':_0x39a6c4['Treemap'],'localeKey':_0x43cf4c(0x302)},[_0x26e67f[_0x43cf4c(0x252)]]:{'id':_0x39a6c4['Sunburst'],'localeKey':_0x43cf4c(0x424)},[_0x26e67f[_0x43cf4c(0x2cb)]]:{'id':_0x39a6c4['Gauge'],'localeKey':_0x43cf4c(0x376)},[_0x26e67f[_0x43cf4c(0x360)]]:{'id':_0x39a6c4[_0x43cf4c(0x360)],'localeKey':_0x43cf4c(0x25c)}}[_0xc65543];return _0x1c1dfa?{'id':_0x1c1dfa['id'],'label':_0x23a59f['t'](_0x1c1dfa[_0x43cf4c(0x40f)])}:null;}function ya(_0x26e26f){const _0x28c33e=_0x51bd0c;return _0x28c33e(0x3a7)+_0x26e26f;}function ba({onChange:_0x30262a,onEditData:_0x4e4290,runtime:_0x4724a7,sourceChart:_0xec7165,sourceName:_0x432baa,widget:_0x5aba58}){const _0x3a8849=_0x51bd0c;let _0x375062=_0x59ceb1(qr),_0x41207a=_0x59ceb1(_0x3e9ffe),[_0x151abc,_0x271c13]=_0x446379(_0xd7f52a[_0x3a8849(0x31d)]),_0x245395=_0x5aba58[_0x3a8849(0x368)]??_0xec7165,_0x272e31=_0x592e4f(()=>new _0x59650f(_0x4724a7['model'],{'commit':_0x49ed97=>{const _0x39d8d9=_0x3a8849;var _0x810ccf;let _0x691771=_0x4724a7[_0x39d8d9(0x2be)],_0x4a0c52=_0x33ebeb(_0x49ed97,{'series':(_0x810ccf=_0x691771[_0x39d8d9(0x18b)])==null?void 0x0:_0x810ccf[_0x39d8d9(0x33d)],'currentChartType':_0x691771[_0x39d8d9(0x44b)],'currentStyle':_0x691771[_0x39d8d9(0x393)],'currentContext':_0x691771[_0x39d8d9(0x384)],'currentDataAggregation':_0x691771['dataAggregation']});_0x30262a({..._0x5aba58,'chart':ha(_0x245395,_0x4a0c52)})[_0x39d8d9(0x18c)](()=>void 0x0);}}),[_0x245395,_0x30262a,_0x4724a7,_0x5aba58]),_0x233747=_0x592e4f(()=>_0x5ef485(_0x2a4d2b['map'](_0x163735=>({..._0x163735,'label':_0x41207a['t'](xa(_0x163735[_0x3a8849(0x212)]))}))),[_0x41207a]);return _0xe7503a(_0x1b7f92,{'chartUIService':_0x375062,'hostAdapter':_0x272e31,'children':_0x3067ce(_0x3a8849(0x1fb),{'data-dashboard-chart-inspector':!0x0,'className':_0x3a8849(0x3a9),'children':[_0xe7503a(_0x331878,{'ariaLabel':_0x41207a['t'](_0x3a8849(0x254)),'className':_0x3a8849(0x3f1),'items':[{'label':_0x41207a['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0x3a8849(0x43a),'value':_0xd7f52a[_0x3a8849(0x31d)]},{'label':_0x41207a['t'](_0x3a8849(0x281)),'panelId':'dashboard-chart-style','value':_0xd7f52a[_0x3a8849(0x366)]}],'value':_0x151abc,'onChange':_0x271c13}),_0x151abc===_0xd7f52a[_0x3a8849(0x31d)]?_0xe7503a(_0x38b71a,{'id':_0x3a8849(0x43a),'label':_0x41207a['t'](_0x3a8849(0x3d0)),'children':_0x3067ce('div',{'className':_0x3a8849(0x227),'children':[_0xe7503a(_0x164a8c,{'options':_0x233747}),_0xe7503a(_0xedfe4a,{}),_0xe7503a(_0x4034d5,{}),_0xe7503a(ga,{}),_0xe7503a(_0x1a336c,{}),_0x3067ce(_0x3a8849(0x1fb),{'children':[_0xe7503a(_0x23b11e,{'title':_0x41207a['t'](_0x3a8849(0x185))}),_0xe7503a(_0x177173,{'disabled':!0x0,'value':_0x432baa}),_0xe7503a(_0x2d5ef7,{'className':_0x3a8849(0x3d9),'onClick':_0x4e4290,'children':_0x41207a['t'](_0x3a8849(0x289))})]})]})}):_0xe7503a(_0x38b71a,{'id':_0x3a8849(0x137),'label':_0x41207a['t'](_0x3a8849(0x281)),'children':_0xe7503a(_a,{})})]})});}function xa(_0x3f971f){return'bases-dashboard-ui.chart.chartTypes.'+_0x3f971f;}const Sa=[_0x51bd0c(0x148),_0x51bd0c(0x380),'percent',_0x51bd0c(0x38d),'grouped','compact'];function Ca({base:_0x166068,onChange:_0x27f2cf,onSelectBackgroundImage:_0x5ef7b2,widget:_0x34c356}){const _0x401866=_0x51bd0c;var _0x1b0017;let _0x3e49c9=_0x59ceb1(_0x3e9ffe),_0x15d5d6=_0x59ceb1(_0x445d1e),_0x302c82=_0x50b983(()=>_0x15d5d6[_0x401866(0x329)],_0x15d5d6[_0x401866(0x2f8)](),!0x1,[_0x15d5d6]),_0x5a9386=_0x50b983(()=>_0x15d5d6['darkMode$'],_0x15d5d6['darkMode'],!0x1,[_0x15d5d6]),[_0x379474,_0x5a38d8]=_0x446379(_0x401866(0x399)),[_0x287769,_0x249efc]=_0x446379(!0x1),_0x8050f2=Cr(_0x34c356),_0x12a258=_0x166068[_0x401866(0x1f8)]()[_0x401866(0x487)][_0x34c356['tableId']],_0x56b20f=_0x12a258==null?void 0x0:_0x12a258[_0x401866(0x411)][_0x401866(0x142)](_0x55aab3=>_0x12a258['views'][_0x55aab3]),_0x3c4572=_0x56b20f?_0x12a258==null?void 0x0:_0x12a258[_0x401866(0x27f)][_0x56b20f]:void 0x0,_0x2c5ba1=_0x12a258&&_0x3c4572?_0x1012bd(_0x166068[_0x401866(0x1f8)](),_0x12a258,_0x3c4572)[_0x401866(0x259)](_0x528854=>({..._0x528854,'current':!0x1})):[],_0x236ec8=((_0x1b0017=_0x34c356[_0x401866(0x346)]['formulaBinding'])==null?void 0x0:_0x1b0017['formula'])??'',_0x3adcf6=_0x4f683b=>_0x27f2cf(wr(_0x34c356,_0x4f683b))[_0x401866(0x18c)](()=>void 0x0),_0x5cb809=_0x239da9=>_0x27f2cf({..._0x34c356,'description':_0x239da9})[_0x401866(0x18c)](()=>void 0x0);return _0x3067ce('div',{'data-dashboard-formula-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0xe7503a(_0x16aea6,{'className':'univer-m-3','items':[{'value':_0x401866(0x399),'label':_0x3e49c9['t']('bases-dashboard-ui.dashboardInspector.data')},{'value':_0x401866(0x393),'label':_0x3e49c9['t'](_0x401866(0x39a))}],'value':_0x379474,'onChange':_0x5a38d8}),_0xe7503a(_0x401866(0x1fb),{'className':_0x401866(0x13e),'children':_0x379474===_0x401866(0x399)?_0x3067ce(_0x401866(0x1fb),{'className':'univer-grid\x20univer-gap-4','children':[_0xe7503a(wa,{'label':_0x3e49c9['t'](_0x401866(0x2a2)),'children':_0xe7503a(_0x177173,{'value':_0x34c356['description']??_0x34c356['title']??'','onChange':_0x5cb809,'onBlur':_0x4f57c1=>_0x5cb809(_0x4f57c1[_0x401866(0x367)][_0x401866(0x303)])})}),_0xe7503a(wa,{'label':_0x3e49c9['t'](_0x401866(0x185)),'children':_0xe7503a(_0x177173,{'disabled':!0x0,'value':(_0x12a258==null?void 0x0:_0x12a258['name'])??_0x3e49c9['t'](_0x401866(0x2ef))})}),_0x3067ce(wa,{'label':_0x3e49c9['t'](_0x401866(0x386)),'children':[_0xe7503a(_0x177173,{'disabled':!0x0,'value':_0x4c4798(_0x236ec8,_0x2c5ba1)}),_0xe7503a(_0x2d5ef7,{'className':_0x401866(0x3d9),'onClick':()=>_0x249efc(!0x0),'children':_0x3e49c9['t'](_0x401866(0x2bb))})]})]}):_0x3067ce('div',{'className':_0x401866(0x269),'children':[_0xe7503a(_0x35e2b4,{'emptyLabel':_0x3e49c9['t'](_0x401866(0x43e)),'label':_0x3e49c9['t'](_0x401866(0x43e)),'pickerFallbackValue':_0x5a9386?_0x302c82[_0x401866(0x19d)][0x384]:_0x302c82[_0x401866(0x19d)][0x0],'resetLabel':_0x3e49c9['t'](_0x401866(0x1cb)),'value':_0x8050f2[_0x401866(0x17f)]??null,'onChange':_0x5ce9de=>_0x3adcf6({'backgroundColor':_0x5ce9de??void 0x0})}),_0x3067ce(wa,{'label':_0x3e49c9['t'](_0x401866(0x3e5)),'children':[_0x3067ce(_0x401866(0x1fb),{'className':_0x401866(0x15c),'children':[_0x3067ce(_0x2d5ef7,{'className':'univer-flex-1','onClick':()=>{const _0x415738=_0x401866;_0x5ef7b2()['then'](_0x4c343a=>{const _0x32bd90=_0x30a0;if(_0x4c343a){var _0x545d96;return _0x3adcf6({'backgroundImage':{..._0x4c343a,'fit':((_0x545d96=_0x8050f2[_0x32bd90(0x375)])==null?void 0x0:_0x545d96[_0x32bd90(0x446)])??_0x32bd90(0x1c6)}});}})[_0x415738(0x18c)](()=>void 0x0);},'children':[_0xe7503a(_0x313c06,{}),_0x8050f2[_0x401866(0x375)]?_0x3e49c9['t']('bases-dashboard-ui.dashboardInspector.replaceImage'):_0x3e49c9['t'](_0x401866(0x18d))]}),_0x8050f2[_0x401866(0x375)]&&_0xe7503a(_0x2d5ef7,{'aria-label':_0x3e49c9['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x3e49c9['t'](_0x401866(0x35b)),'onClick':()=>_0x3adcf6({'backgroundImage':void 0x0}),'children':_0xe7503a(_0x9b7646,{})})]}),_0x8050f2[_0x401866(0x375)]&&_0xe7503a(_0x16aea6,{'className':_0x401866(0x1ab),'items':[{'value':'cover','label':_0x3e49c9['t'](_0x401866(0x2d4))},{'value':'contain','label':_0x3e49c9['t'](_0x401866(0x1b0))}],'value':_0x8050f2[_0x401866(0x375)][_0x401866(0x446)],'onChange':_0x288cd3=>_0x3adcf6({'backgroundImage':_0x8050f2[_0x401866(0x375)]?{..._0x8050f2[_0x401866(0x375)],'fit':_0x288cd3}:void 0x0})})]}),_0xe7503a(_0x35e2b4,{'emptyLabel':_0x3e49c9['t'](_0x401866(0x28d)),'label':_0x3e49c9['t'](_0x401866(0x28d)),'pickerFallbackValue':_0x5a9386?_0x302c82[_0x401866(0x19d)][0x32]:_0x302c82['gray'][0x3e8],'resetLabel':_0x3e49c9['t'](_0x401866(0x1cb)),'value':_0x8050f2[_0x401866(0x40a)]??null,'onChange':_0x4c8152=>_0x3adcf6({'textColor':_0x4c8152??void 0x0})}),_0xe7503a(wa,{'label':_0x3e49c9['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0xe7503a(_0x16aea6,{'items':[{'value':_0x401866(0x489),'label':_0x3e49c9['t'](_0x401866(0x1fd))},{'value':_0x401866(0x291),'label':_0x3e49c9['t'](_0x401866(0x1a3))},{'value':_0x401866(0x1b8),'label':_0x3e49c9['t'](_0x401866(0x1d3))}],'value':_0x8050f2[_0x401866(0x1b4)],'onChange':_0x30b45a=>_0x3adcf6({'alignment':_0x30b45a})})}),_0x3067ce(wa,{'label':_0x3e49c9['t']('bases-dashboard-ui.dashboardInspector.textSize'),'children':[_0xe7503a(_0x16aea6,{'items':[{'value':_0x401866(0x2e5),'label':_0x3e49c9['t'](_0x401866(0x357))},{'value':_0x401866(0x203),'label':_0x3e49c9['t'](_0x401866(0x44f))}],'value':_0x8050f2['fontSizeMode'],'onChange':_0x1e1419=>_0x3adcf6({'fontSizeMode':_0x1e1419})}),_0x8050f2[_0x401866(0x15d)]==='custom'&&_0xe7503a(_0x1ccd7d,{'className':'univer-mt-2','min':0xc,'max':0x78,'value':_0x8050f2[_0x401866(0x16b)],'onChange':_0x436464=>_0x3adcf6({'fontSize':_0x436464??0x28,'fontSizeMode':_0x401866(0x203)})})]}),_0xe7503a(wa,{'label':_0x3e49c9['t']('bases-dashboard-ui.dashboardInspector.numberFormat'),'children':_0xe7503a(_0x35cb89,{'value':_0x8050f2[_0x401866(0x33a)],'options':[{'value':_0x401866(0x148),'label':_0x3e49c9['t'](_0x401866(0x28e))},{'value':_0x401866(0x380),'label':_0x3e49c9['t'](_0x401866(0x20b))},{'value':_0x401866(0x48c),'label':_0x3e49c9['t'](_0x401866(0x454))},{'value':'currency','label':_0x3e49c9['t'](_0x401866(0x3fa))},{'value':_0x401866(0x184),'label':_0x3e49c9['t'](_0x401866(0x47d))},{'value':'compact','label':_0x3e49c9['t'](_0x401866(0x449))}],'onChange':_0x5c13f3=>{let _0x42a658=Sa['find'](_0x12fdb3=>_0x12fdb3===_0x5c13f3);_0x42a658&&_0x3adcf6({'numberFormat':_0x42a658});}})}),_0x8050f2[_0x401866(0x33a)]===_0x401866(0x38d)&&_0xe7503a(wa,{'label':_0x3e49c9['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0xe7503a(_0x177173,{'value':_0x8050f2[_0x401866(0x38d)],'onChange':_0x53f285=>_0x3adcf6({'currency':_0x53f285[_0x401866(0x42d)](0x0,0x3)['toUpperCase']()})})}),_0x8050f2[_0x401866(0x33a)]!==_0x401866(0x148)&&_0xe7503a(wa,{'label':_0x3e49c9['t'](_0x401866(0x186)),'children':_0xe7503a(_0x1ccd7d,{'min':0x0,'max':0x8,'value':_0x8050f2[_0x401866(0x2e0)],'onChange':_0x5403e3=>_0x3adcf6({'decimalPlaces':_0x5403e3??0x0})})})]})}),_0x287769&&_0xe7503a(_0x1166cb,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0xe7503a(_0x3ee07b,{'tables':_0x2c5ba1,'formula':_0x4c4798(_0x236ec8,_0x2c5ba1),'onCancel':()=>_0x249efc(!0x1),'onSave':_0x1e97c4=>{const _0x375828=_0x401866;let _0x4bc227=_0x34c356[_0x375828(0x346)][_0x375828(0x42c)]??{'formula':''};return _0x27f2cf({..._0x34c356,'shapeData':{..._0x34c356['shapeData'],'formulaBinding':{..._0x4bc227,'formula':_0x508683(_0x1e97c4,_0x2c5ba1)}}})[_0x375828(0x439)](()=>_0x249efc(!0x1))[_0x375828(0x18c)](()=>void 0x0);}})})]});}function wa({children:_0x208e1a,label:_0x315896}){const _0x5608de=_0x51bd0c;return _0x3067ce('div',{'role':_0x5608de(0x3e8),'aria-label':_0x315896,'className':_0x5608de(0x15a),'children':[_0xe7503a('span',{'children':_0x315896}),_0x208e1a]});}const Ta={[_0x189a6d['IS']]:_0x51bd0c(0x225),[_0x189a6d['IS_NOT']]:_0x51bd0c(0x296),[_0x189a6d['CONTAINS']]:_0x51bd0c(0x141),[_0x189a6d['NOT_CONTAINS']]:_0x51bd0c(0x27b),[_0x189a6d['IS_EMPTY']]:'bases-dashboard-ui.operators.isEmpty',[_0x189a6d['IS_NOT_EMPTY']]:_0x51bd0c(0x16a),[_0x189a6d[_0x51bd0c(0x417)]]:_0x51bd0c(0x24a),[_0x189a6d['GREATER_THAN_OR_EQUAL']]:_0x51bd0c(0x213),[_0x189a6d[_0x51bd0c(0x438)]]:_0x51bd0c(0x486),[_0x189a6d[_0x51bd0c(0x343)]]:'bases-dashboard-ui.operators.lessThanOrEqual',[_0x189a6d['BEFORE']]:_0x51bd0c(0x353),[_0x189a6d[_0x51bd0c(0x158)]]:_0x51bd0c(0x2ec)};function Ea({disabled:_0x44129a,fields:_0x3d3e08,filter:_0x359be6,onChange:_0x34846a}){const _0x430f5a=_0x51bd0c;let _0x16ece5=_0x59ceb1(_0x3e9ffe),_0x49111a=(_0x359be6==null?void 0x0:_0x359be6['conditions'])??[];return _0x49111a[_0x430f5a(0x220)]?_0xe7503a(_0x430f5a(0x1fb),{'className':'univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','children':_0x49111a[_0x430f5a(0x259)]((_0x4f115d,_0x2c09b0)=>{const _0x2fbbba=_0x430f5a;let _0x40f81b=_0x3d3e08[_0x2fbbba(0x142)](_0x541a6d=>_0x541a6d['id']===_0x4f115d[_0x2fbbba(0x418)]);return _0x3067ce(_0x2fbbba(0x1fb),{'className':_0x2fbbba(0x48e),'children':[_0x3067ce('div',{'className':'univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','children':[_0xe7503a('span',{'className':_0x2fbbba(0x2fe),'children':(_0x40f81b==null?void 0x0:_0x40f81b['name'])??_0x4f115d[_0x2fbbba(0x418)]}),_0xe7503a(_0x2fbbba(0x1b9),{'className':_0x2fbbba(0x36e),'children':_0x16ece5['t'](Ta[_0x4f115d[_0x2fbbba(0x29d)]])})]}),Pa(_0x4f115d[_0x2fbbba(0x29d)])&&_0xe7503a(Oa,{'disabled':_0x44129a,'field':_0x40f81b,'value':_0x4f115d[_0x2fbbba(0x157)],'onChange':_0x2e5070=>_0x34846a(ja(_0x359be6,_0x2c09b0,{'operand':_0x2e5070}))})]},La(_0x49111a,_0x4f115d,_0x2c09b0));})}):_0x3067ce(_0x430f5a(0x1fb),{'className':_0x430f5a(0x429),'children':[_0xe7503a(_0x4d4214,{'className':_0x430f5a(0x41c)}),_0xe7503a(_0x430f5a(0x1b9),{'className':_0x430f5a(0x460),'children':_0x16ece5['t'](_0x430f5a(0x2cf))})]});}function Da({fields:_0x1c116b,filter:_0x4cb37b,onChange:_0x12a671,onClear:_0x4206db}){const _0x3fcb4f=_0x51bd0c;let _0x537a67=_0x59ceb1(_0x3e9ffe),_0x491cd9=(_0x4cb37b==null?void 0x0:_0x4cb37b[_0x3fcb4f(0x36f)])??[];return _0x3067ce(_0x3fcb4f(0x1fb),{'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':[_0x491cd9['map']((_0x300afe,_0x540ad2)=>{const _0x3fc4aa=_0x3fcb4f;let _0xc0c53d=_0x1c116b[_0x3fc4aa(0x142)](_0x5b8f27=>_0x5b8f27['id']===_0x300afe['fieldId'])??_0x1c116b[0x0],_0x2ac7fd=Ma(_0xc0c53d);return _0x3067ce(_0x3fc4aa(0x3e0),{'className':_0x3fc4aa(0x3ed),'children':[_0x3067ce(_0x3fc4aa(0x1fb),{'className':_0x3fc4aa(0x217),'children':[_0xe7503a(_0x35cb89,{'value':_0x300afe[_0x3fc4aa(0x418)],'options':_0x1c116b[_0x3fc4aa(0x259)](_0x3ddd2c=>({'value':_0x3ddd2c['id'],'label':_0x3ddd2c['name']})),'onChange':_0xacf963=>{const _0x5e8aab=_0x3fc4aa;let _0x332520=_0x1c116b[_0x5e8aab(0x142)](_0x397a26=>_0x397a26['id']===_0xacf963);if(!_0x332520)return;let _0x3993c7=Ma(_0x332520)[0x0];_0x12a671(ja(_0x4cb37b,_0x540ad2,Aa(_0x332520,_0x3993c7)));}}),_0xe7503a(_0x2d5ef7,{'type':_0x3fc4aa(0x41e),'variant':_0x3fc4aa(0x1bf),'aria-label':_0x537a67['t'](_0x3fc4aa(0x229)),'className':'univer-size-8\x20univer-p-0\x20univer-text-red-500','onClick':()=>_0x12a671(ka(_0x4cb37b,_0x491cd9[_0x3fc4aa(0x1ff)]((_0x97c916,_0x2b52b5)=>_0x2b52b5!==_0x540ad2))),'children':_0xe7503a(_0x1017fb,{})})]}),_0xe7503a(_0x35cb89,{'value':_0x300afe[_0x3fc4aa(0x29d)],'options':_0x2ac7fd['map'](_0x36f1aa=>({'value':_0x36f1aa,'label':_0x537a67['t'](Ta[_0x36f1aa])})),'onChange':_0x1c391e=>{const _0x3689d3=_0x3fc4aa;let _0x45987e=_0x2ac7fd[_0x3689d3(0x142)](_0x23ddee=>_0x23ddee===_0x1c391e);_0x45987e&&_0x12a671(ja(_0x4cb37b,_0x540ad2,{'operator':_0x45987e,'operand':Na(_0xc0c53d)}));}}),Pa(_0x300afe[_0x3fc4aa(0x29d)])&&_0xe7503a(Oa,{'field':_0xc0c53d,'value':_0x300afe['operand'],'onChange':_0x14da78=>_0x12a671(ja(_0x4cb37b,_0x540ad2,{'operand':_0x14da78}))})]},La(_0x491cd9,_0x300afe,_0x540ad2));}),_0x3067ce(_0x2d5ef7,{'type':'button','variant':_0x3fcb4f(0x1bf),'className':_0x3fcb4f(0x2a7),'disabled':!_0x1c116b[_0x3fcb4f(0x220)],'onClick':()=>{let _0x3d5148=_0x1c116b[0x0];if(!_0x3d5148)return;let _0x31782d=Ma(_0x3d5148)[0x0];_0x12a671(ka(_0x4cb37b,[..._0x491cd9,Aa(_0x3d5148,_0x31782d)]));},'children':[_0xe7503a(_0x313c06,{}),_0x537a67['t']('bases-dashboard-ui.dashboardInspector.newCondition')]}),_0x491cd9['length']>0x0&&_0xe7503a(_0x2d5ef7,{'type':_0x3fcb4f(0x41e),'variant':'text','className':'univer-w-full','onClick':_0x4206db,'children':_0x537a67['t'](_0x3fcb4f(0x45f))})]});}function Oa({disabled:_0x561b7b,field:_0x1d2304,onChange:_0x3292b9,value:_0x19e761}){const _0x44c9d7=_0x51bd0c;let _0x587088=_0x59ceb1(_0x3e9ffe),[_0x316d42,_0x4b32e1]=_0x446379({'value':_0x19e761,'text':String(_0x19e761??'')});Object['is'](_0x316d42[_0x44c9d7(0x303)],_0x19e761)||_0x4b32e1({'value':_0x19e761,'text':String(_0x19e761??'')});let _0x538490=_0x316d42['text'],_0x3247e7=_0x388597=>_0x4b32e1({'value':_0x19e761,'text':_0x388597}),_0x15f415=_0x1d2304==null?void 0x0:_0x1d2304[_0x44c9d7(0x2e3)];if(_0x15f415===_0x22c46f[_0x44c9d7(0x31c)]){let _0x390763=_0x19e761===!0x0||_0x19e761===_0x44c9d7(0x38b);return _0x3067ce(_0x2d5ef7,{'type':'button','variant':'default','disabled':_0x561b7b,'className':'univer-w-full\x20univer-justify-start','onClick':()=>_0x3292b9(!_0x390763),'children':[_0xe7503a(_0x191a88,{'checked':_0x390763,'disabled':_0x561b7b,'onChange':()=>void 0x0}),_0x390763?_0x587088['t'](_0x44c9d7(0x13b)):_0x587088['t'](_0x44c9d7(0x1e5))]});}return Ra(_0x15f415)?_0x561b7b?_0xe7503a(_0x2d5ef7,{'type':_0x44c9d7(0x41e),'variant':'default','className':'univer-w-full','disabled':!0x0,'children':_0x483f21(_0x19e761==null||_0x19e761===''?void 0x0:String(_0x19e761))[_0x44c9d7(0x477)](_0x44c9d7(0x15f))}):_0xe7503a(_0x2030e2,{'className':_0x44c9d7(0x1ee),'value':_0x483f21(_0x19e761==null||_0x19e761===''?void 0x0:String(_0x19e761))['toDate'](),'onValueChange':_0x17fc1f=>_0x3292b9(_0x483f21(_0x17fc1f)['format'](_0x44c9d7(0x15f)))}):Ba(_0x1d2304)?_0xe7503a(_0x49e2ad,{'className':_0x44c9d7(0x1ee),'disabled':_0x561b7b,'value':Array[_0x44c9d7(0x339)](_0x19e761)?_0x19e761[_0x44c9d7(0x259)](String):[],'options':Fa(_0x1d2304),'onChange':_0x3292b9}):_0x15f415===_0x22c46f[_0x44c9d7(0x2e1)]||_0x15f415===_0x22c46f[_0x44c9d7(0x1e1)]||_0x15f415===_0x22c46f[_0x44c9d7(0x473)]?_0xe7503a(_0x35cb89,{'className':_0x44c9d7(0x1ee),'disabled':_0x561b7b,'value':String(_0x19e761??''),'options':[{'value':'','label':_0x587088['t'](_0x44c9d7(0x48a))},...Fa(_0x1d2304)],'onChange':_0x3292b9}):za(_0x15f415)?_0xe7503a(_0x177173,{'className':_0x44c9d7(0x1ee),'disabled':_0x561b7b,'inputMode':_0x44c9d7(0x312),'value':_0x538490,'aria-invalid':_0x538490!==''&&!Number[_0x44c9d7(0x2d9)](Number(_0x538490)),'onChange':_0x3591c7=>{const _0xce75e8=_0x44c9d7;_0x3247e7(_0x3591c7),_0x3591c7===''?_0x3292b9(''):Number[_0xce75e8(0x2d9)](Number(_0x3591c7))&&_0x3292b9(Number(_0x3591c7));},'onBlur':()=>_0x3247e7(String(_0x19e761??''))}):_0xe7503a(_0x177173,{'disabled':_0x561b7b,'value':String(_0x19e761??''),'placeholder':_0x587088['t'](_0x44c9d7(0x165)),'onChange':_0x3292b9});}function ka(_0x5cc502,_0x3968ab){const _0x3089aa=_0x51bd0c;return{'conjunction':(_0x5cc502==null?void 0x0:_0x5cc502[_0x3089aa(0x2d2)])??_0xf66dad[_0x3089aa(0x2bc)],'conditions':_0x3968ab};}function Aa(_0xe68c51,_0x111461){return Pa(_0x111461)?{'fieldId':_0xe68c51['id'],'operator':_0x111461,'operand':Na(_0xe68c51)}:{'fieldId':_0xe68c51['id'],'operator':_0x111461};}function ja(_0x13badc,_0x1af5aa,_0xf7c095){const _0x539615=_0x51bd0c;return ka(_0x13badc,((_0x13badc==null?void 0x0:_0x13badc[_0x539615(0x36f)])??[])[_0x539615(0x259)]((_0x2a3921,_0x111333)=>_0x111333===_0x1af5aa?{..._0x2a3921,..._0xf7c095}:_0x2a3921));}function Ma(_0x1bbf79){const _0x2ef703=_0x51bd0c;let _0x5b3971=[_0x189a6d[_0x2ef703(0x41a)],_0x189a6d[_0x2ef703(0x167)]];switch(_0x1bbf79==null?void 0x0:_0x1bbf79[_0x2ef703(0x2e3)]){case _0x22c46f[_0x2ef703(0x306)]:case _0x22c46f[_0x2ef703(0x1a6)]:case _0x22c46f[_0x2ef703(0x355)]:case _0x22c46f[_0x2ef703(0x373)]:return[_0x189a6d['IS'],_0x189a6d[_0x2ef703(0x484)],_0x189a6d[_0x2ef703(0x417)],_0x189a6d[_0x2ef703(0x438)],..._0x5b3971];case _0x22c46f['Date']:case _0x22c46f['CreatedAt']:case _0x22c46f[_0x2ef703(0x218)]:return[_0x189a6d['IS'],_0x189a6d[_0x2ef703(0x484)],_0x189a6d[_0x2ef703(0x23b)],_0x189a6d[_0x2ef703(0x158)],..._0x5b3971];case _0x22c46f[_0x2ef703(0x31c)]:return[_0x189a6d['IS'],_0x189a6d[_0x2ef703(0x484)]];default:return[_0x189a6d['IS'],_0x189a6d[_0x2ef703(0x484)],_0x189a6d[_0x2ef703(0x22d)],_0x189a6d[_0x2ef703(0x427)],..._0x5b3971];}}function _0x30a0(_0x1a202b,_0x4645c2){_0x1a202b=_0x1a202b-0x128;const _0x22709d=_0x2270();let _0x30a017=_0x22709d[_0x1a202b];return _0x30a017;}function Na(_0xe5794c){const _0x1fc40f=_0x51bd0c;return _0xe5794c?_0xe5794c['type']===_0x22c46f[_0x1fc40f(0x31c)]?!0x1:Ra(_0xe5794c[_0x1fc40f(0x2e3)])?_0x483f21()[_0x1fc40f(0x477)]('YYYY-MM-DD'):Ba(_0xe5794c)?[]:'':'';}function Pa(_0x52c572){const _0x59351e=_0x51bd0c;return _0x52c572!==_0x189a6d[_0x59351e(0x41a)]&&_0x52c572!==_0x189a6d[_0x59351e(0x167)];}function Fa(_0x571101){const _0x4ae8e9=_0x51bd0c;var _0x3a7719;return(Array[_0x4ae8e9(0x339)](_0x571101==null||(_0x3a7719=_0x571101[_0x4ae8e9(0x18b)])==null?void 0x0:_0x3a7719[_0x4ae8e9(0x17b)])?_0x571101['config'][_0x4ae8e9(0x17b)]:[])['map']((_0x44f97f,_0x19ce09)=>{if(typeof _0x44f97f=='string')return{'label':_0x44f97f,'value':_0x44f97f};if(!Ia(_0x44f97f))return{'label':String(_0x19ce09+0x1),'value':String(_0x19ce09+0x1)};let _0x3ce5d3=_0x44f97f,_0x3f3104=String(_0x3ce5d3['name']??_0x3ce5d3['id']??_0x19ce09+0x1),_0x228108=String(_0x3ce5d3['id']??_0x3f3104);return{'label':_0x3f3104,'value':/^opt-\d+$/['test'](_0x228108)?_0x3f3104:_0x228108};});}function Ia(_0x447c27){return typeof _0x447c27=='object'&&!!_0x447c27;}function La(_0x50cb34,_0x27e805,_0x3f867f){const _0x60dd8c=_0x51bd0c;let _0x549ea0=JSON[_0x60dd8c(0x324)](_0x27e805);return _0x549ea0+'-'+_0x50cb34[_0x60dd8c(0x42d)](0x0,_0x3f867f)[_0x60dd8c(0x1ff)](_0x5ea6ec=>JSON[_0x60dd8c(0x324)](_0x5ea6ec)===_0x549ea0)[_0x60dd8c(0x220)];}function Ra(_0x50063e){const _0x5200be=_0x51bd0c;return _0x50063e===_0x22c46f[_0x5200be(0x3bc)]||_0x50063e===_0x22c46f['CreatedAt']||_0x50063e===_0x22c46f[_0x5200be(0x218)];}function za(_0x3f4b3e){const _0x5bd773=_0x51bd0c;return _0x3f4b3e===_0x22c46f[_0x5bd773(0x306)]||_0x3f4b3e===_0x22c46f['Currency']||_0x3f4b3e===_0x22c46f[_0x5bd773(0x355)]||_0x3f4b3e===_0x22c46f['Rating'];}function Ba(_0x409808){const _0x1ae7e5=_0x51bd0c;var _0x4a19fb;return(_0x409808==null?void 0x0:_0x409808[_0x1ae7e5(0x2e3)])===_0x22c46f[_0x1ae7e5(0x201)]||(_0x409808==null?void 0x0:_0x409808[_0x1ae7e5(0x2e3)])===_0x22c46f[_0x1ae7e5(0x1e1)]||(_0x409808==null?void 0x0:_0x409808[_0x1ae7e5(0x2e3)])===_0x22c46f[_0x1ae7e5(0x473)]&&((_0x4a19fb=_0x409808[_0x1ae7e5(0x18b)])==null?void 0x0:_0x4a19fb[_0x1ae7e5(0x1b3)])===!0x0;}function Va({base:_0x302693,chartRuntime:_0x55f623,onChange:_0x2135f8,onClose:_0x48722a,onSelectBackgroundImage:_0x3c8a3d,onSelectImage:_0x4f932d,unitId:_0x3f0284,widget:_0x3a62a3}){const _0x255f2e=_0x51bd0c;let _0x5585b7=_0x59ceb1(_0x19ef53),_0x5133af=_0x59ceb1(_0x3e9ffe),_0x54f6bd=_0x302693[_0x255f2e(0x1f8)](),_0x4c0370='tableId'in _0x3a62a3?_0x54f6bd[_0x255f2e(0x487)][_0x3a62a3[_0x255f2e(0x46b)]]:void 0x0,_0x1d5882=_0x3a62a3[_0x255f2e(0x2e3)]===_0x9d376a[_0x255f2e(0x475)]?_0x4c0370==null?void 0x0:_0x4c0370[_0x255f2e(0x27f)][_0x3a62a3[_0x255f2e(0x1d5)]]:void 0x0,_0x159d04=_0x5133af['t'](Ja(_0x3a62a3));return _0x3067ce(_0x255f2e(0x2c8),{'data-dashboard-inspector':!0x0,'className':_0x255f2e(0x2f6),'children':[_0x3067ce('header',{'className':_0x255f2e(0x24b),'children':[_0xe7503a('h3',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0x159d04}),_0xe7503a(_0x2d5ef7,{'type':_0x255f2e(0x41e),'size':_0x255f2e(0x47e),'variant':_0x255f2e(0x1bf),'aria-label':_0x5133af['t'](_0x255f2e(0x25b)),'onClick':_0x48722a,'children':_0xe7503a(_0x1017fb,{})})]}),_0x3a62a3[_0x255f2e(0x2e3)]===_0x9d376a['PivotChart']&&(qa(_0x1d5882)&&_0x55f623?_0xe7503a(ba,{'runtime':_0x55f623,'sourceChart':_0x1d5882[_0x255f2e(0x18b)][_0x255f2e(0x368)],'sourceName':((_0x4c0370==null?void 0x0:_0x4c0370[_0x255f2e(0x136)])??'')+_0x255f2e(0x3de)+_0x1d5882[_0x255f2e(0x136)],'widget':_0x3a62a3,'onChange':_0x2135f8,'onEditData':()=>{const _0x4cec64=_0x255f2e;_0x5585b7[_0x4cec64(0x3b8)](_0x426ed6['id'],{'unitId':_0x3f0284,'tableId':_0x3a62a3[_0x4cec64(0x46b)],'viewId':_0x3a62a3[_0x4cec64(0x1d5)]})[_0x4cec64(0x18c)](()=>void 0x0);}}):_0xe7503a(Ga,{'message':qa(_0x1d5882)?_0x5133af['t'](_0x255f2e(0x14e)):_0x5133af['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})),_0x3a62a3[_0x255f2e(0x2e3)]===_0x9d376a[_0x255f2e(0x159)]&&_0xe7503a(Ca,{'base':_0x302693,'widget':_0x3a62a3,'onChange':_0x2135f8,'onSelectBackgroundImage':_0x3c8a3d}),_0x3a62a3[_0x255f2e(0x2e3)]===_0x9d376a['TableFilter']&&_0xe7503a(Ua,{'base':_0x302693,'onChange':_0x2135f8,'widget':_0x3a62a3}),_0x3a62a3[_0x255f2e(0x2e3)]===_0x9d376a[_0x255f2e(0x200)]&&_0xe7503a(Wa,{'onChange':_0x2135f8,'widget':_0x3a62a3}),_0x3a62a3[_0x255f2e(0x2e3)]===_0x9d376a['Image']&&_0xe7503a(Ha,{'onChange':_0x2135f8,'onSelectImage':_0x4f932d,'widget':_0x3a62a3})]});}function Ha({onChange:_0x503442,onSelectImage:_0x5c361c,widget:_0xfe5264}){const _0x803273=_0x51bd0c;let _0x4795ae=_0x59ceb1(_0x3e9ffe);return _0x3067ce('div',{'className':_0x803273(0x163),'children':[_0x3067ce(_0x2d5ef7,{'className':_0x803273(0x1ee),'onClick':()=>_0x5c361c()[_0x803273(0x439)](_0x49e59f=>_0x49e59f&&_0x503442({..._0xfe5264,'source':_0x49e59f[_0x803273(0x313)],'sourceType':_0x49e59f[_0x803273(0x401)],'alt':_0x49e59f[_0x803273(0x136)]}))[_0x803273(0x18c)](()=>void 0x0),'children':[_0xe7503a(_0x313c06,{}),_0x4795ae['t'](_0x803273(0x426))]}),_0x3067ce(_0x803273(0x3c0),{'className':_0x803273(0x15a),'children':[_0xe7503a('span',{'children':_0x4795ae['t'](_0x803273(0x3e5))}),_0xe7503a(_0x16aea6,{'items':[{'value':'cover','label':_0x4795ae['t'](_0x803273(0x2d4))},{'value':_0x803273(0x3f4),'label':_0x4795ae['t'](_0x803273(0x379))},{'value':_0x803273(0x2b8),'label':_0x4795ae['t'](_0x803273(0x2e9))}],'value':_0xfe5264[_0x803273(0x298)]??'cover','onChange':_0x431480=>_0x503442({..._0xfe5264,'displayMode':_0x431480})['catch'](()=>void 0x0)})]})]});}function Ua({base:_0xc44105,onChange:_0x3a7e72,widget:_0x3b8d3a}){const _0x38bf2d=_0x51bd0c;let _0x207ac8=_0xc44105[_0x38bf2d(0x1f8)]()[_0x38bf2d(0x487)][_0x3b8d3a[_0x38bf2d(0x46b)]],_0x882844=_0x207ac8==null?void 0x0:_0x207ac8[_0x38bf2d(0x411)][_0x38bf2d(0x142)](_0x12bcb2=>_0x207ac8[_0x38bf2d(0x27f)][_0x12bcb2]),_0x5ebef3=_0x882844?_0x207ac8==null?void 0x0:_0x207ac8[_0x38bf2d(0x27f)][_0x882844]:void 0x0,_0x19951f=_0x207ac8&&_0x5ebef3?_0x5d053c(_0x207ac8,_0x5ebef3):[];return _0xe7503a(Da,{'fields':_0x19951f,'filter':_0x3b8d3a['filter'],'onChange':_0x181c8c=>_0x3a7e72({..._0x3b8d3a,'filter':_0x181c8c})[_0x38bf2d(0x18c)](()=>void 0x0),'onClear':()=>_0x3a7e72({..._0x3b8d3a,'filter':null})['catch'](()=>void 0x0)});}function Wa({onChange:_0x2aa311,widget:_0x3dca31}){const _0x187409=_0x51bd0c;let _0x5a6bb2=_0x59ceb1(_0x3e9ffe),_0x329d15=_0x59ceb1(_0x445d1e),_0x44ee6e=_0x50b983(()=>_0x329d15[_0x187409(0x329)],_0x329d15[_0x187409(0x2f8)](),!0x1,[_0x329d15]),_0x13d76b=Hr(_0x3dca31),_0x296626=_0x362db6=>_0x2aa311({..._0x3dca31,'appearance':{..._0x13d76b,..._0x362db6}})[_0x187409(0x18c)](()=>void 0x0);return _0x3067ce('div',{'className':_0x187409(0x46a),'children':[_0xe7503a(_0x562bce,{'defaultValue':Ur(_0x3dca31[_0x187409(0x3ea)]),'rows':0x8,'onBlur':_0x1656c3=>_0x2aa311({..._0x3dca31,'document':Wr(_0x3dca31[_0x187409(0x3ea)],_0x1656c3[_0x187409(0x367)]['value'])})['catch'](()=>void 0x0)}),_0xe7503a(_0x35e2b4,{'emptyLabel':_0x5a6bb2['t'](_0x187409(0x43e)),'label':_0x5a6bb2['t'](_0x187409(0x43e)),'pickerFallbackValue':_0x44ee6e[_0x187409(0x19d)][0x0],'resetLabel':_0x5a6bb2['t'](_0x187409(0x1cb)),'value':_0x13d76b['backgroundColor']??null,'onChange':_0x1cb749=>_0x296626({'backgroundColor':_0x1cb749??void 0x0})}),_0xe7503a(_0x35e2b4,{'emptyLabel':_0x5a6bb2['t'](_0x187409(0x28d)),'label':_0x5a6bb2['t'](_0x187409(0x28d)),'pickerFallbackValue':_0x44ee6e[_0x187409(0x19d)][0x3e8],'resetLabel':_0x5a6bb2['t'](_0x187409(0x1cb)),'value':_0x13d76b[_0x187409(0x40a)]??null,'onChange':_0x4fbe87=>_0x296626({'textColor':_0x4fbe87??void 0x0})}),_0xe7503a(Ka,{'label':_0x5a6bb2['t'](_0x187409(0x32f)),'children':_0xe7503a(_0x16aea6,{'items':[{'value':_0x187409(0x489),'label':_0x5a6bb2['t'](_0x187409(0x1fd))},{'value':'center','label':_0x5a6bb2['t'](_0x187409(0x1a3))},{'value':'right','label':_0x5a6bb2['t'](_0x187409(0x1d3))}],'value':_0x13d76b['alignment'],'onChange':_0x10b03b=>_0x296626({'alignment':_0x10b03b})})}),_0x3067ce(Ka,{'label':_0x5a6bb2['t'](_0x187409(0x2e4)),'children':[_0xe7503a(_0x16aea6,{'items':[{'value':_0x187409(0x2e5),'label':_0x5a6bb2['t'](_0x187409(0x357))},{'value':_0x187409(0x203),'label':_0x5a6bb2['t'](_0x187409(0x44f))}],'value':_0x13d76b['fontSizeMode'],'onChange':_0x87c9fe=>_0x296626({'fontSizeMode':_0x87c9fe})}),_0x13d76b['fontSizeMode']===_0x187409(0x203)&&_0xe7503a(_0x1ccd7d,{'className':'univer-mt-2','min':0xa,'max':0x78,'value':_0x13d76b['fontSize'],'onChange':_0x4737e8=>_0x296626({'fontSize':_0x4737e8??0x12,'fontSizeMode':'custom'})})]})]});}function Ga({message:_0x2045c3}){return _0xe7503a('div',{'className':'univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','children':_0x2045c3});}function Ka({children:_0x5e7b04,label:_0x546e7a}){const _0x57b245=_0x51bd0c;return _0x3067ce(_0x57b245(0x1fb),{'role':_0x57b245(0x3e8),'aria-':!0x0,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0xe7503a(_0x57b245(0x1b9),{'children':_0x546e7a}),_0x5e7b04]});}function qa(_0x51ca08){const _0x4bb609=_0x51bd0c;return(_0x51ca08==null?void 0x0:_0x51ca08[_0x4bb609(0x2e3)])===_0x497849[_0x4bb609(0x1c2)]&&typeof _0x51ca08[_0x4bb609(0x18b)]=='object'&&_0x51ca08[_0x4bb609(0x18b)]!==null&&_0x4bb609(0x26c)in _0x51ca08['config']&&_0x4bb609(0x368)in _0x51ca08[_0x4bb609(0x18b)];}function Ja(_0x548727){const _0x1dd0d5=_0x51bd0c;switch(_0x548727[_0x1dd0d5(0x2e3)]){case _0x9d376a[_0x1dd0d5(0x475)]:return _0x1dd0d5(0x1f4);case _0x9d376a['TableFilter']:return _0x1dd0d5(0x2cf);case _0x9d376a['Text']:return _0x1dd0d5(0x261);case _0x9d376a[_0x1dd0d5(0x180)]:return'bases-dashboard-ui.dashboard.image';case _0x9d376a[_0x1dd0d5(0x159)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function Ya({onDelete:_0x45dbdb,onEdit:_0x39e2ba}){const _0x5cdb0f=_0x51bd0c;let _0x1f69e2=_0x59ceb1(_0x3e9ffe),_0x12d92f=_0x1f69e2['t'](_0x5cdb0f(0x14d)),_0x5833b9=_0x1f69e2['t'](_0x5cdb0f(0x2e8)),_0x252802=_0x1f69e2['t'](_0x5cdb0f(0x14b));return _0xe7503a(_0x13d257,{'items':[{'type':'item','children':_0x3067ce('span',{'className':_0x5cdb0f(0x3ff),'children':[_0xe7503a(_0x5a0d30,{'className':_0x5cdb0f(0x3ba),'aria-hidden':'true'}),_0xe7503a(_0x5cdb0f(0x1b9),{'children':_0x12d92f})]}),'onSelect':_0x39e2ba},{'type':'separator'},{'type':'item','variant':_0x5cdb0f(0x307),'children':_0x3067ce('span',{'className':_0x5cdb0f(0x3ff),'children':[_0xe7503a(_0x9b7646,{'className':'univer-size-4','aria-hidden':'true'}),_0xe7503a(_0x5cdb0f(0x1b9),{'children':_0x5833b9})]}),'onSelect':_0x45dbdb}],'children':_0xe7503a(_0x2d5ef7,{'type':_0x5cdb0f(0x41e),'size':_0x5cdb0f(0x47e),'variant':'text','title':_0x252802,'aria-label':_0x252802,'className':_0x5cdb0f(0x21e),'children':_0xe7503a(_0x5b55fe,{'className':_0x5cdb0f(0x3ba),'aria-hidden':_0x5cdb0f(0x38b)})})});}function Xa({dashboardId:_0x3d224d,presentation:_0x1b053c=!0x1,unitId:_0x4e1526}){const _0x2a2c7e=_0x51bd0c;let _0x22afd2=_0x59ceb1(_0x19ef53),_0x27ebcb=_0x59ceb1(_0x595f75),_0x48f3fa=_0x59ceb1(_0x4ae27a),_0x520ed0=_0x59ceb1(_0x490434),_0x54bf67=_0x59ceb1(_0x3e9ffe),_0x3b93e5=_0x59ceb1(_0x46b07c),_0x400768=_0x59ceb1(_0x743e43),_0x859774=_0x2c3a8a(null),[_0xb765ae,_0x11bf53]=_0x446379(!0x1),[_0x4ddd5d,_0x1f0710]=_0x446379(),[_0x472c22,_0x19048b]=_0x446379(!0x1),[_0xc51415,_0x298e81]=_0x446379(()=>new Map()),_0x440daa=_0x42d58e((_0x3c5ed2,_0x4a71e0)=>{_0x298e81(_0x59511e=>{const _0x3b37db=_0x30a0;let _0xc71fe9=new Map(_0x59511e);return _0x4a71e0?_0xc71fe9['set'](_0x3c5ed2,_0x4a71e0):_0xc71fe9[_0x3b37db(0x28f)](_0x3c5ed2),_0xc71fe9;});},[]),_0xaed4a5=_0x50b983(()=>_0x3b93e5[_0x2a2c7e(0x14a)][_0x2a2c7e(0x405)](_0xa2a9f7(()=>_0x3b93e5[_0x2a2c7e(0x1d4)](_0x4e1526,_0x3d224d))),_0x3b93e5[_0x2a2c7e(0x1d4)](_0x4e1526,_0x3d224d),!0x1,[_0x3d224d,_0x3b93e5,_0x4e1526]),_0x495a76=_0x520ed0[_0x2a2c7e(0x1de)](_0x4e1526,_0xe1c385[_0x2a2c7e(0x319)]),_0x27c85d=_0x50b983(()=>_0x400768[_0x2a2c7e(0x27a)],{'undos':0x0,'redos':0x0},!0x1,[_0x400768]),_0x425551=vr(_0x4e1526,_0x3d224d);if(_0x3dfd92(()=>{const _0x4f480e=_0x2a2c7e;_0x520ed0[_0x4f480e(0x402)](_0x4e1526),_0x520ed0[_0x4f480e(0x36d)](_0x4e1526);},[_0x520ed0,_0x4e1526]),_0x3dfd92(()=>{const _0x12d2bc=_0x2a2c7e;let _0x2c6d76=_0x859774[_0x12d2bc(0x228)],_0x4de69e=_0x2c6d76==null?void 0x0:_0x2c6d76[_0x12d2bc(0x1f3)];if(!_0x2c6d76||!_0x4de69e)return;let _0x27c998=()=>_0x19048b(_0x4de69e[_0x12d2bc(0x1e9)]===_0x4de69e[_0x12d2bc(0x483)]),_0x40353a=_0xcec74a=>{const _0x3b9cd1=_0x12d2bc;_0xcec74a[_0x3b9cd1(0x24c)]===_0x3b9cd1(0x32b)&&!_0xcec74a[_0x3b9cd1(0x2a1)]&&_0x4de69e[_0x3b9cd1(0x1e9)]===_0x4de69e['documentElement']&&_0x4de69e[_0x3b9cd1(0x3c6)]()[_0x3b9cd1(0x18c)](_0x27c998);};return _0x4de69e[_0x12d2bc(0x2eb)](_0x12d2bc(0x304),_0x27c998),_0x4de69e[_0x12d2bc(0x2eb)](_0x12d2bc(0x314),_0x40353a),()=>{const _0x1a6821=_0x12d2bc;_0x4de69e[_0x1a6821(0x176)](_0x1a6821(0x304),_0x27c998),_0x4de69e[_0x1a6821(0x176)]('keydown',_0x40353a);};},[]),!_0xaed4a5||!_0x495a76)return null;let _0x11822f=_0x385562=>_0x22afd2['executeCommand'](_0x2bce9e['id'],{'unitId':_0x4e1526,'dashboardId':_0x3d224d,'widget':_0x385562})[_0x2a2c7e(0x18c)](()=>void 0x0),_0x58821c=(_0x355372,_0x4c3a94,_0x4b1c1d)=>{const _0x596eba=_0x2a2c7e;let _0x3fc054=Math[_0x596eba(0x335)](0x0,..._0xaed4a5[_0x596eba(0x205)][_0x596eba(0x397)](_0xdb7526=>{const _0x16c892=_0x596eba;var _0x3b2427;let _0x1bb28b=(_0x3b2427=_0xaed4a5['widgets'][_0xdb7526])==null?void 0x0:_0x3b2427[_0x16c892(0x465)];return _0x1bb28b?[_0x1bb28b[_0x16c892(0x216)]+_0x1bb28b[_0x16c892(0x414)]]:[];})),_0x15f805=_0x596eba(0x443)+_0x5620a1(0x8),_0x405e4e={'column':0x0,'row':_0x3fc054,'columnSpan':_0x4c3a94,'rowSpan':_0x4b1c1d};switch(_0x355372['type']){case _0x9d376a[_0x596eba(0x475)]:return _0x11822f({..._0x355372,'id':_0x15f805,'layout':_0x405e4e});case _0x9d376a[_0x596eba(0x154)]:return _0x11822f({..._0x355372,'id':_0x15f805,'layout':_0x405e4e});case _0x9d376a['Text']:return _0x11822f({..._0x355372,'id':_0x15f805,'layout':_0x405e4e});case _0x9d376a[_0x596eba(0x180)]:return _0x11822f({..._0x355372,'id':_0x15f805,'layout':_0x405e4e});case _0x9d376a['FormulaShape']:return _0x11822f({..._0x355372,'id':_0x15f805,'layout':_0x405e4e});}},_0xe109d5=_0x495a76['getSnapshot'](),_0x5b7f45=_0xe109d5[_0x2a2c7e(0x3d4)][_0x2a2c7e(0x397)](_0x4231d6=>{const _0x5758ac=_0x2a2c7e;let _0x531267=_0xe109d5[_0x5758ac(0x487)][_0x4231d6];if(!_0x531267)return[];let _0x999083=_0x531267['viewOrder'][_0x5758ac(0x397)](_0x1e04cb=>{const _0x252d4f=_0x5758ac;let _0x5a4615=_0x531267[_0x252d4f(0x27f)][_0x1e04cb];return io(_0x5a4615)?[{'type':_0x252d4f(0x1ad),'children':_0x5a4615[_0x252d4f(0x136)],'onSelect':()=>_0x58821c({'type':_0x9d376a['PivotChart'],'tableId':_0x4231d6,'pivotViewId':_0x1e04cb,'chart':{..._0x5a4615[_0x252d4f(0x18b)]['chart']}},0x6,0xa)}]:[];});return[{'type':_0x5758ac(0x170),'children':_0x531267[_0x5758ac(0x136)],'options':[..._0x999083,..._0x999083[_0x5758ac(0x220)]?[{'type':_0x5758ac(0x2b1)}]:[],{'type':'item','children':_0x54bf67['t'](_0x5758ac(0x2cf)),'onSelect':()=>_0x58821c({'type':_0x9d376a[_0x5758ac(0x154)],'tableId':_0x4231d6,'filter':null},0x6,0x8)}]}];}),_0x52486a=[..._0x5b7f45,..._0x5b7f45[_0x2a2c7e(0x220)]?[{'type':_0x2a2c7e(0x2b1)}]:[],{'type':_0x2a2c7e(0x1ad),'children':_0x54bf67['t'](_0x2a2c7e(0x261)),'onSelect':()=>_0x58821c({'type':_0x9d376a[_0x2a2c7e(0x200)],'document':eo()},0x4,0x6)},{'type':_0x2a2c7e(0x1ad),'children':_0x54bf67['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>to(_0x27ebcb)[_0x2a2c7e(0x439)](_0x5762d5=>_0x5762d5&&_0x58821c({'type':_0x9d376a[_0x2a2c7e(0x180)],'source':_0x5762d5[_0x2a2c7e(0x313)],'sourceType':_0x5762d5['sourceType'],'alt':_0x5762d5[_0x2a2c7e(0x136)],'displayMode':'cover'},0x4,0x6))},{'type':_0x2a2c7e(0x1ad),'children':_0x54bf67['t'](_0x2a2c7e(0x18f)),'onSelect':()=>{const _0x1d359c=_0x2a2c7e;let _0x1692dd=_0xe109d5['tableOrder'][_0x1d359c(0x142)](_0x315c85=>_0xe109d5[_0x1d359c(0x487)][_0x315c85]);_0x1692dd&&_0x58821c({'type':_0x9d376a[_0x1d359c(0x159)],'tableId':_0x1692dd,'shapeType':_0x12a5a1[_0x1d359c(0x3b0)],'shapeData':_0x2775b7(),'description':_0x54bf67['t'](_0x1d359c(0x18f))},0x4,0x6);}}],_0x4d01dc=_0x4ddd5d?_0xaed4a5[_0x2a2c7e(0x3ca)][_0x4ddd5d]:void 0x0,_0x406176=async()=>{const _0x5cb155=_0x2a2c7e;let _0x5573ca=_0x859774[_0x5cb155(0x228)];if(!_0x5573ca)return;let _0x586247=_0x5573ca[_0x5cb155(0x1f3)];_0x586247[_0x5cb155(0x1e9)]===_0x586247[_0x5cb155(0x483)]?await _0x586247[_0x5cb155(0x3c6)]():await _0x586247[_0x5cb155(0x483)][_0x5cb155(0x130)]();},_0x27246a=_0x1b053c||_0x472c22,_0x25b6b3=_0x425551&&!_0x27246a;return _0x3067ce(_0x2a2c7e(0x1fb),{'ref':_0x859774,'className':_0x2a2c7e(0x44a)+(_0x472c22?_0x2a2c7e(0x2e7):'univer-relative\x20univer-z-10')+_0x2a2c7e(0x2da),'children':[!_0x27246a&&_0x3067ce(_0x2a2c7e(0x152),{'className':'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','children':[_0xe7503a(_0x548907,{'className':_0x2a2c7e(0x300)}),_0xe7503a('h2',{'className':_0x2a2c7e(0x12e),'children':_0xaed4a5[_0x2a2c7e(0x136)]}),_0xe7503a(_0x3ea620,{'target':{'unitId':_0x4e1526,'objectId':_0x562c16(_0x3d224d),'objectType':_0x5c4bf9['BaseDashboard']},'name':_0xaed4a5[_0x2a2c7e(0x136)],'commandId':_0x1b8d6f['id'],'exists':()=>!!_0x3b93e5[_0x2a2c7e(0x1d4)](_0x4e1526,_0x3d224d)},_0x4e1526+'/'+_0x3d224d),_0xe7503a(_0x3c3ee4,{'unitId':_0x4e1526}),_0xe7503a(_0x2d5ef7,{'type':_0x2a2c7e(0x41e),'size':_0x2a2c7e(0x47e),'variant':_0x2a2c7e(0x1bf),'aria-label':_0x54bf67['t'](_0x2a2c7e(0x479)),'disabled':!_0x425551||_0x27c85d[_0x2a2c7e(0x1c7)]===0x0,'onClick':()=>_0x22afd2['executeCommand'](_0x407305['id'])[_0x2a2c7e(0x18c)](()=>void 0x0),'children':_0xe7503a(_0x3b0f1b,{})}),_0xe7503a(_0x2d5ef7,{'type':_0x2a2c7e(0x41e),'size':_0x2a2c7e(0x47e),'variant':'text','aria-label':_0x54bf67['t'](_0x2a2c7e(0x44d)),'disabled':!_0x425551||_0x27c85d[_0x2a2c7e(0x3d5)]===0x0,'onClick':()=>_0x22afd2[_0x2a2c7e(0x3b8)](_0x590feb['id'])['catch'](()=>void 0x0),'children':_0xe7503a(_0x439808,{})}),_0xe7503a(_0x2d5ef7,{'type':'button','size':_0x2a2c7e(0x47e),'variant':_0x2a2c7e(0x1bf),'aria-label':_0x54bf67['t'](_0x2a2c7e(0x268)),'onClick':()=>_0x406176()[_0x2a2c7e(0x18c)](()=>void 0x0),'children':_0xe7503a(_0x34da2c,{})}),_0xe7503a(_0x13d257,{'items':_0x52486a,'children':_0x3067ce(_0x2d5ef7,{'variant':_0x2a2c7e(0x3ac),'disabled':!_0x425551,'children':[_0xe7503a(_0x313c06,{}),_0x54bf67['t'](_0x2a2c7e(0x1ed))]})})]}),_0x3067ce(_0x2a2c7e(0x1fb),{'className':_0x2a2c7e(0x2cc),'children':[_0xe7503a(_0x2a2c7e(0x1fb),{'className':_0x2a2c7e(0x2f1),'children':_0xe7503a(da,{'dashboard':_0xaed4a5,'dragLabel':_0x54bf67['t']('bases-dashboard-ui.dashboardInspector.dragWidget'),'editable':_0x25b6b3,'resizeLabel':_0x54bf67['t']('bases-dashboard-ui.dashboard.resizeWidget'),'widgetLabel':_0x51dbe2=>_0x54bf67['t'](ro(_0x51dbe2[_0x2a2c7e(0x2e3)])),'selectedWidgetId':_0x25b6b3?_0x4ddd5d:void 0x0,'onSelectWidget':_0x25b6b3?_0x14d211=>{_0x1f0710(_0x14d211),_0x14d211||_0x11bf53(!0x1);}:void 0x0,'onLayoutsCommit':_0x4290af=>{const _0x277304=_0x2a2c7e;let _0x187a23={..._0xaed4a5[_0x277304(0x3ca)]};_0x4290af[_0x277304(0x189)]((_0x50664b,_0x1ff36f)=>{let _0x2f2eaa=_0x187a23[_0x1ff36f];_0x2f2eaa&&(_0x187a23[_0x1ff36f]={..._0x2f2eaa,'layout':_0x50664b});}),_0x22afd2[_0x277304(0x3b8)](_0x5741e1['id'],{'unitId':_0x4e1526,'dashboard':{..._0xaed4a5,'widgets':_0x187a23}})['catch'](()=>void 0x0);},'renderWidget':_0x9e6ac1=>_0xe7503a(Za,{'base':_0x495a76,'dashboard':_0xaed4a5,'unitId':_0x4e1526,'widget':_0x9e6ac1,'onChange':_0x11822f,'onChartRuntimeChange':_0x440daa}),'renderWidgetActions':_0x1eb287=>_0xe7503a(Ya,{'onEdit':()=>{_0x1f0710(_0x1eb287['id']),_0x11bf53(!0x0);},'onDelete':()=>{const _0x61d553=_0x2a2c7e;_0x4ddd5d===_0x1eb287['id']&&(_0x1f0710(void 0x0),_0x11bf53(!0x1)),_0x22afd2['executeCommand'](_0x56e93a['id'],{'unitId':_0x4e1526,'dashboardId':_0x3d224d,'widgetId':_0x1eb287['id']})[_0x61d553(0x18c)](()=>void 0x0);}})})}),_0x25b6b3&&_0xb765ae&&_0x4d01dc&&_0xe7503a(Va,{'base':_0x495a76,'chartRuntime':_0xc51415[_0x2a2c7e(0x3f3)](_0x4d01dc['id']),'unitId':_0x4e1526,'widget':_0x4d01dc,'onChange':_0x11822f,'onClose':()=>_0x11bf53(!0x1),'onSelectBackgroundImage':()=>no(_0x48f3fa),'onSelectImage':()=>to(_0x27ebcb)})]})]});}function Za({base:_0x6bbba3,dashboard:_0x557210,onChange:_0xd017ba,onChartRuntimeChange:_0x47864c,unitId:_0x142e7d,widget:_0x352529}){const _0x5c7891=_0x51bd0c;let _0x2c72bc=_0x592e4f(()=>_0x557210[_0x5c7891(0x205)][_0x5c7891(0x397)](_0x241e7d=>{const _0x2e7e25=_0x5c7891;let _0x25b4aa=_0x557210['widgets'][_0x241e7d];return(_0x25b4aa==null?void 0x0:_0x25b4aa[_0x2e7e25(0x2e3)])===_0x9d376a[_0x2e7e25(0x154)]&&_0x25b4aa[_0x2e7e25(0x46b)]===(_0x2e7e25(0x46b)in _0x352529?_0x352529[_0x2e7e25(0x46b)]:'')&&_0x25b4aa[_0x2e7e25(0x1ff)]?[_0x25b4aa['filter']]:[];}),[_0x557210,_0x352529]);switch(_0x352529[_0x5c7891(0x2e3)]){case _0x9d376a[_0x5c7891(0x475)]:return _0xe7503a(zr,{'filters':_0x2c72bc,'unitId':_0x142e7d,'widget':_0x352529,'onRuntimeChange':_0x47864c});case _0x9d376a['TableFilter']:return _0xe7503a(Ea,{'fields':Qa(_0x6bbba3,_0x352529[_0x5c7891(0x46b)]),'filter':_0x352529['filter'],'onChange':_0x90454f=>_0xd017ba({..._0x352529,'filter':_0x90454f})['catch'](()=>void 0x0)});case _0x9d376a[_0x5c7891(0x200)]:return _0xe7503a(Gr,{'widget':_0x352529});case _0x9d376a[_0x5c7891(0x180)]:return _0xe7503a($a,{'widget':_0x352529});case _0x9d376a[_0x5c7891(0x159)]:return _0xe7503a(kr,{'dashboardId':_0x557210['id'],'unitId':_0x142e7d,'widget':_0x352529});}}function Qa(_0x5a5643,_0x137253){const _0x319347=_0x51bd0c;let _0x5c8dda=_0x5a5643[_0x319347(0x1f8)]()[_0x319347(0x487)][_0x137253],_0x152ecc=_0x5c8dda==null?void 0x0:_0x5c8dda[_0x319347(0x411)][_0x319347(0x142)](_0x332af1=>_0x5c8dda['views'][_0x332af1]),_0xf7f6bb=_0x152ecc?_0x5c8dda==null?void 0x0:_0x5c8dda[_0x319347(0x27f)][_0x152ecc]:void 0x0;return _0x5c8dda&&_0xf7f6bb?_0x5d053c(_0x5c8dda,_0xf7f6bb):[];}function $a({widget:_0x1dae67}){const _0x165470=_0x51bd0c;let _0x5adfd2=_0x59ceb1(_0x595f75),[_0x4c15ae,_0x557c9b]=_0x446379(_0x1dae67[_0x165470(0x401)]===_0x476f1b[_0x165470(0x39d)]?'':_0x1dae67[_0x165470(0x313)]);return _0x3dfd92(()=>{const _0x4fb8f2=_0x165470;let _0x57dd40=!0x0;return _0x5adfd2['getAttachmentUrl'](_0x1dae67[_0x4fb8f2(0x313)],_0x1dae67[_0x4fb8f2(0x401)])['then'](_0x110a67=>{_0x57dd40&&_0x557c9b(_0x110a67);})[_0x4fb8f2(0x18c)](()=>void 0x0),()=>{_0x57dd40=!0x1;};},[_0x5adfd2,_0x1dae67[_0x165470(0x313)],_0x1dae67[_0x165470(0x401)]]),_0x4c15ae?_0xe7503a('div',{'role':_0x1dae67[_0x165470(0x3f7)]?_0x165470(0x1f7):void 0x0,'aria-label':_0x1dae67[_0x165470(0x3f7)]||void 0x0,'data-dashboard-image':_0x1dae67['id'],'className':_0x165470(0x311),'style':br(_0x4c15ae,_0x1dae67[_0x165470(0x298)])}):null;}function eo(){let _0x168c46=_0x265312(new Set());return{'id':'dashboard-text-'+_0x5620a1(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x168c46}]},'documentStyle':{}};}function to(_0x57f2df){return new Promise(_0x253854=>{const _0x3e4e6a=_0x30a0;let _0xda0bf1=document[_0x3e4e6a(0x46e)]('input');_0xda0bf1[_0x3e4e6a(0x2e3)]='file',_0xda0bf1['accept']='image/*',_0xda0bf1[_0x3e4e6a(0x2eb)](_0x3e4e6a(0x1e6),()=>{const _0x53284c=_0x3e4e6a;var _0x3ba573;let _0x436c98=(_0x3ba573=_0xda0bf1[_0x53284c(0x153)])==null?void 0x0:_0x3ba573[0x0];_0x436c98?_0x57f2df[_0x53284c(0x37e)](_0x436c98)[_0x53284c(0x439)](_0x5618fb=>{const _0x49d630=_0x53284c;!_0x5618fb[_0x49d630(0x313)]||_0x5618fb[_0x49d630(0x401)]===void 0x0?_0x253854(null):_0x253854({'name':_0x5618fb[_0x49d630(0x136)],'source':_0x5618fb[_0x49d630(0x313)],'sourceType':_0x5618fb['sourceType']});})[_0x53284c(0x18c)](()=>_0x253854(null)):_0x253854(null);},{'once':!0x0}),_0xda0bf1['click']();});}function no(_0xe659f6){return new Promise(_0x1f889d=>{const _0x471ae4=_0x30a0;let _0x52069a=document[_0x471ae4(0x46e)](_0x471ae4(0x389));_0x52069a[_0x471ae4(0x2e3)]=_0x471ae4(0x3cf),_0x52069a['accept']='image/*',_0x52069a[_0x471ae4(0x2eb)](_0x471ae4(0x1e6),()=>{const _0x16e46e=_0x471ae4;var _0x3f88d8;let _0x184917=(_0x3f88d8=_0x52069a[_0x16e46e(0x153)])==null?void 0x0:_0x3f88d8[0x0];_0x184917?_0xe659f6['saveImage'](_0x184917)[_0x16e46e(0x439)](_0x2dc6dc=>{const _0xafa8d4=_0x16e46e;if(!(_0x2dc6dc!=null&&_0x2dc6dc[_0xafa8d4(0x313)]))_0x1f889d(null);else{if(_0x2dc6dc[_0xafa8d4(0x292)]){let _0x585096=new Image();_0x585096[_0xafa8d4(0x13d)]=_0x2dc6dc['base64Cache'],_0xe659f6[_0xafa8d4(0x396)](_0x2dc6dc['source'],_0x2dc6dc[_0xafa8d4(0x146)],_0x585096);}_0x1f889d({'source':_0x2dc6dc[_0xafa8d4(0x313)],'sourceType':_0x2dc6dc['imageSourceType']});}})[_0x16e46e(0x18c)](()=>_0x1f889d(null)):_0x1f889d(null);},{'once':!0x0}),_0x52069a[_0x471ae4(0x1bc)]();});}function ro(_0x15d59e){const _0x3ab301=_0x51bd0c;switch(_0x15d59e){case _0x9d376a['PivotChart']:return _0x3ab301(0x1f4);case _0x9d376a['TableFilter']:return _0x3ab301(0x2cf);case _0x9d376a[_0x3ab301(0x200)]:return _0x3ab301(0x261);case _0x9d376a[_0x3ab301(0x180)]:return'bases-dashboard-ui.dashboard.image';case _0x9d376a['FormulaShape']:return _0x3ab301(0x18f);}}function io(_0x1b72ba){const _0x54b6d9=_0x51bd0c;return(_0x1b72ba==null?void 0x0:_0x1b72ba['type'])===_0x497849[_0x54b6d9(0x1c2)]&&typeof _0x1b72ba['config']=='object'&&_0x1b72ba[_0x54b6d9(0x18b)]!==null&&_0x54b6d9(0x26c)in _0x1b72ba[_0x54b6d9(0x18b)]&&_0x54b6d9(0x368)in _0x1b72ba[_0x54b6d9(0x18b)];}const ao=[{'area':_0x4fb992['Filter'],'key':'filterFields','label':'bases-dashboard-ui.pivot.filters'},{'area':_0x4fb992['Column'],'key':_0x51bd0c(0x2b2),'label':'bases-dashboard-ui.pivot.columns'},{'area':_0x4fb992[_0x51bd0c(0x266)],'key':_0x51bd0c(0x33e),'label':_0x51bd0c(0x1cd)},{'area':_0x4fb992['Value'],'key':'valueFields','label':_0x51bd0c(0x1c3)}],oo=[{'value':_0xc6923e[_0x51bd0c(0x280)],'localeKey':_0x51bd0c(0x27c)},{'value':_0xc6923e[_0x51bd0c(0x3a2)],'localeKey':_0x51bd0c(0x237)},{'value':_0xc6923e[_0x51bd0c(0x278)],'localeKey':_0x51bd0c(0x3a5)},{'value':_0xc6923e['average'],'localeKey':_0x51bd0c(0x1cf)},{'value':_0xc6923e[_0x51bd0c(0x335)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':_0xc6923e[_0x51bd0c(0x1f1)],'localeKey':_0x51bd0c(0x1aa)},{'value':_0xc6923e['product'],'localeKey':_0x51bd0c(0x29f)},{'value':_0xc6923e[_0x51bd0c(0x37b)],'localeKey':_0x51bd0c(0x215)},{'value':_0xc6923e[_0x51bd0c(0x16c)],'localeKey':_0x51bd0c(0x181)},{'value':_0xc6923e[_0x51bd0c(0x345)],'localeKey':_0x51bd0c(0x38c)},{'value':_0xc6923e[_0x51bd0c(0x204)],'localeKey':_0x51bd0c(0x2d6)}];function so(_0x43e948){const _0x256e06=_0x51bd0c;let {config:_0xaf63b6,onChange:_0xb753eb,table:_0xe303c4}=_0x43e948,_0x57f7b1=_0x59ceb1(_0x3e9ffe),[_0x4abcec,_0xfc115b]=_0x446379('fields'),[_0x22fe80,_0x42757a]=_0x446379(''),[_0x2a7cd9,_0x21691d]=_0x446379(null),[_0x5e1f13,_0x513be9]=_0x446379(null),[_0x778e0c,_0x476bce]=_0x446379(null),[_0x28fa91,_0x502202]=_0x446379(null),_0xa7a3ff=_0x2c3a8a(null),_0x37c8a2=_0x592e4f(()=>_0xe303c4[_0x256e06(0x23f)][_0x256e06(0x397)](_0x1d2d3f=>{const _0x1cf30a=_0x256e06;let _0xa3b7a=_0xe303c4[_0x1cf30a(0x21b)][_0x1d2d3f];return _0xa3b7a&&_0xa3b7a[_0x1cf30a(0x38f)]!==!0x0&&_0xa3b7a['type']!==_0x22c46f[_0x1cf30a(0x18e)]?[_0xa3b7a]:[];})[_0x256e06(0x1ff)](_0x376416=>_0x376416[_0x256e06(0x136)]['toLocaleLowerCase']()[_0x256e06(0x3d3)](_0x22fe80[_0x256e06(0x46c)]()[_0x256e06(0x193)]())),[_0x22fe80,_0xe303c4]),_0x185d71=_0x4ed9c0=>{const _0x46694e=_0x256e06;let _0x52d76b=_0x3c1840(_0xe303c4,_0xaf63b6[_0x46694e(0x26c)]);try{_0x4ed9c0(_0x52d76b),_0xb753eb({'pivot':_0x52d76b[_0x46694e(0x32c)]()});}finally{_0x52d76b[_0x46694e(0x147)]();}},_0x1e4af0=(_0x544b5c,_0x2cda56)=>{_0x2a7cd9&&(_0x185d71(_0x451495=>{const _0x10aad8=_0x30a0;if(_0x2a7cd9['kind']==='field'){let _0x48ca27=_0x451495[_0x10aad8(0x1fa)](_0x2a7cd9['id']),_0xea624d=_0x48ca27[_0x10aad8(0x3ec)]===_0x544b5c&&_0x48ca27['index']<_0x2cda56?_0x2cda56-0x1:_0x2cda56;_0x451495[_0x10aad8(0x20d)](_0x2a7cd9['id'],_0x544b5c,_0xea624d);}else go(_0x451495,_0x2a7cd9['id'],_0x544b5c,_0x2cda56);}),_0x21691d(null),_0x513be9(null));};return _0x3067ce('div',{'className':_0x256e06(0x172),'children':[_0xe7503a(_0x331878,{'ariaLabel':_0x57f7b1['t'](_0x256e06(0x41d)),'className':_0x256e06(0x3f1),'items':[{'label':_0x57f7b1['t'](_0x256e06(0x29e)),'panelId':'base-pivot-fields','value':_0x256e06(0x21b)},{'label':_0x57f7b1['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x256e06(0x2b3),'value':_0x256e06(0x17b)}],'value':_0x4abcec,'onChange':_0xfc115b}),_0xe7503a(_0x256e06(0x1fb),{'ref':_0xa7a3ff,'className':_0x1ba4bd(_0x256e06(0x392),_0x2a2c66),'onDragOver':_0x24566c=>{const _0x3b99bb=_0x256e06;let _0x5e9c76=_0xa7a3ff[_0x3b99bb(0x228)];if(!_0x5e9c76)return;let _0x23a1f3=_0x5e9c76[_0x3b99bb(0x138)]();_0x24566c['clientY']<_0x23a1f3[_0x3b99bb(0x361)]+0x30?_0x5e9c76[_0x3b99bb(0x234)]-=0x10:_0x24566c[_0x3b99bb(0x39e)]>_0x23a1f3[_0x3b99bb(0x330)]-0x30&&(_0x5e9c76[_0x3b99bb(0x234)]+=0x10);},'children':_0x4abcec===_0x256e06(0x17b)?_0xe7503a(ho,{'config':_0xaf63b6,'commit':_0x185d71}):_0x3067ce(_0x256e06(0x1fb),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x3067ce(_0x256e06(0x1fb),{'children':[_0xe7503a(_0x256e06(0x1fb),{'className':_0x256e06(0x1c0),'children':_0x57f7b1['t'](_0x256e06(0x151))}),_0xe7503a(_0x177173,{'allowClear':!0x0,'slot':_0xe7503a(_0x586c4b,{}),'value':_0x22fe80,'placeholder':_0x57f7b1['t'](_0x256e06(0x423)),'onChange':_0x42757a}),_0xe7503a(_0x256e06(0x1fb),{'className':_0x256e06(0x1f6),'children':_0x37c8a2[_0x256e06(0x259)](_0x4f365b=>_0xe7503a(co,{'config':_0xaf63b6,'field':_0x4f365b,'onAdd':_0x4fc792=>_0x185d71(_0x437ad1=>go(_0x437ad1,_0x4f365b['id'],_0x4fc792,_0x437ad1[_0x256e06(0x18a)](_0x4fc792))),'onCheckedChange':_0x48c132=>_0x185d71(_0x45ca1a=>{const _0x5ccb36=_0x256e06;let _0x2f9a03=_0x45ca1a[_0x5ccb36(0x15e)](_0x4f365b['id']);if(!_0x48c132)_0x2f9a03[_0x5ccb36(0x189)](_0x1d3eea=>_0x45ca1a[_0x5ccb36(0x47c)](_0x1d3eea['getId']()));else{if(_0x2f9a03['length']===0x0){let _0x1fdbed=vo(_0x4f365b)?_0x4fb992[_0x5ccb36(0x283)]:_0x4fb992[_0x5ccb36(0x266)];_0x45ca1a[_0x5ccb36(0x294)](_0x4f365b['id'],_0x1fdbed);}}}),'onDragStart':()=>_0x21691d({'kind':_0x256e06(0x313),'id':_0x4f365b['id']})},_0x4f365b['id']))})]}),_0xe7503a('div',{'className':_0x256e06(0x2ff),'children':ao[_0x256e06(0x259)](_0x3ff65d=>_0xe7503a(uo,{'area':_0x3ff65d[_0x256e06(0x3ec)],'dropTarget':_0x5e1f13,'fields':_0xaf63b6['pivot'][_0x3ff65d[_0x256e06(0x24c)]],'label':_0x57f7b1['t'](_0x3ff65d[_0x256e06(0x3c0)]),'snapshot':_0xaf63b6[_0x256e06(0x26c)],'onDragEnd':()=>{_0x21691d(null),_0x513be9(null);},'onDragStart':_0xa1856=>_0x21691d({'kind':'field','id':_0xa1856,'area':_0x3ff65d[_0x256e06(0x3ec)]}),'onDragOver':_0x24b097=>_0x513be9({'area':_0x3ff65d[_0x256e06(0x3ec)],'index':_0x24b097}),'onDrop':_0x2e2503=>_0x1e4af0(_0x3ff65d[_0x256e06(0x3ec)],_0x2e2503),'onFilter':_0x476bce,'onRemove':_0x173542=>_0x185d71(_0x17384d=>_0x17384d['removeField'](_0x173542)),'onSettings':_0x502202},_0x3ff65d['area']))}),_0x778e0c&&_0xe7503a(po,{'fieldId':_0x778e0c,'snapshot':_0xaf63b6[_0x256e06(0x26c)],'table':_0xe303c4,'onCancel':()=>_0x476bce(null),'onCommit':(_0x2bf5f8,_0x160506)=>{_0x185d71(_0x5ce2c2=>{const _0x3327fd=_0x30a0;let _0x29036f=_0x5ce2c2[_0x3327fd(0x3b7)](_0x778e0c),_0x38492f=(_0x29036f==null?void 0x0:_0x29036f[_0x3327fd(0x2a3)])??[];_0x5ce2c2[_0x3327fd(0x432)](_0x778e0c,{'type':_0x16546e[_0x3327fd(0x31a)],'list':_0x2bf5f8,'isAll':_0x2bf5f8[_0x3327fd(0x220)]===_0x38492f[_0x3327fd(0x220)]}),_0x5ce2c2[_0x3327fd(0x3b9)](_0x778e0c,_0x160506===void 0x0?void 0x0:{'type':_0x160506});}),_0x476bce(null);}},_0x778e0c),_0x28fa91&&_0xe7503a(mo,{'field':_0xaf63b6['pivot'][_0x256e06(0x2f3)][_0x28fa91],'onCancel':()=>_0x502202(null),'onCommit':(_0x5116f1,_0x6f79dc,_0x3031ef)=>{_0x185d71(_0x10ed4e=>{const _0x4fb6ae=_0x30a0;_0x10ed4e[_0x4fb6ae(0x17c)](_0x28fa91,_0x5116f1),_0x10ed4e[_0x4fb6ae(0x3e3)](_0x28fa91,_0x6f79dc),_0x10ed4e[_0x4fb6ae(0x471)](_0x28fa91,_0x3031ef||void 0x0);}),_0x502202(null);}},_0x28fa91)]})})]});}function co(_0x2edbf8){const _0xc85546=_0x51bd0c;let {config:_0x3c4af3,field:_0x4c4c38,onAdd:_0x37a412,onCheckedChange:_0x4c78e5,onDragStart:_0x195657}=_0x2edbf8,_0x10bd3f=_0x59ceb1(_0x3e9ffe),_0x3c7879=[...Object['values'](_0x3c4af3[_0xc85546(0x26c)][_0xc85546(0x207)]),...Object['values'](_0x3c4af3['pivot']['measure'])]['some'](_0x3d86e7=>_0x3d86e7['dataFieldId']===_0x4c4c38['id']),_0x54f4c2=ao[_0xc85546(0x259)](_0x3f86a3=>({'type':_0xc85546(0x1ad),'children':_0x10bd3f['t'](yo(_0x3f86a3['area'])),'onSelect':()=>_0x37a412(_0x3f86a3[_0xc85546(0x3ec)])}));return _0x3067ce('div',{'draggable':!0x0,'className':_0xc85546(0x25a),'onDragStart':_0x195657,'children':[_0xe7503a(_0x33b779,{'className':_0xc85546(0x44c)}),_0xe7503a(_0x191a88,{'checked':_0x3c7879,'onChange':_0xf6b22c=>_0x4c78e5(!!_0xf6b22c)}),_0xe7503a(lo,{'field':_0x4c4c38}),_0xe7503a('span',{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x4c4c38[_0xc85546(0x136)]}),_0xe7503a(_0x13d257,{'align':_0xc85546(0x422),'items':_0x54f4c2,'children':_0xe7503a(_0xc85546(0x1b9),{'className':_0xc85546(0x270),'children':_0xe7503a(_0x1ed3b5,{})})})]});}function lo({field:_0x19d82b}){const _0x42c0fb=_0x51bd0c;return vo(_0x19d82b)?_0xe7503a(_0x2e38a6,{'className':'univer-text-gray-400'}):_0x19d82b['type']===_0x22c46f[_0x42c0fb(0x3bc)]||_0x19d82b[_0x42c0fb(0x2e3)]===_0x22c46f[_0x42c0fb(0x1e4)]||_0x19d82b[_0x42c0fb(0x2e3)]===_0x22c46f[_0x42c0fb(0x218)]?_0xe7503a(_0x255dc2,{'className':_0x42c0fb(0x44c)}):_0xe7503a(_0x5bb4c2,{'className':_0x42c0fb(0x44c)});}function uo(_0x519291){const _0x3c366f=_0x51bd0c;let {area:_0x1989c6,dropTarget:_0x31ce36,fields:_0x557607,label:_0x53f3d3,snapshot:_0x2fc0f8}=_0x519291,_0x253048=_0x59ceb1(_0x3e9ffe);return _0x3067ce(_0x3c366f(0x3e0),{'className':_0x1ba4bd(_0x3c366f(0x336),_0x196159),'onDragOver':_0x2a360d=>{const _0xf971a2=_0x3c366f;_0x2a360d['preventDefault'](),_0x519291[_0xf971a2(0x265)](_0x557607['length']);},'onDrop':_0x492752=>{const _0x351b11=_0x3c366f;_0x492752[_0x351b11(0x412)](),_0x519291[_0x351b11(0x173)]((_0x31ce36==null?void 0x0:_0x31ce36[_0x351b11(0x3ec)])===_0x1989c6?_0x31ce36[_0x351b11(0x134)]:_0x557607['length']);},'children':[_0xe7503a(_0x3c366f(0x1fb),{'className':'univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','children':_0x53f3d3}),_0x3067ce(_0x3c366f(0x1fb),{'className':_0x3c366f(0x337),'children':[_0x557607[_0x3c366f(0x259)]((_0x1780a1,_0x4b960d)=>{const _0x32c2de=_0x3c366f;let _0x5aeb32=_0x2fc0f8['dimension'][_0x1780a1]??_0x2fc0f8[_0x32c2de(0x2f3)][_0x1780a1];if(!_0x5aeb32)return null;let _0x91adc8=(_0x31ce36==null?void 0x0:_0x31ce36[_0x32c2de(0x3ec)])===_0x1989c6&&_0x31ce36[_0x32c2de(0x134)]===_0x4b960d;return _0x3067ce('div',{'onDragOver':_0x1e802c=>{const _0x398560=_0x32c2de;_0x1e802c[_0x398560(0x412)](),_0x1e802c['stopPropagation']();let _0x3a533e=_0x1e802c[_0x398560(0x488)][_0x398560(0x138)]();_0x519291[_0x398560(0x265)](_0x4b960d+ +(_0x1e802c['clientY']>_0x3a533e[_0x398560(0x361)]+_0x3a533e[_0x398560(0x3c5)]/0x2));},'onDrop':_0x148ea4=>{const _0x524fdf=_0x32c2de;_0x148ea4[_0x524fdf(0x412)](),_0x148ea4[_0x524fdf(0x410)](),_0x519291[_0x524fdf(0x173)]((_0x31ce36==null?void 0x0:_0x31ce36[_0x524fdf(0x3ec)])===_0x1989c6?_0x31ce36['index']:_0x4b960d);},'children':[_0x91adc8&&_0xe7503a(_0x32c2de(0x1fb),{'className':_0x32c2de(0x3c9)}),_0xe7503a(fo,{'area':_0x1989c6,'field':_0x5aeb32,'onDragEnd':_0x519291[_0x32c2de(0x308)],'onDragStart':()=>_0x519291[_0x32c2de(0x192)](_0x1780a1),'onFilter':()=>_0x519291[_0x32c2de(0x206)](_0x1780a1),'onRemove':()=>_0x519291[_0x32c2de(0x30e)](_0x1780a1),'onSettings':()=>_0x519291[_0x32c2de(0x293)](_0x1780a1)})]},_0x1780a1);}),(_0x31ce36==null?void 0x0:_0x31ce36[_0x3c366f(0x3ec)])===_0x1989c6&&_0x31ce36[_0x3c366f(0x134)]===_0x557607['length']&&_0xe7503a(_0x3c366f(0x1fb),{'className':_0x3c366f(0x3c9)}),_0x557607[_0x3c366f(0x220)]===0x0&&_0xe7503a('div',{'className':_0x3c366f(0x199),'children':_0x253048['t'](_0x3c366f(0x326))})]})]});}function fo(_0x3b28df){const _0x3b4633=_0x51bd0c;let _0x121635=_0x59ceb1(_0x3e9ffe),_0x4b908a=_0x3b28df[_0x3b4633(0x3ec)]===_0x4fb992[_0x3b4633(0x283)],_0x3ca991=[{'type':_0x3b4633(0x1ad),'children':_0x121635['t'](_0x3b4633(0x190)),'onSelect':_0x3b28df[_0x3b4633(0x30e)]},{'type':'item','children':_0x121635['t'](_0x4b908a?_0x3b4633(0x3d8):_0x3b4633(0x36a)),'onSelect':_0x4b908a?_0x3b28df[_0x3b4633(0x293)]:_0x3b28df['onFilter']}];return _0x3067ce(_0x3b4633(0x1fb),{'draggable':!0x0,'className':_0x3b4633(0x481),'onDragEnd':_0x3b28df['onDragEnd'],'onDragStart':_0x3b28df[_0x3b4633(0x192)],'children':[_0xe7503a(_0x33b779,{'className':_0x3b4633(0x44c)}),_0xe7503a(_0x3f727d,{'title':_0x3b28df[_0x3b4633(0x43f)][_0x3b4633(0x44e)],'children':_0xe7503a(_0x3b4633(0x1b9),{'className':_0x3b4633(0x310),'children':_0x3b28df[_0x3b4633(0x43f)][_0x3b4633(0x44e)]})}),_0xe7503a(_0x13d257,{'align':'end','items':_0x3ca991,'children':_0xe7503a(_0x3b4633(0x1b9),{'className':_0x3b4633(0x270),'children':_0xe7503a(_0x1ed3b5,{})})})]});}function po(_0x36b09b){const _0x2caf4a=_0x51bd0c;var _0x86acd5,_0x30cb9e;let _0x5ec99c=_0x59ceb1(_0x3e9ffe),{format:_0x18e47d,items:_0x1b807a,itemTypes:_0x1d0052}=_0x592e4f(()=>{const _0x2f3fa7=_0x30a0;let _0x41bb40=_0x3c1840(_0x36b09b[_0x2f3fa7(0x400)],_0x36b09b['snapshot']);try{let _0x48d8ce=_0x41bb40[_0x2f3fa7(0x3b7)](_0x36b09b[_0x2f3fa7(0x418)]);return{'format':_0x48d8ce==null?void 0x0:_0x48d8ce[_0x2f3fa7(0x477)],'items':[...(_0x48d8ce==null?void 0x0:_0x48d8ce[_0x2f3fa7(0x2a3)])??[]],'itemTypes':[...(_0x48d8ce==null?void 0x0:_0x48d8ce['itemTypes'])??[]]};}finally{_0x41bb40[_0x2f3fa7(0x147)]();}},[_0x36b09b[_0x2caf4a(0x418)],_0x36b09b['snapshot'],_0x36b09b[_0x2caf4a(0x400)]]),_0x28aec4=(_0x86acd5=_0x36b09b[_0x2caf4a(0x1e8)][_0x2caf4a(0x207)][_0x36b09b['fieldId']])==null?void 0x0:_0x86acd5[_0x2caf4a(0x40d)],[_0x306a31,_0x18cd03]=_0x446379((_0x28aec4==null?void 0x0:_0x28aec4[_0x2caf4a(0x2e3)])===_0x16546e[_0x2caf4a(0x31a)]?_0x28aec4[_0x2caf4a(0x15b)]:_0x1b807a),[_0x33c34f,_0x350f5f]=_0x446379((_0x30cb9e=_0x36b09b['snapshot'][_0x2caf4a(0x207)][_0x36b09b[_0x2caf4a(0x418)]])==null||(_0x30cb9e=_0x30cb9e[_0x2caf4a(0x1d1)])==null?void 0x0:_0x30cb9e['type']),_0x30977f=_0x306a31[_0x2caf4a(0x220)]===_0x1b807a[_0x2caf4a(0x220)];return _0x3067ce('section',{'className':_0x1ba4bd(_0x2caf4a(0x143),_0x196159),'children':[_0xe7503a(_0x2caf4a(0x1fb),{'className':_0x2caf4a(0x472),'children':_0x5ec99c['t']('bases-dashboard-ui.pivot.filterField')}),_0x3067ce(_0x2caf4a(0x1fb),{'className':_0x2caf4a(0x22c),'children':[_0x3067ce(_0x2d5ef7,{'className':_0x2caf4a(0x26a),'variant':_0x33c34f===_0x4edbe4['ascending']?'primary':_0x2caf4a(0x47f),'onClick':()=>_0x350f5f(_0x4edbe4[_0x2caf4a(0x197)]),'children':[_0xe7503a(_0x2dc2a4,{}),_0x5ec99c['t']('bases-dashboard-ui.pivot.ascending')]}),_0x3067ce(_0x2d5ef7,{'className':_0x2caf4a(0x26a),'variant':_0x33c34f===_0x4edbe4[_0x2caf4a(0x35f)]?_0x2caf4a(0x3ac):_0x2caf4a(0x47f),'onClick':()=>_0x350f5f(_0x4edbe4[_0x2caf4a(0x35f)]),'children':[_0xe7503a(_0x1ef570,{}),_0x5ec99c['t']('bases-dashboard-ui.pivot.descending')]})]}),_0x3067ce(_0x2caf4a(0x1fb),{'className':'univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','children':[_0x3067ce('label',{'className':_0x2caf4a(0x420),'children':[_0xe7503a(_0x191a88,{'checked':_0x30977f,'indeterminate':_0x306a31[_0x2caf4a(0x220)]>0x0&&!_0x30977f,'onChange':()=>_0x18cd03(_0x30977f?[]:_0x1b807a)}),_0x5ec99c['t'](_0x2caf4a(0x1dd))]}),_0x1b807a[_0x2caf4a(0x259)]((_0x4b50b6,_0x2b21ac)=>_0x3067ce(_0x2caf4a(0x3c0),{'className':_0x2caf4a(0x420),'children':[_0xe7503a(_0x191a88,{'checked':_0x306a31[_0x2caf4a(0x3d3)](_0x4b50b6),'onChange':()=>_0x18cd03(_0x4ace77=>_0x4ace77[_0x2caf4a(0x3d3)](_0x4b50b6)?_0x4ace77['filter'](_0x3cc947=>_0x3cc947!==_0x4b50b6):[..._0x4ace77,_0x4b50b6])}),_0xe7503a('span',{'className':_0x2caf4a(0x3ee),'children':_o(_0x4b50b6,_0x1d0052[_0x2b21ac],_0x18e47d,_0x5ec99c['t'](_0x2caf4a(0x160)))})]},_0x4b50b6))]}),_0x3067ce(_0x2caf4a(0x1fb),{'className':_0x2caf4a(0x3b3),'children':[_0xe7503a(_0x2d5ef7,{'variant':_0x2caf4a(0x3f5),'onClick':()=>_0x36b09b[_0x2caf4a(0x381)](_0x1b807a,_0x33c34f),'children':_0x5ec99c['t'](_0x2caf4a(0x244))}),_0x3067ce('div',{'className':'univer-flex\x20univer-gap-2','children':[_0xe7503a(_0x2d5ef7,{'onClick':_0x36b09b[_0x2caf4a(0x16d)],'children':_0x5ec99c['t'](_0x2caf4a(0x131))}),_0xe7503a(_0x2d5ef7,{'variant':_0x2caf4a(0x3ac),'disabled':_0x306a31[_0x2caf4a(0x220)]===0x0,'onClick':()=>_0x36b09b[_0x2caf4a(0x381)](_0x306a31,_0x33c34f),'children':_0x5ec99c['t'](_0x2caf4a(0x315))})]})]})]});}function mo(_0x2c3e8f){const _0x5ad25a=_0x51bd0c;var _0x273697,_0x161057,_0xca903e;let _0x1de355=_0x59ceb1(_0x3e9ffe),[_0x20a289,_0x25e838]=_0x446379(((_0x273697=_0x2c3e8f[_0x5ad25a(0x43f)])==null?void 0x0:_0x273697[_0x5ad25a(0x44e)])??''),[_0x26be28,_0xefcbb0]=_0x446379(((_0x161057=_0x2c3e8f[_0x5ad25a(0x43f)])==null?void 0x0:_0x161057[_0x5ad25a(0x2f5)])??_0xc6923e[_0x5ad25a(0x280)]),[_0x126ff4,_0x524270]=_0x446379(((_0xca903e=_0x2c3e8f[_0x5ad25a(0x43f)])==null?void 0x0:_0xca903e[_0x5ad25a(0x477)])??'');return _0x2c3e8f[_0x5ad25a(0x43f)]?_0x3067ce('section',{'className':_0x1ba4bd(_0x5ad25a(0x226),_0x196159),'children':[_0xe7503a('div',{'className':_0x5ad25a(0x320),'children':_0x1de355['t'](_0x5ad25a(0x3d8))}),_0x3067ce(_0x5ad25a(0x3c0),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x1de355['t'](_0x5ad25a(0x1a5)),_0xe7503a(_0x177173,{'value':_0x20a289,'onChange':_0x25e838})]}),_0x3067ce(_0x5ad25a(0x3c0),{'className':_0x5ad25a(0x36c),'children':[_0x1de355['t']('bases-dashboard-ui.pivot.summarizeBy'),_0xe7503a(_0x35cb89,{'value':String(_0x26be28),'options':oo[_0x5ad25a(0x259)](_0x4ff95b=>({'value':String(_0x4ff95b[_0x5ad25a(0x303)]),'label':_0x1de355['t'](_0x4ff95b[_0x5ad25a(0x40f)])})),'onChange':_0x3465ef=>{const _0x3845be=_0x5ad25a;let _0x4f4678=oo[_0x3845be(0x142)](_0x31a78a=>String(_0x31a78a[_0x3845be(0x303)])===_0x3465ef);_0x4f4678&&_0xefcbb0(_0x4f4678[_0x3845be(0x303)]);}})]}),_0x3067ce(_0x5ad25a(0x3c0),{'className':_0x5ad25a(0x36c),'children':[_0x1de355['t'](_0x5ad25a(0x164)),_0xe7503a(_0x177173,{'value':_0x126ff4,'onChange':_0x524270})]}),_0x3067ce(_0x5ad25a(0x1fb),{'className':'univer-flex\x20univer-justify-end\x20univer-gap-2','children':[_0xe7503a(_0x2d5ef7,{'onClick':_0x2c3e8f['onCancel'],'children':_0x1de355['t'](_0x5ad25a(0x131))}),_0xe7503a(_0x2d5ef7,{'variant':'primary','disabled':!_0x20a289['trim'](),'onClick':()=>_0x2c3e8f[_0x5ad25a(0x381)](_0x20a289['trim'](),_0x26be28,_0x126ff4),'children':_0x1de355['t'](_0x5ad25a(0x315))})]})]}):null;}function ho(_0x25e486){const _0x7c7e9a=_0x51bd0c;let {config:_0x18bc7e,commit:_0x347b89}=_0x25e486,_0x59db8c=_0x59ceb1(_0x3e9ffe),_0x5e0b4b=_0x18bc7e[_0x7c7e9a(0x26c)][_0x7c7e9a(0x17b)],_0x2e3c93=_0x4128b6=>_0x347b89(_0x58b935=>_0x58b935[_0x7c7e9a(0x309)]({..._0x58b935[_0x7c7e9a(0x3a8)](),..._0x4128b6}));return _0x3067ce(_0x7c7e9a(0x1fb),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x3067ce(_0x7c7e9a(0x3c0),{'className':_0x7c7e9a(0x385),'children':[_0x59db8c['t'](_0x7c7e9a(0x2ca)),_0xe7503a(_0x35cb89,{'className':_0x7c7e9a(0x284),'value':String(_0x18bc7e['pivot']['layout']),'options':[{'value':String(_0x5aaea3[_0x7c7e9a(0x1c9)]),'label':_0x59db8c['t'](_0x7c7e9a(0x1e0))},{'value':String(_0x5aaea3[_0x7c7e9a(0x2a9)]),'label':_0x59db8c['t']('bases-dashboard-ui.pivot.layoutCompact')},{'value':String(_0x5aaea3[_0x7c7e9a(0x19b)]),'label':_0x59db8c['t'](_0x7c7e9a(0x476))}],'onChange':_0xce9768=>{const _0x2fec03=_0x7c7e9a;let _0x437211=[_0x5aaea3['tabular'],_0x5aaea3[_0x2fec03(0x2a9)],_0x5aaea3[_0x2fec03(0x19b)]][_0x2fec03(0x142)](_0x37964b=>String(_0x37964b)===_0xce9768);_0x437211!==void 0x0&&_0x347b89(_0x3edf36=>_0x3edf36[_0x2fec03(0x457)](_0x437211));}})]}),[{'key':_0x7c7e9a(0x29b),'label':_0x7c7e9a(0x2f9),'defaultValue':!0x1},{'key':_0x7c7e9a(0x2ed),'label':_0x7c7e9a(0x451),'defaultValue':!0x1},{'key':_0x7c7e9a(0x1d8),'label':_0x7c7e9a(0x35a),'defaultValue':!0x0},{'key':_0x7c7e9a(0x354),'label':'bases-dashboard-ui.pivot.showRowGrandTotal','defaultValue':!0x0},{'key':_0x7c7e9a(0x3ce),'label':_0x7c7e9a(0x365),'defaultValue':!0x0},{'key':_0x7c7e9a(0x25e),'label':_0x7c7e9a(0x272),'defaultValue':!0x0}][_0x7c7e9a(0x259)](_0xd08142=>_0x3067ce(_0x7c7e9a(0x3c0),{'className':_0x7c7e9a(0x232),'children':[_0xe7503a(_0x191a88,{'checked':!!(_0x5e0b4b[_0xd08142['key']]??_0xd08142[_0x7c7e9a(0x22b)]),'disabled':_0xd08142[_0x7c7e9a(0x24c)]===_0x7c7e9a(0x29b)&&_0x18bc7e['pivot']['layout']===_0x5aaea3[_0x7c7e9a(0x2a9)],'onChange':_0x12599a=>_0x2e3c93({[_0xd08142['key']]:!!_0x12599a})}),_0x59db8c['t'](_0xd08142['label'])]},_0xd08142[_0x7c7e9a(0x24c)])),_0x18bc7e['pivot'][_0x7c7e9a(0x465)]===_0x5aaea3[_0x7c7e9a(0x19b)]&&_0x3067ce(_0x7c7e9a(0x3c0),{'className':_0x7c7e9a(0x385),'children':[_0x59db8c['t'](_0x7c7e9a(0x413)),_0xe7503a(_0x35cb89,{'className':_0x7c7e9a(0x284),'value':String(_0x5e0b4b[_0x7c7e9a(0x1cc)]??_0x3472cd[_0x7c7e9a(0x361)]),'options':[{'value':String(_0x3472cd['top']),'label':_0x59db8c['t']('bases-dashboard-ui.pivot.top')},{'value':String(_0x3472cd[_0x7c7e9a(0x330)]),'label':_0x59db8c['t'](_0x7c7e9a(0x48b))}],'onChange':_0x50be63=>{const _0x377b76=_0x7c7e9a;let _0x6f7d7f=[_0x3472cd[_0x377b76(0x361)],_0x3472cd[_0x377b76(0x330)]][_0x377b76(0x142)](_0x447fb6=>String(_0x447fb6)===_0x50be63);_0x6f7d7f!==void 0x0&&_0x2e3c93({'rowSubtotalPosition':_0x6f7d7f});}})]}),_0x3067ce(_0x7c7e9a(0x3c0),{'className':_0x7c7e9a(0x385),'children':[_0x59db8c['t']('bases-dashboard-ui.pivot.valuePosition'),_0xe7503a(_0x35cb89,{'className':_0x7c7e9a(0x284),'value':String(_0x18bc7e[_0x7c7e9a(0x26c)][_0x7c7e9a(0x20f)]===_0x16715e['None']?_0x16715e[_0x7c7e9a(0x1a9)]:_0x18bc7e[_0x7c7e9a(0x26c)]['valuePosition']),'options':[{'value':String(_0x16715e[_0x7c7e9a(0x1a9)]),'label':_0x59db8c['t'](_0x7c7e9a(0x466))},{'value':String(_0x16715e[_0x7c7e9a(0x266)]),'label':_0x59db8c['t'](_0x7c7e9a(0x1cd))}],'onChange':_0x3cb472=>{const _0x9e7a5=_0x7c7e9a;let _0x57961e=[_0x16715e[_0x9e7a5(0x1a9)],_0x16715e[_0x9e7a5(0x266)]][_0x9e7a5(0x142)](_0x3843e6=>String(_0x3843e6)===_0x3cb472);_0x57961e!==void 0x0&&_0x347b89(_0x2bec90=>_0x2bec90[_0x9e7a5(0x1f2)](_0x57961e,_0x2bec90[_0x9e7a5(0x3ab)]()<0x0?0x0:_0x2bec90[_0x9e7a5(0x3ab)]()));}})]}),_0x3067ce(_0x7c7e9a(0x3c0),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x59db8c['t'](_0x7c7e9a(0x1ce)),_0xe7503a(_0x1ccd7d,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x5e0b4b[_0x7c7e9a(0x25f)]??0x1,'onChange':_0x4b1170=>{const _0xa76155=_0x7c7e9a;let _0x4955d4=Number(_0x4b1170);Number[_0xa76155(0x2d9)](_0x4955d4)&&_0x4955d4>=0x1&&_0x2e3c93({'pageWrap':_0x4955d4});}})]}),_0x3067ce(_0x7c7e9a(0x3c0),{'className':_0x7c7e9a(0x385),'children':[_0x59db8c['t'](_0x7c7e9a(0x2b6)),_0xe7503a(_0x35cb89,{'className':_0x7c7e9a(0x284),'value':String(_0x5e0b4b[_0x7c7e9a(0x279)]??!0x1),'options':[{'value':_0x7c7e9a(0x338),'label':_0x59db8c['t'](_0x7c7e9a(0x248))},{'value':_0x7c7e9a(0x38b),'label':_0x59db8c['t']('bases-dashboard-ui.pivot.acrossThenDown')}],'onChange':_0x2c33d3=>_0x2e3c93({'pageOverThenDown':_0x2c33d3==='true'})})]})]});}function go(_0x53e549,_0x23eadc,_0x1d964a,_0x45abdc){const _0x2ee652=_0x51bd0c;let _0x13b914=_0x53e549[_0x2ee652(0x15e)](_0x23eadc)[_0x2ee652(0x142)](_0x189d70=>_0x53e549[_0x2ee652(0x1fa)](_0x189d70[_0x2ee652(0x461)]())['area']!==_0x4fb992['Value']);_0x1d964a!==_0x4fb992[_0x2ee652(0x283)]&&_0x13b914?_0x53e549[_0x2ee652(0x20d)](_0x13b914[_0x2ee652(0x461)](),_0x1d964a,_0x45abdc):_0x53e549[_0x2ee652(0x294)](_0x23eadc,_0x1d964a,_0x45abdc);}function _o(_0x484b3b,_0x21891e,_0x2fef3b,_0x482329){const _0x40de04=_0x51bd0c;return _0x21891e===_0x502fcd[_0x40de04(0x3bf)]?_0x482329:_0x21891e===_0x502fcd[_0x40de04(0x288)]&&_0x2fef3b?_0x5cfbc7[_0x40de04(0x477)](_0x2fef3b,Number(_0x484b3b)):_0x484b3b;}function vo(_0x2e7aa1){const _0x3d0c64=_0x51bd0c;return _0x2e7aa1[_0x3d0c64(0x2e3)]===_0x22c46f['Number']||_0x2e7aa1[_0x3d0c64(0x2e3)]===_0x22c46f[_0x3d0c64(0x1a6)]||_0x2e7aa1['type']===_0x22c46f[_0x3d0c64(0x355)]||_0x2e7aa1[_0x3d0c64(0x2e3)]===_0x22c46f[_0x3d0c64(0x373)];}function yo(_0x408cd0){const _0x54a48d=_0x51bd0c;switch(_0x408cd0){case _0x4fb992[_0x54a48d(0x266)]:return _0x54a48d(0x144);case _0x4fb992['Column']:return'bases-dashboard-ui.pivot.addToColumn';case _0x4fb992[_0x54a48d(0x283)]:return'bases-dashboard-ui.pivot.addToValue';default:return _0x54a48d(0x3d7);}}function bo({config:_0x1e09aa,onChange:_0x570b07,runtime:_0x1aa5f3,table:_0x317841}){const _0x1e184c=_0x51bd0c;let _0x5924b5=_0x59ceb1(_0x3e9ffe),[_0x3b193b,_0x214bbe]=_0x446379('chart');return _0x3067ce(_0x1e184c(0x2c8),{'className':_0x1e184c(0x179),'children':[_0xe7503a(_0x331878,{'ariaLabel':_0x5924b5['t']('bases-dashboard-ui.pivot.name'),'className':_0x1e184c(0x3bb),'items':[{'label':_0x5924b5['t']('bases-dashboard-ui.pivot.chartConfiguration'),'panelId':_0x1e184c(0x3dd),'value':_0x1e184c(0x368)},{'label':_0x5924b5['t'](_0x1e184c(0x41d)),'panelId':_0x1e184c(0x41b),'value':_0x1e184c(0x26c)}],'value':_0x3b193b,'variant':_0x1e184c(0x28a),'onChange':_0x214bbe}),_0xe7503a(_0x1e184c(0x1fb),{'className':_0x1e184c(0x1ba),'children':_0x3b193b===_0x1e184c(0x368)?_0x1aa5f3&&_0xe7503a(ma,{'config':_0x1e09aa,'runtime':_0x1aa5f3,'tableName':_0x317841[_0x1e184c(0x136)],'onChange':_0x570b07}):_0xe7503a(so,{'config':_0x1e09aa,'table':_0x317841,'onChange':_0x570b07})})]});}function xo({tableId:_0x8e62e6,unitId:_0x27b10d,viewId:_0x2258c6}){const _0x560f94=_0x51bd0c;let _0x123336=_0x59ceb1(_0x19ef53),_0x5ceb9e=_0x59ceb1(_0x490434),_0x247c75=_0x59ceb1(_0x57f04c),_0x576364=_0x59ceb1(_0x3e9ffe),_0x6f30a6=_0x59ceb1(_0x49c96a),[_0x3687ff,_0x1b6ead]=_0x446379(null),[_0x2f6a1b,_0xe1fe95]=_0x446379(null),_0x1fc66a=_0x2c3a8a('base-pivot-chart-'+_0x5620a1(0x8)),[_0x2006eb,_0x57dd05]=_0x446379(!0x1),_0x33a047=_0x5ceb9e['getUnit'](_0x27b10d,_0xe1c385[_0x560f94(0x319)]),_0x3393bd=_0x33a047==null?void 0x0:_0x33a047[_0x560f94(0x1f8)]()[_0x560f94(0x487)][_0x8e62e6],_0x5b2a40=_0x3393bd==null?void 0x0:_0x3393bd[_0x560f94(0x27f)][_0x2258c6],_0x1c0c93=So(_0x5b2a40),_0x36dc25=yr(_0x27b10d,_0x8e62e6,_0x2258c6);if(_0x3dfd92(()=>{const _0x329c23=_0x560f94;if(!_0x1c0c93)return;let _0x5af3f7=_0x1fc66a[_0x329c23(0x228)];return _0x6f30a6[_0x329c23(0x1ca)](_0x5af3f7,{'unitId':_0x27b10d,'tableId':_0x8e62e6,'viewId':_0x2258c6,'filters':[]}),()=>{const _0x3f8ad8=_0x329c23;_0x6f30a6[_0x3f8ad8(0x12a)](_0x27b10d,_0x5af3f7);};},[_0x1c0c93,_0x6f30a6,_0x8e62e6,_0x27b10d,_0x2258c6]),_0x3dfd92(()=>{const _0x8162b1=_0x560f94;if(!So(_0x5b2a40))return;let _0xe74953=!0x0,_0xe7f0f0={'unitId':_0x27b10d,'tableId':_0x8e62e6,'viewId':_0x2258c6,'filters':[_0x5b2a40[_0x8162b1(0x1ff)]??null]};return _0x6f30a6[_0x8162b1(0x33b)](_0x27b10d,_0x1fc66a[_0x8162b1(0x228)],_0xe7f0f0)[_0x8162b1(0x439)](_0x33a24e=>{const _0x2743c6=_0x8162b1;_0xe74953&&_0x33a24e&&(_0x1b6ead(_0x33a24e),_0xe1fe95(_0x6f30a6[_0x2743c6(0x162)](_0x27b10d,_0x1fc66a[_0x2743c6(0x228)])??null),_0x57dd05(!0x1));})[_0x8162b1(0x18c)](_0x4f6e17=>{const _0x21e498=_0x8162b1;_0x247c75[_0x21e498(0x2fa)]('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x4f6e17),_0xe74953&&(_0x1b6ead(null),_0x57dd05(!0x0));}),()=>{_0xe74953=!0x1;};},[_0x247c75,_0x6f30a6,_0x8e62e6,_0x27b10d,_0x5b2a40,_0x2258c6]),!_0x3393bd||!So(_0x5b2a40))return null;let _0x4efc12=_0x6f30a6[_0x560f94(0x162)](_0x27b10d,_0x1fc66a[_0x560f94(0x228)])===_0x2f6a1b?_0x2f6a1b:null,_0x383d1d=_0x3687ff?_0x3067ce(_0x560f94(0x1fb),{'className':_0x560f94(0x3aa),'style':{'gridTemplateRows':_0x5b2a40[_0x560f94(0x18b)]['displayMode']===_0x560f94(0x295)?'minmax(240px,\x203fr)\x20minmax(180px,\x202fr)':_0x560f94(0x30c)},'children':[_0x5b2a40[_0x560f94(0x18b)][_0x560f94(0x298)]!==_0x560f94(0x400)&&_0x4efc12&&_0xe7503a('div',{'className':_0x560f94(0x371),'children':_0xe7503a(Rr,{'isRowDirection':_0xa65f9f(_0x5b2a40['config'][_0x560f94(0x368)][_0x560f94(0x191)]),'runtime':_0x4efc12})}),_0x5b2a40[_0x560f94(0x18b)][_0x560f94(0x298)]!==_0x560f94(0x368)&&_0xe7503a(_0x560f94(0x1fb),{'className':_0x560f94(0x305),'children':_0xe7503a(ji,{'pivot':_0x5b2a40[_0x560f94(0x18b)]['pivot'],'view':_0x3687ff[_0x560f94(0x150)]})})]}):_0xe7503a(_0x560f94(0x1fb),{'className':_0x560f94(0x327),'children':_0x2006eb?_0x576364['t'](_0x560f94(0x31e)):_0x576364['t'](_0x560f94(0x3c2))});return _0x3067ce(_0x560f94(0x1fb),{'className':_0x560f94(0x37d),'children':[_0xe7503a(_0x560f94(0x1fb),{'className':_0x560f94(0x24f),'children':_0x383d1d}),_0x36dc25&&_0xe7503a(bo,{'config':_0x5b2a40[_0x560f94(0x18b)],'runtime':_0x4efc12,'table':_0x3393bd,'onChange':_0xa7621d=>{const _0x419006=_0x560f94;_0x123336[_0x419006(0x3b8)](_0x29ecfe['id'],{'unitId':_0x27b10d,'tableId':_0x8e62e6,'viewId':_0x2258c6,'patch':_0xa7621d})[_0x419006(0x18c)](_0x109f5e=>_0x247c75['error'](_0x419006(0x364),_0x109f5e));}})]});}function So(_0x4ead67){const _0x5f1c63=_0x51bd0c;return(_0x4ead67==null?void 0x0:_0x4ead67[_0x5f1c63(0x2e3)])===_0x497849[_0x5f1c63(0x1c2)]&&typeof _0x4ead67[_0x5f1c63(0x18b)]==_0x5f1c63(0x419)&&_0x4ead67['config']!==null&&_0x5f1c63(0x26c)in _0x4ead67['config']&&_0x5f1c63(0x368)in _0x4ead67[_0x5f1c63(0x18b)]&&'displayMode'in _0x4ead67[_0x5f1c63(0x18b)];}let Co=class extends _0x1a82b4{constructor(_0xa56497,_0x1a80e0,_0x4b7a7f,_0xf0ad13,_0x3888a8,_0x5abcf0){const _0x1d3424=_0x51bd0c;super(),this[_0x1d3424(0x27e)](_0x1a80e0[_0x1d3424(0x377)]({'type':_0x497849[_0x1d3424(0x1c2)],'renderMode':_0x1d3424(0x474),'icon':_0x3a5ee2,'component':xo,'menu':{get 'label'(){const _0x4bac0e=_0x1d3424;return _0x5abcf0['t'](_0x4bac0e(0x214));},get 'description'(){return _0x5abcf0['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){return _0x5abcf0['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x1d3424(0x27e)](_0xa56497[_0x1d3424(0x377)](wo(_0x4b7a7f,_0xf0ad13,_0x3888a8,_0x5abcf0)));}};Co=Ar([Y(0x0,_0x13f33c),Y(0x1,_0x46f0b2),Y(0x2,_0x986575(_0x46b07c)),Y(0x3,_0x19ef53),Y(0x4,_0x278622),Y(0x5,_0x986575(_0x3e9ffe))],Co);function wo(_0x4098cb,_0x34fe83,_0x875486,_0x593ba3){const _0x5c8e3d=_0x51bd0c;return{'change$':_0x4a9a96(_0x4098cb['change$'],_0x875486[_0x5c8e3d(0x19c)]),'component':Xa,get 'labels'(){const _0x1331b9=_0x5c8e3d;return{'add':_0x593ba3['t'](_0x1331b9(0x32a)),'configure':_0x52b510=>_0x593ba3['t'](_0x1331b9(0x264),_0x52b510),'delete':_0x593ba3['t'](_0x1331b9(0x369)),'new':_0x593ba3['t'](_0x1331b9(0x45d)),'rename':_0x593ba3['t'](_0x1331b9(0x445)),'search':_0x593ba3['t'](_0x1331b9(0x409)),'section':_0x593ba3['t'](_0x1331b9(0x469))};},'getItems':_0x255e22=>{const _0x3b3ee9=_0x5c8e3d;let _0x1b3fc0=_0x4098cb[_0x3b3ee9(0x1b6)](_0x255e22);return _0x1b3fc0[_0x3b3ee9(0x28b)][_0x3b3ee9(0x397)](_0x3f3750=>{const _0x6079fb=_0x3b3ee9;let _0xada867=_0x1b3fc0['dashboards'][_0x3f3750];return _0xada867?[{'id':_0xada867['id'],'name':_0xada867[_0x6079fb(0x136)],'readonly':!_0x1c7e4f(_0x875486,_0x255e22,_0xada867['id'])}]:[];});},'create':async _0x6f6537=>{const _0x5c3bce=_0x5c8e3d;let _0x1d5b90=_0x4098cb['getResource'](_0x6f6537),_0x328a18='dashboard-'+_0x5620a1(0x8),_0x25101e=To(_0x1d5b90['dashboardOrder'][_0x5c3bce(0x397)](_0x18013f=>{const _0x2d8f33=_0x5c3bce;let _0x34261c=_0x1d5b90[_0x2d8f33(0x2ad)][_0x18013f];return _0x34261c?[_0x34261c[_0x2d8f33(0x136)]]:[];}),_0xe0b6e9=>_0x593ba3['t'](_0x5c3bce(0x334),String(_0xe0b6e9)));return await _0x34fe83['executeCommand'](_0x184b01['id'],{'unitId':_0x6f6537,'dashboard':{'id':_0x328a18,'name':_0x25101e,'widgetOrder':[],'widgets':{}}})?_0x328a18:null;},'rename':async(_0x1ca610,_0x3da7d7,_0x415f35)=>{let _0x33e8e2=_0x4098cb['getDashboard'](_0x1ca610,_0x3da7d7);return!!(_0x33e8e2&&await _0x34fe83['executeCommand'](_0x5741e1['id'],{'unitId':_0x1ca610,'dashboard':{..._0x33e8e2,'name':_0x415f35}}));},'remove':(_0x458243,_0x2c3c44)=>_0x34fe83['executeCommand'](_0x1361be['id'],{'unitId':_0x458243,'dashboardId':_0x2c3c44})};}function To(_0x40a85e,_0x275b3a){const _0xb47a8c=_0x51bd0c;let _0x2e4b8a=new Set(_0x40a85e),_0x576331=_0x2e4b8a[_0xb47a8c(0x3b2)]+0x1,_0x72f603=_0x275b3a(_0x576331);for(;_0x2e4b8a[_0xb47a8c(0x1b5)](_0x72f603);)_0x576331+=0x1,_0x72f603=_0x275b3a(_0x576331);return _0x72f603;}let Eo=class extends _0x465305{constructor(_0x27a109=_r,_0x35d958,_0x552f0b){const _0x5d8b87=_0x51bd0c;super(),this[_0x5d8b87(0x2d7)]=_0x27a109,this[_0x5d8b87(0x166)]=_0x35d958,this[_0x5d8b87(0x255)]=_0x552f0b;let {..._0x516b0d}=_0x24504d({},_r,this[_0x5d8b87(0x2d7)]);this['_configService'][_0x5d8b87(0x430)](gr,_0x516b0d);}[_0x51bd0c(0x31f)](){const _0x4b06c6=_0x51bd0c;this[_0x4b06c6(0x166)][_0x4b06c6(0x30a)]([jr]),this[_0x4b06c6(0x166)]['add']([qr]),this[_0x4b06c6(0x166)][_0x4b06c6(0x30a)]([Co]);}[_0x51bd0c(0x390)](){const _0x1f1d3b=_0x51bd0c;_0x1aefec(this[_0x1f1d3b(0x166)],[[jr],[qr],[Co]]);}};Ir(Eo,_0x51bd0c(0x2e3),_0xe1c385[_0x51bd0c(0x319)]),Ir(Eo,_0x51bd0c(0x456),_0x51bd0c(0x1ef)),Ir(Eo,_0x51bd0c(0x434),mr),Ir(Eo,_0x51bd0c(0x441),hr),Eo=Ar([_0x528588(_0x237f5b,_0x3f977a,_0x238faa,_0xb4aec9,_0x4e4724,_0x5dd22a),Y(0x1,_0x986575(_0x58f1ef)),Y(0x2,_0x451e15)],Eo);export{ia as UniverBaseDashboardMobileUIPlugin,Eo as UniverBaseDashboardUIPlugin};