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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/cs-CZ.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/nl-NL.js +1 -1
  15. package/lib/cjs/locale/pl-PL.js +1 -1
  16. package/lib/cjs/locale/pt-BR.js +1 -1
  17. package/lib/cjs/locale/ru-RU.js +1 -1
  18. package/lib/cjs/locale/sk-SK.js +1 -1
  19. package/lib/cjs/locale/th-TH.js +1 -1
  20. package/lib/cjs/locale/tr-TR.js +1 -1
  21. package/lib/cjs/locale/uk-UA.js +1 -1
  22. package/lib/cjs/locale/vi-VN.js +1 -1
  23. package/lib/cjs/locale/zh-CN.js +1 -1
  24. package/lib/cjs/locale/zh-HK.js +1 -1
  25. package/lib/cjs/locale/zh-TW.js +1 -1
  26. package/lib/es/index.js +1 -1
  27. package/lib/es/locale/ar-SA.js +1 -1
  28. package/lib/es/locale/ca-ES.js +1 -1
  29. package/lib/es/locale/cs-CZ.js +1 -1
  30. package/lib/es/locale/de-DE.js +1 -1
  31. package/lib/es/locale/en-US.js +1 -1
  32. package/lib/es/locale/es-ES.js +1 -1
  33. package/lib/es/locale/fa-IR.js +1 -1
  34. package/lib/es/locale/fr-FR.js +1 -1
  35. package/lib/es/locale/id-ID.js +1 -1
  36. package/lib/es/locale/it-IT.js +1 -1
  37. package/lib/es/locale/ja-JP.js +1 -1
  38. package/lib/es/locale/ko-KR.js +1 -1
  39. package/lib/es/locale/nl-NL.js +1 -1
  40. package/lib/es/locale/pl-PL.js +1 -1
  41. package/lib/es/locale/pt-BR.js +1 -1
  42. package/lib/es/locale/ru-RU.js +1 -1
  43. package/lib/es/locale/sk-SK.js +1 -1
  44. package/lib/es/locale/th-TH.js +1 -1
  45. package/lib/es/locale/tr-TR.js +1 -1
  46. package/lib/es/locale/uk-UA.js +1 -1
  47. package/lib/es/locale/vi-VN.js +1 -1
  48. package/lib/es/locale/zh-CN.js +1 -1
  49. package/lib/es/locale/zh-HK.js +1 -1
  50. package/lib/es/locale/zh-TW.js +1 -1
  51. package/lib/index.js +1 -1
  52. package/lib/locale/ar-SA.js +1 -1
  53. package/lib/locale/ca-ES.js +1 -1
  54. package/lib/locale/cs-CZ.js +1 -1
  55. package/lib/locale/de-DE.js +1 -1
  56. package/lib/locale/en-US.js +1 -1
  57. package/lib/locale/es-ES.js +1 -1
  58. package/lib/locale/fa-IR.js +1 -1
  59. package/lib/locale/fr-FR.js +1 -1
  60. package/lib/locale/id-ID.js +1 -1
  61. package/lib/locale/it-IT.js +1 -1
  62. package/lib/locale/ja-JP.js +1 -1
  63. package/lib/locale/ko-KR.js +1 -1
  64. package/lib/locale/nl-NL.js +1 -1
  65. package/lib/locale/pl-PL.js +1 -1
  66. package/lib/locale/pt-BR.js +1 -1
  67. package/lib/locale/ru-RU.js +1 -1
  68. package/lib/locale/sk-SK.js +1 -1
  69. package/lib/locale/th-TH.js +1 -1
  70. package/lib/locale/tr-TR.js +1 -1
  71. package/lib/locale/uk-UA.js +1 -1
  72. package/lib/locale/vi-VN.js +1 -1
  73. package/lib/locale/zh-CN.js +1 -1
  74. package/lib/locale/zh-HK.js +1 -1
  75. package/lib/locale/zh-TW.js +1 -1
  76. package/lib/umd/index.js +1 -1
  77. package/lib/umd/locale/ar-SA.js +1 -1
  78. package/lib/umd/locale/ca-ES.js +1 -1
  79. package/lib/umd/locale/cs-CZ.js +1 -1
  80. package/lib/umd/locale/de-DE.js +1 -1
  81. package/lib/umd/locale/en-US.js +1 -1
  82. package/lib/umd/locale/es-ES.js +1 -1
  83. package/lib/umd/locale/fa-IR.js +1 -1
  84. package/lib/umd/locale/fr-FR.js +1 -1
  85. package/lib/umd/locale/id-ID.js +1 -1
  86. package/lib/umd/locale/it-IT.js +1 -1
  87. package/lib/umd/locale/ja-JP.js +1 -1
  88. package/lib/umd/locale/ko-KR.js +1 -1
  89. package/lib/umd/locale/nl-NL.js +1 -1
  90. package/lib/umd/locale/pl-PL.js +1 -1
  91. package/lib/umd/locale/pt-BR.js +1 -1
  92. package/lib/umd/locale/ru-RU.js +1 -1
  93. package/lib/umd/locale/sk-SK.js +1 -1
  94. package/lib/umd/locale/th-TH.js +1 -1
  95. package/lib/umd/locale/tr-TR.js +1 -1
  96. package/lib/umd/locale/uk-UA.js +1 -1
  97. package/lib/umd/locale/vi-VN.js +1 -1
  98. package/lib/umd/locale/zh-CN.js +1 -1
  99. package/lib/umd/locale/zh-HK.js +1 -1
  100. package/lib/umd/locale/zh-TW.js +1 -1
  101. package/package.json +18 -18
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3447f8=_0x1596;(function(_0x4569f3,_0xdc0e1a){const _0x47caef=_0x1596,_0x633aa1=_0x4569f3();while(!![]){try{const _0x309319=-parseInt(_0x47caef(0x222))/0x1+-parseInt(_0x47caef(0x1af))/0x2+parseInt(_0x47caef(0x3d8))/0x3*(parseInt(_0x47caef(0x3ac))/0x4)+parseInt(_0x47caef(0x16c))/0x5+-parseInt(_0x47caef(0x39c))/0x6*(parseInt(_0x47caef(0x13b))/0x7)+parseInt(_0x47caef(0x182))/0x8*(-parseInt(_0x47caef(0xf6))/0x9)+parseInt(_0x47caef(0x38b))/0xa*(parseInt(_0x47caef(0x185))/0xb);if(_0x309319===_0xdc0e1a)break;else _0x633aa1['push'](_0x633aa1['shift']());}catch(_0x5e4984){_0x633aa1['push'](_0x633aa1['shift']());}}}(_0x3448,0xe8d33));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x35833c,BASES_DASHBOARD_GRID_COLUMNS as _0x25ec11,BaseChartRuntimeService as _0x2cc67a,BaseDashboardResourceService as _0x4e6cdd,BaseDashboardWidgetType as _0x28a714,CreateBaseDashboardCommand as _0x15bed1,DeleteBaseDashboardCommand as _0x56eacd,RemoveBaseDashboardWidgetCommand as _0x25ddde,UniverBaseDashboardPlugin as _0x12b6ef,UpdateBaseDashboardCommand as _0x51a517,UpdateBasePivotViewCommand as _0x22ea58,UpsertBaseDashboardWidgetCommand as _0x49cadf,canEditBaseDashboard as _0x314d1d,canEditBasePivotView as _0x46c031,createBasePivotTable as _0x57279f,resolveBasePivotChartRowDirection as _0x18785d}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0xe74b73,BaseMobileDrawer as _0x14b201,BaseMobileFilterOperand as _0x2001af,BaseMobileFilterPanel as _0x22f272,BaseUnitCollaborationStatus as _0x484f3c,FormulaEditorPanel as _0x1d7a56,IBaseDashboardUIExtensionRegistryService as _0x3460c3,IBaseViewUIRegistryService as _0x198cb9,MobileFormulaEditorPanel as _0x4689e6,UniverBasesMobileUIPlugin as _0x2e4e9f,UniverBasesUIPlugin as _0x3c0cd9,formulaToEditorFormula as _0x3ae876,normalizeEditorFormulaForConfig as _0x3949ea,toFormulaMenuTables as _0x11a6ff,toMenuFields as _0x295488}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x1016f1,ChartAxisSection as _0x3ee0e8,ChartColorField as _0x2d27c8,ChartCommonDataMappingSection as _0x3a6df3,ChartEditBlockTitle as _0x36a7b3,ChartEditPanel as _0x2a9829,ChartEditPanelSection as _0x2ecbeb,ChartEditPanelTab as _0x2599aa,ChartEditPanelTabs as _0x283559,ChartEditorCapability as _0x44db8c,ChartEditorProvider as _0x4bde66,ChartFunnelStyleSection as _0x7de25d,ChartGradientFillField as _0x5103da,ChartGridlinesAndTicksSection as _0x3fd0a7,ChartHeatmapStyleSection as _0x51ee3a,ChartHostAdapter as _0x3832ea,ChartIndicatorLineSection as _0x566467,ChartLegendSection as _0x4d3419,ChartLineAndAreaSection as _0x171453,ChartNumberFormatAtom as _0x3220da,ChartParetoSeriesSection as _0x44a0fb,ChartPieStyleSection as _0x4b289c,ChartRadarStyleSection as _0x1d9e1f,ChartRelationStyleSection as _0xa63c30,ChartSectionAccordion as _0x11d43d,ChartSectionAccordionContent as _0x3206aa,ChartSectionAccordionItem as _0x8a2ccf,ChartSectionAccordionTrigger as _0x32883f,ChartSeriesSection as _0x33c14c,ChartStackField as _0x2fa3d3,ChartStyleSection as _0x20d08d,ChartThemeField as _0x57f87a,ChartTitlesSection as _0x245340,ChartTrendlineSection as _0x3c2f68,ChartTypeField as _0x28e1f3,ChartTypeSpecificDataSection as _0x20436f,ChartTypeSpecificSetupSection as _0x2fc38a,ChartTypeSpecificStyleSection as _0x2412a5,ChartUIService as _0xa5aa5a,ChartViewStateRegistry as _0x91bc23,ChartWaterfallSetupFields as _0x4b136e,ChartWaterfallStyleSection as _0x166174,ChartWordCloudStyleSection as _0x13d7d7,DEFAULT_CHART_AXIS_VALUES as _0x152708,DEFAULT_CHART_FUNNEL_VALUES as _0x540e6b,DEFAULT_CHART_HEATMAP_VALUES as _0x5badfc,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x252eea,DEFAULT_CHART_LEGEND_VALUES as _0x337e65,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x5e0a33,DEFAULT_CHART_PARETO_VALUES as _0x38048e,DEFAULT_CHART_PIE_VALUES as _0x1c8b9e,DEFAULT_CHART_RADAR_VALUES as _0x4bcca4,DEFAULT_CHART_RELATION_VALUES as _0x3de6de,DEFAULT_CHART_SERIES_VALUES as _0x324182,DEFAULT_CHART_STYLE_VALUES as _0xd40535,DEFAULT_CHART_TITLE_VALUES as _0x289a2d,DEFAULT_CHART_TRENDLINE_VALUES as _0x4c6d30,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x15085e,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x3f0564,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x145212,MobileChartEditorControls as _0x342c29,MobileChartEditorProvider as _0x378b2c,UniverChartMobileUIPlugin as _0x54ced9,UniverChartUIPlugin as _0x22f198,buildChartTypeSelectOptions as _0x4fc7e8,chartTypeSupportsCapability as _0xe0cb49,chartTypeSupportsLineAndAreaStyle as _0x2aabdc,useChartEditorChartType as _0x3d34ba,useChartEditorHasRightAxis as _0x20bafb}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x267ea2}from'@univerjs-pro/license';import{ShapeFormulaService as _0xc23566,UniverShapeEditorPlugin as _0x100373,createFormulaShapeData as _0x30a9dd}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0x2940a8,BaseFilterConjunction as _0x3a6b1d,BaseFilterOperator as _0x411cb8,BaseViewType as _0x4da0de,DependentOn as _0xc92a94,Disposable as _0x47ac6f,ICommandService as _0x1ec317,IConfigService as _0x56e562,IImageIoService as _0x2cceec,ILogService as _0x133842,IPermissionService as _0x58608a,IUndoRedoService as _0x3c357b,IUniverInstanceService as _0xa15270,ImageSourceType as _0x188e10,Inject as _0x1e6fb0,Injector as _0x49fd9b,LocaleService as _0x255457,ObjectPermissionService as _0x346c1c,Plugin as _0x4b5524,RedoCommand as _0x1df103,ThemeService as _0x22d94c,UndoCommand as _0xbacc2f,UniverInstanceType as _0x6e7cef,createParagraphId as _0x156ce9,dateKit as _0xa2fcf,generateRandomId as _0x2aef82,merge as _0x2b2cf0,numfmt as _0x254bab,touchDependencies as _0x3ce29c}from'@univerjs/core';import{UniverDocsUIPlugin as _0x442bae}from'@univerjs/docs-ui';import{ArrowDownIcon as _0x4857ec,ArrowUpIcon as _0x40d299,AscendingIcon as _0x2a08ae,CalendarIcon as _0x1437d4,ChartIcon as _0x4cc2bb,CloseIcon as _0x54b54f,DeleteIcon as _0x306b68,DescendingIcon as _0x20c70b,ExpandIcon as _0x2e21be,FilterIcon as _0x48629d,GripVerticalIcon as _0x229479,IncreaseIcon as _0x34ddb8,MoreDownIcon as _0x2e92dc,MoreHorizontalIcon as _0x46df20,NumberIcon as _0x5b2a53,PenIcon as _0x41a33d,PivotTableIcon as _0x551361,ProtectIcon as _0x3bf51c,RedoIcon as _0x40da8b,SearchIcon as _0x10f455,TextIcon as _0x3177bc,UndoIcon as _0x32ef86}from'@univerjs/icons';import{combineLatest as _0x35ec39,map as _0x26242b,merge as _0x1691f8,skip as _0x4f0506}from'rxjs';import{SetBasePermissionCommand as _0x180c8f,getBaseDashboardPermissionObjectId as _0x4e82aa}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x230a38}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x40e758,ShapeLineTypeEnum as _0x1c4533,ShapeTypeEnum as _0x337cc8}from'@univerjs-pro/engine-shape';import{Button as _0x10d589,Checkbox as _0x22d09c,DatePicker as _0x27fb91,Dialog as _0x1ab529,DropdownMenu as _0x86d9a9,Input as _0x2647d7,InputNumber as _0x499d19,MobileDialog as _0x2661d2,MobileDropdownMenu as _0x3837bd,MobileSelect as _0xea1085,MultipleSelect as _0x57fab8,Segmented as _0x1eff91,Select as _0x4b13fc,Textarea as _0x539ea5,Tooltip as _0x310d74,borderClassName as _0x243840,clsx as _0x54dbd2,scrollbarClassName as _0x2bbb9f}from'@univerjs/design';import{UnitObject as _0x1349b1}from'@univerjs/protocol';import{ILayoutService as _0x5d52a6,ObjectPermissionButton as _0x903bf7,openObjectPermissionDialog as _0x5a6cf8,useDependency as _0x53af8d,useObservable as _0x129d28}from'@univerjs/ui';import{useCallback as _0x2f6d8e,useEffect as _0x543512,useMemo as _0x125177,useRef as _0x4523d4,useState as _0xee90d5}from'react';import{Fragment as _0x594ef8,jsx as _0x1fa005,jsxs as _0x5c238f}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x133cf9,ChartRenderMode as _0x4306b5,ChartThemeService as _0x2d3e2e,ChartTypeBits as _0x44b61b,ChartWaterfallStyleTarget as _0x1aea73,IChartRenderModelManagerService as _0x2ba92b,RTLChartStyle as _0x2ce46e,chartBitsUtils as _0x51a8fc,chartTypeCanUseTrendLine as _0x5b26be,resolveChartRuntimeStyle as _0x5641c4,resolveDefaultChartHostFrameStyle as _0x3bc6f7,toChartModelUpdate as _0x3fd4b5}from'@univerjs-pro/engine-chart';import{createPortal as _0x46c06e}from'react-dom';import{PivotCellStyleTypeEnum as _0x534fec,PivotDataFieldDataTypeEnum as _0x25f34a,PivotDataFieldSortOperatorEnum as _0x428f40,PivotFilterTypeEnum as _0x5a8717,PivotLayoutTypeEnum as _0x185dea,PivotSubtotalPositionEnum as _0x568753,PivotSubtotalTypeEnum as _0x1f46e1,PivotTableFiledAreaEnum as _0x23447d,PivotTableValuePositionEnum as _0x2d76e7,isErrorValue as _0x20d60c,isPrefixValue as _0x958be8}from'@univerjs-pro/engine-pivot';var fr=_0x3447f8(0x166),pr=_0x3447f8(0x191);const mr=_0x3447f8(0x19c),hr={};function gr(_0x5dc133,_0x5ea750){const _0x438697=_0x3447f8;let _0xe0ae4=_0x53af8d(_0x58608a),_0x2a9a56=_0x314d1d(_0xe0ae4,_0x5dc133,_0x5ea750);return _0x129d28(()=>_0xe0ae4[_0x438697(0x214)][_0x438697(0x387)](_0x26242b(()=>_0x314d1d(_0xe0ae4,_0x5dc133,_0x5ea750))),_0x2a9a56,!0x1,[_0x5ea750,_0xe0ae4,_0x5dc133]);}function _r(_0x5abc36,_0x3bbc18,_0x1239e6){const _0x4e10f9=_0x3447f8;let _0x1991bf=_0x53af8d(_0x58608a),_0x5d1eff=_0x46c031(_0x1991bf,_0x5abc36,_0x3bbc18,_0x1239e6);return _0x129d28(()=>_0x1991bf[_0x4e10f9(0x214)][_0x4e10f9(0x387)](_0x26242b(()=>_0x46c031(_0x1991bf,_0x5abc36,_0x3bbc18,_0x1239e6))),_0x5d1eff,!0x1,[_0x1991bf,_0x3bbc18,_0x5abc36,_0x1239e6]);}function vr(_0x24c184,_0x38dad0=_0x3447f8(0x285)){const _0x4528bd=_0x3447f8;return{'backgroundImage':'url('+JSON[_0x4528bd(0x1d3)](_0x24c184)+')','backgroundPosition':_0x38dad0===_0x4528bd(0x2af)?_0x4528bd(0x407):_0x4528bd(0x1e4),'backgroundRepeat':_0x38dad0===_0x4528bd(0x2af)?_0x4528bd(0x2af):_0x4528bd(0x137),'backgroundSize':_0x38dad0===_0x4528bd(0x285)?_0x4528bd(0x285):_0x4528bd(0x195)};}const yr={'alignment':_0x3447f8(0x1b4),'currency':'USD','decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x3447f8(0x195),'numberFormat':'general'},br={'CNY':'¥','EUR':'€','USD':'$'};function xr(_0x3dd396){const _0x535403=_0x3447f8;var _0x538dc8;let _0x4622f1=Tr(((_0x538dc8=_0x3dd396[_0x535403(0x100)][_0x535403(0x23f)])==null||(_0x538dc8=_0x538dc8[_0x535403(0x235)])==null?void 0x0:_0x538dc8[_0x535403(0x338)])??'');return{...yr,..._0x4622f1,..._0x3dd396[_0x535403(0x2d3)]};}function Sr(_0x14a122,_0x5d5e46){const _0x1e5b43=_0x3447f8;let _0x1c6631={..._0x14a122[_0x1e5b43(0x2d3)],..._0x5d5e46},_0xe72fa2=xr({..._0x14a122,'appearance':_0x1c6631}),_0x12131e=_0x14a122[_0x1e5b43(0x100)][_0x1e5b43(0x23f)]??{'formula':''};return{..._0x14a122,'appearance':_0x1c6631,'shapeData':{..._0x14a122[_0x1e5b43(0x100)],'formulaBinding':{..._0x12131e,'numberFormat':{'pattern':Cr(_0xe72fa2[_0x1e5b43(0x235)],_0xe72fa2[_0x1e5b43(0xb9)],_0xe72fa2['currency'])}}}};}function Cr(_0x5bb5b0,_0x51b8a4,_0x12d7b1){const _0x47be1d=_0x3447f8;let _0x332ce7=Math[_0x47be1d(0x351)](0x0,Math[_0x47be1d(0x379)](0x8,Math[_0x47be1d(0x323)](_0x51b8a4))),_0x531e6f=_0x332ce7?'.'+'0'[_0x47be1d(0x2af)](_0x332ce7):'';switch(_0x5bb5b0){case _0x47be1d(0x30d):return'0'+_0x531e6f;case _0x47be1d(0x277):return'0'+_0x531e6f+'%';case _0x47be1d(0x39b):return(br[_0x12d7b1]??_0x12d7b1)+'#,##0'+_0x531e6f;case _0x47be1d(0x196):return _0x47be1d(0x3a5)+_0x531e6f;case _0x47be1d(0x3da):case _0x47be1d(0x20a):return _0x47be1d(0x2f4);}}function wr(_0x55f4a7,_0x3f1131,_0x9d487a){const _0x5c4bcd=_0x3447f8;return _0x9d487a[_0x5c4bcd(0x235)]!=='compact'||typeof _0x3f1131!='number'||!Number[_0x5c4bcd(0x1b3)](_0x3f1131)?_0x55f4a7:new Intl[(_0x5c4bcd(0x259))](void 0x0,{'notation':_0x5c4bcd(0x3da),'minimumFractionDigits':_0x9d487a['decimalPlaces']??0x0,'maximumFractionDigits':_0x9d487a[_0x5c4bcd(0xb9)]??0x0})[_0x5c4bcd(0x11b)](_0x3f1131);}function Tr(_0x542fb5){const _0x425db9=_0x3447f8;var _0xac698b,_0x169c34;if(!_0x542fb5||_0x542fb5==='General')return{};let _0x30b69a=_0x542fb5['match'](/\.([0#]+)/),_0x727516=(_0x30b69a==null||(_0xac698b=_0x30b69a[0x1])==null?void 0x0:_0xac698b[_0x425db9(0x2c8)])??0x0;if(_0x542fb5[_0x425db9(0x2f8)]('%'))return{'decimalPlaces':_0x727516,'numberFormat':'percent'};let _0x419f1a=(_0x169c34=Object[_0x425db9(0x3bb)](br)[_0x425db9(0x2c9)](([,_0x97f3b])=>_0x542fb5[_0x425db9(0x2f8)](_0x97f3b)))==null?void 0x0:_0x169c34[0x0];return _0x419f1a?{'currency':_0x419f1a,'decimalPlaces':_0x727516,'numberFormat':_0x425db9(0x39b)}:{'decimalPlaces':_0x727516,'numberFormat':_0x542fb5[_0x425db9(0x2f8)](',')?_0x425db9(0x196):_0x425db9(0x30d)};}const Er={'center':_0x3447f8(0x1e4),'left':'flex-start','right':_0x3447f8(0x104)};function Dr({dashboardId:_0x2f0f80,unitId:_0x2b2bd6,widget:_0x404089}){const _0x39f975=_0x3447f8;var _0x519905,_0x2c3d5c,_0x12eb90,_0x37a76c,_0x420cd6,_0x2626e4,_0x3131a3,_0x237e56,_0x276d66;let _0x43c130=_0x53af8d(_0xc23566),_0x439648=_0x53af8d(_0x2cceec),_0x1975e3=_0x53af8d(_0x255457),_0x4295dc=_0x125177(()=>({'hostType':_0x6e7cef[_0x39f975(0x1f7)],'unitId':_0x2b2bd6,'subUnitId':_0x2f0f80,'shapeId':_0x404089['id']}),[_0x2f0f80,_0x2b2bd6,_0x404089['id']]),[_0x52d507,_0x2bfe50]=_0xee90d5(()=>_0x43c130['getPresentation'](_0x4295dc)),[_0x18a6fd,_0x5c6938]=_0xee90d5(()=>{const _0x2ca5d1=_0x39f975;var _0x38de1a;return(_0x38de1a=_0x43c130[_0x2ca5d1(0x19d)](_0x4295dc))==null?void 0x0:_0x38de1a['value'];}),[_0x3fe820,_0x256cfd]=_0xee90d5(),_0x3c929e=_0x4523d4(null),_0x505693=_0x4523d4(null),_0x4bb213=xr(_0x404089);_0x543512(()=>{const _0x525f7a=_0x39f975;let _0x5651df=_0x43c130[_0x525f7a(0x3d2)][_0x525f7a(0x178)](_0x5c9c9a=>{const _0x13d8b8=_0x525f7a;_0x5c9c9a[_0x13d8b8(0x184)]===_0x2b2bd6&&_0x5c9c9a['subUnitId']===_0x2f0f80&&_0x5c9c9a[_0x13d8b8(0x353)]===_0x404089['id']&&(_0x2bfe50(_0x5c9c9a[_0x13d8b8(0x131)]),_0x5c6938(_0x5c9c9a['result'][_0x13d8b8(0x2c2)]));});return()=>_0x5651df[_0x525f7a(0x3c6)]();},[_0x2f0f80,_0x43c130,_0x4295dc,_0x2b2bd6,_0x404089['id']]),_0x543512(()=>{const _0x468ccc=_0x39f975;let _0x3af951=_0x4bb213[_0x468ccc(0x294)];if(!_0x3af951||_0x3af951[_0x468ccc(0xd9)]!==_0x188e10[_0x468ccc(0x234)])return;let _0x57a11e=_0x439648[_0x468ccc(0x152)](_0x3af951[_0x468ccc(0x2c6)],_0x3af951[_0x468ccc(0xd9)]);if(_0x57a11e!=null&&_0x57a11e[_0x468ccc(0xba)])return;let _0x32f752=!0x0;return _0x439648['getImage'](_0x3af951[_0x468ccc(0x2c6)])['then'](_0x55345f=>{const _0x2887af=_0x468ccc;_0x32f752&&_0x256cfd({'source':_0x3af951[_0x2887af(0x2c6)],'value':_0x55345f});})['catch'](()=>void 0x0),()=>{_0x32f752=!0x1;};},[_0x4bb213[_0x39f975(0x294)],_0x439648]);let _0x3257d7=((_0x519905=_0x4bb213['backgroundImage'])==null?void 0x0:_0x519905[_0x39f975(0xd9)])===_0x188e10[_0x39f975(0x234)]?((_0x2c3d5c=_0x439648['getImageSourceCache'](_0x4bb213[_0x39f975(0x294)][_0x39f975(0x2c6)],_0x4bb213['backgroundImage'][_0x39f975(0xd9)]))==null?void 0x0:_0x2c3d5c[_0x39f975(0xba)])??((_0x3fe820==null?void 0x0:_0x3fe820[_0x39f975(0x2c6)])===_0x4bb213['backgroundImage'][_0x39f975(0x2c6)]?_0x3fe820['value']:''):((_0x12eb90=_0x4bb213[_0x39f975(0x294)])==null?void 0x0:_0x12eb90[_0x39f975(0x2c6)])??'',_0x40205a=_0x404089[_0x39f975(0x100)][_0x39f975(0xe7)],_0x562584=_0x40205a&&_0x39f975(0x2cb)in _0x40205a?(_0x37a76c=_0x40205a[_0x39f975(0x2cb)])==null?void 0x0:_0x37a76c['doc']:void 0x0,_0x48e3e3=wr((_0x52d507==null?void 0x0:_0x52d507[_0x39f975(0x3ca)])??'',_0x18a6fd,_0x4bb213),_0x3d3e6b=_0x404089[_0x39f975(0x100)]['fill'],_0x5b2269=_0x404089[_0x39f975(0x100)][_0x39f975(0x20d)],_0x4da654=_0x562584==null||(_0x420cd6=_0x562584['documentStyle'])==null?void 0x0:_0x420cd6['textStyle'],_0x45bb9f=_0x404089[_0x39f975(0x36b)]??_0x404089[_0x39f975(0x239)]??'';return _0x543512(()=>{const _0x4ab86e=_0x39f975;let _0x1c14b7=_0x3c929e[_0x4ab86e(0x23e)],_0x11018d=_0x505693[_0x4ab86e(0x23e)];if(!_0x1c14b7||!_0x11018d)return;let _0x56489b=()=>{const _0x69d180=_0x4ab86e;if(_0x4bb213['fontSizeMode']===_0x69d180(0x1b1)||!_0x1c14b7[_0x69d180(0x2eb)]||!_0x1c14b7['clientHeight']){_0x11018d['style']['fontSize']=_0x4bb213['fontSize']+'px';return;}let _0x25e804=0x1,_0x32da30=0x48,_0x4974a8=_0x25e804;for(;_0x25e804<=_0x32da30;){let _0x3e9571=Math[_0x69d180(0x112)]((_0x25e804+_0x32da30)/0x2);_0x11018d[_0x69d180(0xc1)][_0x69d180(0x1ae)]=_0x3e9571+'px',_0x11018d['scrollWidth']<=_0x1c14b7[_0x69d180(0x2eb)]&&_0x11018d['scrollHeight']<=_0x1c14b7[_0x69d180(0x3e4)]?(_0x4974a8=_0x3e9571,_0x25e804=_0x3e9571+0x1):_0x32da30=_0x3e9571-0x1;}_0x11018d[_0x69d180(0xc1)][_0x69d180(0x1ae)]=_0x4974a8+'px';};if(_0x56489b(),typeof ResizeObserver>'u')return;let _0x52e43e=new ResizeObserver(_0x56489b);return _0x52e43e[_0x4ab86e(0x17a)](_0x1c14b7),()=>_0x52e43e[_0x4ab86e(0x1a2)]();},[_0x4bb213[_0x39f975(0x1ae)],_0x4bb213[_0x39f975(0x38a)],_0x48e3e3]),_0x5c238f(_0x39f975(0x1e8),{'data-dashboard-formula-shape':_0x404089['id'],'className':_0x39f975(0x2a4),'style':{'backgroundColor':((_0x2626e4=_0x404089[_0x39f975(0x2d3)])==null?void 0x0:_0x2626e4['backgroundColor'])??((_0x3d3e6b==null?void 0x0:_0x3d3e6b[_0x39f975(0x26a)])===_0x40e758['SolidFill']?_0x3d3e6b[_0x39f975(0xc0)]??void 0x0:void 0x0),'border':(_0x5b2269==null?void 0x0:_0x5b2269[_0x39f975(0xbf)])===_0x1c4533['SolidLine']?(_0x5b2269[_0x39f975(0x144)]??0x1)+_0x39f975(0xc5)+(_0x5b2269['color']??'currentColor'):void 0x0,'borderRadius':_0x404089[_0x39f975(0x2e8)]===_0x337cc8[_0x39f975(0x190)]?0xc:void 0x0,'color':((_0x3131a3=_0x404089[_0x39f975(0x2d3)])==null?void 0x0:_0x3131a3[_0x39f975(0xef)])??(_0x52d507==null?void 0x0:_0x52d507[_0x39f975(0xc0)])??(_0x4da654==null||(_0x237e56=_0x4da654['cl'])==null?void 0x0:_0x237e56['rgb'])??void 0x0,'fontWeight':_0x4da654!=null&&_0x4da654['bl']?0x258:void 0x0,'textAlign':_0x4bb213['alignment']},'children':[_0x3257d7&&_0x1fa005('img',{'src':_0x3257d7,'alt':'','aria-hidden':'true','className':_0x39f975(0x335),'style':{'objectFit':((_0x276d66=_0x4bb213[_0x39f975(0x294)])==null?void 0x0:_0x276d66[_0x39f975(0x160)])??_0x39f975(0x285)}}),_0x5c238f(_0x39f975(0x1e8),{'className':_0x39f975(0x274),'children':[_0x45bb9f&&_0x1fa005('div',{'data-dashboard-formula-description':!0x0,'className':_0x39f975(0xe9),'children':_0x45bb9f}),_0x1fa005(_0x39f975(0x1e8),{'ref':_0x3c929e,'data-dashboard-formula-value':!0x0,'aria-label':_0x45bb9f||_0x1975e3['t'](_0x39f975(0x2fd)),'className':_0x39f975(0x3e0),'style':{'justifyContent':Er[_0x4bb213[_0x39f975(0x218)]]},'children':_0x1fa005('span',{'ref':_0x505693,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x4bb213['fontSizeMode'],'className':'univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','children':_0x48e3e3})})]})]});}function Y(_0x572608,_0x12c111){return function(_0x32c7e6,_0x167175){_0x12c111(_0x32c7e6,_0x167175,_0x572608);};}function Or(_0x54c2cf,_0x8efb6a,_0x199bd2,_0x1ae9f9){const _0x35c98d=_0x3447f8;var _0x4a1c33=arguments[_0x35c98d(0x2c8)],_0x4d90bb=_0x4a1c33<0x3?_0x8efb6a:_0x1ae9f9===null?_0x1ae9f9=Object[_0x35c98d(0x382)](_0x8efb6a,_0x199bd2):_0x1ae9f9,_0x5606a6;if(typeof Reflect==_0x35c98d(0x2f1)&&typeof Reflect[_0x35c98d(0x1e9)]==_0x35c98d(0x252))_0x4d90bb=Reflect['decorate'](_0x54c2cf,_0x8efb6a,_0x199bd2,_0x1ae9f9);else{for(var _0x99e5ec=_0x54c2cf[_0x35c98d(0x2c8)]-0x1;_0x99e5ec>=0x0;_0x99e5ec--)(_0x5606a6=_0x54c2cf[_0x99e5ec])&&(_0x4d90bb=(_0x4a1c33<0x3?_0x5606a6(_0x4d90bb):_0x4a1c33>0x3?_0x5606a6(_0x8efb6a,_0x199bd2,_0x4d90bb):_0x5606a6(_0x8efb6a,_0x199bd2))||_0x4d90bb);}return _0x4a1c33>0x3&&_0x4d90bb&&Object['defineProperty'](_0x8efb6a,_0x199bd2,_0x4d90bb),_0x4d90bb;}let kr=class{constructor(_0x2548ed,_0x245fa3,_0x3b20a3){const _0x3e18bc=_0x3447f8;this['_localeService']=_0x2548ed,this['_chartThemeService']=_0x245fa3,this[_0x3e18bc(0x167)]=_0x3b20a3;}[_0x3447f8(0x2a3)](){const _0x273f29=_0x3447f8;return this[_0x273f29(0x167)][_0x273f29(0x395)](_0x4306b5[_0x273f29(0x403)],this[_0x273f29(0x17e)]());}[_0x3447f8(0x1d9)](_0x59e488){const _0x14d1d9=_0x3447f8;let _0x88adfc=_0x59e488[_0x14d1d9(0x2c4)]['config'];if(!_0x88adfc)throw Error(_0x14d1d9(0x22f)+_0x59e488['chartId']+_0x14d1d9(0x2a7));let _0x3ed4ee=this[_0x14d1d9(0x2b3)][_0x14d1d9(0x2b2)]();return{'config':_0x88adfc,'style':_0x5641c4({..._0x59e488[_0x14d1d9(0x2c4)][_0x14d1d9(0xc1)],'runtime':_0x59e488[_0x14d1d9(0x2c4)][_0x14d1d9(0x10e)](_0x3ed4ee),'direction':_0x3ed4ee},_0x88adfc[_0x14d1d9(0x1b9)])};}[_0x3447f8(0x17e)](){const _0x235f18=_0x3447f8;return{'resolveHostStyle':({style:_0x5ab795})=>_0x3bc6f7({'style':_0x5ab795,'getRenderColor':_0x26cd58=>this[_0x235f18(0x103)][_0x235f18(0x400)](_0x26cd58)}),'resolveRenderBackgroundColor':({hostStyle:_0x1ba685})=>_0x1ba685['fill']};}};kr=Or([Y(0x0,_0x1e6fb0(_0x255457)),Y(0x1,_0x1e6fb0(_0x2d3e2e)),Y(0x2,_0x2ba92b)],kr);function Ar(_0x2c5d21,_0x23dfce){const _0x32e87c=_0x3447f8;var _0x1f7bd5;_0x2c5d21[_0x32e87c(0xc1)]['backgroundColor']=_0x23dfce[_0x32e87c(0x310)]??_0x32e87c(0x3a0),_0x2c5d21[_0x32e87c(0xc1)]['border']=(_0x1f7bd5=_0x23dfce['border'])!=null&&_0x1f7bd5[_0x32e87c(0xc0)]&&_0x23dfce['border'][_0x32e87c(0x144)]?_0x23dfce[_0x32e87c(0x1f2)][_0x32e87c(0x144)]+_0x32e87c(0xc5)+_0x23dfce['border'][_0x32e87c(0xc0)]:'',_0x2c5d21['style'][_0x32e87c(0xc4)]=_0x23dfce[_0x32e87c(0x179)]?_0x23dfce[_0x32e87c(0x179)]+'px':'',_0x2c5d21[_0x32e87c(0xc1)][_0x32e87c(0x2b4)]=_0x32e87c(0x343),_0x2c5d21[_0x32e87c(0xc1)][_0x32e87c(0x3aa)]=_0x32e87c(0x31b);}function _0x3448(){const _0x1022ae=['height','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','max','stdDevp','shapeId','bases-dashboard-ui.chart.section.chord','prototype','bases-dashboard-ui.operators.isEmpty','pointerX','pageWrap','univer-text-gray-400','Radar','bases-dashboard-ui.chart.section.gridlinesAndTicks','bases-dashboard-ui.pivot.layout','bases-dashboard-ui.dashboardInspector.repeat','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','lastRow','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','colView','column','article','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','operand','removeEventListener','bases-dashboard-ui.dashboardInspector.dataSource','valueIndex','univer-pointer-events-none\x20univer-absolute\x20univer-z-30\x20univer-appearance-none\x20univer-p-0\x20univer-opacity-0\x20!univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','description','disposeWithMe','rowCount','default','bases-dashboard-ui.pivot.addToRow','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','clientX','end','bases-dashboard-ui.pivot.chartAndTable','bases-dashboard-ui.dashboard.fullScreen','accept','headerRowCount','univer-text-right','bases-dashboard-ui.dashboardInspector.number','min','onDragOver','Gauge','print','relation','false','filterInfo','replaceChildren','base-dashboard-pivot-chart-','getOwnPropertyDescriptor','renderRevision','bases-dashboard-ui.pivot.downThenAcross','YYYY-MM-DD','matchMedia','pipe','changed$','univer-pointer-events-auto\x20univer-opacity-100','fontSizeMode','44333140rVlCkx','waterfall.positive','bases-dashboard-ui.pivot.product','colCount','GrandTotal','toUpperCase','bases-dashboard-ui.pivot.variancePopulation','formula','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','columnSpan','createChartInstance','bases-dashboard-ui.pivot.rows','RecordId','data$','isArray','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','currency','53304laVgOQ','bases-dashboard-ui.dashboardInspector.contain','itemTypes','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','transparent','from','requestFullscreen','focusUnit','has','#,##0','columnFields','test','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','boxSizing','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','252ZaTCMu','base-pivot-options','bases-dashboard-ui.pivot.numberFormat','univer-w-full','IS_NOT','packageName','univer-size-8\x20univer-p-0\x20univer-text-red-500','image/*','bases-dashboard-ui.mobile.moveDown','onCommit','getSnapshot','GridlinesAndTicks','Rating','button','paragraphId','entries','bases-dashboard-ui.pivot.addToColumn','bases-dashboard-ui.pivot.clearFilter','getUnit','img','wordCloud','tbody','render','currentTarget','some','bases-dashboard-ui.dashboardInspector.textSize','unsubscribe','IS_NOT_EMPTY','legend','Number','text','Waterfall','bases-dashboard-ui.pivot.average','Bubble','bases-dashboard-ui.chart.section.waterfall','original','univer-cursor-grabbing','formatMap','presentationChanged$','VerticalAxis','univer-flex\x20univer-gap-2','bases-dashboard-ui.dashboardInspector.custom','view','bases-dashboard-ui.pivot.max','11916tPJnfq','imageSourceType','compact','bases-dashboard-ui.pivot.values','_configService','bases-dashboard-ui.pivot.countNumbers','setStyle','bases-dashboard-ui.dashboardInspector.uploadImage','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','bases-dashboard-ui.dashboardInspector.enterValue','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','page:','clientHeight','_injector','list','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','cumulativeLineStyle','getValueIndex','target','univer-flex','bases-dashboard-ui.pivot.variance','alt','PivotChart','rowSpan','pointerup','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','bases-dashboard-ui.chart.section.histogram','univer-group\x20univer-relative\x20univer-flex\x20univer-min-h-0\x20univer-flex-col\x20univer-overflow-visible\x20univer-rounded-lg\x20univer-border\x20univer-shadow-sm\x20univer-transition-shadow','click','pie','\x20/\x20span\x20','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','onFilter','bases-dashboard-ui.pivot.showColumnSubtotal','univer-min-h-11\x20univer-px-3\x20univer-text-base','canView','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','bases-dashboard-ui.dashboardInspector.replaceImage','gray','base-pivot-fields','getRenderColor','then','bases-dashboard-ui.operators.lessThan','Dom','bases-dashboard-ui.pivot.display','bases-dashboard-ui.pivot.calculating','scrollTop','0\x200','executeChartUpdateConfig','IndicatorLine','span','decimalPlaces','src','titles','tableOrder','markNotReady','bases-dashboard-ui.pivot.displayName','lineStrokeType','color','style','SingleSelect','barStyle','borderRadius','px\x20solid\x20','register','saveImage','bases-dashboard-ui.pivot.top','bases-dashboard-ui.dashboardInspector.data','bases-dashboard-ui.pivot.filters','documentElement','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','univer-mb-3\x20univer-text-sm\x20univer-font-medium','base-pivot-table-configuration','onDragStart','onMoveUp','setSubtotalType','bases-dashboard-ui.pivot.pageDirection','var','bases-dashboard-ui.operators.after','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','bases-dashboard-ui.dashboardInspector.dragWidget','toLocaleLowerCase','getDataFieldByTableId','sourceType','chartId','univer-cursor-grab','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','createElement','rowFields','bases-dashboard-ui.dashboard.rename','layout','bases-dashboard-ui.dashboardInspector.sourceUnavailable','change','bases-dashboard-ui.dashboard.pivotChart','bases-dashboard-ui.dashboardInspector.editData','setFieldFormat','shapeText','defaultValue','univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','set','index','onReady','resize','closest','textColor','bases-dashboard-ui.chart.section.wordCloud','bases-dashboard-ui.dashboardInspector.style','every','push','bases-dashboard-ui.dashboard.search','univer-flex\x20univer-flex-col','29313lmUubp','Histogram','files','chart-and-table','Series','keydown','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','values','bases-dashboard-ui.pivot.repeatColumnLabels','move','shapeData','field','showColGrandTotal','_chartThemeService','flex-end','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','saveAttachment','showColSubtotal','Relation','bases-dashboard-ui.pivot.summarizeBy','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','bases-dashboard-ui.chart.section.funnel','baseChartDataAnimation','pivot','getRuntimeContext','header','univer-flex\x20univer-h-auto\x20univer-min-h-12\x20univer-shrink-0\x20univer-flex-wrap\x20univer-items-center\x20univer-gap-1\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','univer-mt-2','floor','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','replace','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','univer-flex\x20univer-flex-col\x20univer-gap-4','clientY','date','dashboard-text-','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','format','getCurrentTheme','small','bases-dashboard-ui.operators.isNot','getFieldCountByArea','bases-dashboard-ui.dashboard.deleteWidget','slice','bases-dashboard-ui.pivot.sum','onMove','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','primary','getFieldPositionInfoById','string','corner:','univer-size-4','snapshot','bases-dashboard-ui.chart.common.verticalAxis','bases-dashboard-ui.dashboardInspector.decimalPlaces','paragraphs','resolve','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.dashboardInspector.right','presentation','bases-dashboard-ui.pivot.cancel','lineAndArea','backgroundColor','change$','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','no-repeat','tabular','localeKey','dashboard-','1477KqPOiF','isSubtotal','showRowGrandTotal','chartType','renameField','indicatorLine','bases-dashboard-ui.chart.common.switchRowColumn','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','bases-dashboard-ui.pivot.calculationFailed','width','bases-dashboard-ui.dashboard.text','univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','bases-dashboard-ui.chart.chartTypes.','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','currentTheme$','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','resizeDirection','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','filter','bases-dashboard-ui.pivot.dropFieldsHere','univer-bg-gray-0\x20dark:!univer-bg-gray-900','getImageSourceCache','bases-dashboard-ui.dashboardInspector.removeImage','tableId','descending','dashboard-widget-','Pie','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','fullscreenElement','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','get','file','univer-relative\x20univer-z-10','bases-dashboard-ui.pivot.confirm','trim','fit','separator','bases-dashboard-ui.dashboardInspector.autoFit','ceil','dataFieldId','bases-dashboard-ui.dashboardInspector.left','@univerjs-pro/bases-dashboard-ui','_renderModelManager','bases-dashboard-ui.pivot.showRowGrandTotal','bases-dashboard-ui.chart.common.setup','preventDefault','pointermove','5304860lAzjrE','lastCol','GREATER_THAN','getRect','bases-dashboard-ui.dashboardInspector.originalSize','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','Boxplot','table','allowMultiple','univer-grid\x20univer-gap-4\x20univer-p-4','version','grandTotal','subscribe','radius','observe','operator','ManualFilter','ascending','_createContext','setOptions','RightVerticalAxis','measure','3928xPPkYE','rowView','unitId','11VPOgsg','tables','[data-dashboard-widget]','initial','pareto','body','bases-dashboard-ui.pivot.rowSubtotalPosition','univer-box-content\x20univer-size-1.5\x20univer-rounded-full\x20!univer-border-2\x20!univer-border-solid\x20!univer-border-white\x20!univer-bg-primary-600','Currency','bases-dashboard-ui.mobile.moveUp','pageRows','RoundRect','1.0.1','onStarting','bases-dashboard-ui.dashboardInspector.currency','Trendline','auto','grouped','releaseChartRuntime','CreatedAt','bottom','darkMode$','bases-dashboard-ui.dashboard.add','bases-dashboard-ui.config','getResult','bases-dashboard-ui.pivot.chartConfiguration','bases-dashboard-ui.dashboardInspector.backgroundColor','acquireChartRuntime','updateValuePosition','disconnect','error','bases-dashboard-ui.pivot.valuePosition','bases-dashboard-ui.pivot.description','showRowSubtotal','outline','univer-grid\x20univer-gap-4','bases-dashboard-ui.pivot.name','bases-dashboard-ui.dashboardInspector.selectOption','bases-dashboard-ui.pivot.layoutOutline','bases-dashboard-ui.pivot.layoutTabular','bases-dashboard-ui.dashboardInspector.cover','fontSize','1318580WwUkMQ','Value','custom','univer-h-full\x20univer-w-full\x20univer-bg-transparent','isFinite','left','getTableFieldsByDataFieldId','univer-bg-gray-50/80\x20dark:!univer-bg-gray-800/70\x20univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-p-3\x20dark:!univer-border-gray-700','bases-dashboard-ui.pivot.pivotConfiguration','style$','type','defineProperty','countNums','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-px-4\x20dark:!univer-border-gray-700','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','bases-dashboard-ui.pivot.acrossThenDown','removeField','bases-dashboard-ui.dashboardInspector.description','base64Cache','tableFieldId','bases-dashboard-ui.chart.common.trendline','bases-dashboard-ui.chart.','getAttachmentUrl','bases-dashboard-ui.dashboard.editWidget','pointerY','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','Checkbox','FormulaShape','indexOf','univer-flex-1','bases-dashboard-ui.chart.section.radar','PieStyle','orient','LESS_THAN_OR_EQUAL','contain','valuePosition','stringify','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','cornerView','refreshChartRuntime','univer-flex\x20univer-min-h-full\x20univer-flex-col','bases-dashboard-ui.pivot.count','createRenderInput','conditions','pageOverThenDown','base-pivot-chart-setup','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','bases-dashboard-ui.dashboard.new','bases-dashboard-ui.pivot.descending','bases-dashboard-ui.dashboardInspector.reset','bases-dashboard-ui.operators.is','Sunburst','context','center','fieldId','bases-dashboard-ui.pivot.removeField','bases-dashboard-ui.operators.before','div','decorate','minmax(0,\x201fr)','chart','Pivot','bases-dashboard-ui.pivot.dataSource','map','setConfig','bases-dashboard-ui.pivot.columns','sum','border','bases-dashboard-ui.pivot.addToFilter','stdDev','subtotal','univer-shrink-0\x20univer-rounded-full\x20univer-bg-gray-200\x20univer-px-2\x20univer-py-0.5\x20univer-text-xs\x20univer-text-gray-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-300','UNIVER_BASE','Treemap','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','add','input','dashboards','bases-dashboard-ui.operators.greaterThanOrEqual','undos','base-pivot-chart','call','bases-dashboard-ui.pivot.chartOnly','bases-dashboard-ui.dashboardInspector.newCondition','count','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-whitespace-nowrap\x20univer-border\x20univer-border-gray-200\x20univer-px-3\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-left\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.chart.section.sunburst','BASE_DASHBOARD_UI_PLUGIN','bases-dashboard-ui.chart.common.editChart','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','startX','general','bases-dashboard-ui.dashboardInspector.clear','bases-dashboard-ui.dashboardInspector.numberFormat','stroke','Row','baseChartDataAnimationDuration','bases-dashboard-ui.pivot.grandTotal','join','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','addEventListener','permissionPointUpdate$','univer-flex\x20univer-min-h-0\x20univer-flex-1','WaterfallSeries','bases-dashboard-ui.chart.common.heatmap','alignment','dataAggregation','scrollHeight','bases-dashboard-ui.chart.common.series','bases-dashboard-ui.dashboardInspector.loading','link','group','getOptions','bases-dashboard-ui.chart.section.indicatorLine','bases-dashboard-ui.pivot.bottom','657870bwuwLK','univer-grid\x20univer-gap-3','univer-grid\x20univer-gap-2\x20univer-p-3','UpdatedAt','AND','onCancel','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','bases-dashboard-ui.dashboard.redo','bases-dashboard-ui.pivot.selectAll','toPrimitive','syncLayout','bases-dashboard-ui.dashboardInspector.center','bases-dashboard-ui.dashboardInspector.backgroundImage','Base\x20dashboard\x20chart\x20','trendline','constructor','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','bases-dashboard-ui.dashboard.image','UUID','numberFormat','bases-dashboard-ui.chart.waterfall.subtotal','univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize','bases-dashboard-ui.dashboard.delete','title','ensureMount','updateFieldPosition','Funnel','univer-flex\x20univer-justify-end\x20univer-gap-2','current','formulaBinding','BaseDashboard','chartRowDirection','univer-truncate','base-pivot-chart-style','contains','univer-size-5\x20univer-text-primary-600','bases-dashboard-ui.pivot.addToValue','darkMode','univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','LESS_THAN','label','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','AFTER','fieldOrder','toJSON','MultiSelect','sortInfo','Filter','function','bases-dashboard-ui.dashboard.tableFilter','bases-dashboard-ui.operators.contains','pluginName','prefix','bases-dashboard-ui.dashboardInspector.formula','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','NumberFormat','onDrop','repeatRowLabels','bases-dashboard-ui.pivot.showColumnGrandTotal','bases-dashboard-ui.dashboard.resizeWidget','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','onDragEnd','bases-dashboard-ui.dashboardInspector.percent','onMoveDown','destructive','getBoundingClientRect','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','Candlestick','setLayout','bases-dashboard-ui.chart.section.candlestick','aside','CONTAINS','fillType','items','isHeader','bases-dashboard-ui.dashboardInspector.textColor','BEFORE','univer-min-w-0\x20univer-flex-1','bases-dashboard-ui.pivot.defaultName','setSortInfo','mode','stopPropagation','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','baseOn','delete','percent','bases-dashboard-ui.dashboard.addWidget','data','bases-dashboard-ui.mobile.permissions','rows','Heatmap','bases-dashboard-ui.pivot.repeatRowLabels','dashboardOrder','GeneralSeries','rootContainerElement','exitFullscreen','bases-dashboard-ui.pivot.options','series','rightYAxis','cover','viewOrder','bases-dashboard-ui.chart.common.horizontalAxis','axis','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','innerWidth','base-pivot-chart-configuration','headerMap','waterfall','heatmap','univer-size-6\x20!univer-border\x20!univer-border-solid\x20!univer-border-gray-200\x20!univer-bg-gray-0\x20univer-p-0\x20!univer-shadow-none\x20hover:!univer-bg-gray-100\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900\x20dark:hover:!univer-bg-gray-800','bases-dashboard-ui.dashboard.configure','Date','Subtotal','backgroundImage','blank','repeatColLabels','dataset','fullscreenchange','univer-w-full\x20univer-justify-start','setLabelFilterInfo','Column','Person','getResource','waterfall.negative','addFieldWithSourceId','bases-dashboard-ui.pivot.fieldSettings','renderTransition','Escape','createDomChartInstance','univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-flex-col\x20univer-justify-center\x20univer-overflow-hidden\x20univer-bg-gray-0\x20univer-p-4\x20univer-text-gray-1000\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-50','TableFilter','widgetOrder','\x20has\x20no\x20render\x20config.','ChartStyle','bases-dashboard-ui.chart.section.treemap','Data','Scatter','system','labelId','_config','repeat','config','filterFields','getDirection','_localeService','overflow','redos','row','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','bases-dashboard-ui.dashboard.undo','ParetoBarSeries','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','displayName','checkMounted','getId','executeCommand','univer-m-3','bases-dashboard-ui.pivot.min','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','value','onRemove','model','Group','source','isBottomTotal','length','find','bases-dashboard-ui.chart.common.legend','dataModel','radar','name','isConnected','getDashboard','bases-dashboard-ui.pivot.filterField','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','true','appearance','Text','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','addImageSourceCache','univer-text-sm','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.pivot.searchFields','bases-dashboard-ui.dashboardInspector.delete','segmented','views','dimension','Chord','univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','univer-size-5\x20univer-rotate-90','pivotViewId','NOT_CONTAINS','bases-dashboard-ui.chart.section.pie','HorizontalAxis','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','bases-dashboard-ui.pivot.ascending','bases-dashboard-ui.chart.common.customize','shapeType','bases-dashboard-ui.pivot.fields','ChartAndAxisTitles','clientWidth','onSettings','bases-dashboard-ui.operators.greaterThan','fields','valueFields','iterator','object','displayMode','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','General','bases-dashboard-ui.chart.common.rightVerticalAxis','univer-max-h-40\x20univer-text-base','parentElement','includes','ownerDocument','Legend','univer-flex\x20univer-h-full\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','key','bases-dashboard-ui.dashboard.formulaShape','dispose','dataSource','setCurrentUnitForType','matches','univer-shrink-0\x20univer-px-3','blur','Progress','bases-dashboard-ui.chart.section.gauge','funnel','rightY','catch','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','bases-dashboard-ui.pivot.pageWrap','product','flatMap','number','univer-flex\x20univer-items-center\x20univer-gap-2','dom','fill','widgets','undoRedoStatus$','univer-grid\x20univer-gap-3\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','right','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','bases-dashboard-ui.dashboardInspector.close','config$','dashboard-chart-setup','bases-dashboard-ui.chart.section.paretoBar','visibilityState','border-box','bases-dashboard-ui.pivot.showRowSubtotal','rowSubtotalPosition','bases-dashboard-ui.chart.section.paretoLine','univer-border-gray-200\x20dark:!univer-border-gray-700','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','dashboard-chart-style','None','round','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-gray-50\x20univer-font-semibold\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','split','options','Sankey','bases-dashboard-ui.chart.section.lineAndArea','select','ParetoLineSeries','bases-dashboard-ui.dashboardInspector.compact','dataStream','univer-mt-2\x20univer-w-full','WordCloud','forEach','bases-dashboard-ui.dashboardInspector.grouped','bases-dashboard-ui.chart.section.relation','bind','univer-w-36','\x20/\x20','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','section','getChartRuntime','pattern','document','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','varp','_element','scrollWidth','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Style','dataView','Image','pageView','hidden','average','bases-dashboard-ui.pivot.tableOnly','activeRuntimeModel','item','top','bases-dashboard-ui.dashboardInspector.alignment','bases-dashboard-ui.operators.isNotEmpty','info','bases-dashboard-ui.pivot.stdDevPopulation','area','IS_EMPTY'];_0x3448=function(){return _0x1022ae;};return _0x3448();}function jr(_0x416343){'@babel/helpers - typeof';const _0x10b798=_0x3447f8;return jr=typeof Symbol==_0x10b798(0x252)&&typeof Symbol[_0x10b798(0x2f0)]=='symbol'?function(_0x1ff5eb){return typeof _0x1ff5eb;}:function(_0x378218){const _0x517a54=_0x10b798;return _0x378218&&typeof Symbol=='function'&&_0x378218[_0x517a54(0x231)]===Symbol&&_0x378218!==Symbol[_0x517a54(0x355)]?'symbol':typeof _0x378218;},jr(_0x416343);}function Mr(_0x49f46b,_0x2ddb61){const _0x5a63a7=_0x3447f8;if(jr(_0x49f46b)!=_0x5a63a7(0x2f1)||!_0x49f46b)return _0x49f46b;var _0x3d448f=_0x49f46b[Symbol[_0x5a63a7(0x22b)]];if(_0x3d448f!==void 0x0){var _0x5d1f9e=_0x3d448f[_0x5a63a7(0x200)](_0x49f46b,_0x2ddb61||_0x5a63a7(0x36e));if(jr(_0x5d1f9e)!=_0x5a63a7(0x2f1))return _0x5d1f9e;throw TypeError(_0x5a63a7(0x2ba));}return(_0x2ddb61==='string'?String:Number)(_0x49f46b);}function Nr(_0x14f060){var _0x21bd07=Mr(_0x14f060,'string');return jr(_0x21bd07)=='symbol'?_0x21bd07:_0x21bd07+'';}function Pr(_0x21ade8,_0x1566ba,_0x4df3c7){const _0x4d5612=_0x3447f8;return(_0x1566ba=Nr(_0x1566ba))in _0x21ade8?Object[_0x4d5612(0x1ba)](_0x21ade8,_0x1566ba,{'value':_0x4df3c7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x21ade8[_0x1566ba]=_0x4df3c7,_0x21ade8;}var Fr=class extends _0x47ac6f{constructor(_0x4a6ded,_0x279c3f){const _0x52290a=_0x3447f8;super(),this[_0x52290a(0xda)]=_0x4a6ded,this[_0x52290a(0x33c)]=_0x279c3f,Pr(this,_0x52290a(0x272),_0x4306b5[_0x52290a(0x403)]);}[_0x3447f8(0x16f)](){const _0x4d0bed=_0x3447f8;return{'width':Math['max'](0x1,this[_0x4d0bed(0x33c)][_0x4d0bed(0x2eb)]),'height':Math['max'](0x1,this[_0x4d0bed(0x33c)][_0x4d0bed(0x3e4)])};}[_0x3447f8(0x3de)](_0x5d6bbb){Ar(this['_element'],_0x5d6bbb);}async[_0x3447f8(0x23a)](){const _0xaedd30=_0x3447f8;return this[_0xaedd30(0x33c)];}[_0x3447f8(0x2bc)](){const _0x3c30c5=_0x3447f8;return this[_0x3c30c5(0x33c)][_0x3c30c5(0x2ce)];}[_0x3447f8(0x22c)](){}['markReady'](){}[_0x3447f8(0xbd)](){}};function Ir({isRowDirection:_0x25c39b,runtime:_0x3433e3}){const _0x10c4b5=_0x3447f8;let _0x5da5d3=_0x4523d4(null),_0x355b33=_0x53af8d(_0x255457),_0x560a9d=_0x53af8d(_0x133842),_0x18cda9=_0x53af8d(kr),_0x1f5277=_0x53af8d(_0x22d94c);return _0x543512(()=>{const _0x6bb577=_0x1596;let _0x36db0e=_0x5da5d3[_0x6bb577(0x23e)];if(!_0x36db0e)return;_0x36db0e[_0x6bb577(0x380)]();let {chartId:_0x5d1811,model:_0x385303}=_0x3433e3,_0x283b75=_0x385303[_0x6bb577(0x2ff)],_0x3c0a7d=new Fr(_0x5d1811,_0x36db0e),_0x49ed65=_0x18cda9[_0x6bb577(0x2a3)](),_0x336146=!0x1,_0x28a10b=null,_0x558bf=null,_0x225c31=null,_0x112d15=null,_0xc5e873=!0x1,_0x29d6e7=!0x1,_0x29d194=Promise[_0x6bb577(0x12e)]();_0x49ed65[_0x6bb577(0x332)](_0x3c0a7d);let _0x1f3d2f=()=>{const _0x333eb8=_0x6bb577;var _0xad8755,_0x1ca40d,_0x2a4a4c,_0x270714;if(document[_0x333eb8(0x31a)]===_0x333eb8(0x343)||(_0xad8755=(_0x1ca40d=window)[_0x333eb8(0x386)])!=null&&(_0xad8755=_0xad8755[_0x333eb8(0x200)](_0x1ca40d,'(prefers-reduced-motion:\x20reduce)'))!=null&&_0xad8755['matches']||(_0x2a4a4c=(_0x270714=window)[_0x333eb8(0x386)])!=null&&(_0x2a4a4c=_0x2a4a4c[_0x333eb8(0x200)](_0x270714,_0x333eb8(0x37c)))!=null&&_0x2a4a4c[_0x333eb8(0x301)]||!_0x36db0e[_0x333eb8(0x2ce)])return!0x1;let _0x522466=_0x36db0e[_0x333eb8(0x263)]();return _0x522466[_0x333eb8(0x144)]>0x0&&_0x522466[_0x333eb8(0x34f)]>0x0&&_0x522466[_0x333eb8(0x314)]>0x0&&_0x522466['bottom']>0x0&&_0x522466['left']<window[_0x333eb8(0x28b)]&&_0x522466['top']<window['innerHeight'];},_0x1dc4ea=()=>{const _0x3b9973=_0x6bb577;_0x558bf!==null&&clearTimeout(_0x558bf),_0x36db0e['dataset'][_0x3b9973(0x10c)]=_0x3b9973(0x2d2),_0x36db0e[_0x3b9973(0x297)][_0x3b9973(0x20f)]=String(_0x133cf9),_0x558bf=setTimeout(()=>{const _0x54e7a8=_0x3b9973;_0x558bf=null,delete _0x36db0e[_0x54e7a8(0x297)][_0x54e7a8(0x10c)],delete _0x36db0e[_0x54e7a8(0x297)][_0x54e7a8(0x20f)];},_0x133cf9);},_0xbceb9e=_0x4ef84c=>{const _0x4d0262=_0x6bb577;if(_0x336146)return;if(_0x28a10b!==null&&(clearTimeout(_0x28a10b),_0x28a10b=null),!_0x385303['config']){_0x29d6e7||=_0x4ef84c;return;}_0x36db0e['dataset'][_0x4d0262(0x13e)]=String(_0x385303[_0x4d0262(0x13e)]),_0x36db0e[_0x4d0262(0x297)][_0x4d0262(0x241)]=String(_0x25c39b);let _0x1cb8b6=_0x18cda9[_0x4d0262(0x1d9)](_0x3433e3),_0x4aa2e7={'chartId':_0x5d1811,'config':_0x1cb8b6['config'],'style':_0x1cb8b6[_0x4d0262(0xc1)]};_0x29d194=_0x29d194['then'](async()=>{const _0x54d68c=_0x4d0262;_0x336146||(_0x36db0e[_0x54d68c(0x297)][_0x54d68c(0x383)]=String(Number(_0x36db0e[_0x54d68c(0x297)][_0x54d68c(0x383)]??0x0)+0x1),_0x4ef84c&&_0x225c31&&_0x49ed65[_0x54d68c(0x2a1)]&&_0x1f3d2f()?(await _0x49ed65['renderTransition'](_0x225c31,_0x4aa2e7,{'duration':_0x133cf9}),_0x336146||_0x1dc4ea()):await _0x49ed65[_0x54d68c(0x3c2)](_0x4aa2e7),_0x225c31=_0x4aa2e7);})[_0x4d0262(0x308)](_0x524110=>_0x560a9d[_0x4d0262(0x1a3)](_0x4d0262(0x364),_0x524110));},_0x690dce=(_0x214abd=!0x1)=>{_0x29d6e7||=_0x214abd,!_0xc5e873&&(_0xc5e873=!0x0,queueMicrotask(()=>{_0xc5e873=!0x1;let _0x4f2b97=_0x29d6e7;_0x29d6e7=!0x1,_0xbceb9e(_0x4f2b97);}));},_0x243f02=[_0x283b75[_0x6bb577(0x398)][_0x6bb577(0x178)](_0x36642c=>{let _0x8cb729=JSON['stringify'](_0x36642c);_0x112d15!=null&&_0x112d15!==_0x8cb729&&_0x690dce(!0x0),_0x112d15=_0x8cb729;}),_0x385303[_0x6bb577(0x317)]['subscribe'](_0x3702d1=>{_0x3702d1&&_0x690dce();}),_0x385303[_0x6bb577(0x1b8)][_0x6bb577(0x178)](()=>_0x690dce()),_0x355b33['direction$'][_0x6bb577(0x178)](()=>_0x690dce()),_0x35ec39([_0x1f5277[_0x6bb577(0x14a)],_0x1f5277[_0x6bb577(0x19a)]])[_0x6bb577(0x387)](_0x4f0506(0x1))[_0x6bb577(0x178)](()=>_0x690dce())],_0x229f61=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x5a72da=_0x6bb577;_0x336146||(_0x3c0a7d[_0x5a72da(0x22c)](),_0x28a10b!==null&&clearTimeout(_0x28a10b),_0x28a10b=setTimeout(()=>_0x690dce(),0x64));});return _0x229f61==null||_0x229f61[_0x6bb577(0x17a)](_0x36db0e),()=>{const _0x33911e=_0x6bb577;_0x336146=!0x0,_0x28a10b!==null&&clearTimeout(_0x28a10b),_0x558bf!==null&&clearTimeout(_0x558bf),delete _0x36db0e['dataset'][_0x33911e(0x10c)],delete _0x36db0e[_0x33911e(0x297)][_0x33911e(0x20f)],_0x229f61==null||_0x229f61['disconnect'](),_0x243f02[_0x33911e(0x32f)](_0x17b4be=>_0x17b4be[_0x33911e(0x3c6)]()),_0x49ed65['dispose'](),_0x3c0a7d[_0x33911e(0x2fe)](),_0x36db0e[_0x33911e(0x380)]();};},[_0x25c39b,_0x355b33,_0x560a9d,_0x18cda9,_0x3433e3,_0x1f5277]),_0x1fa005(_0x10c4b5(0x1e8),{'ref':_0x5da5d3,'data-u-comp':_0x10c4b5(0x1ff),'className':_0x10c4b5(0xcc)});}function Lr({filters:_0x428449,onRuntimeChange:_0x246468,unitId:_0x491c8a,widget:_0x356b0a}){const _0x91979c=_0x3447f8;let _0x41b9d4=_0x53af8d(_0xa15270),_0x5ea7ef=_0x53af8d(_0x255457),_0x49c22a=_0x53af8d(_0x133842),_0x494e83=_0x53af8d(_0x2cc67a),[_0x2aed0c,_0x514163]=_0xee90d5(null),[_0xe3d686,_0x3107c2]=_0xee90d5(!0x1),[_0x45f958,_0x40e39f]=_0xee90d5(null),_0x71ab73=_0x4523d4(_0x91979c(0x381)+_0x2aef82(0x8)),_0x17063a=_0x41b9d4[_0x91979c(0x3be)](_0x491c8a,_0x6e7cef[_0x91979c(0x1f7)]),_0x2eb99f=_0x17063a==null?void 0x0:_0x17063a['getSnapshot']()['tables'][_0x356b0a['tableId']],_0x380b4d=_0x2eb99f==null?void 0x0:_0x2eb99f[_0x91979c(0x2dc)][_0x356b0a[_0x91979c(0x2e1)]],_0x28c5aa=Rr(_0x380b4d);if(_0x543512(()=>{const _0x4af76c=_0x91979c;if(!_0x28c5aa)return;let _0x424ebe=_0x71ab73[_0x4af76c(0x23e)];return _0x494e83['acquireChartRuntime'](_0x424ebe,{'unitId':_0x491c8a,'tableId':_0x356b0a[_0x4af76c(0x154)],'viewId':_0x356b0a['pivotViewId'],'filters':[]}),()=>{const _0x3798b0=_0x4af76c;_0x494e83[_0x3798b0(0x197)](_0x491c8a,_0x424ebe),_0x246468==null||_0x246468(_0x356b0a['id'],null);};},[_0x28c5aa,_0x246468,_0x494e83,_0x491c8a,_0x356b0a['id'],_0x356b0a['pivotViewId'],_0x356b0a[_0x91979c(0x154)]]),_0x543512(()=>{const _0xb63695=_0x91979c;if(!Rr(_0x380b4d))return;let _0x7bab0a=!0x0,_0x17a1b8=_0x356b0a[_0xb63695(0x1eb)]??_0x380b4d[_0xb63695(0x2b0)][_0xb63695(0x1eb)],_0x5ee941={'unitId':_0x491c8a,'tableId':_0x356b0a[_0xb63695(0x154)],'viewId':_0x356b0a[_0xb63695(0x2e1)],'filters':[_0x380b4d['filter']??null,..._0x428449]};return _0x494e83[_0xb63695(0x1d6)](_0x491c8a,_0x71ab73[_0xb63695(0x23e)],_0x5ee941,_0x17a1b8)[_0xb63695(0x401)](_0x447f4f=>{const _0x25ad30=_0xb63695;if(!_0x7bab0a||!_0x447f4f)return;let _0x67c2b3=_0x494e83[_0x25ad30(0x337)](_0x491c8a,_0x71ab73[_0x25ad30(0x23e)])??null;_0x514163(_0x447f4f),_0x40e39f(_0x67c2b3),_0x3107c2(!0x1),_0x246468==null||_0x246468(_0x356b0a['id'],_0x67c2b3);})[_0xb63695(0x308)](_0xa5edd1=>{const _0x53e809=_0xb63695;_0x49c22a[_0x53e809(0x1a3)](_0x53e809(0x2d8),_0xa5edd1),_0x7bab0a&&(_0x514163(null),_0x3107c2(!0x0));}),()=>{_0x7bab0a=!0x1;};},[_0x428449,_0x49c22a,_0x246468,_0x494e83,_0x491c8a,_0x380b4d,_0x356b0a['chart'],_0x356b0a['id'],_0x356b0a[_0x91979c(0x2e1)],_0x356b0a['tableId']]),!Rr(_0x380b4d))return _0x1fa005(_0x91979c(0x1e8),{'className':_0x91979c(0x2c1),'children':_0x5ea7ef['t'](_0x91979c(0xe2))});let _0xfa2201=_0x494e83[_0x91979c(0x337)](_0x491c8a,_0x71ab73[_0x91979c(0x23e)])===_0x45f958?_0x45f958:null;return _0x2aed0c&&_0xfa2201?_0x1fa005(Ir,{'isRowDirection':_0x18785d((_0x356b0a[_0x91979c(0x1eb)]??_0x380b4d['config'][_0x91979c(0x1eb)])[_0x91979c(0x1cf)]),'runtime':_0xfa2201}):_0x1fa005('div',{'className':_0x91979c(0x2c1),'children':_0x5ea7ef['t'](_0xe3d686?'bases-dashboard-ui.pivot.calculationFailed':_0x91979c(0x405))});}function Rr(_0x374578){const _0xae8396=_0x3447f8;return(_0x374578==null?void 0x0:_0x374578[_0xae8396(0x1b9)])===_0x4da0de[_0xae8396(0x1ec)]&&typeof _0x374578[_0xae8396(0x2b0)]==_0xae8396(0x2f1)&&_0x374578[_0xae8396(0x2b0)]!==null&&_0xae8396(0x10d)in _0x374578[_0xae8396(0x2b0)]&&_0xae8396(0x1eb)in _0x374578['config'];}const zr={'alignment':_0x3447f8(0x1b4),'fontSize':0x12,'fontSizeMode':_0x3447f8(0x195)};function Br(_0x1107b1){return{...zr,..._0x1107b1['appearance']};}function Vr(_0x4f5e88){const _0x2f5109=_0x3447f8;var _0x426c71;return((_0x426c71=_0x4f5e88[_0x2f5109(0x18a)])==null?void 0x0:_0x426c71[_0x2f5109(0x32c)]['replace'](/\r\n$/,'')[_0x2f5109(0x114)](/\r/g,'\x0a'))??'';}function Hr(_0x374124,_0x9df30){const _0x38436e=_0x3447f8;var _0x45292e;let _0x45c080=_0x9df30[_0x38436e(0x114)](/\r\n|\r/g,'\x0a')[_0x38436e(0x325)]('\x0a'),_0x4c6cb5=_0x45c080[_0x38436e(0x211)]('\x0d')+'\x0d\x0a',_0x182849=((_0x45292e=_0x374124[_0x38436e(0x18a)])==null?void 0x0:_0x45292e[_0x38436e(0x12d)])??[],_0x5135c4=new Set(_0x182849[_0x38436e(0x1ee)](_0x4c389d=>_0x4c389d[_0x38436e(0x3ba)])),_0x2c8d75=0x0,_0x4c5d0e=_0x45c080['map']((_0x9ac136,_0x1bb5a5)=>{const _0x53c0e0=_0x38436e;_0x2c8d75+=_0x9ac136[_0x53c0e0(0x2c8)];let _0x284a6e={..._0x182849[_0x1bb5a5]??{'startIndex':_0x2c8d75,'paragraphId':_0x156ce9(_0x5135c4)},'startIndex':_0x2c8d75};return _0x2c8d75+=0x1,_0x284a6e;});return{..._0x374124,'body':{..._0x374124[_0x38436e(0x18a)],'dataStream':_0x4c6cb5,'paragraphs':_0x4c5d0e,'textRuns':[]}};}function Ur({widget:_0x33b577}){const _0x326cb3=_0x3447f8;let _0x257f1d=_0x53af8d(_0x22d94c),_0x22101e=_0x53af8d(_0x255457),_0x2b65ec=_0x129d28(()=>_0x257f1d['currentTheme$'],_0x257f1d[_0x326cb3(0x11c)](),!0x1,[_0x257f1d]),_0x565cf8=_0x4523d4(null),_0x397542=_0x4523d4(null),_0x19f6af=Br(_0x33b577),_0x321f7a=_0x19f6af[_0x326cb3(0x134)]??_0x2b65ec['gray'][0x0],_0x193cf0=_0x19f6af[_0x326cb3(0xef)]??_0x2b65ec['gray'][0x3e8],_0x2e060f=Vr(_0x33b577['document']);return _0x543512(()=>{const _0x4ccb26=_0x326cb3;let _0x281b3f=_0x565cf8['current'],_0x111108=_0x397542[_0x4ccb26(0x23e)];if(!_0x281b3f||!_0x111108)return;let _0x4bbd35=()=>{const _0x171a28=_0x4ccb26;if(_0x19f6af[_0x171a28(0x38a)]===_0x171a28(0x1b1)||!_0x281b3f[_0x171a28(0x2eb)]||!_0x281b3f[_0x171a28(0x3e4)]){_0x111108[_0x171a28(0xc1)][_0x171a28(0x1ae)]=_0x19f6af[_0x171a28(0x1ae)]+'px';return;}let _0x3a88af=0x8,_0x385240=0x48,_0x5acd77=_0x3a88af;for(;_0x3a88af<=_0x385240;){let _0x57c0b2=Math[_0x171a28(0x112)]((_0x3a88af+_0x385240)/0x2);_0x111108[_0x171a28(0xc1)][_0x171a28(0x1ae)]=_0x57c0b2+'px',_0x111108[_0x171a28(0x33d)]<=_0x281b3f[_0x171a28(0x2eb)]&&_0x111108[_0x171a28(0x21a)]<=_0x281b3f[_0x171a28(0x3e4)]?(_0x5acd77=_0x57c0b2,_0x3a88af=_0x57c0b2+0x1):_0x385240=_0x57c0b2-0x1;}_0x111108[_0x171a28(0xc1)][_0x171a28(0x1ae)]=_0x5acd77+'px';};if(_0x4bbd35(),typeof ResizeObserver>'u')return;let _0x2c60fd=new ResizeObserver(_0x4bbd35);return _0x2c60fd[_0x4ccb26(0x17a)](_0x281b3f),()=>_0x2c60fd['disconnect']();},[_0x19f6af[_0x326cb3(0x1ae)],_0x19f6af[_0x326cb3(0x38a)],_0x2e060f]),_0x1fa005('div',{'data-dashboard-text-widget':_0x33b577['id'],'className':_0x326cb3(0x315),'style':{'backgroundColor':_0x321f7a,'color':_0x193cf0},'children':_0x1fa005(_0x326cb3(0x1e8),{'ref':_0x565cf8,'data-dashboard-text-content':!0x0,'aria-label':_0x22101e['t']('bases-dashboard-ui.dashboard.text'),'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','children':_0x1fa005(_0x326cb3(0x1e8),{'ref':_0x397542,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x19f6af['fontSizeMode'],'className':'univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','style':{'textAlign':_0x19f6af[_0x326cb3(0x218)]},'children':_0x2e060f})})});}function Wr({dashboard:_0x1ede8b,editable:_0xcdb2b0=!0x0,onSelectWidget:_0x426fba,renderWidget:_0x3e544d,renderWidgetActions:_0x5901b0,selectedWidgetId:_0x2ffc2f,widgetLabel:_0x2866ac}){const _0x59a188=_0x3447f8;return _0x1fa005(_0x59a188(0x1e8),{'data-dashboard-scroll-container':!0x0,'className':_0x54dbd2('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',_0x2bbb9f),'onClick':_0xcdb2b0?_0x25b894=>{const _0x22a29a=_0x59a188;if(!(_0x25b894[_0x22a29a(0x3ea)]instanceof Node)||!_0x25b894[_0x22a29a(0x3c3)]['contains'](_0x25b894['target']))return;let _0x52343d=_0x25b894[_0x22a29a(0x3ea)]instanceof Element?_0x25b894[_0x22a29a(0x3ea)]:_0x25b894[_0x22a29a(0x3ea)][_0x22a29a(0x2f7)];_0x52343d!=null&&_0x52343d['closest'](_0x22a29a(0x187))||_0x426fba==null||_0x426fba();}:void 0x0,'children':_0x1fa005('div',{'data-dashboard-grid':!0x0,'className':'univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','children':_0x1ede8b[_0x59a188(0x2a6)][_0x59a188(0x1ee)](_0x372d6d=>{const _0xe9227c=_0x59a188;let _0x242825=_0x1ede8b[_0xe9227c(0x311)][_0x372d6d];if(!_0x242825)return null;let _0x40eeee=Math[_0xe9227c(0x351)](0xb4,_0x242825['layout'][_0xe9227c(0x3ef)]*_0x35833c);return _0x5c238f(_0xe9227c(0x363),{'data-dashboard-widget':_0x242825['id'],'aria-label':_0x242825['title']??_0x2866ac(_0x242825),'className':_0x54dbd2(_0xe9227c(0x3f3),_0x242825['type']===_0x28a714[_0xe9227c(0x341)]||_0x242825['type']===_0x28a714['FormulaShape']?'univer-bg-transparent\x20dark:!univer-bg-transparent':_0xe9227c(0x151),_0xcdb2b0&&_0x2ffc2f===_0x242825['id']?_0xe9227c(0x1dd):'univer-border-gray-200\x20dark:!univer-border-gray-700'),'style':{'minHeight':_0x40eeee,'height':_0x40eeee},'tabIndex':_0xcdb2b0?0x0:void 0x0,'onClick':_0xcdb2b0?()=>_0x426fba==null?void 0x0:_0x426fba(_0x242825['id']):void 0x0,'onFocus':_0xcdb2b0?()=>_0x426fba==null?void 0x0:_0x426fba(_0x242825['id']):void 0x0,'children':[_0xcdb2b0&&_0x1fa005(_0xe9227c(0x1e8),{'className':'univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','children':_0x5901b0==null?void 0x0:_0x5901b0(_0x242825)}),_0x1fa005(_0xe9227c(0x1e8),{'className':_0xe9227c(0x264),'children':_0x3e544d(_0x242825)})]},_0x242825['id']);})})});}let Gr=class extends _0xa5aa5a{constructor(_0x576d67){const _0x48fc70=_0x3447f8;super(_0x576d67),Pr(this,_0x48fc70(0x346),null);}[_0x3447f8(0x408)](_0x4d3f41){}};Gr=Or([Y(0x0,_0x1e6fb0(_0x91bc23))],Gr);function Kr({children:_0x497416}){return _0x1fa005(_0x342c29,{'children':_0x497416});}function qr(_0x1aca35){return _0x1fa005(_0xea1085,{..._0x1aca35});}function Jr(_0x52fb50){return _0x1fa005(_0x3837bd,{..._0x52fb50});}function Yr(_0xf263f8){return _0x1fa005(_0x2661d2,{..._0xf263f8});}var Xr;const X={'axis':{..._0x152708,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x540e6b,'heatmap':_0x5badfc,'indicatorLine':_0x252eea,'legend':_0x337e65,'lineAndArea':_0x5e0a33,'pareto':_0x38048e,'pie':_0x1c8b9e,'radar':_0x4bcca4,'relation':{..._0x3de6de,'useValueAsSymbolSize':!0x0},'series':{..._0x324182,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Xr=_0x2ce46e['allSeriesStyle'])==null?void 0x0:Xr[_0x3447f8(0x284)])??!0x1}},'style':_0xd40535,'titles':_0x289a2d,'trendline':_0x4c6d30,'waterfall':{..._0x15085e,'useSubtotal':!0x0},'waterfallStyle':_0x3f0564,'wordCloud':_0x145212},Zr=[_0x44b61b['Line'],_0x44b61b[_0x3447f8(0x35a)],_0x44b61b[_0x3447f8(0x32e)],_0x44b61b[_0x3447f8(0x2ab)],_0x44b61b[_0x3447f8(0x23c)],_0x44b61b[_0x3447f8(0x108)],_0x44b61b[_0x3447f8(0x327)],_0x44b61b['Heatmap'],_0x44b61b[_0x3447f8(0x172)],_0x44b61b[_0x3447f8(0x265)],_0x44b61b[_0x3447f8(0xf7)],_0x44b61b[_0x3447f8(0x1f8)],_0x44b61b['Sunburst'],_0x44b61b[_0x3447f8(0x37b)],_0x44b61b[_0x3447f8(0x2de)]];function Qr(_0x4d6f0c){const _0x3caa29=_0x3447f8;let {config:_0x1a7e5e,onChange:_0x3114d0,runtime:_0x268c26,tableName:_0x9e5b70}=_0x4d6f0c,_0x498f29=_0x53af8d(Gr),_0x41fa39=_0x53af8d(_0x255457),[_0x337686,_0x2c376a]=_0xee90d5(_0x2599aa['Data']),_0x59d9ed=_0x125177(()=>new _0x3832ea(_0x268c26[_0x3caa29(0x2c4)],{'commit':_0xdb1db4=>{const _0xa825d7=_0x3caa29;var _0x53f84b;let _0x18b571=_0x268c26['model'],_0x1bf179=_0x3fd4b5(_0xdb1db4,{'series':(_0x53f84b=_0x18b571[_0xa825d7(0x2b0)])==null?void 0x0:_0x53f84b['series'],'currentChartType':_0x18b571[_0xa825d7(0x13e)],'currentStyle':_0x18b571[_0xa825d7(0xc1)],'currentContext':_0x18b571['context'],'currentDataAggregation':_0x18b571['dataAggregation']});_0x3114d0({'chart':$r(_0x1a7e5e[_0xa825d7(0x1eb)],_0x1bf179)});}}),[_0x1a7e5e[_0x3caa29(0x1eb)],_0x3114d0,_0x268c26]),_0x45e053=_0x125177(()=>_0x4fc7e8(_0x1016f1[_0x3caa29(0x1ee)](_0x16ea00=>({..._0x16ea00,'label':_0x41fa39['t'](ri(_0x16ea00['labelId']))}))),[_0x41fa39]);return _0x1fa005(_0x378b2c,{'chartUIService':_0x498f29,'hostAdapter':_0x59d9ed,'children':_0x5c238f(_0x3caa29(0x1e8),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x1fa005(_0x283559,{'ariaLabel':_0x41fa39['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x3caa29(0x302),'items':[{'label':_0x41fa39['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0x3caa29(0x1dc),'value':_0x2599aa['Data']},{'label':_0x41fa39['t'](_0x3caa29(0x2e7)),'panelId':_0x3caa29(0x243),'value':_0x2599aa['Style']}],'value':_0x337686,'onChange':_0x2c376a}),_0x337686===_0x2599aa[_0x3caa29(0x2aa)]?_0x1fa005(_0x2a9829,{'id':'base-pivot-chart-setup','label':_0x41fa39['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x5c238f(_0x3caa29(0x1e8),{'className':_0x3caa29(0x228),'children':[_0x1fa005(_0x28e1f3,{'options':_0x45e053}),_0x1fa005(_0x2fc38a,{}),_0x1fa005(_0x57f87a,{}),_0x1fa005(ei,{}),_0x1fa005(_0x2fa3d3,{}),_0x5c238f(_0x3caa29(0x1e8),{'children':[_0x1fa005(_0x36a7b3,{'title':_0x41fa39['t'](_0x3caa29(0x1ed))}),_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':_0x9e5b70})]}),_0x1fa005(_0x3a6df3,{'orientationControl':_0x1fa005(_0x10d589,{'size':'small','onClick':()=>_0x3114d0({'chart':{..._0x1a7e5e['chart'],'orient':_0x1a7e5e[_0x3caa29(0x1eb)]['orient']===_0x3caa29(0x2b6)?'column':'row'}}),'children':_0x41fa39['t'](_0x3caa29(0x141))})}),_0x1fa005(_0x20436f,{}),_0x1fa005(_0x4b136e,{'defaultValues':X['waterfall']}),_0x5c238f(_0x3caa29(0x1e8),{'children':[_0x1fa005(_0x36a7b3,{'title':_0x41fa39['t'](_0x3caa29(0x404))}),_0x1fa005(qr,{'value':_0x1a7e5e[_0x3caa29(0x2f2)],'options':[{'value':_0x3caa29(0xf9),'label':_0x41fa39['t'](_0x3caa29(0x373))},{'value':_0x3caa29(0x1eb),'label':_0x41fa39['t'](_0x3caa29(0x201))},{'value':_0x3caa29(0x173),'label':_0x41fa39['t'](_0x3caa29(0x345))}],'onChange':_0x5314fb=>{const _0x5017a2=_0x3caa29;(_0x5314fb==='chart-and-table'||_0x5314fb===_0x5017a2(0x1eb)||_0x5314fb==='table')&&_0x3114d0({'displayMode':_0x5314fb});}})]})]})}):_0x1fa005(_0x2a9829,{'id':_0x3caa29(0x243),'label':_0x41fa39['t'](_0x3caa29(0x2e7)),'children':_0x1fa005(ti,{})})]})});}function $r(_0x45dc48,_0x4c48bd){const _0x1c5ea4=_0x3447f8;return{..._0x45dc48,'type':_0x4c48bd[_0x1c5ea4(0x13e)]??_0x45dc48['type'],'style':_0x4c48bd[_0x1c5ea4(0xc1)]??_0x45dc48[_0x1c5ea4(0xc1)],'context':_0x4c48bd[_0x1c5ea4(0x1e3)]??_0x45dc48[_0x1c5ea4(0x1e3)],'dataAggregation':_0x4c48bd[_0x1c5ea4(0x219)]??_0x45dc48['dataAggregation']};}function ei(){const _0x542318=_0x3447f8;let _0xabe3e0=_0x3d34ba();return _0x1fa005(_0x5103da,{'visible':Zr[_0x542318(0xf2)](_0x53f079=>!_0x51a8fc[_0x542318(0x275)](_0xabe3e0,_0x53f079))});}function Z(_0x50be19){const _0x11750c=_0x3447f8;return _0x5c238f(_0x8a2ccf,{'id':_0x50be19['id'],'children':[_0x1fa005(_0x32883f,{'children':_0x50be19[_0x11750c(0x24a)]}),_0x1fa005(_0x3206aa,{'children':_0x50be19['children']})]});}function ti(){const _0x54503e=_0x3447f8;let _0x2d65f4=_0x53af8d(_0x255457),_0x44c45c=_0x3d34ba(),_0x2a8ca0=_0x20bafb(),[_0x2a76e4,_0x15414d]=_0xee90d5(null),_0x2fb2ec=_0x51a8fc[_0x54503e(0x275)](_0x44c45c,_0x44b61b[_0x54503e(0x157)]),_0x44f3df=_0x44c45c===_0x44b61b[_0x54503e(0x35a)],_0xe0ab2f=_0x44c45c===_0x44b61b['WordCloud'],_0x3226f9=_0x44c45c===_0x44b61b[_0x54503e(0x23c)],_0x5c329d=_0x51a8fc[_0x54503e(0x275)](_0x44c45c,_0x44b61b[_0x54503e(0x3cd)]),_0x17e0cd=_0x44c45c===_0x44b61b[_0x54503e(0x108)],_0x135d2a=_0x44c45c===_0x44b61b['Waterfall'],_0x26ba55=_0x44c45c===_0x44b61b['Pareto'],_0x3ff624=_0x44c45c===_0x44b61b[_0x54503e(0x27c)],_0x21e549=_0xe0cb49(_0x44c45c,_0x44db8c[_0x54503e(0x27f)])&&!_0x5c329d&&!_0x26ba55,_0x156cc8=ni(_0x44c45c,_0x2d65f4);return _0x5c238f(_0x11d43d,{'value':_0x2a76e4,'onChange':_0x15414d,'children':[_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x2a8)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0x1fa005(_0x20d08d,{'defaultValues':X[_0x54503e(0xc1)]})}),_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x2ea)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.common.chartAndAxisTitles'),'children':_0x1fa005(_0x245340,{'commitMode':_0x54503e(0x303),'defaultValues':X[_0x54503e(0xbb)]})}),_0x21e549&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0xfa)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.common.series'),'children':_0x1fa005(_0x33c14c,{'defaultValues':X[_0x54503e(0x283)],'NumberFormatField':_0x3220da})}),_0x135d2a&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x216)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.section.waterfall'),'children':_0x1fa005(_0x166174,{'defaultValues':X['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x412769,target:_0x59bdbc})=>_0x59bdbc===_0x1aea73[_0x54503e(0x293)]?_0x2d65f4['t'](_0x54503e(0x236)):_0x412769?_0x412769+'-('+_0x2d65f4['t'](_0x54503e(0x1c4)+(_0x59bdbc===_0x1aea73['Positive']?_0x54503e(0x38c):_0x54503e(0x29e)))+')':'','NumberFormatField':_0x3220da})}),_0x26ba55&&_0x5c238f(_0x594ef8,{'children':[_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x2b9)],'label':_0x2d65f4['t'](_0x54503e(0x319)),'children':_0x1fa005(_0x44a0fb,{'defaultValues':X[_0x54503e(0x189)],'NumberFormatField':_0x3220da,'showDataPointEditor':!0x0,'target':_0x54503e(0xc3)})}),_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x32a)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':_0x1fa005(_0x44a0fb,{'defaultValues':X[_0x54503e(0x189)],'NumberFormatField':_0x3220da,'showDataPointEditor':!0x1,'target':_0x54503e(0x3e8)})})]}),_0x2fb2ec&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x1ce)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.section.pie'),'children':_0x1fa005(_0x4b289c,{'defaultValues':X[_0x54503e(0x3f5)],'NumberFormatField':_0x3220da})}),_0xe0ab2f&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x32e)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.section.wordCloud'),'children':_0x1fa005(_0x13d7d7,{'defaultValues':X[_0x54503e(0x3c0)]})}),_0x44f3df&&_0x1fa005(Z,{'id':_0x2ecbeb['Radar'],'label':_0x2d65f4['t'](_0x54503e(0x1cd)),'children':_0x1fa005(_0x1d9e1f,{'defaultValues':X[_0x54503e(0x2cc)]})}),_0x3226f9&&_0x1fa005(Z,{'id':_0x2ecbeb['Funnel'],'label':_0x2d65f4['t'](_0x54503e(0x10b)),'children':_0x1fa005(_0x7de25d,{'defaultValues':X[_0x54503e(0x306)],'gapControl':_0x54503e(0x329)})}),_0x3ff624&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x27c)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.common.heatmap'),'children':_0x1fa005(_0x51ee3a,{'defaultValues':X[_0x54503e(0x28f)]})}),_0x17e0cd&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x108)],'label':_0x2d65f4['t'](_0x54503e(0x331)),'children':_0x1fa005(_0xa63c30,{'defaultValues':X[_0x54503e(0x37d)]})}),_0x2aabdc(_0x44c45c)&&_0x1fa005(Z,{'id':_0x2ecbeb['LineAndArea'],'label':_0x2d65f4['t'](_0x54503e(0x328)),'children':_0x1fa005(_0x171453,{'defaultValues':X[_0x54503e(0x133)],'lineStyleControl':_0x54503e(0x2db)})}),_0xe0cb49(_0x44c45c,_0x44db8c[_0x54503e(0x2fa)])&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x2fa)],'label':_0x2d65f4['t'](_0x54503e(0x2ca)),'children':_0x1fa005(_0x4d3419,{'defaultValues':X[_0x54503e(0x3c8)]})}),_0xe0cb49(_0x44c45c,_0x44db8c['Axes'])&&_0x5c238f(_0x594ef8,{'children':[_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x2e4)],'label':_0x2d65f4['t'](_0x54503e(0x287)),'children':_0x1fa005(_0x3ee0e8,{'axis':'x','defaultValues':X[_0x54503e(0x288)],'NumberFormatField':_0x3220da})}),_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x3d3)],'label':_0x2d65f4['t'](_0x54503e(0x12b)),'children':_0x1fa005(_0x3ee0e8,{'axis':'y','defaultValues':X['axis'],'NumberFormatField':_0x3220da})}),_0x2a8ca0&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x180)],'label':_0x2d65f4['t'](_0x54503e(0x2f5)),'children':_0x1fa005(_0x3ee0e8,{'axis':_0x54503e(0x307),'defaultValues':X[_0x54503e(0x288)],'NumberFormatField':_0x3220da})}),_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x3b7)],'label':_0x2d65f4['t'](_0x54503e(0x35b)),'children':_0x1fa005(_0x3fd0a7,{'defaultValues':X[_0x54503e(0x288)]})})]}),_0xe0cb49(_0x44c45c,_0x44db8c['IndicatorLine'])&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x409)],'label':_0x2d65f4['t'](_0x54503e(0x220)),'children':_0x1fa005(_0x566467,{'defaultValues':X[_0x54503e(0x140)]})}),_0x5b26be(_0x44c45c)&&_0x1fa005(Z,{'id':_0x2ecbeb['Trendline'],'label':_0x2d65f4['t'](_0x54503e(0x1c3)),'children':_0x1fa005(_0x3c2f68,{'defaultValues':X[_0x54503e(0x230)]})}),_0x156cc8&&_0x1fa005(Z,{'id':_0x156cc8['id'],'label':_0x156cc8[_0x54503e(0x24a)],'children':_0x1fa005(_0x2412a5,{})})]});}function ni(_0x3be12e,_0x377dae){const _0x59a06f=_0x3447f8;let _0x20af7e={[_0x44b61b[_0x59a06f(0x265)]]:{'id':_0x2ecbeb['Candlestick'],'localeKey':_0x59a06f(0x267)},[_0x44b61b['Histogram']]:{'id':_0x2ecbeb[_0x59a06f(0xf7)],'localeKey':_0x59a06f(0x3f2)},[_0x44b61b[_0x59a06f(0x1f8)]]:{'id':_0x2ecbeb[_0x59a06f(0x1f8)],'localeKey':'bases-dashboard-ui.chart.section.treemap'},[_0x44b61b[_0x59a06f(0x1e2)]]:{'id':_0x2ecbeb[_0x59a06f(0x1e2)],'localeKey':_0x59a06f(0x205)},[_0x44b61b[_0x59a06f(0x37b)]]:{'id':_0x2ecbeb[_0x59a06f(0x37b)],'localeKey':'bases-dashboard-ui.chart.section.gauge'},[_0x44b61b['Chord']]:{'id':_0x2ecbeb[_0x59a06f(0x2de)],'localeKey':_0x59a06f(0x354)}}[_0x3be12e];return _0x20af7e?{'id':_0x20af7e['id'],'label':_0x377dae['t'](_0x20af7e[_0x59a06f(0x139)])}:null;}function ri(_0x2b61c9){const _0x377632=_0x3447f8;return _0x377632(0x148)+_0x2b61c9;}function ii({onChange:_0x2f2ac6,onEditData:_0x47292e,runtime:_0x2fe732,sourceChart:_0x45f6e4,sourceName:_0x8514ea,widget:_0x3c6c80}){const _0x5849f1=_0x3447f8;let _0x423797=_0x53af8d(Gr),_0x14bb9b=_0x53af8d(_0x255457),[_0xcbb894,_0x3c62ad]=_0xee90d5(_0x2599aa[_0x5849f1(0x2aa)]),_0x2d0849=_0x3c6c80['chart']??_0x45f6e4,_0x16c7a2=_0x125177(()=>new _0x3832ea(_0x2fe732[_0x5849f1(0x2c4)],{'commit':_0x46c03=>{const _0x166c28=_0x5849f1;var _0x22bda6;let _0x36d3b5=_0x2fe732[_0x166c28(0x2c4)],_0x4230ce=_0x3fd4b5(_0x46c03,{'series':(_0x22bda6=_0x36d3b5['config'])==null?void 0x0:_0x22bda6[_0x166c28(0x283)],'currentChartType':_0x36d3b5[_0x166c28(0x13e)],'currentStyle':_0x36d3b5[_0x166c28(0xc1)],'currentContext':_0x36d3b5[_0x166c28(0x1e3)],'currentDataAggregation':_0x36d3b5[_0x166c28(0x219)]});_0x2f2ac6({..._0x3c6c80,'chart':$r(_0x2d0849,_0x4230ce)})[_0x166c28(0x308)](()=>void 0x0);}}),[_0x2d0849,_0x2f2ac6,_0x2fe732,_0x3c6c80]),_0x59e6bb=_0x125177(()=>_0x4fc7e8(_0x1016f1['map'](_0x229449=>({..._0x229449,'label':_0x14bb9b['t'](ai(_0x229449[_0x5849f1(0x2ad)]))}))),[_0x14bb9b]);return _0x1fa005(_0x4bde66,{'chartUIService':_0x423797,'hostAdapter':_0x16c7a2,'children':_0x5c238f(_0x5849f1(0x1e8),{'data-dashboard-chart-inspector':!0x0,'className':_0x5849f1(0x1bd),'children':[_0x1fa005(_0x283559,{'ariaLabel':_0x14bb9b['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x5849f1(0x302),'items':[{'label':_0x14bb9b['t'](_0x5849f1(0x169)),'panelId':_0x5849f1(0x318),'value':_0x2599aa[_0x5849f1(0x2aa)]},{'label':_0x14bb9b['t'](_0x5849f1(0x2e7)),'panelId':_0x5849f1(0x321),'value':_0x2599aa[_0x5849f1(0x33f)]}],'value':_0xcbb894,'onChange':_0x3c62ad}),_0xcbb894===_0x2599aa['Data']?_0x1fa005(_0x2a9829,{'id':'dashboard-chart-setup','label':_0x14bb9b['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x5c238f(_0x5849f1(0x1e8),{'className':_0x5849f1(0x228),'children':[_0x1fa005(_0x28e1f3,{'options':_0x59e6bb}),_0x1fa005(_0x2fc38a,{}),_0x1fa005(_0x57f87a,{}),_0x1fa005(ei,{}),_0x1fa005(_0x2fa3d3,{}),_0x5c238f(_0x5849f1(0x1e8),{'children':[_0x1fa005(_0x36a7b3,{'title':_0x14bb9b['t']('bases-dashboard-ui.dashboardInspector.dataSource')}),_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':_0x8514ea}),_0x1fa005(_0x10d589,{'className':_0x5849f1(0x32d),'onClick':_0x47292e,'children':_0x14bb9b['t'](_0x5849f1(0xe5))})]})]})}):_0x1fa005(_0x2a9829,{'id':'dashboard-chart-style','label':_0x14bb9b['t'](_0x5849f1(0x2e7)),'children':_0x1fa005(ti,{})})]})});}function ai(_0x2f0cbf){const _0x525342=_0x3447f8;return _0x525342(0x148)+_0x2f0cbf;}const oi=[_0x3447f8(0x20a),_0x3447f8(0x30d),'percent',_0x3447f8(0x39b),_0x3447f8(0x196),_0x3447f8(0x3da)];function si({base:_0x35f59b,onChange:_0x580fcb,onSelectBackgroundImage:_0x41e010,widget:_0x27c75e}){const _0x76ffdf=_0x3447f8;var _0x51fd20;let _0x275568=_0x53af8d(_0x255457),_0x24103c=_0x53af8d(_0x22d94c),_0x36a3ad=_0x129d28(()=>_0x24103c['currentTheme$'],_0x24103c['getCurrentTheme'](),!0x1,[_0x24103c]),_0x10edcf=_0x129d28(()=>_0x24103c[_0x76ffdf(0x19a)],_0x24103c[_0x76ffdf(0x247)],!0x1,[_0x24103c]),[_0x917748,_0x3a5e65]=_0xee90d5(_0x76ffdf(0x279)),[_0x58bd19,_0x4bb974]=_0xee90d5(!0x1),_0x38cc8f=xr(_0x27c75e),_0x404fbd=_0x35f59b[_0x76ffdf(0x3b6)]()[_0x76ffdf(0x186)][_0x27c75e[_0x76ffdf(0x154)]],_0x413ed4=_0x404fbd==null?void 0x0:_0x404fbd[_0x76ffdf(0x286)]['find'](_0x51936d=>_0x404fbd[_0x76ffdf(0x2dc)][_0x51936d]),_0x366f59=_0x413ed4?_0x404fbd==null?void 0x0:_0x404fbd['views'][_0x413ed4]:void 0x0,_0x153876=_0x404fbd&&_0x366f59?_0x11a6ff(_0x35f59b['getSnapshot'](),_0x404fbd,_0x366f59)[_0x76ffdf(0x1ee)](_0x3fa48d=>({..._0x3fa48d,'current':!0x1})):[],_0x9d2f37=((_0x51fd20=_0x27c75e[_0x76ffdf(0x100)][_0x76ffdf(0x23f)])==null?void 0x0:_0x51fd20[_0x76ffdf(0x392)])??'',_0x4a8d36=_0x30dbe2=>_0x580fcb(Sr(_0x27c75e,_0x30dbe2))[_0x76ffdf(0x308)](()=>void 0x0),_0x391f1b=_0x1ef0e1=>_0x580fcb({..._0x27c75e,'description':_0x1ef0e1})[_0x76ffdf(0x308)](()=>void 0x0);return _0x5c238f(_0x76ffdf(0x1e8),{'data-dashboard-formula-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x1fa005(_0x1eff91,{'className':_0x76ffdf(0x2bf),'items':[{'value':_0x76ffdf(0x279),'label':_0x275568['t'](_0x76ffdf(0xc9))},{'value':_0x76ffdf(0xc1),'label':_0x275568['t'](_0x76ffdf(0xf1))}],'value':_0x917748,'onChange':_0x3a5e65}),_0x1fa005(_0x76ffdf(0x1e8),{'className':_0x76ffdf(0x105),'children':_0x917748===_0x76ffdf(0x279)?_0x5c238f(_0x76ffdf(0x1e8),{'className':_0x76ffdf(0x1a8),'children':[_0x1fa005(ci,{'label':_0x275568['t'](_0x76ffdf(0x1c0)),'children':_0x1fa005(_0x2647d7,{'value':_0x27c75e['description']??_0x27c75e['title']??'','onChange':_0x391f1b,'onBlur':_0x11b0d6=>_0x391f1b(_0x11b0d6[_0x76ffdf(0x3ea)][_0x76ffdf(0x2c2)])})}),_0x1fa005(ci,{'label':_0x275568['t'](_0x76ffdf(0x368)),'children':_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':(_0x404fbd==null?void 0x0:_0x404fbd[_0x76ffdf(0x2cd)])??_0x275568['t'](_0x76ffdf(0xe2))})}),_0x5c238f(ci,{'label':_0x275568['t'](_0x76ffdf(0x257)),'children':[_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':_0x3ae876(_0x9d2f37,_0x153876)}),_0x1fa005(_0x10d589,{'className':_0x76ffdf(0x32d),'onClick':()=>_0x4bb974(!0x0),'children':_0x275568['t']('bases-dashboard-ui.dashboardInspector.editFormula')})]})]}):_0x5c238f(_0x76ffdf(0x1e8),{'className':_0x76ffdf(0x1a8),'children':[_0x1fa005(_0x2d27c8,{'emptyLabel':_0x275568['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x275568['t'](_0x76ffdf(0x19f)),'pickerFallbackValue':_0x10edcf?_0x36a3ad[_0x76ffdf(0x3fe)][0x384]:_0x36a3ad[_0x76ffdf(0x3fe)][0x0],'resetLabel':_0x275568['t'](_0x76ffdf(0x1e0)),'value':_0x38cc8f['backgroundColor']??null,'onChange':_0x57d406=>_0x4a8d36({'backgroundColor':_0x57d406??void 0x0})}),_0x5c238f(ci,{'label':_0x275568['t'](_0x76ffdf(0x22e)),'children':[_0x5c238f(_0x76ffdf(0x1e8),{'className':_0x76ffdf(0x3d4),'children':[_0x5c238f(_0x10d589,{'className':_0x76ffdf(0x1cc),'onClick':()=>{const _0x998c01=_0x76ffdf;_0x41e010()[_0x998c01(0x401)](_0x5384bf=>{const _0x48e995=_0x998c01;if(_0x5384bf){var _0xb3982f;return _0x4a8d36({'backgroundImage':{..._0x5384bf,'fit':((_0xb3982f=_0x38cc8f[_0x48e995(0x294)])==null?void 0x0:_0xb3982f['fit'])??'cover'}});}})['catch'](()=>void 0x0);},'children':[_0x1fa005(_0x34ddb8,{}),_0x38cc8f[_0x76ffdf(0x294)]?_0x275568['t'](_0x76ffdf(0x3fd)):_0x275568['t']('bases-dashboard-ui.dashboardInspector.uploadImage')]}),_0x38cc8f['backgroundImage']&&_0x1fa005(_0x10d589,{'aria-label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x275568['t'](_0x76ffdf(0x153)),'onClick':()=>_0x4a8d36({'backgroundImage':void 0x0}),'children':_0x1fa005(_0x306b68,{})})]}),_0x38cc8f[_0x76ffdf(0x294)]&&_0x1fa005(_0x1eff91,{'className':_0x76ffdf(0x111),'items':[{'value':_0x76ffdf(0x285),'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x76ffdf(0x1d1),'label':_0x275568['t'](_0x76ffdf(0x39d))}],'value':_0x38cc8f[_0x76ffdf(0x294)][_0x76ffdf(0x160)],'onChange':_0x4e2eef=>_0x4a8d36({'backgroundImage':_0x38cc8f[_0x76ffdf(0x294)]?{..._0x38cc8f[_0x76ffdf(0x294)],'fit':_0x4e2eef}:void 0x0})})]}),_0x1fa005(_0x2d27c8,{'emptyLabel':_0x275568['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x10edcf?_0x36a3ad[_0x76ffdf(0x3fe)][0x32]:_0x36a3ad[_0x76ffdf(0x3fe)][0x3e8],'resetLabel':_0x275568['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x38cc8f[_0x76ffdf(0xef)]??null,'onChange':_0x35d90e=>_0x4a8d36({'textColor':_0x35d90e??void 0x0})}),_0x1fa005(ci,{'label':_0x275568['t'](_0x76ffdf(0x349)),'children':_0x1fa005(_0x1eff91,{'items':[{'value':_0x76ffdf(0x1b4),'label':_0x275568['t'](_0x76ffdf(0x165))},{'value':'center','label':_0x275568['t'](_0x76ffdf(0x22d))},{'value':_0x76ffdf(0x314),'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x38cc8f['alignment'],'onChange':_0x2c2966=>_0x4a8d36({'alignment':_0x2c2966})})}),_0x5c238f(ci,{'label':_0x275568['t'](_0x76ffdf(0x3c5)),'children':[_0x1fa005(_0x1eff91,{'items':[{'value':_0x76ffdf(0x195),'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':'custom','label':_0x275568['t'](_0x76ffdf(0x3d5))}],'value':_0x38cc8f[_0x76ffdf(0x38a)],'onChange':_0x214c19=>_0x4a8d36({'fontSizeMode':_0x214c19})}),_0x38cc8f[_0x76ffdf(0x38a)]===_0x76ffdf(0x1b1)&&_0x1fa005(_0x499d19,{'className':_0x76ffdf(0x111),'min':0xc,'max':0x78,'value':_0x38cc8f[_0x76ffdf(0x1ae)],'onChange':_0x3f076d=>_0x4a8d36({'fontSize':_0x3f076d??0x28,'fontSizeMode':_0x76ffdf(0x1b1)})})]}),_0x1fa005(ci,{'label':_0x275568['t'](_0x76ffdf(0x20c)),'children':_0x1fa005(qr,{'value':_0x38cc8f['numberFormat'],'options':[{'value':_0x76ffdf(0x20a),'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.general')},{'value':'number','label':_0x275568['t'](_0x76ffdf(0x378))},{'value':_0x76ffdf(0x277),'label':_0x275568['t'](_0x76ffdf(0x260))},{'value':'currency','label':_0x275568['t'](_0x76ffdf(0x193))},{'value':_0x76ffdf(0x196),'label':_0x275568['t'](_0x76ffdf(0x330))},{'value':'compact','label':_0x275568['t'](_0x76ffdf(0x32b))}],'onChange':_0x298b2f=>{let _0x5099b7=oi['find'](_0xb9755e=>_0xb9755e===_0x298b2f);_0x5099b7&&_0x4a8d36({'numberFormat':_0x5099b7});}})}),_0x38cc8f[_0x76ffdf(0x235)]===_0x76ffdf(0x39b)&&_0x1fa005(ci,{'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x1fa005(_0x2647d7,{'value':_0x38cc8f[_0x76ffdf(0x39b)],'onChange':_0x59746a=>_0x4a8d36({'currency':_0x59746a['slice'](0x0,0x3)[_0x76ffdf(0x390)]()})})}),_0x38cc8f[_0x76ffdf(0x235)]!==_0x76ffdf(0x20a)&&_0x1fa005(ci,{'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.decimalPlaces'),'children':_0x1fa005(_0x499d19,{'min':0x0,'max':0x8,'value':_0x38cc8f[_0x76ffdf(0xb9)],'onChange':_0x27b850=>_0x4a8d36({'decimalPlaces':_0x27b850??0x0})})})]})}),_0x58bd19&&_0x1fa005(Yr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1fa005(_0x4689e6,{'tables':_0x153876,'formula':_0x3ae876(_0x9d2f37,_0x153876),'onCancel':()=>_0x4bb974(!0x1),'onSave':_0x9d3bf5=>{const _0x55e86c=_0x76ffdf;let _0x1222e5=_0x27c75e['shapeData']['formulaBinding']??{'formula':''};return _0x580fcb({..._0x27c75e,'shapeData':{..._0x27c75e[_0x55e86c(0x100)],'formulaBinding':{..._0x1222e5,'formula':_0x3949ea(_0x9d3bf5,_0x153876)}}})[_0x55e86c(0x401)](()=>_0x4bb974(!0x1))[_0x55e86c(0x308)](()=>void 0x0);}})})]});}function ci({children:_0x2cb578,label:_0x24c2c5}){const _0x2cb23c=_0x3447f8;return _0x5c238f(_0x2cb23c(0x1e8),{'role':_0x2cb23c(0x21e),'aria-label':_0x24c2c5,'className':_0x2cb23c(0x393),'children':[_0x1fa005('span',{'children':_0x24c2c5}),_0x2cb578]});}function li({disabled:_0x6b18ce,fields:_0x10697d,filter:_0x1ef7d8,onChange:_0x214503}){const _0x2eec48=_0x3447f8;let _0x4224ba=_0x53af8d(_0x5d52a6)[_0x2eec48(0x280)]??null,[_0x27f370,_0x33e5e9]=_0xee90d5(null),_0x21d46a=_0x53af8d(_0x255457),_0x1b3ca0=(_0x1ef7d8==null?void 0x0:_0x1ef7d8[_0x2eec48(0x1da)])??[];if(!_0x1b3ca0[_0x2eec48(0x2c8)])return _0x5c238f('div',{'className':_0x2eec48(0x309),'children':[_0x1fa005(_0x48629d,{'className':'univer-mx-auto\x20univer-size-6'}),_0x1fa005(_0x2eec48(0x40a),{'className':_0x2eec48(0x2d7),'children':_0x21d46a['t'](_0x2eec48(0x253))})]});let _0x1f688f=_0x27f370==null?void 0x0:_0x1b3ca0[_0x27f370],_0x48b03b=_0x10697d[_0x2eec48(0x2c9)](_0x1d86bc=>_0x1d86bc['id']===(_0x1f688f==null?void 0x0:_0x1f688f[_0x2eec48(0x1e5)]));return _0x5c238f('div',{'className':_0x2eec48(0x224),'children':[_0x1b3ca0[_0x2eec48(0x1ee)]((_0x5f0add,_0x3510ae)=>{const _0x456dde=_0x2eec48;var _0x409b4c;return _0x5c238f(_0x10d589,{'disabled':_0x6b18ce,'onClick':()=>_0x33e5e9(_0x3510ae),'children':[_0x1fa005(_0x456dde(0x40a),{'children':((_0x409b4c=_0x10697d['find'](_0x2b71b5=>_0x2b71b5['id']===_0x5f0add[_0x456dde(0x1e5)]))==null?void 0x0:_0x409b4c[_0x456dde(0x2cd)])??_0x5f0add[_0x456dde(0x1e5)]}),_0x1fa005(_0x456dde(0x40a),{'className':_0x456dde(0x242),'children':String(_0x5f0add[_0x456dde(0x366)]??'')})]},_0x5f0add[_0x456dde(0x1e5)]+'-'+_0x3510ae);}),_0x48b03b&&_0x1f688f&&_0x27f370!=null&&_0x4224ba&&_0x46c06e(_0x1fa005(_0x2001af,{'field':_0x48b03b,'value':_0x1f688f[_0x2eec48(0x366)],'onClose':()=>_0x33e5e9(null),'onSave':_0x58ade5=>{_0x214503({'conjunction':(_0x1ef7d8==null?void 0x0:_0x1ef7d8['conjunction'])??_0x3a6b1d['AND'],'conditions':_0x1b3ca0['map']((_0x13fb8c,_0x586b5c)=>_0x586b5c===_0x27f370?{..._0x13fb8c,'operand':_0x58ade5}:_0x13fb8c)}),_0x33e5e9(null);}}),_0x4224ba)]});}function ui({fields:_0x424631,filter:_0x1866e4,onChange:_0x8b7dc,onClear:_0x35d6ed}){const _0x187a61=_0x3447f8;let _0x344c27=_0x53af8d(_0x255457);return _0x5c238f(_0x187a61(0x1e8),{'children':[_0x1fa005(_0x22f272,{'fields':_0x424631,'value':_0x1866e4??{'conjunction':_0x3a6b1d[_0x187a61(0x226)],'conditions':[]},'onChange':_0x8b7dc}),_0x1fa005(_0x10d589,{'onClick':_0x35d6ed,'children':_0x344c27['t'](_0x187a61(0x1e0))})]});}function di({base:_0x497396,chartRuntime:_0x115791,onChange:_0x2f3a48,onClose:_0x10fbf9,onSelectBackgroundImage:_0x10dbdf,onSelectImage:_0x24bd55,unitId:_0x15e86a,widget:_0x22c204}){const _0x390da1=_0x3447f8;let _0x10501a=_0x53af8d(_0x1ec317),_0x20fd26=_0x53af8d(_0x255457),_0x437148=_0x497396[_0x390da1(0x3b6)](),_0x41f5e7=_0x390da1(0x154)in _0x22c204?_0x437148[_0x390da1(0x186)][_0x22c204[_0x390da1(0x154)]]:void 0x0,_0x187ac8=_0x22c204[_0x390da1(0x1b9)]===_0x28a714[_0x390da1(0x3ee)]?_0x41f5e7==null?void 0x0:_0x41f5e7[_0x390da1(0x2dc)][_0x22c204[_0x390da1(0x2e1)]]:void 0x0,_0x26493d=_0x20fd26['t'](vi(_0x22c204)),_0x28cb28=_0x5c238f('aside',{'data-dashboard-inspector':!0x0,'className':_0x390da1(0x2fb),'children':[_0x22c204[_0x390da1(0x1b9)]===_0x28a714[_0x390da1(0x3ee)]&&(_i(_0x187ac8)&&_0x115791?_0x1fa005(ii,{'runtime':_0x115791,'sourceChart':_0x187ac8[_0x390da1(0x2b0)][_0x390da1(0x1eb)],'sourceName':((_0x41f5e7==null?void 0x0:_0x41f5e7['name'])??'')+'\x20/\x20'+_0x187ac8[_0x390da1(0x2cd)],'widget':_0x22c204,'onChange':_0x2f3a48,'onEditData':()=>{const _0x5cf562=_0x390da1;_0x10501a[_0x5cf562(0x2be)](_0xe74b73['id'],{'unitId':_0x15e86a,'tableId':_0x22c204[_0x5cf562(0x154)],'viewId':_0x22c204[_0x5cf562(0x2e1)]})[_0x5cf562(0x308)](()=>void 0x0);}}):_0x1fa005(hi,{'message':_i(_0x187ac8)?_0x20fd26['t'](_0x390da1(0x21c)):_0x20fd26['t'](_0x390da1(0xe2))})),_0x22c204[_0x390da1(0x1b9)]===_0x28a714[_0x390da1(0x1ca)]&&_0x1fa005(si,{'base':_0x497396,'widget':_0x22c204,'onChange':_0x2f3a48,'onSelectBackgroundImage':_0x10dbdf}),_0x22c204[_0x390da1(0x1b9)]===_0x28a714[_0x390da1(0x2a5)]&&_0x1fa005(pi,{'base':_0x497396,'onChange':_0x2f3a48,'widget':_0x22c204}),_0x22c204[_0x390da1(0x1b9)]===_0x28a714[_0x390da1(0x2d4)]&&_0x1fa005(mi,{'onChange':_0x2f3a48,'widget':_0x22c204}),_0x22c204[_0x390da1(0x1b9)]===_0x28a714[_0x390da1(0x341)]&&_0x1fa005(fi,{'onChange':_0x2f3a48,'onSelectImage':_0x24bd55,'widget':_0x22c204})]});return _0x1fa005(_0x14b201,{'title':_0x26493d,'onClose':_0x10fbf9,'children':_0x28cb28});}function fi({onChange:_0x4e7764,onSelectImage:_0x34d5c1,widget:_0x332195}){const _0x8f6372=_0x3447f8;let _0xddca1=_0x53af8d(_0x255457);return _0x5c238f(_0x8f6372(0x1e8),{'className':_0x8f6372(0x175),'children':[_0x5c238f(_0x10d589,{'className':_0x8f6372(0x3af),'onClick':()=>_0x34d5c1()['then'](_0x324eda=>_0x324eda&&_0x4e7764({..._0x332195,'source':_0x324eda['source'],'sourceType':_0x324eda[_0x8f6372(0xd9)],'alt':_0x324eda[_0x8f6372(0x2cd)]}))[_0x8f6372(0x308)](()=>void 0x0),'children':[_0x1fa005(_0x34ddb8,{}),_0xddca1['t'](_0x8f6372(0x3fd))]}),_0x5c238f('label',{'className':_0x8f6372(0x393),'children':[_0x1fa005('span',{'children':_0xddca1['t'](_0x8f6372(0x22e))}),_0x1fa005(_0x1eff91,{'items':[{'value':_0x8f6372(0x285),'label':_0xddca1['t'](_0x8f6372(0x1ad))},{'value':_0x8f6372(0x2af),'label':_0xddca1['t'](_0x8f6372(0x35d))},{'value':_0x8f6372(0x3cf),'label':_0xddca1['t'](_0x8f6372(0x170))}],'value':_0x332195[_0x8f6372(0x2f2)]??'cover','onChange':_0x19c784=>_0x4e7764({..._0x332195,'displayMode':_0x19c784})['catch'](()=>void 0x0)})]})]});}function pi({base:_0xf64990,onChange:_0x3ebf70,widget:_0x237071}){const _0x2b344b=_0x3447f8;let _0x16c42e=_0xf64990[_0x2b344b(0x3b6)]()['tables'][_0x237071[_0x2b344b(0x154)]],_0x258d9c=_0x16c42e==null?void 0x0:_0x16c42e[_0x2b344b(0x286)][_0x2b344b(0x2c9)](_0x47f207=>_0x16c42e[_0x2b344b(0x2dc)][_0x47f207]),_0x514704=_0x258d9c?_0x16c42e==null?void 0x0:_0x16c42e['views'][_0x258d9c]:void 0x0,_0x35408c=_0x16c42e&&_0x514704?_0x295488(_0x16c42e,_0x514704):[];return _0x1fa005(ui,{'fields':_0x35408c,'filter':_0x237071[_0x2b344b(0x14f)],'onChange':_0x142276=>_0x3ebf70({..._0x237071,'filter':_0x142276})[_0x2b344b(0x308)](()=>void 0x0),'onClear':()=>_0x3ebf70({..._0x237071,'filter':null})[_0x2b344b(0x308)](()=>void 0x0)});}function mi({onChange:_0x386cf0,widget:_0x2c0c54}){const _0x3bb71e=_0x3447f8;let _0x581ad2=_0x53af8d(_0x255457),_0x328f19=_0x53af8d(_0x22d94c),_0x1f6fb0=_0x129d28(()=>_0x328f19['currentTheme$'],_0x328f19[_0x3bb71e(0x11c)](),!0x1,[_0x328f19]),_0x1dc230=Br(_0x2c0c54),_0x1d4654=_0x4f0682=>_0x386cf0({..._0x2c0c54,'appearance':{..._0x1dc230,..._0x4f0682}})['catch'](()=>void 0x0);return _0x5c238f(_0x3bb71e(0x1e8),{'className':_0x3bb71e(0x142),'children':[_0x1fa005(_0x539ea5,{'className':_0x3bb71e(0x2f6),'defaultValue':Vr(_0x2c0c54[_0x3bb71e(0x339)]),'rows':0x8,'onBlur':_0xf97e88=>_0x386cf0({..._0x2c0c54,'document':Hr(_0x2c0c54['document'],_0xf97e88['target'][_0x3bb71e(0x2c2)])})['catch'](()=>void 0x0)}),_0x1fa005(_0x2d27c8,{'emptyLabel':_0x581ad2['t'](_0x3bb71e(0x19f)),'label':_0x581ad2['t'](_0x3bb71e(0x19f)),'pickerFallbackValue':_0x1f6fb0[_0x3bb71e(0x3fe)][0x0],'resetLabel':_0x581ad2['t'](_0x3bb71e(0x1e0)),'value':_0x1dc230[_0x3bb71e(0x134)]??null,'onChange':_0x3d2e5c=>_0x1d4654({'backgroundColor':_0x3d2e5c??void 0x0})}),_0x1fa005(_0x2d27c8,{'emptyLabel':_0x581ad2['t'](_0x3bb71e(0x26d)),'label':_0x581ad2['t'](_0x3bb71e(0x26d)),'pickerFallbackValue':_0x1f6fb0[_0x3bb71e(0x3fe)][0x3e8],'resetLabel':_0x581ad2['t'](_0x3bb71e(0x1e0)),'value':_0x1dc230[_0x3bb71e(0xef)]??null,'onChange':_0x240fca=>_0x1d4654({'textColor':_0x240fca??void 0x0})}),_0x1fa005(gi,{'label':_0x581ad2['t'](_0x3bb71e(0x349)),'children':_0x1fa005(_0x1eff91,{'items':[{'value':_0x3bb71e(0x1b4),'label':_0x581ad2['t'](_0x3bb71e(0x165))},{'value':_0x3bb71e(0x1e4),'label':_0x581ad2['t'](_0x3bb71e(0x22d))},{'value':_0x3bb71e(0x314),'label':_0x581ad2['t'](_0x3bb71e(0x130))}],'value':_0x1dc230['alignment'],'onChange':_0x1a325d=>_0x1d4654({'alignment':_0x1a325d})})}),_0x5c238f(gi,{'label':_0x581ad2['t']('bases-dashboard-ui.dashboardInspector.textSize'),'children':[_0x1fa005(_0x1eff91,{'items':[{'value':_0x3bb71e(0x195),'label':_0x581ad2['t'](_0x3bb71e(0x162))},{'value':_0x3bb71e(0x1b1),'label':_0x581ad2['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x1dc230['fontSizeMode'],'onChange':_0x5e14dd=>_0x1d4654({'fontSizeMode':_0x5e14dd})}),_0x1dc230['fontSizeMode']===_0x3bb71e(0x1b1)&&_0x1fa005(_0x499d19,{'className':'univer-mt-2','min':0xa,'max':0x78,'value':_0x1dc230[_0x3bb71e(0x1ae)],'onChange':_0xd8bc5f=>_0x1d4654({'fontSize':_0xd8bc5f??0x12,'fontSizeMode':_0x3bb71e(0x1b1)})})]})]});}function hi({message:_0x3cd0f3}){const _0x78400d=_0x3447f8;return _0x1fa005(_0x78400d(0x1e8),{'className':_0x78400d(0x35e),'children':_0x3cd0f3});}function gi({children:_0x3707de,label:_0x576e60}){const _0x476598=_0x3447f8;return _0x5c238f(_0x476598(0x1e8),{'role':'group','aria-':!0x0,'className':_0x476598(0x393),'children':[_0x1fa005(_0x476598(0x40a),{'children':_0x576e60}),_0x3707de]});}function _i(_0x328a75){const _0x5f1ce9=_0x3447f8;return(_0x328a75==null?void 0x0:_0x328a75['type'])===_0x4da0de[_0x5f1ce9(0x1ec)]&&typeof _0x328a75['config']==_0x5f1ce9(0x2f1)&&_0x328a75[_0x5f1ce9(0x2b0)]!==null&&_0x5f1ce9(0x10d)in _0x328a75[_0x5f1ce9(0x2b0)]&&_0x5f1ce9(0x1eb)in _0x328a75[_0x5f1ce9(0x2b0)];}function vi(_0x5b5dce){const _0x290749=_0x3447f8;switch(_0x5b5dce[_0x290749(0x1b9)]){case _0x28a714[_0x290749(0x3ee)]:return _0x290749(0xe4);case _0x28a714['TableFilter']:return _0x290749(0x253);case _0x28a714['Text']:return _0x290749(0x145);case _0x28a714[_0x290749(0x341)]:return _0x290749(0x233);case _0x28a714['FormulaShape']:return'bases-dashboard-ui.dashboard.formulaShape';}}function yi({onDelete:_0x2d4681,onEdit:_0x1b5484,onMoveUp:_0x87de86,onMoveDown:_0x2d58c6}){const _0x718ce6=_0x3447f8;let [_0x2b0f03,_0x53e9d4]=_0xee90d5(!0x1),_0x3b3bbd=_0x53af8d(_0x255457),_0x34d98a=_0x3b3bbd['t'](_0x718ce6(0x1c6)),_0x285592=_0x3b3bbd['t'](_0x718ce6(0x120)),_0x360151=_0x3b3bbd['t']('bases-dashboard-ui.dashboard.widgetActions'),_0x234f1e=[{'type':_0x718ce6(0x347),'children':_0x5c238f(_0x718ce6(0x40a),{'className':_0x718ce6(0x30e),'children':[_0x1fa005(_0x41a33d,{'className':_0x718ce6(0x129),'aria-hidden':'true'}),_0x1fa005('span',{'children':_0x34d98a})]}),'onSelect':_0x1b5484},..._0x87de86?[{'type':_0x718ce6(0x347),'children':_0x5c238f(_0x718ce6(0x40a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1fa005(_0x40d299,{'className':_0x718ce6(0x129),'aria-hidden':_0x718ce6(0x2d2)}),_0x1fa005(_0x718ce6(0x40a),{'children':_0x3b3bbd['t']('bases-dashboard-ui.mobile.moveUp')})]}),'onSelect':_0x87de86}]:[],..._0x2d58c6?[{'type':'item','children':_0x5c238f('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1fa005(_0x4857ec,{'className':'univer-size-4','aria-hidden':_0x718ce6(0x2d2)}),_0x1fa005(_0x718ce6(0x40a),{'children':_0x3b3bbd['t'](_0x718ce6(0x3b4))})]}),'onSelect':_0x2d58c6}]:[],{'type':_0x718ce6(0x161)},{'type':_0x718ce6(0x347),'variant':_0x718ce6(0x262),'children':_0x5c238f(_0x718ce6(0x40a),{'className':_0x718ce6(0x30e),'children':[_0x1fa005(_0x306b68,{'className':_0x718ce6(0x129),'aria-hidden':'true'}),_0x1fa005(_0x718ce6(0x40a),{'children':_0x285592})]}),'onSelect':_0x2d4681}];return _0x1fa005(_0x86d9a9,{'open':_0x2b0f03,'onOpenChange':_0x53e9d4,'align':_0x718ce6(0x372),'sideOffset':0x4,'items':_0x234f1e['map'](_0x85b65c=>({..._0x85b65c,'className':_0x85b65c[_0x718ce6(0x1b9)]===_0x718ce6(0x347)?_0x718ce6(0x3fa):void 0x0})),'children':_0x1fa005(_0x10d589,{'type':'button','size':_0x718ce6(0x11d),'variant':'text','onPointerDown':_0x1a9442=>_0x1a9442[_0x718ce6(0x16a)](),'onClick':()=>_0x53e9d4(_0x68463a=>!_0x68463a),'title':_0x360151,'aria-label':_0x360151,'className':_0x718ce6(0x3ab),'children':_0x1fa005(_0x46df20,{'className':_0x718ce6(0x129),'aria-hidden':'true'})})});}function bi({dashboardId:_0x5c1bea,presentation:_0x19bd59=!0x1,unitId:_0x579f62}){const _0x4bd748=_0x3447f8;let _0x513cbf=_0x53af8d(_0x49fd9b),_0x6b53b3=_0x53af8d(_0x346c1c);_0x129d28(_0x6b53b3[_0x4bd748(0x388)],0x0);let _0x3d3ccb=_0x53af8d(_0x1ec317),_0x3c12c2=_0x53af8d(_0x230a38),_0x508b69=_0x53af8d(_0x2cceec),_0x539864=_0x53af8d(_0xa15270),_0x30ffe6=_0x53af8d(_0x255457),_0x5bbbf4=_0x53af8d(_0x4e6cdd),_0x4a7438=_0x53af8d(_0x3c357b),[_0x5c075a,_0x3faa61]=_0xee90d5(!0x1),[_0x3d88cc,_0x52189e]=_0xee90d5(),[_0x12d916,_0x36cea6]=_0xee90d5(!0x1),[_0x511140,_0x5858f0]=_0xee90d5(()=>new Map()),_0x3a2cbc=_0x2f6d8e((_0x465e48,_0x36baa1)=>{_0x5858f0(_0x468868=>{let _0x52a8df=new Map(_0x468868);return _0x36baa1?_0x52a8df['set'](_0x465e48,_0x36baa1):_0x52a8df['delete'](_0x465e48),_0x52a8df;});},[]),_0x519c0e=_0x129d28(()=>_0x5bbbf4[_0x4bd748(0x135)][_0x4bd748(0x387)](_0x26242b(()=>_0x5bbbf4['getDashboard'](_0x579f62,_0x5c1bea))),_0x5bbbf4['getDashboard'](_0x579f62,_0x5c1bea),!0x1,[_0x5c1bea,_0x5bbbf4,_0x579f62]),_0x5aa108=_0x539864[_0x4bd748(0x3be)](_0x579f62,_0x6e7cef[_0x4bd748(0x1f7)]),_0x3a1e86=_0x129d28(()=>_0x4a7438[_0x4bd748(0x312)],{'undos':0x0,'redos':0x0},!0x1,[_0x4a7438]),_0x5c526e=gr(_0x579f62,_0x5c1bea);if(_0x543512(()=>{const _0x4342ed=_0x4bd748;_0x539864['setCurrentUnitForType'](_0x579f62),_0x539864[_0x4342ed(0x3a3)](_0x579f62);},[_0x539864,_0x579f62]),!_0x519c0e||!_0x5aa108)return null;let _0x286826={'unitId':_0x579f62,'objectId':_0x4e82aa(_0x5c1bea),'objectType':_0x1349b1[_0x4bd748(0x240)]},_0x33eadc=(_0x26b33d,_0x1f90bb)=>{const _0x41dbde=_0x4bd748;let _0x379def=[..._0x519c0e['widgetOrder']],_0x1282c4=_0x379def[_0x41dbde(0x1cb)](_0x26b33d),_0x243b5a=_0x1282c4+_0x1f90bb;if(!(_0x1282c4<0x0||_0x243b5a<0x0||_0x243b5a>=_0x379def[_0x41dbde(0x2c8)]))return[_0x379def[_0x1282c4],_0x379def[_0x243b5a]]=[_0x379def[_0x243b5a],_0x379def[_0x1282c4]],_0x3d3ccb['executeCommand'](_0x51a517['id'],{'unitId':_0x579f62,'dashboard':{..._0x519c0e,'widgetOrder':_0x379def}});},_0xd4f2c7=_0x42eb92=>_0x3d3ccb[_0x4bd748(0x2be)](_0x49cadf['id'],{'unitId':_0x579f62,'dashboardId':_0x5c1bea,'widget':_0x42eb92})[_0x4bd748(0x308)](()=>void 0x0),_0x331469=(_0x47ae7a,_0x1c60aa,_0x237309)=>{const _0x29f8cd=_0x4bd748;let _0x1d84f5=Math[_0x29f8cd(0x351)](0x0,..._0x519c0e['widgetOrder'][_0x29f8cd(0x30c)](_0x29399f=>{const _0xfa4ce6=_0x29f8cd;var _0x5f4e9c;let _0x360d25=(_0x5f4e9c=_0x519c0e[_0xfa4ce6(0x311)][_0x29399f])==null?void 0x0:_0x5f4e9c['layout'];return _0x360d25?[_0x360d25[_0xfa4ce6(0x2b6)]+_0x360d25[_0xfa4ce6(0x3ef)]]:[];})),_0x232ed4='dashboard-widget-'+_0x2aef82(0x8),_0x1abe25={'column':0x0,'row':_0x1d84f5,'columnSpan':_0x1c60aa,'rowSpan':_0x237309};switch(_0x47ae7a['type']){case _0x28a714[_0x29f8cd(0x3ee)]:return _0xd4f2c7({..._0x47ae7a,'id':_0x232ed4,'layout':_0x1abe25});case _0x28a714[_0x29f8cd(0x2a5)]:return _0xd4f2c7({..._0x47ae7a,'id':_0x232ed4,'layout':_0x1abe25});case _0x28a714[_0x29f8cd(0x2d4)]:return _0xd4f2c7({..._0x47ae7a,'id':_0x232ed4,'layout':_0x1abe25});case _0x28a714[_0x29f8cd(0x341)]:return _0xd4f2c7({..._0x47ae7a,'id':_0x232ed4,'layout':_0x1abe25});case _0x28a714[_0x29f8cd(0x1ca)]:return _0xd4f2c7({..._0x47ae7a,'id':_0x232ed4,'layout':_0x1abe25});}},_0x54c33c=_0x5aa108['getSnapshot'](),_0x5a2bf9=_0x54c33c[_0x4bd748(0xbc)][_0x4bd748(0x30c)](_0x444ed8=>{const _0x5bc8b7=_0x4bd748;let _0xc413d8=_0x54c33c[_0x5bc8b7(0x186)][_0x444ed8];if(!_0xc413d8)return[];let _0x1fb0c6=_0xc413d8[_0x5bc8b7(0x286)][_0x5bc8b7(0x30c)](_0x5a2ba9=>{const _0x502869=_0x5bc8b7;let _0x73ceb0=_0xc413d8[_0x502869(0x2dc)][_0x5a2ba9];return Oi(_0x73ceb0)?[{'type':_0x502869(0x347),'children':_0x73ceb0['name'],'onSelect':()=>_0x331469({'type':_0x28a714[_0x502869(0x3ee)],'tableId':_0x444ed8,'pivotViewId':_0x5a2ba9,'chart':{..._0x73ceb0[_0x502869(0x2b0)][_0x502869(0x1eb)]}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0xc413d8['name'],'options':[..._0x1fb0c6,..._0x1fb0c6['length']?[{'type':'separator'}]:[],{'type':_0x5bc8b7(0x347),'children':_0x30ffe6['t'](_0x5bc8b7(0x253)),'onSelect':()=>_0x331469({'type':_0x28a714[_0x5bc8b7(0x2a5)],'tableId':_0x444ed8,'filter':null},0x6,0x8)}]}];}),_0x2abc9d=[..._0x5a2bf9,..._0x5a2bf9[_0x4bd748(0x2c8)]?[{'type':_0x4bd748(0x161)}]:[],{'type':_0x4bd748(0x347),'children':_0x30ffe6['t'](_0x4bd748(0x145)),'onSelect':()=>_0x331469({'type':_0x28a714[_0x4bd748(0x2d4)],'document':wi()},0x4,0x6)},{'type':_0x4bd748(0x347),'children':_0x30ffe6['t'](_0x4bd748(0x233)),'onSelect':()=>Ti(_0x3c12c2)[_0x4bd748(0x401)](_0x543182=>_0x543182&&_0x331469({'type':_0x28a714['Image'],'source':_0x543182[_0x4bd748(0x2c6)],'sourceType':_0x543182[_0x4bd748(0xd9)],'alt':_0x543182[_0x4bd748(0x2cd)],'displayMode':_0x4bd748(0x285)},0x4,0x6))},{'type':'item','children':_0x30ffe6['t'](_0x4bd748(0x2fd)),'onSelect':()=>{const _0x28c5b6=_0x4bd748;let _0x3a9288=_0x54c33c[_0x28c5b6(0xbc)][_0x28c5b6(0x2c9)](_0x550557=>_0x54c33c['tables'][_0x550557]);_0x3a9288&&_0x331469({'type':_0x28a714[_0x28c5b6(0x1ca)],'tableId':_0x3a9288,'shapeType':_0x337cc8[_0x28c5b6(0x190)],'shapeData':_0x30a9dd(),'description':_0x30ffe6['t']('bases-dashboard-ui.dashboard.formulaShape')},0x4,0x6);}}],_0x5eed35=_0x3d88cc?_0x519c0e[_0x4bd748(0x311)][_0x3d88cc]:void 0x0,_0x365ac9=()=>_0x36cea6(_0x35dea0=>!_0x35dea0),_0x42ccfe=_0x19bd59||_0x12d916,_0xeb9c6f=_0x5c526e&&!_0x42ccfe;return _0x1fa005(Kr,{'children':_0x5c238f(_0x4bd748(0x1e8),{'className':_0x4bd748(0x136)+(_0x12d916?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':_0x4bd748(0x15d))+_0x4bd748(0x33e),'children':[_0x12d916&&_0x1fa005(_0x10d589,{'onClick':()=>_0x36cea6(!0x1),'children':_0x30ffe6['t']('bases-dashboard-ui.dashboardInspector.close')}),!_0x42ccfe&&_0x5c238f(_0x4bd748(0x10f),{'className':_0x4bd748(0x110),'children':[_0x1fa005(_0x4cc2bb,{'className':'univer-size-5\x20univer-text-primary-600'}),_0x1fa005('h2',{'className':_0x4bd748(0x232),'children':_0x519c0e[_0x4bd748(0x2cd)]}),_0x6b53b3['supports'](_0x286826)&&_0x1fa005(_0x10d589,{'variant':_0x4bd748(0x3ca),'disabled':!_0x6b53b3[_0x4bd748(0x3fb)](_0x286826),'aria-label':_0x30ffe6['t'](_0x4bd748(0x27a)),'onClick':()=>{const _0x463086=_0x4bd748;_0x5a6cf8(_0x513cbf,{'target':_0x286826,'name':_0x519c0e[_0x463086(0x2cd)],'commandId':_0x180c8f['id'],'exists':()=>!!_0x5bbbf4[_0x463086(0x2cf)](_0x579f62,_0x5c1bea)});},'children':_0x1fa005(_0x3bf51c,{})}),_0x1fa005(_0x484f3c,{'unitId':_0x579f62}),_0x1fa005(_0x10d589,{'type':_0x4bd748(0x3b9),'size':_0x4bd748(0x11d),'variant':'text','aria-label':_0x30ffe6['t'](_0x4bd748(0x2b8)),'disabled':!_0x5c526e||_0x3a1e86['undos']===0x0,'onClick':()=>_0x3d3ccb['executeCommand'](_0xbacc2f['id'])[_0x4bd748(0x308)](()=>void 0x0),'children':_0x1fa005(_0x32ef86,{})}),_0x1fa005(_0x10d589,{'type':_0x4bd748(0x3b9),'size':_0x4bd748(0x11d),'variant':_0x4bd748(0x3ca),'aria-label':_0x30ffe6['t'](_0x4bd748(0x229)),'disabled':!_0x5c526e||_0x3a1e86[_0x4bd748(0x2b5)]===0x0,'onClick':()=>_0x3d3ccb[_0x4bd748(0x2be)](_0x1df103['id'])[_0x4bd748(0x308)](()=>void 0x0),'children':_0x1fa005(_0x40da8b,{})}),_0x1fa005(_0x10d589,{'type':_0x4bd748(0x3b9),'size':'small','variant':_0x4bd748(0x3ca),'aria-label':_0x30ffe6['t']('bases-dashboard-ui.dashboard.fullScreen'),'onClick':_0x365ac9,'children':_0x1fa005(_0x2e21be,{})}),_0x1fa005(Jr,{'items':_0x2abc9d,'children':_0x5c238f(_0x10d589,{'variant':_0x4bd748(0x125),'disabled':!_0x5c526e,'children':[_0x1fa005(_0x34ddb8,{}),_0x30ffe6['t'](_0x4bd748(0x278))]})})]}),_0x5c238f(_0x4bd748(0x1e8),{'className':_0x4bd748(0x215),'children':[_0x1fa005(_0x4bd748(0x1e8),{'className':_0x4bd748(0x26f),'children':_0x1fa005(Wr,{'dashboard':_0x519c0e,'editable':_0xeb9c6f,'widgetLabel':_0x545ad9=>_0x30ffe6['t'](Di(_0x545ad9[_0x4bd748(0x1b9)])),'selectedWidgetId':_0xeb9c6f?_0x3d88cc:void 0x0,'onSelectWidget':_0xeb9c6f?_0x2d3692=>{_0x52189e(_0x2d3692),_0x2d3692||_0x3faa61(!0x1);}:void 0x0,'renderWidget':_0x4484c9=>_0x1fa005(xi,{'base':_0x5aa108,'dashboard':_0x519c0e,'unitId':_0x579f62,'widget':_0x4484c9,'onChange':_0xd4f2c7,'onChartRuntimeChange':_0x3a2cbc}),'renderWidgetActions':_0x142ef1=>_0x1fa005(yi,{'onMoveUp':_0x519c0e[_0x4bd748(0x2a6)][_0x4bd748(0x1cb)](_0x142ef1['id'])>0x0?()=>_0x33eadc(_0x142ef1['id'],-0x1):void 0x0,'onMoveDown':_0x519c0e[_0x4bd748(0x2a6)][_0x4bd748(0x1cb)](_0x142ef1['id'])<_0x519c0e['widgetOrder'][_0x4bd748(0x2c8)]-0x1?()=>_0x33eadc(_0x142ef1['id'],0x1):void 0x0,'onEdit':()=>{_0x52189e(_0x142ef1['id']),_0x3faa61(!0x0);},'onDelete':()=>{const _0x6e141=_0x4bd748;_0x3d88cc===_0x142ef1['id']&&(_0x52189e(void 0x0),_0x3faa61(!0x1)),_0x3d3ccb[_0x6e141(0x2be)](_0x25ddde['id'],{'unitId':_0x579f62,'dashboardId':_0x5c1bea,'widgetId':_0x142ef1['id']})[_0x6e141(0x308)](()=>void 0x0);}})})}),_0xeb9c6f&&_0x5c075a&&_0x5eed35&&_0x1fa005(di,{'base':_0x5aa108,'chartRuntime':_0x511140[_0x4bd748(0x15b)](_0x5eed35['id']),'unitId':_0x579f62,'widget':_0x5eed35,'onChange':_0xd4f2c7,'onClose':()=>_0x3faa61(!0x1),'onSelectBackgroundImage':()=>Ei(_0x508b69),'onSelectImage':()=>Ti(_0x3c12c2)})]})]})});}function xi({base:_0x2b77be,dashboard:_0x54bbb3,onChange:_0x5c1f03,onChartRuntimeChange:_0x46e338,unitId:_0x3f450f,widget:_0x4f7937}){const _0x325eb8=_0x3447f8;let _0x3ff80b=_0x125177(()=>_0x54bbb3[_0x325eb8(0x2a6)][_0x325eb8(0x30c)](_0x3695e2=>{const _0x2ca257=_0x325eb8;let _0x3801ae=_0x54bbb3[_0x2ca257(0x311)][_0x3695e2];return(_0x3801ae==null?void 0x0:_0x3801ae[_0x2ca257(0x1b9)])===_0x28a714[_0x2ca257(0x2a5)]&&_0x3801ae[_0x2ca257(0x154)]===('tableId'in _0x4f7937?_0x4f7937[_0x2ca257(0x154)]:'')&&_0x3801ae[_0x2ca257(0x14f)]?[_0x3801ae[_0x2ca257(0x14f)]]:[];}),[_0x54bbb3,_0x4f7937]);switch(_0x4f7937[_0x325eb8(0x1b9)]){case _0x28a714[_0x325eb8(0x3ee)]:return _0x1fa005(Lr,{'filters':_0x3ff80b,'unitId':_0x3f450f,'widget':_0x4f7937,'onRuntimeChange':_0x46e338});case _0x28a714[_0x325eb8(0x2a5)]:return _0x1fa005(li,{'fields':Si(_0x2b77be,_0x4f7937[_0x325eb8(0x154)]),'filter':_0x4f7937[_0x325eb8(0x14f)],'onChange':_0x254c31=>_0x5c1f03({..._0x4f7937,'filter':_0x254c31})[_0x325eb8(0x308)](()=>void 0x0)});case _0x28a714[_0x325eb8(0x2d4)]:return _0x1fa005(Ur,{'widget':_0x4f7937});case _0x28a714[_0x325eb8(0x341)]:return _0x1fa005(Ci,{'widget':_0x4f7937});case _0x28a714[_0x325eb8(0x1ca)]:return _0x1fa005(Dr,{'dashboardId':_0x54bbb3['id'],'unitId':_0x3f450f,'widget':_0x4f7937});}}function Si(_0x38c74e,_0x1a0d3f){const _0x32c0fb=_0x3447f8;let _0x138038=_0x38c74e['getSnapshot']()[_0x32c0fb(0x186)][_0x1a0d3f],_0x183de8=_0x138038==null?void 0x0:_0x138038[_0x32c0fb(0x286)][_0x32c0fb(0x2c9)](_0x428c7a=>_0x138038[_0x32c0fb(0x2dc)][_0x428c7a]),_0x2ca3fb=_0x183de8?_0x138038==null?void 0x0:_0x138038[_0x32c0fb(0x2dc)][_0x183de8]:void 0x0;return _0x138038&&_0x2ca3fb?_0x295488(_0x138038,_0x2ca3fb):[];}function Ci({widget:_0x43f9ca}){const _0x582a19=_0x3447f8;let _0x2f1190=_0x53af8d(_0x230a38),[_0x564e9c,_0x198667]=_0xee90d5(_0x43f9ca[_0x582a19(0xd9)]===_0x188e10[_0x582a19(0x234)]?'':_0x43f9ca[_0x582a19(0x2c6)]);return _0x543512(()=>{const _0xaecc5e=_0x582a19;let _0x539fd4=!0x0;return _0x2f1190[_0xaecc5e(0x1c5)](_0x43f9ca[_0xaecc5e(0x2c6)],_0x43f9ca[_0xaecc5e(0xd9)])[_0xaecc5e(0x401)](_0x284757=>{_0x539fd4&&_0x198667(_0x284757);})[_0xaecc5e(0x308)](()=>void 0x0),()=>{_0x539fd4=!0x1;};},[_0x2f1190,_0x43f9ca[_0x582a19(0x2c6)],_0x43f9ca[_0x582a19(0xd9)]]),_0x564e9c?_0x1fa005(_0x582a19(0x1e8),{'role':_0x43f9ca[_0x582a19(0x3ed)]?'img':void 0x0,'aria-label':_0x43f9ca[_0x582a19(0x3ed)]||void 0x0,'data-dashboard-image':_0x43f9ca['id'],'className':'univer-h-full\x20univer-w-full\x20univer-bg-transparent','style':vr(_0x564e9c,_0x43f9ca[_0x582a19(0x2f2)])}):null;}function wi(){const _0x178168=_0x3447f8;let _0x44b1a4=_0x156ce9(new Set());return{'id':_0x178168(0x119)+_0x2aef82(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x44b1a4}]},'documentStyle':{}};}function Ti(_0xe1301){return new Promise(_0xeeea13=>{const _0x499658=_0x1596;let _0x545268=document[_0x499658(0xde)](_0x499658(0x1fb));_0x545268[_0x499658(0x1b9)]=_0x499658(0x15c),_0x545268[_0x499658(0x375)]=_0x499658(0x3b3),_0x545268[_0x499658(0x213)]('change',()=>{const _0x3401bf=_0x499658;var _0x2150c9;let _0x57ed34=(_0x2150c9=_0x545268['files'])==null?void 0x0:_0x2150c9[0x0];if(!_0x57ed34){_0xeeea13(null);return;}_0xe1301[_0x3401bf(0x106)](_0x57ed34)[_0x3401bf(0x401)](_0x2dcaac=>{const _0x30abe7=_0x3401bf;if(!_0x2dcaac[_0x30abe7(0x2c6)]||_0x2dcaac[_0x30abe7(0xd9)]===void 0x0){_0xeeea13(null);return;}_0xeeea13({'name':_0x2dcaac['name'],'source':_0x2dcaac[_0x30abe7(0x2c6)],'sourceType':_0x2dcaac[_0x30abe7(0xd9)]});})[_0x3401bf(0x308)](()=>_0xeeea13(null));},{'once':!0x0}),_0x545268[_0x499658(0x3f4)]();});}function Ei(_0x15a40a){return new Promise(_0x460777=>{const _0x6dfa62=_0x1596;let _0x316484=document['createElement'](_0x6dfa62(0x1fb));_0x316484['type']=_0x6dfa62(0x15c),_0x316484[_0x6dfa62(0x375)]=_0x6dfa62(0x3b3),_0x316484[_0x6dfa62(0x213)](_0x6dfa62(0xe3),()=>{const _0xf924d9=_0x6dfa62;var _0x113bd2;let _0x47a316=(_0x113bd2=_0x316484[_0xf924d9(0xf8)])==null?void 0x0:_0x113bd2[0x0];if(!_0x47a316){_0x460777(null);return;}_0x15a40a[_0xf924d9(0xc7)](_0x47a316)['then'](_0x4796a9=>{const _0x56f630=_0xf924d9;if(!(_0x4796a9!=null&&_0x4796a9[_0x56f630(0x2c6)])){_0x460777(null);return;}if(_0x4796a9[_0x56f630(0x1c1)]){let _0x2dc6c9=new Image();_0x2dc6c9[_0x56f630(0xba)]=_0x4796a9[_0x56f630(0x1c1)],_0x15a40a['addImageSourceCache'](_0x4796a9[_0x56f630(0x2c6)],_0x4796a9[_0x56f630(0x3d9)],_0x2dc6c9);}_0x460777({'source':_0x4796a9['source'],'sourceType':_0x4796a9[_0x56f630(0x3d9)]});})[_0xf924d9(0x308)](()=>_0x460777(null));},{'once':!0x0}),_0x316484[_0x6dfa62(0x3f4)]();});}function Di(_0x160027){const _0x296bd1=_0x3447f8;switch(_0x160027){case _0x28a714[_0x296bd1(0x3ee)]:return _0x296bd1(0xe4);case _0x28a714[_0x296bd1(0x2a5)]:return _0x296bd1(0x253);case _0x28a714[_0x296bd1(0x2d4)]:return _0x296bd1(0x145);case _0x28a714[_0x296bd1(0x341)]:return _0x296bd1(0x233);case _0x28a714[_0x296bd1(0x1ca)]:return _0x296bd1(0x2fd);}}function Oi(_0x1c4efe){const _0x2f44fc=_0x3447f8;return(_0x1c4efe==null?void 0x0:_0x1c4efe['type'])===_0x4da0de[_0x2f44fc(0x1ec)]&&typeof _0x1c4efe[_0x2f44fc(0x2b0)]==_0x2f44fc(0x2f1)&&_0x1c4efe[_0x2f44fc(0x2b0)]!==null&&'pivot'in _0x1c4efe['config']&&_0x2f44fc(0x1eb)in _0x1c4efe[_0x2f44fc(0x2b0)];}function ki({pivot:_0x2ef114,view:_0x196128}){const _0x3f789d=_0x3447f8;let _0x58e367=_0x53af8d(_0x255457),_0x1d3b6d=_0x125177(()=>Ai(_0x196128,_0x2ef114,_0x58e367['t'](_0x3f789d(0x210))),[_0x58e367,_0x2ef114,_0x196128]);return _0x5c238f(_0x3f789d(0x1e8),{'className':_0x3f789d(0x10a),'children':[_0x1d3b6d[_0x3f789d(0x18f)][_0x3f789d(0x2c8)]>0x0&&_0x1fa005('table',{'className':'univer-mb-2\x20univer-border-collapse\x20univer-text-sm','children':_0x1fa005(_0x3f789d(0x3c1),{'children':ji(_0x1d3b6d[_0x3f789d(0x18f)])})}),_0x5c238f('table',{'className':_0x3f789d(0x24b),'children':[_0x1d3b6d['headerRowCount']>0x0&&_0x1fa005('thead',{'className':_0x3f789d(0x365),'children':ji(_0x1d3b6d[_0x3f789d(0x27b)][_0x3f789d(0x121)](0x0,_0x1d3b6d[_0x3f789d(0x376)]))}),_0x1fa005('tbody',{'children':ji(_0x1d3b6d[_0x3f789d(0x27b)][_0x3f789d(0x121)](_0x1d3b6d[_0x3f789d(0x376)]))})]})]});}function Ai(_0x229c95,_0x490a12,_0x31da61){const _0x4eadc5=_0x3447f8;let _0x36755f=_0x229c95['colView'][_0x4eadc5(0x36d)],_0x580222=_0x229c95[_0x4eadc5(0x183)][_0x4eadc5(0x38e)],_0x5cdfea=_0x229c95['dataView'][_0x4eadc5(0x36d)],_0x4021e7=_0x229c95[_0x4eadc5(0x340)]['colCount'],_0x4e6337=Array[_0x4eadc5(0x3a1)]({'length':_0x36755f+_0x5cdfea},(_0x15ef65,_0x79ca80)=>Array[_0x4eadc5(0x3a1)]({'length':_0x580222+_0x4021e7},(_0x31a3c8,_0x5c9051)=>{const _0x3f4ce0=_0x4eadc5;var _0x207abe,_0x4e4961;if(_0x79ca80<_0x36755f&&_0x5c9051<_0x580222)return Mi(_0x229c95[_0x3f4ce0(0x1d5)],_0x79ca80,_0x5c9051,void 0x0,_0x31da61,!0x0,!0x1,_0x3f4ce0(0x128)+_0x79ca80+':'+_0x5c9051);if(_0x79ca80<_0x36755f){var _0x327568;let _0x2a1796=_0x5c9051-_0x580222,_0x52feb9=(_0x327568=_0x229c95['colView'][_0x3f4ce0(0x28d)][_0x79ca80])==null?void 0x0:_0x327568[_0x3f4ce0(0x1c2)];return Mi(_0x229c95['colView'],_0x79ca80,_0x2a1796,_0x52feb9?_0x229c95[_0x3f4ce0(0x3d1)][_0x52feb9]:void 0x0,_0x31da61,!0x0,Fi(_0x229c95[_0x3f4ce0(0x361)]['info'][_0x2a1796]),'column:'+_0x79ca80+':'+_0x2a1796);}if(_0x5c9051<_0x580222){var _0x13fb73;let _0x14fb71=_0x79ca80-_0x36755f,_0x29c1ae=(_0x13fb73=_0x229c95[_0x3f4ce0(0x183)]['headerMap'][_0x5c9051])==null?void 0x0:_0x13fb73[_0x3f4ce0(0x1c2)];return Mi(_0x229c95[_0x3f4ce0(0x183)],_0x14fb71,_0x5c9051,_0x29c1ae?_0x229c95['formatMap'][_0x29c1ae]:void 0x0,_0x31da61,!0x0,Fi(_0x229c95['rowView'][_0x3f4ce0(0x34b)][_0x14fb71]),'row:'+_0x14fb71+':'+_0x5c9051);}let _0x2fa974=_0x79ca80-_0x36755f,_0x2abddb=_0x5c9051-_0x580222,_0x268aa3=Math[_0x3f4ce0(0x351)](((_0x207abe=_0x229c95['rowView'][_0x3f4ce0(0x34b)][_0x2fa974])==null?void 0x0:_0x207abe[_0x3f4ce0(0x369)])??-0x1,((_0x4e4961=_0x229c95[_0x3f4ce0(0x361)][_0x3f4ce0(0x34b)][_0x2abddb])==null?void 0x0:_0x4e4961[_0x3f4ce0(0x369)])??-0x1),_0x1b3027=_0x490a12[_0x3f4ce0(0x2ef)][_0x268aa3<0x0?0x0:_0x268aa3];return Mi(_0x229c95['dataView'],_0x2fa974,_0x2abddb,_0x1b3027?_0x229c95[_0x3f4ce0(0x3d1)][_0x1b3027]:void 0x0,_0x31da61,!0x1,Fi(_0x229c95[_0x3f4ce0(0x183)][_0x3f4ce0(0x34b)][_0x2fa974])||Fi(_0x229c95['colView']['info'][_0x2abddb]),'data:'+_0x2fa974+':'+_0x2abddb);}));return{'headerColumnCount':_0x580222,'headerRowCount':_0x36755f,'pageRows':_0x229c95['pageView'][_0x4eadc5(0x35f)]<0x0||_0x229c95['pageView']['lastCol']<0x0?[]:Array[_0x4eadc5(0x3a1)]({'length':_0x229c95[_0x4eadc5(0x342)][_0x4eadc5(0x35f)]+0x1},(_0x59f62e,_0x14402b)=>Array[_0x4eadc5(0x3a1)]({'length':_0x229c95['pageView'][_0x4eadc5(0x16d)]+0x1},(_0x51c7ce,_0x42cb87)=>Mi(_0x229c95['pageView'],_0x14402b,_0x42cb87,void 0x0,_0x31da61,!0x0,!0x1,_0x4eadc5(0x3e3)+_0x14402b+':'+_0x42cb87))),'rows':_0x4e6337};}function ji(_0x1bc8f6){const _0x3b919f=_0x3447f8;return _0x1bc8f6[_0x3b919f(0x1ee)](_0x5e53f4=>{const _0x20e06f=_0x3b919f;var _0x2648a1;return _0x1fa005('tr',{'children':_0x5e53f4[_0x20e06f(0x1ee)](_0x2b5632=>{const _0x2b19b1=_0x20e06f;let _0x1e8aec=_0x2b5632[_0x2b19b1(0x26c)]?'th':'td';return _0x1fa005(_0x1e8aec,{'className':_0x2b19b1(0x204)+(_0x2b5632['isTotal']?_0x2b19b1(0x324):'')+_0x2b19b1(0x212)+(_0x2b5632[_0x2b19b1(0x26c)]?'':_0x2b19b1(0x377))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x2b5632['value']},_0x2b5632['key']);})},(_0x2648a1=_0x5e53f4[0x0])==null?void 0x0:_0x2648a1[_0x20e06f(0x2fc)]);});}function Mi(_0x2d77cd,_0x1ec2fa,_0x42b1da,_0x52a70c,_0x2bf0c9,_0x24b3e1,_0xc07ab4,_0x173179){const _0x1ffbc9=_0x3447f8;var _0x179d57;let _0x2bb0d5=(_0x179d57=_0x2d77cd[_0x1ffbc9(0x279)][_0x1ec2fa])==null?void 0x0:_0x179d57[_0x42b1da],_0x36faaf=_0x2bb0d5==null?void 0x0:_0x2bb0d5['s'],_0x23ddd0=_0xc07ab4||_0x36faaf===_0x534fec[_0x1ffbc9(0x38f)]||_0x36faaf===_0x534fec['MultipleGrandTotal'];return{'isHeader':_0x24b3e1,'isTotal':_0x23ddd0||_0x36faaf===_0x534fec['Subtotal'],'key':_0x173179,'style':_0x36faaf,'value':_0x23ddd0&&Pi(_0x2bb0d5==null?void 0x0:_0x2bb0d5['v'])?_0x2bf0c9:Ni(_0x2bb0d5,_0x52a70c)};}function Ni(_0x648c0,_0x4fdd72){const _0x57194d=_0x3447f8;let _0xac456d=_0x648c0==null?void 0x0:_0x648c0['v'];return _0x958be8(_0xac456d)?String(_0xac456d[_0x57194d(0x2c2)]??_0xac456d[_0x57194d(0x256)]??''):_0x20d60c(_0xac456d)?'#'+_0xac456d['errorType']:_0x4fdd72&&typeof _0xac456d==_0x57194d(0x30d)?_0x254bab[_0x57194d(0x11b)](_0x4fdd72,_0xac456d):String(_0xac456d??'');}function Pi(_0x159aff){return _0x159aff===void 0x0||_0x159aff==='';}function Fi(_0xdc7b97){const _0x6faf02=_0x3447f8;return!!(_0xdc7b97!=null&&_0xdc7b97[_0x6faf02(0x2c7)]||_0xdc7b97!=null&&_0xdc7b97['isTopTotal']||_0xdc7b97!=null&&_0xdc7b97[_0x6faf02(0x13c)]||(_0xdc7b97==null?void 0x0:_0xdc7b97['rowType'])===_0x6faf02(0x177));}const Ii=[{'area':_0x23447d[_0x3447f8(0x251)],'key':_0x3447f8(0x2b1),'label':_0x3447f8(0xca)},{'area':_0x23447d[_0x3447f8(0x29b)],'key':'columnFields','label':'bases-dashboard-ui.pivot.columns'},{'area':_0x23447d['Row'],'key':_0x3447f8(0xdf),'label':'bases-dashboard-ui.pivot.rows'},{'area':_0x23447d['Value'],'key':_0x3447f8(0x2ef),'label':'bases-dashboard-ui.pivot.values'}],Li=[{'value':_0x1f46e1['sum'],'localeKey':_0x3447f8(0x122)},{'value':_0x1f46e1[_0x3447f8(0x203)],'localeKey':_0x3447f8(0x1d8)},{'value':_0x1f46e1['countNums'],'localeKey':_0x3447f8(0x3dd)},{'value':_0x1f46e1['average'],'localeKey':_0x3447f8(0x3cc)},{'value':_0x1f46e1[_0x3447f8(0x351)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':_0x1f46e1[_0x3447f8(0x379)],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x1f46e1[_0x3447f8(0x30b)],'localeKey':_0x3447f8(0x38d)},{'value':_0x1f46e1[_0x3447f8(0x1f4)],'localeKey':'bases-dashboard-ui.pivot.stdDev'},{'value':_0x1f46e1[_0x3447f8(0x352)],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x1f46e1[_0x3447f8(0xd3)],'localeKey':_0x3447f8(0x3ec)},{'value':_0x1f46e1[_0x3447f8(0x33b)],'localeKey':_0x3447f8(0x391)}];function Ri(_0xdab8fa){const _0x4a0b72=_0x3447f8;let {config:_0x5bf981,onChange:_0x418a18,table:_0x526d30}=_0xdab8fa,_0x41b567=_0x53af8d(_0x255457),[_0x2f6165,_0x384ec7]=_0xee90d5('fields'),[_0x224a45,_0x1456de]=_0xee90d5(''),[_0x3817ab,_0x46bff3]=_0xee90d5(null),[_0x2dbfe6,_0x38d11f]=_0xee90d5(null),[_0x5e9cc3,_0x1106f9]=_0xee90d5(null),[_0x58153e,_0x2480f1]=_0xee90d5(null),_0xe9736=_0x4523d4(null),_0x5e4650=_0x125177(()=>_0x526d30[_0x4a0b72(0x24d)][_0x4a0b72(0x30c)](_0x598655=>{const _0x594a51=_0x4a0b72;let _0x287646=_0x526d30[_0x594a51(0x2ee)][_0x598655];return _0x287646&&_0x287646[_0x594a51(0x2ac)]!==!0x0&&_0x287646[_0x594a51(0x1b9)]!==_0x2940a8[_0x594a51(0x397)]?[_0x287646]:[];})[_0x4a0b72(0x14f)](_0x34c554=>_0x34c554[_0x4a0b72(0x2cd)][_0x4a0b72(0xd7)]()[_0x4a0b72(0x2f8)](_0x224a45[_0x4a0b72(0x15f)]()[_0x4a0b72(0xd7)]())),[_0x224a45,_0x526d30]),_0xc71e6e=_0x2a8e75=>{const _0x4b3672=_0x4a0b72;let _0x15bd03=_0x57279f(_0x526d30,_0x5bf981[_0x4b3672(0x10d)]);try{_0x2a8e75(_0x15bd03),_0x418a18({'pivot':_0x15bd03[_0x4b3672(0x24e)]()});}finally{_0x15bd03[_0x4b3672(0x2fe)]();}},_0x1f4f20=(_0x36b665,_0x19b27f)=>{_0x3817ab&&(_0xc71e6e(_0x476cf8=>{const _0x313d5f=_0x1596;if(_0x3817ab['kind']==='field'){let _0x32b3ac=_0x476cf8['getFieldPositionInfoById'](_0x3817ab['id']),_0x3f7c1a=_0x32b3ac['area']===_0x36b665&&_0x32b3ac[_0x313d5f(0xeb)]<_0x19b27f?_0x19b27f-0x1:_0x19b27f;_0x476cf8[_0x313d5f(0x23b)](_0x3817ab['id'],_0x36b665,_0x3f7c1a);return;}Ki(_0x476cf8,_0x3817ab['id'],_0x36b665,_0x19b27f);}),_0x46bff3(null),_0x38d11f(null));};return _0x5c238f(_0x4a0b72(0x1e8),{'className':_0x4a0b72(0x1d7),'children':[_0x1fa005(_0x283559,{'ariaLabel':_0x41b567['t'](_0x4a0b72(0x1b7)),'className':_0x4a0b72(0x302),'items':[{'label':_0x41b567['t'](_0x4a0b72(0x2e9)),'panelId':'base-pivot-fields','value':'fields'},{'label':_0x41b567['t']('bases-dashboard-ui.pivot.options'),'panelId':'base-pivot-options','value':_0x4a0b72(0x326)}],'value':_0x2f6165,'onChange':_0x384ec7}),_0x1fa005(_0x4a0b72(0x1e8),{'ref':_0xe9736,'className':_0x54dbd2('univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3',_0x2bbb9f),'onDragOver':_0x5d1f05=>{const _0x1130f9=_0x4a0b72;let _0x5922dd=_0xe9736[_0x1130f9(0x23e)];if(!_0x5922dd)return;let _0x3cb834=_0x5922dd[_0x1130f9(0x263)]();_0x5d1f05[_0x1130f9(0x117)]<_0x3cb834[_0x1130f9(0x348)]+0x30?_0x5922dd[_0x1130f9(0x406)]-=0x10:_0x5d1f05[_0x1130f9(0x117)]>_0x3cb834[_0x1130f9(0x199)]-0x30&&(_0x5922dd['scrollTop']+=0x10);},'children':_0x2f6165==='options'?_0x1fa005(Gi,{'config':_0x5bf981,'commit':_0xc71e6e}):_0x5c238f(_0x4a0b72(0x1e8),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x5c238f(_0x4a0b72(0x1e8),{'children':[_0x1fa005(_0x4a0b72(0x1e8),{'className':_0x4a0b72(0x3f7),'children':_0x41b567['t']('bases-dashboard-ui.pivot.sourceFields')}),_0x1fa005(_0x2647d7,{'allowClear':!0x0,'slot':_0x1fa005(_0x10f455,{}),'value':_0x224a45,'placeholder':_0x41b567['t'](_0x4a0b72(0x2d9)),'onChange':_0x1456de}),_0x1fa005(_0x4a0b72(0x1e8),{'className':_0x4a0b72(0xdd),'children':_0x5e4650[_0x4a0b72(0x1ee)](_0x489a61=>_0x1fa005(zi,{'config':_0x5bf981,'field':_0x489a61,'onAdd':_0x35bb07=>_0xc71e6e(_0x524841=>Ki(_0x524841,_0x489a61['id'],_0x35bb07,_0x524841[_0x4a0b72(0x11f)](_0x35bb07))),'onCheckedChange':_0x34e219=>_0xc71e6e(_0x51a8a5=>{const _0x1b823f=_0x4a0b72;let _0x3ef920=_0x51a8a5[_0x1b823f(0x1b5)](_0x489a61['id']);if(!_0x34e219){_0x3ef920[_0x1b823f(0x32f)](_0x51e68e=>_0x51a8a5[_0x1b823f(0x1bf)](_0x51e68e[_0x1b823f(0x2bd)]()));return;}if(_0x3ef920[_0x1b823f(0x2c8)]===0x0){let _0x359fd5=Ji(_0x489a61)?_0x23447d[_0x1b823f(0x1b0)]:_0x23447d[_0x1b823f(0x20e)];_0x51a8a5[_0x1b823f(0x29f)](_0x489a61['id'],_0x359fd5);}}),'onDragStart':()=>_0x46bff3({'kind':_0x4a0b72(0x2c6),'id':_0x489a61['id']})},_0x489a61['id']))})]}),_0x1fa005('div',{'className':_0x4a0b72(0x223),'children':Ii[_0x4a0b72(0x1ee)](_0x1ba2a7=>_0x1fa005(Vi,{'area':_0x1ba2a7[_0x4a0b72(0x34d)],'dropTarget':_0x2dbfe6,'fields':_0x5bf981['pivot'][_0x1ba2a7[_0x4a0b72(0x2fc)]],'label':_0x41b567['t'](_0x1ba2a7['label']),'snapshot':_0x5bf981[_0x4a0b72(0x10d)],'onDragEnd':()=>{_0x46bff3(null),_0x38d11f(null);},'onDragStart':_0x369eee=>_0x46bff3({'kind':_0x4a0b72(0x101),'id':_0x369eee,'area':_0x1ba2a7[_0x4a0b72(0x34d)]}),'onDragOver':_0x18bdff=>_0x38d11f({'area':_0x1ba2a7[_0x4a0b72(0x34d)],'index':_0x18bdff}),'onDrop':_0x1dede5=>_0x1f4f20(_0x1ba2a7[_0x4a0b72(0x34d)],_0x1dede5),'onFilter':_0x1106f9,'onMove':(_0x54e526,_0x427411,_0x52c596)=>_0xc71e6e(_0x3d540f=>_0x3d540f['updateFieldPosition'](_0x54e526,_0x427411,_0x52c596)),'onRemove':_0x3f5fd3=>_0xc71e6e(_0x32bc96=>_0x32bc96['removeField'](_0x3f5fd3)),'onSettings':_0x2480f1},_0x1ba2a7[_0x4a0b72(0x34d)]))}),_0x5e9cc3&&_0x1fa005(Ui,{'fieldId':_0x5e9cc3,'snapshot':_0x5bf981[_0x4a0b72(0x10d)],'table':_0x526d30,'onCancel':()=>_0x1106f9(null),'onCommit':(_0x25b1b4,_0x180ec0)=>{_0xc71e6e(_0x1145de=>{const _0x30aa01=_0x1596;let _0x49b3de=_0x1145de['getDataFieldByTableId'](_0x5e9cc3),_0x347905=(_0x49b3de==null?void 0x0:_0x49b3de[_0x30aa01(0x26b)])??[];_0x1145de[_0x30aa01(0x29a)](_0x5e9cc3,{'type':_0x5a8717[_0x30aa01(0x17c)],'list':_0x25b1b4,'isAll':_0x25b1b4[_0x30aa01(0x2c8)]===_0x347905[_0x30aa01(0x2c8)]}),_0x1145de[_0x30aa01(0x271)](_0x5e9cc3,_0x180ec0===void 0x0?void 0x0:{'type':_0x180ec0});}),_0x1106f9(null);}},_0x5e9cc3),_0x58153e&&_0x1fa005(Wi,{'field':_0x5bf981[_0x4a0b72(0x10d)][_0x4a0b72(0x181)][_0x58153e],'onCancel':()=>_0x2480f1(null),'onCommit':(_0x36c373,_0x38a79c,_0x1b83af)=>{_0xc71e6e(_0x3522b=>{const _0x4397f3=_0x1596;_0x3522b[_0x4397f3(0x13f)](_0x58153e,_0x36c373),_0x3522b[_0x4397f3(0xd1)](_0x58153e,_0x38a79c),_0x3522b[_0x4397f3(0xe6)](_0x58153e,_0x1b83af||void 0x0);}),_0x2480f1(null);}},_0x58153e)]})})]});}function zi(_0xb69bb3){const _0x101fae=_0x3447f8;let {config:_0x2689ae,field:_0x42d3b3,onAdd:_0x4ecf64,onCheckedChange:_0x2bd890,onDragStart:_0x2b2781}=_0xb69bb3,_0x17fadc=_0x53af8d(_0x255457),_0x110c04=[...Object[_0x101fae(0xfd)](_0x2689ae[_0x101fae(0x10d)]['dimension']),...Object['values'](_0x2689ae[_0x101fae(0x10d)][_0x101fae(0x181)])]['some'](_0x55bca4=>_0x55bca4['dataFieldId']===_0x42d3b3['id']),_0x1bc008=Ii[_0x101fae(0x1ee)](_0x4c1332=>({'type':'item','children':_0x17fadc['t'](Yi(_0x4c1332[_0x101fae(0x34d)])),'onSelect':()=>_0x4ecf64(_0x4c1332[_0x101fae(0x34d)])}));return _0x5c238f(_0x101fae(0x1e8),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x101fae(0x28a),'onDragStart':_0x2b2781,'children':[_0x1fa005(_0x22d09c,{'checked':_0x110c04,'onChange':_0x4c6a9d=>_0x2bd890(!!_0x4c6a9d)}),_0x1fa005(Bi,{'field':_0x42d3b3}),_0x1fa005(_0x101fae(0x40a),{'className':_0x101fae(0x14b),'children':_0x42d3b3[_0x101fae(0x2cd)]}),_0x1fa005(Jr,{'align':_0x101fae(0x372),'items':_0x1bc008,'children':_0x1fa005(_0x10d589,{'variant':_0x101fae(0x3ca),'aria-label':_0x17fadc['t'](_0x101fae(0x2a0)),'children':_0x1fa005(_0x2e92dc,{})})})]});}function Bi({field:_0x33fb80}){const _0x1fed8f=_0x3447f8;return Ji(_0x33fb80)?_0x1fa005(_0x5b2a53,{'className':_0x1fed8f(0x359)}):_0x33fb80[_0x1fed8f(0x1b9)]===_0x2940a8[_0x1fed8f(0x292)]||_0x33fb80[_0x1fed8f(0x1b9)]===_0x2940a8['CreatedAt']||_0x33fb80[_0x1fed8f(0x1b9)]===_0x2940a8['UpdatedAt']?_0x1fa005(_0x1437d4,{'className':_0x1fed8f(0x359)}):_0x1fa005(_0x3177bc,{'className':_0x1fed8f(0x359)});}function Vi(_0xe718c1){const _0x21f029=_0x3447f8;let {area:_0x854bed,dropTarget:_0x44e6fc,fields:_0x9c9035,label:_0x1c9c7e,snapshot:_0x5ae3bb}=_0xe718c1,_0x32bce7=_0x53af8d(_0x255457);return _0x5c238f('section',{'className':_0x54dbd2('univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800',_0x243840),'onDragOver':_0xcfd2a4=>{const _0x3d36c9=_0x1596;_0xcfd2a4['preventDefault'](),_0xe718c1['onDragOver'](_0x9c9035[_0x3d36c9(0x2c8)]);},'onDrop':_0x532ea5=>{const _0x200b51=_0x1596;_0x532ea5[_0x200b51(0x16a)](),_0xe718c1[_0x200b51(0x25a)]((_0x44e6fc==null?void 0x0:_0x44e6fc[_0x200b51(0x34d)])===_0x854bed?_0x44e6fc[_0x200b51(0xeb)]:_0x9c9035[_0x200b51(0x2c8)]);},'children':[_0x1fa005(_0x21f029(0x1e8),{'className':_0x21f029(0xdc),'children':_0x1c9c7e}),_0x5c238f(_0x21f029(0x1e8),{'className':'univer-flex\x20univer-flex-col','children':[_0x9c9035['map']((_0x316665,_0x557cde)=>{const _0x105bec=_0x21f029;let _0x395e3d=_0x5ae3bb[_0x105bec(0x2dd)][_0x316665]??_0x5ae3bb['measure'][_0x316665];if(!_0x395e3d)return null;let _0x3d3d39=(_0x44e6fc==null?void 0x0:_0x44e6fc[_0x105bec(0x34d)])===_0x854bed&&_0x44e6fc[_0x105bec(0xeb)]===_0x557cde;return _0x5c238f(_0x105bec(0x1e8),{'onDragOver':_0x4c7308=>{const _0x41ca0c=_0x105bec;_0x4c7308[_0x41ca0c(0x16a)](),_0x4c7308['stopPropagation']();let _0x5492e1=_0x4c7308[_0x41ca0c(0x3c3)][_0x41ca0c(0x263)]();_0xe718c1[_0x41ca0c(0x37a)](_0x557cde+ +(_0x4c7308[_0x41ca0c(0x117)]>_0x5492e1[_0x41ca0c(0x348)]+_0x5492e1['height']/0x2));},'onDrop':_0x473bc4=>{const _0x341978=_0x105bec;_0x473bc4[_0x341978(0x16a)](),_0x473bc4[_0x341978(0x273)](),_0xe718c1[_0x341978(0x25a)]((_0x44e6fc==null?void 0x0:_0x44e6fc[_0x341978(0x34d)])===_0x854bed?_0x44e6fc['index']:_0x557cde);},'children':[_0x3d3d39&&_0x1fa005('div',{'className':_0x105bec(0x3e7)}),_0x1fa005(Hi,{'area':_0x854bed,'field':_0x395e3d,'onDragEnd':_0xe718c1[_0x105bec(0x25f)],'onDragStart':()=>_0xe718c1[_0x105bec(0xcf)](_0x316665),'onFilter':()=>_0xe718c1['onFilter'](_0x316665),'onMove':_0x2408bc=>_0xe718c1[_0x105bec(0x123)](_0x316665,_0x2408bc,0x0),'onMoveUp':_0x557cde>0x0?()=>_0xe718c1[_0x105bec(0x123)](_0x316665,_0x854bed,_0x557cde-0x1):void 0x0,'onMoveDown':_0x557cde<_0x9c9035[_0x105bec(0x2c8)]-0x1?()=>_0xe718c1[_0x105bec(0x123)](_0x316665,_0x854bed,_0x557cde+0x1):void 0x0,'onRemove':()=>_0xe718c1[_0x105bec(0x2c3)](_0x316665),'onSettings':()=>_0xe718c1[_0x105bec(0x2ec)](_0x316665)})]},_0x316665);}),(_0x44e6fc==null?void 0x0:_0x44e6fc[_0x21f029(0x34d)])===_0x854bed&&_0x44e6fc[_0x21f029(0xeb)]===_0x9c9035[_0x21f029(0x2c8)]&&_0x1fa005(_0x21f029(0x1e8),{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),_0x9c9035[_0x21f029(0x2c8)]===0x0&&_0x1fa005(_0x21f029(0x1e8),{'className':_0x21f029(0x2b7),'children':_0x32bce7['t']('bases-dashboard-ui.pivot.sourceFields')})]})]});}function Hi(_0x5e8f1f){const _0x1704d3=_0x3447f8;let _0x145e75=_0x53af8d(_0x255457),_0x205376=_0x5e8f1f['area']===_0x23447d['Value'],_0x17ecf7=[...Ii[_0x1704d3(0x14f)](_0x5ad051=>_0x5ad051['area']!==_0x5e8f1f[_0x1704d3(0x34d)])[_0x1704d3(0x1ee)](_0x169fa3=>({'type':_0x1704d3(0x347),'children':_0x145e75['t'](Yi(_0x169fa3[_0x1704d3(0x34d)])),'onSelect':()=>_0x5e8f1f[_0x1704d3(0x123)](_0x169fa3[_0x1704d3(0x34d)])})),..._0x5e8f1f[_0x1704d3(0xd0)]?[{'type':_0x1704d3(0x347),'children':_0x145e75['t'](_0x1704d3(0x18e)),'onSelect':_0x5e8f1f[_0x1704d3(0xd0)]}]:[],..._0x5e8f1f['onMoveDown']?[{'type':'item','children':_0x145e75['t'](_0x1704d3(0x3b4)),'onSelect':_0x5e8f1f[_0x1704d3(0x261)]}]:[],{'type':'item','children':_0x145e75['t']('bases-dashboard-ui.pivot.removeField'),'onSelect':_0x5e8f1f[_0x1704d3(0x2c3)]},{'type':_0x1704d3(0x347),'children':_0x145e75['t'](_0x205376?_0x1704d3(0x2a0):_0x1704d3(0x2d0)),'onSelect':_0x205376?_0x5e8f1f[_0x1704d3(0x2ec)]:_0x5e8f1f['onFilter']}];return _0x5c238f(_0x1704d3(0x1e8),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x1704d3(0x146),'onDragEnd':_0x5e8f1f[_0x1704d3(0x25f)],'onDragStart':_0x5e8f1f[_0x1704d3(0xcf)],'children':[_0x1fa005(_0x310d74,{'title':_0x5e8f1f[_0x1704d3(0x101)][_0x1704d3(0x2bb)],'children':_0x1fa005(_0x1704d3(0x40a),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x5e8f1f[_0x1704d3(0x101)][_0x1704d3(0x2bb)]})}),_0x1fa005(Jr,{'align':_0x1704d3(0x372),'items':_0x17ecf7,'children':_0x1fa005(_0x10d589,{'variant':'text','aria-label':_0x145e75['t'](_0x1704d3(0x2a0)),'children':_0x1fa005(_0x2e92dc,{})})})]});}function Ui(_0x4efbf7){const _0x1a83cf=_0x3447f8;var _0x52aa12,_0x43a051;let _0x19bc53=_0x53af8d(_0x255457),{format:_0x44a82c,items:_0x2817c4,itemTypes:_0x55bc78}=_0x125177(()=>{const _0x50bdd3=_0x1596;let _0x3efc3b=_0x57279f(_0x4efbf7[_0x50bdd3(0x173)],_0x4efbf7[_0x50bdd3(0x12a)]);try{let _0x2ef832=_0x3efc3b['getDataFieldByTableId'](_0x4efbf7[_0x50bdd3(0x1e5)]);return{'format':_0x2ef832==null?void 0x0:_0x2ef832[_0x50bdd3(0x11b)],'items':[...(_0x2ef832==null?void 0x0:_0x2ef832['items'])??[]],'itemTypes':[...(_0x2ef832==null?void 0x0:_0x2ef832['itemTypes'])??[]]};}finally{_0x3efc3b['dispose']();}},[_0x4efbf7[_0x1a83cf(0x1e5)],_0x4efbf7[_0x1a83cf(0x12a)],_0x4efbf7[_0x1a83cf(0x173)]]),_0x10eee4=(_0x52aa12=_0x4efbf7[_0x1a83cf(0x12a)][_0x1a83cf(0x2dd)][_0x4efbf7[_0x1a83cf(0x1e5)]])==null?void 0x0:_0x52aa12[_0x1a83cf(0x37f)],[_0x55e4c3,_0x4159f8]=_0xee90d5((_0x10eee4==null?void 0x0:_0x10eee4[_0x1a83cf(0x1b9)])===_0x5a8717['ManualFilter']?_0x10eee4['list']:_0x2817c4),[_0x1a7ac6,_0x1421b4]=_0xee90d5((_0x43a051=_0x4efbf7['snapshot'][_0x1a83cf(0x2dd)][_0x4efbf7[_0x1a83cf(0x1e5)]])==null||(_0x43a051=_0x43a051[_0x1a83cf(0x250)])==null?void 0x0:_0x43a051[_0x1a83cf(0x1b9)]),_0x3a1a08=_0x55e4c3[_0x1a83cf(0x2c8)]===_0x2817c4[_0x1a83cf(0x2c8)],_0x1bf5c1=_0x5c238f(_0x1a83cf(0x336),{'className':_0x54dbd2(_0x1a83cf(0x14d),_0x243840),'children':[_0x1fa005(_0x1a83cf(0x1e8),{'className':_0x1a83cf(0xcd),'children':_0x19bc53['t'](_0x1a83cf(0x2d0))}),_0x5c238f('div',{'className':_0x1a83cf(0x3eb),'children':[_0x5c238f(_0x10d589,{'className':_0x1a83cf(0x1cc),'variant':_0x1a7ac6===_0x428f40['ascending']?_0x1a83cf(0x125):_0x1a83cf(0x36e),'onClick':()=>_0x1421b4(_0x428f40[_0x1a83cf(0x17d)]),'children':[_0x1fa005(_0x2a08ae,{}),_0x19bc53['t'](_0x1a83cf(0x2e6))]}),_0x5c238f(_0x10d589,{'className':_0x1a83cf(0x1cc),'variant':_0x1a7ac6===_0x428f40['descending']?'primary':_0x1a83cf(0x36e),'onClick':()=>_0x1421b4(_0x428f40['descending']),'children':[_0x1fa005(_0x20c70b,{}),_0x19bc53['t']('bases-dashboard-ui.pivot.descending')]})]}),_0x5c238f(_0x1a83cf(0x1e8),{'className':_0x1a83cf(0x15a),'children':[_0x5c238f(_0x1a83cf(0x24a),{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x1fa005(_0x22d09c,{'checked':_0x3a1a08,'indeterminate':_0x55e4c3[_0x1a83cf(0x2c8)]>0x0&&!_0x3a1a08,'onChange':()=>_0x4159f8(_0x3a1a08?[]:_0x2817c4)}),_0x19bc53['t']('bases-dashboard-ui.pivot.selectAll')]}),_0x2817c4[_0x1a83cf(0x1ee)]((_0x5a2ed5,_0x1ed33d)=>_0x5c238f(_0x1a83cf(0x24a),{'className':_0x1a83cf(0x208),'children':[_0x1fa005(_0x22d09c,{'checked':_0x55e4c3[_0x1a83cf(0x2f8)](_0x5a2ed5),'onChange':()=>_0x4159f8(_0x35e7fa=>_0x35e7fa[_0x1a83cf(0x2f8)](_0x5a2ed5)?_0x35e7fa[_0x1a83cf(0x14f)](_0x2768c9=>_0x2768c9!==_0x5a2ed5):[..._0x35e7fa,_0x5a2ed5])}),_0x1fa005(_0x1a83cf(0x40a),{'className':_0x1a83cf(0x242),'children':qi(_0x5a2ed5,_0x55bc78[_0x1ed33d],_0x44a82c,_0x19bc53['t']('bases-dashboard-ui.pivot.blank'))})]},_0x5a2ed5))]}),_0x5c238f(_0x1a83cf(0x1e8),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[_0x1fa005(_0x10d589,{'variant':'link','onClick':()=>_0x4efbf7[_0x1a83cf(0x3b5)](_0x2817c4,_0x1a7ac6),'children':_0x19bc53['t'](_0x1a83cf(0x3bd))}),_0x5c238f('div',{'className':_0x1a83cf(0x3d4),'children':[_0x1fa005(_0x10d589,{'onClick':_0x4efbf7['onCancel'],'children':_0x19bc53['t'](_0x1a83cf(0x132))}),_0x1fa005(_0x10d589,{'variant':_0x1a83cf(0x125),'disabled':_0x55e4c3[_0x1a83cf(0x2c8)]===0x0,'onClick':()=>_0x4efbf7[_0x1a83cf(0x3b5)](_0x55e4c3,_0x1a7ac6),'children':_0x19bc53['t']('bases-dashboard-ui.pivot.confirm')})]})]})]});return _0x1fa005(_0x14b201,{'title':_0x19bc53['t']('bases-dashboard-ui.pivot.filterField'),'onClose':_0x4efbf7[_0x1a83cf(0x227)],'children':_0x1bf5c1});}function Wi(_0x1a310b){const _0x36846d=_0x3447f8;var _0x3a3598,_0x253b7f,_0x52e881;let _0x49a51a=_0x53af8d(_0x255457),[_0x1b4628,_0x5498bf]=_0xee90d5(((_0x3a3598=_0x1a310b['field'])==null?void 0x0:_0x3a3598[_0x36846d(0x2bb)])??''),[_0x174bac,_0x392cf7]=_0xee90d5(((_0x253b7f=_0x1a310b['field'])==null?void 0x0:_0x253b7f[_0x36846d(0x1f5)])??_0x1f46e1['sum']),[_0x53bd20,_0x127a8f]=_0xee90d5(((_0x52e881=_0x1a310b[_0x36846d(0x101)])==null?void 0x0:_0x52e881[_0x36846d(0x11b)])??'');if(!_0x1a310b[_0x36846d(0x101)])return null;let _0x2bb110=_0x5c238f(_0x36846d(0x336),{'className':_0x54dbd2(_0x36846d(0x320),_0x243840),'children':[_0x1fa005('div',{'className':'univer-text-sm\x20univer-font-medium','children':_0x49a51a['t'](_0x36846d(0x2a0))}),_0x5c238f('label',{'className':_0x36846d(0x289),'children':[_0x49a51a['t'](_0x36846d(0xbe)),_0x1fa005(_0x2647d7,{'value':_0x1b4628,'onChange':_0x5498bf})]}),_0x5c238f('label',{'className':_0x36846d(0x289),'children':[_0x49a51a['t'](_0x36846d(0x109)),_0x1fa005(qr,{'value':String(_0x174bac),'options':Li[_0x36846d(0x1ee)](_0x5e7b79=>({'value':String(_0x5e7b79[_0x36846d(0x2c2)]),'label':_0x49a51a['t'](_0x5e7b79[_0x36846d(0x139)])})),'onChange':_0x179a0c=>{const _0x29a47f=_0x36846d;let _0x5f1b8c=Li[_0x29a47f(0x2c9)](_0x110366=>String(_0x110366['value'])===_0x179a0c);_0x5f1b8c&&_0x392cf7(_0x5f1b8c[_0x29a47f(0x2c2)]);}})]}),_0x5c238f(_0x36846d(0x24a),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x49a51a['t'](_0x36846d(0x3ae)),_0x1fa005(_0x2647d7,{'value':_0x53bd20,'onChange':_0x127a8f})]}),_0x5c238f(_0x36846d(0x1e8),{'className':_0x36846d(0x23d),'children':[_0x1fa005(_0x10d589,{'onClick':_0x1a310b[_0x36846d(0x227)],'children':_0x49a51a['t'](_0x36846d(0x132))}),_0x1fa005(_0x10d589,{'variant':_0x36846d(0x125),'disabled':!_0x1b4628[_0x36846d(0x15f)](),'onClick':()=>_0x1a310b[_0x36846d(0x3b5)](_0x1b4628['trim'](),_0x174bac,_0x53bd20),'children':_0x49a51a['t'](_0x36846d(0x15e))})]})]});return _0x1fa005(_0x14b201,{'title':_0x49a51a['t']('bases-dashboard-ui.pivot.fieldSettings'),'onClose':_0x1a310b[_0x36846d(0x227)],'children':_0x2bb110});}function Gi(_0x61a484){const _0x4fc48c=_0x3447f8;let {config:_0x105f27,commit:_0x21baef}=_0x61a484,_0x3d3ac4=_0x53af8d(_0x255457),_0x102482=_0x105f27['pivot'][_0x4fc48c(0x326)],_0x372a78=_0x3c325b=>_0x21baef(_0x25ebe8=>_0x25ebe8[_0x4fc48c(0x17f)]({..._0x25ebe8[_0x4fc48c(0x21f)](),..._0x3c325b}));return _0x5c238f(_0x4fc48c(0x1e8),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x5c238f('label',{'className':_0x4fc48c(0x39f),'children':[_0x3d3ac4['t'](_0x4fc48c(0x35c)),_0x1fa005(qr,{'className':_0x4fc48c(0x333),'value':String(_0x105f27[_0x4fc48c(0x10d)][_0x4fc48c(0xe1)]),'options':[{'value':String(_0x185dea['tabular']),'label':_0x3d3ac4['t'](_0x4fc48c(0x1ac))},{'value':String(_0x185dea[_0x4fc48c(0x3da)]),'label':_0x3d3ac4['t']('bases-dashboard-ui.pivot.layoutCompact')},{'value':String(_0x185dea[_0x4fc48c(0x1a7)]),'label':_0x3d3ac4['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x44ece9=>{const _0x3ed73e=_0x4fc48c;let _0x45b67d=[_0x185dea['tabular'],_0x185dea[_0x3ed73e(0x3da)],_0x185dea['outline']]['find'](_0x39ba93=>String(_0x39ba93)===_0x44ece9);_0x45b67d!==void 0x0&&_0x21baef(_0x363e8a=>_0x363e8a[_0x3ed73e(0x266)](_0x45b67d));}})]}),[{'key':_0x4fc48c(0x25b),'label':'bases-dashboard-ui.pivot.repeatRowLabels','defaultValue':!0x1},{'key':_0x4fc48c(0x296),'label':_0x4fc48c(0xfe),'defaultValue':!0x1},{'key':_0x4fc48c(0x1a6),'label':_0x4fc48c(0x31c),'defaultValue':!0x0},{'key':_0x4fc48c(0x13d),'label':_0x4fc48c(0x168),'defaultValue':!0x0},{'key':_0x4fc48c(0x107),'label':_0x4fc48c(0x3f9),'defaultValue':!0x0},{'key':_0x4fc48c(0x102),'label':_0x4fc48c(0x25c),'defaultValue':!0x0}][_0x4fc48c(0x1ee)](_0x36297d=>_0x5c238f(_0x4fc48c(0x24a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x1fa005(_0x22d09c,{'checked':!!(_0x102482[_0x36297d[_0x4fc48c(0x2fc)]]??_0x36297d[_0x4fc48c(0xe8)]),'disabled':_0x36297d[_0x4fc48c(0x2fc)]===_0x4fc48c(0x25b)&&_0x105f27[_0x4fc48c(0x10d)][_0x4fc48c(0xe1)]===_0x185dea['compact'],'onChange':_0xb89348=>_0x372a78({[_0x36297d[_0x4fc48c(0x2fc)]]:!!_0xb89348})}),_0x3d3ac4['t'](_0x36297d[_0x4fc48c(0x24a)])]},_0x36297d[_0x4fc48c(0x2fc)])),_0x105f27['pivot']['layout']===_0x185dea[_0x4fc48c(0x1a7)]&&_0x5c238f(_0x4fc48c(0x24a),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x3d3ac4['t']('bases-dashboard-ui.pivot.rowSubtotalPosition'),_0x1fa005(qr,{'className':_0x4fc48c(0x333),'value':String(_0x102482['rowSubtotalPosition']??_0x568753[_0x4fc48c(0x348)]),'options':[{'value':String(_0x568753[_0x4fc48c(0x348)]),'label':_0x3d3ac4['t'](_0x4fc48c(0xc8))},{'value':String(_0x568753[_0x4fc48c(0x199)]),'label':_0x3d3ac4['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x2d8e5b=>{const _0x2ff368=_0x4fc48c;let _0x4eed22=[_0x568753[_0x2ff368(0x348)],_0x568753[_0x2ff368(0x199)]][_0x2ff368(0x2c9)](_0x4fa5e6=>String(_0x4fa5e6)===_0x2d8e5b);_0x4eed22!==void 0x0&&_0x372a78({'rowSubtotalPosition':_0x4eed22});}})]}),_0x5c238f(_0x4fc48c(0x24a),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x3d3ac4['t']('bases-dashboard-ui.pivot.valuePosition'),_0x1fa005(qr,{'className':_0x4fc48c(0x333),'value':String(_0x105f27[_0x4fc48c(0x10d)][_0x4fc48c(0x1d2)]===_0x2d76e7[_0x4fc48c(0x322)]?_0x2d76e7[_0x4fc48c(0x29b)]:_0x105f27[_0x4fc48c(0x10d)][_0x4fc48c(0x1d2)]),'options':[{'value':String(_0x2d76e7[_0x4fc48c(0x29b)]),'label':_0x3d3ac4['t'](_0x4fc48c(0x1f0))},{'value':String(_0x2d76e7[_0x4fc48c(0x20e)]),'label':_0x3d3ac4['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x5e17a0=>{const _0x5a81e0=_0x4fc48c;let _0xe920c7=[_0x2d76e7['Column'],_0x2d76e7[_0x5a81e0(0x20e)]]['find'](_0x4d64f2=>String(_0x4d64f2)===_0x5e17a0);_0xe920c7!==void 0x0&&_0x21baef(_0x1714ac=>_0x1714ac[_0x5a81e0(0x1a1)](_0xe920c7,_0x1714ac['getValueIndex']()<0x0?0x0:_0x1714ac['getValueIndex']()));}})]}),_0x5c238f(_0x4fc48c(0x24a),{'className':_0x4fc48c(0x39f),'children':[_0x3d3ac4['t'](_0x4fc48c(0x30a)),_0x1fa005(_0x499d19,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x102482[_0x4fc48c(0x358)]??0x1,'onChange':_0x1ff1f2=>{const _0x193655=_0x4fc48c;let _0x4cc4a5=Number(_0x1ff1f2);Number[_0x193655(0x1b3)](_0x4cc4a5)&&_0x4cc4a5>=0x1&&_0x372a78({'pageWrap':_0x4cc4a5});}})]}),_0x5c238f(_0x4fc48c(0x24a),{'className':_0x4fc48c(0x39f),'children':[_0x3d3ac4['t']('bases-dashboard-ui.pivot.pageDirection'),_0x1fa005(qr,{'className':_0x4fc48c(0x333),'value':String(_0x102482[_0x4fc48c(0x1db)]??!0x1),'options':[{'value':_0x4fc48c(0x37e),'label':_0x3d3ac4['t'](_0x4fc48c(0x384))},{'value':_0x4fc48c(0x2d2),'label':_0x3d3ac4['t']('bases-dashboard-ui.pivot.acrossThenDown')}],'onChange':_0x3bed88=>_0x372a78({'pageOverThenDown':_0x3bed88==='true'})})]})]});}function Ki(_0x3793c5,_0x174932,_0x82c91c,_0x15181d){const _0x1185bf=_0x3447f8;let _0x852edc=_0x3793c5[_0x1185bf(0x1b5)](_0x174932)[_0x1185bf(0x2c9)](_0x3828df=>_0x3793c5[_0x1185bf(0x126)](_0x3828df[_0x1185bf(0x2bd)]())[_0x1185bf(0x34d)]!==_0x23447d[_0x1185bf(0x1b0)]);if(_0x82c91c!==_0x23447d[_0x1185bf(0x1b0)]&&_0x852edc){_0x3793c5[_0x1185bf(0x23b)](_0x852edc[_0x1185bf(0x2bd)](),_0x82c91c,_0x15181d);return;}_0x3793c5['addFieldWithSourceId'](_0x174932,_0x82c91c,_0x15181d);}function qi(_0x4b5aa2,_0x35f2fd,_0x1ec389,_0x58f6e7){const _0x115f0d=_0x3447f8;return _0x35f2fd===_0x25f34a[_0x115f0d(0x295)]?_0x58f6e7:_0x35f2fd===_0x25f34a[_0x115f0d(0x118)]&&_0x1ec389?_0x254bab['format'](_0x1ec389,Number(_0x4b5aa2)):_0x4b5aa2;}function Ji(_0x46f9c8){const _0x348f91=_0x3447f8;return _0x46f9c8[_0x348f91(0x1b9)]===_0x2940a8[_0x348f91(0x3c9)]||_0x46f9c8[_0x348f91(0x1b9)]===_0x2940a8[_0x348f91(0x18d)]||_0x46f9c8[_0x348f91(0x1b9)]===_0x2940a8[_0x348f91(0x304)]||_0x46f9c8['type']===_0x2940a8[_0x348f91(0x3b8)];}function Yi(_0x493230){const _0x54a2c4=_0x3447f8;switch(_0x493230){case _0x23447d[_0x54a2c4(0x20e)]:return _0x54a2c4(0x36f);case _0x23447d[_0x54a2c4(0x29b)]:return'bases-dashboard-ui.pivot.addToColumn';case _0x23447d['Value']:return _0x54a2c4(0x246);default:return _0x54a2c4(0x1f3);}}function Xi({config:_0x2d5904,onChange:_0x11a0e5,runtime:_0x4c0cf9,table:_0x77456f}){const _0x1334d2=_0x3447f8;let _0x4cb01d=_0x53af8d(_0x255457),[_0x42e41d,_0x286c7d]=_0xee90d5(_0x1334d2(0x1eb));return _0x5c238f(_0x1334d2(0x268),{'className':_0x1334d2(0x258),'children':[_0x1fa005(_0x283559,{'ariaLabel':_0x4cb01d['t'](_0x1334d2(0x1a9)),'className':_0x1334d2(0x33a),'items':[{'label':_0x4cb01d['t'](_0x1334d2(0x19e)),'panelId':_0x1334d2(0x28c),'value':'chart'},{'label':_0x4cb01d['t'](_0x1334d2(0x1b7)),'panelId':_0x1334d2(0xce),'value':_0x1334d2(0x10d)}],'value':_0x42e41d,'variant':_0x1334d2(0x2db),'onChange':_0x286c7d}),_0x1fa005(_0x1334d2(0x1e8),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','children':_0x42e41d==='chart'?_0x4c0cf9&&_0x1fa005(Qr,{'config':_0x2d5904,'runtime':_0x4c0cf9,'tableName':_0x77456f[_0x1334d2(0x2cd)],'onChange':_0x11a0e5}):_0x1fa005(Ri,{'config':_0x2d5904,'table':_0x77456f,'onChange':_0x11a0e5})})]});}function _0x1596(_0x4222ee,_0x85c599){_0x4222ee=_0x4222ee-0xb9;const _0x344824=_0x3448();let _0x15969c=_0x344824[_0x4222ee];return _0x15969c;}function Zi({tableId:_0x23aa47,unitId:_0x54bedf,viewId:_0x16da8f}){const _0x46eae0=_0x3447f8;let [_0x45bfef,_0x26a89e]=_0xee90d5(!0x1),_0x3403ae=_0x53af8d(_0x1ec317),_0x1a6a84=_0x53af8d(_0xa15270),_0x1b6917=_0x53af8d(_0x133842),_0x1931d1=_0x53af8d(_0x255457),_0x25d106=_0x53af8d(_0x2cc67a),[_0x286bf3,_0x31c1ea]=_0xee90d5(null),[_0x49c61d,_0x1bdc8a]=_0xee90d5(null),_0x4fe3bb=_0x4523d4('base-pivot-chart-'+_0x2aef82(0x8)),[_0x526437,_0x131ac2]=_0xee90d5(!0x1),_0x2ea8e7=_0x1a6a84['getUnit'](_0x54bedf,_0x6e7cef[_0x46eae0(0x1f7)]),_0x3fc8f5=_0x2ea8e7==null?void 0x0:_0x2ea8e7[_0x46eae0(0x3b6)]()[_0x46eae0(0x186)][_0x23aa47],_0xa9176c=_0x3fc8f5==null?void 0x0:_0x3fc8f5['views'][_0x16da8f],_0x3abd6c=Qi(_0xa9176c),_0x1ef5a5=_r(_0x54bedf,_0x23aa47,_0x16da8f);if(_0x543512(()=>{const _0x114f36=_0x46eae0;if(!_0x3abd6c)return;let _0x2cdf77=_0x4fe3bb['current'];return _0x25d106[_0x114f36(0x1a0)](_0x2cdf77,{'unitId':_0x54bedf,'tableId':_0x23aa47,'viewId':_0x16da8f,'filters':[]}),()=>{const _0x448926=_0x114f36;_0x25d106[_0x448926(0x197)](_0x54bedf,_0x2cdf77);};},[_0x3abd6c,_0x25d106,_0x23aa47,_0x54bedf,_0x16da8f]),_0x543512(()=>{const _0x91faa4=_0x46eae0;if(!Qi(_0xa9176c))return;let _0x58d4fb=!0x0,_0x2a901a={'unitId':_0x54bedf,'tableId':_0x23aa47,'viewId':_0x16da8f,'filters':[_0xa9176c[_0x91faa4(0x14f)]??null]};return _0x25d106[_0x91faa4(0x1d6)](_0x54bedf,_0x4fe3bb[_0x91faa4(0x23e)],_0x2a901a)[_0x91faa4(0x401)](_0x2edcad=>{const _0x36f829=_0x91faa4;_0x58d4fb&&_0x2edcad&&(_0x31c1ea(_0x2edcad),_0x1bdc8a(_0x25d106[_0x36f829(0x337)](_0x54bedf,_0x4fe3bb[_0x36f829(0x23e)])??null),_0x131ac2(!0x1));})[_0x91faa4(0x308)](_0x580f56=>{const _0x4e63c3=_0x91faa4;_0x1b6917[_0x4e63c3(0x1a3)]('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x580f56),_0x58d4fb&&(_0x31c1ea(null),_0x131ac2(!0x0));}),()=>{_0x58d4fb=!0x1;};},[_0x1b6917,_0x25d106,_0x23aa47,_0x54bedf,_0xa9176c,_0x16da8f]),!_0x3fc8f5||!Qi(_0xa9176c))return null;let _0x5e040f=_0x25d106[_0x46eae0(0x337)](_0x54bedf,_0x4fe3bb[_0x46eae0(0x23e)])===_0x49c61d?_0x49c61d:null,_0x576fec=_0x286bf3?_0x5c238f(_0x46eae0(0x1e8),{'className':_0x46eae0(0x1f9),'style':{'gridTemplateRows':_0xa9176c['config'][_0x46eae0(0x2f2)]===_0x46eae0(0xf9)?'minmax(0,\x203fr)\x20minmax(0,\x202fr)':_0x46eae0(0x1ea)},'children':[_0xa9176c[_0x46eae0(0x2b0)][_0x46eae0(0x2f2)]!==_0x46eae0(0x173)&&_0x5e040f&&_0x1fa005(_0x46eae0(0x1e8),{'className':_0x46eae0(0x360),'children':_0x1fa005(Ir,{'isRowDirection':_0x18785d(_0xa9176c[_0x46eae0(0x2b0)]['chart']['orient']),'runtime':_0x5e040f})}),_0xa9176c[_0x46eae0(0x2b0)][_0x46eae0(0x2f2)]!=='chart'&&_0x1fa005(_0x46eae0(0x1e8),{'className':'univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':_0x1fa005(ki,{'pivot':_0xa9176c[_0x46eae0(0x2b0)]['pivot'],'view':_0x286bf3[_0x46eae0(0x3d6)]})})]}):_0x1fa005(_0x46eae0(0x1e8),{'className':_0x46eae0(0x158),'children':_0x526437?_0x1931d1['t'](_0x46eae0(0x143)):_0x1931d1['t']('bases-dashboard-ui.pivot.calculating')}),_0x430b7a=_0x1fa005(Xi,{'config':_0xa9176c[_0x46eae0(0x2b0)],'runtime':_0x5e040f,'table':_0x3fc8f5,'onChange':_0x16ad29=>{const _0x1fa365=_0x46eae0;_0x1a6a84[_0x1fa365(0x300)](_0x54bedf),_0x1a6a84[_0x1fa365(0x3a3)](_0x54bedf),_0x3403ae[_0x1fa365(0x2be)](_0x22ea58['id'],{'unitId':_0x54bedf,'tableId':_0x23aa47,'viewId':_0x16da8f,'patch':_0x16ad29})[_0x1fa365(0x308)](_0x297198=>_0x1b6917['error']('[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.',_0x297198));}});return _0x1fa005(Kr,{'children':_0x5c238f(_0x46eae0(0x1e8),{'className':'univer-relative\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-50\x20dark:univer-bg-gray-950','children':[_0x1ef5a5&&_0x1fa005(_0x10d589,{'onClick':()=>_0x26a89e(!0x0),'children':_0x1931d1['t'](_0x46eae0(0x19e))}),_0x1fa005('div',{'className':_0x46eae0(0x3fc),'children':_0x576fec}),_0x1ef5a5&&_0x45bfef&&_0x1fa005(_0x14b201,{'title':_0x1931d1['t'](_0x46eae0(0x1a9)),'onClose':()=>_0x26a89e(!0x1),'children':_0x430b7a})]})});}function Qi(_0x4d9832){const _0x117b81=_0x3447f8;return(_0x4d9832==null?void 0x0:_0x4d9832[_0x117b81(0x1b9)])===_0x4da0de[_0x117b81(0x1ec)]&&typeof _0x4d9832['config']==_0x117b81(0x2f1)&&_0x4d9832[_0x117b81(0x2b0)]!==null&&_0x117b81(0x10d)in _0x4d9832['config']&&_0x117b81(0x1eb)in _0x4d9832[_0x117b81(0x2b0)]&&_0x117b81(0x2f2)in _0x4d9832[_0x117b81(0x2b0)];}let $i=class extends _0x47ac6f{constructor(_0x2a636c,_0x532e18,_0x574080,_0x2d7544,_0x34c28a,_0x41b14f){const _0x2dfc2f=_0x3447f8;super(),this[_0x2dfc2f(0x36c)](_0x532e18[_0x2dfc2f(0xc6)]({'type':_0x4da0de[_0x2dfc2f(0x1ec)],'renderMode':_0x2dfc2f(0x30f),'icon':_0x551361,'component':Zi,'menu':{get 'label'(){const _0x243b8f=_0x2dfc2f;return _0x41b14f['t'](_0x243b8f(0x1a9));},get 'description'(){return _0x41b14f['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){return _0x41b14f['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x2dfc2f(0x36c)](_0x2a636c[_0x2dfc2f(0xc6)](ea(_0x574080,_0x2d7544,_0x34c28a,_0x41b14f)));}};$i=Or([Y(0x0,_0x3460c3),Y(0x1,_0x198cb9),Y(0x2,_0x1e6fb0(_0x4e6cdd)),Y(0x3,_0x1ec317),Y(0x4,_0x58608a),Y(0x5,_0x1e6fb0(_0x255457))],$i);function ea(_0x35d6a0,_0x6bb2e5,_0x118015,_0x51ad38){const _0x55fddd=_0x3447f8;return{'change$':_0x1691f8(_0x35d6a0[_0x55fddd(0x135)],_0x118015['permissionPointUpdate$']),'component':bi,get 'labels'(){const _0x2bdd74=_0x55fddd;return{'add':_0x51ad38['t'](_0x2bdd74(0x19b)),'configure':_0x16a990=>_0x51ad38['t'](_0x2bdd74(0x291),_0x16a990),'delete':_0x51ad38['t'](_0x2bdd74(0x238)),'new':_0x51ad38['t'](_0x2bdd74(0x1de)),'rename':_0x51ad38['t'](_0x2bdd74(0xe0)),'search':_0x51ad38['t']('bases-dashboard-ui.dashboard.search'),'section':_0x51ad38['t']('bases-dashboard-ui.dashboard.section')};},'getItems':_0x37aa00=>{const _0x832436=_0x55fddd;let _0x196677=_0x35d6a0[_0x832436(0x29d)](_0x37aa00);return _0x196677[_0x832436(0x27e)][_0x832436(0x30c)](_0x2a697e=>{const _0x5b13bc=_0x832436;let _0x184ff2=_0x196677[_0x5b13bc(0x1fc)][_0x2a697e];return _0x184ff2?[{'id':_0x184ff2['id'],'name':_0x184ff2[_0x5b13bc(0x2cd)],'readonly':!_0x314d1d(_0x118015,_0x37aa00,_0x184ff2['id'])}]:[];});},'create':async _0x199e86=>{const _0x4c4edd=_0x55fddd;let _0x1c28ad=_0x35d6a0['getResource'](_0x199e86),_0x48eec8=_0x4c4edd(0x13a)+_0x2aef82(0x8),_0x140c0b=ta(_0x1c28ad['dashboardOrder']['flatMap'](_0x182896=>{const _0x540c2c=_0x4c4edd;let _0x21381f=_0x1c28ad['dashboards'][_0x182896];return _0x21381f?[_0x21381f[_0x540c2c(0x2cd)]]:[];}),_0x3f396a=>_0x51ad38['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x3f396a)));return await _0x6bb2e5[_0x4c4edd(0x2be)](_0x15bed1['id'],{'unitId':_0x199e86,'dashboard':{'id':_0x48eec8,'name':_0x140c0b,'widgetOrder':[],'widgets':{}}})?_0x48eec8:null;},'rename':async(_0xc408f9,_0x5b7cb3,_0xcedf98)=>{const _0x54cd8d=_0x55fddd;let _0x329f5a=_0x35d6a0['getDashboard'](_0xc408f9,_0x5b7cb3);return!!(_0x329f5a&&await _0x6bb2e5[_0x54cd8d(0x2be)](_0x51a517['id'],{'unitId':_0xc408f9,'dashboard':{..._0x329f5a,'name':_0xcedf98}}));},'remove':(_0x147f8c,_0x3159d4)=>_0x6bb2e5[_0x55fddd(0x2be)](_0x56eacd['id'],{'unitId':_0x147f8c,'dashboardId':_0x3159d4})};}function ta(_0x4f225e,_0x52dbd7){const _0x12204f=_0x3447f8;let _0x5b024f=new Set(_0x4f225e),_0x307cf7=_0x5b024f['size']+0x1,_0x255a44=_0x52dbd7(_0x307cf7);for(;_0x5b024f[_0x12204f(0x3a4)](_0x255a44);)_0x307cf7+=0x1,_0x255a44=_0x52dbd7(_0x307cf7);return _0x255a44;}let na=class extends _0x4b5524{constructor(_0x516fc0=hr,_0x51a17f,_0x52efd2){const _0x36d1d6=_0x3447f8;super(),this['_config']=_0x516fc0,this[_0x36d1d6(0x3e5)]=_0x51a17f,this[_0x36d1d6(0x3dc)]=_0x52efd2;let {..._0x20831f}=_0x2b2cf0({},hr,this[_0x36d1d6(0x2ae)]);this['_configService'][_0x36d1d6(0x1ef)](mr,_0x20831f);}[_0x3447f8(0x192)](){const _0x222670=_0x3447f8;this['_injector'][_0x222670(0x1fa)]([kr]),this[_0x222670(0x3e5)]['add']([Gr]),this['_injector'][_0x222670(0x1fa)]([$i]);}['onReady'](){const _0x1cd863=_0x3447f8;_0x3ce29c(this[_0x1cd863(0x3e5)],[[kr],[Gr],[$i]]);}};Pr(na,_0x3447f8(0x1b9),_0x6e7cef['UNIVER_BASE']),Pr(na,_0x3447f8(0x255),_0x3447f8(0x206)),Pr(na,'packageName',fr),Pr(na,'version',pr),na=Or([_0xc92a94(_0x267ea2,_0x12b6ef,_0x2e4e9f,_0x54ced9,_0x100373,_0x442bae),Y(0x1,_0x1e6fb0(_0x49fd9b)),Y(0x2,_0x56e562)],na);function ra(_0x11cddb,_0x118dfe,_0x417cc1,_0x542774){const _0x34b351=_0x3447f8;let _0x1bc0e2={..._0x11cddb};if(_0x118dfe[_0x34b351(0x2f8)]('w')){let _0x22f8b1=_0x11cddb[_0x34b351(0x362)]+_0x11cddb[_0x34b351(0x394)];_0x1bc0e2[_0x34b351(0x362)]=Math[_0x34b351(0x351)](0x0,Math['min'](_0x22f8b1-0x1,_0x11cddb[_0x34b351(0x362)]+_0x417cc1)),_0x1bc0e2[_0x34b351(0x394)]=_0x22f8b1-_0x1bc0e2[_0x34b351(0x362)];}else _0x118dfe[_0x34b351(0x2f8)]('e')&&(_0x1bc0e2['columnSpan']=Math[_0x34b351(0x351)](0x1,Math['min'](_0x25ec11-_0x11cddb[_0x34b351(0x362)],_0x11cddb['columnSpan']+_0x417cc1)));if(_0x118dfe[_0x34b351(0x2f8)]('n')){let _0x47670f=_0x11cddb[_0x34b351(0x2b6)]+_0x11cddb[_0x34b351(0x3ef)];_0x1bc0e2[_0x34b351(0x2b6)]=Math['max'](0x0,Math['min'](_0x47670f-0x1,_0x11cddb[_0x34b351(0x2b6)]+_0x542774)),_0x1bc0e2[_0x34b351(0x3ef)]=_0x47670f-_0x1bc0e2[_0x34b351(0x2b6)];}else _0x118dfe[_0x34b351(0x2f8)]('s')&&(_0x1bc0e2['rowSpan']=Math['max'](0x1,_0x11cddb['rowSpan']+_0x542774));return _0x1bc0e2;}function ia(_0x559764){const _0x5c4c0e=_0x3447f8;let _0x34fd96=Math[_0x5c4c0e(0x351)](0x1,Math[_0x5c4c0e(0x379)](_0x25ec11,Math[_0x5c4c0e(0x323)](_0x559764[_0x5c4c0e(0x394)])));return{'column':Math[_0x5c4c0e(0x351)](0x0,Math[_0x5c4c0e(0x379)](_0x25ec11-_0x34fd96,Math[_0x5c4c0e(0x323)](_0x559764[_0x5c4c0e(0x362)]))),'row':Math[_0x5c4c0e(0x351)](0x0,Math[_0x5c4c0e(0x323)](_0x559764['row'])),'columnSpan':_0x34fd96,'rowSpan':Math['max'](0x1,Math[_0x5c4c0e(0x323)](_0x559764[_0x5c4c0e(0x3ef)]))};}function aa(_0x5300ec,_0x15ab49,_0x2bf1df){const _0xfff008=_0x3447f8;let _0x4df103=new Map(_0x5300ec),_0x617139=ia(_0x2bf1df);_0x4df103[_0xfff008(0xea)](_0x15ab49,_0x617139);let _0x2fe011=[[_0x15ab49,_0x617139]];for(let [_0x2ed6e2,_0x17f225]of _0x4df103){if(_0x2ed6e2===_0x15ab49)continue;let _0x1fc7bd=ia(_0x17f225);for(;_0x2fe011[_0xfff008(0x3c4)](([,_0x2bdcf2])=>sa(_0x1fc7bd,_0x2bdcf2));)_0x1fc7bd={..._0x1fc7bd,'row':_0x1fc7bd[_0xfff008(0x2b6)]+0x1};for(;_0x1fc7bd[_0xfff008(0x2b6)]>0x0;){let _0x27f1ce={..._0x1fc7bd,'row':_0x1fc7bd[_0xfff008(0x2b6)]-0x1};if(_0x2fe011[_0xfff008(0x3c4)](([,_0x2b3818])=>sa(_0x27f1ce,_0x2b3818)))break;_0x1fc7bd=_0x27f1ce;}_0x2fe011[_0xfff008(0xf3)]([_0x2ed6e2,_0x1fc7bd]),_0x4df103[_0xfff008(0xea)](_0x2ed6e2,_0x1fc7bd);}return _0x4df103;}function oa(_0x263b9f,_0x49ff7d,_0x4e49fe,_0x30061c=0x38,_0x51dcb3=0x16){const _0x548740=_0x3447f8;return _0x263b9f<_0x49ff7d+_0x30061c?-Math[_0x548740(0x163)](_0x51dcb3*(0x1-Math[_0x548740(0x351)](0x0,_0x263b9f-_0x49ff7d)/_0x30061c)):_0x263b9f>_0x4e49fe-_0x30061c?Math[_0x548740(0x163)](_0x51dcb3*(0x1-Math[_0x548740(0x351)](0x0,_0x4e49fe-_0x263b9f)/_0x30061c)):0x0;}function sa(_0x54ec54,_0x3bc64b){const _0x1602ea=_0x3447f8;return _0x54ec54[_0x1602ea(0x362)]<_0x3bc64b[_0x1602ea(0x362)]+_0x3bc64b[_0x1602ea(0x394)]&&_0x54ec54[_0x1602ea(0x362)]+_0x54ec54[_0x1602ea(0x394)]>_0x3bc64b[_0x1602ea(0x362)]&&_0x54ec54[_0x1602ea(0x2b6)]<_0x3bc64b[_0x1602ea(0x2b6)]+_0x3bc64b[_0x1602ea(0x3ef)]&&_0x54ec54[_0x1602ea(0x2b6)]+_0x54ec54[_0x1602ea(0x3ef)]>_0x3bc64b[_0x1602ea(0x2b6)];}const ca=[{'direction':'nw','className':_0x3447f8(0x2d5)},{'direction':'n','className':'-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize'},{'direction':'ne','className':_0x3447f8(0x147)},{'direction':'e','className':'-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize'},{'direction':'se','className':_0x3447f8(0x237)},{'direction':'s','className':_0x3447f8(0x3f1)},{'direction':'sw','className':_0x3447f8(0x25e)},{'direction':'w','className':_0x3447f8(0x2d1)}];function la({dashboard:_0x1140e9,dragLabel:_0x58691a,editable:_0x15ebde=!0x0,onLayoutsCommit:_0x46e33b,onSelectWidget:_0x3a4d61,renderWidget:_0x3bd35d,renderWidgetActions:_0x59407a,resizeLabel:_0x39515e,selectedWidgetId:_0x4f0f97,widgetLabel:_0x489fe2}){const _0x81418d=_0x3447f8;let _0x102ce9=_0x4523d4(null),_0x3bbe7e=_0x4523d4(null),[_0x4f5985,_0x4926c3]=_0xee90d5(!0x1),_0x23fa9b=_0x125177(()=>new Map(_0x1140e9[_0x81418d(0x2a6)][_0x81418d(0x30c)](_0xe96b35=>{const _0x3c6706=_0x81418d;let _0x4373ff=_0x1140e9[_0x3c6706(0x311)][_0xe96b35];return _0x4373ff?[[_0xe96b35,_0x4373ff[_0x3c6706(0xe1)]]]:[];})),[_0x1140e9]),[_0x39bb6c,_0x5015ec]=_0xee90d5(_0x23fa9b);_0x543512(()=>{_0x3bbe7e['current']||_0x5015ec(_0x23fa9b);},[_0x23fa9b]),_0x543512(()=>{const _0x3a68b7=_0x81418d;if(!_0x4f5985)return;let _0x53e233=_0x3603b7=>{const _0xb1e12=_0x1596;let _0x5462dc=_0x102ce9[_0xb1e12(0x23e)];if(!_0x5462dc)return null;let _0x1739ee=_0x5462dc[_0xb1e12(0x263)](),_0x25365c=Math[_0xb1e12(0x351)](0x1,(_0x1739ee[_0xb1e12(0x144)]-0x8*(_0x25ec11-0x1))/_0x25ec11),_0x511301=Math[_0xb1e12(0x323)]((_0x5462dc[_0xb1e12(0x406)]-_0x3603b7['startScrollTop'])/(_0x35833c+0x8)),_0x24fd80=Math[_0xb1e12(0x323)]((_0x3603b7[_0xb1e12(0x357)]-_0x3603b7[_0xb1e12(0x209)])/(_0x25365c+0x8)),_0x482bab=Math['round']((_0x3603b7[_0xb1e12(0x1c7)]-_0x3603b7['startY'])/(_0x35833c+0x8))+_0x511301,_0x16323b=_0x3603b7[_0xb1e12(0x272)]==='move'?{..._0x3603b7[_0xb1e12(0x188)],'column':_0x3603b7['initial'][_0xb1e12(0x362)]+_0x24fd80,'row':_0x3603b7[_0xb1e12(0x188)][_0xb1e12(0x2b6)]+_0x482bab}:ra(_0x3603b7[_0xb1e12(0x188)],_0x3603b7[_0xb1e12(0x14c)]??'se',_0x24fd80,_0x482bab),_0x2f2aa1=aa(_0x3603b7['initialLayouts'],_0x3603b7['id'],_0x16323b);return _0x5015ec(_0x2f2aa1),_0x2f2aa1;},_0x6fea5d=_0x273d72=>{const _0x762fe8=_0x1596;let _0x681ffc=_0x3bbe7e[_0x762fe8(0x23e)];if(!_0x681ffc)return;let _0x6fb8d9={..._0x681ffc,'pointerX':_0x273d72[_0x762fe8(0x371)],'pointerY':_0x273d72['clientY']};_0x3bbe7e[_0x762fe8(0x23e)]=_0x6fb8d9;},_0x24695b=()=>{const _0x686dd4=_0x1596;let _0xddaee=_0x3bbe7e[_0x686dd4(0x23e)],_0x11e205=_0xddaee?_0x53e233(_0xddaee):null;_0x3bbe7e[_0x686dd4(0x23e)]=null,_0x4926c3(!0x1),_0x11e205&&_0x46e33b(_0x11e205);},_0x14b1c4=0x0,_0x384a2b=()=>{const _0x142941=_0x1596;let _0x2a3a89=_0x102ce9[_0x142941(0x23e)],_0x31e9c1=_0x3bbe7e[_0x142941(0x23e)];if(_0x2a3a89&&_0x31e9c1){let _0x205a44=_0x2a3a89[_0x142941(0x263)](),_0x26b1ff=oa(_0x31e9c1[_0x142941(0x1c7)],_0x205a44[_0x142941(0x348)],_0x205a44[_0x142941(0x199)]);_0x26b1ff!==0x0&&(_0x2a3a89['scrollTop']+=_0x26b1ff),_0x53e233(_0x31e9c1),_0x14b1c4=requestAnimationFrame(_0x384a2b);}};return _0x14b1c4=requestAnimationFrame(_0x384a2b),window[_0x3a68b7(0x213)](_0x3a68b7(0x16b),_0x6fea5d),window['addEventListener'](_0x3a68b7(0x3f0),_0x24695b),()=>{const _0x41d682=_0x3a68b7;cancelAnimationFrame(_0x14b1c4),window[_0x41d682(0x367)](_0x41d682(0x16b),_0x6fea5d),window[_0x41d682(0x367)](_0x41d682(0x3f0),_0x24695b);};},[_0x4f5985,_0x46e33b]);let _0x4ae9ba=Math[_0x81418d(0x351)](0x8,...Array[_0x81418d(0x3a1)](_0x39bb6c[_0x81418d(0xfd)]())[_0x81418d(0x1ee)](_0x29b584=>_0x29b584[_0x81418d(0x2b6)]+_0x29b584[_0x81418d(0x3ef)])),_0x156601=(_0x366eaa,_0x1f6719,_0x558768,_0x16af83)=>{const _0x26f804=_0x81418d;_0x366eaa[_0x26f804(0x16a)](),_0x366eaa['stopPropagation']();let _0x2d7505=_0x102ce9['current'],_0x46f6e5={'id':_0x1f6719['id'],'mode':_0x558768,'pointerX':_0x366eaa['clientX'],'pointerY':_0x366eaa['clientY'],'startX':_0x366eaa['clientX'],'startY':_0x366eaa['clientY'],'startScrollTop':(_0x2d7505==null?void 0x0:_0x2d7505[_0x26f804(0x406)])??0x0,'initial':_0x39bb6c[_0x26f804(0x15b)](_0x1f6719['id'])??_0x1f6719['layout'],'initialLayouts':new Map(_0x39bb6c),'resizeDirection':_0x16af83};_0x3bbe7e['current']=_0x46f6e5,_0x4926c3(!0x0);};return _0x1fa005(_0x81418d(0x1e8),{'ref':_0x102ce9,'data-dashboard-scroll-container':!0x0,'className':_0x54dbd2('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',_0x2bbb9f),'onClick':_0x15ebde?_0x155d3a=>{const _0x2313fe=_0x81418d;if(!(_0x155d3a[_0x2313fe(0x3ea)]instanceof Node)||!_0x155d3a[_0x2313fe(0x3c3)][_0x2313fe(0x244)](_0x155d3a[_0x2313fe(0x3ea)]))return;let _0x2de61b=_0x155d3a[_0x2313fe(0x3ea)]instanceof Element?_0x155d3a[_0x2313fe(0x3ea)]:_0x155d3a[_0x2313fe(0x3ea)][_0x2313fe(0x2f7)];_0x2de61b!=null&&_0x2de61b[_0x2313fe(0xee)](_0x2313fe(0x187))||_0x3a4d61==null||_0x3a4d61();}:void 0x0,'children':_0x1fa005(_0x81418d(0x1e8),{'data-dashboard-grid':!0x0,'className':_0x81418d(0x3a8),'style':{'gap':0x8,'gridAutoRows':_0x35833c,'minHeight':_0x4ae9ba*(_0x35833c+0x8)},'children':_0x1140e9['widgetOrder'][_0x81418d(0x1ee)](_0x445bd4=>{const _0x16d78e=_0x81418d;var _0x4e93f6;let _0x4f7b44=_0x1140e9[_0x16d78e(0x311)][_0x445bd4],_0x488585=_0x39bb6c[_0x16d78e(0x15b)](_0x445bd4);return!_0x4f7b44||!_0x488585?null:_0x5c238f(_0x16d78e(0x363),{'data-dashboard-widget':_0x4f7b44['id'],'aria-label':_0x4f7b44[_0x16d78e(0x239)]??_0x489fe2(_0x4f7b44),'className':_0x54dbd2(_0x16d78e(0x3f3),_0x4f7b44[_0x16d78e(0x1b9)]===_0x28a714[_0x16d78e(0x341)]||_0x4f7b44[_0x16d78e(0x1b9)]===_0x28a714[_0x16d78e(0x1ca)]?'univer-bg-transparent\x20dark:!univer-bg-transparent':_0x16d78e(0x151),_0x15ebde&&_0x4f0f97===_0x4f7b44['id']?'univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500':_0x16d78e(0x31f)),'style':{'gridColumn':_0x488585[_0x16d78e(0x362)]+0x1+_0x16d78e(0x3f6)+_0x488585[_0x16d78e(0x394)],'gridRow':_0x488585[_0x16d78e(0x2b6)]+0x1+_0x16d78e(0x3f6)+_0x488585['rowSpan']},'tabIndex':_0x15ebde?0x0:void 0x0,'onClick':_0x15ebde?()=>_0x3a4d61==null?void 0x0:_0x3a4d61(_0x4f7b44['id']):void 0x0,'onFocus':_0x15ebde?()=>_0x3a4d61==null?void 0x0:_0x3a4d61(_0x4f7b44['id']):void 0x0,'children':[_0x15ebde&&_0x1fa005('button',{'type':'button','aria-label':_0x58691a,'data-dashboard-drag-handle':_0x4f7b44['id'],'className':_0x54dbd2('univer-pointer-events-none\x20univer-absolute\x20univer-left-1/2\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-h-5\x20univer-w-8\x20-univer-translate-x-1/2\x20univer-appearance-none\x20univer-items-center\x20univer-justify-center\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-400\x20univer-opacity-0\x20univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100',_0x4f5985&&((_0x4e93f6=_0x3bbe7e[_0x16d78e(0x23e)])==null?void 0x0:_0x4e93f6['id'])===_0x4f7b44['id']&&_0x3bbe7e[_0x16d78e(0x23e)][_0x16d78e(0x272)]===_0x16d78e(0xff)?_0x16d78e(0x3d0):_0x16d78e(0xdb)),'onPointerDown':_0x27aca8=>_0x156601(_0x27aca8,_0x4f7b44,_0x16d78e(0xff)),'children':_0x1fa005(_0x229479,{'className':_0x16d78e(0x2e0),'aria-hidden':'true'})}),_0x15ebde&&_0x1fa005(_0x16d78e(0x1e8),{'className':_0x16d78e(0x2df),'children':_0x59407a==null?void 0x0:_0x59407a(_0x4f7b44)}),_0x1fa005(_0x16d78e(0x1e8),{'className':_0x16d78e(0x264),'children':_0x3bd35d(_0x4f7b44)}),_0x15ebde&&ca[_0x16d78e(0x1ee)](({className:_0x3aa5d2,direction:_0x2f0cb7})=>{const _0x29f585=_0x16d78e;let _0x232bf9=_0x2f0cb7[_0x29f585(0x2c8)]===0x2;return _0x1fa005(_0x29f585(0x3b9),{'type':_0x29f585(0x3b9),'aria-label':_0x39515e,'data-dashboard-resize-handle':_0x2f0cb7,'data-dashboard-resize-control':_0x232bf9?_0x2f0cb7:void 0x0,'data-dashboard-resize-edge':_0x232bf9?void 0x0:_0x2f0cb7,'className':_0x54dbd2(_0x29f585(0x36a),_0x232bf9?_0x29f585(0x18c):'univer-border-0\x20univer-bg-transparent',_0x3aa5d2,_0x4f0f97===_0x4f7b44['id']&&_0x29f585(0x389)),'onPointerDown':_0x5cc1b1=>_0x156601(_0x5cc1b1,_0x4f7b44,_0x29f585(0xed),_0x2f0cb7)},_0x2f0cb7);})]},_0x4f7b44['id']);})})});}var ua;const Q={'axis':{..._0x152708,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x540e6b,'heatmap':_0x5badfc,'indicatorLine':_0x252eea,'legend':_0x337e65,'lineAndArea':_0x5e0a33,'pareto':_0x38048e,'pie':_0x1c8b9e,'radar':_0x4bcca4,'relation':{..._0x3de6de,'useValueAsSymbolSize':!0x0},'series':{..._0x324182,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((ua=_0x2ce46e['allSeriesStyle'])==null?void 0x0:ua[_0x3447f8(0x284)])??!0x1}},'style':_0xd40535,'titles':_0x289a2d,'trendline':_0x4c6d30,'waterfall':{..._0x15085e,'useSubtotal':!0x0},'waterfallStyle':_0x3f0564,'wordCloud':_0x145212},da=[_0x44b61b['Line'],_0x44b61b[_0x3447f8(0x35a)],_0x44b61b[_0x3447f8(0x32e)],_0x44b61b[_0x3447f8(0x2ab)],_0x44b61b['Funnel'],_0x44b61b[_0x3447f8(0x108)],_0x44b61b[_0x3447f8(0x327)],_0x44b61b[_0x3447f8(0x27c)],_0x44b61b[_0x3447f8(0x172)],_0x44b61b[_0x3447f8(0x265)],_0x44b61b[_0x3447f8(0xf7)],_0x44b61b[_0x3447f8(0x1f8)],_0x44b61b[_0x3447f8(0x1e2)],_0x44b61b['Gauge'],_0x44b61b[_0x3447f8(0x2de)]];function fa(_0x36dd43){const _0x4242b3=_0x3447f8;let {config:_0x5c0f55,onChange:_0x545604,runtime:_0x407b57,tableName:_0x192c96}=_0x36dd43,_0x5b6361=_0x53af8d(Gr),_0x1a27e0=_0x53af8d(_0x255457),[_0x25cf48,_0xda7743]=_0xee90d5(_0x2599aa[_0x4242b3(0x2aa)]),_0x730d61=_0x125177(()=>new _0x3832ea(_0x407b57[_0x4242b3(0x2c4)],{'commit':_0x1339b2=>{const _0x101d2e=_0x4242b3;var _0x2360e7;let _0x582a59=_0x407b57[_0x101d2e(0x2c4)],_0x1b106e=_0x3fd4b5(_0x1339b2,{'series':(_0x2360e7=_0x582a59[_0x101d2e(0x2b0)])==null?void 0x0:_0x2360e7[_0x101d2e(0x283)],'currentChartType':_0x582a59[_0x101d2e(0x13e)],'currentStyle':_0x582a59[_0x101d2e(0xc1)],'currentContext':_0x582a59[_0x101d2e(0x1e3)],'currentDataAggregation':_0x582a59[_0x101d2e(0x219)]});_0x545604({'chart':pa(_0x5c0f55[_0x101d2e(0x1eb)],_0x1b106e)});}}),[_0x5c0f55['chart'],_0x545604,_0x407b57]),_0x1f2d9d=_0x125177(()=>_0x4fc7e8(_0x1016f1[_0x4242b3(0x1ee)](_0x1977eb=>({..._0x1977eb,'label':_0x1a27e0['t'](_a(_0x1977eb[_0x4242b3(0x2ad)]))}))),[_0x1a27e0]);return _0x1fa005(_0x4bde66,{'chartUIService':_0x5b6361,'hostAdapter':_0x730d61,'children':_0x5c238f(_0x4242b3(0x1e8),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x1fa005(_0x283559,{'ariaLabel':_0x1a27e0['t'](_0x4242b3(0x207)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x1a27e0['t'](_0x4242b3(0x169)),'panelId':_0x4242b3(0x1dc),'value':_0x2599aa[_0x4242b3(0x2aa)]},{'label':_0x1a27e0['t'](_0x4242b3(0x2e7)),'panelId':_0x4242b3(0x243),'value':_0x2599aa[_0x4242b3(0x33f)]}],'value':_0x25cf48,'onChange':_0xda7743}),_0x25cf48===_0x2599aa[_0x4242b3(0x2aa)]?_0x1fa005(_0x2a9829,{'id':_0x4242b3(0x1dc),'label':_0x1a27e0['t'](_0x4242b3(0x169)),'children':_0x5c238f('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x1fa005(_0x28e1f3,{'options':_0x1f2d9d}),_0x1fa005(_0x2fc38a,{}),_0x1fa005(_0x57f87a,{}),_0x1fa005(ma,{}),_0x1fa005(_0x2fa3d3,{}),_0x5c238f(_0x4242b3(0x1e8),{'children':[_0x1fa005(_0x36a7b3,{'title':_0x1a27e0['t'](_0x4242b3(0x1ed))}),_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':_0x192c96})]}),_0x1fa005(_0x3a6df3,{'orientationControl':_0x1fa005(_0x10d589,{'size':_0x4242b3(0x11d),'onClick':()=>_0x545604({'chart':{..._0x5c0f55[_0x4242b3(0x1eb)],'orient':_0x5c0f55[_0x4242b3(0x1eb)]['orient']===_0x4242b3(0x2b6)?_0x4242b3(0x362):_0x4242b3(0x2b6)}}),'children':_0x1a27e0['t']('bases-dashboard-ui.chart.common.switchRowColumn')})}),_0x1fa005(_0x20436f,{}),_0x1fa005(_0x4b136e,{'defaultValues':Q[_0x4242b3(0x28e)]}),_0x5c238f(_0x4242b3(0x1e8),{'children':[_0x1fa005(_0x36a7b3,{'title':_0x1a27e0['t']('bases-dashboard-ui.pivot.display')}),_0x1fa005(_0x4b13fc,{'value':_0x5c0f55[_0x4242b3(0x2f2)],'options':[{'value':_0x4242b3(0xf9),'label':_0x1a27e0['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':_0x4242b3(0x1eb),'label':_0x1a27e0['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':_0x4242b3(0x173),'label':_0x1a27e0['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0xa09d39=>{const _0x314da7=_0x4242b3;(_0xa09d39===_0x314da7(0xf9)||_0xa09d39==='chart'||_0xa09d39===_0x314da7(0x173))&&_0x545604({'displayMode':_0xa09d39});}})]})]})}):_0x1fa005(_0x2a9829,{'id':_0x4242b3(0x243),'label':_0x1a27e0['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x1fa005(ha,{})})]})});}function pa(_0x10190f,_0x28156c){const _0x49ea92=_0x3447f8;return{..._0x10190f,'type':_0x28156c[_0x49ea92(0x13e)]??_0x10190f['type'],'style':_0x28156c['style']??_0x10190f[_0x49ea92(0xc1)],'context':_0x28156c['context']??_0x10190f['context'],'dataAggregation':_0x28156c[_0x49ea92(0x219)]??_0x10190f[_0x49ea92(0x219)]};}function ma(){const _0x1050b7=_0x3447f8;let _0x10d189=_0x3d34ba();return _0x1fa005(_0x5103da,{'visible':da[_0x1050b7(0xf2)](_0x39edc1=>!_0x51a8fc[_0x1050b7(0x275)](_0x10d189,_0x39edc1))});}function $(_0x1c06cf){const _0x115ab1=_0x3447f8;return _0x5c238f(_0x8a2ccf,{'id':_0x1c06cf['id'],'children':[_0x1fa005(_0x32883f,{'children':_0x1c06cf[_0x115ab1(0x24a)]}),_0x1fa005(_0x3206aa,{'children':_0x1c06cf['children']})]});}function ha(){const _0x4bde95=_0x3447f8;let _0x305a44=_0x53af8d(_0x255457),_0x18d6be=_0x3d34ba(),_0x28c862=_0x20bafb(),[_0x1f22cc,_0xdeb400]=_0xee90d5(null),_0x15ea75=_0x51a8fc[_0x4bde95(0x275)](_0x18d6be,_0x44b61b[_0x4bde95(0x157)]),_0x364459=_0x18d6be===_0x44b61b[_0x4bde95(0x35a)],_0x1c2aeb=_0x18d6be===_0x44b61b[_0x4bde95(0x32e)],_0x2644ce=_0x18d6be===_0x44b61b[_0x4bde95(0x23c)],_0x6cb5be=_0x51a8fc['baseOn'](_0x18d6be,_0x44b61b['Bubble']),_0x253f25=_0x18d6be===_0x44b61b[_0x4bde95(0x108)],_0x3ce87f=_0x18d6be===_0x44b61b[_0x4bde95(0x3cb)],_0x101ba7=_0x18d6be===_0x44b61b['Pareto'],_0x6c049e=_0x18d6be===_0x44b61b[_0x4bde95(0x27c)],_0x3265e2=_0xe0cb49(_0x18d6be,_0x44db8c[_0x4bde95(0x27f)])&&!_0x6cb5be&&!_0x101ba7,_0x5f52b=ga(_0x18d6be,_0x305a44);return _0x5c238f(_0x11d43d,{'value':_0x1f22cc,'onChange':_0xdeb400,'children':[_0x1fa005($,{'id':_0x2ecbeb['ChartStyle'],'label':_0x305a44['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0x1fa005(_0x20d08d,{'defaultValues':Q[_0x4bde95(0xc1)]})}),_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x2ea)],'label':_0x305a44['t']('bases-dashboard-ui.chart.common.chartAndAxisTitles'),'children':_0x1fa005(_0x245340,{'commitMode':_0x4bde95(0x303),'defaultValues':Q[_0x4bde95(0xbb)]})}),_0x3265e2&&_0x1fa005($,{'id':_0x2ecbeb['Series'],'label':_0x305a44['t'](_0x4bde95(0x21b)),'children':_0x1fa005(_0x33c14c,{'defaultValues':Q[_0x4bde95(0x283)],'NumberFormatField':_0x3220da})}),_0x3ce87f&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x216)],'label':_0x305a44['t'](_0x4bde95(0x3ce)),'children':_0x1fa005(_0x166174,{'defaultValues':Q['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x105ada,target:_0x14fb1d})=>_0x14fb1d===_0x1aea73[_0x4bde95(0x293)]?_0x305a44['t'](_0x4bde95(0x236)):_0x105ada?_0x105ada+'-('+_0x305a44['t']('bases-dashboard-ui.chart.'+(_0x14fb1d===_0x1aea73['Positive']?_0x4bde95(0x38c):'waterfall.negative'))+')':'','NumberFormatField':_0x3220da})}),_0x101ba7&&_0x5c238f(_0x594ef8,{'children':[_0x1fa005($,{'id':_0x2ecbeb['ParetoBarSeries'],'label':_0x305a44['t']('bases-dashboard-ui.chart.section.paretoBar'),'children':_0x1fa005(_0x44a0fb,{'defaultValues':Q[_0x4bde95(0x189)],'NumberFormatField':_0x3220da,'showDataPointEditor':!0x0,'target':_0x4bde95(0xc3)})}),_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x32a)],'label':_0x305a44['t'](_0x4bde95(0x31e)),'children':_0x1fa005(_0x44a0fb,{'defaultValues':Q[_0x4bde95(0x189)],'NumberFormatField':_0x3220da,'showDataPointEditor':!0x1,'target':_0x4bde95(0x3e8)})})]}),_0x15ea75&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x1ce)],'label':_0x305a44['t'](_0x4bde95(0x2e3)),'children':_0x1fa005(_0x4b289c,{'defaultValues':Q[_0x4bde95(0x3f5)],'NumberFormatField':_0x3220da})}),_0x1c2aeb&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x32e)],'label':_0x305a44['t'](_0x4bde95(0xf0)),'children':_0x1fa005(_0x13d7d7,{'defaultValues':Q[_0x4bde95(0x3c0)]})}),_0x364459&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x35a)],'label':_0x305a44['t'](_0x4bde95(0x1cd)),'children':_0x1fa005(_0x1d9e1f,{'defaultValues':Q['radar']})}),_0x2644ce&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x23c)],'label':_0x305a44['t'](_0x4bde95(0x10b)),'children':_0x1fa005(_0x7de25d,{'defaultValues':Q[_0x4bde95(0x306)],'gapControl':_0x4bde95(0x329)})}),_0x6c049e&&_0x1fa005($,{'id':_0x2ecbeb['Heatmap'],'label':_0x305a44['t'](_0x4bde95(0x217)),'children':_0x1fa005(_0x51ee3a,{'defaultValues':Q['heatmap']})}),_0x253f25&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x108)],'label':_0x305a44['t'](_0x4bde95(0x331)),'children':_0x1fa005(_0xa63c30,{'defaultValues':Q[_0x4bde95(0x37d)]})}),_0x2aabdc(_0x18d6be)&&_0x1fa005($,{'id':_0x2ecbeb['LineAndArea'],'label':_0x305a44['t'](_0x4bde95(0x328)),'children':_0x1fa005(_0x171453,{'defaultValues':Q[_0x4bde95(0x133)],'lineStyleControl':_0x4bde95(0x2db)})}),_0xe0cb49(_0x18d6be,_0x44db8c[_0x4bde95(0x2fa)])&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x2fa)],'label':_0x305a44['t'](_0x4bde95(0x2ca)),'children':_0x1fa005(_0x4d3419,{'defaultValues':Q[_0x4bde95(0x3c8)]})}),_0xe0cb49(_0x18d6be,_0x44db8c['Axes'])&&_0x5c238f(_0x594ef8,{'children':[_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x2e4)],'label':_0x305a44['t'](_0x4bde95(0x287)),'children':_0x1fa005(_0x3ee0e8,{'axis':'x','defaultValues':Q[_0x4bde95(0x288)],'NumberFormatField':_0x3220da})}),_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x3d3)],'label':_0x305a44['t']('bases-dashboard-ui.chart.common.verticalAxis'),'children':_0x1fa005(_0x3ee0e8,{'axis':'y','defaultValues':Q[_0x4bde95(0x288)],'NumberFormatField':_0x3220da})}),_0x28c862&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x180)],'label':_0x305a44['t']('bases-dashboard-ui.chart.common.rightVerticalAxis'),'children':_0x1fa005(_0x3ee0e8,{'axis':_0x4bde95(0x307),'defaultValues':Q[_0x4bde95(0x288)],'NumberFormatField':_0x3220da})}),_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x3b7)],'label':_0x305a44['t']('bases-dashboard-ui.chart.section.gridlinesAndTicks'),'children':_0x1fa005(_0x3fd0a7,{'defaultValues':Q[_0x4bde95(0x288)]})})]}),_0xe0cb49(_0x18d6be,_0x44db8c[_0x4bde95(0x409)])&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x409)],'label':_0x305a44['t'](_0x4bde95(0x220)),'children':_0x1fa005(_0x566467,{'defaultValues':Q[_0x4bde95(0x140)]})}),_0x5b26be(_0x18d6be)&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x194)],'label':_0x305a44['t'](_0x4bde95(0x1c3)),'children':_0x1fa005(_0x3c2f68,{'defaultValues':Q[_0x4bde95(0x230)]})}),_0x5f52b&&_0x1fa005($,{'id':_0x5f52b['id'],'label':_0x5f52b['label'],'children':_0x1fa005(_0x2412a5,{})})]});}function ga(_0x400fbf,_0x1557ab){const _0x56b211=_0x3447f8;let _0x572f5c={[_0x44b61b[_0x56b211(0x265)]]:{'id':_0x2ecbeb[_0x56b211(0x265)],'localeKey':_0x56b211(0x267)},[_0x44b61b[_0x56b211(0xf7)]]:{'id':_0x2ecbeb[_0x56b211(0xf7)],'localeKey':'bases-dashboard-ui.chart.section.histogram'},[_0x44b61b[_0x56b211(0x1f8)]]:{'id':_0x2ecbeb[_0x56b211(0x1f8)],'localeKey':_0x56b211(0x2a9)},[_0x44b61b[_0x56b211(0x1e2)]]:{'id':_0x2ecbeb[_0x56b211(0x1e2)],'localeKey':_0x56b211(0x205)},[_0x44b61b[_0x56b211(0x37b)]]:{'id':_0x2ecbeb['Gauge'],'localeKey':_0x56b211(0x305)},[_0x44b61b[_0x56b211(0x2de)]]:{'id':_0x2ecbeb[_0x56b211(0x2de)],'localeKey':_0x56b211(0x354)}}[_0x400fbf];return _0x572f5c?{'id':_0x572f5c['id'],'label':_0x1557ab['t'](_0x572f5c[_0x56b211(0x139)])}:null;}function _a(_0x56985a){const _0x5234db=_0x3447f8;return _0x5234db(0x148)+_0x56985a;}function va({onChange:_0x79863b,onEditData:_0x10b17c,runtime:_0x1867cf,sourceChart:_0x49da74,sourceName:_0x4dce09,widget:_0x265da0}){const _0x3ec2dc=_0x3447f8;let _0x5d295a=_0x53af8d(Gr),_0x301fb9=_0x53af8d(_0x255457),[_0x5c7620,_0x2a47ca]=_0xee90d5(_0x2599aa[_0x3ec2dc(0x2aa)]),_0x58f702=_0x265da0[_0x3ec2dc(0x1eb)]??_0x49da74,_0x108349=_0x125177(()=>new _0x3832ea(_0x1867cf['model'],{'commit':_0x395810=>{const _0xfb41f7=_0x3ec2dc;var _0x1c0a82;let _0x22f5a9=_0x1867cf['model'],_0x302f02=_0x3fd4b5(_0x395810,{'series':(_0x1c0a82=_0x22f5a9['config'])==null?void 0x0:_0x1c0a82['series'],'currentChartType':_0x22f5a9[_0xfb41f7(0x13e)],'currentStyle':_0x22f5a9[_0xfb41f7(0xc1)],'currentContext':_0x22f5a9[_0xfb41f7(0x1e3)],'currentDataAggregation':_0x22f5a9[_0xfb41f7(0x219)]});_0x79863b({..._0x265da0,'chart':pa(_0x58f702,_0x302f02)})[_0xfb41f7(0x308)](()=>void 0x0);}}),[_0x58f702,_0x79863b,_0x1867cf,_0x265da0]),_0x1c83f5=_0x125177(()=>_0x4fc7e8(_0x1016f1[_0x3ec2dc(0x1ee)](_0x185402=>({..._0x185402,'label':_0x301fb9['t'](ya(_0x185402['labelId']))}))),[_0x301fb9]);return _0x1fa005(_0x4bde66,{'chartUIService':_0x5d295a,'hostAdapter':_0x108349,'children':_0x5c238f(_0x3ec2dc(0x1e8),{'data-dashboard-chart-inspector':!0x0,'className':_0x3ec2dc(0x1bd),'children':[_0x1fa005(_0x283559,{'ariaLabel':_0x301fb9['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x3ec2dc(0x302),'items':[{'label':_0x301fb9['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0x3ec2dc(0x318),'value':_0x2599aa[_0x3ec2dc(0x2aa)]},{'label':_0x301fb9['t'](_0x3ec2dc(0x2e7)),'panelId':_0x3ec2dc(0x321),'value':_0x2599aa[_0x3ec2dc(0x33f)]}],'value':_0x5c7620,'onChange':_0x2a47ca}),_0x5c7620===_0x2599aa[_0x3ec2dc(0x2aa)]?_0x1fa005(_0x2a9829,{'id':_0x3ec2dc(0x318),'label':_0x301fb9['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x5c238f('div',{'className':_0x3ec2dc(0x228),'children':[_0x1fa005(_0x28e1f3,{'options':_0x1c83f5}),_0x1fa005(_0x2fc38a,{}),_0x1fa005(_0x57f87a,{}),_0x1fa005(ma,{}),_0x1fa005(_0x2fa3d3,{}),_0x5c238f(_0x3ec2dc(0x1e8),{'children':[_0x1fa005(_0x36a7b3,{'title':_0x301fb9['t'](_0x3ec2dc(0x368))}),_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':_0x4dce09}),_0x1fa005(_0x10d589,{'className':_0x3ec2dc(0x32d),'onClick':_0x10b17c,'children':_0x301fb9['t'](_0x3ec2dc(0xe5))})]})]})}):_0x1fa005(_0x2a9829,{'id':_0x3ec2dc(0x321),'label':_0x301fb9['t'](_0x3ec2dc(0x2e7)),'children':_0x1fa005(ha,{})})]})});}function ya(_0x51d5d4){const _0x58df55=_0x3447f8;return _0x58df55(0x148)+_0x51d5d4;}const ba=[_0x3447f8(0x20a),'number',_0x3447f8(0x277),_0x3447f8(0x39b),'grouped',_0x3447f8(0x3da)];function xa({base:_0x5ccd70,onChange:_0x3c5f73,onSelectBackgroundImage:_0x18ee2b,widget:_0x5af833}){const _0x42c392=_0x3447f8;var _0x5eb1fd;let _0x36b4ce=_0x53af8d(_0x255457),_0x3800a3=_0x53af8d(_0x22d94c),_0x4fc3a1=_0x129d28(()=>_0x3800a3[_0x42c392(0x14a)],_0x3800a3[_0x42c392(0x11c)](),!0x1,[_0x3800a3]),_0x53f8a7=_0x129d28(()=>_0x3800a3['darkMode$'],_0x3800a3[_0x42c392(0x247)],!0x1,[_0x3800a3]),[_0x340c35,_0x355768]=_0xee90d5('data'),[_0x199e52,_0x38117c]=_0xee90d5(!0x1),_0x201447=xr(_0x5af833),_0x5e9bdb=_0x5ccd70[_0x42c392(0x3b6)]()[_0x42c392(0x186)][_0x5af833[_0x42c392(0x154)]],_0xb57d61=_0x5e9bdb==null?void 0x0:_0x5e9bdb[_0x42c392(0x286)][_0x42c392(0x2c9)](_0x2672a3=>_0x5e9bdb[_0x42c392(0x2dc)][_0x2672a3]),_0x1aaae2=_0xb57d61?_0x5e9bdb==null?void 0x0:_0x5e9bdb['views'][_0xb57d61]:void 0x0,_0x143220=_0x5e9bdb&&_0x1aaae2?_0x11a6ff(_0x5ccd70[_0x42c392(0x3b6)](),_0x5e9bdb,_0x1aaae2)[_0x42c392(0x1ee)](_0x55691b=>({..._0x55691b,'current':!0x1})):[],_0x4f24fc=((_0x5eb1fd=_0x5af833['shapeData']['formulaBinding'])==null?void 0x0:_0x5eb1fd[_0x42c392(0x392)])??'',_0x59dd5d=_0x58fab2=>_0x3c5f73(Sr(_0x5af833,_0x58fab2))[_0x42c392(0x308)](()=>void 0x0),_0x47668b=_0x2618f1=>_0x3c5f73({..._0x5af833,'description':_0x2618f1})[_0x42c392(0x308)](()=>void 0x0);return _0x5c238f('div',{'data-dashboard-formula-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x1fa005(_0x1eff91,{'className':'univer-m-3','items':[{'value':_0x42c392(0x279),'label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.data')},{'value':_0x42c392(0xc1),'label':_0x36b4ce['t'](_0x42c392(0xf1))}],'value':_0x340c35,'onChange':_0x355768}),_0x1fa005(_0x42c392(0x1e8),{'className':_0x42c392(0x105),'children':_0x340c35===_0x42c392(0x279)?_0x5c238f(_0x42c392(0x1e8),{'className':_0x42c392(0x1a8),'children':[_0x1fa005(Sa,{'label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.description'),'children':_0x1fa005(_0x2647d7,{'value':_0x5af833[_0x42c392(0x36b)]??_0x5af833[_0x42c392(0x239)]??'','onChange':_0x47668b,'onBlur':_0x5b5421=>_0x47668b(_0x5b5421[_0x42c392(0x3ea)][_0x42c392(0x2c2)])})}),_0x1fa005(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x368)),'children':_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':(_0x5e9bdb==null?void 0x0:_0x5e9bdb[_0x42c392(0x2cd)])??_0x36b4ce['t'](_0x42c392(0xe2))})}),_0x5c238f(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x257)),'children':[_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':_0x3ae876(_0x4f24fc,_0x143220)}),_0x1fa005(_0x10d589,{'className':_0x42c392(0x32d),'onClick':()=>_0x38117c(!0x0),'children':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.editFormula')})]})]}):_0x5c238f(_0x42c392(0x1e8),{'className':_0x42c392(0x1a8),'children':[_0x1fa005(_0x2d27c8,{'emptyLabel':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x36b4ce['t'](_0x42c392(0x19f)),'pickerFallbackValue':_0x53f8a7?_0x4fc3a1[_0x42c392(0x3fe)][0x384]:_0x4fc3a1[_0x42c392(0x3fe)][0x0],'resetLabel':_0x36b4ce['t'](_0x42c392(0x1e0)),'value':_0x201447[_0x42c392(0x134)]??null,'onChange':_0x259e62=>_0x59dd5d({'backgroundColor':_0x259e62??void 0x0})}),_0x5c238f(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x22e)),'children':[_0x5c238f(_0x42c392(0x1e8),{'className':_0x42c392(0x3d4),'children':[_0x5c238f(_0x10d589,{'className':_0x42c392(0x1cc),'onClick':()=>{const _0x5d51c7=_0x42c392;_0x18ee2b()[_0x5d51c7(0x401)](_0x57fea8=>{const _0x23eaf4=_0x5d51c7;if(_0x57fea8){var _0x2065ab;return _0x59dd5d({'backgroundImage':{..._0x57fea8,'fit':((_0x2065ab=_0x201447[_0x23eaf4(0x294)])==null?void 0x0:_0x2065ab['fit'])??'cover'}});}})[_0x5d51c7(0x308)](()=>void 0x0);},'children':[_0x1fa005(_0x34ddb8,{}),_0x201447[_0x42c392(0x294)]?_0x36b4ce['t'](_0x42c392(0x3fd)):_0x36b4ce['t'](_0x42c392(0x3df))]}),_0x201447[_0x42c392(0x294)]&&_0x1fa005(_0x10d589,{'aria-label':_0x36b4ce['t'](_0x42c392(0x153)),'title':_0x36b4ce['t'](_0x42c392(0x153)),'onClick':()=>_0x59dd5d({'backgroundImage':void 0x0}),'children':_0x1fa005(_0x306b68,{})})]}),_0x201447[_0x42c392(0x294)]&&_0x1fa005(_0x1eff91,{'className':_0x42c392(0x111),'items':[{'value':_0x42c392(0x285),'label':_0x36b4ce['t'](_0x42c392(0x1ad))},{'value':'contain','label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.contain')}],'value':_0x201447[_0x42c392(0x294)][_0x42c392(0x160)],'onChange':_0x5a0194=>_0x59dd5d({'backgroundImage':_0x201447[_0x42c392(0x294)]?{..._0x201447[_0x42c392(0x294)],'fit':_0x5a0194}:void 0x0})})]}),_0x1fa005(_0x2d27c8,{'emptyLabel':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x36b4ce['t'](_0x42c392(0x26d)),'pickerFallbackValue':_0x53f8a7?_0x4fc3a1[_0x42c392(0x3fe)][0x32]:_0x4fc3a1['gray'][0x3e8],'resetLabel':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x201447[_0x42c392(0xef)]??null,'onChange':_0x2d740e=>_0x59dd5d({'textColor':_0x2d740e??void 0x0})}),_0x1fa005(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x349)),'children':_0x1fa005(_0x1eff91,{'items':[{'value':_0x42c392(0x1b4),'label':_0x36b4ce['t'](_0x42c392(0x165))},{'value':_0x42c392(0x1e4),'label':_0x36b4ce['t'](_0x42c392(0x22d))},{'value':_0x42c392(0x314),'label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x201447[_0x42c392(0x218)],'onChange':_0x3cadde=>_0x59dd5d({'alignment':_0x3cadde})})}),_0x5c238f(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x3c5)),'children':[_0x1fa005(_0x1eff91,{'items':[{'value':'auto','label':_0x36b4ce['t'](_0x42c392(0x162))},{'value':_0x42c392(0x1b1),'label':_0x36b4ce['t'](_0x42c392(0x3d5))}],'value':_0x201447[_0x42c392(0x38a)],'onChange':_0x495cbf=>_0x59dd5d({'fontSizeMode':_0x495cbf})}),_0x201447[_0x42c392(0x38a)]==='custom'&&_0x1fa005(_0x499d19,{'className':'univer-mt-2','min':0xc,'max':0x78,'value':_0x201447['fontSize'],'onChange':_0x1f8e27=>_0x59dd5d({'fontSize':_0x1f8e27??0x28,'fontSizeMode':'custom'})})]}),_0x1fa005(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x20c)),'children':_0x1fa005(_0x4b13fc,{'value':_0x201447[_0x42c392(0x235)],'options':[{'value':'general','label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.general')},{'value':_0x42c392(0x30d),'label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.number')},{'value':_0x42c392(0x277),'label':_0x36b4ce['t'](_0x42c392(0x260))},{'value':'currency','label':_0x36b4ce['t'](_0x42c392(0x193))},{'value':'grouped','label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':_0x42c392(0x3da),'label':_0x36b4ce['t'](_0x42c392(0x32b))}],'onChange':_0x37bd2b=>{const _0x4a3b47=_0x42c392;let _0x36abd8=ba[_0x4a3b47(0x2c9)](_0x1b819f=>_0x1b819f===_0x37bd2b);_0x36abd8&&_0x59dd5d({'numberFormat':_0x36abd8});}})}),_0x201447[_0x42c392(0x235)]===_0x42c392(0x39b)&&_0x1fa005(Sa,{'label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x1fa005(_0x2647d7,{'value':_0x201447[_0x42c392(0x39b)],'onChange':_0x570e92=>_0x59dd5d({'currency':_0x570e92[_0x42c392(0x121)](0x0,0x3)[_0x42c392(0x390)]()})})}),_0x201447['numberFormat']!=='general'&&_0x1fa005(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x12c)),'children':_0x1fa005(_0x499d19,{'min':0x0,'max':0x8,'value':_0x201447['decimalPlaces'],'onChange':_0x10bed3=>_0x59dd5d({'decimalPlaces':_0x10bed3??0x0})})})]})}),_0x199e52&&_0x1fa005(_0x1ab529,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1fa005(_0x1d7a56,{'tables':_0x143220,'formula':_0x3ae876(_0x4f24fc,_0x143220),'onCancel':()=>_0x38117c(!0x1),'onSave':_0x4a8961=>{const _0x29c9ed=_0x42c392;let _0x1de046=_0x5af833[_0x29c9ed(0x100)][_0x29c9ed(0x23f)]??{'formula':''};return _0x3c5f73({..._0x5af833,'shapeData':{..._0x5af833[_0x29c9ed(0x100)],'formulaBinding':{..._0x1de046,'formula':_0x3949ea(_0x4a8961,_0x143220)}}})[_0x29c9ed(0x401)](()=>_0x38117c(!0x1))['catch'](()=>void 0x0);}})})]});}function Sa({children:_0x186c59,label:_0x1a790b}){const _0x16f007=_0x3447f8;return _0x5c238f(_0x16f007(0x1e8),{'role':_0x16f007(0x21e),'aria-label':_0x1a790b,'className':_0x16f007(0x393),'children':[_0x1fa005('span',{'children':_0x1a790b}),_0x186c59]});}const Ca={[_0x411cb8['IS']]:_0x3447f8(0x1e1),[_0x411cb8[_0x3447f8(0x3b0)]]:_0x3447f8(0x11e),[_0x411cb8[_0x3447f8(0x269)]]:_0x3447f8(0x254),[_0x411cb8[_0x3447f8(0x2e2)]]:'bases-dashboard-ui.operators.notContains',[_0x411cb8[_0x3447f8(0x34e)]]:_0x3447f8(0x356),[_0x411cb8[_0x3447f8(0x3c7)]]:_0x3447f8(0x34a),[_0x411cb8[_0x3447f8(0x16e)]]:_0x3447f8(0x2ed),[_0x411cb8['GREATER_THAN_OR_EQUAL']]:_0x3447f8(0x1fd),[_0x411cb8[_0x3447f8(0x249)]]:_0x3447f8(0x402),[_0x411cb8[_0x3447f8(0x1d0)]]:'bases-dashboard-ui.operators.lessThanOrEqual',[_0x411cb8[_0x3447f8(0x26e)]]:_0x3447f8(0x1e7),[_0x411cb8[_0x3447f8(0x24c)]]:_0x3447f8(0xd4)};function wa({disabled:_0x4beb41,fields:_0x32d639,filter:_0x244ebb,onChange:_0x518356}){const _0x5dee62=_0x3447f8;let _0x5026ff=_0x53af8d(_0x255457),_0x4b4523=(_0x244ebb==null?void 0x0:_0x244ebb[_0x5dee62(0x1da)])??[];return _0x4b4523['length']?_0x1fa005(_0x5dee62(0x1e8),{'className':_0x5dee62(0x115),'children':_0x4b4523['map']((_0x3eab71,_0x610825)=>{const _0xd39a80=_0x5dee62;let _0x9d315f=_0x32d639[_0xd39a80(0x2c9)](_0x23e2ce=>_0x23e2ce['id']===_0x3eab71['fieldId']);return _0x5c238f(_0xd39a80(0x1e8),{'className':_0xd39a80(0x1b6),'children':[_0x5c238f(_0xd39a80(0x1e8),{'className':_0xd39a80(0xd5),'children':[_0x1fa005(_0xd39a80(0x40a),{'className':_0xd39a80(0x124),'children':(_0x9d315f==null?void 0x0:_0x9d315f[_0xd39a80(0x2cd)])??_0x3eab71[_0xd39a80(0x1e5)]}),_0x1fa005('span',{'className':_0xd39a80(0x1f6),'children':_0x5026ff['t'](Ca[_0x3eab71['operator']])})]}),Ma(_0x3eab71['operator'])&&_0x1fa005(Ea,{'disabled':_0x4beb41,'field':_0x9d315f,'value':_0x3eab71['operand'],'onChange':_0x2ed01d=>_0x518356(ka(_0x244ebb,_0x610825,{'operand':_0x2ed01d}))})]},Fa(_0x4b4523,_0x3eab71,_0x610825));})}):_0x5c238f(_0x5dee62(0x1e8),{'className':'univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','children':[_0x1fa005(_0x48629d,{'className':'univer-mx-auto\x20univer-size-6'}),_0x1fa005(_0x5dee62(0x40a),{'className':'univer-text-sm','children':_0x5026ff['t'](_0x5dee62(0x253))})]});}function Ta({fields:_0x34303e,filter:_0x226ffd,onChange:_0x5e01c4,onClear:_0x5e4d78}){const _0x3eabcd=_0x3447f8;let _0x534e75=_0x53af8d(_0x255457),_0x3024b1=(_0x226ffd==null?void 0x0:_0x226ffd[_0x3eabcd(0x1da)])??[];return _0x5c238f(_0x3eabcd(0x1e8),{'data-dashboard-filter-inspector':!0x0,'className':_0x3eabcd(0x248),'children':[_0x3024b1[_0x3eabcd(0x1ee)]((_0x17dc86,_0x57a7b0)=>{const _0x261746=_0x3eabcd;let _0x4966a2=_0x34303e['find'](_0x36f84b=>_0x36f84b['id']===_0x17dc86[_0x261746(0x1e5)])??_0x34303e[0x0],_0x245349=Aa(_0x4966a2);return _0x5c238f(_0x261746(0x336),{'className':_0x261746(0x313),'children':[_0x5c238f(_0x261746(0x1e8),{'className':_0x261746(0x1d4),'children':[_0x1fa005(_0x4b13fc,{'value':_0x17dc86[_0x261746(0x1e5)],'options':_0x34303e[_0x261746(0x1ee)](_0xc9799a=>({'value':_0xc9799a['id'],'label':_0xc9799a[_0x261746(0x2cd)]})),'onChange':_0x4966c0=>{let _0x13c455=_0x34303e['find'](_0x4914aa=>_0x4914aa['id']===_0x4966c0);if(!_0x13c455)return;let _0x2d48c7=Aa(_0x13c455)[0x0];_0x5e01c4(ka(_0x226ffd,_0x57a7b0,Oa(_0x13c455,_0x2d48c7)));}}),_0x1fa005(_0x10d589,{'type':_0x261746(0x3b9),'variant':_0x261746(0x3ca),'aria-label':_0x534e75['t'](_0x261746(0x2da)),'className':_0x261746(0x3b2),'onClick':()=>_0x5e01c4(Da(_0x226ffd,_0x3024b1['filter']((_0x5f2b2f,_0x450624)=>_0x450624!==_0x57a7b0))),'children':_0x1fa005(_0x54b54f,{})})]}),_0x1fa005(_0x4b13fc,{'value':_0x17dc86[_0x261746(0x17b)],'options':_0x245349[_0x261746(0x1ee)](_0x212f80=>({'value':_0x212f80,'label':_0x534e75['t'](Ca[_0x212f80])})),'onChange':_0x4479b2=>{let _0x5397f4=_0x245349['find'](_0x23b817=>_0x23b817===_0x4479b2);_0x5397f4&&_0x5e01c4(ka(_0x226ffd,_0x57a7b0,{'operator':_0x5397f4,'operand':ja(_0x4966a2)}));}}),Ma(_0x17dc86[_0x261746(0x17b)])&&_0x1fa005(Ea,{'field':_0x4966a2,'value':_0x17dc86[_0x261746(0x366)],'onChange':_0x2dac04=>_0x5e01c4(ka(_0x226ffd,_0x57a7b0,{'operand':_0x2dac04}))})]},Fa(_0x3024b1,_0x17dc86,_0x57a7b0));}),_0x5c238f(_0x10d589,{'type':_0x3eabcd(0x3b9),'variant':_0x3eabcd(0x3ca),'className':'univer-w-full\x20univer-justify-start\x20univer-text-primary-600','disabled':!_0x34303e[_0x3eabcd(0x2c8)],'onClick':()=>{let _0x3b93=_0x34303e[0x0];if(!_0x3b93)return;let _0x25bce7=Aa(_0x3b93)[0x0];_0x5e01c4(Da(_0x226ffd,[..._0x3024b1,Oa(_0x3b93,_0x25bce7)]));},'children':[_0x1fa005(_0x34ddb8,{}),_0x534e75['t'](_0x3eabcd(0x202))]}),_0x3024b1[_0x3eabcd(0x2c8)]>0x0&&_0x1fa005(_0x10d589,{'type':_0x3eabcd(0x3b9),'variant':_0x3eabcd(0x3ca),'className':_0x3eabcd(0x3af),'onClick':_0x5e4d78,'children':_0x534e75['t'](_0x3eabcd(0x20b))})]});}function Ea({disabled:_0x5d7749,field:_0x2cf3b1,onChange:_0x558739,value:_0x34df50}){const _0x3bc264=_0x3447f8;let _0x58ef60=_0x53af8d(_0x255457),_0x5719c8=_0x2cf3b1==null?void 0x0:_0x2cf3b1[_0x3bc264(0x1b9)];if(_0x5719c8===_0x2940a8[_0x3bc264(0x1c9)]){let _0x4c9b8d=_0x34df50===!0x0||_0x34df50===_0x3bc264(0x2d2);return _0x5c238f(_0x10d589,{'type':_0x3bc264(0x3b9),'variant':'default','disabled':_0x5d7749,'className':_0x3bc264(0x299),'onClick':()=>_0x558739(!_0x4c9b8d),'children':[_0x1fa005(_0x22d09c,{'checked':_0x4c9b8d,'disabled':_0x5d7749,'onChange':()=>void 0x0}),_0x4c9b8d?_0x58ef60['t']('bases-dashboard-ui.dashboardInspector.checked'):_0x58ef60['t']('bases-dashboard-ui.dashboardInspector.unchecked')]});}return Ia(_0x5719c8)?_0x5d7749?_0x1fa005(_0x10d589,{'type':_0x3bc264(0x3b9),'variant':_0x3bc264(0x36e),'className':'univer-w-full','disabled':!0x0,'children':_0xa2fcf(_0x34df50==null||_0x34df50===''?void 0x0:String(_0x34df50))[_0x3bc264(0x11b)](_0x3bc264(0x385))}):_0x1fa005(_0x27fb91,{'className':_0x3bc264(0x3af),'value':_0xa2fcf(_0x34df50==null||_0x34df50===''?void 0x0:String(_0x34df50))['toDate'](),'onValueChange':_0x5e5257=>_0x558739(_0xa2fcf(_0x5e5257)[_0x3bc264(0x11b)](_0x3bc264(0x385)))}):Ra(_0x2cf3b1)?_0x1fa005(_0x57fab8,{'className':_0x3bc264(0x3af),'disabled':_0x5d7749,'value':Array[_0x3bc264(0x399)](_0x34df50)?_0x34df50[_0x3bc264(0x1ee)](String):[],'options':Na(_0x2cf3b1),'onChange':_0x558739}):_0x5719c8===_0x2940a8[_0x3bc264(0xc2)]||_0x5719c8===_0x2940a8[_0x3bc264(0x2c5)]||_0x5719c8===_0x2940a8['Person']?_0x1fa005(_0x4b13fc,{'className':_0x3bc264(0x3af),'disabled':_0x5d7749,'value':String(_0x34df50??''),'options':[{'value':'','label':_0x58ef60['t'](_0x3bc264(0x1aa))},...Na(_0x2cf3b1)],'onChange':_0x558739}):La(_0x5719c8)?_0x1fa005(_0x499d19,{'className':_0x3bc264(0x3af),'allowEmpty':!0x0,'disabled':_0x5d7749,'value':Number['isFinite'](Number(_0x34df50))?Number(_0x34df50):null,'onChange':_0x2df900=>_0x558739(_0x2df900??'')}):_0x1fa005(_0x2647d7,{'disabled':_0x5d7749,'value':String(_0x34df50??''),'placeholder':_0x58ef60['t'](_0x3bc264(0x3e1)),'onChange':_0x558739});}function Da(_0x39cc50,_0x2f3e09){return{'conjunction':(_0x39cc50==null?void 0x0:_0x39cc50['conjunction'])??_0x3a6b1d['AND'],'conditions':_0x2f3e09};}function Oa(_0x165ff6,_0x35238d){return Ma(_0x35238d)?{'fieldId':_0x165ff6['id'],'operator':_0x35238d,'operand':ja(_0x165ff6)}:{'fieldId':_0x165ff6['id'],'operator':_0x35238d};}function ka(_0x338703,_0x43b4f7,_0x5903d5){const _0x5d5498=_0x3447f8;return Da(_0x338703,((_0x338703==null?void 0x0:_0x338703[_0x5d5498(0x1da)])??[])[_0x5d5498(0x1ee)]((_0x55bdc6,_0x3b6dde)=>_0x3b6dde===_0x43b4f7?{..._0x55bdc6,..._0x5903d5}:_0x55bdc6));}function Aa(_0x2602c2){const _0x8ba18c=_0x3447f8;let _0x1e73b1=[_0x411cb8[_0x8ba18c(0x34e)],_0x411cb8[_0x8ba18c(0x3c7)]];switch(_0x2602c2==null?void 0x0:_0x2602c2[_0x8ba18c(0x1b9)]){case _0x2940a8['Number']:case _0x2940a8[_0x8ba18c(0x18d)]:case _0x2940a8[_0x8ba18c(0x304)]:case _0x2940a8[_0x8ba18c(0x3b8)]:return[_0x411cb8['IS'],_0x411cb8[_0x8ba18c(0x3b0)],_0x411cb8[_0x8ba18c(0x16e)],_0x411cb8['LESS_THAN'],..._0x1e73b1];case _0x2940a8[_0x8ba18c(0x292)]:case _0x2940a8[_0x8ba18c(0x198)]:case _0x2940a8[_0x8ba18c(0x225)]:return[_0x411cb8['IS'],_0x411cb8[_0x8ba18c(0x3b0)],_0x411cb8['BEFORE'],_0x411cb8[_0x8ba18c(0x24c)],..._0x1e73b1];case _0x2940a8[_0x8ba18c(0x1c9)]:return[_0x411cb8['IS'],_0x411cb8[_0x8ba18c(0x3b0)]];default:return[_0x411cb8['IS'],_0x411cb8[_0x8ba18c(0x3b0)],_0x411cb8['CONTAINS'],_0x411cb8[_0x8ba18c(0x2e2)],..._0x1e73b1];}}function ja(_0x3a1c7f){const _0x4bb26a=_0x3447f8;return _0x3a1c7f?_0x3a1c7f[_0x4bb26a(0x1b9)]===_0x2940a8[_0x4bb26a(0x1c9)]?!0x1:Ia(_0x3a1c7f['type'])?_0xa2fcf()[_0x4bb26a(0x11b)](_0x4bb26a(0x385)):Ra(_0x3a1c7f)?[]:'':'';}function Ma(_0x275fda){const _0x5915ac=_0x3447f8;return _0x275fda!==_0x411cb8['IS_EMPTY']&&_0x275fda!==_0x411cb8[_0x5915ac(0x3c7)];}function Na(_0x31c335){const _0x27d941=_0x3447f8;var _0x17c72e;return(Array[_0x27d941(0x399)](_0x31c335==null||(_0x17c72e=_0x31c335[_0x27d941(0x2b0)])==null?void 0x0:_0x17c72e[_0x27d941(0x326)])?_0x31c335[_0x27d941(0x2b0)]['options']:[])['map']((_0x36021a,_0x27258b)=>{const _0x518b09=_0x27d941;if(typeof _0x36021a==_0x518b09(0x127))return{'label':_0x36021a,'value':_0x36021a};if(!Pa(_0x36021a))return{'label':String(_0x27258b+0x1),'value':String(_0x27258b+0x1)};let _0x34a195=_0x36021a,_0x2bf994=String(_0x34a195[_0x518b09(0x2cd)]??_0x34a195['id']??_0x27258b+0x1),_0x3dc11b=String(_0x34a195['id']??_0x2bf994);return{'label':_0x2bf994,'value':/^opt-\d+$/[_0x518b09(0x3a7)](_0x3dc11b)?_0x2bf994:_0x3dc11b};});}function Pa(_0x51988b){const _0x4d06dd=_0x3447f8;return typeof _0x51988b==_0x4d06dd(0x2f1)&&!!_0x51988b;}function Fa(_0x5c2157,_0x32dc5d,_0x2e9c47){const _0x86e735=_0x3447f8;let _0x290e61=JSON[_0x86e735(0x1d3)](_0x32dc5d);return _0x290e61+'-'+_0x5c2157[_0x86e735(0x121)](0x0,_0x2e9c47)[_0x86e735(0x14f)](_0xf29f3=>JSON[_0x86e735(0x1d3)](_0xf29f3)===_0x290e61)[_0x86e735(0x2c8)];}function Ia(_0x58fef1){const _0x81e77=_0x3447f8;return _0x58fef1===_0x2940a8[_0x81e77(0x292)]||_0x58fef1===_0x2940a8[_0x81e77(0x198)]||_0x58fef1===_0x2940a8[_0x81e77(0x225)];}function La(_0x1dd8d4){const _0x559e70=_0x3447f8;return _0x1dd8d4===_0x2940a8[_0x559e70(0x3c9)]||_0x1dd8d4===_0x2940a8[_0x559e70(0x18d)]||_0x1dd8d4===_0x2940a8[_0x559e70(0x304)]||_0x1dd8d4===_0x2940a8[_0x559e70(0x3b8)];}function Ra(_0x3e3818){const _0x56939a=_0x3447f8;var _0x300092;return(_0x3e3818==null?void 0x0:_0x3e3818['type'])===_0x2940a8[_0x56939a(0x24f)]||(_0x3e3818==null?void 0x0:_0x3e3818[_0x56939a(0x1b9)])===_0x2940a8[_0x56939a(0x2c5)]||(_0x3e3818==null?void 0x0:_0x3e3818[_0x56939a(0x1b9)])===_0x2940a8[_0x56939a(0x29c)]&&((_0x300092=_0x3e3818[_0x56939a(0x2b0)])==null?void 0x0:_0x300092[_0x56939a(0x174)])===!0x0;}function za({base:_0x310c08,chartRuntime:_0x500cb2,onChange:_0x350866,onClose:_0x3eea7e,onSelectBackgroundImage:_0x5b3e30,onSelectImage:_0x56bf07,unitId:_0x50ea32,widget:_0x255711}){const _0x3f2a09=_0x3447f8;let _0x2a3adc=_0x53af8d(_0x1ec317),_0x39be28=_0x53af8d(_0x255457),_0x26dadb=_0x310c08['getSnapshot'](),_0x784372=_0x3f2a09(0x154)in _0x255711?_0x26dadb[_0x3f2a09(0x186)][_0x255711[_0x3f2a09(0x154)]]:void 0x0,_0x143071=_0x255711[_0x3f2a09(0x1b9)]===_0x28a714[_0x3f2a09(0x3ee)]?_0x784372==null?void 0x0:_0x784372[_0x3f2a09(0x2dc)][_0x255711[_0x3f2a09(0x2e1)]]:void 0x0,_0x508d99=_0x39be28['t'](Ka(_0x255711));return _0x5c238f(_0x3f2a09(0x268),{'data-dashboard-inspector':!0x0,'className':'univer-flex\x20univer-h-full\x20univer-w-[380px]\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x5c238f(_0x3f2a09(0x10f),{'className':_0x3f2a09(0x1bc),'children':[_0x1fa005('h3',{'className':_0x3f2a09(0x232),'children':_0x508d99}),_0x1fa005(_0x10d589,{'type':'button','size':_0x3f2a09(0x11d),'variant':_0x3f2a09(0x3ca),'aria-label':_0x39be28['t'](_0x3f2a09(0x316)),'onClick':_0x3eea7e,'children':_0x1fa005(_0x54b54f,{})})]}),_0x255711['type']===_0x28a714['PivotChart']&&(Ga(_0x143071)&&_0x500cb2?_0x1fa005(va,{'runtime':_0x500cb2,'sourceChart':_0x143071[_0x3f2a09(0x2b0)]['chart'],'sourceName':((_0x784372==null?void 0x0:_0x784372['name'])??'')+_0x3f2a09(0x334)+_0x143071['name'],'widget':_0x255711,'onChange':_0x350866,'onEditData':()=>{const _0x224d4d=_0x3f2a09;_0x2a3adc[_0x224d4d(0x2be)](_0xe74b73['id'],{'unitId':_0x50ea32,'tableId':_0x255711['tableId'],'viewId':_0x255711[_0x224d4d(0x2e1)]})['catch'](()=>void 0x0);}}):_0x1fa005(Ua,{'message':Ga(_0x143071)?_0x39be28['t'](_0x3f2a09(0x21c)):_0x39be28['t'](_0x3f2a09(0xe2))})),_0x255711['type']===_0x28a714['FormulaShape']&&_0x1fa005(xa,{'base':_0x310c08,'widget':_0x255711,'onChange':_0x350866,'onSelectBackgroundImage':_0x5b3e30}),_0x255711[_0x3f2a09(0x1b9)]===_0x28a714[_0x3f2a09(0x2a5)]&&_0x1fa005(Va,{'base':_0x310c08,'onChange':_0x350866,'widget':_0x255711}),_0x255711[_0x3f2a09(0x1b9)]===_0x28a714[_0x3f2a09(0x2d4)]&&_0x1fa005(Ha,{'onChange':_0x350866,'widget':_0x255711}),_0x255711[_0x3f2a09(0x1b9)]===_0x28a714[_0x3f2a09(0x341)]&&_0x1fa005(Ba,{'onChange':_0x350866,'onSelectImage':_0x56bf07,'widget':_0x255711})]});}function Ba({onChange:_0x2d1b42,onSelectImage:_0x4e29e3,widget:_0xaf5c8e}){const _0x2532ce=_0x3447f8;let _0x5ad1cd=_0x53af8d(_0x255457);return _0x5c238f(_0x2532ce(0x1e8),{'className':_0x2532ce(0x175),'children':[_0x5c238f(_0x10d589,{'className':'univer-w-full','onClick':()=>_0x4e29e3()[_0x2532ce(0x401)](_0x4af1c6=>_0x4af1c6&&_0x2d1b42({..._0xaf5c8e,'source':_0x4af1c6[_0x2532ce(0x2c6)],'sourceType':_0x4af1c6[_0x2532ce(0xd9)],'alt':_0x4af1c6['name']}))['catch'](()=>void 0x0),'children':[_0x1fa005(_0x34ddb8,{}),_0x5ad1cd['t'](_0x2532ce(0x3fd))]}),_0x5c238f(_0x2532ce(0x24a),{'className':_0x2532ce(0x393),'children':[_0x1fa005('span',{'children':_0x5ad1cd['t'](_0x2532ce(0x22e))}),_0x1fa005(_0x1eff91,{'items':[{'value':'cover','label':_0x5ad1cd['t'](_0x2532ce(0x1ad))},{'value':_0x2532ce(0x2af),'label':_0x5ad1cd['t']('bases-dashboard-ui.dashboardInspector.repeat')},{'value':_0x2532ce(0x3cf),'label':_0x5ad1cd['t'](_0x2532ce(0x170))}],'value':_0xaf5c8e[_0x2532ce(0x2f2)]??_0x2532ce(0x285),'onChange':_0x1ea6b9=>_0x2d1b42({..._0xaf5c8e,'displayMode':_0x1ea6b9})['catch'](()=>void 0x0)})]})]});}function Va({base:_0x39ce21,onChange:_0x4b2bf8,widget:_0x211fc1}){const _0x228d63=_0x3447f8;let _0x309b98=_0x39ce21[_0x228d63(0x3b6)]()[_0x228d63(0x186)][_0x211fc1[_0x228d63(0x154)]],_0x5ef447=_0x309b98==null?void 0x0:_0x309b98[_0x228d63(0x286)][_0x228d63(0x2c9)](_0x80e87=>_0x309b98[_0x228d63(0x2dc)][_0x80e87]),_0x498eeb=_0x5ef447?_0x309b98==null?void 0x0:_0x309b98[_0x228d63(0x2dc)][_0x5ef447]:void 0x0,_0x581247=_0x309b98&&_0x498eeb?_0x295488(_0x309b98,_0x498eeb):[];return _0x1fa005(Ta,{'fields':_0x581247,'filter':_0x211fc1[_0x228d63(0x14f)],'onChange':_0x546395=>_0x4b2bf8({..._0x211fc1,'filter':_0x546395})[_0x228d63(0x308)](()=>void 0x0),'onClear':()=>_0x4b2bf8({..._0x211fc1,'filter':null})['catch'](()=>void 0x0)});}function Ha({onChange:_0x3efe48,widget:_0x344995}){const _0x131826=_0x3447f8;let _0x58c9d6=_0x53af8d(_0x255457),_0x2c57b5=_0x53af8d(_0x22d94c),_0x42e0ab=_0x129d28(()=>_0x2c57b5[_0x131826(0x14a)],_0x2c57b5[_0x131826(0x11c)](),!0x1,[_0x2c57b5]),_0x2356c0=Br(_0x344995),_0x2da4e6=_0x4ca295=>_0x3efe48({..._0x344995,'appearance':{..._0x2356c0,..._0x4ca295}})[_0x131826(0x308)](()=>void 0x0);return _0x5c238f('div',{'className':_0x131826(0x142),'children':[_0x1fa005(_0x539ea5,{'defaultValue':Vr(_0x344995[_0x131826(0x339)]),'rows':0x8,'onBlur':_0x469d1f=>_0x3efe48({..._0x344995,'document':Hr(_0x344995[_0x131826(0x339)],_0x469d1f[_0x131826(0x3ea)][_0x131826(0x2c2)])})[_0x131826(0x308)](()=>void 0x0)}),_0x1fa005(_0x2d27c8,{'emptyLabel':_0x58c9d6['t'](_0x131826(0x19f)),'label':_0x58c9d6['t'](_0x131826(0x19f)),'pickerFallbackValue':_0x42e0ab[_0x131826(0x3fe)][0x0],'resetLabel':_0x58c9d6['t'](_0x131826(0x1e0)),'value':_0x2356c0[_0x131826(0x134)]??null,'onChange':_0x2b1441=>_0x2da4e6({'backgroundColor':_0x2b1441??void 0x0})}),_0x1fa005(_0x2d27c8,{'emptyLabel':_0x58c9d6['t'](_0x131826(0x26d)),'label':_0x58c9d6['t'](_0x131826(0x26d)),'pickerFallbackValue':_0x42e0ab[_0x131826(0x3fe)][0x3e8],'resetLabel':_0x58c9d6['t'](_0x131826(0x1e0)),'value':_0x2356c0['textColor']??null,'onChange':_0x24d7fe=>_0x2da4e6({'textColor':_0x24d7fe??void 0x0})}),_0x1fa005(Wa,{'label':_0x58c9d6['t'](_0x131826(0x349)),'children':_0x1fa005(_0x1eff91,{'items':[{'value':_0x131826(0x1b4),'label':_0x58c9d6['t'](_0x131826(0x165))},{'value':_0x131826(0x1e4),'label':_0x58c9d6['t'](_0x131826(0x22d))},{'value':_0x131826(0x314),'label':_0x58c9d6['t'](_0x131826(0x130))}],'value':_0x2356c0[_0x131826(0x218)],'onChange':_0x534867=>_0x2da4e6({'alignment':_0x534867})})}),_0x5c238f(Wa,{'label':_0x58c9d6['t'](_0x131826(0x3c5)),'children':[_0x1fa005(_0x1eff91,{'items':[{'value':_0x131826(0x195),'label':_0x58c9d6['t'](_0x131826(0x162))},{'value':_0x131826(0x1b1),'label':_0x58c9d6['t'](_0x131826(0x3d5))}],'value':_0x2356c0[_0x131826(0x38a)],'onChange':_0x3a30d2=>_0x2da4e6({'fontSizeMode':_0x3a30d2})}),_0x2356c0[_0x131826(0x38a)]===_0x131826(0x1b1)&&_0x1fa005(_0x499d19,{'className':_0x131826(0x111),'min':0xa,'max':0x78,'value':_0x2356c0[_0x131826(0x1ae)],'onChange':_0x7bfbcc=>_0x2da4e6({'fontSize':_0x7bfbcc??0x12,'fontSizeMode':_0x131826(0x1b1)})})]})]});}function Ua({message:_0x35a4c2}){const _0x1e39d9=_0x3447f8;return _0x1fa005(_0x1e39d9(0x1e8),{'className':_0x1e39d9(0x35e),'children':_0x35a4c2});}function Wa({children:_0x2a2cb8,label:_0xb664d0}){const _0x257831=_0x3447f8;return _0x5c238f(_0x257831(0x1e8),{'role':'group','aria-':!0x0,'className':_0x257831(0x393),'children':[_0x1fa005(_0x257831(0x40a),{'children':_0xb664d0}),_0x2a2cb8]});}function Ga(_0x22860c){const _0x42a4e9=_0x3447f8;return(_0x22860c==null?void 0x0:_0x22860c[_0x42a4e9(0x1b9)])===_0x4da0de[_0x42a4e9(0x1ec)]&&typeof _0x22860c[_0x42a4e9(0x2b0)]==_0x42a4e9(0x2f1)&&_0x22860c['config']!==null&&_0x42a4e9(0x10d)in _0x22860c[_0x42a4e9(0x2b0)]&&_0x42a4e9(0x1eb)in _0x22860c[_0x42a4e9(0x2b0)];}function Ka(_0x43f3ae){const _0x1fa3e4=_0x3447f8;switch(_0x43f3ae['type']){case _0x28a714[_0x1fa3e4(0x3ee)]:return _0x1fa3e4(0xe4);case _0x28a714['TableFilter']:return _0x1fa3e4(0x253);case _0x28a714[_0x1fa3e4(0x2d4)]:return _0x1fa3e4(0x145);case _0x28a714[_0x1fa3e4(0x341)]:return _0x1fa3e4(0x233);case _0x28a714[_0x1fa3e4(0x1ca)]:return _0x1fa3e4(0x2fd);}}function qa({onDelete:_0x1f78fd,onEdit:_0x2eeebd}){const _0x1c122e=_0x3447f8;let _0x5bf114=_0x53af8d(_0x255457),_0x2dfb2f=_0x5bf114['t'](_0x1c122e(0x1c6)),_0x8cc3cb=_0x5bf114['t'](_0x1c122e(0x120)),_0x3eb6db=_0x5bf114['t']('bases-dashboard-ui.dashboard.widgetActions');return _0x1fa005(_0x86d9a9,{'items':[{'type':_0x1c122e(0x347),'children':_0x5c238f(_0x1c122e(0x40a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1fa005(_0x41a33d,{'className':_0x1c122e(0x129),'aria-hidden':_0x1c122e(0x2d2)}),_0x1fa005(_0x1c122e(0x40a),{'children':_0x2dfb2f})]}),'onSelect':_0x2eeebd},{'type':_0x1c122e(0x161)},{'type':'item','variant':_0x1c122e(0x262),'children':_0x5c238f(_0x1c122e(0x40a),{'className':_0x1c122e(0x30e),'children':[_0x1fa005(_0x306b68,{'className':_0x1c122e(0x129),'aria-hidden':_0x1c122e(0x2d2)}),_0x1fa005('span',{'children':_0x8cc3cb})]}),'onSelect':_0x1f78fd}],'children':_0x1fa005(_0x10d589,{'type':_0x1c122e(0x3b9),'size':_0x1c122e(0x11d),'variant':_0x1c122e(0x3ca),'title':_0x3eb6db,'aria-label':_0x3eb6db,'className':_0x1c122e(0x290),'children':_0x1fa005(_0x46df20,{'className':_0x1c122e(0x129),'aria-hidden':'true'})})});}function Ja({dashboardId:_0x516e14,presentation:_0x5b99f0=!0x1,unitId:_0x15c02b}){const _0x1961b0=_0x3447f8;let _0x374854=_0x53af8d(_0x1ec317),_0x68aa20=_0x53af8d(_0x230a38),_0x5d917d=_0x53af8d(_0x2cceec),_0x4307cc=_0x53af8d(_0xa15270),_0x42c918=_0x53af8d(_0x255457),_0x556572=_0x53af8d(_0x4e6cdd),_0x557d99=_0x53af8d(_0x3c357b),_0x83931f=_0x4523d4(null),[_0x503282,_0x220748]=_0xee90d5(!0x1),[_0x2c272e,_0x12ed30]=_0xee90d5(),[_0x528d50,_0xb90ed6]=_0xee90d5(!0x1),[_0x23773b,_0xd66ca6]=_0xee90d5(()=>new Map()),_0x5467b0=_0x2f6d8e((_0x5c8cd0,_0x4a9b63)=>{_0xd66ca6(_0x430aa=>{const _0x3b40e4=_0x1596;let _0x6c9d0f=new Map(_0x430aa);return _0x4a9b63?_0x6c9d0f[_0x3b40e4(0xea)](_0x5c8cd0,_0x4a9b63):_0x6c9d0f[_0x3b40e4(0x276)](_0x5c8cd0),_0x6c9d0f;});},[]),_0x411940=_0x129d28(()=>_0x556572[_0x1961b0(0x135)][_0x1961b0(0x387)](_0x26242b(()=>_0x556572['getDashboard'](_0x15c02b,_0x516e14))),_0x556572[_0x1961b0(0x2cf)](_0x15c02b,_0x516e14),!0x1,[_0x516e14,_0x556572,_0x15c02b]),_0x45da5a=_0x4307cc[_0x1961b0(0x3be)](_0x15c02b,_0x6e7cef[_0x1961b0(0x1f7)]),_0x22ff93=_0x129d28(()=>_0x557d99['undoRedoStatus$'],{'undos':0x0,'redos':0x0},!0x1,[_0x557d99]),_0x455dd9=gr(_0x15c02b,_0x516e14);if(_0x543512(()=>{const _0x13a1ea=_0x1961b0;_0x4307cc[_0x13a1ea(0x300)](_0x15c02b),_0x4307cc[_0x13a1ea(0x3a3)](_0x15c02b);},[_0x4307cc,_0x15c02b]),_0x543512(()=>{const _0x47bf0a=_0x1961b0;let _0x1aa485=_0x83931f[_0x47bf0a(0x23e)],_0x46242e=_0x1aa485==null?void 0x0:_0x1aa485[_0x47bf0a(0x2f9)];if(!_0x1aa485||!_0x46242e)return;let _0x444a8f=()=>_0xb90ed6(_0x46242e[_0x47bf0a(0x159)]===_0x46242e[_0x47bf0a(0xcb)]),_0x3ec94c=_0x3cf469=>{const _0x19fee6=_0x47bf0a;_0x3cf469[_0x19fee6(0x2fc)]===_0x19fee6(0x2a2)&&!_0x3cf469['defaultPrevented']&&_0x46242e[_0x19fee6(0x159)]===_0x46242e[_0x19fee6(0xcb)]&&_0x46242e[_0x19fee6(0x281)]()['catch'](_0x444a8f);};return _0x46242e[_0x47bf0a(0x213)](_0x47bf0a(0x298),_0x444a8f),_0x46242e[_0x47bf0a(0x213)](_0x47bf0a(0xfb),_0x3ec94c),()=>{const _0x3699e7=_0x47bf0a;_0x46242e[_0x3699e7(0x367)](_0x3699e7(0x298),_0x444a8f),_0x46242e['removeEventListener'](_0x3699e7(0xfb),_0x3ec94c);};},[]),!_0x411940||!_0x45da5a)return null;let _0x394ac1=_0x2dec28=>_0x374854[_0x1961b0(0x2be)](_0x49cadf['id'],{'unitId':_0x15c02b,'dashboardId':_0x516e14,'widget':_0x2dec28})[_0x1961b0(0x308)](()=>void 0x0),_0x5bfc35=(_0x3b69d7,_0xf1596a,_0x24701d)=>{const _0x275ca4=_0x1961b0;let _0x228dbb=Math[_0x275ca4(0x351)](0x0,..._0x411940[_0x275ca4(0x2a6)][_0x275ca4(0x30c)](_0x2e3e3d=>{const _0x178b87=_0x275ca4;var _0x486d01;let _0x4eda60=(_0x486d01=_0x411940[_0x178b87(0x311)][_0x2e3e3d])==null?void 0x0:_0x486d01[_0x178b87(0xe1)];return _0x4eda60?[_0x4eda60[_0x178b87(0x2b6)]+_0x4eda60[_0x178b87(0x3ef)]]:[];})),_0x130ae2=_0x275ca4(0x156)+_0x2aef82(0x8),_0xf80aca={'column':0x0,'row':_0x228dbb,'columnSpan':_0xf1596a,'rowSpan':_0x24701d};switch(_0x3b69d7[_0x275ca4(0x1b9)]){case _0x28a714['PivotChart']:return _0x394ac1({..._0x3b69d7,'id':_0x130ae2,'layout':_0xf80aca});case _0x28a714[_0x275ca4(0x2a5)]:return _0x394ac1({..._0x3b69d7,'id':_0x130ae2,'layout':_0xf80aca});case _0x28a714['Text']:return _0x394ac1({..._0x3b69d7,'id':_0x130ae2,'layout':_0xf80aca});case _0x28a714[_0x275ca4(0x341)]:return _0x394ac1({..._0x3b69d7,'id':_0x130ae2,'layout':_0xf80aca});case _0x28a714[_0x275ca4(0x1ca)]:return _0x394ac1({..._0x3b69d7,'id':_0x130ae2,'layout':_0xf80aca});}},_0x24f184=_0x45da5a[_0x1961b0(0x3b6)](),_0x5b03d4=_0x24f184[_0x1961b0(0xbc)][_0x1961b0(0x30c)](_0x5ceacd=>{const _0x1dc9a9=_0x1961b0;let _0x455a08=_0x24f184['tables'][_0x5ceacd];if(!_0x455a08)return[];let _0x4cc7c9=_0x455a08['viewOrder'][_0x1dc9a9(0x30c)](_0x1f41e9=>{const _0x30a543=_0x1dc9a9;let _0xd8a390=_0x455a08[_0x30a543(0x2dc)][_0x1f41e9];return no(_0xd8a390)?[{'type':_0x30a543(0x347),'children':_0xd8a390[_0x30a543(0x2cd)],'onSelect':()=>_0x5bfc35({'type':_0x28a714[_0x30a543(0x3ee)],'tableId':_0x5ceacd,'pivotViewId':_0x1f41e9,'chart':{..._0xd8a390[_0x30a543(0x2b0)][_0x30a543(0x1eb)]}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0x455a08[_0x1dc9a9(0x2cd)],'options':[..._0x4cc7c9,..._0x4cc7c9[_0x1dc9a9(0x2c8)]?[{'type':_0x1dc9a9(0x161)}]:[],{'type':_0x1dc9a9(0x347),'children':_0x42c918['t'](_0x1dc9a9(0x253)),'onSelect':()=>_0x5bfc35({'type':_0x28a714[_0x1dc9a9(0x2a5)],'tableId':_0x5ceacd,'filter':null},0x6,0x8)}]}];}),_0x11635c=[..._0x5b03d4,..._0x5b03d4['length']?[{'type':_0x1961b0(0x161)}]:[],{'type':'item','children':_0x42c918['t'](_0x1961b0(0x145)),'onSelect':()=>_0x5bfc35({'type':_0x28a714['Text'],'document':Qa()},0x4,0x6)},{'type':_0x1961b0(0x347),'children':_0x42c918['t'](_0x1961b0(0x233)),'onSelect':()=>$a(_0x68aa20)[_0x1961b0(0x401)](_0x1596c0=>_0x1596c0&&_0x5bfc35({'type':_0x28a714[_0x1961b0(0x341)],'source':_0x1596c0[_0x1961b0(0x2c6)],'sourceType':_0x1596c0[_0x1961b0(0xd9)],'alt':_0x1596c0['name'],'displayMode':_0x1961b0(0x285)},0x4,0x6))},{'type':'item','children':_0x42c918['t'](_0x1961b0(0x2fd)),'onSelect':()=>{const _0x366905=_0x1961b0;let _0x32f851=_0x24f184['tableOrder'][_0x366905(0x2c9)](_0x3ae339=>_0x24f184[_0x366905(0x186)][_0x3ae339]);_0x32f851&&_0x5bfc35({'type':_0x28a714[_0x366905(0x1ca)],'tableId':_0x32f851,'shapeType':_0x337cc8[_0x366905(0x190)],'shapeData':_0x30a9dd(),'description':_0x42c918['t'](_0x366905(0x2fd))},0x4,0x6);}}],_0xd9cbe5=_0x2c272e?_0x411940[_0x1961b0(0x311)][_0x2c272e]:void 0x0,_0x30e8f8=async()=>{const _0x3a1d9f=_0x1961b0;let _0x7e24b5=_0x83931f['current'];if(!_0x7e24b5)return;let _0x464d22=_0x7e24b5[_0x3a1d9f(0x2f9)];if(_0x464d22[_0x3a1d9f(0x159)]===_0x464d22[_0x3a1d9f(0xcb)]){await _0x464d22[_0x3a1d9f(0x281)]();return;}await _0x464d22[_0x3a1d9f(0xcb)][_0x3a1d9f(0x3a2)]();},_0x37d292=_0x5b99f0||_0x528d50,_0x45391e=_0x455dd9&&!_0x37d292;return _0x5c238f(_0x1961b0(0x1e8),{'ref':_0x83931f,'className':_0x1961b0(0x2f3)+(_0x528d50?_0x1961b0(0x2e5):_0x1961b0(0x15d))+_0x1961b0(0x3a9),'children':[!_0x37d292&&_0x5c238f(_0x1961b0(0x10f),{'className':_0x1961b0(0xfc),'children':[_0x1fa005(_0x4cc2bb,{'className':_0x1961b0(0x245)}),_0x1fa005('h2',{'className':_0x1961b0(0x232),'children':_0x411940[_0x1961b0(0x2cd)]}),_0x1fa005(_0x903bf7,{'target':{'unitId':_0x15c02b,'objectId':_0x4e82aa(_0x516e14),'objectType':_0x1349b1[_0x1961b0(0x240)]},'name':_0x411940['name'],'commandId':_0x180c8f['id'],'exists':()=>!!_0x556572[_0x1961b0(0x2cf)](_0x15c02b,_0x516e14)},_0x15c02b+'/'+_0x516e14),_0x1fa005(_0x484f3c,{'unitId':_0x15c02b}),_0x1fa005(_0x10d589,{'type':_0x1961b0(0x3b9),'size':_0x1961b0(0x11d),'variant':_0x1961b0(0x3ca),'aria-label':_0x42c918['t'](_0x1961b0(0x2b8)),'disabled':!_0x455dd9||_0x22ff93[_0x1961b0(0x1fe)]===0x0,'onClick':()=>_0x374854[_0x1961b0(0x2be)](_0xbacc2f['id'])[_0x1961b0(0x308)](()=>void 0x0),'children':_0x1fa005(_0x32ef86,{})}),_0x1fa005(_0x10d589,{'type':_0x1961b0(0x3b9),'size':_0x1961b0(0x11d),'variant':_0x1961b0(0x3ca),'aria-label':_0x42c918['t'](_0x1961b0(0x229)),'disabled':!_0x455dd9||_0x22ff93[_0x1961b0(0x2b5)]===0x0,'onClick':()=>_0x374854[_0x1961b0(0x2be)](_0x1df103['id'])['catch'](()=>void 0x0),'children':_0x1fa005(_0x40da8b,{})}),_0x1fa005(_0x10d589,{'type':'button','size':_0x1961b0(0x11d),'variant':_0x1961b0(0x3ca),'aria-label':_0x42c918['t'](_0x1961b0(0x374)),'onClick':()=>_0x30e8f8()[_0x1961b0(0x308)](()=>void 0x0),'children':_0x1fa005(_0x2e21be,{})}),_0x1fa005(_0x86d9a9,{'items':_0x11635c,'children':_0x5c238f(_0x10d589,{'variant':_0x1961b0(0x125),'disabled':!_0x455dd9,'children':[_0x1fa005(_0x34ddb8,{}),_0x42c918['t'](_0x1961b0(0x278))]})})]}),_0x5c238f(_0x1961b0(0x1e8),{'className':_0x1961b0(0x215),'children':[_0x1fa005('div',{'className':_0x1961b0(0x26f),'children':_0x1fa005(la,{'dashboard':_0x411940,'dragLabel':_0x42c918['t'](_0x1961b0(0xd6)),'editable':_0x45391e,'resizeLabel':_0x42c918['t'](_0x1961b0(0x25d)),'widgetLabel':_0x2b31d1=>_0x42c918['t'](to(_0x2b31d1[_0x1961b0(0x1b9)])),'selectedWidgetId':_0x45391e?_0x2c272e:void 0x0,'onSelectWidget':_0x45391e?_0x57e49a=>{_0x12ed30(_0x57e49a),_0x57e49a||_0x220748(!0x1);}:void 0x0,'onLayoutsCommit':_0x5d625a=>{const _0x32da55=_0x1961b0;let _0x1f6f40={..._0x411940[_0x32da55(0x311)]};_0x5d625a['forEach']((_0x4878d6,_0x29584c)=>{let _0x5d2205=_0x1f6f40[_0x29584c];_0x5d2205&&(_0x1f6f40[_0x29584c]={..._0x5d2205,'layout':_0x4878d6});}),_0x374854[_0x32da55(0x2be)](_0x51a517['id'],{'unitId':_0x15c02b,'dashboard':{..._0x411940,'widgets':_0x1f6f40}})[_0x32da55(0x308)](()=>void 0x0);},'renderWidget':_0x5f3e45=>_0x1fa005(Ya,{'base':_0x45da5a,'dashboard':_0x411940,'unitId':_0x15c02b,'widget':_0x5f3e45,'onChange':_0x394ac1,'onChartRuntimeChange':_0x5467b0}),'renderWidgetActions':_0x826eaa=>_0x1fa005(qa,{'onEdit':()=>{_0x12ed30(_0x826eaa['id']),_0x220748(!0x0);},'onDelete':()=>{const _0x5affea=_0x1961b0;_0x2c272e===_0x826eaa['id']&&(_0x12ed30(void 0x0),_0x220748(!0x1)),_0x374854[_0x5affea(0x2be)](_0x25ddde['id'],{'unitId':_0x15c02b,'dashboardId':_0x516e14,'widgetId':_0x826eaa['id']})[_0x5affea(0x308)](()=>void 0x0);}})})}),_0x45391e&&_0x503282&&_0xd9cbe5&&_0x1fa005(za,{'base':_0x45da5a,'chartRuntime':_0x23773b[_0x1961b0(0x15b)](_0xd9cbe5['id']),'unitId':_0x15c02b,'widget':_0xd9cbe5,'onChange':_0x394ac1,'onClose':()=>_0x220748(!0x1),'onSelectBackgroundImage':()=>eo(_0x5d917d),'onSelectImage':()=>$a(_0x68aa20)})]})]});}function Ya({base:_0x55d938,dashboard:_0x95637b,onChange:_0x302d47,onChartRuntimeChange:_0x50a859,unitId:_0x13e973,widget:_0x1b96d1}){const _0x3bcd33=_0x3447f8;let _0x364d60=_0x125177(()=>_0x95637b[_0x3bcd33(0x2a6)][_0x3bcd33(0x30c)](_0x2f5bb9=>{const _0x317170=_0x3bcd33;let _0x5f060a=_0x95637b[_0x317170(0x311)][_0x2f5bb9];return(_0x5f060a==null?void 0x0:_0x5f060a['type'])===_0x28a714[_0x317170(0x2a5)]&&_0x5f060a[_0x317170(0x154)]===(_0x317170(0x154)in _0x1b96d1?_0x1b96d1[_0x317170(0x154)]:'')&&_0x5f060a[_0x317170(0x14f)]?[_0x5f060a['filter']]:[];}),[_0x95637b,_0x1b96d1]);switch(_0x1b96d1['type']){case _0x28a714['PivotChart']:return _0x1fa005(Lr,{'filters':_0x364d60,'unitId':_0x13e973,'widget':_0x1b96d1,'onRuntimeChange':_0x50a859});case _0x28a714[_0x3bcd33(0x2a5)]:return _0x1fa005(wa,{'fields':Xa(_0x55d938,_0x1b96d1[_0x3bcd33(0x154)]),'filter':_0x1b96d1[_0x3bcd33(0x14f)],'onChange':_0x563ecb=>_0x302d47({..._0x1b96d1,'filter':_0x563ecb})['catch'](()=>void 0x0)});case _0x28a714[_0x3bcd33(0x2d4)]:return _0x1fa005(Ur,{'widget':_0x1b96d1});case _0x28a714[_0x3bcd33(0x341)]:return _0x1fa005(Za,{'widget':_0x1b96d1});case _0x28a714['FormulaShape']:return _0x1fa005(Dr,{'dashboardId':_0x95637b['id'],'unitId':_0x13e973,'widget':_0x1b96d1});}}function Xa(_0x5d1c3a,_0x33c34e){const _0x3e276a=_0x3447f8;let _0x1c9f87=_0x5d1c3a[_0x3e276a(0x3b6)]()[_0x3e276a(0x186)][_0x33c34e],_0x6016ad=_0x1c9f87==null?void 0x0:_0x1c9f87[_0x3e276a(0x286)][_0x3e276a(0x2c9)](_0xbcddbd=>_0x1c9f87['views'][_0xbcddbd]),_0x30f9aa=_0x6016ad?_0x1c9f87==null?void 0x0:_0x1c9f87['views'][_0x6016ad]:void 0x0;return _0x1c9f87&&_0x30f9aa?_0x295488(_0x1c9f87,_0x30f9aa):[];}function Za({widget:_0x175de7}){const _0x518f86=_0x3447f8;let _0x4f89d1=_0x53af8d(_0x230a38),[_0x4847c4,_0x1e7d6a]=_0xee90d5(_0x175de7[_0x518f86(0xd9)]===_0x188e10[_0x518f86(0x234)]?'':_0x175de7[_0x518f86(0x2c6)]);return _0x543512(()=>{const _0x2db39e=_0x518f86;let _0x399148=!0x0;return _0x4f89d1['getAttachmentUrl'](_0x175de7[_0x2db39e(0x2c6)],_0x175de7[_0x2db39e(0xd9)])[_0x2db39e(0x401)](_0x369292=>{_0x399148&&_0x1e7d6a(_0x369292);})['catch'](()=>void 0x0),()=>{_0x399148=!0x1;};},[_0x4f89d1,_0x175de7[_0x518f86(0x2c6)],_0x175de7['sourceType']]),_0x4847c4?_0x1fa005('div',{'role':_0x175de7[_0x518f86(0x3ed)]?_0x518f86(0x3bf):void 0x0,'aria-label':_0x175de7[_0x518f86(0x3ed)]||void 0x0,'data-dashboard-image':_0x175de7['id'],'className':_0x518f86(0x1b2),'style':vr(_0x4847c4,_0x175de7[_0x518f86(0x2f2)])}):null;}function Qa(){let _0x49290b=_0x156ce9(new Set());return{'id':'dashboard-text-'+_0x2aef82(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x49290b}]},'documentStyle':{}};}function $a(_0x1ef450){return new Promise(_0x151edd=>{const _0x4f5b10=_0x1596;let _0x81b13e=document['createElement'](_0x4f5b10(0x1fb));_0x81b13e[_0x4f5b10(0x1b9)]=_0x4f5b10(0x15c),_0x81b13e[_0x4f5b10(0x375)]=_0x4f5b10(0x3b3),_0x81b13e[_0x4f5b10(0x213)](_0x4f5b10(0xe3),()=>{const _0x32bada=_0x4f5b10;var _0x5d18a9;let _0x1e7bdc=(_0x5d18a9=_0x81b13e[_0x32bada(0xf8)])==null?void 0x0:_0x5d18a9[0x0];if(!_0x1e7bdc){_0x151edd(null);return;}_0x1ef450['saveAttachment'](_0x1e7bdc)[_0x32bada(0x401)](_0x4efccb=>{const _0x542887=_0x32bada;if(!_0x4efccb[_0x542887(0x2c6)]||_0x4efccb[_0x542887(0xd9)]===void 0x0){_0x151edd(null);return;}_0x151edd({'name':_0x4efccb[_0x542887(0x2cd)],'source':_0x4efccb[_0x542887(0x2c6)],'sourceType':_0x4efccb[_0x542887(0xd9)]});})[_0x32bada(0x308)](()=>_0x151edd(null));},{'once':!0x0}),_0x81b13e[_0x4f5b10(0x3f4)]();});}function eo(_0x8258cb){return new Promise(_0x5e1afc=>{const _0x37df61=_0x1596;let _0x5341d4=document[_0x37df61(0xde)](_0x37df61(0x1fb));_0x5341d4[_0x37df61(0x1b9)]=_0x37df61(0x15c),_0x5341d4['accept']=_0x37df61(0x3b3),_0x5341d4[_0x37df61(0x213)](_0x37df61(0xe3),()=>{const _0x22b161=_0x37df61;var _0x5a485c;let _0x1b67bf=(_0x5a485c=_0x5341d4[_0x22b161(0xf8)])==null?void 0x0:_0x5a485c[0x0];if(!_0x1b67bf){_0x5e1afc(null);return;}_0x8258cb[_0x22b161(0xc7)](_0x1b67bf)[_0x22b161(0x401)](_0x2d9154=>{const _0x6d2130=_0x22b161;if(!(_0x2d9154!=null&&_0x2d9154['source'])){_0x5e1afc(null);return;}if(_0x2d9154[_0x6d2130(0x1c1)]){let _0x1090db=new Image();_0x1090db[_0x6d2130(0xba)]=_0x2d9154[_0x6d2130(0x1c1)],_0x8258cb[_0x6d2130(0x2d6)](_0x2d9154[_0x6d2130(0x2c6)],_0x2d9154[_0x6d2130(0x3d9)],_0x1090db);}_0x5e1afc({'source':_0x2d9154[_0x6d2130(0x2c6)],'sourceType':_0x2d9154[_0x6d2130(0x3d9)]});})['catch'](()=>_0x5e1afc(null));},{'once':!0x0}),_0x5341d4[_0x37df61(0x3f4)]();});}function to(_0x2d239d){const _0x4c6f33=_0x3447f8;switch(_0x2d239d){case _0x28a714[_0x4c6f33(0x3ee)]:return'bases-dashboard-ui.dashboard.pivotChart';case _0x28a714[_0x4c6f33(0x2a5)]:return _0x4c6f33(0x253);case _0x28a714['Text']:return _0x4c6f33(0x145);case _0x28a714['Image']:return _0x4c6f33(0x233);case _0x28a714[_0x4c6f33(0x1ca)]:return _0x4c6f33(0x2fd);}}function no(_0x569422){const _0x9ba54c=_0x3447f8;return(_0x569422==null?void 0x0:_0x569422['type'])===_0x4da0de[_0x9ba54c(0x1ec)]&&typeof _0x569422[_0x9ba54c(0x2b0)]=='object'&&_0x569422[_0x9ba54c(0x2b0)]!==null&&'pivot'in _0x569422['config']&&_0x9ba54c(0x1eb)in _0x569422[_0x9ba54c(0x2b0)];}const ro=[{'area':_0x23447d[_0x3447f8(0x251)],'key':_0x3447f8(0x2b1),'label':_0x3447f8(0xca)},{'area':_0x23447d[_0x3447f8(0x29b)],'key':_0x3447f8(0x3a6),'label':_0x3447f8(0x1f0)},{'area':_0x23447d[_0x3447f8(0x20e)],'key':'rowFields','label':_0x3447f8(0x396)},{'area':_0x23447d[_0x3447f8(0x1b0)],'key':'valueFields','label':_0x3447f8(0x3db)}],io=[{'value':_0x1f46e1[_0x3447f8(0x1f1)],'localeKey':'bases-dashboard-ui.pivot.sum'},{'value':_0x1f46e1[_0x3447f8(0x203)],'localeKey':'bases-dashboard-ui.pivot.count'},{'value':_0x1f46e1[_0x3447f8(0x1bb)],'localeKey':_0x3447f8(0x3dd)},{'value':_0x1f46e1[_0x3447f8(0x344)],'localeKey':_0x3447f8(0x3cc)},{'value':_0x1f46e1[_0x3447f8(0x351)],'localeKey':_0x3447f8(0x3d7)},{'value':_0x1f46e1['min'],'localeKey':_0x3447f8(0x2c0)},{'value':_0x1f46e1[_0x3447f8(0x30b)],'localeKey':_0x3447f8(0x38d)},{'value':_0x1f46e1[_0x3447f8(0x1f4)],'localeKey':'bases-dashboard-ui.pivot.stdDev'},{'value':_0x1f46e1[_0x3447f8(0x352)],'localeKey':_0x3447f8(0x34c)},{'value':_0x1f46e1[_0x3447f8(0xd3)],'localeKey':_0x3447f8(0x3ec)},{'value':_0x1f46e1[_0x3447f8(0x33b)],'localeKey':'bases-dashboard-ui.pivot.variancePopulation'}];function ao(_0x35effa){const _0xc7042d=_0x3447f8;let {config:_0x32e302,onChange:_0xe5b6e5,table:_0x482867}=_0x35effa,_0x19fca8=_0x53af8d(_0x255457),[_0x3bfb78,_0x1cada1]=_0xee90d5(_0xc7042d(0x2ee)),[_0x58fbd4,_0x447420]=_0xee90d5(''),[_0xbdbf3a,_0x367828]=_0xee90d5(null),[_0x2b7d7e,_0x9def6c]=_0xee90d5(null),[_0x163ff4,_0x568f53]=_0xee90d5(null),[_0x1ea366,_0x22d281]=_0xee90d5(null),_0x361034=_0x4523d4(null),_0x330f84=_0x125177(()=>_0x482867[_0xc7042d(0x24d)][_0xc7042d(0x30c)](_0x2c1f7d=>{const _0x10189b=_0xc7042d;let _0x2c08c3=_0x482867[_0x10189b(0x2ee)][_0x2c1f7d];return _0x2c08c3&&_0x2c08c3[_0x10189b(0x2ac)]!==!0x0&&_0x2c08c3[_0x10189b(0x1b9)]!==_0x2940a8[_0x10189b(0x397)]?[_0x2c08c3]:[];})[_0xc7042d(0x14f)](_0x4af10e=>_0x4af10e[_0xc7042d(0x2cd)][_0xc7042d(0xd7)]()['includes'](_0x58fbd4['trim']()['toLocaleLowerCase']())),[_0x58fbd4,_0x482867]),_0xdf5617=_0x4321f4=>{const _0x160589=_0xc7042d;let _0xa692dc=_0x57279f(_0x482867,_0x32e302[_0x160589(0x10d)]);try{_0x4321f4(_0xa692dc),_0xe5b6e5({'pivot':_0xa692dc['toJSON']()});}finally{_0xa692dc[_0x160589(0x2fe)]();}},_0x50dc25=(_0x57a9af,_0x1e3ef4)=>{_0xbdbf3a&&(_0xdf5617(_0x348e23=>{const _0x4c4e3f=_0x1596;if(_0xbdbf3a['kind']==='field'){let _0x138450=_0x348e23[_0x4c4e3f(0x126)](_0xbdbf3a['id']),_0x100ec0=_0x138450[_0x4c4e3f(0x34d)]===_0x57a9af&&_0x138450['index']<_0x1e3ef4?_0x1e3ef4-0x1:_0x1e3ef4;_0x348e23['updateFieldPosition'](_0xbdbf3a['id'],_0x57a9af,_0x100ec0);return;}mo(_0x348e23,_0xbdbf3a['id'],_0x57a9af,_0x1e3ef4);}),_0x367828(null),_0x9def6c(null));};return _0x5c238f('div',{'className':_0xc7042d(0x1d7),'children':[_0x1fa005(_0x283559,{'ariaLabel':_0x19fca8['t'](_0xc7042d(0x1b7)),'className':_0xc7042d(0x302),'items':[{'label':_0x19fca8['t'](_0xc7042d(0x2e9)),'panelId':_0xc7042d(0x3ff),'value':_0xc7042d(0x2ee)},{'label':_0x19fca8['t'](_0xc7042d(0x282)),'panelId':_0xc7042d(0x3ad),'value':_0xc7042d(0x326)}],'value':_0x3bfb78,'onChange':_0x1cada1}),_0x1fa005(_0xc7042d(0x1e8),{'ref':_0x361034,'className':_0x54dbd2(_0xc7042d(0x149),_0x2bbb9f),'onDragOver':_0x23ddbb=>{const _0x405c3b=_0xc7042d;let _0x212353=_0x361034[_0x405c3b(0x23e)];if(!_0x212353)return;let _0x114f72=_0x212353[_0x405c3b(0x263)]();_0x23ddbb['clientY']<_0x114f72['top']+0x30?_0x212353[_0x405c3b(0x406)]-=0x10:_0x23ddbb[_0x405c3b(0x117)]>_0x114f72[_0x405c3b(0x199)]-0x30&&(_0x212353['scrollTop']+=0x10);},'children':_0x3bfb78===_0xc7042d(0x326)?_0x1fa005(po,{'config':_0x32e302,'commit':_0xdf5617}):_0x5c238f(_0xc7042d(0x1e8),{'className':_0xc7042d(0x116),'children':[_0x5c238f('div',{'children':[_0x1fa005(_0xc7042d(0x1e8),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x19fca8['t']('bases-dashboard-ui.pivot.sourceFields')}),_0x1fa005(_0x2647d7,{'allowClear':!0x0,'slot':_0x1fa005(_0x10f455,{}),'value':_0x58fbd4,'placeholder':_0x19fca8['t']('bases-dashboard-ui.pivot.searchFields'),'onChange':_0x447420}),_0x1fa005('div',{'className':_0xc7042d(0xdd),'children':_0x330f84['map'](_0x2b3e64=>_0x1fa005(oo,{'config':_0x32e302,'field':_0x2b3e64,'onAdd':_0x324331=>_0xdf5617(_0x45c677=>mo(_0x45c677,_0x2b3e64['id'],_0x324331,_0x45c677[_0xc7042d(0x11f)](_0x324331))),'onCheckedChange':_0x3e81f3=>_0xdf5617(_0xd654c5=>{const _0x434b53=_0xc7042d;let _0x3429b5=_0xd654c5['getTableFieldsByDataFieldId'](_0x2b3e64['id']);if(!_0x3e81f3){_0x3429b5[_0x434b53(0x32f)](_0x466702=>_0xd654c5[_0x434b53(0x1bf)](_0x466702[_0x434b53(0x2bd)]()));return;}if(_0x3429b5[_0x434b53(0x2c8)]===0x0){let _0xf665dc=go(_0x2b3e64)?_0x23447d['Value']:_0x23447d['Row'];_0xd654c5[_0x434b53(0x29f)](_0x2b3e64['id'],_0xf665dc);}}),'onDragStart':()=>_0x367828({'kind':_0xc7042d(0x2c6),'id':_0x2b3e64['id']})},_0x2b3e64['id']))})]}),_0x1fa005(_0xc7042d(0x1e8),{'className':'univer-grid\x20univer-grid-cols-2\x20univer-gap-3','children':ro[_0xc7042d(0x1ee)](_0x172ce7=>_0x1fa005(co,{'area':_0x172ce7[_0xc7042d(0x34d)],'dropTarget':_0x2b7d7e,'fields':_0x32e302['pivot'][_0x172ce7[_0xc7042d(0x2fc)]],'label':_0x19fca8['t'](_0x172ce7[_0xc7042d(0x24a)]),'snapshot':_0x32e302[_0xc7042d(0x10d)],'onDragEnd':()=>{_0x367828(null),_0x9def6c(null);},'onDragStart':_0x550f81=>_0x367828({'kind':_0xc7042d(0x101),'id':_0x550f81,'area':_0x172ce7[_0xc7042d(0x34d)]}),'onDragOver':_0x40a418=>_0x9def6c({'area':_0x172ce7[_0xc7042d(0x34d)],'index':_0x40a418}),'onDrop':_0x578524=>_0x50dc25(_0x172ce7[_0xc7042d(0x34d)],_0x578524),'onFilter':_0x568f53,'onRemove':_0x2893d8=>_0xdf5617(_0x46ff81=>_0x46ff81[_0xc7042d(0x1bf)](_0x2893d8)),'onSettings':_0x22d281},_0x172ce7['area']))}),_0x163ff4&&_0x1fa005(uo,{'fieldId':_0x163ff4,'snapshot':_0x32e302['pivot'],'table':_0x482867,'onCancel':()=>_0x568f53(null),'onCommit':(_0x5ae64a,_0x90989e)=>{_0xdf5617(_0x2057e2=>{const _0x1694a1=_0x1596;let _0x5d2cc0=_0x2057e2[_0x1694a1(0xd8)](_0x163ff4),_0x23fce3=(_0x5d2cc0==null?void 0x0:_0x5d2cc0[_0x1694a1(0x26b)])??[];_0x2057e2[_0x1694a1(0x29a)](_0x163ff4,{'type':_0x5a8717[_0x1694a1(0x17c)],'list':_0x5ae64a,'isAll':_0x5ae64a[_0x1694a1(0x2c8)]===_0x23fce3[_0x1694a1(0x2c8)]}),_0x2057e2[_0x1694a1(0x271)](_0x163ff4,_0x90989e===void 0x0?void 0x0:{'type':_0x90989e});}),_0x568f53(null);}},_0x163ff4),_0x1ea366&&_0x1fa005(fo,{'field':_0x32e302[_0xc7042d(0x10d)][_0xc7042d(0x181)][_0x1ea366],'onCancel':()=>_0x22d281(null),'onCommit':(_0x279413,_0x17bcc4,_0x3dd9fc)=>{_0xdf5617(_0x209d9d=>{const _0x3ddad5=_0x1596;_0x209d9d[_0x3ddad5(0x13f)](_0x1ea366,_0x279413),_0x209d9d[_0x3ddad5(0xd1)](_0x1ea366,_0x17bcc4),_0x209d9d['setFieldFormat'](_0x1ea366,_0x3dd9fc||void 0x0);}),_0x22d281(null);}},_0x1ea366)]})})]});}function oo(_0x556679){const _0x2f62d6=_0x3447f8;let {config:_0x4ab6da,field:_0x1a1e77,onAdd:_0x162291,onCheckedChange:_0x259371,onDragStart:_0x27c1b8}=_0x556679,_0x22c844=_0x53af8d(_0x255457),_0x2d4258=[...Object[_0x2f62d6(0xfd)](_0x4ab6da['pivot']['dimension']),...Object[_0x2f62d6(0xfd)](_0x4ab6da[_0x2f62d6(0x10d)][_0x2f62d6(0x181)])][_0x2f62d6(0x3c4)](_0x235b89=>_0x235b89[_0x2f62d6(0x164)]===_0x1a1e77['id']),_0x42a0a5=ro[_0x2f62d6(0x1ee)](_0x2380a1=>({'type':'item','children':_0x22c844['t'](_o(_0x2380a1[_0x2f62d6(0x34d)])),'onSelect':()=>_0x162291(_0x2380a1[_0x2f62d6(0x34d)])}));return _0x5c238f(_0x2f62d6(0x1e8),{'draggable':!0x0,'className':'univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','onDragStart':_0x27c1b8,'children':[_0x1fa005(_0x229479,{'className':_0x2f62d6(0x359)}),_0x1fa005(_0x22d09c,{'checked':_0x2d4258,'onChange':_0x5432f2=>_0x259371(!!_0x5432f2)}),_0x1fa005(so,{'field':_0x1a1e77}),_0x1fa005(_0x2f62d6(0x40a),{'className':_0x2f62d6(0x14b),'children':_0x1a1e77[_0x2f62d6(0x2cd)]}),_0x1fa005(_0x86d9a9,{'align':'end','items':_0x42a0a5,'children':_0x1fa005(_0x2f62d6(0x40a),{'className':_0x2f62d6(0x370),'children':_0x1fa005(_0x2e92dc,{})})})]});}function so({field:_0x5e297b}){const _0x1d7123=_0x3447f8;return go(_0x5e297b)?_0x1fa005(_0x5b2a53,{'className':_0x1d7123(0x359)}):_0x5e297b[_0x1d7123(0x1b9)]===_0x2940a8[_0x1d7123(0x292)]||_0x5e297b[_0x1d7123(0x1b9)]===_0x2940a8[_0x1d7123(0x198)]||_0x5e297b[_0x1d7123(0x1b9)]===_0x2940a8['UpdatedAt']?_0x1fa005(_0x1437d4,{'className':_0x1d7123(0x359)}):_0x1fa005(_0x3177bc,{'className':'univer-text-gray-400'});}function co(_0x82328d){const _0x1abe43=_0x3447f8;let {area:_0x230d65,dropTarget:_0x3821c7,fields:_0x22d459,label:_0x42c7d5,snapshot:_0x1cec10}=_0x82328d,_0x5616ec=_0x53af8d(_0x255457);return _0x5c238f(_0x1abe43(0x336),{'className':_0x54dbd2(_0x1abe43(0x350),_0x243840),'onDragOver':_0x4752a1=>{const _0x2f8d93=_0x1abe43;_0x4752a1[_0x2f8d93(0x16a)](),_0x82328d[_0x2f8d93(0x37a)](_0x22d459[_0x2f8d93(0x2c8)]);},'onDrop':_0x48a12a=>{const _0x2dd449=_0x1abe43;_0x48a12a['preventDefault'](),_0x82328d['onDrop']((_0x3821c7==null?void 0x0:_0x3821c7['area'])===_0x230d65?_0x3821c7[_0x2dd449(0xeb)]:_0x22d459[_0x2dd449(0x2c8)]);},'children':[_0x1fa005(_0x1abe43(0x1e8),{'className':'univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','children':_0x42c7d5}),_0x5c238f('div',{'className':_0x1abe43(0xf5),'children':[_0x22d459['map']((_0x491946,_0x80fb7a)=>{const _0x38ce95=_0x1abe43;let _0x268cb5=_0x1cec10[_0x38ce95(0x2dd)][_0x491946]??_0x1cec10[_0x38ce95(0x181)][_0x491946];if(!_0x268cb5)return null;let _0x595c87=(_0x3821c7==null?void 0x0:_0x3821c7['area'])===_0x230d65&&_0x3821c7['index']===_0x80fb7a;return _0x5c238f(_0x38ce95(0x1e8),{'onDragOver':_0x44488c=>{const _0x3c5061=_0x38ce95;_0x44488c[_0x3c5061(0x16a)](),_0x44488c['stopPropagation']();let _0x5e5186=_0x44488c[_0x3c5061(0x3c3)][_0x3c5061(0x263)]();_0x82328d[_0x3c5061(0x37a)](_0x80fb7a+ +(_0x44488c['clientY']>_0x5e5186[_0x3c5061(0x348)]+_0x5e5186[_0x3c5061(0x34f)]/0x2));},'onDrop':_0x3e7e59=>{const _0x19b163=_0x38ce95;_0x3e7e59[_0x19b163(0x16a)](),_0x3e7e59[_0x19b163(0x273)](),_0x82328d[_0x19b163(0x25a)]((_0x3821c7==null?void 0x0:_0x3821c7[_0x19b163(0x34d)])===_0x230d65?_0x3821c7[_0x19b163(0xeb)]:_0x80fb7a);},'children':[_0x595c87&&_0x1fa005(_0x38ce95(0x1e8),{'className':_0x38ce95(0x3e7)}),_0x1fa005(lo,{'area':_0x230d65,'field':_0x268cb5,'onDragEnd':_0x82328d[_0x38ce95(0x25f)],'onDragStart':()=>_0x82328d['onDragStart'](_0x491946),'onFilter':()=>_0x82328d['onFilter'](_0x491946),'onRemove':()=>_0x82328d[_0x38ce95(0x2c3)](_0x491946),'onSettings':()=>_0x82328d[_0x38ce95(0x2ec)](_0x491946)})]},_0x491946);}),(_0x3821c7==null?void 0x0:_0x3821c7[_0x1abe43(0x34d)])===_0x230d65&&_0x3821c7[_0x1abe43(0xeb)]===_0x22d459[_0x1abe43(0x2c8)]&&_0x1fa005(_0x1abe43(0x1e8),{'className':_0x1abe43(0x3e7)}),_0x22d459['length']===0x0&&_0x1fa005(_0x1abe43(0x1e8),{'className':_0x1abe43(0x2b7),'children':_0x5616ec['t'](_0x1abe43(0x150))})]})]});}function lo(_0x2d2568){const _0x40e57f=_0x3447f8;let _0x270fed=_0x53af8d(_0x255457),_0x233b26=_0x2d2568[_0x40e57f(0x34d)]===_0x23447d['Value'],_0xf6b68d=[{'type':_0x40e57f(0x347),'children':_0x270fed['t'](_0x40e57f(0x1e6)),'onSelect':_0x2d2568[_0x40e57f(0x2c3)]},{'type':_0x40e57f(0x347),'children':_0x270fed['t'](_0x233b26?_0x40e57f(0x2a0):_0x40e57f(0x2d0)),'onSelect':_0x233b26?_0x2d2568[_0x40e57f(0x2ec)]:_0x2d2568[_0x40e57f(0x3f8)]}];return _0x5c238f(_0x40e57f(0x1e8),{'draggable':!0x0,'className':_0x40e57f(0x146),'onDragEnd':_0x2d2568[_0x40e57f(0x25f)],'onDragStart':_0x2d2568[_0x40e57f(0xcf)],'children':[_0x1fa005(_0x229479,{'className':'univer-text-gray-400'}),_0x1fa005(_0x310d74,{'title':_0x2d2568[_0x40e57f(0x101)]['displayName'],'children':_0x1fa005(_0x40e57f(0x40a),{'className':_0x40e57f(0x14b),'children':_0x2d2568[_0x40e57f(0x101)][_0x40e57f(0x2bb)]})}),_0x1fa005(_0x86d9a9,{'align':_0x40e57f(0x372),'items':_0xf6b68d,'children':_0x1fa005(_0x40e57f(0x40a),{'className':_0x40e57f(0x370),'children':_0x1fa005(_0x2e92dc,{})})})]});}function uo(_0x561018){const _0x7b8e48=_0x3447f8;var _0x2177bb,_0x27b9b3;let _0x2a11ad=_0x53af8d(_0x255457),{format:_0x3adc14,items:_0x517c93,itemTypes:_0x47bde6}=_0x125177(()=>{const _0x1db201=_0x1596;let _0x24d343=_0x57279f(_0x561018['table'],_0x561018[_0x1db201(0x12a)]);try{let _0x5c5cfe=_0x24d343[_0x1db201(0xd8)](_0x561018['fieldId']);return{'format':_0x5c5cfe==null?void 0x0:_0x5c5cfe[_0x1db201(0x11b)],'items':[...(_0x5c5cfe==null?void 0x0:_0x5c5cfe[_0x1db201(0x26b)])??[]],'itemTypes':[...(_0x5c5cfe==null?void 0x0:_0x5c5cfe[_0x1db201(0x39e)])??[]]};}finally{_0x24d343[_0x1db201(0x2fe)]();}},[_0x561018[_0x7b8e48(0x1e5)],_0x561018[_0x7b8e48(0x12a)],_0x561018['table']]),_0x448bf1=(_0x2177bb=_0x561018['snapshot'][_0x7b8e48(0x2dd)][_0x561018[_0x7b8e48(0x1e5)]])==null?void 0x0:_0x2177bb['filterInfo'],[_0x14be24,_0x1b4b27]=_0xee90d5((_0x448bf1==null?void 0x0:_0x448bf1[_0x7b8e48(0x1b9)])===_0x5a8717[_0x7b8e48(0x17c)]?_0x448bf1[_0x7b8e48(0x3e6)]:_0x517c93),[_0x5b56cb,_0x40e4c8]=_0xee90d5((_0x27b9b3=_0x561018[_0x7b8e48(0x12a)][_0x7b8e48(0x2dd)][_0x561018[_0x7b8e48(0x1e5)]])==null||(_0x27b9b3=_0x27b9b3['sortInfo'])==null?void 0x0:_0x27b9b3[_0x7b8e48(0x1b9)]),_0x250772=_0x14be24[_0x7b8e48(0x2c8)]===_0x517c93[_0x7b8e48(0x2c8)];return _0x5c238f(_0x7b8e48(0x336),{'className':_0x54dbd2(_0x7b8e48(0x14d),_0x243840),'children':[_0x1fa005(_0x7b8e48(0x1e8),{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0x2a11ad['t'](_0x7b8e48(0x2d0))}),_0x5c238f(_0x7b8e48(0x1e8),{'className':_0x7b8e48(0x3eb),'children':[_0x5c238f(_0x10d589,{'className':_0x7b8e48(0x1cc),'variant':_0x5b56cb===_0x428f40['ascending']?_0x7b8e48(0x125):_0x7b8e48(0x36e),'onClick':()=>_0x40e4c8(_0x428f40[_0x7b8e48(0x17d)]),'children':[_0x1fa005(_0x2a08ae,{}),_0x2a11ad['t'](_0x7b8e48(0x2e6))]}),_0x5c238f(_0x10d589,{'className':'univer-flex-1','variant':_0x5b56cb===_0x428f40['descending']?'primary':_0x7b8e48(0x36e),'onClick':()=>_0x40e4c8(_0x428f40[_0x7b8e48(0x155)]),'children':[_0x1fa005(_0x20c70b,{}),_0x2a11ad['t'](_0x7b8e48(0x1df))]})]}),_0x5c238f(_0x7b8e48(0x1e8),{'className':_0x7b8e48(0x15a),'children':[_0x5c238f(_0x7b8e48(0x24a),{'className':_0x7b8e48(0x208),'children':[_0x1fa005(_0x22d09c,{'checked':_0x250772,'indeterminate':_0x14be24['length']>0x0&&!_0x250772,'onChange':()=>_0x1b4b27(_0x250772?[]:_0x517c93)}),_0x2a11ad['t'](_0x7b8e48(0x22a))]}),_0x517c93[_0x7b8e48(0x1ee)]((_0x3fcc99,_0x130a5e)=>_0x5c238f('label',{'className':_0x7b8e48(0x208),'children':[_0x1fa005(_0x22d09c,{'checked':_0x14be24['includes'](_0x3fcc99),'onChange':()=>_0x1b4b27(_0x5bcfef=>_0x5bcfef['includes'](_0x3fcc99)?_0x5bcfef['filter'](_0x1cc496=>_0x1cc496!==_0x3fcc99):[..._0x5bcfef,_0x3fcc99])}),_0x1fa005('span',{'className':_0x7b8e48(0x242),'children':ho(_0x3fcc99,_0x47bde6[_0x130a5e],_0x3adc14,_0x2a11ad['t']('bases-dashboard-ui.pivot.blank'))})]},_0x3fcc99))]}),_0x5c238f(_0x7b8e48(0x1e8),{'className':_0x7b8e48(0x1c8),'children':[_0x1fa005(_0x10d589,{'variant':_0x7b8e48(0x21d),'onClick':()=>_0x561018['onCommit'](_0x517c93,_0x5b56cb),'children':_0x2a11ad['t'](_0x7b8e48(0x3bd))}),_0x5c238f('div',{'className':_0x7b8e48(0x3d4),'children':[_0x1fa005(_0x10d589,{'onClick':_0x561018[_0x7b8e48(0x227)],'children':_0x2a11ad['t'](_0x7b8e48(0x132))}),_0x1fa005(_0x10d589,{'variant':_0x7b8e48(0x125),'disabled':_0x14be24[_0x7b8e48(0x2c8)]===0x0,'onClick':()=>_0x561018[_0x7b8e48(0x3b5)](_0x14be24,_0x5b56cb),'children':_0x2a11ad['t'](_0x7b8e48(0x15e))})]})]})]});}function fo(_0x552725){const _0x44b8ff=_0x3447f8;var _0x3e2270,_0x203fdf,_0x36f544;let _0xe5b1b4=_0x53af8d(_0x255457),[_0xa7796c,_0x2bd166]=_0xee90d5(((_0x3e2270=_0x552725[_0x44b8ff(0x101)])==null?void 0x0:_0x3e2270[_0x44b8ff(0x2bb)])??''),[_0x5252ef,_0x3c11bb]=_0xee90d5(((_0x203fdf=_0x552725['field'])==null?void 0x0:_0x203fdf[_0x44b8ff(0x1f5)])??_0x1f46e1['sum']),[_0x465756,_0x4ca438]=_0xee90d5(((_0x36f544=_0x552725['field'])==null?void 0x0:_0x36f544[_0x44b8ff(0x11b)])??'');return _0x552725[_0x44b8ff(0x101)]?_0x5c238f(_0x44b8ff(0x336),{'className':_0x54dbd2('univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900',_0x243840),'children':[_0x1fa005(_0x44b8ff(0x1e8),{'className':'univer-text-sm\x20univer-font-medium','children':_0xe5b1b4['t'](_0x44b8ff(0x2a0))}),_0x5c238f(_0x44b8ff(0x24a),{'className':_0x44b8ff(0x289),'children':[_0xe5b1b4['t'](_0x44b8ff(0xbe)),_0x1fa005(_0x2647d7,{'value':_0xa7796c,'onChange':_0x2bd166})]}),_0x5c238f('label',{'className':_0x44b8ff(0x289),'children':[_0xe5b1b4['t'](_0x44b8ff(0x109)),_0x1fa005(_0x4b13fc,{'value':String(_0x5252ef),'options':io['map'](_0x512b3c=>({'value':String(_0x512b3c[_0x44b8ff(0x2c2)]),'label':_0xe5b1b4['t'](_0x512b3c['localeKey'])})),'onChange':_0x2c735b=>{const _0x4b0714=_0x44b8ff;let _0x39ea13=io[_0x4b0714(0x2c9)](_0x29448b=>String(_0x29448b[_0x4b0714(0x2c2)])===_0x2c735b);_0x39ea13&&_0x3c11bb(_0x39ea13[_0x4b0714(0x2c2)]);}})]}),_0x5c238f('label',{'className':_0x44b8ff(0x289),'children':[_0xe5b1b4['t'](_0x44b8ff(0x3ae)),_0x1fa005(_0x2647d7,{'value':_0x465756,'onChange':_0x4ca438})]}),_0x5c238f(_0x44b8ff(0x1e8),{'className':_0x44b8ff(0x23d),'children':[_0x1fa005(_0x10d589,{'onClick':_0x552725[_0x44b8ff(0x227)],'children':_0xe5b1b4['t']('bases-dashboard-ui.pivot.cancel')}),_0x1fa005(_0x10d589,{'variant':_0x44b8ff(0x125),'disabled':!_0xa7796c[_0x44b8ff(0x15f)](),'onClick':()=>_0x552725['onCommit'](_0xa7796c['trim'](),_0x5252ef,_0x465756),'children':_0xe5b1b4['t'](_0x44b8ff(0x15e))})]})]}):null;}function po(_0x275d9e){const _0x605a5a=_0x3447f8;let {config:_0x447de5,commit:_0x85e50f}=_0x275d9e,_0x483c57=_0x53af8d(_0x255457),_0x521595=_0x447de5[_0x605a5a(0x10d)][_0x605a5a(0x326)],_0x36d630=_0x1a5476=>_0x85e50f(_0x4bfcf3=>_0x4bfcf3[_0x605a5a(0x17f)]({..._0x4bfcf3['getOptions'](),..._0x1a5476}));return _0x5c238f('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x5c238f(_0x605a5a(0x24a),{'className':_0x605a5a(0x39f),'children':[_0x483c57['t']('bases-dashboard-ui.pivot.layout'),_0x1fa005(_0x4b13fc,{'className':'univer-w-36','value':String(_0x447de5[_0x605a5a(0x10d)][_0x605a5a(0xe1)]),'options':[{'value':String(_0x185dea['tabular']),'label':_0x483c57['t'](_0x605a5a(0x1ac))},{'value':String(_0x185dea[_0x605a5a(0x3da)]),'label':_0x483c57['t']('bases-dashboard-ui.pivot.layoutCompact')},{'value':String(_0x185dea[_0x605a5a(0x1a7)]),'label':_0x483c57['t'](_0x605a5a(0x1ab))}],'onChange':_0x12aa85=>{const _0x1df377=_0x605a5a;let _0x20203d=[_0x185dea[_0x1df377(0x138)],_0x185dea[_0x1df377(0x3da)],_0x185dea['outline']][_0x1df377(0x2c9)](_0x25cdb4=>String(_0x25cdb4)===_0x12aa85);_0x20203d!==void 0x0&&_0x85e50f(_0x3aa543=>_0x3aa543[_0x1df377(0x266)](_0x20203d));}})]}),[{'key':_0x605a5a(0x25b),'label':_0x605a5a(0x27d),'defaultValue':!0x1},{'key':_0x605a5a(0x296),'label':_0x605a5a(0xfe),'defaultValue':!0x1},{'key':_0x605a5a(0x1a6),'label':_0x605a5a(0x31c),'defaultValue':!0x0},{'key':_0x605a5a(0x13d),'label':_0x605a5a(0x168),'defaultValue':!0x0},{'key':_0x605a5a(0x107),'label':'bases-dashboard-ui.pivot.showColumnSubtotal','defaultValue':!0x0},{'key':_0x605a5a(0x102),'label':_0x605a5a(0x25c),'defaultValue':!0x0}][_0x605a5a(0x1ee)](_0x3bddde=>_0x5c238f('label',{'className':_0x605a5a(0x171),'children':[_0x1fa005(_0x22d09c,{'checked':!!(_0x521595[_0x3bddde[_0x605a5a(0x2fc)]]??_0x3bddde[_0x605a5a(0xe8)]),'disabled':_0x3bddde[_0x605a5a(0x2fc)]==='repeatRowLabels'&&_0x447de5['pivot'][_0x605a5a(0xe1)]===_0x185dea['compact'],'onChange':_0x20e978=>_0x36d630({[_0x3bddde[_0x605a5a(0x2fc)]]:!!_0x20e978})}),_0x483c57['t'](_0x3bddde['label'])]},_0x3bddde[_0x605a5a(0x2fc)])),_0x447de5[_0x605a5a(0x10d)][_0x605a5a(0xe1)]===_0x185dea[_0x605a5a(0x1a7)]&&_0x5c238f(_0x605a5a(0x24a),{'className':_0x605a5a(0x39f),'children':[_0x483c57['t'](_0x605a5a(0x18b)),_0x1fa005(_0x4b13fc,{'className':_0x605a5a(0x333),'value':String(_0x521595[_0x605a5a(0x31d)]??_0x568753[_0x605a5a(0x348)]),'options':[{'value':String(_0x568753[_0x605a5a(0x348)]),'label':_0x483c57['t']('bases-dashboard-ui.pivot.top')},{'value':String(_0x568753[_0x605a5a(0x199)]),'label':_0x483c57['t'](_0x605a5a(0x221))}],'onChange':_0x432ced=>{const _0x232bfd=_0x605a5a;let _0x1f51f4=[_0x568753[_0x232bfd(0x348)],_0x568753[_0x232bfd(0x199)]][_0x232bfd(0x2c9)](_0x4b8e27=>String(_0x4b8e27)===_0x432ced);_0x1f51f4!==void 0x0&&_0x36d630({'rowSubtotalPosition':_0x1f51f4});}})]}),_0x5c238f(_0x605a5a(0x24a),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x483c57['t'](_0x605a5a(0x1a4)),_0x1fa005(_0x4b13fc,{'className':_0x605a5a(0x333),'value':String(_0x447de5['pivot'][_0x605a5a(0x1d2)]===_0x2d76e7[_0x605a5a(0x322)]?_0x2d76e7[_0x605a5a(0x29b)]:_0x447de5[_0x605a5a(0x10d)][_0x605a5a(0x1d2)]),'options':[{'value':String(_0x2d76e7['Column']),'label':_0x483c57['t'](_0x605a5a(0x1f0))},{'value':String(_0x2d76e7[_0x605a5a(0x20e)]),'label':_0x483c57['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x482527=>{const _0x1cb354=_0x605a5a;let _0x47b49c=[_0x2d76e7[_0x1cb354(0x29b)],_0x2d76e7['Row']][_0x1cb354(0x2c9)](_0x393ae8=>String(_0x393ae8)===_0x482527);_0x47b49c!==void 0x0&&_0x85e50f(_0x56278b=>_0x56278b[_0x1cb354(0x1a1)](_0x47b49c,_0x56278b[_0x1cb354(0x3e9)]()<0x0?0x0:_0x56278b[_0x1cb354(0x3e9)]()));}})]}),_0x5c238f(_0x605a5a(0x24a),{'className':_0x605a5a(0x39f),'children':[_0x483c57['t'](_0x605a5a(0x30a)),_0x1fa005(_0x499d19,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x521595[_0x605a5a(0x358)]??0x1,'onChange':_0x36bb80=>{const _0x505817=_0x605a5a;let _0x69d3e=Number(_0x36bb80);Number[_0x505817(0x1b3)](_0x69d3e)&&_0x69d3e>=0x1&&_0x36d630({'pageWrap':_0x69d3e});}})]}),_0x5c238f(_0x605a5a(0x24a),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x483c57['t'](_0x605a5a(0xd2)),_0x1fa005(_0x4b13fc,{'className':_0x605a5a(0x333),'value':String(_0x521595[_0x605a5a(0x1db)]??!0x1),'options':[{'value':'false','label':_0x483c57['t'](_0x605a5a(0x384))},{'value':_0x605a5a(0x2d2),'label':_0x483c57['t'](_0x605a5a(0x1be))}],'onChange':_0x23b94a=>_0x36d630({'pageOverThenDown':_0x23b94a===_0x605a5a(0x2d2)})})]})]});}function mo(_0xf7ff0f,_0x1911f5,_0x495d09,_0x481adf){const _0xe980a6=_0x3447f8;let _0xe95b3d=_0xf7ff0f['getTableFieldsByDataFieldId'](_0x1911f5)[_0xe980a6(0x2c9)](_0x1f4967=>_0xf7ff0f['getFieldPositionInfoById'](_0x1f4967[_0xe980a6(0x2bd)]())[_0xe980a6(0x34d)]!==_0x23447d[_0xe980a6(0x1b0)]);if(_0x495d09!==_0x23447d[_0xe980a6(0x1b0)]&&_0xe95b3d){_0xf7ff0f['updateFieldPosition'](_0xe95b3d[_0xe980a6(0x2bd)](),_0x495d09,_0x481adf);return;}_0xf7ff0f[_0xe980a6(0x29f)](_0x1911f5,_0x495d09,_0x481adf);}function ho(_0x5753b7,_0xa3212a,_0x41e92d,_0x2bd4b2){const _0x4bf75d=_0x3447f8;return _0xa3212a===_0x25f34a[_0x4bf75d(0x295)]?_0x2bd4b2:_0xa3212a===_0x25f34a['date']&&_0x41e92d?_0x254bab[_0x4bf75d(0x11b)](_0x41e92d,Number(_0x5753b7)):_0x5753b7;}function go(_0x31588f){const _0x282c08=_0x3447f8;return _0x31588f[_0x282c08(0x1b9)]===_0x2940a8[_0x282c08(0x3c9)]||_0x31588f[_0x282c08(0x1b9)]===_0x2940a8[_0x282c08(0x18d)]||_0x31588f[_0x282c08(0x1b9)]===_0x2940a8['Progress']||_0x31588f[_0x282c08(0x1b9)]===_0x2940a8[_0x282c08(0x3b8)];}function _o(_0x1c03c4){const _0xd09aab=_0x3447f8;switch(_0x1c03c4){case _0x23447d[_0xd09aab(0x20e)]:return _0xd09aab(0x36f);case _0x23447d[_0xd09aab(0x29b)]:return _0xd09aab(0x3bc);case _0x23447d[_0xd09aab(0x1b0)]:return _0xd09aab(0x246);default:return _0xd09aab(0x1f3);}}function vo({config:_0x2ce3f3,onChange:_0x2c4711,runtime:_0x250a84,table:_0x4b5100}){const _0x1744c0=_0x3447f8;let _0x17e51e=_0x53af8d(_0x255457),[_0x582a4c,_0x5c186b]=_0xee90d5('chart');return _0x5c238f('aside',{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-96\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x1fa005(_0x283559,{'ariaLabel':_0x17e51e['t'](_0x1744c0(0x1a9)),'className':_0x1744c0(0x33a),'items':[{'label':_0x17e51e['t'](_0x1744c0(0x19e)),'panelId':'base-pivot-chart-configuration','value':_0x1744c0(0x1eb)},{'label':_0x17e51e['t'](_0x1744c0(0x1b7)),'panelId':_0x1744c0(0xce),'value':_0x1744c0(0x10d)}],'value':_0x582a4c,'variant':'segmented','onChange':_0x5c186b}),_0x1fa005('div',{'className':_0x1744c0(0x3e2),'children':_0x582a4c===_0x1744c0(0x1eb)?_0x250a84&&_0x1fa005(fa,{'config':_0x2ce3f3,'runtime':_0x250a84,'tableName':_0x4b5100[_0x1744c0(0x2cd)],'onChange':_0x2c4711}):_0x1fa005(ao,{'config':_0x2ce3f3,'table':_0x4b5100,'onChange':_0x2c4711})})]});}function yo({tableId:_0x38f236,unitId:_0x458af1,viewId:_0x52bd45}){const _0x32dc53=_0x3447f8;let _0x565c58=_0x53af8d(_0x1ec317),_0x4cceee=_0x53af8d(_0xa15270),_0x31eb33=_0x53af8d(_0x133842),_0x52d517=_0x53af8d(_0x255457),_0x5e8588=_0x53af8d(_0x2cc67a),[_0x17bdbe,_0x42809c]=_0xee90d5(null),[_0x2f4d9d,_0x35a31d]=_0xee90d5(null),_0x3fff56=_0x4523d4('base-pivot-chart-'+_0x2aef82(0x8)),[_0x4ff7f9,_0x376743]=_0xee90d5(!0x1),_0x1881ec=_0x4cceee[_0x32dc53(0x3be)](_0x458af1,_0x6e7cef[_0x32dc53(0x1f7)]),_0x58cf1e=_0x1881ec==null?void 0x0:_0x1881ec[_0x32dc53(0x3b6)]()[_0x32dc53(0x186)][_0x38f236],_0x2ad89f=_0x58cf1e==null?void 0x0:_0x58cf1e[_0x32dc53(0x2dc)][_0x52bd45],_0xd46c96=bo(_0x2ad89f),_0x24fccf=_r(_0x458af1,_0x38f236,_0x52bd45);if(_0x543512(()=>{const _0x4efe2e=_0x32dc53;if(!_0xd46c96)return;let _0x48e6f7=_0x3fff56[_0x4efe2e(0x23e)];return _0x5e8588[_0x4efe2e(0x1a0)](_0x48e6f7,{'unitId':_0x458af1,'tableId':_0x38f236,'viewId':_0x52bd45,'filters':[]}),()=>{const _0x2ce314=_0x4efe2e;_0x5e8588[_0x2ce314(0x197)](_0x458af1,_0x48e6f7);};},[_0xd46c96,_0x5e8588,_0x38f236,_0x458af1,_0x52bd45]),_0x543512(()=>{const _0xdc6e0c=_0x32dc53;if(!bo(_0x2ad89f))return;let _0x4a26e8=!0x0,_0x345e15={'unitId':_0x458af1,'tableId':_0x38f236,'viewId':_0x52bd45,'filters':[_0x2ad89f[_0xdc6e0c(0x14f)]??null]};return _0x5e8588[_0xdc6e0c(0x1d6)](_0x458af1,_0x3fff56['current'],_0x345e15)['then'](_0x380106=>{const _0x691b6f=_0xdc6e0c;_0x4a26e8&&_0x380106&&(_0x42809c(_0x380106),_0x35a31d(_0x5e8588[_0x691b6f(0x337)](_0x458af1,_0x3fff56[_0x691b6f(0x23e)])??null),_0x376743(!0x1));})[_0xdc6e0c(0x308)](_0xf8e1f3=>{const _0x2f6e53=_0xdc6e0c;_0x31eb33[_0x2f6e53(0x1a3)](_0x2f6e53(0x12f),_0xf8e1f3),_0x4a26e8&&(_0x42809c(null),_0x376743(!0x0));}),()=>{_0x4a26e8=!0x1;};},[_0x31eb33,_0x5e8588,_0x38f236,_0x458af1,_0x2ad89f,_0x52bd45]),!_0x58cf1e||!bo(_0x2ad89f))return null;let _0x5c64c5=_0x5e8588['getChartRuntime'](_0x458af1,_0x3fff56[_0x32dc53(0x23e)])===_0x2f4d9d?_0x2f4d9d:null,_0x26ee87=_0x17bdbe?_0x5c238f(_0x32dc53(0x1e8),{'className':_0x32dc53(0x1f9),'style':{'gridTemplateRows':_0x2ad89f['config'][_0x32dc53(0x2f2)]===_0x32dc53(0xf9)?_0x32dc53(0x11a):_0x32dc53(0x1ea)},'children':[_0x2ad89f[_0x32dc53(0x2b0)][_0x32dc53(0x2f2)]!==_0x32dc53(0x173)&&_0x5c64c5&&_0x1fa005('div',{'className':_0x32dc53(0x360),'children':_0x1fa005(Ir,{'isRowDirection':_0x18785d(_0x2ad89f[_0x32dc53(0x2b0)][_0x32dc53(0x1eb)]['orient']),'runtime':_0x5c64c5})}),_0x2ad89f[_0x32dc53(0x2b0)][_0x32dc53(0x2f2)]!=='chart'&&_0x1fa005('div',{'className':_0x32dc53(0x14e),'children':_0x1fa005(ki,{'pivot':_0x2ad89f['config'][_0x32dc53(0x10d)],'view':_0x17bdbe[_0x32dc53(0x3d6)]})})]}):_0x1fa005(_0x32dc53(0x1e8),{'className':_0x32dc53(0x158),'children':_0x4ff7f9?_0x52d517['t'](_0x32dc53(0x143)):_0x52d517['t']('bases-dashboard-ui.pivot.calculating')});return _0x5c238f(_0x32dc53(0x1e8),{'className':_0x32dc53(0x113),'children':[_0x1fa005(_0x32dc53(0x1e8),{'className':_0x32dc53(0x3fc),'children':_0x26ee87}),_0x24fccf&&_0x1fa005(vo,{'config':_0x2ad89f[_0x32dc53(0x2b0)],'runtime':_0x5c64c5,'table':_0x58cf1e,'onChange':_0x5c1f63=>{const _0x4b83d5=_0x32dc53;_0x565c58[_0x4b83d5(0x2be)](_0x22ea58['id'],{'unitId':_0x458af1,'tableId':_0x38f236,'viewId':_0x52bd45,'patch':_0x5c1f63})[_0x4b83d5(0x308)](_0x1b572c=>_0x31eb33[_0x4b83d5(0x1a3)](_0x4b83d5(0x39a),_0x1b572c));}})]});}function bo(_0x34e123){const _0x409370=_0x3447f8;return(_0x34e123==null?void 0x0:_0x34e123[_0x409370(0x1b9)])===_0x4da0de[_0x409370(0x1ec)]&&typeof _0x34e123[_0x409370(0x2b0)]==_0x409370(0x2f1)&&_0x34e123[_0x409370(0x2b0)]!==null&&_0x409370(0x10d)in _0x34e123[_0x409370(0x2b0)]&&_0x409370(0x1eb)in _0x34e123[_0x409370(0x2b0)]&&_0x409370(0x2f2)in _0x34e123[_0x409370(0x2b0)];}let xo=class extends _0x47ac6f{constructor(_0x51c5f2,_0x54f871,_0x31f053,_0x2c7026,_0x416925,_0xabc562){const _0x3d7725=_0x3447f8;super(),this[_0x3d7725(0x36c)](_0x54f871['register']({'type':_0x4da0de[_0x3d7725(0x1ec)],'renderMode':_0x3d7725(0x30f),'icon':_0x551361,'component':yo,'menu':{get 'label'(){const _0x3ec0d4=_0x3d7725;return _0xabc562['t'](_0x3ec0d4(0x1a9));},get 'description'(){const _0x5c948e=_0x3d7725;return _0xabc562['t'](_0x5c948e(0x1a5));},get 'defaultName'(){const _0x18d305=_0x3d7725;return _0xabc562['t'](_0x18d305(0x270));}}})),this[_0x3d7725(0x36c)](_0x51c5f2['register'](So(_0x31f053,_0x2c7026,_0x416925,_0xabc562)));}};xo=Or([Y(0x0,_0x3460c3),Y(0x1,_0x198cb9),Y(0x2,_0x1e6fb0(_0x4e6cdd)),Y(0x3,_0x1ec317),Y(0x4,_0x58608a),Y(0x5,_0x1e6fb0(_0x255457))],xo);function So(_0x28de39,_0x4658d9,_0x3a7df1,_0x2b8518){const _0x2bc5fb=_0x3447f8;return{'change$':_0x1691f8(_0x28de39['change$'],_0x3a7df1[_0x2bc5fb(0x214)]),'component':Ja,get 'labels'(){const _0x5ca943=_0x2bc5fb;return{'add':_0x2b8518['t'](_0x5ca943(0x19b)),'configure':_0x51fbed=>_0x2b8518['t'](_0x5ca943(0x291),_0x51fbed),'delete':_0x2b8518['t']('bases-dashboard-ui.dashboard.delete'),'new':_0x2b8518['t']('bases-dashboard-ui.dashboard.new'),'rename':_0x2b8518['t']('bases-dashboard-ui.dashboard.rename'),'search':_0x2b8518['t'](_0x5ca943(0xf4)),'section':_0x2b8518['t']('bases-dashboard-ui.dashboard.section')};},'getItems':_0x45b69d=>{const _0x4537b1=_0x2bc5fb;let _0x28a675=_0x28de39[_0x4537b1(0x29d)](_0x45b69d);return _0x28a675['dashboardOrder'][_0x4537b1(0x30c)](_0x193607=>{const _0xc965ce=_0x4537b1;let _0x2be8bd=_0x28a675['dashboards'][_0x193607];return _0x2be8bd?[{'id':_0x2be8bd['id'],'name':_0x2be8bd[_0xc965ce(0x2cd)],'readonly':!_0x314d1d(_0x3a7df1,_0x45b69d,_0x2be8bd['id'])}]:[];});},'create':async _0x1b6352=>{const _0xc72793=_0x2bc5fb;let _0x1fa413=_0x28de39['getResource'](_0x1b6352),_0x496866=_0xc72793(0x13a)+_0x2aef82(0x8),_0x36e8cc=Co(_0x1fa413['dashboardOrder']['flatMap'](_0xf32ba=>{const _0x3bd9e9=_0xc72793;let _0x23a9ae=_0x1fa413[_0x3bd9e9(0x1fc)][_0xf32ba];return _0x23a9ae?[_0x23a9ae[_0x3bd9e9(0x2cd)]]:[];}),_0x3705cb=>_0x2b8518['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x3705cb)));return await _0x4658d9[_0xc72793(0x2be)](_0x15bed1['id'],{'unitId':_0x1b6352,'dashboard':{'id':_0x496866,'name':_0x36e8cc,'widgetOrder':[],'widgets':{}}})?_0x496866:null;},'rename':async(_0x52e180,_0x162647,_0x5b25a3)=>{const _0x5f35ab=_0x2bc5fb;let _0x149d6e=_0x28de39[_0x5f35ab(0x2cf)](_0x52e180,_0x162647);return!!(_0x149d6e&&await _0x4658d9['executeCommand'](_0x51a517['id'],{'unitId':_0x52e180,'dashboard':{..._0x149d6e,'name':_0x5b25a3}}));},'remove':(_0x29dae4,_0x51465b)=>_0x4658d9[_0x2bc5fb(0x2be)](_0x56eacd['id'],{'unitId':_0x29dae4,'dashboardId':_0x51465b})};}function Co(_0x3718ce,_0x22921c){const _0x5c6790=_0x3447f8;let _0x19c750=new Set(_0x3718ce),_0x1e8749=_0x19c750['size']+0x1,_0xbd30ea=_0x22921c(_0x1e8749);for(;_0x19c750[_0x5c6790(0x3a4)](_0xbd30ea);)_0x1e8749+=0x1,_0xbd30ea=_0x22921c(_0x1e8749);return _0xbd30ea;}let wo=class extends _0x4b5524{constructor(_0x34921d=hr,_0x475234,_0x1ca8ce){const _0x2aa227=_0x3447f8;super(),this['_config']=_0x34921d,this['_injector']=_0x475234,this[_0x2aa227(0x3dc)]=_0x1ca8ce;let {..._0x1b7d62}=_0x2b2cf0({},hr,this[_0x2aa227(0x2ae)]);this[_0x2aa227(0x3dc)][_0x2aa227(0x1ef)](mr,_0x1b7d62);}[_0x3447f8(0x192)](){const _0x3416cc=_0x3447f8;this[_0x3416cc(0x3e5)][_0x3416cc(0x1fa)]([kr]),this[_0x3416cc(0x3e5)][_0x3416cc(0x1fa)]([Gr]),this[_0x3416cc(0x3e5)][_0x3416cc(0x1fa)]([xo]);}[_0x3447f8(0xec)](){const _0x5b538c=_0x3447f8;_0x3ce29c(this[_0x5b538c(0x3e5)],[[kr],[Gr],[xo]]);}};Pr(wo,_0x3447f8(0x1b9),_0x6e7cef['UNIVER_BASE']),Pr(wo,_0x3447f8(0x255),_0x3447f8(0x206)),Pr(wo,_0x3447f8(0x3b1),fr),Pr(wo,_0x3447f8(0x176),pr),wo=Or([_0xc92a94(_0x267ea2,_0x12b6ef,_0x3c0cd9,_0x22f198,_0x100373,_0x442bae),Y(0x1,_0x1e6fb0(_0x49fd9b)),Y(0x2,_0x56e562)],wo);export{na as UniverBaseDashboardMobileUIPlugin,wo as UniverBaseDashboardUIPlugin};
1
+ const _0x57c180=_0x44d8;(function(_0xb6aee0,_0x344096){const _0x4ac652=_0x44d8,_0x2bd1a1=_0xb6aee0();while(!![]){try{const _0x2a0c80=-parseInt(_0x4ac652(0x2d6))/0x1+-parseInt(_0x4ac652(0x1ab))/0x2+-parseInt(_0x4ac652(0x31e))/0x3*(parseInt(_0x4ac652(0x199))/0x4)+-parseInt(_0x4ac652(0x305))/0x5*(-parseInt(_0x4ac652(0x1af))/0x6)+-parseInt(_0x4ac652(0x2ac))/0x7+-parseInt(_0x4ac652(0x34c))/0x8*(-parseInt(_0x4ac652(0x3c9))/0x9)+parseInt(_0x4ac652(0x3ca))/0xa*(parseInt(_0x4ac652(0x187))/0xb);if(_0x2a0c80===_0x344096)break;else _0x2bd1a1['push'](_0x2bd1a1['shift']());}catch(_0x434512){_0x2bd1a1['push'](_0x2bd1a1['shift']());}}}(_0x59a9,0x99ef8));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x3bde0c,BASES_DASHBOARD_GRID_COLUMNS as _0x16d92d,BaseChartRuntimeService as _0x534e77,BaseDashboardResourceService as _0x1e99fb,BaseDashboardWidgetType as _0x925244,CreateBaseDashboardCommand as _0x2a269b,DeleteBaseDashboardCommand as _0x452258,RemoveBaseDashboardWidgetCommand as _0x6dd3ea,UniverBaseDashboardPlugin as _0x398c3a,UpdateBaseDashboardCommand as _0x16ed85,UpdateBasePivotViewCommand as _0x26095f,UpsertBaseDashboardWidgetCommand as _0x5a7b78,canEditBaseDashboard as _0x1377c4,canEditBasePivotView as _0x472988,createBasePivotTable as _0x4ae6f2,resolveBasePivotChartRowDirection as _0x143525}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x47e1b0,BaseMobileDrawer as _0x5ae53d,BaseMobileFilterOperand as _0x384525,BaseMobileFilterPanel as _0x123ae3,BaseUnitCollaborationStatus as _0xf99d34,FormulaEditorPanel as _0x24b807,IBaseDashboardUIExtensionRegistryService as _0x5135cb,IBaseViewUIRegistryService as _0x452fc8,MobileFormulaEditorPanel as _0x4c5f2e,UniverBasesMobileUIPlugin as _0x305f36,UniverBasesUIPlugin as _0x3fa7c8,formulaToEditorFormula as _0x23590c,normalizeEditorFormulaForConfig as _0x909b28,toFormulaMenuTables as _0x3fc9b5,toMenuFields as _0x20d50d}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x3c2b9a,ChartAxisSection as _0x4ecd7e,ChartColorField as _0x14a84b,ChartCommonDataMappingSection as _0x236f8b,ChartEditBlockTitle as _0x20c528,ChartEditPanel as _0x5cb021,ChartEditPanelSection as _0xd01354,ChartEditPanelTab as _0x34d32e,ChartEditPanelTabs as _0x2e9f58,ChartEditorCapability as _0x262643,ChartEditorProvider as _0x4c2ea3,ChartFunnelStyleSection as _0x5c8bd4,ChartGradientFillField as _0x365082,ChartGridlinesAndTicksSection as _0x41e9c3,ChartHeatmapStyleSection as _0x56789e,ChartHostAdapter as _0x4e622f,ChartIndicatorLineSection as _0x5eb7b1,ChartLegendSection as _0x3c5065,ChartLineAndAreaSection as _0x152bb6,ChartNumberFormatAtom as _0x1984da,ChartParetoSeriesSection as _0x7a917b,ChartPieStyleSection as _0x55a368,ChartRadarStyleSection as _0x807256,ChartRelationStyleSection as _0xf308df,ChartSectionAccordion as _0x2794c9,ChartSectionAccordionContent as _0x4bb2c8,ChartSectionAccordionItem as _0x511a83,ChartSectionAccordionTrigger as _0x22a0cc,ChartSeriesSection as _0xfcfe0d,ChartStackField as _0x5ab8f3,ChartStyleSection as _0x36f8fa,ChartThemeField as _0x40668c,ChartTitlesSection as _0x3b2df6,ChartTrendlineSection as _0x1928c4,ChartTypeField as _0x1e47f4,ChartTypeSpecificDataSection as _0x260003,ChartTypeSpecificSetupSection as _0x60f00e,ChartTypeSpecificStyleSection as _0x4ea50d,ChartUIService as _0x4acbdf,ChartViewStateRegistry as _0x49b052,ChartWaterfallSetupFields as _0x115741,ChartWaterfallStyleSection as _0x29de7e,ChartWordCloudStyleSection as _0x14d125,DEFAULT_CHART_AXIS_VALUES as _0x5bb0d7,DEFAULT_CHART_FUNNEL_VALUES as _0x2ade94,DEFAULT_CHART_HEATMAP_VALUES as _0x56fd38,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x4505bf,DEFAULT_CHART_LEGEND_VALUES as _0x255bea,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x334ac6,DEFAULT_CHART_PARETO_VALUES as _0x50369c,DEFAULT_CHART_PIE_VALUES as _0x2a7701,DEFAULT_CHART_RADAR_VALUES as _0x23b3e2,DEFAULT_CHART_RELATION_VALUES as _0x47989a,DEFAULT_CHART_SERIES_VALUES as _0x6b2197,DEFAULT_CHART_STYLE_VALUES as _0x11b3b9,DEFAULT_CHART_TITLE_VALUES as _0x4012e3,DEFAULT_CHART_TRENDLINE_VALUES as _0x1f404b,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x2665d6,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x15d409,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x5f4293,MobileChartEditorControls as _0xb7bcd0,MobileChartEditorProvider as _0x247ccf,UniverChartMobileUIPlugin as _0x15321a,UniverChartUIPlugin as _0x5596f9,buildChartTypeSelectOptions as _0x5447e3,chartTypeSupportsCapability as _0x20bcdc,chartTypeSupportsLineAndAreaStyle as _0x41979c,useChartEditorChartType as _0x1600aa,useChartEditorHasRightAxis as _0x4abcf3}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x187023}from'@univerjs-pro/license';import{ShapeFormulaService as _0x326d00,UniverShapeEditorPlugin as _0x379239,createFormulaShapeData as _0x46c966}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0x36d8a8,BaseFilterConjunction as _0x26a62d,BaseFilterOperator as _0x170c06,BaseViewType as _0x4e046d,DependentOn as _0x9eb0d5,Disposable as _0x7c5363,ICommandService as _0x20bf70,IConfigService as _0x19da82,IImageIoService as _0x26f888,ILogService as _0xa0671c,IPermissionService as _0x31dc6c,IUndoRedoService as _0x21d906,IUniverInstanceService as _0xfa1040,ImageSourceType as _0x2e9f9a,Inject as _0xfb26ea,Injector as _0x3fc728,LocaleService as _0xc34a30,ObjectPermissionService as _0x202eb7,Plugin as _0x239fa2,RedoCommand as _0x409470,ThemeService as _0x2f0481,UndoCommand as _0x114bc6,UniverInstanceType as _0x1be7ab,createParagraphId as _0x1d37b5,dateKit as _0x592859,generateRandomId as _0x2bbf35,merge as _0x50ef5d,numfmt as _0x80f5c8,touchDependencies as _0x5e38a1}from'@univerjs/core';import{UniverDocsUIPlugin as _0x42b4c7}from'@univerjs/docs-ui';import{ArrowDownIcon as _0x6231e1,ArrowUpIcon as _0x556586,AscendingIcon as _0x4b54c1,CalendarIcon as _0x5ece4d,ChartIcon as _0x54efa1,CloseIcon as _0x2967a2,DeleteIcon as _0x4e3f72,DescendingIcon as _0x29065b,ExpandIcon as _0x7dfdc8,FilterIcon as _0x3b1c88,GripVerticalIcon as _0x4e0043,IncreaseIcon as _0x5d1373,MoreDownIcon as _0x39bc4e,MoreHorizontalIcon as _0x5e1024,NumberIcon as _0x1ef1cd,PenIcon as _0x473cd9,PivotTableIcon as _0x26e878,ProtectIcon as _0x4c92f0,RedoIcon as _0x9460ca,SearchIcon as _0x686afa,TextIcon as _0x427459,UndoIcon as _0x1d73f1}from'@univerjs/icons';import{combineLatest as _0x1d680b,map as _0x3b1cb4,merge as _0x2391b4,skip as _0x156d4e}from'rxjs';import{SetBasePermissionCommand as _0x2a9b6a,getBaseDashboardPermissionObjectId as _0x23d43e}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x366739}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x33c489,ShapeLineTypeEnum as _0x4a9ee5,ShapeTypeEnum as _0x54b8df}from'@univerjs-pro/engine-shape';import{Button as _0x29df96,Checkbox as _0x57ec08,DatePicker as _0x65183b,Dialog as _0x200c20,DropdownMenu as _0x1f43a4,Input as _0x225487,InputNumber as _0x142183,MobileDialog as _0x59b7d9,MobileDropdownMenu as _0x1936c5,MobileSelect as _0x387f08,MultipleSelect as _0x5ee40c,Segmented as _0x9bce40,Select as _0x103c6a,Textarea as _0x98f9d1,Tooltip as _0x79306f,borderClassName as _0x1ba91b,clsx as _0x3c6675,scrollbarClassName as _0x32f99e}from'@univerjs/design';import{UnitObject as _0x368318}from'@univerjs/protocol';import{ILayoutService as _0x270a90,ObjectPermissionButton as _0x4603f1,openObjectPermissionDialog as _0x27fc04,useDependency as _0x3dc792,useObservable as _0x1cdd28}from'@univerjs/ui';import{useCallback as _0xd5c68e,useEffect as _0x5a872b,useMemo as _0x4561c2,useRef as _0x26ca56,useState as _0x155c41}from'react';import{Fragment as _0x30443f,jsx as _0x1bfcde,jsxs as _0x3fc05f}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x33d81c,ChartRenderMode as _0x37b5be,ChartThemeService as _0x51e39d,ChartTypeBits as _0x546fc5,ChartWaterfallStyleTarget as _0x588af0,IChartRenderModelManagerService as _0x188f83,RTLChartStyle as _0x1cf164,chartBitsUtils as _0x579955,chartTypeCanUseTrendLine as _0x3d1aed,resolveChartRuntimeStyle as _0x556430,resolveDefaultChartHostFrameStyle as _0x1148bd,toChartModelUpdate as _0x206b2e}from'@univerjs-pro/engine-chart';import{createPortal as _0x168f49}from'react-dom';import{PivotCellStyleTypeEnum as _0x487530,PivotDataFieldDataTypeEnum as _0x2be849,PivotDataFieldSortOperatorEnum as _0x217088,PivotFilterTypeEnum as _0x38a435,PivotLayoutTypeEnum as _0x363820,PivotSubtotalPositionEnum as _0x2fcd7c,PivotSubtotalTypeEnum as _0x48c6be,PivotTableFiledAreaEnum as _0x3881d5,PivotTableValuePositionEnum as _0xb31626,isErrorValue as _0x3ede5d,isPrefixValue as _0x3c427e}from'@univerjs-pro/engine-pivot';var fr='@univerjs-pro/bases-dashboard-ui',pr=_0x57c180(0x195);const mr=_0x57c180(0x154),hr={};function gr(_0x81f8b7,_0x4cd83a){const _0xb92e29=_0x57c180;let _0x1f14f1=_0x3dc792(_0x31dc6c),_0x54c68b=_0x1377c4(_0x1f14f1,_0x81f8b7,_0x4cd83a);return _0x1cdd28(()=>_0x1f14f1[_0xb92e29(0x3dd)][_0xb92e29(0x391)](_0x3b1cb4(()=>_0x1377c4(_0x1f14f1,_0x81f8b7,_0x4cd83a))),_0x54c68b,!0x1,[_0x4cd83a,_0x1f14f1,_0x81f8b7]);}function _r(_0x11a2c3,_0x55b551,_0x388490){const _0x5e1e6b=_0x57c180;let _0x55d9b9=_0x3dc792(_0x31dc6c),_0x2fb25a=_0x472988(_0x55d9b9,_0x11a2c3,_0x55b551,_0x388490);return _0x1cdd28(()=>_0x55d9b9[_0x5e1e6b(0x3dd)][_0x5e1e6b(0x391)](_0x3b1cb4(()=>_0x472988(_0x55d9b9,_0x11a2c3,_0x55b551,_0x388490))),_0x2fb25a,!0x1,[_0x55d9b9,_0x55b551,_0x11a2c3,_0x388490]);}function vr(_0x115f4f,_0x2fb64d=_0x57c180(0x3a5)){const _0x46df63=_0x57c180;return{'backgroundImage':'url('+JSON['stringify'](_0x115f4f)+')','backgroundPosition':_0x2fb64d===_0x46df63(0x32c)?_0x46df63(0x472):_0x46df63(0x28e),'backgroundRepeat':_0x2fb64d==='repeat'?_0x46df63(0x32c):_0x46df63(0x328),'backgroundSize':_0x2fb64d===_0x46df63(0x3a5)?_0x46df63(0x3a5):_0x46df63(0x27e)};}const yr={'alignment':'left','currency':'USD','decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x57c180(0x27e),'numberFormat':'general'},br={'CNY':'¥','EUR':'€','USD':'$'};function xr(_0x287a37){const _0x5a1c43=_0x57c180;var _0x25c575;let _0x5ea65d=Tr(((_0x25c575=_0x287a37[_0x5a1c43(0x20a)][_0x5a1c43(0x251)])==null||(_0x25c575=_0x25c575[_0x5a1c43(0x441)])==null?void 0x0:_0x25c575[_0x5a1c43(0x1e2)])??'');return{...yr,..._0x5ea65d,..._0x287a37[_0x5a1c43(0x44b)]};}function Sr(_0x1febdf,_0x48f2c2){const _0x4f4eb3=_0x57c180;let _0x3b9698={..._0x1febdf[_0x4f4eb3(0x44b)],..._0x48f2c2},_0x37a628=xr({..._0x1febdf,'appearance':_0x3b9698}),_0x213b43=_0x1febdf[_0x4f4eb3(0x20a)][_0x4f4eb3(0x251)]??{'formula':''};return{..._0x1febdf,'appearance':_0x3b9698,'shapeData':{..._0x1febdf['shapeData'],'formulaBinding':{..._0x213b43,'numberFormat':{'pattern':Cr(_0x37a628[_0x4f4eb3(0x441)],_0x37a628['decimalPlaces'],_0x37a628[_0x4f4eb3(0x214)])}}}};}function Cr(_0x406816,_0x1027fd,_0x14e021){const _0x7a5720=_0x57c180;let _0x4a1e7c=Math[_0x7a5720(0x203)](0x0,Math[_0x7a5720(0x295)](0x8,Math[_0x7a5720(0x33b)](_0x1027fd))),_0x16d389=_0x4a1e7c?'.'+'0'[_0x7a5720(0x32c)](_0x4a1e7c):'';switch(_0x406816){case _0x7a5720(0x338):return'0'+_0x16d389;case _0x7a5720(0x3b1):return'0'+_0x16d389+'%';case _0x7a5720(0x214):return(br[_0x14e021]??_0x14e021)+_0x7a5720(0x309)+_0x16d389;case _0x7a5720(0x4a4):return _0x7a5720(0x309)+_0x16d389;case _0x7a5720(0x1c4):case _0x7a5720(0x452):return _0x7a5720(0x194);}}function wr(_0x2da5d6,_0x98a638,_0x5ea697){const _0x69c637=_0x57c180;return _0x5ea697[_0x69c637(0x441)]!=='compact'||typeof _0x98a638!=_0x69c637(0x338)||!Number['isFinite'](_0x98a638)?_0x2da5d6:new Intl[(_0x69c637(0x466))](void 0x0,{'notation':_0x69c637(0x1c4),'minimumFractionDigits':_0x5ea697[_0x69c637(0x336)]??0x0,'maximumFractionDigits':_0x5ea697[_0x69c637(0x336)]??0x0})[_0x69c637(0x23c)](_0x98a638);}function Tr(_0x9c909e){const _0x934221=_0x57c180;var _0x2ed381,_0x3515df;if(!_0x9c909e||_0x9c909e===_0x934221(0x194))return{};let _0x5f1359=_0x9c909e[_0x934221(0x344)](/\.([0#]+)/),_0x25a43c=(_0x5f1359==null||(_0x2ed381=_0x5f1359[0x1])==null?void 0x0:_0x2ed381['length'])??0x0;if(_0x9c909e['includes']('%'))return{'decimalPlaces':_0x25a43c,'numberFormat':_0x934221(0x3b1)};let _0x373981=(_0x3515df=Object[_0x934221(0x30f)](br)['find'](([,_0x468c76])=>_0x9c909e[_0x934221(0x300)](_0x468c76)))==null?void 0x0:_0x3515df[0x0];return _0x373981?{'currency':_0x373981,'decimalPlaces':_0x25a43c,'numberFormat':_0x934221(0x214)}:{'decimalPlaces':_0x25a43c,'numberFormat':_0x9c909e[_0x934221(0x300)](',')?_0x934221(0x4a4):_0x934221(0x338)};}const Er={'center':'center','left':_0x57c180(0x29a),'right':_0x57c180(0x35b)};function Dr({dashboardId:_0x349941,unitId:_0x3091c5,widget:_0x11d7d7}){const _0x56ba30=_0x57c180;var _0xfc7f71,_0xcd0887,_0x332ae8,_0x3d4256,_0x3d4340,_0x4efdd1,_0x125042,_0x4dfcd3,_0x43c93e;let _0xb6969=_0x3dc792(_0x326d00),_0x31a853=_0x3dc792(_0x26f888),_0x1a432b=_0x3dc792(_0xc34a30),_0x133817=_0x4561c2(()=>({'hostType':_0x1be7ab['UNIVER_BASE'],'unitId':_0x3091c5,'subUnitId':_0x349941,'shapeId':_0x11d7d7['id']}),[_0x349941,_0x3091c5,_0x11d7d7['id']]),[_0x18c04e,_0x3a3ebd]=_0x155c41(()=>_0xb6969[_0x56ba30(0x21a)](_0x133817)),[_0x1314c1,_0x5d6322]=_0x155c41(()=>{const _0x3c9665=_0x56ba30;var _0x177f56;return(_0x177f56=_0xb6969[_0x3c9665(0x359)](_0x133817))==null?void 0x0:_0x177f56[_0x3c9665(0x435)];}),[_0x3f4369,_0x1ce16f]=_0x155c41(),_0x265253=_0x26ca56(null),_0x4445be=_0x26ca56(null),_0xa2cfbe=xr(_0x11d7d7);_0x5a872b(()=>{const _0x37f0f6=_0x56ba30;let _0x203813=_0xb6969[_0x37f0f6(0x167)][_0x37f0f6(0x1a5)](_0x2c8251=>{const _0x537e42=_0x37f0f6;_0x2c8251[_0x537e42(0x264)]===_0x3091c5&&_0x2c8251[_0x537e42(0x489)]===_0x349941&&_0x2c8251[_0x537e42(0x237)]===_0x11d7d7['id']&&(_0x3a3ebd(_0x2c8251[_0x537e42(0x1ed)]),_0x5d6322(_0x2c8251[_0x537e42(0x296)][_0x537e42(0x435)]));});return()=>_0x203813[_0x37f0f6(0x172)]();},[_0x349941,_0xb6969,_0x133817,_0x3091c5,_0x11d7d7['id']]),_0x5a872b(()=>{const _0x1f6e17=_0x56ba30;let _0x4c39ee=_0xa2cfbe['backgroundImage'];if(!_0x4c39ee||_0x4c39ee[_0x1f6e17(0x407)]!==_0x2e9f9a[_0x1f6e17(0x2bb)])return;let _0x5d296a=_0x31a853['getImageSourceCache'](_0x4c39ee[_0x1f6e17(0x153)],_0x4c39ee[_0x1f6e17(0x407)]);if(_0x5d296a!=null&&_0x5d296a['src'])return;let _0x5f4cad=!0x0;return _0x31a853[_0x1f6e17(0x481)](_0x4c39ee[_0x1f6e17(0x153)])['then'](_0x1ea289=>{const _0x3aca2f=_0x1f6e17;_0x5f4cad&&_0x1ce16f({'source':_0x4c39ee[_0x3aca2f(0x153)],'value':_0x1ea289});})[_0x1f6e17(0x2cb)](()=>void 0x0),()=>{_0x5f4cad=!0x1;};},[_0xa2cfbe['backgroundImage'],_0x31a853]);let _0x5df257=((_0xfc7f71=_0xa2cfbe[_0x56ba30(0x1c6)])==null?void 0x0:_0xfc7f71['sourceType'])===_0x2e9f9a[_0x56ba30(0x2bb)]?((_0xcd0887=_0x31a853[_0x56ba30(0x250)](_0xa2cfbe[_0x56ba30(0x1c6)][_0x56ba30(0x153)],_0xa2cfbe[_0x56ba30(0x1c6)][_0x56ba30(0x407)]))==null?void 0x0:_0xcd0887[_0x56ba30(0x242)])??((_0x3f4369==null?void 0x0:_0x3f4369[_0x56ba30(0x153)])===_0xa2cfbe[_0x56ba30(0x1c6)][_0x56ba30(0x153)]?_0x3f4369[_0x56ba30(0x435)]:''):((_0x332ae8=_0xa2cfbe['backgroundImage'])==null?void 0x0:_0x332ae8[_0x56ba30(0x153)])??'',_0xfac7b2=_0x11d7d7['shapeData'][_0x56ba30(0x2ce)],_0x4d35aa=_0xfac7b2&&'dataModel'in _0xfac7b2?(_0x3d4256=_0xfac7b2[_0x56ba30(0x3fd)])==null?void 0x0:_0x3d4256[_0x56ba30(0x34e)]:void 0x0,_0x5e8062=wr((_0x18c04e==null?void 0x0:_0x18c04e[_0x56ba30(0x22e)])??'',_0x1314c1,_0xa2cfbe),_0x1b8d8c=_0x11d7d7[_0x56ba30(0x20a)][_0x56ba30(0x162)],_0x369cfa=_0x11d7d7[_0x56ba30(0x20a)][_0x56ba30(0x2a0)],_0x395ff5=_0x4d35aa==null||(_0x3d4340=_0x4d35aa[_0x56ba30(0x2d1)])==null?void 0x0:_0x3d4340[_0x56ba30(0x40c)],_0x5a0756=_0x11d7d7[_0x56ba30(0x18f)]??_0x11d7d7['title']??'';return _0x5a872b(()=>{const _0x49a4df=_0x56ba30;let _0x3ce24d=_0x265253[_0x49a4df(0x18a)],_0x2402f6=_0x4445be['current'];if(!_0x3ce24d||!_0x2402f6)return;let _0x10db3b=()=>{const _0x4f9a41=_0x49a4df;if(_0xa2cfbe[_0x4f9a41(0x204)]===_0x4f9a41(0x29e)||!_0x3ce24d['clientWidth']||!_0x3ce24d[_0x4f9a41(0x326)]){_0x2402f6[_0x4f9a41(0x1d6)][_0x4f9a41(0x2cd)]=_0xa2cfbe[_0x4f9a41(0x2cd)]+'px';return;}let _0x4704c9=0x1,_0x540e70=0x48,_0x357223=_0x4704c9;for(;_0x4704c9<=_0x540e70;){let _0x1cd7f5=Math['floor']((_0x4704c9+_0x540e70)/0x2);_0x2402f6['style']['fontSize']=_0x1cd7f5+'px',_0x2402f6['scrollWidth']<=_0x3ce24d[_0x4f9a41(0x3f4)]&&_0x2402f6[_0x4f9a41(0x2bf)]<=_0x3ce24d[_0x4f9a41(0x326)]?(_0x357223=_0x1cd7f5,_0x4704c9=_0x1cd7f5+0x1):_0x540e70=_0x1cd7f5-0x1;}_0x2402f6[_0x4f9a41(0x1d6)][_0x4f9a41(0x2cd)]=_0x357223+'px';};if(_0x10db3b(),typeof ResizeObserver>'u')return;let _0x5d4514=new ResizeObserver(_0x10db3b);return _0x5d4514['observe'](_0x3ce24d),()=>_0x5d4514[_0x49a4df(0x227)]();},[_0xa2cfbe['fontSize'],_0xa2cfbe[_0x56ba30(0x204)],_0x5e8062]),_0x3fc05f(_0x56ba30(0x332),{'data-dashboard-formula-shape':_0x11d7d7['id'],'className':'univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-flex-col\x20univer-justify-center\x20univer-overflow-hidden\x20univer-bg-gray-0\x20univer-p-4\x20univer-text-gray-1000\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-50','style':{'backgroundColor':((_0x4efdd1=_0x11d7d7['appearance'])==null?void 0x0:_0x4efdd1[_0x56ba30(0x26f)])??((_0x1b8d8c==null?void 0x0:_0x1b8d8c[_0x56ba30(0x3b2)])===_0x33c489[_0x56ba30(0x2f8)]?_0x1b8d8c[_0x56ba30(0x196)]??void 0x0:void 0x0),'border':(_0x369cfa==null?void 0x0:_0x369cfa[_0x56ba30(0x3dc)])===_0x4a9ee5['SolidLine']?(_0x369cfa[_0x56ba30(0x20d)]??0x1)+_0x56ba30(0x225)+(_0x369cfa[_0x56ba30(0x196)]??_0x56ba30(0x49d)):void 0x0,'borderRadius':_0x11d7d7[_0x56ba30(0x30c)]===_0x54b8df[_0x56ba30(0x39a)]?0xc:void 0x0,'color':((_0x125042=_0x11d7d7['appearance'])==null?void 0x0:_0x125042[_0x56ba30(0x386)])??(_0x18c04e==null?void 0x0:_0x18c04e[_0x56ba30(0x196)])??(_0x395ff5==null||(_0x4dfcd3=_0x395ff5['cl'])==null?void 0x0:_0x4dfcd3['rgb'])??void 0x0,'fontWeight':_0x395ff5!=null&&_0x395ff5['bl']?0x258:void 0x0,'textAlign':_0xa2cfbe[_0x56ba30(0x283)]},'children':[_0x5df257&&_0x1bfcde('img',{'src':_0x5df257,'alt':'','aria-hidden':_0x56ba30(0x44f),'className':_0x56ba30(0x275),'style':{'objectFit':((_0x43c93e=_0xa2cfbe[_0x56ba30(0x1c6)])==null?void 0x0:_0x43c93e['fit'])??_0x56ba30(0x3a5)}}),_0x3fc05f(_0x56ba30(0x332),{'className':_0x56ba30(0x19f),'children':[_0x5a0756&&_0x1bfcde(_0x56ba30(0x332),{'data-dashboard-formula-description':!0x0,'className':_0x56ba30(0x39b),'children':_0x5a0756}),_0x1bfcde(_0x56ba30(0x332),{'ref':_0x265253,'data-dashboard-formula-value':!0x0,'aria-label':_0x5a0756||_0x1a432b['t'](_0x56ba30(0x4a7)),'className':_0x56ba30(0x473),'style':{'justifyContent':Er[_0xa2cfbe[_0x56ba30(0x283)]]},'children':_0x1bfcde(_0x56ba30(0x45e),{'ref':_0x4445be,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0xa2cfbe[_0x56ba30(0x204)],'className':'univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','children':_0x5e8062})})]})]});}function Y(_0x288006,_0x180e8b){return function(_0x3f087d,_0x520ece){_0x180e8b(_0x3f087d,_0x520ece,_0x288006);};}function Or(_0x4bb416,_0x12ed86,_0x699ec6,_0x2dc8b3){const _0x3f6d0a=_0x57c180;var _0x5e2999=arguments['length'],_0x4be1f7=_0x5e2999<0x3?_0x12ed86:_0x2dc8b3===null?_0x2dc8b3=Object[_0x3f6d0a(0x223)](_0x12ed86,_0x699ec6):_0x2dc8b3,_0x1156d0;if(typeof Reflect==_0x3f6d0a(0x177)&&typeof Reflect[_0x3f6d0a(0x26d)]=='function')_0x4be1f7=Reflect[_0x3f6d0a(0x26d)](_0x4bb416,_0x12ed86,_0x699ec6,_0x2dc8b3);else{for(var _0x1a5e16=_0x4bb416[_0x3f6d0a(0x291)]-0x1;_0x1a5e16>=0x0;_0x1a5e16--)(_0x1156d0=_0x4bb416[_0x1a5e16])&&(_0x4be1f7=(_0x5e2999<0x3?_0x1156d0(_0x4be1f7):_0x5e2999>0x3?_0x1156d0(_0x12ed86,_0x699ec6,_0x4be1f7):_0x1156d0(_0x12ed86,_0x699ec6))||_0x4be1f7);}return _0x5e2999>0x3&&_0x4be1f7&&Object[_0x3f6d0a(0x3a7)](_0x12ed86,_0x699ec6,_0x4be1f7),_0x4be1f7;}let kr=class{constructor(_0x164959,_0x29e705,_0x488991){const _0x11a7b7=_0x57c180;this['_localeService']=_0x164959,this[_0x11a7b7(0x370)]=_0x29e705,this[_0x11a7b7(0x2e8)]=_0x488991;}['createDomChartInstance'](){const _0x553f63=_0x57c180;return this[_0x553f63(0x2e8)][_0x553f63(0x422)](_0x37b5be[_0x553f63(0x2a1)],this[_0x553f63(0x47c)]());}[_0x57c180(0x3c7)](_0x360a22){const _0x59bead=_0x57c180;let _0x136e29=_0x360a22[_0x59bead(0x2aa)][_0x59bead(0x163)];if(!_0x136e29)throw Error(_0x59bead(0x393)+_0x360a22[_0x59bead(0x1f4)]+_0x59bead(0x249));let _0x3d2e37=this['_localeService'][_0x59bead(0x3c3)]();return{'config':_0x136e29,'style':_0x556430({..._0x360a22['model'][_0x59bead(0x1d6)],'runtime':_0x360a22[_0x59bead(0x2aa)][_0x59bead(0x45b)](_0x3d2e37),'direction':_0x3d2e37},_0x136e29['type'])};}['_createContext'](){const _0x3c2762=_0x57c180;return{'resolveHostStyle':({style:_0x5379cc})=>_0x1148bd({'style':_0x5379cc,'getRenderColor':_0xb9c386=>this['_chartThemeService']['getRenderColor'](_0xb9c386)}),'resolveRenderBackgroundColor':({hostStyle:_0x58bac6})=>_0x58bac6[_0x3c2762(0x162)]};}};kr=Or([Y(0x0,_0xfb26ea(_0xc34a30)),Y(0x1,_0xfb26ea(_0x51e39d)),Y(0x2,_0x188f83)],kr);function Ar(_0x2f22f2,_0x51cadc){const _0x1f4079=_0x57c180;var _0x5d01e6;_0x2f22f2[_0x1f4079(0x1d6)]['backgroundColor']=_0x51cadc['fill']??_0x1f4079(0x365),_0x2f22f2[_0x1f4079(0x1d6)][_0x1f4079(0x45c)]=(_0x5d01e6=_0x51cadc[_0x1f4079(0x45c)])!=null&&_0x5d01e6[_0x1f4079(0x196)]&&_0x51cadc[_0x1f4079(0x45c)][_0x1f4079(0x20d)]?_0x51cadc[_0x1f4079(0x45c)]['width']+_0x1f4079(0x225)+_0x51cadc[_0x1f4079(0x45c)][_0x1f4079(0x196)]:'',_0x2f22f2[_0x1f4079(0x1d6)][_0x1f4079(0x399)]=_0x51cadc['radius']?_0x51cadc[_0x1f4079(0x265)]+'px':'',_0x2f22f2['style'][_0x1f4079(0x41a)]=_0x1f4079(0x228),_0x2f22f2[_0x1f4079(0x1d6)][_0x1f4079(0x3bf)]=_0x1f4079(0x36a);}function jr(_0x227cde){'@babel/helpers - typeof';const _0x7af443=_0x57c180;return jr=typeof Symbol==_0x7af443(0x31a)&&typeof Symbol[_0x7af443(0x2d5)]==_0x7af443(0x25e)?function(_0x292a6b){return typeof _0x292a6b;}:function(_0x4ce4f1){const _0x596f6f=_0x7af443;return _0x4ce4f1&&typeof Symbol=='function'&&_0x4ce4f1[_0x596f6f(0x261)]===Symbol&&_0x4ce4f1!==Symbol[_0x596f6f(0x1bc)]?_0x596f6f(0x25e):typeof _0x4ce4f1;},jr(_0x227cde);}function Mr(_0x1eeb92,_0x22b5e8){const _0xb4de6=_0x57c180;if(jr(_0x1eeb92)!=_0xb4de6(0x177)||!_0x1eeb92)return _0x1eeb92;var _0x4cca83=_0x1eeb92[Symbol[_0xb4de6(0x26c)]];if(_0x4cca83!==void 0x0){var _0x495882=_0x4cca83[_0xb4de6(0x2d8)](_0x1eeb92,_0x22b5e8||_0xb4de6(0x450));if(jr(_0x495882)!=_0xb4de6(0x177))return _0x495882;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x22b5e8==='string'?String:Number)(_0x1eeb92);}function Nr(_0x4e757e){const _0x51ea9a=_0x57c180;var _0x2fb12d=Mr(_0x4e757e,_0x51ea9a(0x1a7));return jr(_0x2fb12d)==_0x51ea9a(0x25e)?_0x2fb12d:_0x2fb12d+'';}function Pr(_0x3632f1,_0x2158c2,_0x3a6fd){const _0x5b6317=_0x57c180;return(_0x2158c2=Nr(_0x2158c2))in _0x3632f1?Object[_0x5b6317(0x3a7)](_0x3632f1,_0x2158c2,{'value':_0x3a6fd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3632f1[_0x2158c2]=_0x3a6fd,_0x3632f1;}var Fr=class extends _0x7c5363{constructor(_0x1480f6,_0x23f721){const _0x491bde=_0x57c180;super(),this[_0x491bde(0x1f4)]=_0x1480f6,this[_0x491bde(0x415)]=_0x23f721,Pr(this,_0x491bde(0x367),_0x37b5be['Dom']);}[_0x57c180(0x2c5)](){const _0xf987a=_0x57c180;return{'width':Math[_0xf987a(0x203)](0x1,this[_0xf987a(0x415)][_0xf987a(0x3f4)]),'height':Math['max'](0x1,this[_0xf987a(0x415)][_0xf987a(0x326)])};}[_0x57c180(0x2af)](_0x9952df){const _0x4b0379=_0x57c180;Ar(this[_0x4b0379(0x415)],_0x9952df);}async[_0x57c180(0x36b)](){return this['_element'];}[_0x57c180(0x15e)](){const _0x1063e8=_0x57c180;return this[_0x1063e8(0x415)][_0x1063e8(0x3e0)];}['syncLayout'](){}[_0x57c180(0x43f)](){}['markNotReady'](){}};function Ir({isRowDirection:_0x2c9b8e,runtime:_0x2442d2}){const _0x33ad62=_0x57c180;let _0x560a87=_0x26ca56(null),_0x23c956=_0x3dc792(_0xc34a30),_0x6c7884=_0x3dc792(_0xa0671c),_0x31fb8c=_0x3dc792(kr),_0x37cd95=_0x3dc792(_0x2f0481);return _0x5a872b(()=>{const _0x92bc5f=_0x44d8;let _0x5eb752=_0x560a87[_0x92bc5f(0x18a)];if(!_0x5eb752)return;_0x5eb752[_0x92bc5f(0x337)]();let {chartId:_0x2ff5cd,model:_0x92f717}=_0x2442d2,_0x119723=_0x92f717[_0x92bc5f(0x384)],_0xa83956=new Fr(_0x2ff5cd,_0x5eb752),_0x48afad=_0x31fb8c[_0x92bc5f(0x36c)](),_0x1917ab=!0x1,_0x37c402=null,_0x32eeac=null,_0x3bce14=null,_0x17aef6=null,_0x561245=!0x1,_0x4ee7c9=!0x1,_0x28c258=Promise[_0x92bc5f(0x1b6)]();_0x48afad['bind'](_0xa83956);let _0xc9efc4=()=>{const _0x445942=_0x92bc5f;var _0x23c6a6,_0x5447b4,_0x340c50,_0x97d2f1;if(document[_0x445942(0x3de)]===_0x445942(0x228)||(_0x23c6a6=(_0x5447b4=window)[_0x445942(0x453)])!=null&&(_0x23c6a6=_0x23c6a6[_0x445942(0x2d8)](_0x5447b4,'(prefers-reduced-motion:\x20reduce)'))!=null&&_0x23c6a6[_0x445942(0x323)]||(_0x340c50=(_0x97d2f1=window)[_0x445942(0x453)])!=null&&(_0x340c50=_0x340c50['call'](_0x97d2f1,_0x445942(0x2c4)))!=null&&_0x340c50[_0x445942(0x323)]||!_0x5eb752['isConnected'])return!0x1;let _0x4bf8de=_0x5eb752[_0x445942(0x213)]();return _0x4bf8de[_0x445942(0x20d)]>0x0&&_0x4bf8de[_0x445942(0x2b9)]>0x0&&_0x4bf8de[_0x445942(0x3bb)]>0x0&&_0x4bf8de[_0x445942(0x2f7)]>0x0&&_0x4bf8de[_0x445942(0x3d1)]<window['innerWidth']&&_0x4bf8de['top']<window[_0x445942(0x1dc)];},_0x2904d9=()=>{const _0xa56348=_0x92bc5f;_0x32eeac!==null&&clearTimeout(_0x32eeac),_0x5eb752['dataset'][_0xa56348(0x1a8)]=_0xa56348(0x44f),_0x5eb752['dataset'][_0xa56348(0x320)]=String(_0x33d81c),_0x32eeac=setTimeout(()=>{const _0x3a8903=_0xa56348;_0x32eeac=null,delete _0x5eb752[_0x3a8903(0x235)][_0x3a8903(0x1a8)],delete _0x5eb752[_0x3a8903(0x235)]['baseChartDataAnimationDuration'];},_0x33d81c);},_0x465ddb=_0x1e7cb1=>{const _0xedce77=_0x92bc5f;if(_0x1917ab)return;if(_0x37c402!==null&&(clearTimeout(_0x37c402),_0x37c402=null),!_0x92f717['config']){_0x4ee7c9||=_0x1e7cb1;return;}_0x5eb752[_0xedce77(0x235)][_0xedce77(0x2a6)]=String(_0x92f717[_0xedce77(0x2a6)]),_0x5eb752[_0xedce77(0x235)][_0xedce77(0x23e)]=String(_0x2c9b8e);let _0x38dd12=_0x31fb8c[_0xedce77(0x3c7)](_0x2442d2),_0x1531fa={'chartId':_0x2ff5cd,'config':_0x38dd12['config'],'style':_0x38dd12[_0xedce77(0x1d6)]};_0x28c258=_0x28c258[_0xedce77(0x2bd)](async()=>{const _0x3c9542=_0xedce77;_0x1917ab||(_0x5eb752['dataset'][_0x3c9542(0x1eb)]=String(Number(_0x5eb752[_0x3c9542(0x235)][_0x3c9542(0x1eb)]??0x0)+0x1),_0x1e7cb1&&_0x3bce14&&_0x48afad[_0x3c9542(0x3b6)]&&_0xc9efc4()?(await _0x48afad[_0x3c9542(0x3b6)](_0x3bce14,_0x1531fa,{'duration':_0x33d81c}),_0x1917ab||_0x2904d9()):await _0x48afad[_0x3c9542(0x15f)](_0x1531fa),_0x3bce14=_0x1531fa);})[_0xedce77(0x2cb)](_0x2c43e2=>_0x6c7884[_0xedce77(0x1d0)](_0xedce77(0x185),_0x2c43e2));},_0x1b4954=(_0x27f418=!0x1)=>{_0x4ee7c9||=_0x27f418,!_0x561245&&(_0x561245=!0x0,queueMicrotask(()=>{_0x561245=!0x1;let _0xc8b4a4=_0x4ee7c9;_0x4ee7c9=!0x1,_0x465ddb(_0xc8b4a4);}));},_0x3487d0=[_0x119723['data$']['subscribe'](_0x59d67e=>{const _0x384c7f=_0x92bc5f;let _0x294ca9=JSON[_0x384c7f(0x3a9)](_0x59d67e);_0x17aef6!=null&&_0x17aef6!==_0x294ca9&&_0x1b4954(!0x0),_0x17aef6=_0x294ca9;}),_0x92f717[_0x92bc5f(0x1bb)][_0x92bc5f(0x1a5)](_0x44e3f5=>{_0x44e3f5&&_0x1b4954();}),_0x92f717[_0x92bc5f(0x3ab)][_0x92bc5f(0x1a5)](()=>_0x1b4954()),_0x23c956[_0x92bc5f(0x37b)][_0x92bc5f(0x1a5)](()=>_0x1b4954()),_0x1d680b([_0x37cd95[_0x92bc5f(0x409)],_0x37cd95[_0x92bc5f(0x2fd)]])['pipe'](_0x156d4e(0x1))['subscribe'](()=>_0x1b4954())],_0x4b61d6=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x9fedd6=_0x92bc5f;_0x1917ab||(_0xa83956[_0x9fedd6(0x297)](),_0x37c402!==null&&clearTimeout(_0x37c402),_0x37c402=setTimeout(()=>_0x1b4954(),0x64));});return _0x4b61d6==null||_0x4b61d6[_0x92bc5f(0x1a6)](_0x5eb752),()=>{const _0x3b4e69=_0x92bc5f;_0x1917ab=!0x0,_0x37c402!==null&&clearTimeout(_0x37c402),_0x32eeac!==null&&clearTimeout(_0x32eeac),delete _0x5eb752[_0x3b4e69(0x235)][_0x3b4e69(0x1a8)],delete _0x5eb752[_0x3b4e69(0x235)][_0x3b4e69(0x320)],_0x4b61d6==null||_0x4b61d6[_0x3b4e69(0x227)](),_0x3487d0[_0x3b4e69(0x201)](_0x387234=>_0x387234[_0x3b4e69(0x172)]()),_0x48afad[_0x3b4e69(0x2ab)](),_0xa83956[_0x3b4e69(0x2ab)](),_0x5eb752[_0x3b4e69(0x337)]();};},[_0x2c9b8e,_0x23c956,_0x6c7884,_0x31fb8c,_0x2442d2,_0x37cd95]),_0x1bfcde('div',{'ref':_0x560a87,'data-u-comp':_0x33ad62(0x32f),'className':_0x33ad62(0x3e4)});}function Lr({filters:_0x2999d9,onRuntimeChange:_0x40d954,unitId:_0x3e3792,widget:_0x4d422b}){const _0x3d8da5=_0x57c180;let _0x374025=_0x3dc792(_0xfa1040),_0x2bcfbf=_0x3dc792(_0xc34a30),_0x3ace79=_0x3dc792(_0xa0671c),_0x2a4a55=_0x3dc792(_0x534e77),[_0xb5c3c9,_0x2e6312]=_0x155c41(null),[_0x54271c,_0x4f498e]=_0x155c41(!0x1),[_0xd1dc21,_0x491005]=_0x155c41(null),_0x4bf4e0=_0x26ca56(_0x3d8da5(0x408)+_0x2bbf35(0x8)),_0x45ce85=_0x374025[_0x3d8da5(0x2ee)](_0x3e3792,_0x1be7ab[_0x3d8da5(0x360)]),_0x232088=_0x45ce85==null?void 0x0:_0x45ce85[_0x3d8da5(0x257)]()[_0x3d8da5(0x47e)][_0x4d422b[_0x3d8da5(0x31f)]],_0x291cd3=_0x232088==null?void 0x0:_0x232088[_0x3d8da5(0x46e)][_0x4d422b[_0x3d8da5(0x488)]],_0x4db8a5=Rr(_0x291cd3);if(_0x5a872b(()=>{const _0x3ee5ae=_0x3d8da5;if(!_0x4db8a5)return;let _0x84cc6d=_0x4bf4e0[_0x3ee5ae(0x18a)];return _0x2a4a55['acquireChartRuntime'](_0x84cc6d,{'unitId':_0x3e3792,'tableId':_0x4d422b[_0x3ee5ae(0x31f)],'viewId':_0x4d422b[_0x3ee5ae(0x488)],'filters':[]}),()=>{_0x2a4a55['releaseChartRuntime'](_0x3e3792,_0x84cc6d),_0x40d954==null||_0x40d954(_0x4d422b['id'],null);};},[_0x4db8a5,_0x40d954,_0x2a4a55,_0x3e3792,_0x4d422b['id'],_0x4d422b[_0x3d8da5(0x488)],_0x4d422b[_0x3d8da5(0x31f)]]),_0x5a872b(()=>{const _0x1aff4e=_0x3d8da5;if(!Rr(_0x291cd3))return;let _0x16621a=!0x0,_0xc558a8=_0x4d422b['chart']??_0x291cd3[_0x1aff4e(0x163)]['chart'],_0xc0ecf0={'unitId':_0x3e3792,'tableId':_0x4d422b[_0x1aff4e(0x31f)],'viewId':_0x4d422b[_0x1aff4e(0x488)],'filters':[_0x291cd3[_0x1aff4e(0x449)]??null,..._0x2999d9]};return _0x2a4a55[_0x1aff4e(0x271)](_0x3e3792,_0x4bf4e0[_0x1aff4e(0x18a)],_0xc0ecf0,_0xc558a8)['then'](_0x54474b=>{const _0x1da67e=_0x1aff4e;if(!_0x16621a||!_0x54474b)return;let _0x111a56=_0x2a4a55['getChartRuntime'](_0x3e3792,_0x4bf4e0[_0x1da67e(0x18a)])??null;_0x2e6312(_0x54474b),_0x491005(_0x111a56),_0x4f498e(!0x1),_0x40d954==null||_0x40d954(_0x4d422b['id'],_0x111a56);})[_0x1aff4e(0x2cb)](_0x438873=>{const _0x38bd9b=_0x1aff4e;_0x3ace79[_0x38bd9b(0x1d0)](_0x38bd9b(0x416),_0x438873),_0x16621a&&(_0x2e6312(null),_0x4f498e(!0x0));}),()=>{_0x16621a=!0x1;};},[_0x2999d9,_0x3ace79,_0x40d954,_0x2a4a55,_0x3e3792,_0x291cd3,_0x4d422b[_0x3d8da5(0x49c)],_0x4d422b['id'],_0x4d422b[_0x3d8da5(0x488)],_0x4d422b['tableId']]),!Rr(_0x291cd3))return _0x1bfcde('div',{'className':_0x3d8da5(0x48f),'children':_0x2bcfbf['t'](_0x3d8da5(0x36f))});let _0x578961=_0x2a4a55[_0x3d8da5(0x1e0)](_0x3e3792,_0x4bf4e0[_0x3d8da5(0x18a)])===_0xd1dc21?_0xd1dc21:null;return _0xb5c3c9&&_0x578961?_0x1bfcde(Ir,{'isRowDirection':_0x143525((_0x4d422b[_0x3d8da5(0x49c)]??_0x291cd3[_0x3d8da5(0x163)]['chart'])['orient']),'runtime':_0x578961}):_0x1bfcde(_0x3d8da5(0x332),{'className':_0x3d8da5(0x48f),'children':_0x2bcfbf['t'](_0x54271c?_0x3d8da5(0x24c):'bases-dashboard-ui.pivot.calculating')});}function Rr(_0x2e03ae){const _0x306cd5=_0x57c180;return(_0x2e03ae==null?void 0x0:_0x2e03ae['type'])===_0x4e046d[_0x306cd5(0x496)]&&typeof _0x2e03ae['config']==_0x306cd5(0x177)&&_0x2e03ae[_0x306cd5(0x163)]!==null&&'pivot'in _0x2e03ae['config']&&_0x306cd5(0x49c)in _0x2e03ae[_0x306cd5(0x163)];}const zr={'alignment':_0x57c180(0x3d1),'fontSize':0x12,'fontSizeMode':_0x57c180(0x27e)};function Br(_0x4da7ec){const _0x40f536=_0x57c180;return{...zr,..._0x4da7ec[_0x40f536(0x44b)]};}function Vr(_0x26409c){const _0x318357=_0x57c180;var _0x342826;return((_0x342826=_0x26409c[_0x318357(0x16b)])==null?void 0x0:_0x342826['dataStream'][_0x318357(0x2de)](/\r\n$/,'')['replace'](/\r/g,'\x0a'))??'';}function Hr(_0x4004c3,_0x446aa0){const _0x45e1d2=_0x57c180;var _0x347031;let _0x1981af=_0x446aa0[_0x45e1d2(0x2de)](/\r\n|\r/g,'\x0a')[_0x45e1d2(0x17b)]('\x0a'),_0x53efab=_0x1981af[_0x45e1d2(0x45f)]('\x0d')+'\x0d\x0a',_0x12eafb=((_0x347031=_0x4004c3[_0x45e1d2(0x16b)])==null?void 0x0:_0x347031[_0x45e1d2(0x28d)])??[],_0x96bf71=new Set(_0x12eafb[_0x45e1d2(0x48c)](_0xed42da=>_0xed42da[_0x45e1d2(0x31c)])),_0x5f24c0=0x0,_0x312a31=_0x1981af[_0x45e1d2(0x48c)]((_0x39724b,_0x5caef9)=>{const _0x5794d4=_0x45e1d2;_0x5f24c0+=_0x39724b[_0x5794d4(0x291)];let _0x343d59={..._0x12eafb[_0x5caef9]??{'startIndex':_0x5f24c0,'paragraphId':_0x1d37b5(_0x96bf71)},'startIndex':_0x5f24c0};return _0x5f24c0+=0x1,_0x343d59;});return{..._0x4004c3,'body':{..._0x4004c3[_0x45e1d2(0x16b)],'dataStream':_0x53efab,'paragraphs':_0x312a31,'textRuns':[]}};}function Ur({widget:_0x5b1b80}){const _0x3c0f19=_0x57c180;let _0x24e0cd=_0x3dc792(_0x2f0481),_0x727f76=_0x3dc792(_0xc34a30),_0x5a3563=_0x1cdd28(()=>_0x24e0cd[_0x3c0f19(0x409)],_0x24e0cd['getCurrentTheme'](),!0x1,[_0x24e0cd]),_0x15ece2=_0x26ca56(null),_0x24abb0=_0x26ca56(null),_0xdef69=Br(_0x5b1b80),_0x266c88=_0xdef69[_0x3c0f19(0x26f)]??_0x5a3563[_0x3c0f19(0x387)][0x0],_0xc27c8b=_0xdef69[_0x3c0f19(0x386)]??_0x5a3563[_0x3c0f19(0x387)][0x3e8],_0x3a0cc6=Vr(_0x5b1b80[_0x3c0f19(0x3c8)]);return _0x5a872b(()=>{const _0x313aec=_0x3c0f19;let _0x415946=_0x15ece2[_0x313aec(0x18a)],_0x293a3f=_0x24abb0[_0x313aec(0x18a)];if(!_0x415946||!_0x293a3f)return;let _0xc1fe7a=()=>{const _0x265ba0=_0x313aec;if(_0xdef69[_0x265ba0(0x204)]===_0x265ba0(0x29e)||!_0x415946[_0x265ba0(0x3f4)]||!_0x415946[_0x265ba0(0x326)]){_0x293a3f['style'][_0x265ba0(0x2cd)]=_0xdef69[_0x265ba0(0x2cd)]+'px';return;}let _0x27e02a=0x8,_0x56563f=0x48,_0x1cb746=_0x27e02a;for(;_0x27e02a<=_0x56563f;){let _0x1016b8=Math[_0x265ba0(0x327)]((_0x27e02a+_0x56563f)/0x2);_0x293a3f[_0x265ba0(0x1d6)][_0x265ba0(0x2cd)]=_0x1016b8+'px',_0x293a3f[_0x265ba0(0x410)]<=_0x415946['clientWidth']&&_0x293a3f[_0x265ba0(0x2bf)]<=_0x415946['clientHeight']?(_0x1cb746=_0x1016b8,_0x27e02a=_0x1016b8+0x1):_0x56563f=_0x1016b8-0x1;}_0x293a3f[_0x265ba0(0x1d6)][_0x265ba0(0x2cd)]=_0x1cb746+'px';};if(_0xc1fe7a(),typeof ResizeObserver>'u')return;let _0x221456=new ResizeObserver(_0xc1fe7a);return _0x221456[_0x313aec(0x1a6)](_0x415946),()=>_0x221456[_0x313aec(0x227)]();},[_0xdef69[_0x3c0f19(0x2cd)],_0xdef69['fontSizeMode'],_0x3a0cc6]),_0x1bfcde(_0x3c0f19(0x332),{'data-dashboard-text-widget':_0x5b1b80['id'],'className':_0x3c0f19(0x2d2),'style':{'backgroundColor':_0x266c88,'color':_0xc27c8b},'children':_0x1bfcde(_0x3c0f19(0x332),{'ref':_0x15ece2,'data-dashboard-text-content':!0x0,'aria-label':_0x727f76['t']('bases-dashboard-ui.dashboard.text'),'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','children':_0x1bfcde(_0x3c0f19(0x332),{'ref':_0x24abb0,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0xdef69['fontSizeMode'],'className':_0x3c0f19(0x42d),'style':{'textAlign':_0xdef69['alignment']},'children':_0x3a0cc6})})});}function Wr({dashboard:_0x1c4052,editable:_0x546ded=!0x0,onSelectWidget:_0xbf27b1,renderWidget:_0x235890,renderWidgetActions:_0x4b3802,selectedWidgetId:_0x5ea015,widgetLabel:_0x2eeaac}){const _0x599b77=_0x57c180;return _0x1bfcde(_0x599b77(0x332),{'data-dashboard-scroll-container':!0x0,'className':_0x3c6675(_0x599b77(0x443),_0x32f99e),'onClick':_0x546ded?_0x3f8b52=>{const _0x376015=_0x599b77;if(!(_0x3f8b52[_0x376015(0x22c)]instanceof Node)||!_0x3f8b52[_0x376015(0x2bc)]['contains'](_0x3f8b52[_0x376015(0x22c)]))return;let _0x54dd31=_0x3f8b52[_0x376015(0x22c)]instanceof Element?_0x3f8b52['target']:_0x3f8b52['target']['parentElement'];_0x54dd31!=null&&_0x54dd31['closest'](_0x376015(0x3e5))||_0xbf27b1==null||_0xbf27b1();}:void 0x0,'children':_0x1bfcde(_0x599b77(0x332),{'data-dashboard-grid':!0x0,'className':_0x599b77(0x23f),'children':_0x1c4052['widgetOrder']['map'](_0x231bc6=>{const _0x2d88ab=_0x599b77;let _0x3bc208=_0x1c4052['widgets'][_0x231bc6];if(!_0x3bc208)return null;let _0x89f182=Math['max'](0xb4,_0x3bc208[_0x2d88ab(0x424)][_0x2d88ab(0x17c)]*_0x3bde0c);return _0x3fc05f('article',{'data-dashboard-widget':_0x3bc208['id'],'aria-label':_0x3bc208['title']??_0x2eeaac(_0x3bc208),'className':_0x3c6675('univer-group\x20univer-relative\x20univer-flex\x20univer-min-h-0\x20univer-flex-col\x20univer-overflow-visible\x20univer-rounded-lg\x20univer-border\x20univer-shadow-sm\x20univer-transition-shadow',_0x3bc208[_0x2d88ab(0x498)]===_0x925244[_0x2d88ab(0x37d)]||_0x3bc208[_0x2d88ab(0x498)]===_0x925244[_0x2d88ab(0x1a9)]?_0x2d88ab(0x173):_0x2d88ab(0x324),_0x546ded&&_0x5ea015===_0x3bc208['id']?_0x2d88ab(0x190):_0x2d88ab(0x413)),'style':{'minHeight':_0x89f182,'height':_0x89f182},'tabIndex':_0x546ded?0x0:void 0x0,'onClick':_0x546ded?()=>_0xbf27b1==null?void 0x0:_0xbf27b1(_0x3bc208['id']):void 0x0,'onFocus':_0x546ded?()=>_0xbf27b1==null?void 0x0:_0xbf27b1(_0x3bc208['id']):void 0x0,'children':[_0x546ded&&_0x1bfcde(_0x2d88ab(0x332),{'className':'univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','children':_0x4b3802==null?void 0x0:_0x4b3802(_0x3bc208)}),_0x1bfcde(_0x2d88ab(0x332),{'className':_0x2d88ab(0x1bd),'children':_0x235890(_0x3bc208)})]},_0x3bc208['id']);})})});}let Gr=class extends _0x4acbdf{constructor(_0x39e0b2){const _0x7bb72b=_0x57c180;super(_0x39e0b2),Pr(this,_0x7bb72b(0x460),null);}[_0x57c180(0x3ed)](_0x4202c2){}};Gr=Or([Y(0x0,_0xfb26ea(_0x49b052))],Gr);function Kr({children:_0x1284e5}){return _0x1bfcde(_0xb7bcd0,{'children':_0x1284e5});}function qr(_0xb65f99){return _0x1bfcde(_0x387f08,{..._0xb65f99});}function Jr(_0x5d059b){return _0x1bfcde(_0x1936c5,{..._0x5d059b});}function Yr(_0x15d048){return _0x1bfcde(_0x59b7d9,{..._0x15d048});}var Xr;const X={'axis':{..._0x5bb0d7,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x2ade94,'heatmap':_0x56fd38,'indicatorLine':_0x4505bf,'legend':_0x255bea,'lineAndArea':_0x334ac6,'pareto':_0x50369c,'pie':_0x2a7701,'radar':_0x23b3e2,'relation':{..._0x47989a,'useValueAsSymbolSize':!0x0},'series':{..._0x6b2197,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Xr=_0x1cf164[_0x57c180(0x1ee)])==null?void 0x0:Xr['rightYAxis'])??!0x1}},'style':_0x11b3b9,'titles':_0x4012e3,'trendline':_0x1f404b,'waterfall':{..._0x2665d6,'useSubtotal':!0x0},'waterfallStyle':_0x15d409,'wordCloud':_0x5f4293},Zr=[_0x546fc5['Line'],_0x546fc5[_0x57c180(0x339)],_0x546fc5[_0x57c180(0x2c7)],_0x546fc5[_0x57c180(0x4a3)],_0x546fc5[_0x57c180(0x2df)],_0x546fc5['Relation'],_0x546fc5['Sankey'],_0x546fc5['Heatmap'],_0x546fc5[_0x57c180(0x209)],_0x546fc5[_0x57c180(0x1d4)],_0x546fc5[_0x57c180(0x22b)],_0x546fc5[_0x57c180(0x3ef)],_0x546fc5[_0x57c180(0x1da)],_0x546fc5[_0x57c180(0x3f9)],_0x546fc5[_0x57c180(0x2dc)]];function Qr(_0x23c2b0){const _0x1f663e=_0x57c180;let {config:_0xbc3b3f,onChange:_0x5e88fa,runtime:_0x229985,tableName:_0x529b8d}=_0x23c2b0,_0x46348c=_0x3dc792(Gr),_0xaa2945=_0x3dc792(_0xc34a30),[_0x2bfd82,_0x4f5cbc]=_0x155c41(_0x34d32e['Data']),_0x4bec6e=_0x4561c2(()=>new _0x4e622f(_0x229985[_0x1f663e(0x2aa)],{'commit':_0x1c5d37=>{const _0x2f9365=_0x1f663e;var _0x27144c;let _0x220dae=_0x229985[_0x2f9365(0x2aa)],_0x227afc=_0x206b2e(_0x1c5d37,{'series':(_0x27144c=_0x220dae['config'])==null?void 0x0:_0x27144c[_0x2f9365(0x376)],'currentChartType':_0x220dae['chartType'],'currentStyle':_0x220dae[_0x2f9365(0x1d6)],'currentContext':_0x220dae[_0x2f9365(0x4a5)],'currentDataAggregation':_0x220dae[_0x2f9365(0x303)]});_0x5e88fa({'chart':$r(_0xbc3b3f[_0x2f9365(0x49c)],_0x227afc)});}}),[_0xbc3b3f[_0x1f663e(0x49c)],_0x5e88fa,_0x229985]),_0x310fc6=_0x4561c2(()=>_0x5447e3(_0x3c2b9a['map'](_0x12855c=>({..._0x12855c,'label':_0xaa2945['t'](ri(_0x12855c['labelId']))}))),[_0xaa2945]);return _0x1bfcde(_0x247ccf,{'chartUIService':_0x46348c,'hostAdapter':_0x4bec6e,'children':_0x3fc05f(_0x1f663e(0x332),{'className':_0x1f663e(0x321),'children':[_0x1bfcde(_0x2e9f58,{'ariaLabel':_0xaa2945['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x1f663e(0x3ff),'items':[{'label':_0xaa2945['t']('bases-dashboard-ui.chart.common.setup'),'panelId':'base-pivot-chart-setup','value':_0x34d32e['Data']},{'label':_0xaa2945['t'](_0x1f663e(0x20e)),'panelId':_0x1f663e(0x22d),'value':_0x34d32e[_0x1f663e(0x1c0)]}],'value':_0x2bfd82,'onChange':_0x4f5cbc}),_0x2bfd82===_0x34d32e[_0x1f663e(0x192)]?_0x1bfcde(_0x5cb021,{'id':_0x1f663e(0x1b2),'label':_0xaa2945['t'](_0x1f663e(0x3c1)),'children':_0x3fc05f(_0x1f663e(0x332),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x1bfcde(_0x1e47f4,{'options':_0x310fc6}),_0x1bfcde(_0x60f00e,{}),_0x1bfcde(_0x40668c,{}),_0x1bfcde(ei,{}),_0x1bfcde(_0x5ab8f3,{}),_0x3fc05f(_0x1f663e(0x332),{'children':[_0x1bfcde(_0x20c528,{'title':_0xaa2945['t'](_0x1f663e(0x239))}),_0x1bfcde(_0x225487,{'disabled':!0x0,'value':_0x529b8d})]}),_0x1bfcde(_0x236f8b,{'orientationControl':_0x1bfcde(_0x29df96,{'size':_0x1f663e(0x3a6),'onClick':()=>_0x5e88fa({'chart':{..._0xbc3b3f[_0x1f663e(0x49c)],'orient':_0xbc3b3f[_0x1f663e(0x49c)]['orient']===_0x1f663e(0x293)?_0x1f663e(0x430):'row'}}),'children':_0xaa2945['t'](_0x1f663e(0x3a4))})}),_0x1bfcde(_0x260003,{}),_0x1bfcde(_0x115741,{'defaultValues':X[_0x1f663e(0x17f)]}),_0x3fc05f('div',{'children':[_0x1bfcde(_0x20c528,{'title':_0xaa2945['t'](_0x1f663e(0x34a))}),_0x1bfcde(qr,{'value':_0xbc3b3f[_0x1f663e(0x36d)],'options':[{'value':_0x1f663e(0x417),'label':_0xaa2945['t'](_0x1f663e(0x33e))},{'value':_0x1f663e(0x49c),'label':_0xaa2945['t'](_0x1f663e(0x294))},{'value':_0x1f663e(0x2c6),'label':_0xaa2945['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x2985cc=>{const _0x236a7f=_0x1f663e;(_0x2985cc===_0x236a7f(0x417)||_0x2985cc===_0x236a7f(0x49c)||_0x2985cc===_0x236a7f(0x2c6))&&_0x5e88fa({'displayMode':_0x2985cc});}})]})]})}):_0x1bfcde(_0x5cb021,{'id':_0x1f663e(0x22d),'label':_0xaa2945['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x1bfcde(ti,{})})]})});}function $r(_0x566a87,_0x42c7a7){const _0x331c6d=_0x57c180;return{..._0x566a87,'type':_0x42c7a7['chartType']??_0x566a87['type'],'style':_0x42c7a7['style']??_0x566a87[_0x331c6d(0x1d6)],'context':_0x42c7a7[_0x331c6d(0x4a5)]??_0x566a87[_0x331c6d(0x4a5)],'dataAggregation':_0x42c7a7[_0x331c6d(0x303)]??_0x566a87[_0x331c6d(0x303)]};}function ei(){const _0x4ceab9=_0x57c180;let _0x17eced=_0x1600aa();return _0x1bfcde(_0x365082,{'visible':Zr[_0x4ceab9(0x3ac)](_0x195480=>!_0x579955[_0x4ceab9(0x248)](_0x17eced,_0x195480))});}function Z(_0x50525c){const _0x1095b8=_0x57c180;return _0x3fc05f(_0x511a83,{'id':_0x50525c['id'],'children':[_0x1bfcde(_0x22a0cc,{'children':_0x50525c[_0x1095b8(0x372)]}),_0x1bfcde(_0x4bb2c8,{'children':_0x50525c[_0x1095b8(0x1f7)]})]});}function ti(){const _0x4aeb88=_0x57c180;let _0x4da40c=_0x3dc792(_0xc34a30),_0x2ad074=_0x1600aa(),_0x1784f3=_0x4abcf3(),[_0x50637c,_0x45595b]=_0x155c41(null),_0x4c1079=_0x579955[_0x4aeb88(0x248)](_0x2ad074,_0x546fc5[_0x4aeb88(0x1b1)]),_0x40900f=_0x2ad074===_0x546fc5['Radar'],_0x1548ba=_0x2ad074===_0x546fc5['WordCloud'],_0x4c387e=_0x2ad074===_0x546fc5['Funnel'],_0x54ae72=_0x579955[_0x4aeb88(0x248)](_0x2ad074,_0x546fc5['Bubble']),_0x15ec49=_0x2ad074===_0x546fc5[_0x4aeb88(0x47b)],_0x2d96e8=_0x2ad074===_0x546fc5[_0x4aeb88(0x21b)],_0x4d3459=_0x2ad074===_0x546fc5['Pareto'],_0x5607d6=_0x2ad074===_0x546fc5[_0x4aeb88(0x221)],_0x331aff=_0x20bcdc(_0x2ad074,_0x262643[_0x4aeb88(0x49e)])&&!_0x54ae72&&!_0x4d3459,_0x46395c=ni(_0x2ad074,_0x4da40c);return _0x3fc05f(_0x2794c9,{'value':_0x50637c,'onChange':_0x45595b,'children':[_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x16a)],'label':_0x4da40c['t'](_0x4aeb88(0x451)),'children':_0x1bfcde(_0x36f8fa,{'defaultValues':X[_0x4aeb88(0x1d6)]})}),_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x340)],'label':_0x4da40c['t'](_0x4aeb88(0x2e3)),'children':_0x1bfcde(_0x3b2df6,{'commitMode':'blur','defaultValues':X['titles']})}),_0x331aff&&_0x1bfcde(Z,{'id':_0xd01354['Series'],'label':_0x4da40c['t'](_0x4aeb88(0x43b)),'children':_0x1bfcde(_0xfcfe0d,{'defaultValues':X[_0x4aeb88(0x376)],'NumberFormatField':_0x1984da})}),_0x2d96e8&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x262)],'label':_0x4da40c['t']('bases-dashboard-ui.chart.section.waterfall'),'children':_0x1bfcde(_0x29de7e,{'defaultValues':X[_0x4aeb88(0x1a4)],'getDefaultBucketName':({seriesName:_0x436c96,target:_0x4fd08b})=>_0x4fd08b===_0x588af0[_0x4aeb88(0x18c)]?_0x4da40c['t']('bases-dashboard-ui.chart.waterfall.subtotal'):_0x436c96?_0x436c96+'-('+_0x4da40c['t'](_0x4aeb88(0x1c2)+(_0x4fd08b===_0x588af0[_0x4aeb88(0x1d8)]?_0x4aeb88(0x364):_0x4aeb88(0x30e)))+')':'','NumberFormatField':_0x1984da})}),_0x4d3459&&_0x3fc05f(_0x30443f,{'children':[_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x4a2)],'label':_0x4da40c['t']('bases-dashboard-ui.chart.section.paretoBar'),'children':_0x1bfcde(_0x7a917b,{'defaultValues':X[_0x4aeb88(0x17d)],'NumberFormatField':_0x1984da,'showDataPointEditor':!0x0,'target':'barStyle'})}),_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x272)],'label':_0x4da40c['t'](_0x4aeb88(0x418)),'children':_0x1bfcde(_0x7a917b,{'defaultValues':X[_0x4aeb88(0x17d)],'NumberFormatField':_0x1984da,'showDataPointEditor':!0x1,'target':_0x4aeb88(0x24e)})})]}),_0x4c1079&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x1ff)],'label':_0x4da40c['t']('bases-dashboard-ui.chart.section.pie'),'children':_0x1bfcde(_0x55a368,{'defaultValues':X['pie'],'NumberFormatField':_0x1984da})}),_0x1548ba&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x2c7)],'label':_0x4da40c['t'](_0x4aeb88(0x229)),'children':_0x1bfcde(_0x14d125,{'defaultValues':X['wordCloud']})}),_0x40900f&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x339)],'label':_0x4da40c['t'](_0x4aeb88(0x17e)),'children':_0x1bfcde(_0x807256,{'defaultValues':X[_0x4aeb88(0x16f)]})}),_0x4c387e&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x2df)],'label':_0x4da40c['t'](_0x4aeb88(0x1b3)),'children':_0x1bfcde(_0x5c8bd4,{'defaultValues':X[_0x4aeb88(0x2e2)],'gapControl':'select'})}),_0x5607d6&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x221)],'label':_0x4da40c['t'](_0x4aeb88(0x448)),'children':_0x1bfcde(_0x56789e,{'defaultValues':X[_0x4aeb88(0x3be)]})}),_0x15ec49&&_0x1bfcde(Z,{'id':_0xd01354['Relation'],'label':_0x4da40c['t'](_0x4aeb88(0x35e)),'children':_0x1bfcde(_0xf308df,{'defaultValues':X[_0x4aeb88(0x3b7)]})}),_0x41979c(_0x2ad074)&&_0x1bfcde(Z,{'id':_0xd01354['LineAndArea'],'label':_0x4da40c['t'](_0x4aeb88(0x216)),'children':_0x1bfcde(_0x152bb6,{'defaultValues':X[_0x4aeb88(0x33d)],'lineStyleControl':_0x4aeb88(0x355)})}),_0x20bcdc(_0x2ad074,_0x262643['Legend'])&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x366)],'label':_0x4da40c['t'](_0x4aeb88(0x382)),'children':_0x1bfcde(_0x3c5065,{'defaultValues':X[_0x4aeb88(0x1e6)]})}),_0x20bcdc(_0x2ad074,_0x262643[_0x4aeb88(0x210)])&&_0x3fc05f(_0x30443f,{'children':[_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x474)],'label':_0x4da40c['t'](_0x4aeb88(0x47a)),'children':_0x1bfcde(_0x4ecd7e,{'axis':'x','defaultValues':X[_0x4aeb88(0x442)],'NumberFormatField':_0x1984da})}),_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x43d)],'label':_0x4da40c['t'](_0x4aeb88(0x217)),'children':_0x1bfcde(_0x4ecd7e,{'axis':'y','defaultValues':X[_0x4aeb88(0x442)],'NumberFormatField':_0x1984da})}),_0x1784f3&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x2e6)],'label':_0x4da40c['t'](_0x4aeb88(0x49f)),'children':_0x1bfcde(_0x4ecd7e,{'axis':_0x4aeb88(0x3bc),'defaultValues':X[_0x4aeb88(0x442)],'NumberFormatField':_0x1984da})}),_0x1bfcde(Z,{'id':_0xd01354['GridlinesAndTicks'],'label':_0x4da40c['t'](_0x4aeb88(0x397)),'children':_0x1bfcde(_0x41e9c3,{'defaultValues':X[_0x4aeb88(0x442)]})})]}),_0x20bcdc(_0x2ad074,_0x262643[_0x4aeb88(0x2f6)])&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x2f6)],'label':_0x4da40c['t'](_0x4aeb88(0x246)),'children':_0x1bfcde(_0x5eb7b1,{'defaultValues':X[_0x4aeb88(0x341)]})}),_0x3d1aed(_0x2ad074)&&_0x1bfcde(Z,{'id':_0xd01354[_0x4aeb88(0x3b4)],'label':_0x4da40c['t'](_0x4aeb88(0x1ac)),'children':_0x1bfcde(_0x1928c4,{'defaultValues':X[_0x4aeb88(0x1ea)]})}),_0x46395c&&_0x1bfcde(Z,{'id':_0x46395c['id'],'label':_0x46395c[_0x4aeb88(0x372)],'children':_0x1bfcde(_0x4ea50d,{})})]});}function ni(_0x150558,_0x3e0afd){const _0x46d81d=_0x57c180;let _0x1cb80c={[_0x546fc5[_0x46d81d(0x1d4)]]:{'id':_0xd01354[_0x46d81d(0x1d4)],'localeKey':_0x46d81d(0x440)},[_0x546fc5[_0x46d81d(0x22b)]]:{'id':_0xd01354[_0x46d81d(0x22b)],'localeKey':'bases-dashboard-ui.chart.section.histogram'},[_0x546fc5[_0x46d81d(0x3ef)]]:{'id':_0xd01354[_0x46d81d(0x3ef)],'localeKey':_0x46d81d(0x361)},[_0x546fc5[_0x46d81d(0x1da)]]:{'id':_0xd01354[_0x46d81d(0x1da)],'localeKey':_0x46d81d(0x389)},[_0x546fc5['Gauge']]:{'id':_0xd01354['Gauge'],'localeKey':_0x46d81d(0x19c)},[_0x546fc5['Chord']]:{'id':_0xd01354[_0x46d81d(0x2dc)],'localeKey':_0x46d81d(0x353)}}[_0x150558];return _0x1cb80c?{'id':_0x1cb80c['id'],'label':_0x3e0afd['t'](_0x1cb80c[_0x46d81d(0x1e5)])}:null;}function ri(_0x42ed21){const _0x336014=_0x57c180;return _0x336014(0x2fe)+_0x42ed21;}function ii({onChange:_0x3daa74,onEditData:_0x2fce6f,runtime:_0x1b39e8,sourceChart:_0x130754,sourceName:_0x5eb4c5,widget:_0x1930e2}){const _0x1f9c4b=_0x57c180;let _0x3d3fbe=_0x3dc792(Gr),_0x1c6d9f=_0x3dc792(_0xc34a30),[_0x1cec5e,_0x392fe8]=_0x155c41(_0x34d32e['Data']),_0x3fc471=_0x1930e2['chart']??_0x130754,_0x4389cd=_0x4561c2(()=>new _0x4e622f(_0x1b39e8[_0x1f9c4b(0x2aa)],{'commit':_0x3844a4=>{const _0x7ab98b=_0x1f9c4b;var _0x2eff9f;let _0xdc1621=_0x1b39e8[_0x7ab98b(0x2aa)],_0x55ff41=_0x206b2e(_0x3844a4,{'series':(_0x2eff9f=_0xdc1621[_0x7ab98b(0x163)])==null?void 0x0:_0x2eff9f[_0x7ab98b(0x376)],'currentChartType':_0xdc1621['chartType'],'currentStyle':_0xdc1621[_0x7ab98b(0x1d6)],'currentContext':_0xdc1621[_0x7ab98b(0x4a5)],'currentDataAggregation':_0xdc1621[_0x7ab98b(0x303)]});_0x3daa74({..._0x1930e2,'chart':$r(_0x3fc471,_0x55ff41)})[_0x7ab98b(0x2cb)](()=>void 0x0);}}),[_0x3fc471,_0x3daa74,_0x1b39e8,_0x1930e2]),_0x425f43=_0x4561c2(()=>_0x5447e3(_0x3c2b9a['map'](_0x432828=>({..._0x432828,'label':_0x1c6d9f['t'](ai(_0x432828['labelId']))}))),[_0x1c6d9f]);return _0x1bfcde(_0x4c2ea3,{'chartUIService':_0x3d3fbe,'hostAdapter':_0x4389cd,'children':_0x3fc05f('div',{'data-dashboard-chart-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x1bfcde(_0x2e9f58,{'ariaLabel':_0x1c6d9f['t'](_0x1f9c4b(0x464)),'className':_0x1f9c4b(0x3ff),'items':[{'label':_0x1c6d9f['t'](_0x1f9c4b(0x3c1)),'panelId':'dashboard-chart-setup','value':_0x34d32e[_0x1f9c4b(0x192)]},{'label':_0x1c6d9f['t'](_0x1f9c4b(0x20e)),'panelId':_0x1f9c4b(0x1c5),'value':_0x34d32e[_0x1f9c4b(0x1c0)]}],'value':_0x1cec5e,'onChange':_0x392fe8}),_0x1cec5e===_0x34d32e[_0x1f9c4b(0x192)]?_0x1bfcde(_0x5cb021,{'id':_0x1f9c4b(0x155),'label':_0x1c6d9f['t'](_0x1f9c4b(0x3c1)),'children':_0x3fc05f(_0x1f9c4b(0x332),{'className':_0x1f9c4b(0x345),'children':[_0x1bfcde(_0x1e47f4,{'options':_0x425f43}),_0x1bfcde(_0x60f00e,{}),_0x1bfcde(_0x40668c,{}),_0x1bfcde(ei,{}),_0x1bfcde(_0x5ab8f3,{}),_0x3fc05f(_0x1f9c4b(0x332),{'children':[_0x1bfcde(_0x20c528,{'title':_0x1c6d9f['t'](_0x1f9c4b(0x348))}),_0x1bfcde(_0x225487,{'disabled':!0x0,'value':_0x5eb4c5}),_0x1bfcde(_0x29df96,{'className':_0x1f9c4b(0x2e4),'onClick':_0x2fce6f,'children':_0x1c6d9f['t']('bases-dashboard-ui.dashboardInspector.editData')})]})]})}):_0x1bfcde(_0x5cb021,{'id':_0x1f9c4b(0x1c5),'label':_0x1c6d9f['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x1bfcde(ti,{})})]})});}function ai(_0xe84b1f){const _0x193fff=_0x57c180;return _0x193fff(0x2fe)+_0xe84b1f;}const oi=['general',_0x57c180(0x338),_0x57c180(0x3b1),'currency',_0x57c180(0x4a4),_0x57c180(0x1c4)];function si({base:_0xfed1fb,onChange:_0x42a193,onSelectBackgroundImage:_0x31e576,widget:_0x4b76eb}){const _0x358323=_0x57c180;var _0x535602;let _0x4d22c5=_0x3dc792(_0xc34a30),_0x358ad7=_0x3dc792(_0x2f0481),_0x51ebcd=_0x1cdd28(()=>_0x358ad7['currentTheme$'],_0x358ad7[_0x358323(0x284)](),!0x1,[_0x358ad7]),_0x36653b=_0x1cdd28(()=>_0x358ad7['darkMode$'],_0x358ad7[_0x358323(0x342)],!0x1,[_0x358ad7]),[_0x38a135,_0xb1136a]=_0x155c41(_0x358323(0x412)),[_0x330eb5,_0x1ae15a]=_0x155c41(!0x1),_0x25ab94=xr(_0x4b76eb),_0x43e926=_0xfed1fb['getSnapshot']()[_0x358323(0x47e)][_0x4b76eb[_0x358323(0x31f)]],_0x125725=_0x43e926==null?void 0x0:_0x43e926[_0x358323(0x3d3)][_0x358323(0x34b)](_0x423657=>_0x43e926[_0x358323(0x46e)][_0x423657]),_0x5c3c15=_0x125725?_0x43e926==null?void 0x0:_0x43e926['views'][_0x125725]:void 0x0,_0x274add=_0x43e926&&_0x5c3c15?_0x3fc9b5(_0xfed1fb[_0x358323(0x257)](),_0x43e926,_0x5c3c15)[_0x358323(0x48c)](_0x54cd65=>({..._0x54cd65,'current':!0x1})):[],_0x1dca15=((_0x535602=_0x4b76eb[_0x358323(0x20a)]['formulaBinding'])==null?void 0x0:_0x535602[_0x358323(0x304)])??'',_0x5adab1=_0xfb1dbe=>_0x42a193(Sr(_0x4b76eb,_0xfb1dbe))['catch'](()=>void 0x0),_0x3779cd=_0x50e951=>_0x42a193({..._0x4b76eb,'description':_0x50e951})[_0x358323(0x2cb)](()=>void 0x0);return _0x3fc05f('div',{'data-dashboard-formula-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x1bfcde(_0x9bce40,{'className':_0x358323(0x471),'items':[{'value':_0x358323(0x412),'label':_0x4d22c5['t'](_0x358323(0x379))},{'value':_0x358323(0x1d6),'label':_0x4d22c5['t'](_0x358323(0x4a6))}],'value':_0x38a135,'onChange':_0xb1136a}),_0x1bfcde(_0x358323(0x332),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0x38a135===_0x358323(0x412)?_0x3fc05f(_0x358323(0x332),{'className':_0x358323(0x171),'children':[_0x1bfcde(ci,{'label':_0x4d22c5['t'](_0x358323(0x37a)),'children':_0x1bfcde(_0x225487,{'value':_0x4b76eb[_0x358323(0x18f)]??_0x4b76eb['title']??'','onChange':_0x3779cd,'onBlur':_0x3f0b61=>_0x3779cd(_0x3f0b61[_0x358323(0x22c)][_0x358323(0x435)])})}),_0x1bfcde(ci,{'label':_0x4d22c5['t'](_0x358323(0x348)),'children':_0x1bfcde(_0x225487,{'disabled':!0x0,'value':(_0x43e926==null?void 0x0:_0x43e926[_0x358323(0x3aa)])??_0x4d22c5['t'](_0x358323(0x36f))})}),_0x3fc05f(ci,{'label':_0x4d22c5['t'](_0x358323(0x1b9)),'children':[_0x1bfcde(_0x225487,{'disabled':!0x0,'value':_0x23590c(_0x1dca15,_0x274add)}),_0x1bfcde(_0x29df96,{'className':_0x358323(0x2e4),'onClick':()=>_0x1ae15a(!0x0),'children':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.editFormula')})]})]}):_0x3fc05f(_0x358323(0x332),{'className':_0x358323(0x171),'children':[_0x1bfcde(_0x14a84b,{'emptyLabel':_0x4d22c5['t'](_0x358323(0x3b0)),'label':_0x4d22c5['t'](_0x358323(0x3b0)),'pickerFallbackValue':_0x36653b?_0x51ebcd[_0x358323(0x387)][0x384]:_0x51ebcd[_0x358323(0x387)][0x0],'resetLabel':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x25ab94[_0x358323(0x26f)]??null,'onChange':_0x519593=>_0x5adab1({'backgroundColor':_0x519593??void 0x0})}),_0x3fc05f(ci,{'label':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.backgroundImage'),'children':[_0x3fc05f(_0x358323(0x332),{'className':_0x358323(0x169),'children':[_0x3fc05f(_0x29df96,{'className':'univer-flex-1','onClick':()=>{const _0x17adf0=_0x358323;_0x31e576()[_0x17adf0(0x2bd)](_0x575064=>{const _0x142f24=_0x17adf0;if(_0x575064){var _0x5c41c2;return _0x5adab1({'backgroundImage':{..._0x575064,'fit':((_0x5c41c2=_0x25ab94[_0x142f24(0x1c6)])==null?void 0x0:_0x5c41c2[_0x142f24(0x3d9)])??_0x142f24(0x3a5)}});}})[_0x17adf0(0x2cb)](()=>void 0x0);},'children':[_0x1bfcde(_0x5d1373,{}),_0x25ab94[_0x358323(0x1c6)]?_0x4d22c5['t'](_0x358323(0x490)):_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.uploadImage')]}),_0x25ab94['backgroundImage']&&_0x1bfcde(_0x29df96,{'aria-label':_0x4d22c5['t'](_0x358323(0x1fd)),'title':_0x4d22c5['t'](_0x358323(0x1fd)),'onClick':()=>_0x5adab1({'backgroundImage':void 0x0}),'children':_0x1bfcde(_0x4e3f72,{})})]}),_0x25ab94[_0x358323(0x1c6)]&&_0x1bfcde(_0x9bce40,{'className':_0x358323(0x20f),'items':[{'value':_0x358323(0x3a5),'label':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':'contain','label':_0x4d22c5['t'](_0x358323(0x485))}],'value':_0x25ab94['backgroundImage'][_0x358323(0x3d9)],'onChange':_0x14a7a9=>_0x5adab1({'backgroundImage':_0x25ab94[_0x358323(0x1c6)]?{..._0x25ab94[_0x358323(0x1c6)],'fit':_0x14a7a9}:void 0x0})})]}),_0x1bfcde(_0x14a84b,{'emptyLabel':_0x4d22c5['t'](_0x358323(0x354)),'label':_0x4d22c5['t'](_0x358323(0x354)),'pickerFallbackValue':_0x36653b?_0x51ebcd['gray'][0x32]:_0x51ebcd[_0x358323(0x387)][0x3e8],'resetLabel':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x25ab94[_0x358323(0x386)]??null,'onChange':_0x6168c9=>_0x5adab1({'textColor':_0x6168c9??void 0x0})}),_0x1bfcde(ci,{'label':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x1bfcde(_0x9bce40,{'items':[{'value':_0x358323(0x3d1),'label':_0x4d22c5['t'](_0x358323(0x26e))},{'value':_0x358323(0x28e),'label':_0x4d22c5['t'](_0x358323(0x3e2))},{'value':'right','label':_0x4d22c5['t'](_0x358323(0x349))}],'value':_0x25ab94['alignment'],'onChange':_0x43adb4=>_0x5adab1({'alignment':_0x43adb4})})}),_0x3fc05f(ci,{'label':_0x4d22c5['t'](_0x358323(0x178)),'children':[_0x1bfcde(_0x9bce40,{'items':[{'value':_0x358323(0x27e),'label':_0x4d22c5['t'](_0x358323(0x2a7))},{'value':'custom','label':_0x4d22c5['t'](_0x358323(0x1f3))}],'value':_0x25ab94[_0x358323(0x204)],'onChange':_0x5e1384=>_0x5adab1({'fontSizeMode':_0x5e1384})}),_0x25ab94[_0x358323(0x204)]==='custom'&&_0x1bfcde(_0x142183,{'className':_0x358323(0x20f),'min':0xc,'max':0x78,'value':_0x25ab94['fontSize'],'onChange':_0x1ea239=>_0x5adab1({'fontSize':_0x1ea239??0x28,'fontSizeMode':'custom'})})]}),_0x1bfcde(ci,{'label':_0x4d22c5['t'](_0x358323(0x322)),'children':_0x1bfcde(qr,{'value':_0x25ab94[_0x358323(0x441)],'options':[{'value':'general','label':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.general')},{'value':_0x358323(0x338),'label':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.number')},{'value':_0x358323(0x3b1),'label':_0x4d22c5['t'](_0x358323(0x425))},{'value':_0x358323(0x214),'label':_0x4d22c5['t'](_0x358323(0x44d))},{'value':_0x358323(0x4a4),'label':_0x4d22c5['t'](_0x358323(0x43e))},{'value':_0x358323(0x1c4),'label':_0x4d22c5['t'](_0x358323(0x358))}],'onChange':_0xd4411f=>{let _0x1b2530=oi['find'](_0x8255af=>_0x8255af===_0xd4411f);_0x1b2530&&_0x5adab1({'numberFormat':_0x1b2530});}})}),_0x25ab94['numberFormat']===_0x358323(0x214)&&_0x1bfcde(ci,{'label':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x1bfcde(_0x225487,{'value':_0x25ab94['currency'],'onChange':_0x56011d=>_0x5adab1({'currency':_0x56011d[_0x358323(0x401)](0x0,0x3)[_0x358323(0x3c5)]()})})}),_0x25ab94['numberFormat']!=='general'&&_0x1bfcde(ci,{'label':_0x4d22c5['t']('bases-dashboard-ui.dashboardInspector.decimalPlaces'),'children':_0x1bfcde(_0x142183,{'min':0x0,'max':0x8,'value':_0x25ab94[_0x358323(0x336)],'onChange':_0x412814=>_0x5adab1({'decimalPlaces':_0x412814??0x0})})})]})}),_0x330eb5&&_0x1bfcde(Yr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1bfcde(_0x4c5f2e,{'tables':_0x274add,'formula':_0x23590c(_0x1dca15,_0x274add),'onCancel':()=>_0x1ae15a(!0x1),'onSave':_0x227974=>{const _0x124f89=_0x358323;let _0x399331=_0x4b76eb[_0x124f89(0x20a)][_0x124f89(0x251)]??{'formula':''};return _0x42a193({..._0x4b76eb,'shapeData':{..._0x4b76eb[_0x124f89(0x20a)],'formulaBinding':{..._0x399331,'formula':_0x909b28(_0x227974,_0x274add)}}})['then'](()=>_0x1ae15a(!0x1))[_0x124f89(0x2cb)](()=>void 0x0);}})})]});}function ci({children:_0x5d95e2,label:_0x1fce2f}){const _0x1373d0=_0x57c180;return _0x3fc05f('div',{'role':'group','aria-label':_0x1fce2f,'className':_0x1373d0(0x307),'children':[_0x1bfcde(_0x1373d0(0x45e),{'children':_0x1fce2f}),_0x5d95e2]});}function li({disabled:_0x1c0564,fields:_0x82747b,filter:_0x23a045,onChange:_0x5426fd}){const _0x3d47a6=_0x57c180;let _0x12afe3=_0x3dc792(_0x270a90)[_0x3d47a6(0x317)]??null,[_0x2f52ad,_0x5097a1]=_0x155c41(null),_0x163b1b=_0x3dc792(_0xc34a30),_0x3f20ed=(_0x23a045==null?void 0x0:_0x23a045[_0x3d47a6(0x3cd)])??[];if(!_0x3f20ed[_0x3d47a6(0x291)])return _0x3fc05f('div',{'className':_0x3d47a6(0x21f),'children':[_0x1bfcde(_0x3b1c88,{'className':_0x3d47a6(0x3e8)}),_0x1bfcde(_0x3d47a6(0x45e),{'className':'univer-text-sm','children':_0x163b1b['t'](_0x3d47a6(0x161))})]});let _0x13884a=_0x2f52ad==null?void 0x0:_0x3f20ed[_0x2f52ad],_0x563f03=_0x82747b[_0x3d47a6(0x34b)](_0x4f2da6=>_0x4f2da6['id']===(_0x13884a==null?void 0x0:_0x13884a[_0x3d47a6(0x383)]));return _0x3fc05f('div',{'className':_0x3d47a6(0x3a3),'children':[_0x3f20ed[_0x3d47a6(0x48c)]((_0x3bded4,_0x28a52e)=>{const _0x2eb1e6=_0x3d47a6;var _0x1bd285;return _0x3fc05f(_0x29df96,{'disabled':_0x1c0564,'onClick':()=>_0x5097a1(_0x28a52e),'children':[_0x1bfcde(_0x2eb1e6(0x45e),{'children':((_0x1bd285=_0x82747b[_0x2eb1e6(0x34b)](_0x52cd5b=>_0x52cd5b['id']===_0x3bded4['fieldId']))==null?void 0x0:_0x1bd285[_0x2eb1e6(0x3aa)])??_0x3bded4[_0x2eb1e6(0x383)]}),_0x1bfcde(_0x2eb1e6(0x45e),{'className':_0x2eb1e6(0x420),'children':String(_0x3bded4['operand']??'')})]},_0x3bded4[_0x2eb1e6(0x383)]+'-'+_0x28a52e);}),_0x563f03&&_0x13884a&&_0x2f52ad!=null&&_0x12afe3&&_0x168f49(_0x1bfcde(_0x384525,{'field':_0x563f03,'value':_0x13884a['operand'],'onClose':()=>_0x5097a1(null),'onSave':_0x3700a2=>{const _0x3f362d=_0x3d47a6;_0x5426fd({'conjunction':(_0x23a045==null?void 0x0:_0x23a045[_0x3f362d(0x184)])??_0x26a62d[_0x3f362d(0x378)],'conditions':_0x3f20ed[_0x3f362d(0x48c)]((_0x215261,_0x59c89c)=>_0x59c89c===_0x2f52ad?{..._0x215261,'operand':_0x3700a2}:_0x215261)}),_0x5097a1(null);}}),_0x12afe3)]});}function ui({fields:_0x30ac74,filter:_0x4747eb,onChange:_0x5cd065,onClear:_0x53e4f7}){const _0x263af2=_0x57c180;let _0x12eaf5=_0x3dc792(_0xc34a30);return _0x3fc05f(_0x263af2(0x332),{'children':[_0x1bfcde(_0x123ae3,{'fields':_0x30ac74,'value':_0x4747eb??{'conjunction':_0x26a62d['AND'],'conditions':[]},'onChange':_0x5cd065}),_0x1bfcde(_0x29df96,{'onClick':_0x53e4f7,'children':_0x12eaf5['t'](_0x263af2(0x459))})]});}function di({base:_0x4eb0dd,chartRuntime:_0x4d753d,onChange:_0x46f749,onClose:_0x41d20b,onSelectBackgroundImage:_0x581855,onSelectImage:_0x30ae0b,unitId:_0x6ab571,widget:_0x45ed9b}){const _0x4b933a=_0x57c180;let _0x4d3f27=_0x3dc792(_0x20bf70),_0x20bee2=_0x3dc792(_0xc34a30),_0x1ba9ef=_0x4eb0dd[_0x4b933a(0x257)](),_0x1505a4=_0x4b933a(0x31f)in _0x45ed9b?_0x1ba9ef[_0x4b933a(0x47e)][_0x45ed9b[_0x4b933a(0x31f)]]:void 0x0,_0x2379bb=_0x45ed9b[_0x4b933a(0x498)]===_0x925244['PivotChart']?_0x1505a4==null?void 0x0:_0x1505a4[_0x4b933a(0x46e)][_0x45ed9b[_0x4b933a(0x488)]]:void 0x0,_0x238d59=_0x20bee2['t'](vi(_0x45ed9b)),_0x21b174=_0x3fc05f(_0x4b933a(0x351),{'data-dashboard-inspector':!0x0,'className':'univer-flex\x20univer-h-full\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x45ed9b['type']===_0x925244[_0x4b933a(0x404)]&&(_i(_0x2379bb)&&_0x4d753d?_0x1bfcde(ii,{'runtime':_0x4d753d,'sourceChart':_0x2379bb['config']['chart'],'sourceName':((_0x1505a4==null?void 0x0:_0x1505a4[_0x4b933a(0x3aa)])??'')+_0x4b933a(0x193)+_0x2379bb[_0x4b933a(0x3aa)],'widget':_0x45ed9b,'onChange':_0x46f749,'onEditData':()=>{const _0xb0740f=_0x4b933a;_0x4d3f27[_0xb0740f(0x3fa)](_0x47e1b0['id'],{'unitId':_0x6ab571,'tableId':_0x45ed9b[_0xb0740f(0x31f)],'viewId':_0x45ed9b['pivotViewId']})[_0xb0740f(0x2cb)](()=>void 0x0);}}):_0x1bfcde(hi,{'message':_i(_0x2379bb)?_0x20bee2['t']('bases-dashboard-ui.dashboardInspector.loading'):_0x20bee2['t'](_0x4b933a(0x36f))})),_0x45ed9b['type']===_0x925244['FormulaShape']&&_0x1bfcde(si,{'base':_0x4eb0dd,'widget':_0x45ed9b,'onChange':_0x46f749,'onSelectBackgroundImage':_0x581855}),_0x45ed9b[_0x4b933a(0x498)]===_0x925244[_0x4b933a(0x1fc)]&&_0x1bfcde(pi,{'base':_0x4eb0dd,'onChange':_0x46f749,'widget':_0x45ed9b}),_0x45ed9b[_0x4b933a(0x498)]===_0x925244[_0x4b933a(0x377)]&&_0x1bfcde(mi,{'onChange':_0x46f749,'widget':_0x45ed9b}),_0x45ed9b[_0x4b933a(0x498)]===_0x925244[_0x4b933a(0x37d)]&&_0x1bfcde(fi,{'onChange':_0x46f749,'onSelectImage':_0x30ae0b,'widget':_0x45ed9b})]});return _0x1bfcde(_0x5ae53d,{'title':_0x238d59,'onClose':_0x41d20b,'children':_0x21b174});}function fi({onChange:_0x13546e,onSelectImage:_0x557a33,widget:_0x659531}){const _0x9dbfcb=_0x57c180;let _0x4f33df=_0x3dc792(_0xc34a30);return _0x3fc05f('div',{'className':'univer-grid\x20univer-gap-4\x20univer-p-4','children':[_0x3fc05f(_0x29df96,{'className':'univer-w-full','onClick':()=>_0x557a33()[_0x9dbfcb(0x2bd)](_0x40921e=>_0x40921e&&_0x13546e({..._0x659531,'source':_0x40921e['source'],'sourceType':_0x40921e[_0x9dbfcb(0x407)],'alt':_0x40921e['name']}))[_0x9dbfcb(0x2cb)](()=>void 0x0),'children':[_0x1bfcde(_0x5d1373,{}),_0x4f33df['t'](_0x9dbfcb(0x490))]}),_0x3fc05f(_0x9dbfcb(0x372),{'className':_0x9dbfcb(0x307),'children':[_0x1bfcde(_0x9dbfcb(0x45e),{'children':_0x4f33df['t'](_0x9dbfcb(0x2b3))}),_0x1bfcde(_0x9bce40,{'items':[{'value':_0x9dbfcb(0x3a5),'label':_0x4f33df['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x9dbfcb(0x32c),'label':_0x4f33df['t']('bases-dashboard-ui.dashboardInspector.repeat')},{'value':_0x9dbfcb(0x259),'label':_0x4f33df['t'](_0x9dbfcb(0x400))}],'value':_0x659531['displayMode']??_0x9dbfcb(0x3a5),'onChange':_0x4b6f01=>_0x13546e({..._0x659531,'displayMode':_0x4b6f01})[_0x9dbfcb(0x2cb)](()=>void 0x0)})]})]});}function pi({base:_0x162e5d,onChange:_0x2c5f3b,widget:_0xfc9949}){const _0x289f53=_0x57c180;let _0x64e3a0=_0x162e5d[_0x289f53(0x257)]()['tables'][_0xfc9949[_0x289f53(0x31f)]],_0x42d554=_0x64e3a0==null?void 0x0:_0x64e3a0[_0x289f53(0x3d3)][_0x289f53(0x34b)](_0x4da6da=>_0x64e3a0[_0x289f53(0x46e)][_0x4da6da]),_0x349927=_0x42d554?_0x64e3a0==null?void 0x0:_0x64e3a0[_0x289f53(0x46e)][_0x42d554]:void 0x0,_0x2e20a8=_0x64e3a0&&_0x349927?_0x20d50d(_0x64e3a0,_0x349927):[];return _0x1bfcde(ui,{'fields':_0x2e20a8,'filter':_0xfc9949[_0x289f53(0x449)],'onChange':_0x43a0dc=>_0x2c5f3b({..._0xfc9949,'filter':_0x43a0dc})['catch'](()=>void 0x0),'onClear':()=>_0x2c5f3b({..._0xfc9949,'filter':null})[_0x289f53(0x2cb)](()=>void 0x0)});}function mi({onChange:_0x341dce,widget:_0xe97b66}){const _0x2d5e7b=_0x57c180;let _0x53605f=_0x3dc792(_0xc34a30),_0x5320c9=_0x3dc792(_0x2f0481),_0x9d55ff=_0x1cdd28(()=>_0x5320c9[_0x2d5e7b(0x409)],_0x5320c9[_0x2d5e7b(0x284)](),!0x1,[_0x5320c9]),_0x31a842=Br(_0xe97b66),_0xcfeae5=_0x10ddfd=>_0x341dce({..._0xe97b66,'appearance':{..._0x31a842,..._0x10ddfd}})[_0x2d5e7b(0x2cb)](()=>void 0x0);return _0x3fc05f(_0x2d5e7b(0x332),{'className':'univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','children':[_0x1bfcde(_0x98f9d1,{'className':'univer-max-h-40\x20univer-text-base','defaultValue':Vr(_0xe97b66[_0x2d5e7b(0x3c8)]),'rows':0x8,'onBlur':_0x3fbdfd=>_0x341dce({..._0xe97b66,'document':Hr(_0xe97b66[_0x2d5e7b(0x3c8)],_0x3fbdfd[_0x2d5e7b(0x22c)][_0x2d5e7b(0x435)])})[_0x2d5e7b(0x2cb)](()=>void 0x0)}),_0x1bfcde(_0x14a84b,{'emptyLabel':_0x53605f['t'](_0x2d5e7b(0x3b0)),'label':_0x53605f['t'](_0x2d5e7b(0x3b0)),'pickerFallbackValue':_0x9d55ff[_0x2d5e7b(0x387)][0x0],'resetLabel':_0x53605f['t'](_0x2d5e7b(0x459)),'value':_0x31a842['backgroundColor']??null,'onChange':_0x309888=>_0xcfeae5({'backgroundColor':_0x309888??void 0x0})}),_0x1bfcde(_0x14a84b,{'emptyLabel':_0x53605f['t'](_0x2d5e7b(0x354)),'label':_0x53605f['t'](_0x2d5e7b(0x354)),'pickerFallbackValue':_0x9d55ff['gray'][0x3e8],'resetLabel':_0x53605f['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x31a842['textColor']??null,'onChange':_0x137c4f=>_0xcfeae5({'textColor':_0x137c4f??void 0x0})}),_0x1bfcde(gi,{'label':_0x53605f['t'](_0x2d5e7b(0x1aa)),'children':_0x1bfcde(_0x9bce40,{'items':[{'value':_0x2d5e7b(0x3d1),'label':_0x53605f['t'](_0x2d5e7b(0x26e))},{'value':_0x2d5e7b(0x28e),'label':_0x53605f['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0x2d5e7b(0x3bb),'label':_0x53605f['t'](_0x2d5e7b(0x349))}],'value':_0x31a842[_0x2d5e7b(0x283)],'onChange':_0x3d2262=>_0xcfeae5({'alignment':_0x3d2262})})}),_0x3fc05f(gi,{'label':_0x53605f['t'](_0x2d5e7b(0x178)),'children':[_0x1bfcde(_0x9bce40,{'items':[{'value':_0x2d5e7b(0x27e),'label':_0x53605f['t'](_0x2d5e7b(0x2a7))},{'value':_0x2d5e7b(0x29e),'label':_0x53605f['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x31a842[_0x2d5e7b(0x204)],'onChange':_0x3db15b=>_0xcfeae5({'fontSizeMode':_0x3db15b})}),_0x31a842[_0x2d5e7b(0x204)]===_0x2d5e7b(0x29e)&&_0x1bfcde(_0x142183,{'className':_0x2d5e7b(0x20f),'min':0xa,'max':0x78,'value':_0x31a842[_0x2d5e7b(0x2cd)],'onChange':_0x2e8a41=>_0xcfeae5({'fontSize':_0x2e8a41??0x12,'fontSizeMode':_0x2d5e7b(0x29e)})})]})]});}function hi({message:_0x245ba9}){const _0x1ee0fd=_0x57c180;return _0x1bfcde(_0x1ee0fd(0x332),{'className':_0x1ee0fd(0x3a0),'children':_0x245ba9});}function gi({children:_0x473d2e,label:_0x51fd88}){const _0x339747=_0x57c180;return _0x3fc05f(_0x339747(0x332),{'role':_0x339747(0x208),'aria-':!0x0,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x1bfcde(_0x339747(0x45e),{'children':_0x51fd88}),_0x473d2e]});}function _i(_0x5deb47){const _0x882df2=_0x57c180;return(_0x5deb47==null?void 0x0:_0x5deb47[_0x882df2(0x498)])===_0x4e046d[_0x882df2(0x496)]&&typeof _0x5deb47[_0x882df2(0x163)]==_0x882df2(0x177)&&_0x5deb47['config']!==null&&_0x882df2(0x3b9)in _0x5deb47[_0x882df2(0x163)]&&_0x882df2(0x49c)in _0x5deb47[_0x882df2(0x163)];}function vi(_0x19e1da){const _0x56ca06=_0x57c180;switch(_0x19e1da[_0x56ca06(0x498)]){case _0x925244['PivotChart']:return'bases-dashboard-ui.dashboard.pivotChart';case _0x925244['TableFilter']:return _0x56ca06(0x161);case _0x925244[_0x56ca06(0x377)]:return _0x56ca06(0x467);case _0x925244[_0x56ca06(0x37d)]:return'bases-dashboard-ui.dashboard.image';case _0x925244['FormulaShape']:return _0x56ca06(0x4a7);}}function yi({onDelete:_0x593e38,onEdit:_0x8aad5,onMoveUp:_0x4cfa22,onMoveDown:_0xfcc6ca}){const _0x4c826c=_0x57c180;let [_0xa82fa4,_0x268554]=_0x155c41(!0x1),_0x44783f=_0x3dc792(_0xc34a30),_0x527a4b=_0x44783f['t'](_0x4c826c(0x47f)),_0x5c1ad7=_0x44783f['t'](_0x4c826c(0x3df)),_0x3850b8=_0x44783f['t']('bases-dashboard-ui.dashboard.widgetActions'),_0x4a2401=[{'type':_0x4c826c(0x224),'children':_0x3fc05f(_0x4c826c(0x45e),{'className':_0x4c826c(0x3f2),'children':[_0x1bfcde(_0x473cd9,{'className':_0x4c826c(0x375),'aria-hidden':_0x4c826c(0x44f)}),_0x1bfcde(_0x4c826c(0x45e),{'children':_0x527a4b})]}),'onSelect':_0x8aad5},..._0x4cfa22?[{'type':_0x4c826c(0x224),'children':_0x3fc05f(_0x4c826c(0x45e),{'className':_0x4c826c(0x3f2),'children':[_0x1bfcde(_0x556586,{'className':'univer-size-4','aria-hidden':'true'}),_0x1bfcde(_0x4c826c(0x45e),{'children':_0x44783f['t'](_0x4c826c(0x23d))})]}),'onSelect':_0x4cfa22}]:[],..._0xfcc6ca?[{'type':_0x4c826c(0x224),'children':_0x3fc05f(_0x4c826c(0x45e),{'className':_0x4c826c(0x3f2),'children':[_0x1bfcde(_0x6231e1,{'className':'univer-size-4','aria-hidden':_0x4c826c(0x44f)}),_0x1bfcde('span',{'children':_0x44783f['t'](_0x4c826c(0x2cf))})]}),'onSelect':_0xfcc6ca}]:[],{'type':_0x4c826c(0x168)},{'type':_0x4c826c(0x224),'variant':_0x4c826c(0x36e),'children':_0x3fc05f(_0x4c826c(0x45e),{'className':_0x4c826c(0x3f2),'children':[_0x1bfcde(_0x4e3f72,{'className':_0x4c826c(0x375),'aria-hidden':_0x4c826c(0x44f)}),_0x1bfcde(_0x4c826c(0x45e),{'children':_0x5c1ad7})]}),'onSelect':_0x593e38}];return _0x1bfcde(_0x1f43a4,{'open':_0xa82fa4,'onOpenChange':_0x268554,'align':_0x4c826c(0x29f),'sideOffset':0x4,'items':_0x4a2401['map'](_0xa35b92=>({..._0xa35b92,'className':_0xa35b92[_0x4c826c(0x498)]===_0x4c826c(0x224)?_0x4c826c(0x494):void 0x0})),'children':_0x1bfcde(_0x29df96,{'type':_0x4c826c(0x189),'size':'small','variant':_0x4c826c(0x22e),'onPointerDown':_0x22cfff=>_0x22cfff[_0x4c826c(0x18d)](),'onClick':()=>_0x268554(_0x4aa060=>!_0x4aa060),'title':_0x3850b8,'aria-label':_0x3850b8,'className':_0x4c826c(0x314),'children':_0x1bfcde(_0x5e1024,{'className':_0x4c826c(0x375),'aria-hidden':_0x4c826c(0x44f)})})});}function bi({dashboardId:_0x5f3a1f,presentation:_0x55c214=!0x1,unitId:_0x44df46}){const _0x5450b4=_0x57c180;let _0x214a15=_0x3dc792(_0x3fc728),_0x28991f=_0x3dc792(_0x202eb7);_0x1cdd28(_0x28991f[_0x5450b4(0x22f)],0x0);let _0x2f25b0=_0x3dc792(_0x20bf70),_0x5a284e=_0x3dc792(_0x366739),_0xfef437=_0x3dc792(_0x26f888),_0x504f55=_0x3dc792(_0xfa1040),_0x18678d=_0x3dc792(_0xc34a30),_0x556e1e=_0x3dc792(_0x1e99fb),_0x2a8ef1=_0x3dc792(_0x21d906),[_0x333d36,_0x531dd9]=_0x155c41(!0x1),[_0x54d83c,_0x5de433]=_0x155c41(),[_0x29f565,_0x499874]=_0x155c41(!0x1),[_0x409d7a,_0xa7ee11]=_0x155c41(()=>new Map()),_0x29fe8f=_0xd5c68e((_0xe8014a,_0x2ec34c)=>{_0xa7ee11(_0x44aca9=>{const _0x57ec6c=_0x44d8;let _0xb6f93c=new Map(_0x44aca9);return _0x2ec34c?_0xb6f93c[_0x57ec6c(0x33a)](_0xe8014a,_0x2ec34c):_0xb6f93c[_0x57ec6c(0x33f)](_0xe8014a),_0xb6f93c;});},[]),_0x5b9a7d=_0x1cdd28(()=>_0x556e1e['change$'][_0x5450b4(0x391)](_0x3b1cb4(()=>_0x556e1e[_0x5450b4(0x325)](_0x44df46,_0x5f3a1f))),_0x556e1e['getDashboard'](_0x44df46,_0x5f3a1f),!0x1,[_0x5f3a1f,_0x556e1e,_0x44df46]),_0x48b063=_0x504f55[_0x5450b4(0x2ee)](_0x44df46,_0x1be7ab[_0x5450b4(0x360)]),_0x200842=_0x1cdd28(()=>_0x2a8ef1[_0x5450b4(0x316)],{'undos':0x0,'redos':0x0},!0x1,[_0x2a8ef1]),_0x2b5af1=gr(_0x44df46,_0x5f3a1f);if(_0x5a872b(()=>{const _0x273d9f=_0x5450b4;_0x504f55[_0x273d9f(0x350)](_0x44df46),_0x504f55[_0x273d9f(0x1e9)](_0x44df46);},[_0x504f55,_0x44df46]),!_0x5b9a7d||!_0x48b063)return null;let _0x4397e5={'unitId':_0x44df46,'objectId':_0x23d43e(_0x5f3a1f),'objectType':_0x368318['BaseDashboard']},_0x3d899b=(_0x5ec417,_0x478604)=>{const _0x472c6f=_0x5450b4;let _0x54d296=[..._0x5b9a7d[_0x472c6f(0x396)]],_0x5a9c74=_0x54d296[_0x472c6f(0x29d)](_0x5ec417),_0x1d096b=_0x5a9c74+_0x478604;if(!(_0x5a9c74<0x0||_0x1d096b<0x0||_0x1d096b>=_0x54d296[_0x472c6f(0x291)]))return[_0x54d296[_0x5a9c74],_0x54d296[_0x1d096b]]=[_0x54d296[_0x1d096b],_0x54d296[_0x5a9c74]],_0x2f25b0[_0x472c6f(0x3fa)](_0x16ed85['id'],{'unitId':_0x44df46,'dashboard':{..._0x5b9a7d,'widgetOrder':_0x54d296}});},_0x1677be=_0x144c35=>_0x2f25b0['executeCommand'](_0x5a7b78['id'],{'unitId':_0x44df46,'dashboardId':_0x5f3a1f,'widget':_0x144c35})[_0x5450b4(0x2cb)](()=>void 0x0),_0x14f310=(_0x2b648d,_0x2c96c2,_0x3c82f9)=>{const _0x45dc3d=_0x5450b4;let _0x6b818a=Math['max'](0x0,..._0x5b9a7d['widgetOrder'][_0x45dc3d(0x21e)](_0x1aaa6e=>{const _0x1dd05e=_0x45dc3d;var _0x4b4329;let _0x6e41a6=(_0x4b4329=_0x5b9a7d['widgets'][_0x1aaa6e])==null?void 0x0:_0x4b4329[_0x1dd05e(0x424)];return _0x6e41a6?[_0x6e41a6['row']+_0x6e41a6['rowSpan']]:[];})),_0x1c231c=_0x45dc3d(0x47d)+_0x2bbf35(0x8),_0x595eb4={'column':0x0,'row':_0x6b818a,'columnSpan':_0x2c96c2,'rowSpan':_0x3c82f9};switch(_0x2b648d['type']){case _0x925244[_0x45dc3d(0x404)]:return _0x1677be({..._0x2b648d,'id':_0x1c231c,'layout':_0x595eb4});case _0x925244[_0x45dc3d(0x1fc)]:return _0x1677be({..._0x2b648d,'id':_0x1c231c,'layout':_0x595eb4});case _0x925244[_0x45dc3d(0x377)]:return _0x1677be({..._0x2b648d,'id':_0x1c231c,'layout':_0x595eb4});case _0x925244[_0x45dc3d(0x37d)]:return _0x1677be({..._0x2b648d,'id':_0x1c231c,'layout':_0x595eb4});case _0x925244['FormulaShape']:return _0x1677be({..._0x2b648d,'id':_0x1c231c,'layout':_0x595eb4});}},_0x265d6d=_0x48b063[_0x5450b4(0x257)](),_0x302370=_0x265d6d['tableOrder'][_0x5450b4(0x21e)](_0x3aa013=>{const _0x201915=_0x5450b4;let _0x2754d0=_0x265d6d[_0x201915(0x47e)][_0x3aa013];if(!_0x2754d0)return[];let _0x2a8975=_0x2754d0[_0x201915(0x3d3)][_0x201915(0x21e)](_0x3a1e4c=>{const _0xfda3e8=_0x201915;let _0xa5c17c=_0x2754d0[_0xfda3e8(0x46e)][_0x3a1e4c];return Oi(_0xa5c17c)?[{'type':_0xfda3e8(0x224),'children':_0xa5c17c['name'],'onSelect':()=>_0x14f310({'type':_0x925244[_0xfda3e8(0x404)],'tableId':_0x3aa013,'pivotViewId':_0x3a1e4c,'chart':{..._0xa5c17c[_0xfda3e8(0x163)][_0xfda3e8(0x49c)]}},0x6,0xa)}]:[];});return[{'type':_0x201915(0x43a),'children':_0x2754d0[_0x201915(0x3aa)],'options':[..._0x2a8975,..._0x2a8975['length']?[{'type':_0x201915(0x168)}]:[],{'type':'item','children':_0x18678d['t']('bases-dashboard-ui.dashboard.tableFilter'),'onSelect':()=>_0x14f310({'type':_0x925244[_0x201915(0x1fc)],'tableId':_0x3aa013,'filter':null},0x6,0x8)}]}];}),_0x3357b3=[..._0x302370,..._0x302370[_0x5450b4(0x291)]?[{'type':_0x5450b4(0x168)}]:[],{'type':_0x5450b4(0x224),'children':_0x18678d['t'](_0x5450b4(0x467)),'onSelect':()=>_0x14f310({'type':_0x925244[_0x5450b4(0x377)],'document':wi()},0x4,0x6)},{'type':_0x5450b4(0x224),'children':_0x18678d['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>Ti(_0x5a284e)['then'](_0x3aa5d3=>_0x3aa5d3&&_0x14f310({'type':_0x925244[_0x5450b4(0x37d)],'source':_0x3aa5d3['source'],'sourceType':_0x3aa5d3['sourceType'],'alt':_0x3aa5d3[_0x5450b4(0x3aa)],'displayMode':_0x5450b4(0x3a5)},0x4,0x6))},{'type':_0x5450b4(0x224),'children':_0x18678d['t'](_0x5450b4(0x4a7)),'onSelect':()=>{const _0x26d86c=_0x5450b4;let _0x5bb500=_0x265d6d['tableOrder'][_0x26d86c(0x34b)](_0x492511=>_0x265d6d[_0x26d86c(0x47e)][_0x492511]);_0x5bb500&&_0x14f310({'type':_0x925244[_0x26d86c(0x1a9)],'tableId':_0x5bb500,'shapeType':_0x54b8df['RoundRect'],'shapeData':_0x46c966(),'description':_0x18678d['t'](_0x26d86c(0x4a7))},0x4,0x6);}}],_0x38b0a1=_0x54d83c?_0x5b9a7d[_0x5450b4(0x1d3)][_0x54d83c]:void 0x0,_0x197505=()=>_0x499874(_0x551282=>!_0x551282),_0x4af3b7=_0x55c214||_0x29f565,_0x4cce4b=_0x2b5af1&&!_0x4af3b7;return _0x1bfcde(Kr,{'children':_0x3fc05f(_0x5450b4(0x332),{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x29f565?_0x5450b4(0x419):_0x5450b4(0x2f3))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[_0x29f565&&_0x1bfcde(_0x29df96,{'onClick':()=>_0x499874(!0x1),'children':_0x18678d['t']('bases-dashboard-ui.dashboardInspector.close')}),!_0x4af3b7&&_0x3fc05f(_0x5450b4(0x356),{'className':'univer-flex\x20univer-h-auto\x20univer-min-h-12\x20univer-shrink-0\x20univer-flex-wrap\x20univer-items-center\x20univer-gap-1\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x1bfcde(_0x54efa1,{'className':_0x5450b4(0x1be)}),_0x1bfcde('h2',{'className':_0x5450b4(0x1c3),'children':_0x5b9a7d[_0x5450b4(0x3aa)]}),_0x28991f['supports'](_0x4397e5)&&_0x1bfcde(_0x29df96,{'variant':_0x5450b4(0x22e),'disabled':!_0x28991f['canView'](_0x4397e5),'aria-label':_0x18678d['t'](_0x5450b4(0x369)),'onClick':()=>{const _0x13a5a0=_0x5450b4;_0x27fc04(_0x214a15,{'target':_0x4397e5,'name':_0x5b9a7d[_0x13a5a0(0x3aa)],'commandId':_0x2a9b6a['id'],'exists':()=>!!_0x556e1e['getDashboard'](_0x44df46,_0x5f3a1f)});},'children':_0x1bfcde(_0x4c92f0,{})}),_0x1bfcde(_0xf99d34,{'unitId':_0x44df46}),_0x1bfcde(_0x29df96,{'type':_0x5450b4(0x189),'size':_0x5450b4(0x3a6),'variant':_0x5450b4(0x22e),'aria-label':_0x18678d['t'](_0x5450b4(0x23b)),'disabled':!_0x2b5af1||_0x200842['undos']===0x0,'onClick':()=>_0x2f25b0[_0x5450b4(0x3fa)](_0x114bc6['id'])[_0x5450b4(0x2cb)](()=>void 0x0),'children':_0x1bfcde(_0x1d73f1,{})}),_0x1bfcde(_0x29df96,{'type':_0x5450b4(0x189),'size':'small','variant':'text','aria-label':_0x18678d['t'](_0x5450b4(0x352)),'disabled':!_0x2b5af1||_0x200842[_0x5450b4(0x1f1)]===0x0,'onClick':()=>_0x2f25b0['executeCommand'](_0x409470['id'])['catch'](()=>void 0x0),'children':_0x1bfcde(_0x9460ca,{})}),_0x1bfcde(_0x29df96,{'type':'button','size':'small','variant':_0x5450b4(0x22e),'aria-label':_0x18678d['t'](_0x5450b4(0x1a3)),'onClick':_0x197505,'children':_0x1bfcde(_0x7dfdc8,{})}),_0x1bfcde(Jr,{'items':_0x3357b3,'children':_0x3fc05f(_0x29df96,{'variant':_0x5450b4(0x230),'disabled':!_0x2b5af1,'children':[_0x1bfcde(_0x5d1373,{}),_0x18678d['t'](_0x5450b4(0x479))]})})]}),_0x3fc05f(_0x5450b4(0x332),{'className':_0x5450b4(0x32d),'children':[_0x1bfcde(_0x5450b4(0x332),{'className':_0x5450b4(0x2e9),'children':_0x1bfcde(Wr,{'dashboard':_0x5b9a7d,'editable':_0x4cce4b,'widgetLabel':_0x40cd5c=>_0x18678d['t'](Di(_0x40cd5c[_0x5450b4(0x498)])),'selectedWidgetId':_0x4cce4b?_0x54d83c:void 0x0,'onSelectWidget':_0x4cce4b?_0x51311a=>{_0x5de433(_0x51311a),_0x51311a||_0x531dd9(!0x1);}:void 0x0,'renderWidget':_0xe28568=>_0x1bfcde(xi,{'base':_0x48b063,'dashboard':_0x5b9a7d,'unitId':_0x44df46,'widget':_0xe28568,'onChange':_0x1677be,'onChartRuntimeChange':_0x29fe8f}),'renderWidgetActions':_0x1c82ab=>_0x1bfcde(yi,{'onMoveUp':_0x5b9a7d['widgetOrder'][_0x5450b4(0x29d)](_0x1c82ab['id'])>0x0?()=>_0x3d899b(_0x1c82ab['id'],-0x1):void 0x0,'onMoveDown':_0x5b9a7d['widgetOrder'][_0x5450b4(0x29d)](_0x1c82ab['id'])<_0x5b9a7d['widgetOrder'][_0x5450b4(0x291)]-0x1?()=>_0x3d899b(_0x1c82ab['id'],0x1):void 0x0,'onEdit':()=>{_0x5de433(_0x1c82ab['id']),_0x531dd9(!0x0);},'onDelete':()=>{const _0x2679d6=_0x5450b4;_0x54d83c===_0x1c82ab['id']&&(_0x5de433(void 0x0),_0x531dd9(!0x1)),_0x2f25b0['executeCommand'](_0x6dd3ea['id'],{'unitId':_0x44df46,'dashboardId':_0x5f3a1f,'widgetId':_0x1c82ab['id']})[_0x2679d6(0x2cb)](()=>void 0x0);}})})}),_0x4cce4b&&_0x333d36&&_0x38b0a1&&_0x1bfcde(di,{'base':_0x48b063,'chartRuntime':_0x409d7a[_0x5450b4(0x392)](_0x38b0a1['id']),'unitId':_0x44df46,'widget':_0x38b0a1,'onChange':_0x1677be,'onClose':()=>_0x531dd9(!0x1),'onSelectBackgroundImage':()=>Ei(_0xfef437),'onSelectImage':()=>Ti(_0x5a284e)})]})]})});}function xi({base:_0x51c9ab,dashboard:_0x4a55ff,onChange:_0x4bcfde,onChartRuntimeChange:_0x37f715,unitId:_0x153e70,widget:_0x3ac6d2}){const _0x464cf6=_0x57c180;let _0x252d0f=_0x4561c2(()=>_0x4a55ff['widgetOrder']['flatMap'](_0x4610f5=>{const _0xe416a=_0x44d8;let _0x5a0fc6=_0x4a55ff[_0xe416a(0x1d3)][_0x4610f5];return(_0x5a0fc6==null?void 0x0:_0x5a0fc6[_0xe416a(0x498)])===_0x925244[_0xe416a(0x1fc)]&&_0x5a0fc6['tableId']===(_0xe416a(0x31f)in _0x3ac6d2?_0x3ac6d2[_0xe416a(0x31f)]:'')&&_0x5a0fc6[_0xe416a(0x449)]?[_0x5a0fc6[_0xe416a(0x449)]]:[];}),[_0x4a55ff,_0x3ac6d2]);switch(_0x3ac6d2[_0x464cf6(0x498)]){case _0x925244[_0x464cf6(0x404)]:return _0x1bfcde(Lr,{'filters':_0x252d0f,'unitId':_0x153e70,'widget':_0x3ac6d2,'onRuntimeChange':_0x37f715});case _0x925244[_0x464cf6(0x1fc)]:return _0x1bfcde(li,{'fields':Si(_0x51c9ab,_0x3ac6d2[_0x464cf6(0x31f)]),'filter':_0x3ac6d2[_0x464cf6(0x449)],'onChange':_0xc99bed=>_0x4bcfde({..._0x3ac6d2,'filter':_0xc99bed})[_0x464cf6(0x2cb)](()=>void 0x0)});case _0x925244[_0x464cf6(0x377)]:return _0x1bfcde(Ur,{'widget':_0x3ac6d2});case _0x925244[_0x464cf6(0x37d)]:return _0x1bfcde(Ci,{'widget':_0x3ac6d2});case _0x925244[_0x464cf6(0x1a9)]:return _0x1bfcde(Dr,{'dashboardId':_0x4a55ff['id'],'unitId':_0x153e70,'widget':_0x3ac6d2});}}function Si(_0x2c9985,_0xa8f6c9){const _0x37ea21=_0x57c180;let _0x49f1de=_0x2c9985[_0x37ea21(0x257)]()[_0x37ea21(0x47e)][_0xa8f6c9],_0x4326d7=_0x49f1de==null?void 0x0:_0x49f1de[_0x37ea21(0x3d3)][_0x37ea21(0x34b)](_0x52f3b6=>_0x49f1de[_0x37ea21(0x46e)][_0x52f3b6]),_0x2c9f02=_0x4326d7?_0x49f1de==null?void 0x0:_0x49f1de[_0x37ea21(0x46e)][_0x4326d7]:void 0x0;return _0x49f1de&&_0x2c9f02?_0x20d50d(_0x49f1de,_0x2c9f02):[];}function Ci({widget:_0x435aa7}){const _0x34fba1=_0x57c180;let _0x3c44e7=_0x3dc792(_0x366739),[_0x3333b1,_0x3827b7]=_0x155c41(_0x435aa7[_0x34fba1(0x407)]===_0x2e9f9a[_0x34fba1(0x2bb)]?'':_0x435aa7[_0x34fba1(0x153)]);return _0x5a872b(()=>{const _0xd8ee67=_0x34fba1;let _0xb55186=!0x0;return _0x3c44e7[_0xd8ee67(0x1df)](_0x435aa7[_0xd8ee67(0x153)],_0x435aa7['sourceType'])[_0xd8ee67(0x2bd)](_0xeb93=>{_0xb55186&&_0x3827b7(_0xeb93);})['catch'](()=>void 0x0),()=>{_0xb55186=!0x1;};},[_0x3c44e7,_0x435aa7[_0x34fba1(0x153)],_0x435aa7[_0x34fba1(0x407)]]),_0x3333b1?_0x1bfcde('div',{'role':_0x435aa7[_0x34fba1(0x335)]?'img':void 0x0,'aria-label':_0x435aa7['alt']||void 0x0,'data-dashboard-image':_0x435aa7['id'],'className':'univer-h-full\x20univer-w-full\x20univer-bg-transparent','style':vr(_0x3333b1,_0x435aa7[_0x34fba1(0x36d)])}):null;}function wi(){const _0x347175=_0x57c180;let _0x15b3ca=_0x1d37b5(new Set());return{'id':_0x347175(0x313)+_0x2bbf35(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x15b3ca}]},'documentStyle':{}};}function Ti(_0x3c0ca4){return new Promise(_0x2e892d=>{const _0xaf6d21=_0x44d8;let _0x58cae0=document[_0xaf6d21(0x38f)](_0xaf6d21(0x1c8));_0x58cae0[_0xaf6d21(0x498)]=_0xaf6d21(0x205),_0x58cae0[_0xaf6d21(0x477)]=_0xaf6d21(0x483),_0x58cae0[_0xaf6d21(0x306)](_0xaf6d21(0x2d0),()=>{const _0x1cf2f8=_0xaf6d21;var _0xa1cbb6;let _0x13edb5=(_0xa1cbb6=_0x58cae0[_0x1cf2f8(0x2d4)])==null?void 0x0:_0xa1cbb6[0x0];if(!_0x13edb5){_0x2e892d(null);return;}_0x3c0ca4['saveAttachment'](_0x13edb5)[_0x1cf2f8(0x2bd)](_0x32e46a=>{const _0x346559=_0x1cf2f8;if(!_0x32e46a[_0x346559(0x153)]||_0x32e46a[_0x346559(0x407)]===void 0x0){_0x2e892d(null);return;}_0x2e892d({'name':_0x32e46a['name'],'source':_0x32e46a[_0x346559(0x153)],'sourceType':_0x32e46a[_0x346559(0x407)]});})[_0x1cf2f8(0x2cb)](()=>_0x2e892d(null));},{'once':!0x0}),_0x58cae0[_0xaf6d21(0x1d7)]();});}function Ei(_0x5be6a8){return new Promise(_0x13bc8f=>{const _0x191533=_0x44d8;let _0x13119c=document[_0x191533(0x38f)]('input');_0x13119c[_0x191533(0x498)]=_0x191533(0x205),_0x13119c[_0x191533(0x477)]=_0x191533(0x483),_0x13119c['addEventListener'](_0x191533(0x2d0),()=>{const _0x14aa71=_0x191533;var _0x1cd535;let _0x350878=(_0x1cd535=_0x13119c[_0x14aa71(0x2d4)])==null?void 0x0:_0x1cd535[0x0];if(!_0x350878){_0x13bc8f(null);return;}_0x5be6a8[_0x14aa71(0x1e3)](_0x350878)['then'](_0x3a5644=>{const _0x581c0a=_0x14aa71;if(!(_0x3a5644!=null&&_0x3a5644[_0x581c0a(0x153)])){_0x13bc8f(null);return;}if(_0x3a5644[_0x581c0a(0x2d9)]){let _0x4291bc=new Image();_0x4291bc[_0x581c0a(0x242)]=_0x3a5644[_0x581c0a(0x2d9)],_0x5be6a8[_0x581c0a(0x176)](_0x3a5644[_0x581c0a(0x153)],_0x3a5644[_0x581c0a(0x2ae)],_0x4291bc);}_0x13bc8f({'source':_0x3a5644[_0x581c0a(0x153)],'sourceType':_0x3a5644[_0x581c0a(0x2ae)]});})[_0x14aa71(0x2cb)](()=>_0x13bc8f(null));},{'once':!0x0}),_0x13119c['click']();});}function Di(_0x4119d2){const _0x55e3f9=_0x57c180;switch(_0x4119d2){case _0x925244[_0x55e3f9(0x404)]:return _0x55e3f9(0x245);case _0x925244[_0x55e3f9(0x1fc)]:return _0x55e3f9(0x161);case _0x925244[_0x55e3f9(0x377)]:return'bases-dashboard-ui.dashboard.text';case _0x925244['Image']:return _0x55e3f9(0x431);case _0x925244['FormulaShape']:return _0x55e3f9(0x4a7);}}function Oi(_0x97301b){const _0x5d8ff1=_0x57c180;return(_0x97301b==null?void 0x0:_0x97301b['type'])===_0x4e046d['Pivot']&&typeof _0x97301b[_0x5d8ff1(0x163)]==_0x5d8ff1(0x177)&&_0x97301b['config']!==null&&_0x5d8ff1(0x3b9)in _0x97301b[_0x5d8ff1(0x163)]&&_0x5d8ff1(0x49c)in _0x97301b[_0x5d8ff1(0x163)];}function ki({pivot:_0x43d141,view:_0x26ece0}){const _0x3423b8=_0x57c180;let _0x318fe3=_0x3dc792(_0xc34a30),_0x5d9dd7=_0x4561c2(()=>Ai(_0x26ece0,_0x43d141,_0x318fe3['t'](_0x3423b8(0x42f))),[_0x318fe3,_0x43d141,_0x26ece0]);return _0x3fc05f('div',{'className':'univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','children':[_0x5d9dd7[_0x3423b8(0x1a1)][_0x3423b8(0x291)]>0x0&&_0x1bfcde('table',{'className':'univer-mb-2\x20univer-border-collapse\x20univer-text-sm','children':_0x1bfcde(_0x3423b8(0x26a),{'children':ji(_0x5d9dd7[_0x3423b8(0x1a1)])})}),_0x3fc05f('table',{'className':_0x3423b8(0x43c),'children':[_0x5d9dd7[_0x3423b8(0x3bd)]>0x0&&_0x1bfcde(_0x3423b8(0x25d),{'className':_0x3423b8(0x1b7),'children':ji(_0x5d9dd7[_0x3423b8(0x3e1)][_0x3423b8(0x401)](0x0,_0x5d9dd7['headerRowCount']))}),_0x1bfcde('tbody',{'children':ji(_0x5d9dd7[_0x3423b8(0x3e1)][_0x3423b8(0x401)](_0x5d9dd7[_0x3423b8(0x3bd)]))})]})]});}function Ai(_0x11da5b,_0x332ea7,_0x33208f){const _0x41abd4=_0x57c180;let _0x1a1429=_0x11da5b['colView'][_0x41abd4(0x49a)],_0x476188=_0x11da5b[_0x41abd4(0x374)]['colCount'],_0x19d9b9=_0x11da5b[_0x41abd4(0x3b8)][_0x41abd4(0x49a)],_0x513301=_0x11da5b['dataView']['colCount'],_0x580a24=Array['from']({'length':_0x1a1429+_0x19d9b9},(_0x289f96,_0x8fe33)=>Array[_0x41abd4(0x2b7)]({'length':_0x476188+_0x513301},(_0x1b6925,_0x2fa987)=>{const _0x29a892=_0x41abd4;var _0xfca5a9,_0x20e4ac;if(_0x8fe33<_0x1a1429&&_0x2fa987<_0x476188)return Mi(_0x11da5b[_0x29a892(0x15a)],_0x8fe33,_0x2fa987,void 0x0,_0x33208f,!0x0,!0x1,_0x29a892(0x2c0)+_0x8fe33+':'+_0x2fa987);if(_0x8fe33<_0x1a1429){var _0x3bd4b7;let _0x2e5377=_0x2fa987-_0x476188,_0x4019c2=(_0x3bd4b7=_0x11da5b[_0x29a892(0x2f9)]['headerMap'][_0x8fe33])==null?void 0x0:_0x3bd4b7[_0x29a892(0x1bf)];return Mi(_0x11da5b[_0x29a892(0x2f9)],_0x8fe33,_0x2e5377,_0x4019c2?_0x11da5b['formatMap'][_0x4019c2]:void 0x0,_0x33208f,!0x0,Fi(_0x11da5b[_0x29a892(0x2f9)]['info'][_0x2e5377]),_0x29a892(0x278)+_0x8fe33+':'+_0x2e5377);}if(_0x2fa987<_0x476188){var _0x53cc72;let _0x146703=_0x8fe33-_0x1a1429,_0x1b6172=(_0x53cc72=_0x11da5b[_0x29a892(0x374)]['headerMap'][_0x2fa987])==null?void 0x0:_0x53cc72[_0x29a892(0x1bf)];return Mi(_0x11da5b[_0x29a892(0x374)],_0x146703,_0x2fa987,_0x1b6172?_0x11da5b[_0x29a892(0x285)][_0x1b6172]:void 0x0,_0x33208f,!0x0,Fi(_0x11da5b['rowView'][_0x29a892(0x1de)][_0x146703]),_0x29a892(0x288)+_0x146703+':'+_0x2fa987);}let _0x27857e=_0x8fe33-_0x1a1429,_0xf45b45=_0x2fa987-_0x476188,_0x176e19=Math[_0x29a892(0x203)](((_0xfca5a9=_0x11da5b[_0x29a892(0x374)][_0x29a892(0x1de)][_0x27857e])==null?void 0x0:_0xfca5a9[_0x29a892(0x463)])??-0x1,((_0x20e4ac=_0x11da5b[_0x29a892(0x2f9)]['info'][_0xf45b45])==null?void 0x0:_0x20e4ac['valueIndex'])??-0x1),_0x5016ae=_0x332ea7[_0x29a892(0x3a2)][_0x176e19<0x0?0x0:_0x176e19];return Mi(_0x11da5b[_0x29a892(0x3b8)],_0x27857e,_0xf45b45,_0x5016ae?_0x11da5b['formatMap'][_0x5016ae]:void 0x0,_0x33208f,!0x1,Fi(_0x11da5b[_0x29a892(0x374)]['info'][_0x27857e])||Fi(_0x11da5b[_0x29a892(0x2f9)]['info'][_0xf45b45]),_0x29a892(0x48a)+_0x27857e+':'+_0xf45b45);}));return{'headerColumnCount':_0x476188,'headerRowCount':_0x1a1429,'pageRows':_0x11da5b[_0x41abd4(0x3e6)][_0x41abd4(0x158)]<0x0||_0x11da5b[_0x41abd4(0x3e6)]['lastCol']<0x0?[]:Array['from']({'length':_0x11da5b[_0x41abd4(0x3e6)][_0x41abd4(0x158)]+0x1},(_0x53c06a,_0x3ad68e)=>Array['from']({'length':_0x11da5b['pageView'][_0x41abd4(0x29b)]+0x1},(_0x53eb4b,_0x9e052c)=>Mi(_0x11da5b[_0x41abd4(0x3e6)],_0x3ad68e,_0x9e052c,void 0x0,_0x33208f,!0x0,!0x1,_0x41abd4(0x24a)+_0x3ad68e+':'+_0x9e052c))),'rows':_0x580a24};}function ji(_0x37cc3e){const _0x3784ae=_0x57c180;return _0x37cc3e[_0x3784ae(0x48c)](_0x16fb2a=>{const _0x3224a9=_0x3784ae;var _0x352d33;return _0x1bfcde('tr',{'children':_0x16fb2a['map'](_0x3c5f1e=>{const _0x44e8ac=_0x44d8;let _0x5eca2c=_0x3c5f1e['isHeader']?'th':'td';return _0x1bfcde(_0x5eca2c,{'className':_0x44e8ac(0x46a)+(_0x3c5f1e[_0x44e8ac(0x238)]?'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-gray-50\x20univer-font-semibold\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20':'')+_0x44e8ac(0x263)+(_0x3c5f1e[_0x44e8ac(0x2b0)]?'':_0x44e8ac(0x219))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x3c5f1e[_0x44e8ac(0x435)]},_0x3c5f1e[_0x44e8ac(0x3d8)]);})},(_0x352d33=_0x16fb2a[0x0])==null?void 0x0:_0x352d33[_0x3224a9(0x3d8)]);});}function Mi(_0x1b8514,_0x824012,_0x59289e,_0x128e33,_0x23a745,_0x329015,_0xf305a4,_0x516e75){const _0x51f1a7=_0x57c180;var _0x1c2a46;let _0xc17eda=(_0x1c2a46=_0x1b8514[_0x51f1a7(0x412)][_0x824012])==null?void 0x0:_0x1c2a46[_0x59289e],_0x26f8d2=_0xc17eda==null?void 0x0:_0xc17eda['s'],_0x14c22a=_0xf305a4||_0x26f8d2===_0x487530[_0x51f1a7(0x1fb)]||_0x26f8d2===_0x487530[_0x51f1a7(0x266)];return{'isHeader':_0x329015,'isTotal':_0x14c22a||_0x26f8d2===_0x487530['Subtotal'],'key':_0x516e75,'style':_0x26f8d2,'value':_0x14c22a&&Pi(_0xc17eda==null?void 0x0:_0xc17eda['v'])?_0x23a745:Ni(_0xc17eda,_0x128e33)};}function Ni(_0x19be26,_0x11f477){const _0x41e94e=_0x57c180;let _0x4c6912=_0x19be26==null?void 0x0:_0x19be26['v'];return _0x3c427e(_0x4c6912)?String(_0x4c6912[_0x41e94e(0x435)]??_0x4c6912['prefix']??''):_0x3ede5d(_0x4c6912)?'#'+_0x4c6912[_0x41e94e(0x42c)]:_0x11f477&&typeof _0x4c6912==_0x41e94e(0x338)?_0x80f5c8[_0x41e94e(0x23c)](_0x11f477,_0x4c6912):String(_0x4c6912??'');}function Pi(_0x10b3a7){return _0x10b3a7===void 0x0||_0x10b3a7==='';}function Fi(_0x165cf0){const _0x282d66=_0x57c180;return!!(_0x165cf0!=null&&_0x165cf0[_0x282d66(0x2b1)]||_0x165cf0!=null&&_0x165cf0['isTopTotal']||_0x165cf0!=null&&_0x165cf0[_0x282d66(0x170)]||(_0x165cf0==null?void 0x0:_0x165cf0[_0x282d66(0x3fe)])===_0x282d66(0x3cc));}const Ii=[{'area':_0x3881d5[_0x57c180(0x3db)],'key':_0x57c180(0x174),'label':_0x57c180(0x3d6)},{'area':_0x3881d5[_0x57c180(0x438)],'key':_0x57c180(0x1ce),'label':_0x57c180(0x1cf)},{'area':_0x3881d5[_0x57c180(0x1ba)],'key':_0x57c180(0x2b5),'label':_0x57c180(0x1d5)},{'area':_0x3881d5['Value'],'key':_0x57c180(0x3a2),'label':_0x57c180(0x2a2)}],Li=[{'value':_0x48c6be[_0x57c180(0x45d)],'localeKey':'bases-dashboard-ui.pivot.sum'},{'value':_0x48c6be[_0x57c180(0x41d)],'localeKey':_0x57c180(0x432)},{'value':_0x48c6be[_0x57c180(0x2ec)],'localeKey':_0x57c180(0x3ea)},{'value':_0x48c6be['average'],'localeKey':_0x57c180(0x1dd)},{'value':_0x48c6be[_0x57c180(0x203)],'localeKey':_0x57c180(0x31b)},{'value':_0x48c6be[_0x57c180(0x295)],'localeKey':_0x57c180(0x2eb)},{'value':_0x48c6be[_0x57c180(0x3ad)],'localeKey':_0x57c180(0x276)},{'value':_0x48c6be[_0x57c180(0x15b)],'localeKey':'bases-dashboard-ui.pivot.stdDev'},{'value':_0x48c6be['stdDevp'],'localeKey':_0x57c180(0x1cd)},{'value':_0x48c6be[_0x57c180(0x33c)],'localeKey':'bases-dashboard-ui.pivot.variance'},{'value':_0x48c6be[_0x57c180(0x2f5)],'localeKey':_0x57c180(0x331)}];function Ri(_0xa55341){const _0x6589de=_0x57c180;let {config:_0x30d23d,onChange:_0x466c46,table:_0x3d4b8e}=_0xa55341,_0xd98e8a=_0x3dc792(_0xc34a30),[_0x5074c1,_0x4d5809]=_0x155c41(_0x6589de(0x2a4)),[_0x6e8d7a,_0x27d2f9]=_0x155c41(''),[_0x251e4c,_0x3221d1]=_0x155c41(null),[_0x18c0a2,_0x367f12]=_0x155c41(null),[_0x311184,_0x4220fb]=_0x155c41(null),[_0x2d32d9,_0x27912f]=_0x155c41(null),_0x35561f=_0x26ca56(null),_0x3d292f=_0x4561c2(()=>_0x3d4b8e[_0x6589de(0x25f)]['flatMap'](_0x110936=>{const _0x74b66f=_0x6589de;let _0x46699d=_0x3d4b8e[_0x74b66f(0x2a4)][_0x110936];return _0x46699d&&_0x46699d['system']!==!0x0&&_0x46699d[_0x74b66f(0x498)]!==_0x36d8a8[_0x74b66f(0x1e7)]?[_0x46699d]:[];})[_0x6589de(0x449)](_0x4a1c52=>_0x4a1c52[_0x6589de(0x3aa)]['toLocaleLowerCase']()[_0x6589de(0x300)](_0x6e8d7a[_0x6589de(0x3ae)]()[_0x6589de(0x1f8)]())),[_0x6e8d7a,_0x3d4b8e]),_0x39eee9=_0x360393=>{const _0x448f9d=_0x6589de;let _0x46c515=_0x4ae6f2(_0x3d4b8e,_0x30d23d[_0x448f9d(0x3b9)]);try{_0x360393(_0x46c515),_0x466c46({'pivot':_0x46c515['toJSON']()});}finally{_0x46c515[_0x448f9d(0x2ab)]();}},_0xf810ca=(_0x463c5d,_0x460404)=>{_0x251e4c&&(_0x39eee9(_0x516656=>{const _0x2c446f=_0x44d8;if(_0x251e4c[_0x2c446f(0x207)]===_0x2c446f(0x32e)){let _0x28e39f=_0x516656[_0x2c446f(0x476)](_0x251e4c['id']),_0x5bf01b=_0x28e39f['area']===_0x463c5d&&_0x28e39f['index']<_0x460404?_0x460404-0x1:_0x460404;_0x516656['updateFieldPosition'](_0x251e4c['id'],_0x463c5d,_0x5bf01b);return;}Ki(_0x516656,_0x251e4c['id'],_0x463c5d,_0x460404);}),_0x3221d1(null),_0x367f12(null));};return _0x3fc05f('div',{'className':_0x6589de(0x1ad),'children':[_0x1bfcde(_0x2e9f58,{'ariaLabel':_0xd98e8a['t'](_0x6589de(0x3f1)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0xd98e8a['t'](_0x6589de(0x2b8)),'panelId':_0x6589de(0x152),'value':_0x6589de(0x2a4)},{'label':_0xd98e8a['t'](_0x6589de(0x37e)),'panelId':_0x6589de(0x40e),'value':_0x6589de(0x35f)}],'value':_0x5074c1,'onChange':_0x4d5809}),_0x1bfcde(_0x6589de(0x332),{'ref':_0x35561f,'className':_0x3c6675(_0x6589de(0x333),_0x32f99e),'onDragOver':_0x44df77=>{const _0x1e6319=_0x6589de;let _0xfed74e=_0x35561f['current'];if(!_0xfed74e)return;let _0x57064c=_0xfed74e[_0x1e6319(0x213)]();_0x44df77[_0x1e6319(0x2fc)]<_0x57064c[_0x1e6319(0x2db)]+0x30?_0xfed74e['scrollTop']-=0x10:_0x44df77[_0x1e6319(0x2fc)]>_0x57064c[_0x1e6319(0x2f7)]-0x30&&(_0xfed74e['scrollTop']+=0x10);},'children':_0x5074c1===_0x6589de(0x35f)?_0x1bfcde(Gi,{'config':_0x30d23d,'commit':_0x39eee9}):_0x3fc05f('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x3fc05f(_0x6589de(0x332),{'children':[_0x1bfcde(_0x6589de(0x332),{'className':_0x6589de(0x222),'children':_0xd98e8a['t']('bases-dashboard-ui.pivot.sourceFields')}),_0x1bfcde(_0x225487,{'allowClear':!0x0,'slot':_0x1bfcde(_0x686afa,{}),'value':_0x6e8d7a,'placeholder':_0xd98e8a['t'](_0x6589de(0x3f7)),'onChange':_0x27d2f9}),_0x1bfcde(_0x6589de(0x332),{'className':'univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','children':_0x3d292f[_0x6589de(0x48c)](_0x9719ae=>_0x1bfcde(zi,{'config':_0x30d23d,'field':_0x9719ae,'onAdd':_0x40780a=>_0x39eee9(_0x1034ea=>Ki(_0x1034ea,_0x9719ae['id'],_0x40780a,_0x1034ea['getFieldCountByArea'](_0x40780a))),'onCheckedChange':_0x3eb886=>_0x39eee9(_0x5cd751=>{const _0xdc1ccf=_0x6589de;let _0x2a3bf9=_0x5cd751[_0xdc1ccf(0x310)](_0x9719ae['id']);if(!_0x3eb886){_0x2a3bf9[_0xdc1ccf(0x201)](_0xf7611a=>_0x5cd751[_0xdc1ccf(0x2c8)](_0xf7611a[_0xdc1ccf(0x48d)]()));return;}if(_0x2a3bf9[_0xdc1ccf(0x291)]===0x0){let _0x34cead=Ji(_0x9719ae)?_0x3881d5[_0xdc1ccf(0x290)]:_0x3881d5[_0xdc1ccf(0x1ba)];_0x5cd751[_0xdc1ccf(0x299)](_0x9719ae['id'],_0x34cead);}}),'onDragStart':()=>_0x3221d1({'kind':'source','id':_0x9719ae['id']})},_0x9719ae['id']))})]}),_0x1bfcde(_0x6589de(0x332),{'className':_0x6589de(0x22a),'children':Ii[_0x6589de(0x48c)](_0x1919eb=>_0x1bfcde(Vi,{'area':_0x1919eb['area'],'dropTarget':_0x18c0a2,'fields':_0x30d23d[_0x6589de(0x3b9)][_0x1919eb[_0x6589de(0x3d8)]],'label':_0xd98e8a['t'](_0x1919eb[_0x6589de(0x372)]),'snapshot':_0x30d23d[_0x6589de(0x3b9)],'onDragEnd':()=>{_0x3221d1(null),_0x367f12(null);},'onDragStart':_0x36d094=>_0x3221d1({'kind':'field','id':_0x36d094,'area':_0x1919eb[_0x6589de(0x3ba)]}),'onDragOver':_0x83978b=>_0x367f12({'area':_0x1919eb[_0x6589de(0x3ba)],'index':_0x83978b}),'onDrop':_0x8b679d=>_0xf810ca(_0x1919eb[_0x6589de(0x3ba)],_0x8b679d),'onFilter':_0x4220fb,'onMove':(_0x1143bd,_0x4995b2,_0x507c8f)=>_0x39eee9(_0x485050=>_0x485050[_0x6589de(0x3c2)](_0x1143bd,_0x4995b2,_0x507c8f)),'onRemove':_0x56be90=>_0x39eee9(_0x212ae3=>_0x212ae3[_0x6589de(0x2c8)](_0x56be90)),'onSettings':_0x27912f},_0x1919eb[_0x6589de(0x3ba)]))}),_0x311184&&_0x1bfcde(Ui,{'fieldId':_0x311184,'snapshot':_0x30d23d[_0x6589de(0x3b9)],'table':_0x3d4b8e,'onCancel':()=>_0x4220fb(null),'onCommit':(_0x4c1ca5,_0xbe8f08)=>{_0x39eee9(_0x3741b9=>{const _0x101a20=_0x44d8;let _0x39d69c=_0x3741b9['getDataFieldByTableId'](_0x311184),_0x4994e1=(_0x39d69c==null?void 0x0:_0x39d69c[_0x101a20(0x2a5)])??[];_0x3741b9[_0x101a20(0x212)](_0x311184,{'type':_0x38a435['ManualFilter'],'list':_0x4c1ca5,'isAll':_0x4c1ca5[_0x101a20(0x291)]===_0x4994e1[_0x101a20(0x291)]}),_0x3741b9[_0x101a20(0x191)](_0x311184,_0xbe8f08===void 0x0?void 0x0:{'type':_0xbe8f08});}),_0x4220fb(null);}},_0x311184),_0x2d32d9&&_0x1bfcde(Wi,{'field':_0x30d23d['pivot'][_0x6589de(0x433)][_0x2d32d9],'onCancel':()=>_0x27912f(null),'onCommit':(_0x29e6dd,_0x537628,_0x11bfe5)=>{_0x39eee9(_0x240ffa=>{const _0x56f0dd=_0x44d8;_0x240ffa['renameField'](_0x2d32d9,_0x29e6dd),_0x240ffa[_0x56f0dd(0x456)](_0x2d32d9,_0x537628),_0x240ffa['setFieldFormat'](_0x2d32d9,_0x11bfe5||void 0x0);}),_0x27912f(null);}},_0x2d32d9)]})})]});}function zi(_0x28cca5){const _0x35ae3e=_0x57c180;let {config:_0x5dc84c,field:_0x378501,onAdd:_0x3b1466,onCheckedChange:_0x2d4a04,onDragStart:_0x841b3d}=_0x28cca5,_0x3709b8=_0x3dc792(_0xc34a30),_0x19b7a0=[...Object['values'](_0x5dc84c[_0x35ae3e(0x3b9)][_0x35ae3e(0x1f0)]),...Object[_0x35ae3e(0x484)](_0x5dc84c[_0x35ae3e(0x3b9)][_0x35ae3e(0x433)])]['some'](_0x4061e5=>_0x4061e5[_0x35ae3e(0x215)]===_0x378501['id']),_0x2252d4=Ii['map'](_0x3859c3=>({'type':_0x35ae3e(0x224),'children':_0x3709b8['t'](Yi(_0x3859c3[_0x35ae3e(0x3ba)])),'onSelect':()=>_0x3b1466(_0x3859c3[_0x35ae3e(0x3ba)])}));return _0x3fc05f(_0x35ae3e(0x332),{'draggable':!0x1,'style':{'minHeight':0x30},'className':'univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','onDragStart':_0x841b3d,'children':[_0x1bfcde(_0x57ec08,{'checked':_0x19b7a0,'onChange':_0x135b5a=>_0x2d4a04(!!_0x135b5a)}),_0x1bfcde(Bi,{'field':_0x378501}),_0x1bfcde('span',{'className':_0x35ae3e(0x1ec),'children':_0x378501[_0x35ae3e(0x3aa)]}),_0x1bfcde(Jr,{'align':_0x35ae3e(0x29f),'items':_0x2252d4,'children':_0x1bfcde(_0x29df96,{'variant':_0x35ae3e(0x22e),'aria-label':_0x3709b8['t'](_0x35ae3e(0x478)),'children':_0x1bfcde(_0x39bc4e,{})})})]});}function Bi({field:_0x284101}){const _0x14adcf=_0x57c180;return Ji(_0x284101)?_0x1bfcde(_0x1ef1cd,{'className':_0x14adcf(0x2b2)}):_0x284101[_0x14adcf(0x498)]===_0x36d8a8[_0x14adcf(0x1ca)]||_0x284101['type']===_0x36d8a8[_0x14adcf(0x231)]||_0x284101['type']===_0x36d8a8[_0x14adcf(0x232)]?_0x1bfcde(_0x5ece4d,{'className':'univer-text-gray-400'}):_0x1bfcde(_0x427459,{'className':_0x14adcf(0x2b2)});}function Vi(_0x41a118){const _0x5dfb13=_0x57c180;let {area:_0x3e8eea,dropTarget:_0x3ed8e7,fields:_0x538ba6,label:_0x261362,snapshot:_0x344a14}=_0x41a118,_0x1105dd=_0x3dc792(_0xc34a30);return _0x3fc05f(_0x5dfb13(0x1b4),{'className':_0x3c6675(_0x5dfb13(0x19a),_0x1ba91b),'onDragOver':_0x2dd73f=>{const _0xb0f2c1=_0x5dfb13;_0x2dd73f[_0xb0f2c1(0x18d)](),_0x41a118[_0xb0f2c1(0x2ad)](_0x538ba6[_0xb0f2c1(0x291)]);},'onDrop':_0x3140f1=>{const _0x4ae1ee=_0x5dfb13;_0x3140f1[_0x4ae1ee(0x18d)](),_0x41a118['onDrop']((_0x3ed8e7==null?void 0x0:_0x3ed8e7[_0x4ae1ee(0x3ba)])===_0x3e8eea?_0x3ed8e7[_0x4ae1ee(0x44e)]:_0x538ba6[_0x4ae1ee(0x291)]);},'children':[_0x1bfcde(_0x5dfb13(0x332),{'className':_0x5dfb13(0x44c),'children':_0x261362}),_0x3fc05f('div',{'className':_0x5dfb13(0x28f),'children':[_0x538ba6['map']((_0x284a8a,_0x38c0ef)=>{const _0x1f271d=_0x5dfb13;let _0x4ca9e7=_0x344a14['dimension'][_0x284a8a]??_0x344a14[_0x1f271d(0x433)][_0x284a8a];if(!_0x4ca9e7)return null;let _0x1d9c42=(_0x3ed8e7==null?void 0x0:_0x3ed8e7['area'])===_0x3e8eea&&_0x3ed8e7[_0x1f271d(0x44e)]===_0x38c0ef;return _0x3fc05f(_0x1f271d(0x332),{'onDragOver':_0x29709e=>{const _0x300be2=_0x1f271d;_0x29709e[_0x300be2(0x18d)](),_0x29709e[_0x300be2(0x2be)]();let _0x4b62c5=_0x29709e[_0x300be2(0x2bc)][_0x300be2(0x213)]();_0x41a118['onDragOver'](_0x38c0ef+ +(_0x29709e[_0x300be2(0x2fc)]>_0x4b62c5['top']+_0x4b62c5['height']/0x2));},'onDrop':_0x2c499a=>{const _0x459862=_0x1f271d;_0x2c499a[_0x459862(0x18d)](),_0x2c499a[_0x459862(0x2be)](),_0x41a118['onDrop']((_0x3ed8e7==null?void 0x0:_0x3ed8e7['area'])===_0x3e8eea?_0x3ed8e7[_0x459862(0x44e)]:_0x38c0ef);},'children':[_0x1d9c42&&_0x1bfcde('div',{'className':_0x1f271d(0x1b5)}),_0x1bfcde(Hi,{'area':_0x3e8eea,'field':_0x4ca9e7,'onDragEnd':_0x41a118['onDragEnd'],'onDragStart':()=>_0x41a118[_0x1f271d(0x48e)](_0x284a8a),'onFilter':()=>_0x41a118[_0x1f271d(0x206)](_0x284a8a),'onMove':_0x10b8fe=>_0x41a118[_0x1f271d(0x45a)](_0x284a8a,_0x10b8fe,0x0),'onMoveUp':_0x38c0ef>0x0?()=>_0x41a118[_0x1f271d(0x45a)](_0x284a8a,_0x3e8eea,_0x38c0ef-0x1):void 0x0,'onMoveDown':_0x38c0ef<_0x538ba6[_0x1f271d(0x291)]-0x1?()=>_0x41a118['onMove'](_0x284a8a,_0x3e8eea,_0x38c0ef+0x1):void 0x0,'onRemove':()=>_0x41a118[_0x1f271d(0x436)](_0x284a8a),'onSettings':()=>_0x41a118['onSettings'](_0x284a8a)})]},_0x284a8a);}),(_0x3ed8e7==null?void 0x0:_0x3ed8e7[_0x5dfb13(0x3ba)])===_0x3e8eea&&_0x3ed8e7[_0x5dfb13(0x44e)]===_0x538ba6['length']&&_0x1bfcde(_0x5dfb13(0x332),{'className':_0x5dfb13(0x1b5)}),_0x538ba6[_0x5dfb13(0x291)]===0x0&&_0x1bfcde(_0x5dfb13(0x332),{'className':_0x5dfb13(0x26b),'children':_0x1105dd['t']('bases-dashboard-ui.pivot.sourceFields')})]})]});}function Hi(_0x203357){const _0x3217d4=_0x57c180;let _0x550a44=_0x3dc792(_0xc34a30),_0x1ab316=_0x203357[_0x3217d4(0x3ba)]===_0x3881d5['Value'],_0xc61354=[...Ii[_0x3217d4(0x449)](_0x50f800=>_0x50f800[_0x3217d4(0x3ba)]!==_0x203357[_0x3217d4(0x3ba)])['map'](_0x303ec9=>({'type':_0x3217d4(0x224),'children':_0x550a44['t'](Yi(_0x303ec9['area'])),'onSelect':()=>_0x203357[_0x3217d4(0x45a)](_0x303ec9[_0x3217d4(0x3ba)])})),..._0x203357['onMoveUp']?[{'type':_0x3217d4(0x224),'children':_0x550a44['t']('bases-dashboard-ui.mobile.moveUp'),'onSelect':_0x203357[_0x3217d4(0x35c)]}]:[],..._0x203357['onMoveDown']?[{'type':'item','children':_0x550a44['t'](_0x3217d4(0x2cf)),'onSelect':_0x203357['onMoveDown']}]:[],{'type':_0x3217d4(0x224),'children':_0x550a44['t'](_0x3217d4(0x2f2)),'onSelect':_0x203357[_0x3217d4(0x436)]},{'type':'item','children':_0x550a44['t'](_0x1ab316?_0x3217d4(0x478):_0x3217d4(0x40f)),'onSelect':_0x1ab316?_0x203357['onSettings']:_0x203357[_0x3217d4(0x206)]}];return _0x3fc05f(_0x3217d4(0x332),{'draggable':!0x1,'style':{'minHeight':0x30},'className':'univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','onDragEnd':_0x203357[_0x3217d4(0x446)],'onDragStart':_0x203357[_0x3217d4(0x48e)],'children':[_0x1bfcde(_0x79306f,{'title':_0x203357['field'][_0x3217d4(0x363)],'children':_0x1bfcde(_0x3217d4(0x45e),{'className':_0x3217d4(0x1ec),'children':_0x203357[_0x3217d4(0x32e)]['displayName']})}),_0x1bfcde(Jr,{'align':_0x3217d4(0x29f),'items':_0xc61354,'children':_0x1bfcde(_0x29df96,{'variant':_0x3217d4(0x22e),'aria-label':_0x550a44['t'](_0x3217d4(0x478)),'children':_0x1bfcde(_0x39bc4e,{})})})]});}function Ui(_0xb96233){const _0x4e3567=_0x57c180;var _0x1f9f34,_0x2a5f25;let _0x984ec0=_0x3dc792(_0xc34a30),{format:_0x199f28,items:_0x238389,itemTypes:_0x3ff005}=_0x4561c2(()=>{const _0xa4d4bf=_0x44d8;let _0x32b3ed=_0x4ae6f2(_0xb96233['table'],_0xb96233[_0xa4d4bf(0x434)]);try{let _0x3f6094=_0x32b3ed[_0xa4d4bf(0x457)](_0xb96233[_0xa4d4bf(0x383)]);return{'format':_0x3f6094==null?void 0x0:_0x3f6094[_0xa4d4bf(0x23c)],'items':[...(_0x3f6094==null?void 0x0:_0x3f6094[_0xa4d4bf(0x2a5)])??[]],'itemTypes':[...(_0x3f6094==null?void 0x0:_0x3f6094[_0xa4d4bf(0x255)])??[]]};}finally{_0x32b3ed['dispose']();}},[_0xb96233[_0x4e3567(0x383)],_0xb96233[_0x4e3567(0x434)],_0xb96233[_0x4e3567(0x2c6)]]),_0x36fa40=(_0x1f9f34=_0xb96233[_0x4e3567(0x434)][_0x4e3567(0x1f0)][_0xb96233['fieldId']])==null?void 0x0:_0x1f9f34['filterInfo'],[_0x357c79,_0x1872af]=_0x155c41((_0x36fa40==null?void 0x0:_0x36fa40[_0x4e3567(0x498)])===_0x38a435['ManualFilter']?_0x36fa40[_0x4e3567(0x368)]:_0x238389),[_0x4dd98a,_0x4d9b44]=_0x155c41((_0x2a5f25=_0xb96233[_0x4e3567(0x434)][_0x4e3567(0x1f0)][_0xb96233['fieldId']])==null||(_0x2a5f25=_0x2a5f25['sortInfo'])==null?void 0x0:_0x2a5f25[_0x4e3567(0x498)]),_0x5177dd=_0x357c79[_0x4e3567(0x291)]===_0x238389['length'],_0x4763c9=_0x3fc05f(_0x4e3567(0x1b4),{'className':_0x3c6675('univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900',_0x1ba91b),'children':[_0x1bfcde(_0x4e3567(0x332),{'className':_0x4e3567(0x3eb),'children':_0x984ec0['t'](_0x4e3567(0x40f))}),_0x3fc05f(_0x4e3567(0x332),{'className':'univer-flex','children':[_0x3fc05f(_0x29df96,{'className':_0x4e3567(0x301),'variant':_0x4dd98a===_0x217088[_0x4e3567(0x4a1)]?_0x4e3567(0x230):_0x4e3567(0x450),'onClick':()=>_0x4d9b44(_0x217088[_0x4e3567(0x4a1)]),'children':[_0x1bfcde(_0x4b54c1,{}),_0x984ec0['t'](_0x4e3567(0x32b))]}),_0x3fc05f(_0x29df96,{'className':_0x4e3567(0x301),'variant':_0x4dd98a===_0x217088['descending']?_0x4e3567(0x230):_0x4e3567(0x450),'onClick':()=>_0x4d9b44(_0x217088[_0x4e3567(0x1d2)]),'children':[_0x1bfcde(_0x29065b,{}),_0x984ec0['t'](_0x4e3567(0x2b6))]})]}),_0x3fc05f(_0x4e3567(0x332),{'className':_0x4e3567(0x2d7),'children':[_0x3fc05f(_0x4e3567(0x372),{'className':_0x4e3567(0x3ee),'children':[_0x1bfcde(_0x57ec08,{'checked':_0x5177dd,'indeterminate':_0x357c79[_0x4e3567(0x291)]>0x0&&!_0x5177dd,'onChange':()=>_0x1872af(_0x5177dd?[]:_0x238389)}),_0x984ec0['t'](_0x4e3567(0x3d2))]}),_0x238389['map']((_0x4695fe,_0x4bf829)=>_0x3fc05f(_0x4e3567(0x372),{'className':_0x4e3567(0x3ee),'children':[_0x1bfcde(_0x57ec08,{'checked':_0x357c79[_0x4e3567(0x300)](_0x4695fe),'onChange':()=>_0x1872af(_0x369582=>_0x369582[_0x4e3567(0x300)](_0x4695fe)?_0x369582[_0x4e3567(0x449)](_0x4fd2cc=>_0x4fd2cc!==_0x4695fe):[..._0x369582,_0x4695fe])}),_0x1bfcde(_0x4e3567(0x45e),{'className':_0x4e3567(0x420),'children':qi(_0x4695fe,_0x3ff005[_0x4bf829],_0x199f28,_0x984ec0['t'](_0x4e3567(0x373)))})]},_0x4695fe))]}),_0x3fc05f('div',{'className':_0x4e3567(0x179),'children':[_0x1bfcde(_0x29df96,{'variant':_0x4e3567(0x2b4),'onClick':()=>_0xb96233[_0x4e3567(0x3f6)](_0x238389,_0x4dd98a),'children':_0x984ec0['t'](_0x4e3567(0x2da))}),_0x3fc05f(_0x4e3567(0x332),{'className':_0x4e3567(0x169),'children':[_0x1bfcde(_0x29df96,{'onClick':_0xb96233['onCancel'],'children':_0x984ec0['t']('bases-dashboard-ui.pivot.cancel')}),_0x1bfcde(_0x29df96,{'variant':_0x4e3567(0x230),'disabled':_0x357c79[_0x4e3567(0x291)]===0x0,'onClick':()=>_0xb96233[_0x4e3567(0x3f6)](_0x357c79,_0x4dd98a),'children':_0x984ec0['t'](_0x4e3567(0x27b))})]})]})]});return _0x1bfcde(_0x5ae53d,{'title':_0x984ec0['t'](_0x4e3567(0x40f)),'onClose':_0xb96233[_0x4e3567(0x3a1)],'children':_0x4763c9});}function Wi(_0x39ba29){const _0x38355e=_0x57c180;var _0x3e00d5,_0x52c842,_0x50b7a5;let _0x525010=_0x3dc792(_0xc34a30),[_0xc54177,_0x29b659]=_0x155c41(((_0x3e00d5=_0x39ba29[_0x38355e(0x32e)])==null?void 0x0:_0x3e00d5[_0x38355e(0x363)])??''),[_0x6f6eca,_0x558207]=_0x155c41(((_0x52c842=_0x39ba29['field'])==null?void 0x0:_0x52c842[_0x38355e(0x334)])??_0x48c6be[_0x38355e(0x45d)]),[_0x16871e,_0x44f6cc]=_0x155c41(((_0x50b7a5=_0x39ba29[_0x38355e(0x32e)])==null?void 0x0:_0x50b7a5[_0x38355e(0x23c)])??'');if(!_0x39ba29['field'])return null;let _0x5123a3=_0x3fc05f(_0x38355e(0x1b4),{'className':_0x3c6675(_0x38355e(0x188),_0x1ba91b),'children':[_0x1bfcde('div',{'className':_0x38355e(0x381),'children':_0x525010['t'](_0x38355e(0x478))}),_0x3fc05f(_0x38355e(0x372),{'className':_0x38355e(0x41f),'children':[_0x525010['t']('bases-dashboard-ui.pivot.displayName'),_0x1bfcde(_0x225487,{'value':_0xc54177,'onChange':_0x29b659})]}),_0x3fc05f(_0x38355e(0x372),{'className':_0x38355e(0x41f),'children':[_0x525010['t'](_0x38355e(0x46b)),_0x1bfcde(qr,{'value':String(_0x6f6eca),'options':Li['map'](_0x36f5bc=>({'value':String(_0x36f5bc[_0x38355e(0x435)]),'label':_0x525010['t'](_0x36f5bc[_0x38355e(0x1e5)])})),'onChange':_0x11c0ad=>{const _0x181ec9=_0x38355e;let _0x1cd355=Li[_0x181ec9(0x34b)](_0x5746af=>String(_0x5746af[_0x181ec9(0x435)])===_0x11c0ad);_0x1cd355&&_0x558207(_0x1cd355['value']);}})]}),_0x3fc05f('label',{'className':_0x38355e(0x41f),'children':[_0x525010['t']('bases-dashboard-ui.pivot.numberFormat'),_0x1bfcde(_0x225487,{'value':_0x16871e,'onChange':_0x44f6cc})]}),_0x3fc05f(_0x38355e(0x332),{'className':_0x38355e(0x256),'children':[_0x1bfcde(_0x29df96,{'onClick':_0x39ba29[_0x38355e(0x3a1)],'children':_0x525010['t'](_0x38355e(0x357))}),_0x1bfcde(_0x29df96,{'variant':_0x38355e(0x230),'disabled':!_0xc54177[_0x38355e(0x3ae)](),'onClick':()=>_0x39ba29[_0x38355e(0x3f6)](_0xc54177[_0x38355e(0x3ae)](),_0x6f6eca,_0x16871e),'children':_0x525010['t'](_0x38355e(0x27b))})]})]});return _0x1bfcde(_0x5ae53d,{'title':_0x525010['t']('bases-dashboard-ui.pivot.fieldSettings'),'onClose':_0x39ba29[_0x38355e(0x3a1)],'children':_0x5123a3});}function Gi(_0xe24f27){const _0x222bf8=_0x57c180;let {config:_0x2d9e07,commit:_0xf6748f}=_0xe24f27,_0x432540=_0x3dc792(_0xc34a30),_0x38526a=_0x2d9e07[_0x222bf8(0x3b9)]['options'],_0x40a91=_0x50ac80=>_0xf6748f(_0x21bce1=>_0x21bce1[_0x222bf8(0x40b)]({..._0x21bce1[_0x222bf8(0x2dd)](),..._0x50ac80}));return _0x3fc05f(_0x222bf8(0x332),{'className':_0x222bf8(0x1fa),'children':[_0x3fc05f(_0x222bf8(0x372),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x432540['t']('bases-dashboard-ui.pivot.layout'),_0x1bfcde(qr,{'className':_0x222bf8(0x2ea),'value':String(_0x2d9e07[_0x222bf8(0x3b9)][_0x222bf8(0x424)]),'options':[{'value':String(_0x363820[_0x222bf8(0x347)]),'label':_0x432540['t']('bases-dashboard-ui.pivot.layoutTabular')},{'value':String(_0x363820[_0x222bf8(0x1c4)]),'label':_0x432540['t'](_0x222bf8(0x25a))},{'value':String(_0x363820[_0x222bf8(0x156)]),'label':_0x432540['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x2001d4=>{const _0x2c86c8=_0x222bf8;let _0xb22bcc=[_0x363820[_0x2c86c8(0x347)],_0x363820[_0x2c86c8(0x1c4)],_0x363820[_0x2c86c8(0x156)]][_0x2c86c8(0x34b)](_0x3c844f=>String(_0x3c844f)===_0x2001d4);_0xb22bcc!==void 0x0&&_0xf6748f(_0x190bf8=>_0x190bf8[_0x2c86c8(0x429)](_0xb22bcc));}})]}),[{'key':_0x222bf8(0x1c1),'label':_0x222bf8(0x226),'defaultValue':!0x1},{'key':'repeatColLabels','label':_0x222bf8(0x252),'defaultValue':!0x1},{'key':_0x222bf8(0x497),'label':_0x222bf8(0x298),'defaultValue':!0x0},{'key':_0x222bf8(0x1cb),'label':_0x222bf8(0x385),'defaultValue':!0x0},{'key':_0x222bf8(0x35d),'label':_0x222bf8(0x2ba),'defaultValue':!0x0},{'key':_0x222bf8(0x458),'label':_0x222bf8(0x437),'defaultValue':!0x0}][_0x222bf8(0x48c)](_0x4e34be=>_0x3fc05f('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x1bfcde(_0x57ec08,{'checked':!!(_0x38526a[_0x4e34be[_0x222bf8(0x3d8)]]??_0x4e34be[_0x222bf8(0x1db)]),'disabled':_0x4e34be[_0x222bf8(0x3d8)]===_0x222bf8(0x1c1)&&_0x2d9e07[_0x222bf8(0x3b9)][_0x222bf8(0x424)]===_0x363820[_0x222bf8(0x1c4)],'onChange':_0x75c90f=>_0x40a91({[_0x4e34be[_0x222bf8(0x3d8)]]:!!_0x75c90f})}),_0x432540['t'](_0x4e34be['label'])]},_0x4e34be['key'])),_0x2d9e07[_0x222bf8(0x3b9)][_0x222bf8(0x424)]===_0x363820[_0x222bf8(0x156)]&&_0x3fc05f(_0x222bf8(0x372),{'className':_0x222bf8(0x3e7),'children':[_0x432540['t'](_0x222bf8(0x3e9)),_0x1bfcde(qr,{'className':_0x222bf8(0x2ea),'value':String(_0x38526a[_0x222bf8(0x37f)]??_0x2fcd7c['top']),'options':[{'value':String(_0x2fcd7c[_0x222bf8(0x2db)]),'label':_0x432540['t']('bases-dashboard-ui.pivot.top')},{'value':String(_0x2fcd7c[_0x222bf8(0x2f7)]),'label':_0x432540['t'](_0x222bf8(0x41e))}],'onChange':_0x33cc03=>{const _0x5d636a=_0x222bf8;let _0x13d92b=[_0x2fcd7c['top'],_0x2fcd7c[_0x5d636a(0x2f7)]][_0x5d636a(0x34b)](_0x41c0c7=>String(_0x41c0c7)===_0x33cc03);_0x13d92b!==void 0x0&&_0x40a91({'rowSubtotalPosition':_0x13d92b});}})]}),_0x3fc05f(_0x222bf8(0x372),{'className':_0x222bf8(0x3e7),'children':[_0x432540['t'](_0x222bf8(0x3d7)),_0x1bfcde(qr,{'className':'univer-w-36','value':String(_0x2d9e07[_0x222bf8(0x3b9)][_0x222bf8(0x46f)]===_0xb31626[_0x222bf8(0x27a)]?_0xb31626[_0x222bf8(0x438)]:_0x2d9e07[_0x222bf8(0x3b9)][_0x222bf8(0x46f)]),'options':[{'value':String(_0xb31626['Column']),'label':_0x432540['t']('bases-dashboard-ui.pivot.columns')},{'value':String(_0xb31626[_0x222bf8(0x1ba)]),'label':_0x432540['t'](_0x222bf8(0x1d5))}],'onChange':_0x17b3a4=>{const _0x117f39=_0x222bf8;let _0x5edead=[_0xb31626['Column'],_0xb31626[_0x117f39(0x1ba)]][_0x117f39(0x34b)](_0x1d2f83=>String(_0x1d2f83)===_0x17b3a4);_0x5edead!==void 0x0&&_0xf6748f(_0x5d4a5d=>_0x5d4a5d[_0x117f39(0x428)](_0x5edead,_0x5d4a5d['getValueIndex']()<0x0?0x0:_0x5d4a5d[_0x117f39(0x388)]()));}})]}),_0x3fc05f(_0x222bf8(0x372),{'className':_0x222bf8(0x3e7),'children':[_0x432540['t'](_0x222bf8(0x27f)),_0x1bfcde(_0x142183,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x38526a[_0x222bf8(0x157)]??0x1,'onChange':_0x15e5a1=>{const _0xd066b0=_0x222bf8;let _0x3eecbd=Number(_0x15e5a1);Number[_0xd066b0(0x281)](_0x3eecbd)&&_0x3eecbd>=0x1&&_0x40a91({'pageWrap':_0x3eecbd});}})]}),_0x3fc05f(_0x222bf8(0x372),{'className':_0x222bf8(0x3e7),'children':[_0x432540['t'](_0x222bf8(0x253)),_0x1bfcde(qr,{'className':'univer-w-36','value':String(_0x38526a[_0x222bf8(0x371)]??!0x1),'options':[{'value':_0x222bf8(0x1d1),'label':_0x432540['t'](_0x222bf8(0x495))},{'value':'true','label':_0x432540['t']('bases-dashboard-ui.pivot.acrossThenDown')}],'onChange':_0x56933b=>_0x40a91({'pageOverThenDown':_0x56933b===_0x222bf8(0x44f)})})]})]});}function Ki(_0x1fab6b,_0x1a08b1,_0x1ee1cf,_0x29d53c){const _0x3b79e3=_0x57c180;let _0x1fa0f0=_0x1fab6b[_0x3b79e3(0x310)](_0x1a08b1)[_0x3b79e3(0x34b)](_0x59983c=>_0x1fab6b[_0x3b79e3(0x476)](_0x59983c[_0x3b79e3(0x48d)]())[_0x3b79e3(0x3ba)]!==_0x3881d5['Value']);if(_0x1ee1cf!==_0x3881d5[_0x3b79e3(0x290)]&&_0x1fa0f0){_0x1fab6b['updateFieldPosition'](_0x1fa0f0['getId'](),_0x1ee1cf,_0x29d53c);return;}_0x1fab6b[_0x3b79e3(0x299)](_0x1a08b1,_0x1ee1cf,_0x29d53c);}function qi(_0x257d77,_0xb75e8b,_0xca5606,_0x491866){const _0x40cde9=_0x57c180;return _0xb75e8b===_0x2be849[_0x40cde9(0x280)]?_0x491866:_0xb75e8b===_0x2be849['date']&&_0xca5606?_0x80f5c8[_0x40cde9(0x23c)](_0xca5606,Number(_0x257d77)):_0x257d77;}function Ji(_0x1565c9){const _0x36a4d1=_0x57c180;return _0x1565c9['type']===_0x36d8a8[_0x36a4d1(0x3fb)]||_0x1565c9[_0x36a4d1(0x498)]===_0x36d8a8[_0x36a4d1(0x218)]||_0x1565c9[_0x36a4d1(0x498)]===_0x36d8a8[_0x36a4d1(0x39d)]||_0x1565c9[_0x36a4d1(0x498)]===_0x36d8a8[_0x36a4d1(0x30a)];}function Yi(_0x2cbed5){const _0x5f1258=_0x57c180;switch(_0x2cbed5){case _0x3881d5[_0x5f1258(0x1ba)]:return _0x5f1258(0x2d3);case _0x3881d5[_0x5f1258(0x438)]:return _0x5f1258(0x444);case _0x3881d5['Value']:return'bases-dashboard-ui.pivot.addToValue';default:return _0x5f1258(0x18e);}}function Xi({config:_0x16724e,onChange:_0x4f58ee,runtime:_0x4f76ac,table:_0x4f4610}){const _0x36224b=_0x57c180;let _0x367cb1=_0x3dc792(_0xc34a30),[_0x2d1a70,_0x4c309f]=_0x155c41(_0x36224b(0x49c));return _0x3fc05f(_0x36224b(0x351),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x1bfcde(_0x2e9f58,{'ariaLabel':_0x367cb1['t'](_0x36224b(0x462)),'className':_0x36224b(0x2e5),'items':[{'label':_0x367cb1['t'](_0x36224b(0x19e)),'panelId':_0x36224b(0x469),'value':_0x36224b(0x49c)},{'label':_0x367cb1['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'panelId':_0x36224b(0x21c),'value':_0x36224b(0x3b9)}],'value':_0x2d1a70,'variant':_0x36224b(0x355),'onChange':_0x4c309f}),_0x1bfcde(_0x36224b(0x332),{'className':_0x36224b(0x16e),'children':_0x2d1a70===_0x36224b(0x49c)?_0x4f76ac&&_0x1bfcde(Qr,{'config':_0x16724e,'runtime':_0x4f76ac,'tableName':_0x4f4610[_0x36224b(0x3aa)],'onChange':_0x4f58ee}):_0x1bfcde(Ri,{'config':_0x16724e,'table':_0x4f4610,'onChange':_0x4f58ee})})]});}function Zi({tableId:_0x12dc61,unitId:_0x5c2ad4,viewId:_0x5935b9}){const _0x1e660e=_0x57c180;let [_0x19ae26,_0x2aa3a4]=_0x155c41(!0x1),_0x2f559f=_0x3dc792(_0x20bf70),_0x307b23=_0x3dc792(_0xfa1040),_0x346e22=_0x3dc792(_0xa0671c),_0x36f2bc=_0x3dc792(_0xc34a30),_0x23e841=_0x3dc792(_0x534e77),[_0x190369,_0x16f050]=_0x155c41(null),[_0x15ed38,_0x27e526]=_0x155c41(null),_0x29d0ae=_0x26ca56(_0x1e660e(0x34f)+_0x2bbf35(0x8)),[_0x2ac835,_0x1a0ae5]=_0x155c41(!0x1),_0x5e9893=_0x307b23[_0x1e660e(0x2ee)](_0x5c2ad4,_0x1be7ab['UNIVER_BASE']),_0x14ec7a=_0x5e9893==null?void 0x0:_0x5e9893[_0x1e660e(0x257)]()[_0x1e660e(0x47e)][_0x12dc61],_0x221003=_0x14ec7a==null?void 0x0:_0x14ec7a[_0x1e660e(0x46e)][_0x5935b9],_0x5e0216=Qi(_0x221003),_0x35638b=_r(_0x5c2ad4,_0x12dc61,_0x5935b9);if(_0x5a872b(()=>{const _0x53890a=_0x1e660e;if(!_0x5e0216)return;let _0x1304fc=_0x29d0ae['current'];return _0x23e841[_0x53890a(0x30d)](_0x1304fc,{'unitId':_0x5c2ad4,'tableId':_0x12dc61,'viewId':_0x5935b9,'filters':[]}),()=>{const _0x2d5312=_0x53890a;_0x23e841[_0x2d5312(0x20c)](_0x5c2ad4,_0x1304fc);};},[_0x5e0216,_0x23e841,_0x12dc61,_0x5c2ad4,_0x5935b9]),_0x5a872b(()=>{const _0x15a897=_0x1e660e;if(!Qi(_0x221003))return;let _0x377227=!0x0,_0x299710={'unitId':_0x5c2ad4,'tableId':_0x12dc61,'viewId':_0x5935b9,'filters':[_0x221003[_0x15a897(0x449)]??null]};return _0x23e841[_0x15a897(0x271)](_0x5c2ad4,_0x29d0ae[_0x15a897(0x18a)],_0x299710)[_0x15a897(0x2bd)](_0x33d618=>{const _0x46343b=_0x15a897;_0x377227&&_0x33d618&&(_0x16f050(_0x33d618),_0x27e526(_0x23e841[_0x46343b(0x1e0)](_0x5c2ad4,_0x29d0ae[_0x46343b(0x18a)])??null),_0x1a0ae5(!0x1));})[_0x15a897(0x2cb)](_0x277528=>{_0x346e22['error']('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x277528),_0x377227&&(_0x16f050(null),_0x1a0ae5(!0x0));}),()=>{_0x377227=!0x1;};},[_0x346e22,_0x23e841,_0x12dc61,_0x5c2ad4,_0x221003,_0x5935b9]),!_0x14ec7a||!Qi(_0x221003))return null;let _0x4962bc=_0x23e841[_0x1e660e(0x1e0)](_0x5c2ad4,_0x29d0ae['current'])===_0x15ed38?_0x15ed38:null,_0x3ec0c5=_0x190369?_0x3fc05f('div',{'className':'univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','style':{'gridTemplateRows':_0x221003[_0x1e660e(0x163)]['displayMode']===_0x1e660e(0x417)?_0x1e660e(0x30b):_0x1e660e(0x3f0)},'children':[_0x221003[_0x1e660e(0x163)]['displayMode']!==_0x1e660e(0x2c6)&&_0x4962bc&&_0x1bfcde(_0x1e660e(0x332),{'className':_0x1e660e(0x3c6),'children':_0x1bfcde(Ir,{'isRowDirection':_0x143525(_0x221003[_0x1e660e(0x163)][_0x1e660e(0x49c)][_0x1e660e(0x3b5)]),'runtime':_0x4962bc})}),_0x221003['config'][_0x1e660e(0x36d)]!==_0x1e660e(0x49c)&&_0x1bfcde(_0x1e660e(0x332),{'className':'univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':_0x1bfcde(ki,{'pivot':_0x221003['config'][_0x1e660e(0x3b9)],'view':_0x190369[_0x1e660e(0x24b)]})})]}):_0x1bfcde(_0x1e660e(0x332),{'className':_0x1e660e(0x282),'children':_0x2ac835?_0x36f2bc['t'](_0x1e660e(0x24c)):_0x36f2bc['t'](_0x1e660e(0x38c))}),_0x54910c=_0x1bfcde(Xi,{'config':_0x221003[_0x1e660e(0x163)],'runtime':_0x4962bc,'table':_0x14ec7a,'onChange':_0x40cf58=>{const _0x276941=_0x1e660e;_0x307b23[_0x276941(0x350)](_0x5c2ad4),_0x307b23[_0x276941(0x1e9)](_0x5c2ad4),_0x2f559f['executeCommand'](_0x26095f['id'],{'unitId':_0x5c2ad4,'tableId':_0x12dc61,'viewId':_0x5935b9,'patch':_0x40cf58})[_0x276941(0x2cb)](_0x1553d6=>_0x346e22[_0x276941(0x1d0)](_0x276941(0x40a),_0x1553d6));}});return _0x1bfcde(Kr,{'children':_0x3fc05f(_0x1e660e(0x332),{'className':_0x1e660e(0x279),'children':[_0x35638b&&_0x1bfcde(_0x29df96,{'onClick':()=>_0x2aa3a4(!0x0),'children':_0x36f2bc['t']('bases-dashboard-ui.pivot.chartConfiguration')}),_0x1bfcde(_0x1e660e(0x332),{'className':_0x1e660e(0x398),'children':_0x3ec0c5}),_0x35638b&&_0x19ae26&&_0x1bfcde(_0x5ae53d,{'title':_0x36f2bc['t'](_0x1e660e(0x462)),'onClose':()=>_0x2aa3a4(!0x1),'children':_0x54910c})]})});}function Qi(_0xe5a9b4){const _0x596f8a=_0x57c180;return(_0xe5a9b4==null?void 0x0:_0xe5a9b4[_0x596f8a(0x498)])===_0x4e046d[_0x596f8a(0x496)]&&typeof _0xe5a9b4['config']==_0x596f8a(0x177)&&_0xe5a9b4[_0x596f8a(0x163)]!==null&&_0x596f8a(0x3b9)in _0xe5a9b4[_0x596f8a(0x163)]&&_0x596f8a(0x49c)in _0xe5a9b4[_0x596f8a(0x163)]&&'displayMode'in _0xe5a9b4[_0x596f8a(0x163)];}let $i=class extends _0x7c5363{constructor(_0x106e08,_0xd73dcc,_0x5cb110,_0x30b5c8,_0x149236,_0xc59c8){const _0x1d1a29=_0x57c180;super(),this[_0x1d1a29(0x395)](_0xd73dcc[_0x1d1a29(0x4a0)]({'type':_0x4e046d[_0x1d1a29(0x496)],'renderMode':'dom','icon':_0x26e878,'component':Zi,'menu':{get 'label'(){const _0x171d97=_0x1d1a29;return _0xc59c8['t'](_0x171d97(0x462));},get 'description'(){return _0xc59c8['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){const _0x457da4=_0x1d1a29;return _0xc59c8['t'](_0x457da4(0x2c1));}}})),this[_0x1d1a29(0x395)](_0x106e08[_0x1d1a29(0x4a0)](ea(_0x5cb110,_0x30b5c8,_0x149236,_0xc59c8)));}};$i=Or([Y(0x0,_0x5135cb),Y(0x1,_0x452fc8),Y(0x2,_0xfb26ea(_0x1e99fb)),Y(0x3,_0x20bf70),Y(0x4,_0x31dc6c),Y(0x5,_0xfb26ea(_0xc34a30))],$i);function ea(_0x23c8b5,_0x161677,_0x2a3c81,_0xc2f880){const _0xd049c7=_0x57c180;return{'change$':_0x2391b4(_0x23c8b5[_0xd049c7(0x468)],_0x2a3c81['permissionPointUpdate$']),'component':bi,get 'labels'(){const _0x22e649=_0xd049c7;return{'add':_0xc2f880['t']('bases-dashboard-ui.dashboard.add'),'configure':_0x9bbcf2=>_0xc2f880['t'](_0x22e649(0x27c),_0x9bbcf2),'delete':_0xc2f880['t'](_0x22e649(0x487)),'new':_0xc2f880['t']('bases-dashboard-ui.dashboard.new'),'rename':_0xc2f880['t'](_0x22e649(0x2e1)),'search':_0xc2f880['t']('bases-dashboard-ui.dashboard.search'),'section':_0xc2f880['t'](_0x22e649(0x46d))};},'getItems':_0x105222=>{const _0x41fd67=_0xd049c7;let _0xb3d95d=_0x23c8b5[_0x41fd67(0x475)](_0x105222);return _0xb3d95d[_0x41fd67(0x1e8)][_0x41fd67(0x21e)](_0x459fa5=>{const _0x329c1c=_0x41fd67;let _0x5a8848=_0xb3d95d[_0x329c1c(0x44a)][_0x459fa5];return _0x5a8848?[{'id':_0x5a8848['id'],'name':_0x5a8848[_0x329c1c(0x3aa)],'readonly':!_0x1377c4(_0x2a3c81,_0x105222,_0x5a8848['id'])}]:[];});},'create':async _0x3c0d85=>{const _0x35bbbe=_0xd049c7;let _0x321b8a=_0x23c8b5[_0x35bbbe(0x475)](_0x3c0d85),_0x5ac202=_0x35bbbe(0x38a)+_0x2bbf35(0x8),_0x142725=ta(_0x321b8a[_0x35bbbe(0x1e8)]['flatMap'](_0x59d075=>{const _0x4ecf57=_0x35bbbe;let _0x5ee1f9=_0x321b8a[_0x4ecf57(0x44a)][_0x59d075];return _0x5ee1f9?[_0x5ee1f9[_0x4ecf57(0x3aa)]]:[];}),_0x3682ac=>_0xc2f880['t'](_0x35bbbe(0x423),String(_0x3682ac)));return await _0x161677[_0x35bbbe(0x3fa)](_0x2a269b['id'],{'unitId':_0x3c0d85,'dashboard':{'id':_0x5ac202,'name':_0x142725,'widgetOrder':[],'widgets':{}}})?_0x5ac202:null;},'rename':async(_0x1a8229,_0x886866,_0xbf1244)=>{const _0xa92f77=_0xd049c7;let _0x3f3612=_0x23c8b5['getDashboard'](_0x1a8229,_0x886866);return!!(_0x3f3612&&await _0x161677[_0xa92f77(0x3fa)](_0x16ed85['id'],{'unitId':_0x1a8229,'dashboard':{..._0x3f3612,'name':_0xbf1244}}));},'remove':(_0x565719,_0x4d7166)=>_0x161677[_0xd049c7(0x3fa)](_0x452258['id'],{'unitId':_0x565719,'dashboardId':_0x4d7166})};}function ta(_0x1ca668,_0x183e5d){const _0x2e453f=_0x57c180;let _0x712abe=new Set(_0x1ca668),_0x1e7977=_0x712abe[_0x2e453f(0x3cf)]+0x1,_0x35f880=_0x183e5d(_0x1e7977);for(;_0x712abe[_0x2e453f(0x220)](_0x35f880);)_0x1e7977+=0x1,_0x35f880=_0x183e5d(_0x1e7977);return _0x35f880;}let na=class extends _0x239fa2{constructor(_0x30c445=hr,_0x354030,_0x5d8723){const _0x336fe4=_0x57c180;super(),this['_config']=_0x30c445,this['_injector']=_0x354030,this[_0x336fe4(0x258)]=_0x5d8723;let {..._0x40c945}=_0x50ef5d({},hr,this['_config']);this[_0x336fe4(0x258)][_0x336fe4(0x211)](mr,_0x40c945);}[_0x57c180(0x1ae)](){const _0x2c2541=_0x57c180;this[_0x2c2541(0x159)]['add']([kr]),this[_0x2c2541(0x159)][_0x2c2541(0x3b3)]([Gr]),this[_0x2c2541(0x159)][_0x2c2541(0x3b3)]([$i]);}[_0x57c180(0x41c)](){const _0x3d4a7c=_0x57c180;_0x5e38a1(this[_0x3d4a7c(0x159)],[[kr],[Gr],[$i]]);}};Pr(na,'type',_0x1be7ab[_0x57c180(0x360)]),Pr(na,_0x57c180(0x346),'BASE_DASHBOARD_UI_PLUGIN'),Pr(na,_0x57c180(0x186),fr),Pr(na,_0x57c180(0x499),pr),na=Or([_0x9eb0d5(_0x187023,_0x398c3a,_0x305f36,_0x15321a,_0x379239,_0x42b4c7),Y(0x1,_0xfb26ea(_0x3fc728)),Y(0x2,_0x19da82)],na);function ra(_0x1bbbdc,_0x43d5ab,_0x5b6278,_0x642232){const _0x11fd4c=_0x57c180;let _0x2e7295={..._0x1bbbdc};if(_0x43d5ab[_0x11fd4c(0x300)]('w')){let _0x3c3435=_0x1bbbdc['column']+_0x1bbbdc[_0x11fd4c(0x24f)];_0x2e7295[_0x11fd4c(0x430)]=Math[_0x11fd4c(0x203)](0x0,Math['min'](_0x3c3435-0x1,_0x1bbbdc[_0x11fd4c(0x430)]+_0x5b6278)),_0x2e7295['columnSpan']=_0x3c3435-_0x2e7295[_0x11fd4c(0x430)];}else _0x43d5ab[_0x11fd4c(0x300)]('e')&&(_0x2e7295['columnSpan']=Math['max'](0x1,Math[_0x11fd4c(0x295)](_0x16d92d-_0x1bbbdc[_0x11fd4c(0x430)],_0x1bbbdc[_0x11fd4c(0x24f)]+_0x5b6278)));if(_0x43d5ab[_0x11fd4c(0x300)]('n')){let _0x1e6a42=_0x1bbbdc[_0x11fd4c(0x293)]+_0x1bbbdc[_0x11fd4c(0x17c)];_0x2e7295[_0x11fd4c(0x293)]=Math[_0x11fd4c(0x203)](0x0,Math[_0x11fd4c(0x295)](_0x1e6a42-0x1,_0x1bbbdc[_0x11fd4c(0x293)]+_0x642232)),_0x2e7295[_0x11fd4c(0x17c)]=_0x1e6a42-_0x2e7295[_0x11fd4c(0x293)];}else _0x43d5ab[_0x11fd4c(0x300)]('s')&&(_0x2e7295[_0x11fd4c(0x17c)]=Math[_0x11fd4c(0x203)](0x1,_0x1bbbdc[_0x11fd4c(0x17c)]+_0x642232));return _0x2e7295;}function ia(_0x57613d){const _0x3734e7=_0x57c180;let _0x2b340c=Math['max'](0x1,Math['min'](_0x16d92d,Math[_0x3734e7(0x33b)](_0x57613d[_0x3734e7(0x24f)])));return{'column':Math['max'](0x0,Math[_0x3734e7(0x295)](_0x16d92d-_0x2b340c,Math[_0x3734e7(0x33b)](_0x57613d[_0x3734e7(0x430)]))),'row':Math[_0x3734e7(0x203)](0x0,Math['round'](_0x57613d[_0x3734e7(0x293)])),'columnSpan':_0x2b340c,'rowSpan':Math['max'](0x1,Math['round'](_0x57613d[_0x3734e7(0x17c)]))};}function aa(_0x24124a,_0xb5d275,_0xab3165){const _0x5744f1=_0x57c180;let _0x5f986b=new Map(_0x24124a),_0x3bc261=ia(_0xab3165);_0x5f986b[_0x5744f1(0x33a)](_0xb5d275,_0x3bc261);let _0x93e13c=[[_0xb5d275,_0x3bc261]];for(let [_0x365461,_0x5548ac]of _0x5f986b){if(_0x365461===_0xb5d275)continue;let _0x2349b4=ia(_0x5548ac);for(;_0x93e13c[_0x5744f1(0x2c9)](([,_0xefa0f3])=>sa(_0x2349b4,_0xefa0f3));)_0x2349b4={..._0x2349b4,'row':_0x2349b4[_0x5744f1(0x293)]+0x1};for(;_0x2349b4[_0x5744f1(0x293)]>0x0;){let _0x689b8b={..._0x2349b4,'row':_0x2349b4[_0x5744f1(0x293)]-0x1};if(_0x93e13c[_0x5744f1(0x2c9)](([,_0x5950d7])=>sa(_0x689b8b,_0x5950d7)))break;_0x2349b4=_0x689b8b;}_0x93e13c[_0x5744f1(0x15d)]([_0x365461,_0x2349b4]),_0x5f986b['set'](_0x365461,_0x2349b4);}return _0x5f986b;}function oa(_0x1e3ff1,_0x559356,_0x5eee44,_0x1ef6c1=0x38,_0x3dbaf2=0x16){const _0x20ff50=_0x57c180;return _0x1e3ff1<_0x559356+_0x1ef6c1?-Math[_0x20ff50(0x480)](_0x3dbaf2*(0x1-Math['max'](0x0,_0x1e3ff1-_0x559356)/_0x1ef6c1)):_0x1e3ff1>_0x5eee44-_0x1ef6c1?Math[_0x20ff50(0x480)](_0x3dbaf2*(0x1-Math[_0x20ff50(0x203)](0x0,_0x5eee44-_0x1e3ff1)/_0x1ef6c1)):0x0;}function sa(_0x350506,_0x1aeb7e){const _0x22c21f=_0x57c180;return _0x350506[_0x22c21f(0x430)]<_0x1aeb7e[_0x22c21f(0x430)]+_0x1aeb7e[_0x22c21f(0x24f)]&&_0x350506['column']+_0x350506[_0x22c21f(0x24f)]>_0x1aeb7e['column']&&_0x350506[_0x22c21f(0x293)]<_0x1aeb7e[_0x22c21f(0x293)]+_0x1aeb7e[_0x22c21f(0x17c)]&&_0x350506[_0x22c21f(0x293)]+_0x350506[_0x22c21f(0x17c)]>_0x1aeb7e[_0x22c21f(0x293)];}const ca=[{'direction':'nw','className':'univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize'},{'direction':'n','className':_0x57c180(0x2f0)},{'direction':'ne','className':'univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize'},{'direction':'e','className':'-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize'},{'direction':'se','className':'univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize'},{'direction':'s','className':_0x57c180(0x3c0)},{'direction':'sw','className':_0x57c180(0x25c)},{'direction':'w','className':_0x57c180(0x166)}];function la({dashboard:_0xcac38b,dragLabel:_0x575496,editable:_0x20fcb2=!0x0,onLayoutsCommit:_0x1a781a,onSelectWidget:_0x208001,renderWidget:_0x24cc95,renderWidgetActions:_0x5a96b4,resizeLabel:_0x57e7e3,selectedWidgetId:_0x48a7d5,widgetLabel:_0x1b383f}){const _0x238743=_0x57c180;let _0x29d123=_0x26ca56(null),_0x513ae5=_0x26ca56(null),[_0x54a8e2,_0x2a7b02]=_0x155c41(!0x1),_0x4b1c2a=_0x4561c2(()=>new Map(_0xcac38b[_0x238743(0x396)][_0x238743(0x21e)](_0x2a47d2=>{const _0x39b7ad=_0x238743;let _0x1d10f1=_0xcac38b[_0x39b7ad(0x1d3)][_0x2a47d2];return _0x1d10f1?[[_0x2a47d2,_0x1d10f1['layout']]]:[];})),[_0xcac38b]),[_0x347dd6,_0x2ff61c]=_0x155c41(_0x4b1c2a);_0x5a872b(()=>{_0x513ae5['current']||_0x2ff61c(_0x4b1c2a);},[_0x4b1c2a]),_0x5a872b(()=>{const _0x97adaf=_0x238743;if(!_0x54a8e2)return;let _0x19f490=_0x166a31=>{const _0x5b1ed7=_0x44d8;let _0x3f8af3=_0x29d123[_0x5b1ed7(0x18a)];if(!_0x3f8af3)return null;let _0x46f462=_0x3f8af3[_0x5b1ed7(0x213)](),_0x2f4381=Math['max'](0x1,(_0x46f462['width']-0x8*(_0x16d92d-0x1))/_0x16d92d),_0x16e167=Math[_0x5b1ed7(0x33b)]((_0x3f8af3[_0x5b1ed7(0x439)]-_0x166a31[_0x5b1ed7(0x330)])/(_0x3bde0c+0x8)),_0x37244b=Math[_0x5b1ed7(0x33b)]((_0x166a31[_0x5b1ed7(0x406)]-_0x166a31['startX'])/(_0x2f4381+0x8)),_0x107fcd=Math[_0x5b1ed7(0x33b)]((_0x166a31[_0x5b1ed7(0x180)]-_0x166a31[_0x5b1ed7(0x3d4)])/(_0x3bde0c+0x8))+_0x16e167,_0x32d678=_0x166a31[_0x5b1ed7(0x367)]===_0x5b1ed7(0x2e0)?{..._0x166a31[_0x5b1ed7(0x1b0)],'column':_0x166a31[_0x5b1ed7(0x1b0)][_0x5b1ed7(0x430)]+_0x37244b,'row':_0x166a31['initial'][_0x5b1ed7(0x293)]+_0x107fcd}:ra(_0x166a31['initial'],_0x166a31[_0x5b1ed7(0x461)]??'se',_0x37244b,_0x107fcd),_0x760357=aa(_0x166a31[_0x5b1ed7(0x3d0)],_0x166a31['id'],_0x32d678);return _0x2ff61c(_0x760357),_0x760357;},_0x40dd4a=_0x1217c9=>{const _0x441470=_0x44d8;let _0x34980e=_0x513ae5['current'];if(!_0x34980e)return;let _0x43ad56={..._0x34980e,'pointerX':_0x1217c9[_0x441470(0x421)],'pointerY':_0x1217c9[_0x441470(0x2fc)]};_0x513ae5[_0x441470(0x18a)]=_0x43ad56;},_0x220eec=()=>{const _0x56c402=_0x44d8;let _0x16bd3d=_0x513ae5['current'],_0x2053e5=_0x16bd3d?_0x19f490(_0x16bd3d):null;_0x513ae5[_0x56c402(0x18a)]=null,_0x2a7b02(!0x1),_0x2053e5&&_0x1a781a(_0x2053e5);},_0x519548=0x0,_0x1d9c30=()=>{const _0x3075ad=_0x44d8;let _0x3b0583=_0x29d123['current'],_0x6e71d3=_0x513ae5[_0x3075ad(0x18a)];if(_0x3b0583&&_0x6e71d3){let _0xf153ec=_0x3b0583[_0x3075ad(0x213)](),_0x47c890=oa(_0x6e71d3[_0x3075ad(0x180)],_0xf153ec[_0x3075ad(0x2db)],_0xf153ec['bottom']);_0x47c890!==0x0&&(_0x3b0583[_0x3075ad(0x439)]+=_0x47c890),_0x19f490(_0x6e71d3),_0x519548=requestAnimationFrame(_0x1d9c30);}};return _0x519548=requestAnimationFrame(_0x1d9c30),window['addEventListener'](_0x97adaf(0x16c),_0x40dd4a),window[_0x97adaf(0x306)](_0x97adaf(0x405),_0x220eec),()=>{const _0x3355fb=_0x97adaf;cancelAnimationFrame(_0x519548),window['removeEventListener'](_0x3355fb(0x16c),_0x40dd4a),window[_0x3355fb(0x3ec)]('pointerup',_0x220eec);};},[_0x54a8e2,_0x1a781a]);let _0x473041=Math[_0x238743(0x203)](0x8,...Array['from'](_0x347dd6[_0x238743(0x484)]())[_0x238743(0x48c)](_0x15ea45=>_0x15ea45[_0x238743(0x293)]+_0x15ea45[_0x238743(0x17c)])),_0x40edfe=(_0x349374,_0x3bcb42,_0x649689,_0x12504f)=>{const _0x3cf178=_0x238743;_0x349374['preventDefault'](),_0x349374['stopPropagation']();let _0x39d428=_0x29d123[_0x3cf178(0x18a)],_0x1d4f86={'id':_0x3bcb42['id'],'mode':_0x649689,'pointerX':_0x349374[_0x3cf178(0x421)],'pointerY':_0x349374[_0x3cf178(0x2fc)],'startX':_0x349374['clientX'],'startY':_0x349374[_0x3cf178(0x2fc)],'startScrollTop':(_0x39d428==null?void 0x0:_0x39d428[_0x3cf178(0x439)])??0x0,'initial':_0x347dd6[_0x3cf178(0x392)](_0x3bcb42['id'])??_0x3bcb42[_0x3cf178(0x424)],'initialLayouts':new Map(_0x347dd6),'resizeDirection':_0x12504f};_0x513ae5[_0x3cf178(0x18a)]=_0x1d4f86,_0x2a7b02(!0x0);};return _0x1bfcde(_0x238743(0x332),{'ref':_0x29d123,'data-dashboard-scroll-container':!0x0,'className':_0x3c6675('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',_0x32f99e),'onClick':_0x20fcb2?_0x408d52=>{const _0x3a4a01=_0x238743;if(!(_0x408d52[_0x3a4a01(0x22c)]instanceof Node)||!_0x408d52[_0x3a4a01(0x2bc)][_0x3a4a01(0x1ef)](_0x408d52[_0x3a4a01(0x22c)]))return;let _0x5cc0f4=_0x408d52[_0x3a4a01(0x22c)]instanceof Element?_0x408d52[_0x3a4a01(0x22c)]:_0x408d52['target'][_0x3a4a01(0x2f4)];_0x5cc0f4!=null&&_0x5cc0f4['closest'](_0x3a4a01(0x3e5))||_0x208001==null||_0x208001();}:void 0x0,'children':_0x1bfcde(_0x238743(0x332),{'data-dashboard-grid':!0x0,'className':_0x238743(0x486),'style':{'gap':0x8,'gridAutoRows':_0x3bde0c,'minHeight':_0x473041*(_0x3bde0c+0x8)},'children':_0xcac38b['widgetOrder'][_0x238743(0x48c)](_0x283dcc=>{const _0x3815b7=_0x238743;var _0x21dba1;let _0x4bcd80=_0xcac38b[_0x3815b7(0x1d3)][_0x283dcc],_0x5300c2=_0x347dd6['get'](_0x283dcc);return!_0x4bcd80||!_0x5300c2?null:_0x3fc05f(_0x3815b7(0x16d),{'data-dashboard-widget':_0x4bcd80['id'],'aria-label':_0x4bcd80[_0x3815b7(0x2ff)]??_0x1b383f(_0x4bcd80),'className':_0x3c6675(_0x3815b7(0x3f8),_0x4bcd80[_0x3815b7(0x498)]===_0x925244[_0x3815b7(0x37d)]||_0x4bcd80[_0x3815b7(0x498)]===_0x925244[_0x3815b7(0x1a9)]?_0x3815b7(0x173):_0x3815b7(0x324),_0x20fcb2&&_0x48a7d5===_0x4bcd80['id']?_0x3815b7(0x190):_0x3815b7(0x413)),'style':{'gridColumn':_0x5300c2['column']+0x1+_0x3815b7(0x1f6)+_0x5300c2['columnSpan'],'gridRow':_0x5300c2[_0x3815b7(0x293)]+0x1+'\x20/\x20span\x20'+_0x5300c2[_0x3815b7(0x17c)]},'tabIndex':_0x20fcb2?0x0:void 0x0,'onClick':_0x20fcb2?()=>_0x208001==null?void 0x0:_0x208001(_0x4bcd80['id']):void 0x0,'onFocus':_0x20fcb2?()=>_0x208001==null?void 0x0:_0x208001(_0x4bcd80['id']):void 0x0,'children':[_0x20fcb2&&_0x1bfcde('button',{'type':'button','aria-label':_0x575496,'data-dashboard-drag-handle':_0x4bcd80['id'],'className':_0x3c6675('univer-pointer-events-none\x20univer-absolute\x20univer-left-1/2\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-h-5\x20univer-w-8\x20-univer-translate-x-1/2\x20univer-appearance-none\x20univer-items-center\x20univer-justify-center\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-400\x20univer-opacity-0\x20univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100',_0x54a8e2&&((_0x21dba1=_0x513ae5[_0x3815b7(0x18a)])==null?void 0x0:_0x21dba1['id'])===_0x4bcd80['id']&&_0x513ae5[_0x3815b7(0x18a)][_0x3815b7(0x367)]===_0x3815b7(0x2e0)?_0x3815b7(0x48b):'univer-cursor-grab'),'onPointerDown':_0x1d86aa=>_0x40edfe(_0x1d86aa,_0x4bcd80,'move'),'children':_0x1bfcde(_0x4e0043,{'className':_0x3815b7(0x3c4),'aria-hidden':'true'})}),_0x20fcb2&&_0x1bfcde('div',{'className':'univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','children':_0x5a96b4==null?void 0x0:_0x5a96b4(_0x4bcd80)}),_0x1bfcde('div',{'className':_0x3815b7(0x1bd),'children':_0x24cc95(_0x4bcd80)}),_0x20fcb2&&ca['map'](({className:_0x34ddda,direction:_0x28ebdf})=>{const _0x1216ce=_0x3815b7;let _0x3c96d9=_0x28ebdf['length']===0x2;return _0x1bfcde('button',{'type':_0x1216ce(0x189),'aria-label':_0x57e7e3,'data-dashboard-resize-handle':_0x28ebdf,'data-dashboard-resize-control':_0x3c96d9?_0x28ebdf:void 0x0,'data-dashboard-resize-edge':_0x3c96d9?void 0x0:_0x28ebdf,'className':_0x3c6675(_0x1216ce(0x3f5),_0x3c96d9?_0x1216ce(0x1c7):_0x1216ce(0x302),_0x34ddda,_0x48a7d5===_0x4bcd80['id']&&_0x1216ce(0x38d)),'onPointerDown':_0x42b333=>_0x40edfe(_0x42b333,_0x4bcd80,_0x1216ce(0x236),_0x28ebdf)},_0x28ebdf);})]},_0x4bcd80['id']);})})});}var ua;const Q={'axis':{..._0x5bb0d7,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x2ade94,'heatmap':_0x56fd38,'indicatorLine':_0x4505bf,'legend':_0x255bea,'lineAndArea':_0x334ac6,'pareto':_0x50369c,'pie':_0x2a7701,'radar':_0x23b3e2,'relation':{..._0x47989a,'useValueAsSymbolSize':!0x0},'series':{..._0x6b2197,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((ua=_0x1cf164[_0x57c180(0x1ee)])==null?void 0x0:ua[_0x57c180(0x243)])??!0x1}},'style':_0x11b3b9,'titles':_0x4012e3,'trendline':_0x1f404b,'waterfall':{..._0x2665d6,'useSubtotal':!0x0},'waterfallStyle':_0x15d409,'wordCloud':_0x5f4293},da=[_0x546fc5[_0x57c180(0x175)],_0x546fc5[_0x57c180(0x339)],_0x546fc5[_0x57c180(0x2c7)],_0x546fc5[_0x57c180(0x4a3)],_0x546fc5['Funnel'],_0x546fc5[_0x57c180(0x47b)],_0x546fc5['Sankey'],_0x546fc5[_0x57c180(0x221)],_0x546fc5[_0x57c180(0x209)],_0x546fc5[_0x57c180(0x1d4)],_0x546fc5[_0x57c180(0x22b)],_0x546fc5['Treemap'],_0x546fc5[_0x57c180(0x1da)],_0x546fc5['Gauge'],_0x546fc5['Chord']];function fa(_0x3f9804){const _0xadc070=_0x57c180;let {config:_0x42cfb2,onChange:_0x35a2bd,runtime:_0x9dbbfc,tableName:_0x3cd470}=_0x3f9804,_0x2bff3e=_0x3dc792(Gr),_0x330b8d=_0x3dc792(_0xc34a30),[_0x5cd207,_0x16df29]=_0x155c41(_0x34d32e[_0xadc070(0x192)]),_0x493d6f=_0x4561c2(()=>new _0x4e622f(_0x9dbbfc[_0xadc070(0x2aa)],{'commit':_0x3ecb9b=>{const _0x20b6be=_0xadc070;var _0x7c8a02;let _0x235c56=_0x9dbbfc[_0x20b6be(0x2aa)],_0x1ba236=_0x206b2e(_0x3ecb9b,{'series':(_0x7c8a02=_0x235c56[_0x20b6be(0x163)])==null?void 0x0:_0x7c8a02['series'],'currentChartType':_0x235c56['chartType'],'currentStyle':_0x235c56[_0x20b6be(0x1d6)],'currentContext':_0x235c56[_0x20b6be(0x4a5)],'currentDataAggregation':_0x235c56[_0x20b6be(0x303)]});_0x35a2bd({'chart':pa(_0x42cfb2[_0x20b6be(0x49c)],_0x1ba236)});}}),[_0x42cfb2[_0xadc070(0x49c)],_0x35a2bd,_0x9dbbfc]),_0x28541b=_0x4561c2(()=>_0x5447e3(_0x3c2b9a[_0xadc070(0x48c)](_0x334fb5=>({..._0x334fb5,'label':_0x330b8d['t'](_a(_0x334fb5[_0xadc070(0x202)]))}))),[_0x330b8d]);return _0x1bfcde(_0x4c2ea3,{'chartUIService':_0x2bff3e,'hostAdapter':_0x493d6f,'children':_0x3fc05f('div',{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x1bfcde(_0x2e9f58,{'ariaLabel':_0x330b8d['t'](_0xadc070(0x464)),'className':_0xadc070(0x3ff),'items':[{'label':_0x330b8d['t'](_0xadc070(0x3c1)),'panelId':_0xadc070(0x1b2),'value':_0x34d32e['Data']},{'label':_0x330b8d['t'](_0xadc070(0x20e)),'panelId':_0xadc070(0x22d),'value':_0x34d32e[_0xadc070(0x1c0)]}],'value':_0x5cd207,'onChange':_0x16df29}),_0x5cd207===_0x34d32e[_0xadc070(0x192)]?_0x1bfcde(_0x5cb021,{'id':_0xadc070(0x1b2),'label':_0x330b8d['t'](_0xadc070(0x3c1)),'children':_0x3fc05f(_0xadc070(0x332),{'className':_0xadc070(0x345),'children':[_0x1bfcde(_0x1e47f4,{'options':_0x28541b}),_0x1bfcde(_0x60f00e,{}),_0x1bfcde(_0x40668c,{}),_0x1bfcde(ma,{}),_0x1bfcde(_0x5ab8f3,{}),_0x3fc05f(_0xadc070(0x332),{'children':[_0x1bfcde(_0x20c528,{'title':_0x330b8d['t'](_0xadc070(0x239))}),_0x1bfcde(_0x225487,{'disabled':!0x0,'value':_0x3cd470})]}),_0x1bfcde(_0x236f8b,{'orientationControl':_0x1bfcde(_0x29df96,{'size':_0xadc070(0x3a6),'onClick':()=>_0x35a2bd({'chart':{..._0x42cfb2['chart'],'orient':_0x42cfb2[_0xadc070(0x49c)]['orient']===_0xadc070(0x293)?_0xadc070(0x430):'row'}}),'children':_0x330b8d['t'](_0xadc070(0x3a4))})}),_0x1bfcde(_0x260003,{}),_0x1bfcde(_0x115741,{'defaultValues':Q[_0xadc070(0x17f)]}),_0x3fc05f('div',{'children':[_0x1bfcde(_0x20c528,{'title':_0x330b8d['t'](_0xadc070(0x34a))}),_0x1bfcde(_0x103c6a,{'value':_0x42cfb2[_0xadc070(0x36d)],'options':[{'value':'chart-and-table','label':_0x330b8d['t'](_0xadc070(0x33e))},{'value':'chart','label':_0x330b8d['t'](_0xadc070(0x294))},{'value':_0xadc070(0x2c6),'label':_0x330b8d['t'](_0xadc070(0x2ed))}],'onChange':_0x28c5d0=>{const _0x98ba90=_0xadc070;(_0x28c5d0==='chart-and-table'||_0x28c5d0===_0x98ba90(0x49c)||_0x28c5d0===_0x98ba90(0x2c6))&&_0x35a2bd({'displayMode':_0x28c5d0});}})]})]})}):_0x1bfcde(_0x5cb021,{'id':_0xadc070(0x22d),'label':_0x330b8d['t'](_0xadc070(0x20e)),'children':_0x1bfcde(ha,{})})]})});}function pa(_0x5dfea3,_0x4eb4a5){const _0x21c7e6=_0x57c180;return{..._0x5dfea3,'type':_0x4eb4a5['chartType']??_0x5dfea3['type'],'style':_0x4eb4a5[_0x21c7e6(0x1d6)]??_0x5dfea3[_0x21c7e6(0x1d6)],'context':_0x4eb4a5[_0x21c7e6(0x4a5)]??_0x5dfea3[_0x21c7e6(0x4a5)],'dataAggregation':_0x4eb4a5[_0x21c7e6(0x303)]??_0x5dfea3[_0x21c7e6(0x303)]};}function _0x44d8(_0x4463d0,_0x29479f){_0x4463d0=_0x4463d0-0x152;const _0x59a9fe=_0x59a9();let _0x44d815=_0x59a9fe[_0x4463d0];return _0x44d815;}function ma(){const _0x395e38=_0x57c180;let _0x250795=_0x1600aa();return _0x1bfcde(_0x365082,{'visible':da['every'](_0x1b4fb0=>!_0x579955[_0x395e38(0x248)](_0x250795,_0x1b4fb0))});}function $(_0x5b62ae){const _0x23294a=_0x57c180;return _0x3fc05f(_0x511a83,{'id':_0x5b62ae['id'],'children':[_0x1bfcde(_0x22a0cc,{'children':_0x5b62ae[_0x23294a(0x372)]}),_0x1bfcde(_0x4bb2c8,{'children':_0x5b62ae['children']})]});}function ha(){const _0x54d5f3=_0x57c180;let _0x155257=_0x3dc792(_0xc34a30),_0x1107c2=_0x1600aa(),_0x177e25=_0x4abcf3(),[_0x6d2ad0,_0x4f0c3a]=_0x155c41(null),_0x10b428=_0x579955['baseOn'](_0x1107c2,_0x546fc5['Pie']),_0x3c0acf=_0x1107c2===_0x546fc5[_0x54d5f3(0x339)],_0xe22562=_0x1107c2===_0x546fc5['WordCloud'],_0x47c711=_0x1107c2===_0x546fc5['Funnel'],_0x4cd6bf=_0x579955[_0x54d5f3(0x248)](_0x1107c2,_0x546fc5[_0x54d5f3(0x315)]),_0x1bd2aa=_0x1107c2===_0x546fc5[_0x54d5f3(0x47b)],_0x729398=_0x1107c2===_0x546fc5['Waterfall'],_0x5c2d60=_0x1107c2===_0x546fc5['Pareto'],_0x43a51b=_0x1107c2===_0x546fc5[_0x54d5f3(0x221)],_0x18e8ae=_0x20bcdc(_0x1107c2,_0x262643[_0x54d5f3(0x49e)])&&!_0x4cd6bf&&!_0x5c2d60,_0x29fe7a=ga(_0x1107c2,_0x155257);return _0x3fc05f(_0x2794c9,{'value':_0x6d2ad0,'onChange':_0x4f0c3a,'children':[_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x16a)],'label':_0x155257['t'](_0x54d5f3(0x451)),'children':_0x1bfcde(_0x36f8fa,{'defaultValues':Q['style']})}),_0x1bfcde($,{'id':_0xd01354['ChartAndAxisTitles'],'label':_0x155257['t'](_0x54d5f3(0x2e3)),'children':_0x1bfcde(_0x3b2df6,{'commitMode':_0x54d5f3(0x3d5),'defaultValues':Q['titles']})}),_0x18e8ae&&_0x1bfcde($,{'id':_0xd01354['Series'],'label':_0x155257['t'](_0x54d5f3(0x43b)),'children':_0x1bfcde(_0xfcfe0d,{'defaultValues':Q[_0x54d5f3(0x376)],'NumberFormatField':_0x1984da})}),_0x729398&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x262)],'label':_0x155257['t'](_0x54d5f3(0x2e7)),'children':_0x1bfcde(_0x29de7e,{'defaultValues':Q[_0x54d5f3(0x1a4)],'getDefaultBucketName':({seriesName:_0x4a6491,target:_0xa86700})=>_0xa86700===_0x588af0[_0x54d5f3(0x18c)]?_0x155257['t'](_0x54d5f3(0x289)):_0x4a6491?_0x4a6491+'-('+_0x155257['t'](_0x54d5f3(0x1c2)+(_0xa86700===_0x588af0[_0x54d5f3(0x1d8)]?_0x54d5f3(0x364):_0x54d5f3(0x30e)))+')':'','NumberFormatField':_0x1984da})}),_0x5c2d60&&_0x3fc05f(_0x30443f,{'children':[_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x4a2)],'label':_0x155257['t'](_0x54d5f3(0x41b)),'children':_0x1bfcde(_0x7a917b,{'defaultValues':Q['pareto'],'NumberFormatField':_0x1984da,'showDataPointEditor':!0x0,'target':_0x54d5f3(0x40d)})}),_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x272)],'label':_0x155257['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':_0x1bfcde(_0x7a917b,{'defaultValues':Q[_0x54d5f3(0x17d)],'NumberFormatField':_0x1984da,'showDataPointEditor':!0x1,'target':_0x54d5f3(0x24e)})})]}),_0x10b428&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x1ff)],'label':_0x155257['t']('bases-dashboard-ui.chart.section.pie'),'children':_0x1bfcde(_0x55a368,{'defaultValues':Q['pie'],'NumberFormatField':_0x1984da})}),_0xe22562&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x2c7)],'label':_0x155257['t']('bases-dashboard-ui.chart.section.wordCloud'),'children':_0x1bfcde(_0x14d125,{'defaultValues':Q[_0x54d5f3(0x319)]})}),_0x3c0acf&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x339)],'label':_0x155257['t'](_0x54d5f3(0x17e)),'children':_0x1bfcde(_0x807256,{'defaultValues':Q[_0x54d5f3(0x16f)]})}),_0x47c711&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x2df)],'label':_0x155257['t'](_0x54d5f3(0x1b3)),'children':_0x1bfcde(_0x5c8bd4,{'defaultValues':Q['funnel'],'gapControl':_0x54d5f3(0x39e)})}),_0x43a51b&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x221)],'label':_0x155257['t'](_0x54d5f3(0x448)),'children':_0x1bfcde(_0x56789e,{'defaultValues':Q[_0x54d5f3(0x3be)]})}),_0x1bd2aa&&_0x1bfcde($,{'id':_0xd01354['Relation'],'label':_0x155257['t'](_0x54d5f3(0x35e)),'children':_0x1bfcde(_0xf308df,{'defaultValues':Q[_0x54d5f3(0x3b7)]})}),_0x41979c(_0x1107c2)&&_0x1bfcde($,{'id':_0xd01354['LineAndArea'],'label':_0x155257['t'](_0x54d5f3(0x216)),'children':_0x1bfcde(_0x152bb6,{'defaultValues':Q['lineAndArea'],'lineStyleControl':'segmented'})}),_0x20bcdc(_0x1107c2,_0x262643[_0x54d5f3(0x366)])&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x366)],'label':_0x155257['t'](_0x54d5f3(0x382)),'children':_0x1bfcde(_0x3c5065,{'defaultValues':Q[_0x54d5f3(0x1e6)]})}),_0x20bcdc(_0x1107c2,_0x262643[_0x54d5f3(0x210)])&&_0x3fc05f(_0x30443f,{'children':[_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x474)],'label':_0x155257['t'](_0x54d5f3(0x47a)),'children':_0x1bfcde(_0x4ecd7e,{'axis':'x','defaultValues':Q[_0x54d5f3(0x442)],'NumberFormatField':_0x1984da})}),_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x43d)],'label':_0x155257['t'](_0x54d5f3(0x217)),'children':_0x1bfcde(_0x4ecd7e,{'axis':'y','defaultValues':Q[_0x54d5f3(0x442)],'NumberFormatField':_0x1984da})}),_0x177e25&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x2e6)],'label':_0x155257['t'](_0x54d5f3(0x49f)),'children':_0x1bfcde(_0x4ecd7e,{'axis':_0x54d5f3(0x3bc),'defaultValues':Q[_0x54d5f3(0x442)],'NumberFormatField':_0x1984da})}),_0x1bfcde($,{'id':_0xd01354['GridlinesAndTicks'],'label':_0x155257['t'](_0x54d5f3(0x397)),'children':_0x1bfcde(_0x41e9c3,{'defaultValues':Q[_0x54d5f3(0x442)]})})]}),_0x20bcdc(_0x1107c2,_0x262643[_0x54d5f3(0x2f6)])&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x2f6)],'label':_0x155257['t'](_0x54d5f3(0x246)),'children':_0x1bfcde(_0x5eb7b1,{'defaultValues':Q[_0x54d5f3(0x341)]})}),_0x3d1aed(_0x1107c2)&&_0x1bfcde($,{'id':_0xd01354[_0x54d5f3(0x3b4)],'label':_0x155257['t'](_0x54d5f3(0x1ac)),'children':_0x1bfcde(_0x1928c4,{'defaultValues':Q[_0x54d5f3(0x1ea)]})}),_0x29fe7a&&_0x1bfcde($,{'id':_0x29fe7a['id'],'label':_0x29fe7a[_0x54d5f3(0x372)],'children':_0x1bfcde(_0x4ea50d,{})})]});}function ga(_0x3ec782,_0x3101f9){const _0x208f8e=_0x57c180;let _0x1335df={[_0x546fc5['Candlestick']]:{'id':_0xd01354[_0x208f8e(0x1d4)],'localeKey':_0x208f8e(0x440)},[_0x546fc5[_0x208f8e(0x22b)]]:{'id':_0xd01354[_0x208f8e(0x22b)],'localeKey':_0x208f8e(0x1b8)},[_0x546fc5[_0x208f8e(0x3ef)]]:{'id':_0xd01354[_0x208f8e(0x3ef)],'localeKey':_0x208f8e(0x361)},[_0x546fc5['Sunburst']]:{'id':_0xd01354['Sunburst'],'localeKey':_0x208f8e(0x389)},[_0x546fc5[_0x208f8e(0x3f9)]]:{'id':_0xd01354['Gauge'],'localeKey':_0x208f8e(0x19c)},[_0x546fc5[_0x208f8e(0x2dc)]]:{'id':_0xd01354[_0x208f8e(0x2dc)],'localeKey':_0x208f8e(0x353)}}[_0x3ec782];return _0x1335df?{'id':_0x1335df['id'],'label':_0x3101f9['t'](_0x1335df['localeKey'])}:null;}function _a(_0x226a26){return'bases-dashboard-ui.chart.chartTypes.'+_0x226a26;}function va({onChange:_0x3e5536,onEditData:_0xecd8c2,runtime:_0x2cf051,sourceChart:_0x3c535d,sourceName:_0x113abd,widget:_0x29263c}){const _0x2f82ac=_0x57c180;let _0x54d25c=_0x3dc792(Gr),_0x344029=_0x3dc792(_0xc34a30),[_0x5a05e1,_0x1b98b3]=_0x155c41(_0x34d32e[_0x2f82ac(0x192)]),_0x36d5b4=_0x29263c[_0x2f82ac(0x49c)]??_0x3c535d,_0x468f96=_0x4561c2(()=>new _0x4e622f(_0x2cf051['model'],{'commit':_0x3ad368=>{const _0x267384=_0x2f82ac;var _0x8dc881;let _0x54dba7=_0x2cf051[_0x267384(0x2aa)],_0x3822eb=_0x206b2e(_0x3ad368,{'series':(_0x8dc881=_0x54dba7[_0x267384(0x163)])==null?void 0x0:_0x8dc881[_0x267384(0x376)],'currentChartType':_0x54dba7[_0x267384(0x2a6)],'currentStyle':_0x54dba7[_0x267384(0x1d6)],'currentContext':_0x54dba7['context'],'currentDataAggregation':_0x54dba7[_0x267384(0x303)]});_0x3e5536({..._0x29263c,'chart':pa(_0x36d5b4,_0x3822eb)})[_0x267384(0x2cb)](()=>void 0x0);}}),[_0x36d5b4,_0x3e5536,_0x2cf051,_0x29263c]),_0x1eeac4=_0x4561c2(()=>_0x5447e3(_0x3c2b9a[_0x2f82ac(0x48c)](_0xe392fb=>({..._0xe392fb,'label':_0x344029['t'](ya(_0xe392fb[_0x2f82ac(0x202)]))}))),[_0x344029]);return _0x1bfcde(_0x4c2ea3,{'chartUIService':_0x54d25c,'hostAdapter':_0x468f96,'children':_0x3fc05f('div',{'data-dashboard-chart-inspector':!0x0,'className':_0x2f82ac(0x4a8),'children':[_0x1bfcde(_0x2e9f58,{'ariaLabel':_0x344029['t'](_0x2f82ac(0x464)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x344029['t'](_0x2f82ac(0x3c1)),'panelId':'dashboard-chart-setup','value':_0x34d32e[_0x2f82ac(0x192)]},{'label':_0x344029['t'](_0x2f82ac(0x20e)),'panelId':_0x2f82ac(0x1c5),'value':_0x34d32e[_0x2f82ac(0x1c0)]}],'value':_0x5a05e1,'onChange':_0x1b98b3}),_0x5a05e1===_0x34d32e[_0x2f82ac(0x192)]?_0x1bfcde(_0x5cb021,{'id':_0x2f82ac(0x155),'label':_0x344029['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x3fc05f('div',{'className':_0x2f82ac(0x345),'children':[_0x1bfcde(_0x1e47f4,{'options':_0x1eeac4}),_0x1bfcde(_0x60f00e,{}),_0x1bfcde(_0x40668c,{}),_0x1bfcde(ma,{}),_0x1bfcde(_0x5ab8f3,{}),_0x3fc05f(_0x2f82ac(0x332),{'children':[_0x1bfcde(_0x20c528,{'title':_0x344029['t'](_0x2f82ac(0x348))}),_0x1bfcde(_0x225487,{'disabled':!0x0,'value':_0x113abd}),_0x1bfcde(_0x29df96,{'className':'univer-mt-2\x20univer-w-full','onClick':_0xecd8c2,'children':_0x344029['t'](_0x2f82ac(0x426))})]})]})}):_0x1bfcde(_0x5cb021,{'id':_0x2f82ac(0x1c5),'label':_0x344029['t'](_0x2f82ac(0x20e)),'children':_0x1bfcde(ha,{})})]})});}function ya(_0x215ab6){const _0x147654=_0x57c180;return _0x147654(0x2fe)+_0x215ab6;}const ba=[_0x57c180(0x452),_0x57c180(0x338),_0x57c180(0x3b1),'currency',_0x57c180(0x4a4),'compact'];function xa({base:_0x29b1e6,onChange:_0x4a6fb9,onSelectBackgroundImage:_0x2df8f5,widget:_0x1f59ae}){const _0x316a73=_0x57c180;var _0xd277c8;let _0x1c1186=_0x3dc792(_0xc34a30),_0x496a37=_0x3dc792(_0x2f0481),_0x491446=_0x1cdd28(()=>_0x496a37[_0x316a73(0x409)],_0x496a37['getCurrentTheme'](),!0x1,[_0x496a37]),_0x442f17=_0x1cdd28(()=>_0x496a37[_0x316a73(0x2fd)],_0x496a37[_0x316a73(0x342)],!0x1,[_0x496a37]),[_0x331464,_0x1f1a22]=_0x155c41('data'),[_0x24602f,_0x1eeea1]=_0x155c41(!0x1),_0xc1fc2d=xr(_0x1f59ae),_0x3761c1=_0x29b1e6[_0x316a73(0x257)]()[_0x316a73(0x47e)][_0x1f59ae[_0x316a73(0x31f)]],_0x2a75df=_0x3761c1==null?void 0x0:_0x3761c1[_0x316a73(0x3d3)][_0x316a73(0x34b)](_0x59d2ea=>_0x3761c1[_0x316a73(0x46e)][_0x59d2ea]),_0x245904=_0x2a75df?_0x3761c1==null?void 0x0:_0x3761c1['views'][_0x2a75df]:void 0x0,_0x3c6a5c=_0x3761c1&&_0x245904?_0x3fc9b5(_0x29b1e6[_0x316a73(0x257)](),_0x3761c1,_0x245904)[_0x316a73(0x48c)](_0x5e25ac=>({..._0x5e25ac,'current':!0x1})):[],_0x10b113=((_0xd277c8=_0x1f59ae[_0x316a73(0x20a)][_0x316a73(0x251)])==null?void 0x0:_0xd277c8[_0x316a73(0x304)])??'',_0xd77399=_0x5c5f2a=>_0x4a6fb9(Sr(_0x1f59ae,_0x5c5f2a))[_0x316a73(0x2cb)](()=>void 0x0),_0x3320d4=_0x32612f=>_0x4a6fb9({..._0x1f59ae,'description':_0x32612f})[_0x316a73(0x2cb)](()=>void 0x0);return _0x3fc05f(_0x316a73(0x332),{'data-dashboard-formula-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x1bfcde(_0x9bce40,{'className':'univer-m-3','items':[{'value':'data','label':_0x1c1186['t'](_0x316a73(0x379))},{'value':_0x316a73(0x1d6),'label':_0x1c1186['t'](_0x316a73(0x4a6))}],'value':_0x331464,'onChange':_0x1f1a22}),_0x1bfcde(_0x316a73(0x332),{'className':_0x316a73(0x318),'children':_0x331464==='data'?_0x3fc05f('div',{'className':'univer-grid\x20univer-gap-4','children':[_0x1bfcde(Sa,{'label':_0x1c1186['t'](_0x316a73(0x37a)),'children':_0x1bfcde(_0x225487,{'value':_0x1f59ae[_0x316a73(0x18f)]??_0x1f59ae[_0x316a73(0x2ff)]??'','onChange':_0x3320d4,'onBlur':_0x5c4a0e=>_0x3320d4(_0x5c4a0e['target']['value'])})}),_0x1bfcde(Sa,{'label':_0x1c1186['t'](_0x316a73(0x348)),'children':_0x1bfcde(_0x225487,{'disabled':!0x0,'value':(_0x3761c1==null?void 0x0:_0x3761c1['name'])??_0x1c1186['t'](_0x316a73(0x36f))})}),_0x3fc05f(Sa,{'label':_0x1c1186['t'](_0x316a73(0x1b9)),'children':[_0x1bfcde(_0x225487,{'disabled':!0x0,'value':_0x23590c(_0x10b113,_0x3c6a5c)}),_0x1bfcde(_0x29df96,{'className':'univer-mt-2\x20univer-w-full','onClick':()=>_0x1eeea1(!0x0),'children':_0x1c1186['t'](_0x316a73(0x1d9))})]})]}):_0x3fc05f(_0x316a73(0x332),{'className':_0x316a73(0x171),'children':[_0x1bfcde(_0x14a84b,{'emptyLabel':_0x1c1186['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x1c1186['t'](_0x316a73(0x3b0)),'pickerFallbackValue':_0x442f17?_0x491446[_0x316a73(0x387)][0x384]:_0x491446[_0x316a73(0x387)][0x0],'resetLabel':_0x1c1186['t'](_0x316a73(0x459)),'value':_0xc1fc2d[_0x316a73(0x26f)]??null,'onChange':_0x5d1f37=>_0xd77399({'backgroundColor':_0x5d1f37??void 0x0})}),_0x3fc05f(Sa,{'label':_0x1c1186['t'](_0x316a73(0x2b3)),'children':[_0x3fc05f('div',{'className':_0x316a73(0x169),'children':[_0x3fc05f(_0x29df96,{'className':'univer-flex-1','onClick':()=>{const _0x361ffc=_0x316a73;_0x2df8f5()['then'](_0x51a640=>{const _0x1ea501=_0x44d8;if(_0x51a640){var _0x3b8317;return _0xd77399({'backgroundImage':{..._0x51a640,'fit':((_0x3b8317=_0xc1fc2d['backgroundImage'])==null?void 0x0:_0x3b8317[_0x1ea501(0x3d9)])??_0x1ea501(0x3a5)}});}})[_0x361ffc(0x2cb)](()=>void 0x0);},'children':[_0x1bfcde(_0x5d1373,{}),_0xc1fc2d['backgroundImage']?_0x1c1186['t'](_0x316a73(0x490)):_0x1c1186['t'](_0x316a73(0x234))]}),_0xc1fc2d['backgroundImage']&&_0x1bfcde(_0x29df96,{'aria-label':_0x1c1186['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x1c1186['t'](_0x316a73(0x1fd)),'onClick':()=>_0xd77399({'backgroundImage':void 0x0}),'children':_0x1bfcde(_0x4e3f72,{})})]}),_0xc1fc2d['backgroundImage']&&_0x1bfcde(_0x9bce40,{'className':_0x316a73(0x20f),'items':[{'value':_0x316a73(0x3a5),'label':_0x1c1186['t'](_0x316a73(0x454))},{'value':_0x316a73(0x273),'label':_0x1c1186['t'](_0x316a73(0x485))}],'value':_0xc1fc2d[_0x316a73(0x1c6)][_0x316a73(0x3d9)],'onChange':_0x50eed2=>_0xd77399({'backgroundImage':_0xc1fc2d[_0x316a73(0x1c6)]?{..._0xc1fc2d[_0x316a73(0x1c6)],'fit':_0x50eed2}:void 0x0})})]}),_0x1bfcde(_0x14a84b,{'emptyLabel':_0x1c1186['t'](_0x316a73(0x354)),'label':_0x1c1186['t'](_0x316a73(0x354)),'pickerFallbackValue':_0x442f17?_0x491446[_0x316a73(0x387)][0x32]:_0x491446[_0x316a73(0x387)][0x3e8],'resetLabel':_0x1c1186['t'](_0x316a73(0x459)),'value':_0xc1fc2d['textColor']??null,'onChange':_0x2e756e=>_0xd77399({'textColor':_0x2e756e??void 0x0})}),_0x1bfcde(Sa,{'label':_0x1c1186['t'](_0x316a73(0x1aa)),'children':_0x1bfcde(_0x9bce40,{'items':[{'value':'left','label':_0x1c1186['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':'center','label':_0x1c1186['t'](_0x316a73(0x3e2))},{'value':_0x316a73(0x3bb),'label':_0x1c1186['t'](_0x316a73(0x349))}],'value':_0xc1fc2d[_0x316a73(0x283)],'onChange':_0x279e5e=>_0xd77399({'alignment':_0x279e5e})})}),_0x3fc05f(Sa,{'label':_0x1c1186['t'](_0x316a73(0x178)),'children':[_0x1bfcde(_0x9bce40,{'items':[{'value':'auto','label':_0x1c1186['t'](_0x316a73(0x2a7))},{'value':'custom','label':_0x1c1186['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0xc1fc2d[_0x316a73(0x204)],'onChange':_0xe9906c=>_0xd77399({'fontSizeMode':_0xe9906c})}),_0xc1fc2d[_0x316a73(0x204)]===_0x316a73(0x29e)&&_0x1bfcde(_0x142183,{'className':_0x316a73(0x20f),'min':0xc,'max':0x78,'value':_0xc1fc2d[_0x316a73(0x2cd)],'onChange':_0x1a3235=>_0xd77399({'fontSize':_0x1a3235??0x28,'fontSizeMode':_0x316a73(0x29e)})})]}),_0x1bfcde(Sa,{'label':_0x1c1186['t'](_0x316a73(0x322)),'children':_0x1bfcde(_0x103c6a,{'value':_0xc1fc2d[_0x316a73(0x441)],'options':[{'value':_0x316a73(0x452),'label':_0x1c1186['t'](_0x316a73(0x254))},{'value':_0x316a73(0x338),'label':_0x1c1186['t'](_0x316a73(0x2fa))},{'value':_0x316a73(0x3b1),'label':_0x1c1186['t'](_0x316a73(0x425))},{'value':_0x316a73(0x214),'label':_0x1c1186['t'](_0x316a73(0x44d))},{'value':_0x316a73(0x4a4),'label':_0x1c1186['t'](_0x316a73(0x43e))},{'value':_0x316a73(0x1c4),'label':_0x1c1186['t'](_0x316a73(0x358))}],'onChange':_0x22deb7=>{const _0x19fbeb=_0x316a73;let _0x5f0edd=ba[_0x19fbeb(0x34b)](_0x403346=>_0x403346===_0x22deb7);_0x5f0edd&&_0xd77399({'numberFormat':_0x5f0edd});}})}),_0xc1fc2d[_0x316a73(0x441)]===_0x316a73(0x214)&&_0x1bfcde(Sa,{'label':_0x1c1186['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x1bfcde(_0x225487,{'value':_0xc1fc2d[_0x316a73(0x214)],'onChange':_0xde5f30=>_0xd77399({'currency':_0xde5f30['slice'](0x0,0x3)[_0x316a73(0x3c5)]()})})}),_0xc1fc2d[_0x316a73(0x441)]!==_0x316a73(0x452)&&_0x1bfcde(Sa,{'label':_0x1c1186['t'](_0x316a73(0x1cc)),'children':_0x1bfcde(_0x142183,{'min':0x0,'max':0x8,'value':_0xc1fc2d['decimalPlaces'],'onChange':_0x1810a9=>_0xd77399({'decimalPlaces':_0x1810a9??0x0})})})]})}),_0x24602f&&_0x1bfcde(_0x200c20,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1bfcde(_0x24b807,{'tables':_0x3c6a5c,'formula':_0x23590c(_0x10b113,_0x3c6a5c),'onCancel':()=>_0x1eeea1(!0x1),'onSave':_0x32ef16=>{const _0x545b63=_0x316a73;let _0x1ab7ad=_0x1f59ae[_0x545b63(0x20a)][_0x545b63(0x251)]??{'formula':''};return _0x4a6fb9({..._0x1f59ae,'shapeData':{..._0x1f59ae['shapeData'],'formulaBinding':{..._0x1ab7ad,'formula':_0x909b28(_0x32ef16,_0x3c6a5c)}}})[_0x545b63(0x2bd)](()=>_0x1eeea1(!0x1))[_0x545b63(0x2cb)](()=>void 0x0);}})})]});}function Sa({children:_0x428c06,label:_0x4a333d}){const _0x461251=_0x57c180;return _0x3fc05f(_0x461251(0x332),{'role':_0x461251(0x208),'aria-label':_0x4a333d,'className':_0x461251(0x307),'children':[_0x1bfcde(_0x461251(0x45e),{'children':_0x4a333d}),_0x428c06]});}const Ca={[_0x170c06['IS']]:_0x57c180(0x287),[_0x170c06[_0x57c180(0x1e4)]]:_0x57c180(0x2a9),[_0x170c06[_0x57c180(0x32a)]]:_0x57c180(0x3cb),[_0x170c06['NOT_CONTAINS']]:_0x57c180(0x492),[_0x170c06[_0x57c180(0x3e3)]]:'bases-dashboard-ui.operators.isEmpty',[_0x170c06['IS_NOT_EMPTY']]:_0x57c180(0x403),[_0x170c06['GREATER_THAN']]:_0x57c180(0x181),[_0x170c06['GREATER_THAN_OR_EQUAL']]:'bases-dashboard-ui.operators.greaterThanOrEqual',[_0x170c06['LESS_THAN']]:_0x57c180(0x2f1),[_0x170c06[_0x57c180(0x165)]]:_0x57c180(0x3f3),[_0x170c06['BEFORE']]:_0x57c180(0x274),[_0x170c06['AFTER']]:_0x57c180(0x311)};function wa({disabled:_0x1be8d5,fields:_0x316802,filter:_0xd1d59e,onChange:_0x5750e2}){const _0x2ae4f9=_0x57c180;let _0xc613c2=_0x3dc792(_0xc34a30),_0x42b608=(_0xd1d59e==null?void 0x0:_0xd1d59e[_0x2ae4f9(0x3cd)])??[];return _0x42b608[_0x2ae4f9(0x291)]?_0x1bfcde(_0x2ae4f9(0x332),{'className':'univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','children':_0x42b608[_0x2ae4f9(0x48c)]((_0x32048e,_0x2bbe97)=>{const _0x18c20b=_0x2ae4f9;let _0x228b0e=_0x316802['find'](_0x22e6e3=>_0x22e6e3['id']===_0x32048e[_0x18c20b(0x383)]);return _0x3fc05f(_0x18c20b(0x332),{'className':_0x18c20b(0x20b),'children':[_0x3fc05f(_0x18c20b(0x332),{'className':_0x18c20b(0x1f5),'children':[_0x1bfcde('span',{'className':_0x18c20b(0x24d),'children':(_0x228b0e==null?void 0x0:_0x228b0e['name'])??_0x32048e[_0x18c20b(0x383)]}),_0x1bfcde(_0x18c20b(0x45e),{'className':'univer-shrink-0\x20univer-rounded-full\x20univer-bg-gray-200\x20univer-px-2\x20univer-py-0.5\x20univer-text-xs\x20univer-text-gray-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-300','children':_0xc613c2['t'](Ca[_0x32048e[_0x18c20b(0x233)]])})]}),Ma(_0x32048e[_0x18c20b(0x233)])&&_0x1bfcde(Ea,{'disabled':_0x1be8d5,'field':_0x228b0e,'value':_0x32048e['operand'],'onChange':_0x4b4f82=>_0x5750e2(ka(_0xd1d59e,_0x2bbe97,{'operand':_0x4b4f82}))})]},Fa(_0x42b608,_0x32048e,_0x2bbe97));})}):_0x3fc05f(_0x2ae4f9(0x332),{'className':_0x2ae4f9(0x21f),'children':[_0x1bfcde(_0x3b1c88,{'className':_0x2ae4f9(0x3e8)}),_0x1bfcde(_0x2ae4f9(0x45e),{'className':_0x2ae4f9(0x15c),'children':_0xc613c2['t'](_0x2ae4f9(0x161))})]});}function Ta({fields:_0x139078,filter:_0x3dc87c,onChange:_0x2e6c30,onClear:_0x38d2ee}){const _0x498011=_0x57c180;let _0x168c8e=_0x3dc792(_0xc34a30),_0x4a7f52=(_0x3dc87c==null?void 0x0:_0x3dc87c[_0x498011(0x3cd)])??[];return _0x3fc05f(_0x498011(0x332),{'data-dashboard-filter-inspector':!0x0,'className':_0x498011(0x18b),'children':[_0x4a7f52[_0x498011(0x48c)]((_0x812d20,_0x260e35)=>{const _0x5c884a=_0x498011;let _0x11db1d=_0x139078[_0x5c884a(0x34b)](_0x18b997=>_0x18b997['id']===_0x812d20['fieldId'])??_0x139078[0x0],_0x1a37ab=Aa(_0x11db1d);return _0x3fc05f(_0x5c884a(0x1b4),{'className':_0x5c884a(0x39c),'children':[_0x3fc05f(_0x5c884a(0x332),{'className':_0x5c884a(0x28b),'children':[_0x1bfcde(_0x103c6a,{'value':_0x812d20['fieldId'],'options':_0x139078[_0x5c884a(0x48c)](_0x1233b4=>({'value':_0x1233b4['id'],'label':_0x1233b4['name']})),'onChange':_0x11fa9e=>{const _0x49b008=_0x5c884a;let _0x3f5fd1=_0x139078[_0x49b008(0x34b)](_0xbcc4a0=>_0xbcc4a0['id']===_0x11fa9e);if(!_0x3f5fd1)return;let _0x5f36b8=Aa(_0x3f5fd1)[0x0];_0x2e6c30(ka(_0x3dc87c,_0x260e35,Oa(_0x3f5fd1,_0x5f36b8)));}}),_0x1bfcde(_0x29df96,{'type':_0x5c884a(0x189),'variant':_0x5c884a(0x22e),'aria-label':_0x168c8e['t'](_0x5c884a(0x2c3)),'className':_0x5c884a(0x2a8),'onClick':()=>_0x2e6c30(Da(_0x3dc87c,_0x4a7f52[_0x5c884a(0x449)]((_0x224430,_0x42428d)=>_0x42428d!==_0x260e35))),'children':_0x1bfcde(_0x2967a2,{})})]}),_0x1bfcde(_0x103c6a,{'value':_0x812d20[_0x5c884a(0x233)],'options':_0x1a37ab[_0x5c884a(0x48c)](_0x3b2996=>({'value':_0x3b2996,'label':_0x168c8e['t'](Ca[_0x3b2996])})),'onChange':_0x4a5ad1=>{const _0x370e4d=_0x5c884a;let _0xc82a19=_0x1a37ab[_0x370e4d(0x34b)](_0x138852=>_0x138852===_0x4a5ad1);_0xc82a19&&_0x2e6c30(ka(_0x3dc87c,_0x260e35,{'operator':_0xc82a19,'operand':ja(_0x11db1d)}));}}),Ma(_0x812d20[_0x5c884a(0x233)])&&_0x1bfcde(Ea,{'field':_0x11db1d,'value':_0x812d20[_0x5c884a(0x482)],'onChange':_0x21f6f4=>_0x2e6c30(ka(_0x3dc87c,_0x260e35,{'operand':_0x21f6f4}))})]},Fa(_0x4a7f52,_0x812d20,_0x260e35));}),_0x3fc05f(_0x29df96,{'type':_0x498011(0x189),'variant':_0x498011(0x22e),'className':_0x498011(0x198),'disabled':!_0x139078[_0x498011(0x291)],'onClick':()=>{let _0x57edd9=_0x139078[0x0];if(!_0x57edd9)return;let _0x386372=Aa(_0x57edd9)[0x0];_0x2e6c30(Da(_0x3dc87c,[..._0x4a7f52,Oa(_0x57edd9,_0x386372)]));},'children':[_0x1bfcde(_0x5d1373,{}),_0x168c8e['t'](_0x498011(0x491))]}),_0x4a7f52['length']>0x0&&_0x1bfcde(_0x29df96,{'type':'button','variant':_0x498011(0x22e),'className':_0x498011(0x1f9),'onClick':_0x38d2ee,'children':_0x168c8e['t'](_0x498011(0x1e1))})]});}function Ea({disabled:_0x30ab94,field:_0x56ef56,onChange:_0x1d32b1,value:_0x4832cc}){const _0x12305b=_0x57c180;let _0x31541a=_0x3dc792(_0xc34a30),_0x81ab5a=_0x56ef56==null?void 0x0:_0x56ef56['type'];if(_0x81ab5a===_0x36d8a8[_0x12305b(0x3fc)]){let _0x591c7c=_0x4832cc===!0x0||_0x4832cc===_0x12305b(0x44f);return _0x3fc05f(_0x29df96,{'type':'button','variant':_0x12305b(0x450),'disabled':_0x30ab94,'className':'univer-w-full\x20univer-justify-start','onClick':()=>_0x1d32b1(!_0x591c7c),'children':[_0x1bfcde(_0x57ec08,{'checked':_0x591c7c,'disabled':_0x30ab94,'onChange':()=>void 0x0}),_0x591c7c?_0x31541a['t'](_0x12305b(0x2cc)):_0x31541a['t']('bases-dashboard-ui.dashboardInspector.unchecked')]});}return Ia(_0x81ab5a)?_0x30ab94?_0x1bfcde(_0x29df96,{'type':_0x12305b(0x189),'variant':_0x12305b(0x450),'className':_0x12305b(0x1f9),'disabled':!0x0,'children':_0x592859(_0x4832cc==null||_0x4832cc===''?void 0x0:String(_0x4832cc))[_0x12305b(0x23c)](_0x12305b(0x447))}):_0x1bfcde(_0x65183b,{'className':_0x12305b(0x1f9),'value':_0x592859(_0x4832cc==null||_0x4832cc===''?void 0x0:String(_0x4832cc))[_0x12305b(0x160)](),'onValueChange':_0x4ac6fc=>_0x1d32b1(_0x592859(_0x4ac6fc)[_0x12305b(0x23c)](_0x12305b(0x447)))}):Ra(_0x56ef56)?_0x1bfcde(_0x5ee40c,{'className':_0x12305b(0x1f9),'disabled':_0x30ab94,'value':Array[_0x12305b(0x268)](_0x4832cc)?_0x4832cc[_0x12305b(0x48c)](String):[],'options':Na(_0x56ef56),'onChange':_0x1d32b1}):_0x81ab5a===_0x36d8a8['SingleSelect']||_0x81ab5a===_0x36d8a8[_0x12305b(0x1fe)]||_0x81ab5a===_0x36d8a8[_0x12305b(0x17a)]?_0x1bfcde(_0x103c6a,{'className':'univer-w-full','disabled':_0x30ab94,'value':String(_0x4832cc??''),'options':[{'value':'','label':_0x31541a['t'](_0x12305b(0x270))},...Na(_0x56ef56)],'onChange':_0x1d32b1}):La(_0x81ab5a)?_0x1bfcde(_0x142183,{'className':_0x12305b(0x1f9),'allowEmpty':!0x0,'disabled':_0x30ab94,'value':Number[_0x12305b(0x281)](Number(_0x4832cc))?Number(_0x4832cc):null,'onChange':_0x394e5d=>_0x1d32b1(_0x394e5d??'')}):_0x1bfcde(_0x225487,{'disabled':_0x30ab94,'value':String(_0x4832cc??''),'placeholder':_0x31541a['t'](_0x12305b(0x390)),'onChange':_0x1d32b1});}function Da(_0x3ec8ac,_0x202e93){const _0x2dd5f7=_0x57c180;return{'conjunction':(_0x3ec8ac==null?void 0x0:_0x3ec8ac['conjunction'])??_0x26a62d[_0x2dd5f7(0x378)],'conditions':_0x202e93};}function Oa(_0x3ca048,_0x3d655c){return Ma(_0x3d655c)?{'fieldId':_0x3ca048['id'],'operator':_0x3d655c,'operand':ja(_0x3ca048)}:{'fieldId':_0x3ca048['id'],'operator':_0x3d655c};}function ka(_0x5f123f,_0x13264d,_0x27d7b0){const _0x4f1a49=_0x57c180;return Da(_0x5f123f,((_0x5f123f==null?void 0x0:_0x5f123f[_0x4f1a49(0x3cd)])??[])['map']((_0xa75213,_0x1db64e)=>_0x1db64e===_0x13264d?{..._0xa75213,..._0x27d7b0}:_0xa75213));}function Aa(_0x48bf38){const _0x38d56d=_0x57c180;let _0x5f2bc1=[_0x170c06[_0x38d56d(0x3e3)],_0x170c06[_0x38d56d(0x427)]];switch(_0x48bf38==null?void 0x0:_0x48bf38[_0x38d56d(0x498)]){case _0x36d8a8[_0x38d56d(0x3fb)]:case _0x36d8a8['Currency']:case _0x36d8a8[_0x38d56d(0x39d)]:case _0x36d8a8['Rating']:return[_0x170c06['IS'],_0x170c06[_0x38d56d(0x1e4)],_0x170c06['GREATER_THAN'],_0x170c06[_0x38d56d(0x402)],..._0x5f2bc1];case _0x36d8a8[_0x38d56d(0x1ca)]:case _0x36d8a8[_0x38d56d(0x231)]:case _0x36d8a8[_0x38d56d(0x232)]:return[_0x170c06['IS'],_0x170c06[_0x38d56d(0x1e4)],_0x170c06[_0x38d56d(0x260)],_0x170c06[_0x38d56d(0x46c)],..._0x5f2bc1];case _0x36d8a8[_0x38d56d(0x3fc)]:return[_0x170c06['IS'],_0x170c06['IS_NOT']];default:return[_0x170c06['IS'],_0x170c06[_0x38d56d(0x1e4)],_0x170c06[_0x38d56d(0x32a)],_0x170c06[_0x38d56d(0x2fb)],..._0x5f2bc1];}}function ja(_0x3793e0){const _0x415e2c=_0x57c180;return _0x3793e0?_0x3793e0['type']===_0x36d8a8[_0x415e2c(0x3fc)]?!0x1:Ia(_0x3793e0[_0x415e2c(0x498)])?_0x592859()[_0x415e2c(0x23c)](_0x415e2c(0x447)):Ra(_0x3793e0)?[]:'':'';}function Ma(_0x118ff5){const _0x24288d=_0x57c180;return _0x118ff5!==_0x170c06[_0x24288d(0x3e3)]&&_0x118ff5!==_0x170c06[_0x24288d(0x427)];}function Na(_0x3547c2){const _0x13f225=_0x57c180;var _0x1586ee;return(Array[_0x13f225(0x268)](_0x3547c2==null||(_0x1586ee=_0x3547c2[_0x13f225(0x163)])==null?void 0x0:_0x1586ee['options'])?_0x3547c2['config'][_0x13f225(0x35f)]:[])[_0x13f225(0x48c)]((_0x4f3643,_0x595828)=>{if(typeof _0x4f3643=='string')return{'label':_0x4f3643,'value':_0x4f3643};if(!Pa(_0x4f3643))return{'label':String(_0x595828+0x1),'value':String(_0x595828+0x1)};let _0x46791c=_0x4f3643,_0x2dffe7=String(_0x46791c['name']??_0x46791c['id']??_0x595828+0x1),_0x33709f=String(_0x46791c['id']??_0x2dffe7);return{'label':_0x2dffe7,'value':/^opt-\d+$/['test'](_0x33709f)?_0x2dffe7:_0x33709f};});}function Pa(_0x2542eb){const _0x21c98c=_0x57c180;return typeof _0x2542eb==_0x21c98c(0x177)&&!!_0x2542eb;}function Fa(_0x41cb7f,_0x5e5c33,_0x1b2dfc){const _0x59a732=_0x57c180;let _0x2920a4=JSON[_0x59a732(0x3a9)](_0x5e5c33);return _0x2920a4+'-'+_0x41cb7f['slice'](0x0,_0x1b2dfc)['filter'](_0x458f2d=>JSON[_0x59a732(0x3a9)](_0x458f2d)===_0x2920a4)[_0x59a732(0x291)];}function Ia(_0x1e3ad7){const _0x162364=_0x57c180;return _0x1e3ad7===_0x36d8a8['Date']||_0x1e3ad7===_0x36d8a8['CreatedAt']||_0x1e3ad7===_0x36d8a8[_0x162364(0x232)];}function La(_0x2c31a5){const _0x10ca8e=_0x57c180;return _0x2c31a5===_0x36d8a8['Number']||_0x2c31a5===_0x36d8a8[_0x10ca8e(0x218)]||_0x2c31a5===_0x36d8a8['Progress']||_0x2c31a5===_0x36d8a8['Rating'];}function Ra(_0x51997e){const _0x166a84=_0x57c180;var _0x511eb8;return(_0x51997e==null?void 0x0:_0x51997e['type'])===_0x36d8a8[_0x166a84(0x29c)]||(_0x51997e==null?void 0x0:_0x51997e['type'])===_0x36d8a8[_0x166a84(0x1fe)]||(_0x51997e==null?void 0x0:_0x51997e[_0x166a84(0x498)])===_0x36d8a8['Person']&&((_0x511eb8=_0x51997e[_0x166a84(0x163)])==null?void 0x0:_0x511eb8['allowMultiple'])===!0x0;}function za({base:_0x40a3e0,chartRuntime:_0x404974,onChange:_0x3884ed,onClose:_0x48651b,onSelectBackgroundImage:_0x548a7d,onSelectImage:_0x1c6c21,unitId:_0x3bbf49,widget:_0x4a18d5}){const _0x11f45e=_0x57c180;let _0x11dd8e=_0x3dc792(_0x20bf70),_0x10b9f4=_0x3dc792(_0xc34a30),_0x42ac73=_0x40a3e0['getSnapshot'](),_0x4a6bcf=_0x11f45e(0x31f)in _0x4a18d5?_0x42ac73[_0x11f45e(0x47e)][_0x4a18d5['tableId']]:void 0x0,_0xe46d19=_0x4a18d5[_0x11f45e(0x498)]===_0x925244['PivotChart']?_0x4a6bcf==null?void 0x0:_0x4a6bcf[_0x11f45e(0x46e)][_0x4a18d5[_0x11f45e(0x488)]]:void 0x0,_0xedd921=_0x10b9f4['t'](Ka(_0x4a18d5));return _0x3fc05f(_0x11f45e(0x351),{'data-dashboard-inspector':!0x0,'className':_0x11f45e(0x1a2),'children':[_0x3fc05f(_0x11f45e(0x356),{'className':'univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-px-4\x20dark:!univer-border-gray-700','children':[_0x1bfcde('h3',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0xedd921}),_0x1bfcde(_0x29df96,{'type':_0x11f45e(0x189),'size':_0x11f45e(0x3a6),'variant':_0x11f45e(0x22e),'aria-label':_0x10b9f4['t'](_0x11f45e(0x269)),'onClick':_0x48651b,'children':_0x1bfcde(_0x2967a2,{})})]}),_0x4a18d5[_0x11f45e(0x498)]===_0x925244['PivotChart']&&(Ga(_0xe46d19)&&_0x404974?_0x1bfcde(va,{'runtime':_0x404974,'sourceChart':_0xe46d19['config'][_0x11f45e(0x49c)],'sourceName':((_0x4a6bcf==null?void 0x0:_0x4a6bcf[_0x11f45e(0x3aa)])??'')+_0x11f45e(0x193)+_0xe46d19[_0x11f45e(0x3aa)],'widget':_0x4a18d5,'onChange':_0x3884ed,'onEditData':()=>{const _0x565936=_0x11f45e;_0x11dd8e[_0x565936(0x3fa)](_0x47e1b0['id'],{'unitId':_0x3bbf49,'tableId':_0x4a18d5['tableId'],'viewId':_0x4a18d5[_0x565936(0x488)]})[_0x565936(0x2cb)](()=>void 0x0);}}):_0x1bfcde(Ua,{'message':Ga(_0xe46d19)?_0x10b9f4['t'](_0x11f45e(0x267)):_0x10b9f4['t'](_0x11f45e(0x36f))})),_0x4a18d5[_0x11f45e(0x498)]===_0x925244['FormulaShape']&&_0x1bfcde(xa,{'base':_0x40a3e0,'widget':_0x4a18d5,'onChange':_0x3884ed,'onSelectBackgroundImage':_0x548a7d}),_0x4a18d5['type']===_0x925244[_0x11f45e(0x1fc)]&&_0x1bfcde(Va,{'base':_0x40a3e0,'onChange':_0x3884ed,'widget':_0x4a18d5}),_0x4a18d5[_0x11f45e(0x498)]===_0x925244[_0x11f45e(0x377)]&&_0x1bfcde(Ha,{'onChange':_0x3884ed,'widget':_0x4a18d5}),_0x4a18d5[_0x11f45e(0x498)]===_0x925244['Image']&&_0x1bfcde(Ba,{'onChange':_0x3884ed,'onSelectImage':_0x1c6c21,'widget':_0x4a18d5})]});}function Ba({onChange:_0x21d1d6,onSelectImage:_0xd6ad26,widget:_0x385448}){const _0x5aa66f=_0x57c180;let _0x5e92ec=_0x3dc792(_0xc34a30);return _0x3fc05f('div',{'className':_0x5aa66f(0x244),'children':[_0x3fc05f(_0x29df96,{'className':_0x5aa66f(0x1f9),'onClick':()=>_0xd6ad26()[_0x5aa66f(0x2bd)](_0x4566a7=>_0x4566a7&&_0x21d1d6({..._0x385448,'source':_0x4566a7[_0x5aa66f(0x153)],'sourceType':_0x4566a7[_0x5aa66f(0x407)],'alt':_0x4566a7[_0x5aa66f(0x3aa)]}))[_0x5aa66f(0x2cb)](()=>void 0x0),'children':[_0x1bfcde(_0x5d1373,{}),_0x5e92ec['t'](_0x5aa66f(0x490))]}),_0x3fc05f(_0x5aa66f(0x372),{'className':_0x5aa66f(0x307),'children':[_0x1bfcde(_0x5aa66f(0x45e),{'children':_0x5e92ec['t'](_0x5aa66f(0x2b3))}),_0x1bfcde(_0x9bce40,{'items':[{'value':_0x5aa66f(0x3a5),'label':_0x5e92ec['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x5aa66f(0x32c),'label':_0x5e92ec['t']('bases-dashboard-ui.dashboardInspector.repeat')},{'value':_0x5aa66f(0x259),'label':_0x5e92ec['t'](_0x5aa66f(0x400))}],'value':_0x385448[_0x5aa66f(0x36d)]??_0x5aa66f(0x3a5),'onChange':_0x803547=>_0x21d1d6({..._0x385448,'displayMode':_0x803547})[_0x5aa66f(0x2cb)](()=>void 0x0)})]})]});}function Va({base:_0xdca773,onChange:_0x3b504e,widget:_0x19d706}){const _0x3d038e=_0x57c180;let _0x50d069=_0xdca773[_0x3d038e(0x257)]()[_0x3d038e(0x47e)][_0x19d706[_0x3d038e(0x31f)]],_0x2211ef=_0x50d069==null?void 0x0:_0x50d069[_0x3d038e(0x3d3)]['find'](_0x4dabd5=>_0x50d069[_0x3d038e(0x46e)][_0x4dabd5]),_0x2c58e6=_0x2211ef?_0x50d069==null?void 0x0:_0x50d069['views'][_0x2211ef]:void 0x0,_0x3277b0=_0x50d069&&_0x2c58e6?_0x20d50d(_0x50d069,_0x2c58e6):[];return _0x1bfcde(Ta,{'fields':_0x3277b0,'filter':_0x19d706[_0x3d038e(0x449)],'onChange':_0x11b53c=>_0x3b504e({..._0x19d706,'filter':_0x11b53c})[_0x3d038e(0x2cb)](()=>void 0x0),'onClear':()=>_0x3b504e({..._0x19d706,'filter':null})[_0x3d038e(0x2cb)](()=>void 0x0)});}function Ha({onChange:_0xee419e,widget:_0x5d8ef8}){const _0x26fecf=_0x57c180;let _0x169fbb=_0x3dc792(_0xc34a30),_0x40aa83=_0x3dc792(_0x2f0481),_0x2c9c1b=_0x1cdd28(()=>_0x40aa83['currentTheme$'],_0x40aa83[_0x26fecf(0x284)](),!0x1,[_0x40aa83]),_0x413790=Br(_0x5d8ef8),_0x4cacc3=_0x470f87=>_0xee419e({..._0x5d8ef8,'appearance':{..._0x413790,..._0x470f87}})['catch'](()=>void 0x0);return _0x3fc05f('div',{'className':'univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','children':[_0x1bfcde(_0x98f9d1,{'defaultValue':Vr(_0x5d8ef8['document']),'rows':0x8,'onBlur':_0x2d8f69=>_0xee419e({..._0x5d8ef8,'document':Hr(_0x5d8ef8[_0x26fecf(0x3c8)],_0x2d8f69['target']['value'])})[_0x26fecf(0x2cb)](()=>void 0x0)}),_0x1bfcde(_0x14a84b,{'emptyLabel':_0x169fbb['t'](_0x26fecf(0x3b0)),'label':_0x169fbb['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x2c9c1b[_0x26fecf(0x387)][0x0],'resetLabel':_0x169fbb['t'](_0x26fecf(0x459)),'value':_0x413790[_0x26fecf(0x26f)]??null,'onChange':_0x1144fd=>_0x4cacc3({'backgroundColor':_0x1144fd??void 0x0})}),_0x1bfcde(_0x14a84b,{'emptyLabel':_0x169fbb['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x169fbb['t'](_0x26fecf(0x354)),'pickerFallbackValue':_0x2c9c1b['gray'][0x3e8],'resetLabel':_0x169fbb['t'](_0x26fecf(0x459)),'value':_0x413790[_0x26fecf(0x386)]??null,'onChange':_0x39fe22=>_0x4cacc3({'textColor':_0x39fe22??void 0x0})}),_0x1bfcde(Wa,{'label':_0x169fbb['t'](_0x26fecf(0x1aa)),'children':_0x1bfcde(_0x9bce40,{'items':[{'value':'left','label':_0x169fbb['t'](_0x26fecf(0x26e))},{'value':_0x26fecf(0x28e),'label':_0x169fbb['t'](_0x26fecf(0x3e2))},{'value':'right','label':_0x169fbb['t'](_0x26fecf(0x349))}],'value':_0x413790[_0x26fecf(0x283)],'onChange':_0x5412a1=>_0x4cacc3({'alignment':_0x5412a1})})}),_0x3fc05f(Wa,{'label':_0x169fbb['t']('bases-dashboard-ui.dashboardInspector.textSize'),'children':[_0x1bfcde(_0x9bce40,{'items':[{'value':'auto','label':_0x169fbb['t'](_0x26fecf(0x2a7))},{'value':'custom','label':_0x169fbb['t'](_0x26fecf(0x1f3))}],'value':_0x413790[_0x26fecf(0x204)],'onChange':_0x4b3cbf=>_0x4cacc3({'fontSizeMode':_0x4b3cbf})}),_0x413790[_0x26fecf(0x204)]===_0x26fecf(0x29e)&&_0x1bfcde(_0x142183,{'className':'univer-mt-2','min':0xa,'max':0x78,'value':_0x413790['fontSize'],'onChange':_0x586d23=>_0x4cacc3({'fontSize':_0x586d23??0x12,'fontSizeMode':'custom'})})]})]});}function Ua({message:_0x51b711}){const _0x382c78=_0x57c180;return _0x1bfcde(_0x382c78(0x332),{'className':_0x382c78(0x3a0),'children':_0x51b711});}function Wa({children:_0x374cd3,label:_0x2d7da7}){const _0xaa15e2=_0x57c180;return _0x3fc05f(_0xaa15e2(0x332),{'role':_0xaa15e2(0x208),'aria-':!0x0,'className':_0xaa15e2(0x307),'children':[_0x1bfcde(_0xaa15e2(0x45e),{'children':_0x2d7da7}),_0x374cd3]});}function Ga(_0x1aff52){const _0xd2c244=_0x57c180;return(_0x1aff52==null?void 0x0:_0x1aff52[_0xd2c244(0x498)])===_0x4e046d[_0xd2c244(0x496)]&&typeof _0x1aff52[_0xd2c244(0x163)]==_0xd2c244(0x177)&&_0x1aff52[_0xd2c244(0x163)]!==null&&_0xd2c244(0x3b9)in _0x1aff52[_0xd2c244(0x163)]&&'chart'in _0x1aff52[_0xd2c244(0x163)];}function Ka(_0x51d2f8){const _0x1fda60=_0x57c180;switch(_0x51d2f8[_0x1fda60(0x498)]){case _0x925244[_0x1fda60(0x404)]:return'bases-dashboard-ui.dashboard.pivotChart';case _0x925244[_0x1fda60(0x1fc)]:return _0x1fda60(0x161);case _0x925244[_0x1fda60(0x377)]:return _0x1fda60(0x467);case _0x925244[_0x1fda60(0x37d)]:return _0x1fda60(0x431);case _0x925244[_0x1fda60(0x1a9)]:return _0x1fda60(0x4a7);}}function qa({onDelete:_0x396d21,onEdit:_0xe3d488}){const _0x5f3eba=_0x57c180;let _0x369bac=_0x3dc792(_0xc34a30),_0x477217=_0x369bac['t'](_0x5f3eba(0x47f)),_0x353438=_0x369bac['t'](_0x5f3eba(0x3df)),_0x183af9=_0x369bac['t'](_0x5f3eba(0x2ca));return _0x1bfcde(_0x1f43a4,{'items':[{'type':_0x5f3eba(0x224),'children':_0x3fc05f(_0x5f3eba(0x45e),{'className':_0x5f3eba(0x3f2),'children':[_0x1bfcde(_0x473cd9,{'className':_0x5f3eba(0x375),'aria-hidden':_0x5f3eba(0x44f)}),_0x1bfcde(_0x5f3eba(0x45e),{'children':_0x477217})]}),'onSelect':_0xe3d488},{'type':'separator'},{'type':_0x5f3eba(0x224),'variant':_0x5f3eba(0x36e),'children':_0x3fc05f(_0x5f3eba(0x45e),{'className':_0x5f3eba(0x3f2),'children':[_0x1bfcde(_0x4e3f72,{'className':_0x5f3eba(0x375),'aria-hidden':_0x5f3eba(0x44f)}),_0x1bfcde('span',{'children':_0x353438})]}),'onSelect':_0x396d21}],'children':_0x1bfcde(_0x29df96,{'type':_0x5f3eba(0x189),'size':_0x5f3eba(0x3a6),'variant':'text','title':_0x183af9,'aria-label':_0x183af9,'className':_0x5f3eba(0x329),'children':_0x1bfcde(_0x5e1024,{'className':_0x5f3eba(0x375),'aria-hidden':'true'})})});}function Ja({dashboardId:_0xacd42,presentation:_0x277e22=!0x1,unitId:_0x1d14d7}){const _0x2cadbe=_0x57c180;let _0x111af2=_0x3dc792(_0x20bf70),_0x10f848=_0x3dc792(_0x366739),_0x4c4a19=_0x3dc792(_0x26f888),_0x4e674b=_0x3dc792(_0xfa1040),_0x32190d=_0x3dc792(_0xc34a30),_0x550c5d=_0x3dc792(_0x1e99fb),_0x3ec1a8=_0x3dc792(_0x21d906),_0xb7cece=_0x26ca56(null),[_0x118ec9,_0x13ff8d]=_0x155c41(!0x1),[_0x1c167f,_0x57ad6d]=_0x155c41(),[_0x4f9cef,_0x4dad17]=_0x155c41(!0x1),[_0x22578e,_0x505035]=_0x155c41(()=>new Map()),_0x1bc81d=_0xd5c68e((_0x3ad2e9,_0x138c43)=>{_0x505035(_0x41d875=>{const _0x3f7a50=_0x44d8;let _0x3f6134=new Map(_0x41d875);return _0x138c43?_0x3f6134[_0x3f7a50(0x33a)](_0x3ad2e9,_0x138c43):_0x3f6134[_0x3f7a50(0x33f)](_0x3ad2e9),_0x3f6134;});},[]),_0x3fc8c5=_0x1cdd28(()=>_0x550c5d['change$']['pipe'](_0x3b1cb4(()=>_0x550c5d[_0x2cadbe(0x325)](_0x1d14d7,_0xacd42))),_0x550c5d[_0x2cadbe(0x325)](_0x1d14d7,_0xacd42),!0x1,[_0xacd42,_0x550c5d,_0x1d14d7]),_0x13d885=_0x4e674b[_0x2cadbe(0x2ee)](_0x1d14d7,_0x1be7ab[_0x2cadbe(0x360)]),_0xeae169=_0x1cdd28(()=>_0x3ec1a8[_0x2cadbe(0x316)],{'undos':0x0,'redos':0x0},!0x1,[_0x3ec1a8]),_0x12bd0c=gr(_0x1d14d7,_0xacd42);if(_0x5a872b(()=>{const _0x41b981=_0x2cadbe;_0x4e674b[_0x41b981(0x350)](_0x1d14d7),_0x4e674b[_0x41b981(0x1e9)](_0x1d14d7);},[_0x4e674b,_0x1d14d7]),_0x5a872b(()=>{const _0xa138cc=_0x2cadbe;let _0x58ece6=_0xb7cece[_0xa138cc(0x18a)],_0x5c7420=_0x58ece6==null?void 0x0:_0x58ece6[_0xa138cc(0x3af)];if(!_0x58ece6||!_0x5c7420)return;let _0x13f4d2=()=>_0x4dad17(_0x5c7420[_0xa138cc(0x28c)]===_0x5c7420[_0xa138cc(0x42b)]),_0x1b8bd2=_0x329236=>{const _0xa586c1=_0xa138cc;_0x329236[_0xa586c1(0x3d8)]==='Escape'&&!_0x329236['defaultPrevented']&&_0x5c7420['fullscreenElement']===_0x5c7420[_0xa586c1(0x42b)]&&_0x5c7420[_0xa586c1(0x2c2)]()[_0xa586c1(0x2cb)](_0x13f4d2);};return _0x5c7420['addEventListener'](_0xa138cc(0x292),_0x13f4d2),_0x5c7420['addEventListener']('keydown',_0x1b8bd2),()=>{const _0xca43cd=_0xa138cc;_0x5c7420[_0xca43cd(0x3ec)]('fullscreenchange',_0x13f4d2),_0x5c7420[_0xca43cd(0x3ec)](_0xca43cd(0x37c),_0x1b8bd2);};},[]),!_0x3fc8c5||!_0x13d885)return null;let _0x5aa72c=_0x574832=>_0x111af2[_0x2cadbe(0x3fa)](_0x5a7b78['id'],{'unitId':_0x1d14d7,'dashboardId':_0xacd42,'widget':_0x574832})[_0x2cadbe(0x2cb)](()=>void 0x0),_0xd28d1f=(_0x5ce7ef,_0x4405b3,_0x4d147f)=>{const _0x5af714=_0x2cadbe;let _0x420d09=Math[_0x5af714(0x203)](0x0,..._0x3fc8c5['widgetOrder'][_0x5af714(0x21e)](_0x5126d0=>{const _0x3d89d6=_0x5af714;var _0x560e2c;let _0x100865=(_0x560e2c=_0x3fc8c5[_0x3d89d6(0x1d3)][_0x5126d0])==null?void 0x0:_0x560e2c[_0x3d89d6(0x424)];return _0x100865?[_0x100865[_0x3d89d6(0x293)]+_0x100865[_0x3d89d6(0x17c)]]:[];})),_0x20db75=_0x5af714(0x47d)+_0x2bbf35(0x8),_0x4adb21={'column':0x0,'row':_0x420d09,'columnSpan':_0x4405b3,'rowSpan':_0x4d147f};switch(_0x5ce7ef[_0x5af714(0x498)]){case _0x925244['PivotChart']:return _0x5aa72c({..._0x5ce7ef,'id':_0x20db75,'layout':_0x4adb21});case _0x925244[_0x5af714(0x1fc)]:return _0x5aa72c({..._0x5ce7ef,'id':_0x20db75,'layout':_0x4adb21});case _0x925244['Text']:return _0x5aa72c({..._0x5ce7ef,'id':_0x20db75,'layout':_0x4adb21});case _0x925244[_0x5af714(0x37d)]:return _0x5aa72c({..._0x5ce7ef,'id':_0x20db75,'layout':_0x4adb21});case _0x925244[_0x5af714(0x1a9)]:return _0x5aa72c({..._0x5ce7ef,'id':_0x20db75,'layout':_0x4adb21});}},_0x1e9589=_0x13d885[_0x2cadbe(0x257)](),_0x32e48f=_0x1e9589[_0x2cadbe(0x1a0)][_0x2cadbe(0x21e)](_0x673db2=>{const _0xaeb9b6=_0x2cadbe;let _0x38c94a=_0x1e9589[_0xaeb9b6(0x47e)][_0x673db2];if(!_0x38c94a)return[];let _0x582ba5=_0x38c94a['viewOrder'][_0xaeb9b6(0x21e)](_0x9161b2=>{const _0x356cb7=_0xaeb9b6;let _0x2f2bb7=_0x38c94a[_0x356cb7(0x46e)][_0x9161b2];return no(_0x2f2bb7)?[{'type':_0x356cb7(0x224),'children':_0x2f2bb7[_0x356cb7(0x3aa)],'onSelect':()=>_0xd28d1f({'type':_0x925244[_0x356cb7(0x404)],'tableId':_0x673db2,'pivotViewId':_0x9161b2,'chart':{..._0x2f2bb7['config'][_0x356cb7(0x49c)]}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0x38c94a[_0xaeb9b6(0x3aa)],'options':[..._0x582ba5,..._0x582ba5['length']?[{'type':'separator'}]:[],{'type':_0xaeb9b6(0x224),'children':_0x32190d['t'](_0xaeb9b6(0x161)),'onSelect':()=>_0xd28d1f({'type':_0x925244[_0xaeb9b6(0x1fc)],'tableId':_0x673db2,'filter':null},0x6,0x8)}]}];}),_0xb09241=[..._0x32e48f,..._0x32e48f[_0x2cadbe(0x291)]?[{'type':_0x2cadbe(0x168)}]:[],{'type':_0x2cadbe(0x224),'children':_0x32190d['t'](_0x2cadbe(0x467)),'onSelect':()=>_0xd28d1f({'type':_0x925244[_0x2cadbe(0x377)],'document':Qa()},0x4,0x6)},{'type':_0x2cadbe(0x224),'children':_0x32190d['t'](_0x2cadbe(0x431)),'onSelect':()=>$a(_0x10f848)[_0x2cadbe(0x2bd)](_0x1a0741=>_0x1a0741&&_0xd28d1f({'type':_0x925244[_0x2cadbe(0x37d)],'source':_0x1a0741['source'],'sourceType':_0x1a0741[_0x2cadbe(0x407)],'alt':_0x1a0741[_0x2cadbe(0x3aa)],'displayMode':_0x2cadbe(0x3a5)},0x4,0x6))},{'type':_0x2cadbe(0x224),'children':_0x32190d['t'](_0x2cadbe(0x4a7)),'onSelect':()=>{const _0xb8ea24=_0x2cadbe;let _0x5e7be5=_0x1e9589[_0xb8ea24(0x1a0)][_0xb8ea24(0x34b)](_0xa7a326=>_0x1e9589[_0xb8ea24(0x47e)][_0xa7a326]);_0x5e7be5&&_0xd28d1f({'type':_0x925244[_0xb8ea24(0x1a9)],'tableId':_0x5e7be5,'shapeType':_0x54b8df[_0xb8ea24(0x39a)],'shapeData':_0x46c966(),'description':_0x32190d['t'](_0xb8ea24(0x4a7))},0x4,0x6);}}],_0x1cbfea=_0x1c167f?_0x3fc8c5[_0x2cadbe(0x1d3)][_0x1c167f]:void 0x0,_0x216241=async()=>{const _0x4ee4ed=_0x2cadbe;let _0x516e5d=_0xb7cece[_0x4ee4ed(0x18a)];if(!_0x516e5d)return;let _0x1c587d=_0x516e5d[_0x4ee4ed(0x3af)];if(_0x1c587d['fullscreenElement']===_0x1c587d['documentElement']){await _0x1c587d['exitFullscreen']();return;}await _0x1c587d[_0x4ee4ed(0x42b)][_0x4ee4ed(0x312)]();},_0xfa4155=_0x277e22||_0x4f9cef,_0x473924=_0x12bd0c&&!_0xfa4155;return _0x3fc05f(_0x2cadbe(0x332),{'ref':_0xb7cece,'className':_0x2cadbe(0x19b)+(_0x4f9cef?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':_0x2cadbe(0x2f3))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[!_0xfa4155&&_0x3fc05f(_0x2cadbe(0x356),{'className':_0x2cadbe(0x27d),'children':[_0x1bfcde(_0x54efa1,{'className':_0x2cadbe(0x1be)}),_0x1bfcde('h2',{'className':_0x2cadbe(0x1c3),'children':_0x3fc8c5[_0x2cadbe(0x3aa)]}),_0x1bfcde(_0x4603f1,{'target':{'unitId':_0x1d14d7,'objectId':_0x23d43e(_0xacd42),'objectType':_0x368318[_0x2cadbe(0x240)]},'name':_0x3fc8c5['name'],'commandId':_0x2a9b6a['id'],'exists':()=>!!_0x550c5d[_0x2cadbe(0x325)](_0x1d14d7,_0xacd42)},_0x1d14d7+'/'+_0xacd42),_0x1bfcde(_0xf99d34,{'unitId':_0x1d14d7}),_0x1bfcde(_0x29df96,{'type':_0x2cadbe(0x189),'size':_0x2cadbe(0x3a6),'variant':'text','aria-label':_0x32190d['t'](_0x2cadbe(0x23b)),'disabled':!_0x12bd0c||_0xeae169['undos']===0x0,'onClick':()=>_0x111af2['executeCommand'](_0x114bc6['id'])[_0x2cadbe(0x2cb)](()=>void 0x0),'children':_0x1bfcde(_0x1d73f1,{})}),_0x1bfcde(_0x29df96,{'type':_0x2cadbe(0x189),'size':_0x2cadbe(0x3a6),'variant':'text','aria-label':_0x32190d['t'](_0x2cadbe(0x352)),'disabled':!_0x12bd0c||_0xeae169['redos']===0x0,'onClick':()=>_0x111af2['executeCommand'](_0x409470['id'])[_0x2cadbe(0x2cb)](()=>void 0x0),'children':_0x1bfcde(_0x9460ca,{})}),_0x1bfcde(_0x29df96,{'type':_0x2cadbe(0x189),'size':_0x2cadbe(0x3a6),'variant':_0x2cadbe(0x22e),'aria-label':_0x32190d['t'](_0x2cadbe(0x1a3)),'onClick':()=>_0x216241()[_0x2cadbe(0x2cb)](()=>void 0x0),'children':_0x1bfcde(_0x7dfdc8,{})}),_0x1bfcde(_0x1f43a4,{'items':_0xb09241,'children':_0x3fc05f(_0x29df96,{'variant':_0x2cadbe(0x230),'disabled':!_0x12bd0c,'children':[_0x1bfcde(_0x5d1373,{}),_0x32190d['t'](_0x2cadbe(0x479))]})})]}),_0x3fc05f(_0x2cadbe(0x332),{'className':_0x2cadbe(0x32d),'children':[_0x1bfcde(_0x2cadbe(0x332),{'className':'univer-min-w-0\x20univer-flex-1','children':_0x1bfcde(la,{'dashboard':_0x3fc8c5,'dragLabel':_0x32190d['t'](_0x2cadbe(0x183)),'editable':_0x473924,'resizeLabel':_0x32190d['t'](_0x2cadbe(0x182)),'widgetLabel':_0x8d8cad=>_0x32190d['t'](to(_0x8d8cad['type'])),'selectedWidgetId':_0x473924?_0x1c167f:void 0x0,'onSelectWidget':_0x473924?_0x1f2cee=>{_0x57ad6d(_0x1f2cee),_0x1f2cee||_0x13ff8d(!0x1);}:void 0x0,'onLayoutsCommit':_0x1f0994=>{const _0x43f91a=_0x2cadbe;let _0x4e509b={..._0x3fc8c5[_0x43f91a(0x1d3)]};_0x1f0994[_0x43f91a(0x201)]((_0x3f227d,_0xe98b46)=>{let _0x917826=_0x4e509b[_0xe98b46];_0x917826&&(_0x4e509b[_0xe98b46]={..._0x917826,'layout':_0x3f227d});}),_0x111af2[_0x43f91a(0x3fa)](_0x16ed85['id'],{'unitId':_0x1d14d7,'dashboard':{..._0x3fc8c5,'widgets':_0x4e509b}})[_0x43f91a(0x2cb)](()=>void 0x0);},'renderWidget':_0x2ffbe9=>_0x1bfcde(Ya,{'base':_0x13d885,'dashboard':_0x3fc8c5,'unitId':_0x1d14d7,'widget':_0x2ffbe9,'onChange':_0x5aa72c,'onChartRuntimeChange':_0x1bc81d}),'renderWidgetActions':_0x26b0be=>_0x1bfcde(qa,{'onEdit':()=>{_0x57ad6d(_0x26b0be['id']),_0x13ff8d(!0x0);},'onDelete':()=>{const _0x5aeab1=_0x2cadbe;_0x1c167f===_0x26b0be['id']&&(_0x57ad6d(void 0x0),_0x13ff8d(!0x1)),_0x111af2[_0x5aeab1(0x3fa)](_0x6dd3ea['id'],{'unitId':_0x1d14d7,'dashboardId':_0xacd42,'widgetId':_0x26b0be['id']})[_0x5aeab1(0x2cb)](()=>void 0x0);}})})}),_0x473924&&_0x118ec9&&_0x1cbfea&&_0x1bfcde(za,{'base':_0x13d885,'chartRuntime':_0x22578e[_0x2cadbe(0x392)](_0x1cbfea['id']),'unitId':_0x1d14d7,'widget':_0x1cbfea,'onChange':_0x5aa72c,'onClose':()=>_0x13ff8d(!0x1),'onSelectBackgroundImage':()=>eo(_0x4c4a19),'onSelectImage':()=>$a(_0x10f848)})]})]});}function Ya({base:_0x2c3e9b,dashboard:_0x3453e1,onChange:_0x2b3fc9,onChartRuntimeChange:_0x2eeb51,unitId:_0x1c1414,widget:_0x40a587}){const _0x51078d=_0x57c180;let _0x12ee03=_0x4561c2(()=>_0x3453e1[_0x51078d(0x396)][_0x51078d(0x21e)](_0x505e36=>{const _0x801a9d=_0x51078d;let _0x1cb9bb=_0x3453e1['widgets'][_0x505e36];return(_0x1cb9bb==null?void 0x0:_0x1cb9bb[_0x801a9d(0x498)])===_0x925244[_0x801a9d(0x1fc)]&&_0x1cb9bb[_0x801a9d(0x31f)]===(_0x801a9d(0x31f)in _0x40a587?_0x40a587[_0x801a9d(0x31f)]:'')&&_0x1cb9bb[_0x801a9d(0x449)]?[_0x1cb9bb['filter']]:[];}),[_0x3453e1,_0x40a587]);switch(_0x40a587[_0x51078d(0x498)]){case _0x925244[_0x51078d(0x404)]:return _0x1bfcde(Lr,{'filters':_0x12ee03,'unitId':_0x1c1414,'widget':_0x40a587,'onRuntimeChange':_0x2eeb51});case _0x925244[_0x51078d(0x1fc)]:return _0x1bfcde(wa,{'fields':Xa(_0x2c3e9b,_0x40a587[_0x51078d(0x31f)]),'filter':_0x40a587[_0x51078d(0x449)],'onChange':_0x24c9a7=>_0x2b3fc9({..._0x40a587,'filter':_0x24c9a7})[_0x51078d(0x2cb)](()=>void 0x0)});case _0x925244[_0x51078d(0x377)]:return _0x1bfcde(Ur,{'widget':_0x40a587});case _0x925244[_0x51078d(0x37d)]:return _0x1bfcde(Za,{'widget':_0x40a587});case _0x925244[_0x51078d(0x1a9)]:return _0x1bfcde(Dr,{'dashboardId':_0x3453e1['id'],'unitId':_0x1c1414,'widget':_0x40a587});}}function Xa(_0x1f2645,_0x1ccd6a){const _0x399d7b=_0x57c180;let _0x1a6f9d=_0x1f2645['getSnapshot']()[_0x399d7b(0x47e)][_0x1ccd6a],_0x232b4c=_0x1a6f9d==null?void 0x0:_0x1a6f9d[_0x399d7b(0x3d3)][_0x399d7b(0x34b)](_0x4e49e7=>_0x1a6f9d[_0x399d7b(0x46e)][_0x4e49e7]),_0x12fc54=_0x232b4c?_0x1a6f9d==null?void 0x0:_0x1a6f9d[_0x399d7b(0x46e)][_0x232b4c]:void 0x0;return _0x1a6f9d&&_0x12fc54?_0x20d50d(_0x1a6f9d,_0x12fc54):[];}function Za({widget:_0x5557fb}){const _0x8f665b=_0x57c180;let _0x46f32c=_0x3dc792(_0x366739),[_0x369966,_0x2548dc]=_0x155c41(_0x5557fb[_0x8f665b(0x407)]===_0x2e9f9a['UUID']?'':_0x5557fb[_0x8f665b(0x153)]);return _0x5a872b(()=>{const _0x5d8f15=_0x8f665b;let _0x2a6ceb=!0x0;return _0x46f32c[_0x5d8f15(0x1df)](_0x5557fb['source'],_0x5557fb[_0x5d8f15(0x407)])[_0x5d8f15(0x2bd)](_0x41beb6=>{_0x2a6ceb&&_0x2548dc(_0x41beb6);})['catch'](()=>void 0x0),()=>{_0x2a6ceb=!0x1;};},[_0x46f32c,_0x5557fb[_0x8f665b(0x153)],_0x5557fb['sourceType']]),_0x369966?_0x1bfcde('div',{'role':_0x5557fb[_0x8f665b(0x335)]?_0x8f665b(0x241):void 0x0,'aria-label':_0x5557fb['alt']||void 0x0,'data-dashboard-image':_0x5557fb['id'],'className':'univer-h-full\x20univer-w-full\x20univer-bg-transparent','style':vr(_0x369966,_0x5557fb[_0x8f665b(0x36d)])}):null;}function Qa(){let _0x5f4b94=_0x1d37b5(new Set());return{'id':'dashboard-text-'+_0x2bbf35(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x5f4b94}]},'documentStyle':{}};}function $a(_0x2ded1a){return new Promise(_0xf068ca=>{const _0x3f11b0=_0x44d8;let _0x3cf0a3=document['createElement'](_0x3f11b0(0x1c8));_0x3cf0a3['type']=_0x3f11b0(0x205),_0x3cf0a3[_0x3f11b0(0x477)]=_0x3f11b0(0x483),_0x3cf0a3['addEventListener'](_0x3f11b0(0x2d0),()=>{const _0x17ca35=_0x3f11b0;var _0xad8481;let _0x209796=(_0xad8481=_0x3cf0a3[_0x17ca35(0x2d4)])==null?void 0x0:_0xad8481[0x0];if(!_0x209796){_0xf068ca(null);return;}_0x2ded1a[_0x17ca35(0x3ce)](_0x209796)['then'](_0x46c44c=>{const _0x296b64=_0x17ca35;if(!_0x46c44c[_0x296b64(0x153)]||_0x46c44c[_0x296b64(0x407)]===void 0x0){_0xf068ca(null);return;}_0xf068ca({'name':_0x46c44c['name'],'source':_0x46c44c['source'],'sourceType':_0x46c44c[_0x296b64(0x407)]});})[_0x17ca35(0x2cb)](()=>_0xf068ca(null));},{'once':!0x0}),_0x3cf0a3[_0x3f11b0(0x1d7)]();});}function eo(_0x301e75){return new Promise(_0x6d71ce=>{const _0x1e315c=_0x44d8;let _0x23ff7f=document['createElement'](_0x1e315c(0x1c8));_0x23ff7f[_0x1e315c(0x498)]=_0x1e315c(0x205),_0x23ff7f[_0x1e315c(0x477)]=_0x1e315c(0x483),_0x23ff7f[_0x1e315c(0x306)](_0x1e315c(0x2d0),()=>{const _0x4675b9=_0x1e315c;var _0x3a9f34;let _0x484e76=(_0x3a9f34=_0x23ff7f['files'])==null?void 0x0:_0x3a9f34[0x0];if(!_0x484e76){_0x6d71ce(null);return;}_0x301e75[_0x4675b9(0x1e3)](_0x484e76)['then'](_0x32712c=>{const _0x38cd00=_0x4675b9;if(!(_0x32712c!=null&&_0x32712c[_0x38cd00(0x153)])){_0x6d71ce(null);return;}if(_0x32712c[_0x38cd00(0x2d9)]){let _0x5851ab=new Image();_0x5851ab['src']=_0x32712c[_0x38cd00(0x2d9)],_0x301e75[_0x38cd00(0x176)](_0x32712c[_0x38cd00(0x153)],_0x32712c[_0x38cd00(0x2ae)],_0x5851ab);}_0x6d71ce({'source':_0x32712c[_0x38cd00(0x153)],'sourceType':_0x32712c[_0x38cd00(0x2ae)]});})[_0x4675b9(0x2cb)](()=>_0x6d71ce(null));},{'once':!0x0}),_0x23ff7f['click']();});}function to(_0x4dae3e){const _0x1dfc72=_0x57c180;switch(_0x4dae3e){case _0x925244[_0x1dfc72(0x404)]:return _0x1dfc72(0x245);case _0x925244['TableFilter']:return _0x1dfc72(0x161);case _0x925244[_0x1dfc72(0x377)]:return _0x1dfc72(0x467);case _0x925244[_0x1dfc72(0x37d)]:return'bases-dashboard-ui.dashboard.image';case _0x925244[_0x1dfc72(0x1a9)]:return _0x1dfc72(0x4a7);}}function no(_0x1bec49){const _0x31c0bc=_0x57c180;return(_0x1bec49==null?void 0x0:_0x1bec49[_0x31c0bc(0x498)])===_0x4e046d['Pivot']&&typeof _0x1bec49['config']==_0x31c0bc(0x177)&&_0x1bec49[_0x31c0bc(0x163)]!==null&&_0x31c0bc(0x3b9)in _0x1bec49[_0x31c0bc(0x163)]&&_0x31c0bc(0x49c)in _0x1bec49[_0x31c0bc(0x163)];}const ro=[{'area':_0x3881d5[_0x57c180(0x3db)],'key':_0x57c180(0x174),'label':_0x57c180(0x3d6)},{'area':_0x3881d5[_0x57c180(0x438)],'key':_0x57c180(0x1ce),'label':_0x57c180(0x1cf)},{'area':_0x3881d5[_0x57c180(0x1ba)],'key':_0x57c180(0x2b5),'label':_0x57c180(0x1d5)},{'area':_0x3881d5['Value'],'key':'valueFields','label':_0x57c180(0x2a2)}],io=[{'value':_0x48c6be[_0x57c180(0x45d)],'localeKey':_0x57c180(0x34d)},{'value':_0x48c6be[_0x57c180(0x41d)],'localeKey':_0x57c180(0x432)},{'value':_0x48c6be[_0x57c180(0x2ec)],'localeKey':_0x57c180(0x3ea)},{'value':_0x48c6be[_0x57c180(0x394)],'localeKey':_0x57c180(0x1dd)},{'value':_0x48c6be[_0x57c180(0x203)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':_0x48c6be[_0x57c180(0x295)],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x48c6be[_0x57c180(0x3ad)],'localeKey':_0x57c180(0x276)},{'value':_0x48c6be[_0x57c180(0x15b)],'localeKey':_0x57c180(0x197)},{'value':_0x48c6be[_0x57c180(0x19d)],'localeKey':_0x57c180(0x1cd)},{'value':_0x48c6be[_0x57c180(0x33c)],'localeKey':_0x57c180(0x247)},{'value':_0x48c6be[_0x57c180(0x2f5)],'localeKey':'bases-dashboard-ui.pivot.variancePopulation'}];function ao(_0x1ff9ae){const _0x440547=_0x57c180;let {config:_0x8ae103,onChange:_0x4bdef9,table:_0x32e409}=_0x1ff9ae,_0x5c9820=_0x3dc792(_0xc34a30),[_0x305113,_0x24ad3a]=_0x155c41(_0x440547(0x2a4)),[_0x47f894,_0x1cfead]=_0x155c41(''),[_0x5ae43d,_0x3449ec]=_0x155c41(null),[_0x2f33dd,_0x555fd2]=_0x155c41(null),[_0x2d10c6,_0x39a23f]=_0x155c41(null),[_0x32efb3,_0x5b0993]=_0x155c41(null),_0x50aaf6=_0x26ca56(null),_0x4ae381=_0x4561c2(()=>_0x32e409[_0x440547(0x25f)][_0x440547(0x21e)](_0xaf4462=>{const _0x43312e=_0x440547;let _0x4f9e39=_0x32e409['fields'][_0xaf4462];return _0x4f9e39&&_0x4f9e39[_0x43312e(0x380)]!==!0x0&&_0x4f9e39[_0x43312e(0x498)]!==_0x36d8a8[_0x43312e(0x1e7)]?[_0x4f9e39]:[];})[_0x440547(0x449)](_0x1d946b=>_0x1d946b[_0x440547(0x3aa)]['toLocaleLowerCase']()[_0x440547(0x300)](_0x47f894[_0x440547(0x3ae)]()[_0x440547(0x1f8)]())),[_0x47f894,_0x32e409]),_0x1b0137=_0x176b52=>{const _0x231013=_0x440547;let _0x5b4266=_0x4ae6f2(_0x32e409,_0x8ae103['pivot']);try{_0x176b52(_0x5b4266),_0x4bdef9({'pivot':_0x5b4266[_0x231013(0x164)]()});}finally{_0x5b4266['dispose']();}},_0x41fc29=(_0x509094,_0x5e6b7d)=>{_0x5ae43d&&(_0x1b0137(_0x5ea31b=>{const _0x5ac9f3=_0x44d8;if(_0x5ae43d[_0x5ac9f3(0x207)]===_0x5ac9f3(0x32e)){let _0x1a1740=_0x5ea31b[_0x5ac9f3(0x476)](_0x5ae43d['id']),_0x3133f1=_0x1a1740['area']===_0x509094&&_0x1a1740[_0x5ac9f3(0x44e)]<_0x5e6b7d?_0x5e6b7d-0x1:_0x5e6b7d;_0x5ea31b[_0x5ac9f3(0x3c2)](_0x5ae43d['id'],_0x509094,_0x3133f1);return;}mo(_0x5ea31b,_0x5ae43d['id'],_0x509094,_0x5e6b7d);}),_0x3449ec(null),_0x555fd2(null));};return _0x3fc05f(_0x440547(0x332),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col','children':[_0x1bfcde(_0x2e9f58,{'ariaLabel':_0x5c9820['t'](_0x440547(0x3f1)),'className':_0x440547(0x3ff),'items':[{'label':_0x5c9820['t']('bases-dashboard-ui.pivot.fields'),'panelId':_0x440547(0x152),'value':_0x440547(0x2a4)},{'label':_0x5c9820['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x440547(0x40e),'value':_0x440547(0x35f)}],'value':_0x305113,'onChange':_0x24ad3a}),_0x1bfcde(_0x440547(0x332),{'ref':_0x50aaf6,'className':_0x3c6675(_0x440547(0x333),_0x32f99e),'onDragOver':_0xc15175=>{const _0x3f4932=_0x440547;let _0x2499f6=_0x50aaf6[_0x3f4932(0x18a)];if(!_0x2499f6)return;let _0x53596c=_0x2499f6[_0x3f4932(0x213)]();_0xc15175[_0x3f4932(0x2fc)]<_0x53596c[_0x3f4932(0x2db)]+0x30?_0x2499f6[_0x3f4932(0x439)]-=0x10:_0xc15175[_0x3f4932(0x2fc)]>_0x53596c['bottom']-0x30&&(_0x2499f6[_0x3f4932(0x439)]+=0x10);},'children':_0x305113==='options'?_0x1bfcde(po,{'config':_0x8ae103,'commit':_0x1b0137}):_0x3fc05f(_0x440547(0x332),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x3fc05f('div',{'children':[_0x1bfcde(_0x440547(0x332),{'className':_0x440547(0x222),'children':_0x5c9820['t'](_0x440547(0x38b))}),_0x1bfcde(_0x225487,{'allowClear':!0x0,'slot':_0x1bfcde(_0x686afa,{}),'value':_0x47f894,'placeholder':_0x5c9820['t'](_0x440547(0x3f7)),'onChange':_0x1cfead}),_0x1bfcde(_0x440547(0x332),{'className':_0x440547(0x28a),'children':_0x4ae381[_0x440547(0x48c)](_0x159189=>_0x1bfcde(oo,{'config':_0x8ae103,'field':_0x159189,'onAdd':_0xee2bda=>_0x1b0137(_0x45da89=>mo(_0x45da89,_0x159189['id'],_0xee2bda,_0x45da89['getFieldCountByArea'](_0xee2bda))),'onCheckedChange':_0x509e7d=>_0x1b0137(_0x111a2f=>{const _0xc0d32a=_0x440547;let _0x5e5ad3=_0x111a2f[_0xc0d32a(0x310)](_0x159189['id']);if(!_0x509e7d){_0x5e5ad3[_0xc0d32a(0x201)](_0x2e6607=>_0x111a2f[_0xc0d32a(0x2c8)](_0x2e6607['getId']()));return;}if(_0x5e5ad3[_0xc0d32a(0x291)]===0x0){let _0xea8b50=go(_0x159189)?_0x3881d5[_0xc0d32a(0x290)]:_0x3881d5[_0xc0d32a(0x1ba)];_0x111a2f[_0xc0d32a(0x299)](_0x159189['id'],_0xea8b50);}}),'onDragStart':()=>_0x3449ec({'kind':_0x440547(0x153),'id':_0x159189['id']})},_0x159189['id']))})]}),_0x1bfcde('div',{'className':'univer-grid\x20univer-grid-cols-2\x20univer-gap-3','children':ro[_0x440547(0x48c)](_0x4e4a2c=>_0x1bfcde(co,{'area':_0x4e4a2c[_0x440547(0x3ba)],'dropTarget':_0x2f33dd,'fields':_0x8ae103['pivot'][_0x4e4a2c[_0x440547(0x3d8)]],'label':_0x5c9820['t'](_0x4e4a2c[_0x440547(0x372)]),'snapshot':_0x8ae103[_0x440547(0x3b9)],'onDragEnd':()=>{_0x3449ec(null),_0x555fd2(null);},'onDragStart':_0x45cb50=>_0x3449ec({'kind':_0x440547(0x32e),'id':_0x45cb50,'area':_0x4e4a2c[_0x440547(0x3ba)]}),'onDragOver':_0x1e0151=>_0x555fd2({'area':_0x4e4a2c[_0x440547(0x3ba)],'index':_0x1e0151}),'onDrop':_0x2186c9=>_0x41fc29(_0x4e4a2c[_0x440547(0x3ba)],_0x2186c9),'onFilter':_0x39a23f,'onRemove':_0x271f55=>_0x1b0137(_0x469100=>_0x469100[_0x440547(0x2c8)](_0x271f55)),'onSettings':_0x5b0993},_0x4e4a2c[_0x440547(0x3ba)]))}),_0x2d10c6&&_0x1bfcde(uo,{'fieldId':_0x2d10c6,'snapshot':_0x8ae103[_0x440547(0x3b9)],'table':_0x32e409,'onCancel':()=>_0x39a23f(null),'onCommit':(_0x2bbd1e,_0x188c43)=>{_0x1b0137(_0x341f2d=>{const _0x2e82b6=_0x44d8;let _0x5d2a58=_0x341f2d[_0x2e82b6(0x457)](_0x2d10c6),_0x36e8ee=(_0x5d2a58==null?void 0x0:_0x5d2a58[_0x2e82b6(0x2a5)])??[];_0x341f2d[_0x2e82b6(0x212)](_0x2d10c6,{'type':_0x38a435['ManualFilter'],'list':_0x2bbd1e,'isAll':_0x2bbd1e[_0x2e82b6(0x291)]===_0x36e8ee[_0x2e82b6(0x291)]}),_0x341f2d[_0x2e82b6(0x191)](_0x2d10c6,_0x188c43===void 0x0?void 0x0:{'type':_0x188c43});}),_0x39a23f(null);}},_0x2d10c6),_0x32efb3&&_0x1bfcde(fo,{'field':_0x8ae103[_0x440547(0x3b9)][_0x440547(0x433)][_0x32efb3],'onCancel':()=>_0x5b0993(null),'onCommit':(_0x1e7bba,_0x12925f,_0x43e7a8)=>{_0x1b0137(_0x1d177c=>{const _0x4fcc95=_0x44d8;_0x1d177c['renameField'](_0x32efb3,_0x1e7bba),_0x1d177c['setSubtotalType'](_0x32efb3,_0x12925f),_0x1d177c[_0x4fcc95(0x31d)](_0x32efb3,_0x43e7a8||void 0x0);}),_0x5b0993(null);}},_0x32efb3)]})})]});}function oo(_0x20f42c){const _0x2796d0=_0x57c180;let {config:_0x4def0d,field:_0x4d3273,onAdd:_0x49f1f7,onCheckedChange:_0x550aa9,onDragStart:_0x56ba14}=_0x20f42c,_0x10a535=_0x3dc792(_0xc34a30),_0x5b91fb=[...Object[_0x2796d0(0x484)](_0x4def0d['pivot'][_0x2796d0(0x1f0)]),...Object[_0x2796d0(0x484)](_0x4def0d[_0x2796d0(0x3b9)][_0x2796d0(0x433)])]['some'](_0x56f46d=>_0x56f46d['dataFieldId']===_0x4d3273['id']),_0x29fee3=ro['map'](_0x223ee3=>({'type':_0x2796d0(0x224),'children':_0x10a535['t'](_o(_0x223ee3[_0x2796d0(0x3ba)])),'onSelect':()=>_0x49f1f7(_0x223ee3[_0x2796d0(0x3ba)])}));return _0x3fc05f(_0x2796d0(0x332),{'draggable':!0x0,'className':_0x2796d0(0x414),'onDragStart':_0x56ba14,'children':[_0x1bfcde(_0x4e0043,{'className':_0x2796d0(0x2b2)}),_0x1bfcde(_0x57ec08,{'checked':_0x5b91fb,'onChange':_0x2710c7=>_0x550aa9(!!_0x2710c7)}),_0x1bfcde(so,{'field':_0x4d3273}),_0x1bfcde(_0x2796d0(0x45e),{'className':_0x2796d0(0x1ec),'children':_0x4d3273['name']}),_0x1bfcde(_0x1f43a4,{'align':_0x2796d0(0x29f),'items':_0x29fee3,'children':_0x1bfcde(_0x2796d0(0x45e),{'className':_0x2796d0(0x2a3),'children':_0x1bfcde(_0x39bc4e,{})})})]});}function so({field:_0x3d816f}){const _0x194b44=_0x57c180;return go(_0x3d816f)?_0x1bfcde(_0x1ef1cd,{'className':'univer-text-gray-400'}):_0x3d816f[_0x194b44(0x498)]===_0x36d8a8[_0x194b44(0x1ca)]||_0x3d816f[_0x194b44(0x498)]===_0x36d8a8[_0x194b44(0x231)]||_0x3d816f[_0x194b44(0x498)]===_0x36d8a8[_0x194b44(0x232)]?_0x1bfcde(_0x5ece4d,{'className':'univer-text-gray-400'}):_0x1bfcde(_0x427459,{'className':_0x194b44(0x2b2)});}function co(_0x5887e4){const _0x33aebd=_0x57c180;let {area:_0x2293ab,dropTarget:_0x5b3430,fields:_0x400a37,label:_0x32f7be,snapshot:_0x153747}=_0x5887e4,_0x2fb3fa=_0x3dc792(_0xc34a30);return _0x3fc05f('section',{'className':_0x3c6675(_0x33aebd(0x19a),_0x1ba91b),'onDragOver':_0x2d4633=>{const _0xc5d765=_0x33aebd;_0x2d4633[_0xc5d765(0x18d)](),_0x5887e4[_0xc5d765(0x2ad)](_0x400a37['length']);},'onDrop':_0xca8d64=>{const _0x47e657=_0x33aebd;_0xca8d64[_0x47e657(0x18d)](),_0x5887e4['onDrop']((_0x5b3430==null?void 0x0:_0x5b3430[_0x47e657(0x3ba)])===_0x2293ab?_0x5b3430[_0x47e657(0x44e)]:_0x400a37[_0x47e657(0x291)]);},'children':[_0x1bfcde(_0x33aebd(0x332),{'className':_0x33aebd(0x44c),'children':_0x32f7be}),_0x3fc05f(_0x33aebd(0x332),{'className':_0x33aebd(0x28f),'children':[_0x400a37[_0x33aebd(0x48c)]((_0x287f24,_0x31ea15)=>{const _0x3a3a03=_0x33aebd;let _0x517b59=_0x153747[_0x3a3a03(0x1f0)][_0x287f24]??_0x153747[_0x3a3a03(0x433)][_0x287f24];if(!_0x517b59)return null;let _0x24fc67=(_0x5b3430==null?void 0x0:_0x5b3430[_0x3a3a03(0x3ba)])===_0x2293ab&&_0x5b3430[_0x3a3a03(0x44e)]===_0x31ea15;return _0x3fc05f('div',{'onDragOver':_0x34cb3a=>{const _0x104b65=_0x3a3a03;_0x34cb3a[_0x104b65(0x18d)](),_0x34cb3a[_0x104b65(0x2be)]();let _0x7fdad=_0x34cb3a[_0x104b65(0x2bc)]['getBoundingClientRect']();_0x5887e4['onDragOver'](_0x31ea15+ +(_0x34cb3a[_0x104b65(0x2fc)]>_0x7fdad[_0x104b65(0x2db)]+_0x7fdad[_0x104b65(0x2b9)]/0x2));},'onDrop':_0x5707c5=>{const _0x513f10=_0x3a3a03;_0x5707c5['preventDefault'](),_0x5707c5[_0x513f10(0x2be)](),_0x5887e4[_0x513f10(0x362)]((_0x5b3430==null?void 0x0:_0x5b3430[_0x513f10(0x3ba)])===_0x2293ab?_0x5b3430['index']:_0x31ea15);},'children':[_0x24fc67&&_0x1bfcde(_0x3a3a03(0x332),{'className':_0x3a3a03(0x1b5)}),_0x1bfcde(lo,{'area':_0x2293ab,'field':_0x517b59,'onDragEnd':_0x5887e4[_0x3a3a03(0x446)],'onDragStart':()=>_0x5887e4[_0x3a3a03(0x48e)](_0x287f24),'onFilter':()=>_0x5887e4['onFilter'](_0x287f24),'onRemove':()=>_0x5887e4[_0x3a3a03(0x436)](_0x287f24),'onSettings':()=>_0x5887e4[_0x3a3a03(0x455)](_0x287f24)})]},_0x287f24);}),(_0x5b3430==null?void 0x0:_0x5b3430[_0x33aebd(0x3ba)])===_0x2293ab&&_0x5b3430[_0x33aebd(0x44e)]===_0x400a37[_0x33aebd(0x291)]&&_0x1bfcde(_0x33aebd(0x332),{'className':_0x33aebd(0x1b5)}),_0x400a37['length']===0x0&&_0x1bfcde(_0x33aebd(0x332),{'className':_0x33aebd(0x26b),'children':_0x2fb3fa['t'](_0x33aebd(0x277))})]})]});}function lo(_0xc90882){const _0x4ad92b=_0x57c180;let _0x109b8f=_0x3dc792(_0xc34a30),_0x118d7d=_0xc90882[_0x4ad92b(0x3ba)]===_0x3881d5[_0x4ad92b(0x290)],_0x32aa99=[{'type':_0x4ad92b(0x224),'children':_0x109b8f['t'](_0x4ad92b(0x2f2)),'onSelect':_0xc90882['onRemove']},{'type':'item','children':_0x109b8f['t'](_0x118d7d?'bases-dashboard-ui.pivot.fieldSettings':_0x4ad92b(0x40f)),'onSelect':_0x118d7d?_0xc90882[_0x4ad92b(0x455)]:_0xc90882[_0x4ad92b(0x206)]}];return _0x3fc05f('div',{'draggable':!0x0,'className':'univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','onDragEnd':_0xc90882['onDragEnd'],'onDragStart':_0xc90882[_0x4ad92b(0x48e)],'children':[_0x1bfcde(_0x4e0043,{'className':_0x4ad92b(0x2b2)}),_0x1bfcde(_0x79306f,{'title':_0xc90882['field'][_0x4ad92b(0x363)],'children':_0x1bfcde(_0x4ad92b(0x45e),{'className':_0x4ad92b(0x1ec),'children':_0xc90882[_0x4ad92b(0x32e)][_0x4ad92b(0x363)]})}),_0x1bfcde(_0x1f43a4,{'align':'end','items':_0x32aa99,'children':_0x1bfcde(_0x4ad92b(0x45e),{'className':_0x4ad92b(0x2a3),'children':_0x1bfcde(_0x39bc4e,{})})})]});}function uo(_0x4b8759){const _0x5c54b3=_0x57c180;var _0x48a167,_0x20abd5;let _0x53a207=_0x3dc792(_0xc34a30),{format:_0x53c76b,items:_0x4e80e5,itemTypes:_0xd3d37f}=_0x4561c2(()=>{const _0x265dc2=_0x44d8;let _0x1a765a=_0x4ae6f2(_0x4b8759[_0x265dc2(0x2c6)],_0x4b8759['snapshot']);try{let _0x244ff5=_0x1a765a[_0x265dc2(0x457)](_0x4b8759[_0x265dc2(0x383)]);return{'format':_0x244ff5==null?void 0x0:_0x244ff5[_0x265dc2(0x23c)],'items':[...(_0x244ff5==null?void 0x0:_0x244ff5['items'])??[]],'itemTypes':[...(_0x244ff5==null?void 0x0:_0x244ff5[_0x265dc2(0x255)])??[]]};}finally{_0x1a765a[_0x265dc2(0x2ab)]();}},[_0x4b8759[_0x5c54b3(0x383)],_0x4b8759[_0x5c54b3(0x434)],_0x4b8759[_0x5c54b3(0x2c6)]]),_0x55a66f=(_0x48a167=_0x4b8759['snapshot'][_0x5c54b3(0x1f0)][_0x4b8759[_0x5c54b3(0x383)]])==null?void 0x0:_0x48a167[_0x5c54b3(0x25b)],[_0x301c3c,_0x513980]=_0x155c41((_0x55a66f==null?void 0x0:_0x55a66f[_0x5c54b3(0x498)])===_0x38a435['ManualFilter']?_0x55a66f[_0x5c54b3(0x368)]:_0x4e80e5),[_0x183083,_0x357369]=_0x155c41((_0x20abd5=_0x4b8759[_0x5c54b3(0x434)][_0x5c54b3(0x1f0)][_0x4b8759['fieldId']])==null||(_0x20abd5=_0x20abd5['sortInfo'])==null?void 0x0:_0x20abd5[_0x5c54b3(0x498)]),_0x39834f=_0x301c3c['length']===_0x4e80e5[_0x5c54b3(0x291)];return _0x3fc05f(_0x5c54b3(0x1b4),{'className':_0x3c6675('univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900',_0x1ba91b),'children':[_0x1bfcde('div',{'className':_0x5c54b3(0x3eb),'children':_0x53a207['t'](_0x5c54b3(0x40f))}),_0x3fc05f(_0x5c54b3(0x332),{'className':_0x5c54b3(0x42e),'children':[_0x3fc05f(_0x29df96,{'className':_0x5c54b3(0x301),'variant':_0x183083===_0x217088['ascending']?_0x5c54b3(0x230):_0x5c54b3(0x450),'onClick':()=>_0x357369(_0x217088[_0x5c54b3(0x4a1)]),'children':[_0x1bfcde(_0x4b54c1,{}),_0x53a207['t'](_0x5c54b3(0x32b))]}),_0x3fc05f(_0x29df96,{'className':_0x5c54b3(0x301),'variant':_0x183083===_0x217088[_0x5c54b3(0x1d2)]?_0x5c54b3(0x230):'default','onClick':()=>_0x357369(_0x217088[_0x5c54b3(0x1d2)]),'children':[_0x1bfcde(_0x29065b,{}),_0x53a207['t'](_0x5c54b3(0x2b6))]})]}),_0x3fc05f(_0x5c54b3(0x332),{'className':'univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','children':[_0x3fc05f(_0x5c54b3(0x372),{'className':_0x5c54b3(0x3ee),'children':[_0x1bfcde(_0x57ec08,{'checked':_0x39834f,'indeterminate':_0x301c3c[_0x5c54b3(0x291)]>0x0&&!_0x39834f,'onChange':()=>_0x513980(_0x39834f?[]:_0x4e80e5)}),_0x53a207['t']('bases-dashboard-ui.pivot.selectAll')]}),_0x4e80e5[_0x5c54b3(0x48c)]((_0x310cb3,_0x1cd554)=>_0x3fc05f(_0x5c54b3(0x372),{'className':_0x5c54b3(0x3ee),'children':[_0x1bfcde(_0x57ec08,{'checked':_0x301c3c[_0x5c54b3(0x300)](_0x310cb3),'onChange':()=>_0x513980(_0x654a06=>_0x654a06['includes'](_0x310cb3)?_0x654a06[_0x5c54b3(0x449)](_0x18d1ef=>_0x18d1ef!==_0x310cb3):[..._0x654a06,_0x310cb3])}),_0x1bfcde(_0x5c54b3(0x45e),{'className':_0x5c54b3(0x420),'children':ho(_0x310cb3,_0xd3d37f[_0x1cd554],_0x53c76b,_0x53a207['t']('bases-dashboard-ui.pivot.blank'))})]},_0x310cb3))]}),_0x3fc05f('div',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[_0x1bfcde(_0x29df96,{'variant':_0x5c54b3(0x2b4),'onClick':()=>_0x4b8759[_0x5c54b3(0x3f6)](_0x4e80e5,_0x183083),'children':_0x53a207['t'](_0x5c54b3(0x2da))}),_0x3fc05f(_0x5c54b3(0x332),{'className':_0x5c54b3(0x169),'children':[_0x1bfcde(_0x29df96,{'onClick':_0x4b8759['onCancel'],'children':_0x53a207['t'](_0x5c54b3(0x357))}),_0x1bfcde(_0x29df96,{'variant':_0x5c54b3(0x230),'disabled':_0x301c3c[_0x5c54b3(0x291)]===0x0,'onClick':()=>_0x4b8759[_0x5c54b3(0x3f6)](_0x301c3c,_0x183083),'children':_0x53a207['t'](_0x5c54b3(0x27b))})]})]})]});}function fo(_0x7bb1a4){const _0x115385=_0x57c180;var _0x33e7cd,_0x21cd8b,_0xfc00a;let _0x4a8123=_0x3dc792(_0xc34a30),[_0x26cfc8,_0x324717]=_0x155c41(((_0x33e7cd=_0x7bb1a4[_0x115385(0x32e)])==null?void 0x0:_0x33e7cd[_0x115385(0x363)])??''),[_0x144d64,_0x42e8f2]=_0x155c41(((_0x21cd8b=_0x7bb1a4[_0x115385(0x32e)])==null?void 0x0:_0x21cd8b[_0x115385(0x334)])??_0x48c6be[_0x115385(0x45d)]),[_0xebbd66,_0x8bdad4]=_0x155c41(((_0xfc00a=_0x7bb1a4['field'])==null?void 0x0:_0xfc00a[_0x115385(0x23c)])??'');return _0x7bb1a4['field']?_0x3fc05f(_0x115385(0x1b4),{'className':_0x3c6675(_0x115385(0x188),_0x1ba91b),'children':[_0x1bfcde(_0x115385(0x332),{'className':_0x115385(0x381),'children':_0x4a8123['t'](_0x115385(0x478))}),_0x3fc05f(_0x115385(0x372),{'className':_0x115385(0x41f),'children':[_0x4a8123['t'](_0x115385(0x1f2)),_0x1bfcde(_0x225487,{'value':_0x26cfc8,'onChange':_0x324717})]}),_0x3fc05f(_0x115385(0x372),{'className':_0x115385(0x41f),'children':[_0x4a8123['t'](_0x115385(0x46b)),_0x1bfcde(_0x103c6a,{'value':String(_0x144d64),'options':io['map'](_0x1b799b=>({'value':String(_0x1b799b[_0x115385(0x435)]),'label':_0x4a8123['t'](_0x1b799b['localeKey'])})),'onChange':_0x181cba=>{const _0x4b5086=_0x115385;let _0x1f0db9=io[_0x4b5086(0x34b)](_0x4c7a2b=>String(_0x4c7a2b[_0x4b5086(0x435)])===_0x181cba);_0x1f0db9&&_0x42e8f2(_0x1f0db9[_0x4b5086(0x435)]);}})]}),_0x3fc05f(_0x115385(0x372),{'className':_0x115385(0x41f),'children':[_0x4a8123['t'](_0x115385(0x411)),_0x1bfcde(_0x225487,{'value':_0xebbd66,'onChange':_0x8bdad4})]}),_0x3fc05f(_0x115385(0x332),{'className':_0x115385(0x256),'children':[_0x1bfcde(_0x29df96,{'onClick':_0x7bb1a4[_0x115385(0x3a1)],'children':_0x4a8123['t'](_0x115385(0x357))}),_0x1bfcde(_0x29df96,{'variant':_0x115385(0x230),'disabled':!_0x26cfc8['trim'](),'onClick':()=>_0x7bb1a4[_0x115385(0x3f6)](_0x26cfc8[_0x115385(0x3ae)](),_0x144d64,_0xebbd66),'children':_0x4a8123['t'](_0x115385(0x27b))})]})]}):null;}function po(_0x4d2f50){const _0xe8afb3=_0x57c180;let {config:_0x23e64f,commit:_0x53bebe}=_0x4d2f50,_0x8f481d=_0x3dc792(_0xc34a30),_0x4fe340=_0x23e64f['pivot']['options'],_0x1b5d44=_0x182481=>_0x53bebe(_0x142896=>_0x142896[_0xe8afb3(0x40b)]({..._0x142896[_0xe8afb3(0x2dd)](),..._0x182481}));return _0x3fc05f(_0xe8afb3(0x332),{'className':_0xe8afb3(0x1fa),'children':[_0x3fc05f(_0xe8afb3(0x372),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x8f481d['t'](_0xe8afb3(0x343)),_0x1bfcde(_0x103c6a,{'className':'univer-w-36','value':String(_0x23e64f[_0xe8afb3(0x3b9)][_0xe8afb3(0x424)]),'options':[{'value':String(_0x363820[_0xe8afb3(0x347)]),'label':_0x8f481d['t'](_0xe8afb3(0x38e))},{'value':String(_0x363820['compact']),'label':_0x8f481d['t'](_0xe8afb3(0x25a))},{'value':String(_0x363820[_0xe8afb3(0x156)]),'label':_0x8f481d['t'](_0xe8afb3(0x39f))}],'onChange':_0x4007a2=>{const _0x4e1822=_0xe8afb3;let _0x17fbb5=[_0x363820[_0x4e1822(0x347)],_0x363820[_0x4e1822(0x1c4)],_0x363820[_0x4e1822(0x156)]][_0x4e1822(0x34b)](_0x604c21=>String(_0x604c21)===_0x4007a2);_0x17fbb5!==void 0x0&&_0x53bebe(_0x30e3dd=>_0x30e3dd[_0x4e1822(0x429)](_0x17fbb5));}})]}),[{'key':_0xe8afb3(0x1c1),'label':_0xe8afb3(0x226),'defaultValue':!0x1},{'key':_0xe8afb3(0x1c9),'label':_0xe8afb3(0x252),'defaultValue':!0x1},{'key':_0xe8afb3(0x497),'label':'bases-dashboard-ui.pivot.showRowSubtotal','defaultValue':!0x0},{'key':'showRowGrandTotal','label':'bases-dashboard-ui.pivot.showRowGrandTotal','defaultValue':!0x0},{'key':_0xe8afb3(0x35d),'label':_0xe8afb3(0x2ba),'defaultValue':!0x0},{'key':_0xe8afb3(0x458),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}][_0xe8afb3(0x48c)](_0x5b3431=>_0x3fc05f(_0xe8afb3(0x372),{'className':_0xe8afb3(0x23a),'children':[_0x1bfcde(_0x57ec08,{'checked':!!(_0x4fe340[_0x5b3431[_0xe8afb3(0x3d8)]]??_0x5b3431[_0xe8afb3(0x1db)]),'disabled':_0x5b3431['key']==='repeatRowLabels'&&_0x23e64f[_0xe8afb3(0x3b9)]['layout']===_0x363820[_0xe8afb3(0x1c4)],'onChange':_0x147d82=>_0x1b5d44({[_0x5b3431[_0xe8afb3(0x3d8)]]:!!_0x147d82})}),_0x8f481d['t'](_0x5b3431[_0xe8afb3(0x372)])]},_0x5b3431[_0xe8afb3(0x3d8)])),_0x23e64f[_0xe8afb3(0x3b9)][_0xe8afb3(0x424)]===_0x363820[_0xe8afb3(0x156)]&&_0x3fc05f(_0xe8afb3(0x372),{'className':_0xe8afb3(0x3e7),'children':[_0x8f481d['t'](_0xe8afb3(0x3e9)),_0x1bfcde(_0x103c6a,{'className':'univer-w-36','value':String(_0x4fe340[_0xe8afb3(0x37f)]??_0x2fcd7c[_0xe8afb3(0x2db)]),'options':[{'value':String(_0x2fcd7c[_0xe8afb3(0x2db)]),'label':_0x8f481d['t']('bases-dashboard-ui.pivot.top')},{'value':String(_0x2fcd7c[_0xe8afb3(0x2f7)]),'label':_0x8f481d['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x34893c=>{const _0x6e8f53=_0xe8afb3;let _0xb73494=[_0x2fcd7c[_0x6e8f53(0x2db)],_0x2fcd7c[_0x6e8f53(0x2f7)]][_0x6e8f53(0x34b)](_0x4fd987=>String(_0x4fd987)===_0x34893c);_0xb73494!==void 0x0&&_0x1b5d44({'rowSubtotalPosition':_0xb73494});}})]}),_0x3fc05f('label',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x8f481d['t'](_0xe8afb3(0x3d7)),_0x1bfcde(_0x103c6a,{'className':'univer-w-36','value':String(_0x23e64f[_0xe8afb3(0x3b9)][_0xe8afb3(0x46f)]===_0xb31626[_0xe8afb3(0x27a)]?_0xb31626[_0xe8afb3(0x438)]:_0x23e64f[_0xe8afb3(0x3b9)][_0xe8afb3(0x46f)]),'options':[{'value':String(_0xb31626[_0xe8afb3(0x438)]),'label':_0x8f481d['t'](_0xe8afb3(0x1cf))},{'value':String(_0xb31626[_0xe8afb3(0x1ba)]),'label':_0x8f481d['t'](_0xe8afb3(0x1d5))}],'onChange':_0x538926=>{const _0x1bf6b2=_0xe8afb3;let _0x1a45d0=[_0xb31626[_0x1bf6b2(0x438)],_0xb31626[_0x1bf6b2(0x1ba)]][_0x1bf6b2(0x34b)](_0x39f4fb=>String(_0x39f4fb)===_0x538926);_0x1a45d0!==void 0x0&&_0x53bebe(_0x513def=>_0x513def[_0x1bf6b2(0x428)](_0x1a45d0,_0x513def[_0x1bf6b2(0x388)]()<0x0?0x0:_0x513def['getValueIndex']()));}})]}),_0x3fc05f(_0xe8afb3(0x372),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x8f481d['t'](_0xe8afb3(0x27f)),_0x1bfcde(_0x142183,{'className':_0xe8afb3(0x445),'min':0x1,'max':0x14,'value':_0x4fe340[_0xe8afb3(0x157)]??0x1,'onChange':_0x5c40ff=>{let _0x11f8b0=Number(_0x5c40ff);Number['isFinite'](_0x11f8b0)&&_0x11f8b0>=0x1&&_0x1b5d44({'pageWrap':_0x11f8b0});}})]}),_0x3fc05f('label',{'className':_0xe8afb3(0x3e7),'children':[_0x8f481d['t'](_0xe8afb3(0x253)),_0x1bfcde(_0x103c6a,{'className':_0xe8afb3(0x2ea),'value':String(_0x4fe340['pageOverThenDown']??!0x1),'options':[{'value':_0xe8afb3(0x1d1),'label':_0x8f481d['t'](_0xe8afb3(0x495))},{'value':_0xe8afb3(0x44f),'label':_0x8f481d['t'](_0xe8afb3(0x286))}],'onChange':_0x53db5b=>_0x1b5d44({'pageOverThenDown':_0x53db5b===_0xe8afb3(0x44f)})})]})]});}function mo(_0xa70222,_0x351115,_0x5c6e61,_0x484a56){const _0x530a55=_0x57c180;let _0x386357=_0xa70222[_0x530a55(0x310)](_0x351115)['find'](_0x2ff892=>_0xa70222[_0x530a55(0x476)](_0x2ff892[_0x530a55(0x48d)]())[_0x530a55(0x3ba)]!==_0x3881d5[_0x530a55(0x290)]);if(_0x5c6e61!==_0x3881d5[_0x530a55(0x290)]&&_0x386357){_0xa70222['updateFieldPosition'](_0x386357['getId'](),_0x5c6e61,_0x484a56);return;}_0xa70222[_0x530a55(0x299)](_0x351115,_0x5c6e61,_0x484a56);}function ho(_0x2d29e8,_0x3dc112,_0x12a09f,_0x3b45b9){const _0x38fff1=_0x57c180;return _0x3dc112===_0x2be849[_0x38fff1(0x280)]?_0x3b45b9:_0x3dc112===_0x2be849[_0x38fff1(0x21d)]&&_0x12a09f?_0x80f5c8[_0x38fff1(0x23c)](_0x12a09f,Number(_0x2d29e8)):_0x2d29e8;}function go(_0x3d529c){const _0x2ce690=_0x57c180;return _0x3d529c[_0x2ce690(0x498)]===_0x36d8a8[_0x2ce690(0x3fb)]||_0x3d529c[_0x2ce690(0x498)]===_0x36d8a8[_0x2ce690(0x218)]||_0x3d529c[_0x2ce690(0x498)]===_0x36d8a8[_0x2ce690(0x39d)]||_0x3d529c[_0x2ce690(0x498)]===_0x36d8a8[_0x2ce690(0x30a)];}function _o(_0x3ebe41){const _0x3915c4=_0x57c180;switch(_0x3ebe41){case _0x3881d5[_0x3915c4(0x1ba)]:return _0x3915c4(0x2d3);case _0x3881d5[_0x3915c4(0x438)]:return _0x3915c4(0x444);case _0x3881d5[_0x3915c4(0x290)]:return _0x3915c4(0x2ef);default:return _0x3915c4(0x18e);}}function vo({config:_0x34e525,onChange:_0x3e015d,runtime:_0xed7839,table:_0x1a8bbe}){const _0x345c36=_0x57c180;let _0x58dec3=_0x3dc792(_0xc34a30),[_0x17afea,_0x28b77b]=_0x155c41(_0x345c36(0x49c));return _0x3fc05f(_0x345c36(0x351),{'className':_0x345c36(0x493),'children':[_0x1bfcde(_0x2e9f58,{'ariaLabel':_0x58dec3['t'](_0x345c36(0x462)),'className':_0x345c36(0x2e5),'items':[{'label':_0x58dec3['t'](_0x345c36(0x19e)),'panelId':'base-pivot-chart-configuration','value':_0x345c36(0x49c)},{'label':_0x58dec3['t'](_0x345c36(0x3f1)),'panelId':_0x345c36(0x21c),'value':_0x345c36(0x3b9)}],'value':_0x17afea,'variant':_0x345c36(0x355),'onChange':_0x28b77b}),_0x1bfcde(_0x345c36(0x332),{'className':_0x345c36(0x16e),'children':_0x17afea===_0x345c36(0x49c)?_0xed7839&&_0x1bfcde(fa,{'config':_0x34e525,'runtime':_0xed7839,'tableName':_0x1a8bbe[_0x345c36(0x3aa)],'onChange':_0x3e015d}):_0x1bfcde(ao,{'config':_0x34e525,'table':_0x1a8bbe,'onChange':_0x3e015d})})]});}function _0x59a9(){const _0x1d48df=['univer-truncate','clientX','createChartInstance','bases-dashboard-ui.dashboard.defaultName','layout','bases-dashboard-ui.dashboardInspector.percent','bases-dashboard-ui.dashboardInspector.editData','IS_NOT_EMPTY','updateValuePosition','setLayout','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','documentElement','errorType','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','univer-flex','bases-dashboard-ui.pivot.grandTotal','column','bases-dashboard-ui.dashboard.image','bases-dashboard-ui.pivot.count','measure','snapshot','value','onRemove','bases-dashboard-ui.pivot.showColumnGrandTotal','Column','scrollTop','subItem','bases-dashboard-ui.chart.common.series','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','VerticalAxis','bases-dashboard-ui.dashboardInspector.grouped','markReady','bases-dashboard-ui.chart.section.candlestick','numberFormat','axis','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','bases-dashboard-ui.pivot.addToColumn','univer-w-24','onDragEnd','YYYY-MM-DD','bases-dashboard-ui.chart.common.heatmap','filter','dashboards','appearance','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','bases-dashboard-ui.dashboardInspector.currency','index','true','default','bases-dashboard-ui.chart.common.chartStyle','general','matchMedia','bases-dashboard-ui.dashboardInspector.cover','onSettings','setSubtotalType','getDataFieldByTableId','showColGrandTotal','bases-dashboard-ui.dashboardInspector.reset','onMove','getRuntimeContext','border','sum','span','join','activeRuntimeModel','resizeDirection','bases-dashboard-ui.pivot.name','valueIndex','bases-dashboard-ui.chart.common.editChart','bases-dashboard-ui.dashboard.new','NumberFormat','bases-dashboard-ui.dashboard.text','change$','base-pivot-chart-configuration','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-whitespace-nowrap\x20univer-border\x20univer-border-gray-200\x20univer-px-3\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-left\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.pivot.summarizeBy','AFTER','bases-dashboard-ui.dashboard.section','views','valuePosition','BASE_DASHBOARD_UI_PLUGIN','univer-m-3','0\x200','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','HorizontalAxis','getResource','getFieldPositionInfoById','accept','bases-dashboard-ui.pivot.fieldSettings','bases-dashboard-ui.dashboard.addWidget','bases-dashboard-ui.chart.common.horizontalAxis','Relation','_createContext','dashboard-widget-','tables','bases-dashboard-ui.dashboard.editWidget','ceil','getImage','operand','image/*','values','bases-dashboard-ui.dashboardInspector.contain','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','bases-dashboard-ui.dashboard.delete','pivotViewId','subUnitId','data:','univer-cursor-grabbing','map','getId','onDragStart','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','bases-dashboard-ui.dashboardInspector.replaceImage','bases-dashboard-ui.dashboardInspector.newCondition','bases-dashboard-ui.operators.notContains','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-96\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','univer-min-h-11\x20univer-px-3\x20univer-text-base','bases-dashboard-ui.pivot.downThenAcross','Pivot','showRowSubtotal','type','version','rowCount','bases-dashboard-ui.pivot.description','chart','currentColor','GeneralSeries','bases-dashboard-ui.chart.common.rightVerticalAxis','register','ascending','ParetoBarSeries','Scatter','grouped','context','bases-dashboard-ui.dashboardInspector.style','bases-dashboard-ui.dashboard.formulaShape','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','base-pivot-fields','source','bases-dashboard-ui.config','dashboard-chart-setup','outline','pageWrap','lastRow','_injector','cornerView','stdDev','univer-text-sm','push','checkMounted','render','toDate','bases-dashboard-ui.dashboard.tableFilter','fill','config','toJSON','LESS_THAN_OR_EQUAL','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','presentationChanged$','separator','univer-flex\x20univer-gap-2','ChartStyle','body','pointermove','article','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','radar','isSubtotal','univer-grid\x20univer-gap-4','unsubscribe','univer-bg-transparent\x20dark:!univer-bg-transparent','filterFields','Line','addImageSourceCache','object','bases-dashboard-ui.dashboardInspector.textSize','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','Person','split','rowSpan','pareto','bases-dashboard-ui.chart.section.radar','waterfall','pointerY','bases-dashboard-ui.operators.greaterThan','bases-dashboard-ui.dashboard.resizeWidget','bases-dashboard-ui.dashboardInspector.dragWidget','conjunction','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','packageName','82401bGVrFK','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','button','current','univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','Subtotal','preventDefault','bases-dashboard-ui.pivot.addToFilter','description','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','setSortInfo','Data','\x20/\x20','General','1.0.2','color','bases-dashboard-ui.pivot.stdDev','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','1036IOIBEz','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.chart.section.gauge','stdDevp','bases-dashboard-ui.pivot.chartConfiguration','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','tableOrder','pageRows','univer-flex\x20univer-h-full\x20univer-w-[380px]\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','bases-dashboard-ui.dashboard.fullScreen','waterfallStyle','subscribe','observe','string','baseChartDataAnimation','FormulaShape','bases-dashboard-ui.dashboardInspector.alignment','878Buvqio','bases-dashboard-ui.chart.common.trendline','univer-flex\x20univer-min-h-full\x20univer-flex-col','onStarting','1878nHALLk','initial','Pie','base-pivot-chart-setup','bases-dashboard-ui.chart.section.funnel','section','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','resolve','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','bases-dashboard-ui.chart.section.histogram','bases-dashboard-ui.dashboardInspector.formula','Row','config$','prototype','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','univer-size-5\x20univer-text-primary-600','tableFieldId','Style','repeatRowLabels','bases-dashboard-ui.chart.','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','compact','dashboard-chart-style','backgroundImage','univer-box-content\x20univer-size-1.5\x20univer-rounded-full\x20!univer-border-2\x20!univer-border-solid\x20!univer-border-white\x20!univer-bg-primary-600','input','repeatColLabels','Date','showRowGrandTotal','bases-dashboard-ui.dashboardInspector.decimalPlaces','bases-dashboard-ui.pivot.stdDevPopulation','columnFields','bases-dashboard-ui.pivot.columns','error','false','descending','widgets','Candlestick','bases-dashboard-ui.pivot.rows','style','click','Positive','bases-dashboard-ui.dashboardInspector.editFormula','Sunburst','defaultValue','innerHeight','bases-dashboard-ui.pivot.average','info','getAttachmentUrl','getChartRuntime','bases-dashboard-ui.dashboardInspector.clear','pattern','saveImage','IS_NOT','localeKey','legend','RecordId','dashboardOrder','focusUnit','trendline','renderRevision','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','presentation','allSeriesStyle','contains','dimension','redos','bases-dashboard-ui.pivot.displayName','bases-dashboard-ui.dashboardInspector.custom','chartId','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','\x20/\x20span\x20','children','toLocaleLowerCase','univer-w-full','univer-flex\x20univer-flex-col\x20univer-gap-4','GrandTotal','TableFilter','bases-dashboard-ui.dashboardInspector.removeImage','Group','PieStyle','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','forEach','labelId','max','fontSizeMode','file','onFilter','kind','group','Boxplot','shapeData','univer-bg-gray-50/80\x20dark:!univer-bg-gray-800/70\x20univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-p-3\x20dark:!univer-border-gray-700','releaseChartRuntime','width','bases-dashboard-ui.chart.common.customize','univer-mt-2','Axes','setConfig','setLabelFilterInfo','getBoundingClientRect','currency','dataFieldId','bases-dashboard-ui.chart.section.lineAndArea','bases-dashboard-ui.chart.common.verticalAxis','Currency','univer-text-right','getPresentation','Waterfall','base-pivot-table-configuration','date','flatMap','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','has','Heatmap','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','getOwnPropertyDescriptor','item','px\x20solid\x20','bases-dashboard-ui.pivot.repeatRowLabels','disconnect','hidden','bases-dashboard-ui.chart.section.wordCloud','univer-grid\x20univer-gap-3','Histogram','target','base-pivot-chart-style','text','changed$','primary','CreatedAt','UpdatedAt','operator','bases-dashboard-ui.dashboardInspector.uploadImage','dataset','resize','shapeId','isTotal','bases-dashboard-ui.pivot.dataSource','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','bases-dashboard-ui.dashboard.undo','format','bases-dashboard-ui.mobile.moveUp','chartRowDirection','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','BaseDashboard','img','src','rightYAxis','univer-grid\x20univer-gap-4\x20univer-p-4','bases-dashboard-ui.dashboard.pivotChart','bases-dashboard-ui.chart.section.indicatorLine','bases-dashboard-ui.pivot.variance','baseOn','\x20has\x20no\x20render\x20config.','page:','view','bases-dashboard-ui.pivot.calculationFailed','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','cumulativeLineStyle','columnSpan','getImageSourceCache','formulaBinding','bases-dashboard-ui.pivot.repeatColumnLabels','bases-dashboard-ui.pivot.pageDirection','bases-dashboard-ui.dashboardInspector.general','itemTypes','univer-flex\x20univer-justify-end\x20univer-gap-2','getSnapshot','_configService','original','bases-dashboard-ui.pivot.layoutCompact','filterInfo','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','thead','symbol','fieldOrder','BEFORE','constructor','WaterfallSeries','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','unitId','radius','MultipleGrandTotal','bases-dashboard-ui.dashboardInspector.loading','isArray','bases-dashboard-ui.dashboardInspector.close','tbody','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','toPrimitive','decorate','bases-dashboard-ui.dashboardInspector.left','backgroundColor','bases-dashboard-ui.dashboardInspector.selectOption','refreshChartRuntime','ParetoLineSeries','contain','bases-dashboard-ui.operators.before','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','bases-dashboard-ui.pivot.product','bases-dashboard-ui.pivot.dropFieldsHere','column:','univer-relative\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-50\x20dark:univer-bg-gray-950','None','bases-dashboard-ui.pivot.confirm','bases-dashboard-ui.dashboard.configure','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','auto','bases-dashboard-ui.pivot.pageWrap','blank','isFinite','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','alignment','getCurrentTheme','formatMap','bases-dashboard-ui.pivot.acrossThenDown','bases-dashboard-ui.operators.is','row:','bases-dashboard-ui.chart.waterfall.subtotal','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','fullscreenElement','paragraphs','center','univer-flex\x20univer-flex-col','Value','length','fullscreenchange','row','bases-dashboard-ui.pivot.chartOnly','min','result','syncLayout','bases-dashboard-ui.pivot.showRowSubtotal','addFieldWithSourceId','flex-start','lastCol','MultiSelect','indexOf','custom','end','stroke','Dom','bases-dashboard-ui.pivot.values','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','fields','items','chartType','bases-dashboard-ui.dashboardInspector.autoFit','univer-size-8\x20univer-p-0\x20univer-text-red-500','bases-dashboard-ui.operators.isNot','model','dispose','8653862yfOxte','onDragOver','imageSourceType','setStyle','isHeader','isBottomTotal','univer-text-gray-400','bases-dashboard-ui.dashboardInspector.backgroundImage','link','rowFields','bases-dashboard-ui.pivot.descending','from','bases-dashboard-ui.pivot.fields','height','bases-dashboard-ui.pivot.showColumnSubtotal','UUID','currentTarget','then','stopPropagation','scrollHeight','corner:','bases-dashboard-ui.pivot.defaultName','exitFullscreen','bases-dashboard-ui.dashboardInspector.delete','print','getRect','table','WordCloud','removeField','some','bases-dashboard-ui.dashboard.widgetActions','catch','bases-dashboard-ui.dashboardInspector.checked','fontSize','shapeText','bases-dashboard-ui.mobile.moveDown','change','documentStyle','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','bases-dashboard-ui.pivot.addToRow','files','iterator','180860REMOiZ','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','call','base64Cache','bases-dashboard-ui.pivot.clearFilter','top','Chord','getOptions','replace','Funnel','move','bases-dashboard-ui.dashboard.rename','funnel','bases-dashboard-ui.chart.common.chartAndAxisTitles','univer-mt-2\x20univer-w-full','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','RightVerticalAxis','bases-dashboard-ui.chart.section.waterfall','_renderModelManager','univer-min-w-0\x20univer-flex-1','univer-w-36','bases-dashboard-ui.pivot.min','countNums','bases-dashboard-ui.pivot.tableOnly','getUnit','bases-dashboard-ui.pivot.addToValue','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','bases-dashboard-ui.operators.lessThan','bases-dashboard-ui.pivot.removeField','univer-relative\x20univer-z-10','parentElement','varp','IndicatorLine','bottom','SolidFill','colView','bases-dashboard-ui.dashboardInspector.number','NOT_CONTAINS','clientY','darkMode$','bases-dashboard-ui.chart.chartTypes.','title','includes','univer-flex-1','univer-border-0\x20univer-bg-transparent','dataAggregation','formula','12660vyOToM','addEventListener','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','dom','#,##0','Rating','minmax(0,\x203fr)\x20minmax(0,\x202fr)','shapeType','acquireChartRuntime','waterfall.negative','entries','getTableFieldsByDataFieldId','bases-dashboard-ui.operators.after','requestFullscreen','dashboard-text-','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','Bubble','undoRedoStatus$','rootContainerElement','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','wordCloud','function','bases-dashboard-ui.pivot.max','paragraphId','setFieldFormat','831adjhqG','tableId','baseChartDataAnimationDuration','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.dashboardInspector.numberFormat','matches','univer-bg-gray-0\x20dark:!univer-bg-gray-900','getDashboard','clientHeight','floor','no-repeat','univer-size-6\x20!univer-border\x20!univer-border-solid\x20!univer-border-gray-200\x20!univer-bg-gray-0\x20univer-p-0\x20!univer-shadow-none\x20hover:!univer-bg-gray-100\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900\x20dark:hover:!univer-bg-gray-800','CONTAINS','bases-dashboard-ui.pivot.ascending','repeat','univer-flex\x20univer-min-h-0\x20univer-flex-1','field','base-pivot-chart','startScrollTop','bases-dashboard-ui.pivot.variancePopulation','div','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','subtotal','alt','decimalPlaces','replaceChildren','number','Radar','set','round','var','lineAndArea','bases-dashboard-ui.pivot.chartAndTable','delete','ChartAndAxisTitles','indicatorLine','darkMode','bases-dashboard-ui.pivot.layout','match','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','pluginName','tabular','bases-dashboard-ui.dashboardInspector.dataSource','bases-dashboard-ui.dashboardInspector.right','bases-dashboard-ui.pivot.display','find','961096enHwDa','bases-dashboard-ui.pivot.sum','doc','base-pivot-chart-','setCurrentUnitForType','aside','bases-dashboard-ui.dashboard.redo','bases-dashboard-ui.chart.section.chord','bases-dashboard-ui.dashboardInspector.textColor','segmented','header','bases-dashboard-ui.pivot.cancel','bases-dashboard-ui.dashboardInspector.compact','getResult','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','flex-end','onMoveUp','showColSubtotal','bases-dashboard-ui.chart.section.relation','options','UNIVER_BASE','bases-dashboard-ui.chart.section.treemap','onDrop','displayName','waterfall.positive','transparent','Legend','mode','list','bases-dashboard-ui.mobile.permissions','border-box','ensureMount','createDomChartInstance','displayMode','destructive','bases-dashboard-ui.dashboardInspector.sourceUnavailable','_chartThemeService','pageOverThenDown','label','bases-dashboard-ui.pivot.blank','rowView','univer-size-4','series','Text','AND','bases-dashboard-ui.dashboardInspector.data','bases-dashboard-ui.dashboardInspector.description','direction$','keydown','Image','bases-dashboard-ui.pivot.options','rowSubtotalPosition','system','univer-text-sm\x20univer-font-medium','bases-dashboard-ui.chart.common.legend','fieldId','dataSource','bases-dashboard-ui.pivot.showRowGrandTotal','textColor','gray','getValueIndex','bases-dashboard-ui.chart.section.sunburst','dashboard-','bases-dashboard-ui.pivot.sourceFields','bases-dashboard-ui.pivot.calculating','univer-pointer-events-auto\x20univer-opacity-100','bases-dashboard-ui.pivot.layoutTabular','createElement','bases-dashboard-ui.dashboardInspector.enterValue','pipe','get','Base\x20dashboard\x20chart\x20','average','disposeWithMe','widgetOrder','bases-dashboard-ui.chart.section.gridlinesAndTicks','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','borderRadius','RoundRect','univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','univer-grid\x20univer-gap-3\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','Progress','select','bases-dashboard-ui.pivot.layoutOutline','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','onCancel','valueFields','univer-grid\x20univer-gap-2\x20univer-p-3','bases-dashboard-ui.chart.common.switchRowColumn','cover','small','defineProperty','_config','stringify','name','style$','every','product','trim','ownerDocument','bases-dashboard-ui.dashboardInspector.backgroundColor','percent','fillType','add','Trendline','orient','renderTransition','relation','dataView','pivot','area','right','rightY','headerRowCount','heatmap','boxSizing','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','bases-dashboard-ui.chart.common.setup','updateFieldPosition','getDirection','univer-size-5\x20univer-rotate-90','toUpperCase','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','createRenderInput','document','45uhtCer','970GsJGAe','bases-dashboard-ui.operators.contains','grandTotal','conditions','saveAttachment','size','initialLayouts','left','bases-dashboard-ui.pivot.selectAll','viewOrder','startY','blur','bases-dashboard-ui.pivot.filters','bases-dashboard-ui.pivot.valuePosition','key','fit','bases-dashboard-ui.dashboard.search','Filter','lineStrokeType','permissionPointUpdate$','visibilityState','bases-dashboard-ui.dashboard.deleteWidget','isConnected','rows','bases-dashboard-ui.dashboardInspector.center','IS_EMPTY','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','[data-dashboard-widget]','pageView','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','univer-mx-auto\x20univer-size-6','bases-dashboard-ui.pivot.rowSubtotalPosition','bases-dashboard-ui.pivot.countNumbers','univer-mb-3\x20univer-text-sm\x20univer-font-medium','removeEventListener','executeChartUpdateConfig','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','Treemap','minmax(0,\x201fr)','bases-dashboard-ui.pivot.pivotConfiguration','univer-flex\x20univer-items-center\x20univer-gap-2','bases-dashboard-ui.operators.lessThanOrEqual','clientWidth','univer-pointer-events-none\x20univer-absolute\x20univer-z-30\x20univer-appearance-none\x20univer-p-0\x20univer-opacity-0\x20!univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','onCommit','bases-dashboard-ui.pivot.searchFields','univer-group\x20univer-relative\x20univer-flex\x20univer-min-h-0\x20univer-flex-col\x20univer-overflow-visible\x20univer-rounded-lg\x20univer-border\x20univer-shadow-sm\x20univer-transition-shadow','Gauge','executeCommand','Number','Checkbox','dataModel','rowType','univer-shrink-0\x20univer-px-3','bases-dashboard-ui.dashboardInspector.originalSize','slice','LESS_THAN','bases-dashboard-ui.operators.isNotEmpty','PivotChart','pointerup','pointerX','sourceType','base-dashboard-pivot-chart-','currentTheme$','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','setOptions','textStyle','barStyle','base-pivot-options','bases-dashboard-ui.pivot.filterField','scrollWidth','bases-dashboard-ui.pivot.numberFormat','data','univer-border-gray-200\x20dark:!univer-border-gray-700','univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','_element','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','chart-and-table','bases-dashboard-ui.chart.section.paretoLine','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','overflow','bases-dashboard-ui.chart.section.paretoBar','onReady','count','bases-dashboard-ui.pivot.bottom','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs'];_0x59a9=function(){return _0x1d48df;};return _0x59a9();}function yo({tableId:_0x583679,unitId:_0x1f7a90,viewId:_0x28b4a4}){const _0x414f14=_0x57c180;let _0x1faeff=_0x3dc792(_0x20bf70),_0x322ee9=_0x3dc792(_0xfa1040),_0x494a25=_0x3dc792(_0xa0671c),_0x241c54=_0x3dc792(_0xc34a30),_0x5119c2=_0x3dc792(_0x534e77),[_0xe5e268,_0x22a1d5]=_0x155c41(null),[_0x3bc8ba,_0x6d9919]=_0x155c41(null),_0x51ae75=_0x26ca56(_0x414f14(0x34f)+_0x2bbf35(0x8)),[_0x59cf46,_0x161885]=_0x155c41(!0x1),_0x1d41b3=_0x322ee9[_0x414f14(0x2ee)](_0x1f7a90,_0x1be7ab['UNIVER_BASE']),_0x2645ce=_0x1d41b3==null?void 0x0:_0x1d41b3['getSnapshot']()[_0x414f14(0x47e)][_0x583679],_0x26e1ab=_0x2645ce==null?void 0x0:_0x2645ce[_0x414f14(0x46e)][_0x28b4a4],_0x35703f=bo(_0x26e1ab),_0x5f29b6=_r(_0x1f7a90,_0x583679,_0x28b4a4);if(_0x5a872b(()=>{const _0x4580bb=_0x414f14;if(!_0x35703f)return;let _0x41bfa3=_0x51ae75['current'];return _0x5119c2[_0x4580bb(0x30d)](_0x41bfa3,{'unitId':_0x1f7a90,'tableId':_0x583679,'viewId':_0x28b4a4,'filters':[]}),()=>{const _0x4ccc95=_0x4580bb;_0x5119c2[_0x4ccc95(0x20c)](_0x1f7a90,_0x41bfa3);};},[_0x35703f,_0x5119c2,_0x583679,_0x1f7a90,_0x28b4a4]),_0x5a872b(()=>{const _0x4d14dd=_0x414f14;if(!bo(_0x26e1ab))return;let _0x331ecb=!0x0,_0x255a85={'unitId':_0x1f7a90,'tableId':_0x583679,'viewId':_0x28b4a4,'filters':[_0x26e1ab['filter']??null]};return _0x5119c2[_0x4d14dd(0x271)](_0x1f7a90,_0x51ae75[_0x4d14dd(0x18a)],_0x255a85)[_0x4d14dd(0x2bd)](_0x4cf667=>{const _0x340d5e=_0x4d14dd;_0x331ecb&&_0x4cf667&&(_0x22a1d5(_0x4cf667),_0x6d9919(_0x5119c2[_0x340d5e(0x1e0)](_0x1f7a90,_0x51ae75[_0x340d5e(0x18a)])??null),_0x161885(!0x1));})['catch'](_0x4debe1=>{const _0x4fdbb8=_0x4d14dd;_0x494a25[_0x4fdbb8(0x1d0)](_0x4fdbb8(0x35a),_0x4debe1),_0x331ecb&&(_0x22a1d5(null),_0x161885(!0x0));}),()=>{_0x331ecb=!0x1;};},[_0x494a25,_0x5119c2,_0x583679,_0x1f7a90,_0x26e1ab,_0x28b4a4]),!_0x2645ce||!bo(_0x26e1ab))return null;let _0x277803=_0x5119c2[_0x414f14(0x1e0)](_0x1f7a90,_0x51ae75[_0x414f14(0x18a)])===_0x3bc8ba?_0x3bc8ba:null,_0x1eeec1=_0xe5e268?_0x3fc05f(_0x414f14(0x332),{'className':_0x414f14(0x200),'style':{'gridTemplateRows':_0x26e1ab['config'][_0x414f14(0x36d)]==='chart-and-table'?'minmax(240px,\x203fr)\x20minmax(180px,\x202fr)':_0x414f14(0x3f0)},'children':[_0x26e1ab[_0x414f14(0x163)][_0x414f14(0x36d)]!==_0x414f14(0x2c6)&&_0x277803&&_0x1bfcde(_0x414f14(0x332),{'className':'univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':_0x1bfcde(Ir,{'isRowDirection':_0x143525(_0x26e1ab[_0x414f14(0x163)]['chart'][_0x414f14(0x3b5)]),'runtime':_0x277803})}),_0x26e1ab[_0x414f14(0x163)][_0x414f14(0x36d)]!==_0x414f14(0x49c)&&_0x1bfcde(_0x414f14(0x332),{'className':_0x414f14(0x42a),'children':_0x1bfcde(ki,{'pivot':_0x26e1ab[_0x414f14(0x163)][_0x414f14(0x3b9)],'view':_0xe5e268[_0x414f14(0x24b)]})})]}):_0x1bfcde(_0x414f14(0x332),{'className':_0x414f14(0x282),'children':_0x59cf46?_0x241c54['t'](_0x414f14(0x24c)):_0x241c54['t'](_0x414f14(0x38c))});return _0x3fc05f(_0x414f14(0x332),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','children':[_0x1bfcde(_0x414f14(0x332),{'className':_0x414f14(0x398),'children':_0x1eeec1}),_0x5f29b6&&_0x1bfcde(vo,{'config':_0x26e1ab[_0x414f14(0x163)],'runtime':_0x277803,'table':_0x2645ce,'onChange':_0x398e9c=>{const _0x2c6910=_0x414f14;_0x1faeff['executeCommand'](_0x26095f['id'],{'unitId':_0x1f7a90,'tableId':_0x583679,'viewId':_0x28b4a4,'patch':_0x398e9c})[_0x2c6910(0x2cb)](_0x2bbe70=>_0x494a25[_0x2c6910(0x1d0)](_0x2c6910(0x40a),_0x2bbe70));}})]});}function bo(_0x48e3c1){const _0x4c0705=_0x57c180;return(_0x48e3c1==null?void 0x0:_0x48e3c1[_0x4c0705(0x498)])===_0x4e046d['Pivot']&&typeof _0x48e3c1[_0x4c0705(0x163)]==_0x4c0705(0x177)&&_0x48e3c1[_0x4c0705(0x163)]!==null&&_0x4c0705(0x3b9)in _0x48e3c1[_0x4c0705(0x163)]&&_0x4c0705(0x49c)in _0x48e3c1[_0x4c0705(0x163)]&&_0x4c0705(0x36d)in _0x48e3c1['config'];}let xo=class extends _0x7c5363{constructor(_0x5b9b05,_0x36e16a,_0x1574fd,_0x27d132,_0x5bcfc9,_0x3f94c5){const _0x25afed=_0x57c180;super(),this[_0x25afed(0x395)](_0x36e16a[_0x25afed(0x4a0)]({'type':_0x4e046d[_0x25afed(0x496)],'renderMode':_0x25afed(0x308),'icon':_0x26e878,'component':yo,'menu':{get 'label'(){return _0x3f94c5['t']('bases-dashboard-ui.pivot.name');},get 'description'(){const _0x45e9f0=_0x25afed;return _0x3f94c5['t'](_0x45e9f0(0x49b));},get 'defaultName'(){const _0x30f230=_0x25afed;return _0x3f94c5['t'](_0x30f230(0x2c1));}}})),this[_0x25afed(0x395)](_0x5b9b05['register'](So(_0x1574fd,_0x27d132,_0x5bcfc9,_0x3f94c5)));}};xo=Or([Y(0x0,_0x5135cb),Y(0x1,_0x452fc8),Y(0x2,_0xfb26ea(_0x1e99fb)),Y(0x3,_0x20bf70),Y(0x4,_0x31dc6c),Y(0x5,_0xfb26ea(_0xc34a30))],xo);function So(_0xb9dbe6,_0x3b68f9,_0x499398,_0x2ed8a4){const _0x14100f=_0x57c180;return{'change$':_0x2391b4(_0xb9dbe6[_0x14100f(0x468)],_0x499398[_0x14100f(0x3dd)]),'component':Ja,get 'labels'(){const _0x23ad31=_0x14100f;return{'add':_0x2ed8a4['t']('bases-dashboard-ui.dashboard.add'),'configure':_0x4c9a57=>_0x2ed8a4['t'](_0x23ad31(0x27c),_0x4c9a57),'delete':_0x2ed8a4['t'](_0x23ad31(0x487)),'new':_0x2ed8a4['t'](_0x23ad31(0x465)),'rename':_0x2ed8a4['t']('bases-dashboard-ui.dashboard.rename'),'search':_0x2ed8a4['t'](_0x23ad31(0x3da)),'section':_0x2ed8a4['t'](_0x23ad31(0x46d))};},'getItems':_0x2c85bc=>{const _0x34a7bc=_0x14100f;let _0x625df7=_0xb9dbe6[_0x34a7bc(0x475)](_0x2c85bc);return _0x625df7['dashboardOrder']['flatMap'](_0x126c7a=>{const _0x3da8e7=_0x34a7bc;let _0x2e46ce=_0x625df7[_0x3da8e7(0x44a)][_0x126c7a];return _0x2e46ce?[{'id':_0x2e46ce['id'],'name':_0x2e46ce[_0x3da8e7(0x3aa)],'readonly':!_0x1377c4(_0x499398,_0x2c85bc,_0x2e46ce['id'])}]:[];});},'create':async _0x52e6a3=>{const _0x3bb386=_0x14100f;let _0xbe206b=_0xb9dbe6[_0x3bb386(0x475)](_0x52e6a3),_0x2a5785=_0x3bb386(0x38a)+_0x2bbf35(0x8),_0x3d384d=Co(_0xbe206b[_0x3bb386(0x1e8)][_0x3bb386(0x21e)](_0x23adfd=>{const _0x5627e3=_0x3bb386;let _0x29cd2b=_0xbe206b[_0x5627e3(0x44a)][_0x23adfd];return _0x29cd2b?[_0x29cd2b[_0x5627e3(0x3aa)]]:[];}),_0x3ade5b=>_0x2ed8a4['t'](_0x3bb386(0x423),String(_0x3ade5b)));return await _0x3b68f9[_0x3bb386(0x3fa)](_0x2a269b['id'],{'unitId':_0x52e6a3,'dashboard':{'id':_0x2a5785,'name':_0x3d384d,'widgetOrder':[],'widgets':{}}})?_0x2a5785:null;},'rename':async(_0x5eea4b,_0x27491,_0x1d1c53)=>{const _0x58e8e4=_0x14100f;let _0x325c54=_0xb9dbe6[_0x58e8e4(0x325)](_0x5eea4b,_0x27491);return!!(_0x325c54&&await _0x3b68f9[_0x58e8e4(0x3fa)](_0x16ed85['id'],{'unitId':_0x5eea4b,'dashboard':{..._0x325c54,'name':_0x1d1c53}}));},'remove':(_0x46282c,_0x5f0a59)=>_0x3b68f9[_0x14100f(0x3fa)](_0x452258['id'],{'unitId':_0x46282c,'dashboardId':_0x5f0a59})};}function Co(_0x497e11,_0x5886ac){const _0x54732a=_0x57c180;let _0x37397f=new Set(_0x497e11),_0x57933b=_0x37397f[_0x54732a(0x3cf)]+0x1,_0x8becf7=_0x5886ac(_0x57933b);for(;_0x37397f['has'](_0x8becf7);)_0x57933b+=0x1,_0x8becf7=_0x5886ac(_0x57933b);return _0x8becf7;}let wo=class extends _0x239fa2{constructor(_0x22accf=hr,_0x112189,_0x336245){const _0x4e3f92=_0x57c180;super(),this[_0x4e3f92(0x3a8)]=_0x22accf,this[_0x4e3f92(0x159)]=_0x112189,this[_0x4e3f92(0x258)]=_0x336245;let {..._0x1ef13b}=_0x50ef5d({},hr,this[_0x4e3f92(0x3a8)]);this['_configService'][_0x4e3f92(0x211)](mr,_0x1ef13b);}[_0x57c180(0x1ae)](){const _0x2ccebb=_0x57c180;this[_0x2ccebb(0x159)][_0x2ccebb(0x3b3)]([kr]),this[_0x2ccebb(0x159)][_0x2ccebb(0x3b3)]([Gr]),this[_0x2ccebb(0x159)][_0x2ccebb(0x3b3)]([xo]);}[_0x57c180(0x41c)](){const _0x194592=_0x57c180;_0x5e38a1(this[_0x194592(0x159)],[[kr],[Gr],[xo]]);}};Pr(wo,'type',_0x1be7ab[_0x57c180(0x360)]),Pr(wo,_0x57c180(0x346),_0x57c180(0x470)),Pr(wo,_0x57c180(0x186),fr),Pr(wo,_0x57c180(0x499),pr),wo=Or([_0x9eb0d5(_0x187023,_0x398c3a,_0x3fa7c8,_0x5596f9,_0x379239,_0x42b4c7),Y(0x1,_0xfb26ea(_0x3fc728)),Y(0x2,_0x19da82)],wo);export{na as UniverBaseDashboardMobileUIPlugin,wo as UniverBaseDashboardUIPlugin};