@univerjs-pro/bases-dashboard-ui 1.0.2 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/cs-CZ.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/nl-NL.js +1 -1
  15. package/lib/cjs/locale/pl-PL.js +1 -1
  16. package/lib/cjs/locale/pt-BR.js +1 -1
  17. package/lib/cjs/locale/ru-RU.js +1 -1
  18. package/lib/cjs/locale/sk-SK.js +1 -1
  19. package/lib/cjs/locale/th-TH.js +1 -1
  20. package/lib/cjs/locale/tr-TR.js +1 -1
  21. package/lib/cjs/locale/uk-UA.js +1 -1
  22. package/lib/cjs/locale/vi-VN.js +1 -1
  23. package/lib/cjs/locale/zh-CN.js +1 -1
  24. package/lib/cjs/locale/zh-HK.js +1 -1
  25. package/lib/cjs/locale/zh-TW.js +1 -1
  26. package/lib/es/index.js +1 -1
  27. package/lib/es/locale/ar-SA.js +1 -1
  28. package/lib/es/locale/ca-ES.js +1 -1
  29. package/lib/es/locale/cs-CZ.js +1 -1
  30. package/lib/es/locale/de-DE.js +1 -1
  31. package/lib/es/locale/en-US.js +1 -1
  32. package/lib/es/locale/es-ES.js +1 -1
  33. package/lib/es/locale/fa-IR.js +1 -1
  34. package/lib/es/locale/fr-FR.js +1 -1
  35. package/lib/es/locale/id-ID.js +1 -1
  36. package/lib/es/locale/it-IT.js +1 -1
  37. package/lib/es/locale/ja-JP.js +1 -1
  38. package/lib/es/locale/ko-KR.js +1 -1
  39. package/lib/es/locale/nl-NL.js +1 -1
  40. package/lib/es/locale/pl-PL.js +1 -1
  41. package/lib/es/locale/pt-BR.js +1 -1
  42. package/lib/es/locale/ru-RU.js +1 -1
  43. package/lib/es/locale/sk-SK.js +1 -1
  44. package/lib/es/locale/th-TH.js +1 -1
  45. package/lib/es/locale/tr-TR.js +1 -1
  46. package/lib/es/locale/uk-UA.js +1 -1
  47. package/lib/es/locale/vi-VN.js +1 -1
  48. package/lib/es/locale/zh-CN.js +1 -1
  49. package/lib/es/locale/zh-HK.js +1 -1
  50. package/lib/es/locale/zh-TW.js +1 -1
  51. package/lib/index.js +1 -1
  52. package/lib/locale/ar-SA.js +1 -1
  53. package/lib/locale/ca-ES.js +1 -1
  54. package/lib/locale/cs-CZ.js +1 -1
  55. package/lib/locale/de-DE.js +1 -1
  56. package/lib/locale/en-US.js +1 -1
  57. package/lib/locale/es-ES.js +1 -1
  58. package/lib/locale/fa-IR.js +1 -1
  59. package/lib/locale/fr-FR.js +1 -1
  60. package/lib/locale/id-ID.js +1 -1
  61. package/lib/locale/it-IT.js +1 -1
  62. package/lib/locale/ja-JP.js +1 -1
  63. package/lib/locale/ko-KR.js +1 -1
  64. package/lib/locale/nl-NL.js +1 -1
  65. package/lib/locale/pl-PL.js +1 -1
  66. package/lib/locale/pt-BR.js +1 -1
  67. package/lib/locale/ru-RU.js +1 -1
  68. package/lib/locale/sk-SK.js +1 -1
  69. package/lib/locale/th-TH.js +1 -1
  70. package/lib/locale/tr-TR.js +1 -1
  71. package/lib/locale/uk-UA.js +1 -1
  72. package/lib/locale/vi-VN.js +1 -1
  73. package/lib/locale/zh-CN.js +1 -1
  74. package/lib/locale/zh-HK.js +1 -1
  75. package/lib/locale/zh-TW.js +1 -1
  76. package/lib/umd/index.js +1 -1
  77. package/lib/umd/locale/ar-SA.js +1 -1
  78. package/lib/umd/locale/ca-ES.js +1 -1
  79. package/lib/umd/locale/cs-CZ.js +1 -1
  80. package/lib/umd/locale/de-DE.js +1 -1
  81. package/lib/umd/locale/en-US.js +1 -1
  82. package/lib/umd/locale/es-ES.js +1 -1
  83. package/lib/umd/locale/fa-IR.js +1 -1
  84. package/lib/umd/locale/fr-FR.js +1 -1
  85. package/lib/umd/locale/id-ID.js +1 -1
  86. package/lib/umd/locale/it-IT.js +1 -1
  87. package/lib/umd/locale/ja-JP.js +1 -1
  88. package/lib/umd/locale/ko-KR.js +1 -1
  89. package/lib/umd/locale/nl-NL.js +1 -1
  90. package/lib/umd/locale/pl-PL.js +1 -1
  91. package/lib/umd/locale/pt-BR.js +1 -1
  92. package/lib/umd/locale/ru-RU.js +1 -1
  93. package/lib/umd/locale/sk-SK.js +1 -1
  94. package/lib/umd/locale/th-TH.js +1 -1
  95. package/lib/umd/locale/tr-TR.js +1 -1
  96. package/lib/umd/locale/uk-UA.js +1 -1
  97. package/lib/umd/locale/vi-VN.js +1 -1
  98. package/lib/umd/locale/zh-CN.js +1 -1
  99. package/lib/umd/locale/zh-HK.js +1 -1
  100. package/lib/umd/locale/zh-TW.js +1 -1
  101. package/package.json +17 -17
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x57c180=_0x44d8;(function(_0xb6aee0,_0x344096){const _0x4ac652=_0x44d8,_0x2bd1a1=_0xb6aee0();while(!![]){try{const _0x2a0c80=-parseInt(_0x4ac652(0x2d6))/0x1+-parseInt(_0x4ac652(0x1ab))/0x2+-parseInt(_0x4ac652(0x31e))/0x3*(parseInt(_0x4ac652(0x199))/0x4)+-parseInt(_0x4ac652(0x305))/0x5*(-parseInt(_0x4ac652(0x1af))/0x6)+-parseInt(_0x4ac652(0x2ac))/0x7+-parseInt(_0x4ac652(0x34c))/0x8*(-parseInt(_0x4ac652(0x3c9))/0x9)+parseInt(_0x4ac652(0x3ca))/0xa*(parseInt(_0x4ac652(0x187))/0xb);if(_0x2a0c80===_0x344096)break;else _0x2bd1a1['push'](_0x2bd1a1['shift']());}catch(_0x434512){_0x2bd1a1['push'](_0x2bd1a1['shift']());}}}(_0x59a9,0x99ef8));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x3bde0c,BASES_DASHBOARD_GRID_COLUMNS as _0x16d92d,BaseChartRuntimeService as _0x534e77,BaseDashboardResourceService as _0x1e99fb,BaseDashboardWidgetType as _0x925244,CreateBaseDashboardCommand as _0x2a269b,DeleteBaseDashboardCommand as _0x452258,RemoveBaseDashboardWidgetCommand as _0x6dd3ea,UniverBaseDashboardPlugin as _0x398c3a,UpdateBaseDashboardCommand as _0x16ed85,UpdateBasePivotViewCommand as _0x26095f,UpsertBaseDashboardWidgetCommand as _0x5a7b78,canEditBaseDashboard as _0x1377c4,canEditBasePivotView as _0x472988,createBasePivotTable as _0x4ae6f2,resolveBasePivotChartRowDirection as _0x143525}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x47e1b0,BaseMobileDrawer as _0x5ae53d,BaseMobileFilterOperand as _0x384525,BaseMobileFilterPanel as _0x123ae3,BaseUnitCollaborationStatus as _0xf99d34,FormulaEditorPanel as _0x24b807,IBaseDashboardUIExtensionRegistryService as _0x5135cb,IBaseViewUIRegistryService as _0x452fc8,MobileFormulaEditorPanel as _0x4c5f2e,UniverBasesMobileUIPlugin as _0x305f36,UniverBasesUIPlugin as _0x3fa7c8,formulaToEditorFormula as _0x23590c,normalizeEditorFormulaForConfig as _0x909b28,toFormulaMenuTables as _0x3fc9b5,toMenuFields as _0x20d50d}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x3c2b9a,ChartAxisSection as _0x4ecd7e,ChartColorField as _0x14a84b,ChartCommonDataMappingSection as _0x236f8b,ChartEditBlockTitle as _0x20c528,ChartEditPanel as _0x5cb021,ChartEditPanelSection as _0xd01354,ChartEditPanelTab as _0x34d32e,ChartEditPanelTabs as _0x2e9f58,ChartEditorCapability as _0x262643,ChartEditorProvider as _0x4c2ea3,ChartFunnelStyleSection as _0x5c8bd4,ChartGradientFillField as _0x365082,ChartGridlinesAndTicksSection as _0x41e9c3,ChartHeatmapStyleSection as _0x56789e,ChartHostAdapter as _0x4e622f,ChartIndicatorLineSection as _0x5eb7b1,ChartLegendSection as _0x3c5065,ChartLineAndAreaSection as _0x152bb6,ChartNumberFormatAtom as _0x1984da,ChartParetoSeriesSection as _0x7a917b,ChartPieStyleSection as _0x55a368,ChartRadarStyleSection as _0x807256,ChartRelationStyleSection as _0xf308df,ChartSectionAccordion as _0x2794c9,ChartSectionAccordionContent as _0x4bb2c8,ChartSectionAccordionItem as _0x511a83,ChartSectionAccordionTrigger as _0x22a0cc,ChartSeriesSection as _0xfcfe0d,ChartStackField as _0x5ab8f3,ChartStyleSection as _0x36f8fa,ChartThemeField as _0x40668c,ChartTitlesSection as _0x3b2df6,ChartTrendlineSection as _0x1928c4,ChartTypeField as _0x1e47f4,ChartTypeSpecificDataSection as _0x260003,ChartTypeSpecificSetupSection as _0x60f00e,ChartTypeSpecificStyleSection as _0x4ea50d,ChartUIService as _0x4acbdf,ChartViewStateRegistry as _0x49b052,ChartWaterfallSetupFields as _0x115741,ChartWaterfallStyleSection as _0x29de7e,ChartWordCloudStyleSection as _0x14d125,DEFAULT_CHART_AXIS_VALUES as _0x5bb0d7,DEFAULT_CHART_FUNNEL_VALUES as _0x2ade94,DEFAULT_CHART_HEATMAP_VALUES as _0x56fd38,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x4505bf,DEFAULT_CHART_LEGEND_VALUES as _0x255bea,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x334ac6,DEFAULT_CHART_PARETO_VALUES as _0x50369c,DEFAULT_CHART_PIE_VALUES as _0x2a7701,DEFAULT_CHART_RADAR_VALUES as _0x23b3e2,DEFAULT_CHART_RELATION_VALUES as _0x47989a,DEFAULT_CHART_SERIES_VALUES as _0x6b2197,DEFAULT_CHART_STYLE_VALUES as _0x11b3b9,DEFAULT_CHART_TITLE_VALUES as _0x4012e3,DEFAULT_CHART_TRENDLINE_VALUES as _0x1f404b,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x2665d6,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x15d409,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x5f4293,MobileChartEditorControls as _0xb7bcd0,MobileChartEditorProvider as _0x247ccf,UniverChartMobileUIPlugin as _0x15321a,UniverChartUIPlugin as _0x5596f9,buildChartTypeSelectOptions as _0x5447e3,chartTypeSupportsCapability as _0x20bcdc,chartTypeSupportsLineAndAreaStyle as _0x41979c,useChartEditorChartType as _0x1600aa,useChartEditorHasRightAxis as _0x4abcf3}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x187023}from'@univerjs-pro/license';import{ShapeFormulaService as _0x326d00,UniverShapeEditorPlugin as _0x379239,createFormulaShapeData as _0x46c966}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0x36d8a8,BaseFilterConjunction as _0x26a62d,BaseFilterOperator as _0x170c06,BaseViewType as _0x4e046d,DependentOn as _0x9eb0d5,Disposable as _0x7c5363,ICommandService as _0x20bf70,IConfigService as _0x19da82,IImageIoService as _0x26f888,ILogService as _0xa0671c,IPermissionService as _0x31dc6c,IUndoRedoService as _0x21d906,IUniverInstanceService as _0xfa1040,ImageSourceType as _0x2e9f9a,Inject as _0xfb26ea,Injector as _0x3fc728,LocaleService as _0xc34a30,ObjectPermissionService as _0x202eb7,Plugin as _0x239fa2,RedoCommand as _0x409470,ThemeService as _0x2f0481,UndoCommand as _0x114bc6,UniverInstanceType as _0x1be7ab,createParagraphId as _0x1d37b5,dateKit as _0x592859,generateRandomId as _0x2bbf35,merge as _0x50ef5d,numfmt as _0x80f5c8,touchDependencies as _0x5e38a1}from'@univerjs/core';import{UniverDocsUIPlugin as _0x42b4c7}from'@univerjs/docs-ui';import{ArrowDownIcon as _0x6231e1,ArrowUpIcon as _0x556586,AscendingIcon as _0x4b54c1,CalendarIcon as _0x5ece4d,ChartIcon as _0x54efa1,CloseIcon as _0x2967a2,DeleteIcon as _0x4e3f72,DescendingIcon as _0x29065b,ExpandIcon as _0x7dfdc8,FilterIcon as _0x3b1c88,GripVerticalIcon as _0x4e0043,IncreaseIcon as _0x5d1373,MoreDownIcon as _0x39bc4e,MoreHorizontalIcon as _0x5e1024,NumberIcon as _0x1ef1cd,PenIcon as _0x473cd9,PivotTableIcon as _0x26e878,ProtectIcon as _0x4c92f0,RedoIcon as _0x9460ca,SearchIcon as _0x686afa,TextIcon as _0x427459,UndoIcon as _0x1d73f1}from'@univerjs/icons';import{combineLatest as _0x1d680b,map as _0x3b1cb4,merge as _0x2391b4,skip as _0x156d4e}from'rxjs';import{SetBasePermissionCommand as _0x2a9b6a,getBaseDashboardPermissionObjectId as _0x23d43e}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x366739}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x33c489,ShapeLineTypeEnum as _0x4a9ee5,ShapeTypeEnum as _0x54b8df}from'@univerjs-pro/engine-shape';import{Button as _0x29df96,Checkbox as _0x57ec08,DatePicker as _0x65183b,Dialog as _0x200c20,DropdownMenu as _0x1f43a4,Input as _0x225487,InputNumber as _0x142183,MobileDialog as _0x59b7d9,MobileDropdownMenu as _0x1936c5,MobileSelect as _0x387f08,MultipleSelect as _0x5ee40c,Segmented as _0x9bce40,Select as _0x103c6a,Textarea as _0x98f9d1,Tooltip as _0x79306f,borderClassName as _0x1ba91b,clsx as _0x3c6675,scrollbarClassName as _0x32f99e}from'@univerjs/design';import{UnitObject as _0x368318}from'@univerjs/protocol';import{ILayoutService as _0x270a90,ObjectPermissionButton as _0x4603f1,openObjectPermissionDialog as _0x27fc04,useDependency as _0x3dc792,useObservable as _0x1cdd28}from'@univerjs/ui';import{useCallback as _0xd5c68e,useEffect as _0x5a872b,useMemo as _0x4561c2,useRef as _0x26ca56,useState as _0x155c41}from'react';import{Fragment as _0x30443f,jsx as _0x1bfcde,jsxs as _0x3fc05f}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x33d81c,ChartRenderMode as _0x37b5be,ChartThemeService as _0x51e39d,ChartTypeBits as _0x546fc5,ChartWaterfallStyleTarget as _0x588af0,IChartRenderModelManagerService as _0x188f83,RTLChartStyle as _0x1cf164,chartBitsUtils as _0x579955,chartTypeCanUseTrendLine as _0x3d1aed,resolveChartRuntimeStyle as _0x556430,resolveDefaultChartHostFrameStyle as _0x1148bd,toChartModelUpdate as _0x206b2e}from'@univerjs-pro/engine-chart';import{createPortal as _0x168f49}from'react-dom';import{PivotCellStyleTypeEnum as _0x487530,PivotDataFieldDataTypeEnum as _0x2be849,PivotDataFieldSortOperatorEnum as _0x217088,PivotFilterTypeEnum as _0x38a435,PivotLayoutTypeEnum as _0x363820,PivotSubtotalPositionEnum as _0x2fcd7c,PivotSubtotalTypeEnum as _0x48c6be,PivotTableFiledAreaEnum as _0x3881d5,PivotTableValuePositionEnum as _0xb31626,isErrorValue as _0x3ede5d,isPrefixValue as _0x3c427e}from'@univerjs-pro/engine-pivot';var fr='@univerjs-pro/bases-dashboard-ui',pr=_0x57c180(0x195);const mr=_0x57c180(0x154),hr={};function gr(_0x81f8b7,_0x4cd83a){const _0xb92e29=_0x57c180;let _0x1f14f1=_0x3dc792(_0x31dc6c),_0x54c68b=_0x1377c4(_0x1f14f1,_0x81f8b7,_0x4cd83a);return _0x1cdd28(()=>_0x1f14f1[_0xb92e29(0x3dd)][_0xb92e29(0x391)](_0x3b1cb4(()=>_0x1377c4(_0x1f14f1,_0x81f8b7,_0x4cd83a))),_0x54c68b,!0x1,[_0x4cd83a,_0x1f14f1,_0x81f8b7]);}function _r(_0x11a2c3,_0x55b551,_0x388490){const _0x5e1e6b=_0x57c180;let _0x55d9b9=_0x3dc792(_0x31dc6c),_0x2fb25a=_0x472988(_0x55d9b9,_0x11a2c3,_0x55b551,_0x388490);return _0x1cdd28(()=>_0x55d9b9[_0x5e1e6b(0x3dd)][_0x5e1e6b(0x391)](_0x3b1cb4(()=>_0x472988(_0x55d9b9,_0x11a2c3,_0x55b551,_0x388490))),_0x2fb25a,!0x1,[_0x55d9b9,_0x55b551,_0x11a2c3,_0x388490]);}function vr(_0x115f4f,_0x2fb64d=_0x57c180(0x3a5)){const _0x46df63=_0x57c180;return{'backgroundImage':'url('+JSON['stringify'](_0x115f4f)+')','backgroundPosition':_0x2fb64d===_0x46df63(0x32c)?_0x46df63(0x472):_0x46df63(0x28e),'backgroundRepeat':_0x2fb64d==='repeat'?_0x46df63(0x32c):_0x46df63(0x328),'backgroundSize':_0x2fb64d===_0x46df63(0x3a5)?_0x46df63(0x3a5):_0x46df63(0x27e)};}const yr={'alignment':'left','currency':'USD','decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x57c180(0x27e),'numberFormat':'general'},br={'CNY':'¥','EUR':'€','USD':'$'};function xr(_0x287a37){const _0x5a1c43=_0x57c180;var _0x25c575;let _0x5ea65d=Tr(((_0x25c575=_0x287a37[_0x5a1c43(0x20a)][_0x5a1c43(0x251)])==null||(_0x25c575=_0x25c575[_0x5a1c43(0x441)])==null?void 0x0:_0x25c575[_0x5a1c43(0x1e2)])??'');return{...yr,..._0x5ea65d,..._0x287a37[_0x5a1c43(0x44b)]};}function Sr(_0x1febdf,_0x48f2c2){const _0x4f4eb3=_0x57c180;let _0x3b9698={..._0x1febdf[_0x4f4eb3(0x44b)],..._0x48f2c2},_0x37a628=xr({..._0x1febdf,'appearance':_0x3b9698}),_0x213b43=_0x1febdf[_0x4f4eb3(0x20a)][_0x4f4eb3(0x251)]??{'formula':''};return{..._0x1febdf,'appearance':_0x3b9698,'shapeData':{..._0x1febdf['shapeData'],'formulaBinding':{..._0x213b43,'numberFormat':{'pattern':Cr(_0x37a628[_0x4f4eb3(0x441)],_0x37a628['decimalPlaces'],_0x37a628[_0x4f4eb3(0x214)])}}}};}function Cr(_0x406816,_0x1027fd,_0x14e021){const _0x7a5720=_0x57c180;let _0x4a1e7c=Math[_0x7a5720(0x203)](0x0,Math[_0x7a5720(0x295)](0x8,Math[_0x7a5720(0x33b)](_0x1027fd))),_0x16d389=_0x4a1e7c?'.'+'0'[_0x7a5720(0x32c)](_0x4a1e7c):'';switch(_0x406816){case _0x7a5720(0x338):return'0'+_0x16d389;case _0x7a5720(0x3b1):return'0'+_0x16d389+'%';case _0x7a5720(0x214):return(br[_0x14e021]??_0x14e021)+_0x7a5720(0x309)+_0x16d389;case _0x7a5720(0x4a4):return _0x7a5720(0x309)+_0x16d389;case _0x7a5720(0x1c4):case _0x7a5720(0x452):return _0x7a5720(0x194);}}function wr(_0x2da5d6,_0x98a638,_0x5ea697){const _0x69c637=_0x57c180;return _0x5ea697[_0x69c637(0x441)]!=='compact'||typeof _0x98a638!=_0x69c637(0x338)||!Number['isFinite'](_0x98a638)?_0x2da5d6:new Intl[(_0x69c637(0x466))](void 0x0,{'notation':_0x69c637(0x1c4),'minimumFractionDigits':_0x5ea697[_0x69c637(0x336)]??0x0,'maximumFractionDigits':_0x5ea697[_0x69c637(0x336)]??0x0})[_0x69c637(0x23c)](_0x98a638);}function Tr(_0x9c909e){const _0x934221=_0x57c180;var _0x2ed381,_0x3515df;if(!_0x9c909e||_0x9c909e===_0x934221(0x194))return{};let _0x5f1359=_0x9c909e[_0x934221(0x344)](/\.([0#]+)/),_0x25a43c=(_0x5f1359==null||(_0x2ed381=_0x5f1359[0x1])==null?void 0x0:_0x2ed381['length'])??0x0;if(_0x9c909e['includes']('%'))return{'decimalPlaces':_0x25a43c,'numberFormat':_0x934221(0x3b1)};let _0x373981=(_0x3515df=Object[_0x934221(0x30f)](br)['find'](([,_0x468c76])=>_0x9c909e[_0x934221(0x300)](_0x468c76)))==null?void 0x0:_0x3515df[0x0];return _0x373981?{'currency':_0x373981,'decimalPlaces':_0x25a43c,'numberFormat':_0x934221(0x214)}:{'decimalPlaces':_0x25a43c,'numberFormat':_0x9c909e[_0x934221(0x300)](',')?_0x934221(0x4a4):_0x934221(0x338)};}const Er={'center':'center','left':_0x57c180(0x29a),'right':_0x57c180(0x35b)};function Dr({dashboardId:_0x349941,unitId:_0x3091c5,widget:_0x11d7d7}){const _0x56ba30=_0x57c180;var _0xfc7f71,_0xcd0887,_0x332ae8,_0x3d4256,_0x3d4340,_0x4efdd1,_0x125042,_0x4dfcd3,_0x43c93e;let _0xb6969=_0x3dc792(_0x326d00),_0x31a853=_0x3dc792(_0x26f888),_0x1a432b=_0x3dc792(_0xc34a30),_0x133817=_0x4561c2(()=>({'hostType':_0x1be7ab['UNIVER_BASE'],'unitId':_0x3091c5,'subUnitId':_0x349941,'shapeId':_0x11d7d7['id']}),[_0x349941,_0x3091c5,_0x11d7d7['id']]),[_0x18c04e,_0x3a3ebd]=_0x155c41(()=>_0xb6969[_0x56ba30(0x21a)](_0x133817)),[_0x1314c1,_0x5d6322]=_0x155c41(()=>{const _0x3c9665=_0x56ba30;var _0x177f56;return(_0x177f56=_0xb6969[_0x3c9665(0x359)](_0x133817))==null?void 0x0:_0x177f56[_0x3c9665(0x435)];}),[_0x3f4369,_0x1ce16f]=_0x155c41(),_0x265253=_0x26ca56(null),_0x4445be=_0x26ca56(null),_0xa2cfbe=xr(_0x11d7d7);_0x5a872b(()=>{const _0x37f0f6=_0x56ba30;let _0x203813=_0xb6969[_0x37f0f6(0x167)][_0x37f0f6(0x1a5)](_0x2c8251=>{const _0x537e42=_0x37f0f6;_0x2c8251[_0x537e42(0x264)]===_0x3091c5&&_0x2c8251[_0x537e42(0x489)]===_0x349941&&_0x2c8251[_0x537e42(0x237)]===_0x11d7d7['id']&&(_0x3a3ebd(_0x2c8251[_0x537e42(0x1ed)]),_0x5d6322(_0x2c8251[_0x537e42(0x296)][_0x537e42(0x435)]));});return()=>_0x203813[_0x37f0f6(0x172)]();},[_0x349941,_0xb6969,_0x133817,_0x3091c5,_0x11d7d7['id']]),_0x5a872b(()=>{const _0x1f6e17=_0x56ba30;let _0x4c39ee=_0xa2cfbe['backgroundImage'];if(!_0x4c39ee||_0x4c39ee[_0x1f6e17(0x407)]!==_0x2e9f9a[_0x1f6e17(0x2bb)])return;let _0x5d296a=_0x31a853['getImageSourceCache'](_0x4c39ee[_0x1f6e17(0x153)],_0x4c39ee[_0x1f6e17(0x407)]);if(_0x5d296a!=null&&_0x5d296a['src'])return;let _0x5f4cad=!0x0;return _0x31a853[_0x1f6e17(0x481)](_0x4c39ee[_0x1f6e17(0x153)])['then'](_0x1ea289=>{const _0x3aca2f=_0x1f6e17;_0x5f4cad&&_0x1ce16f({'source':_0x4c39ee[_0x3aca2f(0x153)],'value':_0x1ea289});})[_0x1f6e17(0x2cb)](()=>void 0x0),()=>{_0x5f4cad=!0x1;};},[_0xa2cfbe['backgroundImage'],_0x31a853]);let _0x5df257=((_0xfc7f71=_0xa2cfbe[_0x56ba30(0x1c6)])==null?void 0x0:_0xfc7f71['sourceType'])===_0x2e9f9a[_0x56ba30(0x2bb)]?((_0xcd0887=_0x31a853[_0x56ba30(0x250)](_0xa2cfbe[_0x56ba30(0x1c6)][_0x56ba30(0x153)],_0xa2cfbe[_0x56ba30(0x1c6)][_0x56ba30(0x407)]))==null?void 0x0:_0xcd0887[_0x56ba30(0x242)])??((_0x3f4369==null?void 0x0:_0x3f4369[_0x56ba30(0x153)])===_0xa2cfbe[_0x56ba30(0x1c6)][_0x56ba30(0x153)]?_0x3f4369[_0x56ba30(0x435)]:''):((_0x332ae8=_0xa2cfbe['backgroundImage'])==null?void 0x0:_0x332ae8[_0x56ba30(0x153)])??'',_0xfac7b2=_0x11d7d7['shapeData'][_0x56ba30(0x2ce)],_0x4d35aa=_0xfac7b2&&'dataModel'in _0xfac7b2?(_0x3d4256=_0xfac7b2[_0x56ba30(0x3fd)])==null?void 0x0:_0x3d4256[_0x56ba30(0x34e)]:void 0x0,_0x5e8062=wr((_0x18c04e==null?void 0x0:_0x18c04e[_0x56ba30(0x22e)])??'',_0x1314c1,_0xa2cfbe),_0x1b8d8c=_0x11d7d7[_0x56ba30(0x20a)][_0x56ba30(0x162)],_0x369cfa=_0x11d7d7[_0x56ba30(0x20a)][_0x56ba30(0x2a0)],_0x395ff5=_0x4d35aa==null||(_0x3d4340=_0x4d35aa[_0x56ba30(0x2d1)])==null?void 0x0:_0x3d4340[_0x56ba30(0x40c)],_0x5a0756=_0x11d7d7[_0x56ba30(0x18f)]??_0x11d7d7['title']??'';return _0x5a872b(()=>{const _0x49a4df=_0x56ba30;let _0x3ce24d=_0x265253[_0x49a4df(0x18a)],_0x2402f6=_0x4445be['current'];if(!_0x3ce24d||!_0x2402f6)return;let _0x10db3b=()=>{const _0x4f9a41=_0x49a4df;if(_0xa2cfbe[_0x4f9a41(0x204)]===_0x4f9a41(0x29e)||!_0x3ce24d['clientWidth']||!_0x3ce24d[_0x4f9a41(0x326)]){_0x2402f6[_0x4f9a41(0x1d6)][_0x4f9a41(0x2cd)]=_0xa2cfbe[_0x4f9a41(0x2cd)]+'px';return;}let _0x4704c9=0x1,_0x540e70=0x48,_0x357223=_0x4704c9;for(;_0x4704c9<=_0x540e70;){let _0x1cd7f5=Math['floor']((_0x4704c9+_0x540e70)/0x2);_0x2402f6['style']['fontSize']=_0x1cd7f5+'px',_0x2402f6['scrollWidth']<=_0x3ce24d[_0x4f9a41(0x3f4)]&&_0x2402f6[_0x4f9a41(0x2bf)]<=_0x3ce24d[_0x4f9a41(0x326)]?(_0x357223=_0x1cd7f5,_0x4704c9=_0x1cd7f5+0x1):_0x540e70=_0x1cd7f5-0x1;}_0x2402f6[_0x4f9a41(0x1d6)][_0x4f9a41(0x2cd)]=_0x357223+'px';};if(_0x10db3b(),typeof ResizeObserver>'u')return;let _0x5d4514=new ResizeObserver(_0x10db3b);return _0x5d4514['observe'](_0x3ce24d),()=>_0x5d4514[_0x49a4df(0x227)]();},[_0xa2cfbe['fontSize'],_0xa2cfbe[_0x56ba30(0x204)],_0x5e8062]),_0x3fc05f(_0x56ba30(0x332),{'data-dashboard-formula-shape':_0x11d7d7['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':((_0x4efdd1=_0x11d7d7['appearance'])==null?void 0x0:_0x4efdd1[_0x56ba30(0x26f)])??((_0x1b8d8c==null?void 0x0:_0x1b8d8c[_0x56ba30(0x3b2)])===_0x33c489[_0x56ba30(0x2f8)]?_0x1b8d8c[_0x56ba30(0x196)]??void 0x0:void 0x0),'border':(_0x369cfa==null?void 0x0:_0x369cfa[_0x56ba30(0x3dc)])===_0x4a9ee5['SolidLine']?(_0x369cfa[_0x56ba30(0x20d)]??0x1)+_0x56ba30(0x225)+(_0x369cfa[_0x56ba30(0x196)]??_0x56ba30(0x49d)):void 0x0,'borderRadius':_0x11d7d7[_0x56ba30(0x30c)]===_0x54b8df[_0x56ba30(0x39a)]?0xc:void 0x0,'color':((_0x125042=_0x11d7d7['appearance'])==null?void 0x0:_0x125042[_0x56ba30(0x386)])??(_0x18c04e==null?void 0x0:_0x18c04e[_0x56ba30(0x196)])??(_0x395ff5==null||(_0x4dfcd3=_0x395ff5['cl'])==null?void 0x0:_0x4dfcd3['rgb'])??void 0x0,'fontWeight':_0x395ff5!=null&&_0x395ff5['bl']?0x258:void 0x0,'textAlign':_0xa2cfbe[_0x56ba30(0x283)]},'children':[_0x5df257&&_0x1bfcde('img',{'src':_0x5df257,'alt':'','aria-hidden':_0x56ba30(0x44f),'className':_0x56ba30(0x275),'style':{'objectFit':((_0x43c93e=_0xa2cfbe[_0x56ba30(0x1c6)])==null?void 0x0:_0x43c93e['fit'])??_0x56ba30(0x3a5)}}),_0x3fc05f(_0x56ba30(0x332),{'className':_0x56ba30(0x19f),'children':[_0x5a0756&&_0x1bfcde(_0x56ba30(0x332),{'data-dashboard-formula-description':!0x0,'className':_0x56ba30(0x39b),'children':_0x5a0756}),_0x1bfcde(_0x56ba30(0x332),{'ref':_0x265253,'data-dashboard-formula-value':!0x0,'aria-label':_0x5a0756||_0x1a432b['t'](_0x56ba30(0x4a7)),'className':_0x56ba30(0x473),'style':{'justifyContent':Er[_0xa2cfbe[_0x56ba30(0x283)]]},'children':_0x1bfcde(_0x56ba30(0x45e),{'ref':_0x4445be,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0xa2cfbe[_0x56ba30(0x204)],'className':'univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','children':_0x5e8062})})]})]});}function Y(_0x288006,_0x180e8b){return function(_0x3f087d,_0x520ece){_0x180e8b(_0x3f087d,_0x520ece,_0x288006);};}function Or(_0x4bb416,_0x12ed86,_0x699ec6,_0x2dc8b3){const _0x3f6d0a=_0x57c180;var _0x5e2999=arguments['length'],_0x4be1f7=_0x5e2999<0x3?_0x12ed86:_0x2dc8b3===null?_0x2dc8b3=Object[_0x3f6d0a(0x223)](_0x12ed86,_0x699ec6):_0x2dc8b3,_0x1156d0;if(typeof Reflect==_0x3f6d0a(0x177)&&typeof Reflect[_0x3f6d0a(0x26d)]=='function')_0x4be1f7=Reflect[_0x3f6d0a(0x26d)](_0x4bb416,_0x12ed86,_0x699ec6,_0x2dc8b3);else{for(var _0x1a5e16=_0x4bb416[_0x3f6d0a(0x291)]-0x1;_0x1a5e16>=0x0;_0x1a5e16--)(_0x1156d0=_0x4bb416[_0x1a5e16])&&(_0x4be1f7=(_0x5e2999<0x3?_0x1156d0(_0x4be1f7):_0x5e2999>0x3?_0x1156d0(_0x12ed86,_0x699ec6,_0x4be1f7):_0x1156d0(_0x12ed86,_0x699ec6))||_0x4be1f7);}return _0x5e2999>0x3&&_0x4be1f7&&Object[_0x3f6d0a(0x3a7)](_0x12ed86,_0x699ec6,_0x4be1f7),_0x4be1f7;}let kr=class{constructor(_0x164959,_0x29e705,_0x488991){const _0x11a7b7=_0x57c180;this['_localeService']=_0x164959,this[_0x11a7b7(0x370)]=_0x29e705,this[_0x11a7b7(0x2e8)]=_0x488991;}['createDomChartInstance'](){const _0x553f63=_0x57c180;return this[_0x553f63(0x2e8)][_0x553f63(0x422)](_0x37b5be[_0x553f63(0x2a1)],this[_0x553f63(0x47c)]());}[_0x57c180(0x3c7)](_0x360a22){const _0x59bead=_0x57c180;let _0x136e29=_0x360a22[_0x59bead(0x2aa)][_0x59bead(0x163)];if(!_0x136e29)throw Error(_0x59bead(0x393)+_0x360a22[_0x59bead(0x1f4)]+_0x59bead(0x249));let _0x3d2e37=this['_localeService'][_0x59bead(0x3c3)]();return{'config':_0x136e29,'style':_0x556430({..._0x360a22['model'][_0x59bead(0x1d6)],'runtime':_0x360a22[_0x59bead(0x2aa)][_0x59bead(0x45b)](_0x3d2e37),'direction':_0x3d2e37},_0x136e29['type'])};}['_createContext'](){const _0x3c2762=_0x57c180;return{'resolveHostStyle':({style:_0x5379cc})=>_0x1148bd({'style':_0x5379cc,'getRenderColor':_0xb9c386=>this['_chartThemeService']['getRenderColor'](_0xb9c386)}),'resolveRenderBackgroundColor':({hostStyle:_0x58bac6})=>_0x58bac6[_0x3c2762(0x162)]};}};kr=Or([Y(0x0,_0xfb26ea(_0xc34a30)),Y(0x1,_0xfb26ea(_0x51e39d)),Y(0x2,_0x188f83)],kr);function Ar(_0x2f22f2,_0x51cadc){const _0x1f4079=_0x57c180;var _0x5d01e6;_0x2f22f2[_0x1f4079(0x1d6)]['backgroundColor']=_0x51cadc['fill']??_0x1f4079(0x365),_0x2f22f2[_0x1f4079(0x1d6)][_0x1f4079(0x45c)]=(_0x5d01e6=_0x51cadc[_0x1f4079(0x45c)])!=null&&_0x5d01e6[_0x1f4079(0x196)]&&_0x51cadc[_0x1f4079(0x45c)][_0x1f4079(0x20d)]?_0x51cadc[_0x1f4079(0x45c)]['width']+_0x1f4079(0x225)+_0x51cadc[_0x1f4079(0x45c)][_0x1f4079(0x196)]:'',_0x2f22f2[_0x1f4079(0x1d6)][_0x1f4079(0x399)]=_0x51cadc['radius']?_0x51cadc[_0x1f4079(0x265)]+'px':'',_0x2f22f2['style'][_0x1f4079(0x41a)]=_0x1f4079(0x228),_0x2f22f2[_0x1f4079(0x1d6)][_0x1f4079(0x3bf)]=_0x1f4079(0x36a);}function jr(_0x227cde){'@babel/helpers - typeof';const _0x7af443=_0x57c180;return jr=typeof Symbol==_0x7af443(0x31a)&&typeof Symbol[_0x7af443(0x2d5)]==_0x7af443(0x25e)?function(_0x292a6b){return typeof _0x292a6b;}:function(_0x4ce4f1){const _0x596f6f=_0x7af443;return _0x4ce4f1&&typeof Symbol=='function'&&_0x4ce4f1[_0x596f6f(0x261)]===Symbol&&_0x4ce4f1!==Symbol[_0x596f6f(0x1bc)]?_0x596f6f(0x25e):typeof _0x4ce4f1;},jr(_0x227cde);}function Mr(_0x1eeb92,_0x22b5e8){const _0xb4de6=_0x57c180;if(jr(_0x1eeb92)!=_0xb4de6(0x177)||!_0x1eeb92)return _0x1eeb92;var _0x4cca83=_0x1eeb92[Symbol[_0xb4de6(0x26c)]];if(_0x4cca83!==void 0x0){var _0x495882=_0x4cca83[_0xb4de6(0x2d8)](_0x1eeb92,_0x22b5e8||_0xb4de6(0x450));if(jr(_0x495882)!=_0xb4de6(0x177))return _0x495882;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x22b5e8==='string'?String:Number)(_0x1eeb92);}function Nr(_0x4e757e){const _0x51ea9a=_0x57c180;var _0x2fb12d=Mr(_0x4e757e,_0x51ea9a(0x1a7));return jr(_0x2fb12d)==_0x51ea9a(0x25e)?_0x2fb12d:_0x2fb12d+'';}function Pr(_0x3632f1,_0x2158c2,_0x3a6fd){const _0x5b6317=_0x57c180;return(_0x2158c2=Nr(_0x2158c2))in _0x3632f1?Object[_0x5b6317(0x3a7)](_0x3632f1,_0x2158c2,{'value':_0x3a6fd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3632f1[_0x2158c2]=_0x3a6fd,_0x3632f1;}var Fr=class extends _0x7c5363{constructor(_0x1480f6,_0x23f721){const _0x491bde=_0x57c180;super(),this[_0x491bde(0x1f4)]=_0x1480f6,this[_0x491bde(0x415)]=_0x23f721,Pr(this,_0x491bde(0x367),_0x37b5be['Dom']);}[_0x57c180(0x2c5)](){const _0xf987a=_0x57c180;return{'width':Math[_0xf987a(0x203)](0x1,this[_0xf987a(0x415)][_0xf987a(0x3f4)]),'height':Math['max'](0x1,this[_0xf987a(0x415)][_0xf987a(0x326)])};}[_0x57c180(0x2af)](_0x9952df){const _0x4b0379=_0x57c180;Ar(this[_0x4b0379(0x415)],_0x9952df);}async[_0x57c180(0x36b)](){return this['_element'];}[_0x57c180(0x15e)](){const _0x1063e8=_0x57c180;return this[_0x1063e8(0x415)][_0x1063e8(0x3e0)];}['syncLayout'](){}[_0x57c180(0x43f)](){}['markNotReady'](){}};function Ir({isRowDirection:_0x2c9b8e,runtime:_0x2442d2}){const _0x33ad62=_0x57c180;let _0x560a87=_0x26ca56(null),_0x23c956=_0x3dc792(_0xc34a30),_0x6c7884=_0x3dc792(_0xa0671c),_0x31fb8c=_0x3dc792(kr),_0x37cd95=_0x3dc792(_0x2f0481);return _0x5a872b(()=>{const _0x92bc5f=_0x44d8;let _0x5eb752=_0x560a87[_0x92bc5f(0x18a)];if(!_0x5eb752)return;_0x5eb752[_0x92bc5f(0x337)]();let {chartId:_0x2ff5cd,model:_0x92f717}=_0x2442d2,_0x119723=_0x92f717[_0x92bc5f(0x384)],_0xa83956=new Fr(_0x2ff5cd,_0x5eb752),_0x48afad=_0x31fb8c[_0x92bc5f(0x36c)](),_0x1917ab=!0x1,_0x37c402=null,_0x32eeac=null,_0x3bce14=null,_0x17aef6=null,_0x561245=!0x1,_0x4ee7c9=!0x1,_0x28c258=Promise[_0x92bc5f(0x1b6)]();_0x48afad['bind'](_0xa83956);let _0xc9efc4=()=>{const _0x445942=_0x92bc5f;var _0x23c6a6,_0x5447b4,_0x340c50,_0x97d2f1;if(document[_0x445942(0x3de)]===_0x445942(0x228)||(_0x23c6a6=(_0x5447b4=window)[_0x445942(0x453)])!=null&&(_0x23c6a6=_0x23c6a6[_0x445942(0x2d8)](_0x5447b4,'(prefers-reduced-motion:\x20reduce)'))!=null&&_0x23c6a6[_0x445942(0x323)]||(_0x340c50=(_0x97d2f1=window)[_0x445942(0x453)])!=null&&(_0x340c50=_0x340c50['call'](_0x97d2f1,_0x445942(0x2c4)))!=null&&_0x340c50[_0x445942(0x323)]||!_0x5eb752['isConnected'])return!0x1;let _0x4bf8de=_0x5eb752[_0x445942(0x213)]();return _0x4bf8de[_0x445942(0x20d)]>0x0&&_0x4bf8de[_0x445942(0x2b9)]>0x0&&_0x4bf8de[_0x445942(0x3bb)]>0x0&&_0x4bf8de[_0x445942(0x2f7)]>0x0&&_0x4bf8de[_0x445942(0x3d1)]<window['innerWidth']&&_0x4bf8de['top']<window[_0x445942(0x1dc)];},_0x2904d9=()=>{const _0xa56348=_0x92bc5f;_0x32eeac!==null&&clearTimeout(_0x32eeac),_0x5eb752['dataset'][_0xa56348(0x1a8)]=_0xa56348(0x44f),_0x5eb752['dataset'][_0xa56348(0x320)]=String(_0x33d81c),_0x32eeac=setTimeout(()=>{const _0x3a8903=_0xa56348;_0x32eeac=null,delete _0x5eb752[_0x3a8903(0x235)][_0x3a8903(0x1a8)],delete _0x5eb752[_0x3a8903(0x235)]['baseChartDataAnimationDuration'];},_0x33d81c);},_0x465ddb=_0x1e7cb1=>{const _0xedce77=_0x92bc5f;if(_0x1917ab)return;if(_0x37c402!==null&&(clearTimeout(_0x37c402),_0x37c402=null),!_0x92f717['config']){_0x4ee7c9||=_0x1e7cb1;return;}_0x5eb752[_0xedce77(0x235)][_0xedce77(0x2a6)]=String(_0x92f717[_0xedce77(0x2a6)]),_0x5eb752[_0xedce77(0x235)][_0xedce77(0x23e)]=String(_0x2c9b8e);let _0x38dd12=_0x31fb8c[_0xedce77(0x3c7)](_0x2442d2),_0x1531fa={'chartId':_0x2ff5cd,'config':_0x38dd12['config'],'style':_0x38dd12[_0xedce77(0x1d6)]};_0x28c258=_0x28c258[_0xedce77(0x2bd)](async()=>{const _0x3c9542=_0xedce77;_0x1917ab||(_0x5eb752['dataset'][_0x3c9542(0x1eb)]=String(Number(_0x5eb752[_0x3c9542(0x235)][_0x3c9542(0x1eb)]??0x0)+0x1),_0x1e7cb1&&_0x3bce14&&_0x48afad[_0x3c9542(0x3b6)]&&_0xc9efc4()?(await _0x48afad[_0x3c9542(0x3b6)](_0x3bce14,_0x1531fa,{'duration':_0x33d81c}),_0x1917ab||_0x2904d9()):await _0x48afad[_0x3c9542(0x15f)](_0x1531fa),_0x3bce14=_0x1531fa);})[_0xedce77(0x2cb)](_0x2c43e2=>_0x6c7884[_0xedce77(0x1d0)](_0xedce77(0x185),_0x2c43e2));},_0x1b4954=(_0x27f418=!0x1)=>{_0x4ee7c9||=_0x27f418,!_0x561245&&(_0x561245=!0x0,queueMicrotask(()=>{_0x561245=!0x1;let _0xc8b4a4=_0x4ee7c9;_0x4ee7c9=!0x1,_0x465ddb(_0xc8b4a4);}));},_0x3487d0=[_0x119723['data$']['subscribe'](_0x59d67e=>{const _0x384c7f=_0x92bc5f;let _0x294ca9=JSON[_0x384c7f(0x3a9)](_0x59d67e);_0x17aef6!=null&&_0x17aef6!==_0x294ca9&&_0x1b4954(!0x0),_0x17aef6=_0x294ca9;}),_0x92f717[_0x92bc5f(0x1bb)][_0x92bc5f(0x1a5)](_0x44e3f5=>{_0x44e3f5&&_0x1b4954();}),_0x92f717[_0x92bc5f(0x3ab)][_0x92bc5f(0x1a5)](()=>_0x1b4954()),_0x23c956[_0x92bc5f(0x37b)][_0x92bc5f(0x1a5)](()=>_0x1b4954()),_0x1d680b([_0x37cd95[_0x92bc5f(0x409)],_0x37cd95[_0x92bc5f(0x2fd)]])['pipe'](_0x156d4e(0x1))['subscribe'](()=>_0x1b4954())],_0x4b61d6=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x9fedd6=_0x92bc5f;_0x1917ab||(_0xa83956[_0x9fedd6(0x297)](),_0x37c402!==null&&clearTimeout(_0x37c402),_0x37c402=setTimeout(()=>_0x1b4954(),0x64));});return _0x4b61d6==null||_0x4b61d6[_0x92bc5f(0x1a6)](_0x5eb752),()=>{const _0x3b4e69=_0x92bc5f;_0x1917ab=!0x0,_0x37c402!==null&&clearTimeout(_0x37c402),_0x32eeac!==null&&clearTimeout(_0x32eeac),delete _0x5eb752[_0x3b4e69(0x235)][_0x3b4e69(0x1a8)],delete _0x5eb752[_0x3b4e69(0x235)][_0x3b4e69(0x320)],_0x4b61d6==null||_0x4b61d6[_0x3b4e69(0x227)](),_0x3487d0[_0x3b4e69(0x201)](_0x387234=>_0x387234[_0x3b4e69(0x172)]()),_0x48afad[_0x3b4e69(0x2ab)](),_0xa83956[_0x3b4e69(0x2ab)](),_0x5eb752[_0x3b4e69(0x337)]();};},[_0x2c9b8e,_0x23c956,_0x6c7884,_0x31fb8c,_0x2442d2,_0x37cd95]),_0x1bfcde('div',{'ref':_0x560a87,'data-u-comp':_0x33ad62(0x32f),'className':_0x33ad62(0x3e4)});}function Lr({filters:_0x2999d9,onRuntimeChange:_0x40d954,unitId:_0x3e3792,widget:_0x4d422b}){const _0x3d8da5=_0x57c180;let _0x374025=_0x3dc792(_0xfa1040),_0x2bcfbf=_0x3dc792(_0xc34a30),_0x3ace79=_0x3dc792(_0xa0671c),_0x2a4a55=_0x3dc792(_0x534e77),[_0xb5c3c9,_0x2e6312]=_0x155c41(null),[_0x54271c,_0x4f498e]=_0x155c41(!0x1),[_0xd1dc21,_0x491005]=_0x155c41(null),_0x4bf4e0=_0x26ca56(_0x3d8da5(0x408)+_0x2bbf35(0x8)),_0x45ce85=_0x374025[_0x3d8da5(0x2ee)](_0x3e3792,_0x1be7ab[_0x3d8da5(0x360)]),_0x232088=_0x45ce85==null?void 0x0:_0x45ce85[_0x3d8da5(0x257)]()[_0x3d8da5(0x47e)][_0x4d422b[_0x3d8da5(0x31f)]],_0x291cd3=_0x232088==null?void 0x0:_0x232088[_0x3d8da5(0x46e)][_0x4d422b[_0x3d8da5(0x488)]],_0x4db8a5=Rr(_0x291cd3);if(_0x5a872b(()=>{const _0x3ee5ae=_0x3d8da5;if(!_0x4db8a5)return;let _0x84cc6d=_0x4bf4e0[_0x3ee5ae(0x18a)];return _0x2a4a55['acquireChartRuntime'](_0x84cc6d,{'unitId':_0x3e3792,'tableId':_0x4d422b[_0x3ee5ae(0x31f)],'viewId':_0x4d422b[_0x3ee5ae(0x488)],'filters':[]}),()=>{_0x2a4a55['releaseChartRuntime'](_0x3e3792,_0x84cc6d),_0x40d954==null||_0x40d954(_0x4d422b['id'],null);};},[_0x4db8a5,_0x40d954,_0x2a4a55,_0x3e3792,_0x4d422b['id'],_0x4d422b[_0x3d8da5(0x488)],_0x4d422b[_0x3d8da5(0x31f)]]),_0x5a872b(()=>{const _0x1aff4e=_0x3d8da5;if(!Rr(_0x291cd3))return;let _0x16621a=!0x0,_0xc558a8=_0x4d422b['chart']??_0x291cd3[_0x1aff4e(0x163)]['chart'],_0xc0ecf0={'unitId':_0x3e3792,'tableId':_0x4d422b[_0x1aff4e(0x31f)],'viewId':_0x4d422b[_0x1aff4e(0x488)],'filters':[_0x291cd3[_0x1aff4e(0x449)]??null,..._0x2999d9]};return _0x2a4a55[_0x1aff4e(0x271)](_0x3e3792,_0x4bf4e0[_0x1aff4e(0x18a)],_0xc0ecf0,_0xc558a8)['then'](_0x54474b=>{const _0x1da67e=_0x1aff4e;if(!_0x16621a||!_0x54474b)return;let _0x111a56=_0x2a4a55['getChartRuntime'](_0x3e3792,_0x4bf4e0[_0x1da67e(0x18a)])??null;_0x2e6312(_0x54474b),_0x491005(_0x111a56),_0x4f498e(!0x1),_0x40d954==null||_0x40d954(_0x4d422b['id'],_0x111a56);})[_0x1aff4e(0x2cb)](_0x438873=>{const _0x38bd9b=_0x1aff4e;_0x3ace79[_0x38bd9b(0x1d0)](_0x38bd9b(0x416),_0x438873),_0x16621a&&(_0x2e6312(null),_0x4f498e(!0x0));}),()=>{_0x16621a=!0x1;};},[_0x2999d9,_0x3ace79,_0x40d954,_0x2a4a55,_0x3e3792,_0x291cd3,_0x4d422b[_0x3d8da5(0x49c)],_0x4d422b['id'],_0x4d422b[_0x3d8da5(0x488)],_0x4d422b['tableId']]),!Rr(_0x291cd3))return _0x1bfcde('div',{'className':_0x3d8da5(0x48f),'children':_0x2bcfbf['t'](_0x3d8da5(0x36f))});let _0x578961=_0x2a4a55[_0x3d8da5(0x1e0)](_0x3e3792,_0x4bf4e0[_0x3d8da5(0x18a)])===_0xd1dc21?_0xd1dc21:null;return _0xb5c3c9&&_0x578961?_0x1bfcde(Ir,{'isRowDirection':_0x143525((_0x4d422b[_0x3d8da5(0x49c)]??_0x291cd3[_0x3d8da5(0x163)]['chart'])['orient']),'runtime':_0x578961}):_0x1bfcde(_0x3d8da5(0x332),{'className':_0x3d8da5(0x48f),'children':_0x2bcfbf['t'](_0x54271c?_0x3d8da5(0x24c):'bases-dashboard-ui.pivot.calculating')});}function Rr(_0x2e03ae){const _0x306cd5=_0x57c180;return(_0x2e03ae==null?void 0x0:_0x2e03ae['type'])===_0x4e046d[_0x306cd5(0x496)]&&typeof _0x2e03ae['config']==_0x306cd5(0x177)&&_0x2e03ae[_0x306cd5(0x163)]!==null&&'pivot'in _0x2e03ae['config']&&_0x306cd5(0x49c)in _0x2e03ae[_0x306cd5(0x163)];}const zr={'alignment':_0x57c180(0x3d1),'fontSize':0x12,'fontSizeMode':_0x57c180(0x27e)};function Br(_0x4da7ec){const _0x40f536=_0x57c180;return{...zr,..._0x4da7ec[_0x40f536(0x44b)]};}function Vr(_0x26409c){const _0x318357=_0x57c180;var _0x342826;return((_0x342826=_0x26409c[_0x318357(0x16b)])==null?void 0x0:_0x342826['dataStream'][_0x318357(0x2de)](/\r\n$/,'')['replace'](/\r/g,'\x0a'))??'';}function Hr(_0x4004c3,_0x446aa0){const _0x45e1d2=_0x57c180;var _0x347031;let _0x1981af=_0x446aa0[_0x45e1d2(0x2de)](/\r\n|\r/g,'\x0a')[_0x45e1d2(0x17b)]('\x0a'),_0x53efab=_0x1981af[_0x45e1d2(0x45f)]('\x0d')+'\x0d\x0a',_0x12eafb=((_0x347031=_0x4004c3[_0x45e1d2(0x16b)])==null?void 0x0:_0x347031[_0x45e1d2(0x28d)])??[],_0x96bf71=new Set(_0x12eafb[_0x45e1d2(0x48c)](_0xed42da=>_0xed42da[_0x45e1d2(0x31c)])),_0x5f24c0=0x0,_0x312a31=_0x1981af[_0x45e1d2(0x48c)]((_0x39724b,_0x5caef9)=>{const _0x5794d4=_0x45e1d2;_0x5f24c0+=_0x39724b[_0x5794d4(0x291)];let _0x343d59={..._0x12eafb[_0x5caef9]??{'startIndex':_0x5f24c0,'paragraphId':_0x1d37b5(_0x96bf71)},'startIndex':_0x5f24c0};return _0x5f24c0+=0x1,_0x343d59;});return{..._0x4004c3,'body':{..._0x4004c3[_0x45e1d2(0x16b)],'dataStream':_0x53efab,'paragraphs':_0x312a31,'textRuns':[]}};}function Ur({widget:_0x5b1b80}){const _0x3c0f19=_0x57c180;let _0x24e0cd=_0x3dc792(_0x2f0481),_0x727f76=_0x3dc792(_0xc34a30),_0x5a3563=_0x1cdd28(()=>_0x24e0cd[_0x3c0f19(0x409)],_0x24e0cd['getCurrentTheme'](),!0x1,[_0x24e0cd]),_0x15ece2=_0x26ca56(null),_0x24abb0=_0x26ca56(null),_0xdef69=Br(_0x5b1b80),_0x266c88=_0xdef69[_0x3c0f19(0x26f)]??_0x5a3563[_0x3c0f19(0x387)][0x0],_0xc27c8b=_0xdef69[_0x3c0f19(0x386)]??_0x5a3563[_0x3c0f19(0x387)][0x3e8],_0x3a0cc6=Vr(_0x5b1b80[_0x3c0f19(0x3c8)]);return _0x5a872b(()=>{const _0x313aec=_0x3c0f19;let _0x415946=_0x15ece2[_0x313aec(0x18a)],_0x293a3f=_0x24abb0[_0x313aec(0x18a)];if(!_0x415946||!_0x293a3f)return;let _0xc1fe7a=()=>{const _0x265ba0=_0x313aec;if(_0xdef69[_0x265ba0(0x204)]===_0x265ba0(0x29e)||!_0x415946[_0x265ba0(0x3f4)]||!_0x415946[_0x265ba0(0x326)]){_0x293a3f['style'][_0x265ba0(0x2cd)]=_0xdef69[_0x265ba0(0x2cd)]+'px';return;}let _0x27e02a=0x8,_0x56563f=0x48,_0x1cb746=_0x27e02a;for(;_0x27e02a<=_0x56563f;){let _0x1016b8=Math[_0x265ba0(0x327)]((_0x27e02a+_0x56563f)/0x2);_0x293a3f[_0x265ba0(0x1d6)][_0x265ba0(0x2cd)]=_0x1016b8+'px',_0x293a3f[_0x265ba0(0x410)]<=_0x415946['clientWidth']&&_0x293a3f[_0x265ba0(0x2bf)]<=_0x415946['clientHeight']?(_0x1cb746=_0x1016b8,_0x27e02a=_0x1016b8+0x1):_0x56563f=_0x1016b8-0x1;}_0x293a3f[_0x265ba0(0x1d6)][_0x265ba0(0x2cd)]=_0x1cb746+'px';};if(_0xc1fe7a(),typeof ResizeObserver>'u')return;let _0x221456=new ResizeObserver(_0xc1fe7a);return _0x221456[_0x313aec(0x1a6)](_0x415946),()=>_0x221456[_0x313aec(0x227)]();},[_0xdef69[_0x3c0f19(0x2cd)],_0xdef69['fontSizeMode'],_0x3a0cc6]),_0x1bfcde(_0x3c0f19(0x332),{'data-dashboard-text-widget':_0x5b1b80['id'],'className':_0x3c0f19(0x2d2),'style':{'backgroundColor':_0x266c88,'color':_0xc27c8b},'children':_0x1bfcde(_0x3c0f19(0x332),{'ref':_0x15ece2,'data-dashboard-text-content':!0x0,'aria-label':_0x727f76['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':_0x1bfcde(_0x3c0f19(0x332),{'ref':_0x24abb0,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0xdef69['fontSizeMode'],'className':_0x3c0f19(0x42d),'style':{'textAlign':_0xdef69['alignment']},'children':_0x3a0cc6})})});}function Wr({dashboard:_0x1c4052,editable:_0x546ded=!0x0,onSelectWidget:_0xbf27b1,renderWidget:_0x235890,renderWidgetActions:_0x4b3802,selectedWidgetId:_0x5ea015,widgetLabel:_0x2eeaac}){const _0x599b77=_0x57c180;return _0x1bfcde(_0x599b77(0x332),{'data-dashboard-scroll-container':!0x0,'className':_0x3c6675(_0x599b77(0x443),_0x32f99e),'onClick':_0x546ded?_0x3f8b52=>{const _0x376015=_0x599b77;if(!(_0x3f8b52[_0x376015(0x22c)]instanceof Node)||!_0x3f8b52[_0x376015(0x2bc)]['contains'](_0x3f8b52[_0x376015(0x22c)]))return;let _0x54dd31=_0x3f8b52[_0x376015(0x22c)]instanceof Element?_0x3f8b52['target']:_0x3f8b52['target']['parentElement'];_0x54dd31!=null&&_0x54dd31['closest'](_0x376015(0x3e5))||_0xbf27b1==null||_0xbf27b1();}:void 0x0,'children':_0x1bfcde(_0x599b77(0x332),{'data-dashboard-grid':!0x0,'className':_0x599b77(0x23f),'children':_0x1c4052['widgetOrder']['map'](_0x231bc6=>{const _0x2d88ab=_0x599b77;let _0x3bc208=_0x1c4052['widgets'][_0x231bc6];if(!_0x3bc208)return null;let _0x89f182=Math['max'](0xb4,_0x3bc208[_0x2d88ab(0x424)][_0x2d88ab(0x17c)]*_0x3bde0c);return _0x3fc05f('article',{'data-dashboard-widget':_0x3bc208['id'],'aria-label':_0x3bc208['title']??_0x2eeaac(_0x3bc208),'className':_0x3c6675('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',_0x3bc208[_0x2d88ab(0x498)]===_0x925244[_0x2d88ab(0x37d)]||_0x3bc208[_0x2d88ab(0x498)]===_0x925244[_0x2d88ab(0x1a9)]?_0x2d88ab(0x173):_0x2d88ab(0x324),_0x546ded&&_0x5ea015===_0x3bc208['id']?_0x2d88ab(0x190):_0x2d88ab(0x413)),'style':{'minHeight':_0x89f182,'height':_0x89f182},'tabIndex':_0x546ded?0x0:void 0x0,'onClick':_0x546ded?()=>_0xbf27b1==null?void 0x0:_0xbf27b1(_0x3bc208['id']):void 0x0,'onFocus':_0x546ded?()=>_0xbf27b1==null?void 0x0:_0xbf27b1(_0x3bc208['id']):void 0x0,'children':[_0x546ded&&_0x1bfcde(_0x2d88ab(0x332),{'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':_0x4b3802==null?void 0x0:_0x4b3802(_0x3bc208)}),_0x1bfcde(_0x2d88ab(0x332),{'className':_0x2d88ab(0x1bd),'children':_0x235890(_0x3bc208)})]},_0x3bc208['id']);})})});}let Gr=class extends _0x4acbdf{constructor(_0x39e0b2){const _0x7bb72b=_0x57c180;super(_0x39e0b2),Pr(this,_0x7bb72b(0x460),null);}[_0x57c180(0x3ed)](_0x4202c2){}};Gr=Or([Y(0x0,_0xfb26ea(_0x49b052))],Gr);function Kr({children:_0x1284e5}){return _0x1bfcde(_0xb7bcd0,{'children':_0x1284e5});}function qr(_0xb65f99){return _0x1bfcde(_0x387f08,{..._0xb65f99});}function Jr(_0x5d059b){return _0x1bfcde(_0x1936c5,{..._0x5d059b});}function Yr(_0x15d048){return _0x1bfcde(_0x59b7d9,{..._0x15d048});}var Xr;const X={'axis':{..._0x5bb0d7,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x2ade94,'heatmap':_0x56fd38,'indicatorLine':_0x4505bf,'legend':_0x255bea,'lineAndArea':_0x334ac6,'pareto':_0x50369c,'pie':_0x2a7701,'radar':_0x23b3e2,'relation':{..._0x47989a,'useValueAsSymbolSize':!0x0},'series':{..._0x6b2197,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Xr=_0x1cf164[_0x57c180(0x1ee)])==null?void 0x0:Xr['rightYAxis'])??!0x1}},'style':_0x11b3b9,'titles':_0x4012e3,'trendline':_0x1f404b,'waterfall':{..._0x2665d6,'useSubtotal':!0x0},'waterfallStyle':_0x15d409,'wordCloud':_0x5f4293},Zr=[_0x546fc5['Line'],_0x546fc5[_0x57c180(0x339)],_0x546fc5[_0x57c180(0x2c7)],_0x546fc5[_0x57c180(0x4a3)],_0x546fc5[_0x57c180(0x2df)],_0x546fc5['Relation'],_0x546fc5['Sankey'],_0x546fc5['Heatmap'],_0x546fc5[_0x57c180(0x209)],_0x546fc5[_0x57c180(0x1d4)],_0x546fc5[_0x57c180(0x22b)],_0x546fc5[_0x57c180(0x3ef)],_0x546fc5[_0x57c180(0x1da)],_0x546fc5[_0x57c180(0x3f9)],_0x546fc5[_0x57c180(0x2dc)]];function Qr(_0x23c2b0){const _0x1f663e=_0x57c180;let {config:_0xbc3b3f,onChange:_0x5e88fa,runtime:_0x229985,tableName:_0x529b8d}=_0x23c2b0,_0x46348c=_0x3dc792(Gr),_0xaa2945=_0x3dc792(_0xc34a30),[_0x2bfd82,_0x4f5cbc]=_0x155c41(_0x34d32e['Data']),_0x4bec6e=_0x4561c2(()=>new _0x4e622f(_0x229985[_0x1f663e(0x2aa)],{'commit':_0x1c5d37=>{const _0x2f9365=_0x1f663e;var _0x27144c;let _0x220dae=_0x229985[_0x2f9365(0x2aa)],_0x227afc=_0x206b2e(_0x1c5d37,{'series':(_0x27144c=_0x220dae['config'])==null?void 0x0:_0x27144c[_0x2f9365(0x376)],'currentChartType':_0x220dae['chartType'],'currentStyle':_0x220dae[_0x2f9365(0x1d6)],'currentContext':_0x220dae[_0x2f9365(0x4a5)],'currentDataAggregation':_0x220dae[_0x2f9365(0x303)]});_0x5e88fa({'chart':$r(_0xbc3b3f[_0x2f9365(0x49c)],_0x227afc)});}}),[_0xbc3b3f[_0x1f663e(0x49c)],_0x5e88fa,_0x229985]),_0x310fc6=_0x4561c2(()=>_0x5447e3(_0x3c2b9a['map'](_0x12855c=>({..._0x12855c,'label':_0xaa2945['t'](ri(_0x12855c['labelId']))}))),[_0xaa2945]);return _0x1bfcde(_0x247ccf,{'chartUIService':_0x46348c,'hostAdapter':_0x4bec6e,'children':_0x3fc05f(_0x1f663e(0x332),{'className':_0x1f663e(0x321),'children':[_0x1bfcde(_0x2e9f58,{'ariaLabel':_0xaa2945['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x1f663e(0x3ff),'items':[{'label':_0xaa2945['t']('bases-dashboard-ui.chart.common.setup'),'panelId':'base-pivot-chart-setup','value':_0x34d32e['Data']},{'label':_0xaa2945['t'](_0x1f663e(0x20e)),'panelId':_0x1f663e(0x22d),'value':_0x34d32e[_0x1f663e(0x1c0)]}],'value':_0x2bfd82,'onChange':_0x4f5cbc}),_0x2bfd82===_0x34d32e[_0x1f663e(0x192)]?_0x1bfcde(_0x5cb021,{'id':_0x1f663e(0x1b2),'label':_0xaa2945['t'](_0x1f663e(0x3c1)),'children':_0x3fc05f(_0x1f663e(0x332),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x1bfcde(_0x1e47f4,{'options':_0x310fc6}),_0x1bfcde(_0x60f00e,{}),_0x1bfcde(_0x40668c,{}),_0x1bfcde(ei,{}),_0x1bfcde(_0x5ab8f3,{}),_0x3fc05f(_0x1f663e(0x332),{'children':[_0x1bfcde(_0x20c528,{'title':_0xaa2945['t'](_0x1f663e(0x239))}),_0x1bfcde(_0x225487,{'disabled':!0x0,'value':_0x529b8d})]}),_0x1bfcde(_0x236f8b,{'orientationControl':_0x1bfcde(_0x29df96,{'size':_0x1f663e(0x3a6),'onClick':()=>_0x5e88fa({'chart':{..._0xbc3b3f[_0x1f663e(0x49c)],'orient':_0xbc3b3f[_0x1f663e(0x49c)]['orient']===_0x1f663e(0x293)?_0x1f663e(0x430):'row'}}),'children':_0xaa2945['t'](_0x1f663e(0x3a4))})}),_0x1bfcde(_0x260003,{}),_0x1bfcde(_0x115741,{'defaultValues':X[_0x1f663e(0x17f)]}),_0x3fc05f('div',{'children':[_0x1bfcde(_0x20c528,{'title':_0xaa2945['t'](_0x1f663e(0x34a))}),_0x1bfcde(qr,{'value':_0xbc3b3f[_0x1f663e(0x36d)],'options':[{'value':_0x1f663e(0x417),'label':_0xaa2945['t'](_0x1f663e(0x33e))},{'value':_0x1f663e(0x49c),'label':_0xaa2945['t'](_0x1f663e(0x294))},{'value':_0x1f663e(0x2c6),'label':_0xaa2945['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x2985cc=>{const _0x236a7f=_0x1f663e;(_0x2985cc===_0x236a7f(0x417)||_0x2985cc===_0x236a7f(0x49c)||_0x2985cc===_0x236a7f(0x2c6))&&_0x5e88fa({'displayMode':_0x2985cc});}})]})]})}):_0x1bfcde(_0x5cb021,{'id':_0x1f663e(0x22d),'label':_0xaa2945['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x1bfcde(ti,{})})]})});}function $r(_0x566a87,_0x42c7a7){const _0x331c6d=_0x57c180;return{..._0x566a87,'type':_0x42c7a7['chartType']??_0x566a87['type'],'style':_0x42c7a7['style']??_0x566a87[_0x331c6d(0x1d6)],'context':_0x42c7a7[_0x331c6d(0x4a5)]??_0x566a87[_0x331c6d(0x4a5)],'dataAggregation':_0x42c7a7[_0x331c6d(0x303)]??_0x566a87[_0x331c6d(0x303)]};}function ei(){const _0x4ceab9=_0x57c180;let _0x17eced=_0x1600aa();return _0x1bfcde(_0x365082,{'visible':Zr[_0x4ceab9(0x3ac)](_0x195480=>!_0x579955[_0x4ceab9(0x248)](_0x17eced,_0x195480))});}function Z(_0x50525c){const _0x1095b8=_0x57c180;return _0x3fc05f(_0x511a83,{'id':_0x50525c['id'],'children':[_0x1bfcde(_0x22a0cc,{'children':_0x50525c[_0x1095b8(0x372)]}),_0x1bfcde(_0x4bb2c8,{'children':_0x50525c[_0x1095b8(0x1f7)]})]});}function ti(){const _0x4aeb88=_0x57c180;let _0x4da40c=_0x3dc792(_0xc34a30),_0x2ad074=_0x1600aa(),_0x1784f3=_0x4abcf3(),[_0x50637c,_0x45595b]=_0x155c41(null),_0x4c1079=_0x579955[_0x4aeb88(0x248)](_0x2ad074,_0x546fc5[_0x4aeb88(0x1b1)]),_0x40900f=_0x2ad074===_0x546fc5['Radar'],_0x1548ba=_0x2ad074===_0x546fc5['WordCloud'],_0x4c387e=_0x2ad074===_0x546fc5['Funnel'],_0x54ae72=_0x579955[_0x4aeb88(0x248)](_0x2ad074,_0x546fc5['Bubble']),_0x15ec49=_0x2ad074===_0x546fc5[_0x4aeb88(0x47b)],_0x2d96e8=_0x2ad074===_0x546fc5[_0x4aeb88(0x21b)],_0x4d3459=_0x2ad074===_0x546fc5['Pareto'],_0x5607d6=_0x2ad074===_0x546fc5[_0x4aeb88(0x221)],_0x331aff=_0x20bcdc(_0x2ad074,_0x262643[_0x4aeb88(0x49e)])&&!_0x54ae72&&!_0x4d3459,_0x46395c=ni(_0x2ad074,_0x4da40c);return _0x3fc05f(_0x2794c9,{'value':_0x50637c,'onChange':_0x45595b,'children':[_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x16a)],'label':_0x4da40c['t'](_0x4aeb88(0x451)),'children':_0x1bfcde(_0x36f8fa,{'defaultValues':X[_0x4aeb88(0x1d6)]})}),_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x340)],'label':_0x4da40c['t'](_0x4aeb88(0x2e3)),'children':_0x1bfcde(_0x3b2df6,{'commitMode':'blur','defaultValues':X['titles']})}),_0x331aff&&_0x1bfcde(Z,{'id':_0xd01354['Series'],'label':_0x4da40c['t'](_0x4aeb88(0x43b)),'children':_0x1bfcde(_0xfcfe0d,{'defaultValues':X[_0x4aeb88(0x376)],'NumberFormatField':_0x1984da})}),_0x2d96e8&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x262)],'label':_0x4da40c['t']('bases-dashboard-ui.chart.section.waterfall'),'children':_0x1bfcde(_0x29de7e,{'defaultValues':X[_0x4aeb88(0x1a4)],'getDefaultBucketName':({seriesName:_0x436c96,target:_0x4fd08b})=>_0x4fd08b===_0x588af0[_0x4aeb88(0x18c)]?_0x4da40c['t']('bases-dashboard-ui.chart.waterfall.subtotal'):_0x436c96?_0x436c96+'-('+_0x4da40c['t'](_0x4aeb88(0x1c2)+(_0x4fd08b===_0x588af0[_0x4aeb88(0x1d8)]?_0x4aeb88(0x364):_0x4aeb88(0x30e)))+')':'','NumberFormatField':_0x1984da})}),_0x4d3459&&_0x3fc05f(_0x30443f,{'children':[_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x4a2)],'label':_0x4da40c['t']('bases-dashboard-ui.chart.section.paretoBar'),'children':_0x1bfcde(_0x7a917b,{'defaultValues':X[_0x4aeb88(0x17d)],'NumberFormatField':_0x1984da,'showDataPointEditor':!0x0,'target':'barStyle'})}),_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x272)],'label':_0x4da40c['t'](_0x4aeb88(0x418)),'children':_0x1bfcde(_0x7a917b,{'defaultValues':X[_0x4aeb88(0x17d)],'NumberFormatField':_0x1984da,'showDataPointEditor':!0x1,'target':_0x4aeb88(0x24e)})})]}),_0x4c1079&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x1ff)],'label':_0x4da40c['t']('bases-dashboard-ui.chart.section.pie'),'children':_0x1bfcde(_0x55a368,{'defaultValues':X['pie'],'NumberFormatField':_0x1984da})}),_0x1548ba&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x2c7)],'label':_0x4da40c['t'](_0x4aeb88(0x229)),'children':_0x1bfcde(_0x14d125,{'defaultValues':X['wordCloud']})}),_0x40900f&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x339)],'label':_0x4da40c['t'](_0x4aeb88(0x17e)),'children':_0x1bfcde(_0x807256,{'defaultValues':X[_0x4aeb88(0x16f)]})}),_0x4c387e&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x2df)],'label':_0x4da40c['t'](_0x4aeb88(0x1b3)),'children':_0x1bfcde(_0x5c8bd4,{'defaultValues':X[_0x4aeb88(0x2e2)],'gapControl':'select'})}),_0x5607d6&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x221)],'label':_0x4da40c['t'](_0x4aeb88(0x448)),'children':_0x1bfcde(_0x56789e,{'defaultValues':X[_0x4aeb88(0x3be)]})}),_0x15ec49&&_0x1bfcde(Z,{'id':_0xd01354['Relation'],'label':_0x4da40c['t'](_0x4aeb88(0x35e)),'children':_0x1bfcde(_0xf308df,{'defaultValues':X[_0x4aeb88(0x3b7)]})}),_0x41979c(_0x2ad074)&&_0x1bfcde(Z,{'id':_0xd01354['LineAndArea'],'label':_0x4da40c['t'](_0x4aeb88(0x216)),'children':_0x1bfcde(_0x152bb6,{'defaultValues':X[_0x4aeb88(0x33d)],'lineStyleControl':_0x4aeb88(0x355)})}),_0x20bcdc(_0x2ad074,_0x262643['Legend'])&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x366)],'label':_0x4da40c['t'](_0x4aeb88(0x382)),'children':_0x1bfcde(_0x3c5065,{'defaultValues':X[_0x4aeb88(0x1e6)]})}),_0x20bcdc(_0x2ad074,_0x262643[_0x4aeb88(0x210)])&&_0x3fc05f(_0x30443f,{'children':[_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x474)],'label':_0x4da40c['t'](_0x4aeb88(0x47a)),'children':_0x1bfcde(_0x4ecd7e,{'axis':'x','defaultValues':X[_0x4aeb88(0x442)],'NumberFormatField':_0x1984da})}),_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x43d)],'label':_0x4da40c['t'](_0x4aeb88(0x217)),'children':_0x1bfcde(_0x4ecd7e,{'axis':'y','defaultValues':X[_0x4aeb88(0x442)],'NumberFormatField':_0x1984da})}),_0x1784f3&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x2e6)],'label':_0x4da40c['t'](_0x4aeb88(0x49f)),'children':_0x1bfcde(_0x4ecd7e,{'axis':_0x4aeb88(0x3bc),'defaultValues':X[_0x4aeb88(0x442)],'NumberFormatField':_0x1984da})}),_0x1bfcde(Z,{'id':_0xd01354['GridlinesAndTicks'],'label':_0x4da40c['t'](_0x4aeb88(0x397)),'children':_0x1bfcde(_0x41e9c3,{'defaultValues':X[_0x4aeb88(0x442)]})})]}),_0x20bcdc(_0x2ad074,_0x262643[_0x4aeb88(0x2f6)])&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x2f6)],'label':_0x4da40c['t'](_0x4aeb88(0x246)),'children':_0x1bfcde(_0x5eb7b1,{'defaultValues':X[_0x4aeb88(0x341)]})}),_0x3d1aed(_0x2ad074)&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x3b4)],'label':_0x4da40c['t'](_0x4aeb88(0x1ac)),'children':_0x1bfcde(_0x1928c4,{'defaultValues':X[_0x4aeb88(0x1ea)]})}),_0x46395c&&_0x1bfcde(Z,{'id':_0x46395c['id'],'label':_0x46395c[_0x4aeb88(0x372)],'children':_0x1bfcde(_0x4ea50d,{})})]});}function ni(_0x150558,_0x3e0afd){const _0x46d81d=_0x57c180;let _0x1cb80c={[_0x546fc5[_0x46d81d(0x1d4)]]:{'id':_0xd01354[_0x46d81d(0x1d4)],'localeKey':_0x46d81d(0x440)},[_0x546fc5[_0x46d81d(0x22b)]]:{'id':_0xd01354[_0x46d81d(0x22b)],'localeKey':'bases-dashboard-ui.chart.section.histogram'},[_0x546fc5[_0x46d81d(0x3ef)]]:{'id':_0xd01354[_0x46d81d(0x3ef)],'localeKey':_0x46d81d(0x361)},[_0x546fc5[_0x46d81d(0x1da)]]:{'id':_0xd01354[_0x46d81d(0x1da)],'localeKey':_0x46d81d(0x389)},[_0x546fc5['Gauge']]:{'id':_0xd01354['Gauge'],'localeKey':_0x46d81d(0x19c)},[_0x546fc5['Chord']]:{'id':_0xd01354[_0x46d81d(0x2dc)],'localeKey':_0x46d81d(0x353)}}[_0x150558];return _0x1cb80c?{'id':_0x1cb80c['id'],'label':_0x3e0afd['t'](_0x1cb80c[_0x46d81d(0x1e5)])}:null;}function ri(_0x42ed21){const _0x336014=_0x57c180;return _0x336014(0x2fe)+_0x42ed21;}function ii({onChange:_0x3daa74,onEditData:_0x2fce6f,runtime:_0x1b39e8,sourceChart:_0x130754,sourceName:_0x5eb4c5,widget:_0x1930e2}){const _0x1f9c4b=_0x57c180;let _0x3d3fbe=_0x3dc792(Gr),_0x1c6d9f=_0x3dc792(_0xc34a30),[_0x1cec5e,_0x392fe8]=_0x155c41(_0x34d32e['Data']),_0x3fc471=_0x1930e2['chart']??_0x130754,_0x4389cd=_0x4561c2(()=>new _0x4e622f(_0x1b39e8[_0x1f9c4b(0x2aa)],{'commit':_0x3844a4=>{const _0x7ab98b=_0x1f9c4b;var _0x2eff9f;let _0xdc1621=_0x1b39e8[_0x7ab98b(0x2aa)],_0x55ff41=_0x206b2e(_0x3844a4,{'series':(_0x2eff9f=_0xdc1621[_0x7ab98b(0x163)])==null?void 0x0:_0x2eff9f[_0x7ab98b(0x376)],'currentChartType':_0xdc1621['chartType'],'currentStyle':_0xdc1621[_0x7ab98b(0x1d6)],'currentContext':_0xdc1621[_0x7ab98b(0x4a5)],'currentDataAggregation':_0xdc1621[_0x7ab98b(0x303)]});_0x3daa74({..._0x1930e2,'chart':$r(_0x3fc471,_0x55ff41)})[_0x7ab98b(0x2cb)](()=>void 0x0);}}),[_0x3fc471,_0x3daa74,_0x1b39e8,_0x1930e2]),_0x425f43=_0x4561c2(()=>_0x5447e3(_0x3c2b9a['map'](_0x432828=>({..._0x432828,'label':_0x1c6d9f['t'](ai(_0x432828['labelId']))}))),[_0x1c6d9f]);return _0x1bfcde(_0x4c2ea3,{'chartUIService':_0x3d3fbe,'hostAdapter':_0x4389cd,'children':_0x3fc05f('div',{'data-dashboard-chart-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x1bfcde(_0x2e9f58,{'ariaLabel':_0x1c6d9f['t'](_0x1f9c4b(0x464)),'className':_0x1f9c4b(0x3ff),'items':[{'label':_0x1c6d9f['t'](_0x1f9c4b(0x3c1)),'panelId':'dashboard-chart-setup','value':_0x34d32e[_0x1f9c4b(0x192)]},{'label':_0x1c6d9f['t'](_0x1f9c4b(0x20e)),'panelId':_0x1f9c4b(0x1c5),'value':_0x34d32e[_0x1f9c4b(0x1c0)]}],'value':_0x1cec5e,'onChange':_0x392fe8}),_0x1cec5e===_0x34d32e[_0x1f9c4b(0x192)]?_0x1bfcde(_0x5cb021,{'id':_0x1f9c4b(0x155),'label':_0x1c6d9f['t'](_0x1f9c4b(0x3c1)),'children':_0x3fc05f(_0x1f9c4b(0x332),{'className':_0x1f9c4b(0x345),'children':[_0x1bfcde(_0x1e47f4,{'options':_0x425f43}),_0x1bfcde(_0x60f00e,{}),_0x1bfcde(_0x40668c,{}),_0x1bfcde(ei,{}),_0x1bfcde(_0x5ab8f3,{}),_0x3fc05f(_0x1f9c4b(0x332),{'children':[_0x1bfcde(_0x20c528,{'title':_0x1c6d9f['t'](_0x1f9c4b(0x348))}),_0x1bfcde(_0x225487,{'disabled':!0x0,'value':_0x5eb4c5}),_0x1bfcde(_0x29df96,{'className':_0x1f9c4b(0x2e4),'onClick':_0x2fce6f,'children':_0x1c6d9f['t']('bases-dashboard-ui.dashboardInspector.editData')})]})]})}):_0x1bfcde(_0x5cb021,{'id':_0x1f9c4b(0x1c5),'label':_0x1c6d9f['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x1bfcde(ti,{})})]})});}function ai(_0xe84b1f){const _0x193fff=_0x57c180;return _0x193fff(0x2fe)+_0xe84b1f;}const oi=['general',_0x57c180(0x338),_0x57c180(0x3b1),'currency',_0x57c180(0x4a4),_0x57c180(0x1c4)];function si({base:_0xfed1fb,onChange:_0x42a193,onSelectBackgroundImage:_0x31e576,widget:_0x4b76eb}){const _0x358323=_0x57c180;var _0x535602;let _0x4d22c5=_0x3dc792(_0xc34a30),_0x358ad7=_0x3dc792(_0x2f0481),_0x51ebcd=_0x1cdd28(()=>_0x358ad7['currentTheme$'],_0x358ad7[_0x358323(0x284)](),!0x1,[_0x358ad7]),_0x36653b=_0x1cdd28(()=>_0x358ad7['darkMode$'],_0x358ad7[_0x358323(0x342)],!0x1,[_0x358ad7]),[_0x38a135,_0xb1136a]=_0x155c41(_0x358323(0x412)),[_0x330eb5,_0x1ae15a]=_0x155c41(!0x1),_0x25ab94=xr(_0x4b76eb),_0x43e926=_0xfed1fb['getSnapshot']()[_0x358323(0x47e)][_0x4b76eb[_0x358323(0x31f)]],_0x125725=_0x43e926==null?void 0x0:_0x43e926[_0x358323(0x3d3)][_0x358323(0x34b)](_0x423657=>_0x43e926[_0x358323(0x46e)][_0x423657]),_0x5c3c15=_0x125725?_0x43e926==null?void 0x0:_0x43e926['views'][_0x125725]:void 0x0,_0x274add=_0x43e926&&_0x5c3c15?_0x3fc9b5(_0xfed1fb[_0x358323(0x257)](),_0x43e926,_0x5c3c15)[_0x358323(0x48c)](_0x54cd65=>({..._0x54cd65,'current':!0x1})):[],_0x1dca15=((_0x535602=_0x4b76eb[_0x358323(0x20a)]['formulaBinding'])==null?void 0x0:_0x535602[_0x358323(0x304)])??'',_0x5adab1=_0xfb1dbe=>_0x42a193(Sr(_0x4b76eb,_0xfb1dbe))['catch'](()=>void 0x0),_0x3779cd=_0x50e951=>_0x42a193({..._0x4b76eb,'description':_0x50e951})[_0x358323(0x2cb)](()=>void 0x0);return _0x3fc05f('div',{'data-dashboard-formula-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x1bfcde(_0x9bce40,{'className':_0x358323(0x471),'items':[{'value':_0x358323(0x412),'label':_0x4d22c5['t'](_0x358323(0x379))},{'value':_0x358323(0x1d6),'label':_0x4d22c5['t'](_0x358323(0x4a6))}],'value':_0x38a135,'onChange':_0xb1136a}),_0x1bfcde(_0x358323(0x332),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0x38a135===_0x358323(0x412)?_0x3fc05f(_0x358323(0x332),{'className':_0x358323(0x171),'children':[_0x1bfcde(ci,{'label':_0x4d22c5['t'](_0x358323(0x37a)),'children':_0x1bfcde(_0x225487,{'value':_0x4b76eb[_0x358323(0x18f)]??_0x4b76eb['title']??'','onChange':_0x3779cd,'onBlur':_0x3f0b61=>_0x3779cd(_0x3f0b61[_0x358323(0x22c)][_0x358323(0x435)])})}),_0x1bfcde(ci,{'label':_0x4d22c5['t'](_0x358323(0x348)),'children':_0x1bfcde(_0x225487,{'disabled':!0x0,'value':(_0x43e926==null?void 0x0:_0x43e926[_0x358323(0x3aa)])??_0x4d22c5['t'](_0x358323(0x36f))})}),_0x3fc05f(ci,{'label':_0x4d22c5['t'](_0x358323(0x1b9)),'children':[_0x1bfcde(_0x225487,{'disabled':!0x0,'value':_0x23590c(_0x1dca15,_0x274add)}),_0x1bfcde(_0x29df96,{'className':_0x358323(0x2e4),'onClick':()=>_0x1ae15a(!0x0),'children':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.editFormula')})]})]}):_0x3fc05f(_0x358323(0x332),{'className':_0x358323(0x171),'children':[_0x1bfcde(_0x14a84b,{'emptyLabel':_0x4d22c5['t'](_0x358323(0x3b0)),'label':_0x4d22c5['t'](_0x358323(0x3b0)),'pickerFallbackValue':_0x36653b?_0x51ebcd[_0x358323(0x387)][0x384]:_0x51ebcd[_0x358323(0x387)][0x0],'resetLabel':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x25ab94[_0x358323(0x26f)]??null,'onChange':_0x519593=>_0x5adab1({'backgroundColor':_0x519593??void 0x0})}),_0x3fc05f(ci,{'label':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.backgroundImage'),'children':[_0x3fc05f(_0x358323(0x332),{'className':_0x358323(0x169),'children':[_0x3fc05f(_0x29df96,{'className':'univer-flex-1','onClick':()=>{const _0x17adf0=_0x358323;_0x31e576()[_0x17adf0(0x2bd)](_0x575064=>{const _0x142f24=_0x17adf0;if(_0x575064){var _0x5c41c2;return _0x5adab1({'backgroundImage':{..._0x575064,'fit':((_0x5c41c2=_0x25ab94[_0x142f24(0x1c6)])==null?void 0x0:_0x5c41c2[_0x142f24(0x3d9)])??_0x142f24(0x3a5)}});}})[_0x17adf0(0x2cb)](()=>void 0x0);},'children':[_0x1bfcde(_0x5d1373,{}),_0x25ab94[_0x358323(0x1c6)]?_0x4d22c5['t'](_0x358323(0x490)):_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.uploadImage')]}),_0x25ab94['backgroundImage']&&_0x1bfcde(_0x29df96,{'aria-label':_0x4d22c5['t'](_0x358323(0x1fd)),'title':_0x4d22c5['t'](_0x358323(0x1fd)),'onClick':()=>_0x5adab1({'backgroundImage':void 0x0}),'children':_0x1bfcde(_0x4e3f72,{})})]}),_0x25ab94[_0x358323(0x1c6)]&&_0x1bfcde(_0x9bce40,{'className':_0x358323(0x20f),'items':[{'value':_0x358323(0x3a5),'label':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':'contain','label':_0x4d22c5['t'](_0x358323(0x485))}],'value':_0x25ab94['backgroundImage'][_0x358323(0x3d9)],'onChange':_0x14a7a9=>_0x5adab1({'backgroundImage':_0x25ab94[_0x358323(0x1c6)]?{..._0x25ab94[_0x358323(0x1c6)],'fit':_0x14a7a9}:void 0x0})})]}),_0x1bfcde(_0x14a84b,{'emptyLabel':_0x4d22c5['t'](_0x358323(0x354)),'label':_0x4d22c5['t'](_0x358323(0x354)),'pickerFallbackValue':_0x36653b?_0x51ebcd['gray'][0x32]:_0x51ebcd[_0x358323(0x387)][0x3e8],'resetLabel':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x25ab94[_0x358323(0x386)]??null,'onChange':_0x6168c9=>_0x5adab1({'textColor':_0x6168c9??void 0x0})}),_0x1bfcde(ci,{'label':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x1bfcde(_0x9bce40,{'items':[{'value':_0x358323(0x3d1),'label':_0x4d22c5['t'](_0x358323(0x26e))},{'value':_0x358323(0x28e),'label':_0x4d22c5['t'](_0x358323(0x3e2))},{'value':'right','label':_0x4d22c5['t'](_0x358323(0x349))}],'value':_0x25ab94['alignment'],'onChange':_0x43adb4=>_0x5adab1({'alignment':_0x43adb4})})}),_0x3fc05f(ci,{'label':_0x4d22c5['t'](_0x358323(0x178)),'children':[_0x1bfcde(_0x9bce40,{'items':[{'value':_0x358323(0x27e),'label':_0x4d22c5['t'](_0x358323(0x2a7))},{'value':'custom','label':_0x4d22c5['t'](_0x358323(0x1f3))}],'value':_0x25ab94[_0x358323(0x204)],'onChange':_0x5e1384=>_0x5adab1({'fontSizeMode':_0x5e1384})}),_0x25ab94[_0x358323(0x204)]==='custom'&&_0x1bfcde(_0x142183,{'className':_0x358323(0x20f),'min':0xc,'max':0x78,'value':_0x25ab94['fontSize'],'onChange':_0x1ea239=>_0x5adab1({'fontSize':_0x1ea239??0x28,'fontSizeMode':'custom'})})]}),_0x1bfcde(ci,{'label':_0x4d22c5['t'](_0x358323(0x322)),'children':_0x1bfcde(qr,{'value':_0x25ab94[_0x358323(0x441)],'options':[{'value':'general','label':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.general')},{'value':_0x358323(0x338),'label':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.number')},{'value':_0x358323(0x3b1),'label':_0x4d22c5['t'](_0x358323(0x425))},{'value':_0x358323(0x214),'label':_0x4d22c5['t'](_0x358323(0x44d))},{'value':_0x358323(0x4a4),'label':_0x4d22c5['t'](_0x358323(0x43e))},{'value':_0x358323(0x1c4),'label':_0x4d22c5['t'](_0x358323(0x358))}],'onChange':_0xd4411f=>{let _0x1b2530=oi['find'](_0x8255af=>_0x8255af===_0xd4411f);_0x1b2530&&_0x5adab1({'numberFormat':_0x1b2530});}})}),_0x25ab94['numberFormat']===_0x358323(0x214)&&_0x1bfcde(ci,{'label':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x1bfcde(_0x225487,{'value':_0x25ab94['currency'],'onChange':_0x56011d=>_0x5adab1({'currency':_0x56011d[_0x358323(0x401)](0x0,0x3)[_0x358323(0x3c5)]()})})}),_0x25ab94['numberFormat']!=='general'&&_0x1bfcde(ci,{'label':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.decimalPlaces'),'children':_0x1bfcde(_0x142183,{'min':0x0,'max':0x8,'value':_0x25ab94[_0x358323(0x336)],'onChange':_0x412814=>_0x5adab1({'decimalPlaces':_0x412814??0x0})})})]})}),_0x330eb5&&_0x1bfcde(Yr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1bfcde(_0x4c5f2e,{'tables':_0x274add,'formula':_0x23590c(_0x1dca15,_0x274add),'onCancel':()=>_0x1ae15a(!0x1),'onSave':_0x227974=>{const _0x124f89=_0x358323;let _0x399331=_0x4b76eb[_0x124f89(0x20a)][_0x124f89(0x251)]??{'formula':''};return _0x42a193({..._0x4b76eb,'shapeData':{..._0x4b76eb[_0x124f89(0x20a)],'formulaBinding':{..._0x399331,'formula':_0x909b28(_0x227974,_0x274add)}}})['then'](()=>_0x1ae15a(!0x1))[_0x124f89(0x2cb)](()=>void 0x0);}})})]});}function ci({children:_0x5d95e2,label:_0x1fce2f}){const _0x1373d0=_0x57c180;return _0x3fc05f('div',{'role':'group','aria-label':_0x1fce2f,'className':_0x1373d0(0x307),'children':[_0x1bfcde(_0x1373d0(0x45e),{'children':_0x1fce2f}),_0x5d95e2]});}function li({disabled:_0x1c0564,fields:_0x82747b,filter:_0x23a045,onChange:_0x5426fd}){const _0x3d47a6=_0x57c180;let _0x12afe3=_0x3dc792(_0x270a90)[_0x3d47a6(0x317)]??null,[_0x2f52ad,_0x5097a1]=_0x155c41(null),_0x163b1b=_0x3dc792(_0xc34a30),_0x3f20ed=(_0x23a045==null?void 0x0:_0x23a045[_0x3d47a6(0x3cd)])??[];if(!_0x3f20ed[_0x3d47a6(0x291)])return _0x3fc05f('div',{'className':_0x3d47a6(0x21f),'children':[_0x1bfcde(_0x3b1c88,{'className':_0x3d47a6(0x3e8)}),_0x1bfcde(_0x3d47a6(0x45e),{'className':'univer-text-sm','children':_0x163b1b['t'](_0x3d47a6(0x161))})]});let _0x13884a=_0x2f52ad==null?void 0x0:_0x3f20ed[_0x2f52ad],_0x563f03=_0x82747b[_0x3d47a6(0x34b)](_0x4f2da6=>_0x4f2da6['id']===(_0x13884a==null?void 0x0:_0x13884a[_0x3d47a6(0x383)]));return _0x3fc05f('div',{'className':_0x3d47a6(0x3a3),'children':[_0x3f20ed[_0x3d47a6(0x48c)]((_0x3bded4,_0x28a52e)=>{const _0x2eb1e6=_0x3d47a6;var _0x1bd285;return _0x3fc05f(_0x29df96,{'disabled':_0x1c0564,'onClick':()=>_0x5097a1(_0x28a52e),'children':[_0x1bfcde(_0x2eb1e6(0x45e),{'children':((_0x1bd285=_0x82747b[_0x2eb1e6(0x34b)](_0x52cd5b=>_0x52cd5b['id']===_0x3bded4['fieldId']))==null?void 0x0:_0x1bd285[_0x2eb1e6(0x3aa)])??_0x3bded4[_0x2eb1e6(0x383)]}),_0x1bfcde(_0x2eb1e6(0x45e),{'className':_0x2eb1e6(0x420),'children':String(_0x3bded4['operand']??'')})]},_0x3bded4[_0x2eb1e6(0x383)]+'-'+_0x28a52e);}),_0x563f03&&_0x13884a&&_0x2f52ad!=null&&_0x12afe3&&_0x168f49(_0x1bfcde(_0x384525,{'field':_0x563f03,'value':_0x13884a['operand'],'onClose':()=>_0x5097a1(null),'onSave':_0x3700a2=>{const _0x3f362d=_0x3d47a6;_0x5426fd({'conjunction':(_0x23a045==null?void 0x0:_0x23a045[_0x3f362d(0x184)])??_0x26a62d[_0x3f362d(0x378)],'conditions':_0x3f20ed[_0x3f362d(0x48c)]((_0x215261,_0x59c89c)=>_0x59c89c===_0x2f52ad?{..._0x215261,'operand':_0x3700a2}:_0x215261)}),_0x5097a1(null);}}),_0x12afe3)]});}function ui({fields:_0x30ac74,filter:_0x4747eb,onChange:_0x5cd065,onClear:_0x53e4f7}){const _0x263af2=_0x57c180;let _0x12eaf5=_0x3dc792(_0xc34a30);return _0x3fc05f(_0x263af2(0x332),{'children':[_0x1bfcde(_0x123ae3,{'fields':_0x30ac74,'value':_0x4747eb??{'conjunction':_0x26a62d['AND'],'conditions':[]},'onChange':_0x5cd065}),_0x1bfcde(_0x29df96,{'onClick':_0x53e4f7,'children':_0x12eaf5['t'](_0x263af2(0x459))})]});}function di({base:_0x4eb0dd,chartRuntime:_0x4d753d,onChange:_0x46f749,onClose:_0x41d20b,onSelectBackgroundImage:_0x581855,onSelectImage:_0x30ae0b,unitId:_0x6ab571,widget:_0x45ed9b}){const _0x4b933a=_0x57c180;let _0x4d3f27=_0x3dc792(_0x20bf70),_0x20bee2=_0x3dc792(_0xc34a30),_0x1ba9ef=_0x4eb0dd[_0x4b933a(0x257)](),_0x1505a4=_0x4b933a(0x31f)in _0x45ed9b?_0x1ba9ef[_0x4b933a(0x47e)][_0x45ed9b[_0x4b933a(0x31f)]]:void 0x0,_0x2379bb=_0x45ed9b[_0x4b933a(0x498)]===_0x925244['PivotChart']?_0x1505a4==null?void 0x0:_0x1505a4[_0x4b933a(0x46e)][_0x45ed9b[_0x4b933a(0x488)]]:void 0x0,_0x238d59=_0x20bee2['t'](vi(_0x45ed9b)),_0x21b174=_0x3fc05f(_0x4b933a(0x351),{'data-dashboard-inspector':!0x0,'className':'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','children':[_0x45ed9b['type']===_0x925244[_0x4b933a(0x404)]&&(_i(_0x2379bb)&&_0x4d753d?_0x1bfcde(ii,{'runtime':_0x4d753d,'sourceChart':_0x2379bb['config']['chart'],'sourceName':((_0x1505a4==null?void 0x0:_0x1505a4[_0x4b933a(0x3aa)])??'')+_0x4b933a(0x193)+_0x2379bb[_0x4b933a(0x3aa)],'widget':_0x45ed9b,'onChange':_0x46f749,'onEditData':()=>{const _0xb0740f=_0x4b933a;_0x4d3f27[_0xb0740f(0x3fa)](_0x47e1b0['id'],{'unitId':_0x6ab571,'tableId':_0x45ed9b[_0xb0740f(0x31f)],'viewId':_0x45ed9b['pivotViewId']})[_0xb0740f(0x2cb)](()=>void 0x0);}}):_0x1bfcde(hi,{'message':_i(_0x2379bb)?_0x20bee2['t']('bases-dashboard-ui.dashboardInspector.loading'):_0x20bee2['t'](_0x4b933a(0x36f))})),_0x45ed9b['type']===_0x925244['FormulaShape']&&_0x1bfcde(si,{'base':_0x4eb0dd,'widget':_0x45ed9b,'onChange':_0x46f749,'onSelectBackgroundImage':_0x581855}),_0x45ed9b[_0x4b933a(0x498)]===_0x925244[_0x4b933a(0x1fc)]&&_0x1bfcde(pi,{'base':_0x4eb0dd,'onChange':_0x46f749,'widget':_0x45ed9b}),_0x45ed9b[_0x4b933a(0x498)]===_0x925244[_0x4b933a(0x377)]&&_0x1bfcde(mi,{'onChange':_0x46f749,'widget':_0x45ed9b}),_0x45ed9b[_0x4b933a(0x498)]===_0x925244[_0x4b933a(0x37d)]&&_0x1bfcde(fi,{'onChange':_0x46f749,'onSelectImage':_0x30ae0b,'widget':_0x45ed9b})]});return _0x1bfcde(_0x5ae53d,{'title':_0x238d59,'onClose':_0x41d20b,'children':_0x21b174});}function fi({onChange:_0x13546e,onSelectImage:_0x557a33,widget:_0x659531}){const _0x9dbfcb=_0x57c180;let _0x4f33df=_0x3dc792(_0xc34a30);return _0x3fc05f('div',{'className':'univer-grid\x20univer-gap-4\x20univer-p-4','children':[_0x3fc05f(_0x29df96,{'className':'univer-w-full','onClick':()=>_0x557a33()[_0x9dbfcb(0x2bd)](_0x40921e=>_0x40921e&&_0x13546e({..._0x659531,'source':_0x40921e['source'],'sourceType':_0x40921e[_0x9dbfcb(0x407)],'alt':_0x40921e['name']}))[_0x9dbfcb(0x2cb)](()=>void 0x0),'children':[_0x1bfcde(_0x5d1373,{}),_0x4f33df['t'](_0x9dbfcb(0x490))]}),_0x3fc05f(_0x9dbfcb(0x372),{'className':_0x9dbfcb(0x307),'children':[_0x1bfcde(_0x9dbfcb(0x45e),{'children':_0x4f33df['t'](_0x9dbfcb(0x2b3))}),_0x1bfcde(_0x9bce40,{'items':[{'value':_0x9dbfcb(0x3a5),'label':_0x4f33df['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x9dbfcb(0x32c),'label':_0x4f33df['t']('bases-dashboard-ui.dashboardInspector.repeat')},{'value':_0x9dbfcb(0x259),'label':_0x4f33df['t'](_0x9dbfcb(0x400))}],'value':_0x659531['displayMode']??_0x9dbfcb(0x3a5),'onChange':_0x4b6f01=>_0x13546e({..._0x659531,'displayMode':_0x4b6f01})[_0x9dbfcb(0x2cb)](()=>void 0x0)})]})]});}function pi({base:_0x162e5d,onChange:_0x2c5f3b,widget:_0xfc9949}){const _0x289f53=_0x57c180;let _0x64e3a0=_0x162e5d[_0x289f53(0x257)]()['tables'][_0xfc9949[_0x289f53(0x31f)]],_0x42d554=_0x64e3a0==null?void 0x0:_0x64e3a0[_0x289f53(0x3d3)][_0x289f53(0x34b)](_0x4da6da=>_0x64e3a0[_0x289f53(0x46e)][_0x4da6da]),_0x349927=_0x42d554?_0x64e3a0==null?void 0x0:_0x64e3a0[_0x289f53(0x46e)][_0x42d554]:void 0x0,_0x2e20a8=_0x64e3a0&&_0x349927?_0x20d50d(_0x64e3a0,_0x349927):[];return _0x1bfcde(ui,{'fields':_0x2e20a8,'filter':_0xfc9949[_0x289f53(0x449)],'onChange':_0x43a0dc=>_0x2c5f3b({..._0xfc9949,'filter':_0x43a0dc})['catch'](()=>void 0x0),'onClear':()=>_0x2c5f3b({..._0xfc9949,'filter':null})[_0x289f53(0x2cb)](()=>void 0x0)});}function mi({onChange:_0x341dce,widget:_0xe97b66}){const _0x2d5e7b=_0x57c180;let _0x53605f=_0x3dc792(_0xc34a30),_0x5320c9=_0x3dc792(_0x2f0481),_0x9d55ff=_0x1cdd28(()=>_0x5320c9[_0x2d5e7b(0x409)],_0x5320c9[_0x2d5e7b(0x284)](),!0x1,[_0x5320c9]),_0x31a842=Br(_0xe97b66),_0xcfeae5=_0x10ddfd=>_0x341dce({..._0xe97b66,'appearance':{..._0x31a842,..._0x10ddfd}})[_0x2d5e7b(0x2cb)](()=>void 0x0);return _0x3fc05f(_0x2d5e7b(0x332),{'className':'univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','children':[_0x1bfcde(_0x98f9d1,{'className':'univer-max-h-40\x20univer-text-base','defaultValue':Vr(_0xe97b66[_0x2d5e7b(0x3c8)]),'rows':0x8,'onBlur':_0x3fbdfd=>_0x341dce({..._0xe97b66,'document':Hr(_0xe97b66[_0x2d5e7b(0x3c8)],_0x3fbdfd[_0x2d5e7b(0x22c)][_0x2d5e7b(0x435)])})[_0x2d5e7b(0x2cb)](()=>void 0x0)}),_0x1bfcde(_0x14a84b,{'emptyLabel':_0x53605f['t'](_0x2d5e7b(0x3b0)),'label':_0x53605f['t'](_0x2d5e7b(0x3b0)),'pickerFallbackValue':_0x9d55ff[_0x2d5e7b(0x387)][0x0],'resetLabel':_0x53605f['t'](_0x2d5e7b(0x459)),'value':_0x31a842['backgroundColor']??null,'onChange':_0x309888=>_0xcfeae5({'backgroundColor':_0x309888??void 0x0})}),_0x1bfcde(_0x14a84b,{'emptyLabel':_0x53605f['t'](_0x2d5e7b(0x354)),'label':_0x53605f['t'](_0x2d5e7b(0x354)),'pickerFallbackValue':_0x9d55ff['gray'][0x3e8],'resetLabel':_0x53605f['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x31a842['textColor']??null,'onChange':_0x137c4f=>_0xcfeae5({'textColor':_0x137c4f??void 0x0})}),_0x1bfcde(gi,{'label':_0x53605f['t'](_0x2d5e7b(0x1aa)),'children':_0x1bfcde(_0x9bce40,{'items':[{'value':_0x2d5e7b(0x3d1),'label':_0x53605f['t'](_0x2d5e7b(0x26e))},{'value':_0x2d5e7b(0x28e),'label':_0x53605f['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0x2d5e7b(0x3bb),'label':_0x53605f['t'](_0x2d5e7b(0x349))}],'value':_0x31a842[_0x2d5e7b(0x283)],'onChange':_0x3d2262=>_0xcfeae5({'alignment':_0x3d2262})})}),_0x3fc05f(gi,{'label':_0x53605f['t'](_0x2d5e7b(0x178)),'children':[_0x1bfcde(_0x9bce40,{'items':[{'value':_0x2d5e7b(0x27e),'label':_0x53605f['t'](_0x2d5e7b(0x2a7))},{'value':_0x2d5e7b(0x29e),'label':_0x53605f['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x31a842[_0x2d5e7b(0x204)],'onChange':_0x3db15b=>_0xcfeae5({'fontSizeMode':_0x3db15b})}),_0x31a842[_0x2d5e7b(0x204)]===_0x2d5e7b(0x29e)&&_0x1bfcde(_0x142183,{'className':_0x2d5e7b(0x20f),'min':0xa,'max':0x78,'value':_0x31a842[_0x2d5e7b(0x2cd)],'onChange':_0x2e8a41=>_0xcfeae5({'fontSize':_0x2e8a41??0x12,'fontSizeMode':_0x2d5e7b(0x29e)})})]})]});}function hi({message:_0x245ba9}){const _0x1ee0fd=_0x57c180;return _0x1bfcde(_0x1ee0fd(0x332),{'className':_0x1ee0fd(0x3a0),'children':_0x245ba9});}function gi({children:_0x473d2e,label:_0x51fd88}){const _0x339747=_0x57c180;return _0x3fc05f(_0x339747(0x332),{'role':_0x339747(0x208),'aria-':!0x0,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x1bfcde(_0x339747(0x45e),{'children':_0x51fd88}),_0x473d2e]});}function _i(_0x5deb47){const _0x882df2=_0x57c180;return(_0x5deb47==null?void 0x0:_0x5deb47[_0x882df2(0x498)])===_0x4e046d[_0x882df2(0x496)]&&typeof _0x5deb47[_0x882df2(0x163)]==_0x882df2(0x177)&&_0x5deb47['config']!==null&&_0x882df2(0x3b9)in _0x5deb47[_0x882df2(0x163)]&&_0x882df2(0x49c)in _0x5deb47[_0x882df2(0x163)];}function vi(_0x19e1da){const _0x56ca06=_0x57c180;switch(_0x19e1da[_0x56ca06(0x498)]){case _0x925244['PivotChart']:return'bases-dashboard-ui.dashboard.pivotChart';case _0x925244['TableFilter']:return _0x56ca06(0x161);case _0x925244[_0x56ca06(0x377)]:return _0x56ca06(0x467);case _0x925244[_0x56ca06(0x37d)]:return'bases-dashboard-ui.dashboard.image';case _0x925244['FormulaShape']:return _0x56ca06(0x4a7);}}function yi({onDelete:_0x593e38,onEdit:_0x8aad5,onMoveUp:_0x4cfa22,onMoveDown:_0xfcc6ca}){const _0x4c826c=_0x57c180;let [_0xa82fa4,_0x268554]=_0x155c41(!0x1),_0x44783f=_0x3dc792(_0xc34a30),_0x527a4b=_0x44783f['t'](_0x4c826c(0x47f)),_0x5c1ad7=_0x44783f['t'](_0x4c826c(0x3df)),_0x3850b8=_0x44783f['t']('bases-dashboard-ui.dashboard.widgetActions'),_0x4a2401=[{'type':_0x4c826c(0x224),'children':_0x3fc05f(_0x4c826c(0x45e),{'className':_0x4c826c(0x3f2),'children':[_0x1bfcde(_0x473cd9,{'className':_0x4c826c(0x375),'aria-hidden':_0x4c826c(0x44f)}),_0x1bfcde(_0x4c826c(0x45e),{'children':_0x527a4b})]}),'onSelect':_0x8aad5},..._0x4cfa22?[{'type':_0x4c826c(0x224),'children':_0x3fc05f(_0x4c826c(0x45e),{'className':_0x4c826c(0x3f2),'children':[_0x1bfcde(_0x556586,{'className':'univer-size-4','aria-hidden':'true'}),_0x1bfcde(_0x4c826c(0x45e),{'children':_0x44783f['t'](_0x4c826c(0x23d))})]}),'onSelect':_0x4cfa22}]:[],..._0xfcc6ca?[{'type':_0x4c826c(0x224),'children':_0x3fc05f(_0x4c826c(0x45e),{'className':_0x4c826c(0x3f2),'children':[_0x1bfcde(_0x6231e1,{'className':'univer-size-4','aria-hidden':_0x4c826c(0x44f)}),_0x1bfcde('span',{'children':_0x44783f['t'](_0x4c826c(0x2cf))})]}),'onSelect':_0xfcc6ca}]:[],{'type':_0x4c826c(0x168)},{'type':_0x4c826c(0x224),'variant':_0x4c826c(0x36e),'children':_0x3fc05f(_0x4c826c(0x45e),{'className':_0x4c826c(0x3f2),'children':[_0x1bfcde(_0x4e3f72,{'className':_0x4c826c(0x375),'aria-hidden':_0x4c826c(0x44f)}),_0x1bfcde(_0x4c826c(0x45e),{'children':_0x5c1ad7})]}),'onSelect':_0x593e38}];return _0x1bfcde(_0x1f43a4,{'open':_0xa82fa4,'onOpenChange':_0x268554,'align':_0x4c826c(0x29f),'sideOffset':0x4,'items':_0x4a2401['map'](_0xa35b92=>({..._0xa35b92,'className':_0xa35b92[_0x4c826c(0x498)]===_0x4c826c(0x224)?_0x4c826c(0x494):void 0x0})),'children':_0x1bfcde(_0x29df96,{'type':_0x4c826c(0x189),'size':'small','variant':_0x4c826c(0x22e),'onPointerDown':_0x22cfff=>_0x22cfff[_0x4c826c(0x18d)](),'onClick':()=>_0x268554(_0x4aa060=>!_0x4aa060),'title':_0x3850b8,'aria-label':_0x3850b8,'className':_0x4c826c(0x314),'children':_0x1bfcde(_0x5e1024,{'className':_0x4c826c(0x375),'aria-hidden':_0x4c826c(0x44f)})})});}function bi({dashboardId:_0x5f3a1f,presentation:_0x55c214=!0x1,unitId:_0x44df46}){const _0x5450b4=_0x57c180;let _0x214a15=_0x3dc792(_0x3fc728),_0x28991f=_0x3dc792(_0x202eb7);_0x1cdd28(_0x28991f[_0x5450b4(0x22f)],0x0);let _0x2f25b0=_0x3dc792(_0x20bf70),_0x5a284e=_0x3dc792(_0x366739),_0xfef437=_0x3dc792(_0x26f888),_0x504f55=_0x3dc792(_0xfa1040),_0x18678d=_0x3dc792(_0xc34a30),_0x556e1e=_0x3dc792(_0x1e99fb),_0x2a8ef1=_0x3dc792(_0x21d906),[_0x333d36,_0x531dd9]=_0x155c41(!0x1),[_0x54d83c,_0x5de433]=_0x155c41(),[_0x29f565,_0x499874]=_0x155c41(!0x1),[_0x409d7a,_0xa7ee11]=_0x155c41(()=>new Map()),_0x29fe8f=_0xd5c68e((_0xe8014a,_0x2ec34c)=>{_0xa7ee11(_0x44aca9=>{const _0x57ec6c=_0x44d8;let _0xb6f93c=new Map(_0x44aca9);return _0x2ec34c?_0xb6f93c[_0x57ec6c(0x33a)](_0xe8014a,_0x2ec34c):_0xb6f93c[_0x57ec6c(0x33f)](_0xe8014a),_0xb6f93c;});},[]),_0x5b9a7d=_0x1cdd28(()=>_0x556e1e['change$'][_0x5450b4(0x391)](_0x3b1cb4(()=>_0x556e1e[_0x5450b4(0x325)](_0x44df46,_0x5f3a1f))),_0x556e1e['getDashboard'](_0x44df46,_0x5f3a1f),!0x1,[_0x5f3a1f,_0x556e1e,_0x44df46]),_0x48b063=_0x504f55[_0x5450b4(0x2ee)](_0x44df46,_0x1be7ab[_0x5450b4(0x360)]),_0x200842=_0x1cdd28(()=>_0x2a8ef1[_0x5450b4(0x316)],{'undos':0x0,'redos':0x0},!0x1,[_0x2a8ef1]),_0x2b5af1=gr(_0x44df46,_0x5f3a1f);if(_0x5a872b(()=>{const _0x273d9f=_0x5450b4;_0x504f55[_0x273d9f(0x350)](_0x44df46),_0x504f55[_0x273d9f(0x1e9)](_0x44df46);},[_0x504f55,_0x44df46]),!_0x5b9a7d||!_0x48b063)return null;let _0x4397e5={'unitId':_0x44df46,'objectId':_0x23d43e(_0x5f3a1f),'objectType':_0x368318['BaseDashboard']},_0x3d899b=(_0x5ec417,_0x478604)=>{const _0x472c6f=_0x5450b4;let _0x54d296=[..._0x5b9a7d[_0x472c6f(0x396)]],_0x5a9c74=_0x54d296[_0x472c6f(0x29d)](_0x5ec417),_0x1d096b=_0x5a9c74+_0x478604;if(!(_0x5a9c74<0x0||_0x1d096b<0x0||_0x1d096b>=_0x54d296[_0x472c6f(0x291)]))return[_0x54d296[_0x5a9c74],_0x54d296[_0x1d096b]]=[_0x54d296[_0x1d096b],_0x54d296[_0x5a9c74]],_0x2f25b0[_0x472c6f(0x3fa)](_0x16ed85['id'],{'unitId':_0x44df46,'dashboard':{..._0x5b9a7d,'widgetOrder':_0x54d296}});},_0x1677be=_0x144c35=>_0x2f25b0['executeCommand'](_0x5a7b78['id'],{'unitId':_0x44df46,'dashboardId':_0x5f3a1f,'widget':_0x144c35})[_0x5450b4(0x2cb)](()=>void 0x0),_0x14f310=(_0x2b648d,_0x2c96c2,_0x3c82f9)=>{const _0x45dc3d=_0x5450b4;let _0x6b818a=Math['max'](0x0,..._0x5b9a7d['widgetOrder'][_0x45dc3d(0x21e)](_0x1aaa6e=>{const _0x1dd05e=_0x45dc3d;var _0x4b4329;let _0x6e41a6=(_0x4b4329=_0x5b9a7d['widgets'][_0x1aaa6e])==null?void 0x0:_0x4b4329[_0x1dd05e(0x424)];return _0x6e41a6?[_0x6e41a6['row']+_0x6e41a6['rowSpan']]:[];})),_0x1c231c=_0x45dc3d(0x47d)+_0x2bbf35(0x8),_0x595eb4={'column':0x0,'row':_0x6b818a,'columnSpan':_0x2c96c2,'rowSpan':_0x3c82f9};switch(_0x2b648d['type']){case _0x925244[_0x45dc3d(0x404)]:return _0x1677be({..._0x2b648d,'id':_0x1c231c,'layout':_0x595eb4});case _0x925244[_0x45dc3d(0x1fc)]:return _0x1677be({..._0x2b648d,'id':_0x1c231c,'layout':_0x595eb4});case _0x925244[_0x45dc3d(0x377)]:return _0x1677be({..._0x2b648d,'id':_0x1c231c,'layout':_0x595eb4});case _0x925244[_0x45dc3d(0x37d)]:return _0x1677be({..._0x2b648d,'id':_0x1c231c,'layout':_0x595eb4});case _0x925244['FormulaShape']:return _0x1677be({..._0x2b648d,'id':_0x1c231c,'layout':_0x595eb4});}},_0x265d6d=_0x48b063[_0x5450b4(0x257)](),_0x302370=_0x265d6d['tableOrder'][_0x5450b4(0x21e)](_0x3aa013=>{const _0x201915=_0x5450b4;let _0x2754d0=_0x265d6d[_0x201915(0x47e)][_0x3aa013];if(!_0x2754d0)return[];let _0x2a8975=_0x2754d0[_0x201915(0x3d3)][_0x201915(0x21e)](_0x3a1e4c=>{const _0xfda3e8=_0x201915;let _0xa5c17c=_0x2754d0[_0xfda3e8(0x46e)][_0x3a1e4c];return Oi(_0xa5c17c)?[{'type':_0xfda3e8(0x224),'children':_0xa5c17c['name'],'onSelect':()=>_0x14f310({'type':_0x925244[_0xfda3e8(0x404)],'tableId':_0x3aa013,'pivotViewId':_0x3a1e4c,'chart':{..._0xa5c17c[_0xfda3e8(0x163)][_0xfda3e8(0x49c)]}},0x6,0xa)}]:[];});return[{'type':_0x201915(0x43a),'children':_0x2754d0[_0x201915(0x3aa)],'options':[..._0x2a8975,..._0x2a8975['length']?[{'type':_0x201915(0x168)}]:[],{'type':'item','children':_0x18678d['t']('bases-dashboard-ui.dashboard.tableFilter'),'onSelect':()=>_0x14f310({'type':_0x925244[_0x201915(0x1fc)],'tableId':_0x3aa013,'filter':null},0x6,0x8)}]}];}),_0x3357b3=[..._0x302370,..._0x302370[_0x5450b4(0x291)]?[{'type':_0x5450b4(0x168)}]:[],{'type':_0x5450b4(0x224),'children':_0x18678d['t'](_0x5450b4(0x467)),'onSelect':()=>_0x14f310({'type':_0x925244[_0x5450b4(0x377)],'document':wi()},0x4,0x6)},{'type':_0x5450b4(0x224),'children':_0x18678d['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>Ti(_0x5a284e)['then'](_0x3aa5d3=>_0x3aa5d3&&_0x14f310({'type':_0x925244[_0x5450b4(0x37d)],'source':_0x3aa5d3['source'],'sourceType':_0x3aa5d3['sourceType'],'alt':_0x3aa5d3[_0x5450b4(0x3aa)],'displayMode':_0x5450b4(0x3a5)},0x4,0x6))},{'type':_0x5450b4(0x224),'children':_0x18678d['t'](_0x5450b4(0x4a7)),'onSelect':()=>{const _0x26d86c=_0x5450b4;let _0x5bb500=_0x265d6d['tableOrder'][_0x26d86c(0x34b)](_0x492511=>_0x265d6d[_0x26d86c(0x47e)][_0x492511]);_0x5bb500&&_0x14f310({'type':_0x925244[_0x26d86c(0x1a9)],'tableId':_0x5bb500,'shapeType':_0x54b8df['RoundRect'],'shapeData':_0x46c966(),'description':_0x18678d['t'](_0x26d86c(0x4a7))},0x4,0x6);}}],_0x38b0a1=_0x54d83c?_0x5b9a7d[_0x5450b4(0x1d3)][_0x54d83c]:void 0x0,_0x197505=()=>_0x499874(_0x551282=>!_0x551282),_0x4af3b7=_0x55c214||_0x29f565,_0x4cce4b=_0x2b5af1&&!_0x4af3b7;return _0x1bfcde(Kr,{'children':_0x3fc05f(_0x5450b4(0x332),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x29f565?_0x5450b4(0x419):_0x5450b4(0x2f3))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[_0x29f565&&_0x1bfcde(_0x29df96,{'onClick':()=>_0x499874(!0x1),'children':_0x18678d['t']('bases-dashboard-ui.dashboardInspector.close')}),!_0x4af3b7&&_0x3fc05f(_0x5450b4(0x356),{'className':'univer-flex\x20univer-h-auto\x20univer-min-h-12\x20univer-shrink-0\x20univer-flex-wrap\x20univer-items-center\x20univer-gap-1\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x1bfcde(_0x54efa1,{'className':_0x5450b4(0x1be)}),_0x1bfcde('h2',{'className':_0x5450b4(0x1c3),'children':_0x5b9a7d[_0x5450b4(0x3aa)]}),_0x28991f['supports'](_0x4397e5)&&_0x1bfcde(_0x29df96,{'variant':_0x5450b4(0x22e),'disabled':!_0x28991f['canView'](_0x4397e5),'aria-label':_0x18678d['t'](_0x5450b4(0x369)),'onClick':()=>{const _0x13a5a0=_0x5450b4;_0x27fc04(_0x214a15,{'target':_0x4397e5,'name':_0x5b9a7d[_0x13a5a0(0x3aa)],'commandId':_0x2a9b6a['id'],'exists':()=>!!_0x556e1e['getDashboard'](_0x44df46,_0x5f3a1f)});},'children':_0x1bfcde(_0x4c92f0,{})}),_0x1bfcde(_0xf99d34,{'unitId':_0x44df46}),_0x1bfcde(_0x29df96,{'type':_0x5450b4(0x189),'size':_0x5450b4(0x3a6),'variant':_0x5450b4(0x22e),'aria-label':_0x18678d['t'](_0x5450b4(0x23b)),'disabled':!_0x2b5af1||_0x200842['undos']===0x0,'onClick':()=>_0x2f25b0[_0x5450b4(0x3fa)](_0x114bc6['id'])[_0x5450b4(0x2cb)](()=>void 0x0),'children':_0x1bfcde(_0x1d73f1,{})}),_0x1bfcde(_0x29df96,{'type':_0x5450b4(0x189),'size':'small','variant':'text','aria-label':_0x18678d['t'](_0x5450b4(0x352)),'disabled':!_0x2b5af1||_0x200842[_0x5450b4(0x1f1)]===0x0,'onClick':()=>_0x2f25b0['executeCommand'](_0x409470['id'])['catch'](()=>void 0x0),'children':_0x1bfcde(_0x9460ca,{})}),_0x1bfcde(_0x29df96,{'type':'button','size':'small','variant':_0x5450b4(0x22e),'aria-label':_0x18678d['t'](_0x5450b4(0x1a3)),'onClick':_0x197505,'children':_0x1bfcde(_0x7dfdc8,{})}),_0x1bfcde(Jr,{'items':_0x3357b3,'children':_0x3fc05f(_0x29df96,{'variant':_0x5450b4(0x230),'disabled':!_0x2b5af1,'children':[_0x1bfcde(_0x5d1373,{}),_0x18678d['t'](_0x5450b4(0x479))]})})]}),_0x3fc05f(_0x5450b4(0x332),{'className':_0x5450b4(0x32d),'children':[_0x1bfcde(_0x5450b4(0x332),{'className':_0x5450b4(0x2e9),'children':_0x1bfcde(Wr,{'dashboard':_0x5b9a7d,'editable':_0x4cce4b,'widgetLabel':_0x40cd5c=>_0x18678d['t'](Di(_0x40cd5c[_0x5450b4(0x498)])),'selectedWidgetId':_0x4cce4b?_0x54d83c:void 0x0,'onSelectWidget':_0x4cce4b?_0x51311a=>{_0x5de433(_0x51311a),_0x51311a||_0x531dd9(!0x1);}:void 0x0,'renderWidget':_0xe28568=>_0x1bfcde(xi,{'base':_0x48b063,'dashboard':_0x5b9a7d,'unitId':_0x44df46,'widget':_0xe28568,'onChange':_0x1677be,'onChartRuntimeChange':_0x29fe8f}),'renderWidgetActions':_0x1c82ab=>_0x1bfcde(yi,{'onMoveUp':_0x5b9a7d['widgetOrder'][_0x5450b4(0x29d)](_0x1c82ab['id'])>0x0?()=>_0x3d899b(_0x1c82ab['id'],-0x1):void 0x0,'onMoveDown':_0x5b9a7d['widgetOrder'][_0x5450b4(0x29d)](_0x1c82ab['id'])<_0x5b9a7d['widgetOrder'][_0x5450b4(0x291)]-0x1?()=>_0x3d899b(_0x1c82ab['id'],0x1):void 0x0,'onEdit':()=>{_0x5de433(_0x1c82ab['id']),_0x531dd9(!0x0);},'onDelete':()=>{const _0x2679d6=_0x5450b4;_0x54d83c===_0x1c82ab['id']&&(_0x5de433(void 0x0),_0x531dd9(!0x1)),_0x2f25b0['executeCommand'](_0x6dd3ea['id'],{'unitId':_0x44df46,'dashboardId':_0x5f3a1f,'widgetId':_0x1c82ab['id']})[_0x2679d6(0x2cb)](()=>void 0x0);}})})}),_0x4cce4b&&_0x333d36&&_0x38b0a1&&_0x1bfcde(di,{'base':_0x48b063,'chartRuntime':_0x409d7a[_0x5450b4(0x392)](_0x38b0a1['id']),'unitId':_0x44df46,'widget':_0x38b0a1,'onChange':_0x1677be,'onClose':()=>_0x531dd9(!0x1),'onSelectBackgroundImage':()=>Ei(_0xfef437),'onSelectImage':()=>Ti(_0x5a284e)})]})]})});}function xi({base:_0x51c9ab,dashboard:_0x4a55ff,onChange:_0x4bcfde,onChartRuntimeChange:_0x37f715,unitId:_0x153e70,widget:_0x3ac6d2}){const _0x464cf6=_0x57c180;let _0x252d0f=_0x4561c2(()=>_0x4a55ff['widgetOrder']['flatMap'](_0x4610f5=>{const _0xe416a=_0x44d8;let _0x5a0fc6=_0x4a55ff[_0xe416a(0x1d3)][_0x4610f5];return(_0x5a0fc6==null?void 0x0:_0x5a0fc6[_0xe416a(0x498)])===_0x925244[_0xe416a(0x1fc)]&&_0x5a0fc6['tableId']===(_0xe416a(0x31f)in _0x3ac6d2?_0x3ac6d2[_0xe416a(0x31f)]:'')&&_0x5a0fc6[_0xe416a(0x449)]?[_0x5a0fc6[_0xe416a(0x449)]]:[];}),[_0x4a55ff,_0x3ac6d2]);switch(_0x3ac6d2[_0x464cf6(0x498)]){case _0x925244[_0x464cf6(0x404)]:return _0x1bfcde(Lr,{'filters':_0x252d0f,'unitId':_0x153e70,'widget':_0x3ac6d2,'onRuntimeChange':_0x37f715});case _0x925244[_0x464cf6(0x1fc)]:return _0x1bfcde(li,{'fields':Si(_0x51c9ab,_0x3ac6d2[_0x464cf6(0x31f)]),'filter':_0x3ac6d2[_0x464cf6(0x449)],'onChange':_0xc99bed=>_0x4bcfde({..._0x3ac6d2,'filter':_0xc99bed})[_0x464cf6(0x2cb)](()=>void 0x0)});case _0x925244[_0x464cf6(0x377)]:return _0x1bfcde(Ur,{'widget':_0x3ac6d2});case _0x925244[_0x464cf6(0x37d)]:return _0x1bfcde(Ci,{'widget':_0x3ac6d2});case _0x925244[_0x464cf6(0x1a9)]:return _0x1bfcde(Dr,{'dashboardId':_0x4a55ff['id'],'unitId':_0x153e70,'widget':_0x3ac6d2});}}function Si(_0x2c9985,_0xa8f6c9){const _0x37ea21=_0x57c180;let _0x49f1de=_0x2c9985[_0x37ea21(0x257)]()[_0x37ea21(0x47e)][_0xa8f6c9],_0x4326d7=_0x49f1de==null?void 0x0:_0x49f1de[_0x37ea21(0x3d3)][_0x37ea21(0x34b)](_0x52f3b6=>_0x49f1de[_0x37ea21(0x46e)][_0x52f3b6]),_0x2c9f02=_0x4326d7?_0x49f1de==null?void 0x0:_0x49f1de[_0x37ea21(0x46e)][_0x4326d7]:void 0x0;return _0x49f1de&&_0x2c9f02?_0x20d50d(_0x49f1de,_0x2c9f02):[];}function Ci({widget:_0x435aa7}){const _0x34fba1=_0x57c180;let _0x3c44e7=_0x3dc792(_0x366739),[_0x3333b1,_0x3827b7]=_0x155c41(_0x435aa7[_0x34fba1(0x407)]===_0x2e9f9a[_0x34fba1(0x2bb)]?'':_0x435aa7[_0x34fba1(0x153)]);return _0x5a872b(()=>{const _0xd8ee67=_0x34fba1;let _0xb55186=!0x0;return _0x3c44e7[_0xd8ee67(0x1df)](_0x435aa7[_0xd8ee67(0x153)],_0x435aa7['sourceType'])[_0xd8ee67(0x2bd)](_0xeb93=>{_0xb55186&&_0x3827b7(_0xeb93);})['catch'](()=>void 0x0),()=>{_0xb55186=!0x1;};},[_0x3c44e7,_0x435aa7[_0x34fba1(0x153)],_0x435aa7[_0x34fba1(0x407)]]),_0x3333b1?_0x1bfcde('div',{'role':_0x435aa7[_0x34fba1(0x335)]?'img':void 0x0,'aria-label':_0x435aa7['alt']||void 0x0,'data-dashboard-image':_0x435aa7['id'],'className':'univer-h-full\x20univer-w-full\x20univer-bg-transparent','style':vr(_0x3333b1,_0x435aa7[_0x34fba1(0x36d)])}):null;}function wi(){const _0x347175=_0x57c180;let _0x15b3ca=_0x1d37b5(new Set());return{'id':_0x347175(0x313)+_0x2bbf35(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x15b3ca}]},'documentStyle':{}};}function Ti(_0x3c0ca4){return new Promise(_0x2e892d=>{const _0xaf6d21=_0x44d8;let _0x58cae0=document[_0xaf6d21(0x38f)](_0xaf6d21(0x1c8));_0x58cae0[_0xaf6d21(0x498)]=_0xaf6d21(0x205),_0x58cae0[_0xaf6d21(0x477)]=_0xaf6d21(0x483),_0x58cae0[_0xaf6d21(0x306)](_0xaf6d21(0x2d0),()=>{const _0x1cf2f8=_0xaf6d21;var _0xa1cbb6;let _0x13edb5=(_0xa1cbb6=_0x58cae0[_0x1cf2f8(0x2d4)])==null?void 0x0:_0xa1cbb6[0x0];if(!_0x13edb5){_0x2e892d(null);return;}_0x3c0ca4['saveAttachment'](_0x13edb5)[_0x1cf2f8(0x2bd)](_0x32e46a=>{const _0x346559=_0x1cf2f8;if(!_0x32e46a[_0x346559(0x153)]||_0x32e46a[_0x346559(0x407)]===void 0x0){_0x2e892d(null);return;}_0x2e892d({'name':_0x32e46a['name'],'source':_0x32e46a[_0x346559(0x153)],'sourceType':_0x32e46a[_0x346559(0x407)]});})[_0x1cf2f8(0x2cb)](()=>_0x2e892d(null));},{'once':!0x0}),_0x58cae0[_0xaf6d21(0x1d7)]();});}function Ei(_0x5be6a8){return new Promise(_0x13bc8f=>{const _0x191533=_0x44d8;let _0x13119c=document[_0x191533(0x38f)]('input');_0x13119c[_0x191533(0x498)]=_0x191533(0x205),_0x13119c[_0x191533(0x477)]=_0x191533(0x483),_0x13119c['addEventListener'](_0x191533(0x2d0),()=>{const _0x14aa71=_0x191533;var _0x1cd535;let _0x350878=(_0x1cd535=_0x13119c[_0x14aa71(0x2d4)])==null?void 0x0:_0x1cd535[0x0];if(!_0x350878){_0x13bc8f(null);return;}_0x5be6a8[_0x14aa71(0x1e3)](_0x350878)['then'](_0x3a5644=>{const _0x581c0a=_0x14aa71;if(!(_0x3a5644!=null&&_0x3a5644[_0x581c0a(0x153)])){_0x13bc8f(null);return;}if(_0x3a5644[_0x581c0a(0x2d9)]){let _0x4291bc=new Image();_0x4291bc[_0x581c0a(0x242)]=_0x3a5644[_0x581c0a(0x2d9)],_0x5be6a8[_0x581c0a(0x176)](_0x3a5644[_0x581c0a(0x153)],_0x3a5644[_0x581c0a(0x2ae)],_0x4291bc);}_0x13bc8f({'source':_0x3a5644[_0x581c0a(0x153)],'sourceType':_0x3a5644[_0x581c0a(0x2ae)]});})[_0x14aa71(0x2cb)](()=>_0x13bc8f(null));},{'once':!0x0}),_0x13119c['click']();});}function Di(_0x4119d2){const _0x55e3f9=_0x57c180;switch(_0x4119d2){case _0x925244[_0x55e3f9(0x404)]:return _0x55e3f9(0x245);case _0x925244[_0x55e3f9(0x1fc)]:return _0x55e3f9(0x161);case _0x925244[_0x55e3f9(0x377)]:return'bases-dashboard-ui.dashboard.text';case _0x925244['Image']:return _0x55e3f9(0x431);case _0x925244['FormulaShape']:return _0x55e3f9(0x4a7);}}function Oi(_0x97301b){const _0x5d8ff1=_0x57c180;return(_0x97301b==null?void 0x0:_0x97301b['type'])===_0x4e046d['Pivot']&&typeof _0x97301b[_0x5d8ff1(0x163)]==_0x5d8ff1(0x177)&&_0x97301b['config']!==null&&_0x5d8ff1(0x3b9)in _0x97301b[_0x5d8ff1(0x163)]&&_0x5d8ff1(0x49c)in _0x97301b[_0x5d8ff1(0x163)];}function ki({pivot:_0x43d141,view:_0x26ece0}){const _0x3423b8=_0x57c180;let _0x318fe3=_0x3dc792(_0xc34a30),_0x5d9dd7=_0x4561c2(()=>Ai(_0x26ece0,_0x43d141,_0x318fe3['t'](_0x3423b8(0x42f))),[_0x318fe3,_0x43d141,_0x26ece0]);return _0x3fc05f('div',{'className':'univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','children':[_0x5d9dd7[_0x3423b8(0x1a1)][_0x3423b8(0x291)]>0x0&&_0x1bfcde('table',{'className':'univer-mb-2\x20univer-border-collapse\x20univer-text-sm','children':_0x1bfcde(_0x3423b8(0x26a),{'children':ji(_0x5d9dd7[_0x3423b8(0x1a1)])})}),_0x3fc05f('table',{'className':_0x3423b8(0x43c),'children':[_0x5d9dd7[_0x3423b8(0x3bd)]>0x0&&_0x1bfcde(_0x3423b8(0x25d),{'className':_0x3423b8(0x1b7),'children':ji(_0x5d9dd7[_0x3423b8(0x3e1)][_0x3423b8(0x401)](0x0,_0x5d9dd7['headerRowCount']))}),_0x1bfcde('tbody',{'children':ji(_0x5d9dd7[_0x3423b8(0x3e1)][_0x3423b8(0x401)](_0x5d9dd7[_0x3423b8(0x3bd)]))})]})]});}function Ai(_0x11da5b,_0x332ea7,_0x33208f){const _0x41abd4=_0x57c180;let _0x1a1429=_0x11da5b['colView'][_0x41abd4(0x49a)],_0x476188=_0x11da5b[_0x41abd4(0x374)]['colCount'],_0x19d9b9=_0x11da5b[_0x41abd4(0x3b8)][_0x41abd4(0x49a)],_0x513301=_0x11da5b['dataView']['colCount'],_0x580a24=Array['from']({'length':_0x1a1429+_0x19d9b9},(_0x289f96,_0x8fe33)=>Array[_0x41abd4(0x2b7)]({'length':_0x476188+_0x513301},(_0x1b6925,_0x2fa987)=>{const _0x29a892=_0x41abd4;var _0xfca5a9,_0x20e4ac;if(_0x8fe33<_0x1a1429&&_0x2fa987<_0x476188)return Mi(_0x11da5b[_0x29a892(0x15a)],_0x8fe33,_0x2fa987,void 0x0,_0x33208f,!0x0,!0x1,_0x29a892(0x2c0)+_0x8fe33+':'+_0x2fa987);if(_0x8fe33<_0x1a1429){var _0x3bd4b7;let _0x2e5377=_0x2fa987-_0x476188,_0x4019c2=(_0x3bd4b7=_0x11da5b[_0x29a892(0x2f9)]['headerMap'][_0x8fe33])==null?void 0x0:_0x3bd4b7[_0x29a892(0x1bf)];return Mi(_0x11da5b[_0x29a892(0x2f9)],_0x8fe33,_0x2e5377,_0x4019c2?_0x11da5b['formatMap'][_0x4019c2]:void 0x0,_0x33208f,!0x0,Fi(_0x11da5b[_0x29a892(0x2f9)]['info'][_0x2e5377]),_0x29a892(0x278)+_0x8fe33+':'+_0x2e5377);}if(_0x2fa987<_0x476188){var _0x53cc72;let _0x146703=_0x8fe33-_0x1a1429,_0x1b6172=(_0x53cc72=_0x11da5b[_0x29a892(0x374)]['headerMap'][_0x2fa987])==null?void 0x0:_0x53cc72[_0x29a892(0x1bf)];return Mi(_0x11da5b[_0x29a892(0x374)],_0x146703,_0x2fa987,_0x1b6172?_0x11da5b[_0x29a892(0x285)][_0x1b6172]:void 0x0,_0x33208f,!0x0,Fi(_0x11da5b['rowView'][_0x29a892(0x1de)][_0x146703]),_0x29a892(0x288)+_0x146703+':'+_0x2fa987);}let _0x27857e=_0x8fe33-_0x1a1429,_0xf45b45=_0x2fa987-_0x476188,_0x176e19=Math[_0x29a892(0x203)](((_0xfca5a9=_0x11da5b[_0x29a892(0x374)][_0x29a892(0x1de)][_0x27857e])==null?void 0x0:_0xfca5a9[_0x29a892(0x463)])??-0x1,((_0x20e4ac=_0x11da5b[_0x29a892(0x2f9)]['info'][_0xf45b45])==null?void 0x0:_0x20e4ac['valueIndex'])??-0x1),_0x5016ae=_0x332ea7[_0x29a892(0x3a2)][_0x176e19<0x0?0x0:_0x176e19];return Mi(_0x11da5b[_0x29a892(0x3b8)],_0x27857e,_0xf45b45,_0x5016ae?_0x11da5b['formatMap'][_0x5016ae]:void 0x0,_0x33208f,!0x1,Fi(_0x11da5b[_0x29a892(0x374)]['info'][_0x27857e])||Fi(_0x11da5b[_0x29a892(0x2f9)]['info'][_0xf45b45]),_0x29a892(0x48a)+_0x27857e+':'+_0xf45b45);}));return{'headerColumnCount':_0x476188,'headerRowCount':_0x1a1429,'pageRows':_0x11da5b[_0x41abd4(0x3e6)][_0x41abd4(0x158)]<0x0||_0x11da5b[_0x41abd4(0x3e6)]['lastCol']<0x0?[]:Array['from']({'length':_0x11da5b[_0x41abd4(0x3e6)][_0x41abd4(0x158)]+0x1},(_0x53c06a,_0x3ad68e)=>Array['from']({'length':_0x11da5b['pageView'][_0x41abd4(0x29b)]+0x1},(_0x53eb4b,_0x9e052c)=>Mi(_0x11da5b[_0x41abd4(0x3e6)],_0x3ad68e,_0x9e052c,void 0x0,_0x33208f,!0x0,!0x1,_0x41abd4(0x24a)+_0x3ad68e+':'+_0x9e052c))),'rows':_0x580a24};}function ji(_0x37cc3e){const _0x3784ae=_0x57c180;return _0x37cc3e[_0x3784ae(0x48c)](_0x16fb2a=>{const _0x3224a9=_0x3784ae;var _0x352d33;return _0x1bfcde('tr',{'children':_0x16fb2a['map'](_0x3c5f1e=>{const _0x44e8ac=_0x44d8;let _0x5eca2c=_0x3c5f1e['isHeader']?'th':'td';return _0x1bfcde(_0x5eca2c,{'className':_0x44e8ac(0x46a)+(_0x3c5f1e[_0x44e8ac(0x238)]?'\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':'')+_0x44e8ac(0x263)+(_0x3c5f1e[_0x44e8ac(0x2b0)]?'':_0x44e8ac(0x219))+'\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':_0x3c5f1e[_0x44e8ac(0x435)]},_0x3c5f1e[_0x44e8ac(0x3d8)]);})},(_0x352d33=_0x16fb2a[0x0])==null?void 0x0:_0x352d33[_0x3224a9(0x3d8)]);});}function Mi(_0x1b8514,_0x824012,_0x59289e,_0x128e33,_0x23a745,_0x329015,_0xf305a4,_0x516e75){const _0x51f1a7=_0x57c180;var _0x1c2a46;let _0xc17eda=(_0x1c2a46=_0x1b8514[_0x51f1a7(0x412)][_0x824012])==null?void 0x0:_0x1c2a46[_0x59289e],_0x26f8d2=_0xc17eda==null?void 0x0:_0xc17eda['s'],_0x14c22a=_0xf305a4||_0x26f8d2===_0x487530[_0x51f1a7(0x1fb)]||_0x26f8d2===_0x487530[_0x51f1a7(0x266)];return{'isHeader':_0x329015,'isTotal':_0x14c22a||_0x26f8d2===_0x487530['Subtotal'],'key':_0x516e75,'style':_0x26f8d2,'value':_0x14c22a&&Pi(_0xc17eda==null?void 0x0:_0xc17eda['v'])?_0x23a745:Ni(_0xc17eda,_0x128e33)};}function Ni(_0x19be26,_0x11f477){const _0x41e94e=_0x57c180;let _0x4c6912=_0x19be26==null?void 0x0:_0x19be26['v'];return _0x3c427e(_0x4c6912)?String(_0x4c6912[_0x41e94e(0x435)]??_0x4c6912['prefix']??''):_0x3ede5d(_0x4c6912)?'#'+_0x4c6912[_0x41e94e(0x42c)]:_0x11f477&&typeof _0x4c6912==_0x41e94e(0x338)?_0x80f5c8[_0x41e94e(0x23c)](_0x11f477,_0x4c6912):String(_0x4c6912??'');}function Pi(_0x10b3a7){return _0x10b3a7===void 0x0||_0x10b3a7==='';}function Fi(_0x165cf0){const _0x282d66=_0x57c180;return!!(_0x165cf0!=null&&_0x165cf0[_0x282d66(0x2b1)]||_0x165cf0!=null&&_0x165cf0['isTopTotal']||_0x165cf0!=null&&_0x165cf0[_0x282d66(0x170)]||(_0x165cf0==null?void 0x0:_0x165cf0[_0x282d66(0x3fe)])===_0x282d66(0x3cc));}const Ii=[{'area':_0x3881d5[_0x57c180(0x3db)],'key':_0x57c180(0x174),'label':_0x57c180(0x3d6)},{'area':_0x3881d5[_0x57c180(0x438)],'key':_0x57c180(0x1ce),'label':_0x57c180(0x1cf)},{'area':_0x3881d5[_0x57c180(0x1ba)],'key':_0x57c180(0x2b5),'label':_0x57c180(0x1d5)},{'area':_0x3881d5['Value'],'key':_0x57c180(0x3a2),'label':_0x57c180(0x2a2)}],Li=[{'value':_0x48c6be[_0x57c180(0x45d)],'localeKey':'bases-dashboard-ui.pivot.sum'},{'value':_0x48c6be[_0x57c180(0x41d)],'localeKey':_0x57c180(0x432)},{'value':_0x48c6be[_0x57c180(0x2ec)],'localeKey':_0x57c180(0x3ea)},{'value':_0x48c6be['average'],'localeKey':_0x57c180(0x1dd)},{'value':_0x48c6be[_0x57c180(0x203)],'localeKey':_0x57c180(0x31b)},{'value':_0x48c6be[_0x57c180(0x295)],'localeKey':_0x57c180(0x2eb)},{'value':_0x48c6be[_0x57c180(0x3ad)],'localeKey':_0x57c180(0x276)},{'value':_0x48c6be[_0x57c180(0x15b)],'localeKey':'bases-dashboard-ui.pivot.stdDev'},{'value':_0x48c6be['stdDevp'],'localeKey':_0x57c180(0x1cd)},{'value':_0x48c6be[_0x57c180(0x33c)],'localeKey':'bases-dashboard-ui.pivot.variance'},{'value':_0x48c6be[_0x57c180(0x2f5)],'localeKey':_0x57c180(0x331)}];function Ri(_0xa55341){const _0x6589de=_0x57c180;let {config:_0x30d23d,onChange:_0x466c46,table:_0x3d4b8e}=_0xa55341,_0xd98e8a=_0x3dc792(_0xc34a30),[_0x5074c1,_0x4d5809]=_0x155c41(_0x6589de(0x2a4)),[_0x6e8d7a,_0x27d2f9]=_0x155c41(''),[_0x251e4c,_0x3221d1]=_0x155c41(null),[_0x18c0a2,_0x367f12]=_0x155c41(null),[_0x311184,_0x4220fb]=_0x155c41(null),[_0x2d32d9,_0x27912f]=_0x155c41(null),_0x35561f=_0x26ca56(null),_0x3d292f=_0x4561c2(()=>_0x3d4b8e[_0x6589de(0x25f)]['flatMap'](_0x110936=>{const _0x74b66f=_0x6589de;let _0x46699d=_0x3d4b8e[_0x74b66f(0x2a4)][_0x110936];return _0x46699d&&_0x46699d['system']!==!0x0&&_0x46699d[_0x74b66f(0x498)]!==_0x36d8a8[_0x74b66f(0x1e7)]?[_0x46699d]:[];})[_0x6589de(0x449)](_0x4a1c52=>_0x4a1c52[_0x6589de(0x3aa)]['toLocaleLowerCase']()[_0x6589de(0x300)](_0x6e8d7a[_0x6589de(0x3ae)]()[_0x6589de(0x1f8)]())),[_0x6e8d7a,_0x3d4b8e]),_0x39eee9=_0x360393=>{const _0x448f9d=_0x6589de;let _0x46c515=_0x4ae6f2(_0x3d4b8e,_0x30d23d[_0x448f9d(0x3b9)]);try{_0x360393(_0x46c515),_0x466c46({'pivot':_0x46c515['toJSON']()});}finally{_0x46c515[_0x448f9d(0x2ab)]();}},_0xf810ca=(_0x463c5d,_0x460404)=>{_0x251e4c&&(_0x39eee9(_0x516656=>{const _0x2c446f=_0x44d8;if(_0x251e4c[_0x2c446f(0x207)]===_0x2c446f(0x32e)){let _0x28e39f=_0x516656[_0x2c446f(0x476)](_0x251e4c['id']),_0x5bf01b=_0x28e39f['area']===_0x463c5d&&_0x28e39f['index']<_0x460404?_0x460404-0x1:_0x460404;_0x516656['updateFieldPosition'](_0x251e4c['id'],_0x463c5d,_0x5bf01b);return;}Ki(_0x516656,_0x251e4c['id'],_0x463c5d,_0x460404);}),_0x3221d1(null),_0x367f12(null));};return _0x3fc05f('div',{'className':_0x6589de(0x1ad),'children':[_0x1bfcde(_0x2e9f58,{'ariaLabel':_0xd98e8a['t'](_0x6589de(0x3f1)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0xd98e8a['t'](_0x6589de(0x2b8)),'panelId':_0x6589de(0x152),'value':_0x6589de(0x2a4)},{'label':_0xd98e8a['t'](_0x6589de(0x37e)),'panelId':_0x6589de(0x40e),'value':_0x6589de(0x35f)}],'value':_0x5074c1,'onChange':_0x4d5809}),_0x1bfcde(_0x6589de(0x332),{'ref':_0x35561f,'className':_0x3c6675(_0x6589de(0x333),_0x32f99e),'onDragOver':_0x44df77=>{const _0x1e6319=_0x6589de;let _0xfed74e=_0x35561f['current'];if(!_0xfed74e)return;let _0x57064c=_0xfed74e[_0x1e6319(0x213)]();_0x44df77[_0x1e6319(0x2fc)]<_0x57064c[_0x1e6319(0x2db)]+0x30?_0xfed74e['scrollTop']-=0x10:_0x44df77[_0x1e6319(0x2fc)]>_0x57064c[_0x1e6319(0x2f7)]-0x30&&(_0xfed74e['scrollTop']+=0x10);},'children':_0x5074c1===_0x6589de(0x35f)?_0x1bfcde(Gi,{'config':_0x30d23d,'commit':_0x39eee9}):_0x3fc05f('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x3fc05f(_0x6589de(0x332),{'children':[_0x1bfcde(_0x6589de(0x332),{'className':_0x6589de(0x222),'children':_0xd98e8a['t']('bases-dashboard-ui.pivot.sourceFields')}),_0x1bfcde(_0x225487,{'allowClear':!0x0,'slot':_0x1bfcde(_0x686afa,{}),'value':_0x6e8d7a,'placeholder':_0xd98e8a['t'](_0x6589de(0x3f7)),'onChange':_0x27d2f9}),_0x1bfcde(_0x6589de(0x332),{'className':'univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','children':_0x3d292f[_0x6589de(0x48c)](_0x9719ae=>_0x1bfcde(zi,{'config':_0x30d23d,'field':_0x9719ae,'onAdd':_0x40780a=>_0x39eee9(_0x1034ea=>Ki(_0x1034ea,_0x9719ae['id'],_0x40780a,_0x1034ea['getFieldCountByArea'](_0x40780a))),'onCheckedChange':_0x3eb886=>_0x39eee9(_0x5cd751=>{const _0xdc1ccf=_0x6589de;let _0x2a3bf9=_0x5cd751[_0xdc1ccf(0x310)](_0x9719ae['id']);if(!_0x3eb886){_0x2a3bf9[_0xdc1ccf(0x201)](_0xf7611a=>_0x5cd751[_0xdc1ccf(0x2c8)](_0xf7611a[_0xdc1ccf(0x48d)]()));return;}if(_0x2a3bf9[_0xdc1ccf(0x291)]===0x0){let _0x34cead=Ji(_0x9719ae)?_0x3881d5[_0xdc1ccf(0x290)]:_0x3881d5[_0xdc1ccf(0x1ba)];_0x5cd751[_0xdc1ccf(0x299)](_0x9719ae['id'],_0x34cead);}}),'onDragStart':()=>_0x3221d1({'kind':'source','id':_0x9719ae['id']})},_0x9719ae['id']))})]}),_0x1bfcde(_0x6589de(0x332),{'className':_0x6589de(0x22a),'children':Ii[_0x6589de(0x48c)](_0x1919eb=>_0x1bfcde(Vi,{'area':_0x1919eb['area'],'dropTarget':_0x18c0a2,'fields':_0x30d23d[_0x6589de(0x3b9)][_0x1919eb[_0x6589de(0x3d8)]],'label':_0xd98e8a['t'](_0x1919eb[_0x6589de(0x372)]),'snapshot':_0x30d23d[_0x6589de(0x3b9)],'onDragEnd':()=>{_0x3221d1(null),_0x367f12(null);},'onDragStart':_0x36d094=>_0x3221d1({'kind':'field','id':_0x36d094,'area':_0x1919eb[_0x6589de(0x3ba)]}),'onDragOver':_0x83978b=>_0x367f12({'area':_0x1919eb[_0x6589de(0x3ba)],'index':_0x83978b}),'onDrop':_0x8b679d=>_0xf810ca(_0x1919eb[_0x6589de(0x3ba)],_0x8b679d),'onFilter':_0x4220fb,'onMove':(_0x1143bd,_0x4995b2,_0x507c8f)=>_0x39eee9(_0x485050=>_0x485050[_0x6589de(0x3c2)](_0x1143bd,_0x4995b2,_0x507c8f)),'onRemove':_0x56be90=>_0x39eee9(_0x212ae3=>_0x212ae3[_0x6589de(0x2c8)](_0x56be90)),'onSettings':_0x27912f},_0x1919eb[_0x6589de(0x3ba)]))}),_0x311184&&_0x1bfcde(Ui,{'fieldId':_0x311184,'snapshot':_0x30d23d[_0x6589de(0x3b9)],'table':_0x3d4b8e,'onCancel':()=>_0x4220fb(null),'onCommit':(_0x4c1ca5,_0xbe8f08)=>{_0x39eee9(_0x3741b9=>{const _0x101a20=_0x44d8;let _0x39d69c=_0x3741b9['getDataFieldByTableId'](_0x311184),_0x4994e1=(_0x39d69c==null?void 0x0:_0x39d69c[_0x101a20(0x2a5)])??[];_0x3741b9[_0x101a20(0x212)](_0x311184,{'type':_0x38a435['ManualFilter'],'list':_0x4c1ca5,'isAll':_0x4c1ca5[_0x101a20(0x291)]===_0x4994e1[_0x101a20(0x291)]}),_0x3741b9[_0x101a20(0x191)](_0x311184,_0xbe8f08===void 0x0?void 0x0:{'type':_0xbe8f08});}),_0x4220fb(null);}},_0x311184),_0x2d32d9&&_0x1bfcde(Wi,{'field':_0x30d23d['pivot'][_0x6589de(0x433)][_0x2d32d9],'onCancel':()=>_0x27912f(null),'onCommit':(_0x29e6dd,_0x537628,_0x11bfe5)=>{_0x39eee9(_0x240ffa=>{const _0x56f0dd=_0x44d8;_0x240ffa['renameField'](_0x2d32d9,_0x29e6dd),_0x240ffa[_0x56f0dd(0x456)](_0x2d32d9,_0x537628),_0x240ffa['setFieldFormat'](_0x2d32d9,_0x11bfe5||void 0x0);}),_0x27912f(null);}},_0x2d32d9)]})})]});}function zi(_0x28cca5){const _0x35ae3e=_0x57c180;let {config:_0x5dc84c,field:_0x378501,onAdd:_0x3b1466,onCheckedChange:_0x2d4a04,onDragStart:_0x841b3d}=_0x28cca5,_0x3709b8=_0x3dc792(_0xc34a30),_0x19b7a0=[...Object['values'](_0x5dc84c[_0x35ae3e(0x3b9)][_0x35ae3e(0x1f0)]),...Object[_0x35ae3e(0x484)](_0x5dc84c[_0x35ae3e(0x3b9)][_0x35ae3e(0x433)])]['some'](_0x4061e5=>_0x4061e5[_0x35ae3e(0x215)]===_0x378501['id']),_0x2252d4=Ii['map'](_0x3859c3=>({'type':_0x35ae3e(0x224),'children':_0x3709b8['t'](Yi(_0x3859c3[_0x35ae3e(0x3ba)])),'onSelect':()=>_0x3b1466(_0x3859c3[_0x35ae3e(0x3ba)])}));return _0x3fc05f(_0x35ae3e(0x332),{'draggable':!0x1,'style':{'minHeight':0x30},'className':'univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','onDragStart':_0x841b3d,'children':[_0x1bfcde(_0x57ec08,{'checked':_0x19b7a0,'onChange':_0x135b5a=>_0x2d4a04(!!_0x135b5a)}),_0x1bfcde(Bi,{'field':_0x378501}),_0x1bfcde('span',{'className':_0x35ae3e(0x1ec),'children':_0x378501[_0x35ae3e(0x3aa)]}),_0x1bfcde(Jr,{'align':_0x35ae3e(0x29f),'items':_0x2252d4,'children':_0x1bfcde(_0x29df96,{'variant':_0x35ae3e(0x22e),'aria-label':_0x3709b8['t'](_0x35ae3e(0x478)),'children':_0x1bfcde(_0x39bc4e,{})})})]});}function Bi({field:_0x284101}){const _0x14adcf=_0x57c180;return Ji(_0x284101)?_0x1bfcde(_0x1ef1cd,{'className':_0x14adcf(0x2b2)}):_0x284101[_0x14adcf(0x498)]===_0x36d8a8[_0x14adcf(0x1ca)]||_0x284101['type']===_0x36d8a8[_0x14adcf(0x231)]||_0x284101['type']===_0x36d8a8[_0x14adcf(0x232)]?_0x1bfcde(_0x5ece4d,{'className':'univer-text-gray-400'}):_0x1bfcde(_0x427459,{'className':_0x14adcf(0x2b2)});}function Vi(_0x41a118){const _0x5dfb13=_0x57c180;let {area:_0x3e8eea,dropTarget:_0x3ed8e7,fields:_0x538ba6,label:_0x261362,snapshot:_0x344a14}=_0x41a118,_0x1105dd=_0x3dc792(_0xc34a30);return _0x3fc05f(_0x5dfb13(0x1b4),{'className':_0x3c6675(_0x5dfb13(0x19a),_0x1ba91b),'onDragOver':_0x2dd73f=>{const _0xb0f2c1=_0x5dfb13;_0x2dd73f[_0xb0f2c1(0x18d)](),_0x41a118[_0xb0f2c1(0x2ad)](_0x538ba6[_0xb0f2c1(0x291)]);},'onDrop':_0x3140f1=>{const _0x4ae1ee=_0x5dfb13;_0x3140f1[_0x4ae1ee(0x18d)](),_0x41a118['onDrop']((_0x3ed8e7==null?void 0x0:_0x3ed8e7[_0x4ae1ee(0x3ba)])===_0x3e8eea?_0x3ed8e7[_0x4ae1ee(0x44e)]:_0x538ba6[_0x4ae1ee(0x291)]);},'children':[_0x1bfcde(_0x5dfb13(0x332),{'className':_0x5dfb13(0x44c),'children':_0x261362}),_0x3fc05f('div',{'className':_0x5dfb13(0x28f),'children':[_0x538ba6['map']((_0x284a8a,_0x38c0ef)=>{const _0x1f271d=_0x5dfb13;let _0x4ca9e7=_0x344a14['dimension'][_0x284a8a]??_0x344a14[_0x1f271d(0x433)][_0x284a8a];if(!_0x4ca9e7)return null;let _0x1d9c42=(_0x3ed8e7==null?void 0x0:_0x3ed8e7['area'])===_0x3e8eea&&_0x3ed8e7[_0x1f271d(0x44e)]===_0x38c0ef;return _0x3fc05f(_0x1f271d(0x332),{'onDragOver':_0x29709e=>{const _0x300be2=_0x1f271d;_0x29709e[_0x300be2(0x18d)](),_0x29709e[_0x300be2(0x2be)]();let _0x4b62c5=_0x29709e[_0x300be2(0x2bc)][_0x300be2(0x213)]();_0x41a118['onDragOver'](_0x38c0ef+ +(_0x29709e[_0x300be2(0x2fc)]>_0x4b62c5['top']+_0x4b62c5['height']/0x2));},'onDrop':_0x2c499a=>{const _0x459862=_0x1f271d;_0x2c499a[_0x459862(0x18d)](),_0x2c499a[_0x459862(0x2be)](),_0x41a118['onDrop']((_0x3ed8e7==null?void 0x0:_0x3ed8e7['area'])===_0x3e8eea?_0x3ed8e7[_0x459862(0x44e)]:_0x38c0ef);},'children':[_0x1d9c42&&_0x1bfcde('div',{'className':_0x1f271d(0x1b5)}),_0x1bfcde(Hi,{'area':_0x3e8eea,'field':_0x4ca9e7,'onDragEnd':_0x41a118['onDragEnd'],'onDragStart':()=>_0x41a118[_0x1f271d(0x48e)](_0x284a8a),'onFilter':()=>_0x41a118[_0x1f271d(0x206)](_0x284a8a),'onMove':_0x10b8fe=>_0x41a118[_0x1f271d(0x45a)](_0x284a8a,_0x10b8fe,0x0),'onMoveUp':_0x38c0ef>0x0?()=>_0x41a118[_0x1f271d(0x45a)](_0x284a8a,_0x3e8eea,_0x38c0ef-0x1):void 0x0,'onMoveDown':_0x38c0ef<_0x538ba6[_0x1f271d(0x291)]-0x1?()=>_0x41a118['onMove'](_0x284a8a,_0x3e8eea,_0x38c0ef+0x1):void 0x0,'onRemove':()=>_0x41a118[_0x1f271d(0x436)](_0x284a8a),'onSettings':()=>_0x41a118['onSettings'](_0x284a8a)})]},_0x284a8a);}),(_0x3ed8e7==null?void 0x0:_0x3ed8e7[_0x5dfb13(0x3ba)])===_0x3e8eea&&_0x3ed8e7[_0x5dfb13(0x44e)]===_0x538ba6['length']&&_0x1bfcde(_0x5dfb13(0x332),{'className':_0x5dfb13(0x1b5)}),_0x538ba6[_0x5dfb13(0x291)]===0x0&&_0x1bfcde(_0x5dfb13(0x332),{'className':_0x5dfb13(0x26b),'children':_0x1105dd['t']('bases-dashboard-ui.pivot.sourceFields')})]})]});}function Hi(_0x203357){const _0x3217d4=_0x57c180;let _0x550a44=_0x3dc792(_0xc34a30),_0x1ab316=_0x203357[_0x3217d4(0x3ba)]===_0x3881d5['Value'],_0xc61354=[...Ii[_0x3217d4(0x449)](_0x50f800=>_0x50f800[_0x3217d4(0x3ba)]!==_0x203357[_0x3217d4(0x3ba)])['map'](_0x303ec9=>({'type':_0x3217d4(0x224),'children':_0x550a44['t'](Yi(_0x303ec9['area'])),'onSelect':()=>_0x203357[_0x3217d4(0x45a)](_0x303ec9[_0x3217d4(0x3ba)])})),..._0x203357['onMoveUp']?[{'type':_0x3217d4(0x224),'children':_0x550a44['t']('bases-dashboard-ui.mobile.moveUp'),'onSelect':_0x203357[_0x3217d4(0x35c)]}]:[],..._0x203357['onMoveDown']?[{'type':'item','children':_0x550a44['t'](_0x3217d4(0x2cf)),'onSelect':_0x203357['onMoveDown']}]:[],{'type':_0x3217d4(0x224),'children':_0x550a44['t'](_0x3217d4(0x2f2)),'onSelect':_0x203357[_0x3217d4(0x436)]},{'type':'item','children':_0x550a44['t'](_0x1ab316?_0x3217d4(0x478):_0x3217d4(0x40f)),'onSelect':_0x1ab316?_0x203357['onSettings']:_0x203357[_0x3217d4(0x206)]}];return _0x3fc05f(_0x3217d4(0x332),{'draggable':!0x1,'style':{'minHeight':0x30},'className':'univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','onDragEnd':_0x203357[_0x3217d4(0x446)],'onDragStart':_0x203357[_0x3217d4(0x48e)],'children':[_0x1bfcde(_0x79306f,{'title':_0x203357['field'][_0x3217d4(0x363)],'children':_0x1bfcde(_0x3217d4(0x45e),{'className':_0x3217d4(0x1ec),'children':_0x203357[_0x3217d4(0x32e)]['displayName']})}),_0x1bfcde(Jr,{'align':_0x3217d4(0x29f),'items':_0xc61354,'children':_0x1bfcde(_0x29df96,{'variant':_0x3217d4(0x22e),'aria-label':_0x550a44['t'](_0x3217d4(0x478)),'children':_0x1bfcde(_0x39bc4e,{})})})]});}function Ui(_0xb96233){const _0x4e3567=_0x57c180;var _0x1f9f34,_0x2a5f25;let _0x984ec0=_0x3dc792(_0xc34a30),{format:_0x199f28,items:_0x238389,itemTypes:_0x3ff005}=_0x4561c2(()=>{const _0xa4d4bf=_0x44d8;let _0x32b3ed=_0x4ae6f2(_0xb96233['table'],_0xb96233[_0xa4d4bf(0x434)]);try{let _0x3f6094=_0x32b3ed[_0xa4d4bf(0x457)](_0xb96233[_0xa4d4bf(0x383)]);return{'format':_0x3f6094==null?void 0x0:_0x3f6094[_0xa4d4bf(0x23c)],'items':[...(_0x3f6094==null?void 0x0:_0x3f6094[_0xa4d4bf(0x2a5)])??[]],'itemTypes':[...(_0x3f6094==null?void 0x0:_0x3f6094[_0xa4d4bf(0x255)])??[]]};}finally{_0x32b3ed['dispose']();}},[_0xb96233[_0x4e3567(0x383)],_0xb96233[_0x4e3567(0x434)],_0xb96233[_0x4e3567(0x2c6)]]),_0x36fa40=(_0x1f9f34=_0xb96233[_0x4e3567(0x434)][_0x4e3567(0x1f0)][_0xb96233['fieldId']])==null?void 0x0:_0x1f9f34['filterInfo'],[_0x357c79,_0x1872af]=_0x155c41((_0x36fa40==null?void 0x0:_0x36fa40[_0x4e3567(0x498)])===_0x38a435['ManualFilter']?_0x36fa40[_0x4e3567(0x368)]:_0x238389),[_0x4dd98a,_0x4d9b44]=_0x155c41((_0x2a5f25=_0xb96233[_0x4e3567(0x434)][_0x4e3567(0x1f0)][_0xb96233['fieldId']])==null||(_0x2a5f25=_0x2a5f25['sortInfo'])==null?void 0x0:_0x2a5f25[_0x4e3567(0x498)]),_0x5177dd=_0x357c79[_0x4e3567(0x291)]===_0x238389['length'],_0x4763c9=_0x3fc05f(_0x4e3567(0x1b4),{'className':_0x3c6675('univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900',_0x1ba91b),'children':[_0x1bfcde(_0x4e3567(0x332),{'className':_0x4e3567(0x3eb),'children':_0x984ec0['t'](_0x4e3567(0x40f))}),_0x3fc05f(_0x4e3567(0x332),{'className':'univer-flex','children':[_0x3fc05f(_0x29df96,{'className':_0x4e3567(0x301),'variant':_0x4dd98a===_0x217088[_0x4e3567(0x4a1)]?_0x4e3567(0x230):_0x4e3567(0x450),'onClick':()=>_0x4d9b44(_0x217088[_0x4e3567(0x4a1)]),'children':[_0x1bfcde(_0x4b54c1,{}),_0x984ec0['t'](_0x4e3567(0x32b))]}),_0x3fc05f(_0x29df96,{'className':_0x4e3567(0x301),'variant':_0x4dd98a===_0x217088['descending']?_0x4e3567(0x230):_0x4e3567(0x450),'onClick':()=>_0x4d9b44(_0x217088[_0x4e3567(0x1d2)]),'children':[_0x1bfcde(_0x29065b,{}),_0x984ec0['t'](_0x4e3567(0x2b6))]})]}),_0x3fc05f(_0x4e3567(0x332),{'className':_0x4e3567(0x2d7),'children':[_0x3fc05f(_0x4e3567(0x372),{'className':_0x4e3567(0x3ee),'children':[_0x1bfcde(_0x57ec08,{'checked':_0x5177dd,'indeterminate':_0x357c79[_0x4e3567(0x291)]>0x0&&!_0x5177dd,'onChange':()=>_0x1872af(_0x5177dd?[]:_0x238389)}),_0x984ec0['t'](_0x4e3567(0x3d2))]}),_0x238389['map']((_0x4695fe,_0x4bf829)=>_0x3fc05f(_0x4e3567(0x372),{'className':_0x4e3567(0x3ee),'children':[_0x1bfcde(_0x57ec08,{'checked':_0x357c79[_0x4e3567(0x300)](_0x4695fe),'onChange':()=>_0x1872af(_0x369582=>_0x369582[_0x4e3567(0x300)](_0x4695fe)?_0x369582[_0x4e3567(0x449)](_0x4fd2cc=>_0x4fd2cc!==_0x4695fe):[..._0x369582,_0x4695fe])}),_0x1bfcde(_0x4e3567(0x45e),{'className':_0x4e3567(0x420),'children':qi(_0x4695fe,_0x3ff005[_0x4bf829],_0x199f28,_0x984ec0['t'](_0x4e3567(0x373)))})]},_0x4695fe))]}),_0x3fc05f('div',{'className':_0x4e3567(0x179),'children':[_0x1bfcde(_0x29df96,{'variant':_0x4e3567(0x2b4),'onClick':()=>_0xb96233[_0x4e3567(0x3f6)](_0x238389,_0x4dd98a),'children':_0x984ec0['t'](_0x4e3567(0x2da))}),_0x3fc05f(_0x4e3567(0x332),{'className':_0x4e3567(0x169),'children':[_0x1bfcde(_0x29df96,{'onClick':_0xb96233['onCancel'],'children':_0x984ec0['t']('bases-dashboard-ui.pivot.cancel')}),_0x1bfcde(_0x29df96,{'variant':_0x4e3567(0x230),'disabled':_0x357c79[_0x4e3567(0x291)]===0x0,'onClick':()=>_0xb96233[_0x4e3567(0x3f6)](_0x357c79,_0x4dd98a),'children':_0x984ec0['t'](_0x4e3567(0x27b))})]})]})]});return _0x1bfcde(_0x5ae53d,{'title':_0x984ec0['t'](_0x4e3567(0x40f)),'onClose':_0xb96233[_0x4e3567(0x3a1)],'children':_0x4763c9});}function Wi(_0x39ba29){const _0x38355e=_0x57c180;var _0x3e00d5,_0x52c842,_0x50b7a5;let _0x525010=_0x3dc792(_0xc34a30),[_0xc54177,_0x29b659]=_0x155c41(((_0x3e00d5=_0x39ba29[_0x38355e(0x32e)])==null?void 0x0:_0x3e00d5[_0x38355e(0x363)])??''),[_0x6f6eca,_0x558207]=_0x155c41(((_0x52c842=_0x39ba29['field'])==null?void 0x0:_0x52c842[_0x38355e(0x334)])??_0x48c6be[_0x38355e(0x45d)]),[_0x16871e,_0x44f6cc]=_0x155c41(((_0x50b7a5=_0x39ba29[_0x38355e(0x32e)])==null?void 0x0:_0x50b7a5[_0x38355e(0x23c)])??'');if(!_0x39ba29['field'])return null;let _0x5123a3=_0x3fc05f(_0x38355e(0x1b4),{'className':_0x3c6675(_0x38355e(0x188),_0x1ba91b),'children':[_0x1bfcde('div',{'className':_0x38355e(0x381),'children':_0x525010['t'](_0x38355e(0x478))}),_0x3fc05f(_0x38355e(0x372),{'className':_0x38355e(0x41f),'children':[_0x525010['t']('bases-dashboard-ui.pivot.displayName'),_0x1bfcde(_0x225487,{'value':_0xc54177,'onChange':_0x29b659})]}),_0x3fc05f(_0x38355e(0x372),{'className':_0x38355e(0x41f),'children':[_0x525010['t'](_0x38355e(0x46b)),_0x1bfcde(qr,{'value':String(_0x6f6eca),'options':Li['map'](_0x36f5bc=>({'value':String(_0x36f5bc[_0x38355e(0x435)]),'label':_0x525010['t'](_0x36f5bc[_0x38355e(0x1e5)])})),'onChange':_0x11c0ad=>{const _0x181ec9=_0x38355e;let _0x1cd355=Li[_0x181ec9(0x34b)](_0x5746af=>String(_0x5746af[_0x181ec9(0x435)])===_0x11c0ad);_0x1cd355&&_0x558207(_0x1cd355['value']);}})]}),_0x3fc05f('label',{'className':_0x38355e(0x41f),'children':[_0x525010['t']('bases-dashboard-ui.pivot.numberFormat'),_0x1bfcde(_0x225487,{'value':_0x16871e,'onChange':_0x44f6cc})]}),_0x3fc05f(_0x38355e(0x332),{'className':_0x38355e(0x256),'children':[_0x1bfcde(_0x29df96,{'onClick':_0x39ba29[_0x38355e(0x3a1)],'children':_0x525010['t'](_0x38355e(0x357))}),_0x1bfcde(_0x29df96,{'variant':_0x38355e(0x230),'disabled':!_0xc54177[_0x38355e(0x3ae)](),'onClick':()=>_0x39ba29[_0x38355e(0x3f6)](_0xc54177[_0x38355e(0x3ae)](),_0x6f6eca,_0x16871e),'children':_0x525010['t'](_0x38355e(0x27b))})]})]});return _0x1bfcde(_0x5ae53d,{'title':_0x525010['t']('bases-dashboard-ui.pivot.fieldSettings'),'onClose':_0x39ba29[_0x38355e(0x3a1)],'children':_0x5123a3});}function Gi(_0xe24f27){const _0x222bf8=_0x57c180;let {config:_0x2d9e07,commit:_0xf6748f}=_0xe24f27,_0x432540=_0x3dc792(_0xc34a30),_0x38526a=_0x2d9e07[_0x222bf8(0x3b9)]['options'],_0x40a91=_0x50ac80=>_0xf6748f(_0x21bce1=>_0x21bce1[_0x222bf8(0x40b)]({..._0x21bce1[_0x222bf8(0x2dd)](),..._0x50ac80}));return _0x3fc05f(_0x222bf8(0x332),{'className':_0x222bf8(0x1fa),'children':[_0x3fc05f(_0x222bf8(0x372),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x432540['t']('bases-dashboard-ui.pivot.layout'),_0x1bfcde(qr,{'className':_0x222bf8(0x2ea),'value':String(_0x2d9e07[_0x222bf8(0x3b9)][_0x222bf8(0x424)]),'options':[{'value':String(_0x363820[_0x222bf8(0x347)]),'label':_0x432540['t']('bases-dashboard-ui.pivot.layoutTabular')},{'value':String(_0x363820[_0x222bf8(0x1c4)]),'label':_0x432540['t'](_0x222bf8(0x25a))},{'value':String(_0x363820[_0x222bf8(0x156)]),'label':_0x432540['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x2001d4=>{const _0x2c86c8=_0x222bf8;let _0xb22bcc=[_0x363820[_0x2c86c8(0x347)],_0x363820[_0x2c86c8(0x1c4)],_0x363820[_0x2c86c8(0x156)]][_0x2c86c8(0x34b)](_0x3c844f=>String(_0x3c844f)===_0x2001d4);_0xb22bcc!==void 0x0&&_0xf6748f(_0x190bf8=>_0x190bf8[_0x2c86c8(0x429)](_0xb22bcc));}})]}),[{'key':_0x222bf8(0x1c1),'label':_0x222bf8(0x226),'defaultValue':!0x1},{'key':'repeatColLabels','label':_0x222bf8(0x252),'defaultValue':!0x1},{'key':_0x222bf8(0x497),'label':_0x222bf8(0x298),'defaultValue':!0x0},{'key':_0x222bf8(0x1cb),'label':_0x222bf8(0x385),'defaultValue':!0x0},{'key':_0x222bf8(0x35d),'label':_0x222bf8(0x2ba),'defaultValue':!0x0},{'key':_0x222bf8(0x458),'label':_0x222bf8(0x437),'defaultValue':!0x0}][_0x222bf8(0x48c)](_0x4e34be=>_0x3fc05f('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x1bfcde(_0x57ec08,{'checked':!!(_0x38526a[_0x4e34be[_0x222bf8(0x3d8)]]??_0x4e34be[_0x222bf8(0x1db)]),'disabled':_0x4e34be[_0x222bf8(0x3d8)]===_0x222bf8(0x1c1)&&_0x2d9e07[_0x222bf8(0x3b9)][_0x222bf8(0x424)]===_0x363820[_0x222bf8(0x1c4)],'onChange':_0x75c90f=>_0x40a91({[_0x4e34be[_0x222bf8(0x3d8)]]:!!_0x75c90f})}),_0x432540['t'](_0x4e34be['label'])]},_0x4e34be['key'])),_0x2d9e07[_0x222bf8(0x3b9)][_0x222bf8(0x424)]===_0x363820[_0x222bf8(0x156)]&&_0x3fc05f(_0x222bf8(0x372),{'className':_0x222bf8(0x3e7),'children':[_0x432540['t'](_0x222bf8(0x3e9)),_0x1bfcde(qr,{'className':_0x222bf8(0x2ea),'value':String(_0x38526a[_0x222bf8(0x37f)]??_0x2fcd7c['top']),'options':[{'value':String(_0x2fcd7c[_0x222bf8(0x2db)]),'label':_0x432540['t']('bases-dashboard-ui.pivot.top')},{'value':String(_0x2fcd7c[_0x222bf8(0x2f7)]),'label':_0x432540['t'](_0x222bf8(0x41e))}],'onChange':_0x33cc03=>{const _0x5d636a=_0x222bf8;let _0x13d92b=[_0x2fcd7c['top'],_0x2fcd7c[_0x5d636a(0x2f7)]][_0x5d636a(0x34b)](_0x41c0c7=>String(_0x41c0c7)===_0x33cc03);_0x13d92b!==void 0x0&&_0x40a91({'rowSubtotalPosition':_0x13d92b});}})]}),_0x3fc05f(_0x222bf8(0x372),{'className':_0x222bf8(0x3e7),'children':[_0x432540['t'](_0x222bf8(0x3d7)),_0x1bfcde(qr,{'className':'univer-w-36','value':String(_0x2d9e07[_0x222bf8(0x3b9)][_0x222bf8(0x46f)]===_0xb31626[_0x222bf8(0x27a)]?_0xb31626[_0x222bf8(0x438)]:_0x2d9e07[_0x222bf8(0x3b9)][_0x222bf8(0x46f)]),'options':[{'value':String(_0xb31626['Column']),'label':_0x432540['t']('bases-dashboard-ui.pivot.columns')},{'value':String(_0xb31626[_0x222bf8(0x1ba)]),'label':_0x432540['t'](_0x222bf8(0x1d5))}],'onChange':_0x17b3a4=>{const _0x117f39=_0x222bf8;let _0x5edead=[_0xb31626['Column'],_0xb31626[_0x117f39(0x1ba)]][_0x117f39(0x34b)](_0x1d2f83=>String(_0x1d2f83)===_0x17b3a4);_0x5edead!==void 0x0&&_0xf6748f(_0x5d4a5d=>_0x5d4a5d[_0x117f39(0x428)](_0x5edead,_0x5d4a5d['getValueIndex']()<0x0?0x0:_0x5d4a5d[_0x117f39(0x388)]()));}})]}),_0x3fc05f(_0x222bf8(0x372),{'className':_0x222bf8(0x3e7),'children':[_0x432540['t'](_0x222bf8(0x27f)),_0x1bfcde(_0x142183,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x38526a[_0x222bf8(0x157)]??0x1,'onChange':_0x15e5a1=>{const _0xd066b0=_0x222bf8;let _0x3eecbd=Number(_0x15e5a1);Number[_0xd066b0(0x281)](_0x3eecbd)&&_0x3eecbd>=0x1&&_0x40a91({'pageWrap':_0x3eecbd});}})]}),_0x3fc05f(_0x222bf8(0x372),{'className':_0x222bf8(0x3e7),'children':[_0x432540['t'](_0x222bf8(0x253)),_0x1bfcde(qr,{'className':'univer-w-36','value':String(_0x38526a[_0x222bf8(0x371)]??!0x1),'options':[{'value':_0x222bf8(0x1d1),'label':_0x432540['t'](_0x222bf8(0x495))},{'value':'true','label':_0x432540['t']('bases-dashboard-ui.pivot.acrossThenDown')}],'onChange':_0x56933b=>_0x40a91({'pageOverThenDown':_0x56933b===_0x222bf8(0x44f)})})]})]});}function Ki(_0x1fab6b,_0x1a08b1,_0x1ee1cf,_0x29d53c){const _0x3b79e3=_0x57c180;let _0x1fa0f0=_0x1fab6b[_0x3b79e3(0x310)](_0x1a08b1)[_0x3b79e3(0x34b)](_0x59983c=>_0x1fab6b[_0x3b79e3(0x476)](_0x59983c[_0x3b79e3(0x48d)]())[_0x3b79e3(0x3ba)]!==_0x3881d5['Value']);if(_0x1ee1cf!==_0x3881d5[_0x3b79e3(0x290)]&&_0x1fa0f0){_0x1fab6b['updateFieldPosition'](_0x1fa0f0['getId'](),_0x1ee1cf,_0x29d53c);return;}_0x1fab6b[_0x3b79e3(0x299)](_0x1a08b1,_0x1ee1cf,_0x29d53c);}function qi(_0x257d77,_0xb75e8b,_0xca5606,_0x491866){const _0x40cde9=_0x57c180;return _0xb75e8b===_0x2be849[_0x40cde9(0x280)]?_0x491866:_0xb75e8b===_0x2be849['date']&&_0xca5606?_0x80f5c8[_0x40cde9(0x23c)](_0xca5606,Number(_0x257d77)):_0x257d77;}function Ji(_0x1565c9){const _0x36a4d1=_0x57c180;return _0x1565c9['type']===_0x36d8a8[_0x36a4d1(0x3fb)]||_0x1565c9[_0x36a4d1(0x498)]===_0x36d8a8[_0x36a4d1(0x218)]||_0x1565c9[_0x36a4d1(0x498)]===_0x36d8a8[_0x36a4d1(0x39d)]||_0x1565c9[_0x36a4d1(0x498)]===_0x36d8a8[_0x36a4d1(0x30a)];}function Yi(_0x2cbed5){const _0x5f1258=_0x57c180;switch(_0x2cbed5){case _0x3881d5[_0x5f1258(0x1ba)]:return _0x5f1258(0x2d3);case _0x3881d5[_0x5f1258(0x438)]:return _0x5f1258(0x444);case _0x3881d5['Value']:return'bases-dashboard-ui.pivot.addToValue';default:return _0x5f1258(0x18e);}}function Xi({config:_0x16724e,onChange:_0x4f58ee,runtime:_0x4f76ac,table:_0x4f4610}){const _0x36224b=_0x57c180;let _0x367cb1=_0x3dc792(_0xc34a30),[_0x2d1a70,_0x4c309f]=_0x155c41(_0x36224b(0x49c));return _0x3fc05f(_0x36224b(0x351),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x1bfcde(_0x2e9f58,{'ariaLabel':_0x367cb1['t'](_0x36224b(0x462)),'className':_0x36224b(0x2e5),'items':[{'label':_0x367cb1['t'](_0x36224b(0x19e)),'panelId':_0x36224b(0x469),'value':_0x36224b(0x49c)},{'label':_0x367cb1['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'panelId':_0x36224b(0x21c),'value':_0x36224b(0x3b9)}],'value':_0x2d1a70,'variant':_0x36224b(0x355),'onChange':_0x4c309f}),_0x1bfcde(_0x36224b(0x332),{'className':_0x36224b(0x16e),'children':_0x2d1a70===_0x36224b(0x49c)?_0x4f76ac&&_0x1bfcde(Qr,{'config':_0x16724e,'runtime':_0x4f76ac,'tableName':_0x4f4610[_0x36224b(0x3aa)],'onChange':_0x4f58ee}):_0x1bfcde(Ri,{'config':_0x16724e,'table':_0x4f4610,'onChange':_0x4f58ee})})]});}function Zi({tableId:_0x12dc61,unitId:_0x5c2ad4,viewId:_0x5935b9}){const _0x1e660e=_0x57c180;let [_0x19ae26,_0x2aa3a4]=_0x155c41(!0x1),_0x2f559f=_0x3dc792(_0x20bf70),_0x307b23=_0x3dc792(_0xfa1040),_0x346e22=_0x3dc792(_0xa0671c),_0x36f2bc=_0x3dc792(_0xc34a30),_0x23e841=_0x3dc792(_0x534e77),[_0x190369,_0x16f050]=_0x155c41(null),[_0x15ed38,_0x27e526]=_0x155c41(null),_0x29d0ae=_0x26ca56(_0x1e660e(0x34f)+_0x2bbf35(0x8)),[_0x2ac835,_0x1a0ae5]=_0x155c41(!0x1),_0x5e9893=_0x307b23[_0x1e660e(0x2ee)](_0x5c2ad4,_0x1be7ab['UNIVER_BASE']),_0x14ec7a=_0x5e9893==null?void 0x0:_0x5e9893[_0x1e660e(0x257)]()[_0x1e660e(0x47e)][_0x12dc61],_0x221003=_0x14ec7a==null?void 0x0:_0x14ec7a[_0x1e660e(0x46e)][_0x5935b9],_0x5e0216=Qi(_0x221003),_0x35638b=_r(_0x5c2ad4,_0x12dc61,_0x5935b9);if(_0x5a872b(()=>{const _0x53890a=_0x1e660e;if(!_0x5e0216)return;let _0x1304fc=_0x29d0ae['current'];return _0x23e841[_0x53890a(0x30d)](_0x1304fc,{'unitId':_0x5c2ad4,'tableId':_0x12dc61,'viewId':_0x5935b9,'filters':[]}),()=>{const _0x2d5312=_0x53890a;_0x23e841[_0x2d5312(0x20c)](_0x5c2ad4,_0x1304fc);};},[_0x5e0216,_0x23e841,_0x12dc61,_0x5c2ad4,_0x5935b9]),_0x5a872b(()=>{const _0x15a897=_0x1e660e;if(!Qi(_0x221003))return;let _0x377227=!0x0,_0x299710={'unitId':_0x5c2ad4,'tableId':_0x12dc61,'viewId':_0x5935b9,'filters':[_0x221003[_0x15a897(0x449)]??null]};return _0x23e841[_0x15a897(0x271)](_0x5c2ad4,_0x29d0ae[_0x15a897(0x18a)],_0x299710)[_0x15a897(0x2bd)](_0x33d618=>{const _0x46343b=_0x15a897;_0x377227&&_0x33d618&&(_0x16f050(_0x33d618),_0x27e526(_0x23e841[_0x46343b(0x1e0)](_0x5c2ad4,_0x29d0ae[_0x46343b(0x18a)])??null),_0x1a0ae5(!0x1));})[_0x15a897(0x2cb)](_0x277528=>{_0x346e22['error']('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x277528),_0x377227&&(_0x16f050(null),_0x1a0ae5(!0x0));}),()=>{_0x377227=!0x1;};},[_0x346e22,_0x23e841,_0x12dc61,_0x5c2ad4,_0x221003,_0x5935b9]),!_0x14ec7a||!Qi(_0x221003))return null;let _0x4962bc=_0x23e841[_0x1e660e(0x1e0)](_0x5c2ad4,_0x29d0ae['current'])===_0x15ed38?_0x15ed38:null,_0x3ec0c5=_0x190369?_0x3fc05f('div',{'className':'univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','style':{'gridTemplateRows':_0x221003[_0x1e660e(0x163)]['displayMode']===_0x1e660e(0x417)?_0x1e660e(0x30b):_0x1e660e(0x3f0)},'children':[_0x221003[_0x1e660e(0x163)]['displayMode']!==_0x1e660e(0x2c6)&&_0x4962bc&&_0x1bfcde(_0x1e660e(0x332),{'className':_0x1e660e(0x3c6),'children':_0x1bfcde(Ir,{'isRowDirection':_0x143525(_0x221003[_0x1e660e(0x163)][_0x1e660e(0x49c)][_0x1e660e(0x3b5)]),'runtime':_0x4962bc})}),_0x221003['config'][_0x1e660e(0x36d)]!==_0x1e660e(0x49c)&&_0x1bfcde(_0x1e660e(0x332),{'className':'univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':_0x1bfcde(ki,{'pivot':_0x221003['config'][_0x1e660e(0x3b9)],'view':_0x190369[_0x1e660e(0x24b)]})})]}):_0x1bfcde(_0x1e660e(0x332),{'className':_0x1e660e(0x282),'children':_0x2ac835?_0x36f2bc['t'](_0x1e660e(0x24c)):_0x36f2bc['t'](_0x1e660e(0x38c))}),_0x54910c=_0x1bfcde(Xi,{'config':_0x221003[_0x1e660e(0x163)],'runtime':_0x4962bc,'table':_0x14ec7a,'onChange':_0x40cf58=>{const _0x276941=_0x1e660e;_0x307b23[_0x276941(0x350)](_0x5c2ad4),_0x307b23[_0x276941(0x1e9)](_0x5c2ad4),_0x2f559f['executeCommand'](_0x26095f['id'],{'unitId':_0x5c2ad4,'tableId':_0x12dc61,'viewId':_0x5935b9,'patch':_0x40cf58})[_0x276941(0x2cb)](_0x1553d6=>_0x346e22[_0x276941(0x1d0)](_0x276941(0x40a),_0x1553d6));}});return _0x1bfcde(Kr,{'children':_0x3fc05f(_0x1e660e(0x332),{'className':_0x1e660e(0x279),'children':[_0x35638b&&_0x1bfcde(_0x29df96,{'onClick':()=>_0x2aa3a4(!0x0),'children':_0x36f2bc['t']('bases-dashboard-ui.pivot.chartConfiguration')}),_0x1bfcde(_0x1e660e(0x332),{'className':_0x1e660e(0x398),'children':_0x3ec0c5}),_0x35638b&&_0x19ae26&&_0x1bfcde(_0x5ae53d,{'title':_0x36f2bc['t'](_0x1e660e(0x462)),'onClose':()=>_0x2aa3a4(!0x1),'children':_0x54910c})]})});}function Qi(_0xe5a9b4){const _0x596f8a=_0x57c180;return(_0xe5a9b4==null?void 0x0:_0xe5a9b4[_0x596f8a(0x498)])===_0x4e046d[_0x596f8a(0x496)]&&typeof _0xe5a9b4['config']==_0x596f8a(0x177)&&_0xe5a9b4[_0x596f8a(0x163)]!==null&&_0x596f8a(0x3b9)in _0xe5a9b4[_0x596f8a(0x163)]&&_0x596f8a(0x49c)in _0xe5a9b4[_0x596f8a(0x163)]&&'displayMode'in _0xe5a9b4[_0x596f8a(0x163)];}let $i=class extends _0x7c5363{constructor(_0x106e08,_0xd73dcc,_0x5cb110,_0x30b5c8,_0x149236,_0xc59c8){const _0x1d1a29=_0x57c180;super(),this[_0x1d1a29(0x395)](_0xd73dcc[_0x1d1a29(0x4a0)]({'type':_0x4e046d[_0x1d1a29(0x496)],'renderMode':'dom','icon':_0x26e878,'component':Zi,'menu':{get 'label'(){const _0x171d97=_0x1d1a29;return _0xc59c8['t'](_0x171d97(0x462));},get 'description'(){return _0xc59c8['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){const _0x457da4=_0x1d1a29;return _0xc59c8['t'](_0x457da4(0x2c1));}}})),this[_0x1d1a29(0x395)](_0x106e08[_0x1d1a29(0x4a0)](ea(_0x5cb110,_0x30b5c8,_0x149236,_0xc59c8)));}};$i=Or([Y(0x0,_0x5135cb),Y(0x1,_0x452fc8),Y(0x2,_0xfb26ea(_0x1e99fb)),Y(0x3,_0x20bf70),Y(0x4,_0x31dc6c),Y(0x5,_0xfb26ea(_0xc34a30))],$i);function ea(_0x23c8b5,_0x161677,_0x2a3c81,_0xc2f880){const _0xd049c7=_0x57c180;return{'change$':_0x2391b4(_0x23c8b5[_0xd049c7(0x468)],_0x2a3c81['permissionPointUpdate$']),'component':bi,get 'labels'(){const _0x22e649=_0xd049c7;return{'add':_0xc2f880['t']('bases-dashboard-ui.dashboard.add'),'configure':_0x9bbcf2=>_0xc2f880['t'](_0x22e649(0x27c),_0x9bbcf2),'delete':_0xc2f880['t'](_0x22e649(0x487)),'new':_0xc2f880['t']('bases-dashboard-ui.dashboard.new'),'rename':_0xc2f880['t'](_0x22e649(0x2e1)),'search':_0xc2f880['t']('bases-dashboard-ui.dashboard.search'),'section':_0xc2f880['t'](_0x22e649(0x46d))};},'getItems':_0x105222=>{const _0x41fd67=_0xd049c7;let _0xb3d95d=_0x23c8b5[_0x41fd67(0x475)](_0x105222);return _0xb3d95d[_0x41fd67(0x1e8)][_0x41fd67(0x21e)](_0x459fa5=>{const _0x329c1c=_0x41fd67;let _0x5a8848=_0xb3d95d[_0x329c1c(0x44a)][_0x459fa5];return _0x5a8848?[{'id':_0x5a8848['id'],'name':_0x5a8848[_0x329c1c(0x3aa)],'readonly':!_0x1377c4(_0x2a3c81,_0x105222,_0x5a8848['id'])}]:[];});},'create':async _0x3c0d85=>{const _0x35bbbe=_0xd049c7;let _0x321b8a=_0x23c8b5[_0x35bbbe(0x475)](_0x3c0d85),_0x5ac202=_0x35bbbe(0x38a)+_0x2bbf35(0x8),_0x142725=ta(_0x321b8a[_0x35bbbe(0x1e8)]['flatMap'](_0x59d075=>{const _0x4ecf57=_0x35bbbe;let _0x5ee1f9=_0x321b8a[_0x4ecf57(0x44a)][_0x59d075];return _0x5ee1f9?[_0x5ee1f9[_0x4ecf57(0x3aa)]]:[];}),_0x3682ac=>_0xc2f880['t'](_0x35bbbe(0x423),String(_0x3682ac)));return await _0x161677[_0x35bbbe(0x3fa)](_0x2a269b['id'],{'unitId':_0x3c0d85,'dashboard':{'id':_0x5ac202,'name':_0x142725,'widgetOrder':[],'widgets':{}}})?_0x5ac202:null;},'rename':async(_0x1a8229,_0x886866,_0xbf1244)=>{const _0xa92f77=_0xd049c7;let _0x3f3612=_0x23c8b5['getDashboard'](_0x1a8229,_0x886866);return!!(_0x3f3612&&await _0x161677[_0xa92f77(0x3fa)](_0x16ed85['id'],{'unitId':_0x1a8229,'dashboard':{..._0x3f3612,'name':_0xbf1244}}));},'remove':(_0x565719,_0x4d7166)=>_0x161677[_0xd049c7(0x3fa)](_0x452258['id'],{'unitId':_0x565719,'dashboardId':_0x4d7166})};}function ta(_0x1ca668,_0x183e5d){const _0x2e453f=_0x57c180;let _0x712abe=new Set(_0x1ca668),_0x1e7977=_0x712abe[_0x2e453f(0x3cf)]+0x1,_0x35f880=_0x183e5d(_0x1e7977);for(;_0x712abe[_0x2e453f(0x220)](_0x35f880);)_0x1e7977+=0x1,_0x35f880=_0x183e5d(_0x1e7977);return _0x35f880;}let na=class extends _0x239fa2{constructor(_0x30c445=hr,_0x354030,_0x5d8723){const _0x336fe4=_0x57c180;super(),this['_config']=_0x30c445,this['_injector']=_0x354030,this[_0x336fe4(0x258)]=_0x5d8723;let {..._0x40c945}=_0x50ef5d({},hr,this['_config']);this[_0x336fe4(0x258)][_0x336fe4(0x211)](mr,_0x40c945);}[_0x57c180(0x1ae)](){const _0x2c2541=_0x57c180;this[_0x2c2541(0x159)]['add']([kr]),this[_0x2c2541(0x159)][_0x2c2541(0x3b3)]([Gr]),this[_0x2c2541(0x159)][_0x2c2541(0x3b3)]([$i]);}[_0x57c180(0x41c)](){const _0x3d4a7c=_0x57c180;_0x5e38a1(this[_0x3d4a7c(0x159)],[[kr],[Gr],[$i]]);}};Pr(na,'type',_0x1be7ab[_0x57c180(0x360)]),Pr(na,_0x57c180(0x346),'BASE_DASHBOARD_UI_PLUGIN'),Pr(na,_0x57c180(0x186),fr),Pr(na,_0x57c180(0x499),pr),na=Or([_0x9eb0d5(_0x187023,_0x398c3a,_0x305f36,_0x15321a,_0x379239,_0x42b4c7),Y(0x1,_0xfb26ea(_0x3fc728)),Y(0x2,_0x19da82)],na);function ra(_0x1bbbdc,_0x43d5ab,_0x5b6278,_0x642232){const _0x11fd4c=_0x57c180;let _0x2e7295={..._0x1bbbdc};if(_0x43d5ab[_0x11fd4c(0x300)]('w')){let _0x3c3435=_0x1bbbdc['column']+_0x1bbbdc[_0x11fd4c(0x24f)];_0x2e7295[_0x11fd4c(0x430)]=Math[_0x11fd4c(0x203)](0x0,Math['min'](_0x3c3435-0x1,_0x1bbbdc[_0x11fd4c(0x430)]+_0x5b6278)),_0x2e7295['columnSpan']=_0x3c3435-_0x2e7295[_0x11fd4c(0x430)];}else _0x43d5ab[_0x11fd4c(0x300)]('e')&&(_0x2e7295['columnSpan']=Math['max'](0x1,Math[_0x11fd4c(0x295)](_0x16d92d-_0x1bbbdc[_0x11fd4c(0x430)],_0x1bbbdc[_0x11fd4c(0x24f)]+_0x5b6278)));if(_0x43d5ab[_0x11fd4c(0x300)]('n')){let _0x1e6a42=_0x1bbbdc[_0x11fd4c(0x293)]+_0x1bbbdc[_0x11fd4c(0x17c)];_0x2e7295[_0x11fd4c(0x293)]=Math[_0x11fd4c(0x203)](0x0,Math[_0x11fd4c(0x295)](_0x1e6a42-0x1,_0x1bbbdc[_0x11fd4c(0x293)]+_0x642232)),_0x2e7295[_0x11fd4c(0x17c)]=_0x1e6a42-_0x2e7295[_0x11fd4c(0x293)];}else _0x43d5ab[_0x11fd4c(0x300)]('s')&&(_0x2e7295[_0x11fd4c(0x17c)]=Math[_0x11fd4c(0x203)](0x1,_0x1bbbdc[_0x11fd4c(0x17c)]+_0x642232));return _0x2e7295;}function ia(_0x57613d){const _0x3734e7=_0x57c180;let _0x2b340c=Math['max'](0x1,Math['min'](_0x16d92d,Math[_0x3734e7(0x33b)](_0x57613d[_0x3734e7(0x24f)])));return{'column':Math['max'](0x0,Math[_0x3734e7(0x295)](_0x16d92d-_0x2b340c,Math[_0x3734e7(0x33b)](_0x57613d[_0x3734e7(0x430)]))),'row':Math[_0x3734e7(0x203)](0x0,Math['round'](_0x57613d[_0x3734e7(0x293)])),'columnSpan':_0x2b340c,'rowSpan':Math['max'](0x1,Math['round'](_0x57613d[_0x3734e7(0x17c)]))};}function aa(_0x24124a,_0xb5d275,_0xab3165){const _0x5744f1=_0x57c180;let _0x5f986b=new Map(_0x24124a),_0x3bc261=ia(_0xab3165);_0x5f986b[_0x5744f1(0x33a)](_0xb5d275,_0x3bc261);let _0x93e13c=[[_0xb5d275,_0x3bc261]];for(let [_0x365461,_0x5548ac]of _0x5f986b){if(_0x365461===_0xb5d275)continue;let _0x2349b4=ia(_0x5548ac);for(;_0x93e13c[_0x5744f1(0x2c9)](([,_0xefa0f3])=>sa(_0x2349b4,_0xefa0f3));)_0x2349b4={..._0x2349b4,'row':_0x2349b4[_0x5744f1(0x293)]+0x1};for(;_0x2349b4[_0x5744f1(0x293)]>0x0;){let _0x689b8b={..._0x2349b4,'row':_0x2349b4[_0x5744f1(0x293)]-0x1};if(_0x93e13c[_0x5744f1(0x2c9)](([,_0x5950d7])=>sa(_0x689b8b,_0x5950d7)))break;_0x2349b4=_0x689b8b;}_0x93e13c[_0x5744f1(0x15d)]([_0x365461,_0x2349b4]),_0x5f986b['set'](_0x365461,_0x2349b4);}return _0x5f986b;}function oa(_0x1e3ff1,_0x559356,_0x5eee44,_0x1ef6c1=0x38,_0x3dbaf2=0x16){const _0x20ff50=_0x57c180;return _0x1e3ff1<_0x559356+_0x1ef6c1?-Math[_0x20ff50(0x480)](_0x3dbaf2*(0x1-Math['max'](0x0,_0x1e3ff1-_0x559356)/_0x1ef6c1)):_0x1e3ff1>_0x5eee44-_0x1ef6c1?Math[_0x20ff50(0x480)](_0x3dbaf2*(0x1-Math[_0x20ff50(0x203)](0x0,_0x5eee44-_0x1e3ff1)/_0x1ef6c1)):0x0;}function sa(_0x350506,_0x1aeb7e){const _0x22c21f=_0x57c180;return _0x350506[_0x22c21f(0x430)]<_0x1aeb7e[_0x22c21f(0x430)]+_0x1aeb7e[_0x22c21f(0x24f)]&&_0x350506['column']+_0x350506[_0x22c21f(0x24f)]>_0x1aeb7e['column']&&_0x350506[_0x22c21f(0x293)]<_0x1aeb7e[_0x22c21f(0x293)]+_0x1aeb7e[_0x22c21f(0x17c)]&&_0x350506[_0x22c21f(0x293)]+_0x350506[_0x22c21f(0x17c)]>_0x1aeb7e[_0x22c21f(0x293)];}const ca=[{'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':_0x57c180(0x2f0)},{'direction':'ne','className':'univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize'},{'direction':'e','className':'-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize'},{'direction':'se','className':'univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize'},{'direction':'s','className':_0x57c180(0x3c0)},{'direction':'sw','className':_0x57c180(0x25c)},{'direction':'w','className':_0x57c180(0x166)}];function la({dashboard:_0xcac38b,dragLabel:_0x575496,editable:_0x20fcb2=!0x0,onLayoutsCommit:_0x1a781a,onSelectWidget:_0x208001,renderWidget:_0x24cc95,renderWidgetActions:_0x5a96b4,resizeLabel:_0x57e7e3,selectedWidgetId:_0x48a7d5,widgetLabel:_0x1b383f}){const _0x238743=_0x57c180;let _0x29d123=_0x26ca56(null),_0x513ae5=_0x26ca56(null),[_0x54a8e2,_0x2a7b02]=_0x155c41(!0x1),_0x4b1c2a=_0x4561c2(()=>new Map(_0xcac38b[_0x238743(0x396)][_0x238743(0x21e)](_0x2a47d2=>{const _0x39b7ad=_0x238743;let _0x1d10f1=_0xcac38b[_0x39b7ad(0x1d3)][_0x2a47d2];return _0x1d10f1?[[_0x2a47d2,_0x1d10f1['layout']]]:[];})),[_0xcac38b]),[_0x347dd6,_0x2ff61c]=_0x155c41(_0x4b1c2a);_0x5a872b(()=>{_0x513ae5['current']||_0x2ff61c(_0x4b1c2a);},[_0x4b1c2a]),_0x5a872b(()=>{const _0x97adaf=_0x238743;if(!_0x54a8e2)return;let _0x19f490=_0x166a31=>{const _0x5b1ed7=_0x44d8;let _0x3f8af3=_0x29d123[_0x5b1ed7(0x18a)];if(!_0x3f8af3)return null;let _0x46f462=_0x3f8af3[_0x5b1ed7(0x213)](),_0x2f4381=Math['max'](0x1,(_0x46f462['width']-0x8*(_0x16d92d-0x1))/_0x16d92d),_0x16e167=Math[_0x5b1ed7(0x33b)]((_0x3f8af3[_0x5b1ed7(0x439)]-_0x166a31[_0x5b1ed7(0x330)])/(_0x3bde0c+0x8)),_0x37244b=Math[_0x5b1ed7(0x33b)]((_0x166a31[_0x5b1ed7(0x406)]-_0x166a31['startX'])/(_0x2f4381+0x8)),_0x107fcd=Math[_0x5b1ed7(0x33b)]((_0x166a31[_0x5b1ed7(0x180)]-_0x166a31[_0x5b1ed7(0x3d4)])/(_0x3bde0c+0x8))+_0x16e167,_0x32d678=_0x166a31[_0x5b1ed7(0x367)]===_0x5b1ed7(0x2e0)?{..._0x166a31[_0x5b1ed7(0x1b0)],'column':_0x166a31[_0x5b1ed7(0x1b0)][_0x5b1ed7(0x430)]+_0x37244b,'row':_0x166a31['initial'][_0x5b1ed7(0x293)]+_0x107fcd}:ra(_0x166a31['initial'],_0x166a31[_0x5b1ed7(0x461)]??'se',_0x37244b,_0x107fcd),_0x760357=aa(_0x166a31[_0x5b1ed7(0x3d0)],_0x166a31['id'],_0x32d678);return _0x2ff61c(_0x760357),_0x760357;},_0x40dd4a=_0x1217c9=>{const _0x441470=_0x44d8;let _0x34980e=_0x513ae5['current'];if(!_0x34980e)return;let _0x43ad56={..._0x34980e,'pointerX':_0x1217c9[_0x441470(0x421)],'pointerY':_0x1217c9[_0x441470(0x2fc)]};_0x513ae5[_0x441470(0x18a)]=_0x43ad56;},_0x220eec=()=>{const _0x56c402=_0x44d8;let _0x16bd3d=_0x513ae5['current'],_0x2053e5=_0x16bd3d?_0x19f490(_0x16bd3d):null;_0x513ae5[_0x56c402(0x18a)]=null,_0x2a7b02(!0x1),_0x2053e5&&_0x1a781a(_0x2053e5);},_0x519548=0x0,_0x1d9c30=()=>{const _0x3075ad=_0x44d8;let _0x3b0583=_0x29d123['current'],_0x6e71d3=_0x513ae5[_0x3075ad(0x18a)];if(_0x3b0583&&_0x6e71d3){let _0xf153ec=_0x3b0583[_0x3075ad(0x213)](),_0x47c890=oa(_0x6e71d3[_0x3075ad(0x180)],_0xf153ec[_0x3075ad(0x2db)],_0xf153ec['bottom']);_0x47c890!==0x0&&(_0x3b0583[_0x3075ad(0x439)]+=_0x47c890),_0x19f490(_0x6e71d3),_0x519548=requestAnimationFrame(_0x1d9c30);}};return _0x519548=requestAnimationFrame(_0x1d9c30),window['addEventListener'](_0x97adaf(0x16c),_0x40dd4a),window[_0x97adaf(0x306)](_0x97adaf(0x405),_0x220eec),()=>{const _0x3355fb=_0x97adaf;cancelAnimationFrame(_0x519548),window['removeEventListener'](_0x3355fb(0x16c),_0x40dd4a),window[_0x3355fb(0x3ec)]('pointerup',_0x220eec);};},[_0x54a8e2,_0x1a781a]);let _0x473041=Math[_0x238743(0x203)](0x8,...Array['from'](_0x347dd6[_0x238743(0x484)]())[_0x238743(0x48c)](_0x15ea45=>_0x15ea45[_0x238743(0x293)]+_0x15ea45[_0x238743(0x17c)])),_0x40edfe=(_0x349374,_0x3bcb42,_0x649689,_0x12504f)=>{const _0x3cf178=_0x238743;_0x349374['preventDefault'](),_0x349374['stopPropagation']();let _0x39d428=_0x29d123[_0x3cf178(0x18a)],_0x1d4f86={'id':_0x3bcb42['id'],'mode':_0x649689,'pointerX':_0x349374[_0x3cf178(0x421)],'pointerY':_0x349374[_0x3cf178(0x2fc)],'startX':_0x349374['clientX'],'startY':_0x349374[_0x3cf178(0x2fc)],'startScrollTop':(_0x39d428==null?void 0x0:_0x39d428[_0x3cf178(0x439)])??0x0,'initial':_0x347dd6[_0x3cf178(0x392)](_0x3bcb42['id'])??_0x3bcb42[_0x3cf178(0x424)],'initialLayouts':new Map(_0x347dd6),'resizeDirection':_0x12504f};_0x513ae5[_0x3cf178(0x18a)]=_0x1d4f86,_0x2a7b02(!0x0);};return _0x1bfcde(_0x238743(0x332),{'ref':_0x29d123,'data-dashboard-scroll-container':!0x0,'className':_0x3c6675('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',_0x32f99e),'onClick':_0x20fcb2?_0x408d52=>{const _0x3a4a01=_0x238743;if(!(_0x408d52[_0x3a4a01(0x22c)]instanceof Node)||!_0x408d52[_0x3a4a01(0x2bc)][_0x3a4a01(0x1ef)](_0x408d52[_0x3a4a01(0x22c)]))return;let _0x5cc0f4=_0x408d52[_0x3a4a01(0x22c)]instanceof Element?_0x408d52[_0x3a4a01(0x22c)]:_0x408d52['target'][_0x3a4a01(0x2f4)];_0x5cc0f4!=null&&_0x5cc0f4['closest'](_0x3a4a01(0x3e5))||_0x208001==null||_0x208001();}:void 0x0,'children':_0x1bfcde(_0x238743(0x332),{'data-dashboard-grid':!0x0,'className':_0x238743(0x486),'style':{'gap':0x8,'gridAutoRows':_0x3bde0c,'minHeight':_0x473041*(_0x3bde0c+0x8)},'children':_0xcac38b['widgetOrder'][_0x238743(0x48c)](_0x283dcc=>{const _0x3815b7=_0x238743;var _0x21dba1;let _0x4bcd80=_0xcac38b[_0x3815b7(0x1d3)][_0x283dcc],_0x5300c2=_0x347dd6['get'](_0x283dcc);return!_0x4bcd80||!_0x5300c2?null:_0x3fc05f(_0x3815b7(0x16d),{'data-dashboard-widget':_0x4bcd80['id'],'aria-label':_0x4bcd80[_0x3815b7(0x2ff)]??_0x1b383f(_0x4bcd80),'className':_0x3c6675(_0x3815b7(0x3f8),_0x4bcd80[_0x3815b7(0x498)]===_0x925244[_0x3815b7(0x37d)]||_0x4bcd80[_0x3815b7(0x498)]===_0x925244[_0x3815b7(0x1a9)]?_0x3815b7(0x173):_0x3815b7(0x324),_0x20fcb2&&_0x48a7d5===_0x4bcd80['id']?_0x3815b7(0x190):_0x3815b7(0x413)),'style':{'gridColumn':_0x5300c2['column']+0x1+_0x3815b7(0x1f6)+_0x5300c2['columnSpan'],'gridRow':_0x5300c2[_0x3815b7(0x293)]+0x1+'\x20/\x20span\x20'+_0x5300c2[_0x3815b7(0x17c)]},'tabIndex':_0x20fcb2?0x0:void 0x0,'onClick':_0x20fcb2?()=>_0x208001==null?void 0x0:_0x208001(_0x4bcd80['id']):void 0x0,'onFocus':_0x20fcb2?()=>_0x208001==null?void 0x0:_0x208001(_0x4bcd80['id']):void 0x0,'children':[_0x20fcb2&&_0x1bfcde('button',{'type':'button','aria-label':_0x575496,'data-dashboard-drag-handle':_0x4bcd80['id'],'className':_0x3c6675('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',_0x54a8e2&&((_0x21dba1=_0x513ae5[_0x3815b7(0x18a)])==null?void 0x0:_0x21dba1['id'])===_0x4bcd80['id']&&_0x513ae5[_0x3815b7(0x18a)][_0x3815b7(0x367)]===_0x3815b7(0x2e0)?_0x3815b7(0x48b):'univer-cursor-grab'),'onPointerDown':_0x1d86aa=>_0x40edfe(_0x1d86aa,_0x4bcd80,'move'),'children':_0x1bfcde(_0x4e0043,{'className':_0x3815b7(0x3c4),'aria-hidden':'true'})}),_0x20fcb2&&_0x1bfcde('div',{'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':_0x5a96b4==null?void 0x0:_0x5a96b4(_0x4bcd80)}),_0x1bfcde('div',{'className':_0x3815b7(0x1bd),'children':_0x24cc95(_0x4bcd80)}),_0x20fcb2&&ca['map'](({className:_0x34ddda,direction:_0x28ebdf})=>{const _0x1216ce=_0x3815b7;let _0x3c96d9=_0x28ebdf['length']===0x2;return _0x1bfcde('button',{'type':_0x1216ce(0x189),'aria-label':_0x57e7e3,'data-dashboard-resize-handle':_0x28ebdf,'data-dashboard-resize-control':_0x3c96d9?_0x28ebdf:void 0x0,'data-dashboard-resize-edge':_0x3c96d9?void 0x0:_0x28ebdf,'className':_0x3c6675(_0x1216ce(0x3f5),_0x3c96d9?_0x1216ce(0x1c7):_0x1216ce(0x302),_0x34ddda,_0x48a7d5===_0x4bcd80['id']&&_0x1216ce(0x38d)),'onPointerDown':_0x42b333=>_0x40edfe(_0x42b333,_0x4bcd80,_0x1216ce(0x236),_0x28ebdf)},_0x28ebdf);})]},_0x4bcd80['id']);})})});}var ua;const Q={'axis':{..._0x5bb0d7,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x2ade94,'heatmap':_0x56fd38,'indicatorLine':_0x4505bf,'legend':_0x255bea,'lineAndArea':_0x334ac6,'pareto':_0x50369c,'pie':_0x2a7701,'radar':_0x23b3e2,'relation':{..._0x47989a,'useValueAsSymbolSize':!0x0},'series':{..._0x6b2197,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((ua=_0x1cf164[_0x57c180(0x1ee)])==null?void 0x0:ua[_0x57c180(0x243)])??!0x1}},'style':_0x11b3b9,'titles':_0x4012e3,'trendline':_0x1f404b,'waterfall':{..._0x2665d6,'useSubtotal':!0x0},'waterfallStyle':_0x15d409,'wordCloud':_0x5f4293},da=[_0x546fc5[_0x57c180(0x175)],_0x546fc5[_0x57c180(0x339)],_0x546fc5[_0x57c180(0x2c7)],_0x546fc5[_0x57c180(0x4a3)],_0x546fc5['Funnel'],_0x546fc5[_0x57c180(0x47b)],_0x546fc5['Sankey'],_0x546fc5[_0x57c180(0x221)],_0x546fc5[_0x57c180(0x209)],_0x546fc5[_0x57c180(0x1d4)],_0x546fc5[_0x57c180(0x22b)],_0x546fc5['Treemap'],_0x546fc5[_0x57c180(0x1da)],_0x546fc5['Gauge'],_0x546fc5['Chord']];function fa(_0x3f9804){const _0xadc070=_0x57c180;let {config:_0x42cfb2,onChange:_0x35a2bd,runtime:_0x9dbbfc,tableName:_0x3cd470}=_0x3f9804,_0x2bff3e=_0x3dc792(Gr),_0x330b8d=_0x3dc792(_0xc34a30),[_0x5cd207,_0x16df29]=_0x155c41(_0x34d32e[_0xadc070(0x192)]),_0x493d6f=_0x4561c2(()=>new _0x4e622f(_0x9dbbfc[_0xadc070(0x2aa)],{'commit':_0x3ecb9b=>{const _0x20b6be=_0xadc070;var _0x7c8a02;let _0x235c56=_0x9dbbfc[_0x20b6be(0x2aa)],_0x1ba236=_0x206b2e(_0x3ecb9b,{'series':(_0x7c8a02=_0x235c56[_0x20b6be(0x163)])==null?void 0x0:_0x7c8a02['series'],'currentChartType':_0x235c56['chartType'],'currentStyle':_0x235c56[_0x20b6be(0x1d6)],'currentContext':_0x235c56[_0x20b6be(0x4a5)],'currentDataAggregation':_0x235c56[_0x20b6be(0x303)]});_0x35a2bd({'chart':pa(_0x42cfb2[_0x20b6be(0x49c)],_0x1ba236)});}}),[_0x42cfb2[_0xadc070(0x49c)],_0x35a2bd,_0x9dbbfc]),_0x28541b=_0x4561c2(()=>_0x5447e3(_0x3c2b9a[_0xadc070(0x48c)](_0x334fb5=>({..._0x334fb5,'label':_0x330b8d['t'](_a(_0x334fb5[_0xadc070(0x202)]))}))),[_0x330b8d]);return _0x1bfcde(_0x4c2ea3,{'chartUIService':_0x2bff3e,'hostAdapter':_0x493d6f,'children':_0x3fc05f('div',{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x1bfcde(_0x2e9f58,{'ariaLabel':_0x330b8d['t'](_0xadc070(0x464)),'className':_0xadc070(0x3ff),'items':[{'label':_0x330b8d['t'](_0xadc070(0x3c1)),'panelId':_0xadc070(0x1b2),'value':_0x34d32e['Data']},{'label':_0x330b8d['t'](_0xadc070(0x20e)),'panelId':_0xadc070(0x22d),'value':_0x34d32e[_0xadc070(0x1c0)]}],'value':_0x5cd207,'onChange':_0x16df29}),_0x5cd207===_0x34d32e[_0xadc070(0x192)]?_0x1bfcde(_0x5cb021,{'id':_0xadc070(0x1b2),'label':_0x330b8d['t'](_0xadc070(0x3c1)),'children':_0x3fc05f(_0xadc070(0x332),{'className':_0xadc070(0x345),'children':[_0x1bfcde(_0x1e47f4,{'options':_0x28541b}),_0x1bfcde(_0x60f00e,{}),_0x1bfcde(_0x40668c,{}),_0x1bfcde(ma,{}),_0x1bfcde(_0x5ab8f3,{}),_0x3fc05f(_0xadc070(0x332),{'children':[_0x1bfcde(_0x20c528,{'title':_0x330b8d['t'](_0xadc070(0x239))}),_0x1bfcde(_0x225487,{'disabled':!0x0,'value':_0x3cd470})]}),_0x1bfcde(_0x236f8b,{'orientationControl':_0x1bfcde(_0x29df96,{'size':_0xadc070(0x3a6),'onClick':()=>_0x35a2bd({'chart':{..._0x42cfb2['chart'],'orient':_0x42cfb2[_0xadc070(0x49c)]['orient']===_0xadc070(0x293)?_0xadc070(0x430):'row'}}),'children':_0x330b8d['t'](_0xadc070(0x3a4))})}),_0x1bfcde(_0x260003,{}),_0x1bfcde(_0x115741,{'defaultValues':Q[_0xadc070(0x17f)]}),_0x3fc05f('div',{'children':[_0x1bfcde(_0x20c528,{'title':_0x330b8d['t'](_0xadc070(0x34a))}),_0x1bfcde(_0x103c6a,{'value':_0x42cfb2[_0xadc070(0x36d)],'options':[{'value':'chart-and-table','label':_0x330b8d['t'](_0xadc070(0x33e))},{'value':'chart','label':_0x330b8d['t'](_0xadc070(0x294))},{'value':_0xadc070(0x2c6),'label':_0x330b8d['t'](_0xadc070(0x2ed))}],'onChange':_0x28c5d0=>{const _0x98ba90=_0xadc070;(_0x28c5d0==='chart-and-table'||_0x28c5d0===_0x98ba90(0x49c)||_0x28c5d0===_0x98ba90(0x2c6))&&_0x35a2bd({'displayMode':_0x28c5d0});}})]})]})}):_0x1bfcde(_0x5cb021,{'id':_0xadc070(0x22d),'label':_0x330b8d['t'](_0xadc070(0x20e)),'children':_0x1bfcde(ha,{})})]})});}function pa(_0x5dfea3,_0x4eb4a5){const _0x21c7e6=_0x57c180;return{..._0x5dfea3,'type':_0x4eb4a5['chartType']??_0x5dfea3['type'],'style':_0x4eb4a5[_0x21c7e6(0x1d6)]??_0x5dfea3[_0x21c7e6(0x1d6)],'context':_0x4eb4a5[_0x21c7e6(0x4a5)]??_0x5dfea3[_0x21c7e6(0x4a5)],'dataAggregation':_0x4eb4a5[_0x21c7e6(0x303)]??_0x5dfea3[_0x21c7e6(0x303)]};}function _0x44d8(_0x4463d0,_0x29479f){_0x4463d0=_0x4463d0-0x152;const _0x59a9fe=_0x59a9();let _0x44d815=_0x59a9fe[_0x4463d0];return _0x44d815;}function ma(){const _0x395e38=_0x57c180;let _0x250795=_0x1600aa();return _0x1bfcde(_0x365082,{'visible':da['every'](_0x1b4fb0=>!_0x579955[_0x395e38(0x248)](_0x250795,_0x1b4fb0))});}function $(_0x5b62ae){const _0x23294a=_0x57c180;return _0x3fc05f(_0x511a83,{'id':_0x5b62ae['id'],'children':[_0x1bfcde(_0x22a0cc,{'children':_0x5b62ae[_0x23294a(0x372)]}),_0x1bfcde(_0x4bb2c8,{'children':_0x5b62ae['children']})]});}function ha(){const _0x54d5f3=_0x57c180;let _0x155257=_0x3dc792(_0xc34a30),_0x1107c2=_0x1600aa(),_0x177e25=_0x4abcf3(),[_0x6d2ad0,_0x4f0c3a]=_0x155c41(null),_0x10b428=_0x579955['baseOn'](_0x1107c2,_0x546fc5['Pie']),_0x3c0acf=_0x1107c2===_0x546fc5[_0x54d5f3(0x339)],_0xe22562=_0x1107c2===_0x546fc5['WordCloud'],_0x47c711=_0x1107c2===_0x546fc5['Funnel'],_0x4cd6bf=_0x579955[_0x54d5f3(0x248)](_0x1107c2,_0x546fc5[_0x54d5f3(0x315)]),_0x1bd2aa=_0x1107c2===_0x546fc5[_0x54d5f3(0x47b)],_0x729398=_0x1107c2===_0x546fc5['Waterfall'],_0x5c2d60=_0x1107c2===_0x546fc5['Pareto'],_0x43a51b=_0x1107c2===_0x546fc5[_0x54d5f3(0x221)],_0x18e8ae=_0x20bcdc(_0x1107c2,_0x262643[_0x54d5f3(0x49e)])&&!_0x4cd6bf&&!_0x5c2d60,_0x29fe7a=ga(_0x1107c2,_0x155257);return _0x3fc05f(_0x2794c9,{'value':_0x6d2ad0,'onChange':_0x4f0c3a,'children':[_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x16a)],'label':_0x155257['t'](_0x54d5f3(0x451)),'children':_0x1bfcde(_0x36f8fa,{'defaultValues':Q['style']})}),_0x1bfcde($,{'id':_0xd01354['ChartAndAxisTitles'],'label':_0x155257['t'](_0x54d5f3(0x2e3)),'children':_0x1bfcde(_0x3b2df6,{'commitMode':_0x54d5f3(0x3d5),'defaultValues':Q['titles']})}),_0x18e8ae&&_0x1bfcde($,{'id':_0xd01354['Series'],'label':_0x155257['t'](_0x54d5f3(0x43b)),'children':_0x1bfcde(_0xfcfe0d,{'defaultValues':Q[_0x54d5f3(0x376)],'NumberFormatField':_0x1984da})}),_0x729398&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x262)],'label':_0x155257['t'](_0x54d5f3(0x2e7)),'children':_0x1bfcde(_0x29de7e,{'defaultValues':Q[_0x54d5f3(0x1a4)],'getDefaultBucketName':({seriesName:_0x4a6491,target:_0xa86700})=>_0xa86700===_0x588af0[_0x54d5f3(0x18c)]?_0x155257['t'](_0x54d5f3(0x289)):_0x4a6491?_0x4a6491+'-('+_0x155257['t'](_0x54d5f3(0x1c2)+(_0xa86700===_0x588af0[_0x54d5f3(0x1d8)]?_0x54d5f3(0x364):_0x54d5f3(0x30e)))+')':'','NumberFormatField':_0x1984da})}),_0x5c2d60&&_0x3fc05f(_0x30443f,{'children':[_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x4a2)],'label':_0x155257['t'](_0x54d5f3(0x41b)),'children':_0x1bfcde(_0x7a917b,{'defaultValues':Q['pareto'],'NumberFormatField':_0x1984da,'showDataPointEditor':!0x0,'target':_0x54d5f3(0x40d)})}),_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x272)],'label':_0x155257['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':_0x1bfcde(_0x7a917b,{'defaultValues':Q[_0x54d5f3(0x17d)],'NumberFormatField':_0x1984da,'showDataPointEditor':!0x1,'target':_0x54d5f3(0x24e)})})]}),_0x10b428&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x1ff)],'label':_0x155257['t']('bases-dashboard-ui.chart.section.pie'),'children':_0x1bfcde(_0x55a368,{'defaultValues':Q['pie'],'NumberFormatField':_0x1984da})}),_0xe22562&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x2c7)],'label':_0x155257['t']('bases-dashboard-ui.chart.section.wordCloud'),'children':_0x1bfcde(_0x14d125,{'defaultValues':Q[_0x54d5f3(0x319)]})}),_0x3c0acf&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x339)],'label':_0x155257['t'](_0x54d5f3(0x17e)),'children':_0x1bfcde(_0x807256,{'defaultValues':Q[_0x54d5f3(0x16f)]})}),_0x47c711&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x2df)],'label':_0x155257['t'](_0x54d5f3(0x1b3)),'children':_0x1bfcde(_0x5c8bd4,{'defaultValues':Q['funnel'],'gapControl':_0x54d5f3(0x39e)})}),_0x43a51b&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x221)],'label':_0x155257['t'](_0x54d5f3(0x448)),'children':_0x1bfcde(_0x56789e,{'defaultValues':Q[_0x54d5f3(0x3be)]})}),_0x1bd2aa&&_0x1bfcde($,{'id':_0xd01354['Relation'],'label':_0x155257['t'](_0x54d5f3(0x35e)),'children':_0x1bfcde(_0xf308df,{'defaultValues':Q[_0x54d5f3(0x3b7)]})}),_0x41979c(_0x1107c2)&&_0x1bfcde($,{'id':_0xd01354['LineAndArea'],'label':_0x155257['t'](_0x54d5f3(0x216)),'children':_0x1bfcde(_0x152bb6,{'defaultValues':Q['lineAndArea'],'lineStyleControl':'segmented'})}),_0x20bcdc(_0x1107c2,_0x262643[_0x54d5f3(0x366)])&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x366)],'label':_0x155257['t'](_0x54d5f3(0x382)),'children':_0x1bfcde(_0x3c5065,{'defaultValues':Q[_0x54d5f3(0x1e6)]})}),_0x20bcdc(_0x1107c2,_0x262643[_0x54d5f3(0x210)])&&_0x3fc05f(_0x30443f,{'children':[_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x474)],'label':_0x155257['t'](_0x54d5f3(0x47a)),'children':_0x1bfcde(_0x4ecd7e,{'axis':'x','defaultValues':Q[_0x54d5f3(0x442)],'NumberFormatField':_0x1984da})}),_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x43d)],'label':_0x155257['t'](_0x54d5f3(0x217)),'children':_0x1bfcde(_0x4ecd7e,{'axis':'y','defaultValues':Q[_0x54d5f3(0x442)],'NumberFormatField':_0x1984da})}),_0x177e25&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x2e6)],'label':_0x155257['t'](_0x54d5f3(0x49f)),'children':_0x1bfcde(_0x4ecd7e,{'axis':_0x54d5f3(0x3bc),'defaultValues':Q[_0x54d5f3(0x442)],'NumberFormatField':_0x1984da})}),_0x1bfcde($,{'id':_0xd01354['GridlinesAndTicks'],'label':_0x155257['t'](_0x54d5f3(0x397)),'children':_0x1bfcde(_0x41e9c3,{'defaultValues':Q[_0x54d5f3(0x442)]})})]}),_0x20bcdc(_0x1107c2,_0x262643[_0x54d5f3(0x2f6)])&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x2f6)],'label':_0x155257['t'](_0x54d5f3(0x246)),'children':_0x1bfcde(_0x5eb7b1,{'defaultValues':Q[_0x54d5f3(0x341)]})}),_0x3d1aed(_0x1107c2)&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x3b4)],'label':_0x155257['t'](_0x54d5f3(0x1ac)),'children':_0x1bfcde(_0x1928c4,{'defaultValues':Q[_0x54d5f3(0x1ea)]})}),_0x29fe7a&&_0x1bfcde($,{'id':_0x29fe7a['id'],'label':_0x29fe7a[_0x54d5f3(0x372)],'children':_0x1bfcde(_0x4ea50d,{})})]});}function ga(_0x3ec782,_0x3101f9){const _0x208f8e=_0x57c180;let _0x1335df={[_0x546fc5['Candlestick']]:{'id':_0xd01354[_0x208f8e(0x1d4)],'localeKey':_0x208f8e(0x440)},[_0x546fc5[_0x208f8e(0x22b)]]:{'id':_0xd01354[_0x208f8e(0x22b)],'localeKey':_0x208f8e(0x1b8)},[_0x546fc5[_0x208f8e(0x3ef)]]:{'id':_0xd01354[_0x208f8e(0x3ef)],'localeKey':_0x208f8e(0x361)},[_0x546fc5['Sunburst']]:{'id':_0xd01354['Sunburst'],'localeKey':_0x208f8e(0x389)},[_0x546fc5[_0x208f8e(0x3f9)]]:{'id':_0xd01354['Gauge'],'localeKey':_0x208f8e(0x19c)},[_0x546fc5[_0x208f8e(0x2dc)]]:{'id':_0xd01354[_0x208f8e(0x2dc)],'localeKey':_0x208f8e(0x353)}}[_0x3ec782];return _0x1335df?{'id':_0x1335df['id'],'label':_0x3101f9['t'](_0x1335df['localeKey'])}:null;}function _a(_0x226a26){return'bases-dashboard-ui.chart.chartTypes.'+_0x226a26;}function va({onChange:_0x3e5536,onEditData:_0xecd8c2,runtime:_0x2cf051,sourceChart:_0x3c535d,sourceName:_0x113abd,widget:_0x29263c}){const _0x2f82ac=_0x57c180;let _0x54d25c=_0x3dc792(Gr),_0x344029=_0x3dc792(_0xc34a30),[_0x5a05e1,_0x1b98b3]=_0x155c41(_0x34d32e[_0x2f82ac(0x192)]),_0x36d5b4=_0x29263c[_0x2f82ac(0x49c)]??_0x3c535d,_0x468f96=_0x4561c2(()=>new _0x4e622f(_0x2cf051['model'],{'commit':_0x3ad368=>{const _0x267384=_0x2f82ac;var _0x8dc881;let _0x54dba7=_0x2cf051[_0x267384(0x2aa)],_0x3822eb=_0x206b2e(_0x3ad368,{'series':(_0x8dc881=_0x54dba7[_0x267384(0x163)])==null?void 0x0:_0x8dc881[_0x267384(0x376)],'currentChartType':_0x54dba7[_0x267384(0x2a6)],'currentStyle':_0x54dba7[_0x267384(0x1d6)],'currentContext':_0x54dba7['context'],'currentDataAggregation':_0x54dba7[_0x267384(0x303)]});_0x3e5536({..._0x29263c,'chart':pa(_0x36d5b4,_0x3822eb)})[_0x267384(0x2cb)](()=>void 0x0);}}),[_0x36d5b4,_0x3e5536,_0x2cf051,_0x29263c]),_0x1eeac4=_0x4561c2(()=>_0x5447e3(_0x3c2b9a[_0x2f82ac(0x48c)](_0xe392fb=>({..._0xe392fb,'label':_0x344029['t'](ya(_0xe392fb[_0x2f82ac(0x202)]))}))),[_0x344029]);return _0x1bfcde(_0x4c2ea3,{'chartUIService':_0x54d25c,'hostAdapter':_0x468f96,'children':_0x3fc05f('div',{'data-dashboard-chart-inspector':!0x0,'className':_0x2f82ac(0x4a8),'children':[_0x1bfcde(_0x2e9f58,{'ariaLabel':_0x344029['t'](_0x2f82ac(0x464)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x344029['t'](_0x2f82ac(0x3c1)),'panelId':'dashboard-chart-setup','value':_0x34d32e[_0x2f82ac(0x192)]},{'label':_0x344029['t'](_0x2f82ac(0x20e)),'panelId':_0x2f82ac(0x1c5),'value':_0x34d32e[_0x2f82ac(0x1c0)]}],'value':_0x5a05e1,'onChange':_0x1b98b3}),_0x5a05e1===_0x34d32e[_0x2f82ac(0x192)]?_0x1bfcde(_0x5cb021,{'id':_0x2f82ac(0x155),'label':_0x344029['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x3fc05f('div',{'className':_0x2f82ac(0x345),'children':[_0x1bfcde(_0x1e47f4,{'options':_0x1eeac4}),_0x1bfcde(_0x60f00e,{}),_0x1bfcde(_0x40668c,{}),_0x1bfcde(ma,{}),_0x1bfcde(_0x5ab8f3,{}),_0x3fc05f(_0x2f82ac(0x332),{'children':[_0x1bfcde(_0x20c528,{'title':_0x344029['t'](_0x2f82ac(0x348))}),_0x1bfcde(_0x225487,{'disabled':!0x0,'value':_0x113abd}),_0x1bfcde(_0x29df96,{'className':'univer-mt-2\x20univer-w-full','onClick':_0xecd8c2,'children':_0x344029['t'](_0x2f82ac(0x426))})]})]})}):_0x1bfcde(_0x5cb021,{'id':_0x2f82ac(0x1c5),'label':_0x344029['t'](_0x2f82ac(0x20e)),'children':_0x1bfcde(ha,{})})]})});}function ya(_0x215ab6){const _0x147654=_0x57c180;return _0x147654(0x2fe)+_0x215ab6;}const ba=[_0x57c180(0x452),_0x57c180(0x338),_0x57c180(0x3b1),'currency',_0x57c180(0x4a4),'compact'];function xa({base:_0x29b1e6,onChange:_0x4a6fb9,onSelectBackgroundImage:_0x2df8f5,widget:_0x1f59ae}){const _0x316a73=_0x57c180;var _0xd277c8;let _0x1c1186=_0x3dc792(_0xc34a30),_0x496a37=_0x3dc792(_0x2f0481),_0x491446=_0x1cdd28(()=>_0x496a37[_0x316a73(0x409)],_0x496a37['getCurrentTheme'](),!0x1,[_0x496a37]),_0x442f17=_0x1cdd28(()=>_0x496a37[_0x316a73(0x2fd)],_0x496a37[_0x316a73(0x342)],!0x1,[_0x496a37]),[_0x331464,_0x1f1a22]=_0x155c41('data'),[_0x24602f,_0x1eeea1]=_0x155c41(!0x1),_0xc1fc2d=xr(_0x1f59ae),_0x3761c1=_0x29b1e6[_0x316a73(0x257)]()[_0x316a73(0x47e)][_0x1f59ae[_0x316a73(0x31f)]],_0x2a75df=_0x3761c1==null?void 0x0:_0x3761c1[_0x316a73(0x3d3)][_0x316a73(0x34b)](_0x59d2ea=>_0x3761c1[_0x316a73(0x46e)][_0x59d2ea]),_0x245904=_0x2a75df?_0x3761c1==null?void 0x0:_0x3761c1['views'][_0x2a75df]:void 0x0,_0x3c6a5c=_0x3761c1&&_0x245904?_0x3fc9b5(_0x29b1e6[_0x316a73(0x257)](),_0x3761c1,_0x245904)[_0x316a73(0x48c)](_0x5e25ac=>({..._0x5e25ac,'current':!0x1})):[],_0x10b113=((_0xd277c8=_0x1f59ae[_0x316a73(0x20a)][_0x316a73(0x251)])==null?void 0x0:_0xd277c8[_0x316a73(0x304)])??'',_0xd77399=_0x5c5f2a=>_0x4a6fb9(Sr(_0x1f59ae,_0x5c5f2a))[_0x316a73(0x2cb)](()=>void 0x0),_0x3320d4=_0x32612f=>_0x4a6fb9({..._0x1f59ae,'description':_0x32612f})[_0x316a73(0x2cb)](()=>void 0x0);return _0x3fc05f(_0x316a73(0x332),{'data-dashboard-formula-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x1bfcde(_0x9bce40,{'className':'univer-m-3','items':[{'value':'data','label':_0x1c1186['t'](_0x316a73(0x379))},{'value':_0x316a73(0x1d6),'label':_0x1c1186['t'](_0x316a73(0x4a6))}],'value':_0x331464,'onChange':_0x1f1a22}),_0x1bfcde(_0x316a73(0x332),{'className':_0x316a73(0x318),'children':_0x331464==='data'?_0x3fc05f('div',{'className':'univer-grid\x20univer-gap-4','children':[_0x1bfcde(Sa,{'label':_0x1c1186['t'](_0x316a73(0x37a)),'children':_0x1bfcde(_0x225487,{'value':_0x1f59ae[_0x316a73(0x18f)]??_0x1f59ae[_0x316a73(0x2ff)]??'','onChange':_0x3320d4,'onBlur':_0x5c4a0e=>_0x3320d4(_0x5c4a0e['target']['value'])})}),_0x1bfcde(Sa,{'label':_0x1c1186['t'](_0x316a73(0x348)),'children':_0x1bfcde(_0x225487,{'disabled':!0x0,'value':(_0x3761c1==null?void 0x0:_0x3761c1['name'])??_0x1c1186['t'](_0x316a73(0x36f))})}),_0x3fc05f(Sa,{'label':_0x1c1186['t'](_0x316a73(0x1b9)),'children':[_0x1bfcde(_0x225487,{'disabled':!0x0,'value':_0x23590c(_0x10b113,_0x3c6a5c)}),_0x1bfcde(_0x29df96,{'className':'univer-mt-2\x20univer-w-full','onClick':()=>_0x1eeea1(!0x0),'children':_0x1c1186['t'](_0x316a73(0x1d9))})]})]}):_0x3fc05f(_0x316a73(0x332),{'className':_0x316a73(0x171),'children':[_0x1bfcde(_0x14a84b,{'emptyLabel':_0x1c1186['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x1c1186['t'](_0x316a73(0x3b0)),'pickerFallbackValue':_0x442f17?_0x491446[_0x316a73(0x387)][0x384]:_0x491446[_0x316a73(0x387)][0x0],'resetLabel':_0x1c1186['t'](_0x316a73(0x459)),'value':_0xc1fc2d[_0x316a73(0x26f)]??null,'onChange':_0x5d1f37=>_0xd77399({'backgroundColor':_0x5d1f37??void 0x0})}),_0x3fc05f(Sa,{'label':_0x1c1186['t'](_0x316a73(0x2b3)),'children':[_0x3fc05f('div',{'className':_0x316a73(0x169),'children':[_0x3fc05f(_0x29df96,{'className':'univer-flex-1','onClick':()=>{const _0x361ffc=_0x316a73;_0x2df8f5()['then'](_0x51a640=>{const _0x1ea501=_0x44d8;if(_0x51a640){var _0x3b8317;return _0xd77399({'backgroundImage':{..._0x51a640,'fit':((_0x3b8317=_0xc1fc2d['backgroundImage'])==null?void 0x0:_0x3b8317[_0x1ea501(0x3d9)])??_0x1ea501(0x3a5)}});}})[_0x361ffc(0x2cb)](()=>void 0x0);},'children':[_0x1bfcde(_0x5d1373,{}),_0xc1fc2d['backgroundImage']?_0x1c1186['t'](_0x316a73(0x490)):_0x1c1186['t'](_0x316a73(0x234))]}),_0xc1fc2d['backgroundImage']&&_0x1bfcde(_0x29df96,{'aria-label':_0x1c1186['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x1c1186['t'](_0x316a73(0x1fd)),'onClick':()=>_0xd77399({'backgroundImage':void 0x0}),'children':_0x1bfcde(_0x4e3f72,{})})]}),_0xc1fc2d['backgroundImage']&&_0x1bfcde(_0x9bce40,{'className':_0x316a73(0x20f),'items':[{'value':_0x316a73(0x3a5),'label':_0x1c1186['t'](_0x316a73(0x454))},{'value':_0x316a73(0x273),'label':_0x1c1186['t'](_0x316a73(0x485))}],'value':_0xc1fc2d[_0x316a73(0x1c6)][_0x316a73(0x3d9)],'onChange':_0x50eed2=>_0xd77399({'backgroundImage':_0xc1fc2d[_0x316a73(0x1c6)]?{..._0xc1fc2d[_0x316a73(0x1c6)],'fit':_0x50eed2}:void 0x0})})]}),_0x1bfcde(_0x14a84b,{'emptyLabel':_0x1c1186['t'](_0x316a73(0x354)),'label':_0x1c1186['t'](_0x316a73(0x354)),'pickerFallbackValue':_0x442f17?_0x491446[_0x316a73(0x387)][0x32]:_0x491446[_0x316a73(0x387)][0x3e8],'resetLabel':_0x1c1186['t'](_0x316a73(0x459)),'value':_0xc1fc2d['textColor']??null,'onChange':_0x2e756e=>_0xd77399({'textColor':_0x2e756e??void 0x0})}),_0x1bfcde(Sa,{'label':_0x1c1186['t'](_0x316a73(0x1aa)),'children':_0x1bfcde(_0x9bce40,{'items':[{'value':'left','label':_0x1c1186['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':'center','label':_0x1c1186['t'](_0x316a73(0x3e2))},{'value':_0x316a73(0x3bb),'label':_0x1c1186['t'](_0x316a73(0x349))}],'value':_0xc1fc2d[_0x316a73(0x283)],'onChange':_0x279e5e=>_0xd77399({'alignment':_0x279e5e})})}),_0x3fc05f(Sa,{'label':_0x1c1186['t'](_0x316a73(0x178)),'children':[_0x1bfcde(_0x9bce40,{'items':[{'value':'auto','label':_0x1c1186['t'](_0x316a73(0x2a7))},{'value':'custom','label':_0x1c1186['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0xc1fc2d[_0x316a73(0x204)],'onChange':_0xe9906c=>_0xd77399({'fontSizeMode':_0xe9906c})}),_0xc1fc2d[_0x316a73(0x204)]===_0x316a73(0x29e)&&_0x1bfcde(_0x142183,{'className':_0x316a73(0x20f),'min':0xc,'max':0x78,'value':_0xc1fc2d[_0x316a73(0x2cd)],'onChange':_0x1a3235=>_0xd77399({'fontSize':_0x1a3235??0x28,'fontSizeMode':_0x316a73(0x29e)})})]}),_0x1bfcde(Sa,{'label':_0x1c1186['t'](_0x316a73(0x322)),'children':_0x1bfcde(_0x103c6a,{'value':_0xc1fc2d[_0x316a73(0x441)],'options':[{'value':_0x316a73(0x452),'label':_0x1c1186['t'](_0x316a73(0x254))},{'value':_0x316a73(0x338),'label':_0x1c1186['t'](_0x316a73(0x2fa))},{'value':_0x316a73(0x3b1),'label':_0x1c1186['t'](_0x316a73(0x425))},{'value':_0x316a73(0x214),'label':_0x1c1186['t'](_0x316a73(0x44d))},{'value':_0x316a73(0x4a4),'label':_0x1c1186['t'](_0x316a73(0x43e))},{'value':_0x316a73(0x1c4),'label':_0x1c1186['t'](_0x316a73(0x358))}],'onChange':_0x22deb7=>{const _0x19fbeb=_0x316a73;let _0x5f0edd=ba[_0x19fbeb(0x34b)](_0x403346=>_0x403346===_0x22deb7);_0x5f0edd&&_0xd77399({'numberFormat':_0x5f0edd});}})}),_0xc1fc2d[_0x316a73(0x441)]===_0x316a73(0x214)&&_0x1bfcde(Sa,{'label':_0x1c1186['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x1bfcde(_0x225487,{'value':_0xc1fc2d[_0x316a73(0x214)],'onChange':_0xde5f30=>_0xd77399({'currency':_0xde5f30['slice'](0x0,0x3)[_0x316a73(0x3c5)]()})})}),_0xc1fc2d[_0x316a73(0x441)]!==_0x316a73(0x452)&&_0x1bfcde(Sa,{'label':_0x1c1186['t'](_0x316a73(0x1cc)),'children':_0x1bfcde(_0x142183,{'min':0x0,'max':0x8,'value':_0xc1fc2d['decimalPlaces'],'onChange':_0x1810a9=>_0xd77399({'decimalPlaces':_0x1810a9??0x0})})})]})}),_0x24602f&&_0x1bfcde(_0x200c20,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1bfcde(_0x24b807,{'tables':_0x3c6a5c,'formula':_0x23590c(_0x10b113,_0x3c6a5c),'onCancel':()=>_0x1eeea1(!0x1),'onSave':_0x32ef16=>{const _0x545b63=_0x316a73;let _0x1ab7ad=_0x1f59ae[_0x545b63(0x20a)][_0x545b63(0x251)]??{'formula':''};return _0x4a6fb9({..._0x1f59ae,'shapeData':{..._0x1f59ae['shapeData'],'formulaBinding':{..._0x1ab7ad,'formula':_0x909b28(_0x32ef16,_0x3c6a5c)}}})[_0x545b63(0x2bd)](()=>_0x1eeea1(!0x1))[_0x545b63(0x2cb)](()=>void 0x0);}})})]});}function Sa({children:_0x428c06,label:_0x4a333d}){const _0x461251=_0x57c180;return _0x3fc05f(_0x461251(0x332),{'role':_0x461251(0x208),'aria-label':_0x4a333d,'className':_0x461251(0x307),'children':[_0x1bfcde(_0x461251(0x45e),{'children':_0x4a333d}),_0x428c06]});}const Ca={[_0x170c06['IS']]:_0x57c180(0x287),[_0x170c06[_0x57c180(0x1e4)]]:_0x57c180(0x2a9),[_0x170c06[_0x57c180(0x32a)]]:_0x57c180(0x3cb),[_0x170c06['NOT_CONTAINS']]:_0x57c180(0x492),[_0x170c06[_0x57c180(0x3e3)]]:'bases-dashboard-ui.operators.isEmpty',[_0x170c06['IS_NOT_EMPTY']]:_0x57c180(0x403),[_0x170c06['GREATER_THAN']]:_0x57c180(0x181),[_0x170c06['GREATER_THAN_OR_EQUAL']]:'bases-dashboard-ui.operators.greaterThanOrEqual',[_0x170c06['LESS_THAN']]:_0x57c180(0x2f1),[_0x170c06[_0x57c180(0x165)]]:_0x57c180(0x3f3),[_0x170c06['BEFORE']]:_0x57c180(0x274),[_0x170c06['AFTER']]:_0x57c180(0x311)};function wa({disabled:_0x1be8d5,fields:_0x316802,filter:_0xd1d59e,onChange:_0x5750e2}){const _0x2ae4f9=_0x57c180;let _0xc613c2=_0x3dc792(_0xc34a30),_0x42b608=(_0xd1d59e==null?void 0x0:_0xd1d59e[_0x2ae4f9(0x3cd)])??[];return _0x42b608[_0x2ae4f9(0x291)]?_0x1bfcde(_0x2ae4f9(0x332),{'className':'univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','children':_0x42b608[_0x2ae4f9(0x48c)]((_0x32048e,_0x2bbe97)=>{const _0x18c20b=_0x2ae4f9;let _0x228b0e=_0x316802['find'](_0x22e6e3=>_0x22e6e3['id']===_0x32048e[_0x18c20b(0x383)]);return _0x3fc05f(_0x18c20b(0x332),{'className':_0x18c20b(0x20b),'children':[_0x3fc05f(_0x18c20b(0x332),{'className':_0x18c20b(0x1f5),'children':[_0x1bfcde('span',{'className':_0x18c20b(0x24d),'children':(_0x228b0e==null?void 0x0:_0x228b0e['name'])??_0x32048e[_0x18c20b(0x383)]}),_0x1bfcde(_0x18c20b(0x45e),{'className':'univer-shrink-0\x20univer-rounded-full\x20univer-bg-gray-200\x20univer-px-2\x20univer-py-0.5\x20univer-text-xs\x20univer-text-gray-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-300','children':_0xc613c2['t'](Ca[_0x32048e[_0x18c20b(0x233)]])})]}),Ma(_0x32048e[_0x18c20b(0x233)])&&_0x1bfcde(Ea,{'disabled':_0x1be8d5,'field':_0x228b0e,'value':_0x32048e['operand'],'onChange':_0x4b4f82=>_0x5750e2(ka(_0xd1d59e,_0x2bbe97,{'operand':_0x4b4f82}))})]},Fa(_0x42b608,_0x32048e,_0x2bbe97));})}):_0x3fc05f(_0x2ae4f9(0x332),{'className':_0x2ae4f9(0x21f),'children':[_0x1bfcde(_0x3b1c88,{'className':_0x2ae4f9(0x3e8)}),_0x1bfcde(_0x2ae4f9(0x45e),{'className':_0x2ae4f9(0x15c),'children':_0xc613c2['t'](_0x2ae4f9(0x161))})]});}function Ta({fields:_0x139078,filter:_0x3dc87c,onChange:_0x2e6c30,onClear:_0x38d2ee}){const _0x498011=_0x57c180;let _0x168c8e=_0x3dc792(_0xc34a30),_0x4a7f52=(_0x3dc87c==null?void 0x0:_0x3dc87c[_0x498011(0x3cd)])??[];return _0x3fc05f(_0x498011(0x332),{'data-dashboard-filter-inspector':!0x0,'className':_0x498011(0x18b),'children':[_0x4a7f52[_0x498011(0x48c)]((_0x812d20,_0x260e35)=>{const _0x5c884a=_0x498011;let _0x11db1d=_0x139078[_0x5c884a(0x34b)](_0x18b997=>_0x18b997['id']===_0x812d20['fieldId'])??_0x139078[0x0],_0x1a37ab=Aa(_0x11db1d);return _0x3fc05f(_0x5c884a(0x1b4),{'className':_0x5c884a(0x39c),'children':[_0x3fc05f(_0x5c884a(0x332),{'className':_0x5c884a(0x28b),'children':[_0x1bfcde(_0x103c6a,{'value':_0x812d20['fieldId'],'options':_0x139078[_0x5c884a(0x48c)](_0x1233b4=>({'value':_0x1233b4['id'],'label':_0x1233b4['name']})),'onChange':_0x11fa9e=>{const _0x49b008=_0x5c884a;let _0x3f5fd1=_0x139078[_0x49b008(0x34b)](_0xbcc4a0=>_0xbcc4a0['id']===_0x11fa9e);if(!_0x3f5fd1)return;let _0x5f36b8=Aa(_0x3f5fd1)[0x0];_0x2e6c30(ka(_0x3dc87c,_0x260e35,Oa(_0x3f5fd1,_0x5f36b8)));}}),_0x1bfcde(_0x29df96,{'type':_0x5c884a(0x189),'variant':_0x5c884a(0x22e),'aria-label':_0x168c8e['t'](_0x5c884a(0x2c3)),'className':_0x5c884a(0x2a8),'onClick':()=>_0x2e6c30(Da(_0x3dc87c,_0x4a7f52[_0x5c884a(0x449)]((_0x224430,_0x42428d)=>_0x42428d!==_0x260e35))),'children':_0x1bfcde(_0x2967a2,{})})]}),_0x1bfcde(_0x103c6a,{'value':_0x812d20[_0x5c884a(0x233)],'options':_0x1a37ab[_0x5c884a(0x48c)](_0x3b2996=>({'value':_0x3b2996,'label':_0x168c8e['t'](Ca[_0x3b2996])})),'onChange':_0x4a5ad1=>{const _0x370e4d=_0x5c884a;let _0xc82a19=_0x1a37ab[_0x370e4d(0x34b)](_0x138852=>_0x138852===_0x4a5ad1);_0xc82a19&&_0x2e6c30(ka(_0x3dc87c,_0x260e35,{'operator':_0xc82a19,'operand':ja(_0x11db1d)}));}}),Ma(_0x812d20[_0x5c884a(0x233)])&&_0x1bfcde(Ea,{'field':_0x11db1d,'value':_0x812d20[_0x5c884a(0x482)],'onChange':_0x21f6f4=>_0x2e6c30(ka(_0x3dc87c,_0x260e35,{'operand':_0x21f6f4}))})]},Fa(_0x4a7f52,_0x812d20,_0x260e35));}),_0x3fc05f(_0x29df96,{'type':_0x498011(0x189),'variant':_0x498011(0x22e),'className':_0x498011(0x198),'disabled':!_0x139078[_0x498011(0x291)],'onClick':()=>{let _0x57edd9=_0x139078[0x0];if(!_0x57edd9)return;let _0x386372=Aa(_0x57edd9)[0x0];_0x2e6c30(Da(_0x3dc87c,[..._0x4a7f52,Oa(_0x57edd9,_0x386372)]));},'children':[_0x1bfcde(_0x5d1373,{}),_0x168c8e['t'](_0x498011(0x491))]}),_0x4a7f52['length']>0x0&&_0x1bfcde(_0x29df96,{'type':'button','variant':_0x498011(0x22e),'className':_0x498011(0x1f9),'onClick':_0x38d2ee,'children':_0x168c8e['t'](_0x498011(0x1e1))})]});}function Ea({disabled:_0x30ab94,field:_0x56ef56,onChange:_0x1d32b1,value:_0x4832cc}){const _0x12305b=_0x57c180;let _0x31541a=_0x3dc792(_0xc34a30),_0x81ab5a=_0x56ef56==null?void 0x0:_0x56ef56['type'];if(_0x81ab5a===_0x36d8a8[_0x12305b(0x3fc)]){let _0x591c7c=_0x4832cc===!0x0||_0x4832cc===_0x12305b(0x44f);return _0x3fc05f(_0x29df96,{'type':'button','variant':_0x12305b(0x450),'disabled':_0x30ab94,'className':'univer-w-full\x20univer-justify-start','onClick':()=>_0x1d32b1(!_0x591c7c),'children':[_0x1bfcde(_0x57ec08,{'checked':_0x591c7c,'disabled':_0x30ab94,'onChange':()=>void 0x0}),_0x591c7c?_0x31541a['t'](_0x12305b(0x2cc)):_0x31541a['t']('bases-dashboard-ui.dashboardInspector.unchecked')]});}return Ia(_0x81ab5a)?_0x30ab94?_0x1bfcde(_0x29df96,{'type':_0x12305b(0x189),'variant':_0x12305b(0x450),'className':_0x12305b(0x1f9),'disabled':!0x0,'children':_0x592859(_0x4832cc==null||_0x4832cc===''?void 0x0:String(_0x4832cc))[_0x12305b(0x23c)](_0x12305b(0x447))}):_0x1bfcde(_0x65183b,{'className':_0x12305b(0x1f9),'value':_0x592859(_0x4832cc==null||_0x4832cc===''?void 0x0:String(_0x4832cc))[_0x12305b(0x160)](),'onValueChange':_0x4ac6fc=>_0x1d32b1(_0x592859(_0x4ac6fc)[_0x12305b(0x23c)](_0x12305b(0x447)))}):Ra(_0x56ef56)?_0x1bfcde(_0x5ee40c,{'className':_0x12305b(0x1f9),'disabled':_0x30ab94,'value':Array[_0x12305b(0x268)](_0x4832cc)?_0x4832cc[_0x12305b(0x48c)](String):[],'options':Na(_0x56ef56),'onChange':_0x1d32b1}):_0x81ab5a===_0x36d8a8['SingleSelect']||_0x81ab5a===_0x36d8a8[_0x12305b(0x1fe)]||_0x81ab5a===_0x36d8a8[_0x12305b(0x17a)]?_0x1bfcde(_0x103c6a,{'className':'univer-w-full','disabled':_0x30ab94,'value':String(_0x4832cc??''),'options':[{'value':'','label':_0x31541a['t'](_0x12305b(0x270))},...Na(_0x56ef56)],'onChange':_0x1d32b1}):La(_0x81ab5a)?_0x1bfcde(_0x142183,{'className':_0x12305b(0x1f9),'allowEmpty':!0x0,'disabled':_0x30ab94,'value':Number[_0x12305b(0x281)](Number(_0x4832cc))?Number(_0x4832cc):null,'onChange':_0x394e5d=>_0x1d32b1(_0x394e5d??'')}):_0x1bfcde(_0x225487,{'disabled':_0x30ab94,'value':String(_0x4832cc??''),'placeholder':_0x31541a['t'](_0x12305b(0x390)),'onChange':_0x1d32b1});}function Da(_0x3ec8ac,_0x202e93){const _0x2dd5f7=_0x57c180;return{'conjunction':(_0x3ec8ac==null?void 0x0:_0x3ec8ac['conjunction'])??_0x26a62d[_0x2dd5f7(0x378)],'conditions':_0x202e93};}function Oa(_0x3ca048,_0x3d655c){return Ma(_0x3d655c)?{'fieldId':_0x3ca048['id'],'operator':_0x3d655c,'operand':ja(_0x3ca048)}:{'fieldId':_0x3ca048['id'],'operator':_0x3d655c};}function ka(_0x5f123f,_0x13264d,_0x27d7b0){const _0x4f1a49=_0x57c180;return Da(_0x5f123f,((_0x5f123f==null?void 0x0:_0x5f123f[_0x4f1a49(0x3cd)])??[])['map']((_0xa75213,_0x1db64e)=>_0x1db64e===_0x13264d?{..._0xa75213,..._0x27d7b0}:_0xa75213));}function Aa(_0x48bf38){const _0x38d56d=_0x57c180;let _0x5f2bc1=[_0x170c06[_0x38d56d(0x3e3)],_0x170c06[_0x38d56d(0x427)]];switch(_0x48bf38==null?void 0x0:_0x48bf38[_0x38d56d(0x498)]){case _0x36d8a8[_0x38d56d(0x3fb)]:case _0x36d8a8['Currency']:case _0x36d8a8[_0x38d56d(0x39d)]:case _0x36d8a8['Rating']:return[_0x170c06['IS'],_0x170c06[_0x38d56d(0x1e4)],_0x170c06['GREATER_THAN'],_0x170c06[_0x38d56d(0x402)],..._0x5f2bc1];case _0x36d8a8[_0x38d56d(0x1ca)]:case _0x36d8a8[_0x38d56d(0x231)]:case _0x36d8a8[_0x38d56d(0x232)]:return[_0x170c06['IS'],_0x170c06[_0x38d56d(0x1e4)],_0x170c06[_0x38d56d(0x260)],_0x170c06[_0x38d56d(0x46c)],..._0x5f2bc1];case _0x36d8a8[_0x38d56d(0x3fc)]:return[_0x170c06['IS'],_0x170c06['IS_NOT']];default:return[_0x170c06['IS'],_0x170c06[_0x38d56d(0x1e4)],_0x170c06[_0x38d56d(0x32a)],_0x170c06[_0x38d56d(0x2fb)],..._0x5f2bc1];}}function ja(_0x3793e0){const _0x415e2c=_0x57c180;return _0x3793e0?_0x3793e0['type']===_0x36d8a8[_0x415e2c(0x3fc)]?!0x1:Ia(_0x3793e0[_0x415e2c(0x498)])?_0x592859()[_0x415e2c(0x23c)](_0x415e2c(0x447)):Ra(_0x3793e0)?[]:'':'';}function Ma(_0x118ff5){const _0x24288d=_0x57c180;return _0x118ff5!==_0x170c06[_0x24288d(0x3e3)]&&_0x118ff5!==_0x170c06[_0x24288d(0x427)];}function Na(_0x3547c2){const _0x13f225=_0x57c180;var _0x1586ee;return(Array[_0x13f225(0x268)](_0x3547c2==null||(_0x1586ee=_0x3547c2[_0x13f225(0x163)])==null?void 0x0:_0x1586ee['options'])?_0x3547c2['config'][_0x13f225(0x35f)]:[])[_0x13f225(0x48c)]((_0x4f3643,_0x595828)=>{if(typeof _0x4f3643=='string')return{'label':_0x4f3643,'value':_0x4f3643};if(!Pa(_0x4f3643))return{'label':String(_0x595828+0x1),'value':String(_0x595828+0x1)};let _0x46791c=_0x4f3643,_0x2dffe7=String(_0x46791c['name']??_0x46791c['id']??_0x595828+0x1),_0x33709f=String(_0x46791c['id']??_0x2dffe7);return{'label':_0x2dffe7,'value':/^opt-\d+$/['test'](_0x33709f)?_0x2dffe7:_0x33709f};});}function Pa(_0x2542eb){const _0x21c98c=_0x57c180;return typeof _0x2542eb==_0x21c98c(0x177)&&!!_0x2542eb;}function Fa(_0x41cb7f,_0x5e5c33,_0x1b2dfc){const _0x59a732=_0x57c180;let _0x2920a4=JSON[_0x59a732(0x3a9)](_0x5e5c33);return _0x2920a4+'-'+_0x41cb7f['slice'](0x0,_0x1b2dfc)['filter'](_0x458f2d=>JSON[_0x59a732(0x3a9)](_0x458f2d)===_0x2920a4)[_0x59a732(0x291)];}function Ia(_0x1e3ad7){const _0x162364=_0x57c180;return _0x1e3ad7===_0x36d8a8['Date']||_0x1e3ad7===_0x36d8a8['CreatedAt']||_0x1e3ad7===_0x36d8a8[_0x162364(0x232)];}function La(_0x2c31a5){const _0x10ca8e=_0x57c180;return _0x2c31a5===_0x36d8a8['Number']||_0x2c31a5===_0x36d8a8[_0x10ca8e(0x218)]||_0x2c31a5===_0x36d8a8['Progress']||_0x2c31a5===_0x36d8a8['Rating'];}function Ra(_0x51997e){const _0x166a84=_0x57c180;var _0x511eb8;return(_0x51997e==null?void 0x0:_0x51997e['type'])===_0x36d8a8[_0x166a84(0x29c)]||(_0x51997e==null?void 0x0:_0x51997e['type'])===_0x36d8a8[_0x166a84(0x1fe)]||(_0x51997e==null?void 0x0:_0x51997e[_0x166a84(0x498)])===_0x36d8a8['Person']&&((_0x511eb8=_0x51997e[_0x166a84(0x163)])==null?void 0x0:_0x511eb8['allowMultiple'])===!0x0;}function za({base:_0x40a3e0,chartRuntime:_0x404974,onChange:_0x3884ed,onClose:_0x48651b,onSelectBackgroundImage:_0x548a7d,onSelectImage:_0x1c6c21,unitId:_0x3bbf49,widget:_0x4a18d5}){const _0x11f45e=_0x57c180;let _0x11dd8e=_0x3dc792(_0x20bf70),_0x10b9f4=_0x3dc792(_0xc34a30),_0x42ac73=_0x40a3e0['getSnapshot'](),_0x4a6bcf=_0x11f45e(0x31f)in _0x4a18d5?_0x42ac73[_0x11f45e(0x47e)][_0x4a18d5['tableId']]:void 0x0,_0xe46d19=_0x4a18d5[_0x11f45e(0x498)]===_0x925244['PivotChart']?_0x4a6bcf==null?void 0x0:_0x4a6bcf[_0x11f45e(0x46e)][_0x4a18d5[_0x11f45e(0x488)]]:void 0x0,_0xedd921=_0x10b9f4['t'](Ka(_0x4a18d5));return _0x3fc05f(_0x11f45e(0x351),{'data-dashboard-inspector':!0x0,'className':_0x11f45e(0x1a2),'children':[_0x3fc05f(_0x11f45e(0x356),{'className':'univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-px-4\x20dark:!univer-border-gray-700','children':[_0x1bfcde('h3',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0xedd921}),_0x1bfcde(_0x29df96,{'type':_0x11f45e(0x189),'size':_0x11f45e(0x3a6),'variant':_0x11f45e(0x22e),'aria-label':_0x10b9f4['t'](_0x11f45e(0x269)),'onClick':_0x48651b,'children':_0x1bfcde(_0x2967a2,{})})]}),_0x4a18d5[_0x11f45e(0x498)]===_0x925244['PivotChart']&&(Ga(_0xe46d19)&&_0x404974?_0x1bfcde(va,{'runtime':_0x404974,'sourceChart':_0xe46d19['config'][_0x11f45e(0x49c)],'sourceName':((_0x4a6bcf==null?void 0x0:_0x4a6bcf[_0x11f45e(0x3aa)])??'')+_0x11f45e(0x193)+_0xe46d19[_0x11f45e(0x3aa)],'widget':_0x4a18d5,'onChange':_0x3884ed,'onEditData':()=>{const _0x565936=_0x11f45e;_0x11dd8e[_0x565936(0x3fa)](_0x47e1b0['id'],{'unitId':_0x3bbf49,'tableId':_0x4a18d5['tableId'],'viewId':_0x4a18d5[_0x565936(0x488)]})[_0x565936(0x2cb)](()=>void 0x0);}}):_0x1bfcde(Ua,{'message':Ga(_0xe46d19)?_0x10b9f4['t'](_0x11f45e(0x267)):_0x10b9f4['t'](_0x11f45e(0x36f))})),_0x4a18d5[_0x11f45e(0x498)]===_0x925244['FormulaShape']&&_0x1bfcde(xa,{'base':_0x40a3e0,'widget':_0x4a18d5,'onChange':_0x3884ed,'onSelectBackgroundImage':_0x548a7d}),_0x4a18d5['type']===_0x925244[_0x11f45e(0x1fc)]&&_0x1bfcde(Va,{'base':_0x40a3e0,'onChange':_0x3884ed,'widget':_0x4a18d5}),_0x4a18d5[_0x11f45e(0x498)]===_0x925244[_0x11f45e(0x377)]&&_0x1bfcde(Ha,{'onChange':_0x3884ed,'widget':_0x4a18d5}),_0x4a18d5[_0x11f45e(0x498)]===_0x925244['Image']&&_0x1bfcde(Ba,{'onChange':_0x3884ed,'onSelectImage':_0x1c6c21,'widget':_0x4a18d5})]});}function Ba({onChange:_0x21d1d6,onSelectImage:_0xd6ad26,widget:_0x385448}){const _0x5aa66f=_0x57c180;let _0x5e92ec=_0x3dc792(_0xc34a30);return _0x3fc05f('div',{'className':_0x5aa66f(0x244),'children':[_0x3fc05f(_0x29df96,{'className':_0x5aa66f(0x1f9),'onClick':()=>_0xd6ad26()[_0x5aa66f(0x2bd)](_0x4566a7=>_0x4566a7&&_0x21d1d6({..._0x385448,'source':_0x4566a7[_0x5aa66f(0x153)],'sourceType':_0x4566a7[_0x5aa66f(0x407)],'alt':_0x4566a7[_0x5aa66f(0x3aa)]}))[_0x5aa66f(0x2cb)](()=>void 0x0),'children':[_0x1bfcde(_0x5d1373,{}),_0x5e92ec['t'](_0x5aa66f(0x490))]}),_0x3fc05f(_0x5aa66f(0x372),{'className':_0x5aa66f(0x307),'children':[_0x1bfcde(_0x5aa66f(0x45e),{'children':_0x5e92ec['t'](_0x5aa66f(0x2b3))}),_0x1bfcde(_0x9bce40,{'items':[{'value':_0x5aa66f(0x3a5),'label':_0x5e92ec['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x5aa66f(0x32c),'label':_0x5e92ec['t']('bases-dashboard-ui.dashboardInspector.repeat')},{'value':_0x5aa66f(0x259),'label':_0x5e92ec['t'](_0x5aa66f(0x400))}],'value':_0x385448[_0x5aa66f(0x36d)]??_0x5aa66f(0x3a5),'onChange':_0x803547=>_0x21d1d6({..._0x385448,'displayMode':_0x803547})[_0x5aa66f(0x2cb)](()=>void 0x0)})]})]});}function Va({base:_0xdca773,onChange:_0x3b504e,widget:_0x19d706}){const _0x3d038e=_0x57c180;let _0x50d069=_0xdca773[_0x3d038e(0x257)]()[_0x3d038e(0x47e)][_0x19d706[_0x3d038e(0x31f)]],_0x2211ef=_0x50d069==null?void 0x0:_0x50d069[_0x3d038e(0x3d3)]['find'](_0x4dabd5=>_0x50d069[_0x3d038e(0x46e)][_0x4dabd5]),_0x2c58e6=_0x2211ef?_0x50d069==null?void 0x0:_0x50d069['views'][_0x2211ef]:void 0x0,_0x3277b0=_0x50d069&&_0x2c58e6?_0x20d50d(_0x50d069,_0x2c58e6):[];return _0x1bfcde(Ta,{'fields':_0x3277b0,'filter':_0x19d706[_0x3d038e(0x449)],'onChange':_0x11b53c=>_0x3b504e({..._0x19d706,'filter':_0x11b53c})[_0x3d038e(0x2cb)](()=>void 0x0),'onClear':()=>_0x3b504e({..._0x19d706,'filter':null})[_0x3d038e(0x2cb)](()=>void 0x0)});}function Ha({onChange:_0xee419e,widget:_0x5d8ef8}){const _0x26fecf=_0x57c180;let _0x169fbb=_0x3dc792(_0xc34a30),_0x40aa83=_0x3dc792(_0x2f0481),_0x2c9c1b=_0x1cdd28(()=>_0x40aa83['currentTheme$'],_0x40aa83[_0x26fecf(0x284)](),!0x1,[_0x40aa83]),_0x413790=Br(_0x5d8ef8),_0x4cacc3=_0x470f87=>_0xee419e({..._0x5d8ef8,'appearance':{..._0x413790,..._0x470f87}})['catch'](()=>void 0x0);return _0x3fc05f('div',{'className':'univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','children':[_0x1bfcde(_0x98f9d1,{'defaultValue':Vr(_0x5d8ef8['document']),'rows':0x8,'onBlur':_0x2d8f69=>_0xee419e({..._0x5d8ef8,'document':Hr(_0x5d8ef8[_0x26fecf(0x3c8)],_0x2d8f69['target']['value'])})[_0x26fecf(0x2cb)](()=>void 0x0)}),_0x1bfcde(_0x14a84b,{'emptyLabel':_0x169fbb['t'](_0x26fecf(0x3b0)),'label':_0x169fbb['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x2c9c1b[_0x26fecf(0x387)][0x0],'resetLabel':_0x169fbb['t'](_0x26fecf(0x459)),'value':_0x413790[_0x26fecf(0x26f)]??null,'onChange':_0x1144fd=>_0x4cacc3({'backgroundColor':_0x1144fd??void 0x0})}),_0x1bfcde(_0x14a84b,{'emptyLabel':_0x169fbb['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x169fbb['t'](_0x26fecf(0x354)),'pickerFallbackValue':_0x2c9c1b['gray'][0x3e8],'resetLabel':_0x169fbb['t'](_0x26fecf(0x459)),'value':_0x413790[_0x26fecf(0x386)]??null,'onChange':_0x39fe22=>_0x4cacc3({'textColor':_0x39fe22??void 0x0})}),_0x1bfcde(Wa,{'label':_0x169fbb['t'](_0x26fecf(0x1aa)),'children':_0x1bfcde(_0x9bce40,{'items':[{'value':'left','label':_0x169fbb['t'](_0x26fecf(0x26e))},{'value':_0x26fecf(0x28e),'label':_0x169fbb['t'](_0x26fecf(0x3e2))},{'value':'right','label':_0x169fbb['t'](_0x26fecf(0x349))}],'value':_0x413790[_0x26fecf(0x283)],'onChange':_0x5412a1=>_0x4cacc3({'alignment':_0x5412a1})})}),_0x3fc05f(Wa,{'label':_0x169fbb['t']('bases-dashboard-ui.dashboardInspector.textSize'),'children':[_0x1bfcde(_0x9bce40,{'items':[{'value':'auto','label':_0x169fbb['t'](_0x26fecf(0x2a7))},{'value':'custom','label':_0x169fbb['t'](_0x26fecf(0x1f3))}],'value':_0x413790[_0x26fecf(0x204)],'onChange':_0x4b3cbf=>_0x4cacc3({'fontSizeMode':_0x4b3cbf})}),_0x413790[_0x26fecf(0x204)]===_0x26fecf(0x29e)&&_0x1bfcde(_0x142183,{'className':'univer-mt-2','min':0xa,'max':0x78,'value':_0x413790['fontSize'],'onChange':_0x586d23=>_0x4cacc3({'fontSize':_0x586d23??0x12,'fontSizeMode':'custom'})})]})]});}function Ua({message:_0x51b711}){const _0x382c78=_0x57c180;return _0x1bfcde(_0x382c78(0x332),{'className':_0x382c78(0x3a0),'children':_0x51b711});}function Wa({children:_0x374cd3,label:_0x2d7da7}){const _0xaa15e2=_0x57c180;return _0x3fc05f(_0xaa15e2(0x332),{'role':_0xaa15e2(0x208),'aria-':!0x0,'className':_0xaa15e2(0x307),'children':[_0x1bfcde(_0xaa15e2(0x45e),{'children':_0x2d7da7}),_0x374cd3]});}function Ga(_0x1aff52){const _0xd2c244=_0x57c180;return(_0x1aff52==null?void 0x0:_0x1aff52[_0xd2c244(0x498)])===_0x4e046d[_0xd2c244(0x496)]&&typeof _0x1aff52[_0xd2c244(0x163)]==_0xd2c244(0x177)&&_0x1aff52[_0xd2c244(0x163)]!==null&&_0xd2c244(0x3b9)in _0x1aff52[_0xd2c244(0x163)]&&'chart'in _0x1aff52[_0xd2c244(0x163)];}function Ka(_0x51d2f8){const _0x1fda60=_0x57c180;switch(_0x51d2f8[_0x1fda60(0x498)]){case _0x925244[_0x1fda60(0x404)]:return'bases-dashboard-ui.dashboard.pivotChart';case _0x925244[_0x1fda60(0x1fc)]:return _0x1fda60(0x161);case _0x925244[_0x1fda60(0x377)]:return _0x1fda60(0x467);case _0x925244[_0x1fda60(0x37d)]:return _0x1fda60(0x431);case _0x925244[_0x1fda60(0x1a9)]:return _0x1fda60(0x4a7);}}function qa({onDelete:_0x396d21,onEdit:_0xe3d488}){const _0x5f3eba=_0x57c180;let _0x369bac=_0x3dc792(_0xc34a30),_0x477217=_0x369bac['t'](_0x5f3eba(0x47f)),_0x353438=_0x369bac['t'](_0x5f3eba(0x3df)),_0x183af9=_0x369bac['t'](_0x5f3eba(0x2ca));return _0x1bfcde(_0x1f43a4,{'items':[{'type':_0x5f3eba(0x224),'children':_0x3fc05f(_0x5f3eba(0x45e),{'className':_0x5f3eba(0x3f2),'children':[_0x1bfcde(_0x473cd9,{'className':_0x5f3eba(0x375),'aria-hidden':_0x5f3eba(0x44f)}),_0x1bfcde(_0x5f3eba(0x45e),{'children':_0x477217})]}),'onSelect':_0xe3d488},{'type':'separator'},{'type':_0x5f3eba(0x224),'variant':_0x5f3eba(0x36e),'children':_0x3fc05f(_0x5f3eba(0x45e),{'className':_0x5f3eba(0x3f2),'children':[_0x1bfcde(_0x4e3f72,{'className':_0x5f3eba(0x375),'aria-hidden':_0x5f3eba(0x44f)}),_0x1bfcde('span',{'children':_0x353438})]}),'onSelect':_0x396d21}],'children':_0x1bfcde(_0x29df96,{'type':_0x5f3eba(0x189),'size':_0x5f3eba(0x3a6),'variant':'text','title':_0x183af9,'aria-label':_0x183af9,'className':_0x5f3eba(0x329),'children':_0x1bfcde(_0x5e1024,{'className':_0x5f3eba(0x375),'aria-hidden':'true'})})});}function Ja({dashboardId:_0xacd42,presentation:_0x277e22=!0x1,unitId:_0x1d14d7}){const _0x2cadbe=_0x57c180;let _0x111af2=_0x3dc792(_0x20bf70),_0x10f848=_0x3dc792(_0x366739),_0x4c4a19=_0x3dc792(_0x26f888),_0x4e674b=_0x3dc792(_0xfa1040),_0x32190d=_0x3dc792(_0xc34a30),_0x550c5d=_0x3dc792(_0x1e99fb),_0x3ec1a8=_0x3dc792(_0x21d906),_0xb7cece=_0x26ca56(null),[_0x118ec9,_0x13ff8d]=_0x155c41(!0x1),[_0x1c167f,_0x57ad6d]=_0x155c41(),[_0x4f9cef,_0x4dad17]=_0x155c41(!0x1),[_0x22578e,_0x505035]=_0x155c41(()=>new Map()),_0x1bc81d=_0xd5c68e((_0x3ad2e9,_0x138c43)=>{_0x505035(_0x41d875=>{const _0x3f7a50=_0x44d8;let _0x3f6134=new Map(_0x41d875);return _0x138c43?_0x3f6134[_0x3f7a50(0x33a)](_0x3ad2e9,_0x138c43):_0x3f6134[_0x3f7a50(0x33f)](_0x3ad2e9),_0x3f6134;});},[]),_0x3fc8c5=_0x1cdd28(()=>_0x550c5d['change$']['pipe'](_0x3b1cb4(()=>_0x550c5d[_0x2cadbe(0x325)](_0x1d14d7,_0xacd42))),_0x550c5d[_0x2cadbe(0x325)](_0x1d14d7,_0xacd42),!0x1,[_0xacd42,_0x550c5d,_0x1d14d7]),_0x13d885=_0x4e674b[_0x2cadbe(0x2ee)](_0x1d14d7,_0x1be7ab[_0x2cadbe(0x360)]),_0xeae169=_0x1cdd28(()=>_0x3ec1a8[_0x2cadbe(0x316)],{'undos':0x0,'redos':0x0},!0x1,[_0x3ec1a8]),_0x12bd0c=gr(_0x1d14d7,_0xacd42);if(_0x5a872b(()=>{const _0x41b981=_0x2cadbe;_0x4e674b[_0x41b981(0x350)](_0x1d14d7),_0x4e674b[_0x41b981(0x1e9)](_0x1d14d7);},[_0x4e674b,_0x1d14d7]),_0x5a872b(()=>{const _0xa138cc=_0x2cadbe;let _0x58ece6=_0xb7cece[_0xa138cc(0x18a)],_0x5c7420=_0x58ece6==null?void 0x0:_0x58ece6[_0xa138cc(0x3af)];if(!_0x58ece6||!_0x5c7420)return;let _0x13f4d2=()=>_0x4dad17(_0x5c7420[_0xa138cc(0x28c)]===_0x5c7420[_0xa138cc(0x42b)]),_0x1b8bd2=_0x329236=>{const _0xa586c1=_0xa138cc;_0x329236[_0xa586c1(0x3d8)]==='Escape'&&!_0x329236['defaultPrevented']&&_0x5c7420['fullscreenElement']===_0x5c7420[_0xa586c1(0x42b)]&&_0x5c7420[_0xa586c1(0x2c2)]()[_0xa586c1(0x2cb)](_0x13f4d2);};return _0x5c7420['addEventListener'](_0xa138cc(0x292),_0x13f4d2),_0x5c7420['addEventListener']('keydown',_0x1b8bd2),()=>{const _0xca43cd=_0xa138cc;_0x5c7420[_0xca43cd(0x3ec)]('fullscreenchange',_0x13f4d2),_0x5c7420[_0xca43cd(0x3ec)](_0xca43cd(0x37c),_0x1b8bd2);};},[]),!_0x3fc8c5||!_0x13d885)return null;let _0x5aa72c=_0x574832=>_0x111af2[_0x2cadbe(0x3fa)](_0x5a7b78['id'],{'unitId':_0x1d14d7,'dashboardId':_0xacd42,'widget':_0x574832})[_0x2cadbe(0x2cb)](()=>void 0x0),_0xd28d1f=(_0x5ce7ef,_0x4405b3,_0x4d147f)=>{const _0x5af714=_0x2cadbe;let _0x420d09=Math[_0x5af714(0x203)](0x0,..._0x3fc8c5['widgetOrder'][_0x5af714(0x21e)](_0x5126d0=>{const _0x3d89d6=_0x5af714;var _0x560e2c;let _0x100865=(_0x560e2c=_0x3fc8c5[_0x3d89d6(0x1d3)][_0x5126d0])==null?void 0x0:_0x560e2c[_0x3d89d6(0x424)];return _0x100865?[_0x100865[_0x3d89d6(0x293)]+_0x100865[_0x3d89d6(0x17c)]]:[];})),_0x20db75=_0x5af714(0x47d)+_0x2bbf35(0x8),_0x4adb21={'column':0x0,'row':_0x420d09,'columnSpan':_0x4405b3,'rowSpan':_0x4d147f};switch(_0x5ce7ef[_0x5af714(0x498)]){case _0x925244['PivotChart']:return _0x5aa72c({..._0x5ce7ef,'id':_0x20db75,'layout':_0x4adb21});case _0x925244[_0x5af714(0x1fc)]:return _0x5aa72c({..._0x5ce7ef,'id':_0x20db75,'layout':_0x4adb21});case _0x925244['Text']:return _0x5aa72c({..._0x5ce7ef,'id':_0x20db75,'layout':_0x4adb21});case _0x925244[_0x5af714(0x37d)]:return _0x5aa72c({..._0x5ce7ef,'id':_0x20db75,'layout':_0x4adb21});case _0x925244[_0x5af714(0x1a9)]:return _0x5aa72c({..._0x5ce7ef,'id':_0x20db75,'layout':_0x4adb21});}},_0x1e9589=_0x13d885[_0x2cadbe(0x257)](),_0x32e48f=_0x1e9589[_0x2cadbe(0x1a0)][_0x2cadbe(0x21e)](_0x673db2=>{const _0xaeb9b6=_0x2cadbe;let _0x38c94a=_0x1e9589[_0xaeb9b6(0x47e)][_0x673db2];if(!_0x38c94a)return[];let _0x582ba5=_0x38c94a['viewOrder'][_0xaeb9b6(0x21e)](_0x9161b2=>{const _0x356cb7=_0xaeb9b6;let _0x2f2bb7=_0x38c94a[_0x356cb7(0x46e)][_0x9161b2];return no(_0x2f2bb7)?[{'type':_0x356cb7(0x224),'children':_0x2f2bb7[_0x356cb7(0x3aa)],'onSelect':()=>_0xd28d1f({'type':_0x925244[_0x356cb7(0x404)],'tableId':_0x673db2,'pivotViewId':_0x9161b2,'chart':{..._0x2f2bb7['config'][_0x356cb7(0x49c)]}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0x38c94a[_0xaeb9b6(0x3aa)],'options':[..._0x582ba5,..._0x582ba5['length']?[{'type':'separator'}]:[],{'type':_0xaeb9b6(0x224),'children':_0x32190d['t'](_0xaeb9b6(0x161)),'onSelect':()=>_0xd28d1f({'type':_0x925244[_0xaeb9b6(0x1fc)],'tableId':_0x673db2,'filter':null},0x6,0x8)}]}];}),_0xb09241=[..._0x32e48f,..._0x32e48f[_0x2cadbe(0x291)]?[{'type':_0x2cadbe(0x168)}]:[],{'type':_0x2cadbe(0x224),'children':_0x32190d['t'](_0x2cadbe(0x467)),'onSelect':()=>_0xd28d1f({'type':_0x925244[_0x2cadbe(0x377)],'document':Qa()},0x4,0x6)},{'type':_0x2cadbe(0x224),'children':_0x32190d['t'](_0x2cadbe(0x431)),'onSelect':()=>$a(_0x10f848)[_0x2cadbe(0x2bd)](_0x1a0741=>_0x1a0741&&_0xd28d1f({'type':_0x925244[_0x2cadbe(0x37d)],'source':_0x1a0741['source'],'sourceType':_0x1a0741[_0x2cadbe(0x407)],'alt':_0x1a0741[_0x2cadbe(0x3aa)],'displayMode':_0x2cadbe(0x3a5)},0x4,0x6))},{'type':_0x2cadbe(0x224),'children':_0x32190d['t'](_0x2cadbe(0x4a7)),'onSelect':()=>{const _0xb8ea24=_0x2cadbe;let _0x5e7be5=_0x1e9589[_0xb8ea24(0x1a0)][_0xb8ea24(0x34b)](_0xa7a326=>_0x1e9589[_0xb8ea24(0x47e)][_0xa7a326]);_0x5e7be5&&_0xd28d1f({'type':_0x925244[_0xb8ea24(0x1a9)],'tableId':_0x5e7be5,'shapeType':_0x54b8df[_0xb8ea24(0x39a)],'shapeData':_0x46c966(),'description':_0x32190d['t'](_0xb8ea24(0x4a7))},0x4,0x6);}}],_0x1cbfea=_0x1c167f?_0x3fc8c5[_0x2cadbe(0x1d3)][_0x1c167f]:void 0x0,_0x216241=async()=>{const _0x4ee4ed=_0x2cadbe;let _0x516e5d=_0xb7cece[_0x4ee4ed(0x18a)];if(!_0x516e5d)return;let _0x1c587d=_0x516e5d[_0x4ee4ed(0x3af)];if(_0x1c587d['fullscreenElement']===_0x1c587d['documentElement']){await _0x1c587d['exitFullscreen']();return;}await _0x1c587d[_0x4ee4ed(0x42b)][_0x4ee4ed(0x312)]();},_0xfa4155=_0x277e22||_0x4f9cef,_0x473924=_0x12bd0c&&!_0xfa4155;return _0x3fc05f(_0x2cadbe(0x332),{'ref':_0xb7cece,'className':_0x2cadbe(0x19b)+(_0x4f9cef?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':_0x2cadbe(0x2f3))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[!_0xfa4155&&_0x3fc05f(_0x2cadbe(0x356),{'className':_0x2cadbe(0x27d),'children':[_0x1bfcde(_0x54efa1,{'className':_0x2cadbe(0x1be)}),_0x1bfcde('h2',{'className':_0x2cadbe(0x1c3),'children':_0x3fc8c5[_0x2cadbe(0x3aa)]}),_0x1bfcde(_0x4603f1,{'target':{'unitId':_0x1d14d7,'objectId':_0x23d43e(_0xacd42),'objectType':_0x368318[_0x2cadbe(0x240)]},'name':_0x3fc8c5['name'],'commandId':_0x2a9b6a['id'],'exists':()=>!!_0x550c5d[_0x2cadbe(0x325)](_0x1d14d7,_0xacd42)},_0x1d14d7+'/'+_0xacd42),_0x1bfcde(_0xf99d34,{'unitId':_0x1d14d7}),_0x1bfcde(_0x29df96,{'type':_0x2cadbe(0x189),'size':_0x2cadbe(0x3a6),'variant':'text','aria-label':_0x32190d['t'](_0x2cadbe(0x23b)),'disabled':!_0x12bd0c||_0xeae169['undos']===0x0,'onClick':()=>_0x111af2['executeCommand'](_0x114bc6['id'])[_0x2cadbe(0x2cb)](()=>void 0x0),'children':_0x1bfcde(_0x1d73f1,{})}),_0x1bfcde(_0x29df96,{'type':_0x2cadbe(0x189),'size':_0x2cadbe(0x3a6),'variant':'text','aria-label':_0x32190d['t'](_0x2cadbe(0x352)),'disabled':!_0x12bd0c||_0xeae169['redos']===0x0,'onClick':()=>_0x111af2['executeCommand'](_0x409470['id'])[_0x2cadbe(0x2cb)](()=>void 0x0),'children':_0x1bfcde(_0x9460ca,{})}),_0x1bfcde(_0x29df96,{'type':_0x2cadbe(0x189),'size':_0x2cadbe(0x3a6),'variant':_0x2cadbe(0x22e),'aria-label':_0x32190d['t'](_0x2cadbe(0x1a3)),'onClick':()=>_0x216241()[_0x2cadbe(0x2cb)](()=>void 0x0),'children':_0x1bfcde(_0x7dfdc8,{})}),_0x1bfcde(_0x1f43a4,{'items':_0xb09241,'children':_0x3fc05f(_0x29df96,{'variant':_0x2cadbe(0x230),'disabled':!_0x12bd0c,'children':[_0x1bfcde(_0x5d1373,{}),_0x32190d['t'](_0x2cadbe(0x479))]})})]}),_0x3fc05f(_0x2cadbe(0x332),{'className':_0x2cadbe(0x32d),'children':[_0x1bfcde(_0x2cadbe(0x332),{'className':'univer-min-w-0\x20univer-flex-1','children':_0x1bfcde(la,{'dashboard':_0x3fc8c5,'dragLabel':_0x32190d['t'](_0x2cadbe(0x183)),'editable':_0x473924,'resizeLabel':_0x32190d['t'](_0x2cadbe(0x182)),'widgetLabel':_0x8d8cad=>_0x32190d['t'](to(_0x8d8cad['type'])),'selectedWidgetId':_0x473924?_0x1c167f:void 0x0,'onSelectWidget':_0x473924?_0x1f2cee=>{_0x57ad6d(_0x1f2cee),_0x1f2cee||_0x13ff8d(!0x1);}:void 0x0,'onLayoutsCommit':_0x1f0994=>{const _0x43f91a=_0x2cadbe;let _0x4e509b={..._0x3fc8c5[_0x43f91a(0x1d3)]};_0x1f0994[_0x43f91a(0x201)]((_0x3f227d,_0xe98b46)=>{let _0x917826=_0x4e509b[_0xe98b46];_0x917826&&(_0x4e509b[_0xe98b46]={..._0x917826,'layout':_0x3f227d});}),_0x111af2[_0x43f91a(0x3fa)](_0x16ed85['id'],{'unitId':_0x1d14d7,'dashboard':{..._0x3fc8c5,'widgets':_0x4e509b}})[_0x43f91a(0x2cb)](()=>void 0x0);},'renderWidget':_0x2ffbe9=>_0x1bfcde(Ya,{'base':_0x13d885,'dashboard':_0x3fc8c5,'unitId':_0x1d14d7,'widget':_0x2ffbe9,'onChange':_0x5aa72c,'onChartRuntimeChange':_0x1bc81d}),'renderWidgetActions':_0x26b0be=>_0x1bfcde(qa,{'onEdit':()=>{_0x57ad6d(_0x26b0be['id']),_0x13ff8d(!0x0);},'onDelete':()=>{const _0x5aeab1=_0x2cadbe;_0x1c167f===_0x26b0be['id']&&(_0x57ad6d(void 0x0),_0x13ff8d(!0x1)),_0x111af2[_0x5aeab1(0x3fa)](_0x6dd3ea['id'],{'unitId':_0x1d14d7,'dashboardId':_0xacd42,'widgetId':_0x26b0be['id']})[_0x5aeab1(0x2cb)](()=>void 0x0);}})})}),_0x473924&&_0x118ec9&&_0x1cbfea&&_0x1bfcde(za,{'base':_0x13d885,'chartRuntime':_0x22578e[_0x2cadbe(0x392)](_0x1cbfea['id']),'unitId':_0x1d14d7,'widget':_0x1cbfea,'onChange':_0x5aa72c,'onClose':()=>_0x13ff8d(!0x1),'onSelectBackgroundImage':()=>eo(_0x4c4a19),'onSelectImage':()=>$a(_0x10f848)})]})]});}function Ya({base:_0x2c3e9b,dashboard:_0x3453e1,onChange:_0x2b3fc9,onChartRuntimeChange:_0x2eeb51,unitId:_0x1c1414,widget:_0x40a587}){const _0x51078d=_0x57c180;let _0x12ee03=_0x4561c2(()=>_0x3453e1[_0x51078d(0x396)][_0x51078d(0x21e)](_0x505e36=>{const _0x801a9d=_0x51078d;let _0x1cb9bb=_0x3453e1['widgets'][_0x505e36];return(_0x1cb9bb==null?void 0x0:_0x1cb9bb[_0x801a9d(0x498)])===_0x925244[_0x801a9d(0x1fc)]&&_0x1cb9bb[_0x801a9d(0x31f)]===(_0x801a9d(0x31f)in _0x40a587?_0x40a587[_0x801a9d(0x31f)]:'')&&_0x1cb9bb[_0x801a9d(0x449)]?[_0x1cb9bb['filter']]:[];}),[_0x3453e1,_0x40a587]);switch(_0x40a587[_0x51078d(0x498)]){case _0x925244[_0x51078d(0x404)]:return _0x1bfcde(Lr,{'filters':_0x12ee03,'unitId':_0x1c1414,'widget':_0x40a587,'onRuntimeChange':_0x2eeb51});case _0x925244[_0x51078d(0x1fc)]:return _0x1bfcde(wa,{'fields':Xa(_0x2c3e9b,_0x40a587[_0x51078d(0x31f)]),'filter':_0x40a587[_0x51078d(0x449)],'onChange':_0x24c9a7=>_0x2b3fc9({..._0x40a587,'filter':_0x24c9a7})[_0x51078d(0x2cb)](()=>void 0x0)});case _0x925244[_0x51078d(0x377)]:return _0x1bfcde(Ur,{'widget':_0x40a587});case _0x925244[_0x51078d(0x37d)]:return _0x1bfcde(Za,{'widget':_0x40a587});case _0x925244[_0x51078d(0x1a9)]:return _0x1bfcde(Dr,{'dashboardId':_0x3453e1['id'],'unitId':_0x1c1414,'widget':_0x40a587});}}function Xa(_0x1f2645,_0x1ccd6a){const _0x399d7b=_0x57c180;let _0x1a6f9d=_0x1f2645['getSnapshot']()[_0x399d7b(0x47e)][_0x1ccd6a],_0x232b4c=_0x1a6f9d==null?void 0x0:_0x1a6f9d[_0x399d7b(0x3d3)][_0x399d7b(0x34b)](_0x4e49e7=>_0x1a6f9d[_0x399d7b(0x46e)][_0x4e49e7]),_0x12fc54=_0x232b4c?_0x1a6f9d==null?void 0x0:_0x1a6f9d[_0x399d7b(0x46e)][_0x232b4c]:void 0x0;return _0x1a6f9d&&_0x12fc54?_0x20d50d(_0x1a6f9d,_0x12fc54):[];}function Za({widget:_0x5557fb}){const _0x8f665b=_0x57c180;let _0x46f32c=_0x3dc792(_0x366739),[_0x369966,_0x2548dc]=_0x155c41(_0x5557fb[_0x8f665b(0x407)]===_0x2e9f9a['UUID']?'':_0x5557fb[_0x8f665b(0x153)]);return _0x5a872b(()=>{const _0x5d8f15=_0x8f665b;let _0x2a6ceb=!0x0;return _0x46f32c[_0x5d8f15(0x1df)](_0x5557fb['source'],_0x5557fb[_0x5d8f15(0x407)])[_0x5d8f15(0x2bd)](_0x41beb6=>{_0x2a6ceb&&_0x2548dc(_0x41beb6);})['catch'](()=>void 0x0),()=>{_0x2a6ceb=!0x1;};},[_0x46f32c,_0x5557fb[_0x8f665b(0x153)],_0x5557fb['sourceType']]),_0x369966?_0x1bfcde('div',{'role':_0x5557fb[_0x8f665b(0x335)]?_0x8f665b(0x241):void 0x0,'aria-label':_0x5557fb['alt']||void 0x0,'data-dashboard-image':_0x5557fb['id'],'className':'univer-h-full\x20univer-w-full\x20univer-bg-transparent','style':vr(_0x369966,_0x5557fb[_0x8f665b(0x36d)])}):null;}function Qa(){let _0x5f4b94=_0x1d37b5(new Set());return{'id':'dashboard-text-'+_0x2bbf35(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x5f4b94}]},'documentStyle':{}};}function $a(_0x2ded1a){return new Promise(_0xf068ca=>{const _0x3f11b0=_0x44d8;let _0x3cf0a3=document['createElement'](_0x3f11b0(0x1c8));_0x3cf0a3['type']=_0x3f11b0(0x205),_0x3cf0a3[_0x3f11b0(0x477)]=_0x3f11b0(0x483),_0x3cf0a3['addEventListener'](_0x3f11b0(0x2d0),()=>{const _0x17ca35=_0x3f11b0;var _0xad8481;let _0x209796=(_0xad8481=_0x3cf0a3[_0x17ca35(0x2d4)])==null?void 0x0:_0xad8481[0x0];if(!_0x209796){_0xf068ca(null);return;}_0x2ded1a[_0x17ca35(0x3ce)](_0x209796)['then'](_0x46c44c=>{const _0x296b64=_0x17ca35;if(!_0x46c44c[_0x296b64(0x153)]||_0x46c44c[_0x296b64(0x407)]===void 0x0){_0xf068ca(null);return;}_0xf068ca({'name':_0x46c44c['name'],'source':_0x46c44c['source'],'sourceType':_0x46c44c[_0x296b64(0x407)]});})[_0x17ca35(0x2cb)](()=>_0xf068ca(null));},{'once':!0x0}),_0x3cf0a3[_0x3f11b0(0x1d7)]();});}function eo(_0x301e75){return new Promise(_0x6d71ce=>{const _0x1e315c=_0x44d8;let _0x23ff7f=document['createElement'](_0x1e315c(0x1c8));_0x23ff7f[_0x1e315c(0x498)]=_0x1e315c(0x205),_0x23ff7f[_0x1e315c(0x477)]=_0x1e315c(0x483),_0x23ff7f[_0x1e315c(0x306)](_0x1e315c(0x2d0),()=>{const _0x4675b9=_0x1e315c;var _0x3a9f34;let _0x484e76=(_0x3a9f34=_0x23ff7f['files'])==null?void 0x0:_0x3a9f34[0x0];if(!_0x484e76){_0x6d71ce(null);return;}_0x301e75[_0x4675b9(0x1e3)](_0x484e76)['then'](_0x32712c=>{const _0x38cd00=_0x4675b9;if(!(_0x32712c!=null&&_0x32712c[_0x38cd00(0x153)])){_0x6d71ce(null);return;}if(_0x32712c[_0x38cd00(0x2d9)]){let _0x5851ab=new Image();_0x5851ab['src']=_0x32712c[_0x38cd00(0x2d9)],_0x301e75[_0x38cd00(0x176)](_0x32712c[_0x38cd00(0x153)],_0x32712c[_0x38cd00(0x2ae)],_0x5851ab);}_0x6d71ce({'source':_0x32712c[_0x38cd00(0x153)],'sourceType':_0x32712c[_0x38cd00(0x2ae)]});})[_0x4675b9(0x2cb)](()=>_0x6d71ce(null));},{'once':!0x0}),_0x23ff7f['click']();});}function to(_0x4dae3e){const _0x1dfc72=_0x57c180;switch(_0x4dae3e){case _0x925244[_0x1dfc72(0x404)]:return _0x1dfc72(0x245);case _0x925244['TableFilter']:return _0x1dfc72(0x161);case _0x925244[_0x1dfc72(0x377)]:return _0x1dfc72(0x467);case _0x925244[_0x1dfc72(0x37d)]:return'bases-dashboard-ui.dashboard.image';case _0x925244[_0x1dfc72(0x1a9)]:return _0x1dfc72(0x4a7);}}function no(_0x1bec49){const _0x31c0bc=_0x57c180;return(_0x1bec49==null?void 0x0:_0x1bec49[_0x31c0bc(0x498)])===_0x4e046d['Pivot']&&typeof _0x1bec49['config']==_0x31c0bc(0x177)&&_0x1bec49[_0x31c0bc(0x163)]!==null&&_0x31c0bc(0x3b9)in _0x1bec49[_0x31c0bc(0x163)]&&_0x31c0bc(0x49c)in _0x1bec49[_0x31c0bc(0x163)];}const ro=[{'area':_0x3881d5[_0x57c180(0x3db)],'key':_0x57c180(0x174),'label':_0x57c180(0x3d6)},{'area':_0x3881d5[_0x57c180(0x438)],'key':_0x57c180(0x1ce),'label':_0x57c180(0x1cf)},{'area':_0x3881d5[_0x57c180(0x1ba)],'key':_0x57c180(0x2b5),'label':_0x57c180(0x1d5)},{'area':_0x3881d5['Value'],'key':'valueFields','label':_0x57c180(0x2a2)}],io=[{'value':_0x48c6be[_0x57c180(0x45d)],'localeKey':_0x57c180(0x34d)},{'value':_0x48c6be[_0x57c180(0x41d)],'localeKey':_0x57c180(0x432)},{'value':_0x48c6be[_0x57c180(0x2ec)],'localeKey':_0x57c180(0x3ea)},{'value':_0x48c6be[_0x57c180(0x394)],'localeKey':_0x57c180(0x1dd)},{'value':_0x48c6be[_0x57c180(0x203)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':_0x48c6be[_0x57c180(0x295)],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x48c6be[_0x57c180(0x3ad)],'localeKey':_0x57c180(0x276)},{'value':_0x48c6be[_0x57c180(0x15b)],'localeKey':_0x57c180(0x197)},{'value':_0x48c6be[_0x57c180(0x19d)],'localeKey':_0x57c180(0x1cd)},{'value':_0x48c6be[_0x57c180(0x33c)],'localeKey':_0x57c180(0x247)},{'value':_0x48c6be[_0x57c180(0x2f5)],'localeKey':'bases-dashboard-ui.pivot.variancePopulation'}];function ao(_0x1ff9ae){const _0x440547=_0x57c180;let {config:_0x8ae103,onChange:_0x4bdef9,table:_0x32e409}=_0x1ff9ae,_0x5c9820=_0x3dc792(_0xc34a30),[_0x305113,_0x24ad3a]=_0x155c41(_0x440547(0x2a4)),[_0x47f894,_0x1cfead]=_0x155c41(''),[_0x5ae43d,_0x3449ec]=_0x155c41(null),[_0x2f33dd,_0x555fd2]=_0x155c41(null),[_0x2d10c6,_0x39a23f]=_0x155c41(null),[_0x32efb3,_0x5b0993]=_0x155c41(null),_0x50aaf6=_0x26ca56(null),_0x4ae381=_0x4561c2(()=>_0x32e409[_0x440547(0x25f)][_0x440547(0x21e)](_0xaf4462=>{const _0x43312e=_0x440547;let _0x4f9e39=_0x32e409['fields'][_0xaf4462];return _0x4f9e39&&_0x4f9e39[_0x43312e(0x380)]!==!0x0&&_0x4f9e39[_0x43312e(0x498)]!==_0x36d8a8[_0x43312e(0x1e7)]?[_0x4f9e39]:[];})[_0x440547(0x449)](_0x1d946b=>_0x1d946b[_0x440547(0x3aa)]['toLocaleLowerCase']()[_0x440547(0x300)](_0x47f894[_0x440547(0x3ae)]()[_0x440547(0x1f8)]())),[_0x47f894,_0x32e409]),_0x1b0137=_0x176b52=>{const _0x231013=_0x440547;let _0x5b4266=_0x4ae6f2(_0x32e409,_0x8ae103['pivot']);try{_0x176b52(_0x5b4266),_0x4bdef9({'pivot':_0x5b4266[_0x231013(0x164)]()});}finally{_0x5b4266['dispose']();}},_0x41fc29=(_0x509094,_0x5e6b7d)=>{_0x5ae43d&&(_0x1b0137(_0x5ea31b=>{const _0x5ac9f3=_0x44d8;if(_0x5ae43d[_0x5ac9f3(0x207)]===_0x5ac9f3(0x32e)){let _0x1a1740=_0x5ea31b[_0x5ac9f3(0x476)](_0x5ae43d['id']),_0x3133f1=_0x1a1740['area']===_0x509094&&_0x1a1740[_0x5ac9f3(0x44e)]<_0x5e6b7d?_0x5e6b7d-0x1:_0x5e6b7d;_0x5ea31b[_0x5ac9f3(0x3c2)](_0x5ae43d['id'],_0x509094,_0x3133f1);return;}mo(_0x5ea31b,_0x5ae43d['id'],_0x509094,_0x5e6b7d);}),_0x3449ec(null),_0x555fd2(null));};return _0x3fc05f(_0x440547(0x332),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col','children':[_0x1bfcde(_0x2e9f58,{'ariaLabel':_0x5c9820['t'](_0x440547(0x3f1)),'className':_0x440547(0x3ff),'items':[{'label':_0x5c9820['t']('bases-dashboard-ui.pivot.fields'),'panelId':_0x440547(0x152),'value':_0x440547(0x2a4)},{'label':_0x5c9820['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x440547(0x40e),'value':_0x440547(0x35f)}],'value':_0x305113,'onChange':_0x24ad3a}),_0x1bfcde(_0x440547(0x332),{'ref':_0x50aaf6,'className':_0x3c6675(_0x440547(0x333),_0x32f99e),'onDragOver':_0xc15175=>{const _0x3f4932=_0x440547;let _0x2499f6=_0x50aaf6[_0x3f4932(0x18a)];if(!_0x2499f6)return;let _0x53596c=_0x2499f6[_0x3f4932(0x213)]();_0xc15175[_0x3f4932(0x2fc)]<_0x53596c[_0x3f4932(0x2db)]+0x30?_0x2499f6[_0x3f4932(0x439)]-=0x10:_0xc15175[_0x3f4932(0x2fc)]>_0x53596c['bottom']-0x30&&(_0x2499f6[_0x3f4932(0x439)]+=0x10);},'children':_0x305113==='options'?_0x1bfcde(po,{'config':_0x8ae103,'commit':_0x1b0137}):_0x3fc05f(_0x440547(0x332),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x3fc05f('div',{'children':[_0x1bfcde(_0x440547(0x332),{'className':_0x440547(0x222),'children':_0x5c9820['t'](_0x440547(0x38b))}),_0x1bfcde(_0x225487,{'allowClear':!0x0,'slot':_0x1bfcde(_0x686afa,{}),'value':_0x47f894,'placeholder':_0x5c9820['t'](_0x440547(0x3f7)),'onChange':_0x1cfead}),_0x1bfcde(_0x440547(0x332),{'className':_0x440547(0x28a),'children':_0x4ae381[_0x440547(0x48c)](_0x159189=>_0x1bfcde(oo,{'config':_0x8ae103,'field':_0x159189,'onAdd':_0xee2bda=>_0x1b0137(_0x45da89=>mo(_0x45da89,_0x159189['id'],_0xee2bda,_0x45da89['getFieldCountByArea'](_0xee2bda))),'onCheckedChange':_0x509e7d=>_0x1b0137(_0x111a2f=>{const _0xc0d32a=_0x440547;let _0x5e5ad3=_0x111a2f[_0xc0d32a(0x310)](_0x159189['id']);if(!_0x509e7d){_0x5e5ad3[_0xc0d32a(0x201)](_0x2e6607=>_0x111a2f[_0xc0d32a(0x2c8)](_0x2e6607['getId']()));return;}if(_0x5e5ad3[_0xc0d32a(0x291)]===0x0){let _0xea8b50=go(_0x159189)?_0x3881d5[_0xc0d32a(0x290)]:_0x3881d5[_0xc0d32a(0x1ba)];_0x111a2f[_0xc0d32a(0x299)](_0x159189['id'],_0xea8b50);}}),'onDragStart':()=>_0x3449ec({'kind':_0x440547(0x153),'id':_0x159189['id']})},_0x159189['id']))})]}),_0x1bfcde('div',{'className':'univer-grid\x20univer-grid-cols-2\x20univer-gap-3','children':ro[_0x440547(0x48c)](_0x4e4a2c=>_0x1bfcde(co,{'area':_0x4e4a2c[_0x440547(0x3ba)],'dropTarget':_0x2f33dd,'fields':_0x8ae103['pivot'][_0x4e4a2c[_0x440547(0x3d8)]],'label':_0x5c9820['t'](_0x4e4a2c[_0x440547(0x372)]),'snapshot':_0x8ae103[_0x440547(0x3b9)],'onDragEnd':()=>{_0x3449ec(null),_0x555fd2(null);},'onDragStart':_0x45cb50=>_0x3449ec({'kind':_0x440547(0x32e),'id':_0x45cb50,'area':_0x4e4a2c[_0x440547(0x3ba)]}),'onDragOver':_0x1e0151=>_0x555fd2({'area':_0x4e4a2c[_0x440547(0x3ba)],'index':_0x1e0151}),'onDrop':_0x2186c9=>_0x41fc29(_0x4e4a2c[_0x440547(0x3ba)],_0x2186c9),'onFilter':_0x39a23f,'onRemove':_0x271f55=>_0x1b0137(_0x469100=>_0x469100[_0x440547(0x2c8)](_0x271f55)),'onSettings':_0x5b0993},_0x4e4a2c[_0x440547(0x3ba)]))}),_0x2d10c6&&_0x1bfcde(uo,{'fieldId':_0x2d10c6,'snapshot':_0x8ae103[_0x440547(0x3b9)],'table':_0x32e409,'onCancel':()=>_0x39a23f(null),'onCommit':(_0x2bbd1e,_0x188c43)=>{_0x1b0137(_0x341f2d=>{const _0x2e82b6=_0x44d8;let _0x5d2a58=_0x341f2d[_0x2e82b6(0x457)](_0x2d10c6),_0x36e8ee=(_0x5d2a58==null?void 0x0:_0x5d2a58[_0x2e82b6(0x2a5)])??[];_0x341f2d[_0x2e82b6(0x212)](_0x2d10c6,{'type':_0x38a435['ManualFilter'],'list':_0x2bbd1e,'isAll':_0x2bbd1e[_0x2e82b6(0x291)]===_0x36e8ee[_0x2e82b6(0x291)]}),_0x341f2d[_0x2e82b6(0x191)](_0x2d10c6,_0x188c43===void 0x0?void 0x0:{'type':_0x188c43});}),_0x39a23f(null);}},_0x2d10c6),_0x32efb3&&_0x1bfcde(fo,{'field':_0x8ae103[_0x440547(0x3b9)][_0x440547(0x433)][_0x32efb3],'onCancel':()=>_0x5b0993(null),'onCommit':(_0x1e7bba,_0x12925f,_0x43e7a8)=>{_0x1b0137(_0x1d177c=>{const _0x4fcc95=_0x44d8;_0x1d177c['renameField'](_0x32efb3,_0x1e7bba),_0x1d177c['setSubtotalType'](_0x32efb3,_0x12925f),_0x1d177c[_0x4fcc95(0x31d)](_0x32efb3,_0x43e7a8||void 0x0);}),_0x5b0993(null);}},_0x32efb3)]})})]});}function oo(_0x20f42c){const _0x2796d0=_0x57c180;let {config:_0x4def0d,field:_0x4d3273,onAdd:_0x49f1f7,onCheckedChange:_0x550aa9,onDragStart:_0x56ba14}=_0x20f42c,_0x10a535=_0x3dc792(_0xc34a30),_0x5b91fb=[...Object[_0x2796d0(0x484)](_0x4def0d['pivot'][_0x2796d0(0x1f0)]),...Object[_0x2796d0(0x484)](_0x4def0d[_0x2796d0(0x3b9)][_0x2796d0(0x433)])]['some'](_0x56f46d=>_0x56f46d['dataFieldId']===_0x4d3273['id']),_0x29fee3=ro['map'](_0x223ee3=>({'type':_0x2796d0(0x224),'children':_0x10a535['t'](_o(_0x223ee3[_0x2796d0(0x3ba)])),'onSelect':()=>_0x49f1f7(_0x223ee3[_0x2796d0(0x3ba)])}));return _0x3fc05f(_0x2796d0(0x332),{'draggable':!0x0,'className':_0x2796d0(0x414),'onDragStart':_0x56ba14,'children':[_0x1bfcde(_0x4e0043,{'className':_0x2796d0(0x2b2)}),_0x1bfcde(_0x57ec08,{'checked':_0x5b91fb,'onChange':_0x2710c7=>_0x550aa9(!!_0x2710c7)}),_0x1bfcde(so,{'field':_0x4d3273}),_0x1bfcde(_0x2796d0(0x45e),{'className':_0x2796d0(0x1ec),'children':_0x4d3273['name']}),_0x1bfcde(_0x1f43a4,{'align':_0x2796d0(0x29f),'items':_0x29fee3,'children':_0x1bfcde(_0x2796d0(0x45e),{'className':_0x2796d0(0x2a3),'children':_0x1bfcde(_0x39bc4e,{})})})]});}function so({field:_0x3d816f}){const _0x194b44=_0x57c180;return go(_0x3d816f)?_0x1bfcde(_0x1ef1cd,{'className':'univer-text-gray-400'}):_0x3d816f[_0x194b44(0x498)]===_0x36d8a8[_0x194b44(0x1ca)]||_0x3d816f[_0x194b44(0x498)]===_0x36d8a8[_0x194b44(0x231)]||_0x3d816f[_0x194b44(0x498)]===_0x36d8a8[_0x194b44(0x232)]?_0x1bfcde(_0x5ece4d,{'className':'univer-text-gray-400'}):_0x1bfcde(_0x427459,{'className':_0x194b44(0x2b2)});}function co(_0x5887e4){const _0x33aebd=_0x57c180;let {area:_0x2293ab,dropTarget:_0x5b3430,fields:_0x400a37,label:_0x32f7be,snapshot:_0x153747}=_0x5887e4,_0x2fb3fa=_0x3dc792(_0xc34a30);return _0x3fc05f('section',{'className':_0x3c6675(_0x33aebd(0x19a),_0x1ba91b),'onDragOver':_0x2d4633=>{const _0xc5d765=_0x33aebd;_0x2d4633[_0xc5d765(0x18d)](),_0x5887e4[_0xc5d765(0x2ad)](_0x400a37['length']);},'onDrop':_0xca8d64=>{const _0x47e657=_0x33aebd;_0xca8d64[_0x47e657(0x18d)](),_0x5887e4['onDrop']((_0x5b3430==null?void 0x0:_0x5b3430[_0x47e657(0x3ba)])===_0x2293ab?_0x5b3430[_0x47e657(0x44e)]:_0x400a37[_0x47e657(0x291)]);},'children':[_0x1bfcde(_0x33aebd(0x332),{'className':_0x33aebd(0x44c),'children':_0x32f7be}),_0x3fc05f(_0x33aebd(0x332),{'className':_0x33aebd(0x28f),'children':[_0x400a37[_0x33aebd(0x48c)]((_0x287f24,_0x31ea15)=>{const _0x3a3a03=_0x33aebd;let _0x517b59=_0x153747[_0x3a3a03(0x1f0)][_0x287f24]??_0x153747[_0x3a3a03(0x433)][_0x287f24];if(!_0x517b59)return null;let _0x24fc67=(_0x5b3430==null?void 0x0:_0x5b3430[_0x3a3a03(0x3ba)])===_0x2293ab&&_0x5b3430[_0x3a3a03(0x44e)]===_0x31ea15;return _0x3fc05f('div',{'onDragOver':_0x34cb3a=>{const _0x104b65=_0x3a3a03;_0x34cb3a[_0x104b65(0x18d)](),_0x34cb3a[_0x104b65(0x2be)]();let _0x7fdad=_0x34cb3a[_0x104b65(0x2bc)]['getBoundingClientRect']();_0x5887e4['onDragOver'](_0x31ea15+ +(_0x34cb3a[_0x104b65(0x2fc)]>_0x7fdad[_0x104b65(0x2db)]+_0x7fdad[_0x104b65(0x2b9)]/0x2));},'onDrop':_0x5707c5=>{const _0x513f10=_0x3a3a03;_0x5707c5['preventDefault'](),_0x5707c5[_0x513f10(0x2be)](),_0x5887e4[_0x513f10(0x362)]((_0x5b3430==null?void 0x0:_0x5b3430[_0x513f10(0x3ba)])===_0x2293ab?_0x5b3430['index']:_0x31ea15);},'children':[_0x24fc67&&_0x1bfcde(_0x3a3a03(0x332),{'className':_0x3a3a03(0x1b5)}),_0x1bfcde(lo,{'area':_0x2293ab,'field':_0x517b59,'onDragEnd':_0x5887e4[_0x3a3a03(0x446)],'onDragStart':()=>_0x5887e4[_0x3a3a03(0x48e)](_0x287f24),'onFilter':()=>_0x5887e4['onFilter'](_0x287f24),'onRemove':()=>_0x5887e4[_0x3a3a03(0x436)](_0x287f24),'onSettings':()=>_0x5887e4[_0x3a3a03(0x455)](_0x287f24)})]},_0x287f24);}),(_0x5b3430==null?void 0x0:_0x5b3430[_0x33aebd(0x3ba)])===_0x2293ab&&_0x5b3430[_0x33aebd(0x44e)]===_0x400a37[_0x33aebd(0x291)]&&_0x1bfcde(_0x33aebd(0x332),{'className':_0x33aebd(0x1b5)}),_0x400a37['length']===0x0&&_0x1bfcde(_0x33aebd(0x332),{'className':_0x33aebd(0x26b),'children':_0x2fb3fa['t'](_0x33aebd(0x277))})]})]});}function lo(_0xc90882){const _0x4ad92b=_0x57c180;let _0x109b8f=_0x3dc792(_0xc34a30),_0x118d7d=_0xc90882[_0x4ad92b(0x3ba)]===_0x3881d5[_0x4ad92b(0x290)],_0x32aa99=[{'type':_0x4ad92b(0x224),'children':_0x109b8f['t'](_0x4ad92b(0x2f2)),'onSelect':_0xc90882['onRemove']},{'type':'item','children':_0x109b8f['t'](_0x118d7d?'bases-dashboard-ui.pivot.fieldSettings':_0x4ad92b(0x40f)),'onSelect':_0x118d7d?_0xc90882[_0x4ad92b(0x455)]:_0xc90882[_0x4ad92b(0x206)]}];return _0x3fc05f('div',{'draggable':!0x0,'className':'univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','onDragEnd':_0xc90882['onDragEnd'],'onDragStart':_0xc90882[_0x4ad92b(0x48e)],'children':[_0x1bfcde(_0x4e0043,{'className':_0x4ad92b(0x2b2)}),_0x1bfcde(_0x79306f,{'title':_0xc90882['field'][_0x4ad92b(0x363)],'children':_0x1bfcde(_0x4ad92b(0x45e),{'className':_0x4ad92b(0x1ec),'children':_0xc90882[_0x4ad92b(0x32e)][_0x4ad92b(0x363)]})}),_0x1bfcde(_0x1f43a4,{'align':'end','items':_0x32aa99,'children':_0x1bfcde(_0x4ad92b(0x45e),{'className':_0x4ad92b(0x2a3),'children':_0x1bfcde(_0x39bc4e,{})})})]});}function uo(_0x4b8759){const _0x5c54b3=_0x57c180;var _0x48a167,_0x20abd5;let _0x53a207=_0x3dc792(_0xc34a30),{format:_0x53c76b,items:_0x4e80e5,itemTypes:_0xd3d37f}=_0x4561c2(()=>{const _0x265dc2=_0x44d8;let _0x1a765a=_0x4ae6f2(_0x4b8759[_0x265dc2(0x2c6)],_0x4b8759['snapshot']);try{let _0x244ff5=_0x1a765a[_0x265dc2(0x457)](_0x4b8759[_0x265dc2(0x383)]);return{'format':_0x244ff5==null?void 0x0:_0x244ff5[_0x265dc2(0x23c)],'items':[...(_0x244ff5==null?void 0x0:_0x244ff5['items'])??[]],'itemTypes':[...(_0x244ff5==null?void 0x0:_0x244ff5[_0x265dc2(0x255)])??[]]};}finally{_0x1a765a[_0x265dc2(0x2ab)]();}},[_0x4b8759[_0x5c54b3(0x383)],_0x4b8759[_0x5c54b3(0x434)],_0x4b8759[_0x5c54b3(0x2c6)]]),_0x55a66f=(_0x48a167=_0x4b8759['snapshot'][_0x5c54b3(0x1f0)][_0x4b8759[_0x5c54b3(0x383)]])==null?void 0x0:_0x48a167[_0x5c54b3(0x25b)],[_0x301c3c,_0x513980]=_0x155c41((_0x55a66f==null?void 0x0:_0x55a66f[_0x5c54b3(0x498)])===_0x38a435['ManualFilter']?_0x55a66f[_0x5c54b3(0x368)]:_0x4e80e5),[_0x183083,_0x357369]=_0x155c41((_0x20abd5=_0x4b8759[_0x5c54b3(0x434)][_0x5c54b3(0x1f0)][_0x4b8759['fieldId']])==null||(_0x20abd5=_0x20abd5['sortInfo'])==null?void 0x0:_0x20abd5[_0x5c54b3(0x498)]),_0x39834f=_0x301c3c['length']===_0x4e80e5[_0x5c54b3(0x291)];return _0x3fc05f(_0x5c54b3(0x1b4),{'className':_0x3c6675('univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900',_0x1ba91b),'children':[_0x1bfcde('div',{'className':_0x5c54b3(0x3eb),'children':_0x53a207['t'](_0x5c54b3(0x40f))}),_0x3fc05f(_0x5c54b3(0x332),{'className':_0x5c54b3(0x42e),'children':[_0x3fc05f(_0x29df96,{'className':_0x5c54b3(0x301),'variant':_0x183083===_0x217088['ascending']?_0x5c54b3(0x230):_0x5c54b3(0x450),'onClick':()=>_0x357369(_0x217088[_0x5c54b3(0x4a1)]),'children':[_0x1bfcde(_0x4b54c1,{}),_0x53a207['t'](_0x5c54b3(0x32b))]}),_0x3fc05f(_0x29df96,{'className':_0x5c54b3(0x301),'variant':_0x183083===_0x217088[_0x5c54b3(0x1d2)]?_0x5c54b3(0x230):'default','onClick':()=>_0x357369(_0x217088[_0x5c54b3(0x1d2)]),'children':[_0x1bfcde(_0x29065b,{}),_0x53a207['t'](_0x5c54b3(0x2b6))]})]}),_0x3fc05f(_0x5c54b3(0x332),{'className':'univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','children':[_0x3fc05f(_0x5c54b3(0x372),{'className':_0x5c54b3(0x3ee),'children':[_0x1bfcde(_0x57ec08,{'checked':_0x39834f,'indeterminate':_0x301c3c[_0x5c54b3(0x291)]>0x0&&!_0x39834f,'onChange':()=>_0x513980(_0x39834f?[]:_0x4e80e5)}),_0x53a207['t']('bases-dashboard-ui.pivot.selectAll')]}),_0x4e80e5[_0x5c54b3(0x48c)]((_0x310cb3,_0x1cd554)=>_0x3fc05f(_0x5c54b3(0x372),{'className':_0x5c54b3(0x3ee),'children':[_0x1bfcde(_0x57ec08,{'checked':_0x301c3c[_0x5c54b3(0x300)](_0x310cb3),'onChange':()=>_0x513980(_0x654a06=>_0x654a06['includes'](_0x310cb3)?_0x654a06[_0x5c54b3(0x449)](_0x18d1ef=>_0x18d1ef!==_0x310cb3):[..._0x654a06,_0x310cb3])}),_0x1bfcde(_0x5c54b3(0x45e),{'className':_0x5c54b3(0x420),'children':ho(_0x310cb3,_0xd3d37f[_0x1cd554],_0x53c76b,_0x53a207['t']('bases-dashboard-ui.pivot.blank'))})]},_0x310cb3))]}),_0x3fc05f('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[_0x1bfcde(_0x29df96,{'variant':_0x5c54b3(0x2b4),'onClick':()=>_0x4b8759[_0x5c54b3(0x3f6)](_0x4e80e5,_0x183083),'children':_0x53a207['t'](_0x5c54b3(0x2da))}),_0x3fc05f(_0x5c54b3(0x332),{'className':_0x5c54b3(0x169),'children':[_0x1bfcde(_0x29df96,{'onClick':_0x4b8759['onCancel'],'children':_0x53a207['t'](_0x5c54b3(0x357))}),_0x1bfcde(_0x29df96,{'variant':_0x5c54b3(0x230),'disabled':_0x301c3c[_0x5c54b3(0x291)]===0x0,'onClick':()=>_0x4b8759[_0x5c54b3(0x3f6)](_0x301c3c,_0x183083),'children':_0x53a207['t'](_0x5c54b3(0x27b))})]})]})]});}function fo(_0x7bb1a4){const _0x115385=_0x57c180;var _0x33e7cd,_0x21cd8b,_0xfc00a;let _0x4a8123=_0x3dc792(_0xc34a30),[_0x26cfc8,_0x324717]=_0x155c41(((_0x33e7cd=_0x7bb1a4[_0x115385(0x32e)])==null?void 0x0:_0x33e7cd[_0x115385(0x363)])??''),[_0x144d64,_0x42e8f2]=_0x155c41(((_0x21cd8b=_0x7bb1a4[_0x115385(0x32e)])==null?void 0x0:_0x21cd8b[_0x115385(0x334)])??_0x48c6be[_0x115385(0x45d)]),[_0xebbd66,_0x8bdad4]=_0x155c41(((_0xfc00a=_0x7bb1a4['field'])==null?void 0x0:_0xfc00a[_0x115385(0x23c)])??'');return _0x7bb1a4['field']?_0x3fc05f(_0x115385(0x1b4),{'className':_0x3c6675(_0x115385(0x188),_0x1ba91b),'children':[_0x1bfcde(_0x115385(0x332),{'className':_0x115385(0x381),'children':_0x4a8123['t'](_0x115385(0x478))}),_0x3fc05f(_0x115385(0x372),{'className':_0x115385(0x41f),'children':[_0x4a8123['t'](_0x115385(0x1f2)),_0x1bfcde(_0x225487,{'value':_0x26cfc8,'onChange':_0x324717})]}),_0x3fc05f(_0x115385(0x372),{'className':_0x115385(0x41f),'children':[_0x4a8123['t'](_0x115385(0x46b)),_0x1bfcde(_0x103c6a,{'value':String(_0x144d64),'options':io['map'](_0x1b799b=>({'value':String(_0x1b799b[_0x115385(0x435)]),'label':_0x4a8123['t'](_0x1b799b['localeKey'])})),'onChange':_0x181cba=>{const _0x4b5086=_0x115385;let _0x1f0db9=io[_0x4b5086(0x34b)](_0x4c7a2b=>String(_0x4c7a2b[_0x4b5086(0x435)])===_0x181cba);_0x1f0db9&&_0x42e8f2(_0x1f0db9[_0x4b5086(0x435)]);}})]}),_0x3fc05f(_0x115385(0x372),{'className':_0x115385(0x41f),'children':[_0x4a8123['t'](_0x115385(0x411)),_0x1bfcde(_0x225487,{'value':_0xebbd66,'onChange':_0x8bdad4})]}),_0x3fc05f(_0x115385(0x332),{'className':_0x115385(0x256),'children':[_0x1bfcde(_0x29df96,{'onClick':_0x7bb1a4[_0x115385(0x3a1)],'children':_0x4a8123['t'](_0x115385(0x357))}),_0x1bfcde(_0x29df96,{'variant':_0x115385(0x230),'disabled':!_0x26cfc8['trim'](),'onClick':()=>_0x7bb1a4[_0x115385(0x3f6)](_0x26cfc8[_0x115385(0x3ae)](),_0x144d64,_0xebbd66),'children':_0x4a8123['t'](_0x115385(0x27b))})]})]}):null;}function po(_0x4d2f50){const _0xe8afb3=_0x57c180;let {config:_0x23e64f,commit:_0x53bebe}=_0x4d2f50,_0x8f481d=_0x3dc792(_0xc34a30),_0x4fe340=_0x23e64f['pivot']['options'],_0x1b5d44=_0x182481=>_0x53bebe(_0x142896=>_0x142896[_0xe8afb3(0x40b)]({..._0x142896[_0xe8afb3(0x2dd)](),..._0x182481}));return _0x3fc05f(_0xe8afb3(0x332),{'className':_0xe8afb3(0x1fa),'children':[_0x3fc05f(_0xe8afb3(0x372),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x8f481d['t'](_0xe8afb3(0x343)),_0x1bfcde(_0x103c6a,{'className':'univer-w-36','value':String(_0x23e64f[_0xe8afb3(0x3b9)][_0xe8afb3(0x424)]),'options':[{'value':String(_0x363820[_0xe8afb3(0x347)]),'label':_0x8f481d['t'](_0xe8afb3(0x38e))},{'value':String(_0x363820['compact']),'label':_0x8f481d['t'](_0xe8afb3(0x25a))},{'value':String(_0x363820[_0xe8afb3(0x156)]),'label':_0x8f481d['t'](_0xe8afb3(0x39f))}],'onChange':_0x4007a2=>{const _0x4e1822=_0xe8afb3;let _0x17fbb5=[_0x363820[_0x4e1822(0x347)],_0x363820[_0x4e1822(0x1c4)],_0x363820[_0x4e1822(0x156)]][_0x4e1822(0x34b)](_0x604c21=>String(_0x604c21)===_0x4007a2);_0x17fbb5!==void 0x0&&_0x53bebe(_0x30e3dd=>_0x30e3dd[_0x4e1822(0x429)](_0x17fbb5));}})]}),[{'key':_0xe8afb3(0x1c1),'label':_0xe8afb3(0x226),'defaultValue':!0x1},{'key':_0xe8afb3(0x1c9),'label':_0xe8afb3(0x252),'defaultValue':!0x1},{'key':_0xe8afb3(0x497),'label':'bases-dashboard-ui.pivot.showRowSubtotal','defaultValue':!0x0},{'key':'showRowGrandTotal','label':'bases-dashboard-ui.pivot.showRowGrandTotal','defaultValue':!0x0},{'key':_0xe8afb3(0x35d),'label':_0xe8afb3(0x2ba),'defaultValue':!0x0},{'key':_0xe8afb3(0x458),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}][_0xe8afb3(0x48c)](_0x5b3431=>_0x3fc05f(_0xe8afb3(0x372),{'className':_0xe8afb3(0x23a),'children':[_0x1bfcde(_0x57ec08,{'checked':!!(_0x4fe340[_0x5b3431[_0xe8afb3(0x3d8)]]??_0x5b3431[_0xe8afb3(0x1db)]),'disabled':_0x5b3431['key']==='repeatRowLabels'&&_0x23e64f[_0xe8afb3(0x3b9)]['layout']===_0x363820[_0xe8afb3(0x1c4)],'onChange':_0x147d82=>_0x1b5d44({[_0x5b3431[_0xe8afb3(0x3d8)]]:!!_0x147d82})}),_0x8f481d['t'](_0x5b3431[_0xe8afb3(0x372)])]},_0x5b3431[_0xe8afb3(0x3d8)])),_0x23e64f[_0xe8afb3(0x3b9)][_0xe8afb3(0x424)]===_0x363820[_0xe8afb3(0x156)]&&_0x3fc05f(_0xe8afb3(0x372),{'className':_0xe8afb3(0x3e7),'children':[_0x8f481d['t'](_0xe8afb3(0x3e9)),_0x1bfcde(_0x103c6a,{'className':'univer-w-36','value':String(_0x4fe340[_0xe8afb3(0x37f)]??_0x2fcd7c[_0xe8afb3(0x2db)]),'options':[{'value':String(_0x2fcd7c[_0xe8afb3(0x2db)]),'label':_0x8f481d['t']('bases-dashboard-ui.pivot.top')},{'value':String(_0x2fcd7c[_0xe8afb3(0x2f7)]),'label':_0x8f481d['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x34893c=>{const _0x6e8f53=_0xe8afb3;let _0xb73494=[_0x2fcd7c[_0x6e8f53(0x2db)],_0x2fcd7c[_0x6e8f53(0x2f7)]][_0x6e8f53(0x34b)](_0x4fd987=>String(_0x4fd987)===_0x34893c);_0xb73494!==void 0x0&&_0x1b5d44({'rowSubtotalPosition':_0xb73494});}})]}),_0x3fc05f('label',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x8f481d['t'](_0xe8afb3(0x3d7)),_0x1bfcde(_0x103c6a,{'className':'univer-w-36','value':String(_0x23e64f[_0xe8afb3(0x3b9)][_0xe8afb3(0x46f)]===_0xb31626[_0xe8afb3(0x27a)]?_0xb31626[_0xe8afb3(0x438)]:_0x23e64f[_0xe8afb3(0x3b9)][_0xe8afb3(0x46f)]),'options':[{'value':String(_0xb31626[_0xe8afb3(0x438)]),'label':_0x8f481d['t'](_0xe8afb3(0x1cf))},{'value':String(_0xb31626[_0xe8afb3(0x1ba)]),'label':_0x8f481d['t'](_0xe8afb3(0x1d5))}],'onChange':_0x538926=>{const _0x1bf6b2=_0xe8afb3;let _0x1a45d0=[_0xb31626[_0x1bf6b2(0x438)],_0xb31626[_0x1bf6b2(0x1ba)]][_0x1bf6b2(0x34b)](_0x39f4fb=>String(_0x39f4fb)===_0x538926);_0x1a45d0!==void 0x0&&_0x53bebe(_0x513def=>_0x513def[_0x1bf6b2(0x428)](_0x1a45d0,_0x513def[_0x1bf6b2(0x388)]()<0x0?0x0:_0x513def['getValueIndex']()));}})]}),_0x3fc05f(_0xe8afb3(0x372),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x8f481d['t'](_0xe8afb3(0x27f)),_0x1bfcde(_0x142183,{'className':_0xe8afb3(0x445),'min':0x1,'max':0x14,'value':_0x4fe340[_0xe8afb3(0x157)]??0x1,'onChange':_0x5c40ff=>{let _0x11f8b0=Number(_0x5c40ff);Number['isFinite'](_0x11f8b0)&&_0x11f8b0>=0x1&&_0x1b5d44({'pageWrap':_0x11f8b0});}})]}),_0x3fc05f('label',{'className':_0xe8afb3(0x3e7),'children':[_0x8f481d['t'](_0xe8afb3(0x253)),_0x1bfcde(_0x103c6a,{'className':_0xe8afb3(0x2ea),'value':String(_0x4fe340['pageOverThenDown']??!0x1),'options':[{'value':_0xe8afb3(0x1d1),'label':_0x8f481d['t'](_0xe8afb3(0x495))},{'value':_0xe8afb3(0x44f),'label':_0x8f481d['t'](_0xe8afb3(0x286))}],'onChange':_0x53db5b=>_0x1b5d44({'pageOverThenDown':_0x53db5b===_0xe8afb3(0x44f)})})]})]});}function mo(_0xa70222,_0x351115,_0x5c6e61,_0x484a56){const _0x530a55=_0x57c180;let _0x386357=_0xa70222[_0x530a55(0x310)](_0x351115)['find'](_0x2ff892=>_0xa70222[_0x530a55(0x476)](_0x2ff892[_0x530a55(0x48d)]())[_0x530a55(0x3ba)]!==_0x3881d5[_0x530a55(0x290)]);if(_0x5c6e61!==_0x3881d5[_0x530a55(0x290)]&&_0x386357){_0xa70222['updateFieldPosition'](_0x386357['getId'](),_0x5c6e61,_0x484a56);return;}_0xa70222[_0x530a55(0x299)](_0x351115,_0x5c6e61,_0x484a56);}function ho(_0x2d29e8,_0x3dc112,_0x12a09f,_0x3b45b9){const _0x38fff1=_0x57c180;return _0x3dc112===_0x2be849[_0x38fff1(0x280)]?_0x3b45b9:_0x3dc112===_0x2be849[_0x38fff1(0x21d)]&&_0x12a09f?_0x80f5c8[_0x38fff1(0x23c)](_0x12a09f,Number(_0x2d29e8)):_0x2d29e8;}function go(_0x3d529c){const _0x2ce690=_0x57c180;return _0x3d529c[_0x2ce690(0x498)]===_0x36d8a8[_0x2ce690(0x3fb)]||_0x3d529c[_0x2ce690(0x498)]===_0x36d8a8[_0x2ce690(0x218)]||_0x3d529c[_0x2ce690(0x498)]===_0x36d8a8[_0x2ce690(0x39d)]||_0x3d529c[_0x2ce690(0x498)]===_0x36d8a8[_0x2ce690(0x30a)];}function _o(_0x3ebe41){const _0x3915c4=_0x57c180;switch(_0x3ebe41){case _0x3881d5[_0x3915c4(0x1ba)]:return _0x3915c4(0x2d3);case _0x3881d5[_0x3915c4(0x438)]:return _0x3915c4(0x444);case _0x3881d5[_0x3915c4(0x290)]:return _0x3915c4(0x2ef);default:return _0x3915c4(0x18e);}}function vo({config:_0x34e525,onChange:_0x3e015d,runtime:_0xed7839,table:_0x1a8bbe}){const _0x345c36=_0x57c180;let _0x58dec3=_0x3dc792(_0xc34a30),[_0x17afea,_0x28b77b]=_0x155c41(_0x345c36(0x49c));return _0x3fc05f(_0x345c36(0x351),{'className':_0x345c36(0x493),'children':[_0x1bfcde(_0x2e9f58,{'ariaLabel':_0x58dec3['t'](_0x345c36(0x462)),'className':_0x345c36(0x2e5),'items':[{'label':_0x58dec3['t'](_0x345c36(0x19e)),'panelId':'base-pivot-chart-configuration','value':_0x345c36(0x49c)},{'label':_0x58dec3['t'](_0x345c36(0x3f1)),'panelId':_0x345c36(0x21c),'value':_0x345c36(0x3b9)}],'value':_0x17afea,'variant':_0x345c36(0x355),'onChange':_0x28b77b}),_0x1bfcde(_0x345c36(0x332),{'className':_0x345c36(0x16e),'children':_0x17afea===_0x345c36(0x49c)?_0xed7839&&_0x1bfcde(fa,{'config':_0x34e525,'runtime':_0xed7839,'tableName':_0x1a8bbe[_0x345c36(0x3aa)],'onChange':_0x3e015d}):_0x1bfcde(ao,{'config':_0x34e525,'table':_0x1a8bbe,'onChange':_0x3e015d})})]});}function _0x59a9(){const _0x1d48df=['univer-truncate','clientX','createChartInstance','bases-dashboard-ui.dashboard.defaultName','layout','bases-dashboard-ui.dashboardInspector.percent','bases-dashboard-ui.dashboardInspector.editData','IS_NOT_EMPTY','updateValuePosition','setLayout','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','documentElement','errorType','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','univer-flex','bases-dashboard-ui.pivot.grandTotal','column','bases-dashboard-ui.dashboard.image','bases-dashboard-ui.pivot.count','measure','snapshot','value','onRemove','bases-dashboard-ui.pivot.showColumnGrandTotal','Column','scrollTop','subItem','bases-dashboard-ui.chart.common.series','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','VerticalAxis','bases-dashboard-ui.dashboardInspector.grouped','markReady','bases-dashboard-ui.chart.section.candlestick','numberFormat','axis','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','bases-dashboard-ui.pivot.addToColumn','univer-w-24','onDragEnd','YYYY-MM-DD','bases-dashboard-ui.chart.common.heatmap','filter','dashboards','appearance','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','bases-dashboard-ui.dashboardInspector.currency','index','true','default','bases-dashboard-ui.chart.common.chartStyle','general','matchMedia','bases-dashboard-ui.dashboardInspector.cover','onSettings','setSubtotalType','getDataFieldByTableId','showColGrandTotal','bases-dashboard-ui.dashboardInspector.reset','onMove','getRuntimeContext','border','sum','span','join','activeRuntimeModel','resizeDirection','bases-dashboard-ui.pivot.name','valueIndex','bases-dashboard-ui.chart.common.editChart','bases-dashboard-ui.dashboard.new','NumberFormat','bases-dashboard-ui.dashboard.text','change$','base-pivot-chart-configuration','\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.summarizeBy','AFTER','bases-dashboard-ui.dashboard.section','views','valuePosition','BASE_DASHBOARD_UI_PLUGIN','univer-m-3','0\x200','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','HorizontalAxis','getResource','getFieldPositionInfoById','accept','bases-dashboard-ui.pivot.fieldSettings','bases-dashboard-ui.dashboard.addWidget','bases-dashboard-ui.chart.common.horizontalAxis','Relation','_createContext','dashboard-widget-','tables','bases-dashboard-ui.dashboard.editWidget','ceil','getImage','operand','image/*','values','bases-dashboard-ui.dashboardInspector.contain','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','bases-dashboard-ui.dashboard.delete','pivotViewId','subUnitId','data:','univer-cursor-grabbing','map','getId','onDragStart','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','bases-dashboard-ui.dashboardInspector.replaceImage','bases-dashboard-ui.dashboardInspector.newCondition','bases-dashboard-ui.operators.notContains','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-96\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','univer-min-h-11\x20univer-px-3\x20univer-text-base','bases-dashboard-ui.pivot.downThenAcross','Pivot','showRowSubtotal','type','version','rowCount','bases-dashboard-ui.pivot.description','chart','currentColor','GeneralSeries','bases-dashboard-ui.chart.common.rightVerticalAxis','register','ascending','ParetoBarSeries','Scatter','grouped','context','bases-dashboard-ui.dashboardInspector.style','bases-dashboard-ui.dashboard.formulaShape','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','base-pivot-fields','source','bases-dashboard-ui.config','dashboard-chart-setup','outline','pageWrap','lastRow','_injector','cornerView','stdDev','univer-text-sm','push','checkMounted','render','toDate','bases-dashboard-ui.dashboard.tableFilter','fill','config','toJSON','LESS_THAN_OR_EQUAL','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','presentationChanged$','separator','univer-flex\x20univer-gap-2','ChartStyle','body','pointermove','article','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','radar','isSubtotal','univer-grid\x20univer-gap-4','unsubscribe','univer-bg-transparent\x20dark:!univer-bg-transparent','filterFields','Line','addImageSourceCache','object','bases-dashboard-ui.dashboardInspector.textSize','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','Person','split','rowSpan','pareto','bases-dashboard-ui.chart.section.radar','waterfall','pointerY','bases-dashboard-ui.operators.greaterThan','bases-dashboard-ui.dashboard.resizeWidget','bases-dashboard-ui.dashboardInspector.dragWidget','conjunction','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','packageName','82401bGVrFK','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','button','current','univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','Subtotal','preventDefault','bases-dashboard-ui.pivot.addToFilter','description','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','setSortInfo','Data','\x20/\x20','General','1.0.2','color','bases-dashboard-ui.pivot.stdDev','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','1036IOIBEz','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','\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.chart.section.gauge','stdDevp','bases-dashboard-ui.pivot.chartConfiguration','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','tableOrder','pageRows','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','bases-dashboard-ui.dashboard.fullScreen','waterfallStyle','subscribe','observe','string','baseChartDataAnimation','FormulaShape','bases-dashboard-ui.dashboardInspector.alignment','878Buvqio','bases-dashboard-ui.chart.common.trendline','univer-flex\x20univer-min-h-full\x20univer-flex-col','onStarting','1878nHALLk','initial','Pie','base-pivot-chart-setup','bases-dashboard-ui.chart.section.funnel','section','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','resolve','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','bases-dashboard-ui.chart.section.histogram','bases-dashboard-ui.dashboardInspector.formula','Row','config$','prototype','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','univer-size-5\x20univer-text-primary-600','tableFieldId','Style','repeatRowLabels','bases-dashboard-ui.chart.','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','compact','dashboard-chart-style','backgroundImage','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','input','repeatColLabels','Date','showRowGrandTotal','bases-dashboard-ui.dashboardInspector.decimalPlaces','bases-dashboard-ui.pivot.stdDevPopulation','columnFields','bases-dashboard-ui.pivot.columns','error','false','descending','widgets','Candlestick','bases-dashboard-ui.pivot.rows','style','click','Positive','bases-dashboard-ui.dashboardInspector.editFormula','Sunburst','defaultValue','innerHeight','bases-dashboard-ui.pivot.average','info','getAttachmentUrl','getChartRuntime','bases-dashboard-ui.dashboardInspector.clear','pattern','saveImage','IS_NOT','localeKey','legend','RecordId','dashboardOrder','focusUnit','trendline','renderRevision','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','presentation','allSeriesStyle','contains','dimension','redos','bases-dashboard-ui.pivot.displayName','bases-dashboard-ui.dashboardInspector.custom','chartId','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','\x20/\x20span\x20','children','toLocaleLowerCase','univer-w-full','univer-flex\x20univer-flex-col\x20univer-gap-4','GrandTotal','TableFilter','bases-dashboard-ui.dashboardInspector.removeImage','Group','PieStyle','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','forEach','labelId','max','fontSizeMode','file','onFilter','kind','group','Boxplot','shapeData','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','releaseChartRuntime','width','bases-dashboard-ui.chart.common.customize','univer-mt-2','Axes','setConfig','setLabelFilterInfo','getBoundingClientRect','currency','dataFieldId','bases-dashboard-ui.chart.section.lineAndArea','bases-dashboard-ui.chart.common.verticalAxis','Currency','univer-text-right','getPresentation','Waterfall','base-pivot-table-configuration','date','flatMap','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','has','Heatmap','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','getOwnPropertyDescriptor','item','px\x20solid\x20','bases-dashboard-ui.pivot.repeatRowLabels','disconnect','hidden','bases-dashboard-ui.chart.section.wordCloud','univer-grid\x20univer-gap-3','Histogram','target','base-pivot-chart-style','text','changed$','primary','CreatedAt','UpdatedAt','operator','bases-dashboard-ui.dashboardInspector.uploadImage','dataset','resize','shapeId','isTotal','bases-dashboard-ui.pivot.dataSource','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','bases-dashboard-ui.dashboard.undo','format','bases-dashboard-ui.mobile.moveUp','chartRowDirection','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','BaseDashboard','img','src','rightYAxis','univer-grid\x20univer-gap-4\x20univer-p-4','bases-dashboard-ui.dashboard.pivotChart','bases-dashboard-ui.chart.section.indicatorLine','bases-dashboard-ui.pivot.variance','baseOn','\x20has\x20no\x20render\x20config.','page:','view','bases-dashboard-ui.pivot.calculationFailed','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','cumulativeLineStyle','columnSpan','getImageSourceCache','formulaBinding','bases-dashboard-ui.pivot.repeatColumnLabels','bases-dashboard-ui.pivot.pageDirection','bases-dashboard-ui.dashboardInspector.general','itemTypes','univer-flex\x20univer-justify-end\x20univer-gap-2','getSnapshot','_configService','original','bases-dashboard-ui.pivot.layoutCompact','filterInfo','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','thead','symbol','fieldOrder','BEFORE','constructor','WaterfallSeries','\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','unitId','radius','MultipleGrandTotal','bases-dashboard-ui.dashboardInspector.loading','isArray','bases-dashboard-ui.dashboardInspector.close','tbody','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','toPrimitive','decorate','bases-dashboard-ui.dashboardInspector.left','backgroundColor','bases-dashboard-ui.dashboardInspector.selectOption','refreshChartRuntime','ParetoLineSeries','contain','bases-dashboard-ui.operators.before','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','bases-dashboard-ui.pivot.product','bases-dashboard-ui.pivot.dropFieldsHere','column:','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','None','bases-dashboard-ui.pivot.confirm','bases-dashboard-ui.dashboard.configure','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','auto','bases-dashboard-ui.pivot.pageWrap','blank','isFinite','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','alignment','getCurrentTheme','formatMap','bases-dashboard-ui.pivot.acrossThenDown','bases-dashboard-ui.operators.is','row:','bases-dashboard-ui.chart.waterfall.subtotal','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','fullscreenElement','paragraphs','center','univer-flex\x20univer-flex-col','Value','length','fullscreenchange','row','bases-dashboard-ui.pivot.chartOnly','min','result','syncLayout','bases-dashboard-ui.pivot.showRowSubtotal','addFieldWithSourceId','flex-start','lastCol','MultiSelect','indexOf','custom','end','stroke','Dom','bases-dashboard-ui.pivot.values','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','fields','items','chartType','bases-dashboard-ui.dashboardInspector.autoFit','univer-size-8\x20univer-p-0\x20univer-text-red-500','bases-dashboard-ui.operators.isNot','model','dispose','8653862yfOxte','onDragOver','imageSourceType','setStyle','isHeader','isBottomTotal','univer-text-gray-400','bases-dashboard-ui.dashboardInspector.backgroundImage','link','rowFields','bases-dashboard-ui.pivot.descending','from','bases-dashboard-ui.pivot.fields','height','bases-dashboard-ui.pivot.showColumnSubtotal','UUID','currentTarget','then','stopPropagation','scrollHeight','corner:','bases-dashboard-ui.pivot.defaultName','exitFullscreen','bases-dashboard-ui.dashboardInspector.delete','print','getRect','table','WordCloud','removeField','some','bases-dashboard-ui.dashboard.widgetActions','catch','bases-dashboard-ui.dashboardInspector.checked','fontSize','shapeText','bases-dashboard-ui.mobile.moveDown','change','documentStyle','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','bases-dashboard-ui.pivot.addToRow','files','iterator','180860REMOiZ','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','call','base64Cache','bases-dashboard-ui.pivot.clearFilter','top','Chord','getOptions','replace','Funnel','move','bases-dashboard-ui.dashboard.rename','funnel','bases-dashboard-ui.chart.common.chartAndAxisTitles','univer-mt-2\x20univer-w-full','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','RightVerticalAxis','bases-dashboard-ui.chart.section.waterfall','_renderModelManager','univer-min-w-0\x20univer-flex-1','univer-w-36','bases-dashboard-ui.pivot.min','countNums','bases-dashboard-ui.pivot.tableOnly','getUnit','bases-dashboard-ui.pivot.addToValue','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','bases-dashboard-ui.operators.lessThan','bases-dashboard-ui.pivot.removeField','univer-relative\x20univer-z-10','parentElement','varp','IndicatorLine','bottom','SolidFill','colView','bases-dashboard-ui.dashboardInspector.number','NOT_CONTAINS','clientY','darkMode$','bases-dashboard-ui.chart.chartTypes.','title','includes','univer-flex-1','univer-border-0\x20univer-bg-transparent','dataAggregation','formula','12660vyOToM','addEventListener','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','dom','#,##0','Rating','minmax(0,\x203fr)\x20minmax(0,\x202fr)','shapeType','acquireChartRuntime','waterfall.negative','entries','getTableFieldsByDataFieldId','bases-dashboard-ui.operators.after','requestFullscreen','dashboard-text-','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','Bubble','undoRedoStatus$','rootContainerElement','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','wordCloud','function','bases-dashboard-ui.pivot.max','paragraphId','setFieldFormat','831adjhqG','tableId','baseChartDataAnimationDuration','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.dashboardInspector.numberFormat','matches','univer-bg-gray-0\x20dark:!univer-bg-gray-900','getDashboard','clientHeight','floor','no-repeat','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','CONTAINS','bases-dashboard-ui.pivot.ascending','repeat','univer-flex\x20univer-min-h-0\x20univer-flex-1','field','base-pivot-chart','startScrollTop','bases-dashboard-ui.pivot.variancePopulation','div','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','subtotal','alt','decimalPlaces','replaceChildren','number','Radar','set','round','var','lineAndArea','bases-dashboard-ui.pivot.chartAndTable','delete','ChartAndAxisTitles','indicatorLine','darkMode','bases-dashboard-ui.pivot.layout','match','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','pluginName','tabular','bases-dashboard-ui.dashboardInspector.dataSource','bases-dashboard-ui.dashboardInspector.right','bases-dashboard-ui.pivot.display','find','961096enHwDa','bases-dashboard-ui.pivot.sum','doc','base-pivot-chart-','setCurrentUnitForType','aside','bases-dashboard-ui.dashboard.redo','bases-dashboard-ui.chart.section.chord','bases-dashboard-ui.dashboardInspector.textColor','segmented','header','bases-dashboard-ui.pivot.cancel','bases-dashboard-ui.dashboardInspector.compact','getResult','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','flex-end','onMoveUp','showColSubtotal','bases-dashboard-ui.chart.section.relation','options','UNIVER_BASE','bases-dashboard-ui.chart.section.treemap','onDrop','displayName','waterfall.positive','transparent','Legend','mode','list','bases-dashboard-ui.mobile.permissions','border-box','ensureMount','createDomChartInstance','displayMode','destructive','bases-dashboard-ui.dashboardInspector.sourceUnavailable','_chartThemeService','pageOverThenDown','label','bases-dashboard-ui.pivot.blank','rowView','univer-size-4','series','Text','AND','bases-dashboard-ui.dashboardInspector.data','bases-dashboard-ui.dashboardInspector.description','direction$','keydown','Image','bases-dashboard-ui.pivot.options','rowSubtotalPosition','system','univer-text-sm\x20univer-font-medium','bases-dashboard-ui.chart.common.legend','fieldId','dataSource','bases-dashboard-ui.pivot.showRowGrandTotal','textColor','gray','getValueIndex','bases-dashboard-ui.chart.section.sunburst','dashboard-','bases-dashboard-ui.pivot.sourceFields','bases-dashboard-ui.pivot.calculating','univer-pointer-events-auto\x20univer-opacity-100','bases-dashboard-ui.pivot.layoutTabular','createElement','bases-dashboard-ui.dashboardInspector.enterValue','pipe','get','Base\x20dashboard\x20chart\x20','average','disposeWithMe','widgetOrder','bases-dashboard-ui.chart.section.gridlinesAndTicks','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','borderRadius','RoundRect','univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','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','Progress','select','bases-dashboard-ui.pivot.layoutOutline','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','onCancel','valueFields','univer-grid\x20univer-gap-2\x20univer-p-3','bases-dashboard-ui.chart.common.switchRowColumn','cover','small','defineProperty','_config','stringify','name','style$','every','product','trim','ownerDocument','bases-dashboard-ui.dashboardInspector.backgroundColor','percent','fillType','add','Trendline','orient','renderTransition','relation','dataView','pivot','area','right','rightY','headerRowCount','heatmap','boxSizing','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','bases-dashboard-ui.chart.common.setup','updateFieldPosition','getDirection','univer-size-5\x20univer-rotate-90','toUpperCase','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','createRenderInput','document','45uhtCer','970GsJGAe','bases-dashboard-ui.operators.contains','grandTotal','conditions','saveAttachment','size','initialLayouts','left','bases-dashboard-ui.pivot.selectAll','viewOrder','startY','blur','bases-dashboard-ui.pivot.filters','bases-dashboard-ui.pivot.valuePosition','key','fit','bases-dashboard-ui.dashboard.search','Filter','lineStrokeType','permissionPointUpdate$','visibilityState','bases-dashboard-ui.dashboard.deleteWidget','isConnected','rows','bases-dashboard-ui.dashboardInspector.center','IS_EMPTY','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','[data-dashboard-widget]','pageView','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','univer-mx-auto\x20univer-size-6','bases-dashboard-ui.pivot.rowSubtotalPosition','bases-dashboard-ui.pivot.countNumbers','univer-mb-3\x20univer-text-sm\x20univer-font-medium','removeEventListener','executeChartUpdateConfig','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','Treemap','minmax(0,\x201fr)','bases-dashboard-ui.pivot.pivotConfiguration','univer-flex\x20univer-items-center\x20univer-gap-2','bases-dashboard-ui.operators.lessThanOrEqual','clientWidth','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','onCommit','bases-dashboard-ui.pivot.searchFields','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','Gauge','executeCommand','Number','Checkbox','dataModel','rowType','univer-shrink-0\x20univer-px-3','bases-dashboard-ui.dashboardInspector.originalSize','slice','LESS_THAN','bases-dashboard-ui.operators.isNotEmpty','PivotChart','pointerup','pointerX','sourceType','base-dashboard-pivot-chart-','currentTheme$','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','setOptions','textStyle','barStyle','base-pivot-options','bases-dashboard-ui.pivot.filterField','scrollWidth','bases-dashboard-ui.pivot.numberFormat','data','univer-border-gray-200\x20dark:!univer-border-gray-700','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','_element','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','chart-and-table','bases-dashboard-ui.chart.section.paretoLine','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','overflow','bases-dashboard-ui.chart.section.paretoBar','onReady','count','bases-dashboard-ui.pivot.bottom','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs'];_0x59a9=function(){return _0x1d48df;};return _0x59a9();}function yo({tableId:_0x583679,unitId:_0x1f7a90,viewId:_0x28b4a4}){const _0x414f14=_0x57c180;let _0x1faeff=_0x3dc792(_0x20bf70),_0x322ee9=_0x3dc792(_0xfa1040),_0x494a25=_0x3dc792(_0xa0671c),_0x241c54=_0x3dc792(_0xc34a30),_0x5119c2=_0x3dc792(_0x534e77),[_0xe5e268,_0x22a1d5]=_0x155c41(null),[_0x3bc8ba,_0x6d9919]=_0x155c41(null),_0x51ae75=_0x26ca56(_0x414f14(0x34f)+_0x2bbf35(0x8)),[_0x59cf46,_0x161885]=_0x155c41(!0x1),_0x1d41b3=_0x322ee9[_0x414f14(0x2ee)](_0x1f7a90,_0x1be7ab['UNIVER_BASE']),_0x2645ce=_0x1d41b3==null?void 0x0:_0x1d41b3['getSnapshot']()[_0x414f14(0x47e)][_0x583679],_0x26e1ab=_0x2645ce==null?void 0x0:_0x2645ce[_0x414f14(0x46e)][_0x28b4a4],_0x35703f=bo(_0x26e1ab),_0x5f29b6=_r(_0x1f7a90,_0x583679,_0x28b4a4);if(_0x5a872b(()=>{const _0x4580bb=_0x414f14;if(!_0x35703f)return;let _0x41bfa3=_0x51ae75['current'];return _0x5119c2[_0x4580bb(0x30d)](_0x41bfa3,{'unitId':_0x1f7a90,'tableId':_0x583679,'viewId':_0x28b4a4,'filters':[]}),()=>{const _0x4ccc95=_0x4580bb;_0x5119c2[_0x4ccc95(0x20c)](_0x1f7a90,_0x41bfa3);};},[_0x35703f,_0x5119c2,_0x583679,_0x1f7a90,_0x28b4a4]),_0x5a872b(()=>{const _0x4d14dd=_0x414f14;if(!bo(_0x26e1ab))return;let _0x331ecb=!0x0,_0x255a85={'unitId':_0x1f7a90,'tableId':_0x583679,'viewId':_0x28b4a4,'filters':[_0x26e1ab['filter']??null]};return _0x5119c2[_0x4d14dd(0x271)](_0x1f7a90,_0x51ae75[_0x4d14dd(0x18a)],_0x255a85)[_0x4d14dd(0x2bd)](_0x4cf667=>{const _0x340d5e=_0x4d14dd;_0x331ecb&&_0x4cf667&&(_0x22a1d5(_0x4cf667),_0x6d9919(_0x5119c2[_0x340d5e(0x1e0)](_0x1f7a90,_0x51ae75[_0x340d5e(0x18a)])??null),_0x161885(!0x1));})['catch'](_0x4debe1=>{const _0x4fdbb8=_0x4d14dd;_0x494a25[_0x4fdbb8(0x1d0)](_0x4fdbb8(0x35a),_0x4debe1),_0x331ecb&&(_0x22a1d5(null),_0x161885(!0x0));}),()=>{_0x331ecb=!0x1;};},[_0x494a25,_0x5119c2,_0x583679,_0x1f7a90,_0x26e1ab,_0x28b4a4]),!_0x2645ce||!bo(_0x26e1ab))return null;let _0x277803=_0x5119c2[_0x414f14(0x1e0)](_0x1f7a90,_0x51ae75[_0x414f14(0x18a)])===_0x3bc8ba?_0x3bc8ba:null,_0x1eeec1=_0xe5e268?_0x3fc05f(_0x414f14(0x332),{'className':_0x414f14(0x200),'style':{'gridTemplateRows':_0x26e1ab['config'][_0x414f14(0x36d)]==='chart-and-table'?'minmax(240px,\x203fr)\x20minmax(180px,\x202fr)':_0x414f14(0x3f0)},'children':[_0x26e1ab[_0x414f14(0x163)][_0x414f14(0x36d)]!==_0x414f14(0x2c6)&&_0x277803&&_0x1bfcde(_0x414f14(0x332),{'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':_0x1bfcde(Ir,{'isRowDirection':_0x143525(_0x26e1ab[_0x414f14(0x163)]['chart'][_0x414f14(0x3b5)]),'runtime':_0x277803})}),_0x26e1ab[_0x414f14(0x163)][_0x414f14(0x36d)]!==_0x414f14(0x49c)&&_0x1bfcde(_0x414f14(0x332),{'className':_0x414f14(0x42a),'children':_0x1bfcde(ki,{'pivot':_0x26e1ab[_0x414f14(0x163)][_0x414f14(0x3b9)],'view':_0xe5e268[_0x414f14(0x24b)]})})]}):_0x1bfcde(_0x414f14(0x332),{'className':_0x414f14(0x282),'children':_0x59cf46?_0x241c54['t'](_0x414f14(0x24c)):_0x241c54['t'](_0x414f14(0x38c))});return _0x3fc05f(_0x414f14(0x332),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','children':[_0x1bfcde(_0x414f14(0x332),{'className':_0x414f14(0x398),'children':_0x1eeec1}),_0x5f29b6&&_0x1bfcde(vo,{'config':_0x26e1ab[_0x414f14(0x163)],'runtime':_0x277803,'table':_0x2645ce,'onChange':_0x398e9c=>{const _0x2c6910=_0x414f14;_0x1faeff['executeCommand'](_0x26095f['id'],{'unitId':_0x1f7a90,'tableId':_0x583679,'viewId':_0x28b4a4,'patch':_0x398e9c})[_0x2c6910(0x2cb)](_0x2bbe70=>_0x494a25[_0x2c6910(0x1d0)](_0x2c6910(0x40a),_0x2bbe70));}})]});}function bo(_0x48e3c1){const _0x4c0705=_0x57c180;return(_0x48e3c1==null?void 0x0:_0x48e3c1[_0x4c0705(0x498)])===_0x4e046d['Pivot']&&typeof _0x48e3c1[_0x4c0705(0x163)]==_0x4c0705(0x177)&&_0x48e3c1[_0x4c0705(0x163)]!==null&&_0x4c0705(0x3b9)in _0x48e3c1[_0x4c0705(0x163)]&&_0x4c0705(0x49c)in _0x48e3c1[_0x4c0705(0x163)]&&_0x4c0705(0x36d)in _0x48e3c1['config'];}let xo=class extends _0x7c5363{constructor(_0x5b9b05,_0x36e16a,_0x1574fd,_0x27d132,_0x5bcfc9,_0x3f94c5){const _0x25afed=_0x57c180;super(),this[_0x25afed(0x395)](_0x36e16a[_0x25afed(0x4a0)]({'type':_0x4e046d[_0x25afed(0x496)],'renderMode':_0x25afed(0x308),'icon':_0x26e878,'component':yo,'menu':{get 'label'(){return _0x3f94c5['t']('bases-dashboard-ui.pivot.name');},get 'description'(){const _0x45e9f0=_0x25afed;return _0x3f94c5['t'](_0x45e9f0(0x49b));},get 'defaultName'(){const _0x30f230=_0x25afed;return _0x3f94c5['t'](_0x30f230(0x2c1));}}})),this[_0x25afed(0x395)](_0x5b9b05['register'](So(_0x1574fd,_0x27d132,_0x5bcfc9,_0x3f94c5)));}};xo=Or([Y(0x0,_0x5135cb),Y(0x1,_0x452fc8),Y(0x2,_0xfb26ea(_0x1e99fb)),Y(0x3,_0x20bf70),Y(0x4,_0x31dc6c),Y(0x5,_0xfb26ea(_0xc34a30))],xo);function So(_0xb9dbe6,_0x3b68f9,_0x499398,_0x2ed8a4){const _0x14100f=_0x57c180;return{'change$':_0x2391b4(_0xb9dbe6[_0x14100f(0x468)],_0x499398[_0x14100f(0x3dd)]),'component':Ja,get 'labels'(){const _0x23ad31=_0x14100f;return{'add':_0x2ed8a4['t']('bases-dashboard-ui.dashboard.add'),'configure':_0x4c9a57=>_0x2ed8a4['t'](_0x23ad31(0x27c),_0x4c9a57),'delete':_0x2ed8a4['t'](_0x23ad31(0x487)),'new':_0x2ed8a4['t'](_0x23ad31(0x465)),'rename':_0x2ed8a4['t']('bases-dashboard-ui.dashboard.rename'),'search':_0x2ed8a4['t'](_0x23ad31(0x3da)),'section':_0x2ed8a4['t'](_0x23ad31(0x46d))};},'getItems':_0x2c85bc=>{const _0x34a7bc=_0x14100f;let _0x625df7=_0xb9dbe6[_0x34a7bc(0x475)](_0x2c85bc);return _0x625df7['dashboardOrder']['flatMap'](_0x126c7a=>{const _0x3da8e7=_0x34a7bc;let _0x2e46ce=_0x625df7[_0x3da8e7(0x44a)][_0x126c7a];return _0x2e46ce?[{'id':_0x2e46ce['id'],'name':_0x2e46ce[_0x3da8e7(0x3aa)],'readonly':!_0x1377c4(_0x499398,_0x2c85bc,_0x2e46ce['id'])}]:[];});},'create':async _0x52e6a3=>{const _0x3bb386=_0x14100f;let _0xbe206b=_0xb9dbe6[_0x3bb386(0x475)](_0x52e6a3),_0x2a5785=_0x3bb386(0x38a)+_0x2bbf35(0x8),_0x3d384d=Co(_0xbe206b[_0x3bb386(0x1e8)][_0x3bb386(0x21e)](_0x23adfd=>{const _0x5627e3=_0x3bb386;let _0x29cd2b=_0xbe206b[_0x5627e3(0x44a)][_0x23adfd];return _0x29cd2b?[_0x29cd2b[_0x5627e3(0x3aa)]]:[];}),_0x3ade5b=>_0x2ed8a4['t'](_0x3bb386(0x423),String(_0x3ade5b)));return await _0x3b68f9[_0x3bb386(0x3fa)](_0x2a269b['id'],{'unitId':_0x52e6a3,'dashboard':{'id':_0x2a5785,'name':_0x3d384d,'widgetOrder':[],'widgets':{}}})?_0x2a5785:null;},'rename':async(_0x5eea4b,_0x27491,_0x1d1c53)=>{const _0x58e8e4=_0x14100f;let _0x325c54=_0xb9dbe6[_0x58e8e4(0x325)](_0x5eea4b,_0x27491);return!!(_0x325c54&&await _0x3b68f9[_0x58e8e4(0x3fa)](_0x16ed85['id'],{'unitId':_0x5eea4b,'dashboard':{..._0x325c54,'name':_0x1d1c53}}));},'remove':(_0x46282c,_0x5f0a59)=>_0x3b68f9[_0x14100f(0x3fa)](_0x452258['id'],{'unitId':_0x46282c,'dashboardId':_0x5f0a59})};}function Co(_0x497e11,_0x5886ac){const _0x54732a=_0x57c180;let _0x37397f=new Set(_0x497e11),_0x57933b=_0x37397f[_0x54732a(0x3cf)]+0x1,_0x8becf7=_0x5886ac(_0x57933b);for(;_0x37397f['has'](_0x8becf7);)_0x57933b+=0x1,_0x8becf7=_0x5886ac(_0x57933b);return _0x8becf7;}let wo=class extends _0x239fa2{constructor(_0x22accf=hr,_0x112189,_0x336245){const _0x4e3f92=_0x57c180;super(),this[_0x4e3f92(0x3a8)]=_0x22accf,this[_0x4e3f92(0x159)]=_0x112189,this[_0x4e3f92(0x258)]=_0x336245;let {..._0x1ef13b}=_0x50ef5d({},hr,this[_0x4e3f92(0x3a8)]);this['_configService'][_0x4e3f92(0x211)](mr,_0x1ef13b);}[_0x57c180(0x1ae)](){const _0x2ccebb=_0x57c180;this[_0x2ccebb(0x159)][_0x2ccebb(0x3b3)]([kr]),this[_0x2ccebb(0x159)][_0x2ccebb(0x3b3)]([Gr]),this[_0x2ccebb(0x159)][_0x2ccebb(0x3b3)]([xo]);}[_0x57c180(0x41c)](){const _0x194592=_0x57c180;_0x5e38a1(this[_0x194592(0x159)],[[kr],[Gr],[xo]]);}};Pr(wo,'type',_0x1be7ab[_0x57c180(0x360)]),Pr(wo,_0x57c180(0x346),_0x57c180(0x470)),Pr(wo,_0x57c180(0x186),fr),Pr(wo,_0x57c180(0x499),pr),wo=Or([_0x9eb0d5(_0x187023,_0x398c3a,_0x3fa7c8,_0x5596f9,_0x379239,_0x42b4c7),Y(0x1,_0xfb26ea(_0x3fc728)),Y(0x2,_0x19da82)],wo);export{na as UniverBaseDashboardMobileUIPlugin,wo as UniverBaseDashboardUIPlugin};
1
+ const _0x2353bc=_0x1cf6;(function(_0x3fe7b4,_0x293bd9){const _0x32e535=_0x1cf6,_0x4977ed=_0x3fe7b4();while(!![]){try{const _0x2ec9ce=-parseInt(_0x32e535(0x2b0))/0x1*(parseInt(_0x32e535(0x50e))/0x2)+-parseInt(_0x32e535(0x2d5))/0x3*(-parseInt(_0x32e535(0x1f4))/0x4)+-parseInt(_0x32e535(0x2e8))/0x5*(-parseInt(_0x32e535(0x437))/0x6)+parseInt(_0x32e535(0x3fb))/0x7+parseInt(_0x32e535(0x2b4))/0x8+parseInt(_0x32e535(0x213))/0x9*(-parseInt(_0x32e535(0x234))/0xa)+-parseInt(_0x32e535(0x1dc))/0xb*(parseInt(_0x32e535(0x2c3))/0xc);if(_0x2ec9ce===_0x293bd9)break;else _0x4977ed['push'](_0x4977ed['shift']());}catch(_0x315a9f){_0x4977ed['push'](_0x4977ed['shift']());}}}(_0x5550,0x475d7));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x50185b,BASES_DASHBOARD_GRID_COLUMNS as _0x20c9d7,BaseChartRuntimeService as _0x22ef82,BaseDashboardResourceService as _0x5e40a3,BaseDashboardWidgetType as _0x342116,CreateBaseDashboardCommand as _0x2ef5a6,DeleteBaseDashboardCommand as _0x22aa0a,RemoveBaseDashboardWidgetCommand as _0x20648d,UniverBaseDashboardPlugin as _0x1615ad,UpdateBaseDashboardCommand as _0x5cbeb4,UpdateBasePivotViewCommand as _0x303df3,UpsertBaseDashboardWidgetCommand as _0x2b3367,canEditBaseDashboard as _0x25b5d2,canEditBasePivotView as _0x2ecb1b,createBasePivotTable as _0x1c8584,resolveBasePivotChartRowDirection as _0x2fa6dd}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x9b2833,BaseMobileDrawer as _0x4989cc,BaseMobileFilterOperand as _0x5c4dcf,BaseMobileFilterPanel as _0x1ab4e1,BaseUnitCollaborationStatus as _0xf8bfea,FormulaEditorPanel as _0x55d652,IBaseDashboardUIExtensionRegistryService as _0x509544,IBaseViewUIRegistryService as _0x5eecd3,MobileFormulaEditorPanel as _0x33c106,UniverBasesMobileUIPlugin as _0x139492,UniverBasesUIPlugin as _0x151faa,formulaToEditorFormula as _0x1b3454,normalizeEditorFormulaForConfig as _0x24d391,toFormulaMenuTables as _0x57cd99,toMenuFields as _0x5249f3}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x170e20,ChartAxisSection as _0x185c32,ChartColorField as _0x38703b,ChartCommonDataMappingSection as _0x26c1b7,ChartEditBlockTitle as _0x2db9bd,ChartEditPanel as _0x3812e6,ChartEditPanelSection as _0x8fe1f1,ChartEditPanelTab as _0x139866,ChartEditPanelTabs as _0x35a378,ChartEditorCapability as _0x1958f1,ChartEditorProvider as _0x4bacfa,ChartFunnelStyleSection as _0x666ad2,ChartGradientFillField as _0x34de73,ChartGridlinesAndTicksSection as _0x1f6674,ChartHeatmapStyleSection as _0x3c01f2,ChartHostAdapter as _0x29d554,ChartIndicatorLineSection as _0x5f2295,ChartLegendSection as _0x1dc64f,ChartLineAndAreaSection as _0x457b13,ChartNumberFormatAtom as _0x2f8e19,ChartParetoSeriesSection as _0x35a412,ChartPieStyleSection as _0x34a105,ChartRadarStyleSection as _0x4c7c71,ChartRelationStyleSection as _0x11ce9e,ChartSectionAccordion as _0x28ef86,ChartSectionAccordionContent as _0xaf7aad,ChartSectionAccordionItem as _0x1358f8,ChartSectionAccordionTrigger as _0x352fb4,ChartSeriesSection as _0x3bcbff,ChartStackField as _0x3210ae,ChartStyleSection as _0x466794,ChartThemeField as _0x1603db,ChartTitlesSection as _0xe815e7,ChartTrendlineSection as _0x3c8ddd,ChartTypeField as _0x195039,ChartTypeSpecificDataSection as _0x45db86,ChartTypeSpecificSetupSection as _0x3eaf0a,ChartTypeSpecificStyleSection as _0x5d0cdf,ChartUIService as _0x3ae17a,ChartViewStateRegistry as _0x2cea70,ChartWaterfallSetupFields as _0x4e37ce,ChartWaterfallStyleSection as _0x217c37,ChartWordCloudStyleSection as _0x5ac713,DEFAULT_CHART_AXIS_VALUES as _0x5caca4,DEFAULT_CHART_FUNNEL_VALUES as _0x26697d,DEFAULT_CHART_HEATMAP_VALUES as _0x296680,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x195779,DEFAULT_CHART_LEGEND_VALUES as _0x4fe0eb,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x499ec0,DEFAULT_CHART_PARETO_VALUES as _0x4cf110,DEFAULT_CHART_PIE_VALUES as _0x1db8a1,DEFAULT_CHART_RADAR_VALUES as _0x35ac4f,DEFAULT_CHART_RELATION_VALUES as _0x2da675,DEFAULT_CHART_SERIES_VALUES as _0x396e30,DEFAULT_CHART_STYLE_VALUES as _0x5792d9,DEFAULT_CHART_TITLE_VALUES as _0x21806e,DEFAULT_CHART_TRENDLINE_VALUES as _0x563c89,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x2c231e,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x31f02c,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x8c0c35,MobileChartEditorControls as _0xac1dd7,MobileChartEditorProvider as _0x2dc504,UniverChartMobileUIPlugin as _0x2c95bb,UniverChartUIPlugin as _0x4a2c56,buildChartTypeSelectOptions as _0x2dbfb8,chartTypeSupportsCapability as _0x326a9b,chartTypeSupportsLineAndAreaStyle as _0x59d745,useChartEditorChartType as _0x1f2e67,useChartEditorHasRightAxis as _0x51b799}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x38c17a}from'@univerjs-pro/license';import{ShapeFormulaService as _0xbf6a95,UniverShapeEditorPlugin as _0x47e249,createFormulaShapeData as _0x11d1a1}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0x557eea,BaseFilterConjunction as _0xf09c6,BaseFilterOperator as _0x17381a,BaseViewType as _0x5ee6b5,DependentOn as _0x4fc5af,Disposable as _0x2e76da,ICommandService as _0x32452d,IConfigService as _0x5a5187,IImageIoService as _0x5482b5,ILogService as _0x34ac8c,IPermissionService as _0x4c7ae7,IUndoRedoService as _0x123793,IUniverInstanceService as _0x4074e5,ImageSourceType as _0x26a785,Inject as _0x2a19f9,Injector as _0x5a8661,LocaleService as _0x5cd3ee,ObjectPermissionService as _0x1adc86,Plugin as _0x52aef1,RedoCommand as _0x8d3b46,ThemeService as _0x277079,UndoCommand as _0x4170dd,UniverInstanceType as _0x51ec78,createParagraphId as _0x112de2,dateKit as _0x22c7cc,generateRandomId as _0x325e5d,merge as _0x1731fc,numfmt as _0x3f4aae,touchDependencies as _0x445a23}from'@univerjs/core';import{UniverDocsUIPlugin as _0x220c65}from'@univerjs/docs-ui';function _0x1cf6(_0x3c0f50,_0x125c99){_0x3c0f50=_0x3c0f50-0x1a8;const _0x5550f1=_0x5550();let _0x1cf6d7=_0x5550f1[_0x3c0f50];return _0x1cf6d7;}import{ArrowDownIcon as _0x5c6cd4,ArrowUpIcon as _0x19b9b0,AscendingIcon as _0x4c6d55,CalendarIcon as _0x951fbe,ChartIcon as _0x433eb4,CloseIcon as _0x122a02,DeleteIcon as _0x2d17f6,DescendingIcon as _0x59e3b9,ExpandIcon as _0x54cca2,FilterIcon as _0x425726,GripVerticalIcon as _0x1487d8,IncreaseIcon as _0x5155a3,MoreDownIcon as _0xf77a3b,MoreHorizontalIcon as _0x27b384,NumberIcon as _0x5a5ded,PenIcon as _0x392d1f,PivotTableIcon as _0x3ad3c2,ProtectIcon as _0x7e2f55,RedoIcon as _0x44a42f,SearchIcon as _0x51aac6,TextIcon as _0x264f2e,UndoIcon as _0x4f90a3}from'@univerjs/icons';import{combineLatest as _0x4d74fa,map as _0x299cc9,merge as _0x53dd21,skip as _0x260464}from'rxjs';import{SetBasePermissionCommand as _0x42d2ec,getBaseDashboardPermissionObjectId as _0x275cd2}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x4d763c}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x1869dd,ShapeLineTypeEnum as _0x19c511,ShapeTypeEnum as _0x4387d7}from'@univerjs-pro/engine-shape';import{Button as _0x1b3e3b,Checkbox as _0x3cc061,DatePicker as _0x1596d0,Dialog as _0x4b580d,DropdownMenu as _0x492a1e,Input as _0x2c53ee,InputNumber as _0x1c2086,MobileDialog as _0x138a17,MobileDropdownMenu as _0x4083c0,MobileSelect as _0x3b7f81,MultipleSelect as _0x3ab7df,Segmented as _0x116fe9,Select as _0xce6b1b,Textarea as _0x136f1a,Tooltip as _0x56b693,borderClassName as _0x1298ac,clsx as _0x52fed8,scrollbarClassName as _0x2a22a5}from'@univerjs/design';import{UnitObject as _0x4f7ac1}from'@univerjs/protocol';import{ILayoutService as _0x55d16d,ObjectPermissionButton as _0x468217,openObjectPermissionDialog as _0x14db5b,useDependency as _0x39b411,useObservable as _0x499abf}from'@univerjs/ui';import{useCallback as _0xd8821d,useEffect as _0x38e78f,useMemo as _0x56a185,useRef as _0x35f949,useState as _0x2be63d}from'react';import{Fragment as _0xa1bb43,jsx as _0x4dabb7,jsxs as _0x2b00c1}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x5cdbed,ChartRenderMode as _0x268ec5,ChartThemeService as _0x23197c,ChartTypeBits as _0x3414f3,ChartWaterfallStyleTarget as _0x6a9b13,IChartRenderModelManagerService as _0xc28907,RTLChartStyle as _0x46c996,chartBitsUtils as _0x4c5ed5,chartTypeCanUseTrendLine as _0xae124c,resolveChartRuntimeStyle as _0xca4f0b,resolveDefaultChartHostFrameStyle as _0x1b98f6,toChartModelUpdate as _0x485197}from'@univerjs-pro/engine-chart';import{createPortal as _0x1f6ddd}from'react-dom';import{PivotCellStyleTypeEnum as _0x5d656b,PivotDataFieldDataTypeEnum as _0x1fe7b3,PivotDataFieldSortOperatorEnum as _0x428fd4,PivotFilterTypeEnum as _0x1b814d,PivotLayoutTypeEnum as _0x426ac9,PivotSubtotalPositionEnum as _0x10ab45,PivotSubtotalTypeEnum as _0x282c8a,PivotTableFiledAreaEnum as _0x4c815c,PivotTableValuePositionEnum as _0x288ba5,isErrorValue as _0x426ce3,isPrefixValue as _0x1b2084}from'@univerjs-pro/engine-pivot';var fr=_0x2353bc(0x207),pr=_0x2353bc(0x407);const mr=_0x2353bc(0x2f8),hr={};function gr(_0x1fa658,_0x420303){const _0x5ecb5a=_0x2353bc;let _0x3baf80=_0x39b411(_0x4c7ae7),_0x970187=_0x25b5d2(_0x3baf80,_0x1fa658,_0x420303);return _0x499abf(()=>_0x3baf80[_0x5ecb5a(0x391)][_0x5ecb5a(0x41d)](_0x299cc9(()=>_0x25b5d2(_0x3baf80,_0x1fa658,_0x420303))),_0x970187,!0x1,[_0x420303,_0x3baf80,_0x1fa658]);}function _r(_0x12786b,_0x4cb2b8,_0x290f00){const _0x1394bb=_0x2353bc;let _0x457d99=_0x39b411(_0x4c7ae7),_0x1103c2=_0x2ecb1b(_0x457d99,_0x12786b,_0x4cb2b8,_0x290f00);return _0x499abf(()=>_0x457d99['permissionPointUpdate$'][_0x1394bb(0x41d)](_0x299cc9(()=>_0x2ecb1b(_0x457d99,_0x12786b,_0x4cb2b8,_0x290f00))),_0x1103c2,!0x1,[_0x457d99,_0x4cb2b8,_0x12786b,_0x290f00]);}function vr(_0x4c558c,_0x9fdb4d=_0x2353bc(0x3d5)){const _0x4627bc=_0x2353bc;return{'backgroundImage':_0x4627bc(0x3df)+JSON['stringify'](_0x4c558c)+')','backgroundPosition':_0x9fdb4d===_0x4627bc(0x42b)?_0x4627bc(0x2e2):_0x4627bc(0x4b2),'backgroundRepeat':_0x9fdb4d==='repeat'?_0x4627bc(0x42b):_0x4627bc(0x2bd),'backgroundSize':_0x9fdb4d===_0x4627bc(0x3d5)?'cover':_0x4627bc(0x3b6)};}const yr={'alignment':_0x2353bc(0x20a),'currency':_0x2353bc(0x200),'decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x2353bc(0x3b6),'numberFormat':_0x2353bc(0x3f3)},br={'CNY':'¥','EUR':'€','USD':'$'};function xr(_0x41706e){const _0x13a8ff=_0x2353bc;var _0x3560d5;let _0x380462=Tr(((_0x3560d5=_0x41706e[_0x13a8ff(0x1d8)][_0x13a8ff(0x3e3)])==null||(_0x3560d5=_0x3560d5[_0x13a8ff(0x348)])==null?void 0x0:_0x3560d5['pattern'])??'');return{...yr,..._0x380462,..._0x41706e[_0x13a8ff(0x294)]};}function Sr(_0x2a8dc1,_0xd71f9d){const _0x53f312=_0x2353bc;let _0x28391b={..._0x2a8dc1[_0x53f312(0x294)],..._0xd71f9d},_0x523c9a=xr({..._0x2a8dc1,'appearance':_0x28391b}),_0x3918f4=_0x2a8dc1['shapeData'][_0x53f312(0x3e3)]??{'formula':''};return{..._0x2a8dc1,'appearance':_0x28391b,'shapeData':{..._0x2a8dc1[_0x53f312(0x1d8)],'formulaBinding':{..._0x3918f4,'numberFormat':{'pattern':Cr(_0x523c9a[_0x53f312(0x348)],_0x523c9a[_0x53f312(0x201)],_0x523c9a[_0x53f312(0x241)])}}}};}function Cr(_0x3973a3,_0x2d6d26,_0x5d86b8){const _0x368608=_0x2353bc;let _0x164bed=Math['max'](0x0,Math[_0x368608(0x314)](0x8,Math[_0x368608(0x384)](_0x2d6d26))),_0x3c3aa5=_0x164bed?'.'+'0'[_0x368608(0x42b)](_0x164bed):'';switch(_0x3973a3){case _0x368608(0x3c4):return'0'+_0x3c3aa5;case _0x368608(0x327):return'0'+_0x3c3aa5+'%';case _0x368608(0x241):return(br[_0x5d86b8]??_0x5d86b8)+_0x368608(0x257)+_0x3c3aa5;case _0x368608(0x39e):return'#,##0'+_0x3c3aa5;case _0x368608(0x1be):case _0x368608(0x3f3):return _0x368608(0x400);}}function wr(_0xad118b,_0x4eb116,_0x2b9b34){const _0x161ee8=_0x2353bc;return _0x2b9b34[_0x161ee8(0x348)]!==_0x161ee8(0x1be)||typeof _0x4eb116!=_0x161ee8(0x3c4)||!Number['isFinite'](_0x4eb116)?_0xad118b:new Intl[(_0x161ee8(0x38e))](void 0x0,{'notation':_0x161ee8(0x1be),'minimumFractionDigits':_0x2b9b34['decimalPlaces']??0x0,'maximumFractionDigits':_0x2b9b34['decimalPlaces']??0x0})[_0x161ee8(0x347)](_0x4eb116);}function Tr(_0x2f543a){const _0x47b3c0=_0x2353bc;var _0x3237f4,_0x43afd7;if(!_0x2f543a||_0x2f543a===_0x47b3c0(0x400))return{};let _0x407347=_0x2f543a[_0x47b3c0(0x208)](/\.([0#]+)/),_0x332cab=(_0x407347==null||(_0x3237f4=_0x407347[0x1])==null?void 0x0:_0x3237f4[_0x47b3c0(0x4da)])??0x0;if(_0x2f543a['includes']('%'))return{'decimalPlaces':_0x332cab,'numberFormat':_0x47b3c0(0x327)};let _0x367d33=(_0x43afd7=Object[_0x47b3c0(0x2ff)](br)[_0x47b3c0(0x397)](([,_0xae1bca])=>_0x2f543a[_0x47b3c0(0x331)](_0xae1bca)))==null?void 0x0:_0x43afd7[0x0];return _0x367d33?{'currency':_0x367d33,'decimalPlaces':_0x332cab,'numberFormat':'currency'}:{'decimalPlaces':_0x332cab,'numberFormat':_0x2f543a['includes'](',')?'grouped':'number'};}const Er={'center':_0x2353bc(0x4b2),'left':_0x2353bc(0x4e6),'right':'flex-end'};function Dr({dashboardId:_0x48d429,unitId:_0x5b6f48,widget:_0x983fc8}){const _0x26021b=_0x2353bc;var _0x285c28,_0x1643a4,_0x5d79db,_0x1f276e,_0x736c6e,_0x37f13c,_0x20c8f6,_0x392b5c,_0x19bc59;let _0x59cd7d=_0x39b411(_0xbf6a95),_0x54d9ac=_0x39b411(_0x5482b5),_0x9bdeff=_0x39b411(_0x5cd3ee),_0x1105eb=_0x56a185(()=>({'hostType':_0x51ec78[_0x26021b(0x4eb)],'unitId':_0x5b6f48,'subUnitId':_0x48d429,'shapeId':_0x983fc8['id']}),[_0x48d429,_0x5b6f48,_0x983fc8['id']]),[_0x13929c,_0x20f4e5]=_0x2be63d(()=>_0x59cd7d[_0x26021b(0x1c6)](_0x1105eb)),[_0x561b83,_0x2a02d9]=_0x2be63d(()=>{const _0x31d6ef=_0x26021b;var _0x50af33;return(_0x50af33=_0x59cd7d['getResult'](_0x1105eb))==null?void 0x0:_0x50af33[_0x31d6ef(0x284)];}),[_0x3bade5,_0x29e01c]=_0x2be63d(),_0x4fce3b=_0x35f949(null),_0x5bda28=_0x35f949(null),_0x23555b=xr(_0x983fc8);_0x38e78f(()=>{const _0x572182=_0x26021b;let _0x29665c=_0x59cd7d[_0x572182(0x4f6)][_0x572182(0x2f4)](_0x10c5b1=>{const _0x9cd0fa=_0x572182;_0x10c5b1[_0x9cd0fa(0x2f7)]===_0x5b6f48&&_0x10c5b1[_0x9cd0fa(0x4d4)]===_0x48d429&&_0x10c5b1[_0x9cd0fa(0x1ce)]===_0x983fc8['id']&&(_0x20f4e5(_0x10c5b1['presentation']),_0x2a02d9(_0x10c5b1['result'][_0x9cd0fa(0x284)]));});return()=>_0x29665c[_0x572182(0x20f)]();},[_0x48d429,_0x59cd7d,_0x1105eb,_0x5b6f48,_0x983fc8['id']]),_0x38e78f(()=>{const _0x72ea69=_0x26021b;let _0x57dfb8=_0x23555b[_0x72ea69(0x48f)];if(!_0x57dfb8||_0x57dfb8[_0x72ea69(0x4b3)]!==_0x26a785[_0x72ea69(0x43f)])return;let _0x555523=_0x54d9ac['getImageSourceCache'](_0x57dfb8[_0x72ea69(0x24c)],_0x57dfb8[_0x72ea69(0x4b3)]);if(_0x555523!=null&&_0x555523['src'])return;let _0x1a7326=!0x0;return _0x54d9ac[_0x72ea69(0x1fb)](_0x57dfb8['source'])[_0x72ea69(0x388)](_0x9057b0=>{_0x1a7326&&_0x29e01c({'source':_0x57dfb8['source'],'value':_0x9057b0});})['catch'](()=>void 0x0),()=>{_0x1a7326=!0x1;};},[_0x23555b['backgroundImage'],_0x54d9ac]);let _0x325981=((_0x285c28=_0x23555b[_0x26021b(0x48f)])==null?void 0x0:_0x285c28[_0x26021b(0x4b3)])===_0x26a785[_0x26021b(0x43f)]?((_0x1643a4=_0x54d9ac[_0x26021b(0x3c3)](_0x23555b[_0x26021b(0x48f)][_0x26021b(0x24c)],_0x23555b[_0x26021b(0x48f)][_0x26021b(0x4b3)]))==null?void 0x0:_0x1643a4[_0x26021b(0x2dd)])??((_0x3bade5==null?void 0x0:_0x3bade5['source'])===_0x23555b[_0x26021b(0x48f)][_0x26021b(0x24c)]?_0x3bade5[_0x26021b(0x284)]:''):((_0x5d79db=_0x23555b[_0x26021b(0x48f)])==null?void 0x0:_0x5d79db[_0x26021b(0x24c)])??'',_0x555868=_0x983fc8[_0x26021b(0x1d8)]['shapeText'],_0x39a2ad=_0x555868&&_0x26021b(0x4c1)in _0x555868?(_0x1f276e=_0x555868[_0x26021b(0x4c1)])==null?void 0x0:_0x1f276e[_0x26021b(0x4c4)]:void 0x0,_0xf6462b=wr((_0x13929c==null?void 0x0:_0x13929c[_0x26021b(0x452)])??'',_0x561b83,_0x23555b),_0x8f34a8=_0x983fc8[_0x26021b(0x1d8)][_0x26021b(0x47e)],_0x296aad=_0x983fc8[_0x26021b(0x1d8)][_0x26021b(0x445)],_0x399cb7=_0x39a2ad==null||(_0x736c6e=_0x39a2ad[_0x26021b(0x50b)])==null?void 0x0:_0x736c6e[_0x26021b(0x33c)],_0x638de5=_0x983fc8[_0x26021b(0x24b)]??_0x983fc8[_0x26021b(0x448)]??'';return _0x38e78f(()=>{const _0x465411=_0x26021b;let _0x2e5627=_0x4fce3b['current'],_0x51ddf8=_0x5bda28['current'];if(!_0x2e5627||!_0x51ddf8)return;let _0x5e76ab=()=>{const _0x88e4b5=_0x1cf6;if(_0x23555b[_0x88e4b5(0x1e2)]===_0x88e4b5(0x509)||!_0x2e5627['clientWidth']||!_0x2e5627['clientHeight']){_0x51ddf8[_0x88e4b5(0x3f1)]['fontSize']=_0x23555b[_0x88e4b5(0x444)]+'px';return;}let _0x5780ce=0x1,_0x485246=0x48,_0x46204e=_0x5780ce;for(;_0x5780ce<=_0x485246;){let _0x4479f9=Math[_0x88e4b5(0x1ef)]((_0x5780ce+_0x485246)/0x2);_0x51ddf8[_0x88e4b5(0x3f1)][_0x88e4b5(0x444)]=_0x4479f9+'px',_0x51ddf8[_0x88e4b5(0x4dd)]<=_0x2e5627[_0x88e4b5(0x2b8)]&&_0x51ddf8[_0x88e4b5(0x48e)]<=_0x2e5627[_0x88e4b5(0x249)]?(_0x46204e=_0x4479f9,_0x5780ce=_0x4479f9+0x1):_0x485246=_0x4479f9-0x1;}_0x51ddf8['style'][_0x88e4b5(0x444)]=_0x46204e+'px';};if(_0x5e76ab(),typeof ResizeObserver>'u')return;let _0x392835=new ResizeObserver(_0x5e76ab);return _0x392835['observe'](_0x2e5627),()=>_0x392835[_0x465411(0x1ad)]();},[_0x23555b[_0x26021b(0x444)],_0x23555b[_0x26021b(0x1e2)],_0xf6462b]),_0x2b00c1(_0x26021b(0x442),{'data-dashboard-formula-shape':_0x983fc8['id'],'className':_0x26021b(0x2ad),'style':{'backgroundColor':((_0x37f13c=_0x983fc8[_0x26021b(0x294)])==null?void 0x0:_0x37f13c[_0x26021b(0x394)])??((_0x8f34a8==null?void 0x0:_0x8f34a8[_0x26021b(0x446)])===_0x1869dd[_0x26021b(0x1e9)]?_0x8f34a8[_0x26021b(0x33a)]??void 0x0:void 0x0),'border':(_0x296aad==null?void 0x0:_0x296aad['lineStrokeType'])===_0x19c511[_0x26021b(0x289)]?(_0x296aad[_0x26021b(0x3c9)]??0x1)+'px\x20solid\x20'+(_0x296aad[_0x26021b(0x33a)]??_0x26021b(0x2e9)):void 0x0,'borderRadius':_0x983fc8[_0x26021b(0x34b)]===_0x4387d7['RoundRect']?0xc:void 0x0,'color':((_0x20c8f6=_0x983fc8[_0x26021b(0x294)])==null?void 0x0:_0x20c8f6[_0x26021b(0x204)])??(_0x13929c==null?void 0x0:_0x13929c[_0x26021b(0x33a)])??(_0x399cb7==null||(_0x392b5c=_0x399cb7['cl'])==null?void 0x0:_0x392b5c[_0x26021b(0x491)])??void 0x0,'fontWeight':_0x399cb7!=null&&_0x399cb7['bl']?0x258:void 0x0,'textAlign':_0x23555b[_0x26021b(0x22e)]},'children':[_0x325981&&_0x4dabb7('img',{'src':_0x325981,'alt':'','aria-hidden':_0x26021b(0x1d5),'className':_0x26021b(0x454),'style':{'objectFit':((_0x19bc59=_0x23555b['backgroundImage'])==null?void 0x0:_0x19bc59['fit'])??_0x26021b(0x3d5)}}),_0x2b00c1(_0x26021b(0x442),{'className':_0x26021b(0x4bc),'children':[_0x638de5&&_0x4dabb7(_0x26021b(0x442),{'data-dashboard-formula-description':!0x0,'className':_0x26021b(0x252),'children':_0x638de5}),_0x4dabb7(_0x26021b(0x442),{'ref':_0x4fce3b,'data-dashboard-formula-value':!0x0,'aria-label':_0x638de5||_0x9bdeff['t'](_0x26021b(0x268)),'className':_0x26021b(0x22f),'style':{'justifyContent':Er[_0x23555b['alignment']]},'children':_0x4dabb7('span',{'ref':_0x5bda28,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x23555b[_0x26021b(0x1e2)],'className':_0x26021b(0x247),'children':_0xf6462b})})]})]});}function Y(_0x226977,_0x5c9ca8){return function(_0x5dff4d,_0x5c65d3){_0x5c9ca8(_0x5dff4d,_0x5c65d3,_0x226977);};}function Or(_0x31cfa6,_0x399b7f,_0x53415c,_0x38eadd){const _0x309298=_0x2353bc;var _0x4e895f=arguments['length'],_0x3c425f=_0x4e895f<0x3?_0x399b7f:_0x38eadd===null?_0x38eadd=Object[_0x309298(0x286)](_0x399b7f,_0x53415c):_0x38eadd,_0x9be2b9;if(typeof Reflect==_0x309298(0x43c)&&typeof Reflect[_0x309298(0x1f8)]==_0x309298(0x46e))_0x3c425f=Reflect[_0x309298(0x1f8)](_0x31cfa6,_0x399b7f,_0x53415c,_0x38eadd);else{for(var _0x54c9b9=_0x31cfa6['length']-0x1;_0x54c9b9>=0x0;_0x54c9b9--)(_0x9be2b9=_0x31cfa6[_0x54c9b9])&&(_0x3c425f=(_0x4e895f<0x3?_0x9be2b9(_0x3c425f):_0x4e895f>0x3?_0x9be2b9(_0x399b7f,_0x53415c,_0x3c425f):_0x9be2b9(_0x399b7f,_0x53415c))||_0x3c425f);}return _0x4e895f>0x3&&_0x3c425f&&Object[_0x309298(0x1cc)](_0x399b7f,_0x53415c,_0x3c425f),_0x3c425f;}let kr=class{constructor(_0x3a720e,_0x20a338,_0x306103){const _0x1d40a3=_0x2353bc;this[_0x1d40a3(0x1ea)]=_0x3a720e,this['_chartThemeService']=_0x20a338,this['_renderModelManager']=_0x306103;}[_0x2353bc(0x253)](){const _0x4fdfe3=_0x2353bc;return this['_renderModelManager'][_0x4fdfe3(0x4ca)](_0x268ec5['Dom'],this['_createContext']());}[_0x2353bc(0x307)](_0x7a2d38){const _0x551d23=_0x2353bc;let _0x28b375=_0x7a2d38[_0x551d23(0x37a)][_0x551d23(0x4e8)];if(!_0x28b375)throw Error(_0x551d23(0x1b6)+_0x7a2d38[_0x551d23(0x4a5)]+_0x551d23(0x20e));let _0xd72453=this[_0x551d23(0x1ea)]['getDirection']();return{'config':_0x28b375,'style':_0xca4f0b({..._0x7a2d38[_0x551d23(0x37a)]['style'],'runtime':_0x7a2d38[_0x551d23(0x37a)]['getRuntimeContext'](_0xd72453),'direction':_0xd72453},_0x28b375['type'])};}[_0x2353bc(0x381)](){const _0x12664f=_0x2353bc;return{'resolveHostStyle':({style:_0xfad8e})=>_0x1b98f6({'style':_0xfad8e,'getRenderColor':_0x4f553c=>this[_0x12664f(0x42e)][_0x12664f(0x3f8)](_0x4f553c)}),'resolveRenderBackgroundColor':({hostStyle:_0x38dc70})=>_0x38dc70['fill']};}};kr=Or([Y(0x0,_0x2a19f9(_0x5cd3ee)),Y(0x1,_0x2a19f9(_0x23197c)),Y(0x2,_0xc28907)],kr);function Ar(_0x20326a,_0x4f9651){const _0x5cb167=_0x2353bc;var _0x27698f;_0x20326a[_0x5cb167(0x3f1)][_0x5cb167(0x394)]=_0x4f9651[_0x5cb167(0x47e)]??_0x5cb167(0x505),_0x20326a[_0x5cb167(0x3f1)]['border']=(_0x27698f=_0x4f9651[_0x5cb167(0x42c)])!=null&&_0x27698f['color']&&_0x4f9651['border'][_0x5cb167(0x3c9)]?_0x4f9651[_0x5cb167(0x42c)][_0x5cb167(0x3c9)]+_0x5cb167(0x358)+_0x4f9651[_0x5cb167(0x42c)]['color']:'',_0x20326a[_0x5cb167(0x3f1)][_0x5cb167(0x50f)]=_0x4f9651[_0x5cb167(0x30d)]?_0x4f9651[_0x5cb167(0x30d)]+'px':'',_0x20326a[_0x5cb167(0x3f1)][_0x5cb167(0x271)]=_0x5cb167(0x395),_0x20326a[_0x5cb167(0x3f1)][_0x5cb167(0x221)]=_0x5cb167(0x2ec);}function jr(_0x2e4da4){'@babel/helpers - typeof';const _0x65fba7=_0x2353bc;return jr=typeof Symbol==_0x65fba7(0x46e)&&typeof Symbol[_0x65fba7(0x25e)]==_0x65fba7(0x4f4)?function(_0x4c4a9c){return typeof _0x4c4a9c;}:function(_0x5e8e63){const _0x5c3bb8=_0x65fba7;return _0x5e8e63&&typeof Symbol==_0x5c3bb8(0x46e)&&_0x5e8e63[_0x5c3bb8(0x419)]===Symbol&&_0x5e8e63!==Symbol[_0x5c3bb8(0x215)]?'symbol':typeof _0x5e8e63;},jr(_0x2e4da4);}function Mr(_0x16d32a,_0x22dc45){const _0x555271=_0x2353bc;if(jr(_0x16d32a)!=_0x555271(0x43c)||!_0x16d32a)return _0x16d32a;var _0x39fe94=_0x16d32a[Symbol['toPrimitive']];if(_0x39fe94!==void 0x0){var _0x20f17c=_0x39fe94[_0x555271(0x2ed)](_0x16d32a,_0x22dc45||_0x555271(0x431));if(jr(_0x20f17c)!=_0x555271(0x43c))return _0x20f17c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x22dc45===_0x555271(0x4ff)?String:Number)(_0x16d32a);}function Nr(_0x1b2372){const _0xbb8a1e=_0x2353bc;var _0x543d0f=Mr(_0x1b2372,'string');return jr(_0x543d0f)==_0xbb8a1e(0x4f4)?_0x543d0f:_0x543d0f+'';}function Pr(_0x1bd1ca,_0x15756a,_0x4f287d){const _0x236068=_0x2353bc;return(_0x15756a=Nr(_0x15756a))in _0x1bd1ca?Object[_0x236068(0x1cc)](_0x1bd1ca,_0x15756a,{'value':_0x4f287d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1bd1ca[_0x15756a]=_0x4f287d,_0x1bd1ca;}var Fr=class extends _0x2e76da{constructor(_0x2627f1,_0x41d875){const _0xe925a8=_0x2353bc;super(),this[_0xe925a8(0x4a5)]=_0x2627f1,this[_0xe925a8(0x299)]=_0x41d875,Pr(this,_0xe925a8(0x224),_0x268ec5['Dom']);}[_0x2353bc(0x3c1)](){const _0x2747a6=_0x2353bc;return{'width':Math['max'](0x1,this[_0x2747a6(0x299)][_0x2747a6(0x2b8)]),'height':Math['max'](0x1,this[_0x2747a6(0x299)][_0x2747a6(0x249)])};}[_0x2353bc(0x26a)](_0x1e83bc){const _0x42c504=_0x2353bc;Ar(this[_0x42c504(0x299)],_0x1e83bc);}async[_0x2353bc(0x4df)](){const _0x4a54c7=_0x2353bc;return this[_0x4a54c7(0x299)];}[_0x2353bc(0x1aa)](){const _0x41b344=_0x2353bc;return this[_0x41b344(0x299)][_0x41b344(0x3b1)];}[_0x2353bc(0x4af)](){}['markReady'](){}['markNotReady'](){}};function Ir({isRowDirection:_0x2acb18,runtime:_0x168129}){const _0x3a860b=_0x2353bc;let _0x497a47=_0x35f949(null),_0x314d78=_0x39b411(_0x5cd3ee),_0x528d9f=_0x39b411(_0x34ac8c),_0x4daed=_0x39b411(kr),_0x1dbdcd=_0x39b411(_0x277079);return _0x38e78f(()=>{const _0x57b2c1=_0x1cf6;let _0x123d13=_0x497a47[_0x57b2c1(0x38f)];if(!_0x123d13)return;_0x123d13[_0x57b2c1(0x48d)]();let {chartId:_0x531352,model:_0x58e3ab}=_0x168129,_0x4e2f34=_0x58e3ab[_0x57b2c1(0x30a)],_0x53c678=new Fr(_0x531352,_0x123d13),_0x3fca7a=_0x4daed['createDomChartInstance'](),_0x4c7887=!0x1,_0x470f80=null,_0x1671a4=null,_0x57e47d=null,_0x298592=null,_0x8fd474=!0x1,_0x2b459f=!0x1,_0x47ae73=Promise[_0x57b2c1(0x240)]();_0x3fca7a[_0x57b2c1(0x324)](_0x53c678);let _0x3fe789=()=>{const _0x17afd8=_0x57b2c1;var _0xb5754b,_0x118f2b,_0x4bc69c,_0x4f5d5f;if(document[_0x17afd8(0x3cb)]===_0x17afd8(0x395)||(_0xb5754b=(_0x118f2b=window)[_0x17afd8(0x27c)])!=null&&(_0xb5754b=_0xb5754b[_0x17afd8(0x2ed)](_0x118f2b,'(prefers-reduced-motion:\x20reduce)'))!=null&&_0xb5754b[_0x17afd8(0x285)]||(_0x4bc69c=(_0x4f5d5f=window)[_0x17afd8(0x27c)])!=null&&(_0x4bc69c=_0x4bc69c[_0x17afd8(0x2ed)](_0x4f5d5f,'print'))!=null&&_0x4bc69c[_0x17afd8(0x285)]||!_0x123d13[_0x17afd8(0x3b1)])return!0x1;let _0x51e2dd=_0x123d13[_0x17afd8(0x4db)]();return _0x51e2dd[_0x17afd8(0x3c9)]>0x0&&_0x51e2dd[_0x17afd8(0x312)]>0x0&&_0x51e2dd[_0x17afd8(0x214)]>0x0&&_0x51e2dd[_0x17afd8(0x2d0)]>0x0&&_0x51e2dd[_0x17afd8(0x20a)]<window[_0x17afd8(0x335)]&&_0x51e2dd[_0x17afd8(0x45e)]<window[_0x17afd8(0x47d)];},_0x12cb99=()=>{const _0x3c75e3=_0x57b2c1;_0x1671a4!==null&&clearTimeout(_0x1671a4),_0x123d13[_0x3c75e3(0x29d)][_0x3c75e3(0x489)]=_0x3c75e3(0x1d5),_0x123d13[_0x3c75e3(0x29d)][_0x3c75e3(0x35b)]=String(_0x5cdbed),_0x1671a4=setTimeout(()=>{const _0x556e28=_0x3c75e3;_0x1671a4=null,delete _0x123d13[_0x556e28(0x29d)][_0x556e28(0x489)],delete _0x123d13[_0x556e28(0x29d)]['baseChartDataAnimationDuration'];},_0x5cdbed);},_0x15972e=_0x2279c5=>{const _0x446758=_0x57b2c1;if(_0x4c7887)return;if(_0x470f80!==null&&(clearTimeout(_0x470f80),_0x470f80=null),!_0x58e3ab['config']){_0x2b459f||=_0x2279c5;return;}_0x123d13[_0x446758(0x29d)][_0x446758(0x3e2)]=String(_0x58e3ab['chartType']),_0x123d13[_0x446758(0x29d)]['chartRowDirection']=String(_0x2acb18);let _0x460073=_0x4daed[_0x446758(0x307)](_0x168129),_0x267390={'chartId':_0x531352,'config':_0x460073[_0x446758(0x4e8)],'style':_0x460073['style']};_0x47ae73=_0x47ae73[_0x446758(0x388)](async()=>{const _0x53cfe0=_0x446758;_0x4c7887||(_0x123d13['dataset'][_0x53cfe0(0x46b)]=String(Number(_0x123d13[_0x53cfe0(0x29d)]['renderRevision']??0x0)+0x1),_0x2279c5&&_0x57e47d&&_0x3fca7a[_0x53cfe0(0x276)]&&_0x3fe789()?(await _0x3fca7a[_0x53cfe0(0x276)](_0x57e47d,_0x267390,{'duration':_0x5cdbed}),_0x4c7887||_0x12cb99()):await _0x3fca7a[_0x53cfe0(0x34e)](_0x267390),_0x57e47d=_0x267390);})[_0x446758(0x3d2)](_0x17964e=>_0x528d9f[_0x446758(0x1b4)](_0x446758(0x49f),_0x17964e));},_0x4b87e7=(_0x57a115=!0x1)=>{_0x2b459f||=_0x57a115,!_0x8fd474&&(_0x8fd474=!0x0,queueMicrotask(()=>{_0x8fd474=!0x1;let _0xaab000=_0x2b459f;_0x2b459f=!0x1,_0x15972e(_0xaab000);}));},_0x2baaa2=[_0x4e2f34[_0x57b2c1(0x45c)][_0x57b2c1(0x2f4)](_0x33336f=>{const _0x2f891d=_0x57b2c1;let _0x309603=JSON[_0x2f891d(0x492)](_0x33336f);_0x298592!=null&&_0x298592!==_0x309603&&_0x4b87e7(!0x0),_0x298592=_0x309603;}),_0x58e3ab[_0x57b2c1(0x3f9)]['subscribe'](_0x3adde4=>{_0x3adde4&&_0x4b87e7();}),_0x58e3ab[_0x57b2c1(0x2d4)][_0x57b2c1(0x2f4)](()=>_0x4b87e7()),_0x314d78['direction$'][_0x57b2c1(0x2f4)](()=>_0x4b87e7()),_0x4d74fa([_0x1dbdcd[_0x57b2c1(0x227)],_0x1dbdcd[_0x57b2c1(0x3d1)]])[_0x57b2c1(0x41d)](_0x260464(0x1))[_0x57b2c1(0x2f4)](()=>_0x4b87e7())],_0x3b7d77=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x187193=_0x57b2c1;_0x4c7887||(_0x53c678[_0x187193(0x4af)](),_0x470f80!==null&&clearTimeout(_0x470f80),_0x470f80=setTimeout(()=>_0x4b87e7(),0x64));});return _0x3b7d77==null||_0x3b7d77[_0x57b2c1(0x23b)](_0x123d13),()=>{const _0x1e3c2b=_0x57b2c1;_0x4c7887=!0x0,_0x470f80!==null&&clearTimeout(_0x470f80),_0x1671a4!==null&&clearTimeout(_0x1671a4),delete _0x123d13[_0x1e3c2b(0x29d)][_0x1e3c2b(0x489)],delete _0x123d13[_0x1e3c2b(0x29d)][_0x1e3c2b(0x35b)],_0x3b7d77==null||_0x3b7d77[_0x1e3c2b(0x1ad)](),_0x2baaa2[_0x1e3c2b(0x3c0)](_0x5e0228=>_0x5e0228[_0x1e3c2b(0x20f)]()),_0x3fca7a[_0x1e3c2b(0x2d9)](),_0x53c678['dispose'](),_0x123d13[_0x1e3c2b(0x48d)]();};},[_0x2acb18,_0x314d78,_0x528d9f,_0x4daed,_0x168129,_0x1dbdcd]),_0x4dabb7(_0x3a860b(0x442),{'ref':_0x497a47,'data-u-comp':_0x3a860b(0x2b5),'className':_0x3a860b(0x41b)});}function Lr({filters:_0x231dff,onRuntimeChange:_0x52cee9,unitId:_0x329254,widget:_0x1a3c69}){const _0x1e70b0=_0x2353bc;let _0x4fe889=_0x39b411(_0x4074e5),_0x6c10c5=_0x39b411(_0x5cd3ee),_0x48ec66=_0x39b411(_0x34ac8c),_0x393b04=_0x39b411(_0x22ef82),[_0x2eb232,_0xf5b165]=_0x2be63d(null),[_0x3b723e,_0x1252f7]=_0x2be63d(!0x1),[_0x396abc,_0x5393d6]=_0x2be63d(null),_0x4257d0=_0x35f949(_0x1e70b0(0x3ea)+_0x325e5d(0x8)),_0x2e4a46=_0x4fe889['getUnit'](_0x329254,_0x51ec78[_0x1e70b0(0x4eb)]),_0x1251d7=_0x2e4a46==null?void 0x0:_0x2e4a46['getSnapshot']()['tables'][_0x1a3c69['tableId']],_0x636774=_0x1251d7==null?void 0x0:_0x1251d7[_0x1e70b0(0x451)][_0x1a3c69[_0x1e70b0(0x399)]],_0x16a62e=Rr(_0x636774);if(_0x38e78f(()=>{const _0xc392f=_0x1e70b0;if(!_0x16a62e)return;let _0x35a8b8=_0x4257d0['current'];return _0x393b04['acquireChartRuntime'](_0x35a8b8,{'unitId':_0x329254,'tableId':_0x1a3c69[_0xc392f(0x475)],'viewId':_0x1a3c69['pivotViewId'],'filters':[]}),()=>{const _0x592605=_0xc392f;_0x393b04[_0x592605(0x503)](_0x329254,_0x35a8b8),_0x52cee9==null||_0x52cee9(_0x1a3c69['id'],null);};},[_0x16a62e,_0x52cee9,_0x393b04,_0x329254,_0x1a3c69['id'],_0x1a3c69[_0x1e70b0(0x399)],_0x1a3c69[_0x1e70b0(0x475)]]),_0x38e78f(()=>{const _0x29f1cb=_0x1e70b0;if(!Rr(_0x636774))return;let _0xf030c=!0x0,_0x21103a=_0x1a3c69['chart']??_0x636774[_0x29f1cb(0x4e8)]['chart'],_0x2ca16e={'unitId':_0x329254,'tableId':_0x1a3c69[_0x29f1cb(0x475)],'viewId':_0x1a3c69[_0x29f1cb(0x399)],'filters':[_0x636774[_0x29f1cb(0x1b3)]??null,..._0x231dff]};return _0x393b04[_0x29f1cb(0x41f)](_0x329254,_0x4257d0[_0x29f1cb(0x38f)],_0x2ca16e,_0x21103a)[_0x29f1cb(0x388)](_0x54e590=>{const _0x2c573d=_0x29f1cb;if(!_0xf030c||!_0x54e590)return;let _0x5de8c0=_0x393b04[_0x2c573d(0x33e)](_0x329254,_0x4257d0[_0x2c573d(0x38f)])??null;_0xf5b165(_0x54e590),_0x5393d6(_0x5de8c0),_0x1252f7(!0x1),_0x52cee9==null||_0x52cee9(_0x1a3c69['id'],_0x5de8c0);})[_0x29f1cb(0x3d2)](_0x58a6d9=>{const _0x2f73d6=_0x29f1cb;_0x48ec66[_0x2f73d6(0x1b4)]('[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x58a6d9),_0xf030c&&(_0xf5b165(null),_0x1252f7(!0x0));}),()=>{_0xf030c=!0x1;};},[_0x231dff,_0x48ec66,_0x52cee9,_0x393b04,_0x329254,_0x636774,_0x1a3c69[_0x1e70b0(0x4d8)],_0x1a3c69['id'],_0x1a3c69[_0x1e70b0(0x399)],_0x1a3c69[_0x1e70b0(0x475)]]),!Rr(_0x636774))return _0x4dabb7(_0x1e70b0(0x442),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','children':_0x6c10c5['t'](_0x1e70b0(0x3d7))});let _0x3ffa9b=_0x393b04[_0x1e70b0(0x33e)](_0x329254,_0x4257d0[_0x1e70b0(0x38f)])===_0x396abc?_0x396abc:null;return _0x2eb232&&_0x3ffa9b?_0x4dabb7(Ir,{'isRowDirection':_0x2fa6dd((_0x1a3c69['chart']??_0x636774[_0x1e70b0(0x4e8)][_0x1e70b0(0x4d8)])['orient']),'runtime':_0x3ffa9b}):_0x4dabb7(_0x1e70b0(0x442),{'className':_0x1e70b0(0x2d2),'children':_0x6c10c5['t'](_0x3b723e?'bases-dashboard-ui.pivot.calculationFailed':_0x1e70b0(0x463))});}function Rr(_0x2d5278){const _0x209af7=_0x2353bc;return(_0x2d5278==null?void 0x0:_0x2d5278['type'])===_0x5ee6b5[_0x209af7(0x49c)]&&typeof _0x2d5278[_0x209af7(0x4e8)]=='object'&&_0x2d5278[_0x209af7(0x4e8)]!==null&&_0x209af7(0x4aa)in _0x2d5278['config']&&_0x209af7(0x4d8)in _0x2d5278[_0x209af7(0x4e8)];}const zr={'alignment':'left','fontSize':0x12,'fontSizeMode':_0x2353bc(0x3b6)};function Br(_0x4bb747){const _0x3344ab=_0x2353bc;return{...zr,..._0x4bb747[_0x3344ab(0x294)]};}function Vr(_0x55cfa2){const _0x44e5f2=_0x2353bc;var _0x392692;return((_0x392692=_0x55cfa2['body'])==null?void 0x0:_0x392692['dataStream'][_0x44e5f2(0x436)](/\r\n$/,'')[_0x44e5f2(0x436)](/\r/g,'\x0a'))??'';}function _0x5550(){const _0x495b73=['bases-dashboard-ui.pivot.numberFormat','pageRows','base-dashboard-pivot-chart-','univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize','span','bases-dashboard-ui.dashboard.add','trim','bases-dashboard-ui.operators.isEmpty','radar','style','isSubtotal','general','BEFORE','getSnapshot','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.tableOnly','getRenderColor','config$','addFieldWithSourceId','2200219fEeaiZ','GREATER_THAN','supports','dashboardOrder','map','General','set','showRowGrandTotal','acquireChartRuntime','bases-dashboard-ui.pivot.removeField','pluginName','bases-dashboard-ui.chart.common.chartAndAxisTitles','1.0.3','clientY','bases-dashboard-ui.pivot.layoutCompact','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','repeatColLabels','univer-size-5\x20univer-rotate-90','NOT_CONTAINS','univer-size-4','bases-dashboard-ui.pivot.pageDirection','univer-shrink-0\x20univer-px-3','viewOrder','bases-dashboard-ui.pivot.pageWrap','rowSubtotalPosition','univer-flex','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','Number','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','series','constructor','bases-dashboard-ui.pivot.addToFilter','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','items','pipe','test','refreshChartRuntime','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','bases-dashboard-ui.pivot.layoutOutline','bases-dashboard-ui.pivot.top','item','bases-dashboard-ui.dashboard.search','scrollTop','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','setConfig','Positive','subItem','Rating','repeat','border','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','_chartThemeService','bases-dashboard-ui.pivot.max','bases-dashboard-ui.chart.common.switchRowColumn','default','small','gray','onCommit','MultipleGrandTotal','replace','67974DtPsPC','files','layout','bases-dashboard-ui.pivot.ascending','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','object','fieldId','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','UUID','base-pivot-chart-configuration','univer-text-sm\x20univer-font-medium','div','univer-grid\x20univer-gap-4\x20univer-p-4','fontSize','stroke','fillType','_configService','title','bases-dashboard-ui.dashboardInspector.reset','bases-dashboard-ui.pivot.showRowSubtotal','info','bases-dashboard-ui.pivot.product','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','minmax(0,\x203fr)\x20minmax(0,\x202fr)','bases-dashboard-ui.dashboardInspector.description','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','views','text','blur','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','page:','Row','fieldOrder','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','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','parentElement','bases-dashboard-ui.dashboardInspector.contain','data$','base-pivot-chart-setup','top','bases-dashboard-ui.dashboard.text','bases-dashboard-ui.dashboardInspector.editFormula','accept','initialLayouts','bases-dashboard-ui.pivot.calculating','some','select','bases-dashboard-ui.chart.common.setup','setSubtotalType','ManualFilter','image/*','dimension','renderRevision','Sankey','dashboard-chart-style','function','bases-dashboard-ui.dashboardInspector.clear','bases-dashboard-ui.pivot.display','univer-size-8\x20univer-p-0\x20univer-text-red-500','univer-mx-auto\x20univer-size-6','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','Scatter','tableId','bases-dashboard-ui.chart.section.relation','pie','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','repeatRowLabels','Value','formatMap','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','innerHeight','fill','bases-dashboard-ui.dashboard.new','funnel','[data-dashboard-widget]','section','tableFieldId','Series','orient','bases-dashboard-ui.chart.section.radar','row','VerticalAxis','baseChartDataAnimation','change','false','bases-dashboard-ui.pivot.countNumbers','replaceChildren','scrollHeight','backgroundImage','rowFields','rgb','stringify','bases-dashboard-ui.operators.notContains','Gauge','bases-dashboard-ui.chart.section.sunburst','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','startY','every','Column','univer-flex\x20univer-items-center\x20univer-gap-2','bases-dashboard-ui.chart.section.pie','Pivot','toLocaleLowerCase','onFilter','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','children','bases-dashboard-ui.pivot.acrossThenDown','UpdatedAt','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','isFinite','chartId','displayMode','bases-dashboard-ui.pivot.pivotConfiguration','bases-dashboard-ui.pivot.sourceFields','dashboard-widget-','pivot','bases-dashboard-ui.chart.section.lineAndArea','headerRowCount','values','Image','syncLayout','bases-dashboard-ui.dashboard.addWidget','data','center','sourceType','rowSpan','onMove','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','bases-dashboard-ui.dashboardInspector.enterValue','packageName','table','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','rows','bases-dashboard-ui.operators.is','exitFullscreen','univer-w-24','dataModel','setLabelFilterInfo','lastCol','doc','ParetoLineSeries','getAttachmentUrl','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','getOptions','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','createChartInstance','onDragOver','dom','bases-dashboard-ui.dashboardInspector.compact','from','univer-flex\x20univer-gap-2','destructive','keydown','segmented','input','subUnitId','bases-dashboard-ui.chart.common.legend','document','Person','chart','BaseDashboard','length','getBoundingClientRect','lastRow','scrollWidth','system','ensureMount','univer-grid\x20univer-gap-4','widgets','toUpperCase','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','Radar','LineAndArea','flex-start','Date','config','base-pivot-chart-','list','UNIVER_BASE','push','itemTypes','bases-dashboard-ui.dashboard.undo','Line','average','univer-flex\x20univer-flex-col\x20univer-gap-4','bases-dashboard-ui.operators.after','base-pivot-fields','symbol','Funnel','presentationChanged$','onCancel','toDate','univer-flex\x20univer-justify-end\x20univer-gap-2','ChartStyle','bases-dashboard-ui.dashboardInspector.uploadImage','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','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','bases-dashboard-ui.pivot.addToValue','string','bases-dashboard-ui.dashboardInspector.numberFormat','colView','bases-dashboard-ui.dashboardInspector.currency','releaseChartRuntime','saveAttachment','transparent','field','waterfall.positive','legend','custom','separator','documentStyle','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.addToColumn','36170QJphQa','borderRadius','operator','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','blank','labelId','bases-dashboard-ui.chart.common.series','checkMounted','\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','register','disconnect','getId','context','updateFieldPosition','Pie','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','filter','error','univer-w-full','Base\x20dashboard\x20chart\x20','pageOverThenDown','conditions','bases-dashboard-ui.dashboard.widgetActions','defaultValue','valuePosition','join','univer-size-5\x20univer-text-primary-600','compact','bases-dashboard-ui.dashboardInspector.close','univer-flex\x20univer-min-h-0\x20univer-flex-1','add','stdDevp','bases-dashboard-ui.pivot.rowSubtotalPosition','bases-dashboard-ui.dashboard.section','univer-text-right','getPresentation','measure','bases-dashboard-ui.dashboard.redo','bases-dashboard-ui.pivot.displayName','bases-dashboard-ui.operators.greaterThan','bases-dashboard-ui.chart.section.paretoBar','defineProperty','getTableFieldsByDataFieldId','shapeId','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','snapshot','addEventListener','IS_NOT','Subtotal','bases-dashboard-ui.pivot.rows','true','WaterfallSeries','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','shapeData','ChartAndAxisTitles','bases-dashboard-ui.dashboardInspector.custom','bases-dashboard-ui.chart.section.candlestick','239899hmavMD','bases-dashboard-ui.dashboardInspector.data','stopPropagation','Data','sortInfo','bases-dashboard-ui.dashboardInspector.number','fontSizeMode','cumulativeLineStyle','data:','tableOrder','rightY','pointermove','renameField','SolidFill','_localeService','disposeWithMe','bases-dashboard-ui.chart.common.verticalAxis','img','GridlinesAndTicks','floor','bases-dashboard-ui.dashboardInspector.removeImage','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','pointerY','232yMFdKS','bases-dashboard-ui.pivot.repeatColumnLabels','MultiSelect','body','decorate','valueFields','undos','getImage','corner:','bases-dashboard-ui.dashboardInspector.right','Candlestick','executeCommand','USD','decimalPlaces','AFTER','univer-h-full\x20univer-w-full\x20univer-bg-transparent','textColor','Checkbox','onMoveUp','@univerjs-pro/bases-dashboard-ui','match','date','left','baseOn','onDrop','Heatmap','\x20has\x20no\x20render\x20config.','unsubscribe','startX','bases-dashboard-ui.dashboardInspector.decimalPlaces','bases-dashboard-ui.pivot.grandTotal','271638dDHyCC','right','prototype','bases-dashboard-ui.dashboardInspector.unchecked','rootContainerElement','var','bases-dashboard-ui.dashboardInspector.textSize','bases-dashboard-ui.dashboardInspector.textColor','ascending','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','GrandTotal','_config','undoRedoStatus$','resize','boxSizing','bases-dashboard-ui.dashboardInspector.formula','IndicatorLine','mode','base-pivot-table-configuration','univer-truncate','currentTheme$','button','descending','documentElement','bases-dashboard-ui.chart.section.paretoLine','varp','pageView','alignment','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','minmax(0,\x201fr)','tbody','YYYY-MM-DD','bases-dashboard-ui.dashboard.configure','80zRxAjT','onMoveDown','end','bases-dashboard-ui.dashboardInspector.center','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','bases-dashboard-ui.chart.section.funnel','\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','observe','trendline','imageSourceType','wordCloud','univer-w-36','resolve','currency','Histogram','bases-dashboard-ui.operators.before','bases-dashboard-ui.pivot.defaultName','bases-dashboard-ui.dashboardInspector.backgroundColor','showRowSubtotal','univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','\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','clientHeight','isHeader','description','source','indicatorLine','removeField','Waterfall','currentTarget','activeRuntimeModel','univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','createDomChartInstance','paragraphId','bases-dashboard-ui.chart.section.histogram','bases-dashboard-ui.dashboardInspector.replaceImage','#,##0','view','bases-dashboard-ui.dashboard.rename','defaultPrevented','onReady','bases-dashboard-ui.dashboardInspector.newCondition','bases-dashboard-ui.pivot.valuePosition','iterator','univer-mt-2\x20univer-w-full','bases-dashboard-ui.dashboardInspector.originalSize','bases-dashboard-ui.chart.section.gridlinesAndTicks','titles','setSortInfo','BASE_DASHBOARD_UI_PLUGIN','indexOf','univer-mt-2','bases-dashboard-ui.dashboardInspector.backgroundImage','bases-dashboard-ui.dashboard.formulaShape','area','setStyle','bases-dashboard-ui.chart.common.horizontalAxis','ownerDocument','univer-grid\x20univer-gap-2\x20univer-p-3','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','columnSpan','GeneralSeries','overflow','size','fields','formula','contains','renderTransition','Trendline','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','move','base-pivot-options','matchMedia','removeEventListener','changed$','AND','showColSubtotal','fullscreenElement','bases-dashboard-ui.pivot.repeatRowLabels','clientX','value','matches','getOwnPropertyDescriptor','onRemove','bases-dashboard-ui.dashboard.fullScreen','SolidLine','univer-flex\x20univer-h-full\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.addToRow','rowView','bases-dashboard-ui.dashboardInspector.left','univer-text-gray-400','setLayout','univer-min-w-0\x20univer-flex-1','bases-dashboard-ui.pivot.layout','bases-dashboard-ui.dashboardInspector.general','bases-dashboard-ui.dashboard.image','appearance','dashboard-chart-setup','TableFilter','WordCloud','Text','_element','bases-dashboard-ui.pivot.dropFieldsHere','bases-dashboard-ui.dashboardInspector.autoFit','bases-dashboard-ui.pivot.count','dataset','kind','version','_injector','bases-dashboard-ui.pivot.filters','bases-dashboard-ui.pivot.blank','change$','dataView','bases-dashboard-ui.pivot.fields','bases-dashboard-ui.chart.common.chartStyle','stdDev','bases-dashboard-ui.operators.lessThanOrEqual','displayName','bases-dashboard-ui.dashboardInspector.loading','bases-dashboard-ui.mobile.moveUp','bases-dashboard-ui.dashboardInspector.style','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','Bubble','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','9NQOIMn','getResource','bases-dashboard-ui.pivot.descending','IS_EMPTY','1023704qcaUpR','base-pivot-chart','aside','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','clientWidth','bases-dashboard-ui.pivot.variance','bases-dashboard-ui.chart.section.wordCloud','bases-dashboard-ui.pivot.showColumnSubtotal','original','no-repeat','bases-dashboard-ui.chart.section.treemap','sum','bases-dashboard-ui.pivot.summarizeBy','bases-dashboard-ui.pivot.showColumnGrandTotal','bases-dashboard-ui.chart.common.heatmap','276zzAXvQ','bases-dashboard-ui.chart.section.waterfall','univer-cursor-grab','rightYAxis','bases-dashboard-ui.pivot.fieldSettings','tabular','fit','bases-dashboard-ui.pivot.showRowGrandTotal','barStyle','subtotal','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','redos','getValueIndex','bottom','Boxplot','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','bases-dashboard-ui.pivot.clearFilter','style$','10383SIiYEq','product','univer-w-full\x20univer-justify-start','getCurrentTheme','dispose','bases-dashboard-ui.pivot.dataSource','onStarting','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','src','setFieldFormat','executeChartUpdateConfig','bases-dashboard-ui.dashboardInspector.editData','filterFields','0\x200','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','Chord','Pareto','bases-dashboard-ui.operators.isNot','bases-dashboard-ui.dashboardInspector.cover','245czrfnV','currentColor','showColGrandTotal','max','border-box','call','\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','bases-dashboard-ui.dashboard.deleteWidget','get','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','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','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','subscribe','toJSON','bases-dashboard-ui.pivot.name','unitId','bases-dashboard-ui.config','SingleSelect','CreatedAt','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','waterfall','None','entries','heatmap','univer-flex\x20univer-min-h-full\x20univer-flex-col','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','LESS_THAN_OR_EQUAL','closest','bases-dashboard-ui.dashboard.delete','univer-mb-3\x20univer-text-sm\x20univer-font-medium','createRenderInput','base64Cache','headerMap','dataSource','has','bases-dashboard-ui.pivot.downThenAcross','radius','ceil','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','axis','base-pivot-chart-style','height','Axes','min','resizeDirection','getFieldPositionInfoById','bases-dashboard-ui.chart.chartTypes.','bases-dashboard-ui.pivot.columns','Escape','link','bases-dashboard-ui.dashboardInspector.dataSource','onDragEnd','bases-dashboard-ui.operators.isNotEmpty','contain','bases-dashboard-ui.chart.waterfall.subtotal','options','Currency','pointerup','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','bind','bases-dashboard-ui.pivot.confirm','bases-dashboard-ui.pivot.values','percent','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','name','index','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','bases-dashboard-ui.dashboardInspector.dragWidget','split','addImageSourceCache','RightVerticalAxis','chart-and-table','includes','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','univer-min-h-11\x20univer-px-3\x20univer-text-base','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','innerWidth','key','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','rowType','color','bases-dashboard-ui.mobile.moveDown','textStyle','fullscreenchange','getChartRuntime','bases-dashboard-ui.chart.common.customize','pareto','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','univer-flex-1','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','target','bases-dashboard-ui.pivot.description','univer-m-3','format','numberFormat','count','getDashboard','shapeType','bases-dashboard-ui.pivot.calculationFailed','rowCount','render','univer-shrink-0\x20univer-rounded-full\x20univer-bg-gray-200\x20univer-px-2\x20univer-py-0.5\x20univer-text-xs\x20univer-text-gray-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-300','bases-dashboard-ui.dashboard.pivotChart','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','Style','localeKey','allowMultiple','dataFieldId','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','univer-border-gray-200\x20dark:!univer-border-gray-700','px\x20solid\x20','ParetoBarSeries','bases-dashboard-ui.pivot.searchFields','baseChartDataAnimationDuration','CONTAINS','slice','\x20/\x20span\x20','focusUnit','bases-dashboard-ui.pivot.stdDevPopulation','isBottomTotal','widgetOrder','relation','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','group','Sunburst','univer-max-h-40\x20univer-text-base','bases-dashboard-ui.pivot.selectAll','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','header','bases-dashboard-ui.pivot.chartConfiguration','HorizontalAxis','LESS_THAN','FormulaShape','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','dashboards','row:','bases-dashboard-ui.pivot.layoutTabular','onSettings','bases-dashboard-ui.chart.common.rightVerticalAxis','IS_NOT_EMPTY','bases-dashboard-ui.pivot.cancel','cornerView','univer-flex\x20univer-flex-col','outline','model','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.chart.section.chord','operand','getUnit','primary','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','_createContext','univer-bg-transparent\x20dark:!univer-bg-transparent','bases-dashboard-ui.pivot.bottom','round','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','article','bases-dashboard-ui.chart.common.trendline','then','RecordId','getFieldCountByArea','initial','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','onDragStart','NumberFormat','current','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','permissionPointUpdate$','bases-dashboard-ui.dashboardInspector.repeat','type','backgroundColor','hidden','bases-dashboard-ui.dashboard.tableFilter','find','bases-dashboard-ui.dashboard.resizeWidget','pivotViewId','lineAndArea','column','tables','bases-dashboard-ui.dashboardInspector.selectOption','grouped','bases-dashboard-ui.dashboard.editWidget','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','bases-dashboard-ui.pivot.filterField','bases-dashboard-ui.mobile.permissions','PivotChart','dashboard-','valueIndex','waterfallStyle','RoundRect','waterfall.negative','bases-dashboard-ui.chart.section.gauge','Treemap','click','bases-dashboard-ui.pivot.stdDev','filterInfo','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','darkMode','label','isConnected','bases-dashboard-ui.pivot.sum','univer-text-sm','Filter','colCount','auto','getDataFieldByTableId','Legend','dataAggregation','requestFullscreen','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','flatMap','file','Group','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','forEach','getRect','bases-dashboard-ui.operators.lessThan','getImageSourceCache','number','Progress','bases-dashboard-ui.pivot.chartAndTable','bases-dashboard-ui.pivot.chartOnly','countNums','width','preventDefault','visibilityState','univer-border-0\x20univer-bg-transparent','allSeriesStyle','setCurrentUnitForType','bases-dashboard-ui.dashboardInspector.alignment','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','darkMode$','catch','univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.chart.common.editChart','cover','createElement','bases-dashboard-ui.dashboardInspector.sourceUnavailable','alt','conjunction','GREATER_THAN_OR_EQUAL','setOptions','saveImage','Relation','dashboard-text-','url(','bases-dashboard-ui.pivot.variancePopulation','bases-dashboard-ui.operators.greaterThanOrEqual','chartType','formulaBinding','bases-dashboard-ui.pivot.average','bases-dashboard-ui.dashboard.defaultName','updateValuePosition','bases-dashboard-ui.dashboardInspector.checked'];_0x5550=function(){return _0x495b73;};return _0x5550();}function Hr(_0x546313,_0x1f9b9a){const _0x1e4e18=_0x2353bc;var _0x43acee;let _0x5cadfb=_0x1f9b9a[_0x1e4e18(0x436)](/\r\n|\r/g,'\x0a')[_0x1e4e18(0x32d)]('\x0a'),_0x2c3b46=_0x5cadfb[_0x1e4e18(0x1bc)]('\x0d')+'\x0d\x0a',_0xf29daf=((_0x43acee=_0x546313[_0x1e4e18(0x1f7)])==null?void 0x0:_0x43acee['paragraphs'])??[],_0x5c3c22=new Set(_0xf29daf[_0x1e4e18(0x3ff)](_0x5b4b88=>_0x5b4b88[_0x1e4e18(0x254)])),_0xbd9f41=0x0,_0x5d26b3=_0x5cadfb[_0x1e4e18(0x3ff)]((_0x1c82e4,_0x36ed3d)=>{_0xbd9f41+=_0x1c82e4['length'];let _0x2040c5={..._0xf29daf[_0x36ed3d]??{'startIndex':_0xbd9f41,'paragraphId':_0x112de2(_0x5c3c22)},'startIndex':_0xbd9f41};return _0xbd9f41+=0x1,_0x2040c5;});return{..._0x546313,'body':{..._0x546313[_0x1e4e18(0x1f7)],'dataStream':_0x2c3b46,'paragraphs':_0x5d26b3,'textRuns':[]}};}function Ur({widget:_0x1b5e65}){const _0x1d3d68=_0x2353bc;let _0x2cda5d=_0x39b411(_0x277079),_0x3eb3bc=_0x39b411(_0x5cd3ee),_0x49edaa=_0x499abf(()=>_0x2cda5d['currentTheme$'],_0x2cda5d['getCurrentTheme'](),!0x1,[_0x2cda5d]),_0x2a2623=_0x35f949(null),_0x3f0a58=_0x35f949(null),_0x2eac20=Br(_0x1b5e65),_0x41d782=_0x2eac20[_0x1d3d68(0x394)]??_0x49edaa[_0x1d3d68(0x433)][0x0],_0x18494e=_0x2eac20[_0x1d3d68(0x204)]??_0x49edaa[_0x1d3d68(0x433)][0x3e8],_0x362cbc=Vr(_0x1b5e65[_0x1d3d68(0x4d6)]);return _0x38e78f(()=>{const _0x193d66=_0x1d3d68;let _0x81d58c=_0x2a2623[_0x193d66(0x38f)],_0xea3b65=_0x3f0a58['current'];if(!_0x81d58c||!_0xea3b65)return;let _0x438cdb=()=>{const _0xe3d182=_0x193d66;if(_0x2eac20[_0xe3d182(0x1e2)]===_0xe3d182(0x509)||!_0x81d58c[_0xe3d182(0x2b8)]||!_0x81d58c['clientHeight']){_0xea3b65[_0xe3d182(0x3f1)][_0xe3d182(0x444)]=_0x2eac20[_0xe3d182(0x444)]+'px';return;}let _0x20350c=0x8,_0x43893f=0x48,_0xbe4a6f=_0x20350c;for(;_0x20350c<=_0x43893f;){let _0x1effc5=Math[_0xe3d182(0x1ef)]((_0x20350c+_0x43893f)/0x2);_0xea3b65[_0xe3d182(0x3f1)][_0xe3d182(0x444)]=_0x1effc5+'px',_0xea3b65[_0xe3d182(0x4dd)]<=_0x81d58c['clientWidth']&&_0xea3b65[_0xe3d182(0x48e)]<=_0x81d58c[_0xe3d182(0x249)]?(_0xbe4a6f=_0x1effc5,_0x20350c=_0x1effc5+0x1):_0x43893f=_0x1effc5-0x1;}_0xea3b65[_0xe3d182(0x3f1)][_0xe3d182(0x444)]=_0xbe4a6f+'px';};if(_0x438cdb(),typeof ResizeObserver>'u')return;let _0x4b14f9=new ResizeObserver(_0x438cdb);return _0x4b14f9[_0x193d66(0x23b)](_0x81d58c),()=>_0x4b14f9[_0x193d66(0x1ad)]();},[_0x2eac20[_0x1d3d68(0x444)],_0x2eac20['fontSizeMode'],_0x362cbc]),_0x4dabb7(_0x1d3d68(0x442),{'data-dashboard-text-widget':_0x1b5e65['id'],'className':'univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','style':{'backgroundColor':_0x41d782,'color':_0x18494e},'children':_0x4dabb7(_0x1d3d68(0x442),{'ref':_0x2a2623,'data-dashboard-text-content':!0x0,'aria-label':_0x3eb3bc['t'](_0x1d3d68(0x45f)),'className':_0x1d3d68(0x4c7),'children':_0x4dabb7(_0x1d3d68(0x442),{'ref':_0x3f0a58,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x2eac20['fontSizeMode'],'className':_0x1d3d68(0x238),'style':{'textAlign':_0x2eac20[_0x1d3d68(0x22e)]},'children':_0x362cbc})})});}function Wr({dashboard:_0x368a36,editable:_0x43d787=!0x0,onSelectWidget:_0x4a13c5,renderWidget:_0x1406c3,renderWidgetActions:_0x24e003,selectedWidgetId:_0x22ce65,widgetLabel:_0x1ceb2a}){const _0x151c16=_0x2353bc;return _0x4dabb7(_0x151c16(0x442),{'data-dashboard-scroll-container':!0x0,'className':_0x52fed8(_0x151c16(0x338),_0x2a22a5),'onClick':_0x43d787?_0x177a22=>{const _0x1ae054=_0x151c16;if(!(_0x177a22['target']instanceof Node)||!_0x177a22[_0x1ae054(0x250)][_0x1ae054(0x275)](_0x177a22[_0x1ae054(0x344)]))return;let _0x22d340=_0x177a22[_0x1ae054(0x344)]instanceof Element?_0x177a22[_0x1ae054(0x344)]:_0x177a22[_0x1ae054(0x344)][_0x1ae054(0x45a)];_0x22d340!=null&&_0x22d340[_0x1ae054(0x304)](_0x1ae054(0x481))||_0x4a13c5==null||_0x4a13c5();}:void 0x0,'children':_0x4dabb7('div',{'data-dashboard-grid':!0x0,'className':_0x151c16(0x36f),'children':_0x368a36[_0x151c16(0x362)]['map'](_0x3ff3a1=>{const _0x1c9204=_0x151c16;let _0x244daa=_0x368a36[_0x1c9204(0x4e1)][_0x3ff3a1];if(!_0x244daa)return null;let _0x3b3e82=Math[_0x1c9204(0x2eb)](0xb4,_0x244daa['layout'][_0x1c9204(0x4b4)]*_0x50185b);return _0x2b00c1('article',{'data-dashboard-widget':_0x244daa['id'],'aria-label':_0x244daa[_0x1c9204(0x448)]??_0x1ceb2a(_0x244daa),'className':_0x52fed8(_0x1c9204(0x2f1),_0x244daa[_0x1c9204(0x393)]===_0x342116[_0x1c9204(0x4ae)]||_0x244daa[_0x1c9204(0x393)]===_0x342116[_0x1c9204(0x36e)]?_0x1c9204(0x382):_0x1c9204(0x3d3),_0x43d787&&_0x22ce65===_0x244daa['id']?_0x1c9204(0x30f):_0x1c9204(0x357)),'style':{'minHeight':_0x3b3e82,'height':_0x3b3e82},'tabIndex':_0x43d787?0x0:void 0x0,'onClick':_0x43d787?()=>_0x4a13c5==null?void 0x0:_0x4a13c5(_0x244daa['id']):void 0x0,'onFocus':_0x43d787?()=>_0x4a13c5==null?void 0x0:_0x4a13c5(_0x244daa['id']):void 0x0,'children':[_0x43d787&&_0x4dabb7('div',{'className':_0x1c9204(0x2f3),'children':_0x24e003==null?void 0x0:_0x24e003(_0x244daa)}),_0x4dabb7('div',{'className':'univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','children':_0x1406c3(_0x244daa)})]},_0x244daa['id']);})})});}let Gr=class extends _0x3ae17a{constructor(_0x3f8264){const _0x1230e9=_0x2353bc;super(_0x3f8264),Pr(this,_0x1230e9(0x251),null);}[_0x2353bc(0x2df)](_0x3a5eb3){}};Gr=Or([Y(0x0,_0x2a19f9(_0x2cea70))],Gr);function Kr({children:_0x2143b2}){return _0x4dabb7(_0xac1dd7,{'children':_0x2143b2});}function qr(_0x5d5e01){return _0x4dabb7(_0x3b7f81,{..._0x5d5e01});}function Jr(_0x454423){return _0x4dabb7(_0x4083c0,{..._0x454423});}function Yr(_0x1474e5){return _0x4dabb7(_0x138a17,{..._0x1474e5});}var Xr;const X={'axis':{..._0x5caca4,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x26697d,'heatmap':_0x296680,'indicatorLine':_0x195779,'legend':_0x4fe0eb,'lineAndArea':_0x499ec0,'pareto':_0x4cf110,'pie':_0x1db8a1,'radar':_0x35ac4f,'relation':{..._0x2da675,'useValueAsSymbolSize':!0x0},'series':{..._0x396e30,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Xr=_0x46c996[_0x2353bc(0x3cd)])==null?void 0x0:Xr[_0x2353bc(0x2c6)])??!0x1}},'style':_0x5792d9,'titles':_0x21806e,'trendline':_0x563c89,'waterfall':{..._0x2c231e,'useSubtotal':!0x0},'waterfallStyle':_0x31f02c,'wordCloud':_0x8c0c35},Zr=[_0x3414f3['Line'],_0x3414f3[_0x2353bc(0x4e4)],_0x3414f3[_0x2353bc(0x297)],_0x3414f3[_0x2353bc(0x474)],_0x3414f3[_0x2353bc(0x4f5)],_0x3414f3[_0x2353bc(0x3dd)],_0x3414f3[_0x2353bc(0x46c)],_0x3414f3['Heatmap'],_0x3414f3[_0x2353bc(0x2d1)],_0x3414f3[_0x2353bc(0x1fe)],_0x3414f3['Histogram'],_0x3414f3['Treemap'],_0x3414f3['Sunburst'],_0x3414f3[_0x2353bc(0x494)],_0x3414f3[_0x2353bc(0x2e4)]];function Qr(_0x26d638){const _0x1a8e3c=_0x2353bc;let {config:_0x459fc1,onChange:_0x526207,runtime:_0x2397cf,tableName:_0x5b167a}=_0x26d638,_0x8bc3c6=_0x39b411(Gr),_0x204292=_0x39b411(_0x5cd3ee),[_0x277c9d,_0x3d17bc]=_0x2be63d(_0x139866['Data']),_0x29022e=_0x56a185(()=>new _0x29d554(_0x2397cf[_0x1a8e3c(0x37a)],{'commit':_0x40426c=>{const _0x4f765c=_0x1a8e3c;var _0x145aa8;let _0x2a17bf=_0x2397cf['model'],_0x36b775=_0x485197(_0x40426c,{'series':(_0x145aa8=_0x2a17bf[_0x4f765c(0x4e8)])==null?void 0x0:_0x145aa8[_0x4f765c(0x418)],'currentChartType':_0x2a17bf['chartType'],'currentStyle':_0x2a17bf[_0x4f765c(0x3f1)],'currentContext':_0x2a17bf[_0x4f765c(0x1af)],'currentDataAggregation':_0x2a17bf[_0x4f765c(0x3b9)]});_0x526207({'chart':$r(_0x459fc1[_0x4f765c(0x4d8)],_0x36b775)});}}),[_0x459fc1[_0x1a8e3c(0x4d8)],_0x526207,_0x2397cf]),_0x218da2=_0x56a185(()=>_0x2dbfb8(_0x170e20[_0x1a8e3c(0x3ff)](_0x4578fe=>({..._0x4578fe,'label':_0x204292['t'](ri(_0x4578fe[_0x1a8e3c(0x1a8)]))}))),[_0x204292]);return _0x4dabb7(_0x2dc504,{'chartUIService':_0x8bc3c6,'hostAdapter':_0x29022e,'children':_0x2b00c1('div',{'className':_0x1a8e3c(0x450),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x204292['t'](_0x1a8e3c(0x3d4)),'className':_0x1a8e3c(0x410),'items':[{'label':_0x204292['t'](_0x1a8e3c(0x466)),'panelId':'base-pivot-chart-setup','value':_0x139866[_0x1a8e3c(0x1df)]},{'label':_0x204292['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x1a8e3c(0x311),'value':_0x139866[_0x1a8e3c(0x352)]}],'value':_0x277c9d,'onChange':_0x3d17bc}),_0x277c9d===_0x139866[_0x1a8e3c(0x1df)]?_0x4dabb7(_0x3812e6,{'id':'base-pivot-chart-setup','label':_0x204292['t'](_0x1a8e3c(0x466)),'children':_0x2b00c1(_0x1a8e3c(0x442),{'className':_0x1a8e3c(0x4e3),'children':[_0x4dabb7(_0x195039,{'options':_0x218da2}),_0x4dabb7(_0x3eaf0a,{}),_0x4dabb7(_0x1603db,{}),_0x4dabb7(ei,{}),_0x4dabb7(_0x3210ae,{}),_0x2b00c1('div',{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x204292['t']('bases-dashboard-ui.pivot.dataSource')}),_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x5b167a})]}),_0x4dabb7(_0x26c1b7,{'orientationControl':_0x4dabb7(_0x1b3e3b,{'size':_0x1a8e3c(0x432),'onClick':()=>_0x526207({'chart':{..._0x459fc1[_0x1a8e3c(0x4d8)],'orient':_0x459fc1[_0x1a8e3c(0x4d8)]['orient']==='row'?_0x1a8e3c(0x39b):_0x1a8e3c(0x487)}}),'children':_0x204292['t'](_0x1a8e3c(0x430))})}),_0x4dabb7(_0x45db86,{}),_0x4dabb7(_0x4e37ce,{'defaultValues':X[_0x1a8e3c(0x2fd)]}),_0x2b00c1('div',{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x204292['t']('bases-dashboard-ui.pivot.display')}),_0x4dabb7(qr,{'value':_0x459fc1['displayMode'],'options':[{'value':_0x1a8e3c(0x330),'label':_0x204292['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':_0x1a8e3c(0x4d8),'label':_0x204292['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':_0x1a8e3c(0x4bb),'label':_0x204292['t'](_0x1a8e3c(0x3f7))}],'onChange':_0x1604ee=>{const _0x197162=_0x1a8e3c;(_0x1604ee==='chart-and-table'||_0x1604ee===_0x197162(0x4d8)||_0x1604ee===_0x197162(0x4bb))&&_0x526207({'displayMode':_0x1604ee});}})]})]})}):_0x4dabb7(_0x3812e6,{'id':_0x1a8e3c(0x311),'label':_0x204292['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x4dabb7(ti,{})})]})});}function $r(_0x3da4f2,_0x371df6){const _0x403af7=_0x2353bc;return{..._0x3da4f2,'type':_0x371df6[_0x403af7(0x3e2)]??_0x3da4f2['type'],'style':_0x371df6[_0x403af7(0x3f1)]??_0x3da4f2[_0x403af7(0x3f1)],'context':_0x371df6[_0x403af7(0x1af)]??_0x3da4f2['context'],'dataAggregation':_0x371df6['dataAggregation']??_0x3da4f2[_0x403af7(0x3b9)]};}function ei(){const _0xb69f9a=_0x2353bc;let _0x3275ea=_0x1f2e67();return _0x4dabb7(_0x34de73,{'visible':Zr[_0xb69f9a(0x498)](_0x218882=>!_0x4c5ed5[_0xb69f9a(0x20b)](_0x3275ea,_0x218882))});}function Z(_0x553fc8){const _0x1b1121=_0x2353bc;return _0x2b00c1(_0x1358f8,{'id':_0x553fc8['id'],'children':[_0x4dabb7(_0x352fb4,{'children':_0x553fc8[_0x1b1121(0x3b0)]}),_0x4dabb7(_0xaf7aad,{'children':_0x553fc8[_0x1b1121(0x4a0)]})]});}function ti(){const _0xbfa589=_0x2353bc;let _0x5c07c1=_0x39b411(_0x5cd3ee),_0x35deb5=_0x1f2e67(),_0x209d8e=_0x51b799(),[_0x3c1cba,_0x37837e]=_0x2be63d(null),_0xc449c=_0x4c5ed5[_0xbfa589(0x20b)](_0x35deb5,_0x3414f3['Pie']),_0x4de0ce=_0x35deb5===_0x3414f3[_0xbfa589(0x4e4)],_0x4f0883=_0x35deb5===_0x3414f3['WordCloud'],_0x210def=_0x35deb5===_0x3414f3[_0xbfa589(0x4f5)],_0x10bfca=_0x4c5ed5['baseOn'](_0x35deb5,_0x3414f3[_0xbfa589(0x2ae)]),_0x5d6391=_0x35deb5===_0x3414f3[_0xbfa589(0x3dd)],_0x26097a=_0x35deb5===_0x3414f3[_0xbfa589(0x24f)],_0x23a33f=_0x35deb5===_0x3414f3[_0xbfa589(0x2e5)],_0x2a2e3b=_0x35deb5===_0x3414f3[_0xbfa589(0x20d)],_0x2e0d24=_0x326a9b(_0x35deb5,_0x1958f1['GeneralSeries'])&&!_0x10bfca&&!_0x23a33f,_0x441410=ni(_0x35deb5,_0x5c07c1);return _0x2b00c1(_0x28ef86,{'value':_0x3c1cba,'onChange':_0x37837e,'children':[_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x4fa)],'label':_0x5c07c1['t'](_0xbfa589(0x2a6)),'children':_0x4dabb7(_0x466794,{'defaultValues':X[_0xbfa589(0x3f1)]})}),_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x1d9)],'label':_0x5c07c1['t'](_0xbfa589(0x406)),'children':_0x4dabb7(_0xe815e7,{'commitMode':_0xbfa589(0x453),'defaultValues':X[_0xbfa589(0x262)]})}),_0x2e0d24&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x484)],'label':_0x5c07c1['t']('bases-dashboard-ui.chart.common.series'),'children':_0x4dabb7(_0x3bcbff,{'defaultValues':X['series'],'NumberFormatField':_0x2f8e19})}),_0x26097a&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x1d6)],'label':_0x5c07c1['t'](_0xbfa589(0x2c4)),'children':_0x4dabb7(_0x217c37,{'defaultValues':X[_0xbfa589(0x3a6)],'getDefaultBucketName':({seriesName:_0x5101c9,target:_0x3ec3e5})=>_0x3ec3e5===_0x6a9b13[_0xbfa589(0x1d3)]?_0x5c07c1['t'](_0xbfa589(0x31f)):_0x5101c9?_0x5101c9+'-('+_0x5c07c1['t']('bases-dashboard-ui.chart.'+(_0x3ec3e5===_0x6a9b13[_0xbfa589(0x428)]?_0xbfa589(0x507):_0xbfa589(0x3a8)))+')':'','NumberFormatField':_0x2f8e19})}),_0x23a33f&&_0x2b00c1(_0xa1bb43,{'children':[_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x359)],'label':_0x5c07c1['t'](_0xbfa589(0x1cb)),'children':_0x4dabb7(_0x35a412,{'defaultValues':X[_0xbfa589(0x340)],'NumberFormatField':_0x2f8e19,'showDataPointEditor':!0x0,'target':_0xbfa589(0x2cb)})}),_0x4dabb7(Z,{'id':_0x8fe1f1['ParetoLineSeries'],'label':_0x5c07c1['t'](_0xbfa589(0x22b)),'children':_0x4dabb7(_0x35a412,{'defaultValues':X[_0xbfa589(0x340)],'NumberFormatField':_0x2f8e19,'showDataPointEditor':!0x1,'target':_0xbfa589(0x1e3)})})]}),_0xc449c&&_0x4dabb7(Z,{'id':_0x8fe1f1['PieStyle'],'label':_0x5c07c1['t']('bases-dashboard-ui.chart.section.pie'),'children':_0x4dabb7(_0x34a105,{'defaultValues':X['pie'],'NumberFormatField':_0x2f8e19})}),_0x4f0883&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x297)],'label':_0x5c07c1['t'](_0xbfa589(0x2ba)),'children':_0x4dabb7(_0x5ac713,{'defaultValues':X[_0xbfa589(0x23e)]})}),_0x4de0ce&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x4e4)],'label':_0x5c07c1['t'](_0xbfa589(0x486)),'children':_0x4dabb7(_0x4c7c71,{'defaultValues':X[_0xbfa589(0x3f0)]})}),_0x210def&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x4f5)],'label':_0x5c07c1['t'](_0xbfa589(0x239)),'children':_0x4dabb7(_0x666ad2,{'defaultValues':X['funnel'],'gapControl':_0xbfa589(0x465)})}),_0x2a2e3b&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x20d)],'label':_0x5c07c1['t'](_0xbfa589(0x2c2)),'children':_0x4dabb7(_0x3c01f2,{'defaultValues':X[_0xbfa589(0x300)]})}),_0x5d6391&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x3dd)],'label':_0x5c07c1['t'](_0xbfa589(0x476)),'children':_0x4dabb7(_0x11ce9e,{'defaultValues':X[_0xbfa589(0x363)]})}),_0x59d745(_0x35deb5)&&_0x4dabb7(Z,{'id':_0x8fe1f1['LineAndArea'],'label':_0x5c07c1['t'](_0xbfa589(0x4ab)),'children':_0x4dabb7(_0x457b13,{'defaultValues':X['lineAndArea'],'lineStyleControl':_0xbfa589(0x4d2)})}),_0x326a9b(_0x35deb5,_0x1958f1[_0xbfa589(0x3b8)])&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x3b8)],'label':_0x5c07c1['t'](_0xbfa589(0x4d5)),'children':_0x4dabb7(_0x1dc64f,{'defaultValues':X[_0xbfa589(0x508)]})}),_0x326a9b(_0x35deb5,_0x1958f1[_0xbfa589(0x313)])&&_0x2b00c1(_0xa1bb43,{'children':[_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x36c)],'label':_0x5c07c1['t'](_0xbfa589(0x26b)),'children':_0x4dabb7(_0x185c32,{'axis':'x','defaultValues':X['axis'],'NumberFormatField':_0x2f8e19})}),_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x488)],'label':_0x5c07c1['t'](_0xbfa589(0x1ec)),'children':_0x4dabb7(_0x185c32,{'axis':'y','defaultValues':X[_0xbfa589(0x310)],'NumberFormatField':_0x2f8e19})}),_0x209d8e&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x32f)],'label':_0x5c07c1['t'](_0xbfa589(0x374)),'children':_0x4dabb7(_0x185c32,{'axis':_0xbfa589(0x1e6),'defaultValues':X[_0xbfa589(0x310)],'NumberFormatField':_0x2f8e19})}),_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x1ee)],'label':_0x5c07c1['t'](_0xbfa589(0x261)),'children':_0x4dabb7(_0x1f6674,{'defaultValues':X[_0xbfa589(0x310)]})})]}),_0x326a9b(_0x35deb5,_0x1958f1[_0xbfa589(0x223)])&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x223)],'label':_0x5c07c1['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x4dabb7(_0x5f2295,{'defaultValues':X['indicatorLine']})}),_0xae124c(_0x35deb5)&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x277)],'label':_0x5c07c1['t'](_0xbfa589(0x387)),'children':_0x4dabb7(_0x3c8ddd,{'defaultValues':X[_0xbfa589(0x23c)]})}),_0x441410&&_0x4dabb7(Z,{'id':_0x441410['id'],'label':_0x441410[_0xbfa589(0x3b0)],'children':_0x4dabb7(_0x5d0cdf,{})})]});}function ni(_0x557cb7,_0x3ea701){const _0x140274=_0x2353bc;let _0x3e56ef={[_0x3414f3[_0x140274(0x1fe)]]:{'id':_0x8fe1f1[_0x140274(0x1fe)],'localeKey':_0x140274(0x1db)},[_0x3414f3['Histogram']]:{'id':_0x8fe1f1[_0x140274(0x242)],'localeKey':_0x140274(0x255)},[_0x3414f3[_0x140274(0x3aa)]]:{'id':_0x8fe1f1['Treemap'],'localeKey':_0x140274(0x2be)},[_0x3414f3[_0x140274(0x366)]]:{'id':_0x8fe1f1[_0x140274(0x366)],'localeKey':_0x140274(0x495)},[_0x3414f3[_0x140274(0x494)]]:{'id':_0x8fe1f1[_0x140274(0x494)],'localeKey':_0x140274(0x3a9)},[_0x3414f3[_0x140274(0x2e4)]]:{'id':_0x8fe1f1[_0x140274(0x2e4)],'localeKey':_0x140274(0x37c)}}[_0x557cb7];return _0x3e56ef?{'id':_0x3e56ef['id'],'label':_0x3ea701['t'](_0x3e56ef[_0x140274(0x353)])}:null;}function ri(_0x17294f){return'bases-dashboard-ui.chart.chartTypes.'+_0x17294f;}function ii({onChange:_0x24c751,onEditData:_0x328425,runtime:_0x48e895,sourceChart:_0x3bd8eb,sourceName:_0x43ddac,widget:_0x55dc0b}){const _0x3ecf51=_0x2353bc;let _0x1fcc4d=_0x39b411(Gr),_0x440d46=_0x39b411(_0x5cd3ee),[_0x1c42dc,_0x56406e]=_0x2be63d(_0x139866[_0x3ecf51(0x1df)]),_0x26c278=_0x55dc0b[_0x3ecf51(0x4d8)]??_0x3bd8eb,_0x1c74ec=_0x56a185(()=>new _0x29d554(_0x48e895[_0x3ecf51(0x37a)],{'commit':_0x2722a7=>{const _0x1cb880=_0x3ecf51;var _0x3438e4;let _0x189376=_0x48e895[_0x1cb880(0x37a)],_0x1c6e11=_0x485197(_0x2722a7,{'series':(_0x3438e4=_0x189376['config'])==null?void 0x0:_0x3438e4[_0x1cb880(0x418)],'currentChartType':_0x189376[_0x1cb880(0x3e2)],'currentStyle':_0x189376[_0x1cb880(0x3f1)],'currentContext':_0x189376[_0x1cb880(0x1af)],'currentDataAggregation':_0x189376[_0x1cb880(0x3b9)]});_0x24c751({..._0x55dc0b,'chart':$r(_0x26c278,_0x1c6e11)})['catch'](()=>void 0x0);}}),[_0x26c278,_0x24c751,_0x48e895,_0x55dc0b]),_0xee1465=_0x56a185(()=>_0x2dbfb8(_0x170e20[_0x3ecf51(0x3ff)](_0x40b079=>({..._0x40b079,'label':_0x440d46['t'](ai(_0x40b079[_0x3ecf51(0x1a8)]))}))),[_0x440d46]);return _0x4dabb7(_0x4bacfa,{'chartUIService':_0x1fcc4d,'hostAdapter':_0x1c74ec,'children':_0x2b00c1(_0x3ecf51(0x442),{'data-dashboard-chart-inspector':!0x0,'className':_0x3ecf51(0x2f2),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x440d46['t'](_0x3ecf51(0x3d4)),'className':_0x3ecf51(0x410),'items':[{'label':_0x440d46['t'](_0x3ecf51(0x466)),'panelId':_0x3ecf51(0x295),'value':_0x139866[_0x3ecf51(0x1df)]},{'label':_0x440d46['t'](_0x3ecf51(0x33f)),'panelId':_0x3ecf51(0x46d),'value':_0x139866[_0x3ecf51(0x352)]}],'value':_0x1c42dc,'onChange':_0x56406e}),_0x1c42dc===_0x139866[_0x3ecf51(0x1df)]?_0x4dabb7(_0x3812e6,{'id':'dashboard-chart-setup','label':_0x440d46['t'](_0x3ecf51(0x466)),'children':_0x2b00c1('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x4dabb7(_0x195039,{'options':_0xee1465}),_0x4dabb7(_0x3eaf0a,{}),_0x4dabb7(_0x1603db,{}),_0x4dabb7(ei,{}),_0x4dabb7(_0x3210ae,{}),_0x2b00c1(_0x3ecf51(0x442),{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x440d46['t']('bases-dashboard-ui.dashboardInspector.dataSource')}),_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x43ddac}),_0x4dabb7(_0x1b3e3b,{'className':_0x3ecf51(0x25f),'onClick':_0x328425,'children':_0x440d46['t'](_0x3ecf51(0x2e0))})]})]})}):_0x4dabb7(_0x3812e6,{'id':'dashboard-chart-style','label':_0x440d46['t'](_0x3ecf51(0x33f)),'children':_0x4dabb7(ti,{})})]})});}function ai(_0x302d85){const _0x1fa892=_0x2353bc;return _0x1fa892(0x317)+_0x302d85;}const oi=[_0x2353bc(0x3f3),_0x2353bc(0x3c4),_0x2353bc(0x327),_0x2353bc(0x241),_0x2353bc(0x39e),_0x2353bc(0x1be)];function si({base:_0x519c35,onChange:_0x255deb,onSelectBackgroundImage:_0xed7c5c,widget:_0x3d782c}){const _0x419e6d=_0x2353bc;var _0xe252be;let _0x1b4850=_0x39b411(_0x5cd3ee),_0x3fb4b2=_0x39b411(_0x277079),_0x4947f5=_0x499abf(()=>_0x3fb4b2[_0x419e6d(0x227)],_0x3fb4b2[_0x419e6d(0x2d8)](),!0x1,[_0x3fb4b2]),_0xe55b09=_0x499abf(()=>_0x3fb4b2[_0x419e6d(0x3d1)],_0x3fb4b2[_0x419e6d(0x3af)],!0x1,[_0x3fb4b2]),[_0x51db30,_0x1765e2]=_0x2be63d(_0x419e6d(0x4b1)),[_0x5fc54,_0x4271b2]=_0x2be63d(!0x1),_0x26f90a=xr(_0x3d782c),_0x5094da=_0x519c35[_0x419e6d(0x3f5)]()['tables'][_0x3d782c[_0x419e6d(0x475)]],_0x7743e6=_0x5094da==null?void 0x0:_0x5094da[_0x419e6d(0x411)][_0x419e6d(0x397)](_0x35e99a=>_0x5094da[_0x419e6d(0x451)][_0x35e99a]),_0x52623c=_0x7743e6?_0x5094da==null?void 0x0:_0x5094da[_0x419e6d(0x451)][_0x7743e6]:void 0x0,_0x5574b2=_0x5094da&&_0x52623c?_0x57cd99(_0x519c35[_0x419e6d(0x3f5)](),_0x5094da,_0x52623c)[_0x419e6d(0x3ff)](_0x45ef9d=>({..._0x45ef9d,'current':!0x1})):[],_0x6a0f9=((_0xe252be=_0x3d782c[_0x419e6d(0x1d8)][_0x419e6d(0x3e3)])==null?void 0x0:_0xe252be['formula'])??'',_0xe18a76=_0x103cda=>_0x255deb(Sr(_0x3d782c,_0x103cda))['catch'](()=>void 0x0),_0x1c3adc=_0x581676=>_0x255deb({..._0x3d782c,'description':_0x581676})[_0x419e6d(0x3d2)](()=>void 0x0);return _0x2b00c1(_0x419e6d(0x442),{'data-dashboard-formula-inspector':!0x0,'className':_0x419e6d(0x2f2),'children':[_0x4dabb7(_0x116fe9,{'className':'univer-m-3','items':[{'value':_0x419e6d(0x4b1),'label':_0x1b4850['t'](_0x419e6d(0x1dd))},{'value':_0x419e6d(0x3f1),'label':_0x1b4850['t'](_0x419e6d(0x2ac))}],'value':_0x51db30,'onChange':_0x1765e2}),_0x4dabb7(_0x419e6d(0x442),{'className':_0x419e6d(0x26e),'children':_0x51db30==='data'?_0x2b00c1(_0x419e6d(0x442),{'className':_0x419e6d(0x4e0),'children':[_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x44f)),'children':_0x4dabb7(_0x2c53ee,{'value':_0x3d782c[_0x419e6d(0x24b)]??_0x3d782c[_0x419e6d(0x448)]??'','onChange':_0x1c3adc,'onBlur':_0x546090=>_0x1c3adc(_0x546090[_0x419e6d(0x344)]['value'])})}),_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x31b)),'children':_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':(_0x5094da==null?void 0x0:_0x5094da[_0x419e6d(0x329)])??_0x1b4850['t'](_0x419e6d(0x3d7))})}),_0x2b00c1(ci,{'label':_0x1b4850['t'](_0x419e6d(0x222)),'children':[_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x1b3454(_0x6a0f9,_0x5574b2)}),_0x4dabb7(_0x1b3e3b,{'className':_0x419e6d(0x25f),'onClick':()=>_0x4271b2(!0x0),'children':_0x1b4850['t'](_0x419e6d(0x460))})]})]}):_0x2b00c1('div',{'className':_0x419e6d(0x4e0),'children':[_0x4dabb7(_0x38703b,{'emptyLabel':_0x1b4850['t'](_0x419e6d(0x245)),'label':_0x1b4850['t'](_0x419e6d(0x245)),'pickerFallbackValue':_0xe55b09?_0x4947f5[_0x419e6d(0x433)][0x384]:_0x4947f5[_0x419e6d(0x433)][0x0],'resetLabel':_0x1b4850['t'](_0x419e6d(0x449)),'value':_0x26f90a[_0x419e6d(0x394)]??null,'onChange':_0x2233b1=>_0xe18a76({'backgroundColor':_0x2233b1??void 0x0})}),_0x2b00c1(ci,{'label':_0x1b4850['t'](_0x419e6d(0x267)),'children':[_0x2b00c1('div',{'className':_0x419e6d(0x4cf),'children':[_0x2b00c1(_0x1b3e3b,{'className':_0x419e6d(0x342),'onClick':()=>{const _0xeca2d1=_0x419e6d;_0xed7c5c()[_0xeca2d1(0x388)](_0x176032=>{const _0x1d68c4=_0xeca2d1;if(_0x176032){var _0x3978e0;return _0xe18a76({'backgroundImage':{..._0x176032,'fit':((_0x3978e0=_0x26f90a[_0x1d68c4(0x48f)])==null?void 0x0:_0x3978e0['fit'])??'cover'}});}})[_0xeca2d1(0x3d2)](()=>void 0x0);},'children':[_0x4dabb7(_0x5155a3,{}),_0x26f90a[_0x419e6d(0x48f)]?_0x1b4850['t'](_0x419e6d(0x256)):_0x1b4850['t'](_0x419e6d(0x4fb))]}),_0x26f90a[_0x419e6d(0x48f)]&&_0x4dabb7(_0x1b3e3b,{'aria-label':_0x1b4850['t'](_0x419e6d(0x1f0)),'title':_0x1b4850['t'](_0x419e6d(0x1f0)),'onClick':()=>_0xe18a76({'backgroundImage':void 0x0}),'children':_0x4dabb7(_0x2d17f6,{})})]}),_0x26f90a[_0x419e6d(0x48f)]&&_0x4dabb7(_0x116fe9,{'className':_0x419e6d(0x266),'items':[{'value':_0x419e6d(0x3d5),'label':_0x1b4850['t'](_0x419e6d(0x2e7))},{'value':_0x419e6d(0x31e),'label':_0x1b4850['t'](_0x419e6d(0x45b))}],'value':_0x26f90a[_0x419e6d(0x48f)]['fit'],'onChange':_0x4a704d=>_0xe18a76({'backgroundImage':_0x26f90a[_0x419e6d(0x48f)]?{..._0x26f90a[_0x419e6d(0x48f)],'fit':_0x4a704d}:void 0x0})})]}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x1b4850['t'](_0x419e6d(0x21a)),'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0xe55b09?_0x4947f5[_0x419e6d(0x433)][0x32]:_0x4947f5[_0x419e6d(0x433)][0x3e8],'resetLabel':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x26f90a[_0x419e6d(0x204)]??null,'onChange':_0x17607b=>_0xe18a76({'textColor':_0x17607b??void 0x0})}),_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x3cf)),'children':_0x4dabb7(_0x116fe9,{'items':[{'value':'left','label':_0x1b4850['t'](_0x419e6d(0x28d))},{'value':_0x419e6d(0x4b2),'label':_0x1b4850['t'](_0x419e6d(0x237))},{'value':'right','label':_0x1b4850['t'](_0x419e6d(0x1fd))}],'value':_0x26f90a[_0x419e6d(0x22e)],'onChange':_0x56fcc0=>_0xe18a76({'alignment':_0x56fcc0})})}),_0x2b00c1(ci,{'label':_0x1b4850['t'](_0x419e6d(0x219)),'children':[_0x4dabb7(_0x116fe9,{'items':[{'value':_0x419e6d(0x3b6),'label':_0x1b4850['t'](_0x419e6d(0x29b))},{'value':_0x419e6d(0x509),'label':_0x1b4850['t'](_0x419e6d(0x1da))}],'value':_0x26f90a['fontSizeMode'],'onChange':_0x5c62ef=>_0xe18a76({'fontSizeMode':_0x5c62ef})}),_0x26f90a[_0x419e6d(0x1e2)]===_0x419e6d(0x509)&&_0x4dabb7(_0x1c2086,{'className':'univer-mt-2','min':0xc,'max':0x78,'value':_0x26f90a['fontSize'],'onChange':_0x22b14f=>_0xe18a76({'fontSize':_0x22b14f??0x28,'fontSizeMode':_0x419e6d(0x509)})})]}),_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x500)),'children':_0x4dabb7(qr,{'value':_0x26f90a[_0x419e6d(0x348)],'options':[{'value':_0x419e6d(0x3f3),'label':_0x1b4850['t'](_0x419e6d(0x292))},{'value':_0x419e6d(0x3c4),'label':_0x1b4850['t'](_0x419e6d(0x1e1))},{'value':_0x419e6d(0x327),'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.percent')},{'value':_0x419e6d(0x241),'label':_0x1b4850['t'](_0x419e6d(0x502))},{'value':_0x419e6d(0x39e),'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':_0x419e6d(0x1be),'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.compact')}],'onChange':_0x2e7ea1=>{let _0x1fc9cd=oi['find'](_0x11c21f=>_0x11c21f===_0x2e7ea1);_0x1fc9cd&&_0xe18a76({'numberFormat':_0x1fc9cd});}})}),_0x26f90a[_0x419e6d(0x348)]==='currency'&&_0x4dabb7(ci,{'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x4dabb7(_0x2c53ee,{'value':_0x26f90a[_0x419e6d(0x241)],'onChange':_0x59b567=>_0xe18a76({'currency':_0x59b567['slice'](0x0,0x3)[_0x419e6d(0x4e2)]()})})}),_0x26f90a[_0x419e6d(0x348)]!==_0x419e6d(0x3f3)&&_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x211)),'children':_0x4dabb7(_0x1c2086,{'min':0x0,'max':0x8,'value':_0x26f90a[_0x419e6d(0x201)],'onChange':_0x146695=>_0xe18a76({'decimalPlaces':_0x146695??0x0})})})]})}),_0x5fc54&&_0x4dabb7(Yr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x4dabb7(_0x33c106,{'tables':_0x5574b2,'formula':_0x1b3454(_0x6a0f9,_0x5574b2),'onCancel':()=>_0x4271b2(!0x1),'onSave':_0x19bce7=>{const _0x4ae251=_0x419e6d;let _0x51a9c5=_0x3d782c['shapeData']['formulaBinding']??{'formula':''};return _0x255deb({..._0x3d782c,'shapeData':{..._0x3d782c[_0x4ae251(0x1d8)],'formulaBinding':{..._0x51a9c5,'formula':_0x24d391(_0x19bce7,_0x5574b2)}}})[_0x4ae251(0x388)](()=>_0x4271b2(!0x1))['catch'](()=>void 0x0);}})})]});}function ci({children:_0x40b2fb,label:_0x2f7059}){const _0x49e31f=_0x2353bc;return _0x2b00c1(_0x49e31f(0x442),{'role':_0x49e31f(0x365),'aria-label':_0x2f7059,'className':_0x49e31f(0x3d0),'children':[_0x4dabb7(_0x49e31f(0x3ec),{'children':_0x2f7059}),_0x40b2fb]});}function li({disabled:_0x392d42,fields:_0xbf8cf3,filter:_0x383dda,onChange:_0x5da0a4}){const _0xd77aa4=_0x2353bc;let _0x4a8b7c=_0x39b411(_0x55d16d)[_0xd77aa4(0x217)]??null,[_0x1fe5aa,_0x12ff86]=_0x2be63d(null),_0x2dbb15=_0x39b411(_0x5cd3ee),_0x3fc0b1=(_0x383dda==null?void 0x0:_0x383dda[_0xd77aa4(0x1b8)])??[];if(!_0x3fc0b1[_0xd77aa4(0x4da)])return _0x2b00c1(_0xd77aa4(0x442),{'className':_0xd77aa4(0x1f2),'children':[_0x4dabb7(_0x425726,{'className':_0xd77aa4(0x472)}),_0x4dabb7('span',{'className':'univer-text-sm','children':_0x2dbb15['t']('bases-dashboard-ui.dashboard.tableFilter')})]});let _0x486f78=_0x1fe5aa==null?void 0x0:_0x3fc0b1[_0x1fe5aa],_0x3e4a3c=_0xbf8cf3['find'](_0x1db10b=>_0x1db10b['id']===(_0x486f78==null?void 0x0:_0x486f78[_0xd77aa4(0x43d)]));return _0x2b00c1(_0xd77aa4(0x442),{'className':_0xd77aa4(0x26d),'children':[_0x3fc0b1[_0xd77aa4(0x3ff)]((_0x266219,_0x2eb809)=>{const _0x3dd986=_0xd77aa4;var _0x2c60ee;return _0x2b00c1(_0x1b3e3b,{'disabled':_0x392d42,'onClick':()=>_0x12ff86(_0x2eb809),'children':[_0x4dabb7(_0x3dd986(0x3ec),{'children':((_0x2c60ee=_0xbf8cf3[_0x3dd986(0x397)](_0x586e36=>_0x586e36['id']===_0x266219[_0x3dd986(0x43d)]))==null?void 0x0:_0x2c60ee['name'])??_0x266219[_0x3dd986(0x43d)]}),_0x4dabb7(_0x3dd986(0x3ec),{'className':_0x3dd986(0x226),'children':String(_0x266219[_0x3dd986(0x37d)]??'')})]},_0x266219[_0x3dd986(0x43d)]+'-'+_0x2eb809);}),_0x3e4a3c&&_0x486f78&&_0x1fe5aa!=null&&_0x4a8b7c&&_0x1f6ddd(_0x4dabb7(_0x5c4dcf,{'field':_0x3e4a3c,'value':_0x486f78[_0xd77aa4(0x37d)],'onClose':()=>_0x12ff86(null),'onSave':_0x773d13=>{const _0x530f97=_0xd77aa4;_0x5da0a4({'conjunction':(_0x383dda==null?void 0x0:_0x383dda['conjunction'])??_0xf09c6[_0x530f97(0x27f)],'conditions':_0x3fc0b1[_0x530f97(0x3ff)]((_0x6ed982,_0xae69c4)=>_0xae69c4===_0x1fe5aa?{..._0x6ed982,'operand':_0x773d13}:_0x6ed982)}),_0x12ff86(null);}}),_0x4a8b7c)]});}function ui({fields:_0x59af24,filter:_0x10f7b3,onChange:_0x41e07c,onClear:_0x96e3d1}){const _0x4dc081=_0x2353bc;let _0x536542=_0x39b411(_0x5cd3ee);return _0x2b00c1(_0x4dc081(0x442),{'children':[_0x4dabb7(_0x1ab4e1,{'fields':_0x59af24,'value':_0x10f7b3??{'conjunction':_0xf09c6[_0x4dc081(0x27f)],'conditions':[]},'onChange':_0x41e07c}),_0x4dabb7(_0x1b3e3b,{'onClick':_0x96e3d1,'children':_0x536542['t'](_0x4dc081(0x449))})]});}function di({base:_0x452002,chartRuntime:_0xb13a2b,onChange:_0x3c5a03,onClose:_0x2499a2,onSelectBackgroundImage:_0x59bc3a,onSelectImage:_0x50bca2,unitId:_0x6f935d,widget:_0x48a5fd}){const _0x2e4805=_0x2353bc;let _0x1fc0cc=_0x39b411(_0x32452d),_0x5a8c52=_0x39b411(_0x5cd3ee),_0x4a9b68=_0x452002[_0x2e4805(0x3f5)](),_0x47fb5f='tableId'in _0x48a5fd?_0x4a9b68[_0x2e4805(0x39c)][_0x48a5fd[_0x2e4805(0x475)]]:void 0x0,_0x402bd6=_0x48a5fd[_0x2e4805(0x393)]===_0x342116[_0x2e4805(0x3a3)]?_0x47fb5f==null?void 0x0:_0x47fb5f[_0x2e4805(0x451)][_0x48a5fd[_0x2e4805(0x399)]]:void 0x0,_0x37fab7=_0x5a8c52['t'](vi(_0x48a5fd)),_0xc8266c=_0x2b00c1(_0x2e4805(0x2b6),{'data-dashboard-inspector':!0x0,'className':_0x2e4805(0x28a),'children':[_0x48a5fd[_0x2e4805(0x393)]===_0x342116[_0x2e4805(0x3a3)]&&(_i(_0x402bd6)&&_0xb13a2b?_0x4dabb7(ii,{'runtime':_0xb13a2b,'sourceChart':_0x402bd6[_0x2e4805(0x4e8)][_0x2e4805(0x4d8)],'sourceName':((_0x47fb5f==null?void 0x0:_0x47fb5f[_0x2e4805(0x329)])??'')+'\x20/\x20'+_0x402bd6[_0x2e4805(0x329)],'widget':_0x48a5fd,'onChange':_0x3c5a03,'onEditData':()=>{const _0x226627=_0x2e4805;_0x1fc0cc['executeCommand'](_0x9b2833['id'],{'unitId':_0x6f935d,'tableId':_0x48a5fd['tableId'],'viewId':_0x48a5fd[_0x226627(0x399)]})['catch'](()=>void 0x0);}}):_0x4dabb7(hi,{'message':_i(_0x402bd6)?_0x5a8c52['t'](_0x2e4805(0x2aa)):_0x5a8c52['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})),_0x48a5fd['type']===_0x342116[_0x2e4805(0x36e)]&&_0x4dabb7(si,{'base':_0x452002,'widget':_0x48a5fd,'onChange':_0x3c5a03,'onSelectBackgroundImage':_0x59bc3a}),_0x48a5fd[_0x2e4805(0x393)]===_0x342116[_0x2e4805(0x296)]&&_0x4dabb7(pi,{'base':_0x452002,'onChange':_0x3c5a03,'widget':_0x48a5fd}),_0x48a5fd[_0x2e4805(0x393)]===_0x342116[_0x2e4805(0x298)]&&_0x4dabb7(mi,{'onChange':_0x3c5a03,'widget':_0x48a5fd}),_0x48a5fd[_0x2e4805(0x393)]===_0x342116['Image']&&_0x4dabb7(fi,{'onChange':_0x3c5a03,'onSelectImage':_0x50bca2,'widget':_0x48a5fd})]});return _0x4dabb7(_0x4989cc,{'title':_0x37fab7,'onClose':_0x2499a2,'children':_0xc8266c});}function fi({onChange:_0xf7d288,onSelectImage:_0x594d4f,widget:_0x3980ef}){const _0x41c97c=_0x2353bc;let _0x3530af=_0x39b411(_0x5cd3ee);return _0x2b00c1(_0x41c97c(0x442),{'className':_0x41c97c(0x443),'children':[_0x2b00c1(_0x1b3e3b,{'className':'univer-w-full','onClick':()=>_0x594d4f()[_0x41c97c(0x388)](_0x304f8c=>_0x304f8c&&_0xf7d288({..._0x3980ef,'source':_0x304f8c['source'],'sourceType':_0x304f8c[_0x41c97c(0x4b3)],'alt':_0x304f8c[_0x41c97c(0x329)]}))[_0x41c97c(0x3d2)](()=>void 0x0),'children':[_0x4dabb7(_0x5155a3,{}),_0x3530af['t'](_0x41c97c(0x256))]}),_0x2b00c1(_0x41c97c(0x3b0),{'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x4dabb7('span',{'children':_0x3530af['t']('bases-dashboard-ui.dashboardInspector.backgroundImage')}),_0x4dabb7(_0x116fe9,{'items':[{'value':_0x41c97c(0x3d5),'label':_0x3530af['t'](_0x41c97c(0x2e7))},{'value':_0x41c97c(0x42b),'label':_0x3530af['t'](_0x41c97c(0x392))},{'value':_0x41c97c(0x2bc),'label':_0x3530af['t'](_0x41c97c(0x260))}],'value':_0x3980ef['displayMode']??_0x41c97c(0x3d5),'onChange':_0x4da01d=>_0xf7d288({..._0x3980ef,'displayMode':_0x4da01d})[_0x41c97c(0x3d2)](()=>void 0x0)})]})]});}function pi({base:_0x2a322a,onChange:_0x509742,widget:_0xe86d62}){const _0x172c52=_0x2353bc;let _0x3c37f0=_0x2a322a['getSnapshot']()[_0x172c52(0x39c)][_0xe86d62['tableId']],_0x382053=_0x3c37f0==null?void 0x0:_0x3c37f0['viewOrder'][_0x172c52(0x397)](_0x35c0b4=>_0x3c37f0[_0x172c52(0x451)][_0x35c0b4]),_0x17556f=_0x382053?_0x3c37f0==null?void 0x0:_0x3c37f0[_0x172c52(0x451)][_0x382053]:void 0x0,_0x3185ee=_0x3c37f0&&_0x17556f?_0x5249f3(_0x3c37f0,_0x17556f):[];return _0x4dabb7(ui,{'fields':_0x3185ee,'filter':_0xe86d62[_0x172c52(0x1b3)],'onChange':_0x48a989=>_0x509742({..._0xe86d62,'filter':_0x48a989})['catch'](()=>void 0x0),'onClear':()=>_0x509742({..._0xe86d62,'filter':null})[_0x172c52(0x3d2)](()=>void 0x0)});}function mi({onChange:_0x2305f2,widget:_0x250201}){const _0x55530a=_0x2353bc;let _0x5b5b87=_0x39b411(_0x5cd3ee),_0x1e9ed8=_0x39b411(_0x277079),_0x3c1cbb=_0x499abf(()=>_0x1e9ed8[_0x55530a(0x227)],_0x1e9ed8['getCurrentTheme'](),!0x1,[_0x1e9ed8]),_0x55822=Br(_0x250201),_0x4c1b9a=_0x46c2f1=>_0x2305f2({..._0x250201,'appearance':{..._0x55822,..._0x46c2f1}})[_0x55530a(0x3d2)](()=>void 0x0);return _0x2b00c1('div',{'className':_0x55530a(0x4b8),'children':[_0x4dabb7(_0x136f1a,{'className':_0x55530a(0x367),'defaultValue':Vr(_0x250201[_0x55530a(0x4d6)]),'rows':0x8,'onBlur':_0xcbead5=>_0x2305f2({..._0x250201,'document':Hr(_0x250201[_0x55530a(0x4d6)],_0xcbead5[_0x55530a(0x344)][_0x55530a(0x284)])})[_0x55530a(0x3d2)](()=>void 0x0)}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x5b5b87['t'](_0x55530a(0x245)),'label':_0x5b5b87['t'](_0x55530a(0x245)),'pickerFallbackValue':_0x3c1cbb[_0x55530a(0x433)][0x0],'resetLabel':_0x5b5b87['t'](_0x55530a(0x449)),'value':_0x55822[_0x55530a(0x394)]??null,'onChange':_0x3cc47e=>_0x4c1b9a({'backgroundColor':_0x3cc47e??void 0x0})}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x5b5b87['t'](_0x55530a(0x21a)),'label':_0x5b5b87['t'](_0x55530a(0x21a)),'pickerFallbackValue':_0x3c1cbb[_0x55530a(0x433)][0x3e8],'resetLabel':_0x5b5b87['t'](_0x55530a(0x449)),'value':_0x55822[_0x55530a(0x204)]??null,'onChange':_0x13ebd5=>_0x4c1b9a({'textColor':_0x13ebd5??void 0x0})}),_0x4dabb7(gi,{'label':_0x5b5b87['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x4dabb7(_0x116fe9,{'items':[{'value':_0x55530a(0x20a),'label':_0x5b5b87['t'](_0x55530a(0x28d))},{'value':_0x55530a(0x4b2),'label':_0x5b5b87['t'](_0x55530a(0x237))},{'value':_0x55530a(0x214),'label':_0x5b5b87['t'](_0x55530a(0x1fd))}],'value':_0x55822[_0x55530a(0x22e)],'onChange':_0xe0b9e1=>_0x4c1b9a({'alignment':_0xe0b9e1})})}),_0x2b00c1(gi,{'label':_0x5b5b87['t'](_0x55530a(0x219)),'children':[_0x4dabb7(_0x116fe9,{'items':[{'value':'auto','label':_0x5b5b87['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':'custom','label':_0x5b5b87['t'](_0x55530a(0x1da))}],'value':_0x55822[_0x55530a(0x1e2)],'onChange':_0x3e81c1=>_0x4c1b9a({'fontSizeMode':_0x3e81c1})}),_0x55822[_0x55530a(0x1e2)]===_0x55530a(0x509)&&_0x4dabb7(_0x1c2086,{'className':_0x55530a(0x266),'min':0xa,'max':0x78,'value':_0x55822['fontSize'],'onChange':_0x2cd1be=>_0x4c1b9a({'fontSize':_0x2cd1be??0x12,'fontSizeMode':_0x55530a(0x509)})})]})]});}function hi({message:_0x1fe626}){const _0x4eb0a3=_0x2353bc;return _0x4dabb7(_0x4eb0a3(0x442),{'className':_0x4eb0a3(0x43b),'children':_0x1fe626});}function gi({children:_0x32df21,label:_0x28f8c0}){const _0x412141=_0x2353bc;return _0x2b00c1(_0x412141(0x442),{'role':_0x412141(0x365),'aria-':!0x0,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x4dabb7(_0x412141(0x3ec),{'children':_0x28f8c0}),_0x32df21]});}function _i(_0x1c45cf){const _0x54ef24=_0x2353bc;return(_0x1c45cf==null?void 0x0:_0x1c45cf[_0x54ef24(0x393)])===_0x5ee6b5['Pivot']&&typeof _0x1c45cf[_0x54ef24(0x4e8)]=='object'&&_0x1c45cf[_0x54ef24(0x4e8)]!==null&&'pivot'in _0x1c45cf['config']&&_0x54ef24(0x4d8)in _0x1c45cf['config'];}function vi(_0xc6e11d){const _0x1b03cb=_0x2353bc;switch(_0xc6e11d[_0x1b03cb(0x393)]){case _0x342116[_0x1b03cb(0x3a3)]:return _0x1b03cb(0x350);case _0x342116['TableFilter']:return'bases-dashboard-ui.dashboard.tableFilter';case _0x342116[_0x1b03cb(0x298)]:return _0x1b03cb(0x45f);case _0x342116[_0x1b03cb(0x4ae)]:return _0x1b03cb(0x293);case _0x342116[_0x1b03cb(0x36e)]:return _0x1b03cb(0x268);}}function yi({onDelete:_0x5eda89,onEdit:_0x59ca85,onMoveUp:_0x2cb8fa,onMoveDown:_0x1ec481}){const _0x26289a=_0x2353bc;let [_0xaad42c,_0x108322]=_0x2be63d(!0x1),_0x19c078=_0x39b411(_0x5cd3ee),_0x5d606f=_0x19c078['t'](_0x26289a(0x39f)),_0x2edc98=_0x19c078['t'](_0x26289a(0x2ef)),_0x1e8e00=_0x19c078['t'](_0x26289a(0x1b9)),_0x1b10f2=[{'type':_0x26289a(0x423),'children':_0x2b00c1(_0x26289a(0x3ec),{'className':_0x26289a(0x49a),'children':[_0x4dabb7(_0x392d1f,{'className':'univer-size-4','aria-hidden':_0x26289a(0x1d5)}),_0x4dabb7(_0x26289a(0x3ec),{'children':_0x5d606f})]}),'onSelect':_0x59ca85},..._0x2cb8fa?[{'type':_0x26289a(0x423),'children':_0x2b00c1('span',{'className':_0x26289a(0x49a),'children':[_0x4dabb7(_0x19b9b0,{'className':_0x26289a(0x40e),'aria-hidden':_0x26289a(0x1d5)}),_0x4dabb7(_0x26289a(0x3ec),{'children':_0x19c078['t'](_0x26289a(0x2ab))})]}),'onSelect':_0x2cb8fa}]:[],..._0x1ec481?[{'type':'item','children':_0x2b00c1(_0x26289a(0x3ec),{'className':_0x26289a(0x49a),'children':[_0x4dabb7(_0x5c6cd4,{'className':'univer-size-4','aria-hidden':_0x26289a(0x1d5)}),_0x4dabb7(_0x26289a(0x3ec),{'children':_0x19c078['t'](_0x26289a(0x33b))})]}),'onSelect':_0x1ec481}]:[],{'type':'separator'},{'type':'item','variant':_0x26289a(0x4d0),'children':_0x2b00c1('span',{'className':_0x26289a(0x49a),'children':[_0x4dabb7(_0x2d17f6,{'className':_0x26289a(0x40e),'aria-hidden':_0x26289a(0x1d5)}),_0x4dabb7(_0x26289a(0x3ec),{'children':_0x2edc98})]}),'onSelect':_0x5eda89}];return _0x4dabb7(_0x492a1e,{'open':_0xaad42c,'onOpenChange':_0x108322,'align':'end','sideOffset':0x4,'items':_0x1b10f2[_0x26289a(0x3ff)](_0x351437=>({..._0x351437,'className':_0x351437[_0x26289a(0x393)]==='item'?_0x26289a(0x333):void 0x0})),'children':_0x4dabb7(_0x1b3e3b,{'type':_0x26289a(0x228),'size':'small','variant':_0x26289a(0x452),'onPointerDown':_0x29dd6c=>_0x29dd6c[_0x26289a(0x3ca)](),'onClick':()=>_0x108322(_0x27622e=>!_0x27622e),'title':_0x1e8e00,'aria-label':_0x1e8e00,'className':_0x26289a(0x390),'children':_0x4dabb7(_0x27b384,{'className':_0x26289a(0x40e),'aria-hidden':_0x26289a(0x1d5)})})});}function bi({dashboardId:_0x37d848,presentation:_0x4d39a0=!0x1,unitId:_0x4dcc89}){const _0x1b836e=_0x2353bc;let _0x1041b0=_0x39b411(_0x5a8661),_0x588165=_0x39b411(_0x1adc86);_0x499abf(_0x588165[_0x1b836e(0x27e)],0x0);let _0x32fdc9=_0x39b411(_0x32452d),_0x3eb518=_0x39b411(_0x4d763c),_0x1c912c=_0x39b411(_0x5482b5),_0x264795=_0x39b411(_0x4074e5),_0x16550a=_0x39b411(_0x5cd3ee),_0x16d860=_0x39b411(_0x5e40a3),_0x398124=_0x39b411(_0x123793),[_0x57b776,_0x492bbd]=_0x2be63d(!0x1),[_0x24fe28,_0x330d3b]=_0x2be63d(),[_0x572763,_0xea6dc7]=_0x2be63d(!0x1),[_0x5bf598,_0x88d98]=_0x2be63d(()=>new Map()),_0x525b5b=_0xd8821d((_0xbaf683,_0x246ff0)=>{_0x88d98(_0x5898d0=>{const _0x388158=_0x1cf6;let _0x10c1e9=new Map(_0x5898d0);return _0x246ff0?_0x10c1e9[_0x388158(0x401)](_0xbaf683,_0x246ff0):_0x10c1e9['delete'](_0xbaf683),_0x10c1e9;});},[]),_0xdc038c=_0x499abf(()=>_0x16d860[_0x1b836e(0x2a3)]['pipe'](_0x299cc9(()=>_0x16d860['getDashboard'](_0x4dcc89,_0x37d848))),_0x16d860['getDashboard'](_0x4dcc89,_0x37d848),!0x1,[_0x37d848,_0x16d860,_0x4dcc89]),_0x4484d0=_0x264795['getUnit'](_0x4dcc89,_0x51ec78['UNIVER_BASE']),_0x5ca72c=_0x499abf(()=>_0x398124[_0x1b836e(0x21f)],{'undos':0x0,'redos':0x0},!0x1,[_0x398124]),_0x10ba9a=gr(_0x4dcc89,_0x37d848);if(_0x38e78f(()=>{const _0x1f11cf=_0x1b836e;_0x264795['setCurrentUnitForType'](_0x4dcc89),_0x264795[_0x1f11cf(0x35f)](_0x4dcc89);},[_0x264795,_0x4dcc89]),!_0xdc038c||!_0x4484d0)return null;let _0x5c22d6={'unitId':_0x4dcc89,'objectId':_0x275cd2(_0x37d848),'objectType':_0x4f7ac1[_0x1b836e(0x4d9)]},_0x498890=(_0x5c61ca,_0x16c88a)=>{const _0x59e19c=_0x1b836e;let _0x139927=[..._0xdc038c[_0x59e19c(0x362)]],_0x32fda9=_0x139927[_0x59e19c(0x265)](_0x5c61ca),_0x3184c4=_0x32fda9+_0x16c88a;if(!(_0x32fda9<0x0||_0x3184c4<0x0||_0x3184c4>=_0x139927['length']))return[_0x139927[_0x32fda9],_0x139927[_0x3184c4]]=[_0x139927[_0x3184c4],_0x139927[_0x32fda9]],_0x32fdc9[_0x59e19c(0x1ff)](_0x5cbeb4['id'],{'unitId':_0x4dcc89,'dashboard':{..._0xdc038c,'widgetOrder':_0x139927}});},_0x47f2da=_0x2f2afd=>_0x32fdc9['executeCommand'](_0x2b3367['id'],{'unitId':_0x4dcc89,'dashboardId':_0x37d848,'widget':_0x2f2afd})[_0x1b836e(0x3d2)](()=>void 0x0),_0x392eb4=(_0x4d0f5b,_0x14c2a2,_0xd66285)=>{const _0x4c6f0c=_0x1b836e;let _0x568e8d=Math['max'](0x0,..._0xdc038c[_0x4c6f0c(0x362)][_0x4c6f0c(0x3bc)](_0xe23f16=>{const _0x4109ad=_0x4c6f0c;var _0x36b5d5;let _0x3650da=(_0x36b5d5=_0xdc038c['widgets'][_0xe23f16])==null?void 0x0:_0x36b5d5[_0x4109ad(0x439)];return _0x3650da?[_0x3650da[_0x4109ad(0x487)]+_0x3650da['rowSpan']]:[];})),_0x243c1d=_0x4c6f0c(0x4a9)+_0x325e5d(0x8),_0x630fbd={'column':0x0,'row':_0x568e8d,'columnSpan':_0x14c2a2,'rowSpan':_0xd66285};switch(_0x4d0f5b[_0x4c6f0c(0x393)]){case _0x342116['PivotChart']:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});case _0x342116['TableFilter']:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});case _0x342116[_0x4c6f0c(0x298)]:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});case _0x342116['Image']:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});case _0x342116[_0x4c6f0c(0x36e)]:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});}},_0x4685a9=_0x4484d0[_0x1b836e(0x3f5)](),_0x49feee=_0x4685a9['tableOrder'][_0x1b836e(0x3bc)](_0x54298c=>{const _0x58cd5c=_0x1b836e;let _0x37290e=_0x4685a9['tables'][_0x54298c];if(!_0x37290e)return[];let _0x480e03=_0x37290e[_0x58cd5c(0x411)][_0x58cd5c(0x3bc)](_0x102cbb=>{const _0x395e0b=_0x58cd5c;let _0x4efc5f=_0x37290e[_0x395e0b(0x451)][_0x102cbb];return Oi(_0x4efc5f)?[{'type':_0x395e0b(0x423),'children':_0x4efc5f['name'],'onSelect':()=>_0x392eb4({'type':_0x342116[_0x395e0b(0x3a3)],'tableId':_0x54298c,'pivotViewId':_0x102cbb,'chart':{..._0x4efc5f['config'][_0x395e0b(0x4d8)]}},0x6,0xa)}]:[];});return[{'type':_0x58cd5c(0x429),'children':_0x37290e[_0x58cd5c(0x329)],'options':[..._0x480e03,..._0x480e03['length']?[{'type':_0x58cd5c(0x50a)}]:[],{'type':'item','children':_0x16550a['t'](_0x58cd5c(0x396)),'onSelect':()=>_0x392eb4({'type':_0x342116[_0x58cd5c(0x296)],'tableId':_0x54298c,'filter':null},0x6,0x8)}]}];}),_0x5c2c27=[..._0x49feee,..._0x49feee['length']?[{'type':_0x1b836e(0x50a)}]:[],{'type':_0x1b836e(0x423),'children':_0x16550a['t'](_0x1b836e(0x45f)),'onSelect':()=>_0x392eb4({'type':_0x342116[_0x1b836e(0x298)],'document':wi()},0x4,0x6)},{'type':_0x1b836e(0x423),'children':_0x16550a['t'](_0x1b836e(0x293)),'onSelect':()=>Ti(_0x3eb518)[_0x1b836e(0x388)](_0x3a6746=>_0x3a6746&&_0x392eb4({'type':_0x342116[_0x1b836e(0x4ae)],'source':_0x3a6746['source'],'sourceType':_0x3a6746[_0x1b836e(0x4b3)],'alt':_0x3a6746[_0x1b836e(0x329)],'displayMode':'cover'},0x4,0x6))},{'type':'item','children':_0x16550a['t'](_0x1b836e(0x268)),'onSelect':()=>{const _0x2ea04d=_0x1b836e;let _0x28409a=_0x4685a9[_0x2ea04d(0x1e5)][_0x2ea04d(0x397)](_0x5c4838=>_0x4685a9[_0x2ea04d(0x39c)][_0x5c4838]);_0x28409a&&_0x392eb4({'type':_0x342116[_0x2ea04d(0x36e)],'tableId':_0x28409a,'shapeType':_0x4387d7[_0x2ea04d(0x3a7)],'shapeData':_0x11d1a1(),'description':_0x16550a['t']('bases-dashboard-ui.dashboard.formulaShape')},0x4,0x6);}}],_0x17ff2a=_0x24fe28?_0xdc038c[_0x1b836e(0x4e1)][_0x24fe28]:void 0x0,_0x734064=()=>_0xea6dc7(_0x471b31=>!_0x471b31),_0x4c82e0=_0x4d39a0||_0x572763,_0x2f2990=_0x10ba9a&&!_0x4c82e0;return _0x4dabb7(Kr,{'children':_0x2b00c1(_0x1b836e(0x442),{'className':_0x1b836e(0x37b)+(_0x572763?_0x1b836e(0x369):'univer-relative\x20univer-z-10')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[_0x572763&&_0x4dabb7(_0x1b3e3b,{'onClick':()=>_0xea6dc7(!0x1),'children':_0x16550a['t'](_0x1b836e(0x1bf))}),!_0x4c82e0&&_0x2b00c1(_0x1b836e(0x36a),{'className':'univer-flex\x20univer-h-auto\x20univer-min-h-12\x20univer-shrink-0\x20univer-flex-wrap\x20univer-items-center\x20univer-gap-1\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x4dabb7(_0x433eb4,{'className':_0x1b836e(0x1bd)}),_0x4dabb7('h2',{'className':_0x1b836e(0x385),'children':_0xdc038c[_0x1b836e(0x329)]}),_0x588165[_0x1b836e(0x3fd)](_0x5c22d6)&&_0x4dabb7(_0x1b3e3b,{'variant':_0x1b836e(0x452),'disabled':!_0x588165['canView'](_0x5c22d6),'aria-label':_0x16550a['t'](_0x1b836e(0x3a2)),'onClick':()=>{const _0xe8aa22=_0x1b836e;_0x14db5b(_0x1041b0,{'target':_0x5c22d6,'name':_0xdc038c[_0xe8aa22(0x329)],'commandId':_0x42d2ec['id'],'exists':()=>!!_0x16d860['getDashboard'](_0x4dcc89,_0x37d848)});},'children':_0x4dabb7(_0x7e2f55,{})}),_0x4dabb7(_0xf8bfea,{'unitId':_0x4dcc89}),_0x4dabb7(_0x1b3e3b,{'type':'button','size':_0x1b836e(0x432),'variant':_0x1b836e(0x452),'aria-label':_0x16550a['t'](_0x1b836e(0x4ee)),'disabled':!_0x10ba9a||_0x5ca72c['undos']===0x0,'onClick':()=>_0x32fdc9[_0x1b836e(0x1ff)](_0x4170dd['id'])[_0x1b836e(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x4f90a3,{})}),_0x4dabb7(_0x1b3e3b,{'type':_0x1b836e(0x228),'size':_0x1b836e(0x432),'variant':_0x1b836e(0x452),'aria-label':_0x16550a['t'](_0x1b836e(0x1c8)),'disabled':!_0x10ba9a||_0x5ca72c[_0x1b836e(0x2ce)]===0x0,'onClick':()=>_0x32fdc9[_0x1b836e(0x1ff)](_0x8d3b46['id'])[_0x1b836e(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x44a42f,{})}),_0x4dabb7(_0x1b3e3b,{'type':_0x1b836e(0x228),'size':_0x1b836e(0x432),'variant':_0x1b836e(0x452),'aria-label':_0x16550a['t']('bases-dashboard-ui.dashboard.fullScreen'),'onClick':_0x734064,'children':_0x4dabb7(_0x54cca2,{})}),_0x4dabb7(Jr,{'items':_0x5c2c27,'children':_0x2b00c1(_0x1b3e3b,{'variant':_0x1b836e(0x37f),'disabled':!_0x10ba9a,'children':[_0x4dabb7(_0x5155a3,{}),_0x16550a['t'](_0x1b836e(0x4b0))]})})]}),_0x2b00c1('div',{'className':_0x1b836e(0x1c0),'children':[_0x4dabb7('div',{'className':_0x1b836e(0x290),'children':_0x4dabb7(Wr,{'dashboard':_0xdc038c,'editable':_0x2f2990,'widgetLabel':_0x14b2e2=>_0x16550a['t'](Di(_0x14b2e2['type'])),'selectedWidgetId':_0x2f2990?_0x24fe28:void 0x0,'onSelectWidget':_0x2f2990?_0x25ff14=>{_0x330d3b(_0x25ff14),_0x25ff14||_0x492bbd(!0x1);}:void 0x0,'renderWidget':_0x3b6720=>_0x4dabb7(xi,{'base':_0x4484d0,'dashboard':_0xdc038c,'unitId':_0x4dcc89,'widget':_0x3b6720,'onChange':_0x47f2da,'onChartRuntimeChange':_0x525b5b}),'renderWidgetActions':_0x1a50c5=>_0x4dabb7(yi,{'onMoveUp':_0xdc038c[_0x1b836e(0x362)]['indexOf'](_0x1a50c5['id'])>0x0?()=>_0x498890(_0x1a50c5['id'],-0x1):void 0x0,'onMoveDown':_0xdc038c[_0x1b836e(0x362)][_0x1b836e(0x265)](_0x1a50c5['id'])<_0xdc038c[_0x1b836e(0x362)][_0x1b836e(0x4da)]-0x1?()=>_0x498890(_0x1a50c5['id'],0x1):void 0x0,'onEdit':()=>{_0x330d3b(_0x1a50c5['id']),_0x492bbd(!0x0);},'onDelete':()=>{const _0x2998e0=_0x1b836e;_0x24fe28===_0x1a50c5['id']&&(_0x330d3b(void 0x0),_0x492bbd(!0x1)),_0x32fdc9[_0x2998e0(0x1ff)](_0x20648d['id'],{'unitId':_0x4dcc89,'dashboardId':_0x37d848,'widgetId':_0x1a50c5['id']})[_0x2998e0(0x3d2)](()=>void 0x0);}})})}),_0x2f2990&&_0x57b776&&_0x17ff2a&&_0x4dabb7(di,{'base':_0x4484d0,'chartRuntime':_0x5bf598['get'](_0x17ff2a['id']),'unitId':_0x4dcc89,'widget':_0x17ff2a,'onChange':_0x47f2da,'onClose':()=>_0x492bbd(!0x1),'onSelectBackgroundImage':()=>Ei(_0x1c912c),'onSelectImage':()=>Ti(_0x3eb518)})]})]})});}function xi({base:_0x2a117d,dashboard:_0x16a82a,onChange:_0x2ce927,onChartRuntimeChange:_0x894ffd,unitId:_0xd99dca,widget:_0x1b5833}){const _0x212a0a=_0x2353bc;let _0x318c34=_0x56a185(()=>_0x16a82a[_0x212a0a(0x362)][_0x212a0a(0x3bc)](_0x1485bb=>{const _0x1ebea9=_0x212a0a;let _0x11a497=_0x16a82a['widgets'][_0x1485bb];return(_0x11a497==null?void 0x0:_0x11a497[_0x1ebea9(0x393)])===_0x342116['TableFilter']&&_0x11a497['tableId']===(_0x1ebea9(0x475)in _0x1b5833?_0x1b5833['tableId']:'')&&_0x11a497[_0x1ebea9(0x1b3)]?[_0x11a497[_0x1ebea9(0x1b3)]]:[];}),[_0x16a82a,_0x1b5833]);switch(_0x1b5833['type']){case _0x342116['PivotChart']:return _0x4dabb7(Lr,{'filters':_0x318c34,'unitId':_0xd99dca,'widget':_0x1b5833,'onRuntimeChange':_0x894ffd});case _0x342116['TableFilter']:return _0x4dabb7(li,{'fields':Si(_0x2a117d,_0x1b5833['tableId']),'filter':_0x1b5833['filter'],'onChange':_0x5b9b2e=>_0x2ce927({..._0x1b5833,'filter':_0x5b9b2e})[_0x212a0a(0x3d2)](()=>void 0x0)});case _0x342116[_0x212a0a(0x298)]:return _0x4dabb7(Ur,{'widget':_0x1b5833});case _0x342116['Image']:return _0x4dabb7(Ci,{'widget':_0x1b5833});case _0x342116[_0x212a0a(0x36e)]:return _0x4dabb7(Dr,{'dashboardId':_0x16a82a['id'],'unitId':_0xd99dca,'widget':_0x1b5833});}}function Si(_0x47432f,_0x1bab84){const _0x34a5ec=_0x2353bc;let _0x34a7dd=_0x47432f['getSnapshot']()[_0x34a5ec(0x39c)][_0x1bab84],_0x342e92=_0x34a7dd==null?void 0x0:_0x34a7dd[_0x34a5ec(0x411)][_0x34a5ec(0x397)](_0x47b38d=>_0x34a7dd[_0x34a5ec(0x451)][_0x47b38d]),_0x5575b1=_0x342e92?_0x34a7dd==null?void 0x0:_0x34a7dd['views'][_0x342e92]:void 0x0;return _0x34a7dd&&_0x5575b1?_0x5249f3(_0x34a7dd,_0x5575b1):[];}function Ci({widget:_0xf6e448}){const _0x548064=_0x2353bc;let _0x50f41c=_0x39b411(_0x4d763c),[_0x1697cd,_0x4dadd3]=_0x2be63d(_0xf6e448[_0x548064(0x4b3)]===_0x26a785[_0x548064(0x43f)]?'':_0xf6e448['source']);return _0x38e78f(()=>{const _0x478c1c=_0x548064;let _0x116546=!0x0;return _0x50f41c[_0x478c1c(0x4c6)](_0xf6e448[_0x478c1c(0x24c)],_0xf6e448[_0x478c1c(0x4b3)])[_0x478c1c(0x388)](_0x289233=>{_0x116546&&_0x4dadd3(_0x289233);})[_0x478c1c(0x3d2)](()=>void 0x0),()=>{_0x116546=!0x1;};},[_0x50f41c,_0xf6e448['source'],_0xf6e448[_0x548064(0x4b3)]]),_0x1697cd?_0x4dabb7(_0x548064(0x442),{'role':_0xf6e448['alt']?'img':void 0x0,'aria-label':_0xf6e448['alt']||void 0x0,'data-dashboard-image':_0xf6e448['id'],'className':_0x548064(0x203),'style':vr(_0x1697cd,_0xf6e448[_0x548064(0x4a6)])}):null;}function wi(){const _0x19deb7=_0x2353bc;let _0x3e4902=_0x112de2(new Set());return{'id':_0x19deb7(0x3de)+_0x325e5d(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x3e4902}]},'documentStyle':{}};}function Ti(_0x5efd71){return new Promise(_0x1c6d87=>{const _0x3456f3=_0x1cf6;let _0x27eb71=document[_0x3456f3(0x3d6)](_0x3456f3(0x4d3));_0x27eb71[_0x3456f3(0x393)]=_0x3456f3(0x3bd),_0x27eb71[_0x3456f3(0x461)]=_0x3456f3(0x469),_0x27eb71[_0x3456f3(0x1d1)]('change',()=>{const _0x2b6c6e=_0x3456f3;var _0x1601e2;let _0x1a820c=(_0x1601e2=_0x27eb71['files'])==null?void 0x0:_0x1601e2[0x0];if(!_0x1a820c){_0x1c6d87(null);return;}_0x5efd71[_0x2b6c6e(0x504)](_0x1a820c)['then'](_0x4e2d7b=>{const _0x5454f0=_0x2b6c6e;if(!_0x4e2d7b[_0x5454f0(0x24c)]||_0x4e2d7b[_0x5454f0(0x4b3)]===void 0x0){_0x1c6d87(null);return;}_0x1c6d87({'name':_0x4e2d7b[_0x5454f0(0x329)],'source':_0x4e2d7b[_0x5454f0(0x24c)],'sourceType':_0x4e2d7b['sourceType']});})[_0x2b6c6e(0x3d2)](()=>_0x1c6d87(null));},{'once':!0x0}),_0x27eb71[_0x3456f3(0x3ab)]();});}function Ei(_0x320567){return new Promise(_0x113099=>{const _0x14aa0d=_0x1cf6;let _0x401716=document[_0x14aa0d(0x3d6)](_0x14aa0d(0x4d3));_0x401716[_0x14aa0d(0x393)]=_0x14aa0d(0x3bd),_0x401716['accept']='image/*',_0x401716[_0x14aa0d(0x1d1)](_0x14aa0d(0x48a),()=>{const _0x5d7f33=_0x14aa0d;var _0x523f73;let _0x9e2ce7=(_0x523f73=_0x401716['files'])==null?void 0x0:_0x523f73[0x0];if(!_0x9e2ce7){_0x113099(null);return;}_0x320567[_0x5d7f33(0x3dc)](_0x9e2ce7)['then'](_0x2b87e6=>{const _0x6c3c1=_0x5d7f33;if(!(_0x2b87e6!=null&&_0x2b87e6[_0x6c3c1(0x24c)])){_0x113099(null);return;}if(_0x2b87e6[_0x6c3c1(0x308)]){let _0x23b5d4=new Image();_0x23b5d4[_0x6c3c1(0x2dd)]=_0x2b87e6[_0x6c3c1(0x308)],_0x320567[_0x6c3c1(0x32e)](_0x2b87e6[_0x6c3c1(0x24c)],_0x2b87e6[_0x6c3c1(0x23d)],_0x23b5d4);}_0x113099({'source':_0x2b87e6[_0x6c3c1(0x24c)],'sourceType':_0x2b87e6[_0x6c3c1(0x23d)]});})[_0x5d7f33(0x3d2)](()=>_0x113099(null));},{'once':!0x0}),_0x401716[_0x14aa0d(0x3ab)]();});}function Di(_0x5f572f){const _0x271e64=_0x2353bc;switch(_0x5f572f){case _0x342116[_0x271e64(0x3a3)]:return _0x271e64(0x350);case _0x342116[_0x271e64(0x296)]:return _0x271e64(0x396);case _0x342116[_0x271e64(0x298)]:return _0x271e64(0x45f);case _0x342116[_0x271e64(0x4ae)]:return _0x271e64(0x293);case _0x342116[_0x271e64(0x36e)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function Oi(_0x271859){const _0x499ab2=_0x2353bc;return(_0x271859==null?void 0x0:_0x271859[_0x499ab2(0x393)])===_0x5ee6b5[_0x499ab2(0x49c)]&&typeof _0x271859[_0x499ab2(0x4e8)]==_0x499ab2(0x43c)&&_0x271859[_0x499ab2(0x4e8)]!==null&&'pivot'in _0x271859['config']&&_0x499ab2(0x4d8)in _0x271859['config'];}function ki({pivot:_0x3bf516,view:_0x266824}){const _0x2f2d8b=_0x2353bc;let _0x258130=_0x39b411(_0x5cd3ee),_0x21394b=_0x56a185(()=>Ai(_0x266824,_0x3bf516,_0x258130['t'](_0x2f2d8b(0x212))),[_0x258130,_0x3bf516,_0x266824]);return _0x2b00c1(_0x2f2d8b(0x442),{'className':_0x2f2d8b(0x323),'children':[_0x21394b['pageRows'][_0x2f2d8b(0x4da)]>0x0&&_0x4dabb7('table',{'className':'univer-mb-2\x20univer-border-collapse\x20univer-text-sm','children':_0x4dabb7(_0x2f2d8b(0x231),{'children':ji(_0x21394b[_0x2f2d8b(0x3e9)])})}),_0x2b00c1('table',{'className':_0x2f2d8b(0x420),'children':[_0x21394b[_0x2f2d8b(0x4ac)]>0x0&&_0x4dabb7('thead',{'className':_0x2f2d8b(0x44d),'children':ji(_0x21394b[_0x2f2d8b(0x4bd)][_0x2f2d8b(0x35d)](0x0,_0x21394b[_0x2f2d8b(0x4ac)]))}),_0x4dabb7(_0x2f2d8b(0x231),{'children':ji(_0x21394b[_0x2f2d8b(0x4bd)]['slice'](_0x21394b[_0x2f2d8b(0x4ac)]))})]})]});}function Ai(_0xc7501b,_0x36475f,_0x1f6297){const _0xcb5d68=_0x2353bc;let _0xccef06=_0xc7501b[_0xcb5d68(0x501)][_0xcb5d68(0x34d)],_0xb2cf78=_0xc7501b['rowView'][_0xcb5d68(0x3b5)],_0x5b550e=_0xc7501b[_0xcb5d68(0x2a4)][_0xcb5d68(0x34d)],_0x8ae676=_0xc7501b[_0xcb5d68(0x2a4)][_0xcb5d68(0x3b5)],_0x3fae7a=Array[_0xcb5d68(0x4ce)]({'length':_0xccef06+_0x5b550e},(_0x533811,_0x1febab)=>Array[_0xcb5d68(0x4ce)]({'length':_0xb2cf78+_0x8ae676},(_0x1c539b,_0x200546)=>{const _0x32c068=_0xcb5d68;var _0xa0bb32,_0x5e2baa;if(_0x1febab<_0xccef06&&_0x200546<_0xb2cf78)return Mi(_0xc7501b[_0x32c068(0x377)],_0x1febab,_0x200546,void 0x0,_0x1f6297,!0x0,!0x1,_0x32c068(0x1fc)+_0x1febab+':'+_0x200546);if(_0x1febab<_0xccef06){var _0x3b3982;let _0x43b520=_0x200546-_0xb2cf78,_0x4008dd=(_0x3b3982=_0xc7501b[_0x32c068(0x501)][_0x32c068(0x309)][_0x1febab])==null?void 0x0:_0x3b3982[_0x32c068(0x483)];return Mi(_0xc7501b[_0x32c068(0x501)],_0x1febab,_0x43b520,_0x4008dd?_0xc7501b['formatMap'][_0x4008dd]:void 0x0,_0x1f6297,!0x0,Fi(_0xc7501b['colView'][_0x32c068(0x44b)][_0x43b520]),'column:'+_0x1febab+':'+_0x43b520);}if(_0x200546<_0xb2cf78){var _0x3442c6;let _0x1becf9=_0x1febab-_0xccef06,_0x22692b=(_0x3442c6=_0xc7501b[_0x32c068(0x28c)][_0x32c068(0x309)][_0x200546])==null?void 0x0:_0x3442c6['tableFieldId'];return Mi(_0xc7501b[_0x32c068(0x28c)],_0x1becf9,_0x200546,_0x22692b?_0xc7501b[_0x32c068(0x47b)][_0x22692b]:void 0x0,_0x1f6297,!0x0,Fi(_0xc7501b[_0x32c068(0x28c)][_0x32c068(0x44b)][_0x1becf9]),_0x32c068(0x371)+_0x1becf9+':'+_0x200546);}let _0x18c33f=_0x1febab-_0xccef06,_0x3959cc=_0x200546-_0xb2cf78,_0xba71b8=Math[_0x32c068(0x2eb)](((_0xa0bb32=_0xc7501b['rowView'][_0x32c068(0x44b)][_0x18c33f])==null?void 0x0:_0xa0bb32[_0x32c068(0x3a5)])??-0x1,((_0x5e2baa=_0xc7501b[_0x32c068(0x501)][_0x32c068(0x44b)][_0x3959cc])==null?void 0x0:_0x5e2baa[_0x32c068(0x3a5)])??-0x1),_0x1b9437=_0x36475f[_0x32c068(0x1f9)][_0xba71b8<0x0?0x0:_0xba71b8];return Mi(_0xc7501b['dataView'],_0x18c33f,_0x3959cc,_0x1b9437?_0xc7501b['formatMap'][_0x1b9437]:void 0x0,_0x1f6297,!0x1,Fi(_0xc7501b[_0x32c068(0x28c)][_0x32c068(0x44b)][_0x18c33f])||Fi(_0xc7501b[_0x32c068(0x501)][_0x32c068(0x44b)][_0x3959cc]),_0x32c068(0x1e4)+_0x18c33f+':'+_0x3959cc);}));return{'headerColumnCount':_0xb2cf78,'headerRowCount':_0xccef06,'pageRows':_0xc7501b['pageView'][_0xcb5d68(0x4dc)]<0x0||_0xc7501b[_0xcb5d68(0x22d)][_0xcb5d68(0x4c3)]<0x0?[]:Array['from']({'length':_0xc7501b[_0xcb5d68(0x22d)]['lastRow']+0x1},(_0x49421c,_0x1341cb)=>Array[_0xcb5d68(0x4ce)]({'length':_0xc7501b[_0xcb5d68(0x22d)][_0xcb5d68(0x4c3)]+0x1},(_0x465df1,_0x20094f)=>Mi(_0xc7501b['pageView'],_0x1341cb,_0x20094f,void 0x0,_0x1f6297,!0x0,!0x1,_0xcb5d68(0x455)+_0x1341cb+':'+_0x20094f))),'rows':_0x3fae7a};}function ji(_0x5c1494){const _0x54c8f4=_0x2353bc;return _0x5c1494[_0x54c8f4(0x3ff)](_0x2eeeb1=>{const _0x1af5fa=_0x54c8f4;var _0x19727c;return _0x4dabb7('tr',{'children':_0x2eeeb1[_0x1af5fa(0x3ff)](_0x2ce50c=>{const _0x3f308f=_0x1af5fa;let _0x32dd1d=_0x2ce50c[_0x3f308f(0x24a)]?'th':'td';return _0x4dabb7(_0x32dd1d,{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-whitespace-nowrap\x20univer-border\x20univer-border-gray-200\x20univer-px-3\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-left\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2ce50c['isTotal']?_0x3f308f(0x2ee):'')+_0x3f308f(0x23a)+(_0x2ce50c[_0x3f308f(0x24a)]?'':_0x3f308f(0x1c5))+_0x3f308f(0x248),'children':_0x2ce50c[_0x3f308f(0x284)]},_0x2ce50c[_0x3f308f(0x336)]);})},(_0x19727c=_0x2eeeb1[0x0])==null?void 0x0:_0x19727c[_0x1af5fa(0x336)]);});}function Mi(_0x4ab663,_0x186538,_0x1bdf0d,_0x1182c8,_0x3c3439,_0x56f9e2,_0xe8b6a9,_0x4e72ca){const _0x71ce72=_0x2353bc;var _0x448722;let _0x3dd0a8=(_0x448722=_0x4ab663['data'][_0x186538])==null?void 0x0:_0x448722[_0x1bdf0d],_0x22694b=_0x3dd0a8==null?void 0x0:_0x3dd0a8['s'],_0x30942a=_0xe8b6a9||_0x22694b===_0x5d656b[_0x71ce72(0x21d)]||_0x22694b===_0x5d656b[_0x71ce72(0x435)];return{'isHeader':_0x56f9e2,'isTotal':_0x30942a||_0x22694b===_0x5d656b[_0x71ce72(0x1d3)],'key':_0x4e72ca,'style':_0x22694b,'value':_0x30942a&&Pi(_0x3dd0a8==null?void 0x0:_0x3dd0a8['v'])?_0x3c3439:Ni(_0x3dd0a8,_0x1182c8)};}function Ni(_0x25cb58,_0x3ad3fb){const _0x15721d=_0x2353bc;let _0x43c83b=_0x25cb58==null?void 0x0:_0x25cb58['v'];return _0x1b2084(_0x43c83b)?String(_0x43c83b[_0x15721d(0x284)]??_0x43c83b['prefix']??''):_0x426ce3(_0x43c83b)?'#'+_0x43c83b['errorType']:_0x3ad3fb&&typeof _0x43c83b==_0x15721d(0x3c4)?_0x3f4aae[_0x15721d(0x347)](_0x3ad3fb,_0x43c83b):String(_0x43c83b??'');}function Pi(_0x1d56b6){return _0x1d56b6===void 0x0||_0x1d56b6==='';}function Fi(_0x431bee){const _0x266301=_0x2353bc;return!!(_0x431bee!=null&&_0x431bee[_0x266301(0x361)]||_0x431bee!=null&&_0x431bee['isTopTotal']||_0x431bee!=null&&_0x431bee[_0x266301(0x3f2)]||(_0x431bee==null?void 0x0:_0x431bee[_0x266301(0x339)])==='grandTotal');}const Ii=[{'area':_0x4c815c[_0x2353bc(0x3b4)],'key':_0x2353bc(0x2e1),'label':_0x2353bc(0x2a1)},{'area':_0x4c815c[_0x2353bc(0x499)],'key':'columnFields','label':_0x2353bc(0x318)},{'area':_0x4c815c[_0x2353bc(0x456)],'key':_0x2353bc(0x490),'label':_0x2353bc(0x1d4)},{'area':_0x4c815c[_0x2353bc(0x47a)],'key':_0x2353bc(0x1f9),'label':_0x2353bc(0x326)}],Li=[{'value':_0x282c8a[_0x2353bc(0x2bf)],'localeKey':_0x2353bc(0x3b2)},{'value':_0x282c8a['count'],'localeKey':_0x2353bc(0x29c)},{'value':_0x282c8a[_0x2353bc(0x3c8)],'localeKey':_0x2353bc(0x48c)},{'value':_0x282c8a[_0x2353bc(0x4f0)],'localeKey':_0x2353bc(0x3e4)},{'value':_0x282c8a[_0x2353bc(0x2eb)],'localeKey':_0x2353bc(0x42f)},{'value':_0x282c8a[_0x2353bc(0x314)],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x282c8a[_0x2353bc(0x2d6)],'localeKey':_0x2353bc(0x44c)},{'value':_0x282c8a[_0x2353bc(0x2a7)],'localeKey':_0x2353bc(0x3ac)},{'value':_0x282c8a['stdDevp'],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x282c8a[_0x2353bc(0x218)],'localeKey':_0x2353bc(0x2b9)},{'value':_0x282c8a[_0x2353bc(0x22c)],'localeKey':_0x2353bc(0x3e0)}];function Ri(_0x4b32ae){const _0x14e6b3=_0x2353bc;let {config:_0x58b9a7,onChange:_0x5c3cac,table:_0x5900af}=_0x4b32ae,_0x3a9b06=_0x39b411(_0x5cd3ee),[_0x479898,_0x343c22]=_0x2be63d(_0x14e6b3(0x273)),[_0x4d2d78,_0x563d98]=_0x2be63d(''),[_0x565a5a,_0x54315e]=_0x2be63d(null),[_0x4fc275,_0x3db859]=_0x2be63d(null),[_0x36a548,_0x41c801]=_0x2be63d(null),[_0x1bb088,_0xc21cc0]=_0x2be63d(null),_0x3c330f=_0x35f949(null),_0x4a363d=_0x56a185(()=>_0x5900af['fieldOrder'][_0x14e6b3(0x3bc)](_0x1bbc57=>{const _0x49e6e2=_0x14e6b3;let _0x136c60=_0x5900af[_0x49e6e2(0x273)][_0x1bbc57];return _0x136c60&&_0x136c60['system']!==!0x0&&_0x136c60[_0x49e6e2(0x393)]!==_0x557eea[_0x49e6e2(0x389)]?[_0x136c60]:[];})[_0x14e6b3(0x1b3)](_0x2f9060=>_0x2f9060[_0x14e6b3(0x329)]['toLocaleLowerCase']()[_0x14e6b3(0x331)](_0x4d2d78[_0x14e6b3(0x3ee)]()[_0x14e6b3(0x49d)]())),[_0x4d2d78,_0x5900af]),_0x43ee29=_0xe7939=>{const _0x523a79=_0x14e6b3;let _0x2f210c=_0x1c8584(_0x5900af,_0x58b9a7[_0x523a79(0x4aa)]);try{_0xe7939(_0x2f210c),_0x5c3cac({'pivot':_0x2f210c['toJSON']()});}finally{_0x2f210c['dispose']();}},_0x3a9d8a=(_0x1c199e,_0x152c53)=>{_0x565a5a&&(_0x43ee29(_0xe2dd8d=>{const _0x2ca70d=_0x1cf6;if(_0x565a5a[_0x2ca70d(0x29e)]===_0x2ca70d(0x506)){let _0xd287d3=_0xe2dd8d[_0x2ca70d(0x316)](_0x565a5a['id']),_0x3551b6=_0xd287d3[_0x2ca70d(0x269)]===_0x1c199e&&_0xd287d3['index']<_0x152c53?_0x152c53-0x1:_0x152c53;_0xe2dd8d['updateFieldPosition'](_0x565a5a['id'],_0x1c199e,_0x3551b6);return;}Ki(_0xe2dd8d,_0x565a5a['id'],_0x1c199e,_0x152c53);}),_0x54315e(null),_0x3db859(null));};return _0x2b00c1(_0x14e6b3(0x442),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col','children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x3a9b06['t'](_0x14e6b3(0x4a7)),'className':_0x14e6b3(0x410),'items':[{'label':_0x3a9b06['t'](_0x14e6b3(0x2a5)),'panelId':_0x14e6b3(0x4f3),'value':_0x14e6b3(0x273)},{'label':_0x3a9b06['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x14e6b3(0x27b),'value':'options'}],'value':_0x479898,'onChange':_0x343c22}),_0x4dabb7('div',{'ref':_0x3c330f,'className':_0x52fed8(_0x14e6b3(0x2fb),_0x2a22a5),'onDragOver':_0x5171cf=>{const _0xf72121=_0x14e6b3;let _0x42f65b=_0x3c330f['current'];if(!_0x42f65b)return;let _0xc5d3e9=_0x42f65b[_0xf72121(0x4db)]();_0x5171cf[_0xf72121(0x408)]<_0xc5d3e9['top']+0x30?_0x42f65b['scrollTop']-=0x10:_0x5171cf[_0xf72121(0x408)]>_0xc5d3e9[_0xf72121(0x2d0)]-0x30&&(_0x42f65b[_0xf72121(0x425)]+=0x10);},'children':_0x479898===_0x14e6b3(0x320)?_0x4dabb7(Gi,{'config':_0x58b9a7,'commit':_0x43ee29}):_0x2b00c1(_0x14e6b3(0x442),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x2b00c1(_0x14e6b3(0x442),{'children':[_0x4dabb7(_0x14e6b3(0x442),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x3a9b06['t']('bases-dashboard-ui.pivot.sourceFields')}),_0x4dabb7(_0x2c53ee,{'allowClear':!0x0,'slot':_0x4dabb7(_0x51aac6,{}),'value':_0x4d2d78,'placeholder':_0x3a9b06['t'](_0x14e6b3(0x35a)),'onChange':_0x563d98}),_0x4dabb7(_0x14e6b3(0x442),{'className':_0x14e6b3(0x351),'children':_0x4a363d[_0x14e6b3(0x3ff)](_0x2c5221=>_0x4dabb7(zi,{'config':_0x58b9a7,'field':_0x2c5221,'onAdd':_0x50d17d=>_0x43ee29(_0x3840f7=>Ki(_0x3840f7,_0x2c5221['id'],_0x50d17d,_0x3840f7['getFieldCountByArea'](_0x50d17d))),'onCheckedChange':_0x597380=>_0x43ee29(_0x20a575=>{const _0x259c64=_0x14e6b3;let _0x34f00b=_0x20a575['getTableFieldsByDataFieldId'](_0x2c5221['id']);if(!_0x597380){_0x34f00b['forEach'](_0x81b155=>_0x20a575[_0x259c64(0x24e)](_0x81b155['getId']()));return;}if(_0x34f00b[_0x259c64(0x4da)]===0x0){let _0x489489=Ji(_0x2c5221)?_0x4c815c[_0x259c64(0x47a)]:_0x4c815c[_0x259c64(0x456)];_0x20a575[_0x259c64(0x3fa)](_0x2c5221['id'],_0x489489);}}),'onDragStart':()=>_0x54315e({'kind':_0x14e6b3(0x24c),'id':_0x2c5221['id']})},_0x2c5221['id']))})]}),_0x4dabb7(_0x14e6b3(0x442),{'className':'univer-grid\x20univer-gap-3','children':Ii[_0x14e6b3(0x3ff)](_0x4112c6=>_0x4dabb7(Vi,{'area':_0x4112c6['area'],'dropTarget':_0x4fc275,'fields':_0x58b9a7[_0x14e6b3(0x4aa)][_0x4112c6[_0x14e6b3(0x336)]],'label':_0x3a9b06['t'](_0x4112c6[_0x14e6b3(0x3b0)]),'snapshot':_0x58b9a7['pivot'],'onDragEnd':()=>{_0x54315e(null),_0x3db859(null);},'onDragStart':_0x17360d=>_0x54315e({'kind':'field','id':_0x17360d,'area':_0x4112c6[_0x14e6b3(0x269)]}),'onDragOver':_0x39f988=>_0x3db859({'area':_0x4112c6['area'],'index':_0x39f988}),'onDrop':_0x2d0b29=>_0x3a9d8a(_0x4112c6[_0x14e6b3(0x269)],_0x2d0b29),'onFilter':_0x41c801,'onMove':(_0x467161,_0x14b0a0,_0x376b78)=>_0x43ee29(_0x2bfc04=>_0x2bfc04['updateFieldPosition'](_0x467161,_0x14b0a0,_0x376b78)),'onRemove':_0x3acfe4=>_0x43ee29(_0x284d98=>_0x284d98['removeField'](_0x3acfe4)),'onSettings':_0xc21cc0},_0x4112c6['area']))}),_0x36a548&&_0x4dabb7(Ui,{'fieldId':_0x36a548,'snapshot':_0x58b9a7['pivot'],'table':_0x5900af,'onCancel':()=>_0x41c801(null),'onCommit':(_0x272ef6,_0x22b983)=>{_0x43ee29(_0x5f0164=>{const _0x359b8b=_0x1cf6;let _0x489c84=_0x5f0164[_0x359b8b(0x3b7)](_0x36a548),_0x2b8bb0=(_0x489c84==null?void 0x0:_0x489c84['items'])??[];_0x5f0164[_0x359b8b(0x4c2)](_0x36a548,{'type':_0x1b814d[_0x359b8b(0x468)],'list':_0x272ef6,'isAll':_0x272ef6[_0x359b8b(0x4da)]===_0x2b8bb0['length']}),_0x5f0164[_0x359b8b(0x263)](_0x36a548,_0x22b983===void 0x0?void 0x0:{'type':_0x22b983});}),_0x41c801(null);}},_0x36a548),_0x1bb088&&_0x4dabb7(Wi,{'field':_0x58b9a7[_0x14e6b3(0x4aa)]['measure'][_0x1bb088],'onCancel':()=>_0xc21cc0(null),'onCommit':(_0x3f5e2b,_0xffe44b,_0x3b258a)=>{_0x43ee29(_0x1cf23c=>{const _0x46cab7=_0x1cf6;_0x1cf23c[_0x46cab7(0x1e8)](_0x1bb088,_0x3f5e2b),_0x1cf23c[_0x46cab7(0x467)](_0x1bb088,_0xffe44b),_0x1cf23c[_0x46cab7(0x2de)](_0x1bb088,_0x3b258a||void 0x0);}),_0xc21cc0(null);}},_0x1bb088)]})})]});}function zi(_0xd3dcb5){const _0x5139d4=_0x2353bc;let {config:_0x41669b,field:_0x27c732,onAdd:_0x52c20a,onCheckedChange:_0xf2535e,onDragStart:_0x5edc81}=_0xd3dcb5,_0x2fe2af=_0x39b411(_0x5cd3ee),_0x1eacaf=[...Object['values'](_0x41669b[_0x5139d4(0x4aa)][_0x5139d4(0x46a)]),...Object[_0x5139d4(0x4ad)](_0x41669b[_0x5139d4(0x4aa)][_0x5139d4(0x1c7)])]['some'](_0x3c2105=>_0x3c2105[_0x5139d4(0x355)]===_0x27c732['id']),_0x3160ec=Ii[_0x5139d4(0x3ff)](_0x2d96ec=>({'type':'item','children':_0x2fe2af['t'](Yi(_0x2d96ec[_0x5139d4(0x269)])),'onSelect':()=>_0x52c20a(_0x2d96ec[_0x5139d4(0x269)])}));return _0x2b00c1(_0x5139d4(0x442),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x5139d4(0x473),'onDragStart':_0x5edc81,'children':[_0x4dabb7(_0x3cc061,{'checked':_0x1eacaf,'onChange':_0x169c62=>_0xf2535e(!!_0x169c62)}),_0x4dabb7(Bi,{'field':_0x27c732}),_0x4dabb7('span',{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x27c732['name']}),_0x4dabb7(Jr,{'align':_0x5139d4(0x236),'items':_0x3160ec,'children':_0x4dabb7(_0x1b3e3b,{'variant':'text','aria-label':_0x2fe2af['t']('bases-dashboard-ui.pivot.fieldSettings'),'children':_0x4dabb7(_0xf77a3b,{})})})]});}function Bi({field:_0x3dd8ba}){const _0x5409d5=_0x2353bc;return Ji(_0x3dd8ba)?_0x4dabb7(_0x5a5ded,{'className':_0x5409d5(0x28e)}):_0x3dd8ba[_0x5409d5(0x393)]===_0x557eea['Date']||_0x3dd8ba['type']===_0x557eea[_0x5409d5(0x2fa)]||_0x3dd8ba[_0x5409d5(0x393)]===_0x557eea['UpdatedAt']?_0x4dabb7(_0x951fbe,{'className':_0x5409d5(0x28e)}):_0x4dabb7(_0x264f2e,{'className':_0x5409d5(0x28e)});}function Vi(_0x30fd85){const _0x3c342f=_0x2353bc;let {area:_0x16a360,dropTarget:_0x3afb08,fields:_0x1f9547,label:_0x4ed925,snapshot:_0x4fab24}=_0x30fd85,_0x1eb183=_0x39b411(_0x5cd3ee);return _0x2b00c1('section',{'className':_0x52fed8(_0x3c342f(0x458),_0x1298ac),'onDragOver':_0x1f0bcd=>{const _0x23d6fa=_0x3c342f;_0x1f0bcd[_0x23d6fa(0x3ca)](),_0x30fd85['onDragOver'](_0x1f9547[_0x23d6fa(0x4da)]);},'onDrop':_0x1b896a=>{const _0x4137a5=_0x3c342f;_0x1b896a[_0x4137a5(0x3ca)](),_0x30fd85[_0x4137a5(0x20c)]((_0x3afb08==null?void 0x0:_0x3afb08[_0x4137a5(0x269)])===_0x16a360?_0x3afb08[_0x4137a5(0x32a)]:_0x1f9547[_0x4137a5(0x4da)]);},'children':[_0x4dabb7('div',{'className':_0x3c342f(0x356),'children':_0x4ed925}),_0x2b00c1(_0x3c342f(0x442),{'className':_0x3c342f(0x378),'children':[_0x1f9547[_0x3c342f(0x3ff)]((_0x5d4a05,_0x1eb024)=>{const _0x31a941=_0x3c342f;let _0x4973f=_0x4fab24[_0x31a941(0x46a)][_0x5d4a05]??_0x4fab24[_0x31a941(0x1c7)][_0x5d4a05];if(!_0x4973f)return null;let _0x4f0cf5=(_0x3afb08==null?void 0x0:_0x3afb08[_0x31a941(0x269)])===_0x16a360&&_0x3afb08[_0x31a941(0x32a)]===_0x1eb024;return _0x2b00c1(_0x31a941(0x442),{'onDragOver':_0x3058af=>{const _0x5e507c=_0x31a941;_0x3058af[_0x5e507c(0x3ca)](),_0x3058af[_0x5e507c(0x1de)]();let _0x52e16d=_0x3058af[_0x5e507c(0x250)]['getBoundingClientRect']();_0x30fd85[_0x5e507c(0x4cb)](_0x1eb024+ +(_0x3058af[_0x5e507c(0x408)]>_0x52e16d[_0x5e507c(0x45e)]+_0x52e16d['height']/0x2));},'onDrop':_0x1c9830=>{const _0x1e8462=_0x31a941;_0x1c9830[_0x1e8462(0x3ca)](),_0x1c9830[_0x1e8462(0x1de)](),_0x30fd85['onDrop']((_0x3afb08==null?void 0x0:_0x3afb08[_0x1e8462(0x269)])===_0x16a360?_0x3afb08['index']:_0x1eb024);},'children':[_0x4f0cf5&&_0x4dabb7('div',{'className':_0x31a941(0x278)}),_0x4dabb7(Hi,{'area':_0x16a360,'field':_0x4973f,'onDragEnd':_0x30fd85[_0x31a941(0x31c)],'onDragStart':()=>_0x30fd85['onDragStart'](_0x5d4a05),'onFilter':()=>_0x30fd85[_0x31a941(0x49e)](_0x5d4a05),'onMove':_0x3c4244=>_0x30fd85['onMove'](_0x5d4a05,_0x3c4244,0x0),'onMoveUp':_0x1eb024>0x0?()=>_0x30fd85[_0x31a941(0x4b5)](_0x5d4a05,_0x16a360,_0x1eb024-0x1):void 0x0,'onMoveDown':_0x1eb024<_0x1f9547[_0x31a941(0x4da)]-0x1?()=>_0x30fd85[_0x31a941(0x4b5)](_0x5d4a05,_0x16a360,_0x1eb024+0x1):void 0x0,'onRemove':()=>_0x30fd85[_0x31a941(0x287)](_0x5d4a05),'onSettings':()=>_0x30fd85['onSettings'](_0x5d4a05)})]},_0x5d4a05);}),(_0x3afb08==null?void 0x0:_0x3afb08['area'])===_0x16a360&&_0x3afb08[_0x3c342f(0x32a)]===_0x1f9547[_0x3c342f(0x4da)]&&_0x4dabb7(_0x3c342f(0x442),{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),_0x1f9547[_0x3c342f(0x4da)]===0x0&&_0x4dabb7('div',{'className':_0x3c342f(0x279),'children':_0x1eb183['t']('bases-dashboard-ui.pivot.sourceFields')})]})]});}function Hi(_0x148289){const _0x5412b9=_0x2353bc;let _0x3b4155=_0x39b411(_0x5cd3ee),_0x5a1aef=_0x148289['area']===_0x4c815c['Value'],_0x5a8d44=[...Ii[_0x5412b9(0x1b3)](_0x2497fb=>_0x2497fb[_0x5412b9(0x269)]!==_0x148289['area'])[_0x5412b9(0x3ff)](_0x595dc7=>({'type':_0x5412b9(0x423),'children':_0x3b4155['t'](Yi(_0x595dc7[_0x5412b9(0x269)])),'onSelect':()=>_0x148289[_0x5412b9(0x4b5)](_0x595dc7[_0x5412b9(0x269)])})),..._0x148289[_0x5412b9(0x206)]?[{'type':'item','children':_0x3b4155['t'](_0x5412b9(0x2ab)),'onSelect':_0x148289[_0x5412b9(0x206)]}]:[],..._0x148289[_0x5412b9(0x235)]?[{'type':_0x5412b9(0x423),'children':_0x3b4155['t'](_0x5412b9(0x33b)),'onSelect':_0x148289[_0x5412b9(0x235)]}]:[],{'type':_0x5412b9(0x423),'children':_0x3b4155['t'](_0x5412b9(0x404)),'onSelect':_0x148289['onRemove']},{'type':_0x5412b9(0x423),'children':_0x3b4155['t'](_0x5a1aef?_0x5412b9(0x2c7):_0x5412b9(0x3a1)),'onSelect':_0x5a1aef?_0x148289[_0x5412b9(0x373)]:_0x148289[_0x5412b9(0x49e)]}];return _0x2b00c1('div',{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x5412b9(0x328),'onDragEnd':_0x148289[_0x5412b9(0x31c)],'onDragStart':_0x148289['onDragStart'],'children':[_0x4dabb7(_0x56b693,{'title':_0x148289[_0x5412b9(0x506)][_0x5412b9(0x2a9)],'children':_0x4dabb7(_0x5412b9(0x3ec),{'className':_0x5412b9(0x3bf),'children':_0x148289['field'][_0x5412b9(0x2a9)]})}),_0x4dabb7(Jr,{'align':_0x5412b9(0x236),'items':_0x5a8d44,'children':_0x4dabb7(_0x1b3e3b,{'variant':_0x5412b9(0x452),'aria-label':_0x3b4155['t'](_0x5412b9(0x2c7)),'children':_0x4dabb7(_0xf77a3b,{})})})]});}function Ui(_0x3ef5bc){const _0x5f450e=_0x2353bc;var _0x5db6a2,_0x10aee2;let _0x9e9778=_0x39b411(_0x5cd3ee),{format:_0x46e3b7,items:_0x13e838,itemTypes:_0x285867}=_0x56a185(()=>{const _0x4f8d8a=_0x1cf6;let _0x1e122f=_0x1c8584(_0x3ef5bc[_0x4f8d8a(0x4bb)],_0x3ef5bc[_0x4f8d8a(0x1d0)]);try{let _0x5cd992=_0x1e122f['getDataFieldByTableId'](_0x3ef5bc[_0x4f8d8a(0x43d)]);return{'format':_0x5cd992==null?void 0x0:_0x5cd992['format'],'items':[...(_0x5cd992==null?void 0x0:_0x5cd992[_0x4f8d8a(0x41c)])??[]],'itemTypes':[...(_0x5cd992==null?void 0x0:_0x5cd992[_0x4f8d8a(0x4ed)])??[]]};}finally{_0x1e122f['dispose']();}},[_0x3ef5bc[_0x5f450e(0x43d)],_0x3ef5bc['snapshot'],_0x3ef5bc[_0x5f450e(0x4bb)]]),_0x29aeec=(_0x5db6a2=_0x3ef5bc[_0x5f450e(0x1d0)][_0x5f450e(0x46a)][_0x3ef5bc[_0x5f450e(0x43d)]])==null?void 0x0:_0x5db6a2[_0x5f450e(0x3ad)],[_0x2416f9,_0x22428c]=_0x2be63d((_0x29aeec==null?void 0x0:_0x29aeec['type'])===_0x1b814d['ManualFilter']?_0x29aeec[_0x5f450e(0x4ea)]:_0x13e838),[_0x173575,_0xa911aa]=_0x2be63d((_0x10aee2=_0x3ef5bc['snapshot'][_0x5f450e(0x46a)][_0x3ef5bc[_0x5f450e(0x43d)]])==null||(_0x10aee2=_0x10aee2[_0x5f450e(0x1e0)])==null?void 0x0:_0x10aee2[_0x5f450e(0x393)]),_0x4154cc=_0x2416f9[_0x5f450e(0x4da)]===_0x13e838['length'],_0x2095c2=_0x2b00c1(_0x5f450e(0x482),{'className':_0x52fed8(_0x5f450e(0x3f6),_0x1298ac),'children':[_0x4dabb7('div',{'className':_0x5f450e(0x306),'children':_0x9e9778['t'](_0x5f450e(0x3a1))}),_0x2b00c1(_0x5f450e(0x442),{'className':_0x5f450e(0x414),'children':[_0x2b00c1(_0x1b3e3b,{'className':'univer-flex-1','variant':_0x173575===_0x428fd4[_0x5f450e(0x21b)]?_0x5f450e(0x37f):'default','onClick':()=>_0xa911aa(_0x428fd4[_0x5f450e(0x21b)]),'children':[_0x4dabb7(_0x4c6d55,{}),_0x9e9778['t'](_0x5f450e(0x43a))]}),_0x2b00c1(_0x1b3e3b,{'className':_0x5f450e(0x342),'variant':_0x173575===_0x428fd4[_0x5f450e(0x229)]?_0x5f450e(0x37f):_0x5f450e(0x431),'onClick':()=>_0xa911aa(_0x428fd4['descending']),'children':[_0x4dabb7(_0x59e3b9,{}),_0x9e9778['t'](_0x5f450e(0x2b2))]})]}),_0x2b00c1(_0x5f450e(0x442),{'className':_0x5f450e(0x302),'children':[_0x2b00c1(_0x5f450e(0x3b0),{'className':_0x5f450e(0x334),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x4154cc,'indeterminate':_0x2416f9['length']>0x0&&!_0x4154cc,'onChange':()=>_0x22428c(_0x4154cc?[]:_0x13e838)}),_0x9e9778['t'](_0x5f450e(0x368))]}),_0x13e838[_0x5f450e(0x3ff)]((_0x432f70,_0x46a66d)=>_0x2b00c1('label',{'className':_0x5f450e(0x334),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x2416f9[_0x5f450e(0x331)](_0x432f70),'onChange':()=>_0x22428c(_0x4cc6de=>_0x4cc6de[_0x5f450e(0x331)](_0x432f70)?_0x4cc6de[_0x5f450e(0x1b3)](_0x3dd27c=>_0x3dd27c!==_0x432f70):[..._0x4cc6de,_0x432f70])}),_0x4dabb7(_0x5f450e(0x3ec),{'className':_0x5f450e(0x226),'children':qi(_0x432f70,_0x285867[_0x46a66d],_0x46e3b7,_0x9e9778['t'](_0x5f450e(0x2a2)))})]},_0x432f70))]}),_0x2b00c1(_0x5f450e(0x442),{'className':_0x5f450e(0x2e3),'children':[_0x4dabb7(_0x1b3e3b,{'variant':_0x5f450e(0x31a),'onClick':()=>_0x3ef5bc[_0x5f450e(0x434)](_0x13e838,_0x173575),'children':_0x9e9778['t'](_0x5f450e(0x2d3))}),_0x2b00c1(_0x5f450e(0x442),{'className':'univer-flex\x20univer-gap-2','children':[_0x4dabb7(_0x1b3e3b,{'onClick':_0x3ef5bc[_0x5f450e(0x4f7)],'children':_0x9e9778['t']('bases-dashboard-ui.pivot.cancel')}),_0x4dabb7(_0x1b3e3b,{'variant':_0x5f450e(0x37f),'disabled':_0x2416f9[_0x5f450e(0x4da)]===0x0,'onClick':()=>_0x3ef5bc[_0x5f450e(0x434)](_0x2416f9,_0x173575),'children':_0x9e9778['t'](_0x5f450e(0x325))})]})]})]});return _0x4dabb7(_0x4989cc,{'title':_0x9e9778['t']('bases-dashboard-ui.pivot.filterField'),'onClose':_0x3ef5bc[_0x5f450e(0x4f7)],'children':_0x2095c2});}function Wi(_0x1ea0d5){const _0x17c031=_0x2353bc;var _0x38532e,_0xdbdb9c,_0x182ee3;let _0x4420b5=_0x39b411(_0x5cd3ee),[_0x1288ee,_0x3e2177]=_0x2be63d(((_0x38532e=_0x1ea0d5[_0x17c031(0x506)])==null?void 0x0:_0x38532e[_0x17c031(0x2a9)])??''),[_0x1c0c14,_0x1ef88f]=_0x2be63d(((_0xdbdb9c=_0x1ea0d5[_0x17c031(0x506)])==null?void 0x0:_0xdbdb9c['subtotal'])??_0x282c8a[_0x17c031(0x2bf)]),[_0x289563,_0x1635c4]=_0x2be63d(((_0x182ee3=_0x1ea0d5[_0x17c031(0x506)])==null?void 0x0:_0x182ee3['format'])??'');if(!_0x1ea0d5[_0x17c031(0x506)])return null;let _0x46b3c4=_0x2b00c1(_0x17c031(0x482),{'className':_0x52fed8(_0x17c031(0x50c),_0x1298ac),'children':[_0x4dabb7(_0x17c031(0x442),{'className':'univer-text-sm\x20univer-font-medium','children':_0x4420b5['t'](_0x17c031(0x2c7))}),_0x2b00c1(_0x17c031(0x3b0),{'className':_0x17c031(0x4a3),'children':[_0x4420b5['t'](_0x17c031(0x1c9)),_0x4dabb7(_0x2c53ee,{'value':_0x1288ee,'onChange':_0x3e2177})]}),_0x2b00c1('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x4420b5['t']('bases-dashboard-ui.pivot.summarizeBy'),_0x4dabb7(qr,{'value':String(_0x1c0c14),'options':Li['map'](_0x30d868=>({'value':String(_0x30d868[_0x17c031(0x284)]),'label':_0x4420b5['t'](_0x30d868[_0x17c031(0x353)])})),'onChange':_0x12b3fb=>{const _0x471233=_0x17c031;let _0x4844f7=Li['find'](_0x5ceaa9=>String(_0x5ceaa9[_0x471233(0x284)])===_0x12b3fb);_0x4844f7&&_0x1ef88f(_0x4844f7[_0x471233(0x284)]);}})]}),_0x2b00c1('label',{'className':_0x17c031(0x4a3),'children':[_0x4420b5['t'](_0x17c031(0x3e8)),_0x4dabb7(_0x2c53ee,{'value':_0x289563,'onChange':_0x1635c4})]}),_0x2b00c1(_0x17c031(0x442),{'className':_0x17c031(0x4f9),'children':[_0x4dabb7(_0x1b3e3b,{'onClick':_0x1ea0d5[_0x17c031(0x4f7)],'children':_0x4420b5['t'](_0x17c031(0x376))}),_0x4dabb7(_0x1b3e3b,{'variant':'primary','disabled':!_0x1288ee[_0x17c031(0x3ee)](),'onClick':()=>_0x1ea0d5['onCommit'](_0x1288ee['trim'](),_0x1c0c14,_0x289563),'children':_0x4420b5['t'](_0x17c031(0x325))})]})]});return _0x4dabb7(_0x4989cc,{'title':_0x4420b5['t'](_0x17c031(0x2c7)),'onClose':_0x1ea0d5[_0x17c031(0x4f7)],'children':_0x46b3c4});}function Gi(_0x3899dd){const _0x23dbe9=_0x2353bc;let {config:_0x21e48e,commit:_0x197b95}=_0x3899dd,_0x412811=_0x39b411(_0x5cd3ee),_0x368f5c=_0x21e48e['pivot'][_0x23dbe9(0x320)],_0x230464=_0x529ef7=>_0x197b95(_0x37c7a1=>_0x37c7a1[_0x23dbe9(0x3db)]({..._0x37c7a1['getOptions'](),..._0x529ef7}));return _0x2b00c1('div',{'className':_0x23dbe9(0x4f1),'children':[_0x2b00c1(_0x23dbe9(0x3b0),{'className':_0x23dbe9(0x1f1),'children':[_0x412811['t'](_0x23dbe9(0x291)),_0x4dabb7(qr,{'className':'univer-w-36','value':String(_0x21e48e[_0x23dbe9(0x4aa)]['layout']),'options':[{'value':String(_0x426ac9[_0x23dbe9(0x2c8)]),'label':_0x412811['t']('bases-dashboard-ui.pivot.layoutTabular')},{'value':String(_0x426ac9[_0x23dbe9(0x1be)]),'label':_0x412811['t'](_0x23dbe9(0x409))},{'value':String(_0x426ac9[_0x23dbe9(0x379)]),'label':_0x412811['t'](_0x23dbe9(0x421))}],'onChange':_0x343726=>{const _0x4f6612=_0x23dbe9;let _0x38d872=[_0x426ac9[_0x4f6612(0x2c8)],_0x426ac9[_0x4f6612(0x1be)],_0x426ac9[_0x4f6612(0x379)]][_0x4f6612(0x397)](_0x12b1e6=>String(_0x12b1e6)===_0x343726);_0x38d872!==void 0x0&&_0x197b95(_0x447c53=>_0x447c53[_0x4f6612(0x28f)](_0x38d872));}})]}),[{'key':_0x23dbe9(0x479),'label':_0x23dbe9(0x282),'defaultValue':!0x1},{'key':_0x23dbe9(0x40b),'label':'bases-dashboard-ui.pivot.repeatColumnLabels','defaultValue':!0x1},{'key':'showRowSubtotal','label':_0x23dbe9(0x44a),'defaultValue':!0x0},{'key':_0x23dbe9(0x402),'label':_0x23dbe9(0x2ca),'defaultValue':!0x0},{'key':_0x23dbe9(0x280),'label':_0x23dbe9(0x2bb),'defaultValue':!0x0},{'key':'showColGrandTotal','label':_0x23dbe9(0x2c1),'defaultValue':!0x0}]['map'](_0x1bcc08=>_0x2b00c1(_0x23dbe9(0x3b0),{'className':_0x23dbe9(0x343),'children':[_0x4dabb7(_0x3cc061,{'checked':!!(_0x368f5c[_0x1bcc08[_0x23dbe9(0x336)]]??_0x1bcc08[_0x23dbe9(0x1ba)]),'disabled':_0x1bcc08['key']==='repeatRowLabels'&&_0x21e48e[_0x23dbe9(0x4aa)][_0x23dbe9(0x439)]===_0x426ac9[_0x23dbe9(0x1be)],'onChange':_0x442be3=>_0x230464({[_0x1bcc08[_0x23dbe9(0x336)]]:!!_0x442be3})}),_0x412811['t'](_0x1bcc08[_0x23dbe9(0x3b0)])]},_0x1bcc08[_0x23dbe9(0x336)])),_0x21e48e[_0x23dbe9(0x4aa)][_0x23dbe9(0x439)]===_0x426ac9[_0x23dbe9(0x379)]&&_0x2b00c1(_0x23dbe9(0x3b0),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x412811['t'](_0x23dbe9(0x1c3)),_0x4dabb7(qr,{'className':_0x23dbe9(0x23f),'value':String(_0x368f5c[_0x23dbe9(0x413)]??_0x10ab45['top']),'options':[{'value':String(_0x10ab45['top']),'label':_0x412811['t'](_0x23dbe9(0x422))},{'value':String(_0x10ab45['bottom']),'label':_0x412811['t'](_0x23dbe9(0x383))}],'onChange':_0x1b066f=>{const _0x35ef10=_0x23dbe9;let _0x212a0f=[_0x10ab45[_0x35ef10(0x45e)],_0x10ab45[_0x35ef10(0x2d0)]][_0x35ef10(0x397)](_0x39c9b2=>String(_0x39c9b2)===_0x1b066f);_0x212a0f!==void 0x0&&_0x230464({'rowSubtotalPosition':_0x212a0f});}})]}),_0x2b00c1(_0x23dbe9(0x3b0),{'className':_0x23dbe9(0x1f1),'children':[_0x412811['t'](_0x23dbe9(0x25d)),_0x4dabb7(qr,{'className':_0x23dbe9(0x23f),'value':String(_0x21e48e[_0x23dbe9(0x4aa)][_0x23dbe9(0x1bb)]===_0x288ba5[_0x23dbe9(0x2fe)]?_0x288ba5[_0x23dbe9(0x499)]:_0x21e48e[_0x23dbe9(0x4aa)][_0x23dbe9(0x1bb)]),'options':[{'value':String(_0x288ba5[_0x23dbe9(0x499)]),'label':_0x412811['t'](_0x23dbe9(0x318))},{'value':String(_0x288ba5[_0x23dbe9(0x456)]),'label':_0x412811['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x1b707d=>{const _0x51b2e0=_0x23dbe9;let _0x22b349=[_0x288ba5['Column'],_0x288ba5[_0x51b2e0(0x456)]][_0x51b2e0(0x397)](_0x3ee5b7=>String(_0x3ee5b7)===_0x1b707d);_0x22b349!==void 0x0&&_0x197b95(_0x404a62=>_0x404a62['updateValuePosition'](_0x22b349,_0x404a62[_0x51b2e0(0x2cf)]()<0x0?0x0:_0x404a62[_0x51b2e0(0x2cf)]()));}})]}),_0x2b00c1(_0x23dbe9(0x3b0),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x412811['t']('bases-dashboard-ui.pivot.pageWrap'),_0x4dabb7(_0x1c2086,{'className':_0x23dbe9(0x4c0),'min':0x1,'max':0x14,'value':_0x368f5c['pageWrap']??0x1,'onChange':_0x475573=>{let _0x4f5698=Number(_0x475573);Number['isFinite'](_0x4f5698)&&_0x4f5698>=0x1&&_0x230464({'pageWrap':_0x4f5698});}})]}),_0x2b00c1(_0x23dbe9(0x3b0),{'className':_0x23dbe9(0x1f1),'children':[_0x412811['t'](_0x23dbe9(0x40f)),_0x4dabb7(qr,{'className':'univer-w-36','value':String(_0x368f5c[_0x23dbe9(0x1b7)]??!0x1),'options':[{'value':_0x23dbe9(0x48b),'label':_0x412811['t'](_0x23dbe9(0x30c))},{'value':_0x23dbe9(0x1d5),'label':_0x412811['t'](_0x23dbe9(0x4a1))}],'onChange':_0x37c44d=>_0x230464({'pageOverThenDown':_0x37c44d==='true'})})]})]});}function Ki(_0x3caa46,_0xcf7742,_0x300388,_0x78710){const _0x55def8=_0x2353bc;let _0x6c4d7e=_0x3caa46['getTableFieldsByDataFieldId'](_0xcf7742)[_0x55def8(0x397)](_0x478440=>_0x3caa46[_0x55def8(0x316)](_0x478440[_0x55def8(0x1ae)]())[_0x55def8(0x269)]!==_0x4c815c[_0x55def8(0x47a)]);if(_0x300388!==_0x4c815c[_0x55def8(0x47a)]&&_0x6c4d7e){_0x3caa46[_0x55def8(0x1b0)](_0x6c4d7e[_0x55def8(0x1ae)](),_0x300388,_0x78710);return;}_0x3caa46[_0x55def8(0x3fa)](_0xcf7742,_0x300388,_0x78710);}function qi(_0x321d1a,_0x1072f7,_0x233100,_0x17f509){const _0x20c585=_0x2353bc;return _0x1072f7===_0x1fe7b3[_0x20c585(0x512)]?_0x17f509:_0x1072f7===_0x1fe7b3[_0x20c585(0x209)]&&_0x233100?_0x3f4aae[_0x20c585(0x347)](_0x233100,Number(_0x321d1a)):_0x321d1a;}function Ji(_0x193744){const _0x96860e=_0x2353bc;return _0x193744['type']===_0x557eea[_0x96860e(0x416)]||_0x193744['type']===_0x557eea[_0x96860e(0x321)]||_0x193744[_0x96860e(0x393)]===_0x557eea['Progress']||_0x193744[_0x96860e(0x393)]===_0x557eea[_0x96860e(0x42a)];}function Yi(_0x5c2279){const _0x53b0ea=_0x2353bc;switch(_0x5c2279){case _0x4c815c[_0x53b0ea(0x456)]:return _0x53b0ea(0x28b);case _0x4c815c[_0x53b0ea(0x499)]:return _0x53b0ea(0x50d);case _0x4c815c[_0x53b0ea(0x47a)]:return _0x53b0ea(0x4fe);default:return _0x53b0ea(0x41a);}}function Xi({config:_0x2bd721,onChange:_0x24a267,runtime:_0x312532,table:_0xa33f0f}){const _0xb6cdde=_0x2353bc;let _0xcd0aa0=_0x39b411(_0x5cd3ee),[_0x146deb,_0x333d35]=_0x2be63d('chart');return _0x2b00c1(_0xb6cdde(0x2b6),{'className':_0xb6cdde(0x40a),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0xcd0aa0['t'](_0xb6cdde(0x2f6)),'className':'univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','items':[{'label':_0xcd0aa0['t'](_0xb6cdde(0x36b)),'panelId':'base-pivot-chart-configuration','value':_0xb6cdde(0x4d8)},{'label':_0xcd0aa0['t'](_0xb6cdde(0x4a7)),'panelId':_0xb6cdde(0x225),'value':_0xb6cdde(0x4aa)}],'value':_0x146deb,'variant':_0xb6cdde(0x4d2),'onChange':_0x333d35}),_0x4dabb7(_0xb6cdde(0x442),{'className':_0xb6cdde(0x380),'children':_0x146deb===_0xb6cdde(0x4d8)?_0x312532&&_0x4dabb7(Qr,{'config':_0x2bd721,'runtime':_0x312532,'tableName':_0xa33f0f[_0xb6cdde(0x329)],'onChange':_0x24a267}):_0x4dabb7(Ri,{'config':_0x2bd721,'table':_0xa33f0f,'onChange':_0x24a267})})]});}function Zi({tableId:_0x505a17,unitId:_0x3f5bb5,viewId:_0x418ee1}){const _0x5bfbba=_0x2353bc;let [_0x216300,_0x7e450d]=_0x2be63d(!0x1),_0x15b16d=_0x39b411(_0x32452d),_0x57e18b=_0x39b411(_0x4074e5),_0x1f29c7=_0x39b411(_0x34ac8c),_0x1e64cf=_0x39b411(_0x5cd3ee),_0xe2a781=_0x39b411(_0x22ef82),[_0x5caddf,_0x4f042d]=_0x2be63d(null),[_0x47fb17,_0x50a818]=_0x2be63d(null),_0x344ac8=_0x35f949(_0x5bfbba(0x4e9)+_0x325e5d(0x8)),[_0x37ef82,_0xee075e]=_0x2be63d(!0x1),_0x2fb9d7=_0x57e18b['getUnit'](_0x3f5bb5,_0x51ec78[_0x5bfbba(0x4eb)]),_0x49ac79=_0x2fb9d7==null?void 0x0:_0x2fb9d7['getSnapshot']()[_0x5bfbba(0x39c)][_0x505a17],_0x10fae0=_0x49ac79==null?void 0x0:_0x49ac79['views'][_0x418ee1],_0x4f7fe9=Qi(_0x10fae0),_0x1def8=_r(_0x3f5bb5,_0x505a17,_0x418ee1);if(_0x38e78f(()=>{const _0xcbb2ee=_0x5bfbba;if(!_0x4f7fe9)return;let _0x51cc91=_0x344ac8[_0xcbb2ee(0x38f)];return _0xe2a781[_0xcbb2ee(0x403)](_0x51cc91,{'unitId':_0x3f5bb5,'tableId':_0x505a17,'viewId':_0x418ee1,'filters':[]}),()=>{const _0x4ef4a5=_0xcbb2ee;_0xe2a781[_0x4ef4a5(0x503)](_0x3f5bb5,_0x51cc91);};},[_0x4f7fe9,_0xe2a781,_0x505a17,_0x3f5bb5,_0x418ee1]),_0x38e78f(()=>{const _0x3869df=_0x5bfbba;if(!Qi(_0x10fae0))return;let _0x49c496=!0x0,_0x3df014={'unitId':_0x3f5bb5,'tableId':_0x505a17,'viewId':_0x418ee1,'filters':[_0x10fae0[_0x3869df(0x1b3)]??null]};return _0xe2a781[_0x3869df(0x41f)](_0x3f5bb5,_0x344ac8[_0x3869df(0x38f)],_0x3df014)['then'](_0xba6bf8=>{const _0x5ba27f=_0x3869df;_0x49c496&&_0xba6bf8&&(_0x4f042d(_0xba6bf8),_0x50a818(_0xe2a781[_0x5ba27f(0x33e)](_0x3f5bb5,_0x344ac8[_0x5ba27f(0x38f)])??null),_0xee075e(!0x1));})[_0x3869df(0x3d2)](_0x5e6f0b=>{_0x1f29c7['error']('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x5e6f0b),_0x49c496&&(_0x4f042d(null),_0xee075e(!0x0));}),()=>{_0x49c496=!0x1;};},[_0x1f29c7,_0xe2a781,_0x505a17,_0x3f5bb5,_0x10fae0,_0x418ee1]),!_0x49ac79||!Qi(_0x10fae0))return null;let _0x23cd90=_0xe2a781['getChartRuntime'](_0x3f5bb5,_0x344ac8['current'])===_0x47fb17?_0x47fb17:null,_0x1f8fda=_0x5caddf?_0x2b00c1('div',{'className':_0x5bfbba(0x2cd),'style':{'gridTemplateRows':_0x10fae0[_0x5bfbba(0x4e8)][_0x5bfbba(0x4a6)]===_0x5bfbba(0x330)?_0x5bfbba(0x44e):_0x5bfbba(0x230)},'children':[_0x10fae0[_0x5bfbba(0x4e8)][_0x5bfbba(0x4a6)]!==_0x5bfbba(0x4bb)&&_0x23cd90&&_0x4dabb7(_0x5bfbba(0x442),{'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':_0x4dabb7(Ir,{'isRowDirection':_0x2fa6dd(_0x10fae0[_0x5bfbba(0x4e8)][_0x5bfbba(0x4d8)][_0x5bfbba(0x485)]),'runtime':_0x23cd90})}),_0x10fae0[_0x5bfbba(0x4e8)][_0x5bfbba(0x4a6)]!=='chart'&&_0x4dabb7(_0x5bfbba(0x442),{'className':_0x5bfbba(0x32b),'children':_0x4dabb7(ki,{'pivot':_0x10fae0['config'][_0x5bfbba(0x4aa)],'view':_0x5caddf[_0x5bfbba(0x258)]})})]}):_0x4dabb7('div',{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x37ef82?_0x1e64cf['t'](_0x5bfbba(0x34c)):_0x1e64cf['t']('bases-dashboard-ui.pivot.calculating')}),_0x2a60ea=_0x4dabb7(Xi,{'config':_0x10fae0[_0x5bfbba(0x4e8)],'runtime':_0x23cd90,'table':_0x49ac79,'onChange':_0x148bd6=>{const _0x106e33=_0x5bfbba;_0x57e18b[_0x106e33(0x3ce)](_0x3f5bb5),_0x57e18b[_0x106e33(0x35f)](_0x3f5bb5),_0x15b16d[_0x106e33(0x1ff)](_0x303df3['id'],{'unitId':_0x3f5bb5,'tableId':_0x505a17,'viewId':_0x418ee1,'patch':_0x148bd6})[_0x106e33(0x3d2)](_0x552296=>_0x1f29c7[_0x106e33(0x1b4)](_0x106e33(0x337),_0x552296));}});return _0x4dabb7(Kr,{'children':_0x2b00c1(_0x5bfbba(0x442),{'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':[_0x1def8&&_0x4dabb7(_0x1b3e3b,{'onClick':()=>_0x7e450d(!0x0),'children':_0x1e64cf['t'](_0x5bfbba(0x36b))}),_0x4dabb7(_0x5bfbba(0x442),{'className':_0x5bfbba(0x43e),'children':_0x1f8fda}),_0x1def8&&_0x216300&&_0x4dabb7(_0x4989cc,{'title':_0x1e64cf['t'](_0x5bfbba(0x2f6)),'onClose':()=>_0x7e450d(!0x1),'children':_0x2a60ea})]})});}function Qi(_0x2dc864){const _0x19b5b1=_0x2353bc;return(_0x2dc864==null?void 0x0:_0x2dc864[_0x19b5b1(0x393)])===_0x5ee6b5[_0x19b5b1(0x49c)]&&typeof _0x2dc864[_0x19b5b1(0x4e8)]==_0x19b5b1(0x43c)&&_0x2dc864[_0x19b5b1(0x4e8)]!==null&&'pivot'in _0x2dc864[_0x19b5b1(0x4e8)]&&_0x19b5b1(0x4d8)in _0x2dc864[_0x19b5b1(0x4e8)]&&_0x19b5b1(0x4a6)in _0x2dc864['config'];}let $i=class extends _0x2e76da{constructor(_0x5b5943,_0x393e4b,_0x25b341,_0x231b45,_0x49a595,_0x4fc794){const _0x1f4fab=_0x2353bc;super(),this[_0x1f4fab(0x1eb)](_0x393e4b[_0x1f4fab(0x1ac)]({'type':_0x5ee6b5['Pivot'],'renderMode':_0x1f4fab(0x4cc),'icon':_0x3ad3c2,'component':Zi,'menu':{get 'label'(){const _0x11e103=_0x1f4fab;return _0x4fc794['t'](_0x11e103(0x2f6));},get 'description'(){const _0x547663=_0x1f4fab;return _0x4fc794['t'](_0x547663(0x345));},get 'defaultName'(){const _0x3ac35e=_0x1f4fab;return _0x4fc794['t'](_0x3ac35e(0x244));}}})),this['disposeWithMe'](_0x5b5943[_0x1f4fab(0x1ac)](ea(_0x25b341,_0x231b45,_0x49a595,_0x4fc794)));}};$i=Or([Y(0x0,_0x509544),Y(0x1,_0x5eecd3),Y(0x2,_0x2a19f9(_0x5e40a3)),Y(0x3,_0x32452d),Y(0x4,_0x4c7ae7),Y(0x5,_0x2a19f9(_0x5cd3ee))],$i);function ea(_0x1e5361,_0x349538,_0x452fa0,_0x5332c7){const _0x564f93=_0x2353bc;return{'change$':_0x53dd21(_0x1e5361['change$'],_0x452fa0[_0x564f93(0x391)]),'component':bi,get 'labels'(){const _0x5d8ce1=_0x564f93;return{'add':_0x5332c7['t']('bases-dashboard-ui.dashboard.add'),'configure':_0x1ab8e4=>_0x5332c7['t'](_0x5d8ce1(0x233),_0x1ab8e4),'delete':_0x5332c7['t'](_0x5d8ce1(0x305)),'new':_0x5332c7['t'](_0x5d8ce1(0x47f)),'rename':_0x5332c7['t'](_0x5d8ce1(0x259)),'search':_0x5332c7['t'](_0x5d8ce1(0x424)),'section':_0x5332c7['t'](_0x5d8ce1(0x1c4))};},'getItems':_0x3fe205=>{const _0x5c03b4=_0x564f93;let _0x1da4e9=_0x1e5361['getResource'](_0x3fe205);return _0x1da4e9[_0x5c03b4(0x3fe)][_0x5c03b4(0x3bc)](_0x786700=>{const _0x39cf24=_0x5c03b4;let _0x1d4fa2=_0x1da4e9[_0x39cf24(0x370)][_0x786700];return _0x1d4fa2?[{'id':_0x1d4fa2['id'],'name':_0x1d4fa2[_0x39cf24(0x329)],'readonly':!_0x25b5d2(_0x452fa0,_0x3fe205,_0x1d4fa2['id'])}]:[];});},'create':async _0x1a7677=>{const _0x20d530=_0x564f93;let _0x20254f=_0x1e5361[_0x20d530(0x2b1)](_0x1a7677),_0x5c78ca=_0x20d530(0x3a4)+_0x325e5d(0x8),_0x342fb0=ta(_0x20254f[_0x20d530(0x3fe)][_0x20d530(0x3bc)](_0x93b354=>{const _0x36c2aa=_0x20d530;let _0x177a6a=_0x20254f[_0x36c2aa(0x370)][_0x93b354];return _0x177a6a?[_0x177a6a[_0x36c2aa(0x329)]]:[];}),_0xc84da=>_0x5332c7['t'](_0x20d530(0x3e5),String(_0xc84da)));return await _0x349538['executeCommand'](_0x2ef5a6['id'],{'unitId':_0x1a7677,'dashboard':{'id':_0x5c78ca,'name':_0x342fb0,'widgetOrder':[],'widgets':{}}})?_0x5c78ca:null;},'rename':async(_0x1a4e7f,_0x445110,_0x5449d3)=>{const _0x2fa56c=_0x564f93;let _0x1cfe43=_0x1e5361['getDashboard'](_0x1a4e7f,_0x445110);return!!(_0x1cfe43&&await _0x349538[_0x2fa56c(0x1ff)](_0x5cbeb4['id'],{'unitId':_0x1a4e7f,'dashboard':{..._0x1cfe43,'name':_0x5449d3}}));},'remove':(_0xa838f6,_0x105a0d)=>_0x349538[_0x564f93(0x1ff)](_0x22aa0a['id'],{'unitId':_0xa838f6,'dashboardId':_0x105a0d})};}function ta(_0x7e0785,_0x4886f7){const _0x367c21=_0x2353bc;let _0x7d2d26=new Set(_0x7e0785),_0x597ca8=_0x7d2d26['size']+0x1,_0x3b22f9=_0x4886f7(_0x597ca8);for(;_0x7d2d26[_0x367c21(0x30b)](_0x3b22f9);)_0x597ca8+=0x1,_0x3b22f9=_0x4886f7(_0x597ca8);return _0x3b22f9;}let na=class extends _0x52aef1{constructor(_0x3ba2aa=hr,_0x11a7dd,_0x57acaa){const _0x44bdfd=_0x2353bc;super(),this[_0x44bdfd(0x21e)]=_0x3ba2aa,this['_injector']=_0x11a7dd,this['_configService']=_0x57acaa;let {..._0x59ab12}=_0x1731fc({},hr,this[_0x44bdfd(0x21e)]);this['_configService'][_0x44bdfd(0x427)](mr,_0x59ab12);}['onStarting'](){const _0x389bb8=_0x2353bc;this[_0x389bb8(0x2a0)][_0x389bb8(0x1c1)]([kr]),this['_injector'][_0x389bb8(0x1c1)]([Gr]),this['_injector'][_0x389bb8(0x1c1)]([$i]);}['onReady'](){const _0x515597=_0x2353bc;_0x445a23(this[_0x515597(0x2a0)],[[kr],[Gr],[$i]]);}};Pr(na,_0x2353bc(0x393),_0x51ec78['UNIVER_BASE']),Pr(na,_0x2353bc(0x405),_0x2353bc(0x264)),Pr(na,'packageName',fr),Pr(na,_0x2353bc(0x29f),pr),na=Or([_0x4fc5af(_0x38c17a,_0x1615ad,_0x139492,_0x2c95bb,_0x47e249,_0x220c65),Y(0x1,_0x2a19f9(_0x5a8661)),Y(0x2,_0x5a5187)],na);function ra(_0x1be68e,_0x51c02f,_0x11635b,_0x58c686){const _0x2ac0f6=_0x2353bc;let _0x1677a3={..._0x1be68e};if(_0x51c02f[_0x2ac0f6(0x331)]('w')){let _0x4c3571=_0x1be68e['column']+_0x1be68e['columnSpan'];_0x1677a3[_0x2ac0f6(0x39b)]=Math[_0x2ac0f6(0x2eb)](0x0,Math['min'](_0x4c3571-0x1,_0x1be68e[_0x2ac0f6(0x39b)]+_0x11635b)),_0x1677a3[_0x2ac0f6(0x26f)]=_0x4c3571-_0x1677a3[_0x2ac0f6(0x39b)];}else _0x51c02f[_0x2ac0f6(0x331)]('e')&&(_0x1677a3[_0x2ac0f6(0x26f)]=Math[_0x2ac0f6(0x2eb)](0x1,Math[_0x2ac0f6(0x314)](_0x20c9d7-_0x1be68e[_0x2ac0f6(0x39b)],_0x1be68e[_0x2ac0f6(0x26f)]+_0x11635b)));if(_0x51c02f[_0x2ac0f6(0x331)]('n')){let _0x4935c7=_0x1be68e[_0x2ac0f6(0x487)]+_0x1be68e[_0x2ac0f6(0x4b4)];_0x1677a3[_0x2ac0f6(0x487)]=Math[_0x2ac0f6(0x2eb)](0x0,Math[_0x2ac0f6(0x314)](_0x4935c7-0x1,_0x1be68e['row']+_0x58c686)),_0x1677a3['rowSpan']=_0x4935c7-_0x1677a3[_0x2ac0f6(0x487)];}else _0x51c02f[_0x2ac0f6(0x331)]('s')&&(_0x1677a3['rowSpan']=Math[_0x2ac0f6(0x2eb)](0x1,_0x1be68e[_0x2ac0f6(0x4b4)]+_0x58c686));return _0x1677a3;}function ia(_0x3efc54){const _0x3ad088=_0x2353bc;let _0x15ce94=Math['max'](0x1,Math['min'](_0x20c9d7,Math['round'](_0x3efc54[_0x3ad088(0x26f)])));return{'column':Math[_0x3ad088(0x2eb)](0x0,Math['min'](_0x20c9d7-_0x15ce94,Math['round'](_0x3efc54[_0x3ad088(0x39b)]))),'row':Math['max'](0x0,Math['round'](_0x3efc54[_0x3ad088(0x487)])),'columnSpan':_0x15ce94,'rowSpan':Math['max'](0x1,Math[_0x3ad088(0x384)](_0x3efc54[_0x3ad088(0x4b4)]))};}function aa(_0x86400e,_0x264002,_0x591dcc){const _0x389cf2=_0x2353bc;let _0x23306e=new Map(_0x86400e),_0x405b5d=ia(_0x591dcc);_0x23306e[_0x389cf2(0x401)](_0x264002,_0x405b5d);let _0xb20dc0=[[_0x264002,_0x405b5d]];for(let [_0x5440a9,_0x3864be]of _0x23306e){if(_0x5440a9===_0x264002)continue;let _0x22981d=ia(_0x3864be);for(;_0xb20dc0[_0x389cf2(0x464)](([,_0x443eec])=>sa(_0x22981d,_0x443eec));)_0x22981d={..._0x22981d,'row':_0x22981d[_0x389cf2(0x487)]+0x1};for(;_0x22981d[_0x389cf2(0x487)]>0x0;){let _0x127bab={..._0x22981d,'row':_0x22981d[_0x389cf2(0x487)]-0x1};if(_0xb20dc0['some'](([,_0x469f9e])=>sa(_0x127bab,_0x469f9e)))break;_0x22981d=_0x127bab;}_0xb20dc0[_0x389cf2(0x4ec)]([_0x5440a9,_0x22981d]),_0x23306e['set'](_0x5440a9,_0x22981d);}return _0x23306e;}function oa(_0x438988,_0x1f7695,_0xba13d,_0x3ce656=0x38,_0x549e03=0x16){const _0x5a02e3=_0x2353bc;return _0x438988<_0x1f7695+_0x3ce656?-Math[_0x5a02e3(0x30e)](_0x549e03*(0x1-Math[_0x5a02e3(0x2eb)](0x0,_0x438988-_0x1f7695)/_0x3ce656)):_0x438988>_0xba13d-_0x3ce656?Math[_0x5a02e3(0x30e)](_0x549e03*(0x1-Math[_0x5a02e3(0x2eb)](0x0,_0xba13d-_0x438988)/_0x3ce656)):0x0;}function sa(_0x2fec36,_0x1579e4){const _0x5df90c=_0x2353bc;return _0x2fec36[_0x5df90c(0x39b)]<_0x1579e4[_0x5df90c(0x39b)]+_0x1579e4[_0x5df90c(0x26f)]&&_0x2fec36[_0x5df90c(0x39b)]+_0x2fec36[_0x5df90c(0x26f)]>_0x1579e4[_0x5df90c(0x39b)]&&_0x2fec36[_0x5df90c(0x487)]<_0x1579e4[_0x5df90c(0x487)]+_0x1579e4[_0x5df90c(0x4b4)]&&_0x2fec36[_0x5df90c(0x487)]+_0x2fec36[_0x5df90c(0x4b4)]>_0x1579e4['row'];}const ca=[{'direction':'nw','className':_0x2353bc(0x2dc)},{'direction':'n','className':_0x2353bc(0x3a0)},{'direction':'ne','className':'univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize'},{'direction':'e','className':_0x2353bc(0x364)},{'direction':'se','className':_0x2353bc(0x3eb)},{'direction':'s','className':_0x2353bc(0x496)},{'direction':'sw','className':'univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize'},{'direction':'w','className':_0x2353bc(0x2af)}];function la({dashboard:_0x429c50,dragLabel:_0x1520c4,editable:_0x3ff6ea=!0x0,onLayoutsCommit:_0x246b0f,onSelectWidget:_0x371d18,renderWidget:_0xd856c4,renderWidgetActions:_0x5584c9,resizeLabel:_0x347697,selectedWidgetId:_0x1ebf59,widgetLabel:_0x40819c}){const _0xab83dd=_0x2353bc;let _0x402d55=_0x35f949(null),_0x581412=_0x35f949(null),[_0x413c2b,_0x2f616f]=_0x2be63d(!0x1),_0x470b0a=_0x56a185(()=>new Map(_0x429c50[_0xab83dd(0x362)][_0xab83dd(0x3bc)](_0x516be2=>{const _0x4f71ae=_0xab83dd;let _0x1ddb18=_0x429c50['widgets'][_0x516be2];return _0x1ddb18?[[_0x516be2,_0x1ddb18[_0x4f71ae(0x439)]]]:[];})),[_0x429c50]),[_0x7a1e79,_0x413836]=_0x2be63d(_0x470b0a);_0x38e78f(()=>{const _0xd72bb2=_0xab83dd;_0x581412[_0xd72bb2(0x38f)]||_0x413836(_0x470b0a);},[_0x470b0a]),_0x38e78f(()=>{const _0x4fc63d=_0xab83dd;if(!_0x413c2b)return;let _0xef4e54=_0x490e2d=>{const _0x2b45f4=_0x1cf6;let _0x180427=_0x402d55['current'];if(!_0x180427)return null;let _0x6d2fc5=_0x180427['getBoundingClientRect'](),_0x13c08b=Math[_0x2b45f4(0x2eb)](0x1,(_0x6d2fc5[_0x2b45f4(0x3c9)]-0x8*(_0x20c9d7-0x1))/_0x20c9d7),_0x69dbd7=Math[_0x2b45f4(0x384)]((_0x180427[_0x2b45f4(0x425)]-_0x490e2d['startScrollTop'])/(_0x50185b+0x8)),_0xb8c393=Math['round']((_0x490e2d['pointerX']-_0x490e2d[_0x2b45f4(0x210)])/(_0x13c08b+0x8)),_0x4ccba6=Math[_0x2b45f4(0x384)]((_0x490e2d[_0x2b45f4(0x1f3)]-_0x490e2d[_0x2b45f4(0x497)])/(_0x50185b+0x8))+_0x69dbd7,_0x171b4c=_0x490e2d[_0x2b45f4(0x224)]===_0x2b45f4(0x27a)?{..._0x490e2d['initial'],'column':_0x490e2d['initial']['column']+_0xb8c393,'row':_0x490e2d['initial']['row']+_0x4ccba6}:ra(_0x490e2d[_0x2b45f4(0x38b)],_0x490e2d[_0x2b45f4(0x315)]??'se',_0xb8c393,_0x4ccba6),_0x9652d9=aa(_0x490e2d[_0x2b45f4(0x462)],_0x490e2d['id'],_0x171b4c);return _0x413836(_0x9652d9),_0x9652d9;},_0x2ce3f6=_0x22df99=>{const _0x1a5457=_0x1cf6;let _0x4b2b9e=_0x581412[_0x1a5457(0x38f)];if(!_0x4b2b9e)return;let _0x547451={..._0x4b2b9e,'pointerX':_0x22df99[_0x1a5457(0x283)],'pointerY':_0x22df99[_0x1a5457(0x408)]};_0x581412[_0x1a5457(0x38f)]=_0x547451;},_0x37375b=()=>{const _0x391de5=_0x1cf6;let _0x37b7de=_0x581412['current'],_0xe3eb0c=_0x37b7de?_0xef4e54(_0x37b7de):null;_0x581412[_0x391de5(0x38f)]=null,_0x2f616f(!0x1),_0xe3eb0c&&_0x246b0f(_0xe3eb0c);},_0x1afcc7=0x0,_0x24c200=()=>{const _0x90eb5b=_0x1cf6;let _0x890fc=_0x402d55[_0x90eb5b(0x38f)],_0x5ee0b2=_0x581412['current'];if(_0x890fc&&_0x5ee0b2){let _0x3140d6=_0x890fc[_0x90eb5b(0x4db)](),_0x74a1f1=oa(_0x5ee0b2[_0x90eb5b(0x1f3)],_0x3140d6[_0x90eb5b(0x45e)],_0x3140d6[_0x90eb5b(0x2d0)]);_0x74a1f1!==0x0&&(_0x890fc[_0x90eb5b(0x425)]+=_0x74a1f1),_0xef4e54(_0x5ee0b2),_0x1afcc7=requestAnimationFrame(_0x24c200);}};return _0x1afcc7=requestAnimationFrame(_0x24c200),window[_0x4fc63d(0x1d1)](_0x4fc63d(0x1e7),_0x2ce3f6),window[_0x4fc63d(0x1d1)](_0x4fc63d(0x322),_0x37375b),()=>{const _0x1ea24d=_0x4fc63d;cancelAnimationFrame(_0x1afcc7),window[_0x1ea24d(0x27d)](_0x1ea24d(0x1e7),_0x2ce3f6),window[_0x1ea24d(0x27d)](_0x1ea24d(0x322),_0x37375b);};},[_0x413c2b,_0x246b0f]);let _0x19f547=Math[_0xab83dd(0x2eb)](0x8,...Array[_0xab83dd(0x4ce)](_0x7a1e79['values']())[_0xab83dd(0x3ff)](_0xb6d4cd=>_0xb6d4cd[_0xab83dd(0x487)]+_0xb6d4cd[_0xab83dd(0x4b4)])),_0x2e0942=(_0x286824,_0x1ec0cb,_0x43b489,_0x4b90c0)=>{const _0xf9a2ee=_0xab83dd;_0x286824[_0xf9a2ee(0x3ca)](),_0x286824[_0xf9a2ee(0x1de)]();let _0x308175=_0x402d55['current'],_0xe79e79={'id':_0x1ec0cb['id'],'mode':_0x43b489,'pointerX':_0x286824[_0xf9a2ee(0x283)],'pointerY':_0x286824[_0xf9a2ee(0x408)],'startX':_0x286824[_0xf9a2ee(0x283)],'startY':_0x286824['clientY'],'startScrollTop':(_0x308175==null?void 0x0:_0x308175[_0xf9a2ee(0x425)])??0x0,'initial':_0x7a1e79[_0xf9a2ee(0x2f0)](_0x1ec0cb['id'])??_0x1ec0cb[_0xf9a2ee(0x439)],'initialLayouts':new Map(_0x7a1e79),'resizeDirection':_0x4b90c0};_0x581412['current']=_0xe79e79,_0x2f616f(!0x0);};return _0x4dabb7('div',{'ref':_0x402d55,'data-dashboard-scroll-container':!0x0,'className':_0x52fed8(_0xab83dd(0x338),_0x2a22a5),'onClick':_0x3ff6ea?_0x56c7e9=>{const _0x27cacc=_0xab83dd;if(!(_0x56c7e9['target']instanceof Node)||!_0x56c7e9[_0x27cacc(0x250)][_0x27cacc(0x275)](_0x56c7e9[_0x27cacc(0x344)]))return;let _0x84181=_0x56c7e9['target']instanceof Element?_0x56c7e9['target']:_0x56c7e9[_0x27cacc(0x344)][_0x27cacc(0x45a)];_0x84181!=null&&_0x84181[_0x27cacc(0x304)](_0x27cacc(0x481))||_0x371d18==null||_0x371d18();}:void 0x0,'children':_0x4dabb7('div',{'data-dashboard-grid':!0x0,'className':_0xab83dd(0x1d7),'style':{'gap':0x8,'gridAutoRows':_0x50185b,'minHeight':_0x19f547*(_0x50185b+0x8)},'children':_0x429c50['widgetOrder'][_0xab83dd(0x3ff)](_0x322fa2=>{const _0x36d00f=_0xab83dd;var _0x2b68bb;let _0x2fdd67=_0x429c50[_0x36d00f(0x4e1)][_0x322fa2],_0xad4033=_0x7a1e79[_0x36d00f(0x2f0)](_0x322fa2);return!_0x2fdd67||!_0xad4033?null:_0x2b00c1(_0x36d00f(0x386),{'data-dashboard-widget':_0x2fdd67['id'],'aria-label':_0x2fdd67[_0x36d00f(0x448)]??_0x40819c(_0x2fdd67),'className':_0x52fed8(_0x36d00f(0x2f1),_0x2fdd67[_0x36d00f(0x393)]===_0x342116[_0x36d00f(0x4ae)]||_0x2fdd67[_0x36d00f(0x393)]===_0x342116['FormulaShape']?_0x36d00f(0x382):_0x36d00f(0x3d3),_0x3ff6ea&&_0x1ebf59===_0x2fdd67['id']?_0x36d00f(0x30f):_0x36d00f(0x357)),'style':{'gridColumn':_0xad4033[_0x36d00f(0x39b)]+0x1+_0x36d00f(0x35e)+_0xad4033[_0x36d00f(0x26f)],'gridRow':_0xad4033[_0x36d00f(0x487)]+0x1+_0x36d00f(0x35e)+_0xad4033['rowSpan']},'tabIndex':_0x3ff6ea?0x0:void 0x0,'onClick':_0x3ff6ea?()=>_0x371d18==null?void 0x0:_0x371d18(_0x2fdd67['id']):void 0x0,'onFocus':_0x3ff6ea?()=>_0x371d18==null?void 0x0:_0x371d18(_0x2fdd67['id']):void 0x0,'children':[_0x3ff6ea&&_0x4dabb7(_0x36d00f(0x228),{'type':_0x36d00f(0x228),'aria-label':_0x1520c4,'data-dashboard-drag-handle':_0x2fdd67['id'],'className':_0x52fed8('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',_0x413c2b&&((_0x2b68bb=_0x581412[_0x36d00f(0x38f)])==null?void 0x0:_0x2b68bb['id'])===_0x2fdd67['id']&&_0x581412[_0x36d00f(0x38f)][_0x36d00f(0x224)]===_0x36d00f(0x27a)?'univer-cursor-grabbing':_0x36d00f(0x2c5)),'onPointerDown':_0x529d3e=>_0x2e0942(_0x529d3e,_0x2fdd67,_0x36d00f(0x27a)),'children':_0x4dabb7(_0x1487d8,{'className':_0x36d00f(0x40c),'aria-hidden':_0x36d00f(0x1d5)})}),_0x3ff6ea&&_0x4dabb7('div',{'className':_0x36d00f(0x2f3),'children':_0x5584c9==null?void 0x0:_0x5584c9(_0x2fdd67)}),_0x4dabb7(_0x36d00f(0x442),{'className':_0x36d00f(0x2b7),'children':_0xd856c4(_0x2fdd67)}),_0x3ff6ea&&ca[_0x36d00f(0x3ff)](({className:_0x39ff2a,direction:_0x3af055})=>{const _0x1c858a=_0x36d00f;let _0x5745a6=_0x3af055[_0x1c858a(0x4da)]===0x2;return _0x4dabb7(_0x1c858a(0x228),{'type':_0x1c858a(0x228),'aria-label':_0x347697,'data-dashboard-resize-handle':_0x3af055,'data-dashboard-resize-control':_0x5745a6?_0x3af055:void 0x0,'data-dashboard-resize-edge':_0x5745a6?void 0x0:_0x3af055,'className':_0x52fed8(_0x1c858a(0x42d),_0x5745a6?_0x1c858a(0x1cf):_0x1c858a(0x3cc),_0x39ff2a,_0x1ebf59===_0x2fdd67['id']&&'univer-pointer-events-auto\x20univer-opacity-100'),'onPointerDown':_0x547b2f=>_0x2e0942(_0x547b2f,_0x2fdd67,_0x1c858a(0x220),_0x3af055)},_0x3af055);})]},_0x2fdd67['id']);})})});}var ua;const Q={'axis':{..._0x5caca4,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x26697d,'heatmap':_0x296680,'indicatorLine':_0x195779,'legend':_0x4fe0eb,'lineAndArea':_0x499ec0,'pareto':_0x4cf110,'pie':_0x1db8a1,'radar':_0x35ac4f,'relation':{..._0x2da675,'useValueAsSymbolSize':!0x0},'series':{..._0x396e30,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((ua=_0x46c996['allSeriesStyle'])==null?void 0x0:ua[_0x2353bc(0x2c6)])??!0x1}},'style':_0x5792d9,'titles':_0x21806e,'trendline':_0x563c89,'waterfall':{..._0x2c231e,'useSubtotal':!0x0},'waterfallStyle':_0x31f02c,'wordCloud':_0x8c0c35},da=[_0x3414f3[_0x2353bc(0x4ef)],_0x3414f3['Radar'],_0x3414f3['WordCloud'],_0x3414f3['Scatter'],_0x3414f3[_0x2353bc(0x4f5)],_0x3414f3[_0x2353bc(0x3dd)],_0x3414f3[_0x2353bc(0x46c)],_0x3414f3['Heatmap'],_0x3414f3[_0x2353bc(0x2d1)],_0x3414f3[_0x2353bc(0x1fe)],_0x3414f3['Histogram'],_0x3414f3['Treemap'],_0x3414f3['Sunburst'],_0x3414f3[_0x2353bc(0x494)],_0x3414f3[_0x2353bc(0x2e4)]];function fa(_0x3eb10e){const _0x5e8fcd=_0x2353bc;let {config:_0x486f6d,onChange:_0x30d33c,runtime:_0x2ac1d1,tableName:_0x595b6c}=_0x3eb10e,_0x5d8ef4=_0x39b411(Gr),_0x28dc6d=_0x39b411(_0x5cd3ee),[_0x482840,_0x53d767]=_0x2be63d(_0x139866['Data']),_0x2ba712=_0x56a185(()=>new _0x29d554(_0x2ac1d1[_0x5e8fcd(0x37a)],{'commit':_0x44ac9a=>{const _0x1867e3=_0x5e8fcd;var _0x6f1ac5;let _0x14ab0e=_0x2ac1d1[_0x1867e3(0x37a)],_0x438cbd=_0x485197(_0x44ac9a,{'series':(_0x6f1ac5=_0x14ab0e[_0x1867e3(0x4e8)])==null?void 0x0:_0x6f1ac5['series'],'currentChartType':_0x14ab0e[_0x1867e3(0x3e2)],'currentStyle':_0x14ab0e['style'],'currentContext':_0x14ab0e[_0x1867e3(0x1af)],'currentDataAggregation':_0x14ab0e[_0x1867e3(0x3b9)]});_0x30d33c({'chart':pa(_0x486f6d[_0x1867e3(0x4d8)],_0x438cbd)});}}),[_0x486f6d[_0x5e8fcd(0x4d8)],_0x30d33c,_0x2ac1d1]),_0xfbcda5=_0x56a185(()=>_0x2dbfb8(_0x170e20['map'](_0x4777b2=>({..._0x4777b2,'label':_0x28dc6d['t'](_a(_0x4777b2[_0x5e8fcd(0x1a8)]))}))),[_0x28dc6d]);return _0x4dabb7(_0x4bacfa,{'chartUIService':_0x5d8ef4,'hostAdapter':_0x2ba712,'children':_0x2b00c1(_0x5e8fcd(0x442),{'className':_0x5e8fcd(0x450),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x28dc6d['t'](_0x5e8fcd(0x3d4)),'className':_0x5e8fcd(0x410),'items':[{'label':_0x28dc6d['t'](_0x5e8fcd(0x466)),'panelId':_0x5e8fcd(0x45d),'value':_0x139866[_0x5e8fcd(0x1df)]},{'label':_0x28dc6d['t'](_0x5e8fcd(0x33f)),'panelId':_0x5e8fcd(0x311),'value':_0x139866[_0x5e8fcd(0x352)]}],'value':_0x482840,'onChange':_0x53d767}),_0x482840===_0x139866['Data']?_0x4dabb7(_0x3812e6,{'id':'base-pivot-chart-setup','label':_0x28dc6d['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x2b00c1(_0x5e8fcd(0x442),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x4dabb7(_0x195039,{'options':_0xfbcda5}),_0x4dabb7(_0x3eaf0a,{}),_0x4dabb7(_0x1603db,{}),_0x4dabb7(ma,{}),_0x4dabb7(_0x3210ae,{}),_0x2b00c1(_0x5e8fcd(0x442),{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x28dc6d['t'](_0x5e8fcd(0x2da))}),_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x595b6c})]}),_0x4dabb7(_0x26c1b7,{'orientationControl':_0x4dabb7(_0x1b3e3b,{'size':_0x5e8fcd(0x432),'onClick':()=>_0x30d33c({'chart':{..._0x486f6d[_0x5e8fcd(0x4d8)],'orient':_0x486f6d['chart'][_0x5e8fcd(0x485)]===_0x5e8fcd(0x487)?_0x5e8fcd(0x39b):'row'}}),'children':_0x28dc6d['t']('bases-dashboard-ui.chart.common.switchRowColumn')})}),_0x4dabb7(_0x45db86,{}),_0x4dabb7(_0x4e37ce,{'defaultValues':Q[_0x5e8fcd(0x2fd)]}),_0x2b00c1('div',{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x28dc6d['t'](_0x5e8fcd(0x470))}),_0x4dabb7(_0xce6b1b,{'value':_0x486f6d[_0x5e8fcd(0x4a6)],'options':[{'value':_0x5e8fcd(0x330),'label':_0x28dc6d['t'](_0x5e8fcd(0x3c6))},{'value':_0x5e8fcd(0x4d8),'label':_0x28dc6d['t'](_0x5e8fcd(0x3c7))},{'value':_0x5e8fcd(0x4bb),'label':_0x28dc6d['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x38503b=>{const _0x485e1d=_0x5e8fcd;(_0x38503b===_0x485e1d(0x330)||_0x38503b===_0x485e1d(0x4d8)||_0x38503b===_0x485e1d(0x4bb))&&_0x30d33c({'displayMode':_0x38503b});}})]})]})}):_0x4dabb7(_0x3812e6,{'id':'base-pivot-chart-style','label':_0x28dc6d['t'](_0x5e8fcd(0x33f)),'children':_0x4dabb7(ha,{})})]})});}function pa(_0x3db5a4,_0x19e117){const _0x10f3df=_0x2353bc;return{..._0x3db5a4,'type':_0x19e117[_0x10f3df(0x3e2)]??_0x3db5a4['type'],'style':_0x19e117[_0x10f3df(0x3f1)]??_0x3db5a4[_0x10f3df(0x3f1)],'context':_0x19e117[_0x10f3df(0x1af)]??_0x3db5a4['context'],'dataAggregation':_0x19e117[_0x10f3df(0x3b9)]??_0x3db5a4[_0x10f3df(0x3b9)]};}function ma(){const _0xd1cc0=_0x2353bc;let _0x2e4890=_0x1f2e67();return _0x4dabb7(_0x34de73,{'visible':da[_0xd1cc0(0x498)](_0xab9aab=>!_0x4c5ed5[_0xd1cc0(0x20b)](_0x2e4890,_0xab9aab))});}function $(_0x55758e){const _0x4c67ff=_0x2353bc;return _0x2b00c1(_0x1358f8,{'id':_0x55758e['id'],'children':[_0x4dabb7(_0x352fb4,{'children':_0x55758e[_0x4c67ff(0x3b0)]}),_0x4dabb7(_0xaf7aad,{'children':_0x55758e[_0x4c67ff(0x4a0)]})]});}function ha(){const _0x5beea5=_0x2353bc;let _0x11faa3=_0x39b411(_0x5cd3ee),_0x80a800=_0x1f2e67(),_0x212c5e=_0x51b799(),[_0x1af09c,_0x7f8022]=_0x2be63d(null),_0x341540=_0x4c5ed5['baseOn'](_0x80a800,_0x3414f3[_0x5beea5(0x1b1)]),_0x3a5efc=_0x80a800===_0x3414f3[_0x5beea5(0x4e4)],_0x45ab49=_0x80a800===_0x3414f3[_0x5beea5(0x297)],_0x5f0d27=_0x80a800===_0x3414f3['Funnel'],_0x2d6f7e=_0x4c5ed5[_0x5beea5(0x20b)](_0x80a800,_0x3414f3[_0x5beea5(0x2ae)]),_0x3e202f=_0x80a800===_0x3414f3['Relation'],_0x44cde6=_0x80a800===_0x3414f3[_0x5beea5(0x24f)],_0x4e5145=_0x80a800===_0x3414f3['Pareto'],_0x29edce=_0x80a800===_0x3414f3['Heatmap'],_0x2e8a88=_0x326a9b(_0x80a800,_0x1958f1[_0x5beea5(0x270)])&&!_0x2d6f7e&&!_0x4e5145,_0xe7ba27=ga(_0x80a800,_0x11faa3);return _0x2b00c1(_0x28ef86,{'value':_0x1af09c,'onChange':_0x7f8022,'children':[_0x4dabb7($,{'id':_0x8fe1f1['ChartStyle'],'label':_0x11faa3['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0x4dabb7(_0x466794,{'defaultValues':Q[_0x5beea5(0x3f1)]})}),_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x1d9)],'label':_0x11faa3['t'](_0x5beea5(0x406)),'children':_0x4dabb7(_0xe815e7,{'commitMode':_0x5beea5(0x453),'defaultValues':Q[_0x5beea5(0x262)]})}),_0x2e8a88&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x484)],'label':_0x11faa3['t'](_0x5beea5(0x1a9)),'children':_0x4dabb7(_0x3bcbff,{'defaultValues':Q[_0x5beea5(0x418)],'NumberFormatField':_0x2f8e19})}),_0x44cde6&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x1d6)],'label':_0x11faa3['t'](_0x5beea5(0x2c4)),'children':_0x4dabb7(_0x217c37,{'defaultValues':Q['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x11f305,target:_0x132ba0})=>_0x132ba0===_0x6a9b13[_0x5beea5(0x1d3)]?_0x11faa3['t']('bases-dashboard-ui.chart.waterfall.subtotal'):_0x11f305?_0x11f305+'-('+_0x11faa3['t']('bases-dashboard-ui.chart.'+(_0x132ba0===_0x6a9b13[_0x5beea5(0x428)]?_0x5beea5(0x507):_0x5beea5(0x3a8)))+')':'','NumberFormatField':_0x2f8e19})}),_0x4e5145&&_0x2b00c1(_0xa1bb43,{'children':[_0x4dabb7($,{'id':_0x8fe1f1['ParetoBarSeries'],'label':_0x11faa3['t'](_0x5beea5(0x1cb)),'children':_0x4dabb7(_0x35a412,{'defaultValues':Q[_0x5beea5(0x340)],'NumberFormatField':_0x2f8e19,'showDataPointEditor':!0x0,'target':'barStyle'})}),_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x4c5)],'label':_0x11faa3['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':_0x4dabb7(_0x35a412,{'defaultValues':Q['pareto'],'NumberFormatField':_0x2f8e19,'showDataPointEditor':!0x1,'target':_0x5beea5(0x1e3)})})]}),_0x341540&&_0x4dabb7($,{'id':_0x8fe1f1['PieStyle'],'label':_0x11faa3['t'](_0x5beea5(0x49b)),'children':_0x4dabb7(_0x34a105,{'defaultValues':Q[_0x5beea5(0x477)],'NumberFormatField':_0x2f8e19})}),_0x45ab49&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x297)],'label':_0x11faa3['t'](_0x5beea5(0x2ba)),'children':_0x4dabb7(_0x5ac713,{'defaultValues':Q['wordCloud']})}),_0x3a5efc&&_0x4dabb7($,{'id':_0x8fe1f1['Radar'],'label':_0x11faa3['t']('bases-dashboard-ui.chart.section.radar'),'children':_0x4dabb7(_0x4c7c71,{'defaultValues':Q[_0x5beea5(0x3f0)]})}),_0x5f0d27&&_0x4dabb7($,{'id':_0x8fe1f1['Funnel'],'label':_0x11faa3['t']('bases-dashboard-ui.chart.section.funnel'),'children':_0x4dabb7(_0x666ad2,{'defaultValues':Q[_0x5beea5(0x480)],'gapControl':_0x5beea5(0x465)})}),_0x29edce&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x20d)],'label':_0x11faa3['t'](_0x5beea5(0x2c2)),'children':_0x4dabb7(_0x3c01f2,{'defaultValues':Q[_0x5beea5(0x300)]})}),_0x3e202f&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x3dd)],'label':_0x11faa3['t'](_0x5beea5(0x476)),'children':_0x4dabb7(_0x11ce9e,{'defaultValues':Q[_0x5beea5(0x363)]})}),_0x59d745(_0x80a800)&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x4e5)],'label':_0x11faa3['t'](_0x5beea5(0x4ab)),'children':_0x4dabb7(_0x457b13,{'defaultValues':Q[_0x5beea5(0x39a)],'lineStyleControl':'segmented'})}),_0x326a9b(_0x80a800,_0x1958f1[_0x5beea5(0x3b8)])&&_0x4dabb7($,{'id':_0x8fe1f1['Legend'],'label':_0x11faa3['t'](_0x5beea5(0x4d5)),'children':_0x4dabb7(_0x1dc64f,{'defaultValues':Q[_0x5beea5(0x508)]})}),_0x326a9b(_0x80a800,_0x1958f1[_0x5beea5(0x313)])&&_0x2b00c1(_0xa1bb43,{'children':[_0x4dabb7($,{'id':_0x8fe1f1['HorizontalAxis'],'label':_0x11faa3['t'](_0x5beea5(0x26b)),'children':_0x4dabb7(_0x185c32,{'axis':'x','defaultValues':Q[_0x5beea5(0x310)],'NumberFormatField':_0x2f8e19})}),_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x488)],'label':_0x11faa3['t'](_0x5beea5(0x1ec)),'children':_0x4dabb7(_0x185c32,{'axis':'y','defaultValues':Q['axis'],'NumberFormatField':_0x2f8e19})}),_0x212c5e&&_0x4dabb7($,{'id':_0x8fe1f1['RightVerticalAxis'],'label':_0x11faa3['t'](_0x5beea5(0x374)),'children':_0x4dabb7(_0x185c32,{'axis':'rightY','defaultValues':Q['axis'],'NumberFormatField':_0x2f8e19})}),_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x1ee)],'label':_0x11faa3['t'](_0x5beea5(0x261)),'children':_0x4dabb7(_0x1f6674,{'defaultValues':Q[_0x5beea5(0x310)]})})]}),_0x326a9b(_0x80a800,_0x1958f1[_0x5beea5(0x223)])&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x223)],'label':_0x11faa3['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x4dabb7(_0x5f2295,{'defaultValues':Q[_0x5beea5(0x24d)]})}),_0xae124c(_0x80a800)&&_0x4dabb7($,{'id':_0x8fe1f1['Trendline'],'label':_0x11faa3['t'](_0x5beea5(0x387)),'children':_0x4dabb7(_0x3c8ddd,{'defaultValues':Q[_0x5beea5(0x23c)]})}),_0xe7ba27&&_0x4dabb7($,{'id':_0xe7ba27['id'],'label':_0xe7ba27['label'],'children':_0x4dabb7(_0x5d0cdf,{})})]});}function ga(_0x19bc19,_0x3c9d36){const _0x101916=_0x2353bc;let _0x5882a1={[_0x3414f3[_0x101916(0x1fe)]]:{'id':_0x8fe1f1[_0x101916(0x1fe)],'localeKey':_0x101916(0x1db)},[_0x3414f3['Histogram']]:{'id':_0x8fe1f1[_0x101916(0x242)],'localeKey':_0x101916(0x255)},[_0x3414f3[_0x101916(0x3aa)]]:{'id':_0x8fe1f1[_0x101916(0x3aa)],'localeKey':'bases-dashboard-ui.chart.section.treemap'},[_0x3414f3[_0x101916(0x366)]]:{'id':_0x8fe1f1[_0x101916(0x366)],'localeKey':_0x101916(0x495)},[_0x3414f3[_0x101916(0x494)]]:{'id':_0x8fe1f1[_0x101916(0x494)],'localeKey':'bases-dashboard-ui.chart.section.gauge'},[_0x3414f3[_0x101916(0x2e4)]]:{'id':_0x8fe1f1['Chord'],'localeKey':_0x101916(0x37c)}}[_0x19bc19];return _0x5882a1?{'id':_0x5882a1['id'],'label':_0x3c9d36['t'](_0x5882a1[_0x101916(0x353)])}:null;}function _a(_0xf1576a){const _0x377113=_0x2353bc;return _0x377113(0x317)+_0xf1576a;}function va({onChange:_0x346ca5,onEditData:_0x1df637,runtime:_0x5023bf,sourceChart:_0x3759eb,sourceName:_0x1c155c,widget:_0x4fb5f1}){const _0x1c008b=_0x2353bc;let _0x19f0dc=_0x39b411(Gr),_0x4648cc=_0x39b411(_0x5cd3ee),[_0xf25e52,_0x52db5c]=_0x2be63d(_0x139866[_0x1c008b(0x1df)]),_0x54e5d2=_0x4fb5f1['chart']??_0x3759eb,_0x34e1bc=_0x56a185(()=>new _0x29d554(_0x5023bf[_0x1c008b(0x37a)],{'commit':_0x23f344=>{const _0x3f532e=_0x1c008b;var _0x2adb6a;let _0x37d912=_0x5023bf['model'],_0x34048a=_0x485197(_0x23f344,{'series':(_0x2adb6a=_0x37d912['config'])==null?void 0x0:_0x2adb6a[_0x3f532e(0x418)],'currentChartType':_0x37d912[_0x3f532e(0x3e2)],'currentStyle':_0x37d912[_0x3f532e(0x3f1)],'currentContext':_0x37d912['context'],'currentDataAggregation':_0x37d912[_0x3f532e(0x3b9)]});_0x346ca5({..._0x4fb5f1,'chart':pa(_0x54e5d2,_0x34048a)})[_0x3f532e(0x3d2)](()=>void 0x0);}}),[_0x54e5d2,_0x346ca5,_0x5023bf,_0x4fb5f1]),_0x5c18b1=_0x56a185(()=>_0x2dbfb8(_0x170e20[_0x1c008b(0x3ff)](_0x1283f3=>({..._0x1283f3,'label':_0x4648cc['t'](ya(_0x1283f3[_0x1c008b(0x1a8)]))}))),[_0x4648cc]);return _0x4dabb7(_0x4bacfa,{'chartUIService':_0x19f0dc,'hostAdapter':_0x34e1bc,'children':_0x2b00c1(_0x1c008b(0x442),{'data-dashboard-chart-inspector':!0x0,'className':_0x1c008b(0x2f2),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x4648cc['t'](_0x1c008b(0x3d4)),'className':_0x1c008b(0x410),'items':[{'label':_0x4648cc['t'](_0x1c008b(0x466)),'panelId':_0x1c008b(0x295),'value':_0x139866['Data']},{'label':_0x4648cc['t'](_0x1c008b(0x33f)),'panelId':_0x1c008b(0x46d),'value':_0x139866['Style']}],'value':_0xf25e52,'onChange':_0x52db5c}),_0xf25e52===_0x139866[_0x1c008b(0x1df)]?_0x4dabb7(_0x3812e6,{'id':_0x1c008b(0x295),'label':_0x4648cc['t'](_0x1c008b(0x466)),'children':_0x2b00c1(_0x1c008b(0x442),{'className':_0x1c008b(0x4e3),'children':[_0x4dabb7(_0x195039,{'options':_0x5c18b1}),_0x4dabb7(_0x3eaf0a,{}),_0x4dabb7(_0x1603db,{}),_0x4dabb7(ma,{}),_0x4dabb7(_0x3210ae,{}),_0x2b00c1(_0x1c008b(0x442),{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x4648cc['t']('bases-dashboard-ui.dashboardInspector.dataSource')}),_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x1c155c}),_0x4dabb7(_0x1b3e3b,{'className':_0x1c008b(0x25f),'onClick':_0x1df637,'children':_0x4648cc['t'](_0x1c008b(0x2e0))})]})]})}):_0x4dabb7(_0x3812e6,{'id':_0x1c008b(0x46d),'label':_0x4648cc['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x4dabb7(ha,{})})]})});}function ya(_0x2e5a8d){const _0x5b16c8=_0x2353bc;return _0x5b16c8(0x317)+_0x2e5a8d;}const ba=['general',_0x2353bc(0x3c4),_0x2353bc(0x327),_0x2353bc(0x241),_0x2353bc(0x39e),'compact'];function xa({base:_0x266779,onChange:_0xbda0fa,onSelectBackgroundImage:_0x4465dc,widget:_0x31d0fe}){const _0x16db93=_0x2353bc;var _0x3d36ed;let _0x402626=_0x39b411(_0x5cd3ee),_0x53c740=_0x39b411(_0x277079),_0x198db0=_0x499abf(()=>_0x53c740[_0x16db93(0x227)],_0x53c740[_0x16db93(0x2d8)](),!0x1,[_0x53c740]),_0x704b8b=_0x499abf(()=>_0x53c740['darkMode$'],_0x53c740['darkMode'],!0x1,[_0x53c740]),[_0x3d3ef6,_0x43142f]=_0x2be63d(_0x16db93(0x4b1)),[_0x273223,_0x51ddcd]=_0x2be63d(!0x1),_0x5e6a5f=xr(_0x31d0fe),_0x1eeb23=_0x266779['getSnapshot']()[_0x16db93(0x39c)][_0x31d0fe[_0x16db93(0x475)]],_0x32e218=_0x1eeb23==null?void 0x0:_0x1eeb23[_0x16db93(0x411)][_0x16db93(0x397)](_0x867f5e=>_0x1eeb23[_0x16db93(0x451)][_0x867f5e]),_0x4108a8=_0x32e218?_0x1eeb23==null?void 0x0:_0x1eeb23['views'][_0x32e218]:void 0x0,_0x378d89=_0x1eeb23&&_0x4108a8?_0x57cd99(_0x266779[_0x16db93(0x3f5)](),_0x1eeb23,_0x4108a8)['map'](_0x34fb78=>({..._0x34fb78,'current':!0x1})):[],_0x5c4973=((_0x3d36ed=_0x31d0fe[_0x16db93(0x1d8)][_0x16db93(0x3e3)])==null?void 0x0:_0x3d36ed[_0x16db93(0x274)])??'',_0x179e87=_0x3eb206=>_0xbda0fa(Sr(_0x31d0fe,_0x3eb206))['catch'](()=>void 0x0),_0x5884e0=_0x2b9d0b=>_0xbda0fa({..._0x31d0fe,'description':_0x2b9d0b})['catch'](()=>void 0x0);return _0x2b00c1(_0x16db93(0x442),{'data-dashboard-formula-inspector':!0x0,'className':_0x16db93(0x2f2),'children':[_0x4dabb7(_0x116fe9,{'className':_0x16db93(0x346),'items':[{'value':'data','label':_0x402626['t'](_0x16db93(0x1dd))},{'value':_0x16db93(0x3f1),'label':_0x402626['t'](_0x16db93(0x2ac))}],'value':_0x3d3ef6,'onChange':_0x43142f}),_0x4dabb7(_0x16db93(0x442),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0x3d3ef6==='data'?_0x2b00c1(_0x16db93(0x442),{'className':_0x16db93(0x4e0),'children':[_0x4dabb7(Sa,{'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.description'),'children':_0x4dabb7(_0x2c53ee,{'value':_0x31d0fe['description']??_0x31d0fe['title']??'','onChange':_0x5884e0,'onBlur':_0x2fb235=>_0x5884e0(_0x2fb235['target'][_0x16db93(0x284)])})}),_0x4dabb7(Sa,{'label':_0x402626['t'](_0x16db93(0x31b)),'children':_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':(_0x1eeb23==null?void 0x0:_0x1eeb23['name'])??_0x402626['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})}),_0x2b00c1(Sa,{'label':_0x402626['t'](_0x16db93(0x222)),'children':[_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x1b3454(_0x5c4973,_0x378d89)}),_0x4dabb7(_0x1b3e3b,{'className':_0x16db93(0x25f),'onClick':()=>_0x51ddcd(!0x0),'children':_0x402626['t'](_0x16db93(0x460))})]})]}):_0x2b00c1('div',{'className':_0x16db93(0x4e0),'children':[_0x4dabb7(_0x38703b,{'emptyLabel':_0x402626['t'](_0x16db93(0x245)),'label':_0x402626['t'](_0x16db93(0x245)),'pickerFallbackValue':_0x704b8b?_0x198db0[_0x16db93(0x433)][0x384]:_0x198db0[_0x16db93(0x433)][0x0],'resetLabel':_0x402626['t'](_0x16db93(0x449)),'value':_0x5e6a5f[_0x16db93(0x394)]??null,'onChange':_0x396117=>_0x179e87({'backgroundColor':_0x396117??void 0x0})}),_0x2b00c1(Sa,{'label':_0x402626['t'](_0x16db93(0x267)),'children':[_0x2b00c1(_0x16db93(0x442),{'className':_0x16db93(0x4cf),'children':[_0x2b00c1(_0x1b3e3b,{'className':_0x16db93(0x342),'onClick':()=>{const _0x1277ff=_0x16db93;_0x4465dc()[_0x1277ff(0x388)](_0x2f011b=>{const _0x187ac4=_0x1277ff;if(_0x2f011b){var _0x12a9ee;return _0x179e87({'backgroundImage':{..._0x2f011b,'fit':((_0x12a9ee=_0x5e6a5f['backgroundImage'])==null?void 0x0:_0x12a9ee['fit'])??_0x187ac4(0x3d5)}});}})[_0x1277ff(0x3d2)](()=>void 0x0);},'children':[_0x4dabb7(_0x5155a3,{}),_0x5e6a5f[_0x16db93(0x48f)]?_0x402626['t'](_0x16db93(0x256)):_0x402626['t']('bases-dashboard-ui.dashboardInspector.uploadImage')]}),_0x5e6a5f[_0x16db93(0x48f)]&&_0x4dabb7(_0x1b3e3b,{'aria-label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x402626['t'](_0x16db93(0x1f0)),'onClick':()=>_0x179e87({'backgroundImage':void 0x0}),'children':_0x4dabb7(_0x2d17f6,{})})]}),_0x5e6a5f['backgroundImage']&&_0x4dabb7(_0x116fe9,{'className':_0x16db93(0x266),'items':[{'value':_0x16db93(0x3d5),'label':_0x402626['t'](_0x16db93(0x2e7))},{'value':'contain','label':_0x402626['t'](_0x16db93(0x45b))}],'value':_0x5e6a5f[_0x16db93(0x48f)][_0x16db93(0x2c9)],'onChange':_0x39b1b7=>_0x179e87({'backgroundImage':_0x5e6a5f[_0x16db93(0x48f)]?{..._0x5e6a5f['backgroundImage'],'fit':_0x39b1b7}:void 0x0})})]}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x402626['t'](_0x16db93(0x21a)),'label':_0x402626['t'](_0x16db93(0x21a)),'pickerFallbackValue':_0x704b8b?_0x198db0[_0x16db93(0x433)][0x32]:_0x198db0[_0x16db93(0x433)][0x3e8],'resetLabel':_0x402626['t'](_0x16db93(0x449)),'value':_0x5e6a5f[_0x16db93(0x204)]??null,'onChange':_0x18cb43=>_0x179e87({'textColor':_0x18cb43??void 0x0})}),_0x4dabb7(Sa,{'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x4dabb7(_0x116fe9,{'items':[{'value':_0x16db93(0x20a),'label':_0x402626['t'](_0x16db93(0x28d))},{'value':_0x16db93(0x4b2),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':'right','label':_0x402626['t'](_0x16db93(0x1fd))}],'value':_0x5e6a5f['alignment'],'onChange':_0x357667=>_0x179e87({'alignment':_0x357667})})}),_0x2b00c1(Sa,{'label':_0x402626['t'](_0x16db93(0x219)),'children':[_0x4dabb7(_0x116fe9,{'items':[{'value':_0x16db93(0x3b6),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':_0x16db93(0x509),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x5e6a5f[_0x16db93(0x1e2)],'onChange':_0x371a80=>_0x179e87({'fontSizeMode':_0x371a80})}),_0x5e6a5f[_0x16db93(0x1e2)]==='custom'&&_0x4dabb7(_0x1c2086,{'className':_0x16db93(0x266),'min':0xc,'max':0x78,'value':_0x5e6a5f['fontSize'],'onChange':_0x38cddd=>_0x179e87({'fontSize':_0x38cddd??0x28,'fontSizeMode':_0x16db93(0x509)})})]}),_0x4dabb7(Sa,{'label':_0x402626['t'](_0x16db93(0x500)),'children':_0x4dabb7(_0xce6b1b,{'value':_0x5e6a5f[_0x16db93(0x348)],'options':[{'value':_0x16db93(0x3f3),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.general')},{'value':_0x16db93(0x3c4),'label':_0x402626['t'](_0x16db93(0x1e1))},{'value':_0x16db93(0x327),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.percent')},{'value':_0x16db93(0x241),'label':_0x402626['t'](_0x16db93(0x502))},{'value':_0x16db93(0x39e),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':_0x16db93(0x1be),'label':_0x402626['t'](_0x16db93(0x4cd))}],'onChange':_0x5ad74a=>{const _0x1b4869=_0x16db93;let _0xaeffd8=ba[_0x1b4869(0x397)](_0x416300=>_0x416300===_0x5ad74a);_0xaeffd8&&_0x179e87({'numberFormat':_0xaeffd8});}})}),_0x5e6a5f[_0x16db93(0x348)]===_0x16db93(0x241)&&_0x4dabb7(Sa,{'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x4dabb7(_0x2c53ee,{'value':_0x5e6a5f['currency'],'onChange':_0x35f18f=>_0x179e87({'currency':_0x35f18f[_0x16db93(0x35d)](0x0,0x3)[_0x16db93(0x4e2)]()})})}),_0x5e6a5f[_0x16db93(0x348)]!==_0x16db93(0x3f3)&&_0x4dabb7(Sa,{'label':_0x402626['t'](_0x16db93(0x211)),'children':_0x4dabb7(_0x1c2086,{'min':0x0,'max':0x8,'value':_0x5e6a5f['decimalPlaces'],'onChange':_0x304407=>_0x179e87({'decimalPlaces':_0x304407??0x0})})})]})}),_0x273223&&_0x4dabb7(_0x4b580d,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x4dabb7(_0x55d652,{'tables':_0x378d89,'formula':_0x1b3454(_0x5c4973,_0x378d89),'onCancel':()=>_0x51ddcd(!0x1),'onSave':_0x5cc300=>{const _0x380b0a=_0x16db93;let _0x233eef=_0x31d0fe[_0x380b0a(0x1d8)][_0x380b0a(0x3e3)]??{'formula':''};return _0xbda0fa({..._0x31d0fe,'shapeData':{..._0x31d0fe[_0x380b0a(0x1d8)],'formulaBinding':{..._0x233eef,'formula':_0x24d391(_0x5cc300,_0x378d89)}}})[_0x380b0a(0x388)](()=>_0x51ddcd(!0x1))[_0x380b0a(0x3d2)](()=>void 0x0);}})})]});}function Sa({children:_0x2cba44,label:_0x58b251}){const _0x555861=_0x2353bc;return _0x2b00c1(_0x555861(0x442),{'role':_0x555861(0x365),'aria-label':_0x58b251,'className':_0x555861(0x3d0),'children':[_0x4dabb7(_0x555861(0x3ec),{'children':_0x58b251}),_0x2cba44]});}const Ca={[_0x17381a['IS']]:_0x2353bc(0x4be),[_0x17381a[_0x2353bc(0x1d2)]]:_0x2353bc(0x2e6),[_0x17381a[_0x2353bc(0x35c)]]:'bases-dashboard-ui.operators.contains',[_0x17381a['NOT_CONTAINS']]:_0x2353bc(0x493),[_0x17381a[_0x2353bc(0x2b3)]]:_0x2353bc(0x3ef),[_0x17381a['IS_NOT_EMPTY']]:_0x2353bc(0x31d),[_0x17381a[_0x2353bc(0x3fc)]]:_0x2353bc(0x1ca),[_0x17381a[_0x2353bc(0x3da)]]:_0x2353bc(0x3e1),[_0x17381a[_0x2353bc(0x36d)]]:_0x2353bc(0x3c2),[_0x17381a[_0x2353bc(0x303)]]:_0x2353bc(0x2a8),[_0x17381a[_0x2353bc(0x3f4)]]:_0x2353bc(0x243),[_0x17381a[_0x2353bc(0x202)]]:_0x2353bc(0x4f2)};function wa({disabled:_0x3654,fields:_0x4a45a4,filter:_0x3e073d,onChange:_0x32785d}){const _0x3436b1=_0x2353bc;let _0x52acdc=_0x39b411(_0x5cd3ee),_0x55a72a=(_0x3e073d==null?void 0x0:_0x3e073d[_0x3436b1(0x1b8)])??[];return _0x55a72a[_0x3436b1(0x4da)]?_0x4dabb7(_0x3436b1(0x442),{'className':_0x3436b1(0x417),'children':_0x55a72a[_0x3436b1(0x3ff)]((_0x1fcc3c,_0x5c2911)=>{const _0x4fe261=_0x3436b1;let _0x36da24=_0x4a45a4[_0x4fe261(0x397)](_0x461e08=>_0x461e08['id']===_0x1fcc3c[_0x4fe261(0x43d)]);return _0x2b00c1(_0x4fe261(0x442),{'className':_0x4fe261(0x426),'children':[_0x2b00c1(_0x4fe261(0x442),{'className':_0x4fe261(0x21c),'children':[_0x4dabb7(_0x4fe261(0x3ec),{'className':_0x4fe261(0x2fc),'children':(_0x36da24==null?void 0x0:_0x36da24[_0x4fe261(0x329)])??_0x1fcc3c[_0x4fe261(0x43d)]}),_0x4dabb7('span',{'className':_0x4fe261(0x34f),'children':_0x52acdc['t'](Ca[_0x1fcc3c[_0x4fe261(0x510)]])})]}),Ma(_0x1fcc3c['operator'])&&_0x4dabb7(Ea,{'disabled':_0x3654,'field':_0x36da24,'value':_0x1fcc3c[_0x4fe261(0x37d)],'onChange':_0x11c71e=>_0x32785d(ka(_0x3e073d,_0x5c2911,{'operand':_0x11c71e}))})]},Fa(_0x55a72a,_0x1fcc3c,_0x5c2911));})}):_0x2b00c1(_0x3436b1(0x442),{'className':_0x3436b1(0x1f2),'children':[_0x4dabb7(_0x425726,{'className':'univer-mx-auto\x20univer-size-6'}),_0x4dabb7('span',{'className':_0x3436b1(0x3b3),'children':_0x52acdc['t'](_0x3436b1(0x396))})]});}function Ta({fields:_0x1f4c36,filter:_0x38d581,onChange:_0x3224c7,onClear:_0x31186a}){const _0x57697b=_0x2353bc;let _0x34beba=_0x39b411(_0x5cd3ee),_0x4457b1=(_0x38d581==null?void 0x0:_0x38d581[_0x57697b(0x1b8)])??[];return _0x2b00c1(_0x57697b(0x442),{'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':[_0x4457b1['map']((_0xf7d128,_0x1c679d)=>{const _0x2e518a=_0x57697b;let _0x15de43=_0x1f4c36[_0x2e518a(0x397)](_0x24be71=>_0x24be71['id']===_0xf7d128[_0x2e518a(0x43d)])??_0x1f4c36[0x0],_0xb70ce5=Aa(_0x15de43);return _0x2b00c1(_0x2e518a(0x482),{'className':_0x2e518a(0x1b2),'children':[_0x2b00c1(_0x2e518a(0x442),{'className':_0x2e518a(0x4b7),'children':[_0x4dabb7(_0xce6b1b,{'value':_0xf7d128[_0x2e518a(0x43d)],'options':_0x1f4c36[_0x2e518a(0x3ff)](_0x3f37d8=>({'value':_0x3f37d8['id'],'label':_0x3f37d8['name']})),'onChange':_0x90bc09=>{const _0x2d75fe=_0x2e518a;let _0x5ecfc8=_0x1f4c36[_0x2d75fe(0x397)](_0x2a7361=>_0x2a7361['id']===_0x90bc09);if(!_0x5ecfc8)return;let _0x30ae90=Aa(_0x5ecfc8)[0x0];_0x3224c7(ka(_0x38d581,_0x1c679d,Oa(_0x5ecfc8,_0x30ae90)));}}),_0x4dabb7(_0x1b3e3b,{'type':_0x2e518a(0x228),'variant':_0x2e518a(0x452),'aria-label':_0x34beba['t']('bases-dashboard-ui.dashboardInspector.delete'),'className':_0x2e518a(0x471),'onClick':()=>_0x3224c7(Da(_0x38d581,_0x4457b1[_0x2e518a(0x1b3)]((_0x40bdd2,_0x29ff3c)=>_0x29ff3c!==_0x1c679d))),'children':_0x4dabb7(_0x122a02,{})})]}),_0x4dabb7(_0xce6b1b,{'value':_0xf7d128[_0x2e518a(0x510)],'options':_0xb70ce5[_0x2e518a(0x3ff)](_0x2fbb12=>({'value':_0x2fbb12,'label':_0x34beba['t'](Ca[_0x2fbb12])})),'onChange':_0x48a373=>{const _0xa85f3d=_0x2e518a;let _0x3e6bbb=_0xb70ce5[_0xa85f3d(0x397)](_0x5aa635=>_0x5aa635===_0x48a373);_0x3e6bbb&&_0x3224c7(ka(_0x38d581,_0x1c679d,{'operator':_0x3e6bbb,'operand':ja(_0x15de43)}));}}),Ma(_0xf7d128[_0x2e518a(0x510)])&&_0x4dabb7(Ea,{'field':_0x15de43,'value':_0xf7d128[_0x2e518a(0x37d)],'onChange':_0x3bf0d9=>_0x3224c7(ka(_0x38d581,_0x1c679d,{'operand':_0x3bf0d9}))})]},Fa(_0x4457b1,_0xf7d128,_0x1c679d));}),_0x2b00c1(_0x1b3e3b,{'type':_0x57697b(0x228),'variant':'text','className':_0x57697b(0x332),'disabled':!_0x1f4c36['length'],'onClick':()=>{let _0x1de638=_0x1f4c36[0x0];if(!_0x1de638)return;let _0x32b1eb=Aa(_0x1de638)[0x0];_0x3224c7(Da(_0x38d581,[..._0x4457b1,Oa(_0x1de638,_0x32b1eb)]));},'children':[_0x4dabb7(_0x5155a3,{}),_0x34beba['t'](_0x57697b(0x25c))]}),_0x4457b1[_0x57697b(0x4da)]>0x0&&_0x4dabb7(_0x1b3e3b,{'type':'button','variant':_0x57697b(0x452),'className':_0x57697b(0x1b5),'onClick':_0x31186a,'children':_0x34beba['t'](_0x57697b(0x46f))})]});}function Ea({disabled:_0x413fae,field:_0x14a3b4,onChange:_0x28cc85,value:_0x4c2e62}){const _0x3090aa=_0x2353bc;let _0x3d4762=_0x39b411(_0x5cd3ee),_0x38d941=_0x14a3b4==null?void 0x0:_0x14a3b4[_0x3090aa(0x393)];if(_0x38d941===_0x557eea[_0x3090aa(0x205)]){let _0x36452e=_0x4c2e62===!0x0||_0x4c2e62===_0x3090aa(0x1d5);return _0x2b00c1(_0x1b3e3b,{'type':_0x3090aa(0x228),'variant':_0x3090aa(0x431),'disabled':_0x413fae,'className':_0x3090aa(0x2d7),'onClick':()=>_0x28cc85(!_0x36452e),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x36452e,'disabled':_0x413fae,'onChange':()=>void 0x0}),_0x36452e?_0x3d4762['t'](_0x3090aa(0x3e7)):_0x3d4762['t'](_0x3090aa(0x216))]});}return Ia(_0x38d941)?_0x413fae?_0x4dabb7(_0x1b3e3b,{'type':_0x3090aa(0x228),'variant':_0x3090aa(0x431),'className':_0x3090aa(0x1b5),'disabled':!0x0,'children':_0x22c7cc(_0x4c2e62==null||_0x4c2e62===''?void 0x0:String(_0x4c2e62))[_0x3090aa(0x347)]('YYYY-MM-DD')}):_0x4dabb7(_0x1596d0,{'className':_0x3090aa(0x1b5),'value':_0x22c7cc(_0x4c2e62==null||_0x4c2e62===''?void 0x0:String(_0x4c2e62))[_0x3090aa(0x4f8)](),'onValueChange':_0x45c716=>_0x28cc85(_0x22c7cc(_0x45c716)[_0x3090aa(0x347)](_0x3090aa(0x232)))}):Ra(_0x14a3b4)?_0x4dabb7(_0x3ab7df,{'className':_0x3090aa(0x1b5),'disabled':_0x413fae,'value':Array['isArray'](_0x4c2e62)?_0x4c2e62[_0x3090aa(0x3ff)](String):[],'options':Na(_0x14a3b4),'onChange':_0x28cc85}):_0x38d941===_0x557eea[_0x3090aa(0x2f9)]||_0x38d941===_0x557eea[_0x3090aa(0x3be)]||_0x38d941===_0x557eea[_0x3090aa(0x4d7)]?_0x4dabb7(_0xce6b1b,{'className':_0x3090aa(0x1b5),'disabled':_0x413fae,'value':String(_0x4c2e62??''),'options':[{'value':'','label':_0x3d4762['t'](_0x3090aa(0x39d))},...Na(_0x14a3b4)],'onChange':_0x28cc85}):La(_0x38d941)?_0x4dabb7(_0x1c2086,{'className':_0x3090aa(0x1b5),'allowEmpty':!0x0,'disabled':_0x413fae,'value':Number[_0x3090aa(0x4a4)](Number(_0x4c2e62))?Number(_0x4c2e62):null,'onChange':_0x5021f3=>_0x28cc85(_0x5021f3??'')}):_0x4dabb7(_0x2c53ee,{'disabled':_0x413fae,'value':String(_0x4c2e62??''),'placeholder':_0x3d4762['t'](_0x3090aa(0x4b9)),'onChange':_0x28cc85});}function Da(_0x182c27,_0x102198){const _0x4cd6a4=_0x2353bc;return{'conjunction':(_0x182c27==null?void 0x0:_0x182c27[_0x4cd6a4(0x3d9)])??_0xf09c6[_0x4cd6a4(0x27f)],'conditions':_0x102198};}function Oa(_0xe91191,_0x299177){return Ma(_0x299177)?{'fieldId':_0xe91191['id'],'operator':_0x299177,'operand':ja(_0xe91191)}:{'fieldId':_0xe91191['id'],'operator':_0x299177};}function ka(_0x111487,_0x43ce78,_0xcc7b4f){const _0x131be9=_0x2353bc;return Da(_0x111487,((_0x111487==null?void 0x0:_0x111487[_0x131be9(0x1b8)])??[])[_0x131be9(0x3ff)]((_0x31f8fc,_0x577e57)=>_0x577e57===_0x43ce78?{..._0x31f8fc,..._0xcc7b4f}:_0x31f8fc));}function Aa(_0x3f36c){const _0x11cf24=_0x2353bc;let _0x4b37c3=[_0x17381a[_0x11cf24(0x2b3)],_0x17381a['IS_NOT_EMPTY']];switch(_0x3f36c==null?void 0x0:_0x3f36c[_0x11cf24(0x393)]){case _0x557eea[_0x11cf24(0x416)]:case _0x557eea[_0x11cf24(0x321)]:case _0x557eea['Progress']:case _0x557eea[_0x11cf24(0x42a)]:return[_0x17381a['IS'],_0x17381a[_0x11cf24(0x1d2)],_0x17381a['GREATER_THAN'],_0x17381a[_0x11cf24(0x36d)],..._0x4b37c3];case _0x557eea[_0x11cf24(0x4e7)]:case _0x557eea[_0x11cf24(0x2fa)]:case _0x557eea[_0x11cf24(0x4a2)]:return[_0x17381a['IS'],_0x17381a[_0x11cf24(0x1d2)],_0x17381a[_0x11cf24(0x3f4)],_0x17381a[_0x11cf24(0x202)],..._0x4b37c3];case _0x557eea[_0x11cf24(0x205)]:return[_0x17381a['IS'],_0x17381a['IS_NOT']];default:return[_0x17381a['IS'],_0x17381a[_0x11cf24(0x1d2)],_0x17381a[_0x11cf24(0x35c)],_0x17381a[_0x11cf24(0x40d)],..._0x4b37c3];}}function ja(_0x3e591b){const _0x4635ae=_0x2353bc;return _0x3e591b?_0x3e591b['type']===_0x557eea['Checkbox']?!0x1:Ia(_0x3e591b[_0x4635ae(0x393)])?_0x22c7cc()[_0x4635ae(0x347)](_0x4635ae(0x232)):Ra(_0x3e591b)?[]:'':'';}function Ma(_0x3576cd){const _0x14c98f=_0x2353bc;return _0x3576cd!==_0x17381a[_0x14c98f(0x2b3)]&&_0x3576cd!==_0x17381a[_0x14c98f(0x375)];}function Na(_0xa7050d){const _0x6d9db=_0x2353bc;var _0x26d601;return(Array['isArray'](_0xa7050d==null||(_0x26d601=_0xa7050d[_0x6d9db(0x4e8)])==null?void 0x0:_0x26d601['options'])?_0xa7050d['config'][_0x6d9db(0x320)]:[])[_0x6d9db(0x3ff)]((_0x44f612,_0x28d9cd)=>{const _0x3ae553=_0x6d9db;if(typeof _0x44f612==_0x3ae553(0x4ff))return{'label':_0x44f612,'value':_0x44f612};if(!Pa(_0x44f612))return{'label':String(_0x28d9cd+0x1),'value':String(_0x28d9cd+0x1)};let _0x532423=_0x44f612,_0x390c96=String(_0x532423[_0x3ae553(0x329)]??_0x532423['id']??_0x28d9cd+0x1),_0x2cb6cb=String(_0x532423['id']??_0x390c96);return{'label':_0x390c96,'value':/^opt-\d+$/[_0x3ae553(0x41e)](_0x2cb6cb)?_0x390c96:_0x2cb6cb};});}function Pa(_0x3d6142){const _0x17f520=_0x2353bc;return typeof _0x3d6142==_0x17f520(0x43c)&&!!_0x3d6142;}function Fa(_0x42564f,_0x324197,_0x45832f){const _0x36adf7=_0x2353bc;let _0x3104b2=JSON['stringify'](_0x324197);return _0x3104b2+'-'+_0x42564f[_0x36adf7(0x35d)](0x0,_0x45832f)[_0x36adf7(0x1b3)](_0x511f23=>JSON[_0x36adf7(0x492)](_0x511f23)===_0x3104b2)['length'];}function Ia(_0x2d2da9){const _0x108f7d=_0x2353bc;return _0x2d2da9===_0x557eea['Date']||_0x2d2da9===_0x557eea[_0x108f7d(0x2fa)]||_0x2d2da9===_0x557eea[_0x108f7d(0x4a2)];}function La(_0x2e12ff){const _0x187558=_0x2353bc;return _0x2e12ff===_0x557eea[_0x187558(0x416)]||_0x2e12ff===_0x557eea[_0x187558(0x321)]||_0x2e12ff===_0x557eea[_0x187558(0x3c5)]||_0x2e12ff===_0x557eea[_0x187558(0x42a)];}function Ra(_0x4d0b06){const _0x1dd369=_0x2353bc;var _0x1c5d3c;return(_0x4d0b06==null?void 0x0:_0x4d0b06[_0x1dd369(0x393)])===_0x557eea[_0x1dd369(0x1f6)]||(_0x4d0b06==null?void 0x0:_0x4d0b06['type'])===_0x557eea['Group']||(_0x4d0b06==null?void 0x0:_0x4d0b06[_0x1dd369(0x393)])===_0x557eea['Person']&&((_0x1c5d3c=_0x4d0b06[_0x1dd369(0x4e8)])==null?void 0x0:_0x1c5d3c[_0x1dd369(0x354)])===!0x0;}function za({base:_0xf720d,chartRuntime:_0x3c3484,onChange:_0xc7c89d,onClose:_0x45e503,onSelectBackgroundImage:_0x4d1e5b,onSelectImage:_0xd81de1,unitId:_0x1835b4,widget:_0x122dfe}){const _0x154dce=_0x2353bc;let _0x1cd4e4=_0x39b411(_0x32452d),_0xe26cac=_0x39b411(_0x5cd3ee),_0x57635a=_0xf720d[_0x154dce(0x3f5)](),_0x102423=_0x154dce(0x475)in _0x122dfe?_0x57635a[_0x154dce(0x39c)][_0x122dfe[_0x154dce(0x475)]]:void 0x0,_0x5d600a=_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x3a3)]?_0x102423==null?void 0x0:_0x102423[_0x154dce(0x451)][_0x122dfe[_0x154dce(0x399)]]:void 0x0,_0x2b4747=_0xe26cac['t'](Ka(_0x122dfe));return _0x2b00c1(_0x154dce(0x2b6),{'data-dashboard-inspector':!0x0,'className':_0x154dce(0x459),'children':[_0x2b00c1(_0x154dce(0x36a),{'className':'univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-px-4\x20dark:!univer-border-gray-700','children':[_0x4dabb7('h3',{'className':_0x154dce(0x385),'children':_0x2b4747}),_0x4dabb7(_0x1b3e3b,{'type':_0x154dce(0x228),'size':_0x154dce(0x432),'variant':_0x154dce(0x452),'aria-label':_0xe26cac['t']('bases-dashboard-ui.dashboardInspector.close'),'onClick':_0x45e503,'children':_0x4dabb7(_0x122a02,{})})]}),_0x122dfe['type']===_0x342116[_0x154dce(0x3a3)]&&(Ga(_0x5d600a)&&_0x3c3484?_0x4dabb7(va,{'runtime':_0x3c3484,'sourceChart':_0x5d600a[_0x154dce(0x4e8)]['chart'],'sourceName':((_0x102423==null?void 0x0:_0x102423['name'])??'')+'\x20/\x20'+_0x5d600a[_0x154dce(0x329)],'widget':_0x122dfe,'onChange':_0xc7c89d,'onEditData':()=>{const _0x56c876=_0x154dce;_0x1cd4e4[_0x56c876(0x1ff)](_0x9b2833['id'],{'unitId':_0x1835b4,'tableId':_0x122dfe[_0x56c876(0x475)],'viewId':_0x122dfe[_0x56c876(0x399)]})[_0x56c876(0x3d2)](()=>void 0x0);}}):_0x4dabb7(Ua,{'message':Ga(_0x5d600a)?_0xe26cac['t'](_0x154dce(0x2aa)):_0xe26cac['t'](_0x154dce(0x3d7))})),_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x36e)]&&_0x4dabb7(xa,{'base':_0xf720d,'widget':_0x122dfe,'onChange':_0xc7c89d,'onSelectBackgroundImage':_0x4d1e5b}),_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x296)]&&_0x4dabb7(Va,{'base':_0xf720d,'onChange':_0xc7c89d,'widget':_0x122dfe}),_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x298)]&&_0x4dabb7(Ha,{'onChange':_0xc7c89d,'widget':_0x122dfe}),_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x4ae)]&&_0x4dabb7(Ba,{'onChange':_0xc7c89d,'onSelectImage':_0xd81de1,'widget':_0x122dfe})]});}function Ba({onChange:_0x5d016f,onSelectImage:_0xd39f12,widget:_0x50cef5}){const _0x387501=_0x2353bc;let _0x2dfdfb=_0x39b411(_0x5cd3ee);return _0x2b00c1(_0x387501(0x442),{'className':'univer-grid\x20univer-gap-4\x20univer-p-4','children':[_0x2b00c1(_0x1b3e3b,{'className':_0x387501(0x1b5),'onClick':()=>_0xd39f12()['then'](_0x14399c=>_0x14399c&&_0x5d016f({..._0x50cef5,'source':_0x14399c['source'],'sourceType':_0x14399c['sourceType'],'alt':_0x14399c[_0x387501(0x329)]}))[_0x387501(0x3d2)](()=>void 0x0),'children':[_0x4dabb7(_0x5155a3,{}),_0x2dfdfb['t'](_0x387501(0x256))]}),_0x2b00c1('label',{'className':_0x387501(0x3d0),'children':[_0x4dabb7(_0x387501(0x3ec),{'children':_0x2dfdfb['t'](_0x387501(0x267))}),_0x4dabb7(_0x116fe9,{'items':[{'value':_0x387501(0x3d5),'label':_0x2dfdfb['t'](_0x387501(0x2e7))},{'value':_0x387501(0x42b),'label':_0x2dfdfb['t'](_0x387501(0x392))},{'value':_0x387501(0x2bc),'label':_0x2dfdfb['t'](_0x387501(0x260))}],'value':_0x50cef5['displayMode']??_0x387501(0x3d5),'onChange':_0x171bc0=>_0x5d016f({..._0x50cef5,'displayMode':_0x171bc0})[_0x387501(0x3d2)](()=>void 0x0)})]})]});}function Va({base:_0x1be224,onChange:_0x53e616,widget:_0x53bf31}){const _0x5c1d04=_0x2353bc;let _0x1fbc38=_0x1be224['getSnapshot']()[_0x5c1d04(0x39c)][_0x53bf31['tableId']],_0x3d955b=_0x1fbc38==null?void 0x0:_0x1fbc38[_0x5c1d04(0x411)][_0x5c1d04(0x397)](_0x37b84f=>_0x1fbc38[_0x5c1d04(0x451)][_0x37b84f]),_0x277a23=_0x3d955b?_0x1fbc38==null?void 0x0:_0x1fbc38[_0x5c1d04(0x451)][_0x3d955b]:void 0x0,_0x56c4f0=_0x1fbc38&&_0x277a23?_0x5249f3(_0x1fbc38,_0x277a23):[];return _0x4dabb7(Ta,{'fields':_0x56c4f0,'filter':_0x53bf31[_0x5c1d04(0x1b3)],'onChange':_0x43e1b9=>_0x53e616({..._0x53bf31,'filter':_0x43e1b9})[_0x5c1d04(0x3d2)](()=>void 0x0),'onClear':()=>_0x53e616({..._0x53bf31,'filter':null})['catch'](()=>void 0x0)});}function Ha({onChange:_0x146b24,widget:_0x21c2c2}){const _0x40fc8c=_0x2353bc;let _0x2c9efe=_0x39b411(_0x5cd3ee),_0x352785=_0x39b411(_0x277079),_0x4b118f=_0x499abf(()=>_0x352785[_0x40fc8c(0x227)],_0x352785['getCurrentTheme'](),!0x1,[_0x352785]),_0x5c8e3d=Br(_0x21c2c2),_0x368ad9=_0x243cbf=>_0x146b24({..._0x21c2c2,'appearance':{..._0x5c8e3d,..._0x243cbf}})[_0x40fc8c(0x3d2)](()=>void 0x0);return _0x2b00c1(_0x40fc8c(0x442),{'className':_0x40fc8c(0x4b8),'children':[_0x4dabb7(_0x136f1a,{'defaultValue':Vr(_0x21c2c2[_0x40fc8c(0x4d6)]),'rows':0x8,'onBlur':_0x34e6d4=>_0x146b24({..._0x21c2c2,'document':Hr(_0x21c2c2['document'],_0x34e6d4[_0x40fc8c(0x344)][_0x40fc8c(0x284)])})['catch'](()=>void 0x0)}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x4b118f[_0x40fc8c(0x433)][0x0],'resetLabel':_0x2c9efe['t'](_0x40fc8c(0x449)),'value':_0x5c8e3d[_0x40fc8c(0x394)]??null,'onChange':_0x52bdd2=>_0x368ad9({'backgroundColor':_0x52bdd2??void 0x0})}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x2c9efe['t'](_0x40fc8c(0x21a)),'label':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x4b118f[_0x40fc8c(0x433)][0x3e8],'resetLabel':_0x2c9efe['t'](_0x40fc8c(0x449)),'value':_0x5c8e3d[_0x40fc8c(0x204)]??null,'onChange':_0x2d12b0=>_0x368ad9({'textColor':_0x2d12b0??void 0x0})}),_0x4dabb7(Wa,{'label':_0x2c9efe['t'](_0x40fc8c(0x3cf)),'children':_0x4dabb7(_0x116fe9,{'items':[{'value':'left','label':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':'center','label':_0x2c9efe['t'](_0x40fc8c(0x237))},{'value':_0x40fc8c(0x214),'label':_0x2c9efe['t'](_0x40fc8c(0x1fd))}],'value':_0x5c8e3d['alignment'],'onChange':_0x207232=>_0x368ad9({'alignment':_0x207232})})}),_0x2b00c1(Wa,{'label':_0x2c9efe['t'](_0x40fc8c(0x219)),'children':[_0x4dabb7(_0x116fe9,{'items':[{'value':_0x40fc8c(0x3b6),'label':_0x2c9efe['t'](_0x40fc8c(0x29b))},{'value':_0x40fc8c(0x509),'label':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x5c8e3d[_0x40fc8c(0x1e2)],'onChange':_0x4fa194=>_0x368ad9({'fontSizeMode':_0x4fa194})}),_0x5c8e3d[_0x40fc8c(0x1e2)]===_0x40fc8c(0x509)&&_0x4dabb7(_0x1c2086,{'className':_0x40fc8c(0x266),'min':0xa,'max':0x78,'value':_0x5c8e3d['fontSize'],'onChange':_0x4fb997=>_0x368ad9({'fontSize':_0x4fb997??0x12,'fontSizeMode':'custom'})})]})]});}function Ua({message:_0x21501c}){const _0x2b2d50=_0x2353bc;return _0x4dabb7(_0x2b2d50(0x442),{'className':_0x2b2d50(0x43b),'children':_0x21501c});}function Wa({children:_0x34733f,label:_0x3e8896}){const _0x1df5af=_0x2353bc;return _0x2b00c1('div',{'role':'group','aria-':!0x0,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x4dabb7(_0x1df5af(0x3ec),{'children':_0x3e8896}),_0x34733f]});}function Ga(_0x31cab9){const _0x173e08=_0x2353bc;return(_0x31cab9==null?void 0x0:_0x31cab9[_0x173e08(0x393)])===_0x5ee6b5[_0x173e08(0x49c)]&&typeof _0x31cab9[_0x173e08(0x4e8)]=='object'&&_0x31cab9[_0x173e08(0x4e8)]!==null&&_0x173e08(0x4aa)in _0x31cab9[_0x173e08(0x4e8)]&&_0x173e08(0x4d8)in _0x31cab9[_0x173e08(0x4e8)];}function Ka(_0x55f64d){const _0x3410ef=_0x2353bc;switch(_0x55f64d['type']){case _0x342116['PivotChart']:return _0x3410ef(0x350);case _0x342116['TableFilter']:return _0x3410ef(0x396);case _0x342116[_0x3410ef(0x298)]:return'bases-dashboard-ui.dashboard.text';case _0x342116['Image']:return _0x3410ef(0x293);case _0x342116[_0x3410ef(0x36e)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function qa({onDelete:_0x3c29f6,onEdit:_0x31ebb2}){const _0x1a008e=_0x2353bc;let _0x51e3af=_0x39b411(_0x5cd3ee),_0x3c5c62=_0x51e3af['t']('bases-dashboard-ui.dashboard.editWidget'),_0x335e7a=_0x51e3af['t'](_0x1a008e(0x2ef)),_0x15cc73=_0x51e3af['t'](_0x1a008e(0x1b9));return _0x4dabb7(_0x492a1e,{'items':[{'type':'item','children':_0x2b00c1(_0x1a008e(0x3ec),{'className':_0x1a008e(0x49a),'children':[_0x4dabb7(_0x392d1f,{'className':_0x1a008e(0x40e),'aria-hidden':_0x1a008e(0x1d5)}),_0x4dabb7(_0x1a008e(0x3ec),{'children':_0x3c5c62})]}),'onSelect':_0x31ebb2},{'type':_0x1a008e(0x50a)},{'type':_0x1a008e(0x423),'variant':_0x1a008e(0x4d0),'children':_0x2b00c1(_0x1a008e(0x3ec),{'className':_0x1a008e(0x49a),'children':[_0x4dabb7(_0x2d17f6,{'className':_0x1a008e(0x40e),'aria-hidden':_0x1a008e(0x1d5)}),_0x4dabb7(_0x1a008e(0x3ec),{'children':_0x335e7a})]}),'onSelect':_0x3c29f6}],'children':_0x4dabb7(_0x1b3e3b,{'type':'button','size':_0x1a008e(0x432),'variant':_0x1a008e(0x452),'title':_0x15cc73,'aria-label':_0x15cc73,'className':_0x1a008e(0x4fc),'children':_0x4dabb7(_0x27b384,{'className':_0x1a008e(0x40e),'aria-hidden':_0x1a008e(0x1d5)})})});}function Ja({dashboardId:_0x4b4b2,presentation:_0x1388b0=!0x1,unitId:_0x61af0d}){const _0x192218=_0x2353bc;let _0x32f623=_0x39b411(_0x32452d),_0x13916e=_0x39b411(_0x4d763c),_0x338ef3=_0x39b411(_0x5482b5),_0x54eed1=_0x39b411(_0x4074e5),_0x5aff02=_0x39b411(_0x5cd3ee),_0x2f9ad9=_0x39b411(_0x5e40a3),_0x374cfd=_0x39b411(_0x123793),_0x549f43=_0x35f949(null),[_0x24a903,_0x36e3b3]=_0x2be63d(!0x1),[_0x2d653c,_0x1287d3]=_0x2be63d(),[_0x5998ca,_0x4fa890]=_0x2be63d(!0x1),[_0x41df4d,_0x2b88c1]=_0x2be63d(()=>new Map()),_0x6d8894=_0xd8821d((_0x4aab6b,_0x1d86c4)=>{_0x2b88c1(_0x23c583=>{const _0x21bd02=_0x1cf6;let _0x166b33=new Map(_0x23c583);return _0x1d86c4?_0x166b33[_0x21bd02(0x401)](_0x4aab6b,_0x1d86c4):_0x166b33['delete'](_0x4aab6b),_0x166b33;});},[]),_0x2f172f=_0x499abf(()=>_0x2f9ad9[_0x192218(0x2a3)][_0x192218(0x41d)](_0x299cc9(()=>_0x2f9ad9[_0x192218(0x34a)](_0x61af0d,_0x4b4b2))),_0x2f9ad9[_0x192218(0x34a)](_0x61af0d,_0x4b4b2),!0x1,[_0x4b4b2,_0x2f9ad9,_0x61af0d]),_0x2f3771=_0x54eed1[_0x192218(0x37e)](_0x61af0d,_0x51ec78[_0x192218(0x4eb)]),_0x5af263=_0x499abf(()=>_0x374cfd[_0x192218(0x21f)],{'undos':0x0,'redos':0x0},!0x1,[_0x374cfd]),_0x1cac75=gr(_0x61af0d,_0x4b4b2);if(_0x38e78f(()=>{const _0x54eb4d=_0x192218;_0x54eed1[_0x54eb4d(0x3ce)](_0x61af0d),_0x54eed1[_0x54eb4d(0x35f)](_0x61af0d);},[_0x54eed1,_0x61af0d]),_0x38e78f(()=>{const _0x50bfee=_0x192218;let _0x196c2d=_0x549f43[_0x50bfee(0x38f)],_0x446140=_0x196c2d==null?void 0x0:_0x196c2d[_0x50bfee(0x26c)];if(!_0x196c2d||!_0x446140)return;let _0x577dd6=()=>_0x4fa890(_0x446140[_0x50bfee(0x281)]===_0x446140[_0x50bfee(0x22a)]),_0x1b9bbd=_0x35d99e=>{const _0x454197=_0x50bfee;_0x35d99e['key']===_0x454197(0x319)&&!_0x35d99e[_0x454197(0x25a)]&&_0x446140[_0x454197(0x281)]===_0x446140['documentElement']&&_0x446140[_0x454197(0x4bf)]()[_0x454197(0x3d2)](_0x577dd6);};return _0x446140[_0x50bfee(0x1d1)]('fullscreenchange',_0x577dd6),_0x446140['addEventListener']('keydown',_0x1b9bbd),()=>{const _0x4f1dd8=_0x50bfee;_0x446140['removeEventListener'](_0x4f1dd8(0x33d),_0x577dd6),_0x446140[_0x4f1dd8(0x27d)](_0x4f1dd8(0x4d1),_0x1b9bbd);};},[]),!_0x2f172f||!_0x2f3771)return null;let _0x4c0942=_0x3cf6e3=>_0x32f623[_0x192218(0x1ff)](_0x2b3367['id'],{'unitId':_0x61af0d,'dashboardId':_0x4b4b2,'widget':_0x3cf6e3})[_0x192218(0x3d2)](()=>void 0x0),_0x14432d=(_0x2dfddd,_0x2b3604,_0x5251ed)=>{const _0x15836e=_0x192218;let _0x426bdf=Math[_0x15836e(0x2eb)](0x0,..._0x2f172f[_0x15836e(0x362)][_0x15836e(0x3bc)](_0x420380=>{const _0x1c52d8=_0x15836e;var _0x3836d5;let _0x16bf67=(_0x3836d5=_0x2f172f['widgets'][_0x420380])==null?void 0x0:_0x3836d5[_0x1c52d8(0x439)];return _0x16bf67?[_0x16bf67['row']+_0x16bf67[_0x1c52d8(0x4b4)]]:[];})),_0x516f0f=_0x15836e(0x4a9)+_0x325e5d(0x8),_0x20326f={'column':0x0,'row':_0x426bdf,'columnSpan':_0x2b3604,'rowSpan':_0x5251ed};switch(_0x2dfddd[_0x15836e(0x393)]){case _0x342116[_0x15836e(0x3a3)]:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});case _0x342116[_0x15836e(0x296)]:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});case _0x342116['Text']:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});case _0x342116[_0x15836e(0x4ae)]:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});case _0x342116['FormulaShape']:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});}},_0x5e6da4=_0x2f3771['getSnapshot'](),_0x29518a=_0x5e6da4[_0x192218(0x1e5)]['flatMap'](_0x4d3b93=>{const _0x3f2ee4=_0x192218;let _0x47bed7=_0x5e6da4[_0x3f2ee4(0x39c)][_0x4d3b93];if(!_0x47bed7)return[];let _0x4e45c1=_0x47bed7[_0x3f2ee4(0x411)][_0x3f2ee4(0x3bc)](_0x18b868=>{const _0x1b8569=_0x3f2ee4;let _0x181dc8=_0x47bed7['views'][_0x18b868];return no(_0x181dc8)?[{'type':_0x1b8569(0x423),'children':_0x181dc8[_0x1b8569(0x329)],'onSelect':()=>_0x14432d({'type':_0x342116['PivotChart'],'tableId':_0x4d3b93,'pivotViewId':_0x18b868,'chart':{..._0x181dc8[_0x1b8569(0x4e8)][_0x1b8569(0x4d8)]}},0x6,0xa)}]:[];});return[{'type':_0x3f2ee4(0x429),'children':_0x47bed7['name'],'options':[..._0x4e45c1,..._0x4e45c1['length']?[{'type':'separator'}]:[],{'type':_0x3f2ee4(0x423),'children':_0x5aff02['t'](_0x3f2ee4(0x396)),'onSelect':()=>_0x14432d({'type':_0x342116[_0x3f2ee4(0x296)],'tableId':_0x4d3b93,'filter':null},0x6,0x8)}]}];}),_0x4c0e08=[..._0x29518a,..._0x29518a['length']?[{'type':_0x192218(0x50a)}]:[],{'type':'item','children':_0x5aff02['t'](_0x192218(0x45f)),'onSelect':()=>_0x14432d({'type':_0x342116[_0x192218(0x298)],'document':Qa()},0x4,0x6)},{'type':_0x192218(0x423),'children':_0x5aff02['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>$a(_0x13916e)[_0x192218(0x388)](_0x3ce793=>_0x3ce793&&_0x14432d({'type':_0x342116[_0x192218(0x4ae)],'source':_0x3ce793['source'],'sourceType':_0x3ce793[_0x192218(0x4b3)],'alt':_0x3ce793['name'],'displayMode':'cover'},0x4,0x6))},{'type':'item','children':_0x5aff02['t'](_0x192218(0x268)),'onSelect':()=>{const _0x50183=_0x192218;let _0x530941=_0x5e6da4[_0x50183(0x1e5)][_0x50183(0x397)](_0x3ca033=>_0x5e6da4[_0x50183(0x39c)][_0x3ca033]);_0x530941&&_0x14432d({'type':_0x342116['FormulaShape'],'tableId':_0x530941,'shapeType':_0x4387d7[_0x50183(0x3a7)],'shapeData':_0x11d1a1(),'description':_0x5aff02['t'](_0x50183(0x268))},0x4,0x6);}}],_0x5a4756=_0x2d653c?_0x2f172f[_0x192218(0x4e1)][_0x2d653c]:void 0x0,_0x17b497=async()=>{const _0x33d1a0=_0x192218;let _0x5de661=_0x549f43[_0x33d1a0(0x38f)];if(!_0x5de661)return;let _0x14db51=_0x5de661[_0x33d1a0(0x26c)];if(_0x14db51[_0x33d1a0(0x281)]===_0x14db51[_0x33d1a0(0x22a)]){await _0x14db51[_0x33d1a0(0x4bf)]();return;}await _0x14db51[_0x33d1a0(0x22a)][_0x33d1a0(0x3ba)]();},_0x3be869=_0x1388b0||_0x5998ca,_0x289805=_0x1cac75&&!_0x3be869;return _0x2b00c1(_0x192218(0x442),{'ref':_0x549f43,'className':_0x192218(0x1ab)+(_0x5998ca?_0x192218(0x369):'univer-relative\x20univer-z-10')+_0x192218(0x3ae),'children':[!_0x3be869&&_0x2b00c1('header',{'className':_0x192218(0x415),'children':[_0x4dabb7(_0x433eb4,{'className':_0x192218(0x1bd)}),_0x4dabb7('h2',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0x2f172f['name']}),_0x4dabb7(_0x468217,{'target':{'unitId':_0x61af0d,'objectId':_0x275cd2(_0x4b4b2),'objectType':_0x4f7ac1[_0x192218(0x4d9)]},'name':_0x2f172f[_0x192218(0x329)],'commandId':_0x42d2ec['id'],'exists':()=>!!_0x2f9ad9['getDashboard'](_0x61af0d,_0x4b4b2)},_0x61af0d+'/'+_0x4b4b2),_0x4dabb7(_0xf8bfea,{'unitId':_0x61af0d}),_0x4dabb7(_0x1b3e3b,{'type':_0x192218(0x228),'size':_0x192218(0x432),'variant':'text','aria-label':_0x5aff02['t'](_0x192218(0x4ee)),'disabled':!_0x1cac75||_0x5af263[_0x192218(0x1fa)]===0x0,'onClick':()=>_0x32f623[_0x192218(0x1ff)](_0x4170dd['id'])[_0x192218(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x4f90a3,{})}),_0x4dabb7(_0x1b3e3b,{'type':_0x192218(0x228),'size':_0x192218(0x432),'variant':'text','aria-label':_0x5aff02['t'](_0x192218(0x1c8)),'disabled':!_0x1cac75||_0x5af263[_0x192218(0x2ce)]===0x0,'onClick':()=>_0x32f623[_0x192218(0x1ff)](_0x8d3b46['id'])[_0x192218(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x44a42f,{})}),_0x4dabb7(_0x1b3e3b,{'type':'button','size':_0x192218(0x432),'variant':_0x192218(0x452),'aria-label':_0x5aff02['t'](_0x192218(0x288)),'onClick':()=>_0x17b497()[_0x192218(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x54cca2,{})}),_0x4dabb7(_0x492a1e,{'items':_0x4c0e08,'children':_0x2b00c1(_0x1b3e3b,{'variant':_0x192218(0x37f),'disabled':!_0x1cac75,'children':[_0x4dabb7(_0x5155a3,{}),_0x5aff02['t'](_0x192218(0x4b0))]})})]}),_0x2b00c1(_0x192218(0x442),{'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1','children':[_0x4dabb7(_0x192218(0x442),{'className':_0x192218(0x290),'children':_0x4dabb7(la,{'dashboard':_0x2f172f,'dragLabel':_0x5aff02['t'](_0x192218(0x32c)),'editable':_0x289805,'resizeLabel':_0x5aff02['t'](_0x192218(0x398)),'widgetLabel':_0x229786=>_0x5aff02['t'](to(_0x229786[_0x192218(0x393)])),'selectedWidgetId':_0x289805?_0x2d653c:void 0x0,'onSelectWidget':_0x289805?_0x37c04b=>{_0x1287d3(_0x37c04b),_0x37c04b||_0x36e3b3(!0x1);}:void 0x0,'onLayoutsCommit':_0x44eeb7=>{const _0x449b7b=_0x192218;let _0xd6b521={..._0x2f172f[_0x449b7b(0x4e1)]};_0x44eeb7[_0x449b7b(0x3c0)]((_0x3d7e54,_0x4a2a62)=>{let _0x3cf33d=_0xd6b521[_0x4a2a62];_0x3cf33d&&(_0xd6b521[_0x4a2a62]={..._0x3cf33d,'layout':_0x3d7e54});}),_0x32f623[_0x449b7b(0x1ff)](_0x5cbeb4['id'],{'unitId':_0x61af0d,'dashboard':{..._0x2f172f,'widgets':_0xd6b521}})[_0x449b7b(0x3d2)](()=>void 0x0);},'renderWidget':_0x23d73c=>_0x4dabb7(Ya,{'base':_0x2f3771,'dashboard':_0x2f172f,'unitId':_0x61af0d,'widget':_0x23d73c,'onChange':_0x4c0942,'onChartRuntimeChange':_0x6d8894}),'renderWidgetActions':_0x57046d=>_0x4dabb7(qa,{'onEdit':()=>{_0x1287d3(_0x57046d['id']),_0x36e3b3(!0x0);},'onDelete':()=>{const _0x5cb3a8=_0x192218;_0x2d653c===_0x57046d['id']&&(_0x1287d3(void 0x0),_0x36e3b3(!0x1)),_0x32f623[_0x5cb3a8(0x1ff)](_0x20648d['id'],{'unitId':_0x61af0d,'dashboardId':_0x4b4b2,'widgetId':_0x57046d['id']})[_0x5cb3a8(0x3d2)](()=>void 0x0);}})})}),_0x289805&&_0x24a903&&_0x5a4756&&_0x4dabb7(za,{'base':_0x2f3771,'chartRuntime':_0x41df4d['get'](_0x5a4756['id']),'unitId':_0x61af0d,'widget':_0x5a4756,'onChange':_0x4c0942,'onClose':()=>_0x36e3b3(!0x1),'onSelectBackgroundImage':()=>eo(_0x338ef3),'onSelectImage':()=>$a(_0x13916e)})]})]});}function Ya({base:_0x2aebc1,dashboard:_0xb70bd7,onChange:_0x99c138,onChartRuntimeChange:_0x204ec8,unitId:_0x4782c6,widget:_0x56588c}){const _0x42fc9c=_0x2353bc;let _0x23d631=_0x56a185(()=>_0xb70bd7[_0x42fc9c(0x362)][_0x42fc9c(0x3bc)](_0x12960f=>{const _0x38f07f=_0x42fc9c;let _0x4db1c4=_0xb70bd7[_0x38f07f(0x4e1)][_0x12960f];return(_0x4db1c4==null?void 0x0:_0x4db1c4[_0x38f07f(0x393)])===_0x342116['TableFilter']&&_0x4db1c4[_0x38f07f(0x475)]===('tableId'in _0x56588c?_0x56588c[_0x38f07f(0x475)]:'')&&_0x4db1c4[_0x38f07f(0x1b3)]?[_0x4db1c4[_0x38f07f(0x1b3)]]:[];}),[_0xb70bd7,_0x56588c]);switch(_0x56588c[_0x42fc9c(0x393)]){case _0x342116['PivotChart']:return _0x4dabb7(Lr,{'filters':_0x23d631,'unitId':_0x4782c6,'widget':_0x56588c,'onRuntimeChange':_0x204ec8});case _0x342116['TableFilter']:return _0x4dabb7(wa,{'fields':Xa(_0x2aebc1,_0x56588c[_0x42fc9c(0x475)]),'filter':_0x56588c['filter'],'onChange':_0x3bbb8e=>_0x99c138({..._0x56588c,'filter':_0x3bbb8e})['catch'](()=>void 0x0)});case _0x342116[_0x42fc9c(0x298)]:return _0x4dabb7(Ur,{'widget':_0x56588c});case _0x342116[_0x42fc9c(0x4ae)]:return _0x4dabb7(Za,{'widget':_0x56588c});case _0x342116[_0x42fc9c(0x36e)]:return _0x4dabb7(Dr,{'dashboardId':_0xb70bd7['id'],'unitId':_0x4782c6,'widget':_0x56588c});}}function Xa(_0x484a53,_0x2a7776){const _0x38a23e=_0x2353bc;let _0x196454=_0x484a53['getSnapshot']()[_0x38a23e(0x39c)][_0x2a7776],_0x27b8ce=_0x196454==null?void 0x0:_0x196454['viewOrder'][_0x38a23e(0x397)](_0x23f3c5=>_0x196454[_0x38a23e(0x451)][_0x23f3c5]),_0x3b65ea=_0x27b8ce?_0x196454==null?void 0x0:_0x196454[_0x38a23e(0x451)][_0x27b8ce]:void 0x0;return _0x196454&&_0x3b65ea?_0x5249f3(_0x196454,_0x3b65ea):[];}function Za({widget:_0x5bfa53}){const _0x13a110=_0x2353bc;let _0x19aef0=_0x39b411(_0x4d763c),[_0x431066,_0x256d8d]=_0x2be63d(_0x5bfa53['sourceType']===_0x26a785[_0x13a110(0x43f)]?'':_0x5bfa53[_0x13a110(0x24c)]);return _0x38e78f(()=>{const _0x2c4d59=_0x13a110;let _0x1f02b3=!0x0;return _0x19aef0[_0x2c4d59(0x4c6)](_0x5bfa53[_0x2c4d59(0x24c)],_0x5bfa53[_0x2c4d59(0x4b3)])[_0x2c4d59(0x388)](_0x44d972=>{_0x1f02b3&&_0x256d8d(_0x44d972);})[_0x2c4d59(0x3d2)](()=>void 0x0),()=>{_0x1f02b3=!0x1;};},[_0x19aef0,_0x5bfa53[_0x13a110(0x24c)],_0x5bfa53[_0x13a110(0x4b3)]]),_0x431066?_0x4dabb7(_0x13a110(0x442),{'role':_0x5bfa53['alt']?_0x13a110(0x1ed):void 0x0,'aria-label':_0x5bfa53[_0x13a110(0x3d8)]||void 0x0,'data-dashboard-image':_0x5bfa53['id'],'className':_0x13a110(0x203),'style':vr(_0x431066,_0x5bfa53[_0x13a110(0x4a6)])}):null;}function Qa(){const _0x591636=_0x2353bc;let _0x53d73c=_0x112de2(new Set());return{'id':_0x591636(0x3de)+_0x325e5d(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x53d73c}]},'documentStyle':{}};}function $a(_0xa8aecb){return new Promise(_0x4078c4=>{const _0x464b05=_0x1cf6;let _0x3fd98e=document[_0x464b05(0x3d6)](_0x464b05(0x4d3));_0x3fd98e['type']='file',_0x3fd98e[_0x464b05(0x461)]=_0x464b05(0x469),_0x3fd98e[_0x464b05(0x1d1)]('change',()=>{const _0x59c1a8=_0x464b05;var _0x40fd04;let _0xdcf2a=(_0x40fd04=_0x3fd98e[_0x59c1a8(0x438)])==null?void 0x0:_0x40fd04[0x0];if(!_0xdcf2a){_0x4078c4(null);return;}_0xa8aecb[_0x59c1a8(0x504)](_0xdcf2a)[_0x59c1a8(0x388)](_0x40b842=>{const _0x1a4b18=_0x59c1a8;if(!_0x40b842[_0x1a4b18(0x24c)]||_0x40b842['sourceType']===void 0x0){_0x4078c4(null);return;}_0x4078c4({'name':_0x40b842[_0x1a4b18(0x329)],'source':_0x40b842['source'],'sourceType':_0x40b842[_0x1a4b18(0x4b3)]});})[_0x59c1a8(0x3d2)](()=>_0x4078c4(null));},{'once':!0x0}),_0x3fd98e[_0x464b05(0x3ab)]();});}function eo(_0x363cef){return new Promise(_0x289258=>{const _0x58dcdd=_0x1cf6;let _0x53b1d1=document[_0x58dcdd(0x3d6)](_0x58dcdd(0x4d3));_0x53b1d1[_0x58dcdd(0x393)]='file',_0x53b1d1[_0x58dcdd(0x461)]=_0x58dcdd(0x469),_0x53b1d1[_0x58dcdd(0x1d1)](_0x58dcdd(0x48a),()=>{const _0x309562=_0x58dcdd;var _0x50298f;let _0x314ff0=(_0x50298f=_0x53b1d1[_0x309562(0x438)])==null?void 0x0:_0x50298f[0x0];if(!_0x314ff0){_0x289258(null);return;}_0x363cef[_0x309562(0x3dc)](_0x314ff0)['then'](_0x57b342=>{const _0x50ff60=_0x309562;if(!(_0x57b342!=null&&_0x57b342[_0x50ff60(0x24c)])){_0x289258(null);return;}if(_0x57b342[_0x50ff60(0x308)]){let _0x16604c=new Image();_0x16604c['src']=_0x57b342[_0x50ff60(0x308)],_0x363cef['addImageSourceCache'](_0x57b342['source'],_0x57b342['imageSourceType'],_0x16604c);}_0x289258({'source':_0x57b342[_0x50ff60(0x24c)],'sourceType':_0x57b342[_0x50ff60(0x23d)]});})[_0x309562(0x3d2)](()=>_0x289258(null));},{'once':!0x0}),_0x53b1d1['click']();});}function to(_0x5c1f3a){const _0x2fe032=_0x2353bc;switch(_0x5c1f3a){case _0x342116[_0x2fe032(0x3a3)]:return _0x2fe032(0x350);case _0x342116[_0x2fe032(0x296)]:return _0x2fe032(0x396);case _0x342116['Text']:return'bases-dashboard-ui.dashboard.text';case _0x342116[_0x2fe032(0x4ae)]:return _0x2fe032(0x293);case _0x342116[_0x2fe032(0x36e)]:return _0x2fe032(0x268);}}function no(_0x4fe6a8){const _0xa92f1b=_0x2353bc;return(_0x4fe6a8==null?void 0x0:_0x4fe6a8[_0xa92f1b(0x393)])===_0x5ee6b5[_0xa92f1b(0x49c)]&&typeof _0x4fe6a8[_0xa92f1b(0x4e8)]=='object'&&_0x4fe6a8[_0xa92f1b(0x4e8)]!==null&&_0xa92f1b(0x4aa)in _0x4fe6a8['config']&&_0xa92f1b(0x4d8)in _0x4fe6a8['config'];}const ro=[{'area':_0x4c815c[_0x2353bc(0x3b4)],'key':_0x2353bc(0x2e1),'label':'bases-dashboard-ui.pivot.filters'},{'area':_0x4c815c['Column'],'key':'columnFields','label':_0x2353bc(0x318)},{'area':_0x4c815c[_0x2353bc(0x456)],'key':'rowFields','label':'bases-dashboard-ui.pivot.rows'},{'area':_0x4c815c['Value'],'key':_0x2353bc(0x1f9),'label':_0x2353bc(0x326)}],io=[{'value':_0x282c8a[_0x2353bc(0x2bf)],'localeKey':_0x2353bc(0x3b2)},{'value':_0x282c8a[_0x2353bc(0x349)],'localeKey':_0x2353bc(0x29c)},{'value':_0x282c8a[_0x2353bc(0x3c8)],'localeKey':_0x2353bc(0x48c)},{'value':_0x282c8a[_0x2353bc(0x4f0)],'localeKey':_0x2353bc(0x3e4)},{'value':_0x282c8a[_0x2353bc(0x2eb)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':_0x282c8a['min'],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x282c8a[_0x2353bc(0x2d6)],'localeKey':_0x2353bc(0x44c)},{'value':_0x282c8a[_0x2353bc(0x2a7)],'localeKey':'bases-dashboard-ui.pivot.stdDev'},{'value':_0x282c8a[_0x2353bc(0x1c2)],'localeKey':_0x2353bc(0x360)},{'value':_0x282c8a[_0x2353bc(0x218)],'localeKey':_0x2353bc(0x2b9)},{'value':_0x282c8a[_0x2353bc(0x22c)],'localeKey':_0x2353bc(0x3e0)}];function ao(_0x196a6b){const _0x591c84=_0x2353bc;let {config:_0x513f87,onChange:_0x597b18,table:_0x3bc7f4}=_0x196a6b,_0x735190=_0x39b411(_0x5cd3ee),[_0x225d2b,_0x1f1cd4]=_0x2be63d('fields'),[_0x2d77e2,_0x4f81dc]=_0x2be63d(''),[_0x48e8d4,_0x2fe53d]=_0x2be63d(null),[_0x388552,_0x1c30ed]=_0x2be63d(null),[_0x4cd760,_0x44bf09]=_0x2be63d(null),[_0x58a3f4,_0x2de9ce]=_0x2be63d(null),_0xb6f816=_0x35f949(null),_0x57add6=_0x56a185(()=>_0x3bc7f4[_0x591c84(0x457)][_0x591c84(0x3bc)](_0x1c7e00=>{const _0x5d3b04=_0x591c84;let _0x32e41a=_0x3bc7f4[_0x5d3b04(0x273)][_0x1c7e00];return _0x32e41a&&_0x32e41a[_0x5d3b04(0x4de)]!==!0x0&&_0x32e41a[_0x5d3b04(0x393)]!==_0x557eea['RecordId']?[_0x32e41a]:[];})['filter'](_0x4f7368=>_0x4f7368[_0x591c84(0x329)][_0x591c84(0x49d)]()['includes'](_0x2d77e2[_0x591c84(0x3ee)]()[_0x591c84(0x49d)]())),[_0x2d77e2,_0x3bc7f4]),_0x1fed30=_0x17ea25=>{const _0x14e4ec=_0x591c84;let _0x3ff40f=_0x1c8584(_0x3bc7f4,_0x513f87[_0x14e4ec(0x4aa)]);try{_0x17ea25(_0x3ff40f),_0x597b18({'pivot':_0x3ff40f[_0x14e4ec(0x2f5)]()});}finally{_0x3ff40f[_0x14e4ec(0x2d9)]();}},_0x1b0a85=(_0x7b5351,_0x5cb9cb)=>{_0x48e8d4&&(_0x1fed30(_0x4ce258=>{const _0x4b1d81=_0x1cf6;if(_0x48e8d4[_0x4b1d81(0x29e)]==='field'){let _0x17cbb6=_0x4ce258[_0x4b1d81(0x316)](_0x48e8d4['id']),_0x332399=_0x17cbb6[_0x4b1d81(0x269)]===_0x7b5351&&_0x17cbb6[_0x4b1d81(0x32a)]<_0x5cb9cb?_0x5cb9cb-0x1:_0x5cb9cb;_0x4ce258[_0x4b1d81(0x1b0)](_0x48e8d4['id'],_0x7b5351,_0x332399);return;}mo(_0x4ce258,_0x48e8d4['id'],_0x7b5351,_0x5cb9cb);}),_0x2fe53d(null),_0x1c30ed(null));};return _0x2b00c1(_0x591c84(0x442),{'className':_0x591c84(0x301),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x735190['t'](_0x591c84(0x4a7)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x735190['t'](_0x591c84(0x2a5)),'panelId':'base-pivot-fields','value':_0x591c84(0x273)},{'label':_0x735190['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x591c84(0x27b),'value':'options'}],'value':_0x225d2b,'onChange':_0x1f1cd4}),_0x4dabb7(_0x591c84(0x442),{'ref':_0xb6f816,'className':_0x52fed8(_0x591c84(0x2fb),_0x2a22a5),'onDragOver':_0xa3e2f5=>{const _0x2ff0c8=_0x591c84;let _0x4619b9=_0xb6f816['current'];if(!_0x4619b9)return;let _0x2c1fc2=_0x4619b9[_0x2ff0c8(0x4db)]();_0xa3e2f5[_0x2ff0c8(0x408)]<_0x2c1fc2['top']+0x30?_0x4619b9['scrollTop']-=0x10:_0xa3e2f5[_0x2ff0c8(0x408)]>_0x2c1fc2[_0x2ff0c8(0x2d0)]-0x30&&(_0x4619b9['scrollTop']+=0x10);},'children':_0x225d2b===_0x591c84(0x320)?_0x4dabb7(po,{'config':_0x513f87,'commit':_0x1fed30}):_0x2b00c1(_0x591c84(0x442),{'className':_0x591c84(0x4f1),'children':[_0x2b00c1('div',{'children':[_0x4dabb7(_0x591c84(0x442),{'className':_0x591c84(0x47c),'children':_0x735190['t'](_0x591c84(0x4a8))}),_0x4dabb7(_0x2c53ee,{'allowClear':!0x0,'slot':_0x4dabb7(_0x51aac6,{}),'value':_0x2d77e2,'placeholder':_0x735190['t'](_0x591c84(0x35a)),'onChange':_0x4f81dc}),_0x4dabb7(_0x591c84(0x442),{'className':_0x591c84(0x351),'children':_0x57add6['map'](_0x54de93=>_0x4dabb7(oo,{'config':_0x513f87,'field':_0x54de93,'onAdd':_0xa244c8=>_0x1fed30(_0x207da4=>mo(_0x207da4,_0x54de93['id'],_0xa244c8,_0x207da4[_0x591c84(0x38a)](_0xa244c8))),'onCheckedChange':_0x12e012=>_0x1fed30(_0x1e84ce=>{const _0x2a082a=_0x591c84;let _0xf83847=_0x1e84ce['getTableFieldsByDataFieldId'](_0x54de93['id']);if(!_0x12e012){_0xf83847[_0x2a082a(0x3c0)](_0xc27b3a=>_0x1e84ce['removeField'](_0xc27b3a[_0x2a082a(0x1ae)]()));return;}if(_0xf83847[_0x2a082a(0x4da)]===0x0){let _0x5f188a=go(_0x54de93)?_0x4c815c[_0x2a082a(0x47a)]:_0x4c815c['Row'];_0x1e84ce[_0x2a082a(0x3fa)](_0x54de93['id'],_0x5f188a);}}),'onDragStart':()=>_0x2fe53d({'kind':'source','id':_0x54de93['id']})},_0x54de93['id']))})]}),_0x4dabb7('div',{'className':_0x591c84(0x478),'children':ro[_0x591c84(0x3ff)](_0x17d04b=>_0x4dabb7(co,{'area':_0x17d04b[_0x591c84(0x269)],'dropTarget':_0x388552,'fields':_0x513f87[_0x591c84(0x4aa)][_0x17d04b['key']],'label':_0x735190['t'](_0x17d04b['label']),'snapshot':_0x513f87[_0x591c84(0x4aa)],'onDragEnd':()=>{_0x2fe53d(null),_0x1c30ed(null);},'onDragStart':_0x5aa0ec=>_0x2fe53d({'kind':_0x591c84(0x506),'id':_0x5aa0ec,'area':_0x17d04b[_0x591c84(0x269)]}),'onDragOver':_0x3a04ac=>_0x1c30ed({'area':_0x17d04b[_0x591c84(0x269)],'index':_0x3a04ac}),'onDrop':_0x2ffcdf=>_0x1b0a85(_0x17d04b[_0x591c84(0x269)],_0x2ffcdf),'onFilter':_0x44bf09,'onRemove':_0x59cfa5=>_0x1fed30(_0x3318b5=>_0x3318b5['removeField'](_0x59cfa5)),'onSettings':_0x2de9ce},_0x17d04b[_0x591c84(0x269)]))}),_0x4cd760&&_0x4dabb7(uo,{'fieldId':_0x4cd760,'snapshot':_0x513f87[_0x591c84(0x4aa)],'table':_0x3bc7f4,'onCancel':()=>_0x44bf09(null),'onCommit':(_0x395414,_0x8a8a2)=>{_0x1fed30(_0x3c84ea=>{const _0xd2ebd=_0x1cf6;let _0x463390=_0x3c84ea['getDataFieldByTableId'](_0x4cd760),_0x595004=(_0x463390==null?void 0x0:_0x463390[_0xd2ebd(0x41c)])??[];_0x3c84ea[_0xd2ebd(0x4c2)](_0x4cd760,{'type':_0x1b814d[_0xd2ebd(0x468)],'list':_0x395414,'isAll':_0x395414['length']===_0x595004[_0xd2ebd(0x4da)]}),_0x3c84ea[_0xd2ebd(0x263)](_0x4cd760,_0x8a8a2===void 0x0?void 0x0:{'type':_0x8a8a2});}),_0x44bf09(null);}},_0x4cd760),_0x58a3f4&&_0x4dabb7(fo,{'field':_0x513f87[_0x591c84(0x4aa)][_0x591c84(0x1c7)][_0x58a3f4],'onCancel':()=>_0x2de9ce(null),'onCommit':(_0x27c6f4,_0xb267cd,_0x4f6348)=>{_0x1fed30(_0x5215f8=>{const _0x3ec3f1=_0x1cf6;_0x5215f8[_0x3ec3f1(0x1e8)](_0x58a3f4,_0x27c6f4),_0x5215f8[_0x3ec3f1(0x467)](_0x58a3f4,_0xb267cd),_0x5215f8[_0x3ec3f1(0x2de)](_0x58a3f4,_0x4f6348||void 0x0);}),_0x2de9ce(null);}},_0x58a3f4)]})})]});}function oo(_0x2d6ad0){const _0x181f56=_0x2353bc;let {config:_0x268b9c,field:_0x4cf084,onAdd:_0x5281f8,onCheckedChange:_0x16ce41,onDragStart:_0x2b6a1d}=_0x2d6ad0,_0x56a454=_0x39b411(_0x5cd3ee),_0x3d625c=[...Object[_0x181f56(0x4ad)](_0x268b9c[_0x181f56(0x4aa)]['dimension']),...Object[_0x181f56(0x4ad)](_0x268b9c['pivot'][_0x181f56(0x1c7)])]['some'](_0x2759ba=>_0x2759ba['dataFieldId']===_0x4cf084['id']),_0x5cede8=ro[_0x181f56(0x3ff)](_0x446f93=>({'type':_0x181f56(0x423),'children':_0x56a454['t'](_o(_0x446f93[_0x181f56(0x269)])),'onSelect':()=>_0x5281f8(_0x446f93[_0x181f56(0x269)])}));return _0x2b00c1(_0x181f56(0x442),{'draggable':!0x0,'className':_0x181f56(0x473),'onDragStart':_0x2b6a1d,'children':[_0x4dabb7(_0x1487d8,{'className':_0x181f56(0x28e)}),_0x4dabb7(_0x3cc061,{'checked':_0x3d625c,'onChange':_0x581d79=>_0x16ce41(!!_0x581d79)}),_0x4dabb7(so,{'field':_0x4cf084}),_0x4dabb7(_0x181f56(0x3ec),{'className':_0x181f56(0x3bf),'children':_0x4cf084['name']}),_0x4dabb7(_0x492a1e,{'align':_0x181f56(0x236),'items':_0x5cede8,'children':_0x4dabb7('span',{'className':'univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','children':_0x4dabb7(_0xf77a3b,{})})})]});}function so({field:_0x338bc3}){const _0x576b39=_0x2353bc;return go(_0x338bc3)?_0x4dabb7(_0x5a5ded,{'className':'univer-text-gray-400'}):_0x338bc3[_0x576b39(0x393)]===_0x557eea[_0x576b39(0x4e7)]||_0x338bc3[_0x576b39(0x393)]===_0x557eea[_0x576b39(0x2fa)]||_0x338bc3[_0x576b39(0x393)]===_0x557eea[_0x576b39(0x4a2)]?_0x4dabb7(_0x951fbe,{'className':_0x576b39(0x28e)}):_0x4dabb7(_0x264f2e,{'className':_0x576b39(0x28e)});}function co(_0x440d97){const _0x1d52f4=_0x2353bc;let {area:_0x1cd686,dropTarget:_0x38b906,fields:_0x551959,label:_0x1e1422,snapshot:_0x1a0bcd}=_0x440d97,_0x18c69b=_0x39b411(_0x5cd3ee);return _0x2b00c1(_0x1d52f4(0x482),{'className':_0x52fed8(_0x1d52f4(0x458),_0x1298ac),'onDragOver':_0x111f63=>{const _0x4f39e5=_0x1d52f4;_0x111f63['preventDefault'](),_0x440d97['onDragOver'](_0x551959[_0x4f39e5(0x4da)]);},'onDrop':_0x6e9980=>{const _0x1e8e7b=_0x1d52f4;_0x6e9980[_0x1e8e7b(0x3ca)](),_0x440d97[_0x1e8e7b(0x20c)]((_0x38b906==null?void 0x0:_0x38b906[_0x1e8e7b(0x269)])===_0x1cd686?_0x38b906[_0x1e8e7b(0x32a)]:_0x551959[_0x1e8e7b(0x4da)]);},'children':[_0x4dabb7(_0x1d52f4(0x442),{'className':_0x1d52f4(0x356),'children':_0x1e1422}),_0x2b00c1(_0x1d52f4(0x442),{'className':_0x1d52f4(0x378),'children':[_0x551959['map']((_0x3f4b06,_0x4e9905)=>{const _0x4376dc=_0x1d52f4;let _0x586f72=_0x1a0bcd[_0x4376dc(0x46a)][_0x3f4b06]??_0x1a0bcd[_0x4376dc(0x1c7)][_0x3f4b06];if(!_0x586f72)return null;let _0x3dfd09=(_0x38b906==null?void 0x0:_0x38b906[_0x4376dc(0x269)])===_0x1cd686&&_0x38b906[_0x4376dc(0x32a)]===_0x4e9905;return _0x2b00c1(_0x4376dc(0x442),{'onDragOver':_0x38c344=>{const _0x5e6c91=_0x4376dc;_0x38c344[_0x5e6c91(0x3ca)](),_0x38c344['stopPropagation']();let _0x485e80=_0x38c344['currentTarget'][_0x5e6c91(0x4db)]();_0x440d97[_0x5e6c91(0x4cb)](_0x4e9905+ +(_0x38c344['clientY']>_0x485e80[_0x5e6c91(0x45e)]+_0x485e80['height']/0x2));},'onDrop':_0x4fd0cf=>{const _0xc24946=_0x4376dc;_0x4fd0cf[_0xc24946(0x3ca)](),_0x4fd0cf['stopPropagation'](),_0x440d97['onDrop']((_0x38b906==null?void 0x0:_0x38b906[_0xc24946(0x269)])===_0x1cd686?_0x38b906[_0xc24946(0x32a)]:_0x4e9905);},'children':[_0x3dfd09&&_0x4dabb7(_0x4376dc(0x442),{'className':_0x4376dc(0x278)}),_0x4dabb7(lo,{'area':_0x1cd686,'field':_0x586f72,'onDragEnd':_0x440d97['onDragEnd'],'onDragStart':()=>_0x440d97[_0x4376dc(0x38d)](_0x3f4b06),'onFilter':()=>_0x440d97[_0x4376dc(0x49e)](_0x3f4b06),'onRemove':()=>_0x440d97[_0x4376dc(0x287)](_0x3f4b06),'onSettings':()=>_0x440d97[_0x4376dc(0x373)](_0x3f4b06)})]},_0x3f4b06);}),(_0x38b906==null?void 0x0:_0x38b906['area'])===_0x1cd686&&_0x38b906[_0x1d52f4(0x32a)]===_0x551959[_0x1d52f4(0x4da)]&&_0x4dabb7('div',{'className':_0x1d52f4(0x278)}),_0x551959[_0x1d52f4(0x4da)]===0x0&&_0x4dabb7(_0x1d52f4(0x442),{'className':_0x1d52f4(0x279),'children':_0x18c69b['t'](_0x1d52f4(0x29a))})]})]});}function lo(_0x35dc66){const _0x5d9ee5=_0x2353bc;let _0x15a9b6=_0x39b411(_0x5cd3ee),_0x5a265e=_0x35dc66['area']===_0x4c815c[_0x5d9ee5(0x47a)],_0x55199a=[{'type':_0x5d9ee5(0x423),'children':_0x15a9b6['t'](_0x5d9ee5(0x404)),'onSelect':_0x35dc66[_0x5d9ee5(0x287)]},{'type':'item','children':_0x15a9b6['t'](_0x5a265e?'bases-dashboard-ui.pivot.fieldSettings':_0x5d9ee5(0x3a1)),'onSelect':_0x5a265e?_0x35dc66[_0x5d9ee5(0x373)]:_0x35dc66[_0x5d9ee5(0x49e)]}];return _0x2b00c1('div',{'draggable':!0x0,'className':'univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','onDragEnd':_0x35dc66[_0x5d9ee5(0x31c)],'onDragStart':_0x35dc66[_0x5d9ee5(0x38d)],'children':[_0x4dabb7(_0x1487d8,{'className':_0x5d9ee5(0x28e)}),_0x4dabb7(_0x56b693,{'title':_0x35dc66[_0x5d9ee5(0x506)][_0x5d9ee5(0x2a9)],'children':_0x4dabb7(_0x5d9ee5(0x3ec),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x35dc66[_0x5d9ee5(0x506)][_0x5d9ee5(0x2a9)]})}),_0x4dabb7(_0x492a1e,{'align':_0x5d9ee5(0x236),'items':_0x55199a,'children':_0x4dabb7(_0x5d9ee5(0x3ec),{'className':_0x5d9ee5(0x3bb),'children':_0x4dabb7(_0xf77a3b,{})})})]});}function uo(_0x249734){const _0x9c3e57=_0x2353bc;var _0x52c4de,_0x24330d;let _0x374880=_0x39b411(_0x5cd3ee),{format:_0x538cba,items:_0x10473d,itemTypes:_0x5927e3}=_0x56a185(()=>{const _0x5c64a4=_0x1cf6;let _0x183e12=_0x1c8584(_0x249734[_0x5c64a4(0x4bb)],_0x249734[_0x5c64a4(0x1d0)]);try{let _0x10a588=_0x183e12[_0x5c64a4(0x3b7)](_0x249734[_0x5c64a4(0x43d)]);return{'format':_0x10a588==null?void 0x0:_0x10a588[_0x5c64a4(0x347)],'items':[...(_0x10a588==null?void 0x0:_0x10a588[_0x5c64a4(0x41c)])??[]],'itemTypes':[...(_0x10a588==null?void 0x0:_0x10a588[_0x5c64a4(0x4ed)])??[]]};}finally{_0x183e12[_0x5c64a4(0x2d9)]();}},[_0x249734[_0x9c3e57(0x43d)],_0x249734[_0x9c3e57(0x1d0)],_0x249734[_0x9c3e57(0x4bb)]]),_0x3f0462=(_0x52c4de=_0x249734[_0x9c3e57(0x1d0)][_0x9c3e57(0x46a)][_0x249734['fieldId']])==null?void 0x0:_0x52c4de['filterInfo'],[_0x4283f6,_0x5f2a54]=_0x2be63d((_0x3f0462==null?void 0x0:_0x3f0462[_0x9c3e57(0x393)])===_0x1b814d[_0x9c3e57(0x468)]?_0x3f0462[_0x9c3e57(0x4ea)]:_0x10473d),[_0x2068dc,_0x1e3648]=_0x2be63d((_0x24330d=_0x249734['snapshot'][_0x9c3e57(0x46a)][_0x249734[_0x9c3e57(0x43d)]])==null||(_0x24330d=_0x24330d[_0x9c3e57(0x1e0)])==null?void 0x0:_0x24330d[_0x9c3e57(0x393)]),_0x58b9e3=_0x4283f6[_0x9c3e57(0x4da)]===_0x10473d[_0x9c3e57(0x4da)];return _0x2b00c1(_0x9c3e57(0x482),{'className':_0x52fed8(_0x9c3e57(0x3f6),_0x1298ac),'children':[_0x4dabb7('div',{'className':_0x9c3e57(0x306),'children':_0x374880['t'](_0x9c3e57(0x3a1))}),_0x2b00c1(_0x9c3e57(0x442),{'className':_0x9c3e57(0x414),'children':[_0x2b00c1(_0x1b3e3b,{'className':_0x9c3e57(0x342),'variant':_0x2068dc===_0x428fd4['ascending']?'primary':_0x9c3e57(0x431),'onClick':()=>_0x1e3648(_0x428fd4[_0x9c3e57(0x21b)]),'children':[_0x4dabb7(_0x4c6d55,{}),_0x374880['t'](_0x9c3e57(0x43a))]}),_0x2b00c1(_0x1b3e3b,{'className':_0x9c3e57(0x342),'variant':_0x2068dc===_0x428fd4[_0x9c3e57(0x229)]?'primary':'default','onClick':()=>_0x1e3648(_0x428fd4['descending']),'children':[_0x4dabb7(_0x59e3b9,{}),_0x374880['t'](_0x9c3e57(0x2b2))]})]}),_0x2b00c1('div',{'className':_0x9c3e57(0x302),'children':[_0x2b00c1(_0x9c3e57(0x3b0),{'className':_0x9c3e57(0x334),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x58b9e3,'indeterminate':_0x4283f6[_0x9c3e57(0x4da)]>0x0&&!_0x58b9e3,'onChange':()=>_0x5f2a54(_0x58b9e3?[]:_0x10473d)}),_0x374880['t'](_0x9c3e57(0x368))]}),_0x10473d[_0x9c3e57(0x3ff)]((_0x32cb90,_0x511a22)=>_0x2b00c1(_0x9c3e57(0x3b0),{'className':_0x9c3e57(0x334),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x4283f6['includes'](_0x32cb90),'onChange':()=>_0x5f2a54(_0x319320=>_0x319320['includes'](_0x32cb90)?_0x319320[_0x9c3e57(0x1b3)](_0x10accf=>_0x10accf!==_0x32cb90):[..._0x319320,_0x32cb90])}),_0x4dabb7('span',{'className':_0x9c3e57(0x226),'children':ho(_0x32cb90,_0x5927e3[_0x511a22],_0x538cba,_0x374880['t'](_0x9c3e57(0x2a2)))})]},_0x32cb90))]}),_0x2b00c1(_0x9c3e57(0x442),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[_0x4dabb7(_0x1b3e3b,{'variant':_0x9c3e57(0x31a),'onClick':()=>_0x249734[_0x9c3e57(0x434)](_0x10473d,_0x2068dc),'children':_0x374880['t'](_0x9c3e57(0x2d3))}),_0x2b00c1(_0x9c3e57(0x442),{'className':_0x9c3e57(0x4cf),'children':[_0x4dabb7(_0x1b3e3b,{'onClick':_0x249734['onCancel'],'children':_0x374880['t']('bases-dashboard-ui.pivot.cancel')}),_0x4dabb7(_0x1b3e3b,{'variant':_0x9c3e57(0x37f),'disabled':_0x4283f6[_0x9c3e57(0x4da)]===0x0,'onClick':()=>_0x249734[_0x9c3e57(0x434)](_0x4283f6,_0x2068dc),'children':_0x374880['t'](_0x9c3e57(0x325))})]})]})]});}function fo(_0x45cdce){const _0x375d86=_0x2353bc;var _0x3e6696,_0x54fc46,_0x46a65d;let _0x4e4fb7=_0x39b411(_0x5cd3ee),[_0x2d524f,_0x1b2cca]=_0x2be63d(((_0x3e6696=_0x45cdce[_0x375d86(0x506)])==null?void 0x0:_0x3e6696['displayName'])??''),[_0x3fc751,_0x53c046]=_0x2be63d(((_0x54fc46=_0x45cdce[_0x375d86(0x506)])==null?void 0x0:_0x54fc46[_0x375d86(0x2cc)])??_0x282c8a[_0x375d86(0x2bf)]),[_0x46562e,_0x394a78]=_0x2be63d(((_0x46a65d=_0x45cdce[_0x375d86(0x506)])==null?void 0x0:_0x46a65d['format'])??'');return _0x45cdce['field']?_0x2b00c1(_0x375d86(0x482),{'className':_0x52fed8(_0x375d86(0x50c),_0x1298ac),'children':[_0x4dabb7(_0x375d86(0x442),{'className':_0x375d86(0x441),'children':_0x4e4fb7['t'](_0x375d86(0x2c7))}),_0x2b00c1(_0x375d86(0x3b0),{'className':_0x375d86(0x4a3),'children':[_0x4e4fb7['t'](_0x375d86(0x1c9)),_0x4dabb7(_0x2c53ee,{'value':_0x2d524f,'onChange':_0x1b2cca})]}),_0x2b00c1(_0x375d86(0x3b0),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x4e4fb7['t'](_0x375d86(0x2c0)),_0x4dabb7(_0xce6b1b,{'value':String(_0x3fc751),'options':io[_0x375d86(0x3ff)](_0xb70e3f=>({'value':String(_0xb70e3f['value']),'label':_0x4e4fb7['t'](_0xb70e3f['localeKey'])})),'onChange':_0x2db5be=>{const _0x4c93c3=_0x375d86;let _0x5db262=io['find'](_0x5191f5=>String(_0x5191f5['value'])===_0x2db5be);_0x5db262&&_0x53c046(_0x5db262[_0x4c93c3(0x284)]);}})]}),_0x2b00c1('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x4e4fb7['t'](_0x375d86(0x3e8)),_0x4dabb7(_0x2c53ee,{'value':_0x46562e,'onChange':_0x394a78})]}),_0x2b00c1('div',{'className':_0x375d86(0x4f9),'children':[_0x4dabb7(_0x1b3e3b,{'onClick':_0x45cdce[_0x375d86(0x4f7)],'children':_0x4e4fb7['t'](_0x375d86(0x376))}),_0x4dabb7(_0x1b3e3b,{'variant':_0x375d86(0x37f),'disabled':!_0x2d524f[_0x375d86(0x3ee)](),'onClick':()=>_0x45cdce['onCommit'](_0x2d524f[_0x375d86(0x3ee)](),_0x3fc751,_0x46562e),'children':_0x4e4fb7['t']('bases-dashboard-ui.pivot.confirm')})]})]}):null;}function po(_0x1bd56d){const _0x353dc8=_0x2353bc;let {config:_0x3cc06e,commit:_0x1bd2fc}=_0x1bd56d,_0x4a93be=_0x39b411(_0x5cd3ee),_0x4466be=_0x3cc06e[_0x353dc8(0x4aa)][_0x353dc8(0x320)],_0x1198b1=_0x540914=>_0x1bd2fc(_0x52673f=>_0x52673f['setOptions']({..._0x52673f[_0x353dc8(0x4c8)](),..._0x540914}));return _0x2b00c1(_0x353dc8(0x442),{'className':_0x353dc8(0x4f1),'children':[_0x2b00c1(_0x353dc8(0x3b0),{'className':_0x353dc8(0x1f1),'children':[_0x4a93be['t'](_0x353dc8(0x291)),_0x4dabb7(_0xce6b1b,{'className':_0x353dc8(0x23f),'value':String(_0x3cc06e[_0x353dc8(0x4aa)][_0x353dc8(0x439)]),'options':[{'value':String(_0x426ac9[_0x353dc8(0x2c8)]),'label':_0x4a93be['t'](_0x353dc8(0x372))},{'value':String(_0x426ac9[_0x353dc8(0x1be)]),'label':_0x4a93be['t'](_0x353dc8(0x409))},{'value':String(_0x426ac9[_0x353dc8(0x379)]),'label':_0x4a93be['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x4e97b1=>{const _0x3a7777=_0x353dc8;let _0x4abce4=[_0x426ac9[_0x3a7777(0x2c8)],_0x426ac9['compact'],_0x426ac9['outline']][_0x3a7777(0x397)](_0x380df7=>String(_0x380df7)===_0x4e97b1);_0x4abce4!==void 0x0&&_0x1bd2fc(_0x4a4fa0=>_0x4a4fa0['setLayout'](_0x4abce4));}})]}),[{'key':'repeatRowLabels','label':'bases-dashboard-ui.pivot.repeatRowLabels','defaultValue':!0x1},{'key':_0x353dc8(0x40b),'label':_0x353dc8(0x1f5),'defaultValue':!0x1},{'key':_0x353dc8(0x246),'label':'bases-dashboard-ui.pivot.showRowSubtotal','defaultValue':!0x0},{'key':_0x353dc8(0x402),'label':_0x353dc8(0x2ca),'defaultValue':!0x0},{'key':_0x353dc8(0x280),'label':_0x353dc8(0x2bb),'defaultValue':!0x0},{'key':_0x353dc8(0x2ea),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}]['map'](_0x9a70a9=>_0x2b00c1(_0x353dc8(0x3b0),{'className':_0x353dc8(0x343),'children':[_0x4dabb7(_0x3cc061,{'checked':!!(_0x4466be[_0x9a70a9[_0x353dc8(0x336)]]??_0x9a70a9['defaultValue']),'disabled':_0x9a70a9['key']===_0x353dc8(0x479)&&_0x3cc06e['pivot'][_0x353dc8(0x439)]===_0x426ac9['compact'],'onChange':_0x3324a4=>_0x1198b1({[_0x9a70a9[_0x353dc8(0x336)]]:!!_0x3324a4})}),_0x4a93be['t'](_0x9a70a9[_0x353dc8(0x3b0)])]},_0x9a70a9[_0x353dc8(0x336)])),_0x3cc06e[_0x353dc8(0x4aa)][_0x353dc8(0x439)]===_0x426ac9['outline']&&_0x2b00c1('label',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x4a93be['t'](_0x353dc8(0x1c3)),_0x4dabb7(_0xce6b1b,{'className':'univer-w-36','value':String(_0x4466be[_0x353dc8(0x413)]??_0x10ab45[_0x353dc8(0x45e)]),'options':[{'value':String(_0x10ab45['top']),'label':_0x4a93be['t'](_0x353dc8(0x422))},{'value':String(_0x10ab45[_0x353dc8(0x2d0)]),'label':_0x4a93be['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x2908b0=>{const _0x134cbe=_0x353dc8;let _0x49aa50=[_0x10ab45[_0x134cbe(0x45e)],_0x10ab45[_0x134cbe(0x2d0)]]['find'](_0x5b7c81=>String(_0x5b7c81)===_0x2908b0);_0x49aa50!==void 0x0&&_0x1198b1({'rowSubtotalPosition':_0x49aa50});}})]}),_0x2b00c1('label',{'className':_0x353dc8(0x1f1),'children':[_0x4a93be['t'](_0x353dc8(0x25d)),_0x4dabb7(_0xce6b1b,{'className':_0x353dc8(0x23f),'value':String(_0x3cc06e[_0x353dc8(0x4aa)][_0x353dc8(0x1bb)]===_0x288ba5[_0x353dc8(0x2fe)]?_0x288ba5[_0x353dc8(0x499)]:_0x3cc06e['pivot'][_0x353dc8(0x1bb)]),'options':[{'value':String(_0x288ba5[_0x353dc8(0x499)]),'label':_0x4a93be['t']('bases-dashboard-ui.pivot.columns')},{'value':String(_0x288ba5[_0x353dc8(0x456)]),'label':_0x4a93be['t'](_0x353dc8(0x1d4))}],'onChange':_0x5f52c4=>{const _0x3aafab=_0x353dc8;let _0x4f7b0c=[_0x288ba5[_0x3aafab(0x499)],_0x288ba5['Row']]['find'](_0x4a6d8c=>String(_0x4a6d8c)===_0x5f52c4);_0x4f7b0c!==void 0x0&&_0x1bd2fc(_0x12b7d1=>_0x12b7d1[_0x3aafab(0x3e6)](_0x4f7b0c,_0x12b7d1[_0x3aafab(0x2cf)]()<0x0?0x0:_0x12b7d1[_0x3aafab(0x2cf)]()));}})]}),_0x2b00c1(_0x353dc8(0x3b0),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x4a93be['t'](_0x353dc8(0x412)),_0x4dabb7(_0x1c2086,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x4466be['pageWrap']??0x1,'onChange':_0x1cab7a=>{const _0x3e4795=_0x353dc8;let _0x120e6d=Number(_0x1cab7a);Number[_0x3e4795(0x4a4)](_0x120e6d)&&_0x120e6d>=0x1&&_0x1198b1({'pageWrap':_0x120e6d});}})]}),_0x2b00c1(_0x353dc8(0x3b0),{'className':_0x353dc8(0x1f1),'children':[_0x4a93be['t']('bases-dashboard-ui.pivot.pageDirection'),_0x4dabb7(_0xce6b1b,{'className':_0x353dc8(0x23f),'value':String(_0x4466be[_0x353dc8(0x1b7)]??!0x1),'options':[{'value':_0x353dc8(0x48b),'label':_0x4a93be['t'](_0x353dc8(0x30c))},{'value':'true','label':_0x4a93be['t'](_0x353dc8(0x4a1))}],'onChange':_0x4fe993=>_0x1198b1({'pageOverThenDown':_0x4fe993==='true'})})]})]});}function mo(_0x1f8543,_0x5c34eb,_0x3b31b4,_0x593b0e){const _0x32f3eb=_0x2353bc;let _0x4720fa=_0x1f8543[_0x32f3eb(0x1cd)](_0x5c34eb)[_0x32f3eb(0x397)](_0x5afdc6=>_0x1f8543['getFieldPositionInfoById'](_0x5afdc6[_0x32f3eb(0x1ae)]())[_0x32f3eb(0x269)]!==_0x4c815c[_0x32f3eb(0x47a)]);if(_0x3b31b4!==_0x4c815c[_0x32f3eb(0x47a)]&&_0x4720fa){_0x1f8543[_0x32f3eb(0x1b0)](_0x4720fa[_0x32f3eb(0x1ae)](),_0x3b31b4,_0x593b0e);return;}_0x1f8543[_0x32f3eb(0x3fa)](_0x5c34eb,_0x3b31b4,_0x593b0e);}function ho(_0x595cf7,_0x2dd1df,_0xa0c3ce,_0x15904c){const _0x2ff743=_0x2353bc;return _0x2dd1df===_0x1fe7b3[_0x2ff743(0x512)]?_0x15904c:_0x2dd1df===_0x1fe7b3['date']&&_0xa0c3ce?_0x3f4aae['format'](_0xa0c3ce,Number(_0x595cf7)):_0x595cf7;}function go(_0x41a601){const _0x365493=_0x2353bc;return _0x41a601[_0x365493(0x393)]===_0x557eea[_0x365493(0x416)]||_0x41a601['type']===_0x557eea[_0x365493(0x321)]||_0x41a601[_0x365493(0x393)]===_0x557eea[_0x365493(0x3c5)]||_0x41a601[_0x365493(0x393)]===_0x557eea[_0x365493(0x42a)];}function _o(_0x53644a){const _0x13ebf0=_0x2353bc;switch(_0x53644a){case _0x4c815c[_0x13ebf0(0x456)]:return _0x13ebf0(0x28b);case _0x4c815c[_0x13ebf0(0x499)]:return _0x13ebf0(0x50d);case _0x4c815c[_0x13ebf0(0x47a)]:return'bases-dashboard-ui.pivot.addToValue';default:return _0x13ebf0(0x41a);}}function vo({config:_0x599bce,onChange:_0x353ea2,runtime:_0x346e04,table:_0x491911}){const _0x1506e3=_0x2353bc;let _0x23fcfa=_0x39b411(_0x5cd3ee),[_0x59facb,_0x54059f]=_0x2be63d(_0x1506e3(0x4d8));return _0x2b00c1(_0x1506e3(0x2b6),{'className':_0x1506e3(0x4fd),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x23fcfa['t'](_0x1506e3(0x2f6)),'className':_0x1506e3(0x38c),'items':[{'label':_0x23fcfa['t'](_0x1506e3(0x36b)),'panelId':_0x1506e3(0x440),'value':_0x1506e3(0x4d8)},{'label':_0x23fcfa['t'](_0x1506e3(0x4a7)),'panelId':_0x1506e3(0x225),'value':_0x1506e3(0x4aa)}],'value':_0x59facb,'variant':_0x1506e3(0x4d2),'onChange':_0x54059f}),_0x4dabb7(_0x1506e3(0x442),{'className':_0x1506e3(0x380),'children':_0x59facb===_0x1506e3(0x4d8)?_0x346e04&&_0x4dabb7(fa,{'config':_0x599bce,'runtime':_0x346e04,'tableName':_0x491911['name'],'onChange':_0x353ea2}):_0x4dabb7(ao,{'config':_0x599bce,'table':_0x491911,'onChange':_0x353ea2})})]});}function yo({tableId:_0x3d757a,unitId:_0x27e018,viewId:_0x18b6db}){const _0x1302cf=_0x2353bc;let _0x5d5ebe=_0x39b411(_0x32452d),_0x29874e=_0x39b411(_0x4074e5),_0xdfaefb=_0x39b411(_0x34ac8c),_0x4365aa=_0x39b411(_0x5cd3ee),_0x2a78b2=_0x39b411(_0x22ef82),[_0x223f75,_0x2420cc]=_0x2be63d(null),[_0x3da0c3,_0x390221]=_0x2be63d(null),_0x4af626=_0x35f949(_0x1302cf(0x4e9)+_0x325e5d(0x8)),[_0x1f6030,_0x31b599]=_0x2be63d(!0x1),_0x317b57=_0x29874e['getUnit'](_0x27e018,_0x51ec78[_0x1302cf(0x4eb)]),_0x56a108=_0x317b57==null?void 0x0:_0x317b57[_0x1302cf(0x3f5)]()['tables'][_0x3d757a],_0x350e9f=_0x56a108==null?void 0x0:_0x56a108[_0x1302cf(0x451)][_0x18b6db],_0x2ead60=bo(_0x350e9f),_0x2f58b9=_r(_0x27e018,_0x3d757a,_0x18b6db);if(_0x38e78f(()=>{const _0x587d3a=_0x1302cf;if(!_0x2ead60)return;let _0x1ed291=_0x4af626[_0x587d3a(0x38f)];return _0x2a78b2['acquireChartRuntime'](_0x1ed291,{'unitId':_0x27e018,'tableId':_0x3d757a,'viewId':_0x18b6db,'filters':[]}),()=>{const _0xb8bb17=_0x587d3a;_0x2a78b2[_0xb8bb17(0x503)](_0x27e018,_0x1ed291);};},[_0x2ead60,_0x2a78b2,_0x3d757a,_0x27e018,_0x18b6db]),_0x38e78f(()=>{const _0x14702b=_0x1302cf;if(!bo(_0x350e9f))return;let _0x3f3f70=!0x0,_0x29fded={'unitId':_0x27e018,'tableId':_0x3d757a,'viewId':_0x18b6db,'filters':[_0x350e9f[_0x14702b(0x1b3)]??null]};return _0x2a78b2[_0x14702b(0x41f)](_0x27e018,_0x4af626[_0x14702b(0x38f)],_0x29fded)['then'](_0x25c9e0=>{const _0x503da9=_0x14702b;_0x3f3f70&&_0x25c9e0&&(_0x2420cc(_0x25c9e0),_0x390221(_0x2a78b2[_0x503da9(0x33e)](_0x27e018,_0x4af626[_0x503da9(0x38f)])??null),_0x31b599(!0x1));})['catch'](_0x2e862a=>{const _0x5b9f69=_0x14702b;_0xdfaefb[_0x5b9f69(0x1b4)](_0x5b9f69(0x341),_0x2e862a),_0x3f3f70&&(_0x2420cc(null),_0x31b599(!0x0));}),()=>{_0x3f3f70=!0x1;};},[_0xdfaefb,_0x2a78b2,_0x3d757a,_0x27e018,_0x350e9f,_0x18b6db]),!_0x56a108||!bo(_0x350e9f))return null;let _0x5bb065=_0x2a78b2[_0x1302cf(0x33e)](_0x27e018,_0x4af626['current'])===_0x3da0c3?_0x3da0c3:null,_0x44cd29=_0x223f75?_0x2b00c1(_0x1302cf(0x442),{'className':_0x1302cf(0x2cd),'style':{'gridTemplateRows':_0x350e9f[_0x1302cf(0x4e8)][_0x1302cf(0x4a6)]===_0x1302cf(0x330)?_0x1302cf(0x511):_0x1302cf(0x230)},'children':[_0x350e9f[_0x1302cf(0x4e8)][_0x1302cf(0x4a6)]!==_0x1302cf(0x4bb)&&_0x5bb065&&_0x4dabb7(_0x1302cf(0x442),{'className':_0x1302cf(0x4c9),'children':_0x4dabb7(Ir,{'isRowDirection':_0x2fa6dd(_0x350e9f['config'][_0x1302cf(0x4d8)][_0x1302cf(0x485)]),'runtime':_0x5bb065})}),_0x350e9f[_0x1302cf(0x4e8)][_0x1302cf(0x4a6)]!=='chart'&&_0x4dabb7('div',{'className':_0x1302cf(0x32b),'children':_0x4dabb7(ki,{'pivot':_0x350e9f[_0x1302cf(0x4e8)][_0x1302cf(0x4aa)],'view':_0x223f75['view']})})]}):_0x4dabb7(_0x1302cf(0x442),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x1f6030?_0x4365aa['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x4365aa['t'](_0x1302cf(0x463))});return _0x2b00c1(_0x1302cf(0x442),{'className':_0x1302cf(0x4b6),'children':[_0x4dabb7(_0x1302cf(0x442),{'className':_0x1302cf(0x43e),'children':_0x44cd29}),_0x2f58b9&&_0x4dabb7(vo,{'config':_0x350e9f['config'],'runtime':_0x5bb065,'table':_0x56a108,'onChange':_0x10dc11=>{const _0x193081=_0x1302cf;_0x5d5ebe['executeCommand'](_0x303df3['id'],{'unitId':_0x27e018,'tableId':_0x3d757a,'viewId':_0x18b6db,'patch':_0x10dc11})[_0x193081(0x3d2)](_0x23df5d=>_0xdfaefb[_0x193081(0x1b4)](_0x193081(0x337),_0x23df5d));}})]});}function bo(_0x2a9da6){const _0x55f698=_0x2353bc;return(_0x2a9da6==null?void 0x0:_0x2a9da6[_0x55f698(0x393)])===_0x5ee6b5['Pivot']&&typeof _0x2a9da6[_0x55f698(0x4e8)]=='object'&&_0x2a9da6[_0x55f698(0x4e8)]!==null&&'pivot'in _0x2a9da6['config']&&_0x55f698(0x4d8)in _0x2a9da6[_0x55f698(0x4e8)]&&_0x55f698(0x4a6)in _0x2a9da6[_0x55f698(0x4e8)];}let xo=class extends _0x2e76da{constructor(_0x5c9987,_0x147162,_0x25bb36,_0x52dc46,_0x58aa3b,_0x185b7e){const _0x487ece=_0x2353bc;super(),this[_0x487ece(0x1eb)](_0x147162[_0x487ece(0x1ac)]({'type':_0x5ee6b5['Pivot'],'renderMode':_0x487ece(0x4cc),'icon':_0x3ad3c2,'component':yo,'menu':{get 'label'(){return _0x185b7e['t']('bases-dashboard-ui.pivot.name');},get 'description'(){const _0x1c4de4=_0x487ece;return _0x185b7e['t'](_0x1c4de4(0x345));},get 'defaultName'(){return _0x185b7e['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x487ece(0x1eb)](_0x5c9987['register'](So(_0x25bb36,_0x52dc46,_0x58aa3b,_0x185b7e)));}};xo=Or([Y(0x0,_0x509544),Y(0x1,_0x5eecd3),Y(0x2,_0x2a19f9(_0x5e40a3)),Y(0x3,_0x32452d),Y(0x4,_0x4c7ae7),Y(0x5,_0x2a19f9(_0x5cd3ee))],xo);function So(_0x2ae871,_0x1ff551,_0x2d214e,_0x2fb16f){const _0x285db8=_0x2353bc;return{'change$':_0x53dd21(_0x2ae871[_0x285db8(0x2a3)],_0x2d214e[_0x285db8(0x391)]),'component':Ja,get 'labels'(){const _0xd9a4f1=_0x285db8;return{'add':_0x2fb16f['t'](_0xd9a4f1(0x3ed)),'configure':_0x2ae8d2=>_0x2fb16f['t'](_0xd9a4f1(0x233),_0x2ae8d2),'delete':_0x2fb16f['t'](_0xd9a4f1(0x305)),'new':_0x2fb16f['t']('bases-dashboard-ui.dashboard.new'),'rename':_0x2fb16f['t'](_0xd9a4f1(0x259)),'search':_0x2fb16f['t'](_0xd9a4f1(0x424)),'section':_0x2fb16f['t'](_0xd9a4f1(0x1c4))};},'getItems':_0x3ca741=>{const _0x4d3812=_0x285db8;let _0x2a3f61=_0x2ae871[_0x4d3812(0x2b1)](_0x3ca741);return _0x2a3f61[_0x4d3812(0x3fe)][_0x4d3812(0x3bc)](_0x3286c5=>{const _0x4969ce=_0x4d3812;let _0x1e09e7=_0x2a3f61[_0x4969ce(0x370)][_0x3286c5];return _0x1e09e7?[{'id':_0x1e09e7['id'],'name':_0x1e09e7[_0x4969ce(0x329)],'readonly':!_0x25b5d2(_0x2d214e,_0x3ca741,_0x1e09e7['id'])}]:[];});},'create':async _0x1f388d=>{const _0x5917e4=_0x285db8;let _0x4a06f6=_0x2ae871[_0x5917e4(0x2b1)](_0x1f388d),_0x54cdcd=_0x5917e4(0x3a4)+_0x325e5d(0x8),_0x37fe44=Co(_0x4a06f6[_0x5917e4(0x3fe)][_0x5917e4(0x3bc)](_0x4d8eab=>{let _0x580a4f=_0x4a06f6['dashboards'][_0x4d8eab];return _0x580a4f?[_0x580a4f['name']]:[];}),_0x345da2=>_0x2fb16f['t'](_0x5917e4(0x3e5),String(_0x345da2)));return await _0x1ff551[_0x5917e4(0x1ff)](_0x2ef5a6['id'],{'unitId':_0x1f388d,'dashboard':{'id':_0x54cdcd,'name':_0x37fe44,'widgetOrder':[],'widgets':{}}})?_0x54cdcd:null;},'rename':async(_0x57ccff,_0x1a5693,_0x29e6d1)=>{const _0x482658=_0x285db8;let _0x4fa17c=_0x2ae871[_0x482658(0x34a)](_0x57ccff,_0x1a5693);return!!(_0x4fa17c&&await _0x1ff551['executeCommand'](_0x5cbeb4['id'],{'unitId':_0x57ccff,'dashboard':{..._0x4fa17c,'name':_0x29e6d1}}));},'remove':(_0x19274d,_0x15174d)=>_0x1ff551['executeCommand'](_0x22aa0a['id'],{'unitId':_0x19274d,'dashboardId':_0x15174d})};}function Co(_0x247619,_0x16a3b1){const _0x3eb9c7=_0x2353bc;let _0x1e420f=new Set(_0x247619),_0x2b5cab=_0x1e420f[_0x3eb9c7(0x272)]+0x1,_0x291041=_0x16a3b1(_0x2b5cab);for(;_0x1e420f[_0x3eb9c7(0x30b)](_0x291041);)_0x2b5cab+=0x1,_0x291041=_0x16a3b1(_0x2b5cab);return _0x291041;}let wo=class extends _0x52aef1{constructor(_0x500853=hr,_0x20d046,_0x3ebc94){const _0x3c5f85=_0x2353bc;super(),this['_config']=_0x500853,this[_0x3c5f85(0x2a0)]=_0x20d046,this['_configService']=_0x3ebc94;let {..._0x1f9080}=_0x1731fc({},hr,this[_0x3c5f85(0x21e)]);this[_0x3c5f85(0x447)][_0x3c5f85(0x427)](mr,_0x1f9080);}[_0x2353bc(0x2db)](){const _0x45e574=_0x2353bc;this[_0x45e574(0x2a0)]['add']([kr]),this[_0x45e574(0x2a0)][_0x45e574(0x1c1)]([Gr]),this['_injector']['add']([xo]);}[_0x2353bc(0x25b)](){const _0x3c60f4=_0x2353bc;_0x445a23(this[_0x3c60f4(0x2a0)],[[kr],[Gr],[xo]]);}};Pr(wo,_0x2353bc(0x393),_0x51ec78['UNIVER_BASE']),Pr(wo,_0x2353bc(0x405),_0x2353bc(0x264)),Pr(wo,_0x2353bc(0x4ba),fr),Pr(wo,'version',pr),wo=Or([_0x4fc5af(_0x38c17a,_0x1615ad,_0x151faa,_0x4a2c56,_0x47e249,_0x220c65),Y(0x1,_0x2a19f9(_0x5a8661)),Y(0x2,_0x5a5187)],wo);export{na as UniverBaseDashboardMobileUIPlugin,wo as UniverBaseDashboardUIPlugin};