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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (101) hide show
  1. package/lib/cjs/index.js +1 -1
  2. package/lib/cjs/locale/ar-SA.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/cs-CZ.js +1 -1
  5. package/lib/cjs/locale/de-DE.js +1 -1
  6. package/lib/cjs/locale/en-US.js +1 -1
  7. package/lib/cjs/locale/es-ES.js +1 -1
  8. package/lib/cjs/locale/fa-IR.js +1 -1
  9. package/lib/cjs/locale/fr-FR.js +1 -1
  10. package/lib/cjs/locale/id-ID.js +1 -1
  11. package/lib/cjs/locale/it-IT.js +1 -1
  12. package/lib/cjs/locale/ja-JP.js +1 -1
  13. package/lib/cjs/locale/ko-KR.js +1 -1
  14. package/lib/cjs/locale/nl-NL.js +1 -1
  15. package/lib/cjs/locale/pl-PL.js +1 -1
  16. package/lib/cjs/locale/pt-BR.js +1 -1
  17. package/lib/cjs/locale/ru-RU.js +1 -1
  18. package/lib/cjs/locale/sk-SK.js +1 -1
  19. package/lib/cjs/locale/th-TH.js +1 -1
  20. package/lib/cjs/locale/tr-TR.js +1 -1
  21. package/lib/cjs/locale/uk-UA.js +1 -1
  22. package/lib/cjs/locale/vi-VN.js +1 -1
  23. package/lib/cjs/locale/zh-CN.js +1 -1
  24. package/lib/cjs/locale/zh-HK.js +1 -1
  25. package/lib/cjs/locale/zh-TW.js +1 -1
  26. package/lib/es/index.js +1 -1
  27. package/lib/es/locale/ar-SA.js +1 -1
  28. package/lib/es/locale/ca-ES.js +1 -1
  29. package/lib/es/locale/cs-CZ.js +1 -1
  30. package/lib/es/locale/de-DE.js +1 -1
  31. package/lib/es/locale/en-US.js +1 -1
  32. package/lib/es/locale/es-ES.js +1 -1
  33. package/lib/es/locale/fa-IR.js +1 -1
  34. package/lib/es/locale/fr-FR.js +1 -1
  35. package/lib/es/locale/id-ID.js +1 -1
  36. package/lib/es/locale/it-IT.js +1 -1
  37. package/lib/es/locale/ja-JP.js +1 -1
  38. package/lib/es/locale/ko-KR.js +1 -1
  39. package/lib/es/locale/nl-NL.js +1 -1
  40. package/lib/es/locale/pl-PL.js +1 -1
  41. package/lib/es/locale/pt-BR.js +1 -1
  42. package/lib/es/locale/ru-RU.js +1 -1
  43. package/lib/es/locale/sk-SK.js +1 -1
  44. package/lib/es/locale/th-TH.js +1 -1
  45. package/lib/es/locale/tr-TR.js +1 -1
  46. package/lib/es/locale/uk-UA.js +1 -1
  47. package/lib/es/locale/vi-VN.js +1 -1
  48. package/lib/es/locale/zh-CN.js +1 -1
  49. package/lib/es/locale/zh-HK.js +1 -1
  50. package/lib/es/locale/zh-TW.js +1 -1
  51. package/lib/index.js +1 -1
  52. package/lib/locale/ar-SA.js +1 -1
  53. package/lib/locale/ca-ES.js +1 -1
  54. package/lib/locale/cs-CZ.js +1 -1
  55. package/lib/locale/de-DE.js +1 -1
  56. package/lib/locale/en-US.js +1 -1
  57. package/lib/locale/es-ES.js +1 -1
  58. package/lib/locale/fa-IR.js +1 -1
  59. package/lib/locale/fr-FR.js +1 -1
  60. package/lib/locale/id-ID.js +1 -1
  61. package/lib/locale/it-IT.js +1 -1
  62. package/lib/locale/ja-JP.js +1 -1
  63. package/lib/locale/ko-KR.js +1 -1
  64. package/lib/locale/nl-NL.js +1 -1
  65. package/lib/locale/pl-PL.js +1 -1
  66. package/lib/locale/pt-BR.js +1 -1
  67. package/lib/locale/ru-RU.js +1 -1
  68. package/lib/locale/sk-SK.js +1 -1
  69. package/lib/locale/th-TH.js +1 -1
  70. package/lib/locale/tr-TR.js +1 -1
  71. package/lib/locale/uk-UA.js +1 -1
  72. package/lib/locale/vi-VN.js +1 -1
  73. package/lib/locale/zh-CN.js +1 -1
  74. package/lib/locale/zh-HK.js +1 -1
  75. package/lib/locale/zh-TW.js +1 -1
  76. package/lib/umd/index.js +1 -1
  77. package/lib/umd/locale/ar-SA.js +1 -1
  78. package/lib/umd/locale/ca-ES.js +1 -1
  79. package/lib/umd/locale/cs-CZ.js +1 -1
  80. package/lib/umd/locale/de-DE.js +1 -1
  81. package/lib/umd/locale/en-US.js +1 -1
  82. package/lib/umd/locale/es-ES.js +1 -1
  83. package/lib/umd/locale/fa-IR.js +1 -1
  84. package/lib/umd/locale/fr-FR.js +1 -1
  85. package/lib/umd/locale/id-ID.js +1 -1
  86. package/lib/umd/locale/it-IT.js +1 -1
  87. package/lib/umd/locale/ja-JP.js +1 -1
  88. package/lib/umd/locale/ko-KR.js +1 -1
  89. package/lib/umd/locale/nl-NL.js +1 -1
  90. package/lib/umd/locale/pl-PL.js +1 -1
  91. package/lib/umd/locale/pt-BR.js +1 -1
  92. package/lib/umd/locale/ru-RU.js +1 -1
  93. package/lib/umd/locale/sk-SK.js +1 -1
  94. package/lib/umd/locale/th-TH.js +1 -1
  95. package/lib/umd/locale/tr-TR.js +1 -1
  96. package/lib/umd/locale/uk-UA.js +1 -1
  97. package/lib/umd/locale/vi-VN.js +1 -1
  98. package/lib/umd/locale/zh-CN.js +1 -1
  99. package/lib/umd/locale/zh-HK.js +1 -1
  100. package/lib/umd/locale/zh-TW.js +1 -1
  101. package/package.json +17 -17
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x2353bc=_0x1cf6;(function(_0x3fe7b4,_0x293bd9){const _0x32e535=_0x1cf6,_0x4977ed=_0x3fe7b4();while(!![]){try{const _0x2ec9ce=-parseInt(_0x32e535(0x2b0))/0x1*(parseInt(_0x32e535(0x50e))/0x2)+-parseInt(_0x32e535(0x2d5))/0x3*(-parseInt(_0x32e535(0x1f4))/0x4)+-parseInt(_0x32e535(0x2e8))/0x5*(-parseInt(_0x32e535(0x437))/0x6)+parseInt(_0x32e535(0x3fb))/0x7+parseInt(_0x32e535(0x2b4))/0x8+parseInt(_0x32e535(0x213))/0x9*(-parseInt(_0x32e535(0x234))/0xa)+-parseInt(_0x32e535(0x1dc))/0xb*(parseInt(_0x32e535(0x2c3))/0xc);if(_0x2ec9ce===_0x293bd9)break;else _0x4977ed['push'](_0x4977ed['shift']());}catch(_0x315a9f){_0x4977ed['push'](_0x4977ed['shift']());}}}(_0x5550,0x475d7));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x50185b,BASES_DASHBOARD_GRID_COLUMNS as _0x20c9d7,BaseChartRuntimeService as _0x22ef82,BaseDashboardResourceService as _0x5e40a3,BaseDashboardWidgetType as _0x342116,CreateBaseDashboardCommand as _0x2ef5a6,DeleteBaseDashboardCommand as _0x22aa0a,RemoveBaseDashboardWidgetCommand as _0x20648d,UniverBaseDashboardPlugin as _0x1615ad,UpdateBaseDashboardCommand as _0x5cbeb4,UpdateBasePivotViewCommand as _0x303df3,UpsertBaseDashboardWidgetCommand as _0x2b3367,canEditBaseDashboard as _0x25b5d2,canEditBasePivotView as _0x2ecb1b,createBasePivotTable as _0x1c8584,resolveBasePivotChartRowDirection as _0x2fa6dd}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x9b2833,BaseMobileDrawer as _0x4989cc,BaseMobileFilterOperand as _0x5c4dcf,BaseMobileFilterPanel as _0x1ab4e1,BaseUnitCollaborationStatus as _0xf8bfea,FormulaEditorPanel as _0x55d652,IBaseDashboardUIExtensionRegistryService as _0x509544,IBaseViewUIRegistryService as _0x5eecd3,MobileFormulaEditorPanel as _0x33c106,UniverBasesMobileUIPlugin as _0x139492,UniverBasesUIPlugin as _0x151faa,formulaToEditorFormula as _0x1b3454,normalizeEditorFormulaForConfig as _0x24d391,toFormulaMenuTables as _0x57cd99,toMenuFields as _0x5249f3}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x170e20,ChartAxisSection as _0x185c32,ChartColorField as _0x38703b,ChartCommonDataMappingSection as _0x26c1b7,ChartEditBlockTitle as _0x2db9bd,ChartEditPanel as _0x3812e6,ChartEditPanelSection as _0x8fe1f1,ChartEditPanelTab as _0x139866,ChartEditPanelTabs as _0x35a378,ChartEditorCapability as _0x1958f1,ChartEditorProvider as _0x4bacfa,ChartFunnelStyleSection as _0x666ad2,ChartGradientFillField as _0x34de73,ChartGridlinesAndTicksSection as _0x1f6674,ChartHeatmapStyleSection as _0x3c01f2,ChartHostAdapter as _0x29d554,ChartIndicatorLineSection as _0x5f2295,ChartLegendSection as _0x1dc64f,ChartLineAndAreaSection as _0x457b13,ChartNumberFormatAtom as _0x2f8e19,ChartParetoSeriesSection as _0x35a412,ChartPieStyleSection as _0x34a105,ChartRadarStyleSection as _0x4c7c71,ChartRelationStyleSection as _0x11ce9e,ChartSectionAccordion as _0x28ef86,ChartSectionAccordionContent as _0xaf7aad,ChartSectionAccordionItem as _0x1358f8,ChartSectionAccordionTrigger as _0x352fb4,ChartSeriesSection as _0x3bcbff,ChartStackField as _0x3210ae,ChartStyleSection as _0x466794,ChartThemeField as _0x1603db,ChartTitlesSection as _0xe815e7,ChartTrendlineSection as _0x3c8ddd,ChartTypeField as _0x195039,ChartTypeSpecificDataSection as _0x45db86,ChartTypeSpecificSetupSection as _0x3eaf0a,ChartTypeSpecificStyleSection as _0x5d0cdf,ChartUIService as _0x3ae17a,ChartViewStateRegistry as _0x2cea70,ChartWaterfallSetupFields as _0x4e37ce,ChartWaterfallStyleSection as _0x217c37,ChartWordCloudStyleSection as _0x5ac713,DEFAULT_CHART_AXIS_VALUES as _0x5caca4,DEFAULT_CHART_FUNNEL_VALUES as _0x26697d,DEFAULT_CHART_HEATMAP_VALUES as _0x296680,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x195779,DEFAULT_CHART_LEGEND_VALUES as _0x4fe0eb,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x499ec0,DEFAULT_CHART_PARETO_VALUES as _0x4cf110,DEFAULT_CHART_PIE_VALUES as _0x1db8a1,DEFAULT_CHART_RADAR_VALUES as _0x35ac4f,DEFAULT_CHART_RELATION_VALUES as _0x2da675,DEFAULT_CHART_SERIES_VALUES as _0x396e30,DEFAULT_CHART_STYLE_VALUES as _0x5792d9,DEFAULT_CHART_TITLE_VALUES as _0x21806e,DEFAULT_CHART_TRENDLINE_VALUES as _0x563c89,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x2c231e,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x31f02c,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x8c0c35,MobileChartEditorControls as _0xac1dd7,MobileChartEditorProvider as _0x2dc504,UniverChartMobileUIPlugin as _0x2c95bb,UniverChartUIPlugin as _0x4a2c56,buildChartTypeSelectOptions as _0x2dbfb8,chartTypeSupportsCapability as _0x326a9b,chartTypeSupportsLineAndAreaStyle as _0x59d745,useChartEditorChartType as _0x1f2e67,useChartEditorHasRightAxis as _0x51b799}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x38c17a}from'@univerjs-pro/license';import{ShapeFormulaService as _0xbf6a95,UniverShapeEditorPlugin as _0x47e249,createFormulaShapeData as _0x11d1a1}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0x557eea,BaseFilterConjunction as _0xf09c6,BaseFilterOperator as _0x17381a,BaseViewType as _0x5ee6b5,DependentOn as _0x4fc5af,Disposable as _0x2e76da,ICommandService as _0x32452d,IConfigService as _0x5a5187,IImageIoService as _0x5482b5,ILogService as _0x34ac8c,IPermissionService as _0x4c7ae7,IUndoRedoService as _0x123793,IUniverInstanceService as _0x4074e5,ImageSourceType as _0x26a785,Inject as _0x2a19f9,Injector as _0x5a8661,LocaleService as _0x5cd3ee,ObjectPermissionService as _0x1adc86,Plugin as _0x52aef1,RedoCommand as _0x8d3b46,ThemeService as _0x277079,UndoCommand as _0x4170dd,UniverInstanceType as _0x51ec78,createParagraphId as _0x112de2,dateKit as _0x22c7cc,generateRandomId as _0x325e5d,merge as _0x1731fc,numfmt as _0x3f4aae,touchDependencies as _0x445a23}from'@univerjs/core';import{UniverDocsUIPlugin as _0x220c65}from'@univerjs/docs-ui';function _0x1cf6(_0x3c0f50,_0x125c99){_0x3c0f50=_0x3c0f50-0x1a8;const _0x5550f1=_0x5550();let _0x1cf6d7=_0x5550f1[_0x3c0f50];return _0x1cf6d7;}import{ArrowDownIcon as _0x5c6cd4,ArrowUpIcon as _0x19b9b0,AscendingIcon as _0x4c6d55,CalendarIcon as _0x951fbe,ChartIcon as _0x433eb4,CloseIcon as _0x122a02,DeleteIcon as _0x2d17f6,DescendingIcon as _0x59e3b9,ExpandIcon as _0x54cca2,FilterIcon as _0x425726,GripVerticalIcon as _0x1487d8,IncreaseIcon as _0x5155a3,MoreDownIcon as _0xf77a3b,MoreHorizontalIcon as _0x27b384,NumberIcon as _0x5a5ded,PenIcon as _0x392d1f,PivotTableIcon as _0x3ad3c2,ProtectIcon as _0x7e2f55,RedoIcon as _0x44a42f,SearchIcon as _0x51aac6,TextIcon as _0x264f2e,UndoIcon as _0x4f90a3}from'@univerjs/icons';import{combineLatest as _0x4d74fa,map as _0x299cc9,merge as _0x53dd21,skip as _0x260464}from'rxjs';import{SetBasePermissionCommand as _0x42d2ec,getBaseDashboardPermissionObjectId as _0x275cd2}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x4d763c}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x1869dd,ShapeLineTypeEnum as _0x19c511,ShapeTypeEnum as _0x4387d7}from'@univerjs-pro/engine-shape';import{Button as _0x1b3e3b,Checkbox as _0x3cc061,DatePicker as _0x1596d0,Dialog as _0x4b580d,DropdownMenu as _0x492a1e,Input as _0x2c53ee,InputNumber as _0x1c2086,MobileDialog as _0x138a17,MobileDropdownMenu as _0x4083c0,MobileSelect as _0x3b7f81,MultipleSelect as _0x3ab7df,Segmented as _0x116fe9,Select as _0xce6b1b,Textarea as _0x136f1a,Tooltip as _0x56b693,borderClassName as _0x1298ac,clsx as _0x52fed8,scrollbarClassName as _0x2a22a5}from'@univerjs/design';import{UnitObject as _0x4f7ac1}from'@univerjs/protocol';import{ILayoutService as _0x55d16d,ObjectPermissionButton as _0x468217,openObjectPermissionDialog as _0x14db5b,useDependency as _0x39b411,useObservable as _0x499abf}from'@univerjs/ui';import{useCallback as _0xd8821d,useEffect as _0x38e78f,useMemo as _0x56a185,useRef as _0x35f949,useState as _0x2be63d}from'react';import{Fragment as _0xa1bb43,jsx as _0x4dabb7,jsxs as _0x2b00c1}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x5cdbed,ChartRenderMode as _0x268ec5,ChartThemeService as _0x23197c,ChartTypeBits as _0x3414f3,ChartWaterfallStyleTarget as _0x6a9b13,IChartRenderModelManagerService as _0xc28907,RTLChartStyle as _0x46c996,chartBitsUtils as _0x4c5ed5,chartTypeCanUseTrendLine as _0xae124c,resolveChartRuntimeStyle as _0xca4f0b,resolveDefaultChartHostFrameStyle as _0x1b98f6,toChartModelUpdate as _0x485197}from'@univerjs-pro/engine-chart';import{createPortal as _0x1f6ddd}from'react-dom';import{PivotCellStyleTypeEnum as _0x5d656b,PivotDataFieldDataTypeEnum as _0x1fe7b3,PivotDataFieldSortOperatorEnum as _0x428fd4,PivotFilterTypeEnum as _0x1b814d,PivotLayoutTypeEnum as _0x426ac9,PivotSubtotalPositionEnum as _0x10ab45,PivotSubtotalTypeEnum as _0x282c8a,PivotTableFiledAreaEnum as _0x4c815c,PivotTableValuePositionEnum as _0x288ba5,isErrorValue as _0x426ce3,isPrefixValue as _0x1b2084}from'@univerjs-pro/engine-pivot';var fr=_0x2353bc(0x207),pr=_0x2353bc(0x407);const mr=_0x2353bc(0x2f8),hr={};function gr(_0x1fa658,_0x420303){const _0x5ecb5a=_0x2353bc;let _0x3baf80=_0x39b411(_0x4c7ae7),_0x970187=_0x25b5d2(_0x3baf80,_0x1fa658,_0x420303);return _0x499abf(()=>_0x3baf80[_0x5ecb5a(0x391)][_0x5ecb5a(0x41d)](_0x299cc9(()=>_0x25b5d2(_0x3baf80,_0x1fa658,_0x420303))),_0x970187,!0x1,[_0x420303,_0x3baf80,_0x1fa658]);}function _r(_0x12786b,_0x4cb2b8,_0x290f00){const _0x1394bb=_0x2353bc;let _0x457d99=_0x39b411(_0x4c7ae7),_0x1103c2=_0x2ecb1b(_0x457d99,_0x12786b,_0x4cb2b8,_0x290f00);return _0x499abf(()=>_0x457d99['permissionPointUpdate$'][_0x1394bb(0x41d)](_0x299cc9(()=>_0x2ecb1b(_0x457d99,_0x12786b,_0x4cb2b8,_0x290f00))),_0x1103c2,!0x1,[_0x457d99,_0x4cb2b8,_0x12786b,_0x290f00]);}function vr(_0x4c558c,_0x9fdb4d=_0x2353bc(0x3d5)){const _0x4627bc=_0x2353bc;return{'backgroundImage':_0x4627bc(0x3df)+JSON['stringify'](_0x4c558c)+')','backgroundPosition':_0x9fdb4d===_0x4627bc(0x42b)?_0x4627bc(0x2e2):_0x4627bc(0x4b2),'backgroundRepeat':_0x9fdb4d==='repeat'?_0x4627bc(0x42b):_0x4627bc(0x2bd),'backgroundSize':_0x9fdb4d===_0x4627bc(0x3d5)?'cover':_0x4627bc(0x3b6)};}const yr={'alignment':_0x2353bc(0x20a),'currency':_0x2353bc(0x200),'decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x2353bc(0x3b6),'numberFormat':_0x2353bc(0x3f3)},br={'CNY':'¥','EUR':'€','USD':'$'};function xr(_0x41706e){const _0x13a8ff=_0x2353bc;var _0x3560d5;let _0x380462=Tr(((_0x3560d5=_0x41706e[_0x13a8ff(0x1d8)][_0x13a8ff(0x3e3)])==null||(_0x3560d5=_0x3560d5[_0x13a8ff(0x348)])==null?void 0x0:_0x3560d5['pattern'])??'');return{...yr,..._0x380462,..._0x41706e[_0x13a8ff(0x294)]};}function Sr(_0x2a8dc1,_0xd71f9d){const _0x53f312=_0x2353bc;let _0x28391b={..._0x2a8dc1[_0x53f312(0x294)],..._0xd71f9d},_0x523c9a=xr({..._0x2a8dc1,'appearance':_0x28391b}),_0x3918f4=_0x2a8dc1['shapeData'][_0x53f312(0x3e3)]??{'formula':''};return{..._0x2a8dc1,'appearance':_0x28391b,'shapeData':{..._0x2a8dc1[_0x53f312(0x1d8)],'formulaBinding':{..._0x3918f4,'numberFormat':{'pattern':Cr(_0x523c9a[_0x53f312(0x348)],_0x523c9a[_0x53f312(0x201)],_0x523c9a[_0x53f312(0x241)])}}}};}function Cr(_0x3973a3,_0x2d6d26,_0x5d86b8){const _0x368608=_0x2353bc;let _0x164bed=Math['max'](0x0,Math[_0x368608(0x314)](0x8,Math[_0x368608(0x384)](_0x2d6d26))),_0x3c3aa5=_0x164bed?'.'+'0'[_0x368608(0x42b)](_0x164bed):'';switch(_0x3973a3){case _0x368608(0x3c4):return'0'+_0x3c3aa5;case _0x368608(0x327):return'0'+_0x3c3aa5+'%';case _0x368608(0x241):return(br[_0x5d86b8]??_0x5d86b8)+_0x368608(0x257)+_0x3c3aa5;case _0x368608(0x39e):return'#,##0'+_0x3c3aa5;case _0x368608(0x1be):case _0x368608(0x3f3):return _0x368608(0x400);}}function wr(_0xad118b,_0x4eb116,_0x2b9b34){const _0x161ee8=_0x2353bc;return _0x2b9b34[_0x161ee8(0x348)]!==_0x161ee8(0x1be)||typeof _0x4eb116!=_0x161ee8(0x3c4)||!Number['isFinite'](_0x4eb116)?_0xad118b:new Intl[(_0x161ee8(0x38e))](void 0x0,{'notation':_0x161ee8(0x1be),'minimumFractionDigits':_0x2b9b34['decimalPlaces']??0x0,'maximumFractionDigits':_0x2b9b34['decimalPlaces']??0x0})[_0x161ee8(0x347)](_0x4eb116);}function Tr(_0x2f543a){const _0x47b3c0=_0x2353bc;var _0x3237f4,_0x43afd7;if(!_0x2f543a||_0x2f543a===_0x47b3c0(0x400))return{};let _0x407347=_0x2f543a[_0x47b3c0(0x208)](/\.([0#]+)/),_0x332cab=(_0x407347==null||(_0x3237f4=_0x407347[0x1])==null?void 0x0:_0x3237f4[_0x47b3c0(0x4da)])??0x0;if(_0x2f543a['includes']('%'))return{'decimalPlaces':_0x332cab,'numberFormat':_0x47b3c0(0x327)};let _0x367d33=(_0x43afd7=Object[_0x47b3c0(0x2ff)](br)[_0x47b3c0(0x397)](([,_0xae1bca])=>_0x2f543a[_0x47b3c0(0x331)](_0xae1bca)))==null?void 0x0:_0x43afd7[0x0];return _0x367d33?{'currency':_0x367d33,'decimalPlaces':_0x332cab,'numberFormat':'currency'}:{'decimalPlaces':_0x332cab,'numberFormat':_0x2f543a['includes'](',')?'grouped':'number'};}const Er={'center':_0x2353bc(0x4b2),'left':_0x2353bc(0x4e6),'right':'flex-end'};function Dr({dashboardId:_0x48d429,unitId:_0x5b6f48,widget:_0x983fc8}){const _0x26021b=_0x2353bc;var _0x285c28,_0x1643a4,_0x5d79db,_0x1f276e,_0x736c6e,_0x37f13c,_0x20c8f6,_0x392b5c,_0x19bc59;let _0x59cd7d=_0x39b411(_0xbf6a95),_0x54d9ac=_0x39b411(_0x5482b5),_0x9bdeff=_0x39b411(_0x5cd3ee),_0x1105eb=_0x56a185(()=>({'hostType':_0x51ec78[_0x26021b(0x4eb)],'unitId':_0x5b6f48,'subUnitId':_0x48d429,'shapeId':_0x983fc8['id']}),[_0x48d429,_0x5b6f48,_0x983fc8['id']]),[_0x13929c,_0x20f4e5]=_0x2be63d(()=>_0x59cd7d[_0x26021b(0x1c6)](_0x1105eb)),[_0x561b83,_0x2a02d9]=_0x2be63d(()=>{const _0x31d6ef=_0x26021b;var _0x50af33;return(_0x50af33=_0x59cd7d['getResult'](_0x1105eb))==null?void 0x0:_0x50af33[_0x31d6ef(0x284)];}),[_0x3bade5,_0x29e01c]=_0x2be63d(),_0x4fce3b=_0x35f949(null),_0x5bda28=_0x35f949(null),_0x23555b=xr(_0x983fc8);_0x38e78f(()=>{const _0x572182=_0x26021b;let _0x29665c=_0x59cd7d[_0x572182(0x4f6)][_0x572182(0x2f4)](_0x10c5b1=>{const _0x9cd0fa=_0x572182;_0x10c5b1[_0x9cd0fa(0x2f7)]===_0x5b6f48&&_0x10c5b1[_0x9cd0fa(0x4d4)]===_0x48d429&&_0x10c5b1[_0x9cd0fa(0x1ce)]===_0x983fc8['id']&&(_0x20f4e5(_0x10c5b1['presentation']),_0x2a02d9(_0x10c5b1['result'][_0x9cd0fa(0x284)]));});return()=>_0x29665c[_0x572182(0x20f)]();},[_0x48d429,_0x59cd7d,_0x1105eb,_0x5b6f48,_0x983fc8['id']]),_0x38e78f(()=>{const _0x72ea69=_0x26021b;let _0x57dfb8=_0x23555b[_0x72ea69(0x48f)];if(!_0x57dfb8||_0x57dfb8[_0x72ea69(0x4b3)]!==_0x26a785[_0x72ea69(0x43f)])return;let _0x555523=_0x54d9ac['getImageSourceCache'](_0x57dfb8[_0x72ea69(0x24c)],_0x57dfb8[_0x72ea69(0x4b3)]);if(_0x555523!=null&&_0x555523['src'])return;let _0x1a7326=!0x0;return _0x54d9ac[_0x72ea69(0x1fb)](_0x57dfb8['source'])[_0x72ea69(0x388)](_0x9057b0=>{_0x1a7326&&_0x29e01c({'source':_0x57dfb8['source'],'value':_0x9057b0});})['catch'](()=>void 0x0),()=>{_0x1a7326=!0x1;};},[_0x23555b['backgroundImage'],_0x54d9ac]);let _0x325981=((_0x285c28=_0x23555b[_0x26021b(0x48f)])==null?void 0x0:_0x285c28[_0x26021b(0x4b3)])===_0x26a785[_0x26021b(0x43f)]?((_0x1643a4=_0x54d9ac[_0x26021b(0x3c3)](_0x23555b[_0x26021b(0x48f)][_0x26021b(0x24c)],_0x23555b[_0x26021b(0x48f)][_0x26021b(0x4b3)]))==null?void 0x0:_0x1643a4[_0x26021b(0x2dd)])??((_0x3bade5==null?void 0x0:_0x3bade5['source'])===_0x23555b[_0x26021b(0x48f)][_0x26021b(0x24c)]?_0x3bade5[_0x26021b(0x284)]:''):((_0x5d79db=_0x23555b[_0x26021b(0x48f)])==null?void 0x0:_0x5d79db[_0x26021b(0x24c)])??'',_0x555868=_0x983fc8[_0x26021b(0x1d8)]['shapeText'],_0x39a2ad=_0x555868&&_0x26021b(0x4c1)in _0x555868?(_0x1f276e=_0x555868[_0x26021b(0x4c1)])==null?void 0x0:_0x1f276e[_0x26021b(0x4c4)]:void 0x0,_0xf6462b=wr((_0x13929c==null?void 0x0:_0x13929c[_0x26021b(0x452)])??'',_0x561b83,_0x23555b),_0x8f34a8=_0x983fc8[_0x26021b(0x1d8)][_0x26021b(0x47e)],_0x296aad=_0x983fc8[_0x26021b(0x1d8)][_0x26021b(0x445)],_0x399cb7=_0x39a2ad==null||(_0x736c6e=_0x39a2ad[_0x26021b(0x50b)])==null?void 0x0:_0x736c6e[_0x26021b(0x33c)],_0x638de5=_0x983fc8[_0x26021b(0x24b)]??_0x983fc8[_0x26021b(0x448)]??'';return _0x38e78f(()=>{const _0x465411=_0x26021b;let _0x2e5627=_0x4fce3b['current'],_0x51ddf8=_0x5bda28['current'];if(!_0x2e5627||!_0x51ddf8)return;let _0x5e76ab=()=>{const _0x88e4b5=_0x1cf6;if(_0x23555b[_0x88e4b5(0x1e2)]===_0x88e4b5(0x509)||!_0x2e5627['clientWidth']||!_0x2e5627['clientHeight']){_0x51ddf8[_0x88e4b5(0x3f1)]['fontSize']=_0x23555b[_0x88e4b5(0x444)]+'px';return;}let _0x5780ce=0x1,_0x485246=0x48,_0x46204e=_0x5780ce;for(;_0x5780ce<=_0x485246;){let _0x4479f9=Math[_0x88e4b5(0x1ef)]((_0x5780ce+_0x485246)/0x2);_0x51ddf8[_0x88e4b5(0x3f1)][_0x88e4b5(0x444)]=_0x4479f9+'px',_0x51ddf8[_0x88e4b5(0x4dd)]<=_0x2e5627[_0x88e4b5(0x2b8)]&&_0x51ddf8[_0x88e4b5(0x48e)]<=_0x2e5627[_0x88e4b5(0x249)]?(_0x46204e=_0x4479f9,_0x5780ce=_0x4479f9+0x1):_0x485246=_0x4479f9-0x1;}_0x51ddf8['style'][_0x88e4b5(0x444)]=_0x46204e+'px';};if(_0x5e76ab(),typeof ResizeObserver>'u')return;let _0x392835=new ResizeObserver(_0x5e76ab);return _0x392835['observe'](_0x2e5627),()=>_0x392835[_0x465411(0x1ad)]();},[_0x23555b[_0x26021b(0x444)],_0x23555b[_0x26021b(0x1e2)],_0xf6462b]),_0x2b00c1(_0x26021b(0x442),{'data-dashboard-formula-shape':_0x983fc8['id'],'className':_0x26021b(0x2ad),'style':{'backgroundColor':((_0x37f13c=_0x983fc8[_0x26021b(0x294)])==null?void 0x0:_0x37f13c[_0x26021b(0x394)])??((_0x8f34a8==null?void 0x0:_0x8f34a8[_0x26021b(0x446)])===_0x1869dd[_0x26021b(0x1e9)]?_0x8f34a8[_0x26021b(0x33a)]??void 0x0:void 0x0),'border':(_0x296aad==null?void 0x0:_0x296aad['lineStrokeType'])===_0x19c511[_0x26021b(0x289)]?(_0x296aad[_0x26021b(0x3c9)]??0x1)+'px\x20solid\x20'+(_0x296aad[_0x26021b(0x33a)]??_0x26021b(0x2e9)):void 0x0,'borderRadius':_0x983fc8[_0x26021b(0x34b)]===_0x4387d7['RoundRect']?0xc:void 0x0,'color':((_0x20c8f6=_0x983fc8[_0x26021b(0x294)])==null?void 0x0:_0x20c8f6[_0x26021b(0x204)])??(_0x13929c==null?void 0x0:_0x13929c[_0x26021b(0x33a)])??(_0x399cb7==null||(_0x392b5c=_0x399cb7['cl'])==null?void 0x0:_0x392b5c[_0x26021b(0x491)])??void 0x0,'fontWeight':_0x399cb7!=null&&_0x399cb7['bl']?0x258:void 0x0,'textAlign':_0x23555b[_0x26021b(0x22e)]},'children':[_0x325981&&_0x4dabb7('img',{'src':_0x325981,'alt':'','aria-hidden':_0x26021b(0x1d5),'className':_0x26021b(0x454),'style':{'objectFit':((_0x19bc59=_0x23555b['backgroundImage'])==null?void 0x0:_0x19bc59['fit'])??_0x26021b(0x3d5)}}),_0x2b00c1(_0x26021b(0x442),{'className':_0x26021b(0x4bc),'children':[_0x638de5&&_0x4dabb7(_0x26021b(0x442),{'data-dashboard-formula-description':!0x0,'className':_0x26021b(0x252),'children':_0x638de5}),_0x4dabb7(_0x26021b(0x442),{'ref':_0x4fce3b,'data-dashboard-formula-value':!0x0,'aria-label':_0x638de5||_0x9bdeff['t'](_0x26021b(0x268)),'className':_0x26021b(0x22f),'style':{'justifyContent':Er[_0x23555b['alignment']]},'children':_0x4dabb7('span',{'ref':_0x5bda28,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x23555b[_0x26021b(0x1e2)],'className':_0x26021b(0x247),'children':_0xf6462b})})]})]});}function Y(_0x226977,_0x5c9ca8){return function(_0x5dff4d,_0x5c65d3){_0x5c9ca8(_0x5dff4d,_0x5c65d3,_0x226977);};}function Or(_0x31cfa6,_0x399b7f,_0x53415c,_0x38eadd){const _0x309298=_0x2353bc;var _0x4e895f=arguments['length'],_0x3c425f=_0x4e895f<0x3?_0x399b7f:_0x38eadd===null?_0x38eadd=Object[_0x309298(0x286)](_0x399b7f,_0x53415c):_0x38eadd,_0x9be2b9;if(typeof Reflect==_0x309298(0x43c)&&typeof Reflect[_0x309298(0x1f8)]==_0x309298(0x46e))_0x3c425f=Reflect[_0x309298(0x1f8)](_0x31cfa6,_0x399b7f,_0x53415c,_0x38eadd);else{for(var _0x54c9b9=_0x31cfa6['length']-0x1;_0x54c9b9>=0x0;_0x54c9b9--)(_0x9be2b9=_0x31cfa6[_0x54c9b9])&&(_0x3c425f=(_0x4e895f<0x3?_0x9be2b9(_0x3c425f):_0x4e895f>0x3?_0x9be2b9(_0x399b7f,_0x53415c,_0x3c425f):_0x9be2b9(_0x399b7f,_0x53415c))||_0x3c425f);}return _0x4e895f>0x3&&_0x3c425f&&Object[_0x309298(0x1cc)](_0x399b7f,_0x53415c,_0x3c425f),_0x3c425f;}let kr=class{constructor(_0x3a720e,_0x20a338,_0x306103){const _0x1d40a3=_0x2353bc;this[_0x1d40a3(0x1ea)]=_0x3a720e,this['_chartThemeService']=_0x20a338,this['_renderModelManager']=_0x306103;}[_0x2353bc(0x253)](){const _0x4fdfe3=_0x2353bc;return this['_renderModelManager'][_0x4fdfe3(0x4ca)](_0x268ec5['Dom'],this['_createContext']());}[_0x2353bc(0x307)](_0x7a2d38){const _0x551d23=_0x2353bc;let _0x28b375=_0x7a2d38[_0x551d23(0x37a)][_0x551d23(0x4e8)];if(!_0x28b375)throw Error(_0x551d23(0x1b6)+_0x7a2d38[_0x551d23(0x4a5)]+_0x551d23(0x20e));let _0xd72453=this[_0x551d23(0x1ea)]['getDirection']();return{'config':_0x28b375,'style':_0xca4f0b({..._0x7a2d38[_0x551d23(0x37a)]['style'],'runtime':_0x7a2d38[_0x551d23(0x37a)]['getRuntimeContext'](_0xd72453),'direction':_0xd72453},_0x28b375['type'])};}[_0x2353bc(0x381)](){const _0x12664f=_0x2353bc;return{'resolveHostStyle':({style:_0xfad8e})=>_0x1b98f6({'style':_0xfad8e,'getRenderColor':_0x4f553c=>this[_0x12664f(0x42e)][_0x12664f(0x3f8)](_0x4f553c)}),'resolveRenderBackgroundColor':({hostStyle:_0x38dc70})=>_0x38dc70['fill']};}};kr=Or([Y(0x0,_0x2a19f9(_0x5cd3ee)),Y(0x1,_0x2a19f9(_0x23197c)),Y(0x2,_0xc28907)],kr);function Ar(_0x20326a,_0x4f9651){const _0x5cb167=_0x2353bc;var _0x27698f;_0x20326a[_0x5cb167(0x3f1)][_0x5cb167(0x394)]=_0x4f9651[_0x5cb167(0x47e)]??_0x5cb167(0x505),_0x20326a[_0x5cb167(0x3f1)]['border']=(_0x27698f=_0x4f9651[_0x5cb167(0x42c)])!=null&&_0x27698f['color']&&_0x4f9651['border'][_0x5cb167(0x3c9)]?_0x4f9651[_0x5cb167(0x42c)][_0x5cb167(0x3c9)]+_0x5cb167(0x358)+_0x4f9651[_0x5cb167(0x42c)]['color']:'',_0x20326a[_0x5cb167(0x3f1)][_0x5cb167(0x50f)]=_0x4f9651[_0x5cb167(0x30d)]?_0x4f9651[_0x5cb167(0x30d)]+'px':'',_0x20326a[_0x5cb167(0x3f1)][_0x5cb167(0x271)]=_0x5cb167(0x395),_0x20326a[_0x5cb167(0x3f1)][_0x5cb167(0x221)]=_0x5cb167(0x2ec);}function jr(_0x2e4da4){'@babel/helpers - typeof';const _0x65fba7=_0x2353bc;return jr=typeof Symbol==_0x65fba7(0x46e)&&typeof Symbol[_0x65fba7(0x25e)]==_0x65fba7(0x4f4)?function(_0x4c4a9c){return typeof _0x4c4a9c;}:function(_0x5e8e63){const _0x5c3bb8=_0x65fba7;return _0x5e8e63&&typeof Symbol==_0x5c3bb8(0x46e)&&_0x5e8e63[_0x5c3bb8(0x419)]===Symbol&&_0x5e8e63!==Symbol[_0x5c3bb8(0x215)]?'symbol':typeof _0x5e8e63;},jr(_0x2e4da4);}function Mr(_0x16d32a,_0x22dc45){const _0x555271=_0x2353bc;if(jr(_0x16d32a)!=_0x555271(0x43c)||!_0x16d32a)return _0x16d32a;var _0x39fe94=_0x16d32a[Symbol['toPrimitive']];if(_0x39fe94!==void 0x0){var _0x20f17c=_0x39fe94[_0x555271(0x2ed)](_0x16d32a,_0x22dc45||_0x555271(0x431));if(jr(_0x20f17c)!=_0x555271(0x43c))return _0x20f17c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x22dc45===_0x555271(0x4ff)?String:Number)(_0x16d32a);}function Nr(_0x1b2372){const _0xbb8a1e=_0x2353bc;var _0x543d0f=Mr(_0x1b2372,'string');return jr(_0x543d0f)==_0xbb8a1e(0x4f4)?_0x543d0f:_0x543d0f+'';}function Pr(_0x1bd1ca,_0x15756a,_0x4f287d){const _0x236068=_0x2353bc;return(_0x15756a=Nr(_0x15756a))in _0x1bd1ca?Object[_0x236068(0x1cc)](_0x1bd1ca,_0x15756a,{'value':_0x4f287d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1bd1ca[_0x15756a]=_0x4f287d,_0x1bd1ca;}var Fr=class extends _0x2e76da{constructor(_0x2627f1,_0x41d875){const _0xe925a8=_0x2353bc;super(),this[_0xe925a8(0x4a5)]=_0x2627f1,this[_0xe925a8(0x299)]=_0x41d875,Pr(this,_0xe925a8(0x224),_0x268ec5['Dom']);}[_0x2353bc(0x3c1)](){const _0x2747a6=_0x2353bc;return{'width':Math['max'](0x1,this[_0x2747a6(0x299)][_0x2747a6(0x2b8)]),'height':Math['max'](0x1,this[_0x2747a6(0x299)][_0x2747a6(0x249)])};}[_0x2353bc(0x26a)](_0x1e83bc){const _0x42c504=_0x2353bc;Ar(this[_0x42c504(0x299)],_0x1e83bc);}async[_0x2353bc(0x4df)](){const _0x4a54c7=_0x2353bc;return this[_0x4a54c7(0x299)];}[_0x2353bc(0x1aa)](){const _0x41b344=_0x2353bc;return this[_0x41b344(0x299)][_0x41b344(0x3b1)];}[_0x2353bc(0x4af)](){}['markReady'](){}['markNotReady'](){}};function Ir({isRowDirection:_0x2acb18,runtime:_0x168129}){const _0x3a860b=_0x2353bc;let _0x497a47=_0x35f949(null),_0x314d78=_0x39b411(_0x5cd3ee),_0x528d9f=_0x39b411(_0x34ac8c),_0x4daed=_0x39b411(kr),_0x1dbdcd=_0x39b411(_0x277079);return _0x38e78f(()=>{const _0x57b2c1=_0x1cf6;let _0x123d13=_0x497a47[_0x57b2c1(0x38f)];if(!_0x123d13)return;_0x123d13[_0x57b2c1(0x48d)]();let {chartId:_0x531352,model:_0x58e3ab}=_0x168129,_0x4e2f34=_0x58e3ab[_0x57b2c1(0x30a)],_0x53c678=new Fr(_0x531352,_0x123d13),_0x3fca7a=_0x4daed['createDomChartInstance'](),_0x4c7887=!0x1,_0x470f80=null,_0x1671a4=null,_0x57e47d=null,_0x298592=null,_0x8fd474=!0x1,_0x2b459f=!0x1,_0x47ae73=Promise[_0x57b2c1(0x240)]();_0x3fca7a[_0x57b2c1(0x324)](_0x53c678);let _0x3fe789=()=>{const _0x17afd8=_0x57b2c1;var _0xb5754b,_0x118f2b,_0x4bc69c,_0x4f5d5f;if(document[_0x17afd8(0x3cb)]===_0x17afd8(0x395)||(_0xb5754b=(_0x118f2b=window)[_0x17afd8(0x27c)])!=null&&(_0xb5754b=_0xb5754b[_0x17afd8(0x2ed)](_0x118f2b,'(prefers-reduced-motion:\x20reduce)'))!=null&&_0xb5754b[_0x17afd8(0x285)]||(_0x4bc69c=(_0x4f5d5f=window)[_0x17afd8(0x27c)])!=null&&(_0x4bc69c=_0x4bc69c[_0x17afd8(0x2ed)](_0x4f5d5f,'print'))!=null&&_0x4bc69c[_0x17afd8(0x285)]||!_0x123d13[_0x17afd8(0x3b1)])return!0x1;let _0x51e2dd=_0x123d13[_0x17afd8(0x4db)]();return _0x51e2dd[_0x17afd8(0x3c9)]>0x0&&_0x51e2dd[_0x17afd8(0x312)]>0x0&&_0x51e2dd[_0x17afd8(0x214)]>0x0&&_0x51e2dd[_0x17afd8(0x2d0)]>0x0&&_0x51e2dd[_0x17afd8(0x20a)]<window[_0x17afd8(0x335)]&&_0x51e2dd[_0x17afd8(0x45e)]<window[_0x17afd8(0x47d)];},_0x12cb99=()=>{const _0x3c75e3=_0x57b2c1;_0x1671a4!==null&&clearTimeout(_0x1671a4),_0x123d13[_0x3c75e3(0x29d)][_0x3c75e3(0x489)]=_0x3c75e3(0x1d5),_0x123d13[_0x3c75e3(0x29d)][_0x3c75e3(0x35b)]=String(_0x5cdbed),_0x1671a4=setTimeout(()=>{const _0x556e28=_0x3c75e3;_0x1671a4=null,delete _0x123d13[_0x556e28(0x29d)][_0x556e28(0x489)],delete _0x123d13[_0x556e28(0x29d)]['baseChartDataAnimationDuration'];},_0x5cdbed);},_0x15972e=_0x2279c5=>{const _0x446758=_0x57b2c1;if(_0x4c7887)return;if(_0x470f80!==null&&(clearTimeout(_0x470f80),_0x470f80=null),!_0x58e3ab['config']){_0x2b459f||=_0x2279c5;return;}_0x123d13[_0x446758(0x29d)][_0x446758(0x3e2)]=String(_0x58e3ab['chartType']),_0x123d13[_0x446758(0x29d)]['chartRowDirection']=String(_0x2acb18);let _0x460073=_0x4daed[_0x446758(0x307)](_0x168129),_0x267390={'chartId':_0x531352,'config':_0x460073[_0x446758(0x4e8)],'style':_0x460073['style']};_0x47ae73=_0x47ae73[_0x446758(0x388)](async()=>{const _0x53cfe0=_0x446758;_0x4c7887||(_0x123d13['dataset'][_0x53cfe0(0x46b)]=String(Number(_0x123d13[_0x53cfe0(0x29d)]['renderRevision']??0x0)+0x1),_0x2279c5&&_0x57e47d&&_0x3fca7a[_0x53cfe0(0x276)]&&_0x3fe789()?(await _0x3fca7a[_0x53cfe0(0x276)](_0x57e47d,_0x267390,{'duration':_0x5cdbed}),_0x4c7887||_0x12cb99()):await _0x3fca7a[_0x53cfe0(0x34e)](_0x267390),_0x57e47d=_0x267390);})[_0x446758(0x3d2)](_0x17964e=>_0x528d9f[_0x446758(0x1b4)](_0x446758(0x49f),_0x17964e));},_0x4b87e7=(_0x57a115=!0x1)=>{_0x2b459f||=_0x57a115,!_0x8fd474&&(_0x8fd474=!0x0,queueMicrotask(()=>{_0x8fd474=!0x1;let _0xaab000=_0x2b459f;_0x2b459f=!0x1,_0x15972e(_0xaab000);}));},_0x2baaa2=[_0x4e2f34[_0x57b2c1(0x45c)][_0x57b2c1(0x2f4)](_0x33336f=>{const _0x2f891d=_0x57b2c1;let _0x309603=JSON[_0x2f891d(0x492)](_0x33336f);_0x298592!=null&&_0x298592!==_0x309603&&_0x4b87e7(!0x0),_0x298592=_0x309603;}),_0x58e3ab[_0x57b2c1(0x3f9)]['subscribe'](_0x3adde4=>{_0x3adde4&&_0x4b87e7();}),_0x58e3ab[_0x57b2c1(0x2d4)][_0x57b2c1(0x2f4)](()=>_0x4b87e7()),_0x314d78['direction$'][_0x57b2c1(0x2f4)](()=>_0x4b87e7()),_0x4d74fa([_0x1dbdcd[_0x57b2c1(0x227)],_0x1dbdcd[_0x57b2c1(0x3d1)]])[_0x57b2c1(0x41d)](_0x260464(0x1))[_0x57b2c1(0x2f4)](()=>_0x4b87e7())],_0x3b7d77=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x187193=_0x57b2c1;_0x4c7887||(_0x53c678[_0x187193(0x4af)](),_0x470f80!==null&&clearTimeout(_0x470f80),_0x470f80=setTimeout(()=>_0x4b87e7(),0x64));});return _0x3b7d77==null||_0x3b7d77[_0x57b2c1(0x23b)](_0x123d13),()=>{const _0x1e3c2b=_0x57b2c1;_0x4c7887=!0x0,_0x470f80!==null&&clearTimeout(_0x470f80),_0x1671a4!==null&&clearTimeout(_0x1671a4),delete _0x123d13[_0x1e3c2b(0x29d)][_0x1e3c2b(0x489)],delete _0x123d13[_0x1e3c2b(0x29d)][_0x1e3c2b(0x35b)],_0x3b7d77==null||_0x3b7d77[_0x1e3c2b(0x1ad)](),_0x2baaa2[_0x1e3c2b(0x3c0)](_0x5e0228=>_0x5e0228[_0x1e3c2b(0x20f)]()),_0x3fca7a[_0x1e3c2b(0x2d9)](),_0x53c678['dispose'](),_0x123d13[_0x1e3c2b(0x48d)]();};},[_0x2acb18,_0x314d78,_0x528d9f,_0x4daed,_0x168129,_0x1dbdcd]),_0x4dabb7(_0x3a860b(0x442),{'ref':_0x497a47,'data-u-comp':_0x3a860b(0x2b5),'className':_0x3a860b(0x41b)});}function Lr({filters:_0x231dff,onRuntimeChange:_0x52cee9,unitId:_0x329254,widget:_0x1a3c69}){const _0x1e70b0=_0x2353bc;let _0x4fe889=_0x39b411(_0x4074e5),_0x6c10c5=_0x39b411(_0x5cd3ee),_0x48ec66=_0x39b411(_0x34ac8c),_0x393b04=_0x39b411(_0x22ef82),[_0x2eb232,_0xf5b165]=_0x2be63d(null),[_0x3b723e,_0x1252f7]=_0x2be63d(!0x1),[_0x396abc,_0x5393d6]=_0x2be63d(null),_0x4257d0=_0x35f949(_0x1e70b0(0x3ea)+_0x325e5d(0x8)),_0x2e4a46=_0x4fe889['getUnit'](_0x329254,_0x51ec78[_0x1e70b0(0x4eb)]),_0x1251d7=_0x2e4a46==null?void 0x0:_0x2e4a46['getSnapshot']()['tables'][_0x1a3c69['tableId']],_0x636774=_0x1251d7==null?void 0x0:_0x1251d7[_0x1e70b0(0x451)][_0x1a3c69[_0x1e70b0(0x399)]],_0x16a62e=Rr(_0x636774);if(_0x38e78f(()=>{const _0xc392f=_0x1e70b0;if(!_0x16a62e)return;let _0x35a8b8=_0x4257d0['current'];return _0x393b04['acquireChartRuntime'](_0x35a8b8,{'unitId':_0x329254,'tableId':_0x1a3c69[_0xc392f(0x475)],'viewId':_0x1a3c69['pivotViewId'],'filters':[]}),()=>{const _0x592605=_0xc392f;_0x393b04[_0x592605(0x503)](_0x329254,_0x35a8b8),_0x52cee9==null||_0x52cee9(_0x1a3c69['id'],null);};},[_0x16a62e,_0x52cee9,_0x393b04,_0x329254,_0x1a3c69['id'],_0x1a3c69[_0x1e70b0(0x399)],_0x1a3c69[_0x1e70b0(0x475)]]),_0x38e78f(()=>{const _0x29f1cb=_0x1e70b0;if(!Rr(_0x636774))return;let _0xf030c=!0x0,_0x21103a=_0x1a3c69['chart']??_0x636774[_0x29f1cb(0x4e8)]['chart'],_0x2ca16e={'unitId':_0x329254,'tableId':_0x1a3c69[_0x29f1cb(0x475)],'viewId':_0x1a3c69[_0x29f1cb(0x399)],'filters':[_0x636774[_0x29f1cb(0x1b3)]??null,..._0x231dff]};return _0x393b04[_0x29f1cb(0x41f)](_0x329254,_0x4257d0[_0x29f1cb(0x38f)],_0x2ca16e,_0x21103a)[_0x29f1cb(0x388)](_0x54e590=>{const _0x2c573d=_0x29f1cb;if(!_0xf030c||!_0x54e590)return;let _0x5de8c0=_0x393b04[_0x2c573d(0x33e)](_0x329254,_0x4257d0[_0x2c573d(0x38f)])??null;_0xf5b165(_0x54e590),_0x5393d6(_0x5de8c0),_0x1252f7(!0x1),_0x52cee9==null||_0x52cee9(_0x1a3c69['id'],_0x5de8c0);})[_0x29f1cb(0x3d2)](_0x58a6d9=>{const _0x2f73d6=_0x29f1cb;_0x48ec66[_0x2f73d6(0x1b4)]('[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x58a6d9),_0xf030c&&(_0xf5b165(null),_0x1252f7(!0x0));}),()=>{_0xf030c=!0x1;};},[_0x231dff,_0x48ec66,_0x52cee9,_0x393b04,_0x329254,_0x636774,_0x1a3c69[_0x1e70b0(0x4d8)],_0x1a3c69['id'],_0x1a3c69[_0x1e70b0(0x399)],_0x1a3c69[_0x1e70b0(0x475)]]),!Rr(_0x636774))return _0x4dabb7(_0x1e70b0(0x442),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','children':_0x6c10c5['t'](_0x1e70b0(0x3d7))});let _0x3ffa9b=_0x393b04[_0x1e70b0(0x33e)](_0x329254,_0x4257d0[_0x1e70b0(0x38f)])===_0x396abc?_0x396abc:null;return _0x2eb232&&_0x3ffa9b?_0x4dabb7(Ir,{'isRowDirection':_0x2fa6dd((_0x1a3c69['chart']??_0x636774[_0x1e70b0(0x4e8)][_0x1e70b0(0x4d8)])['orient']),'runtime':_0x3ffa9b}):_0x4dabb7(_0x1e70b0(0x442),{'className':_0x1e70b0(0x2d2),'children':_0x6c10c5['t'](_0x3b723e?'bases-dashboard-ui.pivot.calculationFailed':_0x1e70b0(0x463))});}function Rr(_0x2d5278){const _0x209af7=_0x2353bc;return(_0x2d5278==null?void 0x0:_0x2d5278['type'])===_0x5ee6b5[_0x209af7(0x49c)]&&typeof _0x2d5278[_0x209af7(0x4e8)]=='object'&&_0x2d5278[_0x209af7(0x4e8)]!==null&&_0x209af7(0x4aa)in _0x2d5278['config']&&_0x209af7(0x4d8)in _0x2d5278[_0x209af7(0x4e8)];}const zr={'alignment':'left','fontSize':0x12,'fontSizeMode':_0x2353bc(0x3b6)};function Br(_0x4bb747){const _0x3344ab=_0x2353bc;return{...zr,..._0x4bb747[_0x3344ab(0x294)]};}function Vr(_0x55cfa2){const _0x44e5f2=_0x2353bc;var _0x392692;return((_0x392692=_0x55cfa2['body'])==null?void 0x0:_0x392692['dataStream'][_0x44e5f2(0x436)](/\r\n$/,'')[_0x44e5f2(0x436)](/\r/g,'\x0a'))??'';}function _0x5550(){const _0x495b73=['bases-dashboard-ui.pivot.numberFormat','pageRows','base-dashboard-pivot-chart-','univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize','span','bases-dashboard-ui.dashboard.add','trim','bases-dashboard-ui.operators.isEmpty','radar','style','isSubtotal','general','BEFORE','getSnapshot','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.tableOnly','getRenderColor','config$','addFieldWithSourceId','2200219fEeaiZ','GREATER_THAN','supports','dashboardOrder','map','General','set','showRowGrandTotal','acquireChartRuntime','bases-dashboard-ui.pivot.removeField','pluginName','bases-dashboard-ui.chart.common.chartAndAxisTitles','1.0.3','clientY','bases-dashboard-ui.pivot.layoutCompact','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','repeatColLabels','univer-size-5\x20univer-rotate-90','NOT_CONTAINS','univer-size-4','bases-dashboard-ui.pivot.pageDirection','univer-shrink-0\x20univer-px-3','viewOrder','bases-dashboard-ui.pivot.pageWrap','rowSubtotalPosition','univer-flex','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','Number','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','series','constructor','bases-dashboard-ui.pivot.addToFilter','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','items','pipe','test','refreshChartRuntime','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','bases-dashboard-ui.pivot.layoutOutline','bases-dashboard-ui.pivot.top','item','bases-dashboard-ui.dashboard.search','scrollTop','univer-bg-gray-50/80\x20dark:!univer-bg-gray-800/70\x20univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-p-3\x20dark:!univer-border-gray-700','setConfig','Positive','subItem','Rating','repeat','border','univer-pointer-events-none\x20univer-absolute\x20univer-z-30\x20univer-appearance-none\x20univer-p-0\x20univer-opacity-0\x20!univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','_chartThemeService','bases-dashboard-ui.pivot.max','bases-dashboard-ui.chart.common.switchRowColumn','default','small','gray','onCommit','MultipleGrandTotal','replace','67974DtPsPC','files','layout','bases-dashboard-ui.pivot.ascending','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','object','fieldId','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','UUID','base-pivot-chart-configuration','univer-text-sm\x20univer-font-medium','div','univer-grid\x20univer-gap-4\x20univer-p-4','fontSize','stroke','fillType','_configService','title','bases-dashboard-ui.dashboardInspector.reset','bases-dashboard-ui.pivot.showRowSubtotal','info','bases-dashboard-ui.pivot.product','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','minmax(0,\x203fr)\x20minmax(0,\x202fr)','bases-dashboard-ui.dashboardInspector.description','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','views','text','blur','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','page:','Row','fieldOrder','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','univer-flex\x20univer-h-full\x20univer-w-[380px]\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','parentElement','bases-dashboard-ui.dashboardInspector.contain','data$','base-pivot-chart-setup','top','bases-dashboard-ui.dashboard.text','bases-dashboard-ui.dashboardInspector.editFormula','accept','initialLayouts','bases-dashboard-ui.pivot.calculating','some','select','bases-dashboard-ui.chart.common.setup','setSubtotalType','ManualFilter','image/*','dimension','renderRevision','Sankey','dashboard-chart-style','function','bases-dashboard-ui.dashboardInspector.clear','bases-dashboard-ui.pivot.display','univer-size-8\x20univer-p-0\x20univer-text-red-500','univer-mx-auto\x20univer-size-6','univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','Scatter','tableId','bases-dashboard-ui.chart.section.relation','pie','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','repeatRowLabels','Value','formatMap','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','innerHeight','fill','bases-dashboard-ui.dashboard.new','funnel','[data-dashboard-widget]','section','tableFieldId','Series','orient','bases-dashboard-ui.chart.section.radar','row','VerticalAxis','baseChartDataAnimation','change','false','bases-dashboard-ui.pivot.countNumbers','replaceChildren','scrollHeight','backgroundImage','rowFields','rgb','stringify','bases-dashboard-ui.operators.notContains','Gauge','bases-dashboard-ui.chart.section.sunburst','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','startY','every','Column','univer-flex\x20univer-items-center\x20univer-gap-2','bases-dashboard-ui.chart.section.pie','Pivot','toLocaleLowerCase','onFilter','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','children','bases-dashboard-ui.pivot.acrossThenDown','UpdatedAt','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','isFinite','chartId','displayMode','bases-dashboard-ui.pivot.pivotConfiguration','bases-dashboard-ui.pivot.sourceFields','dashboard-widget-','pivot','bases-dashboard-ui.chart.section.lineAndArea','headerRowCount','values','Image','syncLayout','bases-dashboard-ui.dashboard.addWidget','data','center','sourceType','rowSpan','onMove','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','bases-dashboard-ui.dashboardInspector.enterValue','packageName','table','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','rows','bases-dashboard-ui.operators.is','exitFullscreen','univer-w-24','dataModel','setLabelFilterInfo','lastCol','doc','ParetoLineSeries','getAttachmentUrl','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','getOptions','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','createChartInstance','onDragOver','dom','bases-dashboard-ui.dashboardInspector.compact','from','univer-flex\x20univer-gap-2','destructive','keydown','segmented','input','subUnitId','bases-dashboard-ui.chart.common.legend','document','Person','chart','BaseDashboard','length','getBoundingClientRect','lastRow','scrollWidth','system','ensureMount','univer-grid\x20univer-gap-4','widgets','toUpperCase','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','Radar','LineAndArea','flex-start','Date','config','base-pivot-chart-','list','UNIVER_BASE','push','itemTypes','bases-dashboard-ui.dashboard.undo','Line','average','univer-flex\x20univer-flex-col\x20univer-gap-4','bases-dashboard-ui.operators.after','base-pivot-fields','symbol','Funnel','presentationChanged$','onCancel','toDate','univer-flex\x20univer-justify-end\x20univer-gap-2','ChartStyle','bases-dashboard-ui.dashboardInspector.uploadImage','univer-size-6\x20!univer-border\x20!univer-border-solid\x20!univer-border-gray-200\x20!univer-bg-gray-0\x20univer-p-0\x20!univer-shadow-none\x20hover:!univer-bg-gray-100\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900\x20dark:hover:!univer-bg-gray-800','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-96\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.addToValue','string','bases-dashboard-ui.dashboardInspector.numberFormat','colView','bases-dashboard-ui.dashboardInspector.currency','releaseChartRuntime','saveAttachment','transparent','field','waterfall.positive','legend','custom','separator','documentStyle','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.addToColumn','36170QJphQa','borderRadius','operator','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','blank','labelId','bases-dashboard-ui.chart.common.series','checkMounted','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','register','disconnect','getId','context','updateFieldPosition','Pie','univer-grid\x20univer-gap-3\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','filter','error','univer-w-full','Base\x20dashboard\x20chart\x20','pageOverThenDown','conditions','bases-dashboard-ui.dashboard.widgetActions','defaultValue','valuePosition','join','univer-size-5\x20univer-text-primary-600','compact','bases-dashboard-ui.dashboardInspector.close','univer-flex\x20univer-min-h-0\x20univer-flex-1','add','stdDevp','bases-dashboard-ui.pivot.rowSubtotalPosition','bases-dashboard-ui.dashboard.section','univer-text-right','getPresentation','measure','bases-dashboard-ui.dashboard.redo','bases-dashboard-ui.pivot.displayName','bases-dashboard-ui.operators.greaterThan','bases-dashboard-ui.chart.section.paretoBar','defineProperty','getTableFieldsByDataFieldId','shapeId','univer-box-content\x20univer-size-1.5\x20univer-rounded-full\x20!univer-border-2\x20!univer-border-solid\x20!univer-border-white\x20!univer-bg-primary-600','snapshot','addEventListener','IS_NOT','Subtotal','bases-dashboard-ui.pivot.rows','true','WaterfallSeries','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','shapeData','ChartAndAxisTitles','bases-dashboard-ui.dashboardInspector.custom','bases-dashboard-ui.chart.section.candlestick','239899hmavMD','bases-dashboard-ui.dashboardInspector.data','stopPropagation','Data','sortInfo','bases-dashboard-ui.dashboardInspector.number','fontSizeMode','cumulativeLineStyle','data:','tableOrder','rightY','pointermove','renameField','SolidFill','_localeService','disposeWithMe','bases-dashboard-ui.chart.common.verticalAxis','img','GridlinesAndTicks','floor','bases-dashboard-ui.dashboardInspector.removeImage','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','pointerY','232yMFdKS','bases-dashboard-ui.pivot.repeatColumnLabels','MultiSelect','body','decorate','valueFields','undos','getImage','corner:','bases-dashboard-ui.dashboardInspector.right','Candlestick','executeCommand','USD','decimalPlaces','AFTER','univer-h-full\x20univer-w-full\x20univer-bg-transparent','textColor','Checkbox','onMoveUp','@univerjs-pro/bases-dashboard-ui','match','date','left','baseOn','onDrop','Heatmap','\x20has\x20no\x20render\x20config.','unsubscribe','startX','bases-dashboard-ui.dashboardInspector.decimalPlaces','bases-dashboard-ui.pivot.grandTotal','271638dDHyCC','right','prototype','bases-dashboard-ui.dashboardInspector.unchecked','rootContainerElement','var','bases-dashboard-ui.dashboardInspector.textSize','bases-dashboard-ui.dashboardInspector.textColor','ascending','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','GrandTotal','_config','undoRedoStatus$','resize','boxSizing','bases-dashboard-ui.dashboardInspector.formula','IndicatorLine','mode','base-pivot-table-configuration','univer-truncate','currentTheme$','button','descending','documentElement','bases-dashboard-ui.chart.section.paretoLine','varp','pageView','alignment','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','minmax(0,\x201fr)','tbody','YYYY-MM-DD','bases-dashboard-ui.dashboard.configure','80zRxAjT','onMoveDown','end','bases-dashboard-ui.dashboardInspector.center','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','bases-dashboard-ui.chart.section.funnel','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','observe','trendline','imageSourceType','wordCloud','univer-w-36','resolve','currency','Histogram','bases-dashboard-ui.operators.before','bases-dashboard-ui.pivot.defaultName','bases-dashboard-ui.dashboardInspector.backgroundColor','showRowSubtotal','univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','clientHeight','isHeader','description','source','indicatorLine','removeField','Waterfall','currentTarget','activeRuntimeModel','univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','createDomChartInstance','paragraphId','bases-dashboard-ui.chart.section.histogram','bases-dashboard-ui.dashboardInspector.replaceImage','#,##0','view','bases-dashboard-ui.dashboard.rename','defaultPrevented','onReady','bases-dashboard-ui.dashboardInspector.newCondition','bases-dashboard-ui.pivot.valuePosition','iterator','univer-mt-2\x20univer-w-full','bases-dashboard-ui.dashboardInspector.originalSize','bases-dashboard-ui.chart.section.gridlinesAndTicks','titles','setSortInfo','BASE_DASHBOARD_UI_PLUGIN','indexOf','univer-mt-2','bases-dashboard-ui.dashboardInspector.backgroundImage','bases-dashboard-ui.dashboard.formulaShape','area','setStyle','bases-dashboard-ui.chart.common.horizontalAxis','ownerDocument','univer-grid\x20univer-gap-2\x20univer-p-3','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','columnSpan','GeneralSeries','overflow','size','fields','formula','contains','renderTransition','Trendline','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','move','base-pivot-options','matchMedia','removeEventListener','changed$','AND','showColSubtotal','fullscreenElement','bases-dashboard-ui.pivot.repeatRowLabels','clientX','value','matches','getOwnPropertyDescriptor','onRemove','bases-dashboard-ui.dashboard.fullScreen','SolidLine','univer-flex\x20univer-h-full\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.addToRow','rowView','bases-dashboard-ui.dashboardInspector.left','univer-text-gray-400','setLayout','univer-min-w-0\x20univer-flex-1','bases-dashboard-ui.pivot.layout','bases-dashboard-ui.dashboardInspector.general','bases-dashboard-ui.dashboard.image','appearance','dashboard-chart-setup','TableFilter','WordCloud','Text','_element','bases-dashboard-ui.pivot.dropFieldsHere','bases-dashboard-ui.dashboardInspector.autoFit','bases-dashboard-ui.pivot.count','dataset','kind','version','_injector','bases-dashboard-ui.pivot.filters','bases-dashboard-ui.pivot.blank','change$','dataView','bases-dashboard-ui.pivot.fields','bases-dashboard-ui.chart.common.chartStyle','stdDev','bases-dashboard-ui.operators.lessThanOrEqual','displayName','bases-dashboard-ui.dashboardInspector.loading','bases-dashboard-ui.mobile.moveUp','bases-dashboard-ui.dashboardInspector.style','univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-flex-col\x20univer-justify-center\x20univer-overflow-hidden\x20univer-bg-gray-0\x20univer-p-4\x20univer-text-gray-1000\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-50','Bubble','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','9NQOIMn','getResource','bases-dashboard-ui.pivot.descending','IS_EMPTY','1023704qcaUpR','base-pivot-chart','aside','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','clientWidth','bases-dashboard-ui.pivot.variance','bases-dashboard-ui.chart.section.wordCloud','bases-dashboard-ui.pivot.showColumnSubtotal','original','no-repeat','bases-dashboard-ui.chart.section.treemap','sum','bases-dashboard-ui.pivot.summarizeBy','bases-dashboard-ui.pivot.showColumnGrandTotal','bases-dashboard-ui.chart.common.heatmap','276zzAXvQ','bases-dashboard-ui.chart.section.waterfall','univer-cursor-grab','rightYAxis','bases-dashboard-ui.pivot.fieldSettings','tabular','fit','bases-dashboard-ui.pivot.showRowGrandTotal','barStyle','subtotal','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','redos','getValueIndex','bottom','Boxplot','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','bases-dashboard-ui.pivot.clearFilter','style$','10383SIiYEq','product','univer-w-full\x20univer-justify-start','getCurrentTheme','dispose','bases-dashboard-ui.pivot.dataSource','onStarting','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','src','setFieldFormat','executeChartUpdateConfig','bases-dashboard-ui.dashboardInspector.editData','filterFields','0\x200','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','Chord','Pareto','bases-dashboard-ui.operators.isNot','bases-dashboard-ui.dashboardInspector.cover','245czrfnV','currentColor','showColGrandTotal','max','border-box','call','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-gray-50\x20univer-font-semibold\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.dashboard.deleteWidget','get','univer-group\x20univer-relative\x20univer-flex\x20univer-min-h-0\x20univer-flex-col\x20univer-overflow-visible\x20univer-rounded-lg\x20univer-border\x20univer-shadow-sm\x20univer-transition-shadow','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','subscribe','toJSON','bases-dashboard-ui.pivot.name','unitId','bases-dashboard-ui.config','SingleSelect','CreatedAt','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','waterfall','None','entries','heatmap','univer-flex\x20univer-min-h-full\x20univer-flex-col','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','LESS_THAN_OR_EQUAL','closest','bases-dashboard-ui.dashboard.delete','univer-mb-3\x20univer-text-sm\x20univer-font-medium','createRenderInput','base64Cache','headerMap','dataSource','has','bases-dashboard-ui.pivot.downThenAcross','radius','ceil','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','axis','base-pivot-chart-style','height','Axes','min','resizeDirection','getFieldPositionInfoById','bases-dashboard-ui.chart.chartTypes.','bases-dashboard-ui.pivot.columns','Escape','link','bases-dashboard-ui.dashboardInspector.dataSource','onDragEnd','bases-dashboard-ui.operators.isNotEmpty','contain','bases-dashboard-ui.chart.waterfall.subtotal','options','Currency','pointerup','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','bind','bases-dashboard-ui.pivot.confirm','bases-dashboard-ui.pivot.values','percent','univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','name','index','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','bases-dashboard-ui.dashboardInspector.dragWidget','split','addImageSourceCache','RightVerticalAxis','chart-and-table','includes','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','univer-min-h-11\x20univer-px-3\x20univer-text-base','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','innerWidth','key','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','rowType','color','bases-dashboard-ui.mobile.moveDown','textStyle','fullscreenchange','getChartRuntime','bases-dashboard-ui.chart.common.customize','pareto','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','univer-flex-1','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','target','bases-dashboard-ui.pivot.description','univer-m-3','format','numberFormat','count','getDashboard','shapeType','bases-dashboard-ui.pivot.calculationFailed','rowCount','render','univer-shrink-0\x20univer-rounded-full\x20univer-bg-gray-200\x20univer-px-2\x20univer-py-0.5\x20univer-text-xs\x20univer-text-gray-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-300','bases-dashboard-ui.dashboard.pivotChart','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','Style','localeKey','allowMultiple','dataFieldId','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','univer-border-gray-200\x20dark:!univer-border-gray-700','px\x20solid\x20','ParetoBarSeries','bases-dashboard-ui.pivot.searchFields','baseChartDataAnimationDuration','CONTAINS','slice','\x20/\x20span\x20','focusUnit','bases-dashboard-ui.pivot.stdDevPopulation','isBottomTotal','widgetOrder','relation','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','group','Sunburst','univer-max-h-40\x20univer-text-base','bases-dashboard-ui.pivot.selectAll','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','header','bases-dashboard-ui.pivot.chartConfiguration','HorizontalAxis','LESS_THAN','FormulaShape','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','dashboards','row:','bases-dashboard-ui.pivot.layoutTabular','onSettings','bases-dashboard-ui.chart.common.rightVerticalAxis','IS_NOT_EMPTY','bases-dashboard-ui.pivot.cancel','cornerView','univer-flex\x20univer-flex-col','outline','model','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.chart.section.chord','operand','getUnit','primary','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','_createContext','univer-bg-transparent\x20dark:!univer-bg-transparent','bases-dashboard-ui.pivot.bottom','round','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','article','bases-dashboard-ui.chart.common.trendline','then','RecordId','getFieldCountByArea','initial','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','onDragStart','NumberFormat','current','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','permissionPointUpdate$','bases-dashboard-ui.dashboardInspector.repeat','type','backgroundColor','hidden','bases-dashboard-ui.dashboard.tableFilter','find','bases-dashboard-ui.dashboard.resizeWidget','pivotViewId','lineAndArea','column','tables','bases-dashboard-ui.dashboardInspector.selectOption','grouped','bases-dashboard-ui.dashboard.editWidget','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','bases-dashboard-ui.pivot.filterField','bases-dashboard-ui.mobile.permissions','PivotChart','dashboard-','valueIndex','waterfallStyle','RoundRect','waterfall.negative','bases-dashboard-ui.chart.section.gauge','Treemap','click','bases-dashboard-ui.pivot.stdDev','filterInfo','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','darkMode','label','isConnected','bases-dashboard-ui.pivot.sum','univer-text-sm','Filter','colCount','auto','getDataFieldByTableId','Legend','dataAggregation','requestFullscreen','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','flatMap','file','Group','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','forEach','getRect','bases-dashboard-ui.operators.lessThan','getImageSourceCache','number','Progress','bases-dashboard-ui.pivot.chartAndTable','bases-dashboard-ui.pivot.chartOnly','countNums','width','preventDefault','visibilityState','univer-border-0\x20univer-bg-transparent','allSeriesStyle','setCurrentUnitForType','bases-dashboard-ui.dashboardInspector.alignment','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','darkMode$','catch','univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.chart.common.editChart','cover','createElement','bases-dashboard-ui.dashboardInspector.sourceUnavailable','alt','conjunction','GREATER_THAN_OR_EQUAL','setOptions','saveImage','Relation','dashboard-text-','url(','bases-dashboard-ui.pivot.variancePopulation','bases-dashboard-ui.operators.greaterThanOrEqual','chartType','formulaBinding','bases-dashboard-ui.pivot.average','bases-dashboard-ui.dashboard.defaultName','updateValuePosition','bases-dashboard-ui.dashboardInspector.checked'];_0x5550=function(){return _0x495b73;};return _0x5550();}function Hr(_0x546313,_0x1f9b9a){const _0x1e4e18=_0x2353bc;var _0x43acee;let _0x5cadfb=_0x1f9b9a[_0x1e4e18(0x436)](/\r\n|\r/g,'\x0a')[_0x1e4e18(0x32d)]('\x0a'),_0x2c3b46=_0x5cadfb[_0x1e4e18(0x1bc)]('\x0d')+'\x0d\x0a',_0xf29daf=((_0x43acee=_0x546313[_0x1e4e18(0x1f7)])==null?void 0x0:_0x43acee['paragraphs'])??[],_0x5c3c22=new Set(_0xf29daf[_0x1e4e18(0x3ff)](_0x5b4b88=>_0x5b4b88[_0x1e4e18(0x254)])),_0xbd9f41=0x0,_0x5d26b3=_0x5cadfb[_0x1e4e18(0x3ff)]((_0x1c82e4,_0x36ed3d)=>{_0xbd9f41+=_0x1c82e4['length'];let _0x2040c5={..._0xf29daf[_0x36ed3d]??{'startIndex':_0xbd9f41,'paragraphId':_0x112de2(_0x5c3c22)},'startIndex':_0xbd9f41};return _0xbd9f41+=0x1,_0x2040c5;});return{..._0x546313,'body':{..._0x546313[_0x1e4e18(0x1f7)],'dataStream':_0x2c3b46,'paragraphs':_0x5d26b3,'textRuns':[]}};}function Ur({widget:_0x1b5e65}){const _0x1d3d68=_0x2353bc;let _0x2cda5d=_0x39b411(_0x277079),_0x3eb3bc=_0x39b411(_0x5cd3ee),_0x49edaa=_0x499abf(()=>_0x2cda5d['currentTheme$'],_0x2cda5d['getCurrentTheme'](),!0x1,[_0x2cda5d]),_0x2a2623=_0x35f949(null),_0x3f0a58=_0x35f949(null),_0x2eac20=Br(_0x1b5e65),_0x41d782=_0x2eac20[_0x1d3d68(0x394)]??_0x49edaa[_0x1d3d68(0x433)][0x0],_0x18494e=_0x2eac20[_0x1d3d68(0x204)]??_0x49edaa[_0x1d3d68(0x433)][0x3e8],_0x362cbc=Vr(_0x1b5e65[_0x1d3d68(0x4d6)]);return _0x38e78f(()=>{const _0x193d66=_0x1d3d68;let _0x81d58c=_0x2a2623[_0x193d66(0x38f)],_0xea3b65=_0x3f0a58['current'];if(!_0x81d58c||!_0xea3b65)return;let _0x438cdb=()=>{const _0xe3d182=_0x193d66;if(_0x2eac20[_0xe3d182(0x1e2)]===_0xe3d182(0x509)||!_0x81d58c[_0xe3d182(0x2b8)]||!_0x81d58c['clientHeight']){_0xea3b65[_0xe3d182(0x3f1)][_0xe3d182(0x444)]=_0x2eac20[_0xe3d182(0x444)]+'px';return;}let _0x20350c=0x8,_0x43893f=0x48,_0xbe4a6f=_0x20350c;for(;_0x20350c<=_0x43893f;){let _0x1effc5=Math[_0xe3d182(0x1ef)]((_0x20350c+_0x43893f)/0x2);_0xea3b65[_0xe3d182(0x3f1)][_0xe3d182(0x444)]=_0x1effc5+'px',_0xea3b65[_0xe3d182(0x4dd)]<=_0x81d58c['clientWidth']&&_0xea3b65[_0xe3d182(0x48e)]<=_0x81d58c[_0xe3d182(0x249)]?(_0xbe4a6f=_0x1effc5,_0x20350c=_0x1effc5+0x1):_0x43893f=_0x1effc5-0x1;}_0xea3b65[_0xe3d182(0x3f1)][_0xe3d182(0x444)]=_0xbe4a6f+'px';};if(_0x438cdb(),typeof ResizeObserver>'u')return;let _0x4b14f9=new ResizeObserver(_0x438cdb);return _0x4b14f9[_0x193d66(0x23b)](_0x81d58c),()=>_0x4b14f9[_0x193d66(0x1ad)]();},[_0x2eac20[_0x1d3d68(0x444)],_0x2eac20['fontSizeMode'],_0x362cbc]),_0x4dabb7(_0x1d3d68(0x442),{'data-dashboard-text-widget':_0x1b5e65['id'],'className':'univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','style':{'backgroundColor':_0x41d782,'color':_0x18494e},'children':_0x4dabb7(_0x1d3d68(0x442),{'ref':_0x2a2623,'data-dashboard-text-content':!0x0,'aria-label':_0x3eb3bc['t'](_0x1d3d68(0x45f)),'className':_0x1d3d68(0x4c7),'children':_0x4dabb7(_0x1d3d68(0x442),{'ref':_0x3f0a58,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x2eac20['fontSizeMode'],'className':_0x1d3d68(0x238),'style':{'textAlign':_0x2eac20[_0x1d3d68(0x22e)]},'children':_0x362cbc})})});}function Wr({dashboard:_0x368a36,editable:_0x43d787=!0x0,onSelectWidget:_0x4a13c5,renderWidget:_0x1406c3,renderWidgetActions:_0x24e003,selectedWidgetId:_0x22ce65,widgetLabel:_0x1ceb2a}){const _0x151c16=_0x2353bc;return _0x4dabb7(_0x151c16(0x442),{'data-dashboard-scroll-container':!0x0,'className':_0x52fed8(_0x151c16(0x338),_0x2a22a5),'onClick':_0x43d787?_0x177a22=>{const _0x1ae054=_0x151c16;if(!(_0x177a22['target']instanceof Node)||!_0x177a22[_0x1ae054(0x250)][_0x1ae054(0x275)](_0x177a22[_0x1ae054(0x344)]))return;let _0x22d340=_0x177a22[_0x1ae054(0x344)]instanceof Element?_0x177a22[_0x1ae054(0x344)]:_0x177a22[_0x1ae054(0x344)][_0x1ae054(0x45a)];_0x22d340!=null&&_0x22d340[_0x1ae054(0x304)](_0x1ae054(0x481))||_0x4a13c5==null||_0x4a13c5();}:void 0x0,'children':_0x4dabb7('div',{'data-dashboard-grid':!0x0,'className':_0x151c16(0x36f),'children':_0x368a36[_0x151c16(0x362)]['map'](_0x3ff3a1=>{const _0x1c9204=_0x151c16;let _0x244daa=_0x368a36[_0x1c9204(0x4e1)][_0x3ff3a1];if(!_0x244daa)return null;let _0x3b3e82=Math[_0x1c9204(0x2eb)](0xb4,_0x244daa['layout'][_0x1c9204(0x4b4)]*_0x50185b);return _0x2b00c1('article',{'data-dashboard-widget':_0x244daa['id'],'aria-label':_0x244daa[_0x1c9204(0x448)]??_0x1ceb2a(_0x244daa),'className':_0x52fed8(_0x1c9204(0x2f1),_0x244daa[_0x1c9204(0x393)]===_0x342116[_0x1c9204(0x4ae)]||_0x244daa[_0x1c9204(0x393)]===_0x342116[_0x1c9204(0x36e)]?_0x1c9204(0x382):_0x1c9204(0x3d3),_0x43d787&&_0x22ce65===_0x244daa['id']?_0x1c9204(0x30f):_0x1c9204(0x357)),'style':{'minHeight':_0x3b3e82,'height':_0x3b3e82},'tabIndex':_0x43d787?0x0:void 0x0,'onClick':_0x43d787?()=>_0x4a13c5==null?void 0x0:_0x4a13c5(_0x244daa['id']):void 0x0,'onFocus':_0x43d787?()=>_0x4a13c5==null?void 0x0:_0x4a13c5(_0x244daa['id']):void 0x0,'children':[_0x43d787&&_0x4dabb7('div',{'className':_0x1c9204(0x2f3),'children':_0x24e003==null?void 0x0:_0x24e003(_0x244daa)}),_0x4dabb7('div',{'className':'univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','children':_0x1406c3(_0x244daa)})]},_0x244daa['id']);})})});}let Gr=class extends _0x3ae17a{constructor(_0x3f8264){const _0x1230e9=_0x2353bc;super(_0x3f8264),Pr(this,_0x1230e9(0x251),null);}[_0x2353bc(0x2df)](_0x3a5eb3){}};Gr=Or([Y(0x0,_0x2a19f9(_0x2cea70))],Gr);function Kr({children:_0x2143b2}){return _0x4dabb7(_0xac1dd7,{'children':_0x2143b2});}function qr(_0x5d5e01){return _0x4dabb7(_0x3b7f81,{..._0x5d5e01});}function Jr(_0x454423){return _0x4dabb7(_0x4083c0,{..._0x454423});}function Yr(_0x1474e5){return _0x4dabb7(_0x138a17,{..._0x1474e5});}var Xr;const X={'axis':{..._0x5caca4,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x26697d,'heatmap':_0x296680,'indicatorLine':_0x195779,'legend':_0x4fe0eb,'lineAndArea':_0x499ec0,'pareto':_0x4cf110,'pie':_0x1db8a1,'radar':_0x35ac4f,'relation':{..._0x2da675,'useValueAsSymbolSize':!0x0},'series':{..._0x396e30,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Xr=_0x46c996[_0x2353bc(0x3cd)])==null?void 0x0:Xr[_0x2353bc(0x2c6)])??!0x1}},'style':_0x5792d9,'titles':_0x21806e,'trendline':_0x563c89,'waterfall':{..._0x2c231e,'useSubtotal':!0x0},'waterfallStyle':_0x31f02c,'wordCloud':_0x8c0c35},Zr=[_0x3414f3['Line'],_0x3414f3[_0x2353bc(0x4e4)],_0x3414f3[_0x2353bc(0x297)],_0x3414f3[_0x2353bc(0x474)],_0x3414f3[_0x2353bc(0x4f5)],_0x3414f3[_0x2353bc(0x3dd)],_0x3414f3[_0x2353bc(0x46c)],_0x3414f3['Heatmap'],_0x3414f3[_0x2353bc(0x2d1)],_0x3414f3[_0x2353bc(0x1fe)],_0x3414f3['Histogram'],_0x3414f3['Treemap'],_0x3414f3['Sunburst'],_0x3414f3[_0x2353bc(0x494)],_0x3414f3[_0x2353bc(0x2e4)]];function Qr(_0x26d638){const _0x1a8e3c=_0x2353bc;let {config:_0x459fc1,onChange:_0x526207,runtime:_0x2397cf,tableName:_0x5b167a}=_0x26d638,_0x8bc3c6=_0x39b411(Gr),_0x204292=_0x39b411(_0x5cd3ee),[_0x277c9d,_0x3d17bc]=_0x2be63d(_0x139866['Data']),_0x29022e=_0x56a185(()=>new _0x29d554(_0x2397cf[_0x1a8e3c(0x37a)],{'commit':_0x40426c=>{const _0x4f765c=_0x1a8e3c;var _0x145aa8;let _0x2a17bf=_0x2397cf['model'],_0x36b775=_0x485197(_0x40426c,{'series':(_0x145aa8=_0x2a17bf[_0x4f765c(0x4e8)])==null?void 0x0:_0x145aa8[_0x4f765c(0x418)],'currentChartType':_0x2a17bf['chartType'],'currentStyle':_0x2a17bf[_0x4f765c(0x3f1)],'currentContext':_0x2a17bf[_0x4f765c(0x1af)],'currentDataAggregation':_0x2a17bf[_0x4f765c(0x3b9)]});_0x526207({'chart':$r(_0x459fc1[_0x4f765c(0x4d8)],_0x36b775)});}}),[_0x459fc1[_0x1a8e3c(0x4d8)],_0x526207,_0x2397cf]),_0x218da2=_0x56a185(()=>_0x2dbfb8(_0x170e20[_0x1a8e3c(0x3ff)](_0x4578fe=>({..._0x4578fe,'label':_0x204292['t'](ri(_0x4578fe[_0x1a8e3c(0x1a8)]))}))),[_0x204292]);return _0x4dabb7(_0x2dc504,{'chartUIService':_0x8bc3c6,'hostAdapter':_0x29022e,'children':_0x2b00c1('div',{'className':_0x1a8e3c(0x450),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x204292['t'](_0x1a8e3c(0x3d4)),'className':_0x1a8e3c(0x410),'items':[{'label':_0x204292['t'](_0x1a8e3c(0x466)),'panelId':'base-pivot-chart-setup','value':_0x139866[_0x1a8e3c(0x1df)]},{'label':_0x204292['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x1a8e3c(0x311),'value':_0x139866[_0x1a8e3c(0x352)]}],'value':_0x277c9d,'onChange':_0x3d17bc}),_0x277c9d===_0x139866[_0x1a8e3c(0x1df)]?_0x4dabb7(_0x3812e6,{'id':'base-pivot-chart-setup','label':_0x204292['t'](_0x1a8e3c(0x466)),'children':_0x2b00c1(_0x1a8e3c(0x442),{'className':_0x1a8e3c(0x4e3),'children':[_0x4dabb7(_0x195039,{'options':_0x218da2}),_0x4dabb7(_0x3eaf0a,{}),_0x4dabb7(_0x1603db,{}),_0x4dabb7(ei,{}),_0x4dabb7(_0x3210ae,{}),_0x2b00c1('div',{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x204292['t']('bases-dashboard-ui.pivot.dataSource')}),_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x5b167a})]}),_0x4dabb7(_0x26c1b7,{'orientationControl':_0x4dabb7(_0x1b3e3b,{'size':_0x1a8e3c(0x432),'onClick':()=>_0x526207({'chart':{..._0x459fc1[_0x1a8e3c(0x4d8)],'orient':_0x459fc1[_0x1a8e3c(0x4d8)]['orient']==='row'?_0x1a8e3c(0x39b):_0x1a8e3c(0x487)}}),'children':_0x204292['t'](_0x1a8e3c(0x430))})}),_0x4dabb7(_0x45db86,{}),_0x4dabb7(_0x4e37ce,{'defaultValues':X[_0x1a8e3c(0x2fd)]}),_0x2b00c1('div',{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x204292['t']('bases-dashboard-ui.pivot.display')}),_0x4dabb7(qr,{'value':_0x459fc1['displayMode'],'options':[{'value':_0x1a8e3c(0x330),'label':_0x204292['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':_0x1a8e3c(0x4d8),'label':_0x204292['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':_0x1a8e3c(0x4bb),'label':_0x204292['t'](_0x1a8e3c(0x3f7))}],'onChange':_0x1604ee=>{const _0x197162=_0x1a8e3c;(_0x1604ee==='chart-and-table'||_0x1604ee===_0x197162(0x4d8)||_0x1604ee===_0x197162(0x4bb))&&_0x526207({'displayMode':_0x1604ee});}})]})]})}):_0x4dabb7(_0x3812e6,{'id':_0x1a8e3c(0x311),'label':_0x204292['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x4dabb7(ti,{})})]})});}function $r(_0x3da4f2,_0x371df6){const _0x403af7=_0x2353bc;return{..._0x3da4f2,'type':_0x371df6[_0x403af7(0x3e2)]??_0x3da4f2['type'],'style':_0x371df6[_0x403af7(0x3f1)]??_0x3da4f2[_0x403af7(0x3f1)],'context':_0x371df6[_0x403af7(0x1af)]??_0x3da4f2['context'],'dataAggregation':_0x371df6['dataAggregation']??_0x3da4f2[_0x403af7(0x3b9)]};}function ei(){const _0xb69f9a=_0x2353bc;let _0x3275ea=_0x1f2e67();return _0x4dabb7(_0x34de73,{'visible':Zr[_0xb69f9a(0x498)](_0x218882=>!_0x4c5ed5[_0xb69f9a(0x20b)](_0x3275ea,_0x218882))});}function Z(_0x553fc8){const _0x1b1121=_0x2353bc;return _0x2b00c1(_0x1358f8,{'id':_0x553fc8['id'],'children':[_0x4dabb7(_0x352fb4,{'children':_0x553fc8[_0x1b1121(0x3b0)]}),_0x4dabb7(_0xaf7aad,{'children':_0x553fc8[_0x1b1121(0x4a0)]})]});}function ti(){const _0xbfa589=_0x2353bc;let _0x5c07c1=_0x39b411(_0x5cd3ee),_0x35deb5=_0x1f2e67(),_0x209d8e=_0x51b799(),[_0x3c1cba,_0x37837e]=_0x2be63d(null),_0xc449c=_0x4c5ed5[_0xbfa589(0x20b)](_0x35deb5,_0x3414f3['Pie']),_0x4de0ce=_0x35deb5===_0x3414f3[_0xbfa589(0x4e4)],_0x4f0883=_0x35deb5===_0x3414f3['WordCloud'],_0x210def=_0x35deb5===_0x3414f3[_0xbfa589(0x4f5)],_0x10bfca=_0x4c5ed5['baseOn'](_0x35deb5,_0x3414f3[_0xbfa589(0x2ae)]),_0x5d6391=_0x35deb5===_0x3414f3[_0xbfa589(0x3dd)],_0x26097a=_0x35deb5===_0x3414f3[_0xbfa589(0x24f)],_0x23a33f=_0x35deb5===_0x3414f3[_0xbfa589(0x2e5)],_0x2a2e3b=_0x35deb5===_0x3414f3[_0xbfa589(0x20d)],_0x2e0d24=_0x326a9b(_0x35deb5,_0x1958f1['GeneralSeries'])&&!_0x10bfca&&!_0x23a33f,_0x441410=ni(_0x35deb5,_0x5c07c1);return _0x2b00c1(_0x28ef86,{'value':_0x3c1cba,'onChange':_0x37837e,'children':[_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x4fa)],'label':_0x5c07c1['t'](_0xbfa589(0x2a6)),'children':_0x4dabb7(_0x466794,{'defaultValues':X[_0xbfa589(0x3f1)]})}),_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x1d9)],'label':_0x5c07c1['t'](_0xbfa589(0x406)),'children':_0x4dabb7(_0xe815e7,{'commitMode':_0xbfa589(0x453),'defaultValues':X[_0xbfa589(0x262)]})}),_0x2e0d24&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x484)],'label':_0x5c07c1['t']('bases-dashboard-ui.chart.common.series'),'children':_0x4dabb7(_0x3bcbff,{'defaultValues':X['series'],'NumberFormatField':_0x2f8e19})}),_0x26097a&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x1d6)],'label':_0x5c07c1['t'](_0xbfa589(0x2c4)),'children':_0x4dabb7(_0x217c37,{'defaultValues':X[_0xbfa589(0x3a6)],'getDefaultBucketName':({seriesName:_0x5101c9,target:_0x3ec3e5})=>_0x3ec3e5===_0x6a9b13[_0xbfa589(0x1d3)]?_0x5c07c1['t'](_0xbfa589(0x31f)):_0x5101c9?_0x5101c9+'-('+_0x5c07c1['t']('bases-dashboard-ui.chart.'+(_0x3ec3e5===_0x6a9b13[_0xbfa589(0x428)]?_0xbfa589(0x507):_0xbfa589(0x3a8)))+')':'','NumberFormatField':_0x2f8e19})}),_0x23a33f&&_0x2b00c1(_0xa1bb43,{'children':[_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x359)],'label':_0x5c07c1['t'](_0xbfa589(0x1cb)),'children':_0x4dabb7(_0x35a412,{'defaultValues':X[_0xbfa589(0x340)],'NumberFormatField':_0x2f8e19,'showDataPointEditor':!0x0,'target':_0xbfa589(0x2cb)})}),_0x4dabb7(Z,{'id':_0x8fe1f1['ParetoLineSeries'],'label':_0x5c07c1['t'](_0xbfa589(0x22b)),'children':_0x4dabb7(_0x35a412,{'defaultValues':X[_0xbfa589(0x340)],'NumberFormatField':_0x2f8e19,'showDataPointEditor':!0x1,'target':_0xbfa589(0x1e3)})})]}),_0xc449c&&_0x4dabb7(Z,{'id':_0x8fe1f1['PieStyle'],'label':_0x5c07c1['t']('bases-dashboard-ui.chart.section.pie'),'children':_0x4dabb7(_0x34a105,{'defaultValues':X['pie'],'NumberFormatField':_0x2f8e19})}),_0x4f0883&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x297)],'label':_0x5c07c1['t'](_0xbfa589(0x2ba)),'children':_0x4dabb7(_0x5ac713,{'defaultValues':X[_0xbfa589(0x23e)]})}),_0x4de0ce&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x4e4)],'label':_0x5c07c1['t'](_0xbfa589(0x486)),'children':_0x4dabb7(_0x4c7c71,{'defaultValues':X[_0xbfa589(0x3f0)]})}),_0x210def&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x4f5)],'label':_0x5c07c1['t'](_0xbfa589(0x239)),'children':_0x4dabb7(_0x666ad2,{'defaultValues':X['funnel'],'gapControl':_0xbfa589(0x465)})}),_0x2a2e3b&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x20d)],'label':_0x5c07c1['t'](_0xbfa589(0x2c2)),'children':_0x4dabb7(_0x3c01f2,{'defaultValues':X[_0xbfa589(0x300)]})}),_0x5d6391&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x3dd)],'label':_0x5c07c1['t'](_0xbfa589(0x476)),'children':_0x4dabb7(_0x11ce9e,{'defaultValues':X[_0xbfa589(0x363)]})}),_0x59d745(_0x35deb5)&&_0x4dabb7(Z,{'id':_0x8fe1f1['LineAndArea'],'label':_0x5c07c1['t'](_0xbfa589(0x4ab)),'children':_0x4dabb7(_0x457b13,{'defaultValues':X['lineAndArea'],'lineStyleControl':_0xbfa589(0x4d2)})}),_0x326a9b(_0x35deb5,_0x1958f1[_0xbfa589(0x3b8)])&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x3b8)],'label':_0x5c07c1['t'](_0xbfa589(0x4d5)),'children':_0x4dabb7(_0x1dc64f,{'defaultValues':X[_0xbfa589(0x508)]})}),_0x326a9b(_0x35deb5,_0x1958f1[_0xbfa589(0x313)])&&_0x2b00c1(_0xa1bb43,{'children':[_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x36c)],'label':_0x5c07c1['t'](_0xbfa589(0x26b)),'children':_0x4dabb7(_0x185c32,{'axis':'x','defaultValues':X['axis'],'NumberFormatField':_0x2f8e19})}),_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x488)],'label':_0x5c07c1['t'](_0xbfa589(0x1ec)),'children':_0x4dabb7(_0x185c32,{'axis':'y','defaultValues':X[_0xbfa589(0x310)],'NumberFormatField':_0x2f8e19})}),_0x209d8e&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x32f)],'label':_0x5c07c1['t'](_0xbfa589(0x374)),'children':_0x4dabb7(_0x185c32,{'axis':_0xbfa589(0x1e6),'defaultValues':X[_0xbfa589(0x310)],'NumberFormatField':_0x2f8e19})}),_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x1ee)],'label':_0x5c07c1['t'](_0xbfa589(0x261)),'children':_0x4dabb7(_0x1f6674,{'defaultValues':X[_0xbfa589(0x310)]})})]}),_0x326a9b(_0x35deb5,_0x1958f1[_0xbfa589(0x223)])&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x223)],'label':_0x5c07c1['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x4dabb7(_0x5f2295,{'defaultValues':X['indicatorLine']})}),_0xae124c(_0x35deb5)&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x277)],'label':_0x5c07c1['t'](_0xbfa589(0x387)),'children':_0x4dabb7(_0x3c8ddd,{'defaultValues':X[_0xbfa589(0x23c)]})}),_0x441410&&_0x4dabb7(Z,{'id':_0x441410['id'],'label':_0x441410[_0xbfa589(0x3b0)],'children':_0x4dabb7(_0x5d0cdf,{})})]});}function ni(_0x557cb7,_0x3ea701){const _0x140274=_0x2353bc;let _0x3e56ef={[_0x3414f3[_0x140274(0x1fe)]]:{'id':_0x8fe1f1[_0x140274(0x1fe)],'localeKey':_0x140274(0x1db)},[_0x3414f3['Histogram']]:{'id':_0x8fe1f1[_0x140274(0x242)],'localeKey':_0x140274(0x255)},[_0x3414f3[_0x140274(0x3aa)]]:{'id':_0x8fe1f1['Treemap'],'localeKey':_0x140274(0x2be)},[_0x3414f3[_0x140274(0x366)]]:{'id':_0x8fe1f1[_0x140274(0x366)],'localeKey':_0x140274(0x495)},[_0x3414f3[_0x140274(0x494)]]:{'id':_0x8fe1f1[_0x140274(0x494)],'localeKey':_0x140274(0x3a9)},[_0x3414f3[_0x140274(0x2e4)]]:{'id':_0x8fe1f1[_0x140274(0x2e4)],'localeKey':_0x140274(0x37c)}}[_0x557cb7];return _0x3e56ef?{'id':_0x3e56ef['id'],'label':_0x3ea701['t'](_0x3e56ef[_0x140274(0x353)])}:null;}function ri(_0x17294f){return'bases-dashboard-ui.chart.chartTypes.'+_0x17294f;}function ii({onChange:_0x24c751,onEditData:_0x328425,runtime:_0x48e895,sourceChart:_0x3bd8eb,sourceName:_0x43ddac,widget:_0x55dc0b}){const _0x3ecf51=_0x2353bc;let _0x1fcc4d=_0x39b411(Gr),_0x440d46=_0x39b411(_0x5cd3ee),[_0x1c42dc,_0x56406e]=_0x2be63d(_0x139866[_0x3ecf51(0x1df)]),_0x26c278=_0x55dc0b[_0x3ecf51(0x4d8)]??_0x3bd8eb,_0x1c74ec=_0x56a185(()=>new _0x29d554(_0x48e895[_0x3ecf51(0x37a)],{'commit':_0x2722a7=>{const _0x1cb880=_0x3ecf51;var _0x3438e4;let _0x189376=_0x48e895[_0x1cb880(0x37a)],_0x1c6e11=_0x485197(_0x2722a7,{'series':(_0x3438e4=_0x189376['config'])==null?void 0x0:_0x3438e4[_0x1cb880(0x418)],'currentChartType':_0x189376[_0x1cb880(0x3e2)],'currentStyle':_0x189376[_0x1cb880(0x3f1)],'currentContext':_0x189376[_0x1cb880(0x1af)],'currentDataAggregation':_0x189376[_0x1cb880(0x3b9)]});_0x24c751({..._0x55dc0b,'chart':$r(_0x26c278,_0x1c6e11)})['catch'](()=>void 0x0);}}),[_0x26c278,_0x24c751,_0x48e895,_0x55dc0b]),_0xee1465=_0x56a185(()=>_0x2dbfb8(_0x170e20[_0x3ecf51(0x3ff)](_0x40b079=>({..._0x40b079,'label':_0x440d46['t'](ai(_0x40b079[_0x3ecf51(0x1a8)]))}))),[_0x440d46]);return _0x4dabb7(_0x4bacfa,{'chartUIService':_0x1fcc4d,'hostAdapter':_0x1c74ec,'children':_0x2b00c1(_0x3ecf51(0x442),{'data-dashboard-chart-inspector':!0x0,'className':_0x3ecf51(0x2f2),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x440d46['t'](_0x3ecf51(0x3d4)),'className':_0x3ecf51(0x410),'items':[{'label':_0x440d46['t'](_0x3ecf51(0x466)),'panelId':_0x3ecf51(0x295),'value':_0x139866[_0x3ecf51(0x1df)]},{'label':_0x440d46['t'](_0x3ecf51(0x33f)),'panelId':_0x3ecf51(0x46d),'value':_0x139866[_0x3ecf51(0x352)]}],'value':_0x1c42dc,'onChange':_0x56406e}),_0x1c42dc===_0x139866[_0x3ecf51(0x1df)]?_0x4dabb7(_0x3812e6,{'id':'dashboard-chart-setup','label':_0x440d46['t'](_0x3ecf51(0x466)),'children':_0x2b00c1('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x4dabb7(_0x195039,{'options':_0xee1465}),_0x4dabb7(_0x3eaf0a,{}),_0x4dabb7(_0x1603db,{}),_0x4dabb7(ei,{}),_0x4dabb7(_0x3210ae,{}),_0x2b00c1(_0x3ecf51(0x442),{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x440d46['t']('bases-dashboard-ui.dashboardInspector.dataSource')}),_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x43ddac}),_0x4dabb7(_0x1b3e3b,{'className':_0x3ecf51(0x25f),'onClick':_0x328425,'children':_0x440d46['t'](_0x3ecf51(0x2e0))})]})]})}):_0x4dabb7(_0x3812e6,{'id':'dashboard-chart-style','label':_0x440d46['t'](_0x3ecf51(0x33f)),'children':_0x4dabb7(ti,{})})]})});}function ai(_0x302d85){const _0x1fa892=_0x2353bc;return _0x1fa892(0x317)+_0x302d85;}const oi=[_0x2353bc(0x3f3),_0x2353bc(0x3c4),_0x2353bc(0x327),_0x2353bc(0x241),_0x2353bc(0x39e),_0x2353bc(0x1be)];function si({base:_0x519c35,onChange:_0x255deb,onSelectBackgroundImage:_0xed7c5c,widget:_0x3d782c}){const _0x419e6d=_0x2353bc;var _0xe252be;let _0x1b4850=_0x39b411(_0x5cd3ee),_0x3fb4b2=_0x39b411(_0x277079),_0x4947f5=_0x499abf(()=>_0x3fb4b2[_0x419e6d(0x227)],_0x3fb4b2[_0x419e6d(0x2d8)](),!0x1,[_0x3fb4b2]),_0xe55b09=_0x499abf(()=>_0x3fb4b2[_0x419e6d(0x3d1)],_0x3fb4b2[_0x419e6d(0x3af)],!0x1,[_0x3fb4b2]),[_0x51db30,_0x1765e2]=_0x2be63d(_0x419e6d(0x4b1)),[_0x5fc54,_0x4271b2]=_0x2be63d(!0x1),_0x26f90a=xr(_0x3d782c),_0x5094da=_0x519c35[_0x419e6d(0x3f5)]()['tables'][_0x3d782c[_0x419e6d(0x475)]],_0x7743e6=_0x5094da==null?void 0x0:_0x5094da[_0x419e6d(0x411)][_0x419e6d(0x397)](_0x35e99a=>_0x5094da[_0x419e6d(0x451)][_0x35e99a]),_0x52623c=_0x7743e6?_0x5094da==null?void 0x0:_0x5094da[_0x419e6d(0x451)][_0x7743e6]:void 0x0,_0x5574b2=_0x5094da&&_0x52623c?_0x57cd99(_0x519c35[_0x419e6d(0x3f5)](),_0x5094da,_0x52623c)[_0x419e6d(0x3ff)](_0x45ef9d=>({..._0x45ef9d,'current':!0x1})):[],_0x6a0f9=((_0xe252be=_0x3d782c[_0x419e6d(0x1d8)][_0x419e6d(0x3e3)])==null?void 0x0:_0xe252be['formula'])??'',_0xe18a76=_0x103cda=>_0x255deb(Sr(_0x3d782c,_0x103cda))['catch'](()=>void 0x0),_0x1c3adc=_0x581676=>_0x255deb({..._0x3d782c,'description':_0x581676})[_0x419e6d(0x3d2)](()=>void 0x0);return _0x2b00c1(_0x419e6d(0x442),{'data-dashboard-formula-inspector':!0x0,'className':_0x419e6d(0x2f2),'children':[_0x4dabb7(_0x116fe9,{'className':'univer-m-3','items':[{'value':_0x419e6d(0x4b1),'label':_0x1b4850['t'](_0x419e6d(0x1dd))},{'value':_0x419e6d(0x3f1),'label':_0x1b4850['t'](_0x419e6d(0x2ac))}],'value':_0x51db30,'onChange':_0x1765e2}),_0x4dabb7(_0x419e6d(0x442),{'className':_0x419e6d(0x26e),'children':_0x51db30==='data'?_0x2b00c1(_0x419e6d(0x442),{'className':_0x419e6d(0x4e0),'children':[_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x44f)),'children':_0x4dabb7(_0x2c53ee,{'value':_0x3d782c[_0x419e6d(0x24b)]??_0x3d782c[_0x419e6d(0x448)]??'','onChange':_0x1c3adc,'onBlur':_0x546090=>_0x1c3adc(_0x546090[_0x419e6d(0x344)]['value'])})}),_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x31b)),'children':_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':(_0x5094da==null?void 0x0:_0x5094da[_0x419e6d(0x329)])??_0x1b4850['t'](_0x419e6d(0x3d7))})}),_0x2b00c1(ci,{'label':_0x1b4850['t'](_0x419e6d(0x222)),'children':[_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x1b3454(_0x6a0f9,_0x5574b2)}),_0x4dabb7(_0x1b3e3b,{'className':_0x419e6d(0x25f),'onClick':()=>_0x4271b2(!0x0),'children':_0x1b4850['t'](_0x419e6d(0x460))})]})]}):_0x2b00c1('div',{'className':_0x419e6d(0x4e0),'children':[_0x4dabb7(_0x38703b,{'emptyLabel':_0x1b4850['t'](_0x419e6d(0x245)),'label':_0x1b4850['t'](_0x419e6d(0x245)),'pickerFallbackValue':_0xe55b09?_0x4947f5[_0x419e6d(0x433)][0x384]:_0x4947f5[_0x419e6d(0x433)][0x0],'resetLabel':_0x1b4850['t'](_0x419e6d(0x449)),'value':_0x26f90a[_0x419e6d(0x394)]??null,'onChange':_0x2233b1=>_0xe18a76({'backgroundColor':_0x2233b1??void 0x0})}),_0x2b00c1(ci,{'label':_0x1b4850['t'](_0x419e6d(0x267)),'children':[_0x2b00c1('div',{'className':_0x419e6d(0x4cf),'children':[_0x2b00c1(_0x1b3e3b,{'className':_0x419e6d(0x342),'onClick':()=>{const _0xeca2d1=_0x419e6d;_0xed7c5c()[_0xeca2d1(0x388)](_0x176032=>{const _0x1d68c4=_0xeca2d1;if(_0x176032){var _0x3978e0;return _0xe18a76({'backgroundImage':{..._0x176032,'fit':((_0x3978e0=_0x26f90a[_0x1d68c4(0x48f)])==null?void 0x0:_0x3978e0['fit'])??'cover'}});}})[_0xeca2d1(0x3d2)](()=>void 0x0);},'children':[_0x4dabb7(_0x5155a3,{}),_0x26f90a[_0x419e6d(0x48f)]?_0x1b4850['t'](_0x419e6d(0x256)):_0x1b4850['t'](_0x419e6d(0x4fb))]}),_0x26f90a[_0x419e6d(0x48f)]&&_0x4dabb7(_0x1b3e3b,{'aria-label':_0x1b4850['t'](_0x419e6d(0x1f0)),'title':_0x1b4850['t'](_0x419e6d(0x1f0)),'onClick':()=>_0xe18a76({'backgroundImage':void 0x0}),'children':_0x4dabb7(_0x2d17f6,{})})]}),_0x26f90a[_0x419e6d(0x48f)]&&_0x4dabb7(_0x116fe9,{'className':_0x419e6d(0x266),'items':[{'value':_0x419e6d(0x3d5),'label':_0x1b4850['t'](_0x419e6d(0x2e7))},{'value':_0x419e6d(0x31e),'label':_0x1b4850['t'](_0x419e6d(0x45b))}],'value':_0x26f90a[_0x419e6d(0x48f)]['fit'],'onChange':_0x4a704d=>_0xe18a76({'backgroundImage':_0x26f90a[_0x419e6d(0x48f)]?{..._0x26f90a[_0x419e6d(0x48f)],'fit':_0x4a704d}:void 0x0})})]}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x1b4850['t'](_0x419e6d(0x21a)),'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0xe55b09?_0x4947f5[_0x419e6d(0x433)][0x32]:_0x4947f5[_0x419e6d(0x433)][0x3e8],'resetLabel':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x26f90a[_0x419e6d(0x204)]??null,'onChange':_0x17607b=>_0xe18a76({'textColor':_0x17607b??void 0x0})}),_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x3cf)),'children':_0x4dabb7(_0x116fe9,{'items':[{'value':'left','label':_0x1b4850['t'](_0x419e6d(0x28d))},{'value':_0x419e6d(0x4b2),'label':_0x1b4850['t'](_0x419e6d(0x237))},{'value':'right','label':_0x1b4850['t'](_0x419e6d(0x1fd))}],'value':_0x26f90a[_0x419e6d(0x22e)],'onChange':_0x56fcc0=>_0xe18a76({'alignment':_0x56fcc0})})}),_0x2b00c1(ci,{'label':_0x1b4850['t'](_0x419e6d(0x219)),'children':[_0x4dabb7(_0x116fe9,{'items':[{'value':_0x419e6d(0x3b6),'label':_0x1b4850['t'](_0x419e6d(0x29b))},{'value':_0x419e6d(0x509),'label':_0x1b4850['t'](_0x419e6d(0x1da))}],'value':_0x26f90a['fontSizeMode'],'onChange':_0x5c62ef=>_0xe18a76({'fontSizeMode':_0x5c62ef})}),_0x26f90a[_0x419e6d(0x1e2)]===_0x419e6d(0x509)&&_0x4dabb7(_0x1c2086,{'className':'univer-mt-2','min':0xc,'max':0x78,'value':_0x26f90a['fontSize'],'onChange':_0x22b14f=>_0xe18a76({'fontSize':_0x22b14f??0x28,'fontSizeMode':_0x419e6d(0x509)})})]}),_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x500)),'children':_0x4dabb7(qr,{'value':_0x26f90a[_0x419e6d(0x348)],'options':[{'value':_0x419e6d(0x3f3),'label':_0x1b4850['t'](_0x419e6d(0x292))},{'value':_0x419e6d(0x3c4),'label':_0x1b4850['t'](_0x419e6d(0x1e1))},{'value':_0x419e6d(0x327),'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.percent')},{'value':_0x419e6d(0x241),'label':_0x1b4850['t'](_0x419e6d(0x502))},{'value':_0x419e6d(0x39e),'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':_0x419e6d(0x1be),'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.compact')}],'onChange':_0x2e7ea1=>{let _0x1fc9cd=oi['find'](_0x11c21f=>_0x11c21f===_0x2e7ea1);_0x1fc9cd&&_0xe18a76({'numberFormat':_0x1fc9cd});}})}),_0x26f90a[_0x419e6d(0x348)]==='currency'&&_0x4dabb7(ci,{'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x4dabb7(_0x2c53ee,{'value':_0x26f90a[_0x419e6d(0x241)],'onChange':_0x59b567=>_0xe18a76({'currency':_0x59b567['slice'](0x0,0x3)[_0x419e6d(0x4e2)]()})})}),_0x26f90a[_0x419e6d(0x348)]!==_0x419e6d(0x3f3)&&_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x211)),'children':_0x4dabb7(_0x1c2086,{'min':0x0,'max':0x8,'value':_0x26f90a[_0x419e6d(0x201)],'onChange':_0x146695=>_0xe18a76({'decimalPlaces':_0x146695??0x0})})})]})}),_0x5fc54&&_0x4dabb7(Yr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x4dabb7(_0x33c106,{'tables':_0x5574b2,'formula':_0x1b3454(_0x6a0f9,_0x5574b2),'onCancel':()=>_0x4271b2(!0x1),'onSave':_0x19bce7=>{const _0x4ae251=_0x419e6d;let _0x51a9c5=_0x3d782c['shapeData']['formulaBinding']??{'formula':''};return _0x255deb({..._0x3d782c,'shapeData':{..._0x3d782c[_0x4ae251(0x1d8)],'formulaBinding':{..._0x51a9c5,'formula':_0x24d391(_0x19bce7,_0x5574b2)}}})[_0x4ae251(0x388)](()=>_0x4271b2(!0x1))['catch'](()=>void 0x0);}})})]});}function ci({children:_0x40b2fb,label:_0x2f7059}){const _0x49e31f=_0x2353bc;return _0x2b00c1(_0x49e31f(0x442),{'role':_0x49e31f(0x365),'aria-label':_0x2f7059,'className':_0x49e31f(0x3d0),'children':[_0x4dabb7(_0x49e31f(0x3ec),{'children':_0x2f7059}),_0x40b2fb]});}function li({disabled:_0x392d42,fields:_0xbf8cf3,filter:_0x383dda,onChange:_0x5da0a4}){const _0xd77aa4=_0x2353bc;let _0x4a8b7c=_0x39b411(_0x55d16d)[_0xd77aa4(0x217)]??null,[_0x1fe5aa,_0x12ff86]=_0x2be63d(null),_0x2dbb15=_0x39b411(_0x5cd3ee),_0x3fc0b1=(_0x383dda==null?void 0x0:_0x383dda[_0xd77aa4(0x1b8)])??[];if(!_0x3fc0b1[_0xd77aa4(0x4da)])return _0x2b00c1(_0xd77aa4(0x442),{'className':_0xd77aa4(0x1f2),'children':[_0x4dabb7(_0x425726,{'className':_0xd77aa4(0x472)}),_0x4dabb7('span',{'className':'univer-text-sm','children':_0x2dbb15['t']('bases-dashboard-ui.dashboard.tableFilter')})]});let _0x486f78=_0x1fe5aa==null?void 0x0:_0x3fc0b1[_0x1fe5aa],_0x3e4a3c=_0xbf8cf3['find'](_0x1db10b=>_0x1db10b['id']===(_0x486f78==null?void 0x0:_0x486f78[_0xd77aa4(0x43d)]));return _0x2b00c1(_0xd77aa4(0x442),{'className':_0xd77aa4(0x26d),'children':[_0x3fc0b1[_0xd77aa4(0x3ff)]((_0x266219,_0x2eb809)=>{const _0x3dd986=_0xd77aa4;var _0x2c60ee;return _0x2b00c1(_0x1b3e3b,{'disabled':_0x392d42,'onClick':()=>_0x12ff86(_0x2eb809),'children':[_0x4dabb7(_0x3dd986(0x3ec),{'children':((_0x2c60ee=_0xbf8cf3[_0x3dd986(0x397)](_0x586e36=>_0x586e36['id']===_0x266219[_0x3dd986(0x43d)]))==null?void 0x0:_0x2c60ee['name'])??_0x266219[_0x3dd986(0x43d)]}),_0x4dabb7(_0x3dd986(0x3ec),{'className':_0x3dd986(0x226),'children':String(_0x266219[_0x3dd986(0x37d)]??'')})]},_0x266219[_0x3dd986(0x43d)]+'-'+_0x2eb809);}),_0x3e4a3c&&_0x486f78&&_0x1fe5aa!=null&&_0x4a8b7c&&_0x1f6ddd(_0x4dabb7(_0x5c4dcf,{'field':_0x3e4a3c,'value':_0x486f78[_0xd77aa4(0x37d)],'onClose':()=>_0x12ff86(null),'onSave':_0x773d13=>{const _0x530f97=_0xd77aa4;_0x5da0a4({'conjunction':(_0x383dda==null?void 0x0:_0x383dda['conjunction'])??_0xf09c6[_0x530f97(0x27f)],'conditions':_0x3fc0b1[_0x530f97(0x3ff)]((_0x6ed982,_0xae69c4)=>_0xae69c4===_0x1fe5aa?{..._0x6ed982,'operand':_0x773d13}:_0x6ed982)}),_0x12ff86(null);}}),_0x4a8b7c)]});}function ui({fields:_0x59af24,filter:_0x10f7b3,onChange:_0x41e07c,onClear:_0x96e3d1}){const _0x4dc081=_0x2353bc;let _0x536542=_0x39b411(_0x5cd3ee);return _0x2b00c1(_0x4dc081(0x442),{'children':[_0x4dabb7(_0x1ab4e1,{'fields':_0x59af24,'value':_0x10f7b3??{'conjunction':_0xf09c6[_0x4dc081(0x27f)],'conditions':[]},'onChange':_0x41e07c}),_0x4dabb7(_0x1b3e3b,{'onClick':_0x96e3d1,'children':_0x536542['t'](_0x4dc081(0x449))})]});}function di({base:_0x452002,chartRuntime:_0xb13a2b,onChange:_0x3c5a03,onClose:_0x2499a2,onSelectBackgroundImage:_0x59bc3a,onSelectImage:_0x50bca2,unitId:_0x6f935d,widget:_0x48a5fd}){const _0x2e4805=_0x2353bc;let _0x1fc0cc=_0x39b411(_0x32452d),_0x5a8c52=_0x39b411(_0x5cd3ee),_0x4a9b68=_0x452002[_0x2e4805(0x3f5)](),_0x47fb5f='tableId'in _0x48a5fd?_0x4a9b68[_0x2e4805(0x39c)][_0x48a5fd[_0x2e4805(0x475)]]:void 0x0,_0x402bd6=_0x48a5fd[_0x2e4805(0x393)]===_0x342116[_0x2e4805(0x3a3)]?_0x47fb5f==null?void 0x0:_0x47fb5f[_0x2e4805(0x451)][_0x48a5fd[_0x2e4805(0x399)]]:void 0x0,_0x37fab7=_0x5a8c52['t'](vi(_0x48a5fd)),_0xc8266c=_0x2b00c1(_0x2e4805(0x2b6),{'data-dashboard-inspector':!0x0,'className':_0x2e4805(0x28a),'children':[_0x48a5fd[_0x2e4805(0x393)]===_0x342116[_0x2e4805(0x3a3)]&&(_i(_0x402bd6)&&_0xb13a2b?_0x4dabb7(ii,{'runtime':_0xb13a2b,'sourceChart':_0x402bd6[_0x2e4805(0x4e8)][_0x2e4805(0x4d8)],'sourceName':((_0x47fb5f==null?void 0x0:_0x47fb5f[_0x2e4805(0x329)])??'')+'\x20/\x20'+_0x402bd6[_0x2e4805(0x329)],'widget':_0x48a5fd,'onChange':_0x3c5a03,'onEditData':()=>{const _0x226627=_0x2e4805;_0x1fc0cc['executeCommand'](_0x9b2833['id'],{'unitId':_0x6f935d,'tableId':_0x48a5fd['tableId'],'viewId':_0x48a5fd[_0x226627(0x399)]})['catch'](()=>void 0x0);}}):_0x4dabb7(hi,{'message':_i(_0x402bd6)?_0x5a8c52['t'](_0x2e4805(0x2aa)):_0x5a8c52['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})),_0x48a5fd['type']===_0x342116[_0x2e4805(0x36e)]&&_0x4dabb7(si,{'base':_0x452002,'widget':_0x48a5fd,'onChange':_0x3c5a03,'onSelectBackgroundImage':_0x59bc3a}),_0x48a5fd[_0x2e4805(0x393)]===_0x342116[_0x2e4805(0x296)]&&_0x4dabb7(pi,{'base':_0x452002,'onChange':_0x3c5a03,'widget':_0x48a5fd}),_0x48a5fd[_0x2e4805(0x393)]===_0x342116[_0x2e4805(0x298)]&&_0x4dabb7(mi,{'onChange':_0x3c5a03,'widget':_0x48a5fd}),_0x48a5fd[_0x2e4805(0x393)]===_0x342116['Image']&&_0x4dabb7(fi,{'onChange':_0x3c5a03,'onSelectImage':_0x50bca2,'widget':_0x48a5fd})]});return _0x4dabb7(_0x4989cc,{'title':_0x37fab7,'onClose':_0x2499a2,'children':_0xc8266c});}function fi({onChange:_0xf7d288,onSelectImage:_0x594d4f,widget:_0x3980ef}){const _0x41c97c=_0x2353bc;let _0x3530af=_0x39b411(_0x5cd3ee);return _0x2b00c1(_0x41c97c(0x442),{'className':_0x41c97c(0x443),'children':[_0x2b00c1(_0x1b3e3b,{'className':'univer-w-full','onClick':()=>_0x594d4f()[_0x41c97c(0x388)](_0x304f8c=>_0x304f8c&&_0xf7d288({..._0x3980ef,'source':_0x304f8c['source'],'sourceType':_0x304f8c[_0x41c97c(0x4b3)],'alt':_0x304f8c[_0x41c97c(0x329)]}))[_0x41c97c(0x3d2)](()=>void 0x0),'children':[_0x4dabb7(_0x5155a3,{}),_0x3530af['t'](_0x41c97c(0x256))]}),_0x2b00c1(_0x41c97c(0x3b0),{'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x4dabb7('span',{'children':_0x3530af['t']('bases-dashboard-ui.dashboardInspector.backgroundImage')}),_0x4dabb7(_0x116fe9,{'items':[{'value':_0x41c97c(0x3d5),'label':_0x3530af['t'](_0x41c97c(0x2e7))},{'value':_0x41c97c(0x42b),'label':_0x3530af['t'](_0x41c97c(0x392))},{'value':_0x41c97c(0x2bc),'label':_0x3530af['t'](_0x41c97c(0x260))}],'value':_0x3980ef['displayMode']??_0x41c97c(0x3d5),'onChange':_0x4da01d=>_0xf7d288({..._0x3980ef,'displayMode':_0x4da01d})[_0x41c97c(0x3d2)](()=>void 0x0)})]})]});}function pi({base:_0x2a322a,onChange:_0x509742,widget:_0xe86d62}){const _0x172c52=_0x2353bc;let _0x3c37f0=_0x2a322a['getSnapshot']()[_0x172c52(0x39c)][_0xe86d62['tableId']],_0x382053=_0x3c37f0==null?void 0x0:_0x3c37f0['viewOrder'][_0x172c52(0x397)](_0x35c0b4=>_0x3c37f0[_0x172c52(0x451)][_0x35c0b4]),_0x17556f=_0x382053?_0x3c37f0==null?void 0x0:_0x3c37f0[_0x172c52(0x451)][_0x382053]:void 0x0,_0x3185ee=_0x3c37f0&&_0x17556f?_0x5249f3(_0x3c37f0,_0x17556f):[];return _0x4dabb7(ui,{'fields':_0x3185ee,'filter':_0xe86d62[_0x172c52(0x1b3)],'onChange':_0x48a989=>_0x509742({..._0xe86d62,'filter':_0x48a989})['catch'](()=>void 0x0),'onClear':()=>_0x509742({..._0xe86d62,'filter':null})[_0x172c52(0x3d2)](()=>void 0x0)});}function mi({onChange:_0x2305f2,widget:_0x250201}){const _0x55530a=_0x2353bc;let _0x5b5b87=_0x39b411(_0x5cd3ee),_0x1e9ed8=_0x39b411(_0x277079),_0x3c1cbb=_0x499abf(()=>_0x1e9ed8[_0x55530a(0x227)],_0x1e9ed8['getCurrentTheme'](),!0x1,[_0x1e9ed8]),_0x55822=Br(_0x250201),_0x4c1b9a=_0x46c2f1=>_0x2305f2({..._0x250201,'appearance':{..._0x55822,..._0x46c2f1}})[_0x55530a(0x3d2)](()=>void 0x0);return _0x2b00c1('div',{'className':_0x55530a(0x4b8),'children':[_0x4dabb7(_0x136f1a,{'className':_0x55530a(0x367),'defaultValue':Vr(_0x250201[_0x55530a(0x4d6)]),'rows':0x8,'onBlur':_0xcbead5=>_0x2305f2({..._0x250201,'document':Hr(_0x250201[_0x55530a(0x4d6)],_0xcbead5[_0x55530a(0x344)][_0x55530a(0x284)])})[_0x55530a(0x3d2)](()=>void 0x0)}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x5b5b87['t'](_0x55530a(0x245)),'label':_0x5b5b87['t'](_0x55530a(0x245)),'pickerFallbackValue':_0x3c1cbb[_0x55530a(0x433)][0x0],'resetLabel':_0x5b5b87['t'](_0x55530a(0x449)),'value':_0x55822[_0x55530a(0x394)]??null,'onChange':_0x3cc47e=>_0x4c1b9a({'backgroundColor':_0x3cc47e??void 0x0})}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x5b5b87['t'](_0x55530a(0x21a)),'label':_0x5b5b87['t'](_0x55530a(0x21a)),'pickerFallbackValue':_0x3c1cbb[_0x55530a(0x433)][0x3e8],'resetLabel':_0x5b5b87['t'](_0x55530a(0x449)),'value':_0x55822[_0x55530a(0x204)]??null,'onChange':_0x13ebd5=>_0x4c1b9a({'textColor':_0x13ebd5??void 0x0})}),_0x4dabb7(gi,{'label':_0x5b5b87['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x4dabb7(_0x116fe9,{'items':[{'value':_0x55530a(0x20a),'label':_0x5b5b87['t'](_0x55530a(0x28d))},{'value':_0x55530a(0x4b2),'label':_0x5b5b87['t'](_0x55530a(0x237))},{'value':_0x55530a(0x214),'label':_0x5b5b87['t'](_0x55530a(0x1fd))}],'value':_0x55822[_0x55530a(0x22e)],'onChange':_0xe0b9e1=>_0x4c1b9a({'alignment':_0xe0b9e1})})}),_0x2b00c1(gi,{'label':_0x5b5b87['t'](_0x55530a(0x219)),'children':[_0x4dabb7(_0x116fe9,{'items':[{'value':'auto','label':_0x5b5b87['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':'custom','label':_0x5b5b87['t'](_0x55530a(0x1da))}],'value':_0x55822[_0x55530a(0x1e2)],'onChange':_0x3e81c1=>_0x4c1b9a({'fontSizeMode':_0x3e81c1})}),_0x55822[_0x55530a(0x1e2)]===_0x55530a(0x509)&&_0x4dabb7(_0x1c2086,{'className':_0x55530a(0x266),'min':0xa,'max':0x78,'value':_0x55822['fontSize'],'onChange':_0x2cd1be=>_0x4c1b9a({'fontSize':_0x2cd1be??0x12,'fontSizeMode':_0x55530a(0x509)})})]})]});}function hi({message:_0x1fe626}){const _0x4eb0a3=_0x2353bc;return _0x4dabb7(_0x4eb0a3(0x442),{'className':_0x4eb0a3(0x43b),'children':_0x1fe626});}function gi({children:_0x32df21,label:_0x28f8c0}){const _0x412141=_0x2353bc;return _0x2b00c1(_0x412141(0x442),{'role':_0x412141(0x365),'aria-':!0x0,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x4dabb7(_0x412141(0x3ec),{'children':_0x28f8c0}),_0x32df21]});}function _i(_0x1c45cf){const _0x54ef24=_0x2353bc;return(_0x1c45cf==null?void 0x0:_0x1c45cf[_0x54ef24(0x393)])===_0x5ee6b5['Pivot']&&typeof _0x1c45cf[_0x54ef24(0x4e8)]=='object'&&_0x1c45cf[_0x54ef24(0x4e8)]!==null&&'pivot'in _0x1c45cf['config']&&_0x54ef24(0x4d8)in _0x1c45cf['config'];}function vi(_0xc6e11d){const _0x1b03cb=_0x2353bc;switch(_0xc6e11d[_0x1b03cb(0x393)]){case _0x342116[_0x1b03cb(0x3a3)]:return _0x1b03cb(0x350);case _0x342116['TableFilter']:return'bases-dashboard-ui.dashboard.tableFilter';case _0x342116[_0x1b03cb(0x298)]:return _0x1b03cb(0x45f);case _0x342116[_0x1b03cb(0x4ae)]:return _0x1b03cb(0x293);case _0x342116[_0x1b03cb(0x36e)]:return _0x1b03cb(0x268);}}function yi({onDelete:_0x5eda89,onEdit:_0x59ca85,onMoveUp:_0x2cb8fa,onMoveDown:_0x1ec481}){const _0x26289a=_0x2353bc;let [_0xaad42c,_0x108322]=_0x2be63d(!0x1),_0x19c078=_0x39b411(_0x5cd3ee),_0x5d606f=_0x19c078['t'](_0x26289a(0x39f)),_0x2edc98=_0x19c078['t'](_0x26289a(0x2ef)),_0x1e8e00=_0x19c078['t'](_0x26289a(0x1b9)),_0x1b10f2=[{'type':_0x26289a(0x423),'children':_0x2b00c1(_0x26289a(0x3ec),{'className':_0x26289a(0x49a),'children':[_0x4dabb7(_0x392d1f,{'className':'univer-size-4','aria-hidden':_0x26289a(0x1d5)}),_0x4dabb7(_0x26289a(0x3ec),{'children':_0x5d606f})]}),'onSelect':_0x59ca85},..._0x2cb8fa?[{'type':_0x26289a(0x423),'children':_0x2b00c1('span',{'className':_0x26289a(0x49a),'children':[_0x4dabb7(_0x19b9b0,{'className':_0x26289a(0x40e),'aria-hidden':_0x26289a(0x1d5)}),_0x4dabb7(_0x26289a(0x3ec),{'children':_0x19c078['t'](_0x26289a(0x2ab))})]}),'onSelect':_0x2cb8fa}]:[],..._0x1ec481?[{'type':'item','children':_0x2b00c1(_0x26289a(0x3ec),{'className':_0x26289a(0x49a),'children':[_0x4dabb7(_0x5c6cd4,{'className':'univer-size-4','aria-hidden':_0x26289a(0x1d5)}),_0x4dabb7(_0x26289a(0x3ec),{'children':_0x19c078['t'](_0x26289a(0x33b))})]}),'onSelect':_0x1ec481}]:[],{'type':'separator'},{'type':'item','variant':_0x26289a(0x4d0),'children':_0x2b00c1('span',{'className':_0x26289a(0x49a),'children':[_0x4dabb7(_0x2d17f6,{'className':_0x26289a(0x40e),'aria-hidden':_0x26289a(0x1d5)}),_0x4dabb7(_0x26289a(0x3ec),{'children':_0x2edc98})]}),'onSelect':_0x5eda89}];return _0x4dabb7(_0x492a1e,{'open':_0xaad42c,'onOpenChange':_0x108322,'align':'end','sideOffset':0x4,'items':_0x1b10f2[_0x26289a(0x3ff)](_0x351437=>({..._0x351437,'className':_0x351437[_0x26289a(0x393)]==='item'?_0x26289a(0x333):void 0x0})),'children':_0x4dabb7(_0x1b3e3b,{'type':_0x26289a(0x228),'size':'small','variant':_0x26289a(0x452),'onPointerDown':_0x29dd6c=>_0x29dd6c[_0x26289a(0x3ca)](),'onClick':()=>_0x108322(_0x27622e=>!_0x27622e),'title':_0x1e8e00,'aria-label':_0x1e8e00,'className':_0x26289a(0x390),'children':_0x4dabb7(_0x27b384,{'className':_0x26289a(0x40e),'aria-hidden':_0x26289a(0x1d5)})})});}function bi({dashboardId:_0x37d848,presentation:_0x4d39a0=!0x1,unitId:_0x4dcc89}){const _0x1b836e=_0x2353bc;let _0x1041b0=_0x39b411(_0x5a8661),_0x588165=_0x39b411(_0x1adc86);_0x499abf(_0x588165[_0x1b836e(0x27e)],0x0);let _0x32fdc9=_0x39b411(_0x32452d),_0x3eb518=_0x39b411(_0x4d763c),_0x1c912c=_0x39b411(_0x5482b5),_0x264795=_0x39b411(_0x4074e5),_0x16550a=_0x39b411(_0x5cd3ee),_0x16d860=_0x39b411(_0x5e40a3),_0x398124=_0x39b411(_0x123793),[_0x57b776,_0x492bbd]=_0x2be63d(!0x1),[_0x24fe28,_0x330d3b]=_0x2be63d(),[_0x572763,_0xea6dc7]=_0x2be63d(!0x1),[_0x5bf598,_0x88d98]=_0x2be63d(()=>new Map()),_0x525b5b=_0xd8821d((_0xbaf683,_0x246ff0)=>{_0x88d98(_0x5898d0=>{const _0x388158=_0x1cf6;let _0x10c1e9=new Map(_0x5898d0);return _0x246ff0?_0x10c1e9[_0x388158(0x401)](_0xbaf683,_0x246ff0):_0x10c1e9['delete'](_0xbaf683),_0x10c1e9;});},[]),_0xdc038c=_0x499abf(()=>_0x16d860[_0x1b836e(0x2a3)]['pipe'](_0x299cc9(()=>_0x16d860['getDashboard'](_0x4dcc89,_0x37d848))),_0x16d860['getDashboard'](_0x4dcc89,_0x37d848),!0x1,[_0x37d848,_0x16d860,_0x4dcc89]),_0x4484d0=_0x264795['getUnit'](_0x4dcc89,_0x51ec78['UNIVER_BASE']),_0x5ca72c=_0x499abf(()=>_0x398124[_0x1b836e(0x21f)],{'undos':0x0,'redos':0x0},!0x1,[_0x398124]),_0x10ba9a=gr(_0x4dcc89,_0x37d848);if(_0x38e78f(()=>{const _0x1f11cf=_0x1b836e;_0x264795['setCurrentUnitForType'](_0x4dcc89),_0x264795[_0x1f11cf(0x35f)](_0x4dcc89);},[_0x264795,_0x4dcc89]),!_0xdc038c||!_0x4484d0)return null;let _0x5c22d6={'unitId':_0x4dcc89,'objectId':_0x275cd2(_0x37d848),'objectType':_0x4f7ac1[_0x1b836e(0x4d9)]},_0x498890=(_0x5c61ca,_0x16c88a)=>{const _0x59e19c=_0x1b836e;let _0x139927=[..._0xdc038c[_0x59e19c(0x362)]],_0x32fda9=_0x139927[_0x59e19c(0x265)](_0x5c61ca),_0x3184c4=_0x32fda9+_0x16c88a;if(!(_0x32fda9<0x0||_0x3184c4<0x0||_0x3184c4>=_0x139927['length']))return[_0x139927[_0x32fda9],_0x139927[_0x3184c4]]=[_0x139927[_0x3184c4],_0x139927[_0x32fda9]],_0x32fdc9[_0x59e19c(0x1ff)](_0x5cbeb4['id'],{'unitId':_0x4dcc89,'dashboard':{..._0xdc038c,'widgetOrder':_0x139927}});},_0x47f2da=_0x2f2afd=>_0x32fdc9['executeCommand'](_0x2b3367['id'],{'unitId':_0x4dcc89,'dashboardId':_0x37d848,'widget':_0x2f2afd})[_0x1b836e(0x3d2)](()=>void 0x0),_0x392eb4=(_0x4d0f5b,_0x14c2a2,_0xd66285)=>{const _0x4c6f0c=_0x1b836e;let _0x568e8d=Math['max'](0x0,..._0xdc038c[_0x4c6f0c(0x362)][_0x4c6f0c(0x3bc)](_0xe23f16=>{const _0x4109ad=_0x4c6f0c;var _0x36b5d5;let _0x3650da=(_0x36b5d5=_0xdc038c['widgets'][_0xe23f16])==null?void 0x0:_0x36b5d5[_0x4109ad(0x439)];return _0x3650da?[_0x3650da[_0x4109ad(0x487)]+_0x3650da['rowSpan']]:[];})),_0x243c1d=_0x4c6f0c(0x4a9)+_0x325e5d(0x8),_0x630fbd={'column':0x0,'row':_0x568e8d,'columnSpan':_0x14c2a2,'rowSpan':_0xd66285};switch(_0x4d0f5b[_0x4c6f0c(0x393)]){case _0x342116['PivotChart']:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});case _0x342116['TableFilter']:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});case _0x342116[_0x4c6f0c(0x298)]:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});case _0x342116['Image']:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});case _0x342116[_0x4c6f0c(0x36e)]:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});}},_0x4685a9=_0x4484d0[_0x1b836e(0x3f5)](),_0x49feee=_0x4685a9['tableOrder'][_0x1b836e(0x3bc)](_0x54298c=>{const _0x58cd5c=_0x1b836e;let _0x37290e=_0x4685a9['tables'][_0x54298c];if(!_0x37290e)return[];let _0x480e03=_0x37290e[_0x58cd5c(0x411)][_0x58cd5c(0x3bc)](_0x102cbb=>{const _0x395e0b=_0x58cd5c;let _0x4efc5f=_0x37290e[_0x395e0b(0x451)][_0x102cbb];return Oi(_0x4efc5f)?[{'type':_0x395e0b(0x423),'children':_0x4efc5f['name'],'onSelect':()=>_0x392eb4({'type':_0x342116[_0x395e0b(0x3a3)],'tableId':_0x54298c,'pivotViewId':_0x102cbb,'chart':{..._0x4efc5f['config'][_0x395e0b(0x4d8)]}},0x6,0xa)}]:[];});return[{'type':_0x58cd5c(0x429),'children':_0x37290e[_0x58cd5c(0x329)],'options':[..._0x480e03,..._0x480e03['length']?[{'type':_0x58cd5c(0x50a)}]:[],{'type':'item','children':_0x16550a['t'](_0x58cd5c(0x396)),'onSelect':()=>_0x392eb4({'type':_0x342116[_0x58cd5c(0x296)],'tableId':_0x54298c,'filter':null},0x6,0x8)}]}];}),_0x5c2c27=[..._0x49feee,..._0x49feee['length']?[{'type':_0x1b836e(0x50a)}]:[],{'type':_0x1b836e(0x423),'children':_0x16550a['t'](_0x1b836e(0x45f)),'onSelect':()=>_0x392eb4({'type':_0x342116[_0x1b836e(0x298)],'document':wi()},0x4,0x6)},{'type':_0x1b836e(0x423),'children':_0x16550a['t'](_0x1b836e(0x293)),'onSelect':()=>Ti(_0x3eb518)[_0x1b836e(0x388)](_0x3a6746=>_0x3a6746&&_0x392eb4({'type':_0x342116[_0x1b836e(0x4ae)],'source':_0x3a6746['source'],'sourceType':_0x3a6746[_0x1b836e(0x4b3)],'alt':_0x3a6746[_0x1b836e(0x329)],'displayMode':'cover'},0x4,0x6))},{'type':'item','children':_0x16550a['t'](_0x1b836e(0x268)),'onSelect':()=>{const _0x2ea04d=_0x1b836e;let _0x28409a=_0x4685a9[_0x2ea04d(0x1e5)][_0x2ea04d(0x397)](_0x5c4838=>_0x4685a9[_0x2ea04d(0x39c)][_0x5c4838]);_0x28409a&&_0x392eb4({'type':_0x342116[_0x2ea04d(0x36e)],'tableId':_0x28409a,'shapeType':_0x4387d7[_0x2ea04d(0x3a7)],'shapeData':_0x11d1a1(),'description':_0x16550a['t']('bases-dashboard-ui.dashboard.formulaShape')},0x4,0x6);}}],_0x17ff2a=_0x24fe28?_0xdc038c[_0x1b836e(0x4e1)][_0x24fe28]:void 0x0,_0x734064=()=>_0xea6dc7(_0x471b31=>!_0x471b31),_0x4c82e0=_0x4d39a0||_0x572763,_0x2f2990=_0x10ba9a&&!_0x4c82e0;return _0x4dabb7(Kr,{'children':_0x2b00c1(_0x1b836e(0x442),{'className':_0x1b836e(0x37b)+(_0x572763?_0x1b836e(0x369):'univer-relative\x20univer-z-10')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[_0x572763&&_0x4dabb7(_0x1b3e3b,{'onClick':()=>_0xea6dc7(!0x1),'children':_0x16550a['t'](_0x1b836e(0x1bf))}),!_0x4c82e0&&_0x2b00c1(_0x1b836e(0x36a),{'className':'univer-flex\x20univer-h-auto\x20univer-min-h-12\x20univer-shrink-0\x20univer-flex-wrap\x20univer-items-center\x20univer-gap-1\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x4dabb7(_0x433eb4,{'className':_0x1b836e(0x1bd)}),_0x4dabb7('h2',{'className':_0x1b836e(0x385),'children':_0xdc038c[_0x1b836e(0x329)]}),_0x588165[_0x1b836e(0x3fd)](_0x5c22d6)&&_0x4dabb7(_0x1b3e3b,{'variant':_0x1b836e(0x452),'disabled':!_0x588165['canView'](_0x5c22d6),'aria-label':_0x16550a['t'](_0x1b836e(0x3a2)),'onClick':()=>{const _0xe8aa22=_0x1b836e;_0x14db5b(_0x1041b0,{'target':_0x5c22d6,'name':_0xdc038c[_0xe8aa22(0x329)],'commandId':_0x42d2ec['id'],'exists':()=>!!_0x16d860['getDashboard'](_0x4dcc89,_0x37d848)});},'children':_0x4dabb7(_0x7e2f55,{})}),_0x4dabb7(_0xf8bfea,{'unitId':_0x4dcc89}),_0x4dabb7(_0x1b3e3b,{'type':'button','size':_0x1b836e(0x432),'variant':_0x1b836e(0x452),'aria-label':_0x16550a['t'](_0x1b836e(0x4ee)),'disabled':!_0x10ba9a||_0x5ca72c['undos']===0x0,'onClick':()=>_0x32fdc9[_0x1b836e(0x1ff)](_0x4170dd['id'])[_0x1b836e(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x4f90a3,{})}),_0x4dabb7(_0x1b3e3b,{'type':_0x1b836e(0x228),'size':_0x1b836e(0x432),'variant':_0x1b836e(0x452),'aria-label':_0x16550a['t'](_0x1b836e(0x1c8)),'disabled':!_0x10ba9a||_0x5ca72c[_0x1b836e(0x2ce)]===0x0,'onClick':()=>_0x32fdc9[_0x1b836e(0x1ff)](_0x8d3b46['id'])[_0x1b836e(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x44a42f,{})}),_0x4dabb7(_0x1b3e3b,{'type':_0x1b836e(0x228),'size':_0x1b836e(0x432),'variant':_0x1b836e(0x452),'aria-label':_0x16550a['t']('bases-dashboard-ui.dashboard.fullScreen'),'onClick':_0x734064,'children':_0x4dabb7(_0x54cca2,{})}),_0x4dabb7(Jr,{'items':_0x5c2c27,'children':_0x2b00c1(_0x1b3e3b,{'variant':_0x1b836e(0x37f),'disabled':!_0x10ba9a,'children':[_0x4dabb7(_0x5155a3,{}),_0x16550a['t'](_0x1b836e(0x4b0))]})})]}),_0x2b00c1('div',{'className':_0x1b836e(0x1c0),'children':[_0x4dabb7('div',{'className':_0x1b836e(0x290),'children':_0x4dabb7(Wr,{'dashboard':_0xdc038c,'editable':_0x2f2990,'widgetLabel':_0x14b2e2=>_0x16550a['t'](Di(_0x14b2e2['type'])),'selectedWidgetId':_0x2f2990?_0x24fe28:void 0x0,'onSelectWidget':_0x2f2990?_0x25ff14=>{_0x330d3b(_0x25ff14),_0x25ff14||_0x492bbd(!0x1);}:void 0x0,'renderWidget':_0x3b6720=>_0x4dabb7(xi,{'base':_0x4484d0,'dashboard':_0xdc038c,'unitId':_0x4dcc89,'widget':_0x3b6720,'onChange':_0x47f2da,'onChartRuntimeChange':_0x525b5b}),'renderWidgetActions':_0x1a50c5=>_0x4dabb7(yi,{'onMoveUp':_0xdc038c[_0x1b836e(0x362)]['indexOf'](_0x1a50c5['id'])>0x0?()=>_0x498890(_0x1a50c5['id'],-0x1):void 0x0,'onMoveDown':_0xdc038c[_0x1b836e(0x362)][_0x1b836e(0x265)](_0x1a50c5['id'])<_0xdc038c[_0x1b836e(0x362)][_0x1b836e(0x4da)]-0x1?()=>_0x498890(_0x1a50c5['id'],0x1):void 0x0,'onEdit':()=>{_0x330d3b(_0x1a50c5['id']),_0x492bbd(!0x0);},'onDelete':()=>{const _0x2998e0=_0x1b836e;_0x24fe28===_0x1a50c5['id']&&(_0x330d3b(void 0x0),_0x492bbd(!0x1)),_0x32fdc9[_0x2998e0(0x1ff)](_0x20648d['id'],{'unitId':_0x4dcc89,'dashboardId':_0x37d848,'widgetId':_0x1a50c5['id']})[_0x2998e0(0x3d2)](()=>void 0x0);}})})}),_0x2f2990&&_0x57b776&&_0x17ff2a&&_0x4dabb7(di,{'base':_0x4484d0,'chartRuntime':_0x5bf598['get'](_0x17ff2a['id']),'unitId':_0x4dcc89,'widget':_0x17ff2a,'onChange':_0x47f2da,'onClose':()=>_0x492bbd(!0x1),'onSelectBackgroundImage':()=>Ei(_0x1c912c),'onSelectImage':()=>Ti(_0x3eb518)})]})]})});}function xi({base:_0x2a117d,dashboard:_0x16a82a,onChange:_0x2ce927,onChartRuntimeChange:_0x894ffd,unitId:_0xd99dca,widget:_0x1b5833}){const _0x212a0a=_0x2353bc;let _0x318c34=_0x56a185(()=>_0x16a82a[_0x212a0a(0x362)][_0x212a0a(0x3bc)](_0x1485bb=>{const _0x1ebea9=_0x212a0a;let _0x11a497=_0x16a82a['widgets'][_0x1485bb];return(_0x11a497==null?void 0x0:_0x11a497[_0x1ebea9(0x393)])===_0x342116['TableFilter']&&_0x11a497['tableId']===(_0x1ebea9(0x475)in _0x1b5833?_0x1b5833['tableId']:'')&&_0x11a497[_0x1ebea9(0x1b3)]?[_0x11a497[_0x1ebea9(0x1b3)]]:[];}),[_0x16a82a,_0x1b5833]);switch(_0x1b5833['type']){case _0x342116['PivotChart']:return _0x4dabb7(Lr,{'filters':_0x318c34,'unitId':_0xd99dca,'widget':_0x1b5833,'onRuntimeChange':_0x894ffd});case _0x342116['TableFilter']:return _0x4dabb7(li,{'fields':Si(_0x2a117d,_0x1b5833['tableId']),'filter':_0x1b5833['filter'],'onChange':_0x5b9b2e=>_0x2ce927({..._0x1b5833,'filter':_0x5b9b2e})[_0x212a0a(0x3d2)](()=>void 0x0)});case _0x342116[_0x212a0a(0x298)]:return _0x4dabb7(Ur,{'widget':_0x1b5833});case _0x342116['Image']:return _0x4dabb7(Ci,{'widget':_0x1b5833});case _0x342116[_0x212a0a(0x36e)]:return _0x4dabb7(Dr,{'dashboardId':_0x16a82a['id'],'unitId':_0xd99dca,'widget':_0x1b5833});}}function Si(_0x47432f,_0x1bab84){const _0x34a5ec=_0x2353bc;let _0x34a7dd=_0x47432f['getSnapshot']()[_0x34a5ec(0x39c)][_0x1bab84],_0x342e92=_0x34a7dd==null?void 0x0:_0x34a7dd[_0x34a5ec(0x411)][_0x34a5ec(0x397)](_0x47b38d=>_0x34a7dd[_0x34a5ec(0x451)][_0x47b38d]),_0x5575b1=_0x342e92?_0x34a7dd==null?void 0x0:_0x34a7dd['views'][_0x342e92]:void 0x0;return _0x34a7dd&&_0x5575b1?_0x5249f3(_0x34a7dd,_0x5575b1):[];}function Ci({widget:_0xf6e448}){const _0x548064=_0x2353bc;let _0x50f41c=_0x39b411(_0x4d763c),[_0x1697cd,_0x4dadd3]=_0x2be63d(_0xf6e448[_0x548064(0x4b3)]===_0x26a785[_0x548064(0x43f)]?'':_0xf6e448['source']);return _0x38e78f(()=>{const _0x478c1c=_0x548064;let _0x116546=!0x0;return _0x50f41c[_0x478c1c(0x4c6)](_0xf6e448[_0x478c1c(0x24c)],_0xf6e448[_0x478c1c(0x4b3)])[_0x478c1c(0x388)](_0x289233=>{_0x116546&&_0x4dadd3(_0x289233);})[_0x478c1c(0x3d2)](()=>void 0x0),()=>{_0x116546=!0x1;};},[_0x50f41c,_0xf6e448['source'],_0xf6e448[_0x548064(0x4b3)]]),_0x1697cd?_0x4dabb7(_0x548064(0x442),{'role':_0xf6e448['alt']?'img':void 0x0,'aria-label':_0xf6e448['alt']||void 0x0,'data-dashboard-image':_0xf6e448['id'],'className':_0x548064(0x203),'style':vr(_0x1697cd,_0xf6e448[_0x548064(0x4a6)])}):null;}function wi(){const _0x19deb7=_0x2353bc;let _0x3e4902=_0x112de2(new Set());return{'id':_0x19deb7(0x3de)+_0x325e5d(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x3e4902}]},'documentStyle':{}};}function Ti(_0x5efd71){return new Promise(_0x1c6d87=>{const _0x3456f3=_0x1cf6;let _0x27eb71=document[_0x3456f3(0x3d6)](_0x3456f3(0x4d3));_0x27eb71[_0x3456f3(0x393)]=_0x3456f3(0x3bd),_0x27eb71[_0x3456f3(0x461)]=_0x3456f3(0x469),_0x27eb71[_0x3456f3(0x1d1)]('change',()=>{const _0x2b6c6e=_0x3456f3;var _0x1601e2;let _0x1a820c=(_0x1601e2=_0x27eb71['files'])==null?void 0x0:_0x1601e2[0x0];if(!_0x1a820c){_0x1c6d87(null);return;}_0x5efd71[_0x2b6c6e(0x504)](_0x1a820c)['then'](_0x4e2d7b=>{const _0x5454f0=_0x2b6c6e;if(!_0x4e2d7b[_0x5454f0(0x24c)]||_0x4e2d7b[_0x5454f0(0x4b3)]===void 0x0){_0x1c6d87(null);return;}_0x1c6d87({'name':_0x4e2d7b[_0x5454f0(0x329)],'source':_0x4e2d7b[_0x5454f0(0x24c)],'sourceType':_0x4e2d7b['sourceType']});})[_0x2b6c6e(0x3d2)](()=>_0x1c6d87(null));},{'once':!0x0}),_0x27eb71[_0x3456f3(0x3ab)]();});}function Ei(_0x320567){return new Promise(_0x113099=>{const _0x14aa0d=_0x1cf6;let _0x401716=document[_0x14aa0d(0x3d6)](_0x14aa0d(0x4d3));_0x401716[_0x14aa0d(0x393)]=_0x14aa0d(0x3bd),_0x401716['accept']='image/*',_0x401716[_0x14aa0d(0x1d1)](_0x14aa0d(0x48a),()=>{const _0x5d7f33=_0x14aa0d;var _0x523f73;let _0x9e2ce7=(_0x523f73=_0x401716['files'])==null?void 0x0:_0x523f73[0x0];if(!_0x9e2ce7){_0x113099(null);return;}_0x320567[_0x5d7f33(0x3dc)](_0x9e2ce7)['then'](_0x2b87e6=>{const _0x6c3c1=_0x5d7f33;if(!(_0x2b87e6!=null&&_0x2b87e6[_0x6c3c1(0x24c)])){_0x113099(null);return;}if(_0x2b87e6[_0x6c3c1(0x308)]){let _0x23b5d4=new Image();_0x23b5d4[_0x6c3c1(0x2dd)]=_0x2b87e6[_0x6c3c1(0x308)],_0x320567[_0x6c3c1(0x32e)](_0x2b87e6[_0x6c3c1(0x24c)],_0x2b87e6[_0x6c3c1(0x23d)],_0x23b5d4);}_0x113099({'source':_0x2b87e6[_0x6c3c1(0x24c)],'sourceType':_0x2b87e6[_0x6c3c1(0x23d)]});})[_0x5d7f33(0x3d2)](()=>_0x113099(null));},{'once':!0x0}),_0x401716[_0x14aa0d(0x3ab)]();});}function Di(_0x5f572f){const _0x271e64=_0x2353bc;switch(_0x5f572f){case _0x342116[_0x271e64(0x3a3)]:return _0x271e64(0x350);case _0x342116[_0x271e64(0x296)]:return _0x271e64(0x396);case _0x342116[_0x271e64(0x298)]:return _0x271e64(0x45f);case _0x342116[_0x271e64(0x4ae)]:return _0x271e64(0x293);case _0x342116[_0x271e64(0x36e)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function Oi(_0x271859){const _0x499ab2=_0x2353bc;return(_0x271859==null?void 0x0:_0x271859[_0x499ab2(0x393)])===_0x5ee6b5[_0x499ab2(0x49c)]&&typeof _0x271859[_0x499ab2(0x4e8)]==_0x499ab2(0x43c)&&_0x271859[_0x499ab2(0x4e8)]!==null&&'pivot'in _0x271859['config']&&_0x499ab2(0x4d8)in _0x271859['config'];}function ki({pivot:_0x3bf516,view:_0x266824}){const _0x2f2d8b=_0x2353bc;let _0x258130=_0x39b411(_0x5cd3ee),_0x21394b=_0x56a185(()=>Ai(_0x266824,_0x3bf516,_0x258130['t'](_0x2f2d8b(0x212))),[_0x258130,_0x3bf516,_0x266824]);return _0x2b00c1(_0x2f2d8b(0x442),{'className':_0x2f2d8b(0x323),'children':[_0x21394b['pageRows'][_0x2f2d8b(0x4da)]>0x0&&_0x4dabb7('table',{'className':'univer-mb-2\x20univer-border-collapse\x20univer-text-sm','children':_0x4dabb7(_0x2f2d8b(0x231),{'children':ji(_0x21394b[_0x2f2d8b(0x3e9)])})}),_0x2b00c1('table',{'className':_0x2f2d8b(0x420),'children':[_0x21394b[_0x2f2d8b(0x4ac)]>0x0&&_0x4dabb7('thead',{'className':_0x2f2d8b(0x44d),'children':ji(_0x21394b[_0x2f2d8b(0x4bd)][_0x2f2d8b(0x35d)](0x0,_0x21394b[_0x2f2d8b(0x4ac)]))}),_0x4dabb7(_0x2f2d8b(0x231),{'children':ji(_0x21394b[_0x2f2d8b(0x4bd)]['slice'](_0x21394b[_0x2f2d8b(0x4ac)]))})]})]});}function Ai(_0xc7501b,_0x36475f,_0x1f6297){const _0xcb5d68=_0x2353bc;let _0xccef06=_0xc7501b[_0xcb5d68(0x501)][_0xcb5d68(0x34d)],_0xb2cf78=_0xc7501b['rowView'][_0xcb5d68(0x3b5)],_0x5b550e=_0xc7501b[_0xcb5d68(0x2a4)][_0xcb5d68(0x34d)],_0x8ae676=_0xc7501b[_0xcb5d68(0x2a4)][_0xcb5d68(0x3b5)],_0x3fae7a=Array[_0xcb5d68(0x4ce)]({'length':_0xccef06+_0x5b550e},(_0x533811,_0x1febab)=>Array[_0xcb5d68(0x4ce)]({'length':_0xb2cf78+_0x8ae676},(_0x1c539b,_0x200546)=>{const _0x32c068=_0xcb5d68;var _0xa0bb32,_0x5e2baa;if(_0x1febab<_0xccef06&&_0x200546<_0xb2cf78)return Mi(_0xc7501b[_0x32c068(0x377)],_0x1febab,_0x200546,void 0x0,_0x1f6297,!0x0,!0x1,_0x32c068(0x1fc)+_0x1febab+':'+_0x200546);if(_0x1febab<_0xccef06){var _0x3b3982;let _0x43b520=_0x200546-_0xb2cf78,_0x4008dd=(_0x3b3982=_0xc7501b[_0x32c068(0x501)][_0x32c068(0x309)][_0x1febab])==null?void 0x0:_0x3b3982[_0x32c068(0x483)];return Mi(_0xc7501b[_0x32c068(0x501)],_0x1febab,_0x43b520,_0x4008dd?_0xc7501b['formatMap'][_0x4008dd]:void 0x0,_0x1f6297,!0x0,Fi(_0xc7501b['colView'][_0x32c068(0x44b)][_0x43b520]),'column:'+_0x1febab+':'+_0x43b520);}if(_0x200546<_0xb2cf78){var _0x3442c6;let _0x1becf9=_0x1febab-_0xccef06,_0x22692b=(_0x3442c6=_0xc7501b[_0x32c068(0x28c)][_0x32c068(0x309)][_0x200546])==null?void 0x0:_0x3442c6['tableFieldId'];return Mi(_0xc7501b[_0x32c068(0x28c)],_0x1becf9,_0x200546,_0x22692b?_0xc7501b[_0x32c068(0x47b)][_0x22692b]:void 0x0,_0x1f6297,!0x0,Fi(_0xc7501b[_0x32c068(0x28c)][_0x32c068(0x44b)][_0x1becf9]),_0x32c068(0x371)+_0x1becf9+':'+_0x200546);}let _0x18c33f=_0x1febab-_0xccef06,_0x3959cc=_0x200546-_0xb2cf78,_0xba71b8=Math[_0x32c068(0x2eb)](((_0xa0bb32=_0xc7501b['rowView'][_0x32c068(0x44b)][_0x18c33f])==null?void 0x0:_0xa0bb32[_0x32c068(0x3a5)])??-0x1,((_0x5e2baa=_0xc7501b[_0x32c068(0x501)][_0x32c068(0x44b)][_0x3959cc])==null?void 0x0:_0x5e2baa[_0x32c068(0x3a5)])??-0x1),_0x1b9437=_0x36475f[_0x32c068(0x1f9)][_0xba71b8<0x0?0x0:_0xba71b8];return Mi(_0xc7501b['dataView'],_0x18c33f,_0x3959cc,_0x1b9437?_0xc7501b['formatMap'][_0x1b9437]:void 0x0,_0x1f6297,!0x1,Fi(_0xc7501b[_0x32c068(0x28c)][_0x32c068(0x44b)][_0x18c33f])||Fi(_0xc7501b[_0x32c068(0x501)][_0x32c068(0x44b)][_0x3959cc]),_0x32c068(0x1e4)+_0x18c33f+':'+_0x3959cc);}));return{'headerColumnCount':_0xb2cf78,'headerRowCount':_0xccef06,'pageRows':_0xc7501b['pageView'][_0xcb5d68(0x4dc)]<0x0||_0xc7501b[_0xcb5d68(0x22d)][_0xcb5d68(0x4c3)]<0x0?[]:Array['from']({'length':_0xc7501b[_0xcb5d68(0x22d)]['lastRow']+0x1},(_0x49421c,_0x1341cb)=>Array[_0xcb5d68(0x4ce)]({'length':_0xc7501b[_0xcb5d68(0x22d)][_0xcb5d68(0x4c3)]+0x1},(_0x465df1,_0x20094f)=>Mi(_0xc7501b['pageView'],_0x1341cb,_0x20094f,void 0x0,_0x1f6297,!0x0,!0x1,_0xcb5d68(0x455)+_0x1341cb+':'+_0x20094f))),'rows':_0x3fae7a};}function ji(_0x5c1494){const _0x54c8f4=_0x2353bc;return _0x5c1494[_0x54c8f4(0x3ff)](_0x2eeeb1=>{const _0x1af5fa=_0x54c8f4;var _0x19727c;return _0x4dabb7('tr',{'children':_0x2eeeb1[_0x1af5fa(0x3ff)](_0x2ce50c=>{const _0x3f308f=_0x1af5fa;let _0x32dd1d=_0x2ce50c[_0x3f308f(0x24a)]?'th':'td';return _0x4dabb7(_0x32dd1d,{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-whitespace-nowrap\x20univer-border\x20univer-border-gray-200\x20univer-px-3\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-left\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2ce50c['isTotal']?_0x3f308f(0x2ee):'')+_0x3f308f(0x23a)+(_0x2ce50c[_0x3f308f(0x24a)]?'':_0x3f308f(0x1c5))+_0x3f308f(0x248),'children':_0x2ce50c[_0x3f308f(0x284)]},_0x2ce50c[_0x3f308f(0x336)]);})},(_0x19727c=_0x2eeeb1[0x0])==null?void 0x0:_0x19727c[_0x1af5fa(0x336)]);});}function Mi(_0x4ab663,_0x186538,_0x1bdf0d,_0x1182c8,_0x3c3439,_0x56f9e2,_0xe8b6a9,_0x4e72ca){const _0x71ce72=_0x2353bc;var _0x448722;let _0x3dd0a8=(_0x448722=_0x4ab663['data'][_0x186538])==null?void 0x0:_0x448722[_0x1bdf0d],_0x22694b=_0x3dd0a8==null?void 0x0:_0x3dd0a8['s'],_0x30942a=_0xe8b6a9||_0x22694b===_0x5d656b[_0x71ce72(0x21d)]||_0x22694b===_0x5d656b[_0x71ce72(0x435)];return{'isHeader':_0x56f9e2,'isTotal':_0x30942a||_0x22694b===_0x5d656b[_0x71ce72(0x1d3)],'key':_0x4e72ca,'style':_0x22694b,'value':_0x30942a&&Pi(_0x3dd0a8==null?void 0x0:_0x3dd0a8['v'])?_0x3c3439:Ni(_0x3dd0a8,_0x1182c8)};}function Ni(_0x25cb58,_0x3ad3fb){const _0x15721d=_0x2353bc;let _0x43c83b=_0x25cb58==null?void 0x0:_0x25cb58['v'];return _0x1b2084(_0x43c83b)?String(_0x43c83b[_0x15721d(0x284)]??_0x43c83b['prefix']??''):_0x426ce3(_0x43c83b)?'#'+_0x43c83b['errorType']:_0x3ad3fb&&typeof _0x43c83b==_0x15721d(0x3c4)?_0x3f4aae[_0x15721d(0x347)](_0x3ad3fb,_0x43c83b):String(_0x43c83b??'');}function Pi(_0x1d56b6){return _0x1d56b6===void 0x0||_0x1d56b6==='';}function Fi(_0x431bee){const _0x266301=_0x2353bc;return!!(_0x431bee!=null&&_0x431bee[_0x266301(0x361)]||_0x431bee!=null&&_0x431bee['isTopTotal']||_0x431bee!=null&&_0x431bee[_0x266301(0x3f2)]||(_0x431bee==null?void 0x0:_0x431bee[_0x266301(0x339)])==='grandTotal');}const Ii=[{'area':_0x4c815c[_0x2353bc(0x3b4)],'key':_0x2353bc(0x2e1),'label':_0x2353bc(0x2a1)},{'area':_0x4c815c[_0x2353bc(0x499)],'key':'columnFields','label':_0x2353bc(0x318)},{'area':_0x4c815c[_0x2353bc(0x456)],'key':_0x2353bc(0x490),'label':_0x2353bc(0x1d4)},{'area':_0x4c815c[_0x2353bc(0x47a)],'key':_0x2353bc(0x1f9),'label':_0x2353bc(0x326)}],Li=[{'value':_0x282c8a[_0x2353bc(0x2bf)],'localeKey':_0x2353bc(0x3b2)},{'value':_0x282c8a['count'],'localeKey':_0x2353bc(0x29c)},{'value':_0x282c8a[_0x2353bc(0x3c8)],'localeKey':_0x2353bc(0x48c)},{'value':_0x282c8a[_0x2353bc(0x4f0)],'localeKey':_0x2353bc(0x3e4)},{'value':_0x282c8a[_0x2353bc(0x2eb)],'localeKey':_0x2353bc(0x42f)},{'value':_0x282c8a[_0x2353bc(0x314)],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x282c8a[_0x2353bc(0x2d6)],'localeKey':_0x2353bc(0x44c)},{'value':_0x282c8a[_0x2353bc(0x2a7)],'localeKey':_0x2353bc(0x3ac)},{'value':_0x282c8a['stdDevp'],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x282c8a[_0x2353bc(0x218)],'localeKey':_0x2353bc(0x2b9)},{'value':_0x282c8a[_0x2353bc(0x22c)],'localeKey':_0x2353bc(0x3e0)}];function Ri(_0x4b32ae){const _0x14e6b3=_0x2353bc;let {config:_0x58b9a7,onChange:_0x5c3cac,table:_0x5900af}=_0x4b32ae,_0x3a9b06=_0x39b411(_0x5cd3ee),[_0x479898,_0x343c22]=_0x2be63d(_0x14e6b3(0x273)),[_0x4d2d78,_0x563d98]=_0x2be63d(''),[_0x565a5a,_0x54315e]=_0x2be63d(null),[_0x4fc275,_0x3db859]=_0x2be63d(null),[_0x36a548,_0x41c801]=_0x2be63d(null),[_0x1bb088,_0xc21cc0]=_0x2be63d(null),_0x3c330f=_0x35f949(null),_0x4a363d=_0x56a185(()=>_0x5900af['fieldOrder'][_0x14e6b3(0x3bc)](_0x1bbc57=>{const _0x49e6e2=_0x14e6b3;let _0x136c60=_0x5900af[_0x49e6e2(0x273)][_0x1bbc57];return _0x136c60&&_0x136c60['system']!==!0x0&&_0x136c60[_0x49e6e2(0x393)]!==_0x557eea[_0x49e6e2(0x389)]?[_0x136c60]:[];})[_0x14e6b3(0x1b3)](_0x2f9060=>_0x2f9060[_0x14e6b3(0x329)]['toLocaleLowerCase']()[_0x14e6b3(0x331)](_0x4d2d78[_0x14e6b3(0x3ee)]()[_0x14e6b3(0x49d)]())),[_0x4d2d78,_0x5900af]),_0x43ee29=_0xe7939=>{const _0x523a79=_0x14e6b3;let _0x2f210c=_0x1c8584(_0x5900af,_0x58b9a7[_0x523a79(0x4aa)]);try{_0xe7939(_0x2f210c),_0x5c3cac({'pivot':_0x2f210c['toJSON']()});}finally{_0x2f210c['dispose']();}},_0x3a9d8a=(_0x1c199e,_0x152c53)=>{_0x565a5a&&(_0x43ee29(_0xe2dd8d=>{const _0x2ca70d=_0x1cf6;if(_0x565a5a[_0x2ca70d(0x29e)]===_0x2ca70d(0x506)){let _0xd287d3=_0xe2dd8d[_0x2ca70d(0x316)](_0x565a5a['id']),_0x3551b6=_0xd287d3[_0x2ca70d(0x269)]===_0x1c199e&&_0xd287d3['index']<_0x152c53?_0x152c53-0x1:_0x152c53;_0xe2dd8d['updateFieldPosition'](_0x565a5a['id'],_0x1c199e,_0x3551b6);return;}Ki(_0xe2dd8d,_0x565a5a['id'],_0x1c199e,_0x152c53);}),_0x54315e(null),_0x3db859(null));};return _0x2b00c1(_0x14e6b3(0x442),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col','children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x3a9b06['t'](_0x14e6b3(0x4a7)),'className':_0x14e6b3(0x410),'items':[{'label':_0x3a9b06['t'](_0x14e6b3(0x2a5)),'panelId':_0x14e6b3(0x4f3),'value':_0x14e6b3(0x273)},{'label':_0x3a9b06['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x14e6b3(0x27b),'value':'options'}],'value':_0x479898,'onChange':_0x343c22}),_0x4dabb7('div',{'ref':_0x3c330f,'className':_0x52fed8(_0x14e6b3(0x2fb),_0x2a22a5),'onDragOver':_0x5171cf=>{const _0xf72121=_0x14e6b3;let _0x42f65b=_0x3c330f['current'];if(!_0x42f65b)return;let _0xc5d3e9=_0x42f65b[_0xf72121(0x4db)]();_0x5171cf[_0xf72121(0x408)]<_0xc5d3e9['top']+0x30?_0x42f65b['scrollTop']-=0x10:_0x5171cf[_0xf72121(0x408)]>_0xc5d3e9[_0xf72121(0x2d0)]-0x30&&(_0x42f65b[_0xf72121(0x425)]+=0x10);},'children':_0x479898===_0x14e6b3(0x320)?_0x4dabb7(Gi,{'config':_0x58b9a7,'commit':_0x43ee29}):_0x2b00c1(_0x14e6b3(0x442),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x2b00c1(_0x14e6b3(0x442),{'children':[_0x4dabb7(_0x14e6b3(0x442),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x3a9b06['t']('bases-dashboard-ui.pivot.sourceFields')}),_0x4dabb7(_0x2c53ee,{'allowClear':!0x0,'slot':_0x4dabb7(_0x51aac6,{}),'value':_0x4d2d78,'placeholder':_0x3a9b06['t'](_0x14e6b3(0x35a)),'onChange':_0x563d98}),_0x4dabb7(_0x14e6b3(0x442),{'className':_0x14e6b3(0x351),'children':_0x4a363d[_0x14e6b3(0x3ff)](_0x2c5221=>_0x4dabb7(zi,{'config':_0x58b9a7,'field':_0x2c5221,'onAdd':_0x50d17d=>_0x43ee29(_0x3840f7=>Ki(_0x3840f7,_0x2c5221['id'],_0x50d17d,_0x3840f7['getFieldCountByArea'](_0x50d17d))),'onCheckedChange':_0x597380=>_0x43ee29(_0x20a575=>{const _0x259c64=_0x14e6b3;let _0x34f00b=_0x20a575['getTableFieldsByDataFieldId'](_0x2c5221['id']);if(!_0x597380){_0x34f00b['forEach'](_0x81b155=>_0x20a575[_0x259c64(0x24e)](_0x81b155['getId']()));return;}if(_0x34f00b[_0x259c64(0x4da)]===0x0){let _0x489489=Ji(_0x2c5221)?_0x4c815c[_0x259c64(0x47a)]:_0x4c815c[_0x259c64(0x456)];_0x20a575[_0x259c64(0x3fa)](_0x2c5221['id'],_0x489489);}}),'onDragStart':()=>_0x54315e({'kind':_0x14e6b3(0x24c),'id':_0x2c5221['id']})},_0x2c5221['id']))})]}),_0x4dabb7(_0x14e6b3(0x442),{'className':'univer-grid\x20univer-gap-3','children':Ii[_0x14e6b3(0x3ff)](_0x4112c6=>_0x4dabb7(Vi,{'area':_0x4112c6['area'],'dropTarget':_0x4fc275,'fields':_0x58b9a7[_0x14e6b3(0x4aa)][_0x4112c6[_0x14e6b3(0x336)]],'label':_0x3a9b06['t'](_0x4112c6[_0x14e6b3(0x3b0)]),'snapshot':_0x58b9a7['pivot'],'onDragEnd':()=>{_0x54315e(null),_0x3db859(null);},'onDragStart':_0x17360d=>_0x54315e({'kind':'field','id':_0x17360d,'area':_0x4112c6[_0x14e6b3(0x269)]}),'onDragOver':_0x39f988=>_0x3db859({'area':_0x4112c6['area'],'index':_0x39f988}),'onDrop':_0x2d0b29=>_0x3a9d8a(_0x4112c6[_0x14e6b3(0x269)],_0x2d0b29),'onFilter':_0x41c801,'onMove':(_0x467161,_0x14b0a0,_0x376b78)=>_0x43ee29(_0x2bfc04=>_0x2bfc04['updateFieldPosition'](_0x467161,_0x14b0a0,_0x376b78)),'onRemove':_0x3acfe4=>_0x43ee29(_0x284d98=>_0x284d98['removeField'](_0x3acfe4)),'onSettings':_0xc21cc0},_0x4112c6['area']))}),_0x36a548&&_0x4dabb7(Ui,{'fieldId':_0x36a548,'snapshot':_0x58b9a7['pivot'],'table':_0x5900af,'onCancel':()=>_0x41c801(null),'onCommit':(_0x272ef6,_0x22b983)=>{_0x43ee29(_0x5f0164=>{const _0x359b8b=_0x1cf6;let _0x489c84=_0x5f0164[_0x359b8b(0x3b7)](_0x36a548),_0x2b8bb0=(_0x489c84==null?void 0x0:_0x489c84['items'])??[];_0x5f0164[_0x359b8b(0x4c2)](_0x36a548,{'type':_0x1b814d[_0x359b8b(0x468)],'list':_0x272ef6,'isAll':_0x272ef6[_0x359b8b(0x4da)]===_0x2b8bb0['length']}),_0x5f0164[_0x359b8b(0x263)](_0x36a548,_0x22b983===void 0x0?void 0x0:{'type':_0x22b983});}),_0x41c801(null);}},_0x36a548),_0x1bb088&&_0x4dabb7(Wi,{'field':_0x58b9a7[_0x14e6b3(0x4aa)]['measure'][_0x1bb088],'onCancel':()=>_0xc21cc0(null),'onCommit':(_0x3f5e2b,_0xffe44b,_0x3b258a)=>{_0x43ee29(_0x1cf23c=>{const _0x46cab7=_0x1cf6;_0x1cf23c[_0x46cab7(0x1e8)](_0x1bb088,_0x3f5e2b),_0x1cf23c[_0x46cab7(0x467)](_0x1bb088,_0xffe44b),_0x1cf23c[_0x46cab7(0x2de)](_0x1bb088,_0x3b258a||void 0x0);}),_0xc21cc0(null);}},_0x1bb088)]})})]});}function zi(_0xd3dcb5){const _0x5139d4=_0x2353bc;let {config:_0x41669b,field:_0x27c732,onAdd:_0x52c20a,onCheckedChange:_0xf2535e,onDragStart:_0x5edc81}=_0xd3dcb5,_0x2fe2af=_0x39b411(_0x5cd3ee),_0x1eacaf=[...Object['values'](_0x41669b[_0x5139d4(0x4aa)][_0x5139d4(0x46a)]),...Object[_0x5139d4(0x4ad)](_0x41669b[_0x5139d4(0x4aa)][_0x5139d4(0x1c7)])]['some'](_0x3c2105=>_0x3c2105[_0x5139d4(0x355)]===_0x27c732['id']),_0x3160ec=Ii[_0x5139d4(0x3ff)](_0x2d96ec=>({'type':'item','children':_0x2fe2af['t'](Yi(_0x2d96ec[_0x5139d4(0x269)])),'onSelect':()=>_0x52c20a(_0x2d96ec[_0x5139d4(0x269)])}));return _0x2b00c1(_0x5139d4(0x442),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x5139d4(0x473),'onDragStart':_0x5edc81,'children':[_0x4dabb7(_0x3cc061,{'checked':_0x1eacaf,'onChange':_0x169c62=>_0xf2535e(!!_0x169c62)}),_0x4dabb7(Bi,{'field':_0x27c732}),_0x4dabb7('span',{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x27c732['name']}),_0x4dabb7(Jr,{'align':_0x5139d4(0x236),'items':_0x3160ec,'children':_0x4dabb7(_0x1b3e3b,{'variant':'text','aria-label':_0x2fe2af['t']('bases-dashboard-ui.pivot.fieldSettings'),'children':_0x4dabb7(_0xf77a3b,{})})})]});}function Bi({field:_0x3dd8ba}){const _0x5409d5=_0x2353bc;return Ji(_0x3dd8ba)?_0x4dabb7(_0x5a5ded,{'className':_0x5409d5(0x28e)}):_0x3dd8ba[_0x5409d5(0x393)]===_0x557eea['Date']||_0x3dd8ba['type']===_0x557eea[_0x5409d5(0x2fa)]||_0x3dd8ba[_0x5409d5(0x393)]===_0x557eea['UpdatedAt']?_0x4dabb7(_0x951fbe,{'className':_0x5409d5(0x28e)}):_0x4dabb7(_0x264f2e,{'className':_0x5409d5(0x28e)});}function Vi(_0x30fd85){const _0x3c342f=_0x2353bc;let {area:_0x16a360,dropTarget:_0x3afb08,fields:_0x1f9547,label:_0x4ed925,snapshot:_0x4fab24}=_0x30fd85,_0x1eb183=_0x39b411(_0x5cd3ee);return _0x2b00c1('section',{'className':_0x52fed8(_0x3c342f(0x458),_0x1298ac),'onDragOver':_0x1f0bcd=>{const _0x23d6fa=_0x3c342f;_0x1f0bcd[_0x23d6fa(0x3ca)](),_0x30fd85['onDragOver'](_0x1f9547[_0x23d6fa(0x4da)]);},'onDrop':_0x1b896a=>{const _0x4137a5=_0x3c342f;_0x1b896a[_0x4137a5(0x3ca)](),_0x30fd85[_0x4137a5(0x20c)]((_0x3afb08==null?void 0x0:_0x3afb08[_0x4137a5(0x269)])===_0x16a360?_0x3afb08[_0x4137a5(0x32a)]:_0x1f9547[_0x4137a5(0x4da)]);},'children':[_0x4dabb7('div',{'className':_0x3c342f(0x356),'children':_0x4ed925}),_0x2b00c1(_0x3c342f(0x442),{'className':_0x3c342f(0x378),'children':[_0x1f9547[_0x3c342f(0x3ff)]((_0x5d4a05,_0x1eb024)=>{const _0x31a941=_0x3c342f;let _0x4973f=_0x4fab24[_0x31a941(0x46a)][_0x5d4a05]??_0x4fab24[_0x31a941(0x1c7)][_0x5d4a05];if(!_0x4973f)return null;let _0x4f0cf5=(_0x3afb08==null?void 0x0:_0x3afb08[_0x31a941(0x269)])===_0x16a360&&_0x3afb08[_0x31a941(0x32a)]===_0x1eb024;return _0x2b00c1(_0x31a941(0x442),{'onDragOver':_0x3058af=>{const _0x5e507c=_0x31a941;_0x3058af[_0x5e507c(0x3ca)](),_0x3058af[_0x5e507c(0x1de)]();let _0x52e16d=_0x3058af[_0x5e507c(0x250)]['getBoundingClientRect']();_0x30fd85[_0x5e507c(0x4cb)](_0x1eb024+ +(_0x3058af[_0x5e507c(0x408)]>_0x52e16d[_0x5e507c(0x45e)]+_0x52e16d['height']/0x2));},'onDrop':_0x1c9830=>{const _0x1e8462=_0x31a941;_0x1c9830[_0x1e8462(0x3ca)](),_0x1c9830[_0x1e8462(0x1de)](),_0x30fd85['onDrop']((_0x3afb08==null?void 0x0:_0x3afb08[_0x1e8462(0x269)])===_0x16a360?_0x3afb08['index']:_0x1eb024);},'children':[_0x4f0cf5&&_0x4dabb7('div',{'className':_0x31a941(0x278)}),_0x4dabb7(Hi,{'area':_0x16a360,'field':_0x4973f,'onDragEnd':_0x30fd85[_0x31a941(0x31c)],'onDragStart':()=>_0x30fd85['onDragStart'](_0x5d4a05),'onFilter':()=>_0x30fd85[_0x31a941(0x49e)](_0x5d4a05),'onMove':_0x3c4244=>_0x30fd85['onMove'](_0x5d4a05,_0x3c4244,0x0),'onMoveUp':_0x1eb024>0x0?()=>_0x30fd85[_0x31a941(0x4b5)](_0x5d4a05,_0x16a360,_0x1eb024-0x1):void 0x0,'onMoveDown':_0x1eb024<_0x1f9547[_0x31a941(0x4da)]-0x1?()=>_0x30fd85[_0x31a941(0x4b5)](_0x5d4a05,_0x16a360,_0x1eb024+0x1):void 0x0,'onRemove':()=>_0x30fd85[_0x31a941(0x287)](_0x5d4a05),'onSettings':()=>_0x30fd85['onSettings'](_0x5d4a05)})]},_0x5d4a05);}),(_0x3afb08==null?void 0x0:_0x3afb08['area'])===_0x16a360&&_0x3afb08[_0x3c342f(0x32a)]===_0x1f9547[_0x3c342f(0x4da)]&&_0x4dabb7(_0x3c342f(0x442),{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),_0x1f9547[_0x3c342f(0x4da)]===0x0&&_0x4dabb7('div',{'className':_0x3c342f(0x279),'children':_0x1eb183['t']('bases-dashboard-ui.pivot.sourceFields')})]})]});}function Hi(_0x148289){const _0x5412b9=_0x2353bc;let _0x3b4155=_0x39b411(_0x5cd3ee),_0x5a1aef=_0x148289['area']===_0x4c815c['Value'],_0x5a8d44=[...Ii[_0x5412b9(0x1b3)](_0x2497fb=>_0x2497fb[_0x5412b9(0x269)]!==_0x148289['area'])[_0x5412b9(0x3ff)](_0x595dc7=>({'type':_0x5412b9(0x423),'children':_0x3b4155['t'](Yi(_0x595dc7[_0x5412b9(0x269)])),'onSelect':()=>_0x148289[_0x5412b9(0x4b5)](_0x595dc7[_0x5412b9(0x269)])})),..._0x148289[_0x5412b9(0x206)]?[{'type':'item','children':_0x3b4155['t'](_0x5412b9(0x2ab)),'onSelect':_0x148289[_0x5412b9(0x206)]}]:[],..._0x148289[_0x5412b9(0x235)]?[{'type':_0x5412b9(0x423),'children':_0x3b4155['t'](_0x5412b9(0x33b)),'onSelect':_0x148289[_0x5412b9(0x235)]}]:[],{'type':_0x5412b9(0x423),'children':_0x3b4155['t'](_0x5412b9(0x404)),'onSelect':_0x148289['onRemove']},{'type':_0x5412b9(0x423),'children':_0x3b4155['t'](_0x5a1aef?_0x5412b9(0x2c7):_0x5412b9(0x3a1)),'onSelect':_0x5a1aef?_0x148289[_0x5412b9(0x373)]:_0x148289[_0x5412b9(0x49e)]}];return _0x2b00c1('div',{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x5412b9(0x328),'onDragEnd':_0x148289[_0x5412b9(0x31c)],'onDragStart':_0x148289['onDragStart'],'children':[_0x4dabb7(_0x56b693,{'title':_0x148289[_0x5412b9(0x506)][_0x5412b9(0x2a9)],'children':_0x4dabb7(_0x5412b9(0x3ec),{'className':_0x5412b9(0x3bf),'children':_0x148289['field'][_0x5412b9(0x2a9)]})}),_0x4dabb7(Jr,{'align':_0x5412b9(0x236),'items':_0x5a8d44,'children':_0x4dabb7(_0x1b3e3b,{'variant':_0x5412b9(0x452),'aria-label':_0x3b4155['t'](_0x5412b9(0x2c7)),'children':_0x4dabb7(_0xf77a3b,{})})})]});}function Ui(_0x3ef5bc){const _0x5f450e=_0x2353bc;var _0x5db6a2,_0x10aee2;let _0x9e9778=_0x39b411(_0x5cd3ee),{format:_0x46e3b7,items:_0x13e838,itemTypes:_0x285867}=_0x56a185(()=>{const _0x4f8d8a=_0x1cf6;let _0x1e122f=_0x1c8584(_0x3ef5bc[_0x4f8d8a(0x4bb)],_0x3ef5bc[_0x4f8d8a(0x1d0)]);try{let _0x5cd992=_0x1e122f['getDataFieldByTableId'](_0x3ef5bc[_0x4f8d8a(0x43d)]);return{'format':_0x5cd992==null?void 0x0:_0x5cd992['format'],'items':[...(_0x5cd992==null?void 0x0:_0x5cd992[_0x4f8d8a(0x41c)])??[]],'itemTypes':[...(_0x5cd992==null?void 0x0:_0x5cd992[_0x4f8d8a(0x4ed)])??[]]};}finally{_0x1e122f['dispose']();}},[_0x3ef5bc[_0x5f450e(0x43d)],_0x3ef5bc['snapshot'],_0x3ef5bc[_0x5f450e(0x4bb)]]),_0x29aeec=(_0x5db6a2=_0x3ef5bc[_0x5f450e(0x1d0)][_0x5f450e(0x46a)][_0x3ef5bc[_0x5f450e(0x43d)]])==null?void 0x0:_0x5db6a2[_0x5f450e(0x3ad)],[_0x2416f9,_0x22428c]=_0x2be63d((_0x29aeec==null?void 0x0:_0x29aeec['type'])===_0x1b814d['ManualFilter']?_0x29aeec[_0x5f450e(0x4ea)]:_0x13e838),[_0x173575,_0xa911aa]=_0x2be63d((_0x10aee2=_0x3ef5bc['snapshot'][_0x5f450e(0x46a)][_0x3ef5bc[_0x5f450e(0x43d)]])==null||(_0x10aee2=_0x10aee2[_0x5f450e(0x1e0)])==null?void 0x0:_0x10aee2[_0x5f450e(0x393)]),_0x4154cc=_0x2416f9[_0x5f450e(0x4da)]===_0x13e838['length'],_0x2095c2=_0x2b00c1(_0x5f450e(0x482),{'className':_0x52fed8(_0x5f450e(0x3f6),_0x1298ac),'children':[_0x4dabb7('div',{'className':_0x5f450e(0x306),'children':_0x9e9778['t'](_0x5f450e(0x3a1))}),_0x2b00c1(_0x5f450e(0x442),{'className':_0x5f450e(0x414),'children':[_0x2b00c1(_0x1b3e3b,{'className':'univer-flex-1','variant':_0x173575===_0x428fd4[_0x5f450e(0x21b)]?_0x5f450e(0x37f):'default','onClick':()=>_0xa911aa(_0x428fd4[_0x5f450e(0x21b)]),'children':[_0x4dabb7(_0x4c6d55,{}),_0x9e9778['t'](_0x5f450e(0x43a))]}),_0x2b00c1(_0x1b3e3b,{'className':_0x5f450e(0x342),'variant':_0x173575===_0x428fd4[_0x5f450e(0x229)]?_0x5f450e(0x37f):_0x5f450e(0x431),'onClick':()=>_0xa911aa(_0x428fd4['descending']),'children':[_0x4dabb7(_0x59e3b9,{}),_0x9e9778['t'](_0x5f450e(0x2b2))]})]}),_0x2b00c1(_0x5f450e(0x442),{'className':_0x5f450e(0x302),'children':[_0x2b00c1(_0x5f450e(0x3b0),{'className':_0x5f450e(0x334),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x4154cc,'indeterminate':_0x2416f9['length']>0x0&&!_0x4154cc,'onChange':()=>_0x22428c(_0x4154cc?[]:_0x13e838)}),_0x9e9778['t'](_0x5f450e(0x368))]}),_0x13e838[_0x5f450e(0x3ff)]((_0x432f70,_0x46a66d)=>_0x2b00c1('label',{'className':_0x5f450e(0x334),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x2416f9[_0x5f450e(0x331)](_0x432f70),'onChange':()=>_0x22428c(_0x4cc6de=>_0x4cc6de[_0x5f450e(0x331)](_0x432f70)?_0x4cc6de[_0x5f450e(0x1b3)](_0x3dd27c=>_0x3dd27c!==_0x432f70):[..._0x4cc6de,_0x432f70])}),_0x4dabb7(_0x5f450e(0x3ec),{'className':_0x5f450e(0x226),'children':qi(_0x432f70,_0x285867[_0x46a66d],_0x46e3b7,_0x9e9778['t'](_0x5f450e(0x2a2)))})]},_0x432f70))]}),_0x2b00c1(_0x5f450e(0x442),{'className':_0x5f450e(0x2e3),'children':[_0x4dabb7(_0x1b3e3b,{'variant':_0x5f450e(0x31a),'onClick':()=>_0x3ef5bc[_0x5f450e(0x434)](_0x13e838,_0x173575),'children':_0x9e9778['t'](_0x5f450e(0x2d3))}),_0x2b00c1(_0x5f450e(0x442),{'className':'univer-flex\x20univer-gap-2','children':[_0x4dabb7(_0x1b3e3b,{'onClick':_0x3ef5bc[_0x5f450e(0x4f7)],'children':_0x9e9778['t']('bases-dashboard-ui.pivot.cancel')}),_0x4dabb7(_0x1b3e3b,{'variant':_0x5f450e(0x37f),'disabled':_0x2416f9[_0x5f450e(0x4da)]===0x0,'onClick':()=>_0x3ef5bc[_0x5f450e(0x434)](_0x2416f9,_0x173575),'children':_0x9e9778['t'](_0x5f450e(0x325))})]})]})]});return _0x4dabb7(_0x4989cc,{'title':_0x9e9778['t']('bases-dashboard-ui.pivot.filterField'),'onClose':_0x3ef5bc[_0x5f450e(0x4f7)],'children':_0x2095c2});}function Wi(_0x1ea0d5){const _0x17c031=_0x2353bc;var _0x38532e,_0xdbdb9c,_0x182ee3;let _0x4420b5=_0x39b411(_0x5cd3ee),[_0x1288ee,_0x3e2177]=_0x2be63d(((_0x38532e=_0x1ea0d5[_0x17c031(0x506)])==null?void 0x0:_0x38532e[_0x17c031(0x2a9)])??''),[_0x1c0c14,_0x1ef88f]=_0x2be63d(((_0xdbdb9c=_0x1ea0d5[_0x17c031(0x506)])==null?void 0x0:_0xdbdb9c['subtotal'])??_0x282c8a[_0x17c031(0x2bf)]),[_0x289563,_0x1635c4]=_0x2be63d(((_0x182ee3=_0x1ea0d5[_0x17c031(0x506)])==null?void 0x0:_0x182ee3['format'])??'');if(!_0x1ea0d5[_0x17c031(0x506)])return null;let _0x46b3c4=_0x2b00c1(_0x17c031(0x482),{'className':_0x52fed8(_0x17c031(0x50c),_0x1298ac),'children':[_0x4dabb7(_0x17c031(0x442),{'className':'univer-text-sm\x20univer-font-medium','children':_0x4420b5['t'](_0x17c031(0x2c7))}),_0x2b00c1(_0x17c031(0x3b0),{'className':_0x17c031(0x4a3),'children':[_0x4420b5['t'](_0x17c031(0x1c9)),_0x4dabb7(_0x2c53ee,{'value':_0x1288ee,'onChange':_0x3e2177})]}),_0x2b00c1('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x4420b5['t']('bases-dashboard-ui.pivot.summarizeBy'),_0x4dabb7(qr,{'value':String(_0x1c0c14),'options':Li['map'](_0x30d868=>({'value':String(_0x30d868[_0x17c031(0x284)]),'label':_0x4420b5['t'](_0x30d868[_0x17c031(0x353)])})),'onChange':_0x12b3fb=>{const _0x471233=_0x17c031;let _0x4844f7=Li['find'](_0x5ceaa9=>String(_0x5ceaa9[_0x471233(0x284)])===_0x12b3fb);_0x4844f7&&_0x1ef88f(_0x4844f7[_0x471233(0x284)]);}})]}),_0x2b00c1('label',{'className':_0x17c031(0x4a3),'children':[_0x4420b5['t'](_0x17c031(0x3e8)),_0x4dabb7(_0x2c53ee,{'value':_0x289563,'onChange':_0x1635c4})]}),_0x2b00c1(_0x17c031(0x442),{'className':_0x17c031(0x4f9),'children':[_0x4dabb7(_0x1b3e3b,{'onClick':_0x1ea0d5[_0x17c031(0x4f7)],'children':_0x4420b5['t'](_0x17c031(0x376))}),_0x4dabb7(_0x1b3e3b,{'variant':'primary','disabled':!_0x1288ee[_0x17c031(0x3ee)](),'onClick':()=>_0x1ea0d5['onCommit'](_0x1288ee['trim'](),_0x1c0c14,_0x289563),'children':_0x4420b5['t'](_0x17c031(0x325))})]})]});return _0x4dabb7(_0x4989cc,{'title':_0x4420b5['t'](_0x17c031(0x2c7)),'onClose':_0x1ea0d5[_0x17c031(0x4f7)],'children':_0x46b3c4});}function Gi(_0x3899dd){const _0x23dbe9=_0x2353bc;let {config:_0x21e48e,commit:_0x197b95}=_0x3899dd,_0x412811=_0x39b411(_0x5cd3ee),_0x368f5c=_0x21e48e['pivot'][_0x23dbe9(0x320)],_0x230464=_0x529ef7=>_0x197b95(_0x37c7a1=>_0x37c7a1[_0x23dbe9(0x3db)]({..._0x37c7a1['getOptions'](),..._0x529ef7}));return _0x2b00c1('div',{'className':_0x23dbe9(0x4f1),'children':[_0x2b00c1(_0x23dbe9(0x3b0),{'className':_0x23dbe9(0x1f1),'children':[_0x412811['t'](_0x23dbe9(0x291)),_0x4dabb7(qr,{'className':'univer-w-36','value':String(_0x21e48e[_0x23dbe9(0x4aa)]['layout']),'options':[{'value':String(_0x426ac9[_0x23dbe9(0x2c8)]),'label':_0x412811['t']('bases-dashboard-ui.pivot.layoutTabular')},{'value':String(_0x426ac9[_0x23dbe9(0x1be)]),'label':_0x412811['t'](_0x23dbe9(0x409))},{'value':String(_0x426ac9[_0x23dbe9(0x379)]),'label':_0x412811['t'](_0x23dbe9(0x421))}],'onChange':_0x343726=>{const _0x4f6612=_0x23dbe9;let _0x38d872=[_0x426ac9[_0x4f6612(0x2c8)],_0x426ac9[_0x4f6612(0x1be)],_0x426ac9[_0x4f6612(0x379)]][_0x4f6612(0x397)](_0x12b1e6=>String(_0x12b1e6)===_0x343726);_0x38d872!==void 0x0&&_0x197b95(_0x447c53=>_0x447c53[_0x4f6612(0x28f)](_0x38d872));}})]}),[{'key':_0x23dbe9(0x479),'label':_0x23dbe9(0x282),'defaultValue':!0x1},{'key':_0x23dbe9(0x40b),'label':'bases-dashboard-ui.pivot.repeatColumnLabels','defaultValue':!0x1},{'key':'showRowSubtotal','label':_0x23dbe9(0x44a),'defaultValue':!0x0},{'key':_0x23dbe9(0x402),'label':_0x23dbe9(0x2ca),'defaultValue':!0x0},{'key':_0x23dbe9(0x280),'label':_0x23dbe9(0x2bb),'defaultValue':!0x0},{'key':'showColGrandTotal','label':_0x23dbe9(0x2c1),'defaultValue':!0x0}]['map'](_0x1bcc08=>_0x2b00c1(_0x23dbe9(0x3b0),{'className':_0x23dbe9(0x343),'children':[_0x4dabb7(_0x3cc061,{'checked':!!(_0x368f5c[_0x1bcc08[_0x23dbe9(0x336)]]??_0x1bcc08[_0x23dbe9(0x1ba)]),'disabled':_0x1bcc08['key']==='repeatRowLabels'&&_0x21e48e[_0x23dbe9(0x4aa)][_0x23dbe9(0x439)]===_0x426ac9[_0x23dbe9(0x1be)],'onChange':_0x442be3=>_0x230464({[_0x1bcc08[_0x23dbe9(0x336)]]:!!_0x442be3})}),_0x412811['t'](_0x1bcc08[_0x23dbe9(0x3b0)])]},_0x1bcc08[_0x23dbe9(0x336)])),_0x21e48e[_0x23dbe9(0x4aa)][_0x23dbe9(0x439)]===_0x426ac9[_0x23dbe9(0x379)]&&_0x2b00c1(_0x23dbe9(0x3b0),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x412811['t'](_0x23dbe9(0x1c3)),_0x4dabb7(qr,{'className':_0x23dbe9(0x23f),'value':String(_0x368f5c[_0x23dbe9(0x413)]??_0x10ab45['top']),'options':[{'value':String(_0x10ab45['top']),'label':_0x412811['t'](_0x23dbe9(0x422))},{'value':String(_0x10ab45['bottom']),'label':_0x412811['t'](_0x23dbe9(0x383))}],'onChange':_0x1b066f=>{const _0x35ef10=_0x23dbe9;let _0x212a0f=[_0x10ab45[_0x35ef10(0x45e)],_0x10ab45[_0x35ef10(0x2d0)]][_0x35ef10(0x397)](_0x39c9b2=>String(_0x39c9b2)===_0x1b066f);_0x212a0f!==void 0x0&&_0x230464({'rowSubtotalPosition':_0x212a0f});}})]}),_0x2b00c1(_0x23dbe9(0x3b0),{'className':_0x23dbe9(0x1f1),'children':[_0x412811['t'](_0x23dbe9(0x25d)),_0x4dabb7(qr,{'className':_0x23dbe9(0x23f),'value':String(_0x21e48e[_0x23dbe9(0x4aa)][_0x23dbe9(0x1bb)]===_0x288ba5[_0x23dbe9(0x2fe)]?_0x288ba5[_0x23dbe9(0x499)]:_0x21e48e[_0x23dbe9(0x4aa)][_0x23dbe9(0x1bb)]),'options':[{'value':String(_0x288ba5[_0x23dbe9(0x499)]),'label':_0x412811['t'](_0x23dbe9(0x318))},{'value':String(_0x288ba5[_0x23dbe9(0x456)]),'label':_0x412811['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x1b707d=>{const _0x51b2e0=_0x23dbe9;let _0x22b349=[_0x288ba5['Column'],_0x288ba5[_0x51b2e0(0x456)]][_0x51b2e0(0x397)](_0x3ee5b7=>String(_0x3ee5b7)===_0x1b707d);_0x22b349!==void 0x0&&_0x197b95(_0x404a62=>_0x404a62['updateValuePosition'](_0x22b349,_0x404a62[_0x51b2e0(0x2cf)]()<0x0?0x0:_0x404a62[_0x51b2e0(0x2cf)]()));}})]}),_0x2b00c1(_0x23dbe9(0x3b0),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x412811['t']('bases-dashboard-ui.pivot.pageWrap'),_0x4dabb7(_0x1c2086,{'className':_0x23dbe9(0x4c0),'min':0x1,'max':0x14,'value':_0x368f5c['pageWrap']??0x1,'onChange':_0x475573=>{let _0x4f5698=Number(_0x475573);Number['isFinite'](_0x4f5698)&&_0x4f5698>=0x1&&_0x230464({'pageWrap':_0x4f5698});}})]}),_0x2b00c1(_0x23dbe9(0x3b0),{'className':_0x23dbe9(0x1f1),'children':[_0x412811['t'](_0x23dbe9(0x40f)),_0x4dabb7(qr,{'className':'univer-w-36','value':String(_0x368f5c[_0x23dbe9(0x1b7)]??!0x1),'options':[{'value':_0x23dbe9(0x48b),'label':_0x412811['t'](_0x23dbe9(0x30c))},{'value':_0x23dbe9(0x1d5),'label':_0x412811['t'](_0x23dbe9(0x4a1))}],'onChange':_0x37c44d=>_0x230464({'pageOverThenDown':_0x37c44d==='true'})})]})]});}function Ki(_0x3caa46,_0xcf7742,_0x300388,_0x78710){const _0x55def8=_0x2353bc;let _0x6c4d7e=_0x3caa46['getTableFieldsByDataFieldId'](_0xcf7742)[_0x55def8(0x397)](_0x478440=>_0x3caa46[_0x55def8(0x316)](_0x478440[_0x55def8(0x1ae)]())[_0x55def8(0x269)]!==_0x4c815c[_0x55def8(0x47a)]);if(_0x300388!==_0x4c815c[_0x55def8(0x47a)]&&_0x6c4d7e){_0x3caa46[_0x55def8(0x1b0)](_0x6c4d7e[_0x55def8(0x1ae)](),_0x300388,_0x78710);return;}_0x3caa46[_0x55def8(0x3fa)](_0xcf7742,_0x300388,_0x78710);}function qi(_0x321d1a,_0x1072f7,_0x233100,_0x17f509){const _0x20c585=_0x2353bc;return _0x1072f7===_0x1fe7b3[_0x20c585(0x512)]?_0x17f509:_0x1072f7===_0x1fe7b3[_0x20c585(0x209)]&&_0x233100?_0x3f4aae[_0x20c585(0x347)](_0x233100,Number(_0x321d1a)):_0x321d1a;}function Ji(_0x193744){const _0x96860e=_0x2353bc;return _0x193744['type']===_0x557eea[_0x96860e(0x416)]||_0x193744['type']===_0x557eea[_0x96860e(0x321)]||_0x193744[_0x96860e(0x393)]===_0x557eea['Progress']||_0x193744[_0x96860e(0x393)]===_0x557eea[_0x96860e(0x42a)];}function Yi(_0x5c2279){const _0x53b0ea=_0x2353bc;switch(_0x5c2279){case _0x4c815c[_0x53b0ea(0x456)]:return _0x53b0ea(0x28b);case _0x4c815c[_0x53b0ea(0x499)]:return _0x53b0ea(0x50d);case _0x4c815c[_0x53b0ea(0x47a)]:return _0x53b0ea(0x4fe);default:return _0x53b0ea(0x41a);}}function Xi({config:_0x2bd721,onChange:_0x24a267,runtime:_0x312532,table:_0xa33f0f}){const _0xb6cdde=_0x2353bc;let _0xcd0aa0=_0x39b411(_0x5cd3ee),[_0x146deb,_0x333d35]=_0x2be63d('chart');return _0x2b00c1(_0xb6cdde(0x2b6),{'className':_0xb6cdde(0x40a),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0xcd0aa0['t'](_0xb6cdde(0x2f6)),'className':'univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','items':[{'label':_0xcd0aa0['t'](_0xb6cdde(0x36b)),'panelId':'base-pivot-chart-configuration','value':_0xb6cdde(0x4d8)},{'label':_0xcd0aa0['t'](_0xb6cdde(0x4a7)),'panelId':_0xb6cdde(0x225),'value':_0xb6cdde(0x4aa)}],'value':_0x146deb,'variant':_0xb6cdde(0x4d2),'onChange':_0x333d35}),_0x4dabb7(_0xb6cdde(0x442),{'className':_0xb6cdde(0x380),'children':_0x146deb===_0xb6cdde(0x4d8)?_0x312532&&_0x4dabb7(Qr,{'config':_0x2bd721,'runtime':_0x312532,'tableName':_0xa33f0f[_0xb6cdde(0x329)],'onChange':_0x24a267}):_0x4dabb7(Ri,{'config':_0x2bd721,'table':_0xa33f0f,'onChange':_0x24a267})})]});}function Zi({tableId:_0x505a17,unitId:_0x3f5bb5,viewId:_0x418ee1}){const _0x5bfbba=_0x2353bc;let [_0x216300,_0x7e450d]=_0x2be63d(!0x1),_0x15b16d=_0x39b411(_0x32452d),_0x57e18b=_0x39b411(_0x4074e5),_0x1f29c7=_0x39b411(_0x34ac8c),_0x1e64cf=_0x39b411(_0x5cd3ee),_0xe2a781=_0x39b411(_0x22ef82),[_0x5caddf,_0x4f042d]=_0x2be63d(null),[_0x47fb17,_0x50a818]=_0x2be63d(null),_0x344ac8=_0x35f949(_0x5bfbba(0x4e9)+_0x325e5d(0x8)),[_0x37ef82,_0xee075e]=_0x2be63d(!0x1),_0x2fb9d7=_0x57e18b['getUnit'](_0x3f5bb5,_0x51ec78[_0x5bfbba(0x4eb)]),_0x49ac79=_0x2fb9d7==null?void 0x0:_0x2fb9d7['getSnapshot']()[_0x5bfbba(0x39c)][_0x505a17],_0x10fae0=_0x49ac79==null?void 0x0:_0x49ac79['views'][_0x418ee1],_0x4f7fe9=Qi(_0x10fae0),_0x1def8=_r(_0x3f5bb5,_0x505a17,_0x418ee1);if(_0x38e78f(()=>{const _0xcbb2ee=_0x5bfbba;if(!_0x4f7fe9)return;let _0x51cc91=_0x344ac8[_0xcbb2ee(0x38f)];return _0xe2a781[_0xcbb2ee(0x403)](_0x51cc91,{'unitId':_0x3f5bb5,'tableId':_0x505a17,'viewId':_0x418ee1,'filters':[]}),()=>{const _0x4ef4a5=_0xcbb2ee;_0xe2a781[_0x4ef4a5(0x503)](_0x3f5bb5,_0x51cc91);};},[_0x4f7fe9,_0xe2a781,_0x505a17,_0x3f5bb5,_0x418ee1]),_0x38e78f(()=>{const _0x3869df=_0x5bfbba;if(!Qi(_0x10fae0))return;let _0x49c496=!0x0,_0x3df014={'unitId':_0x3f5bb5,'tableId':_0x505a17,'viewId':_0x418ee1,'filters':[_0x10fae0[_0x3869df(0x1b3)]??null]};return _0xe2a781[_0x3869df(0x41f)](_0x3f5bb5,_0x344ac8[_0x3869df(0x38f)],_0x3df014)['then'](_0xba6bf8=>{const _0x5ba27f=_0x3869df;_0x49c496&&_0xba6bf8&&(_0x4f042d(_0xba6bf8),_0x50a818(_0xe2a781[_0x5ba27f(0x33e)](_0x3f5bb5,_0x344ac8[_0x5ba27f(0x38f)])??null),_0xee075e(!0x1));})[_0x3869df(0x3d2)](_0x5e6f0b=>{_0x1f29c7['error']('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x5e6f0b),_0x49c496&&(_0x4f042d(null),_0xee075e(!0x0));}),()=>{_0x49c496=!0x1;};},[_0x1f29c7,_0xe2a781,_0x505a17,_0x3f5bb5,_0x10fae0,_0x418ee1]),!_0x49ac79||!Qi(_0x10fae0))return null;let _0x23cd90=_0xe2a781['getChartRuntime'](_0x3f5bb5,_0x344ac8['current'])===_0x47fb17?_0x47fb17:null,_0x1f8fda=_0x5caddf?_0x2b00c1('div',{'className':_0x5bfbba(0x2cd),'style':{'gridTemplateRows':_0x10fae0[_0x5bfbba(0x4e8)][_0x5bfbba(0x4a6)]===_0x5bfbba(0x330)?_0x5bfbba(0x44e):_0x5bfbba(0x230)},'children':[_0x10fae0[_0x5bfbba(0x4e8)][_0x5bfbba(0x4a6)]!==_0x5bfbba(0x4bb)&&_0x23cd90&&_0x4dabb7(_0x5bfbba(0x442),{'className':'univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':_0x4dabb7(Ir,{'isRowDirection':_0x2fa6dd(_0x10fae0[_0x5bfbba(0x4e8)][_0x5bfbba(0x4d8)][_0x5bfbba(0x485)]),'runtime':_0x23cd90})}),_0x10fae0[_0x5bfbba(0x4e8)][_0x5bfbba(0x4a6)]!=='chart'&&_0x4dabb7(_0x5bfbba(0x442),{'className':_0x5bfbba(0x32b),'children':_0x4dabb7(ki,{'pivot':_0x10fae0['config'][_0x5bfbba(0x4aa)],'view':_0x5caddf[_0x5bfbba(0x258)]})})]}):_0x4dabb7('div',{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x37ef82?_0x1e64cf['t'](_0x5bfbba(0x34c)):_0x1e64cf['t']('bases-dashboard-ui.pivot.calculating')}),_0x2a60ea=_0x4dabb7(Xi,{'config':_0x10fae0[_0x5bfbba(0x4e8)],'runtime':_0x23cd90,'table':_0x49ac79,'onChange':_0x148bd6=>{const _0x106e33=_0x5bfbba;_0x57e18b[_0x106e33(0x3ce)](_0x3f5bb5),_0x57e18b[_0x106e33(0x35f)](_0x3f5bb5),_0x15b16d[_0x106e33(0x1ff)](_0x303df3['id'],{'unitId':_0x3f5bb5,'tableId':_0x505a17,'viewId':_0x418ee1,'patch':_0x148bd6})[_0x106e33(0x3d2)](_0x552296=>_0x1f29c7[_0x106e33(0x1b4)](_0x106e33(0x337),_0x552296));}});return _0x4dabb7(Kr,{'children':_0x2b00c1(_0x5bfbba(0x442),{'className':'univer-relative\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-50\x20dark:univer-bg-gray-950','children':[_0x1def8&&_0x4dabb7(_0x1b3e3b,{'onClick':()=>_0x7e450d(!0x0),'children':_0x1e64cf['t'](_0x5bfbba(0x36b))}),_0x4dabb7(_0x5bfbba(0x442),{'className':_0x5bfbba(0x43e),'children':_0x1f8fda}),_0x1def8&&_0x216300&&_0x4dabb7(_0x4989cc,{'title':_0x1e64cf['t'](_0x5bfbba(0x2f6)),'onClose':()=>_0x7e450d(!0x1),'children':_0x2a60ea})]})});}function Qi(_0x2dc864){const _0x19b5b1=_0x2353bc;return(_0x2dc864==null?void 0x0:_0x2dc864[_0x19b5b1(0x393)])===_0x5ee6b5[_0x19b5b1(0x49c)]&&typeof _0x2dc864[_0x19b5b1(0x4e8)]==_0x19b5b1(0x43c)&&_0x2dc864[_0x19b5b1(0x4e8)]!==null&&'pivot'in _0x2dc864[_0x19b5b1(0x4e8)]&&_0x19b5b1(0x4d8)in _0x2dc864[_0x19b5b1(0x4e8)]&&_0x19b5b1(0x4a6)in _0x2dc864['config'];}let $i=class extends _0x2e76da{constructor(_0x5b5943,_0x393e4b,_0x25b341,_0x231b45,_0x49a595,_0x4fc794){const _0x1f4fab=_0x2353bc;super(),this[_0x1f4fab(0x1eb)](_0x393e4b[_0x1f4fab(0x1ac)]({'type':_0x5ee6b5['Pivot'],'renderMode':_0x1f4fab(0x4cc),'icon':_0x3ad3c2,'component':Zi,'menu':{get 'label'(){const _0x11e103=_0x1f4fab;return _0x4fc794['t'](_0x11e103(0x2f6));},get 'description'(){const _0x547663=_0x1f4fab;return _0x4fc794['t'](_0x547663(0x345));},get 'defaultName'(){const _0x3ac35e=_0x1f4fab;return _0x4fc794['t'](_0x3ac35e(0x244));}}})),this['disposeWithMe'](_0x5b5943[_0x1f4fab(0x1ac)](ea(_0x25b341,_0x231b45,_0x49a595,_0x4fc794)));}};$i=Or([Y(0x0,_0x509544),Y(0x1,_0x5eecd3),Y(0x2,_0x2a19f9(_0x5e40a3)),Y(0x3,_0x32452d),Y(0x4,_0x4c7ae7),Y(0x5,_0x2a19f9(_0x5cd3ee))],$i);function ea(_0x1e5361,_0x349538,_0x452fa0,_0x5332c7){const _0x564f93=_0x2353bc;return{'change$':_0x53dd21(_0x1e5361['change$'],_0x452fa0[_0x564f93(0x391)]),'component':bi,get 'labels'(){const _0x5d8ce1=_0x564f93;return{'add':_0x5332c7['t']('bases-dashboard-ui.dashboard.add'),'configure':_0x1ab8e4=>_0x5332c7['t'](_0x5d8ce1(0x233),_0x1ab8e4),'delete':_0x5332c7['t'](_0x5d8ce1(0x305)),'new':_0x5332c7['t'](_0x5d8ce1(0x47f)),'rename':_0x5332c7['t'](_0x5d8ce1(0x259)),'search':_0x5332c7['t'](_0x5d8ce1(0x424)),'section':_0x5332c7['t'](_0x5d8ce1(0x1c4))};},'getItems':_0x3fe205=>{const _0x5c03b4=_0x564f93;let _0x1da4e9=_0x1e5361['getResource'](_0x3fe205);return _0x1da4e9[_0x5c03b4(0x3fe)][_0x5c03b4(0x3bc)](_0x786700=>{const _0x39cf24=_0x5c03b4;let _0x1d4fa2=_0x1da4e9[_0x39cf24(0x370)][_0x786700];return _0x1d4fa2?[{'id':_0x1d4fa2['id'],'name':_0x1d4fa2[_0x39cf24(0x329)],'readonly':!_0x25b5d2(_0x452fa0,_0x3fe205,_0x1d4fa2['id'])}]:[];});},'create':async _0x1a7677=>{const _0x20d530=_0x564f93;let _0x20254f=_0x1e5361[_0x20d530(0x2b1)](_0x1a7677),_0x5c78ca=_0x20d530(0x3a4)+_0x325e5d(0x8),_0x342fb0=ta(_0x20254f[_0x20d530(0x3fe)][_0x20d530(0x3bc)](_0x93b354=>{const _0x36c2aa=_0x20d530;let _0x177a6a=_0x20254f[_0x36c2aa(0x370)][_0x93b354];return _0x177a6a?[_0x177a6a[_0x36c2aa(0x329)]]:[];}),_0xc84da=>_0x5332c7['t'](_0x20d530(0x3e5),String(_0xc84da)));return await _0x349538['executeCommand'](_0x2ef5a6['id'],{'unitId':_0x1a7677,'dashboard':{'id':_0x5c78ca,'name':_0x342fb0,'widgetOrder':[],'widgets':{}}})?_0x5c78ca:null;},'rename':async(_0x1a4e7f,_0x445110,_0x5449d3)=>{const _0x2fa56c=_0x564f93;let _0x1cfe43=_0x1e5361['getDashboard'](_0x1a4e7f,_0x445110);return!!(_0x1cfe43&&await _0x349538[_0x2fa56c(0x1ff)](_0x5cbeb4['id'],{'unitId':_0x1a4e7f,'dashboard':{..._0x1cfe43,'name':_0x5449d3}}));},'remove':(_0xa838f6,_0x105a0d)=>_0x349538[_0x564f93(0x1ff)](_0x22aa0a['id'],{'unitId':_0xa838f6,'dashboardId':_0x105a0d})};}function ta(_0x7e0785,_0x4886f7){const _0x367c21=_0x2353bc;let _0x7d2d26=new Set(_0x7e0785),_0x597ca8=_0x7d2d26['size']+0x1,_0x3b22f9=_0x4886f7(_0x597ca8);for(;_0x7d2d26[_0x367c21(0x30b)](_0x3b22f9);)_0x597ca8+=0x1,_0x3b22f9=_0x4886f7(_0x597ca8);return _0x3b22f9;}let na=class extends _0x52aef1{constructor(_0x3ba2aa=hr,_0x11a7dd,_0x57acaa){const _0x44bdfd=_0x2353bc;super(),this[_0x44bdfd(0x21e)]=_0x3ba2aa,this['_injector']=_0x11a7dd,this['_configService']=_0x57acaa;let {..._0x59ab12}=_0x1731fc({},hr,this[_0x44bdfd(0x21e)]);this['_configService'][_0x44bdfd(0x427)](mr,_0x59ab12);}['onStarting'](){const _0x389bb8=_0x2353bc;this[_0x389bb8(0x2a0)][_0x389bb8(0x1c1)]([kr]),this['_injector'][_0x389bb8(0x1c1)]([Gr]),this['_injector'][_0x389bb8(0x1c1)]([$i]);}['onReady'](){const _0x515597=_0x2353bc;_0x445a23(this[_0x515597(0x2a0)],[[kr],[Gr],[$i]]);}};Pr(na,_0x2353bc(0x393),_0x51ec78['UNIVER_BASE']),Pr(na,_0x2353bc(0x405),_0x2353bc(0x264)),Pr(na,'packageName',fr),Pr(na,_0x2353bc(0x29f),pr),na=Or([_0x4fc5af(_0x38c17a,_0x1615ad,_0x139492,_0x2c95bb,_0x47e249,_0x220c65),Y(0x1,_0x2a19f9(_0x5a8661)),Y(0x2,_0x5a5187)],na);function ra(_0x1be68e,_0x51c02f,_0x11635b,_0x58c686){const _0x2ac0f6=_0x2353bc;let _0x1677a3={..._0x1be68e};if(_0x51c02f[_0x2ac0f6(0x331)]('w')){let _0x4c3571=_0x1be68e['column']+_0x1be68e['columnSpan'];_0x1677a3[_0x2ac0f6(0x39b)]=Math[_0x2ac0f6(0x2eb)](0x0,Math['min'](_0x4c3571-0x1,_0x1be68e[_0x2ac0f6(0x39b)]+_0x11635b)),_0x1677a3[_0x2ac0f6(0x26f)]=_0x4c3571-_0x1677a3[_0x2ac0f6(0x39b)];}else _0x51c02f[_0x2ac0f6(0x331)]('e')&&(_0x1677a3[_0x2ac0f6(0x26f)]=Math[_0x2ac0f6(0x2eb)](0x1,Math[_0x2ac0f6(0x314)](_0x20c9d7-_0x1be68e[_0x2ac0f6(0x39b)],_0x1be68e[_0x2ac0f6(0x26f)]+_0x11635b)));if(_0x51c02f[_0x2ac0f6(0x331)]('n')){let _0x4935c7=_0x1be68e[_0x2ac0f6(0x487)]+_0x1be68e[_0x2ac0f6(0x4b4)];_0x1677a3[_0x2ac0f6(0x487)]=Math[_0x2ac0f6(0x2eb)](0x0,Math[_0x2ac0f6(0x314)](_0x4935c7-0x1,_0x1be68e['row']+_0x58c686)),_0x1677a3['rowSpan']=_0x4935c7-_0x1677a3[_0x2ac0f6(0x487)];}else _0x51c02f[_0x2ac0f6(0x331)]('s')&&(_0x1677a3['rowSpan']=Math[_0x2ac0f6(0x2eb)](0x1,_0x1be68e[_0x2ac0f6(0x4b4)]+_0x58c686));return _0x1677a3;}function ia(_0x3efc54){const _0x3ad088=_0x2353bc;let _0x15ce94=Math['max'](0x1,Math['min'](_0x20c9d7,Math['round'](_0x3efc54[_0x3ad088(0x26f)])));return{'column':Math[_0x3ad088(0x2eb)](0x0,Math['min'](_0x20c9d7-_0x15ce94,Math['round'](_0x3efc54[_0x3ad088(0x39b)]))),'row':Math['max'](0x0,Math['round'](_0x3efc54[_0x3ad088(0x487)])),'columnSpan':_0x15ce94,'rowSpan':Math['max'](0x1,Math[_0x3ad088(0x384)](_0x3efc54[_0x3ad088(0x4b4)]))};}function aa(_0x86400e,_0x264002,_0x591dcc){const _0x389cf2=_0x2353bc;let _0x23306e=new Map(_0x86400e),_0x405b5d=ia(_0x591dcc);_0x23306e[_0x389cf2(0x401)](_0x264002,_0x405b5d);let _0xb20dc0=[[_0x264002,_0x405b5d]];for(let [_0x5440a9,_0x3864be]of _0x23306e){if(_0x5440a9===_0x264002)continue;let _0x22981d=ia(_0x3864be);for(;_0xb20dc0[_0x389cf2(0x464)](([,_0x443eec])=>sa(_0x22981d,_0x443eec));)_0x22981d={..._0x22981d,'row':_0x22981d[_0x389cf2(0x487)]+0x1};for(;_0x22981d[_0x389cf2(0x487)]>0x0;){let _0x127bab={..._0x22981d,'row':_0x22981d[_0x389cf2(0x487)]-0x1};if(_0xb20dc0['some'](([,_0x469f9e])=>sa(_0x127bab,_0x469f9e)))break;_0x22981d=_0x127bab;}_0xb20dc0[_0x389cf2(0x4ec)]([_0x5440a9,_0x22981d]),_0x23306e['set'](_0x5440a9,_0x22981d);}return _0x23306e;}function oa(_0x438988,_0x1f7695,_0xba13d,_0x3ce656=0x38,_0x549e03=0x16){const _0x5a02e3=_0x2353bc;return _0x438988<_0x1f7695+_0x3ce656?-Math[_0x5a02e3(0x30e)](_0x549e03*(0x1-Math[_0x5a02e3(0x2eb)](0x0,_0x438988-_0x1f7695)/_0x3ce656)):_0x438988>_0xba13d-_0x3ce656?Math[_0x5a02e3(0x30e)](_0x549e03*(0x1-Math[_0x5a02e3(0x2eb)](0x0,_0xba13d-_0x438988)/_0x3ce656)):0x0;}function sa(_0x2fec36,_0x1579e4){const _0x5df90c=_0x2353bc;return _0x2fec36[_0x5df90c(0x39b)]<_0x1579e4[_0x5df90c(0x39b)]+_0x1579e4[_0x5df90c(0x26f)]&&_0x2fec36[_0x5df90c(0x39b)]+_0x2fec36[_0x5df90c(0x26f)]>_0x1579e4[_0x5df90c(0x39b)]&&_0x2fec36[_0x5df90c(0x487)]<_0x1579e4[_0x5df90c(0x487)]+_0x1579e4[_0x5df90c(0x4b4)]&&_0x2fec36[_0x5df90c(0x487)]+_0x2fec36[_0x5df90c(0x4b4)]>_0x1579e4['row'];}const ca=[{'direction':'nw','className':_0x2353bc(0x2dc)},{'direction':'n','className':_0x2353bc(0x3a0)},{'direction':'ne','className':'univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize'},{'direction':'e','className':_0x2353bc(0x364)},{'direction':'se','className':_0x2353bc(0x3eb)},{'direction':'s','className':_0x2353bc(0x496)},{'direction':'sw','className':'univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize'},{'direction':'w','className':_0x2353bc(0x2af)}];function la({dashboard:_0x429c50,dragLabel:_0x1520c4,editable:_0x3ff6ea=!0x0,onLayoutsCommit:_0x246b0f,onSelectWidget:_0x371d18,renderWidget:_0xd856c4,renderWidgetActions:_0x5584c9,resizeLabel:_0x347697,selectedWidgetId:_0x1ebf59,widgetLabel:_0x40819c}){const _0xab83dd=_0x2353bc;let _0x402d55=_0x35f949(null),_0x581412=_0x35f949(null),[_0x413c2b,_0x2f616f]=_0x2be63d(!0x1),_0x470b0a=_0x56a185(()=>new Map(_0x429c50[_0xab83dd(0x362)][_0xab83dd(0x3bc)](_0x516be2=>{const _0x4f71ae=_0xab83dd;let _0x1ddb18=_0x429c50['widgets'][_0x516be2];return _0x1ddb18?[[_0x516be2,_0x1ddb18[_0x4f71ae(0x439)]]]:[];})),[_0x429c50]),[_0x7a1e79,_0x413836]=_0x2be63d(_0x470b0a);_0x38e78f(()=>{const _0xd72bb2=_0xab83dd;_0x581412[_0xd72bb2(0x38f)]||_0x413836(_0x470b0a);},[_0x470b0a]),_0x38e78f(()=>{const _0x4fc63d=_0xab83dd;if(!_0x413c2b)return;let _0xef4e54=_0x490e2d=>{const _0x2b45f4=_0x1cf6;let _0x180427=_0x402d55['current'];if(!_0x180427)return null;let _0x6d2fc5=_0x180427['getBoundingClientRect'](),_0x13c08b=Math[_0x2b45f4(0x2eb)](0x1,(_0x6d2fc5[_0x2b45f4(0x3c9)]-0x8*(_0x20c9d7-0x1))/_0x20c9d7),_0x69dbd7=Math[_0x2b45f4(0x384)]((_0x180427[_0x2b45f4(0x425)]-_0x490e2d['startScrollTop'])/(_0x50185b+0x8)),_0xb8c393=Math['round']((_0x490e2d['pointerX']-_0x490e2d[_0x2b45f4(0x210)])/(_0x13c08b+0x8)),_0x4ccba6=Math[_0x2b45f4(0x384)]((_0x490e2d[_0x2b45f4(0x1f3)]-_0x490e2d[_0x2b45f4(0x497)])/(_0x50185b+0x8))+_0x69dbd7,_0x171b4c=_0x490e2d[_0x2b45f4(0x224)]===_0x2b45f4(0x27a)?{..._0x490e2d['initial'],'column':_0x490e2d['initial']['column']+_0xb8c393,'row':_0x490e2d['initial']['row']+_0x4ccba6}:ra(_0x490e2d[_0x2b45f4(0x38b)],_0x490e2d[_0x2b45f4(0x315)]??'se',_0xb8c393,_0x4ccba6),_0x9652d9=aa(_0x490e2d[_0x2b45f4(0x462)],_0x490e2d['id'],_0x171b4c);return _0x413836(_0x9652d9),_0x9652d9;},_0x2ce3f6=_0x22df99=>{const _0x1a5457=_0x1cf6;let _0x4b2b9e=_0x581412[_0x1a5457(0x38f)];if(!_0x4b2b9e)return;let _0x547451={..._0x4b2b9e,'pointerX':_0x22df99[_0x1a5457(0x283)],'pointerY':_0x22df99[_0x1a5457(0x408)]};_0x581412[_0x1a5457(0x38f)]=_0x547451;},_0x37375b=()=>{const _0x391de5=_0x1cf6;let _0x37b7de=_0x581412['current'],_0xe3eb0c=_0x37b7de?_0xef4e54(_0x37b7de):null;_0x581412[_0x391de5(0x38f)]=null,_0x2f616f(!0x1),_0xe3eb0c&&_0x246b0f(_0xe3eb0c);},_0x1afcc7=0x0,_0x24c200=()=>{const _0x90eb5b=_0x1cf6;let _0x890fc=_0x402d55[_0x90eb5b(0x38f)],_0x5ee0b2=_0x581412['current'];if(_0x890fc&&_0x5ee0b2){let _0x3140d6=_0x890fc[_0x90eb5b(0x4db)](),_0x74a1f1=oa(_0x5ee0b2[_0x90eb5b(0x1f3)],_0x3140d6[_0x90eb5b(0x45e)],_0x3140d6[_0x90eb5b(0x2d0)]);_0x74a1f1!==0x0&&(_0x890fc[_0x90eb5b(0x425)]+=_0x74a1f1),_0xef4e54(_0x5ee0b2),_0x1afcc7=requestAnimationFrame(_0x24c200);}};return _0x1afcc7=requestAnimationFrame(_0x24c200),window[_0x4fc63d(0x1d1)](_0x4fc63d(0x1e7),_0x2ce3f6),window[_0x4fc63d(0x1d1)](_0x4fc63d(0x322),_0x37375b),()=>{const _0x1ea24d=_0x4fc63d;cancelAnimationFrame(_0x1afcc7),window[_0x1ea24d(0x27d)](_0x1ea24d(0x1e7),_0x2ce3f6),window[_0x1ea24d(0x27d)](_0x1ea24d(0x322),_0x37375b);};},[_0x413c2b,_0x246b0f]);let _0x19f547=Math[_0xab83dd(0x2eb)](0x8,...Array[_0xab83dd(0x4ce)](_0x7a1e79['values']())[_0xab83dd(0x3ff)](_0xb6d4cd=>_0xb6d4cd[_0xab83dd(0x487)]+_0xb6d4cd[_0xab83dd(0x4b4)])),_0x2e0942=(_0x286824,_0x1ec0cb,_0x43b489,_0x4b90c0)=>{const _0xf9a2ee=_0xab83dd;_0x286824[_0xf9a2ee(0x3ca)](),_0x286824[_0xf9a2ee(0x1de)]();let _0x308175=_0x402d55['current'],_0xe79e79={'id':_0x1ec0cb['id'],'mode':_0x43b489,'pointerX':_0x286824[_0xf9a2ee(0x283)],'pointerY':_0x286824[_0xf9a2ee(0x408)],'startX':_0x286824[_0xf9a2ee(0x283)],'startY':_0x286824['clientY'],'startScrollTop':(_0x308175==null?void 0x0:_0x308175[_0xf9a2ee(0x425)])??0x0,'initial':_0x7a1e79[_0xf9a2ee(0x2f0)](_0x1ec0cb['id'])??_0x1ec0cb[_0xf9a2ee(0x439)],'initialLayouts':new Map(_0x7a1e79),'resizeDirection':_0x4b90c0};_0x581412['current']=_0xe79e79,_0x2f616f(!0x0);};return _0x4dabb7('div',{'ref':_0x402d55,'data-dashboard-scroll-container':!0x0,'className':_0x52fed8(_0xab83dd(0x338),_0x2a22a5),'onClick':_0x3ff6ea?_0x56c7e9=>{const _0x27cacc=_0xab83dd;if(!(_0x56c7e9['target']instanceof Node)||!_0x56c7e9[_0x27cacc(0x250)][_0x27cacc(0x275)](_0x56c7e9[_0x27cacc(0x344)]))return;let _0x84181=_0x56c7e9['target']instanceof Element?_0x56c7e9['target']:_0x56c7e9[_0x27cacc(0x344)][_0x27cacc(0x45a)];_0x84181!=null&&_0x84181[_0x27cacc(0x304)](_0x27cacc(0x481))||_0x371d18==null||_0x371d18();}:void 0x0,'children':_0x4dabb7('div',{'data-dashboard-grid':!0x0,'className':_0xab83dd(0x1d7),'style':{'gap':0x8,'gridAutoRows':_0x50185b,'minHeight':_0x19f547*(_0x50185b+0x8)},'children':_0x429c50['widgetOrder'][_0xab83dd(0x3ff)](_0x322fa2=>{const _0x36d00f=_0xab83dd;var _0x2b68bb;let _0x2fdd67=_0x429c50[_0x36d00f(0x4e1)][_0x322fa2],_0xad4033=_0x7a1e79[_0x36d00f(0x2f0)](_0x322fa2);return!_0x2fdd67||!_0xad4033?null:_0x2b00c1(_0x36d00f(0x386),{'data-dashboard-widget':_0x2fdd67['id'],'aria-label':_0x2fdd67[_0x36d00f(0x448)]??_0x40819c(_0x2fdd67),'className':_0x52fed8(_0x36d00f(0x2f1),_0x2fdd67[_0x36d00f(0x393)]===_0x342116[_0x36d00f(0x4ae)]||_0x2fdd67[_0x36d00f(0x393)]===_0x342116['FormulaShape']?_0x36d00f(0x382):_0x36d00f(0x3d3),_0x3ff6ea&&_0x1ebf59===_0x2fdd67['id']?_0x36d00f(0x30f):_0x36d00f(0x357)),'style':{'gridColumn':_0xad4033[_0x36d00f(0x39b)]+0x1+_0x36d00f(0x35e)+_0xad4033[_0x36d00f(0x26f)],'gridRow':_0xad4033[_0x36d00f(0x487)]+0x1+_0x36d00f(0x35e)+_0xad4033['rowSpan']},'tabIndex':_0x3ff6ea?0x0:void 0x0,'onClick':_0x3ff6ea?()=>_0x371d18==null?void 0x0:_0x371d18(_0x2fdd67['id']):void 0x0,'onFocus':_0x3ff6ea?()=>_0x371d18==null?void 0x0:_0x371d18(_0x2fdd67['id']):void 0x0,'children':[_0x3ff6ea&&_0x4dabb7(_0x36d00f(0x228),{'type':_0x36d00f(0x228),'aria-label':_0x1520c4,'data-dashboard-drag-handle':_0x2fdd67['id'],'className':_0x52fed8('univer-pointer-events-none\x20univer-absolute\x20univer-left-1/2\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-h-5\x20univer-w-8\x20-univer-translate-x-1/2\x20univer-appearance-none\x20univer-items-center\x20univer-justify-center\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-400\x20univer-opacity-0\x20univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100',_0x413c2b&&((_0x2b68bb=_0x581412[_0x36d00f(0x38f)])==null?void 0x0:_0x2b68bb['id'])===_0x2fdd67['id']&&_0x581412[_0x36d00f(0x38f)][_0x36d00f(0x224)]===_0x36d00f(0x27a)?'univer-cursor-grabbing':_0x36d00f(0x2c5)),'onPointerDown':_0x529d3e=>_0x2e0942(_0x529d3e,_0x2fdd67,_0x36d00f(0x27a)),'children':_0x4dabb7(_0x1487d8,{'className':_0x36d00f(0x40c),'aria-hidden':_0x36d00f(0x1d5)})}),_0x3ff6ea&&_0x4dabb7('div',{'className':_0x36d00f(0x2f3),'children':_0x5584c9==null?void 0x0:_0x5584c9(_0x2fdd67)}),_0x4dabb7(_0x36d00f(0x442),{'className':_0x36d00f(0x2b7),'children':_0xd856c4(_0x2fdd67)}),_0x3ff6ea&&ca[_0x36d00f(0x3ff)](({className:_0x39ff2a,direction:_0x3af055})=>{const _0x1c858a=_0x36d00f;let _0x5745a6=_0x3af055[_0x1c858a(0x4da)]===0x2;return _0x4dabb7(_0x1c858a(0x228),{'type':_0x1c858a(0x228),'aria-label':_0x347697,'data-dashboard-resize-handle':_0x3af055,'data-dashboard-resize-control':_0x5745a6?_0x3af055:void 0x0,'data-dashboard-resize-edge':_0x5745a6?void 0x0:_0x3af055,'className':_0x52fed8(_0x1c858a(0x42d),_0x5745a6?_0x1c858a(0x1cf):_0x1c858a(0x3cc),_0x39ff2a,_0x1ebf59===_0x2fdd67['id']&&'univer-pointer-events-auto\x20univer-opacity-100'),'onPointerDown':_0x547b2f=>_0x2e0942(_0x547b2f,_0x2fdd67,_0x1c858a(0x220),_0x3af055)},_0x3af055);})]},_0x2fdd67['id']);})})});}var ua;const Q={'axis':{..._0x5caca4,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x26697d,'heatmap':_0x296680,'indicatorLine':_0x195779,'legend':_0x4fe0eb,'lineAndArea':_0x499ec0,'pareto':_0x4cf110,'pie':_0x1db8a1,'radar':_0x35ac4f,'relation':{..._0x2da675,'useValueAsSymbolSize':!0x0},'series':{..._0x396e30,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((ua=_0x46c996['allSeriesStyle'])==null?void 0x0:ua[_0x2353bc(0x2c6)])??!0x1}},'style':_0x5792d9,'titles':_0x21806e,'trendline':_0x563c89,'waterfall':{..._0x2c231e,'useSubtotal':!0x0},'waterfallStyle':_0x31f02c,'wordCloud':_0x8c0c35},da=[_0x3414f3[_0x2353bc(0x4ef)],_0x3414f3['Radar'],_0x3414f3['WordCloud'],_0x3414f3['Scatter'],_0x3414f3[_0x2353bc(0x4f5)],_0x3414f3[_0x2353bc(0x3dd)],_0x3414f3[_0x2353bc(0x46c)],_0x3414f3['Heatmap'],_0x3414f3[_0x2353bc(0x2d1)],_0x3414f3[_0x2353bc(0x1fe)],_0x3414f3['Histogram'],_0x3414f3['Treemap'],_0x3414f3['Sunburst'],_0x3414f3[_0x2353bc(0x494)],_0x3414f3[_0x2353bc(0x2e4)]];function fa(_0x3eb10e){const _0x5e8fcd=_0x2353bc;let {config:_0x486f6d,onChange:_0x30d33c,runtime:_0x2ac1d1,tableName:_0x595b6c}=_0x3eb10e,_0x5d8ef4=_0x39b411(Gr),_0x28dc6d=_0x39b411(_0x5cd3ee),[_0x482840,_0x53d767]=_0x2be63d(_0x139866['Data']),_0x2ba712=_0x56a185(()=>new _0x29d554(_0x2ac1d1[_0x5e8fcd(0x37a)],{'commit':_0x44ac9a=>{const _0x1867e3=_0x5e8fcd;var _0x6f1ac5;let _0x14ab0e=_0x2ac1d1[_0x1867e3(0x37a)],_0x438cbd=_0x485197(_0x44ac9a,{'series':(_0x6f1ac5=_0x14ab0e[_0x1867e3(0x4e8)])==null?void 0x0:_0x6f1ac5['series'],'currentChartType':_0x14ab0e[_0x1867e3(0x3e2)],'currentStyle':_0x14ab0e['style'],'currentContext':_0x14ab0e[_0x1867e3(0x1af)],'currentDataAggregation':_0x14ab0e[_0x1867e3(0x3b9)]});_0x30d33c({'chart':pa(_0x486f6d[_0x1867e3(0x4d8)],_0x438cbd)});}}),[_0x486f6d[_0x5e8fcd(0x4d8)],_0x30d33c,_0x2ac1d1]),_0xfbcda5=_0x56a185(()=>_0x2dbfb8(_0x170e20['map'](_0x4777b2=>({..._0x4777b2,'label':_0x28dc6d['t'](_a(_0x4777b2[_0x5e8fcd(0x1a8)]))}))),[_0x28dc6d]);return _0x4dabb7(_0x4bacfa,{'chartUIService':_0x5d8ef4,'hostAdapter':_0x2ba712,'children':_0x2b00c1(_0x5e8fcd(0x442),{'className':_0x5e8fcd(0x450),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x28dc6d['t'](_0x5e8fcd(0x3d4)),'className':_0x5e8fcd(0x410),'items':[{'label':_0x28dc6d['t'](_0x5e8fcd(0x466)),'panelId':_0x5e8fcd(0x45d),'value':_0x139866[_0x5e8fcd(0x1df)]},{'label':_0x28dc6d['t'](_0x5e8fcd(0x33f)),'panelId':_0x5e8fcd(0x311),'value':_0x139866[_0x5e8fcd(0x352)]}],'value':_0x482840,'onChange':_0x53d767}),_0x482840===_0x139866['Data']?_0x4dabb7(_0x3812e6,{'id':'base-pivot-chart-setup','label':_0x28dc6d['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x2b00c1(_0x5e8fcd(0x442),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x4dabb7(_0x195039,{'options':_0xfbcda5}),_0x4dabb7(_0x3eaf0a,{}),_0x4dabb7(_0x1603db,{}),_0x4dabb7(ma,{}),_0x4dabb7(_0x3210ae,{}),_0x2b00c1(_0x5e8fcd(0x442),{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x28dc6d['t'](_0x5e8fcd(0x2da))}),_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x595b6c})]}),_0x4dabb7(_0x26c1b7,{'orientationControl':_0x4dabb7(_0x1b3e3b,{'size':_0x5e8fcd(0x432),'onClick':()=>_0x30d33c({'chart':{..._0x486f6d[_0x5e8fcd(0x4d8)],'orient':_0x486f6d['chart'][_0x5e8fcd(0x485)]===_0x5e8fcd(0x487)?_0x5e8fcd(0x39b):'row'}}),'children':_0x28dc6d['t']('bases-dashboard-ui.chart.common.switchRowColumn')})}),_0x4dabb7(_0x45db86,{}),_0x4dabb7(_0x4e37ce,{'defaultValues':Q[_0x5e8fcd(0x2fd)]}),_0x2b00c1('div',{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x28dc6d['t'](_0x5e8fcd(0x470))}),_0x4dabb7(_0xce6b1b,{'value':_0x486f6d[_0x5e8fcd(0x4a6)],'options':[{'value':_0x5e8fcd(0x330),'label':_0x28dc6d['t'](_0x5e8fcd(0x3c6))},{'value':_0x5e8fcd(0x4d8),'label':_0x28dc6d['t'](_0x5e8fcd(0x3c7))},{'value':_0x5e8fcd(0x4bb),'label':_0x28dc6d['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x38503b=>{const _0x485e1d=_0x5e8fcd;(_0x38503b===_0x485e1d(0x330)||_0x38503b===_0x485e1d(0x4d8)||_0x38503b===_0x485e1d(0x4bb))&&_0x30d33c({'displayMode':_0x38503b});}})]})]})}):_0x4dabb7(_0x3812e6,{'id':'base-pivot-chart-style','label':_0x28dc6d['t'](_0x5e8fcd(0x33f)),'children':_0x4dabb7(ha,{})})]})});}function pa(_0x3db5a4,_0x19e117){const _0x10f3df=_0x2353bc;return{..._0x3db5a4,'type':_0x19e117[_0x10f3df(0x3e2)]??_0x3db5a4['type'],'style':_0x19e117[_0x10f3df(0x3f1)]??_0x3db5a4[_0x10f3df(0x3f1)],'context':_0x19e117[_0x10f3df(0x1af)]??_0x3db5a4['context'],'dataAggregation':_0x19e117[_0x10f3df(0x3b9)]??_0x3db5a4[_0x10f3df(0x3b9)]};}function ma(){const _0xd1cc0=_0x2353bc;let _0x2e4890=_0x1f2e67();return _0x4dabb7(_0x34de73,{'visible':da[_0xd1cc0(0x498)](_0xab9aab=>!_0x4c5ed5[_0xd1cc0(0x20b)](_0x2e4890,_0xab9aab))});}function $(_0x55758e){const _0x4c67ff=_0x2353bc;return _0x2b00c1(_0x1358f8,{'id':_0x55758e['id'],'children':[_0x4dabb7(_0x352fb4,{'children':_0x55758e[_0x4c67ff(0x3b0)]}),_0x4dabb7(_0xaf7aad,{'children':_0x55758e[_0x4c67ff(0x4a0)]})]});}function ha(){const _0x5beea5=_0x2353bc;let _0x11faa3=_0x39b411(_0x5cd3ee),_0x80a800=_0x1f2e67(),_0x212c5e=_0x51b799(),[_0x1af09c,_0x7f8022]=_0x2be63d(null),_0x341540=_0x4c5ed5['baseOn'](_0x80a800,_0x3414f3[_0x5beea5(0x1b1)]),_0x3a5efc=_0x80a800===_0x3414f3[_0x5beea5(0x4e4)],_0x45ab49=_0x80a800===_0x3414f3[_0x5beea5(0x297)],_0x5f0d27=_0x80a800===_0x3414f3['Funnel'],_0x2d6f7e=_0x4c5ed5[_0x5beea5(0x20b)](_0x80a800,_0x3414f3[_0x5beea5(0x2ae)]),_0x3e202f=_0x80a800===_0x3414f3['Relation'],_0x44cde6=_0x80a800===_0x3414f3[_0x5beea5(0x24f)],_0x4e5145=_0x80a800===_0x3414f3['Pareto'],_0x29edce=_0x80a800===_0x3414f3['Heatmap'],_0x2e8a88=_0x326a9b(_0x80a800,_0x1958f1[_0x5beea5(0x270)])&&!_0x2d6f7e&&!_0x4e5145,_0xe7ba27=ga(_0x80a800,_0x11faa3);return _0x2b00c1(_0x28ef86,{'value':_0x1af09c,'onChange':_0x7f8022,'children':[_0x4dabb7($,{'id':_0x8fe1f1['ChartStyle'],'label':_0x11faa3['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0x4dabb7(_0x466794,{'defaultValues':Q[_0x5beea5(0x3f1)]})}),_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x1d9)],'label':_0x11faa3['t'](_0x5beea5(0x406)),'children':_0x4dabb7(_0xe815e7,{'commitMode':_0x5beea5(0x453),'defaultValues':Q[_0x5beea5(0x262)]})}),_0x2e8a88&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x484)],'label':_0x11faa3['t'](_0x5beea5(0x1a9)),'children':_0x4dabb7(_0x3bcbff,{'defaultValues':Q[_0x5beea5(0x418)],'NumberFormatField':_0x2f8e19})}),_0x44cde6&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x1d6)],'label':_0x11faa3['t'](_0x5beea5(0x2c4)),'children':_0x4dabb7(_0x217c37,{'defaultValues':Q['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x11f305,target:_0x132ba0})=>_0x132ba0===_0x6a9b13[_0x5beea5(0x1d3)]?_0x11faa3['t']('bases-dashboard-ui.chart.waterfall.subtotal'):_0x11f305?_0x11f305+'-('+_0x11faa3['t']('bases-dashboard-ui.chart.'+(_0x132ba0===_0x6a9b13[_0x5beea5(0x428)]?_0x5beea5(0x507):_0x5beea5(0x3a8)))+')':'','NumberFormatField':_0x2f8e19})}),_0x4e5145&&_0x2b00c1(_0xa1bb43,{'children':[_0x4dabb7($,{'id':_0x8fe1f1['ParetoBarSeries'],'label':_0x11faa3['t'](_0x5beea5(0x1cb)),'children':_0x4dabb7(_0x35a412,{'defaultValues':Q[_0x5beea5(0x340)],'NumberFormatField':_0x2f8e19,'showDataPointEditor':!0x0,'target':'barStyle'})}),_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x4c5)],'label':_0x11faa3['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':_0x4dabb7(_0x35a412,{'defaultValues':Q['pareto'],'NumberFormatField':_0x2f8e19,'showDataPointEditor':!0x1,'target':_0x5beea5(0x1e3)})})]}),_0x341540&&_0x4dabb7($,{'id':_0x8fe1f1['PieStyle'],'label':_0x11faa3['t'](_0x5beea5(0x49b)),'children':_0x4dabb7(_0x34a105,{'defaultValues':Q[_0x5beea5(0x477)],'NumberFormatField':_0x2f8e19})}),_0x45ab49&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x297)],'label':_0x11faa3['t'](_0x5beea5(0x2ba)),'children':_0x4dabb7(_0x5ac713,{'defaultValues':Q['wordCloud']})}),_0x3a5efc&&_0x4dabb7($,{'id':_0x8fe1f1['Radar'],'label':_0x11faa3['t']('bases-dashboard-ui.chart.section.radar'),'children':_0x4dabb7(_0x4c7c71,{'defaultValues':Q[_0x5beea5(0x3f0)]})}),_0x5f0d27&&_0x4dabb7($,{'id':_0x8fe1f1['Funnel'],'label':_0x11faa3['t']('bases-dashboard-ui.chart.section.funnel'),'children':_0x4dabb7(_0x666ad2,{'defaultValues':Q[_0x5beea5(0x480)],'gapControl':_0x5beea5(0x465)})}),_0x29edce&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x20d)],'label':_0x11faa3['t'](_0x5beea5(0x2c2)),'children':_0x4dabb7(_0x3c01f2,{'defaultValues':Q[_0x5beea5(0x300)]})}),_0x3e202f&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x3dd)],'label':_0x11faa3['t'](_0x5beea5(0x476)),'children':_0x4dabb7(_0x11ce9e,{'defaultValues':Q[_0x5beea5(0x363)]})}),_0x59d745(_0x80a800)&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x4e5)],'label':_0x11faa3['t'](_0x5beea5(0x4ab)),'children':_0x4dabb7(_0x457b13,{'defaultValues':Q[_0x5beea5(0x39a)],'lineStyleControl':'segmented'})}),_0x326a9b(_0x80a800,_0x1958f1[_0x5beea5(0x3b8)])&&_0x4dabb7($,{'id':_0x8fe1f1['Legend'],'label':_0x11faa3['t'](_0x5beea5(0x4d5)),'children':_0x4dabb7(_0x1dc64f,{'defaultValues':Q[_0x5beea5(0x508)]})}),_0x326a9b(_0x80a800,_0x1958f1[_0x5beea5(0x313)])&&_0x2b00c1(_0xa1bb43,{'children':[_0x4dabb7($,{'id':_0x8fe1f1['HorizontalAxis'],'label':_0x11faa3['t'](_0x5beea5(0x26b)),'children':_0x4dabb7(_0x185c32,{'axis':'x','defaultValues':Q[_0x5beea5(0x310)],'NumberFormatField':_0x2f8e19})}),_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x488)],'label':_0x11faa3['t'](_0x5beea5(0x1ec)),'children':_0x4dabb7(_0x185c32,{'axis':'y','defaultValues':Q['axis'],'NumberFormatField':_0x2f8e19})}),_0x212c5e&&_0x4dabb7($,{'id':_0x8fe1f1['RightVerticalAxis'],'label':_0x11faa3['t'](_0x5beea5(0x374)),'children':_0x4dabb7(_0x185c32,{'axis':'rightY','defaultValues':Q['axis'],'NumberFormatField':_0x2f8e19})}),_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x1ee)],'label':_0x11faa3['t'](_0x5beea5(0x261)),'children':_0x4dabb7(_0x1f6674,{'defaultValues':Q[_0x5beea5(0x310)]})})]}),_0x326a9b(_0x80a800,_0x1958f1[_0x5beea5(0x223)])&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x223)],'label':_0x11faa3['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x4dabb7(_0x5f2295,{'defaultValues':Q[_0x5beea5(0x24d)]})}),_0xae124c(_0x80a800)&&_0x4dabb7($,{'id':_0x8fe1f1['Trendline'],'label':_0x11faa3['t'](_0x5beea5(0x387)),'children':_0x4dabb7(_0x3c8ddd,{'defaultValues':Q[_0x5beea5(0x23c)]})}),_0xe7ba27&&_0x4dabb7($,{'id':_0xe7ba27['id'],'label':_0xe7ba27['label'],'children':_0x4dabb7(_0x5d0cdf,{})})]});}function ga(_0x19bc19,_0x3c9d36){const _0x101916=_0x2353bc;let _0x5882a1={[_0x3414f3[_0x101916(0x1fe)]]:{'id':_0x8fe1f1[_0x101916(0x1fe)],'localeKey':_0x101916(0x1db)},[_0x3414f3['Histogram']]:{'id':_0x8fe1f1[_0x101916(0x242)],'localeKey':_0x101916(0x255)},[_0x3414f3[_0x101916(0x3aa)]]:{'id':_0x8fe1f1[_0x101916(0x3aa)],'localeKey':'bases-dashboard-ui.chart.section.treemap'},[_0x3414f3[_0x101916(0x366)]]:{'id':_0x8fe1f1[_0x101916(0x366)],'localeKey':_0x101916(0x495)},[_0x3414f3[_0x101916(0x494)]]:{'id':_0x8fe1f1[_0x101916(0x494)],'localeKey':'bases-dashboard-ui.chart.section.gauge'},[_0x3414f3[_0x101916(0x2e4)]]:{'id':_0x8fe1f1['Chord'],'localeKey':_0x101916(0x37c)}}[_0x19bc19];return _0x5882a1?{'id':_0x5882a1['id'],'label':_0x3c9d36['t'](_0x5882a1[_0x101916(0x353)])}:null;}function _a(_0xf1576a){const _0x377113=_0x2353bc;return _0x377113(0x317)+_0xf1576a;}function va({onChange:_0x346ca5,onEditData:_0x1df637,runtime:_0x5023bf,sourceChart:_0x3759eb,sourceName:_0x1c155c,widget:_0x4fb5f1}){const _0x1c008b=_0x2353bc;let _0x19f0dc=_0x39b411(Gr),_0x4648cc=_0x39b411(_0x5cd3ee),[_0xf25e52,_0x52db5c]=_0x2be63d(_0x139866[_0x1c008b(0x1df)]),_0x54e5d2=_0x4fb5f1['chart']??_0x3759eb,_0x34e1bc=_0x56a185(()=>new _0x29d554(_0x5023bf[_0x1c008b(0x37a)],{'commit':_0x23f344=>{const _0x3f532e=_0x1c008b;var _0x2adb6a;let _0x37d912=_0x5023bf['model'],_0x34048a=_0x485197(_0x23f344,{'series':(_0x2adb6a=_0x37d912['config'])==null?void 0x0:_0x2adb6a[_0x3f532e(0x418)],'currentChartType':_0x37d912[_0x3f532e(0x3e2)],'currentStyle':_0x37d912[_0x3f532e(0x3f1)],'currentContext':_0x37d912['context'],'currentDataAggregation':_0x37d912[_0x3f532e(0x3b9)]});_0x346ca5({..._0x4fb5f1,'chart':pa(_0x54e5d2,_0x34048a)})[_0x3f532e(0x3d2)](()=>void 0x0);}}),[_0x54e5d2,_0x346ca5,_0x5023bf,_0x4fb5f1]),_0x5c18b1=_0x56a185(()=>_0x2dbfb8(_0x170e20[_0x1c008b(0x3ff)](_0x1283f3=>({..._0x1283f3,'label':_0x4648cc['t'](ya(_0x1283f3[_0x1c008b(0x1a8)]))}))),[_0x4648cc]);return _0x4dabb7(_0x4bacfa,{'chartUIService':_0x19f0dc,'hostAdapter':_0x34e1bc,'children':_0x2b00c1(_0x1c008b(0x442),{'data-dashboard-chart-inspector':!0x0,'className':_0x1c008b(0x2f2),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x4648cc['t'](_0x1c008b(0x3d4)),'className':_0x1c008b(0x410),'items':[{'label':_0x4648cc['t'](_0x1c008b(0x466)),'panelId':_0x1c008b(0x295),'value':_0x139866['Data']},{'label':_0x4648cc['t'](_0x1c008b(0x33f)),'panelId':_0x1c008b(0x46d),'value':_0x139866['Style']}],'value':_0xf25e52,'onChange':_0x52db5c}),_0xf25e52===_0x139866[_0x1c008b(0x1df)]?_0x4dabb7(_0x3812e6,{'id':_0x1c008b(0x295),'label':_0x4648cc['t'](_0x1c008b(0x466)),'children':_0x2b00c1(_0x1c008b(0x442),{'className':_0x1c008b(0x4e3),'children':[_0x4dabb7(_0x195039,{'options':_0x5c18b1}),_0x4dabb7(_0x3eaf0a,{}),_0x4dabb7(_0x1603db,{}),_0x4dabb7(ma,{}),_0x4dabb7(_0x3210ae,{}),_0x2b00c1(_0x1c008b(0x442),{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x4648cc['t']('bases-dashboard-ui.dashboardInspector.dataSource')}),_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x1c155c}),_0x4dabb7(_0x1b3e3b,{'className':_0x1c008b(0x25f),'onClick':_0x1df637,'children':_0x4648cc['t'](_0x1c008b(0x2e0))})]})]})}):_0x4dabb7(_0x3812e6,{'id':_0x1c008b(0x46d),'label':_0x4648cc['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x4dabb7(ha,{})})]})});}function ya(_0x2e5a8d){const _0x5b16c8=_0x2353bc;return _0x5b16c8(0x317)+_0x2e5a8d;}const ba=['general',_0x2353bc(0x3c4),_0x2353bc(0x327),_0x2353bc(0x241),_0x2353bc(0x39e),'compact'];function xa({base:_0x266779,onChange:_0xbda0fa,onSelectBackgroundImage:_0x4465dc,widget:_0x31d0fe}){const _0x16db93=_0x2353bc;var _0x3d36ed;let _0x402626=_0x39b411(_0x5cd3ee),_0x53c740=_0x39b411(_0x277079),_0x198db0=_0x499abf(()=>_0x53c740[_0x16db93(0x227)],_0x53c740[_0x16db93(0x2d8)](),!0x1,[_0x53c740]),_0x704b8b=_0x499abf(()=>_0x53c740['darkMode$'],_0x53c740['darkMode'],!0x1,[_0x53c740]),[_0x3d3ef6,_0x43142f]=_0x2be63d(_0x16db93(0x4b1)),[_0x273223,_0x51ddcd]=_0x2be63d(!0x1),_0x5e6a5f=xr(_0x31d0fe),_0x1eeb23=_0x266779['getSnapshot']()[_0x16db93(0x39c)][_0x31d0fe[_0x16db93(0x475)]],_0x32e218=_0x1eeb23==null?void 0x0:_0x1eeb23[_0x16db93(0x411)][_0x16db93(0x397)](_0x867f5e=>_0x1eeb23[_0x16db93(0x451)][_0x867f5e]),_0x4108a8=_0x32e218?_0x1eeb23==null?void 0x0:_0x1eeb23['views'][_0x32e218]:void 0x0,_0x378d89=_0x1eeb23&&_0x4108a8?_0x57cd99(_0x266779[_0x16db93(0x3f5)](),_0x1eeb23,_0x4108a8)['map'](_0x34fb78=>({..._0x34fb78,'current':!0x1})):[],_0x5c4973=((_0x3d36ed=_0x31d0fe[_0x16db93(0x1d8)][_0x16db93(0x3e3)])==null?void 0x0:_0x3d36ed[_0x16db93(0x274)])??'',_0x179e87=_0x3eb206=>_0xbda0fa(Sr(_0x31d0fe,_0x3eb206))['catch'](()=>void 0x0),_0x5884e0=_0x2b9d0b=>_0xbda0fa({..._0x31d0fe,'description':_0x2b9d0b})['catch'](()=>void 0x0);return _0x2b00c1(_0x16db93(0x442),{'data-dashboard-formula-inspector':!0x0,'className':_0x16db93(0x2f2),'children':[_0x4dabb7(_0x116fe9,{'className':_0x16db93(0x346),'items':[{'value':'data','label':_0x402626['t'](_0x16db93(0x1dd))},{'value':_0x16db93(0x3f1),'label':_0x402626['t'](_0x16db93(0x2ac))}],'value':_0x3d3ef6,'onChange':_0x43142f}),_0x4dabb7(_0x16db93(0x442),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0x3d3ef6==='data'?_0x2b00c1(_0x16db93(0x442),{'className':_0x16db93(0x4e0),'children':[_0x4dabb7(Sa,{'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.description'),'children':_0x4dabb7(_0x2c53ee,{'value':_0x31d0fe['description']??_0x31d0fe['title']??'','onChange':_0x5884e0,'onBlur':_0x2fb235=>_0x5884e0(_0x2fb235['target'][_0x16db93(0x284)])})}),_0x4dabb7(Sa,{'label':_0x402626['t'](_0x16db93(0x31b)),'children':_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':(_0x1eeb23==null?void 0x0:_0x1eeb23['name'])??_0x402626['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})}),_0x2b00c1(Sa,{'label':_0x402626['t'](_0x16db93(0x222)),'children':[_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x1b3454(_0x5c4973,_0x378d89)}),_0x4dabb7(_0x1b3e3b,{'className':_0x16db93(0x25f),'onClick':()=>_0x51ddcd(!0x0),'children':_0x402626['t'](_0x16db93(0x460))})]})]}):_0x2b00c1('div',{'className':_0x16db93(0x4e0),'children':[_0x4dabb7(_0x38703b,{'emptyLabel':_0x402626['t'](_0x16db93(0x245)),'label':_0x402626['t'](_0x16db93(0x245)),'pickerFallbackValue':_0x704b8b?_0x198db0[_0x16db93(0x433)][0x384]:_0x198db0[_0x16db93(0x433)][0x0],'resetLabel':_0x402626['t'](_0x16db93(0x449)),'value':_0x5e6a5f[_0x16db93(0x394)]??null,'onChange':_0x396117=>_0x179e87({'backgroundColor':_0x396117??void 0x0})}),_0x2b00c1(Sa,{'label':_0x402626['t'](_0x16db93(0x267)),'children':[_0x2b00c1(_0x16db93(0x442),{'className':_0x16db93(0x4cf),'children':[_0x2b00c1(_0x1b3e3b,{'className':_0x16db93(0x342),'onClick':()=>{const _0x1277ff=_0x16db93;_0x4465dc()[_0x1277ff(0x388)](_0x2f011b=>{const _0x187ac4=_0x1277ff;if(_0x2f011b){var _0x12a9ee;return _0x179e87({'backgroundImage':{..._0x2f011b,'fit':((_0x12a9ee=_0x5e6a5f['backgroundImage'])==null?void 0x0:_0x12a9ee['fit'])??_0x187ac4(0x3d5)}});}})[_0x1277ff(0x3d2)](()=>void 0x0);},'children':[_0x4dabb7(_0x5155a3,{}),_0x5e6a5f[_0x16db93(0x48f)]?_0x402626['t'](_0x16db93(0x256)):_0x402626['t']('bases-dashboard-ui.dashboardInspector.uploadImage')]}),_0x5e6a5f[_0x16db93(0x48f)]&&_0x4dabb7(_0x1b3e3b,{'aria-label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x402626['t'](_0x16db93(0x1f0)),'onClick':()=>_0x179e87({'backgroundImage':void 0x0}),'children':_0x4dabb7(_0x2d17f6,{})})]}),_0x5e6a5f['backgroundImage']&&_0x4dabb7(_0x116fe9,{'className':_0x16db93(0x266),'items':[{'value':_0x16db93(0x3d5),'label':_0x402626['t'](_0x16db93(0x2e7))},{'value':'contain','label':_0x402626['t'](_0x16db93(0x45b))}],'value':_0x5e6a5f[_0x16db93(0x48f)][_0x16db93(0x2c9)],'onChange':_0x39b1b7=>_0x179e87({'backgroundImage':_0x5e6a5f[_0x16db93(0x48f)]?{..._0x5e6a5f['backgroundImage'],'fit':_0x39b1b7}:void 0x0})})]}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x402626['t'](_0x16db93(0x21a)),'label':_0x402626['t'](_0x16db93(0x21a)),'pickerFallbackValue':_0x704b8b?_0x198db0[_0x16db93(0x433)][0x32]:_0x198db0[_0x16db93(0x433)][0x3e8],'resetLabel':_0x402626['t'](_0x16db93(0x449)),'value':_0x5e6a5f[_0x16db93(0x204)]??null,'onChange':_0x18cb43=>_0x179e87({'textColor':_0x18cb43??void 0x0})}),_0x4dabb7(Sa,{'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x4dabb7(_0x116fe9,{'items':[{'value':_0x16db93(0x20a),'label':_0x402626['t'](_0x16db93(0x28d))},{'value':_0x16db93(0x4b2),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':'right','label':_0x402626['t'](_0x16db93(0x1fd))}],'value':_0x5e6a5f['alignment'],'onChange':_0x357667=>_0x179e87({'alignment':_0x357667})})}),_0x2b00c1(Sa,{'label':_0x402626['t'](_0x16db93(0x219)),'children':[_0x4dabb7(_0x116fe9,{'items':[{'value':_0x16db93(0x3b6),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':_0x16db93(0x509),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x5e6a5f[_0x16db93(0x1e2)],'onChange':_0x371a80=>_0x179e87({'fontSizeMode':_0x371a80})}),_0x5e6a5f[_0x16db93(0x1e2)]==='custom'&&_0x4dabb7(_0x1c2086,{'className':_0x16db93(0x266),'min':0xc,'max':0x78,'value':_0x5e6a5f['fontSize'],'onChange':_0x38cddd=>_0x179e87({'fontSize':_0x38cddd??0x28,'fontSizeMode':_0x16db93(0x509)})})]}),_0x4dabb7(Sa,{'label':_0x402626['t'](_0x16db93(0x500)),'children':_0x4dabb7(_0xce6b1b,{'value':_0x5e6a5f[_0x16db93(0x348)],'options':[{'value':_0x16db93(0x3f3),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.general')},{'value':_0x16db93(0x3c4),'label':_0x402626['t'](_0x16db93(0x1e1))},{'value':_0x16db93(0x327),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.percent')},{'value':_0x16db93(0x241),'label':_0x402626['t'](_0x16db93(0x502))},{'value':_0x16db93(0x39e),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':_0x16db93(0x1be),'label':_0x402626['t'](_0x16db93(0x4cd))}],'onChange':_0x5ad74a=>{const _0x1b4869=_0x16db93;let _0xaeffd8=ba[_0x1b4869(0x397)](_0x416300=>_0x416300===_0x5ad74a);_0xaeffd8&&_0x179e87({'numberFormat':_0xaeffd8});}})}),_0x5e6a5f[_0x16db93(0x348)]===_0x16db93(0x241)&&_0x4dabb7(Sa,{'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x4dabb7(_0x2c53ee,{'value':_0x5e6a5f['currency'],'onChange':_0x35f18f=>_0x179e87({'currency':_0x35f18f[_0x16db93(0x35d)](0x0,0x3)[_0x16db93(0x4e2)]()})})}),_0x5e6a5f[_0x16db93(0x348)]!==_0x16db93(0x3f3)&&_0x4dabb7(Sa,{'label':_0x402626['t'](_0x16db93(0x211)),'children':_0x4dabb7(_0x1c2086,{'min':0x0,'max':0x8,'value':_0x5e6a5f['decimalPlaces'],'onChange':_0x304407=>_0x179e87({'decimalPlaces':_0x304407??0x0})})})]})}),_0x273223&&_0x4dabb7(_0x4b580d,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x4dabb7(_0x55d652,{'tables':_0x378d89,'formula':_0x1b3454(_0x5c4973,_0x378d89),'onCancel':()=>_0x51ddcd(!0x1),'onSave':_0x5cc300=>{const _0x380b0a=_0x16db93;let _0x233eef=_0x31d0fe[_0x380b0a(0x1d8)][_0x380b0a(0x3e3)]??{'formula':''};return _0xbda0fa({..._0x31d0fe,'shapeData':{..._0x31d0fe[_0x380b0a(0x1d8)],'formulaBinding':{..._0x233eef,'formula':_0x24d391(_0x5cc300,_0x378d89)}}})[_0x380b0a(0x388)](()=>_0x51ddcd(!0x1))[_0x380b0a(0x3d2)](()=>void 0x0);}})})]});}function Sa({children:_0x2cba44,label:_0x58b251}){const _0x555861=_0x2353bc;return _0x2b00c1(_0x555861(0x442),{'role':_0x555861(0x365),'aria-label':_0x58b251,'className':_0x555861(0x3d0),'children':[_0x4dabb7(_0x555861(0x3ec),{'children':_0x58b251}),_0x2cba44]});}const Ca={[_0x17381a['IS']]:_0x2353bc(0x4be),[_0x17381a[_0x2353bc(0x1d2)]]:_0x2353bc(0x2e6),[_0x17381a[_0x2353bc(0x35c)]]:'bases-dashboard-ui.operators.contains',[_0x17381a['NOT_CONTAINS']]:_0x2353bc(0x493),[_0x17381a[_0x2353bc(0x2b3)]]:_0x2353bc(0x3ef),[_0x17381a['IS_NOT_EMPTY']]:_0x2353bc(0x31d),[_0x17381a[_0x2353bc(0x3fc)]]:_0x2353bc(0x1ca),[_0x17381a[_0x2353bc(0x3da)]]:_0x2353bc(0x3e1),[_0x17381a[_0x2353bc(0x36d)]]:_0x2353bc(0x3c2),[_0x17381a[_0x2353bc(0x303)]]:_0x2353bc(0x2a8),[_0x17381a[_0x2353bc(0x3f4)]]:_0x2353bc(0x243),[_0x17381a[_0x2353bc(0x202)]]:_0x2353bc(0x4f2)};function wa({disabled:_0x3654,fields:_0x4a45a4,filter:_0x3e073d,onChange:_0x32785d}){const _0x3436b1=_0x2353bc;let _0x52acdc=_0x39b411(_0x5cd3ee),_0x55a72a=(_0x3e073d==null?void 0x0:_0x3e073d[_0x3436b1(0x1b8)])??[];return _0x55a72a[_0x3436b1(0x4da)]?_0x4dabb7(_0x3436b1(0x442),{'className':_0x3436b1(0x417),'children':_0x55a72a[_0x3436b1(0x3ff)]((_0x1fcc3c,_0x5c2911)=>{const _0x4fe261=_0x3436b1;let _0x36da24=_0x4a45a4[_0x4fe261(0x397)](_0x461e08=>_0x461e08['id']===_0x1fcc3c[_0x4fe261(0x43d)]);return _0x2b00c1(_0x4fe261(0x442),{'className':_0x4fe261(0x426),'children':[_0x2b00c1(_0x4fe261(0x442),{'className':_0x4fe261(0x21c),'children':[_0x4dabb7(_0x4fe261(0x3ec),{'className':_0x4fe261(0x2fc),'children':(_0x36da24==null?void 0x0:_0x36da24[_0x4fe261(0x329)])??_0x1fcc3c[_0x4fe261(0x43d)]}),_0x4dabb7('span',{'className':_0x4fe261(0x34f),'children':_0x52acdc['t'](Ca[_0x1fcc3c[_0x4fe261(0x510)]])})]}),Ma(_0x1fcc3c['operator'])&&_0x4dabb7(Ea,{'disabled':_0x3654,'field':_0x36da24,'value':_0x1fcc3c[_0x4fe261(0x37d)],'onChange':_0x11c71e=>_0x32785d(ka(_0x3e073d,_0x5c2911,{'operand':_0x11c71e}))})]},Fa(_0x55a72a,_0x1fcc3c,_0x5c2911));})}):_0x2b00c1(_0x3436b1(0x442),{'className':_0x3436b1(0x1f2),'children':[_0x4dabb7(_0x425726,{'className':'univer-mx-auto\x20univer-size-6'}),_0x4dabb7('span',{'className':_0x3436b1(0x3b3),'children':_0x52acdc['t'](_0x3436b1(0x396))})]});}function Ta({fields:_0x1f4c36,filter:_0x38d581,onChange:_0x3224c7,onClear:_0x31186a}){const _0x57697b=_0x2353bc;let _0x34beba=_0x39b411(_0x5cd3ee),_0x4457b1=(_0x38d581==null?void 0x0:_0x38d581[_0x57697b(0x1b8)])??[];return _0x2b00c1(_0x57697b(0x442),{'data-dashboard-filter-inspector':!0x0,'className':'univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','children':[_0x4457b1['map']((_0xf7d128,_0x1c679d)=>{const _0x2e518a=_0x57697b;let _0x15de43=_0x1f4c36[_0x2e518a(0x397)](_0x24be71=>_0x24be71['id']===_0xf7d128[_0x2e518a(0x43d)])??_0x1f4c36[0x0],_0xb70ce5=Aa(_0x15de43);return _0x2b00c1(_0x2e518a(0x482),{'className':_0x2e518a(0x1b2),'children':[_0x2b00c1(_0x2e518a(0x442),{'className':_0x2e518a(0x4b7),'children':[_0x4dabb7(_0xce6b1b,{'value':_0xf7d128[_0x2e518a(0x43d)],'options':_0x1f4c36[_0x2e518a(0x3ff)](_0x3f37d8=>({'value':_0x3f37d8['id'],'label':_0x3f37d8['name']})),'onChange':_0x90bc09=>{const _0x2d75fe=_0x2e518a;let _0x5ecfc8=_0x1f4c36[_0x2d75fe(0x397)](_0x2a7361=>_0x2a7361['id']===_0x90bc09);if(!_0x5ecfc8)return;let _0x30ae90=Aa(_0x5ecfc8)[0x0];_0x3224c7(ka(_0x38d581,_0x1c679d,Oa(_0x5ecfc8,_0x30ae90)));}}),_0x4dabb7(_0x1b3e3b,{'type':_0x2e518a(0x228),'variant':_0x2e518a(0x452),'aria-label':_0x34beba['t']('bases-dashboard-ui.dashboardInspector.delete'),'className':_0x2e518a(0x471),'onClick':()=>_0x3224c7(Da(_0x38d581,_0x4457b1[_0x2e518a(0x1b3)]((_0x40bdd2,_0x29ff3c)=>_0x29ff3c!==_0x1c679d))),'children':_0x4dabb7(_0x122a02,{})})]}),_0x4dabb7(_0xce6b1b,{'value':_0xf7d128[_0x2e518a(0x510)],'options':_0xb70ce5[_0x2e518a(0x3ff)](_0x2fbb12=>({'value':_0x2fbb12,'label':_0x34beba['t'](Ca[_0x2fbb12])})),'onChange':_0x48a373=>{const _0xa85f3d=_0x2e518a;let _0x3e6bbb=_0xb70ce5[_0xa85f3d(0x397)](_0x5aa635=>_0x5aa635===_0x48a373);_0x3e6bbb&&_0x3224c7(ka(_0x38d581,_0x1c679d,{'operator':_0x3e6bbb,'operand':ja(_0x15de43)}));}}),Ma(_0xf7d128[_0x2e518a(0x510)])&&_0x4dabb7(Ea,{'field':_0x15de43,'value':_0xf7d128[_0x2e518a(0x37d)],'onChange':_0x3bf0d9=>_0x3224c7(ka(_0x38d581,_0x1c679d,{'operand':_0x3bf0d9}))})]},Fa(_0x4457b1,_0xf7d128,_0x1c679d));}),_0x2b00c1(_0x1b3e3b,{'type':_0x57697b(0x228),'variant':'text','className':_0x57697b(0x332),'disabled':!_0x1f4c36['length'],'onClick':()=>{let _0x1de638=_0x1f4c36[0x0];if(!_0x1de638)return;let _0x32b1eb=Aa(_0x1de638)[0x0];_0x3224c7(Da(_0x38d581,[..._0x4457b1,Oa(_0x1de638,_0x32b1eb)]));},'children':[_0x4dabb7(_0x5155a3,{}),_0x34beba['t'](_0x57697b(0x25c))]}),_0x4457b1[_0x57697b(0x4da)]>0x0&&_0x4dabb7(_0x1b3e3b,{'type':'button','variant':_0x57697b(0x452),'className':_0x57697b(0x1b5),'onClick':_0x31186a,'children':_0x34beba['t'](_0x57697b(0x46f))})]});}function Ea({disabled:_0x413fae,field:_0x14a3b4,onChange:_0x28cc85,value:_0x4c2e62}){const _0x3090aa=_0x2353bc;let _0x3d4762=_0x39b411(_0x5cd3ee),_0x38d941=_0x14a3b4==null?void 0x0:_0x14a3b4[_0x3090aa(0x393)];if(_0x38d941===_0x557eea[_0x3090aa(0x205)]){let _0x36452e=_0x4c2e62===!0x0||_0x4c2e62===_0x3090aa(0x1d5);return _0x2b00c1(_0x1b3e3b,{'type':_0x3090aa(0x228),'variant':_0x3090aa(0x431),'disabled':_0x413fae,'className':_0x3090aa(0x2d7),'onClick':()=>_0x28cc85(!_0x36452e),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x36452e,'disabled':_0x413fae,'onChange':()=>void 0x0}),_0x36452e?_0x3d4762['t'](_0x3090aa(0x3e7)):_0x3d4762['t'](_0x3090aa(0x216))]});}return Ia(_0x38d941)?_0x413fae?_0x4dabb7(_0x1b3e3b,{'type':_0x3090aa(0x228),'variant':_0x3090aa(0x431),'className':_0x3090aa(0x1b5),'disabled':!0x0,'children':_0x22c7cc(_0x4c2e62==null||_0x4c2e62===''?void 0x0:String(_0x4c2e62))[_0x3090aa(0x347)]('YYYY-MM-DD')}):_0x4dabb7(_0x1596d0,{'className':_0x3090aa(0x1b5),'value':_0x22c7cc(_0x4c2e62==null||_0x4c2e62===''?void 0x0:String(_0x4c2e62))[_0x3090aa(0x4f8)](),'onValueChange':_0x45c716=>_0x28cc85(_0x22c7cc(_0x45c716)[_0x3090aa(0x347)](_0x3090aa(0x232)))}):Ra(_0x14a3b4)?_0x4dabb7(_0x3ab7df,{'className':_0x3090aa(0x1b5),'disabled':_0x413fae,'value':Array['isArray'](_0x4c2e62)?_0x4c2e62[_0x3090aa(0x3ff)](String):[],'options':Na(_0x14a3b4),'onChange':_0x28cc85}):_0x38d941===_0x557eea[_0x3090aa(0x2f9)]||_0x38d941===_0x557eea[_0x3090aa(0x3be)]||_0x38d941===_0x557eea[_0x3090aa(0x4d7)]?_0x4dabb7(_0xce6b1b,{'className':_0x3090aa(0x1b5),'disabled':_0x413fae,'value':String(_0x4c2e62??''),'options':[{'value':'','label':_0x3d4762['t'](_0x3090aa(0x39d))},...Na(_0x14a3b4)],'onChange':_0x28cc85}):La(_0x38d941)?_0x4dabb7(_0x1c2086,{'className':_0x3090aa(0x1b5),'allowEmpty':!0x0,'disabled':_0x413fae,'value':Number[_0x3090aa(0x4a4)](Number(_0x4c2e62))?Number(_0x4c2e62):null,'onChange':_0x5021f3=>_0x28cc85(_0x5021f3??'')}):_0x4dabb7(_0x2c53ee,{'disabled':_0x413fae,'value':String(_0x4c2e62??''),'placeholder':_0x3d4762['t'](_0x3090aa(0x4b9)),'onChange':_0x28cc85});}function Da(_0x182c27,_0x102198){const _0x4cd6a4=_0x2353bc;return{'conjunction':(_0x182c27==null?void 0x0:_0x182c27[_0x4cd6a4(0x3d9)])??_0xf09c6[_0x4cd6a4(0x27f)],'conditions':_0x102198};}function Oa(_0xe91191,_0x299177){return Ma(_0x299177)?{'fieldId':_0xe91191['id'],'operator':_0x299177,'operand':ja(_0xe91191)}:{'fieldId':_0xe91191['id'],'operator':_0x299177};}function ka(_0x111487,_0x43ce78,_0xcc7b4f){const _0x131be9=_0x2353bc;return Da(_0x111487,((_0x111487==null?void 0x0:_0x111487[_0x131be9(0x1b8)])??[])[_0x131be9(0x3ff)]((_0x31f8fc,_0x577e57)=>_0x577e57===_0x43ce78?{..._0x31f8fc,..._0xcc7b4f}:_0x31f8fc));}function Aa(_0x3f36c){const _0x11cf24=_0x2353bc;let _0x4b37c3=[_0x17381a[_0x11cf24(0x2b3)],_0x17381a['IS_NOT_EMPTY']];switch(_0x3f36c==null?void 0x0:_0x3f36c[_0x11cf24(0x393)]){case _0x557eea[_0x11cf24(0x416)]:case _0x557eea[_0x11cf24(0x321)]:case _0x557eea['Progress']:case _0x557eea[_0x11cf24(0x42a)]:return[_0x17381a['IS'],_0x17381a[_0x11cf24(0x1d2)],_0x17381a['GREATER_THAN'],_0x17381a[_0x11cf24(0x36d)],..._0x4b37c3];case _0x557eea[_0x11cf24(0x4e7)]:case _0x557eea[_0x11cf24(0x2fa)]:case _0x557eea[_0x11cf24(0x4a2)]:return[_0x17381a['IS'],_0x17381a[_0x11cf24(0x1d2)],_0x17381a[_0x11cf24(0x3f4)],_0x17381a[_0x11cf24(0x202)],..._0x4b37c3];case _0x557eea[_0x11cf24(0x205)]:return[_0x17381a['IS'],_0x17381a['IS_NOT']];default:return[_0x17381a['IS'],_0x17381a[_0x11cf24(0x1d2)],_0x17381a[_0x11cf24(0x35c)],_0x17381a[_0x11cf24(0x40d)],..._0x4b37c3];}}function ja(_0x3e591b){const _0x4635ae=_0x2353bc;return _0x3e591b?_0x3e591b['type']===_0x557eea['Checkbox']?!0x1:Ia(_0x3e591b[_0x4635ae(0x393)])?_0x22c7cc()[_0x4635ae(0x347)](_0x4635ae(0x232)):Ra(_0x3e591b)?[]:'':'';}function Ma(_0x3576cd){const _0x14c98f=_0x2353bc;return _0x3576cd!==_0x17381a[_0x14c98f(0x2b3)]&&_0x3576cd!==_0x17381a[_0x14c98f(0x375)];}function Na(_0xa7050d){const _0x6d9db=_0x2353bc;var _0x26d601;return(Array['isArray'](_0xa7050d==null||(_0x26d601=_0xa7050d[_0x6d9db(0x4e8)])==null?void 0x0:_0x26d601['options'])?_0xa7050d['config'][_0x6d9db(0x320)]:[])[_0x6d9db(0x3ff)]((_0x44f612,_0x28d9cd)=>{const _0x3ae553=_0x6d9db;if(typeof _0x44f612==_0x3ae553(0x4ff))return{'label':_0x44f612,'value':_0x44f612};if(!Pa(_0x44f612))return{'label':String(_0x28d9cd+0x1),'value':String(_0x28d9cd+0x1)};let _0x532423=_0x44f612,_0x390c96=String(_0x532423[_0x3ae553(0x329)]??_0x532423['id']??_0x28d9cd+0x1),_0x2cb6cb=String(_0x532423['id']??_0x390c96);return{'label':_0x390c96,'value':/^opt-\d+$/[_0x3ae553(0x41e)](_0x2cb6cb)?_0x390c96:_0x2cb6cb};});}function Pa(_0x3d6142){const _0x17f520=_0x2353bc;return typeof _0x3d6142==_0x17f520(0x43c)&&!!_0x3d6142;}function Fa(_0x42564f,_0x324197,_0x45832f){const _0x36adf7=_0x2353bc;let _0x3104b2=JSON['stringify'](_0x324197);return _0x3104b2+'-'+_0x42564f[_0x36adf7(0x35d)](0x0,_0x45832f)[_0x36adf7(0x1b3)](_0x511f23=>JSON[_0x36adf7(0x492)](_0x511f23)===_0x3104b2)['length'];}function Ia(_0x2d2da9){const _0x108f7d=_0x2353bc;return _0x2d2da9===_0x557eea['Date']||_0x2d2da9===_0x557eea[_0x108f7d(0x2fa)]||_0x2d2da9===_0x557eea[_0x108f7d(0x4a2)];}function La(_0x2e12ff){const _0x187558=_0x2353bc;return _0x2e12ff===_0x557eea[_0x187558(0x416)]||_0x2e12ff===_0x557eea[_0x187558(0x321)]||_0x2e12ff===_0x557eea[_0x187558(0x3c5)]||_0x2e12ff===_0x557eea[_0x187558(0x42a)];}function Ra(_0x4d0b06){const _0x1dd369=_0x2353bc;var _0x1c5d3c;return(_0x4d0b06==null?void 0x0:_0x4d0b06[_0x1dd369(0x393)])===_0x557eea[_0x1dd369(0x1f6)]||(_0x4d0b06==null?void 0x0:_0x4d0b06['type'])===_0x557eea['Group']||(_0x4d0b06==null?void 0x0:_0x4d0b06[_0x1dd369(0x393)])===_0x557eea['Person']&&((_0x1c5d3c=_0x4d0b06[_0x1dd369(0x4e8)])==null?void 0x0:_0x1c5d3c[_0x1dd369(0x354)])===!0x0;}function za({base:_0xf720d,chartRuntime:_0x3c3484,onChange:_0xc7c89d,onClose:_0x45e503,onSelectBackgroundImage:_0x4d1e5b,onSelectImage:_0xd81de1,unitId:_0x1835b4,widget:_0x122dfe}){const _0x154dce=_0x2353bc;let _0x1cd4e4=_0x39b411(_0x32452d),_0xe26cac=_0x39b411(_0x5cd3ee),_0x57635a=_0xf720d[_0x154dce(0x3f5)](),_0x102423=_0x154dce(0x475)in _0x122dfe?_0x57635a[_0x154dce(0x39c)][_0x122dfe[_0x154dce(0x475)]]:void 0x0,_0x5d600a=_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x3a3)]?_0x102423==null?void 0x0:_0x102423[_0x154dce(0x451)][_0x122dfe[_0x154dce(0x399)]]:void 0x0,_0x2b4747=_0xe26cac['t'](Ka(_0x122dfe));return _0x2b00c1(_0x154dce(0x2b6),{'data-dashboard-inspector':!0x0,'className':_0x154dce(0x459),'children':[_0x2b00c1(_0x154dce(0x36a),{'className':'univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-px-4\x20dark:!univer-border-gray-700','children':[_0x4dabb7('h3',{'className':_0x154dce(0x385),'children':_0x2b4747}),_0x4dabb7(_0x1b3e3b,{'type':_0x154dce(0x228),'size':_0x154dce(0x432),'variant':_0x154dce(0x452),'aria-label':_0xe26cac['t']('bases-dashboard-ui.dashboardInspector.close'),'onClick':_0x45e503,'children':_0x4dabb7(_0x122a02,{})})]}),_0x122dfe['type']===_0x342116[_0x154dce(0x3a3)]&&(Ga(_0x5d600a)&&_0x3c3484?_0x4dabb7(va,{'runtime':_0x3c3484,'sourceChart':_0x5d600a[_0x154dce(0x4e8)]['chart'],'sourceName':((_0x102423==null?void 0x0:_0x102423['name'])??'')+'\x20/\x20'+_0x5d600a[_0x154dce(0x329)],'widget':_0x122dfe,'onChange':_0xc7c89d,'onEditData':()=>{const _0x56c876=_0x154dce;_0x1cd4e4[_0x56c876(0x1ff)](_0x9b2833['id'],{'unitId':_0x1835b4,'tableId':_0x122dfe[_0x56c876(0x475)],'viewId':_0x122dfe[_0x56c876(0x399)]})[_0x56c876(0x3d2)](()=>void 0x0);}}):_0x4dabb7(Ua,{'message':Ga(_0x5d600a)?_0xe26cac['t'](_0x154dce(0x2aa)):_0xe26cac['t'](_0x154dce(0x3d7))})),_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x36e)]&&_0x4dabb7(xa,{'base':_0xf720d,'widget':_0x122dfe,'onChange':_0xc7c89d,'onSelectBackgroundImage':_0x4d1e5b}),_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x296)]&&_0x4dabb7(Va,{'base':_0xf720d,'onChange':_0xc7c89d,'widget':_0x122dfe}),_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x298)]&&_0x4dabb7(Ha,{'onChange':_0xc7c89d,'widget':_0x122dfe}),_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x4ae)]&&_0x4dabb7(Ba,{'onChange':_0xc7c89d,'onSelectImage':_0xd81de1,'widget':_0x122dfe})]});}function Ba({onChange:_0x5d016f,onSelectImage:_0xd39f12,widget:_0x50cef5}){const _0x387501=_0x2353bc;let _0x2dfdfb=_0x39b411(_0x5cd3ee);return _0x2b00c1(_0x387501(0x442),{'className':'univer-grid\x20univer-gap-4\x20univer-p-4','children':[_0x2b00c1(_0x1b3e3b,{'className':_0x387501(0x1b5),'onClick':()=>_0xd39f12()['then'](_0x14399c=>_0x14399c&&_0x5d016f({..._0x50cef5,'source':_0x14399c['source'],'sourceType':_0x14399c['sourceType'],'alt':_0x14399c[_0x387501(0x329)]}))[_0x387501(0x3d2)](()=>void 0x0),'children':[_0x4dabb7(_0x5155a3,{}),_0x2dfdfb['t'](_0x387501(0x256))]}),_0x2b00c1('label',{'className':_0x387501(0x3d0),'children':[_0x4dabb7(_0x387501(0x3ec),{'children':_0x2dfdfb['t'](_0x387501(0x267))}),_0x4dabb7(_0x116fe9,{'items':[{'value':_0x387501(0x3d5),'label':_0x2dfdfb['t'](_0x387501(0x2e7))},{'value':_0x387501(0x42b),'label':_0x2dfdfb['t'](_0x387501(0x392))},{'value':_0x387501(0x2bc),'label':_0x2dfdfb['t'](_0x387501(0x260))}],'value':_0x50cef5['displayMode']??_0x387501(0x3d5),'onChange':_0x171bc0=>_0x5d016f({..._0x50cef5,'displayMode':_0x171bc0})[_0x387501(0x3d2)](()=>void 0x0)})]})]});}function Va({base:_0x1be224,onChange:_0x53e616,widget:_0x53bf31}){const _0x5c1d04=_0x2353bc;let _0x1fbc38=_0x1be224['getSnapshot']()[_0x5c1d04(0x39c)][_0x53bf31['tableId']],_0x3d955b=_0x1fbc38==null?void 0x0:_0x1fbc38[_0x5c1d04(0x411)][_0x5c1d04(0x397)](_0x37b84f=>_0x1fbc38[_0x5c1d04(0x451)][_0x37b84f]),_0x277a23=_0x3d955b?_0x1fbc38==null?void 0x0:_0x1fbc38[_0x5c1d04(0x451)][_0x3d955b]:void 0x0,_0x56c4f0=_0x1fbc38&&_0x277a23?_0x5249f3(_0x1fbc38,_0x277a23):[];return _0x4dabb7(Ta,{'fields':_0x56c4f0,'filter':_0x53bf31[_0x5c1d04(0x1b3)],'onChange':_0x43e1b9=>_0x53e616({..._0x53bf31,'filter':_0x43e1b9})[_0x5c1d04(0x3d2)](()=>void 0x0),'onClear':()=>_0x53e616({..._0x53bf31,'filter':null})['catch'](()=>void 0x0)});}function Ha({onChange:_0x146b24,widget:_0x21c2c2}){const _0x40fc8c=_0x2353bc;let _0x2c9efe=_0x39b411(_0x5cd3ee),_0x352785=_0x39b411(_0x277079),_0x4b118f=_0x499abf(()=>_0x352785[_0x40fc8c(0x227)],_0x352785['getCurrentTheme'](),!0x1,[_0x352785]),_0x5c8e3d=Br(_0x21c2c2),_0x368ad9=_0x243cbf=>_0x146b24({..._0x21c2c2,'appearance':{..._0x5c8e3d,..._0x243cbf}})[_0x40fc8c(0x3d2)](()=>void 0x0);return _0x2b00c1(_0x40fc8c(0x442),{'className':_0x40fc8c(0x4b8),'children':[_0x4dabb7(_0x136f1a,{'defaultValue':Vr(_0x21c2c2[_0x40fc8c(0x4d6)]),'rows':0x8,'onBlur':_0x34e6d4=>_0x146b24({..._0x21c2c2,'document':Hr(_0x21c2c2['document'],_0x34e6d4[_0x40fc8c(0x344)][_0x40fc8c(0x284)])})['catch'](()=>void 0x0)}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x4b118f[_0x40fc8c(0x433)][0x0],'resetLabel':_0x2c9efe['t'](_0x40fc8c(0x449)),'value':_0x5c8e3d[_0x40fc8c(0x394)]??null,'onChange':_0x52bdd2=>_0x368ad9({'backgroundColor':_0x52bdd2??void 0x0})}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x2c9efe['t'](_0x40fc8c(0x21a)),'label':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x4b118f[_0x40fc8c(0x433)][0x3e8],'resetLabel':_0x2c9efe['t'](_0x40fc8c(0x449)),'value':_0x5c8e3d[_0x40fc8c(0x204)]??null,'onChange':_0x2d12b0=>_0x368ad9({'textColor':_0x2d12b0??void 0x0})}),_0x4dabb7(Wa,{'label':_0x2c9efe['t'](_0x40fc8c(0x3cf)),'children':_0x4dabb7(_0x116fe9,{'items':[{'value':'left','label':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':'center','label':_0x2c9efe['t'](_0x40fc8c(0x237))},{'value':_0x40fc8c(0x214),'label':_0x2c9efe['t'](_0x40fc8c(0x1fd))}],'value':_0x5c8e3d['alignment'],'onChange':_0x207232=>_0x368ad9({'alignment':_0x207232})})}),_0x2b00c1(Wa,{'label':_0x2c9efe['t'](_0x40fc8c(0x219)),'children':[_0x4dabb7(_0x116fe9,{'items':[{'value':_0x40fc8c(0x3b6),'label':_0x2c9efe['t'](_0x40fc8c(0x29b))},{'value':_0x40fc8c(0x509),'label':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x5c8e3d[_0x40fc8c(0x1e2)],'onChange':_0x4fa194=>_0x368ad9({'fontSizeMode':_0x4fa194})}),_0x5c8e3d[_0x40fc8c(0x1e2)]===_0x40fc8c(0x509)&&_0x4dabb7(_0x1c2086,{'className':_0x40fc8c(0x266),'min':0xa,'max':0x78,'value':_0x5c8e3d['fontSize'],'onChange':_0x4fb997=>_0x368ad9({'fontSize':_0x4fb997??0x12,'fontSizeMode':'custom'})})]})]});}function Ua({message:_0x21501c}){const _0x2b2d50=_0x2353bc;return _0x4dabb7(_0x2b2d50(0x442),{'className':_0x2b2d50(0x43b),'children':_0x21501c});}function Wa({children:_0x34733f,label:_0x3e8896}){const _0x1df5af=_0x2353bc;return _0x2b00c1('div',{'role':'group','aria-':!0x0,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x4dabb7(_0x1df5af(0x3ec),{'children':_0x3e8896}),_0x34733f]});}function Ga(_0x31cab9){const _0x173e08=_0x2353bc;return(_0x31cab9==null?void 0x0:_0x31cab9[_0x173e08(0x393)])===_0x5ee6b5[_0x173e08(0x49c)]&&typeof _0x31cab9[_0x173e08(0x4e8)]=='object'&&_0x31cab9[_0x173e08(0x4e8)]!==null&&_0x173e08(0x4aa)in _0x31cab9[_0x173e08(0x4e8)]&&_0x173e08(0x4d8)in _0x31cab9[_0x173e08(0x4e8)];}function Ka(_0x55f64d){const _0x3410ef=_0x2353bc;switch(_0x55f64d['type']){case _0x342116['PivotChart']:return _0x3410ef(0x350);case _0x342116['TableFilter']:return _0x3410ef(0x396);case _0x342116[_0x3410ef(0x298)]:return'bases-dashboard-ui.dashboard.text';case _0x342116['Image']:return _0x3410ef(0x293);case _0x342116[_0x3410ef(0x36e)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function qa({onDelete:_0x3c29f6,onEdit:_0x31ebb2}){const _0x1a008e=_0x2353bc;let _0x51e3af=_0x39b411(_0x5cd3ee),_0x3c5c62=_0x51e3af['t']('bases-dashboard-ui.dashboard.editWidget'),_0x335e7a=_0x51e3af['t'](_0x1a008e(0x2ef)),_0x15cc73=_0x51e3af['t'](_0x1a008e(0x1b9));return _0x4dabb7(_0x492a1e,{'items':[{'type':'item','children':_0x2b00c1(_0x1a008e(0x3ec),{'className':_0x1a008e(0x49a),'children':[_0x4dabb7(_0x392d1f,{'className':_0x1a008e(0x40e),'aria-hidden':_0x1a008e(0x1d5)}),_0x4dabb7(_0x1a008e(0x3ec),{'children':_0x3c5c62})]}),'onSelect':_0x31ebb2},{'type':_0x1a008e(0x50a)},{'type':_0x1a008e(0x423),'variant':_0x1a008e(0x4d0),'children':_0x2b00c1(_0x1a008e(0x3ec),{'className':_0x1a008e(0x49a),'children':[_0x4dabb7(_0x2d17f6,{'className':_0x1a008e(0x40e),'aria-hidden':_0x1a008e(0x1d5)}),_0x4dabb7(_0x1a008e(0x3ec),{'children':_0x335e7a})]}),'onSelect':_0x3c29f6}],'children':_0x4dabb7(_0x1b3e3b,{'type':'button','size':_0x1a008e(0x432),'variant':_0x1a008e(0x452),'title':_0x15cc73,'aria-label':_0x15cc73,'className':_0x1a008e(0x4fc),'children':_0x4dabb7(_0x27b384,{'className':_0x1a008e(0x40e),'aria-hidden':_0x1a008e(0x1d5)})})});}function Ja({dashboardId:_0x4b4b2,presentation:_0x1388b0=!0x1,unitId:_0x61af0d}){const _0x192218=_0x2353bc;let _0x32f623=_0x39b411(_0x32452d),_0x13916e=_0x39b411(_0x4d763c),_0x338ef3=_0x39b411(_0x5482b5),_0x54eed1=_0x39b411(_0x4074e5),_0x5aff02=_0x39b411(_0x5cd3ee),_0x2f9ad9=_0x39b411(_0x5e40a3),_0x374cfd=_0x39b411(_0x123793),_0x549f43=_0x35f949(null),[_0x24a903,_0x36e3b3]=_0x2be63d(!0x1),[_0x2d653c,_0x1287d3]=_0x2be63d(),[_0x5998ca,_0x4fa890]=_0x2be63d(!0x1),[_0x41df4d,_0x2b88c1]=_0x2be63d(()=>new Map()),_0x6d8894=_0xd8821d((_0x4aab6b,_0x1d86c4)=>{_0x2b88c1(_0x23c583=>{const _0x21bd02=_0x1cf6;let _0x166b33=new Map(_0x23c583);return _0x1d86c4?_0x166b33[_0x21bd02(0x401)](_0x4aab6b,_0x1d86c4):_0x166b33['delete'](_0x4aab6b),_0x166b33;});},[]),_0x2f172f=_0x499abf(()=>_0x2f9ad9[_0x192218(0x2a3)][_0x192218(0x41d)](_0x299cc9(()=>_0x2f9ad9[_0x192218(0x34a)](_0x61af0d,_0x4b4b2))),_0x2f9ad9[_0x192218(0x34a)](_0x61af0d,_0x4b4b2),!0x1,[_0x4b4b2,_0x2f9ad9,_0x61af0d]),_0x2f3771=_0x54eed1[_0x192218(0x37e)](_0x61af0d,_0x51ec78[_0x192218(0x4eb)]),_0x5af263=_0x499abf(()=>_0x374cfd[_0x192218(0x21f)],{'undos':0x0,'redos':0x0},!0x1,[_0x374cfd]),_0x1cac75=gr(_0x61af0d,_0x4b4b2);if(_0x38e78f(()=>{const _0x54eb4d=_0x192218;_0x54eed1[_0x54eb4d(0x3ce)](_0x61af0d),_0x54eed1[_0x54eb4d(0x35f)](_0x61af0d);},[_0x54eed1,_0x61af0d]),_0x38e78f(()=>{const _0x50bfee=_0x192218;let _0x196c2d=_0x549f43[_0x50bfee(0x38f)],_0x446140=_0x196c2d==null?void 0x0:_0x196c2d[_0x50bfee(0x26c)];if(!_0x196c2d||!_0x446140)return;let _0x577dd6=()=>_0x4fa890(_0x446140[_0x50bfee(0x281)]===_0x446140[_0x50bfee(0x22a)]),_0x1b9bbd=_0x35d99e=>{const _0x454197=_0x50bfee;_0x35d99e['key']===_0x454197(0x319)&&!_0x35d99e[_0x454197(0x25a)]&&_0x446140[_0x454197(0x281)]===_0x446140['documentElement']&&_0x446140[_0x454197(0x4bf)]()[_0x454197(0x3d2)](_0x577dd6);};return _0x446140[_0x50bfee(0x1d1)]('fullscreenchange',_0x577dd6),_0x446140['addEventListener']('keydown',_0x1b9bbd),()=>{const _0x4f1dd8=_0x50bfee;_0x446140['removeEventListener'](_0x4f1dd8(0x33d),_0x577dd6),_0x446140[_0x4f1dd8(0x27d)](_0x4f1dd8(0x4d1),_0x1b9bbd);};},[]),!_0x2f172f||!_0x2f3771)return null;let _0x4c0942=_0x3cf6e3=>_0x32f623[_0x192218(0x1ff)](_0x2b3367['id'],{'unitId':_0x61af0d,'dashboardId':_0x4b4b2,'widget':_0x3cf6e3})[_0x192218(0x3d2)](()=>void 0x0),_0x14432d=(_0x2dfddd,_0x2b3604,_0x5251ed)=>{const _0x15836e=_0x192218;let _0x426bdf=Math[_0x15836e(0x2eb)](0x0,..._0x2f172f[_0x15836e(0x362)][_0x15836e(0x3bc)](_0x420380=>{const _0x1c52d8=_0x15836e;var _0x3836d5;let _0x16bf67=(_0x3836d5=_0x2f172f['widgets'][_0x420380])==null?void 0x0:_0x3836d5[_0x1c52d8(0x439)];return _0x16bf67?[_0x16bf67['row']+_0x16bf67[_0x1c52d8(0x4b4)]]:[];})),_0x516f0f=_0x15836e(0x4a9)+_0x325e5d(0x8),_0x20326f={'column':0x0,'row':_0x426bdf,'columnSpan':_0x2b3604,'rowSpan':_0x5251ed};switch(_0x2dfddd[_0x15836e(0x393)]){case _0x342116[_0x15836e(0x3a3)]:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});case _0x342116[_0x15836e(0x296)]:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});case _0x342116['Text']:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});case _0x342116[_0x15836e(0x4ae)]:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});case _0x342116['FormulaShape']:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});}},_0x5e6da4=_0x2f3771['getSnapshot'](),_0x29518a=_0x5e6da4[_0x192218(0x1e5)]['flatMap'](_0x4d3b93=>{const _0x3f2ee4=_0x192218;let _0x47bed7=_0x5e6da4[_0x3f2ee4(0x39c)][_0x4d3b93];if(!_0x47bed7)return[];let _0x4e45c1=_0x47bed7[_0x3f2ee4(0x411)][_0x3f2ee4(0x3bc)](_0x18b868=>{const _0x1b8569=_0x3f2ee4;let _0x181dc8=_0x47bed7['views'][_0x18b868];return no(_0x181dc8)?[{'type':_0x1b8569(0x423),'children':_0x181dc8[_0x1b8569(0x329)],'onSelect':()=>_0x14432d({'type':_0x342116['PivotChart'],'tableId':_0x4d3b93,'pivotViewId':_0x18b868,'chart':{..._0x181dc8[_0x1b8569(0x4e8)][_0x1b8569(0x4d8)]}},0x6,0xa)}]:[];});return[{'type':_0x3f2ee4(0x429),'children':_0x47bed7['name'],'options':[..._0x4e45c1,..._0x4e45c1['length']?[{'type':'separator'}]:[],{'type':_0x3f2ee4(0x423),'children':_0x5aff02['t'](_0x3f2ee4(0x396)),'onSelect':()=>_0x14432d({'type':_0x342116[_0x3f2ee4(0x296)],'tableId':_0x4d3b93,'filter':null},0x6,0x8)}]}];}),_0x4c0e08=[..._0x29518a,..._0x29518a['length']?[{'type':_0x192218(0x50a)}]:[],{'type':'item','children':_0x5aff02['t'](_0x192218(0x45f)),'onSelect':()=>_0x14432d({'type':_0x342116[_0x192218(0x298)],'document':Qa()},0x4,0x6)},{'type':_0x192218(0x423),'children':_0x5aff02['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>$a(_0x13916e)[_0x192218(0x388)](_0x3ce793=>_0x3ce793&&_0x14432d({'type':_0x342116[_0x192218(0x4ae)],'source':_0x3ce793['source'],'sourceType':_0x3ce793[_0x192218(0x4b3)],'alt':_0x3ce793['name'],'displayMode':'cover'},0x4,0x6))},{'type':'item','children':_0x5aff02['t'](_0x192218(0x268)),'onSelect':()=>{const _0x50183=_0x192218;let _0x530941=_0x5e6da4[_0x50183(0x1e5)][_0x50183(0x397)](_0x3ca033=>_0x5e6da4[_0x50183(0x39c)][_0x3ca033]);_0x530941&&_0x14432d({'type':_0x342116['FormulaShape'],'tableId':_0x530941,'shapeType':_0x4387d7[_0x50183(0x3a7)],'shapeData':_0x11d1a1(),'description':_0x5aff02['t'](_0x50183(0x268))},0x4,0x6);}}],_0x5a4756=_0x2d653c?_0x2f172f[_0x192218(0x4e1)][_0x2d653c]:void 0x0,_0x17b497=async()=>{const _0x33d1a0=_0x192218;let _0x5de661=_0x549f43[_0x33d1a0(0x38f)];if(!_0x5de661)return;let _0x14db51=_0x5de661[_0x33d1a0(0x26c)];if(_0x14db51[_0x33d1a0(0x281)]===_0x14db51[_0x33d1a0(0x22a)]){await _0x14db51[_0x33d1a0(0x4bf)]();return;}await _0x14db51[_0x33d1a0(0x22a)][_0x33d1a0(0x3ba)]();},_0x3be869=_0x1388b0||_0x5998ca,_0x289805=_0x1cac75&&!_0x3be869;return _0x2b00c1(_0x192218(0x442),{'ref':_0x549f43,'className':_0x192218(0x1ab)+(_0x5998ca?_0x192218(0x369):'univer-relative\x20univer-z-10')+_0x192218(0x3ae),'children':[!_0x3be869&&_0x2b00c1('header',{'className':_0x192218(0x415),'children':[_0x4dabb7(_0x433eb4,{'className':_0x192218(0x1bd)}),_0x4dabb7('h2',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0x2f172f['name']}),_0x4dabb7(_0x468217,{'target':{'unitId':_0x61af0d,'objectId':_0x275cd2(_0x4b4b2),'objectType':_0x4f7ac1[_0x192218(0x4d9)]},'name':_0x2f172f[_0x192218(0x329)],'commandId':_0x42d2ec['id'],'exists':()=>!!_0x2f9ad9['getDashboard'](_0x61af0d,_0x4b4b2)},_0x61af0d+'/'+_0x4b4b2),_0x4dabb7(_0xf8bfea,{'unitId':_0x61af0d}),_0x4dabb7(_0x1b3e3b,{'type':_0x192218(0x228),'size':_0x192218(0x432),'variant':'text','aria-label':_0x5aff02['t'](_0x192218(0x4ee)),'disabled':!_0x1cac75||_0x5af263[_0x192218(0x1fa)]===0x0,'onClick':()=>_0x32f623[_0x192218(0x1ff)](_0x4170dd['id'])[_0x192218(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x4f90a3,{})}),_0x4dabb7(_0x1b3e3b,{'type':_0x192218(0x228),'size':_0x192218(0x432),'variant':'text','aria-label':_0x5aff02['t'](_0x192218(0x1c8)),'disabled':!_0x1cac75||_0x5af263[_0x192218(0x2ce)]===0x0,'onClick':()=>_0x32f623[_0x192218(0x1ff)](_0x8d3b46['id'])[_0x192218(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x44a42f,{})}),_0x4dabb7(_0x1b3e3b,{'type':'button','size':_0x192218(0x432),'variant':_0x192218(0x452),'aria-label':_0x5aff02['t'](_0x192218(0x288)),'onClick':()=>_0x17b497()[_0x192218(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x54cca2,{})}),_0x4dabb7(_0x492a1e,{'items':_0x4c0e08,'children':_0x2b00c1(_0x1b3e3b,{'variant':_0x192218(0x37f),'disabled':!_0x1cac75,'children':[_0x4dabb7(_0x5155a3,{}),_0x5aff02['t'](_0x192218(0x4b0))]})})]}),_0x2b00c1(_0x192218(0x442),{'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1','children':[_0x4dabb7(_0x192218(0x442),{'className':_0x192218(0x290),'children':_0x4dabb7(la,{'dashboard':_0x2f172f,'dragLabel':_0x5aff02['t'](_0x192218(0x32c)),'editable':_0x289805,'resizeLabel':_0x5aff02['t'](_0x192218(0x398)),'widgetLabel':_0x229786=>_0x5aff02['t'](to(_0x229786[_0x192218(0x393)])),'selectedWidgetId':_0x289805?_0x2d653c:void 0x0,'onSelectWidget':_0x289805?_0x37c04b=>{_0x1287d3(_0x37c04b),_0x37c04b||_0x36e3b3(!0x1);}:void 0x0,'onLayoutsCommit':_0x44eeb7=>{const _0x449b7b=_0x192218;let _0xd6b521={..._0x2f172f[_0x449b7b(0x4e1)]};_0x44eeb7[_0x449b7b(0x3c0)]((_0x3d7e54,_0x4a2a62)=>{let _0x3cf33d=_0xd6b521[_0x4a2a62];_0x3cf33d&&(_0xd6b521[_0x4a2a62]={..._0x3cf33d,'layout':_0x3d7e54});}),_0x32f623[_0x449b7b(0x1ff)](_0x5cbeb4['id'],{'unitId':_0x61af0d,'dashboard':{..._0x2f172f,'widgets':_0xd6b521}})[_0x449b7b(0x3d2)](()=>void 0x0);},'renderWidget':_0x23d73c=>_0x4dabb7(Ya,{'base':_0x2f3771,'dashboard':_0x2f172f,'unitId':_0x61af0d,'widget':_0x23d73c,'onChange':_0x4c0942,'onChartRuntimeChange':_0x6d8894}),'renderWidgetActions':_0x57046d=>_0x4dabb7(qa,{'onEdit':()=>{_0x1287d3(_0x57046d['id']),_0x36e3b3(!0x0);},'onDelete':()=>{const _0x5cb3a8=_0x192218;_0x2d653c===_0x57046d['id']&&(_0x1287d3(void 0x0),_0x36e3b3(!0x1)),_0x32f623[_0x5cb3a8(0x1ff)](_0x20648d['id'],{'unitId':_0x61af0d,'dashboardId':_0x4b4b2,'widgetId':_0x57046d['id']})[_0x5cb3a8(0x3d2)](()=>void 0x0);}})})}),_0x289805&&_0x24a903&&_0x5a4756&&_0x4dabb7(za,{'base':_0x2f3771,'chartRuntime':_0x41df4d['get'](_0x5a4756['id']),'unitId':_0x61af0d,'widget':_0x5a4756,'onChange':_0x4c0942,'onClose':()=>_0x36e3b3(!0x1),'onSelectBackgroundImage':()=>eo(_0x338ef3),'onSelectImage':()=>$a(_0x13916e)})]})]});}function Ya({base:_0x2aebc1,dashboard:_0xb70bd7,onChange:_0x99c138,onChartRuntimeChange:_0x204ec8,unitId:_0x4782c6,widget:_0x56588c}){const _0x42fc9c=_0x2353bc;let _0x23d631=_0x56a185(()=>_0xb70bd7[_0x42fc9c(0x362)][_0x42fc9c(0x3bc)](_0x12960f=>{const _0x38f07f=_0x42fc9c;let _0x4db1c4=_0xb70bd7[_0x38f07f(0x4e1)][_0x12960f];return(_0x4db1c4==null?void 0x0:_0x4db1c4[_0x38f07f(0x393)])===_0x342116['TableFilter']&&_0x4db1c4[_0x38f07f(0x475)]===('tableId'in _0x56588c?_0x56588c[_0x38f07f(0x475)]:'')&&_0x4db1c4[_0x38f07f(0x1b3)]?[_0x4db1c4[_0x38f07f(0x1b3)]]:[];}),[_0xb70bd7,_0x56588c]);switch(_0x56588c[_0x42fc9c(0x393)]){case _0x342116['PivotChart']:return _0x4dabb7(Lr,{'filters':_0x23d631,'unitId':_0x4782c6,'widget':_0x56588c,'onRuntimeChange':_0x204ec8});case _0x342116['TableFilter']:return _0x4dabb7(wa,{'fields':Xa(_0x2aebc1,_0x56588c[_0x42fc9c(0x475)]),'filter':_0x56588c['filter'],'onChange':_0x3bbb8e=>_0x99c138({..._0x56588c,'filter':_0x3bbb8e})['catch'](()=>void 0x0)});case _0x342116[_0x42fc9c(0x298)]:return _0x4dabb7(Ur,{'widget':_0x56588c});case _0x342116[_0x42fc9c(0x4ae)]:return _0x4dabb7(Za,{'widget':_0x56588c});case _0x342116[_0x42fc9c(0x36e)]:return _0x4dabb7(Dr,{'dashboardId':_0xb70bd7['id'],'unitId':_0x4782c6,'widget':_0x56588c});}}function Xa(_0x484a53,_0x2a7776){const _0x38a23e=_0x2353bc;let _0x196454=_0x484a53['getSnapshot']()[_0x38a23e(0x39c)][_0x2a7776],_0x27b8ce=_0x196454==null?void 0x0:_0x196454['viewOrder'][_0x38a23e(0x397)](_0x23f3c5=>_0x196454[_0x38a23e(0x451)][_0x23f3c5]),_0x3b65ea=_0x27b8ce?_0x196454==null?void 0x0:_0x196454[_0x38a23e(0x451)][_0x27b8ce]:void 0x0;return _0x196454&&_0x3b65ea?_0x5249f3(_0x196454,_0x3b65ea):[];}function Za({widget:_0x5bfa53}){const _0x13a110=_0x2353bc;let _0x19aef0=_0x39b411(_0x4d763c),[_0x431066,_0x256d8d]=_0x2be63d(_0x5bfa53['sourceType']===_0x26a785[_0x13a110(0x43f)]?'':_0x5bfa53[_0x13a110(0x24c)]);return _0x38e78f(()=>{const _0x2c4d59=_0x13a110;let _0x1f02b3=!0x0;return _0x19aef0[_0x2c4d59(0x4c6)](_0x5bfa53[_0x2c4d59(0x24c)],_0x5bfa53[_0x2c4d59(0x4b3)])[_0x2c4d59(0x388)](_0x44d972=>{_0x1f02b3&&_0x256d8d(_0x44d972);})[_0x2c4d59(0x3d2)](()=>void 0x0),()=>{_0x1f02b3=!0x1;};},[_0x19aef0,_0x5bfa53[_0x13a110(0x24c)],_0x5bfa53[_0x13a110(0x4b3)]]),_0x431066?_0x4dabb7(_0x13a110(0x442),{'role':_0x5bfa53['alt']?_0x13a110(0x1ed):void 0x0,'aria-label':_0x5bfa53[_0x13a110(0x3d8)]||void 0x0,'data-dashboard-image':_0x5bfa53['id'],'className':_0x13a110(0x203),'style':vr(_0x431066,_0x5bfa53[_0x13a110(0x4a6)])}):null;}function Qa(){const _0x591636=_0x2353bc;let _0x53d73c=_0x112de2(new Set());return{'id':_0x591636(0x3de)+_0x325e5d(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x53d73c}]},'documentStyle':{}};}function $a(_0xa8aecb){return new Promise(_0x4078c4=>{const _0x464b05=_0x1cf6;let _0x3fd98e=document[_0x464b05(0x3d6)](_0x464b05(0x4d3));_0x3fd98e['type']='file',_0x3fd98e[_0x464b05(0x461)]=_0x464b05(0x469),_0x3fd98e[_0x464b05(0x1d1)]('change',()=>{const _0x59c1a8=_0x464b05;var _0x40fd04;let _0xdcf2a=(_0x40fd04=_0x3fd98e[_0x59c1a8(0x438)])==null?void 0x0:_0x40fd04[0x0];if(!_0xdcf2a){_0x4078c4(null);return;}_0xa8aecb[_0x59c1a8(0x504)](_0xdcf2a)[_0x59c1a8(0x388)](_0x40b842=>{const _0x1a4b18=_0x59c1a8;if(!_0x40b842[_0x1a4b18(0x24c)]||_0x40b842['sourceType']===void 0x0){_0x4078c4(null);return;}_0x4078c4({'name':_0x40b842[_0x1a4b18(0x329)],'source':_0x40b842['source'],'sourceType':_0x40b842[_0x1a4b18(0x4b3)]});})[_0x59c1a8(0x3d2)](()=>_0x4078c4(null));},{'once':!0x0}),_0x3fd98e[_0x464b05(0x3ab)]();});}function eo(_0x363cef){return new Promise(_0x289258=>{const _0x58dcdd=_0x1cf6;let _0x53b1d1=document[_0x58dcdd(0x3d6)](_0x58dcdd(0x4d3));_0x53b1d1[_0x58dcdd(0x393)]='file',_0x53b1d1[_0x58dcdd(0x461)]=_0x58dcdd(0x469),_0x53b1d1[_0x58dcdd(0x1d1)](_0x58dcdd(0x48a),()=>{const _0x309562=_0x58dcdd;var _0x50298f;let _0x314ff0=(_0x50298f=_0x53b1d1[_0x309562(0x438)])==null?void 0x0:_0x50298f[0x0];if(!_0x314ff0){_0x289258(null);return;}_0x363cef[_0x309562(0x3dc)](_0x314ff0)['then'](_0x57b342=>{const _0x50ff60=_0x309562;if(!(_0x57b342!=null&&_0x57b342[_0x50ff60(0x24c)])){_0x289258(null);return;}if(_0x57b342[_0x50ff60(0x308)]){let _0x16604c=new Image();_0x16604c['src']=_0x57b342[_0x50ff60(0x308)],_0x363cef['addImageSourceCache'](_0x57b342['source'],_0x57b342['imageSourceType'],_0x16604c);}_0x289258({'source':_0x57b342[_0x50ff60(0x24c)],'sourceType':_0x57b342[_0x50ff60(0x23d)]});})[_0x309562(0x3d2)](()=>_0x289258(null));},{'once':!0x0}),_0x53b1d1['click']();});}function to(_0x5c1f3a){const _0x2fe032=_0x2353bc;switch(_0x5c1f3a){case _0x342116[_0x2fe032(0x3a3)]:return _0x2fe032(0x350);case _0x342116[_0x2fe032(0x296)]:return _0x2fe032(0x396);case _0x342116['Text']:return'bases-dashboard-ui.dashboard.text';case _0x342116[_0x2fe032(0x4ae)]:return _0x2fe032(0x293);case _0x342116[_0x2fe032(0x36e)]:return _0x2fe032(0x268);}}function no(_0x4fe6a8){const _0xa92f1b=_0x2353bc;return(_0x4fe6a8==null?void 0x0:_0x4fe6a8[_0xa92f1b(0x393)])===_0x5ee6b5[_0xa92f1b(0x49c)]&&typeof _0x4fe6a8[_0xa92f1b(0x4e8)]=='object'&&_0x4fe6a8[_0xa92f1b(0x4e8)]!==null&&_0xa92f1b(0x4aa)in _0x4fe6a8['config']&&_0xa92f1b(0x4d8)in _0x4fe6a8['config'];}const ro=[{'area':_0x4c815c[_0x2353bc(0x3b4)],'key':_0x2353bc(0x2e1),'label':'bases-dashboard-ui.pivot.filters'},{'area':_0x4c815c['Column'],'key':'columnFields','label':_0x2353bc(0x318)},{'area':_0x4c815c[_0x2353bc(0x456)],'key':'rowFields','label':'bases-dashboard-ui.pivot.rows'},{'area':_0x4c815c['Value'],'key':_0x2353bc(0x1f9),'label':_0x2353bc(0x326)}],io=[{'value':_0x282c8a[_0x2353bc(0x2bf)],'localeKey':_0x2353bc(0x3b2)},{'value':_0x282c8a[_0x2353bc(0x349)],'localeKey':_0x2353bc(0x29c)},{'value':_0x282c8a[_0x2353bc(0x3c8)],'localeKey':_0x2353bc(0x48c)},{'value':_0x282c8a[_0x2353bc(0x4f0)],'localeKey':_0x2353bc(0x3e4)},{'value':_0x282c8a[_0x2353bc(0x2eb)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':_0x282c8a['min'],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x282c8a[_0x2353bc(0x2d6)],'localeKey':_0x2353bc(0x44c)},{'value':_0x282c8a[_0x2353bc(0x2a7)],'localeKey':'bases-dashboard-ui.pivot.stdDev'},{'value':_0x282c8a[_0x2353bc(0x1c2)],'localeKey':_0x2353bc(0x360)},{'value':_0x282c8a[_0x2353bc(0x218)],'localeKey':_0x2353bc(0x2b9)},{'value':_0x282c8a[_0x2353bc(0x22c)],'localeKey':_0x2353bc(0x3e0)}];function ao(_0x196a6b){const _0x591c84=_0x2353bc;let {config:_0x513f87,onChange:_0x597b18,table:_0x3bc7f4}=_0x196a6b,_0x735190=_0x39b411(_0x5cd3ee),[_0x225d2b,_0x1f1cd4]=_0x2be63d('fields'),[_0x2d77e2,_0x4f81dc]=_0x2be63d(''),[_0x48e8d4,_0x2fe53d]=_0x2be63d(null),[_0x388552,_0x1c30ed]=_0x2be63d(null),[_0x4cd760,_0x44bf09]=_0x2be63d(null),[_0x58a3f4,_0x2de9ce]=_0x2be63d(null),_0xb6f816=_0x35f949(null),_0x57add6=_0x56a185(()=>_0x3bc7f4[_0x591c84(0x457)][_0x591c84(0x3bc)](_0x1c7e00=>{const _0x5d3b04=_0x591c84;let _0x32e41a=_0x3bc7f4[_0x5d3b04(0x273)][_0x1c7e00];return _0x32e41a&&_0x32e41a[_0x5d3b04(0x4de)]!==!0x0&&_0x32e41a[_0x5d3b04(0x393)]!==_0x557eea['RecordId']?[_0x32e41a]:[];})['filter'](_0x4f7368=>_0x4f7368[_0x591c84(0x329)][_0x591c84(0x49d)]()['includes'](_0x2d77e2[_0x591c84(0x3ee)]()[_0x591c84(0x49d)]())),[_0x2d77e2,_0x3bc7f4]),_0x1fed30=_0x17ea25=>{const _0x14e4ec=_0x591c84;let _0x3ff40f=_0x1c8584(_0x3bc7f4,_0x513f87[_0x14e4ec(0x4aa)]);try{_0x17ea25(_0x3ff40f),_0x597b18({'pivot':_0x3ff40f[_0x14e4ec(0x2f5)]()});}finally{_0x3ff40f[_0x14e4ec(0x2d9)]();}},_0x1b0a85=(_0x7b5351,_0x5cb9cb)=>{_0x48e8d4&&(_0x1fed30(_0x4ce258=>{const _0x4b1d81=_0x1cf6;if(_0x48e8d4[_0x4b1d81(0x29e)]==='field'){let _0x17cbb6=_0x4ce258[_0x4b1d81(0x316)](_0x48e8d4['id']),_0x332399=_0x17cbb6[_0x4b1d81(0x269)]===_0x7b5351&&_0x17cbb6[_0x4b1d81(0x32a)]<_0x5cb9cb?_0x5cb9cb-0x1:_0x5cb9cb;_0x4ce258[_0x4b1d81(0x1b0)](_0x48e8d4['id'],_0x7b5351,_0x332399);return;}mo(_0x4ce258,_0x48e8d4['id'],_0x7b5351,_0x5cb9cb);}),_0x2fe53d(null),_0x1c30ed(null));};return _0x2b00c1(_0x591c84(0x442),{'className':_0x591c84(0x301),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x735190['t'](_0x591c84(0x4a7)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x735190['t'](_0x591c84(0x2a5)),'panelId':'base-pivot-fields','value':_0x591c84(0x273)},{'label':_0x735190['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x591c84(0x27b),'value':'options'}],'value':_0x225d2b,'onChange':_0x1f1cd4}),_0x4dabb7(_0x591c84(0x442),{'ref':_0xb6f816,'className':_0x52fed8(_0x591c84(0x2fb),_0x2a22a5),'onDragOver':_0xa3e2f5=>{const _0x2ff0c8=_0x591c84;let _0x4619b9=_0xb6f816['current'];if(!_0x4619b9)return;let _0x2c1fc2=_0x4619b9[_0x2ff0c8(0x4db)]();_0xa3e2f5[_0x2ff0c8(0x408)]<_0x2c1fc2['top']+0x30?_0x4619b9['scrollTop']-=0x10:_0xa3e2f5[_0x2ff0c8(0x408)]>_0x2c1fc2[_0x2ff0c8(0x2d0)]-0x30&&(_0x4619b9['scrollTop']+=0x10);},'children':_0x225d2b===_0x591c84(0x320)?_0x4dabb7(po,{'config':_0x513f87,'commit':_0x1fed30}):_0x2b00c1(_0x591c84(0x442),{'className':_0x591c84(0x4f1),'children':[_0x2b00c1('div',{'children':[_0x4dabb7(_0x591c84(0x442),{'className':_0x591c84(0x47c),'children':_0x735190['t'](_0x591c84(0x4a8))}),_0x4dabb7(_0x2c53ee,{'allowClear':!0x0,'slot':_0x4dabb7(_0x51aac6,{}),'value':_0x2d77e2,'placeholder':_0x735190['t'](_0x591c84(0x35a)),'onChange':_0x4f81dc}),_0x4dabb7(_0x591c84(0x442),{'className':_0x591c84(0x351),'children':_0x57add6['map'](_0x54de93=>_0x4dabb7(oo,{'config':_0x513f87,'field':_0x54de93,'onAdd':_0xa244c8=>_0x1fed30(_0x207da4=>mo(_0x207da4,_0x54de93['id'],_0xa244c8,_0x207da4[_0x591c84(0x38a)](_0xa244c8))),'onCheckedChange':_0x12e012=>_0x1fed30(_0x1e84ce=>{const _0x2a082a=_0x591c84;let _0xf83847=_0x1e84ce['getTableFieldsByDataFieldId'](_0x54de93['id']);if(!_0x12e012){_0xf83847[_0x2a082a(0x3c0)](_0xc27b3a=>_0x1e84ce['removeField'](_0xc27b3a[_0x2a082a(0x1ae)]()));return;}if(_0xf83847[_0x2a082a(0x4da)]===0x0){let _0x5f188a=go(_0x54de93)?_0x4c815c[_0x2a082a(0x47a)]:_0x4c815c['Row'];_0x1e84ce[_0x2a082a(0x3fa)](_0x54de93['id'],_0x5f188a);}}),'onDragStart':()=>_0x2fe53d({'kind':'source','id':_0x54de93['id']})},_0x54de93['id']))})]}),_0x4dabb7('div',{'className':_0x591c84(0x478),'children':ro[_0x591c84(0x3ff)](_0x17d04b=>_0x4dabb7(co,{'area':_0x17d04b[_0x591c84(0x269)],'dropTarget':_0x388552,'fields':_0x513f87[_0x591c84(0x4aa)][_0x17d04b['key']],'label':_0x735190['t'](_0x17d04b['label']),'snapshot':_0x513f87[_0x591c84(0x4aa)],'onDragEnd':()=>{_0x2fe53d(null),_0x1c30ed(null);},'onDragStart':_0x5aa0ec=>_0x2fe53d({'kind':_0x591c84(0x506),'id':_0x5aa0ec,'area':_0x17d04b[_0x591c84(0x269)]}),'onDragOver':_0x3a04ac=>_0x1c30ed({'area':_0x17d04b[_0x591c84(0x269)],'index':_0x3a04ac}),'onDrop':_0x2ffcdf=>_0x1b0a85(_0x17d04b[_0x591c84(0x269)],_0x2ffcdf),'onFilter':_0x44bf09,'onRemove':_0x59cfa5=>_0x1fed30(_0x3318b5=>_0x3318b5['removeField'](_0x59cfa5)),'onSettings':_0x2de9ce},_0x17d04b[_0x591c84(0x269)]))}),_0x4cd760&&_0x4dabb7(uo,{'fieldId':_0x4cd760,'snapshot':_0x513f87[_0x591c84(0x4aa)],'table':_0x3bc7f4,'onCancel':()=>_0x44bf09(null),'onCommit':(_0x395414,_0x8a8a2)=>{_0x1fed30(_0x3c84ea=>{const _0xd2ebd=_0x1cf6;let _0x463390=_0x3c84ea['getDataFieldByTableId'](_0x4cd760),_0x595004=(_0x463390==null?void 0x0:_0x463390[_0xd2ebd(0x41c)])??[];_0x3c84ea[_0xd2ebd(0x4c2)](_0x4cd760,{'type':_0x1b814d[_0xd2ebd(0x468)],'list':_0x395414,'isAll':_0x395414['length']===_0x595004[_0xd2ebd(0x4da)]}),_0x3c84ea[_0xd2ebd(0x263)](_0x4cd760,_0x8a8a2===void 0x0?void 0x0:{'type':_0x8a8a2});}),_0x44bf09(null);}},_0x4cd760),_0x58a3f4&&_0x4dabb7(fo,{'field':_0x513f87[_0x591c84(0x4aa)][_0x591c84(0x1c7)][_0x58a3f4],'onCancel':()=>_0x2de9ce(null),'onCommit':(_0x27c6f4,_0xb267cd,_0x4f6348)=>{_0x1fed30(_0x5215f8=>{const _0x3ec3f1=_0x1cf6;_0x5215f8[_0x3ec3f1(0x1e8)](_0x58a3f4,_0x27c6f4),_0x5215f8[_0x3ec3f1(0x467)](_0x58a3f4,_0xb267cd),_0x5215f8[_0x3ec3f1(0x2de)](_0x58a3f4,_0x4f6348||void 0x0);}),_0x2de9ce(null);}},_0x58a3f4)]})})]});}function oo(_0x2d6ad0){const _0x181f56=_0x2353bc;let {config:_0x268b9c,field:_0x4cf084,onAdd:_0x5281f8,onCheckedChange:_0x16ce41,onDragStart:_0x2b6a1d}=_0x2d6ad0,_0x56a454=_0x39b411(_0x5cd3ee),_0x3d625c=[...Object[_0x181f56(0x4ad)](_0x268b9c[_0x181f56(0x4aa)]['dimension']),...Object[_0x181f56(0x4ad)](_0x268b9c['pivot'][_0x181f56(0x1c7)])]['some'](_0x2759ba=>_0x2759ba['dataFieldId']===_0x4cf084['id']),_0x5cede8=ro[_0x181f56(0x3ff)](_0x446f93=>({'type':_0x181f56(0x423),'children':_0x56a454['t'](_o(_0x446f93[_0x181f56(0x269)])),'onSelect':()=>_0x5281f8(_0x446f93[_0x181f56(0x269)])}));return _0x2b00c1(_0x181f56(0x442),{'draggable':!0x0,'className':_0x181f56(0x473),'onDragStart':_0x2b6a1d,'children':[_0x4dabb7(_0x1487d8,{'className':_0x181f56(0x28e)}),_0x4dabb7(_0x3cc061,{'checked':_0x3d625c,'onChange':_0x581d79=>_0x16ce41(!!_0x581d79)}),_0x4dabb7(so,{'field':_0x4cf084}),_0x4dabb7(_0x181f56(0x3ec),{'className':_0x181f56(0x3bf),'children':_0x4cf084['name']}),_0x4dabb7(_0x492a1e,{'align':_0x181f56(0x236),'items':_0x5cede8,'children':_0x4dabb7('span',{'className':'univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','children':_0x4dabb7(_0xf77a3b,{})})})]});}function so({field:_0x338bc3}){const _0x576b39=_0x2353bc;return go(_0x338bc3)?_0x4dabb7(_0x5a5ded,{'className':'univer-text-gray-400'}):_0x338bc3[_0x576b39(0x393)]===_0x557eea[_0x576b39(0x4e7)]||_0x338bc3[_0x576b39(0x393)]===_0x557eea[_0x576b39(0x2fa)]||_0x338bc3[_0x576b39(0x393)]===_0x557eea[_0x576b39(0x4a2)]?_0x4dabb7(_0x951fbe,{'className':_0x576b39(0x28e)}):_0x4dabb7(_0x264f2e,{'className':_0x576b39(0x28e)});}function co(_0x440d97){const _0x1d52f4=_0x2353bc;let {area:_0x1cd686,dropTarget:_0x38b906,fields:_0x551959,label:_0x1e1422,snapshot:_0x1a0bcd}=_0x440d97,_0x18c69b=_0x39b411(_0x5cd3ee);return _0x2b00c1(_0x1d52f4(0x482),{'className':_0x52fed8(_0x1d52f4(0x458),_0x1298ac),'onDragOver':_0x111f63=>{const _0x4f39e5=_0x1d52f4;_0x111f63['preventDefault'](),_0x440d97['onDragOver'](_0x551959[_0x4f39e5(0x4da)]);},'onDrop':_0x6e9980=>{const _0x1e8e7b=_0x1d52f4;_0x6e9980[_0x1e8e7b(0x3ca)](),_0x440d97[_0x1e8e7b(0x20c)]((_0x38b906==null?void 0x0:_0x38b906[_0x1e8e7b(0x269)])===_0x1cd686?_0x38b906[_0x1e8e7b(0x32a)]:_0x551959[_0x1e8e7b(0x4da)]);},'children':[_0x4dabb7(_0x1d52f4(0x442),{'className':_0x1d52f4(0x356),'children':_0x1e1422}),_0x2b00c1(_0x1d52f4(0x442),{'className':_0x1d52f4(0x378),'children':[_0x551959['map']((_0x3f4b06,_0x4e9905)=>{const _0x4376dc=_0x1d52f4;let _0x586f72=_0x1a0bcd[_0x4376dc(0x46a)][_0x3f4b06]??_0x1a0bcd[_0x4376dc(0x1c7)][_0x3f4b06];if(!_0x586f72)return null;let _0x3dfd09=(_0x38b906==null?void 0x0:_0x38b906[_0x4376dc(0x269)])===_0x1cd686&&_0x38b906[_0x4376dc(0x32a)]===_0x4e9905;return _0x2b00c1(_0x4376dc(0x442),{'onDragOver':_0x38c344=>{const _0x5e6c91=_0x4376dc;_0x38c344[_0x5e6c91(0x3ca)](),_0x38c344['stopPropagation']();let _0x485e80=_0x38c344['currentTarget'][_0x5e6c91(0x4db)]();_0x440d97[_0x5e6c91(0x4cb)](_0x4e9905+ +(_0x38c344['clientY']>_0x485e80[_0x5e6c91(0x45e)]+_0x485e80['height']/0x2));},'onDrop':_0x4fd0cf=>{const _0xc24946=_0x4376dc;_0x4fd0cf[_0xc24946(0x3ca)](),_0x4fd0cf['stopPropagation'](),_0x440d97['onDrop']((_0x38b906==null?void 0x0:_0x38b906[_0xc24946(0x269)])===_0x1cd686?_0x38b906[_0xc24946(0x32a)]:_0x4e9905);},'children':[_0x3dfd09&&_0x4dabb7(_0x4376dc(0x442),{'className':_0x4376dc(0x278)}),_0x4dabb7(lo,{'area':_0x1cd686,'field':_0x586f72,'onDragEnd':_0x440d97['onDragEnd'],'onDragStart':()=>_0x440d97[_0x4376dc(0x38d)](_0x3f4b06),'onFilter':()=>_0x440d97[_0x4376dc(0x49e)](_0x3f4b06),'onRemove':()=>_0x440d97[_0x4376dc(0x287)](_0x3f4b06),'onSettings':()=>_0x440d97[_0x4376dc(0x373)](_0x3f4b06)})]},_0x3f4b06);}),(_0x38b906==null?void 0x0:_0x38b906['area'])===_0x1cd686&&_0x38b906[_0x1d52f4(0x32a)]===_0x551959[_0x1d52f4(0x4da)]&&_0x4dabb7('div',{'className':_0x1d52f4(0x278)}),_0x551959[_0x1d52f4(0x4da)]===0x0&&_0x4dabb7(_0x1d52f4(0x442),{'className':_0x1d52f4(0x279),'children':_0x18c69b['t'](_0x1d52f4(0x29a))})]})]});}function lo(_0x35dc66){const _0x5d9ee5=_0x2353bc;let _0x15a9b6=_0x39b411(_0x5cd3ee),_0x5a265e=_0x35dc66['area']===_0x4c815c[_0x5d9ee5(0x47a)],_0x55199a=[{'type':_0x5d9ee5(0x423),'children':_0x15a9b6['t'](_0x5d9ee5(0x404)),'onSelect':_0x35dc66[_0x5d9ee5(0x287)]},{'type':'item','children':_0x15a9b6['t'](_0x5a265e?'bases-dashboard-ui.pivot.fieldSettings':_0x5d9ee5(0x3a1)),'onSelect':_0x5a265e?_0x35dc66[_0x5d9ee5(0x373)]:_0x35dc66[_0x5d9ee5(0x49e)]}];return _0x2b00c1('div',{'draggable':!0x0,'className':'univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','onDragEnd':_0x35dc66[_0x5d9ee5(0x31c)],'onDragStart':_0x35dc66[_0x5d9ee5(0x38d)],'children':[_0x4dabb7(_0x1487d8,{'className':_0x5d9ee5(0x28e)}),_0x4dabb7(_0x56b693,{'title':_0x35dc66[_0x5d9ee5(0x506)][_0x5d9ee5(0x2a9)],'children':_0x4dabb7(_0x5d9ee5(0x3ec),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x35dc66[_0x5d9ee5(0x506)][_0x5d9ee5(0x2a9)]})}),_0x4dabb7(_0x492a1e,{'align':_0x5d9ee5(0x236),'items':_0x55199a,'children':_0x4dabb7(_0x5d9ee5(0x3ec),{'className':_0x5d9ee5(0x3bb),'children':_0x4dabb7(_0xf77a3b,{})})})]});}function uo(_0x249734){const _0x9c3e57=_0x2353bc;var _0x52c4de,_0x24330d;let _0x374880=_0x39b411(_0x5cd3ee),{format:_0x538cba,items:_0x10473d,itemTypes:_0x5927e3}=_0x56a185(()=>{const _0x5c64a4=_0x1cf6;let _0x183e12=_0x1c8584(_0x249734[_0x5c64a4(0x4bb)],_0x249734[_0x5c64a4(0x1d0)]);try{let _0x10a588=_0x183e12[_0x5c64a4(0x3b7)](_0x249734[_0x5c64a4(0x43d)]);return{'format':_0x10a588==null?void 0x0:_0x10a588[_0x5c64a4(0x347)],'items':[...(_0x10a588==null?void 0x0:_0x10a588[_0x5c64a4(0x41c)])??[]],'itemTypes':[...(_0x10a588==null?void 0x0:_0x10a588[_0x5c64a4(0x4ed)])??[]]};}finally{_0x183e12[_0x5c64a4(0x2d9)]();}},[_0x249734[_0x9c3e57(0x43d)],_0x249734[_0x9c3e57(0x1d0)],_0x249734[_0x9c3e57(0x4bb)]]),_0x3f0462=(_0x52c4de=_0x249734[_0x9c3e57(0x1d0)][_0x9c3e57(0x46a)][_0x249734['fieldId']])==null?void 0x0:_0x52c4de['filterInfo'],[_0x4283f6,_0x5f2a54]=_0x2be63d((_0x3f0462==null?void 0x0:_0x3f0462[_0x9c3e57(0x393)])===_0x1b814d[_0x9c3e57(0x468)]?_0x3f0462[_0x9c3e57(0x4ea)]:_0x10473d),[_0x2068dc,_0x1e3648]=_0x2be63d((_0x24330d=_0x249734['snapshot'][_0x9c3e57(0x46a)][_0x249734[_0x9c3e57(0x43d)]])==null||(_0x24330d=_0x24330d[_0x9c3e57(0x1e0)])==null?void 0x0:_0x24330d[_0x9c3e57(0x393)]),_0x58b9e3=_0x4283f6[_0x9c3e57(0x4da)]===_0x10473d[_0x9c3e57(0x4da)];return _0x2b00c1(_0x9c3e57(0x482),{'className':_0x52fed8(_0x9c3e57(0x3f6),_0x1298ac),'children':[_0x4dabb7('div',{'className':_0x9c3e57(0x306),'children':_0x374880['t'](_0x9c3e57(0x3a1))}),_0x2b00c1(_0x9c3e57(0x442),{'className':_0x9c3e57(0x414),'children':[_0x2b00c1(_0x1b3e3b,{'className':_0x9c3e57(0x342),'variant':_0x2068dc===_0x428fd4['ascending']?'primary':_0x9c3e57(0x431),'onClick':()=>_0x1e3648(_0x428fd4[_0x9c3e57(0x21b)]),'children':[_0x4dabb7(_0x4c6d55,{}),_0x374880['t'](_0x9c3e57(0x43a))]}),_0x2b00c1(_0x1b3e3b,{'className':_0x9c3e57(0x342),'variant':_0x2068dc===_0x428fd4[_0x9c3e57(0x229)]?'primary':'default','onClick':()=>_0x1e3648(_0x428fd4['descending']),'children':[_0x4dabb7(_0x59e3b9,{}),_0x374880['t'](_0x9c3e57(0x2b2))]})]}),_0x2b00c1('div',{'className':_0x9c3e57(0x302),'children':[_0x2b00c1(_0x9c3e57(0x3b0),{'className':_0x9c3e57(0x334),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x58b9e3,'indeterminate':_0x4283f6[_0x9c3e57(0x4da)]>0x0&&!_0x58b9e3,'onChange':()=>_0x5f2a54(_0x58b9e3?[]:_0x10473d)}),_0x374880['t'](_0x9c3e57(0x368))]}),_0x10473d[_0x9c3e57(0x3ff)]((_0x32cb90,_0x511a22)=>_0x2b00c1(_0x9c3e57(0x3b0),{'className':_0x9c3e57(0x334),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x4283f6['includes'](_0x32cb90),'onChange':()=>_0x5f2a54(_0x319320=>_0x319320['includes'](_0x32cb90)?_0x319320[_0x9c3e57(0x1b3)](_0x10accf=>_0x10accf!==_0x32cb90):[..._0x319320,_0x32cb90])}),_0x4dabb7('span',{'className':_0x9c3e57(0x226),'children':ho(_0x32cb90,_0x5927e3[_0x511a22],_0x538cba,_0x374880['t'](_0x9c3e57(0x2a2)))})]},_0x32cb90))]}),_0x2b00c1(_0x9c3e57(0x442),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[_0x4dabb7(_0x1b3e3b,{'variant':_0x9c3e57(0x31a),'onClick':()=>_0x249734[_0x9c3e57(0x434)](_0x10473d,_0x2068dc),'children':_0x374880['t'](_0x9c3e57(0x2d3))}),_0x2b00c1(_0x9c3e57(0x442),{'className':_0x9c3e57(0x4cf),'children':[_0x4dabb7(_0x1b3e3b,{'onClick':_0x249734['onCancel'],'children':_0x374880['t']('bases-dashboard-ui.pivot.cancel')}),_0x4dabb7(_0x1b3e3b,{'variant':_0x9c3e57(0x37f),'disabled':_0x4283f6[_0x9c3e57(0x4da)]===0x0,'onClick':()=>_0x249734[_0x9c3e57(0x434)](_0x4283f6,_0x2068dc),'children':_0x374880['t'](_0x9c3e57(0x325))})]})]})]});}function fo(_0x45cdce){const _0x375d86=_0x2353bc;var _0x3e6696,_0x54fc46,_0x46a65d;let _0x4e4fb7=_0x39b411(_0x5cd3ee),[_0x2d524f,_0x1b2cca]=_0x2be63d(((_0x3e6696=_0x45cdce[_0x375d86(0x506)])==null?void 0x0:_0x3e6696['displayName'])??''),[_0x3fc751,_0x53c046]=_0x2be63d(((_0x54fc46=_0x45cdce[_0x375d86(0x506)])==null?void 0x0:_0x54fc46[_0x375d86(0x2cc)])??_0x282c8a[_0x375d86(0x2bf)]),[_0x46562e,_0x394a78]=_0x2be63d(((_0x46a65d=_0x45cdce[_0x375d86(0x506)])==null?void 0x0:_0x46a65d['format'])??'');return _0x45cdce['field']?_0x2b00c1(_0x375d86(0x482),{'className':_0x52fed8(_0x375d86(0x50c),_0x1298ac),'children':[_0x4dabb7(_0x375d86(0x442),{'className':_0x375d86(0x441),'children':_0x4e4fb7['t'](_0x375d86(0x2c7))}),_0x2b00c1(_0x375d86(0x3b0),{'className':_0x375d86(0x4a3),'children':[_0x4e4fb7['t'](_0x375d86(0x1c9)),_0x4dabb7(_0x2c53ee,{'value':_0x2d524f,'onChange':_0x1b2cca})]}),_0x2b00c1(_0x375d86(0x3b0),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x4e4fb7['t'](_0x375d86(0x2c0)),_0x4dabb7(_0xce6b1b,{'value':String(_0x3fc751),'options':io[_0x375d86(0x3ff)](_0xb70e3f=>({'value':String(_0xb70e3f['value']),'label':_0x4e4fb7['t'](_0xb70e3f['localeKey'])})),'onChange':_0x2db5be=>{const _0x4c93c3=_0x375d86;let _0x5db262=io['find'](_0x5191f5=>String(_0x5191f5['value'])===_0x2db5be);_0x5db262&&_0x53c046(_0x5db262[_0x4c93c3(0x284)]);}})]}),_0x2b00c1('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x4e4fb7['t'](_0x375d86(0x3e8)),_0x4dabb7(_0x2c53ee,{'value':_0x46562e,'onChange':_0x394a78})]}),_0x2b00c1('div',{'className':_0x375d86(0x4f9),'children':[_0x4dabb7(_0x1b3e3b,{'onClick':_0x45cdce[_0x375d86(0x4f7)],'children':_0x4e4fb7['t'](_0x375d86(0x376))}),_0x4dabb7(_0x1b3e3b,{'variant':_0x375d86(0x37f),'disabled':!_0x2d524f[_0x375d86(0x3ee)](),'onClick':()=>_0x45cdce['onCommit'](_0x2d524f[_0x375d86(0x3ee)](),_0x3fc751,_0x46562e),'children':_0x4e4fb7['t']('bases-dashboard-ui.pivot.confirm')})]})]}):null;}function po(_0x1bd56d){const _0x353dc8=_0x2353bc;let {config:_0x3cc06e,commit:_0x1bd2fc}=_0x1bd56d,_0x4a93be=_0x39b411(_0x5cd3ee),_0x4466be=_0x3cc06e[_0x353dc8(0x4aa)][_0x353dc8(0x320)],_0x1198b1=_0x540914=>_0x1bd2fc(_0x52673f=>_0x52673f['setOptions']({..._0x52673f[_0x353dc8(0x4c8)](),..._0x540914}));return _0x2b00c1(_0x353dc8(0x442),{'className':_0x353dc8(0x4f1),'children':[_0x2b00c1(_0x353dc8(0x3b0),{'className':_0x353dc8(0x1f1),'children':[_0x4a93be['t'](_0x353dc8(0x291)),_0x4dabb7(_0xce6b1b,{'className':_0x353dc8(0x23f),'value':String(_0x3cc06e[_0x353dc8(0x4aa)][_0x353dc8(0x439)]),'options':[{'value':String(_0x426ac9[_0x353dc8(0x2c8)]),'label':_0x4a93be['t'](_0x353dc8(0x372))},{'value':String(_0x426ac9[_0x353dc8(0x1be)]),'label':_0x4a93be['t'](_0x353dc8(0x409))},{'value':String(_0x426ac9[_0x353dc8(0x379)]),'label':_0x4a93be['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x4e97b1=>{const _0x3a7777=_0x353dc8;let _0x4abce4=[_0x426ac9[_0x3a7777(0x2c8)],_0x426ac9['compact'],_0x426ac9['outline']][_0x3a7777(0x397)](_0x380df7=>String(_0x380df7)===_0x4e97b1);_0x4abce4!==void 0x0&&_0x1bd2fc(_0x4a4fa0=>_0x4a4fa0['setLayout'](_0x4abce4));}})]}),[{'key':'repeatRowLabels','label':'bases-dashboard-ui.pivot.repeatRowLabels','defaultValue':!0x1},{'key':_0x353dc8(0x40b),'label':_0x353dc8(0x1f5),'defaultValue':!0x1},{'key':_0x353dc8(0x246),'label':'bases-dashboard-ui.pivot.showRowSubtotal','defaultValue':!0x0},{'key':_0x353dc8(0x402),'label':_0x353dc8(0x2ca),'defaultValue':!0x0},{'key':_0x353dc8(0x280),'label':_0x353dc8(0x2bb),'defaultValue':!0x0},{'key':_0x353dc8(0x2ea),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}]['map'](_0x9a70a9=>_0x2b00c1(_0x353dc8(0x3b0),{'className':_0x353dc8(0x343),'children':[_0x4dabb7(_0x3cc061,{'checked':!!(_0x4466be[_0x9a70a9[_0x353dc8(0x336)]]??_0x9a70a9['defaultValue']),'disabled':_0x9a70a9['key']===_0x353dc8(0x479)&&_0x3cc06e['pivot'][_0x353dc8(0x439)]===_0x426ac9['compact'],'onChange':_0x3324a4=>_0x1198b1({[_0x9a70a9[_0x353dc8(0x336)]]:!!_0x3324a4})}),_0x4a93be['t'](_0x9a70a9[_0x353dc8(0x3b0)])]},_0x9a70a9[_0x353dc8(0x336)])),_0x3cc06e[_0x353dc8(0x4aa)][_0x353dc8(0x439)]===_0x426ac9['outline']&&_0x2b00c1('label',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x4a93be['t'](_0x353dc8(0x1c3)),_0x4dabb7(_0xce6b1b,{'className':'univer-w-36','value':String(_0x4466be[_0x353dc8(0x413)]??_0x10ab45[_0x353dc8(0x45e)]),'options':[{'value':String(_0x10ab45['top']),'label':_0x4a93be['t'](_0x353dc8(0x422))},{'value':String(_0x10ab45[_0x353dc8(0x2d0)]),'label':_0x4a93be['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x2908b0=>{const _0x134cbe=_0x353dc8;let _0x49aa50=[_0x10ab45[_0x134cbe(0x45e)],_0x10ab45[_0x134cbe(0x2d0)]]['find'](_0x5b7c81=>String(_0x5b7c81)===_0x2908b0);_0x49aa50!==void 0x0&&_0x1198b1({'rowSubtotalPosition':_0x49aa50});}})]}),_0x2b00c1('label',{'className':_0x353dc8(0x1f1),'children':[_0x4a93be['t'](_0x353dc8(0x25d)),_0x4dabb7(_0xce6b1b,{'className':_0x353dc8(0x23f),'value':String(_0x3cc06e[_0x353dc8(0x4aa)][_0x353dc8(0x1bb)]===_0x288ba5[_0x353dc8(0x2fe)]?_0x288ba5[_0x353dc8(0x499)]:_0x3cc06e['pivot'][_0x353dc8(0x1bb)]),'options':[{'value':String(_0x288ba5[_0x353dc8(0x499)]),'label':_0x4a93be['t']('bases-dashboard-ui.pivot.columns')},{'value':String(_0x288ba5[_0x353dc8(0x456)]),'label':_0x4a93be['t'](_0x353dc8(0x1d4))}],'onChange':_0x5f52c4=>{const _0x3aafab=_0x353dc8;let _0x4f7b0c=[_0x288ba5[_0x3aafab(0x499)],_0x288ba5['Row']]['find'](_0x4a6d8c=>String(_0x4a6d8c)===_0x5f52c4);_0x4f7b0c!==void 0x0&&_0x1bd2fc(_0x12b7d1=>_0x12b7d1[_0x3aafab(0x3e6)](_0x4f7b0c,_0x12b7d1[_0x3aafab(0x2cf)]()<0x0?0x0:_0x12b7d1[_0x3aafab(0x2cf)]()));}})]}),_0x2b00c1(_0x353dc8(0x3b0),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x4a93be['t'](_0x353dc8(0x412)),_0x4dabb7(_0x1c2086,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x4466be['pageWrap']??0x1,'onChange':_0x1cab7a=>{const _0x3e4795=_0x353dc8;let _0x120e6d=Number(_0x1cab7a);Number[_0x3e4795(0x4a4)](_0x120e6d)&&_0x120e6d>=0x1&&_0x1198b1({'pageWrap':_0x120e6d});}})]}),_0x2b00c1(_0x353dc8(0x3b0),{'className':_0x353dc8(0x1f1),'children':[_0x4a93be['t']('bases-dashboard-ui.pivot.pageDirection'),_0x4dabb7(_0xce6b1b,{'className':_0x353dc8(0x23f),'value':String(_0x4466be[_0x353dc8(0x1b7)]??!0x1),'options':[{'value':_0x353dc8(0x48b),'label':_0x4a93be['t'](_0x353dc8(0x30c))},{'value':'true','label':_0x4a93be['t'](_0x353dc8(0x4a1))}],'onChange':_0x4fe993=>_0x1198b1({'pageOverThenDown':_0x4fe993==='true'})})]})]});}function mo(_0x1f8543,_0x5c34eb,_0x3b31b4,_0x593b0e){const _0x32f3eb=_0x2353bc;let _0x4720fa=_0x1f8543[_0x32f3eb(0x1cd)](_0x5c34eb)[_0x32f3eb(0x397)](_0x5afdc6=>_0x1f8543['getFieldPositionInfoById'](_0x5afdc6[_0x32f3eb(0x1ae)]())[_0x32f3eb(0x269)]!==_0x4c815c[_0x32f3eb(0x47a)]);if(_0x3b31b4!==_0x4c815c[_0x32f3eb(0x47a)]&&_0x4720fa){_0x1f8543[_0x32f3eb(0x1b0)](_0x4720fa[_0x32f3eb(0x1ae)](),_0x3b31b4,_0x593b0e);return;}_0x1f8543[_0x32f3eb(0x3fa)](_0x5c34eb,_0x3b31b4,_0x593b0e);}function ho(_0x595cf7,_0x2dd1df,_0xa0c3ce,_0x15904c){const _0x2ff743=_0x2353bc;return _0x2dd1df===_0x1fe7b3[_0x2ff743(0x512)]?_0x15904c:_0x2dd1df===_0x1fe7b3['date']&&_0xa0c3ce?_0x3f4aae['format'](_0xa0c3ce,Number(_0x595cf7)):_0x595cf7;}function go(_0x41a601){const _0x365493=_0x2353bc;return _0x41a601[_0x365493(0x393)]===_0x557eea[_0x365493(0x416)]||_0x41a601['type']===_0x557eea[_0x365493(0x321)]||_0x41a601[_0x365493(0x393)]===_0x557eea[_0x365493(0x3c5)]||_0x41a601[_0x365493(0x393)]===_0x557eea[_0x365493(0x42a)];}function _o(_0x53644a){const _0x13ebf0=_0x2353bc;switch(_0x53644a){case _0x4c815c[_0x13ebf0(0x456)]:return _0x13ebf0(0x28b);case _0x4c815c[_0x13ebf0(0x499)]:return _0x13ebf0(0x50d);case _0x4c815c[_0x13ebf0(0x47a)]:return'bases-dashboard-ui.pivot.addToValue';default:return _0x13ebf0(0x41a);}}function vo({config:_0x599bce,onChange:_0x353ea2,runtime:_0x346e04,table:_0x491911}){const _0x1506e3=_0x2353bc;let _0x23fcfa=_0x39b411(_0x5cd3ee),[_0x59facb,_0x54059f]=_0x2be63d(_0x1506e3(0x4d8));return _0x2b00c1(_0x1506e3(0x2b6),{'className':_0x1506e3(0x4fd),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x23fcfa['t'](_0x1506e3(0x2f6)),'className':_0x1506e3(0x38c),'items':[{'label':_0x23fcfa['t'](_0x1506e3(0x36b)),'panelId':_0x1506e3(0x440),'value':_0x1506e3(0x4d8)},{'label':_0x23fcfa['t'](_0x1506e3(0x4a7)),'panelId':_0x1506e3(0x225),'value':_0x1506e3(0x4aa)}],'value':_0x59facb,'variant':_0x1506e3(0x4d2),'onChange':_0x54059f}),_0x4dabb7(_0x1506e3(0x442),{'className':_0x1506e3(0x380),'children':_0x59facb===_0x1506e3(0x4d8)?_0x346e04&&_0x4dabb7(fa,{'config':_0x599bce,'runtime':_0x346e04,'tableName':_0x491911['name'],'onChange':_0x353ea2}):_0x4dabb7(ao,{'config':_0x599bce,'table':_0x491911,'onChange':_0x353ea2})})]});}function yo({tableId:_0x3d757a,unitId:_0x27e018,viewId:_0x18b6db}){const _0x1302cf=_0x2353bc;let _0x5d5ebe=_0x39b411(_0x32452d),_0x29874e=_0x39b411(_0x4074e5),_0xdfaefb=_0x39b411(_0x34ac8c),_0x4365aa=_0x39b411(_0x5cd3ee),_0x2a78b2=_0x39b411(_0x22ef82),[_0x223f75,_0x2420cc]=_0x2be63d(null),[_0x3da0c3,_0x390221]=_0x2be63d(null),_0x4af626=_0x35f949(_0x1302cf(0x4e9)+_0x325e5d(0x8)),[_0x1f6030,_0x31b599]=_0x2be63d(!0x1),_0x317b57=_0x29874e['getUnit'](_0x27e018,_0x51ec78[_0x1302cf(0x4eb)]),_0x56a108=_0x317b57==null?void 0x0:_0x317b57[_0x1302cf(0x3f5)]()['tables'][_0x3d757a],_0x350e9f=_0x56a108==null?void 0x0:_0x56a108[_0x1302cf(0x451)][_0x18b6db],_0x2ead60=bo(_0x350e9f),_0x2f58b9=_r(_0x27e018,_0x3d757a,_0x18b6db);if(_0x38e78f(()=>{const _0x587d3a=_0x1302cf;if(!_0x2ead60)return;let _0x1ed291=_0x4af626[_0x587d3a(0x38f)];return _0x2a78b2['acquireChartRuntime'](_0x1ed291,{'unitId':_0x27e018,'tableId':_0x3d757a,'viewId':_0x18b6db,'filters':[]}),()=>{const _0xb8bb17=_0x587d3a;_0x2a78b2[_0xb8bb17(0x503)](_0x27e018,_0x1ed291);};},[_0x2ead60,_0x2a78b2,_0x3d757a,_0x27e018,_0x18b6db]),_0x38e78f(()=>{const _0x14702b=_0x1302cf;if(!bo(_0x350e9f))return;let _0x3f3f70=!0x0,_0x29fded={'unitId':_0x27e018,'tableId':_0x3d757a,'viewId':_0x18b6db,'filters':[_0x350e9f[_0x14702b(0x1b3)]??null]};return _0x2a78b2[_0x14702b(0x41f)](_0x27e018,_0x4af626[_0x14702b(0x38f)],_0x29fded)['then'](_0x25c9e0=>{const _0x503da9=_0x14702b;_0x3f3f70&&_0x25c9e0&&(_0x2420cc(_0x25c9e0),_0x390221(_0x2a78b2[_0x503da9(0x33e)](_0x27e018,_0x4af626[_0x503da9(0x38f)])??null),_0x31b599(!0x1));})['catch'](_0x2e862a=>{const _0x5b9f69=_0x14702b;_0xdfaefb[_0x5b9f69(0x1b4)](_0x5b9f69(0x341),_0x2e862a),_0x3f3f70&&(_0x2420cc(null),_0x31b599(!0x0));}),()=>{_0x3f3f70=!0x1;};},[_0xdfaefb,_0x2a78b2,_0x3d757a,_0x27e018,_0x350e9f,_0x18b6db]),!_0x56a108||!bo(_0x350e9f))return null;let _0x5bb065=_0x2a78b2[_0x1302cf(0x33e)](_0x27e018,_0x4af626['current'])===_0x3da0c3?_0x3da0c3:null,_0x44cd29=_0x223f75?_0x2b00c1(_0x1302cf(0x442),{'className':_0x1302cf(0x2cd),'style':{'gridTemplateRows':_0x350e9f[_0x1302cf(0x4e8)][_0x1302cf(0x4a6)]===_0x1302cf(0x330)?_0x1302cf(0x511):_0x1302cf(0x230)},'children':[_0x350e9f[_0x1302cf(0x4e8)][_0x1302cf(0x4a6)]!==_0x1302cf(0x4bb)&&_0x5bb065&&_0x4dabb7(_0x1302cf(0x442),{'className':_0x1302cf(0x4c9),'children':_0x4dabb7(Ir,{'isRowDirection':_0x2fa6dd(_0x350e9f['config'][_0x1302cf(0x4d8)][_0x1302cf(0x485)]),'runtime':_0x5bb065})}),_0x350e9f[_0x1302cf(0x4e8)][_0x1302cf(0x4a6)]!=='chart'&&_0x4dabb7('div',{'className':_0x1302cf(0x32b),'children':_0x4dabb7(ki,{'pivot':_0x350e9f[_0x1302cf(0x4e8)][_0x1302cf(0x4aa)],'view':_0x223f75['view']})})]}):_0x4dabb7(_0x1302cf(0x442),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x1f6030?_0x4365aa['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x4365aa['t'](_0x1302cf(0x463))});return _0x2b00c1(_0x1302cf(0x442),{'className':_0x1302cf(0x4b6),'children':[_0x4dabb7(_0x1302cf(0x442),{'className':_0x1302cf(0x43e),'children':_0x44cd29}),_0x2f58b9&&_0x4dabb7(vo,{'config':_0x350e9f['config'],'runtime':_0x5bb065,'table':_0x56a108,'onChange':_0x10dc11=>{const _0x193081=_0x1302cf;_0x5d5ebe['executeCommand'](_0x303df3['id'],{'unitId':_0x27e018,'tableId':_0x3d757a,'viewId':_0x18b6db,'patch':_0x10dc11})[_0x193081(0x3d2)](_0x23df5d=>_0xdfaefb[_0x193081(0x1b4)](_0x193081(0x337),_0x23df5d));}})]});}function bo(_0x2a9da6){const _0x55f698=_0x2353bc;return(_0x2a9da6==null?void 0x0:_0x2a9da6[_0x55f698(0x393)])===_0x5ee6b5['Pivot']&&typeof _0x2a9da6[_0x55f698(0x4e8)]=='object'&&_0x2a9da6[_0x55f698(0x4e8)]!==null&&'pivot'in _0x2a9da6['config']&&_0x55f698(0x4d8)in _0x2a9da6[_0x55f698(0x4e8)]&&_0x55f698(0x4a6)in _0x2a9da6[_0x55f698(0x4e8)];}let xo=class extends _0x2e76da{constructor(_0x5c9987,_0x147162,_0x25bb36,_0x52dc46,_0x58aa3b,_0x185b7e){const _0x487ece=_0x2353bc;super(),this[_0x487ece(0x1eb)](_0x147162[_0x487ece(0x1ac)]({'type':_0x5ee6b5['Pivot'],'renderMode':_0x487ece(0x4cc),'icon':_0x3ad3c2,'component':yo,'menu':{get 'label'(){return _0x185b7e['t']('bases-dashboard-ui.pivot.name');},get 'description'(){const _0x1c4de4=_0x487ece;return _0x185b7e['t'](_0x1c4de4(0x345));},get 'defaultName'(){return _0x185b7e['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x487ece(0x1eb)](_0x5c9987['register'](So(_0x25bb36,_0x52dc46,_0x58aa3b,_0x185b7e)));}};xo=Or([Y(0x0,_0x509544),Y(0x1,_0x5eecd3),Y(0x2,_0x2a19f9(_0x5e40a3)),Y(0x3,_0x32452d),Y(0x4,_0x4c7ae7),Y(0x5,_0x2a19f9(_0x5cd3ee))],xo);function So(_0x2ae871,_0x1ff551,_0x2d214e,_0x2fb16f){const _0x285db8=_0x2353bc;return{'change$':_0x53dd21(_0x2ae871[_0x285db8(0x2a3)],_0x2d214e[_0x285db8(0x391)]),'component':Ja,get 'labels'(){const _0xd9a4f1=_0x285db8;return{'add':_0x2fb16f['t'](_0xd9a4f1(0x3ed)),'configure':_0x2ae8d2=>_0x2fb16f['t'](_0xd9a4f1(0x233),_0x2ae8d2),'delete':_0x2fb16f['t'](_0xd9a4f1(0x305)),'new':_0x2fb16f['t']('bases-dashboard-ui.dashboard.new'),'rename':_0x2fb16f['t'](_0xd9a4f1(0x259)),'search':_0x2fb16f['t'](_0xd9a4f1(0x424)),'section':_0x2fb16f['t'](_0xd9a4f1(0x1c4))};},'getItems':_0x3ca741=>{const _0x4d3812=_0x285db8;let _0x2a3f61=_0x2ae871[_0x4d3812(0x2b1)](_0x3ca741);return _0x2a3f61[_0x4d3812(0x3fe)][_0x4d3812(0x3bc)](_0x3286c5=>{const _0x4969ce=_0x4d3812;let _0x1e09e7=_0x2a3f61[_0x4969ce(0x370)][_0x3286c5];return _0x1e09e7?[{'id':_0x1e09e7['id'],'name':_0x1e09e7[_0x4969ce(0x329)],'readonly':!_0x25b5d2(_0x2d214e,_0x3ca741,_0x1e09e7['id'])}]:[];});},'create':async _0x1f388d=>{const _0x5917e4=_0x285db8;let _0x4a06f6=_0x2ae871[_0x5917e4(0x2b1)](_0x1f388d),_0x54cdcd=_0x5917e4(0x3a4)+_0x325e5d(0x8),_0x37fe44=Co(_0x4a06f6[_0x5917e4(0x3fe)][_0x5917e4(0x3bc)](_0x4d8eab=>{let _0x580a4f=_0x4a06f6['dashboards'][_0x4d8eab];return _0x580a4f?[_0x580a4f['name']]:[];}),_0x345da2=>_0x2fb16f['t'](_0x5917e4(0x3e5),String(_0x345da2)));return await _0x1ff551[_0x5917e4(0x1ff)](_0x2ef5a6['id'],{'unitId':_0x1f388d,'dashboard':{'id':_0x54cdcd,'name':_0x37fe44,'widgetOrder':[],'widgets':{}}})?_0x54cdcd:null;},'rename':async(_0x57ccff,_0x1a5693,_0x29e6d1)=>{const _0x482658=_0x285db8;let _0x4fa17c=_0x2ae871[_0x482658(0x34a)](_0x57ccff,_0x1a5693);return!!(_0x4fa17c&&await _0x1ff551['executeCommand'](_0x5cbeb4['id'],{'unitId':_0x57ccff,'dashboard':{..._0x4fa17c,'name':_0x29e6d1}}));},'remove':(_0x19274d,_0x15174d)=>_0x1ff551['executeCommand'](_0x22aa0a['id'],{'unitId':_0x19274d,'dashboardId':_0x15174d})};}function Co(_0x247619,_0x16a3b1){const _0x3eb9c7=_0x2353bc;let _0x1e420f=new Set(_0x247619),_0x2b5cab=_0x1e420f[_0x3eb9c7(0x272)]+0x1,_0x291041=_0x16a3b1(_0x2b5cab);for(;_0x1e420f[_0x3eb9c7(0x30b)](_0x291041);)_0x2b5cab+=0x1,_0x291041=_0x16a3b1(_0x2b5cab);return _0x291041;}let wo=class extends _0x52aef1{constructor(_0x500853=hr,_0x20d046,_0x3ebc94){const _0x3c5f85=_0x2353bc;super(),this['_config']=_0x500853,this[_0x3c5f85(0x2a0)]=_0x20d046,this['_configService']=_0x3ebc94;let {..._0x1f9080}=_0x1731fc({},hr,this[_0x3c5f85(0x21e)]);this[_0x3c5f85(0x447)][_0x3c5f85(0x427)](mr,_0x1f9080);}[_0x2353bc(0x2db)](){const _0x45e574=_0x2353bc;this[_0x45e574(0x2a0)]['add']([kr]),this[_0x45e574(0x2a0)][_0x45e574(0x1c1)]([Gr]),this['_injector']['add']([xo]);}[_0x2353bc(0x25b)](){const _0x3c60f4=_0x2353bc;_0x445a23(this[_0x3c60f4(0x2a0)],[[kr],[Gr],[xo]]);}};Pr(wo,_0x2353bc(0x393),_0x51ec78['UNIVER_BASE']),Pr(wo,_0x2353bc(0x405),_0x2353bc(0x264)),Pr(wo,_0x2353bc(0x4ba),fr),Pr(wo,'version',pr),wo=Or([_0x4fc5af(_0x38c17a,_0x1615ad,_0x151faa,_0x4a2c56,_0x47e249,_0x220c65),Y(0x1,_0x2a19f9(_0x5a8661)),Y(0x2,_0x5a5187)],wo);export{na as UniverBaseDashboardMobileUIPlugin,wo as UniverBaseDashboardUIPlugin};
1
+ const _0x425045=_0x2f30;(function(_0x16b559,_0x18c7a6){const _0x2fdb9f=_0x2f30,_0x4d20e2=_0x16b559();while(!![]){try{const _0x5cd734=parseInt(_0x2fdb9f(0x308))/0x1+-parseInt(_0x2fdb9f(0x27a))/0x2*(parseInt(_0x2fdb9f(0x3d6))/0x3)+parseInt(_0x2fdb9f(0x12f))/0x4*(parseInt(_0x2fdb9f(0x351))/0x5)+-parseInt(_0x2fdb9f(0x3ad))/0x6+parseInt(_0x2fdb9f(0x242))/0x7*(parseInt(_0x2fdb9f(0x1fe))/0x8)+parseInt(_0x2fdb9f(0x354))/0x9*(-parseInt(_0x2fdb9f(0xde))/0xa)+-parseInt(_0x2fdb9f(0x435))/0xb*(-parseInt(_0x2fdb9f(0x3d2))/0xc);if(_0x5cd734===_0x18c7a6)break;else _0x4d20e2['push'](_0x4d20e2['shift']());}catch(_0x26b151){_0x4d20e2['push'](_0x4d20e2['shift']());}}}(_0xe570,0x98cbc));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x5182cb,BASES_DASHBOARD_GRID_COLUMNS as _0x201478,BaseChartRuntimeService as _0x2952ef,BaseDashboardResourceService as _0x4001b9,BaseDashboardWidgetType as _0x1cae1f,CreateBaseDashboardCommand as _0x1506b5,DeleteBaseDashboardCommand as _0x283801,RemoveBaseDashboardWidgetCommand as _0x353383,UniverBaseDashboardPlugin as _0x263bdb,UpdateBaseDashboardCommand as _0x3f980a,UpdateBasePivotViewCommand as _0x13d320,UpsertBaseDashboardWidgetCommand as _0x5bb522,canEditBaseDashboard as _0x42cb7a,canEditBasePivotView as _0x34cc7c,createBasePivotTable as _0x1b60e4,resolveBasePivotChartRowDirection as _0x3861f0}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x3d0012,BaseMobileDrawer as _0x3a70e3,BaseMobileFilterOperand as _0x5c677b,BaseMobileFilterPanel as _0x4c20b5,BaseUnitCollaborationStatus as _0x21edff,FormulaEditorPanel as _0x453721,IBaseDashboardUIExtensionRegistryService as _0x55d23f,IBaseViewUIRegistryService as _0x1bae39,MobileFormulaEditorPanel as _0x427c3a,UniverBasesMobileUIPlugin as _0x4f0d50,UniverBasesUIPlugin as _0x56503f,formulaToEditorFormula as _0x3863e,normalizeEditorFormulaForConfig as _0x307895,toFormulaMenuTables as _0xcfce7a,toMenuFields as _0xb59ce2}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0xd33d42,ChartAxisSection as _0x4cda27,ChartColorField as _0x5cd6d5,ChartCommonDataMappingSection as _0x41d279,ChartEditBlockTitle as _0x4c9395,ChartEditPanel as _0x1cd28c,ChartEditPanelSection as _0x597dbd,ChartEditPanelTab as _0x4114fc,ChartEditPanelTabs as _0x63d182,ChartEditorCapability as _0xfed3f8,ChartEditorProvider as _0x74e14c,ChartFunnelStyleSection as _0x27341e,ChartGradientFillField as _0x306610,ChartGridlinesAndTicksSection as _0x2dba0a,ChartHeatmapStyleSection as _0x57aed4,ChartHostAdapter as _0x278c35,ChartIndicatorLineSection as _0x363d62,ChartLegendSection as _0x36f7ba,ChartLineAndAreaSection as _0x2846ee,ChartNumberFormatAtom as _0x2c02d8,ChartParetoSeriesSection as _0x100f7a,ChartPieStyleSection as _0x5217f9,ChartRadarStyleSection as _0x250da3,ChartRelationStyleSection as _0x20b35a,ChartSectionAccordion as _0x34920d,ChartSectionAccordionContent as _0x46ca04,ChartSectionAccordionItem as _0x48080d,ChartSectionAccordionTrigger as _0x44bedc,ChartSeriesSection as _0x187ff8,ChartStackField as _0x32c27e,ChartStyleSection as _0x5642e7,ChartThemeField as _0x2ee830,ChartTitlesSection as _0x120f4b,ChartTrendlineSection as _0x592ac5,ChartTypeField as _0x33d302,ChartTypeSpecificDataSection as _0x2b6e95,ChartTypeSpecificSetupSection as _0x3f515b,ChartTypeSpecificStyleSection as _0x4c1bd2,ChartUIService as _0x5a56d0,ChartViewStateRegistry as _0x2e7e0d,ChartWaterfallSetupFields as _0x33caa5,ChartWaterfallStyleSection as _0x388262,ChartWordCloudStyleSection as _0x9c371a,DEFAULT_CHART_AXIS_VALUES as _0x2b8f2e,DEFAULT_CHART_FUNNEL_VALUES as _0x379325,DEFAULT_CHART_HEATMAP_VALUES as _0x288154,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x3e2ab8,DEFAULT_CHART_LEGEND_VALUES as _0x24a88c,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x5380f7,DEFAULT_CHART_PARETO_VALUES as _0x35937b,DEFAULT_CHART_PIE_VALUES as _0x3a6db9,DEFAULT_CHART_RADAR_VALUES as _0x259969,DEFAULT_CHART_RELATION_VALUES as _0x585337,DEFAULT_CHART_SERIES_VALUES as _0xf1747d,DEFAULT_CHART_STYLE_VALUES as _0x1bbce8,DEFAULT_CHART_TITLE_VALUES as _0x4b3637,DEFAULT_CHART_TRENDLINE_VALUES as _0x18f851,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x2a4648,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x26db14,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x2d171b,MobileChartEditorControls as _0x57bc80,MobileChartEditorProvider as _0x2bbf54,UniverChartMobileUIPlugin as _0x1dccd8,UniverChartUIPlugin as _0x2dae40,buildChartTypeSelectOptions as _0x4e0311,chartTypeSupportsCapability as _0x243119,chartTypeSupportsLineAndAreaStyle as _0x2f121b,useChartEditorChartType as _0x188dc1,useChartEditorHasRightAxis as _0x10db6e}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x11a984}from'@univerjs-pro/license';import{ShapeFormulaService as _0x47b737,UniverShapeEditorPlugin as _0x505bf2,createFormulaShapeData as _0x156510}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0x2ed75f,BaseFilterConjunction as _0x18fd74,BaseFilterOperator as _0x1f147c,BaseViewType as _0x5e9757,DependentOn as _0xda4ae8,Disposable as _0x2949ec,ICommandService as _0x5e43a5,IConfigService as _0x526c93,IImageIoService as _0x4ff898,ILogService as _0x5e31f1,IPermissionService as _0x1e4187,IUndoRedoService as _0x473ea9,IUniverInstanceService as _0x4ce5e0,ImageSourceType as _0x1ba6af,Inject as _0x4d55af,Injector as _0x1c73d0,LocaleService as _0x4a0c45,ObjectPermissionService as _0x5ceeef,Plugin as _0xea9f56,RedoCommand as _0x408d54,ThemeService as _0x3f1b1a,UndoCommand as _0x43f509,UniverInstanceType as _0x4b82c2,createParagraphId as _0x2f90ed,dateKit as _0x58a739,generateRandomId as _0x184bc2,merge as _0x12890c,numfmt as _0x390aef,touchDependencies as _0x416655}from'@univerjs/core';import{UniverDocsUIPlugin as _0x54e3a0}from'@univerjs/docs-ui';import{ArrowDownIcon as _0x14482c,ArrowUpIcon as _0x336982,AscendingIcon as _0x5353ac,CalendarIcon as _0xe4276a,ChartIcon as _0x3c79b2,CloseIcon as _0x7c8fef,DeleteIcon as _0x1bdc33,DescendingIcon as _0x125ead,ExpandIcon as _0x2d161a,FilterIcon as _0x3b4ec0,GripVerticalIcon as _0x489e03,IncreaseIcon as _0x5a006e,MoreDownIcon as _0x1a78f0,MoreHorizontalIcon as _0x4271ce,NumberIcon as _0x293db8,PenIcon as _0x3e9831,PivotTableIcon as _0x24c955,ProtectIcon as _0x49d229,RedoIcon as _0x3667aa,SearchIcon as _0x43de76,TextIcon as _0x5c8b6c,UndoIcon as _0x55c1c8}from'@univerjs/icons';import{combineLatest as _0x511256,map as _0x55d4cd,merge as _0x56c959,skip as _0x4c3b7e}from'rxjs';import{SetBasePermissionCommand as _0x201c8f,getBaseDashboardPermissionObjectId as _0x2c66f9}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x227826}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x4cca06,ShapeLineTypeEnum as _0x4cf17b,ShapeTypeEnum as _0x11bc35}from'@univerjs-pro/engine-shape';import{Button as _0x5bfdfa,Checkbox as _0x3884d7,DatePicker as _0x5f0d85,Dialog as _0x3114d8,DropdownMenu as _0x14ca1d,Input as _0x512832,InputNumber as _0x510d74,MobileDialog as _0x18785c,MobileDropdownMenu as _0x42fe6c,MobileSelect as _0x4ef009,MultipleSelect as _0x4fd25d,Segmented as _0x2a0f06,Select as _0x5ba88c,Textarea as _0x8edc67,Tooltip as _0x4833dd,borderClassName as _0x1919fa,clsx as _0x4ba74c,scrollbarClassName as _0x3d0337}from'@univerjs/design';import{UnitObject as _0x13e96b}from'@univerjs/protocol';import{ILayoutService as _0x3be974,ObjectPermissionButton as _0x43f71c,openObjectPermissionDialog as _0x55511b,useDependency as _0x4acd92,useObservable as _0x1b22fe}from'@univerjs/ui';import{useCallback as _0x23f720,useEffect as _0x1e9cac,useMemo as _0x1f57f7,useRef as _0x26f122,useState as _0xf9778b}from'react';import{Fragment as _0x461de9,jsx as _0x46ec10,jsxs as _0x53776f}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x5b1e29,ChartRenderMode as _0x28fe7d,ChartThemeService as _0x1856b6,ChartTypeBits as _0x22cfd2,ChartWaterfallStyleTarget as _0x4868ef,IChartRenderModelManagerService as _0x43577d,RTLChartStyle as _0x2c243f,chartBitsUtils as _0x55db12,chartTypeCanUseTrendLine as _0x37eeaa,resolveChartRuntimeStyle as _0x2f4795,resolveDefaultChartHostFrameStyle as _0x36e543,toChartModelUpdate as _0x1f96c7}from'@univerjs-pro/engine-chart';import{createPortal as _0x1d5fdf}from'react-dom';import{PivotCellStyleTypeEnum as _0x3186e2,PivotDataFieldDataTypeEnum as _0x5377f1,PivotDataFieldSortOperatorEnum as _0x4b9a3c,PivotFilterTypeEnum as _0xe90230,PivotLayoutTypeEnum as _0xf39c9c,PivotSubtotalPositionEnum as _0x278d2c,PivotSubtotalTypeEnum as _0x4cc2cb,PivotTableFiledAreaEnum as _0x5b40f7,PivotTableValuePositionEnum as _0x412ab8,isErrorValue as _0x19da12,isPrefixValue as _0x36ae1f}from'@univerjs-pro/engine-pivot';var fr='@univerjs-pro/bases-dashboard-ui',pr=_0x425045(0x1dc);const mr='bases-dashboard-ui.config',hr={};function gr(_0x2c9935,_0x162978){const _0x47d226=_0x425045;let _0x504c92=_0x4acd92(_0x1e4187),_0x260b82=_0x42cb7a(_0x504c92,_0x2c9935,_0x162978);return _0x1b22fe(()=>_0x504c92[_0x47d226(0x3c7)][_0x47d226(0x106)](_0x55d4cd(()=>_0x42cb7a(_0x504c92,_0x2c9935,_0x162978))),_0x260b82,!0x1,[_0x162978,_0x504c92,_0x2c9935]);}function _r(_0x5ef941,_0xe8ee97,_0x5218bb){const _0x4c1142=_0x425045;let _0x2a2c1f=_0x4acd92(_0x1e4187),_0x177aa9=_0x34cc7c(_0x2a2c1f,_0x5ef941,_0xe8ee97,_0x5218bb);return _0x1b22fe(()=>_0x2a2c1f[_0x4c1142(0x3c7)][_0x4c1142(0x106)](_0x55d4cd(()=>_0x34cc7c(_0x2a2c1f,_0x5ef941,_0xe8ee97,_0x5218bb))),_0x177aa9,!0x1,[_0x2a2c1f,_0xe8ee97,_0x5ef941,_0x5218bb]);}function vr(_0x41fbae,_0x3d15f5=_0x425045(0x2cd)){const _0x25572f=_0x425045;return{'backgroundImage':_0x25572f(0x36e)+JSON[_0x25572f(0x35e)](_0x41fbae)+')','backgroundPosition':_0x3d15f5===_0x25572f(0x330)?'0\x200':_0x25572f(0x20e),'backgroundRepeat':_0x3d15f5==='repeat'?_0x25572f(0x330):_0x25572f(0x208),'backgroundSize':_0x3d15f5===_0x25572f(0x2cd)?'cover':_0x25572f(0x366)};}const yr={'alignment':'left','currency':'USD','decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x425045(0x366),'numberFormat':_0x425045(0x1ef)},br={'CNY':'¥','EUR':'€','USD':'$'};function xr(_0x41aadb){const _0x150384=_0x425045;var _0x4efe1c;let _0x4595cd=Tr(((_0x4efe1c=_0x41aadb[_0x150384(0x110)]['formulaBinding'])==null||(_0x4efe1c=_0x4efe1c[_0x150384(0x26f)])==null?void 0x0:_0x4efe1c['pattern'])??'');return{...yr,..._0x4595cd,..._0x41aadb[_0x150384(0x294)]};}function Sr(_0x4494ea,_0x4d733c){const _0x4ceb73=_0x425045;let _0x1b325c={..._0x4494ea['appearance'],..._0x4d733c},_0x374b32=xr({..._0x4494ea,'appearance':_0x1b325c}),_0x31db54=_0x4494ea['shapeData'][_0x4ceb73(0x200)]??{'formula':''};return{..._0x4494ea,'appearance':_0x1b325c,'shapeData':{..._0x4494ea[_0x4ceb73(0x110)],'formulaBinding':{..._0x31db54,'numberFormat':{'pattern':Cr(_0x374b32[_0x4ceb73(0x26f)],_0x374b32['decimalPlaces'],_0x374b32[_0x4ceb73(0x2dc)])}}}};}function Cr(_0x2fb743,_0x464689,_0x3fef79){const _0xb3bfa5=_0x425045;let _0xf72f1b=Math[_0xb3bfa5(0x1b0)](0x0,Math[_0xb3bfa5(0x3d1)](0x8,Math[_0xb3bfa5(0x2d2)](_0x464689))),_0x427dd9=_0xf72f1b?'.'+'0'[_0xb3bfa5(0x330)](_0xf72f1b):'';switch(_0x2fb743){case _0xb3bfa5(0x152):return'0'+_0x427dd9;case'percent':return'0'+_0x427dd9+'%';case _0xb3bfa5(0x2dc):return(br[_0x3fef79]??_0x3fef79)+_0xb3bfa5(0x3b6)+_0x427dd9;case _0xb3bfa5(0x2cf):return _0xb3bfa5(0x3b6)+_0x427dd9;case _0xb3bfa5(0x191):case _0xb3bfa5(0x1ef):return'General';}}function wr(_0x165d5a,_0x46db42,_0x5749d4){const _0x49ac03=_0x425045;return _0x5749d4[_0x49ac03(0x26f)]!==_0x49ac03(0x191)||typeof _0x46db42!=_0x49ac03(0x152)||!Number[_0x49ac03(0x393)](_0x46db42)?_0x165d5a:new Intl[(_0x49ac03(0x1e5))](void 0x0,{'notation':_0x49ac03(0x191),'minimumFractionDigits':_0x5749d4[_0x49ac03(0x11e)]??0x0,'maximumFractionDigits':_0x5749d4['decimalPlaces']??0x0})[_0x49ac03(0x319)](_0x46db42);}function Tr(_0x5a641e){const _0x4ff534=_0x425045;var _0x35601b,_0x457e62;if(!_0x5a641e||_0x5a641e===_0x4ff534(0x1c6))return{};let _0x2b4802=_0x5a641e[_0x4ff534(0x204)](/\.([0#]+)/),_0x42f004=(_0x2b4802==null||(_0x35601b=_0x2b4802[0x1])==null?void 0x0:_0x35601b[_0x4ff534(0x297)])??0x0;if(_0x5a641e[_0x4ff534(0x378)]('%'))return{'decimalPlaces':_0x42f004,'numberFormat':_0x4ff534(0x1b8)};let _0x4e2e9c=(_0x457e62=Object[_0x4ff534(0x13c)](br)[_0x4ff534(0x11d)](([,_0x2fc435])=>_0x5a641e[_0x4ff534(0x378)](_0x2fc435)))==null?void 0x0:_0x457e62[0x0];return _0x4e2e9c?{'currency':_0x4e2e9c,'decimalPlaces':_0x42f004,'numberFormat':'currency'}:{'decimalPlaces':_0x42f004,'numberFormat':_0x5a641e[_0x4ff534(0x378)](',')?_0x4ff534(0x2cf):_0x4ff534(0x152)};}const Er={'center':_0x425045(0x20e),'left':_0x425045(0x15b),'right':'flex-end'};function Dr({dashboardId:_0x7a3351,unitId:_0x4fb146,widget:_0x29dfeb}){const _0x34a193=_0x425045;var _0x4f7f44,_0x1b394a,_0x4beab3,_0x568a18,_0x3e9576,_0x17db59,_0x483746,_0x19d12e,_0x1b087d;let _0x277cc3=_0x4acd92(_0x47b737),_0x1d0f62=_0x4acd92(_0x4ff898),_0x31edab=_0x4acd92(_0x4a0c45),_0x493812=_0x1f57f7(()=>({'hostType':_0x4b82c2[_0x34a193(0x264)],'unitId':_0x4fb146,'subUnitId':_0x7a3351,'shapeId':_0x29dfeb['id']}),[_0x7a3351,_0x4fb146,_0x29dfeb['id']]),[_0xacdef3,_0x202675]=_0xf9778b(()=>_0x277cc3[_0x34a193(0x30e)](_0x493812)),[_0x113798,_0x1c460b]=_0xf9778b(()=>{const _0x3ba4ef=_0x34a193;var _0x325338;return(_0x325338=_0x277cc3[_0x3ba4ef(0x370)](_0x493812))==null?void 0x0:_0x325338[_0x3ba4ef(0x18a)];}),[_0x33ea30,_0xcddd2e]=_0xf9778b(),_0x88e4f3=_0x26f122(null),_0x138bf0=_0x26f122(null),_0x14aec8=xr(_0x29dfeb);_0x1e9cac(()=>{const _0x25dea9=_0x34a193;let _0x23ae0f=_0x277cc3[_0x25dea9(0x38e)][_0x25dea9(0xf8)](_0x264c16=>{const _0x2cf93f=_0x25dea9;_0x264c16[_0x2cf93f(0xf5)]===_0x4fb146&&_0x264c16[_0x2cf93f(0x24b)]===_0x7a3351&&_0x264c16[_0x2cf93f(0x1d8)]===_0x29dfeb['id']&&(_0x202675(_0x264c16['presentation']),_0x1c460b(_0x264c16[_0x2cf93f(0x10d)][_0x2cf93f(0x18a)]));});return()=>_0x23ae0f[_0x25dea9(0x246)]();},[_0x7a3351,_0x277cc3,_0x493812,_0x4fb146,_0x29dfeb['id']]),_0x1e9cac(()=>{const _0x2919b5=_0x34a193;let _0x484b6b=_0x14aec8['backgroundImage'];if(!_0x484b6b||_0x484b6b['sourceType']!==_0x1ba6af[_0x2919b5(0x2a6)])return;let _0x115d14=_0x1d0f62['getImageSourceCache'](_0x484b6b[_0x2919b5(0xf4)],_0x484b6b['sourceType']);if(_0x115d14!=null&&_0x115d14['src'])return;let _0x21d79d=!0x0;return _0x1d0f62[_0x2919b5(0x3e9)](_0x484b6b[_0x2919b5(0xf4)])[_0x2919b5(0x12a)](_0xe3a4b5=>{const _0xfc760f=_0x2919b5;_0x21d79d&&_0xcddd2e({'source':_0x484b6b[_0xfc760f(0xf4)],'value':_0xe3a4b5});})[_0x2919b5(0x299)](()=>void 0x0),()=>{_0x21d79d=!0x1;};},[_0x14aec8['backgroundImage'],_0x1d0f62]);let _0x27678a=((_0x4f7f44=_0x14aec8[_0x34a193(0x16b)])==null?void 0x0:_0x4f7f44[_0x34a193(0x23f)])===_0x1ba6af[_0x34a193(0x2a6)]?((_0x1b394a=_0x1d0f62['getImageSourceCache'](_0x14aec8[_0x34a193(0x16b)]['source'],_0x14aec8[_0x34a193(0x16b)][_0x34a193(0x23f)]))==null?void 0x0:_0x1b394a['src'])??((_0x33ea30==null?void 0x0:_0x33ea30['source'])===_0x14aec8[_0x34a193(0x16b)]['source']?_0x33ea30[_0x34a193(0x18a)]:''):((_0x4beab3=_0x14aec8[_0x34a193(0x16b)])==null?void 0x0:_0x4beab3[_0x34a193(0xf4)])??'',_0x3ecb15=_0x29dfeb[_0x34a193(0x110)]['shapeText'],_0x51e090=_0x3ecb15&&_0x34a193(0x23c)in _0x3ecb15?(_0x568a18=_0x3ecb15[_0x34a193(0x23c)])==null?void 0x0:_0x568a18[_0x34a193(0x365)]:void 0x0,_0x456664=wr((_0xacdef3==null?void 0x0:_0xacdef3[_0x34a193(0xdd)])??'',_0x113798,_0x14aec8),_0x300ecb=_0x29dfeb[_0x34a193(0x110)]['fill'],_0x131481=_0x29dfeb[_0x34a193(0x110)][_0x34a193(0x1d9)],_0x1b0973=_0x51e090==null||(_0x3e9576=_0x51e090[_0x34a193(0x113)])==null?void 0x0:_0x3e9576[_0x34a193(0x286)],_0x1a8e3b=_0x29dfeb['description']??_0x29dfeb[_0x34a193(0x2fd)]??'';return _0x1e9cac(()=>{const _0x3201fa=_0x34a193;let _0x24908c=_0x88e4f3['current'],_0x16d880=_0x138bf0[_0x3201fa(0x311)];if(!_0x24908c||!_0x16d880)return;let _0x83e91b=()=>{const _0x42945e=_0x3201fa;if(_0x14aec8['fontSizeMode']===_0x42945e(0x215)||!_0x24908c[_0x42945e(0x259)]||!_0x24908c[_0x42945e(0x2c2)]){_0x16d880[_0x42945e(0x12d)][_0x42945e(0x2c7)]=_0x14aec8['fontSize']+'px';return;}let _0x57fb2b=0x1,_0x5bbcb4=0x48,_0x3523f0=_0x57fb2b;for(;_0x57fb2b<=_0x5bbcb4;){let _0x5e9564=Math['floor']((_0x57fb2b+_0x5bbcb4)/0x2);_0x16d880[_0x42945e(0x12d)][_0x42945e(0x2c7)]=_0x5e9564+'px',_0x16d880[_0x42945e(0xfe)]<=_0x24908c[_0x42945e(0x259)]&&_0x16d880['scrollHeight']<=_0x24908c[_0x42945e(0x2c2)]?(_0x3523f0=_0x5e9564,_0x57fb2b=_0x5e9564+0x1):_0x5bbcb4=_0x5e9564-0x1;}_0x16d880[_0x42945e(0x12d)][_0x42945e(0x2c7)]=_0x3523f0+'px';};if(_0x83e91b(),typeof ResizeObserver>'u')return;let _0x476da4=new ResizeObserver(_0x83e91b);return _0x476da4['observe'](_0x24908c),()=>_0x476da4['disconnect']();},[_0x14aec8[_0x34a193(0x2c7)],_0x14aec8['fontSizeMode'],_0x456664]),_0x53776f(_0x34a193(0x1e1),{'data-dashboard-formula-shape':_0x29dfeb['id'],'className':_0x34a193(0x16e),'style':{'backgroundColor':((_0x17db59=_0x29dfeb[_0x34a193(0x294)])==null?void 0x0:_0x17db59['backgroundColor'])??((_0x300ecb==null?void 0x0:_0x300ecb[_0x34a193(0x40f)])===_0x4cca06[_0x34a193(0x1cb)]?_0x300ecb['color']??void 0x0:void 0x0),'border':(_0x131481==null?void 0x0:_0x131481[_0x34a193(0x305)])===_0x4cf17b[_0x34a193(0x415)]?(_0x131481['width']??0x1)+'px\x20solid\x20'+(_0x131481[_0x34a193(0x394)]??_0x34a193(0x1c4)):void 0x0,'borderRadius':_0x29dfeb[_0x34a193(0x333)]===_0x11bc35['RoundRect']?0xc:void 0x0,'color':((_0x483746=_0x29dfeb['appearance'])==null?void 0x0:_0x483746[_0x34a193(0x425)])??(_0xacdef3==null?void 0x0:_0xacdef3['color'])??(_0x1b0973==null||(_0x19d12e=_0x1b0973['cl'])==null?void 0x0:_0x19d12e[_0x34a193(0x41f)])??void 0x0,'fontWeight':_0x1b0973!=null&&_0x1b0973['bl']?0x258:void 0x0,'textAlign':_0x14aec8[_0x34a193(0x368)]},'children':[_0x27678a&&_0x46ec10(_0x34a193(0x1bc),{'src':_0x27678a,'alt':'','aria-hidden':_0x34a193(0x2dd),'className':'univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','style':{'objectFit':((_0x1b087d=_0x14aec8[_0x34a193(0x16b)])==null?void 0x0:_0x1b087d['fit'])??'cover'}}),_0x53776f(_0x34a193(0x1e1),{'className':_0x34a193(0x276),'children':[_0x1a8e3b&&_0x46ec10(_0x34a193(0x1e1),{'data-dashboard-formula-description':!0x0,'className':_0x34a193(0x17c),'children':_0x1a8e3b}),_0x46ec10(_0x34a193(0x1e1),{'ref':_0x88e4f3,'data-dashboard-formula-value':!0x0,'aria-label':_0x1a8e3b||_0x31edab['t'](_0x34a193(0x1da)),'className':_0x34a193(0x252),'style':{'justifyContent':Er[_0x14aec8[_0x34a193(0x368)]]},'children':_0x46ec10('span',{'ref':_0x138bf0,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x14aec8[_0x34a193(0x272)],'className':'univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','children':_0x456664})})]})]});}function Y(_0x5a653d,_0x20481d){return function(_0x1e6094,_0x4527e3){_0x20481d(_0x1e6094,_0x4527e3,_0x5a653d);};}function Or(_0x4e6e62,_0x40e97d,_0x5a4ede,_0x10ec3a){const _0x1de73c=_0x425045;var _0x308cc4=arguments[_0x1de73c(0x297)],_0x13c553=_0x308cc4<0x3?_0x40e97d:_0x10ec3a===null?_0x10ec3a=Object[_0x1de73c(0x36d)](_0x40e97d,_0x5a4ede):_0x10ec3a,_0x145bd4;if(typeof Reflect==_0x1de73c(0x1aa)&&typeof Reflect[_0x1de73c(0x35b)]==_0x1de73c(0x30a))_0x13c553=Reflect['decorate'](_0x4e6e62,_0x40e97d,_0x5a4ede,_0x10ec3a);else{for(var _0x5d9bea=_0x4e6e62[_0x1de73c(0x297)]-0x1;_0x5d9bea>=0x0;_0x5d9bea--)(_0x145bd4=_0x4e6e62[_0x5d9bea])&&(_0x13c553=(_0x308cc4<0x3?_0x145bd4(_0x13c553):_0x308cc4>0x3?_0x145bd4(_0x40e97d,_0x5a4ede,_0x13c553):_0x145bd4(_0x40e97d,_0x5a4ede))||_0x13c553);}return _0x308cc4>0x3&&_0x13c553&&Object[_0x1de73c(0x3ce)](_0x40e97d,_0x5a4ede,_0x13c553),_0x13c553;}let kr=class{constructor(_0x5cd83c,_0x52a80,_0x37b503){const _0x3ae1c4=_0x425045;this[_0x3ae1c4(0x2bc)]=_0x5cd83c,this[_0x3ae1c4(0x171)]=_0x52a80,this['_renderModelManager']=_0x37b503;}['createDomChartInstance'](){const _0x544c05=_0x425045;return this['_renderModelManager'][_0x544c05(0x176)](_0x28fe7d[_0x544c05(0x23d)],this['_createContext']());}['createRenderInput'](_0x111af0){const _0x39e8c0=_0x425045;let _0x4b0538=_0x111af0[_0x39e8c0(0x3db)][_0x39e8c0(0x244)];if(!_0x4b0538)throw Error(_0x39e8c0(0xef)+_0x111af0[_0x39e8c0(0x25e)]+_0x39e8c0(0x2d1));let _0x163a69=this[_0x39e8c0(0x2bc)]['getDirection']();return{'config':_0x4b0538,'style':_0x2f4795({..._0x111af0[_0x39e8c0(0x3db)][_0x39e8c0(0x12d)],'runtime':_0x111af0[_0x39e8c0(0x3db)]['getRuntimeContext'](_0x163a69),'direction':_0x163a69},_0x4b0538['type'])};}['_createContext'](){const _0x506ea8=_0x425045;return{'resolveHostStyle':({style:_0x23d746})=>_0x36e543({'style':_0x23d746,'getRenderColor':_0xfb9435=>this[_0x506ea8(0x171)][_0x506ea8(0x2bb)](_0xfb9435)}),'resolveRenderBackgroundColor':({hostStyle:_0x26829a})=>_0x26829a[_0x506ea8(0x181)]};}};kr=Or([Y(0x0,_0x4d55af(_0x4a0c45)),Y(0x1,_0x4d55af(_0x1856b6)),Y(0x2,_0x43577d)],kr);function Ar(_0x2acfcb,_0x594287){const _0x4d4bec=_0x425045;var _0x265624;_0x2acfcb[_0x4d4bec(0x12d)][_0x4d4bec(0x160)]=_0x594287[_0x4d4bec(0x181)]??_0x4d4bec(0x1a3),_0x2acfcb['style'][_0x4d4bec(0x2b1)]=(_0x265624=_0x594287[_0x4d4bec(0x2b1)])!=null&&_0x265624[_0x4d4bec(0x394)]&&_0x594287[_0x4d4bec(0x2b1)][_0x4d4bec(0x20d)]?_0x594287[_0x4d4bec(0x2b1)][_0x4d4bec(0x20d)]+'px\x20solid\x20'+_0x594287[_0x4d4bec(0x2b1)][_0x4d4bec(0x394)]:'',_0x2acfcb[_0x4d4bec(0x12d)][_0x4d4bec(0x202)]=_0x594287['radius']?_0x594287[_0x4d4bec(0x20a)]+'px':'',_0x2acfcb[_0x4d4bec(0x12d)]['overflow']=_0x4d4bec(0x197),_0x2acfcb['style'][_0x4d4bec(0x1a1)]=_0x4d4bec(0x39b);}function jr(_0xdfe23e){'@babel/helpers - typeof';const _0xf08121=_0x425045;return jr=typeof Symbol==_0xf08121(0x30a)&&typeof Symbol[_0xf08121(0x266)]=='symbol'?function(_0x31f99f){return typeof _0x31f99f;}:function(_0x2ac2c0){const _0x1be55b=_0xf08121;return _0x2ac2c0&&typeof Symbol=='function'&&_0x2ac2c0[_0x1be55b(0x406)]===Symbol&&_0x2ac2c0!==Symbol[_0x1be55b(0x184)]?_0x1be55b(0x40a):typeof _0x2ac2c0;},jr(_0xdfe23e);}function Mr(_0x7555b5,_0x1bf093){const _0x504791=_0x425045;if(jr(_0x7555b5)!=_0x504791(0x1aa)||!_0x7555b5)return _0x7555b5;var _0x43c821=_0x7555b5[Symbol[_0x504791(0x3a2)]];if(_0x43c821!==void 0x0){var _0x27373e=_0x43c821['call'](_0x7555b5,_0x1bf093||'default');if(jr(_0x27373e)!='object')return _0x27373e;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1bf093===_0x504791(0x337)?String:Number)(_0x7555b5);}function Nr(_0x46ac99){const _0x329f5f=_0x425045;var _0x11f218=Mr(_0x46ac99,_0x329f5f(0x337));return jr(_0x11f218)==_0x329f5f(0x40a)?_0x11f218:_0x11f218+'';}function Pr(_0x3b1281,_0x40d26a,_0x26d188){const _0x4eee48=_0x425045;return(_0x40d26a=Nr(_0x40d26a))in _0x3b1281?Object[_0x4eee48(0x3ce)](_0x3b1281,_0x40d26a,{'value':_0x26d188,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3b1281[_0x40d26a]=_0x26d188,_0x3b1281;}var Fr=class extends _0x2949ec{constructor(_0x178dfe,_0x23475f){const _0x14ac4e=_0x425045;super(),this[_0x14ac4e(0x25e)]=_0x178dfe,this[_0x14ac4e(0x3cc)]=_0x23475f,Pr(this,_0x14ac4e(0x201),_0x28fe7d['Dom']);}[_0x425045(0x13f)](){const _0x1de728=_0x425045;return{'width':Math[_0x1de728(0x1b0)](0x1,this[_0x1de728(0x3cc)][_0x1de728(0x259)]),'height':Math['max'](0x1,this['_element']['clientHeight'])};}[_0x425045(0x3a4)](_0x397488){const _0x3e27e0=_0x425045;Ar(this[_0x3e27e0(0x3cc)],_0x397488);}async[_0x425045(0x239)](){const _0x343dd8=_0x425045;return this[_0x343dd8(0x3cc)];}[_0x425045(0xf1)](){const _0x3f13ae=_0x425045;return this['_element'][_0x3f13ae(0x1ba)];}['syncLayout'](){}[_0x425045(0x1ac)](){}[_0x425045(0x262)](){}};function Ir({isRowDirection:_0x5978b6,runtime:_0x15842a}){const _0x4aec9c=_0x425045;let _0x103129=_0x26f122(null),_0x2aadd5=_0x4acd92(_0x4a0c45),_0x4b7233=_0x4acd92(_0x5e31f1),_0x24c904=_0x4acd92(kr),_0x3b0e53=_0x4acd92(_0x3f1b1a);return _0x1e9cac(()=>{const _0x190f6f=_0x2f30;let _0x1c5256=_0x103129[_0x190f6f(0x311)];if(!_0x1c5256)return;_0x1c5256['replaceChildren']();let {chartId:_0x5b05df,model:_0x40d091}=_0x15842a,_0xff9dce=_0x40d091[_0x190f6f(0x3b4)],_0x43de0f=new Fr(_0x5b05df,_0x1c5256),_0x25ff63=_0x24c904[_0x190f6f(0x189)](),_0x389d49=!0x1,_0x1562d0=null,_0x5b3715=null,_0x5ea081=null,_0x110a1a=null,_0x41e867=!0x1,_0x15e823=!0x1,_0x2b1721=Promise[_0x190f6f(0x307)]();_0x25ff63[_0x190f6f(0x39c)](_0x43de0f);let _0x53a9a9=()=>{const _0x45b9a2=_0x190f6f;var _0x5427b6,_0x39a550,_0x3ff593,_0x20853a;if(document['visibilityState']===_0x45b9a2(0x197)||(_0x5427b6=(_0x39a550=window)['matchMedia'])!=null&&(_0x5427b6=_0x5427b6['call'](_0x39a550,_0x45b9a2(0x119)))!=null&&_0x5427b6[_0x45b9a2(0x2cc)]||(_0x3ff593=(_0x20853a=window)['matchMedia'])!=null&&(_0x3ff593=_0x3ff593[_0x45b9a2(0x3de)](_0x20853a,_0x45b9a2(0x385)))!=null&&_0x3ff593[_0x45b9a2(0x2cc)]||!_0x1c5256[_0x45b9a2(0x1ba)])return!0x1;let _0x238ea6=_0x1c5256[_0x45b9a2(0x397)]();return _0x238ea6['width']>0x0&&_0x238ea6[_0x45b9a2(0x15c)]>0x0&&_0x238ea6[_0x45b9a2(0x353)]>0x0&&_0x238ea6['bottom']>0x0&&_0x238ea6[_0x45b9a2(0x34a)]<window[_0x45b9a2(0x237)]&&_0x238ea6[_0x45b9a2(0x2ba)]<window['innerHeight'];},_0x42b80b=()=>{const _0x12ee6c=_0x190f6f;_0x5b3715!==null&&clearTimeout(_0x5b3715),_0x1c5256[_0x12ee6c(0x173)][_0x12ee6c(0x25a)]=_0x12ee6c(0x2dd),_0x1c5256[_0x12ee6c(0x173)][_0x12ee6c(0x37c)]=String(_0x5b1e29),_0x5b3715=setTimeout(()=>{const _0x321c2f=_0x12ee6c;_0x5b3715=null,delete _0x1c5256[_0x321c2f(0x173)][_0x321c2f(0x25a)],delete _0x1c5256[_0x321c2f(0x173)]['baseChartDataAnimationDuration'];},_0x5b1e29);},_0xca5cbe=_0x100453=>{const _0x2ecd9f=_0x190f6f;if(_0x389d49)return;if(_0x1562d0!==null&&(clearTimeout(_0x1562d0),_0x1562d0=null),!_0x40d091[_0x2ecd9f(0x244)]){_0x15e823||=_0x100453;return;}_0x1c5256['dataset'][_0x2ecd9f(0x20c)]=String(_0x40d091[_0x2ecd9f(0x20c)]),_0x1c5256[_0x2ecd9f(0x173)][_0x2ecd9f(0x3af)]=String(_0x5978b6);let _0x363939=_0x24c904[_0x2ecd9f(0x413)](_0x15842a),_0x5d3fa9={'chartId':_0x5b05df,'config':_0x363939['config'],'style':_0x363939[_0x2ecd9f(0x12d)]};_0x2b1721=_0x2b1721[_0x2ecd9f(0x12a)](async()=>{const _0x516299=_0x2ecd9f;_0x389d49||(_0x1c5256[_0x516299(0x173)][_0x516299(0x41c)]=String(Number(_0x1c5256[_0x516299(0x173)]['renderRevision']??0x0)+0x1),_0x100453&&_0x5ea081&&_0x25ff63['renderTransition']&&_0x53a9a9()?(await _0x25ff63[_0x516299(0x2f4)](_0x5ea081,_0x5d3fa9,{'duration':_0x5b1e29}),_0x389d49||_0x42b80b()):await _0x25ff63['render'](_0x5d3fa9),_0x5ea081=_0x5d3fa9);})[_0x2ecd9f(0x299)](_0x12cb0d=>_0x4b7233[_0x2ecd9f(0x331)](_0x2ecd9f(0x146),_0x12cb0d));},_0x2e9c5d=(_0x49c922=!0x1)=>{_0x15e823||=_0x49c922,!_0x41e867&&(_0x41e867=!0x0,queueMicrotask(()=>{_0x41e867=!0x1;let _0xe2fdf3=_0x15e823;_0x15e823=!0x1,_0xca5cbe(_0xe2fdf3);}));},_0x16df44=[_0xff9dce[_0x190f6f(0x241)][_0x190f6f(0xf8)](_0x2c8847=>{let _0x39edf2=JSON['stringify'](_0x2c8847);_0x110a1a!=null&&_0x110a1a!==_0x39edf2&&_0x2e9c5d(!0x0),_0x110a1a=_0x39edf2;}),_0x40d091[_0x190f6f(0x130)][_0x190f6f(0xf8)](_0x532d93=>{_0x532d93&&_0x2e9c5d();}),_0x40d091['style$']['subscribe'](()=>_0x2e9c5d()),_0x2aadd5['direction$']['subscribe'](()=>_0x2e9c5d()),_0x511256([_0x3b0e53[_0x190f6f(0x38a)],_0x3b0e53[_0x190f6f(0x2e4)]])['pipe'](_0x4c3b7e(0x1))[_0x190f6f(0xf8)](()=>_0x2e9c5d())],_0x3c093a=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x377ac3=_0x190f6f;_0x389d49||(_0x43de0f[_0x377ac3(0x2da)](),_0x1562d0!==null&&clearTimeout(_0x1562d0),_0x1562d0=setTimeout(()=>_0x2e9c5d(),0x64));});return _0x3c093a==null||_0x3c093a['observe'](_0x1c5256),()=>{const _0x5c369d=_0x190f6f;_0x389d49=!0x0,_0x1562d0!==null&&clearTimeout(_0x1562d0),_0x5b3715!==null&&clearTimeout(_0x5b3715),delete _0x1c5256[_0x5c369d(0x173)][_0x5c369d(0x25a)],delete _0x1c5256[_0x5c369d(0x173)]['baseChartDataAnimationDuration'],_0x3c093a==null||_0x3c093a['disconnect'](),_0x16df44[_0x5c369d(0x3ff)](_0x52c657=>_0x52c657[_0x5c369d(0x246)]()),_0x25ff63[_0x5c369d(0x251)](),_0x43de0f[_0x5c369d(0x251)](),_0x1c5256[_0x5c369d(0xdc)]();};},[_0x5978b6,_0x2aadd5,_0x4b7233,_0x24c904,_0x15842a,_0x3b0e53]),_0x46ec10(_0x4aec9c(0x1e1),{'ref':_0x103129,'data-u-comp':_0x4aec9c(0x182),'className':_0x4aec9c(0x3d7)});}function Lr({filters:_0x2e132b,onRuntimeChange:_0x5121e5,unitId:_0x1725da,widget:_0x25a4c5}){const _0x2d8694=_0x425045;let _0x22bf3b=_0x4acd92(_0x4ce5e0),_0x20f85f=_0x4acd92(_0x4a0c45),_0x2f1db1=_0x4acd92(_0x5e31f1),_0x21cb84=_0x4acd92(_0x2952ef),[_0x5be030,_0x15021c]=_0xf9778b(null),[_0x579f9d,_0x8a3dec]=_0xf9778b(!0x1),[_0x1ad004,_0x140c73]=_0xf9778b(null),_0x479285=_0x26f122(_0x2d8694(0x3aa)+_0x184bc2(0x8)),_0x2e1a86=_0x22bf3b[_0x2d8694(0x102)](_0x1725da,_0x4b82c2[_0x2d8694(0x264)]),_0x544224=_0x2e1a86==null?void 0x0:_0x2e1a86['getSnapshot']()[_0x2d8694(0x344)][_0x25a4c5[_0x2d8694(0x220)]],_0x4cc918=_0x544224==null?void 0x0:_0x544224[_0x2d8694(0x3ef)][_0x25a4c5[_0x2d8694(0x28e)]],_0x19490f=Rr(_0x4cc918);if(_0x1e9cac(()=>{const _0x334b03=_0x2d8694;if(!_0x19490f)return;let _0x47a70d=_0x479285[_0x334b03(0x311)];return _0x21cb84[_0x334b03(0x148)](_0x47a70d,{'unitId':_0x1725da,'tableId':_0x25a4c5[_0x334b03(0x220)],'viewId':_0x25a4c5[_0x334b03(0x28e)],'filters':[]}),()=>{const _0x10b2fa=_0x334b03;_0x21cb84[_0x10b2fa(0x33f)](_0x1725da,_0x47a70d),_0x5121e5==null||_0x5121e5(_0x25a4c5['id'],null);};},[_0x19490f,_0x5121e5,_0x21cb84,_0x1725da,_0x25a4c5['id'],_0x25a4c5[_0x2d8694(0x28e)],_0x25a4c5[_0x2d8694(0x220)]]),_0x1e9cac(()=>{const _0x2af7fa=_0x2d8694;if(!Rr(_0x4cc918))return;let _0x3e4c8e=!0x0,_0x931cbc=_0x25a4c5[_0x2af7fa(0x3e7)]??_0x4cc918['config'][_0x2af7fa(0x3e7)],_0x43bca3={'unitId':_0x1725da,'tableId':_0x25a4c5[_0x2af7fa(0x220)],'viewId':_0x25a4c5[_0x2af7fa(0x28e)],'filters':[_0x4cc918[_0x2af7fa(0x1d6)]??null,..._0x2e132b]};return _0x21cb84[_0x2af7fa(0x42c)](_0x1725da,_0x479285[_0x2af7fa(0x311)],_0x43bca3,_0x931cbc)[_0x2af7fa(0x12a)](_0x38680d=>{const _0x2a574a=_0x2af7fa;if(!_0x3e4c8e||!_0x38680d)return;let _0x467fe3=_0x21cb84[_0x2a574a(0x3cd)](_0x1725da,_0x479285[_0x2a574a(0x311)])??null;_0x15021c(_0x38680d),_0x140c73(_0x467fe3),_0x8a3dec(!0x1),_0x5121e5==null||_0x5121e5(_0x25a4c5['id'],_0x467fe3);})[_0x2af7fa(0x299)](_0x4cdde7=>{const _0x324678=_0x2af7fa;_0x2f1db1[_0x324678(0x331)](_0x324678(0x3fb),_0x4cdde7),_0x3e4c8e&&(_0x15021c(null),_0x8a3dec(!0x0));}),()=>{_0x3e4c8e=!0x1;};},[_0x2e132b,_0x2f1db1,_0x5121e5,_0x21cb84,_0x1725da,_0x4cc918,_0x25a4c5[_0x2d8694(0x3e7)],_0x25a4c5['id'],_0x25a4c5[_0x2d8694(0x28e)],_0x25a4c5[_0x2d8694(0x220)]]),!Rr(_0x4cc918))return _0x46ec10('div',{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','children':_0x20f85f['t'](_0x2d8694(0x3bc))});let _0x3db156=_0x21cb84[_0x2d8694(0x3cd)](_0x1725da,_0x479285['current'])===_0x1ad004?_0x1ad004:null;return _0x5be030&&_0x3db156?_0x46ec10(Ir,{'isRowDirection':_0x3861f0((_0x25a4c5['chart']??_0x4cc918[_0x2d8694(0x244)][_0x2d8694(0x3e7)])[_0x2d8694(0x26b)]),'runtime':_0x3db156}):_0x46ec10(_0x2d8694(0x1e1),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','children':_0x20f85f['t'](_0x579f9d?'bases-dashboard-ui.pivot.calculationFailed':_0x2d8694(0x13d))});}function Rr(_0x3ed5ae){const _0x291cd3=_0x425045;return(_0x3ed5ae==null?void 0x0:_0x3ed5ae[_0x291cd3(0x3e8)])===_0x5e9757[_0x291cd3(0x390)]&&typeof _0x3ed5ae['config']=='object'&&_0x3ed5ae[_0x291cd3(0x244)]!==null&&_0x291cd3(0x27b)in _0x3ed5ae[_0x291cd3(0x244)]&&_0x291cd3(0x3e7)in _0x3ed5ae[_0x291cd3(0x244)];}const zr={'alignment':'left','fontSize':0x12,'fontSizeMode':'auto'};function Br(_0x4edbc8){const _0x42205a=_0x425045;return{...zr,..._0x4edbc8[_0x42205a(0x294)]};}function Vr(_0x5dce8b){const _0x4d1d71=_0x425045;var _0x431394;return((_0x431394=_0x5dce8b[_0x4d1d71(0x3a9)])==null?void 0x0:_0x431394[_0x4d1d71(0x31c)]['replace'](/\r\n$/,'')[_0x4d1d71(0xfb)](/\r/g,'\x0a'))??'';}function Hr(_0x480c89,_0x3e0dec){const _0x502dcd=_0x425045;var _0x156f20;let _0x400de9=_0x3e0dec['replace'](/\r\n|\r/g,'\x0a')['split']('\x0a'),_0x49f75f=_0x400de9[_0x502dcd(0x12b)]('\x0d')+'\x0d\x0a',_0x13c642=((_0x156f20=_0x480c89[_0x502dcd(0x3a9)])==null?void 0x0:_0x156f20[_0x502dcd(0x345)])??[],_0x4a10c8=new Set(_0x13c642['map'](_0x66c960=>_0x66c960[_0x502dcd(0x2bd)])),_0x210a6d=0x0,_0x42d4a9=_0x400de9[_0x502dcd(0x131)]((_0x6bc5a2,_0x432d47)=>{const _0x52b0a4=_0x502dcd;_0x210a6d+=_0x6bc5a2[_0x52b0a4(0x297)];let _0x27ad52={..._0x13c642[_0x432d47]??{'startIndex':_0x210a6d,'paragraphId':_0x2f90ed(_0x4a10c8)},'startIndex':_0x210a6d};return _0x210a6d+=0x1,_0x27ad52;});return{..._0x480c89,'body':{..._0x480c89[_0x502dcd(0x3a9)],'dataStream':_0x49f75f,'paragraphs':_0x42d4a9,'textRuns':[]}};}function Ur({widget:_0x15ce0e}){const _0x143fa5=_0x425045;let _0x2b8118=_0x4acd92(_0x3f1b1a),_0x4d1c2c=_0x4acd92(_0x4a0c45),_0x25aeb0=_0x1b22fe(()=>_0x2b8118[_0x143fa5(0x38a)],_0x2b8118[_0x143fa5(0x327)](),!0x1,[_0x2b8118]),_0x3d0046=_0x26f122(null),_0x20692f=_0x26f122(null),_0x4ca09b=Br(_0x15ce0e),_0x42066b=_0x4ca09b['backgroundColor']??_0x25aeb0[_0x143fa5(0x273)][0x0],_0x3a131b=_0x4ca09b[_0x143fa5(0x425)]??_0x25aeb0[_0x143fa5(0x273)][0x3e8],_0x1d7ddf=Vr(_0x15ce0e[_0x143fa5(0x39d)]);return _0x1e9cac(()=>{const _0x305827=_0x143fa5;let _0x3090b6=_0x3d0046[_0x305827(0x311)],_0x52d880=_0x20692f[_0x305827(0x311)];if(!_0x3090b6||!_0x52d880)return;let _0x43db81=()=>{const _0x1f322d=_0x305827;if(_0x4ca09b[_0x1f322d(0x272)]===_0x1f322d(0x215)||!_0x3090b6[_0x1f322d(0x259)]||!_0x3090b6[_0x1f322d(0x2c2)]){_0x52d880[_0x1f322d(0x12d)][_0x1f322d(0x2c7)]=_0x4ca09b['fontSize']+'px';return;}let _0x5e7418=0x8,_0xcb32ff=0x48,_0x2d37d7=_0x5e7418;for(;_0x5e7418<=_0xcb32ff;){let _0x2e4ddd=Math['floor']((_0x5e7418+_0xcb32ff)/0x2);_0x52d880['style']['fontSize']=_0x2e4ddd+'px',_0x52d880['scrollWidth']<=_0x3090b6[_0x1f322d(0x259)]&&_0x52d880[_0x1f322d(0x334)]<=_0x3090b6['clientHeight']?(_0x2d37d7=_0x2e4ddd,_0x5e7418=_0x2e4ddd+0x1):_0xcb32ff=_0x2e4ddd-0x1;}_0x52d880['style']['fontSize']=_0x2d37d7+'px';};if(_0x43db81(),typeof ResizeObserver>'u')return;let _0x5290db=new ResizeObserver(_0x43db81);return _0x5290db[_0x305827(0x3b9)](_0x3090b6),()=>_0x5290db[_0x305827(0x2e5)]();},[_0x4ca09b[_0x143fa5(0x2c7)],_0x4ca09b['fontSizeMode'],_0x1d7ddf]),_0x46ec10(_0x143fa5(0x1e1),{'data-dashboard-text-widget':_0x15ce0e['id'],'className':_0x143fa5(0x151),'style':{'backgroundColor':_0x42066b,'color':_0x3a131b},'children':_0x46ec10(_0x143fa5(0x1e1),{'ref':_0x3d0046,'data-dashboard-text-content':!0x0,'aria-label':_0x4d1c2c['t']('bases-dashboard-ui.dashboard.text'),'className':_0x143fa5(0x2c3),'children':_0x46ec10(_0x143fa5(0x1e1),{'ref':_0x20692f,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x4ca09b[_0x143fa5(0x272)],'className':_0x143fa5(0x21e),'style':{'textAlign':_0x4ca09b['alignment']},'children':_0x1d7ddf})})});}function Wr({dashboard:_0x3a27b2,editable:_0x308952=!0x0,onSelectWidget:_0x532295,renderWidget:_0x3f564d,renderWidgetActions:_0x4ca242,selectedWidgetId:_0x18e671,widgetLabel:_0x232954}){const _0x3c9dad=_0x425045;return _0x46ec10(_0x3c9dad(0x1e1),{'data-dashboard-scroll-container':!0x0,'className':_0x4ba74c(_0x3c9dad(0x3eb),_0x3d0337),'onClick':_0x308952?_0x4b24c3=>{const _0x249543=_0x3c9dad;if(!(_0x4b24c3[_0x249543(0x3d9)]instanceof Node)||!_0x4b24c3[_0x249543(0x1ca)][_0x249543(0x10c)](_0x4b24c3[_0x249543(0x3d9)]))return;let _0x482c0f=_0x4b24c3[_0x249543(0x3d9)]instanceof Element?_0x4b24c3[_0x249543(0x3d9)]:_0x4b24c3[_0x249543(0x3d9)][_0x249543(0x198)];_0x482c0f!=null&&_0x482c0f[_0x249543(0x2d6)](_0x249543(0x190))||_0x532295==null||_0x532295();}:void 0x0,'children':_0x46ec10(_0x3c9dad(0x1e1),{'data-dashboard-grid':!0x0,'className':_0x3c9dad(0x22b),'children':_0x3a27b2[_0x3c9dad(0x185)][_0x3c9dad(0x131)](_0x3d8050=>{const _0x4e62e8=_0x3c9dad;let _0x59515e=_0x3a27b2[_0x4e62e8(0x376)][_0x3d8050];if(!_0x59515e)return null;let _0x320dd0=Math['max'](0xb4,_0x59515e[_0x4e62e8(0x155)]['rowSpan']*_0x5182cb);return _0x53776f(_0x4e62e8(0x361),{'data-dashboard-widget':_0x59515e['id'],'aria-label':_0x59515e[_0x4e62e8(0x2fd)]??_0x232954(_0x59515e),'className':_0x4ba74c(_0x4e62e8(0x2de),_0x59515e['type']===_0x1cae1f[_0x4e62e8(0x2e3)]||_0x59515e[_0x4e62e8(0x3e8)]===_0x1cae1f[_0x4e62e8(0x325)]?_0x4e62e8(0xff):_0x4e62e8(0x19d),_0x308952&&_0x18e671===_0x59515e['id']?_0x4e62e8(0x249):_0x4e62e8(0x374)),'style':{'minHeight':_0x320dd0,'height':_0x320dd0},'tabIndex':_0x308952?0x0:void 0x0,'onClick':_0x308952?()=>_0x532295==null?void 0x0:_0x532295(_0x59515e['id']):void 0x0,'onFocus':_0x308952?()=>_0x532295==null?void 0x0:_0x532295(_0x59515e['id']):void 0x0,'children':[_0x308952&&_0x46ec10(_0x4e62e8(0x1e1),{'className':_0x4e62e8(0xf6),'children':_0x4ca242==null?void 0x0:_0x4ca242(_0x59515e)}),_0x46ec10('div',{'className':_0x4e62e8(0x26c),'children':_0x3f564d(_0x59515e)})]},_0x59515e['id']);})})});}let Gr=class extends _0x5a56d0{constructor(_0x1d4e33){const _0x4de075=_0x425045;super(_0x1d4e33),Pr(this,_0x4de075(0x3a0),null);}['executeChartUpdateConfig'](_0x2e3d36){}};Gr=Or([Y(0x0,_0x4d55af(_0x2e7e0d))],Gr);function Kr({children:_0x21837b}){return _0x46ec10(_0x57bc80,{'children':_0x21837b});}function qr(_0x2cb2dc){return _0x46ec10(_0x4ef009,{..._0x2cb2dc});}function Jr(_0x1255da){return _0x46ec10(_0x42fe6c,{..._0x1255da});}function Yr(_0x264885){return _0x46ec10(_0x18785c,{..._0x264885});}var Xr;const X={'axis':{..._0x2b8f2e,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x379325,'heatmap':_0x288154,'indicatorLine':_0x3e2ab8,'legend':_0x24a88c,'lineAndArea':_0x5380f7,'pareto':_0x35937b,'pie':_0x3a6db9,'radar':_0x259969,'relation':{..._0x585337,'useValueAsSymbolSize':!0x0},'series':{..._0xf1747d,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Xr=_0x2c243f[_0x425045(0x418)])==null?void 0x0:Xr[_0x425045(0x3ea)])??!0x1}},'style':_0x1bbce8,'titles':_0x4b3637,'trendline':_0x18f851,'waterfall':{..._0x2a4648,'useSubtotal':!0x0},'waterfallStyle':_0x26db14,'wordCloud':_0x2d171b},Zr=[_0x22cfd2['Line'],_0x22cfd2[_0x425045(0x3a6)],_0x22cfd2['WordCloud'],_0x22cfd2[_0x425045(0x2ab)],_0x22cfd2['Funnel'],_0x22cfd2['Relation'],_0x22cfd2['Sankey'],_0x22cfd2[_0x425045(0x2df)],_0x22cfd2[_0x425045(0x1ce)],_0x22cfd2[_0x425045(0x211)],_0x22cfd2['Histogram'],_0x22cfd2[_0x425045(0x231)],_0x22cfd2[_0x425045(0x310)],_0x22cfd2[_0x425045(0x118)],_0x22cfd2[_0x425045(0x410)]];function Qr(_0x3b8c6d){const _0xf7c965=_0x425045;let {config:_0x6f6f11,onChange:_0x439e86,runtime:_0x3ac66e,tableName:_0x2e4835}=_0x3b8c6d,_0x41aa97=_0x4acd92(Gr),_0x30c189=_0x4acd92(_0x4a0c45),[_0x21708b,_0x7cdf7b]=_0xf9778b(_0x4114fc['Data']),_0x348e0d=_0x1f57f7(()=>new _0x278c35(_0x3ac66e[_0xf7c965(0x3db)],{'commit':_0x4693f7=>{const _0x11e3da=_0xf7c965;var _0x5c7a69;let _0x50aad0=_0x3ac66e['model'],_0x45b03c=_0x1f96c7(_0x4693f7,{'series':(_0x5c7a69=_0x50aad0['config'])==null?void 0x0:_0x5c7a69['series'],'currentChartType':_0x50aad0[_0x11e3da(0x20c)],'currentStyle':_0x50aad0[_0x11e3da(0x12d)],'currentContext':_0x50aad0[_0x11e3da(0x147)],'currentDataAggregation':_0x50aad0['dataAggregation']});_0x439e86({'chart':$r(_0x6f6f11[_0x11e3da(0x3e7)],_0x45b03c)});}}),[_0x6f6f11[_0xf7c965(0x3e7)],_0x439e86,_0x3ac66e]),_0x304d59=_0x1f57f7(()=>_0x4e0311(_0xd33d42['map'](_0x14e4eb=>({..._0x14e4eb,'label':_0x30c189['t'](ri(_0x14e4eb[_0xf7c965(0x3c4)]))}))),[_0x30c189]);return _0x46ec10(_0x2bbf54,{'chartUIService':_0x41aa97,'hostAdapter':_0x348e0d,'children':_0x53776f(_0xf7c965(0x1e1),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x46ec10(_0x63d182,{'ariaLabel':_0x30c189['t'](_0xf7c965(0x275)),'className':_0xf7c965(0x341),'items':[{'label':_0x30c189['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0xf7c965(0x247),'value':_0x4114fc[_0xf7c965(0x11b)]},{'label':_0x30c189['t'](_0xf7c965(0x407)),'panelId':_0xf7c965(0x3f1),'value':_0x4114fc[_0xf7c965(0x277)]}],'value':_0x21708b,'onChange':_0x7cdf7b}),_0x21708b===_0x4114fc[_0xf7c965(0x11b)]?_0x46ec10(_0x1cd28c,{'id':'base-pivot-chart-setup','label':_0x30c189['t'](_0xf7c965(0x281)),'children':_0x53776f(_0xf7c965(0x1e1),{'className':_0xf7c965(0x3fd),'children':[_0x46ec10(_0x33d302,{'options':_0x304d59}),_0x46ec10(_0x3f515b,{}),_0x46ec10(_0x2ee830,{}),_0x46ec10(ei,{}),_0x46ec10(_0x32c27e,{}),_0x53776f(_0xf7c965(0x1e1),{'children':[_0x46ec10(_0x4c9395,{'title':_0x30c189['t'](_0xf7c965(0x3c0))}),_0x46ec10(_0x512832,{'disabled':!0x0,'value':_0x2e4835})]}),_0x46ec10(_0x41d279,{'orientationControl':_0x46ec10(_0x5bfdfa,{'size':_0xf7c965(0x3c8),'onClick':()=>_0x439e86({'chart':{..._0x6f6f11[_0xf7c965(0x3e7)],'orient':_0x6f6f11[_0xf7c965(0x3e7)][_0xf7c965(0x26b)]===_0xf7c965(0x1f2)?_0xf7c965(0x291):_0xf7c965(0x1f2)}}),'children':_0x30c189['t'](_0xf7c965(0x254))})}),_0x46ec10(_0x2b6e95,{}),_0x46ec10(_0x33caa5,{'defaultValues':X['waterfall']}),_0x53776f('div',{'children':[_0x46ec10(_0x4c9395,{'title':_0x30c189['t'](_0xf7c965(0x363))}),_0x46ec10(qr,{'value':_0x6f6f11[_0xf7c965(0x326)],'options':[{'value':_0xf7c965(0x143),'label':_0x30c189['t'](_0xf7c965(0x280))},{'value':_0xf7c965(0x3e7),'label':_0x30c189['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':'table','label':_0x30c189['t'](_0xf7c965(0x13a))}],'onChange':_0x2260f4=>{const _0x55470b=_0xf7c965;(_0x2260f4===_0x55470b(0x143)||_0x2260f4==='chart'||_0x2260f4===_0x55470b(0x1d7))&&_0x439e86({'displayMode':_0x2260f4});}})]})]})}):_0x46ec10(_0x1cd28c,{'id':'base-pivot-chart-style','label':_0x30c189['t'](_0xf7c965(0x407)),'children':_0x46ec10(ti,{})})]})});}function $r(_0x4a0b87,_0x3beba2){const _0x338c17=_0x425045;return{..._0x4a0b87,'type':_0x3beba2['chartType']??_0x4a0b87[_0x338c17(0x3e8)],'style':_0x3beba2[_0x338c17(0x12d)]??_0x4a0b87[_0x338c17(0x12d)],'context':_0x3beba2['context']??_0x4a0b87[_0x338c17(0x147)],'dataAggregation':_0x3beba2[_0x338c17(0x179)]??_0x4a0b87[_0x338c17(0x179)]};}function ei(){const _0x65a0fc=_0x425045;let _0x3bfefa=_0x188dc1();return _0x46ec10(_0x306610,{'visible':Zr[_0x65a0fc(0x115)](_0x155af2=>!_0x55db12[_0x65a0fc(0x302)](_0x3bfefa,_0x155af2))});}function Z(_0x1ca048){return _0x53776f(_0x48080d,{'id':_0x1ca048['id'],'children':[_0x46ec10(_0x44bedc,{'children':_0x1ca048['label']}),_0x46ec10(_0x46ca04,{'children':_0x1ca048['children']})]});}function ti(){const _0x4a4e00=_0x425045;let _0x4a472c=_0x4acd92(_0x4a0c45),_0x1faa45=_0x188dc1(),_0x54824c=_0x10db6e(),[_0x4a5e6f,_0x114bd6]=_0xf9778b(null),_0x195402=_0x55db12[_0x4a4e00(0x302)](_0x1faa45,_0x22cfd2[_0x4a4e00(0xeb)]),_0x1dbcf9=_0x1faa45===_0x22cfd2[_0x4a4e00(0x3a6)],_0x59f082=_0x1faa45===_0x22cfd2['WordCloud'],_0x5df4f4=_0x1faa45===_0x22cfd2[_0x4a4e00(0x22d)],_0x2911d4=_0x55db12[_0x4a4e00(0x302)](_0x1faa45,_0x22cfd2['Bubble']),_0x3acdd1=_0x1faa45===_0x22cfd2[_0x4a4e00(0x38b)],_0x3eeba6=_0x1faa45===_0x22cfd2[_0x4a4e00(0x429)],_0x140ac2=_0x1faa45===_0x22cfd2[_0x4a4e00(0x3f6)],_0x55404d=_0x1faa45===_0x22cfd2[_0x4a4e00(0x2df)],_0x3fb392=_0x243119(_0x1faa45,_0xfed3f8[_0x4a4e00(0x17e)])&&!_0x2911d4&&!_0x140ac2,_0x586f33=ni(_0x1faa45,_0x4a472c);return _0x53776f(_0x34920d,{'value':_0x4a5e6f,'onChange':_0x114bd6,'children':[_0x46ec10(Z,{'id':_0x597dbd['ChartStyle'],'label':_0x4a472c['t'](_0x4a4e00(0x1dd)),'children':_0x46ec10(_0x5642e7,{'defaultValues':X[_0x4a4e00(0x12d)]})}),_0x46ec10(Z,{'id':_0x597dbd[_0x4a4e00(0x399)],'label':_0x4a472c['t']('bases-dashboard-ui.chart.common.chartAndAxisTitles'),'children':_0x46ec10(_0x120f4b,{'commitMode':_0x4a4e00(0x2d3),'defaultValues':X['titles']})}),_0x3fb392&&_0x46ec10(Z,{'id':_0x597dbd[_0x4a4e00(0x154)],'label':_0x4a472c['t'](_0x4a4e00(0x140)),'children':_0x46ec10(_0x187ff8,{'defaultValues':X['series'],'NumberFormatField':_0x2c02d8})}),_0x3eeba6&&_0x46ec10(Z,{'id':_0x597dbd[_0x4a4e00(0x30c)],'label':_0x4a472c['t'](_0x4a4e00(0x2e9)),'children':_0x46ec10(_0x388262,{'defaultValues':X[_0x4a4e00(0x14e)],'getDefaultBucketName':({seriesName:_0x1cac0a,target:_0x29ac40})=>_0x29ac40===_0x4868ef[_0x4a4e00(0x263)]?_0x4a472c['t']('bases-dashboard-ui.chart.waterfall.subtotal'):_0x1cac0a?_0x1cac0a+'-('+_0x4a472c['t'](_0x4a4e00(0x1e0)+(_0x29ac40===_0x4868ef[_0x4a4e00(0x2c5)]?'waterfall.positive':_0x4a4e00(0x42d)))+')':'','NumberFormatField':_0x2c02d8})}),_0x140ac2&&_0x53776f(_0x461de9,{'children':[_0x46ec10(Z,{'id':_0x597dbd['ParetoBarSeries'],'label':_0x4a472c['t'](_0x4a4e00(0x21d)),'children':_0x46ec10(_0x100f7a,{'defaultValues':X[_0x4a4e00(0x153)],'NumberFormatField':_0x2c02d8,'showDataPointEditor':!0x0,'target':'barStyle'})}),_0x46ec10(Z,{'id':_0x597dbd['ParetoLineSeries'],'label':_0x4a472c['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':_0x46ec10(_0x100f7a,{'defaultValues':X['pareto'],'NumberFormatField':_0x2c02d8,'showDataPointEditor':!0x1,'target':_0x4a4e00(0x362)})})]}),_0x195402&&_0x46ec10(Z,{'id':_0x597dbd[_0x4a4e00(0x383)],'label':_0x4a472c['t'](_0x4a4e00(0x15d)),'children':_0x46ec10(_0x5217f9,{'defaultValues':X[_0x4a4e00(0x2c9)],'NumberFormatField':_0x2c02d8})}),_0x59f082&&_0x46ec10(Z,{'id':_0x597dbd['WordCloud'],'label':_0x4a472c['t'](_0x4a4e00(0xf7)),'children':_0x46ec10(_0x9c371a,{'defaultValues':X[_0x4a4e00(0x234)]})}),_0x1dbcf9&&_0x46ec10(Z,{'id':_0x597dbd['Radar'],'label':_0x4a472c['t'](_0x4a4e00(0x2fe)),'children':_0x46ec10(_0x250da3,{'defaultValues':X[_0x4a4e00(0x3cb)]})}),_0x5df4f4&&_0x46ec10(Z,{'id':_0x597dbd[_0x4a4e00(0x22d)],'label':_0x4a472c['t']('bases-dashboard-ui.chart.section.funnel'),'children':_0x46ec10(_0x27341e,{'defaultValues':X[_0x4a4e00(0x137)],'gapControl':_0x4a4e00(0x1be)})}),_0x55404d&&_0x46ec10(Z,{'id':_0x597dbd[_0x4a4e00(0x2df)],'label':_0x4a472c['t'](_0x4a4e00(0x340)),'children':_0x46ec10(_0x57aed4,{'defaultValues':X[_0x4a4e00(0x436)]})}),_0x3acdd1&&_0x46ec10(Z,{'id':_0x597dbd['Relation'],'label':_0x4a472c['t']('bases-dashboard-ui.chart.section.relation'),'children':_0x46ec10(_0x20b35a,{'defaultValues':X[_0x4a4e00(0x3da)]})}),_0x2f121b(_0x1faa45)&&_0x46ec10(Z,{'id':_0x597dbd['LineAndArea'],'label':_0x4a472c['t']('bases-dashboard-ui.chart.section.lineAndArea'),'children':_0x46ec10(_0x2846ee,{'defaultValues':X[_0x4a4e00(0x320)],'lineStyleControl':_0x4a4e00(0x328)})}),_0x243119(_0x1faa45,_0xfed3f8[_0x4a4e00(0x375)])&&_0x46ec10(Z,{'id':_0x597dbd[_0x4a4e00(0x375)],'label':_0x4a472c['t'](_0x4a4e00(0x3ae)),'children':_0x46ec10(_0x36f7ba,{'defaultValues':X[_0x4a4e00(0x30d)]})}),_0x243119(_0x1faa45,_0xfed3f8[_0x4a4e00(0x379)])&&_0x53776f(_0x461de9,{'children':[_0x46ec10(Z,{'id':_0x597dbd['HorizontalAxis'],'label':_0x4a472c['t']('bases-dashboard-ui.chart.common.horizontalAxis'),'children':_0x46ec10(_0x4cda27,{'axis':'x','defaultValues':X[_0x4a4e00(0x2f3)],'NumberFormatField':_0x2c02d8})}),_0x46ec10(Z,{'id':_0x597dbd[_0x4a4e00(0x18c)],'label':_0x4a472c['t'](_0x4a4e00(0x37a)),'children':_0x46ec10(_0x4cda27,{'axis':'y','defaultValues':X['axis'],'NumberFormatField':_0x2c02d8})}),_0x54824c&&_0x46ec10(Z,{'id':_0x597dbd[_0x4a4e00(0x1d4)],'label':_0x4a472c['t'](_0x4a4e00(0x313)),'children':_0x46ec10(_0x4cda27,{'axis':_0x4a4e00(0x2e7),'defaultValues':X[_0x4a4e00(0x2f3)],'NumberFormatField':_0x2c02d8})}),_0x46ec10(Z,{'id':_0x597dbd['GridlinesAndTicks'],'label':_0x4a472c['t'](_0x4a4e00(0x3e5)),'children':_0x46ec10(_0x2dba0a,{'defaultValues':X[_0x4a4e00(0x2f3)]})})]}),_0x243119(_0x1faa45,_0xfed3f8['IndicatorLine'])&&_0x46ec10(Z,{'id':_0x597dbd[_0x4a4e00(0x23a)],'label':_0x4a472c['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x46ec10(_0x363d62,{'defaultValues':X[_0x4a4e00(0x1cf)]})}),_0x37eeaa(_0x1faa45)&&_0x46ec10(Z,{'id':_0x597dbd[_0x4a4e00(0x419)],'label':_0x4a472c['t'](_0x4a4e00(0x1e2)),'children':_0x46ec10(_0x592ac5,{'defaultValues':X[_0x4a4e00(0x149)]})}),_0x586f33&&_0x46ec10(Z,{'id':_0x586f33['id'],'label':_0x586f33[_0x4a4e00(0x31b)],'children':_0x46ec10(_0x4c1bd2,{})})]});}function ni(_0x5d2ff1,_0x56b652){const _0x58abd9=_0x425045;let _0x120081={[_0x22cfd2[_0x58abd9(0x211)]]:{'id':_0x597dbd[_0x58abd9(0x211)],'localeKey':_0x58abd9(0xee)},[_0x22cfd2[_0x58abd9(0x39e)]]:{'id':_0x597dbd['Histogram'],'localeKey':'bases-dashboard-ui.chart.section.histogram'},[_0x22cfd2['Treemap']]:{'id':_0x597dbd['Treemap'],'localeKey':'bases-dashboard-ui.chart.section.treemap'},[_0x22cfd2['Sunburst']]:{'id':_0x597dbd[_0x58abd9(0x310)],'localeKey':'bases-dashboard-ui.chart.section.sunburst'},[_0x22cfd2[_0x58abd9(0x118)]]:{'id':_0x597dbd[_0x58abd9(0x118)],'localeKey':'bases-dashboard-ui.chart.section.gauge'},[_0x22cfd2[_0x58abd9(0x410)]]:{'id':_0x597dbd[_0x58abd9(0x410)],'localeKey':'bases-dashboard-ui.chart.section.chord'}}[_0x5d2ff1];return _0x120081?{'id':_0x120081['id'],'label':_0x56b652['t'](_0x120081['localeKey'])}:null;}function ri(_0x10deb2){const _0x2a9060=_0x425045;return _0x2a9060(0x420)+_0x10deb2;}function ii({onChange:_0x37e915,onEditData:_0x106a44,runtime:_0x152d41,sourceChart:_0x47093e,sourceName:_0x538331,widget:_0x3801fc}){const _0x43bcda=_0x425045;let _0x1cda8c=_0x4acd92(Gr),_0x210de0=_0x4acd92(_0x4a0c45),[_0x15da4b,_0x5e0d03]=_0xf9778b(_0x4114fc[_0x43bcda(0x11b)]),_0x4d2522=_0x3801fc[_0x43bcda(0x3e7)]??_0x47093e,_0x10eb8a=_0x1f57f7(()=>new _0x278c35(_0x152d41[_0x43bcda(0x3db)],{'commit':_0x88bf33=>{const _0x331e1f=_0x43bcda;var _0x6800da;let _0x5c21d9=_0x152d41['model'],_0x56ed79=_0x1f96c7(_0x88bf33,{'series':(_0x6800da=_0x5c21d9[_0x331e1f(0x244)])==null?void 0x0:_0x6800da[_0x331e1f(0x3b2)],'currentChartType':_0x5c21d9['chartType'],'currentStyle':_0x5c21d9[_0x331e1f(0x12d)],'currentContext':_0x5c21d9[_0x331e1f(0x147)],'currentDataAggregation':_0x5c21d9[_0x331e1f(0x179)]});_0x37e915({..._0x3801fc,'chart':$r(_0x4d2522,_0x56ed79)})[_0x331e1f(0x299)](()=>void 0x0);}}),[_0x4d2522,_0x37e915,_0x152d41,_0x3801fc]),_0x2e7d48=_0x1f57f7(()=>_0x4e0311(_0xd33d42[_0x43bcda(0x131)](_0x20c377=>({..._0x20c377,'label':_0x210de0['t'](ai(_0x20c377[_0x43bcda(0x3c4)]))}))),[_0x210de0]);return _0x46ec10(_0x74e14c,{'chartUIService':_0x1cda8c,'hostAdapter':_0x10eb8a,'children':_0x53776f(_0x43bcda(0x1e1),{'data-dashboard-chart-inspector':!0x0,'className':_0x43bcda(0x3f0),'children':[_0x46ec10(_0x63d182,{'ariaLabel':_0x210de0['t'](_0x43bcda(0x275)),'className':_0x43bcda(0x341),'items':[{'label':_0x210de0['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0x43bcda(0x33b),'value':_0x4114fc[_0x43bcda(0x11b)]},{'label':_0x210de0['t'](_0x43bcda(0x407)),'panelId':_0x43bcda(0x170),'value':_0x4114fc[_0x43bcda(0x277)]}],'value':_0x15da4b,'onChange':_0x5e0d03}),_0x15da4b===_0x4114fc[_0x43bcda(0x11b)]?_0x46ec10(_0x1cd28c,{'id':_0x43bcda(0x33b),'label':_0x210de0['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x53776f(_0x43bcda(0x1e1),{'className':_0x43bcda(0x3fd),'children':[_0x46ec10(_0x33d302,{'options':_0x2e7d48}),_0x46ec10(_0x3f515b,{}),_0x46ec10(_0x2ee830,{}),_0x46ec10(ei,{}),_0x46ec10(_0x32c27e,{}),_0x53776f(_0x43bcda(0x1e1),{'children':[_0x46ec10(_0x4c9395,{'title':_0x210de0['t']('bases-dashboard-ui.dashboardInspector.dataSource')}),_0x46ec10(_0x512832,{'disabled':!0x0,'value':_0x538331}),_0x46ec10(_0x5bfdfa,{'className':'univer-mt-2\x20univer-w-full','onClick':_0x106a44,'children':_0x210de0['t'](_0x43bcda(0x36f))})]})]})}):_0x46ec10(_0x1cd28c,{'id':'dashboard-chart-style','label':_0x210de0['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x46ec10(ti,{})})]})});}function ai(_0x30932f){return'bases-dashboard-ui.chart.chartTypes.'+_0x30932f;}const oi=[_0x425045(0x1ef),_0x425045(0x152),_0x425045(0x1b8),'currency',_0x425045(0x2cf),_0x425045(0x191)];function si({base:_0x13e724,onChange:_0x7cff03,onSelectBackgroundImage:_0x1e9357,widget:_0x47807b}){const _0x1f3726=_0x425045;var _0x170080;let _0x1815c2=_0x4acd92(_0x4a0c45),_0x35bc97=_0x4acd92(_0x3f1b1a),_0x590ef2=_0x1b22fe(()=>_0x35bc97[_0x1f3726(0x38a)],_0x35bc97['getCurrentTheme'](),!0x1,[_0x35bc97]),_0x1e9c02=_0x1b22fe(()=>_0x35bc97['darkMode$'],_0x35bc97[_0x1f3726(0x124)],!0x1,[_0x35bc97]),[_0x593145,_0x46eed7]=_0xf9778b(_0x1f3726(0x16c)),[_0x19714a,_0xc75e68]=_0xf9778b(!0x1),_0x569ea5=xr(_0x47807b),_0x2ae16b=_0x13e724['getSnapshot']()[_0x1f3726(0x344)][_0x47807b[_0x1f3726(0x220)]],_0x27afd7=_0x2ae16b==null?void 0x0:_0x2ae16b[_0x1f3726(0x428)][_0x1f3726(0x11d)](_0x51526e=>_0x2ae16b[_0x1f3726(0x3ef)][_0x51526e]),_0xf755f8=_0x27afd7?_0x2ae16b==null?void 0x0:_0x2ae16b['views'][_0x27afd7]:void 0x0,_0x2d3022=_0x2ae16b&&_0xf755f8?_0xcfce7a(_0x13e724[_0x1f3726(0x35f)](),_0x2ae16b,_0xf755f8)[_0x1f3726(0x131)](_0x458ff0=>({..._0x458ff0,'current':!0x1})):[],_0x5c606d=((_0x170080=_0x47807b[_0x1f3726(0x110)]['formulaBinding'])==null?void 0x0:_0x170080[_0x1f3726(0x424)])??'',_0x49b895=_0x5ce3f3=>_0x7cff03(Sr(_0x47807b,_0x5ce3f3))[_0x1f3726(0x299)](()=>void 0x0),_0xc2c621=_0x155dfc=>_0x7cff03({..._0x47807b,'description':_0x155dfc})['catch'](()=>void 0x0);return _0x53776f(_0x1f3726(0x1e1),{'data-dashboard-formula-inspector':!0x0,'className':_0x1f3726(0x3f0),'children':[_0x46ec10(_0x2a0f06,{'className':'univer-m-3','items':[{'value':_0x1f3726(0x16c),'label':_0x1815c2['t']('bases-dashboard-ui.dashboardInspector.data')},{'value':_0x1f3726(0x12d),'label':_0x1815c2['t'](_0x1f3726(0x396))}],'value':_0x593145,'onChange':_0x46eed7}),_0x46ec10(_0x1f3726(0x1e1),{'className':_0x1f3726(0x293),'children':_0x593145===_0x1f3726(0x16c)?_0x53776f('div',{'className':_0x1f3726(0x417),'children':[_0x46ec10(ci,{'label':_0x1815c2['t'](_0x1f3726(0x3f7)),'children':_0x46ec10(_0x512832,{'value':_0x47807b['description']??_0x47807b[_0x1f3726(0x2fd)]??'','onChange':_0xc2c621,'onBlur':_0x5495b8=>_0xc2c621(_0x5495b8[_0x1f3726(0x3d9)]['value'])})}),_0x46ec10(ci,{'label':_0x1815c2['t'](_0x1f3726(0x300)),'children':_0x46ec10(_0x512832,{'disabled':!0x0,'value':(_0x2ae16b==null?void 0x0:_0x2ae16b[_0x1f3726(0x10b)])??_0x1815c2['t'](_0x1f3726(0x3bc))})}),_0x53776f(ci,{'label':_0x1815c2['t']('bases-dashboard-ui.dashboardInspector.formula'),'children':[_0x46ec10(_0x512832,{'disabled':!0x0,'value':_0x3863e(_0x5c606d,_0x2d3022)}),_0x46ec10(_0x5bfdfa,{'className':_0x1f3726(0x22e),'onClick':()=>_0xc75e68(!0x0),'children':_0x1815c2['t'](_0x1f3726(0x188))})]})]}):_0x53776f(_0x1f3726(0x1e1),{'className':_0x1f3726(0x417),'children':[_0x46ec10(_0x5cd6d5,{'emptyLabel':_0x1815c2['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x1815c2['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x1e9c02?_0x590ef2[_0x1f3726(0x273)][0x384]:_0x590ef2['gray'][0x0],'resetLabel':_0x1815c2['t'](_0x1f3726(0x21b)),'value':_0x569ea5[_0x1f3726(0x160)]??null,'onChange':_0x655876=>_0x49b895({'backgroundColor':_0x655876??void 0x0})}),_0x53776f(ci,{'label':_0x1815c2['t']('bases-dashboard-ui.dashboardInspector.backgroundImage'),'children':[_0x53776f(_0x1f3726(0x1e1),{'className':_0x1f3726(0x1ff),'children':[_0x53776f(_0x5bfdfa,{'className':'univer-flex-1','onClick':()=>{const _0x2f79b4=_0x1f3726;_0x1e9357()[_0x2f79b4(0x12a)](_0x2fa629=>{const _0x12ea09=_0x2f79b4;if(_0x2fa629){var _0x219192;return _0x49b895({'backgroundImage':{..._0x2fa629,'fit':((_0x219192=_0x569ea5[_0x12ea09(0x16b)])==null?void 0x0:_0x219192['fit'])??_0x12ea09(0x2cd)}});}})[_0x2f79b4(0x299)](()=>void 0x0);},'children':[_0x46ec10(_0x5a006e,{}),_0x569ea5[_0x1f3726(0x16b)]?_0x1815c2['t'](_0x1f3726(0x369)):_0x1815c2['t']('bases-dashboard-ui.dashboardInspector.uploadImage')]}),_0x569ea5[_0x1f3726(0x16b)]&&_0x46ec10(_0x5bfdfa,{'aria-label':_0x1815c2['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x1815c2['t'](_0x1f3726(0x159)),'onClick':()=>_0x49b895({'backgroundImage':void 0x0}),'children':_0x46ec10(_0x1bdc33,{})})]}),_0x569ea5['backgroundImage']&&_0x46ec10(_0x2a0f06,{'className':'univer-mt-2','items':[{'value':_0x1f3726(0x2cd),'label':_0x1815c2['t'](_0x1f3726(0x1e4))},{'value':'contain','label':_0x1815c2['t'](_0x1f3726(0x1d3))}],'value':_0x569ea5['backgroundImage'][_0x1f3726(0x128)],'onChange':_0xe5b567=>_0x49b895({'backgroundImage':_0x569ea5[_0x1f3726(0x16b)]?{..._0x569ea5['backgroundImage'],'fit':_0xe5b567}:void 0x0})})]}),_0x46ec10(_0x5cd6d5,{'emptyLabel':_0x1815c2['t'](_0x1f3726(0x227)),'label':_0x1815c2['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x1e9c02?_0x590ef2['gray'][0x32]:_0x590ef2[_0x1f3726(0x273)][0x3e8],'resetLabel':_0x1815c2['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x569ea5[_0x1f3726(0x425)]??null,'onChange':_0x2dc611=>_0x49b895({'textColor':_0x2dc611??void 0x0})}),_0x46ec10(ci,{'label':_0x1815c2['t'](_0x1f3726(0x3dc)),'children':_0x46ec10(_0x2a0f06,{'items':[{'value':'left','label':_0x1815c2['t'](_0x1f3726(0x27e))},{'value':_0x1f3726(0x20e),'label':_0x1815c2['t'](_0x1f3726(0x400))},{'value':_0x1f3726(0x353),'label':_0x1815c2['t'](_0x1f3726(0x10f))}],'value':_0x569ea5['alignment'],'onChange':_0x347b4a=>_0x49b895({'alignment':_0x347b4a})})}),_0x53776f(ci,{'label':_0x1815c2['t'](_0x1f3726(0x18d)),'children':[_0x46ec10(_0x2a0f06,{'items':[{'value':'auto','label':_0x1815c2['t'](_0x1f3726(0x3be))},{'value':_0x1f3726(0x215),'label':_0x1815c2['t'](_0x1f3726(0x408))}],'value':_0x569ea5[_0x1f3726(0x272)],'onChange':_0x5b5f22=>_0x49b895({'fontSizeMode':_0x5b5f22})}),_0x569ea5[_0x1f3726(0x272)]===_0x1f3726(0x215)&&_0x46ec10(_0x510d74,{'className':_0x1f3726(0x3d3),'min':0xc,'max':0x78,'value':_0x569ea5[_0x1f3726(0x2c7)],'onChange':_0x512617=>_0x49b895({'fontSize':_0x512617??0x28,'fontSizeMode':'custom'})})]}),_0x46ec10(ci,{'label':_0x1815c2['t'](_0x1f3726(0xdb)),'children':_0x46ec10(qr,{'value':_0x569ea5[_0x1f3726(0x26f)],'options':[{'value':_0x1f3726(0x1ef),'label':_0x1815c2['t'](_0x1f3726(0x14a))},{'value':'number','label':_0x1815c2['t'](_0x1f3726(0x217))},{'value':_0x1f3726(0x1b8),'label':_0x1815c2['t'](_0x1f3726(0x2ec))},{'value':_0x1f3726(0x2dc),'label':_0x1815c2['t']('bases-dashboard-ui.dashboardInspector.currency')},{'value':_0x1f3726(0x2cf),'label':_0x1815c2['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':_0x1f3726(0x191),'label':_0x1815c2['t']('bases-dashboard-ui.dashboardInspector.compact')}],'onChange':_0x4ad067=>{let _0x379c56=oi['find'](_0x3438b4=>_0x3438b4===_0x4ad067);_0x379c56&&_0x49b895({'numberFormat':_0x379c56});}})}),_0x569ea5[_0x1f3726(0x26f)]===_0x1f3726(0x2dc)&&_0x46ec10(ci,{'label':_0x1815c2['t'](_0x1f3726(0x2ad)),'children':_0x46ec10(_0x512832,{'value':_0x569ea5[_0x1f3726(0x2dc)],'onChange':_0x2867b3=>_0x49b895({'currency':_0x2867b3['slice'](0x0,0x3)[_0x1f3726(0x278)]()})})}),_0x569ea5[_0x1f3726(0x26f)]!==_0x1f3726(0x1ef)&&_0x46ec10(ci,{'label':_0x1815c2['t'](_0x1f3726(0x42a)),'children':_0x46ec10(_0x510d74,{'min':0x0,'max':0x8,'value':_0x569ea5[_0x1f3726(0x11e)],'onChange':_0x258ba2=>_0x49b895({'decimalPlaces':_0x258ba2??0x0})})})]})}),_0x19714a&&_0x46ec10(Yr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x46ec10(_0x427c3a,{'tables':_0x2d3022,'formula':_0x3863e(_0x5c606d,_0x2d3022),'onCancel':()=>_0xc75e68(!0x1),'onSave':_0x10df21=>{const _0x2824f4=_0x1f3726;let _0x38d6ba=_0x47807b[_0x2824f4(0x110)][_0x2824f4(0x200)]??{'formula':''};return _0x7cff03({..._0x47807b,'shapeData':{..._0x47807b['shapeData'],'formulaBinding':{..._0x38d6ba,'formula':_0x307895(_0x10df21,_0x2d3022)}}})['then'](()=>_0xc75e68(!0x1))[_0x2824f4(0x299)](()=>void 0x0);}})})]});}function ci({children:_0x3be8b7,label:_0x417ee7}){const _0x16822b=_0x425045;return _0x53776f(_0x16822b(0x1e1),{'role':'group','aria-label':_0x417ee7,'className':_0x16822b(0x1f4),'children':[_0x46ec10(_0x16822b(0x223),{'children':_0x417ee7}),_0x3be8b7]});}function li({disabled:_0x11cda4,fields:_0x4ee4c4,filter:_0x2d50e8,onChange:_0x2daebc}){const _0x5ad672=_0x425045;let _0x584fba=_0x4acd92(_0x3be974)[_0x5ad672(0x380)]??null,[_0x140326,_0x940e1f]=_0xf9778b(null),_0x5aba0a=_0x4acd92(_0x4a0c45),_0x9eb1a=(_0x2d50e8==null?void 0x0:_0x2d50e8['conditions'])??[];if(!_0x9eb1a[_0x5ad672(0x297)])return _0x53776f(_0x5ad672(0x1e1),{'className':_0x5ad672(0x187),'children':[_0x46ec10(_0x3b4ec0,{'className':_0x5ad672(0xd8)}),_0x46ec10(_0x5ad672(0x223),{'className':'univer-text-sm','children':_0x5aba0a['t'](_0x5ad672(0x104))})]});let _0x5ea254=_0x140326==null?void 0x0:_0x9eb1a[_0x140326],_0x125832=_0x4ee4c4[_0x5ad672(0x11d)](_0x109fa3=>_0x109fa3['id']===(_0x5ea254==null?void 0x0:_0x5ea254[_0x5ad672(0x2db)]));return _0x53776f(_0x5ad672(0x1e1),{'className':_0x5ad672(0x150),'children':[_0x9eb1a['map']((_0x1a3252,_0x5f39d7)=>{const _0x434887=_0x5ad672;var _0x2fe2b8;return _0x53776f(_0x5bfdfa,{'disabled':_0x11cda4,'onClick':()=>_0x940e1f(_0x5f39d7),'children':[_0x46ec10(_0x434887(0x223),{'children':((_0x2fe2b8=_0x4ee4c4[_0x434887(0x11d)](_0x11344f=>_0x11344f['id']===_0x1a3252[_0x434887(0x2db)]))==null?void 0x0:_0x2fe2b8['name'])??_0x1a3252[_0x434887(0x2db)]}),_0x46ec10(_0x434887(0x223),{'className':'univer-truncate','children':String(_0x1a3252[_0x434887(0x1fa)]??'')})]},_0x1a3252[_0x434887(0x2db)]+'-'+_0x5f39d7);}),_0x125832&&_0x5ea254&&_0x140326!=null&&_0x584fba&&_0x1d5fdf(_0x46ec10(_0x5c677b,{'field':_0x125832,'value':_0x5ea254[_0x5ad672(0x1fa)],'onClose':()=>_0x940e1f(null),'onSave':_0x2aed32=>{const _0x24821c=_0x5ad672;_0x2daebc({'conjunction':(_0x2d50e8==null?void 0x0:_0x2d50e8['conjunction'])??_0x18fd74[_0x24821c(0x127)],'conditions':_0x9eb1a[_0x24821c(0x131)]((_0x453ca5,_0x5a4c58)=>_0x5a4c58===_0x140326?{..._0x453ca5,'operand':_0x2aed32}:_0x453ca5)}),_0x940e1f(null);}}),_0x584fba)]});}function ui({fields:_0x270b49,filter:_0x29e321,onChange:_0x2c15fd,onClear:_0x517052}){const _0x54d670=_0x425045;let _0x5257c2=_0x4acd92(_0x4a0c45);return _0x53776f(_0x54d670(0x1e1),{'children':[_0x46ec10(_0x4c20b5,{'fields':_0x270b49,'value':_0x29e321??{'conjunction':_0x18fd74[_0x54d670(0x127)],'conditions':[]},'onChange':_0x2c15fd}),_0x46ec10(_0x5bfdfa,{'onClick':_0x517052,'children':_0x5257c2['t'](_0x54d670(0x21b))})]});}function di({base:_0x2325a7,chartRuntime:_0x5e9c7a,onChange:_0x4a5dc8,onClose:_0xb82f2f,onSelectBackgroundImage:_0x117aee,onSelectImage:_0x269290,unitId:_0x8b3b62,widget:_0x5b7348}){const _0xf0d62e=_0x425045;let _0x78373d=_0x4acd92(_0x5e43a5),_0x51589e=_0x4acd92(_0x4a0c45),_0x474261=_0x2325a7['getSnapshot'](),_0x413446=_0xf0d62e(0x220)in _0x5b7348?_0x474261[_0xf0d62e(0x344)][_0x5b7348['tableId']]:void 0x0,_0x40eed8=_0x5b7348[_0xf0d62e(0x3e8)]===_0x1cae1f[_0xf0d62e(0x3d5)]?_0x413446==null?void 0x0:_0x413446[_0xf0d62e(0x3ef)][_0x5b7348[_0xf0d62e(0x28e)]]:void 0x0,_0x3c43e2=_0x51589e['t'](vi(_0x5b7348)),_0x115387=_0x53776f('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':[_0x5b7348[_0xf0d62e(0x3e8)]===_0x1cae1f[_0xf0d62e(0x3d5)]&&(_i(_0x40eed8)&&_0x5e9c7a?_0x46ec10(ii,{'runtime':_0x5e9c7a,'sourceChart':_0x40eed8[_0xf0d62e(0x244)][_0xf0d62e(0x3e7)],'sourceName':((_0x413446==null?void 0x0:_0x413446[_0xf0d62e(0x10b)])??'')+'\x20/\x20'+_0x40eed8[_0xf0d62e(0x10b)],'widget':_0x5b7348,'onChange':_0x4a5dc8,'onEditData':()=>{const _0x40001d=_0xf0d62e;_0x78373d[_0x40001d(0x1c7)](_0x3d0012['id'],{'unitId':_0x8b3b62,'tableId':_0x5b7348[_0x40001d(0x220)],'viewId':_0x5b7348[_0x40001d(0x28e)]})[_0x40001d(0x299)](()=>void 0x0);}}):_0x46ec10(hi,{'message':_i(_0x40eed8)?_0x51589e['t'](_0xf0d62e(0x3ab)):_0x51589e['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})),_0x5b7348[_0xf0d62e(0x3e8)]===_0x1cae1f[_0xf0d62e(0x325)]&&_0x46ec10(si,{'base':_0x2325a7,'widget':_0x5b7348,'onChange':_0x4a5dc8,'onSelectBackgroundImage':_0x117aee}),_0x5b7348[_0xf0d62e(0x3e8)]===_0x1cae1f[_0xf0d62e(0x268)]&&_0x46ec10(pi,{'base':_0x2325a7,'onChange':_0x4a5dc8,'widget':_0x5b7348}),_0x5b7348['type']===_0x1cae1f[_0xf0d62e(0x142)]&&_0x46ec10(mi,{'onChange':_0x4a5dc8,'widget':_0x5b7348}),_0x5b7348[_0xf0d62e(0x3e8)]===_0x1cae1f[_0xf0d62e(0x2e3)]&&_0x46ec10(fi,{'onChange':_0x4a5dc8,'onSelectImage':_0x269290,'widget':_0x5b7348})]});return _0x46ec10(_0x3a70e3,{'title':_0x3c43e2,'onClose':_0xb82f2f,'children':_0x115387});}function fi({onChange:_0x5b47d4,onSelectImage:_0x4459fd,widget:_0xf38ca7}){const _0x430ebc=_0x425045;let _0x2dea99=_0x4acd92(_0x4a0c45);return _0x53776f(_0x430ebc(0x1e1),{'className':_0x430ebc(0x29a),'children':[_0x53776f(_0x5bfdfa,{'className':_0x430ebc(0x111),'onClick':()=>_0x4459fd()[_0x430ebc(0x12a)](_0x41b6ec=>_0x41b6ec&&_0x5b47d4({..._0xf38ca7,'source':_0x41b6ec[_0x430ebc(0xf4)],'sourceType':_0x41b6ec[_0x430ebc(0x23f)],'alt':_0x41b6ec['name']}))[_0x430ebc(0x299)](()=>void 0x0),'children':[_0x46ec10(_0x5a006e,{}),_0x2dea99['t'](_0x430ebc(0x369))]}),_0x53776f(_0x430ebc(0x31b),{'className':_0x430ebc(0x1f4),'children':[_0x46ec10('span',{'children':_0x2dea99['t'](_0x430ebc(0x371))}),_0x46ec10(_0x2a0f06,{'items':[{'value':_0x430ebc(0x2cd),'label':_0x2dea99['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x430ebc(0x330),'label':_0x2dea99['t'](_0x430ebc(0x2ee))},{'value':_0x430ebc(0x288),'label':_0x2dea99['t'](_0x430ebc(0x30f))}],'value':_0xf38ca7['displayMode']??'cover','onChange':_0x8ea1f6=>_0x5b47d4({..._0xf38ca7,'displayMode':_0x8ea1f6})[_0x430ebc(0x299)](()=>void 0x0)})]})]});}function pi({base:_0x4cd3cf,onChange:_0x47179a,widget:_0x52428c}){const _0x7314f6=_0x425045;let _0xf9ba95=_0x4cd3cf[_0x7314f6(0x35f)]()[_0x7314f6(0x344)][_0x52428c[_0x7314f6(0x220)]],_0x322dca=_0xf9ba95==null?void 0x0:_0xf9ba95['viewOrder']['find'](_0x4b9c47=>_0xf9ba95[_0x7314f6(0x3ef)][_0x4b9c47]),_0x47baaa=_0x322dca?_0xf9ba95==null?void 0x0:_0xf9ba95[_0x7314f6(0x3ef)][_0x322dca]:void 0x0,_0x15657c=_0xf9ba95&&_0x47baaa?_0xb59ce2(_0xf9ba95,_0x47baaa):[];return _0x46ec10(ui,{'fields':_0x15657c,'filter':_0x52428c['filter'],'onChange':_0x4b5c57=>_0x47179a({..._0x52428c,'filter':_0x4b5c57})['catch'](()=>void 0x0),'onClear':()=>_0x47179a({..._0x52428c,'filter':null})[_0x7314f6(0x299)](()=>void 0x0)});}function mi({onChange:_0x1f6780,widget:_0x63f6e8}){const _0x3e4755=_0x425045;let _0x39e5c6=_0x4acd92(_0x4a0c45),_0x12c809=_0x4acd92(_0x3f1b1a),_0x437bdb=_0x1b22fe(()=>_0x12c809[_0x3e4755(0x38a)],_0x12c809[_0x3e4755(0x327)](),!0x1,[_0x12c809]),_0xc85629=Br(_0x63f6e8),_0x1135f4=_0x310cfb=>_0x1f6780({..._0x63f6e8,'appearance':{..._0xc85629,..._0x310cfb}})[_0x3e4755(0x299)](()=>void 0x0);return _0x53776f(_0x3e4755(0x1e1),{'className':_0x3e4755(0x225),'children':[_0x46ec10(_0x8edc67,{'className':_0x3e4755(0x156),'defaultValue':Vr(_0x63f6e8[_0x3e4755(0x39d)]),'rows':0x8,'onBlur':_0x39d784=>_0x1f6780({..._0x63f6e8,'document':Hr(_0x63f6e8[_0x3e4755(0x39d)],_0x39d784[_0x3e4755(0x3d9)]['value'])})[_0x3e4755(0x299)](()=>void 0x0)}),_0x46ec10(_0x5cd6d5,{'emptyLabel':_0x39e5c6['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x39e5c6['t'](_0x3e4755(0x282)),'pickerFallbackValue':_0x437bdb['gray'][0x0],'resetLabel':_0x39e5c6['t'](_0x3e4755(0x21b)),'value':_0xc85629[_0x3e4755(0x160)]??null,'onChange':_0x50d665=>_0x1135f4({'backgroundColor':_0x50d665??void 0x0})}),_0x46ec10(_0x5cd6d5,{'emptyLabel':_0x39e5c6['t'](_0x3e4755(0x227)),'label':_0x39e5c6['t'](_0x3e4755(0x227)),'pickerFallbackValue':_0x437bdb[_0x3e4755(0x273)][0x3e8],'resetLabel':_0x39e5c6['t'](_0x3e4755(0x21b)),'value':_0xc85629[_0x3e4755(0x425)]??null,'onChange':_0x2366cf=>_0x1135f4({'textColor':_0x2366cf??void 0x0})}),_0x46ec10(gi,{'label':_0x39e5c6['t'](_0x3e4755(0x3dc)),'children':_0x46ec10(_0x2a0f06,{'items':[{'value':_0x3e4755(0x34a),'label':_0x39e5c6['t'](_0x3e4755(0x27e))},{'value':_0x3e4755(0x20e),'label':_0x39e5c6['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0x3e4755(0x353),'label':_0x39e5c6['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0xc85629[_0x3e4755(0x368)],'onChange':_0x5462dd=>_0x1135f4({'alignment':_0x5462dd})})}),_0x53776f(gi,{'label':_0x39e5c6['t'](_0x3e4755(0x18d)),'children':[_0x46ec10(_0x2a0f06,{'items':[{'value':_0x3e4755(0x366),'label':_0x39e5c6['t'](_0x3e4755(0x3be))},{'value':'custom','label':_0x39e5c6['t'](_0x3e4755(0x408))}],'value':_0xc85629[_0x3e4755(0x272)],'onChange':_0x2f798f=>_0x1135f4({'fontSizeMode':_0x2f798f})}),_0xc85629['fontSizeMode']===_0x3e4755(0x215)&&_0x46ec10(_0x510d74,{'className':'univer-mt-2','min':0xa,'max':0x78,'value':_0xc85629[_0x3e4755(0x2c7)],'onChange':_0x2917b8=>_0x1135f4({'fontSize':_0x2917b8??0x12,'fontSizeMode':'custom'})})]})]});}function hi({message:_0x2bbe2f}){const _0x2b861a=_0x425045;return _0x46ec10(_0x2b861a(0x1e1),{'className':'univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','children':_0x2bbe2f});}function gi({children:_0xd7ec07,label:_0x3a854b}){const _0x31daa7=_0x425045;return _0x53776f(_0x31daa7(0x1e1),{'role':_0x31daa7(0x108),'aria-':!0x0,'className':_0x31daa7(0x1f4),'children':[_0x46ec10(_0x31daa7(0x223),{'children':_0x3a854b}),_0xd7ec07]});}function _i(_0x1ebbb2){const _0x1830aa=_0x425045;return(_0x1ebbb2==null?void 0x0:_0x1ebbb2['type'])===_0x5e9757[_0x1830aa(0x390)]&&typeof _0x1ebbb2[_0x1830aa(0x244)]=='object'&&_0x1ebbb2['config']!==null&&_0x1830aa(0x27b)in _0x1ebbb2[_0x1830aa(0x244)]&&_0x1830aa(0x3e7)in _0x1ebbb2[_0x1830aa(0x244)];}function vi(_0x2c41fa){const _0x154be1=_0x425045;switch(_0x2c41fa['type']){case _0x1cae1f[_0x154be1(0x3d5)]:return _0x154be1(0x3a5);case _0x1cae1f['TableFilter']:return'bases-dashboard-ui.dashboard.tableFilter';case _0x1cae1f[_0x154be1(0x142)]:return _0x154be1(0x431);case _0x1cae1f[_0x154be1(0x2e3)]:return'bases-dashboard-ui.dashboard.image';case _0x1cae1f[_0x154be1(0x325)]:return _0x154be1(0x1da);}}function yi({onDelete:_0x232542,onEdit:_0x16621e,onMoveUp:_0xd42271,onMoveDown:_0x5a94d7}){const _0x58d59c=_0x425045;let [_0x832746,_0x3065be]=_0xf9778b(!0x1),_0x3ee8f9=_0x4acd92(_0x4a0c45),_0x135443=_0x3ee8f9['t'](_0x58d59c(0x1db)),_0x17735c=_0x3ee8f9['t'](_0x58d59c(0x316)),_0x20d2e6=_0x3ee8f9['t'](_0x58d59c(0x2c6)),_0x575c61=[{'type':'item','children':_0x53776f('span',{'className':_0x58d59c(0xfa),'children':[_0x46ec10(_0x3e9831,{'className':_0x58d59c(0x40d),'aria-hidden':_0x58d59c(0x2dd)}),_0x46ec10(_0x58d59c(0x223),{'children':_0x135443})]}),'onSelect':_0x16621e},..._0xd42271?[{'type':_0x58d59c(0x387),'children':_0x53776f(_0x58d59c(0x223),{'className':_0x58d59c(0xfa),'children':[_0x46ec10(_0x336982,{'className':'univer-size-4','aria-hidden':_0x58d59c(0x2dd)}),_0x46ec10(_0x58d59c(0x223),{'children':_0x3ee8f9['t'](_0x58d59c(0x29b))})]}),'onSelect':_0xd42271}]:[],..._0x5a94d7?[{'type':_0x58d59c(0x387),'children':_0x53776f(_0x58d59c(0x223),{'className':_0x58d59c(0xfa),'children':[_0x46ec10(_0x14482c,{'className':_0x58d59c(0x40d),'aria-hidden':'true'}),_0x46ec10(_0x58d59c(0x223),{'children':_0x3ee8f9['t'](_0x58d59c(0x3fe))})]}),'onSelect':_0x5a94d7}]:[],{'type':_0x58d59c(0x24f)},{'type':'item','variant':_0x58d59c(0x174),'children':_0x53776f('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x46ec10(_0x1bdc33,{'className':_0x58d59c(0x40d),'aria-hidden':_0x58d59c(0x2dd)}),_0x46ec10(_0x58d59c(0x223),{'children':_0x17735c})]}),'onSelect':_0x232542}];return _0x46ec10(_0x14ca1d,{'open':_0x832746,'onOpenChange':_0x3065be,'align':_0x58d59c(0xf3),'sideOffset':0x4,'items':_0x575c61[_0x58d59c(0x131)](_0x4ae2ec=>({..._0x4ae2ec,'className':_0x4ae2ec[_0x58d59c(0x3e8)]===_0x58d59c(0x387)?_0x58d59c(0x3c1):void 0x0})),'children':_0x46ec10(_0x5bfdfa,{'type':_0x58d59c(0x14d),'size':_0x58d59c(0x3c8),'variant':_0x58d59c(0xdd),'onPointerDown':_0x4b3956=>_0x4b3956[_0x58d59c(0x3f3)](),'onClick':()=>_0x3065be(_0x505c1c=>!_0x505c1c),'title':_0x20d2e6,'aria-label':_0x20d2e6,'className':_0x58d59c(0x336),'children':_0x46ec10(_0x4271ce,{'className':'univer-size-4','aria-hidden':_0x58d59c(0x2dd)})})});}function bi({dashboardId:_0x859df3,presentation:_0x23053a=!0x1,unitId:_0x40b33e}){const _0x6626d4=_0x425045;let _0x58ab85=_0x4acd92(_0x1c73d0),_0x363c1f=_0x4acd92(_0x5ceeef);_0x1b22fe(_0x363c1f[_0x6626d4(0x42b)],0x0);let _0x94b46a=_0x4acd92(_0x5e43a5),_0x497cda=_0x4acd92(_0x227826),_0x4fea3b=_0x4acd92(_0x4ff898),_0x40723b=_0x4acd92(_0x4ce5e0),_0x4c9a57=_0x4acd92(_0x4a0c45),_0x295a55=_0x4acd92(_0x4001b9),_0x21f53c=_0x4acd92(_0x473ea9),[_0x230807,_0x1eeff4]=_0xf9778b(!0x1),[_0x27803a,_0x459055]=_0xf9778b(),[_0x5948b5,_0x263419]=_0xf9778b(!0x1),[_0x1c7f7e,_0x70f6cd]=_0xf9778b(()=>new Map()),_0x4a9b62=_0x23f720((_0x3d82a5,_0x1f73e9)=>{_0x70f6cd(_0x59f9cc=>{const _0x198eaf=_0x2f30;let _0x151cfc=new Map(_0x59f9cc);return _0x1f73e9?_0x151cfc[_0x198eaf(0xf0)](_0x3d82a5,_0x1f73e9):_0x151cfc['delete'](_0x3d82a5),_0x151cfc;});},[]),_0x3ff3ef=_0x1b22fe(()=>_0x295a55['change$']['pipe'](_0x55d4cd(()=>_0x295a55['getDashboard'](_0x40b33e,_0x859df3))),_0x295a55[_0x6626d4(0x11f)](_0x40b33e,_0x859df3),!0x1,[_0x859df3,_0x295a55,_0x40b33e]),_0xa76b80=_0x40723b[_0x6626d4(0x102)](_0x40b33e,_0x4b82c2[_0x6626d4(0x264)]),_0x3b551a=_0x1b22fe(()=>_0x21f53c[_0x6626d4(0x283)],{'undos':0x0,'redos':0x0},!0x1,[_0x21f53c]),_0x404ca8=gr(_0x40b33e,_0x859df3);if(_0x1e9cac(()=>{const _0x3d6406=_0x6626d4;_0x40723b[_0x3d6406(0x421)](_0x40b33e),_0x40723b[_0x3d6406(0x403)](_0x40b33e);},[_0x40723b,_0x40b33e]),!_0x3ff3ef||!_0xa76b80)return null;let _0x2a000a={'unitId':_0x40b33e,'objectId':_0x2c66f9(_0x859df3),'objectType':_0x13e96b['BaseDashboard']},_0x22f081=(_0x387f7d,_0x3454bb)=>{const _0x1af9c4=_0x6626d4;let _0x2d83ef=[..._0x3ff3ef[_0x1af9c4(0x185)]],_0x31b540=_0x2d83ef[_0x1af9c4(0x265)](_0x387f7d),_0x2c54b2=_0x31b540+_0x3454bb;if(!(_0x31b540<0x0||_0x2c54b2<0x0||_0x2c54b2>=_0x2d83ef[_0x1af9c4(0x297)]))return[_0x2d83ef[_0x31b540],_0x2d83ef[_0x2c54b2]]=[_0x2d83ef[_0x2c54b2],_0x2d83ef[_0x31b540]],_0x94b46a[_0x1af9c4(0x1c7)](_0x3f980a['id'],{'unitId':_0x40b33e,'dashboard':{..._0x3ff3ef,'widgetOrder':_0x2d83ef}});},_0x301f7e=_0x776d47=>_0x94b46a['executeCommand'](_0x5bb522['id'],{'unitId':_0x40b33e,'dashboardId':_0x859df3,'widget':_0x776d47})[_0x6626d4(0x299)](()=>void 0x0),_0x4f6c9f=(_0x2dee32,_0x215088,_0x26e4f0)=>{const _0x2fa7fd=_0x6626d4;let _0x3c5a53=Math[_0x2fa7fd(0x1b0)](0x0,..._0x3ff3ef['widgetOrder']['flatMap'](_0x3a170d=>{const _0x2e63ef=_0x2fa7fd;var _0x371f96;let _0x54e185=(_0x371f96=_0x3ff3ef[_0x2e63ef(0x376)][_0x3a170d])==null?void 0x0:_0x371f96[_0x2e63ef(0x155)];return _0x54e185?[_0x54e185[_0x2e63ef(0x1f2)]+_0x54e185[_0x2e63ef(0xe1)]]:[];})),_0x11038a=_0x2fa7fd(0x105)+_0x184bc2(0x8),_0x50839b={'column':0x0,'row':_0x3c5a53,'columnSpan':_0x215088,'rowSpan':_0x26e4f0};switch(_0x2dee32[_0x2fa7fd(0x3e8)]){case _0x1cae1f[_0x2fa7fd(0x3d5)]:return _0x301f7e({..._0x2dee32,'id':_0x11038a,'layout':_0x50839b});case _0x1cae1f['TableFilter']:return _0x301f7e({..._0x2dee32,'id':_0x11038a,'layout':_0x50839b});case _0x1cae1f[_0x2fa7fd(0x142)]:return _0x301f7e({..._0x2dee32,'id':_0x11038a,'layout':_0x50839b});case _0x1cae1f[_0x2fa7fd(0x2e3)]:return _0x301f7e({..._0x2dee32,'id':_0x11038a,'layout':_0x50839b});case _0x1cae1f['FormulaShape']:return _0x301f7e({..._0x2dee32,'id':_0x11038a,'layout':_0x50839b});}},_0x40e19b=_0xa76b80[_0x6626d4(0x35f)](),_0x455d52=_0x40e19b[_0x6626d4(0x398)][_0x6626d4(0x222)](_0x147a4d=>{const _0x1fd79c=_0x6626d4;let _0x32e3d7=_0x40e19b[_0x1fd79c(0x344)][_0x147a4d];if(!_0x32e3d7)return[];let _0x7ca53e=_0x32e3d7[_0x1fd79c(0x428)]['flatMap'](_0x269602=>{const _0x4f46d8=_0x1fd79c;let _0x39d6f4=_0x32e3d7[_0x4f46d8(0x3ef)][_0x269602];return Oi(_0x39d6f4)?[{'type':_0x4f46d8(0x387),'children':_0x39d6f4['name'],'onSelect':()=>_0x4f6c9f({'type':_0x1cae1f[_0x4f46d8(0x3d5)],'tableId':_0x147a4d,'pivotViewId':_0x269602,'chart':{..._0x39d6f4[_0x4f46d8(0x244)]['chart']}},0x6,0xa)}]:[];});return[{'type':_0x1fd79c(0x235),'children':_0x32e3d7['name'],'options':[..._0x7ca53e,..._0x7ca53e[_0x1fd79c(0x297)]?[{'type':_0x1fd79c(0x24f)}]:[],{'type':_0x1fd79c(0x387),'children':_0x4c9a57['t'](_0x1fd79c(0x104)),'onSelect':()=>_0x4f6c9f({'type':_0x1cae1f[_0x1fd79c(0x268)],'tableId':_0x147a4d,'filter':null},0x6,0x8)}]}];}),_0xdc0e5f=[..._0x455d52,..._0x455d52[_0x6626d4(0x297)]?[{'type':_0x6626d4(0x24f)}]:[],{'type':_0x6626d4(0x387),'children':_0x4c9a57['t'](_0x6626d4(0x431)),'onSelect':()=>_0x4f6c9f({'type':_0x1cae1f[_0x6626d4(0x142)],'document':wi()},0x4,0x6)},{'type':_0x6626d4(0x387),'children':_0x4c9a57['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>Ti(_0x497cda)['then'](_0x409323=>_0x409323&&_0x4f6c9f({'type':_0x1cae1f[_0x6626d4(0x2e3)],'source':_0x409323[_0x6626d4(0xf4)],'sourceType':_0x409323[_0x6626d4(0x23f)],'alt':_0x409323[_0x6626d4(0x10b)],'displayMode':_0x6626d4(0x2cd)},0x4,0x6))},{'type':_0x6626d4(0x387),'children':_0x4c9a57['t'](_0x6626d4(0x1da)),'onSelect':()=>{const _0xd12647=_0x6626d4;let _0x44518e=_0x40e19b[_0xd12647(0x398)][_0xd12647(0x11d)](_0x96a0f0=>_0x40e19b[_0xd12647(0x344)][_0x96a0f0]);_0x44518e&&_0x4f6c9f({'type':_0x1cae1f[_0xd12647(0x325)],'tableId':_0x44518e,'shapeType':_0x11bc35[_0xd12647(0x17a)],'shapeData':_0x156510(),'description':_0x4c9a57['t'](_0xd12647(0x1da))},0x4,0x6);}}],_0x4d9afd=_0x27803a?_0x3ff3ef[_0x6626d4(0x376)][_0x27803a]:void 0x0,_0x276835=()=>_0x263419(_0x28996d=>!_0x28996d),_0x5155cb=_0x23053a||_0x5948b5,_0x455a8e=_0x404ca8&&!_0x5155cb;return _0x46ec10(Kr,{'children':_0x53776f(_0x6626d4(0x1e1),{'className':_0x6626d4(0x205)+(_0x5948b5?_0x6626d4(0x2f5):'univer-relative\x20univer-z-10')+_0x6626d4(0x347),'children':[_0x5948b5&&_0x46ec10(_0x5bfdfa,{'onClick':()=>_0x263419(!0x1),'children':_0x4c9a57['t'](_0x6626d4(0x250))}),!_0x5155cb&&_0x53776f(_0x6626d4(0x2a1),{'className':_0x6626d4(0x1bb),'children':[_0x46ec10(_0x3c79b2,{'className':_0x6626d4(0xe4)}),_0x46ec10('h2',{'className':_0x6626d4(0x3ca),'children':_0x3ff3ef[_0x6626d4(0x10b)]}),_0x363c1f[_0x6626d4(0x298)](_0x2a000a)&&_0x46ec10(_0x5bfdfa,{'variant':_0x6626d4(0xdd),'disabled':!_0x363c1f[_0x6626d4(0x28d)](_0x2a000a),'aria-label':_0x4c9a57['t'](_0x6626d4(0x165)),'onClick':()=>{const _0x5eb6bc=_0x6626d4;_0x55511b(_0x58ab85,{'target':_0x2a000a,'name':_0x3ff3ef[_0x5eb6bc(0x10b)],'commandId':_0x201c8f['id'],'exists':()=>!!_0x295a55[_0x5eb6bc(0x11f)](_0x40b33e,_0x859df3)});},'children':_0x46ec10(_0x49d229,{})}),_0x46ec10(_0x21edff,{'unitId':_0x40b33e}),_0x46ec10(_0x5bfdfa,{'type':_0x6626d4(0x14d),'size':_0x6626d4(0x3c8),'variant':'text','aria-label':_0x4c9a57['t']('bases-dashboard-ui.dashboard.undo'),'disabled':!_0x404ca8||_0x3b551a[_0x6626d4(0x3df)]===0x0,'onClick':()=>_0x94b46a[_0x6626d4(0x1c7)](_0x43f509['id'])[_0x6626d4(0x299)](()=>void 0x0),'children':_0x46ec10(_0x55c1c8,{})}),_0x46ec10(_0x5bfdfa,{'type':_0x6626d4(0x14d),'size':_0x6626d4(0x3c8),'variant':_0x6626d4(0xdd),'aria-label':_0x4c9a57['t']('bases-dashboard-ui.dashboard.redo'),'disabled':!_0x404ca8||_0x3b551a['redos']===0x0,'onClick':()=>_0x94b46a['executeCommand'](_0x408d54['id'])[_0x6626d4(0x299)](()=>void 0x0),'children':_0x46ec10(_0x3667aa,{})}),_0x46ec10(_0x5bfdfa,{'type':'button','size':_0x6626d4(0x3c8),'variant':_0x6626d4(0xdd),'aria-label':_0x4c9a57['t']('bases-dashboard-ui.dashboard.fullScreen'),'onClick':_0x276835,'children':_0x46ec10(_0x2d161a,{})}),_0x46ec10(Jr,{'items':_0xdc0e5f,'children':_0x53776f(_0x5bfdfa,{'variant':_0x6626d4(0x103),'disabled':!_0x404ca8,'children':[_0x46ec10(_0x5a006e,{}),_0x4c9a57['t'](_0x6626d4(0x10a))]})})]}),_0x53776f(_0x6626d4(0x1e1),{'className':_0x6626d4(0x1b7),'children':[_0x46ec10('div',{'className':_0x6626d4(0x1f0),'children':_0x46ec10(Wr,{'dashboard':_0x3ff3ef,'editable':_0x455a8e,'widgetLabel':_0x33ed22=>_0x4c9a57['t'](Di(_0x33ed22['type'])),'selectedWidgetId':_0x455a8e?_0x27803a:void 0x0,'onSelectWidget':_0x455a8e?_0x321647=>{_0x459055(_0x321647),_0x321647||_0x1eeff4(!0x1);}:void 0x0,'renderWidget':_0x42af7e=>_0x46ec10(xi,{'base':_0xa76b80,'dashboard':_0x3ff3ef,'unitId':_0x40b33e,'widget':_0x42af7e,'onChange':_0x301f7e,'onChartRuntimeChange':_0x4a9b62}),'renderWidgetActions':_0x129c00=>_0x46ec10(yi,{'onMoveUp':_0x3ff3ef[_0x6626d4(0x185)][_0x6626d4(0x265)](_0x129c00['id'])>0x0?()=>_0x22f081(_0x129c00['id'],-0x1):void 0x0,'onMoveDown':_0x3ff3ef[_0x6626d4(0x185)]['indexOf'](_0x129c00['id'])<_0x3ff3ef[_0x6626d4(0x185)][_0x6626d4(0x297)]-0x1?()=>_0x22f081(_0x129c00['id'],0x1):void 0x0,'onEdit':()=>{_0x459055(_0x129c00['id']),_0x1eeff4(!0x0);},'onDelete':()=>{const _0x5f3b68=_0x6626d4;_0x27803a===_0x129c00['id']&&(_0x459055(void 0x0),_0x1eeff4(!0x1)),_0x94b46a['executeCommand'](_0x353383['id'],{'unitId':_0x40b33e,'dashboardId':_0x859df3,'widgetId':_0x129c00['id']})[_0x5f3b68(0x299)](()=>void 0x0);}})})}),_0x455a8e&&_0x230807&&_0x4d9afd&&_0x46ec10(di,{'base':_0xa76b80,'chartRuntime':_0x1c7f7e[_0x6626d4(0x122)](_0x4d9afd['id']),'unitId':_0x40b33e,'widget':_0x4d9afd,'onChange':_0x301f7e,'onClose':()=>_0x1eeff4(!0x1),'onSelectBackgroundImage':()=>Ei(_0x4fea3b),'onSelectImage':()=>Ti(_0x497cda)})]})]})});}function xi({base:_0x41ef81,dashboard:_0x3fe52a,onChange:_0x1f5fb4,onChartRuntimeChange:_0x425361,unitId:_0x1216fc,widget:_0x516aa9}){const _0x45368c=_0x425045;let _0x13ad4b=_0x1f57f7(()=>_0x3fe52a[_0x45368c(0x185)][_0x45368c(0x222)](_0x46e1ce=>{const _0x58bb77=_0x45368c;let _0x5a7d58=_0x3fe52a[_0x58bb77(0x376)][_0x46e1ce];return(_0x5a7d58==null?void 0x0:_0x5a7d58[_0x58bb77(0x3e8)])===_0x1cae1f[_0x58bb77(0x268)]&&_0x5a7d58[_0x58bb77(0x220)]===('tableId'in _0x516aa9?_0x516aa9[_0x58bb77(0x220)]:'')&&_0x5a7d58[_0x58bb77(0x1d6)]?[_0x5a7d58['filter']]:[];}),[_0x3fe52a,_0x516aa9]);switch(_0x516aa9['type']){case _0x1cae1f[_0x45368c(0x3d5)]:return _0x46ec10(Lr,{'filters':_0x13ad4b,'unitId':_0x1216fc,'widget':_0x516aa9,'onRuntimeChange':_0x425361});case _0x1cae1f[_0x45368c(0x268)]:return _0x46ec10(li,{'fields':Si(_0x41ef81,_0x516aa9[_0x45368c(0x220)]),'filter':_0x516aa9[_0x45368c(0x1d6)],'onChange':_0x2aafd8=>_0x1f5fb4({..._0x516aa9,'filter':_0x2aafd8})[_0x45368c(0x299)](()=>void 0x0)});case _0x1cae1f['Text']:return _0x46ec10(Ur,{'widget':_0x516aa9});case _0x1cae1f['Image']:return _0x46ec10(Ci,{'widget':_0x516aa9});case _0x1cae1f[_0x45368c(0x325)]:return _0x46ec10(Dr,{'dashboardId':_0x3fe52a['id'],'unitId':_0x1216fc,'widget':_0x516aa9});}}function Si(_0x180fdc,_0x38a900){const _0x5445c7=_0x425045;let _0x5bae24=_0x180fdc[_0x5445c7(0x35f)]()[_0x5445c7(0x344)][_0x38a900],_0x563bec=_0x5bae24==null?void 0x0:_0x5bae24[_0x5445c7(0x428)]['find'](_0x3a5c26=>_0x5bae24['views'][_0x3a5c26]),_0x4b745e=_0x563bec?_0x5bae24==null?void 0x0:_0x5bae24['views'][_0x563bec]:void 0x0;return _0x5bae24&&_0x4b745e?_0xb59ce2(_0x5bae24,_0x4b745e):[];}function Ci({widget:_0x303925}){const _0x2d75b2=_0x425045;let _0x1c2ec9=_0x4acd92(_0x227826),[_0x375dc0,_0x46431d]=_0xf9778b(_0x303925[_0x2d75b2(0x23f)]===_0x1ba6af[_0x2d75b2(0x2a6)]?'':_0x303925[_0x2d75b2(0xf4)]);return _0x1e9cac(()=>{const _0x15b27b=_0x2d75b2;let _0x3c4815=!0x0;return _0x1c2ec9[_0x15b27b(0x183)](_0x303925[_0x15b27b(0xf4)],_0x303925['sourceType'])[_0x15b27b(0x12a)](_0x46df2f=>{_0x3c4815&&_0x46431d(_0x46df2f);})[_0x15b27b(0x299)](()=>void 0x0),()=>{_0x3c4815=!0x1;};},[_0x1c2ec9,_0x303925['source'],_0x303925[_0x2d75b2(0x23f)]]),_0x375dc0?_0x46ec10('div',{'role':_0x303925[_0x2d75b2(0x29c)]?_0x2d75b2(0x1bc):void 0x0,'aria-label':_0x303925[_0x2d75b2(0x29c)]||void 0x0,'data-dashboard-image':_0x303925['id'],'className':'univer-h-full\x20univer-w-full\x20univer-bg-transparent','style':vr(_0x375dc0,_0x303925[_0x2d75b2(0x326)])}):null;}function wi(){let _0x489495=_0x2f90ed(new Set());return{'id':'dashboard-text-'+_0x184bc2(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x489495}]},'documentStyle':{}};}function Ti(_0x4422cb){return new Promise(_0x52ae40=>{const _0x57cfb0=_0x2f30;let _0x22d929=document[_0x57cfb0(0x306)](_0x57cfb0(0x359));_0x22d929[_0x57cfb0(0x3e8)]=_0x57cfb0(0xe2),_0x22d929[_0x57cfb0(0x2a7)]=_0x57cfb0(0x21c),_0x22d929[_0x57cfb0(0x381)](_0x57cfb0(0x2ca),()=>{const _0x48da07=_0x57cfb0;var _0x232af9;let _0x4aba53=(_0x232af9=_0x22d929[_0x48da07(0x19f)])==null?void 0x0:_0x232af9[0x0];if(!_0x4aba53){_0x52ae40(null);return;}_0x4422cb[_0x48da07(0x346)](_0x4aba53)[_0x48da07(0x12a)](_0x58ed6e=>{const _0xcd3e34=_0x48da07;if(!_0x58ed6e['source']||_0x58ed6e[_0xcd3e34(0x23f)]===void 0x0){_0x52ae40(null);return;}_0x52ae40({'name':_0x58ed6e[_0xcd3e34(0x10b)],'source':_0x58ed6e['source'],'sourceType':_0x58ed6e['sourceType']});})[_0x48da07(0x299)](()=>_0x52ae40(null));},{'once':!0x0}),_0x22d929[_0x57cfb0(0x21f)]();});}function Ei(_0x28ef14){return new Promise(_0x32b83b=>{const _0x5c9333=_0x2f30;let _0x3d31a0=document[_0x5c9333(0x306)](_0x5c9333(0x359));_0x3d31a0[_0x5c9333(0x3e8)]=_0x5c9333(0xe2),_0x3d31a0[_0x5c9333(0x2a7)]='image/*',_0x3d31a0['addEventListener']('change',()=>{const _0x58f41f=_0x5c9333;var _0x35c084;let _0x33f048=(_0x35c084=_0x3d31a0['files'])==null?void 0x0:_0x35c084[0x0];if(!_0x33f048){_0x32b83b(null);return;}_0x28ef14[_0x58f41f(0x25f)](_0x33f048)[_0x58f41f(0x12a)](_0x45f50f=>{const _0x350dfe=_0x58f41f;if(!(_0x45f50f!=null&&_0x45f50f[_0x350dfe(0xf4)])){_0x32b83b(null);return;}if(_0x45f50f[_0x350dfe(0x3d0)]){let _0x509edb=new Image();_0x509edb[_0x350dfe(0x1f3)]=_0x45f50f[_0x350dfe(0x3d0)],_0x28ef14['addImageSourceCache'](_0x45f50f[_0x350dfe(0xf4)],_0x45f50f[_0x350dfe(0x195)],_0x509edb);}_0x32b83b({'source':_0x45f50f[_0x350dfe(0xf4)],'sourceType':_0x45f50f[_0x350dfe(0x195)]});})[_0x58f41f(0x299)](()=>_0x32b83b(null));},{'once':!0x0}),_0x3d31a0[_0x5c9333(0x21f)]();});}function Di(_0x18bdb3){const _0x1bb4dc=_0x425045;switch(_0x18bdb3){case _0x1cae1f[_0x1bb4dc(0x3d5)]:return _0x1bb4dc(0x3a5);case _0x1cae1f[_0x1bb4dc(0x268)]:return _0x1bb4dc(0x104);case _0x1cae1f['Text']:return _0x1bb4dc(0x431);case _0x1cae1f[_0x1bb4dc(0x2e3)]:return'bases-dashboard-ui.dashboard.image';case _0x1cae1f['FormulaShape']:return _0x1bb4dc(0x1da);}}function Oi(_0x390b0d){const _0x5bf7b8=_0x425045;return(_0x390b0d==null?void 0x0:_0x390b0d[_0x5bf7b8(0x3e8)])===_0x5e9757['Pivot']&&typeof _0x390b0d[_0x5bf7b8(0x244)]==_0x5bf7b8(0x1aa)&&_0x390b0d[_0x5bf7b8(0x244)]!==null&&_0x5bf7b8(0x27b)in _0x390b0d[_0x5bf7b8(0x244)]&&_0x5bf7b8(0x3e7)in _0x390b0d[_0x5bf7b8(0x244)];}function ki({pivot:_0x1b21af,view:_0x39d47c}){const _0x55e761=_0x425045;let _0x5711a7=_0x4acd92(_0x4a0c45),_0x42e13e=_0x1f57f7(()=>Ai(_0x39d47c,_0x1b21af,_0x5711a7['t']('bases-dashboard-ui.pivot.grandTotal')),[_0x5711a7,_0x1b21af,_0x39d47c]);return _0x53776f(_0x55e761(0x1e1),{'className':'univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','children':[_0x42e13e[_0x55e761(0x19c)][_0x55e761(0x297)]>0x0&&_0x46ec10(_0x55e761(0x1d7),{'className':_0x55e761(0x1d2),'children':_0x46ec10('tbody',{'children':ji(_0x42e13e[_0x55e761(0x19c)])})}),_0x53776f('table',{'className':_0x55e761(0x177),'children':[_0x42e13e[_0x55e761(0x3b3)]>0x0&&_0x46ec10(_0x55e761(0x27d),{'className':_0x55e761(0x19e),'children':ji(_0x42e13e[_0x55e761(0x167)][_0x55e761(0x3a1)](0x0,_0x42e13e[_0x55e761(0x3b3)]))}),_0x46ec10(_0x55e761(0x1df),{'children':ji(_0x42e13e[_0x55e761(0x167)]['slice'](_0x42e13e[_0x55e761(0x3b3)]))})]})]});}function Ai(_0x23c72d,_0x341c68,_0x50278b){const _0x5dd433=_0x425045;let _0x232c63=_0x23c72d[_0x5dd433(0x332)]['rowCount'],_0x38868b=_0x23c72d[_0x5dd433(0x14c)][_0x5dd433(0x271)],_0x4c1872=_0x23c72d[_0x5dd433(0x256)][_0x5dd433(0x116)],_0x48795b=_0x23c72d[_0x5dd433(0x256)][_0x5dd433(0x271)],_0xef5cf7=Array[_0x5dd433(0x3b1)]({'length':_0x232c63+_0x4c1872},(_0x19e559,_0x4b0747)=>Array[_0x5dd433(0x3b1)]({'length':_0x38868b+_0x48795b},(_0x21ce5e,_0x55892a)=>{const _0x142a98=_0x5dd433;var _0x2be9f8,_0xc4016;if(_0x4b0747<_0x232c63&&_0x55892a<_0x38868b)return Mi(_0x23c72d['cornerView'],_0x4b0747,_0x55892a,void 0x0,_0x50278b,!0x0,!0x1,_0x142a98(0x1c2)+_0x4b0747+':'+_0x55892a);if(_0x4b0747<_0x232c63){var _0x5eab20;let _0x21a5f3=_0x55892a-_0x38868b,_0x487d03=(_0x5eab20=_0x23c72d['colView'][_0x142a98(0x1b1)][_0x4b0747])==null?void 0x0:_0x5eab20[_0x142a98(0x218)];return Mi(_0x23c72d[_0x142a98(0x332)],_0x4b0747,_0x21a5f3,_0x487d03?_0x23c72d[_0x142a98(0x2a9)][_0x487d03]:void 0x0,_0x50278b,!0x0,Fi(_0x23c72d[_0x142a98(0x332)][_0x142a98(0x15f)][_0x21a5f3]),_0x142a98(0x1d0)+_0x4b0747+':'+_0x21a5f3);}if(_0x55892a<_0x38868b){var _0x3b83db;let _0x2d3b86=_0x4b0747-_0x232c63,_0x27bf33=(_0x3b83db=_0x23c72d['rowView'][_0x142a98(0x1b1)][_0x55892a])==null?void 0x0:_0x3b83db[_0x142a98(0x218)];return Mi(_0x23c72d[_0x142a98(0x14c)],_0x2d3b86,_0x55892a,_0x27bf33?_0x23c72d[_0x142a98(0x2a9)][_0x27bf33]:void 0x0,_0x50278b,!0x0,Fi(_0x23c72d[_0x142a98(0x14c)][_0x142a98(0x15f)][_0x2d3b86]),_0x142a98(0x3b5)+_0x2d3b86+':'+_0x55892a);}let _0x4cc231=_0x4b0747-_0x232c63,_0x509018=_0x55892a-_0x38868b,_0x457e8f=Math[_0x142a98(0x1b0)](((_0x2be9f8=_0x23c72d[_0x142a98(0x14c)][_0x142a98(0x15f)][_0x4cc231])==null?void 0x0:_0x2be9f8[_0x142a98(0x2fa)])??-0x1,((_0xc4016=_0x23c72d['colView']['info'][_0x509018])==null?void 0x0:_0xc4016[_0x142a98(0x2fa)])??-0x1),_0x3b5a37=_0x341c68['valueFields'][_0x457e8f<0x0?0x0:_0x457e8f];return Mi(_0x23c72d['dataView'],_0x4cc231,_0x509018,_0x3b5a37?_0x23c72d[_0x142a98(0x2a9)][_0x3b5a37]:void 0x0,_0x50278b,!0x1,Fi(_0x23c72d['rowView'][_0x142a98(0x15f)][_0x4cc231])||Fi(_0x23c72d[_0x142a98(0x332)]['info'][_0x509018]),_0x142a98(0x2f1)+_0x4cc231+':'+_0x509018);}));return{'headerColumnCount':_0x38868b,'headerRowCount':_0x232c63,'pageRows':_0x23c72d['pageView'][_0x5dd433(0x3bf)]<0x0||_0x23c72d['pageView'][_0x5dd433(0x342)]<0x0?[]:Array[_0x5dd433(0x3b1)]({'length':_0x23c72d[_0x5dd433(0x2fc)]['lastRow']+0x1},(_0x2e565e,_0x111f5b)=>Array[_0x5dd433(0x3b1)]({'length':_0x23c72d['pageView'][_0x5dd433(0x342)]+0x1},(_0x4bbeec,_0x123d59)=>Mi(_0x23c72d[_0x5dd433(0x2fc)],_0x111f5b,_0x123d59,void 0x0,_0x50278b,!0x0,!0x1,_0x5dd433(0x335)+_0x111f5b+':'+_0x123d59))),'rows':_0xef5cf7};}function ji(_0x2b600f){const _0x3ba8fc=_0x425045;return _0x2b600f[_0x3ba8fc(0x131)](_0x29499d=>{const _0x3cbe78=_0x3ba8fc;var _0x42533c;return _0x46ec10('tr',{'children':_0x29499d['map'](_0x2b0525=>{const _0x103756=_0x2f30;let _0x1fcb71=_0x2b0525[_0x103756(0x372)]?'th':'td';return _0x46ec10(_0x1fcb71,{'className':_0x103756(0x2a5)+(_0x2b0525[_0x103756(0x37e)]?'\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':'')+'\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'+(_0x2b0525[_0x103756(0x372)]?'':_0x103756(0x38d))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x2b0525['value']},_0x2b0525[_0x103756(0x169)]);})},(_0x42533c=_0x29499d[0x0])==null?void 0x0:_0x42533c[_0x3cbe78(0x169)]);});}function Mi(_0x2e3f3f,_0x3f21cb,_0x120f34,_0x14e5e7,_0x280403,_0x8aa574,_0x5c8b22,_0x47dbcf){const _0x1df3b1=_0x425045;var _0x37496b;let _0x4af62b=(_0x37496b=_0x2e3f3f[_0x1df3b1(0x16c)][_0x3f21cb])==null?void 0x0:_0x37496b[_0x120f34],_0x4a1436=_0x4af62b==null?void 0x0:_0x4af62b['s'],_0x7106ab=_0x5c8b22||_0x4a1436===_0x3186e2[_0x1df3b1(0x285)]||_0x4a1436===_0x3186e2[_0x1df3b1(0x178)];return{'isHeader':_0x8aa574,'isTotal':_0x7106ab||_0x4a1436===_0x3186e2[_0x1df3b1(0x263)],'key':_0x47dbcf,'style':_0x4a1436,'value':_0x7106ab&&Pi(_0x4af62b==null?void 0x0:_0x4af62b['v'])?_0x280403:Ni(_0x4af62b,_0x14e5e7)};}function Ni(_0x54b654,_0x5a47a3){const _0x5ebd77=_0x425045;let _0x341153=_0x54b654==null?void 0x0:_0x54b654['v'];return _0x36ae1f(_0x341153)?String(_0x341153[_0x5ebd77(0x18a)]??_0x341153['prefix']??''):_0x19da12(_0x341153)?'#'+_0x341153[_0x5ebd77(0x107)]:_0x5a47a3&&typeof _0x341153==_0x5ebd77(0x152)?_0x390aef[_0x5ebd77(0x319)](_0x5a47a3,_0x341153):String(_0x341153??'');}function Pi(_0x1aac55){return _0x1aac55===void 0x0||_0x1aac55==='';}function Fi(_0x2efb18){const _0x2eba0e=_0x425045;return!!(_0x2efb18!=null&&_0x2efb18[_0x2eba0e(0x35c)]||_0x2efb18!=null&&_0x2efb18['isTopTotal']||_0x2efb18!=null&&_0x2efb18[_0x2eba0e(0x245)]||(_0x2efb18==null?void 0x0:_0x2efb18[_0x2eba0e(0x38f)])===_0x2eba0e(0x1ad));}const Ii=[{'area':_0x5b40f7[_0x425045(0x384)],'key':_0x425045(0x412),'label':_0x425045(0x423)},{'area':_0x5b40f7[_0x425045(0x17f)],'key':_0x425045(0x2e0),'label':_0x425045(0x1b2)},{'area':_0x5b40f7[_0x425045(0x10e)],'key':_0x425045(0x2a3),'label':'bases-dashboard-ui.pivot.rows'},{'area':_0x5b40f7[_0x425045(0x402)],'key':_0x425045(0x3fc),'label':'bases-dashboard-ui.pivot.values'}],Li=[{'value':_0x4cc2cb[_0x425045(0x2fb)],'localeKey':_0x425045(0x221)},{'value':_0x4cc2cb[_0x425045(0x433)],'localeKey':_0x425045(0x2b9)},{'value':_0x4cc2cb['countNums'],'localeKey':_0x425045(0x1e7)},{'value':_0x4cc2cb[_0x425045(0x373)],'localeKey':_0x425045(0x3c9)},{'value':_0x4cc2cb[_0x425045(0x1b0)],'localeKey':_0x425045(0x317)},{'value':_0x4cc2cb['min'],'localeKey':_0x425045(0x30b)},{'value':_0x4cc2cb[_0x425045(0x12e)],'localeKey':_0x425045(0xe6)},{'value':_0x4cc2cb['stdDev'],'localeKey':_0x425045(0x434)},{'value':_0x4cc2cb['stdDevp'],'localeKey':_0x425045(0x11c)},{'value':_0x4cc2cb[_0x425045(0xe7)],'localeKey':'bases-dashboard-ui.pivot.variance'},{'value':_0x4cc2cb[_0x425045(0x229)],'localeKey':_0x425045(0x1a4)}];function Ri(_0x5e1230){const _0x1758f2=_0x425045;let {config:_0x169353,onChange:_0x1f2e2b,table:_0x11db13}=_0x5e1230,_0x1c84bc=_0x4acd92(_0x4a0c45),[_0x16dcf9,_0x1b6fdc]=_0xf9778b(_0x1758f2(0xf9)),[_0x1a93f6,_0x17a09a]=_0xf9778b(''),[_0x170a48,_0x4a5565]=_0xf9778b(null),[_0x2df5c8,_0x537968]=_0xf9778b(null),[_0x24dcb6,_0x1e22db]=_0xf9778b(null),[_0x269742,_0x5377a7]=_0xf9778b(null),_0x509e4d=_0x26f122(null),_0x78378c=_0x1f57f7(()=>_0x11db13[_0x1758f2(0x258)][_0x1758f2(0x222)](_0x1b2903=>{const _0x385e1e=_0x1758f2;let _0x3c345c=_0x11db13[_0x385e1e(0xf9)][_0x1b2903];return _0x3c345c&&_0x3c345c['system']!==!0x0&&_0x3c345c[_0x385e1e(0x3e8)]!==_0x2ed75f[_0x385e1e(0x304)]?[_0x3c345c]:[];})[_0x1758f2(0x1d6)](_0x5f3e19=>_0x5f3e19[_0x1758f2(0x10b)][_0x1758f2(0xfd)]()[_0x1758f2(0x378)](_0x1a93f6[_0x1758f2(0x290)]()['toLocaleLowerCase']())),[_0x1a93f6,_0x11db13]),_0x37951a=_0x438ba0=>{const _0x2b3d61=_0x1758f2;let _0x32190=_0x1b60e4(_0x11db13,_0x169353[_0x2b3d61(0x27b)]);try{_0x438ba0(_0x32190),_0x1f2e2b({'pivot':_0x32190[_0x2b3d61(0x1c0)]()});}finally{_0x32190[_0x2b3d61(0x251)]();}},_0x189d0d=(_0x3243b5,_0x3ec774)=>{_0x170a48&&(_0x37951a(_0x1031b1=>{const _0x2acb5c=_0x2f30;if(_0x170a48['kind']===_0x2acb5c(0x1a9)){let _0x95b2f=_0x1031b1['getFieldPositionInfoById'](_0x170a48['id']),_0x5f5a20=_0x95b2f[_0x2acb5c(0x339)]===_0x3243b5&&_0x95b2f[_0x2acb5c(0x3f2)]<_0x3ec774?_0x3ec774-0x1:_0x3ec774;_0x1031b1['updateFieldPosition'](_0x170a48['id'],_0x3243b5,_0x5f5a20);return;}Ki(_0x1031b1,_0x170a48['id'],_0x3243b5,_0x3ec774);}),_0x4a5565(null),_0x537968(null));};return _0x53776f(_0x1758f2(0x1e1),{'className':_0x1758f2(0x289),'children':[_0x46ec10(_0x63d182,{'ariaLabel':_0x1c84bc['t'](_0x1758f2(0x329)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x1c84bc['t'](_0x1758f2(0x35a)),'panelId':_0x1758f2(0x1ed),'value':_0x1758f2(0xf9)},{'label':_0x1c84bc['t'](_0x1758f2(0x15e)),'panelId':_0x1758f2(0x321),'value':'options'}],'value':_0x16dcf9,'onChange':_0x1b6fdc}),_0x46ec10('div',{'ref':_0x509e4d,'className':_0x4ba74c(_0x1758f2(0x1a7),_0x3d0337),'onDragOver':_0x1bdd98=>{const _0x598f02=_0x1758f2;let _0x38b919=_0x509e4d[_0x598f02(0x311)];if(!_0x38b919)return;let _0x99bc08=_0x38b919[_0x598f02(0x397)]();_0x1bdd98['clientY']<_0x99bc08[_0x598f02(0x2ba)]+0x30?_0x38b919[_0x598f02(0x295)]-=0x10:_0x1bdd98['clientY']>_0x99bc08[_0x598f02(0x2b7)]-0x30&&(_0x38b919[_0x598f02(0x295)]+=0x10);},'children':_0x16dcf9==='options'?_0x46ec10(Gi,{'config':_0x169353,'commit':_0x37951a}):_0x53776f(_0x1758f2(0x1e1),{'className':_0x1758f2(0x416),'children':[_0x53776f(_0x1758f2(0x1e1),{'children':[_0x46ec10(_0x1758f2(0x1e1),{'className':_0x1758f2(0x27c),'children':_0x1c84bc['t']('bases-dashboard-ui.pivot.sourceFields')}),_0x46ec10(_0x512832,{'allowClear':!0x0,'slot':_0x46ec10(_0x43de76,{}),'value':_0x1a93f6,'placeholder':_0x1c84bc['t'](_0x1758f2(0x13b)),'onChange':_0x17a09a}),_0x46ec10(_0x1758f2(0x1e1),{'className':_0x1758f2(0x2b5),'children':_0x78378c[_0x1758f2(0x131)](_0x13673b=>_0x46ec10(zi,{'config':_0x169353,'field':_0x13673b,'onAdd':_0x474111=>_0x37951a(_0x9c29e6=>Ki(_0x9c29e6,_0x13673b['id'],_0x474111,_0x9c29e6[_0x1758f2(0x37f)](_0x474111))),'onCheckedChange':_0x239e2d=>_0x37951a(_0x86f532=>{const _0x2d6fc9=_0x1758f2;let _0x3d17cb=_0x86f532[_0x2d6fc9(0x253)](_0x13673b['id']);if(!_0x239e2d){_0x3d17cb[_0x2d6fc9(0x3ff)](_0x42bd28=>_0x86f532[_0x2d6fc9(0x238)](_0x42bd28[_0x2d6fc9(0x3e4)]()));return;}if(_0x3d17cb[_0x2d6fc9(0x297)]===0x0){let _0xee580f=Ji(_0x13673b)?_0x5b40f7[_0x2d6fc9(0x402)]:_0x5b40f7[_0x2d6fc9(0x10e)];_0x86f532['addFieldWithSourceId'](_0x13673b['id'],_0xee580f);}}),'onDragStart':()=>_0x4a5565({'kind':'source','id':_0x13673b['id']})},_0x13673b['id']))})]}),_0x46ec10('div',{'className':_0x1758f2(0x3e1),'children':Ii[_0x1758f2(0x131)](_0x1b8458=>_0x46ec10(Vi,{'area':_0x1b8458[_0x1758f2(0x339)],'dropTarget':_0x2df5c8,'fields':_0x169353['pivot'][_0x1b8458['key']],'label':_0x1c84bc['t'](_0x1b8458[_0x1758f2(0x31b)]),'snapshot':_0x169353['pivot'],'onDragEnd':()=>{_0x4a5565(null),_0x537968(null);},'onDragStart':_0x208d42=>_0x4a5565({'kind':_0x1758f2(0x1a9),'id':_0x208d42,'area':_0x1b8458[_0x1758f2(0x339)]}),'onDragOver':_0x9e875c=>_0x537968({'area':_0x1b8458['area'],'index':_0x9e875c}),'onDrop':_0x229d3b=>_0x189d0d(_0x1b8458['area'],_0x229d3b),'onFilter':_0x1e22db,'onMove':(_0x21aa6c,_0x1be258,_0x5603f4)=>_0x37951a(_0x56e99d=>_0x56e99d[_0x1758f2(0x3e6)](_0x21aa6c,_0x1be258,_0x5603f4)),'onRemove':_0xca211b=>_0x37951a(_0x401582=>_0x401582[_0x1758f2(0x238)](_0xca211b)),'onSettings':_0x5377a7},_0x1b8458['area']))}),_0x24dcb6&&_0x46ec10(Ui,{'fieldId':_0x24dcb6,'snapshot':_0x169353[_0x1758f2(0x27b)],'table':_0x11db13,'onCancel':()=>_0x1e22db(null),'onCommit':(_0x2bf8aa,_0x1896a1)=>{_0x37951a(_0x41f169=>{const _0x4e74c7=_0x2f30;let _0x1bc57d=_0x41f169[_0x4e74c7(0x358)](_0x24dcb6),_0x2cb794=(_0x1bc57d==null?void 0x0:_0x1bc57d[_0x4e74c7(0x129)])??[];_0x41f169[_0x4e74c7(0x109)](_0x24dcb6,{'type':_0xe90230[_0x4e74c7(0x29d)],'list':_0x2bf8aa,'isAll':_0x2bf8aa[_0x4e74c7(0x297)]===_0x2cb794[_0x4e74c7(0x297)]}),_0x41f169[_0x4e74c7(0x3ed)](_0x24dcb6,_0x1896a1===void 0x0?void 0x0:{'type':_0x1896a1});}),_0x1e22db(null);}},_0x24dcb6),_0x269742&&_0x46ec10(Wi,{'field':_0x169353[_0x1758f2(0x27b)][_0x1758f2(0x34f)][_0x269742],'onCancel':()=>_0x5377a7(null),'onCommit':(_0x4b2fc9,_0x1e57ad,_0x503ff4)=>{_0x37951a(_0x4f76a0=>{const _0x1258c6=_0x2f30;_0x4f76a0[_0x1258c6(0x1e8)](_0x269742,_0x4b2fc9),_0x4f76a0['setSubtotalType'](_0x269742,_0x1e57ad),_0x4f76a0[_0x1258c6(0x20b)](_0x269742,_0x503ff4||void 0x0);}),_0x5377a7(null);}},_0x269742)]})})]});}function zi(_0x47b1b7){const _0x667fea=_0x425045;let {config:_0x2226bb,field:_0x17aecc,onAdd:_0x5b98ab,onCheckedChange:_0x4aab76,onDragStart:_0x2a379c}=_0x47b1b7,_0x4a6f1f=_0x4acd92(_0x4a0c45),_0x4cb15b=[...Object[_0x667fea(0x2f0)](_0x2226bb[_0x667fea(0x27b)]['dimension']),...Object[_0x667fea(0x2f0)](_0x2226bb['pivot'][_0x667fea(0x34f)])][_0x667fea(0x2eb)](_0x2f5654=>_0x2f5654[_0x667fea(0x2d4)]===_0x17aecc['id']),_0x505edb=Ii[_0x667fea(0x131)](_0x50b33b=>({'type':_0x667fea(0x387),'children':_0x4a6f1f['t'](Yi(_0x50b33b[_0x667fea(0x339)])),'onSelect':()=>_0x5b98ab(_0x50b33b['area'])}));return _0x53776f(_0x667fea(0x1e1),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x667fea(0x3f5),'onDragStart':_0x2a379c,'children':[_0x46ec10(_0x3884d7,{'checked':_0x4cb15b,'onChange':_0x1dad13=>_0x4aab76(!!_0x1dad13)}),_0x46ec10(Bi,{'field':_0x17aecc}),_0x46ec10(_0x667fea(0x223),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x17aecc['name']}),_0x46ec10(Jr,{'align':_0x667fea(0xf3),'items':_0x505edb,'children':_0x46ec10(_0x5bfdfa,{'variant':_0x667fea(0xdd),'aria-label':_0x4a6f1f['t'](_0x667fea(0x31a)),'children':_0x46ec10(_0x1a78f0,{})})})]});}function Bi({field:_0x413462}){const _0x53e9a3=_0x425045;return Ji(_0x413462)?_0x46ec10(_0x293db8,{'className':_0x53e9a3(0x25d)}):_0x413462[_0x53e9a3(0x3e8)]===_0x2ed75f[_0x53e9a3(0x172)]||_0x413462[_0x53e9a3(0x3e8)]===_0x2ed75f[_0x53e9a3(0x364)]||_0x413462[_0x53e9a3(0x3e8)]===_0x2ed75f['UpdatedAt']?_0x46ec10(_0xe4276a,{'className':_0x53e9a3(0x25d)}):_0x46ec10(_0x5c8b6c,{'className':_0x53e9a3(0x25d)});}function Vi(_0x45772d){const _0x10617c=_0x425045;let {area:_0x5dfe32,dropTarget:_0x1a391f,fields:_0x33a414,label:_0x108107,snapshot:_0x436864}=_0x45772d,_0x4b6f67=_0x4acd92(_0x4a0c45);return _0x53776f('section',{'className':_0x4ba74c('univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800',_0x1919fa),'onDragOver':_0xbc8f15=>{const _0x166389=_0x2f30;_0xbc8f15[_0x166389(0x3f3)](),_0x45772d[_0x166389(0x29e)](_0x33a414[_0x166389(0x297)]);},'onDrop':_0x2562dc=>{const _0x482c6e=_0x2f30;_0x2562dc[_0x482c6e(0x3f3)](),_0x45772d[_0x482c6e(0x2f6)]((_0x1a391f==null?void 0x0:_0x1a391f[_0x482c6e(0x339)])===_0x5dfe32?_0x1a391f[_0x482c6e(0x3f2)]:_0x33a414[_0x482c6e(0x297)]);},'children':[_0x46ec10('div',{'className':'univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','children':_0x108107}),_0x53776f('div',{'className':'univer-flex\x20univer-flex-col','children':[_0x33a414['map']((_0x2f9745,_0x3da6aa)=>{const _0x49c899=_0x2f30;let _0x5c95e5=_0x436864[_0x49c899(0x2bf)][_0x2f9745]??_0x436864['measure'][_0x2f9745];if(!_0x5c95e5)return null;let _0x4b2b5a=(_0x1a391f==null?void 0x0:_0x1a391f[_0x49c899(0x339)])===_0x5dfe32&&_0x1a391f[_0x49c899(0x3f2)]===_0x3da6aa;return _0x53776f(_0x49c899(0x1e1),{'onDragOver':_0x3218e5=>{const _0x2dc326=_0x49c899;_0x3218e5[_0x2dc326(0x3f3)](),_0x3218e5['stopPropagation']();let _0x3e15e7=_0x3218e5[_0x2dc326(0x1ca)][_0x2dc326(0x397)]();_0x45772d['onDragOver'](_0x3da6aa+ +(_0x3218e5[_0x2dc326(0x2ff)]>_0x3e15e7[_0x2dc326(0x2ba)]+_0x3e15e7[_0x2dc326(0x15c)]/0x2));},'onDrop':_0x54d9a7=>{const _0x3aef29=_0x49c899;_0x54d9a7[_0x3aef29(0x3f3)](),_0x54d9a7['stopPropagation'](),_0x45772d[_0x3aef29(0x2f6)]((_0x1a391f==null?void 0x0:_0x1a391f[_0x3aef29(0x339)])===_0x5dfe32?_0x1a391f[_0x3aef29(0x3f2)]:_0x3da6aa);},'children':[_0x4b2b5a&&_0x46ec10(_0x49c899(0x1e1),{'className':_0x49c899(0x32e)}),_0x46ec10(Hi,{'area':_0x5dfe32,'field':_0x5c95e5,'onDragEnd':_0x45772d[_0x49c899(0x230)],'onDragStart':()=>_0x45772d[_0x49c899(0x22f)](_0x2f9745),'onFilter':()=>_0x45772d[_0x49c899(0x411)](_0x2f9745),'onMove':_0x27a634=>_0x45772d[_0x49c899(0x3ee)](_0x2f9745,_0x27a634,0x0),'onMoveUp':_0x3da6aa>0x0?()=>_0x45772d[_0x49c899(0x3ee)](_0x2f9745,_0x5dfe32,_0x3da6aa-0x1):void 0x0,'onMoveDown':_0x3da6aa<_0x33a414[_0x49c899(0x297)]-0x1?()=>_0x45772d['onMove'](_0x2f9745,_0x5dfe32,_0x3da6aa+0x1):void 0x0,'onRemove':()=>_0x45772d[_0x49c899(0x37b)](_0x2f9745),'onSettings':()=>_0x45772d['onSettings'](_0x2f9745)})]},_0x2f9745);}),(_0x1a391f==null?void 0x0:_0x1a391f[_0x10617c(0x339)])===_0x5dfe32&&_0x1a391f[_0x10617c(0x3f2)]===_0x33a414[_0x10617c(0x297)]&&_0x46ec10(_0x10617c(0x1e1),{'className':_0x10617c(0x32e)}),_0x33a414[_0x10617c(0x297)]===0x0&&_0x46ec10('div',{'className':'univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','children':_0x4b6f67['t']('bases-dashboard-ui.pivot.sourceFields')})]})]});}function Hi(_0x5e8277){const _0x3abb6f=_0x425045;let _0x246914=_0x4acd92(_0x4a0c45),_0x2614c0=_0x5e8277[_0x3abb6f(0x339)]===_0x5b40f7[_0x3abb6f(0x402)],_0x3de55a=[...Ii[_0x3abb6f(0x1d6)](_0x48a8a9=>_0x48a8a9[_0x3abb6f(0x339)]!==_0x5e8277[_0x3abb6f(0x339)])[_0x3abb6f(0x131)](_0x5bc4a2=>({'type':_0x3abb6f(0x387),'children':_0x246914['t'](Yi(_0x5bc4a2[_0x3abb6f(0x339)])),'onSelect':()=>_0x5e8277[_0x3abb6f(0x3ee)](_0x5bc4a2[_0x3abb6f(0x339)])})),..._0x5e8277[_0x3abb6f(0x34b)]?[{'type':'item','children':_0x246914['t'](_0x3abb6f(0x29b)),'onSelect':_0x5e8277[_0x3abb6f(0x34b)]}]:[],..._0x5e8277[_0x3abb6f(0x1c1)]?[{'type':_0x3abb6f(0x387),'children':_0x246914['t']('bases-dashboard-ui.mobile.moveDown'),'onSelect':_0x5e8277[_0x3abb6f(0x1c1)]}]:[],{'type':'item','children':_0x246914['t'](_0x3abb6f(0xe9)),'onSelect':_0x5e8277[_0x3abb6f(0x37b)]},{'type':_0x3abb6f(0x387),'children':_0x246914['t'](_0x2614c0?_0x3abb6f(0x31a):_0x3abb6f(0x309)),'onSelect':_0x2614c0?_0x5e8277['onSettings']:_0x5e8277['onFilter']}];return _0x53776f('div',{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x3abb6f(0x3c3),'onDragEnd':_0x5e8277[_0x3abb6f(0x230)],'onDragStart':_0x5e8277[_0x3abb6f(0x22f)],'children':[_0x46ec10(_0x4833dd,{'title':_0x5e8277['field'][_0x3abb6f(0x23e)],'children':_0x46ec10('span',{'className':_0x3abb6f(0x395),'children':_0x5e8277[_0x3abb6f(0x1a9)][_0x3abb6f(0x23e)]})}),_0x46ec10(Jr,{'align':_0x3abb6f(0xf3),'items':_0x3de55a,'children':_0x46ec10(_0x5bfdfa,{'variant':_0x3abb6f(0xdd),'aria-label':_0x246914['t'](_0x3abb6f(0x31a)),'children':_0x46ec10(_0x1a78f0,{})})})]});}function Ui(_0x7dfaa8){const _0x24ce94=_0x425045;var _0x40b03a,_0x37587b;let _0x2d237e=_0x4acd92(_0x4a0c45),{format:_0x35c936,items:_0x4ca1a6,itemTypes:_0x3329ea}=_0x1f57f7(()=>{const _0x38bfa2=_0x2f30;let _0xdd14f4=_0x1b60e4(_0x7dfaa8[_0x38bfa2(0x1d7)],_0x7dfaa8['snapshot']);try{let _0x4f4208=_0xdd14f4[_0x38bfa2(0x358)](_0x7dfaa8['fieldId']);return{'format':_0x4f4208==null?void 0x0:_0x4f4208[_0x38bfa2(0x319)],'items':[...(_0x4f4208==null?void 0x0:_0x4f4208[_0x38bfa2(0x129)])??[]],'itemTypes':[...(_0x4f4208==null?void 0x0:_0x4f4208['itemTypes'])??[]]};}finally{_0xdd14f4[_0x38bfa2(0x251)]();}},[_0x7dfaa8[_0x24ce94(0x2db)],_0x7dfaa8[_0x24ce94(0x405)],_0x7dfaa8[_0x24ce94(0x1d7)]]),_0x558c63=(_0x40b03a=_0x7dfaa8[_0x24ce94(0x405)]['dimension'][_0x7dfaa8[_0x24ce94(0x2db)]])==null?void 0x0:_0x40b03a[_0x24ce94(0x18b)],[_0x55fdf6,_0x350383]=_0xf9778b((_0x558c63==null?void 0x0:_0x558c63[_0x24ce94(0x3e8)])===_0xe90230[_0x24ce94(0x29d)]?_0x558c63['list']:_0x4ca1a6),[_0x306fbe,_0x542c2a]=_0xf9778b((_0x37587b=_0x7dfaa8['snapshot'][_0x24ce94(0x2bf)][_0x7dfaa8[_0x24ce94(0x2db)]])==null||(_0x37587b=_0x37587b[_0x24ce94(0x2aa)])==null?void 0x0:_0x37587b[_0x24ce94(0x3e8)]),_0x562e21=_0x55fdf6['length']===_0x4ca1a6[_0x24ce94(0x297)],_0x192bfc=_0x53776f(_0x24ce94(0x2f8),{'className':_0x4ba74c('univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900',_0x1919fa),'children':[_0x46ec10(_0x24ce94(0x1e1),{'className':_0x24ce94(0x2be),'children':_0x2d237e['t'](_0x24ce94(0x309))}),_0x53776f(_0x24ce94(0x1e1),{'className':_0x24ce94(0x255),'children':[_0x53776f(_0x5bfdfa,{'className':'univer-flex-1','variant':_0x306fbe===_0x4b9a3c[_0x24ce94(0x2c8)]?'primary':_0x24ce94(0x1bf),'onClick':()=>_0x542c2a(_0x4b9a3c[_0x24ce94(0x2c8)]),'children':[_0x46ec10(_0x5353ac,{}),_0x2d237e['t'](_0x24ce94(0x1c3))]}),_0x53776f(_0x5bfdfa,{'className':_0x24ce94(0x16a),'variant':_0x306fbe===_0x4b9a3c[_0x24ce94(0x1f6)]?_0x24ce94(0x103):'default','onClick':()=>_0x542c2a(_0x4b9a3c['descending']),'children':[_0x46ec10(_0x125ead,{}),_0x2d237e['t'](_0x24ce94(0x186))]})]}),_0x53776f(_0x24ce94(0x1e1),{'className':_0x24ce94(0x136),'children':[_0x53776f(_0x24ce94(0x31b),{'className':_0x24ce94(0x117),'children':[_0x46ec10(_0x3884d7,{'checked':_0x562e21,'indeterminate':_0x55fdf6[_0x24ce94(0x297)]>0x0&&!_0x562e21,'onChange':()=>_0x350383(_0x562e21?[]:_0x4ca1a6)}),_0x2d237e['t'](_0x24ce94(0x42f))]}),_0x4ca1a6['map']((_0x18b5be,_0x3cc768)=>_0x53776f(_0x24ce94(0x31b),{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x46ec10(_0x3884d7,{'checked':_0x55fdf6[_0x24ce94(0x378)](_0x18b5be),'onChange':()=>_0x350383(_0x1da0ac=>_0x1da0ac[_0x24ce94(0x378)](_0x18b5be)?_0x1da0ac['filter'](_0x3b4705=>_0x3b4705!==_0x18b5be):[..._0x1da0ac,_0x18b5be])}),_0x46ec10('span',{'className':_0x24ce94(0x2a8),'children':qi(_0x18b5be,_0x3329ea[_0x3cc768],_0x35c936,_0x2d237e['t'](_0x24ce94(0x377)))})]},_0x18b5be))]}),_0x53776f('div',{'className':_0x24ce94(0x168),'children':[_0x46ec10(_0x5bfdfa,{'variant':_0x24ce94(0x3a7),'onClick':()=>_0x7dfaa8[_0x24ce94(0xe5)](_0x4ca1a6,_0x306fbe),'children':_0x2d237e['t'](_0x24ce94(0x33c))}),_0x53776f(_0x24ce94(0x1e1),{'className':_0x24ce94(0x1ff),'children':[_0x46ec10(_0x5bfdfa,{'onClick':_0x7dfaa8[_0x24ce94(0x24a)],'children':_0x2d237e['t']('bases-dashboard-ui.pivot.cancel')}),_0x46ec10(_0x5bfdfa,{'variant':'primary','disabled':_0x55fdf6[_0x24ce94(0x297)]===0x0,'onClick':()=>_0x7dfaa8[_0x24ce94(0xe5)](_0x55fdf6,_0x306fbe),'children':_0x2d237e['t'](_0x24ce94(0x296))})]})]})]});return _0x46ec10(_0x3a70e3,{'title':_0x2d237e['t']('bases-dashboard-ui.pivot.filterField'),'onClose':_0x7dfaa8['onCancel'],'children':_0x192bfc});}function Wi(_0x365819){const _0x58dcd8=_0x425045;var _0x436fe7,_0x2dea15,_0x444bc7;let _0x5e569f=_0x4acd92(_0x4a0c45),[_0x56de2b,_0x98f23a]=_0xf9778b(((_0x436fe7=_0x365819[_0x58dcd8(0x1a9)])==null?void 0x0:_0x436fe7[_0x58dcd8(0x23e)])??''),[_0x2e70bd,_0x55ce2f]=_0xf9778b(((_0x2dea15=_0x365819[_0x58dcd8(0x1a9)])==null?void 0x0:_0x2dea15['subtotal'])??_0x4cc2cb['sum']),[_0x52a6eb,_0x184978]=_0xf9778b(((_0x444bc7=_0x365819[_0x58dcd8(0x1a9)])==null?void 0x0:_0x444bc7[_0x58dcd8(0x319)])??'');if(!_0x365819[_0x58dcd8(0x1a9)])return null;let _0x43a9a6=_0x53776f('section',{'className':_0x4ba74c(_0x58dcd8(0x145),_0x1919fa),'children':[_0x46ec10(_0x58dcd8(0x1e1),{'className':_0x58dcd8(0x125),'children':_0x5e569f['t']('bases-dashboard-ui.pivot.fieldSettings')}),_0x53776f(_0x58dcd8(0x31b),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x5e569f['t'](_0x58dcd8(0x1fb)),_0x46ec10(_0x512832,{'value':_0x56de2b,'onChange':_0x98f23a})]}),_0x53776f(_0x58dcd8(0x31b),{'className':_0x58dcd8(0x350),'children':[_0x5e569f['t']('bases-dashboard-ui.pivot.summarizeBy'),_0x46ec10(qr,{'value':String(_0x2e70bd),'options':Li[_0x58dcd8(0x131)](_0x3a0ef7=>({'value':String(_0x3a0ef7[_0x58dcd8(0x18a)]),'label':_0x5e569f['t'](_0x3a0ef7[_0x58dcd8(0x1a8)])})),'onChange':_0x51200c=>{const _0x1c1d76=_0x58dcd8;let _0x9bba30=Li[_0x1c1d76(0x11d)](_0x236b58=>String(_0x236b58['value'])===_0x51200c);_0x9bba30&&_0x55ce2f(_0x9bba30[_0x1c1d76(0x18a)]);}})]}),_0x53776f('label',{'className':_0x58dcd8(0x350),'children':[_0x5e569f['t'](_0x58dcd8(0x35d)),_0x46ec10(_0x512832,{'value':_0x52a6eb,'onChange':_0x184978})]}),_0x53776f(_0x58dcd8(0x1e1),{'className':_0x58dcd8(0x338),'children':[_0x46ec10(_0x5bfdfa,{'onClick':_0x365819['onCancel'],'children':_0x5e569f['t']('bases-dashboard-ui.pivot.cancel')}),_0x46ec10(_0x5bfdfa,{'variant':_0x58dcd8(0x103),'disabled':!_0x56de2b[_0x58dcd8(0x290)](),'onClick':()=>_0x365819[_0x58dcd8(0xe5)](_0x56de2b[_0x58dcd8(0x290)](),_0x2e70bd,_0x52a6eb),'children':_0x5e569f['t'](_0x58dcd8(0x296))})]})]});return _0x46ec10(_0x3a70e3,{'title':_0x5e569f['t'](_0x58dcd8(0x31a)),'onClose':_0x365819[_0x58dcd8(0x24a)],'children':_0x43a9a6});}function Gi(_0x13d08c){const _0x7360e=_0x425045;let {config:_0xd6cc61,commit:_0x155dcd}=_0x13d08c,_0x1868d3=_0x4acd92(_0x4a0c45),_0x3a3f93=_0xd6cc61[_0x7360e(0x27b)]['options'],_0x490a34=_0x2c04e8=>_0x155dcd(_0x177964=>_0x177964[_0x7360e(0x157)]({..._0x177964[_0x7360e(0x356)](),..._0x2c04e8}));return _0x53776f('div',{'className':_0x7360e(0x416),'children':[_0x53776f(_0x7360e(0x31b),{'className':_0x7360e(0x1b4),'children':[_0x1868d3['t'](_0x7360e(0x3f4)),_0x46ec10(qr,{'className':_0x7360e(0x343),'value':String(_0xd6cc61[_0x7360e(0x27b)][_0x7360e(0x155)]),'options':[{'value':String(_0xf39c9c[_0x7360e(0x3d8)]),'label':_0x1868d3['t']('bases-dashboard-ui.pivot.layoutTabular')},{'value':String(_0xf39c9c['compact']),'label':_0x1868d3['t'](_0x7360e(0x2ce))},{'value':String(_0xf39c9c[_0x7360e(0x162)]),'label':_0x1868d3['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x4f69f0=>{const _0xd45d42=_0x7360e;let _0xfdd679=[_0xf39c9c[_0xd45d42(0x3d8)],_0xf39c9c[_0xd45d42(0x191)],_0xf39c9c[_0xd45d42(0x162)]][_0xd45d42(0x11d)](_0x3a84f3=>String(_0x3a84f3)===_0x4f69f0);_0xfdd679!==void 0x0&&_0x155dcd(_0x2a58a5=>_0x2a58a5[_0xd45d42(0x37d)](_0xfdd679));}})]}),[{'key':_0x7360e(0x194),'label':_0x7360e(0x40e),'defaultValue':!0x1},{'key':_0x7360e(0x40b),'label':_0x7360e(0x2b6),'defaultValue':!0x1},{'key':_0x7360e(0x1bd),'label':_0x7360e(0x422),'defaultValue':!0x0},{'key':_0x7360e(0x36c),'label':'bases-dashboard-ui.pivot.showRowGrandTotal','defaultValue':!0x0},{'key':_0x7360e(0x1b5),'label':_0x7360e(0xed),'defaultValue':!0x0},{'key':_0x7360e(0x180),'label':_0x7360e(0x360),'defaultValue':!0x0}][_0x7360e(0x131)](_0xbb99d=>_0x53776f(_0x7360e(0x31b),{'className':_0x7360e(0x3f9),'children':[_0x46ec10(_0x3884d7,{'checked':!!(_0x3a3f93[_0xbb99d['key']]??_0xbb99d[_0x7360e(0x21a)]),'disabled':_0xbb99d[_0x7360e(0x169)]===_0x7360e(0x194)&&_0xd6cc61[_0x7360e(0x27b)][_0x7360e(0x155)]===_0xf39c9c['compact'],'onChange':_0x2358ae=>_0x490a34({[_0xbb99d[_0x7360e(0x169)]]:!!_0x2358ae})}),_0x1868d3['t'](_0xbb99d[_0x7360e(0x31b)])]},_0xbb99d[_0x7360e(0x169)])),_0xd6cc61[_0x7360e(0x27b)][_0x7360e(0x155)]===_0xf39c9c[_0x7360e(0x162)]&&_0x53776f('label',{'className':_0x7360e(0x1b4),'children':[_0x1868d3['t']('bases-dashboard-ui.pivot.rowSubtotalPosition'),_0x46ec10(qr,{'className':_0x7360e(0x343),'value':String(_0x3a3f93[_0x7360e(0x27f)]??_0x278d2c[_0x7360e(0x2ba)]),'options':[{'value':String(_0x278d2c[_0x7360e(0x2ba)]),'label':_0x1868d3['t']('bases-dashboard-ui.pivot.top')},{'value':String(_0x278d2c[_0x7360e(0x2b7)]),'label':_0x1868d3['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x117bdf=>{const _0x134a89=_0x7360e;let _0x1222b2=[_0x278d2c['top'],_0x278d2c[_0x134a89(0x2b7)]][_0x134a89(0x11d)](_0x5b5f15=>String(_0x5b5f15)===_0x117bdf);_0x1222b2!==void 0x0&&_0x490a34({'rowSubtotalPosition':_0x1222b2});}})]}),_0x53776f(_0x7360e(0x31b),{'className':_0x7360e(0x1b4),'children':[_0x1868d3['t']('bases-dashboard-ui.pivot.valuePosition'),_0x46ec10(qr,{'className':_0x7360e(0x343),'value':String(_0xd6cc61[_0x7360e(0x27b)][_0x7360e(0x209)]===_0x412ab8[_0x7360e(0x388)]?_0x412ab8['Column']:_0xd6cc61['pivot'][_0x7360e(0x209)]),'options':[{'value':String(_0x412ab8['Column']),'label':_0x1868d3['t'](_0x7360e(0x1b2))},{'value':String(_0x412ab8[_0x7360e(0x10e)]),'label':_0x1868d3['t'](_0x7360e(0x100))}],'onChange':_0x58b084=>{const _0xc65a3f=_0x7360e;let _0x514e1c=[_0x412ab8[_0xc65a3f(0x17f)],_0x412ab8[_0xc65a3f(0x10e)]]['find'](_0x52c1a2=>String(_0x52c1a2)===_0x58b084);_0x514e1c!==void 0x0&&_0x155dcd(_0x2877b0=>_0x2877b0[_0xc65a3f(0x1eb)](_0x514e1c,_0x2877b0[_0xc65a3f(0x2e6)]()<0x0?0x0:_0x2877b0[_0xc65a3f(0x2e6)]()));}})]}),_0x53776f('label',{'className':_0x7360e(0x1b4),'children':[_0x1868d3['t']('bases-dashboard-ui.pivot.pageWrap'),_0x46ec10(_0x510d74,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x3a3f93[_0x7360e(0x121)]??0x1,'onChange':_0x4311af=>{const _0x5772a8=_0x7360e;let _0x373c9c=Number(_0x4311af);Number[_0x5772a8(0x393)](_0x373c9c)&&_0x373c9c>=0x1&&_0x490a34({'pageWrap':_0x373c9c});}})]}),_0x53776f(_0x7360e(0x31b),{'className':_0x7360e(0x1b4),'children':[_0x1868d3['t'](_0x7360e(0x36b)),_0x46ec10(qr,{'className':_0x7360e(0x343),'value':String(_0x3a3f93['pageOverThenDown']??!0x1),'options':[{'value':'false','label':_0x1868d3['t'](_0x7360e(0x19a))},{'value':'true','label':_0x1868d3['t'](_0x7360e(0x17b))}],'onChange':_0x368f6d=>_0x490a34({'pageOverThenDown':_0x368f6d===_0x7360e(0x2dd)})})]})]});}function Ki(_0x480912,_0xa62b6f,_0x2218c8,_0x41cd46){const _0x183100=_0x425045;let _0x3bb11b=_0x480912[_0x183100(0x253)](_0xa62b6f)['find'](_0x38a7bb=>_0x480912[_0x183100(0x260)](_0x38a7bb[_0x183100(0x3e4)]())[_0x183100(0x339)]!==_0x5b40f7[_0x183100(0x402)]);if(_0x2218c8!==_0x5b40f7[_0x183100(0x402)]&&_0x3bb11b){_0x480912['updateFieldPosition'](_0x3bb11b[_0x183100(0x3e4)](),_0x2218c8,_0x41cd46);return;}_0x480912[_0x183100(0x216)](_0xa62b6f,_0x2218c8,_0x41cd46);}function qi(_0x435245,_0x2a7743,_0x47464b,_0x369bc0){const _0x5dd2b9=_0x425045;return _0x2a7743===_0x5377f1['blank']?_0x369bc0:_0x2a7743===_0x5377f1['date']&&_0x47464b?_0x390aef[_0x5dd2b9(0x319)](_0x47464b,Number(_0x435245)):_0x435245;}function Ji(_0x2d414d){const _0x3da0e4=_0x425045;return _0x2d414d[_0x3da0e4(0x3e8)]===_0x2ed75f['Number']||_0x2d414d['type']===_0x2ed75f[_0x3da0e4(0x210)]||_0x2d414d['type']===_0x2ed75f[_0x3da0e4(0x2b2)]||_0x2d414d['type']===_0x2ed75f[_0x3da0e4(0x318)];}function Yi(_0x2e62b7){const _0x105822=_0x425045;switch(_0x2e62b7){case _0x5b40f7['Row']:return _0x105822(0x32a);case _0x5b40f7[_0x105822(0x17f)]:return'bases-dashboard-ui.pivot.addToColumn';case _0x5b40f7[_0x105822(0x402)]:return _0x105822(0x17d);default:return _0x105822(0x161);}}function Xi({config:_0x318b1c,onChange:_0x4b0c6b,runtime:_0x1b5546,table:_0x5c1d64}){const _0x2340a6=_0x425045;let _0x20df0a=_0x4acd92(_0x4a0c45),[_0x134059,_0x35beb9]=_0xf9778b('chart');return _0x53776f(_0x2340a6(0x2e8),{'className':_0x2340a6(0x114),'children':[_0x46ec10(_0x63d182,{'ariaLabel':_0x20df0a['t'](_0x2340a6(0x207)),'className':'univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','items':[{'label':_0x20df0a['t'](_0x2340a6(0x269)),'panelId':_0x2340a6(0x32d),'value':_0x2340a6(0x3e7)},{'label':_0x20df0a['t'](_0x2340a6(0x329)),'panelId':_0x2340a6(0x2ed),'value':_0x2340a6(0x27b)}],'value':_0x134059,'variant':_0x2340a6(0x328),'onChange':_0x35beb9}),_0x46ec10(_0x2340a6(0x1e1),{'className':_0x2340a6(0x1cc),'children':_0x134059==='chart'?_0x1b5546&&_0x46ec10(Qr,{'config':_0x318b1c,'runtime':_0x1b5546,'tableName':_0x5c1d64['name'],'onChange':_0x4b0c6b}):_0x46ec10(Ri,{'config':_0x318b1c,'table':_0x5c1d64,'onChange':_0x4b0c6b})})]});}function Zi({tableId:_0x199552,unitId:_0x3d39a9,viewId:_0x547442}){const _0x295d08=_0x425045;let [_0x4373bc,_0x4a778f]=_0xf9778b(!0x1),_0xbc428=_0x4acd92(_0x5e43a5),_0x1c90e5=_0x4acd92(_0x4ce5e0),_0xadb0ae=_0x4acd92(_0x5e31f1),_0x1579ff=_0x4acd92(_0x4a0c45),_0x41ba3b=_0x4acd92(_0x2952ef),[_0x577c23,_0x688c77]=_0xf9778b(null),[_0x475221,_0x22e3de]=_0xf9778b(null),_0x335b43=_0x26f122(_0x295d08(0x32f)+_0x184bc2(0x8)),[_0x3064d8,_0x21ea99]=_0xf9778b(!0x1),_0x25d2a5=_0x1c90e5[_0x295d08(0x102)](_0x3d39a9,_0x4b82c2[_0x295d08(0x264)]),_0x2b86c7=_0x25d2a5==null?void 0x0:_0x25d2a5[_0x295d08(0x35f)]()[_0x295d08(0x344)][_0x199552],_0x55894f=_0x2b86c7==null?void 0x0:_0x2b86c7[_0x295d08(0x3ef)][_0x547442],_0x1433d4=Qi(_0x55894f),_0x2d7a63=_r(_0x3d39a9,_0x199552,_0x547442);if(_0x1e9cac(()=>{const _0x56d583=_0x295d08;if(!_0x1433d4)return;let _0x1ebe99=_0x335b43[_0x56d583(0x311)];return _0x41ba3b['acquireChartRuntime'](_0x1ebe99,{'unitId':_0x3d39a9,'tableId':_0x199552,'viewId':_0x547442,'filters':[]}),()=>{const _0x261042=_0x56d583;_0x41ba3b[_0x261042(0x33f)](_0x3d39a9,_0x1ebe99);};},[_0x1433d4,_0x41ba3b,_0x199552,_0x3d39a9,_0x547442]),_0x1e9cac(()=>{const _0x74e08f=_0x295d08;if(!Qi(_0x55894f))return;let _0x25fae2=!0x0,_0xe0da30={'unitId':_0x3d39a9,'tableId':_0x199552,'viewId':_0x547442,'filters':[_0x55894f['filter']??null]};return _0x41ba3b['refreshChartRuntime'](_0x3d39a9,_0x335b43['current'],_0xe0da30)[_0x74e08f(0x12a)](_0x43d7ed=>{const _0x1dcf8b=_0x74e08f;_0x25fae2&&_0x43d7ed&&(_0x688c77(_0x43d7ed),_0x22e3de(_0x41ba3b['getChartRuntime'](_0x3d39a9,_0x335b43[_0x1dcf8b(0x311)])??null),_0x21ea99(!0x1));})[_0x74e08f(0x299)](_0x2c5597=>{const _0x2dbb45=_0x74e08f;_0xadb0ae[_0x2dbb45(0x331)](_0x2dbb45(0x348),_0x2c5597),_0x25fae2&&(_0x688c77(null),_0x21ea99(!0x0));}),()=>{_0x25fae2=!0x1;};},[_0xadb0ae,_0x41ba3b,_0x199552,_0x3d39a9,_0x55894f,_0x547442]),!_0x2b86c7||!Qi(_0x55894f))return null;let _0x4cac71=_0x41ba3b['getChartRuntime'](_0x3d39a9,_0x335b43[_0x295d08(0x311)])===_0x475221?_0x475221:null,_0x4d6a1f=_0x577c23?_0x53776f(_0x295d08(0x1e1),{'className':'univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','style':{'gridTemplateRows':_0x55894f[_0x295d08(0x244)][_0x295d08(0x326)]===_0x295d08(0x143)?_0x295d08(0x141):_0x295d08(0x1f9)},'children':[_0x55894f[_0x295d08(0x244)][_0x295d08(0x326)]!==_0x295d08(0x1d7)&&_0x4cac71&&_0x46ec10(_0x295d08(0x1e1),{'className':_0x295d08(0x1ea),'children':_0x46ec10(Ir,{'isRowDirection':_0x3861f0(_0x55894f['config'][_0x295d08(0x3e7)][_0x295d08(0x26b)]),'runtime':_0x4cac71})}),_0x55894f[_0x295d08(0x244)]['displayMode']!==_0x295d08(0x3e7)&&_0x46ec10(_0x295d08(0x1e1),{'className':_0x295d08(0x138),'children':_0x46ec10(ki,{'pivot':_0x55894f[_0x295d08(0x244)][_0x295d08(0x27b)],'view':_0x577c23[_0x295d08(0x1a6)]})})]}):_0x46ec10(_0x295d08(0x1e1),{'className':_0x295d08(0x199),'children':_0x3064d8?_0x1579ff['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x1579ff['t'](_0x295d08(0x13d))}),_0x4f1048=_0x46ec10(Xi,{'config':_0x55894f[_0x295d08(0x244)],'runtime':_0x4cac71,'table':_0x2b86c7,'onChange':_0x290dd6=>{const _0x59e8e0=_0x295d08;_0x1c90e5['setCurrentUnitForType'](_0x3d39a9),_0x1c90e5[_0x59e8e0(0x403)](_0x3d39a9),_0xbc428['executeCommand'](_0x13d320['id'],{'unitId':_0x3d39a9,'tableId':_0x199552,'viewId':_0x547442,'patch':_0x290dd6})[_0x59e8e0(0x299)](_0x4ec8c4=>_0xadb0ae[_0x59e8e0(0x331)](_0x59e8e0(0x427),_0x4ec8c4));}});return _0x46ec10(Kr,{'children':_0x53776f(_0x295d08(0x1e1),{'className':_0x295d08(0x19b),'children':[_0x2d7a63&&_0x46ec10(_0x5bfdfa,{'onClick':()=>_0x4a778f(!0x0),'children':_0x1579ff['t']('bases-dashboard-ui.pivot.chartConfiguration')}),_0x46ec10(_0x295d08(0x1e1),{'className':_0x295d08(0x212),'children':_0x4d6a1f}),_0x2d7a63&&_0x4373bc&&_0x46ec10(_0x3a70e3,{'title':_0x1579ff['t'](_0x295d08(0x207)),'onClose':()=>_0x4a778f(!0x1),'children':_0x4f1048})]})});}function Qi(_0x5bdb2e){const _0x45e474=_0x425045;return(_0x5bdb2e==null?void 0x0:_0x5bdb2e[_0x45e474(0x3e8)])===_0x5e9757[_0x45e474(0x390)]&&typeof _0x5bdb2e[_0x45e474(0x244)]=='object'&&_0x5bdb2e[_0x45e474(0x244)]!==null&&_0x45e474(0x27b)in _0x5bdb2e[_0x45e474(0x244)]&&'chart'in _0x5bdb2e['config']&&_0x45e474(0x326)in _0x5bdb2e['config'];}let $i=class extends _0x2949ec{constructor(_0x432673,_0x1d8477,_0xbbc37e,_0x2cb9fb,_0x543f67,_0x20a209){const _0x146e4e=_0x425045;super(),this[_0x146e4e(0x134)](_0x1d8477['register']({'type':_0x5e9757['Pivot'],'renderMode':_0x146e4e(0x1cd),'icon':_0x24c955,'component':Zi,'menu':{get 'label'(){const _0x2f38cb=_0x146e4e;return _0x20a209['t'](_0x2f38cb(0x207));},get 'description'(){const _0xcf81e8=_0x146e4e;return _0x20a209['t'](_0xcf81e8(0x20f));},get 'defaultName'(){const _0x1310dd=_0x146e4e;return _0x20a209['t'](_0x1310dd(0x33a));}}})),this[_0x146e4e(0x134)](_0x432673['register'](ea(_0xbbc37e,_0x2cb9fb,_0x543f67,_0x20a209)));}};$i=Or([Y(0x0,_0x55d23f),Y(0x1,_0x1bae39),Y(0x2,_0x4d55af(_0x4001b9)),Y(0x3,_0x5e43a5),Y(0x4,_0x1e4187),Y(0x5,_0x4d55af(_0x4a0c45))],$i);function ea(_0x3b8ec9,_0xa84741,_0x1b8486,_0x166a72){const _0x13d4b2=_0x425045;return{'change$':_0x56c959(_0x3b8ec9[_0x13d4b2(0x33d)],_0x1b8486[_0x13d4b2(0x3c7)]),'component':bi,get 'labels'(){const _0x125ebc=_0x13d4b2;return{'add':_0x166a72['t'](_0x125ebc(0x39f)),'configure':_0x51f956=>_0x166a72['t'](_0x125ebc(0x292),_0x51f956),'delete':_0x166a72['t'](_0x125ebc(0x1e9)),'new':_0x166a72['t']('bases-dashboard-ui.dashboard.new'),'rename':_0x166a72['t']('bases-dashboard-ui.dashboard.rename'),'search':_0x166a72['t'](_0x125ebc(0x12c)),'section':_0x166a72['t'](_0x125ebc(0x1ee))};},'getItems':_0x2712c1=>{const _0x27430b=_0x13d4b2;let _0x27f469=_0x3b8ec9['getResource'](_0x2712c1);return _0x27f469[_0x27430b(0x322)][_0x27430b(0x222)](_0x2ac1e6=>{const _0x4ee661=_0x27430b;let _0x39eefb=_0x27f469[_0x4ee661(0x2d9)][_0x2ac1e6];return _0x39eefb?[{'id':_0x39eefb['id'],'name':_0x39eefb[_0x4ee661(0x10b)],'readonly':!_0x42cb7a(_0x1b8486,_0x2712c1,_0x39eefb['id'])}]:[];});},'create':async _0x9345fc=>{const _0x2300f9=_0x13d4b2;let _0x235732=_0x3b8ec9['getResource'](_0x9345fc),_0x567fa1=_0x2300f9(0x3c5)+_0x184bc2(0x8),_0x74dc0f=ta(_0x235732[_0x2300f9(0x322)]['flatMap'](_0x2b4780=>{const _0x440b7d=_0x2300f9;let _0x360ac9=_0x235732[_0x440b7d(0x2d9)][_0x2b4780];return _0x360ac9?[_0x360ac9[_0x440b7d(0x10b)]]:[];}),_0x27beba=>_0x166a72['t'](_0x2300f9(0xf2),String(_0x27beba)));return await _0xa84741[_0x2300f9(0x1c7)](_0x1506b5['id'],{'unitId':_0x9345fc,'dashboard':{'id':_0x567fa1,'name':_0x74dc0f,'widgetOrder':[],'widgets':{}}})?_0x567fa1:null;},'rename':async(_0x27b682,_0x1be5c1,_0x9d6fc)=>{const _0x48eab3=_0x13d4b2;let _0x39ed55=_0x3b8ec9[_0x48eab3(0x11f)](_0x27b682,_0x1be5c1);return!!(_0x39ed55&&await _0xa84741['executeCommand'](_0x3f980a['id'],{'unitId':_0x27b682,'dashboard':{..._0x39ed55,'name':_0x9d6fc}}));},'remove':(_0x36b1dc,_0x290957)=>_0xa84741['executeCommand'](_0x283801['id'],{'unitId':_0x36b1dc,'dashboardId':_0x290957})};}function ta(_0x52e9e0,_0x4d1365){const _0x3fddd6=_0x425045;let _0x19b6f8=new Set(_0x52e9e0),_0x4e52b7=_0x19b6f8[_0x3fddd6(0x41b)]+0x1,_0x116353=_0x4d1365(_0x4e52b7);for(;_0x19b6f8[_0x3fddd6(0x228)](_0x116353);)_0x4e52b7+=0x1,_0x116353=_0x4d1365(_0x4e52b7);return _0x116353;}let na=class extends _0xea9f56{constructor(_0x2cd4b1=hr,_0xc4c41a,_0x59983b){const _0xb86636=_0x425045;super(),this[_0xb86636(0x126)]=_0x2cd4b1,this[_0xb86636(0x24e)]=_0xc4c41a,this['_configService']=_0x59983b;let {..._0x2379da}=_0x12890c({},hr,this[_0xb86636(0x126)]);this[_0xb86636(0x2ef)][_0xb86636(0x3ec)](mr,_0x2379da);}[_0x425045(0x1a2)](){const _0x2d3f59=_0x425045;this['_injector'][_0x2d3f59(0x2af)]([kr]),this[_0x2d3f59(0x24e)][_0x2d3f59(0x2af)]([Gr]),this[_0x2d3f59(0x24e)][_0x2d3f59(0x2af)]([$i]);}[_0x425045(0x214)](){const _0x5f85f3=_0x425045;_0x416655(this[_0x5f85f3(0x24e)],[[kr],[Gr],[$i]]);}};Pr(na,'type',_0x4b82c2[_0x425045(0x264)]),Pr(na,_0x425045(0x1f5),_0x425045(0x29f)),Pr(na,'packageName',fr),Pr(na,_0x425045(0x2a4),pr),na=Or([_0xda4ae8(_0x11a984,_0x263bdb,_0x4f0d50,_0x1dccd8,_0x505bf2,_0x54e3a0),Y(0x1,_0x4d55af(_0x1c73d0)),Y(0x2,_0x526c93)],na);function ra(_0x5f3294,_0x115bef,_0x18e418,_0xeda51d){const _0x470386=_0x425045;let _0x49c501={..._0x5f3294};if(_0x115bef[_0x470386(0x378)]('w')){let _0x50be33=_0x5f3294[_0x470386(0x291)]+_0x5f3294[_0x470386(0x1ae)];_0x49c501[_0x470386(0x291)]=Math[_0x470386(0x1b0)](0x0,Math['min'](_0x50be33-0x1,_0x5f3294[_0x470386(0x291)]+_0x18e418)),_0x49c501[_0x470386(0x1ae)]=_0x50be33-_0x49c501[_0x470386(0x291)];}else _0x115bef[_0x470386(0x378)]('e')&&(_0x49c501[_0x470386(0x1ae)]=Math[_0x470386(0x1b0)](0x1,Math[_0x470386(0x3d1)](_0x201478-_0x5f3294[_0x470386(0x291)],_0x5f3294[_0x470386(0x1ae)]+_0x18e418)));if(_0x115bef[_0x470386(0x378)]('n')){let _0x4c8010=_0x5f3294[_0x470386(0x1f2)]+_0x5f3294[_0x470386(0xe1)];_0x49c501['row']=Math[_0x470386(0x1b0)](0x0,Math['min'](_0x4c8010-0x1,_0x5f3294[_0x470386(0x1f2)]+_0xeda51d)),_0x49c501[_0x470386(0xe1)]=_0x4c8010-_0x49c501['row'];}else _0x115bef['includes']('s')&&(_0x49c501['rowSpan']=Math['max'](0x1,_0x5f3294['rowSpan']+_0xeda51d));return _0x49c501;}function _0x2f30(_0x140754,_0x59e3f6){_0x140754=_0x140754-0xd8;const _0xe57070=_0xe570();let _0x2f30f1=_0xe57070[_0x140754];return _0x2f30f1;}function ia(_0x2c31bd){const _0x3e1bba=_0x425045;let _0x2e247a=Math[_0x3e1bba(0x1b0)](0x1,Math['min'](_0x201478,Math[_0x3e1bba(0x2d2)](_0x2c31bd[_0x3e1bba(0x1ae)])));return{'column':Math[_0x3e1bba(0x1b0)](0x0,Math[_0x3e1bba(0x3d1)](_0x201478-_0x2e247a,Math[_0x3e1bba(0x2d2)](_0x2c31bd[_0x3e1bba(0x291)]))),'row':Math[_0x3e1bba(0x1b0)](0x0,Math['round'](_0x2c31bd[_0x3e1bba(0x1f2)])),'columnSpan':_0x2e247a,'rowSpan':Math[_0x3e1bba(0x1b0)](0x1,Math[_0x3e1bba(0x2d2)](_0x2c31bd[_0x3e1bba(0xe1)]))};}function aa(_0x53d89d,_0xa62baf,_0x561b2c){const _0x1932ce=_0x425045;let _0x5f467b=new Map(_0x53d89d),_0x1b71c7=ia(_0x561b2c);_0x5f467b[_0x1932ce(0xf0)](_0xa62baf,_0x1b71c7);let _0x470eaf=[[_0xa62baf,_0x1b71c7]];for(let [_0x46bf0a,_0x3b3c1c]of _0x5f467b){if(_0x46bf0a===_0xa62baf)continue;let _0x1249ac=ia(_0x3b3c1c);for(;_0x470eaf[_0x1932ce(0x2eb)](([,_0x36c83b])=>sa(_0x1249ac,_0x36c83b));)_0x1249ac={..._0x1249ac,'row':_0x1249ac['row']+0x1};for(;_0x1249ac['row']>0x0;){let _0x2ac8f8={..._0x1249ac,'row':_0x1249ac[_0x1932ce(0x1f2)]-0x1};if(_0x470eaf[_0x1932ce(0x2eb)](([,_0x59aa7f])=>sa(_0x2ac8f8,_0x59aa7f)))break;_0x1249ac=_0x2ac8f8;}_0x470eaf[_0x1932ce(0x2d8)]([_0x46bf0a,_0x1249ac]),_0x5f467b[_0x1932ce(0xf0)](_0x46bf0a,_0x1249ac);}return _0x5f467b;}function oa(_0x40baa5,_0x289e97,_0x36d658,_0x49d429=0x38,_0x2d6935=0x16){const _0x59d8fe=_0x425045;return _0x40baa5<_0x289e97+_0x49d429?-Math['ceil'](_0x2d6935*(0x1-Math[_0x59d8fe(0x1b0)](0x0,_0x40baa5-_0x289e97)/_0x49d429)):_0x40baa5>_0x36d658-_0x49d429?Math[_0x59d8fe(0x23b)](_0x2d6935*(0x1-Math[_0x59d8fe(0x1b0)](0x0,_0x36d658-_0x40baa5)/_0x49d429)):0x0;}function sa(_0x4d749b,_0x5392c0){const _0x13ed2f=_0x425045;return _0x4d749b[_0x13ed2f(0x291)]<_0x5392c0[_0x13ed2f(0x291)]+_0x5392c0[_0x13ed2f(0x1ae)]&&_0x4d749b[_0x13ed2f(0x291)]+_0x4d749b[_0x13ed2f(0x1ae)]>_0x5392c0['column']&&_0x4d749b[_0x13ed2f(0x1f2)]<_0x5392c0[_0x13ed2f(0x1f2)]+_0x5392c0[_0x13ed2f(0xe1)]&&_0x4d749b['row']+_0x4d749b[_0x13ed2f(0xe1)]>_0x5392c0[_0x13ed2f(0x1f2)];}const ca=[{'direction':'nw','className':'univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize'},{'direction':'n','className':_0x425045(0x2b4)},{'direction':'ne','className':_0x425045(0x414)},{'direction':'e','className':_0x425045(0x1c8)},{'direction':'se','className':_0x425045(0x15a)},{'direction':'s','className':_0x425045(0x203)},{'direction':'sw','className':_0x425045(0x279)},{'direction':'w','className':'-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize'}];function la({dashboard:_0x214c74,dragLabel:_0x286a58,editable:_0x94c2f6=!0x0,onLayoutsCommit:_0x541b28,onSelectWidget:_0x361a7c,renderWidget:_0x6f2f4e,renderWidgetActions:_0x100387,resizeLabel:_0x5b0e62,selectedWidgetId:_0x233bd2,widgetLabel:_0x430f1d}){const _0x3b3fc7=_0x425045;let _0x3ba343=_0x26f122(null),_0xd86542=_0x26f122(null),[_0x3f0cc1,_0x1bde67]=_0xf9778b(!0x1),_0x1a712d=_0x1f57f7(()=>new Map(_0x214c74[_0x3b3fc7(0x185)][_0x3b3fc7(0x222)](_0x16e032=>{const _0x315d3d=_0x3b3fc7;let _0x51925b=_0x214c74[_0x315d3d(0x376)][_0x16e032];return _0x51925b?[[_0x16e032,_0x51925b[_0x315d3d(0x155)]]]:[];})),[_0x214c74]),[_0x970760,_0x4d2bb1]=_0xf9778b(_0x1a712d);_0x1e9cac(()=>{const _0x285f38=_0x3b3fc7;_0xd86542[_0x285f38(0x311)]||_0x4d2bb1(_0x1a712d);},[_0x1a712d]),_0x1e9cac(()=>{const _0x539ad7=_0x3b3fc7;if(!_0x3f0cc1)return;let _0x12f686=_0x4912b5=>{const _0x216180=_0x2f30;let _0x4a02ab=_0x3ba343[_0x216180(0x311)];if(!_0x4a02ab)return null;let _0xb5bb45=_0x4a02ab[_0x216180(0x397)](),_0x5f0c6e=Math[_0x216180(0x1b0)](0x1,(_0xb5bb45['width']-0x8*(_0x201478-0x1))/_0x201478),_0x47afd4=Math[_0x216180(0x2d2)]((_0x4a02ab['scrollTop']-_0x4912b5[_0x216180(0x101)])/(_0x5182cb+0x8)),_0x49155a=Math[_0x216180(0x2d2)]((_0x4912b5['pointerX']-_0x4912b5['startX'])/(_0x5f0c6e+0x8)),_0xbf33b5=Math[_0x216180(0x2d2)]((_0x4912b5[_0x216180(0x1f8)]-_0x4912b5[_0x216180(0x38c)])/(_0x5182cb+0x8))+_0x47afd4,_0x4881bf=_0x4912b5[_0x216180(0x201)]===_0x216180(0x213)?{..._0x4912b5['initial'],'column':_0x4912b5[_0x216180(0x1ab)]['column']+_0x49155a,'row':_0x4912b5['initial']['row']+_0xbf33b5}:ra(_0x4912b5[_0x216180(0x1ab)],_0x4912b5[_0x216180(0x3b8)]??'se',_0x49155a,_0xbf33b5),_0x5786c7=aa(_0x4912b5['initialLayouts'],_0x4912b5['id'],_0x4881bf);return _0x4d2bb1(_0x5786c7),_0x5786c7;},_0x54dade=_0x5a058d=>{const _0x16429d=_0x2f30;let _0x511855=_0xd86542[_0x16429d(0x311)];if(!_0x511855)return;let _0x20dfd1={..._0x511855,'pointerX':_0x5a058d[_0x16429d(0x24d)],'pointerY':_0x5a058d[_0x16429d(0x2ff)]};_0xd86542[_0x16429d(0x311)]=_0x20dfd1;},_0x1112e3=()=>{const _0x17b3a5=_0x2f30;let _0x3c5708=_0xd86542['current'],_0x5d1961=_0x3c5708?_0x12f686(_0x3c5708):null;_0xd86542[_0x17b3a5(0x311)]=null,_0x1bde67(!0x1),_0x5d1961&&_0x541b28(_0x5d1961);},_0x579c35=0x0,_0x557b1c=()=>{const _0x3ce7b8=_0x2f30;let _0x393bf0=_0x3ba343[_0x3ce7b8(0x311)],_0x5ee8c4=_0xd86542[_0x3ce7b8(0x311)];if(_0x393bf0&&_0x5ee8c4){let _0x216341=_0x393bf0[_0x3ce7b8(0x397)](),_0x1c563d=oa(_0x5ee8c4[_0x3ce7b8(0x1f8)],_0x216341[_0x3ce7b8(0x2ba)],_0x216341['bottom']);_0x1c563d!==0x0&&(_0x393bf0['scrollTop']+=_0x1c563d),_0x12f686(_0x5ee8c4),_0x579c35=requestAnimationFrame(_0x557b1c);}};return _0x579c35=requestAnimationFrame(_0x557b1c),window[_0x539ad7(0x381)]('pointermove',_0x54dade),window[_0x539ad7(0x381)](_0x539ad7(0x206),_0x1112e3),()=>{const _0x588a7f=_0x539ad7;cancelAnimationFrame(_0x579c35),window[_0x588a7f(0xfc)]('pointermove',_0x54dade),window[_0x588a7f(0xfc)](_0x588a7f(0x206),_0x1112e3);};},[_0x3f0cc1,_0x541b28]);let _0x41df5e=Math[_0x3b3fc7(0x1b0)](0x8,...Array[_0x3b3fc7(0x3b1)](_0x970760[_0x3b3fc7(0x2f0)]())[_0x3b3fc7(0x131)](_0x58ab91=>_0x58ab91[_0x3b3fc7(0x1f2)]+_0x58ab91[_0x3b3fc7(0xe1)])),_0x450764=(_0xfd6f68,_0xd48b81,_0xb19d8c,_0x477c53)=>{const _0xa4300b=_0x3b3fc7;_0xfd6f68[_0xa4300b(0x3f3)](),_0xfd6f68['stopPropagation']();let _0x2f317d=_0x3ba343['current'],_0x56be84={'id':_0xd48b81['id'],'mode':_0xb19d8c,'pointerX':_0xfd6f68[_0xa4300b(0x24d)],'pointerY':_0xfd6f68[_0xa4300b(0x2ff)],'startX':_0xfd6f68['clientX'],'startY':_0xfd6f68[_0xa4300b(0x2ff)],'startScrollTop':(_0x2f317d==null?void 0x0:_0x2f317d[_0xa4300b(0x295)])??0x0,'initial':_0x970760[_0xa4300b(0x122)](_0xd48b81['id'])??_0xd48b81[_0xa4300b(0x155)],'initialLayouts':new Map(_0x970760),'resizeDirection':_0x477c53};_0xd86542['current']=_0x56be84,_0x1bde67(!0x0);};return _0x46ec10(_0x3b3fc7(0x1e1),{'ref':_0x3ba343,'data-dashboard-scroll-container':!0x0,'className':_0x4ba74c(_0x3b3fc7(0x3eb),_0x3d0337),'onClick':_0x94c2f6?_0x306e58=>{const _0x3ea3d0=_0x3b3fc7;if(!(_0x306e58[_0x3ea3d0(0x3d9)]instanceof Node)||!_0x306e58[_0x3ea3d0(0x1ca)][_0x3ea3d0(0x10c)](_0x306e58[_0x3ea3d0(0x3d9)]))return;let _0x4c63fc=_0x306e58['target']instanceof Element?_0x306e58[_0x3ea3d0(0x3d9)]:_0x306e58['target']['parentElement'];_0x4c63fc!=null&&_0x4c63fc[_0x3ea3d0(0x2d6)]('[data-dashboard-widget]')||_0x361a7c==null||_0x361a7c();}:void 0x0,'children':_0x46ec10(_0x3b3fc7(0x1e1),{'data-dashboard-grid':!0x0,'className':_0x3b3fc7(0x312),'style':{'gap':0x8,'gridAutoRows':_0x5182cb,'minHeight':_0x41df5e*(_0x5182cb+0x8)},'children':_0x214c74[_0x3b3fc7(0x185)]['map'](_0x4d00fd=>{const _0x15115d=_0x3b3fc7;var _0x2ecaa0;let _0x4a3515=_0x214c74[_0x15115d(0x376)][_0x4d00fd],_0x348745=_0x970760[_0x15115d(0x122)](_0x4d00fd);return!_0x4a3515||!_0x348745?null:_0x53776f('article',{'data-dashboard-widget':_0x4a3515['id'],'aria-label':_0x4a3515[_0x15115d(0x2fd)]??_0x430f1d(_0x4a3515),'className':_0x4ba74c(_0x15115d(0x2de),_0x4a3515['type']===_0x1cae1f['Image']||_0x4a3515[_0x15115d(0x3e8)]===_0x1cae1f[_0x15115d(0x325)]?_0x15115d(0xff):_0x15115d(0x19d),_0x94c2f6&&_0x233bd2===_0x4a3515['id']?_0x15115d(0x249):_0x15115d(0x374)),'style':{'gridColumn':_0x348745['column']+0x1+'\x20/\x20span\x20'+_0x348745[_0x15115d(0x1ae)],'gridRow':_0x348745[_0x15115d(0x1f2)]+0x1+_0x15115d(0x3b0)+_0x348745[_0x15115d(0xe1)]},'tabIndex':_0x94c2f6?0x0:void 0x0,'onClick':_0x94c2f6?()=>_0x361a7c==null?void 0x0:_0x361a7c(_0x4a3515['id']):void 0x0,'onFocus':_0x94c2f6?()=>_0x361a7c==null?void 0x0:_0x361a7c(_0x4a3515['id']):void 0x0,'children':[_0x94c2f6&&_0x46ec10(_0x15115d(0x14d),{'type':_0x15115d(0x14d),'aria-label':_0x286a58,'data-dashboard-drag-handle':_0x4a3515['id'],'className':_0x4ba74c(_0x15115d(0x2ac),_0x3f0cc1&&((_0x2ecaa0=_0xd86542[_0x15115d(0x311)])==null?void 0x0:_0x2ecaa0['id'])===_0x4a3515['id']&&_0xd86542[_0x15115d(0x311)][_0x15115d(0x201)]==='move'?'univer-cursor-grabbing':_0x15115d(0x301)),'onPointerDown':_0x5b3cbe=>_0x450764(_0x5b3cbe,_0x4a3515,_0x15115d(0x213)),'children':_0x46ec10(_0x489e03,{'className':'univer-size-5\x20univer-rotate-90','aria-hidden':'true'})}),_0x94c2f6&&_0x46ec10(_0x15115d(0x1e1),{'className':_0x15115d(0xf6),'children':_0x100387==null?void 0x0:_0x100387(_0x4a3515)}),_0x46ec10(_0x15115d(0x1e1),{'className':_0x15115d(0x26c),'children':_0x6f2f4e(_0x4a3515)}),_0x94c2f6&&ca[_0x15115d(0x131)](({className:_0x44ee07,direction:_0x20c844})=>{const _0x2a0aeb=_0x15115d;let _0x51bcd9=_0x20c844[_0x2a0aeb(0x297)]===0x2;return _0x46ec10(_0x2a0aeb(0x14d),{'type':'button','aria-label':_0x5b0e62,'data-dashboard-resize-handle':_0x20c844,'data-dashboard-resize-control':_0x51bcd9?_0x20c844:void 0x0,'data-dashboard-resize-edge':_0x51bcd9?void 0x0:_0x20c844,'className':_0x4ba74c(_0x2a0aeb(0x432),_0x51bcd9?_0x2a0aeb(0x1b3):'univer-border-0\x20univer-bg-transparent',_0x44ee07,_0x233bd2===_0x4a3515['id']&&_0x2a0aeb(0x257)),'onPointerDown':_0x5a19d7=>_0x450764(_0x5a19d7,_0x4a3515,_0x2a0aeb(0x123),_0x20c844)},_0x20c844);})]},_0x4a3515['id']);})})});}var ua;const Q={'axis':{..._0x2b8f2e,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x379325,'heatmap':_0x288154,'indicatorLine':_0x3e2ab8,'legend':_0x24a88c,'lineAndArea':_0x5380f7,'pareto':_0x35937b,'pie':_0x3a6db9,'radar':_0x259969,'relation':{..._0x585337,'useValueAsSymbolSize':!0x0},'series':{..._0xf1747d,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((ua=_0x2c243f[_0x425045(0x418)])==null?void 0x0:ua['rightYAxis'])??!0x1}},'style':_0x1bbce8,'titles':_0x4b3637,'trendline':_0x18f851,'waterfall':{..._0x2a4648,'useSubtotal':!0x0},'waterfallStyle':_0x26db14,'wordCloud':_0x2d171b},da=[_0x22cfd2[_0x425045(0x3ac)],_0x22cfd2[_0x425045(0x3a6)],_0x22cfd2[_0x425045(0x2b8)],_0x22cfd2['Scatter'],_0x22cfd2[_0x425045(0x22d)],_0x22cfd2[_0x425045(0x38b)],_0x22cfd2[_0x425045(0x18e)],_0x22cfd2['Heatmap'],_0x22cfd2[_0x425045(0x1ce)],_0x22cfd2[_0x425045(0x211)],_0x22cfd2[_0x425045(0x39e)],_0x22cfd2['Treemap'],_0x22cfd2[_0x425045(0x310)],_0x22cfd2[_0x425045(0x118)],_0x22cfd2['Chord']];function fa(_0x2767d6){const _0xbf1ebf=_0x425045;let {config:_0x4ad363,onChange:_0xec3013,runtime:_0x4cf7d1,tableName:_0x3e45bc}=_0x2767d6,_0x584207=_0x4acd92(Gr),_0x443072=_0x4acd92(_0x4a0c45),[_0x28757e,_0x50178]=_0xf9778b(_0x4114fc[_0xbf1ebf(0x11b)]),_0x2d700f=_0x1f57f7(()=>new _0x278c35(_0x4cf7d1[_0xbf1ebf(0x3db)],{'commit':_0x21ccab=>{const _0x5b1a29=_0xbf1ebf;var _0x167946;let _0x25e6ab=_0x4cf7d1['model'],_0x8c7896=_0x1f96c7(_0x21ccab,{'series':(_0x167946=_0x25e6ab[_0x5b1a29(0x244)])==null?void 0x0:_0x167946[_0x5b1a29(0x3b2)],'currentChartType':_0x25e6ab[_0x5b1a29(0x20c)],'currentStyle':_0x25e6ab['style'],'currentContext':_0x25e6ab[_0x5b1a29(0x147)],'currentDataAggregation':_0x25e6ab['dataAggregation']});_0xec3013({'chart':pa(_0x4ad363[_0x5b1a29(0x3e7)],_0x8c7896)});}}),[_0x4ad363[_0xbf1ebf(0x3e7)],_0xec3013,_0x4cf7d1]),_0x4e324e=_0x1f57f7(()=>_0x4e0311(_0xd33d42['map'](_0x2c4054=>({..._0x2c4054,'label':_0x443072['t'](_a(_0x2c4054[_0xbf1ebf(0x3c4)]))}))),[_0x443072]);return _0x46ec10(_0x74e14c,{'chartUIService':_0x584207,'hostAdapter':_0x2d700f,'children':_0x53776f(_0xbf1ebf(0x1e1),{'className':_0xbf1ebf(0xe3),'children':[_0x46ec10(_0x63d182,{'ariaLabel':_0x443072['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0xbf1ebf(0x341),'items':[{'label':_0x443072['t'](_0xbf1ebf(0x281)),'panelId':_0xbf1ebf(0x247),'value':_0x4114fc[_0xbf1ebf(0x11b)]},{'label':_0x443072['t'](_0xbf1ebf(0x407)),'panelId':_0xbf1ebf(0x3f1),'value':_0x4114fc[_0xbf1ebf(0x277)]}],'value':_0x28757e,'onChange':_0x50178}),_0x28757e===_0x4114fc['Data']?_0x46ec10(_0x1cd28c,{'id':_0xbf1ebf(0x247),'label':_0x443072['t'](_0xbf1ebf(0x281)),'children':_0x53776f(_0xbf1ebf(0x1e1),{'className':_0xbf1ebf(0x3fd),'children':[_0x46ec10(_0x33d302,{'options':_0x4e324e}),_0x46ec10(_0x3f515b,{}),_0x46ec10(_0x2ee830,{}),_0x46ec10(ma,{}),_0x46ec10(_0x32c27e,{}),_0x53776f(_0xbf1ebf(0x1e1),{'children':[_0x46ec10(_0x4c9395,{'title':_0x443072['t'](_0xbf1ebf(0x3c0))}),_0x46ec10(_0x512832,{'disabled':!0x0,'value':_0x3e45bc})]}),_0x46ec10(_0x41d279,{'orientationControl':_0x46ec10(_0x5bfdfa,{'size':'small','onClick':()=>_0xec3013({'chart':{..._0x4ad363[_0xbf1ebf(0x3e7)],'orient':_0x4ad363['chart'][_0xbf1ebf(0x26b)]===_0xbf1ebf(0x1f2)?'column':'row'}}),'children':_0x443072['t']('bases-dashboard-ui.chart.common.switchRowColumn')})}),_0x46ec10(_0x2b6e95,{}),_0x46ec10(_0x33caa5,{'defaultValues':Q[_0xbf1ebf(0x1b6)]}),_0x53776f(_0xbf1ebf(0x1e1),{'children':[_0x46ec10(_0x4c9395,{'title':_0x443072['t']('bases-dashboard-ui.pivot.display')}),_0x46ec10(_0x5ba88c,{'value':_0x4ad363[_0xbf1ebf(0x326)],'options':[{'value':_0xbf1ebf(0x143),'label':_0x443072['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':_0xbf1ebf(0x3e7),'label':_0x443072['t'](_0xbf1ebf(0x243))},{'value':_0xbf1ebf(0x1d7),'label':_0x443072['t'](_0xbf1ebf(0x13a))}],'onChange':_0x2446aa=>{const _0x24503f=_0xbf1ebf;(_0x2446aa===_0x24503f(0x143)||_0x2446aa==='chart'||_0x2446aa===_0x24503f(0x1d7))&&_0xec3013({'displayMode':_0x2446aa});}})]})]})}):_0x46ec10(_0x1cd28c,{'id':_0xbf1ebf(0x3f1),'label':_0x443072['t'](_0xbf1ebf(0x407)),'children':_0x46ec10(ha,{})})]})});}function pa(_0x53b408,_0x3ee716){const _0xaf745=_0x425045;return{..._0x53b408,'type':_0x3ee716[_0xaf745(0x20c)]??_0x53b408['type'],'style':_0x3ee716[_0xaf745(0x12d)]??_0x53b408[_0xaf745(0x12d)],'context':_0x3ee716['context']??_0x53b408[_0xaf745(0x147)],'dataAggregation':_0x3ee716[_0xaf745(0x179)]??_0x53b408[_0xaf745(0x179)]};}function ma(){const _0x228347=_0x425045;let _0x24cdb1=_0x188dc1();return _0x46ec10(_0x306610,{'visible':da[_0x228347(0x115)](_0x2a5cd3=>!_0x55db12[_0x228347(0x302)](_0x24cdb1,_0x2a5cd3))});}function $(_0x3bfd59){const _0x12655c=_0x425045;return _0x53776f(_0x48080d,{'id':_0x3bfd59['id'],'children':[_0x46ec10(_0x44bedc,{'children':_0x3bfd59[_0x12655c(0x31b)]}),_0x46ec10(_0x46ca04,{'children':_0x3bfd59[_0x12655c(0x2ae)]})]});}function ha(){const _0x1989e2=_0x425045;let _0xf89140=_0x4acd92(_0x4a0c45),_0x30df25=_0x188dc1(),_0x117ecb=_0x10db6e(),[_0x7993e6,_0x5d2cb4]=_0xf9778b(null),_0x32cdad=_0x55db12['baseOn'](_0x30df25,_0x22cfd2['Pie']),_0x139190=_0x30df25===_0x22cfd2[_0x1989e2(0x3a6)],_0x158e35=_0x30df25===_0x22cfd2[_0x1989e2(0x2b8)],_0x7ee800=_0x30df25===_0x22cfd2['Funnel'],_0x5a7ce9=_0x55db12[_0x1989e2(0x302)](_0x30df25,_0x22cfd2[_0x1989e2(0x391)]),_0x47cc61=_0x30df25===_0x22cfd2['Relation'],_0x333e21=_0x30df25===_0x22cfd2[_0x1989e2(0x429)],_0x224232=_0x30df25===_0x22cfd2['Pareto'],_0x165d56=_0x30df25===_0x22cfd2[_0x1989e2(0x2df)],_0x448104=_0x243119(_0x30df25,_0xfed3f8[_0x1989e2(0x17e)])&&!_0x5a7ce9&&!_0x224232,_0x301efd=ga(_0x30df25,_0xf89140);return _0x53776f(_0x34920d,{'value':_0x7993e6,'onChange':_0x5d2cb4,'children':[_0x46ec10($,{'id':_0x597dbd[_0x1989e2(0x28c)],'label':_0xf89140['t'](_0x1989e2(0x1dd)),'children':_0x46ec10(_0x5642e7,{'defaultValues':Q['style']})}),_0x46ec10($,{'id':_0x597dbd['ChartAndAxisTitles'],'label':_0xf89140['t'](_0x1989e2(0x135)),'children':_0x46ec10(_0x120f4b,{'commitMode':_0x1989e2(0x2d3),'defaultValues':Q[_0x1989e2(0x274)]})}),_0x448104&&_0x46ec10($,{'id':_0x597dbd[_0x1989e2(0x154)],'label':_0xf89140['t'](_0x1989e2(0x140)),'children':_0x46ec10(_0x187ff8,{'defaultValues':Q[_0x1989e2(0x3b2)],'NumberFormatField':_0x2c02d8})}),_0x333e21&&_0x46ec10($,{'id':_0x597dbd[_0x1989e2(0x30c)],'label':_0xf89140['t'](_0x1989e2(0x2e9)),'children':_0x46ec10(_0x388262,{'defaultValues':Q['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x2a20fd,target:_0x1ae88d})=>_0x1ae88d===_0x4868ef[_0x1989e2(0x263)]?_0xf89140['t'](_0x1989e2(0x31e)):_0x2a20fd?_0x2a20fd+'-('+_0xf89140['t'](_0x1989e2(0x1e0)+(_0x1ae88d===_0x4868ef[_0x1989e2(0x2c5)]?_0x1989e2(0x219):_0x1989e2(0x42d)))+')':'','NumberFormatField':_0x2c02d8})}),_0x224232&&_0x53776f(_0x461de9,{'children':[_0x46ec10($,{'id':_0x597dbd[_0x1989e2(0x2d5)],'label':_0xf89140['t']('bases-dashboard-ui.chart.section.paretoBar'),'children':_0x46ec10(_0x100f7a,{'defaultValues':Q[_0x1989e2(0x153)],'NumberFormatField':_0x2c02d8,'showDataPointEditor':!0x0,'target':_0x1989e2(0x36a)})}),_0x46ec10($,{'id':_0x597dbd[_0x1989e2(0x2e1)],'label':_0xf89140['t'](_0x1989e2(0x2c1)),'children':_0x46ec10(_0x100f7a,{'defaultValues':Q[_0x1989e2(0x153)],'NumberFormatField':_0x2c02d8,'showDataPointEditor':!0x1,'target':_0x1989e2(0x362)})})]}),_0x32cdad&&_0x46ec10($,{'id':_0x597dbd[_0x1989e2(0x383)],'label':_0xf89140['t'](_0x1989e2(0x15d)),'children':_0x46ec10(_0x5217f9,{'defaultValues':Q[_0x1989e2(0x2c9)],'NumberFormatField':_0x2c02d8})}),_0x158e35&&_0x46ec10($,{'id':_0x597dbd[_0x1989e2(0x2b8)],'label':_0xf89140['t'](_0x1989e2(0xf7)),'children':_0x46ec10(_0x9c371a,{'defaultValues':Q[_0x1989e2(0x234)]})}),_0x139190&&_0x46ec10($,{'id':_0x597dbd['Radar'],'label':_0xf89140['t'](_0x1989e2(0x2fe)),'children':_0x46ec10(_0x250da3,{'defaultValues':Q[_0x1989e2(0x3cb)]})}),_0x7ee800&&_0x46ec10($,{'id':_0x597dbd[_0x1989e2(0x22d)],'label':_0xf89140['t'](_0x1989e2(0x25b)),'children':_0x46ec10(_0x27341e,{'defaultValues':Q[_0x1989e2(0x137)],'gapControl':_0x1989e2(0x1be)})}),_0x165d56&&_0x46ec10($,{'id':_0x597dbd[_0x1989e2(0x2df)],'label':_0xf89140['t']('bases-dashboard-ui.chart.common.heatmap'),'children':_0x46ec10(_0x57aed4,{'defaultValues':Q[_0x1989e2(0x436)]})}),_0x47cc61&&_0x46ec10($,{'id':_0x597dbd['Relation'],'label':_0xf89140['t'](_0x1989e2(0x355)),'children':_0x46ec10(_0x20b35a,{'defaultValues':Q[_0x1989e2(0x3da)]})}),_0x2f121b(_0x30df25)&&_0x46ec10($,{'id':_0x597dbd['LineAndArea'],'label':_0xf89140['t'](_0x1989e2(0xe8)),'children':_0x46ec10(_0x2846ee,{'defaultValues':Q['lineAndArea'],'lineStyleControl':'segmented'})}),_0x243119(_0x30df25,_0xfed3f8[_0x1989e2(0x375)])&&_0x46ec10($,{'id':_0x597dbd[_0x1989e2(0x375)],'label':_0xf89140['t'](_0x1989e2(0x3ae)),'children':_0x46ec10(_0x36f7ba,{'defaultValues':Q[_0x1989e2(0x30d)]})}),_0x243119(_0x30df25,_0xfed3f8[_0x1989e2(0x379)])&&_0x53776f(_0x461de9,{'children':[_0x46ec10($,{'id':_0x597dbd[_0x1989e2(0x1af)],'label':_0xf89140['t'](_0x1989e2(0x284)),'children':_0x46ec10(_0x4cda27,{'axis':'x','defaultValues':Q['axis'],'NumberFormatField':_0x2c02d8})}),_0x46ec10($,{'id':_0x597dbd[_0x1989e2(0x18c)],'label':_0xf89140['t'](_0x1989e2(0x37a)),'children':_0x46ec10(_0x4cda27,{'axis':'y','defaultValues':Q[_0x1989e2(0x2f3)],'NumberFormatField':_0x2c02d8})}),_0x117ecb&&_0x46ec10($,{'id':_0x597dbd[_0x1989e2(0x1d4)],'label':_0xf89140['t'](_0x1989e2(0x313)),'children':_0x46ec10(_0x4cda27,{'axis':_0x1989e2(0x2e7),'defaultValues':Q['axis'],'NumberFormatField':_0x2c02d8})}),_0x46ec10($,{'id':_0x597dbd[_0x1989e2(0x1e6)],'label':_0xf89140['t'](_0x1989e2(0x3e5)),'children':_0x46ec10(_0x2dba0a,{'defaultValues':Q['axis']})})]}),_0x243119(_0x30df25,_0xfed3f8[_0x1989e2(0x23a)])&&_0x46ec10($,{'id':_0x597dbd[_0x1989e2(0x23a)],'label':_0xf89140['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x46ec10(_0x363d62,{'defaultValues':Q[_0x1989e2(0x1cf)]})}),_0x37eeaa(_0x30df25)&&_0x46ec10($,{'id':_0x597dbd['Trendline'],'label':_0xf89140['t'](_0x1989e2(0x1e2)),'children':_0x46ec10(_0x592ac5,{'defaultValues':Q[_0x1989e2(0x149)]})}),_0x301efd&&_0x46ec10($,{'id':_0x301efd['id'],'label':_0x301efd[_0x1989e2(0x31b)],'children':_0x46ec10(_0x4c1bd2,{})})]});}function ga(_0x25c6ba,_0x5a3829){const _0x3e12a6=_0x425045;let _0x3f2076={[_0x22cfd2[_0x3e12a6(0x211)]]:{'id':_0x597dbd[_0x3e12a6(0x211)],'localeKey':_0x3e12a6(0xee)},[_0x22cfd2['Histogram']]:{'id':_0x597dbd[_0x3e12a6(0x39e)],'localeKey':_0x3e12a6(0x166)},[_0x22cfd2[_0x3e12a6(0x231)]]:{'id':_0x597dbd[_0x3e12a6(0x231)],'localeKey':_0x3e12a6(0x2ea)},[_0x22cfd2[_0x3e12a6(0x310)]]:{'id':_0x597dbd['Sunburst'],'localeKey':_0x3e12a6(0xea)},[_0x22cfd2['Gauge']]:{'id':_0x597dbd[_0x3e12a6(0x118)],'localeKey':_0x3e12a6(0x3a8)},[_0x22cfd2[_0x3e12a6(0x410)]]:{'id':_0x597dbd[_0x3e12a6(0x410)],'localeKey':_0x3e12a6(0x132)}}[_0x25c6ba];return _0x3f2076?{'id':_0x3f2076['id'],'label':_0x5a3829['t'](_0x3f2076['localeKey'])}:null;}function _a(_0x119f2d){const _0x212ff5=_0x425045;return _0x212ff5(0x420)+_0x119f2d;}function va({onChange:_0x2b5a94,onEditData:_0x534998,runtime:_0x600d08,sourceChart:_0x3ba31f,sourceName:_0x45424e,widget:_0x411eb8}){const _0x292890=_0x425045;let _0x5842ee=_0x4acd92(Gr),_0x4bd21f=_0x4acd92(_0x4a0c45),[_0x322ff1,_0x100f85]=_0xf9778b(_0x4114fc['Data']),_0x8fbfb9=_0x411eb8[_0x292890(0x3e7)]??_0x3ba31f,_0x274a78=_0x1f57f7(()=>new _0x278c35(_0x600d08[_0x292890(0x3db)],{'commit':_0x1d5c56=>{const _0x103780=_0x292890;var _0x5e9f22;let _0x29e27c=_0x600d08[_0x103780(0x3db)],_0x15429e=_0x1f96c7(_0x1d5c56,{'series':(_0x5e9f22=_0x29e27c['config'])==null?void 0x0:_0x5e9f22['series'],'currentChartType':_0x29e27c[_0x103780(0x20c)],'currentStyle':_0x29e27c[_0x103780(0x12d)],'currentContext':_0x29e27c[_0x103780(0x147)],'currentDataAggregation':_0x29e27c['dataAggregation']});_0x2b5a94({..._0x411eb8,'chart':pa(_0x8fbfb9,_0x15429e)})[_0x103780(0x299)](()=>void 0x0);}}),[_0x8fbfb9,_0x2b5a94,_0x600d08,_0x411eb8]),_0x28187b=_0x1f57f7(()=>_0x4e0311(_0xd33d42[_0x292890(0x131)](_0x11071f=>({..._0x11071f,'label':_0x4bd21f['t'](ya(_0x11071f['labelId']))}))),[_0x4bd21f]);return _0x46ec10(_0x74e14c,{'chartUIService':_0x5842ee,'hostAdapter':_0x274a78,'children':_0x53776f('div',{'data-dashboard-chart-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x46ec10(_0x63d182,{'ariaLabel':_0x4bd21f['t'](_0x292890(0x275)),'className':_0x292890(0x341),'items':[{'label':_0x4bd21f['t'](_0x292890(0x281)),'panelId':_0x292890(0x33b),'value':_0x4114fc[_0x292890(0x11b)]},{'label':_0x4bd21f['t'](_0x292890(0x407)),'panelId':_0x292890(0x170),'value':_0x4114fc[_0x292890(0x277)]}],'value':_0x322ff1,'onChange':_0x100f85}),_0x322ff1===_0x4114fc[_0x292890(0x11b)]?_0x46ec10(_0x1cd28c,{'id':_0x292890(0x33b),'label':_0x4bd21f['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x53776f(_0x292890(0x1e1),{'className':_0x292890(0x3fd),'children':[_0x46ec10(_0x33d302,{'options':_0x28187b}),_0x46ec10(_0x3f515b,{}),_0x46ec10(_0x2ee830,{}),_0x46ec10(ma,{}),_0x46ec10(_0x32c27e,{}),_0x53776f(_0x292890(0x1e1),{'children':[_0x46ec10(_0x4c9395,{'title':_0x4bd21f['t']('bases-dashboard-ui.dashboardInspector.dataSource')}),_0x46ec10(_0x512832,{'disabled':!0x0,'value':_0x45424e}),_0x46ec10(_0x5bfdfa,{'className':'univer-mt-2\x20univer-w-full','onClick':_0x534998,'children':_0x4bd21f['t'](_0x292890(0x36f))})]})]})}):_0x46ec10(_0x1cd28c,{'id':_0x292890(0x170),'label':_0x4bd21f['t'](_0x292890(0x407)),'children':_0x46ec10(ha,{})})]})});}function ya(_0x26d126){return'bases-dashboard-ui.chart.chartTypes.'+_0x26d126;}const ba=[_0x425045(0x1ef),_0x425045(0x152),_0x425045(0x1b8),_0x425045(0x2dc),_0x425045(0x2cf),_0x425045(0x191)];function xa({base:_0x82a9d9,onChange:_0xfc65aa,onSelectBackgroundImage:_0x104aee,widget:_0x1a540d}){const _0x48ab8d=_0x425045;var _0xc49ddc;let _0x2ff31b=_0x4acd92(_0x4a0c45),_0x38e197=_0x4acd92(_0x3f1b1a),_0x4b6f2e=_0x1b22fe(()=>_0x38e197[_0x48ab8d(0x38a)],_0x38e197[_0x48ab8d(0x327)](),!0x1,[_0x38e197]),_0x3b38cc=_0x1b22fe(()=>_0x38e197['darkMode$'],_0x38e197[_0x48ab8d(0x124)],!0x1,[_0x38e197]),[_0x19d26c,_0x2f7f85]=_0xf9778b(_0x48ab8d(0x16c)),[_0x507fc5,_0x1ef565]=_0xf9778b(!0x1),_0x186ab5=xr(_0x1a540d),_0x194ce9=_0x82a9d9['getSnapshot']()[_0x48ab8d(0x344)][_0x1a540d['tableId']],_0x4cce98=_0x194ce9==null?void 0x0:_0x194ce9[_0x48ab8d(0x428)][_0x48ab8d(0x11d)](_0x2b44d2=>_0x194ce9[_0x48ab8d(0x3ef)][_0x2b44d2]),_0x52c754=_0x4cce98?_0x194ce9==null?void 0x0:_0x194ce9[_0x48ab8d(0x3ef)][_0x4cce98]:void 0x0,_0x8af5db=_0x194ce9&&_0x52c754?_0xcfce7a(_0x82a9d9[_0x48ab8d(0x35f)](),_0x194ce9,_0x52c754)[_0x48ab8d(0x131)](_0x2ef951=>({..._0x2ef951,'current':!0x1})):[],_0xe1ccc0=((_0xc49ddc=_0x1a540d[_0x48ab8d(0x110)][_0x48ab8d(0x200)])==null?void 0x0:_0xc49ddc[_0x48ab8d(0x424)])??'',_0x503b1e=_0x4edee8=>_0xfc65aa(Sr(_0x1a540d,_0x4edee8))[_0x48ab8d(0x299)](()=>void 0x0),_0x44e216=_0x8dddb7=>_0xfc65aa({..._0x1a540d,'description':_0x8dddb7})[_0x48ab8d(0x299)](()=>void 0x0);return _0x53776f('div',{'data-dashboard-formula-inspector':!0x0,'className':_0x48ab8d(0x3f0),'children':[_0x46ec10(_0x2a0f06,{'className':_0x48ab8d(0x2b3),'items':[{'value':_0x48ab8d(0x16c),'label':_0x2ff31b['t'](_0x48ab8d(0x32b))},{'value':_0x48ab8d(0x12d),'label':_0x2ff31b['t'](_0x48ab8d(0x396))}],'value':_0x19d26c,'onChange':_0x2f7f85}),_0x46ec10(_0x48ab8d(0x1e1),{'className':_0x48ab8d(0x293),'children':_0x19d26c===_0x48ab8d(0x16c)?_0x53776f(_0x48ab8d(0x1e1),{'className':_0x48ab8d(0x417),'children':[_0x46ec10(Sa,{'label':_0x2ff31b['t'](_0x48ab8d(0x3f7)),'children':_0x46ec10(_0x512832,{'value':_0x1a540d['description']??_0x1a540d[_0x48ab8d(0x2fd)]??'','onChange':_0x44e216,'onBlur':_0x1fd4e2=>_0x44e216(_0x1fd4e2['target'][_0x48ab8d(0x18a)])})}),_0x46ec10(Sa,{'label':_0x2ff31b['t'](_0x48ab8d(0x300)),'children':_0x46ec10(_0x512832,{'disabled':!0x0,'value':(_0x194ce9==null?void 0x0:_0x194ce9[_0x48ab8d(0x10b)])??_0x2ff31b['t'](_0x48ab8d(0x3bc))})}),_0x53776f(Sa,{'label':_0x2ff31b['t'](_0x48ab8d(0x386)),'children':[_0x46ec10(_0x512832,{'disabled':!0x0,'value':_0x3863e(_0xe1ccc0,_0x8af5db)}),_0x46ec10(_0x5bfdfa,{'className':_0x48ab8d(0x22e),'onClick':()=>_0x1ef565(!0x0),'children':_0x2ff31b['t'](_0x48ab8d(0x188))})]})]}):_0x53776f(_0x48ab8d(0x1e1),{'className':_0x48ab8d(0x417),'children':[_0x46ec10(_0x5cd6d5,{'emptyLabel':_0x2ff31b['t'](_0x48ab8d(0x282)),'label':_0x2ff31b['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x3b38cc?_0x4b6f2e[_0x48ab8d(0x273)][0x384]:_0x4b6f2e[_0x48ab8d(0x273)][0x0],'resetLabel':_0x2ff31b['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x186ab5['backgroundColor']??null,'onChange':_0x517a4d=>_0x503b1e({'backgroundColor':_0x517a4d??void 0x0})}),_0x53776f(Sa,{'label':_0x2ff31b['t'](_0x48ab8d(0x371)),'children':[_0x53776f(_0x48ab8d(0x1e1),{'className':_0x48ab8d(0x1ff),'children':[_0x53776f(_0x5bfdfa,{'className':_0x48ab8d(0x16a),'onClick':()=>{const _0x174223=_0x48ab8d;_0x104aee()[_0x174223(0x12a)](_0xb522b9=>{const _0x294ec5=_0x174223;if(_0xb522b9){var _0xd64532;return _0x503b1e({'backgroundImage':{..._0xb522b9,'fit':((_0xd64532=_0x186ab5[_0x294ec5(0x16b)])==null?void 0x0:_0xd64532[_0x294ec5(0x128)])??_0x294ec5(0x2cd)}});}})['catch'](()=>void 0x0);},'children':[_0x46ec10(_0x5a006e,{}),_0x186ab5[_0x48ab8d(0x16b)]?_0x2ff31b['t'](_0x48ab8d(0x369)):_0x2ff31b['t'](_0x48ab8d(0xdf))]}),_0x186ab5[_0x48ab8d(0x16b)]&&_0x46ec10(_0x5bfdfa,{'aria-label':_0x2ff31b['t'](_0x48ab8d(0x159)),'title':_0x2ff31b['t'](_0x48ab8d(0x159)),'onClick':()=>_0x503b1e({'backgroundImage':void 0x0}),'children':_0x46ec10(_0x1bdc33,{})})]}),_0x186ab5['backgroundImage']&&_0x46ec10(_0x2a0f06,{'className':_0x48ab8d(0x3d3),'items':[{'value':'cover','label':_0x2ff31b['t'](_0x48ab8d(0x1e4))},{'value':'contain','label':_0x2ff31b['t']('bases-dashboard-ui.dashboardInspector.contain')}],'value':_0x186ab5[_0x48ab8d(0x16b)]['fit'],'onChange':_0x50c75c=>_0x503b1e({'backgroundImage':_0x186ab5[_0x48ab8d(0x16b)]?{..._0x186ab5[_0x48ab8d(0x16b)],'fit':_0x50c75c}:void 0x0})})]}),_0x46ec10(_0x5cd6d5,{'emptyLabel':_0x2ff31b['t'](_0x48ab8d(0x227)),'label':_0x2ff31b['t'](_0x48ab8d(0x227)),'pickerFallbackValue':_0x3b38cc?_0x4b6f2e['gray'][0x32]:_0x4b6f2e[_0x48ab8d(0x273)][0x3e8],'resetLabel':_0x2ff31b['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x186ab5[_0x48ab8d(0x425)]??null,'onChange':_0x6139b2=>_0x503b1e({'textColor':_0x6139b2??void 0x0})}),_0x46ec10(Sa,{'label':_0x2ff31b['t'](_0x48ab8d(0x3dc)),'children':_0x46ec10(_0x2a0f06,{'items':[{'value':_0x48ab8d(0x34a),'label':_0x2ff31b['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':_0x48ab8d(0x20e),'label':_0x2ff31b['t'](_0x48ab8d(0x400))},{'value':_0x48ab8d(0x353),'label':_0x2ff31b['t'](_0x48ab8d(0x10f))}],'value':_0x186ab5[_0x48ab8d(0x368)],'onChange':_0x3ee050=>_0x503b1e({'alignment':_0x3ee050})})}),_0x53776f(Sa,{'label':_0x2ff31b['t']('bases-dashboard-ui.dashboardInspector.textSize'),'children':[_0x46ec10(_0x2a0f06,{'items':[{'value':'auto','label':_0x2ff31b['t'](_0x48ab8d(0x3be))},{'value':'custom','label':_0x2ff31b['t'](_0x48ab8d(0x408))}],'value':_0x186ab5[_0x48ab8d(0x272)],'onChange':_0x359720=>_0x503b1e({'fontSizeMode':_0x359720})}),_0x186ab5[_0x48ab8d(0x272)]===_0x48ab8d(0x215)&&_0x46ec10(_0x510d74,{'className':_0x48ab8d(0x3d3),'min':0xc,'max':0x78,'value':_0x186ab5[_0x48ab8d(0x2c7)],'onChange':_0x2f72dc=>_0x503b1e({'fontSize':_0x2f72dc??0x28,'fontSizeMode':_0x48ab8d(0x215)})})]}),_0x46ec10(Sa,{'label':_0x2ff31b['t'](_0x48ab8d(0xdb)),'children':_0x46ec10(_0x5ba88c,{'value':_0x186ab5['numberFormat'],'options':[{'value':_0x48ab8d(0x1ef),'label':_0x2ff31b['t'](_0x48ab8d(0x14a))},{'value':_0x48ab8d(0x152),'label':_0x2ff31b['t'](_0x48ab8d(0x217))},{'value':_0x48ab8d(0x1b8),'label':_0x2ff31b['t'](_0x48ab8d(0x2ec))},{'value':_0x48ab8d(0x2dc),'label':_0x2ff31b['t'](_0x48ab8d(0x1c9))},{'value':_0x48ab8d(0x2cf),'label':_0x2ff31b['t'](_0x48ab8d(0x287))},{'value':_0x48ab8d(0x191),'label':_0x2ff31b['t'](_0x48ab8d(0x2f2))}],'onChange':_0x30c7b3=>{let _0x18bff9=ba['find'](_0x3a2d4f=>_0x3a2d4f===_0x30c7b3);_0x18bff9&&_0x503b1e({'numberFormat':_0x18bff9});}})}),_0x186ab5[_0x48ab8d(0x26f)]===_0x48ab8d(0x2dc)&&_0x46ec10(Sa,{'label':_0x2ff31b['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x46ec10(_0x512832,{'value':_0x186ab5[_0x48ab8d(0x2dc)],'onChange':_0x26351a=>_0x503b1e({'currency':_0x26351a[_0x48ab8d(0x3a1)](0x0,0x3)['toUpperCase']()})})}),_0x186ab5[_0x48ab8d(0x26f)]!==_0x48ab8d(0x1ef)&&_0x46ec10(Sa,{'label':_0x2ff31b['t'](_0x48ab8d(0x42a)),'children':_0x46ec10(_0x510d74,{'min':0x0,'max':0x8,'value':_0x186ab5['decimalPlaces'],'onChange':_0x4ec33d=>_0x503b1e({'decimalPlaces':_0x4ec33d??0x0})})})]})}),_0x507fc5&&_0x46ec10(_0x3114d8,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x46ec10(_0x453721,{'tables':_0x8af5db,'formula':_0x3863e(_0xe1ccc0,_0x8af5db),'onCancel':()=>_0x1ef565(!0x1),'onSave':_0x2fd13a=>{const _0x47649e=_0x48ab8d;let _0x1c8bbf=_0x1a540d[_0x47649e(0x110)][_0x47649e(0x200)]??{'formula':''};return _0xfc65aa({..._0x1a540d,'shapeData':{..._0x1a540d[_0x47649e(0x110)],'formulaBinding':{..._0x1c8bbf,'formula':_0x307895(_0x2fd13a,_0x8af5db)}}})[_0x47649e(0x12a)](()=>_0x1ef565(!0x1))[_0x47649e(0x299)](()=>void 0x0);}})})]});}function Sa({children:_0x33d2f4,label:_0x2180c4}){const _0x450f76=_0x425045;return _0x53776f(_0x450f76(0x1e1),{'role':_0x450f76(0x108),'aria-label':_0x2180c4,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x46ec10('span',{'children':_0x2180c4}),_0x33d2f4]});}const Ca={[_0x1f147c['IS']]:'bases-dashboard-ui.operators.is',[_0x1f147c[_0x425045(0x192)]]:_0x425045(0x14b),[_0x1f147c['CONTAINS']]:_0x425045(0x139),[_0x1f147c[_0x425045(0x2d0)]]:_0x425045(0x3a3),[_0x1f147c['IS_EMPTY']]:'bases-dashboard-ui.operators.isEmpty',[_0x1f147c[_0x425045(0x1a5)]]:_0x425045(0x144),[_0x1f147c['GREATER_THAN']]:_0x425045(0x22c),[_0x1f147c[_0x425045(0x2e2)]]:_0x425045(0x41e),[_0x1f147c['LESS_THAN']]:_0x425045(0x248),[_0x1f147c[_0x425045(0x270)]]:_0x425045(0x175),[_0x1f147c[_0x425045(0x28f)]]:_0x425045(0x1ec),[_0x1f147c['AFTER']]:_0x425045(0x352)};function wa({disabled:_0x495e02,fields:_0x138c02,filter:_0x5145ca,onChange:_0x547af1}){const _0x5ab621=_0x425045;let _0x1d5b5c=_0x4acd92(_0x4a0c45),_0x45b9fe=(_0x5145ca==null?void 0x0:_0x5145ca[_0x5ab621(0x14f)])??[];return _0x45b9fe[_0x5ab621(0x297)]?_0x46ec10('div',{'className':_0x5ab621(0x2f7),'children':_0x45b9fe[_0x5ab621(0x131)]((_0x119271,_0x2ba9f9)=>{const _0x441f96=_0x5ab621;let _0x30e8bd=_0x138c02['find'](_0x23ae36=>_0x23ae36['id']===_0x119271[_0x441f96(0x2db)]);return _0x53776f('div',{'className':'univer-bg-gray-50/80\x20dark:!univer-bg-gray-800/70\x20univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-p-3\x20dark:!univer-border-gray-700','children':[_0x53776f(_0x441f96(0x1e1),{'className':'univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','children':[_0x46ec10(_0x441f96(0x223),{'className':_0x441f96(0x16d),'children':(_0x30e8bd==null?void 0x0:_0x30e8bd[_0x441f96(0x10b)])??_0x119271[_0x441f96(0x2db)]}),_0x46ec10(_0x441f96(0x223),{'className':_0x441f96(0x2c0),'children':_0x1d5b5c['t'](Ca[_0x119271['operator']])})]}),Ma(_0x119271[_0x441f96(0x11a)])&&_0x46ec10(Ea,{'disabled':_0x495e02,'field':_0x30e8bd,'value':_0x119271['operand'],'onChange':_0x1387dd=>_0x547af1(ka(_0x5145ca,_0x2ba9f9,{'operand':_0x1387dd}))})]},Fa(_0x45b9fe,_0x119271,_0x2ba9f9));})}):_0x53776f(_0x5ab621(0x1e1),{'className':'univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','children':[_0x46ec10(_0x3b4ec0,{'className':_0x5ab621(0xd8)}),_0x46ec10('span',{'className':_0x5ab621(0x232),'children':_0x1d5b5c['t'](_0x5ab621(0x104))})]});}function Ta({fields:_0x1c40c9,filter:_0xcecfa6,onChange:_0x1bcbe2,onClear:_0x3fef42}){const _0x4384a5=_0x425045;let _0x2d0429=_0x4acd92(_0x4a0c45),_0x30a70b=(_0xcecfa6==null?void 0x0:_0xcecfa6['conditions'])??[];return _0x53776f(_0x4384a5(0x1e1),{'data-dashboard-filter-inspector':!0x0,'className':_0x4384a5(0x426),'children':[_0x30a70b[_0x4384a5(0x131)]((_0x278984,_0x212f00)=>{const _0x1d8444=_0x4384a5;let _0x34db3e=_0x1c40c9['find'](_0x1f2c9d=>_0x1f2c9d['id']===_0x278984['fieldId'])??_0x1c40c9[0x0],_0x3eac84=Aa(_0x34db3e);return _0x53776f('section',{'className':_0x1d8444(0x2a2),'children':[_0x53776f(_0x1d8444(0x1e1),{'className':'univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','children':[_0x46ec10(_0x5ba88c,{'value':_0x278984[_0x1d8444(0x2db)],'options':_0x1c40c9[_0x1d8444(0x131)](_0x44dcfc=>({'value':_0x44dcfc['id'],'label':_0x44dcfc[_0x1d8444(0x10b)]})),'onChange':_0x4d38ea=>{let _0xe3b0cc=_0x1c40c9['find'](_0xe4d982=>_0xe4d982['id']===_0x4d38ea);if(!_0xe3b0cc)return;let _0xae48e3=Aa(_0xe3b0cc)[0x0];_0x1bcbe2(ka(_0xcecfa6,_0x212f00,Oa(_0xe3b0cc,_0xae48e3)));}}),_0x46ec10(_0x5bfdfa,{'type':'button','variant':_0x1d8444(0xdd),'aria-label':_0x2d0429['t'](_0x1d8444(0x314)),'className':'univer-size-8\x20univer-p-0\x20univer-text-red-500','onClick':()=>_0x1bcbe2(Da(_0xcecfa6,_0x30a70b['filter']((_0x161596,_0x3d15d5)=>_0x3d15d5!==_0x212f00))),'children':_0x46ec10(_0x7c8fef,{})})]}),_0x46ec10(_0x5ba88c,{'value':_0x278984['operator'],'options':_0x3eac84[_0x1d8444(0x131)](_0x40bf17=>({'value':_0x40bf17,'label':_0x2d0429['t'](Ca[_0x40bf17])})),'onChange':_0x524120=>{let _0x137ae9=_0x3eac84['find'](_0x1513d1=>_0x1513d1===_0x524120);_0x137ae9&&_0x1bcbe2(ka(_0xcecfa6,_0x212f00,{'operator':_0x137ae9,'operand':ja(_0x34db3e)}));}}),Ma(_0x278984[_0x1d8444(0x11a)])&&_0x46ec10(Ea,{'field':_0x34db3e,'value':_0x278984[_0x1d8444(0x1fa)],'onChange':_0x19cd66=>_0x1bcbe2(ka(_0xcecfa6,_0x212f00,{'operand':_0x19cd66}))})]},Fa(_0x30a70b,_0x278984,_0x212f00));}),_0x53776f(_0x5bfdfa,{'type':_0x4384a5(0x14d),'variant':_0x4384a5(0xdd),'className':'univer-w-full\x20univer-justify-start\x20univer-text-primary-600','disabled':!_0x1c40c9['length'],'onClick':()=>{let _0x21717b=_0x1c40c9[0x0];if(!_0x21717b)return;let _0x54c440=Aa(_0x21717b)[0x0];_0x1bcbe2(Da(_0xcecfa6,[..._0x30a70b,Oa(_0x21717b,_0x54c440)]));},'children':[_0x46ec10(_0x5a006e,{}),_0x2d0429['t'](_0x4384a5(0x32c))]}),_0x30a70b[_0x4384a5(0x297)]>0x0&&_0x46ec10(_0x5bfdfa,{'type':_0x4384a5(0x14d),'variant':_0x4384a5(0xdd),'className':'univer-w-full','onClick':_0x3fef42,'children':_0x2d0429['t']('bases-dashboard-ui.dashboardInspector.clear')})]});}function Ea({disabled:_0x212160,field:_0x4794c9,onChange:_0x5cf9d3,value:_0x38fd25}){const _0x3a6f5b=_0x425045;let _0x1b62a1=_0x4acd92(_0x4a0c45),_0xae25f7=_0x4794c9==null?void 0x0:_0x4794c9[_0x3a6f5b(0x3e8)];if(_0xae25f7===_0x2ed75f['Checkbox']){let _0x25414e=_0x38fd25===!0x0||_0x38fd25===_0x3a6f5b(0x2dd);return _0x53776f(_0x5bfdfa,{'type':'button','variant':_0x3a6f5b(0x1bf),'disabled':_0x212160,'className':_0x3a6f5b(0x1fc),'onClick':()=>_0x5cf9d3(!_0x25414e),'children':[_0x46ec10(_0x3884d7,{'checked':_0x25414e,'disabled':_0x212160,'onChange':()=>void 0x0}),_0x25414e?_0x1b62a1['t'](_0x3a6f5b(0x163)):_0x1b62a1['t']('bases-dashboard-ui.dashboardInspector.unchecked')]});}return Ia(_0xae25f7)?_0x212160?_0x46ec10(_0x5bfdfa,{'type':'button','variant':_0x3a6f5b(0x1bf),'className':'univer-w-full','disabled':!0x0,'children':_0x58a739(_0x38fd25==null||_0x38fd25===''?void 0x0:String(_0x38fd25))[_0x3a6f5b(0x319)](_0x3a6f5b(0x382))}):_0x46ec10(_0x5f0d85,{'className':'univer-w-full','value':_0x58a739(_0x38fd25==null||_0x38fd25===''?void 0x0:String(_0x38fd25))[_0x3a6f5b(0x31d)](),'onValueChange':_0xda8d3=>_0x5cf9d3(_0x58a739(_0xda8d3)[_0x3a6f5b(0x319)](_0x3a6f5b(0x382)))}):Ra(_0x4794c9)?_0x46ec10(_0x4fd25d,{'className':'univer-w-full','disabled':_0x212160,'value':Array[_0x3a6f5b(0x1fd)](_0x38fd25)?_0x38fd25[_0x3a6f5b(0x131)](String):[],'options':Na(_0x4794c9),'onChange':_0x5cf9d3}):_0xae25f7===_0x2ed75f[_0x3a6f5b(0x2cb)]||_0xae25f7===_0x2ed75f[_0x3a6f5b(0x18f)]||_0xae25f7===_0x2ed75f[_0x3a6f5b(0x13e)]?_0x46ec10(_0x5ba88c,{'className':_0x3a6f5b(0x111),'disabled':_0x212160,'value':String(_0x38fd25??''),'options':[{'value':'','label':_0x1b62a1['t'](_0x3a6f5b(0x323))},...Na(_0x4794c9)],'onChange':_0x5cf9d3}):La(_0xae25f7)?_0x46ec10(_0x510d74,{'className':_0x3a6f5b(0x111),'allowEmpty':!0x0,'disabled':_0x212160,'value':Number[_0x3a6f5b(0x393)](Number(_0x38fd25))?Number(_0x38fd25):null,'onChange':_0x28a8bb=>_0x5cf9d3(_0x28a8bb??'')}):_0x46ec10(_0x512832,{'disabled':_0x212160,'value':String(_0x38fd25??''),'placeholder':_0x1b62a1['t'](_0x3a6f5b(0x31f)),'onChange':_0x5cf9d3});}function Da(_0x2c2e72,_0x2f2695){const _0x47b261=_0x425045;return{'conjunction':(_0x2c2e72==null?void 0x0:_0x2c2e72[_0x47b261(0x404)])??_0x18fd74[_0x47b261(0x127)],'conditions':_0x2f2695};}function Oa(_0x47b6e3,_0x13cf95){return Ma(_0x13cf95)?{'fieldId':_0x47b6e3['id'],'operator':_0x13cf95,'operand':ja(_0x47b6e3)}:{'fieldId':_0x47b6e3['id'],'operator':_0x13cf95};}function ka(_0x3b10d7,_0x2839dd,_0x58c5d1){const _0x3f28c1=_0x425045;return Da(_0x3b10d7,((_0x3b10d7==null?void 0x0:_0x3b10d7['conditions'])??[])[_0x3f28c1(0x131)]((_0x25e65e,_0x4ecbed)=>_0x4ecbed===_0x2839dd?{..._0x25e65e,..._0x58c5d1}:_0x25e65e));}function Aa(_0x40fd0b){const _0x4c91d3=_0x425045;let _0x22b094=[_0x1f147c['IS_EMPTY'],_0x1f147c[_0x4c91d3(0x1a5)]];switch(_0x40fd0b==null?void 0x0:_0x40fd0b[_0x4c91d3(0x3e8)]){case _0x2ed75f[_0x4c91d3(0x26d)]:case _0x2ed75f[_0x4c91d3(0x210)]:case _0x2ed75f['Progress']:case _0x2ed75f[_0x4c91d3(0x318)]:return[_0x1f147c['IS'],_0x1f147c[_0x4c91d3(0x192)],_0x1f147c[_0x4c91d3(0xec)],_0x1f147c[_0x4c91d3(0x1e3)],..._0x22b094];case _0x2ed75f[_0x4c91d3(0x172)]:case _0x2ed75f[_0x4c91d3(0x364)]:case _0x2ed75f[_0x4c91d3(0x315)]:return[_0x1f147c['IS'],_0x1f147c[_0x4c91d3(0x192)],_0x1f147c[_0x4c91d3(0x28f)],_0x1f147c[_0x4c91d3(0x26a)],..._0x22b094];case _0x2ed75f[_0x4c91d3(0x3ba)]:return[_0x1f147c['IS'],_0x1f147c[_0x4c91d3(0x192)]];default:return[_0x1f147c['IS'],_0x1f147c[_0x4c91d3(0x192)],_0x1f147c[_0x4c91d3(0x401)],_0x1f147c[_0x4c91d3(0x2d0)],..._0x22b094];}}function ja(_0x30a87f){const _0x5863f0=_0x425045;return _0x30a87f?_0x30a87f[_0x5863f0(0x3e8)]===_0x2ed75f['Checkbox']?!0x1:Ia(_0x30a87f[_0x5863f0(0x3e8)])?_0x58a739()[_0x5863f0(0x319)]('YYYY-MM-DD'):Ra(_0x30a87f)?[]:'':'';}function Ma(_0x287c7c){const _0x1c9c05=_0x425045;return _0x287c7c!==_0x1f147c[_0x1c9c05(0x3b7)]&&_0x287c7c!==_0x1f147c[_0x1c9c05(0x1a5)];}function Na(_0xf2b3f2){const _0x3650c2=_0x425045;var _0x3de499;return(Array[_0x3650c2(0x1fd)](_0xf2b3f2==null||(_0x3de499=_0xf2b3f2[_0x3650c2(0x244)])==null?void 0x0:_0x3de499['options'])?_0xf2b3f2[_0x3650c2(0x244)][_0x3650c2(0x389)]:[])[_0x3650c2(0x131)]((_0x5c6139,_0x16dff8)=>{const _0x15a7d2=_0x3650c2;if(typeof _0x5c6139==_0x15a7d2(0x337))return{'label':_0x5c6139,'value':_0x5c6139};if(!Pa(_0x5c6139))return{'label':String(_0x16dff8+0x1),'value':String(_0x16dff8+0x1)};let _0x30aa7b=_0x5c6139,_0x155c8a=String(_0x30aa7b[_0x15a7d2(0x10b)]??_0x30aa7b['id']??_0x16dff8+0x1),_0x113ab0=String(_0x30aa7b['id']??_0x155c8a);return{'label':_0x155c8a,'value':/^opt-\d+$/[_0x15a7d2(0x367)](_0x113ab0)?_0x155c8a:_0x113ab0};});}function Pa(_0x4dec27){const _0xaa1b21=_0x425045;return typeof _0x4dec27==_0xaa1b21(0x1aa)&&!!_0x4dec27;}function Fa(_0x1fba5c,_0x28e61a,_0x4b0d8e){const _0x4470c7=_0x425045;let _0x46bd87=JSON[_0x4470c7(0x35e)](_0x28e61a);return _0x46bd87+'-'+_0x1fba5c[_0x4470c7(0x3a1)](0x0,_0x4b0d8e)[_0x4470c7(0x1d6)](_0x4514dd=>JSON['stringify'](_0x4514dd)===_0x46bd87)['length'];}function Ia(_0x5d20bd){const _0x56bfd7=_0x425045;return _0x5d20bd===_0x2ed75f[_0x56bfd7(0x172)]||_0x5d20bd===_0x2ed75f[_0x56bfd7(0x364)]||_0x5d20bd===_0x2ed75f[_0x56bfd7(0x315)];}function _0xe570(){const _0x2af8dc=['Image','darkMode$','disconnect','getValueIndex','rightY','aside','bases-dashboard-ui.chart.section.waterfall','bases-dashboard-ui.chart.section.treemap','some','bases-dashboard-ui.dashboardInspector.percent','base-pivot-table-configuration','bases-dashboard-ui.dashboardInspector.repeat','_configService','values','data:','bases-dashboard-ui.dashboardInspector.compact','axis','renderTransition','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','onDrop','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','section','univer-flex\x20univer-h-full\x20univer-w-[380px]\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','valueIndex','sum','pageView','title','bases-dashboard-ui.chart.section.radar','clientY','bases-dashboard-ui.dashboardInspector.dataSource','univer-cursor-grab','baseOn','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','RecordId','lineStrokeType','createElement','resolve','824227rTtSdJ','bases-dashboard-ui.pivot.filterField','function','bases-dashboard-ui.pivot.min','WaterfallSeries','legend','getPresentation','bases-dashboard-ui.dashboardInspector.originalSize','Sunburst','current','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','bases-dashboard-ui.chart.common.rightVerticalAxis','bases-dashboard-ui.dashboardInspector.delete','UpdatedAt','bases-dashboard-ui.dashboard.deleteWidget','bases-dashboard-ui.pivot.max','Rating','format','bases-dashboard-ui.pivot.fieldSettings','label','dataStream','toDate','bases-dashboard-ui.chart.waterfall.subtotal','bases-dashboard-ui.dashboardInspector.enterValue','lineAndArea','base-pivot-options','dashboardOrder','bases-dashboard-ui.dashboardInspector.selectOption','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','FormulaShape','displayMode','getCurrentTheme','segmented','bases-dashboard-ui.pivot.pivotConfiguration','bases-dashboard-ui.pivot.addToRow','bases-dashboard-ui.dashboardInspector.data','bases-dashboard-ui.dashboardInspector.newCondition','base-pivot-chart-configuration','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','base-pivot-chart-','repeat','error','colView','shapeType','scrollHeight','page:','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','string','univer-flex\x20univer-justify-end\x20univer-gap-2','area','bases-dashboard-ui.pivot.defaultName','dashboard-chart-setup','bases-dashboard-ui.pivot.clearFilter','change$','bases-dashboard-ui.pivot.bottom','releaseChartRuntime','bases-dashboard-ui.chart.common.heatmap','univer-shrink-0\x20univer-px-3','lastCol','univer-w-36','tables','paragraphs','saveAttachment','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','\x20/\x20','left','onMoveUp','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','delete','blank','measure','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','200470pPBVHl','bases-dashboard-ui.operators.after','right','558ENCxGX','bases-dashboard-ui.chart.section.relation','getOptions','univer-h-full\x20univer-w-full\x20univer-bg-transparent','getDataFieldByTableId','input','bases-dashboard-ui.pivot.fields','decorate','isBottomTotal','bases-dashboard-ui.pivot.numberFormat','stringify','getSnapshot','bases-dashboard-ui.pivot.showColumnGrandTotal','article','cumulativeLineStyle','bases-dashboard-ui.pivot.display','CreatedAt','doc','auto','test','alignment','bases-dashboard-ui.dashboardInspector.replaceImage','barStyle','bases-dashboard-ui.pivot.pageDirection','showRowGrandTotal','getOwnPropertyDescriptor','url(','bases-dashboard-ui.dashboardInspector.editData','getResult','bases-dashboard-ui.dashboardInspector.backgroundImage','isHeader','average','univer-border-gray-200\x20dark:!univer-border-gray-700','Legend','widgets','bases-dashboard-ui.pivot.blank','includes','Axes','bases-dashboard-ui.chart.common.verticalAxis','onRemove','baseChartDataAnimationDuration','setLayout','isTotal','getFieldCountByArea','rootContainerElement','addEventListener','YYYY-MM-DD','PieStyle','Filter','print','bases-dashboard-ui.dashboardInspector.formula','item','None','options','currentTheme$','Relation','startY','univer-text-right','presentationChanged$','rowType','Pivot','Bubble','getResource','isFinite','color','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','bases-dashboard-ui.dashboardInspector.style','getBoundingClientRect','tableOrder','ChartAndAxisTitles','requestFullscreen','border-box','bind','document','Histogram','bases-dashboard-ui.dashboard.add','activeRuntimeModel','slice','toPrimitive','bases-dashboard-ui.operators.notContains','setStyle','bases-dashboard-ui.dashboard.pivotChart','Radar','link','bases-dashboard-ui.chart.section.gauge','body','base-dashboard-pivot-chart-','bases-dashboard-ui.dashboardInspector.loading','Line','7450266dwyFkQ','bases-dashboard-ui.chart.common.legend','chartRowDirection','\x20/\x20span\x20','from','series','headerRowCount','dataSource','row:','#,##0','IS_EMPTY','resizeDirection','observe','Checkbox','stopPropagation','bases-dashboard-ui.dashboardInspector.sourceUnavailable','fullscreenchange','bases-dashboard-ui.dashboardInspector.autoFit','lastRow','bases-dashboard-ui.pivot.dataSource','univer-min-h-11\x20univer-px-3\x20univer-text-base','countNums','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','labelId','dashboard-','bases-dashboard-ui.pivot.pageWrap','permissionPointUpdate$','small','bases-dashboard-ui.pivot.average','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','radar','_element','getChartRuntime','defineProperty','documentElement','base64Cache','min','12kMLYQG','univer-mt-2','bases-dashboard-ui.dashboard.rename','PivotChart','3360243Zvtdrc','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','tabular','target','relation','model','bases-dashboard-ui.dashboardInspector.alignment','exitFullscreen','call','undos','Escape','univer-grid\x20univer-gap-3','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','univer-flex\x20univer-flex-col','getId','bases-dashboard-ui.chart.section.gridlinesAndTicks','updateFieldPosition','chart','type','getImage','rightYAxis','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','setConfig','setSortInfo','onMove','views','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','base-pivot-chart-style','index','preventDefault','bases-dashboard-ui.pivot.layout','univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','Pareto','bases-dashboard-ui.dashboardInspector.description','bases-dashboard-ui.dashboard.redo','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','packageName','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','valueFields','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','bases-dashboard-ui.mobile.moveDown','forEach','bases-dashboard-ui.dashboardInspector.center','CONTAINS','Value','focusUnit','conjunction','snapshot','constructor','bases-dashboard-ui.chart.common.customize','bases-dashboard-ui.dashboardInspector.custom','fullscreenElement','symbol','repeatColLabels','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-size-4','bases-dashboard-ui.pivot.repeatRowLabels','fillType','Chord','onFilter','filterFields','createRenderInput','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','SolidLine','univer-flex\x20univer-flex-col\x20univer-gap-4','univer-grid\x20univer-gap-4','allSeriesStyle','Trendline','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','size','renderRevision','register','bases-dashboard-ui.operators.greaterThanOrEqual','rgb','bases-dashboard-ui.chart.chartTypes.','setCurrentUnitForType','bases-dashboard-ui.pivot.showRowSubtotal','bases-dashboard-ui.pivot.filters','formula','textColor','univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','viewOrder','Waterfall','bases-dashboard-ui.dashboardInspector.decimalPlaces','changed$','refreshChartRuntime','waterfall.negative','redos','bases-dashboard-ui.pivot.selectAll','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','bases-dashboard-ui.dashboard.text','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','count','bases-dashboard-ui.pivot.stdDev','22355608EKVIPE','heatmap','univer-mx-auto\x20univer-size-6','onSettings','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','bases-dashboard-ui.dashboardInspector.numberFormat','replaceChildren','text','170900mjlbhW','bases-dashboard-ui.dashboardInspector.uploadImage','MultiSelect','rowSpan','file','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','univer-size-5\x20univer-text-primary-600','onCommit','bases-dashboard-ui.pivot.product','var','bases-dashboard-ui.chart.section.lineAndArea','bases-dashboard-ui.pivot.removeField','bases-dashboard-ui.chart.section.sunburst','Pie','GREATER_THAN','bases-dashboard-ui.pivot.showColumnSubtotal','bases-dashboard-ui.chart.section.candlestick','Base\x20dashboard\x20chart\x20','set','checkMounted','bases-dashboard-ui.dashboard.defaultName','end','source','unitId','univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','bases-dashboard-ui.chart.section.wordCloud','subscribe','fields','univer-flex\x20univer-items-center\x20univer-gap-2','replace','removeEventListener','toLocaleLowerCase','scrollWidth','univer-bg-transparent\x20dark:!univer-bg-transparent','bases-dashboard-ui.pivot.rows','startScrollTop','getUnit','primary','bases-dashboard-ui.dashboard.tableFilter','dashboard-widget-','pipe','errorType','group','setLabelFilterInfo','bases-dashboard-ui.dashboard.addWidget','name','contains','result','Row','bases-dashboard-ui.dashboardInspector.right','shapeData','univer-w-full','bases-dashboard-ui.pivot.cancel','documentStyle','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','every','rowCount','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','Gauge','(prefers-reduced-motion:\x20reduce)','operator','Data','bases-dashboard-ui.pivot.stdDevPopulation','find','decimalPlaces','getDashboard','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','pageWrap','get','resize','darkMode','univer-text-sm\x20univer-font-medium','_config','AND','fit','items','then','join','bases-dashboard-ui.dashboard.search','style','product','92OWlfog','config$','map','bases-dashboard-ui.chart.section.chord','bases-dashboard-ui.pivot.layoutOutline','disposeWithMe','bases-dashboard-ui.chart.common.chartAndAxisTitles','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','funnel','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','bases-dashboard-ui.operators.contains','bases-dashboard-ui.pivot.tableOnly','bases-dashboard-ui.pivot.searchFields','entries','bases-dashboard-ui.pivot.calculating','Person','getRect','bases-dashboard-ui.chart.common.series','minmax(0,\x203fr)\x20minmax(0,\x202fr)','Text','chart-and-table','bases-dashboard-ui.operators.isNotEmpty','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','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','context','acquireChartRuntime','trendline','bases-dashboard-ui.dashboardInspector.general','bases-dashboard-ui.operators.isNot','rowView','button','waterfallStyle','conditions','univer-grid\x20univer-gap-2\x20univer-p-3','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','number','pareto','Series','layout','univer-max-h-40\x20univer-text-base','setOptions','addImageSourceCache','bases-dashboard-ui.dashboardInspector.removeImage','univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize','flex-start','height','bases-dashboard-ui.chart.section.pie','bases-dashboard-ui.pivot.options','info','backgroundColor','bases-dashboard-ui.pivot.addToFilter','outline','bases-dashboard-ui.dashboardInspector.checked','bases-dashboard-ui.pivot.calculationFailed','bases-dashboard-ui.mobile.permissions','bases-dashboard-ui.chart.section.histogram','rows','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','key','univer-flex-1','backgroundImage','data','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','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','list','dashboard-chart-style','_chartThemeService','Date','dataset','destructive','bases-dashboard-ui.operators.lessThanOrEqual','createChartInstance','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','MultipleGrandTotal','dataAggregation','RoundRect','bases-dashboard-ui.pivot.acrossThenDown','univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','bases-dashboard-ui.pivot.addToValue','GeneralSeries','Column','showColGrandTotal','fill','base-pivot-chart','getAttachmentUrl','prototype','widgetOrder','bases-dashboard-ui.pivot.descending','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','bases-dashboard-ui.dashboardInspector.editFormula','createDomChartInstance','value','filterInfo','VerticalAxis','bases-dashboard-ui.dashboardInspector.textSize','Sankey','Group','[data-dashboard-widget]','compact','IS_NOT','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','repeatRowLabels','imageSourceType','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','hidden','parentElement','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','bases-dashboard-ui.pivot.downThenAcross','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','pageRows','univer-bg-gray-0\x20dark:!univer-bg-gray-900','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','files','bases-dashboard-ui.pivot.addToColumn','boxSizing','onStarting','transparent','bases-dashboard-ui.pivot.variancePopulation','IS_NOT_EMPTY','view','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','localeKey','field','object','initial','markReady','grandTotal','columnSpan','HorizontalAxis','max','headerMap','bases-dashboard-ui.pivot.columns','univer-box-content\x20univer-size-1.5\x20univer-rounded-full\x20!univer-border-2\x20!univer-border-solid\x20!univer-border-white\x20!univer-bg-primary-600','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','showColSubtotal','waterfall','univer-flex\x20univer-min-h-0\x20univer-flex-1','percent','BaseDashboard','isConnected','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','img','showRowSubtotal','select','default','toJSON','onMoveDown','corner:','bases-dashboard-ui.pivot.ascending','currentColor','pageOverThenDown','General','executeCommand','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','bases-dashboard-ui.dashboardInspector.currency','currentTarget','SolidFill','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','dom','Boxplot','indicatorLine','column:','keydown','univer-mb-2\x20univer-border-collapse\x20univer-text-sm','bases-dashboard-ui.dashboardInspector.contain','RightVerticalAxis','itemTypes','filter','table','shapeId','stroke','bases-dashboard-ui.dashboard.formulaShape','bases-dashboard-ui.dashboard.editWidget','1.0.4','bases-dashboard-ui.chart.common.chartStyle','bases-dashboard-ui.pivot.dropFieldsHere','tbody','bases-dashboard-ui.chart.','div','bases-dashboard-ui.chart.common.trendline','LESS_THAN','bases-dashboard-ui.dashboardInspector.cover','NumberFormat','GridlinesAndTicks','bases-dashboard-ui.pivot.countNumbers','renameField','bases-dashboard-ui.dashboard.delete','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','updateValuePosition','bases-dashboard-ui.operators.before','base-pivot-fields','bases-dashboard-ui.dashboard.section','general','univer-min-w-0\x20univer-flex-1','setSubtotalType','row','src','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','pluginName','descending','ownerDocument','pointerY','minmax(0,\x201fr)','operand','bases-dashboard-ui.pivot.displayName','univer-w-full\x20univer-justify-start','isArray','8nIHLmY','univer-flex\x20univer-gap-2','formulaBinding','mode','borderRadius','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','match','\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','pointerup','bases-dashboard-ui.pivot.name','no-repeat','valuePosition','radius','setFieldFormat','chartType','width','center','bases-dashboard-ui.pivot.description','Currency','Candlestick','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','move','onReady','custom','addFieldWithSourceId','bases-dashboard-ui.dashboardInspector.number','tableFieldId','waterfall.positive','defaultValue','bases-dashboard-ui.dashboardInspector.reset','image/*','bases-dashboard-ui.chart.section.paretoBar','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','click','tableId','bases-dashboard-ui.pivot.sum','flatMap','span','bases-dashboard-ui.pivot.top','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','dashboard-text-','bases-dashboard-ui.dashboardInspector.textColor','has','varp','defaultPrevented','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','bases-dashboard-ui.operators.greaterThan','Funnel','univer-mt-2\x20univer-w-full','onDragStart','onDragEnd','Treemap','univer-text-sm','system','wordCloud','subItem','allowMultiple','innerWidth','removeField','ensureMount','IndicatorLine','ceil','dataModel','Dom','displayName','sourceType','bases-dashboard-ui.dashboard.resizeWidget','data$','1879549vFBymH','bases-dashboard-ui.pivot.chartOnly','config','isSubtotal','unsubscribe','base-pivot-chart-setup','bases-dashboard-ui.operators.lessThan','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','onCancel','subUnitId','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','clientX','_injector','separator','bases-dashboard-ui.dashboardInspector.close','dispose','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','getTableFieldsByDataFieldId','bases-dashboard-ui.chart.common.switchRowColumn','univer-flex','dataView','univer-pointer-events-auto\x20univer-opacity-100','fieldOrder','clientWidth','baseChartDataAnimation','bases-dashboard-ui.chart.section.funnel','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','univer-text-gray-400','chartId','saveImage','getFieldPositionInfoById','bases-dashboard-ui.dashboard.image','markNotReady','Subtotal','UNIVER_BASE','indexOf','iterator','univer-w-24','TableFilter','bases-dashboard-ui.pivot.chartConfiguration','AFTER','orient','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','Number','bases-dashboard-ui.pivot.valuePosition','numberFormat','LESS_THAN_OR_EQUAL','colCount','fontSizeMode','gray','titles','bases-dashboard-ui.chart.common.editChart','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','Style','toUpperCase','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','2EIsrXt','pivot','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','thead','bases-dashboard-ui.dashboardInspector.left','rowSubtotalPosition','bases-dashboard-ui.pivot.chartAndTable','bases-dashboard-ui.chart.common.setup','bases-dashboard-ui.dashboardInspector.backgroundColor','undoRedoStatus$','bases-dashboard-ui.chart.common.horizontalAxis','GrandTotal','textStyle','bases-dashboard-ui.dashboardInspector.grouped','original','univer-flex\x20univer-min-h-full\x20univer-flex-col','bases-dashboard-ui.pivot.variance','bases-dashboard-ui.dashboard.undo','ChartStyle','canView','pivotViewId','BEFORE','trim','column','bases-dashboard-ui.dashboard.configure','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','appearance','scrollTop','bases-dashboard-ui.pivot.confirm','length','supports','catch','univer-grid\x20univer-gap-4\x20univer-p-4','bases-dashboard-ui.mobile.moveUp','alt','ManualFilter','onDragOver','BASE_DASHBOARD_UI_PLUGIN','false','header','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','rowFields','version','\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','UUID','accept','univer-truncate','formatMap','sortInfo','Scatter','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','bases-dashboard-ui.dashboardInspector.currencyCode','children','add','bases-dashboard-ui.pivot.rowSubtotalPosition','border','Progress','univer-m-3','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','bases-dashboard-ui.pivot.repeatColumnLabels','bottom','WordCloud','bases-dashboard-ui.pivot.count','top','getRenderColor','_localeService','paragraphId','univer-mb-3\x20univer-text-sm\x20univer-font-medium','dimension','univer-shrink-0\x20univer-rounded-full\x20univer-bg-gray-200\x20univer-px-2\x20univer-py-0.5\x20univer-text-xs\x20univer-text-gray-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-300','bases-dashboard-ui.chart.section.paretoLine','clientHeight','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','stdDevp','Positive','bases-dashboard-ui.dashboard.widgetActions','fontSize','ascending','pie','change','SingleSelect','matches','cover','bases-dashboard-ui.pivot.layoutCompact','grouped','NOT_CONTAINS','\x20has\x20no\x20render\x20config.','round','blur','dataFieldId','ParetoBarSeries','closest','bases-dashboard-ui.pivot.values','push','dashboards','syncLayout','fieldId','currency','true','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','Heatmap','columnFields','ParetoLineSeries','GREATER_THAN_OR_EQUAL'];_0xe570=function(){return _0x2af8dc;};return _0xe570();}function La(_0x116c01){const _0x1c32b5=_0x425045;return _0x116c01===_0x2ed75f[_0x1c32b5(0x26d)]||_0x116c01===_0x2ed75f[_0x1c32b5(0x210)]||_0x116c01===_0x2ed75f[_0x1c32b5(0x2b2)]||_0x116c01===_0x2ed75f[_0x1c32b5(0x318)];}function Ra(_0x391171){const _0x2424f3=_0x425045;var _0x49f313;return(_0x391171==null?void 0x0:_0x391171[_0x2424f3(0x3e8)])===_0x2ed75f[_0x2424f3(0xe0)]||(_0x391171==null?void 0x0:_0x391171['type'])===_0x2ed75f[_0x2424f3(0x18f)]||(_0x391171==null?void 0x0:_0x391171[_0x2424f3(0x3e8)])===_0x2ed75f['Person']&&((_0x49f313=_0x391171['config'])==null?void 0x0:_0x49f313[_0x2424f3(0x236)])===!0x0;}function za({base:_0x4a6add,chartRuntime:_0x2138e6,onChange:_0x1396a7,onClose:_0x466cc4,onSelectBackgroundImage:_0x571bd6,onSelectImage:_0x270c5e,unitId:_0x691c08,widget:_0x4183e0}){const _0x1f9aa3=_0x425045;let _0x16ed7e=_0x4acd92(_0x5e43a5),_0xc7c554=_0x4acd92(_0x4a0c45),_0x59c088=_0x4a6add['getSnapshot'](),_0x5a18ee=_0x1f9aa3(0x220)in _0x4183e0?_0x59c088[_0x1f9aa3(0x344)][_0x4183e0[_0x1f9aa3(0x220)]]:void 0x0,_0x27990f=_0x4183e0['type']===_0x1cae1f[_0x1f9aa3(0x3d5)]?_0x5a18ee==null?void 0x0:_0x5a18ee['views'][_0x4183e0[_0x1f9aa3(0x28e)]]:void 0x0,_0x581d68=_0xc7c554['t'](Ka(_0x4183e0));return _0x53776f(_0x1f9aa3(0x2e8),{'data-dashboard-inspector':!0x0,'className':_0x1f9aa3(0x2f9),'children':[_0x53776f('header',{'className':_0x1f9aa3(0x24c),'children':[_0x46ec10('h3',{'className':_0x1f9aa3(0x3ca),'children':_0x581d68}),_0x46ec10(_0x5bfdfa,{'type':_0x1f9aa3(0x14d),'size':_0x1f9aa3(0x3c8),'variant':'text','aria-label':_0xc7c554['t'](_0x1f9aa3(0x250)),'onClick':_0x466cc4,'children':_0x46ec10(_0x7c8fef,{})})]}),_0x4183e0[_0x1f9aa3(0x3e8)]===_0x1cae1f['PivotChart']&&(Ga(_0x27990f)&&_0x2138e6?_0x46ec10(va,{'runtime':_0x2138e6,'sourceChart':_0x27990f[_0x1f9aa3(0x244)]['chart'],'sourceName':((_0x5a18ee==null?void 0x0:_0x5a18ee['name'])??'')+_0x1f9aa3(0x349)+_0x27990f[_0x1f9aa3(0x10b)],'widget':_0x4183e0,'onChange':_0x1396a7,'onEditData':()=>{const _0x1d8f82=_0x1f9aa3;_0x16ed7e['executeCommand'](_0x3d0012['id'],{'unitId':_0x691c08,'tableId':_0x4183e0[_0x1d8f82(0x220)],'viewId':_0x4183e0[_0x1d8f82(0x28e)]})[_0x1d8f82(0x299)](()=>void 0x0);}}):_0x46ec10(Ua,{'message':Ga(_0x27990f)?_0xc7c554['t'](_0x1f9aa3(0x3ab)):_0xc7c554['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})),_0x4183e0[_0x1f9aa3(0x3e8)]===_0x1cae1f[_0x1f9aa3(0x325)]&&_0x46ec10(xa,{'base':_0x4a6add,'widget':_0x4183e0,'onChange':_0x1396a7,'onSelectBackgroundImage':_0x571bd6}),_0x4183e0[_0x1f9aa3(0x3e8)]===_0x1cae1f[_0x1f9aa3(0x268)]&&_0x46ec10(Va,{'base':_0x4a6add,'onChange':_0x1396a7,'widget':_0x4183e0}),_0x4183e0[_0x1f9aa3(0x3e8)]===_0x1cae1f[_0x1f9aa3(0x142)]&&_0x46ec10(Ha,{'onChange':_0x1396a7,'widget':_0x4183e0}),_0x4183e0[_0x1f9aa3(0x3e8)]===_0x1cae1f[_0x1f9aa3(0x2e3)]&&_0x46ec10(Ba,{'onChange':_0x1396a7,'onSelectImage':_0x270c5e,'widget':_0x4183e0})]});}function Ba({onChange:_0x22e2a5,onSelectImage:_0x48ce99,widget:_0x1a2ca5}){const _0x4fefff=_0x425045;let _0x10d70a=_0x4acd92(_0x4a0c45);return _0x53776f(_0x4fefff(0x1e1),{'className':_0x4fefff(0x29a),'children':[_0x53776f(_0x5bfdfa,{'className':_0x4fefff(0x111),'onClick':()=>_0x48ce99()[_0x4fefff(0x12a)](_0xc63049=>_0xc63049&&_0x22e2a5({..._0x1a2ca5,'source':_0xc63049[_0x4fefff(0xf4)],'sourceType':_0xc63049[_0x4fefff(0x23f)],'alt':_0xc63049[_0x4fefff(0x10b)]}))[_0x4fefff(0x299)](()=>void 0x0),'children':[_0x46ec10(_0x5a006e,{}),_0x10d70a['t']('bases-dashboard-ui.dashboardInspector.replaceImage')]}),_0x53776f(_0x4fefff(0x31b),{'className':_0x4fefff(0x1f4),'children':[_0x46ec10(_0x4fefff(0x223),{'children':_0x10d70a['t'](_0x4fefff(0x371))}),_0x46ec10(_0x2a0f06,{'items':[{'value':_0x4fefff(0x2cd),'label':_0x10d70a['t'](_0x4fefff(0x1e4))},{'value':_0x4fefff(0x330),'label':_0x10d70a['t'](_0x4fefff(0x2ee))},{'value':_0x4fefff(0x288),'label':_0x10d70a['t'](_0x4fefff(0x30f))}],'value':_0x1a2ca5[_0x4fefff(0x326)]??_0x4fefff(0x2cd),'onChange':_0x42eb39=>_0x22e2a5({..._0x1a2ca5,'displayMode':_0x42eb39})[_0x4fefff(0x299)](()=>void 0x0)})]})]});}function Va({base:_0x111b6d,onChange:_0x36babe,widget:_0x8342a7}){const _0x56b7ef=_0x425045;let _0x3196e2=_0x111b6d['getSnapshot']()[_0x56b7ef(0x344)][_0x8342a7[_0x56b7ef(0x220)]],_0x1103c=_0x3196e2==null?void 0x0:_0x3196e2['viewOrder'][_0x56b7ef(0x11d)](_0x3788e9=>_0x3196e2[_0x56b7ef(0x3ef)][_0x3788e9]),_0x328b5e=_0x1103c?_0x3196e2==null?void 0x0:_0x3196e2[_0x56b7ef(0x3ef)][_0x1103c]:void 0x0,_0xa88855=_0x3196e2&&_0x328b5e?_0xb59ce2(_0x3196e2,_0x328b5e):[];return _0x46ec10(Ta,{'fields':_0xa88855,'filter':_0x8342a7[_0x56b7ef(0x1d6)],'onChange':_0x1f50ff=>_0x36babe({..._0x8342a7,'filter':_0x1f50ff})[_0x56b7ef(0x299)](()=>void 0x0),'onClear':()=>_0x36babe({..._0x8342a7,'filter':null})[_0x56b7ef(0x299)](()=>void 0x0)});}function Ha({onChange:_0x3e1aa1,widget:_0x34f6f6}){const _0xcfe0e=_0x425045;let _0xb72952=_0x4acd92(_0x4a0c45),_0x1d07b5=_0x4acd92(_0x3f1b1a),_0x5efb5c=_0x1b22fe(()=>_0x1d07b5[_0xcfe0e(0x38a)],_0x1d07b5[_0xcfe0e(0x327)](),!0x1,[_0x1d07b5]),_0x5a7064=Br(_0x34f6f6),_0x39dfd4=_0x4227a3=>_0x3e1aa1({..._0x34f6f6,'appearance':{..._0x5a7064,..._0x4227a3}})[_0xcfe0e(0x299)](()=>void 0x0);return _0x53776f(_0xcfe0e(0x1e1),{'className':_0xcfe0e(0x225),'children':[_0x46ec10(_0x8edc67,{'defaultValue':Vr(_0x34f6f6[_0xcfe0e(0x39d)]),'rows':0x8,'onBlur':_0x262e4d=>_0x3e1aa1({..._0x34f6f6,'document':Hr(_0x34f6f6[_0xcfe0e(0x39d)],_0x262e4d[_0xcfe0e(0x3d9)]['value'])})[_0xcfe0e(0x299)](()=>void 0x0)}),_0x46ec10(_0x5cd6d5,{'emptyLabel':_0xb72952['t'](_0xcfe0e(0x282)),'label':_0xb72952['t'](_0xcfe0e(0x282)),'pickerFallbackValue':_0x5efb5c[_0xcfe0e(0x273)][0x0],'resetLabel':_0xb72952['t'](_0xcfe0e(0x21b)),'value':_0x5a7064['backgroundColor']??null,'onChange':_0x5e82c1=>_0x39dfd4({'backgroundColor':_0x5e82c1??void 0x0})}),_0x46ec10(_0x5cd6d5,{'emptyLabel':_0xb72952['t'](_0xcfe0e(0x227)),'label':_0xb72952['t'](_0xcfe0e(0x227)),'pickerFallbackValue':_0x5efb5c[_0xcfe0e(0x273)][0x3e8],'resetLabel':_0xb72952['t'](_0xcfe0e(0x21b)),'value':_0x5a7064[_0xcfe0e(0x425)]??null,'onChange':_0x5203ef=>_0x39dfd4({'textColor':_0x5203ef??void 0x0})}),_0x46ec10(Wa,{'label':_0xb72952['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x46ec10(_0x2a0f06,{'items':[{'value':_0xcfe0e(0x34a),'label':_0xb72952['t'](_0xcfe0e(0x27e))},{'value':_0xcfe0e(0x20e),'label':_0xb72952['t'](_0xcfe0e(0x400))},{'value':'right','label':_0xb72952['t'](_0xcfe0e(0x10f))}],'value':_0x5a7064[_0xcfe0e(0x368)],'onChange':_0x874038=>_0x39dfd4({'alignment':_0x874038})})}),_0x53776f(Wa,{'label':_0xb72952['t'](_0xcfe0e(0x18d)),'children':[_0x46ec10(_0x2a0f06,{'items':[{'value':'auto','label':_0xb72952['t'](_0xcfe0e(0x3be))},{'value':_0xcfe0e(0x215),'label':_0xb72952['t'](_0xcfe0e(0x408))}],'value':_0x5a7064[_0xcfe0e(0x272)],'onChange':_0x3079dc=>_0x39dfd4({'fontSizeMode':_0x3079dc})}),_0x5a7064[_0xcfe0e(0x272)]==='custom'&&_0x46ec10(_0x510d74,{'className':_0xcfe0e(0x3d3),'min':0xa,'max':0x78,'value':_0x5a7064[_0xcfe0e(0x2c7)],'onChange':_0x7d35c6=>_0x39dfd4({'fontSize':_0x7d35c6??0x12,'fontSizeMode':_0xcfe0e(0x215)})})]})]});}function Ua({message:_0x26129c}){const _0xcad8ad=_0x425045;return _0x46ec10('div',{'className':_0xcad8ad(0x120),'children':_0x26129c});}function Wa({children:_0x1e36f2,label:_0x30cf9e}){const _0x442d01=_0x425045;return _0x53776f(_0x442d01(0x1e1),{'role':'group','aria-':!0x0,'className':_0x442d01(0x1f4),'children':[_0x46ec10(_0x442d01(0x223),{'children':_0x30cf9e}),_0x1e36f2]});}function Ga(_0x3b3617){const _0x425870=_0x425045;return(_0x3b3617==null?void 0x0:_0x3b3617['type'])===_0x5e9757[_0x425870(0x390)]&&typeof _0x3b3617[_0x425870(0x244)]=='object'&&_0x3b3617[_0x425870(0x244)]!==null&&_0x425870(0x27b)in _0x3b3617[_0x425870(0x244)]&&'chart'in _0x3b3617['config'];}function Ka(_0x16c80b){const _0x5f5c29=_0x425045;switch(_0x16c80b[_0x5f5c29(0x3e8)]){case _0x1cae1f[_0x5f5c29(0x3d5)]:return'bases-dashboard-ui.dashboard.pivotChart';case _0x1cae1f[_0x5f5c29(0x268)]:return _0x5f5c29(0x104);case _0x1cae1f[_0x5f5c29(0x142)]:return _0x5f5c29(0x431);case _0x1cae1f[_0x5f5c29(0x2e3)]:return _0x5f5c29(0x261);case _0x1cae1f['FormulaShape']:return _0x5f5c29(0x1da);}}function qa({onDelete:_0x4814ef,onEdit:_0x5c5d7d}){const _0x345e54=_0x425045;let _0x1ce706=_0x4acd92(_0x4a0c45),_0x25c7b2=_0x1ce706['t']('bases-dashboard-ui.dashboard.editWidget'),_0x3fe35c=_0x1ce706['t'](_0x345e54(0x316)),_0x20ee6e=_0x1ce706['t'](_0x345e54(0x2c6));return _0x46ec10(_0x14ca1d,{'items':[{'type':_0x345e54(0x387),'children':_0x53776f('span',{'className':_0x345e54(0xfa),'children':[_0x46ec10(_0x3e9831,{'className':_0x345e54(0x40d),'aria-hidden':_0x345e54(0x2dd)}),_0x46ec10(_0x345e54(0x223),{'children':_0x25c7b2})]}),'onSelect':_0x5c5d7d},{'type':'separator'},{'type':_0x345e54(0x387),'variant':_0x345e54(0x174),'children':_0x53776f(_0x345e54(0x223),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x46ec10(_0x1bdc33,{'className':_0x345e54(0x40d),'aria-hidden':'true'}),_0x46ec10(_0x345e54(0x223),{'children':_0x3fe35c})]}),'onSelect':_0x4814ef}],'children':_0x46ec10(_0x5bfdfa,{'type':'button','size':_0x345e54(0x3c8),'variant':'text','title':_0x20ee6e,'aria-label':_0x20ee6e,'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':_0x46ec10(_0x4271ce,{'className':'univer-size-4','aria-hidden':_0x345e54(0x2dd)})})});}function Ja({dashboardId:_0x4ca6b0,presentation:_0x21c32a=!0x1,unitId:_0x515b7a}){const _0x599f39=_0x425045;let _0x3fb4fb=_0x4acd92(_0x5e43a5),_0x33f90f=_0x4acd92(_0x227826),_0x54d8e8=_0x4acd92(_0x4ff898),_0x53d4ef=_0x4acd92(_0x4ce5e0),_0x86bc3=_0x4acd92(_0x4a0c45),_0x328674=_0x4acd92(_0x4001b9),_0x5d4cf1=_0x4acd92(_0x473ea9),_0x45cf73=_0x26f122(null),[_0x28e0a7,_0x2aa66c]=_0xf9778b(!0x1),[_0x563886,_0x503020]=_0xf9778b(),[_0x37fbf1,_0x2ffa15]=_0xf9778b(!0x1),[_0x2b75a1,_0x2ff5cd]=_0xf9778b(()=>new Map()),_0x498a08=_0x23f720((_0x2179a0,_0x250502)=>{_0x2ff5cd(_0x549147=>{const _0x162383=_0x2f30;let _0x1782d3=new Map(_0x549147);return _0x250502?_0x1782d3[_0x162383(0xf0)](_0x2179a0,_0x250502):_0x1782d3[_0x162383(0x34d)](_0x2179a0),_0x1782d3;});},[]),_0x8a8fd=_0x1b22fe(()=>_0x328674[_0x599f39(0x33d)][_0x599f39(0x106)](_0x55d4cd(()=>_0x328674[_0x599f39(0x11f)](_0x515b7a,_0x4ca6b0))),_0x328674['getDashboard'](_0x515b7a,_0x4ca6b0),!0x1,[_0x4ca6b0,_0x328674,_0x515b7a]),_0xc953db=_0x53d4ef['getUnit'](_0x515b7a,_0x4b82c2[_0x599f39(0x264)]),_0x51b048=_0x1b22fe(()=>_0x5d4cf1[_0x599f39(0x283)],{'undos':0x0,'redos':0x0},!0x1,[_0x5d4cf1]),_0x471f28=gr(_0x515b7a,_0x4ca6b0);if(_0x1e9cac(()=>{const _0x1dc4af=_0x599f39;_0x53d4ef[_0x1dc4af(0x421)](_0x515b7a),_0x53d4ef[_0x1dc4af(0x403)](_0x515b7a);},[_0x53d4ef,_0x515b7a]),_0x1e9cac(()=>{const _0x414caf=_0x599f39;let _0x442416=_0x45cf73['current'],_0x54a1bb=_0x442416==null?void 0x0:_0x442416[_0x414caf(0x1f7)];if(!_0x442416||!_0x54a1bb)return;let _0x2a5d6d=()=>_0x2ffa15(_0x54a1bb['fullscreenElement']===_0x54a1bb[_0x414caf(0x3cf)]),_0x2e8191=_0x3c48b2=>{const _0xab0ae5=_0x414caf;_0x3c48b2['key']===_0xab0ae5(0x3e0)&&!_0x3c48b2[_0xab0ae5(0x22a)]&&_0x54a1bb['fullscreenElement']===_0x54a1bb['documentElement']&&_0x54a1bb[_0xab0ae5(0x3dd)]()['catch'](_0x2a5d6d);};return _0x54a1bb[_0x414caf(0x381)](_0x414caf(0x3bd),_0x2a5d6d),_0x54a1bb['addEventListener'](_0x414caf(0x1d1),_0x2e8191),()=>{const _0x32a205=_0x414caf;_0x54a1bb[_0x32a205(0xfc)]('fullscreenchange',_0x2a5d6d),_0x54a1bb[_0x32a205(0xfc)](_0x32a205(0x1d1),_0x2e8191);};},[]),!_0x8a8fd||!_0xc953db)return null;let _0x336620=_0x158c14=>_0x3fb4fb['executeCommand'](_0x5bb522['id'],{'unitId':_0x515b7a,'dashboardId':_0x4ca6b0,'widget':_0x158c14})['catch'](()=>void 0x0),_0x485aa4=(_0x37b5ac,_0x409602,_0xd0ed1f)=>{const _0x4e8c80=_0x599f39;let _0xc6f4b2=Math[_0x4e8c80(0x1b0)](0x0,..._0x8a8fd[_0x4e8c80(0x185)][_0x4e8c80(0x222)](_0x26f363=>{const _0x40dd45=_0x4e8c80;var _0x4afdb4;let _0x3bb915=(_0x4afdb4=_0x8a8fd[_0x40dd45(0x376)][_0x26f363])==null?void 0x0:_0x4afdb4['layout'];return _0x3bb915?[_0x3bb915[_0x40dd45(0x1f2)]+_0x3bb915[_0x40dd45(0xe1)]]:[];})),_0x18e184=_0x4e8c80(0x105)+_0x184bc2(0x8),_0x2e213d={'column':0x0,'row':_0xc6f4b2,'columnSpan':_0x409602,'rowSpan':_0xd0ed1f};switch(_0x37b5ac[_0x4e8c80(0x3e8)]){case _0x1cae1f[_0x4e8c80(0x3d5)]:return _0x336620({..._0x37b5ac,'id':_0x18e184,'layout':_0x2e213d});case _0x1cae1f['TableFilter']:return _0x336620({..._0x37b5ac,'id':_0x18e184,'layout':_0x2e213d});case _0x1cae1f['Text']:return _0x336620({..._0x37b5ac,'id':_0x18e184,'layout':_0x2e213d});case _0x1cae1f[_0x4e8c80(0x2e3)]:return _0x336620({..._0x37b5ac,'id':_0x18e184,'layout':_0x2e213d});case _0x1cae1f[_0x4e8c80(0x325)]:return _0x336620({..._0x37b5ac,'id':_0x18e184,'layout':_0x2e213d});}},_0x1b6965=_0xc953db[_0x599f39(0x35f)](),_0x264cbb=_0x1b6965['tableOrder'][_0x599f39(0x222)](_0xb7154=>{const _0x44ef00=_0x599f39;let _0x16fdfc=_0x1b6965[_0x44ef00(0x344)][_0xb7154];if(!_0x16fdfc)return[];let _0x5653f0=_0x16fdfc[_0x44ef00(0x428)][_0x44ef00(0x222)](_0x292e5f=>{const _0x18ac32=_0x44ef00;let _0x4adafa=_0x16fdfc[_0x18ac32(0x3ef)][_0x292e5f];return no(_0x4adafa)?[{'type':_0x18ac32(0x387),'children':_0x4adafa[_0x18ac32(0x10b)],'onSelect':()=>_0x485aa4({'type':_0x1cae1f[_0x18ac32(0x3d5)],'tableId':_0xb7154,'pivotViewId':_0x292e5f,'chart':{..._0x4adafa['config'][_0x18ac32(0x3e7)]}},0x6,0xa)}]:[];});return[{'type':_0x44ef00(0x235),'children':_0x16fdfc['name'],'options':[..._0x5653f0,..._0x5653f0[_0x44ef00(0x297)]?[{'type':_0x44ef00(0x24f)}]:[],{'type':_0x44ef00(0x387),'children':_0x86bc3['t'](_0x44ef00(0x104)),'onSelect':()=>_0x485aa4({'type':_0x1cae1f['TableFilter'],'tableId':_0xb7154,'filter':null},0x6,0x8)}]}];}),_0x272ebe=[..._0x264cbb,..._0x264cbb[_0x599f39(0x297)]?[{'type':_0x599f39(0x24f)}]:[],{'type':_0x599f39(0x387),'children':_0x86bc3['t']('bases-dashboard-ui.dashboard.text'),'onSelect':()=>_0x485aa4({'type':_0x1cae1f[_0x599f39(0x142)],'document':Qa()},0x4,0x6)},{'type':'item','children':_0x86bc3['t'](_0x599f39(0x261)),'onSelect':()=>$a(_0x33f90f)[_0x599f39(0x12a)](_0x23b73e=>_0x23b73e&&_0x485aa4({'type':_0x1cae1f['Image'],'source':_0x23b73e[_0x599f39(0xf4)],'sourceType':_0x23b73e[_0x599f39(0x23f)],'alt':_0x23b73e[_0x599f39(0x10b)],'displayMode':_0x599f39(0x2cd)},0x4,0x6))},{'type':_0x599f39(0x387),'children':_0x86bc3['t']('bases-dashboard-ui.dashboard.formulaShape'),'onSelect':()=>{const _0x1312fe=_0x599f39;let _0x2fae36=_0x1b6965[_0x1312fe(0x398)][_0x1312fe(0x11d)](_0x1e480a=>_0x1b6965[_0x1312fe(0x344)][_0x1e480a]);_0x2fae36&&_0x485aa4({'type':_0x1cae1f['FormulaShape'],'tableId':_0x2fae36,'shapeType':_0x11bc35[_0x1312fe(0x17a)],'shapeData':_0x156510(),'description':_0x86bc3['t'](_0x1312fe(0x1da))},0x4,0x6);}}],_0x4789d0=_0x563886?_0x8a8fd['widgets'][_0x563886]:void 0x0,_0x17fbb9=async()=>{const _0x5ebdb4=_0x599f39;let _0x3b4f6f=_0x45cf73['current'];if(!_0x3b4f6f)return;let _0x5deaf7=_0x3b4f6f[_0x5ebdb4(0x1f7)];if(_0x5deaf7[_0x5ebdb4(0x409)]===_0x5deaf7[_0x5ebdb4(0x3cf)]){await _0x5deaf7[_0x5ebdb4(0x3dd)]();return;}await _0x5deaf7['documentElement'][_0x5ebdb4(0x39a)]();},_0x4f4d4c=_0x21c32a||_0x37fbf1,_0x2f14c3=_0x471f28&&!_0x4f4d4c;return _0x53776f('div',{'ref':_0x45cf73,'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'+(_0x37fbf1?_0x599f39(0x2f5):'univer-relative\x20univer-z-10')+_0x599f39(0x40c),'children':[!_0x4f4d4c&&_0x53776f(_0x599f39(0x2a1),{'className':_0x599f39(0x3e2),'children':[_0x46ec10(_0x3c79b2,{'className':_0x599f39(0xe4)}),_0x46ec10('h2',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0x8a8fd[_0x599f39(0x10b)]}),_0x46ec10(_0x43f71c,{'target':{'unitId':_0x515b7a,'objectId':_0x2c66f9(_0x4ca6b0),'objectType':_0x13e96b[_0x599f39(0x1b9)]},'name':_0x8a8fd[_0x599f39(0x10b)],'commandId':_0x201c8f['id'],'exists':()=>!!_0x328674[_0x599f39(0x11f)](_0x515b7a,_0x4ca6b0)},_0x515b7a+'/'+_0x4ca6b0),_0x46ec10(_0x21edff,{'unitId':_0x515b7a}),_0x46ec10(_0x5bfdfa,{'type':_0x599f39(0x14d),'size':_0x599f39(0x3c8),'variant':_0x599f39(0xdd),'aria-label':_0x86bc3['t'](_0x599f39(0x28b)),'disabled':!_0x471f28||_0x51b048[_0x599f39(0x3df)]===0x0,'onClick':()=>_0x3fb4fb[_0x599f39(0x1c7)](_0x43f509['id'])[_0x599f39(0x299)](()=>void 0x0),'children':_0x46ec10(_0x55c1c8,{})}),_0x46ec10(_0x5bfdfa,{'type':'button','size':_0x599f39(0x3c8),'variant':'text','aria-label':_0x86bc3['t'](_0x599f39(0x3f8)),'disabled':!_0x471f28||_0x51b048[_0x599f39(0x42e)]===0x0,'onClick':()=>_0x3fb4fb[_0x599f39(0x1c7)](_0x408d54['id'])[_0x599f39(0x299)](()=>void 0x0),'children':_0x46ec10(_0x3667aa,{})}),_0x46ec10(_0x5bfdfa,{'type':_0x599f39(0x14d),'size':_0x599f39(0x3c8),'variant':_0x599f39(0xdd),'aria-label':_0x86bc3['t']('bases-dashboard-ui.dashboard.fullScreen'),'onClick':()=>_0x17fbb9()[_0x599f39(0x299)](()=>void 0x0),'children':_0x46ec10(_0x2d161a,{})}),_0x46ec10(_0x14ca1d,{'items':_0x272ebe,'children':_0x53776f(_0x5bfdfa,{'variant':_0x599f39(0x103),'disabled':!_0x471f28,'children':[_0x46ec10(_0x5a006e,{}),_0x86bc3['t'](_0x599f39(0x10a))]})})]}),_0x53776f(_0x599f39(0x1e1),{'className':_0x599f39(0x1b7),'children':[_0x46ec10(_0x599f39(0x1e1),{'className':_0x599f39(0x1f0),'children':_0x46ec10(la,{'dashboard':_0x8a8fd,'dragLabel':_0x86bc3['t']('bases-dashboard-ui.dashboardInspector.dragWidget'),'editable':_0x2f14c3,'resizeLabel':_0x86bc3['t'](_0x599f39(0x240)),'widgetLabel':_0x54d5d7=>_0x86bc3['t'](to(_0x54d5d7['type'])),'selectedWidgetId':_0x2f14c3?_0x563886:void 0x0,'onSelectWidget':_0x2f14c3?_0x1cea43=>{_0x503020(_0x1cea43),_0x1cea43||_0x2aa66c(!0x1);}:void 0x0,'onLayoutsCommit':_0x2c668d=>{const _0x85aaec=_0x599f39;let _0x4428d0={..._0x8a8fd[_0x85aaec(0x376)]};_0x2c668d[_0x85aaec(0x3ff)]((_0x105770,_0x48dc6b)=>{let _0x2bef94=_0x4428d0[_0x48dc6b];_0x2bef94&&(_0x4428d0[_0x48dc6b]={..._0x2bef94,'layout':_0x105770});}),_0x3fb4fb['executeCommand'](_0x3f980a['id'],{'unitId':_0x515b7a,'dashboard':{..._0x8a8fd,'widgets':_0x4428d0}})[_0x85aaec(0x299)](()=>void 0x0);},'renderWidget':_0x2ff0f0=>_0x46ec10(Ya,{'base':_0xc953db,'dashboard':_0x8a8fd,'unitId':_0x515b7a,'widget':_0x2ff0f0,'onChange':_0x336620,'onChartRuntimeChange':_0x498a08}),'renderWidgetActions':_0x814b5d=>_0x46ec10(qa,{'onEdit':()=>{_0x503020(_0x814b5d['id']),_0x2aa66c(!0x0);},'onDelete':()=>{const _0x44a639=_0x599f39;_0x563886===_0x814b5d['id']&&(_0x503020(void 0x0),_0x2aa66c(!0x1)),_0x3fb4fb[_0x44a639(0x1c7)](_0x353383['id'],{'unitId':_0x515b7a,'dashboardId':_0x4ca6b0,'widgetId':_0x814b5d['id']})[_0x44a639(0x299)](()=>void 0x0);}})})}),_0x2f14c3&&_0x28e0a7&&_0x4789d0&&_0x46ec10(za,{'base':_0xc953db,'chartRuntime':_0x2b75a1[_0x599f39(0x122)](_0x4789d0['id']),'unitId':_0x515b7a,'widget':_0x4789d0,'onChange':_0x336620,'onClose':()=>_0x2aa66c(!0x1),'onSelectBackgroundImage':()=>eo(_0x54d8e8),'onSelectImage':()=>$a(_0x33f90f)})]})]});}function Ya({base:_0x5a8ce4,dashboard:_0x2237bf,onChange:_0x3ea3e6,onChartRuntimeChange:_0x46d2e7,unitId:_0x2b08ab,widget:_0x1428aa}){const _0x11d707=_0x425045;let _0x39840b=_0x1f57f7(()=>_0x2237bf[_0x11d707(0x185)][_0x11d707(0x222)](_0x4020b8=>{const _0x21314a=_0x11d707;let _0x2c42c8=_0x2237bf[_0x21314a(0x376)][_0x4020b8];return(_0x2c42c8==null?void 0x0:_0x2c42c8['type'])===_0x1cae1f[_0x21314a(0x268)]&&_0x2c42c8['tableId']===(_0x21314a(0x220)in _0x1428aa?_0x1428aa[_0x21314a(0x220)]:'')&&_0x2c42c8[_0x21314a(0x1d6)]?[_0x2c42c8[_0x21314a(0x1d6)]]:[];}),[_0x2237bf,_0x1428aa]);switch(_0x1428aa[_0x11d707(0x3e8)]){case _0x1cae1f[_0x11d707(0x3d5)]:return _0x46ec10(Lr,{'filters':_0x39840b,'unitId':_0x2b08ab,'widget':_0x1428aa,'onRuntimeChange':_0x46d2e7});case _0x1cae1f[_0x11d707(0x268)]:return _0x46ec10(wa,{'fields':Xa(_0x5a8ce4,_0x1428aa[_0x11d707(0x220)]),'filter':_0x1428aa['filter'],'onChange':_0x378a6f=>_0x3ea3e6({..._0x1428aa,'filter':_0x378a6f})[_0x11d707(0x299)](()=>void 0x0)});case _0x1cae1f[_0x11d707(0x142)]:return _0x46ec10(Ur,{'widget':_0x1428aa});case _0x1cae1f[_0x11d707(0x2e3)]:return _0x46ec10(Za,{'widget':_0x1428aa});case _0x1cae1f[_0x11d707(0x325)]:return _0x46ec10(Dr,{'dashboardId':_0x2237bf['id'],'unitId':_0x2b08ab,'widget':_0x1428aa});}}function Xa(_0x54f211,_0x210178){const _0x62f1d7=_0x425045;let _0x37f071=_0x54f211[_0x62f1d7(0x35f)]()[_0x62f1d7(0x344)][_0x210178],_0x24454c=_0x37f071==null?void 0x0:_0x37f071['viewOrder'][_0x62f1d7(0x11d)](_0x4b0e9e=>_0x37f071['views'][_0x4b0e9e]),_0xdc1455=_0x24454c?_0x37f071==null?void 0x0:_0x37f071[_0x62f1d7(0x3ef)][_0x24454c]:void 0x0;return _0x37f071&&_0xdc1455?_0xb59ce2(_0x37f071,_0xdc1455):[];}function Za({widget:_0xda952}){const _0x444346=_0x425045;let _0x2d5fa2=_0x4acd92(_0x227826),[_0x3e3dee,_0x44451a]=_0xf9778b(_0xda952[_0x444346(0x23f)]===_0x1ba6af[_0x444346(0x2a6)]?'':_0xda952[_0x444346(0xf4)]);return _0x1e9cac(()=>{const _0x277b8a=_0x444346;let _0x54b540=!0x0;return _0x2d5fa2[_0x277b8a(0x183)](_0xda952[_0x277b8a(0xf4)],_0xda952[_0x277b8a(0x23f)])[_0x277b8a(0x12a)](_0x75f10b=>{_0x54b540&&_0x44451a(_0x75f10b);})[_0x277b8a(0x299)](()=>void 0x0),()=>{_0x54b540=!0x1;};},[_0x2d5fa2,_0xda952[_0x444346(0xf4)],_0xda952[_0x444346(0x23f)]]),_0x3e3dee?_0x46ec10('div',{'role':_0xda952[_0x444346(0x29c)]?_0x444346(0x1bc):void 0x0,'aria-label':_0xda952[_0x444346(0x29c)]||void 0x0,'data-dashboard-image':_0xda952['id'],'className':_0x444346(0x357),'style':vr(_0x3e3dee,_0xda952[_0x444346(0x326)])}):null;}function Qa(){const _0x634e35=_0x425045;let _0x2e574f=_0x2f90ed(new Set());return{'id':_0x634e35(0x226)+_0x184bc2(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x2e574f}]},'documentStyle':{}};}function $a(_0x307e3e){return new Promise(_0x189fd0=>{const _0xeeaec8=_0x2f30;let _0xc123ee=document['createElement'](_0xeeaec8(0x359));_0xc123ee[_0xeeaec8(0x3e8)]=_0xeeaec8(0xe2),_0xc123ee['accept']=_0xeeaec8(0x21c),_0xc123ee[_0xeeaec8(0x381)](_0xeeaec8(0x2ca),()=>{const _0x41c3d2=_0xeeaec8;var _0x226107;let _0x1b1acc=(_0x226107=_0xc123ee['files'])==null?void 0x0:_0x226107[0x0];if(!_0x1b1acc){_0x189fd0(null);return;}_0x307e3e[_0x41c3d2(0x346)](_0x1b1acc)[_0x41c3d2(0x12a)](_0x580475=>{const _0x4b3b1f=_0x41c3d2;if(!_0x580475[_0x4b3b1f(0xf4)]||_0x580475[_0x4b3b1f(0x23f)]===void 0x0){_0x189fd0(null);return;}_0x189fd0({'name':_0x580475[_0x4b3b1f(0x10b)],'source':_0x580475[_0x4b3b1f(0xf4)],'sourceType':_0x580475['sourceType']});})[_0x41c3d2(0x299)](()=>_0x189fd0(null));},{'once':!0x0}),_0xc123ee[_0xeeaec8(0x21f)]();});}function eo(_0x1b37b6){return new Promise(_0x173004=>{const _0x3a9a35=_0x2f30;let _0x1c7d4f=document[_0x3a9a35(0x306)](_0x3a9a35(0x359));_0x1c7d4f[_0x3a9a35(0x3e8)]=_0x3a9a35(0xe2),_0x1c7d4f[_0x3a9a35(0x2a7)]=_0x3a9a35(0x21c),_0x1c7d4f[_0x3a9a35(0x381)](_0x3a9a35(0x2ca),()=>{const _0xc86201=_0x3a9a35;var _0x1b08c9;let _0xc7bca6=(_0x1b08c9=_0x1c7d4f[_0xc86201(0x19f)])==null?void 0x0:_0x1b08c9[0x0];if(!_0xc7bca6){_0x173004(null);return;}_0x1b37b6[_0xc86201(0x25f)](_0xc7bca6)[_0xc86201(0x12a)](_0x54c7ed=>{const _0x5bb58f=_0xc86201;if(!(_0x54c7ed!=null&&_0x54c7ed[_0x5bb58f(0xf4)])){_0x173004(null);return;}if(_0x54c7ed[_0x5bb58f(0x3d0)]){let _0x2bed79=new Image();_0x2bed79[_0x5bb58f(0x1f3)]=_0x54c7ed[_0x5bb58f(0x3d0)],_0x1b37b6[_0x5bb58f(0x158)](_0x54c7ed['source'],_0x54c7ed['imageSourceType'],_0x2bed79);}_0x173004({'source':_0x54c7ed[_0x5bb58f(0xf4)],'sourceType':_0x54c7ed[_0x5bb58f(0x195)]});})[_0xc86201(0x299)](()=>_0x173004(null));},{'once':!0x0}),_0x1c7d4f[_0x3a9a35(0x21f)]();});}function to(_0xc0d166){const _0x21c8f4=_0x425045;switch(_0xc0d166){case _0x1cae1f[_0x21c8f4(0x3d5)]:return'bases-dashboard-ui.dashboard.pivotChart';case _0x1cae1f[_0x21c8f4(0x268)]:return'bases-dashboard-ui.dashboard.tableFilter';case _0x1cae1f[_0x21c8f4(0x142)]:return _0x21c8f4(0x431);case _0x1cae1f[_0x21c8f4(0x2e3)]:return _0x21c8f4(0x261);case _0x1cae1f[_0x21c8f4(0x325)]:return _0x21c8f4(0x1da);}}function no(_0x2aa5a1){const _0x29d419=_0x425045;return(_0x2aa5a1==null?void 0x0:_0x2aa5a1['type'])===_0x5e9757[_0x29d419(0x390)]&&typeof _0x2aa5a1['config']=='object'&&_0x2aa5a1[_0x29d419(0x244)]!==null&&_0x29d419(0x27b)in _0x2aa5a1[_0x29d419(0x244)]&&_0x29d419(0x3e7)in _0x2aa5a1[_0x29d419(0x244)];}const ro=[{'area':_0x5b40f7[_0x425045(0x384)],'key':_0x425045(0x412),'label':_0x425045(0x423)},{'area':_0x5b40f7['Column'],'key':_0x425045(0x2e0),'label':_0x425045(0x1b2)},{'area':_0x5b40f7[_0x425045(0x10e)],'key':_0x425045(0x2a3),'label':'bases-dashboard-ui.pivot.rows'},{'area':_0x5b40f7['Value'],'key':_0x425045(0x3fc),'label':_0x425045(0x2d7)}],io=[{'value':_0x4cc2cb[_0x425045(0x2fb)],'localeKey':_0x425045(0x221)},{'value':_0x4cc2cb[_0x425045(0x433)],'localeKey':_0x425045(0x2b9)},{'value':_0x4cc2cb[_0x425045(0x3c2)],'localeKey':_0x425045(0x1e7)},{'value':_0x4cc2cb[_0x425045(0x373)],'localeKey':_0x425045(0x3c9)},{'value':_0x4cc2cb['max'],'localeKey':_0x425045(0x317)},{'value':_0x4cc2cb['min'],'localeKey':_0x425045(0x30b)},{'value':_0x4cc2cb[_0x425045(0x12e)],'localeKey':_0x425045(0xe6)},{'value':_0x4cc2cb['stdDev'],'localeKey':_0x425045(0x434)},{'value':_0x4cc2cb[_0x425045(0x2c4)],'localeKey':_0x425045(0x11c)},{'value':_0x4cc2cb[_0x425045(0xe7)],'localeKey':_0x425045(0x28a)},{'value':_0x4cc2cb['varp'],'localeKey':'bases-dashboard-ui.pivot.variancePopulation'}];function ao(_0x1683d5){const _0x4dfc05=_0x425045;let {config:_0x3f8cc1,onChange:_0x3baca6,table:_0x2ae242}=_0x1683d5,_0x469bfd=_0x4acd92(_0x4a0c45),[_0x153cca,_0x247655]=_0xf9778b(_0x4dfc05(0xf9)),[_0x5daea1,_0x1477a4]=_0xf9778b(''),[_0x50e909,_0x8d4e31]=_0xf9778b(null),[_0x544f8d,_0x474391]=_0xf9778b(null),[_0x1986f0,_0x53f2ba]=_0xf9778b(null),[_0x3e7d08,_0x6f1b47]=_0xf9778b(null),_0x343721=_0x26f122(null),_0x5374a8=_0x1f57f7(()=>_0x2ae242['fieldOrder']['flatMap'](_0x26eca1=>{const _0x525a19=_0x4dfc05;let _0x585b8b=_0x2ae242['fields'][_0x26eca1];return _0x585b8b&&_0x585b8b[_0x525a19(0x233)]!==!0x0&&_0x585b8b[_0x525a19(0x3e8)]!==_0x2ed75f[_0x525a19(0x304)]?[_0x585b8b]:[];})[_0x4dfc05(0x1d6)](_0x2d75e5=>_0x2d75e5[_0x4dfc05(0x10b)][_0x4dfc05(0xfd)]()[_0x4dfc05(0x378)](_0x5daea1[_0x4dfc05(0x290)]()['toLocaleLowerCase']())),[_0x5daea1,_0x2ae242]),_0x4d6208=_0x37a7d4=>{const _0x1d0282=_0x4dfc05;let _0x1a95a4=_0x1b60e4(_0x2ae242,_0x3f8cc1[_0x1d0282(0x27b)]);try{_0x37a7d4(_0x1a95a4),_0x3baca6({'pivot':_0x1a95a4['toJSON']()});}finally{_0x1a95a4['dispose']();}},_0x53f10e=(_0x26957e,_0x1018bf)=>{_0x50e909&&(_0x4d6208(_0x267e97=>{const _0x3372bd=_0x2f30;if(_0x50e909['kind']===_0x3372bd(0x1a9)){let _0x118af7=_0x267e97[_0x3372bd(0x260)](_0x50e909['id']),_0x352839=_0x118af7[_0x3372bd(0x339)]===_0x26957e&&_0x118af7[_0x3372bd(0x3f2)]<_0x1018bf?_0x1018bf-0x1:_0x1018bf;_0x267e97['updateFieldPosition'](_0x50e909['id'],_0x26957e,_0x352839);return;}mo(_0x267e97,_0x50e909['id'],_0x26957e,_0x1018bf);}),_0x8d4e31(null),_0x474391(null));};return _0x53776f(_0x4dfc05(0x1e1),{'className':_0x4dfc05(0x289),'children':[_0x46ec10(_0x63d182,{'ariaLabel':_0x469bfd['t'](_0x4dfc05(0x329)),'className':_0x4dfc05(0x341),'items':[{'label':_0x469bfd['t']('bases-dashboard-ui.pivot.fields'),'panelId':'base-pivot-fields','value':_0x4dfc05(0xf9)},{'label':_0x469bfd['t'](_0x4dfc05(0x15e)),'panelId':_0x4dfc05(0x321),'value':'options'}],'value':_0x153cca,'onChange':_0x247655}),_0x46ec10(_0x4dfc05(0x1e1),{'ref':_0x343721,'className':_0x4ba74c(_0x4dfc05(0x1a7),_0x3d0337),'onDragOver':_0x270fde=>{const _0x5bcd07=_0x4dfc05;let _0xc75741=_0x343721[_0x5bcd07(0x311)];if(!_0xc75741)return;let _0xc28bad=_0xc75741[_0x5bcd07(0x397)]();_0x270fde[_0x5bcd07(0x2ff)]<_0xc28bad[_0x5bcd07(0x2ba)]+0x30?_0xc75741[_0x5bcd07(0x295)]-=0x10:_0x270fde['clientY']>_0xc28bad[_0x5bcd07(0x2b7)]-0x30&&(_0xc75741['scrollTop']+=0x10);},'children':_0x153cca===_0x4dfc05(0x389)?_0x46ec10(po,{'config':_0x3f8cc1,'commit':_0x4d6208}):_0x53776f(_0x4dfc05(0x1e1),{'className':_0x4dfc05(0x416),'children':[_0x53776f('div',{'children':[_0x46ec10(_0x4dfc05(0x1e1),{'className':_0x4dfc05(0x27c),'children':_0x469bfd['t']('bases-dashboard-ui.pivot.sourceFields')}),_0x46ec10(_0x512832,{'allowClear':!0x0,'slot':_0x46ec10(_0x43de76,{}),'value':_0x5daea1,'placeholder':_0x469bfd['t'](_0x4dfc05(0x13b)),'onChange':_0x1477a4}),_0x46ec10('div',{'className':_0x4dfc05(0x2b5),'children':_0x5374a8[_0x4dfc05(0x131)](_0xc47987=>_0x46ec10(oo,{'config':_0x3f8cc1,'field':_0xc47987,'onAdd':_0xa7e904=>_0x4d6208(_0x5cedce=>mo(_0x5cedce,_0xc47987['id'],_0xa7e904,_0x5cedce[_0x4dfc05(0x37f)](_0xa7e904))),'onCheckedChange':_0x119dd8=>_0x4d6208(_0x311685=>{const _0x40c356=_0x4dfc05;let _0x5380ca=_0x311685[_0x40c356(0x253)](_0xc47987['id']);if(!_0x119dd8){_0x5380ca[_0x40c356(0x3ff)](_0x302dd7=>_0x311685[_0x40c356(0x238)](_0x302dd7['getId']()));return;}if(_0x5380ca[_0x40c356(0x297)]===0x0){let _0x3254a1=go(_0xc47987)?_0x5b40f7[_0x40c356(0x402)]:_0x5b40f7[_0x40c356(0x10e)];_0x311685[_0x40c356(0x216)](_0xc47987['id'],_0x3254a1);}}),'onDragStart':()=>_0x8d4e31({'kind':_0x4dfc05(0xf4),'id':_0xc47987['id']})},_0xc47987['id']))})]}),_0x46ec10('div',{'className':_0x4dfc05(0x34c),'children':ro[_0x4dfc05(0x131)](_0x23163d=>_0x46ec10(co,{'area':_0x23163d['area'],'dropTarget':_0x544f8d,'fields':_0x3f8cc1['pivot'][_0x23163d[_0x4dfc05(0x169)]],'label':_0x469bfd['t'](_0x23163d[_0x4dfc05(0x31b)]),'snapshot':_0x3f8cc1[_0x4dfc05(0x27b)],'onDragEnd':()=>{_0x8d4e31(null),_0x474391(null);},'onDragStart':_0x1dc2b0=>_0x8d4e31({'kind':_0x4dfc05(0x1a9),'id':_0x1dc2b0,'area':_0x23163d['area']}),'onDragOver':_0x24bbc7=>_0x474391({'area':_0x23163d[_0x4dfc05(0x339)],'index':_0x24bbc7}),'onDrop':_0x1b3e69=>_0x53f10e(_0x23163d[_0x4dfc05(0x339)],_0x1b3e69),'onFilter':_0x53f2ba,'onRemove':_0x5afa53=>_0x4d6208(_0x263f21=>_0x263f21[_0x4dfc05(0x238)](_0x5afa53)),'onSettings':_0x6f1b47},_0x23163d[_0x4dfc05(0x339)]))}),_0x1986f0&&_0x46ec10(uo,{'fieldId':_0x1986f0,'snapshot':_0x3f8cc1[_0x4dfc05(0x27b)],'table':_0x2ae242,'onCancel':()=>_0x53f2ba(null),'onCommit':(_0xbaa357,_0x32c4d7)=>{_0x4d6208(_0x52d0b5=>{const _0xc90669=_0x2f30;let _0x1bf666=_0x52d0b5[_0xc90669(0x358)](_0x1986f0),_0x36baa3=(_0x1bf666==null?void 0x0:_0x1bf666[_0xc90669(0x129)])??[];_0x52d0b5[_0xc90669(0x109)](_0x1986f0,{'type':_0xe90230[_0xc90669(0x29d)],'list':_0xbaa357,'isAll':_0xbaa357[_0xc90669(0x297)]===_0x36baa3[_0xc90669(0x297)]}),_0x52d0b5[_0xc90669(0x3ed)](_0x1986f0,_0x32c4d7===void 0x0?void 0x0:{'type':_0x32c4d7});}),_0x53f2ba(null);}},_0x1986f0),_0x3e7d08&&_0x46ec10(fo,{'field':_0x3f8cc1[_0x4dfc05(0x27b)][_0x4dfc05(0x34f)][_0x3e7d08],'onCancel':()=>_0x6f1b47(null),'onCommit':(_0x4b30de,_0x17a8c2,_0x32d43c)=>{_0x4d6208(_0x4b0f5f=>{const _0x402f00=_0x2f30;_0x4b0f5f[_0x402f00(0x1e8)](_0x3e7d08,_0x4b30de),_0x4b0f5f[_0x402f00(0x1f1)](_0x3e7d08,_0x17a8c2),_0x4b0f5f['setFieldFormat'](_0x3e7d08,_0x32d43c||void 0x0);}),_0x6f1b47(null);}},_0x3e7d08)]})})]});}function oo(_0x430277){const _0x565426=_0x425045;let {config:_0x703402,field:_0x5f486b,onAdd:_0x2ad8c5,onCheckedChange:_0xcf8a98,onDragStart:_0x184c03}=_0x430277,_0x5c8ce0=_0x4acd92(_0x4a0c45),_0x236d9f=[...Object[_0x565426(0x2f0)](_0x703402[_0x565426(0x27b)][_0x565426(0x2bf)]),...Object['values'](_0x703402[_0x565426(0x27b)]['measure'])][_0x565426(0x2eb)](_0x30cd9c=>_0x30cd9c[_0x565426(0x2d4)]===_0x5f486b['id']),_0x4867b7=ro[_0x565426(0x131)](_0x230602=>({'type':'item','children':_0x5c8ce0['t'](_o(_0x230602[_0x565426(0x339)])),'onSelect':()=>_0x2ad8c5(_0x230602[_0x565426(0x339)])}));return _0x53776f(_0x565426(0x1e1),{'draggable':!0x0,'className':_0x565426(0x3f5),'onDragStart':_0x184c03,'children':[_0x46ec10(_0x489e03,{'className':_0x565426(0x25d)}),_0x46ec10(_0x3884d7,{'checked':_0x236d9f,'onChange':_0x251427=>_0xcf8a98(!!_0x251427)}),_0x46ec10(so,{'field':_0x5f486b}),_0x46ec10('span',{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x5f486b[_0x565426(0x10b)]}),_0x46ec10(_0x14ca1d,{'align':'end','items':_0x4867b7,'children':_0x46ec10(_0x565426(0x223),{'className':_0x565426(0x430),'children':_0x46ec10(_0x1a78f0,{})})})]});}function so({field:_0x284088}){const _0x160868=_0x425045;return go(_0x284088)?_0x46ec10(_0x293db8,{'className':_0x160868(0x25d)}):_0x284088[_0x160868(0x3e8)]===_0x2ed75f[_0x160868(0x172)]||_0x284088[_0x160868(0x3e8)]===_0x2ed75f[_0x160868(0x364)]||_0x284088[_0x160868(0x3e8)]===_0x2ed75f[_0x160868(0x315)]?_0x46ec10(_0xe4276a,{'className':_0x160868(0x25d)}):_0x46ec10(_0x5c8b6c,{'className':_0x160868(0x25d)});}function co(_0x39fc61){const _0x4852b5=_0x425045;let {area:_0x3715b7,dropTarget:_0x3313ee,fields:_0xbb1c95,label:_0x147ab8,snapshot:_0x2b638f}=_0x39fc61,_0x1338a9=_0x4acd92(_0x4a0c45);return _0x53776f('section',{'className':_0x4ba74c(_0x4852b5(0x193),_0x1919fa),'onDragOver':_0x948e60=>{const _0x35f772=_0x4852b5;_0x948e60[_0x35f772(0x3f3)](),_0x39fc61[_0x35f772(0x29e)](_0xbb1c95['length']);},'onDrop':_0x3adfae=>{const _0x4c3915=_0x4852b5;_0x3adfae['preventDefault'](),_0x39fc61[_0x4c3915(0x2f6)]((_0x3313ee==null?void 0x0:_0x3313ee[_0x4c3915(0x339)])===_0x3715b7?_0x3313ee[_0x4c3915(0x3f2)]:_0xbb1c95[_0x4c3915(0x297)]);},'children':[_0x46ec10('div',{'className':_0x4852b5(0x303),'children':_0x147ab8}),_0x53776f(_0x4852b5(0x1e1),{'className':_0x4852b5(0x3e3),'children':[_0xbb1c95['map']((_0x4e11ca,_0x43dccf)=>{const _0x1bf89e=_0x4852b5;let _0x1b96f0=_0x2b638f[_0x1bf89e(0x2bf)][_0x4e11ca]??_0x2b638f[_0x1bf89e(0x34f)][_0x4e11ca];if(!_0x1b96f0)return null;let _0x3722d8=(_0x3313ee==null?void 0x0:_0x3313ee['area'])===_0x3715b7&&_0x3313ee[_0x1bf89e(0x3f2)]===_0x43dccf;return _0x53776f('div',{'onDragOver':_0xb7c300=>{const _0x56eb4b=_0x1bf89e;_0xb7c300['preventDefault'](),_0xb7c300[_0x56eb4b(0x3bb)]();let _0x55ab6b=_0xb7c300[_0x56eb4b(0x1ca)][_0x56eb4b(0x397)]();_0x39fc61[_0x56eb4b(0x29e)](_0x43dccf+ +(_0xb7c300['clientY']>_0x55ab6b[_0x56eb4b(0x2ba)]+_0x55ab6b['height']/0x2));},'onDrop':_0x3f3cc7=>{const _0x2ae9be=_0x1bf89e;_0x3f3cc7[_0x2ae9be(0x3f3)](),_0x3f3cc7[_0x2ae9be(0x3bb)](),_0x39fc61[_0x2ae9be(0x2f6)]((_0x3313ee==null?void 0x0:_0x3313ee[_0x2ae9be(0x339)])===_0x3715b7?_0x3313ee[_0x2ae9be(0x3f2)]:_0x43dccf);},'children':[_0x3722d8&&_0x46ec10(_0x1bf89e(0x1e1),{'className':_0x1bf89e(0x32e)}),_0x46ec10(lo,{'area':_0x3715b7,'field':_0x1b96f0,'onDragEnd':_0x39fc61[_0x1bf89e(0x230)],'onDragStart':()=>_0x39fc61[_0x1bf89e(0x22f)](_0x4e11ca),'onFilter':()=>_0x39fc61[_0x1bf89e(0x411)](_0x4e11ca),'onRemove':()=>_0x39fc61[_0x1bf89e(0x37b)](_0x4e11ca),'onSettings':()=>_0x39fc61[_0x1bf89e(0xd9)](_0x4e11ca)})]},_0x4e11ca);}),(_0x3313ee==null?void 0x0:_0x3313ee[_0x4852b5(0x339)])===_0x3715b7&&_0x3313ee[_0x4852b5(0x3f2)]===_0xbb1c95[_0x4852b5(0x297)]&&_0x46ec10('div',{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),_0xbb1c95[_0x4852b5(0x297)]===0x0&&_0x46ec10(_0x4852b5(0x1e1),{'className':_0x4852b5(0xda),'children':_0x1338a9['t'](_0x4852b5(0x1de))})]})]});}function lo(_0x81cba){const _0x4f8b85=_0x425045;let _0x49803d=_0x4acd92(_0x4a0c45),_0x599c69=_0x81cba[_0x4f8b85(0x339)]===_0x5b40f7['Value'],_0x460bd4=[{'type':_0x4f8b85(0x387),'children':_0x49803d['t'](_0x4f8b85(0xe9)),'onSelect':_0x81cba[_0x4f8b85(0x37b)]},{'type':_0x4f8b85(0x387),'children':_0x49803d['t'](_0x599c69?_0x4f8b85(0x31a):'bases-dashboard-ui.pivot.filterField'),'onSelect':_0x599c69?_0x81cba['onSettings']:_0x81cba[_0x4f8b85(0x411)]}];return _0x53776f(_0x4f8b85(0x1e1),{'draggable':!0x0,'className':_0x4f8b85(0x3c3),'onDragEnd':_0x81cba['onDragEnd'],'onDragStart':_0x81cba[_0x4f8b85(0x22f)],'children':[_0x46ec10(_0x489e03,{'className':_0x4f8b85(0x25d)}),_0x46ec10(_0x4833dd,{'title':_0x81cba[_0x4f8b85(0x1a9)][_0x4f8b85(0x23e)],'children':_0x46ec10(_0x4f8b85(0x223),{'className':_0x4f8b85(0x395),'children':_0x81cba[_0x4f8b85(0x1a9)][_0x4f8b85(0x23e)]})}),_0x46ec10(_0x14ca1d,{'align':'end','items':_0x460bd4,'children':_0x46ec10(_0x4f8b85(0x223),{'className':_0x4f8b85(0x430),'children':_0x46ec10(_0x1a78f0,{})})})]});}function uo(_0x3ae487){const _0x5b884e=_0x425045;var _0x3d05c7,_0x2dbdc4;let _0x35547e=_0x4acd92(_0x4a0c45),{format:_0x2578d5,items:_0x30bf6a,itemTypes:_0x44c2cd}=_0x1f57f7(()=>{const _0x457af8=_0x2f30;let _0x461f8d=_0x1b60e4(_0x3ae487[_0x457af8(0x1d7)],_0x3ae487[_0x457af8(0x405)]);try{let _0x3fc93f=_0x461f8d[_0x457af8(0x358)](_0x3ae487[_0x457af8(0x2db)]);return{'format':_0x3fc93f==null?void 0x0:_0x3fc93f[_0x457af8(0x319)],'items':[...(_0x3fc93f==null?void 0x0:_0x3fc93f['items'])??[]],'itemTypes':[...(_0x3fc93f==null?void 0x0:_0x3fc93f[_0x457af8(0x1d5)])??[]]};}finally{_0x461f8d[_0x457af8(0x251)]();}},[_0x3ae487[_0x5b884e(0x2db)],_0x3ae487['snapshot'],_0x3ae487[_0x5b884e(0x1d7)]]),_0x5e28a8=(_0x3d05c7=_0x3ae487[_0x5b884e(0x405)]['dimension'][_0x3ae487[_0x5b884e(0x2db)]])==null?void 0x0:_0x3d05c7[_0x5b884e(0x18b)],[_0x4fc7ba,_0x5b830f]=_0xf9778b((_0x5e28a8==null?void 0x0:_0x5e28a8[_0x5b884e(0x3e8)])===_0xe90230['ManualFilter']?_0x5e28a8[_0x5b884e(0x16f)]:_0x30bf6a),[_0x3b2408,_0x58f591]=_0xf9778b((_0x2dbdc4=_0x3ae487[_0x5b884e(0x405)][_0x5b884e(0x2bf)][_0x3ae487[_0x5b884e(0x2db)]])==null||(_0x2dbdc4=_0x2dbdc4[_0x5b884e(0x2aa)])==null?void 0x0:_0x2dbdc4[_0x5b884e(0x3e8)]),_0xec3e4e=_0x4fc7ba[_0x5b884e(0x297)]===_0x30bf6a[_0x5b884e(0x297)];return _0x53776f('section',{'className':_0x4ba74c(_0x5b884e(0x196),_0x1919fa),'children':[_0x46ec10(_0x5b884e(0x1e1),{'className':_0x5b884e(0x2be),'children':_0x35547e['t'](_0x5b884e(0x309))}),_0x53776f('div',{'className':_0x5b884e(0x255),'children':[_0x53776f(_0x5bfdfa,{'className':_0x5b884e(0x16a),'variant':_0x3b2408===_0x4b9a3c['ascending']?_0x5b884e(0x103):_0x5b884e(0x1bf),'onClick':()=>_0x58f591(_0x4b9a3c['ascending']),'children':[_0x46ec10(_0x5353ac,{}),_0x35547e['t'](_0x5b884e(0x1c3))]}),_0x53776f(_0x5bfdfa,{'className':'univer-flex-1','variant':_0x3b2408===_0x4b9a3c['descending']?_0x5b884e(0x103):'default','onClick':()=>_0x58f591(_0x4b9a3c['descending']),'children':[_0x46ec10(_0x125ead,{}),_0x35547e['t']('bases-dashboard-ui.pivot.descending')]})]}),_0x53776f(_0x5b884e(0x1e1),{'className':'univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','children':[_0x53776f(_0x5b884e(0x31b),{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x46ec10(_0x3884d7,{'checked':_0xec3e4e,'indeterminate':_0x4fc7ba['length']>0x0&&!_0xec3e4e,'onChange':()=>_0x5b830f(_0xec3e4e?[]:_0x30bf6a)}),_0x35547e['t'](_0x5b884e(0x42f))]}),_0x30bf6a[_0x5b884e(0x131)]((_0x48abc1,_0x16326d)=>_0x53776f(_0x5b884e(0x31b),{'className':_0x5b884e(0x117),'children':[_0x46ec10(_0x3884d7,{'checked':_0x4fc7ba['includes'](_0x48abc1),'onChange':()=>_0x5b830f(_0xbd28a4=>_0xbd28a4[_0x5b884e(0x378)](_0x48abc1)?_0xbd28a4[_0x5b884e(0x1d6)](_0x355bac=>_0x355bac!==_0x48abc1):[..._0xbd28a4,_0x48abc1])}),_0x46ec10(_0x5b884e(0x223),{'className':_0x5b884e(0x2a8),'children':ho(_0x48abc1,_0x44c2cd[_0x16326d],_0x2578d5,_0x35547e['t'](_0x5b884e(0x377)))})]},_0x48abc1))]}),_0x53776f(_0x5b884e(0x1e1),{'className':_0x5b884e(0x168),'children':[_0x46ec10(_0x5bfdfa,{'variant':'link','onClick':()=>_0x3ae487[_0x5b884e(0xe5)](_0x30bf6a,_0x3b2408),'children':_0x35547e['t']('bases-dashboard-ui.pivot.clearFilter')}),_0x53776f('div',{'className':_0x5b884e(0x1ff),'children':[_0x46ec10(_0x5bfdfa,{'onClick':_0x3ae487['onCancel'],'children':_0x35547e['t'](_0x5b884e(0x112))}),_0x46ec10(_0x5bfdfa,{'variant':'primary','disabled':_0x4fc7ba[_0x5b884e(0x297)]===0x0,'onClick':()=>_0x3ae487[_0x5b884e(0xe5)](_0x4fc7ba,_0x3b2408),'children':_0x35547e['t'](_0x5b884e(0x296))})]})]})]});}function fo(_0x30a6ce){const _0x538fc8=_0x425045;var _0x2a12c4,_0x54f67e,_0x718fb5;let _0x5e12a2=_0x4acd92(_0x4a0c45),[_0x51a6ec,_0x3daca5]=_0xf9778b(((_0x2a12c4=_0x30a6ce['field'])==null?void 0x0:_0x2a12c4[_0x538fc8(0x23e)])??''),[_0x71dc68,_0x23157f]=_0xf9778b(((_0x54f67e=_0x30a6ce[_0x538fc8(0x1a9)])==null?void 0x0:_0x54f67e['subtotal'])??_0x4cc2cb['sum']),[_0xfbabab,_0x3d6184]=_0xf9778b(((_0x718fb5=_0x30a6ce['field'])==null?void 0x0:_0x718fb5[_0x538fc8(0x319)])??'');return _0x30a6ce[_0x538fc8(0x1a9)]?_0x53776f('section',{'className':_0x4ba74c(_0x538fc8(0x145),_0x1919fa),'children':[_0x46ec10(_0x538fc8(0x1e1),{'className':_0x538fc8(0x125),'children':_0x5e12a2['t'](_0x538fc8(0x31a))}),_0x53776f(_0x538fc8(0x31b),{'className':_0x538fc8(0x350),'children':[_0x5e12a2['t'](_0x538fc8(0x1fb)),_0x46ec10(_0x512832,{'value':_0x51a6ec,'onChange':_0x3daca5})]}),_0x53776f(_0x538fc8(0x31b),{'className':_0x538fc8(0x350),'children':[_0x5e12a2['t']('bases-dashboard-ui.pivot.summarizeBy'),_0x46ec10(_0x5ba88c,{'value':String(_0x71dc68),'options':io['map'](_0x432e91=>({'value':String(_0x432e91[_0x538fc8(0x18a)]),'label':_0x5e12a2['t'](_0x432e91['localeKey'])})),'onChange':_0x2ff8ee=>{const _0x17d27b=_0x538fc8;let _0x53d7f8=io[_0x17d27b(0x11d)](_0x5adb14=>String(_0x5adb14['value'])===_0x2ff8ee);_0x53d7f8&&_0x23157f(_0x53d7f8[_0x17d27b(0x18a)]);}})]}),_0x53776f('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x5e12a2['t'](_0x538fc8(0x35d)),_0x46ec10(_0x512832,{'value':_0xfbabab,'onChange':_0x3d6184})]}),_0x53776f('div',{'className':_0x538fc8(0x338),'children':[_0x46ec10(_0x5bfdfa,{'onClick':_0x30a6ce[_0x538fc8(0x24a)],'children':_0x5e12a2['t'](_0x538fc8(0x112))}),_0x46ec10(_0x5bfdfa,{'variant':_0x538fc8(0x103),'disabled':!_0x51a6ec[_0x538fc8(0x290)](),'onClick':()=>_0x30a6ce['onCommit'](_0x51a6ec[_0x538fc8(0x290)](),_0x71dc68,_0xfbabab),'children':_0x5e12a2['t'](_0x538fc8(0x296))})]})]}):null;}function po(_0x3c5afd){const _0x54b9da=_0x425045;let {config:_0x260e4b,commit:_0x159d31}=_0x3c5afd,_0x4e46f7=_0x4acd92(_0x4a0c45),_0x2e686e=_0x260e4b[_0x54b9da(0x27b)][_0x54b9da(0x389)],_0x387b05=_0x5e7d8f=>_0x159d31(_0x3e2d90=>_0x3e2d90['setOptions']({..._0x3e2d90[_0x54b9da(0x356)](),..._0x5e7d8f}));return _0x53776f('div',{'className':_0x54b9da(0x416),'children':[_0x53776f(_0x54b9da(0x31b),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x4e46f7['t'](_0x54b9da(0x3f4)),_0x46ec10(_0x5ba88c,{'className':'univer-w-36','value':String(_0x260e4b[_0x54b9da(0x27b)][_0x54b9da(0x155)]),'options':[{'value':String(_0xf39c9c[_0x54b9da(0x3d8)]),'label':_0x4e46f7['t']('bases-dashboard-ui.pivot.layoutTabular')},{'value':String(_0xf39c9c[_0x54b9da(0x191)]),'label':_0x4e46f7['t'](_0x54b9da(0x2ce))},{'value':String(_0xf39c9c[_0x54b9da(0x162)]),'label':_0x4e46f7['t'](_0x54b9da(0x133))}],'onChange':_0x405f1e=>{const _0x3e3145=_0x54b9da;let _0x584cd8=[_0xf39c9c[_0x3e3145(0x3d8)],_0xf39c9c[_0x3e3145(0x191)],_0xf39c9c['outline']][_0x3e3145(0x11d)](_0x1590c8=>String(_0x1590c8)===_0x405f1e);_0x584cd8!==void 0x0&&_0x159d31(_0xfe1726=>_0xfe1726[_0x3e3145(0x37d)](_0x584cd8));}})]}),[{'key':_0x54b9da(0x194),'label':'bases-dashboard-ui.pivot.repeatRowLabels','defaultValue':!0x1},{'key':_0x54b9da(0x40b),'label':_0x54b9da(0x2b6),'defaultValue':!0x1},{'key':_0x54b9da(0x1bd),'label':'bases-dashboard-ui.pivot.showRowSubtotal','defaultValue':!0x0},{'key':_0x54b9da(0x36c),'label':'bases-dashboard-ui.pivot.showRowGrandTotal','defaultValue':!0x0},{'key':_0x54b9da(0x1b5),'label':_0x54b9da(0xed),'defaultValue':!0x0},{'key':_0x54b9da(0x180),'label':_0x54b9da(0x360),'defaultValue':!0x0}][_0x54b9da(0x131)](_0x15d1e2=>_0x53776f(_0x54b9da(0x31b),{'className':_0x54b9da(0x3f9),'children':[_0x46ec10(_0x3884d7,{'checked':!!(_0x2e686e[_0x15d1e2[_0x54b9da(0x169)]]??_0x15d1e2[_0x54b9da(0x21a)]),'disabled':_0x15d1e2[_0x54b9da(0x169)]===_0x54b9da(0x194)&&_0x260e4b[_0x54b9da(0x27b)][_0x54b9da(0x155)]===_0xf39c9c[_0x54b9da(0x191)],'onChange':_0x50ec6d=>_0x387b05({[_0x15d1e2['key']]:!!_0x50ec6d})}),_0x4e46f7['t'](_0x15d1e2[_0x54b9da(0x31b)])]},_0x15d1e2['key'])),_0x260e4b[_0x54b9da(0x27b)][_0x54b9da(0x155)]===_0xf39c9c[_0x54b9da(0x162)]&&_0x53776f(_0x54b9da(0x31b),{'className':_0x54b9da(0x1b4),'children':[_0x4e46f7['t'](_0x54b9da(0x2b0)),_0x46ec10(_0x5ba88c,{'className':'univer-w-36','value':String(_0x2e686e[_0x54b9da(0x27f)]??_0x278d2c[_0x54b9da(0x2ba)]),'options':[{'value':String(_0x278d2c[_0x54b9da(0x2ba)]),'label':_0x4e46f7['t'](_0x54b9da(0x224))},{'value':String(_0x278d2c[_0x54b9da(0x2b7)]),'label':_0x4e46f7['t'](_0x54b9da(0x33e))}],'onChange':_0x28c9cf=>{const _0xc2fa16=_0x54b9da;let _0x39f476=[_0x278d2c[_0xc2fa16(0x2ba)],_0x278d2c[_0xc2fa16(0x2b7)]]['find'](_0x5e2e6b=>String(_0x5e2e6b)===_0x28c9cf);_0x39f476!==void 0x0&&_0x387b05({'rowSubtotalPosition':_0x39f476});}})]}),_0x53776f(_0x54b9da(0x31b),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x4e46f7['t'](_0x54b9da(0x26e)),_0x46ec10(_0x5ba88c,{'className':_0x54b9da(0x343),'value':String(_0x260e4b[_0x54b9da(0x27b)]['valuePosition']===_0x412ab8[_0x54b9da(0x388)]?_0x412ab8['Column']:_0x260e4b[_0x54b9da(0x27b)][_0x54b9da(0x209)]),'options':[{'value':String(_0x412ab8[_0x54b9da(0x17f)]),'label':_0x4e46f7['t'](_0x54b9da(0x1b2))},{'value':String(_0x412ab8[_0x54b9da(0x10e)]),'label':_0x4e46f7['t'](_0x54b9da(0x100))}],'onChange':_0x1e28fd=>{const _0x100d77=_0x54b9da;let _0x2033a7=[_0x412ab8['Column'],_0x412ab8[_0x100d77(0x10e)]][_0x100d77(0x11d)](_0xfa0a9d=>String(_0xfa0a9d)===_0x1e28fd);_0x2033a7!==void 0x0&&_0x159d31(_0x5d46d1=>_0x5d46d1[_0x100d77(0x1eb)](_0x2033a7,_0x5d46d1['getValueIndex']()<0x0?0x0:_0x5d46d1['getValueIndex']()));}})]}),_0x53776f(_0x54b9da(0x31b),{'className':_0x54b9da(0x1b4),'children':[_0x4e46f7['t'](_0x54b9da(0x3c6)),_0x46ec10(_0x510d74,{'className':_0x54b9da(0x267),'min':0x1,'max':0x14,'value':_0x2e686e[_0x54b9da(0x121)]??0x1,'onChange':_0x38b978=>{const _0x2d69b9=_0x54b9da;let _0x135e91=Number(_0x38b978);Number[_0x2d69b9(0x393)](_0x135e91)&&_0x135e91>=0x1&&_0x387b05({'pageWrap':_0x135e91});}})]}),_0x53776f(_0x54b9da(0x31b),{'className':_0x54b9da(0x1b4),'children':[_0x4e46f7['t'](_0x54b9da(0x36b)),_0x46ec10(_0x5ba88c,{'className':_0x54b9da(0x343),'value':String(_0x2e686e[_0x54b9da(0x1c5)]??!0x1),'options':[{'value':_0x54b9da(0x2a0),'label':_0x4e46f7['t'](_0x54b9da(0x19a))},{'value':'true','label':_0x4e46f7['t'](_0x54b9da(0x17b))}],'onChange':_0x31e344=>_0x387b05({'pageOverThenDown':_0x31e344===_0x54b9da(0x2dd)})})]})]});}function mo(_0x45a9e8,_0x4f8b0a,_0x3aa093,_0x189c59){const _0xc39f5d=_0x425045;let _0x5e9788=_0x45a9e8[_0xc39f5d(0x253)](_0x4f8b0a)[_0xc39f5d(0x11d)](_0x539ef8=>_0x45a9e8[_0xc39f5d(0x260)](_0x539ef8[_0xc39f5d(0x3e4)]())[_0xc39f5d(0x339)]!==_0x5b40f7[_0xc39f5d(0x402)]);if(_0x3aa093!==_0x5b40f7['Value']&&_0x5e9788){_0x45a9e8[_0xc39f5d(0x3e6)](_0x5e9788[_0xc39f5d(0x3e4)](),_0x3aa093,_0x189c59);return;}_0x45a9e8[_0xc39f5d(0x216)](_0x4f8b0a,_0x3aa093,_0x189c59);}function ho(_0x3a0de7,_0x3093a9,_0x2f98c7,_0x4d391f){const _0x354f5b=_0x425045;return _0x3093a9===_0x5377f1[_0x354f5b(0x34e)]?_0x4d391f:_0x3093a9===_0x5377f1['date']&&_0x2f98c7?_0x390aef[_0x354f5b(0x319)](_0x2f98c7,Number(_0x3a0de7)):_0x3a0de7;}function go(_0x395178){const _0x3064a3=_0x425045;return _0x395178[_0x3064a3(0x3e8)]===_0x2ed75f['Number']||_0x395178[_0x3064a3(0x3e8)]===_0x2ed75f['Currency']||_0x395178[_0x3064a3(0x3e8)]===_0x2ed75f['Progress']||_0x395178[_0x3064a3(0x3e8)]===_0x2ed75f[_0x3064a3(0x318)];}function _o(_0x2422e9){const _0x53c899=_0x425045;switch(_0x2422e9){case _0x5b40f7[_0x53c899(0x10e)]:return _0x53c899(0x32a);case _0x5b40f7[_0x53c899(0x17f)]:return _0x53c899(0x1a0);case _0x5b40f7[_0x53c899(0x402)]:return _0x53c899(0x17d);default:return _0x53c899(0x161);}}function vo({config:_0x5a791b,onChange:_0x5afc27,runtime:_0x611ebb,table:_0x352405}){const _0x18cda3=_0x425045;let _0x46b6ba=_0x4acd92(_0x4a0c45),[_0x11addd,_0x5eb9ea]=_0xf9778b(_0x18cda3(0x3e7));return _0x53776f(_0x18cda3(0x2e8),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-96\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x46ec10(_0x63d182,{'ariaLabel':_0x46b6ba['t']('bases-dashboard-ui.pivot.name'),'className':_0x18cda3(0x41a),'items':[{'label':_0x46b6ba['t'](_0x18cda3(0x269)),'panelId':_0x18cda3(0x32d),'value':_0x18cda3(0x3e7)},{'label':_0x46b6ba['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'panelId':_0x18cda3(0x2ed),'value':'pivot'}],'value':_0x11addd,'variant':'segmented','onChange':_0x5eb9ea}),_0x46ec10(_0x18cda3(0x1e1),{'className':_0x18cda3(0x1cc),'children':_0x11addd===_0x18cda3(0x3e7)?_0x611ebb&&_0x46ec10(fa,{'config':_0x5a791b,'runtime':_0x611ebb,'tableName':_0x352405[_0x18cda3(0x10b)],'onChange':_0x5afc27}):_0x46ec10(ao,{'config':_0x5a791b,'table':_0x352405,'onChange':_0x5afc27})})]});}function yo({tableId:_0x15a406,unitId:_0x3ba07f,viewId:_0x16573e}){const _0x27d9b8=_0x425045;let _0x3b1bed=_0x4acd92(_0x5e43a5),_0x565ad1=_0x4acd92(_0x4ce5e0),_0x3d9509=_0x4acd92(_0x5e31f1),_0x3b6698=_0x4acd92(_0x4a0c45),_0x5683b5=_0x4acd92(_0x2952ef),[_0x5cd26c,_0xdea356]=_0xf9778b(null),[_0x2d59ed,_0x5d3db8]=_0xf9778b(null),_0x20cda7=_0x26f122(_0x27d9b8(0x32f)+_0x184bc2(0x8)),[_0x1ab7da,_0x1aaf85]=_0xf9778b(!0x1),_0x2ec861=_0x565ad1[_0x27d9b8(0x102)](_0x3ba07f,_0x4b82c2['UNIVER_BASE']),_0x18b5c6=_0x2ec861==null?void 0x0:_0x2ec861['getSnapshot']()['tables'][_0x15a406],_0x3ca01d=_0x18b5c6==null?void 0x0:_0x18b5c6['views'][_0x16573e],_0x293b33=bo(_0x3ca01d),_0x5397cf=_r(_0x3ba07f,_0x15a406,_0x16573e);if(_0x1e9cac(()=>{const _0x355ecd=_0x27d9b8;if(!_0x293b33)return;let _0x2438e0=_0x20cda7[_0x355ecd(0x311)];return _0x5683b5[_0x355ecd(0x148)](_0x2438e0,{'unitId':_0x3ba07f,'tableId':_0x15a406,'viewId':_0x16573e,'filters':[]}),()=>{const _0x2c697d=_0x355ecd;_0x5683b5[_0x2c697d(0x33f)](_0x3ba07f,_0x2438e0);};},[_0x293b33,_0x5683b5,_0x15a406,_0x3ba07f,_0x16573e]),_0x1e9cac(()=>{const _0x17d735=_0x27d9b8;if(!bo(_0x3ca01d))return;let _0x28d525=!0x0,_0x1ee59b={'unitId':_0x3ba07f,'tableId':_0x15a406,'viewId':_0x16573e,'filters':[_0x3ca01d[_0x17d735(0x1d6)]??null]};return _0x5683b5[_0x17d735(0x42c)](_0x3ba07f,_0x20cda7[_0x17d735(0x311)],_0x1ee59b)[_0x17d735(0x12a)](_0x31b1a3=>{const _0x48a42d=_0x17d735;_0x28d525&&_0x31b1a3&&(_0xdea356(_0x31b1a3),_0x5d3db8(_0x5683b5[_0x48a42d(0x3cd)](_0x3ba07f,_0x20cda7['current'])??null),_0x1aaf85(!0x1));})['catch'](_0x55bb3c=>{const _0x4cba4e=_0x17d735;_0x3d9509[_0x4cba4e(0x331)](_0x4cba4e(0x348),_0x55bb3c),_0x28d525&&(_0xdea356(null),_0x1aaf85(!0x0));}),()=>{_0x28d525=!0x1;};},[_0x3d9509,_0x5683b5,_0x15a406,_0x3ba07f,_0x3ca01d,_0x16573e]),!_0x18b5c6||!bo(_0x3ca01d))return null;let _0x4761d3=_0x5683b5[_0x27d9b8(0x3cd)](_0x3ba07f,_0x20cda7[_0x27d9b8(0x311)])===_0x2d59ed?_0x2d59ed:null,_0x194732=_0x5cd26c?_0x53776f('div',{'className':_0x27d9b8(0x324),'style':{'gridTemplateRows':_0x3ca01d[_0x27d9b8(0x244)][_0x27d9b8(0x326)]===_0x27d9b8(0x143)?_0x27d9b8(0x25c):'minmax(0,\x201fr)'},'children':[_0x3ca01d[_0x27d9b8(0x244)][_0x27d9b8(0x326)]!==_0x27d9b8(0x1d7)&&_0x4761d3&&_0x46ec10('div',{'className':_0x27d9b8(0x1ea),'children':_0x46ec10(Ir,{'isRowDirection':_0x3861f0(_0x3ca01d[_0x27d9b8(0x244)][_0x27d9b8(0x3e7)][_0x27d9b8(0x26b)]),'runtime':_0x4761d3})}),_0x3ca01d[_0x27d9b8(0x244)][_0x27d9b8(0x326)]!==_0x27d9b8(0x3e7)&&_0x46ec10(_0x27d9b8(0x1e1),{'className':_0x27d9b8(0x138),'children':_0x46ec10(ki,{'pivot':_0x3ca01d[_0x27d9b8(0x244)]['pivot'],'view':_0x5cd26c[_0x27d9b8(0x1a6)]})})]}):_0x46ec10(_0x27d9b8(0x1e1),{'className':_0x27d9b8(0x199),'children':_0x1ab7da?_0x3b6698['t'](_0x27d9b8(0x164)):_0x3b6698['t']('bases-dashboard-ui.pivot.calculating')});return _0x53776f(_0x27d9b8(0x1e1),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','children':[_0x46ec10(_0x27d9b8(0x1e1),{'className':_0x27d9b8(0x212),'children':_0x194732}),_0x5397cf&&_0x46ec10(vo,{'config':_0x3ca01d['config'],'runtime':_0x4761d3,'table':_0x18b5c6,'onChange':_0x58d1e2=>{const _0x9e7075=_0x27d9b8;_0x3b1bed[_0x9e7075(0x1c7)](_0x13d320['id'],{'unitId':_0x3ba07f,'tableId':_0x15a406,'viewId':_0x16573e,'patch':_0x58d1e2})['catch'](_0x727fd6=>_0x3d9509['error'](_0x9e7075(0x427),_0x727fd6));}})]});}function bo(_0x3d8031){const _0xff962b=_0x425045;return(_0x3d8031==null?void 0x0:_0x3d8031['type'])===_0x5e9757[_0xff962b(0x390)]&&typeof _0x3d8031[_0xff962b(0x244)]==_0xff962b(0x1aa)&&_0x3d8031['config']!==null&&_0xff962b(0x27b)in _0x3d8031[_0xff962b(0x244)]&&_0xff962b(0x3e7)in _0x3d8031[_0xff962b(0x244)]&&_0xff962b(0x326)in _0x3d8031[_0xff962b(0x244)];}let xo=class extends _0x2949ec{constructor(_0x558154,_0x3a13e9,_0x3a0f0c,_0x72f60d,_0x44240f,_0x18f8b7){const _0x3d5dbf=_0x425045;super(),this['disposeWithMe'](_0x3a13e9[_0x3d5dbf(0x41d)]({'type':_0x5e9757['Pivot'],'renderMode':_0x3d5dbf(0x1cd),'icon':_0x24c955,'component':yo,'menu':{get 'label'(){const _0x46142b=_0x3d5dbf;return _0x18f8b7['t'](_0x46142b(0x207));},get 'description'(){return _0x18f8b7['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){const _0x1e95ca=_0x3d5dbf;return _0x18f8b7['t'](_0x1e95ca(0x33a));}}})),this[_0x3d5dbf(0x134)](_0x558154[_0x3d5dbf(0x41d)](So(_0x3a0f0c,_0x72f60d,_0x44240f,_0x18f8b7)));}};xo=Or([Y(0x0,_0x55d23f),Y(0x1,_0x1bae39),Y(0x2,_0x4d55af(_0x4001b9)),Y(0x3,_0x5e43a5),Y(0x4,_0x1e4187),Y(0x5,_0x4d55af(_0x4a0c45))],xo);function So(_0x3cf675,_0x284511,_0x154f5e,_0x38f0fd){const _0xac4d=_0x425045;return{'change$':_0x56c959(_0x3cf675[_0xac4d(0x33d)],_0x154f5e[_0xac4d(0x3c7)]),'component':Ja,get 'labels'(){const _0x52b0a8=_0xac4d;return{'add':_0x38f0fd['t']('bases-dashboard-ui.dashboard.add'),'configure':_0x2a27e0=>_0x38f0fd['t']('bases-dashboard-ui.dashboard.configure',_0x2a27e0),'delete':_0x38f0fd['t'](_0x52b0a8(0x1e9)),'new':_0x38f0fd['t']('bases-dashboard-ui.dashboard.new'),'rename':_0x38f0fd['t'](_0x52b0a8(0x3d4)),'search':_0x38f0fd['t'](_0x52b0a8(0x12c)),'section':_0x38f0fd['t'](_0x52b0a8(0x1ee))};},'getItems':_0x4e5e04=>{const _0x2487b6=_0xac4d;let _0x328341=_0x3cf675[_0x2487b6(0x392)](_0x4e5e04);return _0x328341['dashboardOrder'][_0x2487b6(0x222)](_0x323338=>{const _0x3e9bf0=_0x2487b6;let _0x5113da=_0x328341[_0x3e9bf0(0x2d9)][_0x323338];return _0x5113da?[{'id':_0x5113da['id'],'name':_0x5113da['name'],'readonly':!_0x42cb7a(_0x154f5e,_0x4e5e04,_0x5113da['id'])}]:[];});},'create':async _0x300fa7=>{const _0x2194ad=_0xac4d;let _0x34b25b=_0x3cf675[_0x2194ad(0x392)](_0x300fa7),_0x2b4661=_0x2194ad(0x3c5)+_0x184bc2(0x8),_0x4dcadb=Co(_0x34b25b[_0x2194ad(0x322)]['flatMap'](_0x32269d=>{const _0x554c56=_0x2194ad;let _0x42905b=_0x34b25b[_0x554c56(0x2d9)][_0x32269d];return _0x42905b?[_0x42905b['name']]:[];}),_0x4d3e39=>_0x38f0fd['t'](_0x2194ad(0xf2),String(_0x4d3e39)));return await _0x284511[_0x2194ad(0x1c7)](_0x1506b5['id'],{'unitId':_0x300fa7,'dashboard':{'id':_0x2b4661,'name':_0x4dcadb,'widgetOrder':[],'widgets':{}}})?_0x2b4661:null;},'rename':async(_0x3b6735,_0x2c23f0,_0x1c53a0)=>{const _0x2ced3d=_0xac4d;let _0x1ffab7=_0x3cf675[_0x2ced3d(0x11f)](_0x3b6735,_0x2c23f0);return!!(_0x1ffab7&&await _0x284511['executeCommand'](_0x3f980a['id'],{'unitId':_0x3b6735,'dashboard':{..._0x1ffab7,'name':_0x1c53a0}}));},'remove':(_0xad48ce,_0x154a8c)=>_0x284511[_0xac4d(0x1c7)](_0x283801['id'],{'unitId':_0xad48ce,'dashboardId':_0x154a8c})};}function Co(_0x2af48e,_0x2212e6){const _0x56d0f8=_0x425045;let _0x3e3d3e=new Set(_0x2af48e),_0x4edd1f=_0x3e3d3e[_0x56d0f8(0x41b)]+0x1,_0xc0a55e=_0x2212e6(_0x4edd1f);for(;_0x3e3d3e[_0x56d0f8(0x228)](_0xc0a55e);)_0x4edd1f+=0x1,_0xc0a55e=_0x2212e6(_0x4edd1f);return _0xc0a55e;}let wo=class extends _0xea9f56{constructor(_0x1f4543=hr,_0x4602cb,_0x4181c5){const _0x4e694c=_0x425045;super(),this[_0x4e694c(0x126)]=_0x1f4543,this[_0x4e694c(0x24e)]=_0x4602cb,this[_0x4e694c(0x2ef)]=_0x4181c5;let {..._0x2f9327}=_0x12890c({},hr,this['_config']);this[_0x4e694c(0x2ef)]['setConfig'](mr,_0x2f9327);}['onStarting'](){const _0x303957=_0x425045;this[_0x303957(0x24e)][_0x303957(0x2af)]([kr]),this['_injector'][_0x303957(0x2af)]([Gr]),this[_0x303957(0x24e)][_0x303957(0x2af)]([xo]);}[_0x425045(0x214)](){const _0x13ccc4=_0x425045;_0x416655(this[_0x13ccc4(0x24e)],[[kr],[Gr],[xo]]);}};Pr(wo,_0x425045(0x3e8),_0x4b82c2[_0x425045(0x264)]),Pr(wo,'pluginName',_0x425045(0x29f)),Pr(wo,_0x425045(0x3fa),fr),Pr(wo,_0x425045(0x2a4),pr),wo=Or([_0xda4ae8(_0x11a984,_0x263bdb,_0x56503f,_0x2dae40,_0x505bf2,_0x54e3a0),Y(0x1,_0x4d55af(_0x1c73d0)),Y(0x2,_0x526c93)],wo);export{na as UniverBaseDashboardMobileUIPlugin,wo as UniverBaseDashboardUIPlugin};