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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/cs-CZ.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/nl-NL.js +1 -1
  15. package/lib/cjs/locale/pl-PL.js +1 -1
  16. package/lib/cjs/locale/pt-BR.js +1 -1
  17. package/lib/cjs/locale/ru-RU.js +1 -1
  18. package/lib/cjs/locale/sk-SK.js +1 -1
  19. package/lib/cjs/locale/th-TH.js +1 -1
  20. package/lib/cjs/locale/tr-TR.js +1 -1
  21. package/lib/cjs/locale/uk-UA.js +1 -1
  22. package/lib/cjs/locale/vi-VN.js +1 -1
  23. package/lib/cjs/locale/zh-CN.js +1 -1
  24. package/lib/cjs/locale/zh-HK.js +1 -1
  25. package/lib/cjs/locale/zh-TW.js +1 -1
  26. package/lib/es/index.js +1 -1
  27. package/lib/es/locale/ar-SA.js +1 -1
  28. package/lib/es/locale/ca-ES.js +1 -1
  29. package/lib/es/locale/cs-CZ.js +1 -1
  30. package/lib/es/locale/de-DE.js +1 -1
  31. package/lib/es/locale/en-US.js +1 -1
  32. package/lib/es/locale/es-ES.js +1 -1
  33. package/lib/es/locale/fa-IR.js +1 -1
  34. package/lib/es/locale/fr-FR.js +1 -1
  35. package/lib/es/locale/id-ID.js +1 -1
  36. package/lib/es/locale/it-IT.js +1 -1
  37. package/lib/es/locale/ja-JP.js +1 -1
  38. package/lib/es/locale/ko-KR.js +1 -1
  39. package/lib/es/locale/nl-NL.js +1 -1
  40. package/lib/es/locale/pl-PL.js +1 -1
  41. package/lib/es/locale/pt-BR.js +1 -1
  42. package/lib/es/locale/ru-RU.js +1 -1
  43. package/lib/es/locale/sk-SK.js +1 -1
  44. package/lib/es/locale/th-TH.js +1 -1
  45. package/lib/es/locale/tr-TR.js +1 -1
  46. package/lib/es/locale/uk-UA.js +1 -1
  47. package/lib/es/locale/vi-VN.js +1 -1
  48. package/lib/es/locale/zh-CN.js +1 -1
  49. package/lib/es/locale/zh-HK.js +1 -1
  50. package/lib/es/locale/zh-TW.js +1 -1
  51. package/lib/index.js +1 -1
  52. package/lib/locale/ar-SA.js +1 -1
  53. package/lib/locale/ca-ES.js +1 -1
  54. package/lib/locale/cs-CZ.js +1 -1
  55. package/lib/locale/de-DE.js +1 -1
  56. package/lib/locale/en-US.js +1 -1
  57. package/lib/locale/es-ES.js +1 -1
  58. package/lib/locale/fa-IR.js +1 -1
  59. package/lib/locale/fr-FR.js +1 -1
  60. package/lib/locale/id-ID.js +1 -1
  61. package/lib/locale/it-IT.js +1 -1
  62. package/lib/locale/ja-JP.js +1 -1
  63. package/lib/locale/ko-KR.js +1 -1
  64. package/lib/locale/nl-NL.js +1 -1
  65. package/lib/locale/pl-PL.js +1 -1
  66. package/lib/locale/pt-BR.js +1 -1
  67. package/lib/locale/ru-RU.js +1 -1
  68. package/lib/locale/sk-SK.js +1 -1
  69. package/lib/locale/th-TH.js +1 -1
  70. package/lib/locale/tr-TR.js +1 -1
  71. package/lib/locale/uk-UA.js +1 -1
  72. package/lib/locale/vi-VN.js +1 -1
  73. package/lib/locale/zh-CN.js +1 -1
  74. package/lib/locale/zh-HK.js +1 -1
  75. package/lib/locale/zh-TW.js +1 -1
  76. package/lib/types/components/BasePivotChartEditor.d.ts +9 -9
  77. package/lib/types/components/mobile/BasePivotChartEditor.d.ts +9 -9
  78. package/lib/types/utils/dashboard-formula-shape.d.ts +4 -4
  79. package/lib/types/utils/dashboard-text.d.ts +2 -2
  80. package/lib/umd/index.js +1 -1
  81. package/lib/umd/locale/ar-SA.js +1 -1
  82. package/lib/umd/locale/ca-ES.js +1 -1
  83. package/lib/umd/locale/cs-CZ.js +1 -1
  84. package/lib/umd/locale/de-DE.js +1 -1
  85. package/lib/umd/locale/en-US.js +1 -1
  86. package/lib/umd/locale/es-ES.js +1 -1
  87. package/lib/umd/locale/fa-IR.js +1 -1
  88. package/lib/umd/locale/fr-FR.js +1 -1
  89. package/lib/umd/locale/id-ID.js +1 -1
  90. package/lib/umd/locale/it-IT.js +1 -1
  91. package/lib/umd/locale/ja-JP.js +1 -1
  92. package/lib/umd/locale/ko-KR.js +1 -1
  93. package/lib/umd/locale/nl-NL.js +1 -1
  94. package/lib/umd/locale/pl-PL.js +1 -1
  95. package/lib/umd/locale/pt-BR.js +1 -1
  96. package/lib/umd/locale/ru-RU.js +1 -1
  97. package/lib/umd/locale/sk-SK.js +1 -1
  98. package/lib/umd/locale/th-TH.js +1 -1
  99. package/lib/umd/locale/tr-TR.js +1 -1
  100. package/lib/umd/locale/uk-UA.js +1 -1
  101. package/lib/umd/locale/vi-VN.js +1 -1
  102. package/lib/umd/locale/zh-CN.js +1 -1
  103. package/lib/umd/locale/zh-HK.js +1 -1
  104. package/lib/umd/locale/zh-TW.js +1 -1
  105. package/package.json +23 -23
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x410bd1=_0x10b1;(function(_0x4beedf,_0x2ed997){const _0xd0f339=_0x10b1,_0xbab000=_0x4beedf();while(!![]){try{const _0x7360bf=-parseInt(_0xd0f339(0x448))/0x1*(parseInt(_0xd0f339(0x474))/0x2)+parseInt(_0xd0f339(0x3bd))/0x3+parseInt(_0xd0f339(0x439))/0x4*(parseInt(_0xd0f339(0x40c))/0x5)+parseInt(_0xd0f339(0x197))/0x6*(-parseInt(_0xd0f339(0x1e5))/0x7)+-parseInt(_0xd0f339(0x289))/0x8*(-parseInt(_0xd0f339(0x293))/0x9)+-parseInt(_0xd0f339(0x3a7))/0xa*(parseInt(_0xd0f339(0x1d0))/0xb)+-parseInt(_0xd0f339(0x1e9))/0xc*(-parseInt(_0xd0f339(0x331))/0xd);if(_0x7360bf===_0x2ed997)break;else _0xbab000['push'](_0xbab000['shift']());}catch(_0x5472df){_0xbab000['push'](_0xbab000['shift']());}}}(_0x416b,0x5d20b));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x365d3b,BASES_DASHBOARD_GRID_COLUMNS as _0x1e51f0,BaseChartRuntimeService as _0xab5a6b,BaseDashboardResourceService as _0x3a9dda,BaseDashboardWidgetType as _0x4e7fff,CreateBaseDashboardCommand as _0x100fa4,DeleteBaseDashboardCommand as _0x439898,RemoveBaseDashboardWidgetCommand as _0x29094f,UniverBaseDashboardPlugin as _0x7dcda4,UpdateBaseDashboardCommand as _0x1e24a6,UpdateBasePivotViewCommand as _0x1f6e61,UpsertBaseDashboardWidgetCommand as _0x59e700,canEditBaseDashboard as _0x467e07,canEditBasePivotView as _0x555e35,createBasePivotTable as _0x3cec59,resolveBasePivotChartRowDirection as _0x3fb36c}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x2fe630,BaseMobileDrawer as _0x2e2cb1,BaseMobileFilterOperand as _0x4ebe70,BaseMobileFilterPanel as _0x49b72d,BaseUnitCollaborationStatus as _0x335c60,FormulaEditorPanel as _0x3564dd,IBaseDashboardUIExtensionRegistryService as _0x76978b,IBaseViewUIRegistryService as _0xb97bcb,MobileFormulaEditorPanel as _0x4e5057,UniverBasesMobileUIPlugin as _0x32b88b,UniverBasesUIPlugin as _0xe89ad3,formulaToEditorFormula as _0x5451bf,normalizeEditorFormulaForConfig as _0x57ee91,toFormulaMenuTables as _0x31f17a,toMenuFields as _0x4eb67b}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x1b8ffc,ChartAxisSection as _0x347442,ChartColorField as _0x535011,ChartCommonDataMappingSection as _0x4e3257,ChartEditBlockTitle as _0x41b08d,ChartEditPanel as _0x3a4219,ChartEditPanelSection as _0x27e494,ChartEditPanelTab as _0x3b422b,ChartEditPanelTabs as _0x55df58,ChartEditorCapability as _0x2b72e7,ChartEditorProvider as _0x1250c0,ChartFunnelStyleSection as _0x3515bf,ChartGradientFillField as _0x2f928b,ChartGridlinesAndTicksSection as _0x10f178,ChartHeatmapStyleSection as _0x26b14a,ChartHostAdapter as _0x439c8c,ChartIndicatorLineSection as _0x2906d0,ChartLegendSection as _0x399526,ChartLineAndAreaSection as _0x4ff136,ChartNumberFormatAtom as _0x56a20f,ChartParetoSeriesSection as _0x4de7d9,ChartPieStyleSection as _0x4626d9,ChartRadarStyleSection as _0x5b6a4d,ChartRelationStyleSection as _0x4bddcd,ChartSectionAccordion as _0x177a4c,ChartSectionAccordionContent as _0x46900a,ChartSectionAccordionItem as _0x2844d6,ChartSectionAccordionTrigger as _0x375efc,ChartSeriesSection as _0xaadc8a,ChartStackField as _0x5d6f36,ChartStyleSection as _0x5d8e64,ChartThemeField as _0x468a30,ChartThreeDSection as _0x533b6c,ChartTitlesSection as _0x364a1b,ChartTrendlineSection as _0x3ac9fb,ChartTypeField as _0x29fd74,ChartTypeSpecificDataSection as _0x1d97dc,ChartTypeSpecificSetupSection as _0x5ce85a,ChartTypeSpecificStyleSection as _0x3d37b1,ChartUIService as _0x24782e,ChartViewStateRegistry as _0x3b73c7,ChartWaterfallSetupFields as _0x3ae098,ChartWaterfallStyleSection as _0x40b896,ChartWordCloudStyleSection as _0x450802,DEFAULT_CHART_AXIS_VALUES as _0x4d8c62,DEFAULT_CHART_FUNNEL_VALUES as _0xd824da,DEFAULT_CHART_HEATMAP_VALUES as _0xa35118,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x10441e,DEFAULT_CHART_LEGEND_VALUES as _0x1b9bc9,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x45d9c7,DEFAULT_CHART_PARETO_VALUES as _0x2c4778,DEFAULT_CHART_PIE_VALUES as _0x7ff226,DEFAULT_CHART_RADAR_VALUES as _0x223cbb,DEFAULT_CHART_RELATION_VALUES as _0x12660e,DEFAULT_CHART_SERIES_VALUES as _0x223992,DEFAULT_CHART_STYLE_VALUES as _0x419379,DEFAULT_CHART_TITLE_VALUES as _0x304725,DEFAULT_CHART_TRENDLINE_VALUES as _0x201be4,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x38fd81,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x37da98,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x22d9d9,MobileChartEditorControls as _0x3917ea,MobileChartEditorProvider as _0x5e1d75,UniverChartMobileUIPlugin as _0x2d555f,UniverChartUIPlugin as _0x570ced,buildChartTypeSelectOptions as _0x2190e6,chartTypeSupportsCapability as _0xbab818,chartTypeSupportsLineAndAreaStyle as _0x230f4f,useChartEditorChartType as _0x499edc,useChartEditorHasRightAxis as _0x313117}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x1b68d2}from'@univerjs-pro/license';import{ShapeFormulaService as _0x1735be,UniverShapeEditorPlugin as _0xdd06cf,createFormulaShapeData as _0x365108}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0xac378e,BaseFilterConjunction as _0x3c7c2d,BaseFilterOperator as _0x27f238,BaseViewType as _0x37c4bc,DependentOn as _0x2b679d,Disposable as _0x34f5d7,ICommandService as _0x668d8f,IConfigService as _0x200457,IImageIoService as _0x1561a2,ILogService as _0xf4ca24,IPermissionService as _0xd14797,IUndoRedoService as _0x3de274,IUniverInstanceService as _0x1ce417,ImageSourceType as _0x4ca25c,Inject as _0x1fee36,Injector as _0x4c3614,LocaleService as _0x4f7627,ObjectPermissionService as _0x46cb3e,Plugin as _0x22507e,RedoCommand as _0xa30686,ThemeService as _0x4e623a,UndoCommand as _0x2178d8,UniverInstanceType as _0xd3f775,createParagraphId as _0x76d4c9,dateKit as _0x5e4ae7,debounce as _0x96b9e5,generateRandomId as _0x542898,merge as _0x17941a,numfmt as _0x5140c1,touchDependencies as _0x4ffdef}from'@univerjs/core';import{UniverDocsUIPlugin as _0x1776ea}from'@univerjs/docs-ui';import{ArrowDownIcon as _0x5584ab,ArrowUpIcon as _0x40c1d9,AscendingIcon as _0x52227c,CalendarIcon as _0x5325fe,ChartIcon as _0x37386e,CloseIcon as _0x26780d,DeleteIcon as _0x500a22,DescendingIcon as _0x5c0c38,ExpandIcon as _0x14205d,FilterIcon as _0x90a2b7,GripVerticalIcon as _0x5ca67b,IncreaseIcon as _0x82e3c7,MoreDownIcon as _0x5d1e68,MoreHorizontalIcon as _0x2fabd1,NumberIcon as _0x5c186e,PenIcon as _0x5711a9,PivotTableIcon as _0x475089,ProtectIcon as _0x42b635,RedoIcon as _0x4cec9e,SearchIcon as _0x1dab65,TextIcon as _0x4af771,UndoIcon as _0x232960}from'@univerjs/icons';import{combineLatest as _0x12f683,map as _0x53720a,merge as _0x360ca5,skip as _0xd0ab6b}from'rxjs';import{SetBasePermissionCommand as _0x523fb1,getBaseDashboardPermissionObjectId as _0x264ef9}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x458fcc}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x3b41be,ShapeLineTypeEnum as _0x754183,ShapeTypeEnum as _0x389913}from'@univerjs-pro/engine-shape';import{Button as _0x11a8c2,Checkbox as _0x10db4e,DatePicker as _0x2d128f,Dialog as _0x2e920d,DropdownMenu as _0x566dc7,Input as _0x56be65,InputNumber as _0x137e64,MobileDialog as _0x3f6018,MobileDropdownMenu as _0x92fe97,MobileSelect as _0x50c62e,MultipleSelect as _0x3fad30,Segmented as _0x5c4858,Select as _0x3f5ec5,Textarea as _0x2d4d6c,Tooltip as _0x3dcdeb,borderClassName as _0x1f0d20,clsx as _0xec79e5,scrollbarClassName as _0x44d47d}from'@univerjs/design';import{UnitObject as _0x2dc28e}from'@univerjs/protocol';import{ILayoutService as _0x14a063,ObjectPermissionButton as _0x51ad51,openObjectPermissionDialog as _0x219393,useDependency as _0x20ec70,useObservable as _0x24cacb}from'@univerjs/ui';import{useCallback as _0x31eec3,useEffect as _0x2fd531,useMemo as _0x10a2b7,useRef as _0x127850,useState as _0x5e5f09}from'react';import{Fragment as _0x13d76c,jsx as _0x143050,jsxs as _0x391b30}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x2d28ab,ChartRenderMode as _0x25b78e,ChartThemeService as _0x4f1e5d,ChartTypeBits as _0x2261bb,ChartWaterfallStyleTarget as _0x1a11c1,IChartRenderModelManagerService as _0x48dc66,RTLChartStyle as _0x376ad5,chartBitsUtils as _0xbb03e5,chartTypeCanUseTrendLine as _0x351f42,resolveChartRuntimeStyle as _0x40ec96,resolveDefaultChartHostFrameStyle as _0x197074,toChartModelUpdate as _0x59ff45}from'@univerjs-pro/engine-chart';import{createPortal as _0x35f612}from'react-dom';import{PivotCellStyleTypeEnum as _0x2b70c6,PivotDataFieldDataTypeEnum as _0x15e35b,PivotDataFieldSortOperatorEnum as _0x1e9e18,PivotFilterTypeEnum as _0x315feb,PivotLayoutTypeEnum as _0x5a28d1,PivotSubtotalPositionEnum as _0x5ba910,PivotSubtotalTypeEnum as _0x9fb623,PivotTableFiledAreaEnum as _0x3c113a,PivotTableValuePositionEnum as _0xeddb61,isErrorValue as _0x420b5a,isPrefixValue as _0x163d9a}from'@univerjs-pro/engine-pivot';var mr=_0x410bd1(0x2d3),hr=_0x410bd1(0x371);const gr=_0x410bd1(0x45c),_r={};function vr(_0x350270,_0x41802f){const _0x1067d8=_0x410bd1;let _0x3c0830=_0x20ec70(_0xd14797),_0x5db4eb=_0x467e07(_0x3c0830,_0x350270,_0x41802f);return _0x24cacb(()=>_0x3c0830['permissionPointUpdate$'][_0x1067d8(0x40a)](_0x53720a(()=>_0x467e07(_0x3c0830,_0x350270,_0x41802f))),_0x5db4eb,!0x1,[_0x41802f,_0x3c0830,_0x350270]);}function yr(_0x223b1d,_0x34d862,_0x899b02){const _0x244361=_0x410bd1;let _0x3cea11=_0x20ec70(_0xd14797),_0x531d29=_0x555e35(_0x3cea11,_0x223b1d,_0x34d862,_0x899b02);return _0x24cacb(()=>_0x3cea11['permissionPointUpdate$'][_0x244361(0x40a)](_0x53720a(()=>_0x555e35(_0x3cea11,_0x223b1d,_0x34d862,_0x899b02))),_0x531d29,!0x1,[_0x3cea11,_0x34d862,_0x223b1d,_0x899b02]);}function br(_0x1594c2,_0x4a3cff='cover'){const _0x2f52cc=_0x410bd1;return{'backgroundImage':_0x2f52cc(0x2fa)+JSON[_0x2f52cc(0x21b)](_0x1594c2)+')','backgroundPosition':_0x4a3cff==='repeat'?_0x2f52cc(0x15e):'center','backgroundRepeat':_0x4a3cff==='repeat'?_0x2f52cc(0x30c):_0x2f52cc(0x37b),'backgroundSize':_0x4a3cff===_0x2f52cc(0x409)?'cover':_0x2f52cc(0x49d)};}const xr={'alignment':_0x410bd1(0x189),'currency':_0x410bd1(0x1ef),'decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x410bd1(0x49d),'numberFormat':'general'},Sr={'CNY':'¥','EUR':'€','USD':'$'};function Cr(_0x58f5f0){const _0x5681f9=_0x410bd1;var _0x72b71d;let _0x43cdf5=Dr(((_0x72b71d=_0x58f5f0['shapeData'][_0x5681f9(0x213)])==null||(_0x72b71d=_0x72b71d['numberFormat'])==null?void 0x0:_0x72b71d[_0x5681f9(0x374)])??'');return{...xr,..._0x43cdf5,..._0x58f5f0[_0x5681f9(0x2dc)]};}function wr(_0x3ff9c3,_0x3be8f3){const _0x5ccbd0=_0x410bd1;let _0x59deea={..._0x3ff9c3[_0x5ccbd0(0x2dc)],..._0x3be8f3},_0xa77fbd=Cr({..._0x3ff9c3,'appearance':_0x59deea}),_0x2895fe=_0x3ff9c3[_0x5ccbd0(0x3a0)][_0x5ccbd0(0x213)]??{'formula':''};return{..._0x3ff9c3,'appearance':_0x59deea,'shapeData':{..._0x3ff9c3[_0x5ccbd0(0x3a0)],'formulaBinding':{..._0x2895fe,'numberFormat':{'pattern':Tr(_0xa77fbd['numberFormat'],_0xa77fbd[_0x5ccbd0(0x36d)],_0xa77fbd[_0x5ccbd0(0x1c2)])}}}};}function Tr(_0x282473,_0x43fc33,_0x211d33){const _0x590dae=_0x410bd1;let _0x5f282a=Math['max'](0x0,Math[_0x590dae(0x2c0)](0x8,Math[_0x590dae(0x1d8)](_0x43fc33))),_0x2406ea=_0x5f282a?'.'+'0'['repeat'](_0x5f282a):'';switch(_0x282473){case _0x590dae(0x1c4):return'0'+_0x2406ea;case _0x590dae(0x366):return'0'+_0x2406ea+'%';case _0x590dae(0x1c2):return(Sr[_0x211d33]??_0x211d33)+'#,##0'+_0x2406ea;case _0x590dae(0x166):return _0x590dae(0x3aa)+_0x2406ea;case'compact':case _0x590dae(0x473):return _0x590dae(0x3ce);}}function Er(_0x321343,_0x4465e9,_0x53d9a7){const _0x1ff603=_0x410bd1;return _0x53d9a7[_0x1ff603(0x34e)]!==_0x1ff603(0x2b1)||typeof _0x4465e9!=_0x1ff603(0x1c4)||!Number[_0x1ff603(0x4a5)](_0x4465e9)?_0x321343:new Intl[(_0x1ff603(0x1da))](void 0x0,{'notation':'compact','minimumFractionDigits':_0x53d9a7[_0x1ff603(0x36d)]??0x0,'maximumFractionDigits':_0x53d9a7[_0x1ff603(0x36d)]??0x0})[_0x1ff603(0x1d7)](_0x4465e9);}function Dr(_0x29dff1){const _0x53607d=_0x410bd1;var _0x1e3ce4,_0x2f28c7;if(!_0x29dff1||_0x29dff1===_0x53607d(0x3ce))return{};let _0x308ba5=_0x29dff1[_0x53607d(0x433)](/\.([0#]+)/),_0xc64f97=(_0x308ba5==null||(_0x1e3ce4=_0x308ba5[0x1])==null?void 0x0:_0x1e3ce4[_0x53607d(0x38b)])??0x0;if(_0x29dff1[_0x53607d(0x37e)]('%'))return{'decimalPlaces':_0xc64f97,'numberFormat':_0x53607d(0x366)};let _0x311840=(_0x2f28c7=Object[_0x53607d(0x1ed)](Sr)[_0x53607d(0x2da)](([,_0x223b3d])=>_0x29dff1[_0x53607d(0x37e)](_0x223b3d)))==null?void 0x0:_0x2f28c7[0x0];return _0x311840?{'currency':_0x311840,'decimalPlaces':_0xc64f97,'numberFormat':_0x53607d(0x1c2)}:{'decimalPlaces':_0xc64f97,'numberFormat':_0x29dff1[_0x53607d(0x37e)](',')?_0x53607d(0x166):_0x53607d(0x1c4)};}const Or={'center':'center','left':_0x410bd1(0x1c0),'right':'flex-end'};function kr({dashboardId:_0x1418c8,unitId:_0x5b389f,widget:_0x140b68}){const _0x5e01a5=_0x410bd1;var _0x1d5922,_0x1e9bf6,_0x29600f,_0x45429e,_0x1174a8,_0x39b499,_0x5bd1bf,_0x1833a1,_0x45a2a2;let _0xc97ea4=_0x20ec70(_0x1735be),_0x305d30=_0x20ec70(_0x1561a2),_0x3bbfc3=_0x20ec70(_0x4f7627),_0x2e7c33=_0x10a2b7(()=>({'hostType':_0xd3f775['UNIVER_BASE'],'unitId':_0x5b389f,'subUnitId':_0x1418c8,'shapeId':_0x140b68['id']}),[_0x1418c8,_0x5b389f,_0x140b68['id']]),[_0x1ea2ed,_0x36975f]=_0x5e5f09(()=>_0xc97ea4[_0x5e01a5(0x2d5)](_0x2e7c33)),[_0x3ec3d4,_0x2b9be7]=_0x5e5f09(()=>{var _0x4823cf;return(_0x4823cf=_0xc97ea4['getResult'](_0x2e7c33))==null?void 0x0:_0x4823cf['value'];}),[_0x4f8bee,_0x882cf7]=_0x5e5f09(),_0x24cab2=_0x127850(null),_0x5ae704=_0x127850(null),_0x56c907=Cr(_0x140b68);_0x2fd531(()=>{const _0x5e4ce1=_0x5e01a5;let _0x185e4b=_0xc97ea4['presentationChanged$']['subscribe'](_0x31e766=>{const _0x1d1bec=_0x10b1;_0x31e766[_0x1d1bec(0x45b)]===_0x5b389f&&_0x31e766[_0x1d1bec(0x416)]===_0x1418c8&&_0x31e766[_0x1d1bec(0x38d)]===_0x140b68['id']&&(_0x36975f(_0x31e766[_0x1d1bec(0x352)]),_0x2b9be7(_0x31e766[_0x1d1bec(0x3c6)][_0x1d1bec(0x46f)]));});return()=>_0x185e4b[_0x5e4ce1(0x35d)]();},[_0x1418c8,_0xc97ea4,_0x2e7c33,_0x5b389f,_0x140b68['id']]),_0x2fd531(()=>{const _0x5d82d9=_0x5e01a5;let _0x58eb1b=_0x56c907[_0x5d82d9(0x2f8)];if(!_0x58eb1b||_0x58eb1b[_0x5d82d9(0x253)]!==_0x4ca25c[_0x5d82d9(0x27f)])return;let _0x34d287=_0x305d30['getImageSourceCache'](_0x58eb1b[_0x5d82d9(0x2d8)],_0x58eb1b['sourceType']);if(_0x34d287!=null&&_0x34d287[_0x5d82d9(0x2ca)])return;let _0x518282=!0x0;return _0x305d30[_0x5d82d9(0x34b)](_0x58eb1b[_0x5d82d9(0x2d8)])[_0x5d82d9(0x3c4)](_0x18a229=>{const _0x77bc67=_0x5d82d9;_0x518282&&_0x882cf7({'source':_0x58eb1b[_0x77bc67(0x2d8)],'value':_0x18a229});})[_0x5d82d9(0x28c)](()=>void 0x0),()=>{_0x518282=!0x1;};},[_0x56c907[_0x5e01a5(0x2f8)],_0x305d30]);let _0x47b61d=((_0x1d5922=_0x56c907[_0x5e01a5(0x2f8)])==null?void 0x0:_0x1d5922['sourceType'])===_0x4ca25c['UUID']?((_0x1e9bf6=_0x305d30[_0x5e01a5(0x469)](_0x56c907['backgroundImage'][_0x5e01a5(0x2d8)],_0x56c907[_0x5e01a5(0x2f8)][_0x5e01a5(0x253)]))==null?void 0x0:_0x1e9bf6['src'])??((_0x4f8bee==null?void 0x0:_0x4f8bee['source'])===_0x56c907[_0x5e01a5(0x2f8)][_0x5e01a5(0x2d8)]?_0x4f8bee[_0x5e01a5(0x46f)]:''):((_0x29600f=_0x56c907[_0x5e01a5(0x2f8)])==null?void 0x0:_0x29600f[_0x5e01a5(0x2d8)])??'',_0x83d4f5=_0x140b68['shapeData'][_0x5e01a5(0x249)],_0x1711c0=_0x83d4f5&&_0x5e01a5(0x1d6)in _0x83d4f5?(_0x45429e=_0x83d4f5[_0x5e01a5(0x1d6)])==null?void 0x0:_0x45429e[_0x5e01a5(0x18d)]:void 0x0,_0x7a28f7=Er((_0x1ea2ed==null?void 0x0:_0x1ea2ed[_0x5e01a5(0x3f3)])??'',_0x3ec3d4,_0x56c907),_0x9551b=_0x140b68[_0x5e01a5(0x3a0)][_0x5e01a5(0x471)],_0x2f83a1=_0x140b68['shapeData'][_0x5e01a5(0x334)],_0x52437f=_0x1711c0==null||(_0x1174a8=_0x1711c0['documentStyle'])==null?void 0x0:_0x1174a8[_0x5e01a5(0x1b6)],_0x5410c7=_0x140b68['description']??_0x140b68[_0x5e01a5(0x1c8)]??'';return _0x2fd531(()=>{const _0x450af0=_0x5e01a5;let _0x3b309d=_0x24cab2[_0x450af0(0x179)],_0x5b4795=_0x5ae704['current'];if(!_0x3b309d||!_0x5b4795)return;let _0x47c7e7=()=>{const _0x42f264=_0x450af0;if(_0x56c907[_0x42f264(0x1de)]==='custom'||!_0x3b309d[_0x42f264(0x219)]||!_0x3b309d[_0x42f264(0x23b)]){_0x5b4795[_0x42f264(0x454)][_0x42f264(0x39b)]=_0x56c907[_0x42f264(0x39b)]+'px';return;}let _0xc668a1=0x1,_0x41b828=0x48,_0x1f509e=_0xc668a1;for(;_0xc668a1<=_0x41b828;){let _0x4e204e=Math['floor']((_0xc668a1+_0x41b828)/0x2);_0x5b4795['style'][_0x42f264(0x39b)]=_0x4e204e+'px',_0x5b4795[_0x42f264(0x224)]<=_0x3b309d[_0x42f264(0x219)]&&_0x5b4795[_0x42f264(0x296)]<=_0x3b309d[_0x42f264(0x23b)]?(_0x1f509e=_0x4e204e,_0xc668a1=_0x4e204e+0x1):_0x41b828=_0x4e204e-0x1;}_0x5b4795[_0x42f264(0x454)]['fontSize']=_0x1f509e+'px';};if(_0x47c7e7(),typeof ResizeObserver>'u')return;let _0x31cb9c=new ResizeObserver(_0x47c7e7);return _0x31cb9c[_0x450af0(0x1c1)](_0x3b309d),()=>_0x31cb9c[_0x450af0(0x34f)]();},[_0x56c907[_0x5e01a5(0x39b)],_0x56c907[_0x5e01a5(0x1de)],_0x7a28f7]),_0x391b30('div',{'data-dashboard-formula-shape':_0x140b68['id'],'className':_0x5e01a5(0x25e),'style':{'backgroundColor':((_0x39b499=_0x140b68[_0x5e01a5(0x2dc)])==null?void 0x0:_0x39b499[_0x5e01a5(0x32a)])??((_0x9551b==null?void 0x0:_0x9551b[_0x5e01a5(0x2ae)])===_0x3b41be[_0x5e01a5(0x44b)]?_0x9551b[_0x5e01a5(0x4b0)]??void 0x0:void 0x0),'border':(_0x2f83a1==null?void 0x0:_0x2f83a1[_0x5e01a5(0x21a)])===_0x754183['SolidLine']?(_0x2f83a1[_0x5e01a5(0x252)]??0x1)+_0x5e01a5(0x18e)+(_0x2f83a1[_0x5e01a5(0x4b0)]??_0x5e01a5(0x236)):void 0x0,'borderRadius':_0x140b68[_0x5e01a5(0x3e3)]===_0x389913[_0x5e01a5(0x3fc)]?0xc:void 0x0,'color':((_0x5bd1bf=_0x140b68[_0x5e01a5(0x2dc)])==null?void 0x0:_0x5bd1bf['textColor'])??(_0x1ea2ed==null?void 0x0:_0x1ea2ed[_0x5e01a5(0x4b0)])??(_0x52437f==null||(_0x1833a1=_0x52437f['cl'])==null?void 0x0:_0x1833a1[_0x5e01a5(0x361)])??void 0x0,'fontWeight':_0x52437f!=null&&_0x52437f['bl']?0x258:void 0x0,'textAlign':_0x56c907['alignment']},'children':[_0x47b61d&&_0x143050(_0x5e01a5(0x21f),{'src':_0x47b61d,'alt':'','aria-hidden':'true','className':_0x5e01a5(0x2b9),'style':{'objectFit':((_0x45a2a2=_0x56c907['backgroundImage'])==null?void 0x0:_0x45a2a2[_0x5e01a5(0x451)])??_0x5e01a5(0x409)}}),_0x391b30('div',{'className':_0x5e01a5(0x299),'children':[_0x5410c7&&_0x143050(_0x5e01a5(0x402),{'data-dashboard-formula-description':!0x0,'className':'univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','children':_0x5410c7}),_0x143050(_0x5e01a5(0x402),{'ref':_0x24cab2,'data-dashboard-formula-value':!0x0,'aria-label':_0x5410c7||_0x3bbfc3['t'](_0x5e01a5(0x17f)),'className':_0x5e01a5(0x26f),'style':{'justifyContent':Or[_0x56c907[_0x5e01a5(0x1c7)]]},'children':_0x143050(_0x5e01a5(0x378),{'ref':_0x5ae704,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x56c907[_0x5e01a5(0x1de)],'className':_0x5e01a5(0x18a),'children':_0x7a28f7})})]})]});}function Y(_0xe489d5,_0x36303b){return function(_0x8894e3,_0x3e40d9){_0x36303b(_0x8894e3,_0x3e40d9,_0xe489d5);};}function Ar(_0x4e350a,_0x5a7e7e,_0x1e5ee3,_0x109351){const _0x27eb1b=_0x410bd1;var _0x2d17e2=arguments[_0x27eb1b(0x38b)],_0x1494bc=_0x2d17e2<0x3?_0x5a7e7e:_0x109351===null?_0x109351=Object[_0x27eb1b(0x4a3)](_0x5a7e7e,_0x1e5ee3):_0x109351,_0x24128c;if(typeof Reflect=='object'&&typeof Reflect[_0x27eb1b(0x3d6)]==_0x27eb1b(0x346))_0x1494bc=Reflect[_0x27eb1b(0x3d6)](_0x4e350a,_0x5a7e7e,_0x1e5ee3,_0x109351);else{for(var _0x2fd6c1=_0x4e350a[_0x27eb1b(0x38b)]-0x1;_0x2fd6c1>=0x0;_0x2fd6c1--)(_0x24128c=_0x4e350a[_0x2fd6c1])&&(_0x1494bc=(_0x2d17e2<0x3?_0x24128c(_0x1494bc):_0x2d17e2>0x3?_0x24128c(_0x5a7e7e,_0x1e5ee3,_0x1494bc):_0x24128c(_0x5a7e7e,_0x1e5ee3))||_0x1494bc);}return _0x2d17e2>0x3&&_0x1494bc&&Object[_0x27eb1b(0x2bb)](_0x5a7e7e,_0x1e5ee3,_0x1494bc),_0x1494bc;}let jr=class{constructor(_0x51a765,_0x18939a,_0x24be13){const _0x579eb9=_0x410bd1;this[_0x579eb9(0x3fd)]=_0x51a765,this[_0x579eb9(0x345)]=_0x18939a,this[_0x579eb9(0x32f)]=_0x24be13;}[_0x410bd1(0x3ee)](){const _0x83f140=_0x410bd1;return this[_0x83f140(0x32f)][_0x83f140(0x244)](_0x25b78e['Dom'],this[_0x83f140(0x41f)]());}[_0x410bd1(0x2c7)](_0x4e3ced){const _0x196866=_0x410bd1;let _0x1b418c=_0x4e3ced[_0x196866(0x37a)]['config'];if(!_0x1b418c)throw Error(_0x196866(0x418)+_0x4e3ced['chartId']+_0x196866(0x1b2));let _0x201588=this['_localeService']['getDirection']();return{'config':_0x1b418c,'style':_0x40ec96({..._0x4e3ced[_0x196866(0x37a)]['style'],'runtime':_0x4e3ced[_0x196866(0x37a)][_0x196866(0x1b5)](_0x201588),'direction':_0x201588},_0x1b418c[_0x196866(0x38c)])};}[_0x410bd1(0x41f)](){const _0x5b2c34=_0x410bd1;return{'resolveHostStyle':({style:_0x4c7a85})=>_0x197074({'style':_0x4c7a85,'getRenderColor':_0x20d987=>this['_chartThemeService']['getRenderColor'](_0x20d987)}),'resolveRenderBackgroundColor':({hostStyle:_0x3457d0})=>_0x3457d0[_0x5b2c34(0x471)]};}};jr=Ar([Y(0x0,_0x1fee36(_0x4f7627)),Y(0x1,_0x1fee36(_0x4f1e5d)),Y(0x2,_0x48dc66)],jr);function Mr(_0x1719b2,_0x5f0007){const _0x134b16=_0x410bd1;var _0x22c268;_0x1719b2[_0x134b16(0x454)][_0x134b16(0x32a)]=_0x5f0007[_0x134b16(0x471)]??_0x134b16(0x3fe),_0x1719b2[_0x134b16(0x454)][_0x134b16(0x42b)]=(_0x22c268=_0x5f0007[_0x134b16(0x42b)])!=null&&_0x22c268[_0x134b16(0x4b0)]&&_0x5f0007[_0x134b16(0x42b)][_0x134b16(0x252)]?_0x5f0007[_0x134b16(0x42b)]['width']+'px\x20solid\x20'+_0x5f0007[_0x134b16(0x42b)]['color']:'',_0x1719b2['style'][_0x134b16(0x226)]=_0x5f0007[_0x134b16(0x44e)]?_0x5f0007[_0x134b16(0x44e)]+'px':'',_0x1719b2[_0x134b16(0x454)][_0x134b16(0x4a8)]=_0x134b16(0x24b),_0x1719b2[_0x134b16(0x454)][_0x134b16(0x238)]=_0x134b16(0x1fb);}function Nr(_0x227808){'@babel/helpers - typeof';const _0x5e4842=_0x410bd1;return Nr=typeof Symbol==_0x5e4842(0x346)&&typeof Symbol['iterator']==_0x5e4842(0x288)?function(_0x4f2a8b){return typeof _0x4f2a8b;}:function(_0x2308e8){const _0x14c19e=_0x5e4842;return _0x2308e8&&typeof Symbol==_0x14c19e(0x346)&&_0x2308e8['constructor']===Symbol&&_0x2308e8!==Symbol[_0x14c19e(0x350)]?_0x14c19e(0x288):typeof _0x2308e8;},Nr(_0x227808);}function Pr(_0x54e42f,_0x5856ed){const _0x2aa6f8=_0x410bd1;if(Nr(_0x54e42f)!='object'||!_0x54e42f)return _0x54e42f;var _0x2ad68d=_0x54e42f[Symbol[_0x2aa6f8(0x486)]];if(_0x2ad68d!==void 0x0){var _0xdab3ee=_0x2ad68d[_0x2aa6f8(0x286)](_0x54e42f,_0x5856ed||_0x2aa6f8(0x47a));if(Nr(_0xdab3ee)!=_0x2aa6f8(0x16a))return _0xdab3ee;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5856ed==='string'?String:Number)(_0x54e42f);}function Fr(_0x4e3cc8){const _0x4bb702=_0x410bd1;var _0x103b13=Pr(_0x4e3cc8,_0x4bb702(0x274));return Nr(_0x103b13)=='symbol'?_0x103b13:_0x103b13+'';}function Ir(_0x3c2e00,_0x3dabc1,_0x192415){const _0x46ac35=_0x410bd1;return(_0x3dabc1=Fr(_0x3dabc1))in _0x3c2e00?Object[_0x46ac35(0x2bb)](_0x3c2e00,_0x3dabc1,{'value':_0x192415,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3c2e00[_0x3dabc1]=_0x192415,_0x3c2e00;}var Lr=class extends _0x34f5d7{constructor(_0x422063,_0x38ed57){const _0x10d875=_0x410bd1;super(),this['chartId']=_0x422063,this[_0x10d875(0x3d9)]=_0x38ed57,Ir(this,'mode',_0x25b78e[_0x10d875(0x432)]);}[_0x410bd1(0x476)](){const _0x7db499=_0x410bd1;return{'width':Math[_0x7db499(0x3b6)](0x1,this['_element'][_0x7db499(0x219)]),'height':Math[_0x7db499(0x3b6)](0x1,this[_0x7db499(0x3d9)]['clientHeight'])};}[_0x410bd1(0x1a0)](_0x2cc4d8){const _0x26b339=_0x410bd1;Mr(this[_0x26b339(0x3d9)],_0x2cc4d8);}async['ensureMount'](){return this['_element'];}['checkMounted'](){const _0x1624bf=_0x410bd1;return this[_0x1624bf(0x3d9)][_0x1624bf(0x3fb)];}[_0x410bd1(0x3ac)](){}[_0x410bd1(0x455)](){}['markNotReady'](){}};function Rr({isRowDirection:_0x6ace03,runtime:_0x5e6fe2}){const _0x5c81c5=_0x410bd1;let _0x2e93b1=_0x127850(null),_0x1bcc98=_0x20ec70(_0x4f7627),_0x72afd5=_0x20ec70(_0xf4ca24),_0x2079bb=_0x20ec70(jr),_0x104a40=_0x20ec70(_0x4e623a);return _0x2fd531(()=>{const _0x4bc6c1=_0x10b1;let _0x385681=_0x2e93b1[_0x4bc6c1(0x179)];if(!_0x385681)return;_0x385681['replaceChildren']();let {chartId:_0x5a452e,model:_0x5749c9}=_0x5e6fe2,_0x44edab=_0x5749c9[_0x4bc6c1(0x184)],_0x3e671b=new Lr(_0x5a452e,_0x385681),_0x19afdd=_0x2079bb[_0x4bc6c1(0x3ee)](),_0x559dcd=!0x1,_0x5e7c85=null,_0x3fb97a=null,_0x495048=null,_0x130d5e=null,_0x207959=!0x1,_0x117db1=!0x1,_0x4c0fce=Promise[_0x4bc6c1(0x263)]();_0x19afdd[_0x4bc6c1(0x3f1)](_0x3e671b);let _0x3d1212=()=>{const _0x56ba72=_0x4bc6c1;var _0x38168c,_0x5e248a,_0x185953,_0x3910a0;if(document[_0x56ba72(0x41a)]===_0x56ba72(0x24b)||(_0x38168c=(_0x5e248a=window)[_0x56ba72(0x498)])!=null&&(_0x38168c=_0x38168c[_0x56ba72(0x286)](_0x5e248a,_0x56ba72(0x440)))!=null&&_0x38168c[_0x56ba72(0x1e2)]||(_0x185953=(_0x3910a0=window)[_0x56ba72(0x498)])!=null&&(_0x185953=_0x185953['call'](_0x3910a0,_0x56ba72(0x48e)))!=null&&_0x185953[_0x56ba72(0x1e2)]||!_0x385681[_0x56ba72(0x3fb)])return!0x1;let _0x3b2300=_0x385681[_0x56ba72(0x2f2)]();return _0x3b2300['width']>0x0&&_0x3b2300['height']>0x0&&_0x3b2300[_0x56ba72(0x483)]>0x0&&_0x3b2300[_0x56ba72(0x400)]>0x0&&_0x3b2300[_0x56ba72(0x189)]<window['innerWidth']&&_0x3b2300[_0x56ba72(0x4a9)]<window[_0x56ba72(0x15d)];},_0x39f8ec=()=>{const _0x4ca9ae=_0x4bc6c1;_0x3fb97a!==null&&clearTimeout(_0x3fb97a),_0x385681[_0x4ca9ae(0x1b9)][_0x4ca9ae(0x165)]='true',_0x385681[_0x4ca9ae(0x1b9)][_0x4ca9ae(0x363)]=String(_0x2d28ab),_0x3fb97a=setTimeout(()=>{const _0x3d29e8=_0x4ca9ae;_0x3fb97a=null,delete _0x385681['dataset']['baseChartDataAnimation'],delete _0x385681[_0x3d29e8(0x1b9)]['baseChartDataAnimationDuration'];},_0x2d28ab);},_0x430beb=_0x96b9e5(()=>{const _0x4caec2=_0x4bc6c1;if(_0x559dcd||(_0x5e7c85!==null&&(clearTimeout(_0x5e7c85),_0x5e7c85=null),!_0x5749c9[_0x4caec2(0x30a)]))return;let _0x5866a1=_0x117db1;_0x117db1=!0x1,_0x385681[_0x4caec2(0x1b9)][_0x4caec2(0x2a8)]=String(_0x5749c9[_0x4caec2(0x2a8)]),_0x385681['dataset']['chartRowDirection']=String(_0x6ace03);let _0x3abc19=_0x2079bb[_0x4caec2(0x2c7)](_0x5e6fe2),_0x516e70={'chartId':_0x5a452e,'config':_0x3abc19[_0x4caec2(0x30a)],'style':_0x3abc19[_0x4caec2(0x454)]};_0x4c0fce=_0x4c0fce[_0x4caec2(0x3c4)](async()=>{const _0x5b6f61=_0x4caec2;_0x559dcd||(_0x385681[_0x5b6f61(0x1b9)][_0x5b6f61(0x278)]=String(Number(_0x385681[_0x5b6f61(0x1b9)][_0x5b6f61(0x278)]??0x0)+0x1),_0x5866a1&&_0x495048&&_0x19afdd[_0x5b6f61(0x262)]&&_0x3d1212()?(await _0x19afdd[_0x5b6f61(0x262)](_0x495048,_0x516e70,{'duration':_0x2d28ab}),_0x559dcd||_0x39f8ec()):await _0x19afdd[_0x5b6f61(0x389)](_0x516e70),_0x495048=_0x516e70);})[_0x4caec2(0x28c)](_0x293528=>_0x72afd5[_0x4caec2(0x280)](_0x4caec2(0x320),_0x293528));},0x64,{'leading':!0x0,'trailing':!0x0,'maxWait':0x64}),_0xe95f25=(_0x27719a=!0x1)=>{_0x117db1||=_0x27719a,!_0x207959&&(_0x207959=!0x0,queueMicrotask(()=>{_0x207959=!0x1,_0x559dcd||_0x430beb();}));},_0x1932e9=[_0x44edab['data$'][_0x4bc6c1(0x3de)](_0x334a4f=>{const _0x27d062=_0x4bc6c1;let _0x228672=JSON[_0x27d062(0x21b)](_0x334a4f);_0x130d5e!=null&&_0x130d5e!==_0x228672&&_0xe95f25(!0x0),_0x130d5e=_0x228672;}),_0x5749c9[_0x4bc6c1(0x494)][_0x4bc6c1(0x3de)](_0x921a6e=>{_0x921a6e&&_0xe95f25();}),_0x5749c9[_0x4bc6c1(0x20a)]['subscribe'](()=>_0xe95f25()),_0x1bcc98[_0x4bc6c1(0x48f)][_0x4bc6c1(0x3de)](()=>_0xe95f25()),_0x12f683([_0x104a40[_0x4bc6c1(0x1be)],_0x104a40[_0x4bc6c1(0x343)]])[_0x4bc6c1(0x40a)](_0xd0ab6b(0x1))[_0x4bc6c1(0x3de)](()=>_0xe95f25())],_0x3fe2f3=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x5aa92a=_0x4bc6c1;_0x559dcd||(_0x3e671b[_0x5aa92a(0x3ac)](),_0x5e7c85!==null&&clearTimeout(_0x5e7c85),_0x5e7c85=setTimeout(()=>_0xe95f25(),0x64));});return _0x3fe2f3==null||_0x3fe2f3[_0x4bc6c1(0x1c1)](_0x385681),()=>{const _0x2bbdf7=_0x4bc6c1;_0x559dcd=!0x0,_0x430beb['cancel'](),_0x5e7c85!==null&&clearTimeout(_0x5e7c85),_0x3fb97a!==null&&clearTimeout(_0x3fb97a),delete _0x385681[_0x2bbdf7(0x1b9)][_0x2bbdf7(0x165)],delete _0x385681['dataset'][_0x2bbdf7(0x363)],_0x3fe2f3==null||_0x3fe2f3[_0x2bbdf7(0x34f)](),_0x1932e9[_0x2bbdf7(0x349)](_0x1812c5=>_0x1812c5[_0x2bbdf7(0x35d)]()),_0x19afdd[_0x2bbdf7(0x481)](),_0x3e671b[_0x2bbdf7(0x481)](),_0x385681[_0x2bbdf7(0x375)]();};},[_0x6ace03,_0x1bcc98,_0x72afd5,_0x2079bb,_0x5e6fe2,_0x104a40]),_0x143050(_0x5c81c5(0x402),{'ref':_0x2e93b1,'data-u-comp':_0x5c81c5(0x4ae),'className':'univer-absolute\x20univer-inset-0\x20univer-overflow-hidden'});}function zr({filters:_0xd5ffa8,onRuntimeChange:_0x126ca1,unitId:_0x4b746f,widget:_0x17ac6e}){const _0x487171=_0x410bd1;let _0x51446c=_0x20ec70(_0x1ce417),_0x129cdc=_0x20ec70(_0x4f7627),_0x57afd4=_0x20ec70(_0xf4ca24),_0x579ba5=_0x20ec70(_0xab5a6b),[_0x5d9302,_0x518fe3]=_0x5e5f09(null),[_0x16dede,_0x283e01]=_0x5e5f09(!0x1),[_0x54757d,_0x58d230]=_0x5e5f09(null),_0x552e79=_0x127850('base-dashboard-pivot-chart-'+_0x542898(0x8)),_0x246fdb=_0x51446c[_0x487171(0x211)](_0x4b746f,_0xd3f775[_0x487171(0x420)]),_0x2b01cc=_0x246fdb==null?void 0x0:_0x246fdb[_0x487171(0x31e)]()[_0x487171(0x2ec)][_0x17ac6e[_0x487171(0x266)]],_0x397c8c=_0x2b01cc==null?void 0x0:_0x2b01cc[_0x487171(0x348)][_0x17ac6e[_0x487171(0x326)]],_0x5efe65=Br(_0x397c8c);if(_0x2fd531(()=>{const _0x1424df=_0x487171;if(!_0x5efe65)return;let _0x574822=_0x552e79[_0x1424df(0x179)];return _0x579ba5['acquireChartRuntime'](_0x574822,{'unitId':_0x4b746f,'tableId':_0x17ac6e[_0x1424df(0x266)],'viewId':_0x17ac6e[_0x1424df(0x326)],'filters':[]}),()=>{_0x579ba5['releaseChartRuntime'](_0x4b746f,_0x574822),_0x126ca1==null||_0x126ca1(_0x17ac6e['id'],null);};},[_0x5efe65,_0x126ca1,_0x579ba5,_0x4b746f,_0x17ac6e['id'],_0x17ac6e[_0x487171(0x326)],_0x17ac6e[_0x487171(0x266)]]),_0x2fd531(()=>{const _0x445ce1=_0x487171;if(!Br(_0x397c8c))return;let _0x7dc0d=!0x0,_0x4acd53=_0x17ac6e[_0x445ce1(0x195)]??_0x397c8c['config'][_0x445ce1(0x195)],_0x447fb6={'unitId':_0x4b746f,'tableId':_0x17ac6e[_0x445ce1(0x266)],'viewId':_0x17ac6e[_0x445ce1(0x326)],'filters':[_0x397c8c[_0x445ce1(0x267)]??null,..._0xd5ffa8]};return _0x579ba5[_0x445ce1(0x477)](_0x4b746f,_0x552e79[_0x445ce1(0x179)],_0x447fb6,_0x4acd53)['then'](_0x54acdc=>{const _0x271910=_0x445ce1;if(!_0x7dc0d||!_0x54acdc)return;let _0x451cd6=_0x579ba5['getChartRuntime'](_0x4b746f,_0x552e79[_0x271910(0x179)])??null;_0x518fe3(_0x54acdc),_0x58d230(_0x451cd6),_0x283e01(!0x1),_0x126ca1==null||_0x126ca1(_0x17ac6e['id'],_0x451cd6);})[_0x445ce1(0x28c)](_0x2237ef=>{const _0x3b1c6c=_0x445ce1;_0x57afd4[_0x3b1c6c(0x280)](_0x3b1c6c(0x3c7),_0x2237ef),_0x7dc0d&&(_0x518fe3(null),_0x283e01(!0x0));}),()=>{_0x7dc0d=!0x1;};},[_0xd5ffa8,_0x57afd4,_0x126ca1,_0x579ba5,_0x4b746f,_0x397c8c,_0x17ac6e['chart'],_0x17ac6e['id'],_0x17ac6e[_0x487171(0x326)],_0x17ac6e[_0x487171(0x266)]]),!Br(_0x397c8c))return _0x143050(_0x487171(0x402),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','children':_0x129cdc['t'](_0x487171(0x1f0))});let _0x5b74e2=_0x579ba5[_0x487171(0x242)](_0x4b746f,_0x552e79['current'])===_0x54757d?_0x54757d:null;return _0x5d9302&&_0x5b74e2?_0x143050(Rr,{'isRowDirection':_0x3fb36c((_0x17ac6e[_0x487171(0x195)]??_0x397c8c['config']['chart'])[_0x487171(0x32c)]),'runtime':_0x5b74e2}):_0x143050(_0x487171(0x402),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','children':_0x129cdc['t'](_0x16dede?_0x487171(0x220):_0x487171(0x2f6))});}function Br(_0x59ac9b){const _0x17e755=_0x410bd1;return(_0x59ac9b==null?void 0x0:_0x59ac9b[_0x17e755(0x38c)])===_0x37c4bc[_0x17e755(0x3bf)]&&typeof _0x59ac9b[_0x17e755(0x30a)]==_0x17e755(0x16a)&&_0x59ac9b[_0x17e755(0x30a)]!==null&&_0x17e755(0x382)in _0x59ac9b['config']&&_0x17e755(0x195)in _0x59ac9b['config'];}const Vr={'alignment':_0x410bd1(0x189),'fontSize':0x12,'fontSizeMode':_0x410bd1(0x49d)};function Hr(_0x503611){const _0x5397b5=_0x410bd1;return{...Vr,..._0x503611[_0x5397b5(0x2dc)]};}function Ur(_0x80a46e){const _0x23be3d=_0x410bd1;var _0x5368a9;return((_0x5368a9=_0x80a46e['body'])==null?void 0x0:_0x5368a9['dataStream'][_0x23be3d(0x1dc)](/\r\n$/,'')[_0x23be3d(0x1dc)](/\r/g,'\x0a'))??'';}function Wr(_0x367e65,_0x574332){const _0x1e2f31=_0x410bd1;var _0xc08fb1;let _0x188735=_0x574332['replace'](/\r\n|\r/g,'\x0a')[_0x1e2f31(0x2ad)]('\x0a'),_0x1a973a=_0x188735[_0x1e2f31(0x411)]('\x0d')+'\x0d\x0a',_0x424a22=((_0xc08fb1=_0x367e65[_0x1e2f31(0x2d1)])==null?void 0x0:_0xc08fb1[_0x1e2f31(0x3ec)])??[],_0x7eb81a=new Set(_0x424a22[_0x1e2f31(0x173)](_0x3114ba=>_0x3114ba[_0x1e2f31(0x387)])),_0x460c58=0x0,_0x138884=_0x188735[_0x1e2f31(0x173)]((_0x5aa507,_0x72b143)=>{_0x460c58+=_0x5aa507['length'];let _0x211661={..._0x424a22[_0x72b143]??{'startIndex':_0x460c58,'paragraphId':_0x76d4c9(_0x7eb81a)},'startIndex':_0x460c58};return _0x460c58+=0x1,_0x211661;});return{..._0x367e65,'body':{..._0x367e65[_0x1e2f31(0x2d1)],'dataStream':_0x1a973a,'paragraphs':_0x138884,'textRuns':[]}};}function Gr({widget:_0x5af612}){const _0x59ad69=_0x410bd1;let _0x1a321c=_0x20ec70(_0x4e623a),_0x3500c1=_0x20ec70(_0x4f7627),_0x4aacea=_0x24cacb(()=>_0x1a321c[_0x59ad69(0x1be)],_0x1a321c[_0x59ad69(0x188)](),!0x1,[_0x1a321c]),_0x10beb5=_0x127850(null),_0x54d307=_0x127850(null),_0x434a4b=Hr(_0x5af612),_0x3662f1=_0x434a4b[_0x59ad69(0x32a)]??_0x4aacea['gray'][0x0],_0x2b56b0=_0x434a4b[_0x59ad69(0x2b0)]??_0x4aacea[_0x59ad69(0x20c)][0x3e8],_0x4e6003=Ur(_0x5af612['document']);return _0x2fd531(()=>{const _0x79028f=_0x59ad69;let _0x476036=_0x10beb5[_0x79028f(0x179)],_0x540a3f=_0x54d307[_0x79028f(0x179)];if(!_0x476036||!_0x540a3f)return;let _0x129a3d=()=>{const _0x309446=_0x79028f;if(_0x434a4b[_0x309446(0x1de)]===_0x309446(0x234)||!_0x476036[_0x309446(0x219)]||!_0x476036[_0x309446(0x23b)]){_0x540a3f['style'][_0x309446(0x39b)]=_0x434a4b[_0x309446(0x39b)]+'px';return;}let _0x20f036=0x8,_0x354b74=0x48,_0x571890=_0x20f036;for(;_0x20f036<=_0x354b74;){let _0xc61b8a=Math['floor']((_0x20f036+_0x354b74)/0x2);_0x540a3f[_0x309446(0x454)][_0x309446(0x39b)]=_0xc61b8a+'px',_0x540a3f[_0x309446(0x224)]<=_0x476036[_0x309446(0x219)]&&_0x540a3f[_0x309446(0x296)]<=_0x476036[_0x309446(0x23b)]?(_0x571890=_0xc61b8a,_0x20f036=_0xc61b8a+0x1):_0x354b74=_0xc61b8a-0x1;}_0x540a3f[_0x309446(0x454)][_0x309446(0x39b)]=_0x571890+'px';};if(_0x129a3d(),typeof ResizeObserver>'u')return;let _0x3f0ea0=new ResizeObserver(_0x129a3d);return _0x3f0ea0[_0x79028f(0x1c1)](_0x476036),()=>_0x3f0ea0[_0x79028f(0x34f)]();},[_0x434a4b['fontSize'],_0x434a4b[_0x59ad69(0x1de)],_0x4e6003]),_0x143050(_0x59ad69(0x402),{'data-dashboard-text-widget':_0x5af612['id'],'className':_0x59ad69(0x42e),'style':{'backgroundColor':_0x3662f1,'color':_0x2b56b0},'children':_0x143050(_0x59ad69(0x402),{'ref':_0x10beb5,'data-dashboard-text-content':!0x0,'aria-label':_0x3500c1['t']('bases-dashboard-ui.dashboard.text'),'className':_0x59ad69(0x2ba),'children':_0x143050(_0x59ad69(0x402),{'ref':_0x54d307,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x434a4b[_0x59ad69(0x1de)],'className':_0x59ad69(0x3a8),'style':{'textAlign':_0x434a4b['alignment']},'children':_0x4e6003})})});}function Kr({dashboard:_0x21c56f,editable:_0x43ea5b=!0x0,onSelectWidget:_0x441f49,renderWidget:_0x5046aa,renderWidgetActions:_0x1302bc,selectedWidgetId:_0x224345,widgetLabel:_0x228c88}){const _0x13cfa9=_0x410bd1;return _0x143050(_0x13cfa9(0x402),{'data-dashboard-scroll-container':!0x0,'className':_0xec79e5(_0x13cfa9(0x380),_0x44d47d),'onClick':_0x43ea5b?_0x20c812=>{const _0x53ce77=_0x13cfa9;if(!(_0x20c812['target']instanceof Node)||!_0x20c812[_0x53ce77(0x1ba)][_0x53ce77(0x1a8)](_0x20c812[_0x53ce77(0x2f1)]))return;let _0x399c17=_0x20c812[_0x53ce77(0x2f1)]instanceof Element?_0x20c812[_0x53ce77(0x2f1)]:_0x20c812[_0x53ce77(0x2f1)][_0x53ce77(0x294)];_0x399c17!=null&&_0x399c17[_0x53ce77(0x2be)](_0x53ce77(0x42a))||_0x441f49==null||_0x441f49();}:void 0x0,'children':_0x143050('div',{'data-dashboard-grid':!0x0,'className':_0x13cfa9(0x2ce),'children':_0x21c56f[_0x13cfa9(0x487)][_0x13cfa9(0x173)](_0x1ab37b=>{const _0x23c47a=_0x13cfa9;let _0x5a081f=_0x21c56f[_0x23c47a(0x34d)][_0x1ab37b];if(!_0x5a081f)return null;let _0x398b7a=Math[_0x23c47a(0x3b6)](0xb4,_0x5a081f[_0x23c47a(0x281)]['rowSpan']*_0x365d3b);return _0x391b30(_0x23c47a(0x231),{'data-dashboard-widget':_0x5a081f['id'],'aria-label':_0x5a081f[_0x23c47a(0x1c8)]??_0x228c88(_0x5a081f),'className':_0xec79e5(_0x23c47a(0x29c),_0x5a081f[_0x23c47a(0x38c)]===_0x4e7fff['Image']||_0x5a081f[_0x23c47a(0x38c)]===_0x4e7fff[_0x23c47a(0x2b8)]?_0x23c47a(0x1fa):_0x23c47a(0x35f),_0x43ea5b&&_0x224345===_0x5a081f['id']?_0x23c47a(0x385):'univer-border-gray-200\x20dark:!univer-border-gray-700'),'style':{'minHeight':_0x398b7a,'height':_0x398b7a},'tabIndex':_0x43ea5b?0x0:void 0x0,'onClick':_0x43ea5b?()=>_0x441f49==null?void 0x0:_0x441f49(_0x5a081f['id']):void 0x0,'onFocus':_0x43ea5b?()=>_0x441f49==null?void 0x0:_0x441f49(_0x5a081f['id']):void 0x0,'children':[_0x43ea5b&&_0x143050(_0x23c47a(0x402),{'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':_0x1302bc==null?void 0x0:_0x1302bc(_0x5a081f)}),_0x143050(_0x23c47a(0x402),{'className':_0x23c47a(0x199),'children':_0x5046aa(_0x5a081f)})]},_0x5a081f['id']);})})});}let qr=class extends _0x24782e{constructor(_0x205926){const _0x59987e=_0x410bd1;super(_0x205926),Ir(this,_0x59987e(0x30d),null);}[_0x410bd1(0x3a5)](_0x28fb0f){}};qr=Ar([Y(0x0,_0x1fee36(_0x3b73c7))],qr);function Jr({children:_0x380473}){return _0x143050(_0x3917ea,{'children':_0x380473});}function Yr(_0x1af427){return _0x143050(_0x50c62e,{..._0x1af427});}function Xr(_0x18fa88){return _0x143050(_0x92fe97,{..._0x18fa88});}function Zr(_0x587e75){return _0x143050(_0x3f6018,{..._0x587e75});}var Qr;const X={'axis':{..._0x4d8c62,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0xd824da,'heatmap':_0xa35118,'indicatorLine':_0x10441e,'legend':_0x1b9bc9,'lineAndArea':_0x45d9c7,'pareto':_0x2c4778,'pie':_0x7ff226,'radar':_0x223cbb,'relation':{..._0x12660e,'useValueAsSymbolSize':!0x0},'series':{..._0x223992,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Qr=_0x376ad5[_0x410bd1(0x360)])==null?void 0x0:Qr['rightYAxis'])??!0x1}},'style':_0x419379,'titles':_0x304725,'trendline':_0x201be4,'waterfall':{..._0x38fd81,'useSubtotal':!0x0},'waterfallStyle':_0x37da98,'wordCloud':_0x22d9d9},$r=[_0x2261bb[_0x410bd1(0x1fd)],_0x2261bb[_0x410bd1(0x1fe)],_0x2261bb[_0x410bd1(0x19a)],_0x2261bb['Scatter'],_0x2261bb[_0x410bd1(0x210)],_0x2261bb[_0x410bd1(0x3a6)],_0x2261bb[_0x410bd1(0x1a6)],_0x2261bb[_0x410bd1(0x1c3)],_0x2261bb[_0x410bd1(0x3da)],_0x2261bb[_0x410bd1(0x488)],_0x2261bb[_0x410bd1(0x24a)],_0x2261bb[_0x410bd1(0x216)],_0x2261bb[_0x410bd1(0x379)],_0x2261bb['Gauge'],_0x2261bb[_0x410bd1(0x1fc)]];function ei(_0x3f4878){const _0xfde266=_0x410bd1;let {config:_0x5b13d2,onChange:_0x2b98a5,runtime:_0x246eb9,tableName:_0x4993cd}=_0x3f4878,_0x1b0255=_0x20ec70(qr),_0x8c31b0=_0x20ec70(_0x4f7627),[_0x251f86,_0x51d6ae]=_0x5e5f09(_0x3b422b[_0xfde266(0x30b)]),_0x5a5605=_0x10a2b7(()=>new _0x439c8c(_0x246eb9[_0xfde266(0x37a)],{'commit':_0x5f22e1=>{const _0x2394ed=_0xfde266;var _0x2c5260;let _0x48ebe5=_0x246eb9[_0x2394ed(0x37a)],_0x385d16=_0x59ff45(_0x5f22e1,{'series':(_0x2c5260=_0x48ebe5[_0x2394ed(0x30a)])==null?void 0x0:_0x2c5260[_0x2394ed(0x237)],'currentChartType':_0x48ebe5['chartType'],'currentStyle':_0x48ebe5['style'],'currentContext':_0x48ebe5[_0x2394ed(0x497)],'currentDataAggregation':_0x48ebe5[_0x2394ed(0x225)]});_0x2b98a5({'chart':ti(_0x5b13d2['chart'],_0x385d16)});}}),[_0x5b13d2[_0xfde266(0x195)],_0x2b98a5,_0x246eb9]),_0x105e0a=_0x10a2b7(()=>_0x2190e6(_0x1b8ffc['map'](_0x4c62c8=>({..._0x4c62c8,'label':_0x8c31b0['t'](ai(_0x4c62c8['labelId']))}))),[_0x8c31b0]);return _0x143050(_0x5e1d75,{'chartUIService':_0x1b0255,'hostAdapter':_0x5a5605,'children':_0x391b30(_0xfde266(0x402),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x143050(_0x55df58,{'ariaLabel':_0x8c31b0['t'](_0xfde266(0x2d4)),'className':_0xfde266(0x229),'items':[{'label':_0x8c31b0['t'](_0xfde266(0x3f5)),'panelId':_0xfde266(0x408),'value':_0x3b422b[_0xfde266(0x30b)]},{'label':_0x8c31b0['t'](_0xfde266(0x337)),'panelId':_0xfde266(0x35e),'value':_0x3b422b['Style']}],'value':_0x251f86,'onChange':_0x51d6ae}),_0x251f86===_0x3b422b[_0xfde266(0x30b)]?_0x143050(_0x3a4219,{'id':_0xfde266(0x408),'label':_0x8c31b0['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x391b30('div',{'className':_0xfde266(0x3c3),'children':[_0x143050(_0x29fd74,{'options':_0x105e0a}),_0x143050(_0x5ce85a,{}),_0x143050(_0x468a30,{}),_0x143050(ni,{}),_0x143050(_0x5d6f36,{}),_0x391b30(_0xfde266(0x402),{'children':[_0x143050(_0x41b08d,{'title':_0x8c31b0['t'](_0xfde266(0x1e4))}),_0x143050(_0x56be65,{'disabled':!0x0,'value':_0x4993cd})]}),_0x143050(_0x4e3257,{'orientationControl':_0x143050(_0x11a8c2,{'size':_0xfde266(0x323),'onClick':()=>_0x2b98a5({'chart':{..._0x5b13d2[_0xfde266(0x195)],'orient':_0x5b13d2['chart'][_0xfde266(0x32c)]===_0xfde266(0x3e4)?_0xfde266(0x1e8):_0xfde266(0x3e4)}}),'children':_0x8c31b0['t'](_0xfde266(0x43a))})}),_0x143050(_0x1d97dc,{}),_0x143050(_0x3ae098,{'defaultValues':X[_0xfde266(0x3c9)]}),_0x391b30(_0xfde266(0x402),{'children':[_0x143050(_0x41b08d,{'title':_0x8c31b0['t'](_0xfde266(0x441))}),_0x143050(Yr,{'value':_0x5b13d2['displayMode'],'options':[{'value':_0xfde266(0x23e),'label':_0x8c31b0['t'](_0xfde266(0x254))},{'value':_0xfde266(0x195),'label':_0x8c31b0['t'](_0xfde266(0x365))},{'value':_0xfde266(0x26a),'label':_0x8c31b0['t'](_0xfde266(0x3f9))}],'onChange':_0x532f45=>{const _0x4f684a=_0xfde266;(_0x532f45==='chart-and-table'||_0x532f45==='chart'||_0x532f45===_0x4f684a(0x26a))&&_0x2b98a5({'displayMode':_0x532f45});}})]})]})}):_0x143050(_0x3a4219,{'id':_0xfde266(0x35e),'label':_0x8c31b0['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x143050(ri,{})})]})});}function ti(_0x4836fc,_0xb0aac6){const _0x3817a1=_0x410bd1;return{..._0x4836fc,'type':_0xb0aac6[_0x3817a1(0x2a8)]??_0x4836fc['type'],'style':_0xb0aac6[_0x3817a1(0x454)]??_0x4836fc[_0x3817a1(0x454)],'context':_0xb0aac6[_0x3817a1(0x497)]??_0x4836fc[_0x3817a1(0x497)],'dataAggregation':_0xb0aac6[_0x3817a1(0x225)]??_0x4836fc[_0x3817a1(0x225)]};}function ni(){const _0x27b290=_0x410bd1;let _0x105d68=_0x499edc();return _0x143050(_0x2f928b,{'visible':$r[_0x27b290(0x453)](_0x7138a5=>!_0xbb03e5[_0x27b290(0x16f)](_0x105d68,_0x7138a5))});}function Z(_0x5bf433){const _0xc6632c=_0x410bd1;return _0x391b30(_0x2844d6,{'id':_0x5bf433['id'],'children':[_0x143050(_0x375efc,{'children':_0x5bf433[_0xc6632c(0x19d)]}),_0x143050(_0x46900a,{'children':_0x5bf433[_0xc6632c(0x1d2)]})]});}function ri(){const _0x4a3d18=_0x410bd1;let _0x364dee=_0x20ec70(_0x4f7627),_0x1fa938=_0x499edc(),_0x5c65bc=_0x313117(),[_0x1e4143,_0x3cbaae]=_0x5e5f09(null),_0x2b0485=_0xbb03e5[_0x4a3d18(0x16f)](_0x1fa938,_0x2261bb[_0x4a3d18(0x324)]),_0x2ee12d=_0x1fa938===_0x2261bb[_0x4a3d18(0x1fe)],_0x47acbd=_0x1fa938===_0x2261bb[_0x4a3d18(0x19a)],_0x18f6ed=_0x1fa938===_0x2261bb[_0x4a3d18(0x210)],_0x4c372e=_0xbb03e5[_0x4a3d18(0x16f)](_0x1fa938,_0x2261bb[_0x4a3d18(0x283)]),_0x5db35d=_0x1fa938===_0x2261bb[_0x4a3d18(0x3a6)],_0x29e9b0=_0x1fa938===_0x2261bb['Waterfall'],_0xb9cf65=_0x1fa938===_0x2261bb['Pareto'],_0x3046c1=_0x1fa938===_0x2261bb[_0x4a3d18(0x1c3)],_0x340192=_0xbab818(_0x1fa938,_0x2b72e7[_0x4a3d18(0x357)])&&!_0x4c372e&&!_0xb9cf65,_0x4e4891=ii(_0x1fa938,_0x364dee);return _0x391b30(_0x177a4c,{'value':_0x1e4143,'onChange':_0x3cbaae,'children':[_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x230)],'label':_0x364dee['t'](_0x4a3d18(0x1eb)),'children':_0x143050(_0x5d8e64,{'defaultValues':X[_0x4a3d18(0x454)]})}),_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x45e)],'label':_0x364dee['t'](_0x4a3d18(0x2e8)),'children':_0x143050(_0x364a1b,{'commitMode':_0x4a3d18(0x2ef),'defaultValues':X[_0x4a3d18(0x3db)]})}),_0x143050(_0x533b6c,{'section':_0x4a3d18(0x222)}),_0x340192&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x493)],'label':_0x364dee['t'](_0x4a3d18(0x430)),'children':_0x143050(_0xaadc8a,{'defaultValues':X[_0x4a3d18(0x237)],'NumberFormatField':_0x56a20f})}),_0x29e9b0&&_0x143050(Z,{'id':_0x27e494['WaterfallSeries'],'label':_0x364dee['t'](_0x4a3d18(0x465)),'children':_0x143050(_0x40b896,{'defaultValues':X['waterfallStyle'],'getDefaultBucketName':({seriesName:_0xffc0c9,target:_0x24f531})=>_0x24f531===_0x1a11c1[_0x4a3d18(0x404)]?_0x364dee['t']('bases-dashboard-ui.chart.waterfall.subtotal'):_0xffc0c9?_0xffc0c9+'-('+_0x364dee['t']('bases-dashboard-ui.chart.'+(_0x24f531===_0x1a11c1[_0x4a3d18(0x22d)]?_0x4a3d18(0x2d0):_0x4a3d18(0x2c9)))+')':'','NumberFormatField':_0x56a20f})}),_0xb9cf65&&_0x391b30(_0x13d76c,{'children':[_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x3ca)],'label':_0x364dee['t'](_0x4a3d18(0x495)),'children':_0x143050(_0x4de7d9,{'defaultValues':X['pareto'],'NumberFormatField':_0x56a20f,'showDataPointEditor':!0x0,'target':_0x4a3d18(0x239)})}),_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x2b5)],'label':_0x364dee['t'](_0x4a3d18(0x32d)),'children':_0x143050(_0x4de7d9,{'defaultValues':X[_0x4a3d18(0x47e)],'NumberFormatField':_0x56a20f,'showDataPointEditor':!0x1,'target':'cumulativeLineStyle'})})]}),_0x2b0485&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x1d9)],'label':_0x364dee['t'](_0x4a3d18(0x44c)),'children':_0x143050(_0x4626d9,{'defaultValues':X[_0x4a3d18(0x2cf)],'NumberFormatField':_0x56a20f})}),_0x47acbd&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x19a)],'label':_0x364dee['t'](_0x4a3d18(0x39c)),'children':_0x143050(_0x450802,{'defaultValues':X[_0x4a3d18(0x269)]})}),_0x2ee12d&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x1fe)],'label':_0x364dee['t'](_0x4a3d18(0x157)),'children':_0x143050(_0x5b6a4d,{'defaultValues':X[_0x4a3d18(0x31a)]})}),_0x18f6ed&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x210)],'label':_0x364dee['t']('bases-dashboard-ui.chart.section.funnel'),'children':_0x143050(_0x3515bf,{'defaultValues':X[_0x4a3d18(0x470)],'gapControl':_0x4a3d18(0x2bf)})}),_0x3046c1&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x1c3)],'label':_0x364dee['t']('bases-dashboard-ui.chart.common.heatmap'),'children':_0x143050(_0x26b14a,{'defaultValues':X['heatmap']})}),_0x5db35d&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x3a6)],'label':_0x364dee['t'](_0x4a3d18(0x246)),'children':_0x143050(_0x4bddcd,{'defaultValues':X[_0x4a3d18(0x2b3)]})}),_0x230f4f(_0x1fa938)&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x499)],'label':_0x364dee['t'](_0xbb03e5[_0x4a3d18(0x16f)](_0x1fa938,_0x2261bb[_0x4a3d18(0x23f)])?_0x4a3d18(0x351):'bases-dashboard-ui.chart.chartTypes.line'),'children':_0x143050(_0x4ff136,{'defaultValues':X[_0x4a3d18(0x39d)],'lineStyleControl':_0x4a3d18(0x169)})}),_0xbab818(_0x1fa938,_0x2b72e7['Legend'])&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x2a0)],'label':_0x364dee['t'](_0x4a3d18(0x277)),'children':_0x143050(_0x399526,{'defaultValues':X[_0x4a3d18(0x49c)]})}),_0xbab818(_0x1fa938,_0x2b72e7[_0x4a3d18(0x2e9)])&&_0x391b30(_0x13d76c,{'children':[_0x143050(Z,{'id':_0x27e494['HorizontalAxis'],'label':_0x364dee['t'](_0x4a3d18(0x463)),'children':_0x143050(_0x347442,{'axis':'x','defaultValues':X[_0x4a3d18(0x4af)],'NumberFormatField':_0x56a20f})}),_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x333)],'label':_0x364dee['t'](_0x4a3d18(0x241)),'children':_0x143050(_0x347442,{'axis':'y','defaultValues':X[_0x4a3d18(0x4af)],'NumberFormatField':_0x56a20f})}),_0x143050(_0x533b6c,{'section':'depthAxis'}),_0x5c65bc&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x424)],'label':_0x364dee['t'](_0x4a3d18(0x43c)),'children':_0x143050(_0x347442,{'axis':_0x4a3d18(0x176),'defaultValues':X[_0x4a3d18(0x4af)],'NumberFormatField':_0x56a20f})}),_0x143050(Z,{'id':_0x27e494['GridlinesAndTicks'],'label':_0x364dee['t'](_0x4a3d18(0x2aa)),'children':_0x143050(_0x10f178,{'defaultValues':X[_0x4a3d18(0x4af)]})})]}),_0xbab818(_0x1fa938,_0x2b72e7[_0x4a3d18(0x2d6)])&&_0x143050(Z,{'id':_0x27e494['IndicatorLine'],'label':_0x364dee['t'](_0x4a3d18(0x3b1)),'children':_0x143050(_0x2906d0,{'defaultValues':X[_0x4a3d18(0x3ff)]})}),_0x351f42(_0x1fa938)&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x2e0)],'label':_0x364dee['t']('bases-dashboard-ui.chart.common.trendline'),'children':_0x143050(_0x3ac9fb,{'defaultValues':X[_0x4a3d18(0x40f)]})}),_0x4e4891&&_0x143050(Z,{'id':_0x4e4891['id'],'label':_0x4e4891[_0x4a3d18(0x19d)],'children':_0x143050(_0x3d37b1,{})})]});}function ii(_0x86674,_0x4c8142){const _0x2f7538=_0x410bd1;let _0x4abd4e={[_0x2261bb['Candlestick']]:{'id':_0x27e494[_0x2f7538(0x488)],'localeKey':_0x2f7538(0x41b)},[_0x2261bb['Histogram']]:{'id':_0x27e494[_0x2f7538(0x24a)],'localeKey':_0x2f7538(0x2e4)},[_0x2261bb['Treemap']]:{'id':_0x27e494[_0x2f7538(0x216)],'localeKey':_0x2f7538(0x20f)},[_0x2261bb[_0x2f7538(0x379)]]:{'id':_0x27e494[_0x2f7538(0x379)],'localeKey':_0x2f7538(0x1f5)},[_0x2261bb['Gauge']]:{'id':_0x27e494[_0x2f7538(0x2dd)],'localeKey':_0x2f7538(0x3bb)},[_0x2261bb['Chord']]:{'id':_0x27e494['Chord'],'localeKey':'bases-dashboard-ui.chart.section.chord'}}[_0x86674];return _0x4abd4e?{'id':_0x4abd4e['id'],'label':_0x4c8142['t'](_0x4abd4e[_0x2f7538(0x190)])}:null;}function ai(_0x34bc63){const _0x4bc11a=_0x410bd1;return _0x4bc11a(0x1d1)+_0x34bc63;}function oi({onChange:_0xc7381d,onEditData:_0x4262b4,runtime:_0x362de1,sourceChart:_0x279bba,sourceName:_0x3dfe51,widget:_0xa88144}){const _0x31bca8=_0x410bd1;let _0x2957a7=_0x20ec70(qr),_0x166338=_0x20ec70(_0x4f7627),[_0x348c57,_0x108a46]=_0x5e5f09(_0x3b422b[_0x31bca8(0x30b)]),_0x2307c7=_0xa88144[_0x31bca8(0x195)]??_0x279bba,_0x2a7576=_0x10a2b7(()=>new _0x439c8c(_0x362de1[_0x31bca8(0x37a)],{'commit':_0xc4dd50=>{const _0x4fb4dc=_0x31bca8;var _0x3edf91;let _0x2597b6=_0x362de1['model'],_0x215206=_0x59ff45(_0xc4dd50,{'series':(_0x3edf91=_0x2597b6[_0x4fb4dc(0x30a)])==null?void 0x0:_0x3edf91[_0x4fb4dc(0x237)],'currentChartType':_0x2597b6[_0x4fb4dc(0x2a8)],'currentStyle':_0x2597b6[_0x4fb4dc(0x454)],'currentContext':_0x2597b6['context'],'currentDataAggregation':_0x2597b6[_0x4fb4dc(0x225)]});_0xc7381d({..._0xa88144,'chart':ti(_0x2307c7,_0x215206)})['catch'](()=>void 0x0);}}),[_0x2307c7,_0xc7381d,_0x362de1,_0xa88144]),_0x2511c6=_0x10a2b7(()=>_0x2190e6(_0x1b8ffc[_0x31bca8(0x173)](_0x554369=>({..._0x554369,'label':_0x166338['t'](si(_0x554369[_0x31bca8(0x40d)]))}))),[_0x166338]);return _0x143050(_0x1250c0,{'chartUIService':_0x2957a7,'hostAdapter':_0x2a7576,'children':_0x391b30('div',{'data-dashboard-chart-inspector':!0x0,'className':_0x31bca8(0x3ed),'children':[_0x143050(_0x55df58,{'ariaLabel':_0x166338['t'](_0x31bca8(0x2d4)),'className':_0x31bca8(0x229),'items':[{'label':_0x166338['t']('bases-dashboard-ui.chart.common.setup'),'panelId':'dashboard-chart-setup','value':_0x3b422b[_0x31bca8(0x30b)]},{'label':_0x166338['t'](_0x31bca8(0x337)),'panelId':_0x31bca8(0x16b),'value':_0x3b422b['Style']}],'value':_0x348c57,'onChange':_0x108a46}),_0x348c57===_0x3b422b['Data']?_0x143050(_0x3a4219,{'id':_0x31bca8(0x2ab),'label':_0x166338['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x391b30(_0x31bca8(0x402),{'className':_0x31bca8(0x3c3),'children':[_0x143050(_0x29fd74,{'options':_0x2511c6}),_0x143050(_0x5ce85a,{}),_0x143050(_0x468a30,{}),_0x143050(ni,{}),_0x143050(_0x5d6f36,{}),_0x391b30(_0x31bca8(0x402),{'children':[_0x143050(_0x41b08d,{'title':_0x166338['t'](_0x31bca8(0x49a))}),_0x143050(_0x56be65,{'disabled':!0x0,'value':_0x3dfe51}),_0x143050(_0x11a8c2,{'className':_0x31bca8(0x228),'onClick':_0x4262b4,'children':_0x166338['t']('bases-dashboard-ui.dashboardInspector.editData')})]})]})}):_0x143050(_0x3a4219,{'id':_0x31bca8(0x16b),'label':_0x166338['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x143050(ri,{})})]})});}function si(_0x46f481){const _0x3e1e9f=_0x410bd1;return _0x3e1e9f(0x1d1)+_0x46f481;}const ci=[_0x410bd1(0x473),_0x410bd1(0x1c4),_0x410bd1(0x366),_0x410bd1(0x1c2),'grouped',_0x410bd1(0x2b1)];function li({base:_0xd55fe1,onChange:_0x45662c,onSelectBackgroundImage:_0x4459bb,widget:_0x2b836c}){const _0xa11328=_0x410bd1;var _0x373bdd;let _0x44e9f2=_0x20ec70(_0x4f7627),_0x3cafbd=_0x20ec70(_0x4e623a),_0x4635ed=_0x24cacb(()=>_0x3cafbd['currentTheme$'],_0x3cafbd['getCurrentTheme'](),!0x1,[_0x3cafbd]),_0x1f3636=_0x24cacb(()=>_0x3cafbd[_0xa11328(0x343)],_0x3cafbd[_0xa11328(0x257)],!0x1,[_0x3cafbd]),[_0x59f599,_0x14c51c]=_0x5e5f09(_0xa11328(0x2a6)),[_0x194ede,_0x39888f]=_0x5e5f09(!0x1),_0x4fe4c6=Cr(_0x2b836c),_0x3c338c=_0xd55fe1['getSnapshot']()[_0xa11328(0x2ec)][_0x2b836c[_0xa11328(0x266)]],_0xae1fd3=_0x3c338c==null?void 0x0:_0x3c338c['viewOrder'][_0xa11328(0x2da)](_0x65d13d=>_0x3c338c['views'][_0x65d13d]),_0x5f5769=_0xae1fd3?_0x3c338c==null?void 0x0:_0x3c338c[_0xa11328(0x348)][_0xae1fd3]:void 0x0,_0x885413=_0x3c338c&&_0x5f5769?_0x31f17a(_0xd55fe1[_0xa11328(0x31e)](),_0x3c338c,_0x5f5769)[_0xa11328(0x173)](_0x41d01f=>({..._0x41d01f,'current':!0x1})):[],_0x2da1f5=((_0x373bdd=_0x2b836c[_0xa11328(0x3a0)][_0xa11328(0x213)])==null?void 0x0:_0x373bdd[_0xa11328(0x341)])??'',_0x53a142=_0x4a2e2d=>_0x45662c(wr(_0x2b836c,_0x4a2e2d))[_0xa11328(0x28c)](()=>void 0x0),_0x47ab3e=_0x44ace3=>_0x45662c({..._0x2b836c,'description':_0x44ace3})[_0xa11328(0x28c)](()=>void 0x0);return _0x391b30(_0xa11328(0x402),{'data-dashboard-formula-inspector':!0x0,'className':_0xa11328(0x3ed),'children':[_0x143050(_0x5c4858,{'className':_0xa11328(0x306),'items':[{'value':_0xa11328(0x2a6),'label':_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.data')},{'value':'style','label':_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.style')}],'value':_0x59f599,'onChange':_0x14c51c}),_0x143050(_0xa11328(0x402),{'className':_0xa11328(0x23c),'children':_0x59f599===_0xa11328(0x2a6)?_0x391b30(_0xa11328(0x402),{'className':_0xa11328(0x3dc),'children':[_0x143050(ui,{'label':_0x44e9f2['t'](_0xa11328(0x297)),'children':_0x143050(_0x56be65,{'value':_0x2b836c[_0xa11328(0x240)]??_0x2b836c[_0xa11328(0x1c8)]??'','onChange':_0x47ab3e,'onBlur':_0x38385b=>_0x47ab3e(_0x38385b[_0xa11328(0x2f1)][_0xa11328(0x46f)])})}),_0x143050(ui,{'label':_0x44e9f2['t'](_0xa11328(0x49a)),'children':_0x143050(_0x56be65,{'disabled':!0x0,'value':(_0x3c338c==null?void 0x0:_0x3c338c[_0xa11328(0x1f6)])??_0x44e9f2['t'](_0xa11328(0x1f0))})}),_0x391b30(ui,{'label':_0x44e9f2['t'](_0xa11328(0x48b)),'children':[_0x143050(_0x56be65,{'disabled':!0x0,'value':_0x5451bf(_0x2da1f5,_0x885413)}),_0x143050(_0x11a8c2,{'className':_0xa11328(0x228),'onClick':()=>_0x39888f(!0x0),'children':_0x44e9f2['t'](_0xa11328(0x3e5))})]})]}):_0x391b30(_0xa11328(0x402),{'className':_0xa11328(0x3dc),'children':[_0x143050(_0x535011,{'emptyLabel':_0x44e9f2['t'](_0xa11328(0x25a)),'label':_0x44e9f2['t'](_0xa11328(0x25a)),'pickerFallbackValue':_0x1f3636?_0x4635ed[_0xa11328(0x20c)][0x384]:_0x4635ed[_0xa11328(0x20c)][0x0],'resetLabel':_0x44e9f2['t'](_0xa11328(0x17d)),'value':_0x4fe4c6['backgroundColor']??null,'onChange':_0x4e6f96=>_0x53a142({'backgroundColor':_0x4e6f96??void 0x0})}),_0x391b30(ui,{'label':_0x44e9f2['t'](_0xa11328(0x2c5)),'children':[_0x391b30(_0xa11328(0x402),{'className':_0xa11328(0x279),'children':[_0x391b30(_0x11a8c2,{'className':_0xa11328(0x27e),'onClick':()=>{const _0x584fdf=_0xa11328;_0x4459bb()[_0x584fdf(0x3c4)](_0x29ef5b=>{const _0x1387ee=_0x584fdf;if(_0x29ef5b){var _0x54b770;return _0x53a142({'backgroundImage':{..._0x29ef5b,'fit':((_0x54b770=_0x4fe4c6[_0x1387ee(0x2f8)])==null?void 0x0:_0x54b770[_0x1387ee(0x451)])??_0x1387ee(0x409)}});}})[_0x584fdf(0x28c)](()=>void 0x0);},'children':[_0x143050(_0x82e3c7,{}),_0x4fe4c6[_0xa11328(0x2f8)]?_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.replaceImage'):_0x44e9f2['t'](_0xa11328(0x1bc))]}),_0x4fe4c6[_0xa11328(0x2f8)]&&_0x143050(_0x11a8c2,{'aria-label':_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'onClick':()=>_0x53a142({'backgroundImage':void 0x0}),'children':_0x143050(_0x500a22,{})})]}),_0x4fe4c6['backgroundImage']&&_0x143050(_0x5c4858,{'className':_0xa11328(0x398),'items':[{'value':_0xa11328(0x409),'label':_0x44e9f2['t'](_0xa11328(0x336))},{'value':_0xa11328(0x415),'label':_0x44e9f2['t'](_0xa11328(0x31f))}],'value':_0x4fe4c6['backgroundImage']['fit'],'onChange':_0x129c84=>_0x53a142({'backgroundImage':_0x4fe4c6[_0xa11328(0x2f8)]?{..._0x4fe4c6['backgroundImage'],'fit':_0x129c84}:void 0x0})})]}),_0x143050(_0x535011,{'emptyLabel':_0x44e9f2['t'](_0xa11328(0x437)),'label':_0x44e9f2['t'](_0xa11328(0x437)),'pickerFallbackValue':_0x1f3636?_0x4635ed['gray'][0x32]:_0x4635ed[_0xa11328(0x20c)][0x3e8],'resetLabel':_0x44e9f2['t'](_0xa11328(0x17d)),'value':_0x4fe4c6[_0xa11328(0x2b0)]??null,'onChange':_0x1c8990=>_0x53a142({'textColor':_0x1c8990??void 0x0})}),_0x143050(ui,{'label':_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x143050(_0x5c4858,{'items':[{'value':_0xa11328(0x189),'label':_0x44e9f2['t'](_0xa11328(0x4ad))},{'value':_0xa11328(0x1d3),'label':_0x44e9f2['t'](_0xa11328(0x2d2))},{'value':_0xa11328(0x483),'label':_0x44e9f2['t'](_0xa11328(0x3b7))}],'value':_0x4fe4c6[_0xa11328(0x1c7)],'onChange':_0x443c5f=>_0x53a142({'alignment':_0x443c5f})})}),_0x391b30(ui,{'label':_0x44e9f2['t'](_0xa11328(0x207)),'children':[_0x143050(_0x5c4858,{'items':[{'value':'auto','label':_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':_0xa11328(0x234),'label':_0x44e9f2['t'](_0xa11328(0x384))}],'value':_0x4fe4c6[_0xa11328(0x1de)],'onChange':_0x5ad7b4=>_0x53a142({'fontSizeMode':_0x5ad7b4})}),_0x4fe4c6[_0xa11328(0x1de)]==='custom'&&_0x143050(_0x137e64,{'className':'univer-mt-2','min':0xc,'max':0x78,'value':_0x4fe4c6[_0xa11328(0x39b)],'onChange':_0x4897ce=>_0x53a142({'fontSize':_0x4897ce??0x28,'fontSizeMode':'custom'})})]}),_0x143050(ui,{'label':_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.numberFormat'),'children':_0x143050(Yr,{'value':_0x4fe4c6['numberFormat'],'options':[{'value':_0xa11328(0x473),'label':_0x44e9f2['t'](_0xa11328(0x16e))},{'value':'number','label':_0x44e9f2['t'](_0xa11328(0x327))},{'value':_0xa11328(0x366),'label':_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.percent')},{'value':_0xa11328(0x1c2),'label':_0x44e9f2['t'](_0xa11328(0x15a))},{'value':_0xa11328(0x166),'label':_0x44e9f2['t'](_0xa11328(0x2f7))},{'value':_0xa11328(0x2b1),'label':_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.compact')}],'onChange':_0x11fc6f=>{const _0xae7364=_0xa11328;let _0x5c1116=ci[_0xae7364(0x2da)](_0x1183e7=>_0x1183e7===_0x11fc6f);_0x5c1116&&_0x53a142({'numberFormat':_0x5c1116});}})}),_0x4fe4c6[_0xa11328(0x34e)]==='currency'&&_0x143050(ui,{'label':_0x44e9f2['t'](_0xa11328(0x458)),'children':_0x143050(_0x56be65,{'value':_0x4fe4c6['currency'],'onChange':_0x4df35c=>_0x53a142({'currency':_0x4df35c['slice'](0x0,0x3)[_0xa11328(0x1ee)]()})})}),_0x4fe4c6['numberFormat']!==_0xa11328(0x473)&&_0x143050(ui,{'label':_0x44e9f2['t'](_0xa11328(0x447)),'children':_0x143050(_0x137e64,{'min':0x0,'max':0x8,'value':_0x4fe4c6[_0xa11328(0x36d)],'onChange':_0x61050a=>_0x53a142({'decimalPlaces':_0x61050a??0x0})})})]})}),_0x194ede&&_0x143050(Zr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x143050(_0x4e5057,{'tables':_0x885413,'formula':_0x5451bf(_0x2da1f5,_0x885413),'onCancel':()=>_0x39888f(!0x1),'onSave':_0x48719e=>{const _0x14d594=_0xa11328;let _0x3f63d7=_0x2b836c['shapeData'][_0x14d594(0x213)]??{'formula':''};return _0x45662c({..._0x2b836c,'shapeData':{..._0x2b836c['shapeData'],'formulaBinding':{..._0x3f63d7,'formula':_0x57ee91(_0x48719e,_0x885413)}}})[_0x14d594(0x3c4)](()=>_0x39888f(!0x1))['catch'](()=>void 0x0);}})})]});}function ui({children:_0x25cfcf,label:_0x327ad1}){const _0x1a9c1b=_0x410bd1;return _0x391b30('div',{'role':_0x1a9c1b(0x3af),'aria-label':_0x327ad1,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x143050(_0x1a9c1b(0x378),{'children':_0x327ad1}),_0x25cfcf]});}function di({disabled:_0x278b36,fields:_0x539017,filter:_0x43cc2c,onChange:_0x35e246}){const _0x5d3cb2=_0x410bd1;let _0x4611b5=_0x20ec70(_0x14a063)['rootContainerElement']??null,[_0x3f0b1b,_0x1cbfa4]=_0x5e5f09(null),_0xb0a70c=_0x20ec70(_0x4f7627),_0x3243b6=(_0x43cc2c==null?void 0x0:_0x43cc2c['conditions'])??[];if(!_0x3243b6[_0x5d3cb2(0x38b)])return _0x391b30(_0x5d3cb2(0x402),{'className':_0x5d3cb2(0x435),'children':[_0x143050(_0x90a2b7,{'className':'univer-mx-auto\x20univer-size-6'}),_0x143050('span',{'className':'univer-text-sm','children':_0xb0a70c['t'](_0x5d3cb2(0x397))})]});let _0x266460=_0x3f0b1b==null?void 0x0:_0x3243b6[_0x3f0b1b],_0x5d48d6=_0x539017[_0x5d3cb2(0x2da)](_0x449bb2=>_0x449bb2['id']===(_0x266460==null?void 0x0:_0x266460[_0x5d3cb2(0x1b7)]));return _0x391b30(_0x5d3cb2(0x402),{'className':_0x5d3cb2(0x3a1),'children':[_0x3243b6[_0x5d3cb2(0x173)]((_0x9605de,_0x3849da)=>{const _0x1602e4=_0x5d3cb2;var _0x2c954e;return _0x391b30(_0x11a8c2,{'disabled':_0x278b36,'onClick':()=>_0x1cbfa4(_0x3849da),'children':[_0x143050(_0x1602e4(0x378),{'children':((_0x2c954e=_0x539017[_0x1602e4(0x2da)](_0x638f13=>_0x638f13['id']===_0x9605de[_0x1602e4(0x1b7)]))==null?void 0x0:_0x2c954e['name'])??_0x9605de[_0x1602e4(0x1b7)]}),_0x143050('span',{'className':_0x1602e4(0x2d9),'children':String(_0x9605de[_0x1602e4(0x3e0)]??'')})]},_0x9605de[_0x1602e4(0x1b7)]+'-'+_0x3849da);}),_0x5d48d6&&_0x266460&&_0x3f0b1b!=null&&_0x4611b5&&_0x35f612(_0x143050(_0x4ebe70,{'field':_0x5d48d6,'value':_0x266460['operand'],'onClose':()=>_0x1cbfa4(null),'onSave':_0x48135e=>{const _0x1126e6=_0x5d3cb2;_0x35e246({'conjunction':(_0x43cc2c==null?void 0x0:_0x43cc2c[_0x1126e6(0x45a)])??_0x3c7c2d[_0x1126e6(0x3d7)],'conditions':_0x3243b6[_0x1126e6(0x173)]((_0x44cd15,_0x3bd204)=>_0x3bd204===_0x3f0b1b?{..._0x44cd15,'operand':_0x48135e}:_0x44cd15)}),_0x1cbfa4(null);}}),_0x4611b5)]});}function fi({fields:_0x33b07d,filter:_0x472ead,onChange:_0x478ecf,onClear:_0x4b99e7}){const _0x2e5275=_0x410bd1;let _0x578e84=_0x20ec70(_0x4f7627);return _0x391b30(_0x2e5275(0x402),{'children':[_0x143050(_0x49b72d,{'fields':_0x33b07d,'value':_0x472ead??{'conjunction':_0x3c7c2d['AND'],'conditions':[]},'onChange':_0x478ecf}),_0x143050(_0x11a8c2,{'onClick':_0x4b99e7,'children':_0x578e84['t'](_0x2e5275(0x17d))})]});}function pi({base:_0x368a3f,chartRuntime:_0x1c7994,onChange:_0x2b0086,onClose:_0x61a86,onSelectBackgroundImage:_0x35e847,onSelectImage:_0x387ebc,unitId:_0x1f9195,widget:_0x4d8a80}){const _0x2b3d62=_0x410bd1;let _0x1415ec=_0x20ec70(_0x668d8f),_0x191dde=_0x20ec70(_0x4f7627),_0x2fde47=_0x368a3f['getSnapshot'](),_0x29c2a6='tableId'in _0x4d8a80?_0x2fde47[_0x2b3d62(0x2ec)][_0x4d8a80[_0x2b3d62(0x266)]]:void 0x0,_0x3344b6=_0x4d8a80[_0x2b3d62(0x38c)]===_0x4e7fff[_0x2b3d62(0x49f)]?_0x29c2a6==null?void 0x0:_0x29c2a6[_0x2b3d62(0x348)][_0x4d8a80[_0x2b3d62(0x326)]]:void 0x0,_0x3f72f0=_0x191dde['t'](bi(_0x4d8a80)),_0x200f8f=_0x391b30(_0x2b3d62(0x208),{'data-dashboard-inspector':!0x0,'className':_0x2b3d62(0x329),'children':[_0x4d8a80[_0x2b3d62(0x38c)]===_0x4e7fff[_0x2b3d62(0x49f)]&&(yi(_0x3344b6)&&_0x1c7994?_0x143050(oi,{'runtime':_0x1c7994,'sourceChart':_0x3344b6[_0x2b3d62(0x30a)][_0x2b3d62(0x195)],'sourceName':((_0x29c2a6==null?void 0x0:_0x29c2a6[_0x2b3d62(0x1f6)])??'')+_0x2b3d62(0x1d4)+_0x3344b6['name'],'widget':_0x4d8a80,'onChange':_0x2b0086,'onEditData':()=>{const _0x292ec2=_0x2b3d62;_0x1415ec['executeCommand'](_0x2fe630['id'],{'unitId':_0x1f9195,'tableId':_0x4d8a80[_0x292ec2(0x266)],'viewId':_0x4d8a80[_0x292ec2(0x326)]})[_0x292ec2(0x28c)](()=>void 0x0);}}):_0x143050(_i,{'message':yi(_0x3344b6)?_0x191dde['t'](_0x2b3d62(0x2fb)):_0x191dde['t'](_0x2b3d62(0x1f0))})),_0x4d8a80[_0x2b3d62(0x38c)]===_0x4e7fff[_0x2b3d62(0x2b8)]&&_0x143050(li,{'base':_0x368a3f,'widget':_0x4d8a80,'onChange':_0x2b0086,'onSelectBackgroundImage':_0x35e847}),_0x4d8a80[_0x2b3d62(0x38c)]===_0x4e7fff['TableFilter']&&_0x143050(hi,{'base':_0x368a3f,'onChange':_0x2b0086,'widget':_0x4d8a80}),_0x4d8a80[_0x2b3d62(0x38c)]===_0x4e7fff['Text']&&_0x143050(gi,{'onChange':_0x2b0086,'widget':_0x4d8a80}),_0x4d8a80[_0x2b3d62(0x38c)]===_0x4e7fff[_0x2b3d62(0x419)]&&_0x143050(mi,{'onChange':_0x2b0086,'onSelectImage':_0x387ebc,'widget':_0x4d8a80})]});return _0x143050(_0x2e2cb1,{'title':_0x3f72f0,'onClose':_0x61a86,'children':_0x200f8f});}function mi({onChange:_0x878739,onSelectImage:_0x1dc8c5,widget:_0x539344}){const _0x562e23=_0x410bd1;let _0x1b4291=_0x20ec70(_0x4f7627);return _0x391b30('div',{'className':'univer-grid\x20univer-gap-4\x20univer-p-4','children':[_0x391b30(_0x11a8c2,{'className':_0x562e23(0x160),'onClick':()=>_0x1dc8c5()[_0x562e23(0x3c4)](_0x432c88=>_0x432c88&&_0x878739({..._0x539344,'source':_0x432c88[_0x562e23(0x2d8)],'sourceType':_0x432c88['sourceType'],'alt':_0x432c88[_0x562e23(0x1f6)]}))[_0x562e23(0x28c)](()=>void 0x0),'children':[_0x143050(_0x82e3c7,{}),_0x1b4291['t']('bases-dashboard-ui.dashboardInspector.replaceImage')]}),_0x391b30(_0x562e23(0x19d),{'className':_0x562e23(0x3be),'children':[_0x143050(_0x562e23(0x378),{'children':_0x1b4291['t'](_0x562e23(0x2c5))}),_0x143050(_0x5c4858,{'items':[{'value':_0x562e23(0x409),'label':_0x1b4291['t'](_0x562e23(0x336))},{'value':_0x562e23(0x30c),'label':_0x1b4291['t'](_0x562e23(0x308))},{'value':_0x562e23(0x446),'label':_0x1b4291['t'](_0x562e23(0x22b))}],'value':_0x539344[_0x562e23(0x201)]??_0x562e23(0x409),'onChange':_0x2a8c9e=>_0x878739({..._0x539344,'displayMode':_0x2a8c9e})[_0x562e23(0x28c)](()=>void 0x0)})]})]});}function hi({base:_0x352009,onChange:_0x3e75bd,widget:_0xb3b3e1}){const _0x49f287=_0x410bd1;let _0x28314a=_0x352009['getSnapshot']()[_0x49f287(0x2ec)][_0xb3b3e1[_0x49f287(0x266)]],_0x519a39=_0x28314a==null?void 0x0:_0x28314a[_0x49f287(0x30e)]['find'](_0x411cea=>_0x28314a[_0x49f287(0x348)][_0x411cea]),_0x554640=_0x519a39?_0x28314a==null?void 0x0:_0x28314a[_0x49f287(0x348)][_0x519a39]:void 0x0,_0x3bc4d8=_0x28314a&&_0x554640?_0x4eb67b(_0x28314a,_0x554640):[];return _0x143050(fi,{'fields':_0x3bc4d8,'filter':_0xb3b3e1['filter'],'onChange':_0xaca645=>_0x3e75bd({..._0xb3b3e1,'filter':_0xaca645})[_0x49f287(0x28c)](()=>void 0x0),'onClear':()=>_0x3e75bd({..._0xb3b3e1,'filter':null})['catch'](()=>void 0x0)});}function gi({onChange:_0x2979fd,widget:_0x4865a6}){const _0x295cbb=_0x410bd1;let _0x436472=_0x20ec70(_0x4f7627),_0x42189f=_0x20ec70(_0x4e623a),_0xaa6242=_0x24cacb(()=>_0x42189f[_0x295cbb(0x1be)],_0x42189f['getCurrentTheme'](),!0x1,[_0x42189f]),_0x3c405f=Hr(_0x4865a6),_0x45c6bd=_0x175a65=>_0x2979fd({..._0x4865a6,'appearance':{..._0x3c405f,..._0x175a65}})[_0x295cbb(0x28c)](()=>void 0x0);return _0x391b30('div',{'className':_0x295cbb(0x2f3),'children':[_0x143050(_0x2d4d6c,{'className':'univer-max-h-40\x20univer-text-base','defaultValue':Ur(_0x4865a6[_0x295cbb(0x40b)]),'rows':0x8,'onBlur':_0x156b7b=>_0x2979fd({..._0x4865a6,'document':Wr(_0x4865a6[_0x295cbb(0x40b)],_0x156b7b['target'][_0x295cbb(0x46f)])})[_0x295cbb(0x28c)](()=>void 0x0)}),_0x143050(_0x535011,{'emptyLabel':_0x436472['t'](_0x295cbb(0x25a)),'label':_0x436472['t'](_0x295cbb(0x25a)),'pickerFallbackValue':_0xaa6242[_0x295cbb(0x20c)][0x0],'resetLabel':_0x436472['t'](_0x295cbb(0x17d)),'value':_0x3c405f[_0x295cbb(0x32a)]??null,'onChange':_0x38c150=>_0x45c6bd({'backgroundColor':_0x38c150??void 0x0})}),_0x143050(_0x535011,{'emptyLabel':_0x436472['t'](_0x295cbb(0x437)),'label':_0x436472['t'](_0x295cbb(0x437)),'pickerFallbackValue':_0xaa6242[_0x295cbb(0x20c)][0x3e8],'resetLabel':_0x436472['t'](_0x295cbb(0x17d)),'value':_0x3c405f[_0x295cbb(0x2b0)]??null,'onChange':_0x5cce04=>_0x45c6bd({'textColor':_0x5cce04??void 0x0})}),_0x143050(vi,{'label':_0x436472['t'](_0x295cbb(0x42d)),'children':_0x143050(_0x5c4858,{'items':[{'value':_0x295cbb(0x189),'label':_0x436472['t'](_0x295cbb(0x4ad))},{'value':_0x295cbb(0x1d3),'label':_0x436472['t'](_0x295cbb(0x2d2))},{'value':_0x295cbb(0x483),'label':_0x436472['t'](_0x295cbb(0x3b7))}],'value':_0x3c405f['alignment'],'onChange':_0x415a12=>_0x45c6bd({'alignment':_0x415a12})})}),_0x391b30(vi,{'label':_0x436472['t'](_0x295cbb(0x207)),'children':[_0x143050(_0x5c4858,{'items':[{'value':'auto','label':_0x436472['t'](_0x295cbb(0x28b))},{'value':_0x295cbb(0x234),'label':_0x436472['t'](_0x295cbb(0x384))}],'value':_0x3c405f['fontSizeMode'],'onChange':_0x1e5edd=>_0x45c6bd({'fontSizeMode':_0x1e5edd})}),_0x3c405f[_0x295cbb(0x1de)]===_0x295cbb(0x234)&&_0x143050(_0x137e64,{'className':_0x295cbb(0x398),'min':0xa,'max':0x78,'value':_0x3c405f[_0x295cbb(0x39b)],'onChange':_0x29b527=>_0x45c6bd({'fontSize':_0x29b527??0x12,'fontSizeMode':_0x295cbb(0x234)})})]})]});}function _i({message:_0x8d8c56}){return _0x143050('div',{'className':'univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','children':_0x8d8c56});}function vi({children:_0x42e1fb,label:_0x4ca69c}){const _0x246016=_0x410bd1;return _0x391b30('div',{'role':_0x246016(0x3af),'aria-':!0x0,'className':_0x246016(0x3be),'children':[_0x143050(_0x246016(0x378),{'children':_0x4ca69c}),_0x42e1fb]});}function yi(_0x39b80f){const _0x19b9d4=_0x410bd1;return(_0x39b80f==null?void 0x0:_0x39b80f[_0x19b9d4(0x38c)])===_0x37c4bc[_0x19b9d4(0x3bf)]&&typeof _0x39b80f['config']==_0x19b9d4(0x16a)&&_0x39b80f[_0x19b9d4(0x30a)]!==null&&_0x19b9d4(0x382)in _0x39b80f[_0x19b9d4(0x30a)]&&_0x19b9d4(0x195)in _0x39b80f['config'];}function bi(_0xbdac7a){const _0x5cd7d4=_0x410bd1;switch(_0xbdac7a[_0x5cd7d4(0x38c)]){case _0x4e7fff['PivotChart']:return'bases-dashboard-ui.dashboard.pivotChart';case _0x4e7fff[_0x5cd7d4(0x193)]:return _0x5cd7d4(0x397);case _0x4e7fff[_0x5cd7d4(0x4b4)]:return'bases-dashboard-ui.dashboard.text';case _0x4e7fff[_0x5cd7d4(0x419)]:return'bases-dashboard-ui.dashboard.image';case _0x4e7fff['FormulaShape']:return _0x5cd7d4(0x17f);}}function xi({onDelete:_0x59053c,onEdit:_0x7e1a0c,onMoveUp:_0x390706,onMoveDown:_0x4f2e62}){const _0x529168=_0x410bd1;let [_0x5db462,_0x12ec85]=_0x5e5f09(!0x1),_0x4fc83a=_0x20ec70(_0x4f7627),_0x2494b7=_0x4fc83a['t'](_0x529168(0x27d)),_0x48ba4a=_0x4fc83a['t'](_0x529168(0x3b3)),_0x522429=_0x4fc83a['t'](_0x529168(0x427)),_0x2e46cb=[{'type':'item','children':_0x391b30('span',{'className':_0x529168(0x203),'children':[_0x143050(_0x5711a9,{'className':_0x529168(0x27a),'aria-hidden':'true'}),_0x143050(_0x529168(0x378),{'children':_0x2494b7})]}),'onSelect':_0x7e1a0c},..._0x390706?[{'type':_0x529168(0x485),'children':_0x391b30(_0x529168(0x378),{'className':_0x529168(0x203),'children':[_0x143050(_0x40c1d9,{'className':'univer-size-4','aria-hidden':_0x529168(0x2c4)}),_0x143050(_0x529168(0x378),{'children':_0x4fc83a['t'](_0x529168(0x3e1))})]}),'onSelect':_0x390706}]:[],..._0x4f2e62?[{'type':_0x529168(0x485),'children':_0x391b30('span',{'className':_0x529168(0x203),'children':[_0x143050(_0x5584ab,{'className':_0x529168(0x27a),'aria-hidden':'true'}),_0x143050(_0x529168(0x378),{'children':_0x4fc83a['t'](_0x529168(0x15b))})]}),'onSelect':_0x4f2e62}]:[],{'type':'separator'},{'type':_0x529168(0x485),'variant':_0x529168(0x373),'children':_0x391b30(_0x529168(0x378),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x143050(_0x500a22,{'className':'univer-size-4','aria-hidden':_0x529168(0x2c4)}),_0x143050(_0x529168(0x378),{'children':_0x48ba4a})]}),'onSelect':_0x59053c}];return _0x143050(_0x566dc7,{'open':_0x5db462,'onOpenChange':_0x12ec85,'align':'end','sideOffset':0x4,'items':_0x2e46cb[_0x529168(0x173)](_0xff2913=>({..._0xff2913,'className':_0xff2913[_0x529168(0x38c)]===_0x529168(0x485)?'univer-min-h-11\x20univer-px-3\x20univer-text-base':void 0x0})),'children':_0x143050(_0x11a8c2,{'type':_0x529168(0x44d),'size':_0x529168(0x323),'variant':_0x529168(0x3f3),'onPointerDown':_0x2c1bf2=>_0x2c1bf2['preventDefault'](),'onClick':()=>_0x12ec85(_0x446e9e=>!_0x446e9e),'title':_0x522429,'aria-label':_0x522429,'className':_0x529168(0x23d),'children':_0x143050(_0x2fabd1,{'className':_0x529168(0x27a),'aria-hidden':_0x529168(0x2c4)})})});}function Si({dashboardId:_0x3c9db0,presentation:_0x28e8a0=!0x1,unitId:_0x70ff9c}){const _0x14779e=_0x410bd1;let _0x12c1c7=_0x20ec70(_0x4c3614),_0x306026=_0x20ec70(_0x46cb3e);_0x24cacb(_0x306026[_0x14779e(0x410)],0x0);let _0x55fd46=_0x20ec70(_0x668d8f),_0x240704=_0x20ec70(_0x458fcc),_0x2d78ec=_0x20ec70(_0x1561a2),_0x3f5a66=_0x20ec70(_0x1ce417),_0x44592e=_0x20ec70(_0x4f7627),_0x234134=_0x20ec70(_0x3a9dda),_0x52d83e=_0x20ec70(_0x3de274),[_0x204cd4,_0x1a6769]=_0x5e5f09(!0x1),[_0x2716b7,_0x1e8714]=_0x5e5f09(),[_0x525108,_0x8c0a69]=_0x5e5f09(!0x1),[_0x4e027c,_0x2b346e]=_0x5e5f09(()=>new Map()),_0x5ef071=_0x31eec3((_0x332a25,_0x22e79b)=>{_0x2b346e(_0x428d17=>{const _0x8d3004=_0x10b1;let _0x50b172=new Map(_0x428d17);return _0x22e79b?_0x50b172[_0x8d3004(0x338)](_0x332a25,_0x22e79b):_0x50b172['delete'](_0x332a25),_0x50b172;});},[]),_0x1e9ec7=_0x24cacb(()=>_0x234134['change$'][_0x14779e(0x40a)](_0x53720a(()=>_0x234134['getDashboard'](_0x70ff9c,_0x3c9db0))),_0x234134[_0x14779e(0x36f)](_0x70ff9c,_0x3c9db0),!0x1,[_0x3c9db0,_0x234134,_0x70ff9c]),_0x10833e=_0x3f5a66[_0x14779e(0x211)](_0x70ff9c,_0xd3f775['UNIVER_BASE']),_0x2f65ed=_0x24cacb(()=>_0x52d83e['undoRedoStatus$'],{'undos':0x0,'redos':0x0},!0x1,[_0x52d83e]),_0x43f231=vr(_0x70ff9c,_0x3c9db0);if(_0x2fd531(()=>{const _0x5a004d=_0x14779e;_0x3f5a66[_0x5a004d(0x3d1)](_0x70ff9c),_0x3f5a66[_0x5a004d(0x46a)](_0x70ff9c);},[_0x3f5a66,_0x70ff9c]),!_0x1e9ec7||!_0x10833e)return null;let _0x357766={'unitId':_0x70ff9c,'objectId':_0x264ef9(_0x3c9db0),'objectType':_0x2dc28e['BaseDashboard']},_0x126349=(_0x368916,_0x5f4f6e)=>{const _0x26653a=_0x14779e;let _0x1b3e1c=[..._0x1e9ec7[_0x26653a(0x487)]],_0x491705=_0x1b3e1c['indexOf'](_0x368916),_0x2f30=_0x491705+_0x5f4f6e;if(!(_0x491705<0x0||_0x2f30<0x0||_0x2f30>=_0x1b3e1c[_0x26653a(0x38b)]))return[_0x1b3e1c[_0x491705],_0x1b3e1c[_0x2f30]]=[_0x1b3e1c[_0x2f30],_0x1b3e1c[_0x491705]],_0x55fd46['executeCommand'](_0x1e24a6['id'],{'unitId':_0x70ff9c,'dashboard':{..._0x1e9ec7,'widgetOrder':_0x1b3e1c}});},_0xa40346=_0x2cf4e9=>_0x55fd46['executeCommand'](_0x59e700['id'],{'unitId':_0x70ff9c,'dashboardId':_0x3c9db0,'widget':_0x2cf4e9})[_0x14779e(0x28c)](()=>void 0x0),_0x5e8bdd=(_0x293d07,_0x267eb7,_0x2b1136)=>{const _0x45510e=_0x14779e;let _0x33ddc0=Math[_0x45510e(0x3b6)](0x0,..._0x1e9ec7['widgetOrder'][_0x45510e(0x1c6)](_0x2a6ba7=>{const _0x3dfe4b=_0x45510e;var _0x41390c;let _0x5d7f1b=(_0x41390c=_0x1e9ec7[_0x3dfe4b(0x34d)][_0x2a6ba7])==null?void 0x0:_0x41390c[_0x3dfe4b(0x281)];return _0x5d7f1b?[_0x5d7f1b[_0x3dfe4b(0x3e4)]+_0x5d7f1b[_0x3dfe4b(0x1ad)]]:[];})),_0x4f3d14='dashboard-widget-'+_0x542898(0x8),_0x54fa65={'column':0x0,'row':_0x33ddc0,'columnSpan':_0x267eb7,'rowSpan':_0x2b1136};switch(_0x293d07[_0x45510e(0x38c)]){case _0x4e7fff['PivotChart']:return _0xa40346({..._0x293d07,'id':_0x4f3d14,'layout':_0x54fa65});case _0x4e7fff[_0x45510e(0x193)]:return _0xa40346({..._0x293d07,'id':_0x4f3d14,'layout':_0x54fa65});case _0x4e7fff[_0x45510e(0x4b4)]:return _0xa40346({..._0x293d07,'id':_0x4f3d14,'layout':_0x54fa65});case _0x4e7fff[_0x45510e(0x419)]:return _0xa40346({..._0x293d07,'id':_0x4f3d14,'layout':_0x54fa65});case _0x4e7fff['FormulaShape']:return _0xa40346({..._0x293d07,'id':_0x4f3d14,'layout':_0x54fa65});}},_0x3c69ef=_0x10833e[_0x14779e(0x31e)](),_0x3468dc=_0x3c69ef['tableOrder'][_0x14779e(0x1c6)](_0x13b5c4=>{const _0x290d6d=_0x14779e;let _0x46e21d=_0x3c69ef[_0x290d6d(0x2ec)][_0x13b5c4];if(!_0x46e21d)return[];let _0x2ec89a=_0x46e21d['viewOrder']['flatMap'](_0x3b0fd2=>{const _0x14d3b2=_0x290d6d;let _0x4e8bfa=_0x46e21d[_0x14d3b2(0x348)][_0x3b0fd2];return Ai(_0x4e8bfa)?[{'type':_0x14d3b2(0x485),'children':_0x4e8bfa[_0x14d3b2(0x1f6)],'onSelect':()=>_0x5e8bdd({'type':_0x4e7fff[_0x14d3b2(0x49f)],'tableId':_0x13b5c4,'pivotViewId':_0x3b0fd2,'chart':{..._0x4e8bfa[_0x14d3b2(0x30a)][_0x14d3b2(0x195)]}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0x46e21d[_0x290d6d(0x1f6)],'options':[..._0x2ec89a,..._0x2ec89a[_0x290d6d(0x38b)]?[{'type':'separator'}]:[],{'type':_0x290d6d(0x485),'children':_0x44592e['t'](_0x290d6d(0x397)),'onSelect':()=>_0x5e8bdd({'type':_0x4e7fff[_0x290d6d(0x193)],'tableId':_0x13b5c4,'filter':null},0x6,0x8)}]}];}),_0x75f39b=[..._0x3468dc,..._0x3468dc[_0x14779e(0x38b)]?[{'type':_0x14779e(0x403)}]:[],{'type':_0x14779e(0x485),'children':_0x44592e['t']('bases-dashboard-ui.dashboard.text'),'onSelect':()=>_0x5e8bdd({'type':_0x4e7fff[_0x14779e(0x4b4)],'document':Ei()},0x4,0x6)},{'type':'item','children':_0x44592e['t'](_0x14779e(0x42c)),'onSelect':()=>Di(_0x240704)[_0x14779e(0x3c4)](_0x48318b=>_0x48318b&&_0x5e8bdd({'type':_0x4e7fff[_0x14779e(0x419)],'source':_0x48318b[_0x14779e(0x2d8)],'sourceType':_0x48318b[_0x14779e(0x253)],'alt':_0x48318b[_0x14779e(0x1f6)],'displayMode':_0x14779e(0x409)},0x4,0x6))},{'type':_0x14779e(0x485),'children':_0x44592e['t']('bases-dashboard-ui.dashboard.formulaShape'),'onSelect':()=>{const _0x47d835=_0x14779e;let _0x1925ec=_0x3c69ef[_0x47d835(0x490)]['find'](_0x175fa3=>_0x3c69ef[_0x47d835(0x2ec)][_0x175fa3]);_0x1925ec&&_0x5e8bdd({'type':_0x4e7fff['FormulaShape'],'tableId':_0x1925ec,'shapeType':_0x389913[_0x47d835(0x3fc)],'shapeData':_0x365108(),'description':_0x44592e['t']('bases-dashboard-ui.dashboard.formulaShape')},0x4,0x6);}}],_0x5b4041=_0x2716b7?_0x1e9ec7[_0x14779e(0x34d)][_0x2716b7]:void 0x0,_0x33bce3=()=>_0x8c0a69(_0x525db1=>!_0x525db1),_0x515cef=_0x28e8a0||_0x525108,_0x56ae16=_0x43f231&&!_0x515cef;return _0x143050(Jr,{'children':_0x391b30(_0x14779e(0x402),{'className':_0x14779e(0x25b)+(_0x525108?_0x14779e(0x276):_0x14779e(0x1b4))+_0x14779e(0x38a),'children':[_0x525108&&_0x143050(_0x11a8c2,{'onClick':()=>_0x8c0a69(!0x1),'children':_0x44592e['t']('bases-dashboard-ui.dashboardInspector.close')}),!_0x515cef&&_0x391b30(_0x14779e(0x3cb),{'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':[_0x143050(_0x37386e,{'className':_0x14779e(0x356)}),_0x143050('h2',{'className':_0x14779e(0x46d),'children':_0x1e9ec7[_0x14779e(0x1f6)]}),_0x306026[_0x14779e(0x393)](_0x357766)&&_0x143050(_0x11a8c2,{'variant':'text','disabled':!_0x306026[_0x14779e(0x390)](_0x357766),'aria-label':_0x44592e['t'](_0x14779e(0x35c)),'onClick':()=>{const _0x2de847=_0x14779e;_0x219393(_0x12c1c7,{'target':_0x357766,'name':_0x1e9ec7['name'],'commandId':_0x523fb1['id'],'exists':()=>!!_0x234134[_0x2de847(0x36f)](_0x70ff9c,_0x3c9db0)});},'children':_0x143050(_0x42b635,{})}),_0x143050(_0x335c60,{'unitId':_0x70ff9c}),_0x143050(_0x11a8c2,{'type':_0x14779e(0x44d),'size':'small','variant':_0x14779e(0x3f3),'aria-label':_0x44592e['t']('bases-dashboard-ui.dashboard.undo'),'disabled':!_0x43f231||_0x2f65ed[_0x14779e(0x36b)]===0x0,'onClick':()=>_0x55fd46[_0x14779e(0x18b)](_0x2178d8['id'])['catch'](()=>void 0x0),'children':_0x143050(_0x232960,{})}),_0x143050(_0x11a8c2,{'type':_0x14779e(0x44d),'size':_0x14779e(0x323),'variant':'text','aria-label':_0x44592e['t'](_0x14779e(0x3f7)),'disabled':!_0x43f231||_0x2f65ed[_0x14779e(0x347)]===0x0,'onClick':()=>_0x55fd46['executeCommand'](_0xa30686['id'])['catch'](()=>void 0x0),'children':_0x143050(_0x4cec9e,{})}),_0x143050(_0x11a8c2,{'type':_0x14779e(0x44d),'size':_0x14779e(0x323),'variant':'text','aria-label':_0x44592e['t'](_0x14779e(0x46c)),'onClick':_0x33bce3,'children':_0x143050(_0x14205d,{})}),_0x143050(Xr,{'items':_0x75f39b,'children':_0x391b30(_0x11a8c2,{'variant':_0x14779e(0x386),'disabled':!_0x43f231,'children':[_0x143050(_0x82e3c7,{}),_0x44592e['t'](_0x14779e(0x38f))]})})]}),_0x391b30(_0x14779e(0x402),{'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1','children':[_0x143050(_0x14779e(0x402),{'className':_0x14779e(0x1ab),'children':_0x143050(Kr,{'dashboard':_0x1e9ec7,'editable':_0x56ae16,'widgetLabel':_0x4bc45e=>_0x44592e['t'](ki(_0x4bc45e[_0x14779e(0x38c)])),'selectedWidgetId':_0x56ae16?_0x2716b7:void 0x0,'onSelectWidget':_0x56ae16?_0x551f7e=>{_0x1e8714(_0x551f7e),_0x551f7e||_0x1a6769(!0x1);}:void 0x0,'renderWidget':_0x25cb44=>_0x143050(Ci,{'base':_0x10833e,'dashboard':_0x1e9ec7,'unitId':_0x70ff9c,'widget':_0x25cb44,'onChange':_0xa40346,'onChartRuntimeChange':_0x5ef071}),'renderWidgetActions':_0x9d8abc=>_0x143050(xi,{'onMoveUp':_0x1e9ec7[_0x14779e(0x487)][_0x14779e(0x4b1)](_0x9d8abc['id'])>0x0?()=>_0x126349(_0x9d8abc['id'],-0x1):void 0x0,'onMoveDown':_0x1e9ec7[_0x14779e(0x487)][_0x14779e(0x4b1)](_0x9d8abc['id'])<_0x1e9ec7[_0x14779e(0x487)][_0x14779e(0x38b)]-0x1?()=>_0x126349(_0x9d8abc['id'],0x1):void 0x0,'onEdit':()=>{_0x1e8714(_0x9d8abc['id']),_0x1a6769(!0x0);},'onDelete':()=>{const _0x276d0f=_0x14779e;_0x2716b7===_0x9d8abc['id']&&(_0x1e8714(void 0x0),_0x1a6769(!0x1)),_0x55fd46[_0x276d0f(0x18b)](_0x29094f['id'],{'unitId':_0x70ff9c,'dashboardId':_0x3c9db0,'widgetId':_0x9d8abc['id']})[_0x276d0f(0x28c)](()=>void 0x0);}})})}),_0x56ae16&&_0x204cd4&&_0x5b4041&&_0x143050(pi,{'base':_0x10833e,'chartRuntime':_0x4e027c['get'](_0x5b4041['id']),'unitId':_0x70ff9c,'widget':_0x5b4041,'onChange':_0xa40346,'onClose':()=>_0x1a6769(!0x1),'onSelectBackgroundImage':()=>Oi(_0x2d78ec),'onSelectImage':()=>Di(_0x240704)})]})]})});}function Ci({base:_0x5c3797,dashboard:_0x54cf16,onChange:_0x32e750,onChartRuntimeChange:_0x5c5b0b,unitId:_0x47ad1a,widget:_0x11ba1d}){const _0x442674=_0x410bd1;let _0x582e33=_0x10a2b7(()=>_0x54cf16[_0x442674(0x487)]['flatMap'](_0x4045d8=>{const _0x2c18f6=_0x442674;let _0x3d88e4=_0x54cf16[_0x2c18f6(0x34d)][_0x4045d8];return(_0x3d88e4==null?void 0x0:_0x3d88e4[_0x2c18f6(0x38c)])===_0x4e7fff[_0x2c18f6(0x193)]&&_0x3d88e4['tableId']===(_0x2c18f6(0x266)in _0x11ba1d?_0x11ba1d['tableId']:'')&&_0x3d88e4['filter']?[_0x3d88e4['filter']]:[];}),[_0x54cf16,_0x11ba1d]);switch(_0x11ba1d['type']){case _0x4e7fff['PivotChart']:return _0x143050(zr,{'filters':_0x582e33,'unitId':_0x47ad1a,'widget':_0x11ba1d,'onRuntimeChange':_0x5c5b0b});case _0x4e7fff[_0x442674(0x193)]:return _0x143050(di,{'fields':wi(_0x5c3797,_0x11ba1d[_0x442674(0x266)]),'filter':_0x11ba1d[_0x442674(0x267)],'onChange':_0x2f8ed3=>_0x32e750({..._0x11ba1d,'filter':_0x2f8ed3})['catch'](()=>void 0x0)});case _0x4e7fff['Text']:return _0x143050(Gr,{'widget':_0x11ba1d});case _0x4e7fff[_0x442674(0x419)]:return _0x143050(Ti,{'widget':_0x11ba1d});case _0x4e7fff[_0x442674(0x2b8)]:return _0x143050(kr,{'dashboardId':_0x54cf16['id'],'unitId':_0x47ad1a,'widget':_0x11ba1d});}}function wi(_0x5ec207,_0x3e0522){const _0x42c0fb=_0x410bd1;let _0xf04343=_0x5ec207[_0x42c0fb(0x31e)]()[_0x42c0fb(0x2ec)][_0x3e0522],_0x287744=_0xf04343==null?void 0x0:_0xf04343[_0x42c0fb(0x30e)][_0x42c0fb(0x2da)](_0x300f11=>_0xf04343[_0x42c0fb(0x348)][_0x300f11]),_0x5e27f7=_0x287744?_0xf04343==null?void 0x0:_0xf04343['views'][_0x287744]:void 0x0;return _0xf04343&&_0x5e27f7?_0x4eb67b(_0xf04343,_0x5e27f7):[];}function Ti({widget:_0x145039}){const _0x332e68=_0x410bd1;let _0xcc43ec=_0x20ec70(_0x458fcc),[_0x349b8b,_0x2a65e5]=_0x5e5f09(_0x145039['sourceType']===_0x4ca25c[_0x332e68(0x27f)]?'':_0x145039[_0x332e68(0x2d8)]);return _0x2fd531(()=>{const _0x51350e=_0x332e68;let _0x11016d=!0x0;return _0xcc43ec[_0x51350e(0x4a1)](_0x145039['source'],_0x145039[_0x51350e(0x253)])[_0x51350e(0x3c4)](_0x3f0a27=>{_0x11016d&&_0x2a65e5(_0x3f0a27);})['catch'](()=>void 0x0),()=>{_0x11016d=!0x1;};},[_0xcc43ec,_0x145039[_0x332e68(0x2d8)],_0x145039[_0x332e68(0x253)]]),_0x349b8b?_0x143050(_0x332e68(0x402),{'role':_0x145039[_0x332e68(0x1b3)]?_0x332e68(0x21f):void 0x0,'aria-label':_0x145039[_0x332e68(0x1b3)]||void 0x0,'data-dashboard-image':_0x145039['id'],'className':_0x332e68(0x421),'style':br(_0x349b8b,_0x145039[_0x332e68(0x201)])}):null;}function Ei(){const _0x274e02=_0x410bd1;let _0xfdf284=_0x76d4c9(new Set());return{'id':_0x274e02(0x3bc)+_0x542898(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0xfdf284}]},'documentStyle':{}};}function Di(_0x54e487){return new Promise(_0x111219=>{const _0x55e1e3=_0x10b1;let _0x5a6a1d=document[_0x55e1e3(0x414)]('input');_0x5a6a1d[_0x55e1e3(0x38c)]=_0x55e1e3(0x1cb),_0x5a6a1d[_0x55e1e3(0x2e3)]='image/*',_0x5a6a1d[_0x55e1e3(0x2fc)](_0x55e1e3(0x376),()=>{const _0x55c284=_0x55e1e3;var _0x108f78;let _0xe42379=(_0x108f78=_0x5a6a1d[_0x55c284(0x251)])==null?void 0x0:_0x108f78[0x0];_0xe42379?_0x54e487['saveAttachment'](_0xe42379)['then'](_0x4f13b7=>{const _0x4aa54f=_0x55c284;!_0x4f13b7[_0x4aa54f(0x2d8)]||_0x4f13b7['sourceType']===void 0x0?_0x111219(null):_0x111219({'name':_0x4f13b7[_0x4aa54f(0x1f6)],'source':_0x4f13b7[_0x4aa54f(0x2d8)],'sourceType':_0x4f13b7['sourceType']});})['catch'](()=>_0x111219(null)):_0x111219(null);},{'once':!0x0}),_0x5a6a1d[_0x55e1e3(0x291)]();});}function Oi(_0x430fff){return new Promise(_0x45cac4=>{const _0x52b456=_0x10b1;let _0x3c26ae=document[_0x52b456(0x414)]('input');_0x3c26ae[_0x52b456(0x38c)]=_0x52b456(0x1cb),_0x3c26ae['accept']=_0x52b456(0x3ad),_0x3c26ae[_0x52b456(0x2fc)]('change',()=>{const _0xfcdb0c=_0x52b456;var _0x2f4ed0;let _0x30da52=(_0x2f4ed0=_0x3c26ae[_0xfcdb0c(0x251)])==null?void 0x0:_0x2f4ed0[0x0];_0x30da52?_0x430fff[_0xfcdb0c(0x2a9)](_0x30da52)[_0xfcdb0c(0x3c4)](_0x47e302=>{const _0x4d8fd6=_0xfcdb0c;if(!(_0x47e302!=null&&_0x47e302[_0x4d8fd6(0x2d8)]))_0x45cac4(null);else{if(_0x47e302[_0x4d8fd6(0x364)]){let _0x551b96=new Image();_0x551b96['src']=_0x47e302[_0x4d8fd6(0x364)],_0x430fff['addImageSourceCache'](_0x47e302[_0x4d8fd6(0x2d8)],_0x47e302[_0x4d8fd6(0x180)],_0x551b96);}_0x45cac4({'source':_0x47e302[_0x4d8fd6(0x2d8)],'sourceType':_0x47e302[_0x4d8fd6(0x180)]});}})[_0xfcdb0c(0x28c)](()=>_0x45cac4(null)):_0x45cac4(null);},{'once':!0x0}),_0x3c26ae['click']();});}function ki(_0x2345f0){const _0x34f14d=_0x410bd1;switch(_0x2345f0){case _0x4e7fff[_0x34f14d(0x49f)]:return _0x34f14d(0x3a9);case _0x4e7fff[_0x34f14d(0x193)]:return _0x34f14d(0x397);case _0x4e7fff[_0x34f14d(0x4b4)]:return'bases-dashboard-ui.dashboard.text';case _0x4e7fff[_0x34f14d(0x419)]:return _0x34f14d(0x42c);case _0x4e7fff['FormulaShape']:return _0x34f14d(0x17f);}}function Ai(_0x5731c3){const _0x1ba81d=_0x410bd1;return(_0x5731c3==null?void 0x0:_0x5731c3['type'])===_0x37c4bc['Pivot']&&typeof _0x5731c3[_0x1ba81d(0x30a)]==_0x1ba81d(0x16a)&&_0x5731c3[_0x1ba81d(0x30a)]!==null&&_0x1ba81d(0x382)in _0x5731c3[_0x1ba81d(0x30a)]&&'chart'in _0x5731c3[_0x1ba81d(0x30a)];}function ji({pivot:_0x5355ae,view:_0x209c93}){const _0x152bdd=_0x410bd1;let _0x4d5ec2=_0x20ec70(_0x4f7627),_0x454b4a=_0x10a2b7(()=>Mi(_0x209c93,_0x5355ae,_0x4d5ec2['t'](_0x152bdd(0x223))),[_0x4d5ec2,_0x5355ae,_0x209c93]);return _0x391b30(_0x152bdd(0x402),{'className':'univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','children':[_0x454b4a[_0x152bdd(0x4a0)][_0x152bdd(0x38b)]>0x0&&_0x143050('table',{'className':'univer-mb-2\x20univer-border-collapse\x20univer-text-sm','children':_0x143050(_0x152bdd(0x1e1),{'children':Ni(_0x454b4a[_0x152bdd(0x4a0)])})}),_0x391b30('table',{'className':_0x152bdd(0x482),'children':[_0x454b4a[_0x152bdd(0x3f0)]>0x0&&_0x143050(_0x152bdd(0x17a),{'className':_0x152bdd(0x417),'children':Ni(_0x454b4a[_0x152bdd(0x316)][_0x152bdd(0x268)](0x0,_0x454b4a[_0x152bdd(0x3f0)]))}),_0x143050(_0x152bdd(0x1e1),{'children':Ni(_0x454b4a[_0x152bdd(0x316)][_0x152bdd(0x268)](_0x454b4a[_0x152bdd(0x3f0)]))})]})]});}function Mi(_0x16105d,_0x52fe1b,_0x4e6312){const _0x9e96ad=_0x410bd1;let _0x382333=_0x16105d[_0x9e96ad(0x2bc)][_0x9e96ad(0x24e)],_0x5e1892=_0x16105d['rowView']['colCount'],_0x1bef1d=_0x16105d[_0x9e96ad(0x2f4)][_0x9e96ad(0x24e)],_0x166845=_0x16105d[_0x9e96ad(0x2f4)]['colCount'],_0x6020c0=Array[_0x9e96ad(0x24d)]({'length':_0x382333+_0x1bef1d},(_0x9fbaaa,_0x3d77ff)=>Array[_0x9e96ad(0x24d)]({'length':_0x5e1892+_0x166845},(_0x11a238,_0xe86aba)=>{const _0x2406b5=_0x9e96ad;var _0x4cf7a5,_0x5fcd1f;if(_0x3d77ff<_0x382333&&_0xe86aba<_0x5e1892)return Pi(_0x16105d[_0x2406b5(0x37c)],_0x3d77ff,_0xe86aba,void 0x0,_0x4e6312,!0x0,!0x1,_0x2406b5(0x3c0)+_0x3d77ff+':'+_0xe86aba);if(_0x3d77ff<_0x382333){var _0x103418;let _0x5d676e=_0xe86aba-_0x5e1892,_0x3d5310=(_0x103418=_0x16105d['colView'][_0x2406b5(0x1ac)][_0x3d77ff])==null?void 0x0:_0x103418['tableFieldId'];return Pi(_0x16105d[_0x2406b5(0x2bc)],_0x3d77ff,_0x5d676e,_0x3d5310?_0x16105d[_0x2406b5(0x3ae)][_0x3d5310]:void 0x0,_0x4e6312,!0x0,Li(_0x16105d[_0x2406b5(0x2bc)][_0x2406b5(0x394)][_0x5d676e]),'column:'+_0x3d77ff+':'+_0x5d676e);}if(_0xe86aba<_0x5e1892){var _0x472e3e;let _0x22382a=_0x3d77ff-_0x382333,_0x2aa79e=(_0x472e3e=_0x16105d['rowView']['headerMap'][_0xe86aba])==null?void 0x0:_0x472e3e['tableFieldId'];return Pi(_0x16105d['rowView'],_0x22382a,_0xe86aba,_0x2aa79e?_0x16105d[_0x2406b5(0x3ae)][_0x2aa79e]:void 0x0,_0x4e6312,!0x0,Li(_0x16105d[_0x2406b5(0x187)][_0x2406b5(0x394)][_0x22382a]),'row:'+_0x22382a+':'+_0xe86aba);}let _0x338af1=_0x3d77ff-_0x382333,_0x1d5d72=_0xe86aba-_0x5e1892,_0x5148df=Math['max'](((_0x4cf7a5=_0x16105d[_0x2406b5(0x187)][_0x2406b5(0x394)][_0x338af1])==null?void 0x0:_0x4cf7a5['valueIndex'])??-0x1,((_0x5fcd1f=_0x16105d['colView']['info'][_0x1d5d72])==null?void 0x0:_0x5fcd1f[_0x2406b5(0x399)])??-0x1),_0x256dae=_0x52fe1b[_0x2406b5(0x438)][_0x5148df<0x0?0x0:_0x5148df];return Pi(_0x16105d[_0x2406b5(0x2f4)],_0x338af1,_0x1d5d72,_0x256dae?_0x16105d[_0x2406b5(0x3ae)][_0x256dae]:void 0x0,_0x4e6312,!0x1,Li(_0x16105d['rowView'][_0x2406b5(0x394)][_0x338af1])||Li(_0x16105d[_0x2406b5(0x2bc)][_0x2406b5(0x394)][_0x1d5d72]),_0x2406b5(0x370)+_0x338af1+':'+_0x1d5d72);}));return{'headerColumnCount':_0x5e1892,'headerRowCount':_0x382333,'pageRows':_0x16105d[_0x9e96ad(0x298)][_0x9e96ad(0x47c)]<0x0||_0x16105d[_0x9e96ad(0x298)][_0x9e96ad(0x33b)]<0x0?[]:Array[_0x9e96ad(0x24d)]({'length':_0x16105d['pageView']['lastRow']+0x1},(_0x1b872e,_0x55b37d)=>Array[_0x9e96ad(0x24d)]({'length':_0x16105d['pageView'][_0x9e96ad(0x33b)]+0x1},(_0x2318d2,_0x5bea46)=>Pi(_0x16105d[_0x9e96ad(0x298)],_0x55b37d,_0x5bea46,void 0x0,_0x4e6312,!0x0,!0x1,_0x9e96ad(0x1cd)+_0x55b37d+':'+_0x5bea46))),'rows':_0x6020c0};}function Ni(_0x1a49b5){return _0x1a49b5['map'](_0x29f7e5=>{const _0x44cbb2=_0x10b1;var _0x414119;return _0x143050('tr',{'children':_0x29f7e5[_0x44cbb2(0x173)](_0xa7993=>{const _0x324322=_0x44cbb2;let _0x53bf74=_0xa7993[_0x324322(0x26e)]?'th':'td';return _0x143050(_0x53bf74,{'className':_0x324322(0x159)+(_0xa7993[_0x324322(0x163)]?'\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':'')+_0x324322(0x383)+(_0xa7993['isHeader']?'':'univer-text-right')+'\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':_0xa7993[_0x324322(0x46f)]},_0xa7993[_0x324322(0x17b)]);})},(_0x414119=_0x29f7e5[0x0])==null?void 0x0:_0x414119[_0x44cbb2(0x17b)]);});}function _0x10b1(_0xa662df,_0x157d94){_0xa662df=_0xa662df-0x157;const _0x416be8=_0x416b();let _0x10b1bf=_0x416be8[_0xa662df];return _0x10b1bf;}function Pi(_0x17de2f,_0x1c6b04,_0x38419d,_0x39a87f,_0x41adf4,_0x126312,_0x46b015,_0x3c2935){const _0x26bb8e=_0x410bd1;var _0x428c11;let _0x1d5539=(_0x428c11=_0x17de2f[_0x26bb8e(0x2a6)][_0x1c6b04])==null?void 0x0:_0x428c11[_0x38419d],_0xb6008=_0x1d5539==null?void 0x0:_0x1d5539['s'],_0x390fd3=_0x46b015||_0xb6008===_0x2b70c6[_0x26bb8e(0x185)]||_0xb6008===_0x2b70c6[_0x26bb8e(0x301)];return{'isHeader':_0x126312,'isTotal':_0x390fd3||_0xb6008===_0x2b70c6[_0x26bb8e(0x404)],'key':_0x3c2935,'style':_0xb6008,'value':_0x390fd3&&Ii(_0x1d5539==null?void 0x0:_0x1d5539['v'])?_0x41adf4:Fi(_0x1d5539,_0x39a87f)};}function Fi(_0x553925,_0x3eb01a){const _0x29d8d8=_0x410bd1;let _0x48c5b4=_0x553925==null?void 0x0:_0x553925['v'];return _0x163d9a(_0x48c5b4)?String(_0x48c5b4[_0x29d8d8(0x46f)]??_0x48c5b4[_0x29d8d8(0x35a)]??''):_0x420b5a(_0x48c5b4)?'#'+_0x48c5b4[_0x29d8d8(0x33c)]:_0x3eb01a&&typeof _0x48c5b4==_0x29d8d8(0x1c4)?_0x5140c1['format'](_0x3eb01a,_0x48c5b4):String(_0x48c5b4??'');}function Ii(_0x8ad71){return _0x8ad71===void 0x0||_0x8ad71==='';}function Li(_0x2696c8){const _0xbf6ae0=_0x410bd1;return!!(_0x2696c8!=null&&_0x2696c8[_0xbf6ae0(0x30f)]||_0x2696c8!=null&&_0x2696c8[_0xbf6ae0(0x321)]||_0x2696c8!=null&&_0x2696c8[_0xbf6ae0(0x167)]||(_0x2696c8==null?void 0x0:_0x2696c8[_0xbf6ae0(0x256)])===_0xbf6ae0(0x19c));}const Ri=[{'area':_0x3c113a[_0x410bd1(0x464)],'key':_0x410bd1(0x182),'label':_0x410bd1(0x479)},{'area':_0x3c113a[_0x410bd1(0x4ab)],'key':'columnFields','label':_0x410bd1(0x2af)},{'area':_0x3c113a[_0x410bd1(0x2c3)],'key':_0x410bd1(0x28d),'label':_0x410bd1(0x1bd)},{'area':_0x3c113a[_0x410bd1(0x3c2)],'key':_0x410bd1(0x438),'label':_0x410bd1(0x273)}],zi=[{'value':_0x9fb623[_0x410bd1(0x3c1)],'localeKey':_0x410bd1(0x1bb)},{'value':_0x9fb623['count'],'localeKey':_0x410bd1(0x43e)},{'value':_0x9fb623[_0x410bd1(0x3a3)],'localeKey':_0x410bd1(0x1f8)},{'value':_0x9fb623[_0x410bd1(0x332)],'localeKey':_0x410bd1(0x1a7)},{'value':_0x9fb623[_0x410bd1(0x3b6)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':_0x9fb623[_0x410bd1(0x2c0)],'localeKey':_0x410bd1(0x275)},{'value':_0x9fb623['product'],'localeKey':_0x410bd1(0x1f7)},{'value':_0x9fb623[_0x410bd1(0x3ef)],'localeKey':_0x410bd1(0x27b)},{'value':_0x9fb623['stdDevp'],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x9fb623[_0x410bd1(0x2b6)],'localeKey':'bases-dashboard-ui.pivot.variance'},{'value':_0x9fb623[_0x410bd1(0x259)],'localeKey':_0x410bd1(0x2d7)}];function Bi(_0x50e300){const _0x3dc973=_0x410bd1;let {config:_0xc57ede,onChange:_0x174dbb,table:_0x1bd0f3}=_0x50e300,_0x448c9e=_0x20ec70(_0x4f7627),[_0x146806,_0x2719a1]=_0x5e5f09(_0x3dc973(0x202)),[_0x479c49,_0x7e21f1]=_0x5e5f09(''),[_0x197501,_0x49d867]=_0x5e5f09(null),[_0x4dffe4,_0x3e84c5]=_0x5e5f09(null),[_0x47b4e0,_0x1da157]=_0x5e5f09(null),[_0x27ef78,_0x4c7abb]=_0x5e5f09(null),_0xe43463=_0x127850(null),_0x2629da=_0x10a2b7(()=>_0x1bd0f3[_0x3dc973(0x492)][_0x3dc973(0x1c6)](_0x6ef480=>{const _0x339634=_0x3dc973;let _0x23ef68=_0x1bd0f3['fields'][_0x6ef480];return _0x23ef68&&_0x23ef68['system']!==!0x0&&_0x23ef68[_0x339634(0x38c)]!==_0xac378e[_0x339634(0x21c)]?[_0x23ef68]:[];})[_0x3dc973(0x267)](_0x3487c5=>_0x3487c5['name']['toLocaleLowerCase']()[_0x3dc973(0x37e)](_0x479c49[_0x3dc973(0x48d)]()['toLocaleLowerCase']())),[_0x479c49,_0x1bd0f3]),_0x26461c=_0x2ff540=>{const _0x469938=_0x3dc973;let _0x1413e0=_0x3cec59(_0x1bd0f3,_0xc57ede['pivot']);try{_0x2ff540(_0x1413e0),_0x174dbb({'pivot':_0x1413e0[_0x469938(0x305)]()});}finally{_0x1413e0[_0x469938(0x481)]();}},_0x3dc219=(_0x3ab416,_0x13700c)=>{_0x197501&&(_0x26461c(_0xfc4c3c=>{const _0x54f8bc=_0x10b1;if(_0x197501['kind']==='field'){let _0x25ded3=_0xfc4c3c['getFieldPositionInfoById'](_0x197501['id']),_0x54df43=_0x25ded3[_0x54f8bc(0x1f1)]===_0x3ab416&&_0x25ded3[_0x54f8bc(0x2bd)]<_0x13700c?_0x13700c-0x1:_0x13700c;_0xfc4c3c[_0x54f8bc(0x1a5)](_0x197501['id'],_0x3ab416,_0x54df43);}else Ji(_0xfc4c3c,_0x197501['id'],_0x3ab416,_0x13700c);}),_0x49d867(null),_0x3e84c5(null));};return _0x391b30(_0x3dc973(0x402),{'className':_0x3dc973(0x45d),'children':[_0x143050(_0x55df58,{'ariaLabel':_0x448c9e['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x448c9e['t'](_0x3dc973(0x405)),'panelId':_0x3dc973(0x174),'value':'fields'},{'label':_0x448c9e['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x3dc973(0x443),'value':_0x3dc973(0x22a)}],'value':_0x146806,'onChange':_0x2719a1}),_0x143050(_0x3dc973(0x402),{'ref':_0xe43463,'className':_0xec79e5('univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3',_0x44d47d),'onDragOver':_0x2cbb80=>{const _0x24f625=_0x3dc973;let _0xbaae8e=_0xe43463[_0x24f625(0x179)];if(!_0xbaae8e)return;let _0x5a781f=_0xbaae8e['getBoundingClientRect']();_0x2cbb80[_0x24f625(0x335)]<_0x5a781f[_0x24f625(0x4a9)]+0x30?_0xbaae8e[_0x24f625(0x396)]-=0x10:_0x2cbb80['clientY']>_0x5a781f[_0x24f625(0x400)]-0x30&&(_0xbaae8e[_0x24f625(0x396)]+=0x10);},'children':_0x146806===_0x3dc973(0x22a)?_0x143050(qi,{'config':_0xc57ede,'commit':_0x26461c}):_0x391b30('div',{'className':_0x3dc973(0x1f9),'children':[_0x391b30(_0x3dc973(0x402),{'children':[_0x143050('div',{'className':_0x3dc973(0x33f),'children':_0x448c9e['t'](_0x3dc973(0x2fd))}),_0x143050(_0x56be65,{'allowClear':!0x0,'slot':_0x143050(_0x1dab65,{}),'value':_0x479c49,'placeholder':_0x448c9e['t'](_0x3dc973(0x2ea)),'onChange':_0x7e21f1}),_0x143050(_0x3dc973(0x402),{'className':_0x3dc973(0x1cc),'children':_0x2629da['map'](_0x1fb3d1=>_0x143050(Vi,{'config':_0xc57ede,'field':_0x1fb3d1,'onAdd':_0x24b737=>_0x26461c(_0x16ad68=>Ji(_0x16ad68,_0x1fb3d1['id'],_0x24b737,_0x16ad68[_0x3dc973(0x26d)](_0x24b737))),'onCheckedChange':_0x428bda=>_0x26461c(_0x31c0d4=>{const _0x2953e1=_0x3dc973;let _0x136154=_0x31c0d4['getTableFieldsByDataFieldId'](_0x1fb3d1['id']);if(!_0x428bda)_0x136154[_0x2953e1(0x349)](_0x4d3be6=>_0x31c0d4['removeField'](_0x4d3be6[_0x2953e1(0x292)]()));else{if(_0x136154[_0x2953e1(0x38b)]===0x0){let _0x20f907=Xi(_0x1fb3d1)?_0x3c113a['Value']:_0x3c113a[_0x2953e1(0x2c3)];_0x31c0d4[_0x2953e1(0x3b0)](_0x1fb3d1['id'],_0x20f907);}}}),'onDragStart':()=>_0x49d867({'kind':_0x3dc973(0x2d8),'id':_0x1fb3d1['id']})},_0x1fb3d1['id']))})]}),_0x143050('div',{'className':'univer-grid\x20univer-gap-3','children':Ri['map'](_0x5647ac=>_0x143050(Ui,{'area':_0x5647ac['area'],'dropTarget':_0x4dffe4,'fields':_0xc57ede['pivot'][_0x5647ac[_0x3dc973(0x17b)]],'label':_0x448c9e['t'](_0x5647ac[_0x3dc973(0x19d)]),'snapshot':_0xc57ede['pivot'],'onDragEnd':()=>{_0x49d867(null),_0x3e84c5(null);},'onDragStart':_0x9fe79=>_0x49d867({'kind':_0x3dc973(0x29f),'id':_0x9fe79,'area':_0x5647ac[_0x3dc973(0x1f1)]}),'onDragOver':_0x5b220d=>_0x3e84c5({'area':_0x5647ac[_0x3dc973(0x1f1)],'index':_0x5b220d}),'onDrop':_0x1190af=>_0x3dc219(_0x5647ac[_0x3dc973(0x1f1)],_0x1190af),'onFilter':_0x1da157,'onMove':(_0x292f85,_0x4c61f6,_0x8e556d)=>_0x26461c(_0x5f3493=>_0x5f3493['updateFieldPosition'](_0x292f85,_0x4c61f6,_0x8e556d)),'onRemove':_0x3f6add=>_0x26461c(_0x56b21f=>_0x56b21f[_0x3dc973(0x3e7)](_0x3f6add)),'onSettings':_0x4c7abb},_0x5647ac['area']))}),_0x47b4e0&&_0x143050(Gi,{'fieldId':_0x47b4e0,'snapshot':_0xc57ede['pivot'],'table':_0x1bd0f3,'onCancel':()=>_0x1da157(null),'onCommit':(_0x44e7d6,_0x40b4f3)=>{_0x26461c(_0x5e82c5=>{const _0x4340a2=_0x10b1;let _0x2b1d79=_0x5e82c5[_0x4340a2(0x48a)](_0x47b4e0),_0x23b219=(_0x2b1d79==null?void 0x0:_0x2b1d79[_0x4340a2(0x1f4)])??[];_0x5e82c5[_0x4340a2(0x212)](_0x47b4e0,{'type':_0x315feb[_0x4340a2(0x1a3)],'list':_0x44e7d6,'isAll':_0x44e7d6['length']===_0x23b219['length']}),_0x5e82c5[_0x4340a2(0x1ff)](_0x47b4e0,_0x40b4f3===void 0x0?void 0x0:{'type':_0x40b4f3});}),_0x1da157(null);}},_0x47b4e0),_0x27ef78&&_0x143050(Ki,{'field':_0xc57ede['pivot'][_0x3dc973(0x339)][_0x27ef78],'onCancel':()=>_0x4c7abb(null),'onCommit':(_0x2779ae,_0x4072c8,_0x346db2)=>{_0x26461c(_0x13700a=>{const _0x3f9f29=_0x10b1;_0x13700a[_0x3f9f29(0x3fa)](_0x27ef78,_0x2779ae),_0x13700a['setSubtotalType'](_0x27ef78,_0x4072c8),_0x13700a[_0x3f9f29(0x2ac)](_0x27ef78,_0x346db2||void 0x0);}),_0x4c7abb(null);}},_0x27ef78)]})})]});}function Vi(_0x365324){const _0x3503bd=_0x410bd1;let {config:_0x4af6af,field:_0x56fd2e,onAdd:_0x3c7a7f,onCheckedChange:_0x312679,onDragStart:_0x3f602b}=_0x365324,_0x53b11a=_0x20ec70(_0x4f7627),_0x3b6935=[...Object[_0x3503bd(0x22c)](_0x4af6af[_0x3503bd(0x382)]['dimension']),...Object[_0x3503bd(0x22c)](_0x4af6af[_0x3503bd(0x382)][_0x3503bd(0x339)])][_0x3503bd(0x29a)](_0x23566f=>_0x23566f[_0x3503bd(0x344)]===_0x56fd2e['id']),_0x146dbb=Ri[_0x3503bd(0x173)](_0x3e23d1=>({'type':_0x3503bd(0x485),'children':_0x53b11a['t'](Zi(_0x3e23d1['area'])),'onSelect':()=>_0x3c7a7f(_0x3e23d1['area'])}));return _0x391b30(_0x3503bd(0x402),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x3503bd(0x47d),'onDragStart':_0x3f602b,'children':[_0x143050(_0x10db4e,{'checked':_0x3b6935,'onChange':_0xfcc98a=>_0x312679(!!_0xfcc98a)}),_0x143050(Hi,{'field':_0x56fd2e}),_0x143050(_0x3503bd(0x378),{'className':_0x3503bd(0x434),'children':_0x56fd2e[_0x3503bd(0x1f6)]}),_0x143050(Xr,{'align':_0x3503bd(0x33d),'items':_0x146dbb,'children':_0x143050(_0x11a8c2,{'variant':_0x3503bd(0x3f3),'aria-label':_0x53b11a['t'](_0x3503bd(0x290)),'children':_0x143050(_0x5d1e68,{})})})]});}function Hi({field:_0xf8c3af}){const _0xc41283=_0x410bd1;return Xi(_0xf8c3af)?_0x143050(_0x5c186e,{'className':_0xc41283(0x2df)}):_0xf8c3af[_0xc41283(0x38c)]===_0xac378e[_0xc41283(0x49e)]||_0xf8c3af['type']===_0xac378e[_0xc41283(0x2a2)]||_0xf8c3af['type']===_0xac378e[_0xc41283(0x270)]?_0x143050(_0x5325fe,{'className':_0xc41283(0x2df)}):_0x143050(_0x4af771,{'className':_0xc41283(0x2df)});}function Ui(_0x31cb44){const _0x528972=_0x410bd1;let {area:_0x5e6fec,dropTarget:_0x4a6db4,fields:_0x3743de,label:_0x4fca12,snapshot:_0x3904e2}=_0x31cb44,_0x7b49ef=_0x20ec70(_0x4f7627);return _0x391b30(_0x528972(0x407),{'className':_0xec79e5(_0x528972(0x47f),_0x1f0d20),'onDragOver':_0x4001ed=>{const _0x4107a8=_0x528972;_0x4001ed[_0x4107a8(0x35b)](),_0x31cb44[_0x4107a8(0x36a)](_0x3743de[_0x4107a8(0x38b)]);},'onDrop':_0x2002ff=>{const _0x3b7a8f=_0x528972;_0x2002ff[_0x3b7a8f(0x35b)](),_0x31cb44[_0x3b7a8f(0x1f3)]((_0x4a6db4==null?void 0x0:_0x4a6db4['area'])===_0x5e6fec?_0x4a6db4[_0x3b7a8f(0x2bd)]:_0x3743de[_0x3b7a8f(0x38b)]);},'children':[_0x143050(_0x528972(0x402),{'className':_0x528972(0x367),'children':_0x4fca12}),_0x391b30(_0x528972(0x402),{'className':_0x528972(0x422),'children':[_0x3743de['map']((_0x54bd98,_0x228ff3)=>{const _0x7f75ac=_0x528972;let _0x26d638=_0x3904e2[_0x7f75ac(0x3eb)][_0x54bd98]??_0x3904e2['measure'][_0x54bd98];if(!_0x26d638)return null;let _0x2ff081=(_0x4a6db4==null?void 0x0:_0x4a6db4[_0x7f75ac(0x1f1)])===_0x5e6fec&&_0x4a6db4[_0x7f75ac(0x2bd)]===_0x228ff3;return _0x391b30('div',{'onDragOver':_0x46e516=>{const _0xc22202=_0x7f75ac;_0x46e516[_0xc22202(0x35b)](),_0x46e516[_0xc22202(0x3b9)]();let _0x241a9e=_0x46e516[_0xc22202(0x1ba)]['getBoundingClientRect']();_0x31cb44[_0xc22202(0x36a)](_0x228ff3+ +(_0x46e516[_0xc22202(0x335)]>_0x241a9e[_0xc22202(0x4a9)]+_0x241a9e[_0xc22202(0x484)]/0x2));},'onDrop':_0x27fa9d=>{const _0x1160a3=_0x7f75ac;_0x27fa9d['preventDefault'](),_0x27fa9d['stopPropagation'](),_0x31cb44[_0x1160a3(0x1f3)]((_0x4a6db4==null?void 0x0:_0x4a6db4[_0x1160a3(0x1f1)])===_0x5e6fec?_0x4a6db4[_0x1160a3(0x2bd)]:_0x228ff3);},'children':[_0x2ff081&&_0x143050(_0x7f75ac(0x402),{'className':_0x7f75ac(0x3f4)}),_0x143050(Wi,{'area':_0x5e6fec,'field':_0x26d638,'onDragEnd':_0x31cb44[_0x7f75ac(0x264)],'onDragStart':()=>_0x31cb44[_0x7f75ac(0x2b7)](_0x54bd98),'onFilter':()=>_0x31cb44[_0x7f75ac(0x428)](_0x54bd98),'onMove':_0x48cbb7=>_0x31cb44[_0x7f75ac(0x310)](_0x54bd98,_0x48cbb7,0x0),'onMoveUp':_0x228ff3>0x0?()=>_0x31cb44[_0x7f75ac(0x310)](_0x54bd98,_0x5e6fec,_0x228ff3-0x1):void 0x0,'onMoveDown':_0x228ff3<_0x3743de[_0x7f75ac(0x38b)]-0x1?()=>_0x31cb44[_0x7f75ac(0x310)](_0x54bd98,_0x5e6fec,_0x228ff3+0x1):void 0x0,'onRemove':()=>_0x31cb44[_0x7f75ac(0x31c)](_0x54bd98),'onSettings':()=>_0x31cb44['onSettings'](_0x54bd98)})]},_0x54bd98);}),(_0x4a6db4==null?void 0x0:_0x4a6db4['area'])===_0x5e6fec&&_0x4a6db4[_0x528972(0x2bd)]===_0x3743de['length']&&_0x143050(_0x528972(0x402),{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),_0x3743de[_0x528972(0x38b)]===0x0&&_0x143050('div',{'className':_0x528972(0x359),'children':_0x7b49ef['t'](_0x528972(0x2fd))})]})]});}function Wi(_0x257771){const _0x59a9b0=_0x410bd1;let _0x46aee4=_0x20ec70(_0x4f7627),_0x18e868=_0x257771[_0x59a9b0(0x1f1)]===_0x3c113a[_0x59a9b0(0x3c2)],_0x4b29be=[...Ri[_0x59a9b0(0x267)](_0x375f53=>_0x375f53[_0x59a9b0(0x1f1)]!==_0x257771[_0x59a9b0(0x1f1)])[_0x59a9b0(0x173)](_0xb56cbf=>({'type':_0x59a9b0(0x485),'children':_0x46aee4['t'](Zi(_0xb56cbf[_0x59a9b0(0x1f1)])),'onSelect':()=>_0x257771[_0x59a9b0(0x310)](_0xb56cbf['area'])})),..._0x257771['onMoveUp']?[{'type':_0x59a9b0(0x485),'children':_0x46aee4['t']('bases-dashboard-ui.mobile.moveUp'),'onSelect':_0x257771[_0x59a9b0(0x36c)]}]:[],..._0x257771['onMoveDown']?[{'type':_0x59a9b0(0x485),'children':_0x46aee4['t'](_0x59a9b0(0x15b)),'onSelect':_0x257771[_0x59a9b0(0x491)]}]:[],{'type':_0x59a9b0(0x485),'children':_0x46aee4['t'](_0x59a9b0(0x295)),'onSelect':_0x257771[_0x59a9b0(0x31c)]},{'type':_0x59a9b0(0x485),'children':_0x46aee4['t'](_0x18e868?'bases-dashboard-ui.pivot.fieldSettings':_0x59a9b0(0x425)),'onSelect':_0x18e868?_0x257771[_0x59a9b0(0x456)]:_0x257771[_0x59a9b0(0x428)]}];return _0x391b30(_0x59a9b0(0x402),{'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':_0x257771[_0x59a9b0(0x264)],'onDragStart':_0x257771[_0x59a9b0(0x2b7)],'children':[_0x143050(_0x3dcdeb,{'title':_0x257771[_0x59a9b0(0x29f)][_0x59a9b0(0x39e)],'children':_0x143050(_0x59a9b0(0x378),{'className':_0x59a9b0(0x434),'children':_0x257771[_0x59a9b0(0x29f)][_0x59a9b0(0x39e)]})}),_0x143050(Xr,{'align':_0x59a9b0(0x33d),'items':_0x4b29be,'children':_0x143050(_0x11a8c2,{'variant':_0x59a9b0(0x3f3),'aria-label':_0x46aee4['t']('bases-dashboard-ui.pivot.fieldSettings'),'children':_0x143050(_0x5d1e68,{})})})]});}function _0x416b(){const _0x22ba54=['radar','tabular','onRemove','bases-dashboard-ui.pivot.valuePosition','getSnapshot','bases-dashboard-ui.dashboardInspector.contain','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','isTopTotal','BASE_DASHBOARD_UI_PLUGIN','small','Pie','register','pivotViewId','bases-dashboard-ui.dashboardInspector.number','bases-dashboard-ui.pivot.showColumnSubtotal','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','backgroundColor','startScrollTop','orient','bases-dashboard-ui.chart.section.paretoLine','IS_NOT_EMPTY','_renderModelManager','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','17068987QYoNBS','average','VerticalAxis','stroke','clientY','bases-dashboard-ui.dashboardInspector.cover','bases-dashboard-ui.chart.common.customize','set','measure','bases-dashboard-ui.dashboardInspector.dragWidget','lastCol','errorType','end','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','operator','formula','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','darkMode$','dataFieldId','_chartThemeService','function','redos','views','forEach','showColGrandTotal','getImage','columnSpan','widgets','numberFormat','disconnect','prototype','bases-dashboard-ui.chart.chartTypes.area','presentation','bases-dashboard-ui.operators.lessThanOrEqual','Progress','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','univer-size-5\x20univer-text-primary-600','GeneralSeries','fullscreenchange','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','prefix','preventDefault','bases-dashboard-ui.mobile.permissions','unsubscribe','base-pivot-chart-style','univer-bg-gray-0\x20dark:!univer-bg-gray-900','allSeriesStyle','rgb','base-pivot-chart-configuration','baseChartDataAnimationDuration','base64Cache','bases-dashboard-ui.pivot.chartOnly','percent','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','outline','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','onDragOver','undos','onMoveUp','decimalPlaces','LESS_THAN','getDashboard','data:','1.3.0','bases-dashboard-ui.pivot.chartConfiguration','destructive','pattern','replaceChildren','change','univer-cursor-grab','span','Sunburst','model','no-repeat','cornerView','count','includes','univer-border-0\x20univer-bg-transparent','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','stdDevp','pivot','\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.dashboardInspector.custom','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','primary','paragraphId','disposeWithMe','render','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','type','shapeId','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','bases-dashboard-ui.dashboard.addWidget','canView','bases-dashboard-ui.pivot.dropFieldsHere','setSubtotalType','supports','info','descending','scrollTop','bases-dashboard-ui.dashboard.tableFilter','univer-mt-2','valueIndex','IS_EMPTY','fontSize','bases-dashboard-ui.chart.section.wordCloud','lineAndArea','displayName','bases-dashboard-ui.pivot.description','shapeData','univer-grid\x20univer-gap-2\x20univer-p-3','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','countNums','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','executeChartUpdateConfig','Relation','10HhKJmU','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','bases-dashboard-ui.dashboard.pivotChart','#,##0','bases-dashboard-ui.pivot.stdDevPopulation','syncLayout','image/*','formatMap','group','addFieldWithSourceId','bases-dashboard-ui.chart.section.indicatorLine','univer-text-sm','bases-dashboard-ui.dashboard.deleteWidget','onStarting','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','max','bases-dashboard-ui.dashboardInspector.right','addImageSourceCache','stopPropagation','product','bases-dashboard-ui.chart.section.gauge','dashboard-text-','137997WBZwIb','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','Pivot','corner:','sum','Value','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','then','bases-dashboard-ui.dashboardInspector.delete','result','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','GREATER_THAN_OR_EQUAL','waterfall','ParetoBarSeries','header','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','Currency','General','showRowGrandTotal','bases-dashboard-ui.dashboardInspector.clear','setCurrentUnitForType','_configService','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-px-4\x20dark:!univer-border-gray-700','bases-dashboard-ui.dashboardInspector.editData','documentElement','decorate','AND','bases-dashboard-ui.dashboard.resizeWidget','_element','Boxplot','titles','univer-grid\x20univer-gap-4','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','subscribe','getTableFieldsByDataFieldId','operand','bases-dashboard-ui.mobile.moveUp','bases-dashboard-ui.dashboard.configure','shapeType','row','bases-dashboard-ui.dashboardInspector.editFormula','bases-dashboard-ui.dashboardInspector.replaceImage','removeField','univer-grid\x20univer-gap-4\x20univer-p-4','univer-flex\x20univer-justify-end\x20univer-gap-2','bases-dashboard-ui.pivot.downThenAcross','dimension','paragraphs','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','createDomChartInstance','stdDev','headerRowCount','bind','showColSubtotal','text','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','bases-dashboard-ui.chart.common.setup','BEFORE','bases-dashboard-ui.dashboard.redo','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.tableOnly','renameField','isConnected','RoundRect','_localeService','transparent','indicatorLine','bottom','bases-dashboard-ui.pivot.acrossThenDown','div','separator','Subtotal','bases-dashboard-ui.pivot.fields','saveAttachment','section','base-pivot-chart-setup','cover','pipe','document','990EQHEOX','labelId','dom','trendline','changed$','join','AFTER','mode','createElement','contain','subUnitId','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','Base\x20dashboard\x20chart\x20','Image','visibilityState','bases-dashboard-ui.chart.section.candlestick','repeatRowLabels','univer-w-36','bases-dashboard-ui.dashboard.search','_createContext','UNIVER_BASE','univer-h-full\x20univer-w-full\x20univer-bg-transparent','univer-flex\x20univer-flex-col','false','RightVerticalAxis','bases-dashboard-ui.pivot.filterField','bases-dashboard-ui.dashboardInspector.style','bases-dashboard-ui.dashboard.widgetActions','onFilter','None','[data-dashboard-widget]','border','bases-dashboard-ui.dashboard.image','bases-dashboard-ui.dashboardInspector.alignment','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','undoRedoStatus$','bases-dashboard-ui.chart.common.series','updateValuePosition','Dom','match','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','IS_NOT','bases-dashboard-ui.dashboardInspector.textColor','valueFields','7476KHsDkZ','bases-dashboard-ui.chart.common.switchRowColumn','snapshot','bases-dashboard-ui.chart.common.rightVerticalAxis','bases-dashboard-ui.dashboard.undo','bases-dashboard-ui.pivot.count','get','(prefers-reduced-motion:\x20reduce)','bases-dashboard-ui.pivot.display','resizeDirection','base-pivot-options','bases-dashboard-ui.pivot.blank','removeEventListener','original','bases-dashboard-ui.dashboardInspector.decimalPlaces','315241vrJkTg','list','HorizontalAxis','SolidFill','bases-dashboard-ui.chart.section.pie','button','radius','_injector','bases-dashboard-ui.dashboardInspector.selectOption','fit','change$','every','style','markReady','onSettings','bases-dashboard-ui.pivot.repeatColumnLabels','bases-dashboard-ui.dashboardInspector.currencyCode','bases-dashboard-ui.pivot.name','conjunction','unitId','bases-dashboard-ui.config','univer-flex\x20univer-min-h-full\x20univer-flex-col','ChartAndAxisTitles','bases-dashboard-ui.pivot.numberFormat','univer-flex','bases-dashboard-ui.dashboard.new','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','bases-dashboard-ui.chart.common.horizontalAxis','Filter','bases-dashboard-ui.chart.section.waterfall','input','getValueIndex','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','getImageSourceCache','focusUnit','bases-dashboard-ui.operators.isEmpty','bases-dashboard-ui.dashboard.fullScreen','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','itemTypes','value','funnel','fill','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','general','4HsNQJc','setLayout','getRect','refreshChartRuntime','waterfallStyle','bases-dashboard-ui.pivot.filters','default','startX','lastRow','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','pareto','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','bases-dashboard-ui.dashboard.delete','dispose','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','right','height','item','toPrimitive','widgetOrder','Candlestick','subtotal','getDataFieldByTableId','bases-dashboard-ui.dashboardInspector.formula','bases-dashboard-ui.pivot.pivotConfiguration','trim','print','direction$','tableOrder','onMoveDown','fieldOrder','Series','config$','bases-dashboard-ui.chart.section.paretoBar','minmax(0,\x203fr)\x20minmax(0,\x202fr)','context','matchMedia','LineAndArea','bases-dashboard-ui.dashboardInspector.dataSource','rightYAxis','legend','auto','Date','PivotChart','pageRows','getAttachmentUrl','univer-flex\x20univer-min-h-0\x20univer-flex-1','getOwnPropertyDescriptor','bases-dashboard-ui.pivot.layout','isFinite','Style','bases-dashboard-ui.pivot.showRowSubtotal','overflow','top','\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','Column','univer-mx-auto\x20univer-size-6','bases-dashboard-ui.dashboardInspector.left','base-pivot-chart','axis','color','indexOf','univer-size-8\x20univer-p-0\x20univer-text-red-500','permissionPointUpdate$','Text','bases-dashboard-ui.chart.section.radar','bases-dashboard-ui.pivot.confirm','\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.dashboardInspector.currency','bases-dashboard-ui.mobile.moveDown','bases-dashboard-ui.dashboard.rename','innerHeight','0\x200','showRowSubtotal','univer-w-full','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','bases-dashboard-ui.pivot.top','isTotal','CONTAINS','baseChartDataAnimation','grouped','isSubtotal','univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','segmented','object','dashboard-chart-style','bases-dashboard-ui.pivot.pageDirection','Person','bases-dashboard-ui.dashboardInspector.general','baseOn','univer-mb-3\x20univer-text-sm\x20univer-font-medium','delete','link','map','base-pivot-fields','GREATER_THAN','rightY','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','defaultValue','current','thead','key','bases-dashboard-ui.pivot.showColumnGrandTotal','bases-dashboard-ui.dashboardInspector.reset','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','bases-dashboard-ui.dashboard.formulaShape','imageSourceType','toLocaleLowerCase','filterFields','has','dataSource','GrandTotal','pointerup','rowView','getCurrentTheme','left','univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','executeCommand','bases-dashboard-ui.pivot.defaultName','doc','px\x20solid\x20','startY','localeKey','bases-dashboard-ui.dashboardInspector.removeImage','\x20/\x20span\x20','TableFilter','bases-dashboard-ui.pivot.pageWrap','chart','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','516sWuXJZ','rowSubtotalPosition','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','WordCloud','repeatColLabels','grandTotal','label','ascending','pageWrap','setStyle','bases-dashboard-ui.pivot.bottom','cumulativeLineStyle','ManualFilter','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','updateFieldPosition','Sankey','bases-dashboard-ui.pivot.average','contains','pointerX','univer-grid\x20univer-gap-3\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','univer-min-w-0\x20univer-flex-1','headerMap','rowSpan','pointermove','bases-dashboard-ui.chart.section.chord','bases-dashboard-ui.dashboard.add','sortInfo','\x20has\x20no\x20render\x20config.','alt','univer-relative\x20univer-z-10','getRuntimeContext','textStyle','fieldId','isArray','dataset','currentTarget','bases-dashboard-ui.pivot.sum','bases-dashboard-ui.dashboardInspector.uploadImage','bases-dashboard-ui.pivot.rows','currentTheme$','getResource','flex-start','observe','currency','Heatmap','number','bases-dashboard-ui.pivot.addToColumn','flatMap','alignment','title','univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','univer-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','file','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','page:','setConfig','releaseChartRuntime','4264271yGDKua','bases-dashboard-ui.chart.chartTypes.','children','center','\x20/\x20','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','dataModel','format','round','PieStyle','NumberFormat','fullscreenElement','replace','YYYY-MM-DD','fontSizeMode','conditions','bases-dashboard-ui.pivot.displayName','tbody','matches','bases-dashboard-ui.dashboard.section','bases-dashboard-ui.pivot.dataSource','28273WpDEsR','bases-dashboard-ui.pivot.addToRow','push','column','12wRZyAJ','columnFields','bases-dashboard-ui.chart.common.chartStyle','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','entries','toUpperCase','USD','bases-dashboard-ui.dashboardInspector.sourceUnavailable','area','acquireChartRuntime','onDrop','items','bases-dashboard-ui.chart.section.sunburst','name','bases-dashboard-ui.pivot.product','bases-dashboard-ui.pivot.countNumbers','univer-flex\x20univer-flex-col\x20univer-gap-4','univer-bg-transparent\x20dark:!univer-bg-transparent','border-box','Chord','Line','Radar','setSortInfo','move','displayMode','fields','univer-flex\x20univer-items-center\x20univer-gap-2','bases-dashboard-ui.pivot.cancel','valuePosition','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','bases-dashboard-ui.dashboardInspector.textSize','aside','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','style$','bases-dashboard-ui.dashboardInspector.numberFormat','gray','bases-dashboard-ui.dashboardInspector.data','univer-size-5\x20univer-rotate-90','bases-dashboard-ui.chart.section.treemap','Funnel','getUnit','setLabelFilterInfo','formulaBinding','packageName','getFieldPositionInfoById','Treemap','blank','base-pivot-table-configuration','clientWidth','lineStrokeType','stringify','RecordId','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','onCancel','img','bases-dashboard-ui.pivot.calculationFailed','getOptions','view','bases-dashboard-ui.pivot.grandTotal','scrollWidth','dataAggregation','borderRadius','bases-dashboard-ui.pivot.rowSubtotalPosition','univer-mt-2\x20univer-w-full','univer-shrink-0\x20univer-px-3','options','bases-dashboard-ui.dashboardInspector.originalSize','values','Positive','bases-dashboard-ui.dashboardInspector.enterValue','ownerDocument','ChartStyle','article','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','onReady','custom','bases-dashboard-ui.operators.notContains','currentColor','series','boxSizing','barStyle','initial','clientHeight','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','chart-and-table','Area','description','bases-dashboard-ui.chart.common.verticalAxis','getChartRuntime','bases-dashboard-ui.dashboardInspector.checked','createChartInstance','base-pivot-chart-','bases-dashboard-ui.chart.section.relation','bases-dashboard-ui.operators.isNot','size','shapeText','Histogram','hidden','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','from','rowCount','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','_config','files','width','sourceType','bases-dashboard-ui.pivot.chartAndTable','Scatter','rowType','darkMode','requestFullscreen','varp','bases-dashboard-ui.dashboardInspector.backgroundColor','\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','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','version','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','date','BaseDashboard','dashboards','renderTransition','resolve','onDragEnd','setOptions','tableId','filter','slice','wordCloud','table','system','keydown','getFieldCountByArea','isHeader','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','UpdatedAt','Waterfall','test','bases-dashboard-ui.pivot.values','string','bases-dashboard-ui.pivot.min','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','bases-dashboard-ui.chart.common.legend','renderRevision','univer-flex\x20univer-gap-2','univer-size-4','bases-dashboard-ui.pivot.stdDev','bases-dashboard-ui.pivot.clearFilter','bases-dashboard-ui.dashboard.editWidget','univer-flex-1','UUID','error','layout','bases-dashboard-ui.operators.is','Bubble','bases-dashboard-ui.dashboardInspector.compact','bases-dashboard-ui.pivot.ascending','call','pluginName','symbol','8944yitJmi','Number','bases-dashboard-ui.dashboardInspector.autoFit','catch','rowFields','clientX','bases-dashboard-ui.pivot.variance','bases-dashboard-ui.pivot.fieldSettings','click','getId','144IaFRee','parentElement','bases-dashboard-ui.pivot.removeField','scrollHeight','bases-dashboard-ui.dashboardInspector.description','pageView','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','some','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','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','NOT_CONTAINS','minmax(0,\x201fr)','field','Legend','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','CreatedAt','univer-pointer-events-auto\x20univer-opacity-100','bases-dashboard-ui.chart.common.trendline','pageOverThenDown','data','resize','chartType','saveImage','bases-dashboard-ui.chart.section.gridlinesAndTicks','dashboard-chart-setup','setFieldFormat','split','fillType','bases-dashboard-ui.pivot.columns','textColor','compact','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','relation','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','ParetoLineSeries','var','onDragStart','FormulaShape','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','defineProperty','colView','index','closest','select','min','initialLayouts','pointerY','Row','true','bases-dashboard-ui.dashboardInspector.backgroundImage','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','createRenderInput','filterInfo','waterfall.negative','src','bases-dashboard-ui.pivot.layoutOutline','Group','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','pie','waterfall.positive','body','bases-dashboard-ui.dashboardInspector.center','@univerjs-pro/bases-dashboard-ui','bases-dashboard-ui.chart.common.editChart','getPresentation','IndicatorLine','bases-dashboard-ui.pivot.variancePopulation','source','univer-truncate','find','univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','appearance','Gauge','Rating','univer-text-gray-400','Trendline','univer-w-full\x20univer-justify-start','decimal','accept','bases-dashboard-ui.chart.section.histogram','univer-cursor-grabbing','univer-w-24','Checkbox','bases-dashboard-ui.chart.common.chartAndAxisTitles','Axes','bases-dashboard-ui.pivot.searchFields','SingleSelect','tables','onCommit','bases-dashboard-ui.pivot.descending','blur','bases-dashboard-ui.pivot.layoutCompact','target','getBoundingClientRect','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','dataView','dashboardOrder','bases-dashboard-ui.pivot.calculating','bases-dashboard-ui.dashboardInspector.grouped','backgroundImage','bases-dashboard-ui.dashboard.text','url(','bases-dashboard-ui.dashboardInspector.loading','addEventListener','bases-dashboard-ui.pivot.sourceFields','bases-dashboard-ui.pivot.options','bases-dashboard-ui.dashboardInspector.close','exitFullscreen','MultipleGrandTotal','bases-dashboard-ui.pivot.addToFilter','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','toJSON','univer-m-3','add','bases-dashboard-ui.dashboardInspector.repeat','bases-dashboard-ui.pivot.repeatRowLabels','config','Data','repeat','activeRuntimeModel','viewOrder','isBottomTotal','onMove','bases-dashboard-ui.pivot.layoutTabular','subItem','bases-dashboard-ui.operators.lessThan','bases-dashboard-ui.dashboardInspector.percent','ceil','rows','bases-dashboard-ui.chart.','bases-dashboard-ui.chart.waterfall.subtotal','bases-dashboard-ui.pivot.selectAll'];_0x416b=function(){return _0x22ba54;};return _0x416b();}function Gi(_0x49d4f7){const _0x4b8924=_0x410bd1;var _0x44662e,_0x206e2b;let _0x2617ce=_0x20ec70(_0x4f7627),{format:_0x56fc40,items:_0x43fde6,itemTypes:_0x2e45f6}=_0x10a2b7(()=>{const _0x480bd8=_0x10b1;let _0x865349=_0x3cec59(_0x49d4f7[_0x480bd8(0x26a)],_0x49d4f7[_0x480bd8(0x43b)]);try{let _0xb1d2a=_0x865349[_0x480bd8(0x48a)](_0x49d4f7[_0x480bd8(0x1b7)]);return{'format':_0xb1d2a==null?void 0x0:_0xb1d2a[_0x480bd8(0x1d7)],'items':[...(_0xb1d2a==null?void 0x0:_0xb1d2a[_0x480bd8(0x1f4)])??[]],'itemTypes':[...(_0xb1d2a==null?void 0x0:_0xb1d2a[_0x480bd8(0x46e)])??[]]};}finally{_0x865349['dispose']();}},[_0x49d4f7['fieldId'],_0x49d4f7[_0x4b8924(0x43b)],_0x49d4f7[_0x4b8924(0x26a)]]),_0x20cc3f=(_0x44662e=_0x49d4f7['snapshot'][_0x4b8924(0x3eb)][_0x49d4f7[_0x4b8924(0x1b7)]])==null?void 0x0:_0x44662e[_0x4b8924(0x2c8)],[_0x210f4a,_0x581c2b]=_0x5e5f09((_0x20cc3f==null?void 0x0:_0x20cc3f['type'])===_0x315feb[_0x4b8924(0x1a3)]?_0x20cc3f[_0x4b8924(0x449)]:_0x43fde6),[_0x5d97cf,_0x26f106]=_0x5e5f09((_0x206e2b=_0x49d4f7[_0x4b8924(0x43b)][_0x4b8924(0x3eb)][_0x49d4f7['fieldId']])==null||(_0x206e2b=_0x206e2b[_0x4b8924(0x1b1)])==null?void 0x0:_0x206e2b[_0x4b8924(0x38c)]),_0x268bf2=_0x210f4a[_0x4b8924(0x38b)]===_0x43fde6[_0x4b8924(0x38b)],_0x126460=_0x391b30('section',{'className':_0xec79e5(_0x4b8924(0x24f),_0x1f0d20),'children':[_0x143050('div',{'className':_0x4b8924(0x170),'children':_0x2617ce['t'](_0x4b8924(0x425))}),_0x391b30('div',{'className':'univer-flex','children':[_0x391b30(_0x11a8c2,{'className':_0x4b8924(0x27e),'variant':_0x5d97cf===_0x1e9e18[_0x4b8924(0x19e)]?_0x4b8924(0x386):'default','onClick':()=>_0x26f106(_0x1e9e18[_0x4b8924(0x19e)]),'children':[_0x143050(_0x52227c,{}),_0x2617ce['t']('bases-dashboard-ui.pivot.ascending')]}),_0x391b30(_0x11a8c2,{'className':_0x4b8924(0x27e),'variant':_0x5d97cf===_0x1e9e18[_0x4b8924(0x395)]?_0x4b8924(0x386):_0x4b8924(0x47a),'onClick':()=>_0x26f106(_0x1e9e18[_0x4b8924(0x395)]),'children':[_0x143050(_0x5c0c38,{}),_0x2617ce['t']('bases-dashboard-ui.pivot.descending')]})]}),_0x391b30(_0x4b8924(0x402),{'className':'univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','children':[_0x391b30(_0x4b8924(0x19d),{'className':_0x4b8924(0x3cc),'children':[_0x143050(_0x10db4e,{'checked':_0x268bf2,'indeterminate':_0x210f4a[_0x4b8924(0x38b)]>0x0&&!_0x268bf2,'onChange':()=>_0x581c2b(_0x268bf2?[]:_0x43fde6)}),_0x2617ce['t'](_0x4b8924(0x319))]}),_0x43fde6['map']((_0x4e0515,_0x5d5bcb)=>_0x391b30(_0x4b8924(0x19d),{'className':_0x4b8924(0x3cc),'children':[_0x143050(_0x10db4e,{'checked':_0x210f4a['includes'](_0x4e0515),'onChange':()=>_0x581c2b(_0x323d46=>_0x323d46[_0x4b8924(0x37e)](_0x4e0515)?_0x323d46['filter'](_0x3a5af2=>_0x3a5af2!==_0x4e0515):[..._0x323d46,_0x4e0515])}),_0x143050('span',{'className':_0x4b8924(0x2d9),'children':Yi(_0x4e0515,_0x2e45f6[_0x5d5bcb],_0x56fc40,_0x2617ce['t'](_0x4b8924(0x444)))})]},_0x4e0515))]}),_0x391b30(_0x4b8924(0x402),{'className':_0x4b8924(0x1a4),'children':[_0x143050(_0x11a8c2,{'variant':'link','onClick':()=>_0x49d4f7[_0x4b8924(0x2ed)](_0x43fde6,_0x5d97cf),'children':_0x2617ce['t'](_0x4b8924(0x27c))}),_0x391b30(_0x4b8924(0x402),{'className':'univer-flex\x20univer-gap-2','children':[_0x143050(_0x11a8c2,{'onClick':_0x49d4f7[_0x4b8924(0x21e)],'children':_0x2617ce['t'](_0x4b8924(0x204))}),_0x143050(_0x11a8c2,{'variant':'primary','disabled':_0x210f4a['length']===0x0,'onClick':()=>_0x49d4f7[_0x4b8924(0x2ed)](_0x210f4a,_0x5d97cf),'children':_0x2617ce['t'](_0x4b8924(0x158))})]})]})]});return _0x143050(_0x2e2cb1,{'title':_0x2617ce['t']('bases-dashboard-ui.pivot.filterField'),'onClose':_0x49d4f7[_0x4b8924(0x21e)],'children':_0x126460});}function Ki(_0x40eb6a){const _0x22f40c=_0x410bd1;var _0x4c842b,_0x1b4649,_0x4e61e8;let _0x52c290=_0x20ec70(_0x4f7627),[_0x3f0a17,_0x1fd139]=_0x5e5f09(((_0x4c842b=_0x40eb6a['field'])==null?void 0x0:_0x4c842b[_0x22f40c(0x39e)])??''),[_0x135307,_0xa1f2d1]=_0x5e5f09(((_0x1b4649=_0x40eb6a['field'])==null?void 0x0:_0x1b4649['subtotal'])??_0x9fb623[_0x22f40c(0x3c1)]),[_0x4e503f,_0x52bddf]=_0x5e5f09(((_0x4e61e8=_0x40eb6a[_0x22f40c(0x29f)])==null?void 0x0:_0x4e61e8[_0x22f40c(0x1d7)])??'');if(!_0x40eb6a[_0x22f40c(0x29f)])return null;let _0x271d4f=_0x391b30(_0x22f40c(0x407),{'className':_0xec79e5(_0x22f40c(0x2a1),_0x1f0d20),'children':[_0x143050('div',{'className':'univer-text-sm\x20univer-font-medium','children':_0x52c290['t'](_0x22f40c(0x290))}),_0x391b30('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x52c290['t'](_0x22f40c(0x1e0)),_0x143050(_0x56be65,{'value':_0x3f0a17,'onChange':_0x1fd139})]}),_0x391b30(_0x22f40c(0x19d),{'className':_0x22f40c(0x24c),'children':[_0x52c290['t']('bases-dashboard-ui.pivot.summarizeBy'),_0x143050(Yr,{'value':String(_0x135307),'options':zi[_0x22f40c(0x173)](_0x5e6d23=>({'value':String(_0x5e6d23[_0x22f40c(0x46f)]),'label':_0x52c290['t'](_0x5e6d23['localeKey'])})),'onChange':_0x3613af=>{const _0x460e9e=_0x22f40c;let _0x21d8ac=zi[_0x460e9e(0x2da)](_0x5dec25=>String(_0x5dec25[_0x460e9e(0x46f)])===_0x3613af);_0x21d8ac&&_0xa1f2d1(_0x21d8ac[_0x460e9e(0x46f)]);}})]}),_0x391b30(_0x22f40c(0x19d),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x52c290['t'](_0x22f40c(0x45f)),_0x143050(_0x56be65,{'value':_0x4e503f,'onChange':_0x52bddf})]}),_0x391b30(_0x22f40c(0x402),{'className':_0x22f40c(0x3e9),'children':[_0x143050(_0x11a8c2,{'onClick':_0x40eb6a[_0x22f40c(0x21e)],'children':_0x52c290['t'](_0x22f40c(0x204))}),_0x143050(_0x11a8c2,{'variant':_0x22f40c(0x386),'disabled':!_0x3f0a17[_0x22f40c(0x48d)](),'onClick':()=>_0x40eb6a[_0x22f40c(0x2ed)](_0x3f0a17[_0x22f40c(0x48d)](),_0x135307,_0x4e503f),'children':_0x52c290['t'](_0x22f40c(0x158))})]})]});return _0x143050(_0x2e2cb1,{'title':_0x52c290['t'](_0x22f40c(0x290)),'onClose':_0x40eb6a['onCancel'],'children':_0x271d4f});}function qi(_0x1c0b33){const _0x24dbd3=_0x410bd1;let {config:_0x4a7690,commit:_0x18e130}=_0x1c0b33,_0x1253ca=_0x20ec70(_0x4f7627),_0x3b5aa8=_0x4a7690[_0x24dbd3(0x382)][_0x24dbd3(0x22a)],_0x209c25=_0x5b1cba=>_0x18e130(_0x510994=>_0x510994[_0x24dbd3(0x265)]({..._0x510994[_0x24dbd3(0x221)](),..._0x5b1cba}));return _0x391b30(_0x24dbd3(0x402),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x391b30(_0x24dbd3(0x19d),{'className':_0x24dbd3(0x2b2),'children':[_0x1253ca['t']('bases-dashboard-ui.pivot.layout'),_0x143050(Yr,{'className':_0x24dbd3(0x41d),'value':String(_0x4a7690[_0x24dbd3(0x382)]['layout']),'options':[{'value':String(_0x5a28d1[_0x24dbd3(0x31b)]),'label':_0x1253ca['t'](_0x24dbd3(0x311))},{'value':String(_0x5a28d1['compact']),'label':_0x1253ca['t'](_0x24dbd3(0x2f0))},{'value':String(_0x5a28d1[_0x24dbd3(0x368)]),'label':_0x1253ca['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x501c7e=>{const _0x5155ce=_0x24dbd3;let _0x3b9d79=[_0x5a28d1[_0x5155ce(0x31b)],_0x5a28d1[_0x5155ce(0x2b1)],_0x5a28d1[_0x5155ce(0x368)]][_0x5155ce(0x2da)](_0x10b1fa=>String(_0x10b1fa)===_0x501c7e);_0x3b9d79!==void 0x0&&_0x18e130(_0x4da1be=>_0x4da1be[_0x5155ce(0x475)](_0x3b9d79));}})]}),[{'key':_0x24dbd3(0x41c),'label':_0x24dbd3(0x309),'defaultValue':!0x1},{'key':_0x24dbd3(0x19b),'label':_0x24dbd3(0x457),'defaultValue':!0x1},{'key':_0x24dbd3(0x15f),'label':_0x24dbd3(0x4a7),'defaultValue':!0x0},{'key':_0x24dbd3(0x3cf),'label':'bases-dashboard-ui.pivot.showRowGrandTotal','defaultValue':!0x0},{'key':_0x24dbd3(0x3f2),'label':_0x24dbd3(0x328),'defaultValue':!0x0},{'key':_0x24dbd3(0x34a),'label':_0x24dbd3(0x17c),'defaultValue':!0x0}][_0x24dbd3(0x173)](_0x50b85f=>_0x391b30('label',{'className':_0x24dbd3(0x304),'children':[_0x143050(_0x10db4e,{'checked':!!(_0x3b5aa8[_0x50b85f[_0x24dbd3(0x17b)]]??_0x50b85f[_0x24dbd3(0x178)]),'disabled':_0x50b85f[_0x24dbd3(0x17b)]===_0x24dbd3(0x41c)&&_0x4a7690[_0x24dbd3(0x382)][_0x24dbd3(0x281)]===_0x5a28d1[_0x24dbd3(0x2b1)],'onChange':_0x277fa5=>_0x209c25({[_0x50b85f['key']]:!!_0x277fa5})}),_0x1253ca['t'](_0x50b85f['label'])]},_0x50b85f[_0x24dbd3(0x17b)])),_0x4a7690[_0x24dbd3(0x382)][_0x24dbd3(0x281)]===_0x5a28d1[_0x24dbd3(0x368)]&&_0x391b30(_0x24dbd3(0x19d),{'className':_0x24dbd3(0x2b2),'children':[_0x1253ca['t'](_0x24dbd3(0x227)),_0x143050(Yr,{'className':'univer-w-36','value':String(_0x3b5aa8['rowSubtotalPosition']??_0x5ba910[_0x24dbd3(0x4a9)]),'options':[{'value':String(_0x5ba910[_0x24dbd3(0x4a9)]),'label':_0x1253ca['t'](_0x24dbd3(0x162))},{'value':String(_0x5ba910['bottom']),'label':_0x1253ca['t'](_0x24dbd3(0x1a1))}],'onChange':_0x13c9bb=>{const _0x2eee99=_0x24dbd3;let _0x4412db=[_0x5ba910[_0x2eee99(0x4a9)],_0x5ba910[_0x2eee99(0x400)]][_0x2eee99(0x2da)](_0x54f90a=>String(_0x54f90a)===_0x13c9bb);_0x4412db!==void 0x0&&_0x209c25({'rowSubtotalPosition':_0x4412db});}})]}),_0x391b30(_0x24dbd3(0x19d),{'className':_0x24dbd3(0x2b2),'children':[_0x1253ca['t']('bases-dashboard-ui.pivot.valuePosition'),_0x143050(Yr,{'className':_0x24dbd3(0x41d),'value':String(_0x4a7690['pivot'][_0x24dbd3(0x205)]===_0xeddb61[_0x24dbd3(0x429)]?_0xeddb61[_0x24dbd3(0x4ab)]:_0x4a7690[_0x24dbd3(0x382)][_0x24dbd3(0x205)]),'options':[{'value':String(_0xeddb61['Column']),'label':_0x1253ca['t'](_0x24dbd3(0x2af))},{'value':String(_0xeddb61['Row']),'label':_0x1253ca['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x547cae=>{const _0xcbad2f=_0x24dbd3;let _0x2170f3=[_0xeddb61[_0xcbad2f(0x4ab)],_0xeddb61[_0xcbad2f(0x2c3)]][_0xcbad2f(0x2da)](_0x5d6abb=>String(_0x5d6abb)===_0x547cae);_0x2170f3!==void 0x0&&_0x18e130(_0x21ba8d=>_0x21ba8d['updateValuePosition'](_0x2170f3,_0x21ba8d[_0xcbad2f(0x467)]()<0x0?0x0:_0x21ba8d[_0xcbad2f(0x467)]()));}})]}),_0x391b30(_0x24dbd3(0x19d),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x1253ca['t']('bases-dashboard-ui.pivot.pageWrap'),_0x143050(_0x137e64,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x3b5aa8['pageWrap']??0x1,'onChange':_0x564e6d=>{let _0x6056e2=Number(_0x564e6d);Number['isFinite'](_0x6056e2)&&_0x6056e2>=0x1&&_0x209c25({'pageWrap':_0x6056e2});}})]}),_0x391b30(_0x24dbd3(0x19d),{'className':_0x24dbd3(0x2b2),'children':[_0x1253ca['t']('bases-dashboard-ui.pivot.pageDirection'),_0x143050(Yr,{'className':'univer-w-36','value':String(_0x3b5aa8[_0x24dbd3(0x2a5)]??!0x1),'options':[{'value':_0x24dbd3(0x423),'label':_0x1253ca['t'](_0x24dbd3(0x3ea))},{'value':_0x24dbd3(0x2c4),'label':_0x1253ca['t'](_0x24dbd3(0x401))}],'onChange':_0xb6c577=>_0x209c25({'pageOverThenDown':_0xb6c577===_0x24dbd3(0x2c4)})})]})]});}function Ji(_0x2f81cf,_0x3e661b,_0x43e810,_0x49a138){const _0x3c6db3=_0x410bd1;let _0x1fe3dc=_0x2f81cf[_0x3c6db3(0x3df)](_0x3e661b)['find'](_0x1207fc=>_0x2f81cf[_0x3c6db3(0x215)](_0x1207fc[_0x3c6db3(0x292)]())['area']!==_0x3c113a[_0x3c6db3(0x3c2)]);_0x43e810!==_0x3c113a[_0x3c6db3(0x3c2)]&&_0x1fe3dc?_0x2f81cf['updateFieldPosition'](_0x1fe3dc[_0x3c6db3(0x292)](),_0x43e810,_0x49a138):_0x2f81cf[_0x3c6db3(0x3b0)](_0x3e661b,_0x43e810,_0x49a138);}function Yi(_0x292d4b,_0xb11c75,_0x566430,_0x2b9847){const _0x2bf40a=_0x410bd1;return _0xb11c75===_0x15e35b[_0x2bf40a(0x217)]?_0x2b9847:_0xb11c75===_0x15e35b[_0x2bf40a(0x25f)]&&_0x566430?_0x5140c1[_0x2bf40a(0x1d7)](_0x566430,Number(_0x292d4b)):_0x292d4b;}function Xi(_0x11279f){const _0x38e3a6=_0x410bd1;return _0x11279f['type']===_0xac378e[_0x38e3a6(0x28a)]||_0x11279f[_0x38e3a6(0x38c)]===_0xac378e[_0x38e3a6(0x3cd)]||_0x11279f[_0x38e3a6(0x38c)]===_0xac378e[_0x38e3a6(0x354)]||_0x11279f[_0x38e3a6(0x38c)]===_0xac378e[_0x38e3a6(0x2de)];}function Zi(_0x283aac){const _0x39e329=_0x410bd1;switch(_0x283aac){case _0x3c113a[_0x39e329(0x2c3)]:return _0x39e329(0x1e6);case _0x3c113a['Column']:return _0x39e329(0x1c5);case _0x3c113a[_0x39e329(0x3c2)]:return'bases-dashboard-ui.pivot.addToValue';default:return _0x39e329(0x302);}}function Qi({config:_0x268f5e,onChange:_0x352101,runtime:_0x2d9ebd,table:_0x979894}){const _0x1d92b0=_0x410bd1;let _0x277472=_0x20ec70(_0x4f7627),[_0x1075f5,_0x1a866e]=_0x5e5f09(_0x1d92b0(0x195));return _0x391b30(_0x1d92b0(0x208),{'className':_0x1d92b0(0x206),'children':[_0x143050(_0x55df58,{'ariaLabel':_0x277472['t'](_0x1d92b0(0x459)),'className':_0x1d92b0(0x38e),'items':[{'label':_0x277472['t']('bases-dashboard-ui.pivot.chartConfiguration'),'panelId':_0x1d92b0(0x362),'value':_0x1d92b0(0x195)},{'label':_0x277472['t'](_0x1d92b0(0x48c)),'panelId':'base-pivot-table-configuration','value':_0x1d92b0(0x382)}],'value':_0x1075f5,'variant':'segmented','onChange':_0x1a866e}),_0x143050(_0x1d92b0(0x402),{'className':_0x1d92b0(0x25c),'children':_0x1075f5==='chart'?_0x2d9ebd&&_0x143050(ei,{'config':_0x268f5e,'runtime':_0x2d9ebd,'tableName':_0x979894[_0x1d92b0(0x1f6)],'onChange':_0x352101}):_0x143050(Bi,{'config':_0x268f5e,'table':_0x979894,'onChange':_0x352101})})]});}function $i({tableId:_0xbbb89d,unitId:_0xf770a2,viewId:_0x3d1f6b}){const _0x58badc=_0x410bd1;let [_0xf599f8,_0x445648]=_0x5e5f09(!0x1),_0x4cc129=_0x20ec70(_0x668d8f),_0x18e4b0=_0x20ec70(_0x1ce417),_0x231836=_0x20ec70(_0xf4ca24),_0x19749d=_0x20ec70(_0x4f7627),_0x25eaa0=_0x20ec70(_0xab5a6b),[_0x202b34,_0x5d3c32]=_0x5e5f09(null),[_0x6c8b71,_0x87eae4]=_0x5e5f09(null),_0x49692c=_0x127850(_0x58badc(0x245)+_0x542898(0x8)),[_0x24e0ec,_0x52dde0]=_0x5e5f09(!0x1),_0x3ee038=_0x18e4b0['getUnit'](_0xf770a2,_0xd3f775['UNIVER_BASE']),_0x239ede=_0x3ee038==null?void 0x0:_0x3ee038[_0x58badc(0x31e)]()[_0x58badc(0x2ec)][_0xbbb89d],_0x54c27a=_0x239ede==null?void 0x0:_0x239ede['views'][_0x3d1f6b],_0x49e4a9=ea(_0x54c27a),_0x5848f4=yr(_0xf770a2,_0xbbb89d,_0x3d1f6b);if(_0x2fd531(()=>{const _0x1f7977=_0x58badc;if(!_0x49e4a9)return;let _0x30f7b2=_0x49692c[_0x1f7977(0x179)];return _0x25eaa0[_0x1f7977(0x1f2)](_0x30f7b2,{'unitId':_0xf770a2,'tableId':_0xbbb89d,'viewId':_0x3d1f6b,'filters':[]}),()=>{const _0x17695e=_0x1f7977;_0x25eaa0[_0x17695e(0x1cf)](_0xf770a2,_0x30f7b2);};},[_0x49e4a9,_0x25eaa0,_0xbbb89d,_0xf770a2,_0x3d1f6b]),_0x2fd531(()=>{const _0x535e0e=_0x58badc;if(!ea(_0x54c27a))return;let _0x49c379=!0x0,_0x1132b6={'unitId':_0xf770a2,'tableId':_0xbbb89d,'viewId':_0x3d1f6b,'filters':[_0x54c27a['filter']??null]};return _0x25eaa0[_0x535e0e(0x477)](_0xf770a2,_0x49692c['current'],_0x1132b6)[_0x535e0e(0x3c4)](_0x3467f0=>{const _0x24aee3=_0x535e0e;_0x49c379&&_0x3467f0&&(_0x5d3c32(_0x3467f0),_0x87eae4(_0x25eaa0[_0x24aee3(0x242)](_0xf770a2,_0x49692c[_0x24aee3(0x179)])??null),_0x52dde0(!0x1));})[_0x535e0e(0x28c)](_0x15d781=>{const _0x42114b=_0x535e0e;_0x231836[_0x42114b(0x280)]('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x15d781),_0x49c379&&(_0x5d3c32(null),_0x52dde0(!0x0));}),()=>{_0x49c379=!0x1;};},[_0x231836,_0x25eaa0,_0xbbb89d,_0xf770a2,_0x54c27a,_0x3d1f6b]),!_0x239ede||!ea(_0x54c27a))return null;let _0x26885e=_0x25eaa0['getChartRuntime'](_0xf770a2,_0x49692c['current'])===_0x6c8b71?_0x6c8b71:null,_0x5a7556=_0x202b34?_0x391b30(_0x58badc(0x402),{'className':_0x58badc(0x462),'style':{'gridTemplateRows':_0x54c27a[_0x58badc(0x30a)][_0x58badc(0x201)]===_0x58badc(0x23e)?_0x58badc(0x496):'minmax(0,\x201fr)'},'children':[_0x54c27a[_0x58badc(0x30a)]['displayMode']!==_0x58badc(0x26a)&&_0x26885e&&_0x143050(_0x58badc(0x402),{'className':_0x58badc(0x3a2),'children':_0x143050(Rr,{'isRowDirection':_0x3fb36c(_0x54c27a[_0x58badc(0x30a)][_0x58badc(0x195)][_0x58badc(0x32c)]),'runtime':_0x26885e})}),_0x54c27a[_0x58badc(0x30a)][_0x58badc(0x201)]!==_0x58badc(0x195)&&_0x143050('div',{'className':'univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':_0x143050(ji,{'pivot':_0x54c27a[_0x58badc(0x30a)][_0x58badc(0x382)],'view':_0x202b34['view']})})]}):_0x143050(_0x58badc(0x402),{'className':_0x58badc(0x3dd),'children':_0x24e0ec?_0x19749d['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x19749d['t'](_0x58badc(0x2f6))}),_0x24e15c=_0x143050(Qi,{'config':_0x54c27a[_0x58badc(0x30a)],'runtime':_0x26885e,'table':_0x239ede,'onChange':_0x37bfab=>{const _0x22383f=_0x58badc;_0x18e4b0[_0x22383f(0x3d1)](_0xf770a2),_0x18e4b0[_0x22383f(0x46a)](_0xf770a2),_0x4cc129[_0x22383f(0x18b)](_0x1f6e61['id'],{'unitId':_0xf770a2,'tableId':_0xbbb89d,'viewId':_0x3d1f6b,'patch':_0x37bfab})['catch'](_0x1b06fd=>_0x231836[_0x22383f(0x280)](_0x22383f(0x1d5),_0x1b06fd));}});return _0x143050(Jr,{'children':_0x391b30(_0x58badc(0x402),{'className':_0x58badc(0x21d),'children':[_0x5848f4&&_0x143050(_0x11a8c2,{'onClick':()=>_0x445648(!0x0),'children':_0x19749d['t'](_0x58badc(0x372))}),_0x143050('div',{'className':_0x58badc(0x3a4),'children':_0x5a7556}),_0x5848f4&&_0xf599f8&&_0x143050(_0x2e2cb1,{'title':_0x19749d['t'](_0x58badc(0x459)),'onClose':()=>_0x445648(!0x1),'children':_0x24e15c})]})});}function ea(_0x375b50){const _0x462f71=_0x410bd1;return(_0x375b50==null?void 0x0:_0x375b50[_0x462f71(0x38c)])===_0x37c4bc[_0x462f71(0x3bf)]&&typeof _0x375b50[_0x462f71(0x30a)]==_0x462f71(0x16a)&&_0x375b50[_0x462f71(0x30a)]!==null&&'pivot'in _0x375b50[_0x462f71(0x30a)]&&'chart'in _0x375b50[_0x462f71(0x30a)]&&_0x462f71(0x201)in _0x375b50[_0x462f71(0x30a)];}let ta=class extends _0x34f5d7{constructor(_0x373724,_0x5a4e85,_0x23c5e7,_0x3cd673,_0x29117d,_0x2f5512){const _0x5ea84d=_0x410bd1;super(),this['disposeWithMe'](_0x5a4e85[_0x5ea84d(0x325)]({'type':_0x37c4bc[_0x5ea84d(0x3bf)],'renderMode':_0x5ea84d(0x40e),'icon':_0x475089,'component':$i,'menu':{get 'label'(){const _0x50ddb9=_0x5ea84d;return _0x2f5512['t'](_0x50ddb9(0x459));},get 'description'(){const _0x28c788=_0x5ea84d;return _0x2f5512['t'](_0x28c788(0x39f));},get 'defaultName'(){const _0x3af311=_0x5ea84d;return _0x2f5512['t'](_0x3af311(0x18c));}}})),this[_0x5ea84d(0x388)](_0x373724[_0x5ea84d(0x325)](na(_0x23c5e7,_0x3cd673,_0x29117d,_0x2f5512)));}};ta=Ar([Y(0x0,_0x76978b),Y(0x1,_0xb97bcb),Y(0x2,_0x1fee36(_0x3a9dda)),Y(0x3,_0x668d8f),Y(0x4,_0xd14797),Y(0x5,_0x1fee36(_0x4f7627))],ta);function na(_0x35972c,_0xb002b9,_0x5a7605,_0x226f0b){const _0x743f46=_0x410bd1;return{'change$':_0x360ca5(_0x35972c[_0x743f46(0x452)],_0x5a7605[_0x743f46(0x4b3)]),'component':Si,get 'labels'(){const _0x4c599a=_0x743f46;return{'add':_0x226f0b['t'](_0x4c599a(0x1b0)),'configure':_0x152e40=>_0x226f0b['t'](_0x4c599a(0x3e2),_0x152e40),'delete':_0x226f0b['t'](_0x4c599a(0x480)),'new':_0x226f0b['t'](_0x4c599a(0x461)),'rename':_0x226f0b['t']('bases-dashboard-ui.dashboard.rename'),'search':_0x226f0b['t'](_0x4c599a(0x41e)),'section':_0x226f0b['t'](_0x4c599a(0x1e3))};},'getItems':_0x1ccbd0=>{const _0x3b861a=_0x743f46;let _0x57f429=_0x35972c[_0x3b861a(0x1bf)](_0x1ccbd0);return _0x57f429[_0x3b861a(0x2f5)]['flatMap'](_0x25347b=>{const _0x5d79ec=_0x3b861a;let _0x3e8fa9=_0x57f429[_0x5d79ec(0x261)][_0x25347b];return _0x3e8fa9?[{'id':_0x3e8fa9['id'],'name':_0x3e8fa9[_0x5d79ec(0x1f6)],'readonly':!_0x467e07(_0x5a7605,_0x1ccbd0,_0x3e8fa9['id'])}]:[];});},'create':async _0x29588d=>{const _0x1ac6d5=_0x743f46;let _0x321ae2=_0x35972c[_0x1ac6d5(0x1bf)](_0x29588d),_0x533958='dashboard-'+_0x542898(0x8),_0x27345c=ra(_0x321ae2[_0x1ac6d5(0x2f5)][_0x1ac6d5(0x1c6)](_0x577300=>{const _0x3d3036=_0x1ac6d5;let _0x1357a9=_0x321ae2[_0x3d3036(0x261)][_0x577300];return _0x1357a9?[_0x1357a9[_0x3d3036(0x1f6)]]:[];}),_0x340440=>_0x226f0b['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x340440)));return await _0xb002b9[_0x1ac6d5(0x18b)](_0x100fa4['id'],{'unitId':_0x29588d,'dashboard':{'id':_0x533958,'name':_0x27345c,'widgetOrder':[],'widgets':{}}})?_0x533958:null;},'rename':async(_0x39067a,_0xd05a54,_0x53679d)=>{const _0x45130c=_0x743f46;let _0x52cef1=_0x35972c[_0x45130c(0x36f)](_0x39067a,_0xd05a54);return!!(_0x52cef1&&await _0xb002b9[_0x45130c(0x18b)](_0x1e24a6['id'],{'unitId':_0x39067a,'dashboard':{..._0x52cef1,'name':_0x53679d}}));},'remove':(_0x44bfe3,_0x1d2789)=>_0xb002b9[_0x743f46(0x18b)](_0x439898['id'],{'unitId':_0x44bfe3,'dashboardId':_0x1d2789})};}function ra(_0xde9722,_0x19df9c){const _0x337e63=_0x410bd1;let _0x17ae9a=new Set(_0xde9722),_0x91fb30=_0x17ae9a[_0x337e63(0x248)]+0x1,_0x49c7d0=_0x19df9c(_0x91fb30);for(;_0x17ae9a[_0x337e63(0x183)](_0x49c7d0);)_0x91fb30+=0x1,_0x49c7d0=_0x19df9c(_0x91fb30);return _0x49c7d0;}let ia=class extends _0x22507e{constructor(_0x4a3d3f=_r,_0x34275d,_0x376fbd){const _0x4eeefc=_0x410bd1;super(),this['_config']=_0x4a3d3f,this[_0x4eeefc(0x44f)]=_0x34275d,this[_0x4eeefc(0x3d2)]=_0x376fbd;let {..._0x244b1a}=_0x17941a({},_r,this[_0x4eeefc(0x250)]);this[_0x4eeefc(0x3d2)][_0x4eeefc(0x1ce)](gr,_0x244b1a);}['onStarting'](){const _0x4a45f7=_0x410bd1;this[_0x4a45f7(0x44f)][_0x4a45f7(0x307)]([jr]),this['_injector'][_0x4a45f7(0x307)]([qr]),this[_0x4a45f7(0x44f)][_0x4a45f7(0x307)]([ta]);}['onReady'](){const _0x3f3f0f=_0x410bd1;_0x4ffdef(this[_0x3f3f0f(0x44f)],[[jr],[qr],[ta]]);}};Ir(ia,'type',_0xd3f775['UNIVER_BASE']),Ir(ia,_0x410bd1(0x287),_0x410bd1(0x322)),Ir(ia,_0x410bd1(0x214),mr),Ir(ia,_0x410bd1(0x25d),hr),ia=Ar([_0x2b679d(_0x1b68d2,_0x7dcda4,_0x32b88b,_0x2d555f,_0xdd06cf,_0x1776ea),Y(0x1,_0x1fee36(_0x4c3614)),Y(0x2,_0x200457)],ia);function aa(_0x291a0c,_0x579cc0,_0xb4ba40,_0x17f7cd){const _0x18f22b=_0x410bd1;let _0x480447={..._0x291a0c};if(_0x579cc0[_0x18f22b(0x37e)]('w')){let _0x4795f8=_0x291a0c['column']+_0x291a0c['columnSpan'];_0x480447[_0x18f22b(0x1e8)]=Math[_0x18f22b(0x3b6)](0x0,Math['min'](_0x4795f8-0x1,_0x291a0c[_0x18f22b(0x1e8)]+_0xb4ba40)),_0x480447['columnSpan']=_0x4795f8-_0x480447[_0x18f22b(0x1e8)];}else _0x579cc0['includes']('e')&&(_0x480447[_0x18f22b(0x34c)]=Math[_0x18f22b(0x3b6)](0x1,Math[_0x18f22b(0x2c0)](_0x1e51f0-_0x291a0c[_0x18f22b(0x1e8)],_0x291a0c[_0x18f22b(0x34c)]+_0xb4ba40)));if(_0x579cc0['includes']('n')){let _0x2da8ba=_0x291a0c[_0x18f22b(0x3e4)]+_0x291a0c[_0x18f22b(0x1ad)];_0x480447[_0x18f22b(0x3e4)]=Math[_0x18f22b(0x3b6)](0x0,Math[_0x18f22b(0x2c0)](_0x2da8ba-0x1,_0x291a0c[_0x18f22b(0x3e4)]+_0x17f7cd)),_0x480447[_0x18f22b(0x1ad)]=_0x2da8ba-_0x480447[_0x18f22b(0x3e4)];}else _0x579cc0[_0x18f22b(0x37e)]('s')&&(_0x480447['rowSpan']=Math[_0x18f22b(0x3b6)](0x1,_0x291a0c[_0x18f22b(0x1ad)]+_0x17f7cd));return _0x480447;}function oa(_0x5b0b2d){const _0x172dac=_0x410bd1;let _0x45c30d=Math[_0x172dac(0x3b6)](0x1,Math[_0x172dac(0x2c0)](_0x1e51f0,Math['round'](_0x5b0b2d[_0x172dac(0x34c)])));return{'column':Math['max'](0x0,Math[_0x172dac(0x2c0)](_0x1e51f0-_0x45c30d,Math[_0x172dac(0x1d8)](_0x5b0b2d[_0x172dac(0x1e8)]))),'row':Math['max'](0x0,Math[_0x172dac(0x1d8)](_0x5b0b2d[_0x172dac(0x3e4)])),'columnSpan':_0x45c30d,'rowSpan':Math['max'](0x1,Math['round'](_0x5b0b2d[_0x172dac(0x1ad)]))};}function sa(_0x594c46,_0x2808ce,_0x539603){const _0x459373=_0x410bd1;let _0x4808aa=new Map(_0x594c46),_0x38310a=oa(_0x539603);_0x4808aa[_0x459373(0x338)](_0x2808ce,_0x38310a);let _0x6c5fda=[[_0x2808ce,_0x38310a]];for(let [_0x3f700b,_0x26383d]of _0x4808aa){if(_0x3f700b===_0x2808ce)continue;let _0x11a3c2=oa(_0x26383d);for(;_0x6c5fda['some'](([,_0x32bfb6])=>la(_0x11a3c2,_0x32bfb6));)_0x11a3c2={..._0x11a3c2,'row':_0x11a3c2[_0x459373(0x3e4)]+0x1};for(;_0x11a3c2[_0x459373(0x3e4)]>0x0;){let _0x5389a7={..._0x11a3c2,'row':_0x11a3c2[_0x459373(0x3e4)]-0x1};if(_0x6c5fda[_0x459373(0x29a)](([,_0x23ff5d])=>la(_0x5389a7,_0x23ff5d)))break;_0x11a3c2=_0x5389a7;}_0x6c5fda[_0x459373(0x1e7)]([_0x3f700b,_0x11a3c2]),_0x4808aa[_0x459373(0x338)](_0x3f700b,_0x11a3c2);}return _0x4808aa;}function ca(_0x13ef7b,_0x5cb540,_0x3dc0fb,_0x6fc89d=0x38,_0x5c2e67=0x16){const _0xd565c9=_0x410bd1;return _0x13ef7b<_0x5cb540+_0x6fc89d?-Math[_0xd565c9(0x315)](_0x5c2e67*(0x1-Math[_0xd565c9(0x3b6)](0x0,_0x13ef7b-_0x5cb540)/_0x6fc89d)):_0x13ef7b>_0x3dc0fb-_0x6fc89d?Math[_0xd565c9(0x315)](_0x5c2e67*(0x1-Math[_0xd565c9(0x3b6)](0x0,_0x3dc0fb-_0x13ef7b)/_0x6fc89d)):0x0;}function la(_0x1fcaa5,_0x280d4f){const _0x44aa47=_0x410bd1;return _0x1fcaa5[_0x44aa47(0x1e8)]<_0x280d4f[_0x44aa47(0x1e8)]+_0x280d4f['columnSpan']&&_0x1fcaa5[_0x44aa47(0x1e8)]+_0x1fcaa5['columnSpan']>_0x280d4f[_0x44aa47(0x1e8)]&&_0x1fcaa5[_0x44aa47(0x3e4)]<_0x280d4f['row']+_0x280d4f[_0x44aa47(0x1ad)]&&_0x1fcaa5['row']+_0x1fcaa5[_0x44aa47(0x1ad)]>_0x280d4f[_0x44aa47(0x3e4)];}const ua=[{'direction':'nw','className':_0x410bd1(0x33e)},{'direction':'n','className':_0x410bd1(0x355)},{'direction':'ne','className':_0x410bd1(0x161)},{'direction':'e','className':_0x410bd1(0x330)},{'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':_0x410bd1(0x29b)},{'direction':'sw','className':_0x410bd1(0x342)},{'direction':'w','className':_0x410bd1(0x369)}];function da({dashboard:_0x5d3123,dragLabel:_0x9b31be,editable:_0x1f50ea=!0x0,onLayoutsCommit:_0x597a2f,onSelectWidget:_0x797060,renderWidget:_0x22fe5c,renderWidgetActions:_0x519004,resizeLabel:_0x383e9f,selectedWidgetId:_0xc72bf7,widgetLabel:_0xde99a2}){const _0x1c116f=_0x410bd1;let _0x11a7f2=_0x127850(null),_0x1e7aba=_0x127850(null),[_0x3429a7,_0x327673]=_0x5e5f09(!0x1),_0x232742=_0x10a2b7(()=>new Map(_0x5d3123[_0x1c116f(0x487)]['flatMap'](_0x52a55c=>{const _0x40da99=_0x1c116f;let _0x174acd=_0x5d3123[_0x40da99(0x34d)][_0x52a55c];return _0x174acd?[[_0x52a55c,_0x174acd['layout']]]:[];})),[_0x5d3123]),[_0xb78318,_0x35f77d]=_0x5e5f09(_0x232742);_0x2fd531(()=>{const _0x1dc3e8=_0x1c116f;_0x1e7aba[_0x1dc3e8(0x179)]||_0x35f77d(_0x232742);},[_0x232742]),_0x2fd531(()=>{const _0x1ca465=_0x1c116f;if(!_0x3429a7)return;let _0x464d0a=_0x20f5d1=>{const _0x14df3c=_0x10b1;let _0x5b6788=_0x11a7f2[_0x14df3c(0x179)];if(!_0x5b6788)return null;let _0x548d42=_0x5b6788[_0x14df3c(0x2f2)](),_0x46fbba=Math[_0x14df3c(0x3b6)](0x1,(_0x548d42[_0x14df3c(0x252)]-0x8*(_0x1e51f0-0x1))/_0x1e51f0),_0x225955=Math[_0x14df3c(0x1d8)]((_0x5b6788[_0x14df3c(0x396)]-_0x20f5d1[_0x14df3c(0x32b)])/(_0x365d3b+0x8)),_0x33a2a9=Math['round']((_0x20f5d1[_0x14df3c(0x1a9)]-_0x20f5d1[_0x14df3c(0x47b)])/(_0x46fbba+0x8)),_0x4e2640=Math[_0x14df3c(0x1d8)]((_0x20f5d1[_0x14df3c(0x2c2)]-_0x20f5d1[_0x14df3c(0x18f)])/(_0x365d3b+0x8))+_0x225955,_0xf4b9a0=_0x20f5d1[_0x14df3c(0x413)]==='move'?{..._0x20f5d1[_0x14df3c(0x23a)],'column':_0x20f5d1[_0x14df3c(0x23a)][_0x14df3c(0x1e8)]+_0x33a2a9,'row':_0x20f5d1[_0x14df3c(0x23a)][_0x14df3c(0x3e4)]+_0x4e2640}:aa(_0x20f5d1['initial'],_0x20f5d1[_0x14df3c(0x442)]??'se',_0x33a2a9,_0x4e2640),_0x18833c=sa(_0x20f5d1[_0x14df3c(0x2c1)],_0x20f5d1['id'],_0xf4b9a0);return _0x35f77d(_0x18833c),_0x18833c;},_0x439788=_0x19e04a=>{const _0xaa3aeb=_0x10b1;let _0x33be90=_0x1e7aba['current'];if(!_0x33be90)return;let _0x29b80b={..._0x33be90,'pointerX':_0x19e04a['clientX'],'pointerY':_0x19e04a[_0xaa3aeb(0x335)]};_0x1e7aba[_0xaa3aeb(0x179)]=_0x29b80b;},_0x26ffa8=()=>{const _0x32e3d3=_0x10b1;let _0x379952=_0x1e7aba['current'],_0x5c2b78=_0x379952?_0x464d0a(_0x379952):null;_0x1e7aba[_0x32e3d3(0x179)]=null,_0x327673(!0x1),_0x5c2b78&&_0x597a2f(_0x5c2b78);},_0x3f050b=0x0,_0x5a8615=()=>{const _0x2ab15b=_0x10b1;let _0x502327=_0x11a7f2[_0x2ab15b(0x179)],_0x2a8475=_0x1e7aba[_0x2ab15b(0x179)];if(_0x502327&&_0x2a8475){let _0x26d690=_0x502327[_0x2ab15b(0x2f2)](),_0x49791e=ca(_0x2a8475[_0x2ab15b(0x2c2)],_0x26d690['top'],_0x26d690[_0x2ab15b(0x400)]);_0x49791e!==0x0&&(_0x502327[_0x2ab15b(0x396)]+=_0x49791e),_0x464d0a(_0x2a8475),_0x3f050b=requestAnimationFrame(_0x5a8615);}};return _0x3f050b=requestAnimationFrame(_0x5a8615),window[_0x1ca465(0x2fc)](_0x1ca465(0x1ae),_0x439788),window[_0x1ca465(0x2fc)](_0x1ca465(0x186),_0x26ffa8),()=>{const _0x51c5e7=_0x1ca465;cancelAnimationFrame(_0x3f050b),window[_0x51c5e7(0x445)](_0x51c5e7(0x1ae),_0x439788),window['removeEventListener'](_0x51c5e7(0x186),_0x26ffa8);};},[_0x3429a7,_0x597a2f]);let _0x31d0d6=Math[_0x1c116f(0x3b6)](0x8,...Array[_0x1c116f(0x24d)](_0xb78318[_0x1c116f(0x22c)]())[_0x1c116f(0x173)](_0x23e0e9=>_0x23e0e9[_0x1c116f(0x3e4)]+_0x23e0e9['rowSpan'])),_0x475b11=(_0x4de2cd,_0x2ce9a5,_0xe06c82,_0x4966ee)=>{const _0x2f8d56=_0x1c116f;_0x4de2cd[_0x2f8d56(0x35b)](),_0x4de2cd[_0x2f8d56(0x3b9)]();let _0x1a80da=_0x11a7f2[_0x2f8d56(0x179)],_0x398e9c={'id':_0x2ce9a5['id'],'mode':_0xe06c82,'pointerX':_0x4de2cd[_0x2f8d56(0x28e)],'pointerY':_0x4de2cd[_0x2f8d56(0x335)],'startX':_0x4de2cd[_0x2f8d56(0x28e)],'startY':_0x4de2cd[_0x2f8d56(0x335)],'startScrollTop':(_0x1a80da==null?void 0x0:_0x1a80da[_0x2f8d56(0x396)])??0x0,'initial':_0xb78318[_0x2f8d56(0x43f)](_0x2ce9a5['id'])??_0x2ce9a5[_0x2f8d56(0x281)],'initialLayouts':new Map(_0xb78318),'resizeDirection':_0x4966ee};_0x1e7aba[_0x2f8d56(0x179)]=_0x398e9c,_0x327673(!0x0);};return _0x143050(_0x1c116f(0x402),{'ref':_0x11a7f2,'data-dashboard-scroll-container':!0x0,'className':_0xec79e5(_0x1c116f(0x380),_0x44d47d),'onClick':_0x1f50ea?_0x2e083e=>{const _0xca2195=_0x1c116f;if(!(_0x2e083e['target']instanceof Node)||!_0x2e083e[_0xca2195(0x1ba)][_0xca2195(0x1a8)](_0x2e083e[_0xca2195(0x2f1)]))return;let _0x2732b5=_0x2e083e['target']instanceof Element?_0x2e083e[_0xca2195(0x2f1)]:_0x2e083e['target'][_0xca2195(0x294)];_0x2732b5!=null&&_0x2732b5['closest'](_0xca2195(0x42a))||_0x797060==null||_0x797060();}:void 0x0,'children':_0x143050(_0x1c116f(0x402),{'data-dashboard-grid':!0x0,'className':_0x1c116f(0x2cd),'style':{'gap':0x8,'gridAutoRows':_0x365d3b,'minHeight':_0x31d0d6*(_0x365d3b+0x8)},'children':_0x5d3123[_0x1c116f(0x487)][_0x1c116f(0x173)](_0x560d30=>{const _0x3631b7=_0x1c116f;var _0x21ce45;let _0x549bc7=_0x5d3123['widgets'][_0x560d30],_0x510e38=_0xb78318[_0x3631b7(0x43f)](_0x560d30);return!_0x549bc7||!_0x510e38?null:_0x391b30(_0x3631b7(0x231),{'data-dashboard-widget':_0x549bc7['id'],'aria-label':_0x549bc7[_0x3631b7(0x1c8)]??_0xde99a2(_0x549bc7),'className':_0xec79e5(_0x3631b7(0x29c),_0x549bc7[_0x3631b7(0x38c)]===_0x4e7fff[_0x3631b7(0x419)]||_0x549bc7[_0x3631b7(0x38c)]===_0x4e7fff[_0x3631b7(0x2b8)]?_0x3631b7(0x1fa):_0x3631b7(0x35f),_0x1f50ea&&_0xc72bf7===_0x549bc7['id']?_0x3631b7(0x385):'univer-border-gray-200\x20dark:!univer-border-gray-700'),'style':{'gridColumn':_0x510e38[_0x3631b7(0x1e8)]+0x1+'\x20/\x20span\x20'+_0x510e38[_0x3631b7(0x34c)],'gridRow':_0x510e38[_0x3631b7(0x3e4)]+0x1+_0x3631b7(0x192)+_0x510e38[_0x3631b7(0x1ad)]},'tabIndex':_0x1f50ea?0x0:void 0x0,'onClick':_0x1f50ea?()=>_0x797060==null?void 0x0:_0x797060(_0x549bc7['id']):void 0x0,'onFocus':_0x1f50ea?()=>_0x797060==null?void 0x0:_0x797060(_0x549bc7['id']):void 0x0,'children':[_0x1f50ea&&_0x143050(_0x3631b7(0x44d),{'type':_0x3631b7(0x44d),'aria-label':_0x9b31be,'data-dashboard-drag-handle':_0x549bc7['id'],'className':_0xec79e5('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',_0x3429a7&&((_0x21ce45=_0x1e7aba[_0x3631b7(0x179)])==null?void 0x0:_0x21ce45['id'])===_0x549bc7['id']&&_0x1e7aba[_0x3631b7(0x179)][_0x3631b7(0x413)]===_0x3631b7(0x200)?_0x3631b7(0x2e5):_0x3631b7(0x377)),'onPointerDown':_0x20ad15=>_0x475b11(_0x20ad15,_0x549bc7,'move'),'children':_0x143050(_0x5ca67b,{'className':_0x3631b7(0x20e),'aria-hidden':'true'})}),_0x1f50ea&&_0x143050(_0x3631b7(0x402),{'className':_0x3631b7(0x1c9),'children':_0x519004==null?void 0x0:_0x519004(_0x549bc7)}),_0x143050('div',{'className':_0x3631b7(0x199),'children':_0x22fe5c(_0x549bc7)}),_0x1f50ea&&ua[_0x3631b7(0x173)](({className:_0x36d058,direction:_0x56a44c})=>{const _0x1b4f87=_0x3631b7;let _0x5821d4=_0x56a44c[_0x1b4f87(0x38b)]===0x2;return _0x143050(_0x1b4f87(0x44d),{'type':_0x1b4f87(0x44d),'aria-label':_0x383e9f,'data-dashboard-resize-handle':_0x56a44c,'data-dashboard-resize-control':_0x5821d4?_0x56a44c:void 0x0,'data-dashboard-resize-edge':_0x5821d4?void 0x0:_0x56a44c,'className':_0xec79e5(_0x1b4f87(0x209),_0x5821d4?'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':_0x1b4f87(0x37f),_0x36d058,_0xc72bf7===_0x549bc7['id']&&_0x1b4f87(0x2a3)),'onPointerDown':_0x348854=>_0x475b11(_0x348854,_0x549bc7,_0x1b4f87(0x2a7),_0x56a44c)},_0x56a44c);})]},_0x549bc7['id']);})})});}var fa;const Q={'axis':{..._0x4d8c62,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0xd824da,'heatmap':_0xa35118,'indicatorLine':_0x10441e,'legend':_0x1b9bc9,'lineAndArea':_0x45d9c7,'pareto':_0x2c4778,'pie':_0x7ff226,'radar':_0x223cbb,'relation':{..._0x12660e,'useValueAsSymbolSize':!0x0},'series':{..._0x223992,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((fa=_0x376ad5[_0x410bd1(0x360)])==null?void 0x0:fa[_0x410bd1(0x49b)])??!0x1}},'style':_0x419379,'titles':_0x304725,'trendline':_0x201be4,'waterfall':{..._0x38fd81,'useSubtotal':!0x0},'waterfallStyle':_0x37da98,'wordCloud':_0x22d9d9},pa=[_0x2261bb[_0x410bd1(0x1fd)],_0x2261bb[_0x410bd1(0x1fe)],_0x2261bb[_0x410bd1(0x19a)],_0x2261bb[_0x410bd1(0x255)],_0x2261bb[_0x410bd1(0x210)],_0x2261bb[_0x410bd1(0x3a6)],_0x2261bb[_0x410bd1(0x1a6)],_0x2261bb['Heatmap'],_0x2261bb[_0x410bd1(0x3da)],_0x2261bb['Candlestick'],_0x2261bb[_0x410bd1(0x24a)],_0x2261bb[_0x410bd1(0x216)],_0x2261bb[_0x410bd1(0x379)],_0x2261bb[_0x410bd1(0x2dd)],_0x2261bb['Chord']];function ma(_0x2404e9){const _0xe52c8=_0x410bd1;let {config:_0x302262,onChange:_0x210d26,runtime:_0x559c8b,tableName:_0x87459d}=_0x2404e9,_0x26bdfa=_0x20ec70(qr),_0x4a2cda=_0x20ec70(_0x4f7627),[_0xccbddd,_0x45c199]=_0x5e5f09(_0x3b422b[_0xe52c8(0x30b)]),_0x33ab28=_0x10a2b7(()=>new _0x439c8c(_0x559c8b[_0xe52c8(0x37a)],{'commit':_0x45d9d8=>{const _0x4b1093=_0xe52c8;var _0x22dd52;let _0x2d5e19=_0x559c8b[_0x4b1093(0x37a)],_0x4cf74e=_0x59ff45(_0x45d9d8,{'series':(_0x22dd52=_0x2d5e19[_0x4b1093(0x30a)])==null?void 0x0:_0x22dd52[_0x4b1093(0x237)],'currentChartType':_0x2d5e19[_0x4b1093(0x2a8)],'currentStyle':_0x2d5e19[_0x4b1093(0x454)],'currentContext':_0x2d5e19[_0x4b1093(0x497)],'currentDataAggregation':_0x2d5e19['dataAggregation']});_0x210d26({'chart':ha(_0x302262[_0x4b1093(0x195)],_0x4cf74e)});}}),[_0x302262[_0xe52c8(0x195)],_0x210d26,_0x559c8b]),_0x40b02b=_0x10a2b7(()=>_0x2190e6(_0x1b8ffc[_0xe52c8(0x173)](_0xf8b349=>({..._0xf8b349,'label':_0x4a2cda['t'](ya(_0xf8b349[_0xe52c8(0x40d)]))}))),[_0x4a2cda]);return _0x143050(_0x1250c0,{'chartUIService':_0x26bdfa,'hostAdapter':_0x33ab28,'children':_0x391b30(_0xe52c8(0x402),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x143050(_0x55df58,{'ariaLabel':_0x4a2cda['t'](_0xe52c8(0x2d4)),'className':_0xe52c8(0x229),'items':[{'label':_0x4a2cda['t'](_0xe52c8(0x3f5)),'panelId':'base-pivot-chart-setup','value':_0x3b422b[_0xe52c8(0x30b)]},{'label':_0x4a2cda['t'](_0xe52c8(0x337)),'panelId':_0xe52c8(0x35e),'value':_0x3b422b[_0xe52c8(0x4a6)]}],'value':_0xccbddd,'onChange':_0x45c199}),_0xccbddd===_0x3b422b[_0xe52c8(0x30b)]?_0x143050(_0x3a4219,{'id':_0xe52c8(0x408),'label':_0x4a2cda['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x391b30(_0xe52c8(0x402),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x143050(_0x29fd74,{'options':_0x40b02b}),_0x143050(_0x5ce85a,{}),_0x143050(_0x468a30,{}),_0x143050(ga,{}),_0x143050(_0x5d6f36,{}),_0x391b30('div',{'children':[_0x143050(_0x41b08d,{'title':_0x4a2cda['t'](_0xe52c8(0x1e4))}),_0x143050(_0x56be65,{'disabled':!0x0,'value':_0x87459d})]}),_0x143050(_0x4e3257,{'orientationControl':_0x143050(_0x11a8c2,{'size':_0xe52c8(0x323),'onClick':()=>_0x210d26({'chart':{..._0x302262[_0xe52c8(0x195)],'orient':_0x302262[_0xe52c8(0x195)][_0xe52c8(0x32c)]===_0xe52c8(0x3e4)?_0xe52c8(0x1e8):_0xe52c8(0x3e4)}}),'children':_0x4a2cda['t'](_0xe52c8(0x43a))})}),_0x143050(_0x1d97dc,{}),_0x143050(_0x3ae098,{'defaultValues':Q['waterfall']}),_0x391b30(_0xe52c8(0x402),{'children':[_0x143050(_0x41b08d,{'title':_0x4a2cda['t'](_0xe52c8(0x441))}),_0x143050(_0x3f5ec5,{'value':_0x302262[_0xe52c8(0x201)],'options':[{'value':_0xe52c8(0x23e),'label':_0x4a2cda['t'](_0xe52c8(0x254))},{'value':_0xe52c8(0x195),'label':_0x4a2cda['t'](_0xe52c8(0x365))},{'value':_0xe52c8(0x26a),'label':_0x4a2cda['t'](_0xe52c8(0x3f9))}],'onChange':_0x2921fc=>{const _0x178b13=_0xe52c8;(_0x2921fc==='chart-and-table'||_0x2921fc==='chart'||_0x2921fc===_0x178b13(0x26a))&&_0x210d26({'displayMode':_0x2921fc});}})]})]})}):_0x143050(_0x3a4219,{'id':_0xe52c8(0x35e),'label':_0x4a2cda['t'](_0xe52c8(0x337)),'children':_0x143050(_a,{})})]})});}function ha(_0x3dda88,_0x1b1fe6){const _0x493166=_0x410bd1;return{..._0x3dda88,'type':_0x1b1fe6[_0x493166(0x2a8)]??_0x3dda88['type'],'style':_0x1b1fe6[_0x493166(0x454)]??_0x3dda88[_0x493166(0x454)],'context':_0x1b1fe6[_0x493166(0x497)]??_0x3dda88['context'],'dataAggregation':_0x1b1fe6[_0x493166(0x225)]??_0x3dda88[_0x493166(0x225)]};}function ga(){const _0x5e0a22=_0x410bd1;let _0x1db26e=_0x499edc();return _0x143050(_0x2f928b,{'visible':pa[_0x5e0a22(0x453)](_0x1adc2b=>!_0xbb03e5[_0x5e0a22(0x16f)](_0x1db26e,_0x1adc2b))});}function $(_0x5055bf){const _0x12f93c=_0x410bd1;return _0x391b30(_0x2844d6,{'id':_0x5055bf['id'],'children':[_0x143050(_0x375efc,{'children':_0x5055bf[_0x12f93c(0x19d)]}),_0x143050(_0x46900a,{'children':_0x5055bf[_0x12f93c(0x1d2)]})]});}function _a(){const _0x3bdca8=_0x410bd1;let _0x5ab39c=_0x20ec70(_0x4f7627),_0xcd7125=_0x499edc(),_0x477bdd=_0x313117(),[_0x209d1e,_0x21af2f]=_0x5e5f09(null),_0x280e6a=_0xbb03e5[_0x3bdca8(0x16f)](_0xcd7125,_0x2261bb[_0x3bdca8(0x324)]),_0x425c87=_0xcd7125===_0x2261bb[_0x3bdca8(0x1fe)],_0x132074=_0xcd7125===_0x2261bb[_0x3bdca8(0x19a)],_0x2e3c96=_0xcd7125===_0x2261bb[_0x3bdca8(0x210)],_0x46ec10=_0xbb03e5[_0x3bdca8(0x16f)](_0xcd7125,_0x2261bb['Bubble']),_0x33da35=_0xcd7125===_0x2261bb['Relation'],_0x382ad0=_0xcd7125===_0x2261bb[_0x3bdca8(0x271)],_0x291026=_0xcd7125===_0x2261bb['Pareto'],_0x4e2424=_0xcd7125===_0x2261bb[_0x3bdca8(0x1c3)],_0x18df65=_0xbab818(_0xcd7125,_0x2b72e7['GeneralSeries'])&&!_0x46ec10&&!_0x291026,_0x10a633=va(_0xcd7125,_0x5ab39c);return _0x391b30(_0x177a4c,{'value':_0x209d1e,'onChange':_0x21af2f,'children':[_0x143050($,{'id':_0x27e494[_0x3bdca8(0x230)],'label':_0x5ab39c['t'](_0x3bdca8(0x1eb)),'children':_0x143050(_0x5d8e64,{'defaultValues':Q[_0x3bdca8(0x454)]})}),_0x143050($,{'id':_0x27e494[_0x3bdca8(0x45e)],'label':_0x5ab39c['t']('bases-dashboard-ui.chart.common.chartAndAxisTitles'),'children':_0x143050(_0x364a1b,{'commitMode':_0x3bdca8(0x2ef),'defaultValues':Q[_0x3bdca8(0x3db)]})}),_0x143050(_0x533b6c,{'section':_0x3bdca8(0x222)}),_0x18df65&&_0x143050($,{'id':_0x27e494[_0x3bdca8(0x493)],'label':_0x5ab39c['t']('bases-dashboard-ui.chart.common.series'),'children':_0x143050(_0xaadc8a,{'defaultValues':Q['series'],'NumberFormatField':_0x56a20f})}),_0x382ad0&&_0x143050($,{'id':_0x27e494['WaterfallSeries'],'label':_0x5ab39c['t'](_0x3bdca8(0x465)),'children':_0x143050(_0x40b896,{'defaultValues':Q[_0x3bdca8(0x478)],'getDefaultBucketName':({seriesName:_0x3a4390,target:_0x867f18})=>_0x867f18===_0x1a11c1['Subtotal']?_0x5ab39c['t'](_0x3bdca8(0x318)):_0x3a4390?_0x3a4390+'-('+_0x5ab39c['t'](_0x3bdca8(0x317)+(_0x867f18===_0x1a11c1[_0x3bdca8(0x22d)]?_0x3bdca8(0x2d0):_0x3bdca8(0x2c9)))+')':'','NumberFormatField':_0x56a20f})}),_0x291026&&_0x391b30(_0x13d76c,{'children':[_0x143050($,{'id':_0x27e494[_0x3bdca8(0x3ca)],'label':_0x5ab39c['t'](_0x3bdca8(0x495)),'children':_0x143050(_0x4de7d9,{'defaultValues':Q[_0x3bdca8(0x47e)],'NumberFormatField':_0x56a20f,'showDataPointEditor':!0x0,'target':_0x3bdca8(0x239)})}),_0x143050($,{'id':_0x27e494[_0x3bdca8(0x2b5)],'label':_0x5ab39c['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':_0x143050(_0x4de7d9,{'defaultValues':Q[_0x3bdca8(0x47e)],'NumberFormatField':_0x56a20f,'showDataPointEditor':!0x1,'target':_0x3bdca8(0x1a2)})})]}),_0x280e6a&&_0x143050($,{'id':_0x27e494[_0x3bdca8(0x1d9)],'label':_0x5ab39c['t'](_0x3bdca8(0x44c)),'children':_0x143050(_0x4626d9,{'defaultValues':Q['pie'],'NumberFormatField':_0x56a20f})}),_0x132074&&_0x143050($,{'id':_0x27e494['WordCloud'],'label':_0x5ab39c['t'](_0x3bdca8(0x39c)),'children':_0x143050(_0x450802,{'defaultValues':Q[_0x3bdca8(0x269)]})}),_0x425c87&&_0x143050($,{'id':_0x27e494[_0x3bdca8(0x1fe)],'label':_0x5ab39c['t'](_0x3bdca8(0x157)),'children':_0x143050(_0x5b6a4d,{'defaultValues':Q['radar']})}),_0x2e3c96&&_0x143050($,{'id':_0x27e494[_0x3bdca8(0x210)],'label':_0x5ab39c['t']('bases-dashboard-ui.chart.section.funnel'),'children':_0x143050(_0x3515bf,{'defaultValues':Q['funnel'],'gapControl':'select'})}),_0x4e2424&&_0x143050($,{'id':_0x27e494[_0x3bdca8(0x1c3)],'label':_0x5ab39c['t']('bases-dashboard-ui.chart.common.heatmap'),'children':_0x143050(_0x26b14a,{'defaultValues':Q['heatmap']})}),_0x33da35&&_0x143050($,{'id':_0x27e494[_0x3bdca8(0x3a6)],'label':_0x5ab39c['t']('bases-dashboard-ui.chart.section.relation'),'children':_0x143050(_0x4bddcd,{'defaultValues':Q[_0x3bdca8(0x2b3)]})}),_0x230f4f(_0xcd7125)&&_0x143050($,{'id':_0x27e494['LineAndArea'],'label':_0x5ab39c['t'](_0xbb03e5[_0x3bdca8(0x16f)](_0xcd7125,_0x2261bb['Area'])?_0x3bdca8(0x351):'bases-dashboard-ui.chart.chartTypes.line'),'children':_0x143050(_0x4ff136,{'defaultValues':Q[_0x3bdca8(0x39d)],'lineStyleControl':_0x3bdca8(0x169)})}),_0xbab818(_0xcd7125,_0x2b72e7[_0x3bdca8(0x2a0)])&&_0x143050($,{'id':_0x27e494[_0x3bdca8(0x2a0)],'label':_0x5ab39c['t'](_0x3bdca8(0x277)),'children':_0x143050(_0x399526,{'defaultValues':Q['legend']})}),_0xbab818(_0xcd7125,_0x2b72e7['Axes'])&&_0x391b30(_0x13d76c,{'children':[_0x143050($,{'id':_0x27e494[_0x3bdca8(0x44a)],'label':_0x5ab39c['t']('bases-dashboard-ui.chart.common.horizontalAxis'),'children':_0x143050(_0x347442,{'axis':'x','defaultValues':Q[_0x3bdca8(0x4af)],'NumberFormatField':_0x56a20f})}),_0x143050($,{'id':_0x27e494[_0x3bdca8(0x333)],'label':_0x5ab39c['t'](_0x3bdca8(0x241)),'children':_0x143050(_0x347442,{'axis':'y','defaultValues':Q[_0x3bdca8(0x4af)],'NumberFormatField':_0x56a20f})}),_0x143050(_0x533b6c,{'section':'depthAxis'}),_0x477bdd&&_0x143050($,{'id':_0x27e494[_0x3bdca8(0x424)],'label':_0x5ab39c['t'](_0x3bdca8(0x43c)),'children':_0x143050(_0x347442,{'axis':_0x3bdca8(0x176),'defaultValues':Q[_0x3bdca8(0x4af)],'NumberFormatField':_0x56a20f})}),_0x143050($,{'id':_0x27e494['GridlinesAndTicks'],'label':_0x5ab39c['t'](_0x3bdca8(0x2aa)),'children':_0x143050(_0x10f178,{'defaultValues':Q[_0x3bdca8(0x4af)]})})]}),_0xbab818(_0xcd7125,_0x2b72e7['IndicatorLine'])&&_0x143050($,{'id':_0x27e494[_0x3bdca8(0x2d6)],'label':_0x5ab39c['t'](_0x3bdca8(0x3b1)),'children':_0x143050(_0x2906d0,{'defaultValues':Q[_0x3bdca8(0x3ff)]})}),_0x351f42(_0xcd7125)&&_0x143050($,{'id':_0x27e494['Trendline'],'label':_0x5ab39c['t'](_0x3bdca8(0x2a4)),'children':_0x143050(_0x3ac9fb,{'defaultValues':Q[_0x3bdca8(0x40f)]})}),_0x10a633&&_0x143050($,{'id':_0x10a633['id'],'label':_0x10a633[_0x3bdca8(0x19d)],'children':_0x143050(_0x3d37b1,{})})]});}function va(_0x10ee79,_0x88c5c7){const _0x5610a9=_0x410bd1;let _0x5e1389={[_0x2261bb[_0x5610a9(0x488)]]:{'id':_0x27e494[_0x5610a9(0x488)],'localeKey':_0x5610a9(0x41b)},[_0x2261bb[_0x5610a9(0x24a)]]:{'id':_0x27e494[_0x5610a9(0x24a)],'localeKey':_0x5610a9(0x2e4)},[_0x2261bb[_0x5610a9(0x216)]]:{'id':_0x27e494[_0x5610a9(0x216)],'localeKey':_0x5610a9(0x20f)},[_0x2261bb[_0x5610a9(0x379)]]:{'id':_0x27e494[_0x5610a9(0x379)],'localeKey':_0x5610a9(0x1f5)},[_0x2261bb[_0x5610a9(0x2dd)]]:{'id':_0x27e494[_0x5610a9(0x2dd)],'localeKey':_0x5610a9(0x3bb)},[_0x2261bb['Chord']]:{'id':_0x27e494[_0x5610a9(0x1fc)],'localeKey':_0x5610a9(0x1af)}}[_0x10ee79];return _0x5e1389?{'id':_0x5e1389['id'],'label':_0x88c5c7['t'](_0x5e1389[_0x5610a9(0x190)])}:null;}function ya(_0x51d0a5){return'bases-dashboard-ui.chart.chartTypes.'+_0x51d0a5;}function ba({onChange:_0x2b1145,onEditData:_0x24fe09,runtime:_0x286c0f,sourceChart:_0x247100,sourceName:_0x259832,widget:_0x2f171d}){const _0x3a5a83=_0x410bd1;let _0x18c5f7=_0x20ec70(qr),_0x4111d7=_0x20ec70(_0x4f7627),[_0x5e2ae4,_0x155949]=_0x5e5f09(_0x3b422b[_0x3a5a83(0x30b)]),_0xa7265f=_0x2f171d[_0x3a5a83(0x195)]??_0x247100,_0x5765c3=_0x10a2b7(()=>new _0x439c8c(_0x286c0f[_0x3a5a83(0x37a)],{'commit':_0x15e5c1=>{const _0x286817=_0x3a5a83;var _0x3e4ada;let _0x3ca334=_0x286c0f['model'],_0x4c994c=_0x59ff45(_0x15e5c1,{'series':(_0x3e4ada=_0x3ca334[_0x286817(0x30a)])==null?void 0x0:_0x3e4ada[_0x286817(0x237)],'currentChartType':_0x3ca334[_0x286817(0x2a8)],'currentStyle':_0x3ca334['style'],'currentContext':_0x3ca334[_0x286817(0x497)],'currentDataAggregation':_0x3ca334[_0x286817(0x225)]});_0x2b1145({..._0x2f171d,'chart':ha(_0xa7265f,_0x4c994c)})[_0x286817(0x28c)](()=>void 0x0);}}),[_0xa7265f,_0x2b1145,_0x286c0f,_0x2f171d]),_0x4de72e=_0x10a2b7(()=>_0x2190e6(_0x1b8ffc[_0x3a5a83(0x173)](_0x1f5d82=>({..._0x1f5d82,'label':_0x4111d7['t'](xa(_0x1f5d82[_0x3a5a83(0x40d)]))}))),[_0x4111d7]);return _0x143050(_0x1250c0,{'chartUIService':_0x18c5f7,'hostAdapter':_0x5765c3,'children':_0x391b30(_0x3a5a83(0x402),{'data-dashboard-chart-inspector':!0x0,'className':_0x3a5a83(0x3ed),'children':[_0x143050(_0x55df58,{'ariaLabel':_0x4111d7['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x3a5a83(0x229),'items':[{'label':_0x4111d7['t']('bases-dashboard-ui.chart.common.setup'),'panelId':'dashboard-chart-setup','value':_0x3b422b['Data']},{'label':_0x4111d7['t'](_0x3a5a83(0x337)),'panelId':_0x3a5a83(0x16b),'value':_0x3b422b[_0x3a5a83(0x4a6)]}],'value':_0x5e2ae4,'onChange':_0x155949}),_0x5e2ae4===_0x3b422b[_0x3a5a83(0x30b)]?_0x143050(_0x3a4219,{'id':_0x3a5a83(0x2ab),'label':_0x4111d7['t'](_0x3a5a83(0x3f5)),'children':_0x391b30('div',{'className':_0x3a5a83(0x3c3),'children':[_0x143050(_0x29fd74,{'options':_0x4de72e}),_0x143050(_0x5ce85a,{}),_0x143050(_0x468a30,{}),_0x143050(ga,{}),_0x143050(_0x5d6f36,{}),_0x391b30('div',{'children':[_0x143050(_0x41b08d,{'title':_0x4111d7['t'](_0x3a5a83(0x49a))}),_0x143050(_0x56be65,{'disabled':!0x0,'value':_0x259832}),_0x143050(_0x11a8c2,{'className':_0x3a5a83(0x228),'onClick':_0x24fe09,'children':_0x4111d7['t'](_0x3a5a83(0x3d4))})]})]})}):_0x143050(_0x3a4219,{'id':_0x3a5a83(0x16b),'label':_0x4111d7['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x143050(_a,{})})]})});}function xa(_0x58c6c2){const _0x9581d4=_0x410bd1;return _0x9581d4(0x1d1)+_0x58c6c2;}const Sa=[_0x410bd1(0x473),_0x410bd1(0x1c4),_0x410bd1(0x366),_0x410bd1(0x1c2),_0x410bd1(0x166),_0x410bd1(0x2b1)];function Ca({base:_0x366d77,onChange:_0x5a18fc,onSelectBackgroundImage:_0x4f8ee1,widget:_0x191347}){const _0x47bdeb=_0x410bd1;var _0x4e2553;let _0x231f35=_0x20ec70(_0x4f7627),_0x5d963e=_0x20ec70(_0x4e623a),_0x38c76c=_0x24cacb(()=>_0x5d963e['currentTheme$'],_0x5d963e[_0x47bdeb(0x188)](),!0x1,[_0x5d963e]),_0x3c6905=_0x24cacb(()=>_0x5d963e[_0x47bdeb(0x343)],_0x5d963e['darkMode'],!0x1,[_0x5d963e]),[_0x32e467,_0x260f01]=_0x5e5f09(_0x47bdeb(0x2a6)),[_0xc30f33,_0x5a6ded]=_0x5e5f09(!0x1),_0x4ddcc8=Cr(_0x191347),_0x23e04c=_0x366d77['getSnapshot']()[_0x47bdeb(0x2ec)][_0x191347['tableId']],_0x5a8a03=_0x23e04c==null?void 0x0:_0x23e04c[_0x47bdeb(0x30e)][_0x47bdeb(0x2da)](_0x20eeda=>_0x23e04c[_0x47bdeb(0x348)][_0x20eeda]),_0x353a38=_0x5a8a03?_0x23e04c==null?void 0x0:_0x23e04c[_0x47bdeb(0x348)][_0x5a8a03]:void 0x0,_0x1fe081=_0x23e04c&&_0x353a38?_0x31f17a(_0x366d77[_0x47bdeb(0x31e)](),_0x23e04c,_0x353a38)[_0x47bdeb(0x173)](_0x479d08=>({..._0x479d08,'current':!0x1})):[],_0x447615=((_0x4e2553=_0x191347[_0x47bdeb(0x3a0)][_0x47bdeb(0x213)])==null?void 0x0:_0x4e2553[_0x47bdeb(0x341)])??'',_0x5472ef=_0x176486=>_0x5a18fc(wr(_0x191347,_0x176486))['catch'](()=>void 0x0),_0x169858=_0x5b4067=>_0x5a18fc({..._0x191347,'description':_0x5b4067})['catch'](()=>void 0x0);return _0x391b30('div',{'data-dashboard-formula-inspector':!0x0,'className':_0x47bdeb(0x3ed),'children':[_0x143050(_0x5c4858,{'className':_0x47bdeb(0x306),'items':[{'value':'data','label':_0x231f35['t'](_0x47bdeb(0x20d))},{'value':_0x47bdeb(0x454),'label':_0x231f35['t'](_0x47bdeb(0x426))}],'value':_0x32e467,'onChange':_0x260f01}),_0x143050('div',{'className':_0x47bdeb(0x23c),'children':_0x32e467===_0x47bdeb(0x2a6)?_0x391b30(_0x47bdeb(0x402),{'className':_0x47bdeb(0x3dc),'children':[_0x143050(wa,{'label':_0x231f35['t'](_0x47bdeb(0x297)),'children':_0x143050(_0x56be65,{'value':_0x191347[_0x47bdeb(0x240)]??_0x191347[_0x47bdeb(0x1c8)]??'','onChange':_0x169858,'onBlur':_0x28ee9f=>_0x169858(_0x28ee9f[_0x47bdeb(0x2f1)]['value'])})}),_0x143050(wa,{'label':_0x231f35['t'](_0x47bdeb(0x49a)),'children':_0x143050(_0x56be65,{'disabled':!0x0,'value':(_0x23e04c==null?void 0x0:_0x23e04c[_0x47bdeb(0x1f6)])??_0x231f35['t'](_0x47bdeb(0x1f0))})}),_0x391b30(wa,{'label':_0x231f35['t'](_0x47bdeb(0x48b)),'children':[_0x143050(_0x56be65,{'disabled':!0x0,'value':_0x5451bf(_0x447615,_0x1fe081)}),_0x143050(_0x11a8c2,{'className':_0x47bdeb(0x228),'onClick':()=>_0x5a6ded(!0x0),'children':_0x231f35['t'](_0x47bdeb(0x3e5))})]})]}):_0x391b30(_0x47bdeb(0x402),{'className':_0x47bdeb(0x3dc),'children':[_0x143050(_0x535011,{'emptyLabel':_0x231f35['t'](_0x47bdeb(0x25a)),'label':_0x231f35['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x3c6905?_0x38c76c['gray'][0x384]:_0x38c76c[_0x47bdeb(0x20c)][0x0],'resetLabel':_0x231f35['t'](_0x47bdeb(0x17d)),'value':_0x4ddcc8[_0x47bdeb(0x32a)]??null,'onChange':_0x3ac108=>_0x5472ef({'backgroundColor':_0x3ac108??void 0x0})}),_0x391b30(wa,{'label':_0x231f35['t'](_0x47bdeb(0x2c5)),'children':[_0x391b30(_0x47bdeb(0x402),{'className':'univer-flex\x20univer-gap-2','children':[_0x391b30(_0x11a8c2,{'className':_0x47bdeb(0x27e),'onClick':()=>{const _0x2021d1=_0x47bdeb;_0x4f8ee1()[_0x2021d1(0x3c4)](_0x9ad12=>{const _0x1bb4db=_0x2021d1;if(_0x9ad12){var _0x8ed820;return _0x5472ef({'backgroundImage':{..._0x9ad12,'fit':((_0x8ed820=_0x4ddcc8['backgroundImage'])==null?void 0x0:_0x8ed820[_0x1bb4db(0x451)])??_0x1bb4db(0x409)}});}})[_0x2021d1(0x28c)](()=>void 0x0);},'children':[_0x143050(_0x82e3c7,{}),_0x4ddcc8[_0x47bdeb(0x2f8)]?_0x231f35['t'](_0x47bdeb(0x3e6)):_0x231f35['t'](_0x47bdeb(0x1bc))]}),_0x4ddcc8[_0x47bdeb(0x2f8)]&&_0x143050(_0x11a8c2,{'aria-label':_0x231f35['t'](_0x47bdeb(0x191)),'title':_0x231f35['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'onClick':()=>_0x5472ef({'backgroundImage':void 0x0}),'children':_0x143050(_0x500a22,{})})]}),_0x4ddcc8['backgroundImage']&&_0x143050(_0x5c4858,{'className':_0x47bdeb(0x398),'items':[{'value':_0x47bdeb(0x409),'label':_0x231f35['t'](_0x47bdeb(0x336))},{'value':'contain','label':_0x231f35['t']('bases-dashboard-ui.dashboardInspector.contain')}],'value':_0x4ddcc8['backgroundImage'][_0x47bdeb(0x451)],'onChange':_0x17cee4=>_0x5472ef({'backgroundImage':_0x4ddcc8[_0x47bdeb(0x2f8)]?{..._0x4ddcc8[_0x47bdeb(0x2f8)],'fit':_0x17cee4}:void 0x0})})]}),_0x143050(_0x535011,{'emptyLabel':_0x231f35['t'](_0x47bdeb(0x437)),'label':_0x231f35['t'](_0x47bdeb(0x437)),'pickerFallbackValue':_0x3c6905?_0x38c76c[_0x47bdeb(0x20c)][0x32]:_0x38c76c[_0x47bdeb(0x20c)][0x3e8],'resetLabel':_0x231f35['t'](_0x47bdeb(0x17d)),'value':_0x4ddcc8[_0x47bdeb(0x2b0)]??null,'onChange':_0x207727=>_0x5472ef({'textColor':_0x207727??void 0x0})}),_0x143050(wa,{'label':_0x231f35['t'](_0x47bdeb(0x42d)),'children':_0x143050(_0x5c4858,{'items':[{'value':_0x47bdeb(0x189),'label':_0x231f35['t'](_0x47bdeb(0x4ad))},{'value':_0x47bdeb(0x1d3),'label':_0x231f35['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0x47bdeb(0x483),'label':_0x231f35['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x4ddcc8[_0x47bdeb(0x1c7)],'onChange':_0x1d3c14=>_0x5472ef({'alignment':_0x1d3c14})})}),_0x391b30(wa,{'label':_0x231f35['t'](_0x47bdeb(0x207)),'children':[_0x143050(_0x5c4858,{'items':[{'value':'auto','label':_0x231f35['t'](_0x47bdeb(0x28b))},{'value':_0x47bdeb(0x234),'label':_0x231f35['t'](_0x47bdeb(0x384))}],'value':_0x4ddcc8[_0x47bdeb(0x1de)],'onChange':_0x479934=>_0x5472ef({'fontSizeMode':_0x479934})}),_0x4ddcc8[_0x47bdeb(0x1de)]===_0x47bdeb(0x234)&&_0x143050(_0x137e64,{'className':_0x47bdeb(0x398),'min':0xc,'max':0x78,'value':_0x4ddcc8[_0x47bdeb(0x39b)],'onChange':_0x20d3ca=>_0x5472ef({'fontSize':_0x20d3ca??0x28,'fontSizeMode':_0x47bdeb(0x234)})})]}),_0x143050(wa,{'label':_0x231f35['t'](_0x47bdeb(0x20b)),'children':_0x143050(_0x3f5ec5,{'value':_0x4ddcc8['numberFormat'],'options':[{'value':_0x47bdeb(0x473),'label':_0x231f35['t']('bases-dashboard-ui.dashboardInspector.general')},{'value':'number','label':_0x231f35['t'](_0x47bdeb(0x327))},{'value':_0x47bdeb(0x366),'label':_0x231f35['t'](_0x47bdeb(0x314))},{'value':_0x47bdeb(0x1c2),'label':_0x231f35['t']('bases-dashboard-ui.dashboardInspector.currency')},{'value':_0x47bdeb(0x166),'label':_0x231f35['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':_0x47bdeb(0x2b1),'label':_0x231f35['t'](_0x47bdeb(0x284))}],'onChange':_0x3445b5=>{const _0x4d8df0=_0x47bdeb;let _0x1c4580=Sa[_0x4d8df0(0x2da)](_0x148690=>_0x148690===_0x3445b5);_0x1c4580&&_0x5472ef({'numberFormat':_0x1c4580});}})}),_0x4ddcc8[_0x47bdeb(0x34e)]===_0x47bdeb(0x1c2)&&_0x143050(wa,{'label':_0x231f35['t'](_0x47bdeb(0x458)),'children':_0x143050(_0x56be65,{'value':_0x4ddcc8[_0x47bdeb(0x1c2)],'onChange':_0x123fb8=>_0x5472ef({'currency':_0x123fb8[_0x47bdeb(0x268)](0x0,0x3)[_0x47bdeb(0x1ee)]()})})}),_0x4ddcc8[_0x47bdeb(0x34e)]!==_0x47bdeb(0x473)&&_0x143050(wa,{'label':_0x231f35['t']('bases-dashboard-ui.dashboardInspector.decimalPlaces'),'children':_0x143050(_0x137e64,{'min':0x0,'max':0x8,'value':_0x4ddcc8[_0x47bdeb(0x36d)],'onChange':_0x4c1234=>_0x5472ef({'decimalPlaces':_0x4c1234??0x0})})})]})}),_0xc30f33&&_0x143050(_0x2e920d,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x143050(_0x3564dd,{'tables':_0x1fe081,'formula':_0x5451bf(_0x447615,_0x1fe081),'onCancel':()=>_0x5a6ded(!0x1),'onSave':_0x3505b8=>{const _0x44291d=_0x47bdeb;let _0x3addf6=_0x191347[_0x44291d(0x3a0)][_0x44291d(0x213)]??{'formula':''};return _0x5a18fc({..._0x191347,'shapeData':{..._0x191347[_0x44291d(0x3a0)],'formulaBinding':{..._0x3addf6,'formula':_0x57ee91(_0x3505b8,_0x1fe081)}}})[_0x44291d(0x3c4)](()=>_0x5a6ded(!0x1))['catch'](()=>void 0x0);}})})]});}function wa({children:_0xc15b0f,label:_0x460ed1}){const _0x2ef9dc=_0x410bd1;return _0x391b30(_0x2ef9dc(0x402),{'role':_0x2ef9dc(0x3af),'aria-label':_0x460ed1,'className':_0x2ef9dc(0x3be),'children':[_0x143050(_0x2ef9dc(0x378),{'children':_0x460ed1}),_0xc15b0f]});}const Ta={[_0x27f238['IS']]:_0x410bd1(0x282),[_0x27f238['IS_NOT']]:_0x410bd1(0x247),[_0x27f238[_0x410bd1(0x164)]]:'bases-dashboard-ui.operators.contains',[_0x27f238['NOT_CONTAINS']]:_0x410bd1(0x235),[_0x27f238[_0x410bd1(0x39a)]]:_0x410bd1(0x46b),[_0x27f238['IS_NOT_EMPTY']]:'bases-dashboard-ui.operators.isNotEmpty',[_0x27f238[_0x410bd1(0x175)]]:'bases-dashboard-ui.operators.greaterThan',[_0x27f238[_0x410bd1(0x3c8)]]:'bases-dashboard-ui.operators.greaterThanOrEqual',[_0x27f238[_0x410bd1(0x36e)]]:_0x410bd1(0x313),[_0x27f238['LESS_THAN_OR_EQUAL']]:_0x410bd1(0x353),[_0x27f238[_0x410bd1(0x3f6)]]:'bases-dashboard-ui.operators.before',[_0x27f238[_0x410bd1(0x412)]]:'bases-dashboard-ui.operators.after'};function Ea({disabled:_0x3c4851,fields:_0x4b6e5d,filter:_0x8a0372,onChange:_0x4d3e0d}){const _0x4bec01=_0x410bd1;let _0x2d1d08=_0x20ec70(_0x4f7627),_0xefd69f=(_0x8a0372==null?void 0x0:_0x8a0372[_0x4bec01(0x1df)])??[];return _0xefd69f[_0x4bec01(0x38b)]?_0x143050(_0x4bec01(0x402),{'className':_0x4bec01(0x1ec),'children':_0xefd69f[_0x4bec01(0x173)]((_0x145721,_0x1f2362)=>{const _0x54cf0f=_0x4bec01;let _0x107323=_0x4b6e5d[_0x54cf0f(0x2da)](_0x45045b=>_0x45045b['id']===_0x145721[_0x54cf0f(0x1b7)]);return _0x391b30('div',{'className':_0x54cf0f(0x2db),'children':[_0x391b30(_0x54cf0f(0x402),{'className':'univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','children':[_0x143050('span',{'className':_0x54cf0f(0x2c6),'children':(_0x107323==null?void 0x0:_0x107323[_0x54cf0f(0x1f6)])??_0x145721['fieldId']}),_0x143050(_0x54cf0f(0x378),{'className':_0x54cf0f(0x1ca),'children':_0x2d1d08['t'](Ta[_0x145721[_0x54cf0f(0x340)]])})]}),Pa(_0x145721[_0x54cf0f(0x340)])&&_0x143050(Oa,{'disabled':_0x3c4851,'field':_0x107323,'value':_0x145721[_0x54cf0f(0x3e0)],'onChange':_0x358ae2=>_0x4d3e0d(ja(_0x8a0372,_0x1f2362,{'operand':_0x358ae2}))})]},La(_0xefd69f,_0x145721,_0x1f2362));})}):_0x391b30('div',{'className':_0x4bec01(0x435),'children':[_0x143050(_0x90a2b7,{'className':_0x4bec01(0x4ac)}),_0x143050(_0x4bec01(0x378),{'className':_0x4bec01(0x3b2),'children':_0x2d1d08['t'](_0x4bec01(0x397))})]});}function Da({fields:_0x11a5ee,filter:_0x2801fc,onChange:_0x41b985,onClear:_0x1aa358}){const _0x1176fd=_0x410bd1;let _0x38264d=_0x20ec70(_0x4f7627),_0x4a43d4=(_0x2801fc==null?void 0x0:_0x2801fc[_0x1176fd(0x1df)])??[];return _0x391b30('div',{'data-dashboard-filter-inspector':!0x0,'className':_0x1176fd(0x168),'children':[_0x4a43d4[_0x1176fd(0x173)]((_0x4579f4,_0x1dddb6)=>{const _0x4b91cd=_0x1176fd;let _0x37b94d=_0x11a5ee[_0x4b91cd(0x2da)](_0x37dfd7=>_0x37dfd7['id']===_0x4579f4['fieldId'])??_0x11a5ee[0x0],_0x479b38=Ma(_0x37b94d);return _0x391b30(_0x4b91cd(0x407),{'className':_0x4b91cd(0x1aa),'children':[_0x391b30(_0x4b91cd(0x402),{'className':_0x4b91cd(0x303),'children':[_0x143050(_0x3f5ec5,{'value':_0x4579f4['fieldId'],'options':_0x11a5ee['map'](_0x16ff43=>({'value':_0x16ff43['id'],'label':_0x16ff43[_0x4b91cd(0x1f6)]})),'onChange':_0x496a61=>{const _0x18ddea=_0x4b91cd;let _0x44755b=_0x11a5ee[_0x18ddea(0x2da)](_0x5a93cc=>_0x5a93cc['id']===_0x496a61);if(!_0x44755b)return;let _0x5405ff=Ma(_0x44755b)[0x0];_0x41b985(ja(_0x2801fc,_0x1dddb6,Aa(_0x44755b,_0x5405ff)));}}),_0x143050(_0x11a8c2,{'type':_0x4b91cd(0x44d),'variant':_0x4b91cd(0x3f3),'aria-label':_0x38264d['t'](_0x4b91cd(0x3c5)),'className':_0x4b91cd(0x4b2),'onClick':()=>_0x41b985(ka(_0x2801fc,_0x4a43d4[_0x4b91cd(0x267)]((_0xeb6b8e,_0x30bad2)=>_0x30bad2!==_0x1dddb6))),'children':_0x143050(_0x26780d,{})})]}),_0x143050(_0x3f5ec5,{'value':_0x4579f4[_0x4b91cd(0x340)],'options':_0x479b38[_0x4b91cd(0x173)](_0x1cf233=>({'value':_0x1cf233,'label':_0x38264d['t'](Ta[_0x1cf233])})),'onChange':_0x35c6d4=>{let _0xa60f53=_0x479b38['find'](_0x334998=>_0x334998===_0x35c6d4);_0xa60f53&&_0x41b985(ja(_0x2801fc,_0x1dddb6,{'operator':_0xa60f53,'operand':Na(_0x37b94d)}));}}),Pa(_0x4579f4[_0x4b91cd(0x340)])&&_0x143050(Oa,{'field':_0x37b94d,'value':_0x4579f4[_0x4b91cd(0x3e0)],'onChange':_0x54686e=>_0x41b985(ja(_0x2801fc,_0x1dddb6,{'operand':_0x54686e}))})]},La(_0x4a43d4,_0x4579f4,_0x1dddb6));}),_0x391b30(_0x11a8c2,{'type':'button','variant':_0x1176fd(0x3f3),'className':_0x1176fd(0x468),'disabled':!_0x11a5ee[_0x1176fd(0x38b)],'onClick':()=>{let _0x3f6173=_0x11a5ee[0x0];if(!_0x3f6173)return;let _0x185b72=Ma(_0x3f6173)[0x0];_0x41b985(ka(_0x2801fc,[..._0x4a43d4,Aa(_0x3f6173,_0x185b72)]));},'children':[_0x143050(_0x82e3c7,{}),_0x38264d['t']('bases-dashboard-ui.dashboardInspector.newCondition')]}),_0x4a43d4['length']>0x0&&_0x143050(_0x11a8c2,{'type':'button','variant':'text','className':'univer-w-full','onClick':_0x1aa358,'children':_0x38264d['t'](_0x1176fd(0x3d0))})]});}function Oa({disabled:_0x3935a1,field:_0x1165a3,onChange:_0x361961,value:_0x1b2f4d}){const _0x2aa274=_0x410bd1;let _0x3595b1=_0x20ec70(_0x4f7627),[_0x4472de,_0x2bb850]=_0x5e5f09({'value':_0x1b2f4d,'text':String(_0x1b2f4d??'')});Object['is'](_0x4472de['value'],_0x1b2f4d)||_0x2bb850({'value':_0x1b2f4d,'text':String(_0x1b2f4d??'')});let _0x5f4a13=_0x4472de['text'],_0x58c1bb=_0x409702=>_0x2bb850({'value':_0x1b2f4d,'text':_0x409702}),_0x5da054=_0x1165a3==null?void 0x0:_0x1165a3[_0x2aa274(0x38c)];if(_0x5da054===_0xac378e['Checkbox']){let _0x2f0ca0=_0x1b2f4d===!0x0||_0x1b2f4d==='true';return _0x391b30(_0x11a8c2,{'type':_0x2aa274(0x44d),'variant':'default','disabled':_0x3935a1,'className':_0x2aa274(0x2e1),'onClick':()=>_0x361961(!_0x2f0ca0),'children':[_0x143050(_0x10db4e,{'checked':_0x2f0ca0,'disabled':_0x3935a1,'onChange':()=>void 0x0}),_0x2f0ca0?_0x3595b1['t'](_0x2aa274(0x243)):_0x3595b1['t']('bases-dashboard-ui.dashboardInspector.unchecked')]});}return Ra(_0x5da054)?_0x3935a1?_0x143050(_0x11a8c2,{'type':'button','variant':_0x2aa274(0x47a),'className':_0x2aa274(0x160),'disabled':!0x0,'children':_0x5e4ae7(_0x1b2f4d==null||_0x1b2f4d===''?void 0x0:String(_0x1b2f4d))[_0x2aa274(0x1d7)](_0x2aa274(0x1dd))}):_0x143050(_0x2d128f,{'className':'univer-w-full','value':_0x5e4ae7(_0x1b2f4d==null||_0x1b2f4d===''?void 0x0:String(_0x1b2f4d))['toDate'](),'onValueChange':_0x1a5d27=>_0x361961(_0x5e4ae7(_0x1a5d27)['format'](_0x2aa274(0x1dd)))}):Ba(_0x1165a3)?_0x143050(_0x3fad30,{'className':_0x2aa274(0x160),'disabled':_0x3935a1,'value':Array[_0x2aa274(0x1b8)](_0x1b2f4d)?_0x1b2f4d[_0x2aa274(0x173)](String):[],'options':Fa(_0x1165a3),'onChange':_0x361961}):_0x5da054===_0xac378e[_0x2aa274(0x2eb)]||_0x5da054===_0xac378e[_0x2aa274(0x2cc)]||_0x5da054===_0xac378e['Person']?_0x143050(_0x3f5ec5,{'className':'univer-w-full','disabled':_0x3935a1,'value':String(_0x1b2f4d??''),'options':[{'value':'','label':_0x3595b1['t'](_0x2aa274(0x450))},...Fa(_0x1165a3)],'onChange':_0x361961}):za(_0x5da054)?_0x143050(_0x56be65,{'className':'univer-w-full','disabled':_0x3935a1,'inputMode':_0x2aa274(0x2e2),'value':_0x5f4a13,'aria-invalid':_0x5f4a13!==''&&!Number[_0x2aa274(0x4a5)](Number(_0x5f4a13)),'onChange':_0x46c646=>{_0x58c1bb(_0x46c646),_0x46c646===''?_0x361961(''):Number['isFinite'](Number(_0x46c646))&&_0x361961(Number(_0x46c646));},'onBlur':()=>_0x58c1bb(String(_0x1b2f4d??''))}):_0x143050(_0x56be65,{'disabled':_0x3935a1,'value':String(_0x1b2f4d??''),'placeholder':_0x3595b1['t'](_0x2aa274(0x22e)),'onChange':_0x361961});}function ka(_0x1d3aeb,_0x240b52){const _0x26a210=_0x410bd1;return{'conjunction':(_0x1d3aeb==null?void 0x0:_0x1d3aeb[_0x26a210(0x45a)])??_0x3c7c2d[_0x26a210(0x3d7)],'conditions':_0x240b52};}function Aa(_0x4907e6,_0xfac75d){return Pa(_0xfac75d)?{'fieldId':_0x4907e6['id'],'operator':_0xfac75d,'operand':Na(_0x4907e6)}:{'fieldId':_0x4907e6['id'],'operator':_0xfac75d};}function ja(_0x302ec8,_0xd36888,_0x5d64de){const _0x458362=_0x410bd1;return ka(_0x302ec8,((_0x302ec8==null?void 0x0:_0x302ec8[_0x458362(0x1df)])??[])['map']((_0x44d1d,_0x54b69d)=>_0x54b69d===_0xd36888?{..._0x44d1d,..._0x5d64de}:_0x44d1d));}function Ma(_0x1d24c6){const _0x398bd4=_0x410bd1;let _0x369e4f=[_0x27f238[_0x398bd4(0x39a)],_0x27f238[_0x398bd4(0x32e)]];switch(_0x1d24c6==null?void 0x0:_0x1d24c6[_0x398bd4(0x38c)]){case _0xac378e[_0x398bd4(0x28a)]:case _0xac378e['Currency']:case _0xac378e['Progress']:case _0xac378e[_0x398bd4(0x2de)]:return[_0x27f238['IS'],_0x27f238[_0x398bd4(0x436)],_0x27f238[_0x398bd4(0x175)],_0x27f238[_0x398bd4(0x36e)],..._0x369e4f];case _0xac378e[_0x398bd4(0x49e)]:case _0xac378e[_0x398bd4(0x2a2)]:case _0xac378e['UpdatedAt']:return[_0x27f238['IS'],_0x27f238[_0x398bd4(0x436)],_0x27f238[_0x398bd4(0x3f6)],_0x27f238[_0x398bd4(0x412)],..._0x369e4f];case _0xac378e[_0x398bd4(0x2e7)]:return[_0x27f238['IS'],_0x27f238[_0x398bd4(0x436)]];default:return[_0x27f238['IS'],_0x27f238[_0x398bd4(0x436)],_0x27f238[_0x398bd4(0x164)],_0x27f238[_0x398bd4(0x29d)],..._0x369e4f];}}function Na(_0x5e2a5c){const _0x137783=_0x410bd1;return _0x5e2a5c?_0x5e2a5c[_0x137783(0x38c)]===_0xac378e[_0x137783(0x2e7)]?!0x1:Ra(_0x5e2a5c[_0x137783(0x38c)])?_0x5e4ae7()[_0x137783(0x1d7)](_0x137783(0x1dd)):Ba(_0x5e2a5c)?[]:'':'';}function Pa(_0x103d8b){const _0x2c9109=_0x410bd1;return _0x103d8b!==_0x27f238[_0x2c9109(0x39a)]&&_0x103d8b!==_0x27f238[_0x2c9109(0x32e)];}function Fa(_0x3b388c){const _0x32d6de=_0x410bd1;var _0x475dcc;return(Array['isArray'](_0x3b388c==null||(_0x475dcc=_0x3b388c['config'])==null?void 0x0:_0x475dcc[_0x32d6de(0x22a)])?_0x3b388c[_0x32d6de(0x30a)]['options']:[])['map']((_0x201ec1,_0x1c49b9)=>{const _0x401806=_0x32d6de;if(typeof _0x201ec1==_0x401806(0x274))return{'label':_0x201ec1,'value':_0x201ec1};if(!Ia(_0x201ec1))return{'label':String(_0x1c49b9+0x1),'value':String(_0x1c49b9+0x1)};let _0x257da0=_0x201ec1,_0x5d1a9c=String(_0x257da0[_0x401806(0x1f6)]??_0x257da0['id']??_0x1c49b9+0x1),_0x155ab1=String(_0x257da0['id']??_0x5d1a9c);return{'label':_0x5d1a9c,'value':/^opt-\d+$/[_0x401806(0x272)](_0x155ab1)?_0x5d1a9c:_0x155ab1};});}function Ia(_0x91d7d0){const _0x246715=_0x410bd1;return typeof _0x91d7d0==_0x246715(0x16a)&&!!_0x91d7d0;}function La(_0x224a34,_0x43cfbe,_0x5481eb){const _0x342f00=_0x410bd1;let _0xe2b6f7=JSON[_0x342f00(0x21b)](_0x43cfbe);return _0xe2b6f7+'-'+_0x224a34[_0x342f00(0x268)](0x0,_0x5481eb)[_0x342f00(0x267)](_0x439ae0=>JSON[_0x342f00(0x21b)](_0x439ae0)===_0xe2b6f7)[_0x342f00(0x38b)];}function Ra(_0x274444){const _0x587a63=_0x410bd1;return _0x274444===_0xac378e[_0x587a63(0x49e)]||_0x274444===_0xac378e['CreatedAt']||_0x274444===_0xac378e['UpdatedAt'];}function za(_0xdda19a){const _0x130f87=_0x410bd1;return _0xdda19a===_0xac378e['Number']||_0xdda19a===_0xac378e[_0x130f87(0x3cd)]||_0xdda19a===_0xac378e[_0x130f87(0x354)]||_0xdda19a===_0xac378e[_0x130f87(0x2de)];}function Ba(_0x46975f){const _0x15b8e5=_0x410bd1;var _0x55dd28;return(_0x46975f==null?void 0x0:_0x46975f[_0x15b8e5(0x38c)])===_0xac378e['MultiSelect']||(_0x46975f==null?void 0x0:_0x46975f[_0x15b8e5(0x38c)])===_0xac378e[_0x15b8e5(0x2cc)]||(_0x46975f==null?void 0x0:_0x46975f[_0x15b8e5(0x38c)])===_0xac378e[_0x15b8e5(0x16d)]&&((_0x55dd28=_0x46975f[_0x15b8e5(0x30a)])==null?void 0x0:_0x55dd28['allowMultiple'])===!0x0;}function Va({base:_0x2773cc,chartRuntime:_0x26095c,onChange:_0x2ff9b2,onClose:_0x270aa9,onSelectBackgroundImage:_0x699695,onSelectImage:_0x209bc7,unitId:_0x5e3037,widget:_0x4ffe5e}){const _0x13bde7=_0x410bd1;let _0x171c85=_0x20ec70(_0x668d8f),_0x32b7f6=_0x20ec70(_0x4f7627),_0xf15725=_0x2773cc['getSnapshot'](),_0x4e9c6d=_0x13bde7(0x266)in _0x4ffe5e?_0xf15725[_0x13bde7(0x2ec)][_0x4ffe5e[_0x13bde7(0x266)]]:void 0x0,_0xa09921=_0x4ffe5e[_0x13bde7(0x38c)]===_0x4e7fff[_0x13bde7(0x49f)]?_0x4e9c6d==null?void 0x0:_0x4e9c6d['views'][_0x4ffe5e[_0x13bde7(0x326)]]:void 0x0,_0x28ae0f=_0x32b7f6['t'](Ja(_0x4ffe5e));return _0x391b30(_0x13bde7(0x208),{'data-dashboard-inspector':!0x0,'className':_0x13bde7(0x232),'children':[_0x391b30(_0x13bde7(0x3cb),{'className':_0x13bde7(0x3d3),'children':[_0x143050('h3',{'className':_0x13bde7(0x46d),'children':_0x28ae0f}),_0x143050(_0x11a8c2,{'type':_0x13bde7(0x44d),'size':'small','variant':'text','aria-label':_0x32b7f6['t'](_0x13bde7(0x2ff)),'onClick':_0x270aa9,'children':_0x143050(_0x26780d,{})})]}),_0x4ffe5e[_0x13bde7(0x38c)]===_0x4e7fff[_0x13bde7(0x49f)]&&(qa(_0xa09921)&&_0x26095c?_0x143050(ba,{'runtime':_0x26095c,'sourceChart':_0xa09921[_0x13bde7(0x30a)]['chart'],'sourceName':((_0x4e9c6d==null?void 0x0:_0x4e9c6d[_0x13bde7(0x1f6)])??'')+_0x13bde7(0x1d4)+_0xa09921[_0x13bde7(0x1f6)],'widget':_0x4ffe5e,'onChange':_0x2ff9b2,'onEditData':()=>{const _0x2785ce=_0x13bde7;_0x171c85['executeCommand'](_0x2fe630['id'],{'unitId':_0x5e3037,'tableId':_0x4ffe5e['tableId'],'viewId':_0x4ffe5e[_0x2785ce(0x326)]})[_0x2785ce(0x28c)](()=>void 0x0);}}):_0x143050(Ga,{'message':qa(_0xa09921)?_0x32b7f6['t'](_0x13bde7(0x2fb)):_0x32b7f6['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})),_0x4ffe5e['type']===_0x4e7fff[_0x13bde7(0x2b8)]&&_0x143050(Ca,{'base':_0x2773cc,'widget':_0x4ffe5e,'onChange':_0x2ff9b2,'onSelectBackgroundImage':_0x699695}),_0x4ffe5e[_0x13bde7(0x38c)]===_0x4e7fff[_0x13bde7(0x193)]&&_0x143050(Ua,{'base':_0x2773cc,'onChange':_0x2ff9b2,'widget':_0x4ffe5e}),_0x4ffe5e[_0x13bde7(0x38c)]===_0x4e7fff[_0x13bde7(0x4b4)]&&_0x143050(Wa,{'onChange':_0x2ff9b2,'widget':_0x4ffe5e}),_0x4ffe5e['type']===_0x4e7fff[_0x13bde7(0x419)]&&_0x143050(Ha,{'onChange':_0x2ff9b2,'onSelectImage':_0x209bc7,'widget':_0x4ffe5e})]});}function Ha({onChange:_0x11c27b,onSelectImage:_0x2a449c,widget:_0x3c2a0a}){const _0x129dcd=_0x410bd1;let _0x5cda23=_0x20ec70(_0x4f7627);return _0x391b30(_0x129dcd(0x402),{'className':_0x129dcd(0x3e8),'children':[_0x391b30(_0x11a8c2,{'className':_0x129dcd(0x160),'onClick':()=>_0x2a449c()[_0x129dcd(0x3c4)](_0xea7f5c=>_0xea7f5c&&_0x11c27b({..._0x3c2a0a,'source':_0xea7f5c['source'],'sourceType':_0xea7f5c[_0x129dcd(0x253)],'alt':_0xea7f5c['name']}))[_0x129dcd(0x28c)](()=>void 0x0),'children':[_0x143050(_0x82e3c7,{}),_0x5cda23['t']('bases-dashboard-ui.dashboardInspector.replaceImage')]}),_0x391b30(_0x129dcd(0x19d),{'className':_0x129dcd(0x3be),'children':[_0x143050(_0x129dcd(0x378),{'children':_0x5cda23['t'](_0x129dcd(0x2c5))}),_0x143050(_0x5c4858,{'items':[{'value':_0x129dcd(0x409),'label':_0x5cda23['t'](_0x129dcd(0x336))},{'value':_0x129dcd(0x30c),'label':_0x5cda23['t'](_0x129dcd(0x308))},{'value':'original','label':_0x5cda23['t'](_0x129dcd(0x22b))}],'value':_0x3c2a0a[_0x129dcd(0x201)]??_0x129dcd(0x409),'onChange':_0x5aceac=>_0x11c27b({..._0x3c2a0a,'displayMode':_0x5aceac})[_0x129dcd(0x28c)](()=>void 0x0)})]})]});}function Ua({base:_0x4a912c,onChange:_0x1a262f,widget:_0x39ae9b}){const _0x2cd8c7=_0x410bd1;let _0x1e82d2=_0x4a912c[_0x2cd8c7(0x31e)]()[_0x2cd8c7(0x2ec)][_0x39ae9b[_0x2cd8c7(0x266)]],_0xd785d3=_0x1e82d2==null?void 0x0:_0x1e82d2[_0x2cd8c7(0x30e)][_0x2cd8c7(0x2da)](_0x2de850=>_0x1e82d2[_0x2cd8c7(0x348)][_0x2de850]),_0x441e63=_0xd785d3?_0x1e82d2==null?void 0x0:_0x1e82d2[_0x2cd8c7(0x348)][_0xd785d3]:void 0x0,_0x41d735=_0x1e82d2&&_0x441e63?_0x4eb67b(_0x1e82d2,_0x441e63):[];return _0x143050(Da,{'fields':_0x41d735,'filter':_0x39ae9b[_0x2cd8c7(0x267)],'onChange':_0xae912a=>_0x1a262f({..._0x39ae9b,'filter':_0xae912a})[_0x2cd8c7(0x28c)](()=>void 0x0),'onClear':()=>_0x1a262f({..._0x39ae9b,'filter':null})[_0x2cd8c7(0x28c)](()=>void 0x0)});}function Wa({onChange:_0x53eae8,widget:_0x27f5a8}){const _0x14659a=_0x410bd1;let _0x2b2f4f=_0x20ec70(_0x4f7627),_0x562a28=_0x20ec70(_0x4e623a),_0x57d24b=_0x24cacb(()=>_0x562a28[_0x14659a(0x1be)],_0x562a28[_0x14659a(0x188)](),!0x1,[_0x562a28]),_0xfdba8f=Hr(_0x27f5a8),_0x405911=_0x5436f7=>_0x53eae8({..._0x27f5a8,'appearance':{..._0xfdba8f,..._0x5436f7}})[_0x14659a(0x28c)](()=>void 0x0);return _0x391b30('div',{'className':_0x14659a(0x2f3),'children':[_0x143050(_0x2d4d6c,{'defaultValue':Ur(_0x27f5a8['document']),'rows':0x8,'onBlur':_0x424179=>_0x53eae8({..._0x27f5a8,'document':Wr(_0x27f5a8[_0x14659a(0x40b)],_0x424179[_0x14659a(0x2f1)][_0x14659a(0x46f)])})[_0x14659a(0x28c)](()=>void 0x0)}),_0x143050(_0x535011,{'emptyLabel':_0x2b2f4f['t'](_0x14659a(0x25a)),'label':_0x2b2f4f['t'](_0x14659a(0x25a)),'pickerFallbackValue':_0x57d24b['gray'][0x0],'resetLabel':_0x2b2f4f['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0xfdba8f[_0x14659a(0x32a)]??null,'onChange':_0x617070=>_0x405911({'backgroundColor':_0x617070??void 0x0})}),_0x143050(_0x535011,{'emptyLabel':_0x2b2f4f['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x2b2f4f['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x57d24b[_0x14659a(0x20c)][0x3e8],'resetLabel':_0x2b2f4f['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0xfdba8f[_0x14659a(0x2b0)]??null,'onChange':_0x3f98c7=>_0x405911({'textColor':_0x3f98c7??void 0x0})}),_0x143050(Ka,{'label':_0x2b2f4f['t'](_0x14659a(0x42d)),'children':_0x143050(_0x5c4858,{'items':[{'value':'left','label':_0x2b2f4f['t'](_0x14659a(0x4ad))},{'value':_0x14659a(0x1d3),'label':_0x2b2f4f['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0x14659a(0x483),'label':_0x2b2f4f['t'](_0x14659a(0x3b7))}],'value':_0xfdba8f[_0x14659a(0x1c7)],'onChange':_0x3eb1ea=>_0x405911({'alignment':_0x3eb1ea})})}),_0x391b30(Ka,{'label':_0x2b2f4f['t'](_0x14659a(0x207)),'children':[_0x143050(_0x5c4858,{'items':[{'value':'auto','label':_0x2b2f4f['t'](_0x14659a(0x28b))},{'value':_0x14659a(0x234),'label':_0x2b2f4f['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0xfdba8f[_0x14659a(0x1de)],'onChange':_0x1b6eb1=>_0x405911({'fontSizeMode':_0x1b6eb1})}),_0xfdba8f[_0x14659a(0x1de)]==='custom'&&_0x143050(_0x137e64,{'className':_0x14659a(0x398),'min':0xa,'max':0x78,'value':_0xfdba8f[_0x14659a(0x39b)],'onChange':_0x38e852=>_0x405911({'fontSize':_0x38e852??0x12,'fontSizeMode':'custom'})})]})]});}function Ga({message:_0x2e307d}){return _0x143050('div',{'className':'univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','children':_0x2e307d});}function Ka({children:_0x351032,label:_0x346289}){const _0x2f6e5c=_0x410bd1;return _0x391b30(_0x2f6e5c(0x402),{'role':_0x2f6e5c(0x3af),'aria-':!0x0,'className':_0x2f6e5c(0x3be),'children':[_0x143050('span',{'children':_0x346289}),_0x351032]});}function qa(_0x138f04){const _0x1c2d3a=_0x410bd1;return(_0x138f04==null?void 0x0:_0x138f04[_0x1c2d3a(0x38c)])===_0x37c4bc[_0x1c2d3a(0x3bf)]&&typeof _0x138f04[_0x1c2d3a(0x30a)]=='object'&&_0x138f04[_0x1c2d3a(0x30a)]!==null&&_0x1c2d3a(0x382)in _0x138f04[_0x1c2d3a(0x30a)]&&_0x1c2d3a(0x195)in _0x138f04[_0x1c2d3a(0x30a)];}function Ja(_0x37ebe4){const _0x182be8=_0x410bd1;switch(_0x37ebe4['type']){case _0x4e7fff[_0x182be8(0x49f)]:return'bases-dashboard-ui.dashboard.pivotChart';case _0x4e7fff[_0x182be8(0x193)]:return'bases-dashboard-ui.dashboard.tableFilter';case _0x4e7fff[_0x182be8(0x4b4)]:return'bases-dashboard-ui.dashboard.text';case _0x4e7fff[_0x182be8(0x419)]:return _0x182be8(0x42c);case _0x4e7fff['FormulaShape']:return'bases-dashboard-ui.dashboard.formulaShape';}}function Ya({onDelete:_0x52618c,onEdit:_0x1bc52c}){const _0x2d8ae0=_0x410bd1;let _0xbabd99=_0x20ec70(_0x4f7627),_0x561464=_0xbabd99['t']('bases-dashboard-ui.dashboard.editWidget'),_0x5767b1=_0xbabd99['t'](_0x2d8ae0(0x3b3)),_0x134f4f=_0xbabd99['t'](_0x2d8ae0(0x427));return _0x143050(_0x566dc7,{'items':[{'type':_0x2d8ae0(0x485),'children':_0x391b30(_0x2d8ae0(0x378),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x143050(_0x5711a9,{'className':_0x2d8ae0(0x27a),'aria-hidden':_0x2d8ae0(0x2c4)}),_0x143050(_0x2d8ae0(0x378),{'children':_0x561464})]}),'onSelect':_0x1bc52c},{'type':_0x2d8ae0(0x403)},{'type':_0x2d8ae0(0x485),'variant':_0x2d8ae0(0x373),'children':_0x391b30('span',{'className':_0x2d8ae0(0x203),'children':[_0x143050(_0x500a22,{'className':_0x2d8ae0(0x27a),'aria-hidden':'true'}),_0x143050(_0x2d8ae0(0x378),{'children':_0x5767b1})]}),'onSelect':_0x52618c}],'children':_0x143050(_0x11a8c2,{'type':_0x2d8ae0(0x44d),'size':_0x2d8ae0(0x323),'variant':_0x2d8ae0(0x3f3),'title':_0x134f4f,'aria-label':_0x134f4f,'className':_0x2d8ae0(0x3b5),'children':_0x143050(_0x2fabd1,{'className':'univer-size-4','aria-hidden':_0x2d8ae0(0x2c4)})})});}function Xa({dashboardId:_0x13b1ec,presentation:_0x403efe=!0x1,unitId:_0x467e9f}){const _0x3d2df1=_0x410bd1;let _0x5eeff7=_0x20ec70(_0x668d8f),_0x261c21=_0x20ec70(_0x458fcc),_0x12e3d1=_0x20ec70(_0x1561a2),_0x3f6a87=_0x20ec70(_0x1ce417),_0x395c2d=_0x20ec70(_0x4f7627),_0x2e89dc=_0x20ec70(_0x3a9dda),_0x35a440=_0x20ec70(_0x3de274),_0x452233=_0x127850(null),[_0x1ea3c5,_0x366bd5]=_0x5e5f09(!0x1),[_0x502478,_0x4d3a1f]=_0x5e5f09(),[_0x4f1c1c,_0x143a6c]=_0x5e5f09(!0x1),[_0x5e1113,_0x3ab22a]=_0x5e5f09(()=>new Map()),_0x3a9a17=_0x31eec3((_0x241f42,_0x1155bd)=>{_0x3ab22a(_0x4d4b05=>{const _0x557b8c=_0x10b1;let _0x5c8de3=new Map(_0x4d4b05);return _0x1155bd?_0x5c8de3['set'](_0x241f42,_0x1155bd):_0x5c8de3[_0x557b8c(0x171)](_0x241f42),_0x5c8de3;});},[]),_0xcbdd6=_0x24cacb(()=>_0x2e89dc[_0x3d2df1(0x452)][_0x3d2df1(0x40a)](_0x53720a(()=>_0x2e89dc[_0x3d2df1(0x36f)](_0x467e9f,_0x13b1ec))),_0x2e89dc[_0x3d2df1(0x36f)](_0x467e9f,_0x13b1ec),!0x1,[_0x13b1ec,_0x2e89dc,_0x467e9f]),_0x58a28b=_0x3f6a87[_0x3d2df1(0x211)](_0x467e9f,_0xd3f775[_0x3d2df1(0x420)]),_0x4e0bbc=_0x24cacb(()=>_0x35a440[_0x3d2df1(0x42f)],{'undos':0x0,'redos':0x0},!0x1,[_0x35a440]),_0x140a38=vr(_0x467e9f,_0x13b1ec);if(_0x2fd531(()=>{const _0x451e1e=_0x3d2df1;_0x3f6a87[_0x451e1e(0x3d1)](_0x467e9f),_0x3f6a87['focusUnit'](_0x467e9f);},[_0x3f6a87,_0x467e9f]),_0x2fd531(()=>{const _0x3fb36d=_0x3d2df1;let _0x3de108=_0x452233[_0x3fb36d(0x179)],_0x298e48=_0x3de108==null?void 0x0:_0x3de108[_0x3fb36d(0x22f)];if(!_0x3de108||!_0x298e48)return;let _0x5db658=()=>_0x143a6c(_0x298e48[_0x3fb36d(0x1db)]===_0x298e48['documentElement']),_0x4ab026=_0x1babae=>{const _0x40ad33=_0x3fb36d;_0x1babae['key']==='Escape'&&!_0x1babae['defaultPrevented']&&_0x298e48['fullscreenElement']===_0x298e48[_0x40ad33(0x3d5)]&&_0x298e48[_0x40ad33(0x300)]()['catch'](_0x5db658);};return _0x298e48[_0x3fb36d(0x2fc)](_0x3fb36d(0x358),_0x5db658),_0x298e48[_0x3fb36d(0x2fc)](_0x3fb36d(0x26c),_0x4ab026),()=>{const _0x50941d=_0x3fb36d;_0x298e48[_0x50941d(0x445)](_0x50941d(0x358),_0x5db658),_0x298e48[_0x50941d(0x445)](_0x50941d(0x26c),_0x4ab026);};},[]),!_0xcbdd6||!_0x58a28b)return null;let _0x260f26=_0x1f9bf3=>_0x5eeff7['executeCommand'](_0x59e700['id'],{'unitId':_0x467e9f,'dashboardId':_0x13b1ec,'widget':_0x1f9bf3})[_0x3d2df1(0x28c)](()=>void 0x0),_0x22e86d=(_0x150d12,_0x2c87f2,_0x435014)=>{const _0x351215=_0x3d2df1;let _0x59508e=Math[_0x351215(0x3b6)](0x0,..._0xcbdd6[_0x351215(0x487)][_0x351215(0x1c6)](_0x358ea0=>{const _0x594a35=_0x351215;var _0x44a865;let _0x14236d=(_0x44a865=_0xcbdd6[_0x594a35(0x34d)][_0x358ea0])==null?void 0x0:_0x44a865['layout'];return _0x14236d?[_0x14236d[_0x594a35(0x3e4)]+_0x14236d[_0x594a35(0x1ad)]]:[];})),_0x48317a='dashboard-widget-'+_0x542898(0x8),_0x14f6b4={'column':0x0,'row':_0x59508e,'columnSpan':_0x2c87f2,'rowSpan':_0x435014};switch(_0x150d12[_0x351215(0x38c)]){case _0x4e7fff[_0x351215(0x49f)]:return _0x260f26({..._0x150d12,'id':_0x48317a,'layout':_0x14f6b4});case _0x4e7fff[_0x351215(0x193)]:return _0x260f26({..._0x150d12,'id':_0x48317a,'layout':_0x14f6b4});case _0x4e7fff['Text']:return _0x260f26({..._0x150d12,'id':_0x48317a,'layout':_0x14f6b4});case _0x4e7fff[_0x351215(0x419)]:return _0x260f26({..._0x150d12,'id':_0x48317a,'layout':_0x14f6b4});case _0x4e7fff['FormulaShape']:return _0x260f26({..._0x150d12,'id':_0x48317a,'layout':_0x14f6b4});}},_0x4f6423=_0x58a28b[_0x3d2df1(0x31e)](),_0x49c951=_0x4f6423[_0x3d2df1(0x490)][_0x3d2df1(0x1c6)](_0x501211=>{const _0x97264c=_0x3d2df1;let _0x1f7f73=_0x4f6423[_0x97264c(0x2ec)][_0x501211];if(!_0x1f7f73)return[];let _0x3daa83=_0x1f7f73[_0x97264c(0x30e)]['flatMap'](_0x31ed7c=>{const _0x3beed9=_0x97264c;let _0x2e03ef=_0x1f7f73[_0x3beed9(0x348)][_0x31ed7c];return io(_0x2e03ef)?[{'type':'item','children':_0x2e03ef[_0x3beed9(0x1f6)],'onSelect':()=>_0x22e86d({'type':_0x4e7fff[_0x3beed9(0x49f)],'tableId':_0x501211,'pivotViewId':_0x31ed7c,'chart':{..._0x2e03ef['config'][_0x3beed9(0x195)]}},0x6,0xa)}]:[];});return[{'type':_0x97264c(0x312),'children':_0x1f7f73['name'],'options':[..._0x3daa83,..._0x3daa83[_0x97264c(0x38b)]?[{'type':'separator'}]:[],{'type':'item','children':_0x395c2d['t'](_0x97264c(0x397)),'onSelect':()=>_0x22e86d({'type':_0x4e7fff[_0x97264c(0x193)],'tableId':_0x501211,'filter':null},0x6,0x8)}]}];}),_0x445360=[..._0x49c951,..._0x49c951[_0x3d2df1(0x38b)]?[{'type':'separator'}]:[],{'type':'item','children':_0x395c2d['t']('bases-dashboard-ui.dashboard.text'),'onSelect':()=>_0x22e86d({'type':_0x4e7fff[_0x3d2df1(0x4b4)],'document':eo()},0x4,0x6)},{'type':_0x3d2df1(0x485),'children':_0x395c2d['t'](_0x3d2df1(0x42c)),'onSelect':()=>to(_0x261c21)[_0x3d2df1(0x3c4)](_0x4a4dbb=>_0x4a4dbb&&_0x22e86d({'type':_0x4e7fff['Image'],'source':_0x4a4dbb[_0x3d2df1(0x2d8)],'sourceType':_0x4a4dbb[_0x3d2df1(0x253)],'alt':_0x4a4dbb[_0x3d2df1(0x1f6)],'displayMode':_0x3d2df1(0x409)},0x4,0x6))},{'type':_0x3d2df1(0x485),'children':_0x395c2d['t'](_0x3d2df1(0x17f)),'onSelect':()=>{const _0x3e6734=_0x3d2df1;let _0x53409c=_0x4f6423[_0x3e6734(0x490)][_0x3e6734(0x2da)](_0x2e8bec=>_0x4f6423['tables'][_0x2e8bec]);_0x53409c&&_0x22e86d({'type':_0x4e7fff['FormulaShape'],'tableId':_0x53409c,'shapeType':_0x389913['RoundRect'],'shapeData':_0x365108(),'description':_0x395c2d['t'](_0x3e6734(0x17f))},0x4,0x6);}}],_0x18e481=_0x502478?_0xcbdd6['widgets'][_0x502478]:void 0x0,_0x46f46d=async()=>{const _0x12eba2=_0x3d2df1;let _0x12e660=_0x452233[_0x12eba2(0x179)];if(!_0x12e660)return;let _0xd9c38e=_0x12e660[_0x12eba2(0x22f)];_0xd9c38e[_0x12eba2(0x1db)]===_0xd9c38e['documentElement']?await _0xd9c38e[_0x12eba2(0x300)]():await _0xd9c38e[_0x12eba2(0x3d5)][_0x12eba2(0x258)]();},_0x35cd51=_0x403efe||_0x4f1c1c,_0x1c6afd=_0x140a38&&!_0x35cd51;return _0x391b30(_0x3d2df1(0x402),{'ref':_0x452233,'className':_0x3d2df1(0x4aa)+(_0x4f1c1c?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':_0x3d2df1(0x1b4))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[!_0x35cd51&&_0x391b30('header',{'className':'univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x143050(_0x37386e,{'className':_0x3d2df1(0x356)}),_0x143050('h2',{'className':_0x3d2df1(0x46d),'children':_0xcbdd6['name']}),_0x143050(_0x51ad51,{'target':{'unitId':_0x467e9f,'objectId':_0x264ef9(_0x13b1ec),'objectType':_0x2dc28e[_0x3d2df1(0x260)]},'name':_0xcbdd6['name'],'commandId':_0x523fb1['id'],'exists':()=>!!_0x2e89dc['getDashboard'](_0x467e9f,_0x13b1ec)},_0x467e9f+'/'+_0x13b1ec),_0x143050(_0x335c60,{'unitId':_0x467e9f}),_0x143050(_0x11a8c2,{'type':_0x3d2df1(0x44d),'size':_0x3d2df1(0x323),'variant':_0x3d2df1(0x3f3),'aria-label':_0x395c2d['t'](_0x3d2df1(0x43d)),'disabled':!_0x140a38||_0x4e0bbc[_0x3d2df1(0x36b)]===0x0,'onClick':()=>_0x5eeff7['executeCommand'](_0x2178d8['id'])['catch'](()=>void 0x0),'children':_0x143050(_0x232960,{})}),_0x143050(_0x11a8c2,{'type':_0x3d2df1(0x44d),'size':'small','variant':'text','aria-label':_0x395c2d['t'](_0x3d2df1(0x3f7)),'disabled':!_0x140a38||_0x4e0bbc['redos']===0x0,'onClick':()=>_0x5eeff7[_0x3d2df1(0x18b)](_0xa30686['id'])[_0x3d2df1(0x28c)](()=>void 0x0),'children':_0x143050(_0x4cec9e,{})}),_0x143050(_0x11a8c2,{'type':_0x3d2df1(0x44d),'size':_0x3d2df1(0x323),'variant':_0x3d2df1(0x3f3),'aria-label':_0x395c2d['t'](_0x3d2df1(0x46c)),'onClick':()=>_0x46f46d()[_0x3d2df1(0x28c)](()=>void 0x0),'children':_0x143050(_0x14205d,{})}),_0x143050(_0x566dc7,{'items':_0x445360,'children':_0x391b30(_0x11a8c2,{'variant':_0x3d2df1(0x386),'disabled':!_0x140a38,'children':[_0x143050(_0x82e3c7,{}),_0x395c2d['t'](_0x3d2df1(0x38f))]})})]}),_0x391b30(_0x3d2df1(0x402),{'className':_0x3d2df1(0x4a2),'children':[_0x143050(_0x3d2df1(0x402),{'className':_0x3d2df1(0x1ab),'children':_0x143050(da,{'dashboard':_0xcbdd6,'dragLabel':_0x395c2d['t'](_0x3d2df1(0x33a)),'editable':_0x1c6afd,'resizeLabel':_0x395c2d['t'](_0x3d2df1(0x3d8)),'widgetLabel':_0x24e422=>_0x395c2d['t'](ro(_0x24e422[_0x3d2df1(0x38c)])),'selectedWidgetId':_0x1c6afd?_0x502478:void 0x0,'onSelectWidget':_0x1c6afd?_0x426b07=>{_0x4d3a1f(_0x426b07),_0x426b07||_0x366bd5(!0x1);}:void 0x0,'onLayoutsCommit':_0x417f94=>{const _0x22ee59=_0x3d2df1;let _0x3bb68f={..._0xcbdd6[_0x22ee59(0x34d)]};_0x417f94[_0x22ee59(0x349)]((_0x41ab10,_0xf99138)=>{let _0x13c67b=_0x3bb68f[_0xf99138];_0x13c67b&&(_0x3bb68f[_0xf99138]={..._0x13c67b,'layout':_0x41ab10});}),_0x5eeff7[_0x22ee59(0x18b)](_0x1e24a6['id'],{'unitId':_0x467e9f,'dashboard':{..._0xcbdd6,'widgets':_0x3bb68f}})['catch'](()=>void 0x0);},'renderWidget':_0x3b381d=>_0x143050(Za,{'base':_0x58a28b,'dashboard':_0xcbdd6,'unitId':_0x467e9f,'widget':_0x3b381d,'onChange':_0x260f26,'onChartRuntimeChange':_0x3a9a17}),'renderWidgetActions':_0x109d7d=>_0x143050(Ya,{'onEdit':()=>{_0x4d3a1f(_0x109d7d['id']),_0x366bd5(!0x0);},'onDelete':()=>{const _0x4096e7=_0x3d2df1;_0x502478===_0x109d7d['id']&&(_0x4d3a1f(void 0x0),_0x366bd5(!0x1)),_0x5eeff7['executeCommand'](_0x29094f['id'],{'unitId':_0x467e9f,'dashboardId':_0x13b1ec,'widgetId':_0x109d7d['id']})[_0x4096e7(0x28c)](()=>void 0x0);}})})}),_0x1c6afd&&_0x1ea3c5&&_0x18e481&&_0x143050(Va,{'base':_0x58a28b,'chartRuntime':_0x5e1113[_0x3d2df1(0x43f)](_0x18e481['id']),'unitId':_0x467e9f,'widget':_0x18e481,'onChange':_0x260f26,'onClose':()=>_0x366bd5(!0x1),'onSelectBackgroundImage':()=>no(_0x12e3d1),'onSelectImage':()=>to(_0x261c21)})]})]});}function Za({base:_0x491e7b,dashboard:_0x4566ab,onChange:_0x4c0131,onChartRuntimeChange:_0x4f5aa7,unitId:_0x29ba50,widget:_0x2e1d5f}){const _0x40bea2=_0x410bd1;let _0x73f0f2=_0x10a2b7(()=>_0x4566ab[_0x40bea2(0x487)][_0x40bea2(0x1c6)](_0x36a3d4=>{const _0x37a638=_0x40bea2;let _0x2032fa=_0x4566ab[_0x37a638(0x34d)][_0x36a3d4];return(_0x2032fa==null?void 0x0:_0x2032fa[_0x37a638(0x38c)])===_0x4e7fff[_0x37a638(0x193)]&&_0x2032fa[_0x37a638(0x266)]===(_0x37a638(0x266)in _0x2e1d5f?_0x2e1d5f['tableId']:'')&&_0x2032fa['filter']?[_0x2032fa[_0x37a638(0x267)]]:[];}),[_0x4566ab,_0x2e1d5f]);switch(_0x2e1d5f['type']){case _0x4e7fff['PivotChart']:return _0x143050(zr,{'filters':_0x73f0f2,'unitId':_0x29ba50,'widget':_0x2e1d5f,'onRuntimeChange':_0x4f5aa7});case _0x4e7fff[_0x40bea2(0x193)]:return _0x143050(Ea,{'fields':Qa(_0x491e7b,_0x2e1d5f[_0x40bea2(0x266)]),'filter':_0x2e1d5f[_0x40bea2(0x267)],'onChange':_0x1824e7=>_0x4c0131({..._0x2e1d5f,'filter':_0x1824e7})['catch'](()=>void 0x0)});case _0x4e7fff['Text']:return _0x143050(Gr,{'widget':_0x2e1d5f});case _0x4e7fff[_0x40bea2(0x419)]:return _0x143050($a,{'widget':_0x2e1d5f});case _0x4e7fff['FormulaShape']:return _0x143050(kr,{'dashboardId':_0x4566ab['id'],'unitId':_0x29ba50,'widget':_0x2e1d5f});}}function Qa(_0x5bafcd,_0x4a53f5){const _0x382b87=_0x410bd1;let _0x37c324=_0x5bafcd[_0x382b87(0x31e)]()[_0x382b87(0x2ec)][_0x4a53f5],_0x33c20b=_0x37c324==null?void 0x0:_0x37c324[_0x382b87(0x30e)][_0x382b87(0x2da)](_0x56f9a3=>_0x37c324[_0x382b87(0x348)][_0x56f9a3]),_0x69d24a=_0x33c20b?_0x37c324==null?void 0x0:_0x37c324[_0x382b87(0x348)][_0x33c20b]:void 0x0;return _0x37c324&&_0x69d24a?_0x4eb67b(_0x37c324,_0x69d24a):[];}function $a({widget:_0x3bdb16}){const _0x719b3e=_0x410bd1;let _0x2ff2e7=_0x20ec70(_0x458fcc),[_0x187c24,_0x4a831a]=_0x5e5f09(_0x3bdb16[_0x719b3e(0x253)]===_0x4ca25c['UUID']?'':_0x3bdb16[_0x719b3e(0x2d8)]);return _0x2fd531(()=>{const _0x5c2f72=_0x719b3e;let _0x17c640=!0x0;return _0x2ff2e7[_0x5c2f72(0x4a1)](_0x3bdb16[_0x5c2f72(0x2d8)],_0x3bdb16[_0x5c2f72(0x253)])[_0x5c2f72(0x3c4)](_0x233ac5=>{_0x17c640&&_0x4a831a(_0x233ac5);})[_0x5c2f72(0x28c)](()=>void 0x0),()=>{_0x17c640=!0x1;};},[_0x2ff2e7,_0x3bdb16[_0x719b3e(0x2d8)],_0x3bdb16[_0x719b3e(0x253)]]),_0x187c24?_0x143050('div',{'role':_0x3bdb16[_0x719b3e(0x1b3)]?_0x719b3e(0x21f):void 0x0,'aria-label':_0x3bdb16[_0x719b3e(0x1b3)]||void 0x0,'data-dashboard-image':_0x3bdb16['id'],'className':_0x719b3e(0x421),'style':br(_0x187c24,_0x3bdb16['displayMode'])}):null;}function eo(){let _0x3f19de=_0x76d4c9(new Set());return{'id':'dashboard-text-'+_0x542898(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x3f19de}]},'documentStyle':{}};}function to(_0xc1e7c0){return new Promise(_0x5b0db9=>{const _0x1b374f=_0x10b1;let _0x38b0df=document[_0x1b374f(0x414)](_0x1b374f(0x466));_0x38b0df[_0x1b374f(0x38c)]='file',_0x38b0df[_0x1b374f(0x2e3)]='image/*',_0x38b0df[_0x1b374f(0x2fc)](_0x1b374f(0x376),()=>{const _0x519c64=_0x1b374f;var _0x241e57;let _0x17a530=(_0x241e57=_0x38b0df['files'])==null?void 0x0:_0x241e57[0x0];_0x17a530?_0xc1e7c0[_0x519c64(0x406)](_0x17a530)['then'](_0x29287c=>{const _0x53f67f=_0x519c64;!_0x29287c[_0x53f67f(0x2d8)]||_0x29287c[_0x53f67f(0x253)]===void 0x0?_0x5b0db9(null):_0x5b0db9({'name':_0x29287c[_0x53f67f(0x1f6)],'source':_0x29287c[_0x53f67f(0x2d8)],'sourceType':_0x29287c[_0x53f67f(0x253)]});})['catch'](()=>_0x5b0db9(null)):_0x5b0db9(null);},{'once':!0x0}),_0x38b0df[_0x1b374f(0x291)]();});}function no(_0x59f9be){return new Promise(_0xbbeec=>{const _0x19a7d5=_0x10b1;let _0x653219=document[_0x19a7d5(0x414)](_0x19a7d5(0x466));_0x653219[_0x19a7d5(0x38c)]='file',_0x653219['accept']='image/*',_0x653219[_0x19a7d5(0x2fc)]('change',()=>{const _0x592444=_0x19a7d5;var _0x236b52;let _0x4b9cdd=(_0x236b52=_0x653219[_0x592444(0x251)])==null?void 0x0:_0x236b52[0x0];_0x4b9cdd?_0x59f9be['saveImage'](_0x4b9cdd)[_0x592444(0x3c4)](_0x4a1a18=>{const _0x586116=_0x592444;if(!(_0x4a1a18!=null&&_0x4a1a18[_0x586116(0x2d8)]))_0xbbeec(null);else{if(_0x4a1a18[_0x586116(0x364)]){let _0x4ea33a=new Image();_0x4ea33a['src']=_0x4a1a18['base64Cache'],_0x59f9be[_0x586116(0x3b8)](_0x4a1a18[_0x586116(0x2d8)],_0x4a1a18[_0x586116(0x180)],_0x4ea33a);}_0xbbeec({'source':_0x4a1a18[_0x586116(0x2d8)],'sourceType':_0x4a1a18[_0x586116(0x180)]});}})[_0x592444(0x28c)](()=>_0xbbeec(null)):_0xbbeec(null);},{'once':!0x0}),_0x653219[_0x19a7d5(0x291)]();});}function ro(_0x49c6fb){const _0x14087e=_0x410bd1;switch(_0x49c6fb){case _0x4e7fff[_0x14087e(0x49f)]:return'bases-dashboard-ui.dashboard.pivotChart';case _0x4e7fff[_0x14087e(0x193)]:return _0x14087e(0x397);case _0x4e7fff[_0x14087e(0x4b4)]:return _0x14087e(0x2f9);case _0x4e7fff[_0x14087e(0x419)]:return _0x14087e(0x42c);case _0x4e7fff[_0x14087e(0x2b8)]:return _0x14087e(0x17f);}}function io(_0x227559){const _0x445b15=_0x410bd1;return(_0x227559==null?void 0x0:_0x227559[_0x445b15(0x38c)])===_0x37c4bc['Pivot']&&typeof _0x227559[_0x445b15(0x30a)]==_0x445b15(0x16a)&&_0x227559['config']!==null&&'pivot'in _0x227559[_0x445b15(0x30a)]&&_0x445b15(0x195)in _0x227559[_0x445b15(0x30a)];}const ao=[{'area':_0x3c113a[_0x410bd1(0x464)],'key':_0x410bd1(0x182),'label':_0x410bd1(0x479)},{'area':_0x3c113a[_0x410bd1(0x4ab)],'key':_0x410bd1(0x1ea),'label':_0x410bd1(0x2af)},{'area':_0x3c113a[_0x410bd1(0x2c3)],'key':_0x410bd1(0x28d),'label':_0x410bd1(0x1bd)},{'area':_0x3c113a['Value'],'key':_0x410bd1(0x438),'label':_0x410bd1(0x273)}],oo=[{'value':_0x9fb623['sum'],'localeKey':_0x410bd1(0x1bb)},{'value':_0x9fb623[_0x410bd1(0x37d)],'localeKey':'bases-dashboard-ui.pivot.count'},{'value':_0x9fb623[_0x410bd1(0x3a3)],'localeKey':_0x410bd1(0x1f8)},{'value':_0x9fb623[_0x410bd1(0x332)],'localeKey':_0x410bd1(0x1a7)},{'value':_0x9fb623[_0x410bd1(0x3b6)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':_0x9fb623[_0x410bd1(0x2c0)],'localeKey':_0x410bd1(0x275)},{'value':_0x9fb623[_0x410bd1(0x3ba)],'localeKey':'bases-dashboard-ui.pivot.product'},{'value':_0x9fb623[_0x410bd1(0x3ef)],'localeKey':'bases-dashboard-ui.pivot.stdDev'},{'value':_0x9fb623[_0x410bd1(0x381)],'localeKey':_0x410bd1(0x3ab)},{'value':_0x9fb623[_0x410bd1(0x2b6)],'localeKey':_0x410bd1(0x28f)},{'value':_0x9fb623[_0x410bd1(0x259)],'localeKey':_0x410bd1(0x2d7)}];function so(_0x4cf005){const _0x3a6f18=_0x410bd1;let {config:_0x4186dd,onChange:_0x4daaa8,table:_0x2bf266}=_0x4cf005,_0x5b711c=_0x20ec70(_0x4f7627),[_0x290ca4,_0x995324]=_0x5e5f09(_0x3a6f18(0x202)),[_0x2d03fd,_0x20bbcd]=_0x5e5f09(''),[_0x46c9b8,_0x1a5fc9]=_0x5e5f09(null),[_0x5c3cf6,_0x105123]=_0x5e5f09(null),[_0xeae691,_0x2e3072]=_0x5e5f09(null),[_0x2d196a,_0x4d51fd]=_0x5e5f09(null),_0x442b19=_0x127850(null),_0x4547df=_0x10a2b7(()=>_0x2bf266[_0x3a6f18(0x492)][_0x3a6f18(0x1c6)](_0x53abb6=>{const _0x5c2bec=_0x3a6f18;let _0x1fc736=_0x2bf266[_0x5c2bec(0x202)][_0x53abb6];return _0x1fc736&&_0x1fc736[_0x5c2bec(0x26b)]!==!0x0&&_0x1fc736['type']!==_0xac378e['RecordId']?[_0x1fc736]:[];})[_0x3a6f18(0x267)](_0x5bcb59=>_0x5bcb59[_0x3a6f18(0x1f6)][_0x3a6f18(0x181)]()[_0x3a6f18(0x37e)](_0x2d03fd[_0x3a6f18(0x48d)]()[_0x3a6f18(0x181)]())),[_0x2d03fd,_0x2bf266]),_0x5afbfa=_0x235a48=>{const _0x1f7d4c=_0x3a6f18;let _0x407d8d=_0x3cec59(_0x2bf266,_0x4186dd[_0x1f7d4c(0x382)]);try{_0x235a48(_0x407d8d),_0x4daaa8({'pivot':_0x407d8d[_0x1f7d4c(0x305)]()});}finally{_0x407d8d[_0x1f7d4c(0x481)]();}},_0x2063f7=(_0x296551,_0x4d4b6f)=>{_0x46c9b8&&(_0x5afbfa(_0x96aefa=>{const _0x59d7a8=_0x10b1;if(_0x46c9b8['kind']===_0x59d7a8(0x29f)){let _0x19a148=_0x96aefa[_0x59d7a8(0x215)](_0x46c9b8['id']),_0xa9e6f9=_0x19a148[_0x59d7a8(0x1f1)]===_0x296551&&_0x19a148[_0x59d7a8(0x2bd)]<_0x4d4b6f?_0x4d4b6f-0x1:_0x4d4b6f;_0x96aefa[_0x59d7a8(0x1a5)](_0x46c9b8['id'],_0x296551,_0xa9e6f9);}else go(_0x96aefa,_0x46c9b8['id'],_0x296551,_0x4d4b6f);}),_0x1a5fc9(null),_0x105123(null));};return _0x391b30(_0x3a6f18(0x402),{'className':_0x3a6f18(0x45d),'children':[_0x143050(_0x55df58,{'ariaLabel':_0x5b711c['t'](_0x3a6f18(0x48c)),'className':_0x3a6f18(0x229),'items':[{'label':_0x5b711c['t']('bases-dashboard-ui.pivot.fields'),'panelId':_0x3a6f18(0x174),'value':'fields'},{'label':_0x5b711c['t'](_0x3a6f18(0x2fe)),'panelId':_0x3a6f18(0x443),'value':_0x3a6f18(0x22a)}],'value':_0x290ca4,'onChange':_0x995324}),_0x143050(_0x3a6f18(0x402),{'ref':_0x442b19,'className':_0xec79e5(_0x3a6f18(0x2b4),_0x44d47d),'onDragOver':_0x251032=>{const _0x1e29f4=_0x3a6f18;let _0x22db51=_0x442b19['current'];if(!_0x22db51)return;let _0x79307d=_0x22db51[_0x1e29f4(0x2f2)]();_0x251032[_0x1e29f4(0x335)]<_0x79307d[_0x1e29f4(0x4a9)]+0x30?_0x22db51['scrollTop']-=0x10:_0x251032[_0x1e29f4(0x335)]>_0x79307d[_0x1e29f4(0x400)]-0x30&&(_0x22db51[_0x1e29f4(0x396)]+=0x10);},'children':_0x290ca4==='options'?_0x143050(ho,{'config':_0x4186dd,'commit':_0x5afbfa}):_0x391b30('div',{'className':_0x3a6f18(0x1f9),'children':[_0x391b30(_0x3a6f18(0x402),{'children':[_0x143050(_0x3a6f18(0x402),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x5b711c['t']('bases-dashboard-ui.pivot.sourceFields')}),_0x143050(_0x56be65,{'allowClear':!0x0,'slot':_0x143050(_0x1dab65,{}),'value':_0x2d03fd,'placeholder':_0x5b711c['t']('bases-dashboard-ui.pivot.searchFields'),'onChange':_0x20bbcd}),_0x143050(_0x3a6f18(0x402),{'className':_0x3a6f18(0x1cc),'children':_0x4547df[_0x3a6f18(0x173)](_0x18acd6=>_0x143050(co,{'config':_0x4186dd,'field':_0x18acd6,'onAdd':_0x21f730=>_0x5afbfa(_0x2cae0e=>go(_0x2cae0e,_0x18acd6['id'],_0x21f730,_0x2cae0e[_0x3a6f18(0x26d)](_0x21f730))),'onCheckedChange':_0x5a70bf=>_0x5afbfa(_0xda78db=>{const _0x228529=_0x3a6f18;let _0x33fb39=_0xda78db[_0x228529(0x3df)](_0x18acd6['id']);if(!_0x5a70bf)_0x33fb39[_0x228529(0x349)](_0x8d7785=>_0xda78db['removeField'](_0x8d7785[_0x228529(0x292)]()));else{if(_0x33fb39['length']===0x0){let _0x3cebbd=vo(_0x18acd6)?_0x3c113a[_0x228529(0x3c2)]:_0x3c113a[_0x228529(0x2c3)];_0xda78db['addFieldWithSourceId'](_0x18acd6['id'],_0x3cebbd);}}}),'onDragStart':()=>_0x1a5fc9({'kind':_0x3a6f18(0x2d8),'id':_0x18acd6['id']})},_0x18acd6['id']))})]}),_0x143050('div',{'className':_0x3a6f18(0x177),'children':ao[_0x3a6f18(0x173)](_0xc0743e=>_0x143050(uo,{'area':_0xc0743e[_0x3a6f18(0x1f1)],'dropTarget':_0x5c3cf6,'fields':_0x4186dd[_0x3a6f18(0x382)][_0xc0743e[_0x3a6f18(0x17b)]],'label':_0x5b711c['t'](_0xc0743e[_0x3a6f18(0x19d)]),'snapshot':_0x4186dd[_0x3a6f18(0x382)],'onDragEnd':()=>{_0x1a5fc9(null),_0x105123(null);},'onDragStart':_0x987d96=>_0x1a5fc9({'kind':_0x3a6f18(0x29f),'id':_0x987d96,'area':_0xc0743e[_0x3a6f18(0x1f1)]}),'onDragOver':_0xbdd6f9=>_0x105123({'area':_0xc0743e['area'],'index':_0xbdd6f9}),'onDrop':_0x237d89=>_0x2063f7(_0xc0743e[_0x3a6f18(0x1f1)],_0x237d89),'onFilter':_0x2e3072,'onRemove':_0x1b8d60=>_0x5afbfa(_0xe57faf=>_0xe57faf['removeField'](_0x1b8d60)),'onSettings':_0x4d51fd},_0xc0743e['area']))}),_0xeae691&&_0x143050(po,{'fieldId':_0xeae691,'snapshot':_0x4186dd[_0x3a6f18(0x382)],'table':_0x2bf266,'onCancel':()=>_0x2e3072(null),'onCommit':(_0x2ffc3a,_0x2c268e)=>{_0x5afbfa(_0x515f73=>{const _0x263f83=_0x10b1;let _0x30e1f3=_0x515f73[_0x263f83(0x48a)](_0xeae691),_0x50fef1=(_0x30e1f3==null?void 0x0:_0x30e1f3[_0x263f83(0x1f4)])??[];_0x515f73[_0x263f83(0x212)](_0xeae691,{'type':_0x315feb[_0x263f83(0x1a3)],'list':_0x2ffc3a,'isAll':_0x2ffc3a[_0x263f83(0x38b)]===_0x50fef1[_0x263f83(0x38b)]}),_0x515f73[_0x263f83(0x1ff)](_0xeae691,_0x2c268e===void 0x0?void 0x0:{'type':_0x2c268e});}),_0x2e3072(null);}},_0xeae691),_0x2d196a&&_0x143050(mo,{'field':_0x4186dd[_0x3a6f18(0x382)][_0x3a6f18(0x339)][_0x2d196a],'onCancel':()=>_0x4d51fd(null),'onCommit':(_0x4d46b4,_0x11730b,_0x344785)=>{_0x5afbfa(_0x3c2410=>{const _0x92607a=_0x10b1;_0x3c2410['renameField'](_0x2d196a,_0x4d46b4),_0x3c2410[_0x92607a(0x392)](_0x2d196a,_0x11730b),_0x3c2410[_0x92607a(0x2ac)](_0x2d196a,_0x344785||void 0x0);}),_0x4d51fd(null);}},_0x2d196a)]})})]});}function co(_0x3cb856){const _0x3754e9=_0x410bd1;let {config:_0x19dd6c,field:_0x48c42e,onAdd:_0x4b1e83,onCheckedChange:_0x3b9466,onDragStart:_0x1bc0d3}=_0x3cb856,_0x3fd00f=_0x20ec70(_0x4f7627),_0x5961b1=[...Object[_0x3754e9(0x22c)](_0x19dd6c[_0x3754e9(0x382)][_0x3754e9(0x3eb)]),...Object[_0x3754e9(0x22c)](_0x19dd6c['pivot'][_0x3754e9(0x339)])][_0x3754e9(0x29a)](_0x2bade0=>_0x2bade0[_0x3754e9(0x344)]===_0x48c42e['id']),_0x1d857f=ao[_0x3754e9(0x173)](_0x59ae27=>({'type':_0x3754e9(0x485),'children':_0x3fd00f['t'](yo(_0x59ae27['area'])),'onSelect':()=>_0x4b1e83(_0x59ae27[_0x3754e9(0x1f1)])}));return _0x391b30('div',{'draggable':!0x0,'className':'univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','onDragStart':_0x1bc0d3,'children':[_0x143050(_0x5ca67b,{'className':_0x3754e9(0x2df)}),_0x143050(_0x10db4e,{'checked':_0x5961b1,'onChange':_0xbe69cb=>_0x3b9466(!!_0xbe69cb)}),_0x143050(lo,{'field':_0x48c42e}),_0x143050(_0x3754e9(0x378),{'className':_0x3754e9(0x434),'children':_0x48c42e['name']}),_0x143050(_0x566dc7,{'align':_0x3754e9(0x33d),'items':_0x1d857f,'children':_0x143050(_0x3754e9(0x378),{'className':_0x3754e9(0x472),'children':_0x143050(_0x5d1e68,{})})})]});}function lo({field:_0x586ef3}){const _0x9baff1=_0x410bd1;return vo(_0x586ef3)?_0x143050(_0x5c186e,{'className':_0x9baff1(0x2df)}):_0x586ef3[_0x9baff1(0x38c)]===_0xac378e['Date']||_0x586ef3[_0x9baff1(0x38c)]===_0xac378e[_0x9baff1(0x2a2)]||_0x586ef3[_0x9baff1(0x38c)]===_0xac378e['UpdatedAt']?_0x143050(_0x5325fe,{'className':_0x9baff1(0x2df)}):_0x143050(_0x4af771,{'className':'univer-text-gray-400'});}function uo(_0x4dc78b){const _0x11ebb8=_0x410bd1;let {area:_0x54bb12,dropTarget:_0x1fcef5,fields:_0x2f6161,label:_0x28173d,snapshot:_0x1778ee}=_0x4dc78b,_0x3bfcb3=_0x20ec70(_0x4f7627);return _0x391b30(_0x11ebb8(0x407),{'className':_0xec79e5(_0x11ebb8(0x47f),_0x1f0d20),'onDragOver':_0x2389a7=>{const _0x2eaa1f=_0x11ebb8;_0x2389a7[_0x2eaa1f(0x35b)](),_0x4dc78b[_0x2eaa1f(0x36a)](_0x2f6161[_0x2eaa1f(0x38b)]);},'onDrop':_0xd9e31a=>{const _0x4917b7=_0x11ebb8;_0xd9e31a['preventDefault'](),_0x4dc78b[_0x4917b7(0x1f3)]((_0x1fcef5==null?void 0x0:_0x1fcef5[_0x4917b7(0x1f1)])===_0x54bb12?_0x1fcef5[_0x4917b7(0x2bd)]:_0x2f6161[_0x4917b7(0x38b)]);},'children':[_0x143050(_0x11ebb8(0x402),{'className':_0x11ebb8(0x367),'children':_0x28173d}),_0x391b30(_0x11ebb8(0x402),{'className':_0x11ebb8(0x422),'children':[_0x2f6161[_0x11ebb8(0x173)]((_0x133afd,_0x377423)=>{const _0x526e21=_0x11ebb8;let _0x5ccc07=_0x1778ee[_0x526e21(0x3eb)][_0x133afd]??_0x1778ee['measure'][_0x133afd];if(!_0x5ccc07)return null;let _0x1660a1=(_0x1fcef5==null?void 0x0:_0x1fcef5[_0x526e21(0x1f1)])===_0x54bb12&&_0x1fcef5[_0x526e21(0x2bd)]===_0x377423;return _0x391b30('div',{'onDragOver':_0x1864fe=>{const _0x86016c=_0x526e21;_0x1864fe[_0x86016c(0x35b)](),_0x1864fe['stopPropagation']();let _0x1f161c=_0x1864fe[_0x86016c(0x1ba)]['getBoundingClientRect']();_0x4dc78b[_0x86016c(0x36a)](_0x377423+ +(_0x1864fe['clientY']>_0x1f161c[_0x86016c(0x4a9)]+_0x1f161c[_0x86016c(0x484)]/0x2));},'onDrop':_0x1f113e=>{const _0x3c38d9=_0x526e21;_0x1f113e[_0x3c38d9(0x35b)](),_0x1f113e['stopPropagation'](),_0x4dc78b['onDrop']((_0x1fcef5==null?void 0x0:_0x1fcef5[_0x3c38d9(0x1f1)])===_0x54bb12?_0x1fcef5[_0x3c38d9(0x2bd)]:_0x377423);},'children':[_0x1660a1&&_0x143050('div',{'className':_0x526e21(0x3f4)}),_0x143050(fo,{'area':_0x54bb12,'field':_0x5ccc07,'onDragEnd':_0x4dc78b[_0x526e21(0x264)],'onDragStart':()=>_0x4dc78b[_0x526e21(0x2b7)](_0x133afd),'onFilter':()=>_0x4dc78b[_0x526e21(0x428)](_0x133afd),'onRemove':()=>_0x4dc78b[_0x526e21(0x31c)](_0x133afd),'onSettings':()=>_0x4dc78b[_0x526e21(0x456)](_0x133afd)})]},_0x133afd);}),(_0x1fcef5==null?void 0x0:_0x1fcef5[_0x11ebb8(0x1f1)])===_0x54bb12&&_0x1fcef5['index']===_0x2f6161[_0x11ebb8(0x38b)]&&_0x143050(_0x11ebb8(0x402),{'className':_0x11ebb8(0x3f4)}),_0x2f6161['length']===0x0&&_0x143050(_0x11ebb8(0x402),{'className':_0x11ebb8(0x359),'children':_0x3bfcb3['t'](_0x11ebb8(0x391))})]})]});}function fo(_0x5132af){const _0xe1444f=_0x410bd1;let _0x1a8cda=_0x20ec70(_0x4f7627),_0x233cf4=_0x5132af[_0xe1444f(0x1f1)]===_0x3c113a['Value'],_0x465154=[{'type':_0xe1444f(0x485),'children':_0x1a8cda['t']('bases-dashboard-ui.pivot.removeField'),'onSelect':_0x5132af[_0xe1444f(0x31c)]},{'type':'item','children':_0x1a8cda['t'](_0x233cf4?_0xe1444f(0x290):_0xe1444f(0x425)),'onSelect':_0x233cf4?_0x5132af[_0xe1444f(0x456)]:_0x5132af['onFilter']}];return _0x391b30(_0xe1444f(0x402),{'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':_0x5132af[_0xe1444f(0x264)],'onDragStart':_0x5132af[_0xe1444f(0x2b7)],'children':[_0x143050(_0x5ca67b,{'className':'univer-text-gray-400'}),_0x143050(_0x3dcdeb,{'title':_0x5132af['field'][_0xe1444f(0x39e)],'children':_0x143050(_0xe1444f(0x378),{'className':_0xe1444f(0x434),'children':_0x5132af[_0xe1444f(0x29f)]['displayName']})}),_0x143050(_0x566dc7,{'align':_0xe1444f(0x33d),'items':_0x465154,'children':_0x143050('span',{'className':_0xe1444f(0x472),'children':_0x143050(_0x5d1e68,{})})})]});}function po(_0x2de830){const _0x73c7bd=_0x410bd1;var _0x2d2822,_0x30e7d2;let _0x2c2966=_0x20ec70(_0x4f7627),{format:_0x2c838d,items:_0x2ef346,itemTypes:_0x4c5da3}=_0x10a2b7(()=>{const _0x46e796=_0x10b1;let _0x13b6a2=_0x3cec59(_0x2de830[_0x46e796(0x26a)],_0x2de830[_0x46e796(0x43b)]);try{let _0x281f98=_0x13b6a2[_0x46e796(0x48a)](_0x2de830[_0x46e796(0x1b7)]);return{'format':_0x281f98==null?void 0x0:_0x281f98[_0x46e796(0x1d7)],'items':[...(_0x281f98==null?void 0x0:_0x281f98[_0x46e796(0x1f4)])??[]],'itemTypes':[...(_0x281f98==null?void 0x0:_0x281f98[_0x46e796(0x46e)])??[]]};}finally{_0x13b6a2[_0x46e796(0x481)]();}},[_0x2de830[_0x73c7bd(0x1b7)],_0x2de830[_0x73c7bd(0x43b)],_0x2de830['table']]),_0xd27b5a=(_0x2d2822=_0x2de830['snapshot'][_0x73c7bd(0x3eb)][_0x2de830[_0x73c7bd(0x1b7)]])==null?void 0x0:_0x2d2822[_0x73c7bd(0x2c8)],[_0x5e011a,_0x1244ad]=_0x5e5f09((_0xd27b5a==null?void 0x0:_0xd27b5a[_0x73c7bd(0x38c)])===_0x315feb[_0x73c7bd(0x1a3)]?_0xd27b5a[_0x73c7bd(0x449)]:_0x2ef346),[_0x2d8821,_0x58f582]=_0x5e5f09((_0x30e7d2=_0x2de830[_0x73c7bd(0x43b)]['dimension'][_0x2de830[_0x73c7bd(0x1b7)]])==null||(_0x30e7d2=_0x30e7d2[_0x73c7bd(0x1b1)])==null?void 0x0:_0x30e7d2[_0x73c7bd(0x38c)]),_0x50fe1f=_0x5e011a['length']===_0x2ef346[_0x73c7bd(0x38b)];return _0x391b30(_0x73c7bd(0x407),{'className':_0xec79e5(_0x73c7bd(0x24f),_0x1f0d20),'children':[_0x143050(_0x73c7bd(0x402),{'className':_0x73c7bd(0x170),'children':_0x2c2966['t'](_0x73c7bd(0x425))}),_0x391b30(_0x73c7bd(0x402),{'className':_0x73c7bd(0x460),'children':[_0x391b30(_0x11a8c2,{'className':'univer-flex-1','variant':_0x2d8821===_0x1e9e18['ascending']?_0x73c7bd(0x386):'default','onClick':()=>_0x58f582(_0x1e9e18[_0x73c7bd(0x19e)]),'children':[_0x143050(_0x52227c,{}),_0x2c2966['t'](_0x73c7bd(0x285))]}),_0x391b30(_0x11a8c2,{'className':'univer-flex-1','variant':_0x2d8821===_0x1e9e18[_0x73c7bd(0x395)]?_0x73c7bd(0x386):_0x73c7bd(0x47a),'onClick':()=>_0x58f582(_0x1e9e18[_0x73c7bd(0x395)]),'children':[_0x143050(_0x5c0c38,{}),_0x2c2966['t'](_0x73c7bd(0x2ee))]})]}),_0x391b30(_0x73c7bd(0x402),{'className':'univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','children':[_0x391b30(_0x73c7bd(0x19d),{'className':_0x73c7bd(0x3cc),'children':[_0x143050(_0x10db4e,{'checked':_0x50fe1f,'indeterminate':_0x5e011a['length']>0x0&&!_0x50fe1f,'onChange':()=>_0x1244ad(_0x50fe1f?[]:_0x2ef346)}),_0x2c2966['t']('bases-dashboard-ui.pivot.selectAll')]}),_0x2ef346[_0x73c7bd(0x173)]((_0x3bd9da,_0x260451)=>_0x391b30(_0x73c7bd(0x19d),{'className':_0x73c7bd(0x3cc),'children':[_0x143050(_0x10db4e,{'checked':_0x5e011a[_0x73c7bd(0x37e)](_0x3bd9da),'onChange':()=>_0x1244ad(_0x5a2c0d=>_0x5a2c0d[_0x73c7bd(0x37e)](_0x3bd9da)?_0x5a2c0d['filter'](_0x1be9d7=>_0x1be9d7!==_0x3bd9da):[..._0x5a2c0d,_0x3bd9da])}),_0x143050(_0x73c7bd(0x378),{'className':_0x73c7bd(0x2d9),'children':_o(_0x3bd9da,_0x4c5da3[_0x260451],_0x2c838d,_0x2c2966['t'](_0x73c7bd(0x444)))})]},_0x3bd9da))]}),_0x391b30(_0x73c7bd(0x402),{'className':_0x73c7bd(0x1a4),'children':[_0x143050(_0x11a8c2,{'variant':_0x73c7bd(0x172),'onClick':()=>_0x2de830[_0x73c7bd(0x2ed)](_0x2ef346,_0x2d8821),'children':_0x2c2966['t'](_0x73c7bd(0x27c))}),_0x391b30(_0x73c7bd(0x402),{'className':_0x73c7bd(0x279),'children':[_0x143050(_0x11a8c2,{'onClick':_0x2de830[_0x73c7bd(0x21e)],'children':_0x2c2966['t'](_0x73c7bd(0x204))}),_0x143050(_0x11a8c2,{'variant':_0x73c7bd(0x386),'disabled':_0x5e011a[_0x73c7bd(0x38b)]===0x0,'onClick':()=>_0x2de830['onCommit'](_0x5e011a,_0x2d8821),'children':_0x2c2966['t'](_0x73c7bd(0x158))})]})]})]});}function mo(_0x2e0d38){const _0xf7792e=_0x410bd1;var _0x2a7221,_0xf51110,_0x1813bc;let _0x2aa739=_0x20ec70(_0x4f7627),[_0x240bd2,_0x316d1e]=_0x5e5f09(((_0x2a7221=_0x2e0d38[_0xf7792e(0x29f)])==null?void 0x0:_0x2a7221[_0xf7792e(0x39e)])??''),[_0x597467,_0x2faf10]=_0x5e5f09(((_0xf51110=_0x2e0d38[_0xf7792e(0x29f)])==null?void 0x0:_0xf51110[_0xf7792e(0x489)])??_0x9fb623[_0xf7792e(0x3c1)]),[_0x17b62f,_0x3414c3]=_0x5e5f09(((_0x1813bc=_0x2e0d38[_0xf7792e(0x29f)])==null?void 0x0:_0x1813bc['format'])??'');return _0x2e0d38[_0xf7792e(0x29f)]?_0x391b30(_0xf7792e(0x407),{'className':_0xec79e5(_0xf7792e(0x2a1),_0x1f0d20),'children':[_0x143050(_0xf7792e(0x402),{'className':'univer-text-sm\x20univer-font-medium','children':_0x2aa739['t'](_0xf7792e(0x290))}),_0x391b30('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x2aa739['t'](_0xf7792e(0x1e0)),_0x143050(_0x56be65,{'value':_0x240bd2,'onChange':_0x316d1e})]}),_0x391b30('label',{'className':_0xf7792e(0x24c),'children':[_0x2aa739['t']('bases-dashboard-ui.pivot.summarizeBy'),_0x143050(_0x3f5ec5,{'value':String(_0x597467),'options':oo[_0xf7792e(0x173)](_0x4dd560=>({'value':String(_0x4dd560[_0xf7792e(0x46f)]),'label':_0x2aa739['t'](_0x4dd560[_0xf7792e(0x190)])})),'onChange':_0x181028=>{const _0x3025bb=_0xf7792e;let _0x449c88=oo[_0x3025bb(0x2da)](_0x71a3ee=>String(_0x71a3ee[_0x3025bb(0x46f)])===_0x181028);_0x449c88&&_0x2faf10(_0x449c88[_0x3025bb(0x46f)]);}})]}),_0x391b30(_0xf7792e(0x19d),{'className':_0xf7792e(0x24c),'children':[_0x2aa739['t'](_0xf7792e(0x45f)),_0x143050(_0x56be65,{'value':_0x17b62f,'onChange':_0x3414c3})]}),_0x391b30('div',{'className':_0xf7792e(0x3e9),'children':[_0x143050(_0x11a8c2,{'onClick':_0x2e0d38[_0xf7792e(0x21e)],'children':_0x2aa739['t']('bases-dashboard-ui.pivot.cancel')}),_0x143050(_0x11a8c2,{'variant':_0xf7792e(0x386),'disabled':!_0x240bd2[_0xf7792e(0x48d)](),'onClick':()=>_0x2e0d38['onCommit'](_0x240bd2['trim'](),_0x597467,_0x17b62f),'children':_0x2aa739['t'](_0xf7792e(0x158))})]})]}):null;}function ho(_0x4d7d3c){const _0x441641=_0x410bd1;let {config:_0x558ba1,commit:_0x277df0}=_0x4d7d3c,_0x5d5947=_0x20ec70(_0x4f7627),_0x4fc551=_0x558ba1[_0x441641(0x382)]['options'],_0xcabad6=_0x1d6bd8=>_0x277df0(_0x27e824=>_0x27e824[_0x441641(0x265)]({..._0x27e824[_0x441641(0x221)](),..._0x1d6bd8}));return _0x391b30('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x391b30('label',{'className':_0x441641(0x2b2),'children':[_0x5d5947['t'](_0x441641(0x4a4)),_0x143050(_0x3f5ec5,{'className':_0x441641(0x41d),'value':String(_0x558ba1[_0x441641(0x382)][_0x441641(0x281)]),'options':[{'value':String(_0x5a28d1['tabular']),'label':_0x5d5947['t']('bases-dashboard-ui.pivot.layoutTabular')},{'value':String(_0x5a28d1[_0x441641(0x2b1)]),'label':_0x5d5947['t']('bases-dashboard-ui.pivot.layoutCompact')},{'value':String(_0x5a28d1['outline']),'label':_0x5d5947['t'](_0x441641(0x2cb))}],'onChange':_0x428945=>{const _0x23b273=_0x441641;let _0x43c053=[_0x5a28d1['tabular'],_0x5a28d1[_0x23b273(0x2b1)],_0x5a28d1['outline']]['find'](_0x4da3c5=>String(_0x4da3c5)===_0x428945);_0x43c053!==void 0x0&&_0x277df0(_0x36b586=>_0x36b586['setLayout'](_0x43c053));}})]}),[{'key':_0x441641(0x41c),'label':_0x441641(0x309),'defaultValue':!0x1},{'key':_0x441641(0x19b),'label':_0x441641(0x457),'defaultValue':!0x1},{'key':'showRowSubtotal','label':_0x441641(0x4a7),'defaultValue':!0x0},{'key':_0x441641(0x3cf),'label':'bases-dashboard-ui.pivot.showRowGrandTotal','defaultValue':!0x0},{'key':_0x441641(0x3f2),'label':_0x441641(0x328),'defaultValue':!0x0},{'key':_0x441641(0x34a),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}][_0x441641(0x173)](_0x4ba2bd=>_0x391b30(_0x441641(0x19d),{'className':_0x441641(0x304),'children':[_0x143050(_0x10db4e,{'checked':!!(_0x4fc551[_0x4ba2bd[_0x441641(0x17b)]]??_0x4ba2bd['defaultValue']),'disabled':_0x4ba2bd[_0x441641(0x17b)]===_0x441641(0x41c)&&_0x558ba1['pivot'][_0x441641(0x281)]===_0x5a28d1[_0x441641(0x2b1)],'onChange':_0x4da02a=>_0xcabad6({[_0x4ba2bd[_0x441641(0x17b)]]:!!_0x4da02a})}),_0x5d5947['t'](_0x4ba2bd[_0x441641(0x19d)])]},_0x4ba2bd[_0x441641(0x17b)])),_0x558ba1[_0x441641(0x382)][_0x441641(0x281)]===_0x5a28d1[_0x441641(0x368)]&&_0x391b30(_0x441641(0x19d),{'className':_0x441641(0x2b2),'children':[_0x5d5947['t']('bases-dashboard-ui.pivot.rowSubtotalPosition'),_0x143050(_0x3f5ec5,{'className':'univer-w-36','value':String(_0x4fc551[_0x441641(0x198)]??_0x5ba910['top']),'options':[{'value':String(_0x5ba910[_0x441641(0x4a9)]),'label':_0x5d5947['t'](_0x441641(0x162))},{'value':String(_0x5ba910[_0x441641(0x400)]),'label':_0x5d5947['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x5ab1e7=>{const _0x1736f5=_0x441641;let _0x495757=[_0x5ba910[_0x1736f5(0x4a9)],_0x5ba910[_0x1736f5(0x400)]][_0x1736f5(0x2da)](_0x403d37=>String(_0x403d37)===_0x5ab1e7);_0x495757!==void 0x0&&_0xcabad6({'rowSubtotalPosition':_0x495757});}})]}),_0x391b30(_0x441641(0x19d),{'className':_0x441641(0x2b2),'children':[_0x5d5947['t'](_0x441641(0x31d)),_0x143050(_0x3f5ec5,{'className':'univer-w-36','value':String(_0x558ba1['pivot'][_0x441641(0x205)]===_0xeddb61[_0x441641(0x429)]?_0xeddb61[_0x441641(0x4ab)]:_0x558ba1['pivot'][_0x441641(0x205)]),'options':[{'value':String(_0xeddb61[_0x441641(0x4ab)]),'label':_0x5d5947['t'](_0x441641(0x2af))},{'value':String(_0xeddb61[_0x441641(0x2c3)]),'label':_0x5d5947['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x55762e=>{const _0x355870=_0x441641;let _0x1b8de0=[_0xeddb61[_0x355870(0x4ab)],_0xeddb61[_0x355870(0x2c3)]][_0x355870(0x2da)](_0x53a56d=>String(_0x53a56d)===_0x55762e);_0x1b8de0!==void 0x0&&_0x277df0(_0x40148f=>_0x40148f[_0x355870(0x431)](_0x1b8de0,_0x40148f[_0x355870(0x467)]()<0x0?0x0:_0x40148f[_0x355870(0x467)]()));}})]}),_0x391b30(_0x441641(0x19d),{'className':_0x441641(0x2b2),'children':[_0x5d5947['t'](_0x441641(0x194)),_0x143050(_0x137e64,{'className':_0x441641(0x2e6),'min':0x1,'max':0x14,'value':_0x4fc551[_0x441641(0x19f)]??0x1,'onChange':_0x472155=>{const _0x16cdf8=_0x441641;let _0x2751b1=Number(_0x472155);Number[_0x16cdf8(0x4a5)](_0x2751b1)&&_0x2751b1>=0x1&&_0xcabad6({'pageWrap':_0x2751b1});}})]}),_0x391b30(_0x441641(0x19d),{'className':_0x441641(0x2b2),'children':[_0x5d5947['t'](_0x441641(0x16c)),_0x143050(_0x3f5ec5,{'className':_0x441641(0x41d),'value':String(_0x4fc551[_0x441641(0x2a5)]??!0x1),'options':[{'value':_0x441641(0x423),'label':_0x5d5947['t'](_0x441641(0x3ea))},{'value':_0x441641(0x2c4),'label':_0x5d5947['t'](_0x441641(0x401))}],'onChange':_0x26add9=>_0xcabad6({'pageOverThenDown':_0x26add9==='true'})})]})]});}function go(_0x1925e6,_0x217232,_0x1e5767,_0xc49ebb){const _0x1c5a3b=_0x410bd1;let _0x1ff995=_0x1925e6['getTableFieldsByDataFieldId'](_0x217232)[_0x1c5a3b(0x2da)](_0x364990=>_0x1925e6[_0x1c5a3b(0x215)](_0x364990[_0x1c5a3b(0x292)]())[_0x1c5a3b(0x1f1)]!==_0x3c113a[_0x1c5a3b(0x3c2)]);_0x1e5767!==_0x3c113a[_0x1c5a3b(0x3c2)]&&_0x1ff995?_0x1925e6[_0x1c5a3b(0x1a5)](_0x1ff995[_0x1c5a3b(0x292)](),_0x1e5767,_0xc49ebb):_0x1925e6[_0x1c5a3b(0x3b0)](_0x217232,_0x1e5767,_0xc49ebb);}function _o(_0x4f787e,_0x1da809,_0x4c4c7a,_0x4d5c4f){const _0x52f8e1=_0x410bd1;return _0x1da809===_0x15e35b['blank']?_0x4d5c4f:_0x1da809===_0x15e35b[_0x52f8e1(0x25f)]&&_0x4c4c7a?_0x5140c1[_0x52f8e1(0x1d7)](_0x4c4c7a,Number(_0x4f787e)):_0x4f787e;}function vo(_0x170f52){const _0x15667f=_0x410bd1;return _0x170f52[_0x15667f(0x38c)]===_0xac378e['Number']||_0x170f52['type']===_0xac378e['Currency']||_0x170f52[_0x15667f(0x38c)]===_0xac378e[_0x15667f(0x354)]||_0x170f52[_0x15667f(0x38c)]===_0xac378e['Rating'];}function yo(_0x26aab8){const _0x5878b4=_0x410bd1;switch(_0x26aab8){case _0x3c113a[_0x5878b4(0x2c3)]:return _0x5878b4(0x1e6);case _0x3c113a[_0x5878b4(0x4ab)]:return _0x5878b4(0x1c5);case _0x3c113a[_0x5878b4(0x3c2)]:return'bases-dashboard-ui.pivot.addToValue';default:return _0x5878b4(0x302);}}function bo({config:_0x8e3c85,onChange:_0x544dcd,runtime:_0x1924d6,table:_0x5e58e2}){const _0x1c72b3=_0x410bd1;let _0x35b9f2=_0x20ec70(_0x4f7627),[_0x3c3956,_0x130980]=_0x5e5f09(_0x1c72b3(0x195));return _0x391b30(_0x1c72b3(0x208),{'className':_0x1c72b3(0x3f8),'children':[_0x143050(_0x55df58,{'ariaLabel':_0x35b9f2['t'](_0x1c72b3(0x459)),'className':_0x1c72b3(0x38e),'items':[{'label':_0x35b9f2['t']('bases-dashboard-ui.pivot.chartConfiguration'),'panelId':_0x1c72b3(0x362),'value':_0x1c72b3(0x195)},{'label':_0x35b9f2['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'panelId':_0x1c72b3(0x218),'value':_0x1c72b3(0x382)}],'value':_0x3c3956,'variant':_0x1c72b3(0x169),'onChange':_0x130980}),_0x143050('div',{'className':_0x1c72b3(0x25c),'children':_0x3c3956===_0x1c72b3(0x195)?_0x1924d6&&_0x143050(ma,{'config':_0x8e3c85,'runtime':_0x1924d6,'tableName':_0x5e58e2['name'],'onChange':_0x544dcd}):_0x143050(so,{'config':_0x8e3c85,'table':_0x5e58e2,'onChange':_0x544dcd})})]});}function xo({tableId:_0x1b75f4,unitId:_0x46b48b,viewId:_0x39cdf2}){const _0x1a0ea4=_0x410bd1;let _0x94debe=_0x20ec70(_0x668d8f),_0x2fe5af=_0x20ec70(_0x1ce417),_0x5d0d8f=_0x20ec70(_0xf4ca24),_0x372f0a=_0x20ec70(_0x4f7627),_0x2becfc=_0x20ec70(_0xab5a6b),[_0x619aa3,_0x1463e6]=_0x5e5f09(null),[_0xf4afe6,_0x37ad4e]=_0x5e5f09(null),_0xe9b78c=_0x127850(_0x1a0ea4(0x245)+_0x542898(0x8)),[_0x334c8d,_0x2784ad]=_0x5e5f09(!0x1),_0x50cd1e=_0x2fe5af[_0x1a0ea4(0x211)](_0x46b48b,_0xd3f775[_0x1a0ea4(0x420)]),_0x596eb9=_0x50cd1e==null?void 0x0:_0x50cd1e['getSnapshot']()[_0x1a0ea4(0x2ec)][_0x1b75f4],_0x4f6d39=_0x596eb9==null?void 0x0:_0x596eb9[_0x1a0ea4(0x348)][_0x39cdf2],_0x2668bb=So(_0x4f6d39),_0x689a6f=yr(_0x46b48b,_0x1b75f4,_0x39cdf2);if(_0x2fd531(()=>{const _0x54eff1=_0x1a0ea4;if(!_0x2668bb)return;let _0x19c2ad=_0xe9b78c[_0x54eff1(0x179)];return _0x2becfc['acquireChartRuntime'](_0x19c2ad,{'unitId':_0x46b48b,'tableId':_0x1b75f4,'viewId':_0x39cdf2,'filters':[]}),()=>{const _0x171bda=_0x54eff1;_0x2becfc[_0x171bda(0x1cf)](_0x46b48b,_0x19c2ad);};},[_0x2668bb,_0x2becfc,_0x1b75f4,_0x46b48b,_0x39cdf2]),_0x2fd531(()=>{const _0x29e0e9=_0x1a0ea4;if(!So(_0x4f6d39))return;let _0x5953e7=!0x0,_0x2e25da={'unitId':_0x46b48b,'tableId':_0x1b75f4,'viewId':_0x39cdf2,'filters':[_0x4f6d39[_0x29e0e9(0x267)]??null]};return _0x2becfc[_0x29e0e9(0x477)](_0x46b48b,_0xe9b78c[_0x29e0e9(0x179)],_0x2e25da)['then'](_0x5819c1=>{const _0x1d571c=_0x29e0e9;_0x5953e7&&_0x5819c1&&(_0x1463e6(_0x5819c1),_0x37ad4e(_0x2becfc[_0x1d571c(0x242)](_0x46b48b,_0xe9b78c[_0x1d571c(0x179)])??null),_0x2784ad(!0x1));})[_0x29e0e9(0x28c)](_0x4aa394=>{const _0x10c169=_0x29e0e9;_0x5d0d8f[_0x10c169(0x280)]('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x4aa394),_0x5953e7&&(_0x1463e6(null),_0x2784ad(!0x0));}),()=>{_0x5953e7=!0x1;};},[_0x5d0d8f,_0x2becfc,_0x1b75f4,_0x46b48b,_0x4f6d39,_0x39cdf2]),!_0x596eb9||!So(_0x4f6d39))return null;let _0x419874=_0x2becfc[_0x1a0ea4(0x242)](_0x46b48b,_0xe9b78c[_0x1a0ea4(0x179)])===_0xf4afe6?_0xf4afe6:null,_0x305c28=_0x619aa3?_0x391b30(_0x1a0ea4(0x402),{'className':'univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','style':{'gridTemplateRows':_0x4f6d39[_0x1a0ea4(0x30a)][_0x1a0ea4(0x201)]===_0x1a0ea4(0x23e)?_0x1a0ea4(0x17e):_0x1a0ea4(0x29e)},'children':[_0x4f6d39[_0x1a0ea4(0x30a)][_0x1a0ea4(0x201)]!==_0x1a0ea4(0x26a)&&_0x419874&&_0x143050(_0x1a0ea4(0x402),{'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':_0x143050(Rr,{'isRowDirection':_0x3fb36c(_0x4f6d39[_0x1a0ea4(0x30a)][_0x1a0ea4(0x195)]['orient']),'runtime':_0x419874})}),_0x4f6d39[_0x1a0ea4(0x30a)][_0x1a0ea4(0x201)]!==_0x1a0ea4(0x195)&&_0x143050(_0x1a0ea4(0x402),{'className':_0x1a0ea4(0x196),'children':_0x143050(ji,{'pivot':_0x4f6d39['config'][_0x1a0ea4(0x382)],'view':_0x619aa3[_0x1a0ea4(0x222)]})})]}):_0x143050('div',{'className':_0x1a0ea4(0x3dd),'children':_0x334c8d?_0x372f0a['t'](_0x1a0ea4(0x220)):_0x372f0a['t'](_0x1a0ea4(0x2f6))});return _0x391b30(_0x1a0ea4(0x402),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','children':[_0x143050('div',{'className':_0x1a0ea4(0x3a4),'children':_0x305c28}),_0x689a6f&&_0x143050(bo,{'config':_0x4f6d39[_0x1a0ea4(0x30a)],'runtime':_0x419874,'table':_0x596eb9,'onChange':_0xe6c4d8=>{const _0x3debca=_0x1a0ea4;_0x94debe['executeCommand'](_0x1f6e61['id'],{'unitId':_0x46b48b,'tableId':_0x1b75f4,'viewId':_0x39cdf2,'patch':_0xe6c4d8})[_0x3debca(0x28c)](_0x151273=>_0x5d0d8f['error'](_0x3debca(0x1d5),_0x151273));}})]});}function So(_0x3ff2ba){const _0x173f18=_0x410bd1;return(_0x3ff2ba==null?void 0x0:_0x3ff2ba[_0x173f18(0x38c)])===_0x37c4bc[_0x173f18(0x3bf)]&&typeof _0x3ff2ba[_0x173f18(0x30a)]==_0x173f18(0x16a)&&_0x3ff2ba[_0x173f18(0x30a)]!==null&&_0x173f18(0x382)in _0x3ff2ba[_0x173f18(0x30a)]&&_0x173f18(0x195)in _0x3ff2ba[_0x173f18(0x30a)]&&_0x173f18(0x201)in _0x3ff2ba[_0x173f18(0x30a)];}let Co=class extends _0x34f5d7{constructor(_0x3d16dc,_0x5c10a6,_0xda0dc3,_0x41e556,_0x2859c1,_0x254a21){const _0x15b335=_0x410bd1;super(),this[_0x15b335(0x388)](_0x5c10a6['register']({'type':_0x37c4bc[_0x15b335(0x3bf)],'renderMode':_0x15b335(0x40e),'icon':_0x475089,'component':xo,'menu':{get 'label'(){const _0x599cb8=_0x15b335;return _0x254a21['t'](_0x599cb8(0x459));},get 'description'(){return _0x254a21['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){const _0x269d09=_0x15b335;return _0x254a21['t'](_0x269d09(0x18c));}}})),this[_0x15b335(0x388)](_0x3d16dc[_0x15b335(0x325)](wo(_0xda0dc3,_0x41e556,_0x2859c1,_0x254a21)));}};Co=Ar([Y(0x0,_0x76978b),Y(0x1,_0xb97bcb),Y(0x2,_0x1fee36(_0x3a9dda)),Y(0x3,_0x668d8f),Y(0x4,_0xd14797),Y(0x5,_0x1fee36(_0x4f7627))],Co);function wo(_0x428a52,_0x17f918,_0x293819,_0x4396a2){const _0x37f9fd=_0x410bd1;return{'change$':_0x360ca5(_0x428a52[_0x37f9fd(0x452)],_0x293819[_0x37f9fd(0x4b3)]),'component':Xa,get 'labels'(){const _0x5de737=_0x37f9fd;return{'add':_0x4396a2['t'](_0x5de737(0x1b0)),'configure':_0x4c547f=>_0x4396a2['t'](_0x5de737(0x3e2),_0x4c547f),'delete':_0x4396a2['t'](_0x5de737(0x480)),'new':_0x4396a2['t'](_0x5de737(0x461)),'rename':_0x4396a2['t'](_0x5de737(0x15c)),'search':_0x4396a2['t'](_0x5de737(0x41e)),'section':_0x4396a2['t'](_0x5de737(0x1e3))};},'getItems':_0xff53dd=>{const _0x1d3f8a=_0x37f9fd;let _0x6ce88d=_0x428a52[_0x1d3f8a(0x1bf)](_0xff53dd);return _0x6ce88d[_0x1d3f8a(0x2f5)][_0x1d3f8a(0x1c6)](_0x5aec39=>{const _0x27db3c=_0x1d3f8a;let _0x341425=_0x6ce88d[_0x27db3c(0x261)][_0x5aec39];return _0x341425?[{'id':_0x341425['id'],'name':_0x341425[_0x27db3c(0x1f6)],'readonly':!_0x467e07(_0x293819,_0xff53dd,_0x341425['id'])}]:[];});},'create':async _0x4ece6f=>{const _0x46746b=_0x37f9fd;let _0x27c19f=_0x428a52['getResource'](_0x4ece6f),_0x593625='dashboard-'+_0x542898(0x8),_0x4864ad=To(_0x27c19f[_0x46746b(0x2f5)][_0x46746b(0x1c6)](_0x410149=>{const _0x32be0e=_0x46746b;let _0x3dd89a=_0x27c19f[_0x32be0e(0x261)][_0x410149];return _0x3dd89a?[_0x3dd89a['name']]:[];}),_0x547a63=>_0x4396a2['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x547a63)));return await _0x17f918[_0x46746b(0x18b)](_0x100fa4['id'],{'unitId':_0x4ece6f,'dashboard':{'id':_0x593625,'name':_0x4864ad,'widgetOrder':[],'widgets':{}}})?_0x593625:null;},'rename':async(_0x442f3d,_0x9a1af5,_0x37a9a6)=>{const _0x167cf9=_0x37f9fd;let _0x56a6c6=_0x428a52[_0x167cf9(0x36f)](_0x442f3d,_0x9a1af5);return!!(_0x56a6c6&&await _0x17f918[_0x167cf9(0x18b)](_0x1e24a6['id'],{'unitId':_0x442f3d,'dashboard':{..._0x56a6c6,'name':_0x37a9a6}}));},'remove':(_0x34b147,_0x100149)=>_0x17f918[_0x37f9fd(0x18b)](_0x439898['id'],{'unitId':_0x34b147,'dashboardId':_0x100149})};}function To(_0x136813,_0x3970f6){const _0x3b61f9=_0x410bd1;let _0x4d4757=new Set(_0x136813),_0x47f4f1=_0x4d4757[_0x3b61f9(0x248)]+0x1,_0x407517=_0x3970f6(_0x47f4f1);for(;_0x4d4757[_0x3b61f9(0x183)](_0x407517);)_0x47f4f1+=0x1,_0x407517=_0x3970f6(_0x47f4f1);return _0x407517;}let Eo=class extends _0x22507e{constructor(_0x3add79=_r,_0x3415b3,_0x1c95db){const _0x95f575=_0x410bd1;super(),this[_0x95f575(0x250)]=_0x3add79,this[_0x95f575(0x44f)]=_0x3415b3,this[_0x95f575(0x3d2)]=_0x1c95db;let {..._0x94d9a2}=_0x17941a({},_r,this[_0x95f575(0x250)]);this[_0x95f575(0x3d2)]['setConfig'](gr,_0x94d9a2);}[_0x410bd1(0x3b4)](){const _0x1a47d5=_0x410bd1;this[_0x1a47d5(0x44f)][_0x1a47d5(0x307)]([jr]),this['_injector'][_0x1a47d5(0x307)]([qr]),this['_injector']['add']([Co]);}[_0x410bd1(0x233)](){const _0x10c9d8=_0x410bd1;_0x4ffdef(this[_0x10c9d8(0x44f)],[[jr],[qr],[Co]]);}};Ir(Eo,'type',_0xd3f775[_0x410bd1(0x420)]),Ir(Eo,_0x410bd1(0x287),_0x410bd1(0x322)),Ir(Eo,_0x410bd1(0x214),mr),Ir(Eo,'version',hr),Eo=Ar([_0x2b679d(_0x1b68d2,_0x7dcda4,_0xe89ad3,_0x570ced,_0xdd06cf,_0x1776ea),Y(0x1,_0x1fee36(_0x4c3614)),Y(0x2,_0x200457)],Eo);export{ia as UniverBaseDashboardMobileUIPlugin,Eo as UniverBaseDashboardUIPlugin};
1
+ const _0x5d48da=_0x187c;(function(_0x24cc04,_0x21c685){const _0x20ab5a=_0x187c,_0xc2fabe=_0x24cc04();while(!![]){try{const _0x16c100=parseInt(_0x20ab5a(0xcb))/0x1+parseInt(_0x20ab5a(0x12e))/0x2*(parseInt(_0x20ab5a(0x26c))/0x3)+parseInt(_0x20ab5a(0x3d0))/0x4*(parseInt(_0x20ab5a(0x1d8))/0x5)+-parseInt(_0x20ab5a(0xd6))/0x6*(parseInt(_0x20ab5a(0x242))/0x7)+parseInt(_0x20ab5a(0x182))/0x8+parseInt(_0x20ab5a(0x197))/0x9+-parseInt(_0x20ab5a(0x30c))/0xa;if(_0x16c100===_0x21c685)break;else _0xc2fabe['push'](_0xc2fabe['shift']());}catch(_0x4c4a15){_0xc2fabe['push'](_0xc2fabe['shift']());}}}(_0x1f68,0xdbcfe));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x560757,BASES_DASHBOARD_GRID_COLUMNS as _0x3587a5,BaseChartRuntimeService as _0x2cf236,BaseDashboardResourceService as _0x3a16be,BaseDashboardWidgetType as _0x4dd1ab,CreateBaseDashboardCommand as _0x4764c4,DeleteBaseDashboardCommand as _0x391460,RemoveBaseDashboardWidgetCommand as _0x105c7d,UniverBaseDashboardPlugin as _0x7e7509,UpdateBaseDashboardCommand as _0x1e3e1b,UpdateBasePivotViewCommand as _0x173771,UpsertBaseDashboardWidgetCommand as _0x1041db,canEditBaseDashboard as _0x5706cb,canEditBasePivotView as _0x86a5a0,createBasePivotTable as _0x2a70ba,resolveBasePivotChartRowDirection as _0x1aba1a}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x166344,BaseMobileDrawer as _0x19aa31,BaseMobileFilterOperand as _0x2e05d2,BaseMobileFilterPanel as _0x52caf8,BaseUnitCollaborationStatus as _0x450293,FormulaEditorPanel as _0x6c795b,IBaseDashboardUIExtensionRegistryService as _0x5b5009,IBaseViewUIRegistryService as _0x414da1,MobileFormulaEditorPanel as _0x4524e4,UniverBasesMobileUIPlugin as _0x36ac31,UniverBasesUIPlugin as _0x408ea8,formulaToEditorFormula as _0x196177,normalizeEditorFormulaForConfig as _0x43ca80,toFormulaMenuTables as _0x372e38,toMenuFields as _0x28d476}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x8d6a08,ChartAxisSection as _0x51c0bf,ChartColorField as _0x209a9d,ChartCommonDataMappingSection as _0x70f2bb,ChartEditBlockTitle as _0x30e809,ChartEditPanel as _0x59879a,ChartEditPanelSection as _0x4baf7f,ChartEditPanelTab as _0x389329,ChartEditPanelTabs as _0x46e44d,ChartEditorCapability as _0xc8129,ChartEditorProvider as _0x4f5736,ChartFunnelStyleSection as _0x5591da,ChartGradientFillField as _0x1ca39a,ChartGridlinesAndTicksSection as _0x58fc11,ChartHeatmapStyleSection as _0x1aca4d,ChartHostAdapter as _0x367b2a,ChartIndicatorLineSection as _0x54d111,ChartLegendSection as _0x2205cf,ChartLineAndAreaSection as _0x2a4c4d,ChartNumberFormatAtom as _0x3f2847,ChartParetoSeriesSection as _0x117afe,ChartPieStyleSection as _0x32a1e9,ChartRadarStyleSection as _0x1423a1,ChartRelationStyleSection as _0x4117cf,ChartSectionAccordion as _0x151ab2,ChartSectionAccordionContent as _0x37b567,ChartSectionAccordionItem as _0x53ec64,ChartSectionAccordionTrigger as _0x51656d,ChartSeriesSection as _0x4f3338,ChartStackField as _0x1ed3a5,ChartStyleSection as _0xc54821,ChartThemeField as _0x3aee5e,ChartThreeDSection as _0x31fb16,ChartTitlesSection as _0x517322,ChartTrendlineSection as _0x311435,ChartTypeField as _0x3352ce,ChartTypeSpecificDataSection as _0x468257,ChartTypeSpecificSetupSection as _0x53d74e,ChartTypeSpecificStyleSection as _0x3f116c,ChartUIService as _0x4186b4,ChartViewStateRegistry as _0x3de432,ChartWaterfallSetupFields as _0x153e3c,ChartWaterfallStyleSection as _0x122082,ChartWordCloudStyleSection as _0x51f587,DEFAULT_CHART_AXIS_VALUES as _0x2b6728,DEFAULT_CHART_FUNNEL_VALUES as _0x5683c7,DEFAULT_CHART_HEATMAP_VALUES as _0x165da0,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x2adc54,DEFAULT_CHART_LEGEND_VALUES as _0x1267c7,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x514143,DEFAULT_CHART_PARETO_VALUES as _0x1e2ae9,DEFAULT_CHART_PIE_VALUES as _0x2e45c9,DEFAULT_CHART_RADAR_VALUES as _0x32285a,DEFAULT_CHART_RELATION_VALUES as _0x270a4f,DEFAULT_CHART_SERIES_VALUES as _0x338c3f,DEFAULT_CHART_STYLE_VALUES as _0x2d6dc1,DEFAULT_CHART_TITLE_VALUES as _0x5a35d2,DEFAULT_CHART_TRENDLINE_VALUES as _0x59bb04,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x3d8d6d,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x5630e0,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x5624b3,MobileChartEditorControls as _0x103427,MobileChartEditorProvider as _0x323b1b,UniverChartMobileUIPlugin as _0x38b402,UniverChartUIPlugin as _0x41f191,buildChartTypeSelectOptions as _0x2f5cf3,chartTypeSupportsCapability as _0x2ecac2,chartTypeSupportsLineAndAreaStyle as _0x1dac15,useChartEditorChartType as _0x10d8e4,useChartEditorHasRightAxis as _0xef83d1}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x5d1ed0}from'@univerjs-pro/license';import{ShapeFormulaService as _0x4aaa31,UniverShapeEditorPlugin as _0xff803e,createFormulaShapeData as _0x154b06}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0x3bfbe2,BaseFilterConjunction as _0x26ccb5,BaseFilterOperator as _0x462609,BaseViewType as _0xc74f11,DependentOn as _0xb94e7b,Disposable as _0x419e57,ICommandService as _0x1e6f93,IConfigService as _0x8e960e,IImageIoService as _0x2667ef,ILogService as _0x53f9ce,IPermissionService as _0x100697,IUndoRedoService as _0x12718a,IUniverInstanceService as _0x4829da,ImageSourceType as _0x3892df,Inject as _0x2d5804,Injector as _0x3c350b,LocaleService as _0x1ecd96,ObjectPermissionService as _0x5df1d5,Plugin as _0x1ea012,RedoCommand as _0x5eb015,ThemeService as _0x56b689,UndoCommand as _0x1c6299,UniverInstanceType as _0x247fc0,createParagraphId as _0x1be82d,dateKit as _0x3276ff,debounce as _0x18fc5e,generateRandomId as _0x2cedf9,merge as _0x362ea8,numfmt as _0x52ec2b,touchDependencies as _0xe4152}from'@univerjs/core';import{UniverDocsUIPlugin as _0x175601}from'@univerjs/docs-ui';import{ArrowDownIcon as _0xfb8e72,ArrowUpIcon as _0x343cd3,AscendingIcon as _0x558ec6,CalendarIcon as _0x143320,ChartIcon as _0x5f4d2a,CloseIcon as _0x1ab83b,DeleteIcon as _0x275aa7,DescendingIcon as _0x3c94ed,ExpandIcon as _0x6d0af7,FilterIcon as _0x266672,GripVerticalIcon as _0x1e67fc,IncreaseIcon as _0x4f1759,MoreDownIcon as _0x3693ad,MoreHorizontalIcon as _0x4093a6,NumberIcon as _0xfa6b5,PenIcon as _0x1d4ca0,PivotTableIcon as _0x55ff4b,ProtectIcon as _0x44f2df,RedoIcon as _0x245c5e,SearchIcon as _0xa664ad,TextIcon as _0x45f36b,UndoIcon as _0x4e88b7}from'@univerjs/icons';import{combineLatest as _0x4b0df4,map as _0x51821f,merge as _0x5f1bfe,skip as _0xf92f5f}from'rxjs';import{SetBasePermissionCommand as _0x5205b3,getBaseDashboardPermissionObjectId as _0x4b369a}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x5b5322}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x3069d9,ShapeLineTypeEnum as _0xaf4f42,ShapeTypeEnum as _0x5d0718}from'@univerjs-pro/engine-shape';import{Button as _0x101ca4,Checkbox as _0x57ed34,DatePicker as _0x485a77,Dialog as _0x4ce712,DropdownMenu as _0x56bbe5,Input as _0x5d579d,InputNumber as _0x57c888,MobileDialog as _0x5aeff1,MobileDropdownMenu as _0x4b4d66,MobileSelect as _0x71f9e8,MultipleSelect as _0x5ca0fb,Segmented as _0x18f25a,Select as _0x701e3d,Textarea as _0x80dadb,Tooltip as _0x2f0618,borderClassName as _0x3b0e1f,clsx as _0x37e66c,scrollbarClassName as _0xb0e9d1}from'@univerjs/design';import{UnitObject as _0x346fe7}from'@univerjs/protocol';import{ILayoutService as _0x23d8e9,ObjectPermissionButton as _0x4faeac,openObjectPermissionDialog as _0x523b72,useDependency as _0x40463f,useObservable as _0x5056f6}from'@univerjs/ui';import{useCallback as _0x26d744,useEffect as _0x185176,useMemo as _0x5c672b,useRef as _0x25fc59,useState as _0x4ebd7a}from'react';import{Fragment as _0x5554ea,jsx as _0x5628d9,jsxs as _0x2fa798}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x2ab57e,ChartRenderMode as _0x2d3214,ChartThemeService as _0x259141,ChartTypeBits as _0x1cf6fa,ChartWaterfallStyleTarget as _0x148de0,IChartRenderModelManagerService as _0x1b1321,RTLChartStyle as _0xa4c4f5,chartBitsUtils as _0x242779,chartTypeCanUseTrendLine as _0x3f9965,resolveChartRuntimeStyle as _0x197630,resolveDefaultChartHostFrameStyle as _0x4b1e9d,toChartModelUpdate as _0x5adbe1}from'@univerjs-pro/engine-chart';import{createPortal as _0x1c0161}from'react-dom';import{PivotCellStyleTypeEnum as _0x1dbe62,PivotDataFieldDataTypeEnum as _0xd2fae4,PivotDataFieldSortOperatorEnum as _0x1b5f3a,PivotFilterTypeEnum as _0x829bf6,PivotLayoutTypeEnum as _0xd936c5,PivotSubtotalPositionEnum as _0x551070,PivotSubtotalTypeEnum as _0x3bfa9b,PivotTableFiledAreaEnum as _0x87fd74,PivotTableValuePositionEnum as _0x3fa86b,isErrorValue as _0x3e551d,isPrefixValue as _0x2b18e7}from'@univerjs-pro/engine-pivot';var mr=_0x5d48da(0x3a6),hr=_0x5d48da(0x344);const gr='bases-dashboard-ui.config',_r={};function vr(_0x5a422e,_0x2463ea){const _0x5ac22d=_0x5d48da;let _0x111362=_0x40463f(_0x100697),_0x55e2a8=_0x5706cb(_0x111362,_0x5a422e,_0x2463ea);return _0x5056f6(()=>_0x111362[_0x5ac22d(0x27a)][_0x5ac22d(0x209)](_0x51821f(()=>_0x5706cb(_0x111362,_0x5a422e,_0x2463ea))),_0x55e2a8,!0x1,[_0x2463ea,_0x111362,_0x5a422e]);}function yr(_0x48aa7e,_0x650981,_0x29c2a5){const _0x2809a5=_0x5d48da;let _0x213337=_0x40463f(_0x100697),_0x5ee902=_0x86a5a0(_0x213337,_0x48aa7e,_0x650981,_0x29c2a5);return _0x5056f6(()=>_0x213337[_0x2809a5(0x27a)][_0x2809a5(0x209)](_0x51821f(()=>_0x86a5a0(_0x213337,_0x48aa7e,_0x650981,_0x29c2a5))),_0x5ee902,!0x1,[_0x213337,_0x650981,_0x48aa7e,_0x29c2a5]);}function br(_0x4b060b,_0x5be540=_0x5d48da(0x15c)){const _0xedf963=_0x5d48da;return{'backgroundImage':_0xedf963(0x274)+JSON[_0xedf963(0x3c1)](_0x4b060b)+')','backgroundPosition':_0x5be540===_0xedf963(0x2a3)?_0xedf963(0x1d5):_0xedf963(0x38c),'backgroundRepeat':_0x5be540===_0xedf963(0x2a3)?_0xedf963(0x2a3):_0xedf963(0x396),'backgroundSize':_0x5be540===_0xedf963(0x15c)?_0xedf963(0x15c):_0xedf963(0x1eb)};}const xr={'alignment':_0x5d48da(0x269),'currency':'USD','decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x5d48da(0x1eb),'numberFormat':'general'},Sr={'CNY':'¥','EUR':'€','USD':'$'};function Cr(_0x5b70d1){const _0x35391c=_0x5d48da;var _0x276a57;let _0x9d4daa=Dr(((_0x276a57=_0x5b70d1[_0x35391c(0x27e)][_0x35391c(0x3cb)])==null||(_0x276a57=_0x276a57[_0x35391c(0x371)])==null?void 0x0:_0x276a57[_0x35391c(0x1b0)])??'');return{...xr,..._0x9d4daa,..._0x5b70d1[_0x35391c(0x374)]};}function wr(_0x777079,_0xf92c84){const _0x572cde=_0x5d48da;let _0xed0cc4={..._0x777079[_0x572cde(0x374)],..._0xf92c84},_0x1707fc=Cr({..._0x777079,'appearance':_0xed0cc4}),_0x17e9b3=_0x777079[_0x572cde(0x27e)][_0x572cde(0x3cb)]??{'formula':''};return{..._0x777079,'appearance':_0xed0cc4,'shapeData':{..._0x777079[_0x572cde(0x27e)],'formulaBinding':{..._0x17e9b3,'numberFormat':{'pattern':Tr(_0x1707fc[_0x572cde(0x371)],_0x1707fc[_0x572cde(0xc9)],_0x1707fc[_0x572cde(0x1b3)])}}}};}function Tr(_0x4ba51e,_0x1488b2,_0x1c778a){const _0x1fe250=_0x5d48da;let _0x1d77b4=Math[_0x1fe250(0x16b)](0x0,Math[_0x1fe250(0x2cf)](0x8,Math['round'](_0x1488b2))),_0x3e7288=_0x1d77b4?'.'+'0'[_0x1fe250(0x2a3)](_0x1d77b4):'';switch(_0x4ba51e){case _0x1fe250(0x31b):return'0'+_0x3e7288;case _0x1fe250(0x228):return'0'+_0x3e7288+'%';case _0x1fe250(0x1b3):return(Sr[_0x1c778a]??_0x1c778a)+_0x1fe250(0x31c)+_0x3e7288;case'grouped':return _0x1fe250(0x31c)+_0x3e7288;case'compact':case _0x1fe250(0x308):return _0x1fe250(0x139);}}function Er(_0x54adf6,_0x7114fc,_0x43fb45){const _0x3fb8b8=_0x5d48da;return _0x43fb45['numberFormat']!==_0x3fb8b8(0xbd)||typeof _0x7114fc!='number'||!Number[_0x3fb8b8(0x206)](_0x7114fc)?_0x54adf6:new Intl[(_0x3fb8b8(0x160))](void 0x0,{'notation':_0x3fb8b8(0xbd),'minimumFractionDigits':_0x43fb45[_0x3fb8b8(0xc9)]??0x0,'maximumFractionDigits':_0x43fb45[_0x3fb8b8(0xc9)]??0x0})[_0x3fb8b8(0x231)](_0x7114fc);}function Dr(_0x11c280){const _0x3bfb32=_0x5d48da;var _0x150e9b,_0x3399bd;if(!_0x11c280||_0x11c280===_0x3bfb32(0x139))return{};let _0x443a3c=_0x11c280[_0x3bfb32(0x1c2)](/\.([0#]+)/),_0x178f1d=(_0x443a3c==null||(_0x150e9b=_0x443a3c[0x1])==null?void 0x0:_0x150e9b[_0x3bfb32(0x193)])??0x0;if(_0x11c280['includes']('%'))return{'decimalPlaces':_0x178f1d,'numberFormat':'percent'};let _0x447a83=(_0x3399bd=Object[_0x3bfb32(0x39a)](Sr)[_0x3bfb32(0x153)](([,_0x59cfa9])=>_0x11c280[_0x3bfb32(0x292)](_0x59cfa9)))==null?void 0x0:_0x3399bd[0x0];return _0x447a83?{'currency':_0x447a83,'decimalPlaces':_0x178f1d,'numberFormat':_0x3bfb32(0x1b3)}:{'decimalPlaces':_0x178f1d,'numberFormat':_0x11c280['includes'](',')?_0x3bfb32(0xa5):_0x3bfb32(0x31b)};}const Or={'center':'center','left':'flex-start','right':'flex-end'};function kr({dashboardId:_0x53a4b8,unitId:_0x3b08e6,widget:_0xcd3564}){const _0x7b1f9f=_0x5d48da;var _0x1f89d9,_0x3ab0d5,_0x2c225e,_0x67635e,_0x30baaa,_0x24796e,_0xe4b7f6,_0x1cdbd4,_0x59bd15;let _0x218504=_0x40463f(_0x4aaa31),_0x32044c=_0x40463f(_0x2667ef),_0x4558de=_0x40463f(_0x1ecd96),_0x38941e=_0x5c672b(()=>({'hostType':_0x247fc0[_0x7b1f9f(0x324)],'unitId':_0x3b08e6,'subUnitId':_0x53a4b8,'shapeId':_0xcd3564['id']}),[_0x53a4b8,_0x3b08e6,_0xcd3564['id']]),[_0x2b31c2,_0x366142]=_0x4ebd7a(()=>_0x218504[_0x7b1f9f(0x14d)](_0x38941e)),[_0x277246,_0x1fb780]=_0x4ebd7a(()=>{const _0x270289=_0x7b1f9f;var _0x259627;return(_0x259627=_0x218504[_0x270289(0xb7)](_0x38941e))==null?void 0x0:_0x259627['value'];}),[_0x43689c,_0x269e76]=_0x4ebd7a(),_0x3320a6=_0x25fc59(null),_0x23eb16=_0x25fc59(null),_0x573600=Cr(_0xcd3564);_0x185176(()=>{const _0x4f5797=_0x7b1f9f;let _0x56237c=_0x218504[_0x4f5797(0x338)][_0x4f5797(0x336)](_0x50affd=>{const _0x39b0fe=_0x4f5797;_0x50affd['unitId']===_0x3b08e6&&_0x50affd['subUnitId']===_0x53a4b8&&_0x50affd[_0x39b0fe(0x379)]===_0xcd3564['id']&&(_0x366142(_0x50affd[_0x39b0fe(0xf2)]),_0x1fb780(_0x50affd['result'][_0x39b0fe(0x32d)]));});return()=>_0x56237c[_0x4f5797(0x18f)]();},[_0x53a4b8,_0x218504,_0x38941e,_0x3b08e6,_0xcd3564['id']]),_0x185176(()=>{const _0x5e5b90=_0x7b1f9f;let _0x41db5f=_0x573600[_0x5e5b90(0x33c)];if(!_0x41db5f||_0x41db5f[_0x5e5b90(0xa8)]!==_0x3892df[_0x5e5b90(0xe0)])return;let _0x38fdbb=_0x32044c['getImageSourceCache'](_0x41db5f[_0x5e5b90(0x136)],_0x41db5f[_0x5e5b90(0xa8)]);if(_0x38fdbb!=null&&_0x38fdbb[_0x5e5b90(0x1f5)])return;let _0x2dc7bb=!0x0;return _0x32044c[_0x5e5b90(0xec)](_0x41db5f[_0x5e5b90(0x136)])['then'](_0x3dc761=>{const _0x246727=_0x5e5b90;_0x2dc7bb&&_0x269e76({'source':_0x41db5f[_0x246727(0x136)],'value':_0x3dc761});})['catch'](()=>void 0x0),()=>{_0x2dc7bb=!0x1;};},[_0x573600[_0x7b1f9f(0x33c)],_0x32044c]);let _0x4e6fd9=((_0x1f89d9=_0x573600['backgroundImage'])==null?void 0x0:_0x1f89d9[_0x7b1f9f(0xa8)])===_0x3892df[_0x7b1f9f(0xe0)]?((_0x3ab0d5=_0x32044c[_0x7b1f9f(0x17f)](_0x573600[_0x7b1f9f(0x33c)][_0x7b1f9f(0x136)],_0x573600[_0x7b1f9f(0x33c)]['sourceType']))==null?void 0x0:_0x3ab0d5[_0x7b1f9f(0x1f5)])??((_0x43689c==null?void 0x0:_0x43689c[_0x7b1f9f(0x136)])===_0x573600[_0x7b1f9f(0x33c)][_0x7b1f9f(0x136)]?_0x43689c[_0x7b1f9f(0x32d)]:''):((_0x2c225e=_0x573600[_0x7b1f9f(0x33c)])==null?void 0x0:_0x2c225e['source'])??'',_0x276d4f=_0xcd3564['shapeData'][_0x7b1f9f(0x261)],_0x4bbf16=_0x276d4f&&_0x7b1f9f(0x1e4)in _0x276d4f?(_0x67635e=_0x276d4f[_0x7b1f9f(0x1e4)])==null?void 0x0:_0x67635e[_0x7b1f9f(0x146)]:void 0x0,_0x4623c7=Er((_0x2b31c2==null?void 0x0:_0x2b31c2[_0x7b1f9f(0x2e2)])??'',_0x277246,_0x573600),_0x39432b=_0xcd3564[_0x7b1f9f(0x27e)][_0x7b1f9f(0x100)],_0x252f80=_0xcd3564[_0x7b1f9f(0x27e)][_0x7b1f9f(0x345)],_0x3892ca=_0x4bbf16==null||(_0x30baaa=_0x4bbf16[_0x7b1f9f(0x305)])==null?void 0x0:_0x30baaa[_0x7b1f9f(0x14b)],_0x42d84d=_0xcd3564[_0x7b1f9f(0x16e)]??_0xcd3564['title']??'';return _0x185176(()=>{const _0x24b721=_0x7b1f9f;let _0x370b40=_0x3320a6[_0x24b721(0xe8)],_0x4a2b7c=_0x23eb16[_0x24b721(0xe8)];if(!_0x370b40||!_0x4a2b7c)return;let _0x21fd10=()=>{const _0x3c7f7b=_0x24b721;if(_0x573600[_0x3c7f7b(0x27d)]===_0x3c7f7b(0x2ec)||!_0x370b40[_0x3c7f7b(0x178)]||!_0x370b40[_0x3c7f7b(0x34a)]){_0x4a2b7c['style'][_0x3c7f7b(0x268)]=_0x573600[_0x3c7f7b(0x268)]+'px';return;}let _0x3c2042=0x1,_0x135117=0x48,_0x416295=_0x3c2042;for(;_0x3c2042<=_0x135117;){let _0xadccdf=Math[_0x3c7f7b(0xf5)]((_0x3c2042+_0x135117)/0x2);_0x4a2b7c[_0x3c7f7b(0x36b)][_0x3c7f7b(0x268)]=_0xadccdf+'px',_0x4a2b7c[_0x3c7f7b(0x156)]<=_0x370b40[_0x3c7f7b(0x178)]&&_0x4a2b7c['scrollHeight']<=_0x370b40['clientHeight']?(_0x416295=_0xadccdf,_0x3c2042=_0xadccdf+0x1):_0x135117=_0xadccdf-0x1;}_0x4a2b7c[_0x3c7f7b(0x36b)][_0x3c7f7b(0x268)]=_0x416295+'px';};if(_0x21fd10(),typeof ResizeObserver>'u')return;let _0x1d599d=new ResizeObserver(_0x21fd10);return _0x1d599d[_0x24b721(0x386)](_0x370b40),()=>_0x1d599d[_0x24b721(0x101)]();},[_0x573600[_0x7b1f9f(0x268)],_0x573600[_0x7b1f9f(0x27d)],_0x4623c7]),_0x2fa798('div',{'data-dashboard-formula-shape':_0xcd3564['id'],'className':_0x7b1f9f(0x2dc),'style':{'backgroundColor':((_0x24796e=_0xcd3564[_0x7b1f9f(0x374)])==null?void 0x0:_0x24796e[_0x7b1f9f(0x2e5)])??((_0x39432b==null?void 0x0:_0x39432b['fillType'])===_0x3069d9['SolidFill']?_0x39432b[_0x7b1f9f(0x264)]??void 0x0:void 0x0),'border':(_0x252f80==null?void 0x0:_0x252f80['lineStrokeType'])===_0xaf4f42['SolidLine']?(_0x252f80[_0x7b1f9f(0x3ed)]??0x1)+_0x7b1f9f(0x215)+(_0x252f80['color']??'currentColor'):void 0x0,'borderRadius':_0xcd3564[_0x7b1f9f(0x273)]===_0x5d0718[_0x7b1f9f(0x226)]?0xc:void 0x0,'color':((_0xe4b7f6=_0xcd3564[_0x7b1f9f(0x374)])==null?void 0x0:_0xe4b7f6[_0x7b1f9f(0x13d)])??(_0x2b31c2==null?void 0x0:_0x2b31c2[_0x7b1f9f(0x264)])??(_0x3892ca==null||(_0x1cdbd4=_0x3892ca['cl'])==null?void 0x0:_0x1cdbd4[_0x7b1f9f(0x27b)])??void 0x0,'fontWeight':_0x3892ca!=null&&_0x3892ca['bl']?0x258:void 0x0,'textAlign':_0x573600['alignment']},'children':[_0x4e6fd9&&_0x5628d9('img',{'src':_0x4e6fd9,'alt':'','aria-hidden':_0x7b1f9f(0x1da),'className':'univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','style':{'objectFit':((_0x59bd15=_0x573600[_0x7b1f9f(0x33c)])==null?void 0x0:_0x59bd15[_0x7b1f9f(0x1f3)])??_0x7b1f9f(0x15c)}}),_0x2fa798('div',{'className':'univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','children':[_0x42d84d&&_0x5628d9(_0x7b1f9f(0x334),{'data-dashboard-formula-description':!0x0,'className':_0x7b1f9f(0x368),'children':_0x42d84d}),_0x5628d9('div',{'ref':_0x3320a6,'data-dashboard-formula-value':!0x0,'aria-label':_0x42d84d||_0x4558de['t'](_0x7b1f9f(0x38b)),'className':_0x7b1f9f(0x123),'style':{'justifyContent':Or[_0x573600[_0x7b1f9f(0x326)]]},'children':_0x5628d9(_0x7b1f9f(0x339),{'ref':_0x23eb16,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x573600[_0x7b1f9f(0x27d)],'className':_0x7b1f9f(0x2da),'children':_0x4623c7})})]})]});}function Y(_0x3c52d0,_0x52ca40){return function(_0x234436,_0x580925){_0x52ca40(_0x234436,_0x580925,_0x3c52d0);};}function Ar(_0x209677,_0x750a2a,_0x1f3817,_0x24be8c){const _0x2a5568=_0x5d48da;var _0x1cb919=arguments[_0x2a5568(0x193)],_0x68ea59=_0x1cb919<0x3?_0x750a2a:_0x24be8c===null?_0x24be8c=Object[_0x2a5568(0x138)](_0x750a2a,_0x1f3817):_0x24be8c,_0x4f63bb;if(typeof Reflect==_0x2a5568(0x262)&&typeof Reflect[_0x2a5568(0x301)]==_0x2a5568(0x201))_0x68ea59=Reflect[_0x2a5568(0x301)](_0x209677,_0x750a2a,_0x1f3817,_0x24be8c);else{for(var _0x43d555=_0x209677[_0x2a5568(0x193)]-0x1;_0x43d555>=0x0;_0x43d555--)(_0x4f63bb=_0x209677[_0x43d555])&&(_0x68ea59=(_0x1cb919<0x3?_0x4f63bb(_0x68ea59):_0x1cb919>0x3?_0x4f63bb(_0x750a2a,_0x1f3817,_0x68ea59):_0x4f63bb(_0x750a2a,_0x1f3817))||_0x68ea59);}return _0x1cb919>0x3&&_0x68ea59&&Object['defineProperty'](_0x750a2a,_0x1f3817,_0x68ea59),_0x68ea59;}let jr=class{constructor(_0x19cede,_0x1667f6,_0xc9129c){const _0x1eaf86=_0x5d48da;this[_0x1eaf86(0xa3)]=_0x19cede,this['_chartThemeService']=_0x1667f6,this[_0x1eaf86(0x135)]=_0xc9129c;}[_0x5d48da(0xfd)](){const _0x4eb9e9=_0x5d48da;return this[_0x4eb9e9(0x135)][_0x4eb9e9(0x36d)](_0x2d3214[_0x4eb9e9(0x3b2)],this[_0x4eb9e9(0x3d2)]());}['createRenderInput'](_0x75b2c4){const _0x17a813=_0x5d48da;let _0x47682c=_0x75b2c4[_0x17a813(0x1ad)]['config'];if(!_0x47682c)throw Error(_0x17a813(0x38e)+_0x75b2c4[_0x17a813(0x1c1)]+'\x20has\x20no\x20render\x20config.');let _0x543cdd=this[_0x17a813(0xa3)][_0x17a813(0x29b)]();return{'config':_0x47682c,'style':_0x197630({..._0x75b2c4[_0x17a813(0x1ad)][_0x17a813(0x36b)],'runtime':_0x75b2c4[_0x17a813(0x1ad)][_0x17a813(0xa9)](_0x543cdd),'direction':_0x543cdd},_0x47682c['type'])};}['_createContext'](){const _0x20b727=_0x5d48da;return{'resolveHostStyle':({style:_0x326437})=>_0x4b1e9d({'style':_0x326437,'getRenderColor':_0x29f14c=>this['_chartThemeService'][_0x20b727(0xac)](_0x29f14c)}),'resolveRenderBackgroundColor':({hostStyle:_0x1b71a2})=>_0x1b71a2[_0x20b727(0x100)]};}};jr=Ar([Y(0x0,_0x2d5804(_0x1ecd96)),Y(0x1,_0x2d5804(_0x259141)),Y(0x2,_0x1b1321)],jr);function Mr(_0x317ba1,_0x3baaec){const _0x1ba7ee=_0x5d48da;var _0x320c6e;_0x317ba1[_0x1ba7ee(0x36b)][_0x1ba7ee(0x2e5)]=_0x3baaec[_0x1ba7ee(0x100)]??_0x1ba7ee(0x317),_0x317ba1['style'][_0x1ba7ee(0x2e1)]=(_0x320c6e=_0x3baaec[_0x1ba7ee(0x2e1)])!=null&&_0x320c6e[_0x1ba7ee(0x264)]&&_0x3baaec[_0x1ba7ee(0x2e1)][_0x1ba7ee(0x3ed)]?_0x3baaec[_0x1ba7ee(0x2e1)][_0x1ba7ee(0x3ed)]+'px\x20solid\x20'+_0x3baaec[_0x1ba7ee(0x2e1)][_0x1ba7ee(0x264)]:'',_0x317ba1[_0x1ba7ee(0x36b)][_0x1ba7ee(0x194)]=_0x3baaec[_0x1ba7ee(0x2c0)]?_0x3baaec[_0x1ba7ee(0x2c0)]+'px':'',_0x317ba1[_0x1ba7ee(0x36b)][_0x1ba7ee(0x312)]='hidden',_0x317ba1[_0x1ba7ee(0x36b)][_0x1ba7ee(0x2ab)]=_0x1ba7ee(0x20d);}function Nr(_0x40e74e){'@babel/helpers - typeof';const _0x4c9bc3=_0x5d48da;return Nr=typeof Symbol=='function'&&typeof Symbol[_0x4c9bc3(0x109)]==_0x4c9bc3(0x15e)?function(_0x43314e){return typeof _0x43314e;}:function(_0xdca108){const _0x1db8df=_0x4c9bc3;return _0xdca108&&typeof Symbol==_0x1db8df(0x201)&&_0xdca108['constructor']===Symbol&&_0xdca108!==Symbol['prototype']?_0x1db8df(0x15e):typeof _0xdca108;},Nr(_0x40e74e);}function Pr(_0x23bbb2,_0x5c844a){const _0x2e08b1=_0x5d48da;if(Nr(_0x23bbb2)!=_0x2e08b1(0x262)||!_0x23bbb2)return _0x23bbb2;var _0x11b894=_0x23bbb2[Symbol[_0x2e08b1(0x113)]];if(_0x11b894!==void 0x0){var _0x94eae1=_0x11b894[_0x2e08b1(0xdf)](_0x23bbb2,_0x5c844a||'default');if(Nr(_0x94eae1)!=_0x2e08b1(0x262))return _0x94eae1;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5c844a===_0x2e08b1(0xd5)?String:Number)(_0x23bbb2);}function Fr(_0x2c73a6){const _0x2d011f=_0x5d48da;var _0x5868ea=Pr(_0x2c73a6,'string');return Nr(_0x5868ea)==_0x2d011f(0x15e)?_0x5868ea:_0x5868ea+'';}function Ir(_0x6c6fc5,_0xfd2eee,_0x4feb91){const _0x139fd3=_0x5d48da;return(_0xfd2eee=Fr(_0xfd2eee))in _0x6c6fc5?Object[_0x139fd3(0x2df)](_0x6c6fc5,_0xfd2eee,{'value':_0x4feb91,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x6c6fc5[_0xfd2eee]=_0x4feb91,_0x6c6fc5;}var Lr=class extends _0x419e57{constructor(_0x325a3b,_0x4d04a5){const _0x56ca11=_0x5d48da;super(),this['chartId']=_0x325a3b,this[_0x56ca11(0x11a)]=_0x4d04a5,Ir(this,_0x56ca11(0x362),_0x2d3214[_0x56ca11(0x3b2)]);}[_0x5d48da(0x1a9)](){const _0x928b31=_0x5d48da;return{'width':Math[_0x928b31(0x16b)](0x1,this[_0x928b31(0x11a)][_0x928b31(0x178)]),'height':Math[_0x928b31(0x16b)](0x1,this[_0x928b31(0x11a)]['clientHeight'])};}[_0x5d48da(0x235)](_0x31d235){const _0x32d635=_0x5d48da;Mr(this[_0x32d635(0x11a)],_0x31d235);}async[_0x5d48da(0x2ee)](){const _0x42fb32=_0x5d48da;return this[_0x42fb32(0x11a)];}[_0x5d48da(0x107)](){const _0x188f09=_0x5d48da;return this['_element'][_0x188f09(0x1f1)];}[_0x5d48da(0x216)](){}['markReady'](){}['markNotReady'](){}};function Rr({isRowDirection:_0x9ecf32,runtime:_0x112fb0}){const _0x56054e=_0x5d48da;let _0x3a1d28=_0x25fc59(null),_0x528e77=_0x40463f(_0x1ecd96),_0x1d4368=_0x40463f(_0x53f9ce),_0x1e2165=_0x40463f(jr),_0x3ee7cf=_0x40463f(_0x56b689);return _0x185176(()=>{const _0x4fadb8=_0x187c;let _0x1f28ca=_0x3a1d28[_0x4fadb8(0xe8)];if(!_0x1f28ca)return;_0x1f28ca[_0x4fadb8(0x23c)]();let {chartId:_0x3228cc,model:_0x2a519b}=_0x112fb0,_0x275e73=_0x2a519b[_0x4fadb8(0x3e2)],_0x582836=new Lr(_0x3228cc,_0x1f28ca),_0x299edb=_0x1e2165[_0x4fadb8(0xfd)](),_0x54c634=!0x1,_0x2efd0f=null,_0x176978=null,_0x32a32b=null,_0x1fcd7a=null,_0x2a81d2=!0x1,_0x3237ec=!0x1,_0x480bac=Promise[_0x4fadb8(0x248)]();_0x299edb[_0x4fadb8(0x202)](_0x582836);let _0xf95632=()=>{const _0xea578=_0x4fadb8;var _0x3b532f,_0xad6c65,_0x43a356,_0x1c1155;if(document[_0xea578(0x103)]===_0xea578(0x30b)||(_0x3b532f=(_0xad6c65=window)[_0xea578(0x30f)])!=null&&(_0x3b532f=_0x3b532f['call'](_0xad6c65,_0xea578(0x212)))!=null&&_0x3b532f[_0xea578(0xa2)]||(_0x43a356=(_0x1c1155=window)[_0xea578(0x30f)])!=null&&(_0x43a356=_0x43a356[_0xea578(0xdf)](_0x1c1155,'print'))!=null&&_0x43a356[_0xea578(0xa2)]||!_0x1f28ca[_0xea578(0x1f1)])return!0x1;let _0x2b5eb5=_0x1f28ca[_0xea578(0x319)]();return _0x2b5eb5['width']>0x0&&_0x2b5eb5['height']>0x0&&_0x2b5eb5[_0xea578(0x39f)]>0x0&&_0x2b5eb5[_0xea578(0xdc)]>0x0&&_0x2b5eb5[_0xea578(0x269)]<window[_0xea578(0xed)]&&_0x2b5eb5['top']<window[_0xea578(0x219)];},_0x1de769=()=>{const _0x1793ee=_0x4fadb8;_0x176978!==null&&clearTimeout(_0x176978),_0x1f28ca[_0x1793ee(0x19e)]['baseChartDataAnimation']='true',_0x1f28ca[_0x1793ee(0x19e)][_0x1793ee(0x207)]=String(_0x2ab57e),_0x176978=setTimeout(()=>{const _0x4aff10=_0x1793ee;_0x176978=null,delete _0x1f28ca['dataset'][_0x4aff10(0x13f)],delete _0x1f28ca[_0x4aff10(0x19e)][_0x4aff10(0x207)];},_0x2ab57e);},_0x2cc027=_0x18fc5e(()=>{const _0x139be7=_0x4fadb8;if(_0x54c634||(_0x2efd0f!==null&&(clearTimeout(_0x2efd0f),_0x2efd0f=null),!_0x2a519b[_0x139be7(0xa7)]))return;let _0x142150=_0x3237ec;_0x3237ec=!0x1,_0x1f28ca[_0x139be7(0x19e)]['chartType']=String(_0x2a519b[_0x139be7(0x287)]),_0x1f28ca[_0x139be7(0x19e)]['chartRowDirection']=String(_0x9ecf32);let _0x42d7d5=_0x1e2165[_0x139be7(0x1c5)](_0x112fb0),_0xdf0e40={'chartId':_0x3228cc,'config':_0x42d7d5[_0x139be7(0xa7)],'style':_0x42d7d5[_0x139be7(0x36b)]};_0x480bac=_0x480bac['then'](async()=>{const _0x532d4d=_0x139be7;_0x54c634||(_0x1f28ca[_0x532d4d(0x19e)][_0x532d4d(0x3ea)]=String(Number(_0x1f28ca['dataset'][_0x532d4d(0x3ea)]??0x0)+0x1),_0x142150&&_0x32a32b&&_0x299edb['renderTransition']&&_0xf95632()?(await _0x299edb[_0x532d4d(0x33a)](_0x32a32b,_0xdf0e40,{'duration':_0x2ab57e}),_0x54c634||_0x1de769()):await _0x299edb[_0x532d4d(0x14e)](_0xdf0e40),_0x32a32b=_0xdf0e40);})[_0x139be7(0x26d)](_0xabee1d=>_0x1d4368[_0x139be7(0x1a0)](_0x139be7(0xde),_0xabee1d));},0x64,{'leading':!0x0,'trailing':!0x0,'maxWait':0x64}),_0x5f0bb7=(_0x155494=!0x1)=>{_0x3237ec||=_0x155494,_0x2a81d2||(_0x2a81d2=!0x0,queueMicrotask(()=>{_0x2a81d2=!0x1,_0x54c634||_0x2cc027();}));},_0x3ba4f9=[_0x275e73['data$'][_0x4fadb8(0x336)](_0x17c1c2=>{const _0x258670=_0x4fadb8;let _0x3c216a=JSON[_0x258670(0x3c1)](_0x17c1c2);_0x1fcd7a!=null&&_0x1fcd7a!==_0x3c216a&&_0x5f0bb7(!0x0),_0x1fcd7a=_0x3c216a;}),_0x2a519b['config$']['subscribe'](_0x51f2e6=>{_0x51f2e6&&_0x5f0bb7();}),_0x2a519b['style$']['subscribe'](()=>_0x5f0bb7()),_0x528e77[_0x4fadb8(0x1bc)][_0x4fadb8(0x336)](()=>_0x5f0bb7()),_0x4b0df4([_0x3ee7cf['currentTheme$'],_0x3ee7cf[_0x4fadb8(0x227)]])[_0x4fadb8(0x209)](_0xf92f5f(0x1))[_0x4fadb8(0x336)](()=>_0x5f0bb7())],_0x1d090e=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x5b73d6=_0x4fadb8;_0x54c634||(_0x582836[_0x5b73d6(0x216)](),_0x2efd0f!==null&&clearTimeout(_0x2efd0f),_0x2efd0f=setTimeout(()=>_0x5f0bb7(),0x64));});return _0x1d090e==null||_0x1d090e[_0x4fadb8(0x386)](_0x1f28ca),()=>{const _0x6b5b90=_0x4fadb8;_0x54c634=!0x0,_0x2cc027[_0x6b5b90(0x1bd)](),_0x2efd0f!==null&&clearTimeout(_0x2efd0f),_0x176978!==null&&clearTimeout(_0x176978),delete _0x1f28ca[_0x6b5b90(0x19e)][_0x6b5b90(0x13f)],delete _0x1f28ca[_0x6b5b90(0x19e)][_0x6b5b90(0x207)],_0x1d090e==null||_0x1d090e[_0x6b5b90(0x101)](),_0x3ba4f9['forEach'](_0x2b94cd=>_0x2b94cd[_0x6b5b90(0x18f)]()),_0x299edb[_0x6b5b90(0x1b9)](),_0x582836['dispose'](),_0x1f28ca[_0x6b5b90(0x23c)]();};},[_0x9ecf32,_0x528e77,_0x1d4368,_0x1e2165,_0x112fb0,_0x3ee7cf]),_0x5628d9(_0x56054e(0x334),{'ref':_0x3a1d28,'data-u-comp':'base-pivot-chart','className':'univer-absolute\x20univer-inset-0\x20univer-overflow-hidden'});}function zr({filters:_0x5af1c9,onRuntimeChange:_0xc0c239,unitId:_0x3de44b,widget:_0x40a9cc}){const _0x1a2402=_0x5d48da;let _0x32895f=_0x40463f(_0x4829da),_0x70fe7e=_0x40463f(_0x1ecd96),_0x2f89b1=_0x40463f(_0x53f9ce),_0x5c0b3a=_0x40463f(_0x2cf236),[_0x53cd94,_0x2f9f66]=_0x4ebd7a(null),[_0x3b63f9,_0x1fd0d0]=_0x4ebd7a(!0x1),[_0x2172ff,_0x4afc9a]=_0x4ebd7a(null),_0x3b64a8=_0x25fc59(_0x1a2402(0x1e6)+_0x2cedf9(0x8)),_0x15d9a6=_0x32895f['getUnit'](_0x3de44b,_0x247fc0[_0x1a2402(0x324)]),_0x5b64ca=_0x15d9a6==null?void 0x0:_0x15d9a6[_0x1a2402(0x3e8)]()[_0x1a2402(0x3b5)][_0x40a9cc[_0x1a2402(0x9d)]],_0x475831=_0x5b64ca==null?void 0x0:_0x5b64ca[_0x1a2402(0x2eb)][_0x40a9cc[_0x1a2402(0x260)]],_0x1ac970=Br(_0x475831);if(_0x185176(()=>{const _0x1f2893=_0x1a2402;if(!_0x1ac970)return;let _0x14fcee=_0x3b64a8[_0x1f2893(0xe8)];return _0x5c0b3a[_0x1f2893(0x1fe)](_0x14fcee,{'unitId':_0x3de44b,'tableId':_0x40a9cc[_0x1f2893(0x9d)],'viewId':_0x40a9cc[_0x1f2893(0x260)],'filters':[]}),()=>{const _0x558f62=_0x1f2893;_0x5c0b3a[_0x558f62(0x3e0)](_0x3de44b,_0x14fcee),_0xc0c239==null||_0xc0c239(_0x40a9cc['id'],null);};},[_0x1ac970,_0xc0c239,_0x5c0b3a,_0x3de44b,_0x40a9cc['id'],_0x40a9cc[_0x1a2402(0x260)],_0x40a9cc[_0x1a2402(0x9d)]]),_0x185176(()=>{const _0x2c85ed=_0x1a2402;if(!Br(_0x475831))return;let _0x13a4b8=!0x0,_0x164060=_0x40a9cc[_0x2c85ed(0x204)]??_0x475831['config'][_0x2c85ed(0x204)],_0x4adec5={'unitId':_0x3de44b,'tableId':_0x40a9cc[_0x2c85ed(0x9d)],'viewId':_0x40a9cc[_0x2c85ed(0x260)],'filters':[_0x475831[_0x2c85ed(0x122)]??null,..._0x5af1c9]};return _0x5c0b3a[_0x2c85ed(0x276)](_0x3de44b,_0x3b64a8[_0x2c85ed(0xe8)],_0x4adec5,_0x164060)['then'](_0xbd77b2=>{const _0x517776=_0x2c85ed;if(!_0x13a4b8||!_0xbd77b2)return;let _0x4a88c9=_0x5c0b3a[_0x517776(0x128)](_0x3de44b,_0x3b64a8['current'])??null;_0x2f9f66(_0xbd77b2),_0x4afc9a(_0x4a88c9),_0x1fd0d0(!0x1),_0xc0c239==null||_0xc0c239(_0x40a9cc['id'],_0x4a88c9);})['catch'](_0x2db6fb=>{_0x2f89b1['error']('[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x2db6fb),_0x13a4b8&&(_0x2f9f66(null),_0x1fd0d0(!0x0));}),()=>{_0x13a4b8=!0x1;};},[_0x5af1c9,_0x2f89b1,_0xc0c239,_0x5c0b3a,_0x3de44b,_0x475831,_0x40a9cc[_0x1a2402(0x204)],_0x40a9cc['id'],_0x40a9cc[_0x1a2402(0x260)],_0x40a9cc[_0x1a2402(0x9d)]]),!Br(_0x475831))return _0x5628d9('div',{'className':_0x1a2402(0x2bf),'children':_0x70fe7e['t'](_0x1a2402(0x1bb))});let _0x23f5f0=_0x5c0b3a[_0x1a2402(0x128)](_0x3de44b,_0x3b64a8[_0x1a2402(0xe8)])===_0x2172ff?_0x2172ff:null;return _0x53cd94&&_0x23f5f0?_0x5628d9(Rr,{'isRowDirection':_0x1aba1a((_0x40a9cc['chart']??_0x475831['config'][_0x1a2402(0x204)])[_0x1a2402(0x1e8)]),'runtime':_0x23f5f0}):_0x5628d9(_0x1a2402(0x334),{'className':_0x1a2402(0x2bf),'children':_0x70fe7e['t'](_0x3b63f9?_0x1a2402(0x372):_0x1a2402(0x2a9))});}function Br(_0x431f9d){const _0x44ddea=_0x5d48da;return(_0x431f9d==null?void 0x0:_0x431f9d['type'])===_0xc74f11[_0x44ddea(0xe1)]&&typeof _0x431f9d[_0x44ddea(0xa7)]=='object'&&_0x431f9d[_0x44ddea(0xa7)]!==null&&_0x44ddea(0x106)in _0x431f9d[_0x44ddea(0xa7)]&&_0x44ddea(0x204)in _0x431f9d[_0x44ddea(0xa7)];}const Vr={'alignment':_0x5d48da(0x269),'fontSize':0x12,'fontSizeMode':_0x5d48da(0x1eb)};function Hr(_0x247a55){const _0x25d962=_0x5d48da;return{...Vr,..._0x247a55[_0x25d962(0x374)]};}function Ur(_0x57ad97){const _0x121ad3=_0x5d48da;var _0x2b2668;return((_0x2b2668=_0x57ad97[_0x121ad3(0x3eb)])==null?void 0x0:_0x2b2668['dataStream']['replace'](/\r\n$/,'')[_0x121ad3(0x2e0)](/\r/g,'\x0a'))??'';}function Wr(_0x4ead5e,_0x1a7cff){const _0x436060=_0x5d48da;var _0x8bb7d5;let _0x545986=_0x1a7cff['replace'](/\r\n|\r/g,'\x0a')[_0x436060(0x120)]('\x0a'),_0x5968b2=_0x545986['join']('\x0d')+'\x0d\x0a',_0x34aa7a=((_0x8bb7d5=_0x4ead5e[_0x436060(0x3eb)])==null?void 0x0:_0x8bb7d5[_0x436060(0x367)])??[],_0x398ddb=new Set(_0x34aa7a[_0x436060(0x2ea)](_0xa26442=>_0xa26442[_0x436060(0x15a)])),_0x26ee5b=0x0,_0x4aab4e=_0x545986[_0x436060(0x2ea)]((_0x1d6fa1,_0x195290)=>{_0x26ee5b+=_0x1d6fa1['length'];let _0x178f21={..._0x34aa7a[_0x195290]??{'startIndex':_0x26ee5b,'paragraphId':_0x1be82d(_0x398ddb)},'startIndex':_0x26ee5b};return _0x26ee5b+=0x1,_0x178f21;});return{..._0x4ead5e,'body':{..._0x4ead5e['body'],'dataStream':_0x5968b2,'paragraphs':_0x4aab4e,'textRuns':[]}};}function Gr({widget:_0x132cd7}){const _0x45e077=_0x5d48da;let _0x45e8bd=_0x40463f(_0x56b689),_0x2c3af1=_0x40463f(_0x1ecd96),_0x3b3c6c=_0x5056f6(()=>_0x45e8bd[_0x45e077(0x137)],_0x45e8bd[_0x45e077(0x3cf)](),!0x1,[_0x45e8bd]),_0x2b893f=_0x25fc59(null),_0x58a1a2=_0x25fc59(null),_0x4cc9f0=Hr(_0x132cd7),_0x12aa01=_0x4cc9f0[_0x45e077(0x2e5)]??_0x3b3c6c['gray'][0x0],_0x511ce0=_0x4cc9f0[_0x45e077(0x13d)]??_0x3b3c6c[_0x45e077(0x14a)][0x3e8],_0x3a894c=Ur(_0x132cd7['document']);return _0x185176(()=>{const _0x5afb81=_0x45e077;let _0xfae14=_0x2b893f[_0x5afb81(0xe8)],_0x266a12=_0x58a1a2[_0x5afb81(0xe8)];if(!_0xfae14||!_0x266a12)return;let _0x1fd93e=()=>{const _0x41907c=_0x5afb81;if(_0x4cc9f0[_0x41907c(0x27d)]===_0x41907c(0x2ec)||!_0xfae14[_0x41907c(0x178)]||!_0xfae14[_0x41907c(0x34a)]){_0x266a12[_0x41907c(0x36b)][_0x41907c(0x268)]=_0x4cc9f0[_0x41907c(0x268)]+'px';return;}let _0x5c6b69=0x8,_0x1b468b=0x48,_0x1ce856=_0x5c6b69;for(;_0x5c6b69<=_0x1b468b;){let _0x45cb1e=Math[_0x41907c(0xf5)]((_0x5c6b69+_0x1b468b)/0x2);_0x266a12['style'][_0x41907c(0x268)]=_0x45cb1e+'px',_0x266a12['scrollWidth']<=_0xfae14[_0x41907c(0x178)]&&_0x266a12['scrollHeight']<=_0xfae14['clientHeight']?(_0x1ce856=_0x45cb1e,_0x5c6b69=_0x45cb1e+0x1):_0x1b468b=_0x45cb1e-0x1;}_0x266a12[_0x41907c(0x36b)]['fontSize']=_0x1ce856+'px';};if(_0x1fd93e(),typeof ResizeObserver>'u')return;let _0x2b8625=new ResizeObserver(_0x1fd93e);return _0x2b8625['observe'](_0xfae14),()=>_0x2b8625[_0x5afb81(0x101)]();},[_0x4cc9f0[_0x45e077(0x268)],_0x4cc9f0[_0x45e077(0x27d)],_0x3a894c]),_0x5628d9(_0x45e077(0x334),{'data-dashboard-text-widget':_0x132cd7['id'],'className':_0x45e077(0x3bf),'style':{'backgroundColor':_0x12aa01,'color':_0x511ce0},'children':_0x5628d9('div',{'ref':_0x2b893f,'data-dashboard-text-content':!0x0,'aria-label':_0x2c3af1['t'](_0x45e077(0x126)),'className':_0x45e077(0x291),'children':_0x5628d9(_0x45e077(0x334),{'ref':_0x58a1a2,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x4cc9f0[_0x45e077(0x27d)],'className':_0x45e077(0x29f),'style':{'textAlign':_0x4cc9f0[_0x45e077(0x326)]},'children':_0x3a894c})})});}function Kr({dashboard:_0x1351cd,editable:_0x22bfb3=!0x0,onSelectWidget:_0x42be92,renderWidget:_0x379327,renderWidgetActions:_0x26f84e,selectedWidgetId:_0x58e435,widgetLabel:_0x474819}){const _0x553c96=_0x5d48da;return _0x5628d9(_0x553c96(0x334),{'data-dashboard-scroll-container':!0x0,'className':_0x37e66c(_0x553c96(0x2b2),_0xb0e9d1),'onClick':_0x22bfb3?_0x1e848f=>{const _0x28ad38=_0x553c96;if(!(_0x1e848f[_0x28ad38(0x320)]instanceof Node)||!_0x1e848f[_0x28ad38(0x3c6)][_0x28ad38(0x1d4)](_0x1e848f[_0x28ad38(0x320)]))return;let _0x3d7747=_0x1e848f[_0x28ad38(0x320)]instanceof Element?_0x1e848f[_0x28ad38(0x320)]:_0x1e848f[_0x28ad38(0x320)][_0x28ad38(0x3b0)];_0x3d7747!=null&&_0x3d7747['closest']('[data-dashboard-widget]')||_0x42be92==null||_0x42be92();}:void 0x0,'children':_0x5628d9(_0x553c96(0x334),{'data-dashboard-grid':!0x0,'className':_0x553c96(0x35f),'children':_0x1351cd[_0x553c96(0x3a0)][_0x553c96(0x2ea)](_0x19e746=>{const _0x6b23c8=_0x553c96;let _0x4035fa=_0x1351cd[_0x6b23c8(0x1f6)][_0x19e746];if(!_0x4035fa)return null;let _0x32a09a=Math['max'](0xb4,_0x4035fa[_0x6b23c8(0x3e1)][_0x6b23c8(0x314)]*_0x560757);return _0x2fa798(_0x6b23c8(0x335),{'data-dashboard-widget':_0x4035fa['id'],'aria-label':_0x4035fa[_0x6b23c8(0xbc)]??_0x474819(_0x4035fa),'className':_0x37e66c(_0x6b23c8(0x18e),_0x4035fa['type']===_0x4dd1ab[_0x6b23c8(0x3c0)]||_0x4035fa[_0x6b23c8(0x278)]===_0x4dd1ab[_0x6b23c8(0x2c2)]?'univer-bg-transparent\x20dark:!univer-bg-transparent':'univer-bg-gray-0\x20dark:!univer-bg-gray-900',_0x22bfb3&&_0x58e435===_0x4035fa['id']?_0x6b23c8(0x2b6):'univer-border-gray-200\x20dark:!univer-border-gray-700'),'style':{'minHeight':_0x32a09a,'height':_0x32a09a},'tabIndex':_0x22bfb3?0x0:void 0x0,'onClick':_0x22bfb3?()=>_0x42be92==null?void 0x0:_0x42be92(_0x4035fa['id']):void 0x0,'onFocus':_0x22bfb3?()=>_0x42be92==null?void 0x0:_0x42be92(_0x4035fa['id']):void 0x0,'children':[_0x22bfb3&&_0x5628d9(_0x6b23c8(0x334),{'className':_0x6b23c8(0x143),'children':_0x26f84e==null?void 0x0:_0x26f84e(_0x4035fa)}),_0x5628d9('div',{'className':_0x6b23c8(0x20a),'children':_0x379327(_0x4035fa)})]},_0x4035fa['id']);})})});}let qr=class extends _0x4186b4{constructor(_0x4cb094){const _0x4adf75=_0x5d48da;super(_0x4cb094),Ir(this,_0x4adf75(0x1ab),null);}[_0x5d48da(0xb2)](_0x18dfb0){}};qr=Ar([Y(0x0,_0x2d5804(_0x3de432))],qr);function Jr({children:_0x57d3af}){return _0x5628d9(_0x103427,{'children':_0x57d3af});}function Yr(_0x351973){return _0x5628d9(_0x71f9e8,{..._0x351973});}function Xr(_0x1a8e74){return _0x5628d9(_0x4b4d66,{..._0x1a8e74});}function Zr(_0x113d6a){return _0x5628d9(_0x5aeff1,{..._0x113d6a});}var Qr;const X={'axis':{..._0x2b6728,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x5683c7,'heatmap':_0x165da0,'indicatorLine':_0x2adc54,'legend':_0x1267c7,'lineAndArea':_0x514143,'pareto':_0x1e2ae9,'pie':_0x2e45c9,'radar':_0x32285a,'relation':{..._0x270a4f,'useValueAsSymbolSize':!0x0},'series':{..._0x338c3f,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Qr=_0xa4c4f5[_0x5d48da(0x1fb)])==null?void 0x0:Qr['rightYAxis'])??!0x1}},'style':_0x2d6dc1,'titles':_0x5a35d2,'trendline':_0x59bb04,'waterfall':{..._0x3d8d6d,'useSubtotal':!0x0},'waterfallStyle':_0x5630e0,'wordCloud':_0x5624b3},$r=[_0x1cf6fa['Line'],_0x1cf6fa[_0x5d48da(0x140)],_0x1cf6fa['WordCloud'],_0x1cf6fa[_0x5d48da(0x34d)],_0x1cf6fa['Funnel'],_0x1cf6fa[_0x5d48da(0x28b)],_0x1cf6fa['Sankey'],_0x1cf6fa[_0x5d48da(0x385)],_0x1cf6fa[_0x5d48da(0x3cd)],_0x1cf6fa['Candlestick'],_0x1cf6fa[_0x5d48da(0xb8)],_0x1cf6fa[_0x5d48da(0x28d)],_0x1cf6fa[_0x5d48da(0xf1)],_0x1cf6fa[_0x5d48da(0x186)],_0x1cf6fa[_0x5d48da(0xe5)]];function ei(_0x338386){const _0x45af5c=_0x5d48da;let {config:_0x1e03f4,onChange:_0x2fe0f1,runtime:_0x4ccc22,tableName:_0x3d18f4}=_0x338386,_0xbbbfa6=_0x40463f(qr),_0x53d506=_0x40463f(_0x1ecd96),[_0x416928,_0x550f64]=_0x4ebd7a(_0x389329[_0x45af5c(0xf0)]),_0x59aec9=_0x5c672b(()=>new _0x367b2a(_0x4ccc22['model'],{'commit':_0x2712b6=>{const _0x1eb803=_0x45af5c;var _0x5a73bf;let _0x218c0a=_0x4ccc22[_0x1eb803(0x1ad)],_0x495fbb=_0x5adbe1(_0x2712b6,{'series':(_0x5a73bf=_0x218c0a[_0x1eb803(0xa7)])==null?void 0x0:_0x5a73bf[_0x1eb803(0x32f)],'currentChartType':_0x218c0a[_0x1eb803(0x287)],'currentStyle':_0x218c0a[_0x1eb803(0x36b)],'currentContext':_0x218c0a[_0x1eb803(0x378)],'currentDataAggregation':_0x218c0a[_0x1eb803(0x2fa)]});_0x2fe0f1({'chart':ti(_0x1e03f4[_0x1eb803(0x204)],_0x495fbb)});}}),[_0x1e03f4[_0x45af5c(0x204)],_0x2fe0f1,_0x4ccc22]),_0x4e577d=_0x5c672b(()=>_0x2f5cf3(_0x8d6a08['map'](_0x5019d9=>({..._0x5019d9,'label':_0x53d506['t'](ai(_0x5019d9['labelId']))}))),[_0x53d506]);return _0x5628d9(_0x323b1b,{'chartUIService':_0xbbbfa6,'hostAdapter':_0x59aec9,'children':_0x2fa798(_0x45af5c(0x334),{'className':_0x45af5c(0x1e2),'children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x53d506['t'](_0x45af5c(0x142)),'className':_0x45af5c(0x3c9),'items':[{'label':_0x53d506['t'](_0x45af5c(0x360)),'panelId':_0x45af5c(0x3b1),'value':_0x389329[_0x45af5c(0xf0)]},{'label':_0x53d506['t'](_0x45af5c(0x15b)),'panelId':_0x45af5c(0x271),'value':_0x389329[_0x45af5c(0x2c8)]}],'value':_0x416928,'onChange':_0x550f64}),_0x416928===_0x389329[_0x45af5c(0xf0)]?_0x5628d9(_0x59879a,{'id':_0x45af5c(0x3b1),'label':_0x53d506['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x2fa798(_0x45af5c(0x334),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x5628d9(_0x3352ce,{'options':_0x4e577d}),_0x5628d9(_0x53d74e,{}),_0x5628d9(_0x3aee5e,{}),_0x5628d9(ni,{}),_0x5628d9(_0x1ed3a5,{}),_0x2fa798(_0x45af5c(0x334),{'children':[_0x5628d9(_0x30e809,{'title':_0x53d506['t'](_0x45af5c(0x22f))}),_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':_0x3d18f4})]}),_0x5628d9(_0x70f2bb,{'orientationControl':_0x5628d9(_0x101ca4,{'size':_0x45af5c(0x147),'onClick':()=>_0x2fe0f1({'chart':{..._0x1e03f4[_0x45af5c(0x204)],'orient':_0x1e03f4[_0x45af5c(0x204)][_0x45af5c(0x1e8)]===_0x45af5c(0x1f2)?_0x45af5c(0x33b):_0x45af5c(0x1f2)}}),'children':_0x53d506['t']('bases-dashboard-ui.chart.common.switchRowColumn')})}),_0x5628d9(_0x468257,{}),_0x5628d9(_0x153e3c,{'defaultValues':X['waterfall']}),_0x2fa798(_0x45af5c(0x334),{'children':[_0x5628d9(_0x30e809,{'title':_0x53d506['t'](_0x45af5c(0xb1))}),_0x5628d9(Yr,{'value':_0x1e03f4[_0x45af5c(0x31a)],'options':[{'value':_0x45af5c(0x27c),'label':_0x53d506['t'](_0x45af5c(0x239))},{'value':_0x45af5c(0x204),'label':_0x53d506['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':_0x45af5c(0x2d3),'label':_0x53d506['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x270154=>{const _0x436cde=_0x45af5c;(_0x270154===_0x436cde(0x27c)||_0x270154===_0x436cde(0x204)||_0x270154==='table')&&_0x2fe0f1({'displayMode':_0x270154});}})]})]})}):_0x5628d9(_0x59879a,{'id':_0x45af5c(0x271),'label':_0x53d506['t'](_0x45af5c(0x15b)),'children':_0x5628d9(ri,{})})]})});}function ti(_0x788fa0,_0x3ab5f3){const _0x21b13f=_0x5d48da;return{..._0x788fa0,'type':_0x3ab5f3[_0x21b13f(0x287)]??_0x788fa0['type'],'style':_0x3ab5f3[_0x21b13f(0x36b)]??_0x788fa0['style'],'context':_0x3ab5f3[_0x21b13f(0x378)]??_0x788fa0[_0x21b13f(0x378)],'dataAggregation':_0x3ab5f3[_0x21b13f(0x2fa)]??_0x788fa0[_0x21b13f(0x2fa)]};}function ni(){const _0x151a73=_0x5d48da;let _0x46dd2b=_0x10d8e4();return _0x5628d9(_0x1ca39a,{'visible':$r[_0x151a73(0x35b)](_0x464e5c=>!_0x242779['baseOn'](_0x46dd2b,_0x464e5c))});}function Z(_0x190672){const _0x328109=_0x5d48da;return _0x2fa798(_0x53ec64,{'id':_0x190672['id'],'children':[_0x5628d9(_0x51656d,{'children':_0x190672[_0x328109(0x249)]}),_0x5628d9(_0x37b567,{'children':_0x190672[_0x328109(0x29e)]})]});}function ri(){const _0x5541ae=_0x5d48da;let _0x518a23=_0x40463f(_0x1ecd96),_0x5347ce=_0x10d8e4(),_0x96a956=_0xef83d1(),[_0x506ab1,_0x5c276e]=_0x4ebd7a(null),_0x339d40=_0x242779['baseOn'](_0x5347ce,_0x1cf6fa[_0x5541ae(0x282)]),_0x1135bb=_0x5347ce===_0x1cf6fa['Radar'],_0x3b8ce7=_0x5347ce===_0x1cf6fa[_0x5541ae(0x21a)],_0x31606a=_0x5347ce===_0x1cf6fa[_0x5541ae(0x30a)],_0x212941=_0x242779[_0x5541ae(0x263)](_0x5347ce,_0x1cf6fa[_0x5541ae(0x3d8)]),_0x4113bf=_0x5347ce===_0x1cf6fa[_0x5541ae(0x28b)],_0x4e1512=_0x5347ce===_0x1cf6fa[_0x5541ae(0x33f)],_0x1e1a80=_0x5347ce===_0x1cf6fa[_0x5541ae(0x218)],_0x44df03=_0x5347ce===_0x1cf6fa[_0x5541ae(0x385)],_0x43dae0=_0x2ecac2(_0x5347ce,_0xc8129[_0x5541ae(0x3de)])&&!_0x212941&&!_0x1e1a80,_0x101f68=ii(_0x5347ce,_0x518a23);return _0x2fa798(_0x151ab2,{'value':_0x506ab1,'onChange':_0x5c276e,'children':[_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x119)],'label':_0x518a23['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0x5628d9(_0xc54821,{'defaultValues':X[_0x5541ae(0x36b)]})}),_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x1cd)],'label':_0x518a23['t'](_0x5541ae(0x24d)),'children':_0x5628d9(_0x517322,{'commitMode':_0x5541ae(0x19f),'defaultValues':X[_0x5541ae(0x161)]})}),_0x5628d9(_0x31fb16,{'section':'view'}),_0x43dae0&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x2c3)],'label':_0x518a23['t'](_0x5541ae(0x112)),'children':_0x5628d9(_0x4f3338,{'defaultValues':X['series'],'NumberFormatField':_0x3f2847})}),_0x4e1512&&_0x5628d9(Z,{'id':_0x4baf7f['WaterfallSeries'],'label':_0x518a23['t']('bases-dashboard-ui.chart.section.waterfall'),'children':_0x5628d9(_0x122082,{'defaultValues':X[_0x5541ae(0x12d)],'getDefaultBucketName':({seriesName:_0x41bc71,target:_0x1bd5f5})=>_0x1bd5f5===_0x148de0[_0x5541ae(0x1fa)]?_0x518a23['t'](_0x5541ae(0x1df)):_0x41bc71?_0x41bc71+'-('+_0x518a23['t'](_0x5541ae(0x2b5)+(_0x1bd5f5===_0x148de0['Positive']?'waterfall.positive':_0x5541ae(0x34c)))+')':'','NumberFormatField':_0x3f2847})}),_0x1e1a80&&_0x2fa798(_0x5554ea,{'children':[_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x380)],'label':_0x518a23['t'](_0x5541ae(0xd8)),'children':_0x5628d9(_0x117afe,{'defaultValues':X['pareto'],'NumberFormatField':_0x3f2847,'showDataPointEditor':!0x0,'target':_0x5541ae(0x2fc)})}),_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x21f)],'label':_0x518a23['t'](_0x5541ae(0x2d7)),'children':_0x5628d9(_0x117afe,{'defaultValues':X[_0x5541ae(0x2cc)],'NumberFormatField':_0x3f2847,'showDataPointEditor':!0x1,'target':_0x5541ae(0x246)})})]}),_0x339d40&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x1b8)],'label':_0x518a23['t'](_0x5541ae(0x3ef)),'children':_0x5628d9(_0x32a1e9,{'defaultValues':X[_0x5541ae(0x225)],'NumberFormatField':_0x3f2847})}),_0x3b8ce7&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x21a)],'label':_0x518a23['t'](_0x5541ae(0x25e)),'children':_0x5628d9(_0x51f587,{'defaultValues':X[_0x5541ae(0x286)]})}),_0x1135bb&&_0x5628d9(Z,{'id':_0x4baf7f['Radar'],'label':_0x518a23['t']('bases-dashboard-ui.chart.section.radar'),'children':_0x5628d9(_0x1423a1,{'defaultValues':X[_0x5541ae(0x294)]})}),_0x31606a&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x30a)],'label':_0x518a23['t'](_0x5541ae(0x3bb)),'children':_0x5628d9(_0x5591da,{'defaultValues':X[_0x5541ae(0xfe)],'gapControl':_0x5541ae(0x315)})}),_0x44df03&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x385)],'label':_0x518a23['t']('bases-dashboard-ui.chart.common.heatmap'),'children':_0x5628d9(_0x1aca4d,{'defaultValues':X[_0x5541ae(0x337)]})}),_0x4113bf&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x28b)],'label':_0x518a23['t'](_0x5541ae(0x1c4)),'children':_0x5628d9(_0x4117cf,{'defaultValues':X[_0x5541ae(0x2bb)]})}),_0x1dac15(_0x5347ce)&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0xf3)],'label':_0x518a23['t'](_0x242779['baseOn'](_0x5347ce,_0x1cf6fa[_0x5541ae(0x332)])?_0x5541ae(0x1cf):'bases-dashboard-ui.chart.chartTypes.line'),'children':_0x5628d9(_0x2a4c4d,{'defaultValues':X[_0x5541ae(0x366)],'lineStyleControl':_0x5541ae(0x1d2)})}),_0x2ecac2(_0x5347ce,_0xc8129['Legend'])&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x2a2)],'label':_0x518a23['t'](_0x5541ae(0x183)),'children':_0x5628d9(_0x2205cf,{'defaultValues':X[_0x5541ae(0xdb)]})}),_0x2ecac2(_0x5347ce,_0xc8129[_0x5541ae(0x31e)])&&_0x2fa798(_0x5554ea,{'children':[_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x266)],'label':_0x518a23['t'](_0x5541ae(0x2f1)),'children':_0x5628d9(_0x51c0bf,{'axis':'x','defaultValues':X[_0x5541ae(0x399)],'NumberFormatField':_0x3f2847})}),_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x9e)],'label':_0x518a23['t'](_0x5541ae(0x32b)),'children':_0x5628d9(_0x51c0bf,{'axis':'y','defaultValues':X[_0x5541ae(0x399)],'NumberFormatField':_0x3f2847})}),_0x5628d9(_0x31fb16,{'section':_0x5541ae(0x2c7)}),_0x96a956&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x375)],'label':_0x518a23['t']('bases-dashboard-ui.chart.common.rightVerticalAxis'),'children':_0x5628d9(_0x51c0bf,{'axis':'rightY','defaultValues':X[_0x5541ae(0x399)],'NumberFormatField':_0x3f2847})}),_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x210)],'label':_0x518a23['t'](_0x5541ae(0x2ba)),'children':_0x5628d9(_0x58fc11,{'defaultValues':X[_0x5541ae(0x399)]})})]}),_0x2ecac2(_0x5347ce,_0xc8129[_0x5541ae(0x306)])&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x306)],'label':_0x518a23['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x5628d9(_0x54d111,{'defaultValues':X[_0x5541ae(0x20f)]})}),_0x3f9965(_0x5347ce)&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x36f)],'label':_0x518a23['t']('bases-dashboard-ui.chart.common.trendline'),'children':_0x5628d9(_0x311435,{'defaultValues':X['trendline']})}),_0x101f68&&_0x5628d9(Z,{'id':_0x101f68['id'],'label':_0x101f68[_0x5541ae(0x249)],'children':_0x5628d9(_0x3f116c,{})})]});}function ii(_0x856a82,_0x4f803e){const _0x23e851=_0x5d48da;let _0x5a00cf={[_0x1cf6fa[_0x23e851(0x395)]]:{'id':_0x4baf7f[_0x23e851(0x395)],'localeKey':_0x23e851(0xba)},[_0x1cf6fa['Histogram']]:{'id':_0x4baf7f[_0x23e851(0xb8)],'localeKey':_0x23e851(0x13e)},[_0x1cf6fa[_0x23e851(0x28d)]]:{'id':_0x4baf7f[_0x23e851(0x28d)],'localeKey':'bases-dashboard-ui.chart.section.treemap'},[_0x1cf6fa[_0x23e851(0xf1)]]:{'id':_0x4baf7f[_0x23e851(0xf1)],'localeKey':'bases-dashboard-ui.chart.section.sunburst'},[_0x1cf6fa['Gauge']]:{'id':_0x4baf7f['Gauge'],'localeKey':'bases-dashboard-ui.chart.section.gauge'},[_0x1cf6fa[_0x23e851(0xe5)]]:{'id':_0x4baf7f['Chord'],'localeKey':_0x23e851(0x277)}}[_0x856a82];return _0x5a00cf?{'id':_0x5a00cf['id'],'label':_0x4f803e['t'](_0x5a00cf[_0x23e851(0x1f0)])}:null;}function ai(_0x241979){const _0x546bf6=_0x5d48da;return _0x546bf6(0x36a)+_0x241979;}function oi({onChange:_0x5c2ec8,onEditData:_0x175b09,runtime:_0x4ec0d2,sourceChart:_0x8517da,sourceName:_0x3bbd0c,widget:_0x35a48e}){const _0x34270d=_0x5d48da;let _0x547bcd=_0x40463f(qr),_0x294249=_0x40463f(_0x1ecd96),[_0x47b93d,_0x556225]=_0x4ebd7a(_0x389329[_0x34270d(0xf0)]),_0x442bae=_0x35a48e[_0x34270d(0x204)]??_0x8517da,_0x49e667=_0x5c672b(()=>new _0x367b2a(_0x4ec0d2[_0x34270d(0x1ad)],{'commit':_0x2f103e=>{const _0x148c09=_0x34270d;var _0xc31ecf;let _0x2b0bce=_0x4ec0d2[_0x148c09(0x1ad)],_0x1b09cf=_0x5adbe1(_0x2f103e,{'series':(_0xc31ecf=_0x2b0bce[_0x148c09(0xa7)])==null?void 0x0:_0xc31ecf['series'],'currentChartType':_0x2b0bce['chartType'],'currentStyle':_0x2b0bce[_0x148c09(0x36b)],'currentContext':_0x2b0bce['context'],'currentDataAggregation':_0x2b0bce[_0x148c09(0x2fa)]});_0x5c2ec8({..._0x35a48e,'chart':ti(_0x442bae,_0x1b09cf)})[_0x148c09(0x26d)](()=>void 0x0);}}),[_0x442bae,_0x5c2ec8,_0x4ec0d2,_0x35a48e]),_0x511c7b=_0x5c672b(()=>_0x2f5cf3(_0x8d6a08[_0x34270d(0x2ea)](_0x32bbaf=>({..._0x32bbaf,'label':_0x294249['t'](si(_0x32bbaf[_0x34270d(0x2fb)]))}))),[_0x294249]);return _0x5628d9(_0x4f5736,{'chartUIService':_0x547bcd,'hostAdapter':_0x49e667,'children':_0x2fa798(_0x34270d(0x334),{'data-dashboard-chart-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x294249['t'](_0x34270d(0x142)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x294249['t'](_0x34270d(0x360)),'panelId':_0x34270d(0x22c),'value':_0x389329[_0x34270d(0xf0)]},{'label':_0x294249['t'](_0x34270d(0x15b)),'panelId':_0x34270d(0x358),'value':_0x389329['Style']}],'value':_0x47b93d,'onChange':_0x556225}),_0x47b93d===_0x389329['Data']?_0x5628d9(_0x59879a,{'id':_0x34270d(0x22c),'label':_0x294249['t'](_0x34270d(0x360)),'children':_0x2fa798('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x5628d9(_0x3352ce,{'options':_0x511c7b}),_0x5628d9(_0x53d74e,{}),_0x5628d9(_0x3aee5e,{}),_0x5628d9(ni,{}),_0x5628d9(_0x1ed3a5,{}),_0x2fa798(_0x34270d(0x334),{'children':[_0x5628d9(_0x30e809,{'title':_0x294249['t'](_0x34270d(0xab))}),_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':_0x3bbd0c}),_0x5628d9(_0x101ca4,{'className':_0x34270d(0xd1),'onClick':_0x175b09,'children':_0x294249['t']('bases-dashboard-ui.dashboardInspector.editData')})]})]})}):_0x5628d9(_0x59879a,{'id':_0x34270d(0x358),'label':_0x294249['t'](_0x34270d(0x15b)),'children':_0x5628d9(ri,{})})]})});}function si(_0x18d757){return'bases-dashboard-ui.chart.chartTypes.'+_0x18d757;}const ci=[_0x5d48da(0x308),_0x5d48da(0x31b),_0x5d48da(0x228),_0x5d48da(0x1b3),_0x5d48da(0xa5),_0x5d48da(0xbd)];function li({base:_0x28774c,onChange:_0x46fa4e,onSelectBackgroundImage:_0x274f5a,widget:_0x444a44}){const _0x46b1f2=_0x5d48da;var _0x4ff028;let _0x18e59c=_0x40463f(_0x1ecd96),_0x13613a=_0x40463f(_0x56b689),_0x505650=_0x5056f6(()=>_0x13613a[_0x46b1f2(0x137)],_0x13613a[_0x46b1f2(0x3cf)](),!0x1,[_0x13613a]),_0x3c08e8=_0x5056f6(()=>_0x13613a[_0x46b1f2(0x227)],_0x13613a['darkMode'],!0x1,[_0x13613a]),[_0x15674a,_0xe3f0b1]=_0x4ebd7a(_0x46b1f2(0x373)),[_0x46d349,_0x4b56d0]=_0x4ebd7a(!0x1),_0x37dfe=Cr(_0x444a44),_0x75b2db=_0x28774c['getSnapshot']()['tables'][_0x444a44[_0x46b1f2(0x9d)]],_0x559c89=_0x75b2db==null?void 0x0:_0x75b2db[_0x46b1f2(0x389)][_0x46b1f2(0x153)](_0xb5404=>_0x75b2db[_0x46b1f2(0x2eb)][_0xb5404]),_0x5d302a=_0x559c89?_0x75b2db==null?void 0x0:_0x75b2db[_0x46b1f2(0x2eb)][_0x559c89]:void 0x0,_0x2dbb60=_0x75b2db&&_0x5d302a?_0x372e38(_0x28774c['getSnapshot'](),_0x75b2db,_0x5d302a)[_0x46b1f2(0x2ea)](_0x5b6ee7=>({..._0x5b6ee7,'current':!0x1})):[],_0x301f90=((_0x4ff028=_0x444a44[_0x46b1f2(0x27e)][_0x46b1f2(0x3cb)])==null?void 0x0:_0x4ff028[_0x46b1f2(0x2ad)])??'',_0x273f38=_0x2597f5=>_0x46fa4e(wr(_0x444a44,_0x2597f5))[_0x46b1f2(0x26d)](()=>void 0x0),_0x2fa296=_0x5703b7=>_0x46fa4e({..._0x444a44,'description':_0x5703b7})['catch'](()=>void 0x0);return _0x2fa798(_0x46b1f2(0x334),{'data-dashboard-formula-inspector':!0x0,'className':_0x46b1f2(0x34b),'children':[_0x5628d9(_0x18f25a,{'className':_0x46b1f2(0x313),'items':[{'value':'data','label':_0x18e59c['t']('bases-dashboard-ui.dashboardInspector.data')},{'value':_0x46b1f2(0x36b),'label':_0x18e59c['t'](_0x46b1f2(0x369))}],'value':_0x15674a,'onChange':_0xe3f0b1}),_0x5628d9(_0x46b1f2(0x334),{'className':_0x46b1f2(0xf4),'children':_0x15674a===_0x46b1f2(0x373)?_0x2fa798(_0x46b1f2(0x334),{'className':_0x46b1f2(0x3b7),'children':[_0x5628d9(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x295)),'children':_0x5628d9(_0x5d579d,{'value':_0x444a44[_0x46b1f2(0x16e)]??_0x444a44[_0x46b1f2(0xbc)]??'','onChange':_0x2fa296,'onBlur':_0x19ab35=>_0x2fa296(_0x19ab35[_0x46b1f2(0x320)][_0x46b1f2(0x32d)])})}),_0x5628d9(ui,{'label':_0x18e59c['t'](_0x46b1f2(0xab)),'children':_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':(_0x75b2db==null?void 0x0:_0x75b2db[_0x46b1f2(0x3d7)])??_0x18e59c['t'](_0x46b1f2(0x1bb))})}),_0x2fa798(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x2fd)),'children':[_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':_0x196177(_0x301f90,_0x2dbb60)}),_0x5628d9(_0x101ca4,{'className':'univer-mt-2\x20univer-w-full','onClick':()=>_0x4b56d0(!0x0),'children':_0x18e59c['t'](_0x46b1f2(0x333))})]})]}):_0x2fa798(_0x46b1f2(0x334),{'className':_0x46b1f2(0x3b7),'children':[_0x5628d9(_0x209a9d,{'emptyLabel':_0x18e59c['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x18e59c['t'](_0x46b1f2(0x3b9)),'pickerFallbackValue':_0x3c08e8?_0x505650['gray'][0x384]:_0x505650['gray'][0x0],'resetLabel':_0x18e59c['t'](_0x46b1f2(0x23f)),'value':_0x37dfe[_0x46b1f2(0x2e5)]??null,'onChange':_0x39ebdb=>_0x273f38({'backgroundColor':_0x39ebdb??void 0x0})}),_0x2fa798(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x38d)),'children':[_0x2fa798(_0x46b1f2(0x334),{'className':_0x46b1f2(0x316),'children':[_0x2fa798(_0x101ca4,{'className':'univer-flex-1','onClick':()=>{const _0x4ae866=_0x46b1f2;_0x274f5a()[_0x4ae866(0xa4)](_0x2d6eca=>{const _0x28d6ed=_0x4ae866;if(_0x2d6eca){var _0x53f040;return _0x273f38({'backgroundImage':{..._0x2d6eca,'fit':((_0x53f040=_0x37dfe['backgroundImage'])==null?void 0x0:_0x53f040['fit'])??_0x28d6ed(0x15c)}});}})['catch'](()=>void 0x0);},'children':[_0x5628d9(_0x4f1759,{}),_0x37dfe['backgroundImage']?_0x18e59c['t']('bases-dashboard-ui.dashboardInspector.replaceImage'):_0x18e59c['t'](_0x46b1f2(0x158))]}),_0x37dfe[_0x46b1f2(0x33c)]&&_0x5628d9(_0x101ca4,{'aria-label':_0x18e59c['t'](_0x46b1f2(0xe4)),'title':_0x18e59c['t'](_0x46b1f2(0xe4)),'onClick':()=>_0x273f38({'backgroundImage':void 0x0}),'children':_0x5628d9(_0x275aa7,{})})]}),_0x37dfe[_0x46b1f2(0x33c)]&&_0x5628d9(_0x18f25a,{'className':_0x46b1f2(0xd9),'items':[{'value':'cover','label':_0x18e59c['t'](_0x46b1f2(0x214))},{'value':'contain','label':_0x18e59c['t'](_0x46b1f2(0x1cc))}],'value':_0x37dfe[_0x46b1f2(0x33c)][_0x46b1f2(0x1f3)],'onChange':_0x2c6d64=>_0x273f38({'backgroundImage':_0x37dfe[_0x46b1f2(0x33c)]?{..._0x37dfe[_0x46b1f2(0x33c)],'fit':_0x2c6d64}:void 0x0})})]}),_0x5628d9(_0x209a9d,{'emptyLabel':_0x18e59c['t'](_0x46b1f2(0x37a)),'label':_0x18e59c['t'](_0x46b1f2(0x37a)),'pickerFallbackValue':_0x3c08e8?_0x505650['gray'][0x32]:_0x505650[_0x46b1f2(0x14a)][0x3e8],'resetLabel':_0x18e59c['t'](_0x46b1f2(0x23f)),'value':_0x37dfe[_0x46b1f2(0x13d)]??null,'onChange':_0x291007=>_0x273f38({'textColor':_0x291007??void 0x0})}),_0x5628d9(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x281)),'children':_0x5628d9(_0x18f25a,{'items':[{'value':_0x46b1f2(0x269),'label':_0x18e59c['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':'center','label':_0x18e59c['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0x46b1f2(0x39f),'label':_0x18e59c['t'](_0x46b1f2(0x363))}],'value':_0x37dfe['alignment'],'onChange':_0x2c6a1a=>_0x273f38({'alignment':_0x2c6a1a})})}),_0x2fa798(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x102)),'children':[_0x5628d9(_0x18f25a,{'items':[{'value':'auto','label':_0x18e59c['t'](_0x46b1f2(0xcc))},{'value':_0x46b1f2(0x2ec),'label':_0x18e59c['t'](_0x46b1f2(0x133))}],'value':_0x37dfe[_0x46b1f2(0x27d)],'onChange':_0x191afd=>_0x273f38({'fontSizeMode':_0x191afd})}),_0x37dfe[_0x46b1f2(0x27d)]==='custom'&&_0x5628d9(_0x57c888,{'className':_0x46b1f2(0xd9),'min':0xc,'max':0x78,'value':_0x37dfe[_0x46b1f2(0x268)],'onChange':_0x45da96=>_0x273f38({'fontSize':_0x45da96??0x28,'fontSizeMode':_0x46b1f2(0x2ec)})})]}),_0x5628d9(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x3c3)),'children':_0x5628d9(Yr,{'value':_0x37dfe[_0x46b1f2(0x371)],'options':[{'value':_0x46b1f2(0x308),'label':_0x18e59c['t'](_0x46b1f2(0x1be))},{'value':'number','label':_0x18e59c['t']('bases-dashboard-ui.dashboardInspector.number')},{'value':'percent','label':_0x18e59c['t'](_0x46b1f2(0x3b8))},{'value':_0x46b1f2(0x1b3),'label':_0x18e59c['t'](_0x46b1f2(0x325))},{'value':_0x46b1f2(0xa5),'label':_0x18e59c['t'](_0x46b1f2(0x175))},{'value':'compact','label':_0x18e59c['t'](_0x46b1f2(0x10e))}],'onChange':_0x75c96f=>{const _0x5ee7e3=_0x46b1f2;let _0x5170bd=ci[_0x5ee7e3(0x153)](_0x5c9f81=>_0x5c9f81===_0x75c96f);_0x5170bd&&_0x273f38({'numberFormat':_0x5170bd});}})}),_0x37dfe['numberFormat']===_0x46b1f2(0x1b3)&&_0x5628d9(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x130)),'children':_0x5628d9(_0x5d579d,{'value':_0x37dfe[_0x46b1f2(0x1b3)],'onChange':_0xcadffc=>_0x273f38({'currency':_0xcadffc[_0x46b1f2(0x165)](0x0,0x3)[_0x46b1f2(0x26a)]()})})}),_0x37dfe[_0x46b1f2(0x371)]!==_0x46b1f2(0x308)&&_0x5628d9(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x384)),'children':_0x5628d9(_0x57c888,{'min':0x0,'max':0x8,'value':_0x37dfe[_0x46b1f2(0xc9)],'onChange':_0x3f8f32=>_0x273f38({'decimalPlaces':_0x3f8f32??0x0})})})]})}),_0x46d349&&_0x5628d9(Zr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x5628d9(_0x4524e4,{'tables':_0x2dbb60,'formula':_0x196177(_0x301f90,_0x2dbb60),'onCancel':()=>_0x4b56d0(!0x1),'onSave':_0x2d56f8=>{const _0x16b9e5=_0x46b1f2;let _0x2d3aa5=_0x444a44[_0x16b9e5(0x27e)][_0x16b9e5(0x3cb)]??{'formula':''};return _0x46fa4e({..._0x444a44,'shapeData':{..._0x444a44[_0x16b9e5(0x27e)],'formulaBinding':{..._0x2d3aa5,'formula':_0x43ca80(_0x2d56f8,_0x2dbb60)}}})[_0x16b9e5(0xa4)](()=>_0x4b56d0(!0x1))[_0x16b9e5(0x26d)](()=>void 0x0);}})})]});}function ui({children:_0x588a2c,label:_0x27d752}){const _0x315641=_0x5d48da;return _0x2fa798('div',{'role':'group','aria-label':_0x27d752,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x5628d9(_0x315641(0x339),{'children':_0x27d752}),_0x588a2c]});}function di({disabled:_0x72d03d,fields:_0x1f05d4,filter:_0x36b470,onChange:_0x235711}){const _0x28d18a=_0x5d48da;let _0x2e8118=_0x40463f(_0x23d8e9)[_0x28d18a(0xaa)]??null,[_0x4ed653,_0x46962d]=_0x4ebd7a(null),_0x183d2a=_0x40463f(_0x1ecd96),_0x140238=(_0x36b470==null?void 0x0:_0x36b470[_0x28d18a(0x32c)])??[];if(!_0x140238['length'])return _0x2fa798(_0x28d18a(0x334),{'className':_0x28d18a(0x2b4),'children':[_0x5628d9(_0x266672,{'className':'univer-mx-auto\x20univer-size-6'}),_0x5628d9(_0x28d18a(0x339),{'className':_0x28d18a(0x3ab),'children':_0x183d2a['t'](_0x28d18a(0x108))})]});let _0xfb43fd=_0x4ed653==null?void 0x0:_0x140238[_0x4ed653],_0x54be79=_0x1f05d4[_0x28d18a(0x153)](_0x32fcd5=>_0x32fcd5['id']===(_0xfb43fd==null?void 0x0:_0xfb43fd[_0x28d18a(0x221)]));return _0x2fa798(_0x28d18a(0x334),{'className':_0x28d18a(0x1af),'children':[_0x140238[_0x28d18a(0x2ea)]((_0x15799f,_0xdb41f9)=>{const _0x319a2b=_0x28d18a;var _0x33b1a7;return _0x2fa798(_0x101ca4,{'disabled':_0x72d03d,'onClick':()=>_0x46962d(_0xdb41f9),'children':[_0x5628d9(_0x319a2b(0x339),{'children':((_0x33b1a7=_0x1f05d4[_0x319a2b(0x153)](_0x576ab7=>_0x576ab7['id']===_0x15799f[_0x319a2b(0x221)]))==null?void 0x0:_0x33b1a7['name'])??_0x15799f[_0x319a2b(0x221)]}),_0x5628d9(_0x319a2b(0x339),{'className':_0x319a2b(0xae),'children':String(_0x15799f[_0x319a2b(0x2d6)]??'')})]},_0x15799f['fieldId']+'-'+_0xdb41f9);}),_0x54be79&&_0xfb43fd&&_0x4ed653!=null&&_0x2e8118&&_0x1c0161(_0x5628d9(_0x2e05d2,{'field':_0x54be79,'value':_0xfb43fd[_0x28d18a(0x2d6)],'onClose':()=>_0x46962d(null),'onSave':_0x58328c=>{const _0x2c784a=_0x28d18a;_0x235711({'conjunction':(_0x36b470==null?void 0x0:_0x36b470[_0x2c784a(0xc3)])??_0x26ccb5[_0x2c784a(0x2f5)],'conditions':_0x140238['map']((_0x5e93bc,_0x31971b)=>_0x31971b===_0x4ed653?{..._0x5e93bc,'operand':_0x58328c}:_0x5e93bc)}),_0x46962d(null);}}),_0x2e8118)]});}function fi({fields:_0x3d6429,filter:_0x2db991,onChange:_0x3a7c2c,onClear:_0x56efc3}){const _0x26e14b=_0x5d48da;let _0x118316=_0x40463f(_0x1ecd96);return _0x2fa798(_0x26e14b(0x334),{'children':[_0x5628d9(_0x52caf8,{'fields':_0x3d6429,'value':_0x2db991??{'conjunction':_0x26ccb5[_0x26e14b(0x2f5)],'conditions':[]},'onChange':_0x3a7c2c}),_0x5628d9(_0x101ca4,{'onClick':_0x56efc3,'children':_0x118316['t']('bases-dashboard-ui.dashboardInspector.reset')})]});}function pi({base:_0x3a7c8f,chartRuntime:_0x14bca1,onChange:_0x5ed203,onClose:_0x5beda3,onSelectBackgroundImage:_0x38878c,onSelectImage:_0x1af6bb,unitId:_0x4d7b67,widget:_0x28438b}){const _0x5893d4=_0x5d48da;let _0x389d8f=_0x40463f(_0x1e6f93),_0x457443=_0x40463f(_0x1ecd96),_0x2593c6=_0x3a7c8f[_0x5893d4(0x3e8)](),_0x273cc7=_0x5893d4(0x9d)in _0x28438b?_0x2593c6[_0x5893d4(0x3b5)][_0x28438b[_0x5893d4(0x9d)]]:void 0x0,_0x44795f=_0x28438b[_0x5893d4(0x278)]===_0x4dd1ab[_0x5893d4(0x173)]?_0x273cc7==null?void 0x0:_0x273cc7[_0x5893d4(0x2eb)][_0x28438b['pivotViewId']]:void 0x0,_0x32f685=_0x457443['t'](bi(_0x28438b)),_0xa6fe25=_0x2fa798(_0x5893d4(0x3da),{'data-dashboard-inspector':!0x0,'className':_0x5893d4(0x2fe),'children':[_0x28438b[_0x5893d4(0x278)]===_0x4dd1ab[_0x5893d4(0x173)]&&(yi(_0x44795f)&&_0x14bca1?_0x5628d9(oi,{'runtime':_0x14bca1,'sourceChart':_0x44795f[_0x5893d4(0xa7)][_0x5893d4(0x204)],'sourceName':((_0x273cc7==null?void 0x0:_0x273cc7[_0x5893d4(0x3d7)])??'')+'\x20/\x20'+_0x44795f['name'],'widget':_0x28438b,'onChange':_0x5ed203,'onEditData':()=>{const _0x24cc67=_0x5893d4;_0x389d8f[_0x24cc67(0x3e3)](_0x166344['id'],{'unitId':_0x4d7b67,'tableId':_0x28438b['tableId'],'viewId':_0x28438b[_0x24cc67(0x260)]})[_0x24cc67(0x26d)](()=>void 0x0);}}):_0x5628d9(_i,{'message':yi(_0x44795f)?_0x457443['t'](_0x5893d4(0x349)):_0x457443['t'](_0x5893d4(0x1bb))})),_0x28438b['type']===_0x4dd1ab[_0x5893d4(0x2c2)]&&_0x5628d9(li,{'base':_0x3a7c8f,'widget':_0x28438b,'onChange':_0x5ed203,'onSelectBackgroundImage':_0x38878c}),_0x28438b[_0x5893d4(0x278)]===_0x4dd1ab[_0x5893d4(0x296)]&&_0x5628d9(hi,{'base':_0x3a7c8f,'onChange':_0x5ed203,'widget':_0x28438b}),_0x28438b[_0x5893d4(0x278)]===_0x4dd1ab[_0x5893d4(0x1c9)]&&_0x5628d9(gi,{'onChange':_0x5ed203,'widget':_0x28438b}),_0x28438b[_0x5893d4(0x278)]===_0x4dd1ab[_0x5893d4(0x3c0)]&&_0x5628d9(mi,{'onChange':_0x5ed203,'onSelectImage':_0x1af6bb,'widget':_0x28438b})]});return _0x5628d9(_0x19aa31,{'title':_0x32f685,'onClose':_0x5beda3,'children':_0xa6fe25});}function mi({onChange:_0x483eb7,onSelectImage:_0x1936a2,widget:_0x5330d6}){const _0x43c96c=_0x5d48da;let _0x5f1543=_0x40463f(_0x1ecd96);return _0x2fa798('div',{'className':_0x43c96c(0x195),'children':[_0x2fa798(_0x101ca4,{'className':_0x43c96c(0x23b),'onClick':()=>_0x1936a2()[_0x43c96c(0xa4)](_0x152105=>_0x152105&&_0x483eb7({..._0x5330d6,'source':_0x152105[_0x43c96c(0x136)],'sourceType':_0x152105[_0x43c96c(0xa8)],'alt':_0x152105[_0x43c96c(0x3d7)]}))[_0x43c96c(0x26d)](()=>void 0x0),'children':[_0x5628d9(_0x4f1759,{}),_0x5f1543['t'](_0x43c96c(0x16d))]}),_0x2fa798('label',{'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x5628d9(_0x43c96c(0x339),{'children':_0x5f1543['t'](_0x43c96c(0x38d))}),_0x5628d9(_0x18f25a,{'items':[{'value':_0x43c96c(0x15c),'label':_0x5f1543['t'](_0x43c96c(0x214))},{'value':_0x43c96c(0x2a3),'label':_0x5f1543['t'](_0x43c96c(0x10c))},{'value':'original','label':_0x5f1543['t'](_0x43c96c(0xc2))}],'value':_0x5330d6['displayMode']??_0x43c96c(0x15c),'onChange':_0x31ee28=>_0x483eb7({..._0x5330d6,'displayMode':_0x31ee28})[_0x43c96c(0x26d)](()=>void 0x0)})]})]});}function hi({base:_0x19db93,onChange:_0x2ebcbf,widget:_0x2eae23}){const _0x381fb5=_0x5d48da;let _0x4c9996=_0x19db93[_0x381fb5(0x3e8)]()[_0x381fb5(0x3b5)][_0x2eae23[_0x381fb5(0x9d)]],_0x3f3d99=_0x4c9996==null?void 0x0:_0x4c9996[_0x381fb5(0x389)][_0x381fb5(0x153)](_0x513c62=>_0x4c9996['views'][_0x513c62]),_0x124361=_0x3f3d99?_0x4c9996==null?void 0x0:_0x4c9996[_0x381fb5(0x2eb)][_0x3f3d99]:void 0x0,_0x58f610=_0x4c9996&&_0x124361?_0x28d476(_0x4c9996,_0x124361):[];return _0x5628d9(fi,{'fields':_0x58f610,'filter':_0x2eae23[_0x381fb5(0x122)],'onChange':_0x6bb692=>_0x2ebcbf({..._0x2eae23,'filter':_0x6bb692})['catch'](()=>void 0x0),'onClear':()=>_0x2ebcbf({..._0x2eae23,'filter':null})[_0x381fb5(0x26d)](()=>void 0x0)});}function gi({onChange:_0x19d381,widget:_0x1554b9}){const _0x3c7ca8=_0x5d48da;let _0x328578=_0x40463f(_0x1ecd96),_0x2e3c25=_0x40463f(_0x56b689),_0x43fea7=_0x5056f6(()=>_0x2e3c25[_0x3c7ca8(0x137)],_0x2e3c25[_0x3c7ca8(0x3cf)](),!0x1,[_0x2e3c25]),_0x5e6bec=Hr(_0x1554b9),_0x5a82e8=_0x1c0573=>_0x19d381({..._0x1554b9,'appearance':{..._0x5e6bec,..._0x1c0573}})[_0x3c7ca8(0x26d)](()=>void 0x0);return _0x2fa798(_0x3c7ca8(0x334),{'className':_0x3c7ca8(0x285),'children':[_0x5628d9(_0x80dadb,{'className':'univer-max-h-40\x20univer-text-base','defaultValue':Ur(_0x1554b9[_0x3c7ca8(0x348)]),'rows':0x8,'onBlur':_0x5a4a22=>_0x19d381({..._0x1554b9,'document':Wr(_0x1554b9['document'],_0x5a4a22[_0x3c7ca8(0x320)][_0x3c7ca8(0x32d)])})['catch'](()=>void 0x0)}),_0x5628d9(_0x209a9d,{'emptyLabel':_0x328578['t'](_0x3c7ca8(0x3b9)),'label':_0x328578['t'](_0x3c7ca8(0x3b9)),'pickerFallbackValue':_0x43fea7[_0x3c7ca8(0x14a)][0x0],'resetLabel':_0x328578['t'](_0x3c7ca8(0x23f)),'value':_0x5e6bec[_0x3c7ca8(0x2e5)]??null,'onChange':_0x1807b4=>_0x5a82e8({'backgroundColor':_0x1807b4??void 0x0})}),_0x5628d9(_0x209a9d,{'emptyLabel':_0x328578['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x328578['t'](_0x3c7ca8(0x37a)),'pickerFallbackValue':_0x43fea7[_0x3c7ca8(0x14a)][0x3e8],'resetLabel':_0x328578['t'](_0x3c7ca8(0x23f)),'value':_0x5e6bec['textColor']??null,'onChange':_0x9a05b7=>_0x5a82e8({'textColor':_0x9a05b7??void 0x0})}),_0x5628d9(vi,{'label':_0x328578['t'](_0x3c7ca8(0x281)),'children':_0x5628d9(_0x18f25a,{'items':[{'value':_0x3c7ca8(0x269),'label':_0x328578['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':_0x3c7ca8(0x38c),'label':_0x328578['t'](_0x3c7ca8(0x11c))},{'value':_0x3c7ca8(0x39f),'label':_0x328578['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x5e6bec['alignment'],'onChange':_0x1c5afd=>_0x5a82e8({'alignment':_0x1c5afd})})}),_0x2fa798(vi,{'label':_0x328578['t'](_0x3c7ca8(0x102)),'children':[_0x5628d9(_0x18f25a,{'items':[{'value':_0x3c7ca8(0x1eb),'label':_0x328578['t'](_0x3c7ca8(0xcc))},{'value':_0x3c7ca8(0x2ec),'label':_0x328578['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x5e6bec[_0x3c7ca8(0x27d)],'onChange':_0x20863b=>_0x5a82e8({'fontSizeMode':_0x20863b})}),_0x5e6bec[_0x3c7ca8(0x27d)]===_0x3c7ca8(0x2ec)&&_0x5628d9(_0x57c888,{'className':_0x3c7ca8(0xd9),'min':0xa,'max':0x78,'value':_0x5e6bec[_0x3c7ca8(0x268)],'onChange':_0x5d0074=>_0x5a82e8({'fontSize':_0x5d0074??0x12,'fontSizeMode':'custom'})})]})]});}function _i({message:_0x2d560e}){const _0x17b836=_0x5d48da;return _0x5628d9('div',{'className':_0x17b836(0x16f),'children':_0x2d560e});}function vi({children:_0x377de0,label:_0x38d74a}){const _0x3736d3=_0x5d48da;return _0x2fa798('div',{'role':_0x3736d3(0x350),'aria-':!0x0,'className':_0x3736d3(0x127),'children':[_0x5628d9(_0x3736d3(0x339),{'children':_0x38d74a}),_0x377de0]});}function yi(_0xa05e1d){const _0x335662=_0x5d48da;return(_0xa05e1d==null?void 0x0:_0xa05e1d['type'])===_0xc74f11[_0x335662(0xe1)]&&typeof _0xa05e1d[_0x335662(0xa7)]=='object'&&_0xa05e1d['config']!==null&&_0x335662(0x106)in _0xa05e1d[_0x335662(0xa7)]&&'chart'in _0xa05e1d[_0x335662(0xa7)];}function _0x1f68(){const _0x41dfb7=['dataFieldId','refreshChartRuntime','bases-dashboard-ui.chart.section.chord','type','isSubtotal','permissionPointUpdate$','rgb','chart-and-table','fontSizeMode','shapeData','kind','univer-w-24','bases-dashboard-ui.dashboardInspector.alignment','Pie','univer-flex\x20univer-h-auto\x20univer-min-h-12\x20univer-shrink-0\x20univer-flex-wrap\x20univer-items-center\x20univer-gap-1\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.addToColumn','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','wordCloud','chartType','clientX','rowView','scrollTop','Relation','bases-dashboard-ui.pivot.ascending','Treemap','bases-dashboard-ui.operators.before','bases-dashboard-ui.pivot.filterField','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','includes','onDragStart','radar','bases-dashboard-ui.dashboardInspector.description','TableFilter','bases-dashboard-ui.dashboard.deleteWidget','Person','pluginName','IS_NOT','getDirection','view','bases-dashboard-ui.dashboardInspector.dragWidget','children','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','getValueIndex','options','Legend','repeat','bases-dashboard-ui.dashboard.image','\x20/\x20','None','redos','bases-dashboard-ui.pivot.descending','bases-dashboard-ui.pivot.calculating','initial','boxSizing','average','formula','univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','bases-dashboard-ui.mobile.moveDown','bases-dashboard-ui.pivot.max','updateValuePosition','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','bases-dashboard-ui.chart.','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','bases-dashboard-ui.chart.common.switchRowColumn','defaultValue','univer-h-full\x20univer-w-full\x20univer-bg-transparent','bases-dashboard-ui.chart.section.gridlinesAndTicks','relation','univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','getAttachmentUrl','bases-dashboard-ui.operators.lessThanOrEqual','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','radius','list','FormulaShape','Series','grandTotal','valueFields','bases-dashboard-ui.pivot.countNumbers','depthAxis','Style','rows','link','onDragOver','pareto','repeatColLabels','getId','min','key','univer-text-sm\x20univer-font-medium','univer-bg-gray-0\x20dark:!univer-bg-gray-900','table','LESS_THAN','Currency','operand','bases-dashboard-ui.chart.section.paretoLine','bases-dashboard-ui.pivot.defaultName','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','onCancel','univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-flex-col\x20univer-justify-center\x20univer-overflow-hidden\x20univer-bg-gray-0\x20univer-p-4\x20univer-text-gray-1000\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-50','Checkbox','round','defineProperty','replace','border','text','documentElement','bases-dashboard-ui.pivot.layout','backgroundColor','bases-dashboard-ui.pivot.cancel','bases-dashboard-ui.pivot.fieldSettings','univer-size-5\x20univer-rotate-90','lastCol','map','views','custom','base-pivot-chart-configuration','ensureMount','showColSubtotal','countNums','bases-dashboard-ui.chart.common.horizontalAxis','onMoveUp','showRowSubtotal','contain','AND','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.pivot.layoutOutline','saveImage','snapshot','dataAggregation','labelId','barStyle','bases-dashboard-ui.dashboardInspector.formula','univer-flex\x20univer-h-full\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','index','prefix','decorate','CreatedAt','bases-dashboard-ui.dashboard.section','univer-flex\x20univer-h-full\x20univer-w-[380px]\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','documentStyle','IndicatorLine','UpdatedAt','general','valueIndex','Funnel','hidden','26225750TxXOXa','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.pivot.variance','matchMedia','univer-min-h-11\x20univer-px-3\x20univer-text-base','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','overflow','univer-m-3','rowSpan','select','univer-flex\x20univer-gap-2','transparent','rowSubtotalPosition','getBoundingClientRect','displayMode','number','#,##0','bases-dashboard-ui.pivot.fields','Axes','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','target','item','pageView','bases-dashboard-ui.mobile.moveUp','UNIVER_BASE','bases-dashboard-ui.dashboardInspector.currency','alignment','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','bases-dashboard-ui.pivot.rowSubtotalPosition','SingleSelect','bases-dashboard-ui.pivot.dropFieldsHere','bases-dashboard-ui.chart.common.verticalAxis','conditions','value','bases-dashboard-ui.pivot.stdDevPopulation','series','pageRows','bases-dashboard-ui.pivot.pageWrap','Area','bases-dashboard-ui.dashboardInspector.editFormula','div','article','subscribe','heatmap','presentationChanged$','span','renderTransition','column','backgroundImage','bases-dashboard-ui.pivot.valuePosition','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','Waterfall','setConfig','keydown','univer-flex\x20univer-flex-col','register','1.4.0','stroke','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','measure','document','bases-dashboard-ui.dashboardInspector.loading','clientHeight','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','waterfall.negative','Scatter','univer-mx-auto\x20univer-size-6','indexOf','group','AFTER','LESS_THAN_OR_EQUAL','some','bases-dashboard-ui.chart.common.chartStyle','darkMode','univer-bg-transparent\x20dark:!univer-bg-transparent','bases-dashboard-ui.dashboard.rename','dashboard-chart-style','tableFieldId','bases-dashboard-ui.chart.section.radar','every','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','subtotal','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','bases-dashboard-ui.chart.common.setup','bases-dashboard-ui.chart.section.treemap','mode','bases-dashboard-ui.dashboardInspector.right','bases-dashboard-ui.dashboard.configure','createElement','lineAndArea','paragraphs','univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','bases-dashboard-ui.dashboardInspector.style','bases-dashboard-ui.chart.chartTypes.','style','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','createChartInstance','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','Trendline','values','numberFormat','bases-dashboard-ui.pivot.calculationFailed','data','appearance','RightVerticalAxis','bases-dashboard-ui.operators.greaterThan','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','context','shapeId','bases-dashboard-ui.dashboardInspector.textColor','BaseDashboard','bases-dashboard-ui.pivot.showColumnSubtotal','packageName','product','onDragEnd','ParetoBarSeries','sum','bases-dashboard-ui.mobile.permissions','push','bases-dashboard-ui.dashboardInspector.decimalPlaces','Heatmap','observe','onSettings','bases-dashboard-ui.chart.common.trendline','viewOrder','Progress','bases-dashboard-ui.dashboard.formulaShape','center','bases-dashboard-ui.dashboardInspector.backgroundImage','Base\x20dashboard\x20chart\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','dashboard-text-','rowType','getFieldPositionInfoById','Rating','preventDefault','Candlestick','no-repeat','onMove','colView','axis','entries','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','file','RecordId','filterFields','right','widgetOrder','onStarting','univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.acrossThenDown','univer-size-6\x20!univer-border\x20!univer-border-solid\x20!univer-border-gray-200\x20!univer-bg-gray-0\x20univer-p-0\x20!univer-shadow-none\x20hover:!univer-bg-gray-100\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900\x20dark:hover:!univer-bg-gray-800','bases-dashboard-ui.pivot.count','@univerjs-pro/bases-dashboard-ui','[data-dashboard-widget]','startX','GREATER_THAN_OR_EQUAL','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','univer-text-sm','bases-dashboard-ui.pivot.summarizeBy','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','pageWrap','bases-dashboard-ui.pivot.showColumnGrandTotal','parentElement','base-pivot-chart-setup','Dom','pointerup','system','tables','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','univer-grid\x20univer-gap-4','bases-dashboard-ui.dashboardInspector.percent','bases-dashboard-ui.dashboardInspector.backgroundColor','Date','bases-dashboard-ui.chart.section.funnel','size','displayName','bases-dashboard-ui.dashboardInspector.enterValue','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','Image','stringify','bases-dashboard-ui.pivot.removeField','bases-dashboard-ui.dashboardInspector.numberFormat','click','bases-dashboard-ui.dashboardInspector.number','currentTarget','univer-flex-1','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','univer-shrink-0\x20univer-px-3','valuePosition','formulaBinding','bases-dashboard-ui.operators.isEmpty','Boxplot','forEach','getCurrentTheme','4WdqiGC','univer-text-gray-400','_createContext','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','waterfall','name','Bubble','thead','aside','univer-size-4','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','BEFORE','GeneralSeries','removeEventListener','releaseChartRuntime','layout','dataSource','executeCommand','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','dashboards','bases-dashboard-ui.operators.contains','resizeDirection','getSnapshot','bases-dashboard-ui.pivot.grandTotal','renderRevision','body','setOptions','width','univer-cursor-grab','bases-dashboard-ui.chart.section.pie','change$','fields','has','tableId','VerticalAxis','pointerY','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','bases-dashboard-ui.pivot.showRowGrandTotal','matches','_localeService','then','grouped','CONTAINS','config','sourceType','getRuntimeContext','rootContainerElement','bases-dashboard-ui.dashboardInspector.dataSource','getRenderColor','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','univer-truncate','fullscreenchange','bases-dashboard-ui.dashboardInspector.left','bases-dashboard-ui.pivot.display','executeChartUpdateConfig','sortInfo','bases-dashboard-ui.pivot.options','bases-dashboard-ui.pivot.filters','fieldOrder','getResult','Histogram','bases-dashboard-ui.pivot.addToFilter','bases-dashboard-ui.chart.section.candlestick','univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','title','compact','Group','_injector','bases-dashboard-ui.dashboard.defaultName','getResource','bases-dashboard-ui.dashboardInspector.originalSize','conjunction','bases-dashboard-ui.pivot.values','bases-dashboard-ui.operators.isNotEmpty','_configService','date','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','decimalPlaces','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','1114177gGbYbu','bases-dashboard-ui.dashboardInspector.autoFit','bases-dashboard-ui.pivot.stdDev','bases-dashboard-ui.pivot.rows','bases-dashboard-ui.dashboardInspector.checked','addFieldWithSourceId','univer-mt-2\x20univer-w-full','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','rowFields','dashboardOrder','string','6QgCTbZ','bases-dashboard-ui.pivot.description','bases-dashboard-ui.chart.section.paretoBar','univer-mt-2','bases-dashboard-ui.chart.common.heatmap','legend','bottom','bases-dashboard-ui.pivot.confirm','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','call','UUID','Pivot','bases-dashboard-ui.dashboard.editWidget','bases-dashboard-ui.pivot.pageDirection','bases-dashboard-ui.dashboardInspector.removeImage','Chord','rightY','bases-dashboard-ui.dashboard.delete','current','bases-dashboard-ui.dashboard.addWidget','bases-dashboard-ui.dashboard.redo','img','getImage','innerWidth','subItem','univer-pointer-events-none\x20univer-absolute\x20univer-z-30\x20univer-appearance-none\x20univer-p-0\x20univer-opacity-0\x20!univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','Data','Sunburst','presentation','LineAndArea','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','floor','false','stopPropagation','univer-text-right','addImageSourceCache','bases-dashboard-ui.dashboard.add','undoRedoStatus$','var','createDomChartInstance','funnel','pointermove','fill','disconnect','bases-dashboard-ui.dashboardInspector.textSize','visibilityState','bases-dashboard-ui.pivot.variancePopulation','WaterfallSeries','pivot','checkMounted','bases-dashboard-ui.dashboard.tableFilter','iterator','bases-dashboard-ui.dashboard.search','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','bases-dashboard-ui.dashboardInspector.repeat','bases-dashboard-ui.pivot.product','bases-dashboard-ui.dashboardInspector.compact','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','getDataFieldByTableId','section','bases-dashboard-ui.chart.common.series','toPrimitive','bases-dashboard-ui.pivot.layoutTabular','image/*','tabular','bases-dashboard-ui.pivot.average','base-pivot-chart-','ChartStyle','_element','bases-dashboard-ui.pivot.blank','bases-dashboard-ui.dashboardInspector.center','column:','isArray','button','split','getFieldCountByArea','filter','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','bases-dashboard-ui.operators.is','toLocaleLowerCase','bases-dashboard-ui.dashboard.text','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','getChartRuntime','bases-dashboard-ui.pivot.sourceFields','onFilter','bases-dashboard-ui.chart.section.gauge','info','waterfallStyle','215018aupjJt','univer-relative\x20univer-z-10','bases-dashboard-ui.dashboardInspector.currencyCode','saveAttachment','bases-dashboard-ui.pivot.top','bases-dashboard-ui.dashboardInspector.custom','clientY','_renderModelManager','source','currentTheme$','getOwnPropertyDescriptor','General','undos','Escape','bases-dashboard-ui.dashboard.fullScreen','textColor','bases-dashboard-ui.chart.section.histogram','baseChartDataAnimation','Radar','input','bases-dashboard-ui.chart.common.editChart','univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','bases-dashboard-ui.chart.common.rightVerticalAxis','univer-grid\x20univer-gap-3\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','doc','small','header','toDate','gray','textStyle','univer-border-gray-200\x20dark:!univer-border-gray-700','getPresentation','render','Number','updateFieldPosition','tbody','stdDevp','find','bases-dashboard-ui.dashboard.widgetActions','YYYY-MM-DD','scrollWidth','setLabelFilterInfo','bases-dashboard-ui.dashboardInspector.uploadImage','ceil','paragraphId','bases-dashboard-ui.chart.common.customize','cover','changed$','symbol','univer-flex\x20univer-justify-end\x20univer-gap-2','NumberFormat','titles','repeatRowLabels','Filter','rightYAxis','slice','set','univer-w-36','IS_NOT_EMPTY','univer-size-8\x20univer-p-0\x20univer-text-red-500','isTopTotal','max','univer-flex\x20univer-flex-col\x20univer-gap-4','bases-dashboard-ui.dashboardInspector.replaceImage','description','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','files','top','bases-dashboard-ui.pivot.chartConfiguration','PivotChart','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','bases-dashboard-ui.dashboardInspector.grouped','IS_EMPTY','accept','clientWidth','univer-flex\x20univer-items-center\x20univer-gap-2','addEventListener','bases-dashboard-ui.dashboardInspector.close','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','getUnit','delete','getImageSourceCache','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-px-4\x20dark:!univer-border-gray-700','univer-shrink-0\x20univer-rounded-full\x20univer-bg-gray-200\x20univer-px-2\x20univer-py-0.5\x20univer-text-xs\x20univer-text-gray-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-300','5675400DTOhAx','bases-dashboard-ui.chart.common.legend','headerRowCount','get','Gauge','onReady','pageOverThenDown','showRowGrandTotal','fullscreenElement','getDashboard','default','bases-dashboard-ui.pivot.downThenAcross','univer-group\x20univer-relative\x20univer-flex\x20univer-min-h-0\x20univer-flex-col\x20univer-overflow-visible\x20univer-rounded-lg\x20univer-border\x20univer-shadow-sm\x20univer-transition-shadow','unsubscribe','bases-dashboard-ui.operators.after','from','bases-dashboard-ui.operators.isNot','length','borderRadius','univer-grid\x20univer-gap-4\x20univer-p-4','isTotal','7870626tdoYTS','ascending','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','bases-dashboard-ui.pivot.addToRow','univer-flex','descending','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','dataset','blur','error','bases-dashboard-ui.dashboard.undo','renameField','bases-dashboard-ui.pivot.showRowSubtotal','bases-dashboard-ui.pivot.columns','bases-dashboard-ui.pivot.repeatRowLabels','decimal','onDrop','setSortInfo','getRect','headerMap','activeRuntimeModel','flatMap','model','version','univer-grid\x20univer-gap-2\x20univer-p-3','pattern','_config','count','currency','trim','varp','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','dimension','PieStyle','dispose','pointerX','bases-dashboard-ui.dashboardInspector.sourceUnavailable','direction$','cancel','bases-dashboard-ui.dashboardInspector.general','add','imageSourceType','chartId','match','area','bases-dashboard-ui.chart.section.relation','createRenderInput','bases-dashboard-ui.operators.lessThan','formatMap','base-pivot-table-configuration','Text','bases-dashboard-ui.dashboard.pivotChart','cornerView','bases-dashboard-ui.dashboardInspector.contain','ChartAndAxisTitles','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','bases-dashboard-ui.chart.chartTypes.area','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','blank','segmented','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','contains','0\x200','base-pivot-options','bases-dashboard-ui.pivot.pivotConfiguration','7503380zhRQkj','bases-dashboard-ui.pivot.tableOnly','true','minmax(0,\x203fr)\x20minmax(0,\x202fr)','disposeWithMe','supports','setLayout','bases-dashboard-ui.chart.waterfall.subtotal','bases-dashboard-ui.pivot.sum','bases-dashboard-ui.pivot.layoutCompact','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.operators.notContains','dataModel','univer-min-w-0\x20univer-flex-1','base-dashboard-pivot-chart-','rowCount','orient','base-pivot-fields','change','auto','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','end','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-gray-50\x20univer-font-semibold\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','base64Cache','localeKey','isConnected','row','fit','MultipleGrandTotal','src','widgets','exitFullscreen','getOptions','Line','Subtotal','allSeriesStyle','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','separator','acquireChartRuntime','bases-dashboard-ui.dashboardInspector.editData','Column','function','bind','bases-dashboard-ui.dashboardInspector.data','chart','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','isFinite','baseChartDataAnimationDuration','\x20/\x20span\x20','pipe','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','MultiSelect','bases-dashboard-ui.pivot.name','border-box','onMoveDown','indicatorLine','GridlinesAndTicks','onCommit','(prefers-reduced-motion:\x20reduce)','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','bases-dashboard-ui.dashboardInspector.cover','px\x20solid\x20','syncLayout','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','Pareto','innerHeight','WordCloud','getTableFieldsByDataFieldId','columnFields','bases-dashboard-ui.pivot.addToValue','Row','ParetoLineSeries','defaultPrevented','fieldId','waterfall.positive','filterInfo','univer-size-5\x20univer-text-primary-600','pie','RoundRect','darkMode$','percent','columnSpan','field','height','dashboard-chart-setup','primary','row:','bases-dashboard-ui.pivot.dataSource','operator','format','tableOrder','bases-dashboard-ui.pivot.selectAll','bases-dashboard-ui.dashboard.new','setStyle','dashboard-widget-','univer-relative\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-50\x20dark:univer-bg-gray-950','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','bases-dashboard-ui.pivot.chartAndTable','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','univer-w-full','replaceChildren','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-flex\x20univer-min-h-full\x20univer-flex-col','bases-dashboard-ui.dashboardInspector.reset','bases-dashboard-ui.pivot.clearFilter','showColGrandTotal','5483632XcSvKR','univer-pointer-events-none\x20univer-absolute\x20univer-left-1/2\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-h-5\x20univer-w-8\x20-univer-translate-x-1/2\x20univer-appearance-none\x20univer-items-center\x20univer-justify-center\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-400\x20univer-opacity-0\x20univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','lastRow','onRemove','cumulativeLineStyle','destructive','resolve','label','setFieldFormat','Value','colCount','bases-dashboard-ui.chart.common.chartAndAxisTitles','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','removeField','alt','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','items','ownerDocument','ManualFilter','dom','dataView','setSubtotalType','bases-dashboard-ui.dashboardInspector.selectOption','univer-cursor-grabbing','original','move','setCurrentUnitForType','dashboard-','bases-dashboard-ui.chart.section.wordCloud','data:','pivotViewId','shapeText','object','baseOn','color','toJSON','HorizontalAxis','univer-mb-2\x20univer-border-collapse\x20univer-text-sm','fontSize','left','toUpperCase','bases-dashboard-ui.pivot.bottom','3WgasRS','catch','isHeader','canView','outline','base-pivot-chart-style','bases-dashboard-ui.pivot.searchFields','shapeType','url('];_0x1f68=function(){return _0x41dfb7;};return _0x1f68();}function bi(_0x381111){const _0x126147=_0x5d48da;switch(_0x381111[_0x126147(0x278)]){case _0x4dd1ab['PivotChart']:return _0x126147(0x1ca);case _0x4dd1ab[_0x126147(0x296)]:return _0x126147(0x108);case _0x4dd1ab[_0x126147(0x1c9)]:return'bases-dashboard-ui.dashboard.text';case _0x4dd1ab[_0x126147(0x3c0)]:return _0x126147(0x2a4);case _0x4dd1ab['FormulaShape']:return _0x126147(0x38b);}}function xi({onDelete:_0x18bf02,onEdit:_0x2e43df,onMoveUp:_0x2997e5,onMoveDown:_0x6ceadb}){const _0x491ddc=_0x5d48da;let [_0x288c7d,_0x3216fe]=_0x4ebd7a(!0x1),_0x2b9ea9=_0x40463f(_0x1ecd96),_0x2af55f=_0x2b9ea9['t'](_0x491ddc(0xe2)),_0x2febf0=_0x2b9ea9['t'](_0x491ddc(0x297)),_0x10956b=_0x2b9ea9['t'](_0x491ddc(0x154)),_0x312e07=[{'type':'item','children':_0x2fa798(_0x491ddc(0x339),{'className':_0x491ddc(0x179),'children':[_0x5628d9(_0x1d4ca0,{'className':_0x491ddc(0x3db),'aria-hidden':_0x491ddc(0x1da)}),_0x5628d9(_0x491ddc(0x339),{'children':_0x2af55f})]}),'onSelect':_0x2e43df},..._0x2997e5?[{'type':'item','children':_0x2fa798(_0x491ddc(0x339),{'className':_0x491ddc(0x179),'children':[_0x5628d9(_0x343cd3,{'className':_0x491ddc(0x3db),'aria-hidden':_0x491ddc(0x1da)}),_0x5628d9(_0x491ddc(0x339),{'children':_0x2b9ea9['t'](_0x491ddc(0x323))})]}),'onSelect':_0x2997e5}]:[],..._0x6ceadb?[{'type':_0x491ddc(0x321),'children':_0x2fa798(_0x491ddc(0x339),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x5628d9(_0xfb8e72,{'className':_0x491ddc(0x3db),'aria-hidden':_0x491ddc(0x1da)}),_0x5628d9(_0x491ddc(0x339),{'children':_0x2b9ea9['t'](_0x491ddc(0x2af))})]}),'onSelect':_0x6ceadb}]:[],{'type':_0x491ddc(0x1fd)},{'type':_0x491ddc(0x321),'variant':_0x491ddc(0x247),'children':_0x2fa798('span',{'className':_0x491ddc(0x179),'children':[_0x5628d9(_0x275aa7,{'className':_0x491ddc(0x3db),'aria-hidden':_0x491ddc(0x1da)}),_0x5628d9('span',{'children':_0x2febf0})]}),'onSelect':_0x18bf02}];return _0x5628d9(_0x56bbe5,{'open':_0x288c7d,'onOpenChange':_0x3216fe,'align':_0x491ddc(0x1ed),'sideOffset':0x4,'items':_0x312e07[_0x491ddc(0x2ea)](_0x250ade=>({..._0x250ade,'className':_0x250ade[_0x491ddc(0x278)]===_0x491ddc(0x321)?_0x491ddc(0x310):void 0x0})),'children':_0x5628d9(_0x101ca4,{'type':_0x491ddc(0x11f),'size':_0x491ddc(0x147),'variant':_0x491ddc(0x2e2),'onPointerDown':_0x23fa92=>_0x23fa92[_0x491ddc(0x394)](),'onClick':()=>_0x3216fe(_0x44ffb5=>!_0x44ffb5),'title':_0x10956b,'aria-label':_0x10956b,'className':'univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','children':_0x5628d9(_0x4093a6,{'className':_0x491ddc(0x3db),'aria-hidden':_0x491ddc(0x1da)})})});}function Si({dashboardId:_0x344e64,presentation:_0x2f0eff=!0x1,unitId:_0x3685a3}){const _0x579ef5=_0x5d48da;let _0x1d0650=_0x40463f(_0x3c350b),_0x31d123=_0x40463f(_0x5df1d5);_0x5056f6(_0x31d123[_0x579ef5(0x15d)],0x0);let _0x419f5b=_0x40463f(_0x1e6f93),_0x32d2dc=_0x40463f(_0x5b5322),_0x45a81e=_0x40463f(_0x2667ef),_0x30df4c=_0x40463f(_0x4829da),_0x24e3bd=_0x40463f(_0x1ecd96),_0x53d840=_0x40463f(_0x3a16be),_0x32ca48=_0x40463f(_0x12718a),[_0x14c7cb,_0x1b6d4a]=_0x4ebd7a(!0x1),[_0x45e171,_0x245b72]=_0x4ebd7a(),[_0x1fa87d,_0x250275]=_0x4ebd7a(!0x1),[_0x483dbc,_0x41c410]=_0x4ebd7a(()=>new Map()),_0xf3b021=_0x26d744((_0x4935fb,_0x5f5087)=>{_0x41c410(_0x4db09d=>{const _0x5585f3=_0x187c;let _0x449013=new Map(_0x4db09d);return _0x5f5087?_0x449013[_0x5585f3(0x166)](_0x4935fb,_0x5f5087):_0x449013['delete'](_0x4935fb),_0x449013;});},[]),_0x1186dd=_0x5056f6(()=>_0x53d840[_0x579ef5(0x9a)][_0x579ef5(0x209)](_0x51821f(()=>_0x53d840[_0x579ef5(0x18b)](_0x3685a3,_0x344e64))),_0x53d840[_0x579ef5(0x18b)](_0x3685a3,_0x344e64),!0x1,[_0x344e64,_0x53d840,_0x3685a3]),_0x53b4d2=_0x30df4c[_0x579ef5(0x17d)](_0x3685a3,_0x247fc0[_0x579ef5(0x324)]),_0x52d1e8=_0x5056f6(()=>_0x32ca48[_0x579ef5(0xfb)],{'undos':0x0,'redos':0x0},!0x1,[_0x32ca48]),_0x1caeb0=vr(_0x3685a3,_0x344e64);if(_0x185176(()=>{const _0xb2a5be=_0x579ef5;_0x30df4c[_0xb2a5be(0x25c)](_0x3685a3),_0x30df4c['focusUnit'](_0x3685a3);},[_0x30df4c,_0x3685a3]),!_0x1186dd||!_0x53b4d2)return null;let _0x25cbea={'unitId':_0x3685a3,'objectId':_0x4b369a(_0x344e64),'objectType':_0x346fe7[_0x579ef5(0x37b)]},_0x3f4dfc=(_0x9664e1,_0x30dc42)=>{const _0x2b7077=_0x579ef5;let _0x500cb9=[..._0x1186dd['widgetOrder']],_0x19bbff=_0x500cb9[_0x2b7077(0x34f)](_0x9664e1),_0x35313e=_0x19bbff+_0x30dc42;if(!(_0x19bbff<0x0||_0x35313e<0x0||_0x35313e>=_0x500cb9[_0x2b7077(0x193)]))return[_0x500cb9[_0x19bbff],_0x500cb9[_0x35313e]]=[_0x500cb9[_0x35313e],_0x500cb9[_0x19bbff]],_0x419f5b['executeCommand'](_0x1e3e1b['id'],{'unitId':_0x3685a3,'dashboard':{..._0x1186dd,'widgetOrder':_0x500cb9}});},_0x4d9180=_0x59e56e=>_0x419f5b[_0x579ef5(0x3e3)](_0x1041db['id'],{'unitId':_0x3685a3,'dashboardId':_0x344e64,'widget':_0x59e56e})[_0x579ef5(0x26d)](()=>void 0x0),_0x265dd0=(_0x2b0e00,_0x240f1f,_0xa7dfb7)=>{const _0x11d10f=_0x579ef5;let _0x3ae9a0=Math['max'](0x0,..._0x1186dd['widgetOrder']['flatMap'](_0x1a4921=>{const _0x19c0ab=_0x187c;var _0x32461e;let _0x29eb02=(_0x32461e=_0x1186dd[_0x19c0ab(0x1f6)][_0x1a4921])==null?void 0x0:_0x32461e[_0x19c0ab(0x3e1)];return _0x29eb02?[_0x29eb02[_0x19c0ab(0x1f2)]+_0x29eb02[_0x19c0ab(0x314)]]:[];})),_0x3d48cc='dashboard-widget-'+_0x2cedf9(0x8),_0x8e074a={'column':0x0,'row':_0x3ae9a0,'columnSpan':_0x240f1f,'rowSpan':_0xa7dfb7};switch(_0x2b0e00[_0x11d10f(0x278)]){case _0x4dd1ab[_0x11d10f(0x173)]:return _0x4d9180({..._0x2b0e00,'id':_0x3d48cc,'layout':_0x8e074a});case _0x4dd1ab['TableFilter']:return _0x4d9180({..._0x2b0e00,'id':_0x3d48cc,'layout':_0x8e074a});case _0x4dd1ab[_0x11d10f(0x1c9)]:return _0x4d9180({..._0x2b0e00,'id':_0x3d48cc,'layout':_0x8e074a});case _0x4dd1ab[_0x11d10f(0x3c0)]:return _0x4d9180({..._0x2b0e00,'id':_0x3d48cc,'layout':_0x8e074a});case _0x4dd1ab[_0x11d10f(0x2c2)]:return _0x4d9180({..._0x2b0e00,'id':_0x3d48cc,'layout':_0x8e074a});}},_0x2e1d94=_0x53b4d2[_0x579ef5(0x3e8)](),_0x1f54d1=_0x2e1d94['tableOrder'][_0x579ef5(0x1ac)](_0xeee8e1=>{const _0x118a13=_0x579ef5;let _0x3d12aa=_0x2e1d94['tables'][_0xeee8e1];if(!_0x3d12aa)return[];let _0x5e779e=_0x3d12aa[_0x118a13(0x389)][_0x118a13(0x1ac)](_0x1ea831=>{const _0x4407b5=_0x118a13;let _0x198e33=_0x3d12aa[_0x4407b5(0x2eb)][_0x1ea831];return Ai(_0x198e33)?[{'type':_0x4407b5(0x321),'children':_0x198e33[_0x4407b5(0x3d7)],'onSelect':()=>_0x265dd0({'type':_0x4dd1ab[_0x4407b5(0x173)],'tableId':_0xeee8e1,'pivotViewId':_0x1ea831,'chart':{..._0x198e33[_0x4407b5(0xa7)][_0x4407b5(0x204)]}},0x6,0xa)}]:[];});return[{'type':_0x118a13(0xee),'children':_0x3d12aa[_0x118a13(0x3d7)],'options':[..._0x5e779e,..._0x5e779e[_0x118a13(0x193)]?[{'type':_0x118a13(0x1fd)}]:[],{'type':_0x118a13(0x321),'children':_0x24e3bd['t'](_0x118a13(0x108)),'onSelect':()=>_0x265dd0({'type':_0x4dd1ab[_0x118a13(0x296)],'tableId':_0xeee8e1,'filter':null},0x6,0x8)}]}];}),_0x81f383=[..._0x1f54d1,..._0x1f54d1['length']?[{'type':_0x579ef5(0x1fd)}]:[],{'type':_0x579ef5(0x321),'children':_0x24e3bd['t']('bases-dashboard-ui.dashboard.text'),'onSelect':()=>_0x265dd0({'type':_0x4dd1ab[_0x579ef5(0x1c9)],'document':Ei()},0x4,0x6)},{'type':'item','children':_0x24e3bd['t'](_0x579ef5(0x2a4)),'onSelect':()=>Di(_0x32d2dc)[_0x579ef5(0xa4)](_0x41be3b=>_0x41be3b&&_0x265dd0({'type':_0x4dd1ab['Image'],'source':_0x41be3b[_0x579ef5(0x136)],'sourceType':_0x41be3b['sourceType'],'alt':_0x41be3b[_0x579ef5(0x3d7)],'displayMode':_0x579ef5(0x15c)},0x4,0x6))},{'type':_0x579ef5(0x321),'children':_0x24e3bd['t'](_0x579ef5(0x38b)),'onSelect':()=>{const _0x2c40e6=_0x579ef5;let _0x67bae1=_0x2e1d94[_0x2c40e6(0x232)]['find'](_0x4c1339=>_0x2e1d94[_0x2c40e6(0x3b5)][_0x4c1339]);_0x67bae1&&_0x265dd0({'type':_0x4dd1ab[_0x2c40e6(0x2c2)],'tableId':_0x67bae1,'shapeType':_0x5d0718[_0x2c40e6(0x226)],'shapeData':_0x154b06(),'description':_0x24e3bd['t'](_0x2c40e6(0x38b))},0x4,0x6);}}],_0x1c0c53=_0x45e171?_0x1186dd[_0x579ef5(0x1f6)][_0x45e171]:void 0x0,_0x5ecdcc=()=>_0x250275(_0xd7f9c9=>!_0xd7f9c9),_0xf7478c=_0x2f0eff||_0x1fa87d,_0xfb6a63=_0x1caeb0&&!_0xf7478c;return _0x5628d9(Jr,{'children':_0x2fa798(_0x579ef5(0x334),{'className':_0x579ef5(0x38f)+(_0x1fa87d?_0x579ef5(0x1ce):_0x579ef5(0x12f))+_0x579ef5(0x205),'children':[_0x1fa87d&&_0x5628d9(_0x101ca4,{'onClick':()=>_0x250275(!0x1),'children':_0x24e3bd['t']('bases-dashboard-ui.dashboardInspector.close')}),!_0xf7478c&&_0x2fa798(_0x579ef5(0x148),{'className':_0x579ef5(0x283),'children':[_0x5628d9(_0x5f4d2a,{'className':_0x579ef5(0x224)}),_0x5628d9('h2',{'className':_0x579ef5(0x327),'children':_0x1186dd[_0x579ef5(0x3d7)]}),_0x31d123[_0x579ef5(0x1dd)](_0x25cbea)&&_0x5628d9(_0x101ca4,{'variant':_0x579ef5(0x2e2),'disabled':!_0x31d123[_0x579ef5(0x26f)](_0x25cbea),'aria-label':_0x24e3bd['t'](_0x579ef5(0x382)),'onClick':()=>{const _0x1d64b0=_0x579ef5;_0x523b72(_0x1d0650,{'target':_0x25cbea,'name':_0x1186dd[_0x1d64b0(0x3d7)],'commandId':_0x5205b3['id'],'exists':()=>!!_0x53d840[_0x1d64b0(0x18b)](_0x3685a3,_0x344e64)});},'children':_0x5628d9(_0x44f2df,{})}),_0x5628d9(_0x450293,{'unitId':_0x3685a3}),_0x5628d9(_0x101ca4,{'type':_0x579ef5(0x11f),'size':_0x579ef5(0x147),'variant':_0x579ef5(0x2e2),'aria-label':_0x24e3bd['t'](_0x579ef5(0x1a1)),'disabled':!_0x1caeb0||_0x52d1e8[_0x579ef5(0x13a)]===0x0,'onClick':()=>_0x419f5b['executeCommand'](_0x1c6299['id'])[_0x579ef5(0x26d)](()=>void 0x0),'children':_0x5628d9(_0x4e88b7,{})}),_0x5628d9(_0x101ca4,{'type':_0x579ef5(0x11f),'size':_0x579ef5(0x147),'variant':_0x579ef5(0x2e2),'aria-label':_0x24e3bd['t'](_0x579ef5(0xea)),'disabled':!_0x1caeb0||_0x52d1e8[_0x579ef5(0x2a7)]===0x0,'onClick':()=>_0x419f5b[_0x579ef5(0x3e3)](_0x5eb015['id'])[_0x579ef5(0x26d)](()=>void 0x0),'children':_0x5628d9(_0x245c5e,{})}),_0x5628d9(_0x101ca4,{'type':_0x579ef5(0x11f),'size':_0x579ef5(0x147),'variant':_0x579ef5(0x2e2),'aria-label':_0x24e3bd['t'](_0x579ef5(0x13c)),'onClick':_0x5ecdcc,'children':_0x5628d9(_0x6d0af7,{})}),_0x5628d9(Xr,{'items':_0x81f383,'children':_0x2fa798(_0x101ca4,{'variant':_0x579ef5(0x22d),'disabled':!_0x1caeb0,'children':[_0x5628d9(_0x4f1759,{}),_0x24e3bd['t'](_0x579ef5(0xe9))]})})]}),_0x2fa798(_0x579ef5(0x334),{'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1','children':[_0x5628d9(_0x579ef5(0x334),{'className':_0x579ef5(0x1e5),'children':_0x5628d9(Kr,{'dashboard':_0x1186dd,'editable':_0xfb6a63,'widgetLabel':_0x10ffd8=>_0x24e3bd['t'](ki(_0x10ffd8[_0x579ef5(0x278)])),'selectedWidgetId':_0xfb6a63?_0x45e171:void 0x0,'onSelectWidget':_0xfb6a63?_0x54c664=>{_0x245b72(_0x54c664),_0x54c664||_0x1b6d4a(!0x1);}:void 0x0,'renderWidget':_0x4e33b9=>_0x5628d9(Ci,{'base':_0x53b4d2,'dashboard':_0x1186dd,'unitId':_0x3685a3,'widget':_0x4e33b9,'onChange':_0x4d9180,'onChartRuntimeChange':_0xf3b021}),'renderWidgetActions':_0x10ea10=>_0x5628d9(xi,{'onMoveUp':_0x1186dd[_0x579ef5(0x3a0)][_0x579ef5(0x34f)](_0x10ea10['id'])>0x0?()=>_0x3f4dfc(_0x10ea10['id'],-0x1):void 0x0,'onMoveDown':_0x1186dd[_0x579ef5(0x3a0)][_0x579ef5(0x34f)](_0x10ea10['id'])<_0x1186dd[_0x579ef5(0x3a0)][_0x579ef5(0x193)]-0x1?()=>_0x3f4dfc(_0x10ea10['id'],0x1):void 0x0,'onEdit':()=>{_0x245b72(_0x10ea10['id']),_0x1b6d4a(!0x0);},'onDelete':()=>{const _0x59da80=_0x579ef5;_0x45e171===_0x10ea10['id']&&(_0x245b72(void 0x0),_0x1b6d4a(!0x1)),_0x419f5b[_0x59da80(0x3e3)](_0x105c7d['id'],{'unitId':_0x3685a3,'dashboardId':_0x344e64,'widgetId':_0x10ea10['id']})[_0x59da80(0x26d)](()=>void 0x0);}})})}),_0xfb6a63&&_0x14c7cb&&_0x1c0c53&&_0x5628d9(pi,{'base':_0x53b4d2,'chartRuntime':_0x483dbc['get'](_0x1c0c53['id']),'unitId':_0x3685a3,'widget':_0x1c0c53,'onChange':_0x4d9180,'onClose':()=>_0x1b6d4a(!0x1),'onSelectBackgroundImage':()=>Oi(_0x45a81e),'onSelectImage':()=>Di(_0x32d2dc)})]})]})});}function Ci({base:_0x3a18bd,dashboard:_0xe9b27f,onChange:_0x43b75b,onChartRuntimeChange:_0x2027c4,unitId:_0x4055cd,widget:_0xd56595}){const _0x218b06=_0x5d48da;let _0xa42cf8=_0x5c672b(()=>_0xe9b27f[_0x218b06(0x3a0)][_0x218b06(0x1ac)](_0x1bd3cb=>{const _0x358f7d=_0x218b06;let _0x3b8d9e=_0xe9b27f[_0x358f7d(0x1f6)][_0x1bd3cb];return(_0x3b8d9e==null?void 0x0:_0x3b8d9e[_0x358f7d(0x278)])===_0x4dd1ab[_0x358f7d(0x296)]&&_0x3b8d9e[_0x358f7d(0x9d)]===(_0x358f7d(0x9d)in _0xd56595?_0xd56595[_0x358f7d(0x9d)]:'')&&_0x3b8d9e[_0x358f7d(0x122)]?[_0x3b8d9e[_0x358f7d(0x122)]]:[];}),[_0xe9b27f,_0xd56595]);switch(_0xd56595['type']){case _0x4dd1ab[_0x218b06(0x173)]:return _0x5628d9(zr,{'filters':_0xa42cf8,'unitId':_0x4055cd,'widget':_0xd56595,'onRuntimeChange':_0x2027c4});case _0x4dd1ab['TableFilter']:return _0x5628d9(di,{'fields':wi(_0x3a18bd,_0xd56595[_0x218b06(0x9d)]),'filter':_0xd56595[_0x218b06(0x122)],'onChange':_0x1814e4=>_0x43b75b({..._0xd56595,'filter':_0x1814e4})[_0x218b06(0x26d)](()=>void 0x0)});case _0x4dd1ab[_0x218b06(0x1c9)]:return _0x5628d9(Gr,{'widget':_0xd56595});case _0x4dd1ab[_0x218b06(0x3c0)]:return _0x5628d9(Ti,{'widget':_0xd56595});case _0x4dd1ab['FormulaShape']:return _0x5628d9(kr,{'dashboardId':_0xe9b27f['id'],'unitId':_0x4055cd,'widget':_0xd56595});}}function wi(_0x1465c7,_0x3f5c77){const _0x5177cf=_0x5d48da;let _0x277a64=_0x1465c7[_0x5177cf(0x3e8)]()[_0x5177cf(0x3b5)][_0x3f5c77],_0xd52c79=_0x277a64==null?void 0x0:_0x277a64['viewOrder']['find'](_0x4427e7=>_0x277a64['views'][_0x4427e7]),_0x4ed7b2=_0xd52c79?_0x277a64==null?void 0x0:_0x277a64[_0x5177cf(0x2eb)][_0xd52c79]:void 0x0;return _0x277a64&&_0x4ed7b2?_0x28d476(_0x277a64,_0x4ed7b2):[];}function Ti({widget:_0x41aab8}){const _0x39cf2f=_0x5d48da;let _0x42c68f=_0x40463f(_0x5b5322),[_0x4c0d9f,_0x38a241]=_0x4ebd7a(_0x41aab8[_0x39cf2f(0xa8)]===_0x3892df[_0x39cf2f(0xe0)]?'':_0x41aab8[_0x39cf2f(0x136)]);return _0x185176(()=>{const _0xbe77ad=_0x39cf2f;let _0x28841f=!0x0;return _0x42c68f[_0xbe77ad(0x2bd)](_0x41aab8[_0xbe77ad(0x136)],_0x41aab8[_0xbe77ad(0xa8)])[_0xbe77ad(0xa4)](_0x1093a8=>{_0x28841f&&_0x38a241(_0x1093a8);})[_0xbe77ad(0x26d)](()=>void 0x0),()=>{_0x28841f=!0x1;};},[_0x42c68f,_0x41aab8[_0x39cf2f(0x136)],_0x41aab8['sourceType']]),_0x4c0d9f?_0x5628d9(_0x39cf2f(0x334),{'role':_0x41aab8['alt']?_0x39cf2f(0xeb):void 0x0,'aria-label':_0x41aab8[_0x39cf2f(0x250)]||void 0x0,'data-dashboard-image':_0x41aab8['id'],'className':_0x39cf2f(0x2b9),'style':br(_0x4c0d9f,_0x41aab8[_0x39cf2f(0x31a)])}):null;}function Ei(){const _0x1d55e3=_0x5d48da;let _0x193659=_0x1be82d(new Set());return{'id':_0x1d55e3(0x390)+_0x2cedf9(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x193659}]},'documentStyle':{}};}function Di(_0x33f46e){return new Promise(_0x1e65df=>{const _0x42e3a7=_0x187c;let _0x76a4d2=document['createElement']('input');_0x76a4d2[_0x42e3a7(0x278)]='file',_0x76a4d2[_0x42e3a7(0x177)]='image/*',_0x76a4d2[_0x42e3a7(0x17a)]('change',()=>{const _0x5efeb4=_0x42e3a7;var _0x3b3110;let _0x360d57=(_0x3b3110=_0x76a4d2[_0x5efeb4(0x170)])==null?void 0x0:_0x3b3110[0x0];_0x360d57?_0x33f46e[_0x5efeb4(0x131)](_0x360d57)[_0x5efeb4(0xa4)](_0x5c8ac8=>{const _0x36f771=_0x5efeb4;!_0x5c8ac8[_0x36f771(0x136)]||_0x5c8ac8[_0x36f771(0xa8)]===void 0x0?_0x1e65df(null):_0x1e65df({'name':_0x5c8ac8['name'],'source':_0x5c8ac8['source'],'sourceType':_0x5c8ac8[_0x36f771(0xa8)]});})[_0x5efeb4(0x26d)](()=>_0x1e65df(null)):_0x1e65df(null);},{'once':!0x0}),_0x76a4d2[_0x42e3a7(0x3c4)]();});}function Oi(_0x574f76){return new Promise(_0x29ca06=>{const _0x35ab79=_0x187c;let _0x1ccbd8=document[_0x35ab79(0x365)]('input');_0x1ccbd8[_0x35ab79(0x278)]='file',_0x1ccbd8['accept']=_0x35ab79(0x115),_0x1ccbd8[_0x35ab79(0x17a)](_0x35ab79(0x1ea),()=>{const _0x2b4496=_0x35ab79;var _0x4d336;let _0x26c5db=(_0x4d336=_0x1ccbd8[_0x2b4496(0x170)])==null?void 0x0:_0x4d336[0x0];_0x26c5db?_0x574f76['saveImage'](_0x26c5db)[_0x2b4496(0xa4)](_0x54b034=>{const _0x299753=_0x2b4496;if(!(_0x54b034!=null&&_0x54b034[_0x299753(0x136)]))_0x29ca06(null);else{if(_0x54b034[_0x299753(0x1ef)]){let _0x4548fe=new Image();_0x4548fe[_0x299753(0x1f5)]=_0x54b034[_0x299753(0x1ef)],_0x574f76[_0x299753(0xf9)](_0x54b034[_0x299753(0x136)],_0x54b034[_0x299753(0x1c0)],_0x4548fe);}_0x29ca06({'source':_0x54b034[_0x299753(0x136)],'sourceType':_0x54b034['imageSourceType']});}})['catch'](()=>_0x29ca06(null)):_0x29ca06(null);},{'once':!0x0}),_0x1ccbd8['click']();});}function ki(_0x5ede19){const _0x3914bf=_0x5d48da;switch(_0x5ede19){case _0x4dd1ab['PivotChart']:return _0x3914bf(0x1ca);case _0x4dd1ab[_0x3914bf(0x296)]:return _0x3914bf(0x108);case _0x4dd1ab[_0x3914bf(0x1c9)]:return _0x3914bf(0x126);case _0x4dd1ab[_0x3914bf(0x3c0)]:return _0x3914bf(0x2a4);case _0x4dd1ab['FormulaShape']:return'bases-dashboard-ui.dashboard.formulaShape';}}function Ai(_0x183ddd){const _0x3a32ba=_0x5d48da;return(_0x183ddd==null?void 0x0:_0x183ddd[_0x3a32ba(0x278)])===_0xc74f11[_0x3a32ba(0xe1)]&&typeof _0x183ddd[_0x3a32ba(0xa7)]==_0x3a32ba(0x262)&&_0x183ddd['config']!==null&&_0x3a32ba(0x106)in _0x183ddd[_0x3a32ba(0xa7)]&&_0x3a32ba(0x204)in _0x183ddd[_0x3a32ba(0xa7)];}function ji({pivot:_0x7f2cc,view:_0x41d75c}){const _0x38921c=_0x5d48da;let _0x4c13e6=_0x40463f(_0x1ecd96),_0x1818b3=_0x5c672b(()=>Mi(_0x41d75c,_0x7f2cc,_0x4c13e6['t'](_0x38921c(0x3e9))),[_0x4c13e6,_0x7f2cc,_0x41d75c]);return _0x2fa798(_0x38921c(0x334),{'className':'univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','children':[_0x1818b3[_0x38921c(0x330)]['length']>0x0&&_0x5628d9(_0x38921c(0x2d3),{'className':_0x38921c(0x267),'children':_0x5628d9(_0x38921c(0x151),{'children':Ni(_0x1818b3[_0x38921c(0x330)])})}),_0x2fa798(_0x38921c(0x2d3),{'className':'univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','children':[_0x1818b3['headerRowCount']>0x0&&_0x5628d9(_0x38921c(0x3d9),{'className':_0x38921c(0x2b3),'children':Ni(_0x1818b3[_0x38921c(0x2c9)]['slice'](0x0,_0x1818b3['headerRowCount']))}),_0x5628d9(_0x38921c(0x151),{'children':Ni(_0x1818b3[_0x38921c(0x2c9)][_0x38921c(0x165)](_0x1818b3[_0x38921c(0x184)]))})]})]});}function Mi(_0x57491d,_0x442b68,_0x2e7fd1){const _0x8c85b=_0x5d48da;let _0xaa0d1a=_0x57491d[_0x8c85b(0x398)][_0x8c85b(0x1e7)],_0x25398b=_0x57491d[_0x8c85b(0x289)][_0x8c85b(0x24c)],_0x583ddf=_0x57491d[_0x8c85b(0x256)]['rowCount'],_0x2cad1e=_0x57491d[_0x8c85b(0x256)]['colCount'],_0x18824b=Array[_0x8c85b(0x191)]({'length':_0xaa0d1a+_0x583ddf},(_0x3082f6,_0x1410a5)=>Array[_0x8c85b(0x191)]({'length':_0x25398b+_0x2cad1e},(_0x3acda9,_0x4f26f4)=>{const _0x4196a1=_0x8c85b;var _0xc9c05a,_0x115433;if(_0x1410a5<_0xaa0d1a&&_0x4f26f4<_0x25398b)return Pi(_0x57491d[_0x4196a1(0x1cb)],_0x1410a5,_0x4f26f4,void 0x0,_0x2e7fd1,!0x0,!0x1,'corner:'+_0x1410a5+':'+_0x4f26f4);if(_0x1410a5<_0xaa0d1a){var _0x710fca;let _0x1484be=_0x4f26f4-_0x25398b,_0x23bf38=(_0x710fca=_0x57491d[_0x4196a1(0x398)][_0x4196a1(0x1aa)][_0x1410a5])==null?void 0x0:_0x710fca[_0x4196a1(0x359)];return Pi(_0x57491d[_0x4196a1(0x398)],_0x1410a5,_0x1484be,_0x23bf38?_0x57491d[_0x4196a1(0x1c7)][_0x23bf38]:void 0x0,_0x2e7fd1,!0x0,Li(_0x57491d['colView'][_0x4196a1(0x12c)][_0x1484be]),_0x4196a1(0x11d)+_0x1410a5+':'+_0x1484be);}if(_0x4f26f4<_0x25398b){var _0x495a73;let _0x9e645e=_0x1410a5-_0xaa0d1a,_0xcdf512=(_0x495a73=_0x57491d[_0x4196a1(0x289)]['headerMap'][_0x4f26f4])==null?void 0x0:_0x495a73[_0x4196a1(0x359)];return Pi(_0x57491d[_0x4196a1(0x289)],_0x9e645e,_0x4f26f4,_0xcdf512?_0x57491d[_0x4196a1(0x1c7)][_0xcdf512]:void 0x0,_0x2e7fd1,!0x0,Li(_0x57491d[_0x4196a1(0x289)][_0x4196a1(0x12c)][_0x9e645e]),_0x4196a1(0x22e)+_0x9e645e+':'+_0x4f26f4);}let _0x403928=_0x1410a5-_0xaa0d1a,_0x1dbede=_0x4f26f4-_0x25398b,_0x31c253=Math['max'](((_0xc9c05a=_0x57491d[_0x4196a1(0x289)][_0x4196a1(0x12c)][_0x403928])==null?void 0x0:_0xc9c05a[_0x4196a1(0x309)])??-0x1,((_0x115433=_0x57491d['colView'][_0x4196a1(0x12c)][_0x1dbede])==null?void 0x0:_0x115433[_0x4196a1(0x309)])??-0x1),_0x52cf8e=_0x442b68[_0x4196a1(0x2c5)][_0x31c253<0x0?0x0:_0x31c253];return Pi(_0x57491d[_0x4196a1(0x256)],_0x403928,_0x1dbede,_0x52cf8e?_0x57491d[_0x4196a1(0x1c7)][_0x52cf8e]:void 0x0,_0x2e7fd1,!0x1,Li(_0x57491d['rowView'][_0x4196a1(0x12c)][_0x403928])||Li(_0x57491d[_0x4196a1(0x398)]['info'][_0x1dbede]),_0x4196a1(0x25f)+_0x403928+':'+_0x1dbede);}));return{'headerColumnCount':_0x25398b,'headerRowCount':_0xaa0d1a,'pageRows':_0x57491d[_0x8c85b(0x322)][_0x8c85b(0x244)]<0x0||_0x57491d[_0x8c85b(0x322)]['lastCol']<0x0?[]:Array['from']({'length':_0x57491d[_0x8c85b(0x322)][_0x8c85b(0x244)]+0x1},(_0x23ce06,_0x5b3991)=>Array[_0x8c85b(0x191)]({'length':_0x57491d[_0x8c85b(0x322)][_0x8c85b(0x2e9)]+0x1},(_0x98630a,_0x57c095)=>Pi(_0x57491d[_0x8c85b(0x322)],_0x5b3991,_0x57c095,void 0x0,_0x2e7fd1,!0x0,!0x1,'page:'+_0x5b3991+':'+_0x57c095))),'rows':_0x18824b};}function Ni(_0x2e69a8){const _0x49d01d=_0x5d48da;return _0x2e69a8[_0x49d01d(0x2ea)](_0x134280=>{const _0x3ab10b=_0x49d01d;var _0x527abd;return _0x5628d9('tr',{'children':_0x134280[_0x3ab10b(0x2ea)](_0x380cbc=>{const _0x4ebd6b=_0x3ab10b;let _0x481282=_0x380cbc[_0x4ebd6b(0x26e)]?'th':'td';return _0x5628d9(_0x481282,{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-whitespace-nowrap\x20univer-border\x20univer-border-gray-200\x20univer-px-3\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-left\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x380cbc[_0x4ebd6b(0x196)]?_0x4ebd6b(0x1ee):'')+_0x4ebd6b(0x23d)+(_0x380cbc[_0x4ebd6b(0x26e)]?'':_0x4ebd6b(0xf8))+_0x4ebd6b(0x1d3),'children':_0x380cbc['value']},_0x380cbc[_0x4ebd6b(0x2d0)]);})},(_0x527abd=_0x134280[0x0])==null?void 0x0:_0x527abd[_0x3ab10b(0x2d0)]);});}function Pi(_0x5c8711,_0x180e28,_0x353fe7,_0x21554d,_0x1286e3,_0x559a8e,_0x5cbd68,_0x55e177){const _0x4604fc=_0x5d48da;var _0x2f20e1;let _0x43fd7c=(_0x2f20e1=_0x5c8711[_0x4604fc(0x373)][_0x180e28])==null?void 0x0:_0x2f20e1[_0x353fe7],_0x189405=_0x43fd7c==null?void 0x0:_0x43fd7c['s'],_0x5a6571=_0x5cbd68||_0x189405===_0x1dbe62['GrandTotal']||_0x189405===_0x1dbe62[_0x4604fc(0x1f4)];return{'isHeader':_0x559a8e,'isTotal':_0x5a6571||_0x189405===_0x1dbe62['Subtotal'],'key':_0x55e177,'style':_0x189405,'value':_0x5a6571&&Ii(_0x43fd7c==null?void 0x0:_0x43fd7c['v'])?_0x1286e3:Fi(_0x43fd7c,_0x21554d)};}function Fi(_0x57f2f3,_0x1d8b95){const _0x2cccb1=_0x5d48da;let _0x5c1738=_0x57f2f3==null?void 0x0:_0x57f2f3['v'];return _0x2b18e7(_0x5c1738)?String(_0x5c1738['value']??_0x5c1738[_0x2cccb1(0x300)]??''):_0x3e551d(_0x5c1738)?'#'+_0x5c1738['errorType']:_0x1d8b95&&typeof _0x5c1738==_0x2cccb1(0x31b)?_0x52ec2b[_0x2cccb1(0x231)](_0x1d8b95,_0x5c1738):String(_0x5c1738??'');}function Ii(_0x317726){return _0x317726===void 0x0||_0x317726==='';}function Li(_0x3b1f8d){const _0x2fee8c=_0x5d48da;return!!(_0x3b1f8d!=null&&_0x3b1f8d['isBottomTotal']||_0x3b1f8d!=null&&_0x3b1f8d[_0x2fee8c(0x16a)]||_0x3b1f8d!=null&&_0x3b1f8d[_0x2fee8c(0x279)]||(_0x3b1f8d==null?void 0x0:_0x3b1f8d[_0x2fee8c(0x391)])===_0x2fee8c(0x2c4));}const Ri=[{'area':_0x87fd74[_0x5d48da(0x163)],'key':_0x5d48da(0x39e),'label':_0x5d48da(0xb5)},{'area':_0x87fd74['Column'],'key':_0x5d48da(0x21c),'label':_0x5d48da(0x1a4)},{'area':_0x87fd74[_0x5d48da(0x21e)],'key':_0x5d48da(0xd3),'label':_0x5d48da(0xce)},{'area':_0x87fd74[_0x5d48da(0x24b)],'key':_0x5d48da(0x2c5),'label':'bases-dashboard-ui.pivot.values'}],zi=[{'value':_0x3bfa9b[_0x5d48da(0x381)],'localeKey':_0x5d48da(0x1e0)},{'value':_0x3bfa9b[_0x5d48da(0x1b2)],'localeKey':_0x5d48da(0x3a5)},{'value':_0x3bfa9b[_0x5d48da(0x2f0)],'localeKey':'bases-dashboard-ui.pivot.countNumbers'},{'value':_0x3bfa9b[_0x5d48da(0x2ac)],'localeKey':_0x5d48da(0x117)},{'value':_0x3bfa9b['max'],'localeKey':_0x5d48da(0x2b0)},{'value':_0x3bfa9b[_0x5d48da(0x2cf)],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x3bfa9b[_0x5d48da(0x37e)],'localeKey':_0x5d48da(0x10d)},{'value':_0x3bfa9b['stdDev'],'localeKey':_0x5d48da(0xcd)},{'value':_0x3bfa9b[_0x5d48da(0x152)],'localeKey':_0x5d48da(0x32e)},{'value':_0x3bfa9b['var'],'localeKey':_0x5d48da(0x30e)},{'value':_0x3bfa9b[_0x5d48da(0x1b5)],'localeKey':_0x5d48da(0x104)}];function Bi(_0x476cb4){const _0x5c1add=_0x5d48da;let {config:_0x18305b,onChange:_0x42b47f,table:_0x1fd691}=_0x476cb4,_0x558896=_0x40463f(_0x1ecd96),[_0x44379d,_0x4c258e]=_0x4ebd7a(_0x5c1add(0x9b)),[_0x1ccee0,_0x298248]=_0x4ebd7a(''),[_0x1f362e,_0x134d56]=_0x4ebd7a(null),[_0x3a4df7,_0x560213]=_0x4ebd7a(null),[_0x33fd1e,_0xe63d9f]=_0x4ebd7a(null),[_0x4c2860,_0x5305c7]=_0x4ebd7a(null),_0x3e4e15=_0x25fc59(null),_0x4ee7f2=_0x5c672b(()=>_0x1fd691[_0x5c1add(0xb6)][_0x5c1add(0x1ac)](_0x1952e4=>{const _0x594a0a=_0x5c1add;let _0x48507a=_0x1fd691[_0x594a0a(0x9b)][_0x1952e4];return _0x48507a&&_0x48507a[_0x594a0a(0x3b4)]!==!0x0&&_0x48507a['type']!==_0x3bfbe2['RecordId']?[_0x48507a]:[];})['filter'](_0x11acd3=>_0x11acd3[_0x5c1add(0x3d7)][_0x5c1add(0x125)]()['includes'](_0x1ccee0[_0x5c1add(0x1b4)]()[_0x5c1add(0x125)]())),[_0x1ccee0,_0x1fd691]),_0x4622d5=_0x325b82=>{const _0x4566bb=_0x5c1add;let _0x358faf=_0x2a70ba(_0x1fd691,_0x18305b[_0x4566bb(0x106)]);try{_0x325b82(_0x358faf),_0x42b47f({'pivot':_0x358faf[_0x4566bb(0x265)]()});}finally{_0x358faf[_0x4566bb(0x1b9)]();}},_0x40f947=(_0x2c1830,_0x324d9b)=>{_0x1f362e&&(_0x4622d5(_0x1185d2=>{const _0x1c7387=_0x187c;if(_0x1f362e[_0x1c7387(0x27f)]==='field'){let _0x174706=_0x1185d2['getFieldPositionInfoById'](_0x1f362e['id']),_0xc17f06=_0x174706[_0x1c7387(0x1c3)]===_0x2c1830&&_0x174706[_0x1c7387(0x2ff)]<_0x324d9b?_0x324d9b-0x1:_0x324d9b;_0x1185d2[_0x1c7387(0x150)](_0x1f362e['id'],_0x2c1830,_0xc17f06);}else Ji(_0x1185d2,_0x1f362e['id'],_0x2c1830,_0x324d9b);}),_0x134d56(null),_0x560213(null));};return _0x2fa798(_0x5c1add(0x334),{'className':_0x5c1add(0x23e),'children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x558896['t'](_0x5c1add(0x1d7)),'className':_0x5c1add(0x3c9),'items':[{'label':_0x558896['t'](_0x5c1add(0x31d)),'panelId':_0x5c1add(0x1e9),'value':_0x5c1add(0x9b)},{'label':_0x558896['t'](_0x5c1add(0xb4)),'panelId':_0x5c1add(0x1d6),'value':_0x5c1add(0x2a1)}],'value':_0x44379d,'onChange':_0x4c258e}),_0x5628d9(_0x5c1add(0x334),{'ref':_0x3e4e15,'className':_0x37e66c('univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3',_0xb0e9d1),'onDragOver':_0x31cd82=>{const _0x5386f8=_0x5c1add;let _0xa6b15f=_0x3e4e15[_0x5386f8(0xe8)];if(!_0xa6b15f)return;let _0x264595=_0xa6b15f[_0x5386f8(0x319)]();_0x31cd82[_0x5386f8(0x134)]<_0x264595[_0x5386f8(0x171)]+0x30?_0xa6b15f[_0x5386f8(0x28a)]-=0x10:_0x31cd82['clientY']>_0x264595[_0x5386f8(0xdc)]-0x30&&(_0xa6b15f[_0x5386f8(0x28a)]+=0x10);},'children':_0x44379d===_0x5c1add(0x2a1)?_0x5628d9(qi,{'config':_0x18305b,'commit':_0x4622d5}):_0x2fa798(_0x5c1add(0x334),{'className':_0x5c1add(0x16c),'children':[_0x2fa798('div',{'children':[_0x5628d9(_0x5c1add(0x334),{'className':_0x5c1add(0x36e),'children':_0x558896['t']('bases-dashboard-ui.pivot.sourceFields')}),_0x5628d9(_0x5d579d,{'allowClear':!0x0,'slot':_0x5628d9(_0xa664ad,{}),'value':_0x1ccee0,'placeholder':_0x558896['t'](_0x5c1add(0x272)),'onChange':_0x298248}),_0x5628d9('div',{'className':_0x5c1add(0x1d0),'children':_0x4ee7f2[_0x5c1add(0x2ea)](_0x583cc2=>_0x5628d9(Vi,{'config':_0x18305b,'field':_0x583cc2,'onAdd':_0x12ad09=>_0x4622d5(_0x1eb3b3=>Ji(_0x1eb3b3,_0x583cc2['id'],_0x12ad09,_0x1eb3b3['getFieldCountByArea'](_0x12ad09))),'onCheckedChange':_0x3016b0=>_0x4622d5(_0x1becc9=>{const _0xc306dc=_0x5c1add;let _0x313ebb=_0x1becc9['getTableFieldsByDataFieldId'](_0x583cc2['id']);if(!_0x3016b0)_0x313ebb[_0xc306dc(0x3ce)](_0x3fea5e=>_0x1becc9['removeField'](_0x3fea5e[_0xc306dc(0x2ce)]()));else{if(_0x313ebb[_0xc306dc(0x193)]===0x0){let _0x3fc905=Xi(_0x583cc2)?_0x87fd74['Value']:_0x87fd74[_0xc306dc(0x21e)];_0x1becc9[_0xc306dc(0xd0)](_0x583cc2['id'],_0x3fc905);}}}),'onDragStart':()=>_0x134d56({'kind':_0x5c1add(0x136),'id':_0x583cc2['id']})},_0x583cc2['id']))})]}),_0x5628d9(_0x5c1add(0x334),{'className':'univer-grid\x20univer-gap-3','children':Ri['map'](_0x58ff9e=>_0x5628d9(Ui,{'area':_0x58ff9e[_0x5c1add(0x1c3)],'dropTarget':_0x3a4df7,'fields':_0x18305b['pivot'][_0x58ff9e[_0x5c1add(0x2d0)]],'label':_0x558896['t'](_0x58ff9e['label']),'snapshot':_0x18305b[_0x5c1add(0x106)],'onDragEnd':()=>{_0x134d56(null),_0x560213(null);},'onDragStart':_0x106852=>_0x134d56({'kind':'field','id':_0x106852,'area':_0x58ff9e[_0x5c1add(0x1c3)]}),'onDragOver':_0x1b2a73=>_0x560213({'area':_0x58ff9e[_0x5c1add(0x1c3)],'index':_0x1b2a73}),'onDrop':_0x5ab16=>_0x40f947(_0x58ff9e[_0x5c1add(0x1c3)],_0x5ab16),'onFilter':_0xe63d9f,'onMove':(_0x4cb7b5,_0x3e4166,_0x33c89f)=>_0x4622d5(_0x36a3b1=>_0x36a3b1[_0x5c1add(0x150)](_0x4cb7b5,_0x3e4166,_0x33c89f)),'onRemove':_0x1fd1d3=>_0x4622d5(_0x3e0e08=>_0x3e0e08['removeField'](_0x1fd1d3)),'onSettings':_0x5305c7},_0x58ff9e[_0x5c1add(0x1c3)]))}),_0x33fd1e&&_0x5628d9(Gi,{'fieldId':_0x33fd1e,'snapshot':_0x18305b[_0x5c1add(0x106)],'table':_0x1fd691,'onCancel':()=>_0xe63d9f(null),'onCommit':(_0x4cff8c,_0x20e130)=>{_0x4622d5(_0x1bdacb=>{const _0x1fc063=_0x187c;let _0x24aaa8=_0x1bdacb[_0x1fc063(0x110)](_0x33fd1e),_0x5a4d72=(_0x24aaa8==null?void 0x0:_0x24aaa8[_0x1fc063(0x252)])??[];_0x1bdacb['setLabelFilterInfo'](_0x33fd1e,{'type':_0x829bf6[_0x1fc063(0x254)],'list':_0x4cff8c,'isAll':_0x4cff8c[_0x1fc063(0x193)]===_0x5a4d72[_0x1fc063(0x193)]}),_0x1bdacb[_0x1fc063(0x1a8)](_0x33fd1e,_0x20e130===void 0x0?void 0x0:{'type':_0x20e130});}),_0xe63d9f(null);}},_0x33fd1e),_0x4c2860&&_0x5628d9(Ki,{'field':_0x18305b['pivot']['measure'][_0x4c2860],'onCancel':()=>_0x5305c7(null),'onCommit':(_0x2f02a5,_0x5b87eb,_0x60858)=>{_0x4622d5(_0x29f14a=>{const _0x58f02f=_0x187c;_0x29f14a[_0x58f02f(0x1a2)](_0x4c2860,_0x2f02a5),_0x29f14a[_0x58f02f(0x257)](_0x4c2860,_0x5b87eb),_0x29f14a[_0x58f02f(0x24a)](_0x4c2860,_0x60858||void 0x0);}),_0x5305c7(null);}},_0x4c2860)]})})]});}function Vi(_0x3d2847){const _0x247a2c=_0x5d48da;let {config:_0x107005,field:_0x4d409d,onAdd:_0x383b12,onCheckedChange:_0x463fd6,onDragStart:_0x1ca69a}=_0x3d2847,_0x220b94=_0x40463f(_0x1ecd96),_0x24a1c0=[...Object[_0x247a2c(0x370)](_0x107005[_0x247a2c(0x106)][_0x247a2c(0x1b7)]),...Object[_0x247a2c(0x370)](_0x107005['pivot'][_0x247a2c(0x347)])][_0x247a2c(0x353)](_0x161247=>_0x161247[_0x247a2c(0x275)]===_0x4d409d['id']),_0x1c729b=Ri[_0x247a2c(0x2ea)](_0x5aa2a0=>({'type':_0x247a2c(0x321),'children':_0x220b94['t'](Zi(_0x5aa2a0[_0x247a2c(0x1c3)])),'onSelect':()=>_0x383b12(_0x5aa2a0['area'])}));return _0x2fa798(_0x247a2c(0x334),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x247a2c(0x2bc),'onDragStart':_0x1ca69a,'children':[_0x5628d9(_0x57ed34,{'checked':_0x24a1c0,'onChange':_0x15e2d4=>_0x463fd6(!!_0x15e2d4)}),_0x5628d9(Hi,{'field':_0x4d409d}),_0x5628d9(_0x247a2c(0x339),{'className':_0x247a2c(0x3d3),'children':_0x4d409d[_0x247a2c(0x3d7)]}),_0x5628d9(Xr,{'align':_0x247a2c(0x1ed),'items':_0x1c729b,'children':_0x5628d9(_0x101ca4,{'variant':_0x247a2c(0x2e2),'aria-label':_0x220b94['t'](_0x247a2c(0x2e7)),'children':_0x5628d9(_0x3693ad,{})})})]});}function Hi({field:_0x36fe9a}){const _0x416411=_0x5d48da;return Xi(_0x36fe9a)?_0x5628d9(_0xfa6b5,{'className':'univer-text-gray-400'}):_0x36fe9a[_0x416411(0x278)]===_0x3bfbe2['Date']||_0x36fe9a['type']===_0x3bfbe2[_0x416411(0x302)]||_0x36fe9a[_0x416411(0x278)]===_0x3bfbe2[_0x416411(0x307)]?_0x5628d9(_0x143320,{'className':_0x416411(0x3d1)}):_0x5628d9(_0x45f36b,{'className':_0x416411(0x3d1)});}function Ui(_0x48547e){const _0xaf2b24=_0x5d48da;let {area:_0x238323,dropTarget:_0x34ba9e,fields:_0x460cbf,label:_0x379052,snapshot:_0x2520e2}=_0x48547e,_0x617c76=_0x40463f(_0x1ecd96);return _0x2fa798('section',{'className':_0x37e66c(_0xaf2b24(0x251),_0x3b0e1f),'onDragOver':_0x429b9f=>{const _0x553f3f=_0xaf2b24;_0x429b9f[_0x553f3f(0x394)](),_0x48547e['onDragOver'](_0x460cbf[_0x553f3f(0x193)]);},'onDrop':_0x39cf4c=>{const _0x2fbceb=_0xaf2b24;_0x39cf4c['preventDefault'](),_0x48547e[_0x2fbceb(0x1a7)]((_0x34ba9e==null?void 0x0:_0x34ba9e['area'])===_0x238323?_0x34ba9e[_0x2fbceb(0x2ff)]:_0x460cbf[_0x2fbceb(0x193)]);},'children':[_0x5628d9(_0xaf2b24(0x334),{'className':_0xaf2b24(0x3dc),'children':_0x379052}),_0x2fa798(_0xaf2b24(0x334),{'className':_0xaf2b24(0x342),'children':[_0x460cbf[_0xaf2b24(0x2ea)]((_0x2e8081,_0x3f2240)=>{const _0x26ea4b=_0xaf2b24;let _0x3f97e2=_0x2520e2[_0x26ea4b(0x1b7)][_0x2e8081]??_0x2520e2[_0x26ea4b(0x347)][_0x2e8081];if(!_0x3f97e2)return null;let _0x21aae2=(_0x34ba9e==null?void 0x0:_0x34ba9e['area'])===_0x238323&&_0x34ba9e[_0x26ea4b(0x2ff)]===_0x3f2240;return _0x2fa798(_0x26ea4b(0x334),{'onDragOver':_0xfff3e0=>{const _0x1753d7=_0x26ea4b;_0xfff3e0[_0x1753d7(0x394)](),_0xfff3e0[_0x1753d7(0xf7)]();let _0x58d5d4=_0xfff3e0[_0x1753d7(0x3c6)]['getBoundingClientRect']();_0x48547e[_0x1753d7(0x2cb)](_0x3f2240+ +(_0xfff3e0['clientY']>_0x58d5d4[_0x1753d7(0x171)]+_0x58d5d4['height']/0x2));},'onDrop':_0xadcd49=>{const _0x1d1e43=_0x26ea4b;_0xadcd49['preventDefault'](),_0xadcd49[_0x1d1e43(0xf7)](),_0x48547e[_0x1d1e43(0x1a7)]((_0x34ba9e==null?void 0x0:_0x34ba9e['area'])===_0x238323?_0x34ba9e[_0x1d1e43(0x2ff)]:_0x3f2240);},'children':[_0x21aae2&&_0x5628d9(_0x26ea4b(0x334),{'className':_0x26ea4b(0x3e4)}),_0x5628d9(Wi,{'area':_0x238323,'field':_0x3f97e2,'onDragEnd':_0x48547e[_0x26ea4b(0x37f)],'onDragStart':()=>_0x48547e[_0x26ea4b(0x293)](_0x2e8081),'onFilter':()=>_0x48547e[_0x26ea4b(0x12a)](_0x2e8081),'onMove':_0x4972e7=>_0x48547e[_0x26ea4b(0x397)](_0x2e8081,_0x4972e7,0x0),'onMoveUp':_0x3f2240>0x0?()=>_0x48547e[_0x26ea4b(0x397)](_0x2e8081,_0x238323,_0x3f2240-0x1):void 0x0,'onMoveDown':_0x3f2240<_0x460cbf[_0x26ea4b(0x193)]-0x1?()=>_0x48547e[_0x26ea4b(0x397)](_0x2e8081,_0x238323,_0x3f2240+0x1):void 0x0,'onRemove':()=>_0x48547e['onRemove'](_0x2e8081),'onSettings':()=>_0x48547e[_0x26ea4b(0x387)](_0x2e8081)})]},_0x2e8081);}),(_0x34ba9e==null?void 0x0:_0x34ba9e[_0xaf2b24(0x1c3)])===_0x238323&&_0x34ba9e[_0xaf2b24(0x2ff)]===_0x460cbf['length']&&_0x5628d9(_0xaf2b24(0x334),{'className':_0xaf2b24(0x3e4)}),_0x460cbf['length']===0x0&&_0x5628d9(_0xaf2b24(0x334),{'className':'univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','children':_0x617c76['t']('bases-dashboard-ui.pivot.sourceFields')})]})]});}function Wi(_0x4ac1ce){const _0x6e25f0=_0x5d48da;let _0x5a28b1=_0x40463f(_0x1ecd96),_0x270a44=_0x4ac1ce[_0x6e25f0(0x1c3)]===_0x87fd74[_0x6e25f0(0x24b)],_0xfe45b4=[...Ri['filter'](_0xe2f56a=>_0xe2f56a[_0x6e25f0(0x1c3)]!==_0x4ac1ce[_0x6e25f0(0x1c3)])[_0x6e25f0(0x2ea)](_0x16f89d=>({'type':_0x6e25f0(0x321),'children':_0x5a28b1['t'](Zi(_0x16f89d[_0x6e25f0(0x1c3)])),'onSelect':()=>_0x4ac1ce[_0x6e25f0(0x397)](_0x16f89d['area'])})),..._0x4ac1ce[_0x6e25f0(0x2f2)]?[{'type':'item','children':_0x5a28b1['t'](_0x6e25f0(0x323)),'onSelect':_0x4ac1ce['onMoveUp']}]:[],..._0x4ac1ce[_0x6e25f0(0x20e)]?[{'type':_0x6e25f0(0x321),'children':_0x5a28b1['t']('bases-dashboard-ui.mobile.moveDown'),'onSelect':_0x4ac1ce[_0x6e25f0(0x20e)]}]:[],{'type':_0x6e25f0(0x321),'children':_0x5a28b1['t'](_0x6e25f0(0x3c2)),'onSelect':_0x4ac1ce[_0x6e25f0(0x245)]},{'type':_0x6e25f0(0x321),'children':_0x5a28b1['t'](_0x270a44?_0x6e25f0(0x2e7):_0x6e25f0(0x28f)),'onSelect':_0x270a44?_0x4ac1ce[_0x6e25f0(0x387)]:_0x4ac1ce[_0x6e25f0(0x12a)]}];return _0x2fa798(_0x6e25f0(0x334),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x6e25f0(0x3a2),'onDragEnd':_0x4ac1ce['onDragEnd'],'onDragStart':_0x4ac1ce['onDragStart'],'children':[_0x5628d9(_0x2f0618,{'title':_0x4ac1ce[_0x6e25f0(0x22a)][_0x6e25f0(0x3bd)],'children':_0x5628d9(_0x6e25f0(0x339),{'className':_0x6e25f0(0x3d3),'children':_0x4ac1ce[_0x6e25f0(0x22a)][_0x6e25f0(0x3bd)]})}),_0x5628d9(Xr,{'align':_0x6e25f0(0x1ed),'items':_0xfe45b4,'children':_0x5628d9(_0x101ca4,{'variant':_0x6e25f0(0x2e2),'aria-label':_0x5a28b1['t']('bases-dashboard-ui.pivot.fieldSettings'),'children':_0x5628d9(_0x3693ad,{})})})]});}function Gi(_0x4eb1fa){const _0x4b1386=_0x5d48da;var _0x254f07,_0x6bffef;let _0x4e4b99=_0x40463f(_0x1ecd96),{format:_0x2ae7dc,items:_0x23024b,itemTypes:_0x5d544d}=_0x5c672b(()=>{const _0xad4fa0=_0x187c;let _0x175c6c=_0x2a70ba(_0x4eb1fa[_0xad4fa0(0x2d3)],_0x4eb1fa[_0xad4fa0(0x2f9)]);try{let _0x51e91c=_0x175c6c[_0xad4fa0(0x110)](_0x4eb1fa['fieldId']);return{'format':_0x51e91c==null?void 0x0:_0x51e91c['format'],'items':[...(_0x51e91c==null?void 0x0:_0x51e91c[_0xad4fa0(0x252)])??[]],'itemTypes':[...(_0x51e91c==null?void 0x0:_0x51e91c['itemTypes'])??[]]};}finally{_0x175c6c[_0xad4fa0(0x1b9)]();}},[_0x4eb1fa[_0x4b1386(0x221)],_0x4eb1fa['snapshot'],_0x4eb1fa['table']]),_0x3583d2=(_0x254f07=_0x4eb1fa[_0x4b1386(0x2f9)][_0x4b1386(0x1b7)][_0x4eb1fa[_0x4b1386(0x221)]])==null?void 0x0:_0x254f07['filterInfo'],[_0x292df1,_0x11de30]=_0x4ebd7a((_0x3583d2==null?void 0x0:_0x3583d2[_0x4b1386(0x278)])===_0x829bf6['ManualFilter']?_0x3583d2[_0x4b1386(0x2c1)]:_0x23024b),[_0x4a1acd,_0x4ebee4]=_0x4ebd7a((_0x6bffef=_0x4eb1fa[_0x4b1386(0x2f9)][_0x4b1386(0x1b7)][_0x4eb1fa['fieldId']])==null||(_0x6bffef=_0x6bffef['sortInfo'])==null?void 0x0:_0x6bffef[_0x4b1386(0x278)]),_0x585e08=_0x292df1[_0x4b1386(0x193)]===_0x23024b[_0x4b1386(0x193)],_0x4643bc=_0x2fa798(_0x4b1386(0x111),{'className':_0x37e66c(_0x4b1386(0x33e),_0x3b0e1f),'children':[_0x5628d9(_0x4b1386(0x334),{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0x4e4b99['t'](_0x4b1386(0x28f))}),_0x2fa798(_0x4b1386(0x334),{'className':'univer-flex','children':[_0x2fa798(_0x101ca4,{'className':_0x4b1386(0x3c7),'variant':_0x4a1acd===_0x1b5f3a[_0x4b1386(0x198)]?_0x4b1386(0x22d):'default','onClick':()=>_0x4ebee4(_0x1b5f3a[_0x4b1386(0x198)]),'children':[_0x5628d9(_0x558ec6,{}),_0x4e4b99['t'](_0x4b1386(0x28c))]}),_0x2fa798(_0x101ca4,{'className':_0x4b1386(0x3c7),'variant':_0x4a1acd===_0x1b5f3a[_0x4b1386(0x19c)]?_0x4b1386(0x22d):_0x4b1386(0x18c),'onClick':()=>_0x4ebee4(_0x1b5f3a[_0x4b1386(0x19c)]),'children':[_0x5628d9(_0x3c94ed,{}),_0x4e4b99['t'](_0x4b1386(0x2a8))]})]}),_0x2fa798(_0x4b1386(0x334),{'className':_0x4b1386(0x311),'children':[_0x2fa798('label',{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x5628d9(_0x57ed34,{'checked':_0x585e08,'indeterminate':_0x292df1[_0x4b1386(0x193)]>0x0&&!_0x585e08,'onChange':()=>_0x11de30(_0x585e08?[]:_0x23024b)}),_0x4e4b99['t'](_0x4b1386(0x233))]}),_0x23024b['map']((_0xff2918,_0x40b8d7)=>_0x2fa798(_0x4b1386(0x249),{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x5628d9(_0x57ed34,{'checked':_0x292df1[_0x4b1386(0x292)](_0xff2918),'onChange':()=>_0x11de30(_0xa10cff=>_0xa10cff[_0x4b1386(0x292)](_0xff2918)?_0xa10cff[_0x4b1386(0x122)](_0x1b8298=>_0x1b8298!==_0xff2918):[..._0xa10cff,_0xff2918])}),_0x5628d9(_0x4b1386(0x339),{'className':_0x4b1386(0xae),'children':Yi(_0xff2918,_0x5d544d[_0x40b8d7],_0x2ae7dc,_0x4e4b99['t']('bases-dashboard-ui.pivot.blank'))})]},_0xff2918))]}),_0x2fa798(_0x4b1386(0x334),{'className':_0x4b1386(0x1fc),'children':[_0x5628d9(_0x101ca4,{'variant':_0x4b1386(0x2ca),'onClick':()=>_0x4eb1fa[_0x4b1386(0x211)](_0x23024b,_0x4a1acd),'children':_0x4e4b99['t'](_0x4b1386(0x240))}),_0x2fa798('div',{'className':_0x4b1386(0x316),'children':[_0x5628d9(_0x101ca4,{'onClick':_0x4eb1fa[_0x4b1386(0x2db)],'children':_0x4e4b99['t'](_0x4b1386(0x2e6))}),_0x5628d9(_0x101ca4,{'variant':_0x4b1386(0x22d),'disabled':_0x292df1[_0x4b1386(0x193)]===0x0,'onClick':()=>_0x4eb1fa[_0x4b1386(0x211)](_0x292df1,_0x4a1acd),'children':_0x4e4b99['t'](_0x4b1386(0xdd))})]})]})]});return _0x5628d9(_0x19aa31,{'title':_0x4e4b99['t'](_0x4b1386(0x28f)),'onClose':_0x4eb1fa[_0x4b1386(0x2db)],'children':_0x4643bc});}function Ki(_0x48f8f7){const _0x193279=_0x5d48da;var _0x412db9,_0x4563dd,_0x3b0b11;let _0x39b5a3=_0x40463f(_0x1ecd96),[_0x24a857,_0x1185c4]=_0x4ebd7a(((_0x412db9=_0x48f8f7['field'])==null?void 0x0:_0x412db9[_0x193279(0x3bd)])??''),[_0x56c168,_0x49bc09]=_0x4ebd7a(((_0x4563dd=_0x48f8f7[_0x193279(0x22a)])==null?void 0x0:_0x4563dd['subtotal'])??_0x3bfa9b[_0x193279(0x381)]),[_0x26f337,_0x5dcd0a]=_0x4ebd7a(((_0x3b0b11=_0x48f8f7['field'])==null?void 0x0:_0x3b0b11[_0x193279(0x231)])??'');if(!_0x48f8f7[_0x193279(0x22a)])return null;let _0x523e24=_0x2fa798(_0x193279(0x111),{'className':_0x37e66c(_0x193279(0x23a),_0x3b0e1f),'children':[_0x5628d9(_0x193279(0x334),{'className':_0x193279(0x2d1),'children':_0x39b5a3['t']('bases-dashboard-ui.pivot.fieldSettings')}),_0x2fa798('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x39b5a3['t']('bases-dashboard-ui.pivot.displayName'),_0x5628d9(_0x5d579d,{'value':_0x24a857,'onChange':_0x1185c4})]}),_0x2fa798(_0x193279(0x249),{'className':_0x193279(0x10f),'children':[_0x39b5a3['t'](_0x193279(0x3ac)),_0x5628d9(Yr,{'value':String(_0x56c168),'options':zi['map'](_0x335844=>({'value':String(_0x335844[_0x193279(0x32d)]),'label':_0x39b5a3['t'](_0x335844[_0x193279(0x1f0)])})),'onChange':_0x3f8f8d=>{const _0x400e20=_0x193279;let _0x293d68=zi[_0x400e20(0x153)](_0x365454=>String(_0x365454[_0x400e20(0x32d)])===_0x3f8f8d);_0x293d68&&_0x49bc09(_0x293d68['value']);}})]}),_0x2fa798(_0x193279(0x249),{'className':_0x193279(0x10f),'children':[_0x39b5a3['t']('bases-dashboard-ui.pivot.numberFormat'),_0x5628d9(_0x5d579d,{'value':_0x26f337,'onChange':_0x5dcd0a})]}),_0x2fa798(_0x193279(0x334),{'className':_0x193279(0x15f),'children':[_0x5628d9(_0x101ca4,{'onClick':_0x48f8f7[_0x193279(0x2db)],'children':_0x39b5a3['t']('bases-dashboard-ui.pivot.cancel')}),_0x5628d9(_0x101ca4,{'variant':_0x193279(0x22d),'disabled':!_0x24a857['trim'](),'onClick':()=>_0x48f8f7[_0x193279(0x211)](_0x24a857[_0x193279(0x1b4)](),_0x56c168,_0x26f337),'children':_0x39b5a3['t'](_0x193279(0xdd))})]})]});return _0x5628d9(_0x19aa31,{'title':_0x39b5a3['t'](_0x193279(0x2e7)),'onClose':_0x48f8f7[_0x193279(0x2db)],'children':_0x523e24});}function qi(_0x40c212){const _0x29fc73=_0x5d48da;let {config:_0xf4db8a,commit:_0x52e448}=_0x40c212,_0x18f108=_0x40463f(_0x1ecd96),_0x5be5a7=_0xf4db8a[_0x29fc73(0x106)][_0x29fc73(0x2a1)],_0x1553c4=_0x129d92=>_0x52e448(_0x54156f=>_0x54156f['setOptions']({..._0x54156f[_0x29fc73(0x1f8)](),..._0x129d92}));return _0x2fa798(_0x29fc73(0x334),{'className':_0x29fc73(0x16c),'children':[_0x2fa798('label',{'className':_0x29fc73(0x238),'children':[_0x18f108['t'](_0x29fc73(0x2e4)),_0x5628d9(Yr,{'className':_0x29fc73(0x167),'value':String(_0xf4db8a[_0x29fc73(0x106)][_0x29fc73(0x3e1)]),'options':[{'value':String(_0xd936c5[_0x29fc73(0x116)]),'label':_0x18f108['t'](_0x29fc73(0x114))},{'value':String(_0xd936c5[_0x29fc73(0xbd)]),'label':_0x18f108['t'](_0x29fc73(0x1e1))},{'value':String(_0xd936c5[_0x29fc73(0x270)]),'label':_0x18f108['t'](_0x29fc73(0x2f7))}],'onChange':_0x3d106b=>{const _0x529e44=_0x29fc73;let _0x1126fc=[_0xd936c5[_0x529e44(0x116)],_0xd936c5[_0x529e44(0xbd)],_0xd936c5[_0x529e44(0x270)]][_0x529e44(0x153)](_0x2e310f=>String(_0x2e310f)===_0x3d106b);_0x1126fc!==void 0x0&&_0x52e448(_0x4b3206=>_0x4b3206[_0x529e44(0x1de)](_0x1126fc));}})]}),[{'key':_0x29fc73(0x162),'label':_0x29fc73(0x1a5),'defaultValue':!0x1},{'key':_0x29fc73(0x2cd),'label':'bases-dashboard-ui.pivot.repeatColumnLabels','defaultValue':!0x1},{'key':_0x29fc73(0x2f3),'label':_0x29fc73(0x1a3),'defaultValue':!0x0},{'key':_0x29fc73(0x189),'label':_0x29fc73(0xa1),'defaultValue':!0x0},{'key':_0x29fc73(0x2ef),'label':_0x29fc73(0x37c),'defaultValue':!0x0},{'key':_0x29fc73(0x241),'label':_0x29fc73(0x3af),'defaultValue':!0x0}][_0x29fc73(0x2ea)](_0x5c081d=>_0x2fa798(_0x29fc73(0x249),{'className':_0x29fc73(0x3c8),'children':[_0x5628d9(_0x57ed34,{'checked':!!(_0x5be5a7[_0x5c081d[_0x29fc73(0x2d0)]]??_0x5c081d[_0x29fc73(0x2b8)]),'disabled':_0x5c081d[_0x29fc73(0x2d0)]===_0x29fc73(0x162)&&_0xf4db8a[_0x29fc73(0x106)][_0x29fc73(0x3e1)]===_0xd936c5[_0x29fc73(0xbd)],'onChange':_0x529c68=>_0x1553c4({[_0x5c081d['key']]:!!_0x529c68})}),_0x18f108['t'](_0x5c081d[_0x29fc73(0x249)])]},_0x5c081d[_0x29fc73(0x2d0)])),_0xf4db8a[_0x29fc73(0x106)][_0x29fc73(0x3e1)]===_0xd936c5[_0x29fc73(0x270)]&&_0x2fa798(_0x29fc73(0x249),{'className':_0x29fc73(0x238),'children':[_0x18f108['t']('bases-dashboard-ui.pivot.rowSubtotalPosition'),_0x5628d9(Yr,{'className':_0x29fc73(0x167),'value':String(_0x5be5a7[_0x29fc73(0x318)]??_0x551070[_0x29fc73(0x171)]),'options':[{'value':String(_0x551070['top']),'label':_0x18f108['t'](_0x29fc73(0x132))},{'value':String(_0x551070[_0x29fc73(0xdc)]),'label':_0x18f108['t'](_0x29fc73(0x26b))}],'onChange':_0x3cbe42=>{const _0x516ed8=_0x29fc73;let _0x14eb6f=[_0x551070[_0x516ed8(0x171)],_0x551070[_0x516ed8(0xdc)]][_0x516ed8(0x153)](_0x28399e=>String(_0x28399e)===_0x3cbe42);_0x14eb6f!==void 0x0&&_0x1553c4({'rowSubtotalPosition':_0x14eb6f});}})]}),_0x2fa798('label',{'className':_0x29fc73(0x238),'children':[_0x18f108['t'](_0x29fc73(0x33d)),_0x5628d9(Yr,{'className':'univer-w-36','value':String(_0xf4db8a[_0x29fc73(0x106)][_0x29fc73(0x3ca)]===_0x3fa86b[_0x29fc73(0x2a6)]?_0x3fa86b[_0x29fc73(0x200)]:_0xf4db8a[_0x29fc73(0x106)][_0x29fc73(0x3ca)]),'options':[{'value':String(_0x3fa86b[_0x29fc73(0x200)]),'label':_0x18f108['t'](_0x29fc73(0x1a4))},{'value':String(_0x3fa86b[_0x29fc73(0x21e)]),'label':_0x18f108['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x56b158=>{const _0x19eea7=_0x29fc73;let _0x5c7096=[_0x3fa86b[_0x19eea7(0x200)],_0x3fa86b[_0x19eea7(0x21e)]][_0x19eea7(0x153)](_0x41016f=>String(_0x41016f)===_0x56b158);_0x5c7096!==void 0x0&&_0x52e448(_0x17eee7=>_0x17eee7[_0x19eea7(0x2b1)](_0x5c7096,_0x17eee7[_0x19eea7(0x2a0)]()<0x0?0x0:_0x17eee7['getValueIndex']()));}})]}),_0x2fa798(_0x29fc73(0x249),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x18f108['t'](_0x29fc73(0x331)),_0x5628d9(_0x57c888,{'className':_0x29fc73(0x280),'min':0x1,'max':0x14,'value':_0x5be5a7[_0x29fc73(0x3ae)]??0x1,'onChange':_0x51fe2d=>{const _0x7b3761=_0x29fc73;let _0x4f6b85=Number(_0x51fe2d);Number[_0x7b3761(0x206)](_0x4f6b85)&&_0x4f6b85>=0x1&&_0x1553c4({'pageWrap':_0x4f6b85});}})]}),_0x2fa798('label',{'className':_0x29fc73(0x238),'children':[_0x18f108['t']('bases-dashboard-ui.pivot.pageDirection'),_0x5628d9(Yr,{'className':'univer-w-36','value':String(_0x5be5a7[_0x29fc73(0x188)]??!0x1),'options':[{'value':_0x29fc73(0xf6),'label':_0x18f108['t'](_0x29fc73(0x18d))},{'value':_0x29fc73(0x1da),'label':_0x18f108['t'](_0x29fc73(0x3a3))}],'onChange':_0x35a480=>_0x1553c4({'pageOverThenDown':_0x35a480===_0x29fc73(0x1da)})})]})]});}function Ji(_0x5639ed,_0x48ad1c,_0x1893db,_0x12f90d){const _0x4b7e04=_0x5d48da;let _0x2f9733=_0x5639ed['getTableFieldsByDataFieldId'](_0x48ad1c)[_0x4b7e04(0x153)](_0x87129e=>_0x5639ed['getFieldPositionInfoById'](_0x87129e[_0x4b7e04(0x2ce)]())[_0x4b7e04(0x1c3)]!==_0x87fd74['Value']);_0x1893db!==_0x87fd74[_0x4b7e04(0x24b)]&&_0x2f9733?_0x5639ed[_0x4b7e04(0x150)](_0x2f9733[_0x4b7e04(0x2ce)](),_0x1893db,_0x12f90d):_0x5639ed['addFieldWithSourceId'](_0x48ad1c,_0x1893db,_0x12f90d);}function Yi(_0xa36ea6,_0x3397df,_0x167c44,_0x575678){const _0x30affe=_0x5d48da;return _0x3397df===_0xd2fae4['blank']?_0x575678:_0x3397df===_0xd2fae4[_0x30affe(0xc7)]&&_0x167c44?_0x52ec2b[_0x30affe(0x231)](_0x167c44,Number(_0xa36ea6)):_0xa36ea6;}function Xi(_0x54c280){const _0x5c2b15=_0x5d48da;return _0x54c280['type']===_0x3bfbe2['Number']||_0x54c280['type']===_0x3bfbe2[_0x5c2b15(0x2d5)]||_0x54c280[_0x5c2b15(0x278)]===_0x3bfbe2[_0x5c2b15(0x38a)]||_0x54c280[_0x5c2b15(0x278)]===_0x3bfbe2['Rating'];}function Zi(_0x109e0a){const _0x2bb8ee=_0x5d48da;switch(_0x109e0a){case _0x87fd74['Row']:return _0x2bb8ee(0x19a);case _0x87fd74['Column']:return _0x2bb8ee(0x284);case _0x87fd74[_0x2bb8ee(0x24b)]:return _0x2bb8ee(0x21d);default:return _0x2bb8ee(0xb9);}}function Qi({config:_0x576d40,onChange:_0x546351,runtime:_0x1f5cb0,table:_0x3c2e82}){const _0x135239=_0x5d48da;let _0x10d2d8=_0x40463f(_0x1ecd96),[_0x218a12,_0xeeb1ba]=_0x4ebd7a('chart');return _0x2fa798(_0x135239(0x3da),{'className':_0x135239(0x19d),'children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x10d2d8['t']('bases-dashboard-ui.pivot.name'),'className':_0x135239(0x217),'items':[{'label':_0x10d2d8['t'](_0x135239(0x172)),'panelId':_0x135239(0x2ed),'value':'chart'},{'label':_0x10d2d8['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'panelId':_0x135239(0x1c8),'value':_0x135239(0x106)}],'value':_0x218a12,'variant':'segmented','onChange':_0xeeb1ba}),_0x5628d9(_0x135239(0x334),{'className':_0x135239(0x213),'children':_0x218a12==='chart'?_0x1f5cb0&&_0x5628d9(ei,{'config':_0x576d40,'runtime':_0x1f5cb0,'tableName':_0x3c2e82[_0x135239(0x3d7)],'onChange':_0x546351}):_0x5628d9(Bi,{'config':_0x576d40,'table':_0x3c2e82,'onChange':_0x546351})})]});}function $i({tableId:_0x144859,unitId:_0x46c3a9,viewId:_0xc9b528}){const _0x3c8a07=_0x5d48da;let [_0x2ef899,_0x16a35b]=_0x4ebd7a(!0x1),_0x1057e0=_0x40463f(_0x1e6f93),_0x254c2d=_0x40463f(_0x4829da),_0x3954ff=_0x40463f(_0x53f9ce),_0x2543fa=_0x40463f(_0x1ecd96),_0x3473db=_0x40463f(_0x2cf236),[_0x507a85,_0x3885e4]=_0x4ebd7a(null),[_0x4587ba,_0x8d7023]=_0x4ebd7a(null),_0x5ac5cc=_0x25fc59(_0x3c8a07(0x118)+_0x2cedf9(0x8)),[_0x28439f,_0x5e2e3f]=_0x4ebd7a(!0x1),_0x2e3b1e=_0x254c2d['getUnit'](_0x46c3a9,_0x247fc0[_0x3c8a07(0x324)]),_0x245fe3=_0x2e3b1e==null?void 0x0:_0x2e3b1e[_0x3c8a07(0x3e8)]()['tables'][_0x144859],_0x864bb1=_0x245fe3==null?void 0x0:_0x245fe3['views'][_0xc9b528],_0xdc59b8=ea(_0x864bb1),_0x2a40da=yr(_0x46c3a9,_0x144859,_0xc9b528);if(_0x185176(()=>{const _0x2d07fc=_0x3c8a07;if(!_0xdc59b8)return;let _0xa6ac=_0x5ac5cc[_0x2d07fc(0xe8)];return _0x3473db[_0x2d07fc(0x1fe)](_0xa6ac,{'unitId':_0x46c3a9,'tableId':_0x144859,'viewId':_0xc9b528,'filters':[]}),()=>{const _0x112530=_0x2d07fc;_0x3473db[_0x112530(0x3e0)](_0x46c3a9,_0xa6ac);};},[_0xdc59b8,_0x3473db,_0x144859,_0x46c3a9,_0xc9b528]),_0x185176(()=>{const _0x6920a2=_0x3c8a07;if(!ea(_0x864bb1))return;let _0x37962d=!0x0,_0x509872={'unitId':_0x46c3a9,'tableId':_0x144859,'viewId':_0xc9b528,'filters':[_0x864bb1[_0x6920a2(0x122)]??null]};return _0x3473db['refreshChartRuntime'](_0x46c3a9,_0x5ac5cc['current'],_0x509872)[_0x6920a2(0xa4)](_0x2ea849=>{const _0x9e6712=_0x6920a2;_0x37962d&&_0x2ea849&&(_0x3885e4(_0x2ea849),_0x8d7023(_0x3473db[_0x9e6712(0x128)](_0x46c3a9,_0x5ac5cc[_0x9e6712(0xe8)])??null),_0x5e2e3f(!0x1));})[_0x6920a2(0x26d)](_0x28e46b=>{_0x3954ff['error']('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x28e46b),_0x37962d&&(_0x3885e4(null),_0x5e2e3f(!0x0));}),()=>{_0x37962d=!0x1;};},[_0x3954ff,_0x3473db,_0x144859,_0x46c3a9,_0x864bb1,_0xc9b528]),!_0x245fe3||!ea(_0x864bb1))return null;let _0xae5603=_0x3473db[_0x3c8a07(0x128)](_0x46c3a9,_0x5ac5cc[_0x3c8a07(0xe8)])===_0x4587ba?_0x4587ba:null,_0x4f1b5d=_0x507a85?_0x2fa798('div',{'className':_0x3c8a07(0x377),'style':{'gridTemplateRows':_0x864bb1['config'][_0x3c8a07(0x31a)]===_0x3c8a07(0x27c)?_0x3c8a07(0x1db):'minmax(0,\x201fr)'},'children':[_0x864bb1[_0x3c8a07(0xa7)]['displayMode']!==_0x3c8a07(0x2d3)&&_0xae5603&&_0x5628d9(_0x3c8a07(0x334),{'className':_0x3c8a07(0x3d5),'children':_0x5628d9(Rr,{'isRowDirection':_0x1aba1a(_0x864bb1['config'][_0x3c8a07(0x204)][_0x3c8a07(0x1e8)]),'runtime':_0xae5603})}),_0x864bb1[_0x3c8a07(0xa7)][_0x3c8a07(0x31a)]!==_0x3c8a07(0x204)&&_0x5628d9(_0x3c8a07(0x334),{'className':_0x3c8a07(0x24e),'children':_0x5628d9(ji,{'pivot':_0x864bb1[_0x3c8a07(0xa7)][_0x3c8a07(0x106)],'view':_0x507a85[_0x3c8a07(0x29c)]})})]}):_0x5628d9('div',{'className':_0x3c8a07(0x3aa),'children':_0x28439f?_0x2543fa['t'](_0x3c8a07(0x372)):_0x2543fa['t'](_0x3c8a07(0x2a9))}),_0x2ca392=_0x5628d9(Qi,{'config':_0x864bb1[_0x3c8a07(0xa7)],'runtime':_0xae5603,'table':_0x245fe3,'onChange':_0x4305c9=>{const _0x161e53=_0x3c8a07;_0x254c2d[_0x161e53(0x25c)](_0x46c3a9),_0x254c2d['focusUnit'](_0x46c3a9),_0x1057e0[_0x161e53(0x3e3)](_0x173771['id'],{'unitId':_0x46c3a9,'tableId':_0x144859,'viewId':_0xc9b528,'patch':_0x4305c9})[_0x161e53(0x26d)](_0x4266b7=>_0x3954ff['error']('[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.',_0x4266b7));}});return _0x5628d9(Jr,{'children':_0x2fa798('div',{'className':_0x3c8a07(0x237),'children':[_0x2a40da&&_0x5628d9(_0x101ca4,{'onClick':()=>_0x16a35b(!0x0),'children':_0x2543fa['t'](_0x3c8a07(0x172))}),_0x5628d9(_0x3c8a07(0x334),{'className':_0x3c8a07(0x17c),'children':_0x4f1b5d}),_0x2a40da&&_0x2ef899&&_0x5628d9(_0x19aa31,{'title':_0x2543fa['t'](_0x3c8a07(0x20c)),'onClose':()=>_0x16a35b(!0x1),'children':_0x2ca392})]})});}function ea(_0x4173cb){const _0x56ac88=_0x5d48da;return(_0x4173cb==null?void 0x0:_0x4173cb['type'])===_0xc74f11[_0x56ac88(0xe1)]&&typeof _0x4173cb[_0x56ac88(0xa7)]=='object'&&_0x4173cb[_0x56ac88(0xa7)]!==null&&_0x56ac88(0x106)in _0x4173cb[_0x56ac88(0xa7)]&&_0x56ac88(0x204)in _0x4173cb[_0x56ac88(0xa7)]&&_0x56ac88(0x31a)in _0x4173cb[_0x56ac88(0xa7)];}let ta=class extends _0x419e57{constructor(_0x151ca0,_0x2f087c,_0x256f4a,_0xbcd738,_0x3af1ec,_0x33a213){const _0x4113eb=_0x5d48da;super(),this['disposeWithMe'](_0x2f087c[_0x4113eb(0x343)]({'type':_0xc74f11[_0x4113eb(0xe1)],'renderMode':'dom','icon':_0x55ff4b,'component':$i,'menu':{get 'label'(){const _0x3250a1=_0x4113eb;return _0x33a213['t'](_0x3250a1(0x20c));},get 'description'(){const _0x581394=_0x4113eb;return _0x33a213['t'](_0x581394(0xd7));},get 'defaultName'(){return _0x33a213['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x4113eb(0x1dc)](_0x151ca0[_0x4113eb(0x343)](na(_0x256f4a,_0xbcd738,_0x3af1ec,_0x33a213)));}};ta=Ar([Y(0x0,_0x5b5009),Y(0x1,_0x414da1),Y(0x2,_0x2d5804(_0x3a16be)),Y(0x3,_0x1e6f93),Y(0x4,_0x100697),Y(0x5,_0x2d5804(_0x1ecd96))],ta);function na(_0x5a600f,_0x52267a,_0x3b10cb,_0x475b4d){const _0x47f867=_0x5d48da;return{'change$':_0x5f1bfe(_0x5a600f[_0x47f867(0x9a)],_0x3b10cb[_0x47f867(0x27a)]),'component':Si,get 'labels'(){const _0x33dbbb=_0x47f867;return{'add':_0x475b4d['t'](_0x33dbbb(0xfa)),'configure':_0x221f24=>_0x475b4d['t'](_0x33dbbb(0x364),_0x221f24),'delete':_0x475b4d['t'](_0x33dbbb(0xe7)),'new':_0x475b4d['t'](_0x33dbbb(0x234)),'rename':_0x475b4d['t'](_0x33dbbb(0x357)),'search':_0x475b4d['t'](_0x33dbbb(0x10a)),'section':_0x475b4d['t']('bases-dashboard-ui.dashboard.section')};},'getItems':_0x249e14=>{const _0x36ad9f=_0x47f867;let _0x4b8f16=_0x5a600f[_0x36ad9f(0xc1)](_0x249e14);return _0x4b8f16[_0x36ad9f(0xd4)][_0x36ad9f(0x1ac)](_0x3da7b6=>{const _0xde567b=_0x36ad9f;let _0x549c38=_0x4b8f16['dashboards'][_0x3da7b6];return _0x549c38?[{'id':_0x549c38['id'],'name':_0x549c38[_0xde567b(0x3d7)],'readonly':!_0x5706cb(_0x3b10cb,_0x249e14,_0x549c38['id'])}]:[];});},'create':async _0x4ada3e=>{const _0x143098=_0x47f867;let _0x5165a3=_0x5a600f['getResource'](_0x4ada3e),_0x3b8f29='dashboard-'+_0x2cedf9(0x8),_0x11e277=ra(_0x5165a3[_0x143098(0xd4)][_0x143098(0x1ac)](_0x53936c=>{const _0x397365=_0x143098;let _0x433a5d=_0x5165a3[_0x397365(0x3e5)][_0x53936c];return _0x433a5d?[_0x433a5d[_0x397365(0x3d7)]]:[];}),_0x230bc4=>_0x475b4d['t'](_0x143098(0xc0),String(_0x230bc4)));return await _0x52267a[_0x143098(0x3e3)](_0x4764c4['id'],{'unitId':_0x4ada3e,'dashboard':{'id':_0x3b8f29,'name':_0x11e277,'widgetOrder':[],'widgets':{}}})?_0x3b8f29:null;},'rename':async(_0x29e391,_0x35917d,_0x5b8bc5)=>{const _0x5c5c3b=_0x47f867;let _0x562017=_0x5a600f[_0x5c5c3b(0x18b)](_0x29e391,_0x35917d);return!!(_0x562017&&await _0x52267a[_0x5c5c3b(0x3e3)](_0x1e3e1b['id'],{'unitId':_0x29e391,'dashboard':{..._0x562017,'name':_0x5b8bc5}}));},'remove':(_0x4f009a,_0x58d9c1)=>_0x52267a[_0x47f867(0x3e3)](_0x391460['id'],{'unitId':_0x4f009a,'dashboardId':_0x58d9c1})};}function ra(_0x480d0c,_0x5c3d6b){const _0x561647=_0x5d48da;let _0x515285=new Set(_0x480d0c),_0x4b0c29=_0x515285['size']+0x1,_0x19a38c=_0x5c3d6b(_0x4b0c29);for(;_0x515285[_0x561647(0x9c)](_0x19a38c);)_0x4b0c29+=0x1,_0x19a38c=_0x5c3d6b(_0x4b0c29);return _0x19a38c;}let ia=class extends _0x1ea012{constructor(_0x32cb91=_r,_0x101420,_0x1a75e8){const _0x31f69e=_0x5d48da;super(),this['_config']=_0x32cb91,this[_0x31f69e(0xbf)]=_0x101420,this[_0x31f69e(0xc6)]=_0x1a75e8;let {..._0x4e586b}=_0x362ea8({},_r,this[_0x31f69e(0x1b1)]);this[_0x31f69e(0xc6)]['setConfig'](gr,_0x4e586b);}[_0x5d48da(0x3a1)](){const _0x44fef5=_0x5d48da;this[_0x44fef5(0xbf)][_0x44fef5(0x1bf)]([jr]),this[_0x44fef5(0xbf)][_0x44fef5(0x1bf)]([qr]),this[_0x44fef5(0xbf)]['add']([ta]);}[_0x5d48da(0x187)](){_0xe4152(this['_injector'],[[jr],[qr],[ta]]);}};Ir(ia,_0x5d48da(0x278),_0x247fc0['UNIVER_BASE']),Ir(ia,'pluginName','BASE_DASHBOARD_UI_PLUGIN'),Ir(ia,_0x5d48da(0x37d),mr),Ir(ia,_0x5d48da(0x1ae),hr),ia=Ar([_0xb94e7b(_0x5d1ed0,_0x7e7509,_0x36ac31,_0x38b402,_0xff803e,_0x175601),Y(0x1,_0x2d5804(_0x3c350b)),Y(0x2,_0x8e960e)],ia);function aa(_0x1bb3c1,_0x5a0653,_0x3b9c5c,_0x39f3fb){const _0xb64bd2=_0x5d48da;let _0x11398c={..._0x1bb3c1};if(_0x5a0653['includes']('w')){let _0x43924d=_0x1bb3c1[_0xb64bd2(0x33b)]+_0x1bb3c1[_0xb64bd2(0x229)];_0x11398c[_0xb64bd2(0x33b)]=Math[_0xb64bd2(0x16b)](0x0,Math[_0xb64bd2(0x2cf)](_0x43924d-0x1,_0x1bb3c1[_0xb64bd2(0x33b)]+_0x3b9c5c)),_0x11398c[_0xb64bd2(0x229)]=_0x43924d-_0x11398c['column'];}else _0x5a0653['includes']('e')&&(_0x11398c[_0xb64bd2(0x229)]=Math['max'](0x1,Math[_0xb64bd2(0x2cf)](_0x3587a5-_0x1bb3c1[_0xb64bd2(0x33b)],_0x1bb3c1[_0xb64bd2(0x229)]+_0x3b9c5c)));if(_0x5a0653[_0xb64bd2(0x292)]('n')){let _0x478c41=_0x1bb3c1['row']+_0x1bb3c1['rowSpan'];_0x11398c['row']=Math['max'](0x0,Math['min'](_0x478c41-0x1,_0x1bb3c1[_0xb64bd2(0x1f2)]+_0x39f3fb)),_0x11398c[_0xb64bd2(0x314)]=_0x478c41-_0x11398c['row'];}else _0x5a0653['includes']('s')&&(_0x11398c['rowSpan']=Math[_0xb64bd2(0x16b)](0x1,_0x1bb3c1[_0xb64bd2(0x314)]+_0x39f3fb));return _0x11398c;}function oa(_0x285327){const _0x2ddb5b=_0x5d48da;let _0x5d7dcc=Math[_0x2ddb5b(0x16b)](0x1,Math[_0x2ddb5b(0x2cf)](_0x3587a5,Math['round'](_0x285327[_0x2ddb5b(0x229)])));return{'column':Math['max'](0x0,Math[_0x2ddb5b(0x2cf)](_0x3587a5-_0x5d7dcc,Math[_0x2ddb5b(0x2de)](_0x285327[_0x2ddb5b(0x33b)]))),'row':Math['max'](0x0,Math[_0x2ddb5b(0x2de)](_0x285327['row'])),'columnSpan':_0x5d7dcc,'rowSpan':Math[_0x2ddb5b(0x16b)](0x1,Math[_0x2ddb5b(0x2de)](_0x285327['rowSpan']))};}function sa(_0x2d4ef6,_0x31b55a,_0x4ccdee){const _0x52823e=_0x5d48da;let _0x3ddd52=new Map(_0x2d4ef6),_0x2ca97d=oa(_0x4ccdee);_0x3ddd52[_0x52823e(0x166)](_0x31b55a,_0x2ca97d);let _0x5af7e1=[[_0x31b55a,_0x2ca97d]];for(let [_0x5a80e2,_0x12f5cf]of _0x3ddd52){if(_0x5a80e2===_0x31b55a)continue;let _0x158fc3=oa(_0x12f5cf);for(;_0x5af7e1['some'](([,_0x3b11df])=>la(_0x158fc3,_0x3b11df));)_0x158fc3={..._0x158fc3,'row':_0x158fc3['row']+0x1};for(;_0x158fc3[_0x52823e(0x1f2)]>0x0;){let _0x46a756={..._0x158fc3,'row':_0x158fc3['row']-0x1};if(_0x5af7e1[_0x52823e(0x353)](([,_0x441c98])=>la(_0x46a756,_0x441c98)))break;_0x158fc3=_0x46a756;}_0x5af7e1[_0x52823e(0x383)]([_0x5a80e2,_0x158fc3]),_0x3ddd52[_0x52823e(0x166)](_0x5a80e2,_0x158fc3);}return _0x3ddd52;}function ca(_0x535333,_0x15a7b8,_0x2bebed,_0x508a40=0x38,_0x552fe1=0x16){const _0x15e5e8=_0x5d48da;return _0x535333<_0x15a7b8+_0x508a40?-Math[_0x15e5e8(0x159)](_0x552fe1*(0x1-Math[_0x15e5e8(0x16b)](0x0,_0x535333-_0x15a7b8)/_0x508a40)):_0x535333>_0x2bebed-_0x508a40?Math[_0x15e5e8(0x159)](_0x552fe1*(0x1-Math[_0x15e5e8(0x16b)](0x0,_0x2bebed-_0x535333)/_0x508a40)):0x0;}function la(_0xca1eaf,_0x3ed001){const _0xc79a33=_0x5d48da;return _0xca1eaf['column']<_0x3ed001[_0xc79a33(0x33b)]+_0x3ed001[_0xc79a33(0x229)]&&_0xca1eaf['column']+_0xca1eaf['columnSpan']>_0x3ed001['column']&&_0xca1eaf[_0xc79a33(0x1f2)]<_0x3ed001[_0xc79a33(0x1f2)]+_0x3ed001[_0xc79a33(0x314)]&&_0xca1eaf[_0xc79a33(0x1f2)]+_0xca1eaf['rowSpan']>_0x3ed001[_0xc79a33(0x1f2)];}const ua=[{'direction':'nw','className':_0x5d48da(0x3ad)},{'direction':'n','className':_0x5d48da(0x31f)},{'direction':'ne','className':_0x5d48da(0x35c)},{'direction':'e','className':'-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize'},{'direction':'se','className':'univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize'},{'direction':'s','className':'-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize'},{'direction':'sw','className':_0x5d48da(0x39b)},{'direction':'w','className':_0x5d48da(0xc8)}];function da({dashboard:_0x5c0f76,dragLabel:_0x250fe7,editable:_0x4990d5=!0x0,onLayoutsCommit:_0x5501a8,onSelectWidget:_0x4d2892,renderWidget:_0x3f1b5d,renderWidgetActions:_0x3d0866,resizeLabel:_0x3adc56,selectedWidgetId:_0x4f8888,widgetLabel:_0x13250d}){const _0xcc61b2=_0x5d48da;let _0x3d5304=_0x25fc59(null),_0x41f80c=_0x25fc59(null),[_0x1e6763,_0x59aff2]=_0x4ebd7a(!0x1),_0x57744c=_0x5c672b(()=>new Map(_0x5c0f76[_0xcc61b2(0x3a0)][_0xcc61b2(0x1ac)](_0xe999e9=>{const _0x1e6431=_0xcc61b2;let _0x239c3e=_0x5c0f76[_0x1e6431(0x1f6)][_0xe999e9];return _0x239c3e?[[_0xe999e9,_0x239c3e[_0x1e6431(0x3e1)]]]:[];})),[_0x5c0f76]),[_0xb7528a,_0x26bfc3]=_0x4ebd7a(_0x57744c);_0x185176(()=>{const _0x21f503=_0xcc61b2;_0x41f80c[_0x21f503(0xe8)]||_0x26bfc3(_0x57744c);},[_0x57744c]),_0x185176(()=>{const _0x2b6e32=_0xcc61b2;if(!_0x1e6763)return;let _0x5d2011=_0x512805=>{const _0xe8cd84=_0x187c;let _0x59bade=_0x3d5304['current'];if(!_0x59bade)return null;let _0x4f4468=_0x59bade[_0xe8cd84(0x319)](),_0x202457=Math['max'](0x1,(_0x4f4468[_0xe8cd84(0x3ed)]-0x8*(_0x3587a5-0x1))/_0x3587a5),_0x3d6c00=Math[_0xe8cd84(0x2de)]((_0x59bade[_0xe8cd84(0x28a)]-_0x512805['startScrollTop'])/(_0x560757+0x8)),_0x5acfd6=Math['round']((_0x512805[_0xe8cd84(0x1ba)]-_0x512805[_0xe8cd84(0x3a8)])/(_0x202457+0x8)),_0x519928=Math['round']((_0x512805[_0xe8cd84(0x9f)]-_0x512805['startY'])/(_0x560757+0x8))+_0x3d6c00,_0x319fe1=_0x512805[_0xe8cd84(0x362)]==='move'?{..._0x512805[_0xe8cd84(0x2aa)],'column':_0x512805['initial'][_0xe8cd84(0x33b)]+_0x5acfd6,'row':_0x512805[_0xe8cd84(0x2aa)]['row']+_0x519928}:aa(_0x512805['initial'],_0x512805[_0xe8cd84(0x3e7)]??'se',_0x5acfd6,_0x519928),_0x360c86=sa(_0x512805['initialLayouts'],_0x512805['id'],_0x319fe1);return _0x26bfc3(_0x360c86),_0x360c86;},_0x5b62cc=_0x1c1951=>{const _0x5691e1=_0x187c;let _0x3e8d78=_0x41f80c[_0x5691e1(0xe8)];if(!_0x3e8d78)return;let _0x4f2a8c={..._0x3e8d78,'pointerX':_0x1c1951[_0x5691e1(0x288)],'pointerY':_0x1c1951[_0x5691e1(0x134)]};_0x41f80c[_0x5691e1(0xe8)]=_0x4f2a8c;},_0x22ac25=()=>{const _0xb7e3b8=_0x187c;let _0x5c24a9=_0x41f80c['current'],_0x397265=_0x5c24a9?_0x5d2011(_0x5c24a9):null;_0x41f80c[_0xb7e3b8(0xe8)]=null,_0x59aff2(!0x1),_0x397265&&_0x5501a8(_0x397265);},_0x169591=0x0,_0x3eb395=()=>{const _0x230d61=_0x187c;let _0x10e2f6=_0x3d5304[_0x230d61(0xe8)],_0x21ae9e=_0x41f80c[_0x230d61(0xe8)];if(_0x10e2f6&&_0x21ae9e){let _0x4b015f=_0x10e2f6[_0x230d61(0x319)](),_0x21154f=ca(_0x21ae9e[_0x230d61(0x9f)],_0x4b015f[_0x230d61(0x171)],_0x4b015f['bottom']);_0x21154f!==0x0&&(_0x10e2f6['scrollTop']+=_0x21154f),_0x5d2011(_0x21ae9e),_0x169591=requestAnimationFrame(_0x3eb395);}};return _0x169591=requestAnimationFrame(_0x3eb395),window['addEventListener'](_0x2b6e32(0xff),_0x5b62cc),window['addEventListener'](_0x2b6e32(0x3b3),_0x22ac25),()=>{const _0x28ed51=_0x2b6e32;cancelAnimationFrame(_0x169591),window[_0x28ed51(0x3df)](_0x28ed51(0xff),_0x5b62cc),window[_0x28ed51(0x3df)](_0x28ed51(0x3b3),_0x22ac25);};},[_0x1e6763,_0x5501a8]);let _0x752435=Math[_0xcc61b2(0x16b)](0x8,...Array[_0xcc61b2(0x191)](_0xb7528a[_0xcc61b2(0x370)]())['map'](_0x4cb712=>_0x4cb712[_0xcc61b2(0x1f2)]+_0x4cb712[_0xcc61b2(0x314)])),_0x569838=(_0x52e214,_0x59c5c4,_0x5cce43,_0x5ded77)=>{const _0x29c611=_0xcc61b2;_0x52e214[_0x29c611(0x394)](),_0x52e214[_0x29c611(0xf7)]();let _0x997e95=_0x3d5304[_0x29c611(0xe8)],_0x4337c1={'id':_0x59c5c4['id'],'mode':_0x5cce43,'pointerX':_0x52e214['clientX'],'pointerY':_0x52e214[_0x29c611(0x134)],'startX':_0x52e214[_0x29c611(0x288)],'startY':_0x52e214[_0x29c611(0x134)],'startScrollTop':(_0x997e95==null?void 0x0:_0x997e95[_0x29c611(0x28a)])??0x0,'initial':_0xb7528a[_0x29c611(0x185)](_0x59c5c4['id'])??_0x59c5c4[_0x29c611(0x3e1)],'initialLayouts':new Map(_0xb7528a),'resizeDirection':_0x5ded77};_0x41f80c[_0x29c611(0xe8)]=_0x4337c1,_0x59aff2(!0x0);};return _0x5628d9(_0xcc61b2(0x334),{'ref':_0x3d5304,'data-dashboard-scroll-container':!0x0,'className':_0x37e66c('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',_0xb0e9d1),'onClick':_0x4990d5?_0x4c53c9=>{const _0x3f296c=_0xcc61b2;if(!(_0x4c53c9[_0x3f296c(0x320)]instanceof Node)||!_0x4c53c9[_0x3f296c(0x3c6)][_0x3f296c(0x1d4)](_0x4c53c9[_0x3f296c(0x320)]))return;let _0x1124e5=_0x4c53c9[_0x3f296c(0x320)]instanceof Element?_0x4c53c9[_0x3f296c(0x320)]:_0x4c53c9[_0x3f296c(0x320)][_0x3f296c(0x3b0)];_0x1124e5!=null&&_0x1124e5['closest'](_0x3f296c(0x3a7))||_0x4d2892==null||_0x4d2892();}:void 0x0,'children':_0x5628d9(_0xcc61b2(0x334),{'data-dashboard-grid':!0x0,'className':_0xcc61b2(0x35d),'style':{'gap':0x8,'gridAutoRows':_0x560757,'minHeight':_0x752435*(_0x560757+0x8)},'children':_0x5c0f76[_0xcc61b2(0x3a0)][_0xcc61b2(0x2ea)](_0x165107=>{const _0x309e28=_0xcc61b2;var _0x3c2172;let _0x11c5c1=_0x5c0f76['widgets'][_0x165107],_0x593604=_0xb7528a[_0x309e28(0x185)](_0x165107);return!_0x11c5c1||!_0x593604?null:_0x2fa798(_0x309e28(0x335),{'data-dashboard-widget':_0x11c5c1['id'],'aria-label':_0x11c5c1[_0x309e28(0xbc)]??_0x13250d(_0x11c5c1),'className':_0x37e66c(_0x309e28(0x18e),_0x11c5c1[_0x309e28(0x278)]===_0x4dd1ab[_0x309e28(0x3c0)]||_0x11c5c1[_0x309e28(0x278)]===_0x4dd1ab[_0x309e28(0x2c2)]?_0x309e28(0x356):_0x309e28(0x2d2),_0x4990d5&&_0x4f8888===_0x11c5c1['id']?'univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500':_0x309e28(0x14c)),'style':{'gridColumn':_0x593604[_0x309e28(0x33b)]+0x1+_0x309e28(0x208)+_0x593604[_0x309e28(0x229)],'gridRow':_0x593604[_0x309e28(0x1f2)]+0x1+_0x309e28(0x208)+_0x593604[_0x309e28(0x314)]},'tabIndex':_0x4990d5?0x0:void 0x0,'onClick':_0x4990d5?()=>_0x4d2892==null?void 0x0:_0x4d2892(_0x11c5c1['id']):void 0x0,'onFocus':_0x4990d5?()=>_0x4d2892==null?void 0x0:_0x4d2892(_0x11c5c1['id']):void 0x0,'children':[_0x4990d5&&_0x5628d9(_0x309e28(0x11f),{'type':_0x309e28(0x11f),'aria-label':_0x250fe7,'data-dashboard-drag-handle':_0x11c5c1['id'],'className':_0x37e66c(_0x309e28(0x243),_0x1e6763&&((_0x3c2172=_0x41f80c[_0x309e28(0xe8)])==null?void 0x0:_0x3c2172['id'])===_0x11c5c1['id']&&_0x41f80c['current'][_0x309e28(0x362)]==='move'?_0x309e28(0x259):_0x309e28(0x3ee)),'onPointerDown':_0x5466fa=>_0x569838(_0x5466fa,_0x11c5c1,_0x309e28(0x25b)),'children':_0x5628d9(_0x1e67fc,{'className':_0x309e28(0x2e8),'aria-hidden':_0x309e28(0x1da)})}),_0x4990d5&&_0x5628d9('div',{'className':_0x309e28(0x143),'children':_0x3d0866==null?void 0x0:_0x3d0866(_0x11c5c1)}),_0x5628d9('div',{'className':_0x309e28(0x20a),'children':_0x3f1b5d(_0x11c5c1)}),_0x4990d5&&ua['map'](({className:_0x44a8db,direction:_0xba4d02})=>{const _0x275ad5=_0x309e28;let _0x553e07=_0xba4d02['length']===0x2;return _0x5628d9(_0x275ad5(0x11f),{'type':_0x275ad5(0x11f),'aria-label':_0x3adc56,'data-dashboard-resize-handle':_0xba4d02,'data-dashboard-resize-control':_0x553e07?_0xba4d02:void 0x0,'data-dashboard-resize-edge':_0x553e07?void 0x0:_0xba4d02,'className':_0x37e66c(_0x275ad5(0xef),_0x553e07?'univer-box-content\x20univer-size-1.5\x20univer-rounded-full\x20!univer-border-2\x20!univer-border-solid\x20!univer-border-white\x20!univer-bg-primary-600':'univer-border-0\x20univer-bg-transparent',_0x44a8db,_0x4f8888===_0x11c5c1['id']&&'univer-pointer-events-auto\x20univer-opacity-100'),'onPointerDown':_0x8bc6ac=>_0x569838(_0x8bc6ac,_0x11c5c1,'resize',_0xba4d02)},_0xba4d02);})]},_0x11c5c1['id']);})})});}var fa;const Q={'axis':{..._0x2b6728,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x5683c7,'heatmap':_0x165da0,'indicatorLine':_0x2adc54,'legend':_0x1267c7,'lineAndArea':_0x514143,'pareto':_0x1e2ae9,'pie':_0x2e45c9,'radar':_0x32285a,'relation':{..._0x270a4f,'useValueAsSymbolSize':!0x0},'series':{..._0x338c3f,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((fa=_0xa4c4f5[_0x5d48da(0x1fb)])==null?void 0x0:fa[_0x5d48da(0x164)])??!0x1}},'style':_0x2d6dc1,'titles':_0x5a35d2,'trendline':_0x59bb04,'waterfall':{..._0x3d8d6d,'useSubtotal':!0x0},'waterfallStyle':_0x5630e0,'wordCloud':_0x5624b3},pa=[_0x1cf6fa[_0x5d48da(0x1f9)],_0x1cf6fa[_0x5d48da(0x140)],_0x1cf6fa[_0x5d48da(0x21a)],_0x1cf6fa[_0x5d48da(0x34d)],_0x1cf6fa[_0x5d48da(0x30a)],_0x1cf6fa['Relation'],_0x1cf6fa['Sankey'],_0x1cf6fa[_0x5d48da(0x385)],_0x1cf6fa[_0x5d48da(0x3cd)],_0x1cf6fa['Candlestick'],_0x1cf6fa[_0x5d48da(0xb8)],_0x1cf6fa[_0x5d48da(0x28d)],_0x1cf6fa[_0x5d48da(0xf1)],_0x1cf6fa[_0x5d48da(0x186)],_0x1cf6fa['Chord']];function ma(_0x5e4261){const _0x20cf11=_0x5d48da;let {config:_0x140358,onChange:_0x586001,runtime:_0x14c80c,tableName:_0x3d27d4}=_0x5e4261,_0x27e997=_0x40463f(qr),_0x4a95bd=_0x40463f(_0x1ecd96),[_0x42b44f,_0x1076cf]=_0x4ebd7a(_0x389329[_0x20cf11(0xf0)]),_0x5736dc=_0x5c672b(()=>new _0x367b2a(_0x14c80c[_0x20cf11(0x1ad)],{'commit':_0x12a5ad=>{const _0x5c9b32=_0x20cf11;var _0x29e1ae;let _0x4c05ea=_0x14c80c[_0x5c9b32(0x1ad)],_0xad87a5=_0x5adbe1(_0x12a5ad,{'series':(_0x29e1ae=_0x4c05ea[_0x5c9b32(0xa7)])==null?void 0x0:_0x29e1ae['series'],'currentChartType':_0x4c05ea[_0x5c9b32(0x287)],'currentStyle':_0x4c05ea[_0x5c9b32(0x36b)],'currentContext':_0x4c05ea[_0x5c9b32(0x378)],'currentDataAggregation':_0x4c05ea[_0x5c9b32(0x2fa)]});_0x586001({'chart':ha(_0x140358[_0x5c9b32(0x204)],_0xad87a5)});}}),[_0x140358[_0x20cf11(0x204)],_0x586001,_0x14c80c]),_0x4487d4=_0x5c672b(()=>_0x2f5cf3(_0x8d6a08[_0x20cf11(0x2ea)](_0x52c25e=>({..._0x52c25e,'label':_0x4a95bd['t'](ya(_0x52c25e[_0x20cf11(0x2fb)]))}))),[_0x4a95bd]);return _0x5628d9(_0x4f5736,{'chartUIService':_0x27e997,'hostAdapter':_0x5736dc,'children':_0x2fa798(_0x20cf11(0x334),{'className':_0x20cf11(0x1e2),'children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x4a95bd['t'](_0x20cf11(0x142)),'className':_0x20cf11(0x3c9),'items':[{'label':_0x4a95bd['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0x20cf11(0x3b1),'value':_0x389329[_0x20cf11(0xf0)]},{'label':_0x4a95bd['t'](_0x20cf11(0x15b)),'panelId':_0x20cf11(0x271),'value':_0x389329['Style']}],'value':_0x42b44f,'onChange':_0x1076cf}),_0x42b44f===_0x389329[_0x20cf11(0xf0)]?_0x5628d9(_0x59879a,{'id':_0x20cf11(0x3b1),'label':_0x4a95bd['t'](_0x20cf11(0x360)),'children':_0x2fa798(_0x20cf11(0x334),{'className':_0x20cf11(0x36c),'children':[_0x5628d9(_0x3352ce,{'options':_0x4487d4}),_0x5628d9(_0x53d74e,{}),_0x5628d9(_0x3aee5e,{}),_0x5628d9(ga,{}),_0x5628d9(_0x1ed3a5,{}),_0x2fa798(_0x20cf11(0x334),{'children':[_0x5628d9(_0x30e809,{'title':_0x4a95bd['t'](_0x20cf11(0x22f))}),_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':_0x3d27d4})]}),_0x5628d9(_0x70f2bb,{'orientationControl':_0x5628d9(_0x101ca4,{'size':_0x20cf11(0x147),'onClick':()=>_0x586001({'chart':{..._0x140358[_0x20cf11(0x204)],'orient':_0x140358[_0x20cf11(0x204)]['orient']==='row'?'column':_0x20cf11(0x1f2)}}),'children':_0x4a95bd['t'](_0x20cf11(0x2b7))})}),_0x5628d9(_0x468257,{}),_0x5628d9(_0x153e3c,{'defaultValues':Q[_0x20cf11(0x3d6)]}),_0x2fa798(_0x20cf11(0x334),{'children':[_0x5628d9(_0x30e809,{'title':_0x4a95bd['t'](_0x20cf11(0xb1))}),_0x5628d9(_0x701e3d,{'value':_0x140358[_0x20cf11(0x31a)],'options':[{'value':_0x20cf11(0x27c),'label':_0x4a95bd['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':_0x20cf11(0x204),'label':_0x4a95bd['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':'table','label':_0x4a95bd['t'](_0x20cf11(0x1d9))}],'onChange':_0x8a85ae=>{const _0x417094=_0x20cf11;(_0x8a85ae===_0x417094(0x27c)||_0x8a85ae===_0x417094(0x204)||_0x8a85ae===_0x417094(0x2d3))&&_0x586001({'displayMode':_0x8a85ae});}})]})]})}):_0x5628d9(_0x59879a,{'id':_0x20cf11(0x271),'label':_0x4a95bd['t'](_0x20cf11(0x15b)),'children':_0x5628d9(_a,{})})]})});}function ha(_0x3fd9f5,_0x32c1ea){const _0x588675=_0x5d48da;return{..._0x3fd9f5,'type':_0x32c1ea[_0x588675(0x287)]??_0x3fd9f5['type'],'style':_0x32c1ea[_0x588675(0x36b)]??_0x3fd9f5['style'],'context':_0x32c1ea[_0x588675(0x378)]??_0x3fd9f5['context'],'dataAggregation':_0x32c1ea['dataAggregation']??_0x3fd9f5['dataAggregation']};}function ga(){const _0x6da6a0=_0x5d48da;let _0x1cf177=_0x10d8e4();return _0x5628d9(_0x1ca39a,{'visible':pa[_0x6da6a0(0x35b)](_0x2b3852=>!_0x242779[_0x6da6a0(0x263)](_0x1cf177,_0x2b3852))});}function $(_0x5ba49d){const _0x489fb2=_0x5d48da;return _0x2fa798(_0x53ec64,{'id':_0x5ba49d['id'],'children':[_0x5628d9(_0x51656d,{'children':_0x5ba49d[_0x489fb2(0x249)]}),_0x5628d9(_0x37b567,{'children':_0x5ba49d[_0x489fb2(0x29e)]})]});}function _a(){const _0x359dda=_0x5d48da;let _0x2ce9cb=_0x40463f(_0x1ecd96),_0x1f9f3e=_0x10d8e4(),_0x389383=_0xef83d1(),[_0x2bf06f,_0xd2cd4d]=_0x4ebd7a(null),_0xe9f49e=_0x242779[_0x359dda(0x263)](_0x1f9f3e,_0x1cf6fa[_0x359dda(0x282)]),_0xfd5037=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x140)],_0x1d95db=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x21a)],_0x29b8ae=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x30a)],_0xc231e1=_0x242779[_0x359dda(0x263)](_0x1f9f3e,_0x1cf6fa[_0x359dda(0x3d8)]),_0x50deef=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x28b)],_0x5bc611=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x33f)],_0x58cd42=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x218)],_0xbf275d=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x385)],_0x31b0e4=_0x2ecac2(_0x1f9f3e,_0xc8129[_0x359dda(0x3de)])&&!_0xc231e1&&!_0x58cd42,_0x5a872e=va(_0x1f9f3e,_0x2ce9cb);return _0x2fa798(_0x151ab2,{'value':_0x2bf06f,'onChange':_0xd2cd4d,'children':[_0x5628d9($,{'id':_0x4baf7f['ChartStyle'],'label':_0x2ce9cb['t'](_0x359dda(0x354)),'children':_0x5628d9(_0xc54821,{'defaultValues':Q['style']})}),_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x1cd)],'label':_0x2ce9cb['t'](_0x359dda(0x24d)),'children':_0x5628d9(_0x517322,{'commitMode':'blur','defaultValues':Q[_0x359dda(0x161)]})}),_0x5628d9(_0x31fb16,{'section':'view'}),_0x31b0e4&&_0x5628d9($,{'id':_0x4baf7f['Series'],'label':_0x2ce9cb['t'](_0x359dda(0x112)),'children':_0x5628d9(_0x4f3338,{'defaultValues':Q['series'],'NumberFormatField':_0x3f2847})}),_0x5bc611&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x105)],'label':_0x2ce9cb['t']('bases-dashboard-ui.chart.section.waterfall'),'children':_0x5628d9(_0x122082,{'defaultValues':Q['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x394955,target:_0x1dfed8})=>_0x1dfed8===_0x148de0[_0x359dda(0x1fa)]?_0x2ce9cb['t'](_0x359dda(0x1df)):_0x394955?_0x394955+'-('+_0x2ce9cb['t']('bases-dashboard-ui.chart.'+(_0x1dfed8===_0x148de0['Positive']?_0x359dda(0x222):_0x359dda(0x34c)))+')':'','NumberFormatField':_0x3f2847})}),_0x58cd42&&_0x2fa798(_0x5554ea,{'children':[_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x380)],'label':_0x2ce9cb['t'](_0x359dda(0xd8)),'children':_0x5628d9(_0x117afe,{'defaultValues':Q[_0x359dda(0x2cc)],'NumberFormatField':_0x3f2847,'showDataPointEditor':!0x0,'target':'barStyle'})}),_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x21f)],'label':_0x2ce9cb['t'](_0x359dda(0x2d7)),'children':_0x5628d9(_0x117afe,{'defaultValues':Q[_0x359dda(0x2cc)],'NumberFormatField':_0x3f2847,'showDataPointEditor':!0x1,'target':_0x359dda(0x246)})})]}),_0xe9f49e&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x1b8)],'label':_0x2ce9cb['t']('bases-dashboard-ui.chart.section.pie'),'children':_0x5628d9(_0x32a1e9,{'defaultValues':Q['pie'],'NumberFormatField':_0x3f2847})}),_0x1d95db&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x21a)],'label':_0x2ce9cb['t'](_0x359dda(0x25e)),'children':_0x5628d9(_0x51f587,{'defaultValues':Q[_0x359dda(0x286)]})}),_0xfd5037&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x140)],'label':_0x2ce9cb['t'](_0x359dda(0x35a)),'children':_0x5628d9(_0x1423a1,{'defaultValues':Q[_0x359dda(0x294)]})}),_0x29b8ae&&_0x5628d9($,{'id':_0x4baf7f['Funnel'],'label':_0x2ce9cb['t'](_0x359dda(0x3bb)),'children':_0x5628d9(_0x5591da,{'defaultValues':Q[_0x359dda(0xfe)],'gapControl':'select'})}),_0xbf275d&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x385)],'label':_0x2ce9cb['t'](_0x359dda(0xda)),'children':_0x5628d9(_0x1aca4d,{'defaultValues':Q[_0x359dda(0x337)]})}),_0x50deef&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x28b)],'label':_0x2ce9cb['t'](_0x359dda(0x1c4)),'children':_0x5628d9(_0x4117cf,{'defaultValues':Q[_0x359dda(0x2bb)]})}),_0x1dac15(_0x1f9f3e)&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0xf3)],'label':_0x2ce9cb['t'](_0x242779[_0x359dda(0x263)](_0x1f9f3e,_0x1cf6fa[_0x359dda(0x332)])?'bases-dashboard-ui.chart.chartTypes.area':'bases-dashboard-ui.chart.chartTypes.line'),'children':_0x5628d9(_0x2a4c4d,{'defaultValues':Q[_0x359dda(0x366)],'lineStyleControl':_0x359dda(0x1d2)})}),_0x2ecac2(_0x1f9f3e,_0xc8129[_0x359dda(0x2a2)])&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x2a2)],'label':_0x2ce9cb['t'](_0x359dda(0x183)),'children':_0x5628d9(_0x2205cf,{'defaultValues':Q[_0x359dda(0xdb)]})}),_0x2ecac2(_0x1f9f3e,_0xc8129[_0x359dda(0x31e)])&&_0x2fa798(_0x5554ea,{'children':[_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x266)],'label':_0x2ce9cb['t']('bases-dashboard-ui.chart.common.horizontalAxis'),'children':_0x5628d9(_0x51c0bf,{'axis':'x','defaultValues':Q[_0x359dda(0x399)],'NumberFormatField':_0x3f2847})}),_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x9e)],'label':_0x2ce9cb['t'](_0x359dda(0x32b)),'children':_0x5628d9(_0x51c0bf,{'axis':'y','defaultValues':Q['axis'],'NumberFormatField':_0x3f2847})}),_0x5628d9(_0x31fb16,{'section':_0x359dda(0x2c7)}),_0x389383&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x375)],'label':_0x2ce9cb['t'](_0x359dda(0x144)),'children':_0x5628d9(_0x51c0bf,{'axis':_0x359dda(0xe6),'defaultValues':Q[_0x359dda(0x399)],'NumberFormatField':_0x3f2847})}),_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x210)],'label':_0x2ce9cb['t']('bases-dashboard-ui.chart.section.gridlinesAndTicks'),'children':_0x5628d9(_0x58fc11,{'defaultValues':Q['axis']})})]}),_0x2ecac2(_0x1f9f3e,_0xc8129['IndicatorLine'])&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x306)],'label':_0x2ce9cb['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x5628d9(_0x54d111,{'defaultValues':Q[_0x359dda(0x20f)]})}),_0x3f9965(_0x1f9f3e)&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x36f)],'label':_0x2ce9cb['t'](_0x359dda(0x388)),'children':_0x5628d9(_0x311435,{'defaultValues':Q['trendline']})}),_0x5a872e&&_0x5628d9($,{'id':_0x5a872e['id'],'label':_0x5a872e[_0x359dda(0x249)],'children':_0x5628d9(_0x3f116c,{})})]});}function va(_0x2f476e,_0x2d7374){const _0x727a13=_0x5d48da;let _0x491a48={[_0x1cf6fa[_0x727a13(0x395)]]:{'id':_0x4baf7f[_0x727a13(0x395)],'localeKey':'bases-dashboard-ui.chart.section.candlestick'},[_0x1cf6fa[_0x727a13(0xb8)]]:{'id':_0x4baf7f[_0x727a13(0xb8)],'localeKey':'bases-dashboard-ui.chart.section.histogram'},[_0x1cf6fa[_0x727a13(0x28d)]]:{'id':_0x4baf7f[_0x727a13(0x28d)],'localeKey':_0x727a13(0x361)},[_0x1cf6fa[_0x727a13(0xf1)]]:{'id':_0x4baf7f[_0x727a13(0xf1)],'localeKey':'bases-dashboard-ui.chart.section.sunburst'},[_0x1cf6fa[_0x727a13(0x186)]]:{'id':_0x4baf7f[_0x727a13(0x186)],'localeKey':_0x727a13(0x12b)},[_0x1cf6fa[_0x727a13(0xe5)]]:{'id':_0x4baf7f[_0x727a13(0xe5)],'localeKey':'bases-dashboard-ui.chart.section.chord'}}[_0x2f476e];return _0x491a48?{'id':_0x491a48['id'],'label':_0x2d7374['t'](_0x491a48[_0x727a13(0x1f0)])}:null;}function ya(_0x214f9e){const _0x57bcd0=_0x5d48da;return _0x57bcd0(0x36a)+_0x214f9e;}function ba({onChange:_0x5f1f9b,onEditData:_0x3872d4,runtime:_0x11416c,sourceChart:_0x58c79a,sourceName:_0x5f26be,widget:_0x1da6ed}){const _0x49f9f=_0x5d48da;let _0x2fa628=_0x40463f(qr),_0x57c118=_0x40463f(_0x1ecd96),[_0x5825e1,_0x1b34a3]=_0x4ebd7a(_0x389329['Data']),_0x43412c=_0x1da6ed['chart']??_0x58c79a,_0x2cf70e=_0x5c672b(()=>new _0x367b2a(_0x11416c[_0x49f9f(0x1ad)],{'commit':_0x41c6cd=>{const _0x32486a=_0x49f9f;var _0x415b42;let _0x2d1249=_0x11416c[_0x32486a(0x1ad)],_0x49392c=_0x5adbe1(_0x41c6cd,{'series':(_0x415b42=_0x2d1249[_0x32486a(0xa7)])==null?void 0x0:_0x415b42[_0x32486a(0x32f)],'currentChartType':_0x2d1249[_0x32486a(0x287)],'currentStyle':_0x2d1249[_0x32486a(0x36b)],'currentContext':_0x2d1249[_0x32486a(0x378)],'currentDataAggregation':_0x2d1249[_0x32486a(0x2fa)]});_0x5f1f9b({..._0x1da6ed,'chart':ha(_0x43412c,_0x49392c)})[_0x32486a(0x26d)](()=>void 0x0);}}),[_0x43412c,_0x5f1f9b,_0x11416c,_0x1da6ed]),_0x25ed3f=_0x5c672b(()=>_0x2f5cf3(_0x8d6a08[_0x49f9f(0x2ea)](_0x468342=>({..._0x468342,'label':_0x57c118['t'](xa(_0x468342[_0x49f9f(0x2fb)]))}))),[_0x57c118]);return _0x5628d9(_0x4f5736,{'chartUIService':_0x2fa628,'hostAdapter':_0x2cf70e,'children':_0x2fa798(_0x49f9f(0x334),{'data-dashboard-chart-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x57c118['t'](_0x49f9f(0x142)),'className':_0x49f9f(0x3c9),'items':[{'label':_0x57c118['t']('bases-dashboard-ui.chart.common.setup'),'panelId':'dashboard-chart-setup','value':_0x389329[_0x49f9f(0xf0)]},{'label':_0x57c118['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x49f9f(0x358),'value':_0x389329[_0x49f9f(0x2c8)]}],'value':_0x5825e1,'onChange':_0x1b34a3}),_0x5825e1===_0x389329[_0x49f9f(0xf0)]?_0x5628d9(_0x59879a,{'id':_0x49f9f(0x22c),'label':_0x57c118['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x2fa798('div',{'className':_0x49f9f(0x36c),'children':[_0x5628d9(_0x3352ce,{'options':_0x25ed3f}),_0x5628d9(_0x53d74e,{}),_0x5628d9(_0x3aee5e,{}),_0x5628d9(ga,{}),_0x5628d9(_0x1ed3a5,{}),_0x2fa798(_0x49f9f(0x334),{'children':[_0x5628d9(_0x30e809,{'title':_0x57c118['t'](_0x49f9f(0xab))}),_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':_0x5f26be}),_0x5628d9(_0x101ca4,{'className':'univer-mt-2\x20univer-w-full','onClick':_0x3872d4,'children':_0x57c118['t'](_0x49f9f(0x1ff))})]})]})}):_0x5628d9(_0x59879a,{'id':_0x49f9f(0x358),'label':_0x57c118['t'](_0x49f9f(0x15b)),'children':_0x5628d9(_a,{})})]})});}function xa(_0x5e56b6){const _0x11cb06=_0x5d48da;return _0x11cb06(0x36a)+_0x5e56b6;}const Sa=[_0x5d48da(0x308),_0x5d48da(0x31b),_0x5d48da(0x228),'currency',_0x5d48da(0xa5),_0x5d48da(0xbd)];function Ca({base:_0x183954,onChange:_0x4c6cc4,onSelectBackgroundImage:_0x1f92a0,widget:_0x4ec832}){const _0x119591=_0x5d48da;var _0x371262;let _0x3dfa37=_0x40463f(_0x1ecd96),_0x15eddc=_0x40463f(_0x56b689),_0x213c18=_0x5056f6(()=>_0x15eddc[_0x119591(0x137)],_0x15eddc['getCurrentTheme'](),!0x1,[_0x15eddc]),_0x44ea35=_0x5056f6(()=>_0x15eddc[_0x119591(0x227)],_0x15eddc[_0x119591(0x355)],!0x1,[_0x15eddc]),[_0x343dbe,_0x31d178]=_0x4ebd7a(_0x119591(0x373)),[_0x37d69e,_0x389c4b]=_0x4ebd7a(!0x1),_0x4043d0=Cr(_0x4ec832),_0x37c41f=_0x183954[_0x119591(0x3e8)]()['tables'][_0x4ec832[_0x119591(0x9d)]],_0xb78604=_0x37c41f==null?void 0x0:_0x37c41f['viewOrder'][_0x119591(0x153)](_0x1194e4=>_0x37c41f['views'][_0x1194e4]),_0x2b6add=_0xb78604?_0x37c41f==null?void 0x0:_0x37c41f[_0x119591(0x2eb)][_0xb78604]:void 0x0,_0x197da3=_0x37c41f&&_0x2b6add?_0x372e38(_0x183954[_0x119591(0x3e8)](),_0x37c41f,_0x2b6add)[_0x119591(0x2ea)](_0x1a6aa7=>({..._0x1a6aa7,'current':!0x1})):[],_0x2e4649=((_0x371262=_0x4ec832[_0x119591(0x27e)][_0x119591(0x3cb)])==null?void 0x0:_0x371262[_0x119591(0x2ad)])??'',_0x32e02f=_0x172edf=>_0x4c6cc4(wr(_0x4ec832,_0x172edf))[_0x119591(0x26d)](()=>void 0x0),_0x52f79a=_0x420a8d=>_0x4c6cc4({..._0x4ec832,'description':_0x420a8d})['catch'](()=>void 0x0);return _0x2fa798('div',{'data-dashboard-formula-inspector':!0x0,'className':_0x119591(0x34b),'children':[_0x5628d9(_0x18f25a,{'className':_0x119591(0x313),'items':[{'value':'data','label':_0x3dfa37['t'](_0x119591(0x203))},{'value':_0x119591(0x36b),'label':_0x3dfa37['t'](_0x119591(0x369))}],'value':_0x343dbe,'onChange':_0x31d178}),_0x5628d9(_0x119591(0x334),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0x343dbe===_0x119591(0x373)?_0x2fa798(_0x119591(0x334),{'className':'univer-grid\x20univer-gap-4','children':[_0x5628d9(wa,{'label':_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.description'),'children':_0x5628d9(_0x5d579d,{'value':_0x4ec832[_0x119591(0x16e)]??_0x4ec832[_0x119591(0xbc)]??'','onChange':_0x52f79a,'onBlur':_0x2c5a66=>_0x52f79a(_0x2c5a66[_0x119591(0x320)]['value'])})}),_0x5628d9(wa,{'label':_0x3dfa37['t'](_0x119591(0xab)),'children':_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':(_0x37c41f==null?void 0x0:_0x37c41f[_0x119591(0x3d7)])??_0x3dfa37['t'](_0x119591(0x1bb))})}),_0x2fa798(wa,{'label':_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.formula'),'children':[_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':_0x196177(_0x2e4649,_0x197da3)}),_0x5628d9(_0x101ca4,{'className':_0x119591(0xd1),'onClick':()=>_0x389c4b(!0x0),'children':_0x3dfa37['t'](_0x119591(0x333))})]})]}):_0x2fa798(_0x119591(0x334),{'className':'univer-grid\x20univer-gap-4','children':[_0x5628d9(_0x209a9d,{'emptyLabel':_0x3dfa37['t'](_0x119591(0x3b9)),'label':_0x3dfa37['t'](_0x119591(0x3b9)),'pickerFallbackValue':_0x44ea35?_0x213c18[_0x119591(0x14a)][0x384]:_0x213c18['gray'][0x0],'resetLabel':_0x3dfa37['t'](_0x119591(0x23f)),'value':_0x4043d0[_0x119591(0x2e5)]??null,'onChange':_0x2d9490=>_0x32e02f({'backgroundColor':_0x2d9490??void 0x0})}),_0x2fa798(wa,{'label':_0x3dfa37['t'](_0x119591(0x38d)),'children':[_0x2fa798(_0x119591(0x334),{'className':_0x119591(0x316),'children':[_0x2fa798(_0x101ca4,{'className':_0x119591(0x3c7),'onClick':()=>{const _0x314567=_0x119591;_0x1f92a0()['then'](_0x47446f=>{const _0x499a90=_0x187c;if(_0x47446f){var _0x29a41b;return _0x32e02f({'backgroundImage':{..._0x47446f,'fit':((_0x29a41b=_0x4043d0['backgroundImage'])==null?void 0x0:_0x29a41b[_0x499a90(0x1f3)])??_0x499a90(0x15c)}});}})[_0x314567(0x26d)](()=>void 0x0);},'children':[_0x5628d9(_0x4f1759,{}),_0x4043d0['backgroundImage']?_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.replaceImage'):_0x3dfa37['t'](_0x119591(0x158))]}),_0x4043d0[_0x119591(0x33c)]&&_0x5628d9(_0x101ca4,{'aria-label':_0x3dfa37['t'](_0x119591(0xe4)),'title':_0x3dfa37['t'](_0x119591(0xe4)),'onClick':()=>_0x32e02f({'backgroundImage':void 0x0}),'children':_0x5628d9(_0x275aa7,{})})]}),_0x4043d0['backgroundImage']&&_0x5628d9(_0x18f25a,{'className':_0x119591(0xd9),'items':[{'value':_0x119591(0x15c),'label':_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x119591(0x2f4),'label':_0x3dfa37['t'](_0x119591(0x1cc))}],'value':_0x4043d0[_0x119591(0x33c)][_0x119591(0x1f3)],'onChange':_0x4e52bc=>_0x32e02f({'backgroundImage':_0x4043d0[_0x119591(0x33c)]?{..._0x4043d0[_0x119591(0x33c)],'fit':_0x4e52bc}:void 0x0})})]}),_0x5628d9(_0x209a9d,{'emptyLabel':_0x3dfa37['t'](_0x119591(0x37a)),'label':_0x3dfa37['t'](_0x119591(0x37a)),'pickerFallbackValue':_0x44ea35?_0x213c18[_0x119591(0x14a)][0x32]:_0x213c18[_0x119591(0x14a)][0x3e8],'resetLabel':_0x3dfa37['t'](_0x119591(0x23f)),'value':_0x4043d0[_0x119591(0x13d)]??null,'onChange':_0x62dff2=>_0x32e02f({'textColor':_0x62dff2??void 0x0})}),_0x5628d9(wa,{'label':_0x3dfa37['t'](_0x119591(0x281)),'children':_0x5628d9(_0x18f25a,{'items':[{'value':_0x119591(0x269),'label':_0x3dfa37['t'](_0x119591(0xb0))},{'value':_0x119591(0x38c),'label':_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0x119591(0x39f),'label':_0x3dfa37['t'](_0x119591(0x363))}],'value':_0x4043d0['alignment'],'onChange':_0x40a36f=>_0x32e02f({'alignment':_0x40a36f})})}),_0x2fa798(wa,{'label':_0x3dfa37['t'](_0x119591(0x102)),'children':[_0x5628d9(_0x18f25a,{'items':[{'value':_0x119591(0x1eb),'label':_0x3dfa37['t'](_0x119591(0xcc))},{'value':'custom','label':_0x3dfa37['t'](_0x119591(0x133))}],'value':_0x4043d0['fontSizeMode'],'onChange':_0x16e9c6=>_0x32e02f({'fontSizeMode':_0x16e9c6})}),_0x4043d0[_0x119591(0x27d)]===_0x119591(0x2ec)&&_0x5628d9(_0x57c888,{'className':_0x119591(0xd9),'min':0xc,'max':0x78,'value':_0x4043d0[_0x119591(0x268)],'onChange':_0xeb395d=>_0x32e02f({'fontSize':_0xeb395d??0x28,'fontSizeMode':'custom'})})]}),_0x5628d9(wa,{'label':_0x3dfa37['t'](_0x119591(0x3c3)),'children':_0x5628d9(_0x701e3d,{'value':_0x4043d0[_0x119591(0x371)],'options':[{'value':_0x119591(0x308),'label':_0x3dfa37['t'](_0x119591(0x1be))},{'value':_0x119591(0x31b),'label':_0x3dfa37['t'](_0x119591(0x3c5))},{'value':_0x119591(0x228),'label':_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.percent')},{'value':_0x119591(0x1b3),'label':_0x3dfa37['t'](_0x119591(0x325))},{'value':'grouped','label':_0x3dfa37['t'](_0x119591(0x175))},{'value':_0x119591(0xbd),'label':_0x3dfa37['t'](_0x119591(0x10e))}],'onChange':_0x380797=>{const _0x53bd3a=_0x119591;let _0x4bb652=Sa[_0x53bd3a(0x153)](_0x199a92=>_0x199a92===_0x380797);_0x4bb652&&_0x32e02f({'numberFormat':_0x4bb652});}})}),_0x4043d0[_0x119591(0x371)]===_0x119591(0x1b3)&&_0x5628d9(wa,{'label':_0x3dfa37['t'](_0x119591(0x130)),'children':_0x5628d9(_0x5d579d,{'value':_0x4043d0[_0x119591(0x1b3)],'onChange':_0x4f6a5d=>_0x32e02f({'currency':_0x4f6a5d[_0x119591(0x165)](0x0,0x3)[_0x119591(0x26a)]()})})}),_0x4043d0[_0x119591(0x371)]!==_0x119591(0x308)&&_0x5628d9(wa,{'label':_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.decimalPlaces'),'children':_0x5628d9(_0x57c888,{'min':0x0,'max':0x8,'value':_0x4043d0[_0x119591(0xc9)],'onChange':_0x58d4f5=>_0x32e02f({'decimalPlaces':_0x58d4f5??0x0})})})]})}),_0x37d69e&&_0x5628d9(_0x4ce712,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x5628d9(_0x6c795b,{'tables':_0x197da3,'formula':_0x196177(_0x2e4649,_0x197da3),'onCancel':()=>_0x389c4b(!0x1),'onSave':_0x3d8e8e=>{const _0x641d26=_0x119591;let _0x4d61eb=_0x4ec832[_0x641d26(0x27e)][_0x641d26(0x3cb)]??{'formula':''};return _0x4c6cc4({..._0x4ec832,'shapeData':{..._0x4ec832[_0x641d26(0x27e)],'formulaBinding':{..._0x4d61eb,'formula':_0x43ca80(_0x3d8e8e,_0x197da3)}}})[_0x641d26(0xa4)](()=>_0x389c4b(!0x1))[_0x641d26(0x26d)](()=>void 0x0);}})})]});}function wa({children:_0x46214d,label:_0x5bc1e6}){const _0x2129c8=_0x5d48da;return _0x2fa798('div',{'role':_0x2129c8(0x350),'aria-label':_0x5bc1e6,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x5628d9(_0x2129c8(0x339),{'children':_0x5bc1e6}),_0x46214d]});}const Ta={[_0x462609['IS']]:_0x5d48da(0x124),[_0x462609[_0x5d48da(0x29a)]]:_0x5d48da(0x192),[_0x462609[_0x5d48da(0xa6)]]:_0x5d48da(0x3e6),[_0x462609['NOT_CONTAINS']]:_0x5d48da(0x1e3),[_0x462609['IS_EMPTY']]:_0x5d48da(0x3cc),[_0x462609[_0x5d48da(0x168)]]:_0x5d48da(0xc5),[_0x462609['GREATER_THAN']]:_0x5d48da(0x376),[_0x462609[_0x5d48da(0x3a9)]]:'bases-dashboard-ui.operators.greaterThanOrEqual',[_0x462609[_0x5d48da(0x2d4)]]:_0x5d48da(0x1c6),[_0x462609[_0x5d48da(0x352)]]:_0x5d48da(0x2be),[_0x462609[_0x5d48da(0x3dd)]]:_0x5d48da(0x28e),[_0x462609[_0x5d48da(0x351)]]:_0x5d48da(0x190)};function Ea({disabled:_0x5d937b,fields:_0x1d3bc3,filter:_0x330a62,onChange:_0x57b3d2}){const _0x4f5d6d=_0x5d48da;let _0x43665b=_0x40463f(_0x1ecd96),_0xd00d48=(_0x330a62==null?void 0x0:_0x330a62['conditions'])??[];return _0xd00d48[_0x4f5d6d(0x193)]?_0x5628d9('div',{'className':_0x4f5d6d(0x1ec),'children':_0xd00d48[_0x4f5d6d(0x2ea)]((_0x4b9b89,_0x2ea1cb)=>{const _0x1a9055=_0x4f5d6d;let _0x3e212a=_0x1d3bc3[_0x1a9055(0x153)](_0x1b0360=>_0x1b0360['id']===_0x4b9b89[_0x1a9055(0x221)]);return _0x2fa798(_0x1a9055(0x334),{'className':_0x1a9055(0x2ae),'children':[_0x2fa798(_0x1a9055(0x334),{'className':_0x1a9055(0xad),'children':[_0x5628d9(_0x1a9055(0x339),{'className':_0x1a9055(0x3b6),'children':(_0x3e212a==null?void 0x0:_0x3e212a[_0x1a9055(0x3d7)])??_0x4b9b89['fieldId']}),_0x5628d9(_0x1a9055(0x339),{'className':_0x1a9055(0x181),'children':_0x43665b['t'](Ta[_0x4b9b89[_0x1a9055(0x230)]])})]}),Pa(_0x4b9b89[_0x1a9055(0x230)])&&_0x5628d9(Oa,{'disabled':_0x5d937b,'field':_0x3e212a,'value':_0x4b9b89[_0x1a9055(0x2d6)],'onChange':_0xf99018=>_0x57b3d2(ja(_0x330a62,_0x2ea1cb,{'operand':_0xf99018}))})]},La(_0xd00d48,_0x4b9b89,_0x2ea1cb));})}):_0x2fa798(_0x4f5d6d(0x334),{'className':_0x4f5d6d(0x2b4),'children':[_0x5628d9(_0x266672,{'className':_0x4f5d6d(0x34e)}),_0x5628d9(_0x4f5d6d(0x339),{'className':'univer-text-sm','children':_0x43665b['t']('bases-dashboard-ui.dashboard.tableFilter')})]});}function Da({fields:_0x3142fc,filter:_0x2f2ab0,onChange:_0x35b9d6,onClear:_0x4478a2}){const _0x19f4c1=_0x5d48da;let _0xcb8f59=_0x40463f(_0x1ecd96),_0x78b6cc=(_0x2f2ab0==null?void 0x0:_0x2f2ab0[_0x19f4c1(0x32c)])??[];return _0x2fa798(_0x19f4c1(0x334),{'data-dashboard-filter-inspector':!0x0,'className':_0x19f4c1(0xbb),'children':[_0x78b6cc['map']((_0x58f70f,_0x595404)=>{const _0x2d7008=_0x19f4c1;let _0x4f38d0=_0x3142fc['find'](_0x2bc1ef=>_0x2bc1ef['id']===_0x58f70f[_0x2d7008(0x221)])??_0x3142fc[0x0],_0x59ce63=Ma(_0x4f38d0);return _0x2fa798(_0x2d7008(0x111),{'className':_0x2d7008(0x145),'children':[_0x2fa798('div',{'className':_0x2d7008(0x2d9),'children':[_0x5628d9(_0x701e3d,{'value':_0x58f70f[_0x2d7008(0x221)],'options':_0x3142fc[_0x2d7008(0x2ea)](_0x4bd7d5=>({'value':_0x4bd7d5['id'],'label':_0x4bd7d5[_0x2d7008(0x3d7)]})),'onChange':_0x1e2b6c=>{const _0x359f89=_0x2d7008;let _0x5dcd66=_0x3142fc[_0x359f89(0x153)](_0x321627=>_0x321627['id']===_0x1e2b6c);if(!_0x5dcd66)return;let _0x48f377=Ma(_0x5dcd66)[0x0];_0x35b9d6(ja(_0x2f2ab0,_0x595404,Aa(_0x5dcd66,_0x48f377)));}}),_0x5628d9(_0x101ca4,{'type':'button','variant':_0x2d7008(0x2e2),'aria-label':_0xcb8f59['t']('bases-dashboard-ui.dashboardInspector.delete'),'className':_0x2d7008(0x169),'onClick':()=>_0x35b9d6(ka(_0x2f2ab0,_0x78b6cc[_0x2d7008(0x122)]((_0x5cec7a,_0x3d0ea4)=>_0x3d0ea4!==_0x595404))),'children':_0x5628d9(_0x1ab83b,{})})]}),_0x5628d9(_0x701e3d,{'value':_0x58f70f['operator'],'options':_0x59ce63[_0x2d7008(0x2ea)](_0x2d0357=>({'value':_0x2d0357,'label':_0xcb8f59['t'](Ta[_0x2d0357])})),'onChange':_0x428f11=>{const _0x2e0b34=_0x2d7008;let _0x4090bc=_0x59ce63[_0x2e0b34(0x153)](_0x534b61=>_0x534b61===_0x428f11);_0x4090bc&&_0x35b9d6(ja(_0x2f2ab0,_0x595404,{'operator':_0x4090bc,'operand':Na(_0x4f38d0)}));}}),Pa(_0x58f70f['operator'])&&_0x5628d9(Oa,{'field':_0x4f38d0,'value':_0x58f70f[_0x2d7008(0x2d6)],'onChange':_0x5f3c28=>_0x35b9d6(ja(_0x2f2ab0,_0x595404,{'operand':_0x5f3c28}))})]},La(_0x78b6cc,_0x58f70f,_0x595404));}),_0x2fa798(_0x101ca4,{'type':_0x19f4c1(0x11f),'variant':_0x19f4c1(0x2e2),'className':_0x19f4c1(0xd2),'disabled':!_0x3142fc['length'],'onClick':()=>{let _0x3b51f2=_0x3142fc[0x0];if(!_0x3b51f2)return;let _0x22a610=Ma(_0x3b51f2)[0x0];_0x35b9d6(ka(_0x2f2ab0,[..._0x78b6cc,Aa(_0x3b51f2,_0x22a610)]));},'children':[_0x5628d9(_0x4f1759,{}),_0xcb8f59['t']('bases-dashboard-ui.dashboardInspector.newCondition')]}),_0x78b6cc[_0x19f4c1(0x193)]>0x0&&_0x5628d9(_0x101ca4,{'type':_0x19f4c1(0x11f),'variant':'text','className':_0x19f4c1(0x23b),'onClick':_0x4478a2,'children':_0xcb8f59['t']('bases-dashboard-ui.dashboardInspector.clear')})]});}function Oa({disabled:_0xeb0dc,field:_0x16b38f,onChange:_0x3a03f0,value:_0x51d1ac}){const _0x529cc4=_0x5d48da;let _0x2401e7=_0x40463f(_0x1ecd96),[_0x3edc1a,_0xb7e071]=_0x4ebd7a({'value':_0x51d1ac,'text':String(_0x51d1ac??'')});Object['is'](_0x3edc1a[_0x529cc4(0x32d)],_0x51d1ac)||_0xb7e071({'value':_0x51d1ac,'text':String(_0x51d1ac??'')});let _0x3b0170=_0x3edc1a['text'],_0x56af6b=_0x112757=>_0xb7e071({'value':_0x51d1ac,'text':_0x112757}),_0x6e65c8=_0x16b38f==null?void 0x0:_0x16b38f[_0x529cc4(0x278)];if(_0x6e65c8===_0x3bfbe2[_0x529cc4(0x2dd)]){let _0xc704e9=_0x51d1ac===!0x0||_0x51d1ac===_0x529cc4(0x1da);return _0x2fa798(_0x101ca4,{'type':_0x529cc4(0x11f),'variant':'default','disabled':_0xeb0dc,'className':'univer-w-full\x20univer-justify-start','onClick':()=>_0x3a03f0(!_0xc704e9),'children':[_0x5628d9(_0x57ed34,{'checked':_0xc704e9,'disabled':_0xeb0dc,'onChange':()=>void 0x0}),_0xc704e9?_0x2401e7['t'](_0x529cc4(0xcf)):_0x2401e7['t']('bases-dashboard-ui.dashboardInspector.unchecked')]});}return Ra(_0x6e65c8)?_0xeb0dc?_0x5628d9(_0x101ca4,{'type':'button','variant':_0x529cc4(0x18c),'className':'univer-w-full','disabled':!0x0,'children':_0x3276ff(_0x51d1ac==null||_0x51d1ac===''?void 0x0:String(_0x51d1ac))[_0x529cc4(0x231)](_0x529cc4(0x155))}):_0x5628d9(_0x485a77,{'className':_0x529cc4(0x23b),'value':_0x3276ff(_0x51d1ac==null||_0x51d1ac===''?void 0x0:String(_0x51d1ac))[_0x529cc4(0x149)](),'onValueChange':_0x4e86d5=>_0x3a03f0(_0x3276ff(_0x4e86d5)['format'](_0x529cc4(0x155)))}):Ba(_0x16b38f)?_0x5628d9(_0x5ca0fb,{'className':'univer-w-full','disabled':_0xeb0dc,'value':Array[_0x529cc4(0x11e)](_0x51d1ac)?_0x51d1ac[_0x529cc4(0x2ea)](String):[],'options':Fa(_0x16b38f),'onChange':_0x3a03f0}):_0x6e65c8===_0x3bfbe2[_0x529cc4(0x329)]||_0x6e65c8===_0x3bfbe2[_0x529cc4(0xbe)]||_0x6e65c8===_0x3bfbe2['Person']?_0x5628d9(_0x701e3d,{'className':_0x529cc4(0x23b),'disabled':_0xeb0dc,'value':String(_0x51d1ac??''),'options':[{'value':'','label':_0x2401e7['t'](_0x529cc4(0x258))},...Fa(_0x16b38f)],'onChange':_0x3a03f0}):za(_0x6e65c8)?_0x5628d9(_0x5d579d,{'className':_0x529cc4(0x23b),'disabled':_0xeb0dc,'inputMode':_0x529cc4(0x1a6),'value':_0x3b0170,'aria-invalid':_0x3b0170!==''&&!Number[_0x529cc4(0x206)](Number(_0x3b0170)),'onChange':_0x3e1ce9=>{_0x56af6b(_0x3e1ce9),_0x3e1ce9===''?_0x3a03f0(''):Number['isFinite'](Number(_0x3e1ce9))&&_0x3a03f0(Number(_0x3e1ce9));},'onBlur':()=>_0x56af6b(String(_0x51d1ac??''))}):_0x5628d9(_0x5d579d,{'disabled':_0xeb0dc,'value':String(_0x51d1ac??''),'placeholder':_0x2401e7['t'](_0x529cc4(0x3be)),'onChange':_0x3a03f0});}function ka(_0x41c18c,_0x5c13f6){const _0x155ffe=_0x5d48da;return{'conjunction':(_0x41c18c==null?void 0x0:_0x41c18c['conjunction'])??_0x26ccb5[_0x155ffe(0x2f5)],'conditions':_0x5c13f6};}function Aa(_0x18dee5,_0x92364d){return Pa(_0x92364d)?{'fieldId':_0x18dee5['id'],'operator':_0x92364d,'operand':Na(_0x18dee5)}:{'fieldId':_0x18dee5['id'],'operator':_0x92364d};}function ja(_0x2325a7,_0x5b8348,_0x3edc47){const _0x27e036=_0x5d48da;return ka(_0x2325a7,((_0x2325a7==null?void 0x0:_0x2325a7[_0x27e036(0x32c)])??[])[_0x27e036(0x2ea)]((_0x31c4eb,_0x4fd57d)=>_0x4fd57d===_0x5b8348?{..._0x31c4eb,..._0x3edc47}:_0x31c4eb));}function Ma(_0x582bc2){const _0x14b035=_0x5d48da;let _0x34f399=[_0x462609['IS_EMPTY'],_0x462609['IS_NOT_EMPTY']];switch(_0x582bc2==null?void 0x0:_0x582bc2[_0x14b035(0x278)]){case _0x3bfbe2[_0x14b035(0x14f)]:case _0x3bfbe2[_0x14b035(0x2d5)]:case _0x3bfbe2[_0x14b035(0x38a)]:case _0x3bfbe2[_0x14b035(0x393)]:return[_0x462609['IS'],_0x462609['IS_NOT'],_0x462609['GREATER_THAN'],_0x462609[_0x14b035(0x2d4)],..._0x34f399];case _0x3bfbe2[_0x14b035(0x3ba)]:case _0x3bfbe2[_0x14b035(0x302)]:case _0x3bfbe2[_0x14b035(0x307)]:return[_0x462609['IS'],_0x462609[_0x14b035(0x29a)],_0x462609[_0x14b035(0x3dd)],_0x462609['AFTER'],..._0x34f399];case _0x3bfbe2[_0x14b035(0x2dd)]:return[_0x462609['IS'],_0x462609[_0x14b035(0x29a)]];default:return[_0x462609['IS'],_0x462609[_0x14b035(0x29a)],_0x462609[_0x14b035(0xa6)],_0x462609['NOT_CONTAINS'],..._0x34f399];}}function Na(_0x57db6c){const _0xf136db=_0x5d48da;return _0x57db6c?_0x57db6c['type']===_0x3bfbe2[_0xf136db(0x2dd)]?!0x1:Ra(_0x57db6c['type'])?_0x3276ff()[_0xf136db(0x231)](_0xf136db(0x155)):Ba(_0x57db6c)?[]:'':'';}function Pa(_0x2a3ca2){const _0x27cead=_0x5d48da;return _0x2a3ca2!==_0x462609[_0x27cead(0x176)]&&_0x2a3ca2!==_0x462609[_0x27cead(0x168)];}function Fa(_0x1ba98d){const _0x4e843a=_0x5d48da;var _0x26e078;return(Array[_0x4e843a(0x11e)](_0x1ba98d==null||(_0x26e078=_0x1ba98d[_0x4e843a(0xa7)])==null?void 0x0:_0x26e078[_0x4e843a(0x2a1)])?_0x1ba98d[_0x4e843a(0xa7)][_0x4e843a(0x2a1)]:[])[_0x4e843a(0x2ea)]((_0x48d6d7,_0x46f924)=>{if(typeof _0x48d6d7=='string')return{'label':_0x48d6d7,'value':_0x48d6d7};if(!Ia(_0x48d6d7))return{'label':String(_0x46f924+0x1),'value':String(_0x46f924+0x1)};let _0x46b266=_0x48d6d7,_0x467670=String(_0x46b266['name']??_0x46b266['id']??_0x46f924+0x1),_0x378ee5=String(_0x46b266['id']??_0x467670);return{'label':_0x467670,'value':/^opt-\d+$/['test'](_0x378ee5)?_0x467670:_0x378ee5};});}function Ia(_0x151e41){return typeof _0x151e41=='object'&&!!_0x151e41;}function La(_0x406e71,_0x5453d4,_0x4624bd){const _0x327c73=_0x5d48da;let _0x505bab=JSON[_0x327c73(0x3c1)](_0x5453d4);return _0x505bab+'-'+_0x406e71[_0x327c73(0x165)](0x0,_0x4624bd)[_0x327c73(0x122)](_0x5cf6cc=>JSON[_0x327c73(0x3c1)](_0x5cf6cc)===_0x505bab)[_0x327c73(0x193)];}function Ra(_0x504570){const _0xca6c9e=_0x5d48da;return _0x504570===_0x3bfbe2['Date']||_0x504570===_0x3bfbe2['CreatedAt']||_0x504570===_0x3bfbe2[_0xca6c9e(0x307)];}function za(_0x28849e){const _0xc9bf12=_0x5d48da;return _0x28849e===_0x3bfbe2[_0xc9bf12(0x14f)]||_0x28849e===_0x3bfbe2[_0xc9bf12(0x2d5)]||_0x28849e===_0x3bfbe2[_0xc9bf12(0x38a)]||_0x28849e===_0x3bfbe2['Rating'];}function Ba(_0x480a27){const _0x300773=_0x5d48da;var _0xfd4b4f;return(_0x480a27==null?void 0x0:_0x480a27[_0x300773(0x278)])===_0x3bfbe2[_0x300773(0x20b)]||(_0x480a27==null?void 0x0:_0x480a27[_0x300773(0x278)])===_0x3bfbe2[_0x300773(0xbe)]||(_0x480a27==null?void 0x0:_0x480a27[_0x300773(0x278)])===_0x3bfbe2[_0x300773(0x298)]&&((_0xfd4b4f=_0x480a27[_0x300773(0xa7)])==null?void 0x0:_0xfd4b4f['allowMultiple'])===!0x0;}function Va({base:_0x5747c8,chartRuntime:_0x4570d4,onChange:_0x245905,onClose:_0x3734db,onSelectBackgroundImage:_0x4813fb,onSelectImage:_0x1faefb,unitId:_0x482c3e,widget:_0x3b6108}){const _0x22c92f=_0x5d48da;let _0x347822=_0x40463f(_0x1e6f93),_0x241ab6=_0x40463f(_0x1ecd96),_0x559385=_0x5747c8['getSnapshot'](),_0x19b0e7=_0x22c92f(0x9d)in _0x3b6108?_0x559385[_0x22c92f(0x3b5)][_0x3b6108[_0x22c92f(0x9d)]]:void 0x0,_0x37906a=_0x3b6108[_0x22c92f(0x278)]===_0x4dd1ab['PivotChart']?_0x19b0e7==null?void 0x0:_0x19b0e7[_0x22c92f(0x2eb)][_0x3b6108[_0x22c92f(0x260)]]:void 0x0,_0x523552=_0x241ab6['t'](Ja(_0x3b6108));return _0x2fa798(_0x22c92f(0x3da),{'data-dashboard-inspector':!0x0,'className':_0x22c92f(0x304),'children':[_0x2fa798(_0x22c92f(0x148),{'className':_0x22c92f(0x180),'children':[_0x5628d9('h3',{'className':_0x22c92f(0x327),'children':_0x523552}),_0x5628d9(_0x101ca4,{'type':_0x22c92f(0x11f),'size':_0x22c92f(0x147),'variant':_0x22c92f(0x2e2),'aria-label':_0x241ab6['t'](_0x22c92f(0x17b)),'onClick':_0x3734db,'children':_0x5628d9(_0x1ab83b,{})})]}),_0x3b6108['type']===_0x4dd1ab[_0x22c92f(0x173)]&&(qa(_0x37906a)&&_0x4570d4?_0x5628d9(ba,{'runtime':_0x4570d4,'sourceChart':_0x37906a[_0x22c92f(0xa7)][_0x22c92f(0x204)],'sourceName':((_0x19b0e7==null?void 0x0:_0x19b0e7[_0x22c92f(0x3d7)])??'')+_0x22c92f(0x2a5)+_0x37906a[_0x22c92f(0x3d7)],'widget':_0x3b6108,'onChange':_0x245905,'onEditData':()=>{const _0x3352f8=_0x22c92f;_0x347822[_0x3352f8(0x3e3)](_0x166344['id'],{'unitId':_0x482c3e,'tableId':_0x3b6108[_0x3352f8(0x9d)],'viewId':_0x3b6108[_0x3352f8(0x260)]})[_0x3352f8(0x26d)](()=>void 0x0);}}):_0x5628d9(Ga,{'message':qa(_0x37906a)?_0x241ab6['t']('bases-dashboard-ui.dashboardInspector.loading'):_0x241ab6['t'](_0x22c92f(0x1bb))})),_0x3b6108['type']===_0x4dd1ab[_0x22c92f(0x2c2)]&&_0x5628d9(Ca,{'base':_0x5747c8,'widget':_0x3b6108,'onChange':_0x245905,'onSelectBackgroundImage':_0x4813fb}),_0x3b6108['type']===_0x4dd1ab['TableFilter']&&_0x5628d9(Ua,{'base':_0x5747c8,'onChange':_0x245905,'widget':_0x3b6108}),_0x3b6108[_0x22c92f(0x278)]===_0x4dd1ab['Text']&&_0x5628d9(Wa,{'onChange':_0x245905,'widget':_0x3b6108}),_0x3b6108['type']===_0x4dd1ab[_0x22c92f(0x3c0)]&&_0x5628d9(Ha,{'onChange':_0x245905,'onSelectImage':_0x1faefb,'widget':_0x3b6108})]});}function Ha({onChange:_0x1f483f,onSelectImage:_0x12d8f7,widget:_0x5686c9}){const _0x3d97c2=_0x5d48da;let _0x3fc926=_0x40463f(_0x1ecd96);return _0x2fa798(_0x3d97c2(0x334),{'className':_0x3d97c2(0x195),'children':[_0x2fa798(_0x101ca4,{'className':_0x3d97c2(0x23b),'onClick':()=>_0x12d8f7()[_0x3d97c2(0xa4)](_0xce622d=>_0xce622d&&_0x1f483f({..._0x5686c9,'source':_0xce622d[_0x3d97c2(0x136)],'sourceType':_0xce622d[_0x3d97c2(0xa8)],'alt':_0xce622d[_0x3d97c2(0x3d7)]}))['catch'](()=>void 0x0),'children':[_0x5628d9(_0x4f1759,{}),_0x3fc926['t'](_0x3d97c2(0x16d))]}),_0x2fa798(_0x3d97c2(0x249),{'className':_0x3d97c2(0x127),'children':[_0x5628d9(_0x3d97c2(0x339),{'children':_0x3fc926['t']('bases-dashboard-ui.dashboardInspector.backgroundImage')}),_0x5628d9(_0x18f25a,{'items':[{'value':_0x3d97c2(0x15c),'label':_0x3fc926['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x3d97c2(0x2a3),'label':_0x3fc926['t'](_0x3d97c2(0x10c))},{'value':_0x3d97c2(0x25a),'label':_0x3fc926['t'](_0x3d97c2(0xc2))}],'value':_0x5686c9[_0x3d97c2(0x31a)]??_0x3d97c2(0x15c),'onChange':_0x2966ef=>_0x1f483f({..._0x5686c9,'displayMode':_0x2966ef})[_0x3d97c2(0x26d)](()=>void 0x0)})]})]});}function Ua({base:_0x3d2cdf,onChange:_0x309766,widget:_0x55045c}){const _0x6d14f3=_0x5d48da;let _0x1beba5=_0x3d2cdf[_0x6d14f3(0x3e8)]()[_0x6d14f3(0x3b5)][_0x55045c[_0x6d14f3(0x9d)]],_0x401ff1=_0x1beba5==null?void 0x0:_0x1beba5[_0x6d14f3(0x389)][_0x6d14f3(0x153)](_0x2e8d2f=>_0x1beba5[_0x6d14f3(0x2eb)][_0x2e8d2f]),_0x5bf8df=_0x401ff1?_0x1beba5==null?void 0x0:_0x1beba5[_0x6d14f3(0x2eb)][_0x401ff1]:void 0x0,_0x245d1a=_0x1beba5&&_0x5bf8df?_0x28d476(_0x1beba5,_0x5bf8df):[];return _0x5628d9(Da,{'fields':_0x245d1a,'filter':_0x55045c[_0x6d14f3(0x122)],'onChange':_0x1919db=>_0x309766({..._0x55045c,'filter':_0x1919db})[_0x6d14f3(0x26d)](()=>void 0x0),'onClear':()=>_0x309766({..._0x55045c,'filter':null})[_0x6d14f3(0x26d)](()=>void 0x0)});}function Wa({onChange:_0x25d194,widget:_0x4a2a49}){const _0x23c9e2=_0x5d48da;let _0x5babed=_0x40463f(_0x1ecd96),_0x17bd8b=_0x40463f(_0x56b689),_0x39d6ad=_0x5056f6(()=>_0x17bd8b[_0x23c9e2(0x137)],_0x17bd8b[_0x23c9e2(0x3cf)](),!0x1,[_0x17bd8b]),_0x343320=Hr(_0x4a2a49),_0x3dfa89=_0x28ee09=>_0x25d194({..._0x4a2a49,'appearance':{..._0x343320,..._0x28ee09}})[_0x23c9e2(0x26d)](()=>void 0x0);return _0x2fa798(_0x23c9e2(0x334),{'className':_0x23c9e2(0x285),'children':[_0x5628d9(_0x80dadb,{'defaultValue':Ur(_0x4a2a49['document']),'rows':0x8,'onBlur':_0x3f3413=>_0x25d194({..._0x4a2a49,'document':Wr(_0x4a2a49[_0x23c9e2(0x348)],_0x3f3413[_0x23c9e2(0x320)][_0x23c9e2(0x32d)])})[_0x23c9e2(0x26d)](()=>void 0x0)}),_0x5628d9(_0x209a9d,{'emptyLabel':_0x5babed['t'](_0x23c9e2(0x3b9)),'label':_0x5babed['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x39d6ad[_0x23c9e2(0x14a)][0x0],'resetLabel':_0x5babed['t'](_0x23c9e2(0x23f)),'value':_0x343320[_0x23c9e2(0x2e5)]??null,'onChange':_0x2d94f6=>_0x3dfa89({'backgroundColor':_0x2d94f6??void 0x0})}),_0x5628d9(_0x209a9d,{'emptyLabel':_0x5babed['t'](_0x23c9e2(0x37a)),'label':_0x5babed['t'](_0x23c9e2(0x37a)),'pickerFallbackValue':_0x39d6ad['gray'][0x3e8],'resetLabel':_0x5babed['t'](_0x23c9e2(0x23f)),'value':_0x343320['textColor']??null,'onChange':_0x19a305=>_0x3dfa89({'textColor':_0x19a305??void 0x0})}),_0x5628d9(Ka,{'label':_0x5babed['t'](_0x23c9e2(0x281)),'children':_0x5628d9(_0x18f25a,{'items':[{'value':_0x23c9e2(0x269),'label':_0x5babed['t'](_0x23c9e2(0xb0))},{'value':_0x23c9e2(0x38c),'label':_0x5babed['t'](_0x23c9e2(0x11c))},{'value':_0x23c9e2(0x39f),'label':_0x5babed['t'](_0x23c9e2(0x363))}],'value':_0x343320[_0x23c9e2(0x326)],'onChange':_0x3c3553=>_0x3dfa89({'alignment':_0x3c3553})})}),_0x2fa798(Ka,{'label':_0x5babed['t']('bases-dashboard-ui.dashboardInspector.textSize'),'children':[_0x5628d9(_0x18f25a,{'items':[{'value':_0x23c9e2(0x1eb),'label':_0x5babed['t'](_0x23c9e2(0xcc))},{'value':_0x23c9e2(0x2ec),'label':_0x5babed['t'](_0x23c9e2(0x133))}],'value':_0x343320[_0x23c9e2(0x27d)],'onChange':_0x4229a6=>_0x3dfa89({'fontSizeMode':_0x4229a6})}),_0x343320[_0x23c9e2(0x27d)]==='custom'&&_0x5628d9(_0x57c888,{'className':_0x23c9e2(0xd9),'min':0xa,'max':0x78,'value':_0x343320[_0x23c9e2(0x268)],'onChange':_0x430338=>_0x3dfa89({'fontSize':_0x430338??0x12,'fontSizeMode':'custom'})})]})]});}function Ga({message:_0x326efb}){const _0x4ef60b=_0x5d48da;return _0x5628d9(_0x4ef60b(0x334),{'className':_0x4ef60b(0x16f),'children':_0x326efb});}function Ka({children:_0x1dcedc,label:_0xb75303}){const _0x3f3e24=_0x5d48da;return _0x2fa798(_0x3f3e24(0x334),{'role':_0x3f3e24(0x350),'aria-':!0x0,'className':_0x3f3e24(0x127),'children':[_0x5628d9(_0x3f3e24(0x339),{'children':_0xb75303}),_0x1dcedc]});}function qa(_0x1f6590){const _0x358311=_0x5d48da;return(_0x1f6590==null?void 0x0:_0x1f6590[_0x358311(0x278)])===_0xc74f11[_0x358311(0xe1)]&&typeof _0x1f6590[_0x358311(0xa7)]=='object'&&_0x1f6590[_0x358311(0xa7)]!==null&&_0x358311(0x106)in _0x1f6590[_0x358311(0xa7)]&&'chart'in _0x1f6590['config'];}function Ja(_0x10b327){const _0x15c851=_0x5d48da;switch(_0x10b327[_0x15c851(0x278)]){case _0x4dd1ab[_0x15c851(0x173)]:return _0x15c851(0x1ca);case _0x4dd1ab['TableFilter']:return _0x15c851(0x108);case _0x4dd1ab[_0x15c851(0x1c9)]:return _0x15c851(0x126);case _0x4dd1ab['Image']:return _0x15c851(0x2a4);case _0x4dd1ab[_0x15c851(0x2c2)]:return _0x15c851(0x38b);}}function Ya({onDelete:_0x4baf48,onEdit:_0x1dcbae}){const _0x588c3e=_0x5d48da;let _0x2def2e=_0x40463f(_0x1ecd96),_0x8173bf=_0x2def2e['t'](_0x588c3e(0xe2)),_0x5bbe0a=_0x2def2e['t'](_0x588c3e(0x297)),_0x585ba0=_0x2def2e['t'](_0x588c3e(0x154));return _0x5628d9(_0x56bbe5,{'items':[{'type':_0x588c3e(0x321),'children':_0x2fa798(_0x588c3e(0x339),{'className':_0x588c3e(0x179),'children':[_0x5628d9(_0x1d4ca0,{'className':_0x588c3e(0x3db),'aria-hidden':_0x588c3e(0x1da)}),_0x5628d9(_0x588c3e(0x339),{'children':_0x8173bf})]}),'onSelect':_0x1dcbae},{'type':_0x588c3e(0x1fd)},{'type':'item','variant':_0x588c3e(0x247),'children':_0x2fa798(_0x588c3e(0x339),{'className':_0x588c3e(0x179),'children':[_0x5628d9(_0x275aa7,{'className':_0x588c3e(0x3db),'aria-hidden':_0x588c3e(0x1da)}),_0x5628d9('span',{'children':_0x5bbe0a})]}),'onSelect':_0x4baf48}],'children':_0x5628d9(_0x101ca4,{'type':_0x588c3e(0x11f),'size':_0x588c3e(0x147),'variant':'text','title':_0x585ba0,'aria-label':_0x585ba0,'className':_0x588c3e(0x3a4),'children':_0x5628d9(_0x4093a6,{'className':_0x588c3e(0x3db),'aria-hidden':_0x588c3e(0x1da)})})});}function Xa({dashboardId:_0x2f3d4c,presentation:_0x3d9b0c=!0x1,unitId:_0x378083}){const _0x4b477c=_0x5d48da;let _0x523db1=_0x40463f(_0x1e6f93),_0x3191d2=_0x40463f(_0x5b5322),_0x568d56=_0x40463f(_0x2667ef),_0xe26474=_0x40463f(_0x4829da),_0x499a70=_0x40463f(_0x1ecd96),_0x55c4f3=_0x40463f(_0x3a16be),_0x112ff4=_0x40463f(_0x12718a),_0x10c776=_0x25fc59(null),[_0x401528,_0x267471]=_0x4ebd7a(!0x1),[_0x490473,_0x16ab0f]=_0x4ebd7a(),[_0x2f69d9,_0x4191c8]=_0x4ebd7a(!0x1),[_0x15ff89,_0x131041]=_0x4ebd7a(()=>new Map()),_0x383ef5=_0x26d744((_0x51220f,_0x18f8f4)=>{_0x131041(_0x3e3ff6=>{const _0x481405=_0x187c;let _0x20c694=new Map(_0x3e3ff6);return _0x18f8f4?_0x20c694['set'](_0x51220f,_0x18f8f4):_0x20c694[_0x481405(0x17e)](_0x51220f),_0x20c694;});},[]),_0x3d0e9c=_0x5056f6(()=>_0x55c4f3[_0x4b477c(0x9a)][_0x4b477c(0x209)](_0x51821f(()=>_0x55c4f3['getDashboard'](_0x378083,_0x2f3d4c))),_0x55c4f3[_0x4b477c(0x18b)](_0x378083,_0x2f3d4c),!0x1,[_0x2f3d4c,_0x55c4f3,_0x378083]),_0x1b4a97=_0xe26474['getUnit'](_0x378083,_0x247fc0[_0x4b477c(0x324)]),_0x2dde64=_0x5056f6(()=>_0x112ff4['undoRedoStatus$'],{'undos':0x0,'redos':0x0},!0x1,[_0x112ff4]),_0x222763=vr(_0x378083,_0x2f3d4c);if(_0x185176(()=>{const _0x277ba4=_0x4b477c;_0xe26474[_0x277ba4(0x25c)](_0x378083),_0xe26474['focusUnit'](_0x378083);},[_0xe26474,_0x378083]),_0x185176(()=>{const _0x5f3b60=_0x4b477c;let _0x1a156f=_0x10c776[_0x5f3b60(0xe8)],_0x40bc31=_0x1a156f==null?void 0x0:_0x1a156f[_0x5f3b60(0x253)];if(!_0x1a156f||!_0x40bc31)return;let _0x1225fb=()=>_0x4191c8(_0x40bc31['fullscreenElement']===_0x40bc31[_0x5f3b60(0x2e3)]),_0x4a53d9=_0x4e1a1c=>{const _0x5b3920=_0x5f3b60;_0x4e1a1c[_0x5b3920(0x2d0)]===_0x5b3920(0x13b)&&!_0x4e1a1c[_0x5b3920(0x220)]&&_0x40bc31[_0x5b3920(0x18a)]===_0x40bc31[_0x5b3920(0x2e3)]&&_0x40bc31[_0x5b3920(0x1f7)]()['catch'](_0x1225fb);};return _0x40bc31[_0x5f3b60(0x17a)]('fullscreenchange',_0x1225fb),_0x40bc31['addEventListener'](_0x5f3b60(0x341),_0x4a53d9),()=>{const _0x4b7961=_0x5f3b60;_0x40bc31['removeEventListener'](_0x4b7961(0xaf),_0x1225fb),_0x40bc31[_0x4b7961(0x3df)](_0x4b7961(0x341),_0x4a53d9);};},[]),!_0x3d0e9c||!_0x1b4a97)return null;let _0x31019c=_0x1e9e68=>_0x523db1[_0x4b477c(0x3e3)](_0x1041db['id'],{'unitId':_0x378083,'dashboardId':_0x2f3d4c,'widget':_0x1e9e68})[_0x4b477c(0x26d)](()=>void 0x0),_0x745c26=(_0x2e2aa5,_0x164590,_0x296cbd)=>{const _0x1ceba9=_0x4b477c;let _0x40a702=Math[_0x1ceba9(0x16b)](0x0,..._0x3d0e9c[_0x1ceba9(0x3a0)]['flatMap'](_0x48159c=>{const _0x2a5dfd=_0x1ceba9;var _0x1af889;let _0x336316=(_0x1af889=_0x3d0e9c[_0x2a5dfd(0x1f6)][_0x48159c])==null?void 0x0:_0x1af889[_0x2a5dfd(0x3e1)];return _0x336316?[_0x336316['row']+_0x336316['rowSpan']]:[];})),_0x45c6b3=_0x1ceba9(0x236)+_0x2cedf9(0x8),_0x15c47c={'column':0x0,'row':_0x40a702,'columnSpan':_0x164590,'rowSpan':_0x296cbd};switch(_0x2e2aa5[_0x1ceba9(0x278)]){case _0x4dd1ab[_0x1ceba9(0x173)]:return _0x31019c({..._0x2e2aa5,'id':_0x45c6b3,'layout':_0x15c47c});case _0x4dd1ab[_0x1ceba9(0x296)]:return _0x31019c({..._0x2e2aa5,'id':_0x45c6b3,'layout':_0x15c47c});case _0x4dd1ab[_0x1ceba9(0x1c9)]:return _0x31019c({..._0x2e2aa5,'id':_0x45c6b3,'layout':_0x15c47c});case _0x4dd1ab['Image']:return _0x31019c({..._0x2e2aa5,'id':_0x45c6b3,'layout':_0x15c47c});case _0x4dd1ab['FormulaShape']:return _0x31019c({..._0x2e2aa5,'id':_0x45c6b3,'layout':_0x15c47c});}},_0x5ace19=_0x1b4a97[_0x4b477c(0x3e8)](),_0x45dfdc=_0x5ace19['tableOrder'][_0x4b477c(0x1ac)](_0x594b31=>{const _0xbb35f0=_0x4b477c;let _0x46ae40=_0x5ace19['tables'][_0x594b31];if(!_0x46ae40)return[];let _0x53e0ac=_0x46ae40[_0xbb35f0(0x389)]['flatMap'](_0x3a0c55=>{const _0x55e1c6=_0xbb35f0;let _0x5d3ca6=_0x46ae40[_0x55e1c6(0x2eb)][_0x3a0c55];return io(_0x5d3ca6)?[{'type':'item','children':_0x5d3ca6[_0x55e1c6(0x3d7)],'onSelect':()=>_0x745c26({'type':_0x4dd1ab[_0x55e1c6(0x173)],'tableId':_0x594b31,'pivotViewId':_0x3a0c55,'chart':{..._0x5d3ca6[_0x55e1c6(0xa7)][_0x55e1c6(0x204)]}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0x46ae40[_0xbb35f0(0x3d7)],'options':[..._0x53e0ac,..._0x53e0ac['length']?[{'type':'separator'}]:[],{'type':_0xbb35f0(0x321),'children':_0x499a70['t'](_0xbb35f0(0x108)),'onSelect':()=>_0x745c26({'type':_0x4dd1ab[_0xbb35f0(0x296)],'tableId':_0x594b31,'filter':null},0x6,0x8)}]}];}),_0x1f079a=[..._0x45dfdc,..._0x45dfdc[_0x4b477c(0x193)]?[{'type':_0x4b477c(0x1fd)}]:[],{'type':_0x4b477c(0x321),'children':_0x499a70['t'](_0x4b477c(0x126)),'onSelect':()=>_0x745c26({'type':_0x4dd1ab['Text'],'document':eo()},0x4,0x6)},{'type':_0x4b477c(0x321),'children':_0x499a70['t'](_0x4b477c(0x2a4)),'onSelect':()=>to(_0x3191d2)[_0x4b477c(0xa4)](_0x5765fd=>_0x5765fd&&_0x745c26({'type':_0x4dd1ab[_0x4b477c(0x3c0)],'source':_0x5765fd[_0x4b477c(0x136)],'sourceType':_0x5765fd['sourceType'],'alt':_0x5765fd[_0x4b477c(0x3d7)],'displayMode':'cover'},0x4,0x6))},{'type':'item','children':_0x499a70['t']('bases-dashboard-ui.dashboard.formulaShape'),'onSelect':()=>{const _0x4152d2=_0x4b477c;let _0x5d0242=_0x5ace19[_0x4152d2(0x232)][_0x4152d2(0x153)](_0x2d5ef3=>_0x5ace19[_0x4152d2(0x3b5)][_0x2d5ef3]);_0x5d0242&&_0x745c26({'type':_0x4dd1ab[_0x4152d2(0x2c2)],'tableId':_0x5d0242,'shapeType':_0x5d0718[_0x4152d2(0x226)],'shapeData':_0x154b06(),'description':_0x499a70['t'](_0x4152d2(0x38b))},0x4,0x6);}}],_0xe5bd36=_0x490473?_0x3d0e9c['widgets'][_0x490473]:void 0x0,_0x21c32b=async()=>{const _0x5da1aa=_0x4b477c;let _0x1381d2=_0x10c776[_0x5da1aa(0xe8)];if(!_0x1381d2)return;let _0x2450c4=_0x1381d2['ownerDocument'];_0x2450c4[_0x5da1aa(0x18a)]===_0x2450c4[_0x5da1aa(0x2e3)]?await _0x2450c4[_0x5da1aa(0x1f7)]():await _0x2450c4[_0x5da1aa(0x2e3)]['requestFullscreen']();},_0x5152ac=_0x3d9b0c||_0x2f69d9,_0x1eb6c4=_0x222763&&!_0x5152ac;return _0x2fa798('div',{'ref':_0x10c776,'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2f69d9?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':'univer-relative\x20univer-z-10')+_0x4b477c(0x2f6),'children':[!_0x5152ac&&_0x2fa798(_0x4b477c(0x148),{'className':_0x4b477c(0x174),'children':[_0x5628d9(_0x5f4d2a,{'className':'univer-size-5\x20univer-text-primary-600'}),_0x5628d9('h2',{'className':_0x4b477c(0x327),'children':_0x3d0e9c[_0x4b477c(0x3d7)]}),_0x5628d9(_0x4faeac,{'target':{'unitId':_0x378083,'objectId':_0x4b369a(_0x2f3d4c),'objectType':_0x346fe7[_0x4b477c(0x37b)]},'name':_0x3d0e9c[_0x4b477c(0x3d7)],'commandId':_0x5205b3['id'],'exists':()=>!!_0x55c4f3['getDashboard'](_0x378083,_0x2f3d4c)},_0x378083+'/'+_0x2f3d4c),_0x5628d9(_0x450293,{'unitId':_0x378083}),_0x5628d9(_0x101ca4,{'type':'button','size':_0x4b477c(0x147),'variant':_0x4b477c(0x2e2),'aria-label':_0x499a70['t']('bases-dashboard-ui.dashboard.undo'),'disabled':!_0x222763||_0x2dde64[_0x4b477c(0x13a)]===0x0,'onClick':()=>_0x523db1[_0x4b477c(0x3e3)](_0x1c6299['id'])['catch'](()=>void 0x0),'children':_0x5628d9(_0x4e88b7,{})}),_0x5628d9(_0x101ca4,{'type':'button','size':_0x4b477c(0x147),'variant':'text','aria-label':_0x499a70['t'](_0x4b477c(0xea)),'disabled':!_0x222763||_0x2dde64[_0x4b477c(0x2a7)]===0x0,'onClick':()=>_0x523db1[_0x4b477c(0x3e3)](_0x5eb015['id'])['catch'](()=>void 0x0),'children':_0x5628d9(_0x245c5e,{})}),_0x5628d9(_0x101ca4,{'type':_0x4b477c(0x11f),'size':'small','variant':_0x4b477c(0x2e2),'aria-label':_0x499a70['t'](_0x4b477c(0x13c)),'onClick':()=>_0x21c32b()[_0x4b477c(0x26d)](()=>void 0x0),'children':_0x5628d9(_0x6d0af7,{})}),_0x5628d9(_0x56bbe5,{'items':_0x1f079a,'children':_0x2fa798(_0x101ca4,{'variant':'primary','disabled':!_0x222763,'children':[_0x5628d9(_0x4f1759,{}),_0x499a70['t']('bases-dashboard-ui.dashboard.addWidget')]})})]}),_0x2fa798('div',{'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1','children':[_0x5628d9('div',{'className':_0x4b477c(0x1e5),'children':_0x5628d9(da,{'dashboard':_0x3d0e9c,'dragLabel':_0x499a70['t'](_0x4b477c(0x29d)),'editable':_0x1eb6c4,'resizeLabel':_0x499a70['t']('bases-dashboard-ui.dashboard.resizeWidget'),'widgetLabel':_0x1380f7=>_0x499a70['t'](ro(_0x1380f7['type'])),'selectedWidgetId':_0x1eb6c4?_0x490473:void 0x0,'onSelectWidget':_0x1eb6c4?_0x342d35=>{_0x16ab0f(_0x342d35),_0x342d35||_0x267471(!0x1);}:void 0x0,'onLayoutsCommit':_0x17e34f=>{const _0x8814a6=_0x4b477c;let _0x1ca494={..._0x3d0e9c[_0x8814a6(0x1f6)]};_0x17e34f[_0x8814a6(0x3ce)]((_0x95767c,_0x3b87ce)=>{let _0x2bd2e4=_0x1ca494[_0x3b87ce];_0x2bd2e4&&(_0x1ca494[_0x3b87ce]={..._0x2bd2e4,'layout':_0x95767c});}),_0x523db1[_0x8814a6(0x3e3)](_0x1e3e1b['id'],{'unitId':_0x378083,'dashboard':{..._0x3d0e9c,'widgets':_0x1ca494}})[_0x8814a6(0x26d)](()=>void 0x0);},'renderWidget':_0x3ef608=>_0x5628d9(Za,{'base':_0x1b4a97,'dashboard':_0x3d0e9c,'unitId':_0x378083,'widget':_0x3ef608,'onChange':_0x31019c,'onChartRuntimeChange':_0x383ef5}),'renderWidgetActions':_0x23eed4=>_0x5628d9(Ya,{'onEdit':()=>{_0x16ab0f(_0x23eed4['id']),_0x267471(!0x0);},'onDelete':()=>{const _0x17c019=_0x4b477c;_0x490473===_0x23eed4['id']&&(_0x16ab0f(void 0x0),_0x267471(!0x1)),_0x523db1[_0x17c019(0x3e3)](_0x105c7d['id'],{'unitId':_0x378083,'dashboardId':_0x2f3d4c,'widgetId':_0x23eed4['id']})[_0x17c019(0x26d)](()=>void 0x0);}})})}),_0x1eb6c4&&_0x401528&&_0xe5bd36&&_0x5628d9(Va,{'base':_0x1b4a97,'chartRuntime':_0x15ff89[_0x4b477c(0x185)](_0xe5bd36['id']),'unitId':_0x378083,'widget':_0xe5bd36,'onChange':_0x31019c,'onClose':()=>_0x267471(!0x1),'onSelectBackgroundImage':()=>no(_0x568d56),'onSelectImage':()=>to(_0x3191d2)})]})]});}function Za({base:_0x369ef8,dashboard:_0x573cea,onChange:_0x245b6f,onChartRuntimeChange:_0x5eef8a,unitId:_0x15daee,widget:_0x193055}){const _0x29b28d=_0x5d48da;let _0x28f6ab=_0x5c672b(()=>_0x573cea['widgetOrder'][_0x29b28d(0x1ac)](_0x5d1592=>{const _0x402769=_0x29b28d;let _0x2aef60=_0x573cea[_0x402769(0x1f6)][_0x5d1592];return(_0x2aef60==null?void 0x0:_0x2aef60['type'])===_0x4dd1ab[_0x402769(0x296)]&&_0x2aef60['tableId']===('tableId'in _0x193055?_0x193055['tableId']:'')&&_0x2aef60[_0x402769(0x122)]?[_0x2aef60['filter']]:[];}),[_0x573cea,_0x193055]);switch(_0x193055[_0x29b28d(0x278)]){case _0x4dd1ab[_0x29b28d(0x173)]:return _0x5628d9(zr,{'filters':_0x28f6ab,'unitId':_0x15daee,'widget':_0x193055,'onRuntimeChange':_0x5eef8a});case _0x4dd1ab['TableFilter']:return _0x5628d9(Ea,{'fields':Qa(_0x369ef8,_0x193055[_0x29b28d(0x9d)]),'filter':_0x193055[_0x29b28d(0x122)],'onChange':_0x10c8fa=>_0x245b6f({..._0x193055,'filter':_0x10c8fa})[_0x29b28d(0x26d)](()=>void 0x0)});case _0x4dd1ab[_0x29b28d(0x1c9)]:return _0x5628d9(Gr,{'widget':_0x193055});case _0x4dd1ab[_0x29b28d(0x3c0)]:return _0x5628d9($a,{'widget':_0x193055});case _0x4dd1ab[_0x29b28d(0x2c2)]:return _0x5628d9(kr,{'dashboardId':_0x573cea['id'],'unitId':_0x15daee,'widget':_0x193055});}}function Qa(_0x3797f5,_0x5d0515){const _0xa30b48=_0x5d48da;let _0x5e2498=_0x3797f5[_0xa30b48(0x3e8)]()[_0xa30b48(0x3b5)][_0x5d0515],_0x558d8f=_0x5e2498==null?void 0x0:_0x5e2498[_0xa30b48(0x389)][_0xa30b48(0x153)](_0x47a75a=>_0x5e2498['views'][_0x47a75a]),_0x51ae31=_0x558d8f?_0x5e2498==null?void 0x0:_0x5e2498[_0xa30b48(0x2eb)][_0x558d8f]:void 0x0;return _0x5e2498&&_0x51ae31?_0x28d476(_0x5e2498,_0x51ae31):[];}function $a({widget:_0x106b80}){const _0xd292b1=_0x5d48da;let _0x2f0fbd=_0x40463f(_0x5b5322),[_0x4be827,_0x56b26d]=_0x4ebd7a(_0x106b80[_0xd292b1(0xa8)]===_0x3892df[_0xd292b1(0xe0)]?'':_0x106b80[_0xd292b1(0x136)]);return _0x185176(()=>{const _0x2e22bd=_0xd292b1;let _0x4f8720=!0x0;return _0x2f0fbd[_0x2e22bd(0x2bd)](_0x106b80[_0x2e22bd(0x136)],_0x106b80['sourceType'])[_0x2e22bd(0xa4)](_0x472aa1=>{_0x4f8720&&_0x56b26d(_0x472aa1);})['catch'](()=>void 0x0),()=>{_0x4f8720=!0x1;};},[_0x2f0fbd,_0x106b80[_0xd292b1(0x136)],_0x106b80[_0xd292b1(0xa8)]]),_0x4be827?_0x5628d9(_0xd292b1(0x334),{'role':_0x106b80[_0xd292b1(0x250)]?'img':void 0x0,'aria-label':_0x106b80[_0xd292b1(0x250)]||void 0x0,'data-dashboard-image':_0x106b80['id'],'className':_0xd292b1(0x2b9),'style':br(_0x4be827,_0x106b80[_0xd292b1(0x31a)])}):null;}function eo(){let _0x38a11c=_0x1be82d(new Set());return{'id':'dashboard-text-'+_0x2cedf9(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x38a11c}]},'documentStyle':{}};}function to(_0x1e12ac){return new Promise(_0x57f65a=>{const _0xaa6146=_0x187c;let _0x3c0e3f=document[_0xaa6146(0x365)](_0xaa6146(0x141));_0x3c0e3f[_0xaa6146(0x278)]=_0xaa6146(0x39c),_0x3c0e3f[_0xaa6146(0x177)]=_0xaa6146(0x115),_0x3c0e3f[_0xaa6146(0x17a)](_0xaa6146(0x1ea),()=>{const _0x47e0bd=_0xaa6146;var _0x40b2a6;let _0x5a473a=(_0x40b2a6=_0x3c0e3f['files'])==null?void 0x0:_0x40b2a6[0x0];_0x5a473a?_0x1e12ac[_0x47e0bd(0x131)](_0x5a473a)[_0x47e0bd(0xa4)](_0x1c49bd=>{const _0x115305=_0x47e0bd;!_0x1c49bd['source']||_0x1c49bd[_0x115305(0xa8)]===void 0x0?_0x57f65a(null):_0x57f65a({'name':_0x1c49bd[_0x115305(0x3d7)],'source':_0x1c49bd[_0x115305(0x136)],'sourceType':_0x1c49bd[_0x115305(0xa8)]});})[_0x47e0bd(0x26d)](()=>_0x57f65a(null)):_0x57f65a(null);},{'once':!0x0}),_0x3c0e3f[_0xaa6146(0x3c4)]();});}function no(_0x24755){return new Promise(_0x88afdb=>{const _0x5d8698=_0x187c;let _0x54cd96=document[_0x5d8698(0x365)](_0x5d8698(0x141));_0x54cd96[_0x5d8698(0x278)]=_0x5d8698(0x39c),_0x54cd96[_0x5d8698(0x177)]='image/*',_0x54cd96[_0x5d8698(0x17a)]('change',()=>{const _0x34f5e8=_0x5d8698;var _0x45e7b3;let _0x3f5274=(_0x45e7b3=_0x54cd96[_0x34f5e8(0x170)])==null?void 0x0:_0x45e7b3[0x0];_0x3f5274?_0x24755[_0x34f5e8(0x2f8)](_0x3f5274)[_0x34f5e8(0xa4)](_0x3b0445=>{const _0x571274=_0x34f5e8;if(!(_0x3b0445!=null&&_0x3b0445[_0x571274(0x136)]))_0x88afdb(null);else{if(_0x3b0445['base64Cache']){let _0x3002c8=new Image();_0x3002c8[_0x571274(0x1f5)]=_0x3b0445[_0x571274(0x1ef)],_0x24755[_0x571274(0xf9)](_0x3b0445[_0x571274(0x136)],_0x3b0445[_0x571274(0x1c0)],_0x3002c8);}_0x88afdb({'source':_0x3b0445[_0x571274(0x136)],'sourceType':_0x3b0445[_0x571274(0x1c0)]});}})[_0x34f5e8(0x26d)](()=>_0x88afdb(null)):_0x88afdb(null);},{'once':!0x0}),_0x54cd96[_0x5d8698(0x3c4)]();});}function ro(_0x5412e3){const _0x301777=_0x5d48da;switch(_0x5412e3){case _0x4dd1ab[_0x301777(0x173)]:return _0x301777(0x1ca);case _0x4dd1ab[_0x301777(0x296)]:return _0x301777(0x108);case _0x4dd1ab[_0x301777(0x1c9)]:return _0x301777(0x126);case _0x4dd1ab[_0x301777(0x3c0)]:return _0x301777(0x2a4);case _0x4dd1ab[_0x301777(0x2c2)]:return _0x301777(0x38b);}}function io(_0x47b093){const _0x210bc2=_0x5d48da;return(_0x47b093==null?void 0x0:_0x47b093[_0x210bc2(0x278)])===_0xc74f11[_0x210bc2(0xe1)]&&typeof _0x47b093[_0x210bc2(0xa7)]=='object'&&_0x47b093[_0x210bc2(0xa7)]!==null&&_0x210bc2(0x106)in _0x47b093['config']&&_0x210bc2(0x204)in _0x47b093[_0x210bc2(0xa7)];}const ao=[{'area':_0x87fd74[_0x5d48da(0x163)],'key':'filterFields','label':'bases-dashboard-ui.pivot.filters'},{'area':_0x87fd74[_0x5d48da(0x200)],'key':_0x5d48da(0x21c),'label':_0x5d48da(0x1a4)},{'area':_0x87fd74[_0x5d48da(0x21e)],'key':'rowFields','label':_0x5d48da(0xce)},{'area':_0x87fd74[_0x5d48da(0x24b)],'key':_0x5d48da(0x2c5),'label':_0x5d48da(0xc4)}],oo=[{'value':_0x3bfa9b[_0x5d48da(0x381)],'localeKey':_0x5d48da(0x1e0)},{'value':_0x3bfa9b[_0x5d48da(0x1b2)],'localeKey':'bases-dashboard-ui.pivot.count'},{'value':_0x3bfa9b[_0x5d48da(0x2f0)],'localeKey':_0x5d48da(0x2c6)},{'value':_0x3bfa9b[_0x5d48da(0x2ac)],'localeKey':'bases-dashboard-ui.pivot.average'},{'value':_0x3bfa9b[_0x5d48da(0x16b)],'localeKey':_0x5d48da(0x2b0)},{'value':_0x3bfa9b[_0x5d48da(0x2cf)],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x3bfa9b['product'],'localeKey':_0x5d48da(0x10d)},{'value':_0x3bfa9b['stdDev'],'localeKey':_0x5d48da(0xcd)},{'value':_0x3bfa9b[_0x5d48da(0x152)],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x3bfa9b[_0x5d48da(0xfc)],'localeKey':'bases-dashboard-ui.pivot.variance'},{'value':_0x3bfa9b[_0x5d48da(0x1b5)],'localeKey':_0x5d48da(0x104)}];function so(_0x430c40){const _0x4e8f7f=_0x5d48da;let {config:_0x5c606e,onChange:_0x41b711,table:_0x561400}=_0x430c40,_0x284ab6=_0x40463f(_0x1ecd96),[_0x384708,_0xcc7417]=_0x4ebd7a('fields'),[_0x4c0216,_0x7fdf2e]=_0x4ebd7a(''),[_0x28795b,_0xadb283]=_0x4ebd7a(null),[_0x3d8aa4,_0x39ab19]=_0x4ebd7a(null),[_0xfe240e,_0x523dd0]=_0x4ebd7a(null),[_0x12e167,_0x3dbfce]=_0x4ebd7a(null),_0x48b624=_0x25fc59(null),_0x5b6e04=_0x5c672b(()=>_0x561400[_0x4e8f7f(0xb6)][_0x4e8f7f(0x1ac)](_0x20741a=>{const _0x1746b7=_0x4e8f7f;let _0x26610f=_0x561400[_0x1746b7(0x9b)][_0x20741a];return _0x26610f&&_0x26610f[_0x1746b7(0x3b4)]!==!0x0&&_0x26610f[_0x1746b7(0x278)]!==_0x3bfbe2[_0x1746b7(0x39d)]?[_0x26610f]:[];})[_0x4e8f7f(0x122)](_0x27a55a=>_0x27a55a[_0x4e8f7f(0x3d7)][_0x4e8f7f(0x125)]()[_0x4e8f7f(0x292)](_0x4c0216[_0x4e8f7f(0x1b4)]()[_0x4e8f7f(0x125)]())),[_0x4c0216,_0x561400]),_0x35da6d=_0x5f006f=>{const _0x2c9192=_0x4e8f7f;let _0xd1c7c6=_0x2a70ba(_0x561400,_0x5c606e[_0x2c9192(0x106)]);try{_0x5f006f(_0xd1c7c6),_0x41b711({'pivot':_0xd1c7c6[_0x2c9192(0x265)]()});}finally{_0xd1c7c6[_0x2c9192(0x1b9)]();}},_0x2226fa=(_0x21e7b8,_0x26128e)=>{_0x28795b&&(_0x35da6d(_0x220448=>{const _0x175842=_0x187c;if(_0x28795b[_0x175842(0x27f)]===_0x175842(0x22a)){let _0x3c89dc=_0x220448[_0x175842(0x392)](_0x28795b['id']),_0x78ab26=_0x3c89dc[_0x175842(0x1c3)]===_0x21e7b8&&_0x3c89dc[_0x175842(0x2ff)]<_0x26128e?_0x26128e-0x1:_0x26128e;_0x220448['updateFieldPosition'](_0x28795b['id'],_0x21e7b8,_0x78ab26);}else go(_0x220448,_0x28795b['id'],_0x21e7b8,_0x26128e);}),_0xadb283(null),_0x39ab19(null));};return _0x2fa798(_0x4e8f7f(0x334),{'className':_0x4e8f7f(0x23e),'children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x284ab6['t'](_0x4e8f7f(0x1d7)),'className':_0x4e8f7f(0x3c9),'items':[{'label':_0x284ab6['t'](_0x4e8f7f(0x31d)),'panelId':_0x4e8f7f(0x1e9),'value':_0x4e8f7f(0x9b)},{'label':_0x284ab6['t'](_0x4e8f7f(0xb4)),'panelId':_0x4e8f7f(0x1d6),'value':_0x4e8f7f(0x2a1)}],'value':_0x384708,'onChange':_0xcc7417}),_0x5628d9(_0x4e8f7f(0x334),{'ref':_0x48b624,'className':_0x37e66c(_0x4e8f7f(0xa0),_0xb0e9d1),'onDragOver':_0x1cbaba=>{const _0x4facfe=_0x4e8f7f;let _0x279160=_0x48b624[_0x4facfe(0xe8)];if(!_0x279160)return;let _0x52de6a=_0x279160[_0x4facfe(0x319)]();_0x1cbaba[_0x4facfe(0x134)]<_0x52de6a['top']+0x30?_0x279160[_0x4facfe(0x28a)]-=0x10:_0x1cbaba[_0x4facfe(0x134)]>_0x52de6a['bottom']-0x30&&(_0x279160[_0x4facfe(0x28a)]+=0x10);},'children':_0x384708==='options'?_0x5628d9(ho,{'config':_0x5c606e,'commit':_0x35da6d}):_0x2fa798(_0x4e8f7f(0x334),{'className':_0x4e8f7f(0x16c),'children':[_0x2fa798(_0x4e8f7f(0x334),{'children':[_0x5628d9(_0x4e8f7f(0x334),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x284ab6['t'](_0x4e8f7f(0x129))}),_0x5628d9(_0x5d579d,{'allowClear':!0x0,'slot':_0x5628d9(_0xa664ad,{}),'value':_0x4c0216,'placeholder':_0x284ab6['t']('bases-dashboard-ui.pivot.searchFields'),'onChange':_0x7fdf2e}),_0x5628d9(_0x4e8f7f(0x334),{'className':_0x4e8f7f(0x1d0),'children':_0x5b6e04[_0x4e8f7f(0x2ea)](_0x59357a=>_0x5628d9(co,{'config':_0x5c606e,'field':_0x59357a,'onAdd':_0x3e1301=>_0x35da6d(_0x3a7852=>go(_0x3a7852,_0x59357a['id'],_0x3e1301,_0x3a7852[_0x4e8f7f(0x121)](_0x3e1301))),'onCheckedChange':_0x4d0dd0=>_0x35da6d(_0x5452e8=>{const _0x5c8322=_0x4e8f7f;let _0xb6b349=_0x5452e8[_0x5c8322(0x21b)](_0x59357a['id']);if(!_0x4d0dd0)_0xb6b349['forEach'](_0x366684=>_0x5452e8[_0x5c8322(0x24f)](_0x366684['getId']()));else{if(_0xb6b349[_0x5c8322(0x193)]===0x0){let _0x1146ac=vo(_0x59357a)?_0x87fd74['Value']:_0x87fd74['Row'];_0x5452e8[_0x5c8322(0xd0)](_0x59357a['id'],_0x1146ac);}}}),'onDragStart':()=>_0xadb283({'kind':_0x4e8f7f(0x136),'id':_0x59357a['id']})},_0x59357a['id']))})]}),_0x5628d9(_0x4e8f7f(0x334),{'className':_0x4e8f7f(0x199),'children':ao[_0x4e8f7f(0x2ea)](_0x51fdad=>_0x5628d9(uo,{'area':_0x51fdad[_0x4e8f7f(0x1c3)],'dropTarget':_0x3d8aa4,'fields':_0x5c606e['pivot'][_0x51fdad[_0x4e8f7f(0x2d0)]],'label':_0x284ab6['t'](_0x51fdad[_0x4e8f7f(0x249)]),'snapshot':_0x5c606e['pivot'],'onDragEnd':()=>{_0xadb283(null),_0x39ab19(null);},'onDragStart':_0x1f30e5=>_0xadb283({'kind':'field','id':_0x1f30e5,'area':_0x51fdad[_0x4e8f7f(0x1c3)]}),'onDragOver':_0x3566bd=>_0x39ab19({'area':_0x51fdad[_0x4e8f7f(0x1c3)],'index':_0x3566bd}),'onDrop':_0xdbf793=>_0x2226fa(_0x51fdad[_0x4e8f7f(0x1c3)],_0xdbf793),'onFilter':_0x523dd0,'onRemove':_0x24001c=>_0x35da6d(_0x591bd2=>_0x591bd2[_0x4e8f7f(0x24f)](_0x24001c)),'onSettings':_0x3dbfce},_0x51fdad['area']))}),_0xfe240e&&_0x5628d9(po,{'fieldId':_0xfe240e,'snapshot':_0x5c606e[_0x4e8f7f(0x106)],'table':_0x561400,'onCancel':()=>_0x523dd0(null),'onCommit':(_0x27566f,_0x3bea7f)=>{_0x35da6d(_0xcf5488=>{const _0x335dbd=_0x187c;let _0x22d602=_0xcf5488[_0x335dbd(0x110)](_0xfe240e),_0x36ef2c=(_0x22d602==null?void 0x0:_0x22d602['items'])??[];_0xcf5488[_0x335dbd(0x157)](_0xfe240e,{'type':_0x829bf6[_0x335dbd(0x254)],'list':_0x27566f,'isAll':_0x27566f[_0x335dbd(0x193)]===_0x36ef2c[_0x335dbd(0x193)]}),_0xcf5488['setSortInfo'](_0xfe240e,_0x3bea7f===void 0x0?void 0x0:{'type':_0x3bea7f});}),_0x523dd0(null);}},_0xfe240e),_0x12e167&&_0x5628d9(mo,{'field':_0x5c606e[_0x4e8f7f(0x106)][_0x4e8f7f(0x347)][_0x12e167],'onCancel':()=>_0x3dbfce(null),'onCommit':(_0x5a500b,_0x275b46,_0x3b9af6)=>{_0x35da6d(_0x39d2f0=>{const _0x2e03b0=_0x187c;_0x39d2f0['renameField'](_0x12e167,_0x5a500b),_0x39d2f0[_0x2e03b0(0x257)](_0x12e167,_0x275b46),_0x39d2f0['setFieldFormat'](_0x12e167,_0x3b9af6||void 0x0);}),_0x3dbfce(null);}},_0x12e167)]})})]});}function co(_0x317278){const _0x3c9374=_0x5d48da;let {config:_0x310c97,field:_0x44eaf1,onAdd:_0x3bfbd0,onCheckedChange:_0x23be0d,onDragStart:_0x4dce6a}=_0x317278,_0xb52867=_0x40463f(_0x1ecd96),_0x3171b7=[...Object['values'](_0x310c97['pivot'][_0x3c9374(0x1b7)]),...Object[_0x3c9374(0x370)](_0x310c97[_0x3c9374(0x106)]['measure'])]['some'](_0x130177=>_0x130177[_0x3c9374(0x275)]===_0x44eaf1['id']),_0x11efb1=ao[_0x3c9374(0x2ea)](_0x37e0e8=>({'type':_0x3c9374(0x321),'children':_0xb52867['t'](yo(_0x37e0e8[_0x3c9374(0x1c3)])),'onSelect':()=>_0x3bfbd0(_0x37e0e8[_0x3c9374(0x1c3)])}));return _0x2fa798(_0x3c9374(0x334),{'draggable':!0x0,'className':_0x3c9374(0x2bc),'onDragStart':_0x4dce6a,'children':[_0x5628d9(_0x1e67fc,{'className':'univer-text-gray-400'}),_0x5628d9(_0x57ed34,{'checked':_0x3171b7,'onChange':_0x218bbf=>_0x23be0d(!!_0x218bbf)}),_0x5628d9(lo,{'field':_0x44eaf1}),_0x5628d9('span',{'className':_0x3c9374(0x3d3),'children':_0x44eaf1[_0x3c9374(0x3d7)]}),_0x5628d9(_0x56bbe5,{'align':'end','items':_0x11efb1,'children':_0x5628d9('span',{'className':_0x3c9374(0x10b),'children':_0x5628d9(_0x3693ad,{})})})]});}function lo({field:_0x5e9071}){const _0x93cda0=_0x5d48da;return vo(_0x5e9071)?_0x5628d9(_0xfa6b5,{'className':_0x93cda0(0x3d1)}):_0x5e9071['type']===_0x3bfbe2[_0x93cda0(0x3ba)]||_0x5e9071[_0x93cda0(0x278)]===_0x3bfbe2[_0x93cda0(0x302)]||_0x5e9071[_0x93cda0(0x278)]===_0x3bfbe2['UpdatedAt']?_0x5628d9(_0x143320,{'className':_0x93cda0(0x3d1)}):_0x5628d9(_0x45f36b,{'className':_0x93cda0(0x3d1)});}function uo(_0x2b8ccf){const _0x2ed79e=_0x5d48da;let {area:_0x50bb75,dropTarget:_0x5dcfb5,fields:_0x31ef59,label:_0x4a5bb8,snapshot:_0x2e5859}=_0x2b8ccf,_0x4ed8f3=_0x40463f(_0x1ecd96);return _0x2fa798(_0x2ed79e(0x111),{'className':_0x37e66c(_0x2ed79e(0x251),_0x3b0e1f),'onDragOver':_0x237797=>{const _0x430a3e=_0x2ed79e;_0x237797['preventDefault'](),_0x2b8ccf[_0x430a3e(0x2cb)](_0x31ef59['length']);},'onDrop':_0x3121b8=>{const _0x6ef66d=_0x2ed79e;_0x3121b8[_0x6ef66d(0x394)](),_0x2b8ccf[_0x6ef66d(0x1a7)]((_0x5dcfb5==null?void 0x0:_0x5dcfb5[_0x6ef66d(0x1c3)])===_0x50bb75?_0x5dcfb5[_0x6ef66d(0x2ff)]:_0x31ef59[_0x6ef66d(0x193)]);},'children':[_0x5628d9(_0x2ed79e(0x334),{'className':_0x2ed79e(0x3dc),'children':_0x4a5bb8}),_0x2fa798(_0x2ed79e(0x334),{'className':_0x2ed79e(0x342),'children':[_0x31ef59[_0x2ed79e(0x2ea)]((_0x29dcbb,_0x593913)=>{const _0x402d76=_0x2ed79e;let _0x1b9a7f=_0x2e5859[_0x402d76(0x1b7)][_0x29dcbb]??_0x2e5859[_0x402d76(0x347)][_0x29dcbb];if(!_0x1b9a7f)return null;let _0x44169f=(_0x5dcfb5==null?void 0x0:_0x5dcfb5['area'])===_0x50bb75&&_0x5dcfb5['index']===_0x593913;return _0x2fa798(_0x402d76(0x334),{'onDragOver':_0x3eeed8=>{const _0x54a4ea=_0x402d76;_0x3eeed8[_0x54a4ea(0x394)](),_0x3eeed8[_0x54a4ea(0xf7)]();let _0x50b279=_0x3eeed8[_0x54a4ea(0x3c6)]['getBoundingClientRect']();_0x2b8ccf[_0x54a4ea(0x2cb)](_0x593913+ +(_0x3eeed8[_0x54a4ea(0x134)]>_0x50b279[_0x54a4ea(0x171)]+_0x50b279[_0x54a4ea(0x22b)]/0x2));},'onDrop':_0x555bdc=>{const _0x1550ea=_0x402d76;_0x555bdc[_0x1550ea(0x394)](),_0x555bdc[_0x1550ea(0xf7)](),_0x2b8ccf['onDrop']((_0x5dcfb5==null?void 0x0:_0x5dcfb5[_0x1550ea(0x1c3)])===_0x50bb75?_0x5dcfb5['index']:_0x593913);},'children':[_0x44169f&&_0x5628d9('div',{'className':_0x402d76(0x3e4)}),_0x5628d9(fo,{'area':_0x50bb75,'field':_0x1b9a7f,'onDragEnd':_0x2b8ccf[_0x402d76(0x37f)],'onDragStart':()=>_0x2b8ccf[_0x402d76(0x293)](_0x29dcbb),'onFilter':()=>_0x2b8ccf[_0x402d76(0x12a)](_0x29dcbb),'onRemove':()=>_0x2b8ccf[_0x402d76(0x245)](_0x29dcbb),'onSettings':()=>_0x2b8ccf[_0x402d76(0x387)](_0x29dcbb)})]},_0x29dcbb);}),(_0x5dcfb5==null?void 0x0:_0x5dcfb5[_0x2ed79e(0x1c3)])===_0x50bb75&&_0x5dcfb5[_0x2ed79e(0x2ff)]===_0x31ef59[_0x2ed79e(0x193)]&&_0x5628d9(_0x2ed79e(0x334),{'className':_0x2ed79e(0x3e4)}),_0x31ef59['length']===0x0&&_0x5628d9('div',{'className':_0x2ed79e(0x3d4),'children':_0x4ed8f3['t'](_0x2ed79e(0x32a))})]})]});}function fo(_0x56ffc7){const _0x163aef=_0x5d48da;let _0x21f844=_0x40463f(_0x1ecd96),_0x5bd94b=_0x56ffc7[_0x163aef(0x1c3)]===_0x87fd74['Value'],_0x325f9a=[{'type':_0x163aef(0x321),'children':_0x21f844['t'](_0x163aef(0x3c2)),'onSelect':_0x56ffc7['onRemove']},{'type':_0x163aef(0x321),'children':_0x21f844['t'](_0x5bd94b?_0x163aef(0x2e7):_0x163aef(0x28f)),'onSelect':_0x5bd94b?_0x56ffc7[_0x163aef(0x387)]:_0x56ffc7[_0x163aef(0x12a)]}];return _0x2fa798(_0x163aef(0x334),{'draggable':!0x0,'className':_0x163aef(0x3a2),'onDragEnd':_0x56ffc7['onDragEnd'],'onDragStart':_0x56ffc7[_0x163aef(0x293)],'children':[_0x5628d9(_0x1e67fc,{'className':_0x163aef(0x3d1)}),_0x5628d9(_0x2f0618,{'title':_0x56ffc7[_0x163aef(0x22a)]['displayName'],'children':_0x5628d9(_0x163aef(0x339),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x56ffc7[_0x163aef(0x22a)][_0x163aef(0x3bd)]})}),_0x5628d9(_0x56bbe5,{'align':_0x163aef(0x1ed),'items':_0x325f9a,'children':_0x5628d9(_0x163aef(0x339),{'className':_0x163aef(0x10b),'children':_0x5628d9(_0x3693ad,{})})})]});}function po(_0x3ad3b2){const _0x30bd79=_0x5d48da;var _0x30b9a2,_0x123059;let _0x2b5abe=_0x40463f(_0x1ecd96),{format:_0x2751ad,items:_0x1cf29a,itemTypes:_0x55980c}=_0x5c672b(()=>{const _0x1f5141=_0x187c;let _0xbe2796=_0x2a70ba(_0x3ad3b2[_0x1f5141(0x2d3)],_0x3ad3b2['snapshot']);try{let _0x40ac64=_0xbe2796[_0x1f5141(0x110)](_0x3ad3b2['fieldId']);return{'format':_0x40ac64==null?void 0x0:_0x40ac64[_0x1f5141(0x231)],'items':[...(_0x40ac64==null?void 0x0:_0x40ac64[_0x1f5141(0x252)])??[]],'itemTypes':[...(_0x40ac64==null?void 0x0:_0x40ac64['itemTypes'])??[]]};}finally{_0xbe2796['dispose']();}},[_0x3ad3b2[_0x30bd79(0x221)],_0x3ad3b2['snapshot'],_0x3ad3b2[_0x30bd79(0x2d3)]]),_0x2c09bd=(_0x30b9a2=_0x3ad3b2[_0x30bd79(0x2f9)]['dimension'][_0x3ad3b2['fieldId']])==null?void 0x0:_0x30b9a2[_0x30bd79(0x223)],[_0x3e20c9,_0xdd2514]=_0x4ebd7a((_0x2c09bd==null?void 0x0:_0x2c09bd[_0x30bd79(0x278)])===_0x829bf6['ManualFilter']?_0x2c09bd[_0x30bd79(0x2c1)]:_0x1cf29a),[_0x539b14,_0x4ecba9]=_0x4ebd7a((_0x123059=_0x3ad3b2[_0x30bd79(0x2f9)][_0x30bd79(0x1b7)][_0x3ad3b2[_0x30bd79(0x221)]])==null||(_0x123059=_0x123059[_0x30bd79(0xb3)])==null?void 0x0:_0x123059[_0x30bd79(0x278)]),_0x4ca8cb=_0x3e20c9['length']===_0x1cf29a[_0x30bd79(0x193)];return _0x2fa798(_0x30bd79(0x111),{'className':_0x37e66c(_0x30bd79(0x33e),_0x3b0e1f),'children':[_0x5628d9(_0x30bd79(0x334),{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0x2b5abe['t']('bases-dashboard-ui.pivot.filterField')}),_0x2fa798('div',{'className':_0x30bd79(0x19b),'children':[_0x2fa798(_0x101ca4,{'className':_0x30bd79(0x3c7),'variant':_0x539b14===_0x1b5f3a[_0x30bd79(0x198)]?_0x30bd79(0x22d):_0x30bd79(0x18c),'onClick':()=>_0x4ecba9(_0x1b5f3a[_0x30bd79(0x198)]),'children':[_0x5628d9(_0x558ec6,{}),_0x2b5abe['t'](_0x30bd79(0x28c))]}),_0x2fa798(_0x101ca4,{'className':_0x30bd79(0x3c7),'variant':_0x539b14===_0x1b5f3a[_0x30bd79(0x19c)]?_0x30bd79(0x22d):'default','onClick':()=>_0x4ecba9(_0x1b5f3a[_0x30bd79(0x19c)]),'children':[_0x5628d9(_0x3c94ed,{}),_0x2b5abe['t'](_0x30bd79(0x2a8))]})]}),_0x2fa798(_0x30bd79(0x334),{'className':_0x30bd79(0x311),'children':[_0x2fa798(_0x30bd79(0x249),{'className':_0x30bd79(0xca),'children':[_0x5628d9(_0x57ed34,{'checked':_0x4ca8cb,'indeterminate':_0x3e20c9[_0x30bd79(0x193)]>0x0&&!_0x4ca8cb,'onChange':()=>_0xdd2514(_0x4ca8cb?[]:_0x1cf29a)}),_0x2b5abe['t'](_0x30bd79(0x233))]}),_0x1cf29a[_0x30bd79(0x2ea)]((_0x3ec416,_0x3a68d1)=>_0x2fa798(_0x30bd79(0x249),{'className':_0x30bd79(0xca),'children':[_0x5628d9(_0x57ed34,{'checked':_0x3e20c9[_0x30bd79(0x292)](_0x3ec416),'onChange':()=>_0xdd2514(_0xfd95b9=>_0xfd95b9[_0x30bd79(0x292)](_0x3ec416)?_0xfd95b9['filter'](_0xa46608=>_0xa46608!==_0x3ec416):[..._0xfd95b9,_0x3ec416])}),_0x5628d9(_0x30bd79(0x339),{'className':_0x30bd79(0xae),'children':_o(_0x3ec416,_0x55980c[_0x3a68d1],_0x2751ad,_0x2b5abe['t'](_0x30bd79(0x11b)))})]},_0x3ec416))]}),_0x2fa798(_0x30bd79(0x334),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[_0x5628d9(_0x101ca4,{'variant':_0x30bd79(0x2ca),'onClick':()=>_0x3ad3b2[_0x30bd79(0x211)](_0x1cf29a,_0x539b14),'children':_0x2b5abe['t'](_0x30bd79(0x240))}),_0x2fa798(_0x30bd79(0x334),{'className':_0x30bd79(0x316),'children':[_0x5628d9(_0x101ca4,{'onClick':_0x3ad3b2[_0x30bd79(0x2db)],'children':_0x2b5abe['t'](_0x30bd79(0x2e6))}),_0x5628d9(_0x101ca4,{'variant':_0x30bd79(0x22d),'disabled':_0x3e20c9['length']===0x0,'onClick':()=>_0x3ad3b2['onCommit'](_0x3e20c9,_0x539b14),'children':_0x2b5abe['t'](_0x30bd79(0xdd))})]})]})]});}function mo(_0xb4f96a){const _0x2db665=_0x5d48da;var _0x58406a,_0x5cba29,_0x239a83;let _0x165dfd=_0x40463f(_0x1ecd96),[_0x1f7f11,_0x1e64c4]=_0x4ebd7a(((_0x58406a=_0xb4f96a[_0x2db665(0x22a)])==null?void 0x0:_0x58406a[_0x2db665(0x3bd)])??''),[_0x52d846,_0x53e38b]=_0x4ebd7a(((_0x5cba29=_0xb4f96a[_0x2db665(0x22a)])==null?void 0x0:_0x5cba29[_0x2db665(0x35e)])??_0x3bfa9b[_0x2db665(0x381)]),[_0x16ec1e,_0x30bf27]=_0x4ebd7a(((_0x239a83=_0xb4f96a[_0x2db665(0x22a)])==null?void 0x0:_0x239a83[_0x2db665(0x231)])??'');return _0xb4f96a[_0x2db665(0x22a)]?_0x2fa798('section',{'className':_0x37e66c(_0x2db665(0x23a),_0x3b0e1f),'children':[_0x5628d9('div',{'className':_0x2db665(0x2d1),'children':_0x165dfd['t']('bases-dashboard-ui.pivot.fieldSettings')}),_0x2fa798('label',{'className':_0x2db665(0x10f),'children':[_0x165dfd['t']('bases-dashboard-ui.pivot.displayName'),_0x5628d9(_0x5d579d,{'value':_0x1f7f11,'onChange':_0x1e64c4})]}),_0x2fa798(_0x2db665(0x249),{'className':_0x2db665(0x10f),'children':[_0x165dfd['t'](_0x2db665(0x3ac)),_0x5628d9(_0x701e3d,{'value':String(_0x52d846),'options':oo[_0x2db665(0x2ea)](_0x5bcc8a=>({'value':String(_0x5bcc8a[_0x2db665(0x32d)]),'label':_0x165dfd['t'](_0x5bcc8a['localeKey'])})),'onChange':_0x5be54c=>{const _0x497068=_0x2db665;let _0x24e110=oo['find'](_0x4fc3a2=>String(_0x4fc3a2[_0x497068(0x32d)])===_0x5be54c);_0x24e110&&_0x53e38b(_0x24e110[_0x497068(0x32d)]);}})]}),_0x2fa798('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x165dfd['t']('bases-dashboard-ui.pivot.numberFormat'),_0x5628d9(_0x5d579d,{'value':_0x16ec1e,'onChange':_0x30bf27})]}),_0x2fa798(_0x2db665(0x334),{'className':_0x2db665(0x15f),'children':[_0x5628d9(_0x101ca4,{'onClick':_0xb4f96a[_0x2db665(0x2db)],'children':_0x165dfd['t'](_0x2db665(0x2e6))}),_0x5628d9(_0x101ca4,{'variant':_0x2db665(0x22d),'disabled':!_0x1f7f11[_0x2db665(0x1b4)](),'onClick':()=>_0xb4f96a['onCommit'](_0x1f7f11[_0x2db665(0x1b4)](),_0x52d846,_0x16ec1e),'children':_0x165dfd['t'](_0x2db665(0xdd))})]})]}):null;}function ho(_0x3bf3d4){const _0x508911=_0x5d48da;let {config:_0x47e7d7,commit:_0x4c94fc}=_0x3bf3d4,_0xbadeae=_0x40463f(_0x1ecd96),_0x1c7b69=_0x47e7d7[_0x508911(0x106)]['options'],_0x3fd2b6=_0x2fa89f=>_0x4c94fc(_0x9ebeb8=>_0x9ebeb8[_0x508911(0x3ec)]({..._0x9ebeb8[_0x508911(0x1f8)](),..._0x2fa89f}));return _0x2fa798(_0x508911(0x334),{'className':_0x508911(0x16c),'children':[_0x2fa798(_0x508911(0x249),{'className':_0x508911(0x238),'children':[_0xbadeae['t'](_0x508911(0x2e4)),_0x5628d9(_0x701e3d,{'className':'univer-w-36','value':String(_0x47e7d7[_0x508911(0x106)][_0x508911(0x3e1)]),'options':[{'value':String(_0xd936c5[_0x508911(0x116)]),'label':_0xbadeae['t'](_0x508911(0x114))},{'value':String(_0xd936c5[_0x508911(0xbd)]),'label':_0xbadeae['t'](_0x508911(0x1e1))},{'value':String(_0xd936c5[_0x508911(0x270)]),'label':_0xbadeae['t'](_0x508911(0x2f7))}],'onChange':_0x42b8e2=>{const _0x14a036=_0x508911;let _0x4fd45b=[_0xd936c5[_0x14a036(0x116)],_0xd936c5['compact'],_0xd936c5[_0x14a036(0x270)]]['find'](_0x33d343=>String(_0x33d343)===_0x42b8e2);_0x4fd45b!==void 0x0&&_0x4c94fc(_0x57e256=>_0x57e256['setLayout'](_0x4fd45b));}})]}),[{'key':_0x508911(0x162),'label':_0x508911(0x1a5),'defaultValue':!0x1},{'key':_0x508911(0x2cd),'label':'bases-dashboard-ui.pivot.repeatColumnLabels','defaultValue':!0x1},{'key':_0x508911(0x2f3),'label':_0x508911(0x1a3),'defaultValue':!0x0},{'key':'showRowGrandTotal','label':_0x508911(0xa1),'defaultValue':!0x0},{'key':_0x508911(0x2ef),'label':'bases-dashboard-ui.pivot.showColumnSubtotal','defaultValue':!0x0},{'key':_0x508911(0x241),'label':_0x508911(0x3af),'defaultValue':!0x0}][_0x508911(0x2ea)](_0x5aec9a=>_0x2fa798(_0x508911(0x249),{'className':_0x508911(0x3c8),'children':[_0x5628d9(_0x57ed34,{'checked':!!(_0x1c7b69[_0x5aec9a[_0x508911(0x2d0)]]??_0x5aec9a[_0x508911(0x2b8)]),'disabled':_0x5aec9a[_0x508911(0x2d0)]===_0x508911(0x162)&&_0x47e7d7[_0x508911(0x106)][_0x508911(0x3e1)]===_0xd936c5[_0x508911(0xbd)],'onChange':_0x387ae9=>_0x3fd2b6({[_0x5aec9a[_0x508911(0x2d0)]]:!!_0x387ae9})}),_0xbadeae['t'](_0x5aec9a[_0x508911(0x249)])]},_0x5aec9a['key'])),_0x47e7d7[_0x508911(0x106)][_0x508911(0x3e1)]===_0xd936c5[_0x508911(0x270)]&&_0x2fa798(_0x508911(0x249),{'className':_0x508911(0x238),'children':[_0xbadeae['t'](_0x508911(0x328)),_0x5628d9(_0x701e3d,{'className':_0x508911(0x167),'value':String(_0x1c7b69[_0x508911(0x318)]??_0x551070[_0x508911(0x171)]),'options':[{'value':String(_0x551070['top']),'label':_0xbadeae['t'](_0x508911(0x132))},{'value':String(_0x551070['bottom']),'label':_0xbadeae['t'](_0x508911(0x26b))}],'onChange':_0x1399c7=>{const _0x2704ec=_0x508911;let _0x1744c0=[_0x551070['top'],_0x551070[_0x2704ec(0xdc)]][_0x2704ec(0x153)](_0x3b8d38=>String(_0x3b8d38)===_0x1399c7);_0x1744c0!==void 0x0&&_0x3fd2b6({'rowSubtotalPosition':_0x1744c0});}})]}),_0x2fa798(_0x508911(0x249),{'className':_0x508911(0x238),'children':[_0xbadeae['t']('bases-dashboard-ui.pivot.valuePosition'),_0x5628d9(_0x701e3d,{'className':_0x508911(0x167),'value':String(_0x47e7d7['pivot']['valuePosition']===_0x3fa86b['None']?_0x3fa86b[_0x508911(0x200)]:_0x47e7d7[_0x508911(0x106)][_0x508911(0x3ca)]),'options':[{'value':String(_0x3fa86b[_0x508911(0x200)]),'label':_0xbadeae['t'](_0x508911(0x1a4))},{'value':String(_0x3fa86b['Row']),'label':_0xbadeae['t'](_0x508911(0xce))}],'onChange':_0x5e5478=>{const _0x51cea2=_0x508911;let _0x487a22=[_0x3fa86b[_0x51cea2(0x200)],_0x3fa86b['Row']]['find'](_0x3df4ee=>String(_0x3df4ee)===_0x5e5478);_0x487a22!==void 0x0&&_0x4c94fc(_0x4e2d07=>_0x4e2d07['updateValuePosition'](_0x487a22,_0x4e2d07[_0x51cea2(0x2a0)]()<0x0?0x0:_0x4e2d07[_0x51cea2(0x2a0)]()));}})]}),_0x2fa798(_0x508911(0x249),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0xbadeae['t']('bases-dashboard-ui.pivot.pageWrap'),_0x5628d9(_0x57c888,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x1c7b69[_0x508911(0x3ae)]??0x1,'onChange':_0xb09cd7=>{const _0x7dd5cc=_0x508911;let _0x405912=Number(_0xb09cd7);Number[_0x7dd5cc(0x206)](_0x405912)&&_0x405912>=0x1&&_0x3fd2b6({'pageWrap':_0x405912});}})]}),_0x2fa798('label',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0xbadeae['t'](_0x508911(0xe3)),_0x5628d9(_0x701e3d,{'className':'univer-w-36','value':String(_0x1c7b69[_0x508911(0x188)]??!0x1),'options':[{'value':_0x508911(0xf6),'label':_0xbadeae['t'](_0x508911(0x18d))},{'value':_0x508911(0x1da),'label':_0xbadeae['t'](_0x508911(0x3a3))}],'onChange':_0x573e63=>_0x3fd2b6({'pageOverThenDown':_0x573e63==='true'})})]})]});}function go(_0x4fea19,_0x438192,_0x40e062,_0x320b83){const _0x44bb6c=_0x5d48da;let _0x325915=_0x4fea19[_0x44bb6c(0x21b)](_0x438192)[_0x44bb6c(0x153)](_0x12662f=>_0x4fea19['getFieldPositionInfoById'](_0x12662f[_0x44bb6c(0x2ce)]())[_0x44bb6c(0x1c3)]!==_0x87fd74[_0x44bb6c(0x24b)]);_0x40e062!==_0x87fd74['Value']&&_0x325915?_0x4fea19[_0x44bb6c(0x150)](_0x325915[_0x44bb6c(0x2ce)](),_0x40e062,_0x320b83):_0x4fea19['addFieldWithSourceId'](_0x438192,_0x40e062,_0x320b83);}function _o(_0x31f3ed,_0x531b9f,_0x4f37b5,_0x325ede){const _0x378272=_0x5d48da;return _0x531b9f===_0xd2fae4[_0x378272(0x1d1)]?_0x325ede:_0x531b9f===_0xd2fae4['date']&&_0x4f37b5?_0x52ec2b[_0x378272(0x231)](_0x4f37b5,Number(_0x31f3ed)):_0x31f3ed;}function vo(_0x34e402){const _0xd03e20=_0x5d48da;return _0x34e402[_0xd03e20(0x278)]===_0x3bfbe2[_0xd03e20(0x14f)]||_0x34e402[_0xd03e20(0x278)]===_0x3bfbe2[_0xd03e20(0x2d5)]||_0x34e402['type']===_0x3bfbe2[_0xd03e20(0x38a)]||_0x34e402['type']===_0x3bfbe2[_0xd03e20(0x393)];}function yo(_0x51dd41){const _0x3a7fd7=_0x5d48da;switch(_0x51dd41){case _0x87fd74[_0x3a7fd7(0x21e)]:return _0x3a7fd7(0x19a);case _0x87fd74[_0x3a7fd7(0x200)]:return _0x3a7fd7(0x284);case _0x87fd74[_0x3a7fd7(0x24b)]:return _0x3a7fd7(0x21d);default:return'bases-dashboard-ui.pivot.addToFilter';}}function bo({config:_0x5ba92f,onChange:_0x4c411f,runtime:_0xfedd9d,table:_0x54c544}){const _0x1006bb=_0x5d48da;let _0x564b76=_0x40463f(_0x1ecd96),[_0x3bce83,_0x3d0283]=_0x4ebd7a(_0x1006bb(0x204));return _0x2fa798(_0x1006bb(0x3da),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-96\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x564b76['t'](_0x1006bb(0x20c)),'className':_0x1006bb(0x217),'items':[{'label':_0x564b76['t'](_0x1006bb(0x172)),'panelId':_0x1006bb(0x2ed),'value':_0x1006bb(0x204)},{'label':_0x564b76['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'panelId':_0x1006bb(0x1c8),'value':_0x1006bb(0x106)}],'value':_0x3bce83,'variant':_0x1006bb(0x1d2),'onChange':_0x3d0283}),_0x5628d9(_0x1006bb(0x334),{'className':_0x1006bb(0x213),'children':_0x3bce83===_0x1006bb(0x204)?_0xfedd9d&&_0x5628d9(ma,{'config':_0x5ba92f,'runtime':_0xfedd9d,'tableName':_0x54c544[_0x1006bb(0x3d7)],'onChange':_0x4c411f}):_0x5628d9(so,{'config':_0x5ba92f,'table':_0x54c544,'onChange':_0x4c411f})})]});}function xo({tableId:_0x196ea7,unitId:_0xb95277,viewId:_0x4a9b2e}){const _0x2518f6=_0x5d48da;let _0x57d4ee=_0x40463f(_0x1e6f93),_0x29f593=_0x40463f(_0x4829da),_0xd14c90=_0x40463f(_0x53f9ce),_0x21b765=_0x40463f(_0x1ecd96),_0x398f99=_0x40463f(_0x2cf236),[_0x3cd74d,_0x3caaf4]=_0x4ebd7a(null),[_0x4d39aa,_0x43cb76]=_0x4ebd7a(null),_0x5a5f2b=_0x25fc59(_0x2518f6(0x118)+_0x2cedf9(0x8)),[_0x29f4b8,_0x517ea8]=_0x4ebd7a(!0x1),_0x3866ac=_0x29f593[_0x2518f6(0x17d)](_0xb95277,_0x247fc0[_0x2518f6(0x324)]),_0x1d788c=_0x3866ac==null?void 0x0:_0x3866ac[_0x2518f6(0x3e8)]()[_0x2518f6(0x3b5)][_0x196ea7],_0x4cd4f5=_0x1d788c==null?void 0x0:_0x1d788c['views'][_0x4a9b2e],_0x21f54b=So(_0x4cd4f5),_0x5c6939=yr(_0xb95277,_0x196ea7,_0x4a9b2e);if(_0x185176(()=>{const _0x321f81=_0x2518f6;if(!_0x21f54b)return;let _0x4214b2=_0x5a5f2b[_0x321f81(0xe8)];return _0x398f99[_0x321f81(0x1fe)](_0x4214b2,{'unitId':_0xb95277,'tableId':_0x196ea7,'viewId':_0x4a9b2e,'filters':[]}),()=>{const _0xdab2f=_0x321f81;_0x398f99[_0xdab2f(0x3e0)](_0xb95277,_0x4214b2);};},[_0x21f54b,_0x398f99,_0x196ea7,_0xb95277,_0x4a9b2e]),_0x185176(()=>{const _0x568035=_0x2518f6;if(!So(_0x4cd4f5))return;let _0x416e7d=!0x0,_0x129730={'unitId':_0xb95277,'tableId':_0x196ea7,'viewId':_0x4a9b2e,'filters':[_0x4cd4f5[_0x568035(0x122)]??null]};return _0x398f99[_0x568035(0x276)](_0xb95277,_0x5a5f2b['current'],_0x129730)['then'](_0x3d2e8c=>{_0x416e7d&&_0x3d2e8c&&(_0x3caaf4(_0x3d2e8c),_0x43cb76(_0x398f99['getChartRuntime'](_0xb95277,_0x5a5f2b['current'])??null),_0x517ea8(!0x1));})['catch'](_0x2dfe3b=>{const _0x186166=_0x568035;_0xd14c90[_0x186166(0x1a0)](_0x186166(0x30d),_0x2dfe3b),_0x416e7d&&(_0x3caaf4(null),_0x517ea8(!0x0));}),()=>{_0x416e7d=!0x1;};},[_0xd14c90,_0x398f99,_0x196ea7,_0xb95277,_0x4cd4f5,_0x4a9b2e]),!_0x1d788c||!So(_0x4cd4f5))return null;let _0x425a58=_0x398f99['getChartRuntime'](_0xb95277,_0x5a5f2b[_0x2518f6(0xe8)])===_0x4d39aa?_0x4d39aa:null,_0x3a9441=_0x3cd74d?_0x2fa798(_0x2518f6(0x334),{'className':_0x2518f6(0x377),'style':{'gridTemplateRows':_0x4cd4f5[_0x2518f6(0xa7)][_0x2518f6(0x31a)]==='chart-and-table'?_0x2518f6(0x346):'minmax(0,\x201fr)'},'children':[_0x4cd4f5['config']['displayMode']!==_0x2518f6(0x2d3)&&_0x425a58&&_0x5628d9('div',{'className':_0x2518f6(0x3d5),'children':_0x5628d9(Rr,{'isRowDirection':_0x1aba1a(_0x4cd4f5[_0x2518f6(0xa7)][_0x2518f6(0x204)][_0x2518f6(0x1e8)]),'runtime':_0x425a58})}),_0x4cd4f5[_0x2518f6(0xa7)][_0x2518f6(0x31a)]!==_0x2518f6(0x204)&&_0x5628d9(_0x2518f6(0x334),{'className':_0x2518f6(0x24e),'children':_0x5628d9(ji,{'pivot':_0x4cd4f5[_0x2518f6(0xa7)][_0x2518f6(0x106)],'view':_0x3cd74d[_0x2518f6(0x29c)]})})]}):_0x5628d9('div',{'className':_0x2518f6(0x3aa),'children':_0x29f4b8?_0x21b765['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x21b765['t']('bases-dashboard-ui.pivot.calculating')});return _0x2fa798(_0x2518f6(0x334),{'className':_0x2518f6(0x290),'children':[_0x5628d9(_0x2518f6(0x334),{'className':_0x2518f6(0x17c),'children':_0x3a9441}),_0x5c6939&&_0x5628d9(bo,{'config':_0x4cd4f5[_0x2518f6(0xa7)],'runtime':_0x425a58,'table':_0x1d788c,'onChange':_0x334a47=>{const _0x3f5043=_0x2518f6;_0x57d4ee[_0x3f5043(0x3e3)](_0x173771['id'],{'unitId':_0xb95277,'tableId':_0x196ea7,'viewId':_0x4a9b2e,'patch':_0x334a47})[_0x3f5043(0x26d)](_0x4c806a=>_0xd14c90[_0x3f5043(0x1a0)](_0x3f5043(0x1b6),_0x4c806a));}})]});}function So(_0x1c7c16){const _0x297745=_0x5d48da;return(_0x1c7c16==null?void 0x0:_0x1c7c16[_0x297745(0x278)])===_0xc74f11[_0x297745(0xe1)]&&typeof _0x1c7c16[_0x297745(0xa7)]==_0x297745(0x262)&&_0x1c7c16[_0x297745(0xa7)]!==null&&_0x297745(0x106)in _0x1c7c16['config']&&_0x297745(0x204)in _0x1c7c16['config']&&_0x297745(0x31a)in _0x1c7c16[_0x297745(0xa7)];}let Co=class extends _0x419e57{constructor(_0x2c0e23,_0x3c9994,_0x715b75,_0x5e0bd9,_0x30d75f,_0x31867a){const _0x10185c=_0x5d48da;super(),this[_0x10185c(0x1dc)](_0x3c9994[_0x10185c(0x343)]({'type':_0xc74f11[_0x10185c(0xe1)],'renderMode':_0x10185c(0x255),'icon':_0x55ff4b,'component':xo,'menu':{get 'label'(){const _0x3e8ff4=_0x10185c;return _0x31867a['t'](_0x3e8ff4(0x20c));},get 'description'(){return _0x31867a['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){const _0x530b4d=_0x10185c;return _0x31867a['t'](_0x530b4d(0x2d8));}}})),this[_0x10185c(0x1dc)](_0x2c0e23['register'](wo(_0x715b75,_0x5e0bd9,_0x30d75f,_0x31867a)));}};Co=Ar([Y(0x0,_0x5b5009),Y(0x1,_0x414da1),Y(0x2,_0x2d5804(_0x3a16be)),Y(0x3,_0x1e6f93),Y(0x4,_0x100697),Y(0x5,_0x2d5804(_0x1ecd96))],Co);function _0x187c(_0x9f099f,_0x203d0e){_0x9f099f=_0x9f099f-0x9a;const _0x1f688e=_0x1f68();let _0x187c20=_0x1f688e[_0x9f099f];return _0x187c20;}function wo(_0x434256,_0x175cd5,_0x58dd2f,_0x355255){const _0x493f81=_0x5d48da;return{'change$':_0x5f1bfe(_0x434256['change$'],_0x58dd2f[_0x493f81(0x27a)]),'component':Xa,get 'labels'(){const _0x3096ff=_0x493f81;return{'add':_0x355255['t']('bases-dashboard-ui.dashboard.add'),'configure':_0x1ccedb=>_0x355255['t'](_0x3096ff(0x364),_0x1ccedb),'delete':_0x355255['t']('bases-dashboard-ui.dashboard.delete'),'new':_0x355255['t'](_0x3096ff(0x234)),'rename':_0x355255['t'](_0x3096ff(0x357)),'search':_0x355255['t']('bases-dashboard-ui.dashboard.search'),'section':_0x355255['t'](_0x3096ff(0x303))};},'getItems':_0x287529=>{const _0x4ecd86=_0x493f81;let _0xd7cdbb=_0x434256[_0x4ecd86(0xc1)](_0x287529);return _0xd7cdbb['dashboardOrder']['flatMap'](_0xb98674=>{const _0x3636af=_0x4ecd86;let _0x2ddb62=_0xd7cdbb['dashboards'][_0xb98674];return _0x2ddb62?[{'id':_0x2ddb62['id'],'name':_0x2ddb62[_0x3636af(0x3d7)],'readonly':!_0x5706cb(_0x58dd2f,_0x287529,_0x2ddb62['id'])}]:[];});},'create':async _0x53f19b=>{const _0x409b72=_0x493f81;let _0x53278c=_0x434256[_0x409b72(0xc1)](_0x53f19b),_0x10ff23=_0x409b72(0x25d)+_0x2cedf9(0x8),_0x472a6b=To(_0x53278c[_0x409b72(0xd4)][_0x409b72(0x1ac)](_0x180f8e=>{const _0x22bce0=_0x409b72;let _0x1406f6=_0x53278c['dashboards'][_0x180f8e];return _0x1406f6?[_0x1406f6[_0x22bce0(0x3d7)]]:[];}),_0xd3766c=>_0x355255['t'](_0x409b72(0xc0),String(_0xd3766c)));return await _0x175cd5[_0x409b72(0x3e3)](_0x4764c4['id'],{'unitId':_0x53f19b,'dashboard':{'id':_0x10ff23,'name':_0x472a6b,'widgetOrder':[],'widgets':{}}})?_0x10ff23:null;},'rename':async(_0x19767c,_0x15322f,_0x8ba776)=>{const _0x3666a8=_0x493f81;let _0x3823b7=_0x434256[_0x3666a8(0x18b)](_0x19767c,_0x15322f);return!!(_0x3823b7&&await _0x175cd5[_0x3666a8(0x3e3)](_0x1e3e1b['id'],{'unitId':_0x19767c,'dashboard':{..._0x3823b7,'name':_0x8ba776}}));},'remove':(_0x3b8b17,_0xa245bb)=>_0x175cd5[_0x493f81(0x3e3)](_0x391460['id'],{'unitId':_0x3b8b17,'dashboardId':_0xa245bb})};}function To(_0x4d7f12,_0x422f1a){const _0x5b7964=_0x5d48da;let _0x194faf=new Set(_0x4d7f12),_0x391e73=_0x194faf[_0x5b7964(0x3bc)]+0x1,_0x4812fc=_0x422f1a(_0x391e73);for(;_0x194faf['has'](_0x4812fc);)_0x391e73+=0x1,_0x4812fc=_0x422f1a(_0x391e73);return _0x4812fc;}let Eo=class extends _0x1ea012{constructor(_0x55d3b7=_r,_0x2c001a,_0x4ccc68){const _0x1d28fe=_0x5d48da;super(),this['_config']=_0x55d3b7,this[_0x1d28fe(0xbf)]=_0x2c001a,this['_configService']=_0x4ccc68;let {..._0x131bf2}=_0x362ea8({},_r,this[_0x1d28fe(0x1b1)]);this[_0x1d28fe(0xc6)][_0x1d28fe(0x340)](gr,_0x131bf2);}[_0x5d48da(0x3a1)](){const _0x425116=_0x5d48da;this[_0x425116(0xbf)][_0x425116(0x1bf)]([jr]),this[_0x425116(0xbf)][_0x425116(0x1bf)]([qr]),this[_0x425116(0xbf)][_0x425116(0x1bf)]([Co]);}[_0x5d48da(0x187)](){_0xe4152(this['_injector'],[[jr],[qr],[Co]]);}};Ir(Eo,_0x5d48da(0x278),_0x247fc0[_0x5d48da(0x324)]),Ir(Eo,_0x5d48da(0x299),'BASE_DASHBOARD_UI_PLUGIN'),Ir(Eo,_0x5d48da(0x37d),mr),Ir(Eo,_0x5d48da(0x1ae),hr),Eo=Ar([_0xb94e7b(_0x5d1ed0,_0x7e7509,_0x408ea8,_0x41f191,_0xff803e,_0x175601),Y(0x1,_0x2d5804(_0x3c350b)),Y(0x2,_0x8e960e)],Eo);export{ia as UniverBaseDashboardMobileUIPlugin,Eo as UniverBaseDashboardUIPlugin};