@univerjs-pro/bases-dashboard-ui 1.3.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (107) hide show
  1. package/README.md +13 -9
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/cs-CZ.js +1 -1
  6. package/lib/cjs/locale/de-DE.js +1 -1
  7. package/lib/cjs/locale/en-US.js +1 -1
  8. package/lib/cjs/locale/es-ES.js +1 -1
  9. package/lib/cjs/locale/fa-IR.js +1 -1
  10. package/lib/cjs/locale/fr-FR.js +1 -1
  11. package/lib/cjs/locale/id-ID.js +1 -1
  12. package/lib/cjs/locale/it-IT.js +1 -1
  13. package/lib/cjs/locale/ja-JP.js +1 -1
  14. package/lib/cjs/locale/ko-KR.js +1 -1
  15. package/lib/cjs/locale/nl-NL.js +1 -1
  16. package/lib/cjs/locale/pl-PL.js +1 -1
  17. package/lib/cjs/locale/pt-BR.js +1 -1
  18. package/lib/cjs/locale/ru-RU.js +1 -1
  19. package/lib/cjs/locale/sk-SK.js +1 -1
  20. package/lib/cjs/locale/th-TH.js +1 -1
  21. package/lib/cjs/locale/tr-TR.js +1 -1
  22. package/lib/cjs/locale/uk-UA.js +1 -1
  23. package/lib/cjs/locale/vi-VN.js +1 -1
  24. package/lib/cjs/locale/zh-CN.js +1 -1
  25. package/lib/cjs/locale/zh-HK.js +1 -1
  26. package/lib/cjs/locale/zh-TW.js +1 -1
  27. package/lib/es/index.js +1 -1
  28. package/lib/es/locale/ar-SA.js +1 -1
  29. package/lib/es/locale/ca-ES.js +1 -1
  30. package/lib/es/locale/cs-CZ.js +1 -1
  31. package/lib/es/locale/de-DE.js +1 -1
  32. package/lib/es/locale/en-US.js +1 -1
  33. package/lib/es/locale/es-ES.js +1 -1
  34. package/lib/es/locale/fa-IR.js +1 -1
  35. package/lib/es/locale/fr-FR.js +1 -1
  36. package/lib/es/locale/id-ID.js +1 -1
  37. package/lib/es/locale/it-IT.js +1 -1
  38. package/lib/es/locale/ja-JP.js +1 -1
  39. package/lib/es/locale/ko-KR.js +1 -1
  40. package/lib/es/locale/nl-NL.js +1 -1
  41. package/lib/es/locale/pl-PL.js +1 -1
  42. package/lib/es/locale/pt-BR.js +1 -1
  43. package/lib/es/locale/ru-RU.js +1 -1
  44. package/lib/es/locale/sk-SK.js +1 -1
  45. package/lib/es/locale/th-TH.js +1 -1
  46. package/lib/es/locale/tr-TR.js +1 -1
  47. package/lib/es/locale/uk-UA.js +1 -1
  48. package/lib/es/locale/vi-VN.js +1 -1
  49. package/lib/es/locale/zh-CN.js +1 -1
  50. package/lib/es/locale/zh-HK.js +1 -1
  51. package/lib/es/locale/zh-TW.js +1 -1
  52. package/lib/index.js +1 -1
  53. package/lib/locale/ar-SA.js +1 -1
  54. package/lib/locale/ca-ES.js +1 -1
  55. package/lib/locale/cs-CZ.js +1 -1
  56. package/lib/locale/de-DE.js +1 -1
  57. package/lib/locale/en-US.js +1 -1
  58. package/lib/locale/es-ES.js +1 -1
  59. package/lib/locale/fa-IR.js +1 -1
  60. package/lib/locale/fr-FR.js +1 -1
  61. package/lib/locale/id-ID.js +1 -1
  62. package/lib/locale/it-IT.js +1 -1
  63. package/lib/locale/ja-JP.js +1 -1
  64. package/lib/locale/ko-KR.js +1 -1
  65. package/lib/locale/nl-NL.js +1 -1
  66. package/lib/locale/pl-PL.js +1 -1
  67. package/lib/locale/pt-BR.js +1 -1
  68. package/lib/locale/ru-RU.js +1 -1
  69. package/lib/locale/sk-SK.js +1 -1
  70. package/lib/locale/th-TH.js +1 -1
  71. package/lib/locale/tr-TR.js +1 -1
  72. package/lib/locale/uk-UA.js +1 -1
  73. package/lib/locale/vi-VN.js +1 -1
  74. package/lib/locale/zh-CN.js +1 -1
  75. package/lib/locale/zh-HK.js +1 -1
  76. package/lib/locale/zh-TW.js +1 -1
  77. package/lib/types/components/BasePivotChartEditor.d.ts +9 -9
  78. package/lib/types/components/mobile/BasePivotChartEditor.d.ts +9 -9
  79. package/lib/types/locale/en-US.d.ts +2 -0
  80. package/lib/types/utils/dashboard-formula-shape.d.ts +4 -4
  81. package/lib/types/utils/dashboard-text.d.ts +2 -2
  82. package/lib/umd/index.js +1 -1
  83. package/lib/umd/locale/ar-SA.js +1 -1
  84. package/lib/umd/locale/ca-ES.js +1 -1
  85. package/lib/umd/locale/cs-CZ.js +1 -1
  86. package/lib/umd/locale/de-DE.js +1 -1
  87. package/lib/umd/locale/en-US.js +1 -1
  88. package/lib/umd/locale/es-ES.js +1 -1
  89. package/lib/umd/locale/fa-IR.js +1 -1
  90. package/lib/umd/locale/fr-FR.js +1 -1
  91. package/lib/umd/locale/id-ID.js +1 -1
  92. package/lib/umd/locale/it-IT.js +1 -1
  93. package/lib/umd/locale/ja-JP.js +1 -1
  94. package/lib/umd/locale/ko-KR.js +1 -1
  95. package/lib/umd/locale/nl-NL.js +1 -1
  96. package/lib/umd/locale/pl-PL.js +1 -1
  97. package/lib/umd/locale/pt-BR.js +1 -1
  98. package/lib/umd/locale/ru-RU.js +1 -1
  99. package/lib/umd/locale/sk-SK.js +1 -1
  100. package/lib/umd/locale/th-TH.js +1 -1
  101. package/lib/umd/locale/tr-TR.js +1 -1
  102. package/lib/umd/locale/uk-UA.js +1 -1
  103. package/lib/umd/locale/vi-VN.js +1 -1
  104. package/lib/umd/locale/zh-CN.js +1 -1
  105. package/lib/umd/locale/zh-HK.js +1 -1
  106. package/lib/umd/locale/zh-TW.js +1 -1
  107. package/package.json +23 -23
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x219009=_0x4abf;(function(_0x4c08a6,_0x19925f){const _0x34afed=_0x4abf,_0x5d4201=_0x4c08a6();while(!![]){try{const _0x3d7857=parseInt(_0x34afed(0x28f))/0x1*(-parseInt(_0x34afed(0x2f0))/0x2)+-parseInt(_0x34afed(0x437))/0x3+-parseInt(_0x34afed(0x175))/0x4+parseInt(_0x34afed(0x496))/0x5*(parseInt(_0x34afed(0x445))/0x6)+-parseInt(_0x34afed(0x3ba))/0x7+-parseInt(_0x34afed(0x2c4))/0x8*(parseInt(_0x34afed(0x1a3))/0x9)+-parseInt(_0x34afed(0x2c8))/0xa*(-parseInt(_0x34afed(0x36e))/0xb);if(_0x3d7857===_0x19925f)break;else _0x5d4201['push'](_0x5d4201['shift']());}catch(_0x304b8c){_0x5d4201['push'](_0x5d4201['shift']());}}}(_0x494c,0xf0040));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x3b43c9,BASES_DASHBOARD_GRID_COLUMNS as _0x2a8e2f,BaseChartRuntimeService as _0x559b79,BaseDashboardResourceService as _0x24d6a6,BaseDashboardWidgetType as _0xf5049a,CreateBaseDashboardCommand as _0x55205b,DeleteBaseDashboardCommand as _0x4136ca,RemoveBaseDashboardWidgetCommand as _0x451a8b,UniverBaseDashboardPlugin as _0x2eebed,UpdateBaseDashboardCommand as _0x570003,UpdateBasePivotViewCommand as _0x227312,UpsertBaseDashboardWidgetCommand as _0x53172b,canEditBaseDashboard as _0x108b4a,canEditBasePivotView as _0x58ffc2,createBasePivotTable as _0x26536e,resolveBasePivotChartRowDirection as _0x4562e5}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x1939e2,BaseMobileDrawer as _0x5cf81f,BaseMobileFilterOperand as _0x2b139d,BaseMobileFilterPanel as _0x5ea8f9,BaseUnitCollaborationStatus as _0x782d5,FormulaEditorPanel as _0x47c581,IBaseDashboardUIExtensionRegistryService as _0x475f81,IBaseViewUIRegistryService as _0x508eb1,MobileFormulaEditorPanel as _0x3edb60,UniverBasesMobileUIPlugin as _0x4adcce,UniverBasesUIPlugin as _0x255ca3,formulaToEditorFormula as _0x47b245,normalizeEditorFormulaForConfig as _0x47ab15,toFormulaMenuTables as _0x2afc8d,toMenuFields as _0xfb2dac}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x777c64,ChartAxisSection as _0x4f9809,ChartColorField as _0x3b005c,ChartCommonDataMappingSection as _0x215c50,ChartEditBlockTitle as _0x1dc825,ChartEditPanel as _0x24a4c3,ChartEditPanelSection as _0x4fbb3c,ChartEditPanelTab as _0x66773d,ChartEditPanelTabs as _0x531ef4,ChartEditorCapability as _0x4f0d5d,ChartEditorProvider as _0x44ba09,ChartFunnelStyleSection as _0x1a89aa,ChartGradientFillField as _0x5446d4,ChartGridlinesAndTicksSection as _0x507867,ChartHeatmapStyleSection as _0x129683,ChartHostAdapter as _0x1b56a9,ChartIndicatorLineSection as _0x5207e9,ChartLegendSection as _0x132084,ChartLineAndAreaSection as _0x2f03f7,ChartNumberFormatAtom as _0x43f297,ChartParetoSeriesSection as _0x6a1abb,ChartPieStyleSection as _0x782d62,ChartRadarStyleSection as _0x5b4358,ChartRelationStyleSection as _0x30b843,ChartSectionAccordion as _0x176760,ChartSectionAccordionContent as _0x58bf4b,ChartSectionAccordionItem as _0x17d75d,ChartSectionAccordionTrigger as _0x3e8f11,ChartSeriesSection as _0x95cd68,ChartStackField as _0x23a4c3,ChartStyleSection as _0x403f96,ChartThemeField as _0x380243,ChartThreeDSection as _0x12c722,ChartTitlesSection as _0x533222,ChartTrendlineSection as _0x2c7234,ChartTypeField as _0x623fe,ChartTypeSpecificDataSection as _0x1a5bff,ChartTypeSpecificSetupSection as _0x3d9f3c,ChartTypeSpecificStyleSection as _0x4f919a,ChartUIService as _0xcf3349,ChartViewStateRegistry as _0x3b1b72,ChartWaterfallSetupFields as _0x3e6c73,ChartWaterfallStyleSection as _0x189b03,ChartWordCloudStyleSection as _0x1d5b30,DEFAULT_CHART_AXIS_VALUES as _0x4b7c48,DEFAULT_CHART_FUNNEL_VALUES as _0x2425d6,DEFAULT_CHART_HEATMAP_VALUES as _0x34d401,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x89d8f0,DEFAULT_CHART_LEGEND_VALUES as _0x4e4d4b,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x305c9e,DEFAULT_CHART_PARETO_VALUES as _0x13cc6b,DEFAULT_CHART_PIE_VALUES as _0x28f162,DEFAULT_CHART_RADAR_VALUES as _0x4ad53f,DEFAULT_CHART_RELATION_VALUES as _0x102f37,DEFAULT_CHART_SERIES_VALUES as _0x1f143d,DEFAULT_CHART_STYLE_VALUES as _0x5209eb,DEFAULT_CHART_TITLE_VALUES as _0x4ced2d,DEFAULT_CHART_TRENDLINE_VALUES as _0x38d718,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x4e066c,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x3c4e32,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x546560,MobileChartEditorControls as _0x573640,MobileChartEditorProvider as _0x422ba9,UniverChartMobileUIPlugin as _0x4fac13,UniverChartUIPlugin as _0x559077,buildChartTypeSelectOptions as _0x1bca48,chartTypeSupportsCapability as _0x1d3b69,chartTypeSupportsLineAndAreaStyle as _0x222850,useChartEditorChartType as _0x4062bc,useChartEditorHasRightAxis as _0x312db6}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x138d6e}from'@univerjs-pro/license';import{ShapeFormulaService as _0x43ded2,UniverShapeEditorPlugin as _0xd85df1,createFormulaShapeData as _0x4027ac}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0x3f2f3b,BaseFilterConjunction as _0x47b446,BaseFilterOperator as _0x58020d,BaseViewType as _0x4ec201,DependentOn as _0x18504d,Disposable as _0x2b17e2,ICommandService as _0x4a773c,IConfigService as _0x5e932d,IImageIoService as _0xc6de23,ILogService as _0x44e345,IPermissionService as _0xd071cb,IUndoRedoService as _0x3b1640,IUniverInstanceService as _0x144775,ImageSourceType as _0x55ad71,Inject as _0x346fbc,Injector as _0x9ca0eb,LocaleService as _0x51de0a,ObjectPermissionService as _0x19d4a8,Plugin as _0x12151f,RedoCommand as _0x372344,ThemeService as _0x52f5e2,UndoCommand as _0x3d9772,UniverInstanceType as _0x160ed0,createParagraphId as _0x18fe69,dateKit as _0x8f4376,debounce as _0x356e73,generateRandomId as _0x3dac7b,merge as _0x3d5506,numfmt as _0x415bf1,touchDependencies as _0x4a083e}from'@univerjs/core';import{UniverDocsUIPlugin as _0x351b40}from'@univerjs/docs-ui';import{ArrowDownIcon as _0x23dcce,ArrowUpIcon as _0x5cdc9f,AscendingIcon as _0x52230b,CalendarIcon as _0x353aa7,ChartIcon as _0x4c651f,CloseIcon as _0x68937f,DeleteIcon as _0x140734,DescendingIcon as _0x404137,ExpandIcon as _0x19f77a,FilterIcon as _0x50dfce,GripVerticalIcon as _0x56435c,IncreaseIcon as _0x5a5e3d,MoreDownIcon as _0x27fd1a,MoreHorizontalIcon as _0x2ae422,NumberIcon as _0x519617,PenIcon as _0x579511,PivotTableIcon as _0x46a4b4,ProtectIcon as _0x56d64d,RedoIcon as _0x21d4d7,SearchIcon as _0x3f6321,TextIcon as _0x21875f,UndoIcon as _0x44b3b1}from'@univerjs/icons';import{combineLatest as _0x14fb38,map as _0x3dd263,merge as _0x3b3651,skip as _0x51a852}from'rxjs';import{SetBasePermissionCommand as _0x54bb96,getBaseDashboardPermissionObjectId as _0x5d041f}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x2b6ea6}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x3370d4,ShapeLineTypeEnum as _0x3941ff,ShapeTypeEnum as _0x5039fb}from'@univerjs-pro/engine-shape';import{Button as _0x2e1096,Checkbox as _0x5e364b,DatePicker as _0x4233f7,Dialog as _0x214192,DropdownMenu as _0x2049bb,Input as _0x4f1ee0,InputNumber as _0x770794,MobileDialog as _0x5e0b65,MobileDropdownMenu as _0x95003,MobileSelect as _0x2b3300,MultipleSelect as _0x27525a,Segmented as _0x35fc77,Select as _0x8bae00,Textarea as _0x439fc9,Tooltip as _0xe14895,borderClassName as _0x25ef46,clsx as _0x43bd71,scrollbarClassName as _0x178403}from'@univerjs/design';import{UnitObject as _0x2e13ef}from'@univerjs/protocol';import{ILayoutService as _0x2fc378,ObjectPermissionButton as _0x520a27,openObjectPermissionDialog as _0x4b14fb,useDependency as _0xb3eab7,useObservable as _0x97415f}from'@univerjs/ui';import{useCallback as _0x547d95,useEffect as _0x2153d6,useMemo as _0x2a7f67,useRef as _0x52068e,useState as _0x277721}from'react';import{Fragment as _0x1ef66a,jsx as _0x1af9b,jsxs as _0x52e710}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x3a53b0,ChartRenderMode as _0x49e938,ChartThemeService as _0x1ef0b9,ChartTypeBits as _0x3e0f4e,ChartWaterfallStyleTarget as _0x11f14c,IChartRenderModelManagerService as _0x7c1a1c,RTLChartStyle as _0x4f7330,chartBitsUtils as _0x29c223,chartTypeCanUseTrendLine as _0x479078,resolveChartRuntimeStyle as _0x596b44,resolveDefaultChartHostFrameStyle as _0xe9cc3f,toChartModelUpdate as _0xaa6a7c}from'@univerjs-pro/engine-chart';import{createPortal as _0x511ab4}from'react-dom';import{PivotCellStyleTypeEnum as _0x3fce02,PivotDataFieldDataTypeEnum as _0x4bea43,PivotDataFieldSortOperatorEnum as _0x42703e,PivotFilterTypeEnum as _0x43d698,PivotLayoutTypeEnum as _0x27edfb,PivotSubtotalPositionEnum as _0x1ce76a,PivotSubtotalTypeEnum as _0x37b485,PivotTableFiledAreaEnum as _0x2e2ea1,PivotTableValuePositionEnum as _0x3188ad,isErrorValue as _0x48662d,isPrefixValue as _0x1d612e}from'@univerjs-pro/engine-pivot';var mr=_0x219009(0x214),hr=_0x219009(0x49c);const gr=_0x219009(0x24b),_r={};function vr(_0x46f9bc,_0x30cb1c){const _0x4a2e73=_0x219009;let _0x2ab302=_0xb3eab7(_0xd071cb),_0x44639f=_0x108b4a(_0x2ab302,_0x46f9bc,_0x30cb1c);return _0x97415f(()=>_0x2ab302[_0x4a2e73(0x3e8)][_0x4a2e73(0x20d)](_0x3dd263(()=>_0x108b4a(_0x2ab302,_0x46f9bc,_0x30cb1c))),_0x44639f,!0x1,[_0x30cb1c,_0x2ab302,_0x46f9bc]);}function yr(_0x24a65b,_0x2b1508,_0x1d33fb){const _0x4a0a3b=_0x219009;let _0x26f95a=_0xb3eab7(_0xd071cb),_0x50b49a=_0x58ffc2(_0x26f95a,_0x24a65b,_0x2b1508,_0x1d33fb);return _0x97415f(()=>_0x26f95a[_0x4a0a3b(0x3e8)]['pipe'](_0x3dd263(()=>_0x58ffc2(_0x26f95a,_0x24a65b,_0x2b1508,_0x1d33fb))),_0x50b49a,!0x1,[_0x26f95a,_0x2b1508,_0x24a65b,_0x1d33fb]);}function br(_0x5d5f34,_0x2c2402=_0x219009(0x3de)){const _0x1a8110=_0x219009;return{'backgroundImage':'url('+JSON[_0x1a8110(0x18a)](_0x5d5f34)+')','backgroundPosition':_0x2c2402===_0x1a8110(0x3b5)?_0x1a8110(0x283):'center','backgroundRepeat':_0x2c2402===_0x1a8110(0x3b5)?'repeat':_0x1a8110(0x19c),'backgroundSize':_0x2c2402===_0x1a8110(0x3de)?_0x1a8110(0x3de):_0x1a8110(0x2a9)};}const xr={'alignment':_0x219009(0x357),'currency':_0x219009(0x311),'decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x219009(0x2a9),'numberFormat':_0x219009(0x334)},Sr={'CNY':'¥','EUR':'€','USD':'$'};function Cr(_0x3e07ca){const _0x4dd5d3=_0x219009;var _0x5632c5;let _0x2bcbcc=Dr(((_0x5632c5=_0x3e07ca[_0x4dd5d3(0x21c)][_0x4dd5d3(0x21e)])==null||(_0x5632c5=_0x5632c5[_0x4dd5d3(0x22f)])==null?void 0x0:_0x5632c5['pattern'])??'');return{...xr,..._0x2bcbcc,..._0x3e07ca['appearance']};}function wr(_0x4ec7b7,_0xa919be){const _0x11a8c4=_0x219009;let _0x5a014f={..._0x4ec7b7[_0x11a8c4(0x384)],..._0xa919be},_0x5e0756=Cr({..._0x4ec7b7,'appearance':_0x5a014f}),_0x1a1b08=_0x4ec7b7[_0x11a8c4(0x21c)][_0x11a8c4(0x21e)]??{'formula':''};return{..._0x4ec7b7,'appearance':_0x5a014f,'shapeData':{..._0x4ec7b7['shapeData'],'formulaBinding':{..._0x1a1b08,'numberFormat':{'pattern':Tr(_0x5e0756[_0x11a8c4(0x22f)],_0x5e0756['decimalPlaces'],_0x5e0756['currency'])}}}};}function Tr(_0x520c03,_0x2eb997,_0x4c29d7){const _0x3adb36=_0x219009;let _0x30fb05=Math[_0x3adb36(0x2eb)](0x0,Math[_0x3adb36(0x466)](0x8,Math[_0x3adb36(0x28e)](_0x2eb997))),_0x4d87d0=_0x30fb05?'.'+'0'[_0x3adb36(0x3b5)](_0x30fb05):'';switch(_0x520c03){case _0x3adb36(0x24f):return'0'+_0x4d87d0;case _0x3adb36(0x465):return'0'+_0x4d87d0+'%';case _0x3adb36(0x414):return(Sr[_0x4c29d7]??_0x4c29d7)+_0x3adb36(0x2e0)+_0x4d87d0;case _0x3adb36(0x264):return _0x3adb36(0x2e0)+_0x4d87d0;case _0x3adb36(0x449):case _0x3adb36(0x334):return _0x3adb36(0x452);}}function Er(_0x1ed2a1,_0x6f3fd2,_0x4b5db0){const _0x14e921=_0x219009;return _0x4b5db0['numberFormat']!=='compact'||typeof _0x6f3fd2!='number'||!Number['isFinite'](_0x6f3fd2)?_0x1ed2a1:new Intl['NumberFormat'](void 0x0,{'notation':_0x14e921(0x449),'minimumFractionDigits':_0x4b5db0[_0x14e921(0x497)]??0x0,'maximumFractionDigits':_0x4b5db0[_0x14e921(0x497)]??0x0})[_0x14e921(0x467)](_0x6f3fd2);}function Dr(_0x4cdbb9){const _0x318f2c=_0x219009;var _0x4f8fbf,_0x33bbe3;if(!_0x4cdbb9||_0x4cdbb9===_0x318f2c(0x452))return{};let _0x1d4af2=_0x4cdbb9[_0x318f2c(0x226)](/\.([0#]+)/),_0x57f7cb=(_0x1d4af2==null||(_0x4f8fbf=_0x1d4af2[0x1])==null?void 0x0:_0x4f8fbf[_0x318f2c(0x348)])??0x0;if(_0x4cdbb9[_0x318f2c(0x481)]('%'))return{'decimalPlaces':_0x57f7cb,'numberFormat':_0x318f2c(0x465)};let _0x2281ea=(_0x33bbe3=Object[_0x318f2c(0x40e)](Sr)[_0x318f2c(0x3ae)](([,_0x4363e6])=>_0x4cdbb9[_0x318f2c(0x481)](_0x4363e6)))==null?void 0x0:_0x33bbe3[0x0];return _0x2281ea?{'currency':_0x2281ea,'decimalPlaces':_0x57f7cb,'numberFormat':_0x318f2c(0x414)}:{'decimalPlaces':_0x57f7cb,'numberFormat':_0x4cdbb9[_0x318f2c(0x481)](',')?_0x318f2c(0x264):_0x318f2c(0x24f)};}const Or={'center':_0x219009(0x403),'left':_0x219009(0x3e0),'right':'flex-end'};function kr({dashboardId:_0x1e40ae,unitId:_0x5c8633,widget:_0xba9a11}){const _0x17846d=_0x219009;var _0x3553be,_0x3fba78,_0x40f74f,_0x1f072f,_0xa64b16,_0x3a30a6,_0x233fef,_0x20e9f5,_0x21f7ec;let _0x1c792f=_0xb3eab7(_0x43ded2),_0x163112=_0xb3eab7(_0xc6de23),_0x5abbcd=_0xb3eab7(_0x51de0a),_0x1faa16=_0x2a7f67(()=>({'hostType':_0x160ed0[_0x17846d(0x1b7)],'unitId':_0x5c8633,'subUnitId':_0x1e40ae,'shapeId':_0xba9a11['id']}),[_0x1e40ae,_0x5c8633,_0xba9a11['id']]),[_0x3f8a75,_0x498f3b]=_0x277721(()=>_0x1c792f[_0x17846d(0x1c7)](_0x1faa16)),[_0x1cf424,_0x54e3d5]=_0x277721(()=>{const _0x32246f=_0x17846d;var _0xe8b859;return(_0xe8b859=_0x1c792f[_0x32246f(0x1ea)](_0x1faa16))==null?void 0x0:_0xe8b859[_0x32246f(0x286)];}),[_0x4ee282,_0x466a69]=_0x277721(),_0x4b6101=_0x52068e(null),_0x15a4fa=_0x52068e(null),_0x196665=Cr(_0xba9a11);_0x2153d6(()=>{const _0x2b880d=_0x17846d;let _0x20f45c=_0x1c792f[_0x2b880d(0x490)][_0x2b880d(0x1a4)](_0x172e91=>{const _0x42bb7f=_0x2b880d;_0x172e91['unitId']===_0x5c8633&&_0x172e91[_0x42bb7f(0x3c1)]===_0x1e40ae&&_0x172e91[_0x42bb7f(0x49d)]===_0xba9a11['id']&&(_0x498f3b(_0x172e91['presentation']),_0x54e3d5(_0x172e91[_0x42bb7f(0x234)][_0x42bb7f(0x286)]));});return()=>_0x20f45c[_0x2b880d(0x40b)]();},[_0x1e40ae,_0x1c792f,_0x1faa16,_0x5c8633,_0xba9a11['id']]),_0x2153d6(()=>{const _0x2ef084=_0x17846d;let _0x2d5499=_0x196665['backgroundImage'];if(!_0x2d5499||_0x2d5499[_0x2ef084(0x33f)]!==_0x55ad71[_0x2ef084(0x2e3)])return;let _0x4e5827=_0x163112[_0x2ef084(0x1e5)](_0x2d5499[_0x2ef084(0x252)],_0x2d5499[_0x2ef084(0x33f)]);if(_0x4e5827!=null&&_0x4e5827[_0x2ef084(0x288)])return;let _0x49a4f4=!0x0;return _0x163112[_0x2ef084(0x433)](_0x2d5499[_0x2ef084(0x252)])[_0x2ef084(0x3ab)](_0x2a5362=>{const _0x666a02=_0x2ef084;_0x49a4f4&&_0x466a69({'source':_0x2d5499[_0x666a02(0x252)],'value':_0x2a5362});})['catch'](()=>void 0x0),()=>{_0x49a4f4=!0x1;};},[_0x196665[_0x17846d(0x3fb)],_0x163112]);let _0x5c626b=((_0x3553be=_0x196665[_0x17846d(0x3fb)])==null?void 0x0:_0x3553be[_0x17846d(0x33f)])===_0x55ad71[_0x17846d(0x2e3)]?((_0x3fba78=_0x163112['getImageSourceCache'](_0x196665[_0x17846d(0x3fb)][_0x17846d(0x252)],_0x196665[_0x17846d(0x3fb)][_0x17846d(0x33f)]))==null?void 0x0:_0x3fba78[_0x17846d(0x288)])??((_0x4ee282==null?void 0x0:_0x4ee282[_0x17846d(0x252)])===_0x196665['backgroundImage'][_0x17846d(0x252)]?_0x4ee282[_0x17846d(0x286)]:''):((_0x40f74f=_0x196665[_0x17846d(0x3fb)])==null?void 0x0:_0x40f74f[_0x17846d(0x252)])??'',_0x2283ec=_0xba9a11['shapeData'][_0x17846d(0x3dd)],_0x7bbe83=_0x2283ec&&'dataModel'in _0x2283ec?(_0x1f072f=_0x2283ec['dataModel'])==null?void 0x0:_0x1f072f[_0x17846d(0x45c)]:void 0x0,_0x105864=Er((_0x3f8a75==null?void 0x0:_0x3f8a75[_0x17846d(0x209)])??'',_0x1cf424,_0x196665),_0x197d91=_0xba9a11[_0x17846d(0x21c)]['fill'],_0x4c2dac=_0xba9a11[_0x17846d(0x21c)][_0x17846d(0x2a8)],_0x58fb81=_0x7bbe83==null||(_0xa64b16=_0x7bbe83[_0x17846d(0x325)])==null?void 0x0:_0xa64b16[_0x17846d(0x398)],_0x763521=_0xba9a11[_0x17846d(0x2bc)]??_0xba9a11[_0x17846d(0x4a8)]??'';return _0x2153d6(()=>{const _0x508b0e=_0x17846d;let _0x5a0da1=_0x4b6101[_0x508b0e(0x2bd)],_0x269b82=_0x15a4fa[_0x508b0e(0x2bd)];if(!_0x5a0da1||!_0x269b82)return;let _0x82481f=()=>{const _0x2f3f35=_0x508b0e;if(_0x196665['fontSizeMode']===_0x2f3f35(0x492)||!_0x5a0da1['clientWidth']||!_0x5a0da1['clientHeight']){_0x269b82['style'][_0x2f3f35(0x25d)]=_0x196665[_0x2f3f35(0x25d)]+'px';return;}let _0x5f6ada=0x1,_0x7c01a9=0x48,_0xb552d6=_0x5f6ada;for(;_0x5f6ada<=_0x7c01a9;){let _0x1557e6=Math[_0x2f3f35(0x2f1)]((_0x5f6ada+_0x7c01a9)/0x2);_0x269b82[_0x2f3f35(0x424)][_0x2f3f35(0x25d)]=_0x1557e6+'px',_0x269b82[_0x2f3f35(0x469)]<=_0x5a0da1[_0x2f3f35(0x485)]&&_0x269b82['scrollHeight']<=_0x5a0da1['clientHeight']?(_0xb552d6=_0x1557e6,_0x5f6ada=_0x1557e6+0x1):_0x7c01a9=_0x1557e6-0x1;}_0x269b82[_0x2f3f35(0x424)][_0x2f3f35(0x25d)]=_0xb552d6+'px';};if(_0x82481f(),typeof ResizeObserver>'u')return;let _0x51af6f=new ResizeObserver(_0x82481f);return _0x51af6f[_0x508b0e(0x1d8)](_0x5a0da1),()=>_0x51af6f[_0x508b0e(0x450)]();},[_0x196665[_0x17846d(0x25d)],_0x196665['fontSizeMode'],_0x105864]),_0x52e710(_0x17846d(0x173),{'data-dashboard-formula-shape':_0xba9a11['id'],'className':_0x17846d(0x36d),'style':{'backgroundColor':((_0x3a30a6=_0xba9a11['appearance'])==null?void 0x0:_0x3a30a6[_0x17846d(0x34d)])??((_0x197d91==null?void 0x0:_0x197d91[_0x17846d(0x4c9)])===_0x3370d4[_0x17846d(0x178)]?_0x197d91[_0x17846d(0x265)]??void 0x0:void 0x0),'border':(_0x4c2dac==null?void 0x0:_0x4c2dac[_0x17846d(0x1ba)])===_0x3941ff[_0x17846d(0x26a)]?(_0x4c2dac[_0x17846d(0x25a)]??0x1)+_0x17846d(0x425)+(_0x4c2dac[_0x17846d(0x265)]??_0x17846d(0x2e8)):void 0x0,'borderRadius':_0xba9a11['shapeType']===_0x5039fb[_0x17846d(0x313)]?0xc:void 0x0,'color':((_0x233fef=_0xba9a11[_0x17846d(0x384)])==null?void 0x0:_0x233fef[_0x17846d(0x321)])??(_0x3f8a75==null?void 0x0:_0x3f8a75[_0x17846d(0x265)])??(_0x58fb81==null||(_0x20e9f5=_0x58fb81['cl'])==null?void 0x0:_0x20e9f5[_0x17846d(0x3d9)])??void 0x0,'fontWeight':_0x58fb81!=null&&_0x58fb81['bl']?0x258:void 0x0,'textAlign':_0x196665['alignment']},'children':[_0x5c626b&&_0x1af9b(_0x17846d(0x397),{'src':_0x5c626b,'alt':'','aria-hidden':_0x17846d(0x1be),'className':_0x17846d(0x276),'style':{'objectFit':((_0x21f7ec=_0x196665[_0x17846d(0x3fb)])==null?void 0x0:_0x21f7ec[_0x17846d(0x180)])??_0x17846d(0x3de)}}),_0x52e710(_0x17846d(0x173),{'className':_0x17846d(0x31e),'children':[_0x763521&&_0x1af9b(_0x17846d(0x173),{'data-dashboard-formula-description':!0x0,'className':_0x17846d(0x3e9),'children':_0x763521}),_0x1af9b(_0x17846d(0x173),{'ref':_0x4b6101,'data-dashboard-formula-value':!0x0,'aria-label':_0x763521||_0x5abbcd['t'](_0x17846d(0x35d)),'className':_0x17846d(0x36c),'style':{'justifyContent':Or[_0x196665[_0x17846d(0x3a9)]]},'children':_0x1af9b(_0x17846d(0x46c),{'ref':_0x15a4fa,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x196665[_0x17846d(0x4b2)],'className':'univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','children':_0x105864})})]})]});}function Y(_0x442515,_0x5a62cb){return function(_0x17ffbe,_0x2b4aa9){_0x5a62cb(_0x17ffbe,_0x2b4aa9,_0x442515);};}function Ar(_0x18ad2b,_0x4e9f13,_0x393604,_0x2d310e){const _0x3f8508=_0x219009;var _0x852171=arguments[_0x3f8508(0x348)],_0x302113=_0x852171<0x3?_0x4e9f13:_0x2d310e===null?_0x2d310e=Object['getOwnPropertyDescriptor'](_0x4e9f13,_0x393604):_0x2d310e,_0x3ebdcb;if(typeof Reflect==_0x3f8508(0x43c)&&typeof Reflect['decorate']==_0x3f8508(0x27d))_0x302113=Reflect[_0x3f8508(0x4b1)](_0x18ad2b,_0x4e9f13,_0x393604,_0x2d310e);else{for(var _0x300125=_0x18ad2b[_0x3f8508(0x348)]-0x1;_0x300125>=0x0;_0x300125--)(_0x3ebdcb=_0x18ad2b[_0x300125])&&(_0x302113=(_0x852171<0x3?_0x3ebdcb(_0x302113):_0x852171>0x3?_0x3ebdcb(_0x4e9f13,_0x393604,_0x302113):_0x3ebdcb(_0x4e9f13,_0x393604))||_0x302113);}return _0x852171>0x3&&_0x302113&&Object[_0x3f8508(0x44d)](_0x4e9f13,_0x393604,_0x302113),_0x302113;}let jr=class{constructor(_0x31b642,_0x2f236b,_0xead1bc){const _0x4657ab=_0x219009;this[_0x4657ab(0x1db)]=_0x31b642,this[_0x4657ab(0x349)]=_0x2f236b,this[_0x4657ab(0x1c1)]=_0xead1bc;}['createDomChartInstance'](){const _0x24ed16=_0x219009;return this['_renderModelManager'][_0x24ed16(0x3f3)](_0x49e938[_0x24ed16(0x470)],this[_0x24ed16(0x32c)]());}[_0x219009(0x2d6)](_0x3eec72){const _0x1ec5e6=_0x219009;let _0x15a4e2=_0x3eec72[_0x1ec5e6(0x2e7)]['config'];if(!_0x15a4e2)throw Error(_0x1ec5e6(0x277)+_0x3eec72['chartId']+_0x1ec5e6(0x394));let _0x48e8ee=this[_0x1ec5e6(0x1db)]['getDirection']();return{'config':_0x15a4e2,'style':_0x596b44({..._0x3eec72['model'][_0x1ec5e6(0x424)],'runtime':_0x3eec72[_0x1ec5e6(0x2e7)][_0x1ec5e6(0x1c0)](_0x48e8ee),'direction':_0x48e8ee},_0x15a4e2[_0x1ec5e6(0x4b9)])};}[_0x219009(0x32c)](){const _0x17d0ed=_0x219009;return{'resolveHostStyle':({style:_0x3fc441})=>_0xe9cc3f({'style':_0x3fc441,'getRenderColor':_0x73ac54=>this[_0x17d0ed(0x349)][_0x17d0ed(0x35f)](_0x73ac54)}),'resolveRenderBackgroundColor':({hostStyle:_0x31a1cd})=>_0x31a1cd[_0x17d0ed(0x28d)]};}};jr=Ar([Y(0x0,_0x346fbc(_0x51de0a)),Y(0x1,_0x346fbc(_0x1ef0b9)),Y(0x2,_0x7c1a1c)],jr);function Mr(_0x17bf8e,_0x49427c){const _0x3589d9=_0x219009;var _0x45fe96;_0x17bf8e[_0x3589d9(0x424)]['backgroundColor']=_0x49427c['fill']??_0x3589d9(0x4a3),_0x17bf8e[_0x3589d9(0x424)][_0x3589d9(0x3c6)]=(_0x45fe96=_0x49427c[_0x3589d9(0x3c6)])!=null&&_0x45fe96[_0x3589d9(0x265)]&&_0x49427c['border'][_0x3589d9(0x25a)]?_0x49427c[_0x3589d9(0x3c6)][_0x3589d9(0x25a)]+'px\x20solid\x20'+_0x49427c[_0x3589d9(0x3c6)]['color']:'',_0x17bf8e['style'][_0x3589d9(0x3a5)]=_0x49427c['radius']?_0x49427c[_0x3589d9(0x184)]+'px':'',_0x17bf8e[_0x3589d9(0x424)][_0x3589d9(0x464)]='hidden',_0x17bf8e['style'][_0x3589d9(0x1dd)]=_0x3589d9(0x208);}function Nr(_0x3aeb67){'@babel/helpers - typeof';const _0x1be451=_0x219009;return Nr=typeof Symbol==_0x1be451(0x27d)&&typeof Symbol[_0x1be451(0x379)]==_0x1be451(0x2b3)?function(_0x2caa9){return typeof _0x2caa9;}:function(_0x441a7f){const _0x1ddbb3=_0x1be451;return _0x441a7f&&typeof Symbol==_0x1ddbb3(0x27d)&&_0x441a7f['constructor']===Symbol&&_0x441a7f!==Symbol[_0x1ddbb3(0x281)]?_0x1ddbb3(0x2b3):typeof _0x441a7f;},Nr(_0x3aeb67);}function Pr(_0x56fb64,_0x39ffa1){const _0xfc0b17=_0x219009;if(Nr(_0x56fb64)!=_0xfc0b17(0x43c)||!_0x56fb64)return _0x56fb64;var _0x525e6d=_0x56fb64[Symbol[_0xfc0b17(0x426)]];if(_0x525e6d!==void 0x0){var _0x5c91d0=_0x525e6d['call'](_0x56fb64,_0x39ffa1||_0xfc0b17(0x1ca));if(Nr(_0x5c91d0)!='object')return _0x5c91d0;throw TypeError(_0xfc0b17(0x47e));}return(_0x39ffa1===_0xfc0b17(0x380)?String:Number)(_0x56fb64);}function Fr(_0x489cc8){const _0x163382=_0x219009;var _0x117519=Pr(_0x489cc8,_0x163382(0x380));return Nr(_0x117519)=='symbol'?_0x117519:_0x117519+'';}function Ir(_0x35dbb5,_0x268b28,_0x14b193){const _0x565ffc=_0x219009;return(_0x268b28=Fr(_0x268b28))in _0x35dbb5?Object[_0x565ffc(0x44d)](_0x35dbb5,_0x268b28,{'value':_0x14b193,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x35dbb5[_0x268b28]=_0x14b193,_0x35dbb5;}var Lr=class extends _0x2b17e2{constructor(_0x4d8afa,_0x1a69da){const _0x27268b=_0x219009;super(),this[_0x27268b(0x2a2)]=_0x4d8afa,this[_0x27268b(0x187)]=_0x1a69da,Ir(this,_0x27268b(0x2b0),_0x49e938[_0x27268b(0x470)]);}['getRect'](){const _0x1ed419=_0x219009;return{'width':Math[_0x1ed419(0x2eb)](0x1,this[_0x1ed419(0x187)][_0x1ed419(0x485)]),'height':Math[_0x1ed419(0x2eb)](0x1,this[_0x1ed419(0x187)][_0x1ed419(0x179)])};}[_0x219009(0x1d0)](_0x2e42c3){Mr(this['_element'],_0x2e42c3);}async[_0x219009(0x211)](){return this['_element'];}[_0x219009(0x48c)](){const _0x365178=_0x219009;return this[_0x365178(0x187)][_0x365178(0x32b)];}[_0x219009(0x422)](){}[_0x219009(0x1cc)](){}['markNotReady'](){}};function Rr({isRowDirection:_0x1edec3,runtime:_0x57f5c9}){const _0x117d0=_0x219009;let _0x505c11=_0x52068e(null),_0x34ed38=_0xb3eab7(_0x51de0a),_0x5d9b38=_0xb3eab7(_0x44e345),_0x4c6d41=_0xb3eab7(jr),_0x36c582=_0xb3eab7(_0x52f5e2);return _0x2153d6(()=>{const _0x4395d4=_0x4abf;let _0x532553=_0x505c11[_0x4395d4(0x2bd)];if(!_0x532553)return;_0x532553[_0x4395d4(0x32f)]();let {chartId:_0x3da8bc,model:_0x4418b6}=_0x57f5c9,_0x97f035=_0x4418b6[_0x4395d4(0x2f2)],_0x1a9dec=new Lr(_0x3da8bc,_0x532553),_0x510ba4=_0x4c6d41[_0x4395d4(0x378)](),_0x35a8cb=!0x1,_0xcb93d1=null,_0x1ef691=null,_0x389860=null,_0x27591c=null,_0xa7d5c=!0x1,_0x906ab0=!0x1,_0x5eec61=Promise[_0x4395d4(0x4bb)]();_0x510ba4['bind'](_0x1a9dec);let _0x266eca=()=>{const _0x5449ad=_0x4395d4;var _0x1b9147,_0x21fa67,_0x44e798,_0x1529c4;if(document['visibilityState']===_0x5449ad(0x251)||(_0x1b9147=(_0x21fa67=window)[_0x5449ad(0x361)])!=null&&(_0x1b9147=_0x1b9147[_0x5449ad(0x391)](_0x21fa67,'(prefers-reduced-motion:\x20reduce)'))!=null&&_0x1b9147[_0x5449ad(0x461)]||(_0x44e798=(_0x1529c4=window)[_0x5449ad(0x361)])!=null&&(_0x44e798=_0x44e798[_0x5449ad(0x391)](_0x1529c4,_0x5449ad(0x40a)))!=null&&_0x44e798[_0x5449ad(0x461)]||!_0x532553[_0x5449ad(0x32b)])return!0x1;let _0x4166e5=_0x532553['getBoundingClientRect']();return _0x4166e5['width']>0x0&&_0x4166e5[_0x5449ad(0x34f)]>0x0&&_0x4166e5[_0x5449ad(0x312)]>0x0&&_0x4166e5[_0x5449ad(0x196)]>0x0&&_0x4166e5[_0x5449ad(0x357)]<window[_0x5449ad(0x233)]&&_0x4166e5[_0x5449ad(0x31d)]<window[_0x5449ad(0x256)];},_0x129651=()=>{const _0x329bc4=_0x4395d4;_0x1ef691!==null&&clearTimeout(_0x1ef691),_0x532553[_0x329bc4(0x3bd)][_0x329bc4(0x319)]=_0x329bc4(0x1be),_0x532553[_0x329bc4(0x3bd)]['baseChartDataAnimationDuration']=String(_0x3a53b0),_0x1ef691=setTimeout(()=>{const _0x54d08a=_0x329bc4;_0x1ef691=null,delete _0x532553['dataset'][_0x54d08a(0x319)],delete _0x532553[_0x54d08a(0x3bd)][_0x54d08a(0x22c)];},_0x3a53b0);},_0x1591e5=_0x356e73(()=>{const _0x12411b=_0x4395d4;if(_0x35a8cb||(_0xcb93d1!==null&&(clearTimeout(_0xcb93d1),_0xcb93d1=null),!_0x4418b6[_0x12411b(0x2dc)]))return;let _0x44b8dd=_0x906ab0;_0x906ab0=!0x1,_0x532553[_0x12411b(0x3bd)]['chartType']=String(_0x4418b6['chartType']),_0x532553[_0x12411b(0x3bd)][_0x12411b(0x2c0)]=String(_0x1edec3);let _0x5abd5c=_0x4c6d41[_0x12411b(0x2d6)](_0x57f5c9),_0x4a1572={'chartId':_0x3da8bc,'config':_0x5abd5c[_0x12411b(0x2dc)],'style':_0x5abd5c[_0x12411b(0x424)]};_0x5eec61=_0x5eec61[_0x12411b(0x3ab)](async()=>{const _0x575ed5=_0x12411b;_0x35a8cb||(_0x532553[_0x575ed5(0x3bd)][_0x575ed5(0x2c2)]=String(Number(_0x532553[_0x575ed5(0x3bd)][_0x575ed5(0x2c2)]??0x0)+0x1),_0x44b8dd&&_0x389860&&_0x510ba4['renderTransition']&&_0x266eca()?(await _0x510ba4['renderTransition'](_0x389860,_0x4a1572,{'duration':_0x3a53b0}),_0x35a8cb||_0x129651()):await _0x510ba4[_0x575ed5(0x47c)](_0x4a1572),_0x389860=_0x4a1572);})[_0x12411b(0x2c9)](_0x486988=>_0x5d9b38[_0x12411b(0x4ab)]('[BasePivotChart]\x20Failed\x20to\x20render\x20chart.',_0x486988));},0x64,{'leading':!0x0,'trailing':!0x0,'maxWait':0x64}),_0xe9bf1=(_0x162651=!0x1)=>{_0x906ab0||=_0x162651,!_0xa7d5c&&(_0xa7d5c=!0x0,queueMicrotask(()=>{_0xa7d5c=!0x1,_0x35a8cb||_0x1591e5();}));},_0x469d66=[_0x97f035['data$']['subscribe'](_0x526fa0=>{const _0x1cac2a=_0x4395d4;let _0x3c74e6=JSON[_0x1cac2a(0x18a)](_0x526fa0);_0x27591c!=null&&_0x27591c!==_0x3c74e6&&_0xe9bf1(!0x0),_0x27591c=_0x3c74e6;}),_0x4418b6[_0x4395d4(0x266)][_0x4395d4(0x1a4)](_0x174174=>{_0x174174&&_0xe9bf1();}),_0x4418b6[_0x4395d4(0x4a9)][_0x4395d4(0x1a4)](()=>_0xe9bf1()),_0x34ed38['direction$'][_0x4395d4(0x1a4)](()=>_0xe9bf1()),_0x14fb38([_0x36c582[_0x4395d4(0x341)],_0x36c582[_0x4395d4(0x40f)]])[_0x4395d4(0x20d)](_0x51a852(0x1))[_0x4395d4(0x1a4)](()=>_0xe9bf1())],_0xc7c7cc=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x367b8a=_0x4395d4;_0x35a8cb||(_0x1a9dec[_0x367b8a(0x422)](),_0xcb93d1!==null&&clearTimeout(_0xcb93d1),_0xcb93d1=setTimeout(()=>_0xe9bf1(),0x64));});return _0xc7c7cc==null||_0xc7c7cc[_0x4395d4(0x1d8)](_0x532553),()=>{const _0x5cfa51=_0x4395d4;_0x35a8cb=!0x0,_0x1591e5[_0x5cfa51(0x46b)](),_0xcb93d1!==null&&clearTimeout(_0xcb93d1),_0x1ef691!==null&&clearTimeout(_0x1ef691),delete _0x532553[_0x5cfa51(0x3bd)]['baseChartDataAnimation'],delete _0x532553[_0x5cfa51(0x3bd)]['baseChartDataAnimationDuration'],_0xc7c7cc==null||_0xc7c7cc['disconnect'](),_0x469d66[_0x5cfa51(0x2a3)](_0x5041d1=>_0x5041d1[_0x5cfa51(0x40b)]()),_0x510ba4['dispose'](),_0x1a9dec['dispose'](),_0x532553['replaceChildren']();};},[_0x1edec3,_0x34ed38,_0x5d9b38,_0x4c6d41,_0x57f5c9,_0x36c582]),_0x1af9b(_0x117d0(0x173),{'ref':_0x505c11,'data-u-comp':_0x117d0(0x1d1),'className':_0x117d0(0x1af)});}function zr({filters:_0x2c6982,onRuntimeChange:_0x4a29cd,unitId:_0x3a8cb8,widget:_0x3a2d7d}){const _0x50c720=_0x219009;let _0x2e3129=_0xb3eab7(_0x144775),_0x267aea=_0xb3eab7(_0x51de0a),_0x20e6dc=_0xb3eab7(_0x44e345),_0x13cffb=_0xb3eab7(_0x559b79),[_0x433d22,_0x38f923]=_0x277721(null),[_0x4008fb,_0x20cd8b]=_0x277721(!0x1),[_0x4f0b35,_0x2fa177]=_0x277721(null),_0x55a7e9=_0x52068e('base-dashboard-pivot-chart-'+_0x3dac7b(0x8)),_0x1d8d3a=_0x2e3129[_0x50c720(0x225)](_0x3a8cb8,_0x160ed0[_0x50c720(0x1b7)]),_0x3e9333=_0x1d8d3a==null?void 0x0:_0x1d8d3a['getSnapshot']()['tables'][_0x3a2d7d[_0x50c720(0x35c)]],_0x2cd237=_0x3e9333==null?void 0x0:_0x3e9333[_0x50c720(0x2ea)][_0x3a2d7d['pivotViewId']],_0x1c2cc0=Br(_0x2cd237);if(_0x2153d6(()=>{const _0x19d4df=_0x50c720;if(!_0x1c2cc0)return;let _0x101ced=_0x55a7e9[_0x19d4df(0x2bd)];return _0x13cffb[_0x19d4df(0x3fc)](_0x101ced,{'unitId':_0x3a8cb8,'tableId':_0x3a2d7d[_0x19d4df(0x35c)],'viewId':_0x3a2d7d[_0x19d4df(0x4c1)],'filters':[]}),()=>{const _0x16babe=_0x19d4df;_0x13cffb[_0x16babe(0x4a5)](_0x3a8cb8,_0x101ced),_0x4a29cd==null||_0x4a29cd(_0x3a2d7d['id'],null);};},[_0x1c2cc0,_0x4a29cd,_0x13cffb,_0x3a8cb8,_0x3a2d7d['id'],_0x3a2d7d[_0x50c720(0x4c1)],_0x3a2d7d[_0x50c720(0x35c)]]),_0x2153d6(()=>{const _0x42611d=_0x50c720;if(!Br(_0x2cd237))return;let _0x5a846a=!0x0,_0x19ef28=_0x3a2d7d[_0x42611d(0x2fc)]??_0x2cd237['config']['chart'],_0x4e730c={'unitId':_0x3a8cb8,'tableId':_0x3a2d7d[_0x42611d(0x35c)],'viewId':_0x3a2d7d['pivotViewId'],'filters':[_0x2cd237[_0x42611d(0x498)]??null,..._0x2c6982]};return _0x13cffb[_0x42611d(0x443)](_0x3a8cb8,_0x55a7e9[_0x42611d(0x2bd)],_0x4e730c,_0x19ef28)[_0x42611d(0x3ab)](_0x4b4a70=>{const _0x9a56=_0x42611d;if(!_0x5a846a||!_0x4b4a70)return;let _0x37eda7=_0x13cffb[_0x9a56(0x404)](_0x3a8cb8,_0x55a7e9[_0x9a56(0x2bd)])??null;_0x38f923(_0x4b4a70),_0x2fa177(_0x37eda7),_0x20cd8b(!0x1),_0x4a29cd==null||_0x4a29cd(_0x3a2d7d['id'],_0x37eda7);})[_0x42611d(0x2c9)](_0x8da4e2=>{const _0x4295f7=_0x42611d;_0x20e6dc['error'](_0x4295f7(0x4ac),_0x8da4e2),_0x5a846a&&(_0x38f923(null),_0x20cd8b(!0x0));}),()=>{_0x5a846a=!0x1;};},[_0x2c6982,_0x20e6dc,_0x4a29cd,_0x13cffb,_0x3a8cb8,_0x2cd237,_0x3a2d7d[_0x50c720(0x2fc)],_0x3a2d7d['id'],_0x3a2d7d['pivotViewId'],_0x3a2d7d[_0x50c720(0x35c)]]),!Br(_0x2cd237))return _0x1af9b(_0x50c720(0x173),{'className':_0x50c720(0x3b9),'children':_0x267aea['t'](_0x50c720(0x37d))});let _0x3c56cd=_0x13cffb['getChartRuntime'](_0x3a8cb8,_0x55a7e9[_0x50c720(0x2bd)])===_0x4f0b35?_0x4f0b35:null;return _0x433d22&&_0x3c56cd?_0x1af9b(Rr,{'isRowDirection':_0x4562e5((_0x3a2d7d[_0x50c720(0x2fc)]??_0x2cd237[_0x50c720(0x2dc)][_0x50c720(0x2fc)])[_0x50c720(0x4b4)]),'runtime':_0x3c56cd}):_0x1af9b('div',{'className':_0x50c720(0x3b9),'children':_0x267aea['t'](_0x4008fb?_0x50c720(0x4cf):_0x50c720(0x1e3))});}function Br(_0x50843b){const _0x419e7c=_0x219009;return(_0x50843b==null?void 0x0:_0x50843b[_0x419e7c(0x4b9)])===_0x4ec201[_0x419e7c(0x223)]&&typeof _0x50843b[_0x419e7c(0x2dc)]==_0x419e7c(0x43c)&&_0x50843b[_0x419e7c(0x2dc)]!==null&&_0x419e7c(0x3b3)in _0x50843b[_0x419e7c(0x2dc)]&&_0x419e7c(0x2fc)in _0x50843b[_0x419e7c(0x2dc)];}const Vr={'alignment':'left','fontSize':0x12,'fontSizeMode':'auto'};function Hr(_0x1acc69){return{...Vr,..._0x1acc69['appearance']};}function Ur(_0x19e0d6){const _0x117f32=_0x219009;var _0x2bef69;return((_0x2bef69=_0x19e0d6[_0x117f32(0x45b)])==null?void 0x0:_0x2bef69[_0x117f32(0x438)]['replace'](/\r\n$/,'')[_0x117f32(0x440)](/\r/g,'\x0a'))??'';}function _0x494c(){const _0x496f91=['createChartInstance','area','bases-dashboard-ui.chart.chartTypes.','univer-text-right','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','bases-dashboard-ui.dashboardInspector.checked','changed$','sortInfo','backgroundImage','acquireChartRuntime','univer-flex\x20univer-justify-end\x20univer-gap-2','IS_NOT','GREATER_THAN','BEFORE','header','varp','center','getChartRuntime','\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','IS_NOT_EMPTY','dom','indexOf','univer-truncate','print','unsubscribe','target','bases-dashboard-ui.chart.common.rightVerticalAxis','entries','darkMode$','LESS_THAN','get','link','PieStyle','currency','exitFullscreen','bases-dashboard-ui.chart.section.treemap','renameField','disposeWithMe','onDragEnd','Scatter','scrollTop','conjunction','dashboard-widget-','univer-size-5\x20univer-rotate-90','showColGrandTotal','bases-dashboard-ui.chart.common.customize','bases-dashboard-ui.mobile.permissions','syncLayout','ManualFilter','style','px\x20solid\x20','toPrimitive','list','cumulativeLineStyle','waterfall','repeatRowLabels','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','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','Text','requestFullscreen','pointerY','bases-dashboard-ui.chart.section.chord','contains','bases-dashboard-ui.chart.waterfall.subtotal','getImage','initialLayouts','bases-dashboard-ui.dashboardInspector.backgroundColor','addImageSourceCache','3028035zMUMze','dataStream','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','bases-dashboard-ui.pivot.rowSubtotalPosition','bases-dashboard-ui.dashboardInspector.decimalPlaces','object','executeCommand','small','map','replace','bases-dashboard-ui.operators.contains','minmax(0,\x203fr)\x20minmax(0,\x202fr)','refreshChartRuntime','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','797058uAwnla','bases-dashboard-ui.pivot.fieldSettings','setOptions','bases-dashboard-ui.operators.before','compact','univer-mx-auto\x20univer-size-6','TableFilter','updateFieldPosition','defineProperty','tables','bases-dashboard-ui.dashboardInspector.uploadImage','disconnect','closest','General','removeField','bases-dashboard-ui.chart.common.editChart','depthAxis','lastRow','bases-dashboard-ui.pivot.confirm','bases-dashboard-ui.chart.common.series','toUpperCase','bases-dashboard-ui.chart.common.heatmap','body','doc','slice','bases-dashboard-ui.dashboardInspector.autoFit','bases-dashboard-ui.dashboard.search','select','matches','Axes','CONTAINS','overflow','percent','min','format','bases-dashboard-ui.dashboard.resizeWidget','scrollWidth','split','cancel','span','article','product','chart-and-table','Dom','setSortInfo','bases-dashboard-ui.pivot.repeatColumnLabels','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','dataAggregation','bases-dashboard-ui.pivot.chartConfiguration','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','bases-dashboard-ui.dashboardInspector.reset','Value','Radar','univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','bases-dashboard-ui.dashboard.new','render','bases-dashboard-ui.dashboardInspector.unchecked','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','RecordId','bases-dashboard-ui.dashboardInspector.cover','includes','univer-pointer-events-auto\x20univer-opacity-100','waterfall.positive','saveAttachment','clientWidth','setConfig','relation','univer-mt-2','bases-dashboard-ui.operators.lessThanOrEqual','bases-dashboard-ui.pivot.variance','titles','checkMounted','univer-h-full\x20univer-w-full\x20univer-bg-transparent','dashboardOrder','_config','presentationChanged$','bases-dashboard-ui.chart.section.waterfall','custom','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-text-sm','univer-border-gray-200\x20dark:!univer-border-gray-700','5JNSYEv','decimalPlaces','filter','some','average','Data','1.3.1','shapeId','getAttachmentUrl','bases-dashboard-ui.pivot.tableOnly','row:','bases-dashboard-ui.dashboardInspector.repeat','widgets','transparent','startY','releaseChartRuntime','toJSON','chartType','title','style$','base-pivot-chart-setup','error','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.pivot.valuePosition','univer-border-0\x20univer-bg-transparent','original','univer-flex-1','decorate','fontSizeMode','kind','orient','univer-bg-transparent\x20dark:!univer-bg-transparent','bases-dashboard-ui.chart.section.pie','setLayout','contain','type','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','resolve','fullscreenElement','setSubtotalType','bases-dashboard-ui.pivot.numberFormat','descending','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','pivotViewId','colCount','file','info','widgetOrder','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','bases-dashboard-ui.chart.section.wordCloud','base-pivot-chart-style','fillType','getDashboard','bases-dashboard-ui.pivot.options','bases-dashboard-ui.pivot.grandTotal','Filter','bases-dashboard-ui.mobile.moveUp','bases-dashboard-ui.pivot.calculationFailed','univer-flex\x20univer-items-center\x20univer-gap-2','dashboard-','univer-w-24','resize','layout','toLocaleLowerCase','prefix','bases-dashboard-ui.dashboardInspector.selectOption','bases-dashboard-ui.dashboardInspector.editData','div','currentTarget','6125908AOOJPn','Rating','univer-grid\x20univer-gap-3','SolidFill','clientHeight','move','IS_EMPTY','ChartAndAxisTitles','Bubble','bases-dashboard-ui.pivot.description','bases-dashboard-ui.pivot.top','fit','from','bases-dashboard-ui.dashboard.redo','rowSubtotalPosition','radius','input','WordCloud','_element','getFieldCountByArea','values','stringify','bases-dashboard-ui.pivot.addToRow','bases-dashboard-ui.dashboardInspector.data','dataFieldId','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.addToColumn','getTableFieldsByDataFieldId','MultipleGrandTotal','alt','false','bases-dashboard-ui.chart.common.switchRowColumn','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','bottom','dashboard-chart-style','section','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','bases-dashboard-ui.pivot.chartOnly','bases-dashboard-ui.dashboardInspector.compact','no-repeat','bases-dashboard-ui.chart.section.candlestick','Sankey','bases-dashboard-ui.chart.chartTypes.line','group','PivotChart','Area','45dbfImo','subscribe','bases-dashboard-ui.pivot.display','bases-dashboard-ui.pivot.cancel','CreatedAt','clientY','bases-dashboard-ui.dashboardInspector.delete','univer-bg-gray-0\x20dark:!univer-bg-gray-900','formula','onMoveUp','bases-dashboard-ui.pivot.ascending','flatMap','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','bases-dashboard-ui.pivot.showRowGrandTotal','repeatColLabels','push','clientX','toDate','pointermove','bases-dashboard-ui.operators.is','UNIVER_BASE','destructive','removeEventListener','lineStrokeType','isBottomTotal','updateValuePosition','onStarting','true','packageName','getRuntimeContext','_renderModelManager','button','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','lastCol','wordCloud','paragraphId','getPresentation','bases-dashboard-ui.pivot.removeField','fields','default','fieldId','markReady','heatmap','pageRows','IndicatorLine','setStyle','base-pivot-chart','getOptions','bases-dashboard-ui.dashboard.image','focusUnit','end','label','bases-dashboard-ui.dashboard.delete','observe','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','_localeService','bases-dashboard-ui.chart.section.paretoBar','boxSizing','bases-dashboard-ui.dashboardInspector.description','bases-dashboard-ui.pivot.addToFilter','executeChartUpdateConfig','bases-dashboard-ui.pivot.downThenAcross','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','bases-dashboard-ui.pivot.calculating','\x20/\x20span\x20','getImageSourceCache','stdDev','bases-dashboard-ui.pivot.min','onDragOver','univer-m-3','getResult','bases-dashboard-ui.chart.common.chartAndAxisTitles','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','Date','pageWrap','Relation','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','isArray','pointerup','ParetoLineSeries','redos','date','series','MultiSelect','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','item','_configService','bases-dashboard-ui.dashboard.tableFilter','univer-mb-2\x20univer-border-collapse\x20univer-text-sm','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','bases-dashboard-ui.pivot.product','bases-dashboard-ui.pivot.chartAndTable','bases-dashboard-ui.pivot.searchFields','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','outline','showRowGrandTotal','bases-dashboard-ui.dashboardInspector.clear','onDragStart','getSnapshot','columnSpan','border-box','text','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','Image','pipe','bases-dashboard-ui.operators.greaterThan','bases-dashboard-ui.pivot.dataSource','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','ensureMount','UpdatedAt','setFieldFormat','@univerjs-pro/bases-dashboard-ui','operand','bases-dashboard-ui.pivot.defaultName','set','BASE_DASHBOARD_UI_PLUGIN','FormulaShape','AND','onCancel','shapeData','allSeriesStyle','formulaBinding','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','countNums','bases-dashboard-ui.pivot.dropFieldsHere','pageOverThenDown','Pivot','rowSpan','getUnit','match','dashboard-chart-setup','univer-flex\x20univer-flex-col\x20univer-gap-4','univer-w-36','univer-min-w-0\x20univer-flex-1','keydown','baseChartDataAnimationDuration','documentElement','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','numberFormat','bases-dashboard-ui.dashboard.defaultName','pageView','fieldOrder','innerWidth','result','system','segmented','saveImage','supports','rowCount','_injector','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','onReady','columnFields','grandTotal','context','allowMultiple','count','scrollHeight','getFieldPositionInfoById','AFTER','onMoveDown','Gauge','GeneralSeries','bases-dashboard-ui.mobile.moveDown','bases-dashboard-ui.pivot.pageDirection','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','bases-dashboard-ui.config','fullscreenchange','bases-dashboard-ui.pivot.addToValue','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','number','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','hidden','source','Pareto','\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','getResource','innerHeight','bases-dashboard-ui.dashboardInspector.enterValue','itemTypes','univer-text-gray-400','width','Style','univer-min-h-11\x20univer-px-3\x20univer-text-base','fontSize','NOT_CONTAINS','baseOn','field','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','thead','grouped','color','config$','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','getValueIndex','tbody','SolidLine','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','onDrop','bases-dashboard-ui.dashboardInspector.editFormula','bases-dashboard-ui.operators.notContains','\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','Currency','Series','bases-dashboard-ui.dashboard.undo','Progress','bases-dashboard-ui.chart.','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','Base\x20dashboard\x20chart\x20','bases-dashboard-ui.dashboardInspector.alignment','dataView','bases-dashboard-ui.dashboardInspector.replaceImage','data:','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','function','bases-dashboard-ui.pivot.acrossThenDown','onCommit','delete','prototype','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','0\x200','bases-dashboard-ui.pivot.fields','univer-cursor-grab','value','bases-dashboard-ui.pivot.pageWrap','src','bases-dashboard-ui.dashboard.section','rightYAxis','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','isSubtotal','fill','round','211PAzhDZ','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','bases-dashboard-ui.pivot.layoutOutline','bases-dashboard-ui.dashboardInspector.general','getId','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','document','univer-flex\x20univer-h-auto\x20univer-min-h-12\x20univer-shrink-0\x20univer-flex-wrap\x20univer-items-center\x20univer-gap-1\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.filters','dashboard-text-','bases-dashboard-ui.dashboard.text','LineAndArea','axis','headerMap','base-pivot-chart-','change','imageSourceType','bases-dashboard-ui.pivot.name','aside','chartId','forEach','minmax(0,\x201fr)','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.dashboardInspector.style','bases-dashboard-ui.dashboardInspector.textSize','stroke','auto','tableOrder','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','stopPropagation','bases-dashboard-ui.pivot.summarizeBy','univer-cursor-grabbing','displayName','mode','bases-dashboard-ui.dashboardInspector.currencyCode','valueIndex','symbol','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','bases-dashboard-ui.dashboard.widgetActions','size','univer-flex\x20univer-gap-2','bases-dashboard-ui.dashboardInspector.numberFormat','bases-dashboard-ui.dashboardInspector.formula','univer-size-4','parentElement','description','current','tabular','corner:','chartRowDirection','key','renderRevision','addFieldWithSourceId','7144sWKUOv','register','\x20/\x20','bases-dashboard-ui.dashboardInspector.removeImage','65506010NhEggx','catch','bases-dashboard-ui.chart.section.sunburst','GrandTotal','bases-dashboard-ui.operators.greaterThanOrEqual','bases-dashboard-ui.dashboardInspector.dragWidget','Row','resizeDirection','onFilter','onRemove','univer-flex\x20univer-flex-col','cornerView','bases-dashboard-ui.pivot.layoutCompact','bases-dashboard-ui.pivot.max','createRenderInput','bases-dashboard-ui.dashboard.rename','univer-shrink-0\x20univer-px-3','bases-dashboard-ui.chart.common.setup','accept','univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','config','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','bases-dashboard-ui.pivot.selectAll','Line','#,##0','bases-dashboard-ui.dashboard.editWidget','Checkbox','UUID','every','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','defaultPrevented','model','currentColor','undos','views','max','bases-dashboard-ui.pivot.layoutTabular','getCurrentTheme','trim','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','13666jrwbOh','floor','dataSource','view','bases-dashboard-ui.dashboardInspector.dataSource','univer-max-h-40\x20univer-text-base','isFinite','primary','univer-grid\x20univer-gap-4\x20univer-p-4','join','bases-dashboard-ui.dashboardInspector.percent','univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize','chart','bases-dashboard-ui.dashboardInspector.right','barStyle','univer-grid\x20univer-gap-4','Group','bases-dashboard-ui.dashboard.add','bases-dashboard-ui.dashboardInspector.center','bases-dashboard-ui.pivot.countNumbers','ParetoBarSeries','bases-dashboard-ui.chart.section.indicatorLine','bases-dashboard-ui.pivot.average','RightVerticalAxis','Subtotal','bases-dashboard-ui.chart.common.trendline','GREATER_THAN_OR_EQUAL','rowView','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','univer-flex\x20univer-min-h-full\x20univer-flex-col','bases-dashboard-ui.pivot.displayName','getBoundingClientRect','univer-mt-2\x20univer-w-full','USD','right','RoundRect','createElement','bases-dashboard-ui.pivot.filterField','showColSubtotal','filterFields','labelId','baseChartDataAnimation','column','separator','bases-dashboard-ui.chart.section.relation','top','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','LESS_THAN_OR_EQUAL','initial','textColor','HorizontalAxis','\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','univer-text-sm\x20univer-font-medium','documentStyle','bases-dashboard-ui.dashboardInspector.custom','Number','table','headerRowCount','lineAndArea','isConnected','_createContext','bases-dashboard-ui.pivot.columns','tableFieldId','replaceChildren','undoRedoStatus$','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','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','dispose','general','waterfall.negative','onMove','ChartStyle','files','univer-w-full','pointerX','preventDefault','conditions','onSettings','Waterfall','sourceType','bases-dashboard-ui.pivot.stdDevPopulation','currentTheme$','Legend','displayMode','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','bases-dashboard-ui.dashboardInspector.number','base-pivot-chart-configuration','bases-dashboard-ui.pivot.sum','length','_chartThemeService','dimension','Boxplot','pluginName','backgroundColor','bases-dashboard-ui.pivot.stdDev','height','bases-dashboard-ui.dashboardInspector.originalSize','bases-dashboard-ui.pivot.count','bases-dashboard-ui.dashboard.addWidget','Funnel','bases-dashboard-ui.dashboard.deleteWidget','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','defaultValue','left','isTopTotal','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','ascending','bases-dashboard-ui.dashboard.pivotChart','tableId','bases-dashboard-ui.dashboard.formulaShape','var','getRenderColor','valuePosition','matchMedia','univer-flex','image/*','base64Cache','bases-dashboard-ui.dashboardInspector.grouped','click','setLabelFilterInfo','blur','test','bases-dashboard-ui.operators.isNot','colView','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','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','11KdNOxC','snapshot','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','addEventListener','bases-dashboard-ui.pivot.showRowSubtotal','rowFields','startScrollTop','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','bases-dashboard-ui.dashboardInspector.loading','rootContainerElement','createDomChartInstance','iterator','None','valueFields','localeKey','bases-dashboard-ui.dashboardInspector.sourceUnavailable','getDataFieldByTableId','bases-dashboard-ui.chart.section.paretoLine','string','ceil','children','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','appearance','bases-dashboard-ui.pivot.blank','bases-dashboard-ui.pivot.layout','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','darkMode','bases-dashboard-ui.pivot.bottom','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','row','BaseDashboard','bases-dashboard-ui.pivot.descending','WaterfallSeries','pareto','subItem','call','[data-dashboard-widget]','waterfallStyle','\x20has\x20no\x20render\x20config.','bases-dashboard-ui.chart.chartTypes.area','bases-dashboard-ui.operators.isNotEmpty','img','textStyle','stdDevp','data','Candlestick','items','version','Treemap','VerticalAxis','startX','Pie','univer-relative\x20univer-z-10','change$','index','borderRadius','rowType','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','bases-dashboard-ui.pivot.showColumnSubtotal','alignment','name','then','Sunburst','bases-dashboard-ui.pivot.pivotConfiguration','find','viewOrder','funnel','bases-dashboard-ui.chart.section.gridlinesAndTicks','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','pivot','bases-dashboard-ui.dashboardInspector.contain','repeat','isHeader','sum','bases-dashboard-ui.pivot.repeatRowLabels','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','11993030jTdIif','bases-dashboard-ui.chart.common.verticalAxis','gray','dataset','showRowSubtotal','YYYY-MM-DD','Histogram','subUnitId','bases-dashboard-ui.pivot.rows','bases-dashboard-ui.chart.section.gauge','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','base-pivot-table-configuration','border','univer-size-5\x20univer-text-primary-600','bases-dashboard-ui.pivot.sourceFields','pie','Chord','filterInfo','base-pivot-options','trendline','formatMap','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','options','bases-dashboard-ui.chart.section.histogram','bases-dashboard-ui.operators.lessThan','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','Column','measure','SingleSelect','subtotal','bases-dashboard-ui.dashboardInspector.left','rgb','Positive','univer-flex\x20univer-min-h-0\x20univer-flex-1','bases-dashboard-ui.dashboardInspector.textColor','shapeText','cover','operator','flex-start','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','setCurrentUnitForType','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','bases-dashboard-ui.dashboard.fullScreen','dashboards','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','add','permissionPointUpdate$','univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','rows','bases-dashboard-ui.dashboard.configure','activeRuntimeModel','base-pivot-fields','Heatmap','bases-dashboard-ui.dashboardInspector.backgroundImage','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','Person','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4'];_0x494c=function(){return _0x496f91;};return _0x494c();}function Wr(_0xeda41b,_0x267cc0){const _0x1dcc55=_0x219009;var _0x288c9b;let _0x4094fa=_0x267cc0[_0x1dcc55(0x440)](/\r\n|\r/g,'\x0a')[_0x1dcc55(0x46a)]('\x0a'),_0x5cffda=_0x4094fa[_0x1dcc55(0x2f9)]('\x0d')+'\x0d\x0a',_0x48faf1=((_0x288c9b=_0xeda41b[_0x1dcc55(0x45b)])==null?void 0x0:_0x288c9b['paragraphs'])??[],_0x2ea2c3=new Set(_0x48faf1[_0x1dcc55(0x43f)](_0x3bc24b=>_0x3bc24b[_0x1dcc55(0x1c6)])),_0x4c8cba=0x0,_0x48ca73=_0x4094fa[_0x1dcc55(0x43f)]((_0x4b71ac,_0x4093fe)=>{const _0x6ce942=_0x1dcc55;_0x4c8cba+=_0x4b71ac[_0x6ce942(0x348)];let _0x52a174={..._0x48faf1[_0x4093fe]??{'startIndex':_0x4c8cba,'paragraphId':_0x18fe69(_0x2ea2c3)},'startIndex':_0x4c8cba};return _0x4c8cba+=0x1,_0x52a174;});return{..._0xeda41b,'body':{..._0xeda41b[_0x1dcc55(0x45b)],'dataStream':_0x5cffda,'paragraphs':_0x48ca73,'textRuns':[]}};}function Gr({widget:_0x23dc1d}){const _0x4abf87=_0x219009;let _0x1775c0=_0xb3eab7(_0x52f5e2),_0x54bff3=_0xb3eab7(_0x51de0a),_0x32d3eb=_0x97415f(()=>_0x1775c0[_0x4abf87(0x341)],_0x1775c0['getCurrentTheme'](),!0x1,[_0x1775c0]),_0x1b9cdb=_0x52068e(null),_0x1d088f=_0x52068e(null),_0x378d04=Hr(_0x23dc1d),_0x40167b=_0x378d04['backgroundColor']??_0x32d3eb[_0x4abf87(0x3bc)][0x0],_0x8ca486=_0x378d04[_0x4abf87(0x321)]??_0x32d3eb[_0x4abf87(0x3bc)][0x3e8],_0x458baa=Ur(_0x23dc1d['document']);return _0x2153d6(()=>{const _0x2643d3=_0x4abf87;let _0x3f1e2c=_0x1b9cdb[_0x2643d3(0x2bd)],_0x36858f=_0x1d088f['current'];if(!_0x3f1e2c||!_0x36858f)return;let _0x49c2e8=()=>{const _0x1c32f4=_0x2643d3;if(_0x378d04[_0x1c32f4(0x4b2)]===_0x1c32f4(0x492)||!_0x3f1e2c[_0x1c32f4(0x485)]||!_0x3f1e2c[_0x1c32f4(0x179)]){_0x36858f['style'][_0x1c32f4(0x25d)]=_0x378d04['fontSize']+'px';return;}let _0x2cd571=0x8,_0xf4a46f=0x48,_0xadfca5=_0x2cd571;for(;_0x2cd571<=_0xf4a46f;){let _0x504316=Math[_0x1c32f4(0x2f1)]((_0x2cd571+_0xf4a46f)/0x2);_0x36858f[_0x1c32f4(0x424)][_0x1c32f4(0x25d)]=_0x504316+'px',_0x36858f[_0x1c32f4(0x469)]<=_0x3f1e2c[_0x1c32f4(0x485)]&&_0x36858f[_0x1c32f4(0x242)]<=_0x3f1e2c['clientHeight']?(_0xadfca5=_0x504316,_0x2cd571=_0x504316+0x1):_0xf4a46f=_0x504316-0x1;}_0x36858f[_0x1c32f4(0x424)][_0x1c32f4(0x25d)]=_0xadfca5+'px';};if(_0x49c2e8(),typeof ResizeObserver>'u')return;let _0x5b2141=new ResizeObserver(_0x49c2e8);return _0x5b2141[_0x2643d3(0x1d8)](_0x3f1e2c),()=>_0x5b2141[_0x2643d3(0x450)]();},[_0x378d04[_0x4abf87(0x25d)],_0x378d04[_0x4abf87(0x4b2)],_0x458baa]),_0x1af9b(_0x4abf87(0x173),{'data-dashboard-text-widget':_0x23dc1d['id'],'className':_0x4abf87(0x27c),'style':{'backgroundColor':_0x40167b,'color':_0x8ca486},'children':_0x1af9b(_0x4abf87(0x173),{'ref':_0x1b9cdb,'data-dashboard-text-content':!0x0,'aria-label':_0x54bff3['t']('bases-dashboard-ui.dashboard.text'),'className':_0x4abf87(0x473),'children':_0x1af9b('div',{'ref':_0x1d088f,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x378d04[_0x4abf87(0x4b2)],'className':_0x4abf87(0x370),'style':{'textAlign':_0x378d04[_0x4abf87(0x3a9)]},'children':_0x458baa})})});}function Kr({dashboard:_0x1ed722,editable:_0x2d2621=!0x0,onSelectWidget:_0x2bba8f,renderWidget:_0x50c5b8,renderWidgetActions:_0x13f579,selectedWidgetId:_0x4dc8bd,widgetLabel:_0x54224b}){const _0x368e8e=_0x219009;return _0x1af9b(_0x368e8e(0x173),{'data-dashboard-scroll-container':!0x0,'className':_0x43bd71('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',_0x178403),'onClick':_0x2d2621?_0x2ebe21=>{const _0x2f06e2=_0x368e8e;if(!(_0x2ebe21[_0x2f06e2(0x40c)]instanceof Node)||!_0x2ebe21[_0x2f06e2(0x174)][_0x2f06e2(0x431)](_0x2ebe21[_0x2f06e2(0x40c)]))return;let _0x5f189d=_0x2ebe21[_0x2f06e2(0x40c)]instanceof Element?_0x2ebe21['target']:_0x2ebe21['target'][_0x2f06e2(0x2bb)];_0x5f189d!=null&&_0x5f189d[_0x2f06e2(0x451)](_0x2f06e2(0x392))||_0x2bba8f==null||_0x2bba8f();}:void 0x0,'children':_0x1af9b(_0x368e8e(0x173),{'data-dashboard-grid':!0x0,'className':_0x368e8e(0x201),'children':_0x1ed722[_0x368e8e(0x4c5)]['map'](_0x5dc1e4=>{const _0x4d41a2=_0x368e8e;let _0x1d45d8=_0x1ed722['widgets'][_0x5dc1e4];if(!_0x1d45d8)return null;let _0x39a636=Math['max'](0xb4,_0x1d45d8[_0x4d41a2(0x16e)][_0x4d41a2(0x224)]*_0x3b43c9);return _0x52e710(_0x4d41a2(0x46d),{'data-dashboard-widget':_0x1d45d8['id'],'aria-label':_0x1d45d8[_0x4d41a2(0x4a8)]??_0x54224b(_0x1d45d8),'className':_0x43bd71('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',_0x1d45d8[_0x4d41a2(0x4b9)]===_0xf5049a[_0x4d41a2(0x20c)]||_0x1d45d8[_0x4d41a2(0x4b9)]===_0xf5049a['FormulaShape']?_0x4d41a2(0x4b5):_0x4d41a2(0x1aa),_0x2d2621&&_0x4dc8bd===_0x1d45d8['id']?_0x4d41a2(0x476):_0x4d41a2(0x495)),'style':{'minHeight':_0x39a636,'height':_0x39a636},'tabIndex':_0x2d2621?0x0:void 0x0,'onClick':_0x2d2621?()=>_0x2bba8f==null?void 0x0:_0x2bba8f(_0x1d45d8['id']):void 0x0,'onFocus':_0x2d2621?()=>_0x2bba8f==null?void 0x0:_0x2bba8f(_0x1d45d8['id']):void 0x0,'children':[_0x2d2621&&_0x1af9b(_0x4d41a2(0x173),{'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':_0x13f579==null?void 0x0:_0x13f579(_0x1d45d8)}),_0x1af9b('div',{'className':_0x4d41a2(0x3a7),'children':_0x50c5b8(_0x1d45d8)})]},_0x1d45d8['id']);})})});}let qr=class extends _0xcf3349{constructor(_0x4454e1){const _0x408967=_0x219009;super(_0x4454e1),Ir(this,_0x408967(0x3ec),null);}[_0x219009(0x1e0)](_0x1fadb8){}};qr=Ar([Y(0x0,_0x346fbc(_0x3b1b72))],qr);function Jr({children:_0x4e8520}){return _0x1af9b(_0x573640,{'children':_0x4e8520});}function Yr(_0x10d645){return _0x1af9b(_0x2b3300,{..._0x10d645});}function Xr(_0x50a8af){return _0x1af9b(_0x95003,{..._0x50a8af});}function Zr(_0x4a784f){return _0x1af9b(_0x5e0b65,{..._0x4a784f});}var Qr;const X={'axis':{..._0x4b7c48,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x2425d6,'heatmap':_0x34d401,'indicatorLine':_0x89d8f0,'legend':_0x4e4d4b,'lineAndArea':_0x305c9e,'pareto':_0x13cc6b,'pie':_0x28f162,'radar':_0x4ad53f,'relation':{..._0x102f37,'useValueAsSymbolSize':!0x0},'series':{..._0x1f143d,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Qr=_0x4f7330['allSeriesStyle'])==null?void 0x0:Qr[_0x219009(0x28a)])??!0x1}},'style':_0x5209eb,'titles':_0x4ced2d,'trendline':_0x38d718,'waterfall':{..._0x4e066c,'useSubtotal':!0x0},'waterfallStyle':_0x3c4e32,'wordCloud':_0x546560},$r=[_0x3e0f4e[_0x219009(0x2df)],_0x3e0f4e[_0x219009(0x479)],_0x3e0f4e[_0x219009(0x186)],_0x3e0f4e[_0x219009(0x41a)],_0x3e0f4e[_0x219009(0x353)],_0x3e0f4e[_0x219009(0x1ef)],_0x3e0f4e[_0x219009(0x19e)],_0x3e0f4e[_0x219009(0x3ee)],_0x3e0f4e[_0x219009(0x34b)],_0x3e0f4e[_0x219009(0x39b)],_0x3e0f4e['Histogram'],_0x3e0f4e[_0x219009(0x39e)],_0x3e0f4e[_0x219009(0x3ac)],_0x3e0f4e['Gauge'],_0x3e0f4e['Chord']];function ei(_0x573193){const _0x1e67b3=_0x219009;let {config:_0x1c3d64,onChange:_0x5d1081,runtime:_0x1aa33e,tableName:_0x2e1820}=_0x573193,_0x212bdd=_0xb3eab7(qr),_0x37c8a8=_0xb3eab7(_0x51de0a),[_0x167622,_0x46f20a]=_0x277721(_0x66773d[_0x1e67b3(0x49b)]),_0x56529e=_0x2a7f67(()=>new _0x1b56a9(_0x1aa33e['model'],{'commit':_0x2e5f62=>{const _0x1c30d8=_0x1e67b3;var _0x58d3fe;let _0x387aca=_0x1aa33e['model'],_0xa01be=_0xaa6a7c(_0x2e5f62,{'series':(_0x58d3fe=_0x387aca[_0x1c30d8(0x2dc)])==null?void 0x0:_0x58d3fe[_0x1c30d8(0x1f6)],'currentChartType':_0x387aca[_0x1c30d8(0x4a7)],'currentStyle':_0x387aca[_0x1c30d8(0x424)],'currentContext':_0x387aca[_0x1c30d8(0x23f)],'currentDataAggregation':_0x387aca[_0x1c30d8(0x474)]});_0x5d1081({'chart':ti(_0x1c3d64['chart'],_0xa01be)});}}),[_0x1c3d64[_0x1e67b3(0x2fc)],_0x5d1081,_0x1aa33e]),_0x2d2fa2=_0x2a7f67(()=>_0x1bca48(_0x777c64[_0x1e67b3(0x43f)](_0x50ebec=>({..._0x50ebec,'label':_0x37c8a8['t'](ai(_0x50ebec['labelId']))}))),[_0x37c8a8]);return _0x1af9b(_0x422ba9,{'chartUIService':_0x212bdd,'hostAdapter':_0x56529e,'children':_0x52e710('div',{'className':_0x1e67b3(0x2a5),'children':[_0x1af9b(_0x531ef4,{'ariaLabel':_0x37c8a8['t'](_0x1e67b3(0x454)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x37c8a8['t'](_0x1e67b3(0x2d9)),'panelId':_0x1e67b3(0x4aa),'value':_0x66773d['Data']},{'label':_0x37c8a8['t']('bases-dashboard-ui.chart.common.customize'),'panelId':'base-pivot-chart-style','value':_0x66773d[_0x1e67b3(0x25b)]}],'value':_0x167622,'onChange':_0x46f20a}),_0x167622===_0x66773d['Data']?_0x1af9b(_0x24a4c3,{'id':_0x1e67b3(0x4aa),'label':_0x37c8a8['t'](_0x1e67b3(0x2d9)),'children':_0x52e710('div',{'className':_0x1e67b3(0x2b4),'children':[_0x1af9b(_0x623fe,{'options':_0x2d2fa2}),_0x1af9b(_0x3d9f3c,{}),_0x1af9b(_0x380243,{}),_0x1af9b(ni,{}),_0x1af9b(_0x23a4c3,{}),_0x52e710(_0x1e67b3(0x173),{'children':[_0x1af9b(_0x1dc825,{'title':_0x37c8a8['t']('bases-dashboard-ui.pivot.dataSource')}),_0x1af9b(_0x4f1ee0,{'disabled':!0x0,'value':_0x2e1820})]}),_0x1af9b(_0x215c50,{'orientationControl':_0x1af9b(_0x2e1096,{'size':_0x1e67b3(0x43e),'onClick':()=>_0x5d1081({'chart':{..._0x1c3d64[_0x1e67b3(0x2fc)],'orient':_0x1c3d64[_0x1e67b3(0x2fc)][_0x1e67b3(0x4b4)]===_0x1e67b3(0x38b)?_0x1e67b3(0x31a):_0x1e67b3(0x38b)}}),'children':_0x37c8a8['t'](_0x1e67b3(0x194))})}),_0x1af9b(_0x1a5bff,{}),_0x1af9b(_0x3e6c73,{'defaultValues':X['waterfall']}),_0x52e710(_0x1e67b3(0x173),{'children':[_0x1af9b(_0x1dc825,{'title':_0x37c8a8['t'](_0x1e67b3(0x1a5))}),_0x1af9b(Yr,{'value':_0x1c3d64[_0x1e67b3(0x343)],'options':[{'value':_0x1e67b3(0x46f),'label':_0x37c8a8['t'](_0x1e67b3(0x1ff))},{'value':_0x1e67b3(0x2fc),'label':_0x37c8a8['t'](_0x1e67b3(0x19a))},{'value':_0x1e67b3(0x328),'label':_0x37c8a8['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x1a66e5=>{const _0x4ba370=_0x1e67b3;(_0x1a66e5===_0x4ba370(0x46f)||_0x1a66e5===_0x4ba370(0x2fc)||_0x1a66e5===_0x4ba370(0x328))&&_0x5d1081({'displayMode':_0x1a66e5});}})]})]})}):_0x1af9b(_0x24a4c3,{'id':'base-pivot-chart-style','label':_0x37c8a8['t'](_0x1e67b3(0x420)),'children':_0x1af9b(ri,{})})]})});}function ti(_0x2495f6,_0x39df4b){const _0x4d5f7d=_0x219009;return{..._0x2495f6,'type':_0x39df4b[_0x4d5f7d(0x4a7)]??_0x2495f6[_0x4d5f7d(0x4b9)],'style':_0x39df4b[_0x4d5f7d(0x424)]??_0x2495f6[_0x4d5f7d(0x424)],'context':_0x39df4b[_0x4d5f7d(0x23f)]??_0x2495f6[_0x4d5f7d(0x23f)],'dataAggregation':_0x39df4b[_0x4d5f7d(0x474)]??_0x2495f6['dataAggregation']};}function ni(){const _0x5b87bf=_0x219009;let _0x40d96d=_0x4062bc();return _0x1af9b(_0x5446d4,{'visible':$r[_0x5b87bf(0x2e4)](_0x501e78=>!_0x29c223['baseOn'](_0x40d96d,_0x501e78))});}function Z(_0x4de196){const _0x4ae2bb=_0x219009;return _0x52e710(_0x17d75d,{'id':_0x4de196['id'],'children':[_0x1af9b(_0x3e8f11,{'children':_0x4de196[_0x4ae2bb(0x1d6)]}),_0x1af9b(_0x58bf4b,{'children':_0x4de196[_0x4ae2bb(0x382)]})]});}function ri(){const _0x503794=_0x219009;let _0x2e0c19=_0xb3eab7(_0x51de0a),_0x27a206=_0x4062bc(),_0x442cd1=_0x312db6(),[_0x1770d3,_0x3853d1]=_0x277721(null),_0xc32bd6=_0x29c223[_0x503794(0x25f)](_0x27a206,_0x3e0f4e[_0x503794(0x3a1)]),_0x526eaf=_0x27a206===_0x3e0f4e[_0x503794(0x479)],_0x138a98=_0x27a206===_0x3e0f4e[_0x503794(0x186)],_0x3f09cf=_0x27a206===_0x3e0f4e[_0x503794(0x353)],_0x3f9fad=_0x29c223['baseOn'](_0x27a206,_0x3e0f4e[_0x503794(0x17d)]),_0x4d4277=_0x27a206===_0x3e0f4e['Relation'],_0x44fc10=_0x27a206===_0x3e0f4e[_0x503794(0x33e)],_0x40d8ab=_0x27a206===_0x3e0f4e[_0x503794(0x253)],_0x2505aa=_0x27a206===_0x3e0f4e[_0x503794(0x3ee)],_0xe6d523=_0x1d3b69(_0x27a206,_0x4f0d5d['GeneralSeries'])&&!_0x3f9fad&&!_0x40d8ab,_0x2632d9=ii(_0x27a206,_0x2e0c19);return _0x52e710(_0x176760,{'value':_0x1770d3,'onChange':_0x3853d1,'children':[_0x1af9b(Z,{'id':_0x4fbb3c['ChartStyle'],'label':_0x2e0c19['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0x1af9b(_0x403f96,{'defaultValues':X['style']})}),_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x17c)],'label':_0x2e0c19['t'](_0x503794(0x1eb)),'children':_0x1af9b(_0x533222,{'commitMode':_0x503794(0x368),'defaultValues':X['titles']})}),_0x1af9b(_0x12c722,{'section':'view'}),_0xe6d523&&_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x272)],'label':_0x2e0c19['t'](_0x503794(0x458)),'children':_0x1af9b(_0x95cd68,{'defaultValues':X['series'],'NumberFormatField':_0x43f297})}),_0x44fc10&&_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x38e)],'label':_0x2e0c19['t'](_0x503794(0x491)),'children':_0x1af9b(_0x189b03,{'defaultValues':X[_0x503794(0x393)],'getDefaultBucketName':({seriesName:_0x5beed2,target:_0x5b076c})=>_0x5b076c===_0x11f14c[_0x503794(0x308)]?_0x2e0c19['t'](_0x503794(0x432)):_0x5beed2?_0x5beed2+'-('+_0x2e0c19['t'](_0x503794(0x275)+(_0x5b076c===_0x11f14c[_0x503794(0x3da)]?_0x503794(0x483):_0x503794(0x335)))+')':'','NumberFormatField':_0x43f297})}),_0x40d8ab&&_0x52e710(_0x1ef66a,{'children':[_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x304)],'label':_0x2e0c19['t']('bases-dashboard-ui.chart.section.paretoBar'),'children':_0x1af9b(_0x6a1abb,{'defaultValues':X['pareto'],'NumberFormatField':_0x43f297,'showDataPointEditor':!0x0,'target':_0x503794(0x2fe)})}),_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x1f3)],'label':_0x2e0c19['t'](_0x503794(0x37f)),'children':_0x1af9b(_0x6a1abb,{'defaultValues':X[_0x503794(0x38f)],'NumberFormatField':_0x43f297,'showDataPointEditor':!0x1,'target':_0x503794(0x428)})})]}),_0xc32bd6&&_0x1af9b(Z,{'id':_0x4fbb3c['PieStyle'],'label':_0x2e0c19['t'](_0x503794(0x4b6)),'children':_0x1af9b(_0x782d62,{'defaultValues':X['pie'],'NumberFormatField':_0x43f297})}),_0x138a98&&_0x1af9b(Z,{'id':_0x4fbb3c['WordCloud'],'label':_0x2e0c19['t'](_0x503794(0x4c7)),'children':_0x1af9b(_0x1d5b30,{'defaultValues':X[_0x503794(0x1c5)]})}),_0x526eaf&&_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x479)],'label':_0x2e0c19['t']('bases-dashboard-ui.chart.section.radar'),'children':_0x1af9b(_0x5b4358,{'defaultValues':X['radar']})}),_0x3f09cf&&_0x1af9b(Z,{'id':_0x4fbb3c['Funnel'],'label':_0x2e0c19['t']('bases-dashboard-ui.chart.section.funnel'),'children':_0x1af9b(_0x1a89aa,{'defaultValues':X[_0x503794(0x3b0)],'gapControl':_0x503794(0x460)})}),_0x2505aa&&_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x3ee)],'label':_0x2e0c19['t'](_0x503794(0x45a)),'children':_0x1af9b(_0x129683,{'defaultValues':X[_0x503794(0x1cd)]})}),_0x4d4277&&_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x1ef)],'label':_0x2e0c19['t']('bases-dashboard-ui.chart.section.relation'),'children':_0x1af9b(_0x30b843,{'defaultValues':X[_0x503794(0x487)]})}),_0x222850(_0x27a206)&&_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x29a)],'label':_0x2e0c19['t'](_0x29c223['baseOn'](_0x27a206,_0x3e0f4e[_0x503794(0x1a2)])?_0x503794(0x395):_0x503794(0x19f)),'children':_0x1af9b(_0x2f03f7,{'defaultValues':X[_0x503794(0x32a)],'lineStyleControl':_0x503794(0x236)})}),_0x1d3b69(_0x27a206,_0x4f0d5d[_0x503794(0x342)])&&_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x342)],'label':_0x2e0c19['t']('bases-dashboard-ui.chart.common.legend'),'children':_0x1af9b(_0x132084,{'defaultValues':X['legend']})}),_0x1d3b69(_0x27a206,_0x4f0d5d[_0x503794(0x462)])&&_0x52e710(_0x1ef66a,{'children':[_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x322)],'label':_0x2e0c19['t']('bases-dashboard-ui.chart.common.horizontalAxis'),'children':_0x1af9b(_0x4f9809,{'axis':'x','defaultValues':X[_0x503794(0x29b)],'NumberFormatField':_0x43f297})}),_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x39f)],'label':_0x2e0c19['t'](_0x503794(0x3bb)),'children':_0x1af9b(_0x4f9809,{'axis':'y','defaultValues':X['axis'],'NumberFormatField':_0x43f297})}),_0x1af9b(_0x12c722,{'section':'depthAxis'}),_0x442cd1&&_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x307)],'label':_0x2e0c19['t'](_0x503794(0x40d)),'children':_0x1af9b(_0x4f9809,{'axis':'rightY','defaultValues':X[_0x503794(0x29b)],'NumberFormatField':_0x43f297})}),_0x1af9b(Z,{'id':_0x4fbb3c['GridlinesAndTicks'],'label':_0x2e0c19['t'](_0x503794(0x3b1)),'children':_0x1af9b(_0x507867,{'defaultValues':X[_0x503794(0x29b)]})})]}),_0x1d3b69(_0x27a206,_0x4f0d5d['IndicatorLine'])&&_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x1cf)],'label':_0x2e0c19['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x1af9b(_0x5207e9,{'defaultValues':X['indicatorLine']})}),_0x479078(_0x27a206)&&_0x1af9b(Z,{'id':_0x4fbb3c['Trendline'],'label':_0x2e0c19['t'](_0x503794(0x309)),'children':_0x1af9b(_0x2c7234,{'defaultValues':X['trendline']})}),_0x2632d9&&_0x1af9b(Z,{'id':_0x2632d9['id'],'label':_0x2632d9[_0x503794(0x1d6)],'children':_0x1af9b(_0x4f919a,{})})]});}function ii(_0x359884,_0x2e36df){const _0xc53a13=_0x219009;let _0x23e217={[_0x3e0f4e[_0xc53a13(0x39b)]]:{'id':_0x4fbb3c['Candlestick'],'localeKey':'bases-dashboard-ui.chart.section.candlestick'},[_0x3e0f4e['Histogram']]:{'id':_0x4fbb3c[_0xc53a13(0x3c0)],'localeKey':_0xc53a13(0x3d1)},[_0x3e0f4e[_0xc53a13(0x39e)]]:{'id':_0x4fbb3c[_0xc53a13(0x39e)],'localeKey':_0xc53a13(0x416)},[_0x3e0f4e[_0xc53a13(0x3ac)]]:{'id':_0x4fbb3c['Sunburst'],'localeKey':_0xc53a13(0x2ca)},[_0x3e0f4e[_0xc53a13(0x246)]]:{'id':_0x4fbb3c['Gauge'],'localeKey':_0xc53a13(0x3c3)},[_0x3e0f4e['Chord']]:{'id':_0x4fbb3c['Chord'],'localeKey':_0xc53a13(0x430)}}[_0x359884];return _0x23e217?{'id':_0x23e217['id'],'label':_0x2e36df['t'](_0x23e217[_0xc53a13(0x37c)])}:null;}function ai(_0xcd6c15){const _0xd844b=_0x219009;return _0xd844b(0x3f5)+_0xcd6c15;}function oi({onChange:_0x3e49e8,onEditData:_0x393147,runtime:_0x163f07,sourceChart:_0x9f3c27,sourceName:_0x22b41d,widget:_0x3b8576}){const _0x3207c3=_0x219009;let _0x56b5ea=_0xb3eab7(qr),_0x271794=_0xb3eab7(_0x51de0a),[_0x5554fe,_0x536f20]=_0x277721(_0x66773d[_0x3207c3(0x49b)]),_0xa5f096=_0x3b8576[_0x3207c3(0x2fc)]??_0x9f3c27,_0x1f72ae=_0x2a7f67(()=>new _0x1b56a9(_0x163f07[_0x3207c3(0x2e7)],{'commit':_0x34e8f7=>{const _0x5e5527=_0x3207c3;var _0x4f84a3;let _0x5f0c33=_0x163f07[_0x5e5527(0x2e7)],_0x5d5229=_0xaa6a7c(_0x34e8f7,{'series':(_0x4f84a3=_0x5f0c33[_0x5e5527(0x2dc)])==null?void 0x0:_0x4f84a3['series'],'currentChartType':_0x5f0c33[_0x5e5527(0x4a7)],'currentStyle':_0x5f0c33['style'],'currentContext':_0x5f0c33['context'],'currentDataAggregation':_0x5f0c33[_0x5e5527(0x474)]});_0x3e49e8({..._0x3b8576,'chart':ti(_0xa5f096,_0x5d5229)})['catch'](()=>void 0x0);}}),[_0xa5f096,_0x3e49e8,_0x163f07,_0x3b8576]),_0x5f1463=_0x2a7f67(()=>_0x1bca48(_0x777c64['map'](_0x369beb=>({..._0x369beb,'label':_0x271794['t'](si(_0x369beb[_0x3207c3(0x318)]))}))),[_0x271794]);return _0x1af9b(_0x44ba09,{'chartUIService':_0x56b5ea,'hostAdapter':_0x1f72ae,'children':_0x52e710(_0x3207c3(0x173),{'data-dashboard-chart-inspector':!0x0,'className':_0x3207c3(0x2e5),'children':[_0x1af9b(_0x531ef4,{'ariaLabel':_0x271794['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x3207c3(0x2d8),'items':[{'label':_0x271794['t'](_0x3207c3(0x2d9)),'panelId':_0x3207c3(0x227),'value':_0x66773d[_0x3207c3(0x49b)]},{'label':_0x271794['t'](_0x3207c3(0x420)),'panelId':_0x3207c3(0x197),'value':_0x66773d[_0x3207c3(0x25b)]}],'value':_0x5554fe,'onChange':_0x536f20}),_0x5554fe===_0x66773d[_0x3207c3(0x49b)]?_0x1af9b(_0x24a4c3,{'id':_0x3207c3(0x227),'label':_0x271794['t'](_0x3207c3(0x2d9)),'children':_0x52e710(_0x3207c3(0x173),{'className':_0x3207c3(0x2b4),'children':[_0x1af9b(_0x623fe,{'options':_0x5f1463}),_0x1af9b(_0x3d9f3c,{}),_0x1af9b(_0x380243,{}),_0x1af9b(ni,{}),_0x1af9b(_0x23a4c3,{}),_0x52e710(_0x3207c3(0x173),{'children':[_0x1af9b(_0x1dc825,{'title':_0x271794['t'](_0x3207c3(0x2f4))}),_0x1af9b(_0x4f1ee0,{'disabled':!0x0,'value':_0x22b41d}),_0x1af9b(_0x2e1096,{'className':_0x3207c3(0x310),'onClick':_0x393147,'children':_0x271794['t'](_0x3207c3(0x172))})]})]})}):_0x1af9b(_0x24a4c3,{'id':_0x3207c3(0x197),'label':_0x271794['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x1af9b(ri,{})})]})});}function si(_0x5a10ac){return'bases-dashboard-ui.chart.chartTypes.'+_0x5a10ac;}const ci=[_0x219009(0x334),_0x219009(0x24f),_0x219009(0x465),_0x219009(0x414),_0x219009(0x264),_0x219009(0x449)];function li({base:_0x57055e,onChange:_0xf80983,onSelectBackgroundImage:_0x1ee2c2,widget:_0x4f69bd}){const _0x296d49=_0x219009;var _0x4ed6f2;let _0x3ebd7c=_0xb3eab7(_0x51de0a),_0xcedfd7=_0xb3eab7(_0x52f5e2),_0x185704=_0x97415f(()=>_0xcedfd7[_0x296d49(0x341)],_0xcedfd7['getCurrentTheme'](),!0x1,[_0xcedfd7]),_0x15a225=_0x97415f(()=>_0xcedfd7[_0x296d49(0x40f)],_0xcedfd7['darkMode'],!0x1,[_0xcedfd7]),[_0x3104ef,_0x196b31]=_0x277721(_0x296d49(0x39a)),[_0x3f1cf5,_0x216d5b]=_0x277721(!0x1),_0x59cb06=Cr(_0x4f69bd),_0x1d912f=_0x57055e[_0x296d49(0x206)]()[_0x296d49(0x44e)][_0x4f69bd['tableId']],_0x359428=_0x1d912f==null?void 0x0:_0x1d912f[_0x296d49(0x3af)][_0x296d49(0x3ae)](_0x48eb2b=>_0x1d912f[_0x296d49(0x2ea)][_0x48eb2b]),_0x517c49=_0x359428?_0x1d912f==null?void 0x0:_0x1d912f[_0x296d49(0x2ea)][_0x359428]:void 0x0,_0x419a2f=_0x1d912f&&_0x517c49?_0x2afc8d(_0x57055e['getSnapshot'](),_0x1d912f,_0x517c49)[_0x296d49(0x43f)](_0x198d0b=>({..._0x198d0b,'current':!0x1})):[],_0x801c35=((_0x4ed6f2=_0x4f69bd[_0x296d49(0x21c)]['formulaBinding'])==null?void 0x0:_0x4ed6f2[_0x296d49(0x1ab)])??'',_0x2808ea=_0xe5929b=>_0xf80983(wr(_0x4f69bd,_0xe5929b))[_0x296d49(0x2c9)](()=>void 0x0),_0x48c82e=_0x35826d=>_0xf80983({..._0x4f69bd,'description':_0x35826d})[_0x296d49(0x2c9)](()=>void 0x0);return _0x52e710(_0x296d49(0x173),{'data-dashboard-formula-inspector':!0x0,'className':_0x296d49(0x2e5),'children':[_0x1af9b(_0x35fc77,{'className':_0x296d49(0x1e9),'items':[{'value':_0x296d49(0x39a),'label':_0x3ebd7c['t'](_0x296d49(0x18c))},{'value':'style','label':_0x3ebd7c['t'](_0x296d49(0x2a6))}],'value':_0x3104ef,'onChange':_0x196b31}),_0x1af9b(_0x296d49(0x173),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0x3104ef===_0x296d49(0x39a)?_0x52e710('div',{'className':_0x296d49(0x2ff),'children':[_0x1af9b(ui,{'label':_0x3ebd7c['t']('bases-dashboard-ui.dashboardInspector.description'),'children':_0x1af9b(_0x4f1ee0,{'value':_0x4f69bd['description']??_0x4f69bd[_0x296d49(0x4a8)]??'','onChange':_0x48c82e,'onBlur':_0x4f6c44=>_0x48c82e(_0x4f6c44['target'][_0x296d49(0x286)])})}),_0x1af9b(ui,{'label':_0x3ebd7c['t'](_0x296d49(0x2f4)),'children':_0x1af9b(_0x4f1ee0,{'disabled':!0x0,'value':(_0x1d912f==null?void 0x0:_0x1d912f['name'])??_0x3ebd7c['t'](_0x296d49(0x37d))})}),_0x52e710(ui,{'label':_0x3ebd7c['t'](_0x296d49(0x2b9)),'children':[_0x1af9b(_0x4f1ee0,{'disabled':!0x0,'value':_0x47b245(_0x801c35,_0x419a2f)}),_0x1af9b(_0x2e1096,{'className':_0x296d49(0x310),'onClick':()=>_0x216d5b(!0x0),'children':_0x3ebd7c['t'](_0x296d49(0x26e))})]})]}):_0x52e710('div',{'className':_0x296d49(0x2ff),'children':[_0x1af9b(_0x3b005c,{'emptyLabel':_0x3ebd7c['t'](_0x296d49(0x435)),'label':_0x3ebd7c['t'](_0x296d49(0x435)),'pickerFallbackValue':_0x15a225?_0x185704[_0x296d49(0x3bc)][0x384]:_0x185704['gray'][0x0],'resetLabel':_0x3ebd7c['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x59cb06[_0x296d49(0x34d)]??null,'onChange':_0x13ef24=>_0x2808ea({'backgroundColor':_0x13ef24??void 0x0})}),_0x52e710(ui,{'label':_0x3ebd7c['t']('bases-dashboard-ui.dashboardInspector.backgroundImage'),'children':[_0x52e710(_0x296d49(0x173),{'className':_0x296d49(0x2b7),'children':[_0x52e710(_0x2e1096,{'className':'univer-flex-1','onClick':()=>{const _0x2da33c=_0x296d49;_0x1ee2c2()[_0x2da33c(0x3ab)](_0x36db28=>{const _0x22ff81=_0x2da33c;if(_0x36db28){var _0x122aed;return _0x2808ea({'backgroundImage':{..._0x36db28,'fit':((_0x122aed=_0x59cb06['backgroundImage'])==null?void 0x0:_0x122aed[_0x22ff81(0x180)])??_0x22ff81(0x3de)}});}})[_0x2da33c(0x2c9)](()=>void 0x0);},'children':[_0x1af9b(_0x5a5e3d,{}),_0x59cb06[_0x296d49(0x3fb)]?_0x3ebd7c['t'](_0x296d49(0x27a)):_0x3ebd7c['t'](_0x296d49(0x44f))]}),_0x59cb06[_0x296d49(0x3fb)]&&_0x1af9b(_0x2e1096,{'aria-label':_0x3ebd7c['t'](_0x296d49(0x2c7)),'title':_0x3ebd7c['t'](_0x296d49(0x2c7)),'onClick':()=>_0x2808ea({'backgroundImage':void 0x0}),'children':_0x1af9b(_0x140734,{})})]}),_0x59cb06[_0x296d49(0x3fb)]&&_0x1af9b(_0x35fc77,{'className':_0x296d49(0x488),'items':[{'value':_0x296d49(0x3de),'label':_0x3ebd7c['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x296d49(0x4b8),'label':_0x3ebd7c['t'](_0x296d49(0x3b4))}],'value':_0x59cb06[_0x296d49(0x3fb)][_0x296d49(0x180)],'onChange':_0x1aa982=>_0x2808ea({'backgroundImage':_0x59cb06[_0x296d49(0x3fb)]?{..._0x59cb06[_0x296d49(0x3fb)],'fit':_0x1aa982}:void 0x0})})]}),_0x1af9b(_0x3b005c,{'emptyLabel':_0x3ebd7c['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x3ebd7c['t'](_0x296d49(0x3dc)),'pickerFallbackValue':_0x15a225?_0x185704[_0x296d49(0x3bc)][0x32]:_0x185704[_0x296d49(0x3bc)][0x3e8],'resetLabel':_0x3ebd7c['t'](_0x296d49(0x477)),'value':_0x59cb06[_0x296d49(0x321)]??null,'onChange':_0xe09a32=>_0x2808ea({'textColor':_0xe09a32??void 0x0})}),_0x1af9b(ui,{'label':_0x3ebd7c['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x1af9b(_0x35fc77,{'items':[{'value':'left','label':_0x3ebd7c['t'](_0x296d49(0x3d8))},{'value':_0x296d49(0x403),'label':_0x3ebd7c['t'](_0x296d49(0x302))},{'value':_0x296d49(0x312),'label':_0x3ebd7c['t'](_0x296d49(0x2fd))}],'value':_0x59cb06[_0x296d49(0x3a9)],'onChange':_0x909017=>_0x2808ea({'alignment':_0x909017})})}),_0x52e710(ui,{'label':_0x3ebd7c['t'](_0x296d49(0x2a7)),'children':[_0x1af9b(_0x35fc77,{'items':[{'value':_0x296d49(0x2a9),'label':_0x3ebd7c['t'](_0x296d49(0x45e))},{'value':_0x296d49(0x492),'label':_0x3ebd7c['t'](_0x296d49(0x326))}],'value':_0x59cb06[_0x296d49(0x4b2)],'onChange':_0x4914de=>_0x2808ea({'fontSizeMode':_0x4914de})}),_0x59cb06[_0x296d49(0x4b2)]===_0x296d49(0x492)&&_0x1af9b(_0x770794,{'className':_0x296d49(0x488),'min':0xc,'max':0x78,'value':_0x59cb06[_0x296d49(0x25d)],'onChange':_0x3726e6=>_0x2808ea({'fontSize':_0x3726e6??0x28,'fontSizeMode':_0x296d49(0x492)})})]}),_0x1af9b(ui,{'label':_0x3ebd7c['t'](_0x296d49(0x2b8)),'children':_0x1af9b(Yr,{'value':_0x59cb06['numberFormat'],'options':[{'value':_0x296d49(0x334),'label':_0x3ebd7c['t'](_0x296d49(0x292))},{'value':_0x296d49(0x24f),'label':_0x3ebd7c['t']('bases-dashboard-ui.dashboardInspector.number')},{'value':_0x296d49(0x465),'label':_0x3ebd7c['t'](_0x296d49(0x2fa))},{'value':_0x296d49(0x414),'label':_0x3ebd7c['t']('bases-dashboard-ui.dashboardInspector.currency')},{'value':_0x296d49(0x264),'label':_0x3ebd7c['t'](_0x296d49(0x365))},{'value':'compact','label':_0x3ebd7c['t'](_0x296d49(0x19b))}],'onChange':_0x11f342=>{const _0x734c0e=_0x296d49;let _0x1f5e03=ci[_0x734c0e(0x3ae)](_0x4dca3f=>_0x4dca3f===_0x11f342);_0x1f5e03&&_0x2808ea({'numberFormat':_0x1f5e03});}})}),_0x59cb06['numberFormat']===_0x296d49(0x414)&&_0x1af9b(ui,{'label':_0x3ebd7c['t'](_0x296d49(0x2b1)),'children':_0x1af9b(_0x4f1ee0,{'value':_0x59cb06[_0x296d49(0x414)],'onChange':_0x333f55=>_0x2808ea({'currency':_0x333f55[_0x296d49(0x45d)](0x0,0x3)[_0x296d49(0x459)]()})})}),_0x59cb06['numberFormat']!==_0x296d49(0x334)&&_0x1af9b(ui,{'label':_0x3ebd7c['t'](_0x296d49(0x43b)),'children':_0x1af9b(_0x770794,{'min':0x0,'max':0x8,'value':_0x59cb06[_0x296d49(0x497)],'onChange':_0x22b773=>_0x2808ea({'decimalPlaces':_0x22b773??0x0})})})]})}),_0x3f1cf5&&_0x1af9b(Zr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1af9b(_0x3edb60,{'tables':_0x419a2f,'formula':_0x47b245(_0x801c35,_0x419a2f),'onCancel':()=>_0x216d5b(!0x1),'onSave':_0x122db7=>{const _0x31d6c7=_0x296d49;let _0x5d0342=_0x4f69bd['shapeData'][_0x31d6c7(0x21e)]??{'formula':''};return _0xf80983({..._0x4f69bd,'shapeData':{..._0x4f69bd[_0x31d6c7(0x21c)],'formulaBinding':{..._0x5d0342,'formula':_0x47ab15(_0x122db7,_0x419a2f)}}})[_0x31d6c7(0x3ab)](()=>_0x216d5b(!0x1))[_0x31d6c7(0x2c9)](()=>void 0x0);}})})]});}function ui({children:_0x541e28,label:_0x5bfddc}){const _0x377523=_0x219009;return _0x52e710(_0x377523(0x173),{'role':'group','aria-label':_0x5bfddc,'className':_0x377523(0x359),'children':[_0x1af9b(_0x377523(0x46c),{'children':_0x5bfddc}),_0x541e28]});}function di({disabled:_0x1de8c4,fields:_0x27bffb,filter:_0x52b4ce,onChange:_0x44b887}){const _0xea4ab6=_0x219009;let _0x36504d=_0xb3eab7(_0x2fc378)[_0xea4ab6(0x377)]??null,[_0x2c83d3,_0x559dcc]=_0x277721(null),_0xce5f8d=_0xb3eab7(_0x51de0a),_0x415a2a=(_0x52b4ce==null?void 0x0:_0x52b4ce[_0xea4ab6(0x33c)])??[];if(!_0x415a2a[_0xea4ab6(0x348)])return _0x52e710(_0xea4ab6(0x173),{'className':'univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','children':[_0x1af9b(_0x50dfce,{'className':_0xea4ab6(0x44a)}),_0x1af9b(_0xea4ab6(0x46c),{'className':_0xea4ab6(0x494),'children':_0xce5f8d['t'](_0xea4ab6(0x1fb))})]});let _0x489f92=_0x2c83d3==null?void 0x0:_0x415a2a[_0x2c83d3],_0x1e41b4=_0x27bffb[_0xea4ab6(0x3ae)](_0x4bfbfe=>_0x4bfbfe['id']===(_0x489f92==null?void 0x0:_0x489f92['fieldId']));return _0x52e710(_0xea4ab6(0x173),{'className':'univer-grid\x20univer-gap-2\x20univer-p-3','children':[_0x415a2a['map']((_0x1f438d,_0x2c588e)=>{const _0x59fd55=_0xea4ab6;var _0x3c4a00;return _0x52e710(_0x2e1096,{'disabled':_0x1de8c4,'onClick':()=>_0x559dcc(_0x2c588e),'children':[_0x1af9b(_0x59fd55(0x46c),{'children':((_0x3c4a00=_0x27bffb[_0x59fd55(0x3ae)](_0x1e57ff=>_0x1e57ff['id']===_0x1f438d['fieldId']))==null?void 0x0:_0x3c4a00[_0x59fd55(0x3aa)])??_0x1f438d[_0x59fd55(0x1cb)]}),_0x1af9b(_0x59fd55(0x46c),{'className':'univer-truncate','children':String(_0x1f438d[_0x59fd55(0x215)]??'')})]},_0x1f438d['fieldId']+'-'+_0x2c588e);}),_0x1e41b4&&_0x489f92&&_0x2c83d3!=null&&_0x36504d&&_0x511ab4(_0x1af9b(_0x2b139d,{'field':_0x1e41b4,'value':_0x489f92[_0xea4ab6(0x215)],'onClose':()=>_0x559dcc(null),'onSave':_0x68152c=>{const _0x3be6d5=_0xea4ab6;_0x44b887({'conjunction':(_0x52b4ce==null?void 0x0:_0x52b4ce[_0x3be6d5(0x41c)])??_0x47b446[_0x3be6d5(0x21a)],'conditions':_0x415a2a[_0x3be6d5(0x43f)]((_0x3927ba,_0x3d891e)=>_0x3d891e===_0x2c83d3?{..._0x3927ba,'operand':_0x68152c}:_0x3927ba)}),_0x559dcc(null);}}),_0x36504d)]});}function fi({fields:_0x14de0c,filter:_0x26096c,onChange:_0x174e00,onClear:_0x26e39b}){const _0x494273=_0x219009;let _0x5e7ab2=_0xb3eab7(_0x51de0a);return _0x52e710(_0x494273(0x173),{'children':[_0x1af9b(_0x5ea8f9,{'fields':_0x14de0c,'value':_0x26096c??{'conjunction':_0x47b446[_0x494273(0x21a)],'conditions':[]},'onChange':_0x174e00}),_0x1af9b(_0x2e1096,{'onClick':_0x26e39b,'children':_0x5e7ab2['t'](_0x494273(0x477))})]});}function pi({base:_0x469b1c,chartRuntime:_0x1235d7,onChange:_0x2d1cfd,onClose:_0x2a2319,onSelectBackgroundImage:_0x5d9d01,onSelectImage:_0x55e6b9,unitId:_0x3a3c36,widget:_0x1f959a}){const _0x53a02e=_0x219009;let _0x544b4e=_0xb3eab7(_0x4a773c),_0x349926=_0xb3eab7(_0x51de0a),_0x3de438=_0x469b1c[_0x53a02e(0x206)](),_0x307e0c=_0x53a02e(0x35c)in _0x1f959a?_0x3de438['tables'][_0x1f959a[_0x53a02e(0x35c)]]:void 0x0,_0x1bb7d2=_0x1f959a['type']===_0xf5049a['PivotChart']?_0x307e0c==null?void 0x0:_0x307e0c['views'][_0x1f959a[_0x53a02e(0x4c1)]]:void 0x0,_0x340664=_0x349926['t'](bi(_0x1f959a)),_0x424ba8=_0x52e710('aside',{'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':[_0x1f959a[_0x53a02e(0x4b9)]===_0xf5049a[_0x53a02e(0x1a1)]&&(yi(_0x1bb7d2)&&_0x1235d7?_0x1af9b(oi,{'runtime':_0x1235d7,'sourceChart':_0x1bb7d2['config'][_0x53a02e(0x2fc)],'sourceName':((_0x307e0c==null?void 0x0:_0x307e0c[_0x53a02e(0x3aa)])??'')+_0x53a02e(0x2c6)+_0x1bb7d2[_0x53a02e(0x3aa)],'widget':_0x1f959a,'onChange':_0x2d1cfd,'onEditData':()=>{const _0x2f6c11=_0x53a02e;_0x544b4e[_0x2f6c11(0x43d)](_0x1939e2['id'],{'unitId':_0x3a3c36,'tableId':_0x1f959a['tableId'],'viewId':_0x1f959a[_0x2f6c11(0x4c1)]})['catch'](()=>void 0x0);}}):_0x1af9b(_i,{'message':yi(_0x1bb7d2)?_0x349926['t'](_0x53a02e(0x376)):_0x349926['t'](_0x53a02e(0x37d))})),_0x1f959a[_0x53a02e(0x4b9)]===_0xf5049a['FormulaShape']&&_0x1af9b(li,{'base':_0x469b1c,'widget':_0x1f959a,'onChange':_0x2d1cfd,'onSelectBackgroundImage':_0x5d9d01}),_0x1f959a['type']===_0xf5049a[_0x53a02e(0x44b)]&&_0x1af9b(hi,{'base':_0x469b1c,'onChange':_0x2d1cfd,'widget':_0x1f959a}),_0x1f959a[_0x53a02e(0x4b9)]===_0xf5049a[_0x53a02e(0x42d)]&&_0x1af9b(gi,{'onChange':_0x2d1cfd,'widget':_0x1f959a}),_0x1f959a['type']===_0xf5049a['Image']&&_0x1af9b(mi,{'onChange':_0x2d1cfd,'onSelectImage':_0x55e6b9,'widget':_0x1f959a})]});return _0x1af9b(_0x5cf81f,{'title':_0x340664,'onClose':_0x2a2319,'children':_0x424ba8});}function mi({onChange:_0x2da842,onSelectImage:_0x56b876,widget:_0x35f520}){const _0x4ecd5d=_0x219009;let _0x43d348=_0xb3eab7(_0x51de0a);return _0x52e710('div',{'className':_0x4ecd5d(0x2f8),'children':[_0x52e710(_0x2e1096,{'className':'univer-w-full','onClick':()=>_0x56b876()[_0x4ecd5d(0x3ab)](_0x3fb1f4=>_0x3fb1f4&&_0x2da842({..._0x35f520,'source':_0x3fb1f4['source'],'sourceType':_0x3fb1f4['sourceType'],'alt':_0x3fb1f4['name']}))[_0x4ecd5d(0x2c9)](()=>void 0x0),'children':[_0x1af9b(_0x5a5e3d,{}),_0x43d348['t'](_0x4ecd5d(0x27a))]}),_0x52e710('label',{'className':_0x4ecd5d(0x359),'children':[_0x1af9b('span',{'children':_0x43d348['t'](_0x4ecd5d(0x3ef))}),_0x1af9b(_0x35fc77,{'items':[{'value':_0x4ecd5d(0x3de),'label':_0x43d348['t'](_0x4ecd5d(0x480))},{'value':_0x4ecd5d(0x3b5),'label':_0x43d348['t']('bases-dashboard-ui.dashboardInspector.repeat')},{'value':_0x4ecd5d(0x4af),'label':_0x43d348['t'](_0x4ecd5d(0x350))}],'value':_0x35f520[_0x4ecd5d(0x343)]??_0x4ecd5d(0x3de),'onChange':_0x4cb6e4=>_0x2da842({..._0x35f520,'displayMode':_0x4cb6e4})['catch'](()=>void 0x0)})]})]});}function hi({base:_0x3d7db5,onChange:_0x348e22,widget:_0x3c60b7}){const _0x1c9d63=_0x219009;let _0x250684=_0x3d7db5[_0x1c9d63(0x206)]()['tables'][_0x3c60b7[_0x1c9d63(0x35c)]],_0x2cdb86=_0x250684==null?void 0x0:_0x250684[_0x1c9d63(0x3af)]['find'](_0x728d8b=>_0x250684[_0x1c9d63(0x2ea)][_0x728d8b]),_0x40c06a=_0x2cdb86?_0x250684==null?void 0x0:_0x250684[_0x1c9d63(0x2ea)][_0x2cdb86]:void 0x0,_0x4ded83=_0x250684&&_0x40c06a?_0xfb2dac(_0x250684,_0x40c06a):[];return _0x1af9b(fi,{'fields':_0x4ded83,'filter':_0x3c60b7[_0x1c9d63(0x498)],'onChange':_0x1775ca=>_0x348e22({..._0x3c60b7,'filter':_0x1775ca})[_0x1c9d63(0x2c9)](()=>void 0x0),'onClear':()=>_0x348e22({..._0x3c60b7,'filter':null})[_0x1c9d63(0x2c9)](()=>void 0x0)});}function gi({onChange:_0x2d6366,widget:_0x34c65d}){const _0x569597=_0x219009;let _0x908150=_0xb3eab7(_0x51de0a),_0x366fda=_0xb3eab7(_0x52f5e2),_0x51d3a4=_0x97415f(()=>_0x366fda[_0x569597(0x341)],_0x366fda[_0x569597(0x2ed)](),!0x1,[_0x366fda]),_0x57c2ad=Hr(_0x34c65d),_0x56f314=_0x1b939a=>_0x2d6366({..._0x34c65d,'appearance':{..._0x57c2ad,..._0x1b939a}})[_0x569597(0x2c9)](()=>void 0x0);return _0x52e710(_0x569597(0x173),{'className':_0x569597(0x3f2),'children':[_0x1af9b(_0x439fc9,{'className':_0x569597(0x2f5),'defaultValue':Ur(_0x34c65d[_0x569597(0x295)]),'rows':0x8,'onBlur':_0x379996=>_0x2d6366({..._0x34c65d,'document':Wr(_0x34c65d[_0x569597(0x295)],_0x379996[_0x569597(0x40c)][_0x569597(0x286)])})[_0x569597(0x2c9)](()=>void 0x0)}),_0x1af9b(_0x3b005c,{'emptyLabel':_0x908150['t'](_0x569597(0x435)),'label':_0x908150['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x51d3a4[_0x569597(0x3bc)][0x0],'resetLabel':_0x908150['t'](_0x569597(0x477)),'value':_0x57c2ad['backgroundColor']??null,'onChange':_0x377524=>_0x56f314({'backgroundColor':_0x377524??void 0x0})}),_0x1af9b(_0x3b005c,{'emptyLabel':_0x908150['t'](_0x569597(0x3dc)),'label':_0x908150['t'](_0x569597(0x3dc)),'pickerFallbackValue':_0x51d3a4[_0x569597(0x3bc)][0x3e8],'resetLabel':_0x908150['t'](_0x569597(0x477)),'value':_0x57c2ad[_0x569597(0x321)]??null,'onChange':_0x1581fd=>_0x56f314({'textColor':_0x1581fd??void 0x0})}),_0x1af9b(vi,{'label':_0x908150['t'](_0x569597(0x278)),'children':_0x1af9b(_0x35fc77,{'items':[{'value':_0x569597(0x357),'label':_0x908150['t'](_0x569597(0x3d8))},{'value':_0x569597(0x403),'label':_0x908150['t'](_0x569597(0x302))},{'value':'right','label':_0x908150['t'](_0x569597(0x2fd))}],'value':_0x57c2ad[_0x569597(0x3a9)],'onChange':_0x1744ff=>_0x56f314({'alignment':_0x1744ff})})}),_0x52e710(vi,{'label':_0x908150['t'](_0x569597(0x2a7)),'children':[_0x1af9b(_0x35fc77,{'items':[{'value':_0x569597(0x2a9),'label':_0x908150['t'](_0x569597(0x45e))},{'value':_0x569597(0x492),'label':_0x908150['t'](_0x569597(0x326))}],'value':_0x57c2ad[_0x569597(0x4b2)],'onChange':_0x273955=>_0x56f314({'fontSizeMode':_0x273955})}),_0x57c2ad['fontSizeMode']==='custom'&&_0x1af9b(_0x770794,{'className':_0x569597(0x488),'min':0xa,'max':0x78,'value':_0x57c2ad['fontSize'],'onChange':_0x1dafb7=>_0x56f314({'fontSize':_0x1dafb7??0x12,'fontSizeMode':_0x569597(0x492)})})]})]});}function _i({message:_0x268dd9}){const _0x13141e=_0x219009;return _0x1af9b(_0x13141e(0x173),{'className':_0x13141e(0x23b),'children':_0x268dd9});}function vi({children:_0x33645b,label:_0x22df28}){const _0x27a325=_0x219009;return _0x52e710('div',{'role':_0x27a325(0x1a0),'aria-':!0x0,'className':_0x27a325(0x359),'children':[_0x1af9b(_0x27a325(0x46c),{'children':_0x22df28}),_0x33645b]});}function yi(_0xfec106){const _0x1feb1d=_0x219009;return(_0xfec106==null?void 0x0:_0xfec106[_0x1feb1d(0x4b9)])===_0x4ec201['Pivot']&&typeof _0xfec106[_0x1feb1d(0x2dc)]=='object'&&_0xfec106['config']!==null&&_0x1feb1d(0x3b3)in _0xfec106[_0x1feb1d(0x2dc)]&&'chart'in _0xfec106[_0x1feb1d(0x2dc)];}function bi(_0x5ac0d9){const _0x165606=_0x219009;switch(_0x5ac0d9['type']){case _0xf5049a[_0x165606(0x1a1)]:return _0x165606(0x35b);case _0xf5049a[_0x165606(0x44b)]:return'bases-dashboard-ui.dashboard.tableFilter';case _0xf5049a[_0x165606(0x42d)]:return _0x165606(0x299);case _0xf5049a[_0x165606(0x20c)]:return'bases-dashboard-ui.dashboard.image';case _0xf5049a['FormulaShape']:return'bases-dashboard-ui.dashboard.formulaShape';}}function xi({onDelete:_0x4a4805,onEdit:_0x560a63,onMoveUp:_0xaa24b2,onMoveDown:_0x41ef8b}){const _0x13dd55=_0x219009;let [_0x3b68bf,_0x17cd18]=_0x277721(!0x1),_0x25369e=_0xb3eab7(_0x51de0a),_0x421e40=_0x25369e['t'](_0x13dd55(0x2e1)),_0x576879=_0x25369e['t'](_0x13dd55(0x354)),_0x590697=_0x25369e['t'](_0x13dd55(0x2b5)),_0x2d5284=[{'type':_0x13dd55(0x1f9),'children':_0x52e710('span',{'className':_0x13dd55(0x4d0),'children':[_0x1af9b(_0x579511,{'className':_0x13dd55(0x2ba),'aria-hidden':_0x13dd55(0x1be)}),_0x1af9b(_0x13dd55(0x46c),{'children':_0x421e40})]}),'onSelect':_0x560a63},..._0xaa24b2?[{'type':_0x13dd55(0x1f9),'children':_0x52e710('span',{'className':_0x13dd55(0x4d0),'children':[_0x1af9b(_0x5cdc9f,{'className':_0x13dd55(0x2ba),'aria-hidden':_0x13dd55(0x1be)}),_0x1af9b('span',{'children':_0x25369e['t'](_0x13dd55(0x4ce))})]}),'onSelect':_0xaa24b2}]:[],..._0x41ef8b?[{'type':_0x13dd55(0x1f9),'children':_0x52e710(_0x13dd55(0x46c),{'className':_0x13dd55(0x4d0),'children':[_0x1af9b(_0x23dcce,{'className':'univer-size-4','aria-hidden':'true'}),_0x1af9b(_0x13dd55(0x46c),{'children':_0x25369e['t']('bases-dashboard-ui.mobile.moveDown')})]}),'onSelect':_0x41ef8b}]:[],{'type':_0x13dd55(0x31b)},{'type':_0x13dd55(0x1f9),'variant':'destructive','children':_0x52e710(_0x13dd55(0x46c),{'className':_0x13dd55(0x4d0),'children':[_0x1af9b(_0x140734,{'className':_0x13dd55(0x2ba),'aria-hidden':_0x13dd55(0x1be)}),_0x1af9b(_0x13dd55(0x46c),{'children':_0x576879})]}),'onSelect':_0x4a4805}];return _0x1af9b(_0x2049bb,{'open':_0x3b68bf,'onOpenChange':_0x17cd18,'align':_0x13dd55(0x1d5),'sideOffset':0x4,'items':_0x2d5284['map'](_0x3c6210=>({..._0x3c6210,'className':_0x3c6210[_0x13dd55(0x4b9)]===_0x13dd55(0x1f9)?_0x13dd55(0x25c):void 0x0})),'children':_0x1af9b(_0x2e1096,{'type':_0x13dd55(0x1c2),'size':_0x13dd55(0x43e),'variant':'text','onPointerDown':_0x375c62=>_0x375c62[_0x13dd55(0x33b)](),'onClick':()=>_0x17cd18(_0x372168=>!_0x372168),'title':_0x590697,'aria-label':_0x590697,'className':'univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','children':_0x1af9b(_0x2ae422,{'className':_0x13dd55(0x2ba),'aria-hidden':_0x13dd55(0x1be)})})});}function Si({dashboardId:_0x49ea6c,presentation:_0x139e0e=!0x1,unitId:_0x223a80}){const _0x82cc0a=_0x219009;let _0xfb8510=_0xb3eab7(_0x9ca0eb),_0x100882=_0xb3eab7(_0x19d4a8);_0x97415f(_0x100882[_0x82cc0a(0x3f9)],0x0);let _0x40cdda=_0xb3eab7(_0x4a773c),_0x1c4f1c=_0xb3eab7(_0x2b6ea6),_0x2cbfa3=_0xb3eab7(_0xc6de23),_0x5d3d98=_0xb3eab7(_0x144775),_0x36312b=_0xb3eab7(_0x51de0a),_0x5bf784=_0xb3eab7(_0x24d6a6),_0xca4f57=_0xb3eab7(_0x3b1640),[_0x45c65b,_0x4ae475]=_0x277721(!0x1),[_0x1a2815,_0x279ee2]=_0x277721(),[_0x4fc744,_0x489d1b]=_0x277721(!0x1),[_0x2c7425,_0x3a071d]=_0x277721(()=>new Map()),_0x495d86=_0x547d95((_0x35f19,_0x5c90f4)=>{_0x3a071d(_0x3a633e=>{const _0x3396b9=_0x4abf;let _0x277f52=new Map(_0x3a633e);return _0x5c90f4?_0x277f52[_0x3396b9(0x217)](_0x35f19,_0x5c90f4):_0x277f52[_0x3396b9(0x280)](_0x35f19),_0x277f52;});},[]),_0x2f5d34=_0x97415f(()=>_0x5bf784[_0x82cc0a(0x3a3)][_0x82cc0a(0x20d)](_0x3dd263(()=>_0x5bf784[_0x82cc0a(0x4ca)](_0x223a80,_0x49ea6c))),_0x5bf784[_0x82cc0a(0x4ca)](_0x223a80,_0x49ea6c),!0x1,[_0x49ea6c,_0x5bf784,_0x223a80]),_0xd49eb4=_0x5d3d98[_0x82cc0a(0x225)](_0x223a80,_0x160ed0[_0x82cc0a(0x1b7)]),_0x27a7de=_0x97415f(()=>_0xca4f57[_0x82cc0a(0x330)],{'undos':0x0,'redos':0x0},!0x1,[_0xca4f57]),_0x3c1a9f=vr(_0x223a80,_0x49ea6c);if(_0x2153d6(()=>{const _0x5aa261=_0x82cc0a;_0x5d3d98[_0x5aa261(0x3e2)](_0x223a80),_0x5d3d98[_0x5aa261(0x1d4)](_0x223a80);},[_0x5d3d98,_0x223a80]),!_0x2f5d34||!_0xd49eb4)return null;let _0x4def40={'unitId':_0x223a80,'objectId':_0x5d041f(_0x49ea6c),'objectType':_0x2e13ef['BaseDashboard']},_0x37fc11=(_0xf9baf5,_0x166a87)=>{const _0x3d818b=_0x82cc0a;let _0x2b32df=[..._0x2f5d34[_0x3d818b(0x4c5)]],_0x5001e5=_0x2b32df['indexOf'](_0xf9baf5),_0x189074=_0x5001e5+_0x166a87;if(!(_0x5001e5<0x0||_0x189074<0x0||_0x189074>=_0x2b32df[_0x3d818b(0x348)]))return[_0x2b32df[_0x5001e5],_0x2b32df[_0x189074]]=[_0x2b32df[_0x189074],_0x2b32df[_0x5001e5]],_0x40cdda[_0x3d818b(0x43d)](_0x570003['id'],{'unitId':_0x223a80,'dashboard':{..._0x2f5d34,'widgetOrder':_0x2b32df}});},_0x419504=_0x50a024=>_0x40cdda[_0x82cc0a(0x43d)](_0x53172b['id'],{'unitId':_0x223a80,'dashboardId':_0x49ea6c,'widget':_0x50a024})[_0x82cc0a(0x2c9)](()=>void 0x0),_0x44b967=(_0x3da85d,_0x496192,_0xaf236e)=>{const _0x1f6966=_0x82cc0a;let _0x4891d0=Math['max'](0x0,..._0x2f5d34[_0x1f6966(0x4c5)][_0x1f6966(0x1ae)](_0x50e7de=>{const _0x5be4a1=_0x1f6966;var _0x313d61;let _0x4943ad=(_0x313d61=_0x2f5d34[_0x5be4a1(0x4a2)][_0x50e7de])==null?void 0x0:_0x313d61[_0x5be4a1(0x16e)];return _0x4943ad?[_0x4943ad[_0x5be4a1(0x38b)]+_0x4943ad['rowSpan']]:[];})),_0x19469c='dashboard-widget-'+_0x3dac7b(0x8),_0x332b50={'column':0x0,'row':_0x4891d0,'columnSpan':_0x496192,'rowSpan':_0xaf236e};switch(_0x3da85d[_0x1f6966(0x4b9)]){case _0xf5049a['PivotChart']:return _0x419504({..._0x3da85d,'id':_0x19469c,'layout':_0x332b50});case _0xf5049a[_0x1f6966(0x44b)]:return _0x419504({..._0x3da85d,'id':_0x19469c,'layout':_0x332b50});case _0xf5049a['Text']:return _0x419504({..._0x3da85d,'id':_0x19469c,'layout':_0x332b50});case _0xf5049a[_0x1f6966(0x20c)]:return _0x419504({..._0x3da85d,'id':_0x19469c,'layout':_0x332b50});case _0xf5049a['FormulaShape']:return _0x419504({..._0x3da85d,'id':_0x19469c,'layout':_0x332b50});}},_0x2eaf52=_0xd49eb4['getSnapshot'](),_0x53e298=_0x2eaf52[_0x82cc0a(0x2aa)][_0x82cc0a(0x1ae)](_0x4a2451=>{const _0x10462a=_0x82cc0a;let _0x58c3fe=_0x2eaf52[_0x10462a(0x44e)][_0x4a2451];if(!_0x58c3fe)return[];let _0x10f462=_0x58c3fe[_0x10462a(0x3af)][_0x10462a(0x1ae)](_0x3545f7=>{const _0x3bfa3e=_0x10462a;let _0x2bee2b=_0x58c3fe[_0x3bfa3e(0x2ea)][_0x3545f7];return Ai(_0x2bee2b)?[{'type':_0x3bfa3e(0x1f9),'children':_0x2bee2b[_0x3bfa3e(0x3aa)],'onSelect':()=>_0x44b967({'type':_0xf5049a[_0x3bfa3e(0x1a1)],'tableId':_0x4a2451,'pivotViewId':_0x3545f7,'chart':{..._0x2bee2b[_0x3bfa3e(0x2dc)]['chart']}},0x6,0xa)}]:[];});return[{'type':_0x10462a(0x390),'children':_0x58c3fe[_0x10462a(0x3aa)],'options':[..._0x10f462,..._0x10f462['length']?[{'type':_0x10462a(0x31b)}]:[],{'type':'item','children':_0x36312b['t'](_0x10462a(0x1fb)),'onSelect':()=>_0x44b967({'type':_0xf5049a[_0x10462a(0x44b)],'tableId':_0x4a2451,'filter':null},0x6,0x8)}]}];}),_0x6809fd=[..._0x53e298,..._0x53e298[_0x82cc0a(0x348)]?[{'type':_0x82cc0a(0x31b)}]:[],{'type':_0x82cc0a(0x1f9),'children':_0x36312b['t'](_0x82cc0a(0x299)),'onSelect':()=>_0x44b967({'type':_0xf5049a[_0x82cc0a(0x42d)],'document':Ei()},0x4,0x6)},{'type':_0x82cc0a(0x1f9),'children':_0x36312b['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>Di(_0x1c4f1c)[_0x82cc0a(0x3ab)](_0x29baaa=>_0x29baaa&&_0x44b967({'type':_0xf5049a['Image'],'source':_0x29baaa['source'],'sourceType':_0x29baaa[_0x82cc0a(0x33f)],'alt':_0x29baaa['name'],'displayMode':_0x82cc0a(0x3de)},0x4,0x6))},{'type':_0x82cc0a(0x1f9),'children':_0x36312b['t']('bases-dashboard-ui.dashboard.formulaShape'),'onSelect':()=>{const _0x4fa25c=_0x82cc0a;let _0xb673e2=_0x2eaf52[_0x4fa25c(0x2aa)]['find'](_0x276ff2=>_0x2eaf52[_0x4fa25c(0x44e)][_0x276ff2]);_0xb673e2&&_0x44b967({'type':_0xf5049a[_0x4fa25c(0x219)],'tableId':_0xb673e2,'shapeType':_0x5039fb[_0x4fa25c(0x313)],'shapeData':_0x4027ac(),'description':_0x36312b['t'](_0x4fa25c(0x35d))},0x4,0x6);}}],_0x25c267=_0x1a2815?_0x2f5d34[_0x82cc0a(0x4a2)][_0x1a2815]:void 0x0,_0x3ddb4d=()=>_0x489d1b(_0x269ade=>!_0x269ade),_0x55a2e3=_0x139e0e||_0x4fc744,_0x31b2d9=_0x3c1a9f&&!_0x55a2e3;return _0x1af9b(Jr,{'children':_0x52e710(_0x82cc0a(0x173),{'className':_0x82cc0a(0x254)+(_0x4fc744?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':_0x82cc0a(0x3a2))+_0x82cc0a(0x3e1),'children':[_0x4fc744&&_0x1af9b(_0x2e1096,{'onClick':()=>_0x489d1b(!0x1),'children':_0x36312b['t']('bases-dashboard-ui.dashboardInspector.close')}),!_0x55a2e3&&_0x52e710('header',{'className':_0x82cc0a(0x296),'children':[_0x1af9b(_0x4c651f,{'className':'univer-size-5\x20univer-text-primary-600'}),_0x1af9b('h2',{'className':_0x82cc0a(0x3d3),'children':_0x2f5d34[_0x82cc0a(0x3aa)]}),_0x100882[_0x82cc0a(0x238)](_0x4def40)&&_0x1af9b(_0x2e1096,{'variant':_0x82cc0a(0x209),'disabled':!_0x100882['canView'](_0x4def40),'aria-label':_0x36312b['t'](_0x82cc0a(0x421)),'onClick':()=>{const _0x42ca33=_0x82cc0a;_0x4b14fb(_0xfb8510,{'target':_0x4def40,'name':_0x2f5d34[_0x42ca33(0x3aa)],'commandId':_0x54bb96['id'],'exists':()=>!!_0x5bf784[_0x42ca33(0x4ca)](_0x223a80,_0x49ea6c)});},'children':_0x1af9b(_0x56d64d,{})}),_0x1af9b(_0x782d5,{'unitId':_0x223a80}),_0x1af9b(_0x2e1096,{'type':_0x82cc0a(0x1c2),'size':_0x82cc0a(0x43e),'variant':_0x82cc0a(0x209),'aria-label':_0x36312b['t'](_0x82cc0a(0x273)),'disabled':!_0x3c1a9f||_0x27a7de[_0x82cc0a(0x2e9)]===0x0,'onClick':()=>_0x40cdda[_0x82cc0a(0x43d)](_0x3d9772['id'])[_0x82cc0a(0x2c9)](()=>void 0x0),'children':_0x1af9b(_0x44b3b1,{})}),_0x1af9b(_0x2e1096,{'type':_0x82cc0a(0x1c2),'size':'small','variant':_0x82cc0a(0x209),'aria-label':_0x36312b['t'](_0x82cc0a(0x182)),'disabled':!_0x3c1a9f||_0x27a7de[_0x82cc0a(0x1f4)]===0x0,'onClick':()=>_0x40cdda[_0x82cc0a(0x43d)](_0x372344['id'])[_0x82cc0a(0x2c9)](()=>void 0x0),'children':_0x1af9b(_0x21d4d7,{})}),_0x1af9b(_0x2e1096,{'type':_0x82cc0a(0x1c2),'size':_0x82cc0a(0x43e),'variant':'text','aria-label':_0x36312b['t']('bases-dashboard-ui.dashboard.fullScreen'),'onClick':_0x3ddb4d,'children':_0x1af9b(_0x19f77a,{})}),_0x1af9b(Xr,{'items':_0x6809fd,'children':_0x52e710(_0x2e1096,{'variant':_0x82cc0a(0x2f7),'disabled':!_0x3c1a9f,'children':[_0x1af9b(_0x5a5e3d,{}),_0x36312b['t']('bases-dashboard-ui.dashboard.addWidget')]})})]}),_0x52e710('div',{'className':_0x82cc0a(0x3db),'children':[_0x1af9b(_0x82cc0a(0x173),{'className':_0x82cc0a(0x22a),'children':_0x1af9b(Kr,{'dashboard':_0x2f5d34,'editable':_0x31b2d9,'widgetLabel':_0x198b74=>_0x36312b['t'](ki(_0x198b74['type'])),'selectedWidgetId':_0x31b2d9?_0x1a2815:void 0x0,'onSelectWidget':_0x31b2d9?_0x4199b5=>{_0x279ee2(_0x4199b5),_0x4199b5||_0x4ae475(!0x1);}:void 0x0,'renderWidget':_0x3e13f3=>_0x1af9b(Ci,{'base':_0xd49eb4,'dashboard':_0x2f5d34,'unitId':_0x223a80,'widget':_0x3e13f3,'onChange':_0x419504,'onChartRuntimeChange':_0x495d86}),'renderWidgetActions':_0x4abb5b=>_0x1af9b(xi,{'onMoveUp':_0x2f5d34[_0x82cc0a(0x4c5)][_0x82cc0a(0x408)](_0x4abb5b['id'])>0x0?()=>_0x37fc11(_0x4abb5b['id'],-0x1):void 0x0,'onMoveDown':_0x2f5d34[_0x82cc0a(0x4c5)][_0x82cc0a(0x408)](_0x4abb5b['id'])<_0x2f5d34[_0x82cc0a(0x4c5)]['length']-0x1?()=>_0x37fc11(_0x4abb5b['id'],0x1):void 0x0,'onEdit':()=>{_0x279ee2(_0x4abb5b['id']),_0x4ae475(!0x0);},'onDelete':()=>{const _0xcb5b84=_0x82cc0a;_0x1a2815===_0x4abb5b['id']&&(_0x279ee2(void 0x0),_0x4ae475(!0x1)),_0x40cdda['executeCommand'](_0x451a8b['id'],{'unitId':_0x223a80,'dashboardId':_0x49ea6c,'widgetId':_0x4abb5b['id']})[_0xcb5b84(0x2c9)](()=>void 0x0);}})})}),_0x31b2d9&&_0x45c65b&&_0x25c267&&_0x1af9b(pi,{'base':_0xd49eb4,'chartRuntime':_0x2c7425[_0x82cc0a(0x411)](_0x25c267['id']),'unitId':_0x223a80,'widget':_0x25c267,'onChange':_0x419504,'onClose':()=>_0x4ae475(!0x1),'onSelectBackgroundImage':()=>Oi(_0x2cbfa3),'onSelectImage':()=>Di(_0x1c4f1c)})]})]})});}function Ci({base:_0x2bf24b,dashboard:_0xcb0cc8,onChange:_0x4decd4,onChartRuntimeChange:_0x5aa35b,unitId:_0x591bd4,widget:_0x1eb306}){const _0x3c826f=_0x219009;let _0x39bf07=_0x2a7f67(()=>_0xcb0cc8['widgetOrder']['flatMap'](_0x44cee0=>{const _0x5cbdae=_0x4abf;let _0x3b7413=_0xcb0cc8[_0x5cbdae(0x4a2)][_0x44cee0];return(_0x3b7413==null?void 0x0:_0x3b7413['type'])===_0xf5049a[_0x5cbdae(0x44b)]&&_0x3b7413['tableId']===(_0x5cbdae(0x35c)in _0x1eb306?_0x1eb306[_0x5cbdae(0x35c)]:'')&&_0x3b7413[_0x5cbdae(0x498)]?[_0x3b7413[_0x5cbdae(0x498)]]:[];}),[_0xcb0cc8,_0x1eb306]);switch(_0x1eb306[_0x3c826f(0x4b9)]){case _0xf5049a[_0x3c826f(0x1a1)]:return _0x1af9b(zr,{'filters':_0x39bf07,'unitId':_0x591bd4,'widget':_0x1eb306,'onRuntimeChange':_0x5aa35b});case _0xf5049a[_0x3c826f(0x44b)]:return _0x1af9b(di,{'fields':wi(_0x2bf24b,_0x1eb306['tableId']),'filter':_0x1eb306[_0x3c826f(0x498)],'onChange':_0x1b2f58=>_0x4decd4({..._0x1eb306,'filter':_0x1b2f58})[_0x3c826f(0x2c9)](()=>void 0x0)});case _0xf5049a['Text']:return _0x1af9b(Gr,{'widget':_0x1eb306});case _0xf5049a[_0x3c826f(0x20c)]:return _0x1af9b(Ti,{'widget':_0x1eb306});case _0xf5049a[_0x3c826f(0x219)]:return _0x1af9b(kr,{'dashboardId':_0xcb0cc8['id'],'unitId':_0x591bd4,'widget':_0x1eb306});}}function wi(_0x2dee7e,_0x1c910b){const _0x15698d=_0x219009;let _0x31269a=_0x2dee7e[_0x15698d(0x206)]()[_0x15698d(0x44e)][_0x1c910b],_0x9a26e3=_0x31269a==null?void 0x0:_0x31269a['viewOrder'][_0x15698d(0x3ae)](_0x2f511c=>_0x31269a[_0x15698d(0x2ea)][_0x2f511c]),_0x5c0ab5=_0x9a26e3?_0x31269a==null?void 0x0:_0x31269a['views'][_0x9a26e3]:void 0x0;return _0x31269a&&_0x5c0ab5?_0xfb2dac(_0x31269a,_0x5c0ab5):[];}function Ti({widget:_0x5bb085}){const _0x449b5d=_0x219009;let _0x25d689=_0xb3eab7(_0x2b6ea6),[_0x9b2150,_0x3b2b8e]=_0x277721(_0x5bb085[_0x449b5d(0x33f)]===_0x55ad71['UUID']?'':_0x5bb085[_0x449b5d(0x252)]);return _0x2153d6(()=>{const _0x71a83e=_0x449b5d;let _0x11fdbb=!0x0;return _0x25d689[_0x71a83e(0x49e)](_0x5bb085['source'],_0x5bb085[_0x71a83e(0x33f)])[_0x71a83e(0x3ab)](_0x434ea5=>{_0x11fdbb&&_0x3b2b8e(_0x434ea5);})[_0x71a83e(0x2c9)](()=>void 0x0),()=>{_0x11fdbb=!0x1;};},[_0x25d689,_0x5bb085[_0x449b5d(0x252)],_0x5bb085[_0x449b5d(0x33f)]]),_0x9b2150?_0x1af9b('div',{'role':_0x5bb085['alt']?_0x449b5d(0x397):void 0x0,'aria-label':_0x5bb085['alt']||void 0x0,'data-dashboard-image':_0x5bb085['id'],'className':_0x449b5d(0x48d),'style':br(_0x9b2150,_0x5bb085[_0x449b5d(0x343)])}):null;}function Ei(){let _0x42ecaa=_0x18fe69(new Set());return{'id':'dashboard-text-'+_0x3dac7b(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x42ecaa}]},'documentStyle':{}};}function Di(_0x234fdc){return new Promise(_0xe2c47c=>{const _0x1e30cb=_0x4abf;let _0x20d05e=document[_0x1e30cb(0x314)](_0x1e30cb(0x185));_0x20d05e[_0x1e30cb(0x4b9)]=_0x1e30cb(0x4c3),_0x20d05e[_0x1e30cb(0x2da)]=_0x1e30cb(0x363),_0x20d05e['addEventListener']('change',()=>{const _0x25d479=_0x1e30cb;var _0x477246;let _0x81dcd6=(_0x477246=_0x20d05e[_0x25d479(0x338)])==null?void 0x0:_0x477246[0x0];_0x81dcd6?_0x234fdc[_0x25d479(0x484)](_0x81dcd6)['then'](_0x182bf3=>{const _0x4002d4=_0x25d479;!_0x182bf3[_0x4002d4(0x252)]||_0x182bf3[_0x4002d4(0x33f)]===void 0x0?_0xe2c47c(null):_0xe2c47c({'name':_0x182bf3['name'],'source':_0x182bf3[_0x4002d4(0x252)],'sourceType':_0x182bf3[_0x4002d4(0x33f)]});})[_0x25d479(0x2c9)](()=>_0xe2c47c(null)):_0xe2c47c(null);},{'once':!0x0}),_0x20d05e['click']();});}function Oi(_0x439e0d){return new Promise(_0x129c2d=>{const _0x20a7e9=_0x4abf;let _0x2eeb41=document[_0x20a7e9(0x314)](_0x20a7e9(0x185));_0x2eeb41[_0x20a7e9(0x4b9)]='file',_0x2eeb41[_0x20a7e9(0x2da)]=_0x20a7e9(0x363),_0x2eeb41[_0x20a7e9(0x371)](_0x20a7e9(0x29e),()=>{const _0x5d5dca=_0x20a7e9;var _0x551252;let _0x2a3336=(_0x551252=_0x2eeb41[_0x5d5dca(0x338)])==null?void 0x0:_0x551252[0x0];_0x2a3336?_0x439e0d[_0x5d5dca(0x237)](_0x2a3336)[_0x5d5dca(0x3ab)](_0x537842=>{const _0x49a856=_0x5d5dca;if(!(_0x537842!=null&&_0x537842[_0x49a856(0x252)]))_0x129c2d(null);else{if(_0x537842[_0x49a856(0x364)]){let _0x1cdea7=new Image();_0x1cdea7['src']=_0x537842[_0x49a856(0x364)],_0x439e0d[_0x49a856(0x436)](_0x537842[_0x49a856(0x252)],_0x537842[_0x49a856(0x29f)],_0x1cdea7);}_0x129c2d({'source':_0x537842[_0x49a856(0x252)],'sourceType':_0x537842[_0x49a856(0x29f)]});}})[_0x5d5dca(0x2c9)](()=>_0x129c2d(null)):_0x129c2d(null);},{'once':!0x0}),_0x2eeb41[_0x20a7e9(0x366)]();});}function ki(_0x405b91){const _0x1d0cf9=_0x219009;switch(_0x405b91){case _0xf5049a[_0x1d0cf9(0x1a1)]:return _0x1d0cf9(0x35b);case _0xf5049a[_0x1d0cf9(0x44b)]:return _0x1d0cf9(0x1fb);case _0xf5049a[_0x1d0cf9(0x42d)]:return _0x1d0cf9(0x299);case _0xf5049a[_0x1d0cf9(0x20c)]:return'bases-dashboard-ui.dashboard.image';case _0xf5049a[_0x1d0cf9(0x219)]:return _0x1d0cf9(0x35d);}}function Ai(_0x54c296){const _0x505c37=_0x219009;return(_0x54c296==null?void 0x0:_0x54c296['type'])===_0x4ec201[_0x505c37(0x223)]&&typeof _0x54c296[_0x505c37(0x2dc)]==_0x505c37(0x43c)&&_0x54c296[_0x505c37(0x2dc)]!==null&&_0x505c37(0x3b3)in _0x54c296[_0x505c37(0x2dc)]&&_0x505c37(0x2fc)in _0x54c296[_0x505c37(0x2dc)];}function _0x4abf(_0x3d1602,_0x1d8e86){_0x3d1602=_0x3d1602-0x16d;const _0x494cc5=_0x494c();let _0x4abf28=_0x494cc5[_0x3d1602];return _0x4abf28;}function ji({pivot:_0x34e005,view:_0xb507a9}){const _0x3a4778=_0x219009;let _0x574d60=_0xb3eab7(_0x51de0a),_0x528ce5=_0x2a7f67(()=>Mi(_0xb507a9,_0x34e005,_0x574d60['t'](_0x3a4778(0x4cc))),[_0x574d60,_0x34e005,_0xb507a9]);return _0x52e710(_0x3a4778(0x173),{'className':_0x3a4778(0x344),'children':[_0x528ce5[_0x3a4778(0x1ce)][_0x3a4778(0x348)]>0x0&&_0x1af9b(_0x3a4778(0x328),{'className':_0x3a4778(0x1fc),'children':_0x1af9b('tbody',{'children':Ni(_0x528ce5[_0x3a4778(0x1ce)])})}),_0x52e710(_0x3a4778(0x328),{'className':_0x3a4778(0x4c6),'children':[_0x528ce5[_0x3a4778(0x329)]>0x0&&_0x1af9b(_0x3a4778(0x263),{'className':'univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','children':Ni(_0x528ce5[_0x3a4778(0x3ea)]['slice'](0x0,_0x528ce5[_0x3a4778(0x329)]))}),_0x1af9b(_0x3a4778(0x269),{'children':Ni(_0x528ce5['rows'][_0x3a4778(0x45d)](_0x528ce5[_0x3a4778(0x329)]))})]})]});}function Mi(_0x3aee03,_0x31bc3a,_0x5119b6){const _0x22f6f1=_0x219009;let _0x504eef=_0x3aee03[_0x22f6f1(0x36b)]['rowCount'],_0xe519b2=_0x3aee03[_0x22f6f1(0x30b)][_0x22f6f1(0x4c2)],_0x5299ca=_0x3aee03[_0x22f6f1(0x279)][_0x22f6f1(0x239)],_0xd20434=_0x3aee03[_0x22f6f1(0x279)]['colCount'],_0x22e5ad=Array['from']({'length':_0x504eef+_0x5299ca},(_0x10ea27,_0xc8e9d8)=>Array['from']({'length':_0xe519b2+_0xd20434},(_0x2df376,_0x536c14)=>{const _0x4d013b=_0x22f6f1;var _0x4bda1e,_0x250ea4;if(_0xc8e9d8<_0x504eef&&_0x536c14<_0xe519b2)return Pi(_0x3aee03[_0x4d013b(0x2d3)],_0xc8e9d8,_0x536c14,void 0x0,_0x5119b6,!0x0,!0x1,_0x4d013b(0x2bf)+_0xc8e9d8+':'+_0x536c14);if(_0xc8e9d8<_0x504eef){var _0x3e06fd;let _0x3b5e81=_0x536c14-_0xe519b2,_0x535cc9=(_0x3e06fd=_0x3aee03[_0x4d013b(0x36b)][_0x4d013b(0x29c)][_0xc8e9d8])==null?void 0x0:_0x3e06fd[_0x4d013b(0x32e)];return Pi(_0x3aee03[_0x4d013b(0x36b)],_0xc8e9d8,_0x3b5e81,_0x535cc9?_0x3aee03[_0x4d013b(0x3ce)][_0x535cc9]:void 0x0,_0x5119b6,!0x0,Li(_0x3aee03[_0x4d013b(0x36b)][_0x4d013b(0x4c4)][_0x3b5e81]),'column:'+_0xc8e9d8+':'+_0x3b5e81);}if(_0x536c14<_0xe519b2){var _0x2abf10;let _0x519ab1=_0xc8e9d8-_0x504eef,_0x4a36f9=(_0x2abf10=_0x3aee03[_0x4d013b(0x30b)][_0x4d013b(0x29c)][_0x536c14])==null?void 0x0:_0x2abf10[_0x4d013b(0x32e)];return Pi(_0x3aee03[_0x4d013b(0x30b)],_0x519ab1,_0x536c14,_0x4a36f9?_0x3aee03['formatMap'][_0x4a36f9]:void 0x0,_0x5119b6,!0x0,Li(_0x3aee03[_0x4d013b(0x30b)]['info'][_0x519ab1]),_0x4d013b(0x4a0)+_0x519ab1+':'+_0x536c14);}let _0x351afc=_0xc8e9d8-_0x504eef,_0x2429e5=_0x536c14-_0xe519b2,_0x2b724e=Math[_0x4d013b(0x2eb)](((_0x4bda1e=_0x3aee03[_0x4d013b(0x30b)][_0x4d013b(0x4c4)][_0x351afc])==null?void 0x0:_0x4bda1e[_0x4d013b(0x2b2)])??-0x1,((_0x250ea4=_0x3aee03['colView'][_0x4d013b(0x4c4)][_0x2429e5])==null?void 0x0:_0x250ea4[_0x4d013b(0x2b2)])??-0x1),_0x3fb6eb=_0x31bc3a['valueFields'][_0x2b724e<0x0?0x0:_0x2b724e];return Pi(_0x3aee03['dataView'],_0x351afc,_0x2429e5,_0x3fb6eb?_0x3aee03[_0x4d013b(0x3ce)][_0x3fb6eb]:void 0x0,_0x5119b6,!0x1,Li(_0x3aee03[_0x4d013b(0x30b)][_0x4d013b(0x4c4)][_0x351afc])||Li(_0x3aee03[_0x4d013b(0x36b)][_0x4d013b(0x4c4)][_0x2429e5]),_0x4d013b(0x27b)+_0x351afc+':'+_0x2429e5);}));return{'headerColumnCount':_0xe519b2,'headerRowCount':_0x504eef,'pageRows':_0x3aee03['pageView'][_0x22f6f1(0x456)]<0x0||_0x3aee03['pageView'][_0x22f6f1(0x1c4)]<0x0?[]:Array[_0x22f6f1(0x181)]({'length':_0x3aee03[_0x22f6f1(0x231)][_0x22f6f1(0x456)]+0x1},(_0x2c7cac,_0x31d732)=>Array[_0x22f6f1(0x181)]({'length':_0x3aee03[_0x22f6f1(0x231)][_0x22f6f1(0x1c4)]+0x1},(_0x1dd38e,_0x4b86c7)=>Pi(_0x3aee03['pageView'],_0x31d732,_0x4b86c7,void 0x0,_0x5119b6,!0x0,!0x1,'page:'+_0x31d732+':'+_0x4b86c7))),'rows':_0x22e5ad};}function Ni(_0x2cd332){const _0x58550d=_0x219009;return _0x2cd332[_0x58550d(0x43f)](_0x476e4f=>{const _0x31c6c6=_0x58550d;var _0xbd215b;return _0x1af9b('tr',{'children':_0x476e4f[_0x31c6c6(0x43f)](_0x4cc34e=>{const _0x33b42b=_0x31c6c6;let _0x3ee9d6=_0x4cc34e[_0x33b42b(0x3b6)]?'th':'td';return _0x1af9b(_0x3ee9d6,{'className':_0x33b42b(0x323)+(_0x4cc34e['isTotal']?'\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':'')+_0x33b42b(0x270)+(_0x4cc34e[_0x33b42b(0x3b6)]?'':_0x33b42b(0x3f6))+_0x33b42b(0x1d9),'children':_0x4cc34e[_0x33b42b(0x286)]},_0x4cc34e['key']);})},(_0xbd215b=_0x476e4f[0x0])==null?void 0x0:_0xbd215b[_0x31c6c6(0x2c1)]);});}function Pi(_0x220c64,_0xc1e2e5,_0x597786,_0x3703c0,_0x425cc9,_0x139b80,_0x76a3ea,_0x1431ec){const _0x125dc2=_0x219009;var _0x534015;let _0x2a0bb3=(_0x534015=_0x220c64[_0x125dc2(0x39a)][_0xc1e2e5])==null?void 0x0:_0x534015[_0x597786],_0x9deb35=_0x2a0bb3==null?void 0x0:_0x2a0bb3['s'],_0x2a42bb=_0x76a3ea||_0x9deb35===_0x3fce02[_0x125dc2(0x2cb)]||_0x9deb35===_0x3fce02[_0x125dc2(0x191)];return{'isHeader':_0x139b80,'isTotal':_0x2a42bb||_0x9deb35===_0x3fce02['Subtotal'],'key':_0x1431ec,'style':_0x9deb35,'value':_0x2a42bb&&Ii(_0x2a0bb3==null?void 0x0:_0x2a0bb3['v'])?_0x425cc9:Fi(_0x2a0bb3,_0x3703c0)};}function Fi(_0x1845f1,_0x3583e5){const _0x30a58d=_0x219009;let _0x1d70f4=_0x1845f1==null?void 0x0:_0x1845f1['v'];return _0x1d612e(_0x1d70f4)?String(_0x1d70f4[_0x30a58d(0x286)]??_0x1d70f4[_0x30a58d(0x170)]??''):_0x48662d(_0x1d70f4)?'#'+_0x1d70f4['errorType']:_0x3583e5&&typeof _0x1d70f4==_0x30a58d(0x24f)?_0x415bf1['format'](_0x3583e5,_0x1d70f4):String(_0x1d70f4??'');}function Ii(_0x38a426){return _0x38a426===void 0x0||_0x38a426==='';}function Li(_0x5c8385){const _0x617513=_0x219009;return!!(_0x5c8385!=null&&_0x5c8385[_0x617513(0x1bb)]||_0x5c8385!=null&&_0x5c8385[_0x617513(0x358)]||_0x5c8385!=null&&_0x5c8385[_0x617513(0x28c)]||(_0x5c8385==null?void 0x0:_0x5c8385[_0x617513(0x3a6)])===_0x617513(0x23e));}const Ri=[{'area':_0x2e2ea1[_0x219009(0x4cd)],'key':_0x219009(0x317),'label':_0x219009(0x297)},{'area':_0x2e2ea1[_0x219009(0x3d4)],'key':_0x219009(0x23d),'label':'bases-dashboard-ui.pivot.columns'},{'area':_0x2e2ea1[_0x219009(0x2ce)],'key':_0x219009(0x373),'label':_0x219009(0x3c2)},{'area':_0x2e2ea1[_0x219009(0x478)],'key':_0x219009(0x37b),'label':'bases-dashboard-ui.pivot.values'}],zi=[{'value':_0x37b485['sum'],'localeKey':'bases-dashboard-ui.pivot.sum'},{'value':_0x37b485[_0x219009(0x241)],'localeKey':_0x219009(0x351)},{'value':_0x37b485[_0x219009(0x220)],'localeKey':_0x219009(0x303)},{'value':_0x37b485['average'],'localeKey':_0x219009(0x306)},{'value':_0x37b485[_0x219009(0x2eb)],'localeKey':_0x219009(0x2d5)},{'value':_0x37b485[_0x219009(0x466)],'localeKey':_0x219009(0x1e7)},{'value':_0x37b485[_0x219009(0x46e)],'localeKey':_0x219009(0x1fe)},{'value':_0x37b485[_0x219009(0x1e6)],'localeKey':_0x219009(0x34e)},{'value':_0x37b485[_0x219009(0x399)],'localeKey':_0x219009(0x340)},{'value':_0x37b485['var'],'localeKey':'bases-dashboard-ui.pivot.variance'},{'value':_0x37b485['varp'],'localeKey':'bases-dashboard-ui.pivot.variancePopulation'}];function Bi(_0x3923a2){const _0x4cf34c=_0x219009;let {config:_0x3d081b,onChange:_0x309de9,table:_0x2def0f}=_0x3923a2,_0xe6e5d7=_0xb3eab7(_0x51de0a),[_0x433b09,_0x53fb52]=_0x277721(_0x4cf34c(0x1c9)),[_0x3a2c0d,_0x6620f9]=_0x277721(''),[_0x3f6904,_0x13a06b]=_0x277721(null),[_0x1f9785,_0x2cdabd]=_0x277721(null),[_0x3ade64,_0x51c6b0]=_0x277721(null),[_0x1e5ea9,_0x37c5cd]=_0x277721(null),_0x401020=_0x52068e(null),_0x279fb9=_0x2a7f67(()=>_0x2def0f['fieldOrder'][_0x4cf34c(0x1ae)](_0x51e0af=>{const _0x13b258=_0x4cf34c;let _0x491159=_0x2def0f['fields'][_0x51e0af];return _0x491159&&_0x491159[_0x13b258(0x235)]!==!0x0&&_0x491159[_0x13b258(0x4b9)]!==_0x3f2f3b[_0x13b258(0x47f)]?[_0x491159]:[];})[_0x4cf34c(0x498)](_0xdd5e92=>_0xdd5e92[_0x4cf34c(0x3aa)]['toLocaleLowerCase']()[_0x4cf34c(0x481)](_0x3a2c0d['trim']()[_0x4cf34c(0x16f)]())),[_0x3a2c0d,_0x2def0f]),_0x52a2ae=_0x16a4c2=>{const _0x336d0f=_0x4cf34c;let _0x41f17a=_0x26536e(_0x2def0f,_0x3d081b[_0x336d0f(0x3b3)]);try{_0x16a4c2(_0x41f17a),_0x309de9({'pivot':_0x41f17a[_0x336d0f(0x4a6)]()});}finally{_0x41f17a[_0x336d0f(0x333)]();}},_0x246a71=(_0x59b68a,_0xde39a8)=>{_0x3f6904&&(_0x52a2ae(_0x7c62e7=>{const _0x167377=_0x4abf;if(_0x3f6904['kind']===_0x167377(0x260)){let _0x1fde01=_0x7c62e7[_0x167377(0x243)](_0x3f6904['id']),_0x1be5e6=_0x1fde01[_0x167377(0x3f4)]===_0x59b68a&&_0x1fde01['index']<_0xde39a8?_0xde39a8-0x1:_0xde39a8;_0x7c62e7[_0x167377(0x44c)](_0x3f6904['id'],_0x59b68a,_0x1be5e6);}else Ji(_0x7c62e7,_0x3f6904['id'],_0x59b68a,_0xde39a8);}),_0x13a06b(null),_0x2cdabd(null));};return _0x52e710(_0x4cf34c(0x173),{'className':_0x4cf34c(0x30d),'children':[_0x1af9b(_0x531ef4,{'ariaLabel':_0xe6e5d7['t'](_0x4cf34c(0x3ad)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0xe6e5d7['t'](_0x4cf34c(0x284)),'panelId':_0x4cf34c(0x3ed),'value':'fields'},{'label':_0xe6e5d7['t'](_0x4cf34c(0x4cb)),'panelId':_0x4cf34c(0x3cc),'value':_0x4cf34c(0x3d0)}],'value':_0x433b09,'onChange':_0x53fb52}),_0x1af9b('div',{'ref':_0x401020,'className':_0x43bd71(_0x4cf34c(0x24e),_0x178403),'onDragOver':_0x57530f=>{const _0xaccfa0=_0x4cf34c;let _0x5a4bfe=_0x401020[_0xaccfa0(0x2bd)];if(!_0x5a4bfe)return;let _0x3fba04=_0x5a4bfe[_0xaccfa0(0x30f)]();_0x57530f['clientY']<_0x3fba04[_0xaccfa0(0x31d)]+0x30?_0x5a4bfe[_0xaccfa0(0x41b)]-=0x10:_0x57530f[_0xaccfa0(0x1a8)]>_0x3fba04['bottom']-0x30&&(_0x5a4bfe['scrollTop']+=0x10);},'children':_0x433b09===_0x4cf34c(0x3d0)?_0x1af9b(qi,{'config':_0x3d081b,'commit':_0x52a2ae}):_0x52e710(_0x4cf34c(0x173),{'className':_0x4cf34c(0x228),'children':[_0x52e710(_0x4cf34c(0x173),{'children':[_0x1af9b('div',{'className':_0x4cf34c(0x1fd),'children':_0xe6e5d7['t'](_0x4cf34c(0x3c8))}),_0x1af9b(_0x4f1ee0,{'allowClear':!0x0,'slot':_0x1af9b(_0x3f6321,{}),'value':_0x3a2c0d,'placeholder':_0xe6e5d7['t'](_0x4cf34c(0x200)),'onChange':_0x6620f9}),_0x1af9b(_0x4cf34c(0x173),{'className':_0x4cf34c(0x3c4),'children':_0x279fb9[_0x4cf34c(0x43f)](_0x34d812=>_0x1af9b(Vi,{'config':_0x3d081b,'field':_0x34d812,'onAdd':_0x4201e6=>_0x52a2ae(_0x15eb1e=>Ji(_0x15eb1e,_0x34d812['id'],_0x4201e6,_0x15eb1e[_0x4cf34c(0x188)](_0x4201e6))),'onCheckedChange':_0x13de4=>_0x52a2ae(_0x38b942=>{const _0x35a2db=_0x4cf34c;let _0x1aa550=_0x38b942[_0x35a2db(0x190)](_0x34d812['id']);if(!_0x13de4)_0x1aa550['forEach'](_0x1d9bdd=>_0x38b942[_0x35a2db(0x453)](_0x1d9bdd['getId']()));else{if(_0x1aa550['length']===0x0){let _0x5e8abc=Xi(_0x34d812)?_0x2e2ea1['Value']:_0x2e2ea1[_0x35a2db(0x2ce)];_0x38b942[_0x35a2db(0x2c3)](_0x34d812['id'],_0x5e8abc);}}}),'onDragStart':()=>_0x13a06b({'kind':_0x4cf34c(0x252),'id':_0x34d812['id']})},_0x34d812['id']))})]}),_0x1af9b(_0x4cf34c(0x173),{'className':_0x4cf34c(0x177),'children':Ri['map'](_0x3f8aa4=>_0x1af9b(Ui,{'area':_0x3f8aa4[_0x4cf34c(0x3f4)],'dropTarget':_0x1f9785,'fields':_0x3d081b[_0x4cf34c(0x3b3)][_0x3f8aa4[_0x4cf34c(0x2c1)]],'label':_0xe6e5d7['t'](_0x3f8aa4[_0x4cf34c(0x1d6)]),'snapshot':_0x3d081b[_0x4cf34c(0x3b3)],'onDragEnd':()=>{_0x13a06b(null),_0x2cdabd(null);},'onDragStart':_0x5d6e69=>_0x13a06b({'kind':'field','id':_0x5d6e69,'area':_0x3f8aa4[_0x4cf34c(0x3f4)]}),'onDragOver':_0x540c00=>_0x2cdabd({'area':_0x3f8aa4[_0x4cf34c(0x3f4)],'index':_0x540c00}),'onDrop':_0x1101f3=>_0x246a71(_0x3f8aa4[_0x4cf34c(0x3f4)],_0x1101f3),'onFilter':_0x51c6b0,'onMove':(_0x47810a,_0x40c4bc,_0x3beaf7)=>_0x52a2ae(_0x4867a=>_0x4867a[_0x4cf34c(0x44c)](_0x47810a,_0x40c4bc,_0x3beaf7)),'onRemove':_0x44df08=>_0x52a2ae(_0x4bd8eb=>_0x4bd8eb[_0x4cf34c(0x453)](_0x44df08)),'onSettings':_0x37c5cd},_0x3f8aa4[_0x4cf34c(0x3f4)]))}),_0x3ade64&&_0x1af9b(Gi,{'fieldId':_0x3ade64,'snapshot':_0x3d081b[_0x4cf34c(0x3b3)],'table':_0x2def0f,'onCancel':()=>_0x51c6b0(null),'onCommit':(_0x36e2d7,_0x4d52b6)=>{_0x52a2ae(_0x5213ea=>{const _0xd39ea0=_0x4abf;let _0x2e612e=_0x5213ea['getDataFieldByTableId'](_0x3ade64),_0x93f398=(_0x2e612e==null?void 0x0:_0x2e612e[_0xd39ea0(0x39c)])??[];_0x5213ea[_0xd39ea0(0x367)](_0x3ade64,{'type':_0x43d698[_0xd39ea0(0x423)],'list':_0x36e2d7,'isAll':_0x36e2d7[_0xd39ea0(0x348)]===_0x93f398[_0xd39ea0(0x348)]}),_0x5213ea[_0xd39ea0(0x471)](_0x3ade64,_0x4d52b6===void 0x0?void 0x0:{'type':_0x4d52b6});}),_0x51c6b0(null);}},_0x3ade64),_0x1e5ea9&&_0x1af9b(Ki,{'field':_0x3d081b['pivot']['measure'][_0x1e5ea9],'onCancel':()=>_0x37c5cd(null),'onCommit':(_0xb107ca,_0x29e314,_0x36849b)=>{_0x52a2ae(_0x4967eb=>{const _0x34de6b=_0x4abf;_0x4967eb[_0x34de6b(0x417)](_0x1e5ea9,_0xb107ca),_0x4967eb[_0x34de6b(0x4bd)](_0x1e5ea9,_0x29e314),_0x4967eb[_0x34de6b(0x213)](_0x1e5ea9,_0x36849b||void 0x0);}),_0x37c5cd(null);}},_0x1e5ea9)]})})]});}function Vi(_0x1c5183){const _0x29cb33=_0x219009;let {config:_0x184dcd,field:_0x596575,onAdd:_0x1257f9,onCheckedChange:_0x10ad64,onDragStart:_0x10fae5}=_0x1c5183,_0x2fa45c=_0xb3eab7(_0x51de0a),_0x50c09d=[...Object['values'](_0x184dcd[_0x29cb33(0x3b3)][_0x29cb33(0x34a)]),...Object[_0x29cb33(0x189)](_0x184dcd['pivot']['measure'])][_0x29cb33(0x499)](_0x3e1733=>_0x3e1733[_0x29cb33(0x18d)]===_0x596575['id']),_0x37560a=Ri[_0x29cb33(0x43f)](_0x3073a1=>({'type':'item','children':_0x2fa45c['t'](Zi(_0x3073a1[_0x29cb33(0x3f4)])),'onSelect':()=>_0x1257f9(_0x3073a1[_0x29cb33(0x3f4)])}));return _0x52e710(_0x29cb33(0x173),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x29cb33(0x262),'onDragStart':_0x10fae5,'children':[_0x1af9b(_0x5e364b,{'checked':_0x50c09d,'onChange':_0x1ceee7=>_0x10ad64(!!_0x1ceee7)}),_0x1af9b(Hi,{'field':_0x596575}),_0x1af9b('span',{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x596575['name']}),_0x1af9b(Xr,{'align':_0x29cb33(0x1d5),'items':_0x37560a,'children':_0x1af9b(_0x2e1096,{'variant':_0x29cb33(0x209),'aria-label':_0x2fa45c['t'](_0x29cb33(0x446)),'children':_0x1af9b(_0x27fd1a,{})})})]});}function Hi({field:_0x222c32}){const _0x598cd1=_0x219009;return Xi(_0x222c32)?_0x1af9b(_0x519617,{'className':_0x598cd1(0x259)}):_0x222c32[_0x598cd1(0x4b9)]===_0x3f2f3b[_0x598cd1(0x1ed)]||_0x222c32['type']===_0x3f2f3b['CreatedAt']||_0x222c32[_0x598cd1(0x4b9)]===_0x3f2f3b[_0x598cd1(0x212)]?_0x1af9b(_0x353aa7,{'className':_0x598cd1(0x259)}):_0x1af9b(_0x21875f,{'className':'univer-text-gray-400'});}function Ui(_0x420205){const _0x22494d=_0x219009;let {area:_0x31d761,dropTarget:_0x53b698,fields:_0x5a669b,label:_0x44b427,snapshot:_0xb2775a}=_0x420205,_0xf60ae5=_0xb3eab7(_0x51de0a);return _0x52e710(_0x22494d(0x198),{'className':_0x43bd71('univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800',_0x25ef46),'onDragOver':_0x4a9ae1=>{const _0x572a79=_0x22494d;_0x4a9ae1['preventDefault'](),_0x420205[_0x572a79(0x1e8)](_0x5a669b[_0x572a79(0x348)]);},'onDrop':_0xe50d58=>{const _0x3d4ade=_0x22494d;_0xe50d58['preventDefault'](),_0x420205['onDrop']((_0x53b698==null?void 0x0:_0x53b698['area'])===_0x31d761?_0x53b698[_0x3d4ade(0x3a4)]:_0x5a669b['length']);},'children':[_0x1af9b('div',{'className':'univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','children':_0x44b427}),_0x52e710(_0x22494d(0x173),{'className':_0x22494d(0x2d2),'children':[_0x5a669b[_0x22494d(0x43f)]((_0x2962e2,_0x32ab00)=>{const _0x425c71=_0x22494d;let _0x5789b8=_0xb2775a[_0x425c71(0x34a)][_0x2962e2]??_0xb2775a[_0x425c71(0x3d5)][_0x2962e2];if(!_0x5789b8)return null;let _0x1b7add=(_0x53b698==null?void 0x0:_0x53b698[_0x425c71(0x3f4)])===_0x31d761&&_0x53b698['index']===_0x32ab00;return _0x52e710('div',{'onDragOver':_0x2a6bb1=>{const _0x3c0a1f=_0x425c71;_0x2a6bb1['preventDefault'](),_0x2a6bb1[_0x3c0a1f(0x2ac)]();let _0x5e498c=_0x2a6bb1[_0x3c0a1f(0x174)][_0x3c0a1f(0x30f)]();_0x420205[_0x3c0a1f(0x1e8)](_0x32ab00+ +(_0x2a6bb1[_0x3c0a1f(0x1a8)]>_0x5e498c[_0x3c0a1f(0x31d)]+_0x5e498c[_0x3c0a1f(0x34f)]/0x2));},'onDrop':_0x458942=>{const _0x1b7071=_0x425c71;_0x458942[_0x1b7071(0x33b)](),_0x458942[_0x1b7071(0x2ac)](),_0x420205[_0x1b7071(0x26d)]((_0x53b698==null?void 0x0:_0x53b698[_0x1b7071(0x3f4)])===_0x31d761?_0x53b698[_0x1b7071(0x3a4)]:_0x32ab00);},'children':[_0x1b7add&&_0x1af9b(_0x425c71(0x173),{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),_0x1af9b(Wi,{'area':_0x31d761,'field':_0x5789b8,'onDragEnd':_0x420205[_0x425c71(0x419)],'onDragStart':()=>_0x420205[_0x425c71(0x205)](_0x2962e2),'onFilter':()=>_0x420205[_0x425c71(0x2d0)](_0x2962e2),'onMove':_0x3e1a5d=>_0x420205[_0x425c71(0x336)](_0x2962e2,_0x3e1a5d,0x0),'onMoveUp':_0x32ab00>0x0?()=>_0x420205[_0x425c71(0x336)](_0x2962e2,_0x31d761,_0x32ab00-0x1):void 0x0,'onMoveDown':_0x32ab00<_0x5a669b[_0x425c71(0x348)]-0x1?()=>_0x420205[_0x425c71(0x336)](_0x2962e2,_0x31d761,_0x32ab00+0x1):void 0x0,'onRemove':()=>_0x420205[_0x425c71(0x2d1)](_0x2962e2),'onSettings':()=>_0x420205['onSettings'](_0x2962e2)})]},_0x2962e2);}),(_0x53b698==null?void 0x0:_0x53b698[_0x22494d(0x3f4)])===_0x31d761&&_0x53b698[_0x22494d(0x3a4)]===_0x5a669b['length']&&_0x1af9b('div',{'className':_0x22494d(0x290)}),_0x5a669b['length']===0x0&&_0x1af9b('div',{'className':_0x22494d(0x21f),'children':_0xf60ae5['t']('bases-dashboard-ui.pivot.sourceFields')})]})]});}function Wi(_0x1d7651){const _0x5f1c25=_0x219009;let _0x17e443=_0xb3eab7(_0x51de0a),_0x42f29a=_0x1d7651[_0x5f1c25(0x3f4)]===_0x2e2ea1['Value'],_0x3dc6e4=[...Ri['filter'](_0x5a3fc6=>_0x5a3fc6[_0x5f1c25(0x3f4)]!==_0x1d7651[_0x5f1c25(0x3f4)])[_0x5f1c25(0x43f)](_0x17edd0=>({'type':_0x5f1c25(0x1f9),'children':_0x17e443['t'](Zi(_0x17edd0[_0x5f1c25(0x3f4)])),'onSelect':()=>_0x1d7651[_0x5f1c25(0x336)](_0x17edd0[_0x5f1c25(0x3f4)])})),..._0x1d7651[_0x5f1c25(0x1ac)]?[{'type':'item','children':_0x17e443['t']('bases-dashboard-ui.mobile.moveUp'),'onSelect':_0x1d7651[_0x5f1c25(0x1ac)]}]:[],..._0x1d7651[_0x5f1c25(0x245)]?[{'type':'item','children':_0x17e443['t'](_0x5f1c25(0x248)),'onSelect':_0x1d7651[_0x5f1c25(0x245)]}]:[],{'type':_0x5f1c25(0x1f9),'children':_0x17e443['t'](_0x5f1c25(0x1c8)),'onSelect':_0x1d7651[_0x5f1c25(0x2d1)]},{'type':_0x5f1c25(0x1f9),'children':_0x17e443['t'](_0x42f29a?_0x5f1c25(0x446):_0x5f1c25(0x315)),'onSelect':_0x42f29a?_0x1d7651['onSettings']:_0x1d7651[_0x5f1c25(0x2d0)]}];return _0x52e710(_0x5f1c25(0x173),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x5f1c25(0x493),'onDragEnd':_0x1d7651[_0x5f1c25(0x419)],'onDragStart':_0x1d7651[_0x5f1c25(0x205)],'children':[_0x1af9b(_0xe14895,{'title':_0x1d7651['field'][_0x5f1c25(0x2af)],'children':_0x1af9b(_0x5f1c25(0x46c),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x1d7651[_0x5f1c25(0x260)]['displayName']})}),_0x1af9b(Xr,{'align':_0x5f1c25(0x1d5),'items':_0x3dc6e4,'children':_0x1af9b(_0x2e1096,{'variant':'text','aria-label':_0x17e443['t'](_0x5f1c25(0x446)),'children':_0x1af9b(_0x27fd1a,{})})})]});}function Gi(_0x47419e){const _0x7489d7=_0x219009;var _0x376dfa,_0x46d051;let _0x5e81e0=_0xb3eab7(_0x51de0a),{format:_0x2822ce,items:_0x57aed0,itemTypes:_0x43922d}=_0x2a7f67(()=>{const _0x2b3b68=_0x4abf;let _0x352d9f=_0x26536e(_0x47419e['table'],_0x47419e[_0x2b3b68(0x36f)]);try{let _0x5f5394=_0x352d9f['getDataFieldByTableId'](_0x47419e['fieldId']);return{'format':_0x5f5394==null?void 0x0:_0x5f5394[_0x2b3b68(0x467)],'items':[...(_0x5f5394==null?void 0x0:_0x5f5394[_0x2b3b68(0x39c)])??[]],'itemTypes':[...(_0x5f5394==null?void 0x0:_0x5f5394[_0x2b3b68(0x258)])??[]]};}finally{_0x352d9f[_0x2b3b68(0x333)]();}},[_0x47419e[_0x7489d7(0x1cb)],_0x47419e[_0x7489d7(0x36f)],_0x47419e[_0x7489d7(0x328)]]),_0x5752e7=(_0x376dfa=_0x47419e[_0x7489d7(0x36f)][_0x7489d7(0x34a)][_0x47419e[_0x7489d7(0x1cb)]])==null?void 0x0:_0x376dfa['filterInfo'],[_0x2dc368,_0x143bb5]=_0x277721((_0x5752e7==null?void 0x0:_0x5752e7[_0x7489d7(0x4b9)])===_0x43d698[_0x7489d7(0x423)]?_0x5752e7[_0x7489d7(0x427)]:_0x57aed0),[_0x59106c,_0x492960]=_0x277721((_0x46d051=_0x47419e[_0x7489d7(0x36f)][_0x7489d7(0x34a)][_0x47419e['fieldId']])==null||(_0x46d051=_0x46d051[_0x7489d7(0x3fa)])==null?void 0x0:_0x46d051[_0x7489d7(0x4b9)]),_0xe36fa2=_0x2dc368[_0x7489d7(0x348)]===_0x57aed0[_0x7489d7(0x348)],_0x155294=_0x52e710(_0x7489d7(0x198),{'className':_0x43bd71(_0x7489d7(0x18e),_0x25ef46),'children':[_0x1af9b(_0x7489d7(0x173),{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0x5e81e0['t']('bases-dashboard-ui.pivot.filterField')}),_0x52e710(_0x7489d7(0x173),{'className':_0x7489d7(0x362),'children':[_0x52e710(_0x2e1096,{'className':'univer-flex-1','variant':_0x59106c===_0x42703e[_0x7489d7(0x35a)]?_0x7489d7(0x2f7):_0x7489d7(0x1ca),'onClick':()=>_0x492960(_0x42703e['ascending']),'children':[_0x1af9b(_0x52230b,{}),_0x5e81e0['t']('bases-dashboard-ui.pivot.ascending')]}),_0x52e710(_0x2e1096,{'className':'univer-flex-1','variant':_0x59106c===_0x42703e[_0x7489d7(0x4bf)]?_0x7489d7(0x2f7):_0x7489d7(0x1ca),'onClick':()=>_0x492960(_0x42703e[_0x7489d7(0x4bf)]),'children':[_0x1af9b(_0x404137,{}),_0x5e81e0['t'](_0x7489d7(0x38d))]})]}),_0x52e710(_0x7489d7(0x173),{'className':_0x7489d7(0x355),'children':[_0x52e710(_0x7489d7(0x1d6),{'className':_0x7489d7(0x195),'children':[_0x1af9b(_0x5e364b,{'checked':_0xe36fa2,'indeterminate':_0x2dc368[_0x7489d7(0x348)]>0x0&&!_0xe36fa2,'onChange':()=>_0x143bb5(_0xe36fa2?[]:_0x57aed0)}),_0x5e81e0['t'](_0x7489d7(0x2de))]}),_0x57aed0[_0x7489d7(0x43f)]((_0x1bcdcd,_0x2bb894)=>_0x52e710(_0x7489d7(0x1d6),{'className':_0x7489d7(0x195),'children':[_0x1af9b(_0x5e364b,{'checked':_0x2dc368[_0x7489d7(0x481)](_0x1bcdcd),'onChange':()=>_0x143bb5(_0x391bf6=>_0x391bf6[_0x7489d7(0x481)](_0x1bcdcd)?_0x391bf6[_0x7489d7(0x498)](_0x8d5056=>_0x8d5056!==_0x1bcdcd):[..._0x391bf6,_0x1bcdcd])}),_0x1af9b(_0x7489d7(0x46c),{'className':_0x7489d7(0x409),'children':Yi(_0x1bcdcd,_0x43922d[_0x2bb894],_0x2822ce,_0x5e81e0['t'](_0x7489d7(0x385)))})]},_0x1bcdcd))]}),_0x52e710(_0x7489d7(0x173),{'className':_0x7489d7(0x199),'children':[_0x1af9b(_0x2e1096,{'variant':_0x7489d7(0x412),'onClick':()=>_0x47419e[_0x7489d7(0x27f)](_0x57aed0,_0x59106c),'children':_0x5e81e0['t']('bases-dashboard-ui.pivot.clearFilter')}),_0x52e710('div',{'className':_0x7489d7(0x2b7),'children':[_0x1af9b(_0x2e1096,{'onClick':_0x47419e[_0x7489d7(0x21b)],'children':_0x5e81e0['t'](_0x7489d7(0x1a6))}),_0x1af9b(_0x2e1096,{'variant':_0x7489d7(0x2f7),'disabled':_0x2dc368['length']===0x0,'onClick':()=>_0x47419e['onCommit'](_0x2dc368,_0x59106c),'children':_0x5e81e0['t']('bases-dashboard-ui.pivot.confirm')})]})]})]});return _0x1af9b(_0x5cf81f,{'title':_0x5e81e0['t'](_0x7489d7(0x315)),'onClose':_0x47419e[_0x7489d7(0x21b)],'children':_0x155294});}function Ki(_0x161c69){const _0x2459e0=_0x219009;var _0x2967d6,_0x55a36d,_0x237f60;let _0x5d2fc0=_0xb3eab7(_0x51de0a),[_0x2cc04e,_0x19f87b]=_0x277721(((_0x2967d6=_0x161c69['field'])==null?void 0x0:_0x2967d6[_0x2459e0(0x2af)])??''),[_0x5a9c22,_0x485b3a]=_0x277721(((_0x55a36d=_0x161c69[_0x2459e0(0x260)])==null?void 0x0:_0x55a36d[_0x2459e0(0x3d7)])??_0x37b485[_0x2459e0(0x3b7)]),[_0x37ed7d,_0x1f0748]=_0x277721(((_0x237f60=_0x161c69[_0x2459e0(0x260)])==null?void 0x0:_0x237f60[_0x2459e0(0x467)])??'');if(!_0x161c69[_0x2459e0(0x260)])return null;let _0x5188c4=_0x52e710(_0x2459e0(0x198),{'className':_0x43bd71(_0x2459e0(0x1ec),_0x25ef46),'children':[_0x1af9b('div',{'className':_0x2459e0(0x324),'children':_0x5d2fc0['t']('bases-dashboard-ui.pivot.fieldSettings')}),_0x52e710(_0x2459e0(0x1d6),{'className':_0x2459e0(0x261),'children':[_0x5d2fc0['t'](_0x2459e0(0x30e)),_0x1af9b(_0x4f1ee0,{'value':_0x2cc04e,'onChange':_0x19f87b})]}),_0x52e710(_0x2459e0(0x1d6),{'className':_0x2459e0(0x261),'children':[_0x5d2fc0['t']('bases-dashboard-ui.pivot.summarizeBy'),_0x1af9b(Yr,{'value':String(_0x5a9c22),'options':zi['map'](_0x132563=>({'value':String(_0x132563[_0x2459e0(0x286)]),'label':_0x5d2fc0['t'](_0x132563[_0x2459e0(0x37c)])})),'onChange':_0x17c9a2=>{const _0x2c664f=_0x2459e0;let _0x1084ab=zi[_0x2c664f(0x3ae)](_0x29e4e8=>String(_0x29e4e8[_0x2c664f(0x286)])===_0x17c9a2);_0x1084ab&&_0x485b3a(_0x1084ab[_0x2c664f(0x286)]);}})]}),_0x52e710('label',{'className':_0x2459e0(0x261),'children':[_0x5d2fc0['t'](_0x2459e0(0x4be)),_0x1af9b(_0x4f1ee0,{'value':_0x37ed7d,'onChange':_0x1f0748})]}),_0x52e710(_0x2459e0(0x173),{'className':_0x2459e0(0x3fd),'children':[_0x1af9b(_0x2e1096,{'onClick':_0x161c69['onCancel'],'children':_0x5d2fc0['t']('bases-dashboard-ui.pivot.cancel')}),_0x1af9b(_0x2e1096,{'variant':_0x2459e0(0x2f7),'disabled':!_0x2cc04e[_0x2459e0(0x2ee)](),'onClick':()=>_0x161c69[_0x2459e0(0x27f)](_0x2cc04e[_0x2459e0(0x2ee)](),_0x5a9c22,_0x37ed7d),'children':_0x5d2fc0['t'](_0x2459e0(0x457))})]})]});return _0x1af9b(_0x5cf81f,{'title':_0x5d2fc0['t'](_0x2459e0(0x446)),'onClose':_0x161c69[_0x2459e0(0x21b)],'children':_0x5188c4});}function qi(_0x52b9ae){const _0x178dd8=_0x219009;let {config:_0x1e33da,commit:_0x31e962}=_0x52b9ae,_0x47417f=_0xb3eab7(_0x51de0a),_0x38904d=_0x1e33da[_0x178dd8(0x3b3)][_0x178dd8(0x3d0)],_0x288527=_0x9eaa0=>_0x31e962(_0x283060=>_0x283060[_0x178dd8(0x447)]({..._0x283060[_0x178dd8(0x1d2)](),..._0x9eaa0}));return _0x52e710('div',{'className':_0x178dd8(0x228),'children':[_0x52e710(_0x178dd8(0x1d6),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x47417f['t']('bases-dashboard-ui.pivot.layout'),_0x1af9b(Yr,{'className':_0x178dd8(0x229),'value':String(_0x1e33da[_0x178dd8(0x3b3)]['layout']),'options':[{'value':String(_0x27edfb[_0x178dd8(0x2be)]),'label':_0x47417f['t'](_0x178dd8(0x2ec))},{'value':String(_0x27edfb[_0x178dd8(0x449)]),'label':_0x47417f['t']('bases-dashboard-ui.pivot.layoutCompact')},{'value':String(_0x27edfb[_0x178dd8(0x202)]),'label':_0x47417f['t'](_0x178dd8(0x291))}],'onChange':_0x4c186a=>{const _0x30d2a7=_0x178dd8;let _0x586cf8=[_0x27edfb[_0x30d2a7(0x2be)],_0x27edfb[_0x30d2a7(0x449)],_0x27edfb[_0x30d2a7(0x202)]][_0x30d2a7(0x3ae)](_0x4fdd2c=>String(_0x4fdd2c)===_0x4c186a);_0x586cf8!==void 0x0&&_0x31e962(_0x56ea45=>_0x56ea45[_0x30d2a7(0x4b7)](_0x586cf8));}})]}),[{'key':_0x178dd8(0x42a),'label':_0x178dd8(0x3b8),'defaultValue':!0x1},{'key':_0x178dd8(0x1b1),'label':_0x178dd8(0x472),'defaultValue':!0x1},{'key':_0x178dd8(0x3be),'label':'bases-dashboard-ui.pivot.showRowSubtotal','defaultValue':!0x0},{'key':_0x178dd8(0x203),'label':_0x178dd8(0x1b0),'defaultValue':!0x0},{'key':'showColSubtotal','label':_0x178dd8(0x3a8),'defaultValue':!0x0},{'key':_0x178dd8(0x41f),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}]['map'](_0x3259b2=>_0x52e710(_0x178dd8(0x1d6),{'className':_0x178dd8(0x387),'children':[_0x1af9b(_0x5e364b,{'checked':!!(_0x38904d[_0x3259b2[_0x178dd8(0x2c1)]]??_0x3259b2[_0x178dd8(0x356)]),'disabled':_0x3259b2['key']===_0x178dd8(0x42a)&&_0x1e33da[_0x178dd8(0x3b3)][_0x178dd8(0x16e)]===_0x27edfb[_0x178dd8(0x449)],'onChange':_0x55b479=>_0x288527({[_0x3259b2['key']]:!!_0x55b479})}),_0x47417f['t'](_0x3259b2[_0x178dd8(0x1d6)])]},_0x3259b2[_0x178dd8(0x2c1)])),_0x1e33da[_0x178dd8(0x3b3)][_0x178dd8(0x16e)]===_0x27edfb[_0x178dd8(0x202)]&&_0x52e710(_0x178dd8(0x1d6),{'className':_0x178dd8(0x26c),'children':[_0x47417f['t'](_0x178dd8(0x43a)),_0x1af9b(Yr,{'className':'univer-w-36','value':String(_0x38904d[_0x178dd8(0x183)]??_0x1ce76a[_0x178dd8(0x31d)]),'options':[{'value':String(_0x1ce76a[_0x178dd8(0x31d)]),'label':_0x47417f['t']('bases-dashboard-ui.pivot.top')},{'value':String(_0x1ce76a[_0x178dd8(0x196)]),'label':_0x47417f['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x310d5e=>{const _0x4f7afc=_0x178dd8;let _0x24c527=[_0x1ce76a[_0x4f7afc(0x31d)],_0x1ce76a['bottom']][_0x4f7afc(0x3ae)](_0x187ad1=>String(_0x187ad1)===_0x310d5e);_0x24c527!==void 0x0&&_0x288527({'rowSubtotalPosition':_0x24c527});}})]}),_0x52e710(_0x178dd8(0x1d6),{'className':_0x178dd8(0x26c),'children':[_0x47417f['t']('bases-dashboard-ui.pivot.valuePosition'),_0x1af9b(Yr,{'className':_0x178dd8(0x229),'value':String(_0x1e33da[_0x178dd8(0x3b3)][_0x178dd8(0x360)]===_0x3188ad[_0x178dd8(0x37a)]?_0x3188ad[_0x178dd8(0x3d4)]:_0x1e33da[_0x178dd8(0x3b3)][_0x178dd8(0x360)]),'options':[{'value':String(_0x3188ad[_0x178dd8(0x3d4)]),'label':_0x47417f['t'](_0x178dd8(0x32d))},{'value':String(_0x3188ad[_0x178dd8(0x2ce)]),'label':_0x47417f['t'](_0x178dd8(0x3c2))}],'onChange':_0x242415=>{const _0x4fa022=_0x178dd8;let _0x2b6225=[_0x3188ad[_0x4fa022(0x3d4)],_0x3188ad[_0x4fa022(0x2ce)]][_0x4fa022(0x3ae)](_0x4f0a89=>String(_0x4f0a89)===_0x242415);_0x2b6225!==void 0x0&&_0x31e962(_0x586b9a=>_0x586b9a[_0x4fa022(0x1bc)](_0x2b6225,_0x586b9a[_0x4fa022(0x268)]()<0x0?0x0:_0x586b9a[_0x4fa022(0x268)]()));}})]}),_0x52e710('label',{'className':_0x178dd8(0x26c),'children':[_0x47417f['t'](_0x178dd8(0x287)),_0x1af9b(_0x770794,{'className':_0x178dd8(0x4d2),'min':0x1,'max':0x14,'value':_0x38904d[_0x178dd8(0x1ee)]??0x1,'onChange':_0x10a614=>{let _0x232117=Number(_0x10a614);Number['isFinite'](_0x232117)&&_0x232117>=0x1&&_0x288527({'pageWrap':_0x232117});}})]}),_0x52e710(_0x178dd8(0x1d6),{'className':_0x178dd8(0x26c),'children':[_0x47417f['t']('bases-dashboard-ui.pivot.pageDirection'),_0x1af9b(Yr,{'className':_0x178dd8(0x229),'value':String(_0x38904d[_0x178dd8(0x222)]??!0x1),'options':[{'value':'false','label':_0x47417f['t'](_0x178dd8(0x1e1))},{'value':_0x178dd8(0x1be),'label':_0x47417f['t'](_0x178dd8(0x27e))}],'onChange':_0x1ad1d3=>_0x288527({'pageOverThenDown':_0x1ad1d3===_0x178dd8(0x1be)})})]})]});}function Ji(_0x37b87a,_0x5f20e8,_0x425d81,_0x40fb8a){const _0xfd4d87=_0x219009;let _0x2d7cbf=_0x37b87a[_0xfd4d87(0x190)](_0x5f20e8)['find'](_0x3a4a53=>_0x37b87a[_0xfd4d87(0x243)](_0x3a4a53[_0xfd4d87(0x293)]())[_0xfd4d87(0x3f4)]!==_0x2e2ea1[_0xfd4d87(0x478)]);_0x425d81!==_0x2e2ea1['Value']&&_0x2d7cbf?_0x37b87a['updateFieldPosition'](_0x2d7cbf[_0xfd4d87(0x293)](),_0x425d81,_0x40fb8a):_0x37b87a[_0xfd4d87(0x2c3)](_0x5f20e8,_0x425d81,_0x40fb8a);}function Yi(_0x1b5083,_0x1a5613,_0xc9a5b5,_0x566640){const _0x288710=_0x219009;return _0x1a5613===_0x4bea43['blank']?_0x566640:_0x1a5613===_0x4bea43[_0x288710(0x1f5)]&&_0xc9a5b5?_0x415bf1['format'](_0xc9a5b5,Number(_0x1b5083)):_0x1b5083;}function Xi(_0x34bbc8){const _0x4be763=_0x219009;return _0x34bbc8['type']===_0x3f2f3b[_0x4be763(0x327)]||_0x34bbc8[_0x4be763(0x4b9)]===_0x3f2f3b[_0x4be763(0x271)]||_0x34bbc8['type']===_0x3f2f3b[_0x4be763(0x274)]||_0x34bbc8[_0x4be763(0x4b9)]===_0x3f2f3b[_0x4be763(0x176)];}function Zi(_0x145989){const _0x302628=_0x219009;switch(_0x145989){case _0x2e2ea1[_0x302628(0x2ce)]:return _0x302628(0x18b);case _0x2e2ea1[_0x302628(0x3d4)]:return _0x302628(0x18f);case _0x2e2ea1[_0x302628(0x478)]:return'bases-dashboard-ui.pivot.addToValue';default:return _0x302628(0x1df);}}function Qi({config:_0x3f93ef,onChange:_0x1c6f1e,runtime:_0x4c973e,table:_0x14a355}){const _0x4279e8=_0x219009;let _0x560a9b=_0xb3eab7(_0x51de0a),[_0x14ab48,_0x10f8de]=_0x277721('chart');return _0x52e710(_0x4279e8(0x2a1),{'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':[_0x1af9b(_0x531ef4,{'ariaLabel':_0x560a9b['t'](_0x4279e8(0x2a0)),'className':_0x4279e8(0x42b),'items':[{'label':_0x560a9b['t'](_0x4279e8(0x475)),'panelId':_0x4279e8(0x346),'value':_0x4279e8(0x2fc)},{'label':_0x560a9b['t'](_0x4279e8(0x3ad)),'panelId':'base-pivot-table-configuration','value':_0x4279e8(0x3b3)}],'value':_0x14ab48,'variant':_0x4279e8(0x236),'onChange':_0x10f8de}),_0x1af9b('div',{'className':_0x4279e8(0x282),'children':_0x14ab48===_0x4279e8(0x2fc)?_0x4c973e&&_0x1af9b(ei,{'config':_0x3f93ef,'runtime':_0x4c973e,'tableName':_0x14a355[_0x4279e8(0x3aa)],'onChange':_0x1c6f1e}):_0x1af9b(Bi,{'config':_0x3f93ef,'table':_0x14a355,'onChange':_0x1c6f1e})})]});}function $i({tableId:_0x588260,unitId:_0x3a8aff,viewId:_0x44424a}){const _0x36938b=_0x219009;let [_0x4a6daa,_0xfb1783]=_0x277721(!0x1),_0xe93f14=_0xb3eab7(_0x4a773c),_0x41955d=_0xb3eab7(_0x144775),_0x555c65=_0xb3eab7(_0x44e345),_0x2c25dd=_0xb3eab7(_0x51de0a),_0x1c033d=_0xb3eab7(_0x559b79),[_0x54e599,_0x1546b8]=_0x277721(null),[_0xc1d3a,_0x1a219e]=_0x277721(null),_0x11fa93=_0x52068e(_0x36938b(0x29d)+_0x3dac7b(0x8)),[_0x2e2976,_0x205ef2]=_0x277721(!0x1),_0x4a94ee=_0x41955d[_0x36938b(0x225)](_0x3a8aff,_0x160ed0[_0x36938b(0x1b7)]),_0x14460b=_0x4a94ee==null?void 0x0:_0x4a94ee[_0x36938b(0x206)]()['tables'][_0x588260],_0x867606=_0x14460b==null?void 0x0:_0x14460b[_0x36938b(0x2ea)][_0x44424a],_0x3ce83c=ea(_0x867606),_0x349c6b=yr(_0x3a8aff,_0x588260,_0x44424a);if(_0x2153d6(()=>{const _0x3768df=_0x36938b;if(!_0x3ce83c)return;let _0x4c8a31=_0x11fa93[_0x3768df(0x2bd)];return _0x1c033d[_0x3768df(0x3fc)](_0x4c8a31,{'unitId':_0x3a8aff,'tableId':_0x588260,'viewId':_0x44424a,'filters':[]}),()=>{const _0x1166ba=_0x3768df;_0x1c033d[_0x1166ba(0x4a5)](_0x3a8aff,_0x4c8a31);};},[_0x3ce83c,_0x1c033d,_0x588260,_0x3a8aff,_0x44424a]),_0x2153d6(()=>{const _0x533918=_0x36938b;if(!ea(_0x867606))return;let _0x136b8e=!0x0,_0x99ee05={'unitId':_0x3a8aff,'tableId':_0x588260,'viewId':_0x44424a,'filters':[_0x867606['filter']??null]};return _0x1c033d['refreshChartRuntime'](_0x3a8aff,_0x11fa93['current'],_0x99ee05)[_0x533918(0x3ab)](_0x1c8a4f=>{const _0x3471a5=_0x533918;_0x136b8e&&_0x1c8a4f&&(_0x1546b8(_0x1c8a4f),_0x1a219e(_0x1c033d[_0x3471a5(0x404)](_0x3a8aff,_0x11fa93[_0x3471a5(0x2bd)])??null),_0x205ef2(!0x1));})[_0x533918(0x2c9)](_0x54a349=>{const _0xeadf86=_0x533918;_0x555c65[_0xeadf86(0x4ab)](_0xeadf86(0x267),_0x54a349),_0x136b8e&&(_0x1546b8(null),_0x205ef2(!0x0));}),()=>{_0x136b8e=!0x1;};},[_0x555c65,_0x1c033d,_0x588260,_0x3a8aff,_0x867606,_0x44424a]),!_0x14460b||!ea(_0x867606))return null;let _0x2449f8=_0x1c033d['getChartRuntime'](_0x3a8aff,_0x11fa93[_0x36938b(0x2bd)])===_0xc1d3a?_0xc1d3a:null,_0x5d663e=_0x54e599?_0x52e710('div',{'className':_0x36938b(0x1f0),'style':{'gridTemplateRows':_0x867606[_0x36938b(0x2dc)][_0x36938b(0x343)]===_0x36938b(0x46f)?_0x36938b(0x442):_0x36938b(0x2a4)},'children':[_0x867606[_0x36938b(0x2dc)][_0x36938b(0x343)]!==_0x36938b(0x328)&&_0x2449f8&&_0x1af9b(_0x36938b(0x173),{'className':_0x36938b(0x1da),'children':_0x1af9b(Rr,{'isRowDirection':_0x4562e5(_0x867606[_0x36938b(0x2dc)][_0x36938b(0x2fc)][_0x36938b(0x4b4)]),'runtime':_0x2449f8})}),_0x867606[_0x36938b(0x2dc)][_0x36938b(0x343)]!=='chart'&&_0x1af9b(_0x36938b(0x173),{'className':_0x36938b(0x383),'children':_0x1af9b(ji,{'pivot':_0x867606[_0x36938b(0x2dc)][_0x36938b(0x3b3)],'view':_0x54e599[_0x36938b(0x2f3)]})})]}):_0x1af9b(_0x36938b(0x173),{'className':_0x36938b(0x375),'children':_0x2e2976?_0x2c25dd['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x2c25dd['t'](_0x36938b(0x1e3))}),_0x57fb3c=_0x1af9b(Qi,{'config':_0x867606[_0x36938b(0x2dc)],'runtime':_0x2449f8,'table':_0x14460b,'onChange':_0x56d41f=>{const _0xe9913d=_0x36938b;_0x41955d[_0xe9913d(0x3e2)](_0x3a8aff),_0x41955d['focusUnit'](_0x3a8aff),_0xe93f14['executeCommand'](_0x227312['id'],{'unitId':_0x3a8aff,'tableId':_0x588260,'viewId':_0x44424a,'patch':_0x56d41f})[_0xe9913d(0x2c9)](_0x1c3d6e=>_0x555c65[_0xe9913d(0x4ab)](_0xe9913d(0x1f8),_0x1c3d6e));}});return _0x1af9b(Jr,{'children':_0x52e710(_0x36938b(0x173),{'className':_0x36938b(0x42c),'children':[_0x349c6b&&_0x1af9b(_0x2e1096,{'onClick':()=>_0xfb1783(!0x0),'children':_0x2c25dd['t'](_0x36938b(0x475))}),_0x1af9b(_0x36938b(0x173),{'className':_0x36938b(0x2ab),'children':_0x5d663e}),_0x349c6b&&_0x4a6daa&&_0x1af9b(_0x5cf81f,{'title':_0x2c25dd['t'](_0x36938b(0x2a0)),'onClose':()=>_0xfb1783(!0x1),'children':_0x57fb3c})]})});}function ea(_0x181307){const _0x5ab649=_0x219009;return(_0x181307==null?void 0x0:_0x181307[_0x5ab649(0x4b9)])===_0x4ec201[_0x5ab649(0x223)]&&typeof _0x181307[_0x5ab649(0x2dc)]==_0x5ab649(0x43c)&&_0x181307[_0x5ab649(0x2dc)]!==null&&'pivot'in _0x181307[_0x5ab649(0x2dc)]&&'chart'in _0x181307[_0x5ab649(0x2dc)]&&_0x5ab649(0x343)in _0x181307['config'];}let ta=class extends _0x2b17e2{constructor(_0x40a693,_0x43f884,_0x1adb47,_0x5d24cd,_0x2d1868,_0x3bec00){const _0x5bcce1=_0x219009;super(),this['disposeWithMe'](_0x43f884[_0x5bcce1(0x2c5)]({'type':_0x4ec201[_0x5bcce1(0x223)],'renderMode':_0x5bcce1(0x407),'icon':_0x46a4b4,'component':$i,'menu':{get 'label'(){const _0x28a34d=_0x5bcce1;return _0x3bec00['t'](_0x28a34d(0x2a0));},get 'description'(){const _0x5c7ae2=_0x5bcce1;return _0x3bec00['t'](_0x5c7ae2(0x17e));},get 'defaultName'(){const _0x54fa06=_0x5bcce1;return _0x3bec00['t'](_0x54fa06(0x216));}}})),this[_0x5bcce1(0x418)](_0x40a693[_0x5bcce1(0x2c5)](na(_0x1adb47,_0x5d24cd,_0x2d1868,_0x3bec00)));}};ta=Ar([Y(0x0,_0x475f81),Y(0x1,_0x508eb1),Y(0x2,_0x346fbc(_0x24d6a6)),Y(0x3,_0x4a773c),Y(0x4,_0xd071cb),Y(0x5,_0x346fbc(_0x51de0a))],ta);function na(_0x298e46,_0xcebc7,_0xf1964a,_0x476024){const _0x75acc0=_0x219009;return{'change$':_0x3b3651(_0x298e46['change$'],_0xf1964a[_0x75acc0(0x3e8)]),'component':Si,get 'labels'(){const _0x9ef184=_0x75acc0;return{'add':_0x476024['t'](_0x9ef184(0x301)),'configure':_0x1eec3a=>_0x476024['t'](_0x9ef184(0x3eb),_0x1eec3a),'delete':_0x476024['t']('bases-dashboard-ui.dashboard.delete'),'new':_0x476024['t'](_0x9ef184(0x47b)),'rename':_0x476024['t'](_0x9ef184(0x2d7)),'search':_0x476024['t']('bases-dashboard-ui.dashboard.search'),'section':_0x476024['t']('bases-dashboard-ui.dashboard.section')};},'getItems':_0x2f551a=>{const _0x346e9a=_0x75acc0;let _0x2946eb=_0x298e46[_0x346e9a(0x255)](_0x2f551a);return _0x2946eb[_0x346e9a(0x48e)][_0x346e9a(0x1ae)](_0x2da8db=>{const _0x859598=_0x346e9a;let _0x490d71=_0x2946eb['dashboards'][_0x2da8db];return _0x490d71?[{'id':_0x490d71['id'],'name':_0x490d71[_0x859598(0x3aa)],'readonly':!_0x108b4a(_0xf1964a,_0x2f551a,_0x490d71['id'])}]:[];});},'create':async _0x1cf3fb=>{const _0x171468=_0x75acc0;let _0x13ef06=_0x298e46[_0x171468(0x255)](_0x1cf3fb),_0x4df9fc=_0x171468(0x4d1)+_0x3dac7b(0x8),_0x14b727=ra(_0x13ef06[_0x171468(0x48e)][_0x171468(0x1ae)](_0x59ed65=>{const _0x1ca95d=_0x171468;let _0xe9bf2b=_0x13ef06[_0x1ca95d(0x3e5)][_0x59ed65];return _0xe9bf2b?[_0xe9bf2b[_0x1ca95d(0x3aa)]]:[];}),_0x387636=>_0x476024['t'](_0x171468(0x230),String(_0x387636)));return await _0xcebc7['executeCommand'](_0x55205b['id'],{'unitId':_0x1cf3fb,'dashboard':{'id':_0x4df9fc,'name':_0x14b727,'widgetOrder':[],'widgets':{}}})?_0x4df9fc:null;},'rename':async(_0x212a7b,_0x25228a,_0x260bc6)=>{const _0x5b191b=_0x75acc0;let _0x505628=_0x298e46[_0x5b191b(0x4ca)](_0x212a7b,_0x25228a);return!!(_0x505628&&await _0xcebc7[_0x5b191b(0x43d)](_0x570003['id'],{'unitId':_0x212a7b,'dashboard':{..._0x505628,'name':_0x260bc6}}));},'remove':(_0x5b2c22,_0x5f4d70)=>_0xcebc7['executeCommand'](_0x4136ca['id'],{'unitId':_0x5b2c22,'dashboardId':_0x5f4d70})};}function ra(_0x91fc85,_0x18f643){const _0x1efd52=_0x219009;let _0x4d38ff=new Set(_0x91fc85),_0x1aeeb7=_0x4d38ff[_0x1efd52(0x2b6)]+0x1,_0x507b43=_0x18f643(_0x1aeeb7);for(;_0x4d38ff['has'](_0x507b43);)_0x1aeeb7+=0x1,_0x507b43=_0x18f643(_0x1aeeb7);return _0x507b43;}let ia=class extends _0x12151f{constructor(_0x394ebf=_r,_0x42b5cc,_0x23e866){const _0x2e8dfc=_0x219009;super(),this['_config']=_0x394ebf,this[_0x2e8dfc(0x23a)]=_0x42b5cc,this[_0x2e8dfc(0x1fa)]=_0x23e866;let {..._0x445808}=_0x3d5506({},_r,this[_0x2e8dfc(0x48f)]);this[_0x2e8dfc(0x1fa)][_0x2e8dfc(0x486)](gr,_0x445808);}[_0x219009(0x1bd)](){const _0x49d1d7=_0x219009;this[_0x49d1d7(0x23a)][_0x49d1d7(0x3e7)]([jr]),this['_injector'][_0x49d1d7(0x3e7)]([qr]),this[_0x49d1d7(0x23a)][_0x49d1d7(0x3e7)]([ta]);}['onReady'](){const _0xf85992=_0x219009;_0x4a083e(this[_0xf85992(0x23a)],[[jr],[qr],[ta]]);}};Ir(ia,'type',_0x160ed0[_0x219009(0x1b7)]),Ir(ia,_0x219009(0x34c),_0x219009(0x218)),Ir(ia,'packageName',mr),Ir(ia,_0x219009(0x39d),hr),ia=Ar([_0x18504d(_0x138d6e,_0x2eebed,_0x4adcce,_0x4fac13,_0xd85df1,_0x351b40),Y(0x1,_0x346fbc(_0x9ca0eb)),Y(0x2,_0x5e932d)],ia);function aa(_0x5d9863,_0x1238ad,_0x53564b,_0x1c04fe){const _0x5a9d8d=_0x219009;let _0x215ced={..._0x5d9863};if(_0x1238ad['includes']('w')){let _0x480bea=_0x5d9863[_0x5a9d8d(0x31a)]+_0x5d9863[_0x5a9d8d(0x207)];_0x215ced[_0x5a9d8d(0x31a)]=Math[_0x5a9d8d(0x2eb)](0x0,Math[_0x5a9d8d(0x466)](_0x480bea-0x1,_0x5d9863[_0x5a9d8d(0x31a)]+_0x53564b)),_0x215ced[_0x5a9d8d(0x207)]=_0x480bea-_0x215ced[_0x5a9d8d(0x31a)];}else _0x1238ad[_0x5a9d8d(0x481)]('e')&&(_0x215ced[_0x5a9d8d(0x207)]=Math['max'](0x1,Math[_0x5a9d8d(0x466)](_0x2a8e2f-_0x5d9863[_0x5a9d8d(0x31a)],_0x5d9863[_0x5a9d8d(0x207)]+_0x53564b)));if(_0x1238ad[_0x5a9d8d(0x481)]('n')){let _0x36c3ae=_0x5d9863['row']+_0x5d9863[_0x5a9d8d(0x224)];_0x215ced[_0x5a9d8d(0x38b)]=Math['max'](0x0,Math[_0x5a9d8d(0x466)](_0x36c3ae-0x1,_0x5d9863[_0x5a9d8d(0x38b)]+_0x1c04fe)),_0x215ced[_0x5a9d8d(0x224)]=_0x36c3ae-_0x215ced[_0x5a9d8d(0x38b)];}else _0x1238ad[_0x5a9d8d(0x481)]('s')&&(_0x215ced[_0x5a9d8d(0x224)]=Math[_0x5a9d8d(0x2eb)](0x1,_0x5d9863['rowSpan']+_0x1c04fe));return _0x215ced;}function oa(_0x2f15da){const _0x1f3656=_0x219009;let _0x45d4ca=Math['max'](0x1,Math['min'](_0x2a8e2f,Math[_0x1f3656(0x28e)](_0x2f15da[_0x1f3656(0x207)])));return{'column':Math['max'](0x0,Math['min'](_0x2a8e2f-_0x45d4ca,Math['round'](_0x2f15da[_0x1f3656(0x31a)]))),'row':Math[_0x1f3656(0x2eb)](0x0,Math['round'](_0x2f15da['row'])),'columnSpan':_0x45d4ca,'rowSpan':Math['max'](0x1,Math[_0x1f3656(0x28e)](_0x2f15da['rowSpan']))};}function sa(_0x56e466,_0x30068e,_0x378582){const _0x5600d6=_0x219009;let _0x948b60=new Map(_0x56e466),_0x240811=oa(_0x378582);_0x948b60[_0x5600d6(0x217)](_0x30068e,_0x240811);let _0x33a48b=[[_0x30068e,_0x240811]];for(let [_0x4010b6,_0x57ceb3]of _0x948b60){if(_0x4010b6===_0x30068e)continue;let _0x30a541=oa(_0x57ceb3);for(;_0x33a48b[_0x5600d6(0x499)](([,_0x3301e0])=>la(_0x30a541,_0x3301e0));)_0x30a541={..._0x30a541,'row':_0x30a541[_0x5600d6(0x38b)]+0x1};for(;_0x30a541[_0x5600d6(0x38b)]>0x0;){let _0x358879={..._0x30a541,'row':_0x30a541[_0x5600d6(0x38b)]-0x1};if(_0x33a48b[_0x5600d6(0x499)](([,_0x4b5c6d])=>la(_0x358879,_0x4b5c6d)))break;_0x30a541=_0x358879;}_0x33a48b[_0x5600d6(0x1b2)]([_0x4010b6,_0x30a541]),_0x948b60[_0x5600d6(0x217)](_0x4010b6,_0x30a541);}return _0x948b60;}function ca(_0x3b19b0,_0xa9bbbe,_0x558e74,_0x2752a8=0x38,_0x1c614f=0x16){const _0x3539fb=_0x219009;return _0x3b19b0<_0xa9bbbe+_0x2752a8?-Math[_0x3539fb(0x381)](_0x1c614f*(0x1-Math[_0x3539fb(0x2eb)](0x0,_0x3b19b0-_0xa9bbbe)/_0x2752a8)):_0x3b19b0>_0x558e74-_0x2752a8?Math[_0x3539fb(0x381)](_0x1c614f*(0x1-Math[_0x3539fb(0x2eb)](0x0,_0x558e74-_0x3b19b0)/_0x2752a8)):0x0;}function la(_0x22ad3f,_0x182bcd){const _0x4e8d6c=_0x219009;return _0x22ad3f['column']<_0x182bcd[_0x4e8d6c(0x31a)]+_0x182bcd['columnSpan']&&_0x22ad3f[_0x4e8d6c(0x31a)]+_0x22ad3f[_0x4e8d6c(0x207)]>_0x182bcd[_0x4e8d6c(0x31a)]&&_0x22ad3f[_0x4e8d6c(0x38b)]<_0x182bcd[_0x4e8d6c(0x38b)]+_0x182bcd['rowSpan']&&_0x22ad3f[_0x4e8d6c(0x38b)]+_0x22ad3f[_0x4e8d6c(0x224)]>_0x182bcd['row'];}const ua=[{'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':_0x219009(0x1c3)},{'direction':'ne','className':_0x219009(0x2dd)},{'direction':'e','className':_0x219009(0x4c0)},{'direction':'se','className':_0x219009(0x2fb)},{'direction':'s','className':'-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize'},{'direction':'sw','className':_0x219009(0x210)},{'direction':'w','className':_0x219009(0x3e6)}];function da({dashboard:_0x5791db,dragLabel:_0x4c1d4d,editable:_0x18e05b=!0x0,onLayoutsCommit:_0x55de47,onSelectWidget:_0x5ddada,renderWidget:_0x4db6e3,renderWidgetActions:_0x3023fd,resizeLabel:_0x5cb071,selectedWidgetId:_0x3d4575,widgetLabel:_0x30dd01}){const _0x3d617c=_0x219009;let _0x5544ba=_0x52068e(null),_0x8c390c=_0x52068e(null),[_0x3f809f,_0x2d5f31]=_0x277721(!0x1),_0x15c3fd=_0x2a7f67(()=>new Map(_0x5791db['widgetOrder'][_0x3d617c(0x1ae)](_0x58c2c8=>{const _0x29da9a=_0x3d617c;let _0x1959a5=_0x5791db[_0x29da9a(0x4a2)][_0x58c2c8];return _0x1959a5?[[_0x58c2c8,_0x1959a5[_0x29da9a(0x16e)]]]:[];})),[_0x5791db]),[_0x2e9553,_0x229475]=_0x277721(_0x15c3fd);_0x2153d6(()=>{const _0x569f9f=_0x3d617c;_0x8c390c[_0x569f9f(0x2bd)]||_0x229475(_0x15c3fd);},[_0x15c3fd]),_0x2153d6(()=>{const _0x23ff54=_0x3d617c;if(!_0x3f809f)return;let _0x612a22=_0x516aa0=>{const _0x58236d=_0x4abf;let _0x577d41=_0x5544ba[_0x58236d(0x2bd)];if(!_0x577d41)return null;let _0x462be0=_0x577d41[_0x58236d(0x30f)](),_0x233d5c=Math[_0x58236d(0x2eb)](0x1,(_0x462be0[_0x58236d(0x25a)]-0x8*(_0x2a8e2f-0x1))/_0x2a8e2f),_0x24d3f6=Math[_0x58236d(0x28e)]((_0x577d41['scrollTop']-_0x516aa0[_0x58236d(0x374)])/(_0x3b43c9+0x8)),_0x5d2860=Math[_0x58236d(0x28e)]((_0x516aa0[_0x58236d(0x33a)]-_0x516aa0[_0x58236d(0x3a0)])/(_0x233d5c+0x8)),_0x3e865a=Math[_0x58236d(0x28e)]((_0x516aa0[_0x58236d(0x42f)]-_0x516aa0[_0x58236d(0x4a4)])/(_0x3b43c9+0x8))+_0x24d3f6,_0x409c53=_0x516aa0['mode']===_0x58236d(0x17a)?{..._0x516aa0[_0x58236d(0x320)],'column':_0x516aa0[_0x58236d(0x320)][_0x58236d(0x31a)]+_0x5d2860,'row':_0x516aa0[_0x58236d(0x320)]['row']+_0x3e865a}:aa(_0x516aa0[_0x58236d(0x320)],_0x516aa0[_0x58236d(0x2cf)]??'se',_0x5d2860,_0x3e865a),_0x40203c=sa(_0x516aa0[_0x58236d(0x434)],_0x516aa0['id'],_0x409c53);return _0x229475(_0x40203c),_0x40203c;},_0xb97379=_0x2e402a=>{const _0x409ed0=_0x4abf;let _0xb60f54=_0x8c390c[_0x409ed0(0x2bd)];if(!_0xb60f54)return;let _0x49e15d={..._0xb60f54,'pointerX':_0x2e402a['clientX'],'pointerY':_0x2e402a[_0x409ed0(0x1a8)]};_0x8c390c[_0x409ed0(0x2bd)]=_0x49e15d;},_0x5bab85=()=>{const _0x2d38c4=_0x4abf;let _0x294afe=_0x8c390c[_0x2d38c4(0x2bd)],_0x1d4537=_0x294afe?_0x612a22(_0x294afe):null;_0x8c390c[_0x2d38c4(0x2bd)]=null,_0x2d5f31(!0x1),_0x1d4537&&_0x55de47(_0x1d4537);},_0x24a94=0x0,_0x102b2d=()=>{const _0x11495d=_0x4abf;let _0x2d34cc=_0x5544ba[_0x11495d(0x2bd)],_0x25679f=_0x8c390c[_0x11495d(0x2bd)];if(_0x2d34cc&&_0x25679f){let _0x474990=_0x2d34cc[_0x11495d(0x30f)](),_0xe06c9=ca(_0x25679f['pointerY'],_0x474990['top'],_0x474990[_0x11495d(0x196)]);_0xe06c9!==0x0&&(_0x2d34cc[_0x11495d(0x41b)]+=_0xe06c9),_0x612a22(_0x25679f),_0x24a94=requestAnimationFrame(_0x102b2d);}};return _0x24a94=requestAnimationFrame(_0x102b2d),window[_0x23ff54(0x371)](_0x23ff54(0x1b5),_0xb97379),window[_0x23ff54(0x371)](_0x23ff54(0x1f2),_0x5bab85),()=>{const _0xb016d2=_0x23ff54;cancelAnimationFrame(_0x24a94),window[_0xb016d2(0x1b9)](_0xb016d2(0x1b5),_0xb97379),window[_0xb016d2(0x1b9)](_0xb016d2(0x1f2),_0x5bab85);};},[_0x3f809f,_0x55de47]);let _0x27939d=Math[_0x3d617c(0x2eb)](0x8,...Array[_0x3d617c(0x181)](_0x2e9553[_0x3d617c(0x189)]())[_0x3d617c(0x43f)](_0x1b16c2=>_0x1b16c2[_0x3d617c(0x38b)]+_0x1b16c2[_0x3d617c(0x224)])),_0x42dbed=(_0x19122e,_0x47ee6a,_0x2b84b5,_0x363076)=>{const _0x56eb61=_0x3d617c;_0x19122e['preventDefault'](),_0x19122e[_0x56eb61(0x2ac)]();let _0x3ab717=_0x5544ba[_0x56eb61(0x2bd)],_0x4d7a29={'id':_0x47ee6a['id'],'mode':_0x2b84b5,'pointerX':_0x19122e[_0x56eb61(0x1b3)],'pointerY':_0x19122e['clientY'],'startX':_0x19122e[_0x56eb61(0x1b3)],'startY':_0x19122e[_0x56eb61(0x1a8)],'startScrollTop':(_0x3ab717==null?void 0x0:_0x3ab717[_0x56eb61(0x41b)])??0x0,'initial':_0x2e9553[_0x56eb61(0x411)](_0x47ee6a['id'])??_0x47ee6a[_0x56eb61(0x16e)],'initialLayouts':new Map(_0x2e9553),'resizeDirection':_0x363076};_0x8c390c[_0x56eb61(0x2bd)]=_0x4d7a29,_0x2d5f31(!0x0);};return _0x1af9b('div',{'ref':_0x5544ba,'data-dashboard-scroll-container':!0x0,'className':_0x43bd71(_0x3d617c(0x331),_0x178403),'onClick':_0x18e05b?_0x209354=>{const _0x17afa7=_0x3d617c;if(!(_0x209354[_0x17afa7(0x40c)]instanceof Node)||!_0x209354['currentTarget'][_0x17afa7(0x431)](_0x209354[_0x17afa7(0x40c)]))return;let _0x3505d9=_0x209354['target']instanceof Element?_0x209354[_0x17afa7(0x40c)]:_0x209354['target']['parentElement'];_0x3505d9!=null&&_0x3505d9[_0x17afa7(0x451)](_0x17afa7(0x392))||_0x5ddada==null||_0x5ddada();}:void 0x0,'children':_0x1af9b(_0x3d617c(0x173),{'data-dashboard-grid':!0x0,'className':_0x3d617c(0x4ba),'style':{'gap':0x8,'gridAutoRows':_0x3b43c9,'minHeight':_0x27939d*(_0x3b43c9+0x8)},'children':_0x5791db[_0x3d617c(0x4c5)][_0x3d617c(0x43f)](_0x4718ce=>{const _0x1b6b4f=_0x3d617c;var _0x196a4e;let _0xe68ef9=_0x5791db['widgets'][_0x4718ce],_0x16cf68=_0x2e9553[_0x1b6b4f(0x411)](_0x4718ce);return!_0xe68ef9||!_0x16cf68?null:_0x52e710(_0x1b6b4f(0x46d),{'data-dashboard-widget':_0xe68ef9['id'],'aria-label':_0xe68ef9[_0x1b6b4f(0x4a8)]??_0x30dd01(_0xe68ef9),'className':_0x43bd71(_0x1b6b4f(0x250),_0xe68ef9[_0x1b6b4f(0x4b9)]===_0xf5049a[_0x1b6b4f(0x20c)]||_0xe68ef9[_0x1b6b4f(0x4b9)]===_0xf5049a[_0x1b6b4f(0x219)]?_0x1b6b4f(0x4b5):'univer-bg-gray-0\x20dark:!univer-bg-gray-900',_0x18e05b&&_0x3d4575===_0xe68ef9['id']?_0x1b6b4f(0x476):_0x1b6b4f(0x495)),'style':{'gridColumn':_0x16cf68[_0x1b6b4f(0x31a)]+0x1+_0x1b6b4f(0x1e4)+_0x16cf68[_0x1b6b4f(0x207)],'gridRow':_0x16cf68['row']+0x1+_0x1b6b4f(0x1e4)+_0x16cf68[_0x1b6b4f(0x224)]},'tabIndex':_0x18e05b?0x0:void 0x0,'onClick':_0x18e05b?()=>_0x5ddada==null?void 0x0:_0x5ddada(_0xe68ef9['id']):void 0x0,'onFocus':_0x18e05b?()=>_0x5ddada==null?void 0x0:_0x5ddada(_0xe68ef9['id']):void 0x0,'children':[_0x18e05b&&_0x1af9b(_0x1b6b4f(0x1c2),{'type':_0x1b6b4f(0x1c2),'aria-label':_0x4c1d4d,'data-dashboard-drag-handle':_0xe68ef9['id'],'className':_0x43bd71(_0x1b6b4f(0x28b),_0x3f809f&&((_0x196a4e=_0x8c390c[_0x1b6b4f(0x2bd)])==null?void 0x0:_0x196a4e['id'])===_0xe68ef9['id']&&_0x8c390c[_0x1b6b4f(0x2bd)][_0x1b6b4f(0x2b0)]===_0x1b6b4f(0x17a)?_0x1b6b4f(0x2ae):_0x1b6b4f(0x285)),'onPointerDown':_0x275270=>_0x42dbed(_0x275270,_0xe68ef9,'move'),'children':_0x1af9b(_0x56435c,{'className':_0x1b6b4f(0x41e),'aria-hidden':_0x1b6b4f(0x1be)})}),_0x18e05b&&_0x1af9b(_0x1b6b4f(0x173),{'className':_0x1b6b4f(0x3f0),'children':_0x3023fd==null?void 0x0:_0x3023fd(_0xe68ef9)}),_0x1af9b(_0x1b6b4f(0x173),{'className':'univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','children':_0x4db6e3(_0xe68ef9)}),_0x18e05b&&ua['map'](({className:_0x21968d,direction:_0x2239b1})=>{const _0x41532a=_0x1b6b4f;let _0x3467d6=_0x2239b1[_0x41532a(0x348)]===0x2;return _0x1af9b(_0x41532a(0x1c2),{'type':_0x41532a(0x1c2),'aria-label':_0x5cb071,'data-dashboard-resize-handle':_0x2239b1,'data-dashboard-resize-control':_0x3467d6?_0x2239b1:void 0x0,'data-dashboard-resize-edge':_0x3467d6?void 0x0:_0x2239b1,'className':_0x43bd71(_0x41532a(0x38a),_0x3467d6?_0x41532a(0x3e3):_0x41532a(0x4ae),_0x21968d,_0x3d4575===_0xe68ef9['id']&&_0x41532a(0x482)),'onPointerDown':_0x278b46=>_0x42dbed(_0x278b46,_0xe68ef9,_0x41532a(0x16d),_0x2239b1)},_0x2239b1);})]},_0xe68ef9['id']);})})});}var fa;const Q={'axis':{..._0x4b7c48,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x2425d6,'heatmap':_0x34d401,'indicatorLine':_0x89d8f0,'legend':_0x4e4d4b,'lineAndArea':_0x305c9e,'pareto':_0x13cc6b,'pie':_0x28f162,'radar':_0x4ad53f,'relation':{..._0x102f37,'useValueAsSymbolSize':!0x0},'series':{..._0x1f143d,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((fa=_0x4f7330[_0x219009(0x21d)])==null?void 0x0:fa[_0x219009(0x28a)])??!0x1}},'style':_0x5209eb,'titles':_0x4ced2d,'trendline':_0x38d718,'waterfall':{..._0x4e066c,'useSubtotal':!0x0},'waterfallStyle':_0x3c4e32,'wordCloud':_0x546560},pa=[_0x3e0f4e[_0x219009(0x2df)],_0x3e0f4e[_0x219009(0x479)],_0x3e0f4e[_0x219009(0x186)],_0x3e0f4e['Scatter'],_0x3e0f4e[_0x219009(0x353)],_0x3e0f4e['Relation'],_0x3e0f4e[_0x219009(0x19e)],_0x3e0f4e[_0x219009(0x3ee)],_0x3e0f4e[_0x219009(0x34b)],_0x3e0f4e['Candlestick'],_0x3e0f4e[_0x219009(0x3c0)],_0x3e0f4e[_0x219009(0x39e)],_0x3e0f4e['Sunburst'],_0x3e0f4e[_0x219009(0x246)],_0x3e0f4e['Chord']];function ma(_0x2d704b){const _0x479a10=_0x219009;let {config:_0x3e1100,onChange:_0x566646,runtime:_0x4f6857,tableName:_0x4b6eec}=_0x2d704b,_0x19c370=_0xb3eab7(qr),_0x482ac9=_0xb3eab7(_0x51de0a),[_0x41e3fc,_0x1bff64]=_0x277721(_0x66773d[_0x479a10(0x49b)]),_0x53db54=_0x2a7f67(()=>new _0x1b56a9(_0x4f6857[_0x479a10(0x2e7)],{'commit':_0x135181=>{const _0x3fa993=_0x479a10;var _0x43aaa1;let _0x5aec87=_0x4f6857[_0x3fa993(0x2e7)],_0x4c4a21=_0xaa6a7c(_0x135181,{'series':(_0x43aaa1=_0x5aec87['config'])==null?void 0x0:_0x43aaa1['series'],'currentChartType':_0x5aec87[_0x3fa993(0x4a7)],'currentStyle':_0x5aec87[_0x3fa993(0x424)],'currentContext':_0x5aec87[_0x3fa993(0x23f)],'currentDataAggregation':_0x5aec87[_0x3fa993(0x474)]});_0x566646({'chart':ha(_0x3e1100[_0x3fa993(0x2fc)],_0x4c4a21)});}}),[_0x3e1100[_0x479a10(0x2fc)],_0x566646,_0x4f6857]),_0x111adc=_0x2a7f67(()=>_0x1bca48(_0x777c64[_0x479a10(0x43f)](_0x21ff62=>({..._0x21ff62,'label':_0x482ac9['t'](ya(_0x21ff62[_0x479a10(0x318)]))}))),[_0x482ac9]);return _0x1af9b(_0x44ba09,{'chartUIService':_0x19c370,'hostAdapter':_0x53db54,'children':_0x52e710(_0x479a10(0x173),{'className':_0x479a10(0x2a5),'children':[_0x1af9b(_0x531ef4,{'ariaLabel':_0x482ac9['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x479a10(0x2d8),'items':[{'label':_0x482ac9['t'](_0x479a10(0x2d9)),'panelId':'base-pivot-chart-setup','value':_0x66773d[_0x479a10(0x49b)]},{'label':_0x482ac9['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x479a10(0x4c8),'value':_0x66773d[_0x479a10(0x25b)]}],'value':_0x41e3fc,'onChange':_0x1bff64}),_0x41e3fc===_0x66773d[_0x479a10(0x49b)]?_0x1af9b(_0x24a4c3,{'id':_0x479a10(0x4aa),'label':_0x482ac9['t'](_0x479a10(0x2d9)),'children':_0x52e710('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x1af9b(_0x623fe,{'options':_0x111adc}),_0x1af9b(_0x3d9f3c,{}),_0x1af9b(_0x380243,{}),_0x1af9b(ga,{}),_0x1af9b(_0x23a4c3,{}),_0x52e710(_0x479a10(0x173),{'children':[_0x1af9b(_0x1dc825,{'title':_0x482ac9['t'](_0x479a10(0x20f))}),_0x1af9b(_0x4f1ee0,{'disabled':!0x0,'value':_0x4b6eec})]}),_0x1af9b(_0x215c50,{'orientationControl':_0x1af9b(_0x2e1096,{'size':_0x479a10(0x43e),'onClick':()=>_0x566646({'chart':{..._0x3e1100['chart'],'orient':_0x3e1100['chart'][_0x479a10(0x4b4)]===_0x479a10(0x38b)?_0x479a10(0x31a):_0x479a10(0x38b)}}),'children':_0x482ac9['t']('bases-dashboard-ui.chart.common.switchRowColumn')})}),_0x1af9b(_0x1a5bff,{}),_0x1af9b(_0x3e6c73,{'defaultValues':Q[_0x479a10(0x429)]}),_0x52e710(_0x479a10(0x173),{'children':[_0x1af9b(_0x1dc825,{'title':_0x482ac9['t'](_0x479a10(0x1a5))}),_0x1af9b(_0x8bae00,{'value':_0x3e1100[_0x479a10(0x343)],'options':[{'value':'chart-and-table','label':_0x482ac9['t'](_0x479a10(0x1ff))},{'value':_0x479a10(0x2fc),'label':_0x482ac9['t'](_0x479a10(0x19a))},{'value':_0x479a10(0x328),'label':_0x482ac9['t'](_0x479a10(0x49f))}],'onChange':_0x194bb8=>{(_0x194bb8==='chart-and-table'||_0x194bb8==='chart'||_0x194bb8==='table')&&_0x566646({'displayMode':_0x194bb8});}})]})]})}):_0x1af9b(_0x24a4c3,{'id':_0x479a10(0x4c8),'label':_0x482ac9['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x1af9b(_a,{})})]})});}function ha(_0x4c65c1,_0x22fc1a){const _0x1e1986=_0x219009;return{..._0x4c65c1,'type':_0x22fc1a[_0x1e1986(0x4a7)]??_0x4c65c1[_0x1e1986(0x4b9)],'style':_0x22fc1a[_0x1e1986(0x424)]??_0x4c65c1[_0x1e1986(0x424)],'context':_0x22fc1a['context']??_0x4c65c1[_0x1e1986(0x23f)],'dataAggregation':_0x22fc1a[_0x1e1986(0x474)]??_0x4c65c1[_0x1e1986(0x474)]};}function ga(){const _0x2d14ea=_0x219009;let _0x1af849=_0x4062bc();return _0x1af9b(_0x5446d4,{'visible':pa[_0x2d14ea(0x2e4)](_0x3cd386=>!_0x29c223[_0x2d14ea(0x25f)](_0x1af849,_0x3cd386))});}function $(_0xee21de){const _0x1ffcb8=_0x219009;return _0x52e710(_0x17d75d,{'id':_0xee21de['id'],'children':[_0x1af9b(_0x3e8f11,{'children':_0xee21de[_0x1ffcb8(0x1d6)]}),_0x1af9b(_0x58bf4b,{'children':_0xee21de['children']})]});}function _a(){const _0x49cc78=_0x219009;let _0x3ec784=_0xb3eab7(_0x51de0a),_0x35e78c=_0x4062bc(),_0x545e53=_0x312db6(),[_0x8280ac,_0x23338c]=_0x277721(null),_0x458a77=_0x29c223[_0x49cc78(0x25f)](_0x35e78c,_0x3e0f4e[_0x49cc78(0x3a1)]),_0x35a6a2=_0x35e78c===_0x3e0f4e[_0x49cc78(0x479)],_0x2638ee=_0x35e78c===_0x3e0f4e[_0x49cc78(0x186)],_0x3f1a7b=_0x35e78c===_0x3e0f4e['Funnel'],_0x227d87=_0x29c223[_0x49cc78(0x25f)](_0x35e78c,_0x3e0f4e[_0x49cc78(0x17d)]),_0xf78098=_0x35e78c===_0x3e0f4e[_0x49cc78(0x1ef)],_0x19abae=_0x35e78c===_0x3e0f4e[_0x49cc78(0x33e)],_0x2c5b3f=_0x35e78c===_0x3e0f4e['Pareto'],_0x43c397=_0x35e78c===_0x3e0f4e[_0x49cc78(0x3ee)],_0x3b575b=_0x1d3b69(_0x35e78c,_0x4f0d5d[_0x49cc78(0x247)])&&!_0x227d87&&!_0x2c5b3f,_0x86030=va(_0x35e78c,_0x3ec784);return _0x52e710(_0x176760,{'value':_0x8280ac,'onChange':_0x23338c,'children':[_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x337)],'label':_0x3ec784['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0x1af9b(_0x403f96,{'defaultValues':Q[_0x49cc78(0x424)]})}),_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x17c)],'label':_0x3ec784['t']('bases-dashboard-ui.chart.common.chartAndAxisTitles'),'children':_0x1af9b(_0x533222,{'commitMode':_0x49cc78(0x368),'defaultValues':Q[_0x49cc78(0x48b)]})}),_0x1af9b(_0x12c722,{'section':_0x49cc78(0x2f3)}),_0x3b575b&&_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x272)],'label':_0x3ec784['t'](_0x49cc78(0x458)),'children':_0x1af9b(_0x95cd68,{'defaultValues':Q[_0x49cc78(0x1f6)],'NumberFormatField':_0x43f297})}),_0x19abae&&_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x38e)],'label':_0x3ec784['t']('bases-dashboard-ui.chart.section.waterfall'),'children':_0x1af9b(_0x189b03,{'defaultValues':Q[_0x49cc78(0x393)],'getDefaultBucketName':({seriesName:_0x40a147,target:_0x2b4d01})=>_0x2b4d01===_0x11f14c[_0x49cc78(0x308)]?_0x3ec784['t'](_0x49cc78(0x432)):_0x40a147?_0x40a147+'-('+_0x3ec784['t'](_0x49cc78(0x275)+(_0x2b4d01===_0x11f14c[_0x49cc78(0x3da)]?'waterfall.positive':_0x49cc78(0x335)))+')':'','NumberFormatField':_0x43f297})}),_0x2c5b3f&&_0x52e710(_0x1ef66a,{'children':[_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x304)],'label':_0x3ec784['t'](_0x49cc78(0x1dc)),'children':_0x1af9b(_0x6a1abb,{'defaultValues':Q[_0x49cc78(0x38f)],'NumberFormatField':_0x43f297,'showDataPointEditor':!0x0,'target':_0x49cc78(0x2fe)})}),_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x1f3)],'label':_0x3ec784['t'](_0x49cc78(0x37f)),'children':_0x1af9b(_0x6a1abb,{'defaultValues':Q[_0x49cc78(0x38f)],'NumberFormatField':_0x43f297,'showDataPointEditor':!0x1,'target':_0x49cc78(0x428)})})]}),_0x458a77&&_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x413)],'label':_0x3ec784['t']('bases-dashboard-ui.chart.section.pie'),'children':_0x1af9b(_0x782d62,{'defaultValues':Q[_0x49cc78(0x3c9)],'NumberFormatField':_0x43f297})}),_0x2638ee&&_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x186)],'label':_0x3ec784['t'](_0x49cc78(0x4c7)),'children':_0x1af9b(_0x1d5b30,{'defaultValues':Q[_0x49cc78(0x1c5)]})}),_0x35a6a2&&_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x479)],'label':_0x3ec784['t']('bases-dashboard-ui.chart.section.radar'),'children':_0x1af9b(_0x5b4358,{'defaultValues':Q['radar']})}),_0x3f1a7b&&_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x353)],'label':_0x3ec784['t']('bases-dashboard-ui.chart.section.funnel'),'children':_0x1af9b(_0x1a89aa,{'defaultValues':Q[_0x49cc78(0x3b0)],'gapControl':_0x49cc78(0x460)})}),_0x43c397&&_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x3ee)],'label':_0x3ec784['t'](_0x49cc78(0x45a)),'children':_0x1af9b(_0x129683,{'defaultValues':Q[_0x49cc78(0x1cd)]})}),_0xf78098&&_0x1af9b($,{'id':_0x4fbb3c['Relation'],'label':_0x3ec784['t'](_0x49cc78(0x31c)),'children':_0x1af9b(_0x30b843,{'defaultValues':Q['relation']})}),_0x222850(_0x35e78c)&&_0x1af9b($,{'id':_0x4fbb3c['LineAndArea'],'label':_0x3ec784['t'](_0x29c223[_0x49cc78(0x25f)](_0x35e78c,_0x3e0f4e[_0x49cc78(0x1a2)])?'bases-dashboard-ui.chart.chartTypes.area':_0x49cc78(0x19f)),'children':_0x1af9b(_0x2f03f7,{'defaultValues':Q[_0x49cc78(0x32a)],'lineStyleControl':_0x49cc78(0x236)})}),_0x1d3b69(_0x35e78c,_0x4f0d5d[_0x49cc78(0x342)])&&_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x342)],'label':_0x3ec784['t']('bases-dashboard-ui.chart.common.legend'),'children':_0x1af9b(_0x132084,{'defaultValues':Q['legend']})}),_0x1d3b69(_0x35e78c,_0x4f0d5d[_0x49cc78(0x462)])&&_0x52e710(_0x1ef66a,{'children':[_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x322)],'label':_0x3ec784['t']('bases-dashboard-ui.chart.common.horizontalAxis'),'children':_0x1af9b(_0x4f9809,{'axis':'x','defaultValues':Q[_0x49cc78(0x29b)],'NumberFormatField':_0x43f297})}),_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x39f)],'label':_0x3ec784['t']('bases-dashboard-ui.chart.common.verticalAxis'),'children':_0x1af9b(_0x4f9809,{'axis':'y','defaultValues':Q[_0x49cc78(0x29b)],'NumberFormatField':_0x43f297})}),_0x1af9b(_0x12c722,{'section':_0x49cc78(0x455)}),_0x545e53&&_0x1af9b($,{'id':_0x4fbb3c['RightVerticalAxis'],'label':_0x3ec784['t']('bases-dashboard-ui.chart.common.rightVerticalAxis'),'children':_0x1af9b(_0x4f9809,{'axis':'rightY','defaultValues':Q['axis'],'NumberFormatField':_0x43f297})}),_0x1af9b($,{'id':_0x4fbb3c['GridlinesAndTicks'],'label':_0x3ec784['t'](_0x49cc78(0x3b1)),'children':_0x1af9b(_0x507867,{'defaultValues':Q[_0x49cc78(0x29b)]})})]}),_0x1d3b69(_0x35e78c,_0x4f0d5d[_0x49cc78(0x1cf)])&&_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x1cf)],'label':_0x3ec784['t'](_0x49cc78(0x305)),'children':_0x1af9b(_0x5207e9,{'defaultValues':Q['indicatorLine']})}),_0x479078(_0x35e78c)&&_0x1af9b($,{'id':_0x4fbb3c['Trendline'],'label':_0x3ec784['t'](_0x49cc78(0x309)),'children':_0x1af9b(_0x2c7234,{'defaultValues':Q[_0x49cc78(0x3cd)]})}),_0x86030&&_0x1af9b($,{'id':_0x86030['id'],'label':_0x86030[_0x49cc78(0x1d6)],'children':_0x1af9b(_0x4f919a,{})})]});}function va(_0x4d13a6,_0x3b90dd){const _0x1f5128=_0x219009;let _0x544bab={[_0x3e0f4e['Candlestick']]:{'id':_0x4fbb3c[_0x1f5128(0x39b)],'localeKey':_0x1f5128(0x19d)},[_0x3e0f4e[_0x1f5128(0x3c0)]]:{'id':_0x4fbb3c[_0x1f5128(0x3c0)],'localeKey':_0x1f5128(0x3d1)},[_0x3e0f4e[_0x1f5128(0x39e)]]:{'id':_0x4fbb3c[_0x1f5128(0x39e)],'localeKey':'bases-dashboard-ui.chart.section.treemap'},[_0x3e0f4e[_0x1f5128(0x3ac)]]:{'id':_0x4fbb3c[_0x1f5128(0x3ac)],'localeKey':_0x1f5128(0x2ca)},[_0x3e0f4e['Gauge']]:{'id':_0x4fbb3c['Gauge'],'localeKey':'bases-dashboard-ui.chart.section.gauge'},[_0x3e0f4e[_0x1f5128(0x3ca)]]:{'id':_0x4fbb3c['Chord'],'localeKey':_0x1f5128(0x430)}}[_0x4d13a6];return _0x544bab?{'id':_0x544bab['id'],'label':_0x3b90dd['t'](_0x544bab['localeKey'])}:null;}function ya(_0xaa192c){const _0x196f97=_0x219009;return _0x196f97(0x3f5)+_0xaa192c;}function ba({onChange:_0x3dc844,onEditData:_0x331bc9,runtime:_0x430f7b,sourceChart:_0x2c61a6,sourceName:_0x62be2e,widget:_0x3b985c}){const _0x4da79f=_0x219009;let _0x1fe9f6=_0xb3eab7(qr),_0x102dc1=_0xb3eab7(_0x51de0a),[_0x19c975,_0x3496fa]=_0x277721(_0x66773d[_0x4da79f(0x49b)]),_0x4f12a4=_0x3b985c['chart']??_0x2c61a6,_0x41946d=_0x2a7f67(()=>new _0x1b56a9(_0x430f7b[_0x4da79f(0x2e7)],{'commit':_0x43026b=>{const _0x5b1487=_0x4da79f;var _0x45cf66;let _0x9b7ec6=_0x430f7b[_0x5b1487(0x2e7)],_0x3993a3=_0xaa6a7c(_0x43026b,{'series':(_0x45cf66=_0x9b7ec6[_0x5b1487(0x2dc)])==null?void 0x0:_0x45cf66[_0x5b1487(0x1f6)],'currentChartType':_0x9b7ec6[_0x5b1487(0x4a7)],'currentStyle':_0x9b7ec6[_0x5b1487(0x424)],'currentContext':_0x9b7ec6[_0x5b1487(0x23f)],'currentDataAggregation':_0x9b7ec6[_0x5b1487(0x474)]});_0x3dc844({..._0x3b985c,'chart':ha(_0x4f12a4,_0x3993a3)})['catch'](()=>void 0x0);}}),[_0x4f12a4,_0x3dc844,_0x430f7b,_0x3b985c]),_0x2f5ec9=_0x2a7f67(()=>_0x1bca48(_0x777c64[_0x4da79f(0x43f)](_0x547ecf=>({..._0x547ecf,'label':_0x102dc1['t'](xa(_0x547ecf[_0x4da79f(0x318)]))}))),[_0x102dc1]);return _0x1af9b(_0x44ba09,{'chartUIService':_0x1fe9f6,'hostAdapter':_0x41946d,'children':_0x52e710(_0x4da79f(0x173),{'data-dashboard-chart-inspector':!0x0,'className':_0x4da79f(0x2e5),'children':[_0x1af9b(_0x531ef4,{'ariaLabel':_0x102dc1['t'](_0x4da79f(0x454)),'className':_0x4da79f(0x2d8),'items':[{'label':_0x102dc1['t'](_0x4da79f(0x2d9)),'panelId':_0x4da79f(0x227),'value':_0x66773d[_0x4da79f(0x49b)]},{'label':_0x102dc1['t'](_0x4da79f(0x420)),'panelId':_0x4da79f(0x197),'value':_0x66773d[_0x4da79f(0x25b)]}],'value':_0x19c975,'onChange':_0x3496fa}),_0x19c975===_0x66773d[_0x4da79f(0x49b)]?_0x1af9b(_0x24a4c3,{'id':_0x4da79f(0x227),'label':_0x102dc1['t'](_0x4da79f(0x2d9)),'children':_0x52e710(_0x4da79f(0x173),{'className':_0x4da79f(0x2b4),'children':[_0x1af9b(_0x623fe,{'options':_0x2f5ec9}),_0x1af9b(_0x3d9f3c,{}),_0x1af9b(_0x380243,{}),_0x1af9b(ga,{}),_0x1af9b(_0x23a4c3,{}),_0x52e710(_0x4da79f(0x173),{'children':[_0x1af9b(_0x1dc825,{'title':_0x102dc1['t'](_0x4da79f(0x2f4))}),_0x1af9b(_0x4f1ee0,{'disabled':!0x0,'value':_0x62be2e}),_0x1af9b(_0x2e1096,{'className':'univer-mt-2\x20univer-w-full','onClick':_0x331bc9,'children':_0x102dc1['t'](_0x4da79f(0x172))})]})]})}):_0x1af9b(_0x24a4c3,{'id':_0x4da79f(0x197),'label':_0x102dc1['t'](_0x4da79f(0x420)),'children':_0x1af9b(_a,{})})]})});}function xa(_0x581e37){const _0x40630c=_0x219009;return _0x40630c(0x3f5)+_0x581e37;}const Sa=[_0x219009(0x334),_0x219009(0x24f),_0x219009(0x465),_0x219009(0x414),_0x219009(0x264),_0x219009(0x449)];function Ca({base:_0x5f19f7,onChange:_0x3c152b,onSelectBackgroundImage:_0x497d79,widget:_0x2b2955}){const _0x35bf6a=_0x219009;var _0x57e4f9;let _0x248bb3=_0xb3eab7(_0x51de0a),_0x236300=_0xb3eab7(_0x52f5e2),_0x35a5c2=_0x97415f(()=>_0x236300[_0x35bf6a(0x341)],_0x236300[_0x35bf6a(0x2ed)](),!0x1,[_0x236300]),_0x57e222=_0x97415f(()=>_0x236300[_0x35bf6a(0x40f)],_0x236300[_0x35bf6a(0x388)],!0x1,[_0x236300]),[_0x1911c2,_0x406dd8]=_0x277721(_0x35bf6a(0x39a)),[_0x39db0f,_0x524cdf]=_0x277721(!0x1),_0x59f838=Cr(_0x2b2955),_0x2973b6=_0x5f19f7[_0x35bf6a(0x206)]()[_0x35bf6a(0x44e)][_0x2b2955[_0x35bf6a(0x35c)]],_0x521ec7=_0x2973b6==null?void 0x0:_0x2973b6[_0x35bf6a(0x3af)]['find'](_0x216525=>_0x2973b6[_0x35bf6a(0x2ea)][_0x216525]),_0xe7863c=_0x521ec7?_0x2973b6==null?void 0x0:_0x2973b6['views'][_0x521ec7]:void 0x0,_0x109c09=_0x2973b6&&_0xe7863c?_0x2afc8d(_0x5f19f7[_0x35bf6a(0x206)](),_0x2973b6,_0xe7863c)[_0x35bf6a(0x43f)](_0x301b20=>({..._0x301b20,'current':!0x1})):[],_0x367ec1=((_0x57e4f9=_0x2b2955[_0x35bf6a(0x21c)][_0x35bf6a(0x21e)])==null?void 0x0:_0x57e4f9[_0x35bf6a(0x1ab)])??'',_0x1d4c2e=_0x46a074=>_0x3c152b(wr(_0x2b2955,_0x46a074))['catch'](()=>void 0x0),_0x30546c=_0x12f4d5=>_0x3c152b({..._0x2b2955,'description':_0x12f4d5})[_0x35bf6a(0x2c9)](()=>void 0x0);return _0x52e710(_0x35bf6a(0x173),{'data-dashboard-formula-inspector':!0x0,'className':_0x35bf6a(0x2e5),'children':[_0x1af9b(_0x35fc77,{'className':_0x35bf6a(0x1e9),'items':[{'value':_0x35bf6a(0x39a),'label':_0x248bb3['t'](_0x35bf6a(0x18c))},{'value':_0x35bf6a(0x424),'label':_0x248bb3['t']('bases-dashboard-ui.dashboardInspector.style')}],'value':_0x1911c2,'onChange':_0x406dd8}),_0x1af9b('div',{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0x1911c2==='data'?_0x52e710(_0x35bf6a(0x173),{'className':'univer-grid\x20univer-gap-4','children':[_0x1af9b(wa,{'label':_0x248bb3['t'](_0x35bf6a(0x1de)),'children':_0x1af9b(_0x4f1ee0,{'value':_0x2b2955[_0x35bf6a(0x2bc)]??_0x2b2955[_0x35bf6a(0x4a8)]??'','onChange':_0x30546c,'onBlur':_0x1fcc88=>_0x30546c(_0x1fcc88[_0x35bf6a(0x40c)][_0x35bf6a(0x286)])})}),_0x1af9b(wa,{'label':_0x248bb3['t'](_0x35bf6a(0x2f4)),'children':_0x1af9b(_0x4f1ee0,{'disabled':!0x0,'value':(_0x2973b6==null?void 0x0:_0x2973b6[_0x35bf6a(0x3aa)])??_0x248bb3['t'](_0x35bf6a(0x37d))})}),_0x52e710(wa,{'label':_0x248bb3['t']('bases-dashboard-ui.dashboardInspector.formula'),'children':[_0x1af9b(_0x4f1ee0,{'disabled':!0x0,'value':_0x47b245(_0x367ec1,_0x109c09)}),_0x1af9b(_0x2e1096,{'className':_0x35bf6a(0x310),'onClick':()=>_0x524cdf(!0x0),'children':_0x248bb3['t'](_0x35bf6a(0x26e))})]})]}):_0x52e710(_0x35bf6a(0x173),{'className':_0x35bf6a(0x2ff),'children':[_0x1af9b(_0x3b005c,{'emptyLabel':_0x248bb3['t'](_0x35bf6a(0x435)),'label':_0x248bb3['t'](_0x35bf6a(0x435)),'pickerFallbackValue':_0x57e222?_0x35a5c2[_0x35bf6a(0x3bc)][0x384]:_0x35a5c2['gray'][0x0],'resetLabel':_0x248bb3['t'](_0x35bf6a(0x477)),'value':_0x59f838[_0x35bf6a(0x34d)]??null,'onChange':_0x25f85e=>_0x1d4c2e({'backgroundColor':_0x25f85e??void 0x0})}),_0x52e710(wa,{'label':_0x248bb3['t'](_0x35bf6a(0x3ef)),'children':[_0x52e710('div',{'className':_0x35bf6a(0x2b7),'children':[_0x52e710(_0x2e1096,{'className':_0x35bf6a(0x4b0),'onClick':()=>{const _0x4c71a5=_0x35bf6a;_0x497d79()[_0x4c71a5(0x3ab)](_0x3d19bf=>{const _0x233065=_0x4c71a5;if(_0x3d19bf){var _0x31e876;return _0x1d4c2e({'backgroundImage':{..._0x3d19bf,'fit':((_0x31e876=_0x59f838[_0x233065(0x3fb)])==null?void 0x0:_0x31e876[_0x233065(0x180)])??_0x233065(0x3de)}});}})[_0x4c71a5(0x2c9)](()=>void 0x0);},'children':[_0x1af9b(_0x5a5e3d,{}),_0x59f838[_0x35bf6a(0x3fb)]?_0x248bb3['t']('bases-dashboard-ui.dashboardInspector.replaceImage'):_0x248bb3['t']('bases-dashboard-ui.dashboardInspector.uploadImage')]}),_0x59f838[_0x35bf6a(0x3fb)]&&_0x1af9b(_0x2e1096,{'aria-label':_0x248bb3['t'](_0x35bf6a(0x2c7)),'title':_0x248bb3['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'onClick':()=>_0x1d4c2e({'backgroundImage':void 0x0}),'children':_0x1af9b(_0x140734,{})})]}),_0x59f838['backgroundImage']&&_0x1af9b(_0x35fc77,{'className':'univer-mt-2','items':[{'value':_0x35bf6a(0x3de),'label':_0x248bb3['t'](_0x35bf6a(0x480))},{'value':'contain','label':_0x248bb3['t'](_0x35bf6a(0x3b4))}],'value':_0x59f838[_0x35bf6a(0x3fb)][_0x35bf6a(0x180)],'onChange':_0x647c2d=>_0x1d4c2e({'backgroundImage':_0x59f838[_0x35bf6a(0x3fb)]?{..._0x59f838['backgroundImage'],'fit':_0x647c2d}:void 0x0})})]}),_0x1af9b(_0x3b005c,{'emptyLabel':_0x248bb3['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x248bb3['t'](_0x35bf6a(0x3dc)),'pickerFallbackValue':_0x57e222?_0x35a5c2[_0x35bf6a(0x3bc)][0x32]:_0x35a5c2[_0x35bf6a(0x3bc)][0x3e8],'resetLabel':_0x248bb3['t'](_0x35bf6a(0x477)),'value':_0x59f838[_0x35bf6a(0x321)]??null,'onChange':_0x404080=>_0x1d4c2e({'textColor':_0x404080??void 0x0})}),_0x1af9b(wa,{'label':_0x248bb3['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x1af9b(_0x35fc77,{'items':[{'value':_0x35bf6a(0x357),'label':_0x248bb3['t'](_0x35bf6a(0x3d8))},{'value':_0x35bf6a(0x403),'label':_0x248bb3['t'](_0x35bf6a(0x302))},{'value':_0x35bf6a(0x312),'label':_0x248bb3['t'](_0x35bf6a(0x2fd))}],'value':_0x59f838[_0x35bf6a(0x3a9)],'onChange':_0x3b953f=>_0x1d4c2e({'alignment':_0x3b953f})})}),_0x52e710(wa,{'label':_0x248bb3['t'](_0x35bf6a(0x2a7)),'children':[_0x1af9b(_0x35fc77,{'items':[{'value':_0x35bf6a(0x2a9),'label':_0x248bb3['t'](_0x35bf6a(0x45e))},{'value':_0x35bf6a(0x492),'label':_0x248bb3['t'](_0x35bf6a(0x326))}],'value':_0x59f838[_0x35bf6a(0x4b2)],'onChange':_0x39855b=>_0x1d4c2e({'fontSizeMode':_0x39855b})}),_0x59f838[_0x35bf6a(0x4b2)]===_0x35bf6a(0x492)&&_0x1af9b(_0x770794,{'className':_0x35bf6a(0x488),'min':0xc,'max':0x78,'value':_0x59f838[_0x35bf6a(0x25d)],'onChange':_0x3f949d=>_0x1d4c2e({'fontSize':_0x3f949d??0x28,'fontSizeMode':'custom'})})]}),_0x1af9b(wa,{'label':_0x248bb3['t'](_0x35bf6a(0x2b8)),'children':_0x1af9b(_0x8bae00,{'value':_0x59f838['numberFormat'],'options':[{'value':_0x35bf6a(0x334),'label':_0x248bb3['t'](_0x35bf6a(0x292))},{'value':'number','label':_0x248bb3['t'](_0x35bf6a(0x345))},{'value':_0x35bf6a(0x465),'label':_0x248bb3['t'](_0x35bf6a(0x2fa))},{'value':_0x35bf6a(0x414),'label':_0x248bb3['t']('bases-dashboard-ui.dashboardInspector.currency')},{'value':'grouped','label':_0x248bb3['t'](_0x35bf6a(0x365))},{'value':_0x35bf6a(0x449),'label':_0x248bb3['t'](_0x35bf6a(0x19b))}],'onChange':_0x3fb7cb=>{const _0x47724a=_0x35bf6a;let _0x5841fe=Sa[_0x47724a(0x3ae)](_0x1296e3=>_0x1296e3===_0x3fb7cb);_0x5841fe&&_0x1d4c2e({'numberFormat':_0x5841fe});}})}),_0x59f838[_0x35bf6a(0x22f)]==='currency'&&_0x1af9b(wa,{'label':_0x248bb3['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x1af9b(_0x4f1ee0,{'value':_0x59f838['currency'],'onChange':_0x3317fc=>_0x1d4c2e({'currency':_0x3317fc[_0x35bf6a(0x45d)](0x0,0x3)['toUpperCase']()})})}),_0x59f838['numberFormat']!==_0x35bf6a(0x334)&&_0x1af9b(wa,{'label':_0x248bb3['t'](_0x35bf6a(0x43b)),'children':_0x1af9b(_0x770794,{'min':0x0,'max':0x8,'value':_0x59f838['decimalPlaces'],'onChange':_0x152b02=>_0x1d4c2e({'decimalPlaces':_0x152b02??0x0})})})]})}),_0x39db0f&&_0x1af9b(_0x214192,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1af9b(_0x47c581,{'tables':_0x109c09,'formula':_0x47b245(_0x367ec1,_0x109c09),'onCancel':()=>_0x524cdf(!0x1),'onSave':_0x2e091b=>{const _0x59a478=_0x35bf6a;let _0x384b7f=_0x2b2955[_0x59a478(0x21c)][_0x59a478(0x21e)]??{'formula':''};return _0x3c152b({..._0x2b2955,'shapeData':{..._0x2b2955[_0x59a478(0x21c)],'formulaBinding':{..._0x384b7f,'formula':_0x47ab15(_0x2e091b,_0x109c09)}}})[_0x59a478(0x3ab)](()=>_0x524cdf(!0x1))['catch'](()=>void 0x0);}})})]});}function wa({children:_0x240ba7,label:_0x3604a6}){const _0xafc752=_0x219009;return _0x52e710(_0xafc752(0x173),{'role':_0xafc752(0x1a0),'aria-label':_0x3604a6,'className':_0xafc752(0x359),'children':[_0x1af9b(_0xafc752(0x46c),{'children':_0x3604a6}),_0x240ba7]});}const Ta={[_0x58020d['IS']]:_0x219009(0x1b6),[_0x58020d[_0x219009(0x3fe)]]:_0x219009(0x36a),[_0x58020d['CONTAINS']]:_0x219009(0x441),[_0x58020d[_0x219009(0x25e)]]:_0x219009(0x26f),[_0x58020d['IS_EMPTY']]:'bases-dashboard-ui.operators.isEmpty',[_0x58020d[_0x219009(0x406)]]:_0x219009(0x396),[_0x58020d['GREATER_THAN']]:_0x219009(0x20e),[_0x58020d[_0x219009(0x30a)]]:_0x219009(0x2cc),[_0x58020d[_0x219009(0x410)]]:_0x219009(0x3d2),[_0x58020d[_0x219009(0x31f)]]:_0x219009(0x489),[_0x58020d['BEFORE']]:_0x219009(0x448),[_0x58020d[_0x219009(0x244)]]:'bases-dashboard-ui.operators.after'};function Ea({disabled:_0x29fb04,fields:_0x313cf3,filter:_0x49728f,onChange:_0x258988}){const _0x567c0e=_0x219009;let _0x393a02=_0xb3eab7(_0x51de0a),_0x12b1c4=(_0x49728f==null?void 0x0:_0x49728f['conditions'])??[];return _0x12b1c4[_0x567c0e(0x348)]?_0x1af9b(_0x567c0e(0x173),{'className':_0x567c0e(0x3f7),'children':_0x12b1c4[_0x567c0e(0x43f)]((_0x54b847,_0x26d839)=>{const _0x341439=_0x567c0e;let _0x2db0a9=_0x313cf3['find'](_0x4e26c8=>_0x4e26c8['id']===_0x54b847[_0x341439(0x1cb)]);return _0x52e710(_0x341439(0x173),{'className':_0x341439(0x2db),'children':[_0x52e710('div',{'className':_0x341439(0x20a),'children':[_0x1af9b('span',{'className':_0x341439(0x22e),'children':(_0x2db0a9==null?void 0x0:_0x2db0a9[_0x341439(0x3aa)])??_0x54b847[_0x341439(0x1cb)]}),_0x1af9b(_0x341439(0x46c),{'className':_0x341439(0x444),'children':_0x393a02['t'](Ta[_0x54b847[_0x341439(0x3df)]])})]}),Pa(_0x54b847[_0x341439(0x3df)])&&_0x1af9b(Oa,{'disabled':_0x29fb04,'field':_0x2db0a9,'value':_0x54b847['operand'],'onChange':_0x199d10=>_0x258988(ja(_0x49728f,_0x26d839,{'operand':_0x199d10}))})]},La(_0x12b1c4,_0x54b847,_0x26d839));})}):_0x52e710('div',{'className':'univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','children':[_0x1af9b(_0x50dfce,{'className':_0x567c0e(0x44a)}),_0x1af9b(_0x567c0e(0x46c),{'className':_0x567c0e(0x494),'children':_0x393a02['t'](_0x567c0e(0x1fb))})]});}function Da({fields:_0x272f74,filter:_0x7d7459,onChange:_0xb04e45,onClear:_0x289c35}){const _0x470bb2=_0x219009;let _0x4df684=_0xb3eab7(_0x51de0a),_0x4bc6b2=(_0x7d7459==null?void 0x0:_0x7d7459['conditions'])??[];return _0x52e710(_0x470bb2(0x173),{'data-dashboard-filter-inspector':!0x0,'className':_0x470bb2(0x47a),'children':[_0x4bc6b2[_0x470bb2(0x43f)]((_0x266a2a,_0x4e6c49)=>{const _0x1e9368=_0x470bb2;let _0x433260=_0x272f74['find'](_0x5af14f=>_0x5af14f['id']===_0x266a2a['fieldId'])??_0x272f74[0x0],_0xe4a742=Ma(_0x433260);return _0x52e710(_0x1e9368(0x198),{'className':_0x1e9368(0x2ef),'children':[_0x52e710(_0x1e9368(0x173),{'className':_0x1e9368(0x24a),'children':[_0x1af9b(_0x8bae00,{'value':_0x266a2a['fieldId'],'options':_0x272f74[_0x1e9368(0x43f)](_0x4fee9f=>({'value':_0x4fee9f['id'],'label':_0x4fee9f[_0x1e9368(0x3aa)]})),'onChange':_0x2299e5=>{let _0x44f094=_0x272f74['find'](_0x2a0462=>_0x2a0462['id']===_0x2299e5);if(!_0x44f094)return;let _0x545ba1=Ma(_0x44f094)[0x0];_0xb04e45(ja(_0x7d7459,_0x4e6c49,Aa(_0x44f094,_0x545ba1)));}}),_0x1af9b(_0x2e1096,{'type':'button','variant':_0x1e9368(0x209),'aria-label':_0x4df684['t'](_0x1e9368(0x1a9)),'className':'univer-size-8\x20univer-p-0\x20univer-text-red-500','onClick':()=>_0xb04e45(ka(_0x7d7459,_0x4bc6b2[_0x1e9368(0x498)]((_0x21030d,_0x5412e2)=>_0x5412e2!==_0x4e6c49))),'children':_0x1af9b(_0x68937f,{})})]}),_0x1af9b(_0x8bae00,{'value':_0x266a2a[_0x1e9368(0x3df)],'options':_0xe4a742[_0x1e9368(0x43f)](_0x5e633f=>({'value':_0x5e633f,'label':_0x4df684['t'](Ta[_0x5e633f])})),'onChange':_0x57e4ba=>{const _0x2582a8=_0x1e9368;let _0x2dad2f=_0xe4a742[_0x2582a8(0x3ae)](_0xb6f1d9=>_0xb6f1d9===_0x57e4ba);_0x2dad2f&&_0xb04e45(ja(_0x7d7459,_0x4e6c49,{'operator':_0x2dad2f,'operand':Na(_0x433260)}));}}),Pa(_0x266a2a[_0x1e9368(0x3df)])&&_0x1af9b(Oa,{'field':_0x433260,'value':_0x266a2a[_0x1e9368(0x215)],'onChange':_0x5f41c5=>_0xb04e45(ja(_0x7d7459,_0x4e6c49,{'operand':_0x5f41c5}))})]},La(_0x4bc6b2,_0x266a2a,_0x4e6c49));}),_0x52e710(_0x2e1096,{'type':_0x470bb2(0x1c2),'variant':_0x470bb2(0x209),'className':'univer-w-full\x20univer-justify-start\x20univer-text-primary-600','disabled':!_0x272f74['length'],'onClick':()=>{let _0x5c7d1f=_0x272f74[0x0];if(!_0x5c7d1f)return;let _0x2e5f81=Ma(_0x5c7d1f)[0x0];_0xb04e45(ka(_0x7d7459,[..._0x4bc6b2,Aa(_0x5c7d1f,_0x2e5f81)]));},'children':[_0x1af9b(_0x5a5e3d,{}),_0x4df684['t']('bases-dashboard-ui.dashboardInspector.newCondition')]}),_0x4bc6b2['length']>0x0&&_0x1af9b(_0x2e1096,{'type':'button','variant':_0x470bb2(0x209),'className':_0x470bb2(0x339),'onClick':_0x289c35,'children':_0x4df684['t'](_0x470bb2(0x204))})]});}function Oa({disabled:_0x439d52,field:_0x1c15ec,onChange:_0x5335e2,value:_0x3306a4}){const _0x194dec=_0x219009;let _0x457822=_0xb3eab7(_0x51de0a),[_0x41f77d,_0x3e11e1]=_0x277721({'value':_0x3306a4,'text':String(_0x3306a4??'')});Object['is'](_0x41f77d['value'],_0x3306a4)||_0x3e11e1({'value':_0x3306a4,'text':String(_0x3306a4??'')});let _0x3a7b75=_0x41f77d[_0x194dec(0x209)],_0x452fcb=_0x498411=>_0x3e11e1({'value':_0x3306a4,'text':_0x498411}),_0x4bdf24=_0x1c15ec==null?void 0x0:_0x1c15ec[_0x194dec(0x4b9)];if(_0x4bdf24===_0x3f2f3b[_0x194dec(0x2e2)]){let _0x20495a=_0x3306a4===!0x0||_0x3306a4===_0x194dec(0x1be);return _0x52e710(_0x2e1096,{'type':_0x194dec(0x1c2),'variant':_0x194dec(0x1ca),'disabled':_0x439d52,'className':'univer-w-full\x20univer-justify-start','onClick':()=>_0x5335e2(!_0x20495a),'children':[_0x1af9b(_0x5e364b,{'checked':_0x20495a,'disabled':_0x439d52,'onChange':()=>void 0x0}),_0x20495a?_0x457822['t'](_0x194dec(0x3f8)):_0x457822['t'](_0x194dec(0x47d))]});}return Ra(_0x4bdf24)?_0x439d52?_0x1af9b(_0x2e1096,{'type':_0x194dec(0x1c2),'variant':'default','className':_0x194dec(0x339),'disabled':!0x0,'children':_0x8f4376(_0x3306a4==null||_0x3306a4===''?void 0x0:String(_0x3306a4))['format']('YYYY-MM-DD')}):_0x1af9b(_0x4233f7,{'className':_0x194dec(0x339),'value':_0x8f4376(_0x3306a4==null||_0x3306a4===''?void 0x0:String(_0x3306a4))[_0x194dec(0x1b4)](),'onValueChange':_0x2747d0=>_0x5335e2(_0x8f4376(_0x2747d0)[_0x194dec(0x467)](_0x194dec(0x3bf)))}):Ba(_0x1c15ec)?_0x1af9b(_0x27525a,{'className':_0x194dec(0x339),'disabled':_0x439d52,'value':Array[_0x194dec(0x1f1)](_0x3306a4)?_0x3306a4[_0x194dec(0x43f)](String):[],'options':Fa(_0x1c15ec),'onChange':_0x5335e2}):_0x4bdf24===_0x3f2f3b[_0x194dec(0x3d6)]||_0x4bdf24===_0x3f2f3b[_0x194dec(0x300)]||_0x4bdf24===_0x3f2f3b[_0x194dec(0x3f1)]?_0x1af9b(_0x8bae00,{'className':'univer-w-full','disabled':_0x439d52,'value':String(_0x3306a4??''),'options':[{'value':'','label':_0x457822['t'](_0x194dec(0x171))},...Fa(_0x1c15ec)],'onChange':_0x5335e2}):za(_0x4bdf24)?_0x1af9b(_0x4f1ee0,{'className':_0x194dec(0x339),'disabled':_0x439d52,'inputMode':'decimal','value':_0x3a7b75,'aria-invalid':_0x3a7b75!==''&&!Number['isFinite'](Number(_0x3a7b75)),'onChange':_0x54dd12=>{const _0x348526=_0x194dec;_0x452fcb(_0x54dd12),_0x54dd12===''?_0x5335e2(''):Number[_0x348526(0x2f6)](Number(_0x54dd12))&&_0x5335e2(Number(_0x54dd12));},'onBlur':()=>_0x452fcb(String(_0x3306a4??''))}):_0x1af9b(_0x4f1ee0,{'disabled':_0x439d52,'value':String(_0x3306a4??''),'placeholder':_0x457822['t'](_0x194dec(0x257)),'onChange':_0x5335e2});}function ka(_0x333e27,_0x499483){const _0x43df6b=_0x219009;return{'conjunction':(_0x333e27==null?void 0x0:_0x333e27[_0x43df6b(0x41c)])??_0x47b446['AND'],'conditions':_0x499483};}function Aa(_0x28faea,_0x533ed2){return Pa(_0x533ed2)?{'fieldId':_0x28faea['id'],'operator':_0x533ed2,'operand':Na(_0x28faea)}:{'fieldId':_0x28faea['id'],'operator':_0x533ed2};}function ja(_0x5783ab,_0x515960,_0x2e9728){const _0x15e987=_0x219009;return ka(_0x5783ab,((_0x5783ab==null?void 0x0:_0x5783ab['conditions'])??[])[_0x15e987(0x43f)]((_0x12f0c8,_0x3cab25)=>_0x3cab25===_0x515960?{..._0x12f0c8,..._0x2e9728}:_0x12f0c8));}function Ma(_0x384fef){const _0x53a436=_0x219009;let _0x54deb4=[_0x58020d[_0x53a436(0x17b)],_0x58020d['IS_NOT_EMPTY']];switch(_0x384fef==null?void 0x0:_0x384fef[_0x53a436(0x4b9)]){case _0x3f2f3b[_0x53a436(0x327)]:case _0x3f2f3b[_0x53a436(0x271)]:case _0x3f2f3b['Progress']:case _0x3f2f3b[_0x53a436(0x176)]:return[_0x58020d['IS'],_0x58020d[_0x53a436(0x3fe)],_0x58020d[_0x53a436(0x3ff)],_0x58020d[_0x53a436(0x410)],..._0x54deb4];case _0x3f2f3b[_0x53a436(0x1ed)]:case _0x3f2f3b[_0x53a436(0x1a7)]:case _0x3f2f3b[_0x53a436(0x212)]:return[_0x58020d['IS'],_0x58020d['IS_NOT'],_0x58020d[_0x53a436(0x400)],_0x58020d['AFTER'],..._0x54deb4];case _0x3f2f3b[_0x53a436(0x2e2)]:return[_0x58020d['IS'],_0x58020d[_0x53a436(0x3fe)]];default:return[_0x58020d['IS'],_0x58020d['IS_NOT'],_0x58020d[_0x53a436(0x463)],_0x58020d[_0x53a436(0x25e)],..._0x54deb4];}}function Na(_0x41196c){const _0x2e8a87=_0x219009;return _0x41196c?_0x41196c[_0x2e8a87(0x4b9)]===_0x3f2f3b[_0x2e8a87(0x2e2)]?!0x1:Ra(_0x41196c[_0x2e8a87(0x4b9)])?_0x8f4376()[_0x2e8a87(0x467)](_0x2e8a87(0x3bf)):Ba(_0x41196c)?[]:'':'';}function Pa(_0x199ff2){const _0x3e2148=_0x219009;return _0x199ff2!==_0x58020d[_0x3e2148(0x17b)]&&_0x199ff2!==_0x58020d[_0x3e2148(0x406)];}function Fa(_0x313354){const _0xdba25f=_0x219009;var _0x26bb25;return(Array[_0xdba25f(0x1f1)](_0x313354==null||(_0x26bb25=_0x313354[_0xdba25f(0x2dc)])==null?void 0x0:_0x26bb25['options'])?_0x313354['config'][_0xdba25f(0x3d0)]:[])['map']((_0x375ace,_0x2a753a)=>{const _0x208b73=_0xdba25f;if(typeof _0x375ace==_0x208b73(0x380))return{'label':_0x375ace,'value':_0x375ace};if(!Ia(_0x375ace))return{'label':String(_0x2a753a+0x1),'value':String(_0x2a753a+0x1)};let _0x4bf735=_0x375ace,_0x4d75f4=String(_0x4bf735[_0x208b73(0x3aa)]??_0x4bf735['id']??_0x2a753a+0x1),_0x47c894=String(_0x4bf735['id']??_0x4d75f4);return{'label':_0x4d75f4,'value':/^opt-\d+$/[_0x208b73(0x369)](_0x47c894)?_0x4d75f4:_0x47c894};});}function Ia(_0x47b7c8){const _0x53b5eb=_0x219009;return typeof _0x47b7c8==_0x53b5eb(0x43c)&&!!_0x47b7c8;}function La(_0x24156e,_0x44481e,_0x27f197){const _0x7da6f=_0x219009;let _0x12921c=JSON[_0x7da6f(0x18a)](_0x44481e);return _0x12921c+'-'+_0x24156e['slice'](0x0,_0x27f197)[_0x7da6f(0x498)](_0x147b36=>JSON[_0x7da6f(0x18a)](_0x147b36)===_0x12921c)[_0x7da6f(0x348)];}function Ra(_0x198748){const _0x216741=_0x219009;return _0x198748===_0x3f2f3b[_0x216741(0x1ed)]||_0x198748===_0x3f2f3b[_0x216741(0x1a7)]||_0x198748===_0x3f2f3b['UpdatedAt'];}function za(_0x178e6b){const _0x15c64e=_0x219009;return _0x178e6b===_0x3f2f3b['Number']||_0x178e6b===_0x3f2f3b['Currency']||_0x178e6b===_0x3f2f3b[_0x15c64e(0x274)]||_0x178e6b===_0x3f2f3b[_0x15c64e(0x176)];}function Ba(_0x23ee80){const _0x3e6711=_0x219009;var _0x42ac13;return(_0x23ee80==null?void 0x0:_0x23ee80[_0x3e6711(0x4b9)])===_0x3f2f3b[_0x3e6711(0x1f7)]||(_0x23ee80==null?void 0x0:_0x23ee80[_0x3e6711(0x4b9)])===_0x3f2f3b[_0x3e6711(0x300)]||(_0x23ee80==null?void 0x0:_0x23ee80[_0x3e6711(0x4b9)])===_0x3f2f3b['Person']&&((_0x42ac13=_0x23ee80[_0x3e6711(0x2dc)])==null?void 0x0:_0x42ac13[_0x3e6711(0x240)])===!0x0;}function Va({base:_0x1733f6,chartRuntime:_0xa0da5f,onChange:_0x26f75e,onClose:_0x485741,onSelectBackgroundImage:_0xcd50f,onSelectImage:_0x434da5,unitId:_0x2415b0,widget:_0x48d446}){const _0xc9c9d9=_0x219009;let _0x5903f5=_0xb3eab7(_0x4a773c),_0x186490=_0xb3eab7(_0x51de0a),_0x5680a3=_0x1733f6['getSnapshot'](),_0xc40e26=_0xc9c9d9(0x35c)in _0x48d446?_0x5680a3['tables'][_0x48d446[_0xc9c9d9(0x35c)]]:void 0x0,_0xa3b438=_0x48d446[_0xc9c9d9(0x4b9)]===_0xf5049a[_0xc9c9d9(0x1a1)]?_0xc40e26==null?void 0x0:_0xc40e26[_0xc9c9d9(0x2ea)][_0x48d446[_0xc9c9d9(0x4c1)]]:void 0x0,_0x1a42d3=_0x186490['t'](Ja(_0x48d446));return _0x52e710(_0xc9c9d9(0x2a1),{'data-dashboard-inspector':!0x0,'className':_0xc9c9d9(0x332),'children':[_0x52e710(_0xc9c9d9(0x401),{'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':[_0x1af9b('h3',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0x1a42d3}),_0x1af9b(_0x2e1096,{'type':_0xc9c9d9(0x1c2),'size':_0xc9c9d9(0x43e),'variant':_0xc9c9d9(0x209),'aria-label':_0x186490['t']('bases-dashboard-ui.dashboardInspector.close'),'onClick':_0x485741,'children':_0x1af9b(_0x68937f,{})})]}),_0x48d446[_0xc9c9d9(0x4b9)]===_0xf5049a[_0xc9c9d9(0x1a1)]&&(qa(_0xa3b438)&&_0xa0da5f?_0x1af9b(ba,{'runtime':_0xa0da5f,'sourceChart':_0xa3b438[_0xc9c9d9(0x2dc)]['chart'],'sourceName':((_0xc40e26==null?void 0x0:_0xc40e26[_0xc9c9d9(0x3aa)])??'')+_0xc9c9d9(0x2c6)+_0xa3b438[_0xc9c9d9(0x3aa)],'widget':_0x48d446,'onChange':_0x26f75e,'onEditData':()=>{const _0x3ed9e0=_0xc9c9d9;_0x5903f5[_0x3ed9e0(0x43d)](_0x1939e2['id'],{'unitId':_0x2415b0,'tableId':_0x48d446['tableId'],'viewId':_0x48d446['pivotViewId']})['catch'](()=>void 0x0);}}):_0x1af9b(Ga,{'message':qa(_0xa3b438)?_0x186490['t']('bases-dashboard-ui.dashboardInspector.loading'):_0x186490['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})),_0x48d446[_0xc9c9d9(0x4b9)]===_0xf5049a[_0xc9c9d9(0x219)]&&_0x1af9b(Ca,{'base':_0x1733f6,'widget':_0x48d446,'onChange':_0x26f75e,'onSelectBackgroundImage':_0xcd50f}),_0x48d446[_0xc9c9d9(0x4b9)]===_0xf5049a[_0xc9c9d9(0x44b)]&&_0x1af9b(Ua,{'base':_0x1733f6,'onChange':_0x26f75e,'widget':_0x48d446}),_0x48d446[_0xc9c9d9(0x4b9)]===_0xf5049a['Text']&&_0x1af9b(Wa,{'onChange':_0x26f75e,'widget':_0x48d446}),_0x48d446[_0xc9c9d9(0x4b9)]===_0xf5049a['Image']&&_0x1af9b(Ha,{'onChange':_0x26f75e,'onSelectImage':_0x434da5,'widget':_0x48d446})]});}function Ha({onChange:_0x169f48,onSelectImage:_0x3527c7,widget:_0xfd7bbd}){const _0xe25508=_0x219009;let _0x32cee7=_0xb3eab7(_0x51de0a);return _0x52e710('div',{'className':_0xe25508(0x2f8),'children':[_0x52e710(_0x2e1096,{'className':'univer-w-full','onClick':()=>_0x3527c7()['then'](_0x56f371=>_0x56f371&&_0x169f48({..._0xfd7bbd,'source':_0x56f371[_0xe25508(0x252)],'sourceType':_0x56f371[_0xe25508(0x33f)],'alt':_0x56f371['name']}))['catch'](()=>void 0x0),'children':[_0x1af9b(_0x5a5e3d,{}),_0x32cee7['t'](_0xe25508(0x27a))]}),_0x52e710(_0xe25508(0x1d6),{'className':_0xe25508(0x359),'children':[_0x1af9b('span',{'children':_0x32cee7['t'](_0xe25508(0x3ef))}),_0x1af9b(_0x35fc77,{'items':[{'value':_0xe25508(0x3de),'label':_0x32cee7['t'](_0xe25508(0x480))},{'value':_0xe25508(0x3b5),'label':_0x32cee7['t'](_0xe25508(0x4a1))},{'value':'original','label':_0x32cee7['t'](_0xe25508(0x350))}],'value':_0xfd7bbd['displayMode']??_0xe25508(0x3de),'onChange':_0x25854a=>_0x169f48({..._0xfd7bbd,'displayMode':_0x25854a})['catch'](()=>void 0x0)})]})]});}function Ua({base:_0x566a81,onChange:_0x48afb7,widget:_0x4bff24}){const _0x4f905c=_0x219009;let _0x5cce84=_0x566a81[_0x4f905c(0x206)]()[_0x4f905c(0x44e)][_0x4bff24['tableId']],_0x3025c0=_0x5cce84==null?void 0x0:_0x5cce84[_0x4f905c(0x3af)]['find'](_0x4a281f=>_0x5cce84[_0x4f905c(0x2ea)][_0x4a281f]),_0x10c64f=_0x3025c0?_0x5cce84==null?void 0x0:_0x5cce84['views'][_0x3025c0]:void 0x0,_0x2c9d56=_0x5cce84&&_0x10c64f?_0xfb2dac(_0x5cce84,_0x10c64f):[];return _0x1af9b(Da,{'fields':_0x2c9d56,'filter':_0x4bff24[_0x4f905c(0x498)],'onChange':_0x1ef1a7=>_0x48afb7({..._0x4bff24,'filter':_0x1ef1a7})['catch'](()=>void 0x0),'onClear':()=>_0x48afb7({..._0x4bff24,'filter':null})[_0x4f905c(0x2c9)](()=>void 0x0)});}function Wa({onChange:_0x400d18,widget:_0x1329dc}){const _0x45d6c7=_0x219009;let _0x3bf782=_0xb3eab7(_0x51de0a),_0x1c3c13=_0xb3eab7(_0x52f5e2),_0x5be31f=_0x97415f(()=>_0x1c3c13[_0x45d6c7(0x341)],_0x1c3c13[_0x45d6c7(0x2ed)](),!0x1,[_0x1c3c13]),_0x52be49=Hr(_0x1329dc),_0x434c76=_0x4be238=>_0x400d18({..._0x1329dc,'appearance':{..._0x52be49,..._0x4be238}})[_0x45d6c7(0x2c9)](()=>void 0x0);return _0x52e710(_0x45d6c7(0x173),{'className':_0x45d6c7(0x3f2),'children':[_0x1af9b(_0x439fc9,{'defaultValue':Ur(_0x1329dc['document']),'rows':0x8,'onBlur':_0x120604=>_0x400d18({..._0x1329dc,'document':Wr(_0x1329dc[_0x45d6c7(0x295)],_0x120604[_0x45d6c7(0x40c)][_0x45d6c7(0x286)])})[_0x45d6c7(0x2c9)](()=>void 0x0)}),_0x1af9b(_0x3b005c,{'emptyLabel':_0x3bf782['t'](_0x45d6c7(0x435)),'label':_0x3bf782['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x5be31f[_0x45d6c7(0x3bc)][0x0],'resetLabel':_0x3bf782['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x52be49[_0x45d6c7(0x34d)]??null,'onChange':_0x4d066a=>_0x434c76({'backgroundColor':_0x4d066a??void 0x0})}),_0x1af9b(_0x3b005c,{'emptyLabel':_0x3bf782['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x3bf782['t'](_0x45d6c7(0x3dc)),'pickerFallbackValue':_0x5be31f['gray'][0x3e8],'resetLabel':_0x3bf782['t'](_0x45d6c7(0x477)),'value':_0x52be49[_0x45d6c7(0x321)]??null,'onChange':_0x1c368d=>_0x434c76({'textColor':_0x1c368d??void 0x0})}),_0x1af9b(Ka,{'label':_0x3bf782['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x1af9b(_0x35fc77,{'items':[{'value':'left','label':_0x3bf782['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':_0x45d6c7(0x403),'label':_0x3bf782['t'](_0x45d6c7(0x302))},{'value':'right','label':_0x3bf782['t'](_0x45d6c7(0x2fd))}],'value':_0x52be49[_0x45d6c7(0x3a9)],'onChange':_0x5b172f=>_0x434c76({'alignment':_0x5b172f})})}),_0x52e710(Ka,{'label':_0x3bf782['t'](_0x45d6c7(0x2a7)),'children':[_0x1af9b(_0x35fc77,{'items':[{'value':_0x45d6c7(0x2a9),'label':_0x3bf782['t'](_0x45d6c7(0x45e))},{'value':_0x45d6c7(0x492),'label':_0x3bf782['t'](_0x45d6c7(0x326))}],'value':_0x52be49[_0x45d6c7(0x4b2)],'onChange':_0x3870e7=>_0x434c76({'fontSizeMode':_0x3870e7})}),_0x52be49['fontSizeMode']===_0x45d6c7(0x492)&&_0x1af9b(_0x770794,{'className':_0x45d6c7(0x488),'min':0xa,'max':0x78,'value':_0x52be49[_0x45d6c7(0x25d)],'onChange':_0x447b28=>_0x434c76({'fontSize':_0x447b28??0x12,'fontSizeMode':_0x45d6c7(0x492)})})]})]});}function Ga({message:_0x2afd92}){const _0x5e7987=_0x219009;return _0x1af9b(_0x5e7987(0x173),{'className':_0x5e7987(0x23b),'children':_0x2afd92});}function Ka({children:_0x24155d,label:_0x98a673}){const _0x332a0f=_0x219009;return _0x52e710(_0x332a0f(0x173),{'role':_0x332a0f(0x1a0),'aria-':!0x0,'className':_0x332a0f(0x359),'children':[_0x1af9b(_0x332a0f(0x46c),{'children':_0x98a673}),_0x24155d]});}function qa(_0x19f048){const _0x31be8e=_0x219009;return(_0x19f048==null?void 0x0:_0x19f048[_0x31be8e(0x4b9)])===_0x4ec201[_0x31be8e(0x223)]&&typeof _0x19f048[_0x31be8e(0x2dc)]=='object'&&_0x19f048[_0x31be8e(0x2dc)]!==null&&_0x31be8e(0x3b3)in _0x19f048[_0x31be8e(0x2dc)]&&_0x31be8e(0x2fc)in _0x19f048['config'];}function Ja(_0x57c019){const _0x160e13=_0x219009;switch(_0x57c019[_0x160e13(0x4b9)]){case _0xf5049a[_0x160e13(0x1a1)]:return'bases-dashboard-ui.dashboard.pivotChart';case _0xf5049a[_0x160e13(0x44b)]:return _0x160e13(0x1fb);case _0xf5049a[_0x160e13(0x42d)]:return _0x160e13(0x299);case _0xf5049a[_0x160e13(0x20c)]:return _0x160e13(0x1d3);case _0xf5049a[_0x160e13(0x219)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function Ya({onDelete:_0x2c1752,onEdit:_0x451b35}){const _0x4b3839=_0x219009;let _0x2d5250=_0xb3eab7(_0x51de0a),_0x24d20b=_0x2d5250['t'](_0x4b3839(0x2e1)),_0x2bf8ce=_0x2d5250['t'](_0x4b3839(0x354)),_0x11fd28=_0x2d5250['t'](_0x4b3839(0x2b5));return _0x1af9b(_0x2049bb,{'items':[{'type':'item','children':_0x52e710('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1af9b(_0x579511,{'className':'univer-size-4','aria-hidden':_0x4b3839(0x1be)}),_0x1af9b(_0x4b3839(0x46c),{'children':_0x24d20b})]}),'onSelect':_0x451b35},{'type':_0x4b3839(0x31b)},{'type':_0x4b3839(0x1f9),'variant':_0x4b3839(0x1b8),'children':_0x52e710(_0x4b3839(0x46c),{'className':_0x4b3839(0x4d0),'children':[_0x1af9b(_0x140734,{'className':'univer-size-4','aria-hidden':_0x4b3839(0x1be)}),_0x1af9b('span',{'children':_0x2bf8ce})]}),'onSelect':_0x2c1752}],'children':_0x1af9b(_0x2e1096,{'type':_0x4b3839(0x1c2),'size':_0x4b3839(0x43e),'variant':_0x4b3839(0x209),'title':_0x11fd28,'aria-label':_0x11fd28,'className':'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','children':_0x1af9b(_0x2ae422,{'className':_0x4b3839(0x2ba),'aria-hidden':_0x4b3839(0x1be)})})});}function Xa({dashboardId:_0x44f9ed,presentation:_0x3c91c7=!0x1,unitId:_0x544037}){const _0x1de5b5=_0x219009;let _0x4fe935=_0xb3eab7(_0x4a773c),_0x2a9155=_0xb3eab7(_0x2b6ea6),_0xb51468=_0xb3eab7(_0xc6de23),_0x5265d0=_0xb3eab7(_0x144775),_0xa5cb7e=_0xb3eab7(_0x51de0a),_0x4b0737=_0xb3eab7(_0x24d6a6),_0x481228=_0xb3eab7(_0x3b1640),_0x2b38d4=_0x52068e(null),[_0x4242a4,_0x1a62be]=_0x277721(!0x1),[_0x3c32a1,_0x410d17]=_0x277721(),[_0x3334e8,_0x565030]=_0x277721(!0x1),[_0x5d120a,_0x2fb087]=_0x277721(()=>new Map()),_0x4111a8=_0x547d95((_0x2df2ca,_0x288499)=>{_0x2fb087(_0x2e1738=>{const _0x3bbf4e=_0x4abf;let _0x4dfe1d=new Map(_0x2e1738);return _0x288499?_0x4dfe1d[_0x3bbf4e(0x217)](_0x2df2ca,_0x288499):_0x4dfe1d['delete'](_0x2df2ca),_0x4dfe1d;});},[]),_0x2c3bd1=_0x97415f(()=>_0x4b0737[_0x1de5b5(0x3a3)][_0x1de5b5(0x20d)](_0x3dd263(()=>_0x4b0737[_0x1de5b5(0x4ca)](_0x544037,_0x44f9ed))),_0x4b0737[_0x1de5b5(0x4ca)](_0x544037,_0x44f9ed),!0x1,[_0x44f9ed,_0x4b0737,_0x544037]),_0x4cca61=_0x5265d0[_0x1de5b5(0x225)](_0x544037,_0x160ed0['UNIVER_BASE']),_0x173f40=_0x97415f(()=>_0x481228[_0x1de5b5(0x330)],{'undos':0x0,'redos':0x0},!0x1,[_0x481228]),_0x9f8b34=vr(_0x544037,_0x44f9ed);if(_0x2153d6(()=>{const _0x2120ee=_0x1de5b5;_0x5265d0[_0x2120ee(0x3e2)](_0x544037),_0x5265d0['focusUnit'](_0x544037);},[_0x5265d0,_0x544037]),_0x2153d6(()=>{const _0x1ee450=_0x1de5b5;let _0x13479c=_0x2b38d4['current'],_0x358f6a=_0x13479c==null?void 0x0:_0x13479c['ownerDocument'];if(!_0x13479c||!_0x358f6a)return;let _0xb0aa13=()=>_0x565030(_0x358f6a[_0x1ee450(0x4bc)]===_0x358f6a[_0x1ee450(0x22d)]),_0x3f5c83=_0x29520b=>{const _0x2dbe97=_0x1ee450;_0x29520b[_0x2dbe97(0x2c1)]==='Escape'&&!_0x29520b[_0x2dbe97(0x2e6)]&&_0x358f6a[_0x2dbe97(0x4bc)]===_0x358f6a[_0x2dbe97(0x22d)]&&_0x358f6a[_0x2dbe97(0x415)]()[_0x2dbe97(0x2c9)](_0xb0aa13);};return _0x358f6a[_0x1ee450(0x371)](_0x1ee450(0x24c),_0xb0aa13),_0x358f6a[_0x1ee450(0x371)](_0x1ee450(0x22b),_0x3f5c83),()=>{const _0x53ec65=_0x1ee450;_0x358f6a['removeEventListener'](_0x53ec65(0x24c),_0xb0aa13),_0x358f6a[_0x53ec65(0x1b9)](_0x53ec65(0x22b),_0x3f5c83);};},[]),!_0x2c3bd1||!_0x4cca61)return null;let _0x3d02a2=_0xd00799=>_0x4fe935[_0x1de5b5(0x43d)](_0x53172b['id'],{'unitId':_0x544037,'dashboardId':_0x44f9ed,'widget':_0xd00799})[_0x1de5b5(0x2c9)](()=>void 0x0),_0x39b17e=(_0x3657a0,_0x4389b8,_0x522f9d)=>{const _0x17799b=_0x1de5b5;let _0x5edd1e=Math['max'](0x0,..._0x2c3bd1[_0x17799b(0x4c5)][_0x17799b(0x1ae)](_0x52ed4f=>{const _0x18fe6a=_0x17799b;var _0x4e26f1;let _0x57fc14=(_0x4e26f1=_0x2c3bd1['widgets'][_0x52ed4f])==null?void 0x0:_0x4e26f1[_0x18fe6a(0x16e)];return _0x57fc14?[_0x57fc14[_0x18fe6a(0x38b)]+_0x57fc14[_0x18fe6a(0x224)]]:[];})),_0x56d542=_0x17799b(0x41d)+_0x3dac7b(0x8),_0x1923a9={'column':0x0,'row':_0x5edd1e,'columnSpan':_0x4389b8,'rowSpan':_0x522f9d};switch(_0x3657a0[_0x17799b(0x4b9)]){case _0xf5049a[_0x17799b(0x1a1)]:return _0x3d02a2({..._0x3657a0,'id':_0x56d542,'layout':_0x1923a9});case _0xf5049a[_0x17799b(0x44b)]:return _0x3d02a2({..._0x3657a0,'id':_0x56d542,'layout':_0x1923a9});case _0xf5049a[_0x17799b(0x42d)]:return _0x3d02a2({..._0x3657a0,'id':_0x56d542,'layout':_0x1923a9});case _0xf5049a[_0x17799b(0x20c)]:return _0x3d02a2({..._0x3657a0,'id':_0x56d542,'layout':_0x1923a9});case _0xf5049a[_0x17799b(0x219)]:return _0x3d02a2({..._0x3657a0,'id':_0x56d542,'layout':_0x1923a9});}},_0x50df44=_0x4cca61[_0x1de5b5(0x206)](),_0x5087ad=_0x50df44[_0x1de5b5(0x2aa)]['flatMap'](_0x5012bd=>{const _0x134496=_0x1de5b5;let _0x1097ea=_0x50df44[_0x134496(0x44e)][_0x5012bd];if(!_0x1097ea)return[];let _0x241677=_0x1097ea['viewOrder'][_0x134496(0x1ae)](_0x5c9b02=>{const _0x216a37=_0x134496;let _0x496eef=_0x1097ea['views'][_0x5c9b02];return io(_0x496eef)?[{'type':_0x216a37(0x1f9),'children':_0x496eef[_0x216a37(0x3aa)],'onSelect':()=>_0x39b17e({'type':_0xf5049a[_0x216a37(0x1a1)],'tableId':_0x5012bd,'pivotViewId':_0x5c9b02,'chart':{..._0x496eef[_0x216a37(0x2dc)][_0x216a37(0x2fc)]}},0x6,0xa)}]:[];});return[{'type':_0x134496(0x390),'children':_0x1097ea[_0x134496(0x3aa)],'options':[..._0x241677,..._0x241677[_0x134496(0x348)]?[{'type':_0x134496(0x31b)}]:[],{'type':_0x134496(0x1f9),'children':_0xa5cb7e['t'](_0x134496(0x1fb)),'onSelect':()=>_0x39b17e({'type':_0xf5049a[_0x134496(0x44b)],'tableId':_0x5012bd,'filter':null},0x6,0x8)}]}];}),_0x5b5d2b=[..._0x5087ad,..._0x5087ad[_0x1de5b5(0x348)]?[{'type':_0x1de5b5(0x31b)}]:[],{'type':_0x1de5b5(0x1f9),'children':_0xa5cb7e['t'](_0x1de5b5(0x299)),'onSelect':()=>_0x39b17e({'type':_0xf5049a['Text'],'document':eo()},0x4,0x6)},{'type':'item','children':_0xa5cb7e['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>to(_0x2a9155)[_0x1de5b5(0x3ab)](_0x3071b9=>_0x3071b9&&_0x39b17e({'type':_0xf5049a['Image'],'source':_0x3071b9[_0x1de5b5(0x252)],'sourceType':_0x3071b9[_0x1de5b5(0x33f)],'alt':_0x3071b9['name'],'displayMode':_0x1de5b5(0x3de)},0x4,0x6))},{'type':_0x1de5b5(0x1f9),'children':_0xa5cb7e['t'](_0x1de5b5(0x35d)),'onSelect':()=>{const _0x398aff=_0x1de5b5;let _0x18662e=_0x50df44['tableOrder']['find'](_0x1af195=>_0x50df44['tables'][_0x1af195]);_0x18662e&&_0x39b17e({'type':_0xf5049a[_0x398aff(0x219)],'tableId':_0x18662e,'shapeType':_0x5039fb[_0x398aff(0x313)],'shapeData':_0x4027ac(),'description':_0xa5cb7e['t'](_0x398aff(0x35d))},0x4,0x6);}}],_0xace698=_0x3c32a1?_0x2c3bd1[_0x1de5b5(0x4a2)][_0x3c32a1]:void 0x0,_0x4d1a7e=async()=>{const _0x408dda=_0x1de5b5;let _0x3e5b45=_0x2b38d4[_0x408dda(0x2bd)];if(!_0x3e5b45)return;let _0x4f5f64=_0x3e5b45['ownerDocument'];_0x4f5f64[_0x408dda(0x4bc)]===_0x4f5f64[_0x408dda(0x22d)]?await _0x4f5f64['exitFullscreen']():await _0x4f5f64[_0x408dda(0x22d)][_0x408dda(0x42e)]();},_0x488d9a=_0x3c91c7||_0x3334e8,_0x5dae0b=_0x9f8b34&&!_0x488d9a;return _0x52e710(_0x1de5b5(0x173),{'ref':_0x2b38d4,'className':_0x1de5b5(0x405)+(_0x3334e8?_0x1de5b5(0x1e2):'univer-relative\x20univer-z-10')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[!_0x488d9a&&_0x52e710(_0x1de5b5(0x401),{'className':_0x1de5b5(0x3b2),'children':[_0x1af9b(_0x4c651f,{'className':_0x1de5b5(0x3c7)}),_0x1af9b('h2',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0x2c3bd1[_0x1de5b5(0x3aa)]}),_0x1af9b(_0x520a27,{'target':{'unitId':_0x544037,'objectId':_0x5d041f(_0x44f9ed),'objectType':_0x2e13ef[_0x1de5b5(0x38c)]},'name':_0x2c3bd1['name'],'commandId':_0x54bb96['id'],'exists':()=>!!_0x4b0737[_0x1de5b5(0x4ca)](_0x544037,_0x44f9ed)},_0x544037+'/'+_0x44f9ed),_0x1af9b(_0x782d5,{'unitId':_0x544037}),_0x1af9b(_0x2e1096,{'type':_0x1de5b5(0x1c2),'size':_0x1de5b5(0x43e),'variant':'text','aria-label':_0xa5cb7e['t'](_0x1de5b5(0x273)),'disabled':!_0x9f8b34||_0x173f40['undos']===0x0,'onClick':()=>_0x4fe935['executeCommand'](_0x3d9772['id'])[_0x1de5b5(0x2c9)](()=>void 0x0),'children':_0x1af9b(_0x44b3b1,{})}),_0x1af9b(_0x2e1096,{'type':_0x1de5b5(0x1c2),'size':_0x1de5b5(0x43e),'variant':'text','aria-label':_0xa5cb7e['t']('bases-dashboard-ui.dashboard.redo'),'disabled':!_0x9f8b34||_0x173f40['redos']===0x0,'onClick':()=>_0x4fe935[_0x1de5b5(0x43d)](_0x372344['id'])[_0x1de5b5(0x2c9)](()=>void 0x0),'children':_0x1af9b(_0x21d4d7,{})}),_0x1af9b(_0x2e1096,{'type':'button','size':'small','variant':_0x1de5b5(0x209),'aria-label':_0xa5cb7e['t'](_0x1de5b5(0x3e4)),'onClick':()=>_0x4d1a7e()[_0x1de5b5(0x2c9)](()=>void 0x0),'children':_0x1af9b(_0x19f77a,{})}),_0x1af9b(_0x2049bb,{'items':_0x5b5d2b,'children':_0x52e710(_0x2e1096,{'variant':'primary','disabled':!_0x9f8b34,'children':[_0x1af9b(_0x5a5e3d,{}),_0xa5cb7e['t'](_0x1de5b5(0x352))]})})]}),_0x52e710(_0x1de5b5(0x173),{'className':_0x1de5b5(0x3db),'children':[_0x1af9b('div',{'className':_0x1de5b5(0x22a),'children':_0x1af9b(da,{'dashboard':_0x2c3bd1,'dragLabel':_0xa5cb7e['t'](_0x1de5b5(0x2cd)),'editable':_0x5dae0b,'resizeLabel':_0xa5cb7e['t'](_0x1de5b5(0x468)),'widgetLabel':_0x2225ee=>_0xa5cb7e['t'](ro(_0x2225ee[_0x1de5b5(0x4b9)])),'selectedWidgetId':_0x5dae0b?_0x3c32a1:void 0x0,'onSelectWidget':_0x5dae0b?_0x19d8c7=>{_0x410d17(_0x19d8c7),_0x19d8c7||_0x1a62be(!0x1);}:void 0x0,'onLayoutsCommit':_0x34d234=>{const _0x530262=_0x1de5b5;let _0x1fa0f9={..._0x2c3bd1[_0x530262(0x4a2)]};_0x34d234[_0x530262(0x2a3)]((_0x2c279b,_0x387850)=>{let _0x150cb4=_0x1fa0f9[_0x387850];_0x150cb4&&(_0x1fa0f9[_0x387850]={..._0x150cb4,'layout':_0x2c279b});}),_0x4fe935[_0x530262(0x43d)](_0x570003['id'],{'unitId':_0x544037,'dashboard':{..._0x2c3bd1,'widgets':_0x1fa0f9}})['catch'](()=>void 0x0);},'renderWidget':_0x4c7757=>_0x1af9b(Za,{'base':_0x4cca61,'dashboard':_0x2c3bd1,'unitId':_0x544037,'widget':_0x4c7757,'onChange':_0x3d02a2,'onChartRuntimeChange':_0x4111a8}),'renderWidgetActions':_0x5be0bd=>_0x1af9b(Ya,{'onEdit':()=>{_0x410d17(_0x5be0bd['id']),_0x1a62be(!0x0);},'onDelete':()=>{const _0x5006d1=_0x1de5b5;_0x3c32a1===_0x5be0bd['id']&&(_0x410d17(void 0x0),_0x1a62be(!0x1)),_0x4fe935[_0x5006d1(0x43d)](_0x451a8b['id'],{'unitId':_0x544037,'dashboardId':_0x44f9ed,'widgetId':_0x5be0bd['id']})[_0x5006d1(0x2c9)](()=>void 0x0);}})})}),_0x5dae0b&&_0x4242a4&&_0xace698&&_0x1af9b(Va,{'base':_0x4cca61,'chartRuntime':_0x5d120a[_0x1de5b5(0x411)](_0xace698['id']),'unitId':_0x544037,'widget':_0xace698,'onChange':_0x3d02a2,'onClose':()=>_0x1a62be(!0x1),'onSelectBackgroundImage':()=>no(_0xb51468),'onSelectImage':()=>to(_0x2a9155)})]})]});}function Za({base:_0x51c8d7,dashboard:_0x255a5e,onChange:_0x10e0a2,onChartRuntimeChange:_0x11acba,unitId:_0x504488,widget:_0x4002d6}){const _0x576336=_0x219009;let _0xa4fa13=_0x2a7f67(()=>_0x255a5e[_0x576336(0x4c5)][_0x576336(0x1ae)](_0x554522=>{const _0x3b1364=_0x576336;let _0x35f663=_0x255a5e['widgets'][_0x554522];return(_0x35f663==null?void 0x0:_0x35f663[_0x3b1364(0x4b9)])===_0xf5049a['TableFilter']&&_0x35f663[_0x3b1364(0x35c)]===(_0x3b1364(0x35c)in _0x4002d6?_0x4002d6[_0x3b1364(0x35c)]:'')&&_0x35f663['filter']?[_0x35f663[_0x3b1364(0x498)]]:[];}),[_0x255a5e,_0x4002d6]);switch(_0x4002d6[_0x576336(0x4b9)]){case _0xf5049a[_0x576336(0x1a1)]:return _0x1af9b(zr,{'filters':_0xa4fa13,'unitId':_0x504488,'widget':_0x4002d6,'onRuntimeChange':_0x11acba});case _0xf5049a[_0x576336(0x44b)]:return _0x1af9b(Ea,{'fields':Qa(_0x51c8d7,_0x4002d6[_0x576336(0x35c)]),'filter':_0x4002d6[_0x576336(0x498)],'onChange':_0x43272c=>_0x10e0a2({..._0x4002d6,'filter':_0x43272c})[_0x576336(0x2c9)](()=>void 0x0)});case _0xf5049a['Text']:return _0x1af9b(Gr,{'widget':_0x4002d6});case _0xf5049a[_0x576336(0x20c)]:return _0x1af9b($a,{'widget':_0x4002d6});case _0xf5049a['FormulaShape']:return _0x1af9b(kr,{'dashboardId':_0x255a5e['id'],'unitId':_0x504488,'widget':_0x4002d6});}}function Qa(_0xf0eb58,_0xadbc17){const _0x51fdac=_0x219009;let _0x503942=_0xf0eb58[_0x51fdac(0x206)]()[_0x51fdac(0x44e)][_0xadbc17],_0x3d0a4c=_0x503942==null?void 0x0:_0x503942[_0x51fdac(0x3af)][_0x51fdac(0x3ae)](_0x1bc978=>_0x503942[_0x51fdac(0x2ea)][_0x1bc978]),_0x571c6a=_0x3d0a4c?_0x503942==null?void 0x0:_0x503942[_0x51fdac(0x2ea)][_0x3d0a4c]:void 0x0;return _0x503942&&_0x571c6a?_0xfb2dac(_0x503942,_0x571c6a):[];}function $a({widget:_0x376cbc}){const _0x20480b=_0x219009;let _0x14fe41=_0xb3eab7(_0x2b6ea6),[_0x3afe83,_0x5acadb]=_0x277721(_0x376cbc[_0x20480b(0x33f)]===_0x55ad71['UUID']?'':_0x376cbc[_0x20480b(0x252)]);return _0x2153d6(()=>{const _0x4058f0=_0x20480b;let _0x898ac0=!0x0;return _0x14fe41[_0x4058f0(0x49e)](_0x376cbc[_0x4058f0(0x252)],_0x376cbc[_0x4058f0(0x33f)])['then'](_0x5c3769=>{_0x898ac0&&_0x5acadb(_0x5c3769);})[_0x4058f0(0x2c9)](()=>void 0x0),()=>{_0x898ac0=!0x1;};},[_0x14fe41,_0x376cbc['source'],_0x376cbc[_0x20480b(0x33f)]]),_0x3afe83?_0x1af9b(_0x20480b(0x173),{'role':_0x376cbc[_0x20480b(0x192)]?_0x20480b(0x397):void 0x0,'aria-label':_0x376cbc[_0x20480b(0x192)]||void 0x0,'data-dashboard-image':_0x376cbc['id'],'className':_0x20480b(0x48d),'style':br(_0x3afe83,_0x376cbc[_0x20480b(0x343)])}):null;}function eo(){const _0x154f8d=_0x219009;let _0x48146a=_0x18fe69(new Set());return{'id':_0x154f8d(0x298)+_0x3dac7b(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x48146a}]},'documentStyle':{}};}function to(_0x1cd28d){return new Promise(_0x4478bf=>{const _0x3b5715=_0x4abf;let _0x225338=document[_0x3b5715(0x314)](_0x3b5715(0x185));_0x225338[_0x3b5715(0x4b9)]='file',_0x225338[_0x3b5715(0x2da)]=_0x3b5715(0x363),_0x225338[_0x3b5715(0x371)](_0x3b5715(0x29e),()=>{const _0x73f6c4=_0x3b5715;var _0x44b204;let _0x4949f4=(_0x44b204=_0x225338[_0x73f6c4(0x338)])==null?void 0x0:_0x44b204[0x0];_0x4949f4?_0x1cd28d[_0x73f6c4(0x484)](_0x4949f4)['then'](_0x246593=>{const _0x22eb08=_0x73f6c4;!_0x246593[_0x22eb08(0x252)]||_0x246593[_0x22eb08(0x33f)]===void 0x0?_0x4478bf(null):_0x4478bf({'name':_0x246593[_0x22eb08(0x3aa)],'source':_0x246593[_0x22eb08(0x252)],'sourceType':_0x246593[_0x22eb08(0x33f)]});})[_0x73f6c4(0x2c9)](()=>_0x4478bf(null)):_0x4478bf(null);},{'once':!0x0}),_0x225338[_0x3b5715(0x366)]();});}function no(_0xf26b12){return new Promise(_0x5a855e=>{const _0x2b7f70=_0x4abf;let _0x50630b=document[_0x2b7f70(0x314)]('input');_0x50630b[_0x2b7f70(0x4b9)]=_0x2b7f70(0x4c3),_0x50630b['accept']='image/*',_0x50630b[_0x2b7f70(0x371)]('change',()=>{const _0x34ec36=_0x2b7f70;var _0x5b2ae9;let _0x64db77=(_0x5b2ae9=_0x50630b[_0x34ec36(0x338)])==null?void 0x0:_0x5b2ae9[0x0];_0x64db77?_0xf26b12[_0x34ec36(0x237)](_0x64db77)[_0x34ec36(0x3ab)](_0x441dfe=>{const _0x1adbb7=_0x34ec36;if(!(_0x441dfe!=null&&_0x441dfe[_0x1adbb7(0x252)]))_0x5a855e(null);else{if(_0x441dfe[_0x1adbb7(0x364)]){let _0x3b7d5b=new Image();_0x3b7d5b['src']=_0x441dfe[_0x1adbb7(0x364)],_0xf26b12[_0x1adbb7(0x436)](_0x441dfe[_0x1adbb7(0x252)],_0x441dfe[_0x1adbb7(0x29f)],_0x3b7d5b);}_0x5a855e({'source':_0x441dfe[_0x1adbb7(0x252)],'sourceType':_0x441dfe[_0x1adbb7(0x29f)]});}})['catch'](()=>_0x5a855e(null)):_0x5a855e(null);},{'once':!0x0}),_0x50630b[_0x2b7f70(0x366)]();});}function ro(_0x119196){const _0x2dbfcf=_0x219009;switch(_0x119196){case _0xf5049a[_0x2dbfcf(0x1a1)]:return _0x2dbfcf(0x35b);case _0xf5049a['TableFilter']:return _0x2dbfcf(0x1fb);case _0xf5049a[_0x2dbfcf(0x42d)]:return'bases-dashboard-ui.dashboard.text';case _0xf5049a[_0x2dbfcf(0x20c)]:return _0x2dbfcf(0x1d3);case _0xf5049a['FormulaShape']:return'bases-dashboard-ui.dashboard.formulaShape';}}function io(_0x475881){const _0x143925=_0x219009;return(_0x475881==null?void 0x0:_0x475881[_0x143925(0x4b9)])===_0x4ec201[_0x143925(0x223)]&&typeof _0x475881[_0x143925(0x2dc)]==_0x143925(0x43c)&&_0x475881[_0x143925(0x2dc)]!==null&&_0x143925(0x3b3)in _0x475881[_0x143925(0x2dc)]&&_0x143925(0x2fc)in _0x475881[_0x143925(0x2dc)];}const ao=[{'area':_0x2e2ea1[_0x219009(0x4cd)],'key':_0x219009(0x317),'label':_0x219009(0x297)},{'area':_0x2e2ea1[_0x219009(0x3d4)],'key':_0x219009(0x23d),'label':_0x219009(0x32d)},{'area':_0x2e2ea1[_0x219009(0x2ce)],'key':'rowFields','label':_0x219009(0x3c2)},{'area':_0x2e2ea1['Value'],'key':_0x219009(0x37b),'label':'bases-dashboard-ui.pivot.values'}],oo=[{'value':_0x37b485[_0x219009(0x3b7)],'localeKey':_0x219009(0x347)},{'value':_0x37b485[_0x219009(0x241)],'localeKey':'bases-dashboard-ui.pivot.count'},{'value':_0x37b485[_0x219009(0x220)],'localeKey':_0x219009(0x303)},{'value':_0x37b485[_0x219009(0x49a)],'localeKey':'bases-dashboard-ui.pivot.average'},{'value':_0x37b485[_0x219009(0x2eb)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':_0x37b485[_0x219009(0x466)],'localeKey':_0x219009(0x1e7)},{'value':_0x37b485[_0x219009(0x46e)],'localeKey':'bases-dashboard-ui.pivot.product'},{'value':_0x37b485[_0x219009(0x1e6)],'localeKey':_0x219009(0x34e)},{'value':_0x37b485[_0x219009(0x399)],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x37b485[_0x219009(0x35e)],'localeKey':_0x219009(0x48a)},{'value':_0x37b485[_0x219009(0x402)],'localeKey':'bases-dashboard-ui.pivot.variancePopulation'}];function so(_0x817746){const _0x10f323=_0x219009;let {config:_0x8f1a33,onChange:_0x161a52,table:_0x387f29}=_0x817746,_0xb767d5=_0xb3eab7(_0x51de0a),[_0x27ca97,_0x5bd883]=_0x277721(_0x10f323(0x1c9)),[_0xda6d37,_0x5dc219]=_0x277721(''),[_0x1a3923,_0x3796a4]=_0x277721(null),[_0x58a750,_0x369204]=_0x277721(null),[_0x208ecd,_0x4f52df]=_0x277721(null),[_0x37285a,_0x1f0f7f]=_0x277721(null),_0x7f5a0=_0x52068e(null),_0x5ea77c=_0x2a7f67(()=>_0x387f29[_0x10f323(0x232)][_0x10f323(0x1ae)](_0x5297c4=>{const _0x1c0d4e=_0x10f323;let _0x8c989a=_0x387f29[_0x1c0d4e(0x1c9)][_0x5297c4];return _0x8c989a&&_0x8c989a[_0x1c0d4e(0x235)]!==!0x0&&_0x8c989a[_0x1c0d4e(0x4b9)]!==_0x3f2f3b[_0x1c0d4e(0x47f)]?[_0x8c989a]:[];})[_0x10f323(0x498)](_0x3857f1=>_0x3857f1[_0x10f323(0x3aa)][_0x10f323(0x16f)]()[_0x10f323(0x481)](_0xda6d37['trim']()[_0x10f323(0x16f)]())),[_0xda6d37,_0x387f29]),_0x3cb8fc=_0x1a2614=>{let _0x29820e=_0x26536e(_0x387f29,_0x8f1a33['pivot']);try{_0x1a2614(_0x29820e),_0x161a52({'pivot':_0x29820e['toJSON']()});}finally{_0x29820e['dispose']();}},_0x25ec0e=(_0x50a536,_0x26f039)=>{_0x1a3923&&(_0x3cb8fc(_0x375333=>{const _0x1898d5=_0x4abf;if(_0x1a3923[_0x1898d5(0x4b3)]===_0x1898d5(0x260)){let _0x164ef8=_0x375333['getFieldPositionInfoById'](_0x1a3923['id']),_0x509b7b=_0x164ef8[_0x1898d5(0x3f4)]===_0x50a536&&_0x164ef8[_0x1898d5(0x3a4)]<_0x26f039?_0x26f039-0x1:_0x26f039;_0x375333[_0x1898d5(0x44c)](_0x1a3923['id'],_0x50a536,_0x509b7b);}else go(_0x375333,_0x1a3923['id'],_0x50a536,_0x26f039);}),_0x3796a4(null),_0x369204(null));};return _0x52e710(_0x10f323(0x173),{'className':_0x10f323(0x30d),'children':[_0x1af9b(_0x531ef4,{'ariaLabel':_0xb767d5['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'className':_0x10f323(0x2d8),'items':[{'label':_0xb767d5['t'](_0x10f323(0x284)),'panelId':'base-pivot-fields','value':_0x10f323(0x1c9)},{'label':_0xb767d5['t'](_0x10f323(0x4cb)),'panelId':_0x10f323(0x3cc),'value':_0x10f323(0x3d0)}],'value':_0x27ca97,'onChange':_0x5bd883}),_0x1af9b(_0x10f323(0x173),{'ref':_0x7f5a0,'className':_0x43bd71(_0x10f323(0x24e),_0x178403),'onDragOver':_0x55f9b5=>{const _0x23e021=_0x10f323;let _0x3d8bae=_0x7f5a0['current'];if(!_0x3d8bae)return;let _0x3c1307=_0x3d8bae[_0x23e021(0x30f)]();_0x55f9b5[_0x23e021(0x1a8)]<_0x3c1307['top']+0x30?_0x3d8bae[_0x23e021(0x41b)]-=0x10:_0x55f9b5[_0x23e021(0x1a8)]>_0x3c1307[_0x23e021(0x196)]-0x30&&(_0x3d8bae[_0x23e021(0x41b)]+=0x10);},'children':_0x27ca97===_0x10f323(0x3d0)?_0x1af9b(ho,{'config':_0x8f1a33,'commit':_0x3cb8fc}):_0x52e710(_0x10f323(0x173),{'className':_0x10f323(0x228),'children':[_0x52e710('div',{'children':[_0x1af9b(_0x10f323(0x173),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0xb767d5['t'](_0x10f323(0x3c8))}),_0x1af9b(_0x4f1ee0,{'allowClear':!0x0,'slot':_0x1af9b(_0x3f6321,{}),'value':_0xda6d37,'placeholder':_0xb767d5['t'](_0x10f323(0x200)),'onChange':_0x5dc219}),_0x1af9b(_0x10f323(0x173),{'className':_0x10f323(0x3c4),'children':_0x5ea77c[_0x10f323(0x43f)](_0x37b4bc=>_0x1af9b(co,{'config':_0x8f1a33,'field':_0x37b4bc,'onAdd':_0x570e72=>_0x3cb8fc(_0x465b32=>go(_0x465b32,_0x37b4bc['id'],_0x570e72,_0x465b32[_0x10f323(0x188)](_0x570e72))),'onCheckedChange':_0x1b5102=>_0x3cb8fc(_0x299f11=>{const _0x4a9d91=_0x10f323;let _0x343171=_0x299f11[_0x4a9d91(0x190)](_0x37b4bc['id']);if(!_0x1b5102)_0x343171['forEach'](_0x27322e=>_0x299f11[_0x4a9d91(0x453)](_0x27322e['getId']()));else{if(_0x343171[_0x4a9d91(0x348)]===0x0){let _0x5ab112=vo(_0x37b4bc)?_0x2e2ea1['Value']:_0x2e2ea1[_0x4a9d91(0x2ce)];_0x299f11[_0x4a9d91(0x2c3)](_0x37b4bc['id'],_0x5ab112);}}}),'onDragStart':()=>_0x3796a4({'kind':_0x10f323(0x252),'id':_0x37b4bc['id']})},_0x37b4bc['id']))})]}),_0x1af9b(_0x10f323(0x173),{'className':_0x10f323(0x439),'children':ao['map'](_0x45b826=>_0x1af9b(uo,{'area':_0x45b826[_0x10f323(0x3f4)],'dropTarget':_0x58a750,'fields':_0x8f1a33['pivot'][_0x45b826['key']],'label':_0xb767d5['t'](_0x45b826[_0x10f323(0x1d6)]),'snapshot':_0x8f1a33[_0x10f323(0x3b3)],'onDragEnd':()=>{_0x3796a4(null),_0x369204(null);},'onDragStart':_0x3cd181=>_0x3796a4({'kind':_0x10f323(0x260),'id':_0x3cd181,'area':_0x45b826[_0x10f323(0x3f4)]}),'onDragOver':_0x26ea70=>_0x369204({'area':_0x45b826[_0x10f323(0x3f4)],'index':_0x26ea70}),'onDrop':_0x13a139=>_0x25ec0e(_0x45b826[_0x10f323(0x3f4)],_0x13a139),'onFilter':_0x4f52df,'onRemove':_0x1961bb=>_0x3cb8fc(_0x3e857b=>_0x3e857b['removeField'](_0x1961bb)),'onSettings':_0x1f0f7f},_0x45b826[_0x10f323(0x3f4)]))}),_0x208ecd&&_0x1af9b(po,{'fieldId':_0x208ecd,'snapshot':_0x8f1a33[_0x10f323(0x3b3)],'table':_0x387f29,'onCancel':()=>_0x4f52df(null),'onCommit':(_0x42df30,_0x2e5f8f)=>{_0x3cb8fc(_0xf83f5d=>{const _0x4e4c59=_0x4abf;let _0x1e25e0=_0xf83f5d[_0x4e4c59(0x37e)](_0x208ecd),_0x1e0b7a=(_0x1e25e0==null?void 0x0:_0x1e25e0[_0x4e4c59(0x39c)])??[];_0xf83f5d['setLabelFilterInfo'](_0x208ecd,{'type':_0x43d698['ManualFilter'],'list':_0x42df30,'isAll':_0x42df30[_0x4e4c59(0x348)]===_0x1e0b7a[_0x4e4c59(0x348)]}),_0xf83f5d[_0x4e4c59(0x471)](_0x208ecd,_0x2e5f8f===void 0x0?void 0x0:{'type':_0x2e5f8f});}),_0x4f52df(null);}},_0x208ecd),_0x37285a&&_0x1af9b(mo,{'field':_0x8f1a33['pivot'][_0x10f323(0x3d5)][_0x37285a],'onCancel':()=>_0x1f0f7f(null),'onCommit':(_0x3bab5b,_0x15c73a,_0x363256)=>{_0x3cb8fc(_0x4afaa3=>{const _0x123ace=_0x4abf;_0x4afaa3['renameField'](_0x37285a,_0x3bab5b),_0x4afaa3[_0x123ace(0x4bd)](_0x37285a,_0x15c73a),_0x4afaa3[_0x123ace(0x213)](_0x37285a,_0x363256||void 0x0);}),_0x1f0f7f(null);}},_0x37285a)]})})]});}function co(_0x92824b){const _0x357085=_0x219009;let {config:_0xca5521,field:_0x627411,onAdd:_0x38ab01,onCheckedChange:_0x2a2f60,onDragStart:_0x513465}=_0x92824b,_0x3d1752=_0xb3eab7(_0x51de0a),_0x1b413a=[...Object['values'](_0xca5521[_0x357085(0x3b3)][_0x357085(0x34a)]),...Object['values'](_0xca5521[_0x357085(0x3b3)][_0x357085(0x3d5)])][_0x357085(0x499)](_0x59331c=>_0x59331c[_0x357085(0x18d)]===_0x627411['id']),_0x353625=ao[_0x357085(0x43f)](_0x1e6938=>({'type':_0x357085(0x1f9),'children':_0x3d1752['t'](yo(_0x1e6938[_0x357085(0x3f4)])),'onSelect':()=>_0x38ab01(_0x1e6938[_0x357085(0x3f4)])}));return _0x52e710(_0x357085(0x173),{'draggable':!0x0,'className':_0x357085(0x262),'onDragStart':_0x513465,'children':[_0x1af9b(_0x56435c,{'className':'univer-text-gray-400'}),_0x1af9b(_0x5e364b,{'checked':_0x1b413a,'onChange':_0x4f032d=>_0x2a2f60(!!_0x4f032d)}),_0x1af9b(lo,{'field':_0x627411}),_0x1af9b(_0x357085(0x46c),{'className':_0x357085(0x3cf),'children':_0x627411[_0x357085(0x3aa)]}),_0x1af9b(_0x2049bb,{'align':_0x357085(0x1d5),'items':_0x353625,'children':_0x1af9b(_0x357085(0x46c),{'className':'univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','children':_0x1af9b(_0x27fd1a,{})})})]});}function lo({field:_0x23b3aa}){const _0x13eef5=_0x219009;return vo(_0x23b3aa)?_0x1af9b(_0x519617,{'className':_0x13eef5(0x259)}):_0x23b3aa[_0x13eef5(0x4b9)]===_0x3f2f3b['Date']||_0x23b3aa[_0x13eef5(0x4b9)]===_0x3f2f3b['CreatedAt']||_0x23b3aa[_0x13eef5(0x4b9)]===_0x3f2f3b[_0x13eef5(0x212)]?_0x1af9b(_0x353aa7,{'className':_0x13eef5(0x259)}):_0x1af9b(_0x21875f,{'className':_0x13eef5(0x259)});}function uo(_0x260634){const _0x2fb3ba=_0x219009;let {area:_0x1c27d6,dropTarget:_0x494d30,fields:_0x293052,label:_0x2005c1,snapshot:_0x162741}=_0x260634,_0xd6f457=_0xb3eab7(_0x51de0a);return _0x52e710(_0x2fb3ba(0x198),{'className':_0x43bd71(_0x2fb3ba(0x26b),_0x25ef46),'onDragOver':_0x4f0e21=>{const _0x4b9882=_0x2fb3ba;_0x4f0e21[_0x4b9882(0x33b)](),_0x260634['onDragOver'](_0x293052['length']);},'onDrop':_0x24b352=>{const _0x3cddd7=_0x2fb3ba;_0x24b352[_0x3cddd7(0x33b)](),_0x260634[_0x3cddd7(0x26d)]((_0x494d30==null?void 0x0:_0x494d30['area'])===_0x1c27d6?_0x494d30[_0x3cddd7(0x3a4)]:_0x293052['length']);},'children':[_0x1af9b(_0x2fb3ba(0x173),{'className':_0x2fb3ba(0x30c),'children':_0x2005c1}),_0x52e710(_0x2fb3ba(0x173),{'className':'univer-flex\x20univer-flex-col','children':[_0x293052[_0x2fb3ba(0x43f)]((_0x32b8ec,_0x3461c5)=>{const _0x3fdc15=_0x2fb3ba;let _0x24499b=_0x162741['dimension'][_0x32b8ec]??_0x162741[_0x3fdc15(0x3d5)][_0x32b8ec];if(!_0x24499b)return null;let _0x52e277=(_0x494d30==null?void 0x0:_0x494d30['area'])===_0x1c27d6&&_0x494d30['index']===_0x3461c5;return _0x52e710(_0x3fdc15(0x173),{'onDragOver':_0x5e68d9=>{const _0xd7cf5=_0x3fdc15;_0x5e68d9['preventDefault'](),_0x5e68d9[_0xd7cf5(0x2ac)]();let _0x43742a=_0x5e68d9['currentTarget']['getBoundingClientRect']();_0x260634[_0xd7cf5(0x1e8)](_0x3461c5+ +(_0x5e68d9['clientY']>_0x43742a[_0xd7cf5(0x31d)]+_0x43742a[_0xd7cf5(0x34f)]/0x2));},'onDrop':_0x4730e3=>{const _0x19d777=_0x3fdc15;_0x4730e3[_0x19d777(0x33b)](),_0x4730e3['stopPropagation'](),_0x260634['onDrop']((_0x494d30==null?void 0x0:_0x494d30[_0x19d777(0x3f4)])===_0x1c27d6?_0x494d30[_0x19d777(0x3a4)]:_0x3461c5);},'children':[_0x52e277&&_0x1af9b(_0x3fdc15(0x173),{'className':_0x3fdc15(0x290)}),_0x1af9b(fo,{'area':_0x1c27d6,'field':_0x24499b,'onDragEnd':_0x260634[_0x3fdc15(0x419)],'onDragStart':()=>_0x260634[_0x3fdc15(0x205)](_0x32b8ec),'onFilter':()=>_0x260634[_0x3fdc15(0x2d0)](_0x32b8ec),'onRemove':()=>_0x260634[_0x3fdc15(0x2d1)](_0x32b8ec),'onSettings':()=>_0x260634[_0x3fdc15(0x33d)](_0x32b8ec)})]},_0x32b8ec);}),(_0x494d30==null?void 0x0:_0x494d30[_0x2fb3ba(0x3f4)])===_0x1c27d6&&_0x494d30[_0x2fb3ba(0x3a4)]===_0x293052[_0x2fb3ba(0x348)]&&_0x1af9b('div',{'className':_0x2fb3ba(0x290)}),_0x293052['length']===0x0&&_0x1af9b(_0x2fb3ba(0x173),{'className':'univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','children':_0xd6f457['t'](_0x2fb3ba(0x221))})]})]});}function fo(_0x5ce1b6){const _0x3c597b=_0x219009;let _0x3f5531=_0xb3eab7(_0x51de0a),_0x32de1b=_0x5ce1b6[_0x3c597b(0x3f4)]===_0x2e2ea1['Value'],_0x2d8237=[{'type':_0x3c597b(0x1f9),'children':_0x3f5531['t']('bases-dashboard-ui.pivot.removeField'),'onSelect':_0x5ce1b6['onRemove']},{'type':_0x3c597b(0x1f9),'children':_0x3f5531['t'](_0x32de1b?'bases-dashboard-ui.pivot.fieldSettings':'bases-dashboard-ui.pivot.filterField'),'onSelect':_0x32de1b?_0x5ce1b6[_0x3c597b(0x33d)]:_0x5ce1b6[_0x3c597b(0x2d0)]}];return _0x52e710(_0x3c597b(0x173),{'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':_0x5ce1b6['onDragEnd'],'onDragStart':_0x5ce1b6[_0x3c597b(0x205)],'children':[_0x1af9b(_0x56435c,{'className':_0x3c597b(0x259)}),_0x1af9b(_0xe14895,{'title':_0x5ce1b6[_0x3c597b(0x260)][_0x3c597b(0x2af)],'children':_0x1af9b(_0x3c597b(0x46c),{'className':_0x3c597b(0x3cf),'children':_0x5ce1b6[_0x3c597b(0x260)][_0x3c597b(0x2af)]})}),_0x1af9b(_0x2049bb,{'align':_0x3c597b(0x1d5),'items':_0x2d8237,'children':_0x1af9b(_0x3c597b(0x46c),{'className':'univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','children':_0x1af9b(_0x27fd1a,{})})})]});}function po(_0x51269a){const _0xbdd600=_0x219009;var _0x565745,_0x17de53;let _0x16a09a=_0xb3eab7(_0x51de0a),{format:_0x51250c,items:_0x3c6f0d,itemTypes:_0x4693b9}=_0x2a7f67(()=>{const _0x235edc=_0x4abf;let _0x14050c=_0x26536e(_0x51269a['table'],_0x51269a['snapshot']);try{let _0x3258be=_0x14050c['getDataFieldByTableId'](_0x51269a[_0x235edc(0x1cb)]);return{'format':_0x3258be==null?void 0x0:_0x3258be[_0x235edc(0x467)],'items':[...(_0x3258be==null?void 0x0:_0x3258be['items'])??[]],'itemTypes':[...(_0x3258be==null?void 0x0:_0x3258be[_0x235edc(0x258)])??[]]};}finally{_0x14050c[_0x235edc(0x333)]();}},[_0x51269a['fieldId'],_0x51269a[_0xbdd600(0x36f)],_0x51269a[_0xbdd600(0x328)]]),_0x33fb8f=(_0x565745=_0x51269a[_0xbdd600(0x36f)][_0xbdd600(0x34a)][_0x51269a['fieldId']])==null?void 0x0:_0x565745[_0xbdd600(0x3cb)],[_0x2f28c2,_0x4b927e]=_0x277721((_0x33fb8f==null?void 0x0:_0x33fb8f[_0xbdd600(0x4b9)])===_0x43d698[_0xbdd600(0x423)]?_0x33fb8f[_0xbdd600(0x427)]:_0x3c6f0d),[_0x3b01b7,_0xc5b2aa]=_0x277721((_0x17de53=_0x51269a[_0xbdd600(0x36f)][_0xbdd600(0x34a)][_0x51269a[_0xbdd600(0x1cb)]])==null||(_0x17de53=_0x17de53[_0xbdd600(0x3fa)])==null?void 0x0:_0x17de53[_0xbdd600(0x4b9)]),_0x59ebcc=_0x2f28c2[_0xbdd600(0x348)]===_0x3c6f0d[_0xbdd600(0x348)];return _0x52e710(_0xbdd600(0x198),{'className':_0x43bd71(_0xbdd600(0x18e),_0x25ef46),'children':[_0x1af9b(_0xbdd600(0x173),{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0x16a09a['t']('bases-dashboard-ui.pivot.filterField')}),_0x52e710(_0xbdd600(0x173),{'className':_0xbdd600(0x362),'children':[_0x52e710(_0x2e1096,{'className':_0xbdd600(0x4b0),'variant':_0x3b01b7===_0x42703e[_0xbdd600(0x35a)]?_0xbdd600(0x2f7):_0xbdd600(0x1ca),'onClick':()=>_0xc5b2aa(_0x42703e[_0xbdd600(0x35a)]),'children':[_0x1af9b(_0x52230b,{}),_0x16a09a['t'](_0xbdd600(0x1ad))]}),_0x52e710(_0x2e1096,{'className':_0xbdd600(0x4b0),'variant':_0x3b01b7===_0x42703e[_0xbdd600(0x4bf)]?_0xbdd600(0x2f7):_0xbdd600(0x1ca),'onClick':()=>_0xc5b2aa(_0x42703e[_0xbdd600(0x4bf)]),'children':[_0x1af9b(_0x404137,{}),_0x16a09a['t'](_0xbdd600(0x38d))]})]}),_0x52e710('div',{'className':_0xbdd600(0x355),'children':[_0x52e710(_0xbdd600(0x1d6),{'className':_0xbdd600(0x195),'children':[_0x1af9b(_0x5e364b,{'checked':_0x59ebcc,'indeterminate':_0x2f28c2[_0xbdd600(0x348)]>0x0&&!_0x59ebcc,'onChange':()=>_0x4b927e(_0x59ebcc?[]:_0x3c6f0d)}),_0x16a09a['t'](_0xbdd600(0x2de))]}),_0x3c6f0d['map']((_0x19dfcd,_0x53c231)=>_0x52e710('label',{'className':_0xbdd600(0x195),'children':[_0x1af9b(_0x5e364b,{'checked':_0x2f28c2[_0xbdd600(0x481)](_0x19dfcd),'onChange':()=>_0x4b927e(_0x4a8fd7=>_0x4a8fd7['includes'](_0x19dfcd)?_0x4a8fd7[_0xbdd600(0x498)](_0x11a014=>_0x11a014!==_0x19dfcd):[..._0x4a8fd7,_0x19dfcd])}),_0x1af9b('span',{'className':_0xbdd600(0x409),'children':_o(_0x19dfcd,_0x4693b9[_0x53c231],_0x51250c,_0x16a09a['t'](_0xbdd600(0x385)))})]},_0x19dfcd))]}),_0x52e710(_0xbdd600(0x173),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[_0x1af9b(_0x2e1096,{'variant':_0xbdd600(0x412),'onClick':()=>_0x51269a[_0xbdd600(0x27f)](_0x3c6f0d,_0x3b01b7),'children':_0x16a09a['t']('bases-dashboard-ui.pivot.clearFilter')}),_0x52e710(_0xbdd600(0x173),{'className':'univer-flex\x20univer-gap-2','children':[_0x1af9b(_0x2e1096,{'onClick':_0x51269a[_0xbdd600(0x21b)],'children':_0x16a09a['t'](_0xbdd600(0x1a6))}),_0x1af9b(_0x2e1096,{'variant':_0xbdd600(0x2f7),'disabled':_0x2f28c2[_0xbdd600(0x348)]===0x0,'onClick':()=>_0x51269a[_0xbdd600(0x27f)](_0x2f28c2,_0x3b01b7),'children':_0x16a09a['t'](_0xbdd600(0x457))})]})]})]});}function mo(_0x3ca9fe){const _0x26cd1e=_0x219009;var _0x4ce7cb,_0x4c3291,_0x450ccb;let _0x10c18b=_0xb3eab7(_0x51de0a),[_0x42b9e3,_0x18ad93]=_0x277721(((_0x4ce7cb=_0x3ca9fe[_0x26cd1e(0x260)])==null?void 0x0:_0x4ce7cb['displayName'])??''),[_0xb41589,_0x2a992e]=_0x277721(((_0x4c3291=_0x3ca9fe[_0x26cd1e(0x260)])==null?void 0x0:_0x4c3291['subtotal'])??_0x37b485[_0x26cd1e(0x3b7)]),[_0x3e2fc8,_0x5426e8]=_0x277721(((_0x450ccb=_0x3ca9fe[_0x26cd1e(0x260)])==null?void 0x0:_0x450ccb[_0x26cd1e(0x467)])??'');return _0x3ca9fe[_0x26cd1e(0x260)]?_0x52e710(_0x26cd1e(0x198),{'className':_0x43bd71('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',_0x25ef46),'children':[_0x1af9b(_0x26cd1e(0x173),{'className':_0x26cd1e(0x324),'children':_0x10c18b['t']('bases-dashboard-ui.pivot.fieldSettings')}),_0x52e710(_0x26cd1e(0x1d6),{'className':_0x26cd1e(0x261),'children':[_0x10c18b['t']('bases-dashboard-ui.pivot.displayName'),_0x1af9b(_0x4f1ee0,{'value':_0x42b9e3,'onChange':_0x18ad93})]}),_0x52e710(_0x26cd1e(0x1d6),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x10c18b['t'](_0x26cd1e(0x2ad)),_0x1af9b(_0x8bae00,{'value':String(_0xb41589),'options':oo[_0x26cd1e(0x43f)](_0x5bb541=>({'value':String(_0x5bb541[_0x26cd1e(0x286)]),'label':_0x10c18b['t'](_0x5bb541[_0x26cd1e(0x37c)])})),'onChange':_0x36516e=>{const _0x99ddee=_0x26cd1e;let _0x2dc351=oo[_0x99ddee(0x3ae)](_0x120166=>String(_0x120166[_0x99ddee(0x286)])===_0x36516e);_0x2dc351&&_0x2a992e(_0x2dc351['value']);}})]}),_0x52e710(_0x26cd1e(0x1d6),{'className':_0x26cd1e(0x261),'children':[_0x10c18b['t'](_0x26cd1e(0x4be)),_0x1af9b(_0x4f1ee0,{'value':_0x3e2fc8,'onChange':_0x5426e8})]}),_0x52e710(_0x26cd1e(0x173),{'className':_0x26cd1e(0x3fd),'children':[_0x1af9b(_0x2e1096,{'onClick':_0x3ca9fe[_0x26cd1e(0x21b)],'children':_0x10c18b['t'](_0x26cd1e(0x1a6))}),_0x1af9b(_0x2e1096,{'variant':_0x26cd1e(0x2f7),'disabled':!_0x42b9e3[_0x26cd1e(0x2ee)](),'onClick':()=>_0x3ca9fe[_0x26cd1e(0x27f)](_0x42b9e3[_0x26cd1e(0x2ee)](),_0xb41589,_0x3e2fc8),'children':_0x10c18b['t'](_0x26cd1e(0x457))})]})]}):null;}function ho(_0x22dbc9){const _0x30f26a=_0x219009;let {config:_0x51eee1,commit:_0x1d202c}=_0x22dbc9,_0x121991=_0xb3eab7(_0x51de0a),_0x1a51c1=_0x51eee1[_0x30f26a(0x3b3)]['options'],_0x37c73b=_0x5ba2a6=>_0x1d202c(_0x2d502c=>_0x2d502c[_0x30f26a(0x447)]({..._0x2d502c['getOptions'](),..._0x5ba2a6}));return _0x52e710(_0x30f26a(0x173),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x52e710(_0x30f26a(0x1d6),{'className':_0x30f26a(0x26c),'children':[_0x121991['t'](_0x30f26a(0x386)),_0x1af9b(_0x8bae00,{'className':'univer-w-36','value':String(_0x51eee1['pivot'][_0x30f26a(0x16e)]),'options':[{'value':String(_0x27edfb[_0x30f26a(0x2be)]),'label':_0x121991['t'](_0x30f26a(0x2ec))},{'value':String(_0x27edfb['compact']),'label':_0x121991['t'](_0x30f26a(0x2d4))},{'value':String(_0x27edfb[_0x30f26a(0x202)]),'label':_0x121991['t'](_0x30f26a(0x291))}],'onChange':_0x3936ce=>{const _0x35e845=_0x30f26a;let _0x6f9e82=[_0x27edfb['tabular'],_0x27edfb[_0x35e845(0x449)],_0x27edfb[_0x35e845(0x202)]][_0x35e845(0x3ae)](_0x5b4d54=>String(_0x5b4d54)===_0x3936ce);_0x6f9e82!==void 0x0&&_0x1d202c(_0x57ca15=>_0x57ca15['setLayout'](_0x6f9e82));}})]}),[{'key':_0x30f26a(0x42a),'label':_0x30f26a(0x3b8),'defaultValue':!0x1},{'key':_0x30f26a(0x1b1),'label':'bases-dashboard-ui.pivot.repeatColumnLabels','defaultValue':!0x1},{'key':'showRowSubtotal','label':_0x30f26a(0x372),'defaultValue':!0x0},{'key':'showRowGrandTotal','label':_0x30f26a(0x1b0),'defaultValue':!0x0},{'key':_0x30f26a(0x316),'label':_0x30f26a(0x3a8),'defaultValue':!0x0},{'key':_0x30f26a(0x41f),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}]['map'](_0x23d820=>_0x52e710('label',{'className':_0x30f26a(0x387),'children':[_0x1af9b(_0x5e364b,{'checked':!!(_0x1a51c1[_0x23d820[_0x30f26a(0x2c1)]]??_0x23d820[_0x30f26a(0x356)]),'disabled':_0x23d820[_0x30f26a(0x2c1)]===_0x30f26a(0x42a)&&_0x51eee1['pivot'][_0x30f26a(0x16e)]===_0x27edfb[_0x30f26a(0x449)],'onChange':_0x3ea39c=>_0x37c73b({[_0x23d820[_0x30f26a(0x2c1)]]:!!_0x3ea39c})}),_0x121991['t'](_0x23d820[_0x30f26a(0x1d6)])]},_0x23d820['key'])),_0x51eee1['pivot'][_0x30f26a(0x16e)]===_0x27edfb[_0x30f26a(0x202)]&&_0x52e710('label',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x121991['t'](_0x30f26a(0x43a)),_0x1af9b(_0x8bae00,{'className':_0x30f26a(0x229),'value':String(_0x1a51c1['rowSubtotalPosition']??_0x1ce76a[_0x30f26a(0x31d)]),'options':[{'value':String(_0x1ce76a[_0x30f26a(0x31d)]),'label':_0x121991['t'](_0x30f26a(0x17f))},{'value':String(_0x1ce76a[_0x30f26a(0x196)]),'label':_0x121991['t'](_0x30f26a(0x389))}],'onChange':_0x43c894=>{const _0x49cb9c=_0x30f26a;let _0x24ab8e=[_0x1ce76a[_0x49cb9c(0x31d)],_0x1ce76a[_0x49cb9c(0x196)]][_0x49cb9c(0x3ae)](_0x2bac6f=>String(_0x2bac6f)===_0x43c894);_0x24ab8e!==void 0x0&&_0x37c73b({'rowSubtotalPosition':_0x24ab8e});}})]}),_0x52e710('label',{'className':_0x30f26a(0x26c),'children':[_0x121991['t'](_0x30f26a(0x4ad)),_0x1af9b(_0x8bae00,{'className':_0x30f26a(0x229),'value':String(_0x51eee1[_0x30f26a(0x3b3)][_0x30f26a(0x360)]===_0x3188ad[_0x30f26a(0x37a)]?_0x3188ad[_0x30f26a(0x3d4)]:_0x51eee1[_0x30f26a(0x3b3)][_0x30f26a(0x360)]),'options':[{'value':String(_0x3188ad[_0x30f26a(0x3d4)]),'label':_0x121991['t']('bases-dashboard-ui.pivot.columns')},{'value':String(_0x3188ad[_0x30f26a(0x2ce)]),'label':_0x121991['t'](_0x30f26a(0x3c2))}],'onChange':_0x468bef=>{const _0x1705c0=_0x30f26a;let _0x16607d=[_0x3188ad[_0x1705c0(0x3d4)],_0x3188ad['Row']]['find'](_0x2f2d84=>String(_0x2f2d84)===_0x468bef);_0x16607d!==void 0x0&&_0x1d202c(_0x11fca3=>_0x11fca3['updateValuePosition'](_0x16607d,_0x11fca3['getValueIndex']()<0x0?0x0:_0x11fca3['getValueIndex']()));}})]}),_0x52e710(_0x30f26a(0x1d6),{'className':_0x30f26a(0x26c),'children':[_0x121991['t'](_0x30f26a(0x287)),_0x1af9b(_0x770794,{'className':_0x30f26a(0x4d2),'min':0x1,'max':0x14,'value':_0x1a51c1['pageWrap']??0x1,'onChange':_0x5bcdb9=>{const _0x1bb558=_0x30f26a;let _0x5301cb=Number(_0x5bcdb9);Number[_0x1bb558(0x2f6)](_0x5301cb)&&_0x5301cb>=0x1&&_0x37c73b({'pageWrap':_0x5301cb});}})]}),_0x52e710(_0x30f26a(0x1d6),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x121991['t'](_0x30f26a(0x249)),_0x1af9b(_0x8bae00,{'className':_0x30f26a(0x229),'value':String(_0x1a51c1[_0x30f26a(0x222)]??!0x1),'options':[{'value':_0x30f26a(0x193),'label':_0x121991['t'](_0x30f26a(0x1e1))},{'value':_0x30f26a(0x1be),'label':_0x121991['t']('bases-dashboard-ui.pivot.acrossThenDown')}],'onChange':_0x5264e5=>_0x37c73b({'pageOverThenDown':_0x5264e5===_0x30f26a(0x1be)})})]})]});}function go(_0x51b6c0,_0x1e9e0f,_0x546cd1,_0x107b22){const _0x6d579c=_0x219009;let _0x4d6cd9=_0x51b6c0[_0x6d579c(0x190)](_0x1e9e0f)['find'](_0x305be2=>_0x51b6c0[_0x6d579c(0x243)](_0x305be2[_0x6d579c(0x293)]())['area']!==_0x2e2ea1['Value']);_0x546cd1!==_0x2e2ea1[_0x6d579c(0x478)]&&_0x4d6cd9?_0x51b6c0[_0x6d579c(0x44c)](_0x4d6cd9[_0x6d579c(0x293)](),_0x546cd1,_0x107b22):_0x51b6c0[_0x6d579c(0x2c3)](_0x1e9e0f,_0x546cd1,_0x107b22);}function _o(_0x5787e1,_0x207b87,_0x569496,_0x5d1780){const _0xf16939=_0x219009;return _0x207b87===_0x4bea43['blank']?_0x5d1780:_0x207b87===_0x4bea43['date']&&_0x569496?_0x415bf1[_0xf16939(0x467)](_0x569496,Number(_0x5787e1)):_0x5787e1;}function vo(_0x53d2ec){const _0x1cc636=_0x219009;return _0x53d2ec[_0x1cc636(0x4b9)]===_0x3f2f3b[_0x1cc636(0x327)]||_0x53d2ec['type']===_0x3f2f3b[_0x1cc636(0x271)]||_0x53d2ec['type']===_0x3f2f3b[_0x1cc636(0x274)]||_0x53d2ec[_0x1cc636(0x4b9)]===_0x3f2f3b[_0x1cc636(0x176)];}function yo(_0x318c67){const _0x55dc9b=_0x219009;switch(_0x318c67){case _0x2e2ea1['Row']:return'bases-dashboard-ui.pivot.addToRow';case _0x2e2ea1['Column']:return _0x55dc9b(0x18f);case _0x2e2ea1[_0x55dc9b(0x478)]:return _0x55dc9b(0x24d);default:return _0x55dc9b(0x1df);}}function bo({config:_0x5360aa,onChange:_0x460ddb,runtime:_0x48d7b5,table:_0x7be981}){const _0x2f2aa5=_0x219009;let _0x458e3b=_0xb3eab7(_0x51de0a),[_0x3c5c2a,_0x3b57c2]=_0x277721(_0x2f2aa5(0x2fc));return _0x52e710(_0x2f2aa5(0x2a1),{'className':_0x2f2aa5(0x294),'children':[_0x1af9b(_0x531ef4,{'ariaLabel':_0x458e3b['t'](_0x2f2aa5(0x2a0)),'className':'univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','items':[{'label':_0x458e3b['t'](_0x2f2aa5(0x475)),'panelId':_0x2f2aa5(0x346),'value':_0x2f2aa5(0x2fc)},{'label':_0x458e3b['t'](_0x2f2aa5(0x3ad)),'panelId':_0x2f2aa5(0x3c5),'value':_0x2f2aa5(0x3b3)}],'value':_0x3c5c2a,'variant':_0x2f2aa5(0x236),'onChange':_0x3b57c2}),_0x1af9b('div',{'className':_0x2f2aa5(0x282),'children':_0x3c5c2a===_0x2f2aa5(0x2fc)?_0x48d7b5&&_0x1af9b(ma,{'config':_0x5360aa,'runtime':_0x48d7b5,'tableName':_0x7be981[_0x2f2aa5(0x3aa)],'onChange':_0x460ddb}):_0x1af9b(so,{'config':_0x5360aa,'table':_0x7be981,'onChange':_0x460ddb})})]});}function xo({tableId:_0x541873,unitId:_0x54f24e,viewId:_0x46e86b}){const _0x56fd16=_0x219009;let _0x482871=_0xb3eab7(_0x4a773c),_0x43a5f4=_0xb3eab7(_0x144775),_0x449235=_0xb3eab7(_0x44e345),_0x4d58a2=_0xb3eab7(_0x51de0a),_0x14ad0f=_0xb3eab7(_0x559b79),[_0x1f75a4,_0x4d952c]=_0x277721(null),[_0x367cd7,_0x8c5626]=_0x277721(null),_0x3eb9e9=_0x52068e(_0x56fd16(0x29d)+_0x3dac7b(0x8)),[_0x2a83d0,_0x496242]=_0x277721(!0x1),_0x1ebf80=_0x43a5f4[_0x56fd16(0x225)](_0x54f24e,_0x160ed0[_0x56fd16(0x1b7)]),_0x5ab5f3=_0x1ebf80==null?void 0x0:_0x1ebf80[_0x56fd16(0x206)]()[_0x56fd16(0x44e)][_0x541873],_0x499389=_0x5ab5f3==null?void 0x0:_0x5ab5f3['views'][_0x46e86b],_0x26dd6e=So(_0x499389),_0x393c8a=yr(_0x54f24e,_0x541873,_0x46e86b);if(_0x2153d6(()=>{const _0x2ed3b5=_0x56fd16;if(!_0x26dd6e)return;let _0x1c3085=_0x3eb9e9[_0x2ed3b5(0x2bd)];return _0x14ad0f[_0x2ed3b5(0x3fc)](_0x1c3085,{'unitId':_0x54f24e,'tableId':_0x541873,'viewId':_0x46e86b,'filters':[]}),()=>{const _0x536b8a=_0x2ed3b5;_0x14ad0f[_0x536b8a(0x4a5)](_0x54f24e,_0x1c3085);};},[_0x26dd6e,_0x14ad0f,_0x541873,_0x54f24e,_0x46e86b]),_0x2153d6(()=>{const _0x34696b=_0x56fd16;if(!So(_0x499389))return;let _0x15d9b6=!0x0,_0x1eea0b={'unitId':_0x54f24e,'tableId':_0x541873,'viewId':_0x46e86b,'filters':[_0x499389[_0x34696b(0x498)]??null]};return _0x14ad0f[_0x34696b(0x443)](_0x54f24e,_0x3eb9e9[_0x34696b(0x2bd)],_0x1eea0b)['then'](_0x5bf8d9=>{const _0x37bed5=_0x34696b;_0x15d9b6&&_0x5bf8d9&&(_0x4d952c(_0x5bf8d9),_0x8c5626(_0x14ad0f[_0x37bed5(0x404)](_0x54f24e,_0x3eb9e9[_0x37bed5(0x2bd)])??null),_0x496242(!0x1));})['catch'](_0x401521=>{const _0x2e1b8e=_0x34696b;_0x449235['error'](_0x2e1b8e(0x267),_0x401521),_0x15d9b6&&(_0x4d952c(null),_0x496242(!0x0));}),()=>{_0x15d9b6=!0x1;};},[_0x449235,_0x14ad0f,_0x541873,_0x54f24e,_0x499389,_0x46e86b]),!_0x5ab5f3||!So(_0x499389))return null;let _0x205623=_0x14ad0f[_0x56fd16(0x404)](_0x54f24e,_0x3eb9e9[_0x56fd16(0x2bd)])===_0x367cd7?_0x367cd7:null,_0xd8c43d=_0x1f75a4?_0x52e710('div',{'className':_0x56fd16(0x1f0),'style':{'gridTemplateRows':_0x499389[_0x56fd16(0x2dc)][_0x56fd16(0x343)]===_0x56fd16(0x46f)?'minmax(240px,\x203fr)\x20minmax(180px,\x202fr)':_0x56fd16(0x2a4)},'children':[_0x499389[_0x56fd16(0x2dc)][_0x56fd16(0x343)]!==_0x56fd16(0x328)&&_0x205623&&_0x1af9b(_0x56fd16(0x173),{'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':_0x1af9b(Rr,{'isRowDirection':_0x4562e5(_0x499389[_0x56fd16(0x2dc)][_0x56fd16(0x2fc)][_0x56fd16(0x4b4)]),'runtime':_0x205623})}),_0x499389['config'][_0x56fd16(0x343)]!=='chart'&&_0x1af9b(_0x56fd16(0x173),{'className':_0x56fd16(0x383),'children':_0x1af9b(ji,{'pivot':_0x499389[_0x56fd16(0x2dc)][_0x56fd16(0x3b3)],'view':_0x1f75a4['view']})})]}):_0x1af9b(_0x56fd16(0x173),{'className':_0x56fd16(0x375),'children':_0x2a83d0?_0x4d58a2['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x4d58a2['t'](_0x56fd16(0x1e3))});return _0x52e710(_0x56fd16(0x173),{'className':_0x56fd16(0x20b),'children':[_0x1af9b(_0x56fd16(0x173),{'className':_0x56fd16(0x2ab),'children':_0xd8c43d}),_0x393c8a&&_0x1af9b(bo,{'config':_0x499389['config'],'runtime':_0x205623,'table':_0x5ab5f3,'onChange':_0x4dfb43=>{const _0x12f4a4=_0x56fd16;_0x482871[_0x12f4a4(0x43d)](_0x227312['id'],{'unitId':_0x54f24e,'tableId':_0x541873,'viewId':_0x46e86b,'patch':_0x4dfb43})[_0x12f4a4(0x2c9)](_0x445147=>_0x449235[_0x12f4a4(0x4ab)]('[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.',_0x445147));}})]});}function So(_0x3de623){const _0x3e46bd=_0x219009;return(_0x3de623==null?void 0x0:_0x3de623['type'])===_0x4ec201[_0x3e46bd(0x223)]&&typeof _0x3de623[_0x3e46bd(0x2dc)]=='object'&&_0x3de623[_0x3e46bd(0x2dc)]!==null&&'pivot'in _0x3de623[_0x3e46bd(0x2dc)]&&_0x3e46bd(0x2fc)in _0x3de623[_0x3e46bd(0x2dc)]&&'displayMode'in _0x3de623[_0x3e46bd(0x2dc)];}let Co=class extends _0x2b17e2{constructor(_0x518686,_0x129141,_0x2c0550,_0x27b3b8,_0x14b5fa,_0x26ea08){const _0x3b9149=_0x219009;super(),this['disposeWithMe'](_0x129141[_0x3b9149(0x2c5)]({'type':_0x4ec201['Pivot'],'renderMode':'dom','icon':_0x46a4b4,'component':xo,'menu':{get 'label'(){const _0x43af9c=_0x3b9149;return _0x26ea08['t'](_0x43af9c(0x2a0));},get 'description'(){const _0x5ed53e=_0x3b9149;return _0x26ea08['t'](_0x5ed53e(0x17e));},get 'defaultName'(){return _0x26ea08['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x3b9149(0x418)](_0x518686[_0x3b9149(0x2c5)](wo(_0x2c0550,_0x27b3b8,_0x14b5fa,_0x26ea08)));}};Co=Ar([Y(0x0,_0x475f81),Y(0x1,_0x508eb1),Y(0x2,_0x346fbc(_0x24d6a6)),Y(0x3,_0x4a773c),Y(0x4,_0xd071cb),Y(0x5,_0x346fbc(_0x51de0a))],Co);function wo(_0x40ed24,_0x438636,_0xd8f5e4,_0x571a39){const _0x2a0850=_0x219009;return{'change$':_0x3b3651(_0x40ed24['change$'],_0xd8f5e4[_0x2a0850(0x3e8)]),'component':Xa,get 'labels'(){const _0x2ab9fa=_0x2a0850;return{'add':_0x571a39['t'](_0x2ab9fa(0x301)),'configure':_0x283aa4=>_0x571a39['t']('bases-dashboard-ui.dashboard.configure',_0x283aa4),'delete':_0x571a39['t'](_0x2ab9fa(0x1d7)),'new':_0x571a39['t'](_0x2ab9fa(0x47b)),'rename':_0x571a39['t']('bases-dashboard-ui.dashboard.rename'),'search':_0x571a39['t'](_0x2ab9fa(0x45f)),'section':_0x571a39['t'](_0x2ab9fa(0x289))};},'getItems':_0x386c6b=>{const _0x337f59=_0x2a0850;let _0x5a9963=_0x40ed24[_0x337f59(0x255)](_0x386c6b);return _0x5a9963[_0x337f59(0x48e)][_0x337f59(0x1ae)](_0x1df6c1=>{const _0x393039=_0x337f59;let _0x24d6fe=_0x5a9963[_0x393039(0x3e5)][_0x1df6c1];return _0x24d6fe?[{'id':_0x24d6fe['id'],'name':_0x24d6fe[_0x393039(0x3aa)],'readonly':!_0x108b4a(_0xd8f5e4,_0x386c6b,_0x24d6fe['id'])}]:[];});},'create':async _0x4facf9=>{const _0x3f1158=_0x2a0850;let _0x295998=_0x40ed24['getResource'](_0x4facf9),_0x449cd6='dashboard-'+_0x3dac7b(0x8),_0x48d61d=To(_0x295998[_0x3f1158(0x48e)]['flatMap'](_0x277822=>{const _0x559ee2=_0x3f1158;let _0x4f4c3c=_0x295998[_0x559ee2(0x3e5)][_0x277822];return _0x4f4c3c?[_0x4f4c3c[_0x559ee2(0x3aa)]]:[];}),_0x5b09d2=>_0x571a39['t'](_0x3f1158(0x230),String(_0x5b09d2)));return await _0x438636['executeCommand'](_0x55205b['id'],{'unitId':_0x4facf9,'dashboard':{'id':_0x449cd6,'name':_0x48d61d,'widgetOrder':[],'widgets':{}}})?_0x449cd6:null;},'rename':async(_0x15edcf,_0x49250d,_0x20da3c)=>{const _0x3704d4=_0x2a0850;let _0x441c0e=_0x40ed24[_0x3704d4(0x4ca)](_0x15edcf,_0x49250d);return!!(_0x441c0e&&await _0x438636[_0x3704d4(0x43d)](_0x570003['id'],{'unitId':_0x15edcf,'dashboard':{..._0x441c0e,'name':_0x20da3c}}));},'remove':(_0x52e215,_0x557a65)=>_0x438636[_0x2a0850(0x43d)](_0x4136ca['id'],{'unitId':_0x52e215,'dashboardId':_0x557a65})};}function To(_0x2e0790,_0x1b0209){const _0x2f32f9=_0x219009;let _0x3dd744=new Set(_0x2e0790),_0x20b862=_0x3dd744[_0x2f32f9(0x2b6)]+0x1,_0x50294e=_0x1b0209(_0x20b862);for(;_0x3dd744['has'](_0x50294e);)_0x20b862+=0x1,_0x50294e=_0x1b0209(_0x20b862);return _0x50294e;}let Eo=class extends _0x12151f{constructor(_0x2c5b9c=_r,_0x12ea4a,_0x5b9aa2){const _0x168d81=_0x219009;super(),this[_0x168d81(0x48f)]=_0x2c5b9c,this[_0x168d81(0x23a)]=_0x12ea4a,this[_0x168d81(0x1fa)]=_0x5b9aa2;let {..._0x1c8323}=_0x3d5506({},_r,this['_config']);this['_configService']['setConfig'](gr,_0x1c8323);}[_0x219009(0x1bd)](){const _0x57c75f=_0x219009;this['_injector'][_0x57c75f(0x3e7)]([jr]),this[_0x57c75f(0x23a)][_0x57c75f(0x3e7)]([qr]),this['_injector'][_0x57c75f(0x3e7)]([Co]);}[_0x219009(0x23c)](){const _0xaeb2d5=_0x219009;_0x4a083e(this[_0xaeb2d5(0x23a)],[[jr],[qr],[Co]]);}};Ir(Eo,_0x219009(0x4b9),_0x160ed0[_0x219009(0x1b7)]),Ir(Eo,_0x219009(0x34c),_0x219009(0x218)),Ir(Eo,_0x219009(0x1bf),mr),Ir(Eo,_0x219009(0x39d),hr),Eo=Ar([_0x18504d(_0x138d6e,_0x2eebed,_0x255ca3,_0x559077,_0xd85df1,_0x351b40),Y(0x1,_0x346fbc(_0x9ca0eb)),Y(0x2,_0x5e932d)],Eo);export{ia as UniverBaseDashboardMobileUIPlugin,Eo as UniverBaseDashboardUIPlugin};
1
+ const _0x290871=_0x29b7;(function(_0xa23879,_0x5e535a){const _0x350b28=_0x29b7,_0x2a45f3=_0xa23879();while(!![]){try{const _0x1cd565=parseInt(_0x350b28(0x37f))/0x1+-parseInt(_0x350b28(0x2bd))/0x2*(-parseInt(_0x350b28(0x14a))/0x3)+-parseInt(_0x350b28(0x181))/0x4+parseInt(_0x350b28(0x242))/0x5*(-parseInt(_0x350b28(0x31c))/0x6)+-parseInt(_0x350b28(0x408))/0x7+-parseInt(_0x350b28(0x1cc))/0x8*(-parseInt(_0x350b28(0x1bc))/0x9)+parseInt(_0x350b28(0x429))/0xa;if(_0x1cd565===_0x5e535a)break;else _0x2a45f3['push'](_0x2a45f3['shift']());}catch(_0x393e96){_0x2a45f3['push'](_0x2a45f3['shift']());}}}(_0x5bbc,0xe0c34));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x37eeaf,BASES_DASHBOARD_GRID_COLUMNS as _0x2fad3b,BaseChartRuntimeService as _0xcfb712,BaseDashboardResourceService as _0x1aeb78,BaseDashboardWidgetType as _0x39775d,CreateBaseDashboardCommand as _0x28dee1,DeleteBaseDashboardCommand as _0x1d2c48,RemoveBaseDashboardWidgetCommand as _0x3707f4,UniverBaseDashboardPlugin as _0x528fcf,UpdateBaseDashboardCommand as _0xe5ba16,UpdateBasePivotViewCommand as _0x423077,UpsertBaseDashboardWidgetCommand as _0x2e234a,canEditBaseDashboard as _0x353928,canEditBasePivotView as _0x1db759,createBasePivotTable as _0x2abd9d,resolveBasePivotChartRowDirection as _0x52d288}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x32f41c,BaseMobileDrawer as _0x3da581,BaseMobileFilterOperand as _0x28df3d,BaseMobileFilterPanel as _0xdfeac7,BaseUnitCollaborationStatus as _0xd9e87c,FormulaEditorPanel as _0x461c68,IBaseDashboardUIExtensionRegistryService as _0x73fa49,IBaseViewUIRegistryService as _0x33fef6,MobileFormulaEditorPanel as _0x558efe,UniverBasesMobileUIPlugin as _0x221667,UniverBasesUIPlugin as _0x2ed41f,formulaToEditorFormula as _0x3cad2e,normalizeEditorFormulaForConfig as _0x1a63bf,toFormulaMenuTables as _0x3134ee,toMenuFields as _0x5dcd9e}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x1bd142,ChartAxisSection as _0xaa8939,ChartColorField as _0x43bcb4,ChartCommonDataMappingSection as _0x362f58,ChartEditBlockTitle as _0xce0d39,ChartEditPanel as _0x1199fe,ChartEditPanelSection as _0x111171,ChartEditPanelTab as _0x147b03,ChartEditPanelTabs as _0xbfe45a,ChartEditorCapability as _0x518183,ChartEditorProvider as _0x32b767,ChartFunnelStyleSection as _0x5e8635,ChartGradientFillField as _0x309fc7,ChartGridlinesAndTicksSection as _0x54cf11,ChartHeatmapStyleSection as _0x48cea1,ChartHostAdapter as _0x1be047,ChartIndicatorLineSection as _0x5b0ede,ChartLegendSection as _0x179da2,ChartLineAndAreaSection as _0x4ec390,ChartNumberFormatAtom as _0x3f6633,ChartParetoSeriesSection as _0x4ad9db,ChartPieStyleSection as _0x36413b,ChartRadarStyleSection as _0x1ef123,ChartRelationStyleSection as _0x1271d5,ChartSectionAccordion as _0x1b215e,ChartSectionAccordionContent as _0x50d9e3,ChartSectionAccordionItem as _0x410c47,ChartSectionAccordionTrigger as _0x4a23d8,ChartSeriesSection as _0x126708,ChartStackField as _0x11955e,ChartStyleSection as _0x3488e9,ChartThemeField as _0xdeb132,ChartThreeDSection as _0x2dcd87,ChartTitlesSection as _0x5bf2da,ChartTrendlineSection as _0x452c9a,ChartTypeField as _0x3e755e,ChartTypeSpecificDataSection as _0x311d22,ChartTypeSpecificSetupSection as _0x3c8f1a,ChartTypeSpecificStyleSection as _0x5d8d27,ChartUIService as _0x19ef03,ChartViewStateRegistry as _0x598437,ChartWaterfallSetupFields as _0x41d408,ChartWaterfallStyleSection as _0x271332,ChartWordCloudStyleSection as _0x3b9d11,DEFAULT_CHART_AXIS_VALUES as _0x2dd039,DEFAULT_CHART_FUNNEL_VALUES as _0x5cde1d,DEFAULT_CHART_HEATMAP_VALUES as _0x380efc,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x204acd,DEFAULT_CHART_LEGEND_VALUES as _0x492f3b,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x2c3d74,DEFAULT_CHART_PARETO_VALUES as _0x2602cf,DEFAULT_CHART_PIE_VALUES as _0x51c1c6,DEFAULT_CHART_RADAR_VALUES as _0x2f51cf,DEFAULT_CHART_RELATION_VALUES as _0x20d453,DEFAULT_CHART_SERIES_VALUES as _0x3f5b1f,DEFAULT_CHART_STYLE_VALUES as _0x44b136,DEFAULT_CHART_TITLE_VALUES as _0x53b57d,DEFAULT_CHART_TRENDLINE_VALUES as _0x23fc75,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x3cf6dc,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x2841cd,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x4bd002,MobileChartEditorControls as _0x231698,MobileChartEditorProvider as _0x371701,UniverChartMobileUIPlugin as _0x500bc9,UniverChartUIPlugin as _0xc5d54f,buildChartTypeSelectOptions as _0x2ed067,chartTypeSupportsCapability as _0x1d4e5d,chartTypeSupportsLineAndAreaStyle as _0x422d44,useChartEditorChartType as _0x3b67f6,useChartEditorHasRightAxis as _0x1f9302}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x47a995}from'@univerjs-pro/license';import{ShapeFormulaService as _0x23e297,UniverShapeEditorPlugin as _0x48b358,createFormulaShapeData as _0x501502}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0x5e006f,BaseFilterConjunction as _0x369900,BaseFilterOperator as _0x5cc925,BaseViewType as _0x3744eb,DependentOn as _0x3bb5e2,Disposable as _0x92f3c1,ICommandService as _0x299365,IConfigService as _0x32ba7f,IImageIoService as _0x1c9925,ILogService as _0x104d80,IPermissionService as _0x3813b4,IUndoRedoService as _0x2ce242,IUniverInstanceService as _0x5abbf9,ImageSourceType as _0x2b3585,Inject as _0x106e69,Injector as _0x117569,LocaleService as _0x4b0f72,ObjectPermissionService as _0x2a9732,Plugin as _0x447642,RedoCommand as _0x40e22e,ThemeService as _0x32e309,UndoCommand as _0x2cf828,UniverInstanceType as _0x1516ee,createParagraphId as _0x2900cb,dateKit as _0x1a7bb5,debounce as _0x5d60c1,generateRandomId as _0x89ef13,merge as _0x4fa520,numfmt as _0x488061,touchDependencies as _0x49d35e}from'@univerjs/core';import{UniverDocsUIPlugin as _0x542cb3}from'@univerjs/docs-ui';import{ArrowDownIcon as _0x402220,ArrowUpIcon as _0x12ff8f,AscendingIcon as _0x16058f,CalendarIcon as _0x2ac587,ChartIcon as _0x3c5010,CloseIcon as _0x2f343c,DeleteIcon as _0x152022,DescendingIcon as _0x39dc4f,ExpandIcon as _0x552f90,FilterIcon as _0x27cd4d,GripVerticalIcon as _0x4cfa50,IncreaseIcon as _0x2dc2bd,MoreDownIcon as _0xed8c69,MoreHorizontalIcon as _0x37e5b5,NumberIcon as _0x15cd07,PenIcon as _0xd735a9,PivotTableIcon as _0x3abb8f,ProtectIcon as _0x1352c6,RedoIcon as _0x9c5a81,SearchIcon as _0x282ad6,TextIcon as _0x277b88,UndoIcon as _0x4dc9e7}from'@univerjs/icons';import{combineLatest as _0x35c468,map as _0x263c89,merge as _0x5d4904,skip as _0x43c3f6}from'rxjs';import{SetBasePermissionCommand as _0x3c4b15,getBaseDashboardPermissionObjectId as _0x3a0eab}from'@univerjs-pro/bases';import{IAttachmentIoService as _0xdb66e}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x2d3577,ShapeLineTypeEnum as _0x354b42,ShapeTypeEnum as _0x25ce73}from'@univerjs-pro/engine-shape';import{Button as _0x5d2b24,Checkbox as _0x283511,DatePicker as _0x34c307,Dialog as _0x446051,DropdownMenu as _0x4acc99,Input as _0x448a93,InputNumber as _0x2963f5,MobileDialog as _0x5992e1,MobileDropdownMenu as _0xb4f8a7,MobileSelect as _0x366613,MultipleSelect as _0x2eb6e4,Segmented as _0x4110dc,Select as _0x296606,Textarea as _0x27cc24,Tooltip as _0x9a071a,borderClassName as _0x434c98,clsx as _0x2c3136,scrollbarClassName as _0x443bf8}from'@univerjs/design';import{UnitObject as _0x1d0cb1}from'@univerjs/protocol';import{ILayoutService as _0x23e99d,ObjectPermissionButton as _0x276888,openObjectPermissionDialog as _0xaa0c2a,useDependency as _0xe276a8,useObservable as _0x45d384}from'@univerjs/ui';import{useCallback as _0x12bed3,useEffect as _0x330c05,useMemo as _0x50478e,useRef as _0x3987b,useState as _0x3f626c}from'react';import{Fragment as _0x42483e,jsx as _0x414ebe,jsxs as _0x3c00a1}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x4b80d0,ChartRenderMode as _0x1d5083,ChartThemeService as _0x3d43ec,ChartTypeBits as _0x376127,ChartWaterfallStyleTarget as _0x34ed53,IChartRenderModelManagerService as _0x3f88ee,RTLChartStyle as _0x38bf7d,chartBitsUtils as _0x4ec613,chartTypeCanUseTrendLine as _0x2db1ff,resolveChartRuntimeStyle as _0x495002,resolveDefaultChartHostFrameStyle as _0x568c1b,toChartModelUpdate as _0x2d72ce}from'@univerjs-pro/engine-chart';import{createPortal as _0x17d46a}from'react-dom';import{PivotCellStyleTypeEnum as _0x57b037,PivotDataFieldDataTypeEnum as _0x3a56c2,PivotDataFieldSortOperatorEnum as _0x34bdeb,PivotFilterTypeEnum as _0x101c58,PivotLayoutTypeEnum as _0x5c7745,PivotSubtotalPositionEnum as _0x1c5136,PivotSubtotalTypeEnum as _0x358af4,PivotTableFiledAreaEnum as _0x1b52e3,PivotTableValuePositionEnum as _0x3d12ff,isErrorValue as _0xb054a9,isPrefixValue as _0x2a61e8}from'@univerjs-pro/engine-pivot';var mr=_0x290871(0x269),hr=_0x290871(0x422);const gr='bases-dashboard-ui.config',_r={};function vr(_0x40d162,_0x40ba40){const _0x1d7032=_0x290871;let _0x1e5a06=_0xe276a8(_0x3813b4),_0x12046d=_0x353928(_0x1e5a06,_0x40d162,_0x40ba40);return _0x45d384(()=>_0x1e5a06[_0x1d7032(0x2ef)]['pipe'](_0x263c89(()=>_0x353928(_0x1e5a06,_0x40d162,_0x40ba40))),_0x12046d,!0x1,[_0x40ba40,_0x1e5a06,_0x40d162]);}function yr(_0x1d6053,_0x3078de,_0x3bd468){const _0x11567f=_0x290871;let _0x549b49=_0xe276a8(_0x3813b4),_0x4c4fce=_0x1db759(_0x549b49,_0x1d6053,_0x3078de,_0x3bd468);return _0x45d384(()=>_0x549b49[_0x11567f(0x2ef)][_0x11567f(0x453)](_0x263c89(()=>_0x1db759(_0x549b49,_0x1d6053,_0x3078de,_0x3bd468))),_0x4c4fce,!0x1,[_0x549b49,_0x3078de,_0x1d6053,_0x3bd468]);}function br(_0x59b9a3,_0xb5f9d7=_0x290871(0x257)){const _0x40e495=_0x290871;return{'backgroundImage':_0x40e495(0x1fd)+JSON[_0x40e495(0x32a)](_0x59b9a3)+')','backgroundPosition':_0xb5f9d7==='repeat'?_0x40e495(0x1c9):_0x40e495(0x15d),'backgroundRepeat':_0xb5f9d7===_0x40e495(0x413)?'repeat':'no-repeat','backgroundSize':_0xb5f9d7===_0x40e495(0x257)?_0x40e495(0x257):'auto'};}const xr={'alignment':_0x290871(0x2f9),'currency':_0x290871(0x376),'decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x290871(0x449),'numberFormat':_0x290871(0x3ae)},Sr={'CNY':'¥','EUR':'€','USD':'$'};function Cr(_0x4b5f1c){const _0x3e45eb=_0x290871;var _0x1bd2e4;let _0x441869=Dr(((_0x1bd2e4=_0x4b5f1c[_0x3e45eb(0x3c7)][_0x3e45eb(0x3c0)])==null||(_0x1bd2e4=_0x1bd2e4[_0x3e45eb(0x262)])==null?void 0x0:_0x1bd2e4[_0x3e45eb(0x30a)])??'');return{...xr,..._0x441869,..._0x4b5f1c['appearance']};}function wr(_0x20bbc0,_0x176122){const _0x108ab5=_0x290871;let _0x9ae2d0={..._0x20bbc0['appearance'],..._0x176122},_0x3246c5=Cr({..._0x20bbc0,'appearance':_0x9ae2d0}),_0x4b53e1=_0x20bbc0[_0x108ab5(0x3c7)]['formulaBinding']??{'formula':''};return{..._0x20bbc0,'appearance':_0x9ae2d0,'shapeData':{..._0x20bbc0[_0x108ab5(0x3c7)],'formulaBinding':{..._0x4b53e1,'numberFormat':{'pattern':Tr(_0x3246c5['numberFormat'],_0x3246c5[_0x108ab5(0x2d6)],_0x3246c5[_0x108ab5(0x3c6)])}}}};}function Tr(_0x4da4a2,_0x36fcb7,_0x3abe82){const _0x3e6cc3=_0x290871;let _0x2dc790=Math[_0x3e6cc3(0x399)](0x0,Math[_0x3e6cc3(0x459)](0x8,Math['round'](_0x36fcb7))),_0x1352d2=_0x2dc790?'.'+'0'['repeat'](_0x2dc790):'';switch(_0x4da4a2){case _0x3e6cc3(0x475):return'0'+_0x1352d2;case'percent':return'0'+_0x1352d2+'%';case _0x3e6cc3(0x3c6):return(Sr[_0x3abe82]??_0x3abe82)+_0x3e6cc3(0x172)+_0x1352d2;case _0x3e6cc3(0x146):return'#,##0'+_0x1352d2;case'compact':case _0x3e6cc3(0x3ae):return'General';}}function Er(_0x34187d,_0x11bd70,_0x1c6aee){const _0x4a7541=_0x290871;return _0x1c6aee[_0x4a7541(0x262)]!==_0x4a7541(0x177)||typeof _0x11bd70!=_0x4a7541(0x475)||!Number[_0x4a7541(0x433)](_0x11bd70)?_0x34187d:new Intl[(_0x4a7541(0x174))](void 0x0,{'notation':_0x4a7541(0x177),'minimumFractionDigits':_0x1c6aee[_0x4a7541(0x2d6)]??0x0,'maximumFractionDigits':_0x1c6aee[_0x4a7541(0x2d6)]??0x0})[_0x4a7541(0x30f)](_0x11bd70);}function Dr(_0x472b9e){const _0x46547d=_0x290871;var _0x100e20,_0x11c036;if(!_0x472b9e||_0x472b9e===_0x46547d(0x201))return{};let _0x4c6f73=_0x472b9e['match'](/\.([0#]+)/),_0x1a3eea=(_0x4c6f73==null||(_0x100e20=_0x4c6f73[0x1])==null?void 0x0:_0x100e20[_0x46547d(0x151)])??0x0;if(_0x472b9e[_0x46547d(0x424)]('%'))return{'decimalPlaces':_0x1a3eea,'numberFormat':_0x46547d(0x261)};let _0x114f84=(_0x11c036=Object[_0x46547d(0x47e)](Sr)[_0x46547d(0x47f)](([,_0x1de319])=>_0x472b9e[_0x46547d(0x424)](_0x1de319)))==null?void 0x0:_0x11c036[0x0];return _0x114f84?{'currency':_0x114f84,'decimalPlaces':_0x1a3eea,'numberFormat':_0x46547d(0x3c6)}:{'decimalPlaces':_0x1a3eea,'numberFormat':_0x472b9e[_0x46547d(0x424)](',')?'grouped':_0x46547d(0x475)};}const Or={'center':_0x290871(0x15d),'left':'flex-start','right':_0x290871(0x1c1)};function kr({dashboardId:_0x4dc65f,unitId:_0xb5111f,widget:_0x59bd8e}){const _0x28f407=_0x290871;var _0x47c625,_0x2cf0b7,_0x56e677,_0x2e9d52,_0x3bf4aa,_0x3f9099,_0x12ab64,_0x3dbdd1,_0x1b7464;let _0x50f7ab=_0xe276a8(_0x23e297),_0x442486=_0xe276a8(_0x1c9925),_0x48ce53=_0xe276a8(_0x4b0f72),_0x6c210e=_0x50478e(()=>({'hostType':_0x1516ee[_0x28f407(0x3c2)],'unitId':_0xb5111f,'subUnitId':_0x4dc65f,'shapeId':_0x59bd8e['id']}),[_0x4dc65f,_0xb5111f,_0x59bd8e['id']]),[_0x17c03e,_0x3a47bd]=_0x3f626c(()=>_0x50f7ab[_0x28f407(0x32c)](_0x6c210e)),[_0x1abd7a,_0x1d8983]=_0x3f626c(()=>{const _0x59d189=_0x28f407;var _0x2ec5a0;return(_0x2ec5a0=_0x50f7ab[_0x59d189(0x3ab)](_0x6c210e))==null?void 0x0:_0x2ec5a0[_0x59d189(0x1c2)];}),[_0x1c764b,_0x15ef70]=_0x3f626c(),_0x9db26f=_0x3987b(null),_0x1defa5=_0x3987b(null),_0x464c39=Cr(_0x59bd8e);_0x330c05(()=>{const _0xb300db=_0x28f407;let _0x4a8eb4=_0x50f7ab[_0xb300db(0x256)][_0xb300db(0x3e3)](_0x4930f9=>{const _0x222426=_0xb300db;_0x4930f9['unitId']===_0xb5111f&&_0x4930f9[_0x222426(0x3ce)]===_0x4dc65f&&_0x4930f9['shapeId']===_0x59bd8e['id']&&(_0x3a47bd(_0x4930f9[_0x222426(0x13f)]),_0x1d8983(_0x4930f9[_0x222426(0x1e0)][_0x222426(0x1c2)]));});return()=>_0x4a8eb4[_0xb300db(0x471)]();},[_0x4dc65f,_0x50f7ab,_0x6c210e,_0xb5111f,_0x59bd8e['id']]),_0x330c05(()=>{const _0xfc230a=_0x28f407;let _0x4879d9=_0x464c39['backgroundImage'];if(!_0x4879d9||_0x4879d9[_0xfc230a(0x260)]!==_0x2b3585[_0xfc230a(0x320)])return;let _0x5072f1=_0x442486[_0xfc230a(0x322)](_0x4879d9[_0xfc230a(0x237)],_0x4879d9[_0xfc230a(0x260)]);if(_0x5072f1!=null&&_0x5072f1[_0xfc230a(0x2f2)])return;let _0x4ce82e=!0x0;return _0x442486[_0xfc230a(0x235)](_0x4879d9['source'])[_0xfc230a(0x1fb)](_0x2434e4=>{_0x4ce82e&&_0x15ef70({'source':_0x4879d9['source'],'value':_0x2434e4});})[_0xfc230a(0x147)](()=>void 0x0),()=>{_0x4ce82e=!0x1;};},[_0x464c39[_0x28f407(0x313)],_0x442486]);let _0x746a49=((_0x47c625=_0x464c39[_0x28f407(0x313)])==null?void 0x0:_0x47c625[_0x28f407(0x260)])===_0x2b3585[_0x28f407(0x320)]?((_0x2cf0b7=_0x442486[_0x28f407(0x322)](_0x464c39[_0x28f407(0x313)][_0x28f407(0x237)],_0x464c39['backgroundImage'][_0x28f407(0x260)]))==null?void 0x0:_0x2cf0b7[_0x28f407(0x2f2)])??((_0x1c764b==null?void 0x0:_0x1c764b[_0x28f407(0x237)])===_0x464c39['backgroundImage'][_0x28f407(0x237)]?_0x1c764b['value']:''):((_0x56e677=_0x464c39['backgroundImage'])==null?void 0x0:_0x56e677['source'])??'',_0x348a9a=_0x59bd8e[_0x28f407(0x3c7)][_0x28f407(0x200)],_0x32ff1f=_0x348a9a&&_0x28f407(0x400)in _0x348a9a?(_0x2e9d52=_0x348a9a['dataModel'])==null?void 0x0:_0x2e9d52[_0x28f407(0x3ea)]:void 0x0,_0x40b596=Er((_0x17c03e==null?void 0x0:_0x17c03e[_0x28f407(0x476)])??'',_0x1abd7a,_0x464c39),_0x32e0cf=_0x59bd8e['shapeData']['fill'],_0x24e453=_0x59bd8e[_0x28f407(0x3c7)]['stroke'],_0x364791=_0x32ff1f==null||(_0x3bf4aa=_0x32ff1f[_0x28f407(0x3e2)])==null?void 0x0:_0x3bf4aa[_0x28f407(0x2e4)],_0x41808b=_0x59bd8e[_0x28f407(0x451)]??_0x59bd8e[_0x28f407(0x43d)]??'';return _0x330c05(()=>{const _0xd5e16d=_0x28f407;let _0x42fb06=_0x9db26f[_0xd5e16d(0x2e7)],_0xe6b723=_0x1defa5[_0xd5e16d(0x2e7)];if(!_0x42fb06||!_0xe6b723)return;let _0x4ff7e2=()=>{const _0x208d10=_0xd5e16d;if(_0x464c39[_0x208d10(0x307)]===_0x208d10(0x3b7)||!_0x42fb06[_0x208d10(0x44c)]||!_0x42fb06[_0x208d10(0x3b3)]){_0xe6b723[_0x208d10(0x148)][_0x208d10(0x1a7)]=_0x464c39[_0x208d10(0x1a7)]+'px';return;}let _0x345add=0x1,_0x672e90=0x48,_0x6d5336=_0x345add;for(;_0x345add<=_0x672e90;){let _0x275d3f=Math[_0x208d10(0x16d)]((_0x345add+_0x672e90)/0x2);_0xe6b723[_0x208d10(0x148)][_0x208d10(0x1a7)]=_0x275d3f+'px',_0xe6b723[_0x208d10(0x2ab)]<=_0x42fb06[_0x208d10(0x44c)]&&_0xe6b723[_0x208d10(0x41e)]<=_0x42fb06['clientHeight']?(_0x6d5336=_0x275d3f,_0x345add=_0x275d3f+0x1):_0x672e90=_0x275d3f-0x1;}_0xe6b723[_0x208d10(0x148)][_0x208d10(0x1a7)]=_0x6d5336+'px';};if(_0x4ff7e2(),typeof ResizeObserver>'u')return;let _0x2ae31a=new ResizeObserver(_0x4ff7e2);return _0x2ae31a[_0xd5e16d(0x1a1)](_0x42fb06),()=>_0x2ae31a[_0xd5e16d(0x246)]();},[_0x464c39['fontSize'],_0x464c39[_0x28f407(0x307)],_0x40b596]),_0x3c00a1('div',{'data-dashboard-formula-shape':_0x59bd8e['id'],'className':_0x28f407(0x143),'style':{'backgroundColor':((_0x3f9099=_0x59bd8e[_0x28f407(0x366)])==null?void 0x0:_0x3f9099['backgroundColor'])??((_0x32e0cf==null?void 0x0:_0x32e0cf[_0x28f407(0x2b2)])===_0x2d3577['SolidFill']?_0x32e0cf[_0x28f407(0x458)]??void 0x0:void 0x0),'border':(_0x24e453==null?void 0x0:_0x24e453[_0x28f407(0x40e)])===_0x354b42[_0x28f407(0x20f)]?(_0x24e453[_0x28f407(0x361)]??0x1)+_0x28f407(0x25d)+(_0x24e453[_0x28f407(0x458)]??_0x28f407(0x327)):void 0x0,'borderRadius':_0x59bd8e[_0x28f407(0x46d)]===_0x25ce73['RoundRect']?0xc:void 0x0,'color':((_0x12ab64=_0x59bd8e[_0x28f407(0x366)])==null?void 0x0:_0x12ab64[_0x28f407(0x467)])??(_0x17c03e==null?void 0x0:_0x17c03e[_0x28f407(0x458)])??(_0x364791==null||(_0x3dbdd1=_0x364791['cl'])==null?void 0x0:_0x3dbdd1['rgb'])??void 0x0,'fontWeight':_0x364791!=null&&_0x364791['bl']?0x258:void 0x0,'textAlign':_0x464c39[_0x28f407(0x1f6)]},'children':[_0x746a49&&_0x414ebe(_0x28f407(0x19c),{'src':_0x746a49,'alt':'','aria-hidden':_0x28f407(0x2b6),'className':_0x28f407(0x179),'style':{'objectFit':((_0x1b7464=_0x464c39[_0x28f407(0x313)])==null?void 0x0:_0x1b7464['fit'])??_0x28f407(0x257)}}),_0x3c00a1(_0x28f407(0x384),{'className':'univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','children':[_0x41808b&&_0x414ebe(_0x28f407(0x384),{'data-dashboard-formula-description':!0x0,'className':_0x28f407(0x248),'children':_0x41808b}),_0x414ebe(_0x28f407(0x384),{'ref':_0x9db26f,'data-dashboard-formula-value':!0x0,'aria-label':_0x41808b||_0x48ce53['t'](_0x28f407(0x1d2)),'className':_0x28f407(0x2f4),'style':{'justifyContent':Or[_0x464c39['alignment']]},'children':_0x414ebe(_0x28f407(0x415),{'ref':_0x1defa5,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x464c39[_0x28f407(0x307)],'className':_0x28f407(0x1fc),'children':_0x40b596})})]})]});}function Y(_0x8359a9,_0x460fb6){return function(_0x5a568b,_0x13e07b){_0x460fb6(_0x5a568b,_0x13e07b,_0x8359a9);};}function Ar(_0x497249,_0x365144,_0x4b4a14,_0x3d84f0){const _0x3e25e2=_0x290871;var _0x17d0d2=arguments['length'],_0x2a741d=_0x17d0d2<0x3?_0x365144:_0x3d84f0===null?_0x3d84f0=Object[_0x3e25e2(0x28e)](_0x365144,_0x4b4a14):_0x3d84f0,_0x22f8b4;if(typeof Reflect==_0x3e25e2(0x30e)&&typeof Reflect['decorate']==_0x3e25e2(0x3e7))_0x2a741d=Reflect[_0x3e25e2(0x1b3)](_0x497249,_0x365144,_0x4b4a14,_0x3d84f0);else{for(var _0x1e7004=_0x497249[_0x3e25e2(0x151)]-0x1;_0x1e7004>=0x0;_0x1e7004--)(_0x22f8b4=_0x497249[_0x1e7004])&&(_0x2a741d=(_0x17d0d2<0x3?_0x22f8b4(_0x2a741d):_0x17d0d2>0x3?_0x22f8b4(_0x365144,_0x4b4a14,_0x2a741d):_0x22f8b4(_0x365144,_0x4b4a14))||_0x2a741d);}return _0x17d0d2>0x3&&_0x2a741d&&Object['defineProperty'](_0x365144,_0x4b4a14,_0x2a741d),_0x2a741d;}let jr=class{constructor(_0x22ff9e,_0x14f478,_0xb99c51){this['_localeService']=_0x22ff9e,this['_chartThemeService']=_0x14f478,this['_renderModelManager']=_0xb99c51;}['createDomChartInstance'](){const _0x469eb1=_0x290871;return this['_renderModelManager'][_0x469eb1(0x1e1)](_0x1d5083[_0x469eb1(0x2fc)],this[_0x469eb1(0x1e4)]());}[_0x290871(0x2c2)](_0x3f7bc9){const _0x5550a7=_0x290871;let _0x3f79e0=_0x3f7bc9[_0x5550a7(0x1cd)]['config'];if(!_0x3f79e0)throw Error('Base\x20dashboard\x20chart\x20'+_0x3f7bc9['chartId']+_0x5550a7(0x3d6));let _0x4109cf=this[_0x5550a7(0x1c7)]['getDirection']();return{'config':_0x3f79e0,'style':_0x495002({..._0x3f7bc9['model'][_0x5550a7(0x148)],'runtime':_0x3f7bc9[_0x5550a7(0x1cd)]['getRuntimeContext'](_0x4109cf),'direction':_0x4109cf},_0x3f79e0['type'])};}[_0x290871(0x1e4)](){const _0x5262c8=_0x290871;return{'resolveHostStyle':({style:_0x127ea0})=>_0x568c1b({'style':_0x127ea0,'getRenderColor':_0x1f5de3=>this[_0x5262c8(0x2dc)][_0x5262c8(0x2b4)](_0x1f5de3)}),'resolveRenderBackgroundColor':({hostStyle:_0x31a9f0})=>_0x31a9f0[_0x5262c8(0x1b2)]};}};jr=Ar([Y(0x0,_0x106e69(_0x4b0f72)),Y(0x1,_0x106e69(_0x3d43ec)),Y(0x2,_0x3f88ee)],jr);function Mr(_0x39aef8,_0x5080e2){const _0xdceca5=_0x290871;var _0x177f6a;_0x39aef8[_0xdceca5(0x148)]['backgroundColor']=_0x5080e2[_0xdceca5(0x1b2)]??_0xdceca5(0x46e),_0x39aef8[_0xdceca5(0x148)][_0xdceca5(0x329)]=(_0x177f6a=_0x5080e2[_0xdceca5(0x329)])!=null&&_0x177f6a[_0xdceca5(0x458)]&&_0x5080e2[_0xdceca5(0x329)][_0xdceca5(0x361)]?_0x5080e2[_0xdceca5(0x329)][_0xdceca5(0x361)]+_0xdceca5(0x25d)+_0x5080e2[_0xdceca5(0x329)][_0xdceca5(0x458)]:'',_0x39aef8[_0xdceca5(0x148)][_0xdceca5(0x28c)]=_0x5080e2['radius']?_0x5080e2[_0xdceca5(0x2e1)]+'px':'',_0x39aef8[_0xdceca5(0x148)]['overflow']=_0xdceca5(0x1b5),_0x39aef8[_0xdceca5(0x148)][_0xdceca5(0x390)]=_0xdceca5(0x35b);}function Nr(_0x2c23b2){'@babel/helpers - typeof';const _0xc2875c=_0x290871;return Nr=typeof Symbol=='function'&&typeof Symbol['iterator']==_0xc2875c(0x436)?function(_0x4cf923){return typeof _0x4cf923;}:function(_0x1db7cd){const _0x3c528f=_0xc2875c;return _0x1db7cd&&typeof Symbol==_0x3c528f(0x3e7)&&_0x1db7cd[_0x3c528f(0x41a)]===Symbol&&_0x1db7cd!==Symbol[_0x3c528f(0x1ac)]?_0x3c528f(0x436):typeof _0x1db7cd;},Nr(_0x2c23b2);}function Pr(_0x27d413,_0x4b6049){const _0x373743=_0x290871;if(Nr(_0x27d413)!=_0x373743(0x30e)||!_0x27d413)return _0x27d413;var _0x40654f;if(typeof Symbol<'u'&&(_0x40654f=_0x27d413[Symbol[_0x373743(0x1bd)]])!==void 0x0){var _0x56987c=_0x40654f[_0x373743(0x358)](_0x27d413,_0x4b6049||_0x373743(0x22e));if(Nr(_0x56987c)!=_0x373743(0x30e))return _0x56987c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4b6049==='string'?String:Number)(_0x27d413);}function Fr(_0x2792e6){const _0x47a762=_0x290871;var _0x5f111b=Pr(_0x2792e6,_0x47a762(0x26b));return Nr(_0x5f111b)=='symbol'?_0x5f111b:_0x5f111b+'';}function Ir(_0x39a603,_0x2587a3,_0x237216){const _0x2630ab=_0x290871;return(_0x2587a3=Fr(_0x2587a3))in _0x39a603?Object[_0x2630ab(0x30c)](_0x39a603,_0x2587a3,{'value':_0x237216,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x39a603[_0x2587a3]=_0x237216,_0x39a603;}var Lr=class extends _0x92f3c1{constructor(_0x2f1342,_0x65d16f){const _0x9095cf=_0x290871;super(),this[_0x9095cf(0x385)]=_0x2f1342,this[_0x9095cf(0x3ee)]=_0x65d16f,Ir(this,'mode',_0x1d5083[_0x9095cf(0x2fc)]);}[_0x290871(0x27d)](){const _0x23934e=_0x290871;return{'width':Math[_0x23934e(0x399)](0x1,this[_0x23934e(0x3ee)]['clientWidth']),'height':Math[_0x23934e(0x399)](0x1,this[_0x23934e(0x3ee)]['clientHeight'])};}[_0x290871(0x2f8)](_0x2377f6){const _0x533c44=_0x290871;Mr(this[_0x533c44(0x3ee)],_0x2377f6);}async[_0x290871(0x205)](){const _0x39a7a7=_0x290871;return this[_0x39a7a7(0x3ee)];}[_0x290871(0x168)](){const _0x1aa4d9=_0x290871;return this[_0x1aa4d9(0x3ee)][_0x1aa4d9(0x3fe)];}['syncLayout'](){}[_0x290871(0x346)](){}[_0x290871(0x290)](){}};function Rr({isRowDirection:_0x4bde5e,runtime:_0x5095e6}){const _0x164f9c=_0x290871;let _0x48f3e2=_0x3987b(null),_0x538018=_0xe276a8(_0x4b0f72),_0x17839b=_0xe276a8(_0x104d80),_0x150782=_0xe276a8(jr),_0x4b3664=_0xe276a8(_0x32e309);return _0x330c05(()=>{const _0x3114ac=_0x29b7;let _0x29ab17=_0x48f3e2[_0x3114ac(0x2e7)];if(!_0x29ab17)return;_0x29ab17['replaceChildren']();let {chartId:_0x587950,model:_0x536b0a}=_0x5095e6,_0x470420=_0x536b0a[_0x3114ac(0x431)],_0x5cd8eb=new Lr(_0x587950,_0x29ab17),_0x376eee=_0x150782[_0x3114ac(0x2cb)](),_0xfc65a2=!0x1,_0x52b847=null,_0x5d441b=null,_0x40a0d3=null,_0x1d05ed=null,_0x4c1d5d=!0x1,_0x543248=!0x1,_0x3daac5=Promise[_0x3114ac(0x215)]();_0x376eee[_0x3114ac(0x265)](_0x5cd8eb);let _0x55f91f=()=>{const _0x3a0d60=_0x3114ac;var _0xe3079a,_0x528e06,_0x254c8b,_0x52a7ea;if(document[_0x3a0d60(0x3ec)]===_0x3a0d60(0x1b5)||(_0xe3079a=(_0x528e06=window)['matchMedia'])!=null&&(_0xe3079a=_0xe3079a[_0x3a0d60(0x358)](_0x528e06,_0x3a0d60(0x37d)))!=null&&_0xe3079a[_0x3a0d60(0x18c)]||(_0x254c8b=(_0x52a7ea=window)[_0x3a0d60(0x39a)])!=null&&(_0x254c8b=_0x254c8b[_0x3a0d60(0x358)](_0x52a7ea,_0x3a0d60(0x30d)))!=null&&_0x254c8b[_0x3a0d60(0x18c)]||!_0x29ab17[_0x3a0d60(0x3fe)])return!0x1;let _0x390e9d=_0x29ab17[_0x3a0d60(0x439)]();return _0x390e9d['width']>0x0&&_0x390e9d[_0x3a0d60(0x45c)]>0x0&&_0x390e9d[_0x3a0d60(0x33f)]>0x0&&_0x390e9d[_0x3a0d60(0x314)]>0x0&&_0x390e9d[_0x3a0d60(0x2f9)]<window[_0x3a0d60(0x21e)]&&_0x390e9d[_0x3a0d60(0x392)]<window['innerHeight'];},_0x37b043=()=>{const _0x3a1bff=_0x3114ac;_0x5d441b!==null&&clearTimeout(_0x5d441b),_0x29ab17[_0x3a1bff(0x410)][_0x3a1bff(0x43c)]='true',_0x29ab17[_0x3a1bff(0x410)][_0x3a1bff(0x238)]=String(_0x4b80d0),_0x5d441b=setTimeout(()=>{const _0x59c8e6=_0x3a1bff;_0x5d441b=null,delete _0x29ab17['dataset'][_0x59c8e6(0x43c)],delete _0x29ab17[_0x59c8e6(0x410)][_0x59c8e6(0x238)];},_0x4b80d0);},_0x52a6fe=_0x5d60c1(()=>{const _0x14b3b4=_0x3114ac;if(_0xfc65a2||(_0x52b847!==null&&(clearTimeout(_0x52b847),_0x52b847=null),!_0x536b0a[_0x14b3b4(0x193)]))return;let _0x2dccb1=_0x543248;_0x543248=!0x1,_0x29ab17['dataset'][_0x14b3b4(0x21c)]=String(_0x536b0a[_0x14b3b4(0x21c)]),_0x29ab17[_0x14b3b4(0x410)][_0x14b3b4(0x1ec)]=String(_0x4bde5e);let _0xf8c827=_0x150782[_0x14b3b4(0x2c2)](_0x5095e6),_0x42c889={'chartId':_0x587950,'config':_0xf8c827[_0x14b3b4(0x193)],'style':_0xf8c827[_0x14b3b4(0x148)]};_0x3daac5=_0x3daac5[_0x14b3b4(0x1fb)](async()=>{const _0x1d744f=_0x14b3b4;_0xfc65a2||(_0x29ab17[_0x1d744f(0x410)][_0x1d744f(0x288)]=String(Number(_0x29ab17[_0x1d744f(0x410)]['renderRevision']??0x0)+0x1),_0x2dccb1&&_0x40a0d3&&_0x376eee['renderTransition']&&_0x55f91f()?(await _0x376eee[_0x1d744f(0x1b7)](_0x40a0d3,_0x42c889,{'duration':_0x4b80d0}),_0xfc65a2||_0x37b043()):await _0x376eee['render'](_0x42c889),_0x40a0d3=_0x42c889);})[_0x14b3b4(0x147)](_0x56c393=>_0x17839b[_0x14b3b4(0x198)](_0x14b3b4(0x226),_0x56c393));},0x64,{'leading':!0x0,'trailing':!0x0,'maxWait':0x64}),_0x197e46=(_0x5a3f04=!0x1)=>{_0x543248||=_0x5a3f04,_0x4c1d5d||(_0x4c1d5d=!0x0,queueMicrotask(()=>{_0x4c1d5d=!0x1,_0xfc65a2||_0x52a6fe();}));},_0x2d9b28=[_0x470420['data$'][_0x3114ac(0x3e3)](_0x4e8fa7=>{const _0x2f66df=_0x3114ac;let _0x20fe6f=JSON[_0x2f66df(0x32a)](_0x4e8fa7);_0x1d05ed!=null&&_0x1d05ed!==_0x20fe6f&&_0x197e46(!0x0),_0x1d05ed=_0x20fe6f;}),_0x536b0a[_0x3114ac(0x206)][_0x3114ac(0x3e3)](_0x5662b1=>{_0x5662b1&&_0x197e46();}),_0x536b0a['style$'][_0x3114ac(0x3e3)](()=>_0x197e46()),_0x538018[_0x3114ac(0x46c)][_0x3114ac(0x3e3)](()=>_0x197e46()),_0x35c468([_0x4b3664[_0x3114ac(0x343)],_0x4b3664[_0x3114ac(0x39b)]])[_0x3114ac(0x453)](_0x43c3f6(0x1))[_0x3114ac(0x3e3)](()=>_0x197e46())],_0x59b026=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x43981b=_0x3114ac;_0xfc65a2||(_0x5cd8eb[_0x43981b(0x3ff)](),_0x52b847!==null&&clearTimeout(_0x52b847),_0x52b847=setTimeout(()=>_0x197e46(),0x64));});return _0x59b026==null||_0x59b026[_0x3114ac(0x1a1)](_0x29ab17),()=>{const _0x45f579=_0x3114ac;_0xfc65a2=!0x0,_0x52a6fe[_0x45f579(0x221)](),_0x52b847!==null&&clearTimeout(_0x52b847),_0x5d441b!==null&&clearTimeout(_0x5d441b),delete _0x29ab17[_0x45f579(0x410)]['baseChartDataAnimation'],delete _0x29ab17[_0x45f579(0x410)][_0x45f579(0x238)],_0x59b026==null||_0x59b026[_0x45f579(0x246)](),_0x2d9b28[_0x45f579(0x24e)](_0x5683da=>_0x5683da[_0x45f579(0x471)]()),_0x376eee[_0x45f579(0x470)](),_0x5cd8eb['dispose'](),_0x29ab17[_0x45f579(0x323)]();};},[_0x4bde5e,_0x538018,_0x17839b,_0x150782,_0x5095e6,_0x4b3664]),_0x414ebe('div',{'ref':_0x48f3e2,'data-u-comp':'base-pivot-chart','className':_0x164f9c(0x241)});}function zr({filters:_0xb14883,onRuntimeChange:_0x883ad9,unitId:_0x48d78f,widget:_0x2a2457}){const _0x687e2=_0x290871;let _0x277a4a=_0xe276a8(_0x5abbf9),_0x5d5e87=_0xe276a8(_0x4b0f72),_0x5cd56f=_0xe276a8(_0x104d80),_0x3bda52=_0xe276a8(_0xcfb712),[_0x4bd812,_0x4cff1c]=_0x3f626c(null),[_0x3e8b49,_0x34f270]=_0x3f626c(!0x1),[_0x44262f,_0x58c0a9]=_0x3f626c(null),_0xa5772a=_0x3987b(_0x687e2(0x450)+_0x89ef13(0x8)),_0x5c3305=_0x277a4a['getUnit'](_0x48d78f,_0x1516ee[_0x687e2(0x3c2)]),_0x217d4c=_0x5c3305==null?void 0x0:_0x5c3305[_0x687e2(0x18e)]()[_0x687e2(0x377)][_0x2a2457[_0x687e2(0x1b9)]],_0x377f72=_0x217d4c==null?void 0x0:_0x217d4c['views'][_0x2a2457[_0x687e2(0x154)]],_0x52b9f8=Br(_0x377f72);if(_0x330c05(()=>{const _0x3b01e5=_0x687e2;if(!_0x52b9f8)return;let _0x9fd723=_0xa5772a[_0x3b01e5(0x2e7)];return _0x3bda52[_0x3b01e5(0x1e8)](_0x9fd723,{'unitId':_0x48d78f,'tableId':_0x2a2457[_0x3b01e5(0x1b9)],'viewId':_0x2a2457[_0x3b01e5(0x154)],'filters':[]}),()=>{const _0x1a2bdf=_0x3b01e5;_0x3bda52[_0x1a2bdf(0x15c)](_0x48d78f,_0x9fd723),_0x883ad9==null||_0x883ad9(_0x2a2457['id'],null);};},[_0x52b9f8,_0x883ad9,_0x3bda52,_0x48d78f,_0x2a2457['id'],_0x2a2457[_0x687e2(0x154)],_0x2a2457[_0x687e2(0x1b9)]]),_0x330c05(()=>{const _0x58bf5f=_0x687e2;if(!Br(_0x377f72))return;let _0x27f98e=!0x0,_0x3b35c8=_0x2a2457[_0x58bf5f(0x3a5)]??_0x377f72[_0x58bf5f(0x193)][_0x58bf5f(0x3a5)],_0x1d0846={'unitId':_0x48d78f,'tableId':_0x2a2457['tableId'],'viewId':_0x2a2457[_0x58bf5f(0x154)],'filters':[_0x377f72[_0x58bf5f(0x42d)]??null,..._0xb14883]};return _0x3bda52[_0x58bf5f(0x3d1)](_0x48d78f,_0xa5772a[_0x58bf5f(0x2e7)],_0x1d0846,_0x3b35c8)['then'](_0x240631=>{const _0xc588cd=_0x58bf5f;if(!_0x27f98e||!_0x240631)return;let _0x12903e=_0x3bda52['getChartRuntime'](_0x48d78f,_0xa5772a[_0xc588cd(0x2e7)])??null;_0x4cff1c(_0x240631),_0x58c0a9(_0x12903e),_0x34f270(!0x1),_0x883ad9==null||_0x883ad9(_0x2a2457['id'],_0x12903e);})[_0x58bf5f(0x147)](_0x5c01b3=>{const _0x4c56fc=_0x58bf5f;_0x5cd56f['error'](_0x4c56fc(0x427),_0x5c01b3),_0x27f98e&&(_0x4cff1c(null),_0x34f270(!0x0));}),()=>{_0x27f98e=!0x1;};},[_0xb14883,_0x5cd56f,_0x883ad9,_0x3bda52,_0x48d78f,_0x377f72,_0x2a2457['chart'],_0x2a2457['id'],_0x2a2457['pivotViewId'],_0x2a2457[_0x687e2(0x1b9)]]),!Br(_0x377f72))return _0x414ebe(_0x687e2(0x384),{'className':_0x687e2(0x40a),'children':_0x5d5e87['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')});let _0x5dffb7=_0x3bda52['getChartRuntime'](_0x48d78f,_0xa5772a[_0x687e2(0x2e7)])===_0x44262f?_0x44262f:null;return _0x4bd812&&_0x5dffb7?_0x414ebe(Rr,{'isRowDirection':_0x52d288((_0x2a2457[_0x687e2(0x3a5)]??_0x377f72[_0x687e2(0x193)][_0x687e2(0x3a5)])[_0x687e2(0x3b2)]),'runtime':_0x5dffb7}):_0x414ebe(_0x687e2(0x384),{'className':_0x687e2(0x40a),'children':_0x5d5e87['t'](_0x3e8b49?_0x687e2(0x32f):_0x687e2(0x275))});}function Br(_0x518145){const _0x312b07=_0x290871;return(_0x518145==null?void 0x0:_0x518145['type'])===_0x3744eb[_0x312b07(0x250)]&&typeof _0x518145[_0x312b07(0x193)]==_0x312b07(0x30e)&&_0x518145[_0x312b07(0x193)]!==null&&_0x312b07(0x145)in _0x518145['config']&&_0x312b07(0x3a5)in _0x518145[_0x312b07(0x193)];}const Vr={'alignment':_0x290871(0x2f9),'fontSize':0x12,'fontSizeMode':_0x290871(0x449)};function Hr(_0x5cba88){const _0xe1d003=_0x290871;return{...Vr,..._0x5cba88[_0xe1d003(0x366)]};}function Ur(_0x5c4156){const _0x97bc6a=_0x290871;var _0x362481;return((_0x362481=_0x5c4156[_0x97bc6a(0x344)])==null?void 0x0:_0x362481[_0x97bc6a(0x38a)][_0x97bc6a(0x24a)](/\r\n$/,'')[_0x97bc6a(0x24a)](/\r/g,'\x0a'))??'';}function Wr(_0xb22d37,_0x36c974){const _0x19b7ed=_0x290871;var _0x112cc3;let _0x5e7d33=_0x36c974[_0x19b7ed(0x24a)](/\r\n|\r/g,'\x0a')[_0x19b7ed(0x31b)]('\x0a'),_0x580ee1=_0x5e7d33[_0x19b7ed(0x20e)]('\x0d')+'\x0d\x0a',_0x42e33f=((_0x112cc3=_0xb22d37[_0x19b7ed(0x344)])==null?void 0x0:_0x112cc3['paragraphs'])??[],_0xaaea26=new Set(_0x42e33f['map'](_0x1cc158=>_0x1cc158[_0x19b7ed(0x267)])),_0x32d71c=0x0,_0x2888de=_0x5e7d33['map']((_0x46bbdc,_0x54ca03)=>{const _0x217a11=_0x19b7ed;_0x32d71c+=_0x46bbdc[_0x217a11(0x151)];let _0x2489e7={..._0x42e33f[_0x54ca03]??{'startIndex':_0x32d71c,'paragraphId':_0x2900cb(_0xaaea26)},'startIndex':_0x32d71c};return _0x32d71c+=0x1,_0x2489e7;});return{..._0xb22d37,'body':{..._0xb22d37['body'],'dataStream':_0x580ee1,'paragraphs':_0x2888de,'textRuns':[]}};}function Gr({widget:_0x40a384}){const _0x335222=_0x290871;let _0x12b4fa=_0xe276a8(_0x32e309),_0x46e653=_0xe276a8(_0x4b0f72),_0x20db29=_0x45d384(()=>_0x12b4fa[_0x335222(0x343)],_0x12b4fa[_0x335222(0x212)](),!0x1,[_0x12b4fa]),_0x46bf58=_0x3987b(null),_0x5519b5=_0x3987b(null),_0x3a63ef=Hr(_0x40a384),_0x5cfa43=_0x3a63ef[_0x335222(0x16a)]??_0x20db29[_0x335222(0x3cd)][0x0],_0x3852df=_0x3a63ef[_0x335222(0x467)]??_0x20db29[_0x335222(0x3cd)][0x3e8],_0x269adb=Ur(_0x40a384[_0x335222(0x270)]);return _0x330c05(()=>{const _0x5c4563=_0x335222;let _0x4f4a04=_0x46bf58[_0x5c4563(0x2e7)],_0x5a638f=_0x5519b5[_0x5c4563(0x2e7)];if(!_0x4f4a04||!_0x5a638f)return;let _0x53e9e4=()=>{const _0x1a46f5=_0x5c4563;if(_0x3a63ef[_0x1a46f5(0x307)]==='custom'||!_0x4f4a04[_0x1a46f5(0x44c)]||!_0x4f4a04['clientHeight']){_0x5a638f[_0x1a46f5(0x148)][_0x1a46f5(0x1a7)]=_0x3a63ef[_0x1a46f5(0x1a7)]+'px';return;}let _0x41831b=0x8,_0x2dba96=0x48,_0x2d626f=_0x41831b;for(;_0x41831b<=_0x2dba96;){let _0x36160b=Math[_0x1a46f5(0x16d)]((_0x41831b+_0x2dba96)/0x2);_0x5a638f[_0x1a46f5(0x148)]['fontSize']=_0x36160b+'px',_0x5a638f['scrollWidth']<=_0x4f4a04['clientWidth']&&_0x5a638f['scrollHeight']<=_0x4f4a04[_0x1a46f5(0x3b3)]?(_0x2d626f=_0x36160b,_0x41831b=_0x36160b+0x1):_0x2dba96=_0x36160b-0x1;}_0x5a638f[_0x1a46f5(0x148)][_0x1a46f5(0x1a7)]=_0x2d626f+'px';};if(_0x53e9e4(),typeof ResizeObserver>'u')return;let _0x4aae57=new ResizeObserver(_0x53e9e4);return _0x4aae57[_0x5c4563(0x1a1)](_0x4f4a04),()=>_0x4aae57[_0x5c4563(0x246)]();},[_0x3a63ef[_0x335222(0x1a7)],_0x3a63ef[_0x335222(0x307)],_0x269adb]),_0x414ebe('div',{'data-dashboard-text-widget':_0x40a384['id'],'className':_0x335222(0x255),'style':{'backgroundColor':_0x5cfa43,'color':_0x3852df},'children':_0x414ebe(_0x335222(0x384),{'ref':_0x46bf58,'data-dashboard-text-content':!0x0,'aria-label':_0x46e653['t'](_0x335222(0x37b)),'className':_0x335222(0x1d6),'children':_0x414ebe(_0x335222(0x384),{'ref':_0x5519b5,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x3a63ef[_0x335222(0x307)],'className':'univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','style':{'textAlign':_0x3a63ef[_0x335222(0x1f6)]},'children':_0x269adb})})});}function Kr({dashboard:_0x158c4c,editable:_0x2ad665=!0x0,onSelectWidget:_0x3738f9,renderWidget:_0x40db29,renderWidgetActions:_0x4ad319,selectedWidgetId:_0x1d937f,widgetLabel:_0x2540b1}){const _0xa2b5ee=_0x290871;return _0x414ebe('div',{'data-dashboard-scroll-container':!0x0,'className':_0x2c3136('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',_0x443bf8),'onClick':_0x2ad665?_0x2e4fc5=>{const _0x447ff6=_0x29b7;if(!(_0x2e4fc5['target']instanceof Node)||!_0x2e4fc5['currentTarget'][_0x447ff6(0x351)](_0x2e4fc5[_0x447ff6(0x1d8)]))return;let _0x52bddd=_0x2e4fc5['target']instanceof Element?_0x2e4fc5[_0x447ff6(0x1d8)]:_0x2e4fc5['target'][_0x447ff6(0x447)];_0x52bddd!=null&&_0x52bddd[_0x447ff6(0x443)](_0x447ff6(0x42c))||_0x3738f9==null||_0x3738f9();}:void 0x0,'children':_0x414ebe(_0xa2b5ee(0x384),{'data-dashboard-grid':!0x0,'className':_0xa2b5ee(0x149),'children':_0x158c4c[_0xa2b5ee(0x47d)][_0xa2b5ee(0x3a8)](_0x3b77f3=>{const _0x3fa2c8=_0xa2b5ee;let _0x320ac7=_0x158c4c['widgets'][_0x3b77f3];if(!_0x320ac7)return null;let _0x22f513=Math[_0x3fa2c8(0x399)](0xb4,_0x320ac7[_0x3fa2c8(0x2c7)][_0x3fa2c8(0x220)]*_0x37eeaf);return _0x3c00a1(_0x3fa2c8(0x2a0),{'data-dashboard-widget':_0x320ac7['id'],'aria-label':_0x320ac7[_0x3fa2c8(0x43d)]??_0x2540b1(_0x320ac7),'className':_0x2c3136(_0x3fa2c8(0x268),_0x320ac7['type']===_0x39775d[_0x3fa2c8(0x3d2)]||_0x320ac7[_0x3fa2c8(0x183)]===_0x39775d['FormulaShape']?_0x3fa2c8(0x421):_0x3fa2c8(0x452),_0x2ad665&&_0x1d937f===_0x320ac7['id']?_0x3fa2c8(0x1a5):'univer-border-gray-200\x20dark:!univer-border-gray-700'),'style':{'minHeight':_0x22f513,'height':_0x22f513},'tabIndex':_0x2ad665?0x0:void 0x0,'onClick':_0x2ad665?()=>_0x3738f9==null?void 0x0:_0x3738f9(_0x320ac7['id']):void 0x0,'onFocus':_0x2ad665?()=>_0x3738f9==null?void 0x0:_0x3738f9(_0x320ac7['id']):void 0x0,'children':[_0x2ad665&&_0x414ebe('div',{'className':_0x3fa2c8(0x423),'children':_0x4ad319==null?void 0x0:_0x4ad319(_0x320ac7)}),_0x414ebe(_0x3fa2c8(0x384),{'className':_0x3fa2c8(0x1a2),'children':_0x40db29(_0x320ac7)})]},_0x320ac7['id']);})})});}let qr=class extends _0x19ef03{constructor(_0x4ffc7a){const _0x12ef96=_0x290871;super(_0x4ffc7a),Ir(this,_0x12ef96(0x3ca),null);}['executeChartUpdateConfig'](_0x2d4924){}};qr=Ar([Y(0x0,_0x106e69(_0x598437))],qr);function Jr({children:_0x220519}){return _0x414ebe(_0x231698,{'children':_0x220519});}function Yr(_0x447ff3){const _0x5d3b22=_0x290871;return _0x414ebe(_0x366613,{..._0x447ff3,'size':_0x5d3b22(0x231)});}function Xr(_0x1a233d){return _0x414ebe(_0xb4f8a7,{..._0x1a233d});}function Zr(_0x38d1a6){return _0x414ebe(_0x5992e1,{..._0x38d1a6});}var Qr;const X={'axis':{..._0x2dd039,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x5cde1d,'heatmap':_0x380efc,'indicatorLine':_0x204acd,'legend':_0x492f3b,'lineAndArea':_0x2c3d74,'pareto':_0x2602cf,'pie':_0x51c1c6,'radar':_0x2f51cf,'relation':{..._0x20d453,'useValueAsSymbolSize':!0x0},'series':{..._0x3f5b1f,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Qr=_0x38bf7d[_0x290871(0x355)])==null?void 0x0:Qr[_0x290871(0x2e2)])??!0x1}},'style':_0x44b136,'titles':_0x53b57d,'trendline':_0x23fc75,'waterfall':{..._0x3cf6dc,'useSubtotal':!0x0},'waterfallStyle':_0x2841cd,'wordCloud':_0x4bd002},$r=[_0x376127[_0x290871(0x416)],_0x376127[_0x290871(0x2b9)],_0x376127['WordCloud'],_0x376127['Scatter'],_0x376127['Funnel'],_0x376127[_0x290871(0x2a2)],_0x376127['Sankey'],_0x376127['Heatmap'],_0x376127[_0x290871(0x259)],_0x376127[_0x290871(0x36b)],_0x376127[_0x290871(0x37c)],_0x376127[_0x290871(0x21d)],_0x376127[_0x290871(0x3e1)],_0x376127[_0x290871(0x47b)],_0x376127[_0x290871(0x1a0)]];function ei(_0x52bf8e){const _0x3cece8=_0x290871;let {config:_0xd11c05,onChange:_0x355a6c,runtime:_0x1c1911,tableName:_0x9864ea}=_0x52bf8e,_0xdd7ef8=_0xe276a8(qr),_0x56dc80=_0xe276a8(_0x4b0f72),[_0x404c03,_0x1afee0]=_0x3f626c(_0x147b03[_0x3cece8(0x227)]),_0x22331c=_0x50478e(()=>new _0x1be047(_0x1c1911[_0x3cece8(0x1cd)],{'commit':_0x5aaa2c=>{const _0x1a3e57=_0x3cece8;var _0xb74721;let _0x276bf0=_0x1c1911['model'],_0x21f461=_0x2d72ce(_0x5aaa2c,{'series':(_0xb74721=_0x276bf0[_0x1a3e57(0x193)])==null?void 0x0:_0xb74721[_0x1a3e57(0x414)],'currentChartType':_0x276bf0['chartType'],'currentStyle':_0x276bf0[_0x1a3e57(0x148)],'currentContext':_0x276bf0[_0x1a3e57(0x254)],'currentDataAggregation':_0x276bf0[_0x1a3e57(0x171)]});_0x355a6c({'chart':ti(_0xd11c05[_0x1a3e57(0x3a5)],_0x21f461)});}}),[_0xd11c05['chart'],_0x355a6c,_0x1c1911]),_0x342457=_0x50478e(()=>_0x2ed067(_0x1bd142[_0x3cece8(0x3a8)](_0x61dc4=>({..._0x61dc4,'label':_0x56dc80['t'](ai(_0x61dc4['labelId']))}))),[_0x56dc80]);return _0x414ebe(_0x371701,{'chartUIService':_0xdd7ef8,'hostAdapter':_0x22331c,'children':_0x3c00a1(_0x3cece8(0x384),{'className':_0x3cece8(0x298),'children':[_0x414ebe(_0xbfe45a,{'ariaLabel':_0x56dc80['t'](_0x3cece8(0x2a4)),'className':_0x3cece8(0x17e),'items':[{'label':_0x56dc80['t'](_0x3cece8(0x224)),'panelId':_0x3cece8(0x1dd),'value':_0x147b03['Data']},{'label':_0x56dc80['t'](_0x3cece8(0x3d7)),'panelId':'base-pivot-chart-style','value':_0x147b03[_0x3cece8(0x332)]}],'value':_0x404c03,'onChange':_0x1afee0}),_0x404c03===_0x147b03[_0x3cece8(0x227)]?_0x414ebe(_0x1199fe,{'id':'base-pivot-chart-setup','label':_0x56dc80['t'](_0x3cece8(0x224)),'children':_0x3c00a1('div',{'className':_0x3cece8(0x3af),'children':[_0x414ebe(_0x3e755e,{'options':_0x342457}),_0x414ebe(_0x3c8f1a,{}),_0x414ebe(_0xdeb132,{}),_0x414ebe(ni,{}),_0x414ebe(_0x11955e,{}),_0x3c00a1(_0x3cece8(0x384),{'children':[_0x414ebe(_0xce0d39,{'title':_0x56dc80['t'](_0x3cece8(0x446))}),_0x414ebe(_0x448a93,{'disabled':!0x0,'value':_0x9864ea,'size':'small'})]}),_0x414ebe(_0x362f58,{'orientationControl':_0x414ebe(_0x5d2b24,{'size':'middle','onClick':()=>_0x355a6c({'chart':{..._0xd11c05[_0x3cece8(0x3a5)],'orient':_0xd11c05[_0x3cece8(0x3a5)][_0x3cece8(0x3b2)]===_0x3cece8(0x3a9)?'column':'row'}}),'children':_0x56dc80['t'](_0x3cece8(0x19e))})}),_0x414ebe(_0x311d22,{}),_0x414ebe(_0x41d408,{'defaultValues':X[_0x3cece8(0x2c6)]}),_0x3c00a1(_0x3cece8(0x384),{'children':[_0x414ebe(_0xce0d39,{'title':_0x56dc80['t'](_0x3cece8(0x24f))}),_0x414ebe(Yr,{'value':_0xd11c05[_0x3cece8(0x3f8)],'options':[{'value':_0x3cece8(0x438),'label':_0x56dc80['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':_0x3cece8(0x3a5),'label':_0x56dc80['t'](_0x3cece8(0x2a6))},{'value':_0x3cece8(0x363),'label':_0x56dc80['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x4fd30b=>{const _0x3c29c4=_0x3cece8;(_0x4fd30b===_0x3c29c4(0x438)||_0x4fd30b===_0x3c29c4(0x3a5)||_0x4fd30b===_0x3c29c4(0x363))&&_0x355a6c({'displayMode':_0x4fd30b});}})]})]})}):_0x414ebe(_0x1199fe,{'id':'base-pivot-chart-style','label':_0x56dc80['t'](_0x3cece8(0x3d7)),'children':_0x414ebe(ri,{})})]})});}function ti(_0x19b964,_0x5ef7b5){const _0x1848eb=_0x290871;return{..._0x19b964,'type':_0x5ef7b5['chartType']??_0x19b964['type'],'style':_0x5ef7b5['style']??_0x19b964['style'],'context':_0x5ef7b5[_0x1848eb(0x254)]??_0x19b964[_0x1848eb(0x254)],'dataAggregation':_0x5ef7b5[_0x1848eb(0x171)]??_0x19b964[_0x1848eb(0x171)]};}function ni(){const _0x401771=_0x290871;let _0x1c10eb=_0x3b67f6();return _0x414ebe(_0x309fc7,{'visible':$r[_0x401771(0x24b)](_0x5b5b2c=>!_0x4ec613[_0x401771(0x273)](_0x1c10eb,_0x5b5b2c))});}function Z(_0x379a9b){const _0x4704bc=_0x290871;return _0x3c00a1(_0x410c47,{'id':_0x379a9b['id'],'children':[_0x414ebe(_0x4a23d8,{'children':_0x379a9b[_0x4704bc(0x1e5)]}),_0x414ebe(_0x50d9e3,{'children':_0x379a9b[_0x4704bc(0x1c0)]})]});}function ri(){const _0x32e27a=_0x290871;let _0x3ddc8f=_0xe276a8(_0x4b0f72),_0x4dccae=_0x3b67f6(),_0x459f09=_0x1f9302(),[_0xaaacf4,_0x1f1f53]=_0x3f626c(null),_0x3d74e1=_0x4ec613[_0x32e27a(0x273)](_0x4dccae,_0x376127['Pie']),_0x360098=_0x4dccae===_0x376127[_0x32e27a(0x2b9)],_0x52fc36=_0x4dccae===_0x376127[_0x32e27a(0x1f5)],_0x1da87d=_0x4dccae===_0x376127[_0x32e27a(0x20b)],_0x483e3c=_0x4ec613['baseOn'](_0x4dccae,_0x376127[_0x32e27a(0x13a)]),_0x2d4738=_0x4dccae===_0x376127['Relation'],_0x2b305d=_0x4dccae===_0x376127[_0x32e27a(0x460)],_0x2aa73a=_0x4dccae===_0x376127[_0x32e27a(0x3f5)],_0x152f42=_0x4dccae===_0x376127[_0x32e27a(0x1eb)],_0x55aad0=_0x1d4e5d(_0x4dccae,_0x518183[_0x32e27a(0x39c)])&&!_0x483e3c&&!_0x2aa73a,_0x8461b2=ii(_0x4dccae,_0x3ddc8f);return _0x3c00a1(_0x1b215e,{'value':_0xaaacf4,'onChange':_0x1f1f53,'children':[_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x283)],'label':_0x3ddc8f['t'](_0x32e27a(0x3a2)),'children':_0x414ebe(_0x3488e9,{'defaultValues':X[_0x32e27a(0x148)]})}),_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x15b)],'label':_0x3ddc8f['t'](_0x32e27a(0x3d5)),'children':_0x414ebe(_0x5bf2da,{'commitMode':'blur','defaultValues':X[_0x32e27a(0x28b)]})}),_0x414ebe(_0x2dcd87,{'section':_0x32e27a(0x141)}),_0x55aad0&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x478)],'label':_0x3ddc8f['t']('bases-dashboard-ui.chart.common.series'),'children':_0x414ebe(_0x126708,{'defaultValues':X[_0x32e27a(0x414)],'NumberFormatField':_0x3f6633})}),_0x2b305d&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x13e)],'label':_0x3ddc8f['t'](_0x32e27a(0x2b8)),'children':_0x414ebe(_0x271332,{'defaultValues':X[_0x32e27a(0x1e9)],'getDefaultBucketName':({seriesName:_0x3e76a1,target:_0x4bb9d4})=>_0x4bb9d4===_0x34ed53[_0x32e27a(0x3d3)]?_0x3ddc8f['t'](_0x32e27a(0x191)):_0x3e76a1?_0x3e76a1+'-('+_0x3ddc8f['t'](_0x32e27a(0x20a)+(_0x4bb9d4===_0x34ed53[_0x32e27a(0x244)]?_0x32e27a(0x1bb):_0x32e27a(0x411)))+')':'','NumberFormatField':_0x3f6633})}),_0x2aa73a&&_0x3c00a1(_0x42483e,{'children':[_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x1ed)],'label':_0x3ddc8f['t'](_0x32e27a(0x180)),'children':_0x414ebe(_0x4ad9db,{'defaultValues':X[_0x32e27a(0x2ff)],'NumberFormatField':_0x3f6633,'showDataPointEditor':!0x0,'target':_0x32e27a(0x1d3)})}),_0x414ebe(Z,{'id':_0x111171['ParetoLineSeries'],'label':_0x3ddc8f['t'](_0x32e27a(0x412)),'children':_0x414ebe(_0x4ad9db,{'defaultValues':X['pareto'],'NumberFormatField':_0x3f6633,'showDataPointEditor':!0x1,'target':_0x32e27a(0x2d9)})})]}),_0x3d74e1&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x441)],'label':_0x3ddc8f['t'](_0x32e27a(0x2ac)),'children':_0x414ebe(_0x36413b,{'defaultValues':X['pie'],'NumberFormatField':_0x3f6633})}),_0x52fc36&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x1f5)],'label':_0x3ddc8f['t'](_0x32e27a(0x387)),'children':_0x414ebe(_0x3b9d11,{'defaultValues':X[_0x32e27a(0x185)]})}),_0x360098&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x2b9)],'label':_0x3ddc8f['t'](_0x32e27a(0x479)),'children':_0x414ebe(_0x1ef123,{'defaultValues':X[_0x32e27a(0x1c5)]})}),_0x1da87d&&_0x414ebe(Z,{'id':_0x111171['Funnel'],'label':_0x3ddc8f['t'](_0x32e27a(0x19b)),'children':_0x414ebe(_0x5e8635,{'defaultValues':X['funnel'],'gapControl':_0x32e27a(0x42e)})}),_0x152f42&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x1eb)],'label':_0x3ddc8f['t'](_0x32e27a(0x1d9)),'children':_0x414ebe(_0x48cea1,{'defaultValues':X[_0x32e27a(0x2a8)]})}),_0x2d4738&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x2a2)],'label':_0x3ddc8f['t'](_0x32e27a(0x38c)),'children':_0x414ebe(_0x1271d5,{'defaultValues':X['relation']})}),_0x422d44(_0x4dccae)&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x397)],'label':_0x3ddc8f['t'](_0x4ec613[_0x32e27a(0x273)](_0x4dccae,_0x376127[_0x32e27a(0x187)])?_0x32e27a(0x3c1):_0x32e27a(0x3e5)),'children':_0x414ebe(_0x4ec390,{'defaultValues':X[_0x32e27a(0x3b0)],'lineStyleControl':'segmented'})}),_0x1d4e5d(_0x4dccae,_0x518183[_0x32e27a(0x186)])&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x186)],'label':_0x3ddc8f['t'](_0x32e27a(0x31e)),'children':_0x414ebe(_0x179da2,{'defaultValues':X[_0x32e27a(0x31d)]})}),_0x1d4e5d(_0x4dccae,_0x518183[_0x32e27a(0x3a3)])&&_0x3c00a1(_0x42483e,{'children':[_0x414ebe(Z,{'id':_0x111171['HorizontalAxis'],'label':_0x3ddc8f['t']('bases-dashboard-ui.chart.common.horizontalAxis'),'children':_0x414ebe(_0xaa8939,{'axis':'x','defaultValues':X[_0x32e27a(0x1f3)],'NumberFormatField':_0x3f6633})}),_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x2f5)],'label':_0x3ddc8f['t'](_0x32e27a(0x27c)),'children':_0x414ebe(_0xaa8939,{'axis':'y','defaultValues':X[_0x32e27a(0x1f3)],'NumberFormatField':_0x3f6633})}),_0x414ebe(_0x2dcd87,{'section':_0x32e27a(0x33b)}),_0x459f09&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x1d1)],'label':_0x3ddc8f['t'](_0x32e27a(0x42b)),'children':_0x414ebe(_0xaa8939,{'axis':_0x32e27a(0x3f7),'defaultValues':X['axis'],'NumberFormatField':_0x3f6633})}),_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x1aa)],'label':_0x3ddc8f['t'](_0x32e27a(0x199)),'children':_0x414ebe(_0x54cf11,{'defaultValues':X[_0x32e27a(0x1f3)]})})]}),_0x1d4e5d(_0x4dccae,_0x518183[_0x32e27a(0x419)])&&_0x414ebe(Z,{'id':_0x111171['IndicatorLine'],'label':_0x3ddc8f['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x414ebe(_0x5b0ede,{'defaultValues':X['indicatorLine']})}),_0x2db1ff(_0x4dccae)&&_0x414ebe(Z,{'id':_0x111171[_0x32e27a(0x2c9)],'label':_0x3ddc8f['t']('bases-dashboard-ui.chart.common.trendline'),'children':_0x414ebe(_0x452c9a,{'defaultValues':X[_0x32e27a(0x1f2)]})}),_0x8461b2&&_0x414ebe(Z,{'id':_0x8461b2['id'],'label':_0x8461b2[_0x32e27a(0x1e5)],'children':_0x414ebe(_0x5d8d27,{})})]});}function ii(_0x1ccb74,_0x57edb3){const _0x3e1be2=_0x290871;let _0x4fbcb6={[_0x376127['Candlestick']]:{'id':_0x111171['Candlestick'],'localeKey':_0x3e1be2(0x164)},[_0x376127[_0x3e1be2(0x37c)]]:{'id':_0x111171[_0x3e1be2(0x37c)],'localeKey':_0x3e1be2(0x16c)},[_0x376127['Treemap']]:{'id':_0x111171[_0x3e1be2(0x21d)],'localeKey':_0x3e1be2(0x23d)},[_0x376127[_0x3e1be2(0x3e1)]]:{'id':_0x111171['Sunburst'],'localeKey':_0x3e1be2(0x29e)},[_0x376127[_0x3e1be2(0x47b)]]:{'id':_0x111171[_0x3e1be2(0x47b)],'localeKey':'bases-dashboard-ui.chart.section.gauge'},[_0x376127[_0x3e1be2(0x1a0)]]:{'id':_0x111171[_0x3e1be2(0x1a0)],'localeKey':_0x3e1be2(0x403)}}[_0x1ccb74];return _0x4fbcb6?{'id':_0x4fbcb6['id'],'label':_0x57edb3['t'](_0x4fbcb6[_0x3e1be2(0x48b)])}:null;}function ai(_0x6381bc){return'bases-dashboard-ui.chart.chartTypes.'+_0x6381bc;}function oi({onChange:_0xcc07b3,onEditData:_0x6a7069,runtime:_0x21f0e1,sourceChart:_0x2d028c,sourceName:_0x39dda2,widget:_0xf4ed24}){const _0x48de97=_0x290871;let _0x2177a8=_0xe276a8(qr),_0x50e33b=_0xe276a8(_0x4b0f72),[_0x517758,_0x50b0aa]=_0x3f626c(_0x147b03[_0x48de97(0x227)]),_0x8b69a2=_0xf4ed24[_0x48de97(0x3a5)]??_0x2d028c,_0x569725=_0x50478e(()=>new _0x1be047(_0x21f0e1[_0x48de97(0x1cd)],{'commit':_0x1f0189=>{const _0x5019b4=_0x48de97;var _0x52023a;let _0x575d09=_0x21f0e1[_0x5019b4(0x1cd)],_0x546bc9=_0x2d72ce(_0x1f0189,{'series':(_0x52023a=_0x575d09['config'])==null?void 0x0:_0x52023a[_0x5019b4(0x414)],'currentChartType':_0x575d09[_0x5019b4(0x21c)],'currentStyle':_0x575d09[_0x5019b4(0x148)],'currentContext':_0x575d09[_0x5019b4(0x254)],'currentDataAggregation':_0x575d09[_0x5019b4(0x171)]});_0xcc07b3({..._0xf4ed24,'chart':ti(_0x8b69a2,_0x546bc9)})[_0x5019b4(0x147)](()=>void 0x0);}}),[_0x8b69a2,_0xcc07b3,_0x21f0e1,_0xf4ed24]),_0x485925=_0x50478e(()=>_0x2ed067(_0x1bd142[_0x48de97(0x3a8)](_0x5f0043=>({..._0x5f0043,'label':_0x50e33b['t'](si(_0x5f0043[_0x48de97(0x44f)]))}))),[_0x50e33b]);return _0x414ebe(_0x32b767,{'chartUIService':_0x2177a8,'hostAdapter':_0x569725,'children':_0x3c00a1('div',{'data-dashboard-chart-inspector':!0x0,'className':_0x48de97(0x480),'children':[_0x414ebe(_0xbfe45a,{'ariaLabel':_0x50e33b['t'](_0x48de97(0x2a4)),'className':_0x48de97(0x17e),'items':[{'label':_0x50e33b['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0x48de97(0x2d1),'value':_0x147b03[_0x48de97(0x227)]},{'label':_0x50e33b['t']('bases-dashboard-ui.chart.common.customize'),'panelId':'dashboard-chart-style','value':_0x147b03[_0x48de97(0x332)]}],'value':_0x517758,'onChange':_0x50b0aa}),_0x517758===_0x147b03[_0x48de97(0x227)]?_0x414ebe(_0x1199fe,{'id':_0x48de97(0x2d1),'label':_0x50e33b['t'](_0x48de97(0x224)),'children':_0x3c00a1('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x414ebe(_0x3e755e,{'options':_0x485925}),_0x414ebe(_0x3c8f1a,{}),_0x414ebe(_0xdeb132,{}),_0x414ebe(ni,{}),_0x414ebe(_0x11955e,{}),_0x3c00a1(_0x48de97(0x384),{'children':[_0x414ebe(_0xce0d39,{'title':_0x50e33b['t']('bases-dashboard-ui.dashboardInspector.dataSource')}),_0x414ebe(_0x448a93,{'disabled':!0x0,'value':_0x39dda2,'size':'small'}),_0x414ebe(_0x5d2b24,{'className':_0x48de97(0x473),'onClick':_0x6a7069,'size':_0x48de97(0x45d),'children':_0x50e33b['t'](_0x48de97(0x2fb))})]})]})}):_0x414ebe(_0x1199fe,{'id':_0x48de97(0x197),'label':_0x50e33b['t'](_0x48de97(0x3d7)),'children':_0x414ebe(ri,{})})]})});}function si(_0x9828f2){const _0x37f593=_0x290871;return _0x37f593(0x482)+_0x9828f2;}const ci=[_0x290871(0x3ae),_0x290871(0x475),_0x290871(0x261),_0x290871(0x3c6),_0x290871(0x146),_0x290871(0x177)];function li({base:_0x387327,onChange:_0x2a033f,onSelectBackgroundImage:_0x5a185c,widget:_0x39f1d7}){const _0x4de0eb=_0x290871;var _0x45cfe4;let _0x470a4a=_0xe276a8(_0x4b0f72),_0x54f0f3=_0xe276a8(_0x32e309),_0x101f35=_0x45d384(()=>_0x54f0f3[_0x4de0eb(0x343)],_0x54f0f3[_0x4de0eb(0x212)](),!0x1,[_0x54f0f3]),_0xaf610c=_0x45d384(()=>_0x54f0f3[_0x4de0eb(0x39b)],_0x54f0f3['darkMode'],!0x1,[_0x54f0f3]),[_0x436264,_0x1fd405]=_0x3f626c(_0x4de0eb(0x409)),[_0x37f266,_0x46d3c4]=_0x3f626c(!0x1),_0x33a667=Cr(_0x39f1d7),_0x4824fe=_0x387327[_0x4de0eb(0x18e)]()[_0x4de0eb(0x377)][_0x39f1d7[_0x4de0eb(0x1b9)]],_0x3f5512=_0x4824fe==null?void 0x0:_0x4824fe['viewOrder']['find'](_0x211e9a=>_0x4824fe[_0x4de0eb(0x483)][_0x211e9a]),_0x2d55bf=_0x3f5512?_0x4824fe==null?void 0x0:_0x4824fe[_0x4de0eb(0x483)][_0x3f5512]:void 0x0,_0x43c617=_0x4824fe&&_0x2d55bf?_0x3134ee(_0x387327['getSnapshot'](),_0x4824fe,_0x2d55bf)[_0x4de0eb(0x3a8)](_0x9c17=>({..._0x9c17,'current':!0x1})):[],_0xcd67e6=((_0x45cfe4=_0x39f1d7['shapeData'][_0x4de0eb(0x3c0)])==null?void 0x0:_0x45cfe4[_0x4de0eb(0x1c6)])??'',_0x533b24=_0x3a2e61=>_0x2a033f(wr(_0x39f1d7,_0x3a2e61))['catch'](()=>void 0x0),_0x451556=_0x3f4bea=>_0x2a033f({..._0x39f1d7,'description':_0x3f4bea})[_0x4de0eb(0x147)](()=>void 0x0);return _0x3c00a1('div',{'data-dashboard-formula-inspector':!0x0,'className':_0x4de0eb(0x480),'children':[_0x414ebe(_0x4110dc,{'className':_0x4de0eb(0x2e8),'items':[{'value':_0x4de0eb(0x409),'label':_0x470a4a['t'](_0x4de0eb(0x20c))},{'value':_0x4de0eb(0x148),'label':_0x470a4a['t'](_0x4de0eb(0x379))}],'value':_0x436264,'onChange':_0x1fd405}),_0x414ebe('div',{'className':_0x4de0eb(0x20d),'children':_0x436264==='data'?_0x3c00a1(_0x4de0eb(0x384),{'className':_0x4de0eb(0x350),'children':[_0x414ebe(ui,{'label':_0x470a4a['t'](_0x4de0eb(0x2cd)),'children':_0x414ebe(_0x448a93,{'value':_0x39f1d7[_0x4de0eb(0x451)]??_0x39f1d7[_0x4de0eb(0x43d)]??'','onChange':_0x451556,'onBlur':_0x6d78ae=>_0x451556(_0x6d78ae[_0x4de0eb(0x1d8)]['value']),'size':_0x4de0eb(0x231)})}),_0x414ebe(ui,{'label':_0x470a4a['t'](_0x4de0eb(0x16f)),'children':_0x414ebe(_0x448a93,{'disabled':!0x0,'value':(_0x4824fe==null?void 0x0:_0x4824fe[_0x4de0eb(0x2a3)])??_0x470a4a['t'](_0x4de0eb(0x2be)),'size':_0x4de0eb(0x231)})}),_0x3c00a1(ui,{'label':_0x470a4a['t'](_0x4de0eb(0x39e)),'children':[_0x414ebe(_0x448a93,{'disabled':!0x0,'value':_0x3cad2e(_0xcd67e6,_0x43c617),'size':_0x4de0eb(0x231)}),_0x414ebe(_0x5d2b24,{'className':_0x4de0eb(0x473),'onClick':()=>_0x46d3c4(!0x0),'size':_0x4de0eb(0x45d),'children':_0x470a4a['t'](_0x4de0eb(0x28a))})]})]}):_0x3c00a1(_0x4de0eb(0x384),{'className':'univer-grid\x20univer-gap-4','children':[_0x414ebe(_0x43bcb4,{'emptyLabel':_0x470a4a['t'](_0x4de0eb(0x301)),'label':_0x470a4a['t'](_0x4de0eb(0x301)),'pickerFallbackValue':_0xaf610c?_0x101f35[_0x4de0eb(0x3cd)][0x384]:_0x101f35[_0x4de0eb(0x3cd)][0x0],'resetLabel':_0x470a4a['t'](_0x4de0eb(0x337)),'value':_0x33a667[_0x4de0eb(0x16a)]??null,'onChange':_0x321b35=>_0x533b24({'backgroundColor':_0x321b35??void 0x0})}),_0x3c00a1(ui,{'label':_0x470a4a['t'](_0x4de0eb(0x159)),'children':[_0x3c00a1(_0x4de0eb(0x384),{'className':_0x4de0eb(0x292),'children':[_0x3c00a1(_0x5d2b24,{'className':'univer-flex-1','onClick':()=>{const _0x53cb68=_0x4de0eb;_0x5a185c()[_0x53cb68(0x1fb)](_0x507d7b=>{const _0x2d7833=_0x53cb68;if(_0x507d7b){var _0x1ee763;return _0x533b24({'backgroundImage':{..._0x507d7b,'fit':((_0x1ee763=_0x33a667[_0x2d7833(0x313)])==null?void 0x0:_0x1ee763['fit'])??_0x2d7833(0x257)}});}})[_0x53cb68(0x147)](()=>void 0x0);},'size':_0x4de0eb(0x45d),'children':[_0x414ebe(_0x2dc2bd,{}),_0x33a667['backgroundImage']?_0x470a4a['t']('bases-dashboard-ui.dashboardInspector.replaceImage'):_0x470a4a['t'](_0x4de0eb(0x3eb))]}),_0x33a667[_0x4de0eb(0x313)]&&_0x414ebe(_0x5d2b24,{'aria-label':_0x470a4a['t'](_0x4de0eb(0x2bb)),'title':_0x470a4a['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'onClick':()=>_0x533b24({'backgroundImage':void 0x0}),'size':_0x4de0eb(0x45d),'children':_0x414ebe(_0x152022,{})})]}),_0x33a667[_0x4de0eb(0x313)]&&_0x414ebe(_0x4110dc,{'className':'univer-mt-2','items':[{'value':_0x4de0eb(0x257),'label':_0x470a4a['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x4de0eb(0x1b4),'label':_0x470a4a['t'](_0x4de0eb(0x2f6))}],'value':_0x33a667[_0x4de0eb(0x313)]['fit'],'onChange':_0x17add1=>_0x533b24({'backgroundImage':_0x33a667[_0x4de0eb(0x313)]?{..._0x33a667['backgroundImage'],'fit':_0x17add1}:void 0x0})})]}),_0x414ebe(_0x43bcb4,{'emptyLabel':_0x470a4a['t'](_0x4de0eb(0x481)),'label':_0x470a4a['t'](_0x4de0eb(0x481)),'pickerFallbackValue':_0xaf610c?_0x101f35[_0x4de0eb(0x3cd)][0x32]:_0x101f35[_0x4de0eb(0x3cd)][0x3e8],'resetLabel':_0x470a4a['t'](_0x4de0eb(0x337)),'value':_0x33a667[_0x4de0eb(0x467)]??null,'onChange':_0x42f078=>_0x533b24({'textColor':_0x42f078??void 0x0})}),_0x414ebe(ui,{'label':_0x470a4a['t'](_0x4de0eb(0x228)),'children':_0x414ebe(_0x4110dc,{'items':[{'value':_0x4de0eb(0x2f9),'label':_0x470a4a['t'](_0x4de0eb(0x3c8))},{'value':_0x4de0eb(0x15d),'label':_0x470a4a['t'](_0x4de0eb(0x3ef))},{'value':_0x4de0eb(0x33f),'label':_0x470a4a['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x33a667[_0x4de0eb(0x1f6)],'onChange':_0xcc1694=>_0x533b24({'alignment':_0xcc1694})})}),_0x3c00a1(ui,{'label':_0x470a4a['t'](_0x4de0eb(0x46a)),'children':[_0x414ebe(_0x4110dc,{'items':[{'value':_0x4de0eb(0x449),'label':_0x470a4a['t'](_0x4de0eb(0x352))},{'value':_0x4de0eb(0x3b7),'label':_0x470a4a['t'](_0x4de0eb(0x2d8))}],'value':_0x33a667[_0x4de0eb(0x307)],'onChange':_0x4cb83b=>_0x533b24({'fontSizeMode':_0x4cb83b})}),_0x33a667[_0x4de0eb(0x307)]===_0x4de0eb(0x3b7)&&_0x414ebe(_0x2963f5,{'className':_0x4de0eb(0x188),'min':0xc,'max':0x78,'value':_0x33a667[_0x4de0eb(0x1a7)],'onChange':_0x3f58f9=>_0x533b24({'fontSize':_0x3f58f9??0x28,'fontSizeMode':'custom'}),'size':_0x4de0eb(0x231),'controls':!0x1})]}),_0x414ebe(ui,{'label':_0x470a4a['t'](_0x4de0eb(0x272)),'children':_0x414ebe(Yr,{'value':_0x33a667[_0x4de0eb(0x262)],'options':[{'value':'general','label':_0x470a4a['t'](_0x4de0eb(0x380))},{'value':'number','label':_0x470a4a['t'](_0x4de0eb(0x3bc))},{'value':_0x4de0eb(0x261),'label':_0x470a4a['t'](_0x4de0eb(0x1b1))},{'value':_0x4de0eb(0x3c6),'label':_0x470a4a['t'](_0x4de0eb(0x42f))},{'value':_0x4de0eb(0x146),'label':_0x470a4a['t'](_0x4de0eb(0x158))},{'value':'compact','label':_0x470a4a['t']('bases-dashboard-ui.dashboardInspector.compact')}],'onChange':_0x292fd4=>{const _0x33cea9=_0x4de0eb;let _0x1627b3=ci[_0x33cea9(0x47f)](_0x2b8537=>_0x2b8537===_0x292fd4);_0x1627b3&&_0x533b24({'numberFormat':_0x1627b3});}})}),_0x33a667[_0x4de0eb(0x262)]==='currency'&&_0x414ebe(ui,{'label':_0x470a4a['t'](_0x4de0eb(0x166)),'children':_0x414ebe(_0x448a93,{'value':_0x33a667['currency'],'onChange':_0x1fe4ec=>_0x533b24({'currency':_0x1fe4ec[_0x4de0eb(0x234)](0x0,0x3)[_0x4de0eb(0x294)]()}),'size':_0x4de0eb(0x231)})}),_0x33a667['numberFormat']!==_0x4de0eb(0x3ae)&&_0x414ebe(ui,{'label':_0x470a4a['t']('bases-dashboard-ui.dashboardInspector.decimalPlaces'),'children':_0x414ebe(_0x2963f5,{'min':0x0,'max':0x8,'value':_0x33a667[_0x4de0eb(0x2d6)],'onChange':_0x4d2262=>_0x533b24({'decimalPlaces':_0x4d2262??0x0}),'size':_0x4de0eb(0x231),'controls':!0x1})})]})}),_0x37f266&&_0x414ebe(Zr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x414ebe(_0x558efe,{'tables':_0x43c617,'formula':_0x3cad2e(_0xcd67e6,_0x43c617),'onCancel':()=>_0x46d3c4(!0x1),'onSave':_0x40f552=>{const _0x471c29=_0x4de0eb;let _0x5ba7c5=_0x39f1d7[_0x471c29(0x3c7)][_0x471c29(0x3c0)]??{'formula':''};return _0x2a033f({..._0x39f1d7,'shapeData':{..._0x39f1d7[_0x471c29(0x3c7)],'formulaBinding':{..._0x5ba7c5,'formula':_0x1a63bf(_0x40f552,_0x43c617)}}})['then'](()=>_0x46d3c4(!0x1))[_0x471c29(0x147)](()=>void 0x0);}})})]});}function ui({children:_0x2df94f,label:_0x240424}){const _0x542a15=_0x290871;return _0x3c00a1(_0x542a15(0x384),{'role':'group','aria-label':_0x240424,'className':_0x542a15(0x45a),'children':[_0x414ebe('span',{'children':_0x240424}),_0x2df94f]});}function di({disabled:_0x32d091,fields:_0x297e04,filter:_0x41a12c,onChange:_0xc5615b}){const _0x2baa05=_0x290871;let _0x5539ea=_0xe276a8(_0x23e99d)[_0x2baa05(0x465)]??null,[_0x42e7bc,_0x454081]=_0x3f626c(null),_0x5d41e6=_0xe276a8(_0x4b0f72),_0x1b08f0=(_0x41a12c==null?void 0x0:_0x41a12c[_0x2baa05(0x338)])??[];if(!_0x1b08f0[_0x2baa05(0x151)])return _0x3c00a1(_0x2baa05(0x384),{'className':_0x2baa05(0x440),'children':[_0x414ebe(_0x27cd4d,{'className':_0x2baa05(0x1f8)}),_0x414ebe(_0x2baa05(0x415),{'className':_0x2baa05(0x368),'children':_0x5d41e6['t'](_0x2baa05(0x296))})]});let _0xfe6da1=_0x42e7bc==null?void 0x0:_0x1b08f0[_0x42e7bc],_0x164925=_0x297e04[_0x2baa05(0x47f)](_0x59acb7=>_0x59acb7['id']===(_0xfe6da1==null?void 0x0:_0xfe6da1[_0x2baa05(0x48a)]));return _0x3c00a1('div',{'className':_0x2baa05(0x47a),'children':[_0x1b08f0[_0x2baa05(0x3a8)]((_0x207908,_0x2a3dee)=>{const _0x583e18=_0x2baa05;var _0x1ecc06;return _0x3c00a1(_0x5d2b24,{'disabled':_0x32d091,'onClick':()=>_0x454081(_0x2a3dee),'size':_0x583e18(0x45d),'children':[_0x414ebe(_0x583e18(0x415),{'children':((_0x1ecc06=_0x297e04[_0x583e18(0x47f)](_0x12b8d0=>_0x12b8d0['id']===_0x207908[_0x583e18(0x48a)]))==null?void 0x0:_0x1ecc06[_0x583e18(0x2a3)])??_0x207908['fieldId']}),_0x414ebe(_0x583e18(0x415),{'className':_0x583e18(0x1cf),'children':String(_0x207908[_0x583e18(0x312)]??'')})]},_0x207908[_0x583e18(0x48a)]+'-'+_0x2a3dee);}),_0x164925&&_0xfe6da1&&_0x42e7bc!=null&&_0x5539ea&&_0x17d46a(_0x414ebe(_0x28df3d,{'field':_0x164925,'value':_0xfe6da1[_0x2baa05(0x312)],'onClose':()=>_0x454081(null),'onSave':_0x2b1275=>{const _0x39d2fb=_0x2baa05;_0xc5615b({'conjunction':(_0x41a12c==null?void 0x0:_0x41a12c[_0x39d2fb(0x253)])??_0x369900[_0x39d2fb(0x36d)],'conditions':_0x1b08f0[_0x39d2fb(0x3a8)]((_0x5dce64,_0x4c2134)=>_0x4c2134===_0x42e7bc?{..._0x5dce64,'operand':_0x2b1275}:_0x5dce64)}),_0x454081(null);}}),_0x5539ea)]});}function fi({fields:_0x5c66da,filter:_0x16551f,onChange:_0x2e7ba8,onClear:_0x2e3f78}){const _0x27190b=_0x290871;let _0x2496b3=_0xe276a8(_0x4b0f72);return _0x3c00a1('div',{'children':[_0x414ebe(_0xdfeac7,{'fields':_0x5c66da,'value':_0x16551f??{'conjunction':_0x369900[_0x27190b(0x36d)],'conditions':[]},'onChange':_0x2e7ba8}),_0x414ebe(_0x5d2b24,{'onClick':_0x2e3f78,'size':_0x27190b(0x45d),'children':_0x2496b3['t'](_0x27190b(0x337))})]});}function pi({base:_0x19e810,chartRuntime:_0x1ddbd7,onChange:_0x1549cb,onClose:_0x36cc99,onSelectBackgroundImage:_0x58d113,onSelectImage:_0x49fbfa,unitId:_0x30f51d,widget:_0x5c7697}){const _0x4cb1f7=_0x290871;let _0x3c8385=_0xe276a8(_0x299365),_0x556769=_0xe276a8(_0x4b0f72),_0x23a3ad=_0x19e810[_0x4cb1f7(0x18e)](),_0x3fefb8=_0x4cb1f7(0x1b9)in _0x5c7697?_0x23a3ad[_0x4cb1f7(0x377)][_0x5c7697[_0x4cb1f7(0x1b9)]]:void 0x0,_0x4d9a13=_0x5c7697[_0x4cb1f7(0x183)]===_0x39775d[_0x4cb1f7(0x26a)]?_0x3fefb8==null?void 0x0:_0x3fefb8[_0x4cb1f7(0x483)][_0x5c7697[_0x4cb1f7(0x154)]]:void 0x0,_0x1b1e53=_0x556769['t'](bi(_0x5c7697)),_0x4c0a13=_0x3c00a1(_0x4cb1f7(0x3dc),{'data-dashboard-inspector':!0x0,'className':_0x4cb1f7(0x34e),'children':[_0x5c7697['type']===_0x39775d['PivotChart']&&(yi(_0x4d9a13)&&_0x1ddbd7?_0x414ebe(oi,{'runtime':_0x1ddbd7,'sourceChart':_0x4d9a13[_0x4cb1f7(0x193)]['chart'],'sourceName':((_0x3fefb8==null?void 0x0:_0x3fefb8[_0x4cb1f7(0x2a3)])??'')+_0x4cb1f7(0x1de)+_0x4d9a13[_0x4cb1f7(0x2a3)],'widget':_0x5c7697,'onChange':_0x1549cb,'onEditData':()=>{const _0x47b4fe=_0x4cb1f7;_0x3c8385[_0x47b4fe(0x25b)](_0x32f41c['id'],{'unitId':_0x30f51d,'tableId':_0x5c7697[_0x47b4fe(0x1b9)],'viewId':_0x5c7697[_0x47b4fe(0x154)]})[_0x47b4fe(0x147)](()=>void 0x0);}}):_0x414ebe(_i,{'message':yi(_0x4d9a13)?_0x556769['t'](_0x4cb1f7(0x144)):_0x556769['t'](_0x4cb1f7(0x2be))})),_0x5c7697[_0x4cb1f7(0x183)]===_0x39775d[_0x4cb1f7(0x474)]&&_0x414ebe(li,{'base':_0x19e810,'widget':_0x5c7697,'onChange':_0x1549cb,'onSelectBackgroundImage':_0x58d113}),_0x5c7697[_0x4cb1f7(0x183)]===_0x39775d[_0x4cb1f7(0x324)]&&_0x414ebe(hi,{'base':_0x19e810,'onChange':_0x1549cb,'widget':_0x5c7697}),_0x5c7697[_0x4cb1f7(0x183)]===_0x39775d[_0x4cb1f7(0x300)]&&_0x414ebe(gi,{'onChange':_0x1549cb,'widget':_0x5c7697}),_0x5c7697['type']===_0x39775d[_0x4cb1f7(0x3d2)]&&_0x414ebe(mi,{'onChange':_0x1549cb,'onSelectImage':_0x49fbfa,'widget':_0x5c7697})]});return _0x414ebe(_0x3da581,{'title':_0x1b1e53,'onClose':_0x36cc99,'children':_0x4c0a13});}function mi({onChange:_0x493ef8,onSelectImage:_0x2d91fd,widget:_0x53c20e}){const _0x220a75=_0x290871;let _0x203100=_0xe276a8(_0x4b0f72);return _0x3c00a1('div',{'className':_0x220a75(0x150),'children':[_0x3c00a1(_0x5d2b24,{'className':'univer-w-full','onClick':()=>_0x2d91fd()[_0x220a75(0x1fb)](_0x58637e=>_0x58637e&&_0x493ef8({..._0x53c20e,'source':_0x58637e['source'],'sourceType':_0x58637e[_0x220a75(0x260)],'alt':_0x58637e['name']}))['catch'](()=>void 0x0),'size':'middle','children':[_0x414ebe(_0x2dc2bd,{}),_0x203100['t'](_0x220a75(0x18a))]}),_0x3c00a1(_0x220a75(0x1e5),{'className':_0x220a75(0x45a),'children':[_0x414ebe('span',{'children':_0x203100['t'](_0x220a75(0x159))}),_0x414ebe(_0x4110dc,{'items':[{'value':_0x220a75(0x257),'label':_0x203100['t'](_0x220a75(0x2f1))},{'value':_0x220a75(0x413),'label':_0x203100['t'](_0x220a75(0x208))},{'value':_0x220a75(0x258),'label':_0x203100['t'](_0x220a75(0x374))}],'value':_0x53c20e[_0x220a75(0x3f8)]??_0x220a75(0x257),'onChange':_0x21d40a=>_0x493ef8({..._0x53c20e,'displayMode':_0x21d40a})[_0x220a75(0x147)](()=>void 0x0)})]})]});}function hi({base:_0x25b6d4,onChange:_0x185fee,widget:_0x28d465}){const _0x5315cc=_0x290871;let _0x13da0c=_0x25b6d4['getSnapshot']()[_0x5315cc(0x377)][_0x28d465[_0x5315cc(0x1b9)]],_0xf17179=_0x13da0c==null?void 0x0:_0x13da0c[_0x5315cc(0x40f)][_0x5315cc(0x47f)](_0x5460fe=>_0x13da0c[_0x5315cc(0x483)][_0x5460fe]),_0x352178=_0xf17179?_0x13da0c==null?void 0x0:_0x13da0c[_0x5315cc(0x483)][_0xf17179]:void 0x0,_0xfe6859=_0x13da0c&&_0x352178?_0x5dcd9e(_0x13da0c,_0x352178):[];return _0x414ebe(fi,{'fields':_0xfe6859,'filter':_0x28d465[_0x5315cc(0x42d)],'onChange':_0x538b45=>_0x185fee({..._0x28d465,'filter':_0x538b45})[_0x5315cc(0x147)](()=>void 0x0),'onClear':()=>_0x185fee({..._0x28d465,'filter':null})[_0x5315cc(0x147)](()=>void 0x0)});}function gi({onChange:_0x1f5597,widget:_0x2a4aa4}){const _0x46767b=_0x290871;let _0x187991=_0xe276a8(_0x4b0f72),_0x8e129a=_0xe276a8(_0x32e309),_0x1fdfbb=_0x45d384(()=>_0x8e129a[_0x46767b(0x343)],_0x8e129a['getCurrentTheme'](),!0x1,[_0x8e129a]),_0xf5f91b=Hr(_0x2a4aa4),_0xe967a=_0x3ea971=>_0x1f5597({..._0x2a4aa4,'appearance':{..._0xf5f91b,..._0x3ea971}})['catch'](()=>void 0x0);return _0x3c00a1('div',{'className':_0x46767b(0x461),'children':[_0x414ebe(_0x27cc24,{'className':_0x46767b(0x468),'defaultValue':Ur(_0x2a4aa4['document']),'rows':0x8,'onBlur':_0x5a9715=>_0x1f5597({..._0x2a4aa4,'document':Wr(_0x2a4aa4[_0x46767b(0x270)],_0x5a9715[_0x46767b(0x1d8)]['value'])})['catch'](()=>void 0x0),'size':_0x46767b(0x231)}),_0x414ebe(_0x43bcb4,{'emptyLabel':_0x187991['t'](_0x46767b(0x301)),'label':_0x187991['t'](_0x46767b(0x301)),'pickerFallbackValue':_0x1fdfbb[_0x46767b(0x3cd)][0x0],'resetLabel':_0x187991['t'](_0x46767b(0x337)),'value':_0xf5f91b[_0x46767b(0x16a)]??null,'onChange':_0x682fdc=>_0xe967a({'backgroundColor':_0x682fdc??void 0x0})}),_0x414ebe(_0x43bcb4,{'emptyLabel':_0x187991['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x187991['t'](_0x46767b(0x481)),'pickerFallbackValue':_0x1fdfbb[_0x46767b(0x3cd)][0x3e8],'resetLabel':_0x187991['t'](_0x46767b(0x337)),'value':_0xf5f91b['textColor']??null,'onChange':_0x2c220e=>_0xe967a({'textColor':_0x2c220e??void 0x0})}),_0x414ebe(vi,{'label':_0x187991['t'](_0x46767b(0x228)),'children':_0x414ebe(_0x4110dc,{'items':[{'value':_0x46767b(0x2f9),'label':_0x187991['t'](_0x46767b(0x3c8))},{'value':_0x46767b(0x15d),'label':_0x187991['t'](_0x46767b(0x3ef))},{'value':'right','label':_0x187991['t'](_0x46767b(0x3aa))}],'value':_0xf5f91b[_0x46767b(0x1f6)],'onChange':_0x2d1ab7=>_0xe967a({'alignment':_0x2d1ab7})})}),_0x3c00a1(vi,{'label':_0x187991['t'](_0x46767b(0x46a)),'children':[_0x414ebe(_0x4110dc,{'items':[{'value':_0x46767b(0x449),'label':_0x187991['t'](_0x46767b(0x352))},{'value':'custom','label':_0x187991['t'](_0x46767b(0x2d8))}],'value':_0xf5f91b[_0x46767b(0x307)],'onChange':_0x17c68e=>_0xe967a({'fontSizeMode':_0x17c68e})}),_0xf5f91b[_0x46767b(0x307)]===_0x46767b(0x3b7)&&_0x414ebe(_0x2963f5,{'className':_0x46767b(0x188),'min':0xa,'max':0x78,'value':_0xf5f91b[_0x46767b(0x1a7)],'onChange':_0x19bd2c=>_0xe967a({'fontSize':_0x19bd2c??0x12,'fontSizeMode':_0x46767b(0x3b7)}),'size':_0x46767b(0x231),'controls':!0x1})]})]});}function _i({message:_0x32e899}){const _0x11c1af=_0x290871;return _0x414ebe(_0x11c1af(0x384),{'className':'univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','children':_0x32e899});}function vi({children:_0x4ff906,label:_0x5757df}){const _0x11b26a=_0x290871;return _0x3c00a1(_0x11b26a(0x384),{'role':_0x11b26a(0x1d4),'aria-':!0x0,'className':_0x11b26a(0x45a),'children':[_0x414ebe(_0x11b26a(0x415),{'children':_0x5757df}),_0x4ff906]});}function yi(_0x51b3af){const _0x307b3c=_0x290871;return(_0x51b3af==null?void 0x0:_0x51b3af[_0x307b3c(0x183)])===_0x3744eb['Pivot']&&typeof _0x51b3af[_0x307b3c(0x193)]==_0x307b3c(0x30e)&&_0x51b3af[_0x307b3c(0x193)]!==null&&'pivot'in _0x51b3af[_0x307b3c(0x193)]&&_0x307b3c(0x3a5)in _0x51b3af[_0x307b3c(0x193)];}function bi(_0x27a32d){const _0x45e992=_0x290871;switch(_0x27a32d['type']){case _0x39775d['PivotChart']:return _0x45e992(0x2fa);case _0x39775d[_0x45e992(0x324)]:return _0x45e992(0x296);case _0x39775d[_0x45e992(0x300)]:return _0x45e992(0x37b);case _0x39775d[_0x45e992(0x3d2)]:return'bases-dashboard-ui.dashboard.image';case _0x39775d[_0x45e992(0x474)]:return _0x45e992(0x1d2);}}function xi({onDelete:_0x291fb1,onEdit:_0xb68ad5,onMoveUp:_0x4cd1bf,onMoveDown:_0x26fa04}){const _0x4469f8=_0x290871;let [_0x50ea44,_0x4614c5]=_0x3f626c(!0x1),_0x1cb451=_0xe276a8(_0x4b0f72),_0x5dde21=_0x1cb451['t'](_0x4469f8(0x16e)),_0x268e90=_0x1cb451['t'](_0x4469f8(0x454)),_0x31962f=_0x1cb451['t'](_0x4469f8(0x3d8)),_0x3d2f5c=[{'type':_0x4469f8(0x3de),'children':_0x3c00a1(_0x4469f8(0x415),{'className':_0x4469f8(0x21b),'children':[_0x414ebe(_0xd735a9,{'className':'univer-size-4','aria-hidden':_0x4469f8(0x2b6)}),_0x414ebe(_0x4469f8(0x415),{'children':_0x5dde21})]}),'onSelect':_0xb68ad5},..._0x4cd1bf?[{'type':_0x4469f8(0x3de),'children':_0x3c00a1('span',{'className':_0x4469f8(0x21b),'children':[_0x414ebe(_0x12ff8f,{'className':_0x4469f8(0x2e0),'aria-hidden':_0x4469f8(0x2b6)}),_0x414ebe(_0x4469f8(0x415),{'children':_0x1cb451['t'](_0x4469f8(0x2eb))})]}),'onSelect':_0x4cd1bf}]:[],..._0x26fa04?[{'type':_0x4469f8(0x3de),'children':_0x3c00a1(_0x4469f8(0x415),{'className':_0x4469f8(0x21b),'children':[_0x414ebe(_0x402220,{'className':_0x4469f8(0x2e0),'aria-hidden':_0x4469f8(0x2b6)}),_0x414ebe(_0x4469f8(0x415),{'children':_0x1cb451['t'](_0x4469f8(0x2d5))})]}),'onSelect':_0x26fa04}]:[],{'type':'separator'},{'type':_0x4469f8(0x3de),'variant':_0x4469f8(0x2ca),'children':_0x3c00a1('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x414ebe(_0x152022,{'className':'univer-size-4','aria-hidden':_0x4469f8(0x2b6)}),_0x414ebe(_0x4469f8(0x415),{'children':_0x268e90})]}),'onSelect':_0x291fb1}];return _0x414ebe(_0x4acc99,{'open':_0x50ea44,'onOpenChange':_0x4614c5,'align':'end','sideOffset':0x4,'items':_0x3d2f5c[_0x4469f8(0x3a8)](_0x283e71=>({..._0x283e71,'className':_0x283e71[_0x4469f8(0x183)]===_0x4469f8(0x3de)?'univer-min-h-11\x20univer-px-3\x20univer-text-base':void 0x0})),'children':_0x414ebe(_0x5d2b24,{'type':_0x4469f8(0x30b),'size':_0x4469f8(0x1dc),'variant':_0x4469f8(0x476),'onPointerDown':_0x4c9c30=>_0x4c9c30[_0x4469f8(0x32d)](),'onClick':()=>_0x4614c5(_0xefaab3=>!_0xefaab3),'title':_0x31962f,'aria-label':_0x31962f,'className':'univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','children':_0x414ebe(_0x37e5b5,{'className':'univer-size-4','aria-hidden':'true'})})});}function Si({dashboardId:_0x2e94ca,presentation:_0x13c816=!0x1,unitId:_0x44524e}){const _0xfa3ecc=_0x290871;let _0x270aea=_0xe276a8(_0x117569),_0x48864d=_0xe276a8(_0x2a9732);_0x45d384(_0x48864d['changed$'],0x0);let _0x3791bc=_0xe276a8(_0x299365),_0x217f3e=_0xe276a8(_0xdb66e),_0x2598b8=_0xe276a8(_0x1c9925),_0x5787ea=_0xe276a8(_0x5abbf9),_0x9b2a15=_0xe276a8(_0x4b0f72),_0x3bcc98=_0xe276a8(_0x1aeb78),_0x21fbc3=_0xe276a8(_0x2ce242),[_0x327851,_0x508c7b]=_0x3f626c(!0x1),[_0x4399ab,_0x1d1ca4]=_0x3f626c(),[_0x545a3c,_0x359d85]=_0x3f626c(!0x1),[_0x1d0a0f,_0x40be57]=_0x3f626c(()=>new Map()),_0x22705d=_0x12bed3((_0x511aa0,_0x2beaf5)=>{_0x40be57(_0x56db4a=>{let _0x5bd11d=new Map(_0x56db4a);return _0x2beaf5?_0x5bd11d['set'](_0x511aa0,_0x2beaf5):_0x5bd11d['delete'](_0x511aa0),_0x5bd11d;});},[]),_0x44bc08=_0x45d384(()=>_0x3bcc98[_0xfa3ecc(0x3f9)][_0xfa3ecc(0x453)](_0x263c89(()=>_0x3bcc98[_0xfa3ecc(0x40d)](_0x44524e,_0x2e94ca))),_0x3bcc98[_0xfa3ecc(0x40d)](_0x44524e,_0x2e94ca),!0x1,[_0x2e94ca,_0x3bcc98,_0x44524e]),_0x3eb253=_0x5787ea[_0xfa3ecc(0x3be)](_0x44524e,_0x1516ee[_0xfa3ecc(0x3c2)]),_0x35e996=_0x45d384(()=>_0x21fbc3[_0xfa3ecc(0x2ed)],{'undos':0x0,'redos':0x0},!0x1,[_0x21fbc3]),_0x158047=vr(_0x44524e,_0x2e94ca);if(_0x330c05(()=>{const _0x494d22=_0xfa3ecc;_0x5787ea[_0x494d22(0x173)](_0x44524e),_0x5787ea[_0x494d22(0x3bb)](_0x44524e);},[_0x5787ea,_0x44524e]),!_0x44bc08||!_0x3eb253)return null;let _0x37ca29={'unitId':_0x44524e,'objectId':_0x3a0eab(_0x2e94ca),'objectType':_0x1d0cb1[_0xfa3ecc(0x306)]},_0xff4042=(_0x53df75,_0x49c0bd)=>{const _0xd5e8a=_0xfa3ecc;let _0x4e9b58=[..._0x44bc08['widgetOrder']],_0x47ec02=_0x4e9b58[_0xd5e8a(0x406)](_0x53df75),_0x543c52=_0x47ec02+_0x49c0bd;if(!(_0x47ec02<0x0||_0x543c52<0x0||_0x543c52>=_0x4e9b58[_0xd5e8a(0x151)]))return[_0x4e9b58[_0x47ec02],_0x4e9b58[_0x543c52]]=[_0x4e9b58[_0x543c52],_0x4e9b58[_0x47ec02]],_0x3791bc[_0xd5e8a(0x25b)](_0xe5ba16['id'],{'unitId':_0x44524e,'dashboard':{..._0x44bc08,'widgetOrder':_0x4e9b58}});},_0x26ccac=_0x1cdaf3=>_0x3791bc['executeCommand'](_0x2e234a['id'],{'unitId':_0x44524e,'dashboardId':_0x2e94ca,'widget':_0x1cdaf3})[_0xfa3ecc(0x147)](()=>void 0x0),_0x533c68=(_0x26bab3,_0x231f55,_0x495257)=>{const _0x2d8904=_0xfa3ecc;let _0xc37e47=Math[_0x2d8904(0x399)](0x0,..._0x44bc08['widgetOrder']['flatMap'](_0x22ee22=>{const _0x22cd79=_0x2d8904;var _0x1464bf;let _0x300701=(_0x1464bf=_0x44bc08[_0x22cd79(0x33d)][_0x22ee22])==null?void 0x0:_0x1464bf[_0x22cd79(0x2c7)];return _0x300701?[_0x300701[_0x22cd79(0x3a9)]+_0x300701[_0x22cd79(0x220)]]:[];})),_0x4937c5=_0x2d8904(0x3cf)+_0x89ef13(0x8),_0x49810a={'column':0x0,'row':_0xc37e47,'columnSpan':_0x231f55,'rowSpan':_0x495257};switch(_0x26bab3[_0x2d8904(0x183)]){case _0x39775d[_0x2d8904(0x26a)]:return _0x26ccac({..._0x26bab3,'id':_0x4937c5,'layout':_0x49810a});case _0x39775d[_0x2d8904(0x324)]:return _0x26ccac({..._0x26bab3,'id':_0x4937c5,'layout':_0x49810a});case _0x39775d[_0x2d8904(0x300)]:return _0x26ccac({..._0x26bab3,'id':_0x4937c5,'layout':_0x49810a});case _0x39775d[_0x2d8904(0x3d2)]:return _0x26ccac({..._0x26bab3,'id':_0x4937c5,'layout':_0x49810a});case _0x39775d[_0x2d8904(0x474)]:return _0x26ccac({..._0x26bab3,'id':_0x4937c5,'layout':_0x49810a});}},_0x5a7466=_0x3eb253[_0xfa3ecc(0x18e)](),_0x362b5d=_0x5a7466[_0xfa3ecc(0x284)][_0xfa3ecc(0x2af)](_0x427b66=>{const _0x4b465e=_0xfa3ecc;let _0x381c69=_0x5a7466[_0x4b465e(0x377)][_0x427b66];if(!_0x381c69)return[];let _0x635cfc=_0x381c69[_0x4b465e(0x40f)]['flatMap'](_0x43de46=>{const _0x4a7690=_0x4b465e;let _0x366a8e=_0x381c69['views'][_0x43de46];return Ai(_0x366a8e)?[{'type':'item','children':_0x366a8e[_0x4a7690(0x2a3)],'onSelect':()=>_0x533c68({'type':_0x39775d[_0x4a7690(0x26a)],'tableId':_0x427b66,'pivotViewId':_0x43de46,'chart':{..._0x366a8e[_0x4a7690(0x193)][_0x4a7690(0x3a5)]}},0x6,0xa)}]:[];});return[{'type':_0x4b465e(0x303),'children':_0x381c69[_0x4b465e(0x2a3)],'options':[..._0x635cfc,..._0x635cfc[_0x4b465e(0x151)]?[{'type':_0x4b465e(0x2b1)}]:[],{'type':_0x4b465e(0x3de),'children':_0x9b2a15['t']('bases-dashboard-ui.dashboard.tableFilter'),'onSelect':()=>_0x533c68({'type':_0x39775d['TableFilter'],'tableId':_0x427b66,'filter':null},0x6,0x8)}]}];}),_0x1c60e5=[..._0x362b5d,..._0x362b5d[_0xfa3ecc(0x151)]?[{'type':_0xfa3ecc(0x2b1)}]:[],{'type':_0xfa3ecc(0x3de),'children':_0x9b2a15['t'](_0xfa3ecc(0x37b)),'onSelect':()=>_0x533c68({'type':_0x39775d[_0xfa3ecc(0x300)],'document':Ei()},0x4,0x6)},{'type':'item','children':_0x9b2a15['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>Di(_0x217f3e)[_0xfa3ecc(0x1fb)](_0x51327d=>_0x51327d&&_0x533c68({'type':_0x39775d[_0xfa3ecc(0x3d2)],'source':_0x51327d[_0xfa3ecc(0x237)],'sourceType':_0x51327d[_0xfa3ecc(0x260)],'alt':_0x51327d[_0xfa3ecc(0x2a3)],'displayMode':'cover'},0x4,0x6))},{'type':_0xfa3ecc(0x3de),'children':_0x9b2a15['t'](_0xfa3ecc(0x1d2)),'onSelect':()=>{const _0x2acc7c=_0xfa3ecc;let _0x322d2c=_0x5a7466[_0x2acc7c(0x284)][_0x2acc7c(0x47f)](_0x378de3=>_0x5a7466[_0x2acc7c(0x377)][_0x378de3]);_0x322d2c&&_0x533c68({'type':_0x39775d[_0x2acc7c(0x474)],'tableId':_0x322d2c,'shapeType':_0x25ce73['RoundRect'],'shapeData':_0x501502(),'description':_0x9b2a15['t'](_0x2acc7c(0x1d2))},0x4,0x6);}}],_0x5ec154=_0x4399ab?_0x44bc08[_0xfa3ecc(0x33d)][_0x4399ab]:void 0x0,_0x402312=()=>_0x359d85(_0x3ffeed=>!_0x3ffeed),_0x535905=_0x13c816||_0x545a3c,_0x3245c9=_0x158047&&!_0x535905;return _0x414ebe(Jr,{'children':_0x3c00a1(_0xfa3ecc(0x384),{'className':_0xfa3ecc(0x27b)+(_0x545a3c?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':_0xfa3ecc(0x18b))+_0xfa3ecc(0x335),'children':[_0x545a3c&&_0x414ebe(_0x5d2b24,{'onClick':()=>_0x359d85(!0x1),'size':_0xfa3ecc(0x45d),'children':_0x9b2a15['t']('bases-dashboard-ui.dashboardInspector.close')}),!_0x535905&&_0x3c00a1(_0xfa3ecc(0x38b),{'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':[_0x414ebe(_0x3c5010,{'className':'univer-size-5\x20univer-text-primary-600'}),_0x414ebe('h2',{'className':_0xfa3ecc(0x32e),'children':_0x44bc08[_0xfa3ecc(0x2a3)]}),_0x48864d['supports'](_0x37ca29)&&_0x414ebe(_0x5d2b24,{'variant':_0xfa3ecc(0x476),'disabled':!_0x48864d[_0xfa3ecc(0x233)](_0x37ca29),'aria-label':_0x9b2a15['t'](_0xfa3ecc(0x1df)),'onClick':()=>{const _0x584b4c=_0xfa3ecc;_0xaa0c2a(_0x270aea,{'target':_0x37ca29,'name':_0x44bc08[_0x584b4c(0x2a3)],'commandId':_0x3c4b15['id'],'exists':()=>!!_0x3bcc98['getDashboard'](_0x44524e,_0x2e94ca)});},'size':_0xfa3ecc(0x45d),'children':_0x414ebe(_0x1352c6,{})}),_0x414ebe(_0xd9e87c,{'unitId':_0x44524e}),_0x414ebe(_0x5d2b24,{'type':_0xfa3ecc(0x30b),'size':'middle','variant':'text','aria-label':_0x9b2a15['t']('bases-dashboard-ui.dashboard.undo'),'disabled':!_0x158047||_0x35e996[_0xfa3ecc(0x189)]===0x0,'onClick':()=>_0x3791bc[_0xfa3ecc(0x25b)](_0x2cf828['id'])['catch'](()=>void 0x0),'children':_0x414ebe(_0x4dc9e7,{})}),_0x414ebe(_0x5d2b24,{'type':'button','size':'middle','variant':_0xfa3ecc(0x476),'aria-label':_0x9b2a15['t'](_0xfa3ecc(0x22b)),'disabled':!_0x158047||_0x35e996[_0xfa3ecc(0x29b)]===0x0,'onClick':()=>_0x3791bc[_0xfa3ecc(0x25b)](_0x40e22e['id'])['catch'](()=>void 0x0),'children':_0x414ebe(_0x9c5a81,{})}),_0x414ebe(_0x5d2b24,{'type':_0xfa3ecc(0x30b),'size':_0xfa3ecc(0x45d),'variant':'text','aria-label':_0x9b2a15['t'](_0xfa3ecc(0x382)),'onClick':_0x402312,'children':_0x414ebe(_0x552f90,{})}),_0x414ebe(Xr,{'items':_0x1c60e5,'children':_0x3c00a1(_0x5d2b24,{'variant':'primary','disabled':!_0x158047,'size':_0xfa3ecc(0x45d),'children':[_0x414ebe(_0x2dc2bd,{}),_0x9b2a15['t']('bases-dashboard-ui.dashboard.addWidget')]})})]}),_0x3c00a1(_0xfa3ecc(0x384),{'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1','children':[_0x414ebe('div',{'className':_0xfa3ecc(0x1f4),'children':_0x414ebe(Kr,{'dashboard':_0x44bc08,'editable':_0x3245c9,'widgetLabel':_0x3a3501=>_0x9b2a15['t'](ki(_0x3a3501['type'])),'selectedWidgetId':_0x3245c9?_0x4399ab:void 0x0,'onSelectWidget':_0x3245c9?_0x132170=>{_0x1d1ca4(_0x132170),_0x132170||_0x508c7b(!0x1);}:void 0x0,'renderWidget':_0xf4cfc2=>_0x414ebe(Ci,{'base':_0x3eb253,'dashboard':_0x44bc08,'unitId':_0x44524e,'widget':_0xf4cfc2,'onChange':_0x26ccac,'onChartRuntimeChange':_0x22705d}),'renderWidgetActions':_0x50c05a=>_0x414ebe(xi,{'onMoveUp':_0x44bc08[_0xfa3ecc(0x47d)][_0xfa3ecc(0x406)](_0x50c05a['id'])>0x0?()=>_0xff4042(_0x50c05a['id'],-0x1):void 0x0,'onMoveDown':_0x44bc08[_0xfa3ecc(0x47d)][_0xfa3ecc(0x406)](_0x50c05a['id'])<_0x44bc08[_0xfa3ecc(0x47d)][_0xfa3ecc(0x151)]-0x1?()=>_0xff4042(_0x50c05a['id'],0x1):void 0x0,'onEdit':()=>{_0x1d1ca4(_0x50c05a['id']),_0x508c7b(!0x0);},'onDelete':()=>{const _0x24f74b=_0xfa3ecc;_0x4399ab===_0x50c05a['id']&&(_0x1d1ca4(void 0x0),_0x508c7b(!0x1)),_0x3791bc[_0x24f74b(0x25b)](_0x3707f4['id'],{'unitId':_0x44524e,'dashboardId':_0x2e94ca,'widgetId':_0x50c05a['id']})[_0x24f74b(0x147)](()=>void 0x0);}})})}),_0x3245c9&&_0x327851&&_0x5ec154&&_0x414ebe(pi,{'base':_0x3eb253,'chartRuntime':_0x1d0a0f[_0xfa3ecc(0x44b)](_0x5ec154['id']),'unitId':_0x44524e,'widget':_0x5ec154,'onChange':_0x26ccac,'onClose':()=>_0x508c7b(!0x1),'onSelectBackgroundImage':()=>Oi(_0x2598b8),'onSelectImage':()=>Di(_0x217f3e)})]})]})});}function Ci({base:_0x50e220,dashboard:_0x4bf823,onChange:_0x29717d,onChartRuntimeChange:_0x3d879e,unitId:_0x2ae4e8,widget:_0x63615e}){const _0x3825fd=_0x290871;let _0x46c8a4=_0x50478e(()=>_0x4bf823[_0x3825fd(0x47d)][_0x3825fd(0x2af)](_0x5078cb=>{const _0x10f9f5=_0x3825fd;let _0x4f4b71=_0x4bf823[_0x10f9f5(0x33d)][_0x5078cb];return(_0x4f4b71==null?void 0x0:_0x4f4b71[_0x10f9f5(0x183)])===_0x39775d['TableFilter']&&_0x4f4b71[_0x10f9f5(0x1b9)]===(_0x10f9f5(0x1b9)in _0x63615e?_0x63615e[_0x10f9f5(0x1b9)]:'')&&_0x4f4b71['filter']?[_0x4f4b71[_0x10f9f5(0x42d)]]:[];}),[_0x4bf823,_0x63615e]);switch(_0x63615e[_0x3825fd(0x183)]){case _0x39775d['PivotChart']:return _0x414ebe(zr,{'filters':_0x46c8a4,'unitId':_0x2ae4e8,'widget':_0x63615e,'onRuntimeChange':_0x3d879e});case _0x39775d[_0x3825fd(0x324)]:return _0x414ebe(di,{'fields':wi(_0x50e220,_0x63615e[_0x3825fd(0x1b9)]),'filter':_0x63615e[_0x3825fd(0x42d)],'onChange':_0x1b7025=>_0x29717d({..._0x63615e,'filter':_0x1b7025})[_0x3825fd(0x147)](()=>void 0x0)});case _0x39775d[_0x3825fd(0x300)]:return _0x414ebe(Gr,{'widget':_0x63615e});case _0x39775d[_0x3825fd(0x3d2)]:return _0x414ebe(Ti,{'widget':_0x63615e});case _0x39775d[_0x3825fd(0x474)]:return _0x414ebe(kr,{'dashboardId':_0x4bf823['id'],'unitId':_0x2ae4e8,'widget':_0x63615e});}}function wi(_0x2fef50,_0x120a12){const _0x3a2b73=_0x290871;let _0x3deb86=_0x2fef50[_0x3a2b73(0x18e)]()[_0x3a2b73(0x377)][_0x120a12],_0x3d30a2=_0x3deb86==null?void 0x0:_0x3deb86[_0x3a2b73(0x40f)][_0x3a2b73(0x47f)](_0x28f231=>_0x3deb86[_0x3a2b73(0x483)][_0x28f231]),_0x57ea1a=_0x3d30a2?_0x3deb86==null?void 0x0:_0x3deb86[_0x3a2b73(0x483)][_0x3d30a2]:void 0x0;return _0x3deb86&&_0x57ea1a?_0x5dcd9e(_0x3deb86,_0x57ea1a):[];}function Ti({widget:_0x4c5005}){const _0x216889=_0x290871;let _0x1b47bc=_0xe276a8(_0xdb66e),[_0x5539de,_0x50c6cc]=_0x3f626c(_0x4c5005[_0x216889(0x260)]===_0x2b3585[_0x216889(0x320)]?'':_0x4c5005['source']);return _0x330c05(()=>{const _0x5af781=_0x216889;let _0x41464e=!0x0;return _0x1b47bc['getAttachmentUrl'](_0x4c5005[_0x5af781(0x237)],_0x4c5005[_0x5af781(0x260)])[_0x5af781(0x1fb)](_0xfe65c6=>{_0x41464e&&_0x50c6cc(_0xfe65c6);})[_0x5af781(0x147)](()=>void 0x0),()=>{_0x41464e=!0x1;};},[_0x1b47bc,_0x4c5005[_0x216889(0x237)],_0x4c5005[_0x216889(0x260)]]),_0x5539de?_0x414ebe('div',{'role':_0x4c5005[_0x216889(0x35c)]?'img':void 0x0,'aria-label':_0x4c5005[_0x216889(0x35c)]||void 0x0,'data-dashboard-image':_0x4c5005['id'],'className':_0x216889(0x362),'style':br(_0x5539de,_0x4c5005[_0x216889(0x3f8)])}):null;}function Ei(){let _0x39b73f=_0x2900cb(new Set());return{'id':'dashboard-text-'+_0x89ef13(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x39b73f}]},'documentStyle':{}};}function Di(_0x5ba008){return new Promise(_0x4c5606=>{const _0x2f18b2=_0x29b7;let _0x1c4a95=document[_0x2f18b2(0x437)]('input');_0x1c4a95['type']=_0x2f18b2(0x279),_0x1c4a95[_0x2f18b2(0x2f3)]=_0x2f18b2(0x36c),_0x1c4a95[_0x2f18b2(0x232)](_0x2f18b2(0x464),()=>{const _0x330149=_0x2f18b2;var _0x5a2d89;let _0x15740b=(_0x5a2d89=_0x1c4a95[_0x330149(0x1bf)])==null?void 0x0:_0x5a2d89[0x0];_0x15740b?_0x5ba008[_0x330149(0x243)](_0x15740b)[_0x330149(0x1fb)](_0x3ceee0=>{const _0x1e6777=_0x330149;!_0x3ceee0[_0x1e6777(0x237)]||_0x3ceee0[_0x1e6777(0x260)]===void 0x0?_0x4c5606(null):_0x4c5606({'name':_0x3ceee0[_0x1e6777(0x2a3)],'source':_0x3ceee0['source'],'sourceType':_0x3ceee0['sourceType']});})['catch'](()=>_0x4c5606(null)):_0x4c5606(null);},{'once':!0x0}),_0x1c4a95[_0x2f18b2(0x334)]();});}function Oi(_0x2658d3){return new Promise(_0x3f4572=>{const _0x1eca2f=_0x29b7;let _0x362e4e=document[_0x1eca2f(0x437)]('input');_0x362e4e['type']='file',_0x362e4e[_0x1eca2f(0x2f3)]=_0x1eca2f(0x36c),_0x362e4e[_0x1eca2f(0x232)]('change',()=>{const _0x5ef53a=_0x1eca2f;var _0x1dd25e;let _0x583838=(_0x1dd25e=_0x362e4e['files'])==null?void 0x0:_0x1dd25e[0x0];_0x583838?_0x2658d3[_0x5ef53a(0x282)](_0x583838)[_0x5ef53a(0x1fb)](_0x5d8783=>{const _0x189808=_0x5ef53a;if(!(_0x5d8783!=null&&_0x5d8783[_0x189808(0x237)]))_0x3f4572(null);else{if(_0x5d8783[_0x189808(0x43f)]){let _0x577526=new Image();_0x577526[_0x189808(0x2f2)]=_0x5d8783[_0x189808(0x43f)],_0x2658d3[_0x189808(0x23c)](_0x5d8783[_0x189808(0x237)],_0x5d8783[_0x189808(0x293)],_0x577526);}_0x3f4572({'source':_0x5d8783[_0x189808(0x237)],'sourceType':_0x5d8783[_0x189808(0x293)]});}})[_0x5ef53a(0x147)](()=>_0x3f4572(null)):_0x3f4572(null);},{'once':!0x0}),_0x362e4e['click']();});}function ki(_0x5e3132){const _0x4e5b66=_0x290871;switch(_0x5e3132){case _0x39775d[_0x4e5b66(0x26a)]:return _0x4e5b66(0x2fa);case _0x39775d[_0x4e5b66(0x324)]:return'bases-dashboard-ui.dashboard.tableFilter';case _0x39775d[_0x4e5b66(0x300)]:return _0x4e5b66(0x37b);case _0x39775d['Image']:return'bases-dashboard-ui.dashboard.image';case _0x39775d[_0x4e5b66(0x474)]:return _0x4e5b66(0x1d2);}}function Ai(_0x449e06){const _0xac7a40=_0x290871;return(_0x449e06==null?void 0x0:_0x449e06[_0xac7a40(0x183)])===_0x3744eb[_0xac7a40(0x250)]&&typeof _0x449e06[_0xac7a40(0x193)]=='object'&&_0x449e06[_0xac7a40(0x193)]!==null&&_0xac7a40(0x145)in _0x449e06[_0xac7a40(0x193)]&&'chart'in _0x449e06[_0xac7a40(0x193)];}function ji({pivot:_0x3b987f,view:_0x1b1a9e}){const _0x51820b=_0x290871;let _0x1be2db=_0xe276a8(_0x4b0f72),_0x6afb10=_0x50478e(()=>Mi(_0x1b1a9e,_0x3b987f,_0x1be2db['t'](_0x51820b(0x373))),[_0x1be2db,_0x3b987f,_0x1b1a9e]);return _0x3c00a1(_0x51820b(0x384),{'className':_0x51820b(0x2dd),'children':[_0x6afb10[_0x51820b(0x22d)][_0x51820b(0x151)]>0x0&&_0x414ebe(_0x51820b(0x363),{'className':_0x51820b(0x37e),'children':_0x414ebe(_0x51820b(0x216),{'children':Ni(_0x6afb10['pageRows'])})}),_0x3c00a1(_0x51820b(0x363),{'className':'univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','children':[_0x6afb10[_0x51820b(0x41c)]>0x0&&_0x414ebe(_0x51820b(0x280),{'className':_0x51820b(0x297),'children':Ni(_0x6afb10['rows'][_0x51820b(0x234)](0x0,_0x6afb10[_0x51820b(0x41c)]))}),_0x414ebe(_0x51820b(0x216),{'children':Ni(_0x6afb10['rows'][_0x51820b(0x234)](_0x6afb10['headerRowCount']))})]})]});}function Mi(_0x4f6297,_0x2ff28a,_0x3e73b7){const _0x2015ce=_0x290871;let _0x185c49=_0x4f6297[_0x2015ce(0x44d)][_0x2015ce(0x432)],_0x2b3611=_0x4f6297['rowView']['colCount'],_0x551ab2=_0x4f6297[_0x2015ce(0x393)][_0x2015ce(0x432)],_0x188494=_0x4f6297['dataView'][_0x2015ce(0x222)],_0x4cbfae=Array[_0x2015ce(0x2ba)]({'length':_0x185c49+_0x551ab2},(_0x6df274,_0x1a04c3)=>Array[_0x2015ce(0x2ba)]({'length':_0x2b3611+_0x188494},(_0x18740c,_0x247160)=>{const _0x58d1d5=_0x2015ce;var _0x1f1341,_0x11d00a;if(_0x1a04c3<_0x185c49&&_0x247160<_0x2b3611)return Pi(_0x4f6297['cornerView'],_0x1a04c3,_0x247160,void 0x0,_0x3e73b7,!0x0,!0x1,_0x58d1d5(0x28f)+_0x1a04c3+':'+_0x247160);if(_0x1a04c3<_0x185c49){var _0x211c3d;let _0x483afa=_0x247160-_0x2b3611,_0x25856a=(_0x211c3d=_0x4f6297['colView'][_0x58d1d5(0x34f)][_0x1a04c3])==null?void 0x0:_0x211c3d[_0x58d1d5(0x14c)];return Pi(_0x4f6297['colView'],_0x1a04c3,_0x483afa,_0x25856a?_0x4f6297[_0x58d1d5(0x1d7)][_0x25856a]:void 0x0,_0x3e73b7,!0x0,Li(_0x4f6297['colView'][_0x58d1d5(0x247)][_0x483afa]),_0x58d1d5(0x1e3)+_0x1a04c3+':'+_0x483afa);}if(_0x247160<_0x2b3611){var _0x23b19b;let _0x4ef877=_0x1a04c3-_0x185c49,_0x158859=(_0x23b19b=_0x4f6297['rowView'][_0x58d1d5(0x34f)][_0x247160])==null?void 0x0:_0x23b19b['tableFieldId'];return Pi(_0x4f6297[_0x58d1d5(0x1a8)],_0x4ef877,_0x247160,_0x158859?_0x4f6297[_0x58d1d5(0x1d7)][_0x158859]:void 0x0,_0x3e73b7,!0x0,Li(_0x4f6297['rowView'][_0x58d1d5(0x247)][_0x4ef877]),'row:'+_0x4ef877+':'+_0x247160);}let _0x42d219=_0x1a04c3-_0x185c49,_0x5538d5=_0x247160-_0x2b3611,_0x3b36a2=Math[_0x58d1d5(0x399)](((_0x1f1341=_0x4f6297[_0x58d1d5(0x1a8)][_0x58d1d5(0x247)][_0x42d219])==null?void 0x0:_0x1f1341[_0x58d1d5(0x3cc)])??-0x1,((_0x11d00a=_0x4f6297[_0x58d1d5(0x44d)]['info'][_0x5538d5])==null?void 0x0:_0x11d00a[_0x58d1d5(0x3cc)])??-0x1),_0x326288=_0x2ff28a[_0x58d1d5(0x167)][_0x3b36a2<0x0?0x0:_0x3b36a2];return Pi(_0x4f6297[_0x58d1d5(0x393)],_0x42d219,_0x5538d5,_0x326288?_0x4f6297[_0x58d1d5(0x1d7)][_0x326288]:void 0x0,_0x3e73b7,!0x1,Li(_0x4f6297['rowView'][_0x58d1d5(0x247)][_0x42d219])||Li(_0x4f6297[_0x58d1d5(0x44d)]['info'][_0x5538d5]),_0x58d1d5(0x310)+_0x42d219+':'+_0x5538d5);}));return{'headerColumnCount':_0x2b3611,'headerRowCount':_0x185c49,'pageRows':_0x4f6297[_0x2015ce(0x182)][_0x2015ce(0x389)]<0x0||_0x4f6297[_0x2015ce(0x182)][_0x2015ce(0x3a1)]<0x0?[]:Array['from']({'length':_0x4f6297[_0x2015ce(0x182)][_0x2015ce(0x389)]+0x1},(_0x4084af,_0x3925fb)=>Array[_0x2015ce(0x2ba)]({'length':_0x4f6297['pageView'][_0x2015ce(0x3a1)]+0x1},(_0x166816,_0x9aae74)=>Pi(_0x4f6297[_0x2015ce(0x182)],_0x3925fb,_0x9aae74,void 0x0,_0x3e73b7,!0x0,!0x1,_0x2015ce(0x381)+_0x3925fb+':'+_0x9aae74))),'rows':_0x4cbfae};}function Ni(_0x3d7e2a){const _0x13bbba=_0x290871;return _0x3d7e2a[_0x13bbba(0x3a8)](_0x12d728=>{const _0x5577f8=_0x13bbba;var _0x437d2c;return _0x414ebe('tr',{'children':_0x12d728[_0x5577f8(0x3a8)](_0x64b049=>{const _0x581a08=_0x5577f8;let _0xe88f92=_0x64b049[_0x581a08(0x34a)]?'th':'td';return _0x414ebe(_0xe88f92,{'className':_0x581a08(0x2fd)+(_0x64b049['isTotal']?_0x581a08(0x13d):'')+_0x581a08(0x487)+(_0x64b049[_0x581a08(0x34a)]?'':_0x581a08(0x2c4))+_0x581a08(0x21a),'children':_0x64b049[_0x581a08(0x1c2)]},_0x64b049['key']);})},(_0x437d2c=_0x12d728[0x0])==null?void 0x0:_0x437d2c[_0x5577f8(0x29d)]);});}function Pi(_0x57ccab,_0x51b4b2,_0x240e86,_0xb6d521,_0x567e9e,_0x3acf02,_0x27fd7d,_0x2e089f){const _0x1412fb=_0x290871;var _0x296f1c;let _0x313d73=(_0x296f1c=_0x57ccab['data'][_0x51b4b2])==null?void 0x0:_0x296f1c[_0x240e86],_0x2a01a4=_0x313d73==null?void 0x0:_0x313d73['s'],_0xe75dc9=_0x27fd7d||_0x2a01a4===_0x57b037[_0x1412fb(0x328)]||_0x2a01a4===_0x57b037[_0x1412fb(0x1ad)];return{'isHeader':_0x3acf02,'isTotal':_0xe75dc9||_0x2a01a4===_0x57b037[_0x1412fb(0x3d3)],'key':_0x2e089f,'style':_0x2a01a4,'value':_0xe75dc9&&Ii(_0x313d73==null?void 0x0:_0x313d73['v'])?_0x567e9e:Fi(_0x313d73,_0xb6d521)};}function Fi(_0xfe4ec0,_0x2d4efb){const _0x353100=_0x290871;let _0x47bef9=_0xfe4ec0==null?void 0x0:_0xfe4ec0['v'];return _0x2a61e8(_0x47bef9)?String(_0x47bef9[_0x353100(0x1c2)]??_0x47bef9['prefix']??''):_0xb054a9(_0x47bef9)?'#'+_0x47bef9['errorType']:_0x2d4efb&&typeof _0x47bef9==_0x353100(0x475)?_0x488061[_0x353100(0x30f)](_0x2d4efb,_0x47bef9):String(_0x47bef9??'');}function Ii(_0x303fb7){return _0x303fb7===void 0x0||_0x303fb7==='';}function Li(_0x282427){const _0x48a540=_0x290871;return!!(_0x282427!=null&&_0x282427[_0x48a540(0x2aa)]||_0x282427!=null&&_0x282427[_0x48a540(0x353)]||_0x282427!=null&&_0x282427[_0x48a540(0x176)]||(_0x282427==null?void 0x0:_0x282427[_0x48a540(0x14d)])===_0x48a540(0x386));}const Ri=[{'area':_0x1b52e3[_0x290871(0x40c)],'key':_0x290871(0x245),'label':_0x290871(0x418)},{'area':_0x1b52e3[_0x290871(0x356)],'key':_0x290871(0x18d),'label':'bases-dashboard-ui.pivot.columns'},{'area':_0x1b52e3[_0x290871(0x1c8)],'key':_0x290871(0x281),'label':_0x290871(0x41f)},{'area':_0x1b52e3[_0x290871(0x19f)],'key':_0x290871(0x167),'label':_0x290871(0x3e8)}],zi=[{'value':_0x358af4[_0x290871(0x2d0)],'localeKey':'bases-dashboard-ui.pivot.sum'},{'value':_0x358af4[_0x290871(0x2a7)],'localeKey':_0x290871(0x24d)},{'value':_0x358af4['countNums'],'localeKey':_0x290871(0x2d4)},{'value':_0x358af4[_0x290871(0x1db)],'localeKey':_0x290871(0x24c)},{'value':_0x358af4[_0x290871(0x399)],'localeKey':_0x290871(0x2a9)},{'value':_0x358af4[_0x290871(0x459)],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x358af4['product'],'localeKey':'bases-dashboard-ui.pivot.product'},{'value':_0x358af4[_0x290871(0x367)],'localeKey':_0x290871(0x17a)},{'value':_0x358af4[_0x290871(0x21f)],'localeKey':_0x290871(0x295)},{'value':_0x358af4[_0x290871(0x1fe)],'localeKey':_0x290871(0x203)},{'value':_0x358af4[_0x290871(0x156)],'localeKey':_0x290871(0x321)}];function Bi(_0x84a526){const _0x1a719e=_0x290871;let {config:_0x2031cc,onChange:_0x4eb225,table:_0x2ccd29}=_0x84a526,_0x32e43f=_0xe276a8(_0x4b0f72),[_0x26fb95,_0x3a68e4]=_0x3f626c(_0x1a719e(0x345)),[_0x3f79b8,_0x5b766a]=_0x3f626c(''),[_0x528048,_0x16dc56]=_0x3f626c(null),[_0x242942,_0x5e6d43]=_0x3f626c(null),[_0xca9927,_0x3625df]=_0x3f626c(null),[_0x55a7bb,_0x3bb537]=_0x3f626c(null),_0x4c2f21=_0x3987b(null),_0x252893=_0x50478e(()=>_0x2ccd29['fieldOrder'][_0x1a719e(0x2af)](_0x3dda3c=>{const _0x2b5cdc=_0x1a719e;let _0x36f821=_0x2ccd29[_0x2b5cdc(0x345)][_0x3dda3c];return _0x36f821&&_0x36f821[_0x2b5cdc(0x266)]!==!0x0&&_0x36f821[_0x2b5cdc(0x183)]!==_0x5e006f[_0x2b5cdc(0x41d)]?[_0x36f821]:[];})[_0x1a719e(0x42d)](_0xd8f896=>_0xd8f896['name'][_0x1a719e(0x3da)]()[_0x1a719e(0x424)](_0x3f79b8['trim']()['toLocaleLowerCase']())),[_0x3f79b8,_0x2ccd29]),_0x55f162=_0x2e1af1=>{const _0x2f2df3=_0x1a719e;let _0x4b5303=_0x2abd9d(_0x2ccd29,_0x2031cc[_0x2f2df3(0x145)]);try{_0x2e1af1(_0x4b5303),_0x4eb225({'pivot':_0x4b5303['toJSON']()});}finally{_0x4b5303[_0x2f2df3(0x470)]();}},_0x3785d4=(_0x125714,_0x594bd9)=>{_0x528048&&(_0x55f162(_0xef3b6c=>{const _0xa8929b=_0x29b7;if(_0x528048[_0xa8929b(0x3f2)]==='field'){let _0x1af989=_0xef3b6c[_0xa8929b(0x325)](_0x528048['id']),_0x382c4e=_0x1af989[_0xa8929b(0x225)]===_0x125714&&_0x1af989[_0xa8929b(0x23e)]<_0x594bd9?_0x594bd9-0x1:_0x594bd9;_0xef3b6c['updateFieldPosition'](_0x528048['id'],_0x125714,_0x382c4e);}else Ji(_0xef3b6c,_0x528048['id'],_0x125714,_0x594bd9);}),_0x16dc56(null),_0x5e6d43(null));};return _0x3c00a1('div',{'className':_0x1a719e(0x142),'children':[_0x414ebe(_0xbfe45a,{'ariaLabel':_0x32e43f['t'](_0x1a719e(0x165)),'className':'univer-shrink-0\x20univer-px-4','items':[{'label':_0x32e43f['t'](_0x1a719e(0x489)),'panelId':_0x1a719e(0x456),'value':_0x1a719e(0x345)},{'label':_0x32e43f['t'](_0x1a719e(0x3b4)),'panelId':_0x1a719e(0x157),'value':'options'}],'value':_0x26fb95,'onChange':_0x3a68e4}),_0x414ebe(_0x1a719e(0x384),{'ref':_0x4c2f21,'className':_0x2c3136('univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3',_0x443bf8),'onDragOver':_0x34743c=>{const _0x59a1fb=_0x1a719e;let _0x4645a5=_0x4c2f21[_0x59a1fb(0x2e7)];if(!_0x4645a5)return;let _0xc52716=_0x4645a5['getBoundingClientRect']();_0x34743c[_0x59a1fb(0x396)]<_0xc52716[_0x59a1fb(0x392)]+0x30?_0x4645a5[_0x59a1fb(0x17d)]-=0x10:_0x34743c[_0x59a1fb(0x396)]>_0xc52716['bottom']-0x30&&(_0x4645a5['scrollTop']+=0x10);},'children':_0x26fb95===_0x1a719e(0x209)?_0x414ebe(qi,{'config':_0x2031cc,'commit':_0x55f162}):_0x3c00a1(_0x1a719e(0x384),{'className':_0x1a719e(0x214),'children':[_0x3c00a1('div',{'children':[_0x414ebe(_0x1a719e(0x384),{'className':_0x1a719e(0x41b),'children':_0x32e43f['t'](_0x1a719e(0x43e))}),_0x414ebe(_0x448a93,{'allowClear':!0x0,'slot':_0x414ebe(_0x282ad6,{}),'value':_0x3f79b8,'placeholder':_0x32e43f['t'](_0x1a719e(0x417)),'onChange':_0x5b766a,'size':_0x1a719e(0x231)}),_0x414ebe(_0x1a719e(0x384),{'className':'univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','children':_0x252893[_0x1a719e(0x3a8)](_0x271b82=>_0x414ebe(Vi,{'config':_0x2031cc,'field':_0x271b82,'onAdd':_0x4c4a7f=>_0x55f162(_0x3f4e5a=>Ji(_0x3f4e5a,_0x271b82['id'],_0x4c4a7f,_0x3f4e5a[_0x1a719e(0x3a7)](_0x4c4a7f))),'onCheckedChange':_0x49af29=>_0x55f162(_0x444ae6=>{const _0xfb42dc=_0x1a719e;let _0x2a4426=_0x444ae6['getTableFieldsByDataFieldId'](_0x271b82['id']);if(!_0x49af29)_0x2a4426[_0xfb42dc(0x24e)](_0x5d238c=>_0x444ae6[_0xfb42dc(0x17b)](_0x5d238c[_0xfb42dc(0x378)]()));else{if(_0x2a4426[_0xfb42dc(0x151)]===0x0){let _0x3ece8=Xi(_0x271b82)?_0x1b52e3['Value']:_0x1b52e3[_0xfb42dc(0x1c8)];_0x444ae6[_0xfb42dc(0x229)](_0x271b82['id'],_0x3ece8);}}}),'onDragStart':()=>_0x16dc56({'kind':_0x1a719e(0x237),'id':_0x271b82['id']})},_0x271b82['id']))})]}),_0x414ebe('div',{'className':_0x1a719e(0x1ff),'children':Ri['map'](_0x5f4480=>_0x414ebe(Ui,{'area':_0x5f4480[_0x1a719e(0x225)],'dropTarget':_0x242942,'fields':_0x2031cc[_0x1a719e(0x145)][_0x5f4480[_0x1a719e(0x29d)]],'label':_0x32e43f['t'](_0x5f4480[_0x1a719e(0x1e5)]),'snapshot':_0x2031cc[_0x1a719e(0x145)],'onDragEnd':()=>{_0x16dc56(null),_0x5e6d43(null);},'onDragStart':_0x348ae9=>_0x16dc56({'kind':_0x1a719e(0x2db),'id':_0x348ae9,'area':_0x5f4480[_0x1a719e(0x225)]}),'onDragOver':_0x2e32d0=>_0x5e6d43({'area':_0x5f4480[_0x1a719e(0x225)],'index':_0x2e32d0}),'onDrop':_0x44edd3=>_0x3785d4(_0x5f4480[_0x1a719e(0x225)],_0x44edd3),'onFilter':_0x3625df,'onMove':(_0x3e73e9,_0x100fd7,_0x15fbce)=>_0x55f162(_0x5adb3d=>_0x5adb3d['updateFieldPosition'](_0x3e73e9,_0x100fd7,_0x15fbce)),'onRemove':_0x156c6b=>_0x55f162(_0x3d0903=>_0x3d0903[_0x1a719e(0x17b)](_0x156c6b)),'onSettings':_0x3bb537},_0x5f4480[_0x1a719e(0x225)]))}),_0xca9927&&_0x414ebe(Gi,{'fieldId':_0xca9927,'snapshot':_0x2031cc[_0x1a719e(0x145)],'table':_0x2ccd29,'onCancel':()=>_0x3625df(null),'onCommit':(_0x4b7ef6,_0x2c2fa3)=>{_0x55f162(_0x4dfca0=>{const _0x54ad85=_0x29b7;let _0x13a6dd=_0x4dfca0[_0x54ad85(0x1b6)](_0xca9927),_0x147f78=(_0x13a6dd==null?void 0x0:_0x13a6dd[_0x54ad85(0x184)])??[];_0x4dfca0[_0x54ad85(0x44e)](_0xca9927,{'type':_0x101c58[_0x54ad85(0x42a)],'list':_0x4b7ef6,'isAll':_0x4b7ef6[_0x54ad85(0x151)]===_0x147f78['length']}),_0x4dfca0[_0x54ad85(0x1ea)](_0xca9927,_0x2c2fa3===void 0x0?void 0x0:{'type':_0x2c2fa3});}),_0x3625df(null);}},_0xca9927),_0x55a7bb&&_0x414ebe(Ki,{'field':_0x2031cc[_0x1a719e(0x145)][_0x1a719e(0x33a)][_0x55a7bb],'onCancel':()=>_0x3bb537(null),'onCommit':(_0x1fd0fd,_0x2f1378,_0x4c27e1)=>{_0x55f162(_0x22f8eb=>{const _0x2c175a=_0x29b7;_0x22f8eb['renameField'](_0x55a7bb,_0x1fd0fd),_0x22f8eb[_0x2c175a(0x3c9)](_0x55a7bb,_0x2f1378),_0x22f8eb['setFieldFormat'](_0x55a7bb,_0x4c27e1||void 0x0);}),_0x3bb537(null);}},_0x55a7bb)]})})]});}function Vi(_0x122898){const _0x345b86=_0x290871;let {config:_0x410531,field:_0x2cdede,onAdd:_0x3caa85,onCheckedChange:_0x431e0e,onDragStart:_0x30c901}=_0x122898,_0x44a3fe=_0xe276a8(_0x4b0f72),_0xe36868=[...Object[_0x345b86(0x1ef)](_0x410531[_0x345b86(0x145)][_0x345b86(0x349)]),...Object['values'](_0x410531['pivot'][_0x345b86(0x33a)])][_0x345b86(0x331)](_0x36c641=>_0x36c641['dataFieldId']===_0x2cdede['id']),_0x1c6d92=Ri[_0x345b86(0x3a8)](_0x18378e=>({'type':_0x345b86(0x3de),'children':_0x44a3fe['t'](Zi(_0x18378e[_0x345b86(0x225)])),'onSelect':()=>_0x3caa85(_0x18378e[_0x345b86(0x225)])}));return _0x3c00a1(_0x345b86(0x384),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x345b86(0x3dd),'onDragStart':_0x30c901,'children':[_0x414ebe(_0x283511,{'checked':_0xe36868,'onChange':_0x1922a7=>_0x431e0e(!!_0x1922a7)}),_0x414ebe(Hi,{'field':_0x2cdede}),_0x414ebe('span',{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x2cdede[_0x345b86(0x2a3)]}),_0x414ebe(Xr,{'align':_0x345b86(0x375),'items':_0x1c6d92,'children':_0x414ebe(_0x5d2b24,{'variant':_0x345b86(0x476),'aria-label':_0x44a3fe['t'](_0x345b86(0x276)),'size':_0x345b86(0x45d),'children':_0x414ebe(_0xed8c69,{})})})]});}function Hi({field:_0x13ca83}){const _0x2bcc6d=_0x290871;return Xi(_0x13ca83)?_0x414ebe(_0x15cd07,{'className':'univer-text-gray-400'}):_0x13ca83[_0x2bcc6d(0x183)]===_0x5e006f[_0x2bcc6d(0x28d)]||_0x13ca83['type']===_0x5e006f[_0x2bcc6d(0x2e5)]||_0x13ca83[_0x2bcc6d(0x183)]===_0x5e006f[_0x2bcc6d(0x371)]?_0x414ebe(_0x2ac587,{'className':_0x2bcc6d(0x27e)}):_0x414ebe(_0x277b88,{'className':'univer-text-gray-400'});}function Ui(_0x251d43){const _0x368ee6=_0x290871;let {area:_0x20dabc,dropTarget:_0x418e05,fields:_0x2773e3,label:_0x3b7937,snapshot:_0x188397}=_0x251d43,_0x4c5f02=_0xe276a8(_0x4b0f72);return _0x3c00a1(_0x368ee6(0x1ab),{'className':_0x2c3136(_0x368ee6(0x404),_0x434c98),'onDragOver':_0xbdfc44=>{const _0x1a050f=_0x368ee6;_0xbdfc44[_0x1a050f(0x32d)](),_0x251d43[_0x1a050f(0x318)](_0x2773e3[_0x1a050f(0x151)]);},'onDrop':_0x5b89f4=>{const _0xbdf12e=_0x368ee6;_0x5b89f4[_0xbdf12e(0x32d)](),_0x251d43[_0xbdf12e(0x311)]((_0x418e05==null?void 0x0:_0x418e05[_0xbdf12e(0x225)])===_0x20dabc?_0x418e05['index']:_0x2773e3[_0xbdf12e(0x151)]);},'children':[_0x414ebe(_0x368ee6(0x384),{'className':_0x368ee6(0x1c4),'children':_0x3b7937}),_0x3c00a1(_0x368ee6(0x384),{'className':'univer-flex\x20univer-flex-col','children':[_0x2773e3[_0x368ee6(0x3a8)]((_0x3aaf51,_0x46c6ab)=>{const _0x454df4=_0x368ee6;let _0x4cc05c=_0x188397['dimension'][_0x3aaf51]??_0x188397[_0x454df4(0x33a)][_0x3aaf51];if(!_0x4cc05c)return null;let _0x489e79=(_0x418e05==null?void 0x0:_0x418e05[_0x454df4(0x225)])===_0x20dabc&&_0x418e05[_0x454df4(0x23e)]===_0x46c6ab;return _0x3c00a1(_0x454df4(0x384),{'onDragOver':_0x3121b2=>{const _0xd3cc74=_0x454df4;_0x3121b2[_0xd3cc74(0x32d)](),_0x3121b2[_0xd3cc74(0x442)]();let _0x2081c7=_0x3121b2[_0xd3cc74(0x36e)]['getBoundingClientRect']();_0x251d43[_0xd3cc74(0x318)](_0x46c6ab+ +(_0x3121b2[_0xd3cc74(0x396)]>_0x2081c7[_0xd3cc74(0x392)]+_0x2081c7[_0xd3cc74(0x45c)]/0x2));},'onDrop':_0x58be9b=>{const _0x11b006=_0x454df4;_0x58be9b[_0x11b006(0x32d)](),_0x58be9b[_0x11b006(0x442)](),_0x251d43[_0x11b006(0x311)]((_0x418e05==null?void 0x0:_0x418e05[_0x11b006(0x225)])===_0x20dabc?_0x418e05[_0x11b006(0x23e)]:_0x46c6ab);},'children':[_0x489e79&&_0x414ebe(_0x454df4(0x384),{'className':_0x454df4(0x1be)}),_0x414ebe(Wi,{'area':_0x20dabc,'field':_0x4cc05c,'onDragEnd':_0x251d43[_0x454df4(0x3c4)],'onDragStart':()=>_0x251d43[_0x454df4(0x466)](_0x3aaf51),'onFilter':()=>_0x251d43[_0x454df4(0x33e)](_0x3aaf51),'onMove':_0x251b65=>_0x251d43[_0x454df4(0x47c)](_0x3aaf51,_0x251b65,0x0),'onMoveUp':_0x46c6ab>0x0?()=>_0x251d43[_0x454df4(0x47c)](_0x3aaf51,_0x20dabc,_0x46c6ab-0x1):void 0x0,'onMoveDown':_0x46c6ab<_0x2773e3[_0x454df4(0x151)]-0x1?()=>_0x251d43[_0x454df4(0x47c)](_0x3aaf51,_0x20dabc,_0x46c6ab+0x1):void 0x0,'onRemove':()=>_0x251d43[_0x454df4(0x2d2)](_0x3aaf51),'onSettings':()=>_0x251d43[_0x454df4(0x36f)](_0x3aaf51)})]},_0x3aaf51);}),(_0x418e05==null?void 0x0:_0x418e05[_0x368ee6(0x225)])===_0x20dabc&&_0x418e05[_0x368ee6(0x23e)]===_0x2773e3['length']&&_0x414ebe(_0x368ee6(0x384),{'className':_0x368ee6(0x1be)}),_0x2773e3[_0x368ee6(0x151)]===0x0&&_0x414ebe('div',{'className':_0x368ee6(0x178),'children':_0x4c5f02['t'](_0x368ee6(0x43e))})]})]});}function Wi(_0x2e8f4e){const _0x5f1a83=_0x290871;let _0x267f34=_0xe276a8(_0x4b0f72),_0x25fe5c=_0x2e8f4e['area']===_0x1b52e3[_0x5f1a83(0x19f)],_0x1886bd=[...Ri[_0x5f1a83(0x42d)](_0x186218=>_0x186218[_0x5f1a83(0x225)]!==_0x2e8f4e[_0x5f1a83(0x225)])['map'](_0x218c45=>({'type':_0x5f1a83(0x3de),'children':_0x267f34['t'](Zi(_0x218c45['area'])),'onSelect':()=>_0x2e8f4e[_0x5f1a83(0x47c)](_0x218c45[_0x5f1a83(0x225)])})),..._0x2e8f4e['onMoveUp']?[{'type':_0x5f1a83(0x3de),'children':_0x267f34['t'](_0x5f1a83(0x2eb)),'onSelect':_0x2e8f4e['onMoveUp']}]:[],..._0x2e8f4e[_0x5f1a83(0x2fe)]?[{'type':_0x5f1a83(0x3de),'children':_0x267f34['t'](_0x5f1a83(0x2d5)),'onSelect':_0x2e8f4e['onMoveDown']}]:[],{'type':_0x5f1a83(0x3de),'children':_0x267f34['t'](_0x5f1a83(0x287)),'onSelect':_0x2e8f4e[_0x5f1a83(0x2d2)]},{'type':_0x5f1a83(0x3de),'children':_0x267f34['t'](_0x25fe5c?_0x5f1a83(0x276):_0x5f1a83(0x190)),'onSelect':_0x25fe5c?_0x2e8f4e[_0x5f1a83(0x36f)]:_0x2e8f4e[_0x5f1a83(0x33e)]}];return _0x3c00a1('div',{'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':_0x2e8f4e[_0x5f1a83(0x3c4)],'onDragStart':_0x2e8f4e['onDragStart'],'children':[_0x414ebe(_0x9a071a,{'title':_0x2e8f4e[_0x5f1a83(0x2db)]['displayName'],'children':_0x414ebe(_0x5f1a83(0x415),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x2e8f4e['field'][_0x5f1a83(0x230)]})}),_0x414ebe(Xr,{'align':_0x5f1a83(0x375),'items':_0x1886bd,'children':_0x414ebe(_0x5d2b24,{'variant':_0x5f1a83(0x476),'aria-label':_0x267f34['t'](_0x5f1a83(0x276)),'size':_0x5f1a83(0x45d),'children':_0x414ebe(_0xed8c69,{})})})]});}function Gi(_0x13479e){const _0x29c8ae=_0x290871;var _0x288d34,_0x54b6ab;let _0xe5b94=_0xe276a8(_0x4b0f72),{format:_0x4ad501,items:_0x44073d,itemTypes:_0x4cbc50}=_0x50478e(()=>{const _0x53caf9=_0x29b7;let _0x3e432e=_0x2abd9d(_0x13479e[_0x53caf9(0x363)],_0x13479e['snapshot']);try{let _0x2f25c8=_0x3e432e[_0x53caf9(0x1b6)](_0x13479e['fieldId']);return{'format':_0x2f25c8==null?void 0x0:_0x2f25c8['format'],'items':[...(_0x2f25c8==null?void 0x0:_0x2f25c8[_0x53caf9(0x184)])??[]],'itemTypes':[...(_0x2f25c8==null?void 0x0:_0x2f25c8['itemTypes'])??[]]};}finally{_0x3e432e[_0x53caf9(0x470)]();}},[_0x13479e[_0x29c8ae(0x48a)],_0x13479e[_0x29c8ae(0x1af)],_0x13479e[_0x29c8ae(0x363)]]),_0x761d1c=(_0x288d34=_0x13479e['snapshot']['dimension'][_0x13479e['fieldId']])==null?void 0x0:_0x288d34[_0x29c8ae(0x445)],[_0x2c3c89,_0x1949d1]=_0x3f626c((_0x761d1c==null?void 0x0:_0x761d1c[_0x29c8ae(0x183)])===_0x101c58[_0x29c8ae(0x42a)]?_0x761d1c[_0x29c8ae(0x277)]:_0x44073d),[_0x1adb9c,_0x11ba3f]=_0x3f626c((_0x54b6ab=_0x13479e[_0x29c8ae(0x1af)]['dimension'][_0x13479e[_0x29c8ae(0x48a)]])==null||(_0x54b6ab=_0x54b6ab[_0x29c8ae(0x36a)])==null?void 0x0:_0x54b6ab[_0x29c8ae(0x183)]),_0x2ff674=_0x2c3c89[_0x29c8ae(0x151)]===_0x44073d[_0x29c8ae(0x151)],_0x586b9f=_0x3c00a1(_0x29c8ae(0x1ab),{'className':_0x2c3136(_0x29c8ae(0x2a1),_0x434c98),'children':[_0x414ebe('div',{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0xe5b94['t'](_0x29c8ae(0x190))}),_0x3c00a1(_0x29c8ae(0x384),{'className':_0x29c8ae(0x485),'children':[_0x3c00a1(_0x5d2b24,{'className':'univer-flex-1','variant':_0x1adb9c===_0x34bdeb[_0x29c8ae(0x26c)]?_0x29c8ae(0x2c1):'default','onClick':()=>_0x11ba3f(_0x34bdeb[_0x29c8ae(0x26c)]),'size':'middle','children':[_0x414ebe(_0x16058f,{}),_0xe5b94['t'](_0x29c8ae(0x3db))]}),_0x3c00a1(_0x5d2b24,{'className':'univer-flex-1','variant':_0x1adb9c===_0x34bdeb['descending']?_0x29c8ae(0x2c1):_0x29c8ae(0x22e),'onClick':()=>_0x11ba3f(_0x34bdeb[_0x29c8ae(0x1cb)]),'size':_0x29c8ae(0x45d),'children':[_0x414ebe(_0x39dc4f,{}),_0xe5b94['t']('bases-dashboard-ui.pivot.descending')]})]}),_0x3c00a1('div',{'className':_0x29c8ae(0x31a),'children':[_0x3c00a1(_0x29c8ae(0x1e5),{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x414ebe(_0x283511,{'checked':_0x2ff674,'indeterminate':_0x2c3c89[_0x29c8ae(0x151)]>0x0&&!_0x2ff674,'onChange':()=>_0x1949d1(_0x2ff674?[]:_0x44073d)}),_0xe5b94['t']('bases-dashboard-ui.pivot.selectAll')]}),_0x44073d[_0x29c8ae(0x3a8)]((_0x52f2d0,_0x110a40)=>_0x3c00a1(_0x29c8ae(0x1e5),{'className':_0x29c8ae(0x223),'children':[_0x414ebe(_0x283511,{'checked':_0x2c3c89[_0x29c8ae(0x424)](_0x52f2d0),'onChange':()=>_0x1949d1(_0x5c46f0=>_0x5c46f0[_0x29c8ae(0x424)](_0x52f2d0)?_0x5c46f0[_0x29c8ae(0x42d)](_0x2f4a54=>_0x2f4a54!==_0x52f2d0):[..._0x5c46f0,_0x52f2d0])}),_0x414ebe(_0x29c8ae(0x415),{'className':_0x29c8ae(0x1cf),'children':Yi(_0x52f2d0,_0x4cbc50[_0x110a40],_0x4ad501,_0xe5b94['t']('bases-dashboard-ui.pivot.blank'))})]},_0x52f2d0))]}),_0x3c00a1(_0x29c8ae(0x384),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[_0x414ebe(_0x5d2b24,{'variant':_0x29c8ae(0x3f0),'onClick':()=>_0x13479e[_0x29c8ae(0x22a)](_0x44073d,_0x1adb9c),'size':'middle','children':_0xe5b94['t']('bases-dashboard-ui.pivot.clearFilter')}),_0x3c00a1(_0x29c8ae(0x384),{'className':_0x29c8ae(0x292),'children':[_0x414ebe(_0x5d2b24,{'onClick':_0x13479e[_0x29c8ae(0x252)],'size':_0x29c8ae(0x45d),'children':_0xe5b94['t'](_0x29c8ae(0x1da))}),_0x414ebe(_0x5d2b24,{'variant':_0x29c8ae(0x2c1),'disabled':_0x2c3c89[_0x29c8ae(0x151)]===0x0,'onClick':()=>_0x13479e[_0x29c8ae(0x22a)](_0x2c3c89,_0x1adb9c),'size':_0x29c8ae(0x45d),'children':_0xe5b94['t'](_0x29c8ae(0x236))})]})]})]});return _0x414ebe(_0x3da581,{'title':_0xe5b94['t'](_0x29c8ae(0x190)),'onClose':_0x13479e['onCancel'],'children':_0x586b9f});}function Ki(_0x27de02){const _0x97d67e=_0x290871;var _0x20f0c3,_0x294029,_0x54f3ee;let _0x3d2e5d=_0xe276a8(_0x4b0f72),[_0x28c8cb,_0x1928fe]=_0x3f626c(((_0x20f0c3=_0x27de02[_0x97d67e(0x2db)])==null?void 0x0:_0x20f0c3[_0x97d67e(0x230)])??''),[_0x53a9d2,_0xed9a80]=_0x3f626c(((_0x294029=_0x27de02[_0x97d67e(0x2db)])==null?void 0x0:_0x294029[_0x97d67e(0x299)])??_0x358af4[_0x97d67e(0x2d0)]),[_0x2f7962,_0x2d77c3]=_0x3f626c(((_0x54f3ee=_0x27de02['field'])==null?void 0x0:_0x54f3ee[_0x97d67e(0x30f)])??'');if(!_0x27de02[_0x97d67e(0x2db)])return null;let _0xffcc9f=_0x3c00a1(_0x97d67e(0x1ab),{'className':_0x2c3136(_0x97d67e(0x43a),_0x434c98),'children':[_0x414ebe('div',{'className':'univer-text-sm\x20univer-font-medium','children':_0x3d2e5d['t'](_0x97d67e(0x276))}),_0x3c00a1(_0x97d67e(0x1e5),{'className':_0x97d67e(0x3f6),'children':[_0x3d2e5d['t'](_0x97d67e(0x289)),_0x414ebe(_0x448a93,{'value':_0x28c8cb,'onChange':_0x1928fe,'size':'small'})]}),_0x3c00a1(_0x97d67e(0x1e5),{'className':_0x97d67e(0x3f6),'children':[_0x3d2e5d['t']('bases-dashboard-ui.pivot.summarizeBy'),_0x414ebe(Yr,{'value':String(_0x53a9d2),'options':zi[_0x97d67e(0x3a8)](_0x3e3d4e=>({'value':String(_0x3e3d4e[_0x97d67e(0x1c2)]),'label':_0x3d2e5d['t'](_0x3e3d4e[_0x97d67e(0x48b)])})),'onChange':_0x144130=>{const _0x284c0a=_0x97d67e;let _0x516b00=zi[_0x284c0a(0x47f)](_0x32a19c=>String(_0x32a19c['value'])===_0x144130);_0x516b00&&_0xed9a80(_0x516b00[_0x284c0a(0x1c2)]);}})]}),_0x3c00a1(_0x97d67e(0x1e5),{'className':_0x97d67e(0x3f6),'children':[_0x3d2e5d['t'](_0x97d67e(0x336)),_0x414ebe(_0x448a93,{'value':_0x2f7962,'onChange':_0x2d77c3,'size':'small'})]}),_0x3c00a1(_0x97d67e(0x384),{'className':_0x97d67e(0x391),'children':[_0x414ebe(_0x5d2b24,{'onClick':_0x27de02[_0x97d67e(0x252)],'size':_0x97d67e(0x45d),'children':_0x3d2e5d['t'](_0x97d67e(0x1da))}),_0x414ebe(_0x5d2b24,{'variant':_0x97d67e(0x2c1),'disabled':!_0x28c8cb[_0x97d67e(0x29a)](),'onClick':()=>_0x27de02[_0x97d67e(0x22a)](_0x28c8cb[_0x97d67e(0x29a)](),_0x53a9d2,_0x2f7962),'size':_0x97d67e(0x45d),'children':_0x3d2e5d['t'](_0x97d67e(0x236))})]})]});return _0x414ebe(_0x3da581,{'title':_0x3d2e5d['t'](_0x97d67e(0x276)),'onClose':_0x27de02[_0x97d67e(0x252)],'children':_0xffcc9f});}function qi(_0x37b0fd){const _0x39180a=_0x290871;let {config:_0x46d048,commit:_0x26e6dc}=_0x37b0fd,_0x459db8=_0xe276a8(_0x4b0f72),_0x57de59=_0x46d048['pivot'][_0x39180a(0x209)],_0x462e18=_0x1f68c7=>_0x26e6dc(_0x317149=>_0x317149[_0x39180a(0x3c5)]({..._0x317149['getOptions'](),..._0x1f68c7}));return _0x3c00a1(_0x39180a(0x384),{'className':_0x39180a(0x214),'children':[_0x3c00a1(_0x39180a(0x1e5),{'className':_0x39180a(0x463),'children':[_0x459db8['t'](_0x39180a(0x271)),_0x414ebe(Yr,{'className':_0x39180a(0x217),'value':String(_0x46d048[_0x39180a(0x145)][_0x39180a(0x2c7)]),'options':[{'value':String(_0x5c7745[_0x39180a(0x2e9)]),'label':_0x459db8['t'](_0x39180a(0x3f4))},{'value':String(_0x5c7745[_0x39180a(0x177)]),'label':_0x459db8['t'](_0x39180a(0x428))},{'value':String(_0x5c7745[_0x39180a(0x1d5)]),'label':_0x459db8['t'](_0x39180a(0x1f0))}],'onChange':_0x38a083=>{const _0x1c451f=_0x39180a;let _0x2b70ba=[_0x5c7745['tabular'],_0x5c7745[_0x1c451f(0x177)],_0x5c7745[_0x1c451f(0x1d5)]][_0x1c451f(0x47f)](_0x44fad0=>String(_0x44fad0)===_0x38a083);_0x2b70ba!==void 0x0&&_0x26e6dc(_0x48108c=>_0x48108c[_0x1c451f(0x359)](_0x2b70ba));}})]}),[{'key':_0x39180a(0x13b),'label':_0x39180a(0x3f1),'defaultValue':!0x1},{'key':'repeatColLabels','label':_0x39180a(0x48d),'defaultValue':!0x1},{'key':_0x39180a(0x2ad),'label':_0x39180a(0x2d3),'defaultValue':!0x0},{'key':_0x39180a(0x2bf),'label':'bases-dashboard-ui.pivot.showRowGrandTotal','defaultValue':!0x0},{'key':_0x39180a(0x448),'label':'bases-dashboard-ui.pivot.showColumnSubtotal','defaultValue':!0x0},{'key':_0x39180a(0x2bc),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}]['map'](_0x4c246f=>_0x3c00a1(_0x39180a(0x1e5),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x414ebe(_0x283511,{'checked':!!(_0x57de59[_0x4c246f[_0x39180a(0x29d)]]??_0x4c246f[_0x39180a(0x457)]),'disabled':_0x4c246f[_0x39180a(0x29d)]==='repeatRowLabels'&&_0x46d048[_0x39180a(0x145)][_0x39180a(0x2c7)]===_0x5c7745[_0x39180a(0x177)],'onChange':_0x2a82cf=>_0x462e18({[_0x4c246f[_0x39180a(0x29d)]]:!!_0x2a82cf})}),_0x459db8['t'](_0x4c246f[_0x39180a(0x1e5)])]},_0x4c246f[_0x39180a(0x29d)])),_0x46d048[_0x39180a(0x145)][_0x39180a(0x2c7)]===_0x5c7745[_0x39180a(0x1d5)]&&_0x3c00a1(_0x39180a(0x1e5),{'className':_0x39180a(0x463),'children':[_0x459db8['t'](_0x39180a(0x2f0)),_0x414ebe(Yr,{'className':'univer-w-36','value':String(_0x57de59['rowSubtotalPosition']??_0x1c5136[_0x39180a(0x392)]),'options':[{'value':String(_0x1c5136[_0x39180a(0x392)]),'label':_0x459db8['t'](_0x39180a(0x2c8))},{'value':String(_0x1c5136[_0x39180a(0x314)]),'label':_0x459db8['t'](_0x39180a(0x3e6))}],'onChange':_0x5ddb7a=>{const _0x32060c=_0x39180a;let _0x52d2e8=[_0x1c5136[_0x32060c(0x392)],_0x1c5136['bottom']][_0x32060c(0x47f)](_0x219d1f=>String(_0x219d1f)===_0x5ddb7a);_0x52d2e8!==void 0x0&&_0x462e18({'rowSubtotalPosition':_0x52d2e8});}})]}),_0x3c00a1(_0x39180a(0x1e5),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x459db8['t']('bases-dashboard-ui.pivot.valuePosition'),_0x414ebe(Yr,{'className':_0x39180a(0x217),'value':String(_0x46d048[_0x39180a(0x145)][_0x39180a(0x3ed)]===_0x3d12ff[_0x39180a(0x2d7)]?_0x3d12ff[_0x39180a(0x356)]:_0x46d048['pivot'][_0x39180a(0x3ed)]),'options':[{'value':String(_0x3d12ff[_0x39180a(0x356)]),'label':_0x459db8['t'](_0x39180a(0x204))},{'value':String(_0x3d12ff['Row']),'label':_0x459db8['t'](_0x39180a(0x41f))}],'onChange':_0x1f756d=>{const _0x523b62=_0x39180a;let _0x583cc2=[_0x3d12ff[_0x523b62(0x356)],_0x3d12ff[_0x523b62(0x1c8)]][_0x523b62(0x47f)](_0x5f30ba=>String(_0x5f30ba)===_0x1f756d);_0x583cc2!==void 0x0&&_0x26e6dc(_0x2aaaad=>_0x2aaaad[_0x523b62(0x2de)](_0x583cc2,_0x2aaaad[_0x523b62(0x194)]()<0x0?0x0:_0x2aaaad[_0x523b62(0x194)]()));}})]}),_0x3c00a1(_0x39180a(0x1e5),{'className':_0x39180a(0x463),'children':[_0x459db8['t']('bases-dashboard-ui.pivot.pageWrap'),_0x414ebe(_0x2963f5,{'className':_0x39180a(0x1d0),'min':0x1,'max':0x14,'value':_0x57de59[_0x39180a(0x401)]??0x1,'onChange':_0x38d655=>{let _0x4a3dd5=Number(_0x38d655);Number['isFinite'](_0x4a3dd5)&&_0x4a3dd5>=0x1&&_0x462e18({'pageWrap':_0x4a3dd5});},'size':_0x39180a(0x231),'controls':!0x1})]}),_0x3c00a1(_0x39180a(0x1e5),{'className':_0x39180a(0x463),'children':[_0x459db8['t'](_0x39180a(0x347)),_0x414ebe(Yr,{'className':_0x39180a(0x217),'value':String(_0x57de59['pageOverThenDown']??!0x1),'options':[{'value':'false','label':_0x459db8['t'](_0x39180a(0x3d9))},{'value':_0x39180a(0x2b6),'label':_0x459db8['t'](_0x39180a(0x3b8))}],'onChange':_0x2bcc27=>_0x462e18({'pageOverThenDown':_0x2bcc27===_0x39180a(0x2b6)})})]})]});}function Ji(_0x3a9725,_0x1336d7,_0x49d698,_0x133431){const _0x379bd3=_0x290871;let _0x3b822e=_0x3a9725[_0x379bd3(0x2c0)](_0x1336d7)[_0x379bd3(0x47f)](_0x1ca87a=>_0x3a9725[_0x379bd3(0x325)](_0x1ca87a[_0x379bd3(0x378)]())[_0x379bd3(0x225)]!==_0x1b52e3[_0x379bd3(0x19f)]);_0x49d698!==_0x1b52e3[_0x379bd3(0x19f)]&&_0x3b822e?_0x3a9725[_0x379bd3(0x46b)](_0x3b822e[_0x379bd3(0x378)](),_0x49d698,_0x133431):_0x3a9725[_0x379bd3(0x229)](_0x1336d7,_0x49d698,_0x133431);}function Yi(_0x37586a,_0x26da44,_0x56cefa,_0x2e9547){const _0x11ceaa=_0x290871;return _0x26da44===_0x3a56c2[_0x11ceaa(0x341)]?_0x2e9547:_0x26da44===_0x3a56c2[_0x11ceaa(0x1e6)]&&_0x56cefa?_0x488061['format'](_0x56cefa,Number(_0x37586a)):_0x37586a;}function Xi(_0x2667bc){const _0x561223=_0x290871;return _0x2667bc[_0x561223(0x183)]===_0x5e006f[_0x561223(0x196)]||_0x2667bc[_0x561223(0x183)]===_0x5e006f[_0x561223(0x3b6)]||_0x2667bc['type']===_0x5e006f['Progress']||_0x2667bc[_0x561223(0x183)]===_0x5e006f[_0x561223(0x39f)];}function Zi(_0x106e34){const _0x589b67=_0x290871;switch(_0x106e34){case _0x1b52e3[_0x589b67(0x1c8)]:return _0x589b67(0x2c5);case _0x1b52e3[_0x589b67(0x356)]:return'bases-dashboard-ui.pivot.addToColumn';case _0x1b52e3['Value']:return _0x589b67(0x1b0);default:return _0x589b67(0x308);}}function Qi({config:_0x5f4ab2,onChange:_0x1dfef2,runtime:_0x1493f6,table:_0x14f3b0}){const _0x402663=_0x290871;let _0x36c4da=_0xe276a8(_0x4b0f72),[_0xb3163,_0x3f50ce]=_0x3f626c(_0x402663(0x3a5));return _0x3c00a1(_0x402663(0x3dc),{'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':[_0x414ebe(_0xbfe45a,{'ariaLabel':_0x36c4da['t'](_0x402663(0x34b)),'className':'univer-mx-4\x20univer-mt-4\x20univer-shrink-0','items':[{'label':_0x36c4da['t']('bases-dashboard-ui.pivot.chartConfiguration'),'panelId':'base-pivot-chart-configuration','value':_0x402663(0x3a5)},{'label':_0x36c4da['t'](_0x402663(0x165)),'panelId':_0x402663(0x25c),'value':_0x402663(0x145)}],'value':_0xb3163,'onChange':_0x3f50ce}),_0x414ebe(_0x402663(0x384),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','children':_0xb3163===_0x402663(0x3a5)?_0x1493f6&&_0x414ebe(ei,{'config':_0x5f4ab2,'runtime':_0x1493f6,'tableName':_0x14f3b0[_0x402663(0x2a3)],'onChange':_0x1dfef2}):_0x414ebe(Bi,{'config':_0x5f4ab2,'table':_0x14f3b0,'onChange':_0x1dfef2})})]});}function $i({tableId:_0x4f5062,unitId:_0x39ef06,viewId:_0x1e8eac}){const _0x25d94e=_0x290871;let [_0x1e768b,_0x4797e8]=_0x3f626c(!0x1),_0x3a5932=_0xe276a8(_0x299365),_0xa2a7f3=_0xe276a8(_0x5abbf9),_0x3fb617=_0xe276a8(_0x104d80),_0x4713eb=_0xe276a8(_0x4b0f72),_0x219ec7=_0xe276a8(_0xcfb712),[_0x19d3a1,_0x1711be]=_0x3f626c(null),[_0x4e0025,_0x200f5d]=_0x3f626c(null),_0x2b3c26=_0x3987b(_0x25d94e(0x26d)+_0x89ef13(0x8)),[_0x233c40,_0x202f56]=_0x3f626c(!0x1),_0x4660c9=_0xa2a7f3['getUnit'](_0x39ef06,_0x1516ee[_0x25d94e(0x3c2)]),_0x588f09=_0x4660c9==null?void 0x0:_0x4660c9['getSnapshot']()['tables'][_0x4f5062],_0x52406d=_0x588f09==null?void 0x0:_0x588f09[_0x25d94e(0x483)][_0x1e8eac],_0xa50aee=ea(_0x52406d),_0x159ecc=yr(_0x39ef06,_0x4f5062,_0x1e8eac);if(_0x330c05(()=>{const _0x3658c9=_0x25d94e;if(!_0xa50aee)return;let _0x2878f4=_0x2b3c26[_0x3658c9(0x2e7)];return _0x219ec7[_0x3658c9(0x1e8)](_0x2878f4,{'unitId':_0x39ef06,'tableId':_0x4f5062,'viewId':_0x1e8eac,'filters':[]}),()=>{const _0x1110c1=_0x3658c9;_0x219ec7[_0x1110c1(0x15c)](_0x39ef06,_0x2878f4);};},[_0xa50aee,_0x219ec7,_0x4f5062,_0x39ef06,_0x1e8eac]),_0x330c05(()=>{const _0x1c7b4b=_0x25d94e;if(!ea(_0x52406d))return;let _0x4c0d6c=!0x0,_0x1e32a2={'unitId':_0x39ef06,'tableId':_0x4f5062,'viewId':_0x1e8eac,'filters':[_0x52406d[_0x1c7b4b(0x42d)]??null]};return _0x219ec7[_0x1c7b4b(0x3d1)](_0x39ef06,_0x2b3c26[_0x1c7b4b(0x2e7)],_0x1e32a2)['then'](_0x4f0c84=>{const _0x295e07=_0x1c7b4b;_0x4c0d6c&&_0x4f0c84&&(_0x1711be(_0x4f0c84),_0x200f5d(_0x219ec7[_0x295e07(0x3fb)](_0x39ef06,_0x2b3c26[_0x295e07(0x2e7)])??null),_0x202f56(!0x1));})[_0x1c7b4b(0x147)](_0x232a00=>{const _0x366f14=_0x1c7b4b;_0x3fb617[_0x366f14(0x198)]('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x232a00),_0x4c0d6c&&(_0x1711be(null),_0x202f56(!0x0));}),()=>{_0x4c0d6c=!0x1;};},[_0x3fb617,_0x219ec7,_0x4f5062,_0x39ef06,_0x52406d,_0x1e8eac]),!_0x588f09||!ea(_0x52406d))return null;let _0xc1a8c5=_0x219ec7[_0x25d94e(0x3fb)](_0x39ef06,_0x2b3c26[_0x25d94e(0x2e7)])===_0x4e0025?_0x4e0025:null,_0x1296ff=_0x19d3a1?_0x3c00a1(_0x25d94e(0x384),{'className':_0x25d94e(0x2cc),'style':{'gridTemplateRows':_0x52406d[_0x25d94e(0x193)][_0x25d94e(0x3f8)]===_0x25d94e(0x438)?'minmax(0,\x203fr)\x20minmax(0,\x202fr)':_0x25d94e(0x3e9)},'children':[_0x52406d['config'][_0x25d94e(0x3f8)]!==_0x25d94e(0x363)&&_0xc1a8c5&&_0x414ebe(_0x25d94e(0x384),{'className':_0x25d94e(0x14f),'children':_0x414ebe(Rr,{'isRowDirection':_0x52d288(_0x52406d[_0x25d94e(0x193)][_0x25d94e(0x3a5)][_0x25d94e(0x3b2)]),'runtime':_0xc1a8c5})}),_0x52406d['config'][_0x25d94e(0x3f8)]!=='chart'&&_0x414ebe(_0x25d94e(0x384),{'className':'univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':_0x414ebe(ji,{'pivot':_0x52406d[_0x25d94e(0x193)][_0x25d94e(0x145)],'view':_0x19d3a1[_0x25d94e(0x141)]})})]}):_0x414ebe(_0x25d94e(0x384),{'className':_0x25d94e(0x2b5),'children':_0x233c40?_0x4713eb['t'](_0x25d94e(0x32f)):_0x4713eb['t'](_0x25d94e(0x275))}),_0x5a464c=_0x414ebe(Qi,{'config':_0x52406d['config'],'runtime':_0xc1a8c5,'table':_0x588f09,'onChange':_0x3f6d39=>{const _0x3a7984=_0x25d94e;_0xa2a7f3['setCurrentUnitForType'](_0x39ef06),_0xa2a7f3[_0x3a7984(0x3bb)](_0x39ef06),_0x3a5932[_0x3a7984(0x25b)](_0x423077['id'],{'unitId':_0x39ef06,'tableId':_0x4f5062,'viewId':_0x1e8eac,'patch':_0x3f6d39})[_0x3a7984(0x147)](_0x1ce520=>_0x3fb617[_0x3a7984(0x198)](_0x3a7984(0x210),_0x1ce520));}});return _0x414ebe(Jr,{'children':_0x3c00a1(_0x25d94e(0x384),{'className':_0x25d94e(0x18f),'children':[_0x159ecc&&_0x414ebe(_0x5d2b24,{'onClick':()=>_0x4797e8(!0x0),'size':'middle','children':_0x4713eb['t'](_0x25d94e(0x3fa))}),_0x414ebe(_0x25d94e(0x384),{'className':'univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','children':_0x1296ff}),_0x159ecc&&_0x1e768b&&_0x414ebe(_0x3da581,{'title':_0x4713eb['t'](_0x25d94e(0x34b)),'onClose':()=>_0x4797e8(!0x1),'children':_0x5a464c})]})});}function ea(_0x2431e8){const _0x50a723=_0x290871;return(_0x2431e8==null?void 0x0:_0x2431e8[_0x50a723(0x183)])===_0x3744eb['Pivot']&&typeof _0x2431e8[_0x50a723(0x193)]==_0x50a723(0x30e)&&_0x2431e8[_0x50a723(0x193)]!==null&&_0x50a723(0x145)in _0x2431e8[_0x50a723(0x193)]&&_0x50a723(0x3a5)in _0x2431e8[_0x50a723(0x193)]&&_0x50a723(0x3f8)in _0x2431e8[_0x50a723(0x193)];}let ta=class extends _0x92f3c1{constructor(_0x365166,_0xbab4ea,_0x385ed5,_0x3a4184,_0x2426e4,_0x502b8e){const _0x43dae0=_0x290871;super(),this[_0x43dae0(0x444)](_0xbab4ea[_0x43dae0(0x13c)]({'type':_0x3744eb[_0x43dae0(0x250)],'renderMode':_0x43dae0(0x342),'icon':_0x3abb8f,'component':$i,'menu':{get 'label'(){return _0x502b8e['t']('bases-dashboard-ui.pivot.name');},get 'description'(){return _0x502b8e['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){const _0x29ac00=_0x43dae0;return _0x502b8e['t'](_0x29ac00(0x333));}}})),this['disposeWithMe'](_0x365166[_0x43dae0(0x13c)](na(_0x385ed5,_0x3a4184,_0x2426e4,_0x502b8e)));}};ta=Ar([Y(0x0,_0x73fa49),Y(0x1,_0x33fef6),Y(0x2,_0x106e69(_0x1aeb78)),Y(0x3,_0x299365),Y(0x4,_0x3813b4),Y(0x5,_0x106e69(_0x4b0f72))],ta);function na(_0x4d943b,_0x3a2476,_0x47c54d,_0x18341a){const _0x558cc9=_0x290871;return{'change$':_0x5d4904(_0x4d943b[_0x558cc9(0x3f9)],_0x47c54d[_0x558cc9(0x2ef)]),'component':Si,get 'labels'(){const _0x36579a=_0x558cc9;return{'add':_0x18341a['t'](_0x36579a(0x3ba)),'configure':_0x4b1bac=>_0x18341a['t'](_0x36579a(0x2da),_0x4b1bac),'delete':_0x18341a['t']('bases-dashboard-ui.dashboard.delete'),'new':_0x18341a['t'](_0x36579a(0x477)),'rename':_0x18341a['t']('bases-dashboard-ui.dashboard.rename'),'search':_0x18341a['t']('bases-dashboard-ui.dashboard.search'),'section':_0x18341a['t'](_0x36579a(0x48e))};},'getItems':_0x4962f4=>{const _0xadb1b5=_0x558cc9;let _0x3642b1=_0x4d943b['getResource'](_0x4962f4);return _0x3642b1[_0xadb1b5(0x35e)][_0xadb1b5(0x2af)](_0x16b4d2=>{const _0x26ed95=_0xadb1b5;let _0x4180a4=_0x3642b1[_0x26ed95(0x15a)][_0x16b4d2];return _0x4180a4?[{'id':_0x4180a4['id'],'name':_0x4180a4['name'],'readonly':!_0x353928(_0x47c54d,_0x4962f4,_0x4180a4['id'])}]:[];});},'create':async _0x3ab2f2=>{const _0x1b1fb4=_0x558cc9;let _0x3b20dd=_0x4d943b[_0x1b1fb4(0x3fc)](_0x3ab2f2),_0xf9325a='dashboard-'+_0x89ef13(0x8),_0x36a6f2=ra(_0x3b20dd[_0x1b1fb4(0x35e)]['flatMap'](_0x3a7d88=>{const _0x39d109=_0x1b1fb4;let _0xab302c=_0x3b20dd['dashboards'][_0x3a7d88];return _0xab302c?[_0xab302c[_0x39d109(0x2a3)]]:[];}),_0x25fba5=>_0x18341a['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x25fba5)));return await _0x3a2476[_0x1b1fb4(0x25b)](_0x28dee1['id'],{'unitId':_0x3ab2f2,'dashboard':{'id':_0xf9325a,'name':_0x36a6f2,'widgetOrder':[],'widgets':{}}})?_0xf9325a:null;},'rename':async(_0x207ba9,_0x469fcf,_0xeffa5d)=>{const _0x368b8b=_0x558cc9;let _0x26be4c=_0x4d943b[_0x368b8b(0x40d)](_0x207ba9,_0x469fcf);return!!(_0x26be4c&&await _0x3a2476['executeCommand'](_0xe5ba16['id'],{'unitId':_0x207ba9,'dashboard':{..._0x26be4c,'name':_0xeffa5d}}));},'remove':(_0x25054d,_0x290c44)=>_0x3a2476[_0x558cc9(0x25b)](_0x1d2c48['id'],{'unitId':_0x25054d,'dashboardId':_0x290c44})};}function ra(_0x14ccd9,_0x38b733){const _0x570acf=_0x290871;let _0x52f2ff=new Set(_0x14ccd9),_0x337b0b=_0x52f2ff[_0x570acf(0x25a)]+0x1,_0x60f5f2=_0x38b733(_0x337b0b);for(;_0x52f2ff['has'](_0x60f5f2);)_0x337b0b+=0x1,_0x60f5f2=_0x38b733(_0x337b0b);return _0x60f5f2;}let ia=class extends _0x447642{constructor(_0x3fe5ef=_r,_0x3d7fa7,_0x49138d){const _0x4ea8bc=_0x290871;super(),this['_config']=_0x3fe5ef,this[_0x4ea8bc(0x405)]=_0x3d7fa7,this[_0x4ea8bc(0x23b)]=_0x49138d;let {..._0x3b1b16}=_0x4fa520({},_r,this['_config']);this[_0x4ea8bc(0x23b)][_0x4ea8bc(0x38f)](gr,_0x3b1b16);}[_0x290871(0x2ec)](){const _0x185195=_0x290871;this[_0x185195(0x405)][_0x185195(0x2e6)]([jr]),this[_0x185195(0x405)][_0x185195(0x2e6)]([qr]),this[_0x185195(0x405)][_0x185195(0x2e6)]([ta]);}[_0x290871(0x2a5)](){_0x49d35e(this['_injector'],[[jr],[qr],[ta]]);}};Ir(ia,_0x290871(0x183),_0x1516ee[_0x290871(0x3c2)]),Ir(ia,'pluginName',_0x290871(0x2b7)),Ir(ia,_0x290871(0x304),mr),Ir(ia,_0x290871(0x14b),hr),ia=Ar([_0x3bb5e2(_0x47a995,_0x528fcf,_0x221667,_0x500bc9,_0x48b358,_0x542cb3),Y(0x1,_0x106e69(_0x117569)),Y(0x2,_0x32ba7f)],ia);function aa(_0x46ed36,_0x5ee75f,_0x32260f,_0x583d56){const _0x31bbcd=_0x290871;let _0x15ec92={..._0x46ed36};if(_0x5ee75f[_0x31bbcd(0x424)]('w')){let _0x2ec364=_0x46ed36['column']+_0x46ed36[_0x31bbcd(0x29f)];_0x15ec92[_0x31bbcd(0x23f)]=Math['max'](0x0,Math['min'](_0x2ec364-0x1,_0x46ed36[_0x31bbcd(0x23f)]+_0x32260f)),_0x15ec92[_0x31bbcd(0x29f)]=_0x2ec364-_0x15ec92[_0x31bbcd(0x23f)];}else _0x5ee75f[_0x31bbcd(0x424)]('e')&&(_0x15ec92[_0x31bbcd(0x29f)]=Math[_0x31bbcd(0x399)](0x1,Math[_0x31bbcd(0x459)](_0x2fad3b-_0x46ed36[_0x31bbcd(0x23f)],_0x46ed36[_0x31bbcd(0x29f)]+_0x32260f)));if(_0x5ee75f[_0x31bbcd(0x424)]('n')){let _0xd5cc2=_0x46ed36[_0x31bbcd(0x3a9)]+_0x46ed36[_0x31bbcd(0x220)];_0x15ec92[_0x31bbcd(0x3a9)]=Math['max'](0x0,Math['min'](_0xd5cc2-0x1,_0x46ed36[_0x31bbcd(0x3a9)]+_0x583d56)),_0x15ec92['rowSpan']=_0xd5cc2-_0x15ec92[_0x31bbcd(0x3a9)];}else _0x5ee75f['includes']('s')&&(_0x15ec92[_0x31bbcd(0x220)]=Math['max'](0x1,_0x46ed36[_0x31bbcd(0x220)]+_0x583d56));return _0x15ec92;}function oa(_0xe44df7){const _0x22c933=_0x290871;let _0x3b2dbc=Math[_0x22c933(0x399)](0x1,Math[_0x22c933(0x459)](_0x2fad3b,Math[_0x22c933(0x388)](_0xe44df7[_0x22c933(0x29f)])));return{'column':Math[_0x22c933(0x399)](0x0,Math[_0x22c933(0x459)](_0x2fad3b-_0x3b2dbc,Math['round'](_0xe44df7[_0x22c933(0x23f)]))),'row':Math[_0x22c933(0x399)](0x0,Math['round'](_0xe44df7[_0x22c933(0x3a9)])),'columnSpan':_0x3b2dbc,'rowSpan':Math['max'](0x1,Math[_0x22c933(0x388)](_0xe44df7[_0x22c933(0x220)]))};}function sa(_0x25f4b4,_0x156727,_0x409c5e){const _0x9811d5=_0x290871;let _0xffba29=new Map(_0x25f4b4),_0x2f97cb=oa(_0x409c5e);_0xffba29[_0x9811d5(0x32b)](_0x156727,_0x2f97cb);let _0x57b800=[[_0x156727,_0x2f97cb]];for(let [_0x15cc6d,_0x488683]of _0xffba29){if(_0x15cc6d===_0x156727)continue;let _0x1a601c=oa(_0x488683);for(;_0x57b800[_0x9811d5(0x331)](([,_0x3ade4a])=>la(_0x1a601c,_0x3ade4a));)_0x1a601c={..._0x1a601c,'row':_0x1a601c[_0x9811d5(0x3a9)]+0x1};for(;_0x1a601c['row']>0x0;){let _0x28a43c={..._0x1a601c,'row':_0x1a601c[_0x9811d5(0x3a9)]-0x1};if(_0x57b800[_0x9811d5(0x331)](([,_0x55f5c7])=>la(_0x28a43c,_0x55f5c7)))break;_0x1a601c=_0x28a43c;}_0x57b800[_0x9811d5(0x435)]([_0x15cc6d,_0x1a601c]),_0xffba29[_0x9811d5(0x32b)](_0x15cc6d,_0x1a601c);}return _0xffba29;}function ca(_0x52633f,_0x5f28b5,_0x3bf010,_0x5a94fb=0x38,_0x1faf8a=0x16){const _0x76b6c6=_0x290871;return _0x52633f<_0x5f28b5+_0x5a94fb?-Math['ceil'](_0x1faf8a*(0x1-Math[_0x76b6c6(0x399)](0x0,_0x52633f-_0x5f28b5)/_0x5a94fb)):_0x52633f>_0x3bf010-_0x5a94fb?Math['ceil'](_0x1faf8a*(0x1-Math['max'](0x0,_0x3bf010-_0x52633f)/_0x5a94fb)):0x0;}function la(_0x314aee,_0x37eb6d){const _0x2330c7=_0x290871;return _0x314aee[_0x2330c7(0x23f)]<_0x37eb6d['column']+_0x37eb6d[_0x2330c7(0x29f)]&&_0x314aee[_0x2330c7(0x23f)]+_0x314aee[_0x2330c7(0x29f)]>_0x37eb6d[_0x2330c7(0x23f)]&&_0x314aee[_0x2330c7(0x3a9)]<_0x37eb6d[_0x2330c7(0x3a9)]+_0x37eb6d[_0x2330c7(0x220)]&&_0x314aee[_0x2330c7(0x3a9)]+_0x314aee[_0x2330c7(0x220)]>_0x37eb6d[_0x2330c7(0x3a9)];}const ua=[{'direction':'nw','className':_0x290871(0x484)},{'direction':'n','className':_0x290871(0x1ca)},{'direction':'ne','className':_0x290871(0x1fa)},{'direction':'e','className':_0x290871(0x315)},{'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':_0x290871(0x239)},{'direction':'sw','className':_0x290871(0x3bd)},{'direction':'w','className':_0x290871(0x394)}];function da({dashboard:_0x326fe3,dragLabel:_0x1d824d,editable:_0x559029=!0x0,onLayoutsCommit:_0x545d7a,onSelectWidget:_0x2694e4,renderWidget:_0x7bc4a,renderWidgetActions:_0x1064c1,resizeLabel:_0x40c00f,selectedWidgetId:_0x35970c,widgetLabel:_0xefa889}){const _0x32e189=_0x290871;let _0x31c85e=_0x3987b(null),_0x5cf6bd=_0x3987b(null),[_0x197b59,_0x2f858f]=_0x3f626c(!0x1),_0x1aca07=_0x50478e(()=>new Map(_0x326fe3[_0x32e189(0x47d)][_0x32e189(0x2af)](_0x3e4955=>{const _0x2a3605=_0x32e189;let _0x5a1ec7=_0x326fe3[_0x2a3605(0x33d)][_0x3e4955];return _0x5a1ec7?[[_0x3e4955,_0x5a1ec7['layout']]]:[];})),[_0x326fe3]),[_0x1c9c68,_0x4818fc]=_0x3f626c(_0x1aca07);_0x330c05(()=>{const _0x2cc923=_0x32e189;_0x5cf6bd[_0x2cc923(0x2e7)]||_0x4818fc(_0x1aca07);},[_0x1aca07]),_0x330c05(()=>{const _0x58758d=_0x32e189;if(!_0x197b59)return;let _0x1a09a3=_0x337e85=>{const _0x160b38=_0x29b7;let _0x283331=_0x31c85e[_0x160b38(0x2e7)];if(!_0x283331)return null;let _0x6a742b=_0x283331[_0x160b38(0x439)](),_0x5a196d=Math[_0x160b38(0x399)](0x1,(_0x6a742b[_0x160b38(0x361)]-0x8*(_0x2fad3b-0x1))/_0x2fad3b),_0x4cca90=Math['round']((_0x283331[_0x160b38(0x17d)]-_0x337e85[_0x160b38(0x3ac)])/(_0x37eeaf+0x8)),_0x3d1ae9=Math[_0x160b38(0x388)]((_0x337e85[_0x160b38(0x264)]-_0x337e85[_0x160b38(0x218)])/(_0x5a196d+0x8)),_0x4ac534=Math[_0x160b38(0x388)]((_0x337e85[_0x160b38(0x3b5)]-_0x337e85[_0x160b38(0x2ee)])/(_0x37eeaf+0x8))+_0x4cca90,_0x30a10c=_0x337e85[_0x160b38(0x38e)]===_0x160b38(0x1ee)?{..._0x337e85['initial'],'column':_0x337e85[_0x160b38(0x23a)][_0x160b38(0x23f)]+_0x3d1ae9,'row':_0x337e85['initial'][_0x160b38(0x3a9)]+_0x4ac534}:aa(_0x337e85[_0x160b38(0x23a)],_0x337e85[_0x160b38(0x169)]??'se',_0x3d1ae9,_0x4ac534),_0x4ae252=sa(_0x337e85['initialLayouts'],_0x337e85['id'],_0x30a10c);return _0x4818fc(_0x4ae252),_0x4ae252;},_0x192064=_0x4e2588=>{const _0x4037ed=_0x29b7;let _0x6cc26f=_0x5cf6bd['current'];if(!_0x6cc26f)return;let _0x40f05a={..._0x6cc26f,'pointerX':_0x4e2588['clientX'],'pointerY':_0x4e2588['clientY']};_0x5cf6bd[_0x4037ed(0x2e7)]=_0x40f05a;},_0x46dab9=()=>{const _0x377977=_0x29b7;let _0x126e45=_0x5cf6bd[_0x377977(0x2e7)],_0x302847=_0x126e45?_0x1a09a3(_0x126e45):null;_0x5cf6bd[_0x377977(0x2e7)]=null,_0x2f858f(!0x1),_0x302847&&_0x545d7a(_0x302847);},_0x4b42b1=0x0,_0x9c20c2=()=>{const _0x3489ba=_0x29b7;let _0x4d6ca8=_0x31c85e['current'],_0xfa10a1=_0x5cf6bd['current'];if(_0x4d6ca8&&_0xfa10a1){let _0x1b0d97=_0x4d6ca8[_0x3489ba(0x439)](),_0x551f14=ca(_0xfa10a1[_0x3489ba(0x3b5)],_0x1b0d97[_0x3489ba(0x392)],_0x1b0d97['bottom']);_0x551f14!==0x0&&(_0x4d6ca8[_0x3489ba(0x17d)]+=_0x551f14),_0x1a09a3(_0xfa10a1),_0x4b42b1=requestAnimationFrame(_0x9c20c2);}};return _0x4b42b1=requestAnimationFrame(_0x9c20c2),window[_0x58758d(0x232)](_0x58758d(0x370),_0x192064),window[_0x58758d(0x232)](_0x58758d(0x240),_0x46dab9),()=>{const _0x3e13f4=_0x58758d;cancelAnimationFrame(_0x4b42b1),window[_0x3e13f4(0x309)](_0x3e13f4(0x370),_0x192064),window['removeEventListener'](_0x3e13f4(0x240),_0x46dab9);};},[_0x197b59,_0x545d7a]);let _0x5d1a65=Math[_0x32e189(0x399)](0x8,...Array['from'](_0x1c9c68[_0x32e189(0x1ef)]())[_0x32e189(0x3a8)](_0x46b649=>_0x46b649['row']+_0x46b649[_0x32e189(0x220)])),_0x5a20f6=(_0x3957c4,_0x438d6e,_0x173b09,_0x2b8a48)=>{const _0x5d224d=_0x32e189;_0x3957c4[_0x5d224d(0x32d)](),_0x3957c4['stopPropagation']();let _0x25c852=_0x31c85e[_0x5d224d(0x2e7)],_0x43e467={'id':_0x438d6e['id'],'mode':_0x173b09,'pointerX':_0x3957c4['clientX'],'pointerY':_0x3957c4[_0x5d224d(0x396)],'startX':_0x3957c4[_0x5d224d(0x1a4)],'startY':_0x3957c4[_0x5d224d(0x396)],'startScrollTop':(_0x25c852==null?void 0x0:_0x25c852[_0x5d224d(0x17d)])??0x0,'initial':_0x1c9c68[_0x5d224d(0x44b)](_0x438d6e['id'])??_0x438d6e[_0x5d224d(0x2c7)],'initialLayouts':new Map(_0x1c9c68),'resizeDirection':_0x2b8a48};_0x5cf6bd[_0x5d224d(0x2e7)]=_0x43e467,_0x2f858f(!0x0);};return _0x414ebe('div',{'ref':_0x31c85e,'data-dashboard-scroll-container':!0x0,'className':_0x2c3136(_0x32e189(0x207),_0x443bf8),'onClick':_0x559029?_0xa92afa=>{const _0x102482=_0x32e189;if(!(_0xa92afa[_0x102482(0x1d8)]instanceof Node)||!_0xa92afa[_0x102482(0x36e)][_0x102482(0x351)](_0xa92afa['target']))return;let _0x8abb82=_0xa92afa[_0x102482(0x1d8)]instanceof Element?_0xa92afa['target']:_0xa92afa[_0x102482(0x1d8)][_0x102482(0x447)];_0x8abb82!=null&&_0x8abb82[_0x102482(0x443)](_0x102482(0x42c))||_0x2694e4==null||_0x2694e4();}:void 0x0,'children':_0x414ebe(_0x32e189(0x384),{'data-dashboard-grid':!0x0,'className':'univer-grid\x20univer-grid-cols-12\x20univer-pb-6','style':{'gap':0x8,'gridAutoRows':_0x37eeaf,'minHeight':_0x5d1a65*(_0x37eeaf+0x8)},'children':_0x326fe3[_0x32e189(0x47d)][_0x32e189(0x3a8)](_0xe8d9f5=>{const _0x3e8e43=_0x32e189;var _0xb8d1f;let _0xe20fa0=_0x326fe3[_0x3e8e43(0x33d)][_0xe8d9f5],_0x31c7e8=_0x1c9c68[_0x3e8e43(0x44b)](_0xe8d9f5);return!_0xe20fa0||!_0x31c7e8?null:_0x3c00a1('article',{'data-dashboard-widget':_0xe20fa0['id'],'aria-label':_0xe20fa0[_0x3e8e43(0x43d)]??_0xefa889(_0xe20fa0),'className':_0x2c3136(_0x3e8e43(0x268),_0xe20fa0[_0x3e8e43(0x183)]===_0x39775d['Image']||_0xe20fa0[_0x3e8e43(0x183)]===_0x39775d[_0x3e8e43(0x474)]?'univer-bg-transparent\x20dark:!univer-bg-transparent':_0x3e8e43(0x452),_0x559029&&_0x35970c===_0xe20fa0['id']?_0x3e8e43(0x1a5):_0x3e8e43(0x3cb)),'style':{'gridColumn':_0x31c7e8[_0x3e8e43(0x23f)]+0x1+_0x3e8e43(0x2c3)+_0x31c7e8[_0x3e8e43(0x29f)],'gridRow':_0x31c7e8[_0x3e8e43(0x3a9)]+0x1+'\x20/\x20span\x20'+_0x31c7e8[_0x3e8e43(0x220)]},'tabIndex':_0x559029?0x0:void 0x0,'onClick':_0x559029?()=>_0x2694e4==null?void 0x0:_0x2694e4(_0xe20fa0['id']):void 0x0,'onFocus':_0x559029?()=>_0x2694e4==null?void 0x0:_0x2694e4(_0xe20fa0['id']):void 0x0,'children':[_0x559029&&_0x414ebe(_0x3e8e43(0x30b),{'type':'button','aria-label':_0x1d824d,'data-dashboard-drag-handle':_0xe20fa0['id'],'className':_0x2c3136(_0x3e8e43(0x2e3),_0x197b59&&((_0xb8d1f=_0x5cf6bd['current'])==null?void 0x0:_0xb8d1f['id'])===_0xe20fa0['id']&&_0x5cf6bd[_0x3e8e43(0x2e7)][_0x3e8e43(0x38e)]==='move'?_0x3e8e43(0x383):_0x3e8e43(0x34c)),'onPointerDown':_0x4d71ca=>_0x5a20f6(_0x4d71ca,_0xe20fa0,_0x3e8e43(0x1ee)),'children':_0x414ebe(_0x4cfa50,{'className':'univer-size-5\x20univer-rotate-90','aria-hidden':_0x3e8e43(0x2b6)})}),_0x559029&&_0x414ebe(_0x3e8e43(0x384),{'className':_0x3e8e43(0x423),'children':_0x1064c1==null?void 0x0:_0x1064c1(_0xe20fa0)}),_0x414ebe(_0x3e8e43(0x384),{'className':_0x3e8e43(0x1a2),'children':_0x7bc4a(_0xe20fa0)}),_0x559029&&ua[_0x3e8e43(0x3a8)](({className:_0xcf7542,direction:_0x6b50fa})=>{const _0x428613=_0x3e8e43;let _0x1be000=_0x6b50fa[_0x428613(0x151)]===0x2;return _0x414ebe(_0x428613(0x30b),{'type':_0x428613(0x30b),'aria-label':_0x40c00f,'data-dashboard-resize-handle':_0x6b50fa,'data-dashboard-resize-control':_0x1be000?_0x6b50fa:void 0x0,'data-dashboard-resize-edge':_0x1be000?void 0x0:_0x6b50fa,'className':_0x2c3136(_0x428613(0x26f),_0x1be000?_0x428613(0x3bf):'univer-border-0\x20univer-bg-transparent',_0xcf7542,_0x35970c===_0xe20fa0['id']&&_0x428613(0x369)),'onPointerDown':_0xe21fcf=>_0x5a20f6(_0xe21fcf,_0xe20fa0,'resize',_0x6b50fa)},_0x6b50fa);})]},_0xe20fa0['id']);})})});}var fa;const Q={'axis':{..._0x2dd039,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x5cde1d,'heatmap':_0x380efc,'indicatorLine':_0x204acd,'legend':_0x492f3b,'lineAndArea':_0x2c3d74,'pareto':_0x2602cf,'pie':_0x51c1c6,'radar':_0x2f51cf,'relation':{..._0x20d453,'useValueAsSymbolSize':!0x0},'series':{..._0x3f5b1f,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((fa=_0x38bf7d[_0x290871(0x355)])==null?void 0x0:fa[_0x290871(0x2e2)])??!0x1}},'style':_0x44b136,'titles':_0x53b57d,'trendline':_0x23fc75,'waterfall':{..._0x3cf6dc,'useSubtotal':!0x0},'waterfallStyle':_0x2841cd,'wordCloud':_0x4bd002},pa=[_0x376127[_0x290871(0x416)],_0x376127[_0x290871(0x2b9)],_0x376127['WordCloud'],_0x376127['Scatter'],_0x376127[_0x290871(0x20b)],_0x376127['Relation'],_0x376127[_0x290871(0x16b)],_0x376127['Heatmap'],_0x376127[_0x290871(0x259)],_0x376127['Candlestick'],_0x376127['Histogram'],_0x376127[_0x290871(0x21d)],_0x376127[_0x290871(0x3e1)],_0x376127[_0x290871(0x47b)],_0x376127[_0x290871(0x1a0)]];function ma(_0x1d4e01){const _0x564aaf=_0x290871;let {config:_0x334119,onChange:_0x3d2154,runtime:_0x593db4,tableName:_0x5c8e0e}=_0x1d4e01,_0x171b90=_0xe276a8(qr),_0x1af7e5=_0xe276a8(_0x4b0f72),[_0x224caa,_0x32a885]=_0x3f626c(_0x147b03['Data']),_0x3b77fc=_0x50478e(()=>new _0x1be047(_0x593db4['model'],{'commit':_0x1a6794=>{const _0x33fe14=_0x29b7;var _0x1c8611;let _0x11d36d=_0x593db4[_0x33fe14(0x1cd)],_0x3b48a0=_0x2d72ce(_0x1a6794,{'series':(_0x1c8611=_0x11d36d[_0x33fe14(0x193)])==null?void 0x0:_0x1c8611[_0x33fe14(0x414)],'currentChartType':_0x11d36d['chartType'],'currentStyle':_0x11d36d['style'],'currentContext':_0x11d36d['context'],'currentDataAggregation':_0x11d36d[_0x33fe14(0x171)]});_0x3d2154({'chart':ha(_0x334119[_0x33fe14(0x3a5)],_0x3b48a0)});}}),[_0x334119[_0x564aaf(0x3a5)],_0x3d2154,_0x593db4]),_0x187ef3=_0x50478e(()=>_0x2ed067(_0x1bd142[_0x564aaf(0x3a8)](_0x5bc5e9=>({..._0x5bc5e9,'label':_0x1af7e5['t'](ya(_0x5bc5e9[_0x564aaf(0x44f)]))}))),[_0x1af7e5]);return _0x414ebe(_0x32b767,{'chartUIService':_0x171b90,'hostAdapter':_0x3b77fc,'children':_0x3c00a1(_0x564aaf(0x384),{'className':_0x564aaf(0x298),'children':[_0x414ebe(_0xbfe45a,{'ariaLabel':_0x1af7e5['t'](_0x564aaf(0x2a4)),'className':'univer-shrink-0\x20univer-px-4','items':[{'label':_0x1af7e5['t'](_0x564aaf(0x224)),'panelId':_0x564aaf(0x1dd),'value':_0x147b03['Data']},{'label':_0x1af7e5['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x564aaf(0x163),'value':_0x147b03[_0x564aaf(0x332)]}],'value':_0x224caa,'onChange':_0x32a885}),_0x224caa===_0x147b03[_0x564aaf(0x227)]?_0x414ebe(_0x1199fe,{'id':_0x564aaf(0x1dd),'label':_0x1af7e5['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x3c00a1(_0x564aaf(0x384),{'className':_0x564aaf(0x3af),'children':[_0x414ebe(_0x3e755e,{'options':_0x187ef3}),_0x414ebe(_0x3c8f1a,{}),_0x414ebe(_0xdeb132,{}),_0x414ebe(ga,{}),_0x414ebe(_0x11955e,{}),_0x3c00a1(_0x564aaf(0x384),{'children':[_0x414ebe(_0xce0d39,{'title':_0x1af7e5['t'](_0x564aaf(0x446))}),_0x414ebe(_0x448a93,{'disabled':!0x0,'value':_0x5c8e0e})]}),_0x414ebe(_0x362f58,{'orientationControl':_0x414ebe(_0x5d2b24,{'size':_0x564aaf(0x231),'onClick':()=>_0x3d2154({'chart':{..._0x334119['chart'],'orient':_0x334119[_0x564aaf(0x3a5)]['orient']===_0x564aaf(0x3a9)?_0x564aaf(0x23f):_0x564aaf(0x3a9)}}),'children':_0x1af7e5['t']('bases-dashboard-ui.chart.common.switchRowColumn')})}),_0x414ebe(_0x311d22,{}),_0x414ebe(_0x41d408,{'defaultValues':Q[_0x564aaf(0x2c6)]}),_0x3c00a1('div',{'children':[_0x414ebe(_0xce0d39,{'title':_0x1af7e5['t']('bases-dashboard-ui.pivot.display')}),_0x414ebe(_0x296606,{'value':_0x334119[_0x564aaf(0x3f8)],'options':[{'value':_0x564aaf(0x438),'label':_0x1af7e5['t'](_0x564aaf(0x35d))},{'value':'chart','label':_0x1af7e5['t'](_0x564aaf(0x2a6))},{'value':_0x564aaf(0x363),'label':_0x1af7e5['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x41b298=>{const _0x1d2d4c=_0x564aaf;(_0x41b298===_0x1d2d4c(0x438)||_0x41b298===_0x1d2d4c(0x3a5)||_0x41b298==='table')&&_0x3d2154({'displayMode':_0x41b298});}})]})]})}):_0x414ebe(_0x1199fe,{'id':_0x564aaf(0x163),'label':_0x1af7e5['t'](_0x564aaf(0x3d7)),'children':_0x414ebe(_a,{})})]})});}function ha(_0x49ac69,_0x742f76){const _0x4f6be8=_0x290871;return{..._0x49ac69,'type':_0x742f76[_0x4f6be8(0x21c)]??_0x49ac69[_0x4f6be8(0x183)],'style':_0x742f76[_0x4f6be8(0x148)]??_0x49ac69[_0x4f6be8(0x148)],'context':_0x742f76[_0x4f6be8(0x254)]??_0x49ac69[_0x4f6be8(0x254)],'dataAggregation':_0x742f76[_0x4f6be8(0x171)]??_0x49ac69['dataAggregation']};}function ga(){const _0x3559ca=_0x290871;let _0x2d215b=_0x3b67f6();return _0x414ebe(_0x309fc7,{'visible':pa[_0x3559ca(0x24b)](_0x294c30=>!_0x4ec613['baseOn'](_0x2d215b,_0x294c30))});}function $(_0x4a19c7){const _0x3bef9c=_0x290871;return _0x3c00a1(_0x410c47,{'id':_0x4a19c7['id'],'children':[_0x414ebe(_0x4a23d8,{'children':_0x4a19c7[_0x3bef9c(0x1e5)]}),_0x414ebe(_0x50d9e3,{'children':_0x4a19c7[_0x3bef9c(0x1c0)]})]});}function _a(){const _0x10fe54=_0x290871;let _0x2b0170=_0xe276a8(_0x4b0f72),_0x545e7f=_0x3b67f6(),_0x4a3a9f=_0x1f9302(),[_0x52288b,_0x4e71bc]=_0x3f626c(null),_0x5101d9=_0x4ec613[_0x10fe54(0x273)](_0x545e7f,_0x376127[_0x10fe54(0x2b0)]),_0x5e62df=_0x545e7f===_0x376127[_0x10fe54(0x2b9)],_0x32f62e=_0x545e7f===_0x376127['WordCloud'],_0x363b90=_0x545e7f===_0x376127[_0x10fe54(0x20b)],_0xeba9a1=_0x4ec613[_0x10fe54(0x273)](_0x545e7f,_0x376127[_0x10fe54(0x13a)]),_0x3a0053=_0x545e7f===_0x376127[_0x10fe54(0x2a2)],_0x384026=_0x545e7f===_0x376127[_0x10fe54(0x460)],_0x438f5f=_0x545e7f===_0x376127[_0x10fe54(0x3f5)],_0x33a8de=_0x545e7f===_0x376127['Heatmap'],_0x2cc64c=_0x1d4e5d(_0x545e7f,_0x518183[_0x10fe54(0x39c)])&&!_0xeba9a1&&!_0x438f5f,_0x53ddb6=va(_0x545e7f,_0x2b0170);return _0x3c00a1(_0x1b215e,{'value':_0x52288b,'onChange':_0x4e71bc,'children':[_0x414ebe($,{'id':_0x111171[_0x10fe54(0x283)],'label':_0x2b0170['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0x414ebe(_0x3488e9,{'defaultValues':Q[_0x10fe54(0x148)]})}),_0x414ebe($,{'id':_0x111171['ChartAndAxisTitles'],'label':_0x2b0170['t'](_0x10fe54(0x3d5)),'children':_0x414ebe(_0x5bf2da,{'commitMode':_0x10fe54(0x211),'defaultValues':Q['titles']})}),_0x414ebe(_0x2dcd87,{'section':'view'}),_0x2cc64c&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x478)],'label':_0x2b0170['t'](_0x10fe54(0x455)),'children':_0x414ebe(_0x126708,{'defaultValues':Q[_0x10fe54(0x414)],'NumberFormatField':_0x3f6633})}),_0x384026&&_0x414ebe($,{'id':_0x111171['WaterfallSeries'],'label':_0x2b0170['t'](_0x10fe54(0x2b8)),'children':_0x414ebe(_0x271332,{'defaultValues':Q[_0x10fe54(0x1e9)],'getDefaultBucketName':({seriesName:_0xcaa67f,target:_0x1f8950})=>_0x1f8950===_0x34ed53[_0x10fe54(0x3d3)]?_0x2b0170['t'](_0x10fe54(0x191)):_0xcaa67f?_0xcaa67f+'-('+_0x2b0170['t'](_0x10fe54(0x20a)+(_0x1f8950===_0x34ed53[_0x10fe54(0x244)]?_0x10fe54(0x1bb):'waterfall.negative'))+')':'','NumberFormatField':_0x3f6633})}),_0x438f5f&&_0x3c00a1(_0x42483e,{'children':[_0x414ebe($,{'id':_0x111171[_0x10fe54(0x1ed)],'label':_0x2b0170['t'](_0x10fe54(0x180)),'children':_0x414ebe(_0x4ad9db,{'defaultValues':Q[_0x10fe54(0x2ff)],'NumberFormatField':_0x3f6633,'showDataPointEditor':!0x0,'target':_0x10fe54(0x1d3)})}),_0x414ebe($,{'id':_0x111171[_0x10fe54(0x161)],'label':_0x2b0170['t'](_0x10fe54(0x412)),'children':_0x414ebe(_0x4ad9db,{'defaultValues':Q[_0x10fe54(0x2ff)],'NumberFormatField':_0x3f6633,'showDataPointEditor':!0x1,'target':_0x10fe54(0x2d9)})})]}),_0x5101d9&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x441)],'label':_0x2b0170['t'](_0x10fe54(0x2ac)),'children':_0x414ebe(_0x36413b,{'defaultValues':Q['pie'],'NumberFormatField':_0x3f6633})}),_0x32f62e&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x1f5)],'label':_0x2b0170['t'](_0x10fe54(0x387)),'children':_0x414ebe(_0x3b9d11,{'defaultValues':Q[_0x10fe54(0x185)]})}),_0x5e62df&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x2b9)],'label':_0x2b0170['t'](_0x10fe54(0x479)),'children':_0x414ebe(_0x1ef123,{'defaultValues':Q[_0x10fe54(0x1c5)]})}),_0x363b90&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x20b)],'label':_0x2b0170['t']('bases-dashboard-ui.chart.section.funnel'),'children':_0x414ebe(_0x5e8635,{'defaultValues':Q[_0x10fe54(0x38d)],'gapControl':_0x10fe54(0x42e)})}),_0x33a8de&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x1eb)],'label':_0x2b0170['t']('bases-dashboard-ui.chart.common.heatmap'),'children':_0x414ebe(_0x48cea1,{'defaultValues':Q['heatmap']})}),_0x3a0053&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x2a2)],'label':_0x2b0170['t'](_0x10fe54(0x38c)),'children':_0x414ebe(_0x1271d5,{'defaultValues':Q['relation']})}),_0x422d44(_0x545e7f)&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x397)],'label':_0x2b0170['t'](_0x4ec613[_0x10fe54(0x273)](_0x545e7f,_0x376127[_0x10fe54(0x187)])?'bases-dashboard-ui.chart.chartTypes.area':_0x10fe54(0x3e5)),'children':_0x414ebe(_0x4ec390,{'defaultValues':Q['lineAndArea'],'lineStyleControl':_0x10fe54(0x488)})}),_0x1d4e5d(_0x545e7f,_0x518183[_0x10fe54(0x186)])&&_0x414ebe($,{'id':_0x111171['Legend'],'label':_0x2b0170['t'](_0x10fe54(0x31e)),'children':_0x414ebe(_0x179da2,{'defaultValues':Q[_0x10fe54(0x31d)]})}),_0x1d4e5d(_0x545e7f,_0x518183[_0x10fe54(0x3a3)])&&_0x3c00a1(_0x42483e,{'children':[_0x414ebe($,{'id':_0x111171[_0x10fe54(0x420)],'label':_0x2b0170['t'](_0x10fe54(0x1a6)),'children':_0x414ebe(_0xaa8939,{'axis':'x','defaultValues':Q[_0x10fe54(0x1f3)],'NumberFormatField':_0x3f6633})}),_0x414ebe($,{'id':_0x111171[_0x10fe54(0x2f5)],'label':_0x2b0170['t']('bases-dashboard-ui.chart.common.verticalAxis'),'children':_0x414ebe(_0xaa8939,{'axis':'y','defaultValues':Q[_0x10fe54(0x1f3)],'NumberFormatField':_0x3f6633})}),_0x414ebe(_0x2dcd87,{'section':_0x10fe54(0x33b)}),_0x4a3a9f&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x1d1)],'label':_0x2b0170['t'](_0x10fe54(0x42b)),'children':_0x414ebe(_0xaa8939,{'axis':_0x10fe54(0x3f7),'defaultValues':Q['axis'],'NumberFormatField':_0x3f6633})}),_0x414ebe($,{'id':_0x111171[_0x10fe54(0x1aa)],'label':_0x2b0170['t']('bases-dashboard-ui.chart.section.gridlinesAndTicks'),'children':_0x414ebe(_0x54cf11,{'defaultValues':Q['axis']})})]}),_0x1d4e5d(_0x545e7f,_0x518183[_0x10fe54(0x419)])&&_0x414ebe($,{'id':_0x111171[_0x10fe54(0x419)],'label':_0x2b0170['t'](_0x10fe54(0x274)),'children':_0x414ebe(_0x5b0ede,{'defaultValues':Q[_0x10fe54(0x31f)]})}),_0x2db1ff(_0x545e7f)&&_0x414ebe($,{'id':_0x111171['Trendline'],'label':_0x2b0170['t'](_0x10fe54(0x398)),'children':_0x414ebe(_0x452c9a,{'defaultValues':Q['trendline']})}),_0x53ddb6&&_0x414ebe($,{'id':_0x53ddb6['id'],'label':_0x53ddb6[_0x10fe54(0x1e5)],'children':_0x414ebe(_0x5d8d27,{})})]});}function va(_0x513a68,_0x1360bb){const _0x3a1a36=_0x290871;let _0x4fee5c={[_0x376127['Candlestick']]:{'id':_0x111171[_0x3a1a36(0x36b)],'localeKey':_0x3a1a36(0x164)},[_0x376127[_0x3a1a36(0x37c)]]:{'id':_0x111171[_0x3a1a36(0x37c)],'localeKey':_0x3a1a36(0x16c)},[_0x376127[_0x3a1a36(0x21d)]]:{'id':_0x111171[_0x3a1a36(0x21d)],'localeKey':_0x3a1a36(0x23d)},[_0x376127[_0x3a1a36(0x3e1)]]:{'id':_0x111171['Sunburst'],'localeKey':'bases-dashboard-ui.chart.section.sunburst'},[_0x376127['Gauge']]:{'id':_0x111171[_0x3a1a36(0x47b)],'localeKey':_0x3a1a36(0x434)},[_0x376127[_0x3a1a36(0x1a0)]]:{'id':_0x111171[_0x3a1a36(0x1a0)],'localeKey':_0x3a1a36(0x403)}}[_0x513a68];return _0x4fee5c?{'id':_0x4fee5c['id'],'label':_0x1360bb['t'](_0x4fee5c['localeKey'])}:null;}function ya(_0x46b96e){const _0x3194c6=_0x290871;return _0x3194c6(0x482)+_0x46b96e;}function ba({onChange:_0x2617fa,onEditData:_0x376190,runtime:_0xde18b3,sourceChart:_0x1e0fe4,sourceName:_0xbdd522,widget:_0x1608af}){const _0x1b0dad=_0x290871;let _0x168f6e=_0xe276a8(qr),_0x56a0bf=_0xe276a8(_0x4b0f72),[_0x157c10,_0x18dc90]=_0x3f626c(_0x147b03['Data']),_0x18e7c6=_0x1608af[_0x1b0dad(0x3a5)]??_0x1e0fe4,_0xe6beb1=_0x50478e(()=>new _0x1be047(_0xde18b3[_0x1b0dad(0x1cd)],{'commit':_0x492849=>{const _0x29d69f=_0x1b0dad;var _0x473df5;let _0x500d93=_0xde18b3[_0x29d69f(0x1cd)],_0x4c9d0a=_0x2d72ce(_0x492849,{'series':(_0x473df5=_0x500d93[_0x29d69f(0x193)])==null?void 0x0:_0x473df5[_0x29d69f(0x414)],'currentChartType':_0x500d93['chartType'],'currentStyle':_0x500d93[_0x29d69f(0x148)],'currentContext':_0x500d93[_0x29d69f(0x254)],'currentDataAggregation':_0x500d93[_0x29d69f(0x171)]});_0x2617fa({..._0x1608af,'chart':ha(_0x18e7c6,_0x4c9d0a)})[_0x29d69f(0x147)](()=>void 0x0);}}),[_0x18e7c6,_0x2617fa,_0xde18b3,_0x1608af]),_0x5cd3b7=_0x50478e(()=>_0x2ed067(_0x1bd142[_0x1b0dad(0x3a8)](_0x5742a4=>({..._0x5742a4,'label':_0x56a0bf['t'](xa(_0x5742a4[_0x1b0dad(0x44f)]))}))),[_0x56a0bf]);return _0x414ebe(_0x32b767,{'chartUIService':_0x168f6e,'hostAdapter':_0xe6beb1,'children':_0x3c00a1(_0x1b0dad(0x384),{'data-dashboard-chart-inspector':!0x0,'className':_0x1b0dad(0x480),'children':[_0x414ebe(_0xbfe45a,{'ariaLabel':_0x56a0bf['t'](_0x1b0dad(0x2a4)),'className':_0x1b0dad(0x17e),'items':[{'label':_0x56a0bf['t'](_0x1b0dad(0x224)),'panelId':_0x1b0dad(0x2d1),'value':_0x147b03[_0x1b0dad(0x227)]},{'label':_0x56a0bf['t']('bases-dashboard-ui.chart.common.customize'),'panelId':'dashboard-chart-style','value':_0x147b03['Style']}],'value':_0x157c10,'onChange':_0x18dc90}),_0x157c10===_0x147b03[_0x1b0dad(0x227)]?_0x414ebe(_0x1199fe,{'id':_0x1b0dad(0x2d1),'label':_0x56a0bf['t'](_0x1b0dad(0x224)),'children':_0x3c00a1('div',{'className':_0x1b0dad(0x3af),'children':[_0x414ebe(_0x3e755e,{'options':_0x5cd3b7}),_0x414ebe(_0x3c8f1a,{}),_0x414ebe(_0xdeb132,{}),_0x414ebe(ga,{}),_0x414ebe(_0x11955e,{}),_0x3c00a1(_0x1b0dad(0x384),{'children':[_0x414ebe(_0xce0d39,{'title':_0x56a0bf['t'](_0x1b0dad(0x16f))}),_0x414ebe(_0x448a93,{'disabled':!0x0,'value':_0xbdd522}),_0x414ebe(_0x5d2b24,{'className':_0x1b0dad(0x473),'onClick':_0x376190,'children':_0x56a0bf['t'](_0x1b0dad(0x2fb))})]})]})}):_0x414ebe(_0x1199fe,{'id':_0x1b0dad(0x197),'label':_0x56a0bf['t'](_0x1b0dad(0x3d7)),'children':_0x414ebe(_a,{})})]})});}function xa(_0x10f6aa){return'bases-dashboard-ui.chart.chartTypes.'+_0x10f6aa;}const Sa=[_0x290871(0x3ae),_0x290871(0x475),_0x290871(0x261),'currency','grouped','compact'];function Ca({base:_0x46ab8a,onChange:_0x563a1c,onSelectBackgroundImage:_0x345dca,widget:_0x3b206f}){const _0x529214=_0x290871;var _0x4457f0;let _0x5200c0=_0xe276a8(_0x4b0f72),_0x5e381e=_0xe276a8(_0x32e309),_0x491415=_0x45d384(()=>_0x5e381e['currentTheme$'],_0x5e381e['getCurrentTheme'](),!0x1,[_0x5e381e]),_0x523f62=_0x45d384(()=>_0x5e381e[_0x529214(0x39b)],_0x5e381e['darkMode'],!0x1,[_0x5e381e]),[_0x450bd1,_0x6f477a]=_0x3f626c(_0x529214(0x409)),[_0x2fb9b8,_0x44d5a2]=_0x3f626c(!0x1),_0x29defd=Cr(_0x3b206f),_0xc47190=_0x46ab8a[_0x529214(0x18e)]()[_0x529214(0x377)][_0x3b206f[_0x529214(0x1b9)]],_0x361cc9=_0xc47190==null?void 0x0:_0xc47190[_0x529214(0x40f)][_0x529214(0x47f)](_0xb87e0c=>_0xc47190[_0x529214(0x483)][_0xb87e0c]),_0x5a250e=_0x361cc9?_0xc47190==null?void 0x0:_0xc47190['views'][_0x361cc9]:void 0x0,_0x2e2605=_0xc47190&&_0x5a250e?_0x3134ee(_0x46ab8a[_0x529214(0x18e)](),_0xc47190,_0x5a250e)['map'](_0x5504df=>({..._0x5504df,'current':!0x1})):[],_0x3ca433=((_0x4457f0=_0x3b206f['shapeData']['formulaBinding'])==null?void 0x0:_0x4457f0[_0x529214(0x1c6)])??'',_0x833094=_0xa5556=>_0x563a1c(wr(_0x3b206f,_0xa5556))[_0x529214(0x147)](()=>void 0x0),_0x4b3ec7=_0x21fa0e=>_0x563a1c({..._0x3b206f,'description':_0x21fa0e})[_0x529214(0x147)](()=>void 0x0);return _0x3c00a1(_0x529214(0x384),{'data-dashboard-formula-inspector':!0x0,'className':_0x529214(0x480),'children':[_0x414ebe(_0x4110dc,{'className':_0x529214(0x2e8),'items':[{'value':'data','label':_0x5200c0['t']('bases-dashboard-ui.dashboardInspector.data')},{'value':'style','label':_0x5200c0['t'](_0x529214(0x379))}],'value':_0x450bd1,'onChange':_0x6f477a}),_0x414ebe('div',{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0x450bd1==='data'?_0x3c00a1(_0x529214(0x384),{'className':_0x529214(0x350),'children':[_0x414ebe(wa,{'label':_0x5200c0['t'](_0x529214(0x2cd)),'children':_0x414ebe(_0x448a93,{'value':_0x3b206f[_0x529214(0x451)]??_0x3b206f[_0x529214(0x43d)]??'','onChange':_0x4b3ec7,'onBlur':_0x2a73ba=>_0x4b3ec7(_0x2a73ba[_0x529214(0x1d8)][_0x529214(0x1c2)])})}),_0x414ebe(wa,{'label':_0x5200c0['t'](_0x529214(0x16f)),'children':_0x414ebe(_0x448a93,{'disabled':!0x0,'value':(_0xc47190==null?void 0x0:_0xc47190[_0x529214(0x2a3)])??_0x5200c0['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})}),_0x3c00a1(wa,{'label':_0x5200c0['t'](_0x529214(0x39e)),'children':[_0x414ebe(_0x448a93,{'disabled':!0x0,'value':_0x3cad2e(_0x3ca433,_0x2e2605)}),_0x414ebe(_0x5d2b24,{'className':'univer-mt-2\x20univer-w-full','onClick':()=>_0x44d5a2(!0x0),'children':_0x5200c0['t'](_0x529214(0x28a))})]})]}):_0x3c00a1('div',{'className':_0x529214(0x350),'children':[_0x414ebe(_0x43bcb4,{'emptyLabel':_0x5200c0['t'](_0x529214(0x301)),'label':_0x5200c0['t'](_0x529214(0x301)),'pickerFallbackValue':_0x523f62?_0x491415[_0x529214(0x3cd)][0x384]:_0x491415['gray'][0x0],'resetLabel':_0x5200c0['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x29defd[_0x529214(0x16a)]??null,'onChange':_0x5bc3c1=>_0x833094({'backgroundColor':_0x5bc3c1??void 0x0})}),_0x3c00a1(wa,{'label':_0x5200c0['t'](_0x529214(0x159)),'children':[_0x3c00a1('div',{'className':'univer-flex\x20univer-gap-2','children':[_0x3c00a1(_0x5d2b24,{'className':'univer-flex-1','onClick':()=>{const _0x441bc6=_0x529214;_0x345dca()[_0x441bc6(0x1fb)](_0x3c0416=>{const _0x4a4340=_0x441bc6;if(_0x3c0416){var _0x5d630c;return _0x833094({'backgroundImage':{..._0x3c0416,'fit':((_0x5d630c=_0x29defd[_0x4a4340(0x313)])==null?void 0x0:_0x5d630c[_0x4a4340(0x3e4)])??'cover'}});}})[_0x441bc6(0x147)](()=>void 0x0);},'children':[_0x414ebe(_0x2dc2bd,{}),_0x29defd[_0x529214(0x313)]?_0x5200c0['t'](_0x529214(0x18a)):_0x5200c0['t']('bases-dashboard-ui.dashboardInspector.uploadImage')]}),_0x29defd['backgroundImage']&&_0x414ebe(_0x5d2b24,{'aria-label':_0x5200c0['t'](_0x529214(0x2bb)),'title':_0x5200c0['t'](_0x529214(0x2bb)),'onClick':()=>_0x833094({'backgroundImage':void 0x0}),'children':_0x414ebe(_0x152022,{})})]}),_0x29defd[_0x529214(0x313)]&&_0x414ebe(_0x4110dc,{'className':_0x529214(0x188),'items':[{'value':_0x529214(0x257),'label':_0x5200c0['t'](_0x529214(0x2f1))},{'value':_0x529214(0x1b4),'label':_0x5200c0['t']('bases-dashboard-ui.dashboardInspector.contain')}],'value':_0x29defd[_0x529214(0x313)][_0x529214(0x3e4)],'onChange':_0x5af39d=>_0x833094({'backgroundImage':_0x29defd[_0x529214(0x313)]?{..._0x29defd[_0x529214(0x313)],'fit':_0x5af39d}:void 0x0})})]}),_0x414ebe(_0x43bcb4,{'emptyLabel':_0x5200c0['t'](_0x529214(0x481)),'label':_0x5200c0['t'](_0x529214(0x481)),'pickerFallbackValue':_0x523f62?_0x491415[_0x529214(0x3cd)][0x32]:_0x491415[_0x529214(0x3cd)][0x3e8],'resetLabel':_0x5200c0['t'](_0x529214(0x337)),'value':_0x29defd['textColor']??null,'onChange':_0x4ff5af=>_0x833094({'textColor':_0x4ff5af??void 0x0})}),_0x414ebe(wa,{'label':_0x5200c0['t'](_0x529214(0x228)),'children':_0x414ebe(_0x4110dc,{'items':[{'value':_0x529214(0x2f9),'label':_0x5200c0['t'](_0x529214(0x3c8))},{'value':_0x529214(0x15d),'label':_0x5200c0['t'](_0x529214(0x3ef))},{'value':_0x529214(0x33f),'label':_0x5200c0['t'](_0x529214(0x3aa))}],'value':_0x29defd[_0x529214(0x1f6)],'onChange':_0x1dfcf7=>_0x833094({'alignment':_0x1dfcf7})})}),_0x3c00a1(wa,{'label':_0x5200c0['t'](_0x529214(0x46a)),'children':[_0x414ebe(_0x4110dc,{'items':[{'value':_0x529214(0x449),'label':_0x5200c0['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':'custom','label':_0x5200c0['t'](_0x529214(0x2d8))}],'value':_0x29defd[_0x529214(0x307)],'onChange':_0x448ae1=>_0x833094({'fontSizeMode':_0x448ae1})}),_0x29defd[_0x529214(0x307)]===_0x529214(0x3b7)&&_0x414ebe(_0x2963f5,{'className':'univer-mt-2','min':0xc,'max':0x78,'value':_0x29defd['fontSize'],'onChange':_0x3e34ef=>_0x833094({'fontSize':_0x3e34ef??0x28,'fontSizeMode':_0x529214(0x3b7)})})]}),_0x414ebe(wa,{'label':_0x5200c0['t'](_0x529214(0x272)),'children':_0x414ebe(_0x296606,{'value':_0x29defd[_0x529214(0x262)],'options':[{'value':_0x529214(0x3ae),'label':_0x5200c0['t'](_0x529214(0x380))},{'value':_0x529214(0x475),'label':_0x5200c0['t'](_0x529214(0x3bc))},{'value':_0x529214(0x261),'label':_0x5200c0['t'](_0x529214(0x1b1))},{'value':_0x529214(0x3c6),'label':_0x5200c0['t'](_0x529214(0x42f))},{'value':_0x529214(0x146),'label':_0x5200c0['t'](_0x529214(0x158))},{'value':_0x529214(0x177),'label':_0x5200c0['t']('bases-dashboard-ui.dashboardInspector.compact')}],'onChange':_0x1d3b0f=>{const _0x34376a=_0x529214;let _0x577ccd=Sa[_0x34376a(0x47f)](_0x48aff3=>_0x48aff3===_0x1d3b0f);_0x577ccd&&_0x833094({'numberFormat':_0x577ccd});}})}),_0x29defd['numberFormat']===_0x529214(0x3c6)&&_0x414ebe(wa,{'label':_0x5200c0['t'](_0x529214(0x166)),'children':_0x414ebe(_0x448a93,{'value':_0x29defd[_0x529214(0x3c6)],'onChange':_0x1c3738=>_0x833094({'currency':_0x1c3738[_0x529214(0x234)](0x0,0x3)[_0x529214(0x294)]()})})}),_0x29defd[_0x529214(0x262)]!=='general'&&_0x414ebe(wa,{'label':_0x5200c0['t'](_0x529214(0x430)),'children':_0x414ebe(_0x2963f5,{'min':0x0,'max':0x8,'value':_0x29defd['decimalPlaces'],'onChange':_0xa87de8=>_0x833094({'decimalPlaces':_0xa87de8??0x0})})})]})}),_0x2fb9b8&&_0x414ebe(_0x446051,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x414ebe(_0x461c68,{'tables':_0x2e2605,'formula':_0x3cad2e(_0x3ca433,_0x2e2605),'onCancel':()=>_0x44d5a2(!0x1),'onSave':_0x1f5708=>{const _0x180984=_0x529214;let _0x4c4f28=_0x3b206f[_0x180984(0x3c7)][_0x180984(0x3c0)]??{'formula':''};return _0x563a1c({..._0x3b206f,'shapeData':{..._0x3b206f[_0x180984(0x3c7)],'formulaBinding':{..._0x4c4f28,'formula':_0x1a63bf(_0x1f5708,_0x2e2605)}}})[_0x180984(0x1fb)](()=>_0x44d5a2(!0x1))['catch'](()=>void 0x0);}})})]});}function wa({children:_0x24a331,label:_0x2b6bf5}){const _0x5a629f=_0x290871;return _0x3c00a1('div',{'role':'group','aria-label':_0x2b6bf5,'className':_0x5a629f(0x45a),'children':[_0x414ebe(_0x5a629f(0x415),{'children':_0x2b6bf5}),_0x24a331]});}const Ta={[_0x5cc925['IS']]:_0x290871(0x46f),[_0x5cc925[_0x290871(0x469)]]:_0x290871(0x25f),[_0x5cc925[_0x290871(0x1b8)]]:_0x290871(0x22f),[_0x5cc925[_0x290871(0x3d0)]]:_0x290871(0x1f9),[_0x5cc925[_0x290871(0x19a)]]:_0x290871(0x15e),[_0x5cc925[_0x290871(0x1a9)]]:'bases-dashboard-ui.operators.isNotEmpty',[_0x5cc925[_0x290871(0x15f)]]:_0x290871(0x17f),[_0x5cc925[_0x290871(0x2ce)]]:_0x290871(0x27a),[_0x5cc925[_0x290871(0x319)]]:'bases-dashboard-ui.operators.lessThan',[_0x5cc925[_0x290871(0x402)]]:_0x290871(0x326),[_0x5cc925['BEFORE']]:_0x290871(0x19d),[_0x5cc925[_0x290871(0x291)]]:_0x290871(0x3f3)};function Ea({disabled:_0x5a7e32,fields:_0x54b9a7,filter:_0x37545d,onChange:_0x169a12}){const _0x1a8a6c=_0x290871;let _0x377ff2=_0xe276a8(_0x4b0f72),_0x4aac87=(_0x37545d==null?void 0x0:_0x37545d['conditions'])??[];return _0x4aac87['length']?_0x414ebe(_0x1a8a6c(0x384),{'className':_0x1a8a6c(0x1e2),'children':_0x4aac87[_0x1a8a6c(0x3a8)]((_0x4c375e,_0x4c2755)=>{const _0x578dfe=_0x1a8a6c;let _0x3a27d8=_0x54b9a7['find'](_0x38b800=>_0x38b800['id']===_0x4c375e[_0x578dfe(0x48a)]);return _0x3c00a1(_0x578dfe(0x384),{'className':_0x578dfe(0x39d),'children':[_0x3c00a1(_0x578dfe(0x384),{'className':'univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','children':[_0x414ebe(_0x578dfe(0x415),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','children':(_0x3a27d8==null?void 0x0:_0x3a27d8['name'])??_0x4c375e[_0x578dfe(0x48a)]}),_0x414ebe('span',{'className':_0x578dfe(0x1ba),'children':_0x377ff2['t'](Ta[_0x4c375e[_0x578dfe(0x316)]])})]}),Pa(_0x4c375e['operator'])&&_0x414ebe(Oa,{'disabled':_0x5a7e32,'field':_0x3a27d8,'value':_0x4c375e[_0x578dfe(0x312)],'onChange':_0x1c2057=>_0x169a12(ja(_0x37545d,_0x4c2755,{'operand':_0x1c2057}))})]},La(_0x4aac87,_0x4c375e,_0x4c2755));})}):_0x3c00a1('div',{'className':_0x1a8a6c(0x440),'children':[_0x414ebe(_0x27cd4d,{'className':_0x1a8a6c(0x1f8)}),_0x414ebe(_0x1a8a6c(0x415),{'className':_0x1a8a6c(0x368),'children':_0x377ff2['t'](_0x1a8a6c(0x296))})]});}function Da({fields:_0x352512,filter:_0x3fe1df,onChange:_0x2e5cd2,onClear:_0x106701}){const _0x406e5c=_0x290871;let _0x3134b1=_0xe276a8(_0x4b0f72),_0x591390=(_0x3fe1df==null?void 0x0:_0x3fe1df['conditions'])??[];return _0x3c00a1('div',{'data-dashboard-filter-inspector':!0x0,'className':'univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','children':[_0x591390[_0x406e5c(0x3a8)]((_0x1b63fd,_0x18dcde)=>{const _0x4dff00=_0x406e5c;let _0x2d3128=_0x352512['find'](_0x433dcb=>_0x433dcb['id']===_0x1b63fd[_0x4dff00(0x48a)])??_0x352512[0x0],_0x5a6d60=Ma(_0x2d3128);return _0x3c00a1(_0x4dff00(0x1ab),{'className':'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','children':[_0x3c00a1(_0x4dff00(0x384),{'className':_0x4dff00(0x155),'children':[_0x414ebe(_0x296606,{'value':_0x1b63fd[_0x4dff00(0x48a)],'options':_0x352512[_0x4dff00(0x3a8)](_0x3261f6=>({'value':_0x3261f6['id'],'label':_0x3261f6[_0x4dff00(0x2a3)]})),'onChange':_0x12fc36=>{const _0x4aa5f5=_0x4dff00;let _0x56db21=_0x352512[_0x4aa5f5(0x47f)](_0x18adf3=>_0x18adf3['id']===_0x12fc36);if(!_0x56db21)return;let _0xf793be=Ma(_0x56db21)[0x0];_0x2e5cd2(ja(_0x3fe1df,_0x18dcde,Aa(_0x56db21,_0xf793be)));}}),_0x414ebe(_0x5d2b24,{'type':_0x4dff00(0x30b),'variant':_0x4dff00(0x476),'aria-label':_0x3134b1['t'](_0x4dff00(0x34d)),'className':_0x4dff00(0x160),'onClick':()=>_0x2e5cd2(ka(_0x3fe1df,_0x591390[_0x4dff00(0x42d)]((_0xa8457,_0x1301d4)=>_0x1301d4!==_0x18dcde))),'children':_0x414ebe(_0x2f343c,{})})]}),_0x414ebe(_0x296606,{'value':_0x1b63fd[_0x4dff00(0x316)],'options':_0x5a6d60[_0x4dff00(0x3a8)](_0x864297=>({'value':_0x864297,'label':_0x3134b1['t'](Ta[_0x864297])})),'onChange':_0x4b8ae4=>{const _0x415c83=_0x4dff00;let _0x1c3a45=_0x5a6d60[_0x415c83(0x47f)](_0x28c068=>_0x28c068===_0x4b8ae4);_0x1c3a45&&_0x2e5cd2(ja(_0x3fe1df,_0x18dcde,{'operator':_0x1c3a45,'operand':Na(_0x2d3128)}));}}),Pa(_0x1b63fd[_0x4dff00(0x316)])&&_0x414ebe(Oa,{'field':_0x2d3128,'value':_0x1b63fd[_0x4dff00(0x312)],'onChange':_0x3d9aad=>_0x2e5cd2(ja(_0x3fe1df,_0x18dcde,{'operand':_0x3d9aad}))})]},La(_0x591390,_0x1b63fd,_0x18dcde));}),_0x3c00a1(_0x5d2b24,{'type':_0x406e5c(0x30b),'variant':_0x406e5c(0x476),'className':_0x406e5c(0x44a),'disabled':!_0x352512[_0x406e5c(0x151)],'onClick':()=>{let _0x44e9e2=_0x352512[0x0];if(!_0x44e9e2)return;let _0x56b907=Ma(_0x44e9e2)[0x0];_0x2e5cd2(ka(_0x3fe1df,[..._0x591390,Aa(_0x44e9e2,_0x56b907)]));},'children':[_0x414ebe(_0x2dc2bd,{}),_0x3134b1['t'](_0x406e5c(0x364))]}),_0x591390['length']>0x0&&_0x414ebe(_0x5d2b24,{'type':_0x406e5c(0x30b),'variant':_0x406e5c(0x476),'className':_0x406e5c(0x35a),'onClick':_0x106701,'children':_0x3134b1['t'](_0x406e5c(0x45b))})]});}function Oa({disabled:_0x534ccc,field:_0x4d260f,onChange:_0x20d7d3,value:_0x38d382}){const _0x5e70c6=_0x290871;let _0x233561=_0xe276a8(_0x4b0f72),[_0x311d37,_0x4cdbb9]=_0x3f626c({'value':_0x38d382,'text':String(_0x38d382??'')});Object['is'](_0x311d37[_0x5e70c6(0x1c2)],_0x38d382)||_0x4cdbb9({'value':_0x38d382,'text':String(_0x38d382??'')});let _0x34143d=_0x311d37['text'],_0x5b2f0d=_0x48de8d=>_0x4cdbb9({'value':_0x38d382,'text':_0x48de8d}),_0x201e3b=_0x4d260f==null?void 0x0:_0x4d260f[_0x5e70c6(0x183)];if(_0x201e3b===_0x5e006f['Checkbox']){let _0x55a707=_0x38d382===!0x0||_0x38d382==='true';return _0x3c00a1(_0x5d2b24,{'type':_0x5e70c6(0x30b),'variant':'default','disabled':_0x534ccc,'className':_0x5e70c6(0x213),'onClick':()=>_0x20d7d3(!_0x55a707),'children':[_0x414ebe(_0x283511,{'checked':_0x55a707,'disabled':_0x534ccc,'onChange':()=>void 0x0}),_0x55a707?_0x233561['t']('bases-dashboard-ui.dashboardInspector.checked'):_0x233561['t']('bases-dashboard-ui.dashboardInspector.unchecked')]});}return Ra(_0x201e3b)?_0x534ccc?_0x414ebe(_0x5d2b24,{'type':_0x5e70c6(0x30b),'variant':'default','className':'univer-w-full','disabled':!0x0,'children':_0x1a7bb5(_0x38d382==null||_0x38d382===''?void 0x0:String(_0x38d382))['format']('YYYY-MM-DD')}):_0x414ebe(_0x34c307,{'className':_0x5e70c6(0x35a),'value':_0x1a7bb5(_0x38d382==null||_0x38d382===''?void 0x0:String(_0x38d382))[_0x5e70c6(0x486)](),'onValueChange':_0xed5370=>_0x20d7d3(_0x1a7bb5(_0xed5370)[_0x5e70c6(0x30f)](_0x5e70c6(0x14e)))}):Ba(_0x4d260f)?_0x414ebe(_0x2eb6e4,{'className':_0x5e70c6(0x35a),'disabled':_0x534ccc,'value':Array[_0x5e70c6(0x1e7)](_0x38d382)?_0x38d382[_0x5e70c6(0x3a8)](String):[],'options':Fa(_0x4d260f),'onChange':_0x20d7d3}):_0x201e3b===_0x5e006f[_0x5e70c6(0x192)]||_0x201e3b===_0x5e006f[_0x5e70c6(0x263)]||_0x201e3b===_0x5e006f['Person']?_0x414ebe(_0x296606,{'className':_0x5e70c6(0x35a),'disabled':_0x534ccc,'value':String(_0x38d382??''),'options':[{'value':'','label':_0x233561['t'](_0x5e70c6(0x278))},...Fa(_0x4d260f)],'onChange':_0x20d7d3}):za(_0x201e3b)?_0x414ebe(_0x448a93,{'className':_0x5e70c6(0x35a),'disabled':_0x534ccc,'inputMode':'decimal','value':_0x34143d,'aria-invalid':_0x34143d!==''&&!Number[_0x5e70c6(0x433)](Number(_0x34143d)),'onChange':_0x3ba1eb=>{const _0x37ec87=_0x5e70c6;_0x5b2f0d(_0x3ba1eb),_0x3ba1eb===''?_0x20d7d3(''):Number[_0x37ec87(0x433)](Number(_0x3ba1eb))&&_0x20d7d3(Number(_0x3ba1eb));},'onBlur':()=>_0x5b2f0d(String(_0x38d382??''))}):_0x414ebe(_0x448a93,{'disabled':_0x534ccc,'value':String(_0x38d382??''),'placeholder':_0x233561['t']('bases-dashboard-ui.dashboardInspector.enterValue'),'onChange':_0x20d7d3});}function ka(_0x286b39,_0x2fc849){const _0xb0d1e6=_0x290871;return{'conjunction':(_0x286b39==null?void 0x0:_0x286b39[_0xb0d1e6(0x253)])??_0x369900[_0xb0d1e6(0x36d)],'conditions':_0x2fc849};}function Aa(_0x22cbc8,_0x2dc01f){return Pa(_0x2dc01f)?{'fieldId':_0x22cbc8['id'],'operator':_0x2dc01f,'operand':Na(_0x22cbc8)}:{'fieldId':_0x22cbc8['id'],'operator':_0x2dc01f};}function ja(_0x30793c,_0x35c583,_0x406af0){const _0xa43fd7=_0x290871;return ka(_0x30793c,((_0x30793c==null?void 0x0:_0x30793c[_0xa43fd7(0x338)])??[])[_0xa43fd7(0x3a8)]((_0x49a42a,_0x549a74)=>_0x549a74===_0x35c583?{..._0x49a42a,..._0x406af0}:_0x49a42a));}function Ma(_0x320a90){const _0x2997e4=_0x290871;let _0x444bb3=[_0x5cc925['IS_EMPTY'],_0x5cc925['IS_NOT_EMPTY']];switch(_0x320a90==null?void 0x0:_0x320a90['type']){case _0x5e006f['Number']:case _0x5e006f[_0x2997e4(0x3b6)]:case _0x5e006f[_0x2997e4(0x3e0)]:case _0x5e006f['Rating']:return[_0x5cc925['IS'],_0x5cc925['IS_NOT'],_0x5cc925['GREATER_THAN'],_0x5cc925[_0x2997e4(0x319)],..._0x444bb3];case _0x5e006f[_0x2997e4(0x28d)]:case _0x5e006f[_0x2997e4(0x2e5)]:case _0x5e006f[_0x2997e4(0x371)]:return[_0x5cc925['IS'],_0x5cc925[_0x2997e4(0x469)],_0x5cc925['BEFORE'],_0x5cc925[_0x2997e4(0x291)],..._0x444bb3];case _0x5e006f['Checkbox']:return[_0x5cc925['IS'],_0x5cc925[_0x2997e4(0x469)]];default:return[_0x5cc925['IS'],_0x5cc925[_0x2997e4(0x469)],_0x5cc925['CONTAINS'],_0x5cc925[_0x2997e4(0x3d0)],..._0x444bb3];}}function Na(_0x66d79c){const _0x345878=_0x290871;return _0x66d79c?_0x66d79c['type']===_0x5e006f[_0x345878(0x330)]?!0x1:Ra(_0x66d79c[_0x345878(0x183)])?_0x1a7bb5()[_0x345878(0x30f)](_0x345878(0x14e)):Ba(_0x66d79c)?[]:'':'';}function Pa(_0x307354){const _0x2b427e=_0x290871;return _0x307354!==_0x5cc925[_0x2b427e(0x19a)]&&_0x307354!==_0x5cc925[_0x2b427e(0x1a9)];}function Fa(_0x2b1344){const _0x5c96d3=_0x290871;var _0x36b3b5;return(Array[_0x5c96d3(0x1e7)](_0x2b1344==null||(_0x36b3b5=_0x2b1344['config'])==null?void 0x0:_0x36b3b5[_0x5c96d3(0x209)])?_0x2b1344['config'][_0x5c96d3(0x209)]:[])['map']((_0x61e54a,_0x1aff41)=>{const _0x6e0b87=_0x5c96d3;if(typeof _0x61e54a==_0x6e0b87(0x26b))return{'label':_0x61e54a,'value':_0x61e54a};if(!Ia(_0x61e54a))return{'label':String(_0x1aff41+0x1),'value':String(_0x1aff41+0x1)};let _0x37e8a3=_0x61e54a,_0x4a2e1f=String(_0x37e8a3[_0x6e0b87(0x2a3)]??_0x37e8a3['id']??_0x1aff41+0x1),_0xb46f49=String(_0x37e8a3['id']??_0x4a2e1f);return{'label':_0x4a2e1f,'value':/^opt-\d+$/['test'](_0xb46f49)?_0x4a2e1f:_0xb46f49};});}function Ia(_0x30bfa3){const _0x3037da=_0x290871;return typeof _0x30bfa3==_0x3037da(0x30e)&&!!_0x30bfa3;}function La(_0x158bc2,_0x3c52f9,_0x176014){const _0x1208ad=_0x290871;let _0x2641e5=JSON[_0x1208ad(0x32a)](_0x3c52f9);return _0x2641e5+'-'+_0x158bc2[_0x1208ad(0x234)](0x0,_0x176014)[_0x1208ad(0x42d)](_0x1ba6e7=>JSON[_0x1208ad(0x32a)](_0x1ba6e7)===_0x2641e5)[_0x1208ad(0x151)];}function Ra(_0x347f3d){const _0x4b9f32=_0x290871;return _0x347f3d===_0x5e006f[_0x4b9f32(0x28d)]||_0x347f3d===_0x5e006f[_0x4b9f32(0x2e5)]||_0x347f3d===_0x5e006f[_0x4b9f32(0x371)];}function za(_0x5c595d){const _0x1a2cc0=_0x290871;return _0x5c595d===_0x5e006f[_0x1a2cc0(0x196)]||_0x5c595d===_0x5e006f[_0x1a2cc0(0x3b6)]||_0x5c595d===_0x5e006f[_0x1a2cc0(0x3e0)]||_0x5c595d===_0x5e006f[_0x1a2cc0(0x39f)];}function _0x29b7(_0x2eea85,_0x15ca81){_0x2eea85=_0x2eea85-0x13a;const _0x5bbc58=_0x5bbc();let _0x29b7c9=_0x5bbc58[_0x2eea85];return _0x29b7c9;}function Ba(_0x164571){const _0x392978=_0x290871;var _0x225e90;return(_0x164571==null?void 0x0:_0x164571[_0x392978(0x183)])===_0x5e006f[_0x392978(0x1ae)]||(_0x164571==null?void 0x0:_0x164571[_0x392978(0x183)])===_0x5e006f[_0x392978(0x263)]||(_0x164571==null?void 0x0:_0x164571[_0x392978(0x183)])===_0x5e006f[_0x392978(0x340)]&&((_0x225e90=_0x164571[_0x392978(0x193)])==null?void 0x0:_0x225e90['allowMultiple'])===!0x0;}function Va({base:_0xdd4304,chartRuntime:_0x5371e7,onChange:_0x9e0e9c,onClose:_0x3dab76,onSelectBackgroundImage:_0x4510f7,onSelectImage:_0x3b34cb,unitId:_0x348ac6,widget:_0x2078ff}){const _0x7eb746=_0x290871;let _0xc9a43d=_0xe276a8(_0x299365),_0x463f8a=_0xe276a8(_0x4b0f72),_0x1277b0=_0xdd4304[_0x7eb746(0x18e)](),_0x4606fe=_0x7eb746(0x1b9)in _0x2078ff?_0x1277b0[_0x7eb746(0x377)][_0x2078ff[_0x7eb746(0x1b9)]]:void 0x0,_0x5df7e7=_0x2078ff['type']===_0x39775d[_0x7eb746(0x26a)]?_0x4606fe==null?void 0x0:_0x4606fe[_0x7eb746(0x483)][_0x2078ff[_0x7eb746(0x154)]]:void 0x0,_0x4be288=_0x463f8a['t'](Ja(_0x2078ff));return _0x3c00a1(_0x7eb746(0x3dc),{'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':[_0x3c00a1(_0x7eb746(0x38b),{'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':[_0x414ebe('h3',{'className':_0x7eb746(0x32e),'children':_0x4be288}),_0x414ebe(_0x5d2b24,{'type':_0x7eb746(0x30b),'size':_0x7eb746(0x231),'variant':'text','aria-label':_0x463f8a['t'](_0x7eb746(0x48c)),'onClick':_0x3dab76,'children':_0x414ebe(_0x2f343c,{})})]}),_0x2078ff['type']===_0x39775d[_0x7eb746(0x26a)]&&(qa(_0x5df7e7)&&_0x5371e7?_0x414ebe(ba,{'runtime':_0x5371e7,'sourceChart':_0x5df7e7[_0x7eb746(0x193)]['chart'],'sourceName':((_0x4606fe==null?void 0x0:_0x4606fe[_0x7eb746(0x2a3)])??'')+_0x7eb746(0x1de)+_0x5df7e7['name'],'widget':_0x2078ff,'onChange':_0x9e0e9c,'onEditData':()=>{const _0x582408=_0x7eb746;_0xc9a43d[_0x582408(0x25b)](_0x32f41c['id'],{'unitId':_0x348ac6,'tableId':_0x2078ff['tableId'],'viewId':_0x2078ff[_0x582408(0x154)]})[_0x582408(0x147)](()=>void 0x0);}}):_0x414ebe(Ga,{'message':qa(_0x5df7e7)?_0x463f8a['t'](_0x7eb746(0x144)):_0x463f8a['t'](_0x7eb746(0x2be))})),_0x2078ff[_0x7eb746(0x183)]===_0x39775d[_0x7eb746(0x474)]&&_0x414ebe(Ca,{'base':_0xdd4304,'widget':_0x2078ff,'onChange':_0x9e0e9c,'onSelectBackgroundImage':_0x4510f7}),_0x2078ff[_0x7eb746(0x183)]===_0x39775d[_0x7eb746(0x324)]&&_0x414ebe(Ua,{'base':_0xdd4304,'onChange':_0x9e0e9c,'widget':_0x2078ff}),_0x2078ff['type']===_0x39775d[_0x7eb746(0x300)]&&_0x414ebe(Wa,{'onChange':_0x9e0e9c,'widget':_0x2078ff}),_0x2078ff[_0x7eb746(0x183)]===_0x39775d['Image']&&_0x414ebe(Ha,{'onChange':_0x9e0e9c,'onSelectImage':_0x3b34cb,'widget':_0x2078ff})]});}function Ha({onChange:_0x4fafd8,onSelectImage:_0x48a34e,widget:_0x2769c6}){const _0x122d18=_0x290871;let _0x50e715=_0xe276a8(_0x4b0f72);return _0x3c00a1(_0x122d18(0x384),{'className':'univer-grid\x20univer-gap-4\x20univer-p-4','children':[_0x3c00a1(_0x5d2b24,{'className':_0x122d18(0x35a),'onClick':()=>_0x48a34e()[_0x122d18(0x1fb)](_0x21943c=>_0x21943c&&_0x4fafd8({..._0x2769c6,'source':_0x21943c[_0x122d18(0x237)],'sourceType':_0x21943c[_0x122d18(0x260)],'alt':_0x21943c[_0x122d18(0x2a3)]}))[_0x122d18(0x147)](()=>void 0x0),'children':[_0x414ebe(_0x2dc2bd,{}),_0x50e715['t'](_0x122d18(0x18a))]}),_0x3c00a1('label',{'className':_0x122d18(0x45a),'children':[_0x414ebe(_0x122d18(0x415),{'children':_0x50e715['t'](_0x122d18(0x159))}),_0x414ebe(_0x4110dc,{'items':[{'value':_0x122d18(0x257),'label':_0x50e715['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x122d18(0x413),'label':_0x50e715['t'](_0x122d18(0x208))},{'value':_0x122d18(0x258),'label':_0x50e715['t'](_0x122d18(0x374))}],'value':_0x2769c6[_0x122d18(0x3f8)]??_0x122d18(0x257),'onChange':_0x3fb397=>_0x4fafd8({..._0x2769c6,'displayMode':_0x3fb397})[_0x122d18(0x147)](()=>void 0x0)})]})]});}function Ua({base:_0x3bdfd7,onChange:_0x2dfad0,widget:_0x5d7ccd}){const _0x64f967=_0x290871;let _0x318c61=_0x3bdfd7[_0x64f967(0x18e)]()[_0x64f967(0x377)][_0x5d7ccd[_0x64f967(0x1b9)]],_0x394eed=_0x318c61==null?void 0x0:_0x318c61[_0x64f967(0x40f)][_0x64f967(0x47f)](_0x2b0569=>_0x318c61[_0x64f967(0x483)][_0x2b0569]),_0x3e53c1=_0x394eed?_0x318c61==null?void 0x0:_0x318c61[_0x64f967(0x483)][_0x394eed]:void 0x0,_0x50da8c=_0x318c61&&_0x3e53c1?_0x5dcd9e(_0x318c61,_0x3e53c1):[];return _0x414ebe(Da,{'fields':_0x50da8c,'filter':_0x5d7ccd[_0x64f967(0x42d)],'onChange':_0x13b901=>_0x2dfad0({..._0x5d7ccd,'filter':_0x13b901})[_0x64f967(0x147)](()=>void 0x0),'onClear':()=>_0x2dfad0({..._0x5d7ccd,'filter':null})[_0x64f967(0x147)](()=>void 0x0)});}function Wa({onChange:_0x26b9a7,widget:_0x54cd2c}){const _0x5e9685=_0x290871;let _0x5d9cd3=_0xe276a8(_0x4b0f72),_0x26d8d0=_0xe276a8(_0x32e309),_0x26f52f=_0x45d384(()=>_0x26d8d0[_0x5e9685(0x343)],_0x26d8d0[_0x5e9685(0x212)](),!0x1,[_0x26d8d0]),_0x12c2e3=Hr(_0x54cd2c),_0xa4e1d4=_0x232498=>_0x26b9a7({..._0x54cd2c,'appearance':{..._0x12c2e3,..._0x232498}})[_0x5e9685(0x147)](()=>void 0x0);return _0x3c00a1(_0x5e9685(0x384),{'className':_0x5e9685(0x461),'children':[_0x414ebe(_0x27cc24,{'defaultValue':Ur(_0x54cd2c[_0x5e9685(0x270)]),'rows':0x8,'onBlur':_0x3a2be3=>_0x26b9a7({..._0x54cd2c,'document':Wr(_0x54cd2c[_0x5e9685(0x270)],_0x3a2be3[_0x5e9685(0x1d8)][_0x5e9685(0x1c2)])})[_0x5e9685(0x147)](()=>void 0x0)}),_0x414ebe(_0x43bcb4,{'emptyLabel':_0x5d9cd3['t'](_0x5e9685(0x301)),'label':_0x5d9cd3['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x26f52f[_0x5e9685(0x3cd)][0x0],'resetLabel':_0x5d9cd3['t'](_0x5e9685(0x337)),'value':_0x12c2e3[_0x5e9685(0x16a)]??null,'onChange':_0x3a61c6=>_0xa4e1d4({'backgroundColor':_0x3a61c6??void 0x0})}),_0x414ebe(_0x43bcb4,{'emptyLabel':_0x5d9cd3['t'](_0x5e9685(0x481)),'label':_0x5d9cd3['t'](_0x5e9685(0x481)),'pickerFallbackValue':_0x26f52f[_0x5e9685(0x3cd)][0x3e8],'resetLabel':_0x5d9cd3['t'](_0x5e9685(0x337)),'value':_0x12c2e3['textColor']??null,'onChange':_0x28327e=>_0xa4e1d4({'textColor':_0x28327e??void 0x0})}),_0x414ebe(Ka,{'label':_0x5d9cd3['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x414ebe(_0x4110dc,{'items':[{'value':_0x5e9685(0x2f9),'label':_0x5d9cd3['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':'center','label':_0x5d9cd3['t'](_0x5e9685(0x3ef))},{'value':_0x5e9685(0x33f),'label':_0x5d9cd3['t'](_0x5e9685(0x3aa))}],'value':_0x12c2e3[_0x5e9685(0x1f6)],'onChange':_0x2d7514=>_0xa4e1d4({'alignment':_0x2d7514})})}),_0x3c00a1(Ka,{'label':_0x5d9cd3['t'](_0x5e9685(0x46a)),'children':[_0x414ebe(_0x4110dc,{'items':[{'value':'auto','label':_0x5d9cd3['t'](_0x5e9685(0x352))},{'value':'custom','label':_0x5d9cd3['t'](_0x5e9685(0x2d8))}],'value':_0x12c2e3[_0x5e9685(0x307)],'onChange':_0x2664ed=>_0xa4e1d4({'fontSizeMode':_0x2664ed})}),_0x12c2e3[_0x5e9685(0x307)]===_0x5e9685(0x3b7)&&_0x414ebe(_0x2963f5,{'className':'univer-mt-2','min':0xa,'max':0x78,'value':_0x12c2e3[_0x5e9685(0x1a7)],'onChange':_0x3be20c=>_0xa4e1d4({'fontSize':_0x3be20c??0x12,'fontSizeMode':_0x5e9685(0x3b7)})})]})]});}function Ga({message:_0x3ffaaa}){const _0x37607c=_0x290871;return _0x414ebe(_0x37607c(0x384),{'className':_0x37607c(0x40b),'children':_0x3ffaaa});}function Ka({children:_0x4f74fd,label:_0x3a5723}){const _0x329a0f=_0x290871;return _0x3c00a1('div',{'role':_0x329a0f(0x1d4),'aria-':!0x0,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x414ebe(_0x329a0f(0x415),{'children':_0x3a5723}),_0x4f74fd]});}function qa(_0x1dfa2c){const _0x2e7b91=_0x290871;return(_0x1dfa2c==null?void 0x0:_0x1dfa2c[_0x2e7b91(0x183)])===_0x3744eb[_0x2e7b91(0x250)]&&typeof _0x1dfa2c[_0x2e7b91(0x193)]==_0x2e7b91(0x30e)&&_0x1dfa2c[_0x2e7b91(0x193)]!==null&&_0x2e7b91(0x145)in _0x1dfa2c['config']&&_0x2e7b91(0x3a5)in _0x1dfa2c[_0x2e7b91(0x193)];}function Ja(_0x3dccbe){const _0x39b4c4=_0x290871;switch(_0x3dccbe[_0x39b4c4(0x183)]){case _0x39775d['PivotChart']:return _0x39b4c4(0x2fa);case _0x39775d['TableFilter']:return _0x39b4c4(0x296);case _0x39775d[_0x39b4c4(0x300)]:return _0x39b4c4(0x37b);case _0x39775d[_0x39b4c4(0x3d2)]:return _0x39b4c4(0x26e);case _0x39775d['FormulaShape']:return _0x39b4c4(0x1d2);}}function Ya({onDelete:_0x1e14d2,onEdit:_0x249c38}){const _0x3d2a5b=_0x290871;let _0x2569bb=_0xe276a8(_0x4b0f72),_0x19b773=_0x2569bb['t'](_0x3d2a5b(0x16e)),_0x4081f7=_0x2569bb['t'](_0x3d2a5b(0x454)),_0x337d43=_0x2569bb['t']('bases-dashboard-ui.dashboard.widgetActions');return _0x414ebe(_0x4acc99,{'items':[{'type':'item','children':_0x3c00a1(_0x3d2a5b(0x415),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x414ebe(_0xd735a9,{'className':'univer-size-4','aria-hidden':_0x3d2a5b(0x2b6)}),_0x414ebe('span',{'children':_0x19b773})]}),'onSelect':_0x249c38},{'type':'separator'},{'type':_0x3d2a5b(0x3de),'variant':_0x3d2a5b(0x2ca),'children':_0x3c00a1(_0x3d2a5b(0x415),{'className':_0x3d2a5b(0x21b),'children':[_0x414ebe(_0x152022,{'className':_0x3d2a5b(0x2e0),'aria-hidden':'true'}),_0x414ebe(_0x3d2a5b(0x415),{'children':_0x4081f7})]}),'onSelect':_0x1e14d2}],'children':_0x414ebe(_0x5d2b24,{'type':_0x3d2a5b(0x30b),'size':_0x3d2a5b(0x231),'variant':_0x3d2a5b(0x476),'title':_0x337d43,'aria-label':_0x337d43,'className':'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','children':_0x414ebe(_0x37e5b5,{'className':_0x3d2a5b(0x2e0),'aria-hidden':_0x3d2a5b(0x2b6)})})});}function Xa({dashboardId:_0x328b35,presentation:_0x30fd09=!0x1,unitId:_0x1efaba}){const _0x1b6ef4=_0x290871;let _0x10a715=_0xe276a8(_0x299365),_0x561cb6=_0xe276a8(_0xdb66e),_0xadc272=_0xe276a8(_0x1c9925),_0x213fd0=_0xe276a8(_0x5abbf9),_0x2b2210=_0xe276a8(_0x4b0f72),_0x3935cb=_0xe276a8(_0x1aeb78),_0x1af82c=_0xe276a8(_0x2ce242),_0x44e155=_0x3987b(null),[_0x2aaa9a,_0x44e2a8]=_0x3f626c(!0x1),[_0x3b8d0a,_0x5131a2]=_0x3f626c(),[_0x1817fc,_0x2d40e0]=_0x3f626c(!0x1),[_0x406dae,_0x3841c1]=_0x3f626c(()=>new Map()),_0x489bfb=_0x12bed3((_0x41951e,_0x112b86)=>{_0x3841c1(_0x33ee28=>{const _0x7b00de=_0x29b7;let _0x22deab=new Map(_0x33ee28);return _0x112b86?_0x22deab[_0x7b00de(0x32b)](_0x41951e,_0x112b86):_0x22deab['delete'](_0x41951e),_0x22deab;});},[]),_0x4cf899=_0x45d384(()=>_0x3935cb['change$'][_0x1b6ef4(0x453)](_0x263c89(()=>_0x3935cb['getDashboard'](_0x1efaba,_0x328b35))),_0x3935cb[_0x1b6ef4(0x40d)](_0x1efaba,_0x328b35),!0x1,[_0x328b35,_0x3935cb,_0x1efaba]),_0x253cce=_0x213fd0[_0x1b6ef4(0x3be)](_0x1efaba,_0x1516ee[_0x1b6ef4(0x3c2)]),_0x4a63e5=_0x45d384(()=>_0x1af82c[_0x1b6ef4(0x2ed)],{'undos':0x0,'redos':0x0},!0x1,[_0x1af82c]),_0x6e5a17=vr(_0x1efaba,_0x328b35);if(_0x330c05(()=>{const _0x151628=_0x1b6ef4;_0x213fd0[_0x151628(0x173)](_0x1efaba),_0x213fd0[_0x151628(0x3bb)](_0x1efaba);},[_0x213fd0,_0x1efaba]),_0x330c05(()=>{const _0x2ab989=_0x1b6ef4;let _0x37d3fa=_0x44e155['current'],_0x311329=_0x37d3fa==null?void 0x0:_0x37d3fa[_0x2ab989(0x354)];if(!_0x37d3fa||!_0x311329)return;let _0x564163=()=>_0x2d40e0(_0x311329[_0x2ab989(0x425)]===_0x311329['documentElement']),_0x37bac1=_0x535fca=>{const _0x2dd2b5=_0x2ab989;_0x535fca[_0x2dd2b5(0x29d)]===_0x2dd2b5(0x140)&&!_0x535fca[_0x2dd2b5(0x3c3)]&&_0x311329[_0x2dd2b5(0x425)]===_0x311329[_0x2dd2b5(0x372)]&&_0x311329[_0x2dd2b5(0x29c)]()[_0x2dd2b5(0x147)](_0x564163);};return _0x311329['addEventListener'](_0x2ab989(0x27f),_0x564163),_0x311329[_0x2ab989(0x232)](_0x2ab989(0x3df),_0x37bac1),()=>{const _0x498e8d=_0x2ab989;_0x311329['removeEventListener'](_0x498e8d(0x27f),_0x564163),_0x311329[_0x498e8d(0x309)](_0x498e8d(0x3df),_0x37bac1);};},[]),!_0x4cf899||!_0x253cce)return null;let _0x21fb3e=_0x42b224=>_0x10a715['executeCommand'](_0x2e234a['id'],{'unitId':_0x1efaba,'dashboardId':_0x328b35,'widget':_0x42b224})[_0x1b6ef4(0x147)](()=>void 0x0),_0x3def5c=(_0x49af37,_0x3c598c,_0x8d80ac)=>{const _0x2d5d3c=_0x1b6ef4;let _0x4d5893=Math[_0x2d5d3c(0x399)](0x0,..._0x4cf899[_0x2d5d3c(0x47d)][_0x2d5d3c(0x2af)](_0x49057a=>{const _0x395ead=_0x2d5d3c;var _0x2861e5;let _0x556cb8=(_0x2861e5=_0x4cf899['widgets'][_0x49057a])==null?void 0x0:_0x2861e5[_0x395ead(0x2c7)];return _0x556cb8?[_0x556cb8[_0x395ead(0x3a9)]+_0x556cb8[_0x395ead(0x220)]]:[];})),_0x173b66=_0x2d5d3c(0x3cf)+_0x89ef13(0x8),_0x40fe08={'column':0x0,'row':_0x4d5893,'columnSpan':_0x3c598c,'rowSpan':_0x8d80ac};switch(_0x49af37[_0x2d5d3c(0x183)]){case _0x39775d['PivotChart']:return _0x21fb3e({..._0x49af37,'id':_0x173b66,'layout':_0x40fe08});case _0x39775d[_0x2d5d3c(0x324)]:return _0x21fb3e({..._0x49af37,'id':_0x173b66,'layout':_0x40fe08});case _0x39775d['Text']:return _0x21fb3e({..._0x49af37,'id':_0x173b66,'layout':_0x40fe08});case _0x39775d[_0x2d5d3c(0x3d2)]:return _0x21fb3e({..._0x49af37,'id':_0x173b66,'layout':_0x40fe08});case _0x39775d[_0x2d5d3c(0x474)]:return _0x21fb3e({..._0x49af37,'id':_0x173b66,'layout':_0x40fe08});}},_0x502ff8=_0x253cce[_0x1b6ef4(0x18e)](),_0x271d10=_0x502ff8[_0x1b6ef4(0x284)]['flatMap'](_0x4b363c=>{const _0x2c2057=_0x1b6ef4;let _0x4a4be8=_0x502ff8[_0x2c2057(0x377)][_0x4b363c];if(!_0x4a4be8)return[];let _0x3f4435=_0x4a4be8['viewOrder'][_0x2c2057(0x2af)](_0x4a40d5=>{const _0x24f906=_0x2c2057;let _0xef113=_0x4a4be8[_0x24f906(0x483)][_0x4a40d5];return io(_0xef113)?[{'type':_0x24f906(0x3de),'children':_0xef113['name'],'onSelect':()=>_0x3def5c({'type':_0x39775d[_0x24f906(0x26a)],'tableId':_0x4b363c,'pivotViewId':_0x4a40d5,'chart':{..._0xef113[_0x24f906(0x193)][_0x24f906(0x3a5)]}},0x6,0xa)}]:[];});return[{'type':_0x2c2057(0x303),'children':_0x4a4be8[_0x2c2057(0x2a3)],'options':[..._0x3f4435,..._0x3f4435[_0x2c2057(0x151)]?[{'type':_0x2c2057(0x2b1)}]:[],{'type':'item','children':_0x2b2210['t'](_0x2c2057(0x296)),'onSelect':()=>_0x3def5c({'type':_0x39775d[_0x2c2057(0x324)],'tableId':_0x4b363c,'filter':null},0x6,0x8)}]}];}),_0x2a3458=[..._0x271d10,..._0x271d10[_0x1b6ef4(0x151)]?[{'type':_0x1b6ef4(0x2b1)}]:[],{'type':_0x1b6ef4(0x3de),'children':_0x2b2210['t'](_0x1b6ef4(0x37b)),'onSelect':()=>_0x3def5c({'type':_0x39775d[_0x1b6ef4(0x300)],'document':eo()},0x4,0x6)},{'type':_0x1b6ef4(0x3de),'children':_0x2b2210['t'](_0x1b6ef4(0x26e)),'onSelect':()=>to(_0x561cb6)[_0x1b6ef4(0x1fb)](_0x513319=>_0x513319&&_0x3def5c({'type':_0x39775d[_0x1b6ef4(0x3d2)],'source':_0x513319[_0x1b6ef4(0x237)],'sourceType':_0x513319[_0x1b6ef4(0x260)],'alt':_0x513319['name'],'displayMode':'cover'},0x4,0x6))},{'type':_0x1b6ef4(0x3de),'children':_0x2b2210['t'](_0x1b6ef4(0x1d2)),'onSelect':()=>{const _0x16bf22=_0x1b6ef4;let _0xeff115=_0x502ff8[_0x16bf22(0x284)]['find'](_0x303b41=>_0x502ff8['tables'][_0x303b41]);_0xeff115&&_0x3def5c({'type':_0x39775d[_0x16bf22(0x474)],'tableId':_0xeff115,'shapeType':_0x25ce73[_0x16bf22(0x1ce)],'shapeData':_0x501502(),'description':_0x2b2210['t'](_0x16bf22(0x1d2))},0x4,0x6);}}],_0x1de466=_0x3b8d0a?_0x4cf899[_0x1b6ef4(0x33d)][_0x3b8d0a]:void 0x0,_0x2b8e39=async()=>{const _0x1cab1c=_0x1b6ef4;let _0x132bf3=_0x44e155[_0x1cab1c(0x2e7)];if(!_0x132bf3)return;let _0x5b8186=_0x132bf3[_0x1cab1c(0x354)];_0x5b8186[_0x1cab1c(0x425)]===_0x5b8186[_0x1cab1c(0x372)]?await _0x5b8186[_0x1cab1c(0x29c)]():await _0x5b8186[_0x1cab1c(0x372)][_0x1cab1c(0x195)]();},_0x424b6c=_0x30fd09||_0x1817fc,_0x25a7a2=_0x6e5a17&&!_0x424b6c;return _0x3c00a1(_0x1b6ef4(0x384),{'ref':_0x44e155,'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x1817fc?_0x1b6ef4(0x317):_0x1b6ef4(0x18b))+_0x1b6ef4(0x2cf),'children':[!_0x424b6c&&_0x3c00a1(_0x1b6ef4(0x38b),{'className':_0x1b6ef4(0x1f1),'children':[_0x414ebe(_0x3c5010,{'className':_0x1b6ef4(0x357)}),_0x414ebe('h2',{'className':_0x1b6ef4(0x32e),'children':_0x4cf899[_0x1b6ef4(0x2a3)]}),_0x414ebe(_0x276888,{'target':{'unitId':_0x1efaba,'objectId':_0x3a0eab(_0x328b35),'objectType':_0x1d0cb1[_0x1b6ef4(0x306)]},'name':_0x4cf899['name'],'commandId':_0x3c4b15['id'],'exists':()=>!!_0x3935cb[_0x1b6ef4(0x40d)](_0x1efaba,_0x328b35)},_0x1efaba+'/'+_0x328b35),_0x414ebe(_0xd9e87c,{'unitId':_0x1efaba}),_0x414ebe(_0x5d2b24,{'type':_0x1b6ef4(0x30b),'size':_0x1b6ef4(0x231),'variant':_0x1b6ef4(0x476),'aria-label':_0x2b2210['t']('bases-dashboard-ui.dashboard.undo'),'disabled':!_0x6e5a17||_0x4a63e5[_0x1b6ef4(0x189)]===0x0,'onClick':()=>_0x10a715[_0x1b6ef4(0x25b)](_0x2cf828['id'])[_0x1b6ef4(0x147)](()=>void 0x0),'children':_0x414ebe(_0x4dc9e7,{})}),_0x414ebe(_0x5d2b24,{'type':_0x1b6ef4(0x30b),'size':'small','variant':_0x1b6ef4(0x476),'aria-label':_0x2b2210['t']('bases-dashboard-ui.dashboard.redo'),'disabled':!_0x6e5a17||_0x4a63e5['redos']===0x0,'onClick':()=>_0x10a715[_0x1b6ef4(0x25b)](_0x40e22e['id'])[_0x1b6ef4(0x147)](()=>void 0x0),'children':_0x414ebe(_0x9c5a81,{})}),_0x414ebe(_0x5d2b24,{'type':_0x1b6ef4(0x30b),'size':'small','variant':'text','aria-label':_0x2b2210['t'](_0x1b6ef4(0x382)),'onClick':()=>_0x2b8e39()[_0x1b6ef4(0x147)](()=>void 0x0),'children':_0x414ebe(_0x552f90,{})}),_0x414ebe(_0x4acc99,{'items':_0x2a3458,'children':_0x3c00a1(_0x5d2b24,{'variant':_0x1b6ef4(0x2c1),'disabled':!_0x6e5a17,'children':[_0x414ebe(_0x2dc2bd,{}),_0x2b2210['t']('bases-dashboard-ui.dashboard.addWidget')]})})]}),_0x3c00a1(_0x1b6ef4(0x384),{'className':_0x1b6ef4(0x472),'children':[_0x414ebe(_0x1b6ef4(0x384),{'className':_0x1b6ef4(0x1f4),'children':_0x414ebe(da,{'dashboard':_0x4cf899,'dragLabel':_0x2b2210['t'](_0x1b6ef4(0x3b1)),'editable':_0x25a7a2,'resizeLabel':_0x2b2210['t'](_0x1b6ef4(0x25e)),'widgetLabel':_0xb1fdc0=>_0x2b2210['t'](ro(_0xb1fdc0['type'])),'selectedWidgetId':_0x25a7a2?_0x3b8d0a:void 0x0,'onSelectWidget':_0x25a7a2?_0x471cbd=>{_0x5131a2(_0x471cbd),_0x471cbd||_0x44e2a8(!0x1);}:void 0x0,'onLayoutsCommit':_0x58e5fe=>{const _0x2a42ec=_0x1b6ef4;let _0x4b162c={..._0x4cf899[_0x2a42ec(0x33d)]};_0x58e5fe['forEach']((_0x28d27f,_0x527255)=>{let _0x3d9992=_0x4b162c[_0x527255];_0x3d9992&&(_0x4b162c[_0x527255]={..._0x3d9992,'layout':_0x28d27f});}),_0x10a715[_0x2a42ec(0x25b)](_0xe5ba16['id'],{'unitId':_0x1efaba,'dashboard':{..._0x4cf899,'widgets':_0x4b162c}})[_0x2a42ec(0x147)](()=>void 0x0);},'renderWidget':_0x5b007e=>_0x414ebe(Za,{'base':_0x253cce,'dashboard':_0x4cf899,'unitId':_0x1efaba,'widget':_0x5b007e,'onChange':_0x21fb3e,'onChartRuntimeChange':_0x489bfb}),'renderWidgetActions':_0x5b82a1=>_0x414ebe(Ya,{'onEdit':()=>{_0x5131a2(_0x5b82a1['id']),_0x44e2a8(!0x0);},'onDelete':()=>{const _0x59e05c=_0x1b6ef4;_0x3b8d0a===_0x5b82a1['id']&&(_0x5131a2(void 0x0),_0x44e2a8(!0x1)),_0x10a715[_0x59e05c(0x25b)](_0x3707f4['id'],{'unitId':_0x1efaba,'dashboardId':_0x328b35,'widgetId':_0x5b82a1['id']})[_0x59e05c(0x147)](()=>void 0x0);}})})}),_0x25a7a2&&_0x2aaa9a&&_0x1de466&&_0x414ebe(Va,{'base':_0x253cce,'chartRuntime':_0x406dae[_0x1b6ef4(0x44b)](_0x1de466['id']),'unitId':_0x1efaba,'widget':_0x1de466,'onChange':_0x21fb3e,'onClose':()=>_0x44e2a8(!0x1),'onSelectBackgroundImage':()=>no(_0xadc272),'onSelectImage':()=>to(_0x561cb6)})]})]});}function Za({base:_0x2bc5ff,dashboard:_0x191c63,onChange:_0x252903,onChartRuntimeChange:_0x594f0b,unitId:_0x440ba5,widget:_0x26d22b}){const _0x54354c=_0x290871;let _0x1a9bb6=_0x50478e(()=>_0x191c63['widgetOrder']['flatMap'](_0x5f2dcd=>{const _0x1c2351=_0x29b7;let _0x235bf4=_0x191c63[_0x1c2351(0x33d)][_0x5f2dcd];return(_0x235bf4==null?void 0x0:_0x235bf4[_0x1c2351(0x183)])===_0x39775d[_0x1c2351(0x324)]&&_0x235bf4[_0x1c2351(0x1b9)]===(_0x1c2351(0x1b9)in _0x26d22b?_0x26d22b[_0x1c2351(0x1b9)]:'')&&_0x235bf4[_0x1c2351(0x42d)]?[_0x235bf4[_0x1c2351(0x42d)]]:[];}),[_0x191c63,_0x26d22b]);switch(_0x26d22b[_0x54354c(0x183)]){case _0x39775d['PivotChart']:return _0x414ebe(zr,{'filters':_0x1a9bb6,'unitId':_0x440ba5,'widget':_0x26d22b,'onRuntimeChange':_0x594f0b});case _0x39775d['TableFilter']:return _0x414ebe(Ea,{'fields':Qa(_0x2bc5ff,_0x26d22b[_0x54354c(0x1b9)]),'filter':_0x26d22b[_0x54354c(0x42d)],'onChange':_0xcd670c=>_0x252903({..._0x26d22b,'filter':_0xcd670c})[_0x54354c(0x147)](()=>void 0x0)});case _0x39775d[_0x54354c(0x300)]:return _0x414ebe(Gr,{'widget':_0x26d22b});case _0x39775d['Image']:return _0x414ebe($a,{'widget':_0x26d22b});case _0x39775d[_0x54354c(0x474)]:return _0x414ebe(kr,{'dashboardId':_0x191c63['id'],'unitId':_0x440ba5,'widget':_0x26d22b});}}function Qa(_0x2129db,_0x3db823){const _0x5ab132=_0x290871;let _0x2b2012=_0x2129db[_0x5ab132(0x18e)]()[_0x5ab132(0x377)][_0x3db823],_0x3192d5=_0x2b2012==null?void 0x0:_0x2b2012[_0x5ab132(0x40f)][_0x5ab132(0x47f)](_0x18be48=>_0x2b2012[_0x5ab132(0x483)][_0x18be48]),_0x4cd844=_0x3192d5?_0x2b2012==null?void 0x0:_0x2b2012['views'][_0x3192d5]:void 0x0;return _0x2b2012&&_0x4cd844?_0x5dcd9e(_0x2b2012,_0x4cd844):[];}function $a({widget:_0x1af4f1}){const _0x464df0=_0x290871;let _0x2f6fd4=_0xe276a8(_0xdb66e),[_0x1a3bb3,_0x2ca5ca]=_0x3f626c(_0x1af4f1['sourceType']===_0x2b3585[_0x464df0(0x320)]?'':_0x1af4f1[_0x464df0(0x237)]);return _0x330c05(()=>{const _0x3852e0=_0x464df0;let _0x301ff4=!0x0;return _0x2f6fd4['getAttachmentUrl'](_0x1af4f1[_0x3852e0(0x237)],_0x1af4f1[_0x3852e0(0x260)])[_0x3852e0(0x1fb)](_0x4c78cd=>{_0x301ff4&&_0x2ca5ca(_0x4c78cd);})[_0x3852e0(0x147)](()=>void 0x0),()=>{_0x301ff4=!0x1;};},[_0x2f6fd4,_0x1af4f1[_0x464df0(0x237)],_0x1af4f1[_0x464df0(0x260)]]),_0x1a3bb3?_0x414ebe(_0x464df0(0x384),{'role':_0x1af4f1['alt']?_0x464df0(0x19c):void 0x0,'aria-label':_0x1af4f1[_0x464df0(0x35c)]||void 0x0,'data-dashboard-image':_0x1af4f1['id'],'className':_0x464df0(0x362),'style':br(_0x1a3bb3,_0x1af4f1['displayMode'])}):null;}function eo(){const _0x4dbd95=_0x290871;let _0x29a223=_0x2900cb(new Set());return{'id':_0x4dbd95(0x360)+_0x89ef13(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x29a223}]},'documentStyle':{}};}function to(_0x39c670){return new Promise(_0x4b10b7=>{const _0xa8a79c=_0x29b7;let _0x2e7135=document[_0xa8a79c(0x437)](_0xa8a79c(0x3d4));_0x2e7135[_0xa8a79c(0x183)]=_0xa8a79c(0x279),_0x2e7135[_0xa8a79c(0x2f3)]=_0xa8a79c(0x36c),_0x2e7135[_0xa8a79c(0x232)](_0xa8a79c(0x464),()=>{const _0x5245b1=_0xa8a79c;var _0x2c5cfb;let _0x1ec08a=(_0x2c5cfb=_0x2e7135[_0x5245b1(0x1bf)])==null?void 0x0:_0x2c5cfb[0x0];_0x1ec08a?_0x39c670[_0x5245b1(0x243)](_0x1ec08a)[_0x5245b1(0x1fb)](_0x3dfb0c=>{const _0x5861cf=_0x5245b1;!_0x3dfb0c[_0x5861cf(0x237)]||_0x3dfb0c[_0x5861cf(0x260)]===void 0x0?_0x4b10b7(null):_0x4b10b7({'name':_0x3dfb0c[_0x5861cf(0x2a3)],'source':_0x3dfb0c[_0x5861cf(0x237)],'sourceType':_0x3dfb0c[_0x5861cf(0x260)]});})[_0x5245b1(0x147)](()=>_0x4b10b7(null)):_0x4b10b7(null);},{'once':!0x0}),_0x2e7135[_0xa8a79c(0x334)]();});}function no(_0xf2e06f){return new Promise(_0x595694=>{const _0xd93570=_0x29b7;let _0x35158a=document[_0xd93570(0x437)](_0xd93570(0x3d4));_0x35158a[_0xd93570(0x183)]='file',_0x35158a[_0xd93570(0x2f3)]=_0xd93570(0x36c),_0x35158a[_0xd93570(0x232)]('change',()=>{const _0x157165=_0xd93570;var _0x3b5626;let _0x5d67a8=(_0x3b5626=_0x35158a[_0x157165(0x1bf)])==null?void 0x0:_0x3b5626[0x0];_0x5d67a8?_0xf2e06f[_0x157165(0x282)](_0x5d67a8)['then'](_0x14f71c=>{const _0x449580=_0x157165;if(!(_0x14f71c!=null&&_0x14f71c[_0x449580(0x237)]))_0x595694(null);else{if(_0x14f71c['base64Cache']){let _0x19de96=new Image();_0x19de96[_0x449580(0x2f2)]=_0x14f71c[_0x449580(0x43f)],_0xf2e06f[_0x449580(0x23c)](_0x14f71c[_0x449580(0x237)],_0x14f71c[_0x449580(0x293)],_0x19de96);}_0x595694({'source':_0x14f71c[_0x449580(0x237)],'sourceType':_0x14f71c[_0x449580(0x293)]});}})[_0x157165(0x147)](()=>_0x595694(null)):_0x595694(null);},{'once':!0x0}),_0x35158a['click']();});}function ro(_0x46537b){const _0xfe0276=_0x290871;switch(_0x46537b){case _0x39775d[_0xfe0276(0x26a)]:return _0xfe0276(0x2fa);case _0x39775d[_0xfe0276(0x324)]:return _0xfe0276(0x296);case _0x39775d[_0xfe0276(0x300)]:return'bases-dashboard-ui.dashboard.text';case _0x39775d['Image']:return _0xfe0276(0x26e);case _0x39775d[_0xfe0276(0x474)]:return _0xfe0276(0x1d2);}}function io(_0x1d1f06){const _0x1d90dd=_0x290871;return(_0x1d1f06==null?void 0x0:_0x1d1f06[_0x1d90dd(0x183)])===_0x3744eb[_0x1d90dd(0x250)]&&typeof _0x1d1f06[_0x1d90dd(0x193)]==_0x1d90dd(0x30e)&&_0x1d1f06[_0x1d90dd(0x193)]!==null&&_0x1d90dd(0x145)in _0x1d1f06['config']&&_0x1d90dd(0x3a5)in _0x1d1f06['config'];}const ao=[{'area':_0x1b52e3[_0x290871(0x40c)],'key':_0x290871(0x245),'label':'bases-dashboard-ui.pivot.filters'},{'area':_0x1b52e3[_0x290871(0x356)],'key':_0x290871(0x18d),'label':'bases-dashboard-ui.pivot.columns'},{'area':_0x1b52e3['Row'],'key':_0x290871(0x281),'label':'bases-dashboard-ui.pivot.rows'},{'area':_0x1b52e3[_0x290871(0x19f)],'key':_0x290871(0x167),'label':_0x290871(0x3e8)}],oo=[{'value':_0x358af4[_0x290871(0x2d0)],'localeKey':_0x290871(0x339)},{'value':_0x358af4['count'],'localeKey':'bases-dashboard-ui.pivot.count'},{'value':_0x358af4[_0x290871(0x1c3)],'localeKey':'bases-dashboard-ui.pivot.countNumbers'},{'value':_0x358af4[_0x290871(0x1db)],'localeKey':_0x290871(0x24c)},{'value':_0x358af4[_0x290871(0x399)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':_0x358af4[_0x290871(0x459)],'localeKey':_0x290871(0x1a3)},{'value':_0x358af4[_0x290871(0x33c)],'localeKey':_0x290871(0x162)},{'value':_0x358af4[_0x290871(0x367)],'localeKey':_0x290871(0x17a)},{'value':_0x358af4[_0x290871(0x21f)],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x358af4['var'],'localeKey':_0x290871(0x203)},{'value':_0x358af4[_0x290871(0x156)],'localeKey':_0x290871(0x321)}];function so(_0x5457c5){const _0xe2f2aa=_0x290871;let {config:_0x40dce7,onChange:_0x5e4fc6,table:_0x2776c5}=_0x5457c5,_0x57349b=_0xe276a8(_0x4b0f72),[_0x59c16b,_0x39807c]=_0x3f626c('fields'),[_0x11642c,_0x1ed6ba]=_0x3f626c(''),[_0xdda122,_0x356536]=_0x3f626c(null),[_0x1e739a,_0x583713]=_0x3f626c(null),[_0x38ea1d,_0x203658]=_0x3f626c(null),[_0xa3978d,_0x178e1e]=_0x3f626c(null),_0x5ac860=_0x3987b(null),_0x2c1198=_0x50478e(()=>_0x2776c5['fieldOrder'][_0xe2f2aa(0x2af)](_0x2a271f=>{const _0x1fb767=_0xe2f2aa;let _0x541ec3=_0x2776c5[_0x1fb767(0x345)][_0x2a271f];return _0x541ec3&&_0x541ec3[_0x1fb767(0x266)]!==!0x0&&_0x541ec3['type']!==_0x5e006f[_0x1fb767(0x41d)]?[_0x541ec3]:[];})[_0xe2f2aa(0x42d)](_0x114457=>_0x114457[_0xe2f2aa(0x2a3)][_0xe2f2aa(0x3da)]()[_0xe2f2aa(0x424)](_0x11642c[_0xe2f2aa(0x29a)]()['toLocaleLowerCase']())),[_0x11642c,_0x2776c5]),_0x234a75=_0x586940=>{const _0x23b339=_0xe2f2aa;let _0x19227d=_0x2abd9d(_0x2776c5,_0x40dce7[_0x23b339(0x145)]);try{_0x586940(_0x19227d),_0x5e4fc6({'pivot':_0x19227d['toJSON']()});}finally{_0x19227d[_0x23b339(0x470)]();}},_0x1b97e2=(_0xe9f26b,_0x26e652)=>{_0xdda122&&(_0x234a75(_0x49351e=>{const _0x49a7a6=_0x29b7;if(_0xdda122[_0x49a7a6(0x3f2)]===_0x49a7a6(0x2db)){let _0x1a546c=_0x49351e[_0x49a7a6(0x325)](_0xdda122['id']),_0x99e5bf=_0x1a546c[_0x49a7a6(0x225)]===_0xe9f26b&&_0x1a546c[_0x49a7a6(0x23e)]<_0x26e652?_0x26e652-0x1:_0x26e652;_0x49351e[_0x49a7a6(0x46b)](_0xdda122['id'],_0xe9f26b,_0x99e5bf);}else go(_0x49351e,_0xdda122['id'],_0xe9f26b,_0x26e652);}),_0x356536(null),_0x583713(null));};return _0x3c00a1(_0xe2f2aa(0x384),{'className':_0xe2f2aa(0x142),'children':[_0x414ebe(_0xbfe45a,{'ariaLabel':_0x57349b['t'](_0xe2f2aa(0x165)),'className':'univer-shrink-0\x20univer-px-4','items':[{'label':_0x57349b['t'](_0xe2f2aa(0x489)),'panelId':_0xe2f2aa(0x456),'value':_0xe2f2aa(0x345)},{'label':_0x57349b['t'](_0xe2f2aa(0x3b4)),'panelId':_0xe2f2aa(0x157),'value':_0xe2f2aa(0x209)}],'value':_0x59c16b,'onChange':_0x39807c}),_0x414ebe(_0xe2f2aa(0x384),{'ref':_0x5ac860,'className':_0x2c3136(_0xe2f2aa(0x285),_0x443bf8),'onDragOver':_0x7fea11=>{const _0x38ea9f=_0xe2f2aa;let _0x13de5a=_0x5ac860[_0x38ea9f(0x2e7)];if(!_0x13de5a)return;let _0x586425=_0x13de5a[_0x38ea9f(0x439)]();_0x7fea11['clientY']<_0x586425[_0x38ea9f(0x392)]+0x30?_0x13de5a[_0x38ea9f(0x17d)]-=0x10:_0x7fea11['clientY']>_0x586425[_0x38ea9f(0x314)]-0x30&&(_0x13de5a[_0x38ea9f(0x17d)]+=0x10);},'children':_0x59c16b===_0xe2f2aa(0x209)?_0x414ebe(ho,{'config':_0x40dce7,'commit':_0x234a75}):_0x3c00a1(_0xe2f2aa(0x384),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x3c00a1(_0xe2f2aa(0x384),{'children':[_0x414ebe(_0xe2f2aa(0x384),{'className':_0xe2f2aa(0x41b),'children':_0x57349b['t'](_0xe2f2aa(0x43e))}),_0x414ebe(_0x448a93,{'allowClear':!0x0,'slot':_0x414ebe(_0x282ad6,{}),'value':_0x11642c,'placeholder':_0x57349b['t'](_0xe2f2aa(0x417)),'onChange':_0x1ed6ba}),_0x414ebe(_0xe2f2aa(0x384),{'className':'univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','children':_0x2c1198['map'](_0x21c2ff=>_0x414ebe(co,{'config':_0x40dce7,'field':_0x21c2ff,'onAdd':_0x13af68=>_0x234a75(_0x335ed9=>go(_0x335ed9,_0x21c2ff['id'],_0x13af68,_0x335ed9['getFieldCountByArea'](_0x13af68))),'onCheckedChange':_0xa4a3cf=>_0x234a75(_0x4ef312=>{const _0x4b436a=_0xe2f2aa;let _0x17ad60=_0x4ef312['getTableFieldsByDataFieldId'](_0x21c2ff['id']);if(!_0xa4a3cf)_0x17ad60[_0x4b436a(0x24e)](_0x74ec46=>_0x4ef312[_0x4b436a(0x17b)](_0x74ec46['getId']()));else{if(_0x17ad60[_0x4b436a(0x151)]===0x0){let _0x57a4ad=vo(_0x21c2ff)?_0x1b52e3[_0x4b436a(0x19f)]:_0x1b52e3[_0x4b436a(0x1c8)];_0x4ef312[_0x4b436a(0x229)](_0x21c2ff['id'],_0x57a4ad);}}}),'onDragStart':()=>_0x356536({'kind':'source','id':_0x21c2ff['id']})},_0x21c2ff['id']))})]}),_0x414ebe('div',{'className':_0xe2f2aa(0x426),'children':ao[_0xe2f2aa(0x3a8)](_0x4a09e9=>_0x414ebe(uo,{'area':_0x4a09e9['area'],'dropTarget':_0x1e739a,'fields':_0x40dce7[_0xe2f2aa(0x145)][_0x4a09e9[_0xe2f2aa(0x29d)]],'label':_0x57349b['t'](_0x4a09e9[_0xe2f2aa(0x1e5)]),'snapshot':_0x40dce7['pivot'],'onDragEnd':()=>{_0x356536(null),_0x583713(null);},'onDragStart':_0x132011=>_0x356536({'kind':_0xe2f2aa(0x2db),'id':_0x132011,'area':_0x4a09e9[_0xe2f2aa(0x225)]}),'onDragOver':_0x478997=>_0x583713({'area':_0x4a09e9[_0xe2f2aa(0x225)],'index':_0x478997}),'onDrop':_0x1a84d0=>_0x1b97e2(_0x4a09e9['area'],_0x1a84d0),'onFilter':_0x203658,'onRemove':_0xcf2282=>_0x234a75(_0x5d5d9b=>_0x5d5d9b[_0xe2f2aa(0x17b)](_0xcf2282)),'onSettings':_0x178e1e},_0x4a09e9['area']))}),_0x38ea1d&&_0x414ebe(po,{'fieldId':_0x38ea1d,'snapshot':_0x40dce7[_0xe2f2aa(0x145)],'table':_0x2776c5,'onCancel':()=>_0x203658(null),'onCommit':(_0x31c0d7,_0x237e1a)=>{_0x234a75(_0x2d6e32=>{const _0x28a49a=_0x29b7;let _0x58b833=_0x2d6e32[_0x28a49a(0x1b6)](_0x38ea1d),_0x3b79bb=(_0x58b833==null?void 0x0:_0x58b833[_0x28a49a(0x184)])??[];_0x2d6e32[_0x28a49a(0x44e)](_0x38ea1d,{'type':_0x101c58[_0x28a49a(0x42a)],'list':_0x31c0d7,'isAll':_0x31c0d7[_0x28a49a(0x151)]===_0x3b79bb[_0x28a49a(0x151)]}),_0x2d6e32['setSortInfo'](_0x38ea1d,_0x237e1a===void 0x0?void 0x0:{'type':_0x237e1a});}),_0x203658(null);}},_0x38ea1d),_0xa3978d&&_0x414ebe(mo,{'field':_0x40dce7[_0xe2f2aa(0x145)][_0xe2f2aa(0x33a)][_0xa3978d],'onCancel':()=>_0x178e1e(null),'onCommit':(_0x4e0606,_0x2b7341,_0x48d20a)=>{_0x234a75(_0x50c601=>{const _0x1669c2=_0x29b7;_0x50c601[_0x1669c2(0x45f)](_0xa3978d,_0x4e0606),_0x50c601['setSubtotalType'](_0xa3978d,_0x2b7341),_0x50c601['setFieldFormat'](_0xa3978d,_0x48d20a||void 0x0);}),_0x178e1e(null);}},_0xa3978d)]})})]});}function co(_0x504e0e){const _0x2209a7=_0x290871;let {config:_0x58f6eb,field:_0x156ac1,onAdd:_0x586ea6,onCheckedChange:_0x5b58f5,onDragStart:_0x2f53a1}=_0x504e0e,_0x1b3625=_0xe276a8(_0x4b0f72),_0x3bcd80=[...Object['values'](_0x58f6eb[_0x2209a7(0x145)][_0x2209a7(0x349)]),...Object[_0x2209a7(0x1ef)](_0x58f6eb[_0x2209a7(0x145)]['measure'])][_0x2209a7(0x331)](_0x321a99=>_0x321a99['dataFieldId']===_0x156ac1['id']),_0x53f0ad=ao[_0x2209a7(0x3a8)](_0x5b58d4=>({'type':_0x2209a7(0x3de),'children':_0x1b3625['t'](yo(_0x5b58d4[_0x2209a7(0x225)])),'onSelect':()=>_0x586ea6(_0x5b58d4[_0x2209a7(0x225)])}));return _0x3c00a1(_0x2209a7(0x384),{'draggable':!0x0,'className':_0x2209a7(0x3dd),'onDragStart':_0x2f53a1,'children':[_0x414ebe(_0x4cfa50,{'className':_0x2209a7(0x27e)}),_0x414ebe(_0x283511,{'checked':_0x3bcd80,'onChange':_0x48c340=>_0x5b58f5(!!_0x48c340)}),_0x414ebe(lo,{'field':_0x156ac1}),_0x414ebe(_0x2209a7(0x415),{'className':_0x2209a7(0x219),'children':_0x156ac1[_0x2209a7(0x2a3)]}),_0x414ebe(_0x4acc99,{'align':_0x2209a7(0x375),'items':_0x53f0ad,'children':_0x414ebe(_0x2209a7(0x415),{'className':_0x2209a7(0x48f),'children':_0x414ebe(_0xed8c69,{})})})]});}function _0x5bbc(){const _0x55a1e6=['pareto','Text','bases-dashboard-ui.dashboardInspector.backgroundColor','univer-mb-3\x20univer-text-sm\x20univer-font-medium','subItem','packageName','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','BaseDashboard','fontSizeMode','bases-dashboard-ui.pivot.addToFilter','removeEventListener','pattern','button','defineProperty','print','object','format','data:','onDrop','operand','backgroundImage','bottom','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','operator','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','onDragOver','LESS_THAN','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','split','39462iURBlS','legend','bases-dashboard-ui.chart.common.legend','indicatorLine','UUID','bases-dashboard-ui.pivot.variancePopulation','getImageSourceCache','replaceChildren','TableFilter','getFieldPositionInfoById','bases-dashboard-ui.operators.lessThanOrEqual','currentColor','GrandTotal','border','stringify','set','getPresentation','preventDefault','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','bases-dashboard-ui.pivot.calculationFailed','Checkbox','some','Style','bases-dashboard-ui.pivot.defaultName','click','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.pivot.numberFormat','bases-dashboard-ui.dashboardInspector.reset','conditions','bases-dashboard-ui.pivot.sum','measure','depthAxis','product','widgets','onFilter','right','Person','blank','dom','currentTheme$','body','fields','markReady','bases-dashboard-ui.pivot.pageDirection','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','dimension','isHeader','bases-dashboard-ui.pivot.name','univer-cursor-grab','bases-dashboard-ui.dashboardInspector.delete','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','headerMap','univer-grid\x20univer-gap-4','contains','bases-dashboard-ui.dashboardInspector.autoFit','isTopTotal','ownerDocument','allSeriesStyle','Column','univer-size-5\x20univer-text-primary-600','call','setLayout','univer-w-full','border-box','alt','bases-dashboard-ui.pivot.chartAndTable','dashboardOrder','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','dashboard-text-','width','univer-h-full\x20univer-w-full\x20univer-bg-transparent','table','bases-dashboard-ui.dashboardInspector.newCondition','bases-dashboard-ui.dashboard.defaultName','appearance','stdDev','univer-text-sm','univer-pointer-events-auto\x20univer-opacity-100','sortInfo','Candlestick','image/*','AND','currentTarget','onSettings','pointermove','UpdatedAt','documentElement','bases-dashboard-ui.pivot.grandTotal','bases-dashboard-ui.dashboardInspector.originalSize','end','USD','tables','getId','bases-dashboard-ui.dashboardInspector.style','bases-dashboard-ui.pivot.selectAll','bases-dashboard-ui.dashboard.text','Histogram','(prefers-reduced-motion:\x20reduce)','univer-mb-2\x20univer-border-collapse\x20univer-text-sm','16853ModnmU','bases-dashboard-ui.dashboardInspector.general','page:','bases-dashboard-ui.dashboard.fullScreen','univer-cursor-grabbing','div','chartId','grandTotal','bases-dashboard-ui.chart.section.wordCloud','round','lastRow','dataStream','header','bases-dashboard-ui.chart.section.relation','funnel','mode','setConfig','boxSizing','univer-flex\x20univer-justify-end\x20univer-gap-2','top','dataView','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','itemTypes','clientY','LineAndArea','bases-dashboard-ui.chart.common.trendline','max','matchMedia','darkMode$','GeneralSeries','univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','bases-dashboard-ui.dashboardInspector.formula','Rating','bases-dashboard-ui.pivot.dropFieldsHere','lastCol','bases-dashboard-ui.chart.common.chartStyle','Axes','bases-dashboard-ui.pivot.clearFilter','chart','bases-dashboard-ui.pivot.descending','getFieldCountByArea','map','row','bases-dashboard-ui.dashboardInspector.right','getResult','startScrollTop','getOptions','general','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','lineAndArea','bases-dashboard-ui.dashboardInspector.dragWidget','orient','clientHeight','bases-dashboard-ui.pivot.options','pointerY','Currency','custom','bases-dashboard-ui.pivot.acrossThenDown','bases-dashboard-ui.dashboard.delete','bases-dashboard-ui.dashboard.add','focusUnit','bases-dashboard-ui.dashboardInspector.number','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','getUnit','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','formulaBinding','bases-dashboard-ui.chart.chartTypes.area','UNIVER_BASE','defaultPrevented','onDragEnd','setOptions','currency','shapeData','bases-dashboard-ui.dashboardInspector.left','setSubtotalType','activeRuntimeModel','univer-border-gray-200\x20dark:!univer-border-gray-700','valueIndex','gray','subUnitId','dashboard-widget-','NOT_CONTAINS','refreshChartRuntime','Image','Subtotal','input','bases-dashboard-ui.chart.common.chartAndAxisTitles','\x20has\x20no\x20render\x20config.','bases-dashboard-ui.chart.common.customize','bases-dashboard-ui.dashboard.widgetActions','bases-dashboard-ui.pivot.downThenAcross','toLocaleLowerCase','bases-dashboard-ui.pivot.ascending','aside','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','item','keydown','Progress','Sunburst','documentStyle','subscribe','fit','bases-dashboard-ui.chart.chartTypes.line','bases-dashboard-ui.pivot.bottom','function','bases-dashboard-ui.pivot.values','minmax(0,\x201fr)','doc','bases-dashboard-ui.dashboardInspector.uploadImage','visibilityState','valuePosition','_element','bases-dashboard-ui.dashboardInspector.center','link','bases-dashboard-ui.pivot.repeatRowLabels','kind','bases-dashboard-ui.operators.after','bases-dashboard-ui.pivot.layoutTabular','Pareto','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','rightY','displayMode','change$','bases-dashboard-ui.pivot.chartConfiguration','getChartRuntime','getResource','base-pivot-chart-configuration','isConnected','syncLayout','dataModel','pageWrap','LESS_THAN_OR_EQUAL','bases-dashboard-ui.chart.section.chord','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','_injector','indexOf','univer-mx-4\x20univer-mt-4\x20univer-shrink-0','9934582EoliJs','data','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','Filter','getDashboard','lineStrokeType','viewOrder','dataset','waterfall.negative','bases-dashboard-ui.chart.section.paretoLine','repeat','series','span','Line','bases-dashboard-ui.pivot.searchFields','bases-dashboard-ui.pivot.filters','IndicatorLine','constructor','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','headerRowCount','RecordId','scrollHeight','bases-dashboard-ui.pivot.rows','HorizontalAxis','univer-bg-transparent\x20dark:!univer-bg-transparent','1.5.0','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','includes','fullscreenElement','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.pivot.layoutCompact','30744360TqyORc','ManualFilter','bases-dashboard-ui.chart.common.rightVerticalAxis','[data-dashboard-widget]','filter','select','bases-dashboard-ui.dashboardInspector.currency','bases-dashboard-ui.dashboardInspector.decimalPlaces','dataSource','rowCount','isFinite','bases-dashboard-ui.chart.section.gauge','push','symbol','createElement','chart-and-table','getBoundingClientRect','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','baseChartDataAnimation','title','bases-dashboard-ui.pivot.sourceFields','base64Cache','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','PieStyle','stopPropagation','closest','disposeWithMe','filterInfo','bases-dashboard-ui.pivot.dataSource','parentElement','showColSubtotal','auto','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','get','clientWidth','colView','setLabelFilterInfo','labelId','base-dashboard-pivot-chart-','description','univer-bg-gray-0\x20dark:!univer-bg-gray-900','pipe','bases-dashboard-ui.dashboard.deleteWidget','bases-dashboard-ui.chart.common.series','base-pivot-fields','defaultValue','color','min','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','bases-dashboard-ui.dashboardInspector.clear','height','middle','univer-flex-1','renameField','Waterfall','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','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-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','change','rootContainerElement','onDragStart','textColor','univer-max-h-40','IS_NOT','bases-dashboard-ui.dashboardInspector.textSize','updateFieldPosition','direction$','shapeType','transparent','bases-dashboard-ui.operators.is','dispose','unsubscribe','univer-flex\x20univer-min-h-0\x20univer-flex-1','univer-mt-2\x20univer-w-full','FormulaShape','number','text','bases-dashboard-ui.dashboard.new','Series','bases-dashboard-ui.chart.section.radar','univer-grid\x20univer-gap-2\x20univer-p-3','Gauge','onMove','widgetOrder','entries','find','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','bases-dashboard-ui.dashboardInspector.textColor','bases-dashboard-ui.chart.chartTypes.','views','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','univer-flex','toDate','\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','segmented','bases-dashboard-ui.pivot.fields','fieldId','localeKey','bases-dashboard-ui.dashboardInspector.close','bases-dashboard-ui.pivot.repeatColumnLabels','bases-dashboard-ui.dashboard.section','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','Bubble','repeatRowLabels','register','\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','WaterfallSeries','presentation','Escape','view','univer-flex\x20univer-min-h-full\x20univer-flex-col','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','bases-dashboard-ui.dashboardInspector.loading','pivot','grouped','catch','style','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','1027854aYSECk','version','tableFieldId','rowType','YYYY-MM-DD','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','univer-grid\x20univer-gap-4\x20univer-p-4','length','bases-dashboard-ui.pivot.blank','univer-flex\x20univer-flex-col','pivotViewId','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','varp','base-pivot-options','bases-dashboard-ui.dashboardInspector.grouped','bases-dashboard-ui.dashboardInspector.backgroundImage','dashboards','ChartAndAxisTitles','releaseChartRuntime','center','bases-dashboard-ui.operators.isEmpty','GREATER_THAN','univer-size-8\x20univer-p-0\x20univer-text-red-500','ParetoLineSeries','bases-dashboard-ui.pivot.product','base-pivot-chart-style','bases-dashboard-ui.chart.section.candlestick','bases-dashboard-ui.pivot.pivotConfiguration','bases-dashboard-ui.dashboardInspector.currencyCode','valueFields','checkMounted','resizeDirection','backgroundColor','Sankey','bases-dashboard-ui.chart.section.histogram','floor','bases-dashboard-ui.dashboard.editWidget','bases-dashboard-ui.dashboardInspector.dataSource','has','dataAggregation','#,##0','setCurrentUnitForType','NumberFormat','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','isSubtotal','compact','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','bases-dashboard-ui.pivot.stdDev','removeField','bases-dashboard-ui.pivot.description','scrollTop','univer-shrink-0\x20univer-px-4','bases-dashboard-ui.operators.greaterThan','bases-dashboard-ui.chart.section.paretoBar','5266412RQHYOl','pageView','type','items','wordCloud','Legend','Area','univer-mt-2','undos','bases-dashboard-ui.dashboardInspector.replaceImage','univer-relative\x20univer-z-10','matches','columnFields','getSnapshot','univer-relative\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-50\x20dark:univer-bg-gray-950','bases-dashboard-ui.pivot.filterField','bases-dashboard-ui.chart.waterfall.subtotal','SingleSelect','config','getValueIndex','requestFullscreen','Number','dashboard-chart-style','error','bases-dashboard-ui.chart.section.gridlinesAndTicks','IS_EMPTY','bases-dashboard-ui.chart.section.funnel','img','bases-dashboard-ui.operators.before','bases-dashboard-ui.chart.common.switchRowColumn','Value','Chord','observe','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','bases-dashboard-ui.pivot.min','clientX','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','bases-dashboard-ui.chart.common.horizontalAxis','fontSize','rowView','IS_NOT_EMPTY','GridlinesAndTicks','section','prototype','MultipleGrandTotal','MultiSelect','snapshot','bases-dashboard-ui.pivot.addToValue','bases-dashboard-ui.dashboardInspector.percent','fill','decorate','contain','hidden','getDataFieldByTableId','renderTransition','CONTAINS','tableId','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','waterfall.positive','45VTGqjk','toPrimitive','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','files','children','flex-end','value','countNums','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','radar','formula','_localeService','Row','0\x200','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','descending','2408104gfCybQ','model','RoundRect','univer-truncate','univer-w-24','RightVerticalAxis','bases-dashboard-ui.dashboard.formulaShape','barStyle','group','outline','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','formatMap','target','bases-dashboard-ui.chart.common.heatmap','bases-dashboard-ui.pivot.cancel','average','icon','base-pivot-chart-setup','\x20/\x20','bases-dashboard-ui.mobile.permissions','result','createChartInstance','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','column:','_createContext','label','date','isArray','acquireChartRuntime','waterfallStyle','setSortInfo','Heatmap','chartRowDirection','ParetoBarSeries','move','values','bases-dashboard-ui.pivot.layoutOutline','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','trendline','axis','univer-min-w-0\x20univer-flex-1','WordCloud','alignment','_config','univer-mx-auto\x20univer-size-6','bases-dashboard-ui.operators.notContains','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','then','univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','url(','var','univer-grid\x20univer-gap-3','shapeText','General','bases-dashboard-ui.pivot.showRowGrandTotal','bases-dashboard-ui.pivot.variance','bases-dashboard-ui.pivot.columns','ensureMount','config$','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.dashboardInspector.repeat','options','bases-dashboard-ui.chart.','Funnel','bases-dashboard-ui.dashboardInspector.data','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','join','SolidLine','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','blur','getCurrentTheme','univer-w-full\x20univer-justify-start','univer-flex\x20univer-flex-col\x20univer-gap-4','resolve','tbody','univer-w-36','startX','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-flex\x20univer-items-center\x20univer-gap-2','chartType','Treemap','innerWidth','stdDevp','rowSpan','cancel','colCount','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','bases-dashboard-ui.chart.common.setup','area','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','Data','bases-dashboard-ui.dashboardInspector.alignment','addFieldWithSourceId','onCommit','bases-dashboard-ui.dashboard.redo','bases-dashboard-ui.pivot.valuePosition','pageRows','default','bases-dashboard-ui.operators.contains','displayName','small','addEventListener','canView','slice','getImage','bases-dashboard-ui.pivot.confirm','source','baseChartDataAnimationDuration','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','initial','_configService','addImageSourceCache','bases-dashboard-ui.chart.section.treemap','index','column','pointerup','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','975jYDQND','saveAttachment','Positive','filterFields','disconnect','info','univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','replace','every','bases-dashboard-ui.pivot.average','bases-dashboard-ui.pivot.count','forEach','bases-dashboard-ui.pivot.display','Pivot','dashboard-','onCancel','conjunction','context','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','presentationChanged$','cover','original','Boxplot','size','executeCommand','base-pivot-table-configuration','px\x20solid\x20','bases-dashboard-ui.dashboard.resizeWidget','bases-dashboard-ui.operators.isNot','sourceType','percent','numberFormat','Group','pointerX','bind','system','paragraphId','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','@univerjs-pro/bases-dashboard-ui','PivotChart','string','ascending','base-pivot-chart-','bases-dashboard-ui.dashboard.image','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','document','bases-dashboard-ui.pivot.layout','bases-dashboard-ui.dashboardInspector.numberFormat','baseOn','bases-dashboard-ui.chart.section.indicatorLine','bases-dashboard-ui.pivot.calculating','bases-dashboard-ui.pivot.fieldSettings','list','bases-dashboard-ui.dashboardInspector.selectOption','file','bases-dashboard-ui.operators.greaterThanOrEqual','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.chart.common.verticalAxis','getRect','univer-text-gray-400','fullscreenchange','thead','rowFields','saveImage','ChartStyle','tableOrder','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.removeField','renderRevision','bases-dashboard-ui.pivot.displayName','bases-dashboard-ui.dashboardInspector.editFormula','titles','borderRadius','Date','getOwnPropertyDescriptor','corner:','markNotReady','AFTER','univer-flex\x20univer-gap-2','imageSourceType','toUpperCase','bases-dashboard-ui.pivot.stdDevPopulation','bases-dashboard-ui.dashboard.tableFilter','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','subtotal','trim','redos','exitFullscreen','key','bases-dashboard-ui.chart.section.sunburst','columnSpan','article','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','Relation','name','bases-dashboard-ui.chart.common.editChart','onReady','bases-dashboard-ui.pivot.chartOnly','count','heatmap','bases-dashboard-ui.pivot.max','isBottomTotal','scrollWidth','bases-dashboard-ui.chart.section.pie','showRowSubtotal','univer-text-sm\x20univer-font-medium','flatMap','Pie','separator','fillType','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','getRenderColor','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','true','BASE_DASHBOARD_UI_PLUGIN','bases-dashboard-ui.chart.section.waterfall','Radar','from','bases-dashboard-ui.dashboardInspector.removeImage','showColGrandTotal','2PYojae','bases-dashboard-ui.dashboardInspector.sourceUnavailable','showRowGrandTotal','getTableFieldsByDataFieldId','primary','createRenderInput','\x20/\x20span\x20','univer-text-right','bases-dashboard-ui.pivot.addToRow','waterfall','layout','bases-dashboard-ui.pivot.top','Trendline','destructive','createDomChartInstance','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','bases-dashboard-ui.dashboardInspector.description','GREATER_THAN_OR_EQUAL','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','sum','dashboard-chart-setup','onRemove','bases-dashboard-ui.pivot.showRowSubtotal','bases-dashboard-ui.pivot.countNumbers','bases-dashboard-ui.mobile.moveDown','decimalPlaces','None','bases-dashboard-ui.dashboardInspector.custom','cumulativeLineStyle','bases-dashboard-ui.dashboard.configure','field','_chartThemeService','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','updateValuePosition','pageOverThenDown','univer-size-4','radius','rightYAxis','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','textStyle','CreatedAt','add','current','univer-m-3','tabular','bases-dashboard-ui.pivot.showColumnSubtotal','bases-dashboard-ui.mobile.moveUp','onStarting','undoRedoStatus$','startY','permissionPointUpdate$','bases-dashboard-ui.pivot.rowSubtotalPosition','bases-dashboard-ui.dashboardInspector.cover','src','accept','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','VerticalAxis','bases-dashboard-ui.dashboardInspector.contain','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','setStyle','left','bases-dashboard-ui.dashboard.pivotChart','bases-dashboard-ui.dashboardInspector.editData','Dom','\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','onMoveDown'];_0x5bbc=function(){return _0x55a1e6;};return _0x5bbc();}function lo({field:_0x5ca589}){const _0x2879c6=_0x290871;return vo(_0x5ca589)?_0x414ebe(_0x15cd07,{'className':_0x2879c6(0x27e)}):_0x5ca589[_0x2879c6(0x183)]===_0x5e006f[_0x2879c6(0x28d)]||_0x5ca589[_0x2879c6(0x183)]===_0x5e006f[_0x2879c6(0x2e5)]||_0x5ca589[_0x2879c6(0x183)]===_0x5e006f[_0x2879c6(0x371)]?_0x414ebe(_0x2ac587,{'className':_0x2879c6(0x27e)}):_0x414ebe(_0x277b88,{'className':_0x2879c6(0x27e)});}function uo(_0x54b379){const _0x5d2c86=_0x290871;let {area:_0x25c937,dropTarget:_0x241772,fields:_0x56d1fe,label:_0x46b99a,snapshot:_0x3b5c06}=_0x54b379,_0xddbfc=_0xe276a8(_0x4b0f72);return _0x3c00a1(_0x5d2c86(0x1ab),{'className':_0x2c3136(_0x5d2c86(0x404),_0x434c98),'onDragOver':_0x44f70c=>{const _0x3d9898=_0x5d2c86;_0x44f70c[_0x3d9898(0x32d)](),_0x54b379[_0x3d9898(0x318)](_0x56d1fe[_0x3d9898(0x151)]);},'onDrop':_0x36fabb=>{const _0x42e8ba=_0x5d2c86;_0x36fabb['preventDefault'](),_0x54b379[_0x42e8ba(0x311)]((_0x241772==null?void 0x0:_0x241772[_0x42e8ba(0x225)])===_0x25c937?_0x241772['index']:_0x56d1fe[_0x42e8ba(0x151)]);},'children':[_0x414ebe('div',{'className':_0x5d2c86(0x1c4),'children':_0x46b99a}),_0x3c00a1(_0x5d2c86(0x384),{'className':_0x5d2c86(0x153),'children':[_0x56d1fe[_0x5d2c86(0x3a8)]((_0x3e52ab,_0x1cc58c)=>{const _0x2074af=_0x5d2c86;let _0x2871f9=_0x3b5c06[_0x2074af(0x349)][_0x3e52ab]??_0x3b5c06[_0x2074af(0x33a)][_0x3e52ab];if(!_0x2871f9)return null;let _0xc6c7b9=(_0x241772==null?void 0x0:_0x241772[_0x2074af(0x225)])===_0x25c937&&_0x241772[_0x2074af(0x23e)]===_0x1cc58c;return _0x3c00a1('div',{'onDragOver':_0x4fd587=>{const _0x524579=_0x2074af;_0x4fd587[_0x524579(0x32d)](),_0x4fd587[_0x524579(0x442)]();let _0x176a01=_0x4fd587[_0x524579(0x36e)][_0x524579(0x439)]();_0x54b379[_0x524579(0x318)](_0x1cc58c+ +(_0x4fd587[_0x524579(0x396)]>_0x176a01['top']+_0x176a01[_0x524579(0x45c)]/0x2));},'onDrop':_0x3d6303=>{const _0x29bdc7=_0x2074af;_0x3d6303[_0x29bdc7(0x32d)](),_0x3d6303[_0x29bdc7(0x442)](),_0x54b379[_0x29bdc7(0x311)]((_0x241772==null?void 0x0:_0x241772[_0x29bdc7(0x225)])===_0x25c937?_0x241772[_0x29bdc7(0x23e)]:_0x1cc58c);},'children':[_0xc6c7b9&&_0x414ebe(_0x2074af(0x384),{'className':_0x2074af(0x1be)}),_0x414ebe(fo,{'area':_0x25c937,'field':_0x2871f9,'onDragEnd':_0x54b379['onDragEnd'],'onDragStart':()=>_0x54b379['onDragStart'](_0x3e52ab),'onFilter':()=>_0x54b379[_0x2074af(0x33e)](_0x3e52ab),'onRemove':()=>_0x54b379[_0x2074af(0x2d2)](_0x3e52ab),'onSettings':()=>_0x54b379[_0x2074af(0x36f)](_0x3e52ab)})]},_0x3e52ab);}),(_0x241772==null?void 0x0:_0x241772[_0x5d2c86(0x225)])===_0x25c937&&_0x241772[_0x5d2c86(0x23e)]===_0x56d1fe[_0x5d2c86(0x151)]&&_0x414ebe(_0x5d2c86(0x384),{'className':_0x5d2c86(0x1be)}),_0x56d1fe[_0x5d2c86(0x151)]===0x0&&_0x414ebe('div',{'className':_0x5d2c86(0x178),'children':_0xddbfc['t'](_0x5d2c86(0x3a0))})]})]});}function fo(_0x11eecc){const _0x3e0c39=_0x290871;let _0x1fcd16=_0xe276a8(_0x4b0f72),_0x3c3f7c=_0x11eecc[_0x3e0c39(0x225)]===_0x1b52e3['Value'],_0x430238=[{'type':_0x3e0c39(0x3de),'children':_0x1fcd16['t'](_0x3e0c39(0x287)),'onSelect':_0x11eecc[_0x3e0c39(0x2d2)]},{'type':_0x3e0c39(0x3de),'children':_0x1fcd16['t'](_0x3c3f7c?_0x3e0c39(0x276):_0x3e0c39(0x190)),'onSelect':_0x3c3f7c?_0x11eecc[_0x3e0c39(0x36f)]:_0x11eecc[_0x3e0c39(0x33e)]}];return _0x3c00a1(_0x3e0c39(0x384),{'draggable':!0x0,'className':_0x3e0c39(0x286),'onDragEnd':_0x11eecc[_0x3e0c39(0x3c4)],'onDragStart':_0x11eecc[_0x3e0c39(0x466)],'children':[_0x414ebe(_0x4cfa50,{'className':_0x3e0c39(0x27e)}),_0x414ebe(_0x9a071a,{'title':_0x11eecc[_0x3e0c39(0x2db)][_0x3e0c39(0x230)],'children':_0x414ebe(_0x3e0c39(0x415),{'className':_0x3e0c39(0x219),'children':_0x11eecc['field'][_0x3e0c39(0x230)]})}),_0x414ebe(_0x4acc99,{'align':_0x3e0c39(0x375),'items':_0x430238,'children':_0x414ebe(_0x3e0c39(0x415),{'className':_0x3e0c39(0x48f),'children':_0x414ebe(_0xed8c69,{})})})]});}function po(_0x1b0e9e){const _0x1f6a59=_0x290871;var _0x1840ee,_0x23dbe2;let _0x1b7f9a=_0xe276a8(_0x4b0f72),{format:_0x41e1ac,items:_0x5a8573,itemTypes:_0xca19a7}=_0x50478e(()=>{const _0xf5a2ce=_0x29b7;let _0x5bd63e=_0x2abd9d(_0x1b0e9e[_0xf5a2ce(0x363)],_0x1b0e9e[_0xf5a2ce(0x1af)]);try{let _0x556b18=_0x5bd63e[_0xf5a2ce(0x1b6)](_0x1b0e9e[_0xf5a2ce(0x48a)]);return{'format':_0x556b18==null?void 0x0:_0x556b18[_0xf5a2ce(0x30f)],'items':[...(_0x556b18==null?void 0x0:_0x556b18[_0xf5a2ce(0x184)])??[]],'itemTypes':[...(_0x556b18==null?void 0x0:_0x556b18[_0xf5a2ce(0x395)])??[]]};}finally{_0x5bd63e[_0xf5a2ce(0x470)]();}},[_0x1b0e9e[_0x1f6a59(0x48a)],_0x1b0e9e['snapshot'],_0x1b0e9e[_0x1f6a59(0x363)]]),_0x121bb7=(_0x1840ee=_0x1b0e9e[_0x1f6a59(0x1af)][_0x1f6a59(0x349)][_0x1b0e9e[_0x1f6a59(0x48a)]])==null?void 0x0:_0x1840ee['filterInfo'],[_0x1756aa,_0x2bcd59]=_0x3f626c((_0x121bb7==null?void 0x0:_0x121bb7['type'])===_0x101c58[_0x1f6a59(0x42a)]?_0x121bb7['list']:_0x5a8573),[_0x4eb572,_0x2be111]=_0x3f626c((_0x23dbe2=_0x1b0e9e[_0x1f6a59(0x1af)][_0x1f6a59(0x349)][_0x1b0e9e[_0x1f6a59(0x48a)]])==null||(_0x23dbe2=_0x23dbe2[_0x1f6a59(0x36a)])==null?void 0x0:_0x23dbe2[_0x1f6a59(0x183)]),_0x504204=_0x1756aa[_0x1f6a59(0x151)]===_0x5a8573[_0x1f6a59(0x151)];return _0x3c00a1(_0x1f6a59(0x1ab),{'className':_0x2c3136('univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900',_0x434c98),'children':[_0x414ebe('div',{'className':_0x1f6a59(0x302),'children':_0x1b7f9a['t'](_0x1f6a59(0x190))}),_0x3c00a1('div',{'className':'univer-flex','children':[_0x3c00a1(_0x5d2b24,{'className':'univer-flex-1','variant':_0x4eb572===_0x34bdeb['ascending']?_0x1f6a59(0x2c1):_0x1f6a59(0x22e),'onClick':()=>_0x2be111(_0x34bdeb[_0x1f6a59(0x26c)]),'children':[_0x414ebe(_0x16058f,{}),_0x1b7f9a['t'](_0x1f6a59(0x3db))]}),_0x3c00a1(_0x5d2b24,{'className':_0x1f6a59(0x45e),'variant':_0x4eb572===_0x34bdeb[_0x1f6a59(0x1cb)]?_0x1f6a59(0x2c1):_0x1f6a59(0x22e),'onClick':()=>_0x2be111(_0x34bdeb[_0x1f6a59(0x1cb)]),'children':[_0x414ebe(_0x39dc4f,{}),_0x1b7f9a['t'](_0x1f6a59(0x3a6))]})]}),_0x3c00a1(_0x1f6a59(0x384),{'className':'univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','children':[_0x3c00a1(_0x1f6a59(0x1e5),{'className':_0x1f6a59(0x223),'children':[_0x414ebe(_0x283511,{'checked':_0x504204,'indeterminate':_0x1756aa[_0x1f6a59(0x151)]>0x0&&!_0x504204,'onChange':()=>_0x2bcd59(_0x504204?[]:_0x5a8573)}),_0x1b7f9a['t'](_0x1f6a59(0x37a))]}),_0x5a8573[_0x1f6a59(0x3a8)]((_0x536b3e,_0x3a8c73)=>_0x3c00a1(_0x1f6a59(0x1e5),{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x414ebe(_0x283511,{'checked':_0x1756aa['includes'](_0x536b3e),'onChange':()=>_0x2bcd59(_0x1bece1=>_0x1bece1[_0x1f6a59(0x424)](_0x536b3e)?_0x1bece1[_0x1f6a59(0x42d)](_0x7bfab4=>_0x7bfab4!==_0x536b3e):[..._0x1bece1,_0x536b3e])}),_0x414ebe(_0x1f6a59(0x415),{'className':_0x1f6a59(0x1cf),'children':_o(_0x536b3e,_0xca19a7[_0x3a8c73],_0x41e1ac,_0x1b7f9a['t'](_0x1f6a59(0x152)))})]},_0x536b3e))]}),_0x3c00a1(_0x1f6a59(0x384),{'className':_0x1f6a59(0x2b3),'children':[_0x414ebe(_0x5d2b24,{'variant':_0x1f6a59(0x3f0),'onClick':()=>_0x1b0e9e[_0x1f6a59(0x22a)](_0x5a8573,_0x4eb572),'children':_0x1b7f9a['t'](_0x1f6a59(0x3a4))}),_0x3c00a1(_0x1f6a59(0x384),{'className':_0x1f6a59(0x292),'children':[_0x414ebe(_0x5d2b24,{'onClick':_0x1b0e9e[_0x1f6a59(0x252)],'children':_0x1b7f9a['t'](_0x1f6a59(0x1da))}),_0x414ebe(_0x5d2b24,{'variant':_0x1f6a59(0x2c1),'disabled':_0x1756aa[_0x1f6a59(0x151)]===0x0,'onClick':()=>_0x1b0e9e[_0x1f6a59(0x22a)](_0x1756aa,_0x4eb572),'children':_0x1b7f9a['t'](_0x1f6a59(0x236))})]})]})]});}function mo(_0x191ca8){const _0x3cf5b5=_0x290871;var _0x497b61,_0x4945ed,_0x2e8e1d;let _0x231189=_0xe276a8(_0x4b0f72),[_0x3f7512,_0xe18817]=_0x3f626c(((_0x497b61=_0x191ca8[_0x3cf5b5(0x2db)])==null?void 0x0:_0x497b61[_0x3cf5b5(0x230)])??''),[_0x17ee69,_0x487fde]=_0x3f626c(((_0x4945ed=_0x191ca8[_0x3cf5b5(0x2db)])==null?void 0x0:_0x4945ed[_0x3cf5b5(0x299)])??_0x358af4[_0x3cf5b5(0x2d0)]),[_0xea6b73,_0x57288a]=_0x3f626c(((_0x2e8e1d=_0x191ca8[_0x3cf5b5(0x2db)])==null?void 0x0:_0x2e8e1d[_0x3cf5b5(0x30f)])??'');return _0x191ca8['field']?_0x3c00a1('section',{'className':_0x2c3136('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',_0x434c98),'children':[_0x414ebe(_0x3cf5b5(0x384),{'className':_0x3cf5b5(0x2ae),'children':_0x231189['t'](_0x3cf5b5(0x276))}),_0x3c00a1(_0x3cf5b5(0x1e5),{'className':_0x3cf5b5(0x3f6),'children':[_0x231189['t'](_0x3cf5b5(0x289)),_0x414ebe(_0x448a93,{'value':_0x3f7512,'onChange':_0xe18817})]}),_0x3c00a1(_0x3cf5b5(0x1e5),{'className':_0x3cf5b5(0x3f6),'children':[_0x231189['t']('bases-dashboard-ui.pivot.summarizeBy'),_0x414ebe(_0x296606,{'value':String(_0x17ee69),'options':oo['map'](_0x422ccd=>({'value':String(_0x422ccd[_0x3cf5b5(0x1c2)]),'label':_0x231189['t'](_0x422ccd['localeKey'])})),'onChange':_0x18caff=>{const _0x5cd6f5=_0x3cf5b5;let _0xfc1e84=oo['find'](_0xd6f134=>String(_0xd6f134[_0x5cd6f5(0x1c2)])===_0x18caff);_0xfc1e84&&_0x487fde(_0xfc1e84[_0x5cd6f5(0x1c2)]);}})]}),_0x3c00a1('label',{'className':_0x3cf5b5(0x3f6),'children':[_0x231189['t']('bases-dashboard-ui.pivot.numberFormat'),_0x414ebe(_0x448a93,{'value':_0xea6b73,'onChange':_0x57288a})]}),_0x3c00a1(_0x3cf5b5(0x384),{'className':'univer-flex\x20univer-justify-end\x20univer-gap-2','children':[_0x414ebe(_0x5d2b24,{'onClick':_0x191ca8[_0x3cf5b5(0x252)],'children':_0x231189['t'](_0x3cf5b5(0x1da))}),_0x414ebe(_0x5d2b24,{'variant':_0x3cf5b5(0x2c1),'disabled':!_0x3f7512['trim'](),'onClick':()=>_0x191ca8[_0x3cf5b5(0x22a)](_0x3f7512[_0x3cf5b5(0x29a)](),_0x17ee69,_0xea6b73),'children':_0x231189['t'](_0x3cf5b5(0x236))})]})]}):null;}function ho(_0x254d5c){const _0x4960fa=_0x290871;let {config:_0x20e019,commit:_0x12cd19}=_0x254d5c,_0x348c49=_0xe276a8(_0x4b0f72),_0x401559=_0x20e019[_0x4960fa(0x145)][_0x4960fa(0x209)],_0x3605e7=_0xeb8184=>_0x12cd19(_0x411928=>_0x411928[_0x4960fa(0x3c5)]({..._0x411928[_0x4960fa(0x3ad)](),..._0xeb8184}));return _0x3c00a1(_0x4960fa(0x384),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x3c00a1(_0x4960fa(0x1e5),{'className':_0x4960fa(0x463),'children':[_0x348c49['t'](_0x4960fa(0x271)),_0x414ebe(_0x296606,{'className':_0x4960fa(0x217),'value':String(_0x20e019['pivot']['layout']),'options':[{'value':String(_0x5c7745[_0x4960fa(0x2e9)]),'label':_0x348c49['t'](_0x4960fa(0x3f4))},{'value':String(_0x5c7745['compact']),'label':_0x348c49['t'](_0x4960fa(0x428))},{'value':String(_0x5c7745[_0x4960fa(0x1d5)]),'label':_0x348c49['t'](_0x4960fa(0x1f0))}],'onChange':_0x47cdc8=>{const _0x41113a=_0x4960fa;let _0x2f156d=[_0x5c7745[_0x41113a(0x2e9)],_0x5c7745[_0x41113a(0x177)],_0x5c7745[_0x41113a(0x1d5)]][_0x41113a(0x47f)](_0x333759=>String(_0x333759)===_0x47cdc8);_0x2f156d!==void 0x0&&_0x12cd19(_0x324d45=>_0x324d45[_0x41113a(0x359)](_0x2f156d));}})]}),[{'key':_0x4960fa(0x13b),'label':_0x4960fa(0x3f1),'defaultValue':!0x1},{'key':'repeatColLabels','label':_0x4960fa(0x48d),'defaultValue':!0x1},{'key':'showRowSubtotal','label':_0x4960fa(0x2d3),'defaultValue':!0x0},{'key':'showRowGrandTotal','label':_0x4960fa(0x202),'defaultValue':!0x0},{'key':_0x4960fa(0x448),'label':_0x4960fa(0x2ea),'defaultValue':!0x0},{'key':'showColGrandTotal','label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}][_0x4960fa(0x3a8)](_0x4e58fc=>_0x3c00a1(_0x4960fa(0x1e5),{'className':_0x4960fa(0x43b),'children':[_0x414ebe(_0x283511,{'checked':!!(_0x401559[_0x4e58fc[_0x4960fa(0x29d)]]??_0x4e58fc[_0x4960fa(0x457)]),'disabled':_0x4e58fc[_0x4960fa(0x29d)]==='repeatRowLabels'&&_0x20e019[_0x4960fa(0x145)][_0x4960fa(0x2c7)]===_0x5c7745[_0x4960fa(0x177)],'onChange':_0x3b45a2=>_0x3605e7({[_0x4e58fc[_0x4960fa(0x29d)]]:!!_0x3b45a2})}),_0x348c49['t'](_0x4e58fc[_0x4960fa(0x1e5)])]},_0x4e58fc[_0x4960fa(0x29d)])),_0x20e019[_0x4960fa(0x145)][_0x4960fa(0x2c7)]===_0x5c7745[_0x4960fa(0x1d5)]&&_0x3c00a1(_0x4960fa(0x1e5),{'className':_0x4960fa(0x463),'children':[_0x348c49['t']('bases-dashboard-ui.pivot.rowSubtotalPosition'),_0x414ebe(_0x296606,{'className':'univer-w-36','value':String(_0x401559['rowSubtotalPosition']??_0x1c5136[_0x4960fa(0x392)]),'options':[{'value':String(_0x1c5136[_0x4960fa(0x392)]),'label':_0x348c49['t'](_0x4960fa(0x2c8))},{'value':String(_0x1c5136[_0x4960fa(0x314)]),'label':_0x348c49['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x43079a=>{const _0x34e206=_0x4960fa;let _0x35c95d=[_0x1c5136[_0x34e206(0x392)],_0x1c5136[_0x34e206(0x314)]][_0x34e206(0x47f)](_0x40e74c=>String(_0x40e74c)===_0x43079a);_0x35c95d!==void 0x0&&_0x3605e7({'rowSubtotalPosition':_0x35c95d});}})]}),_0x3c00a1(_0x4960fa(0x1e5),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x348c49['t'](_0x4960fa(0x22c)),_0x414ebe(_0x296606,{'className':'univer-w-36','value':String(_0x20e019['pivot'][_0x4960fa(0x3ed)]===_0x3d12ff['None']?_0x3d12ff['Column']:_0x20e019[_0x4960fa(0x145)][_0x4960fa(0x3ed)]),'options':[{'value':String(_0x3d12ff[_0x4960fa(0x356)]),'label':_0x348c49['t']('bases-dashboard-ui.pivot.columns')},{'value':String(_0x3d12ff[_0x4960fa(0x1c8)]),'label':_0x348c49['t'](_0x4960fa(0x41f))}],'onChange':_0x1be06a=>{const _0x46a4b1=_0x4960fa;let _0x516d19=[_0x3d12ff[_0x46a4b1(0x356)],_0x3d12ff[_0x46a4b1(0x1c8)]][_0x46a4b1(0x47f)](_0x4d1a00=>String(_0x4d1a00)===_0x1be06a);_0x516d19!==void 0x0&&_0x12cd19(_0x25a491=>_0x25a491[_0x46a4b1(0x2de)](_0x516d19,_0x25a491['getValueIndex']()<0x0?0x0:_0x25a491[_0x46a4b1(0x194)]()));}})]}),_0x3c00a1(_0x4960fa(0x1e5),{'className':_0x4960fa(0x463),'children':[_0x348c49['t']('bases-dashboard-ui.pivot.pageWrap'),_0x414ebe(_0x2963f5,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x401559[_0x4960fa(0x401)]??0x1,'onChange':_0x365ebe=>{let _0x45a2eb=Number(_0x365ebe);Number['isFinite'](_0x45a2eb)&&_0x45a2eb>=0x1&&_0x3605e7({'pageWrap':_0x45a2eb});}})]}),_0x3c00a1('label',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x348c49['t']('bases-dashboard-ui.pivot.pageDirection'),_0x414ebe(_0x296606,{'className':_0x4960fa(0x217),'value':String(_0x401559[_0x4960fa(0x2df)]??!0x1),'options':[{'value':'false','label':_0x348c49['t']('bases-dashboard-ui.pivot.downThenAcross')},{'value':'true','label':_0x348c49['t']('bases-dashboard-ui.pivot.acrossThenDown')}],'onChange':_0x197f54=>_0x3605e7({'pageOverThenDown':_0x197f54==='true'})})]})]});}function go(_0x2c035a,_0x598361,_0x5a4fc7,_0x5f2f16){const _0x150382=_0x290871;let _0x4f28bc=_0x2c035a[_0x150382(0x2c0)](_0x598361)[_0x150382(0x47f)](_0x1fcd56=>_0x2c035a[_0x150382(0x325)](_0x1fcd56[_0x150382(0x378)]())[_0x150382(0x225)]!==_0x1b52e3['Value']);_0x5a4fc7!==_0x1b52e3[_0x150382(0x19f)]&&_0x4f28bc?_0x2c035a[_0x150382(0x46b)](_0x4f28bc['getId'](),_0x5a4fc7,_0x5f2f16):_0x2c035a[_0x150382(0x229)](_0x598361,_0x5a4fc7,_0x5f2f16);}function _o(_0x53bd87,_0x43b2aa,_0x38b4c3,_0x2c71ca){const _0x288496=_0x290871;return _0x43b2aa===_0x3a56c2['blank']?_0x2c71ca:_0x43b2aa===_0x3a56c2[_0x288496(0x1e6)]&&_0x38b4c3?_0x488061[_0x288496(0x30f)](_0x38b4c3,Number(_0x53bd87)):_0x53bd87;}function vo(_0x343727){const _0x31646d=_0x290871;return _0x343727[_0x31646d(0x183)]===_0x5e006f['Number']||_0x343727['type']===_0x5e006f[_0x31646d(0x3b6)]||_0x343727['type']===_0x5e006f[_0x31646d(0x3e0)]||_0x343727[_0x31646d(0x183)]===_0x5e006f['Rating'];}function yo(_0x56e645){const _0x3e0d3d=_0x290871;switch(_0x56e645){case _0x1b52e3['Row']:return _0x3e0d3d(0x2c5);case _0x1b52e3[_0x3e0d3d(0x356)]:return'bases-dashboard-ui.pivot.addToColumn';case _0x1b52e3['Value']:return'bases-dashboard-ui.pivot.addToValue';default:return'bases-dashboard-ui.pivot.addToFilter';}}function bo({config:_0x3b6174,onChange:_0x2a4dbc,runtime:_0x1d77e5,table:_0x3d9bd0}){const _0x41d293=_0x290871;let _0x188218=_0xe276a8(_0x4b0f72),[_0x4afc58,_0x2b78ab]=_0x3f626c(_0x41d293(0x3a5));return _0x3c00a1(_0x41d293(0x3dc),{'className':_0x41d293(0x462),'children':[_0x414ebe(_0xbfe45a,{'ariaLabel':_0x188218['t']('bases-dashboard-ui.pivot.name'),'className':_0x41d293(0x407),'items':[{'label':_0x188218['t'](_0x41d293(0x3fa)),'panelId':_0x41d293(0x3fd),'value':'chart'},{'label':_0x188218['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'panelId':_0x41d293(0x25c),'value':_0x41d293(0x145)}],'value':_0x4afc58,'onChange':_0x2b78ab}),_0x414ebe(_0x41d293(0x384),{'className':_0x41d293(0x305),'children':_0x4afc58===_0x41d293(0x3a5)?_0x1d77e5&&_0x414ebe(ma,{'config':_0x3b6174,'runtime':_0x1d77e5,'tableName':_0x3d9bd0[_0x41d293(0x2a3)],'onChange':_0x2a4dbc}):_0x414ebe(so,{'config':_0x3b6174,'table':_0x3d9bd0,'onChange':_0x2a4dbc})})]});}function xo({tableId:_0x6c53de,unitId:_0x42a6ad,viewId:_0x508161}){const _0x3d069e=_0x290871;let _0x5055d7=_0xe276a8(_0x299365),_0x3f6c5a=_0xe276a8(_0x5abbf9),_0x40d192=_0xe276a8(_0x104d80),_0x5a2ea1=_0xe276a8(_0x4b0f72),_0x5a361e=_0xe276a8(_0xcfb712),[_0x2661c9,_0x327432]=_0x3f626c(null),[_0x4bbc61,_0x43e5c6]=_0x3f626c(null),_0x5ca84e=_0x3987b(_0x3d069e(0x26d)+_0x89ef13(0x8)),[_0x202b99,_0xba72f7]=_0x3f626c(!0x1),_0x4ee408=_0x3f6c5a['getUnit'](_0x42a6ad,_0x1516ee['UNIVER_BASE']),_0x1d3e76=_0x4ee408==null?void 0x0:_0x4ee408[_0x3d069e(0x18e)]()[_0x3d069e(0x377)][_0x6c53de],_0x469fd3=_0x1d3e76==null?void 0x0:_0x1d3e76[_0x3d069e(0x483)][_0x508161],_0x42b1e2=So(_0x469fd3),_0x56db5a=yr(_0x42a6ad,_0x6c53de,_0x508161);if(_0x330c05(()=>{const _0xedba4=_0x3d069e;if(!_0x42b1e2)return;let _0x3c56c9=_0x5ca84e[_0xedba4(0x2e7)];return _0x5a361e['acquireChartRuntime'](_0x3c56c9,{'unitId':_0x42a6ad,'tableId':_0x6c53de,'viewId':_0x508161,'filters':[]}),()=>{const _0x39acb4=_0xedba4;_0x5a361e[_0x39acb4(0x15c)](_0x42a6ad,_0x3c56c9);};},[_0x42b1e2,_0x5a361e,_0x6c53de,_0x42a6ad,_0x508161]),_0x330c05(()=>{const _0x6c11d8=_0x3d069e;if(!So(_0x469fd3))return;let _0x2387e5=!0x0,_0x5635f2={'unitId':_0x42a6ad,'tableId':_0x6c53de,'viewId':_0x508161,'filters':[_0x469fd3[_0x6c11d8(0x42d)]??null]};return _0x5a361e['refreshChartRuntime'](_0x42a6ad,_0x5ca84e[_0x6c11d8(0x2e7)],_0x5635f2)[_0x6c11d8(0x1fb)](_0x26dfff=>{const _0x8f65d4=_0x6c11d8;_0x2387e5&&_0x26dfff&&(_0x327432(_0x26dfff),_0x43e5c6(_0x5a361e[_0x8f65d4(0x3fb)](_0x42a6ad,_0x5ca84e[_0x8f65d4(0x2e7)])??null),_0xba72f7(!0x1));})[_0x6c11d8(0x147)](_0x182f6f=>{const _0x4b89da=_0x6c11d8;_0x40d192[_0x4b89da(0x198)](_0x4b89da(0x35f),_0x182f6f),_0x2387e5&&(_0x327432(null),_0xba72f7(!0x0));}),()=>{_0x2387e5=!0x1;};},[_0x40d192,_0x5a361e,_0x6c53de,_0x42a6ad,_0x469fd3,_0x508161]),!_0x1d3e76||!So(_0x469fd3))return null;let _0x25071f=_0x5a361e['getChartRuntime'](_0x42a6ad,_0x5ca84e[_0x3d069e(0x2e7)])===_0x4bbc61?_0x4bbc61:null,_0x15ad3d=_0x2661c9?_0x3c00a1(_0x3d069e(0x384),{'className':'univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','style':{'gridTemplateRows':_0x469fd3[_0x3d069e(0x193)][_0x3d069e(0x3f8)]===_0x3d069e(0x438)?_0x3d069e(0x348):'minmax(0,\x201fr)'},'children':[_0x469fd3[_0x3d069e(0x193)][_0x3d069e(0x3f8)]!=='table'&&_0x25071f&&_0x414ebe('div',{'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':_0x414ebe(Rr,{'isRowDirection':_0x52d288(_0x469fd3[_0x3d069e(0x193)]['chart'][_0x3d069e(0x3b2)]),'runtime':_0x25071f})}),_0x469fd3['config'][_0x3d069e(0x3f8)]!==_0x3d069e(0x3a5)&&_0x414ebe(_0x3d069e(0x384),{'className':_0x3d069e(0x2f7),'children':_0x414ebe(ji,{'pivot':_0x469fd3['config'][_0x3d069e(0x145)],'view':_0x2661c9[_0x3d069e(0x141)]})})]}):_0x414ebe(_0x3d069e(0x384),{'className':_0x3d069e(0x2b5),'children':_0x202b99?_0x5a2ea1['t'](_0x3d069e(0x32f)):_0x5a2ea1['t'](_0x3d069e(0x275))});return _0x3c00a1(_0x3d069e(0x384),{'className':_0x3d069e(0x249),'children':[_0x414ebe('div',{'className':_0x3d069e(0x175),'children':_0x15ad3d}),_0x56db5a&&_0x414ebe(bo,{'config':_0x469fd3[_0x3d069e(0x193)],'runtime':_0x25071f,'table':_0x1d3e76,'onChange':_0x1d8891=>{const _0x254573=_0x3d069e;_0x5055d7[_0x254573(0x25b)](_0x423077['id'],{'unitId':_0x42a6ad,'tableId':_0x6c53de,'viewId':_0x508161,'patch':_0x1d8891})[_0x254573(0x147)](_0x2da57a=>_0x40d192[_0x254573(0x198)]('[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.',_0x2da57a));}})]});}function So(_0x165832){const _0xc3e777=_0x290871;return(_0x165832==null?void 0x0:_0x165832['type'])===_0x3744eb[_0xc3e777(0x250)]&&typeof _0x165832[_0xc3e777(0x193)]==_0xc3e777(0x30e)&&_0x165832[_0xc3e777(0x193)]!==null&&_0xc3e777(0x145)in _0x165832[_0xc3e777(0x193)]&&_0xc3e777(0x3a5)in _0x165832[_0xc3e777(0x193)]&&'displayMode'in _0x165832['config'];}let Co=class extends _0x92f3c1{constructor(_0x56217c,_0x5ba57f,_0x2abf17,_0xf6db20,_0x59b732,_0x46a3ae){const _0x5a4ae1=_0x290871;super(),this[_0x5a4ae1(0x444)](_0x5ba57f['register']({'type':_0x3744eb[_0x5a4ae1(0x250)],'renderMode':_0x5a4ae1(0x342),'icon':_0x3abb8f,'component':xo,'menu':{get 'label'(){const _0x1896b3=_0x5a4ae1;return _0x46a3ae['t'](_0x1896b3(0x34b));},get 'description'(){const _0x2e880f=_0x5a4ae1;return _0x46a3ae['t'](_0x2e880f(0x17c));},get 'defaultName'(){return _0x46a3ae['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x5a4ae1(0x444)](_0x56217c[_0x5a4ae1(0x13c)](wo(_0x2abf17,_0xf6db20,_0x59b732,_0x46a3ae)));}};Co=Ar([Y(0x0,_0x73fa49),Y(0x1,_0x33fef6),Y(0x2,_0x106e69(_0x1aeb78)),Y(0x3,_0x299365),Y(0x4,_0x3813b4),Y(0x5,_0x106e69(_0x4b0f72))],Co);function wo(_0x5c9898,_0x2a2d11,_0x33d5dd,_0x23a8a9){const _0x494f88=_0x290871;return{'change$':_0x5d4904(_0x5c9898[_0x494f88(0x3f9)],_0x33d5dd[_0x494f88(0x2ef)]),'component':Xa,get 'labels'(){const _0x130eed=_0x494f88;return{'add':_0x23a8a9['t'](_0x130eed(0x3ba)),'configure':_0x1eddb8=>_0x23a8a9['t'](_0x130eed(0x2da),_0x1eddb8),'delete':_0x23a8a9['t'](_0x130eed(0x3b9)),'new':_0x23a8a9['t'](_0x130eed(0x477)),'rename':_0x23a8a9['t']('bases-dashboard-ui.dashboard.rename'),'search':_0x23a8a9['t']('bases-dashboard-ui.dashboard.search'),'section':_0x23a8a9['t'](_0x130eed(0x48e))};},'getItems':_0xbd5899=>{const _0x3fd5ba=_0x494f88;let _0x1755e9=_0x5c9898['getResource'](_0xbd5899);return _0x1755e9[_0x3fd5ba(0x35e)][_0x3fd5ba(0x2af)](_0x5e30ad=>{const _0x8c01f8=_0x3fd5ba;let _0x40ba17=_0x1755e9[_0x8c01f8(0x15a)][_0x5e30ad];return _0x40ba17?[{'id':_0x40ba17['id'],'name':_0x40ba17['name'],'readonly':!_0x353928(_0x33d5dd,_0xbd5899,_0x40ba17['id'])}]:[];});},'create':async _0x26c92a=>{const _0x4365c5=_0x494f88;let _0x3d3a6b=_0x5c9898['getResource'](_0x26c92a),_0x202344=_0x4365c5(0x251)+_0x89ef13(0x8),_0x528f00=To(_0x3d3a6b[_0x4365c5(0x35e)][_0x4365c5(0x2af)](_0x54f17f=>{const _0x30bd45=_0x4365c5;let _0x4e05d8=_0x3d3a6b['dashboards'][_0x54f17f];return _0x4e05d8?[_0x4e05d8[_0x30bd45(0x2a3)]]:[];}),_0x5e708d=>_0x23a8a9['t'](_0x4365c5(0x365),String(_0x5e708d)));return await _0x2a2d11[_0x4365c5(0x25b)](_0x28dee1['id'],{'unitId':_0x26c92a,'dashboard':{'id':_0x202344,'name':_0x528f00,'widgetOrder':[],'widgets':{}}})?_0x202344:null;},'rename':async(_0x2fe90c,_0x501a90,_0x54ee75)=>{const _0x59e852=_0x494f88;let _0x221000=_0x5c9898[_0x59e852(0x40d)](_0x2fe90c,_0x501a90);return!!(_0x221000&&await _0x2a2d11[_0x59e852(0x25b)](_0xe5ba16['id'],{'unitId':_0x2fe90c,'dashboard':{..._0x221000,'name':_0x54ee75}}));},'remove':(_0x6507df,_0x4574c6)=>_0x2a2d11[_0x494f88(0x25b)](_0x1d2c48['id'],{'unitId':_0x6507df,'dashboardId':_0x4574c6})};}function To(_0x351886,_0x3594f6){const _0x4ed997=_0x290871;let _0x2546bb=new Set(_0x351886),_0x29893c=_0x2546bb[_0x4ed997(0x25a)]+0x1,_0x1dbafd=_0x3594f6(_0x29893c);for(;_0x2546bb[_0x4ed997(0x170)](_0x1dbafd);)_0x29893c+=0x1,_0x1dbafd=_0x3594f6(_0x29893c);return _0x1dbafd;}let Eo=class extends _0x447642{constructor(_0x11b269=_r,_0x27c9fd,_0x4b3070){const _0x444acb=_0x290871;super(),this[_0x444acb(0x1f7)]=_0x11b269,this[_0x444acb(0x405)]=_0x27c9fd,this[_0x444acb(0x23b)]=_0x4b3070;let {..._0x341dcf}=_0x4fa520({},_r,this[_0x444acb(0x1f7)]);this[_0x444acb(0x23b)][_0x444acb(0x38f)](gr,_0x341dcf);}['onStarting'](){const _0x9a3608=_0x290871;this[_0x9a3608(0x405)][_0x9a3608(0x2e6)]([jr]),this[_0x9a3608(0x405)][_0x9a3608(0x2e6)]([qr]),this[_0x9a3608(0x405)][_0x9a3608(0x2e6)]([Co]);}[_0x290871(0x2a5)](){const _0x460455=_0x290871;_0x49d35e(this[_0x460455(0x405)],[[jr],[qr],[Co]]);}};Ir(Eo,_0x290871(0x183),_0x1516ee[_0x290871(0x3c2)]),Ir(Eo,'pluginName','BASE_DASHBOARD_UI_PLUGIN'),Ir(Eo,_0x290871(0x304),mr),Ir(Eo,'version',hr),Eo=Ar([_0x3bb5e2(_0x47a995,_0x528fcf,_0x2ed41f,_0xc5d54f,_0x48b358,_0x542cb3),Y(0x1,_0x106e69(_0x117569)),Y(0x2,_0x32ba7f)],Eo);export{ia as UniverBaseDashboardMobileUIPlugin,Eo as UniverBaseDashboardUIPlugin};