@univerjs-pro/bases-dashboard-ui 1.0.0-rc.0 → 1.0.1

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 (119) hide show
  1. package/README.md +42 -0
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/cs-CZ.js +1 -1
  6. package/lib/cjs/locale/de-DE.js +1 -1
  7. package/lib/cjs/locale/en-US.js +1 -1
  8. package/lib/cjs/locale/es-ES.js +1 -1
  9. package/lib/cjs/locale/fa-IR.js +1 -1
  10. package/lib/cjs/locale/fr-FR.js +1 -1
  11. package/lib/cjs/locale/id-ID.js +1 -1
  12. package/lib/cjs/locale/it-IT.js +1 -1
  13. package/lib/cjs/locale/ja-JP.js +1 -1
  14. package/lib/cjs/locale/ko-KR.js +1 -1
  15. package/lib/cjs/locale/nl-NL.js +1 -1
  16. package/lib/cjs/locale/pl-PL.js +1 -1
  17. package/lib/cjs/locale/pt-BR.js +1 -1
  18. package/lib/cjs/locale/ru-RU.js +1 -1
  19. package/lib/cjs/locale/sk-SK.js +1 -1
  20. package/lib/cjs/locale/th-TH.js +1 -1
  21. package/lib/cjs/locale/tr-TR.js +1 -1
  22. package/lib/cjs/locale/uk-UA.js +1 -1
  23. package/lib/cjs/locale/vi-VN.js +1 -1
  24. package/lib/cjs/locale/zh-CN.js +1 -1
  25. package/lib/cjs/locale/zh-HK.js +1 -1
  26. package/lib/cjs/locale/zh-TW.js +1 -1
  27. package/lib/es/index.js +1 -1
  28. package/lib/es/locale/ar-SA.js +1 -1
  29. package/lib/es/locale/ca-ES.js +1 -1
  30. package/lib/es/locale/cs-CZ.js +1 -1
  31. package/lib/es/locale/de-DE.js +1 -1
  32. package/lib/es/locale/en-US.js +1 -1
  33. package/lib/es/locale/es-ES.js +1 -1
  34. package/lib/es/locale/fa-IR.js +1 -1
  35. package/lib/es/locale/fr-FR.js +1 -1
  36. package/lib/es/locale/id-ID.js +1 -1
  37. package/lib/es/locale/it-IT.js +1 -1
  38. package/lib/es/locale/ja-JP.js +1 -1
  39. package/lib/es/locale/ko-KR.js +1 -1
  40. package/lib/es/locale/nl-NL.js +1 -1
  41. package/lib/es/locale/pl-PL.js +1 -1
  42. package/lib/es/locale/pt-BR.js +1 -1
  43. package/lib/es/locale/ru-RU.js +1 -1
  44. package/lib/es/locale/sk-SK.js +1 -1
  45. package/lib/es/locale/th-TH.js +1 -1
  46. package/lib/es/locale/tr-TR.js +1 -1
  47. package/lib/es/locale/uk-UA.js +1 -1
  48. package/lib/es/locale/vi-VN.js +1 -1
  49. package/lib/es/locale/zh-CN.js +1 -1
  50. package/lib/es/locale/zh-HK.js +1 -1
  51. package/lib/es/locale/zh-TW.js +1 -1
  52. package/lib/index.js +1 -1
  53. package/lib/locale/ar-SA.js +1 -1
  54. package/lib/locale/ca-ES.js +1 -1
  55. package/lib/locale/cs-CZ.js +1 -1
  56. package/lib/locale/de-DE.js +1 -1
  57. package/lib/locale/en-US.js +1 -1
  58. package/lib/locale/es-ES.js +1 -1
  59. package/lib/locale/fa-IR.js +1 -1
  60. package/lib/locale/fr-FR.js +1 -1
  61. package/lib/locale/id-ID.js +1 -1
  62. package/lib/locale/it-IT.js +1 -1
  63. package/lib/locale/ja-JP.js +1 -1
  64. package/lib/locale/ko-KR.js +1 -1
  65. package/lib/locale/nl-NL.js +1 -1
  66. package/lib/locale/pl-PL.js +1 -1
  67. package/lib/locale/pt-BR.js +1 -1
  68. package/lib/locale/ru-RU.js +1 -1
  69. package/lib/locale/sk-SK.js +1 -1
  70. package/lib/locale/th-TH.js +1 -1
  71. package/lib/locale/tr-TR.js +1 -1
  72. package/lib/locale/uk-UA.js +1 -1
  73. package/lib/locale/vi-VN.js +1 -1
  74. package/lib/locale/zh-CN.js +1 -1
  75. package/lib/locale/zh-HK.js +1 -1
  76. package/lib/locale/zh-TW.js +1 -1
  77. package/lib/types/components/mobile/BaseDashboardView.d.ts +2 -0
  78. package/lib/types/components/mobile/BasePivotChartEditor.d.ts +78 -0
  79. package/lib/types/components/mobile/BasePivotInspector.d.ts +10 -0
  80. package/lib/types/components/mobile/BasePivotPanel.d.ts +11 -0
  81. package/lib/types/components/mobile/BasePivotView.d.ts +2 -0
  82. package/lib/types/components/mobile/DashboardChartInspector.d.ts +11 -0
  83. package/lib/types/components/mobile/DashboardFormulaShapeInspector.d.ts +13 -0
  84. package/lib/types/components/mobile/DashboardGrid.d.ts +12 -0
  85. package/lib/types/components/mobile/DashboardInspector.d.ts +20 -0
  86. package/lib/types/components/mobile/DashboardMobileControls.d.ts +8 -0
  87. package/lib/types/components/mobile/DashboardTableFilter.d.ts +13 -0
  88. package/lib/types/components/mobile/DashboardWidgetActions.d.ts +8 -0
  89. package/lib/types/controllers/mobile/base-dashboard-ui.controller.d.ts +6 -0
  90. package/lib/types/index.d.ts +1 -0
  91. package/lib/types/locale/en-US.d.ts +5 -0
  92. package/lib/types/locale/types.d.ts +0 -4
  93. package/lib/types/mobile-plugin.d.ts +14 -0
  94. package/lib/umd/index.js +1 -1
  95. package/lib/umd/locale/ar-SA.js +1 -1
  96. package/lib/umd/locale/ca-ES.js +1 -1
  97. package/lib/umd/locale/cs-CZ.js +1 -1
  98. package/lib/umd/locale/de-DE.js +1 -1
  99. package/lib/umd/locale/en-US.js +1 -1
  100. package/lib/umd/locale/es-ES.js +1 -1
  101. package/lib/umd/locale/fa-IR.js +1 -1
  102. package/lib/umd/locale/fr-FR.js +1 -1
  103. package/lib/umd/locale/id-ID.js +1 -1
  104. package/lib/umd/locale/it-IT.js +1 -1
  105. package/lib/umd/locale/ja-JP.js +1 -1
  106. package/lib/umd/locale/ko-KR.js +1 -1
  107. package/lib/umd/locale/nl-NL.js +1 -1
  108. package/lib/umd/locale/pl-PL.js +1 -1
  109. package/lib/umd/locale/pt-BR.js +1 -1
  110. package/lib/umd/locale/ru-RU.js +1 -1
  111. package/lib/umd/locale/sk-SK.js +1 -1
  112. package/lib/umd/locale/th-TH.js +1 -1
  113. package/lib/umd/locale/tr-TR.js +1 -1
  114. package/lib/umd/locale/uk-UA.js +1 -1
  115. package/lib/umd/locale/vi-VN.js +1 -1
  116. package/lib/umd/locale/zh-CN.js +1 -1
  117. package/lib/umd/locale/zh-HK.js +1 -1
  118. package/lib/umd/locale/zh-TW.js +1 -1
  119. package/package.json +21 -19
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0xf973(_0x38ba0d,_0x2241ec){_0x38ba0d=_0x38ba0d-0x169;const _0x2ce560=_0x2ce5();let _0xf973e3=_0x2ce560[_0x38ba0d];return _0xf973e3;}const _0x1b61b5=_0xf973;(function(_0x920ea1,_0x487d1a){const _0x290c8b=_0xf973,_0x4c9922=_0x920ea1();while(!![]){try{const _0x4503cd=-parseInt(_0x290c8b(0x3f0))/0x1+parseInt(_0x290c8b(0x213))/0x2+-parseInt(_0x290c8b(0x465))/0x3*(-parseInt(_0x290c8b(0x2e0))/0x4)+parseInt(_0x290c8b(0x39f))/0x5*(parseInt(_0x290c8b(0x34d))/0x6)+-parseInt(_0x290c8b(0x1d0))/0x7+parseInt(_0x290c8b(0x16e))/0x8*(-parseInt(_0x290c8b(0x201))/0x9)+parseInt(_0x290c8b(0x3bd))/0xa;if(_0x4503cd===_0x487d1a)break;else _0x4c9922['push'](_0x4c9922['shift']());}catch(_0x2eb4b0){_0x4c9922['push'](_0x4c9922['shift']());}}}(_0x2ce5,0x3c542));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x2ff63a,BASES_DASHBOARD_GRID_COLUMNS as _0xaab54,BaseChartRuntimeService as _0x344528,BaseDashboardResourceService as _0x3d9e8d,BaseDashboardWidgetType as _0x287e12,CreateBaseDashboardCommand as _0x5eef0b,DeleteBaseDashboardCommand as _0x457650,RemoveBaseDashboardWidgetCommand as _0x38d6f4,UniverBaseDashboardPlugin as _0x48a2c8,UpdateBaseDashboardCommand as _0x596025,UpdateBasePivotViewCommand as _0x5224e1,UpsertBaseDashboardWidgetCommand as _0x154626,canEditBaseDashboard as _0x590784,canEditBasePivotView as _0x1979d3,createBasePivotTable as _0x2802e0,resolveBasePivotChartRowDirection as _0x31a3e3}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x1ee077,BaseUnitCollaborationStatus as _0x513585,FormulaEditorPanel as _0x2d7be4,IBaseDashboardUIExtensionRegistryService as _0x21885a,IBaseViewUIRegistryService as _0x3cde20,UniverBasesUIPlugin as _0x582d5f,formulaToEditorFormula as _0x6252c1,normalizeEditorFormulaForConfig as _0x252b36,toFormulaMenuTables as _0x3223b0,toMenuFields as _0x5adea1}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x248082,ChartAxisSection as _0x390334,ChartColorField as _0x42c17e,ChartCommonDataMappingSection as _0xeebdb9,ChartEditBlockTitle as _0x3116ab,ChartEditPanel as _0x4be78e,ChartEditPanelSection as _0x2355e5,ChartEditPanelTab as _0x23c4b,ChartEditPanelTabs as _0x4093e4,ChartEditorCapability as _0x644726,ChartEditorProvider as _0x1a8459,ChartFunnelStyleSection as _0xcf6a01,ChartGradientFillField as _0x4d8634,ChartGridlinesAndTicksSection as _0x1aa6c8,ChartHeatmapStyleSection as _0x56d638,ChartHostAdapter as _0x15af59,ChartIndicatorLineSection as _0x115ad3,ChartLegendSection as _0x315885,ChartLineAndAreaSection as _0x4bd27f,ChartNumberFormatAtom as _0x3777b0,ChartParetoSeriesSection as _0x87953f,ChartPieStyleSection as _0x33e40a,ChartRadarStyleSection as _0x1b5c7d,ChartRelationStyleSection as _0x410a6b,ChartSectionAccordion as _0x1ebe26,ChartSectionAccordionContent as _0x34c2b7,ChartSectionAccordionItem as _0x50b2ce,ChartSectionAccordionTrigger as _0x53b0b8,ChartSeriesSection as _0x5d2a01,ChartStackField as _0x21ed83,ChartStyleSection as _0x570b04,ChartThemeField as _0x5dff18,ChartTitlesSection as _0x12ec4e,ChartTrendlineSection as _0x1d5ed9,ChartTypeField as _0x38fccf,ChartTypeSpecificDataSection as _0x19e214,ChartTypeSpecificSetupSection as _0x36674f,ChartTypeSpecificStyleSection as _0x3f38f2,ChartUIService as _0x3b24de,ChartViewStateRegistry as _0x4c482f,ChartWaterfallSetupFields as _0x220f1b,ChartWaterfallStyleSection as _0x3092c5,ChartWordCloudStyleSection as _0x12a34e,DEFAULT_CHART_AXIS_VALUES as _0x4676c5,DEFAULT_CHART_FUNNEL_VALUES as _0x42ec4a,DEFAULT_CHART_HEATMAP_VALUES as _0x79b67c,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x4a13eb,DEFAULT_CHART_LEGEND_VALUES as _0x4ca745,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x1c0966,DEFAULT_CHART_PARETO_VALUES as _0x3f262b,DEFAULT_CHART_PIE_VALUES as _0x2d03d2,DEFAULT_CHART_RADAR_VALUES as _0x197c31,DEFAULT_CHART_RELATION_VALUES as _0x699e34,DEFAULT_CHART_SERIES_VALUES as _0x298208,DEFAULT_CHART_STYLE_VALUES as _0x253cc6,DEFAULT_CHART_TITLE_VALUES as _0x1252aa,DEFAULT_CHART_TRENDLINE_VALUES as _0x29ae5e,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0xb2207,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x5a6691,DEFAULT_CHART_WORD_CLOUD_VALUES as _0xbc49ce,UniverChartUIPlugin as _0x58d829,buildChartTypeSelectOptions as _0xa6c0d,chartTypeSupportsCapability as _0x1171b6,chartTypeSupportsLineAndAreaStyle as _0x5cb5a8,useChartEditorChartType as _0x1abed1,useChartEditorHasRightAxis as _0x24c11a}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0xddc049}from'@univerjs-pro/license';import{ShapeFormulaService as _0x11ff43,UniverShapeEditorPlugin as _0x1f2990,createFormulaShapeData as _0xcdb073}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0x172fb1,BaseFilterConjunction as _0x156687,BaseFilterOperator as _0x3c2fb6,BaseViewType as _0xc2cfc,DependentOn as _0x1d927b,Disposable as _0x95b7c6,ICommandService as _0x4d1d2c,IConfigService as _0x3edd68,IImageIoService as _0x2f3c7d,ILogService as _0x171e0,IPermissionService as _0x22f5bc,IUndoRedoService as _0x348206,IUniverInstanceService as _0x593d99,ImageSourceType as _0x203aef,Inject as _0x15f39b,Injector as _0x379530,LocaleService as _0x1b858e,Plugin as _0x57d39b,RedoCommand as _0x1a258d,ThemeService as _0x2742b2,UndoCommand as _0xee89f3,UniverInstanceType as _0x15499a,createParagraphId as _0x1a4894,dateKit as _0x27630c,generateRandomId as _0x164771,merge as _0xa11b81,numfmt as _0x1f9528,touchDependencies as _0x5ccc88}from'@univerjs/core';import{UniverDocsUIPlugin as _0x33461b}from'@univerjs/docs-ui';import{AscendingIcon as _0x15a480,CalendarIcon as _0x478bd0,ChartIcon as _0x3f9c1c,CloseIcon as _0x2193c5,DeleteIcon as _0x416d77,DescendingIcon as _0x138d3b,ExpandIcon as _0x20a719,FilterIcon as _0x1ec8bd,GripVerticalIcon as _0x1f8933,IncreaseIcon as _0x2c7967,MoreDownIcon as _0x1f207f,MoreHorizontalIcon as _0xa950a5,NumberIcon as _0x22572c,PenIcon as _0x4fd52d,PivotTableIcon as _0x4a6092,RedoIcon as _0x3f411a,SearchIcon as _0x4e8718,TextIcon as _0x4f3230,UndoIcon as _0x8a35b6}from'@univerjs/icons';import{combineLatest as _0x357c2c,map as _0x195dec,merge as _0x460320,skip as _0x3fc5a3}from'rxjs';import{SetBasePermissionCommand as _0x560501,getBaseDashboardPermissionObjectId as _0x272844}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x3c632e}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x166021,ShapeLineTypeEnum as _0x5ee58d,ShapeTypeEnum as _0x30c96a}from'@univerjs-pro/engine-shape';import{Button as _0x92f88c,Checkbox as _0xb2d4e5,DatePicker as _0x36bde1,Dialog as _0x2f7159,DropdownMenu as _0x28cc4c,Input as _0x3f15bc,InputNumber as _0xd7d7e7,MultipleSelect as _0x79fb24,Segmented as _0x238b12,Select as _0x2baf81,Textarea as _0x5e467e,Tooltip as _0x4e74c2,borderClassName as _0x3d82a3,clsx as _0x2afc00,scrollbarClassName as _0x27fdfd}from'@univerjs/design';import{UnitObject as _0xb10101}from'@univerjs/protocol';import{ObjectPermissionButton as _0x4942f1,useDependency as _0x111d86,useObservable as _0x486455}from'@univerjs/ui';import{useCallback as _0x293334,useEffect as _0x181d66,useMemo as _0x48385e,useRef as _0x31ff85,useState as _0x316ac5}from'react';import{Fragment as _0x2a4aec,jsx as _0x8963d5,jsxs as _0x205339}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x267d25,ChartRenderMode as _0x3e50c5,ChartThemeService as _0x5aa831,ChartTypeBits as _0x1663a6,ChartWaterfallStyleTarget as _0x4442bf,IChartRenderModelManagerService as _0x26dcce,RTLChartStyle as _0x2d7182,chartBitsUtils as _0x1f7fbc,chartTypeCanUseTrendLine as _0x22a375,resolveChartRuntimeStyle as _0x27af81,resolveDefaultChartHostFrameStyle as _0x19fc53,toChartModelUpdate as _0x4586eb}from'@univerjs-pro/engine-chart';import{PivotCellStyleTypeEnum as _0x1b77bd,PivotDataFieldDataTypeEnum as _0x20590e,PivotDataFieldSortOperatorEnum as _0x168d69,PivotFilterTypeEnum as _0x576e82,PivotLayoutTypeEnum as _0xb94214,PivotSubtotalPositionEnum as _0x3af012,PivotSubtotalTypeEnum as _0x3bc122,PivotTableFiledAreaEnum as _0x8aa50f,PivotTableValuePositionEnum as _0x2095ab,isErrorValue as _0x32656a,isPrefixValue as _0xf7112f}from'@univerjs-pro/engine-pivot';var qn=_0x1b61b5(0x2e1),Jn=_0x1b61b5(0x296);const Yn={};function Xn(_0x291d94,_0x5756c9){const _0x40ee8d=_0x1b61b5;let _0x422898=_0x111d86(_0x22f5bc);return _0x486455(()=>_0x422898['permissionPointUpdate$'][_0x40ee8d(0x399)](_0x195dec(()=>_0x590784(_0x422898,_0x291d94,_0x5756c9))),_0x590784(_0x422898,_0x291d94,_0x5756c9),!0x1,[_0x5756c9,_0x422898,_0x291d94]);}function Zn(_0x141099,_0x51cbd3,_0x115336){const _0x10546c=_0x1b61b5;let _0x595675=_0x111d86(_0x22f5bc);return _0x486455(()=>_0x595675[_0x10546c(0x237)]['pipe'](_0x195dec(()=>_0x1979d3(_0x595675,_0x141099,_0x51cbd3,_0x115336))),_0x1979d3(_0x595675,_0x141099,_0x51cbd3,_0x115336),!0x1,[_0x595675,_0x51cbd3,_0x141099,_0x115336]);}function Qn(_0x20264e,_0x3bf5ae=_0x1b61b5(0x44e)){const _0x1b2d42=_0x1b61b5;return{'backgroundImage':'url('+JSON[_0x1b2d42(0x423)](_0x20264e)+')','backgroundPosition':_0x3bf5ae==='repeat'?_0x1b2d42(0x2f7):_0x1b2d42(0x248),'backgroundRepeat':_0x3bf5ae===_0x1b2d42(0x333)?_0x1b2d42(0x333):_0x1b2d42(0x2ad),'backgroundSize':_0x3bf5ae==='cover'?_0x1b2d42(0x44e):_0x1b2d42(0x295)};}const $n={'alignment':_0x1b61b5(0x212),'currency':'USD','decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':'auto','numberFormat':_0x1b61b5(0x1bc)},er={'CNY':'¥','EUR':'€','USD':'$'};function tr(_0x4db482){const _0x55747e=_0x1b61b5;var _0x17f050;let _0x202f50=ar(((_0x17f050=_0x4db482[_0x55747e(0x179)][_0x55747e(0x243)])==null||(_0x17f050=_0x17f050[_0x55747e(0x3dc)])==null?void 0x0:_0x17f050['pattern'])??'');return{...$n,..._0x202f50,..._0x4db482[_0x55747e(0x234)]};}function nr(_0x2fc88f,_0x31dade){const _0x4d4341=_0x1b61b5;let _0x15a9f3={..._0x2fc88f[_0x4d4341(0x234)],..._0x31dade},_0x48ba73=tr({..._0x2fc88f,'appearance':_0x15a9f3}),_0x13cdc7=_0x2fc88f[_0x4d4341(0x179)][_0x4d4341(0x243)]??{'formula':''};return{..._0x2fc88f,'appearance':_0x15a9f3,'shapeData':{..._0x2fc88f[_0x4d4341(0x179)],'formulaBinding':{..._0x13cdc7,'numberFormat':{'pattern':rr(_0x48ba73['numberFormat'],_0x48ba73['decimalPlaces'],_0x48ba73[_0x4d4341(0x3c4)])}}}};}function rr(_0x11849c,_0x5e26ad,_0xfd6e6d){const _0x2bd20e=_0x1b61b5;let _0x9559e6=Math[_0x2bd20e(0x2fc)](0x0,Math[_0x2bd20e(0x3a9)](0x8,Math[_0x2bd20e(0x278)](_0x5e26ad))),_0x5e6f8a=_0x9559e6?'.'+'0'[_0x2bd20e(0x333)](_0x9559e6):'';switch(_0x11849c){case _0x2bd20e(0x39c):return'0'+_0x5e6f8a;case _0x2bd20e(0x25b):return'0'+_0x5e6f8a+'%';case _0x2bd20e(0x3c4):return(er[_0xfd6e6d]??_0xfd6e6d)+_0x2bd20e(0x1dc)+_0x5e6f8a;case'grouped':return'#,##0'+_0x5e6f8a;case _0x2bd20e(0x36a):case _0x2bd20e(0x1bc):return _0x2bd20e(0x325);}}function ir(_0x3a6ce6,_0x327518,_0x26bd34){const _0x1b3612=_0x1b61b5;return _0x26bd34['numberFormat']!==_0x1b3612(0x36a)||typeof _0x327518!='number'||!Number[_0x1b3612(0x1bb)](_0x327518)?_0x3a6ce6:new Intl[(_0x1b3612(0x397))](void 0x0,{'notation':_0x1b3612(0x36a),'minimumFractionDigits':_0x26bd34[_0x1b3612(0x38e)]??0x0,'maximumFractionDigits':_0x26bd34[_0x1b3612(0x38e)]??0x0})[_0x1b3612(0x384)](_0x327518);}function ar(_0x38d998){const _0x2da7b4=_0x1b61b5;var _0x4fbbd0,_0x403759;if(!_0x38d998||_0x38d998===_0x2da7b4(0x325))return{};let _0x266707=_0x38d998[_0x2da7b4(0x3ac)](/\.([0#]+)/),_0x2c9d5b=(_0x266707==null||(_0x4fbbd0=_0x266707[0x1])==null?void 0x0:_0x4fbbd0[_0x2da7b4(0x39e)])??0x0;if(_0x38d998[_0x2da7b4(0x1e0)]('%'))return{'decimalPlaces':_0x2c9d5b,'numberFormat':_0x2da7b4(0x25b)};let _0x40d304=(_0x403759=Object['entries'](er)[_0x2da7b4(0x26f)](([,_0x1395c4])=>_0x38d998[_0x2da7b4(0x1e0)](_0x1395c4)))==null?void 0x0:_0x403759[0x0];return _0x40d304?{'currency':_0x40d304,'decimalPlaces':_0x2c9d5b,'numberFormat':_0x2da7b4(0x3c4)}:{'decimalPlaces':_0x2c9d5b,'numberFormat':_0x38d998[_0x2da7b4(0x1e0)](',')?_0x2da7b4(0x374):_0x2da7b4(0x39c)};}const or={'center':_0x1b61b5(0x248),'left':'flex-start','right':_0x1b61b5(0x17d)};function sr({dashboardId:_0x44c836,unitId:_0x408f0b,widget:_0x485fd1}){const _0x24ba10=_0x1b61b5;var _0x2506cc,_0x262532,_0x41b6ad,_0x534751,_0x48c3ac,_0x381041,_0x5d451e,_0x450005,_0x174c55;let _0x3e426e=_0x111d86(_0x11ff43),_0x5a2484=_0x111d86(_0x2f3c7d),_0x4412d7=_0x111d86(_0x1b858e),_0x44fc27=_0x48385e(()=>({'hostType':_0x15499a[_0x24ba10(0x438)],'unitId':_0x408f0b,'subUnitId':_0x44c836,'shapeId':_0x485fd1['id']}),[_0x44c836,_0x408f0b,_0x485fd1['id']]),[_0xd2c3a0,_0x368cfa]=_0x316ac5(()=>_0x3e426e['getPresentation'](_0x44fc27)),[_0x22fd06,_0x369c5e]=_0x316ac5(()=>{const _0x148d1d=_0x24ba10;var _0x4361d7;return(_0x4361d7=_0x3e426e[_0x148d1d(0x1b5)](_0x44fc27))==null?void 0x0:_0x4361d7[_0x148d1d(0x2e7)];}),[_0x34d35c,_0x113e69]=_0x316ac5(),_0x29ce17=_0x31ff85(null),_0x3a097d=_0x31ff85(null),_0x2507bc=tr(_0x485fd1);_0x181d66(()=>{const _0x3f7a0b=_0x24ba10;let _0x2c01d2=_0x3e426e[_0x3f7a0b(0x365)][_0x3f7a0b(0x464)](_0x2215ae=>{const _0x262173=_0x3f7a0b;_0x2215ae[_0x262173(0x362)]===_0x408f0b&&_0x2215ae[_0x262173(0x2f1)]===_0x44c836&&_0x2215ae[_0x262173(0x3a3)]===_0x485fd1['id']&&(_0x368cfa(_0x2215ae[_0x262173(0x1b0)]),_0x369c5e(_0x2215ae[_0x262173(0x28a)]['value']));});return()=>_0x2c01d2[_0x3f7a0b(0x1f5)]();},[_0x44c836,_0x3e426e,_0x44fc27,_0x408f0b,_0x485fd1['id']]),_0x181d66(()=>{const _0x1e9a2f=_0x24ba10;let _0x56f93a=_0x2507bc[_0x1e9a2f(0x307)];if(!_0x56f93a||_0x56f93a['sourceType']!==_0x203aef['UUID'])return;let _0x44c5bd=_0x5a2484['getImageSourceCache'](_0x56f93a[_0x1e9a2f(0x2d3)],_0x56f93a[_0x1e9a2f(0x2e5)]);if(_0x44c5bd!=null&&_0x44c5bd[_0x1e9a2f(0x3a2)])return;let _0xa987c5=!0x0;return _0x5a2484[_0x1e9a2f(0x358)](_0x56f93a[_0x1e9a2f(0x2d3)])[_0x1e9a2f(0x274)](_0x37a47e=>{const _0x778d86=_0x1e9a2f;_0xa987c5&&_0x113e69({'source':_0x56f93a[_0x778d86(0x2d3)],'value':_0x37a47e});})[_0x1e9a2f(0x19f)](()=>void 0x0),()=>{_0xa987c5=!0x1;};},[_0x2507bc[_0x24ba10(0x307)],_0x5a2484]);let _0xc67161=((_0x2506cc=_0x2507bc[_0x24ba10(0x307)])==null?void 0x0:_0x2506cc['sourceType'])===_0x203aef[_0x24ba10(0x37c)]?((_0x262532=_0x5a2484[_0x24ba10(0x1cf)](_0x2507bc[_0x24ba10(0x307)]['source'],_0x2507bc[_0x24ba10(0x307)][_0x24ba10(0x2e5)]))==null?void 0x0:_0x262532[_0x24ba10(0x3a2)])??((_0x34d35c==null?void 0x0:_0x34d35c[_0x24ba10(0x2d3)])===_0x2507bc[_0x24ba10(0x307)][_0x24ba10(0x2d3)]?_0x34d35c['value']:''):((_0x41b6ad=_0x2507bc[_0x24ba10(0x307)])==null?void 0x0:_0x41b6ad['source'])??'',_0x1b7254=_0x485fd1[_0x24ba10(0x179)]['shapeText'],_0x556b72=_0x1b7254&&_0x24ba10(0x42f)in _0x1b7254?(_0x534751=_0x1b7254[_0x24ba10(0x42f)])==null?void 0x0:_0x534751['doc']:void 0x0,_0x4bc795=ir((_0xd2c3a0==null?void 0x0:_0xd2c3a0[_0x24ba10(0x326)])??'',_0x22fd06,_0x2507bc),_0x4f4fe4=_0x485fd1[_0x24ba10(0x179)][_0x24ba10(0x3ed)],_0xcd2680=_0x485fd1[_0x24ba10(0x179)][_0x24ba10(0x16f)],_0x284d6d=_0x556b72==null||(_0x48c3ac=_0x556b72[_0x24ba10(0x3ec)])==null?void 0x0:_0x48c3ac[_0x24ba10(0x19a)],_0x49c4da=_0x485fd1['description']??_0x485fd1[_0x24ba10(0x379)]??'';return _0x181d66(()=>{let _0x388fe8=_0x29ce17['current'],_0x5b8be9=_0x3a097d['current'];if(!_0x388fe8||!_0x5b8be9)return;let _0x37b022=()=>{const _0x882d45=_0xf973;if(_0x2507bc[_0x882d45(0x3e9)]==='custom'||!_0x388fe8[_0x882d45(0x446)]||!_0x388fe8['clientHeight']){_0x5b8be9['style']['fontSize']=_0x2507bc[_0x882d45(0x408)]+'px';return;}let _0x7fa9b0=0x1,_0x46d4f5=0x48,_0x9b4842=_0x7fa9b0;for(;_0x7fa9b0<=_0x46d4f5;){let _0x49c949=Math[_0x882d45(0x406)]((_0x7fa9b0+_0x46d4f5)/0x2);_0x5b8be9[_0x882d45(0x1b6)][_0x882d45(0x408)]=_0x49c949+'px',_0x5b8be9[_0x882d45(0x1d9)]<=_0x388fe8[_0x882d45(0x446)]&&_0x5b8be9[_0x882d45(0x3ce)]<=_0x388fe8['clientHeight']?(_0x9b4842=_0x49c949,_0x7fa9b0=_0x49c949+0x1):_0x46d4f5=_0x49c949-0x1;}_0x5b8be9['style'][_0x882d45(0x408)]=_0x9b4842+'px';};if(_0x37b022(),typeof ResizeObserver>'u')return;let _0x4a6661=new ResizeObserver(_0x37b022);return _0x4a6661['observe'](_0x388fe8),()=>_0x4a6661['disconnect']();},[_0x2507bc[_0x24ba10(0x408)],_0x2507bc[_0x24ba10(0x3e9)],_0x4bc795]),_0x205339(_0x24ba10(0x2cd),{'data-dashboard-formula-shape':_0x485fd1['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':((_0x381041=_0x485fd1[_0x24ba10(0x234)])==null?void 0x0:_0x381041[_0x24ba10(0x3d3)])??((_0x4f4fe4==null?void 0x0:_0x4f4fe4[_0x24ba10(0x2b9)])===_0x166021[_0x24ba10(0x398)]?_0x4f4fe4[_0x24ba10(0x405)]??void 0x0:void 0x0),'border':(_0xcd2680==null?void 0x0:_0xcd2680[_0x24ba10(0x2c6)])===_0x5ee58d['SolidLine']?(_0xcd2680[_0x24ba10(0x2bc)]??0x1)+_0x24ba10(0x187)+(_0xcd2680[_0x24ba10(0x405)]??_0x24ba10(0x1fa)):void 0x0,'borderRadius':_0x485fd1[_0x24ba10(0x38d)]===_0x30c96a[_0x24ba10(0x1e9)]?0xc:void 0x0,'color':((_0x5d451e=_0x485fd1[_0x24ba10(0x234)])==null?void 0x0:_0x5d451e['textColor'])??(_0xd2c3a0==null?void 0x0:_0xd2c3a0[_0x24ba10(0x405)])??(_0x284d6d==null||(_0x450005=_0x284d6d['cl'])==null?void 0x0:_0x450005[_0x24ba10(0x412)])??void 0x0,'fontWeight':_0x284d6d!=null&&_0x284d6d['bl']?0x258:void 0x0,'textAlign':_0x2507bc[_0x24ba10(0x285)]},'children':[_0xc67161&&_0x8963d5(_0x24ba10(0x2ac),{'src':_0xc67161,'alt':'','aria-hidden':'true','className':_0x24ba10(0x331),'style':{'objectFit':((_0x174c55=_0x2507bc[_0x24ba10(0x307)])==null?void 0x0:_0x174c55[_0x24ba10(0x1df)])??_0x24ba10(0x44e)}}),_0x205339(_0x24ba10(0x2cd),{'className':_0x24ba10(0x238),'children':[_0x49c4da&&_0x8963d5(_0x24ba10(0x2cd),{'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':_0x49c4da}),_0x8963d5(_0x24ba10(0x2cd),{'ref':_0x29ce17,'data-dashboard-formula-value':!0x0,'aria-label':_0x49c4da||_0x4412d7['t'](_0x24ba10(0x43f)),'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[_0x2507bc[_0x24ba10(0x285)]]},'children':_0x8963d5(_0x24ba10(0x33a),{'ref':_0x3a097d,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x2507bc[_0x24ba10(0x3e9)],'className':_0x24ba10(0x2fb),'children':_0x4bc795})})]})]});}function cr(_0xcfc99d,_0x9ce8af,_0x19535d,_0x5d3ad6){const _0x82afa0=_0x1b61b5;let _0x469c9c={..._0xcfc99d};if(_0x9ce8af['includes']('w')){let _0x279bd9=_0xcfc99d['column']+_0xcfc99d[_0x82afa0(0x1f6)];_0x469c9c[_0x82afa0(0x451)]=Math[_0x82afa0(0x2fc)](0x0,Math[_0x82afa0(0x3a9)](_0x279bd9-0x1,_0xcfc99d[_0x82afa0(0x451)]+_0x19535d)),_0x469c9c[_0x82afa0(0x1f6)]=_0x279bd9-_0x469c9c[_0x82afa0(0x451)];}else _0x9ce8af[_0x82afa0(0x1e0)]('e')&&(_0x469c9c['columnSpan']=Math['max'](0x1,Math[_0x82afa0(0x3a9)](_0xaab54-_0xcfc99d[_0x82afa0(0x451)],_0xcfc99d['columnSpan']+_0x19535d)));if(_0x9ce8af[_0x82afa0(0x1e0)]('n')){let _0x4f1fd0=_0xcfc99d[_0x82afa0(0x44d)]+_0xcfc99d[_0x82afa0(0x2d4)];_0x469c9c[_0x82afa0(0x44d)]=Math[_0x82afa0(0x2fc)](0x0,Math['min'](_0x4f1fd0-0x1,_0xcfc99d[_0x82afa0(0x44d)]+_0x5d3ad6)),_0x469c9c[_0x82afa0(0x2d4)]=_0x4f1fd0-_0x469c9c['row'];}else _0x9ce8af['includes']('s')&&(_0x469c9c['rowSpan']=Math[_0x82afa0(0x2fc)](0x1,_0xcfc99d['rowSpan']+_0x5d3ad6));return _0x469c9c;}function lr(_0x396ead){const _0x150219=_0x1b61b5;let _0x3fcb1d=Math[_0x150219(0x2fc)](0x1,Math['min'](_0xaab54,Math[_0x150219(0x278)](_0x396ead[_0x150219(0x1f6)])));return{'column':Math[_0x150219(0x2fc)](0x0,Math['min'](_0xaab54-_0x3fcb1d,Math[_0x150219(0x278)](_0x396ead[_0x150219(0x451)]))),'row':Math[_0x150219(0x2fc)](0x0,Math[_0x150219(0x278)](_0x396ead[_0x150219(0x44d)])),'columnSpan':_0x3fcb1d,'rowSpan':Math['max'](0x1,Math[_0x150219(0x278)](_0x396ead[_0x150219(0x2d4)]))};}function ur(_0x4c9f3f,_0x2853ee,_0x55e47a){const _0x1a7d8a=_0x1b61b5;let _0x43adb9=new Map(_0x4c9f3f),_0x45cfb4=lr(_0x55e47a);_0x43adb9[_0x1a7d8a(0x196)](_0x2853ee,_0x45cfb4);let _0x3ee20f=[[_0x2853ee,_0x45cfb4]];for(let [_0x2de278,_0x4fe5c4]of _0x43adb9){if(_0x2de278===_0x2853ee)continue;let _0x132371=lr(_0x4fe5c4);for(;_0x3ee20f[_0x1a7d8a(0x30a)](([,_0x1a11f6])=>fr(_0x132371,_0x1a11f6));)_0x132371={..._0x132371,'row':_0x132371['row']+0x1};for(;_0x132371['row']>0x0;){let _0x3aebd3={..._0x132371,'row':_0x132371[_0x1a7d8a(0x44d)]-0x1};if(_0x3ee20f[_0x1a7d8a(0x30a)](([,_0x3c004a])=>fr(_0x3aebd3,_0x3c004a)))break;_0x132371=_0x3aebd3;}_0x3ee20f['push']([_0x2de278,_0x132371]),_0x43adb9[_0x1a7d8a(0x196)](_0x2de278,_0x132371);}return _0x43adb9;}function dr(_0x58c115,_0x2c33d8,_0x26e563,_0x158aee=0x38,_0x2bec74=0x16){const _0x5df2e3=_0x1b61b5;return _0x58c115<_0x2c33d8+_0x158aee?-Math[_0x5df2e3(0x33f)](_0x2bec74*(0x1-Math[_0x5df2e3(0x2fc)](0x0,_0x58c115-_0x2c33d8)/_0x158aee)):_0x58c115>_0x26e563-_0x158aee?Math['ceil'](_0x2bec74*(0x1-Math['max'](0x0,_0x26e563-_0x58c115)/_0x158aee)):0x0;}function fr(_0x35e221,_0x355603){const _0x43ce75=_0x1b61b5;return _0x35e221[_0x43ce75(0x451)]<_0x355603[_0x43ce75(0x451)]+_0x355603[_0x43ce75(0x1f6)]&&_0x35e221[_0x43ce75(0x451)]+_0x35e221[_0x43ce75(0x1f6)]>_0x355603[_0x43ce75(0x451)]&&_0x35e221[_0x43ce75(0x44d)]<_0x355603[_0x43ce75(0x44d)]+_0x355603['rowSpan']&&_0x35e221[_0x43ce75(0x44d)]+_0x35e221[_0x43ce75(0x2d4)]>_0x355603[_0x43ce75(0x44d)];}const pr=[{'direction':'nw','className':'univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize'},{'direction':'n','className':_0x1b61b5(0x2a3)},{'direction':'ne','className':_0x1b61b5(0x19b)},{'direction':'e','className':_0x1b61b5(0x214)},{'direction':'se','className':_0x1b61b5(0x305)},{'direction':'s','className':_0x1b61b5(0x2fe)},{'direction':'sw','className':_0x1b61b5(0x1b3)},{'direction':'w','className':_0x1b61b5(0x324)}];function mr({dashboard:_0x1366e6,dragLabel:_0x1a6cb2,editable:_0x416a77=!0x0,onLayoutsCommit:_0x4a1f8,onSelectWidget:_0xe50a41,renderWidget:_0xed8591,renderWidgetActions:_0x43609d,resizeLabel:_0x32bce2,selectedWidgetId:_0x695b32,widgetLabel:_0x309014}){const _0x5232ee=_0x1b61b5;let _0x188a1d=_0x31ff85(null),_0x44558b=_0x31ff85(null),[_0x889c72,_0xb2f48c]=_0x316ac5(!0x1),_0x5375b7=_0x48385e(()=>new Map(_0x1366e6['widgetOrder']['flatMap'](_0x5793cb=>{const _0x31179b=_0xf973;let _0x47f1e7=_0x1366e6[_0x31179b(0x1e2)][_0x5793cb];return _0x47f1e7?[[_0x5793cb,_0x47f1e7[_0x31179b(0x1b8)]]]:[];})),[_0x1366e6]),[_0x3a2aa3,_0x2d8c9e]=_0x316ac5(_0x5375b7);_0x181d66(()=>{_0x44558b['current']||_0x2d8c9e(_0x5375b7);},[_0x5375b7]),_0x181d66(()=>{const _0x4cbd08=_0xf973;if(!_0x889c72)return;let _0x15a45b=_0x39143d=>{const _0x1445be=_0xf973;let _0x57eeb4=_0x188a1d[_0x1445be(0x240)];if(!_0x57eeb4)return null;let _0x37b0c2=_0x57eeb4[_0x1445be(0x205)](),_0x2cdeeb=Math[_0x1445be(0x2fc)](0x1,(_0x37b0c2[_0x1445be(0x2bc)]-0x8*(_0xaab54-0x1))/_0xaab54),_0x4373ee=Math['round']((_0x57eeb4[_0x1445be(0x1a0)]-_0x39143d['startScrollTop'])/(_0x2ff63a+0x8)),_0x220fd8=Math[_0x1445be(0x278)]((_0x39143d[_0x1445be(0x1a2)]-_0x39143d[_0x1445be(0x2ea)])/(_0x2cdeeb+0x8)),_0x39257b=Math[_0x1445be(0x278)]((_0x39143d[_0x1445be(0x445)]-_0x39143d[_0x1445be(0x35d)])/(_0x2ff63a+0x8))+_0x4373ee,_0x247972=_0x39143d[_0x1445be(0x456)]===_0x1445be(0x1a8)?{..._0x39143d[_0x1445be(0x416)],'column':_0x39143d[_0x1445be(0x416)]['column']+_0x220fd8,'row':_0x39143d[_0x1445be(0x416)][_0x1445be(0x44d)]+_0x39257b}:cr(_0x39143d[_0x1445be(0x416)],_0x39143d[_0x1445be(0x1ee)]??'se',_0x220fd8,_0x39257b),_0x407c17=ur(_0x39143d[_0x1445be(0x327)],_0x39143d['id'],_0x247972);return _0x2d8c9e(_0x407c17),_0x407c17;},_0x4ce231=_0xdd35aa=>{const _0x3ec209=_0xf973;let _0x31e1ad=_0x44558b[_0x3ec209(0x240)];if(!_0x31e1ad)return;let _0x368ea2={..._0x31e1ad,'pointerX':_0xdd35aa['clientX'],'pointerY':_0xdd35aa[_0x3ec209(0x400)]};_0x44558b['current']=_0x368ea2;},_0x28fd93=()=>{const _0x564266=_0xf973;let _0x1be5e1=_0x44558b[_0x564266(0x240)],_0x234c8f=_0x1be5e1?_0x15a45b(_0x1be5e1):null;_0x44558b[_0x564266(0x240)]=null,_0xb2f48c(!0x1),_0x234c8f&&_0x4a1f8(_0x234c8f);},_0x5e2ba9=0x0,_0x555bfa=()=>{const _0x50368d=_0xf973;let _0x5bb520=_0x188a1d[_0x50368d(0x240)],_0x459ffd=_0x44558b[_0x50368d(0x240)];if(_0x5bb520&&_0x459ffd){let _0x438bd6=_0x5bb520['getBoundingClientRect'](),_0x31176c=dr(_0x459ffd[_0x50368d(0x445)],_0x438bd6[_0x50368d(0x366)],_0x438bd6[_0x50368d(0x3e3)]);_0x31176c!==0x0&&(_0x5bb520[_0x50368d(0x1a0)]+=_0x31176c),_0x15a45b(_0x459ffd),_0x5e2ba9=requestAnimationFrame(_0x555bfa);}};return _0x5e2ba9=requestAnimationFrame(_0x555bfa),window[_0x4cbd08(0x2dc)](_0x4cbd08(0x34a),_0x4ce231),window[_0x4cbd08(0x2dc)](_0x4cbd08(0x352),_0x28fd93),()=>{const _0x161cef=_0x4cbd08;cancelAnimationFrame(_0x5e2ba9),window['removeEventListener'](_0x161cef(0x34a),_0x4ce231),window[_0x161cef(0x215)]('pointerup',_0x28fd93);};},[_0x889c72,_0x4a1f8]);let _0x2e577e=Math['max'](0x8,...Array['from'](_0x3a2aa3[_0x5232ee(0x260)]())[_0x5232ee(0x32e)](_0x58b5d4=>_0x58b5d4['row']+_0x58b5d4[_0x5232ee(0x2d4)])),_0x109315=(_0xc6d6fd,_0x11685f,_0x3d346a,_0x335c66)=>{const _0x8f0ee1=_0x5232ee;_0xc6d6fd[_0x8f0ee1(0x413)](),_0xc6d6fd[_0x8f0ee1(0x19c)]();let _0x2c0b18=_0x188a1d[_0x8f0ee1(0x240)],_0x5b41cb={'id':_0x11685f['id'],'mode':_0x3d346a,'pointerX':_0xc6d6fd['clientX'],'pointerY':_0xc6d6fd[_0x8f0ee1(0x400)],'startX':_0xc6d6fd['clientX'],'startY':_0xc6d6fd[_0x8f0ee1(0x400)],'startScrollTop':(_0x2c0b18==null?void 0x0:_0x2c0b18[_0x8f0ee1(0x1a0)])??0x0,'initial':_0x3a2aa3['get'](_0x11685f['id'])??_0x11685f[_0x8f0ee1(0x1b8)],'initialLayouts':new Map(_0x3a2aa3),'resizeDirection':_0x335c66};_0x44558b[_0x8f0ee1(0x240)]=_0x5b41cb,_0xb2f48c(!0x0);};return _0x8963d5(_0x5232ee(0x2cd),{'ref':_0x188a1d,'data-dashboard-scroll-container':!0x0,'className':_0x2afc00('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',_0x27fdfd),'onClick':_0x416a77?_0x47b995=>{const _0x5c8910=_0x5232ee;if(!(_0x47b995[_0x5c8910(0x206)]instanceof Node)||!_0x47b995[_0x5c8910(0x45e)]['contains'](_0x47b995['target']))return;let _0x104b52=_0x47b995[_0x5c8910(0x206)]instanceof Element?_0x47b995[_0x5c8910(0x206)]:_0x47b995[_0x5c8910(0x206)][_0x5c8910(0x37e)];_0x104b52!=null&&_0x104b52[_0x5c8910(0x2ba)](_0x5c8910(0x37f))||_0xe50a41==null||_0xe50a41();}:void 0x0,'children':_0x8963d5(_0x5232ee(0x2cd),{'data-dashboard-grid':!0x0,'className':_0x5232ee(0x40e),'style':{'gap':0x8,'gridAutoRows':_0x2ff63a,'minHeight':_0x2e577e*(_0x2ff63a+0x8)},'children':_0x1366e6[_0x5232ee(0x16a)][_0x5232ee(0x32e)](_0x51d9bb=>{const _0x4e1a64=_0x5232ee;var _0x20fee4;let _0x5b89a9=_0x1366e6[_0x4e1a64(0x1e2)][_0x51d9bb],_0x6c08ab=_0x3a2aa3[_0x4e1a64(0x1f7)](_0x51d9bb);return!_0x5b89a9||!_0x6c08ab?null:_0x205339(_0x4e1a64(0x44a),{'data-dashboard-widget':_0x5b89a9['id'],'aria-label':_0x5b89a9[_0x4e1a64(0x379)]??_0x309014(_0x5b89a9),'className':_0x2afc00(_0x4e1a64(0x3aa),_0x5b89a9['type']===_0x287e12[_0x4e1a64(0x23d)]||_0x5b89a9[_0x4e1a64(0x16c)]===_0x287e12[_0x4e1a64(0x3be)]?_0x4e1a64(0x2f8):_0x4e1a64(0x3b8),_0x416a77&&_0x695b32===_0x5b89a9['id']?_0x4e1a64(0x178):_0x4e1a64(0x1c4)),'style':{'gridColumn':_0x6c08ab[_0x4e1a64(0x451)]+0x1+_0x4e1a64(0x1c7)+_0x6c08ab[_0x4e1a64(0x1f6)],'gridRow':_0x6c08ab[_0x4e1a64(0x44d)]+0x1+_0x4e1a64(0x1c7)+_0x6c08ab['rowSpan']},'tabIndex':_0x416a77?0x0:void 0x0,'onClick':_0x416a77?()=>_0xe50a41==null?void 0x0:_0xe50a41(_0x5b89a9['id']):void 0x0,'onFocus':_0x416a77?()=>_0xe50a41==null?void 0x0:_0xe50a41(_0x5b89a9['id']):void 0x0,'children':[_0x416a77&&_0x8963d5('button',{'type':'button','aria-label':_0x1a6cb2,'data-dashboard-drag-handle':_0x5b89a9['id'],'className':_0x2afc00('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',_0x889c72&&((_0x20fee4=_0x44558b[_0x4e1a64(0x240)])==null?void 0x0:_0x20fee4['id'])===_0x5b89a9['id']&&_0x44558b[_0x4e1a64(0x240)][_0x4e1a64(0x456)]==='move'?_0x4e1a64(0x3fa):'univer-cursor-grab'),'onPointerDown':_0x2dd97a=>_0x109315(_0x2dd97a,_0x5b89a9,_0x4e1a64(0x1a8)),'children':_0x8963d5(_0x1f8933,{'className':_0x4e1a64(0x27b),'aria-hidden':_0x4e1a64(0x341)})}),_0x416a77&&_0x8963d5(_0x4e1a64(0x2cd),{'className':_0x4e1a64(0x1a9),'children':_0x43609d==null?void 0x0:_0x43609d(_0x5b89a9)}),_0x8963d5(_0x4e1a64(0x2cd),{'className':_0x4e1a64(0x241),'children':_0xed8591(_0x5b89a9)}),_0x416a77&&pr['map'](({className:_0x516b88,direction:_0x1e66c1})=>{const _0x178347=_0x4e1a64;let _0x452b2d=_0x1e66c1[_0x178347(0x39e)]===0x2;return _0x8963d5(_0x178347(0x270),{'type':_0x178347(0x270),'aria-label':_0x32bce2,'data-dashboard-resize-handle':_0x1e66c1,'data-dashboard-resize-control':_0x452b2d?_0x1e66c1:void 0x0,'data-dashboard-resize-edge':_0x452b2d?void 0x0:_0x1e66c1,'className':_0x2afc00('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',_0x452b2d?_0x178347(0x2ab):_0x178347(0x2c7),_0x516b88,_0x695b32===_0x5b89a9['id']&&_0x178347(0x2d5)),'onPointerDown':_0x5689b1=>_0x109315(_0x5689b1,_0x5b89a9,'resize',_0x1e66c1)},_0x1e66c1);})]},_0x5b89a9['id']);})})});}const hr={'alignment':_0x1b61b5(0x212),'fontSize':0x12,'fontSizeMode':_0x1b61b5(0x295)};function gr(_0x430609){const _0x3dbecb=_0x1b61b5;return{...hr,..._0x430609[_0x3dbecb(0x234)]};}function _r(_0x5e3e42){const _0x3c1455=_0x1b61b5;var _0x52c6cd;return((_0x52c6cd=_0x5e3e42[_0x3c1455(0x2de)])==null?void 0x0:_0x52c6cd['dataStream'][_0x3c1455(0x202)](/\r\n$/,'')[_0x3c1455(0x202)](/\r/g,'\x0a'))??'';}function vr(_0x38ca93,_0x12d202){const _0x580d45=_0x1b61b5;var _0x43f997;let _0x4cef30=_0x12d202[_0x580d45(0x202)](/\r\n|\r/g,'\x0a')['split']('\x0a'),_0x47eab3=_0x4cef30[_0x580d45(0x31c)]('\x0d')+'\x0d\x0a',_0x1c840a=((_0x43f997=_0x38ca93[_0x580d45(0x2de)])==null?void 0x0:_0x43f997[_0x580d45(0x2c2)])??[],_0x3d25f6=new Set(_0x1c840a['map'](_0x2d3e51=>_0x2d3e51[_0x580d45(0x2a1)])),_0x45eb62=0x0,_0x2694cb=_0x4cef30['map']((_0x5ca819,_0x5b60ba)=>{const _0x14574e=_0x580d45;_0x45eb62+=_0x5ca819[_0x14574e(0x39e)];let _0x4ffbd2={..._0x1c840a[_0x5b60ba]??{'startIndex':_0x45eb62,'paragraphId':_0x1a4894(_0x3d25f6)},'startIndex':_0x45eb62};return _0x45eb62+=0x1,_0x4ffbd2;});return{..._0x38ca93,'body':{..._0x38ca93[_0x580d45(0x2de)],'dataStream':_0x47eab3,'paragraphs':_0x2694cb,'textRuns':[]}};}function yr(_0xcf07cf){'@babel/helpers - typeof';const _0x38bbe5=_0x1b61b5;return yr=typeof Symbol=='function'&&typeof Symbol[_0x38bbe5(0x386)]==_0x38bbe5(0x3ea)?function(_0x27119a){return typeof _0x27119a;}:function(_0x3b3866){const _0x9ee40d=_0x38bbe5;return _0x3b3866&&typeof Symbol=='function'&&_0x3b3866['constructor']===Symbol&&_0x3b3866!==Symbol['prototype']?_0x9ee40d(0x3ea):typeof _0x3b3866;},yr(_0xcf07cf);}function br(_0x596feb,_0x335e48){const _0x5ba25b=_0x1b61b5;if(yr(_0x596feb)!=_0x5ba25b(0x280)||!_0x596feb)return _0x596feb;var _0x51d61c=_0x596feb[Symbol['toPrimitive']];if(_0x51d61c!==void 0x0){var _0x9d32f=_0x51d61c[_0x5ba25b(0x183)](_0x596feb,_0x335e48||_0x5ba25b(0x3f6));if(yr(_0x9d32f)!=_0x5ba25b(0x280))return _0x9d32f;throw TypeError(_0x5ba25b(0x3d5));}return(_0x335e48===_0x5ba25b(0x429)?String:Number)(_0x596feb);}function xr(_0x4dd39e){const _0x3f7412=_0x1b61b5;var _0x451ee2=br(_0x4dd39e,_0x3f7412(0x429));return yr(_0x451ee2)==_0x3f7412(0x3ea)?_0x451ee2:_0x451ee2+'';}function Sr(_0x446096,_0x307eb1,_0x81c237){const _0x240463=_0x1b61b5;return(_0x307eb1=xr(_0x307eb1))in _0x446096?Object[_0x240463(0x2bf)](_0x446096,_0x307eb1,{'value':_0x81c237,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x446096[_0x307eb1]=_0x81c237,_0x446096;}function X(_0x516425,_0x541a1e){return function(_0x59acd6,_0x4434a5){_0x541a1e(_0x59acd6,_0x4434a5,_0x516425);};}function Cr(_0x47151c,_0xce8806,_0x1b7be2,_0x1fedfd){const _0x4a8e64=_0x1b61b5;var _0xec4702=arguments[_0x4a8e64(0x39e)],_0x1dc36e=_0xec4702<0x3?_0xce8806:_0x1fedfd===null?_0x1fedfd=Object[_0x4a8e64(0x3d6)](_0xce8806,_0x1b7be2):_0x1fedfd,_0x378010;if(typeof Reflect==_0x4a8e64(0x280)&&typeof Reflect[_0x4a8e64(0x3e7)]==_0x4a8e64(0x188))_0x1dc36e=Reflect[_0x4a8e64(0x3e7)](_0x47151c,_0xce8806,_0x1b7be2,_0x1fedfd);else{for(var _0x43f166=_0x47151c['length']-0x1;_0x43f166>=0x0;_0x43f166--)(_0x378010=_0x47151c[_0x43f166])&&(_0x1dc36e=(_0xec4702<0x3?_0x378010(_0x1dc36e):_0xec4702>0x3?_0x378010(_0xce8806,_0x1b7be2,_0x1dc36e):_0x378010(_0xce8806,_0x1b7be2))||_0x1dc36e);}return _0xec4702>0x3&&_0x1dc36e&&Object[_0x4a8e64(0x2bf)](_0xce8806,_0x1b7be2,_0x1dc36e),_0x1dc36e;}let wr=class extends _0x3b24de{constructor(_0x5566ad){super(_0x5566ad),Sr(this,'activeRuntimeModel',null);}[_0x1b61b5(0x226)](_0x377722){}};wr=Cr([X(0x0,_0x15f39b(_0x4c482f))],wr);var Tr;const Z={'axis':{..._0x4676c5,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x42ec4a,'heatmap':_0x79b67c,'indicatorLine':_0x4a13eb,'legend':_0x4ca745,'lineAndArea':_0x1c0966,'pareto':_0x3f262b,'pie':_0x2d03d2,'radar':_0x197c31,'relation':{..._0x699e34,'useValueAsSymbolSize':!0x0},'series':{..._0x298208,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Tr=_0x2d7182['allSeriesStyle'])==null?void 0x0:Tr[_0x1b61b5(0x318)])??!0x1}},'style':_0x253cc6,'titles':_0x1252aa,'trendline':_0x29ae5e,'waterfall':{..._0xb2207,'useSubtotal':!0x0},'waterfallStyle':_0x5a6691,'wordCloud':_0xbc49ce},Er=[_0x1663a6['Line'],_0x1663a6[_0x1b61b5(0x277)],_0x1663a6[_0x1b61b5(0x2b0)],_0x1663a6['Scatter'],_0x1663a6[_0x1b61b5(0x404)],_0x1663a6['Relation'],_0x1663a6[_0x1b61b5(0x346)],_0x1663a6[_0x1b61b5(0x224)],_0x1663a6[_0x1b61b5(0x1db)],_0x1663a6['Candlestick'],_0x1663a6['Histogram'],_0x1663a6[_0x1b61b5(0x3b4)],_0x1663a6[_0x1b61b5(0x2c0)],_0x1663a6[_0x1b61b5(0x34f)],_0x1663a6[_0x1b61b5(0x409)]];function Dr(_0x1449d6){const _0x28fcae=_0x1b61b5;let {config:_0x38d167,onChange:_0x5cc4ed,runtime:_0x531c5d,tableName:_0x397b72}=_0x1449d6,_0x218797=_0x111d86(wr),_0x33b747=_0x111d86(_0x1b858e),[_0x3ce4d0,_0x57ba2a]=_0x316ac5(_0x23c4b[_0x28fcae(0x28e)]),_0x523f54=_0x48385e(()=>new _0x15af59(_0x531c5d[_0x28fcae(0x173)],{'commit':_0x138c42=>{const _0x31f96f=_0x28fcae;var _0x5468a1;let _0xd92423=_0x531c5d[_0x31f96f(0x173)],_0xc69e30=_0x4586eb(_0x138c42,{'series':(_0x5468a1=_0xd92423[_0x31f96f(0x279)])==null?void 0x0:_0x5468a1[_0x31f96f(0x315)],'currentChartType':_0xd92423[_0x31f96f(0x330)],'currentStyle':_0xd92423[_0x31f96f(0x1b6)],'currentContext':_0xd92423[_0x31f96f(0x259)],'currentDataAggregation':_0xd92423[_0x31f96f(0x1e3)]});_0x5cc4ed({'chart':Or(_0x38d167[_0x31f96f(0x303)],_0xc69e30)});}}),[_0x38d167[_0x28fcae(0x303)],_0x5cc4ed,_0x531c5d]),_0x3ac3aa=_0x48385e(()=>_0xa6c0d(_0x248082[_0x28fcae(0x32e)](_0x12da72=>({..._0x12da72,'label':_0x33b747['t'](Mr(_0x12da72[_0x28fcae(0x2bd)]))}))),[_0x33b747]);return _0x8963d5(_0x1a8459,{'chartUIService':_0x218797,'hostAdapter':_0x523f54,'children':_0x205339('div',{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x8963d5(_0x4093e4,{'ariaLabel':_0x33b747['t'](_0x28fcae(0x252)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x33b747['t'](_0x28fcae(0x181)),'panelId':_0x28fcae(0x337),'value':_0x23c4b[_0x28fcae(0x28e)]},{'label':_0x33b747['t'](_0x28fcae(0x265)),'panelId':_0x28fcae(0x450),'value':_0x23c4b[_0x28fcae(0x319)]}],'value':_0x3ce4d0,'onChange':_0x57ba2a}),_0x3ce4d0===_0x23c4b['Data']?_0x8963d5(_0x4be78e,{'id':_0x28fcae(0x337),'label':_0x33b747['t'](_0x28fcae(0x181)),'children':_0x205339(_0x28fcae(0x2cd),{'className':_0x28fcae(0x297),'children':[_0x8963d5(_0x38fccf,{'options':_0x3ac3aa}),_0x8963d5(_0x36674f,{}),_0x8963d5(_0x5dff18,{}),_0x8963d5(kr,{}),_0x8963d5(_0x21ed83,{}),_0x205339(_0x28fcae(0x2cd),{'children':[_0x8963d5(_0x3116ab,{'title':_0x33b747['t'](_0x28fcae(0x21a))}),_0x8963d5(_0x3f15bc,{'disabled':!0x0,'value':_0x397b72})]}),_0x8963d5(_0xeebdb9,{'orientationControl':_0x8963d5(_0x92f88c,{'size':_0x28fcae(0x218),'onClick':()=>_0x5cc4ed({'chart':{..._0x38d167['chart'],'orient':_0x38d167[_0x28fcae(0x303)][_0x28fcae(0x2cc)]==='row'?_0x28fcae(0x451):'row'}}),'children':_0x33b747['t'](_0x28fcae(0x407))})}),_0x8963d5(_0x19e214,{}),_0x8963d5(_0x220f1b,{'defaultValues':Z['waterfall']}),_0x205339(_0x28fcae(0x2cd),{'children':[_0x8963d5(_0x3116ab,{'title':_0x33b747['t'](_0x28fcae(0x2ee))}),_0x8963d5(_0x2baf81,{'value':_0x38d167['displayMode'],'options':[{'value':'chart-and-table','label':_0x33b747['t'](_0x28fcae(0x29a))},{'value':_0x28fcae(0x303),'label':_0x33b747['t'](_0x28fcae(0x1a6))},{'value':'table','label':_0x33b747['t'](_0x28fcae(0x19d))}],'onChange':_0x180046=>{const _0x118df7=_0x28fcae;(_0x180046==='chart-and-table'||_0x180046===_0x118df7(0x303)||_0x180046==='table')&&_0x5cc4ed({'displayMode':_0x180046});}})]})]})}):_0x8963d5(_0x4be78e,{'id':'base-pivot-chart-style','label':_0x33b747['t'](_0x28fcae(0x265)),'children':_0x8963d5(Ar,{})})]})});}function Or(_0x88e982,_0x50b012){const _0x657da2=_0x1b61b5;return{..._0x88e982,'type':_0x50b012['chartType']??_0x88e982[_0x657da2(0x16c)],'style':_0x50b012['style']??_0x88e982[_0x657da2(0x1b6)],'context':_0x50b012[_0x657da2(0x259)]??_0x88e982[_0x657da2(0x259)],'dataAggregation':_0x50b012[_0x657da2(0x1e3)]??_0x88e982[_0x657da2(0x1e3)]};}function kr(){const _0x116cd5=_0x1b61b5;let _0x2485e1=_0x1abed1();return _0x8963d5(_0x4d8634,{'visible':Er[_0x116cd5(0x1bf)](_0x29dded=>!_0x1f7fbc['baseOn'](_0x2485e1,_0x29dded))});}function Q(_0x5aed5a){const _0x3c9655=_0x1b61b5;return _0x205339(_0x50b2ce,{'id':_0x5aed5a['id'],'children':[_0x8963d5(_0x53b0b8,{'children':_0x5aed5a[_0x3c9655(0x3e0)]}),_0x8963d5(_0x34c2b7,{'children':_0x5aed5a[_0x3c9655(0x18e)]})]});}function Ar(){const _0x862f7a=_0x1b61b5;let _0x31da2f=_0x111d86(_0x1b858e),_0x29098c=_0x1abed1(),_0x56972b=_0x24c11a(),[_0x29adb9,_0x10da3d]=_0x316ac5(null),_0x5ef107=_0x1f7fbc[_0x862f7a(0x254)](_0x29098c,_0x1663a6[_0x862f7a(0x33b)]),_0x12f082=_0x29098c===_0x1663a6[_0x862f7a(0x277)],_0x5f1fee=_0x29098c===_0x1663a6[_0x862f7a(0x2b0)],_0x2e5334=_0x29098c===_0x1663a6[_0x862f7a(0x404)],_0x3cf9fb=_0x1f7fbc[_0x862f7a(0x254)](_0x29098c,_0x1663a6[_0x862f7a(0x3c9)]),_0x5f57c4=_0x29098c===_0x1663a6[_0x862f7a(0x1b9)],_0x33f754=_0x29098c===_0x1663a6[_0x862f7a(0x1ef)],_0x513f73=_0x29098c===_0x1663a6[_0x862f7a(0x2ae)],_0x23e004=_0x29098c===_0x1663a6['Heatmap'],_0x1e77eb=_0x1171b6(_0x29098c,_0x644726[_0x862f7a(0x1d1)])&&!_0x3cf9fb&&!_0x513f73,_0x5d03d1=jr(_0x29098c,_0x31da2f),_0x593755=_0x4d8b7a=>_0x31da2f['t']('bases-dashboard-ui.chart.'+_0x4d8b7a);return _0x205339(_0x1ebe26,{'value':_0x29adb9,'onChange':_0x10da3d,'children':[_0x8963d5(Q,{'id':_0x2355e5[_0x862f7a(0x198)],'label':_0x593755('common.chartStyle'),'children':_0x8963d5(_0x570b04,{'defaultValues':Z[_0x862f7a(0x1b6)]})}),_0x8963d5(Q,{'id':_0x2355e5['ChartAndAxisTitles'],'label':_0x593755(_0x862f7a(0x1b4)),'children':_0x8963d5(_0x12ec4e,{'commitMode':_0x862f7a(0x20a),'defaultValues':Z['titles']})}),_0x1e77eb&&_0x8963d5(Q,{'id':_0x2355e5['Series'],'label':_0x593755('common.series'),'children':_0x8963d5(_0x5d2a01,{'defaultValues':Z[_0x862f7a(0x315)],'NumberFormatField':_0x3777b0})}),_0x33f754&&_0x8963d5(Q,{'id':_0x2355e5[_0x862f7a(0x1f2)],'label':_0x593755(_0x862f7a(0x169)),'children':_0x8963d5(_0x3092c5,{'defaultValues':Z[_0x862f7a(0x443)],'getDefaultBucketName':({seriesName:_0xc95892,target:_0x67475e})=>_0x67475e===_0x4442bf['Subtotal']?_0x593755(_0x862f7a(0x348)):_0xc95892?_0xc95892+'-('+_0x593755(_0x67475e===_0x4442bf[_0x862f7a(0x3e5)]?_0x862f7a(0x255):_0x862f7a(0x2c5))+')':'','NumberFormatField':_0x3777b0})}),_0x513f73&&_0x205339(_0x2a4aec,{'children':[_0x8963d5(Q,{'id':_0x2355e5[_0x862f7a(0x3a5)],'label':_0x593755(_0x862f7a(0x21f)),'children':_0x8963d5(_0x87953f,{'defaultValues':Z[_0x862f7a(0x1f9)],'NumberFormatField':_0x3777b0,'showDataPointEditor':!0x0,'target':_0x862f7a(0x284)})}),_0x8963d5(Q,{'id':_0x2355e5[_0x862f7a(0x381)],'label':_0x593755(_0x862f7a(0x31d)),'children':_0x8963d5(_0x87953f,{'defaultValues':Z[_0x862f7a(0x1f9)],'NumberFormatField':_0x3777b0,'showDataPointEditor':!0x1,'target':_0x862f7a(0x42e)})})]}),_0x5ef107&&_0x8963d5(Q,{'id':_0x2355e5[_0x862f7a(0x2a7)],'label':_0x593755(_0x862f7a(0x23b)),'children':_0x8963d5(_0x33e40a,{'defaultValues':Z[_0x862f7a(0x2cb)],'NumberFormatField':_0x3777b0})}),_0x5f1fee&&_0x8963d5(Q,{'id':_0x2355e5[_0x862f7a(0x2b0)],'label':_0x593755(_0x862f7a(0x3de)),'children':_0x8963d5(_0x12a34e,{'defaultValues':Z[_0x862f7a(0x1c2)]})}),_0x12f082&&_0x8963d5(Q,{'id':_0x2355e5['Radar'],'label':_0x593755('section.radar'),'children':_0x8963d5(_0x1b5c7d,{'defaultValues':Z[_0x862f7a(0x3da)]})}),_0x2e5334&&_0x8963d5(Q,{'id':_0x2355e5['Funnel'],'label':_0x593755('section.funnel'),'children':_0x8963d5(_0xcf6a01,{'defaultValues':Z[_0x862f7a(0x2e2)],'gapControl':_0x862f7a(0x41b)})}),_0x23e004&&_0x8963d5(Q,{'id':_0x2355e5[_0x862f7a(0x224)],'label':_0x593755(_0x862f7a(0x3a4)),'children':_0x8963d5(_0x56d638,{'defaultValues':Z[_0x862f7a(0x247)]})}),_0x5f57c4&&_0x8963d5(Q,{'id':_0x2355e5[_0x862f7a(0x1b9)],'label':_0x593755(_0x862f7a(0x2b6)),'children':_0x8963d5(_0x410a6b,{'defaultValues':Z[_0x862f7a(0x3b9)]})}),_0x5cb5a8(_0x29098c)&&_0x8963d5(Q,{'id':_0x2355e5[_0x862f7a(0x246)],'label':_0x593755(_0x862f7a(0x170)),'children':_0x8963d5(_0x4bd27f,{'defaultValues':Z[_0x862f7a(0x375)],'lineStyleControl':_0x862f7a(0x1c3)})}),_0x1171b6(_0x29098c,_0x644726[_0x862f7a(0x276)])&&_0x8963d5(Q,{'id':_0x2355e5[_0x862f7a(0x276)],'label':_0x593755('common.legend'),'children':_0x8963d5(_0x315885,{'defaultValues':Z['legend']})}),_0x1171b6(_0x29098c,_0x644726[_0x862f7a(0x1f0)])&&_0x205339(_0x2a4aec,{'children':[_0x8963d5(Q,{'id':_0x2355e5['HorizontalAxis'],'label':_0x593755(_0x862f7a(0x25c)),'children':_0x8963d5(_0x390334,{'axis':'x','defaultValues':Z[_0x862f7a(0x3e6)],'NumberFormatField':_0x3777b0})}),_0x8963d5(Q,{'id':_0x2355e5[_0x862f7a(0x207)],'label':_0x593755(_0x862f7a(0x37a)),'children':_0x8963d5(_0x390334,{'axis':'y','defaultValues':Z[_0x862f7a(0x3e6)],'NumberFormatField':_0x3777b0})}),_0x56972b&&_0x8963d5(Q,{'id':_0x2355e5[_0x862f7a(0x3a1)],'label':_0x593755(_0x862f7a(0x1c9)),'children':_0x8963d5(_0x390334,{'axis':_0x862f7a(0x230),'defaultValues':Z[_0x862f7a(0x3e6)],'NumberFormatField':_0x3777b0})}),_0x8963d5(Q,{'id':_0x2355e5[_0x862f7a(0x395)],'label':_0x593755(_0x862f7a(0x42c)),'children':_0x8963d5(_0x1aa6c8,{'defaultValues':Z['axis']})})]}),_0x1171b6(_0x29098c,_0x644726[_0x862f7a(0x3a6)])&&_0x8963d5(Q,{'id':_0x2355e5[_0x862f7a(0x3a6)],'label':_0x593755(_0x862f7a(0x282)),'children':_0x8963d5(_0x115ad3,{'defaultValues':Z[_0x862f7a(0x3ab)]})}),_0x22a375(_0x29098c)&&_0x8963d5(Q,{'id':_0x2355e5[_0x862f7a(0x43d)],'label':_0x593755(_0x862f7a(0x2fa)),'children':_0x8963d5(_0x1d5ed9,{'defaultValues':Z[_0x862f7a(0x454)]})}),_0x5d03d1&&_0x8963d5(Q,{'id':_0x5d03d1['id'],'label':_0x5d03d1['label'],'children':_0x8963d5(_0x3f38f2,{})})]});}function jr(_0x2655a4,_0x3cb138){const _0x45b800=_0x1b61b5;let _0x146e43={[_0x1663a6[_0x45b800(0x25d)]]:{'id':_0x2355e5[_0x45b800(0x25d)],'localeKey':_0x45b800(0x380)},[_0x1663a6[_0x45b800(0x222)]]:{'id':_0x2355e5['Histogram'],'localeKey':_0x45b800(0x281)},[_0x1663a6[_0x45b800(0x3b4)]]:{'id':_0x2355e5['Treemap'],'localeKey':_0x45b800(0x18f)},[_0x1663a6['Sunburst']]:{'id':_0x2355e5[_0x45b800(0x2c0)],'localeKey':_0x45b800(0x24b)},[_0x1663a6['Gauge']]:{'id':_0x2355e5[_0x45b800(0x34f)],'localeKey':_0x45b800(0x290)},[_0x1663a6['Chord']]:{'id':_0x2355e5['Chord'],'localeKey':_0x45b800(0x43e)}}[_0x2655a4];return _0x146e43?{'id':_0x146e43['id'],'label':_0x3cb138['t'](_0x146e43[_0x45b800(0x1c5)])}:null;}function Mr(_0x41dbba){const _0xf5c151=_0x1b61b5;return _0xf5c151(0x322)+_0x41dbba;}function Nr({onChange:_0x13c099,onEditData:_0x1d9798,runtime:_0x389ac0,sourceChart:_0x193f28,sourceName:_0x11b3f1,widget:_0x2d49d7}){const _0x21965e=_0x1b61b5;let _0x2c9488=_0x111d86(wr),_0x227215=_0x111d86(_0x1b858e),[_0x12e2f7,_0x441c83]=_0x316ac5(_0x23c4b[_0x21965e(0x28e)]),_0x262b08=_0x2d49d7[_0x21965e(0x303)]??_0x193f28,_0xec7cf6=_0x48385e(()=>new _0x15af59(_0x389ac0[_0x21965e(0x173)],{'commit':_0x5f5461=>{const _0x45ef77=_0x21965e;var _0x2acc76;let _0x16b9ae=_0x389ac0[_0x45ef77(0x173)],_0x15eba5=_0x4586eb(_0x5f5461,{'series':(_0x2acc76=_0x16b9ae[_0x45ef77(0x279)])==null?void 0x0:_0x2acc76[_0x45ef77(0x315)],'currentChartType':_0x16b9ae['chartType'],'currentStyle':_0x16b9ae['style'],'currentContext':_0x16b9ae['context'],'currentDataAggregation':_0x16b9ae[_0x45ef77(0x1e3)]});_0x13c099({..._0x2d49d7,'chart':Or(_0x262b08,_0x15eba5)})[_0x45ef77(0x19f)](()=>void 0x0);}}),[_0x262b08,_0x13c099,_0x389ac0,_0x2d49d7]),_0x453794=_0x48385e(()=>_0xa6c0d(_0x248082[_0x21965e(0x32e)](_0x3e0976=>({..._0x3e0976,'label':_0x227215['t'](Pr(_0x3e0976[_0x21965e(0x2bd)]))}))),[_0x227215]),_0x146a76=_0x4fe5bb=>_0x227215['t']('bases-dashboard-ui.dashboardInspector.'+_0x4fe5bb);return _0x8963d5(_0x1a8459,{'chartUIService':_0x2c9488,'hostAdapter':_0xec7cf6,'children':_0x205339('div',{'data-dashboard-chart-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x8963d5(_0x4093e4,{'ariaLabel':_0x227215['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x21965e(0x40a),'items':[{'label':_0x227215['t'](_0x21965e(0x181)),'panelId':_0x21965e(0x1b1),'value':_0x23c4b[_0x21965e(0x28e)]},{'label':_0x227215['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x21965e(0x299),'value':_0x23c4b[_0x21965e(0x319)]}],'value':_0x12e2f7,'onChange':_0x441c83}),_0x12e2f7===_0x23c4b[_0x21965e(0x28e)]?_0x8963d5(_0x4be78e,{'id':_0x21965e(0x1b1),'label':_0x227215['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x205339(_0x21965e(0x2cd),{'className':_0x21965e(0x297),'children':[_0x8963d5(_0x38fccf,{'options':_0x453794}),_0x8963d5(_0x36674f,{}),_0x8963d5(_0x5dff18,{}),_0x8963d5(kr,{}),_0x8963d5(_0x21ed83,{}),_0x205339(_0x21965e(0x2cd),{'children':[_0x8963d5(_0x3116ab,{'title':_0x146a76(_0x21965e(0x42a))}),_0x8963d5(_0x3f15bc,{'disabled':!0x0,'value':_0x11b3f1}),_0x8963d5(_0x92f88c,{'className':_0x21965e(0x377),'onClick':_0x1d9798,'children':_0x146a76('editData')})]})]})}):_0x8963d5(_0x4be78e,{'id':_0x21965e(0x299),'label':_0x227215['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x8963d5(Ar,{})})]})});}function Pr(_0x4a2b27){const _0x226f20=_0x1b61b5;return _0x226f20(0x322)+_0x4a2b27;}const Fr=[_0x1b61b5(0x1bc),_0x1b61b5(0x39c),_0x1b61b5(0x25b),'currency',_0x1b61b5(0x374),_0x1b61b5(0x36a)];function Ir({base:_0x4e5631,onChange:_0x267003,onSelectBackgroundImage:_0x4a3d62,widget:_0x27d276}){const _0xf4b055=_0x1b61b5;var _0x223aaa;let _0x883cc4=_0x111d86(_0x1b858e),_0x5c0664=_0x111d86(_0x2742b2),_0x3b6aae=_0x486455(()=>_0x5c0664[_0xf4b055(0x190)],_0x5c0664['getCurrentTheme'](),!0x1,[_0x5c0664]),_0x43ba91=_0x486455(()=>_0x5c0664[_0xf4b055(0x186)],_0x5c0664[_0xf4b055(0x30f)],!0x1,[_0x5c0664]),[_0x89b4da,_0x125d38]=_0x316ac5(_0xf4b055(0x1cd)),[_0x3fa86c,_0x5d9ddb]=_0x316ac5(!0x1),_0x2a9118=tr(_0x27d276),_0x54f2ec=_0x255c42=>_0x883cc4['t'](_0xf4b055(0x462)+_0x255c42),_0x56c2c9=_0x4e5631['getSnapshot']()[_0xf4b055(0x204)][_0x27d276[_0xf4b055(0x2da)]],_0x2046ae=_0x56c2c9==null?void 0x0:_0x56c2c9[_0xf4b055(0x3b6)][_0xf4b055(0x26f)](_0x28bb99=>_0x56c2c9[_0xf4b055(0x2a0)][_0x28bb99]),_0x8f07ac=_0x2046ae?_0x56c2c9==null?void 0x0:_0x56c2c9[_0xf4b055(0x2a0)][_0x2046ae]:void 0x0,_0x72e013=_0x56c2c9&&_0x8f07ac?_0x3223b0(_0x4e5631[_0xf4b055(0x1e4)](),_0x56c2c9,_0x8f07ac)[_0xf4b055(0x32e)](_0x576606=>({..._0x576606,'current':!0x1})):[],_0x2adb9=((_0x223aaa=_0x27d276[_0xf4b055(0x179)][_0xf4b055(0x243)])==null?void 0x0:_0x223aaa[_0xf4b055(0x37d)])??'',_0x4720fa=_0x3de2df=>_0x267003(nr(_0x27d276,_0x3de2df))[_0xf4b055(0x19f)](()=>void 0x0),_0x2935b1=_0x5666f7=>_0x267003({..._0x27d276,'description':_0x5666f7})[_0xf4b055(0x19f)](()=>void 0x0);return _0x205339(_0xf4b055(0x2cd),{'data-dashboard-formula-inspector':!0x0,'className':_0xf4b055(0x2b2),'children':[_0x8963d5(_0x238b12,{'className':_0xf4b055(0x2e4),'items':[{'value':_0xf4b055(0x1cd),'label':_0x54f2ec(_0xf4b055(0x1cd))},{'value':_0xf4b055(0x1b6),'label':_0x54f2ec('style')}],'value':_0x89b4da,'onChange':_0x125d38}),_0x8963d5(_0xf4b055(0x2cd),{'className':_0xf4b055(0x396),'children':_0x89b4da===_0xf4b055(0x1cd)?_0x205339(_0xf4b055(0x2cd),{'className':_0xf4b055(0x17b),'children':[_0x8963d5($,{'label':_0x54f2ec(_0xf4b055(0x287)),'children':_0x8963d5(_0x3f15bc,{'value':_0x27d276[_0xf4b055(0x287)]??_0x27d276[_0xf4b055(0x379)]??'','onChange':_0x2935b1,'onBlur':_0x40f56b=>_0x2935b1(_0x40f56b[_0xf4b055(0x206)][_0xf4b055(0x2e7)])})}),_0x8963d5($,{'label':_0x54f2ec('dataSource'),'children':_0x8963d5(_0x3f15bc,{'disabled':!0x0,'value':(_0x56c2c9==null?void 0x0:_0x56c2c9['name'])??_0x54f2ec(_0xf4b055(0x3d0))})}),_0x205339($,{'label':_0x54f2ec(_0xf4b055(0x37d)),'children':[_0x8963d5(_0x3f15bc,{'disabled':!0x0,'value':_0x6252c1(_0x2adb9,_0x72e013)}),_0x8963d5(_0x92f88c,{'className':'univer-mt-2\x20univer-w-full','onClick':()=>_0x5d9ddb(!0x0),'children':_0x54f2ec('editFormula')})]})]}):_0x205339(_0xf4b055(0x2cd),{'className':_0xf4b055(0x17b),'children':[_0x8963d5(_0x42c17e,{'emptyLabel':_0x54f2ec(_0xf4b055(0x3d3)),'label':_0x54f2ec(_0xf4b055(0x3d3)),'pickerFallbackValue':_0x43ba91?_0x3b6aae[_0xf4b055(0x40d)][0x384]:_0x3b6aae['gray'][0x0],'resetLabel':_0x54f2ec(_0xf4b055(0x25a)),'value':_0x2a9118[_0xf4b055(0x3d3)]??null,'onChange':_0xa36c90=>_0x4720fa({'backgroundColor':_0xa36c90??void 0x0})}),_0x205339($,{'label':_0x54f2ec(_0xf4b055(0x307)),'children':[_0x205339(_0xf4b055(0x2cd),{'className':_0xf4b055(0x18c),'children':[_0x205339(_0x92f88c,{'className':_0xf4b055(0x286),'onClick':()=>{const _0x78accc=_0xf4b055;_0x4a3d62()['then'](_0x57ca0e=>{const _0x1d46fa=_0xf973;if(_0x57ca0e){var _0x3485ef;return _0x4720fa({'backgroundImage':{..._0x57ca0e,'fit':((_0x3485ef=_0x2a9118[_0x1d46fa(0x307)])==null?void 0x0:_0x3485ef['fit'])??'cover'}});}})[_0x78accc(0x19f)](()=>void 0x0);},'children':[_0x8963d5(_0x2c7967,{}),_0x2a9118[_0xf4b055(0x307)]?_0x54f2ec('replaceImage'):_0x54f2ec(_0xf4b055(0x357))]}),_0x2a9118['backgroundImage']&&_0x8963d5(_0x92f88c,{'aria-label':_0x54f2ec(_0xf4b055(0x364)),'title':_0x54f2ec(_0xf4b055(0x364)),'onClick':()=>_0x4720fa({'backgroundImage':void 0x0}),'children':_0x8963d5(_0x416d77,{})})]}),_0x2a9118[_0xf4b055(0x307)]&&_0x8963d5(_0x238b12,{'className':_0xf4b055(0x1e1),'items':[{'value':'cover','label':_0x54f2ec(_0xf4b055(0x44e))},{'value':_0xf4b055(0x26e),'label':_0x54f2ec(_0xf4b055(0x26e))}],'value':_0x2a9118[_0xf4b055(0x307)][_0xf4b055(0x1df)],'onChange':_0x361b45=>_0x4720fa({'backgroundImage':_0x2a9118[_0xf4b055(0x307)]?{..._0x2a9118['backgroundImage'],'fit':_0x361b45}:void 0x0})})]}),_0x8963d5(_0x42c17e,{'emptyLabel':_0x54f2ec(_0xf4b055(0x302)),'label':_0x54f2ec(_0xf4b055(0x302)),'pickerFallbackValue':_0x43ba91?_0x3b6aae[_0xf4b055(0x40d)][0x32]:_0x3b6aae[_0xf4b055(0x40d)][0x3e8],'resetLabel':_0x54f2ec(_0xf4b055(0x25a)),'value':_0x2a9118[_0xf4b055(0x302)]??null,'onChange':_0x58d0a0=>_0x4720fa({'textColor':_0x58d0a0??void 0x0})}),_0x8963d5($,{'label':_0x54f2ec(_0xf4b055(0x285)),'children':_0x8963d5(_0x238b12,{'items':[{'value':_0xf4b055(0x212),'label':_0x54f2ec(_0xf4b055(0x212))},{'value':_0xf4b055(0x248),'label':_0x54f2ec('center')},{'value':_0xf4b055(0x387),'label':_0x54f2ec(_0xf4b055(0x387))}],'value':_0x2a9118[_0xf4b055(0x285)],'onChange':_0x41fae7=>_0x4720fa({'alignment':_0x41fae7})})}),_0x205339($,{'label':_0x54f2ec('textSize'),'children':[_0x8963d5(_0x238b12,{'items':[{'value':'auto','label':_0x54f2ec('autoFit')},{'value':_0xf4b055(0x2c8),'label':_0x54f2ec(_0xf4b055(0x2c8))}],'value':_0x2a9118[_0xf4b055(0x3e9)],'onChange':_0x134cfc=>_0x4720fa({'fontSizeMode':_0x134cfc})}),_0x2a9118[_0xf4b055(0x3e9)]===_0xf4b055(0x2c8)&&_0x8963d5(_0xd7d7e7,{'className':_0xf4b055(0x1e1),'min':0xc,'max':0x78,'value':_0x2a9118[_0xf4b055(0x408)],'onChange':_0xc97d2=>_0x4720fa({'fontSize':_0xc97d2??0x28,'fontSizeMode':'custom'})})]}),_0x8963d5($,{'label':_0x54f2ec(_0xf4b055(0x3dc)),'children':_0x8963d5(_0x2baf81,{'value':_0x2a9118[_0xf4b055(0x3dc)],'options':[{'value':'general','label':_0x54f2ec('general')},{'value':_0xf4b055(0x39c),'label':_0x54f2ec(_0xf4b055(0x39c))},{'value':_0xf4b055(0x25b),'label':_0x54f2ec(_0xf4b055(0x25b))},{'value':_0xf4b055(0x3c4),'label':_0x54f2ec(_0xf4b055(0x3c4))},{'value':'grouped','label':_0x54f2ec(_0xf4b055(0x374))},{'value':_0xf4b055(0x36a),'label':_0x54f2ec(_0xf4b055(0x36a))}],'onChange':_0x28478c=>{let _0x2eb2de=Fr['find'](_0x499cfa=>_0x499cfa===_0x28478c);_0x2eb2de&&_0x4720fa({'numberFormat':_0x2eb2de});}})}),_0x2a9118[_0xf4b055(0x3dc)]===_0xf4b055(0x3c4)&&_0x8963d5($,{'label':_0x54f2ec(_0xf4b055(0x410)),'children':_0x8963d5(_0x3f15bc,{'value':_0x2a9118[_0xf4b055(0x3c4)],'onChange':_0x586ea7=>_0x4720fa({'currency':_0x586ea7[_0xf4b055(0x368)](0x0,0x3)['toUpperCase']()})})}),_0x2a9118['numberFormat']!==_0xf4b055(0x1bc)&&_0x8963d5($,{'label':_0x54f2ec('decimalPlaces'),'children':_0x8963d5(_0xd7d7e7,{'min':0x0,'max':0x8,'value':_0x2a9118[_0xf4b055(0x38e)],'onChange':_0x4f0e29=>_0x4720fa({'decimalPlaces':_0x4f0e29??0x0})})})]})}),_0x3fa86c&&_0x8963d5(_0x2f7159,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x8963d5(_0x2d7be4,{'tables':_0x72e013,'formula':_0x6252c1(_0x2adb9,_0x72e013),'onCancel':()=>_0x5d9ddb(!0x1),'onSave':_0x22c5d2=>{const _0x5072d3=_0xf4b055;let _0x83b7b0=_0x27d276[_0x5072d3(0x179)][_0x5072d3(0x243)]??{'formula':''};return _0x267003({..._0x27d276,'shapeData':{..._0x27d276[_0x5072d3(0x179)],'formulaBinding':{..._0x83b7b0,'formula':_0x252b36(_0x22c5d2,_0x72e013)}}})[_0x5072d3(0x274)](()=>_0x5d9ddb(!0x1))[_0x5072d3(0x19f)](()=>void 0x0);}})})]});}function $({children:_0x4fd541,label:_0x3aafc8}){const _0x1aa19a=_0x1b61b5;return _0x205339(_0x1aa19a(0x2cd),{'role':_0x1aa19a(0x25f),'aria-label':_0x3aafc8,'className':_0x1aa19a(0x455),'children':[_0x8963d5(_0x1aa19a(0x33a),{'children':_0x3aafc8}),_0x4fd541]});}const Lr={[_0x3c2fb6['IS']]:_0x1b61b5(0x223),[_0x3c2fb6[_0x1b61b5(0x1d2)]]:_0x1b61b5(0x428),[_0x3c2fb6[_0x1b61b5(0x3af)]]:_0x1b61b5(0x177),[_0x3c2fb6[_0x1b61b5(0x434)]]:_0x1b61b5(0x1fd),[_0x3c2fb6[_0x1b61b5(0x2d7)]]:'bases-dashboard-ui.operators.isEmpty',[_0x3c2fb6[_0x1b61b5(0x367)]]:_0x1b61b5(0x3fd),[_0x3c2fb6[_0x1b61b5(0x1f3)]]:_0x1b61b5(0x426),[_0x3c2fb6['GREATER_THAN_OR_EQUAL']]:_0x1b61b5(0x44c),[_0x3c2fb6['LESS_THAN']]:'bases-dashboard-ui.operators.lessThan',[_0x3c2fb6[_0x1b61b5(0x3d2)]]:_0x1b61b5(0x3e8),[_0x3c2fb6[_0x1b61b5(0x422)]]:_0x1b61b5(0x335),[_0x3c2fb6[_0x1b61b5(0x363)]]:_0x1b61b5(0x227)};function Rr({disabled:_0x4e5777,fields:_0x10f0a2,filter:_0x24d5be,onChange:_0x203a52}){const _0x25b5a9=_0x1b61b5;let _0x2aedaf=_0x111d86(_0x1b858e),_0x48213f=(_0x24d5be==null?void 0x0:_0x24d5be[_0x25b5a9(0x3dd)])??[];return _0x48213f[_0x25b5a9(0x39e)]?_0x8963d5('div',{'className':_0x25b5a9(0x3a8),'children':_0x48213f[_0x25b5a9(0x32e)]((_0x41f664,_0x4c7c49)=>{const _0x4e0ecd=_0x25b5a9;let _0x114c70=_0x10f0a2[_0x4e0ecd(0x26f)](_0x4c7a6b=>_0x4c7a6b['id']===_0x41f664[_0x4e0ecd(0x268)]);return _0x205339(_0x4e0ecd(0x2cd),{'className':_0x4e0ecd(0x2ec),'children':[_0x205339(_0x4e0ecd(0x2cd),{'className':_0x4e0ecd(0x440),'children':[_0x8963d5(_0x4e0ecd(0x33a),{'className':_0x4e0ecd(0x415),'children':(_0x114c70==null?void 0x0:_0x114c70[_0x4e0ecd(0x1e6)])??_0x41f664[_0x4e0ecd(0x268)]}),_0x8963d5(_0x4e0ecd(0x33a),{'className':_0x4e0ecd(0x3cf),'children':_0x2aedaf['t'](Lr[_0x41f664['operator']])})]}),Kr(_0x41f664[_0x4e0ecd(0x182)])&&_0x8963d5(Br,{'disabled':_0x4e5777,'field':_0x114c70,'value':_0x41f664[_0x4e0ecd(0x40c)],'onChange':_0x43e663=>_0x203a52(Ur(_0x24d5be,_0x4c7c49,{'operand':_0x43e663}))})]},Yr(_0x48213f,_0x41f664,_0x4c7c49));})}):_0x205339(_0x25b5a9(0x2cd),{'className':_0x25b5a9(0x239),'children':[_0x8963d5(_0x1ec8bd,{'className':_0x25b5a9(0x1cb)}),_0x8963d5(_0x25b5a9(0x33a),{'className':_0x25b5a9(0x323),'children':_0x2aedaf['t'](_0x25b5a9(0x257))})]});}function zr({fields:_0x38ef94,filter:_0x1bcc1e,onChange:_0x339bcc,onClear:_0x2eac69}){const _0x47efcf=_0x1b61b5;let _0x1bd980=_0x111d86(_0x1b858e),_0x297697=(_0x1bcc1e==null?void 0x0:_0x1bcc1e['conditions'])??[];return _0x205339(_0x47efcf(0x2cd),{'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':[_0x297697[_0x47efcf(0x32e)]((_0x3b1b08,_0x3e131e)=>{const _0x5921f8=_0x47efcf;let _0x176f54=_0x38ef94[_0x5921f8(0x26f)](_0xfece63=>_0xfece63['id']===_0x3b1b08[_0x5921f8(0x268)])??_0x38ef94[0x0],_0xc78f54=Wr(_0x176f54);return _0x205339(_0x5921f8(0x339),{'className':_0x5921f8(0x2ce),'children':[_0x205339('div',{'className':_0x5921f8(0x171),'children':[_0x8963d5(_0x2baf81,{'value':_0x3b1b08[_0x5921f8(0x268)],'options':_0x38ef94[_0x5921f8(0x32e)](_0x8628cc=>({'value':_0x8628cc['id'],'label':_0x8628cc[_0x5921f8(0x1e6)]})),'onChange':_0x43d9d3=>{const _0x9b34a8=_0x5921f8;let _0x33fd39=_0x38ef94[_0x9b34a8(0x26f)](_0x2a5aee=>_0x2a5aee['id']===_0x43d9d3);if(!_0x33fd39)return;let _0x9f40f3=Wr(_0x33fd39)[0x0];_0x339bcc(Ur(_0x1bcc1e,_0x3e131e,Hr(_0x33fd39,_0x9f40f3)));}}),_0x8963d5(_0x92f88c,{'type':_0x5921f8(0x270),'variant':_0x5921f8(0x326),'aria-label':_0x1bd980['t']('bases-dashboard-ui.dashboardInspector.delete'),'className':'univer-size-8\x20univer-p-0\x20univer-text-red-500','onClick':()=>_0x339bcc(Vr(_0x1bcc1e,_0x297697[_0x5921f8(0x347)]((_0x377a5a,_0x314c51)=>_0x314c51!==_0x3e131e))),'children':_0x8963d5(_0x2193c5,{})})]}),_0x8963d5(_0x2baf81,{'value':_0x3b1b08['operator'],'options':_0xc78f54[_0x5921f8(0x32e)](_0x14a19a=>({'value':_0x14a19a,'label':_0x1bd980['t'](Lr[_0x14a19a])})),'onChange':_0x3ca1e7=>{const _0x5e0083=_0x5921f8;let _0x11e321=_0xc78f54[_0x5e0083(0x26f)](_0x331fb0=>_0x331fb0===_0x3ca1e7);_0x11e321&&_0x339bcc(Ur(_0x1bcc1e,_0x3e131e,{'operator':_0x11e321,'operand':Gr(_0x176f54)}));}}),Kr(_0x3b1b08['operator'])&&_0x8963d5(Br,{'field':_0x176f54,'value':_0x3b1b08[_0x5921f8(0x40c)],'onChange':_0x21d92d=>_0x339bcc(Ur(_0x1bcc1e,_0x3e131e,{'operand':_0x21d92d}))})]},Yr(_0x297697,_0x3b1b08,_0x3e131e));}),_0x205339(_0x92f88c,{'type':_0x47efcf(0x270),'variant':_0x47efcf(0x326),'className':_0x47efcf(0x45a),'disabled':!_0x38ef94[_0x47efcf(0x39e)],'onClick':()=>{let _0x4dbe01=_0x38ef94[0x0];if(!_0x4dbe01)return;let _0x50a40d=Wr(_0x4dbe01)[0x0];_0x339bcc(Vr(_0x1bcc1e,[..._0x297697,Hr(_0x4dbe01,_0x50a40d)]));},'children':[_0x8963d5(_0x2c7967,{}),_0x1bd980['t'](_0x47efcf(0x21b))]}),_0x297697[_0x47efcf(0x39e)]>0x0&&_0x8963d5(_0x92f88c,{'type':_0x47efcf(0x270),'variant':_0x47efcf(0x326),'className':_0x47efcf(0x41e),'onClick':_0x2eac69,'children':_0x1bd980['t'](_0x47efcf(0x36e))})]});}function Br({disabled:_0x118fe3,field:_0x5d06cc,onChange:_0x352ed4,value:_0x338da8}){const _0x5e3b69=_0x1b61b5;let _0xc78fd7=_0x111d86(_0x1b858e),_0x3cb318=_0x5d06cc==null?void 0x0:_0x5d06cc[_0x5e3b69(0x16c)];if(_0x3cb318===_0x172fb1[_0x5e3b69(0x26c)]){let _0x5f1a82=_0x338da8===!0x0||_0x338da8===_0x5e3b69(0x341);return _0x205339(_0x92f88c,{'type':_0x5e3b69(0x270),'variant':_0x5e3b69(0x3f6),'disabled':_0x118fe3,'className':'univer-w-full\x20univer-justify-start','onClick':()=>_0x352ed4(!_0x5f1a82),'children':[_0x8963d5(_0xb2d4e5,{'checked':_0x5f1a82,'disabled':_0x118fe3,'onChange':()=>void 0x0}),_0x5f1a82?_0xc78fd7['t'](_0x5e3b69(0x3f5)):_0xc78fd7['t']('bases-dashboard-ui.dashboardInspector.unchecked')]});}return Xr(_0x3cb318)?_0x118fe3?_0x8963d5(_0x92f88c,{'type':'button','variant':_0x5e3b69(0x3f6),'className':_0x5e3b69(0x41e),'disabled':!0x0,'children':_0x27630c(_0x338da8==null||_0x338da8===''?void 0x0:String(_0x338da8))[_0x5e3b69(0x384)](_0x5e3b69(0x320))}):_0x8963d5(_0x36bde1,{'className':_0x5e3b69(0x41e),'value':_0x27630c(_0x338da8==null||_0x338da8===''?void 0x0:String(_0x338da8))[_0x5e3b69(0x45b)](),'onValueChange':_0x47b53a=>_0x352ed4(_0x27630c(_0x47b53a)[_0x5e3b69(0x384)]('YYYY-MM-DD'))}):Qr(_0x5d06cc)?_0x8963d5(_0x79fb24,{'className':_0x5e3b69(0x41e),'disabled':_0x118fe3,'value':Array[_0x5e3b69(0x17a)](_0x338da8)?_0x338da8[_0x5e3b69(0x32e)](String):[],'options':qr(_0x5d06cc),'onChange':_0x352ed4}):_0x3cb318===_0x172fb1[_0x5e3b69(0x3f3)]||_0x3cb318===_0x172fb1['Group']||_0x3cb318===_0x172fb1[_0x5e3b69(0x425)]?_0x8963d5(_0x2baf81,{'className':'univer-w-full','disabled':_0x118fe3,'value':String(_0x338da8??''),'options':[{'value':'','label':_0xc78fd7['t']('bases-dashboard-ui.dashboardInspector.selectOption')},...qr(_0x5d06cc)],'onChange':_0x352ed4}):Zr(_0x3cb318)?_0x8963d5(_0xd7d7e7,{'className':_0x5e3b69(0x41e),'allowEmpty':!0x0,'disabled':_0x118fe3,'value':Number[_0x5e3b69(0x1bb)](Number(_0x338da8))?Number(_0x338da8):null,'onChange':_0x5ea48f=>_0x352ed4(_0x5ea48f??'')}):_0x8963d5(_0x3f15bc,{'disabled':_0x118fe3,'value':String(_0x338da8??''),'placeholder':_0xc78fd7['t'](_0x5e3b69(0x1dd)),'onChange':_0x352ed4});}function Vr(_0x1cc16a,_0x4fd8f5){const _0x229ef3=_0x1b61b5;return{'conjunction':(_0x1cc16a==null?void 0x0:_0x1cc16a['conjunction'])??_0x156687[_0x229ef3(0x24d)],'conditions':_0x4fd8f5};}function Hr(_0x551906,_0x1c68c3){return Kr(_0x1c68c3)?{'fieldId':_0x551906['id'],'operator':_0x1c68c3,'operand':Gr(_0x551906)}:{'fieldId':_0x551906['id'],'operator':_0x1c68c3};}function Ur(_0x4ec33,_0x24382c,_0x3b0101){const _0x4417fa=_0x1b61b5;return Vr(_0x4ec33,((_0x4ec33==null?void 0x0:_0x4ec33['conditions'])??[])[_0x4417fa(0x32e)]((_0x156ca3,_0x25770d)=>_0x25770d===_0x24382c?{..._0x156ca3,..._0x3b0101}:_0x156ca3));}function Wr(_0x170eb5){const _0x22e1d9=_0x1b61b5;let _0x1a9118=[_0x3c2fb6['IS_EMPTY'],_0x3c2fb6[_0x22e1d9(0x367)]];switch(_0x170eb5==null?void 0x0:_0x170eb5[_0x22e1d9(0x16c)]){case _0x172fb1['Number']:case _0x172fb1[_0x22e1d9(0x35b)]:case _0x172fb1[_0x22e1d9(0x27f)]:case _0x172fb1['Rating']:return[_0x3c2fb6['IS'],_0x3c2fb6[_0x22e1d9(0x1d2)],_0x3c2fb6[_0x22e1d9(0x1f3)],_0x3c2fb6[_0x22e1d9(0x31f)],..._0x1a9118];case _0x172fb1[_0x22e1d9(0x431)]:case _0x172fb1[_0x22e1d9(0x421)]:case _0x172fb1['UpdatedAt']:return[_0x3c2fb6['IS'],_0x3c2fb6['IS_NOT'],_0x3c2fb6[_0x22e1d9(0x422)],_0x3c2fb6[_0x22e1d9(0x363)],..._0x1a9118];case _0x172fb1['Checkbox']:return[_0x3c2fb6['IS'],_0x3c2fb6[_0x22e1d9(0x1d2)]];default:return[_0x3c2fb6['IS'],_0x3c2fb6[_0x22e1d9(0x1d2)],_0x3c2fb6[_0x22e1d9(0x3af)],_0x3c2fb6[_0x22e1d9(0x434)],..._0x1a9118];}}function Gr(_0x4224b4){const _0x2e7405=_0x1b61b5;return _0x4224b4?_0x4224b4[_0x2e7405(0x16c)]===_0x172fb1[_0x2e7405(0x26c)]?!0x1:Xr(_0x4224b4[_0x2e7405(0x16c)])?_0x27630c()[_0x2e7405(0x384)](_0x2e7405(0x320)):Qr(_0x4224b4)?[]:'':'';}function Kr(_0x422334){const _0x58071e=_0x1b61b5;return _0x422334!==_0x3c2fb6[_0x58071e(0x2d7)]&&_0x422334!==_0x3c2fb6['IS_NOT_EMPTY'];}function qr(_0x1b2de4){const _0x42a94f=_0x1b61b5;var _0x5738c1;return(Array['isArray'](_0x1b2de4==null||(_0x5738c1=_0x1b2de4[_0x42a94f(0x279)])==null?void 0x0:_0x5738c1[_0x42a94f(0x27e)])?_0x1b2de4[_0x42a94f(0x279)][_0x42a94f(0x27e)]:[])[_0x42a94f(0x32e)]((_0x177b1b,_0x335edc)=>{const _0x34bc17=_0x42a94f;if(typeof _0x177b1b==_0x34bc17(0x429))return{'label':_0x177b1b,'value':_0x177b1b};if(!Jr(_0x177b1b))return{'label':String(_0x335edc+0x1),'value':String(_0x335edc+0x1)};let _0x4a29d0=_0x177b1b,_0x2d7490=String(_0x4a29d0[_0x34bc17(0x1e6)]??_0x4a29d0['id']??_0x335edc+0x1),_0x5636df=String(_0x4a29d0['id']??_0x2d7490);return{'label':_0x2d7490,'value':/^opt-\d+$/['test'](_0x5636df)?_0x2d7490:_0x5636df};});}function Jr(_0x92201f){const _0x37e738=_0x1b61b5;return typeof _0x92201f==_0x37e738(0x280)&&!!_0x92201f;}function Yr(_0x5992d5,_0x337a93,_0x1d668d){const _0x30a098=_0x1b61b5;let _0x2e869d=JSON['stringify'](_0x337a93);return _0x2e869d+'-'+_0x5992d5['slice'](0x0,_0x1d668d)['filter'](_0x13ddb0=>JSON[_0x30a098(0x423)](_0x13ddb0)===_0x2e869d)[_0x30a098(0x39e)];}function Xr(_0x2cf02b){const _0x31ac4c=_0x1b61b5;return _0x2cf02b===_0x172fb1['Date']||_0x2cf02b===_0x172fb1[_0x31ac4c(0x421)]||_0x2cf02b===_0x172fb1[_0x31ac4c(0x433)];}function Zr(_0x172501){const _0x3c832a=_0x1b61b5;return _0x172501===_0x172fb1[_0x3c832a(0x370)]||_0x172501===_0x172fb1[_0x3c832a(0x35b)]||_0x172501===_0x172fb1[_0x3c832a(0x27f)]||_0x172501===_0x172fb1[_0x3c832a(0x332)];}function Qr(_0x1fcedb){const _0x3e0fe1=_0x1b61b5;var _0x3613b1;return(_0x1fcedb==null?void 0x0:_0x1fcedb[_0x3e0fe1(0x16c)])===_0x172fb1[_0x3e0fe1(0x185)]||(_0x1fcedb==null?void 0x0:_0x1fcedb['type'])===_0x172fb1[_0x3e0fe1(0x231)]||(_0x1fcedb==null?void 0x0:_0x1fcedb[_0x3e0fe1(0x16c)])===_0x172fb1[_0x3e0fe1(0x425)]&&((_0x3613b1=_0x1fcedb[_0x3e0fe1(0x279)])==null?void 0x0:_0x3613b1[_0x3e0fe1(0x273)])===!0x0;}function $r({base:_0x45d578,chartRuntime:_0x5ecc5b,onChange:_0x58bdaa,onClose:_0x1c2988,onSelectBackgroundImage:_0x4fd5a5,onSelectImage:_0x4f7747,unitId:_0x28d672,widget:_0x3fa026}){const _0x4329dd=_0x1b61b5;let _0x240caa=_0x111d86(_0x4d1d2c),_0x1a41dd=_0x111d86(_0x1b858e),_0x1fd27f=_0x45d578[_0x4329dd(0x1e4)](),_0x218d99=_0x4329dd(0x2da)in _0x3fa026?_0x1fd27f[_0x4329dd(0x204)][_0x3fa026[_0x4329dd(0x2da)]]:void 0x0,_0x43377d=_0x3fa026[_0x4329dd(0x16c)]===_0x287e12[_0x4329dd(0x2f2)]?_0x218d99==null?void 0x0:_0x218d99['views'][_0x3fa026[_0x4329dd(0x23a)]]:void 0x0,_0x42c169=_0x1a41dd['t'](oi(_0x3fa026)),_0xb858d3=_0x1c6b37=>_0x1a41dd['t'](_0x4329dd(0x462)+_0x1c6b37);return _0x205339(_0x4329dd(0x3c1),{'data-dashboard-inspector':!0x0,'className':'univer-flex\x20univer-h-full\x20univer-w-[380px]\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x205339('header',{'className':_0x4329dd(0x1a5),'children':[_0x8963d5('h3',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0x42c169}),_0x8963d5(_0x92f88c,{'type':_0x4329dd(0x270),'size':'small','variant':_0x4329dd(0x326),'aria-label':_0xb858d3(_0x4329dd(0x3fe)),'onClick':_0x1c2988,'children':_0x8963d5(_0x2193c5,{})})]}),_0x3fa026[_0x4329dd(0x16c)]===_0x287e12[_0x4329dd(0x2f2)]&&(ai(_0x43377d)&&_0x5ecc5b?_0x8963d5(Nr,{'runtime':_0x5ecc5b,'sourceChart':_0x43377d['config'][_0x4329dd(0x303)],'sourceName':((_0x218d99==null?void 0x0:_0x218d99[_0x4329dd(0x1e6)])??'')+_0x4329dd(0x2bb)+_0x43377d[_0x4329dd(0x1e6)],'widget':_0x3fa026,'onChange':_0x58bdaa,'onEditData':()=>{const _0x3d1be2=_0x4329dd;_0x240caa[_0x3d1be2(0x27a)](_0x1ee077['id'],{'unitId':_0x28d672,'tableId':_0x3fa026[_0x3d1be2(0x2da)],'viewId':_0x3fa026['pivotViewId']})[_0x3d1be2(0x19f)](()=>void 0x0);}}):_0x8963d5(ri,{'message':ai(_0x43377d)?_0xb858d3(_0x4329dd(0x1c0)):_0xb858d3(_0x4329dd(0x3d0))})),_0x3fa026[_0x4329dd(0x16c)]===_0x287e12[_0x4329dd(0x3be)]&&_0x8963d5(Ir,{'base':_0x45d578,'widget':_0x3fa026,'onChange':_0x58bdaa,'onSelectBackgroundImage':_0x4fd5a5}),_0x3fa026[_0x4329dd(0x16c)]===_0x287e12[_0x4329dd(0x261)]&&_0x8963d5(ti,{'base':_0x45d578,'onChange':_0x58bdaa,'widget':_0x3fa026}),_0x3fa026[_0x4329dd(0x16c)]===_0x287e12[_0x4329dd(0x2be)]&&_0x8963d5(ni,{'label':_0xb858d3,'onChange':_0x58bdaa,'widget':_0x3fa026}),_0x3fa026[_0x4329dd(0x16c)]===_0x287e12[_0x4329dd(0x23d)]&&_0x8963d5(ei,{'label':_0xb858d3,'onChange':_0x58bdaa,'onSelectImage':_0x4f7747,'widget':_0x3fa026})]});}function ei({label:_0x17d8c7,onChange:_0x28db1e,onSelectImage:_0x801937,widget:_0x255cfc}){const _0x224c94=_0x1b61b5;return _0x205339(_0x224c94(0x2cd),{'className':_0x224c94(0x430),'children':[_0x205339(_0x92f88c,{'className':_0x224c94(0x41e),'onClick':()=>_0x801937()[_0x224c94(0x274)](_0x4e8744=>_0x4e8744&&_0x28db1e({..._0x255cfc,'source':_0x4e8744[_0x224c94(0x2d3)],'sourceType':_0x4e8744['sourceType'],'alt':_0x4e8744[_0x224c94(0x1e6)]}))['catch'](()=>void 0x0),'children':[_0x8963d5(_0x2c7967,{}),_0x17d8c7(_0x224c94(0x3ca))]}),_0x205339(_0x224c94(0x3e0),{'className':_0x224c94(0x455),'children':[_0x8963d5(_0x224c94(0x33a),{'children':_0x17d8c7(_0x224c94(0x307))}),_0x8963d5(_0x238b12,{'items':[{'value':'cover','label':_0x17d8c7(_0x224c94(0x44e))},{'value':_0x224c94(0x333),'label':_0x17d8c7(_0x224c94(0x333))},{'value':'original','label':_0x17d8c7('originalSize')}],'value':_0x255cfc[_0x224c94(0x424)]??_0x224c94(0x44e),'onChange':_0x348b27=>_0x28db1e({..._0x255cfc,'displayMode':_0x348b27})[_0x224c94(0x19f)](()=>void 0x0)})]})]});}function ti({base:_0xe27be3,onChange:_0x3376ad,widget:_0xbf6c4}){const _0x47ef13=_0x1b61b5;let _0x203082=_0xe27be3[_0x47ef13(0x1e4)]()[_0x47ef13(0x204)][_0xbf6c4[_0x47ef13(0x2da)]],_0x2b1033=_0x203082==null?void 0x0:_0x203082['viewOrder'][_0x47ef13(0x26f)](_0xe6ea8e=>_0x203082[_0x47ef13(0x2a0)][_0xe6ea8e]),_0x30b105=_0x2b1033?_0x203082==null?void 0x0:_0x203082[_0x47ef13(0x2a0)][_0x2b1033]:void 0x0;return _0x8963d5(zr,{'fields':_0x203082&&_0x30b105?_0x5adea1(_0x203082,_0x30b105):[],'filter':_0xbf6c4['filter'],'onChange':_0xc69224=>_0x3376ad({..._0xbf6c4,'filter':_0xc69224})[_0x47ef13(0x19f)](()=>void 0x0),'onClear':()=>_0x3376ad({..._0xbf6c4,'filter':null})[_0x47ef13(0x19f)](()=>void 0x0)});}function ni({label:_0x268122,onChange:_0x16e697,widget:_0x356647}){const _0x4ce873=_0x1b61b5;let _0xf245e0=_0x111d86(_0x2742b2),_0x268667=_0x486455(()=>_0xf245e0[_0x4ce873(0x190)],_0xf245e0[_0x4ce873(0x2c9)](),!0x1,[_0xf245e0]),_0x2152aa=gr(_0x356647),_0x5c46b1=_0x1121d9=>_0x16e697({..._0x356647,'appearance':{..._0x2152aa,..._0x1121d9}})[_0x4ce873(0x19f)](()=>void 0x0);return _0x205339(_0x4ce873(0x2cd),{'className':_0x4ce873(0x2d8),'children':[_0x8963d5(_0x5e467e,{'defaultValue':_r(_0x356647[_0x4ce873(0x43b)]),'rows':0x8,'onBlur':_0x28bf99=>_0x16e697({..._0x356647,'document':vr(_0x356647[_0x4ce873(0x43b)],_0x28bf99[_0x4ce873(0x206)][_0x4ce873(0x2e7)])})[_0x4ce873(0x19f)](()=>void 0x0)}),_0x8963d5(_0x42c17e,{'emptyLabel':_0x268122(_0x4ce873(0x3d3)),'label':_0x268122(_0x4ce873(0x3d3)),'pickerFallbackValue':_0x268667[_0x4ce873(0x40d)][0x0],'resetLabel':_0x268122('reset'),'value':_0x2152aa[_0x4ce873(0x3d3)]??null,'onChange':_0xcbd5d2=>_0x5c46b1({'backgroundColor':_0xcbd5d2??void 0x0})}),_0x8963d5(_0x42c17e,{'emptyLabel':_0x268122(_0x4ce873(0x302)),'label':_0x268122(_0x4ce873(0x302)),'pickerFallbackValue':_0x268667[_0x4ce873(0x40d)][0x3e8],'resetLabel':_0x268122(_0x4ce873(0x25a)),'value':_0x2152aa[_0x4ce873(0x302)]??null,'onChange':_0x44eef8=>_0x5c46b1({'textColor':_0x44eef8??void 0x0})}),_0x8963d5(ii,{'label':_0x268122(_0x4ce873(0x285)),'children':_0x8963d5(_0x238b12,{'items':[{'value':_0x4ce873(0x212),'label':_0x268122(_0x4ce873(0x212))},{'value':_0x4ce873(0x248),'label':_0x268122(_0x4ce873(0x248))},{'value':'right','label':_0x268122('right')}],'value':_0x2152aa[_0x4ce873(0x285)],'onChange':_0x3bea45=>_0x5c46b1({'alignment':_0x3bea45})})}),_0x205339(ii,{'label':_0x268122(_0x4ce873(0x342)),'children':[_0x8963d5(_0x238b12,{'items':[{'value':_0x4ce873(0x295),'label':_0x268122('autoFit')},{'value':'custom','label':_0x268122(_0x4ce873(0x2c8))}],'value':_0x2152aa[_0x4ce873(0x3e9)],'onChange':_0x4b53d4=>_0x5c46b1({'fontSizeMode':_0x4b53d4})}),_0x2152aa['fontSizeMode']===_0x4ce873(0x2c8)&&_0x8963d5(_0xd7d7e7,{'className':_0x4ce873(0x1e1),'min':0xa,'max':0x78,'value':_0x2152aa['fontSize'],'onChange':_0x35d0e6=>_0x5c46b1({'fontSize':_0x35d0e6??0x12,'fontSizeMode':_0x4ce873(0x2c8)})})]})]});}function ri({message:_0x12d267}){const _0x26ffd8=_0x1b61b5;return _0x8963d5('div',{'className':_0x26ffd8(0x2ca),'children':_0x12d267});}function ii({children:_0x2007bc,label:_0x4d92c8}){const _0x3a3409=_0x1b61b5;return _0x205339(_0x3a3409(0x2cd),{'role':_0x3a3409(0x25f),'aria-label':_0x4d92c8,'className':_0x3a3409(0x455),'children':[_0x8963d5('span',{'children':_0x4d92c8}),_0x2007bc]});}function ai(_0x1f8695){const _0x502323=_0x1b61b5;return(_0x1f8695==null?void 0x0:_0x1f8695[_0x502323(0x16c)])===_0xc2cfc[_0x502323(0x27c)]&&typeof _0x1f8695[_0x502323(0x279)]==_0x502323(0x280)&&_0x1f8695['config']!==null&&_0x502323(0x16d)in _0x1f8695['config']&&_0x502323(0x303)in _0x1f8695[_0x502323(0x279)];}function oi(_0x3f4621){const _0x2137d2=_0x1b61b5;switch(_0x3f4621['type']){case _0x287e12[_0x2137d2(0x2f2)]:return'bases-dashboard-ui.dashboard.pivotChart';case _0x287e12[_0x2137d2(0x261)]:return'bases-dashboard-ui.dashboard.tableFilter';case _0x287e12[_0x2137d2(0x2be)]:return _0x2137d2(0x3c7);case _0x287e12[_0x2137d2(0x23d)]:return _0x2137d2(0x2e8);case _0x287e12[_0x2137d2(0x3be)]:return _0x2137d2(0x43f);}}let si=class{constructor(_0x415a1e,_0x3ac1cc,_0x2fb38f){const _0x5ca9c5=_0x1b61b5;this['_localeService']=_0x415a1e,this[_0x5ca9c5(0x436)]=_0x3ac1cc,this[_0x5ca9c5(0x236)]=_0x2fb38f;}[_0x1b61b5(0x293)](){const _0x1122d6=_0x1b61b5;return this[_0x1122d6(0x236)][_0x1122d6(0x390)](_0x3e50c5['Dom'],this[_0x1122d6(0x2dd)]());}[_0x1b61b5(0x3a7)](_0xf1d5af){const _0x3a2706=_0x1b61b5;let _0xbc8f82=_0xf1d5af['model'][_0x3a2706(0x279)];if(!_0xbc8f82)throw Error(_0x3a2706(0x31b)+_0xf1d5af[_0x3a2706(0x2b5)]+_0x3a2706(0x2fd));let _0x134b11=this[_0x3a2706(0x24c)]['getDirection']();return{'config':_0xbc8f82,'style':_0x27af81({..._0xf1d5af[_0x3a2706(0x173)][_0x3a2706(0x1b6)],'runtime':_0xf1d5af['model'][_0x3a2706(0x344)](_0x134b11),'direction':_0x134b11},_0xbc8f82[_0x3a2706(0x16c)])};}[_0x1b61b5(0x2dd)](){const _0x38a5e2=_0x1b61b5;return{'resolveHostStyle':({style:_0x19528e})=>_0x19fc53({'style':_0x19528e,'getRenderColor':_0xdf33c5=>this[_0x38a5e2(0x436)][_0x38a5e2(0x2e6)](_0xdf33c5)}),'resolveRenderBackgroundColor':({hostStyle:_0x121c9a})=>_0x121c9a['fill']};}};si=Cr([X(0x0,_0x15f39b(_0x1b858e)),X(0x1,_0x15f39b(_0x5aa831)),X(0x2,_0x26dcce)],si);function ci(_0x3d1771,_0x37a658){const _0x5af3f9=_0x1b61b5;var _0x5955a6;_0x3d1771[_0x5af3f9(0x1b6)]['backgroundColor']=_0x37a658[_0x5af3f9(0x3ed)]??_0x5af3f9(0x289),_0x3d1771[_0x5af3f9(0x1b6)][_0x5af3f9(0x32f)]=(_0x5955a6=_0x37a658[_0x5af3f9(0x32f)])!=null&&_0x5955a6[_0x5af3f9(0x405)]&&_0x37a658[_0x5af3f9(0x32f)][_0x5af3f9(0x2bc)]?_0x37a658['border'][_0x5af3f9(0x2bc)]+_0x5af3f9(0x187)+_0x37a658[_0x5af3f9(0x32f)]['color']:'',_0x3d1771['style'][_0x5af3f9(0x449)]=_0x37a658[_0x5af3f9(0x199)]?_0x37a658[_0x5af3f9(0x199)]+'px':'',_0x3d1771[_0x5af3f9(0x1b6)][_0x5af3f9(0x228)]=_0x5af3f9(0x3c5),_0x3d1771[_0x5af3f9(0x1b6)]['boxSizing']='border-box';}var li=class extends _0x95b7c6{constructor(_0x3c4692,_0x44fa0d){const _0x356ce5=_0x1b61b5;super(),this['chartId']=_0x3c4692,this[_0x356ce5(0x2a4)]=_0x44fa0d,Sr(this,'mode',_0x3e50c5['Dom']);}[_0x1b61b5(0x33c)](){const _0x2020cd=_0x1b61b5;return{'width':Math[_0x2020cd(0x2fc)](0x1,this['_element'][_0x2020cd(0x446)]),'height':Math[_0x2020cd(0x2fc)](0x1,this[_0x2020cd(0x2a4)][_0x2020cd(0x38f)])};}[_0x1b61b5(0x1de)](_0xb556f8){ci(this['_element'],_0xb556f8);}async['ensureMount'](){const _0x4fb910=_0x1b61b5;return this[_0x4fb910(0x2a4)];}['checkMounted'](){const _0x5e07b3=_0x1b61b5;return this[_0x5e07b3(0x2a4)][_0x5e07b3(0x3c6)];}['syncLayout'](){}['markReady'](){}[_0x1b61b5(0x401)](){}};function ui({isRowDirection:_0x283101,runtime:_0x54f177}){const _0x1d438e=_0x1b61b5;let _0x45991e=_0x31ff85(null),_0x8398b5=_0x111d86(_0x1b858e),_0x26e9ec=_0x111d86(_0x171e0),_0x4f56b4=_0x111d86(si),_0x39da87=_0x111d86(_0x2742b2);return _0x181d66(()=>{const _0x43d3a1=_0xf973;let _0x67b389=_0x45991e[_0x43d3a1(0x240)];if(!_0x67b389)return;_0x67b389[_0x43d3a1(0x317)]();let {chartId:_0x1f6e27,model:_0x255b3c}=_0x54f177,_0x480ad8=_0x255b3c[_0x43d3a1(0x42a)],_0x3c65fd=new li(_0x1f6e27,_0x67b389),_0x476967=_0x4f56b4[_0x43d3a1(0x293)](),_0x3851fb=!0x1,_0x17ca7e=null,_0x293eee=null,_0x29a7f5=null,_0x483b84=null,_0x215079=!0x1,_0x58343d=!0x1,_0x19d752=Promise[_0x43d3a1(0x221)]();_0x476967['bind'](_0x3c65fd);let _0x1e16bf=()=>{const _0x5e7146=_0x43d3a1;var _0x432a52,_0x1ec542,_0x355a93,_0x2400f2;if(document[_0x5e7146(0x174)]===_0x5e7146(0x3c5)||(_0x432a52=(_0x1ec542=window)[_0x5e7146(0x414)])!=null&&(_0x432a52=_0x432a52[_0x5e7146(0x183)](_0x1ec542,_0x5e7146(0x29c)))!=null&&_0x432a52[_0x5e7146(0x258)]||(_0x355a93=(_0x2400f2=window)[_0x5e7146(0x414)])!=null&&(_0x355a93=_0x355a93['call'](_0x2400f2,_0x5e7146(0x1ce)))!=null&&_0x355a93[_0x5e7146(0x258)]||!_0x67b389['isConnected'])return!0x1;let _0x5313ba=_0x67b389[_0x5e7146(0x205)]();return _0x5313ba['width']>0x0&&_0x5313ba['height']>0x0&&_0x5313ba[_0x5e7146(0x387)]>0x0&&_0x5313ba['bottom']>0x0&&_0x5313ba[_0x5e7146(0x212)]<window[_0x5e7146(0x294)]&&_0x5313ba[_0x5e7146(0x366)]<window[_0x5e7146(0x1e5)];},_0xd52969=()=>{const _0x2d4d55=_0x43d3a1;_0x293eee!==null&&clearTimeout(_0x293eee),_0x67b389['dataset']['baseChartDataAnimation']=_0x2d4d55(0x341),_0x67b389[_0x2d4d55(0x2b3)][_0x2d4d55(0x356)]=String(_0x267d25),_0x293eee=setTimeout(()=>{const _0x5d32f7=_0x2d4d55;_0x293eee=null,delete _0x67b389['dataset']['baseChartDataAnimation'],delete _0x67b389[_0x5d32f7(0x2b3)][_0x5d32f7(0x356)];},_0x267d25);},_0x32fdff=_0x10aab2=>{const _0x49167c=_0x43d3a1;if(_0x3851fb)return;if(_0x17ca7e!==null&&(clearTimeout(_0x17ca7e),_0x17ca7e=null),!_0x255b3c[_0x49167c(0x279)]){_0x58343d||=_0x10aab2;return;}_0x67b389[_0x49167c(0x2b3)]['chartType']=String(_0x255b3c[_0x49167c(0x330)]),_0x67b389[_0x49167c(0x2b3)]['chartRowDirection']=String(_0x283101);let _0x514cb4=_0x4f56b4[_0x49167c(0x3a7)](_0x54f177),_0x18b40d={'chartId':_0x1f6e27,'config':_0x514cb4['config'],'style':_0x514cb4[_0x49167c(0x1b6)]};_0x19d752=_0x19d752[_0x49167c(0x274)](async()=>{const _0x44d0dd=_0x49167c;_0x3851fb||(_0x67b389[_0x44d0dd(0x2b3)][_0x44d0dd(0x1fc)]=String(Number(_0x67b389[_0x44d0dd(0x2b3)][_0x44d0dd(0x1fc)]??0x0)+0x1),_0x10aab2&&_0x29a7f5&&_0x476967['renderTransition']&&_0x1e16bf()?(await _0x476967[_0x44d0dd(0x1ed)](_0x29a7f5,_0x18b40d,{'duration':_0x267d25}),_0x3851fb||_0xd52969()):await _0x476967[_0x44d0dd(0x316)](_0x18b40d),_0x29a7f5=_0x18b40d);})['catch'](_0xe97e35=>_0x26e9ec[_0x49167c(0x2db)](_0x49167c(0x313),_0xe97e35));},_0x2de2e4=(_0x45fcdb=!0x1)=>{_0x58343d||=_0x45fcdb,!_0x215079&&(_0x215079=!0x0,queueMicrotask(()=>{_0x215079=!0x1;let _0x12207d=_0x58343d;_0x58343d=!0x1,_0x32fdff(_0x12207d);}));},_0xe4d483=[_0x480ad8[_0x43d3a1(0x184)][_0x43d3a1(0x464)](_0x4b7156=>{const _0x52b1c1=_0x43d3a1;let _0x26f15b=JSON[_0x52b1c1(0x423)](_0x4b7156);_0x483b84!=null&&_0x483b84!==_0x26f15b&&_0x2de2e4(!0x0),_0x483b84=_0x26f15b;}),_0x255b3c[_0x43d3a1(0x36c)][_0x43d3a1(0x464)](_0x1a6db8=>{_0x1a6db8&&_0x2de2e4();}),_0x255b3c[_0x43d3a1(0x1c1)][_0x43d3a1(0x464)](()=>_0x2de2e4()),_0x8398b5[_0x43d3a1(0x3c3)][_0x43d3a1(0x464)](()=>_0x2de2e4()),_0x357c2c([_0x39da87[_0x43d3a1(0x190)],_0x39da87[_0x43d3a1(0x186)]])['pipe'](_0x3fc5a3(0x1))[_0x43d3a1(0x464)](()=>_0x2de2e4())],_0x187f6e=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x7f0287=_0x43d3a1;_0x3851fb||(_0x3c65fd[_0x7f0287(0x1fb)](),_0x17ca7e!==null&&clearTimeout(_0x17ca7e),_0x17ca7e=setTimeout(()=>_0x2de2e4(),0x64));});return _0x187f6e==null||_0x187f6e[_0x43d3a1(0x23f)](_0x67b389),()=>{const _0x34f445=_0x43d3a1;_0x3851fb=!0x0,_0x17ca7e!==null&&clearTimeout(_0x17ca7e),_0x293eee!==null&&clearTimeout(_0x293eee),delete _0x67b389[_0x34f445(0x2b3)]['baseChartDataAnimation'],delete _0x67b389[_0x34f445(0x2b3)][_0x34f445(0x356)],_0x187f6e==null||_0x187f6e['disconnect'](),_0xe4d483[_0x34f445(0x2f5)](_0x37f48d=>_0x37f48d[_0x34f445(0x1f5)]()),_0x476967[_0x34f445(0x3f8)](),_0x3c65fd[_0x34f445(0x3f8)](),_0x67b389[_0x34f445(0x317)]();};},[_0x283101,_0x8398b5,_0x26e9ec,_0x4f56b4,_0x54f177,_0x39da87]),_0x8963d5(_0x1d438e(0x2cd),{'ref':_0x45991e,'data-u-comp':_0x1d438e(0x232),'className':_0x1d438e(0x359)});}function di({filters:_0x36be98,onRuntimeChange:_0x58418c,unitId:_0x4d29d1,widget:_0x2d3887}){const _0x7c7741=_0x1b61b5;let _0x4d493b=_0x111d86(_0x593d99),_0x401697=_0x111d86(_0x1b858e),_0x160440=_0x111d86(_0x171e0),_0x69541a=_0x111d86(_0x344528),[_0x3e50b0,_0x578e9d]=_0x316ac5(null),[_0x387f8d,_0x301e27]=_0x316ac5(!0x1),[_0x1dac27,_0x299cc2]=_0x316ac5(null),_0x2631a7=_0x31ff85(_0x7c7741(0x20b)+_0x164771(0x8)),_0x35ef=_0x4d493b[_0x7c7741(0x439)](_0x4d29d1,_0x15499a['UNIVER_BASE']),_0x30220e=_0x35ef==null?void 0x0:_0x35ef[_0x7c7741(0x1e4)]()[_0x7c7741(0x204)][_0x2d3887['tableId']],_0x521b07=_0x30220e==null?void 0x0:_0x30220e['views'][_0x2d3887[_0x7c7741(0x23a)]],_0x47c316=fi(_0x521b07);if(_0x181d66(()=>{const _0x2ab10b=_0x7c7741;if(!_0x47c316)return;let _0x2f32f1=_0x2631a7[_0x2ab10b(0x240)];return _0x69541a[_0x2ab10b(0x457)](_0x2f32f1,{'unitId':_0x4d29d1,'tableId':_0x2d3887['tableId'],'viewId':_0x2d3887[_0x2ab10b(0x23a)],'filters':[]}),()=>{const _0x597050=_0x2ab10b;_0x69541a[_0x597050(0x1ca)](_0x4d29d1,_0x2f32f1),_0x58418c==null||_0x58418c(_0x2d3887['id'],null);};},[_0x47c316,_0x58418c,_0x69541a,_0x4d29d1,_0x2d3887['id'],_0x2d3887[_0x7c7741(0x23a)],_0x2d3887[_0x7c7741(0x2da)]]),_0x181d66(()=>{const _0x203244=_0x7c7741;if(!fi(_0x521b07))return;let _0x5a2c59=!0x0,_0xd8f813=_0x2d3887['chart']??_0x521b07['config'][_0x203244(0x303)],_0x4eca2d={'unitId':_0x4d29d1,'tableId':_0x2d3887['tableId'],'viewId':_0x2d3887[_0x203244(0x23a)],'filters':[_0x521b07[_0x203244(0x347)]??null,..._0x36be98]};return _0x69541a['refreshChartRuntime'](_0x4d29d1,_0x2631a7[_0x203244(0x240)],_0x4eca2d,_0xd8f813)[_0x203244(0x274)](_0x4c600d=>{const _0x39dfd4=_0x203244;if(!_0x5a2c59||!_0x4c600d)return;let _0x2795c6=_0x69541a[_0x39dfd4(0x28c)](_0x4d29d1,_0x2631a7[_0x39dfd4(0x240)])??null;_0x578e9d(_0x4c600d),_0x299cc2(_0x2795c6),_0x301e27(!0x1),_0x58418c==null||_0x58418c(_0x2d3887['id'],_0x2795c6);})[_0x203244(0x19f)](_0x4b536e=>{const _0x4088c1=_0x203244;_0x160440[_0x4088c1(0x2db)](_0x4088c1(0x36b),_0x4b536e),_0x5a2c59&&(_0x578e9d(null),_0x301e27(!0x0));}),()=>{_0x5a2c59=!0x1;};},[_0x36be98,_0x160440,_0x58418c,_0x69541a,_0x4d29d1,_0x521b07,_0x2d3887['chart'],_0x2d3887['id'],_0x2d3887['pivotViewId'],_0x2d3887[_0x7c7741(0x2da)]]),!fi(_0x521b07))return _0x8963d5(_0x7c7741(0x2cd),{'className':_0x7c7741(0x34c),'children':_0x401697['t'](_0x7c7741(0x210))});let _0x570892=_0x69541a[_0x7c7741(0x28c)](_0x4d29d1,_0x2631a7[_0x7c7741(0x240)])===_0x1dac27?_0x1dac27:null;return _0x3e50b0&&_0x570892?_0x8963d5(ui,{'isRowDirection':_0x31a3e3((_0x2d3887['chart']??_0x521b07[_0x7c7741(0x279)][_0x7c7741(0x303)])[_0x7c7741(0x2cc)]),'runtime':_0x570892}):_0x8963d5('div',{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','children':_0x401697['t'](_0x387f8d?_0x7c7741(0x3cd):_0x7c7741(0x244))});}function fi(_0x5c5e46){const _0x5ceff2=_0x1b61b5;return(_0x5c5e46==null?void 0x0:_0x5c5e46[_0x5ceff2(0x16c)])===_0xc2cfc[_0x5ceff2(0x27c)]&&typeof _0x5c5e46['config']=='object'&&_0x5c5e46['config']!==null&&_0x5ceff2(0x16d)in _0x5c5e46['config']&&'chart'in _0x5c5e46[_0x5ceff2(0x279)];}function pi({widget:_0x1211d6}){const _0x464913=_0x1b61b5;let _0x29a991=_0x111d86(_0x2742b2),_0x5c91a3=_0x111d86(_0x1b858e),_0x4050bb=_0x486455(()=>_0x29a991[_0x464913(0x190)],_0x29a991[_0x464913(0x2c9)](),!0x1,[_0x29a991]),_0x39d31d=_0x31ff85(null),_0x28d044=_0x31ff85(null),_0x8d4d74=gr(_0x1211d6),_0xdcda4c=_0x8d4d74['backgroundColor']??_0x4050bb['gray'][0x0],_0x5d40ed=_0x8d4d74[_0x464913(0x302)]??_0x4050bb[_0x464913(0x40d)][0x3e8],_0x517a2b=_r(_0x1211d6[_0x464913(0x43b)]);return _0x181d66(()=>{const _0x52535b=_0x464913;let _0x3f5da8=_0x39d31d[_0x52535b(0x240)],_0x42ce95=_0x28d044[_0x52535b(0x240)];if(!_0x3f5da8||!_0x42ce95)return;let _0x258fa6=()=>{const _0x5ad549=_0x52535b;if(_0x8d4d74[_0x5ad549(0x3e9)]==='custom'||!_0x3f5da8[_0x5ad549(0x446)]||!_0x3f5da8[_0x5ad549(0x38f)]){_0x42ce95[_0x5ad549(0x1b6)][_0x5ad549(0x408)]=_0x8d4d74['fontSize']+'px';return;}let _0x374240=0x8,_0x1da85c=0x48,_0x3b1165=_0x374240;for(;_0x374240<=_0x1da85c;){let _0x2a2286=Math['floor']((_0x374240+_0x1da85c)/0x2);_0x42ce95[_0x5ad549(0x1b6)]['fontSize']=_0x2a2286+'px',_0x42ce95['scrollWidth']<=_0x3f5da8[_0x5ad549(0x446)]&&_0x42ce95[_0x5ad549(0x3ce)]<=_0x3f5da8[_0x5ad549(0x38f)]?(_0x3b1165=_0x2a2286,_0x374240=_0x2a2286+0x1):_0x1da85c=_0x2a2286-0x1;}_0x42ce95['style'][_0x5ad549(0x408)]=_0x3b1165+'px';};if(_0x258fa6(),typeof ResizeObserver>'u')return;let _0x9c92ae=new ResizeObserver(_0x258fa6);return _0x9c92ae[_0x52535b(0x23f)](_0x3f5da8),()=>_0x9c92ae['disconnect']();},[_0x8d4d74['fontSize'],_0x8d4d74[_0x464913(0x3e9)],_0x517a2b]),_0x8963d5(_0x464913(0x2cd),{'data-dashboard-text-widget':_0x1211d6['id'],'className':_0x464913(0x3f2),'style':{'backgroundColor':_0xdcda4c,'color':_0x5d40ed},'children':_0x8963d5(_0x464913(0x2cd),{'ref':_0x39d31d,'data-dashboard-text-content':!0x0,'aria-label':_0x5c91a3['t'](_0x464913(0x3c7)),'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','children':_0x8963d5(_0x464913(0x2cd),{'ref':_0x28d044,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x8d4d74['fontSizeMode'],'className':_0x464913(0x220),'style':{'textAlign':_0x8d4d74['alignment']},'children':_0x517a2b})})});}function mi({onDelete:_0x527793,onEdit:_0x1065a8}){const _0xfba969=_0x1b61b5;let _0x54880d=_0x111d86(_0x1b858e),_0x208c94=_0x54880d['t']('bases-dashboard-ui.dashboard.editWidget'),_0x4ef621=_0x54880d['t'](_0xfba969(0x219)),_0x15f0ba=_0x54880d['t'](_0xfba969(0x36d));return _0x8963d5(_0x28cc4c,{'items':[{'type':_0xfba969(0x3d8),'children':_0x205339(_0xfba969(0x33a),{'className':_0xfba969(0x28d),'children':[_0x8963d5(_0x4fd52d,{'className':_0xfba969(0x1d8),'aria-hidden':_0xfba969(0x341)}),_0x8963d5(_0xfba969(0x33a),{'children':_0x208c94})]}),'onSelect':_0x1065a8},{'type':_0xfba969(0x3d4)},{'type':_0xfba969(0x3d8),'variant':_0xfba969(0x194),'children':_0x205339(_0xfba969(0x33a),{'className':_0xfba969(0x28d),'children':[_0x8963d5(_0x416d77,{'className':_0xfba969(0x1d8),'aria-hidden':_0xfba969(0x341)}),_0x8963d5(_0xfba969(0x33a),{'children':_0x4ef621})]}),'onSelect':_0x527793}],'children':_0x8963d5(_0x92f88c,{'type':_0xfba969(0x270),'size':_0xfba969(0x218),'variant':'text','title':_0x15f0ba,'aria-label':_0x15f0ba,'className':_0xfba969(0x314),'children':_0x8963d5(_0xa950a5,{'className':'univer-size-4','aria-hidden':_0xfba969(0x341)})})});}function hi({dashboardId:_0x392172,presentation:_0xfb0d1d=!0x1,unitId:_0x2e5600}){const _0x4be673=_0x1b61b5;let _0x12ca2d=_0x111d86(_0x4d1d2c),_0x4a2f75=_0x111d86(_0x3c632e),_0x1c94d5=_0x111d86(_0x2f3c7d),_0x5597b1=_0x111d86(_0x593d99),_0x473a41=_0x111d86(_0x1b858e),_0x4eb271=_0x111d86(_0x3d9e8d),_0x3e661f=_0x111d86(_0x348206),_0xe14820=_0x31ff85(null),[_0x1e0bd2,_0x13e836]=_0x316ac5(!0x1),[_0xa98f48,_0x27d0e3]=_0x316ac5(),[_0x36dcc5,_0x5d55d9]=_0x316ac5(!0x1),[_0x1dc7c1,_0x58f47b]=_0x316ac5(()=>new Map()),_0x4d3d48=_0x293334((_0x1c205e,_0x208d7e)=>{_0x58f47b(_0x78409e=>{const _0x40ccdb=_0xf973;let _0x366cfb=new Map(_0x78409e);return _0x208d7e?_0x366cfb[_0x40ccdb(0x196)](_0x1c205e,_0x208d7e):_0x366cfb[_0x40ccdb(0x2d9)](_0x1c205e),_0x366cfb;});},[]),_0x859d6b=_0x486455(()=>_0x4eb271['change$']['pipe'](_0x195dec(()=>_0x4eb271['getDashboard'](_0x2e5600,_0x392172))),_0x4eb271['getDashboard'](_0x2e5600,_0x392172),!0x1,[_0x392172,_0x4eb271,_0x2e5600]),_0x5d1254=_0x5597b1['getUnit'](_0x2e5600,_0x15499a['UNIVER_BASE']),_0x50c59f=_0x486455(()=>_0x3e661f[_0x4be673(0x435)],{'undos':0x0,'redos':0x0},!0x1,[_0x3e661f]),_0x358058=Xn(_0x2e5600,_0x392172);if(_0x181d66(()=>{const _0x2d0cea=_0x4be673;_0x5597b1['setCurrentUnitForType'](_0x2e5600),_0x5597b1[_0x2d0cea(0x3ff)](_0x2e5600);},[_0x5597b1,_0x2e5600]),_0x181d66(()=>{const _0x55bd54=_0x4be673;let _0x54016f=_0xe14820['current'],_0x1c9d8a=_0x54016f==null?void 0x0:_0x54016f['ownerDocument'];if(!_0x54016f||!_0x1c9d8a)return;let _0x34a74f=()=>_0x5d55d9(_0x1c9d8a['fullscreenElement']===_0x1c9d8a[_0x55bd54(0x45f)]),_0x2302fd=_0x1bcce9=>{const _0x316042=_0x55bd54;_0x1bcce9['key']==='Escape'&&!_0x1bcce9[_0x316042(0x444)]&&_0x1c9d8a['fullscreenElement']===_0x1c9d8a[_0x316042(0x45f)]&&_0x1c9d8a['exitFullscreen']()['catch'](_0x34a74f);};return _0x1c9d8a[_0x55bd54(0x2dc)](_0x55bd54(0x40b),_0x34a74f),_0x1c9d8a[_0x55bd54(0x2dc)]('keydown',_0x2302fd),()=>{const _0x2bc82f=_0x55bd54;_0x1c9d8a[_0x2bc82f(0x215)](_0x2bc82f(0x40b),_0x34a74f),_0x1c9d8a['removeEventListener']('keydown',_0x2302fd);};},[]),!_0x859d6b||!_0x5d1254)return null;let _0x582607=_0x54263c=>_0x12ca2d['executeCommand'](_0x154626['id'],{'unitId':_0x2e5600,'dashboardId':_0x392172,'widget':_0x54263c})[_0x4be673(0x19f)](()=>void 0x0),_0x16ec24=(_0x354ac2,_0xc093e8,_0x42d45f)=>{const _0x4698d9=_0x4be673;let _0x1d2459=Math[_0x4698d9(0x2fc)](0x0,..._0x859d6b[_0x4698d9(0x16a)]['flatMap'](_0x222108=>{const _0x2bb3eb=_0x4698d9;var _0x36cc53;let _0x46d255=(_0x36cc53=_0x859d6b['widgets'][_0x222108])==null?void 0x0:_0x36cc53[_0x2bb3eb(0x1b8)];return _0x46d255?[_0x46d255[_0x2bb3eb(0x44d)]+_0x46d255['rowSpan']]:[];})),_0x460760=_0x4698d9(0x3c0)+_0x164771(0x8),_0xa5b09a={'column':0x0,'row':_0x1d2459,'columnSpan':_0xc093e8,'rowSpan':_0x42d45f};switch(_0x354ac2[_0x4698d9(0x16c)]){case _0x287e12['PivotChart']:return _0x582607({..._0x354ac2,'id':_0x460760,'layout':_0xa5b09a});case _0x287e12[_0x4698d9(0x261)]:return _0x582607({..._0x354ac2,'id':_0x460760,'layout':_0xa5b09a});case _0x287e12[_0x4698d9(0x2be)]:return _0x582607({..._0x354ac2,'id':_0x460760,'layout':_0xa5b09a});case _0x287e12[_0x4698d9(0x23d)]:return _0x582607({..._0x354ac2,'id':_0x460760,'layout':_0xa5b09a});case _0x287e12['FormulaShape']:return _0x582607({..._0x354ac2,'id':_0x460760,'layout':_0xa5b09a});}},_0x311235=_0x5d1254[_0x4be673(0x1e4)](),_0x1e83a8=_0x311235['tableOrder']['flatMap'](_0x42c28d=>{const _0x498110=_0x4be673;let _0x4974c6=_0x311235[_0x498110(0x204)][_0x42c28d];if(!_0x4974c6)return[];let _0x29f5bb=_0x4974c6[_0x498110(0x3b6)][_0x498110(0x336)](_0x11faf1=>{const _0x3a0849=_0x498110;let _0x139a69=_0x4974c6[_0x3a0849(0x2a0)][_0x11faf1];return Ci(_0x139a69)?[{'type':_0x3a0849(0x3d8),'children':_0x139a69['name'],'onSelect':()=>_0x16ec24({'type':_0x287e12[_0x3a0849(0x2f2)],'tableId':_0x42c28d,'pivotViewId':_0x11faf1,'chart':{..._0x139a69['config'][_0x3a0849(0x303)]}},0x6,0xa)}]:[];});return[{'type':_0x498110(0x3f7),'children':_0x4974c6['name'],'options':[..._0x29f5bb,..._0x29f5bb[_0x498110(0x39e)]?[{'type':_0x498110(0x3d4)}]:[],{'type':_0x498110(0x3d8),'children':_0x473a41['t'](_0x498110(0x257)),'onSelect':()=>_0x16ec24({'type':_0x287e12['TableFilter'],'tableId':_0x42c28d,'filter':null},0x6,0x8)}]}];}),_0x5abb59=[..._0x1e83a8,..._0x1e83a8[_0x4be673(0x39e)]?[{'type':'separator'}]:[],{'type':_0x4be673(0x3d8),'children':_0x473a41['t'](_0x4be673(0x3c7)),'onSelect':()=>_0x16ec24({'type':_0x287e12['Text'],'document':yi()},0x4,0x6)},{'type':_0x4be673(0x3d8),'children':_0x473a41['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>bi(_0x4a2f75)[_0x4be673(0x274)](_0x557fb1=>_0x557fb1&&_0x16ec24({'type':_0x287e12['Image'],'source':_0x557fb1['source'],'sourceType':_0x557fb1[_0x4be673(0x2e5)],'alt':_0x557fb1[_0x4be673(0x1e6)],'displayMode':'cover'},0x4,0x6))},{'type':'item','children':_0x473a41['t'](_0x4be673(0x43f)),'onSelect':()=>{const _0x3eb89b=_0x4be673;let _0x236945=_0x311235[_0x3eb89b(0x2e9)][_0x3eb89b(0x26f)](_0x2282aa=>_0x311235[_0x3eb89b(0x204)][_0x2282aa]);_0x236945&&_0x16ec24({'type':_0x287e12['FormulaShape'],'tableId':_0x236945,'shapeType':_0x30c96a[_0x3eb89b(0x1e9)],'shapeData':_0xcdb073(),'description':_0x473a41['t'](_0x3eb89b(0x43f))},0x4,0x6);}}],_0xcbd240=_0xa98f48?_0x859d6b[_0x4be673(0x1e2)][_0xa98f48]:void 0x0,_0x2c17c6=async()=>{const _0x377aa8=_0x4be673;let _0x5ef901=_0xe14820[_0x377aa8(0x240)];if(!_0x5ef901)return;let _0x4f5434=_0x5ef901[_0x377aa8(0x2c4)];if(_0x4f5434[_0x377aa8(0x403)]===_0x4f5434[_0x377aa8(0x45f)]){await _0x4f5434[_0x377aa8(0x31e)]();return;}await _0x4f5434['documentElement'][_0x377aa8(0x392)]();},_0x13c66b=_0xfb0d1d||_0x36dcc5,_0x139cb1=_0x358058&&!_0x13c66b;return _0x205339('div',{'ref':_0xe14820,'className':_0x4be673(0x360)+(_0x36dcc5?_0x4be673(0x3c2):_0x4be673(0x2b4))+_0x4be673(0x269),'children':[!_0x13c66b&&_0x205339(_0x4be673(0x29d),{'className':_0x4be673(0x1a1),'children':[_0x8963d5(_0x3f9c1c,{'className':_0x4be673(0x266)}),_0x8963d5('h2',{'className':_0x4be673(0x3ad),'children':_0x859d6b[_0x4be673(0x1e6)]}),_0x8963d5(_0x4942f1,{'target':{'unitId':_0x2e5600,'objectId':_0x272844(_0x392172),'objectType':_0xb10101[_0x4be673(0x3b3)]},'name':_0x859d6b['name'],'commandId':_0x560501['id'],'exists':()=>!!_0x4eb271[_0x4be673(0x39a)](_0x2e5600,_0x392172)},_0x2e5600+'/'+_0x392172),_0x8963d5(_0x513585,{'unitId':_0x2e5600}),_0x8963d5(_0x92f88c,{'type':_0x4be673(0x270),'size':_0x4be673(0x218),'variant':_0x4be673(0x326),'aria-label':_0x473a41['t']('bases-dashboard-ui.dashboard.undo'),'disabled':!_0x358058||_0x50c59f[_0x4be673(0x3fc)]===0x0,'onClick':()=>_0x12ca2d[_0x4be673(0x27a)](_0xee89f3['id'])['catch'](()=>void 0x0),'children':_0x8963d5(_0x8a35b6,{})}),_0x8963d5(_0x92f88c,{'type':'button','size':_0x4be673(0x218),'variant':_0x4be673(0x326),'aria-label':_0x473a41['t'](_0x4be673(0x1aa)),'disabled':!_0x358058||_0x50c59f[_0x4be673(0x391)]===0x0,'onClick':()=>_0x12ca2d[_0x4be673(0x27a)](_0x1a258d['id'])[_0x4be673(0x19f)](()=>void 0x0),'children':_0x8963d5(_0x3f411a,{})}),_0x8963d5(_0x92f88c,{'type':'button','size':_0x4be673(0x218),'variant':_0x4be673(0x326),'aria-label':_0x473a41['t'](_0x4be673(0x2f4)),'onClick':()=>_0x2c17c6()[_0x4be673(0x19f)](()=>void 0x0),'children':_0x8963d5(_0x20a719,{})}),_0x8963d5(_0x28cc4c,{'items':_0x5abb59,'children':_0x205339(_0x92f88c,{'variant':'primary','disabled':!_0x358058,'children':[_0x8963d5(_0x2c7967,{}),_0x473a41['t'](_0x4be673(0x417))]})})]}),_0x205339(_0x4be673(0x2cd),{'className':_0x4be673(0x209),'children':[_0x8963d5('div',{'className':_0x4be673(0x1d5),'children':_0x8963d5(mr,{'dashboard':_0x859d6b,'dragLabel':_0x473a41['t']('bases-dashboard-ui.dashboardInspector.dragWidget'),'editable':_0x139cb1,'resizeLabel':_0x473a41['t']('bases-dashboard-ui.dashboard.resizeWidget'),'widgetLabel':_0x57c487=>_0x473a41['t'](Si(_0x57c487[_0x4be673(0x16c)])),'selectedWidgetId':_0x139cb1?_0xa98f48:void 0x0,'onSelectWidget':_0x139cb1?_0x1aba99=>{_0x27d0e3(_0x1aba99),_0x1aba99||_0x13e836(!0x1);}:void 0x0,'onLayoutsCommit':_0x42832a=>{const _0x59ecf6=_0x4be673;let _0x39158f={..._0x859d6b[_0x59ecf6(0x1e2)]};_0x42832a['forEach']((_0x4c3f56,_0x5ece1a)=>{let _0x380999=_0x39158f[_0x5ece1a];_0x380999&&(_0x39158f[_0x5ece1a]={..._0x380999,'layout':_0x4c3f56});}),_0x12ca2d['executeCommand'](_0x596025['id'],{'unitId':_0x2e5600,'dashboard':{..._0x859d6b,'widgets':_0x39158f}})['catch'](()=>void 0x0);},'renderWidget':_0x59b6c2=>_0x8963d5(gi,{'base':_0x5d1254,'dashboard':_0x859d6b,'unitId':_0x2e5600,'widget':_0x59b6c2,'onChange':_0x582607,'onChartRuntimeChange':_0x4d3d48}),'renderWidgetActions':_0x350be7=>_0x8963d5(mi,{'onEdit':()=>{_0x27d0e3(_0x350be7['id']),_0x13e836(!0x0);},'onDelete':()=>{const _0x3d1f72=_0x4be673;_0xa98f48===_0x350be7['id']&&(_0x27d0e3(void 0x0),_0x13e836(!0x1)),_0x12ca2d['executeCommand'](_0x38d6f4['id'],{'unitId':_0x2e5600,'dashboardId':_0x392172,'widgetId':_0x350be7['id']})[_0x3d1f72(0x19f)](()=>void 0x0);}})})}),_0x139cb1&&_0x1e0bd2&&_0xcbd240&&_0x8963d5($r,{'base':_0x5d1254,'chartRuntime':_0x1dc7c1[_0x4be673(0x1f7)](_0xcbd240['id']),'unitId':_0x2e5600,'widget':_0xcbd240,'onChange':_0x582607,'onClose':()=>_0x13e836(!0x1),'onSelectBackgroundImage':()=>xi(_0x1c94d5),'onSelectImage':()=>bi(_0x4a2f75)})]})]});}function gi({base:_0x1ed385,dashboard:_0x27b63d,onChange:_0x100e78,onChartRuntimeChange:_0x416667,unitId:_0x281b4d,widget:_0x2a4d14}){const _0x80ddbb=_0x1b61b5;let _0x7382e3=_0x48385e(()=>_0x27b63d['widgetOrder'][_0x80ddbb(0x336)](_0x44b71e=>{const _0x2594da=_0x80ddbb;let _0x335d2a=_0x27b63d[_0x2594da(0x1e2)][_0x44b71e];return(_0x335d2a==null?void 0x0:_0x335d2a[_0x2594da(0x16c)])===_0x287e12['TableFilter']&&_0x335d2a[_0x2594da(0x2da)]===(_0x2594da(0x2da)in _0x2a4d14?_0x2a4d14['tableId']:'')&&_0x335d2a[_0x2594da(0x347)]?[_0x335d2a[_0x2594da(0x347)]]:[];}),[_0x27b63d,_0x2a4d14]);switch(_0x2a4d14[_0x80ddbb(0x16c)]){case _0x287e12[_0x80ddbb(0x2f2)]:return _0x8963d5(di,{'filters':_0x7382e3,'unitId':_0x281b4d,'widget':_0x2a4d14,'onRuntimeChange':_0x416667});case _0x287e12[_0x80ddbb(0x261)]:return _0x8963d5(Rr,{'fields':_i(_0x1ed385,_0x2a4d14['tableId']),'filter':_0x2a4d14[_0x80ddbb(0x347)],'onChange':_0x3b9645=>_0x100e78({..._0x2a4d14,'filter':_0x3b9645})[_0x80ddbb(0x19f)](()=>void 0x0)});case _0x287e12[_0x80ddbb(0x2be)]:return _0x8963d5(pi,{'widget':_0x2a4d14});case _0x287e12[_0x80ddbb(0x23d)]:return _0x8963d5(vi,{'widget':_0x2a4d14});case _0x287e12[_0x80ddbb(0x3be)]:return _0x8963d5(sr,{'dashboardId':_0x27b63d['id'],'unitId':_0x281b4d,'widget':_0x2a4d14});}}function _i(_0x5e7d88,_0x14fa65){const _0x2da261=_0x1b61b5;let _0x28e050=_0x5e7d88[_0x2da261(0x1e4)]()[_0x2da261(0x204)][_0x14fa65],_0x3b9044=_0x28e050==null?void 0x0:_0x28e050[_0x2da261(0x3b6)][_0x2da261(0x26f)](_0x25e3e3=>_0x28e050[_0x2da261(0x2a0)][_0x25e3e3]),_0x455e5d=_0x3b9044?_0x28e050==null?void 0x0:_0x28e050[_0x2da261(0x2a0)][_0x3b9044]:void 0x0;return _0x28e050&&_0x455e5d?_0x5adea1(_0x28e050,_0x455e5d):[];}function vi({widget:_0x161179}){const _0x13f5d6=_0x1b61b5;let _0x514465=_0x111d86(_0x3c632e),[_0x130e34,_0x3e6c20]=_0x316ac5(_0x161179[_0x13f5d6(0x2e5)]===_0x203aef[_0x13f5d6(0x37c)]?'':_0x161179['source']);return _0x181d66(()=>{const _0x596855=_0x13f5d6;let _0x38c02a=!0x0;return _0x514465[_0x596855(0x2ef)](_0x161179[_0x596855(0x2d3)],_0x161179[_0x596855(0x2e5)])[_0x596855(0x274)](_0x494e95=>{_0x38c02a&&_0x3e6c20(_0x494e95);})[_0x596855(0x19f)](()=>void 0x0),()=>{_0x38c02a=!0x1;};},[_0x514465,_0x161179['source'],_0x161179[_0x13f5d6(0x2e5)]]),_0x130e34?_0x8963d5(_0x13f5d6(0x2cd),{'role':_0x161179[_0x13f5d6(0x3a0)]?'img':void 0x0,'aria-label':_0x161179[_0x13f5d6(0x3a0)]||void 0x0,'data-dashboard-image':_0x161179['id'],'className':_0x13f5d6(0x3e2),'style':Qn(_0x130e34,_0x161179[_0x13f5d6(0x424)])}):null;}function yi(){const _0xc98292=_0x1b61b5;let _0x2055ed=_0x1a4894(new Set());return{'id':_0xc98292(0x3bc)+_0x164771(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x2055ed}]},'documentStyle':{}};}function bi(_0x40f6ec){return new Promise(_0x27fd6a=>{const _0x489494=_0xf973;let _0x1803a2=document[_0x489494(0x180)](_0x489494(0x1e8));_0x1803a2[_0x489494(0x16c)]='file',_0x1803a2[_0x489494(0x1cc)]='image/*',_0x1803a2['addEventListener'](_0x489494(0x176),()=>{const _0x1f1265=_0x489494;var _0x3c4f35;let _0x194389=(_0x3c4f35=_0x1803a2[_0x1f1265(0x3d1)])==null?void 0x0:_0x3c4f35[0x0];if(!_0x194389){_0x27fd6a(null);return;}_0x40f6ec[_0x1f1265(0x343)](_0x194389)[_0x1f1265(0x274)](_0x1ff533=>{const _0x25cbbd=_0x1f1265;if(!_0x1ff533[_0x25cbbd(0x2d3)]||_0x1ff533[_0x25cbbd(0x2e5)]===void 0x0){_0x27fd6a(null);return;}_0x27fd6a({'name':_0x1ff533[_0x25cbbd(0x1e6)],'source':_0x1ff533[_0x25cbbd(0x2d3)],'sourceType':_0x1ff533[_0x25cbbd(0x2e5)]});})[_0x1f1265(0x19f)](()=>_0x27fd6a(null));},{'once':!0x0}),_0x1803a2['click']();});}function xi(_0x57c38a){return new Promise(_0x3f232b=>{const _0x124bf5=_0xf973;let _0x5a4df0=document[_0x124bf5(0x180)]('input');_0x5a4df0[_0x124bf5(0x16c)]='file',_0x5a4df0[_0x124bf5(0x1cc)]='image/*',_0x5a4df0[_0x124bf5(0x2dc)](_0x124bf5(0x176),()=>{const _0x4ebb06=_0x124bf5;var _0x5c82df;let _0x2ee439=(_0x5c82df=_0x5a4df0[_0x4ebb06(0x3d1)])==null?void 0x0:_0x5c82df[0x0];if(!_0x2ee439){_0x3f232b(null);return;}_0x57c38a[_0x4ebb06(0x191)](_0x2ee439)[_0x4ebb06(0x274)](_0x9dd7e6=>{const _0x5ee561=_0x4ebb06;if(!(_0x9dd7e6!=null&&_0x9dd7e6[_0x5ee561(0x2d3)])){_0x3f232b(null);return;}if(_0x9dd7e6[_0x5ee561(0x35c)]){let _0x1f6c57=new Image();_0x1f6c57[_0x5ee561(0x3a2)]=_0x9dd7e6[_0x5ee561(0x35c)],_0x57c38a[_0x5ee561(0x23c)](_0x9dd7e6[_0x5ee561(0x2d3)],_0x9dd7e6['imageSourceType'],_0x1f6c57);}_0x3f232b({'source':_0x9dd7e6[_0x5ee561(0x2d3)],'sourceType':_0x9dd7e6[_0x5ee561(0x242)]});})[_0x4ebb06(0x19f)](()=>_0x3f232b(null));},{'once':!0x0}),_0x5a4df0[_0x124bf5(0x442)]();});}function Si(_0x14a1bb){const _0x20de0f=_0x1b61b5;switch(_0x14a1bb){case _0x287e12['PivotChart']:return'bases-dashboard-ui.dashboard.pivotChart';case _0x287e12[_0x20de0f(0x261)]:return _0x20de0f(0x257);case _0x287e12[_0x20de0f(0x2be)]:return _0x20de0f(0x3c7);case _0x287e12[_0x20de0f(0x23d)]:return _0x20de0f(0x2e8);case _0x287e12[_0x20de0f(0x3be)]:return _0x20de0f(0x43f);}}function Ci(_0x34582b){const _0x5661bb=_0x1b61b5;return(_0x34582b==null?void 0x0:_0x34582b[_0x5661bb(0x16c)])===_0xc2cfc[_0x5661bb(0x27c)]&&typeof _0x34582b[_0x5661bb(0x279)]==_0x5661bb(0x280)&&_0x34582b['config']!==null&&_0x5661bb(0x16d)in _0x34582b[_0x5661bb(0x279)]&&'chart'in _0x34582b[_0x5661bb(0x279)];}const wi=[{'area':_0x8aa50f['Filter'],'key':'filterFields','label':_0x1b61b5(0x3bf)},{'area':_0x8aa50f['Column'],'key':_0x1b61b5(0x189),'label':'bases-dashboard-ui.pivot.columns'},{'area':_0x8aa50f[_0x1b61b5(0x31a)],'key':_0x1b61b5(0x447),'label':_0x1b61b5(0x3e4)},{'area':_0x8aa50f['Value'],'key':'valueFields','label':_0x1b61b5(0x340)}],Ti=[{'value':_0x3bc122[_0x1b61b5(0x453)],'localeKey':_0x1b61b5(0x1a3)},{'value':_0x3bc122[_0x1b61b5(0x38c)],'localeKey':'bases-dashboard-ui.pivot.count'},{'value':_0x3bc122[_0x1b61b5(0x29f)],'localeKey':_0x1b61b5(0x288)},{'value':_0x3bc122[_0x1b61b5(0x19e)],'localeKey':'bases-dashboard-ui.pivot.average'},{'value':_0x3bc122[_0x1b61b5(0x2fc)],'localeKey':_0x1b61b5(0x1d3)},{'value':_0x3bc122[_0x1b61b5(0x3a9)],'localeKey':_0x1b61b5(0x369)},{'value':_0x3bc122[_0x1b61b5(0x3c8)],'localeKey':'bases-dashboard-ui.pivot.product'},{'value':_0x3bc122[_0x1b61b5(0x321)],'localeKey':'bases-dashboard-ui.pivot.stdDev'},{'value':_0x3bc122[_0x1b61b5(0x44b)],'localeKey':_0x1b61b5(0x39b)},{'value':_0x3bc122[_0x1b61b5(0x411)],'localeKey':_0x1b61b5(0x334)},{'value':_0x3bc122[_0x1b61b5(0x272)],'localeKey':_0x1b61b5(0x3ae)}];function Ei(_0x580082){const _0x16dd38=_0x1b61b5;let {config:_0x2cc2ea,onChange:_0x5f3f14,table:_0x155763}=_0x580082,_0x436eff=_0x111d86(_0x1b858e),[_0x16bb28,_0x463414]=_0x316ac5(_0x16dd38(0x1ac)),[_0x12f9ed,_0x4cc90c]=_0x316ac5(''),[_0x340e1b,_0x19c952]=_0x316ac5(null),[_0x4d0e3e,_0x4b0432]=_0x316ac5(null),[_0x4509e6,_0x5b9ac1]=_0x316ac5(null),[_0xf6150e,_0x1dcf8a]=_0x316ac5(null),_0xb8168b=_0x31ff85(null),_0x637b27=_0x48385e(()=>_0x155763['fieldOrder'][_0x16dd38(0x336)](_0x513355=>{const _0x3b118e=_0x16dd38;let _0x446814=_0x155763['fields'][_0x513355];return _0x446814&&_0x446814['system']!==!0x0&&_0x446814[_0x3b118e(0x16c)]!==_0x172fb1[_0x3b118e(0x2a2)]?[_0x446814]:[];})[_0x16dd38(0x347)](_0x31a378=>_0x31a378[_0x16dd38(0x1e6)][_0x16dd38(0x2e3)]()[_0x16dd38(0x1e0)](_0x12f9ed[_0x16dd38(0x28f)]()['toLocaleLowerCase']())),[_0x12f9ed,_0x155763]),_0x2516f8=_0x184a04=>{const _0x47d82b=_0x16dd38;let _0x4a6cbd=_0x2802e0(_0x155763,_0x2cc2ea['pivot']);try{_0x184a04(_0x4a6cbd),_0x5f3f14({'pivot':_0x4a6cbd[_0x47d82b(0x233)]()});}finally{_0x4a6cbd[_0x47d82b(0x3f8)]();}},_0x4b899a=(_0x39ade5,_0x3b43cd)=>{_0x340e1b&&(_0x2516f8(_0x825b4c=>{const _0x5c29d9=_0xf973;if(_0x340e1b[_0x5c29d9(0x250)]===_0x5c29d9(0x30e)){let _0x3427ed=_0x825b4c['getFieldPositionInfoById'](_0x340e1b['id']),_0x50471e=_0x3427ed[_0x5c29d9(0x308)]===_0x39ade5&&_0x3427ed[_0x5c29d9(0x382)]<_0x3b43cd?_0x3b43cd-0x1:_0x3b43cd;_0x825b4c[_0x5c29d9(0x262)](_0x340e1b['id'],_0x39ade5,_0x50471e);return;}Pi(_0x825b4c,_0x340e1b['id'],_0x39ade5,_0x3b43cd);}),_0x19c952(null),_0x4b0432(null));};return _0x205339(_0x16dd38(0x2cd),{'className':_0x16dd38(0x200),'children':[_0x8963d5(_0x4093e4,{'ariaLabel':_0x436eff['t'](_0x16dd38(0x22f)),'className':_0x16dd38(0x40a),'items':[{'label':_0x436eff['t'](_0x16dd38(0x45c)),'panelId':'base-pivot-fields','value':_0x16dd38(0x1ac)},{'label':_0x436eff['t'](_0x16dd38(0x1d4)),'panelId':_0x16dd38(0x460),'value':_0x16dd38(0x27e)}],'value':_0x16bb28,'onChange':_0x463414}),_0x8963d5(_0x16dd38(0x2cd),{'ref':_0xb8168b,'className':_0x2afc00(_0x16dd38(0x312),_0x27fdfd),'onDragOver':_0xa63212=>{const _0x2a3eee=_0x16dd38;let _0x2e1ee8=_0xb8168b[_0x2a3eee(0x240)];if(!_0x2e1ee8)return;let _0x3ce1a3=_0x2e1ee8[_0x2a3eee(0x205)]();_0xa63212[_0x2a3eee(0x400)]<_0x3ce1a3[_0x2a3eee(0x366)]+0x30?_0x2e1ee8[_0x2a3eee(0x1a0)]-=0x10:_0xa63212[_0x2a3eee(0x400)]>_0x3ce1a3[_0x2a3eee(0x3e3)]-0x30&&(_0x2e1ee8[_0x2a3eee(0x1a0)]+=0x10);},'children':_0x16bb28===_0x16dd38(0x27e)?_0x8963d5(Ni,{'config':_0x2cc2ea,'commit':_0x2516f8}):_0x205339(_0x16dd38(0x2cd),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x205339('div',{'children':[_0x8963d5(_0x16dd38(0x2cd),{'className':_0x16dd38(0x2d2),'children':_0x436eff['t'](_0x16dd38(0x175))}),_0x8963d5(_0x3f15bc,{'allowClear':!0x0,'slot':_0x8963d5(_0x4e8718,{}),'value':_0x12f9ed,'placeholder':_0x436eff['t'](_0x16dd38(0x192)),'onChange':_0x4cc90c}),_0x8963d5(_0x16dd38(0x2cd),{'className':_0x16dd38(0x338),'children':_0x637b27[_0x16dd38(0x32e)](_0x5cbf70=>_0x8963d5(Di,{'config':_0x2cc2ea,'field':_0x5cbf70,'onAdd':_0x29d148=>_0x2516f8(_0x412232=>Pi(_0x412232,_0x5cbf70['id'],_0x29d148,_0x412232[_0x16dd38(0x256)](_0x29d148))),'onCheckedChange':_0x366104=>_0x2516f8(_0x1415fa=>{const _0x4de8c5=_0x16dd38;let _0x22d118=_0x1415fa[_0x4de8c5(0x26a)](_0x5cbf70['id']);if(!_0x366104){_0x22d118[_0x4de8c5(0x2f5)](_0x1f2d80=>_0x1415fa[_0x4de8c5(0x389)](_0x1f2d80[_0x4de8c5(0x1ba)]()));return;}if(_0x22d118[_0x4de8c5(0x39e)]===0x0){let _0x11025f=Ii(_0x5cbf70)?_0x8aa50f[_0x4de8c5(0x21d)]:_0x8aa50f[_0x4de8c5(0x31a)];_0x1415fa[_0x4de8c5(0x253)](_0x5cbf70['id'],_0x11025f);}}),'onDragStart':()=>_0x19c952({'kind':_0x16dd38(0x2d3),'id':_0x5cbf70['id']})},_0x5cbf70['id']))})]}),_0x8963d5(_0x16dd38(0x2cd),{'className':_0x16dd38(0x28b),'children':wi[_0x16dd38(0x32e)](_0x3b7791=>_0x8963d5(ki,{'area':_0x3b7791[_0x16dd38(0x308)],'dropTarget':_0x4d0e3e,'fields':_0x2cc2ea[_0x16dd38(0x16d)][_0x3b7791['key']],'label':_0x436eff['t'](_0x3b7791[_0x16dd38(0x3e0)]),'snapshot':_0x2cc2ea[_0x16dd38(0x16d)],'onDragEnd':()=>{_0x19c952(null),_0x4b0432(null);},'onDragStart':_0x247dd5=>_0x19c952({'kind':_0x16dd38(0x30e),'id':_0x247dd5,'area':_0x3b7791[_0x16dd38(0x308)]}),'onDragOver':_0x2eb09f=>_0x4b0432({'area':_0x3b7791[_0x16dd38(0x308)],'index':_0x2eb09f}),'onDrop':_0x20689f=>_0x4b899a(_0x3b7791[_0x16dd38(0x308)],_0x20689f),'onFilter':_0x5b9ac1,'onRemove':_0xa88972=>_0x2516f8(_0x5afad4=>_0x5afad4[_0x16dd38(0x389)](_0xa88972)),'onSettings':_0x1dcf8a},_0x3b7791[_0x16dd38(0x308)]))}),_0x4509e6&&_0x8963d5(ji,{'fieldId':_0x4509e6,'snapshot':_0x2cc2ea['pivot'],'table':_0x155763,'onCancel':()=>_0x5b9ac1(null),'onCommit':(_0x2523c3,_0x5690b1)=>{_0x2516f8(_0x32579e=>{const _0x41ac6f=_0xf973;let _0x4f9b1d=_0x32579e[_0x41ac6f(0x195)](_0x4509e6),_0xd37757=(_0x4f9b1d==null?void 0x0:_0x4f9b1d[_0x41ac6f(0x2c1)])??[];_0x32579e[_0x41ac6f(0x27d)](_0x4509e6,{'type':_0x576e82['ManualFilter'],'list':_0x2523c3,'isAll':_0x2523c3[_0x41ac6f(0x39e)]===_0xd37757[_0x41ac6f(0x39e)]}),_0x32579e[_0x41ac6f(0x41a)](_0x4509e6,_0x5690b1===void 0x0?void 0x0:{'type':_0x5690b1});}),_0x5b9ac1(null);}},_0x4509e6),_0xf6150e&&_0x8963d5(Mi,{'field':_0x2cc2ea[_0x16dd38(0x16d)][_0x16dd38(0x26d)][_0xf6150e],'onCancel':()=>_0x1dcf8a(null),'onCommit':(_0x25521e,_0x4fd87d,_0x478b0c)=>{_0x2516f8(_0x2c195c=>{const _0x22d20f=_0xf973;_0x2c195c[_0x22d20f(0x1ea)](_0xf6150e,_0x25521e),_0x2c195c[_0x22d20f(0x1f1)](_0xf6150e,_0x4fd87d),_0x2c195c[_0x22d20f(0x30c)](_0xf6150e,_0x478b0c||void 0x0);}),_0x1dcf8a(null);}},_0xf6150e)]})})]});}function Di(_0x3b777a){const _0xd753b9=_0x1b61b5;let {config:_0x324168,field:_0x2cca86,onAdd:_0x3acb6d,onCheckedChange:_0x14715e,onDragStart:_0x3d7794}=_0x3b777a,_0x118c30=_0x111d86(_0x1b858e),_0x3186af=[...Object['values'](_0x324168[_0xd753b9(0x16d)][_0xd753b9(0x32c)]),...Object[_0xd753b9(0x260)](_0x324168[_0xd753b9(0x16d)][_0xd753b9(0x26d)])][_0xd753b9(0x30a)](_0x6e5d00=>_0x6e5d00[_0xd753b9(0x1d6)]===_0x2cca86['id']),_0x16be03=wi['map'](_0x22eecd=>({'type':_0xd753b9(0x3d8),'children':_0x118c30['t'](Li(_0x22eecd[_0xd753b9(0x308)])),'onSelect':()=>_0x3acb6d(_0x22eecd[_0xd753b9(0x308)])}));return _0x205339('div',{'draggable':!0x0,'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':_0x3d7794,'children':[_0x8963d5(_0x1f8933,{'className':'univer-text-gray-400'}),_0x8963d5(_0xb2d4e5,{'checked':_0x3186af,'onChange':_0x5bd7e3=>_0x14715e(!!_0x5bd7e3)}),_0x8963d5(Oi,{'field':_0x2cca86}),_0x8963d5(_0xd753b9(0x33a),{'className':_0xd753b9(0x3e1),'children':_0x2cca86[_0xd753b9(0x1e6)]}),_0x8963d5(_0x28cc4c,{'align':_0xd753b9(0x3df),'items':_0x16be03,'children':_0x8963d5(_0xd753b9(0x33a),{'className':_0xd753b9(0x24e),'children':_0x8963d5(_0x1f207f,{})})})]});}function Oi({field:_0x462861}){const _0x2a5a5b=_0x1b61b5;return Ii(_0x462861)?_0x8963d5(_0x22572c,{'className':'univer-text-gray-400'}):_0x462861[_0x2a5a5b(0x16c)]===_0x172fb1[_0x2a5a5b(0x431)]||_0x462861[_0x2a5a5b(0x16c)]===_0x172fb1[_0x2a5a5b(0x421)]||_0x462861[_0x2a5a5b(0x16c)]===_0x172fb1[_0x2a5a5b(0x433)]?_0x8963d5(_0x478bd0,{'className':_0x2a5a5b(0x35a)}):_0x8963d5(_0x4f3230,{'className':_0x2a5a5b(0x35a)});}function ki(_0x4a62be){const _0x4f2951=_0x1b61b5;let {area:_0x464b12,dropTarget:_0x49bea4,fields:_0x3334cb,label:_0x51ba5f,snapshot:_0xe3b334}=_0x4a62be,_0x53ffec=_0x111d86(_0x1b858e);return _0x205339(_0x4f2951(0x339),{'className':_0x2afc00(_0x4f2951(0x2a5),_0x3d82a3),'onDragOver':_0x3d6fac=>{const _0x40e1c5=_0x4f2951;_0x3d6fac[_0x40e1c5(0x413)](),_0x4a62be[_0x40e1c5(0x418)](_0x3334cb['length']);},'onDrop':_0x5e7d86=>{const _0x29a226=_0x4f2951;_0x5e7d86['preventDefault'](),_0x4a62be[_0x29a226(0x22b)]((_0x49bea4==null?void 0x0:_0x49bea4[_0x29a226(0x308)])===_0x464b12?_0x49bea4[_0x29a226(0x382)]:_0x3334cb[_0x29a226(0x39e)]);},'children':[_0x8963d5(_0x4f2951(0x2cd),{'className':_0x4f2951(0x18a),'children':_0x51ba5f}),_0x205339(_0x4f2951(0x2cd),{'className':_0x4f2951(0x2af),'children':[_0x3334cb[_0x4f2951(0x32e)]((_0x4d0389,_0x250ecf)=>{const _0x1904bf=_0x4f2951;let _0x3460eb=_0xe3b334['dimension'][_0x4d0389]??_0xe3b334['measure'][_0x4d0389];return _0x3460eb?_0x205339('div',{'onDragOver':_0x418df2=>{const _0x825c5a=_0xf973;_0x418df2[_0x825c5a(0x413)](),_0x418df2[_0x825c5a(0x19c)]();let _0xa3c45a=_0x418df2[_0x825c5a(0x45e)]['getBoundingClientRect']();_0x4a62be['onDragOver'](_0x250ecf+ +(_0x418df2[_0x825c5a(0x400)]>_0xa3c45a[_0x825c5a(0x366)]+_0xa3c45a[_0x825c5a(0x43a)]/0x2));},'onDrop':_0x21cef1=>{const _0xc3736e=_0xf973;_0x21cef1[_0xc3736e(0x413)](),_0x21cef1[_0xc3736e(0x19c)](),_0x4a62be[_0xc3736e(0x22b)]((_0x49bea4==null?void 0x0:_0x49bea4[_0xc3736e(0x308)])===_0x464b12?_0x49bea4['index']:_0x250ecf);},'children':[(_0x49bea4==null?void 0x0:_0x49bea4[_0x1904bf(0x308)])===_0x464b12&&_0x49bea4[_0x1904bf(0x382)]===_0x250ecf&&_0x8963d5(_0x1904bf(0x2cd),{'className':_0x1904bf(0x402)}),_0x8963d5(Ai,{'area':_0x464b12,'field':_0x3460eb,'onDragEnd':_0x4a62be['onDragEnd'],'onDragStart':()=>_0x4a62be[_0x1904bf(0x271)](_0x4d0389),'onFilter':()=>_0x4a62be[_0x1904bf(0x25e)](_0x4d0389),'onRemove':()=>_0x4a62be[_0x1904bf(0x41c)](_0x4d0389),'onSettings':()=>_0x4a62be[_0x1904bf(0x208)](_0x4d0389)})]},_0x4d0389):null;}),(_0x49bea4==null?void 0x0:_0x49bea4[_0x4f2951(0x308)])===_0x464b12&&_0x49bea4[_0x4f2951(0x382)]===_0x3334cb[_0x4f2951(0x39e)]&&_0x8963d5(_0x4f2951(0x2cd),{'className':_0x4f2951(0x402)}),_0x3334cb[_0x4f2951(0x39e)]===0x0&&_0x8963d5('div',{'className':_0x4f2951(0x216),'children':_0x53ffec['t']('bases-dashboard-ui.pivot.dropFieldsHere')})]})]});}function Ai(_0x4a6fd9){const _0x3c7c47=_0x1b61b5;let _0x444111=_0x111d86(_0x1b858e),_0x2a0b71=_0x4a6fd9[_0x3c7c47(0x308)]===_0x8aa50f[_0x3c7c47(0x21d)],_0x349631=[{'type':'item','children':_0x444111['t'](_0x3c7c47(0x372)),'onSelect':_0x4a6fd9[_0x3c7c47(0x41c)]},{'type':_0x3c7c47(0x3d8),'children':_0x444111['t'](_0x2a0b71?_0x3c7c47(0x298):_0x3c7c47(0x1c8)),'onSelect':_0x2a0b71?_0x4a6fd9[_0x3c7c47(0x208)]:_0x4a6fd9[_0x3c7c47(0x25e)]}];return _0x205339(_0x3c7c47(0x2cd),{'draggable':!0x0,'className':_0x3c7c47(0x292),'onDragEnd':_0x4a6fd9['onDragEnd'],'onDragStart':_0x4a6fd9['onDragStart'],'children':[_0x8963d5(_0x1f8933,{'className':_0x3c7c47(0x35a)}),_0x8963d5(_0x4e74c2,{'title':_0x4a6fd9['field'][_0x3c7c47(0x309)],'children':_0x8963d5(_0x3c7c47(0x33a),{'className':_0x3c7c47(0x3e1),'children':_0x4a6fd9[_0x3c7c47(0x30e)][_0x3c7c47(0x309)]})}),_0x8963d5(_0x28cc4c,{'align':_0x3c7c47(0x3df),'items':_0x349631,'children':_0x8963d5(_0x3c7c47(0x33a),{'className':_0x3c7c47(0x24e),'children':_0x8963d5(_0x1f207f,{})})})]});}function ji(_0x5df4da){const _0x366b85=_0x1b61b5;var _0xac1a39,_0x2f7660;let _0x3d60b1=_0x111d86(_0x1b858e),{format:_0x1884e9,items:_0x186dd3,itemTypes:_0x3bca69}=_0x48385e(()=>{const _0x2d463b=_0xf973;let _0x1fc076=_0x2802e0(_0x5df4da[_0x2d463b(0x45d)],_0x5df4da[_0x2d463b(0x304)]);try{let _0x39b4fa=_0x1fc076[_0x2d463b(0x195)](_0x5df4da[_0x2d463b(0x268)]);return{'format':_0x39b4fa==null?void 0x0:_0x39b4fa[_0x2d463b(0x384)],'items':[...(_0x39b4fa==null?void 0x0:_0x39b4fa[_0x2d463b(0x2c1)])??[]],'itemTypes':[...(_0x39b4fa==null?void 0x0:_0x39b4fa[_0x2d463b(0x3f4)])??[]]};}finally{_0x1fc076[_0x2d463b(0x3f8)]();}},[_0x5df4da[_0x366b85(0x268)],_0x5df4da[_0x366b85(0x304)],_0x5df4da['table']]),_0x455a27=(_0xac1a39=_0x5df4da[_0x366b85(0x304)][_0x366b85(0x32c)][_0x5df4da['fieldId']])==null?void 0x0:_0xac1a39[_0x366b85(0x3f1)],[_0xe680a,_0x3c13ed]=_0x316ac5((_0x455a27==null?void 0x0:_0x455a27[_0x366b85(0x16c)])===_0x576e82['ManualFilter']?_0x455a27[_0x366b85(0x383)]:_0x186dd3),[_0x5d8625,_0x5092ee]=_0x316ac5((_0x2f7660=_0x5df4da[_0x366b85(0x304)][_0x366b85(0x32c)][_0x5df4da[_0x366b85(0x268)]])==null||(_0x2f7660=_0x2f7660[_0x366b85(0x459)])==null?void 0x0:_0x2f7660['type']),_0x52dda4=_0xe680a[_0x366b85(0x39e)]===_0x186dd3[_0x366b85(0x39e)];return _0x205339(_0x366b85(0x339),{'className':_0x2afc00(_0x366b85(0x3cc),_0x3d82a3),'children':[_0x8963d5('div',{'className':_0x366b85(0x354),'children':_0x3d60b1['t'](_0x366b85(0x1c8))}),_0x205339(_0x366b85(0x2cd),{'className':_0x366b85(0x1b7),'children':[_0x205339(_0x92f88c,{'className':'univer-flex-1','variant':_0x5d8625===_0x168d69[_0x366b85(0x283)]?_0x366b85(0x461):_0x366b85(0x3f6),'onClick':()=>_0x5092ee(_0x168d69[_0x366b85(0x283)]),'children':[_0x8963d5(_0x15a480,{}),_0x3d60b1['t'](_0x366b85(0x203))]}),_0x205339(_0x92f88c,{'className':_0x366b85(0x286),'variant':_0x5d8625===_0x168d69['descending']?_0x366b85(0x461):_0x366b85(0x3f6),'onClick':()=>_0x5092ee(_0x168d69[_0x366b85(0x16b)]),'children':[_0x8963d5(_0x138d3b,{}),_0x3d60b1['t'](_0x366b85(0x33e))]})]}),_0x205339('div',{'className':_0x366b85(0x3cb),'children':[_0x205339('label',{'className':_0x366b85(0x29b),'children':[_0x8963d5(_0xb2d4e5,{'checked':_0x52dda4,'indeterminate':_0xe680a[_0x366b85(0x39e)]>0x0&&!_0x52dda4,'onChange':()=>_0x3c13ed(_0x52dda4?[]:_0x186dd3)}),_0x3d60b1['t'](_0x366b85(0x3ef))]}),_0x186dd3[_0x366b85(0x32e)]((_0x4e630b,_0x17d35b)=>_0x205339(_0x366b85(0x3e0),{'className':_0x366b85(0x29b),'children':[_0x8963d5(_0xb2d4e5,{'checked':_0xe680a['includes'](_0x4e630b),'onChange':()=>_0x3c13ed(_0x46718d=>_0x46718d[_0x366b85(0x1e0)](_0x4e630b)?_0x46718d[_0x366b85(0x347)](_0x56166f=>_0x56166f!==_0x4e630b):[..._0x46718d,_0x4e630b])}),_0x8963d5(_0x366b85(0x33a),{'className':_0x366b85(0x1d7),'children':Fi(_0x4e630b,_0x3bca69[_0x17d35b],_0x1884e9,_0x3d60b1['t'](_0x366b85(0x38a)))})]},_0x4e630b))]}),_0x205339(_0x366b85(0x2cd),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[_0x8963d5(_0x92f88c,{'variant':_0x366b85(0x388),'onClick':()=>_0x5df4da[_0x366b85(0x2ed)](_0x186dd3,_0x5d8625),'children':_0x3d60b1['t'](_0x366b85(0x2f3))}),_0x205339(_0x366b85(0x2cd),{'className':_0x366b85(0x18c),'children':[_0x8963d5(_0x92f88c,{'onClick':_0x5df4da[_0x366b85(0x264)],'children':_0x3d60b1['t'](_0x366b85(0x2c3))}),_0x8963d5(_0x92f88c,{'variant':_0x366b85(0x461),'disabled':_0xe680a[_0x366b85(0x39e)]===0x0,'onClick':()=>_0x5df4da[_0x366b85(0x2ed)](_0xe680a,_0x5d8625),'children':_0x3d60b1['t'](_0x366b85(0x3f9))})]})]})]});}function Mi(_0x2d29fb){const _0x3ce1f9=_0x1b61b5;var _0x568601,_0x2dc36c,_0x90c56b;let _0x4ec48b=_0x111d86(_0x1b858e),[_0x610ff,_0x36b2ff]=_0x316ac5(((_0x568601=_0x2d29fb['field'])==null?void 0x0:_0x568601[_0x3ce1f9(0x309)])??''),[_0x5a2f6a,_0x43b43f]=_0x316ac5(((_0x2dc36c=_0x2d29fb[_0x3ce1f9(0x30e)])==null?void 0x0:_0x2dc36c[_0x3ce1f9(0x40f)])??_0x3bc122['sum']),[_0x3f377a,_0x3c92ec]=_0x316ac5(((_0x90c56b=_0x2d29fb['field'])==null?void 0x0:_0x90c56b[_0x3ce1f9(0x384)])??'');return _0x2d29fb['field']?_0x205339(_0x3ce1f9(0x339),{'className':_0x2afc00(_0x3ce1f9(0x350),_0x3d82a3),'children':[_0x8963d5('div',{'className':_0x3ce1f9(0x1bd),'children':_0x4ec48b['t'](_0x3ce1f9(0x298))}),_0x205339(_0x3ce1f9(0x3e0),{'className':_0x3ce1f9(0x2aa),'children':[_0x4ec48b['t']('bases-dashboard-ui.pivot.displayName'),_0x8963d5(_0x3f15bc,{'value':_0x610ff,'onChange':_0x36b2ff})]}),_0x205339(_0x3ce1f9(0x3e0),{'className':_0x3ce1f9(0x2aa),'children':[_0x4ec48b['t'](_0x3ce1f9(0x2ff)),_0x8963d5(_0x2baf81,{'value':String(_0x5a2f6a),'options':Ti['map'](_0x438906=>({'value':String(_0x438906['value']),'label':_0x4ec48b['t'](_0x438906[_0x3ce1f9(0x1c5)])})),'onChange':_0x4119fc=>{const _0x211351=_0x3ce1f9;let _0x127574=Ti['find'](_0x4e42e0=>String(_0x4e42e0['value'])===_0x4119fc);_0x127574&&_0x43b43f(_0x127574[_0x211351(0x2e7)]);}})]}),_0x205339(_0x3ce1f9(0x3e0),{'className':_0x3ce1f9(0x2aa),'children':[_0x4ec48b['t'](_0x3ce1f9(0x1eb)),_0x8963d5(_0x3f15bc,{'value':_0x3f377a,'onChange':_0x3c92ec})]}),_0x205339(_0x3ce1f9(0x2cd),{'className':_0x3ce1f9(0x419),'children':[_0x8963d5(_0x92f88c,{'onClick':_0x2d29fb['onCancel'],'children':_0x4ec48b['t']('bases-dashboard-ui.pivot.cancel')}),_0x8963d5(_0x92f88c,{'variant':_0x3ce1f9(0x461),'disabled':!_0x610ff[_0x3ce1f9(0x28f)](),'onClick':()=>_0x2d29fb[_0x3ce1f9(0x2ed)](_0x610ff['trim'](),_0x5a2f6a,_0x3f377a),'children':_0x4ec48b['t']('bases-dashboard-ui.pivot.confirm')})]})]}):null;}function Ni(_0xf51336){const _0xd5c410=_0x1b61b5;let {config:_0x2805ba,commit:_0x1bace1}=_0xf51336,_0x14294a=_0x111d86(_0x1b858e),_0x2a39a4=_0x2805ba[_0xd5c410(0x16d)][_0xd5c410(0x27e)],_0x1bb50e=_0xa1dd27=>_0x1bace1(_0x4e07b8=>_0x4e07b8[_0xd5c410(0x1c6)]({..._0x4e07b8[_0xd5c410(0x30d)](),..._0xa1dd27}));return _0x205339(_0xd5c410(0x2cd),{'className':_0xd5c410(0x39d),'children':[_0x205339('label',{'className':_0xd5c410(0x217),'children':[_0x14294a['t'](_0xd5c410(0x1a7)),_0x8963d5(_0x2baf81,{'className':_0xd5c410(0x1e7),'value':String(_0x2805ba[_0xd5c410(0x16d)][_0xd5c410(0x1b8)]),'options':[{'value':String(_0xb94214['tabular']),'label':_0x14294a['t'](_0xd5c410(0x229))},{'value':String(_0xb94214[_0xd5c410(0x36a)]),'label':_0x14294a['t']('bases-dashboard-ui.pivot.layoutCompact')},{'value':String(_0xb94214[_0xd5c410(0x197)]),'label':_0x14294a['t'](_0xd5c410(0x17e))}],'onChange':_0x11f796=>{const _0x11abe8=_0xd5c410;let _0x211079=[_0xb94214[_0x11abe8(0x35f)],_0xb94214['compact'],_0xb94214[_0x11abe8(0x197)]][_0x11abe8(0x26f)](_0x53a8dc=>String(_0x53a8dc)===_0x11f796);_0x211079!==void 0x0&&_0x1bace1(_0x5787a4=>_0x5787a4[_0x11abe8(0x3d7)](_0x211079));}})]}),[{'key':_0xd5c410(0x2a6),'label':_0xd5c410(0x21e),'defaultValue':!0x1},{'key':'repeatColLabels','label':_0xd5c410(0x448),'defaultValue':!0x1},{'key':_0xd5c410(0x394),'label':_0xd5c410(0x2d1),'defaultValue':!0x0},{'key':_0xd5c410(0x2d0),'label':_0xd5c410(0x43c),'defaultValue':!0x0},{'key':_0xd5c410(0x3b1),'label':_0xd5c410(0x427),'defaultValue':!0x0},{'key':_0xd5c410(0x211),'label':_0xd5c410(0x1ae),'defaultValue':!0x0}][_0xd5c410(0x32e)](_0x2bcb3f=>_0x205339(_0xd5c410(0x3e0),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x8963d5(_0xb2d4e5,{'checked':!!(_0x2a39a4[_0x2bcb3f[_0xd5c410(0x3db)]]??_0x2bcb3f[_0xd5c410(0x458)]),'disabled':_0x2bcb3f[_0xd5c410(0x3db)]===_0xd5c410(0x2a6)&&_0x2805ba[_0xd5c410(0x16d)][_0xd5c410(0x1b8)]===_0xb94214[_0xd5c410(0x36a)],'onChange':_0x1b3dd7=>_0x1bb50e({[_0x2bcb3f[_0xd5c410(0x3db)]]:!!_0x1b3dd7})}),_0x14294a['t'](_0x2bcb3f[_0xd5c410(0x3e0)])]},_0x2bcb3f['key'])),_0x2805ba['pivot'][_0xd5c410(0x1b8)]===_0xb94214['outline']&&_0x205339(_0xd5c410(0x3e0),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x14294a['t'](_0xd5c410(0x1f4)),_0x8963d5(_0x2baf81,{'className':'univer-w-36','value':String(_0x2a39a4['rowSubtotalPosition']??_0x3af012[_0xd5c410(0x366)]),'options':[{'value':String(_0x3af012[_0xd5c410(0x366)]),'label':_0x14294a['t'](_0xd5c410(0x432))},{'value':String(_0x3af012[_0xd5c410(0x3e3)]),'label':_0x14294a['t'](_0xd5c410(0x29e))}],'onChange':_0x1cb22f=>{const _0x4e720f=_0xd5c410;let _0x18800e=[_0x3af012[_0x4e720f(0x366)],_0x3af012[_0x4e720f(0x3e3)]][_0x4e720f(0x26f)](_0x3972b2=>String(_0x3972b2)===_0x1cb22f);_0x18800e!==void 0x0&&_0x1bb50e({'rowSubtotalPosition':_0x18800e});}})]}),_0x205339(_0xd5c410(0x3e0),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x14294a['t']('bases-dashboard-ui.pivot.valuePosition'),_0x8963d5(_0x2baf81,{'className':_0xd5c410(0x1e7),'value':String(_0x2805ba[_0xd5c410(0x16d)][_0xd5c410(0x23e)]===_0x2095ab[_0xd5c410(0x225)]?_0x2095ab['Column']:_0x2805ba[_0xd5c410(0x16d)][_0xd5c410(0x23e)]),'options':[{'value':String(_0x2095ab[_0xd5c410(0x1ad)]),'label':_0x14294a['t'](_0xd5c410(0x1af))},{'value':String(_0x2095ab[_0xd5c410(0x31a)]),'label':_0x14294a['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x564ab8=>{const _0x47bab9=_0xd5c410;let _0x42e514=[_0x2095ab[_0x47bab9(0x1ad)],_0x2095ab[_0x47bab9(0x31a)]]['find'](_0x466195=>String(_0x466195)===_0x564ab8);_0x42e514!==void 0x0&&_0x1bace1(_0x3115d0=>_0x3115d0[_0x47bab9(0x267)](_0x42e514,_0x3115d0[_0x47bab9(0x275)]()<0x0?0x0:_0x3115d0[_0x47bab9(0x275)]()));}})]}),_0x205339(_0xd5c410(0x3e0),{'className':_0xd5c410(0x217),'children':[_0x14294a['t'](_0xd5c410(0x18d)),_0x8963d5(_0xd7d7e7,{'className':_0xd5c410(0x3d9),'min':0x1,'max':0x14,'value':_0x2a39a4[_0xd5c410(0x349)]??0x1,'onChange':_0x2a8c88=>{const _0x35052f=_0xd5c410;let _0x2505c5=Number(_0x2a8c88);Number[_0x35052f(0x1bb)](_0x2505c5)&&_0x2505c5>=0x1&&_0x1bb50e({'pageWrap':_0x2505c5});}})]}),_0x205339(_0xd5c410(0x3e0),{'className':_0xd5c410(0x217),'children':[_0x14294a['t'](_0xd5c410(0x3ba)),_0x8963d5(_0x2baf81,{'className':_0xd5c410(0x1e7),'value':String(_0x2a39a4[_0xd5c410(0x345)]??!0x1),'options':[{'value':_0xd5c410(0x41d),'label':_0x14294a['t'](_0xd5c410(0x245))},{'value':'true','label':_0x14294a['t'](_0xd5c410(0x420))}],'onChange':_0x3e5a8a=>_0x1bb50e({'pageOverThenDown':_0x3e5a8a==='true'})})]})]});}function Pi(_0x255dae,_0x1590ec,_0x124e59,_0x22bf39){const _0xf81c51=_0x1b61b5;let _0x588feb=_0x255dae['getTableFieldsByDataFieldId'](_0x1590ec)[_0xf81c51(0x26f)](_0x4184d5=>_0x255dae[_0xf81c51(0x22d)](_0x4184d5[_0xf81c51(0x1ba)]())[_0xf81c51(0x308)]!==_0x8aa50f[_0xf81c51(0x21d)]);if(_0x124e59!==_0x8aa50f['Value']&&_0x588feb){_0x255dae[_0xf81c51(0x262)](_0x588feb[_0xf81c51(0x1ba)](),_0x124e59,_0x22bf39);return;}_0x255dae[_0xf81c51(0x253)](_0x1590ec,_0x124e59,_0x22bf39);}function Fi(_0x2ffb0b,_0x15a41c,_0x438ddb,_0x5bd819){const _0xdcf775=_0x1b61b5;return _0x15a41c===_0x20590e[_0xdcf775(0x17f)]?_0x5bd819:_0x15a41c===_0x20590e[_0xdcf775(0x2b7)]&&_0x438ddb?_0x1f9528[_0xdcf775(0x384)](_0x438ddb,Number(_0x2ffb0b)):_0x2ffb0b;}function Ii(_0x437af1){const _0x38c8ca=_0x1b61b5;return _0x437af1[_0x38c8ca(0x16c)]===_0x172fb1[_0x38c8ca(0x370)]||_0x437af1[_0x38c8ca(0x16c)]===_0x172fb1[_0x38c8ca(0x35b)]||_0x437af1[_0x38c8ca(0x16c)]===_0x172fb1[_0x38c8ca(0x27f)]||_0x437af1['type']===_0x172fb1['Rating'];}function Li(_0x48e3f1){const _0x3cf041=_0x1b61b5;switch(_0x48e3f1){case _0x8aa50f[_0x3cf041(0x31a)]:return _0x3cf041(0x1f8);case _0x8aa50f[_0x3cf041(0x1ad)]:return'bases-dashboard-ui.pivot.addToColumn';case _0x8aa50f[_0x3cf041(0x21d)]:return _0x3cf041(0x32d);default:return _0x3cf041(0x361);}}function Ri({config:_0x3d4315,onChange:_0xb0f391,runtime:_0x2b7255,table:_0x35a4b1}){const _0x4d28e5=_0x1b61b5;let _0x4faaed=_0x111d86(_0x1b858e),[_0x19da4b,_0xc2c0ba]=_0x316ac5(_0x4d28e5(0x303));return _0x205339('aside',{'className':_0x4d28e5(0x385),'children':[_0x8963d5(_0x4093e4,{'ariaLabel':_0x4faaed['t'](_0x4d28e5(0x249)),'className':_0x4d28e5(0x329),'items':[{'label':_0x4faaed['t'](_0x4d28e5(0x328)),'panelId':_0x4d28e5(0x44f),'value':_0x4d28e5(0x303)},{'label':_0x4faaed['t'](_0x4d28e5(0x22f)),'panelId':'base-pivot-table-configuration','value':_0x4d28e5(0x16d)}],'value':_0x19da4b,'variant':'segmented','onChange':_0xc2c0ba}),_0x8963d5(_0x4d28e5(0x2cd),{'className':_0x4d28e5(0x20c),'children':_0x19da4b===_0x4d28e5(0x303)?_0x2b7255&&_0x8963d5(Dr,{'config':_0x3d4315,'runtime':_0x2b7255,'tableName':_0x35a4b1[_0x4d28e5(0x1e6)],'onChange':_0xb0f391}):_0x8963d5(Ei,{'config':_0x3d4315,'table':_0x35a4b1,'onChange':_0xb0f391})})]});}function zi({pivot:_0x5138a1,view:_0x5d5a34}){const _0x3b0788=_0x1b61b5;let _0x4cf11d=_0x111d86(_0x1b858e),_0x19e44b=_0x48385e(()=>Bi(_0x5d5a34,_0x5138a1,_0x4cf11d['t'](_0x3b0788(0x36f))),[_0x4cf11d,_0x5138a1,_0x5d5a34]);return _0x205339('div',{'className':'univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','children':[_0x19e44b[_0x3b0788(0x172)][_0x3b0788(0x39e)]>0x0&&_0x8963d5('table',{'className':'univer-mb-2\x20univer-border-collapse\x20univer-text-sm','children':_0x8963d5('tbody',{'children':Vi(_0x19e44b[_0x3b0788(0x172)])})}),_0x205339('table',{'className':'univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','children':[_0x19e44b[_0x3b0788(0x22a)]>0x0&&_0x8963d5(_0x3b0788(0x441),{'className':_0x3b0788(0x42d),'children':Vi(_0x19e44b[_0x3b0788(0x2df)][_0x3b0788(0x368)](0x0,_0x19e44b[_0x3b0788(0x22a)]))}),_0x8963d5(_0x3b0788(0x24f),{'children':Vi(_0x19e44b['rows'][_0x3b0788(0x368)](_0x19e44b['headerRowCount']))})]})]});}function Bi(_0x156b89,_0x2f3349,_0x5bd42d){const _0x168487=_0x1b61b5;let _0x5f3c15=_0x156b89[_0x168487(0x17c)][_0x168487(0x3b0)],_0xb4e394=_0x156b89[_0x168487(0x393)][_0x168487(0x2f0)],_0x560ab8=_0x156b89[_0x168487(0x263)][_0x168487(0x3b0)],_0x46cafb=_0x156b89[_0x168487(0x263)][_0x168487(0x2f0)],_0x101cdd=Array['from']({'length':_0x5f3c15+_0x560ab8},(_0x36f5e9,_0x3cd2c6)=>Array[_0x168487(0x235)]({'length':_0xb4e394+_0x46cafb},(_0x2cc3b1,_0x2864e9)=>{const _0x1ded65=_0x168487;var _0x4a456a,_0x42e778;if(_0x3cd2c6<_0x5f3c15&&_0x2864e9<_0xb4e394)return Hi(_0x156b89[_0x1ded65(0x311)],_0x3cd2c6,_0x2864e9,void 0x0,_0x5bd42d,!0x0,!0x1,_0x1ded65(0x42b)+_0x3cd2c6+':'+_0x2864e9);if(_0x3cd2c6<_0x5f3c15){var _0x22460d;let _0x1c9f0c=_0x2864e9-_0xb4e394,_0x11f884=(_0x22460d=_0x156b89[_0x1ded65(0x17c)]['headerMap'][_0x3cd2c6])==null?void 0x0:_0x22460d['tableFieldId'];return Hi(_0x156b89[_0x1ded65(0x17c)],_0x3cd2c6,_0x1c9f0c,_0x11f884?_0x156b89[_0x1ded65(0x37b)][_0x11f884]:void 0x0,_0x5bd42d,!0x0,Gi(_0x156b89['colView'][_0x1ded65(0x32b)][_0x1c9f0c]),_0x1ded65(0x193)+_0x3cd2c6+':'+_0x1c9f0c);}if(_0x2864e9<_0xb4e394){var _0x41f61d;let _0x4ed405=_0x3cd2c6-_0x5f3c15,_0x330c2e=(_0x41f61d=_0x156b89[_0x1ded65(0x393)][_0x1ded65(0x35e)][_0x2864e9])==null?void 0x0:_0x41f61d[_0x1ded65(0x353)];return Hi(_0x156b89[_0x1ded65(0x393)],_0x4ed405,_0x2864e9,_0x330c2e?_0x156b89['formatMap'][_0x330c2e]:void 0x0,_0x5bd42d,!0x0,Gi(_0x156b89[_0x1ded65(0x393)][_0x1ded65(0x32b)][_0x4ed405]),_0x1ded65(0x20e)+_0x4ed405+':'+_0x2864e9);}let _0x55c829=_0x3cd2c6-_0x5f3c15,_0x124976=_0x2864e9-_0xb4e394,_0x566c87=Math['max'](((_0x4a456a=_0x156b89[_0x1ded65(0x393)][_0x1ded65(0x32b)][_0x55c829])==null?void 0x0:_0x4a456a[_0x1ded65(0x3eb)])??-0x1,((_0x42e778=_0x156b89[_0x1ded65(0x17c)][_0x1ded65(0x32b)][_0x124976])==null?void 0x0:_0x42e778[_0x1ded65(0x3eb)])??-0x1),_0x40df42=_0x2f3349['valueFields'][_0x566c87<0x0?0x0:_0x566c87];return Hi(_0x156b89[_0x1ded65(0x263)],_0x55c829,_0x124976,_0x40df42?_0x156b89[_0x1ded65(0x37b)][_0x40df42]:void 0x0,_0x5bd42d,!0x1,Gi(_0x156b89[_0x1ded65(0x393)]['info'][_0x55c829])||Gi(_0x156b89[_0x1ded65(0x17c)]['info'][_0x124976]),_0x1ded65(0x24a)+_0x55c829+':'+_0x124976);}));return{'headerColumnCount':_0xb4e394,'headerRowCount':_0x5f3c15,'pageRows':_0x156b89[_0x168487(0x2cf)]['lastRow']<0x0||_0x156b89[_0x168487(0x2cf)][_0x168487(0x3b7)]<0x0?[]:Array[_0x168487(0x235)]({'length':_0x156b89['pageView'][_0x168487(0x452)]+0x1},(_0x1621a6,_0x456379)=>Array[_0x168487(0x235)]({'length':_0x156b89['pageView'][_0x168487(0x3b7)]+0x1},(_0x5156d8,_0x31df76)=>Hi(_0x156b89[_0x168487(0x2cf)],_0x456379,_0x31df76,void 0x0,_0x5bd42d,!0x0,!0x1,'page:'+_0x456379+':'+_0x31df76))),'rows':_0x101cdd};}function Vi(_0x2559a5){const _0x127c17=_0x1b61b5;return _0x2559a5[_0x127c17(0x32e)](_0xd9cbde=>{const _0x40c6f6=_0x127c17;var _0x3409e8;return _0x8963d5('tr',{'children':_0xd9cbde['map'](_0x5bcfbc=>_0x8963d5(_0x5bcfbc['isHeader']?'th':'td',{'className':_0x40c6f6(0x3ee)+(_0x5bcfbc[_0x40c6f6(0x1be)]?_0x40c6f6(0x2a9):'')+_0x40c6f6(0x310)+(_0x5bcfbc[_0x40c6f6(0x2b1)]?'':_0x40c6f6(0x371))+'\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','children':_0x5bcfbc[_0x40c6f6(0x2e7)]},_0x5bcfbc[_0x40c6f6(0x3db)]))},(_0x3409e8=_0xd9cbde[0x0])==null?void 0x0:_0x3409e8['key']);});}function Hi(_0x4d5363,_0x1ea231,_0x476ba3,_0x595e3d,_0xd9f3dc,_0x2cde26,_0x1f976d,_0xf84d11){const _0x1cec91=_0x1b61b5;var _0xb2578c;let _0x576c8f=(_0xb2578c=_0x4d5363['data'][_0x1ea231])==null?void 0x0:_0xb2578c[_0x476ba3],_0x4987b1=_0x576c8f==null?void 0x0:_0x576c8f['s'],_0x125dbd=_0x1f976d||_0x4987b1===_0x1b77bd[_0x1cec91(0x1a4)]||_0x4987b1===_0x1b77bd['MultipleGrandTotal'];return{'isHeader':_0x2cde26,'isTotal':_0x125dbd||_0x4987b1===_0x1b77bd['Subtotal'],'key':_0xf84d11,'style':_0x4987b1,'value':_0x125dbd&&Wi(_0x576c8f==null?void 0x0:_0x576c8f['v'])?_0xd9f3dc:Ui(_0x576c8f,_0x595e3d)};}function Ui(_0x5ec8a8,_0x49ef8b){const _0x4f14b5=_0x1b61b5;let _0x4e93bd=_0x5ec8a8==null?void 0x0:_0x5ec8a8['v'];return _0xf7112f(_0x4e93bd)?String(_0x4e93bd['value']??_0x4e93bd[_0x4f14b5(0x3bb)]??''):_0x32656a(_0x4e93bd)?'#'+_0x4e93bd[_0x4f14b5(0x34b)]:_0x49ef8b&&typeof _0x4e93bd==_0x4f14b5(0x39c)?_0x1f9528[_0x4f14b5(0x384)](_0x49ef8b,_0x4e93bd):String(_0x4e93bd??'');}function Wi(_0x275166){return _0x275166===void 0x0||_0x275166==='';}function Gi(_0x34f874){const _0x38ee13=_0x1b61b5;return!!(_0x34f874!=null&&_0x34f874[_0x38ee13(0x437)]||_0x34f874!=null&&_0x34f874[_0x38ee13(0x355)]||_0x34f874!=null&&_0x34f874[_0x38ee13(0x1fe)]||(_0x34f874==null?void 0x0:_0x34f874['rowType'])===_0x38ee13(0x22e));}function Ki({tableId:_0x47afa8,unitId:_0x5806ff,viewId:_0x13eb16}){const _0x1122fa=_0x1b61b5;let _0x3ab256=_0x111d86(_0x4d1d2c),_0x29e4ea=_0x111d86(_0x593d99),_0x424a80=_0x111d86(_0x171e0),_0x43fe25=_0x111d86(_0x1b858e),_0x5b0113=_0x111d86(_0x344528),[_0xaf89c1,_0x47dddc]=_0x316ac5(null),[_0x3655c6,_0x3aec77]=_0x316ac5(null),_0x4f1c97=_0x31ff85(_0x1122fa(0x30b)+_0x164771(0x8)),[_0xdedaa7,_0x2fd59c]=_0x316ac5(!0x1),_0x4a5336=_0x29e4ea[_0x1122fa(0x439)](_0x5806ff,_0x15499a[_0x1122fa(0x438)]),_0x5046a4=_0x4a5336==null?void 0x0:_0x4a5336['getSnapshot']()[_0x1122fa(0x204)][_0x47afa8],_0x3b2f1e=_0x5046a4==null?void 0x0:_0x5046a4[_0x1122fa(0x2a0)][_0x13eb16],_0x4afec9=qi(_0x3b2f1e),_0x1bdbdd=Zn(_0x5806ff,_0x47afa8,_0x13eb16);if(_0x181d66(()=>{const _0x454680=_0x1122fa;if(!_0x4afec9)return;let _0xfa74cb=_0x4f1c97[_0x454680(0x240)];return _0x5b0113[_0x454680(0x457)](_0xfa74cb,{'unitId':_0x5806ff,'tableId':_0x47afa8,'viewId':_0x13eb16,'filters':[]}),()=>{const _0x227604=_0x454680;_0x5b0113[_0x227604(0x1ca)](_0x5806ff,_0xfa74cb);};},[_0x4afec9,_0x5b0113,_0x47afa8,_0x5806ff,_0x13eb16]),_0x181d66(()=>{const _0x5c5f42=_0x1122fa;if(!qi(_0x3b2f1e))return;let _0x4b42ce=!0x0,_0x9bb5fe={'unitId':_0x5806ff,'tableId':_0x47afa8,'viewId':_0x13eb16,'filters':[_0x3b2f1e[_0x5c5f42(0x347)]??null]};return _0x5b0113[_0x5c5f42(0x463)](_0x5806ff,_0x4f1c97[_0x5c5f42(0x240)],_0x9bb5fe)[_0x5c5f42(0x274)](_0x5d1e9f=>{const _0x337800=_0x5c5f42;!_0x4b42ce||!_0x5d1e9f||(_0x47dddc(_0x5d1e9f),_0x3aec77(_0x5b0113[_0x337800(0x28c)](_0x5806ff,_0x4f1c97[_0x337800(0x240)])??null),_0x2fd59c(!0x1));})[_0x5c5f42(0x19f)](_0x285f47=>{const _0x46196f=_0x5c5f42;_0x424a80['error'](_0x46196f(0x33d),_0x285f47),_0x4b42ce&&(_0x47dddc(null),_0x2fd59c(!0x0));}),()=>{_0x4b42ce=!0x1;};},[_0x424a80,_0x5b0113,_0x47afa8,_0x5806ff,_0x3b2f1e,_0x13eb16]),!_0x5046a4||!qi(_0x3b2f1e))return null;let _0x58a8f2=_0x5b0113[_0x1122fa(0x28c)](_0x5806ff,_0x4f1c97['current'])===_0x3655c6?_0x3655c6:null;return _0x205339(_0x1122fa(0x2cd),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','children':[_0x8963d5('div',{'className':_0x1122fa(0x376),'children':_0xaf89c1?_0x205339('div',{'className':_0x1122fa(0x2eb),'style':{'gridTemplateRows':_0x3b2f1e['config'][_0x1122fa(0x424)]===_0x1122fa(0x22c)?_0x1122fa(0x1ff):_0x1122fa(0x18b)},'children':[_0x3b2f1e['config'][_0x1122fa(0x424)]!==_0x1122fa(0x45d)&&_0x58a8f2&&_0x8963d5(_0x1122fa(0x2cd),{'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':_0x8963d5(ui,{'isRowDirection':_0x31a3e3(_0x3b2f1e[_0x1122fa(0x279)][_0x1122fa(0x303)][_0x1122fa(0x2cc)]),'runtime':_0x58a8f2})}),_0x3b2f1e['config'][_0x1122fa(0x424)]!==_0x1122fa(0x303)&&_0x8963d5(_0x1122fa(0x2cd),{'className':'univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':_0x8963d5(zi,{'pivot':_0x3b2f1e['config'][_0x1122fa(0x16d)],'view':_0xaf89c1['view']})})]}):_0x8963d5(_0x1122fa(0x2cd),{'className':_0x1122fa(0x3b2),'children':_0xdedaa7?_0x43fe25['t'](_0x1122fa(0x3cd)):_0x43fe25['t'](_0x1122fa(0x244))})}),_0x1bdbdd&&_0x8963d5(Ri,{'config':_0x3b2f1e['config'],'runtime':_0x58a8f2,'table':_0x5046a4,'onChange':_0x2732e7=>{const _0x4b230a=_0x1122fa;_0x3ab256[_0x4b230a(0x27a)](_0x5224e1['id'],{'unitId':_0x5806ff,'tableId':_0x47afa8,'viewId':_0x13eb16,'patch':_0x2732e7})[_0x4b230a(0x19f)](_0x251127=>_0x424a80[_0x4b230a(0x2db)]('[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.',_0x251127));}})]});}function qi(_0x36c651){const _0x35a148=_0x1b61b5;return(_0x36c651==null?void 0x0:_0x36c651['type'])===_0xc2cfc[_0x35a148(0x27c)]&&typeof _0x36c651[_0x35a148(0x279)]==_0x35a148(0x280)&&_0x36c651[_0x35a148(0x279)]!==null&&_0x35a148(0x16d)in _0x36c651[_0x35a148(0x279)]&&_0x35a148(0x303)in _0x36c651[_0x35a148(0x279)]&&_0x35a148(0x424)in _0x36c651[_0x35a148(0x279)];}let Ji=class extends _0x95b7c6{constructor(_0x102255,_0x1849a0,_0x9dbe77,_0x410f8d,_0x1c7a6b,_0x9959c1){const _0x15d9de=_0x1b61b5;super(),this[_0x15d9de(0x300)](_0x1849a0['register']({'type':_0xc2cfc[_0x15d9de(0x27c)],'renderMode':_0x15d9de(0x26b),'icon':_0x4a6092,'component':Ki,'menu':{get 'label'(){const _0x4f2740=_0x15d9de;return _0x9959c1['t'](_0x4f2740(0x249));},get 'description'(){return _0x9959c1['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){return _0x9959c1['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x15d9de(0x300)](_0x102255['register'](Yi(_0x9dbe77,_0x410f8d,_0x1c7a6b,_0x9959c1)));}};function _0x2ce5(){const _0x256e71=['univer-mb-3\x20univer-text-sm\x20univer-font-medium','isTopTotal','baseChartDataAnimationDuration','uploadImage','getImage','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','univer-text-gray-400','Currency','base64Cache','startY','headerMap','tabular','\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','bases-dashboard-ui.pivot.addToFilter','unitId','AFTER','removeImage','presentationChanged$','top','IS_NOT_EMPTY','slice','bases-dashboard-ui.pivot.min','compact','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','config$','bases-dashboard-ui.dashboard.widgetActions','bases-dashboard-ui.dashboardInspector.clear','bases-dashboard-ui.pivot.grandTotal','Number','univer-text-right','bases-dashboard-ui.pivot.removeField','size','grouped','lineAndArea','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','univer-mt-2\x20univer-w-full','dashboardOrder','title','common.verticalAxis','formatMap','UUID','formula','parentElement','[data-dashboard-widget]','bases-dashboard-ui.chart.section.candlestick','ParetoLineSeries','index','list','format','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','iterator','right','link','removeField','bases-dashboard-ui.pivot.blank','bases-dashboard-ui.dashboard.delete','count','shapeType','decimalPlaces','clientHeight','createChartInstance','redos','requestFullscreen','rowView','showRowSubtotal','GridlinesAndTicks','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','NumberFormat','SolidFill','pipe','getDashboard','bases-dashboard-ui.pivot.stdDevPopulation','number','univer-flex\x20univer-flex-col\x20univer-gap-4','length','5aiIxBt','alt','RightVerticalAxis','src','shapeId','common.heatmap','ParetoBarSeries','IndicatorLine','createRenderInput','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','min','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','indicatorLine','match','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','bases-dashboard-ui.pivot.variancePopulation','CONTAINS','rowCount','showColSubtotal','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','BaseDashboard','Treemap','onStarting','viewOrder','lastCol','univer-bg-gray-0\x20dark:!univer-bg-gray-900','relation','bases-dashboard-ui.pivot.pageDirection','prefix','dashboard-text-','5383310zwdnsW','FormulaShape','bases-dashboard-ui.pivot.filters','dashboard-widget-','aside','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','direction$','currency','hidden','isConnected','bases-dashboard-ui.dashboard.text','product','Bubble','replaceImage','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.calculationFailed','scrollHeight','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','sourceUnavailable','files','LESS_THAN_OR_EQUAL','backgroundColor','separator','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','getOwnPropertyDescriptor','setLayout','item','univer-w-24','radar','key','numberFormat','conditions','section.wordCloud','end','label','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','univer-h-full\x20univer-w-full\x20univer-bg-transparent','bottom','bases-dashboard-ui.pivot.rows','Positive','axis','decorate','bases-dashboard-ui.operators.lessThanOrEqual','fontSizeMode','symbol','valueIndex','documentStyle','fill','\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.pivot.selectAll','380293mSdSgB','filterInfo','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','SingleSelect','itemTypes','bases-dashboard-ui.dashboardInspector.checked','default','subItem','dispose','bases-dashboard-ui.pivot.confirm','univer-cursor-grabbing','_config','undos','bases-dashboard-ui.operators.isNotEmpty','close','focusUnit','clientY','markNotReady','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','fullscreenElement','Funnel','color','floor','bases-dashboard-ui.chart.common.switchRowColumn','fontSize','Chord','univer-shrink-0\x20univer-px-3','fullscreenchange','operand','gray','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','subtotal','currencyCode','var','rgb','preventDefault','matchMedia','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','initial','bases-dashboard-ui.dashboard.addWidget','onDragOver','univer-flex\x20univer-justify-end\x20univer-gap-2','setSortInfo','select','onRemove','false','univer-w-full','change$','bases-dashboard-ui.pivot.acrossThenDown','CreatedAt','BEFORE','stringify','displayMode','Person','bases-dashboard-ui.operators.greaterThan','bases-dashboard-ui.pivot.showColumnSubtotal','bases-dashboard-ui.operators.isNot','string','dataSource','corner:','section.gridlinesAndTicks','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','cumulativeLineStyle','dataModel','univer-grid\x20univer-gap-4\x20univer-p-4','Date','bases-dashboard-ui.pivot.top','UpdatedAt','NOT_CONTAINS','undoRedoStatus$','_chartThemeService','isBottomTotal','UNIVER_BASE','getUnit','height','document','bases-dashboard-ui.pivot.showRowGrandTotal','Trendline','bases-dashboard-ui.chart.section.chord','bases-dashboard-ui.dashboard.formulaShape','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','thead','click','waterfallStyle','defaultPrevented','pointerY','clientWidth','rowFields','bases-dashboard-ui.pivot.repeatColumnLabels','borderRadius','article','stdDevp','bases-dashboard-ui.operators.greaterThanOrEqual','row','cover','base-pivot-chart-configuration','base-pivot-chart-style','column','lastRow','sum','trendline','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','mode','acquireChartRuntime','defaultValue','sortInfo','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','toDate','bases-dashboard-ui.pivot.fields','table','currentTarget','documentElement','base-pivot-options','primary','bases-dashboard-ui.dashboardInspector.','refreshChartRuntime','subscribe','4089NiTegT','section.waterfall','widgetOrder','descending','type','pivot','4584eLAmCv','stroke','section.lineAndArea','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','pageRows','model','visibilityState','bases-dashboard-ui.pivot.sourceFields','change','bases-dashboard-ui.operators.contains','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','shapeData','isArray','univer-grid\x20univer-gap-4','colView','flex-end','bases-dashboard-ui.pivot.layoutOutline','blank','createElement','bases-dashboard-ui.chart.common.setup','operator','call','data$','MultiSelect','darkMode$','px\x20solid\x20','function','columnFields','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','minmax(0,\x201fr)','univer-flex\x20univer-gap-2','bases-dashboard-ui.pivot.pageWrap','children','bases-dashboard-ui.chart.section.treemap','currentTheme$','saveImage','bases-dashboard-ui.pivot.searchFields','column:','destructive','getDataFieldByTableId','set','outline','ChartStyle','radius','textStyle','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','stopPropagation','bases-dashboard-ui.pivot.tableOnly','average','catch','scrollTop','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','pointerX','bases-dashboard-ui.pivot.sum','GrandTotal','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','bases-dashboard-ui.pivot.chartOnly','bases-dashboard-ui.pivot.layout','move','univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','bases-dashboard-ui.dashboard.redo','BASE_DASHBOARD_UI_PLUGIN','fields','Column','bases-dashboard-ui.pivot.showColumnGrandTotal','bases-dashboard-ui.pivot.columns','presentation','dashboard-chart-setup','_injector','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','common.chartAndAxisTitles','getResult','style','univer-flex','layout','Relation','getId','isFinite','general','univer-text-sm\x20univer-font-medium','isTotal','every','loading','style$','wordCloud','segmented','univer-border-gray-200\x20dark:!univer-border-gray-700','localeKey','setOptions','\x20/\x20span\x20','bases-dashboard-ui.pivot.filterField','common.rightVerticalAxis','releaseChartRuntime','univer-mx-auto\x20univer-size-6','accept','data','print','getImageSourceCache','925281RlzVZX','GeneralSeries','IS_NOT','bases-dashboard-ui.pivot.max','bases-dashboard-ui.pivot.options','univer-min-w-0\x20univer-flex-1','dataFieldId','univer-truncate','univer-size-4','scrollWidth','has','Boxplot','#,##0','bases-dashboard-ui.dashboardInspector.enterValue','setStyle','fit','includes','univer-mt-2','widgets','dataAggregation','getSnapshot','innerHeight','name','univer-w-36','input','RoundRect','renameField','bases-dashboard-ui.pivot.numberFormat','add','renderTransition','resizeDirection','Waterfall','Axes','setSubtotalType','WaterfallSeries','GREATER_THAN','bases-dashboard-ui.pivot.rowSubtotalPosition','unsubscribe','columnSpan','get','bases-dashboard-ui.pivot.addToRow','pareto','currentColor','syncLayout','renderRevision','bases-dashboard-ui.operators.notContains','isSubtotal','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','univer-flex\x20univer-min-h-full\x20univer-flex-col','6345DoMMQd','replace','bases-dashboard-ui.pivot.ascending','tables','getBoundingClientRect','target','VerticalAxis','onSettings','univer-flex\x20univer-min-h-0\x20univer-flex-1','blur','base-dashboard-pivot-chart-','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','pluginName','row:','bases-dashboard-ui.config','bases-dashboard-ui.dashboardInspector.sourceUnavailable','showColGrandTotal','left','498656NaNluQ','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','removeEventListener','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','small','bases-dashboard-ui.dashboard.deleteWidget','bases-dashboard-ui.pivot.dataSource','bases-dashboard-ui.dashboardInspector.newCondition','packageName','Value','bases-dashboard-ui.pivot.repeatRowLabels','section.paretoBar','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','resolve','Histogram','bases-dashboard-ui.operators.is','Heatmap','None','executeChartUpdateConfig','bases-dashboard-ui.operators.after','overflow','bases-dashboard-ui.pivot.layoutTabular','headerRowCount','onDrop','chart-and-table','getFieldPositionInfoById','grandTotal','bases-dashboard-ui.pivot.pivotConfiguration','rightY','Group','base-pivot-chart','toJSON','appearance','from','_renderModelManager','permissionPointUpdate$','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','pivotViewId','section.pie','addImageSourceCache','Image','valuePosition','observe','current','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','imageSourceType','formulaBinding','bases-dashboard-ui.pivot.calculating','bases-dashboard-ui.pivot.downThenAcross','LineAndArea','heatmap','center','bases-dashboard-ui.pivot.name','data:','bases-dashboard-ui.chart.section.sunburst','_localeService','AND','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','tbody','kind','bases-dashboard-ui.dashboard.search','bases-dashboard-ui.chart.common.editChart','addFieldWithSourceId','baseOn','waterfall.positive','getFieldCountByArea','bases-dashboard-ui.dashboard.tableFilter','matches','context','reset','percent','common.horizontalAxis','Candlestick','onFilter','group','values','TableFilter','updateFieldPosition','dataView','onCancel','bases-dashboard-ui.chart.common.customize','univer-size-5\x20univer-text-primary-600','updateValuePosition','fieldId','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','getTableFieldsByDataFieldId','dom','Checkbox','measure','contain','find','button','onDragStart','varp','allowMultiple','then','getValueIndex','Legend','Radar','round','config','executeCommand','univer-size-5\x20univer-rotate-90','Pivot','setLabelFilterInfo','options','Progress','object','bases-dashboard-ui.chart.section.histogram','section.indicatorLine','ascending','barStyle','alignment','univer-flex-1','description','bases-dashboard-ui.pivot.countNumbers','transparent','result','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','getChartRuntime','univer-flex\x20univer-items-center\x20univer-gap-2','Data','trim','bases-dashboard-ui.chart.section.gauge','bases-dashboard-ui.dashboard.section','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','createDomChartInstance','innerWidth','auto','1.0.0-rc.0','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','bases-dashboard-ui.pivot.fieldSettings','dashboard-chart-style','bases-dashboard-ui.pivot.chartAndTable','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','(prefers-reduced-motion:\x20reduce)','header','bases-dashboard-ui.pivot.bottom','countNums','views','paragraphId','RecordId','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','_element','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','repeatRowLabels','PieStyle','bases-dashboard-ui.dashboard.defaultName','\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-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','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','img','no-repeat','Pareto','univer-flex\x20univer-flex-col','WordCloud','isHeader','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','dataset','univer-relative\x20univer-z-10','chartId','section.relation','date','bases-dashboard-ui.dashboard.add','fillType','closest','\x20/\x20','width','labelId','Text','defineProperty','Sunburst','items','paragraphs','bases-dashboard-ui.pivot.cancel','ownerDocument','waterfall.negative','lineStrokeType','univer-border-0\x20univer-bg-transparent','custom','getCurrentTheme','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','pie','orient','div','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','pageView','showRowGrandTotal','bases-dashboard-ui.pivot.showRowSubtotal','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','source','rowSpan','univer-pointer-events-auto\x20univer-opacity-100','version','IS_EMPTY','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','delete','tableId','error','addEventListener','_createContext','body','rows','1036cHCoYi','@univerjs-pro/bases-dashboard-ui','funnel','toLocaleLowerCase','univer-m-3','sourceType','getRenderColor','value','bases-dashboard-ui.dashboard.image','tableOrder','startX','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','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','onCommit','bases-dashboard-ui.pivot.display','getAttachmentUrl','colCount','subUnitId','PivotChart','bases-dashboard-ui.pivot.clearFilter','bases-dashboard-ui.dashboard.fullScreen','forEach','onReady','0\x200','univer-bg-transparent\x20dark:!univer-bg-transparent','dashboards','common.trendline','univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','max','\x20has\x20no\x20render\x20config.','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','bases-dashboard-ui.pivot.summarizeBy','disposeWithMe','dashboard-','textColor','chart','snapshot','univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize','bases-dashboard-ui.dashboard.new','backgroundImage','area','displayName','some','base-pivot-chart-','setFieldFormat','getOptions','field','darkMode','\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','cornerView','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','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','series','render','replaceChildren','rightYAxis','Style','Row','Base\x20dashboard\x20chart\x20','join','section.paretoLine','exitFullscreen','LESS_THAN','YYYY-MM-DD','stdDev','bases-dashboard-ui.chart.chartTypes.','univer-text-sm','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','General','text','initialLayouts','bases-dashboard-ui.pivot.chartConfiguration','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','bases-dashboard-ui.dashboard.configure','info','dimension','bases-dashboard-ui.pivot.addToValue','map','border','chartType','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','Rating','repeat','bases-dashboard-ui.pivot.variance','bases-dashboard-ui.operators.before','flatMap','base-pivot-chart-setup','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','section','span','Pie','getRect','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.pivot.descending','ceil','bases-dashboard-ui.pivot.values','true','textSize','saveAttachment','getRuntimeContext','pageOverThenDown','Sankey','filter','waterfall.subtotal','pageWrap','pointermove','errorType','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','137226FrMaMF','_configService','Gauge','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','getResource','pointerup','tableFieldId'];_0x2ce5=function(){return _0x256e71;};return _0x2ce5();}Ji=Cr([X(0x0,_0x21885a),X(0x1,_0x3cde20),X(0x2,_0x15f39b(_0x3d9e8d)),X(0x3,_0x4d1d2c),X(0x4,_0x22f5bc),X(0x5,_0x15f39b(_0x1b858e))],Ji);function Yi(_0x753103,_0x107ca8,_0x47a08a,_0xf98275){const _0xb124f3=_0x1b61b5;return{'change$':_0x460320(_0x753103[_0xb124f3(0x41f)],_0x47a08a[_0xb124f3(0x237)]),'component':hi,get 'labels'(){const _0x5c35d6=_0xb124f3;return{'add':_0xf98275['t'](_0x5c35d6(0x2b8)),'configure':_0x460650=>_0xf98275['t'](_0x5c35d6(0x32a),_0x460650),'delete':_0xf98275['t'](_0x5c35d6(0x38b)),'new':_0xf98275['t'](_0x5c35d6(0x306)),'rename':_0xf98275['t']('bases-dashboard-ui.dashboard.rename'),'search':_0xf98275['t'](_0x5c35d6(0x251)),'section':_0xf98275['t'](_0x5c35d6(0x291))};},'getItems':_0x30b162=>{const _0x230161=_0xb124f3;let _0x2be22e=_0x753103[_0x230161(0x351)](_0x30b162);return _0x2be22e['dashboardOrder'][_0x230161(0x336)](_0x3e0a3c=>{const _0x440b82=_0x230161;let _0x5a996e=_0x2be22e[_0x440b82(0x2f9)][_0x3e0a3c];return _0x5a996e?[{'id':_0x5a996e['id'],'name':_0x5a996e[_0x440b82(0x1e6)],'readonly':!_0x590784(_0x47a08a,_0x30b162,_0x5a996e['id'])}]:[];});},'create':async _0x3fefdf=>{const _0x2a17de=_0xb124f3;let _0x5b2ee4=_0x753103[_0x2a17de(0x351)](_0x3fefdf),_0x4ddc94=_0x2a17de(0x301)+_0x164771(0x8),_0x128e0a=Xi(_0x5b2ee4[_0x2a17de(0x378)][_0x2a17de(0x336)](_0x3e1fa7=>{const _0x3696c0=_0x2a17de;let _0x1e7dc6=_0x5b2ee4['dashboards'][_0x3e1fa7];return _0x1e7dc6?[_0x1e7dc6[_0x3696c0(0x1e6)]]:[];}),_0x513e9a=>_0xf98275['t'](_0x2a17de(0x2a8),String(_0x513e9a)));return await _0x107ca8[_0x2a17de(0x27a)](_0x5eef0b['id'],{'unitId':_0x3fefdf,'dashboard':{'id':_0x4ddc94,'name':_0x128e0a,'widgetOrder':[],'widgets':{}}})?_0x4ddc94:null;},'rename':async(_0x1d3e9c,_0x4645c2,_0xbd70c9)=>{const _0x4eaddc=_0xb124f3;let _0x2f9fb0=_0x753103[_0x4eaddc(0x39a)](_0x1d3e9c,_0x4645c2);return!!(_0x2f9fb0&&await _0x107ca8[_0x4eaddc(0x27a)](_0x596025['id'],{'unitId':_0x1d3e9c,'dashboard':{..._0x2f9fb0,'name':_0xbd70c9}}));},'remove':(_0x27ed02,_0x39ce6e)=>_0x107ca8['executeCommand'](_0x457650['id'],{'unitId':_0x27ed02,'dashboardId':_0x39ce6e})};}function Xi(_0x56f64b,_0x5640b5){const _0x48a12f=_0x1b61b5;let _0x42ddca=new Set(_0x56f64b),_0x40f18b=_0x42ddca[_0x48a12f(0x373)]+0x1,_0x3611d1=_0x5640b5(_0x40f18b);for(;_0x42ddca[_0x48a12f(0x1da)](_0x3611d1);)_0x40f18b+=0x1,_0x3611d1=_0x5640b5(_0x40f18b);return _0x3611d1;}let Zi=class extends _0x57d39b{constructor(_0x7a0cbd=Yn,_0x4cd8d2,_0x81d80e){const _0x2952ea=_0x1b61b5;super(),this[_0x2952ea(0x3fb)]=_0x7a0cbd,this[_0x2952ea(0x1b2)]=_0x4cd8d2,this[_0x2952ea(0x34e)]=_0x81d80e;let {..._0x24190a}=_0xa11b81({},Yn,this[_0x2952ea(0x3fb)]);this['_configService']['setConfig'](_0x2952ea(0x20f),_0x24190a);}[_0x1b61b5(0x3b5)](){const _0x214ce4=_0x1b61b5;this['_injector'][_0x214ce4(0x1ec)]([si]),this[_0x214ce4(0x1b2)][_0x214ce4(0x1ec)]([wr]),this[_0x214ce4(0x1b2)][_0x214ce4(0x1ec)]([Ji]);}[_0x1b61b5(0x2f6)](){const _0x29fca4=_0x1b61b5;_0x5ccc88(this[_0x29fca4(0x1b2)],[[si],[wr],[Ji]]);}};Sr(Zi,_0x1b61b5(0x16c),_0x15499a[_0x1b61b5(0x438)]),Sr(Zi,_0x1b61b5(0x20d),_0x1b61b5(0x1ab)),Sr(Zi,_0x1b61b5(0x21c),qn),Sr(Zi,_0x1b61b5(0x2d6),Jn),Zi=Cr([_0x1d927b(_0xddc049,_0x48a2c8,_0x582d5f,_0x58d829,_0x1f2990,_0x33461b),X(0x1,_0x15f39b(_0x379530)),X(0x2,_0x3edd68)],Zi);export{Zi as UniverBaseDashboardUIPlugin};
1
+ const _0x3447f8=_0x1596;(function(_0x4569f3,_0xdc0e1a){const _0x47caef=_0x1596,_0x633aa1=_0x4569f3();while(!![]){try{const _0x309319=-parseInt(_0x47caef(0x222))/0x1+-parseInt(_0x47caef(0x1af))/0x2+parseInt(_0x47caef(0x3d8))/0x3*(parseInt(_0x47caef(0x3ac))/0x4)+parseInt(_0x47caef(0x16c))/0x5+-parseInt(_0x47caef(0x39c))/0x6*(parseInt(_0x47caef(0x13b))/0x7)+parseInt(_0x47caef(0x182))/0x8*(-parseInt(_0x47caef(0xf6))/0x9)+parseInt(_0x47caef(0x38b))/0xa*(parseInt(_0x47caef(0x185))/0xb);if(_0x309319===_0xdc0e1a)break;else _0x633aa1['push'](_0x633aa1['shift']());}catch(_0x5e4984){_0x633aa1['push'](_0x633aa1['shift']());}}}(_0x3448,0xe8d33));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x35833c,BASES_DASHBOARD_GRID_COLUMNS as _0x25ec11,BaseChartRuntimeService as _0x2cc67a,BaseDashboardResourceService as _0x4e6cdd,BaseDashboardWidgetType as _0x28a714,CreateBaseDashboardCommand as _0x15bed1,DeleteBaseDashboardCommand as _0x56eacd,RemoveBaseDashboardWidgetCommand as _0x25ddde,UniverBaseDashboardPlugin as _0x12b6ef,UpdateBaseDashboardCommand as _0x51a517,UpdateBasePivotViewCommand as _0x22ea58,UpsertBaseDashboardWidgetCommand as _0x49cadf,canEditBaseDashboard as _0x314d1d,canEditBasePivotView as _0x46c031,createBasePivotTable as _0x57279f,resolveBasePivotChartRowDirection as _0x18785d}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0xe74b73,BaseMobileDrawer as _0x14b201,BaseMobileFilterOperand as _0x2001af,BaseMobileFilterPanel as _0x22f272,BaseUnitCollaborationStatus as _0x484f3c,FormulaEditorPanel as _0x1d7a56,IBaseDashboardUIExtensionRegistryService as _0x3460c3,IBaseViewUIRegistryService as _0x198cb9,MobileFormulaEditorPanel as _0x4689e6,UniverBasesMobileUIPlugin as _0x2e4e9f,UniverBasesUIPlugin as _0x3c0cd9,formulaToEditorFormula as _0x3ae876,normalizeEditorFormulaForConfig as _0x3949ea,toFormulaMenuTables as _0x11a6ff,toMenuFields as _0x295488}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x1016f1,ChartAxisSection as _0x3ee0e8,ChartColorField as _0x2d27c8,ChartCommonDataMappingSection as _0x3a6df3,ChartEditBlockTitle as _0x36a7b3,ChartEditPanel as _0x2a9829,ChartEditPanelSection as _0x2ecbeb,ChartEditPanelTab as _0x2599aa,ChartEditPanelTabs as _0x283559,ChartEditorCapability as _0x44db8c,ChartEditorProvider as _0x4bde66,ChartFunnelStyleSection as _0x7de25d,ChartGradientFillField as _0x5103da,ChartGridlinesAndTicksSection as _0x3fd0a7,ChartHeatmapStyleSection as _0x51ee3a,ChartHostAdapter as _0x3832ea,ChartIndicatorLineSection as _0x566467,ChartLegendSection as _0x4d3419,ChartLineAndAreaSection as _0x171453,ChartNumberFormatAtom as _0x3220da,ChartParetoSeriesSection as _0x44a0fb,ChartPieStyleSection as _0x4b289c,ChartRadarStyleSection as _0x1d9e1f,ChartRelationStyleSection as _0xa63c30,ChartSectionAccordion as _0x11d43d,ChartSectionAccordionContent as _0x3206aa,ChartSectionAccordionItem as _0x8a2ccf,ChartSectionAccordionTrigger as _0x32883f,ChartSeriesSection as _0x33c14c,ChartStackField as _0x2fa3d3,ChartStyleSection as _0x20d08d,ChartThemeField as _0x57f87a,ChartTitlesSection as _0x245340,ChartTrendlineSection as _0x3c2f68,ChartTypeField as _0x28e1f3,ChartTypeSpecificDataSection as _0x20436f,ChartTypeSpecificSetupSection as _0x2fc38a,ChartTypeSpecificStyleSection as _0x2412a5,ChartUIService as _0xa5aa5a,ChartViewStateRegistry as _0x91bc23,ChartWaterfallSetupFields as _0x4b136e,ChartWaterfallStyleSection as _0x166174,ChartWordCloudStyleSection as _0x13d7d7,DEFAULT_CHART_AXIS_VALUES as _0x152708,DEFAULT_CHART_FUNNEL_VALUES as _0x540e6b,DEFAULT_CHART_HEATMAP_VALUES as _0x5badfc,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x252eea,DEFAULT_CHART_LEGEND_VALUES as _0x337e65,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x5e0a33,DEFAULT_CHART_PARETO_VALUES as _0x38048e,DEFAULT_CHART_PIE_VALUES as _0x1c8b9e,DEFAULT_CHART_RADAR_VALUES as _0x4bcca4,DEFAULT_CHART_RELATION_VALUES as _0x3de6de,DEFAULT_CHART_SERIES_VALUES as _0x324182,DEFAULT_CHART_STYLE_VALUES as _0xd40535,DEFAULT_CHART_TITLE_VALUES as _0x289a2d,DEFAULT_CHART_TRENDLINE_VALUES as _0x4c6d30,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x15085e,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x3f0564,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x145212,MobileChartEditorControls as _0x342c29,MobileChartEditorProvider as _0x378b2c,UniverChartMobileUIPlugin as _0x54ced9,UniverChartUIPlugin as _0x22f198,buildChartTypeSelectOptions as _0x4fc7e8,chartTypeSupportsCapability as _0xe0cb49,chartTypeSupportsLineAndAreaStyle as _0x2aabdc,useChartEditorChartType as _0x3d34ba,useChartEditorHasRightAxis as _0x20bafb}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x267ea2}from'@univerjs-pro/license';import{ShapeFormulaService as _0xc23566,UniverShapeEditorPlugin as _0x100373,createFormulaShapeData as _0x30a9dd}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0x2940a8,BaseFilterConjunction as _0x3a6b1d,BaseFilterOperator as _0x411cb8,BaseViewType as _0x4da0de,DependentOn as _0xc92a94,Disposable as _0x47ac6f,ICommandService as _0x1ec317,IConfigService as _0x56e562,IImageIoService as _0x2cceec,ILogService as _0x133842,IPermissionService as _0x58608a,IUndoRedoService as _0x3c357b,IUniverInstanceService as _0xa15270,ImageSourceType as _0x188e10,Inject as _0x1e6fb0,Injector as _0x49fd9b,LocaleService as _0x255457,ObjectPermissionService as _0x346c1c,Plugin as _0x4b5524,RedoCommand as _0x1df103,ThemeService as _0x22d94c,UndoCommand as _0xbacc2f,UniverInstanceType as _0x6e7cef,createParagraphId as _0x156ce9,dateKit as _0xa2fcf,generateRandomId as _0x2aef82,merge as _0x2b2cf0,numfmt as _0x254bab,touchDependencies as _0x3ce29c}from'@univerjs/core';import{UniverDocsUIPlugin as _0x442bae}from'@univerjs/docs-ui';import{ArrowDownIcon as _0x4857ec,ArrowUpIcon as _0x40d299,AscendingIcon as _0x2a08ae,CalendarIcon as _0x1437d4,ChartIcon as _0x4cc2bb,CloseIcon as _0x54b54f,DeleteIcon as _0x306b68,DescendingIcon as _0x20c70b,ExpandIcon as _0x2e21be,FilterIcon as _0x48629d,GripVerticalIcon as _0x229479,IncreaseIcon as _0x34ddb8,MoreDownIcon as _0x2e92dc,MoreHorizontalIcon as _0x46df20,NumberIcon as _0x5b2a53,PenIcon as _0x41a33d,PivotTableIcon as _0x551361,ProtectIcon as _0x3bf51c,RedoIcon as _0x40da8b,SearchIcon as _0x10f455,TextIcon as _0x3177bc,UndoIcon as _0x32ef86}from'@univerjs/icons';import{combineLatest as _0x35ec39,map as _0x26242b,merge as _0x1691f8,skip as _0x4f0506}from'rxjs';import{SetBasePermissionCommand as _0x180c8f,getBaseDashboardPermissionObjectId as _0x4e82aa}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x230a38}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x40e758,ShapeLineTypeEnum as _0x1c4533,ShapeTypeEnum as _0x337cc8}from'@univerjs-pro/engine-shape';import{Button as _0x10d589,Checkbox as _0x22d09c,DatePicker as _0x27fb91,Dialog as _0x1ab529,DropdownMenu as _0x86d9a9,Input as _0x2647d7,InputNumber as _0x499d19,MobileDialog as _0x2661d2,MobileDropdownMenu as _0x3837bd,MobileSelect as _0xea1085,MultipleSelect as _0x57fab8,Segmented as _0x1eff91,Select as _0x4b13fc,Textarea as _0x539ea5,Tooltip as _0x310d74,borderClassName as _0x243840,clsx as _0x54dbd2,scrollbarClassName as _0x2bbb9f}from'@univerjs/design';import{UnitObject as _0x1349b1}from'@univerjs/protocol';import{ILayoutService as _0x5d52a6,ObjectPermissionButton as _0x903bf7,openObjectPermissionDialog as _0x5a6cf8,useDependency as _0x53af8d,useObservable as _0x129d28}from'@univerjs/ui';import{useCallback as _0x2f6d8e,useEffect as _0x543512,useMemo as _0x125177,useRef as _0x4523d4,useState as _0xee90d5}from'react';import{Fragment as _0x594ef8,jsx as _0x1fa005,jsxs as _0x5c238f}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x133cf9,ChartRenderMode as _0x4306b5,ChartThemeService as _0x2d3e2e,ChartTypeBits as _0x44b61b,ChartWaterfallStyleTarget as _0x1aea73,IChartRenderModelManagerService as _0x2ba92b,RTLChartStyle as _0x2ce46e,chartBitsUtils as _0x51a8fc,chartTypeCanUseTrendLine as _0x5b26be,resolveChartRuntimeStyle as _0x5641c4,resolveDefaultChartHostFrameStyle as _0x3bc6f7,toChartModelUpdate as _0x3fd4b5}from'@univerjs-pro/engine-chart';import{createPortal as _0x46c06e}from'react-dom';import{PivotCellStyleTypeEnum as _0x534fec,PivotDataFieldDataTypeEnum as _0x25f34a,PivotDataFieldSortOperatorEnum as _0x428f40,PivotFilterTypeEnum as _0x5a8717,PivotLayoutTypeEnum as _0x185dea,PivotSubtotalPositionEnum as _0x568753,PivotSubtotalTypeEnum as _0x1f46e1,PivotTableFiledAreaEnum as _0x23447d,PivotTableValuePositionEnum as _0x2d76e7,isErrorValue as _0x20d60c,isPrefixValue as _0x958be8}from'@univerjs-pro/engine-pivot';var fr=_0x3447f8(0x166),pr=_0x3447f8(0x191);const mr=_0x3447f8(0x19c),hr={};function gr(_0x5dc133,_0x5ea750){const _0x438697=_0x3447f8;let _0xe0ae4=_0x53af8d(_0x58608a),_0x2a9a56=_0x314d1d(_0xe0ae4,_0x5dc133,_0x5ea750);return _0x129d28(()=>_0xe0ae4[_0x438697(0x214)][_0x438697(0x387)](_0x26242b(()=>_0x314d1d(_0xe0ae4,_0x5dc133,_0x5ea750))),_0x2a9a56,!0x1,[_0x5ea750,_0xe0ae4,_0x5dc133]);}function _r(_0x5abc36,_0x3bbc18,_0x1239e6){const _0x4e10f9=_0x3447f8;let _0x1991bf=_0x53af8d(_0x58608a),_0x5d1eff=_0x46c031(_0x1991bf,_0x5abc36,_0x3bbc18,_0x1239e6);return _0x129d28(()=>_0x1991bf[_0x4e10f9(0x214)][_0x4e10f9(0x387)](_0x26242b(()=>_0x46c031(_0x1991bf,_0x5abc36,_0x3bbc18,_0x1239e6))),_0x5d1eff,!0x1,[_0x1991bf,_0x3bbc18,_0x5abc36,_0x1239e6]);}function vr(_0x24c184,_0x38dad0=_0x3447f8(0x285)){const _0x4528bd=_0x3447f8;return{'backgroundImage':'url('+JSON[_0x4528bd(0x1d3)](_0x24c184)+')','backgroundPosition':_0x38dad0===_0x4528bd(0x2af)?_0x4528bd(0x407):_0x4528bd(0x1e4),'backgroundRepeat':_0x38dad0===_0x4528bd(0x2af)?_0x4528bd(0x2af):_0x4528bd(0x137),'backgroundSize':_0x38dad0===_0x4528bd(0x285)?_0x4528bd(0x285):_0x4528bd(0x195)};}const yr={'alignment':_0x3447f8(0x1b4),'currency':'USD','decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x3447f8(0x195),'numberFormat':'general'},br={'CNY':'¥','EUR':'€','USD':'$'};function xr(_0x3dd396){const _0x535403=_0x3447f8;var _0x538dc8;let _0x4622f1=Tr(((_0x538dc8=_0x3dd396[_0x535403(0x100)][_0x535403(0x23f)])==null||(_0x538dc8=_0x538dc8[_0x535403(0x235)])==null?void 0x0:_0x538dc8[_0x535403(0x338)])??'');return{...yr,..._0x4622f1,..._0x3dd396[_0x535403(0x2d3)]};}function Sr(_0x14a122,_0x5d5e46){const _0x1e5b43=_0x3447f8;let _0x1c6631={..._0x14a122[_0x1e5b43(0x2d3)],..._0x5d5e46},_0xe72fa2=xr({..._0x14a122,'appearance':_0x1c6631}),_0x12131e=_0x14a122[_0x1e5b43(0x100)][_0x1e5b43(0x23f)]??{'formula':''};return{..._0x14a122,'appearance':_0x1c6631,'shapeData':{..._0x14a122[_0x1e5b43(0x100)],'formulaBinding':{..._0x12131e,'numberFormat':{'pattern':Cr(_0xe72fa2[_0x1e5b43(0x235)],_0xe72fa2[_0x1e5b43(0xb9)],_0xe72fa2['currency'])}}}};}function Cr(_0x5bb5b0,_0x51b8a4,_0x12d7b1){const _0x47be1d=_0x3447f8;let _0x332ce7=Math[_0x47be1d(0x351)](0x0,Math[_0x47be1d(0x379)](0x8,Math[_0x47be1d(0x323)](_0x51b8a4))),_0x531e6f=_0x332ce7?'.'+'0'[_0x47be1d(0x2af)](_0x332ce7):'';switch(_0x5bb5b0){case _0x47be1d(0x30d):return'0'+_0x531e6f;case _0x47be1d(0x277):return'0'+_0x531e6f+'%';case _0x47be1d(0x39b):return(br[_0x12d7b1]??_0x12d7b1)+'#,##0'+_0x531e6f;case _0x47be1d(0x196):return _0x47be1d(0x3a5)+_0x531e6f;case _0x47be1d(0x3da):case _0x47be1d(0x20a):return _0x47be1d(0x2f4);}}function wr(_0x55f4a7,_0x3f1131,_0x9d487a){const _0x5c4bcd=_0x3447f8;return _0x9d487a[_0x5c4bcd(0x235)]!=='compact'||typeof _0x3f1131!='number'||!Number[_0x5c4bcd(0x1b3)](_0x3f1131)?_0x55f4a7:new Intl[(_0x5c4bcd(0x259))](void 0x0,{'notation':_0x5c4bcd(0x3da),'minimumFractionDigits':_0x9d487a['decimalPlaces']??0x0,'maximumFractionDigits':_0x9d487a[_0x5c4bcd(0xb9)]??0x0})[_0x5c4bcd(0x11b)](_0x3f1131);}function Tr(_0x542fb5){const _0x425db9=_0x3447f8;var _0xac698b,_0x169c34;if(!_0x542fb5||_0x542fb5==='General')return{};let _0x30b69a=_0x542fb5['match'](/\.([0#]+)/),_0x727516=(_0x30b69a==null||(_0xac698b=_0x30b69a[0x1])==null?void 0x0:_0xac698b[_0x425db9(0x2c8)])??0x0;if(_0x542fb5[_0x425db9(0x2f8)]('%'))return{'decimalPlaces':_0x727516,'numberFormat':'percent'};let _0x419f1a=(_0x169c34=Object[_0x425db9(0x3bb)](br)[_0x425db9(0x2c9)](([,_0x97f3b])=>_0x542fb5[_0x425db9(0x2f8)](_0x97f3b)))==null?void 0x0:_0x169c34[0x0];return _0x419f1a?{'currency':_0x419f1a,'decimalPlaces':_0x727516,'numberFormat':_0x425db9(0x39b)}:{'decimalPlaces':_0x727516,'numberFormat':_0x542fb5[_0x425db9(0x2f8)](',')?_0x425db9(0x196):_0x425db9(0x30d)};}const Er={'center':_0x3447f8(0x1e4),'left':'flex-start','right':_0x3447f8(0x104)};function Dr({dashboardId:_0x2f0f80,unitId:_0x2b2bd6,widget:_0x404089}){const _0x39f975=_0x3447f8;var _0x519905,_0x2c3d5c,_0x12eb90,_0x37a76c,_0x420cd6,_0x2626e4,_0x3131a3,_0x237e56,_0x276d66;let _0x43c130=_0x53af8d(_0xc23566),_0x439648=_0x53af8d(_0x2cceec),_0x1975e3=_0x53af8d(_0x255457),_0x4295dc=_0x125177(()=>({'hostType':_0x6e7cef[_0x39f975(0x1f7)],'unitId':_0x2b2bd6,'subUnitId':_0x2f0f80,'shapeId':_0x404089['id']}),[_0x2f0f80,_0x2b2bd6,_0x404089['id']]),[_0x52d507,_0x2bfe50]=_0xee90d5(()=>_0x43c130['getPresentation'](_0x4295dc)),[_0x18a6fd,_0x5c6938]=_0xee90d5(()=>{const _0x2ca5d1=_0x39f975;var _0x38de1a;return(_0x38de1a=_0x43c130[_0x2ca5d1(0x19d)](_0x4295dc))==null?void 0x0:_0x38de1a['value'];}),[_0x3fe820,_0x256cfd]=_0xee90d5(),_0x3c929e=_0x4523d4(null),_0x505693=_0x4523d4(null),_0x4bb213=xr(_0x404089);_0x543512(()=>{const _0x525f7a=_0x39f975;let _0x5651df=_0x43c130[_0x525f7a(0x3d2)][_0x525f7a(0x178)](_0x5c9c9a=>{const _0x13d8b8=_0x525f7a;_0x5c9c9a[_0x13d8b8(0x184)]===_0x2b2bd6&&_0x5c9c9a['subUnitId']===_0x2f0f80&&_0x5c9c9a[_0x13d8b8(0x353)]===_0x404089['id']&&(_0x2bfe50(_0x5c9c9a[_0x13d8b8(0x131)]),_0x5c6938(_0x5c9c9a['result'][_0x13d8b8(0x2c2)]));});return()=>_0x5651df[_0x525f7a(0x3c6)]();},[_0x2f0f80,_0x43c130,_0x4295dc,_0x2b2bd6,_0x404089['id']]),_0x543512(()=>{const _0x468ccc=_0x39f975;let _0x3af951=_0x4bb213[_0x468ccc(0x294)];if(!_0x3af951||_0x3af951[_0x468ccc(0xd9)]!==_0x188e10[_0x468ccc(0x234)])return;let _0x57a11e=_0x439648[_0x468ccc(0x152)](_0x3af951[_0x468ccc(0x2c6)],_0x3af951[_0x468ccc(0xd9)]);if(_0x57a11e!=null&&_0x57a11e[_0x468ccc(0xba)])return;let _0x32f752=!0x0;return _0x439648['getImage'](_0x3af951[_0x468ccc(0x2c6)])['then'](_0x55345f=>{const _0x2887af=_0x468ccc;_0x32f752&&_0x256cfd({'source':_0x3af951[_0x2887af(0x2c6)],'value':_0x55345f});})['catch'](()=>void 0x0),()=>{_0x32f752=!0x1;};},[_0x4bb213[_0x39f975(0x294)],_0x439648]);let _0x3257d7=((_0x519905=_0x4bb213['backgroundImage'])==null?void 0x0:_0x519905[_0x39f975(0xd9)])===_0x188e10[_0x39f975(0x234)]?((_0x2c3d5c=_0x439648['getImageSourceCache'](_0x4bb213[_0x39f975(0x294)][_0x39f975(0x2c6)],_0x4bb213['backgroundImage'][_0x39f975(0xd9)]))==null?void 0x0:_0x2c3d5c[_0x39f975(0xba)])??((_0x3fe820==null?void 0x0:_0x3fe820[_0x39f975(0x2c6)])===_0x4bb213['backgroundImage'][_0x39f975(0x2c6)]?_0x3fe820['value']:''):((_0x12eb90=_0x4bb213[_0x39f975(0x294)])==null?void 0x0:_0x12eb90[_0x39f975(0x2c6)])??'',_0x40205a=_0x404089[_0x39f975(0x100)][_0x39f975(0xe7)],_0x562584=_0x40205a&&_0x39f975(0x2cb)in _0x40205a?(_0x37a76c=_0x40205a[_0x39f975(0x2cb)])==null?void 0x0:_0x37a76c['doc']:void 0x0,_0x48e3e3=wr((_0x52d507==null?void 0x0:_0x52d507[_0x39f975(0x3ca)])??'',_0x18a6fd,_0x4bb213),_0x3d3e6b=_0x404089[_0x39f975(0x100)]['fill'],_0x5b2269=_0x404089[_0x39f975(0x100)][_0x39f975(0x20d)],_0x4da654=_0x562584==null||(_0x420cd6=_0x562584['documentStyle'])==null?void 0x0:_0x420cd6['textStyle'],_0x45bb9f=_0x404089[_0x39f975(0x36b)]??_0x404089[_0x39f975(0x239)]??'';return _0x543512(()=>{const _0x4ab86e=_0x39f975;let _0x1c14b7=_0x3c929e[_0x4ab86e(0x23e)],_0x11018d=_0x505693[_0x4ab86e(0x23e)];if(!_0x1c14b7||!_0x11018d)return;let _0x56489b=()=>{const _0x69d180=_0x4ab86e;if(_0x4bb213['fontSizeMode']===_0x69d180(0x1b1)||!_0x1c14b7[_0x69d180(0x2eb)]||!_0x1c14b7['clientHeight']){_0x11018d['style']['fontSize']=_0x4bb213['fontSize']+'px';return;}let _0x25e804=0x1,_0x32da30=0x48,_0x4974a8=_0x25e804;for(;_0x25e804<=_0x32da30;){let _0x3e9571=Math[_0x69d180(0x112)]((_0x25e804+_0x32da30)/0x2);_0x11018d[_0x69d180(0xc1)][_0x69d180(0x1ae)]=_0x3e9571+'px',_0x11018d['scrollWidth']<=_0x1c14b7[_0x69d180(0x2eb)]&&_0x11018d['scrollHeight']<=_0x1c14b7[_0x69d180(0x3e4)]?(_0x4974a8=_0x3e9571,_0x25e804=_0x3e9571+0x1):_0x32da30=_0x3e9571-0x1;}_0x11018d[_0x69d180(0xc1)][_0x69d180(0x1ae)]=_0x4974a8+'px';};if(_0x56489b(),typeof ResizeObserver>'u')return;let _0x52e43e=new ResizeObserver(_0x56489b);return _0x52e43e[_0x4ab86e(0x17a)](_0x1c14b7),()=>_0x52e43e[_0x4ab86e(0x1a2)]();},[_0x4bb213[_0x39f975(0x1ae)],_0x4bb213[_0x39f975(0x38a)],_0x48e3e3]),_0x5c238f(_0x39f975(0x1e8),{'data-dashboard-formula-shape':_0x404089['id'],'className':_0x39f975(0x2a4),'style':{'backgroundColor':((_0x2626e4=_0x404089[_0x39f975(0x2d3)])==null?void 0x0:_0x2626e4['backgroundColor'])??((_0x3d3e6b==null?void 0x0:_0x3d3e6b[_0x39f975(0x26a)])===_0x40e758['SolidFill']?_0x3d3e6b[_0x39f975(0xc0)]??void 0x0:void 0x0),'border':(_0x5b2269==null?void 0x0:_0x5b2269[_0x39f975(0xbf)])===_0x1c4533['SolidLine']?(_0x5b2269[_0x39f975(0x144)]??0x1)+_0x39f975(0xc5)+(_0x5b2269['color']??'currentColor'):void 0x0,'borderRadius':_0x404089[_0x39f975(0x2e8)]===_0x337cc8[_0x39f975(0x190)]?0xc:void 0x0,'color':((_0x3131a3=_0x404089[_0x39f975(0x2d3)])==null?void 0x0:_0x3131a3[_0x39f975(0xef)])??(_0x52d507==null?void 0x0:_0x52d507[_0x39f975(0xc0)])??(_0x4da654==null||(_0x237e56=_0x4da654['cl'])==null?void 0x0:_0x237e56['rgb'])??void 0x0,'fontWeight':_0x4da654!=null&&_0x4da654['bl']?0x258:void 0x0,'textAlign':_0x4bb213['alignment']},'children':[_0x3257d7&&_0x1fa005('img',{'src':_0x3257d7,'alt':'','aria-hidden':'true','className':_0x39f975(0x335),'style':{'objectFit':((_0x276d66=_0x4bb213[_0x39f975(0x294)])==null?void 0x0:_0x276d66[_0x39f975(0x160)])??_0x39f975(0x285)}}),_0x5c238f(_0x39f975(0x1e8),{'className':_0x39f975(0x274),'children':[_0x45bb9f&&_0x1fa005('div',{'data-dashboard-formula-description':!0x0,'className':_0x39f975(0xe9),'children':_0x45bb9f}),_0x1fa005(_0x39f975(0x1e8),{'ref':_0x3c929e,'data-dashboard-formula-value':!0x0,'aria-label':_0x45bb9f||_0x1975e3['t'](_0x39f975(0x2fd)),'className':_0x39f975(0x3e0),'style':{'justifyContent':Er[_0x4bb213[_0x39f975(0x218)]]},'children':_0x1fa005('span',{'ref':_0x505693,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x4bb213['fontSizeMode'],'className':'univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','children':_0x48e3e3})})]})]});}function Y(_0x572608,_0x12c111){return function(_0x32c7e6,_0x167175){_0x12c111(_0x32c7e6,_0x167175,_0x572608);};}function Or(_0x54c2cf,_0x8efb6a,_0x199bd2,_0x1ae9f9){const _0x35c98d=_0x3447f8;var _0x4a1c33=arguments[_0x35c98d(0x2c8)],_0x4d90bb=_0x4a1c33<0x3?_0x8efb6a:_0x1ae9f9===null?_0x1ae9f9=Object[_0x35c98d(0x382)](_0x8efb6a,_0x199bd2):_0x1ae9f9,_0x5606a6;if(typeof Reflect==_0x35c98d(0x2f1)&&typeof Reflect[_0x35c98d(0x1e9)]==_0x35c98d(0x252))_0x4d90bb=Reflect['decorate'](_0x54c2cf,_0x8efb6a,_0x199bd2,_0x1ae9f9);else{for(var _0x99e5ec=_0x54c2cf[_0x35c98d(0x2c8)]-0x1;_0x99e5ec>=0x0;_0x99e5ec--)(_0x5606a6=_0x54c2cf[_0x99e5ec])&&(_0x4d90bb=(_0x4a1c33<0x3?_0x5606a6(_0x4d90bb):_0x4a1c33>0x3?_0x5606a6(_0x8efb6a,_0x199bd2,_0x4d90bb):_0x5606a6(_0x8efb6a,_0x199bd2))||_0x4d90bb);}return _0x4a1c33>0x3&&_0x4d90bb&&Object['defineProperty'](_0x8efb6a,_0x199bd2,_0x4d90bb),_0x4d90bb;}let kr=class{constructor(_0x2548ed,_0x245fa3,_0x3b20a3){const _0x3e18bc=_0x3447f8;this['_localeService']=_0x2548ed,this['_chartThemeService']=_0x245fa3,this[_0x3e18bc(0x167)]=_0x3b20a3;}[_0x3447f8(0x2a3)](){const _0x273f29=_0x3447f8;return this[_0x273f29(0x167)][_0x273f29(0x395)](_0x4306b5[_0x273f29(0x403)],this[_0x273f29(0x17e)]());}[_0x3447f8(0x1d9)](_0x59e488){const _0x14d1d9=_0x3447f8;let _0x88adfc=_0x59e488[_0x14d1d9(0x2c4)]['config'];if(!_0x88adfc)throw Error(_0x14d1d9(0x22f)+_0x59e488['chartId']+_0x14d1d9(0x2a7));let _0x3ed4ee=this[_0x14d1d9(0x2b3)][_0x14d1d9(0x2b2)]();return{'config':_0x88adfc,'style':_0x5641c4({..._0x59e488[_0x14d1d9(0x2c4)][_0x14d1d9(0xc1)],'runtime':_0x59e488[_0x14d1d9(0x2c4)][_0x14d1d9(0x10e)](_0x3ed4ee),'direction':_0x3ed4ee},_0x88adfc[_0x14d1d9(0x1b9)])};}[_0x3447f8(0x17e)](){const _0x235f18=_0x3447f8;return{'resolveHostStyle':({style:_0x5ab795})=>_0x3bc6f7({'style':_0x5ab795,'getRenderColor':_0x26cd58=>this[_0x235f18(0x103)][_0x235f18(0x400)](_0x26cd58)}),'resolveRenderBackgroundColor':({hostStyle:_0x1ba685})=>_0x1ba685['fill']};}};kr=Or([Y(0x0,_0x1e6fb0(_0x255457)),Y(0x1,_0x1e6fb0(_0x2d3e2e)),Y(0x2,_0x2ba92b)],kr);function Ar(_0x2c5d21,_0x23dfce){const _0x32e87c=_0x3447f8;var _0x1f7bd5;_0x2c5d21[_0x32e87c(0xc1)]['backgroundColor']=_0x23dfce[_0x32e87c(0x310)]??_0x32e87c(0x3a0),_0x2c5d21[_0x32e87c(0xc1)]['border']=(_0x1f7bd5=_0x23dfce['border'])!=null&&_0x1f7bd5[_0x32e87c(0xc0)]&&_0x23dfce['border'][_0x32e87c(0x144)]?_0x23dfce[_0x32e87c(0x1f2)][_0x32e87c(0x144)]+_0x32e87c(0xc5)+_0x23dfce['border'][_0x32e87c(0xc0)]:'',_0x2c5d21['style'][_0x32e87c(0xc4)]=_0x23dfce[_0x32e87c(0x179)]?_0x23dfce[_0x32e87c(0x179)]+'px':'',_0x2c5d21[_0x32e87c(0xc1)][_0x32e87c(0x2b4)]=_0x32e87c(0x343),_0x2c5d21[_0x32e87c(0xc1)][_0x32e87c(0x3aa)]=_0x32e87c(0x31b);}function _0x3448(){const _0x1022ae=['height','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','max','stdDevp','shapeId','bases-dashboard-ui.chart.section.chord','prototype','bases-dashboard-ui.operators.isEmpty','pointerX','pageWrap','univer-text-gray-400','Radar','bases-dashboard-ui.chart.section.gridlinesAndTicks','bases-dashboard-ui.pivot.layout','bases-dashboard-ui.dashboardInspector.repeat','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','lastRow','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','colView','column','article','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','operand','removeEventListener','bases-dashboard-ui.dashboardInspector.dataSource','valueIndex','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','description','disposeWithMe','rowCount','default','bases-dashboard-ui.pivot.addToRow','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','clientX','end','bases-dashboard-ui.pivot.chartAndTable','bases-dashboard-ui.dashboard.fullScreen','accept','headerRowCount','univer-text-right','bases-dashboard-ui.dashboardInspector.number','min','onDragOver','Gauge','print','relation','false','filterInfo','replaceChildren','base-dashboard-pivot-chart-','getOwnPropertyDescriptor','renderRevision','bases-dashboard-ui.pivot.downThenAcross','YYYY-MM-DD','matchMedia','pipe','changed$','univer-pointer-events-auto\x20univer-opacity-100','fontSizeMode','44333140rVlCkx','waterfall.positive','bases-dashboard-ui.pivot.product','colCount','GrandTotal','toUpperCase','bases-dashboard-ui.pivot.variancePopulation','formula','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','columnSpan','createChartInstance','bases-dashboard-ui.pivot.rows','RecordId','data$','isArray','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','currency','53304laVgOQ','bases-dashboard-ui.dashboardInspector.contain','itemTypes','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','transparent','from','requestFullscreen','focusUnit','has','#,##0','columnFields','test','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','boxSizing','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','252ZaTCMu','base-pivot-options','bases-dashboard-ui.pivot.numberFormat','univer-w-full','IS_NOT','packageName','univer-size-8\x20univer-p-0\x20univer-text-red-500','image/*','bases-dashboard-ui.mobile.moveDown','onCommit','getSnapshot','GridlinesAndTicks','Rating','button','paragraphId','entries','bases-dashboard-ui.pivot.addToColumn','bases-dashboard-ui.pivot.clearFilter','getUnit','img','wordCloud','tbody','render','currentTarget','some','bases-dashboard-ui.dashboardInspector.textSize','unsubscribe','IS_NOT_EMPTY','legend','Number','text','Waterfall','bases-dashboard-ui.pivot.average','Bubble','bases-dashboard-ui.chart.section.waterfall','original','univer-cursor-grabbing','formatMap','presentationChanged$','VerticalAxis','univer-flex\x20univer-gap-2','bases-dashboard-ui.dashboardInspector.custom','view','bases-dashboard-ui.pivot.max','11916tPJnfq','imageSourceType','compact','bases-dashboard-ui.pivot.values','_configService','bases-dashboard-ui.pivot.countNumbers','setStyle','bases-dashboard-ui.dashboardInspector.uploadImage','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','bases-dashboard-ui.dashboardInspector.enterValue','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','page:','clientHeight','_injector','list','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','cumulativeLineStyle','getValueIndex','target','univer-flex','bases-dashboard-ui.pivot.variance','alt','PivotChart','rowSpan','pointerup','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','bases-dashboard-ui.chart.section.histogram','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','click','pie','\x20/\x20span\x20','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','onFilter','bases-dashboard-ui.pivot.showColumnSubtotal','univer-min-h-11\x20univer-px-3\x20univer-text-base','canView','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','bases-dashboard-ui.dashboardInspector.replaceImage','gray','base-pivot-fields','getRenderColor','then','bases-dashboard-ui.operators.lessThan','Dom','bases-dashboard-ui.pivot.display','bases-dashboard-ui.pivot.calculating','scrollTop','0\x200','executeChartUpdateConfig','IndicatorLine','span','decimalPlaces','src','titles','tableOrder','markNotReady','bases-dashboard-ui.pivot.displayName','lineStrokeType','color','style','SingleSelect','barStyle','borderRadius','px\x20solid\x20','register','saveImage','bases-dashboard-ui.pivot.top','bases-dashboard-ui.dashboardInspector.data','bases-dashboard-ui.pivot.filters','documentElement','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','univer-mb-3\x20univer-text-sm\x20univer-font-medium','base-pivot-table-configuration','onDragStart','onMoveUp','setSubtotalType','bases-dashboard-ui.pivot.pageDirection','var','bases-dashboard-ui.operators.after','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','bases-dashboard-ui.dashboardInspector.dragWidget','toLocaleLowerCase','getDataFieldByTableId','sourceType','chartId','univer-cursor-grab','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','createElement','rowFields','bases-dashboard-ui.dashboard.rename','layout','bases-dashboard-ui.dashboardInspector.sourceUnavailable','change','bases-dashboard-ui.dashboard.pivotChart','bases-dashboard-ui.dashboardInspector.editData','setFieldFormat','shapeText','defaultValue','univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','set','index','onReady','resize','closest','textColor','bases-dashboard-ui.chart.section.wordCloud','bases-dashboard-ui.dashboardInspector.style','every','push','bases-dashboard-ui.dashboard.search','univer-flex\x20univer-flex-col','29313lmUubp','Histogram','files','chart-and-table','Series','keydown','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','values','bases-dashboard-ui.pivot.repeatColumnLabels','move','shapeData','field','showColGrandTotal','_chartThemeService','flex-end','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','saveAttachment','showColSubtotal','Relation','bases-dashboard-ui.pivot.summarizeBy','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','bases-dashboard-ui.chart.section.funnel','baseChartDataAnimation','pivot','getRuntimeContext','header','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-mt-2','floor','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','replace','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','univer-flex\x20univer-flex-col\x20univer-gap-4','clientY','date','dashboard-text-','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','format','getCurrentTheme','small','bases-dashboard-ui.operators.isNot','getFieldCountByArea','bases-dashboard-ui.dashboard.deleteWidget','slice','bases-dashboard-ui.pivot.sum','onMove','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','primary','getFieldPositionInfoById','string','corner:','univer-size-4','snapshot','bases-dashboard-ui.chart.common.verticalAxis','bases-dashboard-ui.dashboardInspector.decimalPlaces','paragraphs','resolve','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.dashboardInspector.right','presentation','bases-dashboard-ui.pivot.cancel','lineAndArea','backgroundColor','change$','\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','no-repeat','tabular','localeKey','dashboard-','1477KqPOiF','isSubtotal','showRowGrandTotal','chartType','renameField','indicatorLine','bases-dashboard-ui.chart.common.switchRowColumn','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','bases-dashboard-ui.pivot.calculationFailed','width','bases-dashboard-ui.dashboard.text','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','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','bases-dashboard-ui.chart.chartTypes.','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','currentTheme$','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','resizeDirection','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','filter','bases-dashboard-ui.pivot.dropFieldsHere','univer-bg-gray-0\x20dark:!univer-bg-gray-900','getImageSourceCache','bases-dashboard-ui.dashboardInspector.removeImage','tableId','descending','dashboard-widget-','Pie','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','fullscreenElement','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','get','file','univer-relative\x20univer-z-10','bases-dashboard-ui.pivot.confirm','trim','fit','separator','bases-dashboard-ui.dashboardInspector.autoFit','ceil','dataFieldId','bases-dashboard-ui.dashboardInspector.left','@univerjs-pro/bases-dashboard-ui','_renderModelManager','bases-dashboard-ui.pivot.showRowGrandTotal','bases-dashboard-ui.chart.common.setup','preventDefault','pointermove','5304860lAzjrE','lastCol','GREATER_THAN','getRect','bases-dashboard-ui.dashboardInspector.originalSize','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','Boxplot','table','allowMultiple','univer-grid\x20univer-gap-4\x20univer-p-4','version','grandTotal','subscribe','radius','observe','operator','ManualFilter','ascending','_createContext','setOptions','RightVerticalAxis','measure','3928xPPkYE','rowView','unitId','11VPOgsg','tables','[data-dashboard-widget]','initial','pareto','body','bases-dashboard-ui.pivot.rowSubtotalPosition','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','Currency','bases-dashboard-ui.mobile.moveUp','pageRows','RoundRect','1.0.1','onStarting','bases-dashboard-ui.dashboardInspector.currency','Trendline','auto','grouped','releaseChartRuntime','CreatedAt','bottom','darkMode$','bases-dashboard-ui.dashboard.add','bases-dashboard-ui.config','getResult','bases-dashboard-ui.pivot.chartConfiguration','bases-dashboard-ui.dashboardInspector.backgroundColor','acquireChartRuntime','updateValuePosition','disconnect','error','bases-dashboard-ui.pivot.valuePosition','bases-dashboard-ui.pivot.description','showRowSubtotal','outline','univer-grid\x20univer-gap-4','bases-dashboard-ui.pivot.name','bases-dashboard-ui.dashboardInspector.selectOption','bases-dashboard-ui.pivot.layoutOutline','bases-dashboard-ui.pivot.layoutTabular','bases-dashboard-ui.dashboardInspector.cover','fontSize','1318580WwUkMQ','Value','custom','univer-h-full\x20univer-w-full\x20univer-bg-transparent','isFinite','left','getTableFieldsByDataFieldId','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','bases-dashboard-ui.pivot.pivotConfiguration','style$','type','defineProperty','countNums','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-px-4\x20dark:!univer-border-gray-700','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','bases-dashboard-ui.pivot.acrossThenDown','removeField','bases-dashboard-ui.dashboardInspector.description','base64Cache','tableFieldId','bases-dashboard-ui.chart.common.trendline','bases-dashboard-ui.chart.','getAttachmentUrl','bases-dashboard-ui.dashboard.editWidget','pointerY','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','Checkbox','FormulaShape','indexOf','univer-flex-1','bases-dashboard-ui.chart.section.radar','PieStyle','orient','LESS_THAN_OR_EQUAL','contain','valuePosition','stringify','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','cornerView','refreshChartRuntime','univer-flex\x20univer-min-h-full\x20univer-flex-col','bases-dashboard-ui.pivot.count','createRenderInput','conditions','pageOverThenDown','base-pivot-chart-setup','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','bases-dashboard-ui.dashboard.new','bases-dashboard-ui.pivot.descending','bases-dashboard-ui.dashboardInspector.reset','bases-dashboard-ui.operators.is','Sunburst','context','center','fieldId','bases-dashboard-ui.pivot.removeField','bases-dashboard-ui.operators.before','div','decorate','minmax(0,\x201fr)','chart','Pivot','bases-dashboard-ui.pivot.dataSource','map','setConfig','bases-dashboard-ui.pivot.columns','sum','border','bases-dashboard-ui.pivot.addToFilter','stdDev','subtotal','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','UNIVER_BASE','Treemap','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','add','input','dashboards','bases-dashboard-ui.operators.greaterThanOrEqual','undos','base-pivot-chart','call','bases-dashboard-ui.pivot.chartOnly','bases-dashboard-ui.dashboardInspector.newCondition','count','\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.sunburst','BASE_DASHBOARD_UI_PLUGIN','bases-dashboard-ui.chart.common.editChart','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','startX','general','bases-dashboard-ui.dashboardInspector.clear','bases-dashboard-ui.dashboardInspector.numberFormat','stroke','Row','baseChartDataAnimationDuration','bases-dashboard-ui.pivot.grandTotal','join','\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','addEventListener','permissionPointUpdate$','univer-flex\x20univer-min-h-0\x20univer-flex-1','WaterfallSeries','bases-dashboard-ui.chart.common.heatmap','alignment','dataAggregation','scrollHeight','bases-dashboard-ui.chart.common.series','bases-dashboard-ui.dashboardInspector.loading','link','group','getOptions','bases-dashboard-ui.chart.section.indicatorLine','bases-dashboard-ui.pivot.bottom','657870bwuwLK','univer-grid\x20univer-gap-3','univer-grid\x20univer-gap-2\x20univer-p-3','UpdatedAt','AND','onCancel','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','bases-dashboard-ui.dashboard.redo','bases-dashboard-ui.pivot.selectAll','toPrimitive','syncLayout','bases-dashboard-ui.dashboardInspector.center','bases-dashboard-ui.dashboardInspector.backgroundImage','Base\x20dashboard\x20chart\x20','trendline','constructor','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','bases-dashboard-ui.dashboard.image','UUID','numberFormat','bases-dashboard-ui.chart.waterfall.subtotal','univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize','bases-dashboard-ui.dashboard.delete','title','ensureMount','updateFieldPosition','Funnel','univer-flex\x20univer-justify-end\x20univer-gap-2','current','formulaBinding','BaseDashboard','chartRowDirection','univer-truncate','base-pivot-chart-style','contains','univer-size-5\x20univer-text-primary-600','bases-dashboard-ui.pivot.addToValue','darkMode','univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','LESS_THAN','label','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','AFTER','fieldOrder','toJSON','MultiSelect','sortInfo','Filter','function','bases-dashboard-ui.dashboard.tableFilter','bases-dashboard-ui.operators.contains','pluginName','prefix','bases-dashboard-ui.dashboardInspector.formula','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','NumberFormat','onDrop','repeatRowLabels','bases-dashboard-ui.pivot.showColumnGrandTotal','bases-dashboard-ui.dashboard.resizeWidget','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','onDragEnd','bases-dashboard-ui.dashboardInspector.percent','onMoveDown','destructive','getBoundingClientRect','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','Candlestick','setLayout','bases-dashboard-ui.chart.section.candlestick','aside','CONTAINS','fillType','items','isHeader','bases-dashboard-ui.dashboardInspector.textColor','BEFORE','univer-min-w-0\x20univer-flex-1','bases-dashboard-ui.pivot.defaultName','setSortInfo','mode','stopPropagation','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','baseOn','delete','percent','bases-dashboard-ui.dashboard.addWidget','data','bases-dashboard-ui.mobile.permissions','rows','Heatmap','bases-dashboard-ui.pivot.repeatRowLabels','dashboardOrder','GeneralSeries','rootContainerElement','exitFullscreen','bases-dashboard-ui.pivot.options','series','rightYAxis','cover','viewOrder','bases-dashboard-ui.chart.common.horizontalAxis','axis','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','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','innerWidth','base-pivot-chart-configuration','headerMap','waterfall','heatmap','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.dashboard.configure','Date','Subtotal','backgroundImage','blank','repeatColLabels','dataset','fullscreenchange','univer-w-full\x20univer-justify-start','setLabelFilterInfo','Column','Person','getResource','waterfall.negative','addFieldWithSourceId','bases-dashboard-ui.pivot.fieldSettings','renderTransition','Escape','createDomChartInstance','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','TableFilter','widgetOrder','\x20has\x20no\x20render\x20config.','ChartStyle','bases-dashboard-ui.chart.section.treemap','Data','Scatter','system','labelId','_config','repeat','config','filterFields','getDirection','_localeService','overflow','redos','row','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','bases-dashboard-ui.dashboard.undo','ParetoBarSeries','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','displayName','checkMounted','getId','executeCommand','univer-m-3','bases-dashboard-ui.pivot.min','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','value','onRemove','model','Group','source','isBottomTotal','length','find','bases-dashboard-ui.chart.common.legend','dataModel','radar','name','isConnected','getDashboard','bases-dashboard-ui.pivot.filterField','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','true','appearance','Text','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','addImageSourceCache','univer-text-sm','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.pivot.searchFields','bases-dashboard-ui.dashboardInspector.delete','segmented','views','dimension','Chord','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','univer-size-5\x20univer-rotate-90','pivotViewId','NOT_CONTAINS','bases-dashboard-ui.chart.section.pie','HorizontalAxis','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','bases-dashboard-ui.pivot.ascending','bases-dashboard-ui.chart.common.customize','shapeType','bases-dashboard-ui.pivot.fields','ChartAndAxisTitles','clientWidth','onSettings','bases-dashboard-ui.operators.greaterThan','fields','valueFields','iterator','object','displayMode','\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','General','bases-dashboard-ui.chart.common.rightVerticalAxis','univer-max-h-40\x20univer-text-base','parentElement','includes','ownerDocument','Legend','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','key','bases-dashboard-ui.dashboard.formulaShape','dispose','dataSource','setCurrentUnitForType','matches','univer-shrink-0\x20univer-px-3','blur','Progress','bases-dashboard-ui.chart.section.gauge','funnel','rightY','catch','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','bases-dashboard-ui.pivot.pageWrap','product','flatMap','number','univer-flex\x20univer-items-center\x20univer-gap-2','dom','fill','widgets','undoRedoStatus$','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','right','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','bases-dashboard-ui.dashboardInspector.close','config$','dashboard-chart-setup','bases-dashboard-ui.chart.section.paretoBar','visibilityState','border-box','bases-dashboard-ui.pivot.showRowSubtotal','rowSubtotalPosition','bases-dashboard-ui.chart.section.paretoLine','univer-border-gray-200\x20dark:!univer-border-gray-700','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','dashboard-chart-style','None','round','\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','split','options','Sankey','bases-dashboard-ui.chart.section.lineAndArea','select','ParetoLineSeries','bases-dashboard-ui.dashboardInspector.compact','dataStream','univer-mt-2\x20univer-w-full','WordCloud','forEach','bases-dashboard-ui.dashboardInspector.grouped','bases-dashboard-ui.chart.section.relation','bind','univer-w-36','\x20/\x20','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','section','getChartRuntime','pattern','document','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','varp','_element','scrollWidth','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Style','dataView','Image','pageView','hidden','average','bases-dashboard-ui.pivot.tableOnly','activeRuntimeModel','item','top','bases-dashboard-ui.dashboardInspector.alignment','bases-dashboard-ui.operators.isNotEmpty','info','bases-dashboard-ui.pivot.stdDevPopulation','area','IS_EMPTY'];_0x3448=function(){return _0x1022ae;};return _0x3448();}function jr(_0x416343){'@babel/helpers - typeof';const _0x10b798=_0x3447f8;return jr=typeof Symbol==_0x10b798(0x252)&&typeof Symbol[_0x10b798(0x2f0)]=='symbol'?function(_0x1ff5eb){return typeof _0x1ff5eb;}:function(_0x378218){const _0x517a54=_0x10b798;return _0x378218&&typeof Symbol=='function'&&_0x378218[_0x517a54(0x231)]===Symbol&&_0x378218!==Symbol[_0x517a54(0x355)]?'symbol':typeof _0x378218;},jr(_0x416343);}function Mr(_0x49f46b,_0x2ddb61){const _0x5a63a7=_0x3447f8;if(jr(_0x49f46b)!=_0x5a63a7(0x2f1)||!_0x49f46b)return _0x49f46b;var _0x3d448f=_0x49f46b[Symbol[_0x5a63a7(0x22b)]];if(_0x3d448f!==void 0x0){var _0x5d1f9e=_0x3d448f[_0x5a63a7(0x200)](_0x49f46b,_0x2ddb61||_0x5a63a7(0x36e));if(jr(_0x5d1f9e)!=_0x5a63a7(0x2f1))return _0x5d1f9e;throw TypeError(_0x5a63a7(0x2ba));}return(_0x2ddb61==='string'?String:Number)(_0x49f46b);}function Nr(_0x14f060){var _0x21bd07=Mr(_0x14f060,'string');return jr(_0x21bd07)=='symbol'?_0x21bd07:_0x21bd07+'';}function Pr(_0x21ade8,_0x1566ba,_0x4df3c7){const _0x4d5612=_0x3447f8;return(_0x1566ba=Nr(_0x1566ba))in _0x21ade8?Object[_0x4d5612(0x1ba)](_0x21ade8,_0x1566ba,{'value':_0x4df3c7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x21ade8[_0x1566ba]=_0x4df3c7,_0x21ade8;}var Fr=class extends _0x47ac6f{constructor(_0x4a6ded,_0x279c3f){const _0x52290a=_0x3447f8;super(),this[_0x52290a(0xda)]=_0x4a6ded,this[_0x52290a(0x33c)]=_0x279c3f,Pr(this,_0x52290a(0x272),_0x4306b5[_0x52290a(0x403)]);}[_0x3447f8(0x16f)](){const _0x4d0bed=_0x3447f8;return{'width':Math['max'](0x1,this[_0x4d0bed(0x33c)][_0x4d0bed(0x2eb)]),'height':Math['max'](0x1,this[_0x4d0bed(0x33c)][_0x4d0bed(0x3e4)])};}[_0x3447f8(0x3de)](_0x5d6bbb){Ar(this['_element'],_0x5d6bbb);}async[_0x3447f8(0x23a)](){const _0xaedd30=_0x3447f8;return this[_0xaedd30(0x33c)];}[_0x3447f8(0x2bc)](){const _0x3c30c5=_0x3447f8;return this[_0x3c30c5(0x33c)][_0x3c30c5(0x2ce)];}[_0x3447f8(0x22c)](){}['markReady'](){}[_0x3447f8(0xbd)](){}};function Ir({isRowDirection:_0x25c39b,runtime:_0x3433e3}){const _0x10c4b5=_0x3447f8;let _0x5da5d3=_0x4523d4(null),_0x355b33=_0x53af8d(_0x255457),_0x560a9d=_0x53af8d(_0x133842),_0x18cda9=_0x53af8d(kr),_0x1f5277=_0x53af8d(_0x22d94c);return _0x543512(()=>{const _0x6bb577=_0x1596;let _0x36db0e=_0x5da5d3[_0x6bb577(0x23e)];if(!_0x36db0e)return;_0x36db0e[_0x6bb577(0x380)]();let {chartId:_0x5d1811,model:_0x385303}=_0x3433e3,_0x283b75=_0x385303[_0x6bb577(0x2ff)],_0x3c0a7d=new Fr(_0x5d1811,_0x36db0e),_0x49ed65=_0x18cda9[_0x6bb577(0x2a3)](),_0x336146=!0x1,_0x28a10b=null,_0x558bf=null,_0x225c31=null,_0x112d15=null,_0xc5e873=!0x1,_0x29d6e7=!0x1,_0x29d194=Promise[_0x6bb577(0x12e)]();_0x49ed65[_0x6bb577(0x332)](_0x3c0a7d);let _0x1f3d2f=()=>{const _0x333eb8=_0x6bb577;var _0xad8755,_0x1ca40d,_0x2a4a4c,_0x270714;if(document[_0x333eb8(0x31a)]===_0x333eb8(0x343)||(_0xad8755=(_0x1ca40d=window)[_0x333eb8(0x386)])!=null&&(_0xad8755=_0xad8755[_0x333eb8(0x200)](_0x1ca40d,'(prefers-reduced-motion:\x20reduce)'))!=null&&_0xad8755['matches']||(_0x2a4a4c=(_0x270714=window)[_0x333eb8(0x386)])!=null&&(_0x2a4a4c=_0x2a4a4c[_0x333eb8(0x200)](_0x270714,_0x333eb8(0x37c)))!=null&&_0x2a4a4c[_0x333eb8(0x301)]||!_0x36db0e[_0x333eb8(0x2ce)])return!0x1;let _0x522466=_0x36db0e[_0x333eb8(0x263)]();return _0x522466[_0x333eb8(0x144)]>0x0&&_0x522466[_0x333eb8(0x34f)]>0x0&&_0x522466[_0x333eb8(0x314)]>0x0&&_0x522466['bottom']>0x0&&_0x522466['left']<window[_0x333eb8(0x28b)]&&_0x522466['top']<window['innerHeight'];},_0x1dc4ea=()=>{const _0x3b9973=_0x6bb577;_0x558bf!==null&&clearTimeout(_0x558bf),_0x36db0e['dataset'][_0x3b9973(0x10c)]=_0x3b9973(0x2d2),_0x36db0e[_0x3b9973(0x297)][_0x3b9973(0x20f)]=String(_0x133cf9),_0x558bf=setTimeout(()=>{const _0x54e7a8=_0x3b9973;_0x558bf=null,delete _0x36db0e[_0x54e7a8(0x297)][_0x54e7a8(0x10c)],delete _0x36db0e[_0x54e7a8(0x297)][_0x54e7a8(0x20f)];},_0x133cf9);},_0xbceb9e=_0x4ef84c=>{const _0x4d0262=_0x6bb577;if(_0x336146)return;if(_0x28a10b!==null&&(clearTimeout(_0x28a10b),_0x28a10b=null),!_0x385303['config']){_0x29d6e7||=_0x4ef84c;return;}_0x36db0e['dataset'][_0x4d0262(0x13e)]=String(_0x385303[_0x4d0262(0x13e)]),_0x36db0e[_0x4d0262(0x297)][_0x4d0262(0x241)]=String(_0x25c39b);let _0x1cb8b6=_0x18cda9[_0x4d0262(0x1d9)](_0x3433e3),_0x4aa2e7={'chartId':_0x5d1811,'config':_0x1cb8b6['config'],'style':_0x1cb8b6[_0x4d0262(0xc1)]};_0x29d194=_0x29d194['then'](async()=>{const _0x54d68c=_0x4d0262;_0x336146||(_0x36db0e[_0x54d68c(0x297)][_0x54d68c(0x383)]=String(Number(_0x36db0e[_0x54d68c(0x297)][_0x54d68c(0x383)]??0x0)+0x1),_0x4ef84c&&_0x225c31&&_0x49ed65[_0x54d68c(0x2a1)]&&_0x1f3d2f()?(await _0x49ed65['renderTransition'](_0x225c31,_0x4aa2e7,{'duration':_0x133cf9}),_0x336146||_0x1dc4ea()):await _0x49ed65[_0x54d68c(0x3c2)](_0x4aa2e7),_0x225c31=_0x4aa2e7);})[_0x4d0262(0x308)](_0x524110=>_0x560a9d[_0x4d0262(0x1a3)](_0x4d0262(0x364),_0x524110));},_0x690dce=(_0x214abd=!0x1)=>{_0x29d6e7||=_0x214abd,!_0xc5e873&&(_0xc5e873=!0x0,queueMicrotask(()=>{_0xc5e873=!0x1;let _0x4f2b97=_0x29d6e7;_0x29d6e7=!0x1,_0xbceb9e(_0x4f2b97);}));},_0x243f02=[_0x283b75[_0x6bb577(0x398)][_0x6bb577(0x178)](_0x36642c=>{let _0x8cb729=JSON['stringify'](_0x36642c);_0x112d15!=null&&_0x112d15!==_0x8cb729&&_0x690dce(!0x0),_0x112d15=_0x8cb729;}),_0x385303[_0x6bb577(0x317)]['subscribe'](_0x3702d1=>{_0x3702d1&&_0x690dce();}),_0x385303[_0x6bb577(0x1b8)][_0x6bb577(0x178)](()=>_0x690dce()),_0x355b33['direction$'][_0x6bb577(0x178)](()=>_0x690dce()),_0x35ec39([_0x1f5277[_0x6bb577(0x14a)],_0x1f5277[_0x6bb577(0x19a)]])[_0x6bb577(0x387)](_0x4f0506(0x1))[_0x6bb577(0x178)](()=>_0x690dce())],_0x229f61=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x5a72da=_0x6bb577;_0x336146||(_0x3c0a7d[_0x5a72da(0x22c)](),_0x28a10b!==null&&clearTimeout(_0x28a10b),_0x28a10b=setTimeout(()=>_0x690dce(),0x64));});return _0x229f61==null||_0x229f61[_0x6bb577(0x17a)](_0x36db0e),()=>{const _0x33911e=_0x6bb577;_0x336146=!0x0,_0x28a10b!==null&&clearTimeout(_0x28a10b),_0x558bf!==null&&clearTimeout(_0x558bf),delete _0x36db0e['dataset'][_0x33911e(0x10c)],delete _0x36db0e[_0x33911e(0x297)][_0x33911e(0x20f)],_0x229f61==null||_0x229f61['disconnect'](),_0x243f02[_0x33911e(0x32f)](_0x17b4be=>_0x17b4be[_0x33911e(0x3c6)]()),_0x49ed65['dispose'](),_0x3c0a7d[_0x33911e(0x2fe)](),_0x36db0e[_0x33911e(0x380)]();};},[_0x25c39b,_0x355b33,_0x560a9d,_0x18cda9,_0x3433e3,_0x1f5277]),_0x1fa005(_0x10c4b5(0x1e8),{'ref':_0x5da5d3,'data-u-comp':_0x10c4b5(0x1ff),'className':_0x10c4b5(0xcc)});}function Lr({filters:_0x428449,onRuntimeChange:_0x246468,unitId:_0x491c8a,widget:_0x356b0a}){const _0x91979c=_0x3447f8;let _0x41b9d4=_0x53af8d(_0xa15270),_0x5ea7ef=_0x53af8d(_0x255457),_0x49c22a=_0x53af8d(_0x133842),_0x494e83=_0x53af8d(_0x2cc67a),[_0x2aed0c,_0x514163]=_0xee90d5(null),[_0xe3d686,_0x3107c2]=_0xee90d5(!0x1),[_0x45f958,_0x40e39f]=_0xee90d5(null),_0x71ab73=_0x4523d4(_0x91979c(0x381)+_0x2aef82(0x8)),_0x17063a=_0x41b9d4[_0x91979c(0x3be)](_0x491c8a,_0x6e7cef[_0x91979c(0x1f7)]),_0x2eb99f=_0x17063a==null?void 0x0:_0x17063a['getSnapshot']()['tables'][_0x356b0a['tableId']],_0x380b4d=_0x2eb99f==null?void 0x0:_0x2eb99f[_0x91979c(0x2dc)][_0x356b0a[_0x91979c(0x2e1)]],_0x28c5aa=Rr(_0x380b4d);if(_0x543512(()=>{const _0x4af76c=_0x91979c;if(!_0x28c5aa)return;let _0x424ebe=_0x71ab73[_0x4af76c(0x23e)];return _0x494e83['acquireChartRuntime'](_0x424ebe,{'unitId':_0x491c8a,'tableId':_0x356b0a[_0x4af76c(0x154)],'viewId':_0x356b0a['pivotViewId'],'filters':[]}),()=>{const _0x3798b0=_0x4af76c;_0x494e83[_0x3798b0(0x197)](_0x491c8a,_0x424ebe),_0x246468==null||_0x246468(_0x356b0a['id'],null);};},[_0x28c5aa,_0x246468,_0x494e83,_0x491c8a,_0x356b0a['id'],_0x356b0a['pivotViewId'],_0x356b0a[_0x91979c(0x154)]]),_0x543512(()=>{const _0xb63695=_0x91979c;if(!Rr(_0x380b4d))return;let _0x7bab0a=!0x0,_0x17a1b8=_0x356b0a[_0xb63695(0x1eb)]??_0x380b4d[_0xb63695(0x2b0)][_0xb63695(0x1eb)],_0x5ee941={'unitId':_0x491c8a,'tableId':_0x356b0a[_0xb63695(0x154)],'viewId':_0x356b0a[_0xb63695(0x2e1)],'filters':[_0x380b4d['filter']??null,..._0x428449]};return _0x494e83[_0xb63695(0x1d6)](_0x491c8a,_0x71ab73[_0xb63695(0x23e)],_0x5ee941,_0x17a1b8)[_0xb63695(0x401)](_0x447f4f=>{const _0x25ad30=_0xb63695;if(!_0x7bab0a||!_0x447f4f)return;let _0x67c2b3=_0x494e83[_0x25ad30(0x337)](_0x491c8a,_0x71ab73[_0x25ad30(0x23e)])??null;_0x514163(_0x447f4f),_0x40e39f(_0x67c2b3),_0x3107c2(!0x1),_0x246468==null||_0x246468(_0x356b0a['id'],_0x67c2b3);})[_0xb63695(0x308)](_0xa5edd1=>{const _0x53e809=_0xb63695;_0x49c22a[_0x53e809(0x1a3)](_0x53e809(0x2d8),_0xa5edd1),_0x7bab0a&&(_0x514163(null),_0x3107c2(!0x0));}),()=>{_0x7bab0a=!0x1;};},[_0x428449,_0x49c22a,_0x246468,_0x494e83,_0x491c8a,_0x380b4d,_0x356b0a['chart'],_0x356b0a['id'],_0x356b0a[_0x91979c(0x2e1)],_0x356b0a['tableId']]),!Rr(_0x380b4d))return _0x1fa005(_0x91979c(0x1e8),{'className':_0x91979c(0x2c1),'children':_0x5ea7ef['t'](_0x91979c(0xe2))});let _0xfa2201=_0x494e83[_0x91979c(0x337)](_0x491c8a,_0x71ab73[_0x91979c(0x23e)])===_0x45f958?_0x45f958:null;return _0x2aed0c&&_0xfa2201?_0x1fa005(Ir,{'isRowDirection':_0x18785d((_0x356b0a[_0x91979c(0x1eb)]??_0x380b4d['config'][_0x91979c(0x1eb)])[_0x91979c(0x1cf)]),'runtime':_0xfa2201}):_0x1fa005('div',{'className':_0x91979c(0x2c1),'children':_0x5ea7ef['t'](_0xe3d686?'bases-dashboard-ui.pivot.calculationFailed':_0x91979c(0x405))});}function Rr(_0x374578){const _0xae8396=_0x3447f8;return(_0x374578==null?void 0x0:_0x374578[_0xae8396(0x1b9)])===_0x4da0de[_0xae8396(0x1ec)]&&typeof _0x374578[_0xae8396(0x2b0)]==_0xae8396(0x2f1)&&_0x374578[_0xae8396(0x2b0)]!==null&&_0xae8396(0x10d)in _0x374578[_0xae8396(0x2b0)]&&_0xae8396(0x1eb)in _0x374578['config'];}const zr={'alignment':_0x3447f8(0x1b4),'fontSize':0x12,'fontSizeMode':_0x3447f8(0x195)};function Br(_0x1107b1){return{...zr,..._0x1107b1['appearance']};}function Vr(_0x4f5e88){const _0x2f5109=_0x3447f8;var _0x426c71;return((_0x426c71=_0x4f5e88[_0x2f5109(0x18a)])==null?void 0x0:_0x426c71[_0x2f5109(0x32c)]['replace'](/\r\n$/,'')[_0x2f5109(0x114)](/\r/g,'\x0a'))??'';}function Hr(_0x374124,_0x9df30){const _0x38436e=_0x3447f8;var _0x45292e;let _0x45c080=_0x9df30[_0x38436e(0x114)](/\r\n|\r/g,'\x0a')[_0x38436e(0x325)]('\x0a'),_0x4c6cb5=_0x45c080[_0x38436e(0x211)]('\x0d')+'\x0d\x0a',_0x182849=((_0x45292e=_0x374124[_0x38436e(0x18a)])==null?void 0x0:_0x45292e[_0x38436e(0x12d)])??[],_0x5135c4=new Set(_0x182849[_0x38436e(0x1ee)](_0x4c389d=>_0x4c389d[_0x38436e(0x3ba)])),_0x2c8d75=0x0,_0x4c5d0e=_0x45c080['map']((_0x9ac136,_0x1bb5a5)=>{const _0x53c0e0=_0x38436e;_0x2c8d75+=_0x9ac136[_0x53c0e0(0x2c8)];let _0x284a6e={..._0x182849[_0x1bb5a5]??{'startIndex':_0x2c8d75,'paragraphId':_0x156ce9(_0x5135c4)},'startIndex':_0x2c8d75};return _0x2c8d75+=0x1,_0x284a6e;});return{..._0x374124,'body':{..._0x374124[_0x38436e(0x18a)],'dataStream':_0x4c6cb5,'paragraphs':_0x4c5d0e,'textRuns':[]}};}function Ur({widget:_0x33b577}){const _0x326cb3=_0x3447f8;let _0x257f1d=_0x53af8d(_0x22d94c),_0x22101e=_0x53af8d(_0x255457),_0x2b65ec=_0x129d28(()=>_0x257f1d['currentTheme$'],_0x257f1d[_0x326cb3(0x11c)](),!0x1,[_0x257f1d]),_0x565cf8=_0x4523d4(null),_0x397542=_0x4523d4(null),_0x19f6af=Br(_0x33b577),_0x321f7a=_0x19f6af[_0x326cb3(0x134)]??_0x2b65ec['gray'][0x0],_0x193cf0=_0x19f6af[_0x326cb3(0xef)]??_0x2b65ec['gray'][0x3e8],_0x2e060f=Vr(_0x33b577['document']);return _0x543512(()=>{const _0x4ccb26=_0x326cb3;let _0x281b3f=_0x565cf8['current'],_0x111108=_0x397542[_0x4ccb26(0x23e)];if(!_0x281b3f||!_0x111108)return;let _0x4bbd35=()=>{const _0x171a28=_0x4ccb26;if(_0x19f6af[_0x171a28(0x38a)]===_0x171a28(0x1b1)||!_0x281b3f[_0x171a28(0x2eb)]||!_0x281b3f[_0x171a28(0x3e4)]){_0x111108[_0x171a28(0xc1)][_0x171a28(0x1ae)]=_0x19f6af[_0x171a28(0x1ae)]+'px';return;}let _0x3a88af=0x8,_0x385240=0x48,_0x5acd77=_0x3a88af;for(;_0x3a88af<=_0x385240;){let _0x57c0b2=Math[_0x171a28(0x112)]((_0x3a88af+_0x385240)/0x2);_0x111108[_0x171a28(0xc1)][_0x171a28(0x1ae)]=_0x57c0b2+'px',_0x111108[_0x171a28(0x33d)]<=_0x281b3f[_0x171a28(0x2eb)]&&_0x111108[_0x171a28(0x21a)]<=_0x281b3f[_0x171a28(0x3e4)]?(_0x5acd77=_0x57c0b2,_0x3a88af=_0x57c0b2+0x1):_0x385240=_0x57c0b2-0x1;}_0x111108[_0x171a28(0xc1)][_0x171a28(0x1ae)]=_0x5acd77+'px';};if(_0x4bbd35(),typeof ResizeObserver>'u')return;let _0x2c60fd=new ResizeObserver(_0x4bbd35);return _0x2c60fd[_0x4ccb26(0x17a)](_0x281b3f),()=>_0x2c60fd['disconnect']();},[_0x19f6af[_0x326cb3(0x1ae)],_0x19f6af[_0x326cb3(0x38a)],_0x2e060f]),_0x1fa005('div',{'data-dashboard-text-widget':_0x33b577['id'],'className':_0x326cb3(0x315),'style':{'backgroundColor':_0x321f7a,'color':_0x193cf0},'children':_0x1fa005(_0x326cb3(0x1e8),{'ref':_0x565cf8,'data-dashboard-text-content':!0x0,'aria-label':_0x22101e['t']('bases-dashboard-ui.dashboard.text'),'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','children':_0x1fa005(_0x326cb3(0x1e8),{'ref':_0x397542,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x19f6af['fontSizeMode'],'className':'univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','style':{'textAlign':_0x19f6af[_0x326cb3(0x218)]},'children':_0x2e060f})})});}function Wr({dashboard:_0x1ede8b,editable:_0xcdb2b0=!0x0,onSelectWidget:_0x426fba,renderWidget:_0x3e544d,renderWidgetActions:_0x5901b0,selectedWidgetId:_0x2ffc2f,widgetLabel:_0x2866ac}){const _0x59a188=_0x3447f8;return _0x1fa005(_0x59a188(0x1e8),{'data-dashboard-scroll-container':!0x0,'className':_0x54dbd2('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',_0x2bbb9f),'onClick':_0xcdb2b0?_0x25b894=>{const _0x22a29a=_0x59a188;if(!(_0x25b894[_0x22a29a(0x3ea)]instanceof Node)||!_0x25b894[_0x22a29a(0x3c3)]['contains'](_0x25b894['target']))return;let _0x52343d=_0x25b894[_0x22a29a(0x3ea)]instanceof Element?_0x25b894[_0x22a29a(0x3ea)]:_0x25b894[_0x22a29a(0x3ea)][_0x22a29a(0x2f7)];_0x52343d!=null&&_0x52343d['closest'](_0x22a29a(0x187))||_0x426fba==null||_0x426fba();}:void 0x0,'children':_0x1fa005('div',{'data-dashboard-grid':!0x0,'className':'univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','children':_0x1ede8b[_0x59a188(0x2a6)][_0x59a188(0x1ee)](_0x372d6d=>{const _0xe9227c=_0x59a188;let _0x242825=_0x1ede8b[_0xe9227c(0x311)][_0x372d6d];if(!_0x242825)return null;let _0x40eeee=Math[_0xe9227c(0x351)](0xb4,_0x242825['layout'][_0xe9227c(0x3ef)]*_0x35833c);return _0x5c238f(_0xe9227c(0x363),{'data-dashboard-widget':_0x242825['id'],'aria-label':_0x242825['title']??_0x2866ac(_0x242825),'className':_0x54dbd2(_0xe9227c(0x3f3),_0x242825['type']===_0x28a714[_0xe9227c(0x341)]||_0x242825['type']===_0x28a714['FormulaShape']?'univer-bg-transparent\x20dark:!univer-bg-transparent':_0xe9227c(0x151),_0xcdb2b0&&_0x2ffc2f===_0x242825['id']?_0xe9227c(0x1dd):'univer-border-gray-200\x20dark:!univer-border-gray-700'),'style':{'minHeight':_0x40eeee,'height':_0x40eeee},'tabIndex':_0xcdb2b0?0x0:void 0x0,'onClick':_0xcdb2b0?()=>_0x426fba==null?void 0x0:_0x426fba(_0x242825['id']):void 0x0,'onFocus':_0xcdb2b0?()=>_0x426fba==null?void 0x0:_0x426fba(_0x242825['id']):void 0x0,'children':[_0xcdb2b0&&_0x1fa005(_0xe9227c(0x1e8),{'className':'univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','children':_0x5901b0==null?void 0x0:_0x5901b0(_0x242825)}),_0x1fa005(_0xe9227c(0x1e8),{'className':_0xe9227c(0x264),'children':_0x3e544d(_0x242825)})]},_0x242825['id']);})})});}let Gr=class extends _0xa5aa5a{constructor(_0x576d67){const _0x48fc70=_0x3447f8;super(_0x576d67),Pr(this,_0x48fc70(0x346),null);}[_0x3447f8(0x408)](_0x4d3f41){}};Gr=Or([Y(0x0,_0x1e6fb0(_0x91bc23))],Gr);function Kr({children:_0x497416}){return _0x1fa005(_0x342c29,{'children':_0x497416});}function qr(_0x1aca35){return _0x1fa005(_0xea1085,{..._0x1aca35});}function Jr(_0x52fb50){return _0x1fa005(_0x3837bd,{..._0x52fb50});}function Yr(_0xf263f8){return _0x1fa005(_0x2661d2,{..._0xf263f8});}var Xr;const X={'axis':{..._0x152708,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x540e6b,'heatmap':_0x5badfc,'indicatorLine':_0x252eea,'legend':_0x337e65,'lineAndArea':_0x5e0a33,'pareto':_0x38048e,'pie':_0x1c8b9e,'radar':_0x4bcca4,'relation':{..._0x3de6de,'useValueAsSymbolSize':!0x0},'series':{..._0x324182,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Xr=_0x2ce46e['allSeriesStyle'])==null?void 0x0:Xr[_0x3447f8(0x284)])??!0x1}},'style':_0xd40535,'titles':_0x289a2d,'trendline':_0x4c6d30,'waterfall':{..._0x15085e,'useSubtotal':!0x0},'waterfallStyle':_0x3f0564,'wordCloud':_0x145212},Zr=[_0x44b61b['Line'],_0x44b61b[_0x3447f8(0x35a)],_0x44b61b[_0x3447f8(0x32e)],_0x44b61b[_0x3447f8(0x2ab)],_0x44b61b[_0x3447f8(0x23c)],_0x44b61b[_0x3447f8(0x108)],_0x44b61b[_0x3447f8(0x327)],_0x44b61b['Heatmap'],_0x44b61b[_0x3447f8(0x172)],_0x44b61b[_0x3447f8(0x265)],_0x44b61b[_0x3447f8(0xf7)],_0x44b61b[_0x3447f8(0x1f8)],_0x44b61b['Sunburst'],_0x44b61b[_0x3447f8(0x37b)],_0x44b61b[_0x3447f8(0x2de)]];function Qr(_0x4d6f0c){const _0x3caa29=_0x3447f8;let {config:_0x1a7e5e,onChange:_0x3114d0,runtime:_0x268c26,tableName:_0x9e5b70}=_0x4d6f0c,_0x498f29=_0x53af8d(Gr),_0x41fa39=_0x53af8d(_0x255457),[_0x337686,_0x2c376a]=_0xee90d5(_0x2599aa['Data']),_0x59d9ed=_0x125177(()=>new _0x3832ea(_0x268c26[_0x3caa29(0x2c4)],{'commit':_0xdb1db4=>{const _0xa825d7=_0x3caa29;var _0x53f84b;let _0x18b571=_0x268c26['model'],_0x1bf179=_0x3fd4b5(_0xdb1db4,{'series':(_0x53f84b=_0x18b571[_0xa825d7(0x2b0)])==null?void 0x0:_0x53f84b['series'],'currentChartType':_0x18b571[_0xa825d7(0x13e)],'currentStyle':_0x18b571[_0xa825d7(0xc1)],'currentContext':_0x18b571['context'],'currentDataAggregation':_0x18b571['dataAggregation']});_0x3114d0({'chart':$r(_0x1a7e5e[_0xa825d7(0x1eb)],_0x1bf179)});}}),[_0x1a7e5e[_0x3caa29(0x1eb)],_0x3114d0,_0x268c26]),_0x45e053=_0x125177(()=>_0x4fc7e8(_0x1016f1[_0x3caa29(0x1ee)](_0x16ea00=>({..._0x16ea00,'label':_0x41fa39['t'](ri(_0x16ea00['labelId']))}))),[_0x41fa39]);return _0x1fa005(_0x378b2c,{'chartUIService':_0x498f29,'hostAdapter':_0x59d9ed,'children':_0x5c238f(_0x3caa29(0x1e8),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x1fa005(_0x283559,{'ariaLabel':_0x41fa39['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x3caa29(0x302),'items':[{'label':_0x41fa39['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0x3caa29(0x1dc),'value':_0x2599aa['Data']},{'label':_0x41fa39['t'](_0x3caa29(0x2e7)),'panelId':_0x3caa29(0x243),'value':_0x2599aa['Style']}],'value':_0x337686,'onChange':_0x2c376a}),_0x337686===_0x2599aa[_0x3caa29(0x2aa)]?_0x1fa005(_0x2a9829,{'id':'base-pivot-chart-setup','label':_0x41fa39['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x5c238f(_0x3caa29(0x1e8),{'className':_0x3caa29(0x228),'children':[_0x1fa005(_0x28e1f3,{'options':_0x45e053}),_0x1fa005(_0x2fc38a,{}),_0x1fa005(_0x57f87a,{}),_0x1fa005(ei,{}),_0x1fa005(_0x2fa3d3,{}),_0x5c238f(_0x3caa29(0x1e8),{'children':[_0x1fa005(_0x36a7b3,{'title':_0x41fa39['t'](_0x3caa29(0x1ed))}),_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':_0x9e5b70})]}),_0x1fa005(_0x3a6df3,{'orientationControl':_0x1fa005(_0x10d589,{'size':'small','onClick':()=>_0x3114d0({'chart':{..._0x1a7e5e['chart'],'orient':_0x1a7e5e[_0x3caa29(0x1eb)]['orient']===_0x3caa29(0x2b6)?'column':'row'}}),'children':_0x41fa39['t'](_0x3caa29(0x141))})}),_0x1fa005(_0x20436f,{}),_0x1fa005(_0x4b136e,{'defaultValues':X['waterfall']}),_0x5c238f(_0x3caa29(0x1e8),{'children':[_0x1fa005(_0x36a7b3,{'title':_0x41fa39['t'](_0x3caa29(0x404))}),_0x1fa005(qr,{'value':_0x1a7e5e[_0x3caa29(0x2f2)],'options':[{'value':_0x3caa29(0xf9),'label':_0x41fa39['t'](_0x3caa29(0x373))},{'value':_0x3caa29(0x1eb),'label':_0x41fa39['t'](_0x3caa29(0x201))},{'value':_0x3caa29(0x173),'label':_0x41fa39['t'](_0x3caa29(0x345))}],'onChange':_0x5314fb=>{const _0x5017a2=_0x3caa29;(_0x5314fb==='chart-and-table'||_0x5314fb===_0x5017a2(0x1eb)||_0x5314fb==='table')&&_0x3114d0({'displayMode':_0x5314fb});}})]})]})}):_0x1fa005(_0x2a9829,{'id':_0x3caa29(0x243),'label':_0x41fa39['t'](_0x3caa29(0x2e7)),'children':_0x1fa005(ti,{})})]})});}function $r(_0x45dc48,_0x4c48bd){const _0x1c5ea4=_0x3447f8;return{..._0x45dc48,'type':_0x4c48bd[_0x1c5ea4(0x13e)]??_0x45dc48['type'],'style':_0x4c48bd[_0x1c5ea4(0xc1)]??_0x45dc48[_0x1c5ea4(0xc1)],'context':_0x4c48bd[_0x1c5ea4(0x1e3)]??_0x45dc48[_0x1c5ea4(0x1e3)],'dataAggregation':_0x4c48bd[_0x1c5ea4(0x219)]??_0x45dc48['dataAggregation']};}function ei(){const _0x542318=_0x3447f8;let _0xabe3e0=_0x3d34ba();return _0x1fa005(_0x5103da,{'visible':Zr[_0x542318(0xf2)](_0x53f079=>!_0x51a8fc[_0x542318(0x275)](_0xabe3e0,_0x53f079))});}function Z(_0x50be19){const _0x11750c=_0x3447f8;return _0x5c238f(_0x8a2ccf,{'id':_0x50be19['id'],'children':[_0x1fa005(_0x32883f,{'children':_0x50be19[_0x11750c(0x24a)]}),_0x1fa005(_0x3206aa,{'children':_0x50be19['children']})]});}function ti(){const _0x54503e=_0x3447f8;let _0x2d65f4=_0x53af8d(_0x255457),_0x44c45c=_0x3d34ba(),_0x2a8ca0=_0x20bafb(),[_0x2a76e4,_0x15414d]=_0xee90d5(null),_0x2fb2ec=_0x51a8fc[_0x54503e(0x275)](_0x44c45c,_0x44b61b[_0x54503e(0x157)]),_0x44f3df=_0x44c45c===_0x44b61b[_0x54503e(0x35a)],_0xe0ab2f=_0x44c45c===_0x44b61b['WordCloud'],_0x3226f9=_0x44c45c===_0x44b61b[_0x54503e(0x23c)],_0x5c329d=_0x51a8fc[_0x54503e(0x275)](_0x44c45c,_0x44b61b[_0x54503e(0x3cd)]),_0x17e0cd=_0x44c45c===_0x44b61b[_0x54503e(0x108)],_0x135d2a=_0x44c45c===_0x44b61b['Waterfall'],_0x26ba55=_0x44c45c===_0x44b61b['Pareto'],_0x3ff624=_0x44c45c===_0x44b61b[_0x54503e(0x27c)],_0x21e549=_0xe0cb49(_0x44c45c,_0x44db8c[_0x54503e(0x27f)])&&!_0x5c329d&&!_0x26ba55,_0x156cc8=ni(_0x44c45c,_0x2d65f4);return _0x5c238f(_0x11d43d,{'value':_0x2a76e4,'onChange':_0x15414d,'children':[_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x2a8)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0x1fa005(_0x20d08d,{'defaultValues':X[_0x54503e(0xc1)]})}),_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x2ea)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.common.chartAndAxisTitles'),'children':_0x1fa005(_0x245340,{'commitMode':_0x54503e(0x303),'defaultValues':X[_0x54503e(0xbb)]})}),_0x21e549&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0xfa)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.common.series'),'children':_0x1fa005(_0x33c14c,{'defaultValues':X[_0x54503e(0x283)],'NumberFormatField':_0x3220da})}),_0x135d2a&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x216)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.section.waterfall'),'children':_0x1fa005(_0x166174,{'defaultValues':X['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x412769,target:_0x59bdbc})=>_0x59bdbc===_0x1aea73[_0x54503e(0x293)]?_0x2d65f4['t'](_0x54503e(0x236)):_0x412769?_0x412769+'-('+_0x2d65f4['t'](_0x54503e(0x1c4)+(_0x59bdbc===_0x1aea73['Positive']?_0x54503e(0x38c):_0x54503e(0x29e)))+')':'','NumberFormatField':_0x3220da})}),_0x26ba55&&_0x5c238f(_0x594ef8,{'children':[_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x2b9)],'label':_0x2d65f4['t'](_0x54503e(0x319)),'children':_0x1fa005(_0x44a0fb,{'defaultValues':X[_0x54503e(0x189)],'NumberFormatField':_0x3220da,'showDataPointEditor':!0x0,'target':_0x54503e(0xc3)})}),_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x32a)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':_0x1fa005(_0x44a0fb,{'defaultValues':X[_0x54503e(0x189)],'NumberFormatField':_0x3220da,'showDataPointEditor':!0x1,'target':_0x54503e(0x3e8)})})]}),_0x2fb2ec&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x1ce)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.section.pie'),'children':_0x1fa005(_0x4b289c,{'defaultValues':X[_0x54503e(0x3f5)],'NumberFormatField':_0x3220da})}),_0xe0ab2f&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x32e)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.section.wordCloud'),'children':_0x1fa005(_0x13d7d7,{'defaultValues':X[_0x54503e(0x3c0)]})}),_0x44f3df&&_0x1fa005(Z,{'id':_0x2ecbeb['Radar'],'label':_0x2d65f4['t'](_0x54503e(0x1cd)),'children':_0x1fa005(_0x1d9e1f,{'defaultValues':X[_0x54503e(0x2cc)]})}),_0x3226f9&&_0x1fa005(Z,{'id':_0x2ecbeb['Funnel'],'label':_0x2d65f4['t'](_0x54503e(0x10b)),'children':_0x1fa005(_0x7de25d,{'defaultValues':X[_0x54503e(0x306)],'gapControl':_0x54503e(0x329)})}),_0x3ff624&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x27c)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.common.heatmap'),'children':_0x1fa005(_0x51ee3a,{'defaultValues':X[_0x54503e(0x28f)]})}),_0x17e0cd&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x108)],'label':_0x2d65f4['t'](_0x54503e(0x331)),'children':_0x1fa005(_0xa63c30,{'defaultValues':X[_0x54503e(0x37d)]})}),_0x2aabdc(_0x44c45c)&&_0x1fa005(Z,{'id':_0x2ecbeb['LineAndArea'],'label':_0x2d65f4['t'](_0x54503e(0x328)),'children':_0x1fa005(_0x171453,{'defaultValues':X[_0x54503e(0x133)],'lineStyleControl':_0x54503e(0x2db)})}),_0xe0cb49(_0x44c45c,_0x44db8c[_0x54503e(0x2fa)])&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x2fa)],'label':_0x2d65f4['t'](_0x54503e(0x2ca)),'children':_0x1fa005(_0x4d3419,{'defaultValues':X[_0x54503e(0x3c8)]})}),_0xe0cb49(_0x44c45c,_0x44db8c['Axes'])&&_0x5c238f(_0x594ef8,{'children':[_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x2e4)],'label':_0x2d65f4['t'](_0x54503e(0x287)),'children':_0x1fa005(_0x3ee0e8,{'axis':'x','defaultValues':X[_0x54503e(0x288)],'NumberFormatField':_0x3220da})}),_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x3d3)],'label':_0x2d65f4['t'](_0x54503e(0x12b)),'children':_0x1fa005(_0x3ee0e8,{'axis':'y','defaultValues':X['axis'],'NumberFormatField':_0x3220da})}),_0x2a8ca0&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x180)],'label':_0x2d65f4['t'](_0x54503e(0x2f5)),'children':_0x1fa005(_0x3ee0e8,{'axis':_0x54503e(0x307),'defaultValues':X[_0x54503e(0x288)],'NumberFormatField':_0x3220da})}),_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x3b7)],'label':_0x2d65f4['t'](_0x54503e(0x35b)),'children':_0x1fa005(_0x3fd0a7,{'defaultValues':X[_0x54503e(0x288)]})})]}),_0xe0cb49(_0x44c45c,_0x44db8c['IndicatorLine'])&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x409)],'label':_0x2d65f4['t'](_0x54503e(0x220)),'children':_0x1fa005(_0x566467,{'defaultValues':X[_0x54503e(0x140)]})}),_0x5b26be(_0x44c45c)&&_0x1fa005(Z,{'id':_0x2ecbeb['Trendline'],'label':_0x2d65f4['t'](_0x54503e(0x1c3)),'children':_0x1fa005(_0x3c2f68,{'defaultValues':X[_0x54503e(0x230)]})}),_0x156cc8&&_0x1fa005(Z,{'id':_0x156cc8['id'],'label':_0x156cc8[_0x54503e(0x24a)],'children':_0x1fa005(_0x2412a5,{})})]});}function ni(_0x3be12e,_0x377dae){const _0x59a06f=_0x3447f8;let _0x20af7e={[_0x44b61b[_0x59a06f(0x265)]]:{'id':_0x2ecbeb['Candlestick'],'localeKey':_0x59a06f(0x267)},[_0x44b61b['Histogram']]:{'id':_0x2ecbeb[_0x59a06f(0xf7)],'localeKey':_0x59a06f(0x3f2)},[_0x44b61b[_0x59a06f(0x1f8)]]:{'id':_0x2ecbeb[_0x59a06f(0x1f8)],'localeKey':'bases-dashboard-ui.chart.section.treemap'},[_0x44b61b[_0x59a06f(0x1e2)]]:{'id':_0x2ecbeb[_0x59a06f(0x1e2)],'localeKey':_0x59a06f(0x205)},[_0x44b61b[_0x59a06f(0x37b)]]:{'id':_0x2ecbeb[_0x59a06f(0x37b)],'localeKey':'bases-dashboard-ui.chart.section.gauge'},[_0x44b61b['Chord']]:{'id':_0x2ecbeb[_0x59a06f(0x2de)],'localeKey':_0x59a06f(0x354)}}[_0x3be12e];return _0x20af7e?{'id':_0x20af7e['id'],'label':_0x377dae['t'](_0x20af7e[_0x59a06f(0x139)])}:null;}function ri(_0x2b61c9){const _0x377632=_0x3447f8;return _0x377632(0x148)+_0x2b61c9;}function ii({onChange:_0x2f2ac6,onEditData:_0x47292e,runtime:_0x2fe732,sourceChart:_0x45f6e4,sourceName:_0x8514ea,widget:_0x3c6c80}){const _0x5849f1=_0x3447f8;let _0x423797=_0x53af8d(Gr),_0x14bb9b=_0x53af8d(_0x255457),[_0xcbb894,_0x3c62ad]=_0xee90d5(_0x2599aa[_0x5849f1(0x2aa)]),_0x2d0849=_0x3c6c80['chart']??_0x45f6e4,_0x16c7a2=_0x125177(()=>new _0x3832ea(_0x2fe732[_0x5849f1(0x2c4)],{'commit':_0x46c03=>{const _0x166c28=_0x5849f1;var _0x22bda6;let _0x36d3b5=_0x2fe732[_0x166c28(0x2c4)],_0x4230ce=_0x3fd4b5(_0x46c03,{'series':(_0x22bda6=_0x36d3b5['config'])==null?void 0x0:_0x22bda6[_0x166c28(0x283)],'currentChartType':_0x36d3b5[_0x166c28(0x13e)],'currentStyle':_0x36d3b5[_0x166c28(0xc1)],'currentContext':_0x36d3b5[_0x166c28(0x1e3)],'currentDataAggregation':_0x36d3b5[_0x166c28(0x219)]});_0x2f2ac6({..._0x3c6c80,'chart':$r(_0x2d0849,_0x4230ce)})[_0x166c28(0x308)](()=>void 0x0);}}),[_0x2d0849,_0x2f2ac6,_0x2fe732,_0x3c6c80]),_0x59e6bb=_0x125177(()=>_0x4fc7e8(_0x1016f1['map'](_0x229449=>({..._0x229449,'label':_0x14bb9b['t'](ai(_0x229449[_0x5849f1(0x2ad)]))}))),[_0x14bb9b]);return _0x1fa005(_0x4bde66,{'chartUIService':_0x423797,'hostAdapter':_0x16c7a2,'children':_0x5c238f(_0x5849f1(0x1e8),{'data-dashboard-chart-inspector':!0x0,'className':_0x5849f1(0x1bd),'children':[_0x1fa005(_0x283559,{'ariaLabel':_0x14bb9b['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x5849f1(0x302),'items':[{'label':_0x14bb9b['t'](_0x5849f1(0x169)),'panelId':_0x5849f1(0x318),'value':_0x2599aa[_0x5849f1(0x2aa)]},{'label':_0x14bb9b['t'](_0x5849f1(0x2e7)),'panelId':_0x5849f1(0x321),'value':_0x2599aa[_0x5849f1(0x33f)]}],'value':_0xcbb894,'onChange':_0x3c62ad}),_0xcbb894===_0x2599aa['Data']?_0x1fa005(_0x2a9829,{'id':'dashboard-chart-setup','label':_0x14bb9b['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x5c238f(_0x5849f1(0x1e8),{'className':_0x5849f1(0x228),'children':[_0x1fa005(_0x28e1f3,{'options':_0x59e6bb}),_0x1fa005(_0x2fc38a,{}),_0x1fa005(_0x57f87a,{}),_0x1fa005(ei,{}),_0x1fa005(_0x2fa3d3,{}),_0x5c238f(_0x5849f1(0x1e8),{'children':[_0x1fa005(_0x36a7b3,{'title':_0x14bb9b['t']('bases-dashboard-ui.dashboardInspector.dataSource')}),_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':_0x8514ea}),_0x1fa005(_0x10d589,{'className':_0x5849f1(0x32d),'onClick':_0x47292e,'children':_0x14bb9b['t'](_0x5849f1(0xe5))})]})]})}):_0x1fa005(_0x2a9829,{'id':'dashboard-chart-style','label':_0x14bb9b['t'](_0x5849f1(0x2e7)),'children':_0x1fa005(ti,{})})]})});}function ai(_0x2f0cbf){const _0x525342=_0x3447f8;return _0x525342(0x148)+_0x2f0cbf;}const oi=[_0x3447f8(0x20a),_0x3447f8(0x30d),'percent',_0x3447f8(0x39b),_0x3447f8(0x196),_0x3447f8(0x3da)];function si({base:_0x35f59b,onChange:_0x580fcb,onSelectBackgroundImage:_0x41e010,widget:_0x27c75e}){const _0x76ffdf=_0x3447f8;var _0x51fd20;let _0x275568=_0x53af8d(_0x255457),_0x24103c=_0x53af8d(_0x22d94c),_0x36a3ad=_0x129d28(()=>_0x24103c['currentTheme$'],_0x24103c['getCurrentTheme'](),!0x1,[_0x24103c]),_0x10edcf=_0x129d28(()=>_0x24103c[_0x76ffdf(0x19a)],_0x24103c[_0x76ffdf(0x247)],!0x1,[_0x24103c]),[_0x917748,_0x3a5e65]=_0xee90d5(_0x76ffdf(0x279)),[_0x58bd19,_0x4bb974]=_0xee90d5(!0x1),_0x38cc8f=xr(_0x27c75e),_0x404fbd=_0x35f59b[_0x76ffdf(0x3b6)]()[_0x76ffdf(0x186)][_0x27c75e[_0x76ffdf(0x154)]],_0x413ed4=_0x404fbd==null?void 0x0:_0x404fbd[_0x76ffdf(0x286)]['find'](_0x51936d=>_0x404fbd[_0x76ffdf(0x2dc)][_0x51936d]),_0x366f59=_0x413ed4?_0x404fbd==null?void 0x0:_0x404fbd['views'][_0x413ed4]:void 0x0,_0x153876=_0x404fbd&&_0x366f59?_0x11a6ff(_0x35f59b['getSnapshot'](),_0x404fbd,_0x366f59)[_0x76ffdf(0x1ee)](_0x3fa48d=>({..._0x3fa48d,'current':!0x1})):[],_0x9d2f37=((_0x51fd20=_0x27c75e[_0x76ffdf(0x100)][_0x76ffdf(0x23f)])==null?void 0x0:_0x51fd20[_0x76ffdf(0x392)])??'',_0x4a8d36=_0x30dbe2=>_0x580fcb(Sr(_0x27c75e,_0x30dbe2))[_0x76ffdf(0x308)](()=>void 0x0),_0x391f1b=_0x1ef0e1=>_0x580fcb({..._0x27c75e,'description':_0x1ef0e1})[_0x76ffdf(0x308)](()=>void 0x0);return _0x5c238f(_0x76ffdf(0x1e8),{'data-dashboard-formula-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x1fa005(_0x1eff91,{'className':_0x76ffdf(0x2bf),'items':[{'value':_0x76ffdf(0x279),'label':_0x275568['t'](_0x76ffdf(0xc9))},{'value':_0x76ffdf(0xc1),'label':_0x275568['t'](_0x76ffdf(0xf1))}],'value':_0x917748,'onChange':_0x3a5e65}),_0x1fa005(_0x76ffdf(0x1e8),{'className':_0x76ffdf(0x105),'children':_0x917748===_0x76ffdf(0x279)?_0x5c238f(_0x76ffdf(0x1e8),{'className':_0x76ffdf(0x1a8),'children':[_0x1fa005(ci,{'label':_0x275568['t'](_0x76ffdf(0x1c0)),'children':_0x1fa005(_0x2647d7,{'value':_0x27c75e['description']??_0x27c75e['title']??'','onChange':_0x391f1b,'onBlur':_0x11b0d6=>_0x391f1b(_0x11b0d6[_0x76ffdf(0x3ea)][_0x76ffdf(0x2c2)])})}),_0x1fa005(ci,{'label':_0x275568['t'](_0x76ffdf(0x368)),'children':_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':(_0x404fbd==null?void 0x0:_0x404fbd[_0x76ffdf(0x2cd)])??_0x275568['t'](_0x76ffdf(0xe2))})}),_0x5c238f(ci,{'label':_0x275568['t'](_0x76ffdf(0x257)),'children':[_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':_0x3ae876(_0x9d2f37,_0x153876)}),_0x1fa005(_0x10d589,{'className':_0x76ffdf(0x32d),'onClick':()=>_0x4bb974(!0x0),'children':_0x275568['t']('bases-dashboard-ui.dashboardInspector.editFormula')})]})]}):_0x5c238f(_0x76ffdf(0x1e8),{'className':_0x76ffdf(0x1a8),'children':[_0x1fa005(_0x2d27c8,{'emptyLabel':_0x275568['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x275568['t'](_0x76ffdf(0x19f)),'pickerFallbackValue':_0x10edcf?_0x36a3ad[_0x76ffdf(0x3fe)][0x384]:_0x36a3ad[_0x76ffdf(0x3fe)][0x0],'resetLabel':_0x275568['t'](_0x76ffdf(0x1e0)),'value':_0x38cc8f['backgroundColor']??null,'onChange':_0x57d406=>_0x4a8d36({'backgroundColor':_0x57d406??void 0x0})}),_0x5c238f(ci,{'label':_0x275568['t'](_0x76ffdf(0x22e)),'children':[_0x5c238f(_0x76ffdf(0x1e8),{'className':_0x76ffdf(0x3d4),'children':[_0x5c238f(_0x10d589,{'className':_0x76ffdf(0x1cc),'onClick':()=>{const _0x998c01=_0x76ffdf;_0x41e010()[_0x998c01(0x401)](_0x5384bf=>{const _0x48e995=_0x998c01;if(_0x5384bf){var _0xb3982f;return _0x4a8d36({'backgroundImage':{..._0x5384bf,'fit':((_0xb3982f=_0x38cc8f[_0x48e995(0x294)])==null?void 0x0:_0xb3982f['fit'])??'cover'}});}})['catch'](()=>void 0x0);},'children':[_0x1fa005(_0x34ddb8,{}),_0x38cc8f[_0x76ffdf(0x294)]?_0x275568['t'](_0x76ffdf(0x3fd)):_0x275568['t']('bases-dashboard-ui.dashboardInspector.uploadImage')]}),_0x38cc8f['backgroundImage']&&_0x1fa005(_0x10d589,{'aria-label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x275568['t'](_0x76ffdf(0x153)),'onClick':()=>_0x4a8d36({'backgroundImage':void 0x0}),'children':_0x1fa005(_0x306b68,{})})]}),_0x38cc8f[_0x76ffdf(0x294)]&&_0x1fa005(_0x1eff91,{'className':_0x76ffdf(0x111),'items':[{'value':_0x76ffdf(0x285),'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x76ffdf(0x1d1),'label':_0x275568['t'](_0x76ffdf(0x39d))}],'value':_0x38cc8f[_0x76ffdf(0x294)][_0x76ffdf(0x160)],'onChange':_0x4e2eef=>_0x4a8d36({'backgroundImage':_0x38cc8f[_0x76ffdf(0x294)]?{..._0x38cc8f[_0x76ffdf(0x294)],'fit':_0x4e2eef}:void 0x0})})]}),_0x1fa005(_0x2d27c8,{'emptyLabel':_0x275568['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x10edcf?_0x36a3ad[_0x76ffdf(0x3fe)][0x32]:_0x36a3ad[_0x76ffdf(0x3fe)][0x3e8],'resetLabel':_0x275568['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x38cc8f[_0x76ffdf(0xef)]??null,'onChange':_0x35d90e=>_0x4a8d36({'textColor':_0x35d90e??void 0x0})}),_0x1fa005(ci,{'label':_0x275568['t'](_0x76ffdf(0x349)),'children':_0x1fa005(_0x1eff91,{'items':[{'value':_0x76ffdf(0x1b4),'label':_0x275568['t'](_0x76ffdf(0x165))},{'value':'center','label':_0x275568['t'](_0x76ffdf(0x22d))},{'value':_0x76ffdf(0x314),'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x38cc8f['alignment'],'onChange':_0x2c2966=>_0x4a8d36({'alignment':_0x2c2966})})}),_0x5c238f(ci,{'label':_0x275568['t'](_0x76ffdf(0x3c5)),'children':[_0x1fa005(_0x1eff91,{'items':[{'value':_0x76ffdf(0x195),'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':'custom','label':_0x275568['t'](_0x76ffdf(0x3d5))}],'value':_0x38cc8f[_0x76ffdf(0x38a)],'onChange':_0x214c19=>_0x4a8d36({'fontSizeMode':_0x214c19})}),_0x38cc8f[_0x76ffdf(0x38a)]===_0x76ffdf(0x1b1)&&_0x1fa005(_0x499d19,{'className':_0x76ffdf(0x111),'min':0xc,'max':0x78,'value':_0x38cc8f[_0x76ffdf(0x1ae)],'onChange':_0x3f076d=>_0x4a8d36({'fontSize':_0x3f076d??0x28,'fontSizeMode':_0x76ffdf(0x1b1)})})]}),_0x1fa005(ci,{'label':_0x275568['t'](_0x76ffdf(0x20c)),'children':_0x1fa005(qr,{'value':_0x38cc8f['numberFormat'],'options':[{'value':_0x76ffdf(0x20a),'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.general')},{'value':'number','label':_0x275568['t'](_0x76ffdf(0x378))},{'value':_0x76ffdf(0x277),'label':_0x275568['t'](_0x76ffdf(0x260))},{'value':'currency','label':_0x275568['t'](_0x76ffdf(0x193))},{'value':_0x76ffdf(0x196),'label':_0x275568['t'](_0x76ffdf(0x330))},{'value':'compact','label':_0x275568['t'](_0x76ffdf(0x32b))}],'onChange':_0x298b2f=>{let _0x5099b7=oi['find'](_0xb9755e=>_0xb9755e===_0x298b2f);_0x5099b7&&_0x4a8d36({'numberFormat':_0x5099b7});}})}),_0x38cc8f[_0x76ffdf(0x235)]===_0x76ffdf(0x39b)&&_0x1fa005(ci,{'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x1fa005(_0x2647d7,{'value':_0x38cc8f[_0x76ffdf(0x39b)],'onChange':_0x59746a=>_0x4a8d36({'currency':_0x59746a['slice'](0x0,0x3)[_0x76ffdf(0x390)]()})})}),_0x38cc8f[_0x76ffdf(0x235)]!==_0x76ffdf(0x20a)&&_0x1fa005(ci,{'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.decimalPlaces'),'children':_0x1fa005(_0x499d19,{'min':0x0,'max':0x8,'value':_0x38cc8f[_0x76ffdf(0xb9)],'onChange':_0x27b850=>_0x4a8d36({'decimalPlaces':_0x27b850??0x0})})})]})}),_0x58bd19&&_0x1fa005(Yr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1fa005(_0x4689e6,{'tables':_0x153876,'formula':_0x3ae876(_0x9d2f37,_0x153876),'onCancel':()=>_0x4bb974(!0x1),'onSave':_0x9d3bf5=>{const _0x55e86c=_0x76ffdf;let _0x1222e5=_0x27c75e['shapeData']['formulaBinding']??{'formula':''};return _0x580fcb({..._0x27c75e,'shapeData':{..._0x27c75e[_0x55e86c(0x100)],'formulaBinding':{..._0x1222e5,'formula':_0x3949ea(_0x9d3bf5,_0x153876)}}})[_0x55e86c(0x401)](()=>_0x4bb974(!0x1))[_0x55e86c(0x308)](()=>void 0x0);}})})]});}function ci({children:_0x2cb578,label:_0x24c2c5}){const _0x2cb23c=_0x3447f8;return _0x5c238f(_0x2cb23c(0x1e8),{'role':_0x2cb23c(0x21e),'aria-label':_0x24c2c5,'className':_0x2cb23c(0x393),'children':[_0x1fa005('span',{'children':_0x24c2c5}),_0x2cb578]});}function li({disabled:_0x6b18ce,fields:_0x10697d,filter:_0x1ef7d8,onChange:_0x214503}){const _0x2eec48=_0x3447f8;let _0x4224ba=_0x53af8d(_0x5d52a6)[_0x2eec48(0x280)]??null,[_0x27f370,_0x33e5e9]=_0xee90d5(null),_0x21d46a=_0x53af8d(_0x255457),_0x1b3ca0=(_0x1ef7d8==null?void 0x0:_0x1ef7d8[_0x2eec48(0x1da)])??[];if(!_0x1b3ca0[_0x2eec48(0x2c8)])return _0x5c238f('div',{'className':_0x2eec48(0x309),'children':[_0x1fa005(_0x48629d,{'className':'univer-mx-auto\x20univer-size-6'}),_0x1fa005(_0x2eec48(0x40a),{'className':_0x2eec48(0x2d7),'children':_0x21d46a['t'](_0x2eec48(0x253))})]});let _0x1f688f=_0x27f370==null?void 0x0:_0x1b3ca0[_0x27f370],_0x48b03b=_0x10697d[_0x2eec48(0x2c9)](_0x1d86bc=>_0x1d86bc['id']===(_0x1f688f==null?void 0x0:_0x1f688f[_0x2eec48(0x1e5)]));return _0x5c238f('div',{'className':_0x2eec48(0x224),'children':[_0x1b3ca0[_0x2eec48(0x1ee)]((_0x5f0add,_0x3510ae)=>{const _0x456dde=_0x2eec48;var _0x409b4c;return _0x5c238f(_0x10d589,{'disabled':_0x6b18ce,'onClick':()=>_0x33e5e9(_0x3510ae),'children':[_0x1fa005(_0x456dde(0x40a),{'children':((_0x409b4c=_0x10697d['find'](_0x2b71b5=>_0x2b71b5['id']===_0x5f0add[_0x456dde(0x1e5)]))==null?void 0x0:_0x409b4c[_0x456dde(0x2cd)])??_0x5f0add[_0x456dde(0x1e5)]}),_0x1fa005(_0x456dde(0x40a),{'className':_0x456dde(0x242),'children':String(_0x5f0add[_0x456dde(0x366)]??'')})]},_0x5f0add[_0x456dde(0x1e5)]+'-'+_0x3510ae);}),_0x48b03b&&_0x1f688f&&_0x27f370!=null&&_0x4224ba&&_0x46c06e(_0x1fa005(_0x2001af,{'field':_0x48b03b,'value':_0x1f688f[_0x2eec48(0x366)],'onClose':()=>_0x33e5e9(null),'onSave':_0x58ade5=>{_0x214503({'conjunction':(_0x1ef7d8==null?void 0x0:_0x1ef7d8['conjunction'])??_0x3a6b1d['AND'],'conditions':_0x1b3ca0['map']((_0x13fb8c,_0x586b5c)=>_0x586b5c===_0x27f370?{..._0x13fb8c,'operand':_0x58ade5}:_0x13fb8c)}),_0x33e5e9(null);}}),_0x4224ba)]});}function ui({fields:_0x424631,filter:_0x1866e4,onChange:_0x8b7dc,onClear:_0x35d6ed}){const _0x187a61=_0x3447f8;let _0x344c27=_0x53af8d(_0x255457);return _0x5c238f(_0x187a61(0x1e8),{'children':[_0x1fa005(_0x22f272,{'fields':_0x424631,'value':_0x1866e4??{'conjunction':_0x3a6b1d[_0x187a61(0x226)],'conditions':[]},'onChange':_0x8b7dc}),_0x1fa005(_0x10d589,{'onClick':_0x35d6ed,'children':_0x344c27['t'](_0x187a61(0x1e0))})]});}function di({base:_0x497396,chartRuntime:_0x115791,onChange:_0x2f3a48,onClose:_0x10fbf9,onSelectBackgroundImage:_0x10dbdf,onSelectImage:_0x24bd55,unitId:_0x15e86a,widget:_0x22c204}){const _0x390da1=_0x3447f8;let _0x10501a=_0x53af8d(_0x1ec317),_0x20fd26=_0x53af8d(_0x255457),_0x437148=_0x497396[_0x390da1(0x3b6)](),_0x41f5e7=_0x390da1(0x154)in _0x22c204?_0x437148[_0x390da1(0x186)][_0x22c204[_0x390da1(0x154)]]:void 0x0,_0x187ac8=_0x22c204[_0x390da1(0x1b9)]===_0x28a714[_0x390da1(0x3ee)]?_0x41f5e7==null?void 0x0:_0x41f5e7[_0x390da1(0x2dc)][_0x22c204[_0x390da1(0x2e1)]]:void 0x0,_0x26493d=_0x20fd26['t'](vi(_0x22c204)),_0x28cb28=_0x5c238f('aside',{'data-dashboard-inspector':!0x0,'className':_0x390da1(0x2fb),'children':[_0x22c204[_0x390da1(0x1b9)]===_0x28a714[_0x390da1(0x3ee)]&&(_i(_0x187ac8)&&_0x115791?_0x1fa005(ii,{'runtime':_0x115791,'sourceChart':_0x187ac8[_0x390da1(0x2b0)][_0x390da1(0x1eb)],'sourceName':((_0x41f5e7==null?void 0x0:_0x41f5e7['name'])??'')+'\x20/\x20'+_0x187ac8[_0x390da1(0x2cd)],'widget':_0x22c204,'onChange':_0x2f3a48,'onEditData':()=>{const _0x5cf562=_0x390da1;_0x10501a[_0x5cf562(0x2be)](_0xe74b73['id'],{'unitId':_0x15e86a,'tableId':_0x22c204[_0x5cf562(0x154)],'viewId':_0x22c204[_0x5cf562(0x2e1)]})[_0x5cf562(0x308)](()=>void 0x0);}}):_0x1fa005(hi,{'message':_i(_0x187ac8)?_0x20fd26['t'](_0x390da1(0x21c)):_0x20fd26['t'](_0x390da1(0xe2))})),_0x22c204[_0x390da1(0x1b9)]===_0x28a714[_0x390da1(0x1ca)]&&_0x1fa005(si,{'base':_0x497396,'widget':_0x22c204,'onChange':_0x2f3a48,'onSelectBackgroundImage':_0x10dbdf}),_0x22c204[_0x390da1(0x1b9)]===_0x28a714[_0x390da1(0x2a5)]&&_0x1fa005(pi,{'base':_0x497396,'onChange':_0x2f3a48,'widget':_0x22c204}),_0x22c204[_0x390da1(0x1b9)]===_0x28a714[_0x390da1(0x2d4)]&&_0x1fa005(mi,{'onChange':_0x2f3a48,'widget':_0x22c204}),_0x22c204[_0x390da1(0x1b9)]===_0x28a714[_0x390da1(0x341)]&&_0x1fa005(fi,{'onChange':_0x2f3a48,'onSelectImage':_0x24bd55,'widget':_0x22c204})]});return _0x1fa005(_0x14b201,{'title':_0x26493d,'onClose':_0x10fbf9,'children':_0x28cb28});}function fi({onChange:_0x4e7764,onSelectImage:_0x34d5c1,widget:_0x332195}){const _0x8f6372=_0x3447f8;let _0xddca1=_0x53af8d(_0x255457);return _0x5c238f(_0x8f6372(0x1e8),{'className':_0x8f6372(0x175),'children':[_0x5c238f(_0x10d589,{'className':_0x8f6372(0x3af),'onClick':()=>_0x34d5c1()['then'](_0x324eda=>_0x324eda&&_0x4e7764({..._0x332195,'source':_0x324eda['source'],'sourceType':_0x324eda[_0x8f6372(0xd9)],'alt':_0x324eda[_0x8f6372(0x2cd)]}))[_0x8f6372(0x308)](()=>void 0x0),'children':[_0x1fa005(_0x34ddb8,{}),_0xddca1['t'](_0x8f6372(0x3fd))]}),_0x5c238f('label',{'className':_0x8f6372(0x393),'children':[_0x1fa005('span',{'children':_0xddca1['t'](_0x8f6372(0x22e))}),_0x1fa005(_0x1eff91,{'items':[{'value':_0x8f6372(0x285),'label':_0xddca1['t'](_0x8f6372(0x1ad))},{'value':_0x8f6372(0x2af),'label':_0xddca1['t'](_0x8f6372(0x35d))},{'value':_0x8f6372(0x3cf),'label':_0xddca1['t'](_0x8f6372(0x170))}],'value':_0x332195[_0x8f6372(0x2f2)]??'cover','onChange':_0x19c784=>_0x4e7764({..._0x332195,'displayMode':_0x19c784})['catch'](()=>void 0x0)})]})]});}function pi({base:_0xf64990,onChange:_0x3ebf70,widget:_0x237071}){const _0x2b344b=_0x3447f8;let _0x16c42e=_0xf64990[_0x2b344b(0x3b6)]()['tables'][_0x237071[_0x2b344b(0x154)]],_0x258d9c=_0x16c42e==null?void 0x0:_0x16c42e[_0x2b344b(0x286)][_0x2b344b(0x2c9)](_0x47f207=>_0x16c42e[_0x2b344b(0x2dc)][_0x47f207]),_0x514704=_0x258d9c?_0x16c42e==null?void 0x0:_0x16c42e['views'][_0x258d9c]:void 0x0,_0x35408c=_0x16c42e&&_0x514704?_0x295488(_0x16c42e,_0x514704):[];return _0x1fa005(ui,{'fields':_0x35408c,'filter':_0x237071[_0x2b344b(0x14f)],'onChange':_0x142276=>_0x3ebf70({..._0x237071,'filter':_0x142276})[_0x2b344b(0x308)](()=>void 0x0),'onClear':()=>_0x3ebf70({..._0x237071,'filter':null})[_0x2b344b(0x308)](()=>void 0x0)});}function mi({onChange:_0x386cf0,widget:_0x2c0c54}){const _0x3bb71e=_0x3447f8;let _0x581ad2=_0x53af8d(_0x255457),_0x328f19=_0x53af8d(_0x22d94c),_0x1f6fb0=_0x129d28(()=>_0x328f19['currentTheme$'],_0x328f19[_0x3bb71e(0x11c)](),!0x1,[_0x328f19]),_0x1dc230=Br(_0x2c0c54),_0x1d4654=_0x4f0682=>_0x386cf0({..._0x2c0c54,'appearance':{..._0x1dc230,..._0x4f0682}})['catch'](()=>void 0x0);return _0x5c238f(_0x3bb71e(0x1e8),{'className':_0x3bb71e(0x142),'children':[_0x1fa005(_0x539ea5,{'className':_0x3bb71e(0x2f6),'defaultValue':Vr(_0x2c0c54[_0x3bb71e(0x339)]),'rows':0x8,'onBlur':_0xf97e88=>_0x386cf0({..._0x2c0c54,'document':Hr(_0x2c0c54['document'],_0xf97e88['target'][_0x3bb71e(0x2c2)])})['catch'](()=>void 0x0)}),_0x1fa005(_0x2d27c8,{'emptyLabel':_0x581ad2['t'](_0x3bb71e(0x19f)),'label':_0x581ad2['t'](_0x3bb71e(0x19f)),'pickerFallbackValue':_0x1f6fb0[_0x3bb71e(0x3fe)][0x0],'resetLabel':_0x581ad2['t'](_0x3bb71e(0x1e0)),'value':_0x1dc230[_0x3bb71e(0x134)]??null,'onChange':_0x3d2e5c=>_0x1d4654({'backgroundColor':_0x3d2e5c??void 0x0})}),_0x1fa005(_0x2d27c8,{'emptyLabel':_0x581ad2['t'](_0x3bb71e(0x26d)),'label':_0x581ad2['t'](_0x3bb71e(0x26d)),'pickerFallbackValue':_0x1f6fb0[_0x3bb71e(0x3fe)][0x3e8],'resetLabel':_0x581ad2['t'](_0x3bb71e(0x1e0)),'value':_0x1dc230[_0x3bb71e(0xef)]??null,'onChange':_0x240fca=>_0x1d4654({'textColor':_0x240fca??void 0x0})}),_0x1fa005(gi,{'label':_0x581ad2['t'](_0x3bb71e(0x349)),'children':_0x1fa005(_0x1eff91,{'items':[{'value':_0x3bb71e(0x1b4),'label':_0x581ad2['t'](_0x3bb71e(0x165))},{'value':_0x3bb71e(0x1e4),'label':_0x581ad2['t'](_0x3bb71e(0x22d))},{'value':_0x3bb71e(0x314),'label':_0x581ad2['t'](_0x3bb71e(0x130))}],'value':_0x1dc230['alignment'],'onChange':_0x1a325d=>_0x1d4654({'alignment':_0x1a325d})})}),_0x5c238f(gi,{'label':_0x581ad2['t']('bases-dashboard-ui.dashboardInspector.textSize'),'children':[_0x1fa005(_0x1eff91,{'items':[{'value':_0x3bb71e(0x195),'label':_0x581ad2['t'](_0x3bb71e(0x162))},{'value':_0x3bb71e(0x1b1),'label':_0x581ad2['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x1dc230['fontSizeMode'],'onChange':_0x5e14dd=>_0x1d4654({'fontSizeMode':_0x5e14dd})}),_0x1dc230['fontSizeMode']===_0x3bb71e(0x1b1)&&_0x1fa005(_0x499d19,{'className':'univer-mt-2','min':0xa,'max':0x78,'value':_0x1dc230[_0x3bb71e(0x1ae)],'onChange':_0xd8bc5f=>_0x1d4654({'fontSize':_0xd8bc5f??0x12,'fontSizeMode':_0x3bb71e(0x1b1)})})]})]});}function hi({message:_0x3cd0f3}){const _0x78400d=_0x3447f8;return _0x1fa005(_0x78400d(0x1e8),{'className':_0x78400d(0x35e),'children':_0x3cd0f3});}function gi({children:_0x3707de,label:_0x576e60}){const _0x476598=_0x3447f8;return _0x5c238f(_0x476598(0x1e8),{'role':'group','aria-':!0x0,'className':_0x476598(0x393),'children':[_0x1fa005(_0x476598(0x40a),{'children':_0x576e60}),_0x3707de]});}function _i(_0x328a75){const _0x5f1ce9=_0x3447f8;return(_0x328a75==null?void 0x0:_0x328a75['type'])===_0x4da0de[_0x5f1ce9(0x1ec)]&&typeof _0x328a75['config']==_0x5f1ce9(0x2f1)&&_0x328a75[_0x5f1ce9(0x2b0)]!==null&&_0x5f1ce9(0x10d)in _0x328a75[_0x5f1ce9(0x2b0)]&&_0x5f1ce9(0x1eb)in _0x328a75[_0x5f1ce9(0x2b0)];}function vi(_0x5b5dce){const _0x290749=_0x3447f8;switch(_0x5b5dce[_0x290749(0x1b9)]){case _0x28a714[_0x290749(0x3ee)]:return _0x290749(0xe4);case _0x28a714['TableFilter']:return _0x290749(0x253);case _0x28a714['Text']:return _0x290749(0x145);case _0x28a714[_0x290749(0x341)]:return _0x290749(0x233);case _0x28a714['FormulaShape']:return'bases-dashboard-ui.dashboard.formulaShape';}}function yi({onDelete:_0x2d4681,onEdit:_0x1b5484,onMoveUp:_0x87de86,onMoveDown:_0x2d58c6}){const _0x718ce6=_0x3447f8;let [_0x2b0f03,_0x53e9d4]=_0xee90d5(!0x1),_0x3b3bbd=_0x53af8d(_0x255457),_0x34d98a=_0x3b3bbd['t'](_0x718ce6(0x1c6)),_0x285592=_0x3b3bbd['t'](_0x718ce6(0x120)),_0x360151=_0x3b3bbd['t']('bases-dashboard-ui.dashboard.widgetActions'),_0x234f1e=[{'type':_0x718ce6(0x347),'children':_0x5c238f(_0x718ce6(0x40a),{'className':_0x718ce6(0x30e),'children':[_0x1fa005(_0x41a33d,{'className':_0x718ce6(0x129),'aria-hidden':'true'}),_0x1fa005('span',{'children':_0x34d98a})]}),'onSelect':_0x1b5484},..._0x87de86?[{'type':_0x718ce6(0x347),'children':_0x5c238f(_0x718ce6(0x40a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1fa005(_0x40d299,{'className':_0x718ce6(0x129),'aria-hidden':_0x718ce6(0x2d2)}),_0x1fa005(_0x718ce6(0x40a),{'children':_0x3b3bbd['t']('bases-dashboard-ui.mobile.moveUp')})]}),'onSelect':_0x87de86}]:[],..._0x2d58c6?[{'type':'item','children':_0x5c238f('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1fa005(_0x4857ec,{'className':'univer-size-4','aria-hidden':_0x718ce6(0x2d2)}),_0x1fa005(_0x718ce6(0x40a),{'children':_0x3b3bbd['t'](_0x718ce6(0x3b4))})]}),'onSelect':_0x2d58c6}]:[],{'type':_0x718ce6(0x161)},{'type':_0x718ce6(0x347),'variant':_0x718ce6(0x262),'children':_0x5c238f(_0x718ce6(0x40a),{'className':_0x718ce6(0x30e),'children':[_0x1fa005(_0x306b68,{'className':_0x718ce6(0x129),'aria-hidden':'true'}),_0x1fa005(_0x718ce6(0x40a),{'children':_0x285592})]}),'onSelect':_0x2d4681}];return _0x1fa005(_0x86d9a9,{'open':_0x2b0f03,'onOpenChange':_0x53e9d4,'align':_0x718ce6(0x372),'sideOffset':0x4,'items':_0x234f1e['map'](_0x85b65c=>({..._0x85b65c,'className':_0x85b65c[_0x718ce6(0x1b9)]===_0x718ce6(0x347)?_0x718ce6(0x3fa):void 0x0})),'children':_0x1fa005(_0x10d589,{'type':'button','size':_0x718ce6(0x11d),'variant':'text','onPointerDown':_0x1a9442=>_0x1a9442[_0x718ce6(0x16a)](),'onClick':()=>_0x53e9d4(_0x68463a=>!_0x68463a),'title':_0x360151,'aria-label':_0x360151,'className':_0x718ce6(0x3ab),'children':_0x1fa005(_0x46df20,{'className':_0x718ce6(0x129),'aria-hidden':'true'})})});}function bi({dashboardId:_0x5c1bea,presentation:_0x19bd59=!0x1,unitId:_0x579f62}){const _0x4bd748=_0x3447f8;let _0x513cbf=_0x53af8d(_0x49fd9b),_0x6b53b3=_0x53af8d(_0x346c1c);_0x129d28(_0x6b53b3[_0x4bd748(0x388)],0x0);let _0x3d3ccb=_0x53af8d(_0x1ec317),_0x3c12c2=_0x53af8d(_0x230a38),_0x508b69=_0x53af8d(_0x2cceec),_0x539864=_0x53af8d(_0xa15270),_0x30ffe6=_0x53af8d(_0x255457),_0x5bbbf4=_0x53af8d(_0x4e6cdd),_0x4a7438=_0x53af8d(_0x3c357b),[_0x5c075a,_0x3faa61]=_0xee90d5(!0x1),[_0x3d88cc,_0x52189e]=_0xee90d5(),[_0x12d916,_0x36cea6]=_0xee90d5(!0x1),[_0x511140,_0x5858f0]=_0xee90d5(()=>new Map()),_0x3a2cbc=_0x2f6d8e((_0x465e48,_0x36baa1)=>{_0x5858f0(_0x468868=>{let _0x52a8df=new Map(_0x468868);return _0x36baa1?_0x52a8df['set'](_0x465e48,_0x36baa1):_0x52a8df['delete'](_0x465e48),_0x52a8df;});},[]),_0x519c0e=_0x129d28(()=>_0x5bbbf4[_0x4bd748(0x135)][_0x4bd748(0x387)](_0x26242b(()=>_0x5bbbf4['getDashboard'](_0x579f62,_0x5c1bea))),_0x5bbbf4['getDashboard'](_0x579f62,_0x5c1bea),!0x1,[_0x5c1bea,_0x5bbbf4,_0x579f62]),_0x5aa108=_0x539864[_0x4bd748(0x3be)](_0x579f62,_0x6e7cef[_0x4bd748(0x1f7)]),_0x3a1e86=_0x129d28(()=>_0x4a7438[_0x4bd748(0x312)],{'undos':0x0,'redos':0x0},!0x1,[_0x4a7438]),_0x5c526e=gr(_0x579f62,_0x5c1bea);if(_0x543512(()=>{const _0x4342ed=_0x4bd748;_0x539864['setCurrentUnitForType'](_0x579f62),_0x539864[_0x4342ed(0x3a3)](_0x579f62);},[_0x539864,_0x579f62]),!_0x519c0e||!_0x5aa108)return null;let _0x286826={'unitId':_0x579f62,'objectId':_0x4e82aa(_0x5c1bea),'objectType':_0x1349b1[_0x4bd748(0x240)]},_0x33eadc=(_0x26b33d,_0x1f90bb)=>{const _0x41dbde=_0x4bd748;let _0x379def=[..._0x519c0e['widgetOrder']],_0x1282c4=_0x379def[_0x41dbde(0x1cb)](_0x26b33d),_0x243b5a=_0x1282c4+_0x1f90bb;if(!(_0x1282c4<0x0||_0x243b5a<0x0||_0x243b5a>=_0x379def[_0x41dbde(0x2c8)]))return[_0x379def[_0x1282c4],_0x379def[_0x243b5a]]=[_0x379def[_0x243b5a],_0x379def[_0x1282c4]],_0x3d3ccb['executeCommand'](_0x51a517['id'],{'unitId':_0x579f62,'dashboard':{..._0x519c0e,'widgetOrder':_0x379def}});},_0xd4f2c7=_0x42eb92=>_0x3d3ccb[_0x4bd748(0x2be)](_0x49cadf['id'],{'unitId':_0x579f62,'dashboardId':_0x5c1bea,'widget':_0x42eb92})[_0x4bd748(0x308)](()=>void 0x0),_0x331469=(_0x47ae7a,_0x1c60aa,_0x237309)=>{const _0x29f8cd=_0x4bd748;let _0x1d84f5=Math[_0x29f8cd(0x351)](0x0,..._0x519c0e['widgetOrder'][_0x29f8cd(0x30c)](_0x29399f=>{const _0xfa4ce6=_0x29f8cd;var _0x5f4e9c;let _0x360d25=(_0x5f4e9c=_0x519c0e[_0xfa4ce6(0x311)][_0x29399f])==null?void 0x0:_0x5f4e9c['layout'];return _0x360d25?[_0x360d25[_0xfa4ce6(0x2b6)]+_0x360d25[_0xfa4ce6(0x3ef)]]:[];})),_0x232ed4='dashboard-widget-'+_0x2aef82(0x8),_0x1abe25={'column':0x0,'row':_0x1d84f5,'columnSpan':_0x1c60aa,'rowSpan':_0x237309};switch(_0x47ae7a['type']){case _0x28a714[_0x29f8cd(0x3ee)]:return _0xd4f2c7({..._0x47ae7a,'id':_0x232ed4,'layout':_0x1abe25});case _0x28a714[_0x29f8cd(0x2a5)]:return _0xd4f2c7({..._0x47ae7a,'id':_0x232ed4,'layout':_0x1abe25});case _0x28a714[_0x29f8cd(0x2d4)]:return _0xd4f2c7({..._0x47ae7a,'id':_0x232ed4,'layout':_0x1abe25});case _0x28a714[_0x29f8cd(0x341)]:return _0xd4f2c7({..._0x47ae7a,'id':_0x232ed4,'layout':_0x1abe25});case _0x28a714[_0x29f8cd(0x1ca)]:return _0xd4f2c7({..._0x47ae7a,'id':_0x232ed4,'layout':_0x1abe25});}},_0x54c33c=_0x5aa108['getSnapshot'](),_0x5a2bf9=_0x54c33c[_0x4bd748(0xbc)][_0x4bd748(0x30c)](_0x444ed8=>{const _0x5bc8b7=_0x4bd748;let _0xc413d8=_0x54c33c[_0x5bc8b7(0x186)][_0x444ed8];if(!_0xc413d8)return[];let _0x1fb0c6=_0xc413d8[_0x5bc8b7(0x286)][_0x5bc8b7(0x30c)](_0x5a2ba9=>{const _0x502869=_0x5bc8b7;let _0x73ceb0=_0xc413d8[_0x502869(0x2dc)][_0x5a2ba9];return Oi(_0x73ceb0)?[{'type':_0x502869(0x347),'children':_0x73ceb0['name'],'onSelect':()=>_0x331469({'type':_0x28a714[_0x502869(0x3ee)],'tableId':_0x444ed8,'pivotViewId':_0x5a2ba9,'chart':{..._0x73ceb0[_0x502869(0x2b0)][_0x502869(0x1eb)]}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0xc413d8['name'],'options':[..._0x1fb0c6,..._0x1fb0c6['length']?[{'type':'separator'}]:[],{'type':_0x5bc8b7(0x347),'children':_0x30ffe6['t'](_0x5bc8b7(0x253)),'onSelect':()=>_0x331469({'type':_0x28a714[_0x5bc8b7(0x2a5)],'tableId':_0x444ed8,'filter':null},0x6,0x8)}]}];}),_0x2abc9d=[..._0x5a2bf9,..._0x5a2bf9[_0x4bd748(0x2c8)]?[{'type':_0x4bd748(0x161)}]:[],{'type':_0x4bd748(0x347),'children':_0x30ffe6['t'](_0x4bd748(0x145)),'onSelect':()=>_0x331469({'type':_0x28a714[_0x4bd748(0x2d4)],'document':wi()},0x4,0x6)},{'type':_0x4bd748(0x347),'children':_0x30ffe6['t'](_0x4bd748(0x233)),'onSelect':()=>Ti(_0x3c12c2)[_0x4bd748(0x401)](_0x543182=>_0x543182&&_0x331469({'type':_0x28a714['Image'],'source':_0x543182[_0x4bd748(0x2c6)],'sourceType':_0x543182[_0x4bd748(0xd9)],'alt':_0x543182[_0x4bd748(0x2cd)],'displayMode':_0x4bd748(0x285)},0x4,0x6))},{'type':'item','children':_0x30ffe6['t'](_0x4bd748(0x2fd)),'onSelect':()=>{const _0x28c5b6=_0x4bd748;let _0x3a9288=_0x54c33c[_0x28c5b6(0xbc)][_0x28c5b6(0x2c9)](_0x550557=>_0x54c33c['tables'][_0x550557]);_0x3a9288&&_0x331469({'type':_0x28a714[_0x28c5b6(0x1ca)],'tableId':_0x3a9288,'shapeType':_0x337cc8[_0x28c5b6(0x190)],'shapeData':_0x30a9dd(),'description':_0x30ffe6['t']('bases-dashboard-ui.dashboard.formulaShape')},0x4,0x6);}}],_0x5eed35=_0x3d88cc?_0x519c0e[_0x4bd748(0x311)][_0x3d88cc]:void 0x0,_0x365ac9=()=>_0x36cea6(_0x35dea0=>!_0x35dea0),_0x42ccfe=_0x19bd59||_0x12d916,_0xeb9c6f=_0x5c526e&&!_0x42ccfe;return _0x1fa005(Kr,{'children':_0x5c238f(_0x4bd748(0x1e8),{'className':_0x4bd748(0x136)+(_0x12d916?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':_0x4bd748(0x15d))+_0x4bd748(0x33e),'children':[_0x12d916&&_0x1fa005(_0x10d589,{'onClick':()=>_0x36cea6(!0x1),'children':_0x30ffe6['t']('bases-dashboard-ui.dashboardInspector.close')}),!_0x42ccfe&&_0x5c238f(_0x4bd748(0x10f),{'className':_0x4bd748(0x110),'children':[_0x1fa005(_0x4cc2bb,{'className':'univer-size-5\x20univer-text-primary-600'}),_0x1fa005('h2',{'className':_0x4bd748(0x232),'children':_0x519c0e[_0x4bd748(0x2cd)]}),_0x6b53b3['supports'](_0x286826)&&_0x1fa005(_0x10d589,{'variant':_0x4bd748(0x3ca),'disabled':!_0x6b53b3[_0x4bd748(0x3fb)](_0x286826),'aria-label':_0x30ffe6['t'](_0x4bd748(0x27a)),'onClick':()=>{const _0x463086=_0x4bd748;_0x5a6cf8(_0x513cbf,{'target':_0x286826,'name':_0x519c0e[_0x463086(0x2cd)],'commandId':_0x180c8f['id'],'exists':()=>!!_0x5bbbf4[_0x463086(0x2cf)](_0x579f62,_0x5c1bea)});},'children':_0x1fa005(_0x3bf51c,{})}),_0x1fa005(_0x484f3c,{'unitId':_0x579f62}),_0x1fa005(_0x10d589,{'type':_0x4bd748(0x3b9),'size':_0x4bd748(0x11d),'variant':'text','aria-label':_0x30ffe6['t'](_0x4bd748(0x2b8)),'disabled':!_0x5c526e||_0x3a1e86['undos']===0x0,'onClick':()=>_0x3d3ccb['executeCommand'](_0xbacc2f['id'])[_0x4bd748(0x308)](()=>void 0x0),'children':_0x1fa005(_0x32ef86,{})}),_0x1fa005(_0x10d589,{'type':_0x4bd748(0x3b9),'size':_0x4bd748(0x11d),'variant':_0x4bd748(0x3ca),'aria-label':_0x30ffe6['t'](_0x4bd748(0x229)),'disabled':!_0x5c526e||_0x3a1e86[_0x4bd748(0x2b5)]===0x0,'onClick':()=>_0x3d3ccb[_0x4bd748(0x2be)](_0x1df103['id'])[_0x4bd748(0x308)](()=>void 0x0),'children':_0x1fa005(_0x40da8b,{})}),_0x1fa005(_0x10d589,{'type':_0x4bd748(0x3b9),'size':'small','variant':_0x4bd748(0x3ca),'aria-label':_0x30ffe6['t']('bases-dashboard-ui.dashboard.fullScreen'),'onClick':_0x365ac9,'children':_0x1fa005(_0x2e21be,{})}),_0x1fa005(Jr,{'items':_0x2abc9d,'children':_0x5c238f(_0x10d589,{'variant':_0x4bd748(0x125),'disabled':!_0x5c526e,'children':[_0x1fa005(_0x34ddb8,{}),_0x30ffe6['t'](_0x4bd748(0x278))]})})]}),_0x5c238f(_0x4bd748(0x1e8),{'className':_0x4bd748(0x215),'children':[_0x1fa005(_0x4bd748(0x1e8),{'className':_0x4bd748(0x26f),'children':_0x1fa005(Wr,{'dashboard':_0x519c0e,'editable':_0xeb9c6f,'widgetLabel':_0x545ad9=>_0x30ffe6['t'](Di(_0x545ad9[_0x4bd748(0x1b9)])),'selectedWidgetId':_0xeb9c6f?_0x3d88cc:void 0x0,'onSelectWidget':_0xeb9c6f?_0x2d3692=>{_0x52189e(_0x2d3692),_0x2d3692||_0x3faa61(!0x1);}:void 0x0,'renderWidget':_0x4484c9=>_0x1fa005(xi,{'base':_0x5aa108,'dashboard':_0x519c0e,'unitId':_0x579f62,'widget':_0x4484c9,'onChange':_0xd4f2c7,'onChartRuntimeChange':_0x3a2cbc}),'renderWidgetActions':_0x142ef1=>_0x1fa005(yi,{'onMoveUp':_0x519c0e[_0x4bd748(0x2a6)][_0x4bd748(0x1cb)](_0x142ef1['id'])>0x0?()=>_0x33eadc(_0x142ef1['id'],-0x1):void 0x0,'onMoveDown':_0x519c0e[_0x4bd748(0x2a6)][_0x4bd748(0x1cb)](_0x142ef1['id'])<_0x519c0e['widgetOrder'][_0x4bd748(0x2c8)]-0x1?()=>_0x33eadc(_0x142ef1['id'],0x1):void 0x0,'onEdit':()=>{_0x52189e(_0x142ef1['id']),_0x3faa61(!0x0);},'onDelete':()=>{const _0x6e141=_0x4bd748;_0x3d88cc===_0x142ef1['id']&&(_0x52189e(void 0x0),_0x3faa61(!0x1)),_0x3d3ccb[_0x6e141(0x2be)](_0x25ddde['id'],{'unitId':_0x579f62,'dashboardId':_0x5c1bea,'widgetId':_0x142ef1['id']})[_0x6e141(0x308)](()=>void 0x0);}})})}),_0xeb9c6f&&_0x5c075a&&_0x5eed35&&_0x1fa005(di,{'base':_0x5aa108,'chartRuntime':_0x511140[_0x4bd748(0x15b)](_0x5eed35['id']),'unitId':_0x579f62,'widget':_0x5eed35,'onChange':_0xd4f2c7,'onClose':()=>_0x3faa61(!0x1),'onSelectBackgroundImage':()=>Ei(_0x508b69),'onSelectImage':()=>Ti(_0x3c12c2)})]})]})});}function xi({base:_0x2b77be,dashboard:_0x54bbb3,onChange:_0x5c1f03,onChartRuntimeChange:_0x46e338,unitId:_0x3f450f,widget:_0x4f7937}){const _0x325eb8=_0x3447f8;let _0x3ff80b=_0x125177(()=>_0x54bbb3[_0x325eb8(0x2a6)][_0x325eb8(0x30c)](_0x3695e2=>{const _0x2ca257=_0x325eb8;let _0x3801ae=_0x54bbb3[_0x2ca257(0x311)][_0x3695e2];return(_0x3801ae==null?void 0x0:_0x3801ae[_0x2ca257(0x1b9)])===_0x28a714[_0x2ca257(0x2a5)]&&_0x3801ae[_0x2ca257(0x154)]===('tableId'in _0x4f7937?_0x4f7937[_0x2ca257(0x154)]:'')&&_0x3801ae[_0x2ca257(0x14f)]?[_0x3801ae[_0x2ca257(0x14f)]]:[];}),[_0x54bbb3,_0x4f7937]);switch(_0x4f7937[_0x325eb8(0x1b9)]){case _0x28a714[_0x325eb8(0x3ee)]:return _0x1fa005(Lr,{'filters':_0x3ff80b,'unitId':_0x3f450f,'widget':_0x4f7937,'onRuntimeChange':_0x46e338});case _0x28a714[_0x325eb8(0x2a5)]:return _0x1fa005(li,{'fields':Si(_0x2b77be,_0x4f7937[_0x325eb8(0x154)]),'filter':_0x4f7937[_0x325eb8(0x14f)],'onChange':_0x254c31=>_0x5c1f03({..._0x4f7937,'filter':_0x254c31})[_0x325eb8(0x308)](()=>void 0x0)});case _0x28a714[_0x325eb8(0x2d4)]:return _0x1fa005(Ur,{'widget':_0x4f7937});case _0x28a714[_0x325eb8(0x341)]:return _0x1fa005(Ci,{'widget':_0x4f7937});case _0x28a714[_0x325eb8(0x1ca)]:return _0x1fa005(Dr,{'dashboardId':_0x54bbb3['id'],'unitId':_0x3f450f,'widget':_0x4f7937});}}function Si(_0x38c74e,_0x1a0d3f){const _0x32c0fb=_0x3447f8;let _0x138038=_0x38c74e['getSnapshot']()[_0x32c0fb(0x186)][_0x1a0d3f],_0x183de8=_0x138038==null?void 0x0:_0x138038[_0x32c0fb(0x286)][_0x32c0fb(0x2c9)](_0x428c7a=>_0x138038[_0x32c0fb(0x2dc)][_0x428c7a]),_0x2ca3fb=_0x183de8?_0x138038==null?void 0x0:_0x138038[_0x32c0fb(0x2dc)][_0x183de8]:void 0x0;return _0x138038&&_0x2ca3fb?_0x295488(_0x138038,_0x2ca3fb):[];}function Ci({widget:_0x43f9ca}){const _0x582a19=_0x3447f8;let _0x2f1190=_0x53af8d(_0x230a38),[_0x564e9c,_0x198667]=_0xee90d5(_0x43f9ca[_0x582a19(0xd9)]===_0x188e10[_0x582a19(0x234)]?'':_0x43f9ca[_0x582a19(0x2c6)]);return _0x543512(()=>{const _0xaecc5e=_0x582a19;let _0x539fd4=!0x0;return _0x2f1190[_0xaecc5e(0x1c5)](_0x43f9ca[_0xaecc5e(0x2c6)],_0x43f9ca[_0xaecc5e(0xd9)])[_0xaecc5e(0x401)](_0x284757=>{_0x539fd4&&_0x198667(_0x284757);})[_0xaecc5e(0x308)](()=>void 0x0),()=>{_0x539fd4=!0x1;};},[_0x2f1190,_0x43f9ca[_0x582a19(0x2c6)],_0x43f9ca[_0x582a19(0xd9)]]),_0x564e9c?_0x1fa005(_0x582a19(0x1e8),{'role':_0x43f9ca[_0x582a19(0x3ed)]?'img':void 0x0,'aria-label':_0x43f9ca[_0x582a19(0x3ed)]||void 0x0,'data-dashboard-image':_0x43f9ca['id'],'className':'univer-h-full\x20univer-w-full\x20univer-bg-transparent','style':vr(_0x564e9c,_0x43f9ca[_0x582a19(0x2f2)])}):null;}function wi(){const _0x178168=_0x3447f8;let _0x44b1a4=_0x156ce9(new Set());return{'id':_0x178168(0x119)+_0x2aef82(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x44b1a4}]},'documentStyle':{}};}function Ti(_0xe1301){return new Promise(_0xeeea13=>{const _0x499658=_0x1596;let _0x545268=document[_0x499658(0xde)](_0x499658(0x1fb));_0x545268[_0x499658(0x1b9)]=_0x499658(0x15c),_0x545268[_0x499658(0x375)]=_0x499658(0x3b3),_0x545268[_0x499658(0x213)]('change',()=>{const _0x3401bf=_0x499658;var _0x2150c9;let _0x57ed34=(_0x2150c9=_0x545268['files'])==null?void 0x0:_0x2150c9[0x0];if(!_0x57ed34){_0xeeea13(null);return;}_0xe1301[_0x3401bf(0x106)](_0x57ed34)[_0x3401bf(0x401)](_0x2dcaac=>{const _0x30abe7=_0x3401bf;if(!_0x2dcaac[_0x30abe7(0x2c6)]||_0x2dcaac[_0x30abe7(0xd9)]===void 0x0){_0xeeea13(null);return;}_0xeeea13({'name':_0x2dcaac['name'],'source':_0x2dcaac[_0x30abe7(0x2c6)],'sourceType':_0x2dcaac[_0x30abe7(0xd9)]});})[_0x3401bf(0x308)](()=>_0xeeea13(null));},{'once':!0x0}),_0x545268[_0x499658(0x3f4)]();});}function Ei(_0x15a40a){return new Promise(_0x460777=>{const _0x6dfa62=_0x1596;let _0x316484=document['createElement'](_0x6dfa62(0x1fb));_0x316484['type']=_0x6dfa62(0x15c),_0x316484[_0x6dfa62(0x375)]=_0x6dfa62(0x3b3),_0x316484[_0x6dfa62(0x213)](_0x6dfa62(0xe3),()=>{const _0xf924d9=_0x6dfa62;var _0x113bd2;let _0x47a316=(_0x113bd2=_0x316484[_0xf924d9(0xf8)])==null?void 0x0:_0x113bd2[0x0];if(!_0x47a316){_0x460777(null);return;}_0x15a40a[_0xf924d9(0xc7)](_0x47a316)['then'](_0x4796a9=>{const _0x56f630=_0xf924d9;if(!(_0x4796a9!=null&&_0x4796a9[_0x56f630(0x2c6)])){_0x460777(null);return;}if(_0x4796a9[_0x56f630(0x1c1)]){let _0x2dc6c9=new Image();_0x2dc6c9[_0x56f630(0xba)]=_0x4796a9[_0x56f630(0x1c1)],_0x15a40a['addImageSourceCache'](_0x4796a9[_0x56f630(0x2c6)],_0x4796a9[_0x56f630(0x3d9)],_0x2dc6c9);}_0x460777({'source':_0x4796a9['source'],'sourceType':_0x4796a9[_0x56f630(0x3d9)]});})[_0xf924d9(0x308)](()=>_0x460777(null));},{'once':!0x0}),_0x316484[_0x6dfa62(0x3f4)]();});}function Di(_0x160027){const _0x296bd1=_0x3447f8;switch(_0x160027){case _0x28a714[_0x296bd1(0x3ee)]:return _0x296bd1(0xe4);case _0x28a714[_0x296bd1(0x2a5)]:return _0x296bd1(0x253);case _0x28a714[_0x296bd1(0x2d4)]:return _0x296bd1(0x145);case _0x28a714[_0x296bd1(0x341)]:return _0x296bd1(0x233);case _0x28a714[_0x296bd1(0x1ca)]:return _0x296bd1(0x2fd);}}function Oi(_0x1c4efe){const _0x2f44fc=_0x3447f8;return(_0x1c4efe==null?void 0x0:_0x1c4efe['type'])===_0x4da0de[_0x2f44fc(0x1ec)]&&typeof _0x1c4efe[_0x2f44fc(0x2b0)]==_0x2f44fc(0x2f1)&&_0x1c4efe[_0x2f44fc(0x2b0)]!==null&&'pivot'in _0x1c4efe['config']&&_0x2f44fc(0x1eb)in _0x1c4efe[_0x2f44fc(0x2b0)];}function ki({pivot:_0x2ef114,view:_0x196128}){const _0x3f789d=_0x3447f8;let _0x58e367=_0x53af8d(_0x255457),_0x1d3b6d=_0x125177(()=>Ai(_0x196128,_0x2ef114,_0x58e367['t'](_0x3f789d(0x210))),[_0x58e367,_0x2ef114,_0x196128]);return _0x5c238f(_0x3f789d(0x1e8),{'className':_0x3f789d(0x10a),'children':[_0x1d3b6d[_0x3f789d(0x18f)][_0x3f789d(0x2c8)]>0x0&&_0x1fa005('table',{'className':'univer-mb-2\x20univer-border-collapse\x20univer-text-sm','children':_0x1fa005(_0x3f789d(0x3c1),{'children':ji(_0x1d3b6d[_0x3f789d(0x18f)])})}),_0x5c238f('table',{'className':_0x3f789d(0x24b),'children':[_0x1d3b6d['headerRowCount']>0x0&&_0x1fa005('thead',{'className':_0x3f789d(0x365),'children':ji(_0x1d3b6d[_0x3f789d(0x27b)][_0x3f789d(0x121)](0x0,_0x1d3b6d[_0x3f789d(0x376)]))}),_0x1fa005('tbody',{'children':ji(_0x1d3b6d[_0x3f789d(0x27b)][_0x3f789d(0x121)](_0x1d3b6d[_0x3f789d(0x376)]))})]})]});}function Ai(_0x229c95,_0x490a12,_0x31da61){const _0x4eadc5=_0x3447f8;let _0x36755f=_0x229c95['colView'][_0x4eadc5(0x36d)],_0x580222=_0x229c95[_0x4eadc5(0x183)][_0x4eadc5(0x38e)],_0x5cdfea=_0x229c95['dataView'][_0x4eadc5(0x36d)],_0x4021e7=_0x229c95[_0x4eadc5(0x340)]['colCount'],_0x4e6337=Array[_0x4eadc5(0x3a1)]({'length':_0x36755f+_0x5cdfea},(_0x15ef65,_0x79ca80)=>Array[_0x4eadc5(0x3a1)]({'length':_0x580222+_0x4021e7},(_0x31a3c8,_0x5c9051)=>{const _0x3f4ce0=_0x4eadc5;var _0x207abe,_0x4e4961;if(_0x79ca80<_0x36755f&&_0x5c9051<_0x580222)return Mi(_0x229c95[_0x3f4ce0(0x1d5)],_0x79ca80,_0x5c9051,void 0x0,_0x31da61,!0x0,!0x1,_0x3f4ce0(0x128)+_0x79ca80+':'+_0x5c9051);if(_0x79ca80<_0x36755f){var _0x327568;let _0x2a1796=_0x5c9051-_0x580222,_0x52feb9=(_0x327568=_0x229c95['colView'][_0x3f4ce0(0x28d)][_0x79ca80])==null?void 0x0:_0x327568[_0x3f4ce0(0x1c2)];return Mi(_0x229c95['colView'],_0x79ca80,_0x2a1796,_0x52feb9?_0x229c95[_0x3f4ce0(0x3d1)][_0x52feb9]:void 0x0,_0x31da61,!0x0,Fi(_0x229c95[_0x3f4ce0(0x361)]['info'][_0x2a1796]),'column:'+_0x79ca80+':'+_0x2a1796);}if(_0x5c9051<_0x580222){var _0x13fb73;let _0x14fb71=_0x79ca80-_0x36755f,_0x29c1ae=(_0x13fb73=_0x229c95[_0x3f4ce0(0x183)]['headerMap'][_0x5c9051])==null?void 0x0:_0x13fb73[_0x3f4ce0(0x1c2)];return Mi(_0x229c95[_0x3f4ce0(0x183)],_0x14fb71,_0x5c9051,_0x29c1ae?_0x229c95['formatMap'][_0x29c1ae]:void 0x0,_0x31da61,!0x0,Fi(_0x229c95['rowView'][_0x3f4ce0(0x34b)][_0x14fb71]),'row:'+_0x14fb71+':'+_0x5c9051);}let _0x2fa974=_0x79ca80-_0x36755f,_0x2abddb=_0x5c9051-_0x580222,_0x268aa3=Math[_0x3f4ce0(0x351)](((_0x207abe=_0x229c95['rowView'][_0x3f4ce0(0x34b)][_0x2fa974])==null?void 0x0:_0x207abe[_0x3f4ce0(0x369)])??-0x1,((_0x4e4961=_0x229c95[_0x3f4ce0(0x361)][_0x3f4ce0(0x34b)][_0x2abddb])==null?void 0x0:_0x4e4961[_0x3f4ce0(0x369)])??-0x1),_0x1b3027=_0x490a12[_0x3f4ce0(0x2ef)][_0x268aa3<0x0?0x0:_0x268aa3];return Mi(_0x229c95['dataView'],_0x2fa974,_0x2abddb,_0x1b3027?_0x229c95[_0x3f4ce0(0x3d1)][_0x1b3027]:void 0x0,_0x31da61,!0x1,Fi(_0x229c95[_0x3f4ce0(0x183)][_0x3f4ce0(0x34b)][_0x2fa974])||Fi(_0x229c95['colView']['info'][_0x2abddb]),'data:'+_0x2fa974+':'+_0x2abddb);}));return{'headerColumnCount':_0x580222,'headerRowCount':_0x36755f,'pageRows':_0x229c95['pageView'][_0x4eadc5(0x35f)]<0x0||_0x229c95['pageView']['lastCol']<0x0?[]:Array[_0x4eadc5(0x3a1)]({'length':_0x229c95[_0x4eadc5(0x342)][_0x4eadc5(0x35f)]+0x1},(_0x59f62e,_0x14402b)=>Array[_0x4eadc5(0x3a1)]({'length':_0x229c95['pageView'][_0x4eadc5(0x16d)]+0x1},(_0x51c7ce,_0x42cb87)=>Mi(_0x229c95['pageView'],_0x14402b,_0x42cb87,void 0x0,_0x31da61,!0x0,!0x1,_0x4eadc5(0x3e3)+_0x14402b+':'+_0x42cb87))),'rows':_0x4e6337};}function ji(_0x1bc8f6){const _0x3b919f=_0x3447f8;return _0x1bc8f6[_0x3b919f(0x1ee)](_0x5e53f4=>{const _0x20e06f=_0x3b919f;var _0x2648a1;return _0x1fa005('tr',{'children':_0x5e53f4[_0x20e06f(0x1ee)](_0x2b5632=>{const _0x2b19b1=_0x20e06f;let _0x1e8aec=_0x2b5632[_0x2b19b1(0x26c)]?'th':'td';return _0x1fa005(_0x1e8aec,{'className':_0x2b19b1(0x204)+(_0x2b5632['isTotal']?_0x2b19b1(0x324):'')+_0x2b19b1(0x212)+(_0x2b5632[_0x2b19b1(0x26c)]?'':_0x2b19b1(0x377))+'\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','children':_0x2b5632['value']},_0x2b5632['key']);})},(_0x2648a1=_0x5e53f4[0x0])==null?void 0x0:_0x2648a1[_0x20e06f(0x2fc)]);});}function Mi(_0x2d77cd,_0x1ec2fa,_0x42b1da,_0x52a70c,_0x2bf0c9,_0x24b3e1,_0xc07ab4,_0x173179){const _0x1ffbc9=_0x3447f8;var _0x179d57;let _0x2bb0d5=(_0x179d57=_0x2d77cd[_0x1ffbc9(0x279)][_0x1ec2fa])==null?void 0x0:_0x179d57[_0x42b1da],_0x36faaf=_0x2bb0d5==null?void 0x0:_0x2bb0d5['s'],_0x23ddd0=_0xc07ab4||_0x36faaf===_0x534fec[_0x1ffbc9(0x38f)]||_0x36faaf===_0x534fec['MultipleGrandTotal'];return{'isHeader':_0x24b3e1,'isTotal':_0x23ddd0||_0x36faaf===_0x534fec['Subtotal'],'key':_0x173179,'style':_0x36faaf,'value':_0x23ddd0&&Pi(_0x2bb0d5==null?void 0x0:_0x2bb0d5['v'])?_0x2bf0c9:Ni(_0x2bb0d5,_0x52a70c)};}function Ni(_0x648c0,_0x4fdd72){const _0x57194d=_0x3447f8;let _0xac456d=_0x648c0==null?void 0x0:_0x648c0['v'];return _0x958be8(_0xac456d)?String(_0xac456d[_0x57194d(0x2c2)]??_0xac456d[_0x57194d(0x256)]??''):_0x20d60c(_0xac456d)?'#'+_0xac456d['errorType']:_0x4fdd72&&typeof _0xac456d==_0x57194d(0x30d)?_0x254bab[_0x57194d(0x11b)](_0x4fdd72,_0xac456d):String(_0xac456d??'');}function Pi(_0x159aff){return _0x159aff===void 0x0||_0x159aff==='';}function Fi(_0xdc7b97){const _0x6faf02=_0x3447f8;return!!(_0xdc7b97!=null&&_0xdc7b97[_0x6faf02(0x2c7)]||_0xdc7b97!=null&&_0xdc7b97['isTopTotal']||_0xdc7b97!=null&&_0xdc7b97[_0x6faf02(0x13c)]||(_0xdc7b97==null?void 0x0:_0xdc7b97['rowType'])===_0x6faf02(0x177));}const Ii=[{'area':_0x23447d[_0x3447f8(0x251)],'key':_0x3447f8(0x2b1),'label':_0x3447f8(0xca)},{'area':_0x23447d[_0x3447f8(0x29b)],'key':'columnFields','label':'bases-dashboard-ui.pivot.columns'},{'area':_0x23447d['Row'],'key':_0x3447f8(0xdf),'label':'bases-dashboard-ui.pivot.rows'},{'area':_0x23447d['Value'],'key':_0x3447f8(0x2ef),'label':'bases-dashboard-ui.pivot.values'}],Li=[{'value':_0x1f46e1['sum'],'localeKey':_0x3447f8(0x122)},{'value':_0x1f46e1[_0x3447f8(0x203)],'localeKey':_0x3447f8(0x1d8)},{'value':_0x1f46e1['countNums'],'localeKey':_0x3447f8(0x3dd)},{'value':_0x1f46e1['average'],'localeKey':_0x3447f8(0x3cc)},{'value':_0x1f46e1[_0x3447f8(0x351)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':_0x1f46e1[_0x3447f8(0x379)],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x1f46e1[_0x3447f8(0x30b)],'localeKey':_0x3447f8(0x38d)},{'value':_0x1f46e1[_0x3447f8(0x1f4)],'localeKey':'bases-dashboard-ui.pivot.stdDev'},{'value':_0x1f46e1[_0x3447f8(0x352)],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x1f46e1[_0x3447f8(0xd3)],'localeKey':_0x3447f8(0x3ec)},{'value':_0x1f46e1[_0x3447f8(0x33b)],'localeKey':_0x3447f8(0x391)}];function Ri(_0xdab8fa){const _0x4a0b72=_0x3447f8;let {config:_0x5bf981,onChange:_0x418a18,table:_0x526d30}=_0xdab8fa,_0x41b567=_0x53af8d(_0x255457),[_0x2f6165,_0x384ec7]=_0xee90d5('fields'),[_0x224a45,_0x1456de]=_0xee90d5(''),[_0x3817ab,_0x46bff3]=_0xee90d5(null),[_0x2dbfe6,_0x38d11f]=_0xee90d5(null),[_0x5e9cc3,_0x1106f9]=_0xee90d5(null),[_0x58153e,_0x2480f1]=_0xee90d5(null),_0xe9736=_0x4523d4(null),_0x5e4650=_0x125177(()=>_0x526d30[_0x4a0b72(0x24d)][_0x4a0b72(0x30c)](_0x598655=>{const _0x594a51=_0x4a0b72;let _0x287646=_0x526d30[_0x594a51(0x2ee)][_0x598655];return _0x287646&&_0x287646[_0x594a51(0x2ac)]!==!0x0&&_0x287646[_0x594a51(0x1b9)]!==_0x2940a8[_0x594a51(0x397)]?[_0x287646]:[];})[_0x4a0b72(0x14f)](_0x34c554=>_0x34c554[_0x4a0b72(0x2cd)][_0x4a0b72(0xd7)]()[_0x4a0b72(0x2f8)](_0x224a45[_0x4a0b72(0x15f)]()[_0x4a0b72(0xd7)]())),[_0x224a45,_0x526d30]),_0xc71e6e=_0x2a8e75=>{const _0x4b3672=_0x4a0b72;let _0x15bd03=_0x57279f(_0x526d30,_0x5bf981[_0x4b3672(0x10d)]);try{_0x2a8e75(_0x15bd03),_0x418a18({'pivot':_0x15bd03[_0x4b3672(0x24e)]()});}finally{_0x15bd03[_0x4b3672(0x2fe)]();}},_0x1f4f20=(_0x36b665,_0x19b27f)=>{_0x3817ab&&(_0xc71e6e(_0x476cf8=>{const _0x313d5f=_0x1596;if(_0x3817ab['kind']==='field'){let _0x32b3ac=_0x476cf8['getFieldPositionInfoById'](_0x3817ab['id']),_0x3f7c1a=_0x32b3ac['area']===_0x36b665&&_0x32b3ac[_0x313d5f(0xeb)]<_0x19b27f?_0x19b27f-0x1:_0x19b27f;_0x476cf8[_0x313d5f(0x23b)](_0x3817ab['id'],_0x36b665,_0x3f7c1a);return;}Ki(_0x476cf8,_0x3817ab['id'],_0x36b665,_0x19b27f);}),_0x46bff3(null),_0x38d11f(null));};return _0x5c238f(_0x4a0b72(0x1e8),{'className':_0x4a0b72(0x1d7),'children':[_0x1fa005(_0x283559,{'ariaLabel':_0x41b567['t'](_0x4a0b72(0x1b7)),'className':_0x4a0b72(0x302),'items':[{'label':_0x41b567['t'](_0x4a0b72(0x2e9)),'panelId':'base-pivot-fields','value':'fields'},{'label':_0x41b567['t']('bases-dashboard-ui.pivot.options'),'panelId':'base-pivot-options','value':_0x4a0b72(0x326)}],'value':_0x2f6165,'onChange':_0x384ec7}),_0x1fa005(_0x4a0b72(0x1e8),{'ref':_0xe9736,'className':_0x54dbd2('univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3',_0x2bbb9f),'onDragOver':_0x5d1f05=>{const _0x1130f9=_0x4a0b72;let _0x5922dd=_0xe9736[_0x1130f9(0x23e)];if(!_0x5922dd)return;let _0x3cb834=_0x5922dd[_0x1130f9(0x263)]();_0x5d1f05[_0x1130f9(0x117)]<_0x3cb834[_0x1130f9(0x348)]+0x30?_0x5922dd[_0x1130f9(0x406)]-=0x10:_0x5d1f05[_0x1130f9(0x117)]>_0x3cb834[_0x1130f9(0x199)]-0x30&&(_0x5922dd['scrollTop']+=0x10);},'children':_0x2f6165==='options'?_0x1fa005(Gi,{'config':_0x5bf981,'commit':_0xc71e6e}):_0x5c238f(_0x4a0b72(0x1e8),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x5c238f(_0x4a0b72(0x1e8),{'children':[_0x1fa005(_0x4a0b72(0x1e8),{'className':_0x4a0b72(0x3f7),'children':_0x41b567['t']('bases-dashboard-ui.pivot.sourceFields')}),_0x1fa005(_0x2647d7,{'allowClear':!0x0,'slot':_0x1fa005(_0x10f455,{}),'value':_0x224a45,'placeholder':_0x41b567['t'](_0x4a0b72(0x2d9)),'onChange':_0x1456de}),_0x1fa005(_0x4a0b72(0x1e8),{'className':_0x4a0b72(0xdd),'children':_0x5e4650[_0x4a0b72(0x1ee)](_0x489a61=>_0x1fa005(zi,{'config':_0x5bf981,'field':_0x489a61,'onAdd':_0x35bb07=>_0xc71e6e(_0x524841=>Ki(_0x524841,_0x489a61['id'],_0x35bb07,_0x524841[_0x4a0b72(0x11f)](_0x35bb07))),'onCheckedChange':_0x34e219=>_0xc71e6e(_0x51a8a5=>{const _0x1b823f=_0x4a0b72;let _0x3ef920=_0x51a8a5[_0x1b823f(0x1b5)](_0x489a61['id']);if(!_0x34e219){_0x3ef920[_0x1b823f(0x32f)](_0x51e68e=>_0x51a8a5[_0x1b823f(0x1bf)](_0x51e68e[_0x1b823f(0x2bd)]()));return;}if(_0x3ef920[_0x1b823f(0x2c8)]===0x0){let _0x359fd5=Ji(_0x489a61)?_0x23447d[_0x1b823f(0x1b0)]:_0x23447d[_0x1b823f(0x20e)];_0x51a8a5[_0x1b823f(0x29f)](_0x489a61['id'],_0x359fd5);}}),'onDragStart':()=>_0x46bff3({'kind':_0x4a0b72(0x2c6),'id':_0x489a61['id']})},_0x489a61['id']))})]}),_0x1fa005('div',{'className':_0x4a0b72(0x223),'children':Ii[_0x4a0b72(0x1ee)](_0x1ba2a7=>_0x1fa005(Vi,{'area':_0x1ba2a7[_0x4a0b72(0x34d)],'dropTarget':_0x2dbfe6,'fields':_0x5bf981['pivot'][_0x1ba2a7[_0x4a0b72(0x2fc)]],'label':_0x41b567['t'](_0x1ba2a7['label']),'snapshot':_0x5bf981[_0x4a0b72(0x10d)],'onDragEnd':()=>{_0x46bff3(null),_0x38d11f(null);},'onDragStart':_0x369eee=>_0x46bff3({'kind':_0x4a0b72(0x101),'id':_0x369eee,'area':_0x1ba2a7[_0x4a0b72(0x34d)]}),'onDragOver':_0x18bdff=>_0x38d11f({'area':_0x1ba2a7[_0x4a0b72(0x34d)],'index':_0x18bdff}),'onDrop':_0x1dede5=>_0x1f4f20(_0x1ba2a7[_0x4a0b72(0x34d)],_0x1dede5),'onFilter':_0x1106f9,'onMove':(_0x54e526,_0x427411,_0x52c596)=>_0xc71e6e(_0x3d540f=>_0x3d540f['updateFieldPosition'](_0x54e526,_0x427411,_0x52c596)),'onRemove':_0x3f5fd3=>_0xc71e6e(_0x32bc96=>_0x32bc96['removeField'](_0x3f5fd3)),'onSettings':_0x2480f1},_0x1ba2a7[_0x4a0b72(0x34d)]))}),_0x5e9cc3&&_0x1fa005(Ui,{'fieldId':_0x5e9cc3,'snapshot':_0x5bf981[_0x4a0b72(0x10d)],'table':_0x526d30,'onCancel':()=>_0x1106f9(null),'onCommit':(_0x25b1b4,_0x180ec0)=>{_0xc71e6e(_0x1145de=>{const _0x30aa01=_0x1596;let _0x49b3de=_0x1145de['getDataFieldByTableId'](_0x5e9cc3),_0x347905=(_0x49b3de==null?void 0x0:_0x49b3de[_0x30aa01(0x26b)])??[];_0x1145de[_0x30aa01(0x29a)](_0x5e9cc3,{'type':_0x5a8717[_0x30aa01(0x17c)],'list':_0x25b1b4,'isAll':_0x25b1b4[_0x30aa01(0x2c8)]===_0x347905[_0x30aa01(0x2c8)]}),_0x1145de[_0x30aa01(0x271)](_0x5e9cc3,_0x180ec0===void 0x0?void 0x0:{'type':_0x180ec0});}),_0x1106f9(null);}},_0x5e9cc3),_0x58153e&&_0x1fa005(Wi,{'field':_0x5bf981[_0x4a0b72(0x10d)][_0x4a0b72(0x181)][_0x58153e],'onCancel':()=>_0x2480f1(null),'onCommit':(_0x36c373,_0x38a79c,_0x1b83af)=>{_0xc71e6e(_0x3522b=>{const _0x4397f3=_0x1596;_0x3522b[_0x4397f3(0x13f)](_0x58153e,_0x36c373),_0x3522b[_0x4397f3(0xd1)](_0x58153e,_0x38a79c),_0x3522b[_0x4397f3(0xe6)](_0x58153e,_0x1b83af||void 0x0);}),_0x2480f1(null);}},_0x58153e)]})})]});}function zi(_0xb69bb3){const _0x101fae=_0x3447f8;let {config:_0x2689ae,field:_0x42d3b3,onAdd:_0x4ecf64,onCheckedChange:_0x2bd890,onDragStart:_0x2b2781}=_0xb69bb3,_0x17fadc=_0x53af8d(_0x255457),_0x110c04=[...Object[_0x101fae(0xfd)](_0x2689ae[_0x101fae(0x10d)]['dimension']),...Object['values'](_0x2689ae[_0x101fae(0x10d)][_0x101fae(0x181)])]['some'](_0x55bca4=>_0x55bca4['dataFieldId']===_0x42d3b3['id']),_0x1bc008=Ii[_0x101fae(0x1ee)](_0x4c1332=>({'type':'item','children':_0x17fadc['t'](Yi(_0x4c1332[_0x101fae(0x34d)])),'onSelect':()=>_0x4ecf64(_0x4c1332[_0x101fae(0x34d)])}));return _0x5c238f(_0x101fae(0x1e8),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x101fae(0x28a),'onDragStart':_0x2b2781,'children':[_0x1fa005(_0x22d09c,{'checked':_0x110c04,'onChange':_0x4c6a9d=>_0x2bd890(!!_0x4c6a9d)}),_0x1fa005(Bi,{'field':_0x42d3b3}),_0x1fa005(_0x101fae(0x40a),{'className':_0x101fae(0x14b),'children':_0x42d3b3[_0x101fae(0x2cd)]}),_0x1fa005(Jr,{'align':_0x101fae(0x372),'items':_0x1bc008,'children':_0x1fa005(_0x10d589,{'variant':_0x101fae(0x3ca),'aria-label':_0x17fadc['t'](_0x101fae(0x2a0)),'children':_0x1fa005(_0x2e92dc,{})})})]});}function Bi({field:_0x33fb80}){const _0x1fed8f=_0x3447f8;return Ji(_0x33fb80)?_0x1fa005(_0x5b2a53,{'className':_0x1fed8f(0x359)}):_0x33fb80[_0x1fed8f(0x1b9)]===_0x2940a8[_0x1fed8f(0x292)]||_0x33fb80[_0x1fed8f(0x1b9)]===_0x2940a8['CreatedAt']||_0x33fb80[_0x1fed8f(0x1b9)]===_0x2940a8['UpdatedAt']?_0x1fa005(_0x1437d4,{'className':_0x1fed8f(0x359)}):_0x1fa005(_0x3177bc,{'className':_0x1fed8f(0x359)});}function Vi(_0xe718c1){const _0x21f029=_0x3447f8;let {area:_0x854bed,dropTarget:_0x44e6fc,fields:_0x9c9035,label:_0x1c9c7e,snapshot:_0x5ae3bb}=_0xe718c1,_0x32bce7=_0x53af8d(_0x255457);return _0x5c238f('section',{'className':_0x54dbd2('univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800',_0x243840),'onDragOver':_0xcfd2a4=>{const _0x3d36c9=_0x1596;_0xcfd2a4['preventDefault'](),_0xe718c1['onDragOver'](_0x9c9035[_0x3d36c9(0x2c8)]);},'onDrop':_0x532ea5=>{const _0x200b51=_0x1596;_0x532ea5[_0x200b51(0x16a)](),_0xe718c1[_0x200b51(0x25a)]((_0x44e6fc==null?void 0x0:_0x44e6fc[_0x200b51(0x34d)])===_0x854bed?_0x44e6fc[_0x200b51(0xeb)]:_0x9c9035[_0x200b51(0x2c8)]);},'children':[_0x1fa005(_0x21f029(0x1e8),{'className':_0x21f029(0xdc),'children':_0x1c9c7e}),_0x5c238f(_0x21f029(0x1e8),{'className':'univer-flex\x20univer-flex-col','children':[_0x9c9035['map']((_0x316665,_0x557cde)=>{const _0x105bec=_0x21f029;let _0x395e3d=_0x5ae3bb[_0x105bec(0x2dd)][_0x316665]??_0x5ae3bb['measure'][_0x316665];if(!_0x395e3d)return null;let _0x3d3d39=(_0x44e6fc==null?void 0x0:_0x44e6fc[_0x105bec(0x34d)])===_0x854bed&&_0x44e6fc[_0x105bec(0xeb)]===_0x557cde;return _0x5c238f(_0x105bec(0x1e8),{'onDragOver':_0x4c7308=>{const _0x41ca0c=_0x105bec;_0x4c7308[_0x41ca0c(0x16a)](),_0x4c7308['stopPropagation']();let _0x5492e1=_0x4c7308[_0x41ca0c(0x3c3)][_0x41ca0c(0x263)]();_0xe718c1[_0x41ca0c(0x37a)](_0x557cde+ +(_0x4c7308[_0x41ca0c(0x117)]>_0x5492e1[_0x41ca0c(0x348)]+_0x5492e1['height']/0x2));},'onDrop':_0x473bc4=>{const _0x341978=_0x105bec;_0x473bc4[_0x341978(0x16a)](),_0x473bc4[_0x341978(0x273)](),_0xe718c1[_0x341978(0x25a)]((_0x44e6fc==null?void 0x0:_0x44e6fc[_0x341978(0x34d)])===_0x854bed?_0x44e6fc['index']:_0x557cde);},'children':[_0x3d3d39&&_0x1fa005('div',{'className':_0x105bec(0x3e7)}),_0x1fa005(Hi,{'area':_0x854bed,'field':_0x395e3d,'onDragEnd':_0xe718c1[_0x105bec(0x25f)],'onDragStart':()=>_0xe718c1[_0x105bec(0xcf)](_0x316665),'onFilter':()=>_0xe718c1['onFilter'](_0x316665),'onMove':_0x2408bc=>_0xe718c1[_0x105bec(0x123)](_0x316665,_0x2408bc,0x0),'onMoveUp':_0x557cde>0x0?()=>_0xe718c1[_0x105bec(0x123)](_0x316665,_0x854bed,_0x557cde-0x1):void 0x0,'onMoveDown':_0x557cde<_0x9c9035[_0x105bec(0x2c8)]-0x1?()=>_0xe718c1[_0x105bec(0x123)](_0x316665,_0x854bed,_0x557cde+0x1):void 0x0,'onRemove':()=>_0xe718c1[_0x105bec(0x2c3)](_0x316665),'onSettings':()=>_0xe718c1[_0x105bec(0x2ec)](_0x316665)})]},_0x316665);}),(_0x44e6fc==null?void 0x0:_0x44e6fc[_0x21f029(0x34d)])===_0x854bed&&_0x44e6fc[_0x21f029(0xeb)]===_0x9c9035[_0x21f029(0x2c8)]&&_0x1fa005(_0x21f029(0x1e8),{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),_0x9c9035[_0x21f029(0x2c8)]===0x0&&_0x1fa005(_0x21f029(0x1e8),{'className':_0x21f029(0x2b7),'children':_0x32bce7['t']('bases-dashboard-ui.pivot.sourceFields')})]})]});}function Hi(_0x5e8f1f){const _0x1704d3=_0x3447f8;let _0x145e75=_0x53af8d(_0x255457),_0x205376=_0x5e8f1f['area']===_0x23447d['Value'],_0x17ecf7=[...Ii[_0x1704d3(0x14f)](_0x5ad051=>_0x5ad051['area']!==_0x5e8f1f[_0x1704d3(0x34d)])[_0x1704d3(0x1ee)](_0x169fa3=>({'type':_0x1704d3(0x347),'children':_0x145e75['t'](Yi(_0x169fa3[_0x1704d3(0x34d)])),'onSelect':()=>_0x5e8f1f[_0x1704d3(0x123)](_0x169fa3[_0x1704d3(0x34d)])})),..._0x5e8f1f[_0x1704d3(0xd0)]?[{'type':_0x1704d3(0x347),'children':_0x145e75['t'](_0x1704d3(0x18e)),'onSelect':_0x5e8f1f[_0x1704d3(0xd0)]}]:[],..._0x5e8f1f['onMoveDown']?[{'type':'item','children':_0x145e75['t'](_0x1704d3(0x3b4)),'onSelect':_0x5e8f1f[_0x1704d3(0x261)]}]:[],{'type':'item','children':_0x145e75['t']('bases-dashboard-ui.pivot.removeField'),'onSelect':_0x5e8f1f[_0x1704d3(0x2c3)]},{'type':_0x1704d3(0x347),'children':_0x145e75['t'](_0x205376?_0x1704d3(0x2a0):_0x1704d3(0x2d0)),'onSelect':_0x205376?_0x5e8f1f[_0x1704d3(0x2ec)]:_0x5e8f1f['onFilter']}];return _0x5c238f(_0x1704d3(0x1e8),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x1704d3(0x146),'onDragEnd':_0x5e8f1f[_0x1704d3(0x25f)],'onDragStart':_0x5e8f1f[_0x1704d3(0xcf)],'children':[_0x1fa005(_0x310d74,{'title':_0x5e8f1f[_0x1704d3(0x101)][_0x1704d3(0x2bb)],'children':_0x1fa005(_0x1704d3(0x40a),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x5e8f1f[_0x1704d3(0x101)][_0x1704d3(0x2bb)]})}),_0x1fa005(Jr,{'align':_0x1704d3(0x372),'items':_0x17ecf7,'children':_0x1fa005(_0x10d589,{'variant':'text','aria-label':_0x145e75['t'](_0x1704d3(0x2a0)),'children':_0x1fa005(_0x2e92dc,{})})})]});}function Ui(_0x4efbf7){const _0x1a83cf=_0x3447f8;var _0x52aa12,_0x43a051;let _0x19bc53=_0x53af8d(_0x255457),{format:_0x44a82c,items:_0x2817c4,itemTypes:_0x55bc78}=_0x125177(()=>{const _0x50bdd3=_0x1596;let _0x3efc3b=_0x57279f(_0x4efbf7[_0x50bdd3(0x173)],_0x4efbf7[_0x50bdd3(0x12a)]);try{let _0x2ef832=_0x3efc3b['getDataFieldByTableId'](_0x4efbf7[_0x50bdd3(0x1e5)]);return{'format':_0x2ef832==null?void 0x0:_0x2ef832[_0x50bdd3(0x11b)],'items':[...(_0x2ef832==null?void 0x0:_0x2ef832['items'])??[]],'itemTypes':[...(_0x2ef832==null?void 0x0:_0x2ef832['itemTypes'])??[]]};}finally{_0x3efc3b['dispose']();}},[_0x4efbf7[_0x1a83cf(0x1e5)],_0x4efbf7[_0x1a83cf(0x12a)],_0x4efbf7[_0x1a83cf(0x173)]]),_0x10eee4=(_0x52aa12=_0x4efbf7[_0x1a83cf(0x12a)][_0x1a83cf(0x2dd)][_0x4efbf7[_0x1a83cf(0x1e5)]])==null?void 0x0:_0x52aa12[_0x1a83cf(0x37f)],[_0x55e4c3,_0x4159f8]=_0xee90d5((_0x10eee4==null?void 0x0:_0x10eee4[_0x1a83cf(0x1b9)])===_0x5a8717['ManualFilter']?_0x10eee4['list']:_0x2817c4),[_0x1a7ac6,_0x1421b4]=_0xee90d5((_0x43a051=_0x4efbf7['snapshot'][_0x1a83cf(0x2dd)][_0x4efbf7[_0x1a83cf(0x1e5)]])==null||(_0x43a051=_0x43a051[_0x1a83cf(0x250)])==null?void 0x0:_0x43a051[_0x1a83cf(0x1b9)]),_0x3a1a08=_0x55e4c3[_0x1a83cf(0x2c8)]===_0x2817c4[_0x1a83cf(0x2c8)],_0x1bf5c1=_0x5c238f(_0x1a83cf(0x336),{'className':_0x54dbd2(_0x1a83cf(0x14d),_0x243840),'children':[_0x1fa005(_0x1a83cf(0x1e8),{'className':_0x1a83cf(0xcd),'children':_0x19bc53['t'](_0x1a83cf(0x2d0))}),_0x5c238f('div',{'className':_0x1a83cf(0x3eb),'children':[_0x5c238f(_0x10d589,{'className':_0x1a83cf(0x1cc),'variant':_0x1a7ac6===_0x428f40['ascending']?_0x1a83cf(0x125):_0x1a83cf(0x36e),'onClick':()=>_0x1421b4(_0x428f40[_0x1a83cf(0x17d)]),'children':[_0x1fa005(_0x2a08ae,{}),_0x19bc53['t'](_0x1a83cf(0x2e6))]}),_0x5c238f(_0x10d589,{'className':_0x1a83cf(0x1cc),'variant':_0x1a7ac6===_0x428f40['descending']?'primary':_0x1a83cf(0x36e),'onClick':()=>_0x1421b4(_0x428f40['descending']),'children':[_0x1fa005(_0x20c70b,{}),_0x19bc53['t']('bases-dashboard-ui.pivot.descending')]})]}),_0x5c238f(_0x1a83cf(0x1e8),{'className':_0x1a83cf(0x15a),'children':[_0x5c238f(_0x1a83cf(0x24a),{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x1fa005(_0x22d09c,{'checked':_0x3a1a08,'indeterminate':_0x55e4c3[_0x1a83cf(0x2c8)]>0x0&&!_0x3a1a08,'onChange':()=>_0x4159f8(_0x3a1a08?[]:_0x2817c4)}),_0x19bc53['t']('bases-dashboard-ui.pivot.selectAll')]}),_0x2817c4[_0x1a83cf(0x1ee)]((_0x5a2ed5,_0x1ed33d)=>_0x5c238f(_0x1a83cf(0x24a),{'className':_0x1a83cf(0x208),'children':[_0x1fa005(_0x22d09c,{'checked':_0x55e4c3[_0x1a83cf(0x2f8)](_0x5a2ed5),'onChange':()=>_0x4159f8(_0x35e7fa=>_0x35e7fa[_0x1a83cf(0x2f8)](_0x5a2ed5)?_0x35e7fa[_0x1a83cf(0x14f)](_0x2768c9=>_0x2768c9!==_0x5a2ed5):[..._0x35e7fa,_0x5a2ed5])}),_0x1fa005(_0x1a83cf(0x40a),{'className':_0x1a83cf(0x242),'children':qi(_0x5a2ed5,_0x55bc78[_0x1ed33d],_0x44a82c,_0x19bc53['t']('bases-dashboard-ui.pivot.blank'))})]},_0x5a2ed5))]}),_0x5c238f(_0x1a83cf(0x1e8),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[_0x1fa005(_0x10d589,{'variant':'link','onClick':()=>_0x4efbf7[_0x1a83cf(0x3b5)](_0x2817c4,_0x1a7ac6),'children':_0x19bc53['t'](_0x1a83cf(0x3bd))}),_0x5c238f('div',{'className':_0x1a83cf(0x3d4),'children':[_0x1fa005(_0x10d589,{'onClick':_0x4efbf7['onCancel'],'children':_0x19bc53['t'](_0x1a83cf(0x132))}),_0x1fa005(_0x10d589,{'variant':_0x1a83cf(0x125),'disabled':_0x55e4c3[_0x1a83cf(0x2c8)]===0x0,'onClick':()=>_0x4efbf7[_0x1a83cf(0x3b5)](_0x55e4c3,_0x1a7ac6),'children':_0x19bc53['t']('bases-dashboard-ui.pivot.confirm')})]})]})]});return _0x1fa005(_0x14b201,{'title':_0x19bc53['t']('bases-dashboard-ui.pivot.filterField'),'onClose':_0x4efbf7[_0x1a83cf(0x227)],'children':_0x1bf5c1});}function Wi(_0x1a310b){const _0x36846d=_0x3447f8;var _0x3a3598,_0x253b7f,_0x52e881;let _0x49a51a=_0x53af8d(_0x255457),[_0x1b4628,_0x5498bf]=_0xee90d5(((_0x3a3598=_0x1a310b['field'])==null?void 0x0:_0x3a3598[_0x36846d(0x2bb)])??''),[_0x174bac,_0x392cf7]=_0xee90d5(((_0x253b7f=_0x1a310b['field'])==null?void 0x0:_0x253b7f[_0x36846d(0x1f5)])??_0x1f46e1['sum']),[_0x53bd20,_0x127a8f]=_0xee90d5(((_0x52e881=_0x1a310b[_0x36846d(0x101)])==null?void 0x0:_0x52e881[_0x36846d(0x11b)])??'');if(!_0x1a310b[_0x36846d(0x101)])return null;let _0x2bb110=_0x5c238f(_0x36846d(0x336),{'className':_0x54dbd2(_0x36846d(0x320),_0x243840),'children':[_0x1fa005('div',{'className':'univer-text-sm\x20univer-font-medium','children':_0x49a51a['t'](_0x36846d(0x2a0))}),_0x5c238f('label',{'className':_0x36846d(0x289),'children':[_0x49a51a['t'](_0x36846d(0xbe)),_0x1fa005(_0x2647d7,{'value':_0x1b4628,'onChange':_0x5498bf})]}),_0x5c238f('label',{'className':_0x36846d(0x289),'children':[_0x49a51a['t'](_0x36846d(0x109)),_0x1fa005(qr,{'value':String(_0x174bac),'options':Li[_0x36846d(0x1ee)](_0x5e7b79=>({'value':String(_0x5e7b79[_0x36846d(0x2c2)]),'label':_0x49a51a['t'](_0x5e7b79[_0x36846d(0x139)])})),'onChange':_0x179a0c=>{const _0x29a47f=_0x36846d;let _0x5f1b8c=Li[_0x29a47f(0x2c9)](_0x110366=>String(_0x110366['value'])===_0x179a0c);_0x5f1b8c&&_0x392cf7(_0x5f1b8c[_0x29a47f(0x2c2)]);}})]}),_0x5c238f(_0x36846d(0x24a),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x49a51a['t'](_0x36846d(0x3ae)),_0x1fa005(_0x2647d7,{'value':_0x53bd20,'onChange':_0x127a8f})]}),_0x5c238f(_0x36846d(0x1e8),{'className':_0x36846d(0x23d),'children':[_0x1fa005(_0x10d589,{'onClick':_0x1a310b[_0x36846d(0x227)],'children':_0x49a51a['t'](_0x36846d(0x132))}),_0x1fa005(_0x10d589,{'variant':_0x36846d(0x125),'disabled':!_0x1b4628[_0x36846d(0x15f)](),'onClick':()=>_0x1a310b[_0x36846d(0x3b5)](_0x1b4628['trim'](),_0x174bac,_0x53bd20),'children':_0x49a51a['t'](_0x36846d(0x15e))})]})]});return _0x1fa005(_0x14b201,{'title':_0x49a51a['t']('bases-dashboard-ui.pivot.fieldSettings'),'onClose':_0x1a310b[_0x36846d(0x227)],'children':_0x2bb110});}function Gi(_0x61a484){const _0x4fc48c=_0x3447f8;let {config:_0x105f27,commit:_0x21baef}=_0x61a484,_0x3d3ac4=_0x53af8d(_0x255457),_0x102482=_0x105f27['pivot'][_0x4fc48c(0x326)],_0x372a78=_0x3c325b=>_0x21baef(_0x25ebe8=>_0x25ebe8[_0x4fc48c(0x17f)]({..._0x25ebe8[_0x4fc48c(0x21f)](),..._0x3c325b}));return _0x5c238f(_0x4fc48c(0x1e8),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x5c238f('label',{'className':_0x4fc48c(0x39f),'children':[_0x3d3ac4['t'](_0x4fc48c(0x35c)),_0x1fa005(qr,{'className':_0x4fc48c(0x333),'value':String(_0x105f27[_0x4fc48c(0x10d)][_0x4fc48c(0xe1)]),'options':[{'value':String(_0x185dea['tabular']),'label':_0x3d3ac4['t'](_0x4fc48c(0x1ac))},{'value':String(_0x185dea[_0x4fc48c(0x3da)]),'label':_0x3d3ac4['t']('bases-dashboard-ui.pivot.layoutCompact')},{'value':String(_0x185dea[_0x4fc48c(0x1a7)]),'label':_0x3d3ac4['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x44ece9=>{const _0x3ed73e=_0x4fc48c;let _0x45b67d=[_0x185dea['tabular'],_0x185dea[_0x3ed73e(0x3da)],_0x185dea['outline']]['find'](_0x39ba93=>String(_0x39ba93)===_0x44ece9);_0x45b67d!==void 0x0&&_0x21baef(_0x363e8a=>_0x363e8a[_0x3ed73e(0x266)](_0x45b67d));}})]}),[{'key':_0x4fc48c(0x25b),'label':'bases-dashboard-ui.pivot.repeatRowLabels','defaultValue':!0x1},{'key':_0x4fc48c(0x296),'label':_0x4fc48c(0xfe),'defaultValue':!0x1},{'key':_0x4fc48c(0x1a6),'label':_0x4fc48c(0x31c),'defaultValue':!0x0},{'key':_0x4fc48c(0x13d),'label':_0x4fc48c(0x168),'defaultValue':!0x0},{'key':_0x4fc48c(0x107),'label':_0x4fc48c(0x3f9),'defaultValue':!0x0},{'key':_0x4fc48c(0x102),'label':_0x4fc48c(0x25c),'defaultValue':!0x0}][_0x4fc48c(0x1ee)](_0x36297d=>_0x5c238f(_0x4fc48c(0x24a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x1fa005(_0x22d09c,{'checked':!!(_0x102482[_0x36297d[_0x4fc48c(0x2fc)]]??_0x36297d[_0x4fc48c(0xe8)]),'disabled':_0x36297d[_0x4fc48c(0x2fc)]===_0x4fc48c(0x25b)&&_0x105f27[_0x4fc48c(0x10d)][_0x4fc48c(0xe1)]===_0x185dea['compact'],'onChange':_0xb89348=>_0x372a78({[_0x36297d[_0x4fc48c(0x2fc)]]:!!_0xb89348})}),_0x3d3ac4['t'](_0x36297d[_0x4fc48c(0x24a)])]},_0x36297d[_0x4fc48c(0x2fc)])),_0x105f27['pivot']['layout']===_0x185dea[_0x4fc48c(0x1a7)]&&_0x5c238f(_0x4fc48c(0x24a),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x3d3ac4['t']('bases-dashboard-ui.pivot.rowSubtotalPosition'),_0x1fa005(qr,{'className':_0x4fc48c(0x333),'value':String(_0x102482['rowSubtotalPosition']??_0x568753[_0x4fc48c(0x348)]),'options':[{'value':String(_0x568753[_0x4fc48c(0x348)]),'label':_0x3d3ac4['t'](_0x4fc48c(0xc8))},{'value':String(_0x568753[_0x4fc48c(0x199)]),'label':_0x3d3ac4['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x2d8e5b=>{const _0x2ff368=_0x4fc48c;let _0x4eed22=[_0x568753[_0x2ff368(0x348)],_0x568753[_0x2ff368(0x199)]][_0x2ff368(0x2c9)](_0x4fa5e6=>String(_0x4fa5e6)===_0x2d8e5b);_0x4eed22!==void 0x0&&_0x372a78({'rowSubtotalPosition':_0x4eed22});}})]}),_0x5c238f(_0x4fc48c(0x24a),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x3d3ac4['t']('bases-dashboard-ui.pivot.valuePosition'),_0x1fa005(qr,{'className':_0x4fc48c(0x333),'value':String(_0x105f27[_0x4fc48c(0x10d)][_0x4fc48c(0x1d2)]===_0x2d76e7[_0x4fc48c(0x322)]?_0x2d76e7[_0x4fc48c(0x29b)]:_0x105f27[_0x4fc48c(0x10d)][_0x4fc48c(0x1d2)]),'options':[{'value':String(_0x2d76e7[_0x4fc48c(0x29b)]),'label':_0x3d3ac4['t'](_0x4fc48c(0x1f0))},{'value':String(_0x2d76e7[_0x4fc48c(0x20e)]),'label':_0x3d3ac4['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x5e17a0=>{const _0x5a81e0=_0x4fc48c;let _0xe920c7=[_0x2d76e7['Column'],_0x2d76e7[_0x5a81e0(0x20e)]]['find'](_0x4d64f2=>String(_0x4d64f2)===_0x5e17a0);_0xe920c7!==void 0x0&&_0x21baef(_0x1714ac=>_0x1714ac[_0x5a81e0(0x1a1)](_0xe920c7,_0x1714ac['getValueIndex']()<0x0?0x0:_0x1714ac['getValueIndex']()));}})]}),_0x5c238f(_0x4fc48c(0x24a),{'className':_0x4fc48c(0x39f),'children':[_0x3d3ac4['t'](_0x4fc48c(0x30a)),_0x1fa005(_0x499d19,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x102482[_0x4fc48c(0x358)]??0x1,'onChange':_0x1ff1f2=>{const _0x193655=_0x4fc48c;let _0x4cc4a5=Number(_0x1ff1f2);Number[_0x193655(0x1b3)](_0x4cc4a5)&&_0x4cc4a5>=0x1&&_0x372a78({'pageWrap':_0x4cc4a5});}})]}),_0x5c238f(_0x4fc48c(0x24a),{'className':_0x4fc48c(0x39f),'children':[_0x3d3ac4['t']('bases-dashboard-ui.pivot.pageDirection'),_0x1fa005(qr,{'className':_0x4fc48c(0x333),'value':String(_0x102482[_0x4fc48c(0x1db)]??!0x1),'options':[{'value':_0x4fc48c(0x37e),'label':_0x3d3ac4['t'](_0x4fc48c(0x384))},{'value':_0x4fc48c(0x2d2),'label':_0x3d3ac4['t']('bases-dashboard-ui.pivot.acrossThenDown')}],'onChange':_0x3bed88=>_0x372a78({'pageOverThenDown':_0x3bed88==='true'})})]})]});}function Ki(_0x3793c5,_0x174932,_0x82c91c,_0x15181d){const _0x1185bf=_0x3447f8;let _0x852edc=_0x3793c5[_0x1185bf(0x1b5)](_0x174932)[_0x1185bf(0x2c9)](_0x3828df=>_0x3793c5[_0x1185bf(0x126)](_0x3828df[_0x1185bf(0x2bd)]())[_0x1185bf(0x34d)]!==_0x23447d[_0x1185bf(0x1b0)]);if(_0x82c91c!==_0x23447d[_0x1185bf(0x1b0)]&&_0x852edc){_0x3793c5[_0x1185bf(0x23b)](_0x852edc[_0x1185bf(0x2bd)](),_0x82c91c,_0x15181d);return;}_0x3793c5['addFieldWithSourceId'](_0x174932,_0x82c91c,_0x15181d);}function qi(_0x4b5aa2,_0x35f2fd,_0x1ec389,_0x58f6e7){const _0x115f0d=_0x3447f8;return _0x35f2fd===_0x25f34a[_0x115f0d(0x295)]?_0x58f6e7:_0x35f2fd===_0x25f34a[_0x115f0d(0x118)]&&_0x1ec389?_0x254bab['format'](_0x1ec389,Number(_0x4b5aa2)):_0x4b5aa2;}function Ji(_0x46f9c8){const _0x348f91=_0x3447f8;return _0x46f9c8[_0x348f91(0x1b9)]===_0x2940a8[_0x348f91(0x3c9)]||_0x46f9c8[_0x348f91(0x1b9)]===_0x2940a8[_0x348f91(0x18d)]||_0x46f9c8[_0x348f91(0x1b9)]===_0x2940a8[_0x348f91(0x304)]||_0x46f9c8['type']===_0x2940a8[_0x348f91(0x3b8)];}function Yi(_0x493230){const _0x54a2c4=_0x3447f8;switch(_0x493230){case _0x23447d[_0x54a2c4(0x20e)]:return _0x54a2c4(0x36f);case _0x23447d[_0x54a2c4(0x29b)]:return'bases-dashboard-ui.pivot.addToColumn';case _0x23447d['Value']:return _0x54a2c4(0x246);default:return _0x54a2c4(0x1f3);}}function Xi({config:_0x2d5904,onChange:_0x11a0e5,runtime:_0x4c0cf9,table:_0x77456f}){const _0x1334d2=_0x3447f8;let _0x4cb01d=_0x53af8d(_0x255457),[_0x42e41d,_0x286c7d]=_0xee90d5(_0x1334d2(0x1eb));return _0x5c238f(_0x1334d2(0x268),{'className':_0x1334d2(0x258),'children':[_0x1fa005(_0x283559,{'ariaLabel':_0x4cb01d['t'](_0x1334d2(0x1a9)),'className':_0x1334d2(0x33a),'items':[{'label':_0x4cb01d['t'](_0x1334d2(0x19e)),'panelId':_0x1334d2(0x28c),'value':'chart'},{'label':_0x4cb01d['t'](_0x1334d2(0x1b7)),'panelId':_0x1334d2(0xce),'value':_0x1334d2(0x10d)}],'value':_0x42e41d,'variant':_0x1334d2(0x2db),'onChange':_0x286c7d}),_0x1fa005(_0x1334d2(0x1e8),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','children':_0x42e41d==='chart'?_0x4c0cf9&&_0x1fa005(Qr,{'config':_0x2d5904,'runtime':_0x4c0cf9,'tableName':_0x77456f[_0x1334d2(0x2cd)],'onChange':_0x11a0e5}):_0x1fa005(Ri,{'config':_0x2d5904,'table':_0x77456f,'onChange':_0x11a0e5})})]});}function _0x1596(_0x4222ee,_0x85c599){_0x4222ee=_0x4222ee-0xb9;const _0x344824=_0x3448();let _0x15969c=_0x344824[_0x4222ee];return _0x15969c;}function Zi({tableId:_0x23aa47,unitId:_0x54bedf,viewId:_0x16da8f}){const _0x46eae0=_0x3447f8;let [_0x45bfef,_0x26a89e]=_0xee90d5(!0x1),_0x3403ae=_0x53af8d(_0x1ec317),_0x1a6a84=_0x53af8d(_0xa15270),_0x1b6917=_0x53af8d(_0x133842),_0x1931d1=_0x53af8d(_0x255457),_0x25d106=_0x53af8d(_0x2cc67a),[_0x286bf3,_0x31c1ea]=_0xee90d5(null),[_0x49c61d,_0x1bdc8a]=_0xee90d5(null),_0x4fe3bb=_0x4523d4('base-pivot-chart-'+_0x2aef82(0x8)),[_0x526437,_0x131ac2]=_0xee90d5(!0x1),_0x2ea8e7=_0x1a6a84['getUnit'](_0x54bedf,_0x6e7cef[_0x46eae0(0x1f7)]),_0x3fc8f5=_0x2ea8e7==null?void 0x0:_0x2ea8e7[_0x46eae0(0x3b6)]()[_0x46eae0(0x186)][_0x23aa47],_0xa9176c=_0x3fc8f5==null?void 0x0:_0x3fc8f5['views'][_0x16da8f],_0x3abd6c=Qi(_0xa9176c),_0x1ef5a5=_r(_0x54bedf,_0x23aa47,_0x16da8f);if(_0x543512(()=>{const _0x114f36=_0x46eae0;if(!_0x3abd6c)return;let _0x2cdf77=_0x4fe3bb['current'];return _0x25d106[_0x114f36(0x1a0)](_0x2cdf77,{'unitId':_0x54bedf,'tableId':_0x23aa47,'viewId':_0x16da8f,'filters':[]}),()=>{const _0x448926=_0x114f36;_0x25d106[_0x448926(0x197)](_0x54bedf,_0x2cdf77);};},[_0x3abd6c,_0x25d106,_0x23aa47,_0x54bedf,_0x16da8f]),_0x543512(()=>{const _0x91faa4=_0x46eae0;if(!Qi(_0xa9176c))return;let _0x58d4fb=!0x0,_0x2a901a={'unitId':_0x54bedf,'tableId':_0x23aa47,'viewId':_0x16da8f,'filters':[_0xa9176c[_0x91faa4(0x14f)]??null]};return _0x25d106[_0x91faa4(0x1d6)](_0x54bedf,_0x4fe3bb[_0x91faa4(0x23e)],_0x2a901a)[_0x91faa4(0x401)](_0x2edcad=>{const _0x36f829=_0x91faa4;_0x58d4fb&&_0x2edcad&&(_0x31c1ea(_0x2edcad),_0x1bdc8a(_0x25d106[_0x36f829(0x337)](_0x54bedf,_0x4fe3bb[_0x36f829(0x23e)])??null),_0x131ac2(!0x1));})[_0x91faa4(0x308)](_0x580f56=>{const _0x4e63c3=_0x91faa4;_0x1b6917[_0x4e63c3(0x1a3)]('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x580f56),_0x58d4fb&&(_0x31c1ea(null),_0x131ac2(!0x0));}),()=>{_0x58d4fb=!0x1;};},[_0x1b6917,_0x25d106,_0x23aa47,_0x54bedf,_0xa9176c,_0x16da8f]),!_0x3fc8f5||!Qi(_0xa9176c))return null;let _0x5e040f=_0x25d106[_0x46eae0(0x337)](_0x54bedf,_0x4fe3bb[_0x46eae0(0x23e)])===_0x49c61d?_0x49c61d:null,_0x576fec=_0x286bf3?_0x5c238f(_0x46eae0(0x1e8),{'className':_0x46eae0(0x1f9),'style':{'gridTemplateRows':_0xa9176c['config'][_0x46eae0(0x2f2)]===_0x46eae0(0xf9)?'minmax(0,\x203fr)\x20minmax(0,\x202fr)':_0x46eae0(0x1ea)},'children':[_0xa9176c[_0x46eae0(0x2b0)][_0x46eae0(0x2f2)]!==_0x46eae0(0x173)&&_0x5e040f&&_0x1fa005(_0x46eae0(0x1e8),{'className':_0x46eae0(0x360),'children':_0x1fa005(Ir,{'isRowDirection':_0x18785d(_0xa9176c[_0x46eae0(0x2b0)]['chart']['orient']),'runtime':_0x5e040f})}),_0xa9176c[_0x46eae0(0x2b0)][_0x46eae0(0x2f2)]!=='chart'&&_0x1fa005(_0x46eae0(0x1e8),{'className':'univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':_0x1fa005(ki,{'pivot':_0xa9176c[_0x46eae0(0x2b0)]['pivot'],'view':_0x286bf3[_0x46eae0(0x3d6)]})})]}):_0x1fa005(_0x46eae0(0x1e8),{'className':_0x46eae0(0x158),'children':_0x526437?_0x1931d1['t'](_0x46eae0(0x143)):_0x1931d1['t']('bases-dashboard-ui.pivot.calculating')}),_0x430b7a=_0x1fa005(Xi,{'config':_0xa9176c[_0x46eae0(0x2b0)],'runtime':_0x5e040f,'table':_0x3fc8f5,'onChange':_0x16ad29=>{const _0x1fa365=_0x46eae0;_0x1a6a84[_0x1fa365(0x300)](_0x54bedf),_0x1a6a84[_0x1fa365(0x3a3)](_0x54bedf),_0x3403ae[_0x1fa365(0x2be)](_0x22ea58['id'],{'unitId':_0x54bedf,'tableId':_0x23aa47,'viewId':_0x16da8f,'patch':_0x16ad29})[_0x1fa365(0x308)](_0x297198=>_0x1b6917['error']('[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.',_0x297198));}});return _0x1fa005(Kr,{'children':_0x5c238f(_0x46eae0(0x1e8),{'className':'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','children':[_0x1ef5a5&&_0x1fa005(_0x10d589,{'onClick':()=>_0x26a89e(!0x0),'children':_0x1931d1['t'](_0x46eae0(0x19e))}),_0x1fa005('div',{'className':_0x46eae0(0x3fc),'children':_0x576fec}),_0x1ef5a5&&_0x45bfef&&_0x1fa005(_0x14b201,{'title':_0x1931d1['t'](_0x46eae0(0x1a9)),'onClose':()=>_0x26a89e(!0x1),'children':_0x430b7a})]})});}function Qi(_0x4d9832){const _0x117b81=_0x3447f8;return(_0x4d9832==null?void 0x0:_0x4d9832[_0x117b81(0x1b9)])===_0x4da0de[_0x117b81(0x1ec)]&&typeof _0x4d9832['config']==_0x117b81(0x2f1)&&_0x4d9832[_0x117b81(0x2b0)]!==null&&_0x117b81(0x10d)in _0x4d9832['config']&&_0x117b81(0x1eb)in _0x4d9832[_0x117b81(0x2b0)]&&_0x117b81(0x2f2)in _0x4d9832[_0x117b81(0x2b0)];}let $i=class extends _0x47ac6f{constructor(_0x2a636c,_0x532e18,_0x574080,_0x2d7544,_0x34c28a,_0x41b14f){const _0x2dfc2f=_0x3447f8;super(),this[_0x2dfc2f(0x36c)](_0x532e18[_0x2dfc2f(0xc6)]({'type':_0x4da0de[_0x2dfc2f(0x1ec)],'renderMode':_0x2dfc2f(0x30f),'icon':_0x551361,'component':Zi,'menu':{get 'label'(){const _0x243b8f=_0x2dfc2f;return _0x41b14f['t'](_0x243b8f(0x1a9));},get 'description'(){return _0x41b14f['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){return _0x41b14f['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x2dfc2f(0x36c)](_0x2a636c[_0x2dfc2f(0xc6)](ea(_0x574080,_0x2d7544,_0x34c28a,_0x41b14f)));}};$i=Or([Y(0x0,_0x3460c3),Y(0x1,_0x198cb9),Y(0x2,_0x1e6fb0(_0x4e6cdd)),Y(0x3,_0x1ec317),Y(0x4,_0x58608a),Y(0x5,_0x1e6fb0(_0x255457))],$i);function ea(_0x35d6a0,_0x6bb2e5,_0x118015,_0x51ad38){const _0x55fddd=_0x3447f8;return{'change$':_0x1691f8(_0x35d6a0[_0x55fddd(0x135)],_0x118015['permissionPointUpdate$']),'component':bi,get 'labels'(){const _0x2bdd74=_0x55fddd;return{'add':_0x51ad38['t'](_0x2bdd74(0x19b)),'configure':_0x16a990=>_0x51ad38['t'](_0x2bdd74(0x291),_0x16a990),'delete':_0x51ad38['t'](_0x2bdd74(0x238)),'new':_0x51ad38['t'](_0x2bdd74(0x1de)),'rename':_0x51ad38['t'](_0x2bdd74(0xe0)),'search':_0x51ad38['t']('bases-dashboard-ui.dashboard.search'),'section':_0x51ad38['t']('bases-dashboard-ui.dashboard.section')};},'getItems':_0x37aa00=>{const _0x832436=_0x55fddd;let _0x196677=_0x35d6a0[_0x832436(0x29d)](_0x37aa00);return _0x196677[_0x832436(0x27e)][_0x832436(0x30c)](_0x2a697e=>{const _0x5b13bc=_0x832436;let _0x184ff2=_0x196677[_0x5b13bc(0x1fc)][_0x2a697e];return _0x184ff2?[{'id':_0x184ff2['id'],'name':_0x184ff2[_0x5b13bc(0x2cd)],'readonly':!_0x314d1d(_0x118015,_0x37aa00,_0x184ff2['id'])}]:[];});},'create':async _0x199e86=>{const _0x4c4edd=_0x55fddd;let _0x1c28ad=_0x35d6a0['getResource'](_0x199e86),_0x48eec8=_0x4c4edd(0x13a)+_0x2aef82(0x8),_0x140c0b=ta(_0x1c28ad['dashboardOrder']['flatMap'](_0x182896=>{const _0x540c2c=_0x4c4edd;let _0x21381f=_0x1c28ad['dashboards'][_0x182896];return _0x21381f?[_0x21381f[_0x540c2c(0x2cd)]]:[];}),_0x3f396a=>_0x51ad38['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x3f396a)));return await _0x6bb2e5[_0x4c4edd(0x2be)](_0x15bed1['id'],{'unitId':_0x199e86,'dashboard':{'id':_0x48eec8,'name':_0x140c0b,'widgetOrder':[],'widgets':{}}})?_0x48eec8:null;},'rename':async(_0xc408f9,_0x5b7cb3,_0xcedf98)=>{const _0x54cd8d=_0x55fddd;let _0x329f5a=_0x35d6a0['getDashboard'](_0xc408f9,_0x5b7cb3);return!!(_0x329f5a&&await _0x6bb2e5[_0x54cd8d(0x2be)](_0x51a517['id'],{'unitId':_0xc408f9,'dashboard':{..._0x329f5a,'name':_0xcedf98}}));},'remove':(_0x147f8c,_0x3159d4)=>_0x6bb2e5[_0x55fddd(0x2be)](_0x56eacd['id'],{'unitId':_0x147f8c,'dashboardId':_0x3159d4})};}function ta(_0x4f225e,_0x52dbd7){const _0x12204f=_0x3447f8;let _0x5b024f=new Set(_0x4f225e),_0x307cf7=_0x5b024f['size']+0x1,_0x255a44=_0x52dbd7(_0x307cf7);for(;_0x5b024f[_0x12204f(0x3a4)](_0x255a44);)_0x307cf7+=0x1,_0x255a44=_0x52dbd7(_0x307cf7);return _0x255a44;}let na=class extends _0x4b5524{constructor(_0x516fc0=hr,_0x51a17f,_0x52efd2){const _0x36d1d6=_0x3447f8;super(),this['_config']=_0x516fc0,this[_0x36d1d6(0x3e5)]=_0x51a17f,this[_0x36d1d6(0x3dc)]=_0x52efd2;let {..._0x20831f}=_0x2b2cf0({},hr,this[_0x36d1d6(0x2ae)]);this['_configService'][_0x36d1d6(0x1ef)](mr,_0x20831f);}[_0x3447f8(0x192)](){const _0x222670=_0x3447f8;this['_injector'][_0x222670(0x1fa)]([kr]),this[_0x222670(0x3e5)]['add']([Gr]),this['_injector'][_0x222670(0x1fa)]([$i]);}['onReady'](){const _0x1cd863=_0x3447f8;_0x3ce29c(this[_0x1cd863(0x3e5)],[[kr],[Gr],[$i]]);}};Pr(na,_0x3447f8(0x1b9),_0x6e7cef['UNIVER_BASE']),Pr(na,_0x3447f8(0x255),_0x3447f8(0x206)),Pr(na,'packageName',fr),Pr(na,'version',pr),na=Or([_0xc92a94(_0x267ea2,_0x12b6ef,_0x2e4e9f,_0x54ced9,_0x100373,_0x442bae),Y(0x1,_0x1e6fb0(_0x49fd9b)),Y(0x2,_0x56e562)],na);function ra(_0x11cddb,_0x118dfe,_0x417cc1,_0x542774){const _0x34b351=_0x3447f8;let _0x1bc0e2={..._0x11cddb};if(_0x118dfe[_0x34b351(0x2f8)]('w')){let _0x22f8b1=_0x11cddb[_0x34b351(0x362)]+_0x11cddb[_0x34b351(0x394)];_0x1bc0e2[_0x34b351(0x362)]=Math[_0x34b351(0x351)](0x0,Math['min'](_0x22f8b1-0x1,_0x11cddb[_0x34b351(0x362)]+_0x417cc1)),_0x1bc0e2[_0x34b351(0x394)]=_0x22f8b1-_0x1bc0e2[_0x34b351(0x362)];}else _0x118dfe[_0x34b351(0x2f8)]('e')&&(_0x1bc0e2['columnSpan']=Math[_0x34b351(0x351)](0x1,Math['min'](_0x25ec11-_0x11cddb[_0x34b351(0x362)],_0x11cddb['columnSpan']+_0x417cc1)));if(_0x118dfe[_0x34b351(0x2f8)]('n')){let _0x47670f=_0x11cddb[_0x34b351(0x2b6)]+_0x11cddb[_0x34b351(0x3ef)];_0x1bc0e2[_0x34b351(0x2b6)]=Math['max'](0x0,Math['min'](_0x47670f-0x1,_0x11cddb[_0x34b351(0x2b6)]+_0x542774)),_0x1bc0e2[_0x34b351(0x3ef)]=_0x47670f-_0x1bc0e2[_0x34b351(0x2b6)];}else _0x118dfe[_0x34b351(0x2f8)]('s')&&(_0x1bc0e2['rowSpan']=Math['max'](0x1,_0x11cddb['rowSpan']+_0x542774));return _0x1bc0e2;}function ia(_0x559764){const _0x5c4c0e=_0x3447f8;let _0x34fd96=Math[_0x5c4c0e(0x351)](0x1,Math[_0x5c4c0e(0x379)](_0x25ec11,Math[_0x5c4c0e(0x323)](_0x559764[_0x5c4c0e(0x394)])));return{'column':Math[_0x5c4c0e(0x351)](0x0,Math[_0x5c4c0e(0x379)](_0x25ec11-_0x34fd96,Math[_0x5c4c0e(0x323)](_0x559764[_0x5c4c0e(0x362)]))),'row':Math[_0x5c4c0e(0x351)](0x0,Math[_0x5c4c0e(0x323)](_0x559764['row'])),'columnSpan':_0x34fd96,'rowSpan':Math['max'](0x1,Math[_0x5c4c0e(0x323)](_0x559764[_0x5c4c0e(0x3ef)]))};}function aa(_0x5300ec,_0x15ab49,_0x2bf1df){const _0xfff008=_0x3447f8;let _0x4df103=new Map(_0x5300ec),_0x617139=ia(_0x2bf1df);_0x4df103[_0xfff008(0xea)](_0x15ab49,_0x617139);let _0x2fe011=[[_0x15ab49,_0x617139]];for(let [_0x2ed6e2,_0x17f225]of _0x4df103){if(_0x2ed6e2===_0x15ab49)continue;let _0x1fc7bd=ia(_0x17f225);for(;_0x2fe011[_0xfff008(0x3c4)](([,_0x2bdcf2])=>sa(_0x1fc7bd,_0x2bdcf2));)_0x1fc7bd={..._0x1fc7bd,'row':_0x1fc7bd[_0xfff008(0x2b6)]+0x1};for(;_0x1fc7bd[_0xfff008(0x2b6)]>0x0;){let _0x27f1ce={..._0x1fc7bd,'row':_0x1fc7bd[_0xfff008(0x2b6)]-0x1};if(_0x2fe011[_0xfff008(0x3c4)](([,_0x2b3818])=>sa(_0x27f1ce,_0x2b3818)))break;_0x1fc7bd=_0x27f1ce;}_0x2fe011[_0xfff008(0xf3)]([_0x2ed6e2,_0x1fc7bd]),_0x4df103[_0xfff008(0xea)](_0x2ed6e2,_0x1fc7bd);}return _0x4df103;}function oa(_0x263b9f,_0x49ff7d,_0x4e49fe,_0x30061c=0x38,_0x51dcb3=0x16){const _0x548740=_0x3447f8;return _0x263b9f<_0x49ff7d+_0x30061c?-Math[_0x548740(0x163)](_0x51dcb3*(0x1-Math[_0x548740(0x351)](0x0,_0x263b9f-_0x49ff7d)/_0x30061c)):_0x263b9f>_0x4e49fe-_0x30061c?Math[_0x548740(0x163)](_0x51dcb3*(0x1-Math[_0x548740(0x351)](0x0,_0x4e49fe-_0x263b9f)/_0x30061c)):0x0;}function sa(_0x54ec54,_0x3bc64b){const _0x1602ea=_0x3447f8;return _0x54ec54[_0x1602ea(0x362)]<_0x3bc64b[_0x1602ea(0x362)]+_0x3bc64b[_0x1602ea(0x394)]&&_0x54ec54[_0x1602ea(0x362)]+_0x54ec54[_0x1602ea(0x394)]>_0x3bc64b[_0x1602ea(0x362)]&&_0x54ec54[_0x1602ea(0x2b6)]<_0x3bc64b[_0x1602ea(0x2b6)]+_0x3bc64b[_0x1602ea(0x3ef)]&&_0x54ec54[_0x1602ea(0x2b6)]+_0x54ec54[_0x1602ea(0x3ef)]>_0x3bc64b[_0x1602ea(0x2b6)];}const ca=[{'direction':'nw','className':_0x3447f8(0x2d5)},{'direction':'n','className':'-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize'},{'direction':'ne','className':_0x3447f8(0x147)},{'direction':'e','className':'-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize'},{'direction':'se','className':_0x3447f8(0x237)},{'direction':'s','className':_0x3447f8(0x3f1)},{'direction':'sw','className':_0x3447f8(0x25e)},{'direction':'w','className':_0x3447f8(0x2d1)}];function la({dashboard:_0x1140e9,dragLabel:_0x58691a,editable:_0x15ebde=!0x0,onLayoutsCommit:_0x46e33b,onSelectWidget:_0x3a4d61,renderWidget:_0x3bd35d,renderWidgetActions:_0x59407a,resizeLabel:_0x39515e,selectedWidgetId:_0x4f0f97,widgetLabel:_0x489fe2}){const _0x81418d=_0x3447f8;let _0x102ce9=_0x4523d4(null),_0x3bbe7e=_0x4523d4(null),[_0x4f5985,_0x4926c3]=_0xee90d5(!0x1),_0x23fa9b=_0x125177(()=>new Map(_0x1140e9[_0x81418d(0x2a6)][_0x81418d(0x30c)](_0xe96b35=>{const _0x3c6706=_0x81418d;let _0x4373ff=_0x1140e9[_0x3c6706(0x311)][_0xe96b35];return _0x4373ff?[[_0xe96b35,_0x4373ff[_0x3c6706(0xe1)]]]:[];})),[_0x1140e9]),[_0x39bb6c,_0x5015ec]=_0xee90d5(_0x23fa9b);_0x543512(()=>{_0x3bbe7e['current']||_0x5015ec(_0x23fa9b);},[_0x23fa9b]),_0x543512(()=>{const _0x3a68b7=_0x81418d;if(!_0x4f5985)return;let _0x53e233=_0x3603b7=>{const _0xb1e12=_0x1596;let _0x5462dc=_0x102ce9[_0xb1e12(0x23e)];if(!_0x5462dc)return null;let _0x1739ee=_0x5462dc[_0xb1e12(0x263)](),_0x25365c=Math[_0xb1e12(0x351)](0x1,(_0x1739ee[_0xb1e12(0x144)]-0x8*(_0x25ec11-0x1))/_0x25ec11),_0x511301=Math[_0xb1e12(0x323)]((_0x5462dc[_0xb1e12(0x406)]-_0x3603b7['startScrollTop'])/(_0x35833c+0x8)),_0x24fd80=Math[_0xb1e12(0x323)]((_0x3603b7[_0xb1e12(0x357)]-_0x3603b7[_0xb1e12(0x209)])/(_0x25365c+0x8)),_0x482bab=Math['round']((_0x3603b7[_0xb1e12(0x1c7)]-_0x3603b7['startY'])/(_0x35833c+0x8))+_0x511301,_0x16323b=_0x3603b7[_0xb1e12(0x272)]==='move'?{..._0x3603b7[_0xb1e12(0x188)],'column':_0x3603b7['initial'][_0xb1e12(0x362)]+_0x24fd80,'row':_0x3603b7[_0xb1e12(0x188)][_0xb1e12(0x2b6)]+_0x482bab}:ra(_0x3603b7[_0xb1e12(0x188)],_0x3603b7[_0xb1e12(0x14c)]??'se',_0x24fd80,_0x482bab),_0x2f2aa1=aa(_0x3603b7['initialLayouts'],_0x3603b7['id'],_0x16323b);return _0x5015ec(_0x2f2aa1),_0x2f2aa1;},_0x6fea5d=_0x273d72=>{const _0x762fe8=_0x1596;let _0x681ffc=_0x3bbe7e[_0x762fe8(0x23e)];if(!_0x681ffc)return;let _0x6fb8d9={..._0x681ffc,'pointerX':_0x273d72[_0x762fe8(0x371)],'pointerY':_0x273d72['clientY']};_0x3bbe7e[_0x762fe8(0x23e)]=_0x6fb8d9;},_0x24695b=()=>{const _0x686dd4=_0x1596;let _0xddaee=_0x3bbe7e[_0x686dd4(0x23e)],_0x11e205=_0xddaee?_0x53e233(_0xddaee):null;_0x3bbe7e[_0x686dd4(0x23e)]=null,_0x4926c3(!0x1),_0x11e205&&_0x46e33b(_0x11e205);},_0x14b1c4=0x0,_0x384a2b=()=>{const _0x142941=_0x1596;let _0x2a3a89=_0x102ce9[_0x142941(0x23e)],_0x31e9c1=_0x3bbe7e[_0x142941(0x23e)];if(_0x2a3a89&&_0x31e9c1){let _0x205a44=_0x2a3a89[_0x142941(0x263)](),_0x26b1ff=oa(_0x31e9c1[_0x142941(0x1c7)],_0x205a44[_0x142941(0x348)],_0x205a44[_0x142941(0x199)]);_0x26b1ff!==0x0&&(_0x2a3a89['scrollTop']+=_0x26b1ff),_0x53e233(_0x31e9c1),_0x14b1c4=requestAnimationFrame(_0x384a2b);}};return _0x14b1c4=requestAnimationFrame(_0x384a2b),window[_0x3a68b7(0x213)](_0x3a68b7(0x16b),_0x6fea5d),window['addEventListener'](_0x3a68b7(0x3f0),_0x24695b),()=>{const _0x41d682=_0x3a68b7;cancelAnimationFrame(_0x14b1c4),window[_0x41d682(0x367)](_0x41d682(0x16b),_0x6fea5d),window[_0x41d682(0x367)](_0x41d682(0x3f0),_0x24695b);};},[_0x4f5985,_0x46e33b]);let _0x4ae9ba=Math[_0x81418d(0x351)](0x8,...Array[_0x81418d(0x3a1)](_0x39bb6c[_0x81418d(0xfd)]())[_0x81418d(0x1ee)](_0x29b584=>_0x29b584[_0x81418d(0x2b6)]+_0x29b584[_0x81418d(0x3ef)])),_0x156601=(_0x366eaa,_0x1f6719,_0x558768,_0x16af83)=>{const _0x26f804=_0x81418d;_0x366eaa[_0x26f804(0x16a)](),_0x366eaa['stopPropagation']();let _0x2d7505=_0x102ce9['current'],_0x46f6e5={'id':_0x1f6719['id'],'mode':_0x558768,'pointerX':_0x366eaa['clientX'],'pointerY':_0x366eaa['clientY'],'startX':_0x366eaa['clientX'],'startY':_0x366eaa['clientY'],'startScrollTop':(_0x2d7505==null?void 0x0:_0x2d7505[_0x26f804(0x406)])??0x0,'initial':_0x39bb6c[_0x26f804(0x15b)](_0x1f6719['id'])??_0x1f6719['layout'],'initialLayouts':new Map(_0x39bb6c),'resizeDirection':_0x16af83};_0x3bbe7e['current']=_0x46f6e5,_0x4926c3(!0x0);};return _0x1fa005(_0x81418d(0x1e8),{'ref':_0x102ce9,'data-dashboard-scroll-container':!0x0,'className':_0x54dbd2('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',_0x2bbb9f),'onClick':_0x15ebde?_0x155d3a=>{const _0x2313fe=_0x81418d;if(!(_0x155d3a[_0x2313fe(0x3ea)]instanceof Node)||!_0x155d3a[_0x2313fe(0x3c3)][_0x2313fe(0x244)](_0x155d3a[_0x2313fe(0x3ea)]))return;let _0x2de61b=_0x155d3a[_0x2313fe(0x3ea)]instanceof Element?_0x155d3a[_0x2313fe(0x3ea)]:_0x155d3a[_0x2313fe(0x3ea)][_0x2313fe(0x2f7)];_0x2de61b!=null&&_0x2de61b[_0x2313fe(0xee)](_0x2313fe(0x187))||_0x3a4d61==null||_0x3a4d61();}:void 0x0,'children':_0x1fa005(_0x81418d(0x1e8),{'data-dashboard-grid':!0x0,'className':_0x81418d(0x3a8),'style':{'gap':0x8,'gridAutoRows':_0x35833c,'minHeight':_0x4ae9ba*(_0x35833c+0x8)},'children':_0x1140e9['widgetOrder'][_0x81418d(0x1ee)](_0x445bd4=>{const _0x16d78e=_0x81418d;var _0x4e93f6;let _0x4f7b44=_0x1140e9[_0x16d78e(0x311)][_0x445bd4],_0x488585=_0x39bb6c[_0x16d78e(0x15b)](_0x445bd4);return!_0x4f7b44||!_0x488585?null:_0x5c238f(_0x16d78e(0x363),{'data-dashboard-widget':_0x4f7b44['id'],'aria-label':_0x4f7b44[_0x16d78e(0x239)]??_0x489fe2(_0x4f7b44),'className':_0x54dbd2(_0x16d78e(0x3f3),_0x4f7b44[_0x16d78e(0x1b9)]===_0x28a714[_0x16d78e(0x341)]||_0x4f7b44[_0x16d78e(0x1b9)]===_0x28a714[_0x16d78e(0x1ca)]?'univer-bg-transparent\x20dark:!univer-bg-transparent':_0x16d78e(0x151),_0x15ebde&&_0x4f0f97===_0x4f7b44['id']?'univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500':_0x16d78e(0x31f)),'style':{'gridColumn':_0x488585[_0x16d78e(0x362)]+0x1+_0x16d78e(0x3f6)+_0x488585[_0x16d78e(0x394)],'gridRow':_0x488585[_0x16d78e(0x2b6)]+0x1+_0x16d78e(0x3f6)+_0x488585['rowSpan']},'tabIndex':_0x15ebde?0x0:void 0x0,'onClick':_0x15ebde?()=>_0x3a4d61==null?void 0x0:_0x3a4d61(_0x4f7b44['id']):void 0x0,'onFocus':_0x15ebde?()=>_0x3a4d61==null?void 0x0:_0x3a4d61(_0x4f7b44['id']):void 0x0,'children':[_0x15ebde&&_0x1fa005('button',{'type':'button','aria-label':_0x58691a,'data-dashboard-drag-handle':_0x4f7b44['id'],'className':_0x54dbd2('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',_0x4f5985&&((_0x4e93f6=_0x3bbe7e[_0x16d78e(0x23e)])==null?void 0x0:_0x4e93f6['id'])===_0x4f7b44['id']&&_0x3bbe7e[_0x16d78e(0x23e)][_0x16d78e(0x272)]===_0x16d78e(0xff)?_0x16d78e(0x3d0):_0x16d78e(0xdb)),'onPointerDown':_0x27aca8=>_0x156601(_0x27aca8,_0x4f7b44,_0x16d78e(0xff)),'children':_0x1fa005(_0x229479,{'className':_0x16d78e(0x2e0),'aria-hidden':'true'})}),_0x15ebde&&_0x1fa005(_0x16d78e(0x1e8),{'className':_0x16d78e(0x2df),'children':_0x59407a==null?void 0x0:_0x59407a(_0x4f7b44)}),_0x1fa005(_0x16d78e(0x1e8),{'className':_0x16d78e(0x264),'children':_0x3bd35d(_0x4f7b44)}),_0x15ebde&&ca[_0x16d78e(0x1ee)](({className:_0x3aa5d2,direction:_0x2f0cb7})=>{const _0x29f585=_0x16d78e;let _0x232bf9=_0x2f0cb7[_0x29f585(0x2c8)]===0x2;return _0x1fa005(_0x29f585(0x3b9),{'type':_0x29f585(0x3b9),'aria-label':_0x39515e,'data-dashboard-resize-handle':_0x2f0cb7,'data-dashboard-resize-control':_0x232bf9?_0x2f0cb7:void 0x0,'data-dashboard-resize-edge':_0x232bf9?void 0x0:_0x2f0cb7,'className':_0x54dbd2(_0x29f585(0x36a),_0x232bf9?_0x29f585(0x18c):'univer-border-0\x20univer-bg-transparent',_0x3aa5d2,_0x4f0f97===_0x4f7b44['id']&&_0x29f585(0x389)),'onPointerDown':_0x5cc1b1=>_0x156601(_0x5cc1b1,_0x4f7b44,_0x29f585(0xed),_0x2f0cb7)},_0x2f0cb7);})]},_0x4f7b44['id']);})})});}var ua;const Q={'axis':{..._0x152708,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x540e6b,'heatmap':_0x5badfc,'indicatorLine':_0x252eea,'legend':_0x337e65,'lineAndArea':_0x5e0a33,'pareto':_0x38048e,'pie':_0x1c8b9e,'radar':_0x4bcca4,'relation':{..._0x3de6de,'useValueAsSymbolSize':!0x0},'series':{..._0x324182,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((ua=_0x2ce46e['allSeriesStyle'])==null?void 0x0:ua[_0x3447f8(0x284)])??!0x1}},'style':_0xd40535,'titles':_0x289a2d,'trendline':_0x4c6d30,'waterfall':{..._0x15085e,'useSubtotal':!0x0},'waterfallStyle':_0x3f0564,'wordCloud':_0x145212},da=[_0x44b61b['Line'],_0x44b61b[_0x3447f8(0x35a)],_0x44b61b[_0x3447f8(0x32e)],_0x44b61b[_0x3447f8(0x2ab)],_0x44b61b['Funnel'],_0x44b61b[_0x3447f8(0x108)],_0x44b61b[_0x3447f8(0x327)],_0x44b61b[_0x3447f8(0x27c)],_0x44b61b[_0x3447f8(0x172)],_0x44b61b[_0x3447f8(0x265)],_0x44b61b[_0x3447f8(0xf7)],_0x44b61b[_0x3447f8(0x1f8)],_0x44b61b[_0x3447f8(0x1e2)],_0x44b61b['Gauge'],_0x44b61b[_0x3447f8(0x2de)]];function fa(_0x36dd43){const _0x4242b3=_0x3447f8;let {config:_0x5c0f55,onChange:_0x545604,runtime:_0x407b57,tableName:_0x192c96}=_0x36dd43,_0x5b6361=_0x53af8d(Gr),_0x1a27e0=_0x53af8d(_0x255457),[_0x25cf48,_0xda7743]=_0xee90d5(_0x2599aa[_0x4242b3(0x2aa)]),_0x730d61=_0x125177(()=>new _0x3832ea(_0x407b57[_0x4242b3(0x2c4)],{'commit':_0x1339b2=>{const _0x101d2e=_0x4242b3;var _0x2360e7;let _0x582a59=_0x407b57[_0x101d2e(0x2c4)],_0x1b106e=_0x3fd4b5(_0x1339b2,{'series':(_0x2360e7=_0x582a59[_0x101d2e(0x2b0)])==null?void 0x0:_0x2360e7[_0x101d2e(0x283)],'currentChartType':_0x582a59[_0x101d2e(0x13e)],'currentStyle':_0x582a59[_0x101d2e(0xc1)],'currentContext':_0x582a59[_0x101d2e(0x1e3)],'currentDataAggregation':_0x582a59[_0x101d2e(0x219)]});_0x545604({'chart':pa(_0x5c0f55[_0x101d2e(0x1eb)],_0x1b106e)});}}),[_0x5c0f55['chart'],_0x545604,_0x407b57]),_0x1f2d9d=_0x125177(()=>_0x4fc7e8(_0x1016f1[_0x4242b3(0x1ee)](_0x1977eb=>({..._0x1977eb,'label':_0x1a27e0['t'](_a(_0x1977eb[_0x4242b3(0x2ad)]))}))),[_0x1a27e0]);return _0x1fa005(_0x4bde66,{'chartUIService':_0x5b6361,'hostAdapter':_0x730d61,'children':_0x5c238f(_0x4242b3(0x1e8),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x1fa005(_0x283559,{'ariaLabel':_0x1a27e0['t'](_0x4242b3(0x207)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x1a27e0['t'](_0x4242b3(0x169)),'panelId':_0x4242b3(0x1dc),'value':_0x2599aa[_0x4242b3(0x2aa)]},{'label':_0x1a27e0['t'](_0x4242b3(0x2e7)),'panelId':_0x4242b3(0x243),'value':_0x2599aa[_0x4242b3(0x33f)]}],'value':_0x25cf48,'onChange':_0xda7743}),_0x25cf48===_0x2599aa[_0x4242b3(0x2aa)]?_0x1fa005(_0x2a9829,{'id':_0x4242b3(0x1dc),'label':_0x1a27e0['t'](_0x4242b3(0x169)),'children':_0x5c238f('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x1fa005(_0x28e1f3,{'options':_0x1f2d9d}),_0x1fa005(_0x2fc38a,{}),_0x1fa005(_0x57f87a,{}),_0x1fa005(ma,{}),_0x1fa005(_0x2fa3d3,{}),_0x5c238f(_0x4242b3(0x1e8),{'children':[_0x1fa005(_0x36a7b3,{'title':_0x1a27e0['t'](_0x4242b3(0x1ed))}),_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':_0x192c96})]}),_0x1fa005(_0x3a6df3,{'orientationControl':_0x1fa005(_0x10d589,{'size':_0x4242b3(0x11d),'onClick':()=>_0x545604({'chart':{..._0x5c0f55[_0x4242b3(0x1eb)],'orient':_0x5c0f55[_0x4242b3(0x1eb)]['orient']===_0x4242b3(0x2b6)?_0x4242b3(0x362):_0x4242b3(0x2b6)}}),'children':_0x1a27e0['t']('bases-dashboard-ui.chart.common.switchRowColumn')})}),_0x1fa005(_0x20436f,{}),_0x1fa005(_0x4b136e,{'defaultValues':Q[_0x4242b3(0x28e)]}),_0x5c238f(_0x4242b3(0x1e8),{'children':[_0x1fa005(_0x36a7b3,{'title':_0x1a27e0['t']('bases-dashboard-ui.pivot.display')}),_0x1fa005(_0x4b13fc,{'value':_0x5c0f55[_0x4242b3(0x2f2)],'options':[{'value':_0x4242b3(0xf9),'label':_0x1a27e0['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':_0x4242b3(0x1eb),'label':_0x1a27e0['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':_0x4242b3(0x173),'label':_0x1a27e0['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0xa09d39=>{const _0x314da7=_0x4242b3;(_0xa09d39===_0x314da7(0xf9)||_0xa09d39==='chart'||_0xa09d39===_0x314da7(0x173))&&_0x545604({'displayMode':_0xa09d39});}})]})]})}):_0x1fa005(_0x2a9829,{'id':_0x4242b3(0x243),'label':_0x1a27e0['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x1fa005(ha,{})})]})});}function pa(_0x10190f,_0x28156c){const _0x49ea92=_0x3447f8;return{..._0x10190f,'type':_0x28156c[_0x49ea92(0x13e)]??_0x10190f['type'],'style':_0x28156c['style']??_0x10190f[_0x49ea92(0xc1)],'context':_0x28156c['context']??_0x10190f['context'],'dataAggregation':_0x28156c[_0x49ea92(0x219)]??_0x10190f[_0x49ea92(0x219)]};}function ma(){const _0x1050b7=_0x3447f8;let _0x10d189=_0x3d34ba();return _0x1fa005(_0x5103da,{'visible':da[_0x1050b7(0xf2)](_0x39edc1=>!_0x51a8fc[_0x1050b7(0x275)](_0x10d189,_0x39edc1))});}function $(_0x1c06cf){const _0x115ab1=_0x3447f8;return _0x5c238f(_0x8a2ccf,{'id':_0x1c06cf['id'],'children':[_0x1fa005(_0x32883f,{'children':_0x1c06cf[_0x115ab1(0x24a)]}),_0x1fa005(_0x3206aa,{'children':_0x1c06cf['children']})]});}function ha(){const _0x4bde95=_0x3447f8;let _0x305a44=_0x53af8d(_0x255457),_0x18d6be=_0x3d34ba(),_0x28c862=_0x20bafb(),[_0x1f22cc,_0xdeb400]=_0xee90d5(null),_0x15ea75=_0x51a8fc[_0x4bde95(0x275)](_0x18d6be,_0x44b61b[_0x4bde95(0x157)]),_0x364459=_0x18d6be===_0x44b61b[_0x4bde95(0x35a)],_0x1c2aeb=_0x18d6be===_0x44b61b[_0x4bde95(0x32e)],_0x2644ce=_0x18d6be===_0x44b61b[_0x4bde95(0x23c)],_0x6cb5be=_0x51a8fc['baseOn'](_0x18d6be,_0x44b61b['Bubble']),_0x253f25=_0x18d6be===_0x44b61b[_0x4bde95(0x108)],_0x3ce87f=_0x18d6be===_0x44b61b[_0x4bde95(0x3cb)],_0x101ba7=_0x18d6be===_0x44b61b['Pareto'],_0x6c049e=_0x18d6be===_0x44b61b[_0x4bde95(0x27c)],_0x3265e2=_0xe0cb49(_0x18d6be,_0x44db8c[_0x4bde95(0x27f)])&&!_0x6cb5be&&!_0x101ba7,_0x5f52b=ga(_0x18d6be,_0x305a44);return _0x5c238f(_0x11d43d,{'value':_0x1f22cc,'onChange':_0xdeb400,'children':[_0x1fa005($,{'id':_0x2ecbeb['ChartStyle'],'label':_0x305a44['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0x1fa005(_0x20d08d,{'defaultValues':Q[_0x4bde95(0xc1)]})}),_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x2ea)],'label':_0x305a44['t']('bases-dashboard-ui.chart.common.chartAndAxisTitles'),'children':_0x1fa005(_0x245340,{'commitMode':_0x4bde95(0x303),'defaultValues':Q[_0x4bde95(0xbb)]})}),_0x3265e2&&_0x1fa005($,{'id':_0x2ecbeb['Series'],'label':_0x305a44['t'](_0x4bde95(0x21b)),'children':_0x1fa005(_0x33c14c,{'defaultValues':Q[_0x4bde95(0x283)],'NumberFormatField':_0x3220da})}),_0x3ce87f&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x216)],'label':_0x305a44['t'](_0x4bde95(0x3ce)),'children':_0x1fa005(_0x166174,{'defaultValues':Q['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x105ada,target:_0x14fb1d})=>_0x14fb1d===_0x1aea73[_0x4bde95(0x293)]?_0x305a44['t'](_0x4bde95(0x236)):_0x105ada?_0x105ada+'-('+_0x305a44['t']('bases-dashboard-ui.chart.'+(_0x14fb1d===_0x1aea73['Positive']?_0x4bde95(0x38c):'waterfall.negative'))+')':'','NumberFormatField':_0x3220da})}),_0x101ba7&&_0x5c238f(_0x594ef8,{'children':[_0x1fa005($,{'id':_0x2ecbeb['ParetoBarSeries'],'label':_0x305a44['t']('bases-dashboard-ui.chart.section.paretoBar'),'children':_0x1fa005(_0x44a0fb,{'defaultValues':Q[_0x4bde95(0x189)],'NumberFormatField':_0x3220da,'showDataPointEditor':!0x0,'target':_0x4bde95(0xc3)})}),_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x32a)],'label':_0x305a44['t'](_0x4bde95(0x31e)),'children':_0x1fa005(_0x44a0fb,{'defaultValues':Q[_0x4bde95(0x189)],'NumberFormatField':_0x3220da,'showDataPointEditor':!0x1,'target':_0x4bde95(0x3e8)})})]}),_0x15ea75&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x1ce)],'label':_0x305a44['t'](_0x4bde95(0x2e3)),'children':_0x1fa005(_0x4b289c,{'defaultValues':Q[_0x4bde95(0x3f5)],'NumberFormatField':_0x3220da})}),_0x1c2aeb&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x32e)],'label':_0x305a44['t'](_0x4bde95(0xf0)),'children':_0x1fa005(_0x13d7d7,{'defaultValues':Q[_0x4bde95(0x3c0)]})}),_0x364459&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x35a)],'label':_0x305a44['t'](_0x4bde95(0x1cd)),'children':_0x1fa005(_0x1d9e1f,{'defaultValues':Q['radar']})}),_0x2644ce&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x23c)],'label':_0x305a44['t'](_0x4bde95(0x10b)),'children':_0x1fa005(_0x7de25d,{'defaultValues':Q[_0x4bde95(0x306)],'gapControl':_0x4bde95(0x329)})}),_0x6c049e&&_0x1fa005($,{'id':_0x2ecbeb['Heatmap'],'label':_0x305a44['t'](_0x4bde95(0x217)),'children':_0x1fa005(_0x51ee3a,{'defaultValues':Q['heatmap']})}),_0x253f25&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x108)],'label':_0x305a44['t'](_0x4bde95(0x331)),'children':_0x1fa005(_0xa63c30,{'defaultValues':Q[_0x4bde95(0x37d)]})}),_0x2aabdc(_0x18d6be)&&_0x1fa005($,{'id':_0x2ecbeb['LineAndArea'],'label':_0x305a44['t'](_0x4bde95(0x328)),'children':_0x1fa005(_0x171453,{'defaultValues':Q[_0x4bde95(0x133)],'lineStyleControl':_0x4bde95(0x2db)})}),_0xe0cb49(_0x18d6be,_0x44db8c[_0x4bde95(0x2fa)])&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x2fa)],'label':_0x305a44['t'](_0x4bde95(0x2ca)),'children':_0x1fa005(_0x4d3419,{'defaultValues':Q[_0x4bde95(0x3c8)]})}),_0xe0cb49(_0x18d6be,_0x44db8c['Axes'])&&_0x5c238f(_0x594ef8,{'children':[_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x2e4)],'label':_0x305a44['t'](_0x4bde95(0x287)),'children':_0x1fa005(_0x3ee0e8,{'axis':'x','defaultValues':Q[_0x4bde95(0x288)],'NumberFormatField':_0x3220da})}),_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x3d3)],'label':_0x305a44['t']('bases-dashboard-ui.chart.common.verticalAxis'),'children':_0x1fa005(_0x3ee0e8,{'axis':'y','defaultValues':Q[_0x4bde95(0x288)],'NumberFormatField':_0x3220da})}),_0x28c862&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x180)],'label':_0x305a44['t']('bases-dashboard-ui.chart.common.rightVerticalAxis'),'children':_0x1fa005(_0x3ee0e8,{'axis':_0x4bde95(0x307),'defaultValues':Q[_0x4bde95(0x288)],'NumberFormatField':_0x3220da})}),_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x3b7)],'label':_0x305a44['t']('bases-dashboard-ui.chart.section.gridlinesAndTicks'),'children':_0x1fa005(_0x3fd0a7,{'defaultValues':Q[_0x4bde95(0x288)]})})]}),_0xe0cb49(_0x18d6be,_0x44db8c[_0x4bde95(0x409)])&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x409)],'label':_0x305a44['t'](_0x4bde95(0x220)),'children':_0x1fa005(_0x566467,{'defaultValues':Q[_0x4bde95(0x140)]})}),_0x5b26be(_0x18d6be)&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x194)],'label':_0x305a44['t'](_0x4bde95(0x1c3)),'children':_0x1fa005(_0x3c2f68,{'defaultValues':Q[_0x4bde95(0x230)]})}),_0x5f52b&&_0x1fa005($,{'id':_0x5f52b['id'],'label':_0x5f52b['label'],'children':_0x1fa005(_0x2412a5,{})})]});}function ga(_0x400fbf,_0x1557ab){const _0x56b211=_0x3447f8;let _0x572f5c={[_0x44b61b[_0x56b211(0x265)]]:{'id':_0x2ecbeb[_0x56b211(0x265)],'localeKey':_0x56b211(0x267)},[_0x44b61b[_0x56b211(0xf7)]]:{'id':_0x2ecbeb[_0x56b211(0xf7)],'localeKey':'bases-dashboard-ui.chart.section.histogram'},[_0x44b61b[_0x56b211(0x1f8)]]:{'id':_0x2ecbeb[_0x56b211(0x1f8)],'localeKey':_0x56b211(0x2a9)},[_0x44b61b[_0x56b211(0x1e2)]]:{'id':_0x2ecbeb[_0x56b211(0x1e2)],'localeKey':_0x56b211(0x205)},[_0x44b61b[_0x56b211(0x37b)]]:{'id':_0x2ecbeb['Gauge'],'localeKey':_0x56b211(0x305)},[_0x44b61b[_0x56b211(0x2de)]]:{'id':_0x2ecbeb[_0x56b211(0x2de)],'localeKey':_0x56b211(0x354)}}[_0x400fbf];return _0x572f5c?{'id':_0x572f5c['id'],'label':_0x1557ab['t'](_0x572f5c[_0x56b211(0x139)])}:null;}function _a(_0x56985a){const _0x5234db=_0x3447f8;return _0x5234db(0x148)+_0x56985a;}function va({onChange:_0x79863b,onEditData:_0x10b17c,runtime:_0x1867cf,sourceChart:_0x49da74,sourceName:_0x4dce09,widget:_0x265da0}){const _0x3ec2dc=_0x3447f8;let _0x5d295a=_0x53af8d(Gr),_0x301fb9=_0x53af8d(_0x255457),[_0x5c7620,_0x2a47ca]=_0xee90d5(_0x2599aa[_0x3ec2dc(0x2aa)]),_0x58f702=_0x265da0[_0x3ec2dc(0x1eb)]??_0x49da74,_0x108349=_0x125177(()=>new _0x3832ea(_0x1867cf['model'],{'commit':_0x395810=>{const _0xfb41f7=_0x3ec2dc;var _0x1c0a82;let _0x22f5a9=_0x1867cf['model'],_0x302f02=_0x3fd4b5(_0x395810,{'series':(_0x1c0a82=_0x22f5a9['config'])==null?void 0x0:_0x1c0a82['series'],'currentChartType':_0x22f5a9[_0xfb41f7(0x13e)],'currentStyle':_0x22f5a9[_0xfb41f7(0xc1)],'currentContext':_0x22f5a9[_0xfb41f7(0x1e3)],'currentDataAggregation':_0x22f5a9[_0xfb41f7(0x219)]});_0x79863b({..._0x265da0,'chart':pa(_0x58f702,_0x302f02)})[_0xfb41f7(0x308)](()=>void 0x0);}}),[_0x58f702,_0x79863b,_0x1867cf,_0x265da0]),_0x1c83f5=_0x125177(()=>_0x4fc7e8(_0x1016f1[_0x3ec2dc(0x1ee)](_0x185402=>({..._0x185402,'label':_0x301fb9['t'](ya(_0x185402['labelId']))}))),[_0x301fb9]);return _0x1fa005(_0x4bde66,{'chartUIService':_0x5d295a,'hostAdapter':_0x108349,'children':_0x5c238f(_0x3ec2dc(0x1e8),{'data-dashboard-chart-inspector':!0x0,'className':_0x3ec2dc(0x1bd),'children':[_0x1fa005(_0x283559,{'ariaLabel':_0x301fb9['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x3ec2dc(0x302),'items':[{'label':_0x301fb9['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0x3ec2dc(0x318),'value':_0x2599aa[_0x3ec2dc(0x2aa)]},{'label':_0x301fb9['t'](_0x3ec2dc(0x2e7)),'panelId':_0x3ec2dc(0x321),'value':_0x2599aa[_0x3ec2dc(0x33f)]}],'value':_0x5c7620,'onChange':_0x2a47ca}),_0x5c7620===_0x2599aa[_0x3ec2dc(0x2aa)]?_0x1fa005(_0x2a9829,{'id':_0x3ec2dc(0x318),'label':_0x301fb9['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x5c238f('div',{'className':_0x3ec2dc(0x228),'children':[_0x1fa005(_0x28e1f3,{'options':_0x1c83f5}),_0x1fa005(_0x2fc38a,{}),_0x1fa005(_0x57f87a,{}),_0x1fa005(ma,{}),_0x1fa005(_0x2fa3d3,{}),_0x5c238f(_0x3ec2dc(0x1e8),{'children':[_0x1fa005(_0x36a7b3,{'title':_0x301fb9['t'](_0x3ec2dc(0x368))}),_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':_0x4dce09}),_0x1fa005(_0x10d589,{'className':_0x3ec2dc(0x32d),'onClick':_0x10b17c,'children':_0x301fb9['t'](_0x3ec2dc(0xe5))})]})]})}):_0x1fa005(_0x2a9829,{'id':_0x3ec2dc(0x321),'label':_0x301fb9['t'](_0x3ec2dc(0x2e7)),'children':_0x1fa005(ha,{})})]})});}function ya(_0x51d5d4){const _0x58df55=_0x3447f8;return _0x58df55(0x148)+_0x51d5d4;}const ba=[_0x3447f8(0x20a),'number',_0x3447f8(0x277),_0x3447f8(0x39b),'grouped',_0x3447f8(0x3da)];function xa({base:_0x5ccd70,onChange:_0x3c5f73,onSelectBackgroundImage:_0x18ee2b,widget:_0x5af833}){const _0x42c392=_0x3447f8;var _0x5eb1fd;let _0x36b4ce=_0x53af8d(_0x255457),_0x3800a3=_0x53af8d(_0x22d94c),_0x4fc3a1=_0x129d28(()=>_0x3800a3[_0x42c392(0x14a)],_0x3800a3[_0x42c392(0x11c)](),!0x1,[_0x3800a3]),_0x53f8a7=_0x129d28(()=>_0x3800a3['darkMode$'],_0x3800a3[_0x42c392(0x247)],!0x1,[_0x3800a3]),[_0x340c35,_0x355768]=_0xee90d5('data'),[_0x199e52,_0x38117c]=_0xee90d5(!0x1),_0x201447=xr(_0x5af833),_0x5e9bdb=_0x5ccd70[_0x42c392(0x3b6)]()[_0x42c392(0x186)][_0x5af833[_0x42c392(0x154)]],_0xb57d61=_0x5e9bdb==null?void 0x0:_0x5e9bdb[_0x42c392(0x286)][_0x42c392(0x2c9)](_0x2672a3=>_0x5e9bdb[_0x42c392(0x2dc)][_0x2672a3]),_0x1aaae2=_0xb57d61?_0x5e9bdb==null?void 0x0:_0x5e9bdb['views'][_0xb57d61]:void 0x0,_0x143220=_0x5e9bdb&&_0x1aaae2?_0x11a6ff(_0x5ccd70[_0x42c392(0x3b6)](),_0x5e9bdb,_0x1aaae2)[_0x42c392(0x1ee)](_0x55691b=>({..._0x55691b,'current':!0x1})):[],_0x4f24fc=((_0x5eb1fd=_0x5af833['shapeData']['formulaBinding'])==null?void 0x0:_0x5eb1fd[_0x42c392(0x392)])??'',_0x59dd5d=_0x58fab2=>_0x3c5f73(Sr(_0x5af833,_0x58fab2))[_0x42c392(0x308)](()=>void 0x0),_0x47668b=_0x2618f1=>_0x3c5f73({..._0x5af833,'description':_0x2618f1})[_0x42c392(0x308)](()=>void 0x0);return _0x5c238f('div',{'data-dashboard-formula-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x1fa005(_0x1eff91,{'className':'univer-m-3','items':[{'value':_0x42c392(0x279),'label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.data')},{'value':_0x42c392(0xc1),'label':_0x36b4ce['t'](_0x42c392(0xf1))}],'value':_0x340c35,'onChange':_0x355768}),_0x1fa005(_0x42c392(0x1e8),{'className':_0x42c392(0x105),'children':_0x340c35===_0x42c392(0x279)?_0x5c238f(_0x42c392(0x1e8),{'className':_0x42c392(0x1a8),'children':[_0x1fa005(Sa,{'label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.description'),'children':_0x1fa005(_0x2647d7,{'value':_0x5af833[_0x42c392(0x36b)]??_0x5af833[_0x42c392(0x239)]??'','onChange':_0x47668b,'onBlur':_0x5b5421=>_0x47668b(_0x5b5421[_0x42c392(0x3ea)][_0x42c392(0x2c2)])})}),_0x1fa005(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x368)),'children':_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':(_0x5e9bdb==null?void 0x0:_0x5e9bdb[_0x42c392(0x2cd)])??_0x36b4ce['t'](_0x42c392(0xe2))})}),_0x5c238f(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x257)),'children':[_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':_0x3ae876(_0x4f24fc,_0x143220)}),_0x1fa005(_0x10d589,{'className':_0x42c392(0x32d),'onClick':()=>_0x38117c(!0x0),'children':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.editFormula')})]})]}):_0x5c238f(_0x42c392(0x1e8),{'className':_0x42c392(0x1a8),'children':[_0x1fa005(_0x2d27c8,{'emptyLabel':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x36b4ce['t'](_0x42c392(0x19f)),'pickerFallbackValue':_0x53f8a7?_0x4fc3a1[_0x42c392(0x3fe)][0x384]:_0x4fc3a1[_0x42c392(0x3fe)][0x0],'resetLabel':_0x36b4ce['t'](_0x42c392(0x1e0)),'value':_0x201447[_0x42c392(0x134)]??null,'onChange':_0x259e62=>_0x59dd5d({'backgroundColor':_0x259e62??void 0x0})}),_0x5c238f(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x22e)),'children':[_0x5c238f(_0x42c392(0x1e8),{'className':_0x42c392(0x3d4),'children':[_0x5c238f(_0x10d589,{'className':_0x42c392(0x1cc),'onClick':()=>{const _0x5d51c7=_0x42c392;_0x18ee2b()[_0x5d51c7(0x401)](_0x57fea8=>{const _0x23eaf4=_0x5d51c7;if(_0x57fea8){var _0x2065ab;return _0x59dd5d({'backgroundImage':{..._0x57fea8,'fit':((_0x2065ab=_0x201447[_0x23eaf4(0x294)])==null?void 0x0:_0x2065ab['fit'])??'cover'}});}})[_0x5d51c7(0x308)](()=>void 0x0);},'children':[_0x1fa005(_0x34ddb8,{}),_0x201447[_0x42c392(0x294)]?_0x36b4ce['t'](_0x42c392(0x3fd)):_0x36b4ce['t'](_0x42c392(0x3df))]}),_0x201447[_0x42c392(0x294)]&&_0x1fa005(_0x10d589,{'aria-label':_0x36b4ce['t'](_0x42c392(0x153)),'title':_0x36b4ce['t'](_0x42c392(0x153)),'onClick':()=>_0x59dd5d({'backgroundImage':void 0x0}),'children':_0x1fa005(_0x306b68,{})})]}),_0x201447[_0x42c392(0x294)]&&_0x1fa005(_0x1eff91,{'className':_0x42c392(0x111),'items':[{'value':_0x42c392(0x285),'label':_0x36b4ce['t'](_0x42c392(0x1ad))},{'value':'contain','label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.contain')}],'value':_0x201447[_0x42c392(0x294)][_0x42c392(0x160)],'onChange':_0x5a0194=>_0x59dd5d({'backgroundImage':_0x201447[_0x42c392(0x294)]?{..._0x201447[_0x42c392(0x294)],'fit':_0x5a0194}:void 0x0})})]}),_0x1fa005(_0x2d27c8,{'emptyLabel':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x36b4ce['t'](_0x42c392(0x26d)),'pickerFallbackValue':_0x53f8a7?_0x4fc3a1[_0x42c392(0x3fe)][0x32]:_0x4fc3a1['gray'][0x3e8],'resetLabel':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x201447[_0x42c392(0xef)]??null,'onChange':_0x2d740e=>_0x59dd5d({'textColor':_0x2d740e??void 0x0})}),_0x1fa005(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x349)),'children':_0x1fa005(_0x1eff91,{'items':[{'value':_0x42c392(0x1b4),'label':_0x36b4ce['t'](_0x42c392(0x165))},{'value':_0x42c392(0x1e4),'label':_0x36b4ce['t'](_0x42c392(0x22d))},{'value':_0x42c392(0x314),'label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x201447[_0x42c392(0x218)],'onChange':_0x3cadde=>_0x59dd5d({'alignment':_0x3cadde})})}),_0x5c238f(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x3c5)),'children':[_0x1fa005(_0x1eff91,{'items':[{'value':'auto','label':_0x36b4ce['t'](_0x42c392(0x162))},{'value':_0x42c392(0x1b1),'label':_0x36b4ce['t'](_0x42c392(0x3d5))}],'value':_0x201447[_0x42c392(0x38a)],'onChange':_0x495cbf=>_0x59dd5d({'fontSizeMode':_0x495cbf})}),_0x201447[_0x42c392(0x38a)]==='custom'&&_0x1fa005(_0x499d19,{'className':'univer-mt-2','min':0xc,'max':0x78,'value':_0x201447['fontSize'],'onChange':_0x1f8e27=>_0x59dd5d({'fontSize':_0x1f8e27??0x28,'fontSizeMode':'custom'})})]}),_0x1fa005(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x20c)),'children':_0x1fa005(_0x4b13fc,{'value':_0x201447[_0x42c392(0x235)],'options':[{'value':'general','label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.general')},{'value':_0x42c392(0x30d),'label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.number')},{'value':_0x42c392(0x277),'label':_0x36b4ce['t'](_0x42c392(0x260))},{'value':'currency','label':_0x36b4ce['t'](_0x42c392(0x193))},{'value':'grouped','label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':_0x42c392(0x3da),'label':_0x36b4ce['t'](_0x42c392(0x32b))}],'onChange':_0x37bd2b=>{const _0x4a3b47=_0x42c392;let _0x36abd8=ba[_0x4a3b47(0x2c9)](_0x1b819f=>_0x1b819f===_0x37bd2b);_0x36abd8&&_0x59dd5d({'numberFormat':_0x36abd8});}})}),_0x201447[_0x42c392(0x235)]===_0x42c392(0x39b)&&_0x1fa005(Sa,{'label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x1fa005(_0x2647d7,{'value':_0x201447[_0x42c392(0x39b)],'onChange':_0x570e92=>_0x59dd5d({'currency':_0x570e92[_0x42c392(0x121)](0x0,0x3)[_0x42c392(0x390)]()})})}),_0x201447['numberFormat']!=='general'&&_0x1fa005(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x12c)),'children':_0x1fa005(_0x499d19,{'min':0x0,'max':0x8,'value':_0x201447['decimalPlaces'],'onChange':_0x10bed3=>_0x59dd5d({'decimalPlaces':_0x10bed3??0x0})})})]})}),_0x199e52&&_0x1fa005(_0x1ab529,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1fa005(_0x1d7a56,{'tables':_0x143220,'formula':_0x3ae876(_0x4f24fc,_0x143220),'onCancel':()=>_0x38117c(!0x1),'onSave':_0x4a8961=>{const _0x29c9ed=_0x42c392;let _0x1de046=_0x5af833[_0x29c9ed(0x100)][_0x29c9ed(0x23f)]??{'formula':''};return _0x3c5f73({..._0x5af833,'shapeData':{..._0x5af833[_0x29c9ed(0x100)],'formulaBinding':{..._0x1de046,'formula':_0x3949ea(_0x4a8961,_0x143220)}}})[_0x29c9ed(0x401)](()=>_0x38117c(!0x1))['catch'](()=>void 0x0);}})})]});}function Sa({children:_0x186c59,label:_0x1a790b}){const _0x16f007=_0x3447f8;return _0x5c238f(_0x16f007(0x1e8),{'role':_0x16f007(0x21e),'aria-label':_0x1a790b,'className':_0x16f007(0x393),'children':[_0x1fa005('span',{'children':_0x1a790b}),_0x186c59]});}const Ca={[_0x411cb8['IS']]:_0x3447f8(0x1e1),[_0x411cb8[_0x3447f8(0x3b0)]]:_0x3447f8(0x11e),[_0x411cb8[_0x3447f8(0x269)]]:_0x3447f8(0x254),[_0x411cb8[_0x3447f8(0x2e2)]]:'bases-dashboard-ui.operators.notContains',[_0x411cb8[_0x3447f8(0x34e)]]:_0x3447f8(0x356),[_0x411cb8[_0x3447f8(0x3c7)]]:_0x3447f8(0x34a),[_0x411cb8[_0x3447f8(0x16e)]]:_0x3447f8(0x2ed),[_0x411cb8['GREATER_THAN_OR_EQUAL']]:_0x3447f8(0x1fd),[_0x411cb8[_0x3447f8(0x249)]]:_0x3447f8(0x402),[_0x411cb8[_0x3447f8(0x1d0)]]:'bases-dashboard-ui.operators.lessThanOrEqual',[_0x411cb8[_0x3447f8(0x26e)]]:_0x3447f8(0x1e7),[_0x411cb8[_0x3447f8(0x24c)]]:_0x3447f8(0xd4)};function wa({disabled:_0x4beb41,fields:_0x32d639,filter:_0x244ebb,onChange:_0x518356}){const _0x5dee62=_0x3447f8;let _0x5026ff=_0x53af8d(_0x255457),_0x4b4523=(_0x244ebb==null?void 0x0:_0x244ebb[_0x5dee62(0x1da)])??[];return _0x4b4523['length']?_0x1fa005(_0x5dee62(0x1e8),{'className':_0x5dee62(0x115),'children':_0x4b4523['map']((_0x3eab71,_0x610825)=>{const _0xd39a80=_0x5dee62;let _0x9d315f=_0x32d639[_0xd39a80(0x2c9)](_0x23e2ce=>_0x23e2ce['id']===_0x3eab71['fieldId']);return _0x5c238f(_0xd39a80(0x1e8),{'className':_0xd39a80(0x1b6),'children':[_0x5c238f(_0xd39a80(0x1e8),{'className':_0xd39a80(0xd5),'children':[_0x1fa005(_0xd39a80(0x40a),{'className':_0xd39a80(0x124),'children':(_0x9d315f==null?void 0x0:_0x9d315f[_0xd39a80(0x2cd)])??_0x3eab71[_0xd39a80(0x1e5)]}),_0x1fa005('span',{'className':_0xd39a80(0x1f6),'children':_0x5026ff['t'](Ca[_0x3eab71['operator']])})]}),Ma(_0x3eab71['operator'])&&_0x1fa005(Ea,{'disabled':_0x4beb41,'field':_0x9d315f,'value':_0x3eab71['operand'],'onChange':_0x2ed01d=>_0x518356(ka(_0x244ebb,_0x610825,{'operand':_0x2ed01d}))})]},Fa(_0x4b4523,_0x3eab71,_0x610825));})}):_0x5c238f(_0x5dee62(0x1e8),{'className':'univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','children':[_0x1fa005(_0x48629d,{'className':'univer-mx-auto\x20univer-size-6'}),_0x1fa005(_0x5dee62(0x40a),{'className':'univer-text-sm','children':_0x5026ff['t'](_0x5dee62(0x253))})]});}function Ta({fields:_0x34303e,filter:_0x226ffd,onChange:_0x5e01c4,onClear:_0x5e4d78}){const _0x3eabcd=_0x3447f8;let _0x534e75=_0x53af8d(_0x255457),_0x3024b1=(_0x226ffd==null?void 0x0:_0x226ffd[_0x3eabcd(0x1da)])??[];return _0x5c238f(_0x3eabcd(0x1e8),{'data-dashboard-filter-inspector':!0x0,'className':_0x3eabcd(0x248),'children':[_0x3024b1[_0x3eabcd(0x1ee)]((_0x17dc86,_0x57a7b0)=>{const _0x261746=_0x3eabcd;let _0x4966a2=_0x34303e['find'](_0x36f84b=>_0x36f84b['id']===_0x17dc86[_0x261746(0x1e5)])??_0x34303e[0x0],_0x245349=Aa(_0x4966a2);return _0x5c238f(_0x261746(0x336),{'className':_0x261746(0x313),'children':[_0x5c238f(_0x261746(0x1e8),{'className':_0x261746(0x1d4),'children':[_0x1fa005(_0x4b13fc,{'value':_0x17dc86[_0x261746(0x1e5)],'options':_0x34303e[_0x261746(0x1ee)](_0xc9799a=>({'value':_0xc9799a['id'],'label':_0xc9799a[_0x261746(0x2cd)]})),'onChange':_0x4966c0=>{let _0x13c455=_0x34303e['find'](_0x4914aa=>_0x4914aa['id']===_0x4966c0);if(!_0x13c455)return;let _0x2d48c7=Aa(_0x13c455)[0x0];_0x5e01c4(ka(_0x226ffd,_0x57a7b0,Oa(_0x13c455,_0x2d48c7)));}}),_0x1fa005(_0x10d589,{'type':_0x261746(0x3b9),'variant':_0x261746(0x3ca),'aria-label':_0x534e75['t'](_0x261746(0x2da)),'className':_0x261746(0x3b2),'onClick':()=>_0x5e01c4(Da(_0x226ffd,_0x3024b1['filter']((_0x5f2b2f,_0x450624)=>_0x450624!==_0x57a7b0))),'children':_0x1fa005(_0x54b54f,{})})]}),_0x1fa005(_0x4b13fc,{'value':_0x17dc86[_0x261746(0x17b)],'options':_0x245349[_0x261746(0x1ee)](_0x212f80=>({'value':_0x212f80,'label':_0x534e75['t'](Ca[_0x212f80])})),'onChange':_0x4479b2=>{let _0x5397f4=_0x245349['find'](_0x23b817=>_0x23b817===_0x4479b2);_0x5397f4&&_0x5e01c4(ka(_0x226ffd,_0x57a7b0,{'operator':_0x5397f4,'operand':ja(_0x4966a2)}));}}),Ma(_0x17dc86[_0x261746(0x17b)])&&_0x1fa005(Ea,{'field':_0x4966a2,'value':_0x17dc86[_0x261746(0x366)],'onChange':_0x2dac04=>_0x5e01c4(ka(_0x226ffd,_0x57a7b0,{'operand':_0x2dac04}))})]},Fa(_0x3024b1,_0x17dc86,_0x57a7b0));}),_0x5c238f(_0x10d589,{'type':_0x3eabcd(0x3b9),'variant':_0x3eabcd(0x3ca),'className':'univer-w-full\x20univer-justify-start\x20univer-text-primary-600','disabled':!_0x34303e[_0x3eabcd(0x2c8)],'onClick':()=>{let _0x3b93=_0x34303e[0x0];if(!_0x3b93)return;let _0x25bce7=Aa(_0x3b93)[0x0];_0x5e01c4(Da(_0x226ffd,[..._0x3024b1,Oa(_0x3b93,_0x25bce7)]));},'children':[_0x1fa005(_0x34ddb8,{}),_0x534e75['t'](_0x3eabcd(0x202))]}),_0x3024b1[_0x3eabcd(0x2c8)]>0x0&&_0x1fa005(_0x10d589,{'type':_0x3eabcd(0x3b9),'variant':_0x3eabcd(0x3ca),'className':_0x3eabcd(0x3af),'onClick':_0x5e4d78,'children':_0x534e75['t'](_0x3eabcd(0x20b))})]});}function Ea({disabled:_0x5d7749,field:_0x2cf3b1,onChange:_0x558739,value:_0x34df50}){const _0x3bc264=_0x3447f8;let _0x58ef60=_0x53af8d(_0x255457),_0x5719c8=_0x2cf3b1==null?void 0x0:_0x2cf3b1[_0x3bc264(0x1b9)];if(_0x5719c8===_0x2940a8[_0x3bc264(0x1c9)]){let _0x4c9b8d=_0x34df50===!0x0||_0x34df50===_0x3bc264(0x2d2);return _0x5c238f(_0x10d589,{'type':_0x3bc264(0x3b9),'variant':'default','disabled':_0x5d7749,'className':_0x3bc264(0x299),'onClick':()=>_0x558739(!_0x4c9b8d),'children':[_0x1fa005(_0x22d09c,{'checked':_0x4c9b8d,'disabled':_0x5d7749,'onChange':()=>void 0x0}),_0x4c9b8d?_0x58ef60['t']('bases-dashboard-ui.dashboardInspector.checked'):_0x58ef60['t']('bases-dashboard-ui.dashboardInspector.unchecked')]});}return Ia(_0x5719c8)?_0x5d7749?_0x1fa005(_0x10d589,{'type':_0x3bc264(0x3b9),'variant':_0x3bc264(0x36e),'className':'univer-w-full','disabled':!0x0,'children':_0xa2fcf(_0x34df50==null||_0x34df50===''?void 0x0:String(_0x34df50))[_0x3bc264(0x11b)](_0x3bc264(0x385))}):_0x1fa005(_0x27fb91,{'className':_0x3bc264(0x3af),'value':_0xa2fcf(_0x34df50==null||_0x34df50===''?void 0x0:String(_0x34df50))['toDate'](),'onValueChange':_0x5e5257=>_0x558739(_0xa2fcf(_0x5e5257)[_0x3bc264(0x11b)](_0x3bc264(0x385)))}):Ra(_0x2cf3b1)?_0x1fa005(_0x57fab8,{'className':_0x3bc264(0x3af),'disabled':_0x5d7749,'value':Array[_0x3bc264(0x399)](_0x34df50)?_0x34df50[_0x3bc264(0x1ee)](String):[],'options':Na(_0x2cf3b1),'onChange':_0x558739}):_0x5719c8===_0x2940a8[_0x3bc264(0xc2)]||_0x5719c8===_0x2940a8[_0x3bc264(0x2c5)]||_0x5719c8===_0x2940a8['Person']?_0x1fa005(_0x4b13fc,{'className':_0x3bc264(0x3af),'disabled':_0x5d7749,'value':String(_0x34df50??''),'options':[{'value':'','label':_0x58ef60['t'](_0x3bc264(0x1aa))},...Na(_0x2cf3b1)],'onChange':_0x558739}):La(_0x5719c8)?_0x1fa005(_0x499d19,{'className':_0x3bc264(0x3af),'allowEmpty':!0x0,'disabled':_0x5d7749,'value':Number['isFinite'](Number(_0x34df50))?Number(_0x34df50):null,'onChange':_0x2df900=>_0x558739(_0x2df900??'')}):_0x1fa005(_0x2647d7,{'disabled':_0x5d7749,'value':String(_0x34df50??''),'placeholder':_0x58ef60['t'](_0x3bc264(0x3e1)),'onChange':_0x558739});}function Da(_0x39cc50,_0x2f3e09){return{'conjunction':(_0x39cc50==null?void 0x0:_0x39cc50['conjunction'])??_0x3a6b1d['AND'],'conditions':_0x2f3e09};}function Oa(_0x165ff6,_0x35238d){return Ma(_0x35238d)?{'fieldId':_0x165ff6['id'],'operator':_0x35238d,'operand':ja(_0x165ff6)}:{'fieldId':_0x165ff6['id'],'operator':_0x35238d};}function ka(_0x338703,_0x43b4f7,_0x5903d5){const _0x5d5498=_0x3447f8;return Da(_0x338703,((_0x338703==null?void 0x0:_0x338703[_0x5d5498(0x1da)])??[])[_0x5d5498(0x1ee)]((_0x55bdc6,_0x3b6dde)=>_0x3b6dde===_0x43b4f7?{..._0x55bdc6,..._0x5903d5}:_0x55bdc6));}function Aa(_0x2602c2){const _0x8ba18c=_0x3447f8;let _0x1e73b1=[_0x411cb8[_0x8ba18c(0x34e)],_0x411cb8[_0x8ba18c(0x3c7)]];switch(_0x2602c2==null?void 0x0:_0x2602c2[_0x8ba18c(0x1b9)]){case _0x2940a8['Number']:case _0x2940a8[_0x8ba18c(0x18d)]:case _0x2940a8[_0x8ba18c(0x304)]:case _0x2940a8[_0x8ba18c(0x3b8)]:return[_0x411cb8['IS'],_0x411cb8[_0x8ba18c(0x3b0)],_0x411cb8[_0x8ba18c(0x16e)],_0x411cb8['LESS_THAN'],..._0x1e73b1];case _0x2940a8[_0x8ba18c(0x292)]:case _0x2940a8[_0x8ba18c(0x198)]:case _0x2940a8[_0x8ba18c(0x225)]:return[_0x411cb8['IS'],_0x411cb8[_0x8ba18c(0x3b0)],_0x411cb8['BEFORE'],_0x411cb8[_0x8ba18c(0x24c)],..._0x1e73b1];case _0x2940a8[_0x8ba18c(0x1c9)]:return[_0x411cb8['IS'],_0x411cb8[_0x8ba18c(0x3b0)]];default:return[_0x411cb8['IS'],_0x411cb8[_0x8ba18c(0x3b0)],_0x411cb8['CONTAINS'],_0x411cb8[_0x8ba18c(0x2e2)],..._0x1e73b1];}}function ja(_0x3a1c7f){const _0x4bb26a=_0x3447f8;return _0x3a1c7f?_0x3a1c7f[_0x4bb26a(0x1b9)]===_0x2940a8[_0x4bb26a(0x1c9)]?!0x1:Ia(_0x3a1c7f['type'])?_0xa2fcf()[_0x4bb26a(0x11b)](_0x4bb26a(0x385)):Ra(_0x3a1c7f)?[]:'':'';}function Ma(_0x275fda){const _0x5915ac=_0x3447f8;return _0x275fda!==_0x411cb8['IS_EMPTY']&&_0x275fda!==_0x411cb8[_0x5915ac(0x3c7)];}function Na(_0x31c335){const _0x27d941=_0x3447f8;var _0x17c72e;return(Array[_0x27d941(0x399)](_0x31c335==null||(_0x17c72e=_0x31c335[_0x27d941(0x2b0)])==null?void 0x0:_0x17c72e[_0x27d941(0x326)])?_0x31c335[_0x27d941(0x2b0)]['options']:[])['map']((_0x36021a,_0x27258b)=>{const _0x518b09=_0x27d941;if(typeof _0x36021a==_0x518b09(0x127))return{'label':_0x36021a,'value':_0x36021a};if(!Pa(_0x36021a))return{'label':String(_0x27258b+0x1),'value':String(_0x27258b+0x1)};let _0x34a195=_0x36021a,_0x2bf994=String(_0x34a195[_0x518b09(0x2cd)]??_0x34a195['id']??_0x27258b+0x1),_0x3dc11b=String(_0x34a195['id']??_0x2bf994);return{'label':_0x2bf994,'value':/^opt-\d+$/[_0x518b09(0x3a7)](_0x3dc11b)?_0x2bf994:_0x3dc11b};});}function Pa(_0x51988b){const _0x4d06dd=_0x3447f8;return typeof _0x51988b==_0x4d06dd(0x2f1)&&!!_0x51988b;}function Fa(_0x5c2157,_0x32dc5d,_0x2e9c47){const _0x86e735=_0x3447f8;let _0x290e61=JSON[_0x86e735(0x1d3)](_0x32dc5d);return _0x290e61+'-'+_0x5c2157[_0x86e735(0x121)](0x0,_0x2e9c47)[_0x86e735(0x14f)](_0xf29f3=>JSON[_0x86e735(0x1d3)](_0xf29f3)===_0x290e61)[_0x86e735(0x2c8)];}function Ia(_0x58fef1){const _0x81e77=_0x3447f8;return _0x58fef1===_0x2940a8[_0x81e77(0x292)]||_0x58fef1===_0x2940a8[_0x81e77(0x198)]||_0x58fef1===_0x2940a8[_0x81e77(0x225)];}function La(_0x1dd8d4){const _0x559e70=_0x3447f8;return _0x1dd8d4===_0x2940a8[_0x559e70(0x3c9)]||_0x1dd8d4===_0x2940a8[_0x559e70(0x18d)]||_0x1dd8d4===_0x2940a8[_0x559e70(0x304)]||_0x1dd8d4===_0x2940a8[_0x559e70(0x3b8)];}function Ra(_0x3e3818){const _0x56939a=_0x3447f8;var _0x300092;return(_0x3e3818==null?void 0x0:_0x3e3818['type'])===_0x2940a8[_0x56939a(0x24f)]||(_0x3e3818==null?void 0x0:_0x3e3818[_0x56939a(0x1b9)])===_0x2940a8[_0x56939a(0x2c5)]||(_0x3e3818==null?void 0x0:_0x3e3818[_0x56939a(0x1b9)])===_0x2940a8[_0x56939a(0x29c)]&&((_0x300092=_0x3e3818[_0x56939a(0x2b0)])==null?void 0x0:_0x300092[_0x56939a(0x174)])===!0x0;}function za({base:_0x310c08,chartRuntime:_0x500cb2,onChange:_0x350866,onClose:_0x3eea7e,onSelectBackgroundImage:_0x5b3e30,onSelectImage:_0x56bf07,unitId:_0x50ea32,widget:_0x255711}){const _0x3f2a09=_0x3447f8;let _0x2a3adc=_0x53af8d(_0x1ec317),_0x39be28=_0x53af8d(_0x255457),_0x26dadb=_0x310c08['getSnapshot'](),_0x784372=_0x3f2a09(0x154)in _0x255711?_0x26dadb[_0x3f2a09(0x186)][_0x255711[_0x3f2a09(0x154)]]:void 0x0,_0x143071=_0x255711[_0x3f2a09(0x1b9)]===_0x28a714[_0x3f2a09(0x3ee)]?_0x784372==null?void 0x0:_0x784372[_0x3f2a09(0x2dc)][_0x255711[_0x3f2a09(0x2e1)]]:void 0x0,_0x508d99=_0x39be28['t'](Ka(_0x255711));return _0x5c238f(_0x3f2a09(0x268),{'data-dashboard-inspector':!0x0,'className':'univer-flex\x20univer-h-full\x20univer-w-[380px]\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x5c238f(_0x3f2a09(0x10f),{'className':_0x3f2a09(0x1bc),'children':[_0x1fa005('h3',{'className':_0x3f2a09(0x232),'children':_0x508d99}),_0x1fa005(_0x10d589,{'type':'button','size':_0x3f2a09(0x11d),'variant':_0x3f2a09(0x3ca),'aria-label':_0x39be28['t'](_0x3f2a09(0x316)),'onClick':_0x3eea7e,'children':_0x1fa005(_0x54b54f,{})})]}),_0x255711['type']===_0x28a714['PivotChart']&&(Ga(_0x143071)&&_0x500cb2?_0x1fa005(va,{'runtime':_0x500cb2,'sourceChart':_0x143071[_0x3f2a09(0x2b0)]['chart'],'sourceName':((_0x784372==null?void 0x0:_0x784372['name'])??'')+_0x3f2a09(0x334)+_0x143071['name'],'widget':_0x255711,'onChange':_0x350866,'onEditData':()=>{const _0x224d4d=_0x3f2a09;_0x2a3adc[_0x224d4d(0x2be)](_0xe74b73['id'],{'unitId':_0x50ea32,'tableId':_0x255711['tableId'],'viewId':_0x255711[_0x224d4d(0x2e1)]})['catch'](()=>void 0x0);}}):_0x1fa005(Ua,{'message':Ga(_0x143071)?_0x39be28['t'](_0x3f2a09(0x21c)):_0x39be28['t'](_0x3f2a09(0xe2))})),_0x255711['type']===_0x28a714['FormulaShape']&&_0x1fa005(xa,{'base':_0x310c08,'widget':_0x255711,'onChange':_0x350866,'onSelectBackgroundImage':_0x5b3e30}),_0x255711[_0x3f2a09(0x1b9)]===_0x28a714[_0x3f2a09(0x2a5)]&&_0x1fa005(Va,{'base':_0x310c08,'onChange':_0x350866,'widget':_0x255711}),_0x255711[_0x3f2a09(0x1b9)]===_0x28a714[_0x3f2a09(0x2d4)]&&_0x1fa005(Ha,{'onChange':_0x350866,'widget':_0x255711}),_0x255711[_0x3f2a09(0x1b9)]===_0x28a714[_0x3f2a09(0x341)]&&_0x1fa005(Ba,{'onChange':_0x350866,'onSelectImage':_0x56bf07,'widget':_0x255711})]});}function Ba({onChange:_0x2d1b42,onSelectImage:_0x4e29e3,widget:_0xaf5c8e}){const _0x2532ce=_0x3447f8;let _0x5ad1cd=_0x53af8d(_0x255457);return _0x5c238f(_0x2532ce(0x1e8),{'className':_0x2532ce(0x175),'children':[_0x5c238f(_0x10d589,{'className':'univer-w-full','onClick':()=>_0x4e29e3()[_0x2532ce(0x401)](_0x4af1c6=>_0x4af1c6&&_0x2d1b42({..._0xaf5c8e,'source':_0x4af1c6[_0x2532ce(0x2c6)],'sourceType':_0x4af1c6[_0x2532ce(0xd9)],'alt':_0x4af1c6['name']}))['catch'](()=>void 0x0),'children':[_0x1fa005(_0x34ddb8,{}),_0x5ad1cd['t'](_0x2532ce(0x3fd))]}),_0x5c238f(_0x2532ce(0x24a),{'className':_0x2532ce(0x393),'children':[_0x1fa005('span',{'children':_0x5ad1cd['t'](_0x2532ce(0x22e))}),_0x1fa005(_0x1eff91,{'items':[{'value':'cover','label':_0x5ad1cd['t'](_0x2532ce(0x1ad))},{'value':_0x2532ce(0x2af),'label':_0x5ad1cd['t']('bases-dashboard-ui.dashboardInspector.repeat')},{'value':_0x2532ce(0x3cf),'label':_0x5ad1cd['t'](_0x2532ce(0x170))}],'value':_0xaf5c8e[_0x2532ce(0x2f2)]??_0x2532ce(0x285),'onChange':_0x1ea6b9=>_0x2d1b42({..._0xaf5c8e,'displayMode':_0x1ea6b9})['catch'](()=>void 0x0)})]})]});}function Va({base:_0x39ce21,onChange:_0x4b2bf8,widget:_0x211fc1}){const _0x228d63=_0x3447f8;let _0x309b98=_0x39ce21[_0x228d63(0x3b6)]()[_0x228d63(0x186)][_0x211fc1[_0x228d63(0x154)]],_0x5ef447=_0x309b98==null?void 0x0:_0x309b98[_0x228d63(0x286)][_0x228d63(0x2c9)](_0x80e87=>_0x309b98[_0x228d63(0x2dc)][_0x80e87]),_0x498eeb=_0x5ef447?_0x309b98==null?void 0x0:_0x309b98[_0x228d63(0x2dc)][_0x5ef447]:void 0x0,_0x581247=_0x309b98&&_0x498eeb?_0x295488(_0x309b98,_0x498eeb):[];return _0x1fa005(Ta,{'fields':_0x581247,'filter':_0x211fc1[_0x228d63(0x14f)],'onChange':_0x546395=>_0x4b2bf8({..._0x211fc1,'filter':_0x546395})[_0x228d63(0x308)](()=>void 0x0),'onClear':()=>_0x4b2bf8({..._0x211fc1,'filter':null})['catch'](()=>void 0x0)});}function Ha({onChange:_0x3efe48,widget:_0x344995}){const _0x131826=_0x3447f8;let _0x58c9d6=_0x53af8d(_0x255457),_0x2c57b5=_0x53af8d(_0x22d94c),_0x42e0ab=_0x129d28(()=>_0x2c57b5[_0x131826(0x14a)],_0x2c57b5[_0x131826(0x11c)](),!0x1,[_0x2c57b5]),_0x2356c0=Br(_0x344995),_0x2da4e6=_0x4ca295=>_0x3efe48({..._0x344995,'appearance':{..._0x2356c0,..._0x4ca295}})[_0x131826(0x308)](()=>void 0x0);return _0x5c238f('div',{'className':_0x131826(0x142),'children':[_0x1fa005(_0x539ea5,{'defaultValue':Vr(_0x344995[_0x131826(0x339)]),'rows':0x8,'onBlur':_0x469d1f=>_0x3efe48({..._0x344995,'document':Hr(_0x344995[_0x131826(0x339)],_0x469d1f[_0x131826(0x3ea)][_0x131826(0x2c2)])})[_0x131826(0x308)](()=>void 0x0)}),_0x1fa005(_0x2d27c8,{'emptyLabel':_0x58c9d6['t'](_0x131826(0x19f)),'label':_0x58c9d6['t'](_0x131826(0x19f)),'pickerFallbackValue':_0x42e0ab[_0x131826(0x3fe)][0x0],'resetLabel':_0x58c9d6['t'](_0x131826(0x1e0)),'value':_0x2356c0[_0x131826(0x134)]??null,'onChange':_0x2b1441=>_0x2da4e6({'backgroundColor':_0x2b1441??void 0x0})}),_0x1fa005(_0x2d27c8,{'emptyLabel':_0x58c9d6['t'](_0x131826(0x26d)),'label':_0x58c9d6['t'](_0x131826(0x26d)),'pickerFallbackValue':_0x42e0ab[_0x131826(0x3fe)][0x3e8],'resetLabel':_0x58c9d6['t'](_0x131826(0x1e0)),'value':_0x2356c0['textColor']??null,'onChange':_0x24d7fe=>_0x2da4e6({'textColor':_0x24d7fe??void 0x0})}),_0x1fa005(Wa,{'label':_0x58c9d6['t'](_0x131826(0x349)),'children':_0x1fa005(_0x1eff91,{'items':[{'value':_0x131826(0x1b4),'label':_0x58c9d6['t'](_0x131826(0x165))},{'value':_0x131826(0x1e4),'label':_0x58c9d6['t'](_0x131826(0x22d))},{'value':_0x131826(0x314),'label':_0x58c9d6['t'](_0x131826(0x130))}],'value':_0x2356c0[_0x131826(0x218)],'onChange':_0x534867=>_0x2da4e6({'alignment':_0x534867})})}),_0x5c238f(Wa,{'label':_0x58c9d6['t'](_0x131826(0x3c5)),'children':[_0x1fa005(_0x1eff91,{'items':[{'value':_0x131826(0x195),'label':_0x58c9d6['t'](_0x131826(0x162))},{'value':_0x131826(0x1b1),'label':_0x58c9d6['t'](_0x131826(0x3d5))}],'value':_0x2356c0[_0x131826(0x38a)],'onChange':_0x3a30d2=>_0x2da4e6({'fontSizeMode':_0x3a30d2})}),_0x2356c0[_0x131826(0x38a)]===_0x131826(0x1b1)&&_0x1fa005(_0x499d19,{'className':_0x131826(0x111),'min':0xa,'max':0x78,'value':_0x2356c0[_0x131826(0x1ae)],'onChange':_0x7bfbcc=>_0x2da4e6({'fontSize':_0x7bfbcc??0x12,'fontSizeMode':_0x131826(0x1b1)})})]})]});}function Ua({message:_0x35a4c2}){const _0x1e39d9=_0x3447f8;return _0x1fa005(_0x1e39d9(0x1e8),{'className':_0x1e39d9(0x35e),'children':_0x35a4c2});}function Wa({children:_0x2a2cb8,label:_0xb664d0}){const _0x257831=_0x3447f8;return _0x5c238f(_0x257831(0x1e8),{'role':'group','aria-':!0x0,'className':_0x257831(0x393),'children':[_0x1fa005(_0x257831(0x40a),{'children':_0xb664d0}),_0x2a2cb8]});}function Ga(_0x22860c){const _0x42a4e9=_0x3447f8;return(_0x22860c==null?void 0x0:_0x22860c[_0x42a4e9(0x1b9)])===_0x4da0de[_0x42a4e9(0x1ec)]&&typeof _0x22860c[_0x42a4e9(0x2b0)]==_0x42a4e9(0x2f1)&&_0x22860c['config']!==null&&_0x42a4e9(0x10d)in _0x22860c[_0x42a4e9(0x2b0)]&&_0x42a4e9(0x1eb)in _0x22860c[_0x42a4e9(0x2b0)];}function Ka(_0x43f3ae){const _0x1fa3e4=_0x3447f8;switch(_0x43f3ae['type']){case _0x28a714[_0x1fa3e4(0x3ee)]:return _0x1fa3e4(0xe4);case _0x28a714['TableFilter']:return _0x1fa3e4(0x253);case _0x28a714[_0x1fa3e4(0x2d4)]:return _0x1fa3e4(0x145);case _0x28a714[_0x1fa3e4(0x341)]:return _0x1fa3e4(0x233);case _0x28a714[_0x1fa3e4(0x1ca)]:return _0x1fa3e4(0x2fd);}}function qa({onDelete:_0x1f78fd,onEdit:_0x2eeebd}){const _0x1c122e=_0x3447f8;let _0x5bf114=_0x53af8d(_0x255457),_0x2dfb2f=_0x5bf114['t'](_0x1c122e(0x1c6)),_0x8cc3cb=_0x5bf114['t'](_0x1c122e(0x120)),_0x3eb6db=_0x5bf114['t']('bases-dashboard-ui.dashboard.widgetActions');return _0x1fa005(_0x86d9a9,{'items':[{'type':_0x1c122e(0x347),'children':_0x5c238f(_0x1c122e(0x40a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1fa005(_0x41a33d,{'className':_0x1c122e(0x129),'aria-hidden':_0x1c122e(0x2d2)}),_0x1fa005(_0x1c122e(0x40a),{'children':_0x2dfb2f})]}),'onSelect':_0x2eeebd},{'type':_0x1c122e(0x161)},{'type':'item','variant':_0x1c122e(0x262),'children':_0x5c238f(_0x1c122e(0x40a),{'className':_0x1c122e(0x30e),'children':[_0x1fa005(_0x306b68,{'className':_0x1c122e(0x129),'aria-hidden':_0x1c122e(0x2d2)}),_0x1fa005('span',{'children':_0x8cc3cb})]}),'onSelect':_0x1f78fd}],'children':_0x1fa005(_0x10d589,{'type':_0x1c122e(0x3b9),'size':_0x1c122e(0x11d),'variant':_0x1c122e(0x3ca),'title':_0x3eb6db,'aria-label':_0x3eb6db,'className':_0x1c122e(0x290),'children':_0x1fa005(_0x46df20,{'className':_0x1c122e(0x129),'aria-hidden':'true'})})});}function Ja({dashboardId:_0x516e14,presentation:_0x5b99f0=!0x1,unitId:_0x15c02b}){const _0x1961b0=_0x3447f8;let _0x374854=_0x53af8d(_0x1ec317),_0x68aa20=_0x53af8d(_0x230a38),_0x5d917d=_0x53af8d(_0x2cceec),_0x4307cc=_0x53af8d(_0xa15270),_0x42c918=_0x53af8d(_0x255457),_0x556572=_0x53af8d(_0x4e6cdd),_0x557d99=_0x53af8d(_0x3c357b),_0x83931f=_0x4523d4(null),[_0x503282,_0x220748]=_0xee90d5(!0x1),[_0x2c272e,_0x12ed30]=_0xee90d5(),[_0x528d50,_0xb90ed6]=_0xee90d5(!0x1),[_0x23773b,_0xd66ca6]=_0xee90d5(()=>new Map()),_0x5467b0=_0x2f6d8e((_0x5c8cd0,_0x4a9b63)=>{_0xd66ca6(_0x430aa=>{const _0x3b40e4=_0x1596;let _0x6c9d0f=new Map(_0x430aa);return _0x4a9b63?_0x6c9d0f[_0x3b40e4(0xea)](_0x5c8cd0,_0x4a9b63):_0x6c9d0f[_0x3b40e4(0x276)](_0x5c8cd0),_0x6c9d0f;});},[]),_0x411940=_0x129d28(()=>_0x556572[_0x1961b0(0x135)][_0x1961b0(0x387)](_0x26242b(()=>_0x556572['getDashboard'](_0x15c02b,_0x516e14))),_0x556572[_0x1961b0(0x2cf)](_0x15c02b,_0x516e14),!0x1,[_0x516e14,_0x556572,_0x15c02b]),_0x45da5a=_0x4307cc[_0x1961b0(0x3be)](_0x15c02b,_0x6e7cef[_0x1961b0(0x1f7)]),_0x22ff93=_0x129d28(()=>_0x557d99['undoRedoStatus$'],{'undos':0x0,'redos':0x0},!0x1,[_0x557d99]),_0x455dd9=gr(_0x15c02b,_0x516e14);if(_0x543512(()=>{const _0x13a1ea=_0x1961b0;_0x4307cc[_0x13a1ea(0x300)](_0x15c02b),_0x4307cc[_0x13a1ea(0x3a3)](_0x15c02b);},[_0x4307cc,_0x15c02b]),_0x543512(()=>{const _0x47bf0a=_0x1961b0;let _0x1aa485=_0x83931f[_0x47bf0a(0x23e)],_0x46242e=_0x1aa485==null?void 0x0:_0x1aa485[_0x47bf0a(0x2f9)];if(!_0x1aa485||!_0x46242e)return;let _0x444a8f=()=>_0xb90ed6(_0x46242e[_0x47bf0a(0x159)]===_0x46242e[_0x47bf0a(0xcb)]),_0x3ec94c=_0x3cf469=>{const _0x19fee6=_0x47bf0a;_0x3cf469[_0x19fee6(0x2fc)]===_0x19fee6(0x2a2)&&!_0x3cf469['defaultPrevented']&&_0x46242e[_0x19fee6(0x159)]===_0x46242e[_0x19fee6(0xcb)]&&_0x46242e[_0x19fee6(0x281)]()['catch'](_0x444a8f);};return _0x46242e[_0x47bf0a(0x213)](_0x47bf0a(0x298),_0x444a8f),_0x46242e[_0x47bf0a(0x213)](_0x47bf0a(0xfb),_0x3ec94c),()=>{const _0x3699e7=_0x47bf0a;_0x46242e[_0x3699e7(0x367)](_0x3699e7(0x298),_0x444a8f),_0x46242e['removeEventListener'](_0x3699e7(0xfb),_0x3ec94c);};},[]),!_0x411940||!_0x45da5a)return null;let _0x394ac1=_0x2dec28=>_0x374854[_0x1961b0(0x2be)](_0x49cadf['id'],{'unitId':_0x15c02b,'dashboardId':_0x516e14,'widget':_0x2dec28})[_0x1961b0(0x308)](()=>void 0x0),_0x5bfc35=(_0x3b69d7,_0xf1596a,_0x24701d)=>{const _0x275ca4=_0x1961b0;let _0x228dbb=Math[_0x275ca4(0x351)](0x0,..._0x411940[_0x275ca4(0x2a6)][_0x275ca4(0x30c)](_0x2e3e3d=>{const _0x178b87=_0x275ca4;var _0x486d01;let _0x4eda60=(_0x486d01=_0x411940[_0x178b87(0x311)][_0x2e3e3d])==null?void 0x0:_0x486d01[_0x178b87(0xe1)];return _0x4eda60?[_0x4eda60[_0x178b87(0x2b6)]+_0x4eda60[_0x178b87(0x3ef)]]:[];})),_0x130ae2=_0x275ca4(0x156)+_0x2aef82(0x8),_0xf80aca={'column':0x0,'row':_0x228dbb,'columnSpan':_0xf1596a,'rowSpan':_0x24701d};switch(_0x3b69d7[_0x275ca4(0x1b9)]){case _0x28a714['PivotChart']:return _0x394ac1({..._0x3b69d7,'id':_0x130ae2,'layout':_0xf80aca});case _0x28a714[_0x275ca4(0x2a5)]:return _0x394ac1({..._0x3b69d7,'id':_0x130ae2,'layout':_0xf80aca});case _0x28a714['Text']:return _0x394ac1({..._0x3b69d7,'id':_0x130ae2,'layout':_0xf80aca});case _0x28a714[_0x275ca4(0x341)]:return _0x394ac1({..._0x3b69d7,'id':_0x130ae2,'layout':_0xf80aca});case _0x28a714[_0x275ca4(0x1ca)]:return _0x394ac1({..._0x3b69d7,'id':_0x130ae2,'layout':_0xf80aca});}},_0x24f184=_0x45da5a[_0x1961b0(0x3b6)](),_0x5b03d4=_0x24f184[_0x1961b0(0xbc)][_0x1961b0(0x30c)](_0x5ceacd=>{const _0x1dc9a9=_0x1961b0;let _0x455a08=_0x24f184['tables'][_0x5ceacd];if(!_0x455a08)return[];let _0x4cc7c9=_0x455a08['viewOrder'][_0x1dc9a9(0x30c)](_0x1f41e9=>{const _0x30a543=_0x1dc9a9;let _0xd8a390=_0x455a08[_0x30a543(0x2dc)][_0x1f41e9];return no(_0xd8a390)?[{'type':_0x30a543(0x347),'children':_0xd8a390[_0x30a543(0x2cd)],'onSelect':()=>_0x5bfc35({'type':_0x28a714[_0x30a543(0x3ee)],'tableId':_0x5ceacd,'pivotViewId':_0x1f41e9,'chart':{..._0xd8a390[_0x30a543(0x2b0)][_0x30a543(0x1eb)]}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0x455a08[_0x1dc9a9(0x2cd)],'options':[..._0x4cc7c9,..._0x4cc7c9[_0x1dc9a9(0x2c8)]?[{'type':_0x1dc9a9(0x161)}]:[],{'type':_0x1dc9a9(0x347),'children':_0x42c918['t'](_0x1dc9a9(0x253)),'onSelect':()=>_0x5bfc35({'type':_0x28a714[_0x1dc9a9(0x2a5)],'tableId':_0x5ceacd,'filter':null},0x6,0x8)}]}];}),_0x11635c=[..._0x5b03d4,..._0x5b03d4['length']?[{'type':_0x1961b0(0x161)}]:[],{'type':'item','children':_0x42c918['t'](_0x1961b0(0x145)),'onSelect':()=>_0x5bfc35({'type':_0x28a714['Text'],'document':Qa()},0x4,0x6)},{'type':_0x1961b0(0x347),'children':_0x42c918['t'](_0x1961b0(0x233)),'onSelect':()=>$a(_0x68aa20)[_0x1961b0(0x401)](_0x1596c0=>_0x1596c0&&_0x5bfc35({'type':_0x28a714[_0x1961b0(0x341)],'source':_0x1596c0[_0x1961b0(0x2c6)],'sourceType':_0x1596c0[_0x1961b0(0xd9)],'alt':_0x1596c0['name'],'displayMode':_0x1961b0(0x285)},0x4,0x6))},{'type':'item','children':_0x42c918['t'](_0x1961b0(0x2fd)),'onSelect':()=>{const _0x366905=_0x1961b0;let _0x32f851=_0x24f184['tableOrder'][_0x366905(0x2c9)](_0x3ae339=>_0x24f184[_0x366905(0x186)][_0x3ae339]);_0x32f851&&_0x5bfc35({'type':_0x28a714[_0x366905(0x1ca)],'tableId':_0x32f851,'shapeType':_0x337cc8[_0x366905(0x190)],'shapeData':_0x30a9dd(),'description':_0x42c918['t'](_0x366905(0x2fd))},0x4,0x6);}}],_0xd9cbe5=_0x2c272e?_0x411940[_0x1961b0(0x311)][_0x2c272e]:void 0x0,_0x30e8f8=async()=>{const _0x3a1d9f=_0x1961b0;let _0x7e24b5=_0x83931f['current'];if(!_0x7e24b5)return;let _0x464d22=_0x7e24b5[_0x3a1d9f(0x2f9)];if(_0x464d22[_0x3a1d9f(0x159)]===_0x464d22[_0x3a1d9f(0xcb)]){await _0x464d22[_0x3a1d9f(0x281)]();return;}await _0x464d22[_0x3a1d9f(0xcb)][_0x3a1d9f(0x3a2)]();},_0x37d292=_0x5b99f0||_0x528d50,_0x45391e=_0x455dd9&&!_0x37d292;return _0x5c238f(_0x1961b0(0x1e8),{'ref':_0x83931f,'className':_0x1961b0(0x2f3)+(_0x528d50?_0x1961b0(0x2e5):_0x1961b0(0x15d))+_0x1961b0(0x3a9),'children':[!_0x37d292&&_0x5c238f(_0x1961b0(0x10f),{'className':_0x1961b0(0xfc),'children':[_0x1fa005(_0x4cc2bb,{'className':_0x1961b0(0x245)}),_0x1fa005('h2',{'className':_0x1961b0(0x232),'children':_0x411940[_0x1961b0(0x2cd)]}),_0x1fa005(_0x903bf7,{'target':{'unitId':_0x15c02b,'objectId':_0x4e82aa(_0x516e14),'objectType':_0x1349b1[_0x1961b0(0x240)]},'name':_0x411940['name'],'commandId':_0x180c8f['id'],'exists':()=>!!_0x556572[_0x1961b0(0x2cf)](_0x15c02b,_0x516e14)},_0x15c02b+'/'+_0x516e14),_0x1fa005(_0x484f3c,{'unitId':_0x15c02b}),_0x1fa005(_0x10d589,{'type':_0x1961b0(0x3b9),'size':_0x1961b0(0x11d),'variant':_0x1961b0(0x3ca),'aria-label':_0x42c918['t'](_0x1961b0(0x2b8)),'disabled':!_0x455dd9||_0x22ff93[_0x1961b0(0x1fe)]===0x0,'onClick':()=>_0x374854[_0x1961b0(0x2be)](_0xbacc2f['id'])[_0x1961b0(0x308)](()=>void 0x0),'children':_0x1fa005(_0x32ef86,{})}),_0x1fa005(_0x10d589,{'type':_0x1961b0(0x3b9),'size':_0x1961b0(0x11d),'variant':_0x1961b0(0x3ca),'aria-label':_0x42c918['t'](_0x1961b0(0x229)),'disabled':!_0x455dd9||_0x22ff93[_0x1961b0(0x2b5)]===0x0,'onClick':()=>_0x374854[_0x1961b0(0x2be)](_0x1df103['id'])['catch'](()=>void 0x0),'children':_0x1fa005(_0x40da8b,{})}),_0x1fa005(_0x10d589,{'type':'button','size':_0x1961b0(0x11d),'variant':_0x1961b0(0x3ca),'aria-label':_0x42c918['t'](_0x1961b0(0x374)),'onClick':()=>_0x30e8f8()[_0x1961b0(0x308)](()=>void 0x0),'children':_0x1fa005(_0x2e21be,{})}),_0x1fa005(_0x86d9a9,{'items':_0x11635c,'children':_0x5c238f(_0x10d589,{'variant':_0x1961b0(0x125),'disabled':!_0x455dd9,'children':[_0x1fa005(_0x34ddb8,{}),_0x42c918['t'](_0x1961b0(0x278))]})})]}),_0x5c238f(_0x1961b0(0x1e8),{'className':_0x1961b0(0x215),'children':[_0x1fa005('div',{'className':_0x1961b0(0x26f),'children':_0x1fa005(la,{'dashboard':_0x411940,'dragLabel':_0x42c918['t'](_0x1961b0(0xd6)),'editable':_0x45391e,'resizeLabel':_0x42c918['t'](_0x1961b0(0x25d)),'widgetLabel':_0x2b31d1=>_0x42c918['t'](to(_0x2b31d1[_0x1961b0(0x1b9)])),'selectedWidgetId':_0x45391e?_0x2c272e:void 0x0,'onSelectWidget':_0x45391e?_0x57e49a=>{_0x12ed30(_0x57e49a),_0x57e49a||_0x220748(!0x1);}:void 0x0,'onLayoutsCommit':_0x5d625a=>{const _0x32da55=_0x1961b0;let _0x1f6f40={..._0x411940[_0x32da55(0x311)]};_0x5d625a['forEach']((_0x4878d6,_0x29584c)=>{let _0x5d2205=_0x1f6f40[_0x29584c];_0x5d2205&&(_0x1f6f40[_0x29584c]={..._0x5d2205,'layout':_0x4878d6});}),_0x374854[_0x32da55(0x2be)](_0x51a517['id'],{'unitId':_0x15c02b,'dashboard':{..._0x411940,'widgets':_0x1f6f40}})[_0x32da55(0x308)](()=>void 0x0);},'renderWidget':_0x5f3e45=>_0x1fa005(Ya,{'base':_0x45da5a,'dashboard':_0x411940,'unitId':_0x15c02b,'widget':_0x5f3e45,'onChange':_0x394ac1,'onChartRuntimeChange':_0x5467b0}),'renderWidgetActions':_0x826eaa=>_0x1fa005(qa,{'onEdit':()=>{_0x12ed30(_0x826eaa['id']),_0x220748(!0x0);},'onDelete':()=>{const _0x5affea=_0x1961b0;_0x2c272e===_0x826eaa['id']&&(_0x12ed30(void 0x0),_0x220748(!0x1)),_0x374854[_0x5affea(0x2be)](_0x25ddde['id'],{'unitId':_0x15c02b,'dashboardId':_0x516e14,'widgetId':_0x826eaa['id']})[_0x5affea(0x308)](()=>void 0x0);}})})}),_0x45391e&&_0x503282&&_0xd9cbe5&&_0x1fa005(za,{'base':_0x45da5a,'chartRuntime':_0x23773b[_0x1961b0(0x15b)](_0xd9cbe5['id']),'unitId':_0x15c02b,'widget':_0xd9cbe5,'onChange':_0x394ac1,'onClose':()=>_0x220748(!0x1),'onSelectBackgroundImage':()=>eo(_0x5d917d),'onSelectImage':()=>$a(_0x68aa20)})]})]});}function Ya({base:_0x55d938,dashboard:_0x95637b,onChange:_0x302d47,onChartRuntimeChange:_0x50a859,unitId:_0x13e973,widget:_0x1b96d1}){const _0x3bcd33=_0x3447f8;let _0x364d60=_0x125177(()=>_0x95637b[_0x3bcd33(0x2a6)][_0x3bcd33(0x30c)](_0x2f5bb9=>{const _0x317170=_0x3bcd33;let _0x5f060a=_0x95637b[_0x317170(0x311)][_0x2f5bb9];return(_0x5f060a==null?void 0x0:_0x5f060a['type'])===_0x28a714[_0x317170(0x2a5)]&&_0x5f060a[_0x317170(0x154)]===(_0x317170(0x154)in _0x1b96d1?_0x1b96d1[_0x317170(0x154)]:'')&&_0x5f060a[_0x317170(0x14f)]?[_0x5f060a['filter']]:[];}),[_0x95637b,_0x1b96d1]);switch(_0x1b96d1['type']){case _0x28a714['PivotChart']:return _0x1fa005(Lr,{'filters':_0x364d60,'unitId':_0x13e973,'widget':_0x1b96d1,'onRuntimeChange':_0x50a859});case _0x28a714[_0x3bcd33(0x2a5)]:return _0x1fa005(wa,{'fields':Xa(_0x55d938,_0x1b96d1[_0x3bcd33(0x154)]),'filter':_0x1b96d1[_0x3bcd33(0x14f)],'onChange':_0x563ecb=>_0x302d47({..._0x1b96d1,'filter':_0x563ecb})['catch'](()=>void 0x0)});case _0x28a714[_0x3bcd33(0x2d4)]:return _0x1fa005(Ur,{'widget':_0x1b96d1});case _0x28a714[_0x3bcd33(0x341)]:return _0x1fa005(Za,{'widget':_0x1b96d1});case _0x28a714['FormulaShape']:return _0x1fa005(Dr,{'dashboardId':_0x95637b['id'],'unitId':_0x13e973,'widget':_0x1b96d1});}}function Xa(_0x5d1c3a,_0x33c34e){const _0x3e276a=_0x3447f8;let _0x1c9f87=_0x5d1c3a[_0x3e276a(0x3b6)]()[_0x3e276a(0x186)][_0x33c34e],_0x6016ad=_0x1c9f87==null?void 0x0:_0x1c9f87[_0x3e276a(0x286)][_0x3e276a(0x2c9)](_0xbcddbd=>_0x1c9f87['views'][_0xbcddbd]),_0x30f9aa=_0x6016ad?_0x1c9f87==null?void 0x0:_0x1c9f87['views'][_0x6016ad]:void 0x0;return _0x1c9f87&&_0x30f9aa?_0x295488(_0x1c9f87,_0x30f9aa):[];}function Za({widget:_0x175de7}){const _0x518f86=_0x3447f8;let _0x4f89d1=_0x53af8d(_0x230a38),[_0x4847c4,_0x1e7d6a]=_0xee90d5(_0x175de7[_0x518f86(0xd9)]===_0x188e10[_0x518f86(0x234)]?'':_0x175de7[_0x518f86(0x2c6)]);return _0x543512(()=>{const _0x2db39e=_0x518f86;let _0x399148=!0x0;return _0x4f89d1['getAttachmentUrl'](_0x175de7[_0x2db39e(0x2c6)],_0x175de7[_0x2db39e(0xd9)])[_0x2db39e(0x401)](_0x369292=>{_0x399148&&_0x1e7d6a(_0x369292);})['catch'](()=>void 0x0),()=>{_0x399148=!0x1;};},[_0x4f89d1,_0x175de7[_0x518f86(0x2c6)],_0x175de7['sourceType']]),_0x4847c4?_0x1fa005('div',{'role':_0x175de7[_0x518f86(0x3ed)]?_0x518f86(0x3bf):void 0x0,'aria-label':_0x175de7[_0x518f86(0x3ed)]||void 0x0,'data-dashboard-image':_0x175de7['id'],'className':_0x518f86(0x1b2),'style':vr(_0x4847c4,_0x175de7[_0x518f86(0x2f2)])}):null;}function Qa(){let _0x49290b=_0x156ce9(new Set());return{'id':'dashboard-text-'+_0x2aef82(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x49290b}]},'documentStyle':{}};}function $a(_0x1ef450){return new Promise(_0x151edd=>{const _0x4f5b10=_0x1596;let _0x81b13e=document['createElement'](_0x4f5b10(0x1fb));_0x81b13e[_0x4f5b10(0x1b9)]=_0x4f5b10(0x15c),_0x81b13e[_0x4f5b10(0x375)]=_0x4f5b10(0x3b3),_0x81b13e[_0x4f5b10(0x213)](_0x4f5b10(0xe3),()=>{const _0x32bada=_0x4f5b10;var _0x5d18a9;let _0x1e7bdc=(_0x5d18a9=_0x81b13e[_0x32bada(0xf8)])==null?void 0x0:_0x5d18a9[0x0];if(!_0x1e7bdc){_0x151edd(null);return;}_0x1ef450['saveAttachment'](_0x1e7bdc)[_0x32bada(0x401)](_0x4efccb=>{const _0x542887=_0x32bada;if(!_0x4efccb[_0x542887(0x2c6)]||_0x4efccb[_0x542887(0xd9)]===void 0x0){_0x151edd(null);return;}_0x151edd({'name':_0x4efccb[_0x542887(0x2cd)],'source':_0x4efccb[_0x542887(0x2c6)],'sourceType':_0x4efccb[_0x542887(0xd9)]});})[_0x32bada(0x308)](()=>_0x151edd(null));},{'once':!0x0}),_0x81b13e[_0x4f5b10(0x3f4)]();});}function eo(_0x8258cb){return new Promise(_0x5e1afc=>{const _0x37df61=_0x1596;let _0x5341d4=document[_0x37df61(0xde)](_0x37df61(0x1fb));_0x5341d4[_0x37df61(0x1b9)]=_0x37df61(0x15c),_0x5341d4['accept']=_0x37df61(0x3b3),_0x5341d4[_0x37df61(0x213)](_0x37df61(0xe3),()=>{const _0x22b161=_0x37df61;var _0x5a485c;let _0x1b67bf=(_0x5a485c=_0x5341d4[_0x22b161(0xf8)])==null?void 0x0:_0x5a485c[0x0];if(!_0x1b67bf){_0x5e1afc(null);return;}_0x8258cb[_0x22b161(0xc7)](_0x1b67bf)[_0x22b161(0x401)](_0x2d9154=>{const _0x6d2130=_0x22b161;if(!(_0x2d9154!=null&&_0x2d9154['source'])){_0x5e1afc(null);return;}if(_0x2d9154[_0x6d2130(0x1c1)]){let _0x1090db=new Image();_0x1090db[_0x6d2130(0xba)]=_0x2d9154[_0x6d2130(0x1c1)],_0x8258cb[_0x6d2130(0x2d6)](_0x2d9154[_0x6d2130(0x2c6)],_0x2d9154[_0x6d2130(0x3d9)],_0x1090db);}_0x5e1afc({'source':_0x2d9154[_0x6d2130(0x2c6)],'sourceType':_0x2d9154[_0x6d2130(0x3d9)]});})['catch'](()=>_0x5e1afc(null));},{'once':!0x0}),_0x5341d4[_0x37df61(0x3f4)]();});}function to(_0x2d239d){const _0x4c6f33=_0x3447f8;switch(_0x2d239d){case _0x28a714[_0x4c6f33(0x3ee)]:return'bases-dashboard-ui.dashboard.pivotChart';case _0x28a714[_0x4c6f33(0x2a5)]:return _0x4c6f33(0x253);case _0x28a714['Text']:return _0x4c6f33(0x145);case _0x28a714['Image']:return _0x4c6f33(0x233);case _0x28a714[_0x4c6f33(0x1ca)]:return _0x4c6f33(0x2fd);}}function no(_0x569422){const _0x9ba54c=_0x3447f8;return(_0x569422==null?void 0x0:_0x569422['type'])===_0x4da0de[_0x9ba54c(0x1ec)]&&typeof _0x569422[_0x9ba54c(0x2b0)]=='object'&&_0x569422[_0x9ba54c(0x2b0)]!==null&&'pivot'in _0x569422['config']&&_0x9ba54c(0x1eb)in _0x569422[_0x9ba54c(0x2b0)];}const ro=[{'area':_0x23447d[_0x3447f8(0x251)],'key':_0x3447f8(0x2b1),'label':_0x3447f8(0xca)},{'area':_0x23447d[_0x3447f8(0x29b)],'key':_0x3447f8(0x3a6),'label':_0x3447f8(0x1f0)},{'area':_0x23447d[_0x3447f8(0x20e)],'key':'rowFields','label':_0x3447f8(0x396)},{'area':_0x23447d[_0x3447f8(0x1b0)],'key':'valueFields','label':_0x3447f8(0x3db)}],io=[{'value':_0x1f46e1[_0x3447f8(0x1f1)],'localeKey':'bases-dashboard-ui.pivot.sum'},{'value':_0x1f46e1[_0x3447f8(0x203)],'localeKey':'bases-dashboard-ui.pivot.count'},{'value':_0x1f46e1[_0x3447f8(0x1bb)],'localeKey':_0x3447f8(0x3dd)},{'value':_0x1f46e1[_0x3447f8(0x344)],'localeKey':_0x3447f8(0x3cc)},{'value':_0x1f46e1[_0x3447f8(0x351)],'localeKey':_0x3447f8(0x3d7)},{'value':_0x1f46e1['min'],'localeKey':_0x3447f8(0x2c0)},{'value':_0x1f46e1[_0x3447f8(0x30b)],'localeKey':_0x3447f8(0x38d)},{'value':_0x1f46e1[_0x3447f8(0x1f4)],'localeKey':'bases-dashboard-ui.pivot.stdDev'},{'value':_0x1f46e1[_0x3447f8(0x352)],'localeKey':_0x3447f8(0x34c)},{'value':_0x1f46e1[_0x3447f8(0xd3)],'localeKey':_0x3447f8(0x3ec)},{'value':_0x1f46e1[_0x3447f8(0x33b)],'localeKey':'bases-dashboard-ui.pivot.variancePopulation'}];function ao(_0x35effa){const _0xc7042d=_0x3447f8;let {config:_0x32e302,onChange:_0xe5b6e5,table:_0x482867}=_0x35effa,_0x19fca8=_0x53af8d(_0x255457),[_0x3bfb78,_0x1cada1]=_0xee90d5(_0xc7042d(0x2ee)),[_0x58fbd4,_0x447420]=_0xee90d5(''),[_0xbdbf3a,_0x367828]=_0xee90d5(null),[_0x2b7d7e,_0x9def6c]=_0xee90d5(null),[_0x163ff4,_0x568f53]=_0xee90d5(null),[_0x1ea366,_0x22d281]=_0xee90d5(null),_0x361034=_0x4523d4(null),_0x330f84=_0x125177(()=>_0x482867[_0xc7042d(0x24d)][_0xc7042d(0x30c)](_0x2c1f7d=>{const _0x10189b=_0xc7042d;let _0x2c08c3=_0x482867[_0x10189b(0x2ee)][_0x2c1f7d];return _0x2c08c3&&_0x2c08c3[_0x10189b(0x2ac)]!==!0x0&&_0x2c08c3[_0x10189b(0x1b9)]!==_0x2940a8[_0x10189b(0x397)]?[_0x2c08c3]:[];})[_0xc7042d(0x14f)](_0x4af10e=>_0x4af10e[_0xc7042d(0x2cd)][_0xc7042d(0xd7)]()['includes'](_0x58fbd4['trim']()['toLocaleLowerCase']())),[_0x58fbd4,_0x482867]),_0xdf5617=_0x4321f4=>{const _0x160589=_0xc7042d;let _0xa692dc=_0x57279f(_0x482867,_0x32e302[_0x160589(0x10d)]);try{_0x4321f4(_0xa692dc),_0xe5b6e5({'pivot':_0xa692dc['toJSON']()});}finally{_0xa692dc[_0x160589(0x2fe)]();}},_0x50dc25=(_0x57a9af,_0x1e3ef4)=>{_0xbdbf3a&&(_0xdf5617(_0x348e23=>{const _0x4c4e3f=_0x1596;if(_0xbdbf3a['kind']==='field'){let _0x138450=_0x348e23[_0x4c4e3f(0x126)](_0xbdbf3a['id']),_0x100ec0=_0x138450[_0x4c4e3f(0x34d)]===_0x57a9af&&_0x138450['index']<_0x1e3ef4?_0x1e3ef4-0x1:_0x1e3ef4;_0x348e23['updateFieldPosition'](_0xbdbf3a['id'],_0x57a9af,_0x100ec0);return;}mo(_0x348e23,_0xbdbf3a['id'],_0x57a9af,_0x1e3ef4);}),_0x367828(null),_0x9def6c(null));};return _0x5c238f('div',{'className':_0xc7042d(0x1d7),'children':[_0x1fa005(_0x283559,{'ariaLabel':_0x19fca8['t'](_0xc7042d(0x1b7)),'className':_0xc7042d(0x302),'items':[{'label':_0x19fca8['t'](_0xc7042d(0x2e9)),'panelId':_0xc7042d(0x3ff),'value':_0xc7042d(0x2ee)},{'label':_0x19fca8['t'](_0xc7042d(0x282)),'panelId':_0xc7042d(0x3ad),'value':_0xc7042d(0x326)}],'value':_0x3bfb78,'onChange':_0x1cada1}),_0x1fa005(_0xc7042d(0x1e8),{'ref':_0x361034,'className':_0x54dbd2(_0xc7042d(0x149),_0x2bbb9f),'onDragOver':_0x23ddbb=>{const _0x405c3b=_0xc7042d;let _0x212353=_0x361034[_0x405c3b(0x23e)];if(!_0x212353)return;let _0x114f72=_0x212353[_0x405c3b(0x263)]();_0x23ddbb['clientY']<_0x114f72['top']+0x30?_0x212353[_0x405c3b(0x406)]-=0x10:_0x23ddbb[_0x405c3b(0x117)]>_0x114f72[_0x405c3b(0x199)]-0x30&&(_0x212353['scrollTop']+=0x10);},'children':_0x3bfb78===_0xc7042d(0x326)?_0x1fa005(po,{'config':_0x32e302,'commit':_0xdf5617}):_0x5c238f(_0xc7042d(0x1e8),{'className':_0xc7042d(0x116),'children':[_0x5c238f('div',{'children':[_0x1fa005(_0xc7042d(0x1e8),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x19fca8['t']('bases-dashboard-ui.pivot.sourceFields')}),_0x1fa005(_0x2647d7,{'allowClear':!0x0,'slot':_0x1fa005(_0x10f455,{}),'value':_0x58fbd4,'placeholder':_0x19fca8['t']('bases-dashboard-ui.pivot.searchFields'),'onChange':_0x447420}),_0x1fa005('div',{'className':_0xc7042d(0xdd),'children':_0x330f84['map'](_0x2b3e64=>_0x1fa005(oo,{'config':_0x32e302,'field':_0x2b3e64,'onAdd':_0x324331=>_0xdf5617(_0x45c677=>mo(_0x45c677,_0x2b3e64['id'],_0x324331,_0x45c677[_0xc7042d(0x11f)](_0x324331))),'onCheckedChange':_0x3e81f3=>_0xdf5617(_0xd654c5=>{const _0x434b53=_0xc7042d;let _0x3429b5=_0xd654c5['getTableFieldsByDataFieldId'](_0x2b3e64['id']);if(!_0x3e81f3){_0x3429b5[_0x434b53(0x32f)](_0x466702=>_0xd654c5[_0x434b53(0x1bf)](_0x466702[_0x434b53(0x2bd)]()));return;}if(_0x3429b5[_0x434b53(0x2c8)]===0x0){let _0xf665dc=go(_0x2b3e64)?_0x23447d['Value']:_0x23447d['Row'];_0xd654c5[_0x434b53(0x29f)](_0x2b3e64['id'],_0xf665dc);}}),'onDragStart':()=>_0x367828({'kind':_0xc7042d(0x2c6),'id':_0x2b3e64['id']})},_0x2b3e64['id']))})]}),_0x1fa005(_0xc7042d(0x1e8),{'className':'univer-grid\x20univer-grid-cols-2\x20univer-gap-3','children':ro[_0xc7042d(0x1ee)](_0x172ce7=>_0x1fa005(co,{'area':_0x172ce7[_0xc7042d(0x34d)],'dropTarget':_0x2b7d7e,'fields':_0x32e302['pivot'][_0x172ce7[_0xc7042d(0x2fc)]],'label':_0x19fca8['t'](_0x172ce7[_0xc7042d(0x24a)]),'snapshot':_0x32e302[_0xc7042d(0x10d)],'onDragEnd':()=>{_0x367828(null),_0x9def6c(null);},'onDragStart':_0x550f81=>_0x367828({'kind':_0xc7042d(0x101),'id':_0x550f81,'area':_0x172ce7[_0xc7042d(0x34d)]}),'onDragOver':_0x40a418=>_0x9def6c({'area':_0x172ce7[_0xc7042d(0x34d)],'index':_0x40a418}),'onDrop':_0x578524=>_0x50dc25(_0x172ce7[_0xc7042d(0x34d)],_0x578524),'onFilter':_0x568f53,'onRemove':_0x2893d8=>_0xdf5617(_0x46ff81=>_0x46ff81[_0xc7042d(0x1bf)](_0x2893d8)),'onSettings':_0x22d281},_0x172ce7['area']))}),_0x163ff4&&_0x1fa005(uo,{'fieldId':_0x163ff4,'snapshot':_0x32e302['pivot'],'table':_0x482867,'onCancel':()=>_0x568f53(null),'onCommit':(_0x5ae64a,_0x90989e)=>{_0xdf5617(_0x2057e2=>{const _0x1694a1=_0x1596;let _0x5d2cc0=_0x2057e2[_0x1694a1(0xd8)](_0x163ff4),_0x23fce3=(_0x5d2cc0==null?void 0x0:_0x5d2cc0[_0x1694a1(0x26b)])??[];_0x2057e2[_0x1694a1(0x29a)](_0x163ff4,{'type':_0x5a8717[_0x1694a1(0x17c)],'list':_0x5ae64a,'isAll':_0x5ae64a[_0x1694a1(0x2c8)]===_0x23fce3[_0x1694a1(0x2c8)]}),_0x2057e2[_0x1694a1(0x271)](_0x163ff4,_0x90989e===void 0x0?void 0x0:{'type':_0x90989e});}),_0x568f53(null);}},_0x163ff4),_0x1ea366&&_0x1fa005(fo,{'field':_0x32e302[_0xc7042d(0x10d)][_0xc7042d(0x181)][_0x1ea366],'onCancel':()=>_0x22d281(null),'onCommit':(_0x279413,_0x17bcc4,_0x3dd9fc)=>{_0xdf5617(_0x209d9d=>{const _0x3ddad5=_0x1596;_0x209d9d[_0x3ddad5(0x13f)](_0x1ea366,_0x279413),_0x209d9d[_0x3ddad5(0xd1)](_0x1ea366,_0x17bcc4),_0x209d9d['setFieldFormat'](_0x1ea366,_0x3dd9fc||void 0x0);}),_0x22d281(null);}},_0x1ea366)]})})]});}function oo(_0x556679){const _0x2f62d6=_0x3447f8;let {config:_0x4ab6da,field:_0x1a1e77,onAdd:_0x162291,onCheckedChange:_0x259371,onDragStart:_0x27c1b8}=_0x556679,_0x22c844=_0x53af8d(_0x255457),_0x2d4258=[...Object[_0x2f62d6(0xfd)](_0x4ab6da['pivot']['dimension']),...Object[_0x2f62d6(0xfd)](_0x4ab6da[_0x2f62d6(0x10d)][_0x2f62d6(0x181)])][_0x2f62d6(0x3c4)](_0x235b89=>_0x235b89[_0x2f62d6(0x164)]===_0x1a1e77['id']),_0x42a0a5=ro[_0x2f62d6(0x1ee)](_0x2380a1=>({'type':'item','children':_0x22c844['t'](_o(_0x2380a1[_0x2f62d6(0x34d)])),'onSelect':()=>_0x162291(_0x2380a1[_0x2f62d6(0x34d)])}));return _0x5c238f(_0x2f62d6(0x1e8),{'draggable':!0x0,'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':_0x27c1b8,'children':[_0x1fa005(_0x229479,{'className':_0x2f62d6(0x359)}),_0x1fa005(_0x22d09c,{'checked':_0x2d4258,'onChange':_0x5432f2=>_0x259371(!!_0x5432f2)}),_0x1fa005(so,{'field':_0x1a1e77}),_0x1fa005(_0x2f62d6(0x40a),{'className':_0x2f62d6(0x14b),'children':_0x1a1e77[_0x2f62d6(0x2cd)]}),_0x1fa005(_0x86d9a9,{'align':'end','items':_0x42a0a5,'children':_0x1fa005(_0x2f62d6(0x40a),{'className':_0x2f62d6(0x370),'children':_0x1fa005(_0x2e92dc,{})})})]});}function so({field:_0x5e297b}){const _0x1d7123=_0x3447f8;return go(_0x5e297b)?_0x1fa005(_0x5b2a53,{'className':_0x1d7123(0x359)}):_0x5e297b[_0x1d7123(0x1b9)]===_0x2940a8[_0x1d7123(0x292)]||_0x5e297b[_0x1d7123(0x1b9)]===_0x2940a8[_0x1d7123(0x198)]||_0x5e297b[_0x1d7123(0x1b9)]===_0x2940a8['UpdatedAt']?_0x1fa005(_0x1437d4,{'className':_0x1d7123(0x359)}):_0x1fa005(_0x3177bc,{'className':'univer-text-gray-400'});}function co(_0x82328d){const _0x1abe43=_0x3447f8;let {area:_0x230d65,dropTarget:_0x3821c7,fields:_0x22d459,label:_0x42c7d5,snapshot:_0x1cec10}=_0x82328d,_0x5616ec=_0x53af8d(_0x255457);return _0x5c238f(_0x1abe43(0x336),{'className':_0x54dbd2(_0x1abe43(0x350),_0x243840),'onDragOver':_0x4752a1=>{const _0x2f8d93=_0x1abe43;_0x4752a1[_0x2f8d93(0x16a)](),_0x82328d[_0x2f8d93(0x37a)](_0x22d459[_0x2f8d93(0x2c8)]);},'onDrop':_0x48a12a=>{const _0x2dd449=_0x1abe43;_0x48a12a['preventDefault'](),_0x82328d['onDrop']((_0x3821c7==null?void 0x0:_0x3821c7['area'])===_0x230d65?_0x3821c7[_0x2dd449(0xeb)]:_0x22d459[_0x2dd449(0x2c8)]);},'children':[_0x1fa005(_0x1abe43(0x1e8),{'className':'univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','children':_0x42c7d5}),_0x5c238f('div',{'className':_0x1abe43(0xf5),'children':[_0x22d459['map']((_0x491946,_0x80fb7a)=>{const _0x38ce95=_0x1abe43;let _0x268cb5=_0x1cec10[_0x38ce95(0x2dd)][_0x491946]??_0x1cec10[_0x38ce95(0x181)][_0x491946];if(!_0x268cb5)return null;let _0x595c87=(_0x3821c7==null?void 0x0:_0x3821c7['area'])===_0x230d65&&_0x3821c7['index']===_0x80fb7a;return _0x5c238f(_0x38ce95(0x1e8),{'onDragOver':_0x44488c=>{const _0x3c5061=_0x38ce95;_0x44488c[_0x3c5061(0x16a)](),_0x44488c['stopPropagation']();let _0x5e5186=_0x44488c[_0x3c5061(0x3c3)][_0x3c5061(0x263)]();_0x82328d[_0x3c5061(0x37a)](_0x80fb7a+ +(_0x44488c['clientY']>_0x5e5186[_0x3c5061(0x348)]+_0x5e5186[_0x3c5061(0x34f)]/0x2));},'onDrop':_0x3e7e59=>{const _0x19b163=_0x38ce95;_0x3e7e59[_0x19b163(0x16a)](),_0x3e7e59[_0x19b163(0x273)](),_0x82328d[_0x19b163(0x25a)]((_0x3821c7==null?void 0x0:_0x3821c7[_0x19b163(0x34d)])===_0x230d65?_0x3821c7[_0x19b163(0xeb)]:_0x80fb7a);},'children':[_0x595c87&&_0x1fa005(_0x38ce95(0x1e8),{'className':_0x38ce95(0x3e7)}),_0x1fa005(lo,{'area':_0x230d65,'field':_0x268cb5,'onDragEnd':_0x82328d[_0x38ce95(0x25f)],'onDragStart':()=>_0x82328d['onDragStart'](_0x491946),'onFilter':()=>_0x82328d['onFilter'](_0x491946),'onRemove':()=>_0x82328d[_0x38ce95(0x2c3)](_0x491946),'onSettings':()=>_0x82328d[_0x38ce95(0x2ec)](_0x491946)})]},_0x491946);}),(_0x3821c7==null?void 0x0:_0x3821c7[_0x1abe43(0x34d)])===_0x230d65&&_0x3821c7[_0x1abe43(0xeb)]===_0x22d459[_0x1abe43(0x2c8)]&&_0x1fa005(_0x1abe43(0x1e8),{'className':_0x1abe43(0x3e7)}),_0x22d459['length']===0x0&&_0x1fa005(_0x1abe43(0x1e8),{'className':_0x1abe43(0x2b7),'children':_0x5616ec['t'](_0x1abe43(0x150))})]})]});}function lo(_0x2d2568){const _0x40e57f=_0x3447f8;let _0x270fed=_0x53af8d(_0x255457),_0x233b26=_0x2d2568[_0x40e57f(0x34d)]===_0x23447d['Value'],_0xf6b68d=[{'type':_0x40e57f(0x347),'children':_0x270fed['t'](_0x40e57f(0x1e6)),'onSelect':_0x2d2568[_0x40e57f(0x2c3)]},{'type':_0x40e57f(0x347),'children':_0x270fed['t'](_0x233b26?_0x40e57f(0x2a0):_0x40e57f(0x2d0)),'onSelect':_0x233b26?_0x2d2568[_0x40e57f(0x2ec)]:_0x2d2568[_0x40e57f(0x3f8)]}];return _0x5c238f(_0x40e57f(0x1e8),{'draggable':!0x0,'className':_0x40e57f(0x146),'onDragEnd':_0x2d2568[_0x40e57f(0x25f)],'onDragStart':_0x2d2568[_0x40e57f(0xcf)],'children':[_0x1fa005(_0x229479,{'className':'univer-text-gray-400'}),_0x1fa005(_0x310d74,{'title':_0x2d2568[_0x40e57f(0x101)]['displayName'],'children':_0x1fa005(_0x40e57f(0x40a),{'className':_0x40e57f(0x14b),'children':_0x2d2568[_0x40e57f(0x101)][_0x40e57f(0x2bb)]})}),_0x1fa005(_0x86d9a9,{'align':_0x40e57f(0x372),'items':_0xf6b68d,'children':_0x1fa005(_0x40e57f(0x40a),{'className':_0x40e57f(0x370),'children':_0x1fa005(_0x2e92dc,{})})})]});}function uo(_0x561018){const _0x7b8e48=_0x3447f8;var _0x2177bb,_0x27b9b3;let _0x2a11ad=_0x53af8d(_0x255457),{format:_0x3adc14,items:_0x517c93,itemTypes:_0x47bde6}=_0x125177(()=>{const _0x1db201=_0x1596;let _0x24d343=_0x57279f(_0x561018['table'],_0x561018[_0x1db201(0x12a)]);try{let _0x5c5cfe=_0x24d343[_0x1db201(0xd8)](_0x561018['fieldId']);return{'format':_0x5c5cfe==null?void 0x0:_0x5c5cfe[_0x1db201(0x11b)],'items':[...(_0x5c5cfe==null?void 0x0:_0x5c5cfe[_0x1db201(0x26b)])??[]],'itemTypes':[...(_0x5c5cfe==null?void 0x0:_0x5c5cfe[_0x1db201(0x39e)])??[]]};}finally{_0x24d343[_0x1db201(0x2fe)]();}},[_0x561018[_0x7b8e48(0x1e5)],_0x561018[_0x7b8e48(0x12a)],_0x561018['table']]),_0x448bf1=(_0x2177bb=_0x561018['snapshot'][_0x7b8e48(0x2dd)][_0x561018[_0x7b8e48(0x1e5)]])==null?void 0x0:_0x2177bb['filterInfo'],[_0x14be24,_0x1b4b27]=_0xee90d5((_0x448bf1==null?void 0x0:_0x448bf1[_0x7b8e48(0x1b9)])===_0x5a8717[_0x7b8e48(0x17c)]?_0x448bf1[_0x7b8e48(0x3e6)]:_0x517c93),[_0x5b56cb,_0x40e4c8]=_0xee90d5((_0x27b9b3=_0x561018[_0x7b8e48(0x12a)][_0x7b8e48(0x2dd)][_0x561018[_0x7b8e48(0x1e5)]])==null||(_0x27b9b3=_0x27b9b3['sortInfo'])==null?void 0x0:_0x27b9b3[_0x7b8e48(0x1b9)]),_0x250772=_0x14be24[_0x7b8e48(0x2c8)]===_0x517c93[_0x7b8e48(0x2c8)];return _0x5c238f(_0x7b8e48(0x336),{'className':_0x54dbd2(_0x7b8e48(0x14d),_0x243840),'children':[_0x1fa005(_0x7b8e48(0x1e8),{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0x2a11ad['t'](_0x7b8e48(0x2d0))}),_0x5c238f(_0x7b8e48(0x1e8),{'className':_0x7b8e48(0x3eb),'children':[_0x5c238f(_0x10d589,{'className':_0x7b8e48(0x1cc),'variant':_0x5b56cb===_0x428f40['ascending']?_0x7b8e48(0x125):_0x7b8e48(0x36e),'onClick':()=>_0x40e4c8(_0x428f40[_0x7b8e48(0x17d)]),'children':[_0x1fa005(_0x2a08ae,{}),_0x2a11ad['t'](_0x7b8e48(0x2e6))]}),_0x5c238f(_0x10d589,{'className':'univer-flex-1','variant':_0x5b56cb===_0x428f40['descending']?'primary':_0x7b8e48(0x36e),'onClick':()=>_0x40e4c8(_0x428f40[_0x7b8e48(0x155)]),'children':[_0x1fa005(_0x20c70b,{}),_0x2a11ad['t'](_0x7b8e48(0x1df))]})]}),_0x5c238f(_0x7b8e48(0x1e8),{'className':_0x7b8e48(0x15a),'children':[_0x5c238f(_0x7b8e48(0x24a),{'className':_0x7b8e48(0x208),'children':[_0x1fa005(_0x22d09c,{'checked':_0x250772,'indeterminate':_0x14be24['length']>0x0&&!_0x250772,'onChange':()=>_0x1b4b27(_0x250772?[]:_0x517c93)}),_0x2a11ad['t'](_0x7b8e48(0x22a))]}),_0x517c93[_0x7b8e48(0x1ee)]((_0x3fcc99,_0x130a5e)=>_0x5c238f('label',{'className':_0x7b8e48(0x208),'children':[_0x1fa005(_0x22d09c,{'checked':_0x14be24['includes'](_0x3fcc99),'onChange':()=>_0x1b4b27(_0x5bcfef=>_0x5bcfef['includes'](_0x3fcc99)?_0x5bcfef['filter'](_0x1cc496=>_0x1cc496!==_0x3fcc99):[..._0x5bcfef,_0x3fcc99])}),_0x1fa005('span',{'className':_0x7b8e48(0x242),'children':ho(_0x3fcc99,_0x47bde6[_0x130a5e],_0x3adc14,_0x2a11ad['t']('bases-dashboard-ui.pivot.blank'))})]},_0x3fcc99))]}),_0x5c238f(_0x7b8e48(0x1e8),{'className':_0x7b8e48(0x1c8),'children':[_0x1fa005(_0x10d589,{'variant':_0x7b8e48(0x21d),'onClick':()=>_0x561018['onCommit'](_0x517c93,_0x5b56cb),'children':_0x2a11ad['t'](_0x7b8e48(0x3bd))}),_0x5c238f('div',{'className':_0x7b8e48(0x3d4),'children':[_0x1fa005(_0x10d589,{'onClick':_0x561018[_0x7b8e48(0x227)],'children':_0x2a11ad['t'](_0x7b8e48(0x132))}),_0x1fa005(_0x10d589,{'variant':_0x7b8e48(0x125),'disabled':_0x14be24[_0x7b8e48(0x2c8)]===0x0,'onClick':()=>_0x561018[_0x7b8e48(0x3b5)](_0x14be24,_0x5b56cb),'children':_0x2a11ad['t'](_0x7b8e48(0x15e))})]})]})]});}function fo(_0x552725){const _0x44b8ff=_0x3447f8;var _0x3e2270,_0x203fdf,_0x36f544;let _0xe5b1b4=_0x53af8d(_0x255457),[_0xa7796c,_0x2bd166]=_0xee90d5(((_0x3e2270=_0x552725[_0x44b8ff(0x101)])==null?void 0x0:_0x3e2270[_0x44b8ff(0x2bb)])??''),[_0x5252ef,_0x3c11bb]=_0xee90d5(((_0x203fdf=_0x552725['field'])==null?void 0x0:_0x203fdf[_0x44b8ff(0x1f5)])??_0x1f46e1['sum']),[_0x465756,_0x4ca438]=_0xee90d5(((_0x36f544=_0x552725['field'])==null?void 0x0:_0x36f544[_0x44b8ff(0x11b)])??'');return _0x552725[_0x44b8ff(0x101)]?_0x5c238f(_0x44b8ff(0x336),{'className':_0x54dbd2('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',_0x243840),'children':[_0x1fa005(_0x44b8ff(0x1e8),{'className':'univer-text-sm\x20univer-font-medium','children':_0xe5b1b4['t'](_0x44b8ff(0x2a0))}),_0x5c238f(_0x44b8ff(0x24a),{'className':_0x44b8ff(0x289),'children':[_0xe5b1b4['t'](_0x44b8ff(0xbe)),_0x1fa005(_0x2647d7,{'value':_0xa7796c,'onChange':_0x2bd166})]}),_0x5c238f('label',{'className':_0x44b8ff(0x289),'children':[_0xe5b1b4['t'](_0x44b8ff(0x109)),_0x1fa005(_0x4b13fc,{'value':String(_0x5252ef),'options':io['map'](_0x512b3c=>({'value':String(_0x512b3c[_0x44b8ff(0x2c2)]),'label':_0xe5b1b4['t'](_0x512b3c['localeKey'])})),'onChange':_0x2c735b=>{const _0x4b0714=_0x44b8ff;let _0x39ea13=io[_0x4b0714(0x2c9)](_0x29448b=>String(_0x29448b[_0x4b0714(0x2c2)])===_0x2c735b);_0x39ea13&&_0x3c11bb(_0x39ea13[_0x4b0714(0x2c2)]);}})]}),_0x5c238f('label',{'className':_0x44b8ff(0x289),'children':[_0xe5b1b4['t'](_0x44b8ff(0x3ae)),_0x1fa005(_0x2647d7,{'value':_0x465756,'onChange':_0x4ca438})]}),_0x5c238f(_0x44b8ff(0x1e8),{'className':_0x44b8ff(0x23d),'children':[_0x1fa005(_0x10d589,{'onClick':_0x552725[_0x44b8ff(0x227)],'children':_0xe5b1b4['t']('bases-dashboard-ui.pivot.cancel')}),_0x1fa005(_0x10d589,{'variant':_0x44b8ff(0x125),'disabled':!_0xa7796c[_0x44b8ff(0x15f)](),'onClick':()=>_0x552725['onCommit'](_0xa7796c['trim'](),_0x5252ef,_0x465756),'children':_0xe5b1b4['t'](_0x44b8ff(0x15e))})]})]}):null;}function po(_0x275d9e){const _0x605a5a=_0x3447f8;let {config:_0x447de5,commit:_0x85e50f}=_0x275d9e,_0x483c57=_0x53af8d(_0x255457),_0x521595=_0x447de5[_0x605a5a(0x10d)][_0x605a5a(0x326)],_0x36d630=_0x1a5476=>_0x85e50f(_0x4bfcf3=>_0x4bfcf3[_0x605a5a(0x17f)]({..._0x4bfcf3['getOptions'](),..._0x1a5476}));return _0x5c238f('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x5c238f(_0x605a5a(0x24a),{'className':_0x605a5a(0x39f),'children':[_0x483c57['t']('bases-dashboard-ui.pivot.layout'),_0x1fa005(_0x4b13fc,{'className':'univer-w-36','value':String(_0x447de5[_0x605a5a(0x10d)][_0x605a5a(0xe1)]),'options':[{'value':String(_0x185dea['tabular']),'label':_0x483c57['t'](_0x605a5a(0x1ac))},{'value':String(_0x185dea[_0x605a5a(0x3da)]),'label':_0x483c57['t']('bases-dashboard-ui.pivot.layoutCompact')},{'value':String(_0x185dea[_0x605a5a(0x1a7)]),'label':_0x483c57['t'](_0x605a5a(0x1ab))}],'onChange':_0x12aa85=>{const _0x1df377=_0x605a5a;let _0x20203d=[_0x185dea[_0x1df377(0x138)],_0x185dea[_0x1df377(0x3da)],_0x185dea['outline']][_0x1df377(0x2c9)](_0x25cdb4=>String(_0x25cdb4)===_0x12aa85);_0x20203d!==void 0x0&&_0x85e50f(_0x3aa543=>_0x3aa543[_0x1df377(0x266)](_0x20203d));}})]}),[{'key':_0x605a5a(0x25b),'label':_0x605a5a(0x27d),'defaultValue':!0x1},{'key':_0x605a5a(0x296),'label':_0x605a5a(0xfe),'defaultValue':!0x1},{'key':_0x605a5a(0x1a6),'label':_0x605a5a(0x31c),'defaultValue':!0x0},{'key':_0x605a5a(0x13d),'label':_0x605a5a(0x168),'defaultValue':!0x0},{'key':_0x605a5a(0x107),'label':'bases-dashboard-ui.pivot.showColumnSubtotal','defaultValue':!0x0},{'key':_0x605a5a(0x102),'label':_0x605a5a(0x25c),'defaultValue':!0x0}][_0x605a5a(0x1ee)](_0x3bddde=>_0x5c238f('label',{'className':_0x605a5a(0x171),'children':[_0x1fa005(_0x22d09c,{'checked':!!(_0x521595[_0x3bddde[_0x605a5a(0x2fc)]]??_0x3bddde[_0x605a5a(0xe8)]),'disabled':_0x3bddde[_0x605a5a(0x2fc)]==='repeatRowLabels'&&_0x447de5['pivot'][_0x605a5a(0xe1)]===_0x185dea['compact'],'onChange':_0x20e978=>_0x36d630({[_0x3bddde[_0x605a5a(0x2fc)]]:!!_0x20e978})}),_0x483c57['t'](_0x3bddde['label'])]},_0x3bddde[_0x605a5a(0x2fc)])),_0x447de5[_0x605a5a(0x10d)][_0x605a5a(0xe1)]===_0x185dea[_0x605a5a(0x1a7)]&&_0x5c238f(_0x605a5a(0x24a),{'className':_0x605a5a(0x39f),'children':[_0x483c57['t'](_0x605a5a(0x18b)),_0x1fa005(_0x4b13fc,{'className':_0x605a5a(0x333),'value':String(_0x521595[_0x605a5a(0x31d)]??_0x568753[_0x605a5a(0x348)]),'options':[{'value':String(_0x568753[_0x605a5a(0x348)]),'label':_0x483c57['t']('bases-dashboard-ui.pivot.top')},{'value':String(_0x568753[_0x605a5a(0x199)]),'label':_0x483c57['t'](_0x605a5a(0x221))}],'onChange':_0x432ced=>{const _0x232bfd=_0x605a5a;let _0x1f51f4=[_0x568753[_0x232bfd(0x348)],_0x568753[_0x232bfd(0x199)]][_0x232bfd(0x2c9)](_0x4b8e27=>String(_0x4b8e27)===_0x432ced);_0x1f51f4!==void 0x0&&_0x36d630({'rowSubtotalPosition':_0x1f51f4});}})]}),_0x5c238f(_0x605a5a(0x24a),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x483c57['t'](_0x605a5a(0x1a4)),_0x1fa005(_0x4b13fc,{'className':_0x605a5a(0x333),'value':String(_0x447de5['pivot'][_0x605a5a(0x1d2)]===_0x2d76e7[_0x605a5a(0x322)]?_0x2d76e7[_0x605a5a(0x29b)]:_0x447de5[_0x605a5a(0x10d)][_0x605a5a(0x1d2)]),'options':[{'value':String(_0x2d76e7['Column']),'label':_0x483c57['t'](_0x605a5a(0x1f0))},{'value':String(_0x2d76e7[_0x605a5a(0x20e)]),'label':_0x483c57['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x482527=>{const _0x1cb354=_0x605a5a;let _0x47b49c=[_0x2d76e7[_0x1cb354(0x29b)],_0x2d76e7['Row']][_0x1cb354(0x2c9)](_0x393ae8=>String(_0x393ae8)===_0x482527);_0x47b49c!==void 0x0&&_0x85e50f(_0x56278b=>_0x56278b[_0x1cb354(0x1a1)](_0x47b49c,_0x56278b[_0x1cb354(0x3e9)]()<0x0?0x0:_0x56278b[_0x1cb354(0x3e9)]()));}})]}),_0x5c238f(_0x605a5a(0x24a),{'className':_0x605a5a(0x39f),'children':[_0x483c57['t'](_0x605a5a(0x30a)),_0x1fa005(_0x499d19,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x521595[_0x605a5a(0x358)]??0x1,'onChange':_0x36bb80=>{const _0x505817=_0x605a5a;let _0x69d3e=Number(_0x36bb80);Number[_0x505817(0x1b3)](_0x69d3e)&&_0x69d3e>=0x1&&_0x36d630({'pageWrap':_0x69d3e});}})]}),_0x5c238f(_0x605a5a(0x24a),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x483c57['t'](_0x605a5a(0xd2)),_0x1fa005(_0x4b13fc,{'className':_0x605a5a(0x333),'value':String(_0x521595[_0x605a5a(0x1db)]??!0x1),'options':[{'value':'false','label':_0x483c57['t'](_0x605a5a(0x384))},{'value':_0x605a5a(0x2d2),'label':_0x483c57['t'](_0x605a5a(0x1be))}],'onChange':_0x23b94a=>_0x36d630({'pageOverThenDown':_0x23b94a===_0x605a5a(0x2d2)})})]})]});}function mo(_0xf7ff0f,_0x1911f5,_0x495d09,_0x481adf){const _0xe980a6=_0x3447f8;let _0xe95b3d=_0xf7ff0f['getTableFieldsByDataFieldId'](_0x1911f5)[_0xe980a6(0x2c9)](_0x1f4967=>_0xf7ff0f['getFieldPositionInfoById'](_0x1f4967[_0xe980a6(0x2bd)]())[_0xe980a6(0x34d)]!==_0x23447d[_0xe980a6(0x1b0)]);if(_0x495d09!==_0x23447d[_0xe980a6(0x1b0)]&&_0xe95b3d){_0xf7ff0f['updateFieldPosition'](_0xe95b3d[_0xe980a6(0x2bd)](),_0x495d09,_0x481adf);return;}_0xf7ff0f[_0xe980a6(0x29f)](_0x1911f5,_0x495d09,_0x481adf);}function ho(_0x5753b7,_0xa3212a,_0x41e92d,_0x2bd4b2){const _0x4bf75d=_0x3447f8;return _0xa3212a===_0x25f34a[_0x4bf75d(0x295)]?_0x2bd4b2:_0xa3212a===_0x25f34a['date']&&_0x41e92d?_0x254bab[_0x4bf75d(0x11b)](_0x41e92d,Number(_0x5753b7)):_0x5753b7;}function go(_0x31588f){const _0x282c08=_0x3447f8;return _0x31588f[_0x282c08(0x1b9)]===_0x2940a8[_0x282c08(0x3c9)]||_0x31588f[_0x282c08(0x1b9)]===_0x2940a8[_0x282c08(0x18d)]||_0x31588f[_0x282c08(0x1b9)]===_0x2940a8['Progress']||_0x31588f[_0x282c08(0x1b9)]===_0x2940a8[_0x282c08(0x3b8)];}function _o(_0x1c03c4){const _0xd09aab=_0x3447f8;switch(_0x1c03c4){case _0x23447d[_0xd09aab(0x20e)]:return _0xd09aab(0x36f);case _0x23447d[_0xd09aab(0x29b)]:return _0xd09aab(0x3bc);case _0x23447d[_0xd09aab(0x1b0)]:return _0xd09aab(0x246);default:return _0xd09aab(0x1f3);}}function vo({config:_0x2ce3f3,onChange:_0x2c4711,runtime:_0x250a84,table:_0x4b5100}){const _0x1744c0=_0x3447f8;let _0x17e51e=_0x53af8d(_0x255457),[_0x582a4c,_0x5c186b]=_0xee90d5('chart');return _0x5c238f('aside',{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-96\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x1fa005(_0x283559,{'ariaLabel':_0x17e51e['t'](_0x1744c0(0x1a9)),'className':_0x1744c0(0x33a),'items':[{'label':_0x17e51e['t'](_0x1744c0(0x19e)),'panelId':'base-pivot-chart-configuration','value':_0x1744c0(0x1eb)},{'label':_0x17e51e['t'](_0x1744c0(0x1b7)),'panelId':_0x1744c0(0xce),'value':_0x1744c0(0x10d)}],'value':_0x582a4c,'variant':'segmented','onChange':_0x5c186b}),_0x1fa005('div',{'className':_0x1744c0(0x3e2),'children':_0x582a4c===_0x1744c0(0x1eb)?_0x250a84&&_0x1fa005(fa,{'config':_0x2ce3f3,'runtime':_0x250a84,'tableName':_0x4b5100[_0x1744c0(0x2cd)],'onChange':_0x2c4711}):_0x1fa005(ao,{'config':_0x2ce3f3,'table':_0x4b5100,'onChange':_0x2c4711})})]});}function yo({tableId:_0x38f236,unitId:_0x458af1,viewId:_0x52bd45}){const _0x32dc53=_0x3447f8;let _0x565c58=_0x53af8d(_0x1ec317),_0x4cceee=_0x53af8d(_0xa15270),_0x31eb33=_0x53af8d(_0x133842),_0x52d517=_0x53af8d(_0x255457),_0x5e8588=_0x53af8d(_0x2cc67a),[_0x17bdbe,_0x42809c]=_0xee90d5(null),[_0x2f4d9d,_0x35a31d]=_0xee90d5(null),_0x3fff56=_0x4523d4('base-pivot-chart-'+_0x2aef82(0x8)),[_0x4ff7f9,_0x376743]=_0xee90d5(!0x1),_0x1881ec=_0x4cceee[_0x32dc53(0x3be)](_0x458af1,_0x6e7cef[_0x32dc53(0x1f7)]),_0x58cf1e=_0x1881ec==null?void 0x0:_0x1881ec[_0x32dc53(0x3b6)]()[_0x32dc53(0x186)][_0x38f236],_0x2ad89f=_0x58cf1e==null?void 0x0:_0x58cf1e[_0x32dc53(0x2dc)][_0x52bd45],_0xd46c96=bo(_0x2ad89f),_0x24fccf=_r(_0x458af1,_0x38f236,_0x52bd45);if(_0x543512(()=>{const _0x4efe2e=_0x32dc53;if(!_0xd46c96)return;let _0x48e6f7=_0x3fff56[_0x4efe2e(0x23e)];return _0x5e8588[_0x4efe2e(0x1a0)](_0x48e6f7,{'unitId':_0x458af1,'tableId':_0x38f236,'viewId':_0x52bd45,'filters':[]}),()=>{const _0x2ce314=_0x4efe2e;_0x5e8588[_0x2ce314(0x197)](_0x458af1,_0x48e6f7);};},[_0xd46c96,_0x5e8588,_0x38f236,_0x458af1,_0x52bd45]),_0x543512(()=>{const _0xdc6e0c=_0x32dc53;if(!bo(_0x2ad89f))return;let _0x4a26e8=!0x0,_0x345e15={'unitId':_0x458af1,'tableId':_0x38f236,'viewId':_0x52bd45,'filters':[_0x2ad89f[_0xdc6e0c(0x14f)]??null]};return _0x5e8588[_0xdc6e0c(0x1d6)](_0x458af1,_0x3fff56['current'],_0x345e15)['then'](_0x380106=>{const _0x691b6f=_0xdc6e0c;_0x4a26e8&&_0x380106&&(_0x42809c(_0x380106),_0x35a31d(_0x5e8588[_0x691b6f(0x337)](_0x458af1,_0x3fff56[_0x691b6f(0x23e)])??null),_0x376743(!0x1));})[_0xdc6e0c(0x308)](_0xf8e1f3=>{const _0x2f6e53=_0xdc6e0c;_0x31eb33[_0x2f6e53(0x1a3)](_0x2f6e53(0x12f),_0xf8e1f3),_0x4a26e8&&(_0x42809c(null),_0x376743(!0x0));}),()=>{_0x4a26e8=!0x1;};},[_0x31eb33,_0x5e8588,_0x38f236,_0x458af1,_0x2ad89f,_0x52bd45]),!_0x58cf1e||!bo(_0x2ad89f))return null;let _0x5c64c5=_0x5e8588['getChartRuntime'](_0x458af1,_0x3fff56[_0x32dc53(0x23e)])===_0x2f4d9d?_0x2f4d9d:null,_0x26ee87=_0x17bdbe?_0x5c238f(_0x32dc53(0x1e8),{'className':_0x32dc53(0x1f9),'style':{'gridTemplateRows':_0x2ad89f['config'][_0x32dc53(0x2f2)]===_0x32dc53(0xf9)?_0x32dc53(0x11a):_0x32dc53(0x1ea)},'children':[_0x2ad89f[_0x32dc53(0x2b0)][_0x32dc53(0x2f2)]!==_0x32dc53(0x173)&&_0x5c64c5&&_0x1fa005('div',{'className':_0x32dc53(0x360),'children':_0x1fa005(Ir,{'isRowDirection':_0x18785d(_0x2ad89f[_0x32dc53(0x2b0)][_0x32dc53(0x1eb)]['orient']),'runtime':_0x5c64c5})}),_0x2ad89f[_0x32dc53(0x2b0)][_0x32dc53(0x2f2)]!=='chart'&&_0x1fa005('div',{'className':_0x32dc53(0x14e),'children':_0x1fa005(ki,{'pivot':_0x2ad89f['config'][_0x32dc53(0x10d)],'view':_0x17bdbe[_0x32dc53(0x3d6)]})})]}):_0x1fa005(_0x32dc53(0x1e8),{'className':_0x32dc53(0x158),'children':_0x4ff7f9?_0x52d517['t'](_0x32dc53(0x143)):_0x52d517['t']('bases-dashboard-ui.pivot.calculating')});return _0x5c238f(_0x32dc53(0x1e8),{'className':_0x32dc53(0x113),'children':[_0x1fa005(_0x32dc53(0x1e8),{'className':_0x32dc53(0x3fc),'children':_0x26ee87}),_0x24fccf&&_0x1fa005(vo,{'config':_0x2ad89f[_0x32dc53(0x2b0)],'runtime':_0x5c64c5,'table':_0x58cf1e,'onChange':_0x5c1f63=>{const _0x4b83d5=_0x32dc53;_0x565c58[_0x4b83d5(0x2be)](_0x22ea58['id'],{'unitId':_0x458af1,'tableId':_0x38f236,'viewId':_0x52bd45,'patch':_0x5c1f63})[_0x4b83d5(0x308)](_0x1b572c=>_0x31eb33[_0x4b83d5(0x1a3)](_0x4b83d5(0x39a),_0x1b572c));}})]});}function bo(_0x34e123){const _0x409370=_0x3447f8;return(_0x34e123==null?void 0x0:_0x34e123[_0x409370(0x1b9)])===_0x4da0de[_0x409370(0x1ec)]&&typeof _0x34e123[_0x409370(0x2b0)]==_0x409370(0x2f1)&&_0x34e123[_0x409370(0x2b0)]!==null&&_0x409370(0x10d)in _0x34e123[_0x409370(0x2b0)]&&_0x409370(0x1eb)in _0x34e123[_0x409370(0x2b0)]&&_0x409370(0x2f2)in _0x34e123[_0x409370(0x2b0)];}let xo=class extends _0x47ac6f{constructor(_0x51c5f2,_0x54f871,_0x31f053,_0x2c7026,_0x416925,_0xabc562){const _0x3d7725=_0x3447f8;super(),this[_0x3d7725(0x36c)](_0x54f871['register']({'type':_0x4da0de[_0x3d7725(0x1ec)],'renderMode':_0x3d7725(0x30f),'icon':_0x551361,'component':yo,'menu':{get 'label'(){const _0x3ec0d4=_0x3d7725;return _0xabc562['t'](_0x3ec0d4(0x1a9));},get 'description'(){const _0x5c948e=_0x3d7725;return _0xabc562['t'](_0x5c948e(0x1a5));},get 'defaultName'(){const _0x18d305=_0x3d7725;return _0xabc562['t'](_0x18d305(0x270));}}})),this[_0x3d7725(0x36c)](_0x51c5f2['register'](So(_0x31f053,_0x2c7026,_0x416925,_0xabc562)));}};xo=Or([Y(0x0,_0x3460c3),Y(0x1,_0x198cb9),Y(0x2,_0x1e6fb0(_0x4e6cdd)),Y(0x3,_0x1ec317),Y(0x4,_0x58608a),Y(0x5,_0x1e6fb0(_0x255457))],xo);function So(_0x28de39,_0x4658d9,_0x3a7df1,_0x2b8518){const _0x2bc5fb=_0x3447f8;return{'change$':_0x1691f8(_0x28de39['change$'],_0x3a7df1[_0x2bc5fb(0x214)]),'component':Ja,get 'labels'(){const _0x5ca943=_0x2bc5fb;return{'add':_0x2b8518['t'](_0x5ca943(0x19b)),'configure':_0x51fbed=>_0x2b8518['t'](_0x5ca943(0x291),_0x51fbed),'delete':_0x2b8518['t']('bases-dashboard-ui.dashboard.delete'),'new':_0x2b8518['t']('bases-dashboard-ui.dashboard.new'),'rename':_0x2b8518['t']('bases-dashboard-ui.dashboard.rename'),'search':_0x2b8518['t'](_0x5ca943(0xf4)),'section':_0x2b8518['t']('bases-dashboard-ui.dashboard.section')};},'getItems':_0x45b69d=>{const _0x4537b1=_0x2bc5fb;let _0x28a675=_0x28de39[_0x4537b1(0x29d)](_0x45b69d);return _0x28a675['dashboardOrder'][_0x4537b1(0x30c)](_0x193607=>{const _0xc965ce=_0x4537b1;let _0x2be8bd=_0x28a675['dashboards'][_0x193607];return _0x2be8bd?[{'id':_0x2be8bd['id'],'name':_0x2be8bd[_0xc965ce(0x2cd)],'readonly':!_0x314d1d(_0x3a7df1,_0x45b69d,_0x2be8bd['id'])}]:[];});},'create':async _0x1b6352=>{const _0xc72793=_0x2bc5fb;let _0x1fa413=_0x28de39['getResource'](_0x1b6352),_0x496866=_0xc72793(0x13a)+_0x2aef82(0x8),_0x36e8cc=Co(_0x1fa413['dashboardOrder']['flatMap'](_0xf32ba=>{const _0x3bd9e9=_0xc72793;let _0x23a9ae=_0x1fa413[_0x3bd9e9(0x1fc)][_0xf32ba];return _0x23a9ae?[_0x23a9ae[_0x3bd9e9(0x2cd)]]:[];}),_0x3705cb=>_0x2b8518['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x3705cb)));return await _0x4658d9[_0xc72793(0x2be)](_0x15bed1['id'],{'unitId':_0x1b6352,'dashboard':{'id':_0x496866,'name':_0x36e8cc,'widgetOrder':[],'widgets':{}}})?_0x496866:null;},'rename':async(_0x52e180,_0x162647,_0x5b25a3)=>{const _0x5f35ab=_0x2bc5fb;let _0x149d6e=_0x28de39[_0x5f35ab(0x2cf)](_0x52e180,_0x162647);return!!(_0x149d6e&&await _0x4658d9['executeCommand'](_0x51a517['id'],{'unitId':_0x52e180,'dashboard':{..._0x149d6e,'name':_0x5b25a3}}));},'remove':(_0x29dae4,_0x51465b)=>_0x4658d9[_0x2bc5fb(0x2be)](_0x56eacd['id'],{'unitId':_0x29dae4,'dashboardId':_0x51465b})};}function Co(_0x3718ce,_0x22921c){const _0x5c6790=_0x3447f8;let _0x19c750=new Set(_0x3718ce),_0x1e8749=_0x19c750['size']+0x1,_0xbd30ea=_0x22921c(_0x1e8749);for(;_0x19c750[_0x5c6790(0x3a4)](_0xbd30ea);)_0x1e8749+=0x1,_0xbd30ea=_0x22921c(_0x1e8749);return _0xbd30ea;}let wo=class extends _0x4b5524{constructor(_0x34921d=hr,_0x475234,_0x1ca8ce){const _0x2aa227=_0x3447f8;super(),this['_config']=_0x34921d,this['_injector']=_0x475234,this[_0x2aa227(0x3dc)]=_0x1ca8ce;let {..._0x1b7d62}=_0x2b2cf0({},hr,this[_0x2aa227(0x2ae)]);this[_0x2aa227(0x3dc)][_0x2aa227(0x1ef)](mr,_0x1b7d62);}[_0x3447f8(0x192)](){const _0x3416cc=_0x3447f8;this[_0x3416cc(0x3e5)][_0x3416cc(0x1fa)]([kr]),this[_0x3416cc(0x3e5)][_0x3416cc(0x1fa)]([Gr]),this[_0x3416cc(0x3e5)][_0x3416cc(0x1fa)]([xo]);}[_0x3447f8(0xec)](){const _0x5b538c=_0x3447f8;_0x3ce29c(this[_0x5b538c(0x3e5)],[[kr],[Gr],[xo]]);}};Pr(wo,_0x3447f8(0x1b9),_0x6e7cef['UNIVER_BASE']),Pr(wo,_0x3447f8(0x255),_0x3447f8(0x206)),Pr(wo,_0x3447f8(0x3b1),fr),Pr(wo,_0x3447f8(0x176),pr),wo=Or([_0xc92a94(_0x267ea2,_0x12b6ef,_0x3c0cd9,_0x22f198,_0x100373,_0x442bae),Y(0x1,_0x1e6fb0(_0x49fd9b)),Y(0x2,_0x56e562)],wo);export{na as UniverBaseDashboardMobileUIPlugin,wo as UniverBaseDashboardUIPlugin};