@univerjs-pro/bases-dashboard-ui 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/cs-CZ.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/nl-NL.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/th-TH.js +1 -1
- package/lib/cjs/locale/tr-TR.js +1 -1
- package/lib/cjs/locale/uk-UA.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/cs-CZ.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/nl-NL.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/th-TH.js +1 -1
- package/lib/es/locale/tr-TR.js +1 -1
- package/lib/es/locale/uk-UA.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/cs-CZ.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/nl-NL.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/th-TH.js +1 -1
- package/lib/locale/tr-TR.js +1 -1
- package/lib/locale/uk-UA.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/cs-CZ.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/nl-NL.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/th-TH.js +1 -1
- package/lib/umd/locale/tr-TR.js +1 -1
- package/lib/umd/locale/uk-UA.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +18 -18
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xbfff20=_0x5dbe;(function(_0x5b1820,_0x5afdf2){const _0x3a449a=_0x5dbe,_0x37a565=_0x5b1820();while(!![]){try{const _0x299548=parseInt(_0x3a449a(0x229))/0x1+-parseInt(_0x3a449a(0x32a))/0x2+-parseInt(_0x3a449a(0x1c6))/0x3*(parseInt(_0x3a449a(0x1dc))/0x4)+-parseInt(_0x3a449a(0x2b2))/0x5+parseInt(_0x3a449a(0x230))/0x6+parseInt(_0x3a449a(0x39c))/0x7*(parseInt(_0x3a449a(0x2f0))/0x8)+parseInt(_0x3a449a(0x1f9))/0x9*(-parseInt(_0x3a449a(0x3ce))/0xa);if(_0x299548===_0x5afdf2)break;else _0x37a565['push'](_0x37a565['shift']());}catch(_0x529867){_0x37a565['push'](_0x37a565['shift']());}}}(_0x1cf0,0x2a8c7));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x3e9cab,BASES_DASHBOARD_GRID_COLUMNS as _0x5c9bf8,BaseChartRuntimeService as _0x441727,BaseDashboardResourceService as _0x309002,BaseDashboardWidgetType as _0x1402ed,CreateBaseDashboardCommand as _0x28a4bb,DeleteBaseDashboardCommand as _0x22a544,RemoveBaseDashboardWidgetCommand as _0x55f0a4,UniverBaseDashboardPlugin as _0xbeeff3,UpdateBaseDashboardCommand as _0x39c855,UpdateBasePivotViewCommand as _0x50437b,UpsertBaseDashboardWidgetCommand as _0x1c8540,canEditBaseDashboard as _0x120634,canEditBasePivotView as _0x19dd77,createBasePivotTable as _0x560cf4,resolveBasePivotChartRowDirection as _0x3b57e8}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x24a280,BaseMobileDrawer as _0xbfe7,BaseMobileFilterOperand as _0x2a8e30,BaseMobileFilterPanel as _0x40f4ca,BaseUnitCollaborationStatus as _0x36e7c3,FormulaEditorPanel as _0x375bf1,IBaseDashboardUIExtensionRegistryService as _0x2a9f9e,IBaseViewUIRegistryService as _0x1611be,MobileFormulaEditorPanel as _0x5e5ef4,UniverBasesMobileUIPlugin as _0x31752d,UniverBasesUIPlugin as _0xfebde9,formulaToEditorFormula as _0x200012,normalizeEditorFormulaForConfig as _0x359363,toFormulaMenuTables as _0xacf6bd,toMenuFields as _0x173f22}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x1fbca7,ChartAxisSection as _0x54bdb3,ChartColorField as _0x4931cb,ChartCommonDataMappingSection as _0x521472,ChartEditBlockTitle as _0x4ed5df,ChartEditPanel as _0x420eaf,ChartEditPanelSection as _0x275cd6,ChartEditPanelTab as _0x39d056,ChartEditPanelTabs as _0x242d81,ChartEditorCapability as _0x235cca,ChartEditorProvider as _0x413b19,ChartFunnelStyleSection as _0x5c3a2a,ChartGradientFillField as _0x18f4fe,ChartGridlinesAndTicksSection as _0xd55416,ChartHeatmapStyleSection as _0x1a9d64,ChartHostAdapter as _0x439e96,ChartIndicatorLineSection as _0x4e8f14,ChartLegendSection as _0x40abfd,ChartLineAndAreaSection as _0x67621e,ChartNumberFormatAtom as _0x1fdd9c,ChartParetoSeriesSection as _0xc41187,ChartPieStyleSection as _0x411c97,ChartRadarStyleSection as _0x3cdb06,ChartRelationStyleSection as _0x43b09c,ChartSectionAccordion as _0x169833,ChartSectionAccordionContent as _0x50efea,ChartSectionAccordionItem as _0x476c3e,ChartSectionAccordionTrigger as _0x3ee43e,ChartSeriesSection as _0x3fdf0f,ChartStackField as _0x14bbde,ChartStyleSection as _0x392a75,ChartThemeField as _0x2a621a,ChartThreeDSection as _0x461f63,ChartTitlesSection as _0x3a97b5,ChartTrendlineSection as _0x2d84a4,ChartTypeField as _0x44e1cd,ChartTypeSpecificDataSection as _0x27502d,ChartTypeSpecificSetupSection as _0xd07337,ChartTypeSpecificStyleSection as _0x359635,ChartUIService as _0x22cc04,ChartViewStateRegistry as _0x41a29f,ChartWaterfallSetupFields as _0x1e15dd,ChartWaterfallStyleSection as _0x321527,ChartWordCloudStyleSection as _0x34e06c,DEFAULT_CHART_AXIS_VALUES as _0x3c4ba3,DEFAULT_CHART_FUNNEL_VALUES as _0x2c5e3a,DEFAULT_CHART_HEATMAP_VALUES as _0x4f57a1,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x57cad4,DEFAULT_CHART_LEGEND_VALUES as _0x43f27b,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x1a8b1f,DEFAULT_CHART_PARETO_VALUES as _0x1aa1b1,DEFAULT_CHART_PIE_VALUES as _0x258d6f,DEFAULT_CHART_RADAR_VALUES as _0x2ec41b,DEFAULT_CHART_RELATION_VALUES as _0x4805f6,DEFAULT_CHART_SERIES_VALUES as _0x13b217,DEFAULT_CHART_STYLE_VALUES as _0x13d7eb,DEFAULT_CHART_TITLE_VALUES as _0x4abb4a,DEFAULT_CHART_TRENDLINE_VALUES as _0x72a22e,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x2cc178,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x436808,DEFAULT_CHART_WORD_CLOUD_VALUES as _0xfd1cc7,MobileChartEditorControls as _0x16eea4,MobileChartEditorProvider as _0x5cda0c,UniverChartMobileUIPlugin as _0x48f981,UniverChartUIPlugin as _0x136391,buildChartTypeSelectOptions as _0x5b5e1c,chartTypeSupportsCapability as _0x4c4c0b,chartTypeSupportsLineAndAreaStyle as _0x2324f4,useChartEditorChartType as _0x486f74,useChartEditorHasRightAxis as _0x3d2664}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x36c2e0}from'@univerjs-pro/license';import{ShapeFormulaService as _0x5cf3f4,UniverShapeEditorPlugin as _0x3371b7,createFormulaShapeData as _0x18c256}from'@univerjs-pro/shape-editor';function _0x5dbe(_0x1bc8d8,_0x17cf69){_0x1bc8d8=_0x1bc8d8-0x158;const _0x1cf071=_0x1cf0();let _0x5dbe10=_0x1cf071[_0x1bc8d8];return _0x5dbe10;}import{BaseFieldType as _0x4fcd7c,BaseFilterConjunction as _0x4854b1,BaseFilterOperator as _0x30a5c8,BaseViewType as _0x54a718,DependentOn as _0x1957bf,Disposable as _0x2eec42,ICommandService as _0x2220df,IConfigService as _0x6de229,IImageIoService as _0x4fbe75,ILogService as _0x49fceb,IPermissionService as _0x4deb76,IUndoRedoService as _0x1daf4e,IUniverInstanceService as _0x14186a,ImageSourceType as _0x18951a,Inject as _0x38b292,Injector as _0x38337e,LocaleService as _0x2989fb,ObjectPermissionService as _0x4b64cf,Plugin as _0x14271e,RedoCommand as _0x413296,ThemeService as _0x3fdc71,UndoCommand as _0x38c4d5,UniverInstanceType as _0x37ea54,createParagraphId as _0x467708,dateKit as _0x1be5ea,generateRandomId as _0xd28735,merge as _0x2004cb,numfmt as _0x4bc3f5,touchDependencies as _0x5b9752}from'@univerjs/core';import{UniverDocsUIPlugin as _0xc91b76}from'@univerjs/docs-ui';import{ArrowDownIcon as _0x55a2db,ArrowUpIcon as _0x54c046,AscendingIcon as _0x5de895,CalendarIcon as _0x23c2ab,ChartIcon as _0x396df3,CloseIcon as _0x33d94a,DeleteIcon as _0x48daea,DescendingIcon as _0xcbb196,ExpandIcon as _0x275a4b,FilterIcon as _0xad9ba4,GripVerticalIcon as _0x4f0f93,IncreaseIcon as _0x34be53,MoreDownIcon as _0xacb52a,MoreHorizontalIcon as _0x122b7c,NumberIcon as _0x45f616,PenIcon as _0xddf888,PivotTableIcon as _0x25ef71,ProtectIcon as _0x2ff091,RedoIcon as _0x421b18,SearchIcon as _0x302bc4,TextIcon as _0x383758,UndoIcon as _0x5d8a74}from'@univerjs/icons';import{combineLatest as _0x2dd9ec,map as _0x3fca8e,merge as _0x440773,skip as _0x12e509}from'rxjs';import{SetBasePermissionCommand as _0x501d41,getBaseDashboardPermissionObjectId as _0x3f3aa0}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x3107a8}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x2ed70e,ShapeLineTypeEnum as _0x48222a,ShapeTypeEnum as _0xed2d79}from'@univerjs-pro/engine-shape';import{Button as _0x6d25a2,Checkbox as _0x1eb8df,DatePicker as _0x406bb7,Dialog as _0x178b21,DropdownMenu as _0x440082,Input as _0x1b54d7,InputNumber as _0x5a3ae3,MobileDialog as _0x2c4746,MobileDropdownMenu as _0x15dcec,MobileSelect as _0x3cb16e,MultipleSelect as _0x5cd170,Segmented as _0x4fe720,Select as _0x219a49,Textarea as _0x435e56,Tooltip as _0x501781,borderClassName as _0x14cf31,clsx as _0x14b647,scrollbarClassName as _0x439165}from'@univerjs/design';import{UnitObject as _0x26ad9b}from'@univerjs/protocol';import{ILayoutService as _0x3927ed,ObjectPermissionButton as _0xad9b28,openObjectPermissionDialog as _0x7236fe,useDependency as _0x29f087,useObservable as _0x39908a}from'@univerjs/ui';import{useCallback as _0xdcfb42,useEffect as _0x436796,useMemo as _0x548c0f,useRef as _0x2861da,useState as _0x34e679}from'react';import{Fragment as _0x52e8d3,jsx as _0x1c53e9,jsxs as _0x1108cb}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x5135e6,ChartRenderMode as _0x2fe426,ChartThemeService as _0x384907,ChartTypeBits as _0x217c21,ChartWaterfallStyleTarget as _0x17b66a,IChartRenderModelManagerService as _0x4a688d,RTLChartStyle as _0x40bf0b,chartBitsUtils as _0x1094d9,chartTypeCanUseTrendLine as _0x23f1e4,resolveChartRuntimeStyle as _0x21eccd,resolveDefaultChartHostFrameStyle as _0x1fcd93,toChartModelUpdate as _0x3aa652}from'@univerjs-pro/engine-chart';import{createPortal as _0x3ae99d}from'react-dom';import{PivotCellStyleTypeEnum as _0x4b5125,PivotDataFieldDataTypeEnum as _0x48a00c,PivotDataFieldSortOperatorEnum as _0xaa402b,PivotFilterTypeEnum as _0x5a1647,PivotLayoutTypeEnum as _0x66aa38,PivotSubtotalPositionEnum as _0x571e80,PivotSubtotalTypeEnum as _0x4ad10e,PivotTableFiledAreaEnum as _0x1126e4,PivotTableValuePositionEnum as _0xe5d4e5,isErrorValue as _0xfe435,isPrefixValue as _0x1a85fe}from'@univerjs-pro/engine-pivot';var pr=_0xbfff20(0x188),mr=_0xbfff20(0x43e);const hr='bases-dashboard-ui.config',gr={};function _r(_0x3c8b96,_0x55526d){const _0x3134c3=_0xbfff20;let _0x38c2f5=_0x29f087(_0x4deb76),_0x7e2a98=_0x120634(_0x38c2f5,_0x3c8b96,_0x55526d);return _0x39908a(()=>_0x38c2f5[_0x3134c3(0x179)][_0x3134c3(0x472)](_0x3fca8e(()=>_0x120634(_0x38c2f5,_0x3c8b96,_0x55526d))),_0x7e2a98,!0x1,[_0x55526d,_0x38c2f5,_0x3c8b96]);}function vr(_0x2303df,_0x397cf2,_0xe65f33){const _0x3ed6d6=_0xbfff20;let _0x5c06e9=_0x29f087(_0x4deb76),_0x36d55b=_0x19dd77(_0x5c06e9,_0x2303df,_0x397cf2,_0xe65f33);return _0x39908a(()=>_0x5c06e9['permissionPointUpdate$'][_0x3ed6d6(0x472)](_0x3fca8e(()=>_0x19dd77(_0x5c06e9,_0x2303df,_0x397cf2,_0xe65f33))),_0x36d55b,!0x1,[_0x5c06e9,_0x397cf2,_0x2303df,_0xe65f33]);}function yr(_0x3cca68,_0x5d72fb=_0xbfff20(0x2b8)){const _0x71e6ed=_0xbfff20;return{'backgroundImage':_0x71e6ed(0x20f)+JSON[_0x71e6ed(0x3e1)](_0x3cca68)+')','backgroundPosition':_0x5d72fb===_0x71e6ed(0x33c)?_0x71e6ed(0x1a9):_0x71e6ed(0x34f),'backgroundRepeat':_0x5d72fb==='repeat'?_0x71e6ed(0x33c):'no-repeat','backgroundSize':_0x5d72fb===_0x71e6ed(0x2b8)?_0x71e6ed(0x2b8):_0x71e6ed(0x2fd)};}const br={'alignment':_0xbfff20(0x297),'currency':'USD','decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':'auto','numberFormat':_0xbfff20(0x3b8)},xr={'CNY':'¥','EUR':'€','USD':'$'};function Sr(_0x565867){const _0x350c7d=_0xbfff20;var _0x4d4280;let _0x3f8985=Er(((_0x4d4280=_0x565867[_0x350c7d(0x18a)][_0x350c7d(0x226)])==null||(_0x4d4280=_0x4d4280['numberFormat'])==null?void 0x0:_0x4d4280[_0x350c7d(0x18b)])??'');return{...br,..._0x3f8985,..._0x565867[_0x350c7d(0x31e)]};}function Cr(_0x1f7427,_0x1e9c5f){const _0x5ed13b=_0xbfff20;let _0xec262e={..._0x1f7427[_0x5ed13b(0x31e)],..._0x1e9c5f},_0x324536=Sr({..._0x1f7427,'appearance':_0xec262e}),_0x52b8d8=_0x1f7427[_0x5ed13b(0x18a)]['formulaBinding']??{'formula':''};return{..._0x1f7427,'appearance':_0xec262e,'shapeData':{..._0x1f7427[_0x5ed13b(0x18a)],'formulaBinding':{..._0x52b8d8,'numberFormat':{'pattern':wr(_0x324536[_0x5ed13b(0x4a5)],_0x324536[_0x5ed13b(0x372)],_0x324536[_0x5ed13b(0x33e)])}}}};}function wr(_0x121837,_0x1bb12d,_0x24d2ab){const _0x586ed1=_0xbfff20;let _0x46ce6e=Math[_0x586ed1(0x43f)](0x0,Math['min'](0x8,Math['round'](_0x1bb12d))),_0xc4bb10=_0x46ce6e?'.'+'0'['repeat'](_0x46ce6e):'';switch(_0x121837){case _0x586ed1(0x2f5):return'0'+_0xc4bb10;case _0x586ed1(0x28d):return'0'+_0xc4bb10+'%';case _0x586ed1(0x33e):return(xr[_0x24d2ab]??_0x24d2ab)+_0x586ed1(0x1a4)+_0xc4bb10;case _0x586ed1(0x2ce):return _0x586ed1(0x1a4)+_0xc4bb10;case _0x586ed1(0x3eb):case _0x586ed1(0x3b8):return _0x586ed1(0x44a);}}function Tr(_0x576e08,_0x3b937e,_0x45c2b9){const _0x2de0b4=_0xbfff20;return _0x45c2b9[_0x2de0b4(0x4a5)]!==_0x2de0b4(0x3eb)||typeof _0x3b937e!=_0x2de0b4(0x2f5)||!Number['isFinite'](_0x3b937e)?_0x576e08:new Intl[(_0x2de0b4(0x2dc))](void 0x0,{'notation':_0x2de0b4(0x3eb),'minimumFractionDigits':_0x45c2b9[_0x2de0b4(0x372)]??0x0,'maximumFractionDigits':_0x45c2b9[_0x2de0b4(0x372)]??0x0})[_0x2de0b4(0x1ea)](_0x3b937e);}function Er(_0x20a969){const _0x357c0a=_0xbfff20;var _0x478141,_0x36bcee;if(!_0x20a969||_0x20a969===_0x357c0a(0x44a))return{};let _0x2e09a7=_0x20a969[_0x357c0a(0x2cd)](/\.([0#]+)/),_0x360f69=(_0x2e09a7==null||(_0x478141=_0x2e09a7[0x1])==null?void 0x0:_0x478141[_0x357c0a(0x2df)])??0x0;if(_0x20a969[_0x357c0a(0x3d0)]('%'))return{'decimalPlaces':_0x360f69,'numberFormat':_0x357c0a(0x28d)};let _0x45c538=(_0x36bcee=Object[_0x357c0a(0x1c1)](xr)[_0x357c0a(0x1ac)](([,_0x1f0dc2])=>_0x20a969[_0x357c0a(0x3d0)](_0x1f0dc2)))==null?void 0x0:_0x36bcee[0x0];return _0x45c538?{'currency':_0x45c538,'decimalPlaces':_0x360f69,'numberFormat':'currency'}:{'decimalPlaces':_0x360f69,'numberFormat':_0x20a969[_0x357c0a(0x3d0)](',')?_0x357c0a(0x2ce):_0x357c0a(0x2f5)};}const Dr={'center':_0xbfff20(0x34f),'left':_0xbfff20(0x407),'right':_0xbfff20(0x489)};function Or({dashboardId:_0x4f5ef8,unitId:_0x1f23c0,widget:_0x5ee796}){const _0x3c86f5=_0xbfff20;var _0x217dd3,_0x1f29e3,_0x1aeb9f,_0x37bc4f,_0x48ba1a,_0x228684,_0x4cdeb4,_0x6d7cbe,_0x1f2da7;let _0x5cc3ee=_0x29f087(_0x5cf3f4),_0x3dc9bd=_0x29f087(_0x4fbe75),_0x59e4eb=_0x29f087(_0x2989fb),_0x20043b=_0x548c0f(()=>({'hostType':_0x37ea54[_0x3c86f5(0x2e2)],'unitId':_0x1f23c0,'subUnitId':_0x4f5ef8,'shapeId':_0x5ee796['id']}),[_0x4f5ef8,_0x1f23c0,_0x5ee796['id']]),[_0x39bc01,_0x4998fb]=_0x34e679(()=>_0x5cc3ee[_0x3c86f5(0x1ae)](_0x20043b)),[_0x1af4cc,_0x2ae5be]=_0x34e679(()=>{const _0x408f7a=_0x3c86f5;var _0x497a7d;return(_0x497a7d=_0x5cc3ee[_0x408f7a(0x29b)](_0x20043b))==null?void 0x0:_0x497a7d[_0x408f7a(0x1b5)];}),[_0x3ba593,_0x19a062]=_0x34e679(),_0x5cabfb=_0x2861da(null),_0x5e6ee6=_0x2861da(null),_0x547f25=Sr(_0x5ee796);_0x436796(()=>{const _0x35b112=_0x3c86f5;let _0x4dbfbe=_0x5cc3ee['presentationChanged$'][_0x35b112(0x2d5)](_0x25d5d0=>{const _0x1f6740=_0x35b112;_0x25d5d0[_0x1f6740(0x289)]===_0x1f23c0&&_0x25d5d0[_0x1f6740(0x424)]===_0x4f5ef8&&_0x25d5d0['shapeId']===_0x5ee796['id']&&(_0x4998fb(_0x25d5d0['presentation']),_0x2ae5be(_0x25d5d0[_0x1f6740(0x324)][_0x1f6740(0x1b5)]));});return()=>_0x4dbfbe['unsubscribe']();},[_0x4f5ef8,_0x5cc3ee,_0x20043b,_0x1f23c0,_0x5ee796['id']]),_0x436796(()=>{const _0x52212e=_0x3c86f5;let _0x2ff2de=_0x547f25['backgroundImage'];if(!_0x2ff2de||_0x2ff2de[_0x52212e(0x18c)]!==_0x18951a[_0x52212e(0x202)])return;let _0x8a0296=_0x3dc9bd[_0x52212e(0x1fa)](_0x2ff2de[_0x52212e(0x2ad)],_0x2ff2de['sourceType']);if(_0x8a0296!=null&&_0x8a0296[_0x52212e(0x175)])return;let _0x582464=!0x0;return _0x3dc9bd[_0x52212e(0x3a4)](_0x2ff2de['source'])['then'](_0x4260a6=>{_0x582464&&_0x19a062({'source':_0x2ff2de['source'],'value':_0x4260a6});})['catch'](()=>void 0x0),()=>{_0x582464=!0x1;};},[_0x547f25[_0x3c86f5(0x345)],_0x3dc9bd]);let _0x2ede9c=((_0x217dd3=_0x547f25[_0x3c86f5(0x345)])==null?void 0x0:_0x217dd3[_0x3c86f5(0x18c)])===_0x18951a[_0x3c86f5(0x202)]?((_0x1f29e3=_0x3dc9bd['getImageSourceCache'](_0x547f25[_0x3c86f5(0x345)][_0x3c86f5(0x2ad)],_0x547f25[_0x3c86f5(0x345)][_0x3c86f5(0x18c)]))==null?void 0x0:_0x1f29e3['src'])??((_0x3ba593==null?void 0x0:_0x3ba593['source'])===_0x547f25[_0x3c86f5(0x345)][_0x3c86f5(0x2ad)]?_0x3ba593[_0x3c86f5(0x1b5)]:''):((_0x1aeb9f=_0x547f25[_0x3c86f5(0x345)])==null?void 0x0:_0x1aeb9f['source'])??'',_0x4f5bc5=_0x5ee796[_0x3c86f5(0x18a)][_0x3c86f5(0x1a7)],_0x42e43a=_0x4f5bc5&&_0x3c86f5(0x1a3)in _0x4f5bc5?(_0x37bc4f=_0x4f5bc5['dataModel'])==null?void 0x0:_0x37bc4f['doc']:void 0x0,_0x5d71d2=Tr((_0x39bc01==null?void 0x0:_0x39bc01['text'])??'',_0x1af4cc,_0x547f25),_0x47029f=_0x5ee796[_0x3c86f5(0x18a)][_0x3c86f5(0x467)],_0x58f84b=_0x5ee796[_0x3c86f5(0x18a)][_0x3c86f5(0x420)],_0x249def=_0x42e43a==null||(_0x48ba1a=_0x42e43a[_0x3c86f5(0x3b6)])==null?void 0x0:_0x48ba1a[_0x3c86f5(0x38b)],_0x408a81=_0x5ee796[_0x3c86f5(0x429)]??_0x5ee796['title']??'';return _0x436796(()=>{const _0x4a77e2=_0x3c86f5;let _0x4406e6=_0x5cabfb[_0x4a77e2(0x49d)],_0x7ec7fb=_0x5e6ee6[_0x4a77e2(0x49d)];if(!_0x4406e6||!_0x7ec7fb)return;let _0x2e5507=()=>{const _0xad9c41=_0x4a77e2;if(_0x547f25[_0xad9c41(0x1ab)]===_0xad9c41(0x22d)||!_0x4406e6[_0xad9c41(0x3c1)]||!_0x4406e6[_0xad9c41(0x2d6)]){_0x7ec7fb[_0xad9c41(0x2c8)][_0xad9c41(0x320)]=_0x547f25[_0xad9c41(0x320)]+'px';return;}let _0x1ae6b8=0x1,_0x4fa67a=0x48,_0x52d58b=_0x1ae6b8;for(;_0x1ae6b8<=_0x4fa67a;){let _0xc1324=Math['floor']((_0x1ae6b8+_0x4fa67a)/0x2);_0x7ec7fb[_0xad9c41(0x2c8)][_0xad9c41(0x320)]=_0xc1324+'px',_0x7ec7fb[_0xad9c41(0x302)]<=_0x4406e6['clientWidth']&&_0x7ec7fb['scrollHeight']<=_0x4406e6[_0xad9c41(0x2d6)]?(_0x52d58b=_0xc1324,_0x1ae6b8=_0xc1324+0x1):_0x4fa67a=_0xc1324-0x1;}_0x7ec7fb[_0xad9c41(0x2c8)][_0xad9c41(0x320)]=_0x52d58b+'px';};if(_0x2e5507(),typeof ResizeObserver>'u')return;let _0xd62ac0=new ResizeObserver(_0x2e5507);return _0xd62ac0[_0x4a77e2(0x42d)](_0x4406e6),()=>_0xd62ac0[_0x4a77e2(0x19f)]();},[_0x547f25[_0x3c86f5(0x320)],_0x547f25['fontSizeMode'],_0x5d71d2]),_0x1108cb(_0x3c86f5(0x1e8),{'data-dashboard-formula-shape':_0x5ee796['id'],'className':_0x3c86f5(0x212),'style':{'backgroundColor':((_0x228684=_0x5ee796[_0x3c86f5(0x31e)])==null?void 0x0:_0x228684[_0x3c86f5(0x33d)])??((_0x47029f==null?void 0x0:_0x47029f['fillType'])===_0x2ed70e['SolidFill']?_0x47029f['color']??void 0x0:void 0x0),'border':(_0x58f84b==null?void 0x0:_0x58f84b['lineStrokeType'])===_0x48222a[_0x3c86f5(0x3f7)]?(_0x58f84b[_0x3c86f5(0x4ac)]??0x1)+_0x3c86f5(0x2f6)+(_0x58f84b[_0x3c86f5(0x1cd)]??_0x3c86f5(0x363)):void 0x0,'borderRadius':_0x5ee796[_0x3c86f5(0x28c)]===_0xed2d79[_0x3c86f5(0x370)]?0xc:void 0x0,'color':((_0x4cdeb4=_0x5ee796['appearance'])==null?void 0x0:_0x4cdeb4[_0x3c86f5(0x42f)])??(_0x39bc01==null?void 0x0:_0x39bc01[_0x3c86f5(0x1cd)])??(_0x249def==null||(_0x6d7cbe=_0x249def['cl'])==null?void 0x0:_0x6d7cbe[_0x3c86f5(0x263)])??void 0x0,'fontWeight':_0x249def!=null&&_0x249def['bl']?0x258:void 0x0,'textAlign':_0x547f25[_0x3c86f5(0x2c1)]},'children':[_0x2ede9c&&_0x1c53e9(_0x3c86f5(0x15e),{'src':_0x2ede9c,'alt':'','aria-hidden':'true','className':_0x3c86f5(0x369),'style':{'objectFit':((_0x1f2da7=_0x547f25[_0x3c86f5(0x345)])==null?void 0x0:_0x1f2da7[_0x3c86f5(0x290)])??_0x3c86f5(0x2b8)}}),_0x1108cb(_0x3c86f5(0x1e8),{'className':_0x3c86f5(0x259),'children':[_0x408a81&&_0x1c53e9(_0x3c86f5(0x1e8),{'data-dashboard-formula-description':!0x0,'className':'univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','children':_0x408a81}),_0x1c53e9(_0x3c86f5(0x1e8),{'ref':_0x5cabfb,'data-dashboard-formula-value':!0x0,'aria-label':_0x408a81||_0x59e4eb['t'](_0x3c86f5(0x47b)),'className':_0x3c86f5(0x488),'style':{'justifyContent':Dr[_0x547f25[_0x3c86f5(0x2c1)]]},'children':_0x1c53e9('span',{'ref':_0x5e6ee6,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x547f25[_0x3c86f5(0x1ab)],'className':_0x3c86f5(0x498),'children':_0x5d71d2})})]})]});}function Y(_0x440931,_0x1911b6){return function(_0x58a2bd,_0x391246){_0x1911b6(_0x58a2bd,_0x391246,_0x440931);};}function kr(_0x1bb25b,_0x209bd4,_0x5a2f18,_0x240a2b){const _0x300a47=_0xbfff20;var _0x4c5bed=arguments[_0x300a47(0x2df)],_0x16a5d4=_0x4c5bed<0x3?_0x209bd4:_0x240a2b===null?_0x240a2b=Object[_0x300a47(0x245)](_0x209bd4,_0x5a2f18):_0x240a2b,_0xc14544;if(typeof Reflect==_0x300a47(0x235)&&typeof Reflect[_0x300a47(0x1e7)]==_0x300a47(0x3c7))_0x16a5d4=Reflect[_0x300a47(0x1e7)](_0x1bb25b,_0x209bd4,_0x5a2f18,_0x240a2b);else{for(var _0x10e7d2=_0x1bb25b['length']-0x1;_0x10e7d2>=0x0;_0x10e7d2--)(_0xc14544=_0x1bb25b[_0x10e7d2])&&(_0x16a5d4=(_0x4c5bed<0x3?_0xc14544(_0x16a5d4):_0x4c5bed>0x3?_0xc14544(_0x209bd4,_0x5a2f18,_0x16a5d4):_0xc14544(_0x209bd4,_0x5a2f18))||_0x16a5d4);}return _0x4c5bed>0x3&&_0x16a5d4&&Object[_0x300a47(0x49f)](_0x209bd4,_0x5a2f18,_0x16a5d4),_0x16a5d4;}let Ar=class{constructor(_0x4382e3,_0x269b10,_0x36d762){const _0x51a6b8=_0xbfff20;this['_localeService']=_0x4382e3,this[_0x51a6b8(0x27b)]=_0x269b10,this[_0x51a6b8(0x2b7)]=_0x36d762;}[_0xbfff20(0x1f1)](){const _0x124286=_0xbfff20;return this['_renderModelManager']['createChartInstance'](_0x2fe426[_0x124286(0x422)],this[_0x124286(0x473)]());}[_0xbfff20(0x47d)](_0x15527d){const _0x5ecc4c=_0xbfff20;let _0x33e7c3=_0x15527d[_0x5ecc4c(0x1ee)]['config'];if(!_0x33e7c3)throw Error(_0x5ecc4c(0x3be)+_0x15527d[_0x5ecc4c(0x371)]+_0x5ecc4c(0x3bc));let _0x174046=this[_0x5ecc4c(0x1d5)][_0x5ecc4c(0x484)]();return{'config':_0x33e7c3,'style':_0x21eccd({..._0x15527d['model'][_0x5ecc4c(0x2c8)],'runtime':_0x15527d[_0x5ecc4c(0x1ee)][_0x5ecc4c(0x2dd)](_0x174046),'direction':_0x174046},_0x33e7c3[_0x5ecc4c(0x427)])};}['_createContext'](){const _0xa39270=_0xbfff20;return{'resolveHostStyle':({style:_0xf25289})=>_0x1fcd93({'style':_0xf25289,'getRenderColor':_0x860c04=>this[_0xa39270(0x27b)][_0xa39270(0x47f)](_0x860c04)}),'resolveRenderBackgroundColor':({hostStyle:_0x257ea4})=>_0x257ea4['fill']};}};Ar=kr([Y(0x0,_0x38b292(_0x2989fb)),Y(0x1,_0x38b292(_0x384907)),Y(0x2,_0x4a688d)],Ar);function jr(_0x44e981,_0x51402f){const _0x1d0f3a=_0xbfff20;var _0x5d56c3;_0x44e981['style'][_0x1d0f3a(0x33d)]=_0x51402f['fill']??'transparent',_0x44e981[_0x1d0f3a(0x2c8)]['border']=(_0x5d56c3=_0x51402f[_0x1d0f3a(0x426)])!=null&&_0x5d56c3[_0x1d0f3a(0x1cd)]&&_0x51402f[_0x1d0f3a(0x426)][_0x1d0f3a(0x4ac)]?_0x51402f[_0x1d0f3a(0x426)][_0x1d0f3a(0x4ac)]+'px\x20solid\x20'+_0x51402f[_0x1d0f3a(0x426)][_0x1d0f3a(0x1cd)]:'',_0x44e981['style'][_0x1d0f3a(0x27d)]=_0x51402f[_0x1d0f3a(0x438)]?_0x51402f['radius']+'px':'',_0x44e981[_0x1d0f3a(0x2c8)][_0x1d0f3a(0x2e5)]=_0x1d0f3a(0x478),_0x44e981['style'][_0x1d0f3a(0x4aa)]=_0x1d0f3a(0x333);}function Mr(_0x3eaa09){'@babel/helpers - typeof';const _0xa44de6=_0xbfff20;return Mr=typeof Symbol=='function'&&typeof Symbol[_0xa44de6(0x1da)]==_0xa44de6(0x40c)?function(_0x486df9){return typeof _0x486df9;}:function(_0x303d80){const _0x34300c=_0xa44de6;return _0x303d80&&typeof Symbol==_0x34300c(0x3c7)&&_0x303d80[_0x34300c(0x2ee)]===Symbol&&_0x303d80!==Symbol['prototype']?'symbol':typeof _0x303d80;},Mr(_0x3eaa09);}function Nr(_0x509b42,_0x1530af){const _0x424cf0=_0xbfff20;if(Mr(_0x509b42)!=_0x424cf0(0x235)||!_0x509b42)return _0x509b42;var _0x25d03e=_0x509b42[Symbol[_0x424cf0(0x352)]];if(_0x25d03e!==void 0x0){var _0x485d3d=_0x25d03e[_0x424cf0(0x1be)](_0x509b42,_0x1530af||_0x424cf0(0x30e));if(Mr(_0x485d3d)!=_0x424cf0(0x235))return _0x485d3d;throw TypeError(_0x424cf0(0x29f));}return(_0x1530af==='string'?String:Number)(_0x509b42);}function Pr(_0xc0d0a1){const _0x20432e=_0xbfff20;var _0x176845=Nr(_0xc0d0a1,_0x20432e(0x3e0));return Mr(_0x176845)=='symbol'?_0x176845:_0x176845+'';}function Fr(_0x3395e6,_0x7b7c26,_0x5eb78d){const _0x478797=_0xbfff20;return(_0x7b7c26=Pr(_0x7b7c26))in _0x3395e6?Object[_0x478797(0x49f)](_0x3395e6,_0x7b7c26,{'value':_0x5eb78d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3395e6[_0x7b7c26]=_0x5eb78d,_0x3395e6;}var Ir=class extends _0x2eec42{constructor(_0x2ada83,_0x42d469){const _0x2a0698=_0xbfff20;super(),this[_0x2a0698(0x371)]=_0x2ada83,this[_0x2a0698(0x2ba)]=_0x42d469,Fr(this,_0x2a0698(0x3fd),_0x2fe426[_0x2a0698(0x422)]);}['getRect'](){const _0x5e5ca3=_0xbfff20;return{'width':Math['max'](0x1,this[_0x5e5ca3(0x2ba)][_0x5e5ca3(0x3c1)]),'height':Math[_0x5e5ca3(0x43f)](0x1,this['_element']['clientHeight'])};}[_0xbfff20(0x382)](_0x319a75){const _0x28f641=_0xbfff20;jr(this[_0x28f641(0x2ba)],_0x319a75);}async['ensureMount'](){return this['_element'];}[_0xbfff20(0x482)](){const _0xcefca=_0xbfff20;return this[_0xcefca(0x2ba)][_0xcefca(0x25b)];}[_0xbfff20(0x3e3)](){}['markReady'](){}[_0xbfff20(0x423)](){}};function Lr({isRowDirection:_0x49fe3d,runtime:_0x578e6b}){const _0x4902c0=_0xbfff20;let _0x1b4598=_0x2861da(null),_0x336474=_0x29f087(_0x2989fb),_0x1550ed=_0x29f087(_0x49fceb),_0x16d313=_0x29f087(Ar),_0x417db8=_0x29f087(_0x3fdc71);return _0x436796(()=>{const _0x1ef637=_0x5dbe;let _0x339500=_0x1b4598[_0x1ef637(0x49d)];if(!_0x339500)return;_0x339500[_0x1ef637(0x2c7)]();let {chartId:_0x3908ef,model:_0x3ff57a}=_0x578e6b,_0x19eeba=_0x3ff57a[_0x1ef637(0x21e)],_0x2ffa08=new Ir(_0x3908ef,_0x339500),_0x4662f6=_0x16d313['createDomChartInstance'](),_0x3224fe=!0x1,_0x464e6e=null,_0x2a1f7d=null,_0x31f657=null,_0x5856d6=null,_0x4a43e6=!0x1,_0x5c0909=!0x1,_0xc9f161=Promise[_0x1ef637(0x393)]();_0x4662f6[_0x1ef637(0x282)](_0x2ffa08);let _0x50c981=()=>{const _0x3876a9=_0x1ef637;var _0x4f88f9,_0x19ad60,_0x318f59,_0x3b1a8e;if(document[_0x3876a9(0x317)]===_0x3876a9(0x478)||(_0x4f88f9=(_0x19ad60=window)[_0x3876a9(0x2f7)])!=null&&(_0x4f88f9=_0x4f88f9['call'](_0x19ad60,'(prefers-reduced-motion:\x20reduce)'))!=null&&_0x4f88f9[_0x3876a9(0x17b)]||(_0x318f59=(_0x3b1a8e=window)[_0x3876a9(0x2f7)])!=null&&(_0x318f59=_0x318f59[_0x3876a9(0x1be)](_0x3b1a8e,_0x3876a9(0x3d9)))!=null&&_0x318f59[_0x3876a9(0x17b)]||!_0x339500[_0x3876a9(0x25b)])return!0x1;let _0x1dffbd=_0x339500[_0x3876a9(0x260)]();return _0x1dffbd['width']>0x0&&_0x1dffbd['height']>0x0&&_0x1dffbd[_0x3876a9(0x2e0)]>0x0&&_0x1dffbd[_0x3876a9(0x2a2)]>0x0&&_0x1dffbd[_0x3876a9(0x297)]<window[_0x3876a9(0x379)]&&_0x1dffbd[_0x3876a9(0x3e6)]<window[_0x3876a9(0x200)];},_0x3d1ae3=()=>{const _0x250c1e=_0x1ef637;_0x2a1f7d!==null&&clearTimeout(_0x2a1f7d),_0x339500[_0x250c1e(0x214)][_0x250c1e(0x36c)]='true',_0x339500['dataset'][_0x250c1e(0x394)]=String(_0x5135e6),_0x2a1f7d=setTimeout(()=>{const _0x281f35=_0x250c1e;_0x2a1f7d=null,delete _0x339500['dataset'][_0x281f35(0x36c)],delete _0x339500[_0x281f35(0x214)][_0x281f35(0x394)];},_0x5135e6);},_0x1de64b=_0x44da7e=>{const _0x1736d7=_0x1ef637;if(_0x3224fe)return;if(_0x464e6e!==null&&(clearTimeout(_0x464e6e),_0x464e6e=null),!_0x3ff57a[_0x1736d7(0x167)]){_0x5c0909||=_0x44da7e;return;}_0x339500[_0x1736d7(0x214)][_0x1736d7(0x288)]=String(_0x3ff57a[_0x1736d7(0x288)]),_0x339500[_0x1736d7(0x214)][_0x1736d7(0x17e)]=String(_0x49fe3d);let _0x365858=_0x16d313['createRenderInput'](_0x578e6b),_0x23ca58={'chartId':_0x3908ef,'config':_0x365858[_0x1736d7(0x167)],'style':_0x365858['style']};_0xc9f161=_0xc9f161[_0x1736d7(0x271)](async()=>{const _0x194588=_0x1736d7;_0x3224fe||(_0x339500['dataset'][_0x194588(0x3fe)]=String(Number(_0x339500[_0x194588(0x214)][_0x194588(0x3fe)]??0x0)+0x1),_0x44da7e&&_0x31f657&&_0x4662f6['renderTransition']&&_0x50c981()?(await _0x4662f6['renderTransition'](_0x31f657,_0x23ca58,{'duration':_0x5135e6}),_0x3224fe||_0x3d1ae3()):await _0x4662f6[_0x194588(0x165)](_0x23ca58),_0x31f657=_0x23ca58);})[_0x1736d7(0x433)](_0x531eac=>_0x1550ed[_0x1736d7(0x1a6)]('[BasePivotChart]\x20Failed\x20to\x20render\x20chart.',_0x531eac));},_0x65f83=(_0x1b4454=!0x1)=>{_0x5c0909||=_0x1b4454,!_0x4a43e6&&(_0x4a43e6=!0x0,queueMicrotask(()=>{_0x4a43e6=!0x1;let _0x11574b=_0x5c0909;_0x5c0909=!0x1,_0x1de64b(_0x11574b);}));},_0x1f0fed=[_0x19eeba[_0x1ef637(0x2bd)][_0x1ef637(0x2d5)](_0x4e76e1=>{let _0x56fe3e=JSON['stringify'](_0x4e76e1);_0x5856d6!=null&&_0x5856d6!==_0x56fe3e&&_0x65f83(!0x0),_0x5856d6=_0x56fe3e;}),_0x3ff57a[_0x1ef637(0x29a)][_0x1ef637(0x2d5)](_0x4fb2b8=>{_0x4fb2b8&&_0x65f83();}),_0x3ff57a[_0x1ef637(0x15d)][_0x1ef637(0x2d5)](()=>_0x65f83()),_0x336474[_0x1ef637(0x378)][_0x1ef637(0x2d5)](()=>_0x65f83()),_0x2dd9ec([_0x417db8[_0x1ef637(0x1d1)],_0x417db8[_0x1ef637(0x419)]])['pipe'](_0x12e509(0x1))[_0x1ef637(0x2d5)](()=>_0x65f83())],_0x158bb8=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x14c41b=_0x1ef637;_0x3224fe||(_0x2ffa08[_0x14c41b(0x3e3)](),_0x464e6e!==null&&clearTimeout(_0x464e6e),_0x464e6e=setTimeout(()=>_0x65f83(),0x64));});return _0x158bb8==null||_0x158bb8[_0x1ef637(0x42d)](_0x339500),()=>{const _0x4a93af=_0x1ef637;_0x3224fe=!0x0,_0x464e6e!==null&&clearTimeout(_0x464e6e),_0x2a1f7d!==null&&clearTimeout(_0x2a1f7d),delete _0x339500[_0x4a93af(0x214)][_0x4a93af(0x36c)],delete _0x339500['dataset'][_0x4a93af(0x394)],_0x158bb8==null||_0x158bb8[_0x4a93af(0x19f)](),_0x1f0fed[_0x4a93af(0x4a2)](_0x13fc3c=>_0x13fc3c[_0x4a93af(0x3f4)]()),_0x4662f6[_0x4a93af(0x19b)](),_0x2ffa08[_0x4a93af(0x19b)](),_0x339500[_0x4a93af(0x2c7)]();};},[_0x49fe3d,_0x336474,_0x1550ed,_0x16d313,_0x578e6b,_0x417db8]),_0x1c53e9(_0x4902c0(0x1e8),{'ref':_0x1b4598,'data-u-comp':_0x4902c0(0x2af),'className':'univer-absolute\x20univer-inset-0\x20univer-overflow-hidden'});}function Rr({filters:_0x169fb9,onRuntimeChange:_0x27ad12,unitId:_0x5b7c72,widget:_0x1e4e42}){const _0x38bd70=_0xbfff20;let _0x9bcf7=_0x29f087(_0x14186a),_0x2364b0=_0x29f087(_0x2989fb),_0x573fd2=_0x29f087(_0x49fceb),_0xbe7bfa=_0x29f087(_0x441727),[_0x27256b,_0x38f6c1]=_0x34e679(null),[_0x529e41,_0x3ba8ef]=_0x34e679(!0x1),[_0x5c7046,_0x10f41b]=_0x34e679(null),_0xea1b71=_0x2861da(_0x38bd70(0x210)+_0xd28735(0x8)),_0x3684e1=_0x9bcf7[_0x38bd70(0x454)](_0x5b7c72,_0x37ea54['UNIVER_BASE']),_0x58a9ba=_0x3684e1==null?void 0x0:_0x3684e1[_0x38bd70(0x373)]()[_0x38bd70(0x3df)][_0x1e4e42[_0x38bd70(0x335)]],_0xa41227=_0x58a9ba==null?void 0x0:_0x58a9ba[_0x38bd70(0x2b9)][_0x1e4e42[_0x38bd70(0x1b6)]],_0xa8ab98=zr(_0xa41227);if(_0x436796(()=>{const _0x132edf=_0x38bd70;if(!_0xa8ab98)return;let _0x46d7f7=_0xea1b71[_0x132edf(0x49d)];return _0xbe7bfa[_0x132edf(0x38c)](_0x46d7f7,{'unitId':_0x5b7c72,'tableId':_0x1e4e42[_0x132edf(0x335)],'viewId':_0x1e4e42[_0x132edf(0x1b6)],'filters':[]}),()=>{const _0x7f1be4=_0x132edf;_0xbe7bfa[_0x7f1be4(0x414)](_0x5b7c72,_0x46d7f7),_0x27ad12==null||_0x27ad12(_0x1e4e42['id'],null);};},[_0xa8ab98,_0x27ad12,_0xbe7bfa,_0x5b7c72,_0x1e4e42['id'],_0x1e4e42[_0x38bd70(0x1b6)],_0x1e4e42[_0x38bd70(0x335)]]),_0x436796(()=>{const _0x556a81=_0x38bd70;if(!zr(_0xa41227))return;let _0x586b1e=!0x0,_0x2a1710=_0x1e4e42[_0x556a81(0x252)]??_0xa41227[_0x556a81(0x167)][_0x556a81(0x252)],_0x52236d={'unitId':_0x5b7c72,'tableId':_0x1e4e42[_0x556a81(0x335)],'viewId':_0x1e4e42[_0x556a81(0x1b6)],'filters':[_0xa41227[_0x556a81(0x2be)]??null,..._0x169fb9]};return _0xbe7bfa['refreshChartRuntime'](_0x5b7c72,_0xea1b71[_0x556a81(0x49d)],_0x52236d,_0x2a1710)[_0x556a81(0x271)](_0x45aa55=>{const _0x36e822=_0x556a81;if(!_0x586b1e||!_0x45aa55)return;let _0x213673=_0xbe7bfa['getChartRuntime'](_0x5b7c72,_0xea1b71[_0x36e822(0x49d)])??null;_0x38f6c1(_0x45aa55),_0x10f41b(_0x213673),_0x3ba8ef(!0x1),_0x27ad12==null||_0x27ad12(_0x1e4e42['id'],_0x213673);})[_0x556a81(0x433)](_0x18f3b1=>{const _0x4983a0=_0x556a81;_0x573fd2[_0x4983a0(0x1a6)](_0x4983a0(0x340),_0x18f3b1),_0x586b1e&&(_0x38f6c1(null),_0x3ba8ef(!0x0));}),()=>{_0x586b1e=!0x1;};},[_0x169fb9,_0x573fd2,_0x27ad12,_0xbe7bfa,_0x5b7c72,_0xa41227,_0x1e4e42[_0x38bd70(0x252)],_0x1e4e42['id'],_0x1e4e42[_0x38bd70(0x1b6)],_0x1e4e42['tableId']]),!zr(_0xa41227))return _0x1c53e9('div',{'className':_0x38bd70(0x322),'children':_0x2364b0['t'](_0x38bd70(0x1ad))});let _0x4986ae=_0xbe7bfa['getChartRuntime'](_0x5b7c72,_0xea1b71[_0x38bd70(0x49d)])===_0x5c7046?_0x5c7046:null;return _0x27256b&&_0x4986ae?_0x1c53e9(Lr,{'isRowDirection':_0x3b57e8((_0x1e4e42[_0x38bd70(0x252)]??_0xa41227[_0x38bd70(0x167)][_0x38bd70(0x252)])[_0x38bd70(0x292)]),'runtime':_0x4986ae}):_0x1c53e9('div',{'className':_0x38bd70(0x322),'children':_0x2364b0['t'](_0x529e41?_0x38bd70(0x2ed):_0x38bd70(0x3b2))});}function zr(_0x557622){const _0x549aa0=_0xbfff20;return(_0x557622==null?void 0x0:_0x557622['type'])===_0x54a718['Pivot']&&typeof _0x557622[_0x549aa0(0x167)]==_0x549aa0(0x235)&&_0x557622['config']!==null&&_0x549aa0(0x274)in _0x557622[_0x549aa0(0x167)]&&_0x549aa0(0x252)in _0x557622[_0x549aa0(0x167)];}const Br={'alignment':_0xbfff20(0x297),'fontSize':0x12,'fontSizeMode':_0xbfff20(0x2fd)};function Vr(_0x5b5b08){const _0x18646f=_0xbfff20;return{...Br,..._0x5b5b08[_0x18646f(0x31e)]};}function Hr(_0x289fd0){const _0x32fa6a=_0xbfff20;var _0x24d903;return((_0x24d903=_0x289fd0[_0x32fa6a(0x45f)])==null?void 0x0:_0x24d903['dataStream']['replace'](/\r\n$/,'')[_0x32fa6a(0x1b9)](/\r/g,'\x0a'))??'';}function Ur(_0x15b943,_0x56af10){const _0x2c24ed=_0xbfff20;var _0x5e2bd0;let _0x7d15d7=_0x56af10[_0x2c24ed(0x1b9)](/\r\n|\r/g,'\x0a')[_0x2c24ed(0x3cf)]('\x0a'),_0x14aff1=_0x7d15d7[_0x2c24ed(0x284)]('\x0d')+'\x0d\x0a',_0x1275a4=((_0x5e2bd0=_0x15b943['body'])==null?void 0x0:_0x5e2bd0[_0x2c24ed(0x42c)])??[],_0x2bf03d=new Set(_0x1275a4['map'](_0x459e28=>_0x459e28['paragraphId'])),_0x35bc23=0x0,_0x4cf271=_0x7d15d7[_0x2c24ed(0x1fd)]((_0x4fb472,_0x2c5ed2)=>{const _0x1ac452=_0x2c24ed;_0x35bc23+=_0x4fb472[_0x1ac452(0x2df)];let _0x49c9f4={..._0x1275a4[_0x2c5ed2]??{'startIndex':_0x35bc23,'paragraphId':_0x467708(_0x2bf03d)},'startIndex':_0x35bc23};return _0x35bc23+=0x1,_0x49c9f4;});return{..._0x15b943,'body':{..._0x15b943[_0x2c24ed(0x45f)],'dataStream':_0x14aff1,'paragraphs':_0x4cf271,'textRuns':[]}};}function Wr({widget:_0x1a5f55}){const _0x381d32=_0xbfff20;let _0x1512f4=_0x29f087(_0x3fdc71),_0xa74eeb=_0x29f087(_0x2989fb),_0xeb9bd9=_0x39908a(()=>_0x1512f4[_0x381d32(0x1d1)],_0x1512f4[_0x381d32(0x21f)](),!0x1,[_0x1512f4]),_0x523f44=_0x2861da(null),_0x3e9542=_0x2861da(null),_0x4e5e07=Vr(_0x1a5f55),_0x3fca53=_0x4e5e07[_0x381d32(0x33d)]??_0xeb9bd9[_0x381d32(0x45c)][0x0],_0x2afeb1=_0x4e5e07[_0x381d32(0x42f)]??_0xeb9bd9['gray'][0x3e8],_0x23201f=Hr(_0x1a5f55['document']);return _0x436796(()=>{const _0x387db3=_0x381d32;let _0xe2ffe7=_0x523f44[_0x387db3(0x49d)],_0x37d9bb=_0x3e9542['current'];if(!_0xe2ffe7||!_0x37d9bb)return;let _0x1c1573=()=>{const _0x3f4228=_0x387db3;if(_0x4e5e07[_0x3f4228(0x1ab)]==='custom'||!_0xe2ffe7[_0x3f4228(0x3c1)]||!_0xe2ffe7['clientHeight']){_0x37d9bb[_0x3f4228(0x2c8)][_0x3f4228(0x320)]=_0x4e5e07[_0x3f4228(0x320)]+'px';return;}let _0x58ed4f=0x8,_0x5d59dd=0x48,_0x4f611c=_0x58ed4f;for(;_0x58ed4f<=_0x5d59dd;){let _0x1da050=Math['floor']((_0x58ed4f+_0x5d59dd)/0x2);_0x37d9bb[_0x3f4228(0x2c8)][_0x3f4228(0x320)]=_0x1da050+'px',_0x37d9bb[_0x3f4228(0x302)]<=_0xe2ffe7[_0x3f4228(0x3c1)]&&_0x37d9bb[_0x3f4228(0x2d7)]<=_0xe2ffe7[_0x3f4228(0x2d6)]?(_0x4f611c=_0x1da050,_0x58ed4f=_0x1da050+0x1):_0x5d59dd=_0x1da050-0x1;}_0x37d9bb[_0x3f4228(0x2c8)][_0x3f4228(0x320)]=_0x4f611c+'px';};if(_0x1c1573(),typeof ResizeObserver>'u')return;let _0x62f654=new ResizeObserver(_0x1c1573);return _0x62f654[_0x387db3(0x42d)](_0xe2ffe7),()=>_0x62f654[_0x387db3(0x19f)]();},[_0x4e5e07[_0x381d32(0x320)],_0x4e5e07['fontSizeMode'],_0x23201f]),_0x1c53e9(_0x381d32(0x1e8),{'data-dashboard-text-widget':_0x1a5f55['id'],'className':_0x381d32(0x16f),'style':{'backgroundColor':_0x3fca53,'color':_0x2afeb1},'children':_0x1c53e9(_0x381d32(0x1e8),{'ref':_0x523f44,'data-dashboard-text-content':!0x0,'aria-label':_0xa74eeb['t'](_0x381d32(0x3ba)),'className':_0x381d32(0x307),'children':_0x1c53e9(_0x381d32(0x1e8),{'ref':_0x3e9542,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x4e5e07[_0x381d32(0x1ab)],'className':_0x381d32(0x249),'style':{'textAlign':_0x4e5e07[_0x381d32(0x2c1)]},'children':_0x23201f})})});}function Gr({dashboard:_0x965068,editable:_0x364e00=!0x0,onSelectWidget:_0x4a9bdf,renderWidget:_0x1b3e45,renderWidgetActions:_0x518844,selectedWidgetId:_0xaff9cc,widgetLabel:_0x57a469}){const _0x21aec0=_0xbfff20;return _0x1c53e9('div',{'data-dashboard-scroll-container':!0x0,'className':_0x14b647(_0x21aec0(0x48f),_0x439165),'onClick':_0x364e00?_0xa1f2c2=>{const _0x5a2046=_0x21aec0;if(!(_0xa1f2c2[_0x5a2046(0x1cb)]instanceof Node)||!_0xa1f2c2[_0x5a2046(0x40a)][_0x5a2046(0x3e5)](_0xa1f2c2['target']))return;let _0x3e9ea1=_0xa1f2c2[_0x5a2046(0x1cb)]instanceof Element?_0xa1f2c2[_0x5a2046(0x1cb)]:_0xa1f2c2[_0x5a2046(0x1cb)][_0x5a2046(0x196)];_0x3e9ea1!=null&&_0x3e9ea1[_0x5a2046(0x21a)]('[data-dashboard-widget]')||_0x4a9bdf==null||_0x4a9bdf();}:void 0x0,'children':_0x1c53e9('div',{'data-dashboard-grid':!0x0,'className':_0x21aec0(0x21d),'children':_0x965068['widgetOrder']['map'](_0x5284e1=>{const _0x5af975=_0x21aec0;let _0x5da6ef=_0x965068[_0x5af975(0x280)][_0x5284e1];if(!_0x5da6ef)return null;let _0x262949=Math[_0x5af975(0x43f)](0xb4,_0x5da6ef[_0x5af975(0x2fc)][_0x5af975(0x1b2)]*_0x3e9cab);return _0x1108cb(_0x5af975(0x241),{'data-dashboard-widget':_0x5da6ef['id'],'aria-label':_0x5da6ef[_0x5af975(0x236)]??_0x57a469(_0x5da6ef),'className':_0x14b647(_0x5af975(0x1aa),_0x5da6ef[_0x5af975(0x427)]===_0x1402ed['Image']||_0x5da6ef['type']===_0x1402ed[_0x5af975(0x1d9)]?_0x5af975(0x361):_0x5af975(0x33a),_0x364e00&&_0xaff9cc===_0x5da6ef['id']?'univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500':_0x5af975(0x49c)),'style':{'minHeight':_0x262949,'height':_0x262949},'tabIndex':_0x364e00?0x0:void 0x0,'onClick':_0x364e00?()=>_0x4a9bdf==null?void 0x0:_0x4a9bdf(_0x5da6ef['id']):void 0x0,'onFocus':_0x364e00?()=>_0x4a9bdf==null?void 0x0:_0x4a9bdf(_0x5da6ef['id']):void 0x0,'children':[_0x364e00&&_0x1c53e9('div',{'className':_0x5af975(0x358),'children':_0x518844==null?void 0x0:_0x518844(_0x5da6ef)}),_0x1c53e9(_0x5af975(0x1e8),{'className':'univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','children':_0x1b3e45(_0x5da6ef)})]},_0x5da6ef['id']);})})});}let Kr=class extends _0x22cc04{constructor(_0x5b7b7c){super(_0x5b7b7c),Fr(this,'activeRuntimeModel',null);}[_0xbfff20(0x25c)](_0x23434c){}};Kr=kr([Y(0x0,_0x38b292(_0x41a29f))],Kr);function qr({children:_0x19c70e}){return _0x1c53e9(_0x16eea4,{'children':_0x19c70e});}function Jr(_0x2e61ef){return _0x1c53e9(_0x3cb16e,{..._0x2e61ef});}function Yr(_0x58ad19){return _0x1c53e9(_0x15dcec,{..._0x58ad19});}function Xr(_0x3082a8){return _0x1c53e9(_0x2c4746,{..._0x3082a8});}var Zr;const X={'axis':{..._0x3c4ba3,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x2c5e3a,'heatmap':_0x4f57a1,'indicatorLine':_0x57cad4,'legend':_0x43f27b,'lineAndArea':_0x1a8b1f,'pareto':_0x1aa1b1,'pie':_0x258d6f,'radar':_0x2ec41b,'relation':{..._0x4805f6,'useValueAsSymbolSize':!0x0},'series':{..._0x13b217,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Zr=_0x40bf0b[_0xbfff20(0x254)])==null?void 0x0:Zr[_0xbfff20(0x492)])??!0x1}},'style':_0x13d7eb,'titles':_0x4abb4a,'trendline':_0x72a22e,'waterfall':{..._0x2cc178,'useSubtotal':!0x0},'waterfallStyle':_0x436808,'wordCloud':_0xfd1cc7},Qr=[_0x217c21['Line'],_0x217c21[_0xbfff20(0x356)],_0x217c21[_0xbfff20(0x458)],_0x217c21['Scatter'],_0x217c21[_0xbfff20(0x25a)],_0x217c21['Relation'],_0x217c21[_0xbfff20(0x23a)],_0x217c21[_0xbfff20(0x1af)],_0x217c21[_0xbfff20(0x4a7)],_0x217c21[_0xbfff20(0x360)],_0x217c21[_0xbfff20(0x2f3)],_0x217c21[_0xbfff20(0x3a2)],_0x217c21[_0xbfff20(0x23b)],_0x217c21[_0xbfff20(0x38f)],_0x217c21['Chord']];function $r(_0x26defd){const _0x308408=_0xbfff20;let {config:_0xa61c77,onChange:_0x5dc0af,runtime:_0x392ed1,tableName:_0x4bba0f}=_0x26defd,_0x17241c=_0x29f087(Kr),_0x1930f4=_0x29f087(_0x2989fb),[_0x14307c,_0x577f83]=_0x34e679(_0x39d056[_0x308408(0x491)]),_0xab7d44=_0x548c0f(()=>new _0x439e96(_0x392ed1[_0x308408(0x1ee)],{'commit':_0x46f0a7=>{const _0x416bc1=_0x308408;var _0x559cf6;let _0x183678=_0x392ed1[_0x416bc1(0x1ee)],_0x39efdd=_0x3aa652(_0x46f0a7,{'series':(_0x559cf6=_0x183678[_0x416bc1(0x167)])==null?void 0x0:_0x559cf6[_0x416bc1(0x28b)],'currentChartType':_0x183678[_0x416bc1(0x288)],'currentStyle':_0x183678[_0x416bc1(0x2c8)],'currentContext':_0x183678[_0x416bc1(0x3b5)],'currentDataAggregation':_0x183678[_0x416bc1(0x48e)]});_0x5dc0af({'chart':ei(_0xa61c77['chart'],_0x39efdd)});}}),[_0xa61c77[_0x308408(0x252)],_0x5dc0af,_0x392ed1]),_0x52f374=_0x548c0f(()=>_0x5b5e1c(_0x1fbca7[_0x308408(0x1fd)](_0x47610f=>({..._0x47610f,'label':_0x1930f4['t'](ii(_0x47610f['labelId']))}))),[_0x1930f4]);return _0x1c53e9(_0x5cda0c,{'chartUIService':_0x17241c,'hostAdapter':_0xab7d44,'children':_0x1108cb(_0x308408(0x1e8),{'className':_0x308408(0x1d6),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x1930f4['t'](_0x308408(0x1b1)),'className':_0x308408(0x251),'items':[{'label':_0x1930f4['t'](_0x308408(0x242)),'panelId':_0x308408(0x41e),'value':_0x39d056[_0x308408(0x491)]},{'label':_0x1930f4['t'](_0x308408(0x1c3)),'panelId':_0x308408(0x474),'value':_0x39d056['Style']}],'value':_0x14307c,'onChange':_0x577f83}),_0x14307c===_0x39d056[_0x308408(0x491)]?_0x1c53e9(_0x420eaf,{'id':_0x308408(0x41e),'label':_0x1930f4['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x1108cb('div',{'className':_0x308408(0x3b9),'children':[_0x1c53e9(_0x44e1cd,{'options':_0x52f374}),_0x1c53e9(_0xd07337,{}),_0x1c53e9(_0x2a621a,{}),_0x1c53e9(ti,{}),_0x1c53e9(_0x14bbde,{}),_0x1108cb(_0x308408(0x1e8),{'children':[_0x1c53e9(_0x4ed5df,{'title':_0x1930f4['t'](_0x308408(0x264))}),_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':_0x4bba0f})]}),_0x1c53e9(_0x521472,{'orientationControl':_0x1c53e9(_0x6d25a2,{'size':_0x308408(0x189),'onClick':()=>_0x5dc0af({'chart':{..._0xa61c77[_0x308408(0x252)],'orient':_0xa61c77[_0x308408(0x252)][_0x308408(0x292)]===_0x308408(0x430)?'column':_0x308408(0x430)}}),'children':_0x1930f4['t'](_0x308408(0x3a6))})}),_0x1c53e9(_0x27502d,{}),_0x1c53e9(_0x1e15dd,{'defaultValues':X[_0x308408(0x1fc)]}),_0x1108cb('div',{'children':[_0x1c53e9(_0x4ed5df,{'title':_0x1930f4['t'](_0x308408(0x47e))}),_0x1c53e9(Jr,{'value':_0xa61c77['displayMode'],'options':[{'value':_0x308408(0x36e),'label':_0x1930f4['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':_0x308408(0x252),'label':_0x1930f4['t'](_0x308408(0x266))},{'value':_0x308408(0x405),'label':_0x1930f4['t'](_0x308408(0x186))}],'onChange':_0x1b0657=>{const _0x419dfb=_0x308408;(_0x1b0657===_0x419dfb(0x36e)||_0x1b0657===_0x419dfb(0x252)||_0x1b0657==='table')&&_0x5dc0af({'displayMode':_0x1b0657});}})]})]})}):_0x1c53e9(_0x420eaf,{'id':'base-pivot-chart-style','label':_0x1930f4['t'](_0x308408(0x1c3)),'children':_0x1c53e9(ni,{})})]})});}function ei(_0x438cfa,_0x40638e){const _0x4218b=_0xbfff20;return{..._0x438cfa,'type':_0x40638e[_0x4218b(0x288)]??_0x438cfa[_0x4218b(0x427)],'style':_0x40638e[_0x4218b(0x2c8)]??_0x438cfa['style'],'context':_0x40638e[_0x4218b(0x3b5)]??_0x438cfa[_0x4218b(0x3b5)],'dataAggregation':_0x40638e['dataAggregation']??_0x438cfa[_0x4218b(0x48e)]};}function ti(){const _0x3e7c31=_0xbfff20;let _0x200b5c=_0x486f74();return _0x1c53e9(_0x18f4fe,{'visible':Qr[_0x3e7c31(0x311)](_0x141bcf=>!_0x1094d9[_0x3e7c31(0x30f)](_0x200b5c,_0x141bcf))});}function Z(_0x211880){const _0x70d6d0=_0xbfff20;return _0x1108cb(_0x476c3e,{'id':_0x211880['id'],'children':[_0x1c53e9(_0x3ee43e,{'children':_0x211880[_0x70d6d0(0x1b8)]}),_0x1c53e9(_0x50efea,{'children':_0x211880[_0x70d6d0(0x310)]})]});}function ni(){const _0x1c6806=_0xbfff20;let _0x5677a6=_0x29f087(_0x2989fb),_0x275b0f=_0x486f74(),_0x464efb=_0x3d2664(),[_0x3413ad,_0x14510d]=_0x34e679(null),_0x597e35=_0x1094d9[_0x1c6806(0x30f)](_0x275b0f,_0x217c21['Pie']),_0x43a1fc=_0x275b0f===_0x217c21[_0x1c6806(0x356)],_0x26eda3=_0x275b0f===_0x217c21[_0x1c6806(0x458)],_0x380be0=_0x275b0f===_0x217c21['Funnel'],_0x2794b9=_0x1094d9[_0x1c6806(0x30f)](_0x275b0f,_0x217c21[_0x1c6806(0x3d3)]),_0x10af09=_0x275b0f===_0x217c21[_0x1c6806(0x1f4)],_0x1653e8=_0x275b0f===_0x217c21[_0x1c6806(0x1b3)],_0x1e8c58=_0x275b0f===_0x217c21[_0x1c6806(0x3f6)],_0x5910d2=_0x275b0f===_0x217c21[_0x1c6806(0x1af)],_0x45e6ce=_0x4c4c0b(_0x275b0f,_0x235cca[_0x1c6806(0x38d)])&&!_0x2794b9&&!_0x1e8c58,_0x27f116=ri(_0x275b0f,_0x5677a6);return _0x1108cb(_0x169833,{'value':_0x3413ad,'onChange':_0x14510d,'children':[_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x40f)],'label':_0x5677a6['t'](_0x1c6806(0x270)),'children':_0x1c53e9(_0x392a75,{'defaultValues':X['style']})}),_0x1c53e9(Z,{'id':_0x275cd6['ChartAndAxisTitles'],'label':_0x5677a6['t'](_0x1c6806(0x37f)),'children':_0x1c53e9(_0x3a97b5,{'commitMode':_0x1c6806(0x1bd),'defaultValues':X[_0x1c6806(0x2b6)]})}),_0x1c53e9(_0x461f63,{'section':_0x1c6806(0x1f5)}),_0x45e6ce&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x18d)],'label':_0x5677a6['t'](_0x1c6806(0x217)),'children':_0x1c53e9(_0x3fdf0f,{'defaultValues':X['series'],'NumberFormatField':_0x1fdd9c})}),_0x1653e8&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x3ee)],'label':_0x5677a6['t'](_0x1c6806(0x15a)),'children':_0x1c53e9(_0x321527,{'defaultValues':X['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x278edd,target:_0x5c3eda})=>_0x5c3eda===_0x17b66a[_0x1c6806(0x220)]?_0x5677a6['t'](_0x1c6806(0x3dc)):_0x278edd?_0x278edd+'-('+_0x5677a6['t'](_0x1c6806(0x33b)+(_0x5c3eda===_0x17b66a[_0x1c6806(0x3ab)]?_0x1c6806(0x2bb):'waterfall.negative'))+')':'','NumberFormatField':_0x1fdd9c})}),_0x1e8c58&&_0x1108cb(_0x52e8d3,{'children':[_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x31d)],'label':_0x5677a6['t'](_0x1c6806(0x321)),'children':_0x1c53e9(_0xc41187,{'defaultValues':X[_0x1c6806(0x1ec)],'NumberFormatField':_0x1fdd9c,'showDataPointEditor':!0x0,'target':'barStyle'})}),_0x1c53e9(Z,{'id':_0x275cd6['ParetoLineSeries'],'label':_0x5677a6['t'](_0x1c6806(0x44e)),'children':_0x1c53e9(_0xc41187,{'defaultValues':X[_0x1c6806(0x1ec)],'NumberFormatField':_0x1fdd9c,'showDataPointEditor':!0x1,'target':'cumulativeLineStyle'})})]}),_0x597e35&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x397)],'label':_0x5677a6['t'](_0x1c6806(0x1f2)),'children':_0x1c53e9(_0x411c97,{'defaultValues':X[_0x1c6806(0x20e)],'NumberFormatField':_0x1fdd9c})}),_0x26eda3&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x458)],'label':_0x5677a6['t']('bases-dashboard-ui.chart.section.wordCloud'),'children':_0x1c53e9(_0x34e06c,{'defaultValues':X[_0x1c6806(0x2a3)]})}),_0x43a1fc&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x356)],'label':_0x5677a6['t'](_0x1c6806(0x218)),'children':_0x1c53e9(_0x3cdb06,{'defaultValues':X['radar']})}),_0x380be0&&_0x1c53e9(Z,{'id':_0x275cd6['Funnel'],'label':_0x5677a6['t'](_0x1c6806(0x3a3)),'children':_0x1c53e9(_0x5c3a2a,{'defaultValues':X['funnel'],'gapControl':_0x1c6806(0x3fc)})}),_0x5910d2&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x1af)],'label':_0x5677a6['t'](_0x1c6806(0x1c8)),'children':_0x1c53e9(_0x1a9d64,{'defaultValues':X[_0x1c6806(0x1f3)]})}),_0x10af09&&_0x1c53e9(Z,{'id':_0x275cd6['Relation'],'label':_0x5677a6['t'](_0x1c6806(0x42a)),'children':_0x1c53e9(_0x43b09c,{'defaultValues':X['relation']})}),_0x2324f4(_0x275b0f)&&_0x1c53e9(Z,{'id':_0x275cd6['LineAndArea'],'label':_0x5677a6['t'](_0x1094d9[_0x1c6806(0x30f)](_0x275b0f,_0x217c21['Area'])?_0x1c6806(0x34b):'bases-dashboard-ui.chart.chartTypes.line'),'children':_0x1c53e9(_0x67621e,{'defaultValues':X[_0x1c6806(0x23f)],'lineStyleControl':'segmented'})}),_0x4c4c0b(_0x275b0f,_0x235cca['Legend'])&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x187)],'label':_0x5677a6['t'](_0x1c6806(0x351)),'children':_0x1c53e9(_0x40abfd,{'defaultValues':X[_0x1c6806(0x409)]})}),_0x4c4c0b(_0x275b0f,_0x235cca['Axes'])&&_0x1108cb(_0x52e8d3,{'children':[_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x39e)],'label':_0x5677a6['t']('bases-dashboard-ui.chart.common.horizontalAxis'),'children':_0x1c53e9(_0x54bdb3,{'axis':'x','defaultValues':X['axis'],'NumberFormatField':_0x1fdd9c})}),_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x3a5)],'label':_0x5677a6['t'](_0x1c6806(0x2cf)),'children':_0x1c53e9(_0x54bdb3,{'axis':'y','defaultValues':X[_0x1c6806(0x359)],'NumberFormatField':_0x1fdd9c})}),_0x1c53e9(_0x461f63,{'section':'depthAxis'}),_0x464efb&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x3ef)],'label':_0x5677a6['t'](_0x1c6806(0x476)),'children':_0x1c53e9(_0x54bdb3,{'axis':_0x1c6806(0x209),'defaultValues':X['axis'],'NumberFormatField':_0x1fdd9c})}),_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x247)],'label':_0x5677a6['t'](_0x1c6806(0x413)),'children':_0x1c53e9(_0xd55416,{'defaultValues':X[_0x1c6806(0x359)]})})]}),_0x4c4c0b(_0x275b0f,_0x235cca[_0x1c6806(0x19c)])&&_0x1c53e9(Z,{'id':_0x275cd6['IndicatorLine'],'label':_0x5677a6['t'](_0x1c6806(0x31a)),'children':_0x1c53e9(_0x4e8f14,{'defaultValues':X[_0x1c6806(0x3d1)]})}),_0x23f1e4(_0x275b0f)&&_0x1c53e9(Z,{'id':_0x275cd6['Trendline'],'label':_0x5677a6['t'](_0x1c6806(0x417)),'children':_0x1c53e9(_0x2d84a4,{'defaultValues':X[_0x1c6806(0x2cb)]})}),_0x27f116&&_0x1c53e9(Z,{'id':_0x27f116['id'],'label':_0x27f116['label'],'children':_0x1c53e9(_0x359635,{})})]});}function ri(_0x5e68ae,_0x24f253){const _0x37d778=_0xbfff20;let _0xe4413b={[_0x217c21[_0x37d778(0x360)]]:{'id':_0x275cd6[_0x37d778(0x360)],'localeKey':_0x37d778(0x2b3)},[_0x217c21[_0x37d778(0x2f3)]]:{'id':_0x275cd6[_0x37d778(0x2f3)],'localeKey':_0x37d778(0x26f)},[_0x217c21[_0x37d778(0x3a2)]]:{'id':_0x275cd6[_0x37d778(0x3a2)],'localeKey':_0x37d778(0x2ca)},[_0x217c21['Sunburst']]:{'id':_0x275cd6[_0x37d778(0x23b)],'localeKey':_0x37d778(0x399)},[_0x217c21[_0x37d778(0x38f)]]:{'id':_0x275cd6[_0x37d778(0x38f)],'localeKey':_0x37d778(0x1d3)},[_0x217c21[_0x37d778(0x44d)]]:{'id':_0x275cd6[_0x37d778(0x44d)],'localeKey':_0x37d778(0x411)}}[_0x5e68ae];return _0xe4413b?{'id':_0xe4413b['id'],'label':_0x24f253['t'](_0xe4413b[_0x37d778(0x39b)])}:null;}function ii(_0x33b29d){const _0x4b3719=_0xbfff20;return _0x4b3719(0x408)+_0x33b29d;}function ai({onChange:_0x161e22,onEditData:_0x1a6e35,runtime:_0x111503,sourceChart:_0x20abc4,sourceName:_0x2dc508,widget:_0x9cecd8}){const _0x17e9b4=_0xbfff20;let _0x321ce5=_0x29f087(Kr),_0xc00f89=_0x29f087(_0x2989fb),[_0x4aae78,_0x1bfbdf]=_0x34e679(_0x39d056[_0x17e9b4(0x491)]),_0x14857d=_0x9cecd8[_0x17e9b4(0x252)]??_0x20abc4,_0x4742fd=_0x548c0f(()=>new _0x439e96(_0x111503[_0x17e9b4(0x1ee)],{'commit':_0x3a21e7=>{const _0x478af1=_0x17e9b4;var _0x3032e0;let _0x25f81d=_0x111503[_0x478af1(0x1ee)],_0x33e6e9=_0x3aa652(_0x3a21e7,{'series':(_0x3032e0=_0x25f81d[_0x478af1(0x167)])==null?void 0x0:_0x3032e0[_0x478af1(0x28b)],'currentChartType':_0x25f81d[_0x478af1(0x288)],'currentStyle':_0x25f81d[_0x478af1(0x2c8)],'currentContext':_0x25f81d[_0x478af1(0x3b5)],'currentDataAggregation':_0x25f81d['dataAggregation']});_0x161e22({..._0x9cecd8,'chart':ei(_0x14857d,_0x33e6e9)})[_0x478af1(0x433)](()=>void 0x0);}}),[_0x14857d,_0x161e22,_0x111503,_0x9cecd8]),_0x19738c=_0x548c0f(()=>_0x5b5e1c(_0x1fbca7['map'](_0x33489b=>({..._0x33489b,'label':_0xc00f89['t'](oi(_0x33489b[_0x17e9b4(0x364)]))}))),[_0xc00f89]);return _0x1c53e9(_0x413b19,{'chartUIService':_0x321ce5,'hostAdapter':_0x4742fd,'children':_0x1108cb('div',{'data-dashboard-chart-inspector':!0x0,'className':_0x17e9b4(0x22b),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0xc00f89['t'](_0x17e9b4(0x1b1)),'className':_0x17e9b4(0x251),'items':[{'label':_0xc00f89['t'](_0x17e9b4(0x242)),'panelId':_0x17e9b4(0x380),'value':_0x39d056['Data']},{'label':_0xc00f89['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x17e9b4(0x248),'value':_0x39d056[_0x17e9b4(0x30a)]}],'value':_0x4aae78,'onChange':_0x1bfbdf}),_0x4aae78===_0x39d056[_0x17e9b4(0x491)]?_0x1c53e9(_0x420eaf,{'id':_0x17e9b4(0x380),'label':_0xc00f89['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x1108cb('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x1c53e9(_0x44e1cd,{'options':_0x19738c}),_0x1c53e9(_0xd07337,{}),_0x1c53e9(_0x2a621a,{}),_0x1c53e9(ti,{}),_0x1c53e9(_0x14bbde,{}),_0x1108cb(_0x17e9b4(0x1e8),{'children':[_0x1c53e9(_0x4ed5df,{'title':_0xc00f89['t'](_0x17e9b4(0x3cb))}),_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':_0x2dc508}),_0x1c53e9(_0x6d25a2,{'className':_0x17e9b4(0x1bb),'onClick':_0x1a6e35,'children':_0xc00f89['t'](_0x17e9b4(0x2c0))})]})]})}):_0x1c53e9(_0x420eaf,{'id':_0x17e9b4(0x248),'label':_0xc00f89['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x1c53e9(ni,{})})]})});}function oi(_0x243852){const _0x262d16=_0xbfff20;return _0x262d16(0x408)+_0x243852;}const si=[_0xbfff20(0x3b8),_0xbfff20(0x2f5),'percent',_0xbfff20(0x33e),_0xbfff20(0x2ce),'compact'];function ci({base:_0x420024,onChange:_0x5af384,onSelectBackgroundImage:_0x5c1f51,widget:_0x18e7e7}){const _0x179c6c=_0xbfff20;var _0x4350f8;let _0x3f7a5e=_0x29f087(_0x2989fb),_0x5e3611=_0x29f087(_0x3fdc71),_0xa22d16=_0x39908a(()=>_0x5e3611['currentTheme$'],_0x5e3611['getCurrentTheme'](),!0x1,[_0x5e3611]),_0xef2564=_0x39908a(()=>_0x5e3611[_0x179c6c(0x419)],_0x5e3611['darkMode'],!0x1,[_0x5e3611]),[_0x23e478,_0xe358ea]=_0x34e679(_0x179c6c(0x490)),[_0x1ac925,_0x511832]=_0x34e679(!0x1),_0x32919f=Sr(_0x18e7e7),_0x18b4f7=_0x420024['getSnapshot']()[_0x179c6c(0x3df)][_0x18e7e7[_0x179c6c(0x335)]],_0x4caaa4=_0x18b4f7==null?void 0x0:_0x18b4f7[_0x179c6c(0x18e)][_0x179c6c(0x1ac)](_0x23eafa=>_0x18b4f7['views'][_0x23eafa]),_0x32b0b1=_0x4caaa4?_0x18b4f7==null?void 0x0:_0x18b4f7[_0x179c6c(0x2b9)][_0x4caaa4]:void 0x0,_0xa7290b=_0x18b4f7&&_0x32b0b1?_0xacf6bd(_0x420024[_0x179c6c(0x373)](),_0x18b4f7,_0x32b0b1)[_0x179c6c(0x1fd)](_0x404910=>({..._0x404910,'current':!0x1})):[],_0x26d161=((_0x4350f8=_0x18e7e7['shapeData'][_0x179c6c(0x226)])==null?void 0x0:_0x4350f8[_0x179c6c(0x495)])??'',_0x2f0fd1=_0x5112cb=>_0x5af384(Cr(_0x18e7e7,_0x5112cb))[_0x179c6c(0x433)](()=>void 0x0),_0x4ffcd5=_0x4c41f4=>_0x5af384({..._0x18e7e7,'description':_0x4c41f4})['catch'](()=>void 0x0);return _0x1108cb('div',{'data-dashboard-formula-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x1c53e9(_0x4fe720,{'className':_0x179c6c(0x398),'items':[{'value':_0x179c6c(0x490),'label':_0x3f7a5e['t'](_0x179c6c(0x203))},{'value':'style','label':_0x3f7a5e['t'](_0x179c6c(0x49a))}],'value':_0x23e478,'onChange':_0xe358ea}),_0x1c53e9(_0x179c6c(0x1e8),{'className':_0x179c6c(0x298),'children':_0x23e478===_0x179c6c(0x490)?_0x1108cb(_0x179c6c(0x1e8),{'className':_0x179c6c(0x48b),'children':[_0x1c53e9(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x243)),'children':_0x1c53e9(_0x1b54d7,{'value':_0x18e7e7[_0x179c6c(0x429)]??_0x18e7e7[_0x179c6c(0x236)]??'','onChange':_0x4ffcd5,'onBlur':_0x4c15c3=>_0x4ffcd5(_0x4c15c3[_0x179c6c(0x1cb)][_0x179c6c(0x1b5)])})}),_0x1c53e9(li,{'label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.dataSource'),'children':_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':(_0x18b4f7==null?void 0x0:_0x18b4f7[_0x179c6c(0x3ca)])??_0x3f7a5e['t'](_0x179c6c(0x1ad))})}),_0x1108cb(li,{'label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.formula'),'children':[_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':_0x200012(_0x26d161,_0xa7290b)}),_0x1c53e9(_0x6d25a2,{'className':'univer-mt-2\x20univer-w-full','onClick':()=>_0x511832(!0x0),'children':_0x3f7a5e['t'](_0x179c6c(0x366))})]})]}):_0x1108cb('div',{'className':'univer-grid\x20univer-gap-4','children':[_0x1c53e9(_0x4931cb,{'emptyLabel':_0x3f7a5e['t'](_0x179c6c(0x41b)),'label':_0x3f7a5e['t'](_0x179c6c(0x41b)),'pickerFallbackValue':_0xef2564?_0xa22d16[_0x179c6c(0x45c)][0x384]:_0xa22d16['gray'][0x0],'resetLabel':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x32919f[_0x179c6c(0x33d)]??null,'onChange':_0x58c975=>_0x2f0fd1({'backgroundColor':_0x58c975??void 0x0})}),_0x1108cb(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x28a)),'children':[_0x1108cb(_0x179c6c(0x1e8),{'className':_0x179c6c(0x30b),'children':[_0x1108cb(_0x6d25a2,{'className':_0x179c6c(0x436),'onClick':()=>{const _0x5c76c0=_0x179c6c;_0x5c1f51()[_0x5c76c0(0x271)](_0x337481=>{const _0xd9c2c2=_0x5c76c0;if(_0x337481){var _0x94060b;return _0x2f0fd1({'backgroundImage':{..._0x337481,'fit':((_0x94060b=_0x32919f[_0xd9c2c2(0x345)])==null?void 0x0:_0x94060b[_0xd9c2c2(0x290)])??'cover'}});}})['catch'](()=>void 0x0);},'children':[_0x1c53e9(_0x34be53,{}),_0x32919f[_0x179c6c(0x345)]?_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.replaceImage'):_0x3f7a5e['t'](_0x179c6c(0x1bc))]}),_0x32919f['backgroundImage']&&_0x1c53e9(_0x6d25a2,{'aria-label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'onClick':()=>_0x2f0fd1({'backgroundImage':void 0x0}),'children':_0x1c53e9(_0x48daea,{})})]}),_0x32919f['backgroundImage']&&_0x1c53e9(_0x4fe720,{'className':_0x179c6c(0x313),'items':[{'value':_0x179c6c(0x2b8),'label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x179c6c(0x26b),'label':_0x3f7a5e['t'](_0x179c6c(0x483))}],'value':_0x32919f[_0x179c6c(0x345)][_0x179c6c(0x290)],'onChange':_0x4d65c5=>_0x2f0fd1({'backgroundImage':_0x32919f[_0x179c6c(0x345)]?{..._0x32919f[_0x179c6c(0x345)],'fit':_0x4d65c5}:void 0x0})})]}),_0x1c53e9(_0x4931cb,{'emptyLabel':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x3f7a5e['t'](_0x179c6c(0x384)),'pickerFallbackValue':_0xef2564?_0xa22d16[_0x179c6c(0x45c)][0x32]:_0xa22d16[_0x179c6c(0x45c)][0x3e8],'resetLabel':_0x3f7a5e['t'](_0x179c6c(0x272)),'value':_0x32919f['textColor']??null,'onChange':_0x2b61b1=>_0x2f0fd1({'textColor':_0x2b61b1??void 0x0})}),_0x1c53e9(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x316)),'children':_0x1c53e9(_0x4fe720,{'items':[{'value':_0x179c6c(0x297),'label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':'center','label':_0x3f7a5e['t'](_0x179c6c(0x207))},{'value':_0x179c6c(0x2e0),'label':_0x3f7a5e['t'](_0x179c6c(0x24b))}],'value':_0x32919f['alignment'],'onChange':_0x19fa72=>_0x2f0fd1({'alignment':_0x19fa72})})}),_0x1108cb(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x32f)),'children':[_0x1c53e9(_0x4fe720,{'items':[{'value':_0x179c6c(0x2fd),'label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':_0x179c6c(0x22d),'label':_0x3f7a5e['t'](_0x179c6c(0x238))}],'value':_0x32919f[_0x179c6c(0x1ab)],'onChange':_0x2c4b82=>_0x2f0fd1({'fontSizeMode':_0x2c4b82})}),_0x32919f[_0x179c6c(0x1ab)]===_0x179c6c(0x22d)&&_0x1c53e9(_0x5a3ae3,{'className':_0x179c6c(0x313),'min':0xc,'max':0x78,'value':_0x32919f[_0x179c6c(0x320)],'onChange':_0x3fe61c=>_0x2f0fd1({'fontSize':_0x3fe61c??0x28,'fontSizeMode':'custom'})})]}),_0x1c53e9(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x381)),'children':_0x1c53e9(Jr,{'value':_0x32919f[_0x179c6c(0x4a5)],'options':[{'value':'general','label':_0x3f7a5e['t'](_0x179c6c(0x376))},{'value':_0x179c6c(0x2f5),'label':_0x3f7a5e['t'](_0x179c6c(0x27f))},{'value':_0x179c6c(0x28d),'label':_0x3f7a5e['t'](_0x179c6c(0x31b))},{'value':_0x179c6c(0x33e),'label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.currency')},{'value':_0x179c6c(0x2ce),'label':_0x3f7a5e['t'](_0x179c6c(0x451))},{'value':_0x179c6c(0x3eb),'label':_0x3f7a5e['t'](_0x179c6c(0x36f))}],'onChange':_0x57ba02=>{let _0x2bf452=si['find'](_0x2a1550=>_0x2a1550===_0x57ba02);_0x2bf452&&_0x2f0fd1({'numberFormat':_0x2bf452});}})}),_0x32919f[_0x179c6c(0x4a5)]==='currency'&&_0x1c53e9(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x211)),'children':_0x1c53e9(_0x1b54d7,{'value':_0x32919f[_0x179c6c(0x33e)],'onChange':_0x2190cf=>_0x2f0fd1({'currency':_0x2190cf[_0x179c6c(0x26a)](0x0,0x3)[_0x179c6c(0x49e)]()})})}),_0x32919f[_0x179c6c(0x4a5)]!==_0x179c6c(0x3b8)&&_0x1c53e9(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x20b)),'children':_0x1c53e9(_0x5a3ae3,{'min':0x0,'max':0x8,'value':_0x32919f['decimalPlaces'],'onChange':_0x5a5833=>_0x2f0fd1({'decimalPlaces':_0x5a5833??0x0})})})]})}),_0x1ac925&&_0x1c53e9(Xr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1c53e9(_0x5e5ef4,{'tables':_0xa7290b,'formula':_0x200012(_0x26d161,_0xa7290b),'onCancel':()=>_0x511832(!0x1),'onSave':_0x191db2=>{const _0x994861=_0x179c6c;let _0x393ad7=_0x18e7e7[_0x994861(0x18a)][_0x994861(0x226)]??{'formula':''};return _0x5af384({..._0x18e7e7,'shapeData':{..._0x18e7e7[_0x994861(0x18a)],'formulaBinding':{..._0x393ad7,'formula':_0x359363(_0x191db2,_0xa7290b)}}})[_0x994861(0x271)](()=>_0x511832(!0x1))[_0x994861(0x433)](()=>void 0x0);}})})]});}function li({children:_0x42a216,label:_0x360096}){const _0x3e0995=_0xbfff20;return _0x1108cb(_0x3e0995(0x1e8),{'role':_0x3e0995(0x161),'aria-label':_0x360096,'className':_0x3e0995(0x277),'children':[_0x1c53e9(_0x3e0995(0x213),{'children':_0x360096}),_0x42a216]});}function ui({disabled:_0x2de3ce,fields:_0x5097d9,filter:_0x1c130c,onChange:_0x11afaa}){const _0x592ef6=_0xbfff20;let _0x24ac3c=_0x29f087(_0x3927ed)[_0x592ef6(0x35c)]??null,[_0x5b059d,_0x2a2d56]=_0x34e679(null),_0x533095=_0x29f087(_0x2989fb),_0x5bee87=(_0x1c130c==null?void 0x0:_0x1c130c[_0x592ef6(0x232)])??[];if(!_0x5bee87[_0x592ef6(0x2df)])return _0x1108cb(_0x592ef6(0x1e8),{'className':_0x592ef6(0x40e),'children':[_0x1c53e9(_0xad9ba4,{'className':_0x592ef6(0x30c)}),_0x1c53e9(_0x592ef6(0x213),{'className':_0x592ef6(0x479),'children':_0x533095['t']('bases-dashboard-ui.dashboard.tableFilter')})]});let _0x8d3ea9=_0x5b059d==null?void 0x0:_0x5bee87[_0x5b059d],_0x1aae5b=_0x5097d9[_0x592ef6(0x1ac)](_0x5638af=>_0x5638af['id']===(_0x8d3ea9==null?void 0x0:_0x8d3ea9[_0x592ef6(0x17d)]));return _0x1108cb(_0x592ef6(0x1e8),{'className':_0x592ef6(0x3e7),'children':[_0x5bee87[_0x592ef6(0x1fd)]((_0x365fc6,_0x34f86c)=>{const _0x14de37=_0x592ef6;var _0x272fc4;return _0x1108cb(_0x6d25a2,{'disabled':_0x2de3ce,'onClick':()=>_0x2a2d56(_0x34f86c),'children':[_0x1c53e9(_0x14de37(0x213),{'children':((_0x272fc4=_0x5097d9[_0x14de37(0x1ac)](_0x38a5fc=>_0x38a5fc['id']===_0x365fc6[_0x14de37(0x17d)]))==null?void 0x0:_0x272fc4[_0x14de37(0x3ca)])??_0x365fc6[_0x14de37(0x17d)]}),_0x1c53e9(_0x14de37(0x213),{'className':_0x14de37(0x3aa),'children':String(_0x365fc6[_0x14de37(0x377)]??'')})]},_0x365fc6['fieldId']+'-'+_0x34f86c);}),_0x1aae5b&&_0x8d3ea9&&_0x5b059d!=null&&_0x24ac3c&&_0x3ae99d(_0x1c53e9(_0x2a8e30,{'field':_0x1aae5b,'value':_0x8d3ea9[_0x592ef6(0x377)],'onClose':()=>_0x2a2d56(null),'onSave':_0x334bc7=>{const _0xd53cc9=_0x592ef6;_0x11afaa({'conjunction':(_0x1c130c==null?void 0x0:_0x1c130c['conjunction'])??_0x4854b1[_0xd53cc9(0x2b0)],'conditions':_0x5bee87[_0xd53cc9(0x1fd)]((_0x146db1,_0x5e1e40)=>_0x5e1e40===_0x5b059d?{..._0x146db1,'operand':_0x334bc7}:_0x146db1)}),_0x2a2d56(null);}}),_0x24ac3c)]});}function di({fields:_0x985c85,filter:_0xdff69e,onChange:_0x178b7d,onClear:_0x524108}){const _0x53db98=_0xbfff20;let _0x2dd381=_0x29f087(_0x2989fb);return _0x1108cb(_0x53db98(0x1e8),{'children':[_0x1c53e9(_0x40f4ca,{'fields':_0x985c85,'value':_0xdff69e??{'conjunction':_0x4854b1[_0x53db98(0x2b0)],'conditions':[]},'onChange':_0x178b7d}),_0x1c53e9(_0x6d25a2,{'onClick':_0x524108,'children':_0x2dd381['t'](_0x53db98(0x272))})]});}function fi({base:_0x1e66d9,chartRuntime:_0x1b94f8,onChange:_0x290d5b,onClose:_0x2ee278,onSelectBackgroundImage:_0x1ed1ef,onSelectImage:_0x4d5607,unitId:_0x3e6d5d,widget:_0x383b4c}){const _0x256852=_0xbfff20;let _0x36e8ae=_0x29f087(_0x2220df),_0x25feec=_0x29f087(_0x2989fb),_0x239e0d=_0x1e66d9['getSnapshot'](),_0x457123=_0x256852(0x335)in _0x383b4c?_0x239e0d[_0x256852(0x3df)][_0x383b4c[_0x256852(0x335)]]:void 0x0,_0x2df438=_0x383b4c[_0x256852(0x427)]===_0x1402ed[_0x256852(0x3c8)]?_0x457123==null?void 0x0:_0x457123[_0x256852(0x2b9)][_0x383b4c['pivotViewId']]:void 0x0,_0x33e563=_0x25feec['t'](yi(_0x383b4c)),_0x1fe8ee=_0x1108cb(_0x256852(0x1fb),{'data-dashboard-inspector':!0x0,'className':_0x256852(0x20a),'children':[_0x383b4c[_0x256852(0x427)]===_0x1402ed[_0x256852(0x3c8)]&&(vi(_0x2df438)&&_0x1b94f8?_0x1c53e9(ai,{'runtime':_0x1b94f8,'sourceChart':_0x2df438['config'][_0x256852(0x252)],'sourceName':((_0x457123==null?void 0x0:_0x457123['name'])??'')+_0x256852(0x2db)+_0x2df438['name'],'widget':_0x383b4c,'onChange':_0x290d5b,'onEditData':()=>{const _0x220b91=_0x256852;_0x36e8ae['executeCommand'](_0x24a280['id'],{'unitId':_0x3e6d5d,'tableId':_0x383b4c[_0x220b91(0x335)],'viewId':_0x383b4c[_0x220b91(0x1b6)]})[_0x220b91(0x433)](()=>void 0x0);}}):_0x1c53e9(gi,{'message':vi(_0x2df438)?_0x25feec['t']('bases-dashboard-ui.dashboardInspector.loading'):_0x25feec['t'](_0x256852(0x1ad))})),_0x383b4c[_0x256852(0x427)]===_0x1402ed[_0x256852(0x1d9)]&&_0x1c53e9(ci,{'base':_0x1e66d9,'widget':_0x383b4c,'onChange':_0x290d5b,'onSelectBackgroundImage':_0x1ed1ef}),_0x383b4c[_0x256852(0x427)]===_0x1402ed[_0x256852(0x287)]&&_0x1c53e9(mi,{'base':_0x1e66d9,'onChange':_0x290d5b,'widget':_0x383b4c}),_0x383b4c['type']===_0x1402ed[_0x256852(0x194)]&&_0x1c53e9(hi,{'onChange':_0x290d5b,'widget':_0x383b4c}),_0x383b4c[_0x256852(0x427)]===_0x1402ed[_0x256852(0x471)]&&_0x1c53e9(pi,{'onChange':_0x290d5b,'onSelectImage':_0x4d5607,'widget':_0x383b4c})]});return _0x1c53e9(_0xbfe7,{'title':_0x33e563,'onClose':_0x2ee278,'children':_0x1fe8ee});}function pi({onChange:_0x30565e,onSelectImage:_0x2af728,widget:_0x56d5fd}){const _0x38daef=_0xbfff20;let _0x123648=_0x29f087(_0x2989fb);return _0x1108cb(_0x38daef(0x1e8),{'className':_0x38daef(0x481),'children':[_0x1108cb(_0x6d25a2,{'className':_0x38daef(0x449),'onClick':()=>_0x2af728()[_0x38daef(0x271)](_0x36e2a0=>_0x36e2a0&&_0x30565e({..._0x56d5fd,'source':_0x36e2a0[_0x38daef(0x2ad)],'sourceType':_0x36e2a0[_0x38daef(0x18c)],'alt':_0x36e2a0[_0x38daef(0x3ca)]}))[_0x38daef(0x433)](()=>void 0x0),'children':[_0x1c53e9(_0x34be53,{}),_0x123648['t'](_0x38daef(0x3b0))]}),_0x1108cb('label',{'className':_0x38daef(0x277),'children':[_0x1c53e9(_0x38daef(0x213),{'children':_0x123648['t'](_0x38daef(0x28a))}),_0x1c53e9(_0x4fe720,{'items':[{'value':'cover','label':_0x123648['t'](_0x38daef(0x22f))},{'value':'repeat','label':_0x123648['t'](_0x38daef(0x1de))},{'value':'original','label':_0x123648['t'](_0x38daef(0x3db))}],'value':_0x56d5fd['displayMode']??_0x38daef(0x2b8),'onChange':_0x32c9e9=>_0x30565e({..._0x56d5fd,'displayMode':_0x32c9e9})[_0x38daef(0x433)](()=>void 0x0)})]})]});}function mi({base:_0x41b691,onChange:_0x48de97,widget:_0xdfe8fa}){const _0x25a205=_0xbfff20;let _0x542184=_0x41b691['getSnapshot']()[_0x25a205(0x3df)][_0xdfe8fa[_0x25a205(0x335)]],_0x238105=_0x542184==null?void 0x0:_0x542184[_0x25a205(0x18e)][_0x25a205(0x1ac)](_0x546a0d=>_0x542184[_0x25a205(0x2b9)][_0x546a0d]),_0x20875c=_0x238105?_0x542184==null?void 0x0:_0x542184[_0x25a205(0x2b9)][_0x238105]:void 0x0,_0x473718=_0x542184&&_0x20875c?_0x173f22(_0x542184,_0x20875c):[];return _0x1c53e9(di,{'fields':_0x473718,'filter':_0xdfe8fa[_0x25a205(0x2be)],'onChange':_0x15c56d=>_0x48de97({..._0xdfe8fa,'filter':_0x15c56d})[_0x25a205(0x433)](()=>void 0x0),'onClear':()=>_0x48de97({..._0xdfe8fa,'filter':null})['catch'](()=>void 0x0)});}function hi({onChange:_0x4216aa,widget:_0x1b73f3}){const _0xd16fbe=_0xbfff20;let _0x21c41c=_0x29f087(_0x2989fb),_0x4dacd7=_0x29f087(_0x3fdc71),_0x2732c4=_0x39908a(()=>_0x4dacd7[_0xd16fbe(0x1d1)],_0x4dacd7[_0xd16fbe(0x21f)](),!0x1,[_0x4dacd7]),_0x6d0010=Vr(_0x1b73f3),_0x17c7d8=_0x16bfd0=>_0x4216aa({..._0x1b73f3,'appearance':{..._0x6d0010,..._0x16bfd0}})[_0xd16fbe(0x433)](()=>void 0x0);return _0x1108cb('div',{'className':_0xd16fbe(0x442),'children':[_0x1c53e9(_0x435e56,{'className':'univer-max-h-40\x20univer-text-base','defaultValue':Hr(_0x1b73f3[_0xd16fbe(0x27c)]),'rows':0x8,'onBlur':_0x2fcd4d=>_0x4216aa({..._0x1b73f3,'document':Ur(_0x1b73f3[_0xd16fbe(0x27c)],_0x2fcd4d[_0xd16fbe(0x1cb)][_0xd16fbe(0x1b5)])})[_0xd16fbe(0x433)](()=>void 0x0)}),_0x1c53e9(_0x4931cb,{'emptyLabel':_0x21c41c['t'](_0xd16fbe(0x41b)),'label':_0x21c41c['t'](_0xd16fbe(0x41b)),'pickerFallbackValue':_0x2732c4[_0xd16fbe(0x45c)][0x0],'resetLabel':_0x21c41c['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x6d0010[_0xd16fbe(0x33d)]??null,'onChange':_0x303f30=>_0x17c7d8({'backgroundColor':_0x303f30??void 0x0})}),_0x1c53e9(_0x4931cb,{'emptyLabel':_0x21c41c['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x21c41c['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x2732c4[_0xd16fbe(0x45c)][0x3e8],'resetLabel':_0x21c41c['t'](_0xd16fbe(0x272)),'value':_0x6d0010[_0xd16fbe(0x42f)]??null,'onChange':_0x10fac1=>_0x17c7d8({'textColor':_0x10fac1??void 0x0})}),_0x1c53e9(_i,{'label':_0x21c41c['t'](_0xd16fbe(0x316)),'children':_0x1c53e9(_0x4fe720,{'items':[{'value':_0xd16fbe(0x297),'label':_0x21c41c['t'](_0xd16fbe(0x3ed))},{'value':_0xd16fbe(0x34f),'label':_0x21c41c['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':'right','label':_0x21c41c['t'](_0xd16fbe(0x24b))}],'value':_0x6d0010[_0xd16fbe(0x2c1)],'onChange':_0x13ea9f=>_0x17c7d8({'alignment':_0x13ea9f})})}),_0x1108cb(_i,{'label':_0x21c41c['t'](_0xd16fbe(0x32f)),'children':[_0x1c53e9(_0x4fe720,{'items':[{'value':_0xd16fbe(0x2fd),'label':_0x21c41c['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':_0xd16fbe(0x22d),'label':_0x21c41c['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x6d0010[_0xd16fbe(0x1ab)],'onChange':_0x3923a9=>_0x17c7d8({'fontSizeMode':_0x3923a9})}),_0x6d0010[_0xd16fbe(0x1ab)]===_0xd16fbe(0x22d)&&_0x1c53e9(_0x5a3ae3,{'className':_0xd16fbe(0x313),'min':0xa,'max':0x78,'value':_0x6d0010[_0xd16fbe(0x320)],'onChange':_0x21dacf=>_0x17c7d8({'fontSize':_0x21dacf??0x12,'fontSizeMode':_0xd16fbe(0x22d)})})]})]});}function gi({message:_0x4d22e4}){const _0x382c92=_0xbfff20;return _0x1c53e9(_0x382c92(0x1e8),{'className':_0x382c92(0x1bf),'children':_0x4d22e4});}function _i({children:_0x26d107,label:_0x1ae286}){const _0x4b23a5=_0xbfff20;return _0x1108cb(_0x4b23a5(0x1e8),{'role':_0x4b23a5(0x161),'aria-':!0x0,'className':_0x4b23a5(0x277),'children':[_0x1c53e9('span',{'children':_0x1ae286}),_0x26d107]});}function vi(_0x291aa5){const _0x451283=_0xbfff20;return(_0x291aa5==null?void 0x0:_0x291aa5[_0x451283(0x427)])===_0x54a718[_0x451283(0x2c9)]&&typeof _0x291aa5[_0x451283(0x167)]==_0x451283(0x235)&&_0x291aa5['config']!==null&&_0x451283(0x274)in _0x291aa5['config']&&_0x451283(0x252)in _0x291aa5[_0x451283(0x167)];}function yi(_0x1c4c68){const _0x2abaaf=_0xbfff20;switch(_0x1c4c68[_0x2abaaf(0x427)]){case _0x1402ed[_0x2abaaf(0x3c8)]:return _0x2abaaf(0x303);case _0x1402ed[_0x2abaaf(0x287)]:return'bases-dashboard-ui.dashboard.tableFilter';case _0x1402ed[_0x2abaaf(0x194)]:return _0x2abaaf(0x3ba);case _0x1402ed[_0x2abaaf(0x471)]:return _0x2abaaf(0x279);case _0x1402ed[_0x2abaaf(0x1d9)]:return _0x2abaaf(0x47b);}}function bi({onDelete:_0x1853cb,onEdit:_0x11ca52,onMoveUp:_0x488931,onMoveDown:_0x23c9ba}){const _0x374182=_0xbfff20;let [_0x1ac562,_0x1826a8]=_0x34e679(!0x1),_0x4d1c59=_0x29f087(_0x2989fb),_0x53c89a=_0x4d1c59['t'](_0x374182(0x2a1)),_0x2ac33e=_0x4d1c59['t'](_0x374182(0x164)),_0x30c3d4=_0x4d1c59['t']('bases-dashboard-ui.dashboard.widgetActions'),_0x10b322=[{'type':_0x374182(0x2c2),'children':_0x1108cb(_0x374182(0x213),{'className':_0x374182(0x208),'children':[_0x1c53e9(_0xddf888,{'className':_0x374182(0x305),'aria-hidden':_0x374182(0x354)}),_0x1c53e9(_0x374182(0x213),{'children':_0x53c89a})]}),'onSelect':_0x11ca52},..._0x488931?[{'type':_0x374182(0x2c2),'children':_0x1108cb(_0x374182(0x213),{'className':_0x374182(0x208),'children':[_0x1c53e9(_0x54c046,{'className':_0x374182(0x305),'aria-hidden':_0x374182(0x354)}),_0x1c53e9(_0x374182(0x213),{'children':_0x4d1c59['t'](_0x374182(0x45e))})]}),'onSelect':_0x488931}]:[],..._0x23c9ba?[{'type':'item','children':_0x1108cb('span',{'className':_0x374182(0x208),'children':[_0x1c53e9(_0x55a2db,{'className':'univer-size-4','aria-hidden':'true'}),_0x1c53e9('span',{'children':_0x4d1c59['t'](_0x374182(0x1b4))})]}),'onSelect':_0x23c9ba}]:[],{'type':_0x374182(0x174)},{'type':_0x374182(0x2c2),'variant':_0x374182(0x195),'children':_0x1108cb(_0x374182(0x213),{'className':_0x374182(0x208),'children':[_0x1c53e9(_0x48daea,{'className':_0x374182(0x305),'aria-hidden':'true'}),_0x1c53e9(_0x374182(0x213),{'children':_0x2ac33e})]}),'onSelect':_0x1853cb}];return _0x1c53e9(_0x440082,{'open':_0x1ac562,'onOpenChange':_0x1826a8,'align':_0x374182(0x221),'sideOffset':0x4,'items':_0x10b322['map'](_0x501304=>({..._0x501304,'className':_0x501304[_0x374182(0x427)]===_0x374182(0x2c2)?_0x374182(0x1ef):void 0x0})),'children':_0x1c53e9(_0x6d25a2,{'type':_0x374182(0x2d8),'size':'small','variant':_0x374182(0x173),'onPointerDown':_0x54cc6d=>_0x54cc6d[_0x374182(0x2ea)](),'onClick':()=>_0x1826a8(_0x288069=>!_0x288069),'title':_0x30c3d4,'aria-label':_0x30c3d4,'className':_0x374182(0x346),'children':_0x1c53e9(_0x122b7c,{'className':_0x374182(0x305),'aria-hidden':_0x374182(0x354)})})});}function xi({dashboardId:_0x3dd649,presentation:_0x2eecab=!0x1,unitId:_0x12c6f9}){const _0x10e9c8=_0xbfff20;let _0x2e6ca4=_0x29f087(_0x38337e),_0x36a628=_0x29f087(_0x4b64cf);_0x39908a(_0x36a628['changed$'],0x0);let _0x3adb4f=_0x29f087(_0x2220df),_0x742f5c=_0x29f087(_0x3107a8),_0x3d1a05=_0x29f087(_0x4fbe75),_0x4f1125=_0x29f087(_0x14186a),_0x4b85f6=_0x29f087(_0x2989fb),_0x21da88=_0x29f087(_0x309002),_0x1b980b=_0x29f087(_0x1daf4e),[_0xc8fa12,_0x308e2a]=_0x34e679(!0x1),[_0x191cf7,_0x131139]=_0x34e679(),[_0x94bbec,_0x4f7935]=_0x34e679(!0x1),[_0x1b6ac4,_0x182cc5]=_0x34e679(()=>new Map()),_0x31b78f=_0xdcfb42((_0xb78698,_0x36815a)=>{_0x182cc5(_0x8426be=>{const _0x53d515=_0x5dbe;let _0x1ed7f1=new Map(_0x8426be);return _0x36815a?_0x1ed7f1['set'](_0xb78698,_0x36815a):_0x1ed7f1[_0x53d515(0x375)](_0xb78698),_0x1ed7f1;});},[]),_0x2a53f1=_0x39908a(()=>_0x21da88[_0x10e9c8(0x2bc)][_0x10e9c8(0x472)](_0x3fca8e(()=>_0x21da88[_0x10e9c8(0x34a)](_0x12c6f9,_0x3dd649))),_0x21da88[_0x10e9c8(0x34a)](_0x12c6f9,_0x3dd649),!0x1,[_0x3dd649,_0x21da88,_0x12c6f9]),_0x1d493e=_0x4f1125[_0x10e9c8(0x454)](_0x12c6f9,_0x37ea54[_0x10e9c8(0x2e2)]),_0x119de3=_0x39908a(()=>_0x1b980b[_0x10e9c8(0x29c)],{'undos':0x0,'redos':0x0},!0x1,[_0x1b980b]),_0x2f334c=_r(_0x12c6f9,_0x3dd649);if(_0x436796(()=>{const _0x4b5854=_0x10e9c8;_0x4f1125['setCurrentUnitForType'](_0x12c6f9),_0x4f1125[_0x4b5854(0x177)](_0x12c6f9);},[_0x4f1125,_0x12c6f9]),!_0x2a53f1||!_0x1d493e)return null;let _0x16f237={'unitId':_0x12c6f9,'objectId':_0x3f3aa0(_0x3dd649),'objectType':_0x26ad9b[_0x10e9c8(0x24f)]},_0x28a74d=(_0x5a11f5,_0xbddb21)=>{const _0x423b1d=_0x10e9c8;let _0x871622=[..._0x2a53f1[_0x423b1d(0x3b1)]],_0x202374=_0x871622[_0x423b1d(0x494)](_0x5a11f5),_0x365f27=_0x202374+_0xbddb21;if(!(_0x202374<0x0||_0x365f27<0x0||_0x365f27>=_0x871622['length']))return[_0x871622[_0x202374],_0x871622[_0x365f27]]=[_0x871622[_0x365f27],_0x871622[_0x202374]],_0x3adb4f[_0x423b1d(0x42e)](_0x39c855['id'],{'unitId':_0x12c6f9,'dashboard':{..._0x2a53f1,'widgetOrder':_0x871622}});},_0x7963f7=_0x36ff41=>_0x3adb4f['executeCommand'](_0x1c8540['id'],{'unitId':_0x12c6f9,'dashboardId':_0x3dd649,'widget':_0x36ff41})[_0x10e9c8(0x433)](()=>void 0x0),_0x5a7293=(_0x3416a8,_0x462cf6,_0x4d467e)=>{const _0x22f873=_0x10e9c8;let _0x132c22=Math[_0x22f873(0x43f)](0x0,..._0x2a53f1[_0x22f873(0x3b1)]['flatMap'](_0x2eeb0c=>{const _0x3b6f77=_0x22f873;var _0x26e681;let _0x1695c7=(_0x26e681=_0x2a53f1[_0x3b6f77(0x280)][_0x2eeb0c])==null?void 0x0:_0x26e681[_0x3b6f77(0x2fc)];return _0x1695c7?[_0x1695c7['row']+_0x1695c7['rowSpan']]:[];})),_0x328dc1='dashboard-widget-'+_0xd28735(0x8),_0x1b8c93={'column':0x0,'row':_0x132c22,'columnSpan':_0x462cf6,'rowSpan':_0x4d467e};switch(_0x3416a8[_0x22f873(0x427)]){case _0x1402ed[_0x22f873(0x3c8)]:return _0x7963f7({..._0x3416a8,'id':_0x328dc1,'layout':_0x1b8c93});case _0x1402ed[_0x22f873(0x287)]:return _0x7963f7({..._0x3416a8,'id':_0x328dc1,'layout':_0x1b8c93});case _0x1402ed[_0x22f873(0x194)]:return _0x7963f7({..._0x3416a8,'id':_0x328dc1,'layout':_0x1b8c93});case _0x1402ed[_0x22f873(0x471)]:return _0x7963f7({..._0x3416a8,'id':_0x328dc1,'layout':_0x1b8c93});case _0x1402ed[_0x22f873(0x1d9)]:return _0x7963f7({..._0x3416a8,'id':_0x328dc1,'layout':_0x1b8c93});}},_0x33e07f=_0x1d493e[_0x10e9c8(0x373)](),_0x397cdf=_0x33e07f[_0x10e9c8(0x32d)][_0x10e9c8(0x31f)](_0x52fe67=>{const _0x3b2c39=_0x10e9c8;let _0x48c8c9=_0x33e07f['tables'][_0x52fe67];if(!_0x48c8c9)return[];let _0x13040a=_0x48c8c9['viewOrder'][_0x3b2c39(0x31f)](_0x51fa27=>{const _0x17341a=_0x3b2c39;let _0x9b3127=_0x48c8c9[_0x17341a(0x2b9)][_0x51fa27];return ki(_0x9b3127)?[{'type':_0x17341a(0x2c2),'children':_0x9b3127[_0x17341a(0x3ca)],'onSelect':()=>_0x5a7293({'type':_0x1402ed[_0x17341a(0x3c8)],'tableId':_0x52fe67,'pivotViewId':_0x51fa27,'chart':{..._0x9b3127[_0x17341a(0x167)][_0x17341a(0x252)]}},0x6,0xa)}]:[];});return[{'type':_0x3b2c39(0x466),'children':_0x48c8c9[_0x3b2c39(0x3ca)],'options':[..._0x13040a,..._0x13040a[_0x3b2c39(0x2df)]?[{'type':_0x3b2c39(0x174)}]:[],{'type':'item','children':_0x4b85f6['t']('bases-dashboard-ui.dashboard.tableFilter'),'onSelect':()=>_0x5a7293({'type':_0x1402ed[_0x3b2c39(0x287)],'tableId':_0x52fe67,'filter':null},0x6,0x8)}]}];}),_0x4a32eb=[..._0x397cdf,..._0x397cdf[_0x10e9c8(0x2df)]?[{'type':_0x10e9c8(0x174)}]:[],{'type':_0x10e9c8(0x2c2),'children':_0x4b85f6['t'](_0x10e9c8(0x3ba)),'onSelect':()=>_0x5a7293({'type':_0x1402ed[_0x10e9c8(0x194)],'document':Ti()},0x4,0x6)},{'type':_0x10e9c8(0x2c2),'children':_0x4b85f6['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>Ei(_0x742f5c)['then'](_0x1ef9c7=>_0x1ef9c7&&_0x5a7293({'type':_0x1402ed[_0x10e9c8(0x471)],'source':_0x1ef9c7[_0x10e9c8(0x2ad)],'sourceType':_0x1ef9c7[_0x10e9c8(0x18c)],'alt':_0x1ef9c7[_0x10e9c8(0x3ca)],'displayMode':_0x10e9c8(0x2b8)},0x4,0x6))},{'type':_0x10e9c8(0x2c2),'children':_0x4b85f6['t']('bases-dashboard-ui.dashboard.formulaShape'),'onSelect':()=>{const _0xb35c23=_0x10e9c8;let _0x587101=_0x33e07f[_0xb35c23(0x32d)][_0xb35c23(0x1ac)](_0x2969f9=>_0x33e07f[_0xb35c23(0x3df)][_0x2969f9]);_0x587101&&_0x5a7293({'type':_0x1402ed[_0xb35c23(0x1d9)],'tableId':_0x587101,'shapeType':_0xed2d79['RoundRect'],'shapeData':_0x18c256(),'description':_0x4b85f6['t'](_0xb35c23(0x47b))},0x4,0x6);}}],_0x43476a=_0x191cf7?_0x2a53f1[_0x10e9c8(0x280)][_0x191cf7]:void 0x0,_0xb72483=()=>_0x4f7935(_0x26153e=>!_0x26153e),_0x5a7b09=_0x2eecab||_0x94bbec,_0x47e4b7=_0x2f334c&&!_0x5a7b09;return _0x1c53e9(qr,{'children':_0x1108cb(_0x10e9c8(0x1e8),{'className':_0x10e9c8(0x4ab)+(_0x94bbec?_0x10e9c8(0x3e8):'univer-relative\x20univer-z-10')+_0x10e9c8(0x2b4),'children':[_0x94bbec&&_0x1c53e9(_0x6d25a2,{'onClick':()=>_0x4f7935(!0x1),'children':_0x4b85f6['t'](_0x10e9c8(0x19a))}),!_0x5a7b09&&_0x1108cb('header',{'className':_0x10e9c8(0x180),'children':[_0x1c53e9(_0x396df3,{'className':_0x10e9c8(0x3ec)}),_0x1c53e9('h2',{'className':_0x10e9c8(0x2e8),'children':_0x2a53f1['name']}),_0x36a628[_0x10e9c8(0x26e)](_0x16f237)&&_0x1c53e9(_0x6d25a2,{'variant':_0x10e9c8(0x173),'disabled':!_0x36a628[_0x10e9c8(0x395)](_0x16f237),'aria-label':_0x4b85f6['t'](_0x10e9c8(0x206)),'onClick':()=>{const _0x3f74e1=_0x10e9c8;_0x7236fe(_0x2e6ca4,{'target':_0x16f237,'name':_0x2a53f1[_0x3f74e1(0x3ca)],'commandId':_0x501d41['id'],'exists':()=>!!_0x21da88[_0x3f74e1(0x34a)](_0x12c6f9,_0x3dd649)});},'children':_0x1c53e9(_0x2ff091,{})}),_0x1c53e9(_0x36e7c3,{'unitId':_0x12c6f9}),_0x1c53e9(_0x6d25a2,{'type':'button','size':_0x10e9c8(0x189),'variant':_0x10e9c8(0x173),'aria-label':_0x4b85f6['t']('bases-dashboard-ui.dashboard.undo'),'disabled':!_0x2f334c||_0x119de3['undos']===0x0,'onClick':()=>_0x3adb4f[_0x10e9c8(0x42e)](_0x38c4d5['id'])[_0x10e9c8(0x433)](()=>void 0x0),'children':_0x1c53e9(_0x5d8a74,{})}),_0x1c53e9(_0x6d25a2,{'type':'button','size':_0x10e9c8(0x189),'variant':_0x10e9c8(0x173),'aria-label':_0x4b85f6['t'](_0x10e9c8(0x1c2)),'disabled':!_0x2f334c||_0x119de3[_0x10e9c8(0x47c)]===0x0,'onClick':()=>_0x3adb4f['executeCommand'](_0x413296['id'])[_0x10e9c8(0x433)](()=>void 0x0),'children':_0x1c53e9(_0x421b18,{})}),_0x1c53e9(_0x6d25a2,{'type':_0x10e9c8(0x2d8),'size':_0x10e9c8(0x189),'variant':'text','aria-label':_0x4b85f6['t'](_0x10e9c8(0x1e2)),'onClick':_0xb72483,'children':_0x1c53e9(_0x275a4b,{})}),_0x1c53e9(Yr,{'items':_0x4a32eb,'children':_0x1108cb(_0x6d25a2,{'variant':_0x10e9c8(0x3d2),'disabled':!_0x2f334c,'children':[_0x1c53e9(_0x34be53,{}),_0x4b85f6['t'](_0x10e9c8(0x486))]})})]}),_0x1108cb(_0x10e9c8(0x1e8),{'className':_0x10e9c8(0x447),'children':[_0x1c53e9(_0x10e9c8(0x1e8),{'className':_0x10e9c8(0x3a9),'children':_0x1c53e9(Gr,{'dashboard':_0x2a53f1,'editable':_0x47e4b7,'widgetLabel':_0xc9eaf9=>_0x4b85f6['t'](Oi(_0xc9eaf9[_0x10e9c8(0x427)])),'selectedWidgetId':_0x47e4b7?_0x191cf7:void 0x0,'onSelectWidget':_0x47e4b7?_0x409e16=>{_0x131139(_0x409e16),_0x409e16||_0x308e2a(!0x1);}:void 0x0,'renderWidget':_0x59b09b=>_0x1c53e9(Si,{'base':_0x1d493e,'dashboard':_0x2a53f1,'unitId':_0x12c6f9,'widget':_0x59b09b,'onChange':_0x7963f7,'onChartRuntimeChange':_0x31b78f}),'renderWidgetActions':_0x40c41c=>_0x1c53e9(bi,{'onMoveUp':_0x2a53f1[_0x10e9c8(0x3b1)][_0x10e9c8(0x494)](_0x40c41c['id'])>0x0?()=>_0x28a74d(_0x40c41c['id'],-0x1):void 0x0,'onMoveDown':_0x2a53f1[_0x10e9c8(0x3b1)][_0x10e9c8(0x494)](_0x40c41c['id'])<_0x2a53f1[_0x10e9c8(0x3b1)]['length']-0x1?()=>_0x28a74d(_0x40c41c['id'],0x1):void 0x0,'onEdit':()=>{_0x131139(_0x40c41c['id']),_0x308e2a(!0x0);},'onDelete':()=>{const _0x132ebf=_0x10e9c8;_0x191cf7===_0x40c41c['id']&&(_0x131139(void 0x0),_0x308e2a(!0x1)),_0x3adb4f[_0x132ebf(0x42e)](_0x55f0a4['id'],{'unitId':_0x12c6f9,'dashboardId':_0x3dd649,'widgetId':_0x40c41c['id']})[_0x132ebf(0x433)](()=>void 0x0);}})})}),_0x47e4b7&&_0xc8fa12&&_0x43476a&&_0x1c53e9(fi,{'base':_0x1d493e,'chartRuntime':_0x1b6ac4[_0x10e9c8(0x197)](_0x43476a['id']),'unitId':_0x12c6f9,'widget':_0x43476a,'onChange':_0x7963f7,'onClose':()=>_0x308e2a(!0x1),'onSelectBackgroundImage':()=>Di(_0x3d1a05),'onSelectImage':()=>Ei(_0x742f5c)})]})]})});}function Si({base:_0x1c678b,dashboard:_0x188842,onChange:_0x36fd22,onChartRuntimeChange:_0x5c9156,unitId:_0x4725a7,widget:_0x16d3a6}){const _0x519052=_0xbfff20;let _0x378f34=_0x548c0f(()=>_0x188842[_0x519052(0x3b1)][_0x519052(0x31f)](_0x304428=>{const _0x30823f=_0x519052;let _0x120672=_0x188842[_0x30823f(0x280)][_0x304428];return(_0x120672==null?void 0x0:_0x120672[_0x30823f(0x427)])===_0x1402ed[_0x30823f(0x287)]&&_0x120672[_0x30823f(0x335)]===('tableId'in _0x16d3a6?_0x16d3a6[_0x30823f(0x335)]:'')&&_0x120672['filter']?[_0x120672['filter']]:[];}),[_0x188842,_0x16d3a6]);switch(_0x16d3a6[_0x519052(0x427)]){case _0x1402ed[_0x519052(0x3c8)]:return _0x1c53e9(Rr,{'filters':_0x378f34,'unitId':_0x4725a7,'widget':_0x16d3a6,'onRuntimeChange':_0x5c9156});case _0x1402ed[_0x519052(0x287)]:return _0x1c53e9(ui,{'fields':Ci(_0x1c678b,_0x16d3a6[_0x519052(0x335)]),'filter':_0x16d3a6['filter'],'onChange':_0x5e16f6=>_0x36fd22({..._0x16d3a6,'filter':_0x5e16f6})['catch'](()=>void 0x0)});case _0x1402ed[_0x519052(0x194)]:return _0x1c53e9(Wr,{'widget':_0x16d3a6});case _0x1402ed['Image']:return _0x1c53e9(wi,{'widget':_0x16d3a6});case _0x1402ed[_0x519052(0x1d9)]:return _0x1c53e9(Or,{'dashboardId':_0x188842['id'],'unitId':_0x4725a7,'widget':_0x16d3a6});}}function Ci(_0x14185c,_0x11eb3b){const _0x34c892=_0xbfff20;let _0x2044ab=_0x14185c['getSnapshot']()['tables'][_0x11eb3b],_0x4f739d=_0x2044ab==null?void 0x0:_0x2044ab[_0x34c892(0x18e)][_0x34c892(0x1ac)](_0x4b1215=>_0x2044ab['views'][_0x4b1215]),_0x444a6e=_0x4f739d?_0x2044ab==null?void 0x0:_0x2044ab['views'][_0x4f739d]:void 0x0;return _0x2044ab&&_0x444a6e?_0x173f22(_0x2044ab,_0x444a6e):[];}function wi({widget:_0x39d796}){const _0x4b29f8=_0xbfff20;let _0x40cd00=_0x29f087(_0x3107a8),[_0x4ef6e4,_0x5c0e2a]=_0x34e679(_0x39d796[_0x4b29f8(0x18c)]===_0x18951a[_0x4b29f8(0x202)]?'':_0x39d796['source']);return _0x436796(()=>{const _0x5c4622=_0x4b29f8;let _0xbf56e2=!0x0;return _0x40cd00['getAttachmentUrl'](_0x39d796['source'],_0x39d796[_0x5c4622(0x18c)])[_0x5c4622(0x271)](_0x29f27d=>{_0xbf56e2&&_0x5c0e2a(_0x29f27d);})[_0x5c4622(0x433)](()=>void 0x0),()=>{_0xbf56e2=!0x1;};},[_0x40cd00,_0x39d796[_0x4b29f8(0x2ad)],_0x39d796['sourceType']]),_0x4ef6e4?_0x1c53e9(_0x4b29f8(0x1e8),{'role':_0x39d796[_0x4b29f8(0x1e4)]?_0x4b29f8(0x15e):void 0x0,'aria-label':_0x39d796[_0x4b29f8(0x1e4)]||void 0x0,'data-dashboard-image':_0x39d796['id'],'className':_0x4b29f8(0x453),'style':yr(_0x4ef6e4,_0x39d796[_0x4b29f8(0x463)])}):null;}function Ti(){let _0xcc7b22=_0x467708(new Set());return{'id':'dashboard-text-'+_0xd28735(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0xcc7b22}]},'documentStyle':{}};}function Ei(_0x3bfb31){return new Promise(_0xf58ad=>{const _0x1c4962=_0x5dbe;let _0x2d5bd2=document[_0x1c4962(0x457)]('input');_0x2d5bd2[_0x1c4962(0x427)]=_0x1c4962(0x1df),_0x2d5bd2[_0x1c4962(0x46d)]=_0x1c4962(0x46b),_0x2d5bd2[_0x1c4962(0x410)](_0x1c4962(0x17f),()=>{const _0x6ddf13=_0x1c4962;var _0xda6679;let _0x565e0b=(_0xda6679=_0x2d5bd2[_0x6ddf13(0x34c)])==null?void 0x0:_0xda6679[0x0];_0x565e0b?_0x3bfb31['saveAttachment'](_0x565e0b)[_0x6ddf13(0x271)](_0x3dedc3=>{const _0x327066=_0x6ddf13;!_0x3dedc3[_0x327066(0x2ad)]||_0x3dedc3[_0x327066(0x18c)]===void 0x0?_0xf58ad(null):_0xf58ad({'name':_0x3dedc3[_0x327066(0x3ca)],'source':_0x3dedc3[_0x327066(0x2ad)],'sourceType':_0x3dedc3[_0x327066(0x18c)]});})['catch'](()=>_0xf58ad(null)):_0xf58ad(null);},{'once':!0x0}),_0x2d5bd2[_0x1c4962(0x2a5)]();});}function Di(_0x33bb27){return new Promise(_0x21a168=>{const _0x39efb8=_0x5dbe;let _0xcd6096=document[_0x39efb8(0x457)]('input');_0xcd6096[_0x39efb8(0x427)]=_0x39efb8(0x1df),_0xcd6096[_0x39efb8(0x46d)]=_0x39efb8(0x46b),_0xcd6096['addEventListener'](_0x39efb8(0x17f),()=>{const _0x31c208=_0x39efb8;var _0x38b344;let _0x38f852=(_0x38b344=_0xcd6096[_0x31c208(0x34c)])==null?void 0x0:_0x38b344[0x0];_0x38f852?_0x33bb27['saveImage'](_0x38f852)[_0x31c208(0x271)](_0x45bb75=>{const _0x51534d=_0x31c208;if(!(_0x45bb75!=null&&_0x45bb75['source']))_0x21a168(null);else{if(_0x45bb75['base64Cache']){let _0x16b8e0=new Image();_0x16b8e0[_0x51534d(0x175)]=_0x45bb75[_0x51534d(0x1c7)],_0x33bb27[_0x51534d(0x388)](_0x45bb75['source'],_0x45bb75[_0x51534d(0x172)],_0x16b8e0);}_0x21a168({'source':_0x45bb75[_0x51534d(0x2ad)],'sourceType':_0x45bb75[_0x51534d(0x172)]});}})['catch'](()=>_0x21a168(null)):_0x21a168(null);},{'once':!0x0}),_0xcd6096[_0x39efb8(0x2a5)]();});}function Oi(_0x47accf){const _0x588d7f=_0xbfff20;switch(_0x47accf){case _0x1402ed['PivotChart']:return _0x588d7f(0x303);case _0x1402ed[_0x588d7f(0x287)]:return _0x588d7f(0x319);case _0x1402ed['Text']:return _0x588d7f(0x3ba);case _0x1402ed[_0x588d7f(0x471)]:return'bases-dashboard-ui.dashboard.image';case _0x1402ed[_0x588d7f(0x1d9)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function ki(_0x20e6aa){const _0xc999b=_0xbfff20;return(_0x20e6aa==null?void 0x0:_0x20e6aa[_0xc999b(0x427)])===_0x54a718[_0xc999b(0x2c9)]&&typeof _0x20e6aa['config']==_0xc999b(0x235)&&_0x20e6aa[_0xc999b(0x167)]!==null&&_0xc999b(0x274)in _0x20e6aa['config']&&_0xc999b(0x252)in _0x20e6aa[_0xc999b(0x167)];}function Ai({pivot:_0x2ec3d7,view:_0xf11c19}){const _0x4f408c=_0xbfff20;let _0x19c95d=_0x29f087(_0x2989fb),_0x23f3a2=_0x548c0f(()=>ji(_0xf11c19,_0x2ec3d7,_0x19c95d['t'](_0x4f408c(0x3f1))),[_0x19c95d,_0x2ec3d7,_0xf11c19]);return _0x1108cb(_0x4f408c(0x1e8),{'className':_0x4f408c(0x418),'children':[_0x23f3a2[_0x4f408c(0x338)][_0x4f408c(0x2df)]>0x0&&_0x1c53e9(_0x4f408c(0x405),{'className':_0x4f408c(0x168),'children':_0x1c53e9(_0x4f408c(0x3c5),{'children':Mi(_0x23f3a2[_0x4f408c(0x338)])})}),_0x1108cb(_0x4f408c(0x405),{'className':_0x4f408c(0x440),'children':[_0x23f3a2[_0x4f408c(0x22e)]>0x0&&_0x1c53e9(_0x4f408c(0x1dd),{'className':_0x4f408c(0x36d),'children':Mi(_0x23f3a2['rows']['slice'](0x0,_0x23f3a2[_0x4f408c(0x22e)]))}),_0x1c53e9(_0x4f408c(0x3c5),{'children':Mi(_0x23f3a2['rows'][_0x4f408c(0x26a)](_0x23f3a2['headerRowCount']))})]})]});}function ji(_0x465378,_0x1aa74b,_0x4dc8ce){const _0x1e1e9c=_0xbfff20;let _0xab333=_0x465378[_0x1e1e9c(0x3f9)][_0x1e1e9c(0x24d)],_0x37eef8=_0x465378[_0x1e1e9c(0x40d)][_0x1e1e9c(0x39f)],_0x1bfb3f=_0x465378[_0x1e1e9c(0x400)][_0x1e1e9c(0x24d)],_0x21d788=_0x465378['dataView'][_0x1e1e9c(0x39f)],_0x3007ed=Array[_0x1e1e9c(0x2a7)]({'length':_0xab333+_0x1bfb3f},(_0x4e250f,_0xf54998)=>Array[_0x1e1e9c(0x2a7)]({'length':_0x37eef8+_0x21d788},(_0xdd16f0,_0x5d1ab0)=>{const _0xa07144=_0x1e1e9c;var _0x5b0bbf,_0x2b2cc7;if(_0xf54998<_0xab333&&_0x5d1ab0<_0x37eef8)return Ni(_0x465378[_0xa07144(0x437)],_0xf54998,_0x5d1ab0,void 0x0,_0x4dc8ce,!0x0,!0x1,'corner:'+_0xf54998+':'+_0x5d1ab0);if(_0xf54998<_0xab333){var _0x10c556;let _0x32d603=_0x5d1ab0-_0x37eef8,_0x1fe4bd=(_0x10c556=_0x465378[_0xa07144(0x3f9)][_0xa07144(0x285)][_0xf54998])==null?void 0x0:_0x10c556[_0xa07144(0x2c6)];return Ni(_0x465378[_0xa07144(0x3f9)],_0xf54998,_0x32d603,_0x1fe4bd?_0x465378[_0xa07144(0x328)][_0x1fe4bd]:void 0x0,_0x4dc8ce,!0x0,Ii(_0x465378[_0xa07144(0x3f9)][_0xa07144(0x1a2)][_0x32d603]),_0xa07144(0x2bf)+_0xf54998+':'+_0x32d603);}if(_0x5d1ab0<_0x37eef8){var _0x16b0b3;let _0x37c1b7=_0xf54998-_0xab333,_0x18fcd1=(_0x16b0b3=_0x465378[_0xa07144(0x40d)][_0xa07144(0x285)][_0x5d1ab0])==null?void 0x0:_0x16b0b3['tableFieldId'];return Ni(_0x465378[_0xa07144(0x40d)],_0x37c1b7,_0x5d1ab0,_0x18fcd1?_0x465378['formatMap'][_0x18fcd1]:void 0x0,_0x4dc8ce,!0x0,Ii(_0x465378[_0xa07144(0x40d)][_0xa07144(0x1a2)][_0x37c1b7]),'row:'+_0x37c1b7+':'+_0x5d1ab0);}let _0x158dfd=_0xf54998-_0xab333,_0x5935cc=_0x5d1ab0-_0x37eef8,_0x2800c3=Math[_0xa07144(0x43f)](((_0x5b0bbf=_0x465378[_0xa07144(0x40d)][_0xa07144(0x1a2)][_0x158dfd])==null?void 0x0:_0x5b0bbf[_0xa07144(0x2e1)])??-0x1,((_0x2b2cc7=_0x465378['colView'][_0xa07144(0x1a2)][_0x5935cc])==null?void 0x0:_0x2b2cc7[_0xa07144(0x2e1)])??-0x1),_0x16ce18=_0x1aa74b['valueFields'][_0x2800c3<0x0?0x0:_0x2800c3];return Ni(_0x465378[_0xa07144(0x400)],_0x158dfd,_0x5935cc,_0x16ce18?_0x465378['formatMap'][_0x16ce18]:void 0x0,_0x4dc8ce,!0x1,Ii(_0x465378[_0xa07144(0x40d)][_0xa07144(0x1a2)][_0x158dfd])||Ii(_0x465378['colView'][_0xa07144(0x1a2)][_0x5935cc]),'data:'+_0x158dfd+':'+_0x5935cc);}));return{'headerColumnCount':_0x37eef8,'headerRowCount':_0xab333,'pageRows':_0x465378[_0x1e1e9c(0x334)]['lastRow']<0x0||_0x465378[_0x1e1e9c(0x334)][_0x1e1e9c(0x199)]<0x0?[]:Array['from']({'length':_0x465378[_0x1e1e9c(0x334)][_0x1e1e9c(0x35b)]+0x1},(_0x169259,_0x402f32)=>Array[_0x1e1e9c(0x2a7)]({'length':_0x465378[_0x1e1e9c(0x334)][_0x1e1e9c(0x199)]+0x1},(_0x502931,_0x583ca0)=>Ni(_0x465378[_0x1e1e9c(0x334)],_0x402f32,_0x583ca0,void 0x0,_0x4dc8ce,!0x0,!0x1,_0x1e1e9c(0x23c)+_0x402f32+':'+_0x583ca0))),'rows':_0x3007ed};}function Mi(_0x2f80d0){const _0x3b6550=_0xbfff20;return _0x2f80d0[_0x3b6550(0x1fd)](_0x327cb2=>{var _0x1dcc17;return _0x1c53e9('tr',{'children':_0x327cb2['map'](_0x39e525=>{const _0x56423b=_0x5dbe;let _0x3e2bad=_0x39e525['isHeader']?'th':'td';return _0x1c53e9(_0x3e2bad,{'className':_0x56423b(0x1d2)+(_0x39e525[_0x56423b(0x1b0)]?'\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':'')+_0x56423b(0x2a4)+(_0x39e525[_0x56423b(0x15b)]?'':'univer-text-right')+_0x56423b(0x24e),'children':_0x39e525[_0x56423b(0x1b5)]},_0x39e525['key']);})},(_0x1dcc17=_0x327cb2[0x0])==null?void 0x0:_0x1dcc17['key']);});}function Ni(_0x446f59,_0x2686f7,_0x4baacc,_0x217dbc,_0x4c2ab9,_0x50fba9,_0x4ca9fc,_0x53c494){const _0x76cf43=_0xbfff20;var _0x30d520;let _0x1acb6a=(_0x30d520=_0x446f59[_0x76cf43(0x490)][_0x2686f7])==null?void 0x0:_0x30d520[_0x4baacc],_0x5067ec=_0x1acb6a==null?void 0x0:_0x1acb6a['s'],_0x2ace40=_0x4ca9fc||_0x5067ec===_0x4b5125[_0x76cf43(0x459)]||_0x5067ec===_0x4b5125[_0x76cf43(0x315)];return{'isHeader':_0x50fba9,'isTotal':_0x2ace40||_0x5067ec===_0x4b5125['Subtotal'],'key':_0x53c494,'style':_0x5067ec,'value':_0x2ace40&&Fi(_0x1acb6a==null?void 0x0:_0x1acb6a['v'])?_0x4c2ab9:Pi(_0x1acb6a,_0x217dbc)};}function Pi(_0x47189d,_0x1e5de5){const _0x56d1c5=_0xbfff20;let _0x2b903f=_0x47189d==null?void 0x0:_0x47189d['v'];return _0x1a85fe(_0x2b903f)?String(_0x2b903f[_0x56d1c5(0x1b5)]??_0x2b903f[_0x56d1c5(0x15f)]??''):_0xfe435(_0x2b903f)?'#'+_0x2b903f[_0x56d1c5(0x312)]:_0x1e5de5&&typeof _0x2b903f==_0x56d1c5(0x2f5)?_0x4bc3f5[_0x56d1c5(0x1ea)](_0x1e5de5,_0x2b903f):String(_0x2b903f??'');}function Fi(_0x272401){return _0x272401===void 0x0||_0x272401==='';}function Ii(_0x3ee763){const _0x129c3d=_0xbfff20;return!!(_0x3ee763!=null&&_0x3ee763[_0x129c3d(0x1a1)]||_0x3ee763!=null&&_0x3ee763[_0x129c3d(0x461)]||_0x3ee763!=null&&_0x3ee763['isSubtotal']||(_0x3ee763==null?void 0x0:_0x3ee763[_0x129c3d(0x25f)])===_0x129c3d(0x2ac));}const Li=[{'area':_0x1126e4[_0xbfff20(0x2a9)],'key':'filterFields','label':_0xbfff20(0x178)},{'area':_0x1126e4[_0xbfff20(0x2b5)],'key':_0xbfff20(0x273),'label':_0xbfff20(0x3bb)},{'area':_0x1126e4[_0xbfff20(0x350)],'key':_0xbfff20(0x2ef),'label':_0xbfff20(0x25e)},{'area':_0x1126e4['Value'],'key':_0xbfff20(0x205),'label':_0xbfff20(0x246)}],Ri=[{'value':_0x4ad10e[_0xbfff20(0x3c2)],'localeKey':_0xbfff20(0x43d)},{'value':_0x4ad10e[_0xbfff20(0x1f6)],'localeKey':_0xbfff20(0x21b)},{'value':_0x4ad10e[_0xbfff20(0x261)],'localeKey':'bases-dashboard-ui.pivot.countNumbers'},{'value':_0x4ad10e['average'],'localeKey':_0xbfff20(0x396)},{'value':_0x4ad10e['max'],'localeKey':_0xbfff20(0x3d4)},{'value':_0x4ad10e['min'],'localeKey':_0xbfff20(0x47a)},{'value':_0x4ad10e[_0xbfff20(0x392)],'localeKey':_0xbfff20(0x24a)},{'value':_0x4ad10e[_0xbfff20(0x362)],'localeKey':_0xbfff20(0x25d)},{'value':_0x4ad10e[_0xbfff20(0x353)],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x4ad10e[_0xbfff20(0x374)],'localeKey':_0xbfff20(0x2f2)},{'value':_0x4ad10e['varp'],'localeKey':_0xbfff20(0x291)}];function zi(_0x5b5a48){const _0x41f600=_0xbfff20;let {config:_0x8709f8,onChange:_0x58232a,table:_0x564b31}=_0x5b5a48,_0x380a51=_0x29f087(_0x2989fb),[_0x5ef09a,_0x33e478]=_0x34e679(_0x41f600(0x1e9)),[_0x4e0fd2,_0x51e2aa]=_0x34e679(''),[_0x37cef1,_0x4b104f]=_0x34e679(null),[_0xe4554e,_0x49f438]=_0x34e679(null),[_0xbce925,_0x3f7b52]=_0x34e679(null),[_0x3cf5c9,_0x593532]=_0x34e679(null),_0xf6d67a=_0x2861da(null),_0x196b2d=_0x548c0f(()=>_0x564b31[_0x41f600(0x222)]['flatMap'](_0x3c4a65=>{const _0xab856e=_0x41f600;let _0x56d3f6=_0x564b31['fields'][_0x3c4a65];return _0x56d3f6&&_0x56d3f6[_0xab856e(0x2d2)]!==!0x0&&_0x56d3f6[_0xab856e(0x427)]!==_0x4fcd7c[_0xab856e(0x496)]?[_0x56d3f6]:[];})[_0x41f600(0x2be)](_0x4410cd=>_0x4410cd[_0x41f600(0x3ca)][_0x41f600(0x3d5)]()[_0x41f600(0x3d0)](_0x4e0fd2[_0x41f600(0x278)]()[_0x41f600(0x3d5)]())),[_0x4e0fd2,_0x564b31]),_0x2c9b2c=_0xb1cdad=>{const _0x122c8c=_0x41f600;let _0x3ae9f0=_0x560cf4(_0x564b31,_0x8709f8[_0x122c8c(0x274)]);try{_0xb1cdad(_0x3ae9f0),_0x58232a({'pivot':_0x3ae9f0[_0x122c8c(0x262)]()});}finally{_0x3ae9f0[_0x122c8c(0x19b)]();}},_0x54cd70=(_0x3f7e02,_0x34007e)=>{_0x37cef1&&(_0x2c9b2c(_0x1bda9f=>{const _0x2b6c9c=_0x5dbe;if(_0x37cef1['kind']===_0x2b6c9c(0x2e6)){let _0xbff79b=_0x1bda9f[_0x2b6c9c(0x19e)](_0x37cef1['id']),_0x4a2e70=_0xbff79b[_0x2b6c9c(0x450)]===_0x3f7e02&&_0xbff79b[_0x2b6c9c(0x365)]<_0x34007e?_0x34007e-0x1:_0x34007e;_0x1bda9f[_0x2b6c9c(0x445)](_0x37cef1['id'],_0x3f7e02,_0x4a2e70);}else qi(_0x1bda9f,_0x37cef1['id'],_0x3f7e02,_0x34007e);}),_0x4b104f(null),_0x49f438(null));};return _0x1108cb(_0x41f600(0x1e8),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col','children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x380a51['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'className':_0x41f600(0x251),'items':[{'label':_0x380a51['t'](_0x41f600(0x3f8)),'panelId':'base-pivot-fields','value':'fields'},{'label':_0x380a51['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x41f600(0x3da),'value':'options'}],'value':_0x5ef09a,'onChange':_0x33e478}),_0x1c53e9(_0x41f600(0x1e8),{'ref':_0xf6d67a,'className':_0x14b647(_0x41f600(0x1e3),_0x439165),'onDragOver':_0x521a80=>{const _0x16e09a=_0x41f600;let _0x37c771=_0xf6d67a[_0x16e09a(0x49d)];if(!_0x37c771)return;let _0x1f8f4d=_0x37c771[_0x16e09a(0x260)]();_0x521a80[_0x16e09a(0x4ae)]<_0x1f8f4d['top']+0x30?_0x37c771[_0x16e09a(0x389)]-=0x10:_0x521a80[_0x16e09a(0x4ae)]>_0x1f8f4d[_0x16e09a(0x2a2)]-0x30&&(_0x37c771[_0x16e09a(0x389)]+=0x10);},'children':_0x5ef09a===_0x41f600(0x37e)?_0x1c53e9(Ki,{'config':_0x8709f8,'commit':_0x2c9b2c}):_0x1108cb('div',{'className':_0x41f600(0x1e6),'children':[_0x1108cb(_0x41f600(0x1e8),{'children':[_0x1c53e9(_0x41f600(0x1e8),{'className':_0x41f600(0x368),'children':_0x380a51['t'](_0x41f600(0x1f7))}),_0x1c53e9(_0x1b54d7,{'allowClear':!0x0,'slot':_0x1c53e9(_0x302bc4,{}),'value':_0x4e0fd2,'placeholder':_0x380a51['t'](_0x41f600(0x257)),'onChange':_0x51e2aa}),_0x1c53e9(_0x41f600(0x1e8),{'className':_0x41f600(0x406),'children':_0x196b2d[_0x41f600(0x1fd)](_0x4d5964=>_0x1c53e9(Bi,{'config':_0x8709f8,'field':_0x4d5964,'onAdd':_0x29d2c3=>_0x2c9b2c(_0x274d09=>qi(_0x274d09,_0x4d5964['id'],_0x29d2c3,_0x274d09[_0x41f600(0x308)](_0x29d2c3))),'onCheckedChange':_0x128d29=>_0x2c9b2c(_0x1f5843=>{const _0x4e3f60=_0x41f600;let _0x48ac24=_0x1f5843['getTableFieldsByDataFieldId'](_0x4d5964['id']);if(!_0x128d29)_0x48ac24[_0x4e3f60(0x4a2)](_0x1cba24=>_0x1f5843[_0x4e3f60(0x38a)](_0x1cba24[_0x4e3f60(0x3c6)]()));else{if(_0x48ac24[_0x4e3f60(0x2df)]===0x0){let _0x26ead0=Yi(_0x4d5964)?_0x1126e4[_0x4e3f60(0x2aa)]:_0x1126e4[_0x4e3f60(0x350)];_0x1f5843[_0x4e3f60(0x39d)](_0x4d5964['id'],_0x26ead0);}}}),'onDragStart':()=>_0x4b104f({'kind':_0x41f600(0x2ad),'id':_0x4d5964['id']})},_0x4d5964['id']))})]}),_0x1c53e9(_0x41f600(0x1e8),{'className':'univer-grid\x20univer-gap-3','children':Li[_0x41f600(0x1fd)](_0x438c51=>_0x1c53e9(Hi,{'area':_0x438c51[_0x41f600(0x450)],'dropTarget':_0xe4554e,'fields':_0x8709f8[_0x41f600(0x274)][_0x438c51[_0x41f600(0x48d)]],'label':_0x380a51['t'](_0x438c51[_0x41f600(0x1b8)]),'snapshot':_0x8709f8[_0x41f600(0x274)],'onDragEnd':()=>{_0x4b104f(null),_0x49f438(null);},'onDragStart':_0x254378=>_0x4b104f({'kind':_0x41f600(0x2e6),'id':_0x254378,'area':_0x438c51[_0x41f600(0x450)]}),'onDragOver':_0xa15178=>_0x49f438({'area':_0x438c51[_0x41f600(0x450)],'index':_0xa15178}),'onDrop':_0xb14293=>_0x54cd70(_0x438c51[_0x41f600(0x450)],_0xb14293),'onFilter':_0x3f7b52,'onMove':(_0x4de124,_0x1102b7,_0x506392)=>_0x2c9b2c(_0x1c10c2=>_0x1c10c2[_0x41f600(0x445)](_0x4de124,_0x1102b7,_0x506392)),'onRemove':_0x83c256=>_0x2c9b2c(_0x1d1c79=>_0x1d1c79[_0x41f600(0x38a)](_0x83c256)),'onSettings':_0x593532},_0x438c51[_0x41f600(0x450)]))}),_0xbce925&&_0x1c53e9(Wi,{'fieldId':_0xbce925,'snapshot':_0x8709f8[_0x41f600(0x274)],'table':_0x564b31,'onCancel':()=>_0x3f7b52(null),'onCommit':(_0x42a5ee,_0x5be750)=>{_0x2c9b2c(_0x44394c=>{const _0x5af48b=_0x5dbe;let _0x580906=_0x44394c[_0x5af48b(0x2ab)](_0xbce925),_0x33720a=(_0x580906==null?void 0x0:_0x580906[_0x5af48b(0x1c0)])??[];_0x44394c['setLabelFilterInfo'](_0xbce925,{'type':_0x5a1647[_0x5af48b(0x224)],'list':_0x42a5ee,'isAll':_0x42a5ee[_0x5af48b(0x2df)]===_0x33720a[_0x5af48b(0x2df)]}),_0x44394c['setSortInfo'](_0xbce925,_0x5be750===void 0x0?void 0x0:{'type':_0x5be750});}),_0x3f7b52(null);}},_0xbce925),_0x3cf5c9&&_0x1c53e9(Gi,{'field':_0x8709f8[_0x41f600(0x274)][_0x41f600(0x421)][_0x3cf5c9],'onCancel':()=>_0x593532(null),'onCommit':(_0x235062,_0x19ef32,_0x5e90e3)=>{_0x2c9b2c(_0x3b330e=>{const _0x2891ff=_0x5dbe;_0x3b330e[_0x2891ff(0x455)](_0x3cf5c9,_0x235062),_0x3b330e[_0x2891ff(0x355)](_0x3cf5c9,_0x19ef32),_0x3b330e['setFieldFormat'](_0x3cf5c9,_0x5e90e3||void 0x0);}),_0x593532(null);}},_0x3cf5c9)]})})]});}function Bi(_0x5da7c9){const _0x70a43=_0xbfff20;let {config:_0x58e456,field:_0x2cc83b,onAdd:_0x5357b2,onCheckedChange:_0x488c41,onDragStart:_0x2ffc0d}=_0x5da7c9,_0x2e182a=_0x29f087(_0x2989fb),_0x2d4e8c=[...Object[_0x70a43(0x34e)](_0x58e456[_0x70a43(0x274)][_0x70a43(0x401)]),...Object['values'](_0x58e456[_0x70a43(0x274)][_0x70a43(0x421)])][_0x70a43(0x415)](_0x34052a=>_0x34052a[_0x70a43(0x2c4)]===_0x2cc83b['id']),_0x3a5f2b=Li[_0x70a43(0x1fd)](_0x4c0827=>({'type':_0x70a43(0x2c2),'children':_0x2e182a['t'](Xi(_0x4c0827[_0x70a43(0x450)])),'onSelect':()=>_0x5357b2(_0x4c0827[_0x70a43(0x450)])}));return _0x1108cb(_0x70a43(0x1e8),{'draggable':!0x1,'style':{'minHeight':0x30},'className':'univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','onDragStart':_0x2ffc0d,'children':[_0x1c53e9(_0x1eb8df,{'checked':_0x2d4e8c,'onChange':_0x53d8f3=>_0x488c41(!!_0x53d8f3)}),_0x1c53e9(Vi,{'field':_0x2cc83b}),_0x1c53e9('span',{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x2cc83b[_0x70a43(0x3ca)]}),_0x1c53e9(Yr,{'align':_0x70a43(0x221),'items':_0x3a5f2b,'children':_0x1c53e9(_0x6d25a2,{'variant':'text','aria-label':_0x2e182a['t'](_0x70a43(0x4a6)),'children':_0x1c53e9(_0xacb52a,{})})})]});}function Vi({field:_0x21e378}){const _0x9652b3=_0xbfff20;return Yi(_0x21e378)?_0x1c53e9(_0x45f616,{'className':_0x9652b3(0x1d8)}):_0x21e378[_0x9652b3(0x427)]===_0x4fcd7c[_0x9652b3(0x43b)]||_0x21e378[_0x9652b3(0x427)]===_0x4fcd7c['CreatedAt']||_0x21e378[_0x9652b3(0x427)]===_0x4fcd7c[_0x9652b3(0x386)]?_0x1c53e9(_0x23c2ab,{'className':_0x9652b3(0x1d8)}):_0x1c53e9(_0x383758,{'className':_0x9652b3(0x1d8)});}function Hi(_0x546931){const _0xc0ddad=_0xbfff20;let {area:_0x4f6a85,dropTarget:_0x14e321,fields:_0x1a6bce,label:_0x134534,snapshot:_0x235288}=_0x546931,_0xf8cfb7=_0x29f087(_0x2989fb);return _0x1108cb(_0xc0ddad(0x493),{'className':_0x14b647(_0xc0ddad(0x332),_0x14cf31),'onDragOver':_0x5437d2=>{const _0x388332=_0xc0ddad;_0x5437d2[_0x388332(0x2ea)](),_0x546931[_0x388332(0x1ba)](_0x1a6bce[_0x388332(0x2df)]);},'onDrop':_0x564340=>{const _0x372b1f=_0xc0ddad;_0x564340[_0x372b1f(0x2ea)](),_0x546931[_0x372b1f(0x166)]((_0x14e321==null?void 0x0:_0x14e321[_0x372b1f(0x450)])===_0x4f6a85?_0x14e321[_0x372b1f(0x365)]:_0x1a6bce[_0x372b1f(0x2df)]);},'children':[_0x1c53e9(_0xc0ddad(0x1e8),{'className':_0xc0ddad(0x3af),'children':_0x134534}),_0x1108cb(_0xc0ddad(0x1e8),{'className':_0xc0ddad(0x27e),'children':[_0x1a6bce[_0xc0ddad(0x1fd)]((_0x55c076,_0x281386)=>{const _0x1686a8=_0xc0ddad;let _0x53cf7e=_0x235288[_0x1686a8(0x401)][_0x55c076]??_0x235288[_0x1686a8(0x421)][_0x55c076];if(!_0x53cf7e)return null;let _0x5527e1=(_0x14e321==null?void 0x0:_0x14e321[_0x1686a8(0x450)])===_0x4f6a85&&_0x14e321['index']===_0x281386;return _0x1108cb('div',{'onDragOver':_0x2c9add=>{const _0x18b4c6=_0x1686a8;_0x2c9add[_0x18b4c6(0x2ea)](),_0x2c9add[_0x18b4c6(0x3fb)]();let _0x4548f9=_0x2c9add[_0x18b4c6(0x40a)][_0x18b4c6(0x260)]();_0x546931[_0x18b4c6(0x1ba)](_0x281386+ +(_0x2c9add['clientY']>_0x4548f9[_0x18b4c6(0x3e6)]+_0x4548f9[_0x18b4c6(0x402)]/0x2));},'onDrop':_0x318add=>{const _0x1b5f63=_0x1686a8;_0x318add['preventDefault'](),_0x318add['stopPropagation'](),_0x546931[_0x1b5f63(0x166)]((_0x14e321==null?void 0x0:_0x14e321[_0x1b5f63(0x450)])===_0x4f6a85?_0x14e321[_0x1b5f63(0x365)]:_0x281386);},'children':[_0x5527e1&&_0x1c53e9('div',{'className':_0x1686a8(0x487)}),_0x1c53e9(Ui,{'area':_0x4f6a85,'field':_0x53cf7e,'onDragEnd':_0x546931[_0x1686a8(0x183)],'onDragStart':()=>_0x546931['onDragStart'](_0x55c076),'onFilter':()=>_0x546931[_0x1686a8(0x3b7)](_0x55c076),'onMove':_0x4c989b=>_0x546931[_0x1686a8(0x460)](_0x55c076,_0x4c989b,0x0),'onMoveUp':_0x281386>0x0?()=>_0x546931[_0x1686a8(0x460)](_0x55c076,_0x4f6a85,_0x281386-0x1):void 0x0,'onMoveDown':_0x281386<_0x1a6bce[_0x1686a8(0x2df)]-0x1?()=>_0x546931[_0x1686a8(0x460)](_0x55c076,_0x4f6a85,_0x281386+0x1):void 0x0,'onRemove':()=>_0x546931[_0x1686a8(0x169)](_0x55c076),'onSettings':()=>_0x546931[_0x1686a8(0x2cc)](_0x55c076)})]},_0x55c076);}),(_0x14e321==null?void 0x0:_0x14e321[_0xc0ddad(0x450)])===_0x4f6a85&&_0x14e321[_0xc0ddad(0x365)]===_0x1a6bce[_0xc0ddad(0x2df)]&&_0x1c53e9(_0xc0ddad(0x1e8),{'className':_0xc0ddad(0x487)}),_0x1a6bce[_0xc0ddad(0x2df)]===0x0&&_0x1c53e9('div',{'className':_0xc0ddad(0x1d0),'children':_0xf8cfb7['t'](_0xc0ddad(0x1f7))})]})]});}function Ui(_0x1a633e){const _0x48d809=_0xbfff20;let _0x5e0f17=_0x29f087(_0x2989fb),_0x372cdf=_0x1a633e['area']===_0x1126e4[_0x48d809(0x2aa)],_0x98e411=[...Li[_0x48d809(0x2be)](_0x1bf0b6=>_0x1bf0b6[_0x48d809(0x450)]!==_0x1a633e[_0x48d809(0x450)])[_0x48d809(0x1fd)](_0x1b1e3e=>({'type':'item','children':_0x5e0f17['t'](Xi(_0x1b1e3e[_0x48d809(0x450)])),'onSelect':()=>_0x1a633e[_0x48d809(0x460)](_0x1b1e3e[_0x48d809(0x450)])})),..._0x1a633e[_0x48d809(0x258)]?[{'type':_0x48d809(0x2c2),'children':_0x5e0f17['t']('bases-dashboard-ui.mobile.moveUp'),'onSelect':_0x1a633e[_0x48d809(0x258)]}]:[],..._0x1a633e['onMoveDown']?[{'type':_0x48d809(0x2c2),'children':_0x5e0f17['t'](_0x48d809(0x1b4)),'onSelect':_0x1a633e[_0x48d809(0x22a)]}]:[],{'type':_0x48d809(0x2c2),'children':_0x5e0f17['t'](_0x48d809(0x276)),'onSelect':_0x1a633e[_0x48d809(0x169)]},{'type':_0x48d809(0x2c2),'children':_0x5e0f17['t'](_0x372cdf?'bases-dashboard-ui.pivot.fieldSettings':_0x48d809(0x36a)),'onSelect':_0x372cdf?_0x1a633e[_0x48d809(0x2cc)]:_0x1a633e['onFilter']}];return _0x1108cb(_0x48d809(0x1e8),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x48d809(0x32c),'onDragEnd':_0x1a633e['onDragEnd'],'onDragStart':_0x1a633e['onDragStart'],'children':[_0x1c53e9(_0x501781,{'title':_0x1a633e['field'][_0x48d809(0x1cf)],'children':_0x1c53e9(_0x48d809(0x213),{'className':_0x48d809(0x309),'children':_0x1a633e['field'][_0x48d809(0x1cf)]})}),_0x1c53e9(Yr,{'align':_0x48d809(0x221),'items':_0x98e411,'children':_0x1c53e9(_0x6d25a2,{'variant':_0x48d809(0x173),'aria-label':_0x5e0f17['t']('bases-dashboard-ui.pivot.fieldSettings'),'children':_0x1c53e9(_0xacb52a,{})})})]});}function Wi(_0xfb31b4){const _0xebef80=_0xbfff20;var _0x206a55,_0x36c37b;let _0x3c4970=_0x29f087(_0x2989fb),{format:_0x15c460,items:_0x160b45,itemTypes:_0x459932}=_0x548c0f(()=>{const _0x5a2582=_0x5dbe;let _0x473415=_0x560cf4(_0xfb31b4[_0x5a2582(0x405)],_0xfb31b4[_0x5a2582(0x432)]);try{let _0x4bf390=_0x473415[_0x5a2582(0x2ab)](_0xfb31b4[_0x5a2582(0x17d)]);return{'format':_0x4bf390==null?void 0x0:_0x4bf390[_0x5a2582(0x1ea)],'items':[...(_0x4bf390==null?void 0x0:_0x4bf390[_0x5a2582(0x1c0)])??[]],'itemTypes':[...(_0x4bf390==null?void 0x0:_0x4bf390[_0x5a2582(0x22c)])??[]]};}finally{_0x473415['dispose']();}},[_0xfb31b4[_0xebef80(0x17d)],_0xfb31b4[_0xebef80(0x432)],_0xfb31b4[_0xebef80(0x405)]]),_0x1ede8a=(_0x206a55=_0xfb31b4[_0xebef80(0x432)][_0xebef80(0x401)][_0xfb31b4[_0xebef80(0x17d)]])==null?void 0x0:_0x206a55[_0xebef80(0x158)],[_0x565f86,_0x1f22ed]=_0x34e679((_0x1ede8a==null?void 0x0:_0x1ede8a[_0xebef80(0x427)])===_0x5a1647['ManualFilter']?_0x1ede8a[_0xebef80(0x1ca)]:_0x160b45),[_0x55b69d,_0x4ebec6]=_0x34e679((_0x36c37b=_0xfb31b4[_0xebef80(0x432)][_0xebef80(0x401)][_0xfb31b4[_0xebef80(0x17d)]])==null||(_0x36c37b=_0x36c37b[_0xebef80(0x23e)])==null?void 0x0:_0x36c37b['type']),_0x1eb802=_0x565f86[_0xebef80(0x2df)]===_0x160b45[_0xebef80(0x2df)],_0x5609fd=_0x1108cb(_0xebef80(0x493),{'className':_0x14b647(_0xebef80(0x35d),_0x14cf31),'children':[_0x1c53e9(_0xebef80(0x1e8),{'className':_0xebef80(0x2fb),'children':_0x3c4970['t'](_0xebef80(0x36a))}),_0x1108cb('div',{'className':_0xebef80(0x1f8),'children':[_0x1108cb(_0x6d25a2,{'className':'univer-flex-1','variant':_0x55b69d===_0xaa402b[_0xebef80(0x357)]?_0xebef80(0x3d2):_0xebef80(0x30e),'onClick':()=>_0x4ebec6(_0xaa402b['ascending']),'children':[_0x1c53e9(_0x5de895,{}),_0x3c4970['t'](_0xebef80(0x497))]}),_0x1108cb(_0x6d25a2,{'className':'univer-flex-1','variant':_0x55b69d===_0xaa402b[_0xebef80(0x2d4)]?_0xebef80(0x3d2):_0xebef80(0x30e),'onClick':()=>_0x4ebec6(_0xaa402b[_0xebef80(0x2d4)]),'children':[_0x1c53e9(_0xcbb196,{}),_0x3c4970['t']('bases-dashboard-ui.pivot.descending')]})]}),_0x1108cb(_0xebef80(0x1e8),{'className':_0xebef80(0x28f),'children':[_0x1108cb(_0xebef80(0x1b8),{'className':_0xebef80(0x299),'children':[_0x1c53e9(_0x1eb8df,{'checked':_0x1eb802,'indeterminate':_0x565f86[_0xebef80(0x2df)]>0x0&&!_0x1eb802,'onChange':()=>_0x1f22ed(_0x1eb802?[]:_0x160b45)}),_0x3c4970['t'](_0xebef80(0x337))]}),_0x160b45[_0xebef80(0x1fd)]((_0x4075b9,_0x2918ab)=>_0x1108cb('label',{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x1c53e9(_0x1eb8df,{'checked':_0x565f86['includes'](_0x4075b9),'onChange':()=>_0x1f22ed(_0xf12a1=>_0xf12a1[_0xebef80(0x3d0)](_0x4075b9)?_0xf12a1[_0xebef80(0x2be)](_0x1d88cd=>_0x1d88cd!==_0x4075b9):[..._0xf12a1,_0x4075b9])}),_0x1c53e9('span',{'className':_0xebef80(0x3aa),'children':Ji(_0x4075b9,_0x459932[_0x2918ab],_0x15c460,_0x3c4970['t']('bases-dashboard-ui.pivot.blank'))})]},_0x4075b9))]}),_0x1108cb(_0xebef80(0x1e8),{'className':_0xebef80(0x17a),'children':[_0x1c53e9(_0x6d25a2,{'variant':'link','onClick':()=>_0xfb31b4[_0xebef80(0x2d1)](_0x160b45,_0x55b69d),'children':_0x3c4970['t'](_0xebef80(0x43c))}),_0x1108cb(_0xebef80(0x1e8),{'className':_0xebef80(0x30b),'children':[_0x1c53e9(_0x6d25a2,{'onClick':_0xfb31b4[_0xebef80(0x16d)],'children':_0x3c4970['t'](_0xebef80(0x391))}),_0x1c53e9(_0x6d25a2,{'variant':'primary','disabled':_0x565f86[_0xebef80(0x2df)]===0x0,'onClick':()=>_0xfb31b4[_0xebef80(0x2d1)](_0x565f86,_0x55b69d),'children':_0x3c4970['t'](_0xebef80(0x3b4))})]})]})]});return _0x1c53e9(_0xbfe7,{'title':_0x3c4970['t']('bases-dashboard-ui.pivot.filterField'),'onClose':_0xfb31b4[_0xebef80(0x16d)],'children':_0x5609fd});}function Gi(_0x4766d6){const _0x40a297=_0xbfff20;var _0x5e9796,_0x58200e,_0x2bb519;let _0x518427=_0x29f087(_0x2989fb),[_0x588722,_0x599f9b]=_0x34e679(((_0x5e9796=_0x4766d6['field'])==null?void 0x0:_0x5e9796['displayName'])??''),[_0x5e5889,_0x5cbdf0]=_0x34e679(((_0x58200e=_0x4766d6[_0x40a297(0x2e6)])==null?void 0x0:_0x58200e[_0x40a297(0x4a3)])??_0x4ad10e[_0x40a297(0x3c2)]),[_0x556e0e,_0x457c0c]=_0x34e679(((_0x2bb519=_0x4766d6['field'])==null?void 0x0:_0x2bb519[_0x40a297(0x1ea)])??'');if(!_0x4766d6[_0x40a297(0x2e6)])return null;let _0x159650=_0x1108cb(_0x40a297(0x493),{'className':_0x14b647(_0x40a297(0x1e1),_0x14cf31),'children':[_0x1c53e9(_0x40a297(0x1e8),{'className':_0x40a297(0x3ea),'children':_0x518427['t']('bases-dashboard-ui.pivot.fieldSettings')}),_0x1108cb(_0x40a297(0x1b8),{'className':_0x40a297(0x223),'children':[_0x518427['t'](_0x40a297(0x480)),_0x1c53e9(_0x1b54d7,{'value':_0x588722,'onChange':_0x599f9b})]}),_0x1108cb('label',{'className':_0x40a297(0x223),'children':[_0x518427['t']('bases-dashboard-ui.pivot.summarizeBy'),_0x1c53e9(Jr,{'value':String(_0x5e5889),'options':Ri['map'](_0x20d305=>({'value':String(_0x20d305[_0x40a297(0x1b5)]),'label':_0x518427['t'](_0x20d305['localeKey'])})),'onChange':_0x24b20b=>{const _0x125e2b=_0x40a297;let _0x347d2e=Ri[_0x125e2b(0x1ac)](_0x568f12=>String(_0x568f12[_0x125e2b(0x1b5)])===_0x24b20b);_0x347d2e&&_0x5cbdf0(_0x347d2e[_0x125e2b(0x1b5)]);}})]}),_0x1108cb(_0x40a297(0x1b8),{'className':_0x40a297(0x223),'children':[_0x518427['t'](_0x40a297(0x341)),_0x1c53e9(_0x1b54d7,{'value':_0x556e0e,'onChange':_0x457c0c})]}),_0x1108cb('div',{'className':_0x40a297(0x431),'children':[_0x1c53e9(_0x6d25a2,{'onClick':_0x4766d6[_0x40a297(0x16d)],'children':_0x518427['t'](_0x40a297(0x391))}),_0x1c53e9(_0x6d25a2,{'variant':'primary','disabled':!_0x588722['trim'](),'onClick':()=>_0x4766d6[_0x40a297(0x2d1)](_0x588722['trim'](),_0x5e5889,_0x556e0e),'children':_0x518427['t'](_0x40a297(0x3b4))})]})]});return _0x1c53e9(_0xbfe7,{'title':_0x518427['t'](_0x40a297(0x4a6)),'onClose':_0x4766d6[_0x40a297(0x16d)],'children':_0x159650});}function Ki(_0x2c7ff2){const _0x25d0dd=_0xbfff20;let {config:_0xc060a6,commit:_0x45a923}=_0x2c7ff2,_0x55fdeb=_0x29f087(_0x2989fb),_0x5088da=_0xc060a6[_0x25d0dd(0x274)]['options'],_0x3b8e74=_0x5409be=>_0x45a923(_0xbe1793=>_0xbe1793[_0x25d0dd(0x159)]({..._0xbe1793['getOptions'](),..._0x5409be}));return _0x1108cb('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x1108cb(_0x25d0dd(0x1b8),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x55fdeb['t'](_0x25d0dd(0x348)),_0x1c53e9(Jr,{'className':'univer-w-36','value':String(_0xc060a6[_0x25d0dd(0x274)][_0x25d0dd(0x2fc)]),'options':[{'value':String(_0x66aa38['tabular']),'label':_0x55fdeb['t'](_0x25d0dd(0x385))},{'value':String(_0x66aa38[_0x25d0dd(0x3eb)]),'label':_0x55fdeb['t']('bases-dashboard-ui.pivot.layoutCompact')},{'value':String(_0x66aa38[_0x25d0dd(0x3ff)]),'label':_0x55fdeb['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x2d43c5=>{const _0x28f748=_0x25d0dd;let _0x33f527=[_0x66aa38[_0x28f748(0x383)],_0x66aa38[_0x28f748(0x3eb)],_0x66aa38['outline']][_0x28f748(0x1ac)](_0x439d63=>String(_0x439d63)===_0x2d43c5);_0x33f527!==void 0x0&&_0x45a923(_0x5a4f54=>_0x5a4f54[_0x28f748(0x37b)](_0x33f527));}})]}),[{'key':_0x25d0dd(0x3a1),'label':_0x25d0dd(0x3c3),'defaultValue':!0x1},{'key':_0x25d0dd(0x48a),'label':_0x25d0dd(0x1ff),'defaultValue':!0x1},{'key':_0x25d0dd(0x3d8),'label':'bases-dashboard-ui.pivot.showRowSubtotal','defaultValue':!0x0},{'key':_0x25d0dd(0x2c5),'label':_0x25d0dd(0x3ad),'defaultValue':!0x0},{'key':_0x25d0dd(0x160),'label':'bases-dashboard-ui.pivot.showColumnSubtotal','defaultValue':!0x0},{'key':_0x25d0dd(0x2a0),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}]['map'](_0x343f1d=>_0x1108cb(_0x25d0dd(0x1b8),{'className':_0x25d0dd(0x2ae),'children':[_0x1c53e9(_0x1eb8df,{'checked':!!(_0x5088da[_0x343f1d[_0x25d0dd(0x48d)]]??_0x343f1d[_0x25d0dd(0x3fa)]),'disabled':_0x343f1d[_0x25d0dd(0x48d)]===_0x25d0dd(0x3a1)&&_0xc060a6[_0x25d0dd(0x274)][_0x25d0dd(0x2fc)]===_0x66aa38[_0x25d0dd(0x3eb)],'onChange':_0x359e98=>_0x3b8e74({[_0x343f1d['key']]:!!_0x359e98})}),_0x55fdeb['t'](_0x343f1d[_0x25d0dd(0x1b8)])]},_0x343f1d['key'])),_0xc060a6[_0x25d0dd(0x274)][_0x25d0dd(0x2fc)]===_0x66aa38[_0x25d0dd(0x3ff)]&&_0x1108cb('label',{'className':_0x25d0dd(0x2f4),'children':[_0x55fdeb['t'](_0x25d0dd(0x323)),_0x1c53e9(Jr,{'className':_0x25d0dd(0x44c),'value':String(_0x5088da[_0x25d0dd(0x329)]??_0x571e80['top']),'options':[{'value':String(_0x571e80['top']),'label':_0x55fdeb['t'](_0x25d0dd(0x1c5))},{'value':String(_0x571e80['bottom']),'label':_0x55fdeb['t'](_0x25d0dd(0x464))}],'onChange':_0x3a14de=>{const _0xfb7345=_0x25d0dd;let _0x3ac494=[_0x571e80[_0xfb7345(0x3e6)],_0x571e80['bottom']][_0xfb7345(0x1ac)](_0x536968=>String(_0x536968)===_0x3a14de);_0x3ac494!==void 0x0&&_0x3b8e74({'rowSubtotalPosition':_0x3ac494});}})]}),_0x1108cb(_0x25d0dd(0x1b8),{'className':_0x25d0dd(0x2f4),'children':[_0x55fdeb['t']('bases-dashboard-ui.pivot.valuePosition'),_0x1c53e9(Jr,{'className':_0x25d0dd(0x44c),'value':String(_0xc060a6[_0x25d0dd(0x274)][_0x25d0dd(0x275)]===_0xe5d4e5['None']?_0xe5d4e5[_0x25d0dd(0x2b5)]:_0xc060a6[_0x25d0dd(0x274)][_0x25d0dd(0x275)]),'options':[{'value':String(_0xe5d4e5[_0x25d0dd(0x2b5)]),'label':_0x55fdeb['t'](_0x25d0dd(0x3bb))},{'value':String(_0xe5d4e5[_0x25d0dd(0x350)]),'label':_0x55fdeb['t'](_0x25d0dd(0x25e))}],'onChange':_0x5019c8=>{const _0x22bb3c=_0x25d0dd;let _0x587ae5=[_0xe5d4e5[_0x22bb3c(0x2b5)],_0xe5d4e5[_0x22bb3c(0x350)]]['find'](_0x2048cc=>String(_0x2048cc)===_0x5019c8);_0x587ae5!==void 0x0&&_0x45a923(_0x533a3c=>_0x533a3c['updateValuePosition'](_0x587ae5,_0x533a3c[_0x22bb3c(0x16e)]()<0x0?0x0:_0x533a3c['getValueIndex']()));}})]}),_0x1108cb(_0x25d0dd(0x1b8),{'className':_0x25d0dd(0x2f4),'children':[_0x55fdeb['t'](_0x25d0dd(0x182)),_0x1c53e9(_0x5a3ae3,{'className':_0x25d0dd(0x3d7),'min':0x1,'max':0x14,'value':_0x5088da[_0x25d0dd(0x38e)]??0x1,'onChange':_0x3b140f=>{const _0xa70cb6=_0x25d0dd;let _0x2ca393=Number(_0x3b140f);Number[_0xa70cb6(0x2da)](_0x2ca393)&&_0x2ca393>=0x1&&_0x3b8e74({'pageWrap':_0x2ca393});}})]}),_0x1108cb(_0x25d0dd(0x1b8),{'className':_0x25d0dd(0x2f4),'children':[_0x55fdeb['t']('bases-dashboard-ui.pivot.pageDirection'),_0x1c53e9(Jr,{'className':_0x25d0dd(0x44c),'value':String(_0x5088da[_0x25d0dd(0x40b)]??!0x1),'options':[{'value':_0x25d0dd(0x41f),'label':_0x55fdeb['t'](_0x25d0dd(0x3c4))},{'value':_0x25d0dd(0x354),'label':_0x55fdeb['t'](_0x25d0dd(0x269))}],'onChange':_0x1f8a41=>_0x3b8e74({'pageOverThenDown':_0x1f8a41===_0x25d0dd(0x354)})})]})]});}function qi(_0x16bbd8,_0x5e175e,_0x4bbfa0,_0xb76f0){const _0x26091d=_0xbfff20;let _0x3869bf=_0x16bbd8[_0x26091d(0x3e4)](_0x5e175e)['find'](_0x46e114=>_0x16bbd8['getFieldPositionInfoById'](_0x46e114[_0x26091d(0x3c6)]())[_0x26091d(0x450)]!==_0x1126e4[_0x26091d(0x2aa)]);_0x4bbfa0!==_0x1126e4[_0x26091d(0x2aa)]&&_0x3869bf?_0x16bbd8[_0x26091d(0x445)](_0x3869bf[_0x26091d(0x3c6)](),_0x4bbfa0,_0xb76f0):_0x16bbd8[_0x26091d(0x39d)](_0x5e175e,_0x4bbfa0,_0xb76f0);}function Ji(_0x386fc6,_0x2a801c,_0x662d62,_0x5b6ba3){const _0x100844=_0xbfff20;return _0x2a801c===_0x48a00c[_0x100844(0x330)]?_0x5b6ba3:_0x2a801c===_0x48a00c[_0x100844(0x2f1)]&&_0x662d62?_0x4bc3f5['format'](_0x662d62,Number(_0x386fc6)):_0x386fc6;}function Yi(_0x12dcac){const _0x63c974=_0xbfff20;return _0x12dcac['type']===_0x4fcd7c[_0x63c974(0x2e4)]||_0x12dcac[_0x63c974(0x427)]===_0x4fcd7c[_0x63c974(0x256)]||_0x12dcac[_0x63c974(0x427)]===_0x4fcd7c['Progress']||_0x12dcac['type']===_0x4fcd7c[_0x63c974(0x31c)];}function Xi(_0x850707){const _0x4b6719=_0xbfff20;switch(_0x850707){case _0x1126e4[_0x4b6719(0x350)]:return _0x4b6719(0x215);case _0x1126e4['Column']:return _0x4b6719(0x2fa);case _0x1126e4[_0x4b6719(0x2aa)]:return _0x4b6719(0x18f);default:return _0x4b6719(0x3a7);}}function Zi({config:_0xb45d85,onChange:_0xc74d7c,runtime:_0x22da3d,table:_0x23660c}){const _0x2d854f=_0xbfff20;let _0x1f762a=_0x29f087(_0x2989fb),[_0x55e02d,_0x1f7025]=_0x34e679(_0x2d854f(0x252));return _0x1108cb(_0x2d854f(0x1fb),{'className':_0x2d854f(0x439),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x1f762a['t'](_0x2d854f(0x3f2)),'className':_0x2d854f(0x3bd),'items':[{'label':_0x1f762a['t'](_0x2d854f(0x1eb)),'panelId':_0x2d854f(0x470),'value':'chart'},{'label':_0x1f762a['t'](_0x2d854f(0x3c9)),'panelId':'base-pivot-table-configuration','value':_0x2d854f(0x274)}],'value':_0x55e02d,'variant':'segmented','onChange':_0x1f7025}),_0x1c53e9(_0x2d854f(0x1e8),{'className':_0x2d854f(0x3ac),'children':_0x55e02d==='chart'?_0x22da3d&&_0x1c53e9($r,{'config':_0xb45d85,'runtime':_0x22da3d,'tableName':_0x23660c[_0x2d854f(0x3ca)],'onChange':_0xc74d7c}):_0x1c53e9(zi,{'config':_0xb45d85,'table':_0x23660c,'onChange':_0xc74d7c})})]});}function Qi({tableId:_0x5268e6,unitId:_0x32ec93,viewId:_0xcb365c}){const _0x1b60e0=_0xbfff20;let [_0x1dd88a,_0x17c392]=_0x34e679(!0x1),_0x178e49=_0x29f087(_0x2220df),_0x57e69b=_0x29f087(_0x14186a),_0x4490d1=_0x29f087(_0x49fceb),_0x5e3d36=_0x29f087(_0x2989fb),_0x5562fc=_0x29f087(_0x441727),[_0x69fcf9,_0x440b72]=_0x34e679(null),[_0x2e9b07,_0x107d57]=_0x34e679(null),_0x325e9a=_0x2861da(_0x1b60e0(0x244)+_0xd28735(0x8)),[_0x3dd905,_0x26a656]=_0x34e679(!0x1),_0x27616b=_0x57e69b[_0x1b60e0(0x454)](_0x32ec93,_0x37ea54[_0x1b60e0(0x2e2)]),_0x2c62e4=_0x27616b==null?void 0x0:_0x27616b[_0x1b60e0(0x373)]()['tables'][_0x5268e6],_0x7410e9=_0x2c62e4==null?void 0x0:_0x2c62e4['views'][_0xcb365c],_0x16f3e9=$i(_0x7410e9),_0x3df638=vr(_0x32ec93,_0x5268e6,_0xcb365c);if(_0x436796(()=>{const _0x3455cb=_0x1b60e0;if(!_0x16f3e9)return;let _0x288bda=_0x325e9a['current'];return _0x5562fc[_0x3455cb(0x38c)](_0x288bda,{'unitId':_0x32ec93,'tableId':_0x5268e6,'viewId':_0xcb365c,'filters':[]}),()=>{const _0x1a0615=_0x3455cb;_0x5562fc[_0x1a0615(0x414)](_0x32ec93,_0x288bda);};},[_0x16f3e9,_0x5562fc,_0x5268e6,_0x32ec93,_0xcb365c]),_0x436796(()=>{const _0x2ed499=_0x1b60e0;if(!$i(_0x7410e9))return;let _0x572aff=!0x0,_0x2124d1={'unitId':_0x32ec93,'tableId':_0x5268e6,'viewId':_0xcb365c,'filters':[_0x7410e9[_0x2ed499(0x2be)]??null]};return _0x5562fc['refreshChartRuntime'](_0x32ec93,_0x325e9a[_0x2ed499(0x49d)],_0x2124d1)[_0x2ed499(0x271)](_0x1cba5f=>{const _0x484619=_0x2ed499;_0x572aff&&_0x1cba5f&&(_0x440b72(_0x1cba5f),_0x107d57(_0x5562fc[_0x484619(0x3bf)](_0x32ec93,_0x325e9a[_0x484619(0x49d)])??null),_0x26a656(!0x1));})[_0x2ed499(0x433)](_0x3c7d54=>{const _0x3e4866=_0x2ed499;_0x4490d1[_0x3e4866(0x1a6)](_0x3e4866(0x33f),_0x3c7d54),_0x572aff&&(_0x440b72(null),_0x26a656(!0x0));}),()=>{_0x572aff=!0x1;};},[_0x4490d1,_0x5562fc,_0x5268e6,_0x32ec93,_0x7410e9,_0xcb365c]),!_0x2c62e4||!$i(_0x7410e9))return null;let _0x2ebf4e=_0x5562fc['getChartRuntime'](_0x32ec93,_0x325e9a[_0x1b60e0(0x49d)])===_0x2e9b07?_0x2e9b07:null,_0x2025f0=_0x69fcf9?_0x1108cb(_0x1b60e0(0x1e8),{'className':'univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','style':{'gridTemplateRows':_0x7410e9['config'][_0x1b60e0(0x463)]==='chart-and-table'?_0x1b60e0(0x2e7):_0x1b60e0(0x456)},'children':[_0x7410e9['config'][_0x1b60e0(0x463)]!==_0x1b60e0(0x405)&&_0x2ebf4e&&_0x1c53e9(_0x1b60e0(0x1e8),{'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':_0x1c53e9(Lr,{'isRowDirection':_0x3b57e8(_0x7410e9[_0x1b60e0(0x167)][_0x1b60e0(0x252)][_0x1b60e0(0x292)]),'runtime':_0x2ebf4e})}),_0x7410e9[_0x1b60e0(0x167)][_0x1b60e0(0x463)]!==_0x1b60e0(0x252)&&_0x1c53e9(_0x1b60e0(0x1e8),{'className':_0x1b60e0(0x45d),'children':_0x1c53e9(Ai,{'pivot':_0x7410e9['config'][_0x1b60e0(0x274)],'view':_0x69fcf9['view']})})]}):_0x1c53e9(_0x1b60e0(0x1e8),{'className':_0x1b60e0(0x216),'children':_0x3dd905?_0x5e3d36['t'](_0x1b60e0(0x2ed)):_0x5e3d36['t']('bases-dashboard-ui.pivot.calculating')}),_0x5c8284=_0x1c53e9(Zi,{'config':_0x7410e9[_0x1b60e0(0x167)],'runtime':_0x2ebf4e,'table':_0x2c62e4,'onChange':_0x50f441=>{const _0x73b1ad=_0x1b60e0;_0x57e69b[_0x73b1ad(0x1a8)](_0x32ec93),_0x57e69b[_0x73b1ad(0x177)](_0x32ec93),_0x178e49[_0x73b1ad(0x42e)](_0x50437b['id'],{'unitId':_0x32ec93,'tableId':_0x5268e6,'viewId':_0xcb365c,'patch':_0x50f441})[_0x73b1ad(0x433)](_0x206216=>_0x4490d1['error'](_0x73b1ad(0x3cd),_0x206216));}});return _0x1c53e9(qr,{'children':_0x1108cb(_0x1b60e0(0x1e8),{'className':_0x1b60e0(0x4a0),'children':[_0x3df638&&_0x1c53e9(_0x6d25a2,{'onClick':()=>_0x17c392(!0x0),'children':_0x5e3d36['t']('bases-dashboard-ui.pivot.chartConfiguration')}),_0x1c53e9(_0x1b60e0(0x1e8),{'className':'univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','children':_0x2025f0}),_0x3df638&&_0x1dd88a&&_0x1c53e9(_0xbfe7,{'title':_0x5e3d36['t'](_0x1b60e0(0x3f2)),'onClose':()=>_0x17c392(!0x1),'children':_0x5c8284})]})});}function $i(_0x46f4d6){const _0x309239=_0xbfff20;return(_0x46f4d6==null?void 0x0:_0x46f4d6[_0x309239(0x427)])===_0x54a718['Pivot']&&typeof _0x46f4d6['config']==_0x309239(0x235)&&_0x46f4d6['config']!==null&&_0x309239(0x274)in _0x46f4d6['config']&&_0x309239(0x252)in _0x46f4d6[_0x309239(0x167)]&&'displayMode'in _0x46f4d6['config'];}let ea=class extends _0x2eec42{constructor(_0x425ef9,_0x7b5489,_0x506c28,_0x247bc5,_0x3f42e9,_0x5df882){const _0x28c491=_0xbfff20;super(),this[_0x28c491(0x253)](_0x7b5489[_0x28c491(0x219)]({'type':_0x54a718[_0x28c491(0x2c9)],'renderMode':'dom','icon':_0x25ef71,'component':Qi,'menu':{get 'label'(){const _0xfa00bb=_0x28c491;return _0x5df882['t'](_0xfa00bb(0x3f2));},get 'description'(){return _0x5df882['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){const _0x2884f4=_0x28c491;return _0x5df882['t'](_0x2884f4(0x475));}}})),this['disposeWithMe'](_0x425ef9['register'](ta(_0x506c28,_0x247bc5,_0x3f42e9,_0x5df882)));}};ea=kr([Y(0x0,_0x2a9f9e),Y(0x1,_0x1611be),Y(0x2,_0x38b292(_0x309002)),Y(0x3,_0x2220df),Y(0x4,_0x4deb76),Y(0x5,_0x38b292(_0x2989fb))],ea);function ta(_0x129ae9,_0x2ea0d6,_0x715bb6,_0x2a23f5){const _0x3af9aa=_0xbfff20;return{'change$':_0x440773(_0x129ae9['change$'],_0x715bb6[_0x3af9aa(0x179)]),'component':xi,get 'labels'(){const _0x590806=_0x3af9aa;return{'add':_0x2a23f5['t']('bases-dashboard-ui.dashboard.add'),'configure':_0x211ad6=>_0x2a23f5['t']('bases-dashboard-ui.dashboard.configure',_0x211ad6),'delete':_0x2a23f5['t'](_0x590806(0x171)),'new':_0x2a23f5['t'](_0x590806(0x3ae)),'rename':_0x2a23f5['t'](_0x590806(0x336)),'search':_0x2a23f5['t'](_0x590806(0x325)),'section':_0x2a23f5['t'](_0x590806(0x2ec))};},'getItems':_0x32ed79=>{const _0x4a440c=_0x3af9aa;let _0xe1dfe=_0x129ae9[_0x4a440c(0x1ce)](_0x32ed79);return _0xe1dfe['dashboardOrder'][_0x4a440c(0x31f)](_0x4976d3=>{const _0x87b30f=_0x4a440c;let _0x46cbb1=_0xe1dfe[_0x87b30f(0x344)][_0x4976d3];return _0x46cbb1?[{'id':_0x46cbb1['id'],'name':_0x46cbb1[_0x87b30f(0x3ca)],'readonly':!_0x120634(_0x715bb6,_0x32ed79,_0x46cbb1['id'])}]:[];});},'create':async _0x425203=>{const _0x153cb3=_0x3af9aa;let _0x391635=_0x129ae9['getResource'](_0x425203),_0xfb9538='dashboard-'+_0xd28735(0x8),_0x227383=na(_0x391635[_0x153cb3(0x28e)][_0x153cb3(0x31f)](_0x5ce121=>{const _0x32ee0b=_0x153cb3;let _0x29e3da=_0x391635[_0x32ee0b(0x344)][_0x5ce121];return _0x29e3da?[_0x29e3da[_0x32ee0b(0x3ca)]]:[];}),_0x158a8b=>_0x2a23f5['t'](_0x153cb3(0x4ad),String(_0x158a8b)));return await _0x2ea0d6['executeCommand'](_0x28a4bb['id'],{'unitId':_0x425203,'dashboard':{'id':_0xfb9538,'name':_0x227383,'widgetOrder':[],'widgets':{}}})?_0xfb9538:null;},'rename':async(_0x2fbe8a,_0x449eed,_0x4dac9b)=>{const _0x2a1d98=_0x3af9aa;let _0x147389=_0x129ae9[_0x2a1d98(0x34a)](_0x2fbe8a,_0x449eed);return!!(_0x147389&&await _0x2ea0d6[_0x2a1d98(0x42e)](_0x39c855['id'],{'unitId':_0x2fbe8a,'dashboard':{..._0x147389,'name':_0x4dac9b}}));},'remove':(_0x3ce609,_0xa61371)=>_0x2ea0d6['executeCommand'](_0x22a544['id'],{'unitId':_0x3ce609,'dashboardId':_0xa61371})};}function na(_0x2877c3,_0x5a9e8c){const _0x4bb91c=_0xbfff20;let _0x57e948=new Set(_0x2877c3),_0x13d3ed=_0x57e948['size']+0x1,_0x412b98=_0x5a9e8c(_0x13d3ed);for(;_0x57e948[_0x4bb91c(0x2f8)](_0x412b98);)_0x13d3ed+=0x1,_0x412b98=_0x5a9e8c(_0x13d3ed);return _0x412b98;}let ra=class extends _0x14271e{constructor(_0x5a721a=gr,_0xc5bd45,_0x574f1c){const _0x509b9e=_0xbfff20;super(),this[_0x509b9e(0x469)]=_0x5a721a,this['_injector']=_0xc5bd45,this[_0x509b9e(0x403)]=_0x574f1c;let {..._0x30fd98}=_0x2004cb({},gr,this[_0x509b9e(0x469)]);this[_0x509b9e(0x403)][_0x509b9e(0x4a4)](hr,_0x30fd98);}[_0xbfff20(0x37a)](){const _0x2c81f9=_0xbfff20;this[_0x2c81f9(0x326)][_0x2c81f9(0x1d7)]([Ar]),this[_0x2c81f9(0x326)]['add']([Kr]),this[_0x2c81f9(0x326)][_0x2c81f9(0x1d7)]([ea]);}[_0xbfff20(0x184)](){const _0x1ba84d=_0xbfff20;_0x5b9752(this[_0x1ba84d(0x326)],[[Ar],[Kr],[ea]]);}};Fr(ra,_0xbfff20(0x427),_0x37ea54[_0xbfff20(0x2e2)]),Fr(ra,_0xbfff20(0x1d4),_0xbfff20(0x255)),Fr(ra,_0xbfff20(0x267),pr),Fr(ra,_0xbfff20(0x1b7),mr),ra=kr([_0x1957bf(_0x36c2e0,_0xbeeff3,_0x31752d,_0x48f981,_0x3371b7,_0xc91b76),Y(0x1,_0x38b292(_0x38337e)),Y(0x2,_0x6de229)],ra);function ia(_0x209c04,_0x49342f,_0xe76e85,_0x1d8b1f){const _0x5b6994=_0xbfff20;let _0x2550e5={..._0x209c04};if(_0x49342f[_0x5b6994(0x3d0)]('w')){let _0x55787c=_0x209c04[_0x5b6994(0x204)]+_0x209c04[_0x5b6994(0x41d)];_0x2550e5['column']=Math[_0x5b6994(0x43f)](0x0,Math[_0x5b6994(0x441)](_0x55787c-0x1,_0x209c04[_0x5b6994(0x204)]+_0xe76e85)),_0x2550e5[_0x5b6994(0x41d)]=_0x55787c-_0x2550e5[_0x5b6994(0x204)];}else _0x49342f[_0x5b6994(0x3d0)]('e')&&(_0x2550e5[_0x5b6994(0x41d)]=Math[_0x5b6994(0x43f)](0x1,Math[_0x5b6994(0x441)](_0x5c9bf8-_0x209c04[_0x5b6994(0x204)],_0x209c04[_0x5b6994(0x41d)]+_0xe76e85)));if(_0x49342f[_0x5b6994(0x3d0)]('n')){let _0x1f7210=_0x209c04[_0x5b6994(0x430)]+_0x209c04[_0x5b6994(0x1b2)];_0x2550e5['row']=Math[_0x5b6994(0x43f)](0x0,Math[_0x5b6994(0x441)](_0x1f7210-0x1,_0x209c04[_0x5b6994(0x430)]+_0x1d8b1f)),_0x2550e5[_0x5b6994(0x1b2)]=_0x1f7210-_0x2550e5[_0x5b6994(0x430)];}else _0x49342f[_0x5b6994(0x3d0)]('s')&&(_0x2550e5['rowSpan']=Math['max'](0x1,_0x209c04[_0x5b6994(0x1b2)]+_0x1d8b1f));return _0x2550e5;}function aa(_0x38e38a){const _0x1bc90c=_0xbfff20;let _0x6c8687=Math['max'](0x1,Math[_0x1bc90c(0x441)](_0x5c9bf8,Math[_0x1bc90c(0x4a9)](_0x38e38a[_0x1bc90c(0x41d)])));return{'column':Math[_0x1bc90c(0x43f)](0x0,Math[_0x1bc90c(0x441)](_0x5c9bf8-_0x6c8687,Math['round'](_0x38e38a['column']))),'row':Math['max'](0x0,Math[_0x1bc90c(0x4a9)](_0x38e38a['row'])),'columnSpan':_0x6c8687,'rowSpan':Math[_0x1bc90c(0x43f)](0x1,Math[_0x1bc90c(0x4a9)](_0x38e38a[_0x1bc90c(0x1b2)]))};}function oa(_0x4edf2a,_0x212e9e,_0x324666){const _0x3741d8=_0xbfff20;let _0x22bd85=new Map(_0x4edf2a),_0xa40428=aa(_0x324666);_0x22bd85[_0x3741d8(0x499)](_0x212e9e,_0xa40428);let _0x12d9a=[[_0x212e9e,_0xa40428]];for(let [_0xdb7a6f,_0x26f54a]of _0x22bd85){if(_0xdb7a6f===_0x212e9e)continue;let _0x55df51=aa(_0x26f54a);for(;_0x12d9a[_0x3741d8(0x415)](([,_0x3420de])=>ca(_0x55df51,_0x3420de));)_0x55df51={..._0x55df51,'row':_0x55df51['row']+0x1};for(;_0x55df51[_0x3741d8(0x430)]>0x0;){let _0x279c70={..._0x55df51,'row':_0x55df51['row']-0x1};if(_0x12d9a[_0x3741d8(0x415)](([,_0x3aa21a])=>ca(_0x279c70,_0x3aa21a)))break;_0x55df51=_0x279c70;}_0x12d9a[_0x3741d8(0x181)]([_0xdb7a6f,_0x55df51]),_0x22bd85['set'](_0xdb7a6f,_0x55df51);}return _0x22bd85;}function sa(_0x54c4b3,_0x4821a9,_0x10743b,_0x5e6245=0x38,_0x2efd5e=0x16){const _0x2a2a2d=_0xbfff20;return _0x54c4b3<_0x4821a9+_0x5e6245?-Math[_0x2a2a2d(0x1e0)](_0x2efd5e*(0x1-Math['max'](0x0,_0x54c4b3-_0x4821a9)/_0x5e6245)):_0x54c4b3>_0x10743b-_0x5e6245?Math[_0x2a2a2d(0x1e0)](_0x2efd5e*(0x1-Math[_0x2a2a2d(0x43f)](0x0,_0x10743b-_0x54c4b3)/_0x5e6245)):0x0;}function ca(_0x20b5e2,_0x252947){const _0x3bab8c=_0xbfff20;return _0x20b5e2['column']<_0x252947[_0x3bab8c(0x204)]+_0x252947[_0x3bab8c(0x41d)]&&_0x20b5e2[_0x3bab8c(0x204)]+_0x20b5e2[_0x3bab8c(0x41d)]>_0x252947[_0x3bab8c(0x204)]&&_0x20b5e2[_0x3bab8c(0x430)]<_0x252947['row']+_0x252947[_0x3bab8c(0x1b2)]&&_0x20b5e2[_0x3bab8c(0x430)]+_0x20b5e2['rowSpan']>_0x252947[_0x3bab8c(0x430)];}const la=[{'direction':'nw','className':_0xbfff20(0x193)},{'direction':'n','className':'-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize'},{'direction':'ne','className':_0xbfff20(0x26d)},{'direction':'e','className':_0xbfff20(0x49b)},{'direction':'se','className':_0xbfff20(0x46e)},{'direction':'s','className':'-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize'},{'direction':'sw','className':_0xbfff20(0x3a8)},{'direction':'w','className':_0xbfff20(0x35a)}];function ua({dashboard:_0x146d4e,dragLabel:_0x1d1287,editable:_0x1fa28f=!0x0,onLayoutsCommit:_0x2b7e04,onSelectWidget:_0x2febe6,renderWidget:_0x3721db,renderWidgetActions:_0x3f9efc,resizeLabel:_0x5dc9d4,selectedWidgetId:_0x23974d,widgetLabel:_0x46e96d}){const _0x383644=_0xbfff20;let _0x1aa9bc=_0x2861da(null),_0x1cf843=_0x2861da(null),[_0x3d1fe7,_0x46455d]=_0x34e679(!0x1),_0xde84dd=_0x548c0f(()=>new Map(_0x146d4e[_0x383644(0x3b1)][_0x383644(0x31f)](_0xb8bfae=>{const _0x4307fa=_0x383644;let _0x16cf78=_0x146d4e[_0x4307fa(0x280)][_0xb8bfae];return _0x16cf78?[[_0xb8bfae,_0x16cf78[_0x4307fa(0x2fc)]]]:[];})),[_0x146d4e]),[_0x20db1d,_0x470777]=_0x34e679(_0xde84dd);_0x436796(()=>{const _0x8c0fd8=_0x383644;_0x1cf843[_0x8c0fd8(0x49d)]||_0x470777(_0xde84dd);},[_0xde84dd]),_0x436796(()=>{const _0x3a2047=_0x383644;if(!_0x3d1fe7)return;let _0x1c92a7=_0x1ed6e3=>{const _0x16fb2b=_0x5dbe;let _0x2e2f64=_0x1aa9bc[_0x16fb2b(0x49d)];if(!_0x2e2f64)return null;let _0x351ce4=_0x2e2f64[_0x16fb2b(0x260)](),_0x1e8c94=Math[_0x16fb2b(0x43f)](0x1,(_0x351ce4[_0x16fb2b(0x4ac)]-0x8*(_0x5c9bf8-0x1))/_0x5c9bf8),_0x196d15=Math[_0x16fb2b(0x4a9)]((_0x2e2f64[_0x16fb2b(0x389)]-_0x1ed6e3[_0x16fb2b(0x234)])/(_0x3e9cab+0x8)),_0xbbe4ff=Math[_0x16fb2b(0x4a9)]((_0x1ed6e3['pointerX']-_0x1ed6e3[_0x16fb2b(0x283)])/(_0x1e8c94+0x8)),_0x1a7e60=Math[_0x16fb2b(0x4a9)]((_0x1ed6e3['pointerY']-_0x1ed6e3[_0x16fb2b(0x2fe)])/(_0x3e9cab+0x8))+_0x196d15,_0x1c3c1f=_0x1ed6e3[_0x16fb2b(0x3fd)]===_0x16fb2b(0x268)?{..._0x1ed6e3[_0x16fb2b(0x30d)],'column':_0x1ed6e3['initial'][_0x16fb2b(0x204)]+_0xbbe4ff,'row':_0x1ed6e3[_0x16fb2b(0x30d)][_0x16fb2b(0x430)]+_0x1a7e60}:ia(_0x1ed6e3[_0x16fb2b(0x30d)],_0x1ed6e3['resizeDirection']??'se',_0xbbe4ff,_0x1a7e60),_0x47c841=oa(_0x1ed6e3['initialLayouts'],_0x1ed6e3['id'],_0x1c3c1f);return _0x470777(_0x47c841),_0x47c841;},_0x518e04=_0x22c649=>{const _0x1ff540=_0x5dbe;let _0x467bab=_0x1cf843[_0x1ff540(0x49d)];if(!_0x467bab)return;let _0x6916ab={..._0x467bab,'pointerX':_0x22c649[_0x1ff540(0x1f0)],'pointerY':_0x22c649[_0x1ff540(0x4ae)]};_0x1cf843[_0x1ff540(0x49d)]=_0x6916ab;},_0x1ff33a=()=>{let _0x257699=_0x1cf843['current'],_0x3baf9e=_0x257699?_0x1c92a7(_0x257699):null;_0x1cf843['current']=null,_0x46455d(!0x1),_0x3baf9e&&_0x2b7e04(_0x3baf9e);},_0x5517b1=0x0,_0x4ca90d=()=>{const _0x30e415=_0x5dbe;let _0x20b903=_0x1aa9bc['current'],_0x4711f8=_0x1cf843['current'];if(_0x20b903&&_0x4711f8){let _0x4a5c10=_0x20b903['getBoundingClientRect'](),_0xc35a4e=sa(_0x4711f8['pointerY'],_0x4a5c10[_0x30e415(0x3e6)],_0x4a5c10[_0x30e415(0x2a2)]);_0xc35a4e!==0x0&&(_0x20b903[_0x30e415(0x389)]+=_0xc35a4e),_0x1c92a7(_0x4711f8),_0x5517b1=requestAnimationFrame(_0x4ca90d);}};return _0x5517b1=requestAnimationFrame(_0x4ca90d),window[_0x3a2047(0x410)]('pointermove',_0x518e04),window[_0x3a2047(0x410)](_0x3a2047(0x293),_0x1ff33a),()=>{const _0x16ce17=_0x3a2047;cancelAnimationFrame(_0x5517b1),window[_0x16ce17(0x300)](_0x16ce17(0x233),_0x518e04),window['removeEventListener'](_0x16ce17(0x293),_0x1ff33a);};},[_0x3d1fe7,_0x2b7e04]);let _0x2078a1=Math[_0x383644(0x43f)](0x8,...Array[_0x383644(0x2a7)](_0x20db1d['values']())[_0x383644(0x1fd)](_0x3b4179=>_0x3b4179['row']+_0x3b4179[_0x383644(0x1b2)])),_0x1f4ba7=(_0x592e48,_0x37d1e5,_0xa89720,_0x1d7137)=>{const _0x1c76f7=_0x383644;_0x592e48[_0x1c76f7(0x2ea)](),_0x592e48[_0x1c76f7(0x3fb)]();let _0x15a4ba=_0x1aa9bc['current'],_0x45b76d={'id':_0x37d1e5['id'],'mode':_0xa89720,'pointerX':_0x592e48['clientX'],'pointerY':_0x592e48[_0x1c76f7(0x4ae)],'startX':_0x592e48['clientX'],'startY':_0x592e48['clientY'],'startScrollTop':(_0x15a4ba==null?void 0x0:_0x15a4ba['scrollTop'])??0x0,'initial':_0x20db1d[_0x1c76f7(0x197)](_0x37d1e5['id'])??_0x37d1e5[_0x1c76f7(0x2fc)],'initialLayouts':new Map(_0x20db1d),'resizeDirection':_0x1d7137};_0x1cf843[_0x1c76f7(0x49d)]=_0x45b76d,_0x46455d(!0x0);};return _0x1c53e9(_0x383644(0x1e8),{'ref':_0x1aa9bc,'data-dashboard-scroll-container':!0x0,'className':_0x14b647(_0x383644(0x48f),_0x439165),'onClick':_0x1fa28f?_0xb8d4a7=>{const _0x346520=_0x383644;if(!(_0xb8d4a7['target']instanceof Node)||!_0xb8d4a7[_0x346520(0x40a)][_0x346520(0x3e5)](_0xb8d4a7[_0x346520(0x1cb)]))return;let _0xfbbbf2=_0xb8d4a7[_0x346520(0x1cb)]instanceof Element?_0xb8d4a7[_0x346520(0x1cb)]:_0xb8d4a7[_0x346520(0x1cb)][_0x346520(0x196)];_0xfbbbf2!=null&&_0xfbbbf2[_0x346520(0x21a)](_0x346520(0x16b))||_0x2febe6==null||_0x2febe6();}:void 0x0,'children':_0x1c53e9(_0x383644(0x1e8),{'data-dashboard-grid':!0x0,'className':_0x383644(0x3cc),'style':{'gap':0x8,'gridAutoRows':_0x3e9cab,'minHeight':_0x2078a1*(_0x3e9cab+0x8)},'children':_0x146d4e[_0x383644(0x3b1)]['map'](_0xca2d3a=>{const _0x5e7b5e=_0x383644;var _0x10b23d;let _0x431510=_0x146d4e[_0x5e7b5e(0x280)][_0xca2d3a],_0x532894=_0x20db1d['get'](_0xca2d3a);return!_0x431510||!_0x532894?null:_0x1108cb(_0x5e7b5e(0x241),{'data-dashboard-widget':_0x431510['id'],'aria-label':_0x431510[_0x5e7b5e(0x236)]??_0x46e96d(_0x431510),'className':_0x14b647('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',_0x431510[_0x5e7b5e(0x427)]===_0x1402ed['Image']||_0x431510[_0x5e7b5e(0x427)]===_0x1402ed[_0x5e7b5e(0x1d9)]?_0x5e7b5e(0x361):_0x5e7b5e(0x33a),_0x1fa28f&&_0x23974d===_0x431510['id']?_0x5e7b5e(0x462):'univer-border-gray-200\x20dark:!univer-border-gray-700'),'style':{'gridColumn':_0x532894[_0x5e7b5e(0x204)]+0x1+_0x5e7b5e(0x1fe)+_0x532894[_0x5e7b5e(0x41d)],'gridRow':_0x532894['row']+0x1+_0x5e7b5e(0x1fe)+_0x532894[_0x5e7b5e(0x1b2)]},'tabIndex':_0x1fa28f?0x0:void 0x0,'onClick':_0x1fa28f?()=>_0x2febe6==null?void 0x0:_0x2febe6(_0x431510['id']):void 0x0,'onFocus':_0x1fa28f?()=>_0x2febe6==null?void 0x0:_0x2febe6(_0x431510['id']):void 0x0,'children':[_0x1fa28f&&_0x1c53e9(_0x5e7b5e(0x2d8),{'type':_0x5e7b5e(0x2d8),'aria-label':_0x1d1287,'data-dashboard-drag-handle':_0x431510['id'],'className':_0x14b647(_0x5e7b5e(0x44b),_0x3d1fe7&&((_0x10b23d=_0x1cf843[_0x5e7b5e(0x49d)])==null?void 0x0:_0x10b23d['id'])===_0x431510['id']&&_0x1cf843[_0x5e7b5e(0x49d)][_0x5e7b5e(0x3fd)]==='move'?'univer-cursor-grabbing':_0x5e7b5e(0x36b)),'onPointerDown':_0x4c04b5=>_0x1f4ba7(_0x4c04b5,_0x431510,_0x5e7b5e(0x268)),'children':_0x1c53e9(_0x4f0f93,{'className':'univer-size-5\x20univer-rotate-90','aria-hidden':_0x5e7b5e(0x354)})}),_0x1fa28f&&_0x1c53e9(_0x5e7b5e(0x1e8),{'className':_0x5e7b5e(0x358),'children':_0x3f9efc==null?void 0x0:_0x3f9efc(_0x431510)}),_0x1c53e9(_0x5e7b5e(0x1e8),{'className':_0x5e7b5e(0x46f),'children':_0x3721db(_0x431510)}),_0x1fa28f&&la[_0x5e7b5e(0x1fd)](({className:_0x5d5ba5,direction:_0x9bfe47})=>{const _0x3e8113=_0x5e7b5e;let _0x311d9a=_0x9bfe47[_0x3e8113(0x2df)]===0x2;return _0x1c53e9(_0x3e8113(0x2d8),{'type':_0x3e8113(0x2d8),'aria-label':_0x5dc9d4,'data-dashboard-resize-handle':_0x9bfe47,'data-dashboard-resize-control':_0x311d9a?_0x9bfe47:void 0x0,'data-dashboard-resize-edge':_0x311d9a?void 0x0:_0x9bfe47,'className':_0x14b647(_0x3e8113(0x485),_0x311d9a?_0x3e8113(0x3d6):'univer-border-0\x20univer-bg-transparent',_0x5d5ba5,_0x23974d===_0x431510['id']&&'univer-pointer-events-auto\x20univer-opacity-100'),'onPointerDown':_0x2f65dc=>_0x1f4ba7(_0x2f65dc,_0x431510,_0x3e8113(0x306),_0x9bfe47)},_0x9bfe47);})]},_0x431510['id']);})})});}var da;const Q={'axis':{..._0x3c4ba3,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x2c5e3a,'heatmap':_0x4f57a1,'indicatorLine':_0x57cad4,'legend':_0x43f27b,'lineAndArea':_0x1a8b1f,'pareto':_0x1aa1b1,'pie':_0x258d6f,'radar':_0x2ec41b,'relation':{..._0x4805f6,'useValueAsSymbolSize':!0x0},'series':{..._0x13b217,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((da=_0x40bf0b[_0xbfff20(0x254)])==null?void 0x0:da[_0xbfff20(0x492)])??!0x1}},'style':_0x13d7eb,'titles':_0x4abb4a,'trendline':_0x72a22e,'waterfall':{..._0x2cc178,'useSubtotal':!0x0},'waterfallStyle':_0x436808,'wordCloud':_0xfd1cc7},fa=[_0x217c21['Line'],_0x217c21['Radar'],_0x217c21['WordCloud'],_0x217c21[_0xbfff20(0x170)],_0x217c21[_0xbfff20(0x25a)],_0x217c21[_0xbfff20(0x1f4)],_0x217c21[_0xbfff20(0x23a)],_0x217c21['Heatmap'],_0x217c21[_0xbfff20(0x4a7)],_0x217c21[_0xbfff20(0x360)],_0x217c21[_0xbfff20(0x2f3)],_0x217c21[_0xbfff20(0x3a2)],_0x217c21['Sunburst'],_0x217c21[_0xbfff20(0x38f)],_0x217c21['Chord']];function pa(_0xa2273e){const _0x16910b=_0xbfff20;let {config:_0x537b8c,onChange:_0x447127,runtime:_0x127e72,tableName:_0x1a256c}=_0xa2273e,_0x12dc89=_0x29f087(Kr),_0x2a8993=_0x29f087(_0x2989fb),[_0x1a7bc0,_0x3f0e81]=_0x34e679(_0x39d056[_0x16910b(0x491)]),_0x548a5d=_0x548c0f(()=>new _0x439e96(_0x127e72[_0x16910b(0x1ee)],{'commit':_0x10d07a=>{const _0x4e54e4=_0x16910b;var _0x4c1130;let _0x3d04d6=_0x127e72[_0x4e54e4(0x1ee)],_0x355b99=_0x3aa652(_0x10d07a,{'series':(_0x4c1130=_0x3d04d6[_0x4e54e4(0x167)])==null?void 0x0:_0x4c1130['series'],'currentChartType':_0x3d04d6[_0x4e54e4(0x288)],'currentStyle':_0x3d04d6[_0x4e54e4(0x2c8)],'currentContext':_0x3d04d6['context'],'currentDataAggregation':_0x3d04d6[_0x4e54e4(0x48e)]});_0x447127({'chart':ma(_0x537b8c['chart'],_0x355b99)});}}),[_0x537b8c[_0x16910b(0x252)],_0x447127,_0x127e72]),_0x20da2d=_0x548c0f(()=>_0x5b5e1c(_0x1fbca7[_0x16910b(0x1fd)](_0x4d1673=>({..._0x4d1673,'label':_0x2a8993['t'](va(_0x4d1673[_0x16910b(0x364)]))}))),[_0x2a8993]);return _0x1c53e9(_0x413b19,{'chartUIService':_0x12dc89,'hostAdapter':_0x548a5d,'children':_0x1108cb(_0x16910b(0x1e8),{'className':_0x16910b(0x1d6),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x2a8993['t'](_0x16910b(0x1b1)),'className':_0x16910b(0x251),'items':[{'label':_0x2a8993['t'](_0x16910b(0x242)),'panelId':_0x16910b(0x41e),'value':_0x39d056[_0x16910b(0x491)]},{'label':_0x2a8993['t'](_0x16910b(0x1c3)),'panelId':_0x16910b(0x474),'value':_0x39d056[_0x16910b(0x30a)]}],'value':_0x1a7bc0,'onChange':_0x3f0e81}),_0x1a7bc0===_0x39d056[_0x16910b(0x491)]?_0x1c53e9(_0x420eaf,{'id':_0x16910b(0x41e),'label':_0x2a8993['t'](_0x16910b(0x242)),'children':_0x1108cb('div',{'className':_0x16910b(0x3b9),'children':[_0x1c53e9(_0x44e1cd,{'options':_0x20da2d}),_0x1c53e9(_0xd07337,{}),_0x1c53e9(_0x2a621a,{}),_0x1c53e9(ha,{}),_0x1c53e9(_0x14bbde,{}),_0x1108cb(_0x16910b(0x1e8),{'children':[_0x1c53e9(_0x4ed5df,{'title':_0x2a8993['t']('bases-dashboard-ui.pivot.dataSource')}),_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':_0x1a256c})]}),_0x1c53e9(_0x521472,{'orientationControl':_0x1c53e9(_0x6d25a2,{'size':_0x16910b(0x189),'onClick':()=>_0x447127({'chart':{..._0x537b8c[_0x16910b(0x252)],'orient':_0x537b8c['chart'][_0x16910b(0x292)]==='row'?_0x16910b(0x204):'row'}}),'children':_0x2a8993['t'](_0x16910b(0x3a6))})}),_0x1c53e9(_0x27502d,{}),_0x1c53e9(_0x1e15dd,{'defaultValues':Q[_0x16910b(0x1fc)]}),_0x1108cb('div',{'children':[_0x1c53e9(_0x4ed5df,{'title':_0x2a8993['t'](_0x16910b(0x47e))}),_0x1c53e9(_0x219a49,{'value':_0x537b8c['displayMode'],'options':[{'value':_0x16910b(0x36e),'label':_0x2a8993['t'](_0x16910b(0x343))},{'value':'chart','label':_0x2a8993['t'](_0x16910b(0x266))},{'value':_0x16910b(0x405),'label':_0x2a8993['t'](_0x16910b(0x186))}],'onChange':_0x268bd2=>{const _0x9cacda=_0x16910b;(_0x268bd2==='chart-and-table'||_0x268bd2===_0x9cacda(0x252)||_0x268bd2==='table')&&_0x447127({'displayMode':_0x268bd2});}})]})]})}):_0x1c53e9(_0x420eaf,{'id':_0x16910b(0x474),'label':_0x2a8993['t'](_0x16910b(0x1c3)),'children':_0x1c53e9(ga,{})})]})});}function ma(_0x305916,_0x1ba861){const _0x442d42=_0xbfff20;return{..._0x305916,'type':_0x1ba861[_0x442d42(0x288)]??_0x305916[_0x442d42(0x427)],'style':_0x1ba861[_0x442d42(0x2c8)]??_0x305916[_0x442d42(0x2c8)],'context':_0x1ba861[_0x442d42(0x3b5)]??_0x305916['context'],'dataAggregation':_0x1ba861[_0x442d42(0x48e)]??_0x305916[_0x442d42(0x48e)]};}function ha(){const _0x44e44c=_0xbfff20;let _0x4186a6=_0x486f74();return _0x1c53e9(_0x18f4fe,{'visible':fa[_0x44e44c(0x311)](_0x739e4f=>!_0x1094d9['baseOn'](_0x4186a6,_0x739e4f))});}function _0x1cf0(){const _0x117c88=['bases-dashboard-ui.pivot.addToColumn','univer-mb-3\x20univer-text-sm\x20univer-font-medium','layout','auto','startY','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','removeEventListener','bases-dashboard-ui.dashboardInspector.enterValue','scrollWidth','bases-dashboard-ui.dashboard.pivotChart','dom','univer-size-4','resize','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','getFieldCountByArea','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','Style','univer-flex\x20univer-gap-2','univer-mx-auto\x20univer-size-6','initial','default','baseOn','children','every','errorType','univer-mt-2','bases-dashboard-ui.dashboard.undo','MultipleGrandTotal','bases-dashboard-ui.dashboardInspector.alignment','visibilityState','isArray','bases-dashboard-ui.dashboard.tableFilter','bases-dashboard-ui.chart.section.indicatorLine','bases-dashboard-ui.dashboardInspector.percent','Rating','ParetoBarSeries','appearance','flatMap','fontSize','bases-dashboard-ui.chart.section.paretoBar','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','bases-dashboard-ui.pivot.rowSubtotalPosition','result','bases-dashboard-ui.dashboard.search','_injector','bases-dashboard-ui.operators.isNot','formatMap','rowSubtotalPosition','114622ZlDzfz','univer-grid\x20univer-gap-3\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','univer-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','tableOrder','fullscreenElement','bases-dashboard-ui.dashboardInspector.textSize','blank','filterFields','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','border-box','pageView','tableId','bases-dashboard-ui.dashboard.rename','bases-dashboard-ui.pivot.selectAll','pageRows','ChartAndAxisTitles','univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.chart.','repeat','backgroundColor','currency','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.pivot.numberFormat','waterfall.negative','bases-dashboard-ui.pivot.chartAndTable','dashboards','backgroundImage','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','kind','bases-dashboard-ui.pivot.layout','bases-dashboard-ui.operators.after','getDashboard','bases-dashboard-ui.chart.chartTypes.area','files','updateValuePosition','values','center','Row','bases-dashboard-ui.chart.common.legend','toPrimitive','stdDevp','true','setSubtotalType','Radar','ascending','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','axis','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','lastRow','rootContainerElement','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','saveImage','GREATER_THAN','Candlestick','univer-bg-transparent\x20dark:!univer-bg-transparent','stdDev','currentColor','labelId','index','bases-dashboard-ui.dashboardInspector.editFormula','LESS_THAN_OR_EQUAL','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','bases-dashboard-ui.pivot.filterField','univer-cursor-grab','baseChartDataAnimation','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','chart-and-table','bases-dashboard-ui.dashboardInspector.compact','RoundRect','chartId','decimalPlaces','getSnapshot','var','delete','bases-dashboard-ui.dashboardInspector.general','operand','direction$','innerWidth','onStarting','setLayout','bases-dashboard-ui.operators.lessThanOrEqual','base-pivot-table-configuration','options','bases-dashboard-ui.chart.common.chartAndAxisTitles','dashboard-chart-setup','bases-dashboard-ui.dashboardInspector.numberFormat','setStyle','tabular','bases-dashboard-ui.dashboardInspector.textColor','bases-dashboard-ui.pivot.layoutTabular','UpdatedAt','Checkbox','addImageSourceCache','scrollTop','removeField','textStyle','acquireChartRuntime','GeneralSeries','pageWrap','Gauge','bases-dashboard-ui.pivot.valuePosition','bases-dashboard-ui.pivot.cancel','product','resolve','baseChartDataAnimationDuration','canView','bases-dashboard-ui.pivot.average','PieStyle','univer-m-3','bases-dashboard-ui.chart.section.sunburst','AFTER','localeKey','301406KvMaxG','addFieldWithSourceId','HorizontalAxis','colCount','YYYY-MM-DD','repeatRowLabels','Treemap','bases-dashboard-ui.chart.section.funnel','getImage','VerticalAxis','bases-dashboard-ui.chart.common.switchRowColumn','bases-dashboard-ui.pivot.addToFilter','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','univer-min-w-0\x20univer-flex-1','univer-truncate','Positive','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','bases-dashboard-ui.pivot.showRowGrandTotal','bases-dashboard-ui.dashboard.new','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','bases-dashboard-ui.dashboardInspector.replaceImage','widgetOrder','bases-dashboard-ui.pivot.calculating','bases-dashboard-ui.chart.section.wordCloud','bases-dashboard-ui.pivot.confirm','context','documentStyle','onFilter','general','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','bases-dashboard-ui.dashboard.text','bases-dashboard-ui.pivot.columns','\x20has\x20no\x20render\x20config.','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','Base\x20dashboard\x20chart\x20','getChartRuntime','LESS_THAN','clientWidth','sum','bases-dashboard-ui.pivot.repeatRowLabels','bases-dashboard-ui.pivot.downThenAcross','tbody','getId','function','PivotChart','bases-dashboard-ui.pivot.pivotConfiguration','name','bases-dashboard-ui.dashboardInspector.dataSource','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','4990AkZDzS','split','includes','indicatorLine','primary','Bubble','bases-dashboard-ui.pivot.max','toLocaleLowerCase','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-w-24','showRowSubtotal','print','base-pivot-options','bases-dashboard-ui.dashboardInspector.originalSize','bases-dashboard-ui.chart.waterfall.subtotal','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','Progress','tables','string','stringify','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','syncLayout','getTableFieldsByDataFieldId','contains','top','univer-grid\x20univer-gap-2\x20univer-p-3','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','univer-text-sm\x20univer-font-medium','compact','univer-size-5\x20univer-text-primary-600','bases-dashboard-ui.dashboardInspector.left','WaterfallSeries','RightVerticalAxis','Axes','bases-dashboard-ui.pivot.grandTotal','bases-dashboard-ui.pivot.name','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','unsubscribe','bases-dashboard-ui.pivot.layoutCompact','Pareto','SolidLine','bases-dashboard-ui.pivot.fields','colView','defaultValue','stopPropagation','select','mode','renderRevision','outline','dataView','dimension','height','_configService','conjunction','table','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','flex-start','bases-dashboard-ui.chart.chartTypes.','legend','currentTarget','pageOverThenDown','symbol','rowView','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','ChartStyle','addEventListener','bases-dashboard-ui.chart.section.chord','defaultPrevented','bases-dashboard-ui.chart.section.gridlinesAndTicks','releaseChartRuntime','some','Escape','bases-dashboard-ui.chart.common.trendline','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','darkMode$','bases-dashboard-ui.operators.contains','bases-dashboard-ui.dashboardInspector.backgroundColor','bases-dashboard-ui.pivot.description','columnSpan','base-pivot-chart-setup','false','stroke','measure','Dom','markNotReady','subUnitId','CreatedAt','border','type','IS_NOT_EMPTY','description','bases-dashboard-ui.chart.section.relation','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','paragraphs','observe','executeCommand','textColor','row','univer-flex\x20univer-justify-end\x20univer-gap-2','snapshot','catch','bases-dashboard-ui.chart.chartTypes.line','bases-dashboard-ui.dashboardInspector.selectOption','univer-flex-1','cornerView','radius','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','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','Date','bases-dashboard-ui.pivot.clearFilter','bases-dashboard-ui.pivot.sum','1.1.0','max','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','min','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','bases-dashboard-ui.dashboard.add','exitFullscreen','updateFieldPosition','cumulativeLineStyle','univer-flex\x20univer-min-h-0\x20univer-flex-1','requestFullscreen','univer-w-full','General','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','univer-w-36','Chord','bases-dashboard-ui.chart.section.paretoLine','setSortInfo','area','bases-dashboard-ui.dashboardInspector.grouped','bases-dashboard-ui.operators.greaterThan','univer-h-full\x20univer-w-full\x20univer-bg-transparent','getUnit','renameField','minmax(0,\x201fr)','createElement','WordCloud','GrandTotal','bases-dashboard-ui.pivot.layoutOutline','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','gray','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','bases-dashboard-ui.mobile.moveUp','body','onMove','isTopTotal','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','displayMode','bases-dashboard-ui.pivot.bottom','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','subItem','fill','bases-dashboard-ui.operators.lessThan','_config','bases-dashboard-ui.dashboardInspector.unchecked','image/*','getOptions','accept','univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','base-pivot-chart-configuration','Image','pipe','_createContext','base-pivot-chart-style','bases-dashboard-ui.pivot.defaultName','bases-dashboard-ui.chart.common.rightVerticalAxis','allowMultiple','hidden','univer-text-sm','bases-dashboard-ui.pivot.min','bases-dashboard-ui.dashboard.formulaShape','redos','createRenderInput','bases-dashboard-ui.pivot.display','getRenderColor','bases-dashboard-ui.pivot.displayName','univer-grid\x20univer-gap-4\x20univer-p-4','checkMounted','bases-dashboard-ui.dashboardInspector.contain','getDirection','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','bases-dashboard-ui.dashboard.addWidget','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','flex-end','repeatColLabels','univer-grid\x20univer-gap-4','bases-dashboard-ui.operators.is','key','dataAggregation','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','data','Data','rightYAxis','section','indexOf','formula','RecordId','bases-dashboard-ui.pivot.ascending','univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','set','bases-dashboard-ui.dashboardInspector.style','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','univer-border-gray-200\x20dark:!univer-border-gray-700','current','toUpperCase','defineProperty','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','documentElement','forEach','subtotal','setConfig','numberFormat','bases-dashboard-ui.pivot.fieldSettings','Boxplot','dashboard-widget-','round','boxSizing','\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','width','bases-dashboard-ui.dashboard.defaultName','clientY','filterInfo','setOptions','bases-dashboard-ui.chart.section.waterfall','isHeader','\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','style$','img','prefix','showColSubtotal','group','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','bases-dashboard-ui.pivot.descending','bases-dashboard-ui.dashboard.deleteWidget','render','onDrop','config','univer-mb-2\x20univer-border-collapse\x20univer-text-sm','onRemove','segmented','[data-dashboard-widget]','univer-size-8\x20univer-p-0\x20univer-text-red-500','onCancel','getValueIndex','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','Scatter','bases-dashboard-ui.dashboard.delete','imageSourceType','text','separator','src','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','focusUnit','bases-dashboard-ui.pivot.filters','permissionPointUpdate$','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','matches','CONTAINS','fieldId','chartRowDirection','change','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','push','bases-dashboard-ui.pivot.pageWrap','onDragEnd','onReady','bases-dashboard-ui.dashboardInspector.dragWidget','bases-dashboard-ui.pivot.tableOnly','Legend','@univerjs-pro/bases-dashboard-ui','small','shapeData','pattern','sourceType','Series','viewOrder','bases-dashboard-ui.pivot.addToValue','fullscreenchange','SingleSelect','BEFORE','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','Text','destructive','parentElement','get','barStyle','lastCol','bases-dashboard-ui.dashboardInspector.close','dispose','IndicatorLine','Group','getFieldPositionInfoById','disconnect','Person','isBottomTotal','info','dataModel','#,##0','bases-dashboard-ui.dashboardInspector.clear','error','shapeText','setCurrentUnitForType','0\x200','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','fontSizeMode','find','bases-dashboard-ui.dashboardInspector.sourceUnavailable','getPresentation','Heatmap','isTotal','bases-dashboard-ui.chart.common.editChart','rowSpan','Waterfall','bases-dashboard-ui.mobile.moveDown','value','pivotViewId','version','label','replace','onDragOver','univer-mt-2\x20univer-w-full','bases-dashboard-ui.dashboardInspector.uploadImage','blur','call','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','items','entries','bases-dashboard-ui.dashboard.redo','bases-dashboard-ui.chart.common.customize','bases-dashboard-ui.pivot.pageDirection','bases-dashboard-ui.pivot.top','178593lNEYEz','base64Cache','bases-dashboard-ui.chart.common.heatmap','IS_NOT','list','target','bases-dashboard-ui.dashboard.resizeWidget','color','getResource','displayName','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','currentTheme$','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-whitespace-nowrap\x20univer-border\x20univer-border-gray-200\x20univer-px-3\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-left\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.chart.section.gauge','pluginName','_localeService','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','add','univer-text-gray-400','FormulaShape','iterator','bases-dashboard-ui.chart.common.horizontalAxis','4yKYtVM','thead','bases-dashboard-ui.dashboardInspector.repeat','file','ceil','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.dashboard.fullScreen','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','alt','Area','univer-flex\x20univer-flex-col\x20univer-gap-4','decorate','div','fields','format','bases-dashboard-ui.pivot.chartConfiguration','pareto','bases-dashboard-ui.pivot.showColumnSubtotal','model','univer-min-h-11\x20univer-px-3\x20univer-text-base','clientX','createDomChartInstance','bases-dashboard-ui.chart.section.pie','heatmap','Relation','view','count','bases-dashboard-ui.pivot.sourceFields','univer-flex','5823JzFDXe','getImageSourceCache','aside','waterfall','map','\x20/\x20span\x20','bases-dashboard-ui.pivot.repeatColumnLabels','innerHeight','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','UUID','bases-dashboard-ui.dashboardInspector.data','column','valueFields','bases-dashboard-ui.mobile.permissions','bases-dashboard-ui.dashboardInspector.center','univer-flex\x20univer-items-center\x20univer-gap-2','rightY','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.dashboardInspector.decimalPlaces','operator','bases-dashboard-ui.dashboardInspector.autoFit','pie','url(','base-dashboard-pivot-chart-','bases-dashboard-ui.dashboardInspector.currencyCode','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','span','dataset','bases-dashboard-ui.pivot.addToRow','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','bases-dashboard-ui.chart.common.series','bases-dashboard-ui.chart.section.radar','register','closest','bases-dashboard-ui.pivot.count','waterfallStyle','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','dataSource','getCurrentTheme','Subtotal','end','fieldOrder','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','ManualFilter','bases-dashboard-ui.pivot.showRowSubtotal','formulaBinding','undos','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','110813BLFSPE','onMoveDown','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','itemTypes','custom','headerRowCount','bases-dashboard-ui.dashboardInspector.cover','2065512yprZuI','univer-flex\x20univer-min-h-full\x20univer-flex-col','conditions','pointermove','startScrollTop','object','title','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.dashboardInspector.custom','bases-dashboard-ui.dashboardInspector.delete','Sankey','Sunburst','page:','bases-dashboard-ui.pivot.dropFieldsHere','sortInfo','lineAndArea','input','article','bases-dashboard-ui.chart.common.setup','bases-dashboard-ui.dashboardInspector.description','base-pivot-chart-','getOwnPropertyDescriptor','bases-dashboard-ui.pivot.values','GridlinesAndTicks','dashboard-chart-style','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','bases-dashboard-ui.pivot.product','bases-dashboard-ui.dashboardInspector.right','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','rowCount','\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','BaseDashboard','test','univer-shrink-0\x20univer-px-3','chart','disposeWithMe','allSeriesStyle','BASE_DASHBOARD_UI_PLUGIN','Currency','bases-dashboard-ui.pivot.searchFields','onMoveUp','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','Funnel','isConnected','executeChartUpdateConfig','bases-dashboard-ui.pivot.stdDev','bases-dashboard-ui.pivot.rows','rowType','getBoundingClientRect','countNums','toJSON','rgb','bases-dashboard-ui.pivot.dataSource','NOT_CONTAINS','bases-dashboard-ui.pivot.chartOnly','packageName','move','bases-dashboard-ui.pivot.acrossThenDown','slice','contain','None','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','supports','bases-dashboard-ui.chart.section.histogram','bases-dashboard-ui.chart.common.chartStyle','then','bases-dashboard-ui.dashboardInspector.reset','columnFields','pivot','valuePosition','bases-dashboard-ui.pivot.removeField','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','trim','bases-dashboard-ui.dashboard.image','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','_chartThemeService','document','borderRadius','univer-flex\x20univer-flex-col','bases-dashboard-ui.dashboardInspector.number','widgets','dashboard-text-','bind','startX','join','headerMap','MultiSelect','TableFilter','chartType','unitId','bases-dashboard-ui.dashboardInspector.backgroundImage','series','shapeType','percent','dashboardOrder','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','fit','bases-dashboard-ui.pivot.variancePopulation','orient','pointerup','univer-w-full\x20univer-justify-start','onDragStart','bases-dashboard-ui.pivot.summarizeBy','left','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','config$','getResult','undoRedoStatus$','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','header','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','showColGrandTotal','bases-dashboard-ui.dashboard.editWidget','bottom','wordCloud','\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','click','bases-dashboard-ui.operators.isNotEmpty','from','ownerDocument','Filter','Value','getDataFieldByTableId','grandTotal','source','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','base-pivot-chart','AND','refreshChartRuntime','712485KtrQUP','bases-dashboard-ui.chart.section.candlestick','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Column','titles','_renderModelManager','cover','views','_element','waterfall.positive','change$','data$','filter','column:','bases-dashboard-ui.dashboardInspector.editData','alignment','item','varp','dataFieldId','showRowGrandTotal','tableFieldId','replaceChildren','style','Pivot','bases-dashboard-ui.chart.section.treemap','trendline','onSettings','match','grouped','bases-dashboard-ui.chart.common.verticalAxis','bases-dashboard-ui.dashboard.configure','onCommit','system','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','descending','subscribe','clientHeight','scrollHeight','button','keydown','isFinite','\x20/\x20','NumberFormat','getRuntimeContext','bases-dashboard-ui.dashboardInspector.checked','length','right','valueIndex','UNIVER_BASE','bases-dashboard-ui.dashboardInspector.removeImage','Number','overflow','field','minmax(0,\x203fr)\x20minmax(0,\x202fr)','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','bases-dashboard-ui.dashboard.widgetActions','preventDefault','bases-dashboard-ui.dashboardInspector.formula','bases-dashboard-ui.dashboard.section','bases-dashboard-ui.pivot.calculationFailed','constructor','rowFields','56cmIegS','date','bases-dashboard-ui.pivot.variance','Histogram','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','number','px\x20solid\x20','matchMedia','has','ParetoLineSeries'];_0x1cf0=function(){return _0x117c88;};return _0x1cf0();}function $(_0x50976e){const _0x390882=_0xbfff20;return _0x1108cb(_0x476c3e,{'id':_0x50976e['id'],'children':[_0x1c53e9(_0x3ee43e,{'children':_0x50976e[_0x390882(0x1b8)]}),_0x1c53e9(_0x50efea,{'children':_0x50976e[_0x390882(0x310)]})]});}function ga(){const _0x417c4c=_0xbfff20;let _0x5c7d91=_0x29f087(_0x2989fb),_0x3656f0=_0x486f74(),_0x3ee604=_0x3d2664(),[_0xbc1aa,_0x35a174]=_0x34e679(null),_0x4d7b2d=_0x1094d9[_0x417c4c(0x30f)](_0x3656f0,_0x217c21['Pie']),_0x507cf8=_0x3656f0===_0x217c21['Radar'],_0x588be2=_0x3656f0===_0x217c21[_0x417c4c(0x458)],_0x16531c=_0x3656f0===_0x217c21[_0x417c4c(0x25a)],_0x53ac14=_0x1094d9[_0x417c4c(0x30f)](_0x3656f0,_0x217c21[_0x417c4c(0x3d3)]),_0x356fc2=_0x3656f0===_0x217c21[_0x417c4c(0x1f4)],_0x4aa331=_0x3656f0===_0x217c21[_0x417c4c(0x1b3)],_0x4deb9d=_0x3656f0===_0x217c21[_0x417c4c(0x3f6)],_0x49670f=_0x3656f0===_0x217c21[_0x417c4c(0x1af)],_0x372635=_0x4c4c0b(_0x3656f0,_0x235cca['GeneralSeries'])&&!_0x53ac14&&!_0x4deb9d,_0xee96ee=_a(_0x3656f0,_0x5c7d91);return _0x1108cb(_0x169833,{'value':_0xbc1aa,'onChange':_0x35a174,'children':[_0x1c53e9($,{'id':_0x275cd6['ChartStyle'],'label':_0x5c7d91['t'](_0x417c4c(0x270)),'children':_0x1c53e9(_0x392a75,{'defaultValues':Q['style']})}),_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x339)],'label':_0x5c7d91['t'](_0x417c4c(0x37f)),'children':_0x1c53e9(_0x3a97b5,{'commitMode':_0x417c4c(0x1bd),'defaultValues':Q[_0x417c4c(0x2b6)]})}),_0x1c53e9(_0x461f63,{'section':_0x417c4c(0x1f5)}),_0x372635&&_0x1c53e9($,{'id':_0x275cd6['Series'],'label':_0x5c7d91['t'](_0x417c4c(0x217)),'children':_0x1c53e9(_0x3fdf0f,{'defaultValues':Q[_0x417c4c(0x28b)],'NumberFormatField':_0x1fdd9c})}),_0x4aa331&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x3ee)],'label':_0x5c7d91['t'](_0x417c4c(0x15a)),'children':_0x1c53e9(_0x321527,{'defaultValues':Q[_0x417c4c(0x21c)],'getDefaultBucketName':({seriesName:_0xa72cba,target:_0x44e494})=>_0x44e494===_0x17b66a[_0x417c4c(0x220)]?_0x5c7d91['t'](_0x417c4c(0x3dc)):_0xa72cba?_0xa72cba+'-('+_0x5c7d91['t'](_0x417c4c(0x33b)+(_0x44e494===_0x17b66a[_0x417c4c(0x3ab)]?'waterfall.positive':_0x417c4c(0x342)))+')':'','NumberFormatField':_0x1fdd9c})}),_0x4deb9d&&_0x1108cb(_0x52e8d3,{'children':[_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x31d)],'label':_0x5c7d91['t'](_0x417c4c(0x321)),'children':_0x1c53e9(_0xc41187,{'defaultValues':Q[_0x417c4c(0x1ec)],'NumberFormatField':_0x1fdd9c,'showDataPointEditor':!0x0,'target':_0x417c4c(0x198)})}),_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x2f9)],'label':_0x5c7d91['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':_0x1c53e9(_0xc41187,{'defaultValues':Q[_0x417c4c(0x1ec)],'NumberFormatField':_0x1fdd9c,'showDataPointEditor':!0x1,'target':_0x417c4c(0x446)})})]}),_0x4d7b2d&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x397)],'label':_0x5c7d91['t'](_0x417c4c(0x1f2)),'children':_0x1c53e9(_0x411c97,{'defaultValues':Q[_0x417c4c(0x20e)],'NumberFormatField':_0x1fdd9c})}),_0x588be2&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x458)],'label':_0x5c7d91['t'](_0x417c4c(0x3b3)),'children':_0x1c53e9(_0x34e06c,{'defaultValues':Q[_0x417c4c(0x2a3)]})}),_0x507cf8&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x356)],'label':_0x5c7d91['t'](_0x417c4c(0x218)),'children':_0x1c53e9(_0x3cdb06,{'defaultValues':Q['radar']})}),_0x16531c&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x25a)],'label':_0x5c7d91['t'](_0x417c4c(0x3a3)),'children':_0x1c53e9(_0x5c3a2a,{'defaultValues':Q['funnel'],'gapControl':_0x417c4c(0x3fc)})}),_0x49670f&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x1af)],'label':_0x5c7d91['t'](_0x417c4c(0x1c8)),'children':_0x1c53e9(_0x1a9d64,{'defaultValues':Q['heatmap']})}),_0x356fc2&&_0x1c53e9($,{'id':_0x275cd6['Relation'],'label':_0x5c7d91['t'](_0x417c4c(0x42a)),'children':_0x1c53e9(_0x43b09c,{'defaultValues':Q['relation']})}),_0x2324f4(_0x3656f0)&&_0x1c53e9($,{'id':_0x275cd6['LineAndArea'],'label':_0x5c7d91['t'](_0x1094d9[_0x417c4c(0x30f)](_0x3656f0,_0x217c21[_0x417c4c(0x1e5)])?_0x417c4c(0x34b):_0x417c4c(0x434)),'children':_0x1c53e9(_0x67621e,{'defaultValues':Q[_0x417c4c(0x23f)],'lineStyleControl':_0x417c4c(0x16a)})}),_0x4c4c0b(_0x3656f0,_0x235cca['Legend'])&&_0x1c53e9($,{'id':_0x275cd6['Legend'],'label':_0x5c7d91['t'](_0x417c4c(0x351)),'children':_0x1c53e9(_0x40abfd,{'defaultValues':Q[_0x417c4c(0x409)]})}),_0x4c4c0b(_0x3656f0,_0x235cca[_0x417c4c(0x3f0)])&&_0x1108cb(_0x52e8d3,{'children':[_0x1c53e9($,{'id':_0x275cd6['HorizontalAxis'],'label':_0x5c7d91['t'](_0x417c4c(0x1db)),'children':_0x1c53e9(_0x54bdb3,{'axis':'x','defaultValues':Q['axis'],'NumberFormatField':_0x1fdd9c})}),_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x3a5)],'label':_0x5c7d91['t'](_0x417c4c(0x2cf)),'children':_0x1c53e9(_0x54bdb3,{'axis':'y','defaultValues':Q[_0x417c4c(0x359)],'NumberFormatField':_0x1fdd9c})}),_0x1c53e9(_0x461f63,{'section':'depthAxis'}),_0x3ee604&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x3ef)],'label':_0x5c7d91['t'](_0x417c4c(0x476)),'children':_0x1c53e9(_0x54bdb3,{'axis':_0x417c4c(0x209),'defaultValues':Q[_0x417c4c(0x359)],'NumberFormatField':_0x1fdd9c})}),_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x247)],'label':_0x5c7d91['t'](_0x417c4c(0x413)),'children':_0x1c53e9(_0xd55416,{'defaultValues':Q[_0x417c4c(0x359)]})})]}),_0x4c4c0b(_0x3656f0,_0x235cca[_0x417c4c(0x19c)])&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x19c)],'label':_0x5c7d91['t'](_0x417c4c(0x31a)),'children':_0x1c53e9(_0x4e8f14,{'defaultValues':Q[_0x417c4c(0x3d1)]})}),_0x23f1e4(_0x3656f0)&&_0x1c53e9($,{'id':_0x275cd6['Trendline'],'label':_0x5c7d91['t']('bases-dashboard-ui.chart.common.trendline'),'children':_0x1c53e9(_0x2d84a4,{'defaultValues':Q[_0x417c4c(0x2cb)]})}),_0xee96ee&&_0x1c53e9($,{'id':_0xee96ee['id'],'label':_0xee96ee['label'],'children':_0x1c53e9(_0x359635,{})})]});}function _a(_0x3876be,_0x429d87){const _0x257c0e=_0xbfff20;let _0x5b823f={[_0x217c21['Candlestick']]:{'id':_0x275cd6[_0x257c0e(0x360)],'localeKey':_0x257c0e(0x2b3)},[_0x217c21['Histogram']]:{'id':_0x275cd6['Histogram'],'localeKey':_0x257c0e(0x26f)},[_0x217c21[_0x257c0e(0x3a2)]]:{'id':_0x275cd6['Treemap'],'localeKey':_0x257c0e(0x2ca)},[_0x217c21[_0x257c0e(0x23b)]]:{'id':_0x275cd6['Sunburst'],'localeKey':_0x257c0e(0x399)},[_0x217c21[_0x257c0e(0x38f)]]:{'id':_0x275cd6[_0x257c0e(0x38f)],'localeKey':_0x257c0e(0x1d3)},[_0x217c21[_0x257c0e(0x44d)]]:{'id':_0x275cd6[_0x257c0e(0x44d)],'localeKey':_0x257c0e(0x411)}}[_0x3876be];return _0x5b823f?{'id':_0x5b823f['id'],'label':_0x429d87['t'](_0x5b823f[_0x257c0e(0x39b)])}:null;}function va(_0x1a7341){const _0x201994=_0xbfff20;return _0x201994(0x408)+_0x1a7341;}function ya({onChange:_0x226b44,onEditData:_0x33cbca,runtime:_0x3cfa2e,sourceChart:_0x47a1bc,sourceName:_0x15bbc9,widget:_0x207c4e}){const _0x476e93=_0xbfff20;let _0x5ae7db=_0x29f087(Kr),_0x17d9cc=_0x29f087(_0x2989fb),[_0x27bf12,_0x400ff3]=_0x34e679(_0x39d056[_0x476e93(0x491)]),_0x40910b=_0x207c4e['chart']??_0x47a1bc,_0x3ba7e5=_0x548c0f(()=>new _0x439e96(_0x3cfa2e['model'],{'commit':_0x332e82=>{const _0x24df0f=_0x476e93;var _0x3989e8;let _0x5028b0=_0x3cfa2e[_0x24df0f(0x1ee)],_0x149da0=_0x3aa652(_0x332e82,{'series':(_0x3989e8=_0x5028b0['config'])==null?void 0x0:_0x3989e8['series'],'currentChartType':_0x5028b0[_0x24df0f(0x288)],'currentStyle':_0x5028b0[_0x24df0f(0x2c8)],'currentContext':_0x5028b0[_0x24df0f(0x3b5)],'currentDataAggregation':_0x5028b0[_0x24df0f(0x48e)]});_0x226b44({..._0x207c4e,'chart':ma(_0x40910b,_0x149da0)})[_0x24df0f(0x433)](()=>void 0x0);}}),[_0x40910b,_0x226b44,_0x3cfa2e,_0x207c4e]),_0x49a9be=_0x548c0f(()=>_0x5b5e1c(_0x1fbca7['map'](_0xbc3ba8=>({..._0xbc3ba8,'label':_0x17d9cc['t'](ba(_0xbc3ba8['labelId']))}))),[_0x17d9cc]);return _0x1c53e9(_0x413b19,{'chartUIService':_0x5ae7db,'hostAdapter':_0x3ba7e5,'children':_0x1108cb(_0x476e93(0x1e8),{'data-dashboard-chart-inspector':!0x0,'className':_0x476e93(0x22b),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x17d9cc['t'](_0x476e93(0x1b1)),'className':_0x476e93(0x251),'items':[{'label':_0x17d9cc['t'](_0x476e93(0x242)),'panelId':'dashboard-chart-setup','value':_0x39d056[_0x476e93(0x491)]},{'label':_0x17d9cc['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x476e93(0x248),'value':_0x39d056[_0x476e93(0x30a)]}],'value':_0x27bf12,'onChange':_0x400ff3}),_0x27bf12===_0x39d056[_0x476e93(0x491)]?_0x1c53e9(_0x420eaf,{'id':_0x476e93(0x380),'label':_0x17d9cc['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x1108cb(_0x476e93(0x1e8),{'className':_0x476e93(0x3b9),'children':[_0x1c53e9(_0x44e1cd,{'options':_0x49a9be}),_0x1c53e9(_0xd07337,{}),_0x1c53e9(_0x2a621a,{}),_0x1c53e9(ha,{}),_0x1c53e9(_0x14bbde,{}),_0x1108cb('div',{'children':[_0x1c53e9(_0x4ed5df,{'title':_0x17d9cc['t'](_0x476e93(0x3cb))}),_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':_0x15bbc9}),_0x1c53e9(_0x6d25a2,{'className':_0x476e93(0x1bb),'onClick':_0x33cbca,'children':_0x17d9cc['t'](_0x476e93(0x2c0))})]})]})}):_0x1c53e9(_0x420eaf,{'id':_0x476e93(0x248),'label':_0x17d9cc['t'](_0x476e93(0x1c3)),'children':_0x1c53e9(ga,{})})]})});}function ba(_0x126f91){const _0x38ead3=_0xbfff20;return _0x38ead3(0x408)+_0x126f91;}const xa=['general',_0xbfff20(0x2f5),_0xbfff20(0x28d),_0xbfff20(0x33e),_0xbfff20(0x2ce),_0xbfff20(0x3eb)];function Sa({base:_0x399bce,onChange:_0x436ad8,onSelectBackgroundImage:_0x5979c2,widget:_0x2a7c09}){const _0x166891=_0xbfff20;var _0x52136b;let _0x114dd9=_0x29f087(_0x2989fb),_0x5f1cb8=_0x29f087(_0x3fdc71),_0x2c53cf=_0x39908a(()=>_0x5f1cb8[_0x166891(0x1d1)],_0x5f1cb8[_0x166891(0x21f)](),!0x1,[_0x5f1cb8]),_0x42ea2d=_0x39908a(()=>_0x5f1cb8[_0x166891(0x419)],_0x5f1cb8['darkMode'],!0x1,[_0x5f1cb8]),[_0xb0ef65,_0x57056]=_0x34e679(_0x166891(0x490)),[_0x37d710,_0x2f80fa]=_0x34e679(!0x1),_0x3ed792=Sr(_0x2a7c09),_0xe9e46d=_0x399bce['getSnapshot']()[_0x166891(0x3df)][_0x2a7c09['tableId']],_0x3dc15d=_0xe9e46d==null?void 0x0:_0xe9e46d[_0x166891(0x18e)][_0x166891(0x1ac)](_0x11c016=>_0xe9e46d[_0x166891(0x2b9)][_0x11c016]),_0x58cbc1=_0x3dc15d?_0xe9e46d==null?void 0x0:_0xe9e46d[_0x166891(0x2b9)][_0x3dc15d]:void 0x0,_0x1a0cd4=_0xe9e46d&&_0x58cbc1?_0xacf6bd(_0x399bce[_0x166891(0x373)](),_0xe9e46d,_0x58cbc1)[_0x166891(0x1fd)](_0xf13f6a=>({..._0xf13f6a,'current':!0x1})):[],_0x3c8b07=((_0x52136b=_0x2a7c09['shapeData'][_0x166891(0x226)])==null?void 0x0:_0x52136b[_0x166891(0x495)])??'',_0x39fb46=_0xacb7f5=>_0x436ad8(Cr(_0x2a7c09,_0xacb7f5))[_0x166891(0x433)](()=>void 0x0),_0x1189b0=_0x53b821=>_0x436ad8({..._0x2a7c09,'description':_0x53b821})['catch'](()=>void 0x0);return _0x1108cb(_0x166891(0x1e8),{'data-dashboard-formula-inspector':!0x0,'className':_0x166891(0x22b),'children':[_0x1c53e9(_0x4fe720,{'className':_0x166891(0x398),'items':[{'value':_0x166891(0x490),'label':_0x114dd9['t'](_0x166891(0x203))},{'value':_0x166891(0x2c8),'label':_0x114dd9['t'](_0x166891(0x49a))}],'value':_0xb0ef65,'onChange':_0x57056}),_0x1c53e9('div',{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0xb0ef65===_0x166891(0x490)?_0x1108cb(_0x166891(0x1e8),{'className':_0x166891(0x48b),'children':[_0x1c53e9(Ca,{'label':_0x114dd9['t'](_0x166891(0x243)),'children':_0x1c53e9(_0x1b54d7,{'value':_0x2a7c09[_0x166891(0x429)]??_0x2a7c09['title']??'','onChange':_0x1189b0,'onBlur':_0x1e0d69=>_0x1189b0(_0x1e0d69['target'][_0x166891(0x1b5)])})}),_0x1c53e9(Ca,{'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.dataSource'),'children':_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':(_0xe9e46d==null?void 0x0:_0xe9e46d['name'])??_0x114dd9['t'](_0x166891(0x1ad))})}),_0x1108cb(Ca,{'label':_0x114dd9['t'](_0x166891(0x2eb)),'children':[_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':_0x200012(_0x3c8b07,_0x1a0cd4)}),_0x1c53e9(_0x6d25a2,{'className':'univer-mt-2\x20univer-w-full','onClick':()=>_0x2f80fa(!0x0),'children':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.editFormula')})]})]}):_0x1108cb(_0x166891(0x1e8),{'className':_0x166891(0x48b),'children':[_0x1c53e9(_0x4931cb,{'emptyLabel':_0x114dd9['t'](_0x166891(0x41b)),'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x42ea2d?_0x2c53cf['gray'][0x384]:_0x2c53cf[_0x166891(0x45c)][0x0],'resetLabel':_0x114dd9['t'](_0x166891(0x272)),'value':_0x3ed792[_0x166891(0x33d)]??null,'onChange':_0x2096f8=>_0x39fb46({'backgroundColor':_0x2096f8??void 0x0})}),_0x1108cb(Ca,{'label':_0x114dd9['t'](_0x166891(0x28a)),'children':[_0x1108cb(_0x166891(0x1e8),{'className':'univer-flex\x20univer-gap-2','children':[_0x1108cb(_0x6d25a2,{'className':_0x166891(0x436),'onClick':()=>{const _0x2c7a51=_0x166891;_0x5979c2()[_0x2c7a51(0x271)](_0x286cdc=>{const _0x5ebf99=_0x2c7a51;if(_0x286cdc){var _0xe3c5c1;return _0x39fb46({'backgroundImage':{..._0x286cdc,'fit':((_0xe3c5c1=_0x3ed792[_0x5ebf99(0x345)])==null?void 0x0:_0xe3c5c1[_0x5ebf99(0x290)])??_0x5ebf99(0x2b8)}});}})[_0x2c7a51(0x433)](()=>void 0x0);},'children':[_0x1c53e9(_0x34be53,{}),_0x3ed792[_0x166891(0x345)]?_0x114dd9['t'](_0x166891(0x3b0)):_0x114dd9['t'](_0x166891(0x1bc))]}),_0x3ed792['backgroundImage']&&_0x1c53e9(_0x6d25a2,{'aria-label':_0x114dd9['t'](_0x166891(0x2e3)),'title':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'onClick':()=>_0x39fb46({'backgroundImage':void 0x0}),'children':_0x1c53e9(_0x48daea,{})})]}),_0x3ed792[_0x166891(0x345)]&&_0x1c53e9(_0x4fe720,{'className':_0x166891(0x313),'items':[{'value':'cover','label':_0x114dd9['t'](_0x166891(0x22f))},{'value':_0x166891(0x26b),'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.contain')}],'value':_0x3ed792['backgroundImage'][_0x166891(0x290)],'onChange':_0x3a9a99=>_0x39fb46({'backgroundImage':_0x3ed792[_0x166891(0x345)]?{..._0x3ed792[_0x166891(0x345)],'fit':_0x3a9a99}:void 0x0})})]}),_0x1c53e9(_0x4931cb,{'emptyLabel':_0x114dd9['t'](_0x166891(0x384)),'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x42ea2d?_0x2c53cf[_0x166891(0x45c)][0x32]:_0x2c53cf[_0x166891(0x45c)][0x3e8],'resetLabel':_0x114dd9['t'](_0x166891(0x272)),'value':_0x3ed792[_0x166891(0x42f)]??null,'onChange':_0x4475d8=>_0x39fb46({'textColor':_0x4475d8??void 0x0})}),_0x1c53e9(Ca,{'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x1c53e9(_0x4fe720,{'items':[{'value':_0x166891(0x297),'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':_0x166891(0x34f),'label':_0x114dd9['t'](_0x166891(0x207))},{'value':_0x166891(0x2e0),'label':_0x114dd9['t'](_0x166891(0x24b))}],'value':_0x3ed792[_0x166891(0x2c1)],'onChange':_0x2c0d84=>_0x39fb46({'alignment':_0x2c0d84})})}),_0x1108cb(Ca,{'label':_0x114dd9['t'](_0x166891(0x32f)),'children':[_0x1c53e9(_0x4fe720,{'items':[{'value':'auto','label':_0x114dd9['t'](_0x166891(0x20d))},{'value':_0x166891(0x22d),'label':_0x114dd9['t'](_0x166891(0x238))}],'value':_0x3ed792[_0x166891(0x1ab)],'onChange':_0x46eb64=>_0x39fb46({'fontSizeMode':_0x46eb64})}),_0x3ed792[_0x166891(0x1ab)]===_0x166891(0x22d)&&_0x1c53e9(_0x5a3ae3,{'className':_0x166891(0x313),'min':0xc,'max':0x78,'value':_0x3ed792[_0x166891(0x320)],'onChange':_0x14f517=>_0x39fb46({'fontSize':_0x14f517??0x28,'fontSizeMode':'custom'})})]}),_0x1c53e9(Ca,{'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.numberFormat'),'children':_0x1c53e9(_0x219a49,{'value':_0x3ed792[_0x166891(0x4a5)],'options':[{'value':_0x166891(0x3b8),'label':_0x114dd9['t'](_0x166891(0x376))},{'value':_0x166891(0x2f5),'label':_0x114dd9['t'](_0x166891(0x27f))},{'value':'percent','label':_0x114dd9['t'](_0x166891(0x31b))},{'value':_0x166891(0x33e),'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.currency')},{'value':_0x166891(0x2ce),'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':'compact','label':_0x114dd9['t'](_0x166891(0x36f))}],'onChange':_0x5c8231=>{const _0x23d1fd=_0x166891;let _0x177a35=xa[_0x23d1fd(0x1ac)](_0x3974e4=>_0x3974e4===_0x5c8231);_0x177a35&&_0x39fb46({'numberFormat':_0x177a35});}})}),_0x3ed792[_0x166891(0x4a5)]===_0x166891(0x33e)&&_0x1c53e9(Ca,{'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x1c53e9(_0x1b54d7,{'value':_0x3ed792[_0x166891(0x33e)],'onChange':_0x2be3bf=>_0x39fb46({'currency':_0x2be3bf[_0x166891(0x26a)](0x0,0x3)[_0x166891(0x49e)]()})})}),_0x3ed792[_0x166891(0x4a5)]!=='general'&&_0x1c53e9(Ca,{'label':_0x114dd9['t'](_0x166891(0x20b)),'children':_0x1c53e9(_0x5a3ae3,{'min':0x0,'max':0x8,'value':_0x3ed792['decimalPlaces'],'onChange':_0x53e956=>_0x39fb46({'decimalPlaces':_0x53e956??0x0})})})]})}),_0x37d710&&_0x1c53e9(_0x178b21,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1c53e9(_0x375bf1,{'tables':_0x1a0cd4,'formula':_0x200012(_0x3c8b07,_0x1a0cd4),'onCancel':()=>_0x2f80fa(!0x1),'onSave':_0x345e94=>{const _0x511c86=_0x166891;let _0x4da87e=_0x2a7c09['shapeData']['formulaBinding']??{'formula':''};return _0x436ad8({..._0x2a7c09,'shapeData':{..._0x2a7c09['shapeData'],'formulaBinding':{..._0x4da87e,'formula':_0x359363(_0x345e94,_0x1a0cd4)}}})[_0x511c86(0x271)](()=>_0x2f80fa(!0x1))[_0x511c86(0x433)](()=>void 0x0);}})})]});}function Ca({children:_0x15e5c0,label:_0x1620c7}){const _0x443ff5=_0xbfff20;return _0x1108cb('div',{'role':_0x443ff5(0x161),'aria-label':_0x1620c7,'className':_0x443ff5(0x277),'children':[_0x1c53e9(_0x443ff5(0x213),{'children':_0x1620c7}),_0x15e5c0]});}const wa={[_0x30a5c8['IS']]:_0xbfff20(0x48c),[_0x30a5c8['IS_NOT']]:_0xbfff20(0x327),[_0x30a5c8[_0xbfff20(0x17c)]]:_0xbfff20(0x41a),[_0x30a5c8[_0xbfff20(0x265)]]:'bases-dashboard-ui.operators.notContains',[_0x30a5c8['IS_EMPTY']]:'bases-dashboard-ui.operators.isEmpty',[_0x30a5c8[_0xbfff20(0x428)]]:_0xbfff20(0x2a6),[_0x30a5c8[_0xbfff20(0x35f)]]:_0xbfff20(0x452),[_0x30a5c8['GREATER_THAN_OR_EQUAL']]:'bases-dashboard-ui.operators.greaterThanOrEqual',[_0x30a5c8[_0xbfff20(0x3c0)]]:_0xbfff20(0x468),[_0x30a5c8[_0xbfff20(0x367)]]:_0xbfff20(0x37c),[_0x30a5c8[_0xbfff20(0x192)]]:'bases-dashboard-ui.operators.before',[_0x30a5c8[_0xbfff20(0x39a)]]:_0xbfff20(0x349)};function Ta({disabled:_0x494021,fields:_0x3bfc03,filter:_0x4eec78,onChange:_0x335159}){const _0x42b935=_0xbfff20;let _0x2cc5da=_0x29f087(_0x2989fb),_0x359e04=(_0x4eec78==null?void 0x0:_0x4eec78[_0x42b935(0x232)])??[];return _0x359e04[_0x42b935(0x2df)]?_0x1c53e9(_0x42b935(0x1e8),{'className':_0x42b935(0x162),'children':_0x359e04['map']((_0x31da54,_0x4f56f5)=>{const _0x3ff4ea=_0x42b935;let _0x1a99dd=_0x3bfc03[_0x3ff4ea(0x1ac)](_0x16c797=>_0x16c797['id']===_0x31da54[_0x3ff4ea(0x17d)]);return _0x1108cb(_0x3ff4ea(0x1e8),{'className':_0x3ff4ea(0x29d),'children':[_0x1108cb(_0x3ff4ea(0x1e8),{'className':_0x3ff4ea(0x45b),'children':[_0x1c53e9(_0x3ff4ea(0x213),{'className':_0x3ff4ea(0x24c),'children':(_0x1a99dd==null?void 0x0:_0x1a99dd[_0x3ff4ea(0x3ca)])??_0x31da54[_0x3ff4ea(0x17d)]}),_0x1c53e9('span',{'className':_0x3ff4ea(0x2d3),'children':_0x2cc5da['t'](wa[_0x31da54['operator']])})]}),Na(_0x31da54[_0x3ff4ea(0x20c)])&&_0x1c53e9(Da,{'disabled':_0x494021,'field':_0x1a99dd,'value':_0x31da54[_0x3ff4ea(0x377)],'onChange':_0x4f549f=>_0x335159(Aa(_0x4eec78,_0x4f56f5,{'operand':_0x4f549f}))})]},Ia(_0x359e04,_0x31da54,_0x4f56f5));})}):_0x1108cb('div',{'className':_0x42b935(0x40e),'children':[_0x1c53e9(_0xad9ba4,{'className':_0x42b935(0x30c)}),_0x1c53e9('span',{'className':_0x42b935(0x479),'children':_0x2cc5da['t'](_0x42b935(0x319))})]});}function Ea({fields:_0x369364,filter:_0x30781a,onChange:_0x1e2ef1,onClear:_0x3e9d73}){const _0x3eab89=_0xbfff20;let _0x309b2d=_0x29f087(_0x2989fb),_0x90965d=(_0x30781a==null?void 0x0:_0x30781a[_0x3eab89(0x232)])??[];return _0x1108cb(_0x3eab89(0x1e8),{'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':[_0x90965d[_0x3eab89(0x1fd)]((_0x1360da,_0x4be841)=>{const _0x531bf8=_0x3eab89;let _0x532806=_0x369364[_0x531bf8(0x1ac)](_0x405c7e=>_0x405c7e['id']===_0x1360da['fieldId'])??_0x369364[0x0],_0x52b41e=ja(_0x532806);return _0x1108cb('section',{'className':_0x531bf8(0x32b),'children':[_0x1108cb(_0x531bf8(0x1e8),{'className':_0x531bf8(0x228),'children':[_0x1c53e9(_0x219a49,{'value':_0x1360da[_0x531bf8(0x17d)],'options':_0x369364[_0x531bf8(0x1fd)](_0x26fbd9=>({'value':_0x26fbd9['id'],'label':_0x26fbd9[_0x531bf8(0x3ca)]})),'onChange':_0x57fc10=>{const _0x52e949=_0x531bf8;let _0x1e0851=_0x369364[_0x52e949(0x1ac)](_0x8509c7=>_0x8509c7['id']===_0x57fc10);if(!_0x1e0851)return;let _0x2b3769=ja(_0x1e0851)[0x0];_0x1e2ef1(Aa(_0x30781a,_0x4be841,ka(_0x1e0851,_0x2b3769)));}}),_0x1c53e9(_0x6d25a2,{'type':'button','variant':_0x531bf8(0x173),'aria-label':_0x309b2d['t'](_0x531bf8(0x239)),'className':_0x531bf8(0x16c),'onClick':()=>_0x1e2ef1(Oa(_0x30781a,_0x90965d[_0x531bf8(0x2be)]((_0x8e273,_0x36d10d)=>_0x36d10d!==_0x4be841))),'children':_0x1c53e9(_0x33d94a,{})})]}),_0x1c53e9(_0x219a49,{'value':_0x1360da[_0x531bf8(0x20c)],'options':_0x52b41e[_0x531bf8(0x1fd)](_0x9e521=>({'value':_0x9e521,'label':_0x309b2d['t'](wa[_0x9e521])})),'onChange':_0x3ee0e9=>{let _0x18e5eb=_0x52b41e['find'](_0x31256b=>_0x31256b===_0x3ee0e9);_0x18e5eb&&_0x1e2ef1(Aa(_0x30781a,_0x4be841,{'operator':_0x18e5eb,'operand':Ma(_0x532806)}));}}),Na(_0x1360da['operator'])&&_0x1c53e9(Da,{'field':_0x532806,'value':_0x1360da[_0x531bf8(0x377)],'onChange':_0x4fe29d=>_0x1e2ef1(Aa(_0x30781a,_0x4be841,{'operand':_0x4fe29d}))})]},Ia(_0x90965d,_0x1360da,_0x4be841));}),_0x1108cb(_0x6d25a2,{'type':'button','variant':_0x3eab89(0x173),'className':_0x3eab89(0x43a),'disabled':!_0x369364[_0x3eab89(0x2df)],'onClick':()=>{let _0x35e51c=_0x369364[0x0];if(!_0x35e51c)return;let _0x2ce8ef=ja(_0x35e51c)[0x0];_0x1e2ef1(Oa(_0x30781a,[..._0x90965d,ka(_0x35e51c,_0x2ce8ef)]));},'children':[_0x1c53e9(_0x34be53,{}),_0x309b2d['t']('bases-dashboard-ui.dashboardInspector.newCondition')]}),_0x90965d[_0x3eab89(0x2df)]>0x0&&_0x1c53e9(_0x6d25a2,{'type':'button','variant':_0x3eab89(0x173),'className':_0x3eab89(0x449),'onClick':_0x3e9d73,'children':_0x309b2d['t'](_0x3eab89(0x1a5))})]});}function Da({disabled:_0x199311,field:_0x2efa2e,onChange:_0x9d535e,value:_0x3342d7}){const _0x50cce5=_0xbfff20;let _0xb09779=_0x29f087(_0x2989fb),[_0x2706c6,_0x2c3560]=_0x34e679({'value':_0x3342d7,'text':String(_0x3342d7??'')});Object['is'](_0x2706c6[_0x50cce5(0x1b5)],_0x3342d7)||_0x2c3560({'value':_0x3342d7,'text':String(_0x3342d7??'')});let _0x545b25=_0x2706c6[_0x50cce5(0x173)],_0x28de36=_0x4e3688=>_0x2c3560({'value':_0x3342d7,'text':_0x4e3688}),_0xfbaf16=_0x2efa2e==null?void 0x0:_0x2efa2e[_0x50cce5(0x427)];if(_0xfbaf16===_0x4fcd7c[_0x50cce5(0x387)]){let _0x2abe63=_0x3342d7===!0x0||_0x3342d7===_0x50cce5(0x354);return _0x1108cb(_0x6d25a2,{'type':_0x50cce5(0x2d8),'variant':_0x50cce5(0x30e),'disabled':_0x199311,'className':_0x50cce5(0x294),'onClick':()=>_0x9d535e(!_0x2abe63),'children':[_0x1c53e9(_0x1eb8df,{'checked':_0x2abe63,'disabled':_0x199311,'onChange':()=>void 0x0}),_0x2abe63?_0xb09779['t'](_0x50cce5(0x2de)):_0xb09779['t'](_0x50cce5(0x46a))]});}return La(_0xfbaf16)?_0x199311?_0x1c53e9(_0x6d25a2,{'type':_0x50cce5(0x2d8),'variant':_0x50cce5(0x30e),'className':_0x50cce5(0x449),'disabled':!0x0,'children':_0x1be5ea(_0x3342d7==null||_0x3342d7===''?void 0x0:String(_0x3342d7))[_0x50cce5(0x1ea)](_0x50cce5(0x3a0))}):_0x1c53e9(_0x406bb7,{'className':'univer-w-full','value':_0x1be5ea(_0x3342d7==null||_0x3342d7===''?void 0x0:String(_0x3342d7))['toDate'](),'onValueChange':_0x89d4e0=>_0x9d535e(_0x1be5ea(_0x89d4e0)[_0x50cce5(0x1ea)](_0x50cce5(0x3a0)))}):za(_0x2efa2e)?_0x1c53e9(_0x5cd170,{'className':_0x50cce5(0x449),'disabled':_0x199311,'value':Array[_0x50cce5(0x318)](_0x3342d7)?_0x3342d7['map'](String):[],'options':Pa(_0x2efa2e),'onChange':_0x9d535e}):_0xfbaf16===_0x4fcd7c[_0x50cce5(0x191)]||_0xfbaf16===_0x4fcd7c[_0x50cce5(0x19d)]||_0xfbaf16===_0x4fcd7c[_0x50cce5(0x1a0)]?_0x1c53e9(_0x219a49,{'className':_0x50cce5(0x449),'disabled':_0x199311,'value':String(_0x3342d7??''),'options':[{'value':'','label':_0xb09779['t'](_0x50cce5(0x435))},...Pa(_0x2efa2e)],'onChange':_0x9d535e}):Ra(_0xfbaf16)?_0x1c53e9(_0x1b54d7,{'className':_0x50cce5(0x449),'disabled':_0x199311,'inputMode':'decimal','value':_0x545b25,'aria-invalid':_0x545b25!==''&&!Number[_0x50cce5(0x2da)](Number(_0x545b25)),'onChange':_0x569022=>{const _0x3dfe2d=_0x50cce5;_0x28de36(_0x569022),_0x569022===''?_0x9d535e(''):Number[_0x3dfe2d(0x2da)](Number(_0x569022))&&_0x9d535e(Number(_0x569022));},'onBlur':()=>_0x28de36(String(_0x3342d7??''))}):_0x1c53e9(_0x1b54d7,{'disabled':_0x199311,'value':String(_0x3342d7??''),'placeholder':_0xb09779['t'](_0x50cce5(0x301)),'onChange':_0x9d535e});}function Oa(_0x127f14,_0x4c7e86){const _0x2394b6=_0xbfff20;return{'conjunction':(_0x127f14==null?void 0x0:_0x127f14[_0x2394b6(0x404)])??_0x4854b1[_0x2394b6(0x2b0)],'conditions':_0x4c7e86};}function ka(_0x19618b,_0x2cb2bb){return Na(_0x2cb2bb)?{'fieldId':_0x19618b['id'],'operator':_0x2cb2bb,'operand':Ma(_0x19618b)}:{'fieldId':_0x19618b['id'],'operator':_0x2cb2bb};}function Aa(_0x24b92c,_0x33818b,_0x122c9c){const _0x50a86f=_0xbfff20;return Oa(_0x24b92c,((_0x24b92c==null?void 0x0:_0x24b92c[_0x50a86f(0x232)])??[])[_0x50a86f(0x1fd)]((_0x563ef2,_0x38f8c1)=>_0x38f8c1===_0x33818b?{..._0x563ef2,..._0x122c9c}:_0x563ef2));}function ja(_0x5da5f3){const _0x3961ff=_0xbfff20;let _0x48dba6=[_0x30a5c8['IS_EMPTY'],_0x30a5c8[_0x3961ff(0x428)]];switch(_0x5da5f3==null?void 0x0:_0x5da5f3[_0x3961ff(0x427)]){case _0x4fcd7c['Number']:case _0x4fcd7c[_0x3961ff(0x256)]:case _0x4fcd7c[_0x3961ff(0x3de)]:case _0x4fcd7c[_0x3961ff(0x31c)]:return[_0x30a5c8['IS'],_0x30a5c8[_0x3961ff(0x1c9)],_0x30a5c8[_0x3961ff(0x35f)],_0x30a5c8[_0x3961ff(0x3c0)],..._0x48dba6];case _0x4fcd7c['Date']:case _0x4fcd7c[_0x3961ff(0x425)]:case _0x4fcd7c['UpdatedAt']:return[_0x30a5c8['IS'],_0x30a5c8[_0x3961ff(0x1c9)],_0x30a5c8[_0x3961ff(0x192)],_0x30a5c8[_0x3961ff(0x39a)],..._0x48dba6];case _0x4fcd7c['Checkbox']:return[_0x30a5c8['IS'],_0x30a5c8[_0x3961ff(0x1c9)]];default:return[_0x30a5c8['IS'],_0x30a5c8[_0x3961ff(0x1c9)],_0x30a5c8[_0x3961ff(0x17c)],_0x30a5c8['NOT_CONTAINS'],..._0x48dba6];}}function Ma(_0x7f4582){const _0x5db787=_0xbfff20;return _0x7f4582?_0x7f4582[_0x5db787(0x427)]===_0x4fcd7c[_0x5db787(0x387)]?!0x1:La(_0x7f4582['type'])?_0x1be5ea()[_0x5db787(0x1ea)]('YYYY-MM-DD'):za(_0x7f4582)?[]:'':'';}function Na(_0x460deb){return _0x460deb!==_0x30a5c8['IS_EMPTY']&&_0x460deb!==_0x30a5c8['IS_NOT_EMPTY'];}function Pa(_0x551879){const _0x37f01a=_0xbfff20;var _0x1daa3f;return(Array[_0x37f01a(0x318)](_0x551879==null||(_0x1daa3f=_0x551879['config'])==null?void 0x0:_0x1daa3f[_0x37f01a(0x37e)])?_0x551879[_0x37f01a(0x167)]['options']:[])[_0x37f01a(0x1fd)]((_0x10a639,_0x142eb4)=>{const _0x475a1=_0x37f01a;if(typeof _0x10a639=='string')return{'label':_0x10a639,'value':_0x10a639};if(!Fa(_0x10a639))return{'label':String(_0x142eb4+0x1),'value':String(_0x142eb4+0x1)};let _0x34066d=_0x10a639,_0x509edd=String(_0x34066d[_0x475a1(0x3ca)]??_0x34066d['id']??_0x142eb4+0x1),_0x4bf907=String(_0x34066d['id']??_0x509edd);return{'label':_0x509edd,'value':/^opt-\d+$/[_0x475a1(0x250)](_0x4bf907)?_0x509edd:_0x4bf907};});}function Fa(_0x51d0bc){return typeof _0x51d0bc=='object'&&!!_0x51d0bc;}function Ia(_0xc1d366,_0x1803c0,_0x556e2d){const _0x3ae947=_0xbfff20;let _0x151275=JSON['stringify'](_0x1803c0);return _0x151275+'-'+_0xc1d366[_0x3ae947(0x26a)](0x0,_0x556e2d)['filter'](_0xd51aaa=>JSON['stringify'](_0xd51aaa)===_0x151275)[_0x3ae947(0x2df)];}function La(_0x4e1318){const _0x5b781f=_0xbfff20;return _0x4e1318===_0x4fcd7c[_0x5b781f(0x43b)]||_0x4e1318===_0x4fcd7c[_0x5b781f(0x425)]||_0x4e1318===_0x4fcd7c[_0x5b781f(0x386)];}function Ra(_0x17cd24){const _0x2c7d07=_0xbfff20;return _0x17cd24===_0x4fcd7c[_0x2c7d07(0x2e4)]||_0x17cd24===_0x4fcd7c[_0x2c7d07(0x256)]||_0x17cd24===_0x4fcd7c[_0x2c7d07(0x3de)]||_0x17cd24===_0x4fcd7c[_0x2c7d07(0x31c)];}function za(_0x2b37b0){const _0x41bb26=_0xbfff20;var _0x5c856a;return(_0x2b37b0==null?void 0x0:_0x2b37b0[_0x41bb26(0x427)])===_0x4fcd7c[_0x41bb26(0x286)]||(_0x2b37b0==null?void 0x0:_0x2b37b0[_0x41bb26(0x427)])===_0x4fcd7c[_0x41bb26(0x19d)]||(_0x2b37b0==null?void 0x0:_0x2b37b0[_0x41bb26(0x427)])===_0x4fcd7c[_0x41bb26(0x1a0)]&&((_0x5c856a=_0x2b37b0[_0x41bb26(0x167)])==null?void 0x0:_0x5c856a[_0x41bb26(0x477)])===!0x0;}function Ba({base:_0x2c8e79,chartRuntime:_0x3ffbf1,onChange:_0x236797,onClose:_0xa9b256,onSelectBackgroundImage:_0x3777da,onSelectImage:_0x12ba09,unitId:_0xf700ca,widget:_0x5116d7}){const _0x18a484=_0xbfff20;let _0x22e8f4=_0x29f087(_0x2220df),_0x79eb11=_0x29f087(_0x2989fb),_0x2a4f85=_0x2c8e79[_0x18a484(0x373)](),_0x4ccf34='tableId'in _0x5116d7?_0x2a4f85[_0x18a484(0x3df)][_0x5116d7[_0x18a484(0x335)]]:void 0x0,_0x2f5aed=_0x5116d7[_0x18a484(0x427)]===_0x1402ed[_0x18a484(0x3c8)]?_0x4ccf34==null?void 0x0:_0x4ccf34[_0x18a484(0x2b9)][_0x5116d7[_0x18a484(0x1b6)]]:void 0x0,_0x5a4db0=_0x79eb11['t'](qa(_0x5116d7));return _0x1108cb(_0x18a484(0x1fb),{'data-dashboard-inspector':!0x0,'className':_0x18a484(0x201),'children':[_0x1108cb(_0x18a484(0x29e),{'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':[_0x1c53e9('h3',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0x5a4db0}),_0x1c53e9(_0x6d25a2,{'type':'button','size':_0x18a484(0x189),'variant':'text','aria-label':_0x79eb11['t']('bases-dashboard-ui.dashboardInspector.close'),'onClick':_0xa9b256,'children':_0x1c53e9(_0x33d94a,{})})]}),_0x5116d7[_0x18a484(0x427)]===_0x1402ed[_0x18a484(0x3c8)]&&(Ka(_0x2f5aed)&&_0x3ffbf1?_0x1c53e9(ya,{'runtime':_0x3ffbf1,'sourceChart':_0x2f5aed['config']['chart'],'sourceName':((_0x4ccf34==null?void 0x0:_0x4ccf34[_0x18a484(0x3ca)])??'')+_0x18a484(0x2db)+_0x2f5aed[_0x18a484(0x3ca)],'widget':_0x5116d7,'onChange':_0x236797,'onEditData':()=>{const _0x225885=_0x18a484;_0x22e8f4[_0x225885(0x42e)](_0x24a280['id'],{'unitId':_0xf700ca,'tableId':_0x5116d7[_0x225885(0x335)],'viewId':_0x5116d7[_0x225885(0x1b6)]})['catch'](()=>void 0x0);}}):_0x1c53e9(Wa,{'message':Ka(_0x2f5aed)?_0x79eb11['t']('bases-dashboard-ui.dashboardInspector.loading'):_0x79eb11['t'](_0x18a484(0x1ad))})),_0x5116d7[_0x18a484(0x427)]===_0x1402ed[_0x18a484(0x1d9)]&&_0x1c53e9(Sa,{'base':_0x2c8e79,'widget':_0x5116d7,'onChange':_0x236797,'onSelectBackgroundImage':_0x3777da}),_0x5116d7[_0x18a484(0x427)]===_0x1402ed[_0x18a484(0x287)]&&_0x1c53e9(Ha,{'base':_0x2c8e79,'onChange':_0x236797,'widget':_0x5116d7}),_0x5116d7['type']===_0x1402ed[_0x18a484(0x194)]&&_0x1c53e9(Ua,{'onChange':_0x236797,'widget':_0x5116d7}),_0x5116d7[_0x18a484(0x427)]===_0x1402ed[_0x18a484(0x471)]&&_0x1c53e9(Va,{'onChange':_0x236797,'onSelectImage':_0x12ba09,'widget':_0x5116d7})]});}function Va({onChange:_0x3a3f6c,onSelectImage:_0x1f83b7,widget:_0xbeda69}){const _0x47769c=_0xbfff20;let _0x3b5657=_0x29f087(_0x2989fb);return _0x1108cb(_0x47769c(0x1e8),{'className':_0x47769c(0x481),'children':[_0x1108cb(_0x6d25a2,{'className':_0x47769c(0x449),'onClick':()=>_0x1f83b7()['then'](_0x344d2a=>_0x344d2a&&_0x3a3f6c({..._0xbeda69,'source':_0x344d2a['source'],'sourceType':_0x344d2a[_0x47769c(0x18c)],'alt':_0x344d2a[_0x47769c(0x3ca)]}))[_0x47769c(0x433)](()=>void 0x0),'children':[_0x1c53e9(_0x34be53,{}),_0x3b5657['t']('bases-dashboard-ui.dashboardInspector.replaceImage')]}),_0x1108cb(_0x47769c(0x1b8),{'className':_0x47769c(0x277),'children':[_0x1c53e9(_0x47769c(0x213),{'children':_0x3b5657['t'](_0x47769c(0x28a))}),_0x1c53e9(_0x4fe720,{'items':[{'value':_0x47769c(0x2b8),'label':_0x3b5657['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x47769c(0x33c),'label':_0x3b5657['t']('bases-dashboard-ui.dashboardInspector.repeat')},{'value':'original','label':_0x3b5657['t'](_0x47769c(0x3db))}],'value':_0xbeda69['displayMode']??'cover','onChange':_0x35b872=>_0x3a3f6c({..._0xbeda69,'displayMode':_0x35b872})[_0x47769c(0x433)](()=>void 0x0)})]})]});}function Ha({base:_0x14f0ab,onChange:_0x51de64,widget:_0x4a3630}){const _0x8a5158=_0xbfff20;let _0x1f85db=_0x14f0ab[_0x8a5158(0x373)]()['tables'][_0x4a3630[_0x8a5158(0x335)]],_0x38bec7=_0x1f85db==null?void 0x0:_0x1f85db[_0x8a5158(0x18e)][_0x8a5158(0x1ac)](_0x312f35=>_0x1f85db[_0x8a5158(0x2b9)][_0x312f35]),_0xcf24b0=_0x38bec7?_0x1f85db==null?void 0x0:_0x1f85db[_0x8a5158(0x2b9)][_0x38bec7]:void 0x0,_0x7274df=_0x1f85db&&_0xcf24b0?_0x173f22(_0x1f85db,_0xcf24b0):[];return _0x1c53e9(Ea,{'fields':_0x7274df,'filter':_0x4a3630[_0x8a5158(0x2be)],'onChange':_0x179c81=>_0x51de64({..._0x4a3630,'filter':_0x179c81})[_0x8a5158(0x433)](()=>void 0x0),'onClear':()=>_0x51de64({..._0x4a3630,'filter':null})[_0x8a5158(0x433)](()=>void 0x0)});}function Ua({onChange:_0x4b4ea8,widget:_0x4b56fe}){const _0x3d7360=_0xbfff20;let _0x1fccca=_0x29f087(_0x2989fb),_0x18aa98=_0x29f087(_0x3fdc71),_0x272037=_0x39908a(()=>_0x18aa98[_0x3d7360(0x1d1)],_0x18aa98[_0x3d7360(0x21f)](),!0x1,[_0x18aa98]),_0x22b2f7=Vr(_0x4b56fe),_0x52acb5=_0xa7f0bf=>_0x4b4ea8({..._0x4b56fe,'appearance':{..._0x22b2f7,..._0xa7f0bf}})[_0x3d7360(0x433)](()=>void 0x0);return _0x1108cb(_0x3d7360(0x1e8),{'className':_0x3d7360(0x442),'children':[_0x1c53e9(_0x435e56,{'defaultValue':Hr(_0x4b56fe[_0x3d7360(0x27c)]),'rows':0x8,'onBlur':_0x5776eb=>_0x4b4ea8({..._0x4b56fe,'document':Ur(_0x4b56fe[_0x3d7360(0x27c)],_0x5776eb['target'][_0x3d7360(0x1b5)])})['catch'](()=>void 0x0)}),_0x1c53e9(_0x4931cb,{'emptyLabel':_0x1fccca['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x1fccca['t'](_0x3d7360(0x41b)),'pickerFallbackValue':_0x272037[_0x3d7360(0x45c)][0x0],'resetLabel':_0x1fccca['t'](_0x3d7360(0x272)),'value':_0x22b2f7[_0x3d7360(0x33d)]??null,'onChange':_0x8a36aa=>_0x52acb5({'backgroundColor':_0x8a36aa??void 0x0})}),_0x1c53e9(_0x4931cb,{'emptyLabel':_0x1fccca['t'](_0x3d7360(0x384)),'label':_0x1fccca['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x272037[_0x3d7360(0x45c)][0x3e8],'resetLabel':_0x1fccca['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x22b2f7[_0x3d7360(0x42f)]??null,'onChange':_0x52b395=>_0x52acb5({'textColor':_0x52b395??void 0x0})}),_0x1c53e9(Ga,{'label':_0x1fccca['t'](_0x3d7360(0x316)),'children':_0x1c53e9(_0x4fe720,{'items':[{'value':_0x3d7360(0x297),'label':_0x1fccca['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':'center','label':_0x1fccca['t'](_0x3d7360(0x207))},{'value':_0x3d7360(0x2e0),'label':_0x1fccca['t'](_0x3d7360(0x24b))}],'value':_0x22b2f7['alignment'],'onChange':_0x3349b2=>_0x52acb5({'alignment':_0x3349b2})})}),_0x1108cb(Ga,{'label':_0x1fccca['t'](_0x3d7360(0x32f)),'children':[_0x1c53e9(_0x4fe720,{'items':[{'value':_0x3d7360(0x2fd),'label':_0x1fccca['t'](_0x3d7360(0x20d))},{'value':_0x3d7360(0x22d),'label':_0x1fccca['t'](_0x3d7360(0x238))}],'value':_0x22b2f7[_0x3d7360(0x1ab)],'onChange':_0x2d11c0=>_0x52acb5({'fontSizeMode':_0x2d11c0})}),_0x22b2f7[_0x3d7360(0x1ab)]===_0x3d7360(0x22d)&&_0x1c53e9(_0x5a3ae3,{'className':'univer-mt-2','min':0xa,'max':0x78,'value':_0x22b2f7[_0x3d7360(0x320)],'onChange':_0x5d8c85=>_0x52acb5({'fontSize':_0x5d8c85??0x12,'fontSizeMode':_0x3d7360(0x22d)})})]})]});}function Wa({message:_0xfcf406}){const _0x4ea561=_0xbfff20;return _0x1c53e9(_0x4ea561(0x1e8),{'className':_0x4ea561(0x1bf),'children':_0xfcf406});}function Ga({children:_0x398928,label:_0x3ccd60}){const _0x1fe8f5=_0xbfff20;return _0x1108cb(_0x1fe8f5(0x1e8),{'role':_0x1fe8f5(0x161),'aria-':!0x0,'className':_0x1fe8f5(0x277),'children':[_0x1c53e9('span',{'children':_0x3ccd60}),_0x398928]});}function Ka(_0x2d242d){const _0x34db74=_0xbfff20;return(_0x2d242d==null?void 0x0:_0x2d242d[_0x34db74(0x427)])===_0x54a718[_0x34db74(0x2c9)]&&typeof _0x2d242d[_0x34db74(0x167)]==_0x34db74(0x235)&&_0x2d242d['config']!==null&&_0x34db74(0x274)in _0x2d242d['config']&&_0x34db74(0x252)in _0x2d242d[_0x34db74(0x167)];}function qa(_0x10987b){const _0x83461=_0xbfff20;switch(_0x10987b[_0x83461(0x427)]){case _0x1402ed[_0x83461(0x3c8)]:return'bases-dashboard-ui.dashboard.pivotChart';case _0x1402ed[_0x83461(0x287)]:return _0x83461(0x319);case _0x1402ed['Text']:return _0x83461(0x3ba);case _0x1402ed[_0x83461(0x471)]:return _0x83461(0x279);case _0x1402ed[_0x83461(0x1d9)]:return _0x83461(0x47b);}}function Ja({onDelete:_0xda979c,onEdit:_0x10d5ba}){const _0x4f812b=_0xbfff20;let _0x221cd5=_0x29f087(_0x2989fb),_0x21a214=_0x221cd5['t'](_0x4f812b(0x2a1)),_0x2e5251=_0x221cd5['t'](_0x4f812b(0x164)),_0x2d9884=_0x221cd5['t'](_0x4f812b(0x2e9));return _0x1c53e9(_0x440082,{'items':[{'type':_0x4f812b(0x2c2),'children':_0x1108cb(_0x4f812b(0x213),{'className':_0x4f812b(0x208),'children':[_0x1c53e9(_0xddf888,{'className':_0x4f812b(0x305),'aria-hidden':_0x4f812b(0x354)}),_0x1c53e9(_0x4f812b(0x213),{'children':_0x21a214})]}),'onSelect':_0x10d5ba},{'type':_0x4f812b(0x174)},{'type':'item','variant':_0x4f812b(0x195),'children':_0x1108cb(_0x4f812b(0x213),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1c53e9(_0x48daea,{'className':_0x4f812b(0x305),'aria-hidden':_0x4f812b(0x354)}),_0x1c53e9('span',{'children':_0x2e5251})]}),'onSelect':_0xda979c}],'children':_0x1c53e9(_0x6d25a2,{'type':_0x4f812b(0x2d8),'size':_0x4f812b(0x189),'variant':_0x4f812b(0x173),'title':_0x2d9884,'aria-label':_0x2d9884,'className':_0x4f812b(0x2ff),'children':_0x1c53e9(_0x122b7c,{'className':_0x4f812b(0x305),'aria-hidden':_0x4f812b(0x354)})})});}function Ya({dashboardId:_0x1bf5cb,presentation:_0x7b27b7=!0x1,unitId:_0x33d6b9}){const _0x297466=_0xbfff20;let _0x57e6f9=_0x29f087(_0x2220df),_0x16b795=_0x29f087(_0x3107a8),_0xfaba5b=_0x29f087(_0x4fbe75),_0x34bb52=_0x29f087(_0x14186a),_0x42404f=_0x29f087(_0x2989fb),_0x1d7ac4=_0x29f087(_0x309002),_0x12d2bd=_0x29f087(_0x1daf4e),_0x5dcd6b=_0x2861da(null),[_0x1d7a5c,_0xf5c829]=_0x34e679(!0x1),[_0x31d4ba,_0x15640a]=_0x34e679(),[_0x15d6d7,_0x128a9f]=_0x34e679(!0x1),[_0x21fc54,_0x11d50b]=_0x34e679(()=>new Map()),_0x157870=_0xdcfb42((_0x2b99a8,_0x447f36)=>{_0x11d50b(_0x5efdf0=>{const _0x41db13=_0x5dbe;let _0x35573c=new Map(_0x5efdf0);return _0x447f36?_0x35573c[_0x41db13(0x499)](_0x2b99a8,_0x447f36):_0x35573c[_0x41db13(0x375)](_0x2b99a8),_0x35573c;});},[]),_0x1e956c=_0x39908a(()=>_0x1d7ac4['change$'][_0x297466(0x472)](_0x3fca8e(()=>_0x1d7ac4[_0x297466(0x34a)](_0x33d6b9,_0x1bf5cb))),_0x1d7ac4[_0x297466(0x34a)](_0x33d6b9,_0x1bf5cb),!0x1,[_0x1bf5cb,_0x1d7ac4,_0x33d6b9]),_0x5d7033=_0x34bb52[_0x297466(0x454)](_0x33d6b9,_0x37ea54[_0x297466(0x2e2)]),_0x2260a7=_0x39908a(()=>_0x12d2bd[_0x297466(0x29c)],{'undos':0x0,'redos':0x0},!0x1,[_0x12d2bd]),_0x2d70fc=_r(_0x33d6b9,_0x1bf5cb);if(_0x436796(()=>{const _0x1e367f=_0x297466;_0x34bb52['setCurrentUnitForType'](_0x33d6b9),_0x34bb52[_0x1e367f(0x177)](_0x33d6b9);},[_0x34bb52,_0x33d6b9]),_0x436796(()=>{const _0x4b1c89=_0x297466;let _0x5da374=_0x5dcd6b[_0x4b1c89(0x49d)],_0xb98ff3=_0x5da374==null?void 0x0:_0x5da374['ownerDocument'];if(!_0x5da374||!_0xb98ff3)return;let _0x56d314=()=>_0x128a9f(_0xb98ff3[_0x4b1c89(0x32e)]===_0xb98ff3[_0x4b1c89(0x4a1)]),_0x490724=_0x217f02=>{const _0x58d568=_0x4b1c89;_0x217f02[_0x58d568(0x48d)]===_0x58d568(0x416)&&!_0x217f02[_0x58d568(0x412)]&&_0xb98ff3[_0x58d568(0x32e)]===_0xb98ff3['documentElement']&&_0xb98ff3[_0x58d568(0x444)]()[_0x58d568(0x433)](_0x56d314);};return _0xb98ff3[_0x4b1c89(0x410)]('fullscreenchange',_0x56d314),_0xb98ff3['addEventListener'](_0x4b1c89(0x2d9),_0x490724),()=>{const _0xe09099=_0x4b1c89;_0xb98ff3[_0xe09099(0x300)](_0xe09099(0x190),_0x56d314),_0xb98ff3[_0xe09099(0x300)]('keydown',_0x490724);};},[]),!_0x1e956c||!_0x5d7033)return null;let _0x39ec5a=_0x1d5eb9=>_0x57e6f9[_0x297466(0x42e)](_0x1c8540['id'],{'unitId':_0x33d6b9,'dashboardId':_0x1bf5cb,'widget':_0x1d5eb9})['catch'](()=>void 0x0),_0xba3562=(_0x4ed827,_0x4361c6,_0x4af7a8)=>{const _0x575fb7=_0x297466;let _0x27378=Math['max'](0x0,..._0x1e956c['widgetOrder'][_0x575fb7(0x31f)](_0x2ee1b4=>{const _0x36db5b=_0x575fb7;var _0xeeb995;let _0x5a4c02=(_0xeeb995=_0x1e956c[_0x36db5b(0x280)][_0x2ee1b4])==null?void 0x0:_0xeeb995['layout'];return _0x5a4c02?[_0x5a4c02[_0x36db5b(0x430)]+_0x5a4c02[_0x36db5b(0x1b2)]]:[];})),_0x536ce9=_0x575fb7(0x4a8)+_0xd28735(0x8),_0x2ae9af={'column':0x0,'row':_0x27378,'columnSpan':_0x4361c6,'rowSpan':_0x4af7a8};switch(_0x4ed827['type']){case _0x1402ed[_0x575fb7(0x3c8)]:return _0x39ec5a({..._0x4ed827,'id':_0x536ce9,'layout':_0x2ae9af});case _0x1402ed[_0x575fb7(0x287)]:return _0x39ec5a({..._0x4ed827,'id':_0x536ce9,'layout':_0x2ae9af});case _0x1402ed[_0x575fb7(0x194)]:return _0x39ec5a({..._0x4ed827,'id':_0x536ce9,'layout':_0x2ae9af});case _0x1402ed[_0x575fb7(0x471)]:return _0x39ec5a({..._0x4ed827,'id':_0x536ce9,'layout':_0x2ae9af});case _0x1402ed[_0x575fb7(0x1d9)]:return _0x39ec5a({..._0x4ed827,'id':_0x536ce9,'layout':_0x2ae9af});}},_0x5b7799=_0x5d7033[_0x297466(0x373)](),_0x31a9b8=_0x5b7799[_0x297466(0x32d)][_0x297466(0x31f)](_0x37309a=>{const _0x404e93=_0x297466;let _0x52069d=_0x5b7799[_0x404e93(0x3df)][_0x37309a];if(!_0x52069d)return[];let _0x2a8203=_0x52069d[_0x404e93(0x18e)][_0x404e93(0x31f)](_0x4f4a28=>{const _0xc43c1b=_0x404e93;let _0x43fd61=_0x52069d[_0xc43c1b(0x2b9)][_0x4f4a28];return ro(_0x43fd61)?[{'type':_0xc43c1b(0x2c2),'children':_0x43fd61[_0xc43c1b(0x3ca)],'onSelect':()=>_0xba3562({'type':_0x1402ed['PivotChart'],'tableId':_0x37309a,'pivotViewId':_0x4f4a28,'chart':{..._0x43fd61[_0xc43c1b(0x167)][_0xc43c1b(0x252)]}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0x52069d[_0x404e93(0x3ca)],'options':[..._0x2a8203,..._0x2a8203[_0x404e93(0x2df)]?[{'type':_0x404e93(0x174)}]:[],{'type':'item','children':_0x42404f['t'](_0x404e93(0x319)),'onSelect':()=>_0xba3562({'type':_0x1402ed[_0x404e93(0x287)],'tableId':_0x37309a,'filter':null},0x6,0x8)}]}];}),_0x110ee8=[..._0x31a9b8,..._0x31a9b8[_0x297466(0x2df)]?[{'type':_0x297466(0x174)}]:[],{'type':'item','children':_0x42404f['t']('bases-dashboard-ui.dashboard.text'),'onSelect':()=>_0xba3562({'type':_0x1402ed[_0x297466(0x194)],'document':$a()},0x4,0x6)},{'type':_0x297466(0x2c2),'children':_0x42404f['t'](_0x297466(0x279)),'onSelect':()=>eo(_0x16b795)['then'](_0x3244e5=>_0x3244e5&&_0xba3562({'type':_0x1402ed[_0x297466(0x471)],'source':_0x3244e5[_0x297466(0x2ad)],'sourceType':_0x3244e5[_0x297466(0x18c)],'alt':_0x3244e5['name'],'displayMode':'cover'},0x4,0x6))},{'type':'item','children':_0x42404f['t']('bases-dashboard-ui.dashboard.formulaShape'),'onSelect':()=>{const _0x178a9f=_0x297466;let _0x253a70=_0x5b7799['tableOrder'][_0x178a9f(0x1ac)](_0x4b5df9=>_0x5b7799[_0x178a9f(0x3df)][_0x4b5df9]);_0x253a70&&_0xba3562({'type':_0x1402ed[_0x178a9f(0x1d9)],'tableId':_0x253a70,'shapeType':_0xed2d79['RoundRect'],'shapeData':_0x18c256(),'description':_0x42404f['t'](_0x178a9f(0x47b))},0x4,0x6);}}],_0x1bd1ca=_0x31d4ba?_0x1e956c[_0x297466(0x280)][_0x31d4ba]:void 0x0,_0x580c99=async()=>{const _0x158ffc=_0x297466;let _0x2dffd6=_0x5dcd6b[_0x158ffc(0x49d)];if(!_0x2dffd6)return;let _0x38a106=_0x2dffd6[_0x158ffc(0x2a8)];_0x38a106['fullscreenElement']===_0x38a106[_0x158ffc(0x4a1)]?await _0x38a106[_0x158ffc(0x444)]():await _0x38a106[_0x158ffc(0x4a1)][_0x158ffc(0x448)]();},_0x45a778=_0x7b27b7||_0x15d6d7,_0x50a49b=_0x2d70fc&&!_0x45a778;return _0x1108cb(_0x297466(0x1e8),{'ref':_0x5dcd6b,'className':_0x297466(0x15c)+(_0x15d6d7?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':'univer-relative\x20univer-z-10')+_0x297466(0x237),'children':[!_0x45a778&&_0x1108cb('header',{'className':'univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x1c53e9(_0x396df3,{'className':'univer-size-5\x20univer-text-primary-600'}),_0x1c53e9('h2',{'className':_0x297466(0x2e8),'children':_0x1e956c['name']}),_0x1c53e9(_0xad9b28,{'target':{'unitId':_0x33d6b9,'objectId':_0x3f3aa0(_0x1bf5cb),'objectType':_0x26ad9b[_0x297466(0x24f)]},'name':_0x1e956c[_0x297466(0x3ca)],'commandId':_0x501d41['id'],'exists':()=>!!_0x1d7ac4[_0x297466(0x34a)](_0x33d6b9,_0x1bf5cb)},_0x33d6b9+'/'+_0x1bf5cb),_0x1c53e9(_0x36e7c3,{'unitId':_0x33d6b9}),_0x1c53e9(_0x6d25a2,{'type':_0x297466(0x2d8),'size':_0x297466(0x189),'variant':_0x297466(0x173),'aria-label':_0x42404f['t'](_0x297466(0x314)),'disabled':!_0x2d70fc||_0x2260a7[_0x297466(0x227)]===0x0,'onClick':()=>_0x57e6f9[_0x297466(0x42e)](_0x38c4d5['id'])[_0x297466(0x433)](()=>void 0x0),'children':_0x1c53e9(_0x5d8a74,{})}),_0x1c53e9(_0x6d25a2,{'type':_0x297466(0x2d8),'size':'small','variant':_0x297466(0x173),'aria-label':_0x42404f['t'](_0x297466(0x1c2)),'disabled':!_0x2d70fc||_0x2260a7[_0x297466(0x47c)]===0x0,'onClick':()=>_0x57e6f9['executeCommand'](_0x413296['id'])[_0x297466(0x433)](()=>void 0x0),'children':_0x1c53e9(_0x421b18,{})}),_0x1c53e9(_0x6d25a2,{'type':'button','size':_0x297466(0x189),'variant':_0x297466(0x173),'aria-label':_0x42404f['t'](_0x297466(0x1e2)),'onClick':()=>_0x580c99()['catch'](()=>void 0x0),'children':_0x1c53e9(_0x275a4b,{})}),_0x1c53e9(_0x440082,{'items':_0x110ee8,'children':_0x1108cb(_0x6d25a2,{'variant':_0x297466(0x3d2),'disabled':!_0x2d70fc,'children':[_0x1c53e9(_0x34be53,{}),_0x42404f['t'](_0x297466(0x486))]})})]}),_0x1108cb(_0x297466(0x1e8),{'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1','children':[_0x1c53e9(_0x297466(0x1e8),{'className':_0x297466(0x3a9),'children':_0x1c53e9(ua,{'dashboard':_0x1e956c,'dragLabel':_0x42404f['t'](_0x297466(0x185)),'editable':_0x50a49b,'resizeLabel':_0x42404f['t'](_0x297466(0x1cc)),'widgetLabel':_0x2844c3=>_0x42404f['t'](no(_0x2844c3[_0x297466(0x427)])),'selectedWidgetId':_0x50a49b?_0x31d4ba:void 0x0,'onSelectWidget':_0x50a49b?_0x35f5ff=>{_0x15640a(_0x35f5ff),_0x35f5ff||_0xf5c829(!0x1);}:void 0x0,'onLayoutsCommit':_0x291259=>{const _0x31289f=_0x297466;let _0xc6a2c5={..._0x1e956c[_0x31289f(0x280)]};_0x291259['forEach']((_0x27a443,_0x4049ab)=>{let _0x5a08b7=_0xc6a2c5[_0x4049ab];_0x5a08b7&&(_0xc6a2c5[_0x4049ab]={..._0x5a08b7,'layout':_0x27a443});}),_0x57e6f9[_0x31289f(0x42e)](_0x39c855['id'],{'unitId':_0x33d6b9,'dashboard':{..._0x1e956c,'widgets':_0xc6a2c5}})[_0x31289f(0x433)](()=>void 0x0);},'renderWidget':_0x2d4a9d=>_0x1c53e9(Xa,{'base':_0x5d7033,'dashboard':_0x1e956c,'unitId':_0x33d6b9,'widget':_0x2d4a9d,'onChange':_0x39ec5a,'onChartRuntimeChange':_0x157870}),'renderWidgetActions':_0x3c37de=>_0x1c53e9(Ja,{'onEdit':()=>{_0x15640a(_0x3c37de['id']),_0xf5c829(!0x0);},'onDelete':()=>{const _0x3c62c0=_0x297466;_0x31d4ba===_0x3c37de['id']&&(_0x15640a(void 0x0),_0xf5c829(!0x1)),_0x57e6f9[_0x3c62c0(0x42e)](_0x55f0a4['id'],{'unitId':_0x33d6b9,'dashboardId':_0x1bf5cb,'widgetId':_0x3c37de['id']})[_0x3c62c0(0x433)](()=>void 0x0);}})})}),_0x50a49b&&_0x1d7a5c&&_0x1bd1ca&&_0x1c53e9(Ba,{'base':_0x5d7033,'chartRuntime':_0x21fc54[_0x297466(0x197)](_0x1bd1ca['id']),'unitId':_0x33d6b9,'widget':_0x1bd1ca,'onChange':_0x39ec5a,'onClose':()=>_0xf5c829(!0x1),'onSelectBackgroundImage':()=>to(_0xfaba5b),'onSelectImage':()=>eo(_0x16b795)})]})]});}function Xa({base:_0x14ef65,dashboard:_0x53489b,onChange:_0x2557e3,onChartRuntimeChange:_0x560a06,unitId:_0xa6631,widget:_0x276380}){const _0x2ca435=_0xbfff20;let _0x17afd4=_0x548c0f(()=>_0x53489b[_0x2ca435(0x3b1)][_0x2ca435(0x31f)](_0x5d1e20=>{const _0x5c7157=_0x2ca435;let _0x22ae49=_0x53489b[_0x5c7157(0x280)][_0x5d1e20];return(_0x22ae49==null?void 0x0:_0x22ae49[_0x5c7157(0x427)])===_0x1402ed[_0x5c7157(0x287)]&&_0x22ae49['tableId']===(_0x5c7157(0x335)in _0x276380?_0x276380[_0x5c7157(0x335)]:'')&&_0x22ae49[_0x5c7157(0x2be)]?[_0x22ae49[_0x5c7157(0x2be)]]:[];}),[_0x53489b,_0x276380]);switch(_0x276380[_0x2ca435(0x427)]){case _0x1402ed[_0x2ca435(0x3c8)]:return _0x1c53e9(Rr,{'filters':_0x17afd4,'unitId':_0xa6631,'widget':_0x276380,'onRuntimeChange':_0x560a06});case _0x1402ed['TableFilter']:return _0x1c53e9(Ta,{'fields':Za(_0x14ef65,_0x276380[_0x2ca435(0x335)]),'filter':_0x276380['filter'],'onChange':_0x4ad732=>_0x2557e3({..._0x276380,'filter':_0x4ad732})[_0x2ca435(0x433)](()=>void 0x0)});case _0x1402ed[_0x2ca435(0x194)]:return _0x1c53e9(Wr,{'widget':_0x276380});case _0x1402ed[_0x2ca435(0x471)]:return _0x1c53e9(Qa,{'widget':_0x276380});case _0x1402ed[_0x2ca435(0x1d9)]:return _0x1c53e9(Or,{'dashboardId':_0x53489b['id'],'unitId':_0xa6631,'widget':_0x276380});}}function Za(_0x189768,_0x2f63fb){const _0x3e2831=_0xbfff20;let _0x58f0f7=_0x189768[_0x3e2831(0x373)]()[_0x3e2831(0x3df)][_0x2f63fb],_0x4e5935=_0x58f0f7==null?void 0x0:_0x58f0f7[_0x3e2831(0x18e)][_0x3e2831(0x1ac)](_0x2c58e5=>_0x58f0f7[_0x3e2831(0x2b9)][_0x2c58e5]),_0x3f0506=_0x4e5935?_0x58f0f7==null?void 0x0:_0x58f0f7['views'][_0x4e5935]:void 0x0;return _0x58f0f7&&_0x3f0506?_0x173f22(_0x58f0f7,_0x3f0506):[];}function Qa({widget:_0x1d79dd}){const _0x274ae2=_0xbfff20;let _0x28eb7b=_0x29f087(_0x3107a8),[_0x4b16ec,_0x30e0ba]=_0x34e679(_0x1d79dd['sourceType']===_0x18951a['UUID']?'':_0x1d79dd[_0x274ae2(0x2ad)]);return _0x436796(()=>{const _0x271946=_0x274ae2;let _0x2888ea=!0x0;return _0x28eb7b['getAttachmentUrl'](_0x1d79dd[_0x271946(0x2ad)],_0x1d79dd[_0x271946(0x18c)])[_0x271946(0x271)](_0x303a03=>{_0x2888ea&&_0x30e0ba(_0x303a03);})[_0x271946(0x433)](()=>void 0x0),()=>{_0x2888ea=!0x1;};},[_0x28eb7b,_0x1d79dd[_0x274ae2(0x2ad)],_0x1d79dd[_0x274ae2(0x18c)]]),_0x4b16ec?_0x1c53e9(_0x274ae2(0x1e8),{'role':_0x1d79dd[_0x274ae2(0x1e4)]?_0x274ae2(0x15e):void 0x0,'aria-label':_0x1d79dd[_0x274ae2(0x1e4)]||void 0x0,'data-dashboard-image':_0x1d79dd['id'],'className':_0x274ae2(0x453),'style':yr(_0x4b16ec,_0x1d79dd['displayMode'])}):null;}function $a(){const _0x1a8871=_0xbfff20;let _0x34c540=_0x467708(new Set());return{'id':_0x1a8871(0x281)+_0xd28735(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x34c540}]},'documentStyle':{}};}function eo(_0x45d961){return new Promise(_0x3b8199=>{const _0x4f45f8=_0x5dbe;let _0xa6a9bf=document[_0x4f45f8(0x457)](_0x4f45f8(0x240));_0xa6a9bf[_0x4f45f8(0x427)]=_0x4f45f8(0x1df),_0xa6a9bf[_0x4f45f8(0x46d)]=_0x4f45f8(0x46b),_0xa6a9bf['addEventListener'](_0x4f45f8(0x17f),()=>{const _0x97159b=_0x4f45f8;var _0x2ec23d;let _0x56961a=(_0x2ec23d=_0xa6a9bf[_0x97159b(0x34c)])==null?void 0x0:_0x2ec23d[0x0];_0x56961a?_0x45d961['saveAttachment'](_0x56961a)[_0x97159b(0x271)](_0x2857ff=>{const _0x9e3e6d=_0x97159b;!_0x2857ff[_0x9e3e6d(0x2ad)]||_0x2857ff[_0x9e3e6d(0x18c)]===void 0x0?_0x3b8199(null):_0x3b8199({'name':_0x2857ff[_0x9e3e6d(0x3ca)],'source':_0x2857ff['source'],'sourceType':_0x2857ff[_0x9e3e6d(0x18c)]});})[_0x97159b(0x433)](()=>_0x3b8199(null)):_0x3b8199(null);},{'once':!0x0}),_0xa6a9bf[_0x4f45f8(0x2a5)]();});}function to(_0x1cf579){return new Promise(_0x3f25cb=>{const _0x9956ee=_0x5dbe;let _0x56bac4=document[_0x9956ee(0x457)]('input');_0x56bac4[_0x9956ee(0x427)]='file',_0x56bac4[_0x9956ee(0x46d)]=_0x9956ee(0x46b),_0x56bac4[_0x9956ee(0x410)](_0x9956ee(0x17f),()=>{const _0x1f0414=_0x9956ee;var _0x19aa85;let _0x24e845=(_0x19aa85=_0x56bac4[_0x1f0414(0x34c)])==null?void 0x0:_0x19aa85[0x0];_0x24e845?_0x1cf579[_0x1f0414(0x35e)](_0x24e845)[_0x1f0414(0x271)](_0x15a779=>{const _0x31b16c=_0x1f0414;if(!(_0x15a779!=null&&_0x15a779[_0x31b16c(0x2ad)]))_0x3f25cb(null);else{if(_0x15a779[_0x31b16c(0x1c7)]){let _0x5579fb=new Image();_0x5579fb[_0x31b16c(0x175)]=_0x15a779[_0x31b16c(0x1c7)],_0x1cf579[_0x31b16c(0x388)](_0x15a779[_0x31b16c(0x2ad)],_0x15a779['imageSourceType'],_0x5579fb);}_0x3f25cb({'source':_0x15a779[_0x31b16c(0x2ad)],'sourceType':_0x15a779[_0x31b16c(0x172)]});}})['catch'](()=>_0x3f25cb(null)):_0x3f25cb(null);},{'once':!0x0}),_0x56bac4[_0x9956ee(0x2a5)]();});}function no(_0xdb3e66){const _0x28d79b=_0xbfff20;switch(_0xdb3e66){case _0x1402ed[_0x28d79b(0x3c8)]:return _0x28d79b(0x303);case _0x1402ed[_0x28d79b(0x287)]:return _0x28d79b(0x319);case _0x1402ed['Text']:return _0x28d79b(0x3ba);case _0x1402ed['Image']:return _0x28d79b(0x279);case _0x1402ed['FormulaShape']:return _0x28d79b(0x47b);}}function ro(_0x4991e1){const _0x226abc=_0xbfff20;return(_0x4991e1==null?void 0x0:_0x4991e1[_0x226abc(0x427)])===_0x54a718[_0x226abc(0x2c9)]&&typeof _0x4991e1['config']==_0x226abc(0x235)&&_0x4991e1[_0x226abc(0x167)]!==null&&_0x226abc(0x274)in _0x4991e1[_0x226abc(0x167)]&&_0x226abc(0x252)in _0x4991e1[_0x226abc(0x167)];}const io=[{'area':_0x1126e4[_0xbfff20(0x2a9)],'key':_0xbfff20(0x331),'label':_0xbfff20(0x178)},{'area':_0x1126e4[_0xbfff20(0x2b5)],'key':_0xbfff20(0x273),'label':'bases-dashboard-ui.pivot.columns'},{'area':_0x1126e4[_0xbfff20(0x350)],'key':_0xbfff20(0x2ef),'label':_0xbfff20(0x25e)},{'area':_0x1126e4[_0xbfff20(0x2aa)],'key':'valueFields','label':_0xbfff20(0x246)}],ao=[{'value':_0x4ad10e['sum'],'localeKey':_0xbfff20(0x43d)},{'value':_0x4ad10e['count'],'localeKey':_0xbfff20(0x21b)},{'value':_0x4ad10e[_0xbfff20(0x261)],'localeKey':'bases-dashboard-ui.pivot.countNumbers'},{'value':_0x4ad10e['average'],'localeKey':_0xbfff20(0x396)},{'value':_0x4ad10e[_0xbfff20(0x43f)],'localeKey':_0xbfff20(0x3d4)},{'value':_0x4ad10e[_0xbfff20(0x441)],'localeKey':_0xbfff20(0x47a)},{'value':_0x4ad10e[_0xbfff20(0x392)],'localeKey':_0xbfff20(0x24a)},{'value':_0x4ad10e[_0xbfff20(0x362)],'localeKey':'bases-dashboard-ui.pivot.stdDev'},{'value':_0x4ad10e[_0xbfff20(0x353)],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x4ad10e['var'],'localeKey':_0xbfff20(0x2f2)},{'value':_0x4ad10e[_0xbfff20(0x2c3)],'localeKey':'bases-dashboard-ui.pivot.variancePopulation'}];function oo(_0x1f3a43){const _0x2186b4=_0xbfff20;let {config:_0x3ddf74,onChange:_0x4800d8,table:_0x28e3a6}=_0x1f3a43,_0x4ee229=_0x29f087(_0x2989fb),[_0x5f5012,_0x20ab0f]=_0x34e679(_0x2186b4(0x1e9)),[_0x912e51,_0x10b242]=_0x34e679(''),[_0x63ed5e,_0x5e66f0]=_0x34e679(null),[_0x574780,_0x5aef1d]=_0x34e679(null),[_0x9a6477,_0x13bc87]=_0x34e679(null),[_0x18a98e,_0x3c659a]=_0x34e679(null),_0x1e3d14=_0x2861da(null),_0x298a3a=_0x548c0f(()=>_0x28e3a6[_0x2186b4(0x222)][_0x2186b4(0x31f)](_0x291807=>{const _0x2fa8d8=_0x2186b4;let _0x46b644=_0x28e3a6[_0x2fa8d8(0x1e9)][_0x291807];return _0x46b644&&_0x46b644[_0x2fa8d8(0x2d2)]!==!0x0&&_0x46b644[_0x2fa8d8(0x427)]!==_0x4fcd7c[_0x2fa8d8(0x496)]?[_0x46b644]:[];})[_0x2186b4(0x2be)](_0x5718ba=>_0x5718ba[_0x2186b4(0x3ca)]['toLocaleLowerCase']()[_0x2186b4(0x3d0)](_0x912e51[_0x2186b4(0x278)]()['toLocaleLowerCase']())),[_0x912e51,_0x28e3a6]),_0x24daf=_0x4488a4=>{const _0x355922=_0x2186b4;let _0x1d34d9=_0x560cf4(_0x28e3a6,_0x3ddf74[_0x355922(0x274)]);try{_0x4488a4(_0x1d34d9),_0x4800d8({'pivot':_0x1d34d9[_0x355922(0x262)]()});}finally{_0x1d34d9[_0x355922(0x19b)]();}},_0x354d80=(_0x3035f7,_0x5f0afd)=>{_0x63ed5e&&(_0x24daf(_0x520332=>{const _0x261511=_0x5dbe;if(_0x63ed5e[_0x261511(0x347)]===_0x261511(0x2e6)){let _0x5b57e8=_0x520332['getFieldPositionInfoById'](_0x63ed5e['id']),_0x24f792=_0x5b57e8[_0x261511(0x450)]===_0x3035f7&&_0x5b57e8[_0x261511(0x365)]<_0x5f0afd?_0x5f0afd-0x1:_0x5f0afd;_0x520332[_0x261511(0x445)](_0x63ed5e['id'],_0x3035f7,_0x24f792);}else ho(_0x520332,_0x63ed5e['id'],_0x3035f7,_0x5f0afd);}),_0x5e66f0(null),_0x5aef1d(null));};return _0x1108cb(_0x2186b4(0x1e8),{'className':_0x2186b4(0x231),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x4ee229['t'](_0x2186b4(0x3c9)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x4ee229['t'](_0x2186b4(0x3f8)),'panelId':'base-pivot-fields','value':'fields'},{'label':_0x4ee229['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x2186b4(0x3da),'value':'options'}],'value':_0x5f5012,'onChange':_0x20ab0f}),_0x1c53e9(_0x2186b4(0x1e8),{'ref':_0x1e3d14,'className':_0x14b647(_0x2186b4(0x1e3),_0x439165),'onDragOver':_0x35a143=>{const _0x4255ec=_0x2186b4;let _0x1283b5=_0x1e3d14[_0x4255ec(0x49d)];if(!_0x1283b5)return;let _0x5b87b2=_0x1283b5['getBoundingClientRect']();_0x35a143[_0x4255ec(0x4ae)]<_0x5b87b2[_0x4255ec(0x3e6)]+0x30?_0x1283b5[_0x4255ec(0x389)]-=0x10:_0x35a143[_0x4255ec(0x4ae)]>_0x5b87b2[_0x4255ec(0x2a2)]-0x30&&(_0x1283b5[_0x4255ec(0x389)]+=0x10);},'children':_0x5f5012==='options'?_0x1c53e9(mo,{'config':_0x3ddf74,'commit':_0x24daf}):_0x1108cb('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x1108cb(_0x2186b4(0x1e8),{'children':[_0x1c53e9(_0x2186b4(0x1e8),{'className':_0x2186b4(0x368),'children':_0x4ee229['t'](_0x2186b4(0x1f7))}),_0x1c53e9(_0x1b54d7,{'allowClear':!0x0,'slot':_0x1c53e9(_0x302bc4,{}),'value':_0x912e51,'placeholder':_0x4ee229['t']('bases-dashboard-ui.pivot.searchFields'),'onChange':_0x10b242}),_0x1c53e9(_0x2186b4(0x1e8),{'className':'univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','children':_0x298a3a[_0x2186b4(0x1fd)](_0x9e6831=>_0x1c53e9(so,{'config':_0x3ddf74,'field':_0x9e6831,'onAdd':_0x4eb15a=>_0x24daf(_0x55a82c=>ho(_0x55a82c,_0x9e6831['id'],_0x4eb15a,_0x55a82c['getFieldCountByArea'](_0x4eb15a))),'onCheckedChange':_0x1c20bf=>_0x24daf(_0x5c6bff=>{const _0x3057f6=_0x2186b4;let _0x141187=_0x5c6bff[_0x3057f6(0x3e4)](_0x9e6831['id']);if(!_0x1c20bf)_0x141187[_0x3057f6(0x4a2)](_0xb61dcc=>_0x5c6bff[_0x3057f6(0x38a)](_0xb61dcc[_0x3057f6(0x3c6)]()));else{if(_0x141187[_0x3057f6(0x2df)]===0x0){let _0x1a579e=_o(_0x9e6831)?_0x1126e4[_0x3057f6(0x2aa)]:_0x1126e4[_0x3057f6(0x350)];_0x5c6bff[_0x3057f6(0x39d)](_0x9e6831['id'],_0x1a579e);}}}),'onDragStart':()=>_0x5e66f0({'kind':_0x2186b4(0x2ad),'id':_0x9e6831['id']})},_0x9e6831['id']))})]}),_0x1c53e9('div',{'className':'univer-grid\x20univer-grid-cols-2\x20univer-gap-3','children':io[_0x2186b4(0x1fd)](_0x5ce39f=>_0x1c53e9(lo,{'area':_0x5ce39f[_0x2186b4(0x450)],'dropTarget':_0x574780,'fields':_0x3ddf74['pivot'][_0x5ce39f[_0x2186b4(0x48d)]],'label':_0x4ee229['t'](_0x5ce39f[_0x2186b4(0x1b8)]),'snapshot':_0x3ddf74[_0x2186b4(0x274)],'onDragEnd':()=>{_0x5e66f0(null),_0x5aef1d(null);},'onDragStart':_0x48ea03=>_0x5e66f0({'kind':_0x2186b4(0x2e6),'id':_0x48ea03,'area':_0x5ce39f[_0x2186b4(0x450)]}),'onDragOver':_0x5f0400=>_0x5aef1d({'area':_0x5ce39f[_0x2186b4(0x450)],'index':_0x5f0400}),'onDrop':_0x4f4487=>_0x354d80(_0x5ce39f[_0x2186b4(0x450)],_0x4f4487),'onFilter':_0x13bc87,'onRemove':_0x36da5d=>_0x24daf(_0x4c6117=>_0x4c6117[_0x2186b4(0x38a)](_0x36da5d)),'onSettings':_0x3c659a},_0x5ce39f[_0x2186b4(0x450)]))}),_0x9a6477&&_0x1c53e9(fo,{'fieldId':_0x9a6477,'snapshot':_0x3ddf74[_0x2186b4(0x274)],'table':_0x28e3a6,'onCancel':()=>_0x13bc87(null),'onCommit':(_0x5c8749,_0x55c918)=>{_0x24daf(_0x513ad0=>{const _0x74b9c9=_0x5dbe;let _0x5f4a7b=_0x513ad0[_0x74b9c9(0x2ab)](_0x9a6477),_0x19d0f0=(_0x5f4a7b==null?void 0x0:_0x5f4a7b[_0x74b9c9(0x1c0)])??[];_0x513ad0['setLabelFilterInfo'](_0x9a6477,{'type':_0x5a1647[_0x74b9c9(0x224)],'list':_0x5c8749,'isAll':_0x5c8749[_0x74b9c9(0x2df)]===_0x19d0f0[_0x74b9c9(0x2df)]}),_0x513ad0[_0x74b9c9(0x44f)](_0x9a6477,_0x55c918===void 0x0?void 0x0:{'type':_0x55c918});}),_0x13bc87(null);}},_0x9a6477),_0x18a98e&&_0x1c53e9(po,{'field':_0x3ddf74[_0x2186b4(0x274)][_0x2186b4(0x421)][_0x18a98e],'onCancel':()=>_0x3c659a(null),'onCommit':(_0x441c81,_0x171fe4,_0x399c9f)=>{_0x24daf(_0x91e4a8=>{const _0x5db5f7=_0x5dbe;_0x91e4a8['renameField'](_0x18a98e,_0x441c81),_0x91e4a8[_0x5db5f7(0x355)](_0x18a98e,_0x171fe4),_0x91e4a8['setFieldFormat'](_0x18a98e,_0x399c9f||void 0x0);}),_0x3c659a(null);}},_0x18a98e)]})})]});}function so(_0x33f015){const _0x238e10=_0xbfff20;let {config:_0x4c7282,field:_0x1eece1,onAdd:_0x48e826,onCheckedChange:_0x386ed4,onDragStart:_0x1faa76}=_0x33f015,_0x1d3042=_0x29f087(_0x2989fb),_0xcf3b1f=[...Object[_0x238e10(0x34e)](_0x4c7282[_0x238e10(0x274)][_0x238e10(0x401)]),...Object['values'](_0x4c7282['pivot'][_0x238e10(0x421)])][_0x238e10(0x415)](_0x371319=>_0x371319[_0x238e10(0x2c4)]===_0x1eece1['id']),_0x2629d3=io['map'](_0x292be4=>({'type':_0x238e10(0x2c2),'children':_0x1d3042['t'](vo(_0x292be4[_0x238e10(0x450)])),'onSelect':()=>_0x48e826(_0x292be4[_0x238e10(0x450)])}));return _0x1108cb(_0x238e10(0x1e8),{'draggable':!0x0,'className':_0x238e10(0x3f3),'onDragStart':_0x1faa76,'children':[_0x1c53e9(_0x4f0f93,{'className':_0x238e10(0x1d8)}),_0x1c53e9(_0x1eb8df,{'checked':_0xcf3b1f,'onChange':_0x2dce3b=>_0x386ed4(!!_0x2dce3b)}),_0x1c53e9(co,{'field':_0x1eece1}),_0x1c53e9(_0x238e10(0x213),{'className':_0x238e10(0x309),'children':_0x1eece1['name']}),_0x1c53e9(_0x440082,{'align':'end','items':_0x2629d3,'children':_0x1c53e9(_0x238e10(0x213),{'className':_0x238e10(0x27a),'children':_0x1c53e9(_0xacb52a,{})})})]});}function co({field:_0x5f0835}){const _0x4f8808=_0xbfff20;return _o(_0x5f0835)?_0x1c53e9(_0x45f616,{'className':_0x4f8808(0x1d8)}):_0x5f0835[_0x4f8808(0x427)]===_0x4fcd7c[_0x4f8808(0x43b)]||_0x5f0835['type']===_0x4fcd7c[_0x4f8808(0x425)]||_0x5f0835['type']===_0x4fcd7c['UpdatedAt']?_0x1c53e9(_0x23c2ab,{'className':_0x4f8808(0x1d8)}):_0x1c53e9(_0x383758,{'className':_0x4f8808(0x1d8)});}function lo(_0x4d090c){const _0x3f6556=_0xbfff20;let {area:_0x19590e,dropTarget:_0x4d2267,fields:_0x11f479,label:_0x554cdb,snapshot:_0x3a01cf}=_0x4d090c,_0x3211ad=_0x29f087(_0x2989fb);return _0x1108cb(_0x3f6556(0x493),{'className':_0x14b647('univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800',_0x14cf31),'onDragOver':_0x109273=>{const _0x1ce8b4=_0x3f6556;_0x109273[_0x1ce8b4(0x2ea)](),_0x4d090c[_0x1ce8b4(0x1ba)](_0x11f479[_0x1ce8b4(0x2df)]);},'onDrop':_0x51d4d4=>{const _0x2600eb=_0x3f6556;_0x51d4d4[_0x2600eb(0x2ea)](),_0x4d090c[_0x2600eb(0x166)]((_0x4d2267==null?void 0x0:_0x4d2267[_0x2600eb(0x450)])===_0x19590e?_0x4d2267[_0x2600eb(0x365)]:_0x11f479['length']);},'children':[_0x1c53e9(_0x3f6556(0x1e8),{'className':'univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','children':_0x554cdb}),_0x1108cb(_0x3f6556(0x1e8),{'className':'univer-flex\x20univer-flex-col','children':[_0x11f479['map']((_0x6b4c42,_0x2eabc2)=>{const _0x12bd48=_0x3f6556;let _0x5e5e16=_0x3a01cf[_0x12bd48(0x401)][_0x6b4c42]??_0x3a01cf[_0x12bd48(0x421)][_0x6b4c42];if(!_0x5e5e16)return null;let _0x46db31=(_0x4d2267==null?void 0x0:_0x4d2267[_0x12bd48(0x450)])===_0x19590e&&_0x4d2267[_0x12bd48(0x365)]===_0x2eabc2;return _0x1108cb(_0x12bd48(0x1e8),{'onDragOver':_0x2bd644=>{const _0x45f764=_0x12bd48;_0x2bd644['preventDefault'](),_0x2bd644['stopPropagation']();let _0x53a77c=_0x2bd644[_0x45f764(0x40a)][_0x45f764(0x260)]();_0x4d090c[_0x45f764(0x1ba)](_0x2eabc2+ +(_0x2bd644['clientY']>_0x53a77c[_0x45f764(0x3e6)]+_0x53a77c[_0x45f764(0x402)]/0x2));},'onDrop':_0x5423db=>{const _0x2dabd6=_0x12bd48;_0x5423db[_0x2dabd6(0x2ea)](),_0x5423db[_0x2dabd6(0x3fb)](),_0x4d090c['onDrop']((_0x4d2267==null?void 0x0:_0x4d2267[_0x2dabd6(0x450)])===_0x19590e?_0x4d2267[_0x2dabd6(0x365)]:_0x2eabc2);},'children':[_0x46db31&&_0x1c53e9(_0x12bd48(0x1e8),{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),_0x1c53e9(uo,{'area':_0x19590e,'field':_0x5e5e16,'onDragEnd':_0x4d090c[_0x12bd48(0x183)],'onDragStart':()=>_0x4d090c[_0x12bd48(0x295)](_0x6b4c42),'onFilter':()=>_0x4d090c[_0x12bd48(0x3b7)](_0x6b4c42),'onRemove':()=>_0x4d090c[_0x12bd48(0x169)](_0x6b4c42),'onSettings':()=>_0x4d090c[_0x12bd48(0x2cc)](_0x6b4c42)})]},_0x6b4c42);}),(_0x4d2267==null?void 0x0:_0x4d2267[_0x3f6556(0x450)])===_0x19590e&&_0x4d2267[_0x3f6556(0x365)]===_0x11f479['length']&&_0x1c53e9('div',{'className':_0x3f6556(0x487)}),_0x11f479[_0x3f6556(0x2df)]===0x0&&_0x1c53e9(_0x3f6556(0x1e8),{'className':_0x3f6556(0x1d0),'children':_0x3211ad['t'](_0x3f6556(0x23d))})]})]});}function uo(_0xc08bad){const _0x47ea14=_0xbfff20;let _0x3789b1=_0x29f087(_0x2989fb),_0x438b72=_0xc08bad[_0x47ea14(0x450)]===_0x1126e4[_0x47ea14(0x2aa)],_0x5c1947=[{'type':_0x47ea14(0x2c2),'children':_0x3789b1['t'](_0x47ea14(0x276)),'onSelect':_0xc08bad[_0x47ea14(0x169)]},{'type':_0x47ea14(0x2c2),'children':_0x3789b1['t'](_0x438b72?_0x47ea14(0x4a6):_0x47ea14(0x36a)),'onSelect':_0x438b72?_0xc08bad[_0x47ea14(0x2cc)]:_0xc08bad['onFilter']}];return _0x1108cb('div',{'draggable':!0x0,'className':_0x47ea14(0x32c),'onDragEnd':_0xc08bad[_0x47ea14(0x183)],'onDragStart':_0xc08bad[_0x47ea14(0x295)],'children':[_0x1c53e9(_0x4f0f93,{'className':_0x47ea14(0x1d8)}),_0x1c53e9(_0x501781,{'title':_0xc08bad[_0x47ea14(0x2e6)]['displayName'],'children':_0x1c53e9('span',{'className':_0x47ea14(0x309),'children':_0xc08bad[_0x47ea14(0x2e6)][_0x47ea14(0x1cf)]})}),_0x1c53e9(_0x440082,{'align':_0x47ea14(0x221),'items':_0x5c1947,'children':_0x1c53e9(_0x47ea14(0x213),{'className':_0x47ea14(0x27a),'children':_0x1c53e9(_0xacb52a,{})})})]});}function fo(_0x49b02e){const _0x49739a=_0xbfff20;var _0x295977,_0x47e4b1;let _0x3081ca=_0x29f087(_0x2989fb),{format:_0x5cbf6a,items:_0x4f9285,itemTypes:_0x521371}=_0x548c0f(()=>{const _0x39e2eb=_0x5dbe;let _0x5dbcad=_0x560cf4(_0x49b02e[_0x39e2eb(0x405)],_0x49b02e[_0x39e2eb(0x432)]);try{let _0x503d3c=_0x5dbcad[_0x39e2eb(0x2ab)](_0x49b02e[_0x39e2eb(0x17d)]);return{'format':_0x503d3c==null?void 0x0:_0x503d3c[_0x39e2eb(0x1ea)],'items':[...(_0x503d3c==null?void 0x0:_0x503d3c[_0x39e2eb(0x1c0)])??[]],'itemTypes':[...(_0x503d3c==null?void 0x0:_0x503d3c[_0x39e2eb(0x22c)])??[]]};}finally{_0x5dbcad[_0x39e2eb(0x19b)]();}},[_0x49b02e[_0x49739a(0x17d)],_0x49b02e[_0x49739a(0x432)],_0x49b02e[_0x49739a(0x405)]]),_0x51841a=(_0x295977=_0x49b02e[_0x49739a(0x432)][_0x49739a(0x401)][_0x49b02e[_0x49739a(0x17d)]])==null?void 0x0:_0x295977[_0x49739a(0x158)],[_0x32d804,_0x5d69f4]=_0x34e679((_0x51841a==null?void 0x0:_0x51841a[_0x49739a(0x427)])===_0x5a1647[_0x49739a(0x224)]?_0x51841a[_0x49739a(0x1ca)]:_0x4f9285),[_0x18745f,_0xd07556]=_0x34e679((_0x47e4b1=_0x49b02e[_0x49739a(0x432)][_0x49739a(0x401)][_0x49b02e[_0x49739a(0x17d)]])==null||(_0x47e4b1=_0x47e4b1[_0x49739a(0x23e)])==null?void 0x0:_0x47e4b1[_0x49739a(0x427)]),_0x58db55=_0x32d804[_0x49739a(0x2df)]===_0x4f9285[_0x49739a(0x2df)];return _0x1108cb(_0x49739a(0x493),{'className':_0x14b647(_0x49739a(0x35d),_0x14cf31),'children':[_0x1c53e9(_0x49739a(0x1e8),{'className':_0x49739a(0x2fb),'children':_0x3081ca['t'](_0x49739a(0x36a))}),_0x1108cb(_0x49739a(0x1e8),{'className':_0x49739a(0x1f8),'children':[_0x1108cb(_0x6d25a2,{'className':_0x49739a(0x436),'variant':_0x18745f===_0xaa402b[_0x49739a(0x357)]?_0x49739a(0x3d2):_0x49739a(0x30e),'onClick':()=>_0xd07556(_0xaa402b['ascending']),'children':[_0x1c53e9(_0x5de895,{}),_0x3081ca['t'](_0x49739a(0x497))]}),_0x1108cb(_0x6d25a2,{'className':_0x49739a(0x436),'variant':_0x18745f===_0xaa402b['descending']?_0x49739a(0x3d2):'default','onClick':()=>_0xd07556(_0xaa402b['descending']),'children':[_0x1c53e9(_0xcbb196,{}),_0x3081ca['t'](_0x49739a(0x163))]})]}),_0x1108cb(_0x49739a(0x1e8),{'className':_0x49739a(0x28f),'children':[_0x1108cb(_0x49739a(0x1b8),{'className':_0x49739a(0x299),'children':[_0x1c53e9(_0x1eb8df,{'checked':_0x58db55,'indeterminate':_0x32d804['length']>0x0&&!_0x58db55,'onChange':()=>_0x5d69f4(_0x58db55?[]:_0x4f9285)}),_0x3081ca['t'](_0x49739a(0x337))]}),_0x4f9285['map']((_0x1c879b,_0x1869c4)=>_0x1108cb('label',{'className':_0x49739a(0x299),'children':[_0x1c53e9(_0x1eb8df,{'checked':_0x32d804[_0x49739a(0x3d0)](_0x1c879b),'onChange':()=>_0x5d69f4(_0x321c0a=>_0x321c0a[_0x49739a(0x3d0)](_0x1c879b)?_0x321c0a['filter'](_0x279d3d=>_0x279d3d!==_0x1c879b):[..._0x321c0a,_0x1c879b])}),_0x1c53e9(_0x49739a(0x213),{'className':_0x49739a(0x3aa),'children':go(_0x1c879b,_0x521371[_0x1869c4],_0x5cbf6a,_0x3081ca['t']('bases-dashboard-ui.pivot.blank'))})]},_0x1c879b))]}),_0x1108cb('div',{'className':_0x49739a(0x17a),'children':[_0x1c53e9(_0x6d25a2,{'variant':'link','onClick':()=>_0x49b02e['onCommit'](_0x4f9285,_0x18745f),'children':_0x3081ca['t'](_0x49739a(0x43c))}),_0x1108cb(_0x49739a(0x1e8),{'className':_0x49739a(0x30b),'children':[_0x1c53e9(_0x6d25a2,{'onClick':_0x49b02e[_0x49739a(0x16d)],'children':_0x3081ca['t']('bases-dashboard-ui.pivot.cancel')}),_0x1c53e9(_0x6d25a2,{'variant':_0x49739a(0x3d2),'disabled':_0x32d804[_0x49739a(0x2df)]===0x0,'onClick':()=>_0x49b02e['onCommit'](_0x32d804,_0x18745f),'children':_0x3081ca['t']('bases-dashboard-ui.pivot.confirm')})]})]})]});}function po(_0x51ce7d){const _0x376331=_0xbfff20;var _0x4ad8a9,_0x8dfc41,_0x2b21e8;let _0x3b1dfd=_0x29f087(_0x2989fb),[_0xe5b721,_0x474388]=_0x34e679(((_0x4ad8a9=_0x51ce7d['field'])==null?void 0x0:_0x4ad8a9['displayName'])??''),[_0x576214,_0xcf31d4]=_0x34e679(((_0x8dfc41=_0x51ce7d[_0x376331(0x2e6)])==null?void 0x0:_0x8dfc41['subtotal'])??_0x4ad10e[_0x376331(0x3c2)]),[_0x2b34e4,_0x43c510]=_0x34e679(((_0x2b21e8=_0x51ce7d[_0x376331(0x2e6)])==null?void 0x0:_0x2b21e8[_0x376331(0x1ea)])??'');return _0x51ce7d[_0x376331(0x2e6)]?_0x1108cb('section',{'className':_0x14b647('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',_0x14cf31),'children':[_0x1c53e9(_0x376331(0x1e8),{'className':_0x376331(0x3ea),'children':_0x3b1dfd['t']('bases-dashboard-ui.pivot.fieldSettings')}),_0x1108cb('label',{'className':_0x376331(0x223),'children':[_0x3b1dfd['t'](_0x376331(0x480)),_0x1c53e9(_0x1b54d7,{'value':_0xe5b721,'onChange':_0x474388})]}),_0x1108cb(_0x376331(0x1b8),{'className':_0x376331(0x223),'children':[_0x3b1dfd['t'](_0x376331(0x296)),_0x1c53e9(_0x219a49,{'value':String(_0x576214),'options':ao[_0x376331(0x1fd)](_0x24da6d=>({'value':String(_0x24da6d['value']),'label':_0x3b1dfd['t'](_0x24da6d[_0x376331(0x39b)])})),'onChange':_0xa05420=>{const _0x4e9a01=_0x376331;let _0x9d152f=ao[_0x4e9a01(0x1ac)](_0x28855c=>String(_0x28855c['value'])===_0xa05420);_0x9d152f&&_0xcf31d4(_0x9d152f['value']);}})]}),_0x1108cb('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x3b1dfd['t'](_0x376331(0x341)),_0x1c53e9(_0x1b54d7,{'value':_0x2b34e4,'onChange':_0x43c510})]}),_0x1108cb(_0x376331(0x1e8),{'className':_0x376331(0x431),'children':[_0x1c53e9(_0x6d25a2,{'onClick':_0x51ce7d[_0x376331(0x16d)],'children':_0x3b1dfd['t']('bases-dashboard-ui.pivot.cancel')}),_0x1c53e9(_0x6d25a2,{'variant':_0x376331(0x3d2),'disabled':!_0xe5b721['trim'](),'onClick':()=>_0x51ce7d[_0x376331(0x2d1)](_0xe5b721[_0x376331(0x278)](),_0x576214,_0x2b34e4),'children':_0x3b1dfd['t']('bases-dashboard-ui.pivot.confirm')})]})]}):null;}function mo(_0x1756c7){const _0x58ac66=_0xbfff20;let {config:_0x55b486,commit:_0x4cecc2}=_0x1756c7,_0x2778e8=_0x29f087(_0x2989fb),_0x26346f=_0x55b486[_0x58ac66(0x274)][_0x58ac66(0x37e)],_0x152a3d=_0x1b60c5=>_0x4cecc2(_0x1d3db4=>_0x1d3db4['setOptions']({..._0x1d3db4[_0x58ac66(0x46c)](),..._0x1b60c5}));return _0x1108cb(_0x58ac66(0x1e8),{'className':_0x58ac66(0x1e6),'children':[_0x1108cb(_0x58ac66(0x1b8),{'className':_0x58ac66(0x2f4),'children':[_0x2778e8['t'](_0x58ac66(0x348)),_0x1c53e9(_0x219a49,{'className':_0x58ac66(0x44c),'value':String(_0x55b486[_0x58ac66(0x274)][_0x58ac66(0x2fc)]),'options':[{'value':String(_0x66aa38['tabular']),'label':_0x2778e8['t'](_0x58ac66(0x385))},{'value':String(_0x66aa38[_0x58ac66(0x3eb)]),'label':_0x2778e8['t'](_0x58ac66(0x3f5))},{'value':String(_0x66aa38[_0x58ac66(0x3ff)]),'label':_0x2778e8['t'](_0x58ac66(0x45a))}],'onChange':_0x39441b=>{const _0x50cad2=_0x58ac66;let _0x56cd5e=[_0x66aa38['tabular'],_0x66aa38[_0x50cad2(0x3eb)],_0x66aa38['outline']][_0x50cad2(0x1ac)](_0x45de72=>String(_0x45de72)===_0x39441b);_0x56cd5e!==void 0x0&&_0x4cecc2(_0x8ceda9=>_0x8ceda9[_0x50cad2(0x37b)](_0x56cd5e));}})]}),[{'key':_0x58ac66(0x3a1),'label':_0x58ac66(0x3c3),'defaultValue':!0x1},{'key':_0x58ac66(0x48a),'label':_0x58ac66(0x1ff),'defaultValue':!0x1},{'key':_0x58ac66(0x3d8),'label':_0x58ac66(0x225),'defaultValue':!0x0},{'key':'showRowGrandTotal','label':_0x58ac66(0x3ad),'defaultValue':!0x0},{'key':_0x58ac66(0x160),'label':_0x58ac66(0x1ed),'defaultValue':!0x0},{'key':_0x58ac66(0x2a0),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}][_0x58ac66(0x1fd)](_0x2793af=>_0x1108cb(_0x58ac66(0x1b8),{'className':_0x58ac66(0x2ae),'children':[_0x1c53e9(_0x1eb8df,{'checked':!!(_0x26346f[_0x2793af[_0x58ac66(0x48d)]]??_0x2793af[_0x58ac66(0x3fa)]),'disabled':_0x2793af['key']==='repeatRowLabels'&&_0x55b486[_0x58ac66(0x274)][_0x58ac66(0x2fc)]===_0x66aa38['compact'],'onChange':_0x381a01=>_0x152a3d({[_0x2793af[_0x58ac66(0x48d)]]:!!_0x381a01})}),_0x2778e8['t'](_0x2793af[_0x58ac66(0x1b8)])]},_0x2793af[_0x58ac66(0x48d)])),_0x55b486[_0x58ac66(0x274)][_0x58ac66(0x2fc)]===_0x66aa38[_0x58ac66(0x3ff)]&&_0x1108cb('label',{'className':_0x58ac66(0x2f4),'children':[_0x2778e8['t'](_0x58ac66(0x323)),_0x1c53e9(_0x219a49,{'className':_0x58ac66(0x44c),'value':String(_0x26346f[_0x58ac66(0x329)]??_0x571e80['top']),'options':[{'value':String(_0x571e80[_0x58ac66(0x3e6)]),'label':_0x2778e8['t'](_0x58ac66(0x1c5))},{'value':String(_0x571e80[_0x58ac66(0x2a2)]),'label':_0x2778e8['t'](_0x58ac66(0x464))}],'onChange':_0x98d6e1=>{const _0x15d431=_0x58ac66;let _0x5e5f2f=[_0x571e80[_0x15d431(0x3e6)],_0x571e80[_0x15d431(0x2a2)]]['find'](_0x5483e0=>String(_0x5483e0)===_0x98d6e1);_0x5e5f2f!==void 0x0&&_0x152a3d({'rowSubtotalPosition':_0x5e5f2f});}})]}),_0x1108cb('label',{'className':_0x58ac66(0x2f4),'children':[_0x2778e8['t'](_0x58ac66(0x390)),_0x1c53e9(_0x219a49,{'className':_0x58ac66(0x44c),'value':String(_0x55b486[_0x58ac66(0x274)][_0x58ac66(0x275)]===_0xe5d4e5[_0x58ac66(0x26c)]?_0xe5d4e5[_0x58ac66(0x2b5)]:_0x55b486[_0x58ac66(0x274)][_0x58ac66(0x275)]),'options':[{'value':String(_0xe5d4e5['Column']),'label':_0x2778e8['t'](_0x58ac66(0x3bb))},{'value':String(_0xe5d4e5[_0x58ac66(0x350)]),'label':_0x2778e8['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x18433d=>{const _0x39b8ab=_0x58ac66;let _0x3bc02a=[_0xe5d4e5[_0x39b8ab(0x2b5)],_0xe5d4e5['Row']]['find'](_0x2231f4=>String(_0x2231f4)===_0x18433d);_0x3bc02a!==void 0x0&&_0x4cecc2(_0x53bd6e=>_0x53bd6e[_0x39b8ab(0x34d)](_0x3bc02a,_0x53bd6e[_0x39b8ab(0x16e)]()<0x0?0x0:_0x53bd6e['getValueIndex']()));}})]}),_0x1108cb(_0x58ac66(0x1b8),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x2778e8['t'](_0x58ac66(0x182)),_0x1c53e9(_0x5a3ae3,{'className':_0x58ac66(0x3d7),'min':0x1,'max':0x14,'value':_0x26346f[_0x58ac66(0x38e)]??0x1,'onChange':_0x1eb61b=>{const _0x554bad=_0x58ac66;let _0x331cbd=Number(_0x1eb61b);Number[_0x554bad(0x2da)](_0x331cbd)&&_0x331cbd>=0x1&&_0x152a3d({'pageWrap':_0x331cbd});}})]}),_0x1108cb('label',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x2778e8['t'](_0x58ac66(0x1c4)),_0x1c53e9(_0x219a49,{'className':_0x58ac66(0x44c),'value':String(_0x26346f['pageOverThenDown']??!0x1),'options':[{'value':_0x58ac66(0x41f),'label':_0x2778e8['t'](_0x58ac66(0x3c4))},{'value':_0x58ac66(0x354),'label':_0x2778e8['t'](_0x58ac66(0x269))}],'onChange':_0x43f531=>_0x152a3d({'pageOverThenDown':_0x43f531==='true'})})]})]});}function ho(_0x4721ee,_0x3dcce7,_0xeb2a9e,_0x39dccf){const _0x27ecd1=_0xbfff20;let _0x3ebb81=_0x4721ee[_0x27ecd1(0x3e4)](_0x3dcce7)[_0x27ecd1(0x1ac)](_0x3e44f3=>_0x4721ee[_0x27ecd1(0x19e)](_0x3e44f3[_0x27ecd1(0x3c6)]())[_0x27ecd1(0x450)]!==_0x1126e4[_0x27ecd1(0x2aa)]);_0xeb2a9e!==_0x1126e4['Value']&&_0x3ebb81?_0x4721ee[_0x27ecd1(0x445)](_0x3ebb81[_0x27ecd1(0x3c6)](),_0xeb2a9e,_0x39dccf):_0x4721ee['addFieldWithSourceId'](_0x3dcce7,_0xeb2a9e,_0x39dccf);}function go(_0x3ca653,_0x48de91,_0x1a1c1e,_0x264200){const _0xaf524=_0xbfff20;return _0x48de91===_0x48a00c[_0xaf524(0x330)]?_0x264200:_0x48de91===_0x48a00c[_0xaf524(0x2f1)]&&_0x1a1c1e?_0x4bc3f5[_0xaf524(0x1ea)](_0x1a1c1e,Number(_0x3ca653)):_0x3ca653;}function _o(_0x3e0ecd){const _0x23cf79=_0xbfff20;return _0x3e0ecd[_0x23cf79(0x427)]===_0x4fcd7c['Number']||_0x3e0ecd[_0x23cf79(0x427)]===_0x4fcd7c[_0x23cf79(0x256)]||_0x3e0ecd[_0x23cf79(0x427)]===_0x4fcd7c[_0x23cf79(0x3de)]||_0x3e0ecd[_0x23cf79(0x427)]===_0x4fcd7c['Rating'];}function vo(_0x3d1e3c){const _0x1c8e57=_0xbfff20;switch(_0x3d1e3c){case _0x1126e4[_0x1c8e57(0x350)]:return _0x1c8e57(0x215);case _0x1126e4['Column']:return _0x1c8e57(0x2fa);case _0x1126e4[_0x1c8e57(0x2aa)]:return'bases-dashboard-ui.pivot.addToValue';default:return _0x1c8e57(0x3a7);}}function yo({config:_0x3fd19a,onChange:_0x21e4a6,runtime:_0x1b216e,table:_0xc81a13}){const _0x3aa28d=_0xbfff20;let _0x22ac4d=_0x29f087(_0x2989fb),[_0x210eda,_0x3af5ea]=_0x34e679('chart');return _0x1108cb(_0x3aa28d(0x1fb),{'className':_0x3aa28d(0x42b),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x22ac4d['t'](_0x3aa28d(0x3f2)),'className':'univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','items':[{'label':_0x22ac4d['t'](_0x3aa28d(0x1eb)),'panelId':'base-pivot-chart-configuration','value':_0x3aa28d(0x252)},{'label':_0x22ac4d['t'](_0x3aa28d(0x3c9)),'panelId':_0x3aa28d(0x37d),'value':_0x3aa28d(0x274)}],'value':_0x210eda,'variant':_0x3aa28d(0x16a),'onChange':_0x3af5ea}),_0x1c53e9(_0x3aa28d(0x1e8),{'className':_0x3aa28d(0x3ac),'children':_0x210eda===_0x3aa28d(0x252)?_0x1b216e&&_0x1c53e9(pa,{'config':_0x3fd19a,'runtime':_0x1b216e,'tableName':_0xc81a13['name'],'onChange':_0x21e4a6}):_0x1c53e9(oo,{'config':_0x3fd19a,'table':_0xc81a13,'onChange':_0x21e4a6})})]});}function bo({tableId:_0xc8fe45,unitId:_0xdab8ad,viewId:_0x23e33b}){const _0x391ce8=_0xbfff20;let _0x2f789b=_0x29f087(_0x2220df),_0x5d13db=_0x29f087(_0x14186a),_0x51f38f=_0x29f087(_0x49fceb),_0x46050d=_0x29f087(_0x2989fb),_0x28a5ea=_0x29f087(_0x441727),[_0x4c06c1,_0x32c438]=_0x34e679(null),[_0x43c515,_0xcbc1a2]=_0x34e679(null),_0x56a9ee=_0x2861da('base-pivot-chart-'+_0xd28735(0x8)),[_0x3b6685,_0x1f4abd]=_0x34e679(!0x1),_0x1c1f3a=_0x5d13db['getUnit'](_0xdab8ad,_0x37ea54[_0x391ce8(0x2e2)]),_0x5f38f8=_0x1c1f3a==null?void 0x0:_0x1c1f3a[_0x391ce8(0x373)]()[_0x391ce8(0x3df)][_0xc8fe45],_0xf36d6e=_0x5f38f8==null?void 0x0:_0x5f38f8['views'][_0x23e33b],_0x1eb71e=xo(_0xf36d6e),_0x44f825=vr(_0xdab8ad,_0xc8fe45,_0x23e33b);if(_0x436796(()=>{const _0x508530=_0x391ce8;if(!_0x1eb71e)return;let _0x2a7cc6=_0x56a9ee[_0x508530(0x49d)];return _0x28a5ea['acquireChartRuntime'](_0x2a7cc6,{'unitId':_0xdab8ad,'tableId':_0xc8fe45,'viewId':_0x23e33b,'filters':[]}),()=>{const _0x1b0345=_0x508530;_0x28a5ea[_0x1b0345(0x414)](_0xdab8ad,_0x2a7cc6);};},[_0x1eb71e,_0x28a5ea,_0xc8fe45,_0xdab8ad,_0x23e33b]),_0x436796(()=>{const _0x54134b=_0x391ce8;if(!xo(_0xf36d6e))return;let _0x148d58=!0x0,_0x407bf8={'unitId':_0xdab8ad,'tableId':_0xc8fe45,'viewId':_0x23e33b,'filters':[_0xf36d6e[_0x54134b(0x2be)]??null]};return _0x28a5ea[_0x54134b(0x2b1)](_0xdab8ad,_0x56a9ee[_0x54134b(0x49d)],_0x407bf8)[_0x54134b(0x271)](_0x2fdc29=>{const _0x36d3de=_0x54134b;_0x148d58&&_0x2fdc29&&(_0x32c438(_0x2fdc29),_0xcbc1a2(_0x28a5ea[_0x36d3de(0x3bf)](_0xdab8ad,_0x56a9ee[_0x36d3de(0x49d)])??null),_0x1f4abd(!0x1));})[_0x54134b(0x433)](_0x537765=>{const _0x1c0989=_0x54134b;_0x51f38f[_0x1c0989(0x1a6)](_0x1c0989(0x33f),_0x537765),_0x148d58&&(_0x32c438(null),_0x1f4abd(!0x0));}),()=>{_0x148d58=!0x1;};},[_0x51f38f,_0x28a5ea,_0xc8fe45,_0xdab8ad,_0xf36d6e,_0x23e33b]),!_0x5f38f8||!xo(_0xf36d6e))return null;let _0x324be2=_0x28a5ea[_0x391ce8(0x3bf)](_0xdab8ad,_0x56a9ee[_0x391ce8(0x49d)])===_0x43c515?_0x43c515:null,_0x5136ac=_0x4c06c1?_0x1108cb('div',{'className':_0x391ce8(0x465),'style':{'gridTemplateRows':_0xf36d6e[_0x391ce8(0x167)]['displayMode']===_0x391ce8(0x36e)?_0x391ce8(0x3e2):'minmax(0,\x201fr)'},'children':[_0xf36d6e[_0x391ce8(0x167)]['displayMode']!=='table'&&_0x324be2&&_0x1c53e9('div',{'className':_0x391ce8(0x176),'children':_0x1c53e9(Lr,{'isRowDirection':_0x3b57e8(_0xf36d6e[_0x391ce8(0x167)][_0x391ce8(0x252)][_0x391ce8(0x292)]),'runtime':_0x324be2})}),_0xf36d6e[_0x391ce8(0x167)][_0x391ce8(0x463)]!==_0x391ce8(0x252)&&_0x1c53e9(_0x391ce8(0x1e8),{'className':_0x391ce8(0x45d),'children':_0x1c53e9(Ai,{'pivot':_0xf36d6e[_0x391ce8(0x167)]['pivot'],'view':_0x4c06c1[_0x391ce8(0x1f5)]})})]}):_0x1c53e9('div',{'className':_0x391ce8(0x216),'children':_0x3b6685?_0x46050d['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x46050d['t'](_0x391ce8(0x3b2))});return _0x1108cb(_0x391ce8(0x1e8),{'className':_0x391ce8(0x3dd),'children':[_0x1c53e9(_0x391ce8(0x1e8),{'className':_0x391ce8(0x3e9),'children':_0x5136ac}),_0x44f825&&_0x1c53e9(yo,{'config':_0xf36d6e[_0x391ce8(0x167)],'runtime':_0x324be2,'table':_0x5f38f8,'onChange':_0x382643=>{const _0xe72c6a=_0x391ce8;_0x2f789b[_0xe72c6a(0x42e)](_0x50437b['id'],{'unitId':_0xdab8ad,'tableId':_0xc8fe45,'viewId':_0x23e33b,'patch':_0x382643})[_0xe72c6a(0x433)](_0x1afb34=>_0x51f38f[_0xe72c6a(0x1a6)](_0xe72c6a(0x3cd),_0x1afb34));}})]});}function xo(_0x2b69b8){const _0x16b16c=_0xbfff20;return(_0x2b69b8==null?void 0x0:_0x2b69b8[_0x16b16c(0x427)])===_0x54a718['Pivot']&&typeof _0x2b69b8[_0x16b16c(0x167)]==_0x16b16c(0x235)&&_0x2b69b8[_0x16b16c(0x167)]!==null&&_0x16b16c(0x274)in _0x2b69b8[_0x16b16c(0x167)]&&_0x16b16c(0x252)in _0x2b69b8[_0x16b16c(0x167)]&&'displayMode'in _0x2b69b8[_0x16b16c(0x167)];}let So=class extends _0x2eec42{constructor(_0x52018b,_0x3ed455,_0x41eb33,_0x59d0e5,_0x4acb67,_0x1c867f){const _0x4bfe2b=_0xbfff20;super(),this[_0x4bfe2b(0x253)](_0x3ed455[_0x4bfe2b(0x219)]({'type':_0x54a718[_0x4bfe2b(0x2c9)],'renderMode':_0x4bfe2b(0x304),'icon':_0x25ef71,'component':bo,'menu':{get 'label'(){const _0x4855e0=_0x4bfe2b;return _0x1c867f['t'](_0x4855e0(0x3f2));},get 'description'(){const _0x1c2bf7=_0x4bfe2b;return _0x1c867f['t'](_0x1c2bf7(0x41c));},get 'defaultName'(){const _0x23e4a3=_0x4bfe2b;return _0x1c867f['t'](_0x23e4a3(0x475));}}})),this[_0x4bfe2b(0x253)](_0x52018b[_0x4bfe2b(0x219)](Co(_0x41eb33,_0x59d0e5,_0x4acb67,_0x1c867f)));}};So=kr([Y(0x0,_0x2a9f9e),Y(0x1,_0x1611be),Y(0x2,_0x38b292(_0x309002)),Y(0x3,_0x2220df),Y(0x4,_0x4deb76),Y(0x5,_0x38b292(_0x2989fb))],So);function Co(_0x3ad195,_0x4a009c,_0x1b38be,_0x2cd89b){const _0x3aa5ee=_0xbfff20;return{'change$':_0x440773(_0x3ad195[_0x3aa5ee(0x2bc)],_0x1b38be[_0x3aa5ee(0x179)]),'component':Ya,get 'labels'(){const _0x6024d7=_0x3aa5ee;return{'add':_0x2cd89b['t'](_0x6024d7(0x443)),'configure':_0x474657=>_0x2cd89b['t'](_0x6024d7(0x2d0),_0x474657),'delete':_0x2cd89b['t'](_0x6024d7(0x171)),'new':_0x2cd89b['t'](_0x6024d7(0x3ae)),'rename':_0x2cd89b['t']('bases-dashboard-ui.dashboard.rename'),'search':_0x2cd89b['t']('bases-dashboard-ui.dashboard.search'),'section':_0x2cd89b['t'](_0x6024d7(0x2ec))};},'getItems':_0x269143=>{const _0x570e74=_0x3aa5ee;let _0x332e74=_0x3ad195[_0x570e74(0x1ce)](_0x269143);return _0x332e74['dashboardOrder'][_0x570e74(0x31f)](_0x28cbba=>{const _0x20eadc=_0x570e74;let _0x4d5d2f=_0x332e74[_0x20eadc(0x344)][_0x28cbba];return _0x4d5d2f?[{'id':_0x4d5d2f['id'],'name':_0x4d5d2f[_0x20eadc(0x3ca)],'readonly':!_0x120634(_0x1b38be,_0x269143,_0x4d5d2f['id'])}]:[];});},'create':async _0xcf4b8b=>{const _0x9ba14a=_0x3aa5ee;let _0x1e24e5=_0x3ad195[_0x9ba14a(0x1ce)](_0xcf4b8b),_0x16e616='dashboard-'+_0xd28735(0x8),_0x2dd663=wo(_0x1e24e5[_0x9ba14a(0x28e)][_0x9ba14a(0x31f)](_0x412553=>{const _0x28e583=_0x9ba14a;let _0x1b3ba2=_0x1e24e5['dashboards'][_0x412553];return _0x1b3ba2?[_0x1b3ba2[_0x28e583(0x3ca)]]:[];}),_0x48d163=>_0x2cd89b['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x48d163)));return await _0x4a009c[_0x9ba14a(0x42e)](_0x28a4bb['id'],{'unitId':_0xcf4b8b,'dashboard':{'id':_0x16e616,'name':_0x2dd663,'widgetOrder':[],'widgets':{}}})?_0x16e616:null;},'rename':async(_0x528483,_0x5049e6,_0x26246d)=>{const _0x1dce32=_0x3aa5ee;let _0x470694=_0x3ad195[_0x1dce32(0x34a)](_0x528483,_0x5049e6);return!!(_0x470694&&await _0x4a009c[_0x1dce32(0x42e)](_0x39c855['id'],{'unitId':_0x528483,'dashboard':{..._0x470694,'name':_0x26246d}}));},'remove':(_0x477ada,_0x5335c2)=>_0x4a009c[_0x3aa5ee(0x42e)](_0x22a544['id'],{'unitId':_0x477ada,'dashboardId':_0x5335c2})};}function wo(_0x4322b4,_0x3572c4){const _0x2c09fa=_0xbfff20;let _0x5a1e60=new Set(_0x4322b4),_0x32da9c=_0x5a1e60['size']+0x1,_0x3ac5e6=_0x3572c4(_0x32da9c);for(;_0x5a1e60[_0x2c09fa(0x2f8)](_0x3ac5e6);)_0x32da9c+=0x1,_0x3ac5e6=_0x3572c4(_0x32da9c);return _0x3ac5e6;}let To=class extends _0x14271e{constructor(_0x30cb17=gr,_0x3a7904,_0xd55122){const _0x5e0c8e=_0xbfff20;super(),this[_0x5e0c8e(0x469)]=_0x30cb17,this[_0x5e0c8e(0x326)]=_0x3a7904,this[_0x5e0c8e(0x403)]=_0xd55122;let {..._0x2368db}=_0x2004cb({},gr,this[_0x5e0c8e(0x469)]);this[_0x5e0c8e(0x403)][_0x5e0c8e(0x4a4)](hr,_0x2368db);}[_0xbfff20(0x37a)](){const _0x48a8f6=_0xbfff20;this[_0x48a8f6(0x326)][_0x48a8f6(0x1d7)]([Ar]),this[_0x48a8f6(0x326)][_0x48a8f6(0x1d7)]([Kr]),this[_0x48a8f6(0x326)][_0x48a8f6(0x1d7)]([So]);}[_0xbfff20(0x184)](){const _0x5bfa0f=_0xbfff20;_0x5b9752(this[_0x5bfa0f(0x326)],[[Ar],[Kr],[So]]);}};Fr(To,'type',_0x37ea54[_0xbfff20(0x2e2)]),Fr(To,'pluginName','BASE_DASHBOARD_UI_PLUGIN'),Fr(To,_0xbfff20(0x267),pr),Fr(To,'version',mr),To=kr([_0x1957bf(_0x36c2e0,_0xbeeff3,_0xfebde9,_0x136391,_0x3371b7,_0xc91b76),Y(0x1,_0x38b292(_0x38337e)),Y(0x2,_0x6de229)],To);export{ra as UniverBaseDashboardMobileUIPlugin,To as UniverBaseDashboardUIPlugin};
|
|
1
|
+
const _0x410bd1=_0x10b1;(function(_0x4beedf,_0x2ed997){const _0xd0f339=_0x10b1,_0xbab000=_0x4beedf();while(!![]){try{const _0x7360bf=-parseInt(_0xd0f339(0x448))/0x1*(parseInt(_0xd0f339(0x474))/0x2)+parseInt(_0xd0f339(0x3bd))/0x3+parseInt(_0xd0f339(0x439))/0x4*(parseInt(_0xd0f339(0x40c))/0x5)+parseInt(_0xd0f339(0x197))/0x6*(-parseInt(_0xd0f339(0x1e5))/0x7)+-parseInt(_0xd0f339(0x289))/0x8*(-parseInt(_0xd0f339(0x293))/0x9)+-parseInt(_0xd0f339(0x3a7))/0xa*(parseInt(_0xd0f339(0x1d0))/0xb)+-parseInt(_0xd0f339(0x1e9))/0xc*(-parseInt(_0xd0f339(0x331))/0xd);if(_0x7360bf===_0x2ed997)break;else _0xbab000['push'](_0xbab000['shift']());}catch(_0x5472df){_0xbab000['push'](_0xbab000['shift']());}}}(_0x416b,0x5d20b));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x365d3b,BASES_DASHBOARD_GRID_COLUMNS as _0x1e51f0,BaseChartRuntimeService as _0xab5a6b,BaseDashboardResourceService as _0x3a9dda,BaseDashboardWidgetType as _0x4e7fff,CreateBaseDashboardCommand as _0x100fa4,DeleteBaseDashboardCommand as _0x439898,RemoveBaseDashboardWidgetCommand as _0x29094f,UniverBaseDashboardPlugin as _0x7dcda4,UpdateBaseDashboardCommand as _0x1e24a6,UpdateBasePivotViewCommand as _0x1f6e61,UpsertBaseDashboardWidgetCommand as _0x59e700,canEditBaseDashboard as _0x467e07,canEditBasePivotView as _0x555e35,createBasePivotTable as _0x3cec59,resolveBasePivotChartRowDirection as _0x3fb36c}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x2fe630,BaseMobileDrawer as _0x2e2cb1,BaseMobileFilterOperand as _0x4ebe70,BaseMobileFilterPanel as _0x49b72d,BaseUnitCollaborationStatus as _0x335c60,FormulaEditorPanel as _0x3564dd,IBaseDashboardUIExtensionRegistryService as _0x76978b,IBaseViewUIRegistryService as _0xb97bcb,MobileFormulaEditorPanel as _0x4e5057,UniverBasesMobileUIPlugin as _0x32b88b,UniverBasesUIPlugin as _0xe89ad3,formulaToEditorFormula as _0x5451bf,normalizeEditorFormulaForConfig as _0x57ee91,toFormulaMenuTables as _0x31f17a,toMenuFields as _0x4eb67b}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x1b8ffc,ChartAxisSection as _0x347442,ChartColorField as _0x535011,ChartCommonDataMappingSection as _0x4e3257,ChartEditBlockTitle as _0x41b08d,ChartEditPanel as _0x3a4219,ChartEditPanelSection as _0x27e494,ChartEditPanelTab as _0x3b422b,ChartEditPanelTabs as _0x55df58,ChartEditorCapability as _0x2b72e7,ChartEditorProvider as _0x1250c0,ChartFunnelStyleSection as _0x3515bf,ChartGradientFillField as _0x2f928b,ChartGridlinesAndTicksSection as _0x10f178,ChartHeatmapStyleSection as _0x26b14a,ChartHostAdapter as _0x439c8c,ChartIndicatorLineSection as _0x2906d0,ChartLegendSection as _0x399526,ChartLineAndAreaSection as _0x4ff136,ChartNumberFormatAtom as _0x56a20f,ChartParetoSeriesSection as _0x4de7d9,ChartPieStyleSection as _0x4626d9,ChartRadarStyleSection as _0x5b6a4d,ChartRelationStyleSection as _0x4bddcd,ChartSectionAccordion as _0x177a4c,ChartSectionAccordionContent as _0x46900a,ChartSectionAccordionItem as _0x2844d6,ChartSectionAccordionTrigger as _0x375efc,ChartSeriesSection as _0xaadc8a,ChartStackField as _0x5d6f36,ChartStyleSection as _0x5d8e64,ChartThemeField as _0x468a30,ChartThreeDSection as _0x533b6c,ChartTitlesSection as _0x364a1b,ChartTrendlineSection as _0x3ac9fb,ChartTypeField as _0x29fd74,ChartTypeSpecificDataSection as _0x1d97dc,ChartTypeSpecificSetupSection as _0x5ce85a,ChartTypeSpecificStyleSection as _0x3d37b1,ChartUIService as _0x24782e,ChartViewStateRegistry as _0x3b73c7,ChartWaterfallSetupFields as _0x3ae098,ChartWaterfallStyleSection as _0x40b896,ChartWordCloudStyleSection as _0x450802,DEFAULT_CHART_AXIS_VALUES as _0x4d8c62,DEFAULT_CHART_FUNNEL_VALUES as _0xd824da,DEFAULT_CHART_HEATMAP_VALUES as _0xa35118,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x10441e,DEFAULT_CHART_LEGEND_VALUES as _0x1b9bc9,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x45d9c7,DEFAULT_CHART_PARETO_VALUES as _0x2c4778,DEFAULT_CHART_PIE_VALUES as _0x7ff226,DEFAULT_CHART_RADAR_VALUES as _0x223cbb,DEFAULT_CHART_RELATION_VALUES as _0x12660e,DEFAULT_CHART_SERIES_VALUES as _0x223992,DEFAULT_CHART_STYLE_VALUES as _0x419379,DEFAULT_CHART_TITLE_VALUES as _0x304725,DEFAULT_CHART_TRENDLINE_VALUES as _0x201be4,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x38fd81,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x37da98,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x22d9d9,MobileChartEditorControls as _0x3917ea,MobileChartEditorProvider as _0x5e1d75,UniverChartMobileUIPlugin as _0x2d555f,UniverChartUIPlugin as _0x570ced,buildChartTypeSelectOptions as _0x2190e6,chartTypeSupportsCapability as _0xbab818,chartTypeSupportsLineAndAreaStyle as _0x230f4f,useChartEditorChartType as _0x499edc,useChartEditorHasRightAxis as _0x313117}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x1b68d2}from'@univerjs-pro/license';import{ShapeFormulaService as _0x1735be,UniverShapeEditorPlugin as _0xdd06cf,createFormulaShapeData as _0x365108}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0xac378e,BaseFilterConjunction as _0x3c7c2d,BaseFilterOperator as _0x27f238,BaseViewType as _0x37c4bc,DependentOn as _0x2b679d,Disposable as _0x34f5d7,ICommandService as _0x668d8f,IConfigService as _0x200457,IImageIoService as _0x1561a2,ILogService as _0xf4ca24,IPermissionService as _0xd14797,IUndoRedoService as _0x3de274,IUniverInstanceService as _0x1ce417,ImageSourceType as _0x4ca25c,Inject as _0x1fee36,Injector as _0x4c3614,LocaleService as _0x4f7627,ObjectPermissionService as _0x46cb3e,Plugin as _0x22507e,RedoCommand as _0xa30686,ThemeService as _0x4e623a,UndoCommand as _0x2178d8,UniverInstanceType as _0xd3f775,createParagraphId as _0x76d4c9,dateKit as _0x5e4ae7,debounce as _0x96b9e5,generateRandomId as _0x542898,merge as _0x17941a,numfmt as _0x5140c1,touchDependencies as _0x4ffdef}from'@univerjs/core';import{UniverDocsUIPlugin as _0x1776ea}from'@univerjs/docs-ui';import{ArrowDownIcon as _0x5584ab,ArrowUpIcon as _0x40c1d9,AscendingIcon as _0x52227c,CalendarIcon as _0x5325fe,ChartIcon as _0x37386e,CloseIcon as _0x26780d,DeleteIcon as _0x500a22,DescendingIcon as _0x5c0c38,ExpandIcon as _0x14205d,FilterIcon as _0x90a2b7,GripVerticalIcon as _0x5ca67b,IncreaseIcon as _0x82e3c7,MoreDownIcon as _0x5d1e68,MoreHorizontalIcon as _0x2fabd1,NumberIcon as _0x5c186e,PenIcon as _0x5711a9,PivotTableIcon as _0x475089,ProtectIcon as _0x42b635,RedoIcon as _0x4cec9e,SearchIcon as _0x1dab65,TextIcon as _0x4af771,UndoIcon as _0x232960}from'@univerjs/icons';import{combineLatest as _0x12f683,map as _0x53720a,merge as _0x360ca5,skip as _0xd0ab6b}from'rxjs';import{SetBasePermissionCommand as _0x523fb1,getBaseDashboardPermissionObjectId as _0x264ef9}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x458fcc}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x3b41be,ShapeLineTypeEnum as _0x754183,ShapeTypeEnum as _0x389913}from'@univerjs-pro/engine-shape';import{Button as _0x11a8c2,Checkbox as _0x10db4e,DatePicker as _0x2d128f,Dialog as _0x2e920d,DropdownMenu as _0x566dc7,Input as _0x56be65,InputNumber as _0x137e64,MobileDialog as _0x3f6018,MobileDropdownMenu as _0x92fe97,MobileSelect as _0x50c62e,MultipleSelect as _0x3fad30,Segmented as _0x5c4858,Select as _0x3f5ec5,Textarea as _0x2d4d6c,Tooltip as _0x3dcdeb,borderClassName as _0x1f0d20,clsx as _0xec79e5,scrollbarClassName as _0x44d47d}from'@univerjs/design';import{UnitObject as _0x2dc28e}from'@univerjs/protocol';import{ILayoutService as _0x14a063,ObjectPermissionButton as _0x51ad51,openObjectPermissionDialog as _0x219393,useDependency as _0x20ec70,useObservable as _0x24cacb}from'@univerjs/ui';import{useCallback as _0x31eec3,useEffect as _0x2fd531,useMemo as _0x10a2b7,useRef as _0x127850,useState as _0x5e5f09}from'react';import{Fragment as _0x13d76c,jsx as _0x143050,jsxs as _0x391b30}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x2d28ab,ChartRenderMode as _0x25b78e,ChartThemeService as _0x4f1e5d,ChartTypeBits as _0x2261bb,ChartWaterfallStyleTarget as _0x1a11c1,IChartRenderModelManagerService as _0x48dc66,RTLChartStyle as _0x376ad5,chartBitsUtils as _0xbb03e5,chartTypeCanUseTrendLine as _0x351f42,resolveChartRuntimeStyle as _0x40ec96,resolveDefaultChartHostFrameStyle as _0x197074,toChartModelUpdate as _0x59ff45}from'@univerjs-pro/engine-chart';import{createPortal as _0x35f612}from'react-dom';import{PivotCellStyleTypeEnum as _0x2b70c6,PivotDataFieldDataTypeEnum as _0x15e35b,PivotDataFieldSortOperatorEnum as _0x1e9e18,PivotFilterTypeEnum as _0x315feb,PivotLayoutTypeEnum as _0x5a28d1,PivotSubtotalPositionEnum as _0x5ba910,PivotSubtotalTypeEnum as _0x9fb623,PivotTableFiledAreaEnum as _0x3c113a,PivotTableValuePositionEnum as _0xeddb61,isErrorValue as _0x420b5a,isPrefixValue as _0x163d9a}from'@univerjs-pro/engine-pivot';var mr=_0x410bd1(0x2d3),hr=_0x410bd1(0x371);const gr=_0x410bd1(0x45c),_r={};function vr(_0x350270,_0x41802f){const _0x1067d8=_0x410bd1;let _0x3c0830=_0x20ec70(_0xd14797),_0x5db4eb=_0x467e07(_0x3c0830,_0x350270,_0x41802f);return _0x24cacb(()=>_0x3c0830['permissionPointUpdate$'][_0x1067d8(0x40a)](_0x53720a(()=>_0x467e07(_0x3c0830,_0x350270,_0x41802f))),_0x5db4eb,!0x1,[_0x41802f,_0x3c0830,_0x350270]);}function yr(_0x223b1d,_0x34d862,_0x899b02){const _0x244361=_0x410bd1;let _0x3cea11=_0x20ec70(_0xd14797),_0x531d29=_0x555e35(_0x3cea11,_0x223b1d,_0x34d862,_0x899b02);return _0x24cacb(()=>_0x3cea11['permissionPointUpdate$'][_0x244361(0x40a)](_0x53720a(()=>_0x555e35(_0x3cea11,_0x223b1d,_0x34d862,_0x899b02))),_0x531d29,!0x1,[_0x3cea11,_0x34d862,_0x223b1d,_0x899b02]);}function br(_0x1594c2,_0x4a3cff='cover'){const _0x2f52cc=_0x410bd1;return{'backgroundImage':_0x2f52cc(0x2fa)+JSON[_0x2f52cc(0x21b)](_0x1594c2)+')','backgroundPosition':_0x4a3cff==='repeat'?_0x2f52cc(0x15e):'center','backgroundRepeat':_0x4a3cff==='repeat'?_0x2f52cc(0x30c):_0x2f52cc(0x37b),'backgroundSize':_0x4a3cff===_0x2f52cc(0x409)?'cover':_0x2f52cc(0x49d)};}const xr={'alignment':_0x410bd1(0x189),'currency':_0x410bd1(0x1ef),'decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x410bd1(0x49d),'numberFormat':'general'},Sr={'CNY':'¥','EUR':'€','USD':'$'};function Cr(_0x58f5f0){const _0x5681f9=_0x410bd1;var _0x72b71d;let _0x43cdf5=Dr(((_0x72b71d=_0x58f5f0['shapeData'][_0x5681f9(0x213)])==null||(_0x72b71d=_0x72b71d['numberFormat'])==null?void 0x0:_0x72b71d[_0x5681f9(0x374)])??'');return{...xr,..._0x43cdf5,..._0x58f5f0[_0x5681f9(0x2dc)]};}function wr(_0x3ff9c3,_0x3be8f3){const _0x5ccbd0=_0x410bd1;let _0x59deea={..._0x3ff9c3[_0x5ccbd0(0x2dc)],..._0x3be8f3},_0xa77fbd=Cr({..._0x3ff9c3,'appearance':_0x59deea}),_0x2895fe=_0x3ff9c3[_0x5ccbd0(0x3a0)][_0x5ccbd0(0x213)]??{'formula':''};return{..._0x3ff9c3,'appearance':_0x59deea,'shapeData':{..._0x3ff9c3[_0x5ccbd0(0x3a0)],'formulaBinding':{..._0x2895fe,'numberFormat':{'pattern':Tr(_0xa77fbd['numberFormat'],_0xa77fbd[_0x5ccbd0(0x36d)],_0xa77fbd[_0x5ccbd0(0x1c2)])}}}};}function Tr(_0x282473,_0x43fc33,_0x211d33){const _0x590dae=_0x410bd1;let _0x5f282a=Math['max'](0x0,Math[_0x590dae(0x2c0)](0x8,Math[_0x590dae(0x1d8)](_0x43fc33))),_0x2406ea=_0x5f282a?'.'+'0'['repeat'](_0x5f282a):'';switch(_0x282473){case _0x590dae(0x1c4):return'0'+_0x2406ea;case _0x590dae(0x366):return'0'+_0x2406ea+'%';case _0x590dae(0x1c2):return(Sr[_0x211d33]??_0x211d33)+'#,##0'+_0x2406ea;case _0x590dae(0x166):return _0x590dae(0x3aa)+_0x2406ea;case'compact':case _0x590dae(0x473):return _0x590dae(0x3ce);}}function Er(_0x321343,_0x4465e9,_0x53d9a7){const _0x1ff603=_0x410bd1;return _0x53d9a7[_0x1ff603(0x34e)]!==_0x1ff603(0x2b1)||typeof _0x4465e9!=_0x1ff603(0x1c4)||!Number[_0x1ff603(0x4a5)](_0x4465e9)?_0x321343:new Intl[(_0x1ff603(0x1da))](void 0x0,{'notation':'compact','minimumFractionDigits':_0x53d9a7[_0x1ff603(0x36d)]??0x0,'maximumFractionDigits':_0x53d9a7[_0x1ff603(0x36d)]??0x0})[_0x1ff603(0x1d7)](_0x4465e9);}function Dr(_0x29dff1){const _0x53607d=_0x410bd1;var _0x1e3ce4,_0x2f28c7;if(!_0x29dff1||_0x29dff1===_0x53607d(0x3ce))return{};let _0x308ba5=_0x29dff1[_0x53607d(0x433)](/\.([0#]+)/),_0xc64f97=(_0x308ba5==null||(_0x1e3ce4=_0x308ba5[0x1])==null?void 0x0:_0x1e3ce4[_0x53607d(0x38b)])??0x0;if(_0x29dff1[_0x53607d(0x37e)]('%'))return{'decimalPlaces':_0xc64f97,'numberFormat':_0x53607d(0x366)};let _0x311840=(_0x2f28c7=Object[_0x53607d(0x1ed)](Sr)[_0x53607d(0x2da)](([,_0x223b3d])=>_0x29dff1[_0x53607d(0x37e)](_0x223b3d)))==null?void 0x0:_0x2f28c7[0x0];return _0x311840?{'currency':_0x311840,'decimalPlaces':_0xc64f97,'numberFormat':_0x53607d(0x1c2)}:{'decimalPlaces':_0xc64f97,'numberFormat':_0x29dff1[_0x53607d(0x37e)](',')?_0x53607d(0x166):_0x53607d(0x1c4)};}const Or={'center':'center','left':_0x410bd1(0x1c0),'right':'flex-end'};function kr({dashboardId:_0x1418c8,unitId:_0x5b389f,widget:_0x140b68}){const _0x5e01a5=_0x410bd1;var _0x1d5922,_0x1e9bf6,_0x29600f,_0x45429e,_0x1174a8,_0x39b499,_0x5bd1bf,_0x1833a1,_0x45a2a2;let _0xc97ea4=_0x20ec70(_0x1735be),_0x305d30=_0x20ec70(_0x1561a2),_0x3bbfc3=_0x20ec70(_0x4f7627),_0x2e7c33=_0x10a2b7(()=>({'hostType':_0xd3f775['UNIVER_BASE'],'unitId':_0x5b389f,'subUnitId':_0x1418c8,'shapeId':_0x140b68['id']}),[_0x1418c8,_0x5b389f,_0x140b68['id']]),[_0x1ea2ed,_0x36975f]=_0x5e5f09(()=>_0xc97ea4[_0x5e01a5(0x2d5)](_0x2e7c33)),[_0x3ec3d4,_0x2b9be7]=_0x5e5f09(()=>{var _0x4823cf;return(_0x4823cf=_0xc97ea4['getResult'](_0x2e7c33))==null?void 0x0:_0x4823cf['value'];}),[_0x4f8bee,_0x882cf7]=_0x5e5f09(),_0x24cab2=_0x127850(null),_0x5ae704=_0x127850(null),_0x56c907=Cr(_0x140b68);_0x2fd531(()=>{const _0x5e4ce1=_0x5e01a5;let _0x185e4b=_0xc97ea4['presentationChanged$']['subscribe'](_0x31e766=>{const _0x1d1bec=_0x10b1;_0x31e766[_0x1d1bec(0x45b)]===_0x5b389f&&_0x31e766[_0x1d1bec(0x416)]===_0x1418c8&&_0x31e766[_0x1d1bec(0x38d)]===_0x140b68['id']&&(_0x36975f(_0x31e766[_0x1d1bec(0x352)]),_0x2b9be7(_0x31e766[_0x1d1bec(0x3c6)][_0x1d1bec(0x46f)]));});return()=>_0x185e4b[_0x5e4ce1(0x35d)]();},[_0x1418c8,_0xc97ea4,_0x2e7c33,_0x5b389f,_0x140b68['id']]),_0x2fd531(()=>{const _0x5d82d9=_0x5e01a5;let _0x58eb1b=_0x56c907[_0x5d82d9(0x2f8)];if(!_0x58eb1b||_0x58eb1b[_0x5d82d9(0x253)]!==_0x4ca25c[_0x5d82d9(0x27f)])return;let _0x34d287=_0x305d30['getImageSourceCache'](_0x58eb1b[_0x5d82d9(0x2d8)],_0x58eb1b['sourceType']);if(_0x34d287!=null&&_0x34d287[_0x5d82d9(0x2ca)])return;let _0x518282=!0x0;return _0x305d30[_0x5d82d9(0x34b)](_0x58eb1b[_0x5d82d9(0x2d8)])[_0x5d82d9(0x3c4)](_0x18a229=>{const _0x77bc67=_0x5d82d9;_0x518282&&_0x882cf7({'source':_0x58eb1b[_0x77bc67(0x2d8)],'value':_0x18a229});})[_0x5d82d9(0x28c)](()=>void 0x0),()=>{_0x518282=!0x1;};},[_0x56c907[_0x5e01a5(0x2f8)],_0x305d30]);let _0x47b61d=((_0x1d5922=_0x56c907[_0x5e01a5(0x2f8)])==null?void 0x0:_0x1d5922['sourceType'])===_0x4ca25c['UUID']?((_0x1e9bf6=_0x305d30[_0x5e01a5(0x469)](_0x56c907['backgroundImage'][_0x5e01a5(0x2d8)],_0x56c907[_0x5e01a5(0x2f8)][_0x5e01a5(0x253)]))==null?void 0x0:_0x1e9bf6['src'])??((_0x4f8bee==null?void 0x0:_0x4f8bee['source'])===_0x56c907[_0x5e01a5(0x2f8)][_0x5e01a5(0x2d8)]?_0x4f8bee[_0x5e01a5(0x46f)]:''):((_0x29600f=_0x56c907[_0x5e01a5(0x2f8)])==null?void 0x0:_0x29600f[_0x5e01a5(0x2d8)])??'',_0x83d4f5=_0x140b68['shapeData'][_0x5e01a5(0x249)],_0x1711c0=_0x83d4f5&&_0x5e01a5(0x1d6)in _0x83d4f5?(_0x45429e=_0x83d4f5[_0x5e01a5(0x1d6)])==null?void 0x0:_0x45429e[_0x5e01a5(0x18d)]:void 0x0,_0x7a28f7=Er((_0x1ea2ed==null?void 0x0:_0x1ea2ed[_0x5e01a5(0x3f3)])??'',_0x3ec3d4,_0x56c907),_0x9551b=_0x140b68[_0x5e01a5(0x3a0)][_0x5e01a5(0x471)],_0x2f83a1=_0x140b68['shapeData'][_0x5e01a5(0x334)],_0x52437f=_0x1711c0==null||(_0x1174a8=_0x1711c0['documentStyle'])==null?void 0x0:_0x1174a8[_0x5e01a5(0x1b6)],_0x5410c7=_0x140b68['description']??_0x140b68[_0x5e01a5(0x1c8)]??'';return _0x2fd531(()=>{const _0x450af0=_0x5e01a5;let _0x3b309d=_0x24cab2[_0x450af0(0x179)],_0x5b4795=_0x5ae704['current'];if(!_0x3b309d||!_0x5b4795)return;let _0x47c7e7=()=>{const _0x42f264=_0x450af0;if(_0x56c907[_0x42f264(0x1de)]==='custom'||!_0x3b309d[_0x42f264(0x219)]||!_0x3b309d[_0x42f264(0x23b)]){_0x5b4795[_0x42f264(0x454)][_0x42f264(0x39b)]=_0x56c907[_0x42f264(0x39b)]+'px';return;}let _0xc668a1=0x1,_0x41b828=0x48,_0x1f509e=_0xc668a1;for(;_0xc668a1<=_0x41b828;){let _0x4e204e=Math['floor']((_0xc668a1+_0x41b828)/0x2);_0x5b4795['style'][_0x42f264(0x39b)]=_0x4e204e+'px',_0x5b4795[_0x42f264(0x224)]<=_0x3b309d[_0x42f264(0x219)]&&_0x5b4795[_0x42f264(0x296)]<=_0x3b309d[_0x42f264(0x23b)]?(_0x1f509e=_0x4e204e,_0xc668a1=_0x4e204e+0x1):_0x41b828=_0x4e204e-0x1;}_0x5b4795[_0x42f264(0x454)]['fontSize']=_0x1f509e+'px';};if(_0x47c7e7(),typeof ResizeObserver>'u')return;let _0x31cb9c=new ResizeObserver(_0x47c7e7);return _0x31cb9c[_0x450af0(0x1c1)](_0x3b309d),()=>_0x31cb9c[_0x450af0(0x34f)]();},[_0x56c907[_0x5e01a5(0x39b)],_0x56c907[_0x5e01a5(0x1de)],_0x7a28f7]),_0x391b30('div',{'data-dashboard-formula-shape':_0x140b68['id'],'className':_0x5e01a5(0x25e),'style':{'backgroundColor':((_0x39b499=_0x140b68[_0x5e01a5(0x2dc)])==null?void 0x0:_0x39b499[_0x5e01a5(0x32a)])??((_0x9551b==null?void 0x0:_0x9551b[_0x5e01a5(0x2ae)])===_0x3b41be[_0x5e01a5(0x44b)]?_0x9551b[_0x5e01a5(0x4b0)]??void 0x0:void 0x0),'border':(_0x2f83a1==null?void 0x0:_0x2f83a1[_0x5e01a5(0x21a)])===_0x754183['SolidLine']?(_0x2f83a1[_0x5e01a5(0x252)]??0x1)+_0x5e01a5(0x18e)+(_0x2f83a1[_0x5e01a5(0x4b0)]??_0x5e01a5(0x236)):void 0x0,'borderRadius':_0x140b68[_0x5e01a5(0x3e3)]===_0x389913[_0x5e01a5(0x3fc)]?0xc:void 0x0,'color':((_0x5bd1bf=_0x140b68[_0x5e01a5(0x2dc)])==null?void 0x0:_0x5bd1bf['textColor'])??(_0x1ea2ed==null?void 0x0:_0x1ea2ed[_0x5e01a5(0x4b0)])??(_0x52437f==null||(_0x1833a1=_0x52437f['cl'])==null?void 0x0:_0x1833a1[_0x5e01a5(0x361)])??void 0x0,'fontWeight':_0x52437f!=null&&_0x52437f['bl']?0x258:void 0x0,'textAlign':_0x56c907['alignment']},'children':[_0x47b61d&&_0x143050(_0x5e01a5(0x21f),{'src':_0x47b61d,'alt':'','aria-hidden':'true','className':_0x5e01a5(0x2b9),'style':{'objectFit':((_0x45a2a2=_0x56c907['backgroundImage'])==null?void 0x0:_0x45a2a2[_0x5e01a5(0x451)])??_0x5e01a5(0x409)}}),_0x391b30('div',{'className':_0x5e01a5(0x299),'children':[_0x5410c7&&_0x143050(_0x5e01a5(0x402),{'data-dashboard-formula-description':!0x0,'className':'univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','children':_0x5410c7}),_0x143050(_0x5e01a5(0x402),{'ref':_0x24cab2,'data-dashboard-formula-value':!0x0,'aria-label':_0x5410c7||_0x3bbfc3['t'](_0x5e01a5(0x17f)),'className':_0x5e01a5(0x26f),'style':{'justifyContent':Or[_0x56c907[_0x5e01a5(0x1c7)]]},'children':_0x143050(_0x5e01a5(0x378),{'ref':_0x5ae704,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x56c907[_0x5e01a5(0x1de)],'className':_0x5e01a5(0x18a),'children':_0x7a28f7})})]})]});}function Y(_0xe489d5,_0x36303b){return function(_0x8894e3,_0x3e40d9){_0x36303b(_0x8894e3,_0x3e40d9,_0xe489d5);};}function Ar(_0x4e350a,_0x5a7e7e,_0x1e5ee3,_0x109351){const _0x27eb1b=_0x410bd1;var _0x2d17e2=arguments[_0x27eb1b(0x38b)],_0x1494bc=_0x2d17e2<0x3?_0x5a7e7e:_0x109351===null?_0x109351=Object[_0x27eb1b(0x4a3)](_0x5a7e7e,_0x1e5ee3):_0x109351,_0x24128c;if(typeof Reflect=='object'&&typeof Reflect[_0x27eb1b(0x3d6)]==_0x27eb1b(0x346))_0x1494bc=Reflect[_0x27eb1b(0x3d6)](_0x4e350a,_0x5a7e7e,_0x1e5ee3,_0x109351);else{for(var _0x2fd6c1=_0x4e350a[_0x27eb1b(0x38b)]-0x1;_0x2fd6c1>=0x0;_0x2fd6c1--)(_0x24128c=_0x4e350a[_0x2fd6c1])&&(_0x1494bc=(_0x2d17e2<0x3?_0x24128c(_0x1494bc):_0x2d17e2>0x3?_0x24128c(_0x5a7e7e,_0x1e5ee3,_0x1494bc):_0x24128c(_0x5a7e7e,_0x1e5ee3))||_0x1494bc);}return _0x2d17e2>0x3&&_0x1494bc&&Object[_0x27eb1b(0x2bb)](_0x5a7e7e,_0x1e5ee3,_0x1494bc),_0x1494bc;}let jr=class{constructor(_0x51a765,_0x18939a,_0x24be13){const _0x579eb9=_0x410bd1;this[_0x579eb9(0x3fd)]=_0x51a765,this[_0x579eb9(0x345)]=_0x18939a,this[_0x579eb9(0x32f)]=_0x24be13;}[_0x410bd1(0x3ee)](){const _0x83f140=_0x410bd1;return this[_0x83f140(0x32f)][_0x83f140(0x244)](_0x25b78e['Dom'],this[_0x83f140(0x41f)]());}[_0x410bd1(0x2c7)](_0x4e3ced){const _0x196866=_0x410bd1;let _0x1b418c=_0x4e3ced[_0x196866(0x37a)]['config'];if(!_0x1b418c)throw Error(_0x196866(0x418)+_0x4e3ced['chartId']+_0x196866(0x1b2));let _0x201588=this['_localeService']['getDirection']();return{'config':_0x1b418c,'style':_0x40ec96({..._0x4e3ced[_0x196866(0x37a)]['style'],'runtime':_0x4e3ced[_0x196866(0x37a)][_0x196866(0x1b5)](_0x201588),'direction':_0x201588},_0x1b418c[_0x196866(0x38c)])};}[_0x410bd1(0x41f)](){const _0x5b2c34=_0x410bd1;return{'resolveHostStyle':({style:_0x4c7a85})=>_0x197074({'style':_0x4c7a85,'getRenderColor':_0x20d987=>this['_chartThemeService']['getRenderColor'](_0x20d987)}),'resolveRenderBackgroundColor':({hostStyle:_0x3457d0})=>_0x3457d0[_0x5b2c34(0x471)]};}};jr=Ar([Y(0x0,_0x1fee36(_0x4f7627)),Y(0x1,_0x1fee36(_0x4f1e5d)),Y(0x2,_0x48dc66)],jr);function Mr(_0x1719b2,_0x5f0007){const _0x134b16=_0x410bd1;var _0x22c268;_0x1719b2[_0x134b16(0x454)][_0x134b16(0x32a)]=_0x5f0007[_0x134b16(0x471)]??_0x134b16(0x3fe),_0x1719b2[_0x134b16(0x454)][_0x134b16(0x42b)]=(_0x22c268=_0x5f0007[_0x134b16(0x42b)])!=null&&_0x22c268[_0x134b16(0x4b0)]&&_0x5f0007[_0x134b16(0x42b)][_0x134b16(0x252)]?_0x5f0007[_0x134b16(0x42b)]['width']+'px\x20solid\x20'+_0x5f0007[_0x134b16(0x42b)]['color']:'',_0x1719b2['style'][_0x134b16(0x226)]=_0x5f0007[_0x134b16(0x44e)]?_0x5f0007[_0x134b16(0x44e)]+'px':'',_0x1719b2[_0x134b16(0x454)][_0x134b16(0x4a8)]=_0x134b16(0x24b),_0x1719b2[_0x134b16(0x454)][_0x134b16(0x238)]=_0x134b16(0x1fb);}function Nr(_0x227808){'@babel/helpers - typeof';const _0x5e4842=_0x410bd1;return Nr=typeof Symbol==_0x5e4842(0x346)&&typeof Symbol['iterator']==_0x5e4842(0x288)?function(_0x4f2a8b){return typeof _0x4f2a8b;}:function(_0x2308e8){const _0x14c19e=_0x5e4842;return _0x2308e8&&typeof Symbol==_0x14c19e(0x346)&&_0x2308e8['constructor']===Symbol&&_0x2308e8!==Symbol[_0x14c19e(0x350)]?_0x14c19e(0x288):typeof _0x2308e8;},Nr(_0x227808);}function Pr(_0x54e42f,_0x5856ed){const _0x2aa6f8=_0x410bd1;if(Nr(_0x54e42f)!='object'||!_0x54e42f)return _0x54e42f;var _0x2ad68d=_0x54e42f[Symbol[_0x2aa6f8(0x486)]];if(_0x2ad68d!==void 0x0){var _0xdab3ee=_0x2ad68d[_0x2aa6f8(0x286)](_0x54e42f,_0x5856ed||_0x2aa6f8(0x47a));if(Nr(_0xdab3ee)!=_0x2aa6f8(0x16a))return _0xdab3ee;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5856ed==='string'?String:Number)(_0x54e42f);}function Fr(_0x4e3cc8){const _0x4bb702=_0x410bd1;var _0x103b13=Pr(_0x4e3cc8,_0x4bb702(0x274));return Nr(_0x103b13)=='symbol'?_0x103b13:_0x103b13+'';}function Ir(_0x3c2e00,_0x3dabc1,_0x192415){const _0x46ac35=_0x410bd1;return(_0x3dabc1=Fr(_0x3dabc1))in _0x3c2e00?Object[_0x46ac35(0x2bb)](_0x3c2e00,_0x3dabc1,{'value':_0x192415,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3c2e00[_0x3dabc1]=_0x192415,_0x3c2e00;}var Lr=class extends _0x34f5d7{constructor(_0x422063,_0x38ed57){const _0x10d875=_0x410bd1;super(),this['chartId']=_0x422063,this[_0x10d875(0x3d9)]=_0x38ed57,Ir(this,'mode',_0x25b78e[_0x10d875(0x432)]);}[_0x410bd1(0x476)](){const _0x7db499=_0x410bd1;return{'width':Math[_0x7db499(0x3b6)](0x1,this['_element'][_0x7db499(0x219)]),'height':Math[_0x7db499(0x3b6)](0x1,this[_0x7db499(0x3d9)]['clientHeight'])};}[_0x410bd1(0x1a0)](_0x2cc4d8){const _0x26b339=_0x410bd1;Mr(this[_0x26b339(0x3d9)],_0x2cc4d8);}async['ensureMount'](){return this['_element'];}['checkMounted'](){const _0x1624bf=_0x410bd1;return this[_0x1624bf(0x3d9)][_0x1624bf(0x3fb)];}[_0x410bd1(0x3ac)](){}[_0x410bd1(0x455)](){}['markNotReady'](){}};function Rr({isRowDirection:_0x6ace03,runtime:_0x5e6fe2}){const _0x5c81c5=_0x410bd1;let _0x2e93b1=_0x127850(null),_0x1bcc98=_0x20ec70(_0x4f7627),_0x72afd5=_0x20ec70(_0xf4ca24),_0x2079bb=_0x20ec70(jr),_0x104a40=_0x20ec70(_0x4e623a);return _0x2fd531(()=>{const _0x4bc6c1=_0x10b1;let _0x385681=_0x2e93b1[_0x4bc6c1(0x179)];if(!_0x385681)return;_0x385681['replaceChildren']();let {chartId:_0x5a452e,model:_0x5749c9}=_0x5e6fe2,_0x44edab=_0x5749c9[_0x4bc6c1(0x184)],_0x3e671b=new Lr(_0x5a452e,_0x385681),_0x19afdd=_0x2079bb[_0x4bc6c1(0x3ee)](),_0x559dcd=!0x1,_0x5e7c85=null,_0x3fb97a=null,_0x495048=null,_0x130d5e=null,_0x207959=!0x1,_0x117db1=!0x1,_0x4c0fce=Promise[_0x4bc6c1(0x263)]();_0x19afdd[_0x4bc6c1(0x3f1)](_0x3e671b);let _0x3d1212=()=>{const _0x56ba72=_0x4bc6c1;var _0x38168c,_0x5e248a,_0x185953,_0x3910a0;if(document[_0x56ba72(0x41a)]===_0x56ba72(0x24b)||(_0x38168c=(_0x5e248a=window)[_0x56ba72(0x498)])!=null&&(_0x38168c=_0x38168c[_0x56ba72(0x286)](_0x5e248a,_0x56ba72(0x440)))!=null&&_0x38168c[_0x56ba72(0x1e2)]||(_0x185953=(_0x3910a0=window)[_0x56ba72(0x498)])!=null&&(_0x185953=_0x185953['call'](_0x3910a0,_0x56ba72(0x48e)))!=null&&_0x185953[_0x56ba72(0x1e2)]||!_0x385681[_0x56ba72(0x3fb)])return!0x1;let _0x3b2300=_0x385681[_0x56ba72(0x2f2)]();return _0x3b2300['width']>0x0&&_0x3b2300['height']>0x0&&_0x3b2300[_0x56ba72(0x483)]>0x0&&_0x3b2300[_0x56ba72(0x400)]>0x0&&_0x3b2300[_0x56ba72(0x189)]<window['innerWidth']&&_0x3b2300[_0x56ba72(0x4a9)]<window[_0x56ba72(0x15d)];},_0x39f8ec=()=>{const _0x4ca9ae=_0x4bc6c1;_0x3fb97a!==null&&clearTimeout(_0x3fb97a),_0x385681[_0x4ca9ae(0x1b9)][_0x4ca9ae(0x165)]='true',_0x385681[_0x4ca9ae(0x1b9)][_0x4ca9ae(0x363)]=String(_0x2d28ab),_0x3fb97a=setTimeout(()=>{const _0x3d29e8=_0x4ca9ae;_0x3fb97a=null,delete _0x385681['dataset']['baseChartDataAnimation'],delete _0x385681[_0x3d29e8(0x1b9)]['baseChartDataAnimationDuration'];},_0x2d28ab);},_0x430beb=_0x96b9e5(()=>{const _0x4caec2=_0x4bc6c1;if(_0x559dcd||(_0x5e7c85!==null&&(clearTimeout(_0x5e7c85),_0x5e7c85=null),!_0x5749c9[_0x4caec2(0x30a)]))return;let _0x5866a1=_0x117db1;_0x117db1=!0x1,_0x385681[_0x4caec2(0x1b9)][_0x4caec2(0x2a8)]=String(_0x5749c9[_0x4caec2(0x2a8)]),_0x385681['dataset']['chartRowDirection']=String(_0x6ace03);let _0x3abc19=_0x2079bb[_0x4caec2(0x2c7)](_0x5e6fe2),_0x516e70={'chartId':_0x5a452e,'config':_0x3abc19[_0x4caec2(0x30a)],'style':_0x3abc19[_0x4caec2(0x454)]};_0x4c0fce=_0x4c0fce[_0x4caec2(0x3c4)](async()=>{const _0x5b6f61=_0x4caec2;_0x559dcd||(_0x385681[_0x5b6f61(0x1b9)][_0x5b6f61(0x278)]=String(Number(_0x385681[_0x5b6f61(0x1b9)][_0x5b6f61(0x278)]??0x0)+0x1),_0x5866a1&&_0x495048&&_0x19afdd[_0x5b6f61(0x262)]&&_0x3d1212()?(await _0x19afdd[_0x5b6f61(0x262)](_0x495048,_0x516e70,{'duration':_0x2d28ab}),_0x559dcd||_0x39f8ec()):await _0x19afdd[_0x5b6f61(0x389)](_0x516e70),_0x495048=_0x516e70);})[_0x4caec2(0x28c)](_0x293528=>_0x72afd5[_0x4caec2(0x280)](_0x4caec2(0x320),_0x293528));},0x64,{'leading':!0x0,'trailing':!0x0,'maxWait':0x64}),_0xe95f25=(_0x27719a=!0x1)=>{_0x117db1||=_0x27719a,!_0x207959&&(_0x207959=!0x0,queueMicrotask(()=>{_0x207959=!0x1,_0x559dcd||_0x430beb();}));},_0x1932e9=[_0x44edab['data$'][_0x4bc6c1(0x3de)](_0x334a4f=>{const _0x27d062=_0x4bc6c1;let _0x228672=JSON[_0x27d062(0x21b)](_0x334a4f);_0x130d5e!=null&&_0x130d5e!==_0x228672&&_0xe95f25(!0x0),_0x130d5e=_0x228672;}),_0x5749c9[_0x4bc6c1(0x494)][_0x4bc6c1(0x3de)](_0x921a6e=>{_0x921a6e&&_0xe95f25();}),_0x5749c9[_0x4bc6c1(0x20a)]['subscribe'](()=>_0xe95f25()),_0x1bcc98[_0x4bc6c1(0x48f)][_0x4bc6c1(0x3de)](()=>_0xe95f25()),_0x12f683([_0x104a40[_0x4bc6c1(0x1be)],_0x104a40[_0x4bc6c1(0x343)]])[_0x4bc6c1(0x40a)](_0xd0ab6b(0x1))[_0x4bc6c1(0x3de)](()=>_0xe95f25())],_0x3fe2f3=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x5aa92a=_0x4bc6c1;_0x559dcd||(_0x3e671b[_0x5aa92a(0x3ac)](),_0x5e7c85!==null&&clearTimeout(_0x5e7c85),_0x5e7c85=setTimeout(()=>_0xe95f25(),0x64));});return _0x3fe2f3==null||_0x3fe2f3[_0x4bc6c1(0x1c1)](_0x385681),()=>{const _0x2bbdf7=_0x4bc6c1;_0x559dcd=!0x0,_0x430beb['cancel'](),_0x5e7c85!==null&&clearTimeout(_0x5e7c85),_0x3fb97a!==null&&clearTimeout(_0x3fb97a),delete _0x385681[_0x2bbdf7(0x1b9)][_0x2bbdf7(0x165)],delete _0x385681['dataset'][_0x2bbdf7(0x363)],_0x3fe2f3==null||_0x3fe2f3[_0x2bbdf7(0x34f)](),_0x1932e9[_0x2bbdf7(0x349)](_0x1812c5=>_0x1812c5[_0x2bbdf7(0x35d)]()),_0x19afdd[_0x2bbdf7(0x481)](),_0x3e671b[_0x2bbdf7(0x481)](),_0x385681[_0x2bbdf7(0x375)]();};},[_0x6ace03,_0x1bcc98,_0x72afd5,_0x2079bb,_0x5e6fe2,_0x104a40]),_0x143050(_0x5c81c5(0x402),{'ref':_0x2e93b1,'data-u-comp':_0x5c81c5(0x4ae),'className':'univer-absolute\x20univer-inset-0\x20univer-overflow-hidden'});}function zr({filters:_0xd5ffa8,onRuntimeChange:_0x126ca1,unitId:_0x4b746f,widget:_0x17ac6e}){const _0x487171=_0x410bd1;let _0x51446c=_0x20ec70(_0x1ce417),_0x129cdc=_0x20ec70(_0x4f7627),_0x57afd4=_0x20ec70(_0xf4ca24),_0x579ba5=_0x20ec70(_0xab5a6b),[_0x5d9302,_0x518fe3]=_0x5e5f09(null),[_0x16dede,_0x283e01]=_0x5e5f09(!0x1),[_0x54757d,_0x58d230]=_0x5e5f09(null),_0x552e79=_0x127850('base-dashboard-pivot-chart-'+_0x542898(0x8)),_0x246fdb=_0x51446c[_0x487171(0x211)](_0x4b746f,_0xd3f775[_0x487171(0x420)]),_0x2b01cc=_0x246fdb==null?void 0x0:_0x246fdb[_0x487171(0x31e)]()[_0x487171(0x2ec)][_0x17ac6e[_0x487171(0x266)]],_0x397c8c=_0x2b01cc==null?void 0x0:_0x2b01cc[_0x487171(0x348)][_0x17ac6e[_0x487171(0x326)]],_0x5efe65=Br(_0x397c8c);if(_0x2fd531(()=>{const _0x1424df=_0x487171;if(!_0x5efe65)return;let _0x574822=_0x552e79[_0x1424df(0x179)];return _0x579ba5['acquireChartRuntime'](_0x574822,{'unitId':_0x4b746f,'tableId':_0x17ac6e[_0x1424df(0x266)],'viewId':_0x17ac6e[_0x1424df(0x326)],'filters':[]}),()=>{_0x579ba5['releaseChartRuntime'](_0x4b746f,_0x574822),_0x126ca1==null||_0x126ca1(_0x17ac6e['id'],null);};},[_0x5efe65,_0x126ca1,_0x579ba5,_0x4b746f,_0x17ac6e['id'],_0x17ac6e[_0x487171(0x326)],_0x17ac6e[_0x487171(0x266)]]),_0x2fd531(()=>{const _0x445ce1=_0x487171;if(!Br(_0x397c8c))return;let _0x7dc0d=!0x0,_0x4acd53=_0x17ac6e[_0x445ce1(0x195)]??_0x397c8c['config'][_0x445ce1(0x195)],_0x447fb6={'unitId':_0x4b746f,'tableId':_0x17ac6e[_0x445ce1(0x266)],'viewId':_0x17ac6e[_0x445ce1(0x326)],'filters':[_0x397c8c[_0x445ce1(0x267)]??null,..._0xd5ffa8]};return _0x579ba5[_0x445ce1(0x477)](_0x4b746f,_0x552e79[_0x445ce1(0x179)],_0x447fb6,_0x4acd53)['then'](_0x54acdc=>{const _0x271910=_0x445ce1;if(!_0x7dc0d||!_0x54acdc)return;let _0x451cd6=_0x579ba5['getChartRuntime'](_0x4b746f,_0x552e79[_0x271910(0x179)])??null;_0x518fe3(_0x54acdc),_0x58d230(_0x451cd6),_0x283e01(!0x1),_0x126ca1==null||_0x126ca1(_0x17ac6e['id'],_0x451cd6);})[_0x445ce1(0x28c)](_0x2237ef=>{const _0x3b1c6c=_0x445ce1;_0x57afd4[_0x3b1c6c(0x280)](_0x3b1c6c(0x3c7),_0x2237ef),_0x7dc0d&&(_0x518fe3(null),_0x283e01(!0x0));}),()=>{_0x7dc0d=!0x1;};},[_0xd5ffa8,_0x57afd4,_0x126ca1,_0x579ba5,_0x4b746f,_0x397c8c,_0x17ac6e['chart'],_0x17ac6e['id'],_0x17ac6e[_0x487171(0x326)],_0x17ac6e[_0x487171(0x266)]]),!Br(_0x397c8c))return _0x143050(_0x487171(0x402),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','children':_0x129cdc['t'](_0x487171(0x1f0))});let _0x5b74e2=_0x579ba5[_0x487171(0x242)](_0x4b746f,_0x552e79['current'])===_0x54757d?_0x54757d:null;return _0x5d9302&&_0x5b74e2?_0x143050(Rr,{'isRowDirection':_0x3fb36c((_0x17ac6e[_0x487171(0x195)]??_0x397c8c['config']['chart'])[_0x487171(0x32c)]),'runtime':_0x5b74e2}):_0x143050(_0x487171(0x402),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','children':_0x129cdc['t'](_0x16dede?_0x487171(0x220):_0x487171(0x2f6))});}function Br(_0x59ac9b){const _0x17e755=_0x410bd1;return(_0x59ac9b==null?void 0x0:_0x59ac9b[_0x17e755(0x38c)])===_0x37c4bc[_0x17e755(0x3bf)]&&typeof _0x59ac9b[_0x17e755(0x30a)]==_0x17e755(0x16a)&&_0x59ac9b[_0x17e755(0x30a)]!==null&&_0x17e755(0x382)in _0x59ac9b['config']&&_0x17e755(0x195)in _0x59ac9b['config'];}const Vr={'alignment':_0x410bd1(0x189),'fontSize':0x12,'fontSizeMode':_0x410bd1(0x49d)};function Hr(_0x503611){const _0x5397b5=_0x410bd1;return{...Vr,..._0x503611[_0x5397b5(0x2dc)]};}function Ur(_0x80a46e){const _0x23be3d=_0x410bd1;var _0x5368a9;return((_0x5368a9=_0x80a46e['body'])==null?void 0x0:_0x5368a9['dataStream'][_0x23be3d(0x1dc)](/\r\n$/,'')[_0x23be3d(0x1dc)](/\r/g,'\x0a'))??'';}function Wr(_0x367e65,_0x574332){const _0x1e2f31=_0x410bd1;var _0xc08fb1;let _0x188735=_0x574332['replace'](/\r\n|\r/g,'\x0a')[_0x1e2f31(0x2ad)]('\x0a'),_0x1a973a=_0x188735[_0x1e2f31(0x411)]('\x0d')+'\x0d\x0a',_0x424a22=((_0xc08fb1=_0x367e65[_0x1e2f31(0x2d1)])==null?void 0x0:_0xc08fb1[_0x1e2f31(0x3ec)])??[],_0x7eb81a=new Set(_0x424a22[_0x1e2f31(0x173)](_0x3114ba=>_0x3114ba[_0x1e2f31(0x387)])),_0x460c58=0x0,_0x138884=_0x188735[_0x1e2f31(0x173)]((_0x5aa507,_0x72b143)=>{_0x460c58+=_0x5aa507['length'];let _0x211661={..._0x424a22[_0x72b143]??{'startIndex':_0x460c58,'paragraphId':_0x76d4c9(_0x7eb81a)},'startIndex':_0x460c58};return _0x460c58+=0x1,_0x211661;});return{..._0x367e65,'body':{..._0x367e65[_0x1e2f31(0x2d1)],'dataStream':_0x1a973a,'paragraphs':_0x138884,'textRuns':[]}};}function Gr({widget:_0x5af612}){const _0x59ad69=_0x410bd1;let _0x1a321c=_0x20ec70(_0x4e623a),_0x3500c1=_0x20ec70(_0x4f7627),_0x4aacea=_0x24cacb(()=>_0x1a321c[_0x59ad69(0x1be)],_0x1a321c[_0x59ad69(0x188)](),!0x1,[_0x1a321c]),_0x10beb5=_0x127850(null),_0x54d307=_0x127850(null),_0x434a4b=Hr(_0x5af612),_0x3662f1=_0x434a4b[_0x59ad69(0x32a)]??_0x4aacea['gray'][0x0],_0x2b56b0=_0x434a4b[_0x59ad69(0x2b0)]??_0x4aacea[_0x59ad69(0x20c)][0x3e8],_0x4e6003=Ur(_0x5af612['document']);return _0x2fd531(()=>{const _0x79028f=_0x59ad69;let _0x476036=_0x10beb5[_0x79028f(0x179)],_0x540a3f=_0x54d307[_0x79028f(0x179)];if(!_0x476036||!_0x540a3f)return;let _0x129a3d=()=>{const _0x309446=_0x79028f;if(_0x434a4b[_0x309446(0x1de)]===_0x309446(0x234)||!_0x476036[_0x309446(0x219)]||!_0x476036[_0x309446(0x23b)]){_0x540a3f['style'][_0x309446(0x39b)]=_0x434a4b[_0x309446(0x39b)]+'px';return;}let _0x20f036=0x8,_0x354b74=0x48,_0x571890=_0x20f036;for(;_0x20f036<=_0x354b74;){let _0xc61b8a=Math['floor']((_0x20f036+_0x354b74)/0x2);_0x540a3f[_0x309446(0x454)][_0x309446(0x39b)]=_0xc61b8a+'px',_0x540a3f[_0x309446(0x224)]<=_0x476036[_0x309446(0x219)]&&_0x540a3f[_0x309446(0x296)]<=_0x476036[_0x309446(0x23b)]?(_0x571890=_0xc61b8a,_0x20f036=_0xc61b8a+0x1):_0x354b74=_0xc61b8a-0x1;}_0x540a3f[_0x309446(0x454)][_0x309446(0x39b)]=_0x571890+'px';};if(_0x129a3d(),typeof ResizeObserver>'u')return;let _0x3f0ea0=new ResizeObserver(_0x129a3d);return _0x3f0ea0[_0x79028f(0x1c1)](_0x476036),()=>_0x3f0ea0[_0x79028f(0x34f)]();},[_0x434a4b['fontSize'],_0x434a4b[_0x59ad69(0x1de)],_0x4e6003]),_0x143050(_0x59ad69(0x402),{'data-dashboard-text-widget':_0x5af612['id'],'className':_0x59ad69(0x42e),'style':{'backgroundColor':_0x3662f1,'color':_0x2b56b0},'children':_0x143050(_0x59ad69(0x402),{'ref':_0x10beb5,'data-dashboard-text-content':!0x0,'aria-label':_0x3500c1['t']('bases-dashboard-ui.dashboard.text'),'className':_0x59ad69(0x2ba),'children':_0x143050(_0x59ad69(0x402),{'ref':_0x54d307,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x434a4b[_0x59ad69(0x1de)],'className':_0x59ad69(0x3a8),'style':{'textAlign':_0x434a4b['alignment']},'children':_0x4e6003})})});}function Kr({dashboard:_0x21c56f,editable:_0x43ea5b=!0x0,onSelectWidget:_0x441f49,renderWidget:_0x5046aa,renderWidgetActions:_0x1302bc,selectedWidgetId:_0x224345,widgetLabel:_0x228c88}){const _0x13cfa9=_0x410bd1;return _0x143050(_0x13cfa9(0x402),{'data-dashboard-scroll-container':!0x0,'className':_0xec79e5(_0x13cfa9(0x380),_0x44d47d),'onClick':_0x43ea5b?_0x20c812=>{const _0x53ce77=_0x13cfa9;if(!(_0x20c812['target']instanceof Node)||!_0x20c812[_0x53ce77(0x1ba)][_0x53ce77(0x1a8)](_0x20c812[_0x53ce77(0x2f1)]))return;let _0x399c17=_0x20c812[_0x53ce77(0x2f1)]instanceof Element?_0x20c812[_0x53ce77(0x2f1)]:_0x20c812[_0x53ce77(0x2f1)][_0x53ce77(0x294)];_0x399c17!=null&&_0x399c17[_0x53ce77(0x2be)](_0x53ce77(0x42a))||_0x441f49==null||_0x441f49();}:void 0x0,'children':_0x143050('div',{'data-dashboard-grid':!0x0,'className':_0x13cfa9(0x2ce),'children':_0x21c56f[_0x13cfa9(0x487)][_0x13cfa9(0x173)](_0x1ab37b=>{const _0x23c47a=_0x13cfa9;let _0x5a081f=_0x21c56f[_0x23c47a(0x34d)][_0x1ab37b];if(!_0x5a081f)return null;let _0x398b7a=Math[_0x23c47a(0x3b6)](0xb4,_0x5a081f[_0x23c47a(0x281)]['rowSpan']*_0x365d3b);return _0x391b30(_0x23c47a(0x231),{'data-dashboard-widget':_0x5a081f['id'],'aria-label':_0x5a081f[_0x23c47a(0x1c8)]??_0x228c88(_0x5a081f),'className':_0xec79e5(_0x23c47a(0x29c),_0x5a081f[_0x23c47a(0x38c)]===_0x4e7fff['Image']||_0x5a081f[_0x23c47a(0x38c)]===_0x4e7fff[_0x23c47a(0x2b8)]?_0x23c47a(0x1fa):_0x23c47a(0x35f),_0x43ea5b&&_0x224345===_0x5a081f['id']?_0x23c47a(0x385):'univer-border-gray-200\x20dark:!univer-border-gray-700'),'style':{'minHeight':_0x398b7a,'height':_0x398b7a},'tabIndex':_0x43ea5b?0x0:void 0x0,'onClick':_0x43ea5b?()=>_0x441f49==null?void 0x0:_0x441f49(_0x5a081f['id']):void 0x0,'onFocus':_0x43ea5b?()=>_0x441f49==null?void 0x0:_0x441f49(_0x5a081f['id']):void 0x0,'children':[_0x43ea5b&&_0x143050(_0x23c47a(0x402),{'className':'univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','children':_0x1302bc==null?void 0x0:_0x1302bc(_0x5a081f)}),_0x143050(_0x23c47a(0x402),{'className':_0x23c47a(0x199),'children':_0x5046aa(_0x5a081f)})]},_0x5a081f['id']);})})});}let qr=class extends _0x24782e{constructor(_0x205926){const _0x59987e=_0x410bd1;super(_0x205926),Ir(this,_0x59987e(0x30d),null);}[_0x410bd1(0x3a5)](_0x28fb0f){}};qr=Ar([Y(0x0,_0x1fee36(_0x3b73c7))],qr);function Jr({children:_0x380473}){return _0x143050(_0x3917ea,{'children':_0x380473});}function Yr(_0x1af427){return _0x143050(_0x50c62e,{..._0x1af427});}function Xr(_0x18fa88){return _0x143050(_0x92fe97,{..._0x18fa88});}function Zr(_0x587e75){return _0x143050(_0x3f6018,{..._0x587e75});}var Qr;const X={'axis':{..._0x4d8c62,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0xd824da,'heatmap':_0xa35118,'indicatorLine':_0x10441e,'legend':_0x1b9bc9,'lineAndArea':_0x45d9c7,'pareto':_0x2c4778,'pie':_0x7ff226,'radar':_0x223cbb,'relation':{..._0x12660e,'useValueAsSymbolSize':!0x0},'series':{..._0x223992,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Qr=_0x376ad5[_0x410bd1(0x360)])==null?void 0x0:Qr['rightYAxis'])??!0x1}},'style':_0x419379,'titles':_0x304725,'trendline':_0x201be4,'waterfall':{..._0x38fd81,'useSubtotal':!0x0},'waterfallStyle':_0x37da98,'wordCloud':_0x22d9d9},$r=[_0x2261bb[_0x410bd1(0x1fd)],_0x2261bb[_0x410bd1(0x1fe)],_0x2261bb[_0x410bd1(0x19a)],_0x2261bb['Scatter'],_0x2261bb[_0x410bd1(0x210)],_0x2261bb[_0x410bd1(0x3a6)],_0x2261bb[_0x410bd1(0x1a6)],_0x2261bb[_0x410bd1(0x1c3)],_0x2261bb[_0x410bd1(0x3da)],_0x2261bb[_0x410bd1(0x488)],_0x2261bb[_0x410bd1(0x24a)],_0x2261bb[_0x410bd1(0x216)],_0x2261bb[_0x410bd1(0x379)],_0x2261bb['Gauge'],_0x2261bb[_0x410bd1(0x1fc)]];function ei(_0x3f4878){const _0xfde266=_0x410bd1;let {config:_0x5b13d2,onChange:_0x2b98a5,runtime:_0x246eb9,tableName:_0x4993cd}=_0x3f4878,_0x1b0255=_0x20ec70(qr),_0x8c31b0=_0x20ec70(_0x4f7627),[_0x251f86,_0x51d6ae]=_0x5e5f09(_0x3b422b[_0xfde266(0x30b)]),_0x5a5605=_0x10a2b7(()=>new _0x439c8c(_0x246eb9[_0xfde266(0x37a)],{'commit':_0x5f22e1=>{const _0x2394ed=_0xfde266;var _0x2c5260;let _0x48ebe5=_0x246eb9[_0x2394ed(0x37a)],_0x385d16=_0x59ff45(_0x5f22e1,{'series':(_0x2c5260=_0x48ebe5[_0x2394ed(0x30a)])==null?void 0x0:_0x2c5260[_0x2394ed(0x237)],'currentChartType':_0x48ebe5['chartType'],'currentStyle':_0x48ebe5['style'],'currentContext':_0x48ebe5[_0x2394ed(0x497)],'currentDataAggregation':_0x48ebe5[_0x2394ed(0x225)]});_0x2b98a5({'chart':ti(_0x5b13d2['chart'],_0x385d16)});}}),[_0x5b13d2[_0xfde266(0x195)],_0x2b98a5,_0x246eb9]),_0x105e0a=_0x10a2b7(()=>_0x2190e6(_0x1b8ffc['map'](_0x4c62c8=>({..._0x4c62c8,'label':_0x8c31b0['t'](ai(_0x4c62c8['labelId']))}))),[_0x8c31b0]);return _0x143050(_0x5e1d75,{'chartUIService':_0x1b0255,'hostAdapter':_0x5a5605,'children':_0x391b30(_0xfde266(0x402),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x143050(_0x55df58,{'ariaLabel':_0x8c31b0['t'](_0xfde266(0x2d4)),'className':_0xfde266(0x229),'items':[{'label':_0x8c31b0['t'](_0xfde266(0x3f5)),'panelId':_0xfde266(0x408),'value':_0x3b422b[_0xfde266(0x30b)]},{'label':_0x8c31b0['t'](_0xfde266(0x337)),'panelId':_0xfde266(0x35e),'value':_0x3b422b['Style']}],'value':_0x251f86,'onChange':_0x51d6ae}),_0x251f86===_0x3b422b[_0xfde266(0x30b)]?_0x143050(_0x3a4219,{'id':_0xfde266(0x408),'label':_0x8c31b0['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x391b30('div',{'className':_0xfde266(0x3c3),'children':[_0x143050(_0x29fd74,{'options':_0x105e0a}),_0x143050(_0x5ce85a,{}),_0x143050(_0x468a30,{}),_0x143050(ni,{}),_0x143050(_0x5d6f36,{}),_0x391b30(_0xfde266(0x402),{'children':[_0x143050(_0x41b08d,{'title':_0x8c31b0['t'](_0xfde266(0x1e4))}),_0x143050(_0x56be65,{'disabled':!0x0,'value':_0x4993cd})]}),_0x143050(_0x4e3257,{'orientationControl':_0x143050(_0x11a8c2,{'size':_0xfde266(0x323),'onClick':()=>_0x2b98a5({'chart':{..._0x5b13d2[_0xfde266(0x195)],'orient':_0x5b13d2['chart'][_0xfde266(0x32c)]===_0xfde266(0x3e4)?_0xfde266(0x1e8):_0xfde266(0x3e4)}}),'children':_0x8c31b0['t'](_0xfde266(0x43a))})}),_0x143050(_0x1d97dc,{}),_0x143050(_0x3ae098,{'defaultValues':X[_0xfde266(0x3c9)]}),_0x391b30(_0xfde266(0x402),{'children':[_0x143050(_0x41b08d,{'title':_0x8c31b0['t'](_0xfde266(0x441))}),_0x143050(Yr,{'value':_0x5b13d2['displayMode'],'options':[{'value':_0xfde266(0x23e),'label':_0x8c31b0['t'](_0xfde266(0x254))},{'value':_0xfde266(0x195),'label':_0x8c31b0['t'](_0xfde266(0x365))},{'value':_0xfde266(0x26a),'label':_0x8c31b0['t'](_0xfde266(0x3f9))}],'onChange':_0x532f45=>{const _0x4f684a=_0xfde266;(_0x532f45==='chart-and-table'||_0x532f45==='chart'||_0x532f45===_0x4f684a(0x26a))&&_0x2b98a5({'displayMode':_0x532f45});}})]})]})}):_0x143050(_0x3a4219,{'id':_0xfde266(0x35e),'label':_0x8c31b0['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x143050(ri,{})})]})});}function ti(_0x4836fc,_0xb0aac6){const _0x3817a1=_0x410bd1;return{..._0x4836fc,'type':_0xb0aac6[_0x3817a1(0x2a8)]??_0x4836fc['type'],'style':_0xb0aac6[_0x3817a1(0x454)]??_0x4836fc[_0x3817a1(0x454)],'context':_0xb0aac6[_0x3817a1(0x497)]??_0x4836fc[_0x3817a1(0x497)],'dataAggregation':_0xb0aac6[_0x3817a1(0x225)]??_0x4836fc[_0x3817a1(0x225)]};}function ni(){const _0x27b290=_0x410bd1;let _0x105d68=_0x499edc();return _0x143050(_0x2f928b,{'visible':$r[_0x27b290(0x453)](_0x7138a5=>!_0xbb03e5[_0x27b290(0x16f)](_0x105d68,_0x7138a5))});}function Z(_0x5bf433){const _0xc6632c=_0x410bd1;return _0x391b30(_0x2844d6,{'id':_0x5bf433['id'],'children':[_0x143050(_0x375efc,{'children':_0x5bf433[_0xc6632c(0x19d)]}),_0x143050(_0x46900a,{'children':_0x5bf433[_0xc6632c(0x1d2)]})]});}function ri(){const _0x4a3d18=_0x410bd1;let _0x364dee=_0x20ec70(_0x4f7627),_0x1fa938=_0x499edc(),_0x5c65bc=_0x313117(),[_0x1e4143,_0x3cbaae]=_0x5e5f09(null),_0x2b0485=_0xbb03e5[_0x4a3d18(0x16f)](_0x1fa938,_0x2261bb[_0x4a3d18(0x324)]),_0x2ee12d=_0x1fa938===_0x2261bb[_0x4a3d18(0x1fe)],_0x47acbd=_0x1fa938===_0x2261bb[_0x4a3d18(0x19a)],_0x18f6ed=_0x1fa938===_0x2261bb[_0x4a3d18(0x210)],_0x4c372e=_0xbb03e5[_0x4a3d18(0x16f)](_0x1fa938,_0x2261bb[_0x4a3d18(0x283)]),_0x5db35d=_0x1fa938===_0x2261bb[_0x4a3d18(0x3a6)],_0x29e9b0=_0x1fa938===_0x2261bb['Waterfall'],_0xb9cf65=_0x1fa938===_0x2261bb['Pareto'],_0x3046c1=_0x1fa938===_0x2261bb[_0x4a3d18(0x1c3)],_0x340192=_0xbab818(_0x1fa938,_0x2b72e7[_0x4a3d18(0x357)])&&!_0x4c372e&&!_0xb9cf65,_0x4e4891=ii(_0x1fa938,_0x364dee);return _0x391b30(_0x177a4c,{'value':_0x1e4143,'onChange':_0x3cbaae,'children':[_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x230)],'label':_0x364dee['t'](_0x4a3d18(0x1eb)),'children':_0x143050(_0x5d8e64,{'defaultValues':X[_0x4a3d18(0x454)]})}),_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x45e)],'label':_0x364dee['t'](_0x4a3d18(0x2e8)),'children':_0x143050(_0x364a1b,{'commitMode':_0x4a3d18(0x2ef),'defaultValues':X[_0x4a3d18(0x3db)]})}),_0x143050(_0x533b6c,{'section':_0x4a3d18(0x222)}),_0x340192&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x493)],'label':_0x364dee['t'](_0x4a3d18(0x430)),'children':_0x143050(_0xaadc8a,{'defaultValues':X[_0x4a3d18(0x237)],'NumberFormatField':_0x56a20f})}),_0x29e9b0&&_0x143050(Z,{'id':_0x27e494['WaterfallSeries'],'label':_0x364dee['t'](_0x4a3d18(0x465)),'children':_0x143050(_0x40b896,{'defaultValues':X['waterfallStyle'],'getDefaultBucketName':({seriesName:_0xffc0c9,target:_0x24f531})=>_0x24f531===_0x1a11c1[_0x4a3d18(0x404)]?_0x364dee['t']('bases-dashboard-ui.chart.waterfall.subtotal'):_0xffc0c9?_0xffc0c9+'-('+_0x364dee['t']('bases-dashboard-ui.chart.'+(_0x24f531===_0x1a11c1[_0x4a3d18(0x22d)]?_0x4a3d18(0x2d0):_0x4a3d18(0x2c9)))+')':'','NumberFormatField':_0x56a20f})}),_0xb9cf65&&_0x391b30(_0x13d76c,{'children':[_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x3ca)],'label':_0x364dee['t'](_0x4a3d18(0x495)),'children':_0x143050(_0x4de7d9,{'defaultValues':X['pareto'],'NumberFormatField':_0x56a20f,'showDataPointEditor':!0x0,'target':_0x4a3d18(0x239)})}),_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x2b5)],'label':_0x364dee['t'](_0x4a3d18(0x32d)),'children':_0x143050(_0x4de7d9,{'defaultValues':X[_0x4a3d18(0x47e)],'NumberFormatField':_0x56a20f,'showDataPointEditor':!0x1,'target':'cumulativeLineStyle'})})]}),_0x2b0485&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x1d9)],'label':_0x364dee['t'](_0x4a3d18(0x44c)),'children':_0x143050(_0x4626d9,{'defaultValues':X[_0x4a3d18(0x2cf)],'NumberFormatField':_0x56a20f})}),_0x47acbd&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x19a)],'label':_0x364dee['t'](_0x4a3d18(0x39c)),'children':_0x143050(_0x450802,{'defaultValues':X[_0x4a3d18(0x269)]})}),_0x2ee12d&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x1fe)],'label':_0x364dee['t'](_0x4a3d18(0x157)),'children':_0x143050(_0x5b6a4d,{'defaultValues':X[_0x4a3d18(0x31a)]})}),_0x18f6ed&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x210)],'label':_0x364dee['t']('bases-dashboard-ui.chart.section.funnel'),'children':_0x143050(_0x3515bf,{'defaultValues':X[_0x4a3d18(0x470)],'gapControl':_0x4a3d18(0x2bf)})}),_0x3046c1&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x1c3)],'label':_0x364dee['t']('bases-dashboard-ui.chart.common.heatmap'),'children':_0x143050(_0x26b14a,{'defaultValues':X['heatmap']})}),_0x5db35d&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x3a6)],'label':_0x364dee['t'](_0x4a3d18(0x246)),'children':_0x143050(_0x4bddcd,{'defaultValues':X[_0x4a3d18(0x2b3)]})}),_0x230f4f(_0x1fa938)&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x499)],'label':_0x364dee['t'](_0xbb03e5[_0x4a3d18(0x16f)](_0x1fa938,_0x2261bb[_0x4a3d18(0x23f)])?_0x4a3d18(0x351):'bases-dashboard-ui.chart.chartTypes.line'),'children':_0x143050(_0x4ff136,{'defaultValues':X[_0x4a3d18(0x39d)],'lineStyleControl':_0x4a3d18(0x169)})}),_0xbab818(_0x1fa938,_0x2b72e7['Legend'])&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x2a0)],'label':_0x364dee['t'](_0x4a3d18(0x277)),'children':_0x143050(_0x399526,{'defaultValues':X[_0x4a3d18(0x49c)]})}),_0xbab818(_0x1fa938,_0x2b72e7[_0x4a3d18(0x2e9)])&&_0x391b30(_0x13d76c,{'children':[_0x143050(Z,{'id':_0x27e494['HorizontalAxis'],'label':_0x364dee['t'](_0x4a3d18(0x463)),'children':_0x143050(_0x347442,{'axis':'x','defaultValues':X[_0x4a3d18(0x4af)],'NumberFormatField':_0x56a20f})}),_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x333)],'label':_0x364dee['t'](_0x4a3d18(0x241)),'children':_0x143050(_0x347442,{'axis':'y','defaultValues':X[_0x4a3d18(0x4af)],'NumberFormatField':_0x56a20f})}),_0x143050(_0x533b6c,{'section':'depthAxis'}),_0x5c65bc&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x424)],'label':_0x364dee['t'](_0x4a3d18(0x43c)),'children':_0x143050(_0x347442,{'axis':_0x4a3d18(0x176),'defaultValues':X[_0x4a3d18(0x4af)],'NumberFormatField':_0x56a20f})}),_0x143050(Z,{'id':_0x27e494['GridlinesAndTicks'],'label':_0x364dee['t'](_0x4a3d18(0x2aa)),'children':_0x143050(_0x10f178,{'defaultValues':X[_0x4a3d18(0x4af)]})})]}),_0xbab818(_0x1fa938,_0x2b72e7[_0x4a3d18(0x2d6)])&&_0x143050(Z,{'id':_0x27e494['IndicatorLine'],'label':_0x364dee['t'](_0x4a3d18(0x3b1)),'children':_0x143050(_0x2906d0,{'defaultValues':X[_0x4a3d18(0x3ff)]})}),_0x351f42(_0x1fa938)&&_0x143050(Z,{'id':_0x27e494[_0x4a3d18(0x2e0)],'label':_0x364dee['t']('bases-dashboard-ui.chart.common.trendline'),'children':_0x143050(_0x3ac9fb,{'defaultValues':X[_0x4a3d18(0x40f)]})}),_0x4e4891&&_0x143050(Z,{'id':_0x4e4891['id'],'label':_0x4e4891[_0x4a3d18(0x19d)],'children':_0x143050(_0x3d37b1,{})})]});}function ii(_0x86674,_0x4c8142){const _0x2f7538=_0x410bd1;let _0x4abd4e={[_0x2261bb['Candlestick']]:{'id':_0x27e494[_0x2f7538(0x488)],'localeKey':_0x2f7538(0x41b)},[_0x2261bb['Histogram']]:{'id':_0x27e494[_0x2f7538(0x24a)],'localeKey':_0x2f7538(0x2e4)},[_0x2261bb['Treemap']]:{'id':_0x27e494[_0x2f7538(0x216)],'localeKey':_0x2f7538(0x20f)},[_0x2261bb[_0x2f7538(0x379)]]:{'id':_0x27e494[_0x2f7538(0x379)],'localeKey':_0x2f7538(0x1f5)},[_0x2261bb['Gauge']]:{'id':_0x27e494[_0x2f7538(0x2dd)],'localeKey':_0x2f7538(0x3bb)},[_0x2261bb['Chord']]:{'id':_0x27e494['Chord'],'localeKey':'bases-dashboard-ui.chart.section.chord'}}[_0x86674];return _0x4abd4e?{'id':_0x4abd4e['id'],'label':_0x4c8142['t'](_0x4abd4e[_0x2f7538(0x190)])}:null;}function ai(_0x34bc63){const _0x4bc11a=_0x410bd1;return _0x4bc11a(0x1d1)+_0x34bc63;}function oi({onChange:_0xc7381d,onEditData:_0x4262b4,runtime:_0x362de1,sourceChart:_0x279bba,sourceName:_0x3dfe51,widget:_0xa88144}){const _0x31bca8=_0x410bd1;let _0x2957a7=_0x20ec70(qr),_0x166338=_0x20ec70(_0x4f7627),[_0x348c57,_0x108a46]=_0x5e5f09(_0x3b422b[_0x31bca8(0x30b)]),_0x2307c7=_0xa88144[_0x31bca8(0x195)]??_0x279bba,_0x2a7576=_0x10a2b7(()=>new _0x439c8c(_0x362de1[_0x31bca8(0x37a)],{'commit':_0xc4dd50=>{const _0x4fb4dc=_0x31bca8;var _0x3edf91;let _0x2597b6=_0x362de1['model'],_0x215206=_0x59ff45(_0xc4dd50,{'series':(_0x3edf91=_0x2597b6[_0x4fb4dc(0x30a)])==null?void 0x0:_0x3edf91[_0x4fb4dc(0x237)],'currentChartType':_0x2597b6[_0x4fb4dc(0x2a8)],'currentStyle':_0x2597b6[_0x4fb4dc(0x454)],'currentContext':_0x2597b6['context'],'currentDataAggregation':_0x2597b6[_0x4fb4dc(0x225)]});_0xc7381d({..._0xa88144,'chart':ti(_0x2307c7,_0x215206)})['catch'](()=>void 0x0);}}),[_0x2307c7,_0xc7381d,_0x362de1,_0xa88144]),_0x2511c6=_0x10a2b7(()=>_0x2190e6(_0x1b8ffc[_0x31bca8(0x173)](_0x554369=>({..._0x554369,'label':_0x166338['t'](si(_0x554369[_0x31bca8(0x40d)]))}))),[_0x166338]);return _0x143050(_0x1250c0,{'chartUIService':_0x2957a7,'hostAdapter':_0x2a7576,'children':_0x391b30('div',{'data-dashboard-chart-inspector':!0x0,'className':_0x31bca8(0x3ed),'children':[_0x143050(_0x55df58,{'ariaLabel':_0x166338['t'](_0x31bca8(0x2d4)),'className':_0x31bca8(0x229),'items':[{'label':_0x166338['t']('bases-dashboard-ui.chart.common.setup'),'panelId':'dashboard-chart-setup','value':_0x3b422b[_0x31bca8(0x30b)]},{'label':_0x166338['t'](_0x31bca8(0x337)),'panelId':_0x31bca8(0x16b),'value':_0x3b422b['Style']}],'value':_0x348c57,'onChange':_0x108a46}),_0x348c57===_0x3b422b['Data']?_0x143050(_0x3a4219,{'id':_0x31bca8(0x2ab),'label':_0x166338['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x391b30(_0x31bca8(0x402),{'className':_0x31bca8(0x3c3),'children':[_0x143050(_0x29fd74,{'options':_0x2511c6}),_0x143050(_0x5ce85a,{}),_0x143050(_0x468a30,{}),_0x143050(ni,{}),_0x143050(_0x5d6f36,{}),_0x391b30(_0x31bca8(0x402),{'children':[_0x143050(_0x41b08d,{'title':_0x166338['t'](_0x31bca8(0x49a))}),_0x143050(_0x56be65,{'disabled':!0x0,'value':_0x3dfe51}),_0x143050(_0x11a8c2,{'className':_0x31bca8(0x228),'onClick':_0x4262b4,'children':_0x166338['t']('bases-dashboard-ui.dashboardInspector.editData')})]})]})}):_0x143050(_0x3a4219,{'id':_0x31bca8(0x16b),'label':_0x166338['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x143050(ri,{})})]})});}function si(_0x46f481){const _0x3e1e9f=_0x410bd1;return _0x3e1e9f(0x1d1)+_0x46f481;}const ci=[_0x410bd1(0x473),_0x410bd1(0x1c4),_0x410bd1(0x366),_0x410bd1(0x1c2),'grouped',_0x410bd1(0x2b1)];function li({base:_0xd55fe1,onChange:_0x45662c,onSelectBackgroundImage:_0x4459bb,widget:_0x2b836c}){const _0xa11328=_0x410bd1;var _0x373bdd;let _0x44e9f2=_0x20ec70(_0x4f7627),_0x3cafbd=_0x20ec70(_0x4e623a),_0x4635ed=_0x24cacb(()=>_0x3cafbd['currentTheme$'],_0x3cafbd['getCurrentTheme'](),!0x1,[_0x3cafbd]),_0x1f3636=_0x24cacb(()=>_0x3cafbd[_0xa11328(0x343)],_0x3cafbd[_0xa11328(0x257)],!0x1,[_0x3cafbd]),[_0x59f599,_0x14c51c]=_0x5e5f09(_0xa11328(0x2a6)),[_0x194ede,_0x39888f]=_0x5e5f09(!0x1),_0x4fe4c6=Cr(_0x2b836c),_0x3c338c=_0xd55fe1['getSnapshot']()[_0xa11328(0x2ec)][_0x2b836c[_0xa11328(0x266)]],_0xae1fd3=_0x3c338c==null?void 0x0:_0x3c338c['viewOrder'][_0xa11328(0x2da)](_0x65d13d=>_0x3c338c['views'][_0x65d13d]),_0x5f5769=_0xae1fd3?_0x3c338c==null?void 0x0:_0x3c338c[_0xa11328(0x348)][_0xae1fd3]:void 0x0,_0x885413=_0x3c338c&&_0x5f5769?_0x31f17a(_0xd55fe1[_0xa11328(0x31e)](),_0x3c338c,_0x5f5769)[_0xa11328(0x173)](_0x41d01f=>({..._0x41d01f,'current':!0x1})):[],_0x2da1f5=((_0x373bdd=_0x2b836c[_0xa11328(0x3a0)][_0xa11328(0x213)])==null?void 0x0:_0x373bdd[_0xa11328(0x341)])??'',_0x53a142=_0x4a2e2d=>_0x45662c(wr(_0x2b836c,_0x4a2e2d))[_0xa11328(0x28c)](()=>void 0x0),_0x47ab3e=_0x44ace3=>_0x45662c({..._0x2b836c,'description':_0x44ace3})[_0xa11328(0x28c)](()=>void 0x0);return _0x391b30(_0xa11328(0x402),{'data-dashboard-formula-inspector':!0x0,'className':_0xa11328(0x3ed),'children':[_0x143050(_0x5c4858,{'className':_0xa11328(0x306),'items':[{'value':_0xa11328(0x2a6),'label':_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.data')},{'value':'style','label':_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.style')}],'value':_0x59f599,'onChange':_0x14c51c}),_0x143050(_0xa11328(0x402),{'className':_0xa11328(0x23c),'children':_0x59f599===_0xa11328(0x2a6)?_0x391b30(_0xa11328(0x402),{'className':_0xa11328(0x3dc),'children':[_0x143050(ui,{'label':_0x44e9f2['t'](_0xa11328(0x297)),'children':_0x143050(_0x56be65,{'value':_0x2b836c[_0xa11328(0x240)]??_0x2b836c[_0xa11328(0x1c8)]??'','onChange':_0x47ab3e,'onBlur':_0x38385b=>_0x47ab3e(_0x38385b[_0xa11328(0x2f1)][_0xa11328(0x46f)])})}),_0x143050(ui,{'label':_0x44e9f2['t'](_0xa11328(0x49a)),'children':_0x143050(_0x56be65,{'disabled':!0x0,'value':(_0x3c338c==null?void 0x0:_0x3c338c[_0xa11328(0x1f6)])??_0x44e9f2['t'](_0xa11328(0x1f0))})}),_0x391b30(ui,{'label':_0x44e9f2['t'](_0xa11328(0x48b)),'children':[_0x143050(_0x56be65,{'disabled':!0x0,'value':_0x5451bf(_0x2da1f5,_0x885413)}),_0x143050(_0x11a8c2,{'className':_0xa11328(0x228),'onClick':()=>_0x39888f(!0x0),'children':_0x44e9f2['t'](_0xa11328(0x3e5))})]})]}):_0x391b30(_0xa11328(0x402),{'className':_0xa11328(0x3dc),'children':[_0x143050(_0x535011,{'emptyLabel':_0x44e9f2['t'](_0xa11328(0x25a)),'label':_0x44e9f2['t'](_0xa11328(0x25a)),'pickerFallbackValue':_0x1f3636?_0x4635ed[_0xa11328(0x20c)][0x384]:_0x4635ed[_0xa11328(0x20c)][0x0],'resetLabel':_0x44e9f2['t'](_0xa11328(0x17d)),'value':_0x4fe4c6['backgroundColor']??null,'onChange':_0x4e6f96=>_0x53a142({'backgroundColor':_0x4e6f96??void 0x0})}),_0x391b30(ui,{'label':_0x44e9f2['t'](_0xa11328(0x2c5)),'children':[_0x391b30(_0xa11328(0x402),{'className':_0xa11328(0x279),'children':[_0x391b30(_0x11a8c2,{'className':_0xa11328(0x27e),'onClick':()=>{const _0x584fdf=_0xa11328;_0x4459bb()[_0x584fdf(0x3c4)](_0x29ef5b=>{const _0x1387ee=_0x584fdf;if(_0x29ef5b){var _0x54b770;return _0x53a142({'backgroundImage':{..._0x29ef5b,'fit':((_0x54b770=_0x4fe4c6[_0x1387ee(0x2f8)])==null?void 0x0:_0x54b770[_0x1387ee(0x451)])??_0x1387ee(0x409)}});}})[_0x584fdf(0x28c)](()=>void 0x0);},'children':[_0x143050(_0x82e3c7,{}),_0x4fe4c6[_0xa11328(0x2f8)]?_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.replaceImage'):_0x44e9f2['t'](_0xa11328(0x1bc))]}),_0x4fe4c6[_0xa11328(0x2f8)]&&_0x143050(_0x11a8c2,{'aria-label':_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'onClick':()=>_0x53a142({'backgroundImage':void 0x0}),'children':_0x143050(_0x500a22,{})})]}),_0x4fe4c6['backgroundImage']&&_0x143050(_0x5c4858,{'className':_0xa11328(0x398),'items':[{'value':_0xa11328(0x409),'label':_0x44e9f2['t'](_0xa11328(0x336))},{'value':_0xa11328(0x415),'label':_0x44e9f2['t'](_0xa11328(0x31f))}],'value':_0x4fe4c6['backgroundImage']['fit'],'onChange':_0x129c84=>_0x53a142({'backgroundImage':_0x4fe4c6[_0xa11328(0x2f8)]?{..._0x4fe4c6['backgroundImage'],'fit':_0x129c84}:void 0x0})})]}),_0x143050(_0x535011,{'emptyLabel':_0x44e9f2['t'](_0xa11328(0x437)),'label':_0x44e9f2['t'](_0xa11328(0x437)),'pickerFallbackValue':_0x1f3636?_0x4635ed['gray'][0x32]:_0x4635ed[_0xa11328(0x20c)][0x3e8],'resetLabel':_0x44e9f2['t'](_0xa11328(0x17d)),'value':_0x4fe4c6[_0xa11328(0x2b0)]??null,'onChange':_0x1c8990=>_0x53a142({'textColor':_0x1c8990??void 0x0})}),_0x143050(ui,{'label':_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x143050(_0x5c4858,{'items':[{'value':_0xa11328(0x189),'label':_0x44e9f2['t'](_0xa11328(0x4ad))},{'value':_0xa11328(0x1d3),'label':_0x44e9f2['t'](_0xa11328(0x2d2))},{'value':_0xa11328(0x483),'label':_0x44e9f2['t'](_0xa11328(0x3b7))}],'value':_0x4fe4c6[_0xa11328(0x1c7)],'onChange':_0x443c5f=>_0x53a142({'alignment':_0x443c5f})})}),_0x391b30(ui,{'label':_0x44e9f2['t'](_0xa11328(0x207)),'children':[_0x143050(_0x5c4858,{'items':[{'value':'auto','label':_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':_0xa11328(0x234),'label':_0x44e9f2['t'](_0xa11328(0x384))}],'value':_0x4fe4c6[_0xa11328(0x1de)],'onChange':_0x5ad7b4=>_0x53a142({'fontSizeMode':_0x5ad7b4})}),_0x4fe4c6[_0xa11328(0x1de)]==='custom'&&_0x143050(_0x137e64,{'className':'univer-mt-2','min':0xc,'max':0x78,'value':_0x4fe4c6[_0xa11328(0x39b)],'onChange':_0x4897ce=>_0x53a142({'fontSize':_0x4897ce??0x28,'fontSizeMode':'custom'})})]}),_0x143050(ui,{'label':_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.numberFormat'),'children':_0x143050(Yr,{'value':_0x4fe4c6['numberFormat'],'options':[{'value':_0xa11328(0x473),'label':_0x44e9f2['t'](_0xa11328(0x16e))},{'value':'number','label':_0x44e9f2['t'](_0xa11328(0x327))},{'value':_0xa11328(0x366),'label':_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.percent')},{'value':_0xa11328(0x1c2),'label':_0x44e9f2['t'](_0xa11328(0x15a))},{'value':_0xa11328(0x166),'label':_0x44e9f2['t'](_0xa11328(0x2f7))},{'value':_0xa11328(0x2b1),'label':_0x44e9f2['t']('bases-dashboard-ui.dashboardInspector.compact')}],'onChange':_0x11fc6f=>{const _0xae7364=_0xa11328;let _0x5c1116=ci[_0xae7364(0x2da)](_0x1183e7=>_0x1183e7===_0x11fc6f);_0x5c1116&&_0x53a142({'numberFormat':_0x5c1116});}})}),_0x4fe4c6[_0xa11328(0x34e)]==='currency'&&_0x143050(ui,{'label':_0x44e9f2['t'](_0xa11328(0x458)),'children':_0x143050(_0x56be65,{'value':_0x4fe4c6['currency'],'onChange':_0x4df35c=>_0x53a142({'currency':_0x4df35c['slice'](0x0,0x3)[_0xa11328(0x1ee)]()})})}),_0x4fe4c6['numberFormat']!==_0xa11328(0x473)&&_0x143050(ui,{'label':_0x44e9f2['t'](_0xa11328(0x447)),'children':_0x143050(_0x137e64,{'min':0x0,'max':0x8,'value':_0x4fe4c6[_0xa11328(0x36d)],'onChange':_0x61050a=>_0x53a142({'decimalPlaces':_0x61050a??0x0})})})]})}),_0x194ede&&_0x143050(Zr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x143050(_0x4e5057,{'tables':_0x885413,'formula':_0x5451bf(_0x2da1f5,_0x885413),'onCancel':()=>_0x39888f(!0x1),'onSave':_0x48719e=>{const _0x14d594=_0xa11328;let _0x3f63d7=_0x2b836c['shapeData'][_0x14d594(0x213)]??{'formula':''};return _0x45662c({..._0x2b836c,'shapeData':{..._0x2b836c['shapeData'],'formulaBinding':{..._0x3f63d7,'formula':_0x57ee91(_0x48719e,_0x885413)}}})[_0x14d594(0x3c4)](()=>_0x39888f(!0x1))['catch'](()=>void 0x0);}})})]});}function ui({children:_0x25cfcf,label:_0x327ad1}){const _0x1a9c1b=_0x410bd1;return _0x391b30('div',{'role':_0x1a9c1b(0x3af),'aria-label':_0x327ad1,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x143050(_0x1a9c1b(0x378),{'children':_0x327ad1}),_0x25cfcf]});}function di({disabled:_0x278b36,fields:_0x539017,filter:_0x43cc2c,onChange:_0x35e246}){const _0x5d3cb2=_0x410bd1;let _0x4611b5=_0x20ec70(_0x14a063)['rootContainerElement']??null,[_0x3f0b1b,_0x1cbfa4]=_0x5e5f09(null),_0xb0a70c=_0x20ec70(_0x4f7627),_0x3243b6=(_0x43cc2c==null?void 0x0:_0x43cc2c['conditions'])??[];if(!_0x3243b6[_0x5d3cb2(0x38b)])return _0x391b30(_0x5d3cb2(0x402),{'className':_0x5d3cb2(0x435),'children':[_0x143050(_0x90a2b7,{'className':'univer-mx-auto\x20univer-size-6'}),_0x143050('span',{'className':'univer-text-sm','children':_0xb0a70c['t'](_0x5d3cb2(0x397))})]});let _0x266460=_0x3f0b1b==null?void 0x0:_0x3243b6[_0x3f0b1b],_0x5d48d6=_0x539017[_0x5d3cb2(0x2da)](_0x449bb2=>_0x449bb2['id']===(_0x266460==null?void 0x0:_0x266460[_0x5d3cb2(0x1b7)]));return _0x391b30(_0x5d3cb2(0x402),{'className':_0x5d3cb2(0x3a1),'children':[_0x3243b6[_0x5d3cb2(0x173)]((_0x9605de,_0x3849da)=>{const _0x1602e4=_0x5d3cb2;var _0x2c954e;return _0x391b30(_0x11a8c2,{'disabled':_0x278b36,'onClick':()=>_0x1cbfa4(_0x3849da),'children':[_0x143050(_0x1602e4(0x378),{'children':((_0x2c954e=_0x539017[_0x1602e4(0x2da)](_0x638f13=>_0x638f13['id']===_0x9605de[_0x1602e4(0x1b7)]))==null?void 0x0:_0x2c954e['name'])??_0x9605de[_0x1602e4(0x1b7)]}),_0x143050('span',{'className':_0x1602e4(0x2d9),'children':String(_0x9605de[_0x1602e4(0x3e0)]??'')})]},_0x9605de[_0x1602e4(0x1b7)]+'-'+_0x3849da);}),_0x5d48d6&&_0x266460&&_0x3f0b1b!=null&&_0x4611b5&&_0x35f612(_0x143050(_0x4ebe70,{'field':_0x5d48d6,'value':_0x266460['operand'],'onClose':()=>_0x1cbfa4(null),'onSave':_0x48135e=>{const _0x1126e6=_0x5d3cb2;_0x35e246({'conjunction':(_0x43cc2c==null?void 0x0:_0x43cc2c[_0x1126e6(0x45a)])??_0x3c7c2d[_0x1126e6(0x3d7)],'conditions':_0x3243b6[_0x1126e6(0x173)]((_0x44cd15,_0x3bd204)=>_0x3bd204===_0x3f0b1b?{..._0x44cd15,'operand':_0x48135e}:_0x44cd15)}),_0x1cbfa4(null);}}),_0x4611b5)]});}function fi({fields:_0x33b07d,filter:_0x472ead,onChange:_0x478ecf,onClear:_0x4b99e7}){const _0x2e5275=_0x410bd1;let _0x578e84=_0x20ec70(_0x4f7627);return _0x391b30(_0x2e5275(0x402),{'children':[_0x143050(_0x49b72d,{'fields':_0x33b07d,'value':_0x472ead??{'conjunction':_0x3c7c2d['AND'],'conditions':[]},'onChange':_0x478ecf}),_0x143050(_0x11a8c2,{'onClick':_0x4b99e7,'children':_0x578e84['t'](_0x2e5275(0x17d))})]});}function pi({base:_0x368a3f,chartRuntime:_0x1c7994,onChange:_0x2b0086,onClose:_0x61a86,onSelectBackgroundImage:_0x35e847,onSelectImage:_0x387ebc,unitId:_0x1f9195,widget:_0x4d8a80}){const _0x2b3d62=_0x410bd1;let _0x1415ec=_0x20ec70(_0x668d8f),_0x191dde=_0x20ec70(_0x4f7627),_0x2fde47=_0x368a3f['getSnapshot'](),_0x29c2a6='tableId'in _0x4d8a80?_0x2fde47[_0x2b3d62(0x2ec)][_0x4d8a80[_0x2b3d62(0x266)]]:void 0x0,_0x3344b6=_0x4d8a80[_0x2b3d62(0x38c)]===_0x4e7fff[_0x2b3d62(0x49f)]?_0x29c2a6==null?void 0x0:_0x29c2a6[_0x2b3d62(0x348)][_0x4d8a80[_0x2b3d62(0x326)]]:void 0x0,_0x3f72f0=_0x191dde['t'](bi(_0x4d8a80)),_0x200f8f=_0x391b30(_0x2b3d62(0x208),{'data-dashboard-inspector':!0x0,'className':_0x2b3d62(0x329),'children':[_0x4d8a80[_0x2b3d62(0x38c)]===_0x4e7fff[_0x2b3d62(0x49f)]&&(yi(_0x3344b6)&&_0x1c7994?_0x143050(oi,{'runtime':_0x1c7994,'sourceChart':_0x3344b6[_0x2b3d62(0x30a)][_0x2b3d62(0x195)],'sourceName':((_0x29c2a6==null?void 0x0:_0x29c2a6[_0x2b3d62(0x1f6)])??'')+_0x2b3d62(0x1d4)+_0x3344b6['name'],'widget':_0x4d8a80,'onChange':_0x2b0086,'onEditData':()=>{const _0x292ec2=_0x2b3d62;_0x1415ec['executeCommand'](_0x2fe630['id'],{'unitId':_0x1f9195,'tableId':_0x4d8a80[_0x292ec2(0x266)],'viewId':_0x4d8a80[_0x292ec2(0x326)]})[_0x292ec2(0x28c)](()=>void 0x0);}}):_0x143050(_i,{'message':yi(_0x3344b6)?_0x191dde['t'](_0x2b3d62(0x2fb)):_0x191dde['t'](_0x2b3d62(0x1f0))})),_0x4d8a80[_0x2b3d62(0x38c)]===_0x4e7fff[_0x2b3d62(0x2b8)]&&_0x143050(li,{'base':_0x368a3f,'widget':_0x4d8a80,'onChange':_0x2b0086,'onSelectBackgroundImage':_0x35e847}),_0x4d8a80[_0x2b3d62(0x38c)]===_0x4e7fff['TableFilter']&&_0x143050(hi,{'base':_0x368a3f,'onChange':_0x2b0086,'widget':_0x4d8a80}),_0x4d8a80[_0x2b3d62(0x38c)]===_0x4e7fff['Text']&&_0x143050(gi,{'onChange':_0x2b0086,'widget':_0x4d8a80}),_0x4d8a80[_0x2b3d62(0x38c)]===_0x4e7fff[_0x2b3d62(0x419)]&&_0x143050(mi,{'onChange':_0x2b0086,'onSelectImage':_0x387ebc,'widget':_0x4d8a80})]});return _0x143050(_0x2e2cb1,{'title':_0x3f72f0,'onClose':_0x61a86,'children':_0x200f8f});}function mi({onChange:_0x878739,onSelectImage:_0x1dc8c5,widget:_0x539344}){const _0x562e23=_0x410bd1;let _0x1b4291=_0x20ec70(_0x4f7627);return _0x391b30('div',{'className':'univer-grid\x20univer-gap-4\x20univer-p-4','children':[_0x391b30(_0x11a8c2,{'className':_0x562e23(0x160),'onClick':()=>_0x1dc8c5()[_0x562e23(0x3c4)](_0x432c88=>_0x432c88&&_0x878739({..._0x539344,'source':_0x432c88[_0x562e23(0x2d8)],'sourceType':_0x432c88['sourceType'],'alt':_0x432c88[_0x562e23(0x1f6)]}))[_0x562e23(0x28c)](()=>void 0x0),'children':[_0x143050(_0x82e3c7,{}),_0x1b4291['t']('bases-dashboard-ui.dashboardInspector.replaceImage')]}),_0x391b30(_0x562e23(0x19d),{'className':_0x562e23(0x3be),'children':[_0x143050(_0x562e23(0x378),{'children':_0x1b4291['t'](_0x562e23(0x2c5))}),_0x143050(_0x5c4858,{'items':[{'value':_0x562e23(0x409),'label':_0x1b4291['t'](_0x562e23(0x336))},{'value':_0x562e23(0x30c),'label':_0x1b4291['t'](_0x562e23(0x308))},{'value':_0x562e23(0x446),'label':_0x1b4291['t'](_0x562e23(0x22b))}],'value':_0x539344[_0x562e23(0x201)]??_0x562e23(0x409),'onChange':_0x2a8c9e=>_0x878739({..._0x539344,'displayMode':_0x2a8c9e})[_0x562e23(0x28c)](()=>void 0x0)})]})]});}function hi({base:_0x352009,onChange:_0x3e75bd,widget:_0xb3b3e1}){const _0x49f287=_0x410bd1;let _0x28314a=_0x352009['getSnapshot']()[_0x49f287(0x2ec)][_0xb3b3e1[_0x49f287(0x266)]],_0x519a39=_0x28314a==null?void 0x0:_0x28314a[_0x49f287(0x30e)]['find'](_0x411cea=>_0x28314a[_0x49f287(0x348)][_0x411cea]),_0x554640=_0x519a39?_0x28314a==null?void 0x0:_0x28314a[_0x49f287(0x348)][_0x519a39]:void 0x0,_0x3bc4d8=_0x28314a&&_0x554640?_0x4eb67b(_0x28314a,_0x554640):[];return _0x143050(fi,{'fields':_0x3bc4d8,'filter':_0xb3b3e1['filter'],'onChange':_0xaca645=>_0x3e75bd({..._0xb3b3e1,'filter':_0xaca645})[_0x49f287(0x28c)](()=>void 0x0),'onClear':()=>_0x3e75bd({..._0xb3b3e1,'filter':null})['catch'](()=>void 0x0)});}function gi({onChange:_0x2979fd,widget:_0x4865a6}){const _0x295cbb=_0x410bd1;let _0x436472=_0x20ec70(_0x4f7627),_0x42189f=_0x20ec70(_0x4e623a),_0xaa6242=_0x24cacb(()=>_0x42189f[_0x295cbb(0x1be)],_0x42189f['getCurrentTheme'](),!0x1,[_0x42189f]),_0x3c405f=Hr(_0x4865a6),_0x45c6bd=_0x175a65=>_0x2979fd({..._0x4865a6,'appearance':{..._0x3c405f,..._0x175a65}})[_0x295cbb(0x28c)](()=>void 0x0);return _0x391b30('div',{'className':_0x295cbb(0x2f3),'children':[_0x143050(_0x2d4d6c,{'className':'univer-max-h-40\x20univer-text-base','defaultValue':Ur(_0x4865a6[_0x295cbb(0x40b)]),'rows':0x8,'onBlur':_0x156b7b=>_0x2979fd({..._0x4865a6,'document':Wr(_0x4865a6[_0x295cbb(0x40b)],_0x156b7b['target'][_0x295cbb(0x46f)])})[_0x295cbb(0x28c)](()=>void 0x0)}),_0x143050(_0x535011,{'emptyLabel':_0x436472['t'](_0x295cbb(0x25a)),'label':_0x436472['t'](_0x295cbb(0x25a)),'pickerFallbackValue':_0xaa6242[_0x295cbb(0x20c)][0x0],'resetLabel':_0x436472['t'](_0x295cbb(0x17d)),'value':_0x3c405f[_0x295cbb(0x32a)]??null,'onChange':_0x38c150=>_0x45c6bd({'backgroundColor':_0x38c150??void 0x0})}),_0x143050(_0x535011,{'emptyLabel':_0x436472['t'](_0x295cbb(0x437)),'label':_0x436472['t'](_0x295cbb(0x437)),'pickerFallbackValue':_0xaa6242[_0x295cbb(0x20c)][0x3e8],'resetLabel':_0x436472['t'](_0x295cbb(0x17d)),'value':_0x3c405f[_0x295cbb(0x2b0)]??null,'onChange':_0x5cce04=>_0x45c6bd({'textColor':_0x5cce04??void 0x0})}),_0x143050(vi,{'label':_0x436472['t'](_0x295cbb(0x42d)),'children':_0x143050(_0x5c4858,{'items':[{'value':_0x295cbb(0x189),'label':_0x436472['t'](_0x295cbb(0x4ad))},{'value':_0x295cbb(0x1d3),'label':_0x436472['t'](_0x295cbb(0x2d2))},{'value':_0x295cbb(0x483),'label':_0x436472['t'](_0x295cbb(0x3b7))}],'value':_0x3c405f['alignment'],'onChange':_0x415a12=>_0x45c6bd({'alignment':_0x415a12})})}),_0x391b30(vi,{'label':_0x436472['t'](_0x295cbb(0x207)),'children':[_0x143050(_0x5c4858,{'items':[{'value':'auto','label':_0x436472['t'](_0x295cbb(0x28b))},{'value':_0x295cbb(0x234),'label':_0x436472['t'](_0x295cbb(0x384))}],'value':_0x3c405f['fontSizeMode'],'onChange':_0x1e5edd=>_0x45c6bd({'fontSizeMode':_0x1e5edd})}),_0x3c405f[_0x295cbb(0x1de)]===_0x295cbb(0x234)&&_0x143050(_0x137e64,{'className':_0x295cbb(0x398),'min':0xa,'max':0x78,'value':_0x3c405f[_0x295cbb(0x39b)],'onChange':_0x29b527=>_0x45c6bd({'fontSize':_0x29b527??0x12,'fontSizeMode':_0x295cbb(0x234)})})]})]});}function _i({message:_0x8d8c56}){return _0x143050('div',{'className':'univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','children':_0x8d8c56});}function vi({children:_0x42e1fb,label:_0x4ca69c}){const _0x246016=_0x410bd1;return _0x391b30('div',{'role':_0x246016(0x3af),'aria-':!0x0,'className':_0x246016(0x3be),'children':[_0x143050(_0x246016(0x378),{'children':_0x4ca69c}),_0x42e1fb]});}function yi(_0x39b80f){const _0x19b9d4=_0x410bd1;return(_0x39b80f==null?void 0x0:_0x39b80f[_0x19b9d4(0x38c)])===_0x37c4bc[_0x19b9d4(0x3bf)]&&typeof _0x39b80f['config']==_0x19b9d4(0x16a)&&_0x39b80f[_0x19b9d4(0x30a)]!==null&&_0x19b9d4(0x382)in _0x39b80f[_0x19b9d4(0x30a)]&&_0x19b9d4(0x195)in _0x39b80f['config'];}function bi(_0xbdac7a){const _0x5cd7d4=_0x410bd1;switch(_0xbdac7a[_0x5cd7d4(0x38c)]){case _0x4e7fff['PivotChart']:return'bases-dashboard-ui.dashboard.pivotChart';case _0x4e7fff[_0x5cd7d4(0x193)]:return _0x5cd7d4(0x397);case _0x4e7fff[_0x5cd7d4(0x4b4)]:return'bases-dashboard-ui.dashboard.text';case _0x4e7fff[_0x5cd7d4(0x419)]:return'bases-dashboard-ui.dashboard.image';case _0x4e7fff['FormulaShape']:return _0x5cd7d4(0x17f);}}function xi({onDelete:_0x59053c,onEdit:_0x7e1a0c,onMoveUp:_0x390706,onMoveDown:_0x4f2e62}){const _0x529168=_0x410bd1;let [_0x5db462,_0x12ec85]=_0x5e5f09(!0x1),_0x4fc83a=_0x20ec70(_0x4f7627),_0x2494b7=_0x4fc83a['t'](_0x529168(0x27d)),_0x48ba4a=_0x4fc83a['t'](_0x529168(0x3b3)),_0x522429=_0x4fc83a['t'](_0x529168(0x427)),_0x2e46cb=[{'type':'item','children':_0x391b30('span',{'className':_0x529168(0x203),'children':[_0x143050(_0x5711a9,{'className':_0x529168(0x27a),'aria-hidden':'true'}),_0x143050(_0x529168(0x378),{'children':_0x2494b7})]}),'onSelect':_0x7e1a0c},..._0x390706?[{'type':_0x529168(0x485),'children':_0x391b30(_0x529168(0x378),{'className':_0x529168(0x203),'children':[_0x143050(_0x40c1d9,{'className':'univer-size-4','aria-hidden':_0x529168(0x2c4)}),_0x143050(_0x529168(0x378),{'children':_0x4fc83a['t'](_0x529168(0x3e1))})]}),'onSelect':_0x390706}]:[],..._0x4f2e62?[{'type':_0x529168(0x485),'children':_0x391b30('span',{'className':_0x529168(0x203),'children':[_0x143050(_0x5584ab,{'className':_0x529168(0x27a),'aria-hidden':'true'}),_0x143050(_0x529168(0x378),{'children':_0x4fc83a['t'](_0x529168(0x15b))})]}),'onSelect':_0x4f2e62}]:[],{'type':'separator'},{'type':_0x529168(0x485),'variant':_0x529168(0x373),'children':_0x391b30(_0x529168(0x378),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x143050(_0x500a22,{'className':'univer-size-4','aria-hidden':_0x529168(0x2c4)}),_0x143050(_0x529168(0x378),{'children':_0x48ba4a})]}),'onSelect':_0x59053c}];return _0x143050(_0x566dc7,{'open':_0x5db462,'onOpenChange':_0x12ec85,'align':'end','sideOffset':0x4,'items':_0x2e46cb[_0x529168(0x173)](_0xff2913=>({..._0xff2913,'className':_0xff2913[_0x529168(0x38c)]===_0x529168(0x485)?'univer-min-h-11\x20univer-px-3\x20univer-text-base':void 0x0})),'children':_0x143050(_0x11a8c2,{'type':_0x529168(0x44d),'size':_0x529168(0x323),'variant':_0x529168(0x3f3),'onPointerDown':_0x2c1bf2=>_0x2c1bf2['preventDefault'](),'onClick':()=>_0x12ec85(_0x446e9e=>!_0x446e9e),'title':_0x522429,'aria-label':_0x522429,'className':_0x529168(0x23d),'children':_0x143050(_0x2fabd1,{'className':_0x529168(0x27a),'aria-hidden':_0x529168(0x2c4)})})});}function Si({dashboardId:_0x3c9db0,presentation:_0x28e8a0=!0x1,unitId:_0x70ff9c}){const _0x14779e=_0x410bd1;let _0x12c1c7=_0x20ec70(_0x4c3614),_0x306026=_0x20ec70(_0x46cb3e);_0x24cacb(_0x306026[_0x14779e(0x410)],0x0);let _0x55fd46=_0x20ec70(_0x668d8f),_0x240704=_0x20ec70(_0x458fcc),_0x2d78ec=_0x20ec70(_0x1561a2),_0x3f5a66=_0x20ec70(_0x1ce417),_0x44592e=_0x20ec70(_0x4f7627),_0x234134=_0x20ec70(_0x3a9dda),_0x52d83e=_0x20ec70(_0x3de274),[_0x204cd4,_0x1a6769]=_0x5e5f09(!0x1),[_0x2716b7,_0x1e8714]=_0x5e5f09(),[_0x525108,_0x8c0a69]=_0x5e5f09(!0x1),[_0x4e027c,_0x2b346e]=_0x5e5f09(()=>new Map()),_0x5ef071=_0x31eec3((_0x332a25,_0x22e79b)=>{_0x2b346e(_0x428d17=>{const _0x8d3004=_0x10b1;let _0x50b172=new Map(_0x428d17);return _0x22e79b?_0x50b172[_0x8d3004(0x338)](_0x332a25,_0x22e79b):_0x50b172['delete'](_0x332a25),_0x50b172;});},[]),_0x1e9ec7=_0x24cacb(()=>_0x234134['change$'][_0x14779e(0x40a)](_0x53720a(()=>_0x234134['getDashboard'](_0x70ff9c,_0x3c9db0))),_0x234134[_0x14779e(0x36f)](_0x70ff9c,_0x3c9db0),!0x1,[_0x3c9db0,_0x234134,_0x70ff9c]),_0x10833e=_0x3f5a66[_0x14779e(0x211)](_0x70ff9c,_0xd3f775['UNIVER_BASE']),_0x2f65ed=_0x24cacb(()=>_0x52d83e['undoRedoStatus$'],{'undos':0x0,'redos':0x0},!0x1,[_0x52d83e]),_0x43f231=vr(_0x70ff9c,_0x3c9db0);if(_0x2fd531(()=>{const _0x5a004d=_0x14779e;_0x3f5a66[_0x5a004d(0x3d1)](_0x70ff9c),_0x3f5a66[_0x5a004d(0x46a)](_0x70ff9c);},[_0x3f5a66,_0x70ff9c]),!_0x1e9ec7||!_0x10833e)return null;let _0x357766={'unitId':_0x70ff9c,'objectId':_0x264ef9(_0x3c9db0),'objectType':_0x2dc28e['BaseDashboard']},_0x126349=(_0x368916,_0x5f4f6e)=>{const _0x26653a=_0x14779e;let _0x1b3e1c=[..._0x1e9ec7[_0x26653a(0x487)]],_0x491705=_0x1b3e1c['indexOf'](_0x368916),_0x2f30=_0x491705+_0x5f4f6e;if(!(_0x491705<0x0||_0x2f30<0x0||_0x2f30>=_0x1b3e1c[_0x26653a(0x38b)]))return[_0x1b3e1c[_0x491705],_0x1b3e1c[_0x2f30]]=[_0x1b3e1c[_0x2f30],_0x1b3e1c[_0x491705]],_0x55fd46['executeCommand'](_0x1e24a6['id'],{'unitId':_0x70ff9c,'dashboard':{..._0x1e9ec7,'widgetOrder':_0x1b3e1c}});},_0xa40346=_0x2cf4e9=>_0x55fd46['executeCommand'](_0x59e700['id'],{'unitId':_0x70ff9c,'dashboardId':_0x3c9db0,'widget':_0x2cf4e9})[_0x14779e(0x28c)](()=>void 0x0),_0x5e8bdd=(_0x293d07,_0x267eb7,_0x2b1136)=>{const _0x45510e=_0x14779e;let _0x33ddc0=Math[_0x45510e(0x3b6)](0x0,..._0x1e9ec7['widgetOrder'][_0x45510e(0x1c6)](_0x2a6ba7=>{const _0x3dfe4b=_0x45510e;var _0x41390c;let _0x5d7f1b=(_0x41390c=_0x1e9ec7[_0x3dfe4b(0x34d)][_0x2a6ba7])==null?void 0x0:_0x41390c[_0x3dfe4b(0x281)];return _0x5d7f1b?[_0x5d7f1b[_0x3dfe4b(0x3e4)]+_0x5d7f1b[_0x3dfe4b(0x1ad)]]:[];})),_0x4f3d14='dashboard-widget-'+_0x542898(0x8),_0x54fa65={'column':0x0,'row':_0x33ddc0,'columnSpan':_0x267eb7,'rowSpan':_0x2b1136};switch(_0x293d07[_0x45510e(0x38c)]){case _0x4e7fff['PivotChart']:return _0xa40346({..._0x293d07,'id':_0x4f3d14,'layout':_0x54fa65});case _0x4e7fff[_0x45510e(0x193)]:return _0xa40346({..._0x293d07,'id':_0x4f3d14,'layout':_0x54fa65});case _0x4e7fff[_0x45510e(0x4b4)]:return _0xa40346({..._0x293d07,'id':_0x4f3d14,'layout':_0x54fa65});case _0x4e7fff[_0x45510e(0x419)]:return _0xa40346({..._0x293d07,'id':_0x4f3d14,'layout':_0x54fa65});case _0x4e7fff['FormulaShape']:return _0xa40346({..._0x293d07,'id':_0x4f3d14,'layout':_0x54fa65});}},_0x3c69ef=_0x10833e[_0x14779e(0x31e)](),_0x3468dc=_0x3c69ef['tableOrder'][_0x14779e(0x1c6)](_0x13b5c4=>{const _0x290d6d=_0x14779e;let _0x46e21d=_0x3c69ef[_0x290d6d(0x2ec)][_0x13b5c4];if(!_0x46e21d)return[];let _0x2ec89a=_0x46e21d['viewOrder']['flatMap'](_0x3b0fd2=>{const _0x14d3b2=_0x290d6d;let _0x4e8bfa=_0x46e21d[_0x14d3b2(0x348)][_0x3b0fd2];return Ai(_0x4e8bfa)?[{'type':_0x14d3b2(0x485),'children':_0x4e8bfa[_0x14d3b2(0x1f6)],'onSelect':()=>_0x5e8bdd({'type':_0x4e7fff[_0x14d3b2(0x49f)],'tableId':_0x13b5c4,'pivotViewId':_0x3b0fd2,'chart':{..._0x4e8bfa[_0x14d3b2(0x30a)][_0x14d3b2(0x195)]}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0x46e21d[_0x290d6d(0x1f6)],'options':[..._0x2ec89a,..._0x2ec89a[_0x290d6d(0x38b)]?[{'type':'separator'}]:[],{'type':_0x290d6d(0x485),'children':_0x44592e['t'](_0x290d6d(0x397)),'onSelect':()=>_0x5e8bdd({'type':_0x4e7fff[_0x290d6d(0x193)],'tableId':_0x13b5c4,'filter':null},0x6,0x8)}]}];}),_0x75f39b=[..._0x3468dc,..._0x3468dc[_0x14779e(0x38b)]?[{'type':_0x14779e(0x403)}]:[],{'type':_0x14779e(0x485),'children':_0x44592e['t']('bases-dashboard-ui.dashboard.text'),'onSelect':()=>_0x5e8bdd({'type':_0x4e7fff[_0x14779e(0x4b4)],'document':Ei()},0x4,0x6)},{'type':'item','children':_0x44592e['t'](_0x14779e(0x42c)),'onSelect':()=>Di(_0x240704)[_0x14779e(0x3c4)](_0x48318b=>_0x48318b&&_0x5e8bdd({'type':_0x4e7fff[_0x14779e(0x419)],'source':_0x48318b[_0x14779e(0x2d8)],'sourceType':_0x48318b[_0x14779e(0x253)],'alt':_0x48318b[_0x14779e(0x1f6)],'displayMode':_0x14779e(0x409)},0x4,0x6))},{'type':_0x14779e(0x485),'children':_0x44592e['t']('bases-dashboard-ui.dashboard.formulaShape'),'onSelect':()=>{const _0x47d835=_0x14779e;let _0x1925ec=_0x3c69ef[_0x47d835(0x490)]['find'](_0x175fa3=>_0x3c69ef[_0x47d835(0x2ec)][_0x175fa3]);_0x1925ec&&_0x5e8bdd({'type':_0x4e7fff['FormulaShape'],'tableId':_0x1925ec,'shapeType':_0x389913[_0x47d835(0x3fc)],'shapeData':_0x365108(),'description':_0x44592e['t']('bases-dashboard-ui.dashboard.formulaShape')},0x4,0x6);}}],_0x5b4041=_0x2716b7?_0x1e9ec7[_0x14779e(0x34d)][_0x2716b7]:void 0x0,_0x33bce3=()=>_0x8c0a69(_0x525db1=>!_0x525db1),_0x515cef=_0x28e8a0||_0x525108,_0x56ae16=_0x43f231&&!_0x515cef;return _0x143050(Jr,{'children':_0x391b30(_0x14779e(0x402),{'className':_0x14779e(0x25b)+(_0x525108?_0x14779e(0x276):_0x14779e(0x1b4))+_0x14779e(0x38a),'children':[_0x525108&&_0x143050(_0x11a8c2,{'onClick':()=>_0x8c0a69(!0x1),'children':_0x44592e['t']('bases-dashboard-ui.dashboardInspector.close')}),!_0x515cef&&_0x391b30(_0x14779e(0x3cb),{'className':'univer-flex\x20univer-h-auto\x20univer-min-h-12\x20univer-shrink-0\x20univer-flex-wrap\x20univer-items-center\x20univer-gap-1\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x143050(_0x37386e,{'className':_0x14779e(0x356)}),_0x143050('h2',{'className':_0x14779e(0x46d),'children':_0x1e9ec7[_0x14779e(0x1f6)]}),_0x306026[_0x14779e(0x393)](_0x357766)&&_0x143050(_0x11a8c2,{'variant':'text','disabled':!_0x306026[_0x14779e(0x390)](_0x357766),'aria-label':_0x44592e['t'](_0x14779e(0x35c)),'onClick':()=>{const _0x2de847=_0x14779e;_0x219393(_0x12c1c7,{'target':_0x357766,'name':_0x1e9ec7['name'],'commandId':_0x523fb1['id'],'exists':()=>!!_0x234134[_0x2de847(0x36f)](_0x70ff9c,_0x3c9db0)});},'children':_0x143050(_0x42b635,{})}),_0x143050(_0x335c60,{'unitId':_0x70ff9c}),_0x143050(_0x11a8c2,{'type':_0x14779e(0x44d),'size':'small','variant':_0x14779e(0x3f3),'aria-label':_0x44592e['t']('bases-dashboard-ui.dashboard.undo'),'disabled':!_0x43f231||_0x2f65ed[_0x14779e(0x36b)]===0x0,'onClick':()=>_0x55fd46[_0x14779e(0x18b)](_0x2178d8['id'])['catch'](()=>void 0x0),'children':_0x143050(_0x232960,{})}),_0x143050(_0x11a8c2,{'type':_0x14779e(0x44d),'size':_0x14779e(0x323),'variant':'text','aria-label':_0x44592e['t'](_0x14779e(0x3f7)),'disabled':!_0x43f231||_0x2f65ed[_0x14779e(0x347)]===0x0,'onClick':()=>_0x55fd46['executeCommand'](_0xa30686['id'])['catch'](()=>void 0x0),'children':_0x143050(_0x4cec9e,{})}),_0x143050(_0x11a8c2,{'type':_0x14779e(0x44d),'size':_0x14779e(0x323),'variant':'text','aria-label':_0x44592e['t'](_0x14779e(0x46c)),'onClick':_0x33bce3,'children':_0x143050(_0x14205d,{})}),_0x143050(Xr,{'items':_0x75f39b,'children':_0x391b30(_0x11a8c2,{'variant':_0x14779e(0x386),'disabled':!_0x43f231,'children':[_0x143050(_0x82e3c7,{}),_0x44592e['t'](_0x14779e(0x38f))]})})]}),_0x391b30(_0x14779e(0x402),{'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1','children':[_0x143050(_0x14779e(0x402),{'className':_0x14779e(0x1ab),'children':_0x143050(Kr,{'dashboard':_0x1e9ec7,'editable':_0x56ae16,'widgetLabel':_0x4bc45e=>_0x44592e['t'](ki(_0x4bc45e[_0x14779e(0x38c)])),'selectedWidgetId':_0x56ae16?_0x2716b7:void 0x0,'onSelectWidget':_0x56ae16?_0x551f7e=>{_0x1e8714(_0x551f7e),_0x551f7e||_0x1a6769(!0x1);}:void 0x0,'renderWidget':_0x25cb44=>_0x143050(Ci,{'base':_0x10833e,'dashboard':_0x1e9ec7,'unitId':_0x70ff9c,'widget':_0x25cb44,'onChange':_0xa40346,'onChartRuntimeChange':_0x5ef071}),'renderWidgetActions':_0x9d8abc=>_0x143050(xi,{'onMoveUp':_0x1e9ec7[_0x14779e(0x487)][_0x14779e(0x4b1)](_0x9d8abc['id'])>0x0?()=>_0x126349(_0x9d8abc['id'],-0x1):void 0x0,'onMoveDown':_0x1e9ec7[_0x14779e(0x487)][_0x14779e(0x4b1)](_0x9d8abc['id'])<_0x1e9ec7[_0x14779e(0x487)][_0x14779e(0x38b)]-0x1?()=>_0x126349(_0x9d8abc['id'],0x1):void 0x0,'onEdit':()=>{_0x1e8714(_0x9d8abc['id']),_0x1a6769(!0x0);},'onDelete':()=>{const _0x276d0f=_0x14779e;_0x2716b7===_0x9d8abc['id']&&(_0x1e8714(void 0x0),_0x1a6769(!0x1)),_0x55fd46[_0x276d0f(0x18b)](_0x29094f['id'],{'unitId':_0x70ff9c,'dashboardId':_0x3c9db0,'widgetId':_0x9d8abc['id']})[_0x276d0f(0x28c)](()=>void 0x0);}})})}),_0x56ae16&&_0x204cd4&&_0x5b4041&&_0x143050(pi,{'base':_0x10833e,'chartRuntime':_0x4e027c['get'](_0x5b4041['id']),'unitId':_0x70ff9c,'widget':_0x5b4041,'onChange':_0xa40346,'onClose':()=>_0x1a6769(!0x1),'onSelectBackgroundImage':()=>Oi(_0x2d78ec),'onSelectImage':()=>Di(_0x240704)})]})]})});}function Ci({base:_0x5c3797,dashboard:_0x54cf16,onChange:_0x32e750,onChartRuntimeChange:_0x5c5b0b,unitId:_0x47ad1a,widget:_0x11ba1d}){const _0x442674=_0x410bd1;let _0x582e33=_0x10a2b7(()=>_0x54cf16[_0x442674(0x487)]['flatMap'](_0x4045d8=>{const _0x2c18f6=_0x442674;let _0x3d88e4=_0x54cf16[_0x2c18f6(0x34d)][_0x4045d8];return(_0x3d88e4==null?void 0x0:_0x3d88e4[_0x2c18f6(0x38c)])===_0x4e7fff[_0x2c18f6(0x193)]&&_0x3d88e4['tableId']===(_0x2c18f6(0x266)in _0x11ba1d?_0x11ba1d['tableId']:'')&&_0x3d88e4['filter']?[_0x3d88e4['filter']]:[];}),[_0x54cf16,_0x11ba1d]);switch(_0x11ba1d['type']){case _0x4e7fff['PivotChart']:return _0x143050(zr,{'filters':_0x582e33,'unitId':_0x47ad1a,'widget':_0x11ba1d,'onRuntimeChange':_0x5c5b0b});case _0x4e7fff[_0x442674(0x193)]:return _0x143050(di,{'fields':wi(_0x5c3797,_0x11ba1d[_0x442674(0x266)]),'filter':_0x11ba1d[_0x442674(0x267)],'onChange':_0x2f8ed3=>_0x32e750({..._0x11ba1d,'filter':_0x2f8ed3})['catch'](()=>void 0x0)});case _0x4e7fff['Text']:return _0x143050(Gr,{'widget':_0x11ba1d});case _0x4e7fff[_0x442674(0x419)]:return _0x143050(Ti,{'widget':_0x11ba1d});case _0x4e7fff[_0x442674(0x2b8)]:return _0x143050(kr,{'dashboardId':_0x54cf16['id'],'unitId':_0x47ad1a,'widget':_0x11ba1d});}}function wi(_0x5ec207,_0x3e0522){const _0x42c0fb=_0x410bd1;let _0xf04343=_0x5ec207[_0x42c0fb(0x31e)]()[_0x42c0fb(0x2ec)][_0x3e0522],_0x287744=_0xf04343==null?void 0x0:_0xf04343[_0x42c0fb(0x30e)][_0x42c0fb(0x2da)](_0x300f11=>_0xf04343[_0x42c0fb(0x348)][_0x300f11]),_0x5e27f7=_0x287744?_0xf04343==null?void 0x0:_0xf04343['views'][_0x287744]:void 0x0;return _0xf04343&&_0x5e27f7?_0x4eb67b(_0xf04343,_0x5e27f7):[];}function Ti({widget:_0x145039}){const _0x332e68=_0x410bd1;let _0xcc43ec=_0x20ec70(_0x458fcc),[_0x349b8b,_0x2a65e5]=_0x5e5f09(_0x145039['sourceType']===_0x4ca25c[_0x332e68(0x27f)]?'':_0x145039[_0x332e68(0x2d8)]);return _0x2fd531(()=>{const _0x51350e=_0x332e68;let _0x11016d=!0x0;return _0xcc43ec[_0x51350e(0x4a1)](_0x145039['source'],_0x145039[_0x51350e(0x253)])[_0x51350e(0x3c4)](_0x3f0a27=>{_0x11016d&&_0x2a65e5(_0x3f0a27);})['catch'](()=>void 0x0),()=>{_0x11016d=!0x1;};},[_0xcc43ec,_0x145039[_0x332e68(0x2d8)],_0x145039[_0x332e68(0x253)]]),_0x349b8b?_0x143050(_0x332e68(0x402),{'role':_0x145039[_0x332e68(0x1b3)]?_0x332e68(0x21f):void 0x0,'aria-label':_0x145039[_0x332e68(0x1b3)]||void 0x0,'data-dashboard-image':_0x145039['id'],'className':_0x332e68(0x421),'style':br(_0x349b8b,_0x145039[_0x332e68(0x201)])}):null;}function Ei(){const _0x274e02=_0x410bd1;let _0xfdf284=_0x76d4c9(new Set());return{'id':_0x274e02(0x3bc)+_0x542898(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0xfdf284}]},'documentStyle':{}};}function Di(_0x54e487){return new Promise(_0x111219=>{const _0x55e1e3=_0x10b1;let _0x5a6a1d=document[_0x55e1e3(0x414)]('input');_0x5a6a1d[_0x55e1e3(0x38c)]=_0x55e1e3(0x1cb),_0x5a6a1d[_0x55e1e3(0x2e3)]='image/*',_0x5a6a1d[_0x55e1e3(0x2fc)](_0x55e1e3(0x376),()=>{const _0x55c284=_0x55e1e3;var _0x108f78;let _0xe42379=(_0x108f78=_0x5a6a1d[_0x55c284(0x251)])==null?void 0x0:_0x108f78[0x0];_0xe42379?_0x54e487['saveAttachment'](_0xe42379)['then'](_0x4f13b7=>{const _0x4aa54f=_0x55c284;!_0x4f13b7[_0x4aa54f(0x2d8)]||_0x4f13b7['sourceType']===void 0x0?_0x111219(null):_0x111219({'name':_0x4f13b7[_0x4aa54f(0x1f6)],'source':_0x4f13b7[_0x4aa54f(0x2d8)],'sourceType':_0x4f13b7['sourceType']});})['catch'](()=>_0x111219(null)):_0x111219(null);},{'once':!0x0}),_0x5a6a1d[_0x55e1e3(0x291)]();});}function Oi(_0x430fff){return new Promise(_0x45cac4=>{const _0x52b456=_0x10b1;let _0x3c26ae=document[_0x52b456(0x414)]('input');_0x3c26ae[_0x52b456(0x38c)]=_0x52b456(0x1cb),_0x3c26ae['accept']=_0x52b456(0x3ad),_0x3c26ae[_0x52b456(0x2fc)]('change',()=>{const _0xfcdb0c=_0x52b456;var _0x2f4ed0;let _0x30da52=(_0x2f4ed0=_0x3c26ae[_0xfcdb0c(0x251)])==null?void 0x0:_0x2f4ed0[0x0];_0x30da52?_0x430fff[_0xfcdb0c(0x2a9)](_0x30da52)[_0xfcdb0c(0x3c4)](_0x47e302=>{const _0x4d8fd6=_0xfcdb0c;if(!(_0x47e302!=null&&_0x47e302[_0x4d8fd6(0x2d8)]))_0x45cac4(null);else{if(_0x47e302[_0x4d8fd6(0x364)]){let _0x551b96=new Image();_0x551b96['src']=_0x47e302[_0x4d8fd6(0x364)],_0x430fff['addImageSourceCache'](_0x47e302[_0x4d8fd6(0x2d8)],_0x47e302[_0x4d8fd6(0x180)],_0x551b96);}_0x45cac4({'source':_0x47e302[_0x4d8fd6(0x2d8)],'sourceType':_0x47e302[_0x4d8fd6(0x180)]});}})[_0xfcdb0c(0x28c)](()=>_0x45cac4(null)):_0x45cac4(null);},{'once':!0x0}),_0x3c26ae['click']();});}function ki(_0x2345f0){const _0x34f14d=_0x410bd1;switch(_0x2345f0){case _0x4e7fff[_0x34f14d(0x49f)]:return _0x34f14d(0x3a9);case _0x4e7fff[_0x34f14d(0x193)]:return _0x34f14d(0x397);case _0x4e7fff[_0x34f14d(0x4b4)]:return'bases-dashboard-ui.dashboard.text';case _0x4e7fff[_0x34f14d(0x419)]:return _0x34f14d(0x42c);case _0x4e7fff['FormulaShape']:return _0x34f14d(0x17f);}}function Ai(_0x5731c3){const _0x1ba81d=_0x410bd1;return(_0x5731c3==null?void 0x0:_0x5731c3['type'])===_0x37c4bc['Pivot']&&typeof _0x5731c3[_0x1ba81d(0x30a)]==_0x1ba81d(0x16a)&&_0x5731c3[_0x1ba81d(0x30a)]!==null&&_0x1ba81d(0x382)in _0x5731c3[_0x1ba81d(0x30a)]&&'chart'in _0x5731c3[_0x1ba81d(0x30a)];}function ji({pivot:_0x5355ae,view:_0x209c93}){const _0x152bdd=_0x410bd1;let _0x4d5ec2=_0x20ec70(_0x4f7627),_0x454b4a=_0x10a2b7(()=>Mi(_0x209c93,_0x5355ae,_0x4d5ec2['t'](_0x152bdd(0x223))),[_0x4d5ec2,_0x5355ae,_0x209c93]);return _0x391b30(_0x152bdd(0x402),{'className':'univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','children':[_0x454b4a[_0x152bdd(0x4a0)][_0x152bdd(0x38b)]>0x0&&_0x143050('table',{'className':'univer-mb-2\x20univer-border-collapse\x20univer-text-sm','children':_0x143050(_0x152bdd(0x1e1),{'children':Ni(_0x454b4a[_0x152bdd(0x4a0)])})}),_0x391b30('table',{'className':_0x152bdd(0x482),'children':[_0x454b4a[_0x152bdd(0x3f0)]>0x0&&_0x143050(_0x152bdd(0x17a),{'className':_0x152bdd(0x417),'children':Ni(_0x454b4a[_0x152bdd(0x316)][_0x152bdd(0x268)](0x0,_0x454b4a[_0x152bdd(0x3f0)]))}),_0x143050(_0x152bdd(0x1e1),{'children':Ni(_0x454b4a[_0x152bdd(0x316)][_0x152bdd(0x268)](_0x454b4a[_0x152bdd(0x3f0)]))})]})]});}function Mi(_0x16105d,_0x52fe1b,_0x4e6312){const _0x9e96ad=_0x410bd1;let _0x382333=_0x16105d[_0x9e96ad(0x2bc)][_0x9e96ad(0x24e)],_0x5e1892=_0x16105d['rowView']['colCount'],_0x1bef1d=_0x16105d[_0x9e96ad(0x2f4)][_0x9e96ad(0x24e)],_0x166845=_0x16105d[_0x9e96ad(0x2f4)]['colCount'],_0x6020c0=Array[_0x9e96ad(0x24d)]({'length':_0x382333+_0x1bef1d},(_0x9fbaaa,_0x3d77ff)=>Array[_0x9e96ad(0x24d)]({'length':_0x5e1892+_0x166845},(_0x11a238,_0xe86aba)=>{const _0x2406b5=_0x9e96ad;var _0x4cf7a5,_0x5fcd1f;if(_0x3d77ff<_0x382333&&_0xe86aba<_0x5e1892)return Pi(_0x16105d[_0x2406b5(0x37c)],_0x3d77ff,_0xe86aba,void 0x0,_0x4e6312,!0x0,!0x1,_0x2406b5(0x3c0)+_0x3d77ff+':'+_0xe86aba);if(_0x3d77ff<_0x382333){var _0x103418;let _0x5d676e=_0xe86aba-_0x5e1892,_0x3d5310=(_0x103418=_0x16105d['colView'][_0x2406b5(0x1ac)][_0x3d77ff])==null?void 0x0:_0x103418['tableFieldId'];return Pi(_0x16105d[_0x2406b5(0x2bc)],_0x3d77ff,_0x5d676e,_0x3d5310?_0x16105d[_0x2406b5(0x3ae)][_0x3d5310]:void 0x0,_0x4e6312,!0x0,Li(_0x16105d[_0x2406b5(0x2bc)][_0x2406b5(0x394)][_0x5d676e]),'column:'+_0x3d77ff+':'+_0x5d676e);}if(_0xe86aba<_0x5e1892){var _0x472e3e;let _0x22382a=_0x3d77ff-_0x382333,_0x2aa79e=(_0x472e3e=_0x16105d['rowView']['headerMap'][_0xe86aba])==null?void 0x0:_0x472e3e['tableFieldId'];return Pi(_0x16105d['rowView'],_0x22382a,_0xe86aba,_0x2aa79e?_0x16105d[_0x2406b5(0x3ae)][_0x2aa79e]:void 0x0,_0x4e6312,!0x0,Li(_0x16105d[_0x2406b5(0x187)][_0x2406b5(0x394)][_0x22382a]),'row:'+_0x22382a+':'+_0xe86aba);}let _0x338af1=_0x3d77ff-_0x382333,_0x1d5d72=_0xe86aba-_0x5e1892,_0x5148df=Math['max'](((_0x4cf7a5=_0x16105d[_0x2406b5(0x187)][_0x2406b5(0x394)][_0x338af1])==null?void 0x0:_0x4cf7a5['valueIndex'])??-0x1,((_0x5fcd1f=_0x16105d['colView']['info'][_0x1d5d72])==null?void 0x0:_0x5fcd1f[_0x2406b5(0x399)])??-0x1),_0x256dae=_0x52fe1b[_0x2406b5(0x438)][_0x5148df<0x0?0x0:_0x5148df];return Pi(_0x16105d[_0x2406b5(0x2f4)],_0x338af1,_0x1d5d72,_0x256dae?_0x16105d[_0x2406b5(0x3ae)][_0x256dae]:void 0x0,_0x4e6312,!0x1,Li(_0x16105d['rowView'][_0x2406b5(0x394)][_0x338af1])||Li(_0x16105d[_0x2406b5(0x2bc)][_0x2406b5(0x394)][_0x1d5d72]),_0x2406b5(0x370)+_0x338af1+':'+_0x1d5d72);}));return{'headerColumnCount':_0x5e1892,'headerRowCount':_0x382333,'pageRows':_0x16105d[_0x9e96ad(0x298)][_0x9e96ad(0x47c)]<0x0||_0x16105d[_0x9e96ad(0x298)][_0x9e96ad(0x33b)]<0x0?[]:Array[_0x9e96ad(0x24d)]({'length':_0x16105d['pageView']['lastRow']+0x1},(_0x1b872e,_0x55b37d)=>Array[_0x9e96ad(0x24d)]({'length':_0x16105d['pageView'][_0x9e96ad(0x33b)]+0x1},(_0x2318d2,_0x5bea46)=>Pi(_0x16105d[_0x9e96ad(0x298)],_0x55b37d,_0x5bea46,void 0x0,_0x4e6312,!0x0,!0x1,_0x9e96ad(0x1cd)+_0x55b37d+':'+_0x5bea46))),'rows':_0x6020c0};}function Ni(_0x1a49b5){return _0x1a49b5['map'](_0x29f7e5=>{const _0x44cbb2=_0x10b1;var _0x414119;return _0x143050('tr',{'children':_0x29f7e5[_0x44cbb2(0x173)](_0xa7993=>{const _0x324322=_0x44cbb2;let _0x53bf74=_0xa7993[_0x324322(0x26e)]?'th':'td';return _0x143050(_0x53bf74,{'className':_0x324322(0x159)+(_0xa7993[_0x324322(0x163)]?'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-gray-50\x20univer-font-semibold\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20':'')+_0x324322(0x383)+(_0xa7993['isHeader']?'':'univer-text-right')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0xa7993[_0x324322(0x46f)]},_0xa7993[_0x324322(0x17b)]);})},(_0x414119=_0x29f7e5[0x0])==null?void 0x0:_0x414119[_0x44cbb2(0x17b)]);});}function _0x10b1(_0xa662df,_0x157d94){_0xa662df=_0xa662df-0x157;const _0x416be8=_0x416b();let _0x10b1bf=_0x416be8[_0xa662df];return _0x10b1bf;}function Pi(_0x17de2f,_0x1c6b04,_0x38419d,_0x39a87f,_0x41adf4,_0x126312,_0x46b015,_0x3c2935){const _0x26bb8e=_0x410bd1;var _0x428c11;let _0x1d5539=(_0x428c11=_0x17de2f[_0x26bb8e(0x2a6)][_0x1c6b04])==null?void 0x0:_0x428c11[_0x38419d],_0xb6008=_0x1d5539==null?void 0x0:_0x1d5539['s'],_0x390fd3=_0x46b015||_0xb6008===_0x2b70c6[_0x26bb8e(0x185)]||_0xb6008===_0x2b70c6[_0x26bb8e(0x301)];return{'isHeader':_0x126312,'isTotal':_0x390fd3||_0xb6008===_0x2b70c6[_0x26bb8e(0x404)],'key':_0x3c2935,'style':_0xb6008,'value':_0x390fd3&&Ii(_0x1d5539==null?void 0x0:_0x1d5539['v'])?_0x41adf4:Fi(_0x1d5539,_0x39a87f)};}function Fi(_0x553925,_0x3eb01a){const _0x29d8d8=_0x410bd1;let _0x48c5b4=_0x553925==null?void 0x0:_0x553925['v'];return _0x163d9a(_0x48c5b4)?String(_0x48c5b4[_0x29d8d8(0x46f)]??_0x48c5b4[_0x29d8d8(0x35a)]??''):_0x420b5a(_0x48c5b4)?'#'+_0x48c5b4[_0x29d8d8(0x33c)]:_0x3eb01a&&typeof _0x48c5b4==_0x29d8d8(0x1c4)?_0x5140c1['format'](_0x3eb01a,_0x48c5b4):String(_0x48c5b4??'');}function Ii(_0x8ad71){return _0x8ad71===void 0x0||_0x8ad71==='';}function Li(_0x2696c8){const _0xbf6ae0=_0x410bd1;return!!(_0x2696c8!=null&&_0x2696c8[_0xbf6ae0(0x30f)]||_0x2696c8!=null&&_0x2696c8[_0xbf6ae0(0x321)]||_0x2696c8!=null&&_0x2696c8[_0xbf6ae0(0x167)]||(_0x2696c8==null?void 0x0:_0x2696c8[_0xbf6ae0(0x256)])===_0xbf6ae0(0x19c));}const Ri=[{'area':_0x3c113a[_0x410bd1(0x464)],'key':_0x410bd1(0x182),'label':_0x410bd1(0x479)},{'area':_0x3c113a[_0x410bd1(0x4ab)],'key':'columnFields','label':_0x410bd1(0x2af)},{'area':_0x3c113a[_0x410bd1(0x2c3)],'key':_0x410bd1(0x28d),'label':_0x410bd1(0x1bd)},{'area':_0x3c113a[_0x410bd1(0x3c2)],'key':_0x410bd1(0x438),'label':_0x410bd1(0x273)}],zi=[{'value':_0x9fb623[_0x410bd1(0x3c1)],'localeKey':_0x410bd1(0x1bb)},{'value':_0x9fb623['count'],'localeKey':_0x410bd1(0x43e)},{'value':_0x9fb623[_0x410bd1(0x3a3)],'localeKey':_0x410bd1(0x1f8)},{'value':_0x9fb623[_0x410bd1(0x332)],'localeKey':_0x410bd1(0x1a7)},{'value':_0x9fb623[_0x410bd1(0x3b6)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':_0x9fb623[_0x410bd1(0x2c0)],'localeKey':_0x410bd1(0x275)},{'value':_0x9fb623['product'],'localeKey':_0x410bd1(0x1f7)},{'value':_0x9fb623[_0x410bd1(0x3ef)],'localeKey':_0x410bd1(0x27b)},{'value':_0x9fb623['stdDevp'],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x9fb623[_0x410bd1(0x2b6)],'localeKey':'bases-dashboard-ui.pivot.variance'},{'value':_0x9fb623[_0x410bd1(0x259)],'localeKey':_0x410bd1(0x2d7)}];function Bi(_0x50e300){const _0x3dc973=_0x410bd1;let {config:_0xc57ede,onChange:_0x174dbb,table:_0x1bd0f3}=_0x50e300,_0x448c9e=_0x20ec70(_0x4f7627),[_0x146806,_0x2719a1]=_0x5e5f09(_0x3dc973(0x202)),[_0x479c49,_0x7e21f1]=_0x5e5f09(''),[_0x197501,_0x49d867]=_0x5e5f09(null),[_0x4dffe4,_0x3e84c5]=_0x5e5f09(null),[_0x47b4e0,_0x1da157]=_0x5e5f09(null),[_0x27ef78,_0x4c7abb]=_0x5e5f09(null),_0xe43463=_0x127850(null),_0x2629da=_0x10a2b7(()=>_0x1bd0f3[_0x3dc973(0x492)][_0x3dc973(0x1c6)](_0x6ef480=>{const _0x339634=_0x3dc973;let _0x23ef68=_0x1bd0f3['fields'][_0x6ef480];return _0x23ef68&&_0x23ef68['system']!==!0x0&&_0x23ef68[_0x339634(0x38c)]!==_0xac378e[_0x339634(0x21c)]?[_0x23ef68]:[];})[_0x3dc973(0x267)](_0x3487c5=>_0x3487c5['name']['toLocaleLowerCase']()[_0x3dc973(0x37e)](_0x479c49[_0x3dc973(0x48d)]()['toLocaleLowerCase']())),[_0x479c49,_0x1bd0f3]),_0x26461c=_0x2ff540=>{const _0x469938=_0x3dc973;let _0x1413e0=_0x3cec59(_0x1bd0f3,_0xc57ede['pivot']);try{_0x2ff540(_0x1413e0),_0x174dbb({'pivot':_0x1413e0[_0x469938(0x305)]()});}finally{_0x1413e0[_0x469938(0x481)]();}},_0x3dc219=(_0x3ab416,_0x13700c)=>{_0x197501&&(_0x26461c(_0xfc4c3c=>{const _0x54f8bc=_0x10b1;if(_0x197501['kind']==='field'){let _0x25ded3=_0xfc4c3c['getFieldPositionInfoById'](_0x197501['id']),_0x54df43=_0x25ded3[_0x54f8bc(0x1f1)]===_0x3ab416&&_0x25ded3[_0x54f8bc(0x2bd)]<_0x13700c?_0x13700c-0x1:_0x13700c;_0xfc4c3c[_0x54f8bc(0x1a5)](_0x197501['id'],_0x3ab416,_0x54df43);}else Ji(_0xfc4c3c,_0x197501['id'],_0x3ab416,_0x13700c);}),_0x49d867(null),_0x3e84c5(null));};return _0x391b30(_0x3dc973(0x402),{'className':_0x3dc973(0x45d),'children':[_0x143050(_0x55df58,{'ariaLabel':_0x448c9e['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x448c9e['t'](_0x3dc973(0x405)),'panelId':_0x3dc973(0x174),'value':'fields'},{'label':_0x448c9e['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x3dc973(0x443),'value':_0x3dc973(0x22a)}],'value':_0x146806,'onChange':_0x2719a1}),_0x143050(_0x3dc973(0x402),{'ref':_0xe43463,'className':_0xec79e5('univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3',_0x44d47d),'onDragOver':_0x2cbb80=>{const _0x24f625=_0x3dc973;let _0xbaae8e=_0xe43463[_0x24f625(0x179)];if(!_0xbaae8e)return;let _0x5a781f=_0xbaae8e['getBoundingClientRect']();_0x2cbb80[_0x24f625(0x335)]<_0x5a781f[_0x24f625(0x4a9)]+0x30?_0xbaae8e[_0x24f625(0x396)]-=0x10:_0x2cbb80['clientY']>_0x5a781f[_0x24f625(0x400)]-0x30&&(_0xbaae8e[_0x24f625(0x396)]+=0x10);},'children':_0x146806===_0x3dc973(0x22a)?_0x143050(qi,{'config':_0xc57ede,'commit':_0x26461c}):_0x391b30('div',{'className':_0x3dc973(0x1f9),'children':[_0x391b30(_0x3dc973(0x402),{'children':[_0x143050('div',{'className':_0x3dc973(0x33f),'children':_0x448c9e['t'](_0x3dc973(0x2fd))}),_0x143050(_0x56be65,{'allowClear':!0x0,'slot':_0x143050(_0x1dab65,{}),'value':_0x479c49,'placeholder':_0x448c9e['t'](_0x3dc973(0x2ea)),'onChange':_0x7e21f1}),_0x143050(_0x3dc973(0x402),{'className':_0x3dc973(0x1cc),'children':_0x2629da['map'](_0x1fb3d1=>_0x143050(Vi,{'config':_0xc57ede,'field':_0x1fb3d1,'onAdd':_0x24b737=>_0x26461c(_0x16ad68=>Ji(_0x16ad68,_0x1fb3d1['id'],_0x24b737,_0x16ad68[_0x3dc973(0x26d)](_0x24b737))),'onCheckedChange':_0x428bda=>_0x26461c(_0x31c0d4=>{const _0x2953e1=_0x3dc973;let _0x136154=_0x31c0d4['getTableFieldsByDataFieldId'](_0x1fb3d1['id']);if(!_0x428bda)_0x136154[_0x2953e1(0x349)](_0x4d3be6=>_0x31c0d4['removeField'](_0x4d3be6[_0x2953e1(0x292)]()));else{if(_0x136154[_0x2953e1(0x38b)]===0x0){let _0x20f907=Xi(_0x1fb3d1)?_0x3c113a['Value']:_0x3c113a[_0x2953e1(0x2c3)];_0x31c0d4[_0x2953e1(0x3b0)](_0x1fb3d1['id'],_0x20f907);}}}),'onDragStart':()=>_0x49d867({'kind':_0x3dc973(0x2d8),'id':_0x1fb3d1['id']})},_0x1fb3d1['id']))})]}),_0x143050('div',{'className':'univer-grid\x20univer-gap-3','children':Ri['map'](_0x5647ac=>_0x143050(Ui,{'area':_0x5647ac['area'],'dropTarget':_0x4dffe4,'fields':_0xc57ede['pivot'][_0x5647ac[_0x3dc973(0x17b)]],'label':_0x448c9e['t'](_0x5647ac[_0x3dc973(0x19d)]),'snapshot':_0xc57ede['pivot'],'onDragEnd':()=>{_0x49d867(null),_0x3e84c5(null);},'onDragStart':_0x9fe79=>_0x49d867({'kind':_0x3dc973(0x29f),'id':_0x9fe79,'area':_0x5647ac[_0x3dc973(0x1f1)]}),'onDragOver':_0x5b220d=>_0x3e84c5({'area':_0x5647ac[_0x3dc973(0x1f1)],'index':_0x5b220d}),'onDrop':_0x1190af=>_0x3dc219(_0x5647ac[_0x3dc973(0x1f1)],_0x1190af),'onFilter':_0x1da157,'onMove':(_0x292f85,_0x4c61f6,_0x8e556d)=>_0x26461c(_0x5f3493=>_0x5f3493['updateFieldPosition'](_0x292f85,_0x4c61f6,_0x8e556d)),'onRemove':_0x3f6add=>_0x26461c(_0x56b21f=>_0x56b21f[_0x3dc973(0x3e7)](_0x3f6add)),'onSettings':_0x4c7abb},_0x5647ac['area']))}),_0x47b4e0&&_0x143050(Gi,{'fieldId':_0x47b4e0,'snapshot':_0xc57ede['pivot'],'table':_0x1bd0f3,'onCancel':()=>_0x1da157(null),'onCommit':(_0x44e7d6,_0x40b4f3)=>{_0x26461c(_0x5e82c5=>{const _0x4340a2=_0x10b1;let _0x2b1d79=_0x5e82c5[_0x4340a2(0x48a)](_0x47b4e0),_0x23b219=(_0x2b1d79==null?void 0x0:_0x2b1d79[_0x4340a2(0x1f4)])??[];_0x5e82c5[_0x4340a2(0x212)](_0x47b4e0,{'type':_0x315feb[_0x4340a2(0x1a3)],'list':_0x44e7d6,'isAll':_0x44e7d6['length']===_0x23b219['length']}),_0x5e82c5[_0x4340a2(0x1ff)](_0x47b4e0,_0x40b4f3===void 0x0?void 0x0:{'type':_0x40b4f3});}),_0x1da157(null);}},_0x47b4e0),_0x27ef78&&_0x143050(Ki,{'field':_0xc57ede['pivot'][_0x3dc973(0x339)][_0x27ef78],'onCancel':()=>_0x4c7abb(null),'onCommit':(_0x2779ae,_0x4072c8,_0x346db2)=>{_0x26461c(_0x13700a=>{const _0x3f9f29=_0x10b1;_0x13700a[_0x3f9f29(0x3fa)](_0x27ef78,_0x2779ae),_0x13700a['setSubtotalType'](_0x27ef78,_0x4072c8),_0x13700a[_0x3f9f29(0x2ac)](_0x27ef78,_0x346db2||void 0x0);}),_0x4c7abb(null);}},_0x27ef78)]})})]});}function Vi(_0x365324){const _0x3503bd=_0x410bd1;let {config:_0x4af6af,field:_0x56fd2e,onAdd:_0x3c7a7f,onCheckedChange:_0x312679,onDragStart:_0x3f602b}=_0x365324,_0x53b11a=_0x20ec70(_0x4f7627),_0x3b6935=[...Object[_0x3503bd(0x22c)](_0x4af6af[_0x3503bd(0x382)]['dimension']),...Object[_0x3503bd(0x22c)](_0x4af6af[_0x3503bd(0x382)][_0x3503bd(0x339)])][_0x3503bd(0x29a)](_0x23566f=>_0x23566f[_0x3503bd(0x344)]===_0x56fd2e['id']),_0x146dbb=Ri[_0x3503bd(0x173)](_0x3e23d1=>({'type':_0x3503bd(0x485),'children':_0x53b11a['t'](Zi(_0x3e23d1['area'])),'onSelect':()=>_0x3c7a7f(_0x3e23d1['area'])}));return _0x391b30(_0x3503bd(0x402),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x3503bd(0x47d),'onDragStart':_0x3f602b,'children':[_0x143050(_0x10db4e,{'checked':_0x3b6935,'onChange':_0xfcc98a=>_0x312679(!!_0xfcc98a)}),_0x143050(Hi,{'field':_0x56fd2e}),_0x143050(_0x3503bd(0x378),{'className':_0x3503bd(0x434),'children':_0x56fd2e[_0x3503bd(0x1f6)]}),_0x143050(Xr,{'align':_0x3503bd(0x33d),'items':_0x146dbb,'children':_0x143050(_0x11a8c2,{'variant':_0x3503bd(0x3f3),'aria-label':_0x53b11a['t'](_0x3503bd(0x290)),'children':_0x143050(_0x5d1e68,{})})})]});}function Hi({field:_0xf8c3af}){const _0xc41283=_0x410bd1;return Xi(_0xf8c3af)?_0x143050(_0x5c186e,{'className':_0xc41283(0x2df)}):_0xf8c3af[_0xc41283(0x38c)]===_0xac378e[_0xc41283(0x49e)]||_0xf8c3af['type']===_0xac378e[_0xc41283(0x2a2)]||_0xf8c3af['type']===_0xac378e[_0xc41283(0x270)]?_0x143050(_0x5325fe,{'className':_0xc41283(0x2df)}):_0x143050(_0x4af771,{'className':_0xc41283(0x2df)});}function Ui(_0x31cb44){const _0x528972=_0x410bd1;let {area:_0x5e6fec,dropTarget:_0x4a6db4,fields:_0x3743de,label:_0x4fca12,snapshot:_0x3904e2}=_0x31cb44,_0x7b49ef=_0x20ec70(_0x4f7627);return _0x391b30(_0x528972(0x407),{'className':_0xec79e5(_0x528972(0x47f),_0x1f0d20),'onDragOver':_0x4001ed=>{const _0x4107a8=_0x528972;_0x4001ed[_0x4107a8(0x35b)](),_0x31cb44[_0x4107a8(0x36a)](_0x3743de[_0x4107a8(0x38b)]);},'onDrop':_0x2002ff=>{const _0x3b7a8f=_0x528972;_0x2002ff[_0x3b7a8f(0x35b)](),_0x31cb44[_0x3b7a8f(0x1f3)]((_0x4a6db4==null?void 0x0:_0x4a6db4['area'])===_0x5e6fec?_0x4a6db4[_0x3b7a8f(0x2bd)]:_0x3743de[_0x3b7a8f(0x38b)]);},'children':[_0x143050(_0x528972(0x402),{'className':_0x528972(0x367),'children':_0x4fca12}),_0x391b30(_0x528972(0x402),{'className':_0x528972(0x422),'children':[_0x3743de['map']((_0x54bd98,_0x228ff3)=>{const _0x7f75ac=_0x528972;let _0x26d638=_0x3904e2[_0x7f75ac(0x3eb)][_0x54bd98]??_0x3904e2['measure'][_0x54bd98];if(!_0x26d638)return null;let _0x2ff081=(_0x4a6db4==null?void 0x0:_0x4a6db4[_0x7f75ac(0x1f1)])===_0x5e6fec&&_0x4a6db4[_0x7f75ac(0x2bd)]===_0x228ff3;return _0x391b30('div',{'onDragOver':_0x46e516=>{const _0xc22202=_0x7f75ac;_0x46e516[_0xc22202(0x35b)](),_0x46e516[_0xc22202(0x3b9)]();let _0x241a9e=_0x46e516[_0xc22202(0x1ba)]['getBoundingClientRect']();_0x31cb44[_0xc22202(0x36a)](_0x228ff3+ +(_0x46e516[_0xc22202(0x335)]>_0x241a9e[_0xc22202(0x4a9)]+_0x241a9e[_0xc22202(0x484)]/0x2));},'onDrop':_0x27fa9d=>{const _0x1160a3=_0x7f75ac;_0x27fa9d['preventDefault'](),_0x27fa9d['stopPropagation'](),_0x31cb44[_0x1160a3(0x1f3)]((_0x4a6db4==null?void 0x0:_0x4a6db4[_0x1160a3(0x1f1)])===_0x5e6fec?_0x4a6db4[_0x1160a3(0x2bd)]:_0x228ff3);},'children':[_0x2ff081&&_0x143050(_0x7f75ac(0x402),{'className':_0x7f75ac(0x3f4)}),_0x143050(Wi,{'area':_0x5e6fec,'field':_0x26d638,'onDragEnd':_0x31cb44[_0x7f75ac(0x264)],'onDragStart':()=>_0x31cb44[_0x7f75ac(0x2b7)](_0x54bd98),'onFilter':()=>_0x31cb44[_0x7f75ac(0x428)](_0x54bd98),'onMove':_0x48cbb7=>_0x31cb44[_0x7f75ac(0x310)](_0x54bd98,_0x48cbb7,0x0),'onMoveUp':_0x228ff3>0x0?()=>_0x31cb44[_0x7f75ac(0x310)](_0x54bd98,_0x5e6fec,_0x228ff3-0x1):void 0x0,'onMoveDown':_0x228ff3<_0x3743de[_0x7f75ac(0x38b)]-0x1?()=>_0x31cb44[_0x7f75ac(0x310)](_0x54bd98,_0x5e6fec,_0x228ff3+0x1):void 0x0,'onRemove':()=>_0x31cb44[_0x7f75ac(0x31c)](_0x54bd98),'onSettings':()=>_0x31cb44['onSettings'](_0x54bd98)})]},_0x54bd98);}),(_0x4a6db4==null?void 0x0:_0x4a6db4['area'])===_0x5e6fec&&_0x4a6db4[_0x528972(0x2bd)]===_0x3743de['length']&&_0x143050(_0x528972(0x402),{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),_0x3743de[_0x528972(0x38b)]===0x0&&_0x143050('div',{'className':_0x528972(0x359),'children':_0x7b49ef['t'](_0x528972(0x2fd))})]})]});}function Wi(_0x257771){const _0x59a9b0=_0x410bd1;let _0x46aee4=_0x20ec70(_0x4f7627),_0x18e868=_0x257771[_0x59a9b0(0x1f1)]===_0x3c113a[_0x59a9b0(0x3c2)],_0x4b29be=[...Ri[_0x59a9b0(0x267)](_0x375f53=>_0x375f53[_0x59a9b0(0x1f1)]!==_0x257771[_0x59a9b0(0x1f1)])[_0x59a9b0(0x173)](_0xb56cbf=>({'type':_0x59a9b0(0x485),'children':_0x46aee4['t'](Zi(_0xb56cbf[_0x59a9b0(0x1f1)])),'onSelect':()=>_0x257771[_0x59a9b0(0x310)](_0xb56cbf['area'])})),..._0x257771['onMoveUp']?[{'type':_0x59a9b0(0x485),'children':_0x46aee4['t']('bases-dashboard-ui.mobile.moveUp'),'onSelect':_0x257771[_0x59a9b0(0x36c)]}]:[],..._0x257771['onMoveDown']?[{'type':_0x59a9b0(0x485),'children':_0x46aee4['t'](_0x59a9b0(0x15b)),'onSelect':_0x257771[_0x59a9b0(0x491)]}]:[],{'type':_0x59a9b0(0x485),'children':_0x46aee4['t'](_0x59a9b0(0x295)),'onSelect':_0x257771[_0x59a9b0(0x31c)]},{'type':_0x59a9b0(0x485),'children':_0x46aee4['t'](_0x18e868?'bases-dashboard-ui.pivot.fieldSettings':_0x59a9b0(0x425)),'onSelect':_0x18e868?_0x257771[_0x59a9b0(0x456)]:_0x257771[_0x59a9b0(0x428)]}];return _0x391b30(_0x59a9b0(0x402),{'draggable':!0x1,'style':{'minHeight':0x30},'className':'univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','onDragEnd':_0x257771[_0x59a9b0(0x264)],'onDragStart':_0x257771[_0x59a9b0(0x2b7)],'children':[_0x143050(_0x3dcdeb,{'title':_0x257771[_0x59a9b0(0x29f)][_0x59a9b0(0x39e)],'children':_0x143050(_0x59a9b0(0x378),{'className':_0x59a9b0(0x434),'children':_0x257771[_0x59a9b0(0x29f)][_0x59a9b0(0x39e)]})}),_0x143050(Xr,{'align':_0x59a9b0(0x33d),'items':_0x4b29be,'children':_0x143050(_0x11a8c2,{'variant':_0x59a9b0(0x3f3),'aria-label':_0x46aee4['t']('bases-dashboard-ui.pivot.fieldSettings'),'children':_0x143050(_0x5d1e68,{})})})]});}function _0x416b(){const _0x22ba54=['radar','tabular','onRemove','bases-dashboard-ui.pivot.valuePosition','getSnapshot','bases-dashboard-ui.dashboardInspector.contain','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','isTopTotal','BASE_DASHBOARD_UI_PLUGIN','small','Pie','register','pivotViewId','bases-dashboard-ui.dashboardInspector.number','bases-dashboard-ui.pivot.showColumnSubtotal','univer-flex\x20univer-h-full\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','backgroundColor','startScrollTop','orient','bases-dashboard-ui.chart.section.paretoLine','IS_NOT_EMPTY','_renderModelManager','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','17068987QYoNBS','average','VerticalAxis','stroke','clientY','bases-dashboard-ui.dashboardInspector.cover','bases-dashboard-ui.chart.common.customize','set','measure','bases-dashboard-ui.dashboardInspector.dragWidget','lastCol','errorType','end','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','operator','formula','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','darkMode$','dataFieldId','_chartThemeService','function','redos','views','forEach','showColGrandTotal','getImage','columnSpan','widgets','numberFormat','disconnect','prototype','bases-dashboard-ui.chart.chartTypes.area','presentation','bases-dashboard-ui.operators.lessThanOrEqual','Progress','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','univer-size-5\x20univer-text-primary-600','GeneralSeries','fullscreenchange','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','prefix','preventDefault','bases-dashboard-ui.mobile.permissions','unsubscribe','base-pivot-chart-style','univer-bg-gray-0\x20dark:!univer-bg-gray-900','allSeriesStyle','rgb','base-pivot-chart-configuration','baseChartDataAnimationDuration','base64Cache','bases-dashboard-ui.pivot.chartOnly','percent','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','outline','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','onDragOver','undos','onMoveUp','decimalPlaces','LESS_THAN','getDashboard','data:','1.3.0','bases-dashboard-ui.pivot.chartConfiguration','destructive','pattern','replaceChildren','change','univer-cursor-grab','span','Sunburst','model','no-repeat','cornerView','count','includes','univer-border-0\x20univer-bg-transparent','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','stdDevp','pivot','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.dashboardInspector.custom','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','primary','paragraphId','disposeWithMe','render','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','length','type','shapeId','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','bases-dashboard-ui.dashboard.addWidget','canView','bases-dashboard-ui.pivot.dropFieldsHere','setSubtotalType','supports','info','descending','scrollTop','bases-dashboard-ui.dashboard.tableFilter','univer-mt-2','valueIndex','IS_EMPTY','fontSize','bases-dashboard-ui.chart.section.wordCloud','lineAndArea','displayName','bases-dashboard-ui.pivot.description','shapeData','univer-grid\x20univer-gap-2\x20univer-p-3','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','countNums','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','executeChartUpdateConfig','Relation','10HhKJmU','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','bases-dashboard-ui.dashboard.pivotChart','#,##0','bases-dashboard-ui.pivot.stdDevPopulation','syncLayout','image/*','formatMap','group','addFieldWithSourceId','bases-dashboard-ui.chart.section.indicatorLine','univer-text-sm','bases-dashboard-ui.dashboard.deleteWidget','onStarting','univer-size-6\x20!univer-border\x20!univer-border-solid\x20!univer-border-gray-200\x20!univer-bg-gray-0\x20univer-p-0\x20!univer-shadow-none\x20hover:!univer-bg-gray-100\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900\x20dark:hover:!univer-bg-gray-800','max','bases-dashboard-ui.dashboardInspector.right','addImageSourceCache','stopPropagation','product','bases-dashboard-ui.chart.section.gauge','dashboard-text-','137997WBZwIb','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','Pivot','corner:','sum','Value','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','then','bases-dashboard-ui.dashboardInspector.delete','result','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','GREATER_THAN_OR_EQUAL','waterfall','ParetoBarSeries','header','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','Currency','General','showRowGrandTotal','bases-dashboard-ui.dashboardInspector.clear','setCurrentUnitForType','_configService','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-px-4\x20dark:!univer-border-gray-700','bases-dashboard-ui.dashboardInspector.editData','documentElement','decorate','AND','bases-dashboard-ui.dashboard.resizeWidget','_element','Boxplot','titles','univer-grid\x20univer-gap-4','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','subscribe','getTableFieldsByDataFieldId','operand','bases-dashboard-ui.mobile.moveUp','bases-dashboard-ui.dashboard.configure','shapeType','row','bases-dashboard-ui.dashboardInspector.editFormula','bases-dashboard-ui.dashboardInspector.replaceImage','removeField','univer-grid\x20univer-gap-4\x20univer-p-4','univer-flex\x20univer-justify-end\x20univer-gap-2','bases-dashboard-ui.pivot.downThenAcross','dimension','paragraphs','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','createDomChartInstance','stdDev','headerRowCount','bind','showColSubtotal','text','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','bases-dashboard-ui.chart.common.setup','BEFORE','bases-dashboard-ui.dashboard.redo','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-96\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.tableOnly','renameField','isConnected','RoundRect','_localeService','transparent','indicatorLine','bottom','bases-dashboard-ui.pivot.acrossThenDown','div','separator','Subtotal','bases-dashboard-ui.pivot.fields','saveAttachment','section','base-pivot-chart-setup','cover','pipe','document','990EQHEOX','labelId','dom','trendline','changed$','join','AFTER','mode','createElement','contain','subUnitId','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','Base\x20dashboard\x20chart\x20','Image','visibilityState','bases-dashboard-ui.chart.section.candlestick','repeatRowLabels','univer-w-36','bases-dashboard-ui.dashboard.search','_createContext','UNIVER_BASE','univer-h-full\x20univer-w-full\x20univer-bg-transparent','univer-flex\x20univer-flex-col','false','RightVerticalAxis','bases-dashboard-ui.pivot.filterField','bases-dashboard-ui.dashboardInspector.style','bases-dashboard-ui.dashboard.widgetActions','onFilter','None','[data-dashboard-widget]','border','bases-dashboard-ui.dashboard.image','bases-dashboard-ui.dashboardInspector.alignment','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','undoRedoStatus$','bases-dashboard-ui.chart.common.series','updateValuePosition','Dom','match','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','IS_NOT','bases-dashboard-ui.dashboardInspector.textColor','valueFields','7476KHsDkZ','bases-dashboard-ui.chart.common.switchRowColumn','snapshot','bases-dashboard-ui.chart.common.rightVerticalAxis','bases-dashboard-ui.dashboard.undo','bases-dashboard-ui.pivot.count','get','(prefers-reduced-motion:\x20reduce)','bases-dashboard-ui.pivot.display','resizeDirection','base-pivot-options','bases-dashboard-ui.pivot.blank','removeEventListener','original','bases-dashboard-ui.dashboardInspector.decimalPlaces','315241vrJkTg','list','HorizontalAxis','SolidFill','bases-dashboard-ui.chart.section.pie','button','radius','_injector','bases-dashboard-ui.dashboardInspector.selectOption','fit','change$','every','style','markReady','onSettings','bases-dashboard-ui.pivot.repeatColumnLabels','bases-dashboard-ui.dashboardInspector.currencyCode','bases-dashboard-ui.pivot.name','conjunction','unitId','bases-dashboard-ui.config','univer-flex\x20univer-min-h-full\x20univer-flex-col','ChartAndAxisTitles','bases-dashboard-ui.pivot.numberFormat','univer-flex','bases-dashboard-ui.dashboard.new','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','bases-dashboard-ui.chart.common.horizontalAxis','Filter','bases-dashboard-ui.chart.section.waterfall','input','getValueIndex','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','getImageSourceCache','focusUnit','bases-dashboard-ui.operators.isEmpty','bases-dashboard-ui.dashboard.fullScreen','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','itemTypes','value','funnel','fill','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','general','4HsNQJc','setLayout','getRect','refreshChartRuntime','waterfallStyle','bases-dashboard-ui.pivot.filters','default','startX','lastRow','univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','pareto','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','bases-dashboard-ui.dashboard.delete','dispose','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','right','height','item','toPrimitive','widgetOrder','Candlestick','subtotal','getDataFieldByTableId','bases-dashboard-ui.dashboardInspector.formula','bases-dashboard-ui.pivot.pivotConfiguration','trim','print','direction$','tableOrder','onMoveDown','fieldOrder','Series','config$','bases-dashboard-ui.chart.section.paretoBar','minmax(0,\x203fr)\x20minmax(0,\x202fr)','context','matchMedia','LineAndArea','bases-dashboard-ui.dashboardInspector.dataSource','rightYAxis','legend','auto','Date','PivotChart','pageRows','getAttachmentUrl','univer-flex\x20univer-min-h-0\x20univer-flex-1','getOwnPropertyDescriptor','bases-dashboard-ui.pivot.layout','isFinite','Style','bases-dashboard-ui.pivot.showRowSubtotal','overflow','top','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Column','univer-mx-auto\x20univer-size-6','bases-dashboard-ui.dashboardInspector.left','base-pivot-chart','axis','color','indexOf','univer-size-8\x20univer-p-0\x20univer-text-red-500','permissionPointUpdate$','Text','bases-dashboard-ui.chart.section.radar','bases-dashboard-ui.pivot.confirm','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-whitespace-nowrap\x20univer-border\x20univer-border-gray-200\x20univer-px-3\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-left\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.dashboardInspector.currency','bases-dashboard-ui.mobile.moveDown','bases-dashboard-ui.dashboard.rename','innerHeight','0\x200','showRowSubtotal','univer-w-full','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','bases-dashboard-ui.pivot.top','isTotal','CONTAINS','baseChartDataAnimation','grouped','isSubtotal','univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','segmented','object','dashboard-chart-style','bases-dashboard-ui.pivot.pageDirection','Person','bases-dashboard-ui.dashboardInspector.general','baseOn','univer-mb-3\x20univer-text-sm\x20univer-font-medium','delete','link','map','base-pivot-fields','GREATER_THAN','rightY','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','defaultValue','current','thead','key','bases-dashboard-ui.pivot.showColumnGrandTotal','bases-dashboard-ui.dashboardInspector.reset','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','bases-dashboard-ui.dashboard.formulaShape','imageSourceType','toLocaleLowerCase','filterFields','has','dataSource','GrandTotal','pointerup','rowView','getCurrentTheme','left','univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','executeCommand','bases-dashboard-ui.pivot.defaultName','doc','px\x20solid\x20','startY','localeKey','bases-dashboard-ui.dashboardInspector.removeImage','\x20/\x20span\x20','TableFilter','bases-dashboard-ui.pivot.pageWrap','chart','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','516sWuXJZ','rowSubtotalPosition','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','WordCloud','repeatColLabels','grandTotal','label','ascending','pageWrap','setStyle','bases-dashboard-ui.pivot.bottom','cumulativeLineStyle','ManualFilter','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','updateFieldPosition','Sankey','bases-dashboard-ui.pivot.average','contains','pointerX','univer-grid\x20univer-gap-3\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','univer-min-w-0\x20univer-flex-1','headerMap','rowSpan','pointermove','bases-dashboard-ui.chart.section.chord','bases-dashboard-ui.dashboard.add','sortInfo','\x20has\x20no\x20render\x20config.','alt','univer-relative\x20univer-z-10','getRuntimeContext','textStyle','fieldId','isArray','dataset','currentTarget','bases-dashboard-ui.pivot.sum','bases-dashboard-ui.dashboardInspector.uploadImage','bases-dashboard-ui.pivot.rows','currentTheme$','getResource','flex-start','observe','currency','Heatmap','number','bases-dashboard-ui.pivot.addToColumn','flatMap','alignment','title','univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','univer-shrink-0\x20univer-rounded-full\x20univer-bg-gray-200\x20univer-px-2\x20univer-py-0.5\x20univer-text-xs\x20univer-text-gray-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-300','file','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','page:','setConfig','releaseChartRuntime','4264271yGDKua','bases-dashboard-ui.chart.chartTypes.','children','center','\x20/\x20','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','dataModel','format','round','PieStyle','NumberFormat','fullscreenElement','replace','YYYY-MM-DD','fontSizeMode','conditions','bases-dashboard-ui.pivot.displayName','tbody','matches','bases-dashboard-ui.dashboard.section','bases-dashboard-ui.pivot.dataSource','28273WpDEsR','bases-dashboard-ui.pivot.addToRow','push','column','12wRZyAJ','columnFields','bases-dashboard-ui.chart.common.chartStyle','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','entries','toUpperCase','USD','bases-dashboard-ui.dashboardInspector.sourceUnavailable','area','acquireChartRuntime','onDrop','items','bases-dashboard-ui.chart.section.sunburst','name','bases-dashboard-ui.pivot.product','bases-dashboard-ui.pivot.countNumbers','univer-flex\x20univer-flex-col\x20univer-gap-4','univer-bg-transparent\x20dark:!univer-bg-transparent','border-box','Chord','Line','Radar','setSortInfo','move','displayMode','fields','univer-flex\x20univer-items-center\x20univer-gap-2','bases-dashboard-ui.pivot.cancel','valuePosition','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.dashboardInspector.textSize','aside','univer-pointer-events-none\x20univer-absolute\x20univer-z-30\x20univer-appearance-none\x20univer-p-0\x20univer-opacity-0\x20!univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','style$','bases-dashboard-ui.dashboardInspector.numberFormat','gray','bases-dashboard-ui.dashboardInspector.data','univer-size-5\x20univer-rotate-90','bases-dashboard-ui.chart.section.treemap','Funnel','getUnit','setLabelFilterInfo','formulaBinding','packageName','getFieldPositionInfoById','Treemap','blank','base-pivot-table-configuration','clientWidth','lineStrokeType','stringify','RecordId','univer-relative\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-50\x20dark:univer-bg-gray-950','onCancel','img','bases-dashboard-ui.pivot.calculationFailed','getOptions','view','bases-dashboard-ui.pivot.grandTotal','scrollWidth','dataAggregation','borderRadius','bases-dashboard-ui.pivot.rowSubtotalPosition','univer-mt-2\x20univer-w-full','univer-shrink-0\x20univer-px-3','options','bases-dashboard-ui.dashboardInspector.originalSize','values','Positive','bases-dashboard-ui.dashboardInspector.enterValue','ownerDocument','ChartStyle','article','univer-flex\x20univer-h-full\x20univer-w-[380px]\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','onReady','custom','bases-dashboard-ui.operators.notContains','currentColor','series','boxSizing','barStyle','initial','clientHeight','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','chart-and-table','Area','description','bases-dashboard-ui.chart.common.verticalAxis','getChartRuntime','bases-dashboard-ui.dashboardInspector.checked','createChartInstance','base-pivot-chart-','bases-dashboard-ui.chart.section.relation','bases-dashboard-ui.operators.isNot','size','shapeText','Histogram','hidden','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','from','rowCount','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','_config','files','width','sourceType','bases-dashboard-ui.pivot.chartAndTable','Scatter','rowType','darkMode','requestFullscreen','varp','bases-dashboard-ui.dashboardInspector.backgroundColor','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','version','univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-flex-col\x20univer-justify-center\x20univer-overflow-hidden\x20univer-bg-gray-0\x20univer-p-4\x20univer-text-gray-1000\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-50','date','BaseDashboard','dashboards','renderTransition','resolve','onDragEnd','setOptions','tableId','filter','slice','wordCloud','table','system','keydown','getFieldCountByArea','isHeader','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','UpdatedAt','Waterfall','test','bases-dashboard-ui.pivot.values','string','bases-dashboard-ui.pivot.min','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','bases-dashboard-ui.chart.common.legend','renderRevision','univer-flex\x20univer-gap-2','univer-size-4','bases-dashboard-ui.pivot.stdDev','bases-dashboard-ui.pivot.clearFilter','bases-dashboard-ui.dashboard.editWidget','univer-flex-1','UUID','error','layout','bases-dashboard-ui.operators.is','Bubble','bases-dashboard-ui.dashboardInspector.compact','bases-dashboard-ui.pivot.ascending','call','pluginName','symbol','8944yitJmi','Number','bases-dashboard-ui.dashboardInspector.autoFit','catch','rowFields','clientX','bases-dashboard-ui.pivot.variance','bases-dashboard-ui.pivot.fieldSettings','click','getId','144IaFRee','parentElement','bases-dashboard-ui.pivot.removeField','scrollHeight','bases-dashboard-ui.dashboardInspector.description','pageView','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','some','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','univer-group\x20univer-relative\x20univer-flex\x20univer-min-h-0\x20univer-flex-col\x20univer-overflow-visible\x20univer-rounded-lg\x20univer-border\x20univer-shadow-sm\x20univer-transition-shadow','NOT_CONTAINS','minmax(0,\x201fr)','field','Legend','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','CreatedAt','univer-pointer-events-auto\x20univer-opacity-100','bases-dashboard-ui.chart.common.trendline','pageOverThenDown','data','resize','chartType','saveImage','bases-dashboard-ui.chart.section.gridlinesAndTicks','dashboard-chart-setup','setFieldFormat','split','fillType','bases-dashboard-ui.pivot.columns','textColor','compact','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','relation','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','ParetoLineSeries','var','onDragStart','FormulaShape','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','defineProperty','colView','index','closest','select','min','initialLayouts','pointerY','Row','true','bases-dashboard-ui.dashboardInspector.backgroundImage','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','createRenderInput','filterInfo','waterfall.negative','src','bases-dashboard-ui.pivot.layoutOutline','Group','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','pie','waterfall.positive','body','bases-dashboard-ui.dashboardInspector.center','@univerjs-pro/bases-dashboard-ui','bases-dashboard-ui.chart.common.editChart','getPresentation','IndicatorLine','bases-dashboard-ui.pivot.variancePopulation','source','univer-truncate','find','univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','appearance','Gauge','Rating','univer-text-gray-400','Trendline','univer-w-full\x20univer-justify-start','decimal','accept','bases-dashboard-ui.chart.section.histogram','univer-cursor-grabbing','univer-w-24','Checkbox','bases-dashboard-ui.chart.common.chartAndAxisTitles','Axes','bases-dashboard-ui.pivot.searchFields','SingleSelect','tables','onCommit','bases-dashboard-ui.pivot.descending','blur','bases-dashboard-ui.pivot.layoutCompact','target','getBoundingClientRect','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','dataView','dashboardOrder','bases-dashboard-ui.pivot.calculating','bases-dashboard-ui.dashboardInspector.grouped','backgroundImage','bases-dashboard-ui.dashboard.text','url(','bases-dashboard-ui.dashboardInspector.loading','addEventListener','bases-dashboard-ui.pivot.sourceFields','bases-dashboard-ui.pivot.options','bases-dashboard-ui.dashboardInspector.close','exitFullscreen','MultipleGrandTotal','bases-dashboard-ui.pivot.addToFilter','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','toJSON','univer-m-3','add','bases-dashboard-ui.dashboardInspector.repeat','bases-dashboard-ui.pivot.repeatRowLabels','config','Data','repeat','activeRuntimeModel','viewOrder','isBottomTotal','onMove','bases-dashboard-ui.pivot.layoutTabular','subItem','bases-dashboard-ui.operators.lessThan','bases-dashboard-ui.dashboardInspector.percent','ceil','rows','bases-dashboard-ui.chart.','bases-dashboard-ui.chart.waterfall.subtotal','bases-dashboard-ui.pivot.selectAll'];_0x416b=function(){return _0x22ba54;};return _0x416b();}function Gi(_0x49d4f7){const _0x4b8924=_0x410bd1;var _0x44662e,_0x206e2b;let _0x2617ce=_0x20ec70(_0x4f7627),{format:_0x56fc40,items:_0x43fde6,itemTypes:_0x2e45f6}=_0x10a2b7(()=>{const _0x480bd8=_0x10b1;let _0x865349=_0x3cec59(_0x49d4f7[_0x480bd8(0x26a)],_0x49d4f7[_0x480bd8(0x43b)]);try{let _0xb1d2a=_0x865349[_0x480bd8(0x48a)](_0x49d4f7[_0x480bd8(0x1b7)]);return{'format':_0xb1d2a==null?void 0x0:_0xb1d2a[_0x480bd8(0x1d7)],'items':[...(_0xb1d2a==null?void 0x0:_0xb1d2a[_0x480bd8(0x1f4)])??[]],'itemTypes':[...(_0xb1d2a==null?void 0x0:_0xb1d2a[_0x480bd8(0x46e)])??[]]};}finally{_0x865349['dispose']();}},[_0x49d4f7['fieldId'],_0x49d4f7[_0x4b8924(0x43b)],_0x49d4f7[_0x4b8924(0x26a)]]),_0x20cc3f=(_0x44662e=_0x49d4f7['snapshot'][_0x4b8924(0x3eb)][_0x49d4f7[_0x4b8924(0x1b7)]])==null?void 0x0:_0x44662e[_0x4b8924(0x2c8)],[_0x210f4a,_0x581c2b]=_0x5e5f09((_0x20cc3f==null?void 0x0:_0x20cc3f['type'])===_0x315feb[_0x4b8924(0x1a3)]?_0x20cc3f[_0x4b8924(0x449)]:_0x43fde6),[_0x5d97cf,_0x26f106]=_0x5e5f09((_0x206e2b=_0x49d4f7[_0x4b8924(0x43b)][_0x4b8924(0x3eb)][_0x49d4f7['fieldId']])==null||(_0x206e2b=_0x206e2b[_0x4b8924(0x1b1)])==null?void 0x0:_0x206e2b[_0x4b8924(0x38c)]),_0x268bf2=_0x210f4a[_0x4b8924(0x38b)]===_0x43fde6[_0x4b8924(0x38b)],_0x126460=_0x391b30('section',{'className':_0xec79e5(_0x4b8924(0x24f),_0x1f0d20),'children':[_0x143050('div',{'className':_0x4b8924(0x170),'children':_0x2617ce['t'](_0x4b8924(0x425))}),_0x391b30('div',{'className':'univer-flex','children':[_0x391b30(_0x11a8c2,{'className':_0x4b8924(0x27e),'variant':_0x5d97cf===_0x1e9e18[_0x4b8924(0x19e)]?_0x4b8924(0x386):'default','onClick':()=>_0x26f106(_0x1e9e18[_0x4b8924(0x19e)]),'children':[_0x143050(_0x52227c,{}),_0x2617ce['t']('bases-dashboard-ui.pivot.ascending')]}),_0x391b30(_0x11a8c2,{'className':_0x4b8924(0x27e),'variant':_0x5d97cf===_0x1e9e18[_0x4b8924(0x395)]?_0x4b8924(0x386):_0x4b8924(0x47a),'onClick':()=>_0x26f106(_0x1e9e18[_0x4b8924(0x395)]),'children':[_0x143050(_0x5c0c38,{}),_0x2617ce['t']('bases-dashboard-ui.pivot.descending')]})]}),_0x391b30(_0x4b8924(0x402),{'className':'univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','children':[_0x391b30(_0x4b8924(0x19d),{'className':_0x4b8924(0x3cc),'children':[_0x143050(_0x10db4e,{'checked':_0x268bf2,'indeterminate':_0x210f4a[_0x4b8924(0x38b)]>0x0&&!_0x268bf2,'onChange':()=>_0x581c2b(_0x268bf2?[]:_0x43fde6)}),_0x2617ce['t'](_0x4b8924(0x319))]}),_0x43fde6['map']((_0x4e0515,_0x5d5bcb)=>_0x391b30(_0x4b8924(0x19d),{'className':_0x4b8924(0x3cc),'children':[_0x143050(_0x10db4e,{'checked':_0x210f4a['includes'](_0x4e0515),'onChange':()=>_0x581c2b(_0x323d46=>_0x323d46[_0x4b8924(0x37e)](_0x4e0515)?_0x323d46['filter'](_0x3a5af2=>_0x3a5af2!==_0x4e0515):[..._0x323d46,_0x4e0515])}),_0x143050('span',{'className':_0x4b8924(0x2d9),'children':Yi(_0x4e0515,_0x2e45f6[_0x5d5bcb],_0x56fc40,_0x2617ce['t'](_0x4b8924(0x444)))})]},_0x4e0515))]}),_0x391b30(_0x4b8924(0x402),{'className':_0x4b8924(0x1a4),'children':[_0x143050(_0x11a8c2,{'variant':'link','onClick':()=>_0x49d4f7[_0x4b8924(0x2ed)](_0x43fde6,_0x5d97cf),'children':_0x2617ce['t'](_0x4b8924(0x27c))}),_0x391b30(_0x4b8924(0x402),{'className':'univer-flex\x20univer-gap-2','children':[_0x143050(_0x11a8c2,{'onClick':_0x49d4f7[_0x4b8924(0x21e)],'children':_0x2617ce['t'](_0x4b8924(0x204))}),_0x143050(_0x11a8c2,{'variant':'primary','disabled':_0x210f4a['length']===0x0,'onClick':()=>_0x49d4f7[_0x4b8924(0x2ed)](_0x210f4a,_0x5d97cf),'children':_0x2617ce['t'](_0x4b8924(0x158))})]})]})]});return _0x143050(_0x2e2cb1,{'title':_0x2617ce['t']('bases-dashboard-ui.pivot.filterField'),'onClose':_0x49d4f7[_0x4b8924(0x21e)],'children':_0x126460});}function Ki(_0x40eb6a){const _0x22f40c=_0x410bd1;var _0x4c842b,_0x1b4649,_0x4e61e8;let _0x52c290=_0x20ec70(_0x4f7627),[_0x3f0a17,_0x1fd139]=_0x5e5f09(((_0x4c842b=_0x40eb6a['field'])==null?void 0x0:_0x4c842b[_0x22f40c(0x39e)])??''),[_0x135307,_0xa1f2d1]=_0x5e5f09(((_0x1b4649=_0x40eb6a['field'])==null?void 0x0:_0x1b4649['subtotal'])??_0x9fb623[_0x22f40c(0x3c1)]),[_0x4e503f,_0x52bddf]=_0x5e5f09(((_0x4e61e8=_0x40eb6a[_0x22f40c(0x29f)])==null?void 0x0:_0x4e61e8[_0x22f40c(0x1d7)])??'');if(!_0x40eb6a[_0x22f40c(0x29f)])return null;let _0x271d4f=_0x391b30(_0x22f40c(0x407),{'className':_0xec79e5(_0x22f40c(0x2a1),_0x1f0d20),'children':[_0x143050('div',{'className':'univer-text-sm\x20univer-font-medium','children':_0x52c290['t'](_0x22f40c(0x290))}),_0x391b30('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x52c290['t'](_0x22f40c(0x1e0)),_0x143050(_0x56be65,{'value':_0x3f0a17,'onChange':_0x1fd139})]}),_0x391b30(_0x22f40c(0x19d),{'className':_0x22f40c(0x24c),'children':[_0x52c290['t']('bases-dashboard-ui.pivot.summarizeBy'),_0x143050(Yr,{'value':String(_0x135307),'options':zi[_0x22f40c(0x173)](_0x5e6d23=>({'value':String(_0x5e6d23[_0x22f40c(0x46f)]),'label':_0x52c290['t'](_0x5e6d23['localeKey'])})),'onChange':_0x3613af=>{const _0x460e9e=_0x22f40c;let _0x21d8ac=zi[_0x460e9e(0x2da)](_0x5dec25=>String(_0x5dec25[_0x460e9e(0x46f)])===_0x3613af);_0x21d8ac&&_0xa1f2d1(_0x21d8ac[_0x460e9e(0x46f)]);}})]}),_0x391b30(_0x22f40c(0x19d),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x52c290['t'](_0x22f40c(0x45f)),_0x143050(_0x56be65,{'value':_0x4e503f,'onChange':_0x52bddf})]}),_0x391b30(_0x22f40c(0x402),{'className':_0x22f40c(0x3e9),'children':[_0x143050(_0x11a8c2,{'onClick':_0x40eb6a[_0x22f40c(0x21e)],'children':_0x52c290['t'](_0x22f40c(0x204))}),_0x143050(_0x11a8c2,{'variant':_0x22f40c(0x386),'disabled':!_0x3f0a17[_0x22f40c(0x48d)](),'onClick':()=>_0x40eb6a[_0x22f40c(0x2ed)](_0x3f0a17[_0x22f40c(0x48d)](),_0x135307,_0x4e503f),'children':_0x52c290['t'](_0x22f40c(0x158))})]})]});return _0x143050(_0x2e2cb1,{'title':_0x52c290['t'](_0x22f40c(0x290)),'onClose':_0x40eb6a['onCancel'],'children':_0x271d4f});}function qi(_0x1c0b33){const _0x24dbd3=_0x410bd1;let {config:_0x4a7690,commit:_0x18e130}=_0x1c0b33,_0x1253ca=_0x20ec70(_0x4f7627),_0x3b5aa8=_0x4a7690[_0x24dbd3(0x382)][_0x24dbd3(0x22a)],_0x209c25=_0x5b1cba=>_0x18e130(_0x510994=>_0x510994[_0x24dbd3(0x265)]({..._0x510994[_0x24dbd3(0x221)](),..._0x5b1cba}));return _0x391b30(_0x24dbd3(0x402),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x391b30(_0x24dbd3(0x19d),{'className':_0x24dbd3(0x2b2),'children':[_0x1253ca['t']('bases-dashboard-ui.pivot.layout'),_0x143050(Yr,{'className':_0x24dbd3(0x41d),'value':String(_0x4a7690[_0x24dbd3(0x382)]['layout']),'options':[{'value':String(_0x5a28d1[_0x24dbd3(0x31b)]),'label':_0x1253ca['t'](_0x24dbd3(0x311))},{'value':String(_0x5a28d1['compact']),'label':_0x1253ca['t'](_0x24dbd3(0x2f0))},{'value':String(_0x5a28d1[_0x24dbd3(0x368)]),'label':_0x1253ca['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x501c7e=>{const _0x5155ce=_0x24dbd3;let _0x3b9d79=[_0x5a28d1[_0x5155ce(0x31b)],_0x5a28d1[_0x5155ce(0x2b1)],_0x5a28d1[_0x5155ce(0x368)]][_0x5155ce(0x2da)](_0x10b1fa=>String(_0x10b1fa)===_0x501c7e);_0x3b9d79!==void 0x0&&_0x18e130(_0x4da1be=>_0x4da1be[_0x5155ce(0x475)](_0x3b9d79));}})]}),[{'key':_0x24dbd3(0x41c),'label':_0x24dbd3(0x309),'defaultValue':!0x1},{'key':_0x24dbd3(0x19b),'label':_0x24dbd3(0x457),'defaultValue':!0x1},{'key':_0x24dbd3(0x15f),'label':_0x24dbd3(0x4a7),'defaultValue':!0x0},{'key':_0x24dbd3(0x3cf),'label':'bases-dashboard-ui.pivot.showRowGrandTotal','defaultValue':!0x0},{'key':_0x24dbd3(0x3f2),'label':_0x24dbd3(0x328),'defaultValue':!0x0},{'key':_0x24dbd3(0x34a),'label':_0x24dbd3(0x17c),'defaultValue':!0x0}][_0x24dbd3(0x173)](_0x50b85f=>_0x391b30('label',{'className':_0x24dbd3(0x304),'children':[_0x143050(_0x10db4e,{'checked':!!(_0x3b5aa8[_0x50b85f[_0x24dbd3(0x17b)]]??_0x50b85f[_0x24dbd3(0x178)]),'disabled':_0x50b85f[_0x24dbd3(0x17b)]===_0x24dbd3(0x41c)&&_0x4a7690[_0x24dbd3(0x382)][_0x24dbd3(0x281)]===_0x5a28d1[_0x24dbd3(0x2b1)],'onChange':_0x277fa5=>_0x209c25({[_0x50b85f['key']]:!!_0x277fa5})}),_0x1253ca['t'](_0x50b85f['label'])]},_0x50b85f[_0x24dbd3(0x17b)])),_0x4a7690[_0x24dbd3(0x382)][_0x24dbd3(0x281)]===_0x5a28d1[_0x24dbd3(0x368)]&&_0x391b30(_0x24dbd3(0x19d),{'className':_0x24dbd3(0x2b2),'children':[_0x1253ca['t'](_0x24dbd3(0x227)),_0x143050(Yr,{'className':'univer-w-36','value':String(_0x3b5aa8['rowSubtotalPosition']??_0x5ba910[_0x24dbd3(0x4a9)]),'options':[{'value':String(_0x5ba910[_0x24dbd3(0x4a9)]),'label':_0x1253ca['t'](_0x24dbd3(0x162))},{'value':String(_0x5ba910['bottom']),'label':_0x1253ca['t'](_0x24dbd3(0x1a1))}],'onChange':_0x13c9bb=>{const _0x2eee99=_0x24dbd3;let _0x4412db=[_0x5ba910[_0x2eee99(0x4a9)],_0x5ba910[_0x2eee99(0x400)]][_0x2eee99(0x2da)](_0x54f90a=>String(_0x54f90a)===_0x13c9bb);_0x4412db!==void 0x0&&_0x209c25({'rowSubtotalPosition':_0x4412db});}})]}),_0x391b30(_0x24dbd3(0x19d),{'className':_0x24dbd3(0x2b2),'children':[_0x1253ca['t']('bases-dashboard-ui.pivot.valuePosition'),_0x143050(Yr,{'className':_0x24dbd3(0x41d),'value':String(_0x4a7690['pivot'][_0x24dbd3(0x205)]===_0xeddb61[_0x24dbd3(0x429)]?_0xeddb61[_0x24dbd3(0x4ab)]:_0x4a7690[_0x24dbd3(0x382)][_0x24dbd3(0x205)]),'options':[{'value':String(_0xeddb61['Column']),'label':_0x1253ca['t'](_0x24dbd3(0x2af))},{'value':String(_0xeddb61['Row']),'label':_0x1253ca['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x547cae=>{const _0xcbad2f=_0x24dbd3;let _0x2170f3=[_0xeddb61[_0xcbad2f(0x4ab)],_0xeddb61[_0xcbad2f(0x2c3)]][_0xcbad2f(0x2da)](_0x5d6abb=>String(_0x5d6abb)===_0x547cae);_0x2170f3!==void 0x0&&_0x18e130(_0x21ba8d=>_0x21ba8d['updateValuePosition'](_0x2170f3,_0x21ba8d[_0xcbad2f(0x467)]()<0x0?0x0:_0x21ba8d[_0xcbad2f(0x467)]()));}})]}),_0x391b30(_0x24dbd3(0x19d),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x1253ca['t']('bases-dashboard-ui.pivot.pageWrap'),_0x143050(_0x137e64,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x3b5aa8['pageWrap']??0x1,'onChange':_0x564e6d=>{let _0x6056e2=Number(_0x564e6d);Number['isFinite'](_0x6056e2)&&_0x6056e2>=0x1&&_0x209c25({'pageWrap':_0x6056e2});}})]}),_0x391b30(_0x24dbd3(0x19d),{'className':_0x24dbd3(0x2b2),'children':[_0x1253ca['t']('bases-dashboard-ui.pivot.pageDirection'),_0x143050(Yr,{'className':'univer-w-36','value':String(_0x3b5aa8[_0x24dbd3(0x2a5)]??!0x1),'options':[{'value':_0x24dbd3(0x423),'label':_0x1253ca['t'](_0x24dbd3(0x3ea))},{'value':_0x24dbd3(0x2c4),'label':_0x1253ca['t'](_0x24dbd3(0x401))}],'onChange':_0xb6c577=>_0x209c25({'pageOverThenDown':_0xb6c577===_0x24dbd3(0x2c4)})})]})]});}function Ji(_0x2f81cf,_0x3e661b,_0x43e810,_0x49a138){const _0x3c6db3=_0x410bd1;let _0x1fe3dc=_0x2f81cf[_0x3c6db3(0x3df)](_0x3e661b)['find'](_0x1207fc=>_0x2f81cf[_0x3c6db3(0x215)](_0x1207fc[_0x3c6db3(0x292)]())['area']!==_0x3c113a[_0x3c6db3(0x3c2)]);_0x43e810!==_0x3c113a[_0x3c6db3(0x3c2)]&&_0x1fe3dc?_0x2f81cf['updateFieldPosition'](_0x1fe3dc[_0x3c6db3(0x292)](),_0x43e810,_0x49a138):_0x2f81cf[_0x3c6db3(0x3b0)](_0x3e661b,_0x43e810,_0x49a138);}function Yi(_0x292d4b,_0xb11c75,_0x566430,_0x2b9847){const _0x2bf40a=_0x410bd1;return _0xb11c75===_0x15e35b[_0x2bf40a(0x217)]?_0x2b9847:_0xb11c75===_0x15e35b[_0x2bf40a(0x25f)]&&_0x566430?_0x5140c1[_0x2bf40a(0x1d7)](_0x566430,Number(_0x292d4b)):_0x292d4b;}function Xi(_0x11279f){const _0x38e3a6=_0x410bd1;return _0x11279f['type']===_0xac378e[_0x38e3a6(0x28a)]||_0x11279f[_0x38e3a6(0x38c)]===_0xac378e[_0x38e3a6(0x3cd)]||_0x11279f[_0x38e3a6(0x38c)]===_0xac378e[_0x38e3a6(0x354)]||_0x11279f[_0x38e3a6(0x38c)]===_0xac378e[_0x38e3a6(0x2de)];}function Zi(_0x283aac){const _0x39e329=_0x410bd1;switch(_0x283aac){case _0x3c113a[_0x39e329(0x2c3)]:return _0x39e329(0x1e6);case _0x3c113a['Column']:return _0x39e329(0x1c5);case _0x3c113a[_0x39e329(0x3c2)]:return'bases-dashboard-ui.pivot.addToValue';default:return _0x39e329(0x302);}}function Qi({config:_0x268f5e,onChange:_0x352101,runtime:_0x2d9ebd,table:_0x979894}){const _0x1d92b0=_0x410bd1;let _0x277472=_0x20ec70(_0x4f7627),[_0x1075f5,_0x1a866e]=_0x5e5f09(_0x1d92b0(0x195));return _0x391b30(_0x1d92b0(0x208),{'className':_0x1d92b0(0x206),'children':[_0x143050(_0x55df58,{'ariaLabel':_0x277472['t'](_0x1d92b0(0x459)),'className':_0x1d92b0(0x38e),'items':[{'label':_0x277472['t']('bases-dashboard-ui.pivot.chartConfiguration'),'panelId':_0x1d92b0(0x362),'value':_0x1d92b0(0x195)},{'label':_0x277472['t'](_0x1d92b0(0x48c)),'panelId':'base-pivot-table-configuration','value':_0x1d92b0(0x382)}],'value':_0x1075f5,'variant':'segmented','onChange':_0x1a866e}),_0x143050(_0x1d92b0(0x402),{'className':_0x1d92b0(0x25c),'children':_0x1075f5==='chart'?_0x2d9ebd&&_0x143050(ei,{'config':_0x268f5e,'runtime':_0x2d9ebd,'tableName':_0x979894[_0x1d92b0(0x1f6)],'onChange':_0x352101}):_0x143050(Bi,{'config':_0x268f5e,'table':_0x979894,'onChange':_0x352101})})]});}function $i({tableId:_0xbbb89d,unitId:_0xf770a2,viewId:_0x3d1f6b}){const _0x58badc=_0x410bd1;let [_0xf599f8,_0x445648]=_0x5e5f09(!0x1),_0x4cc129=_0x20ec70(_0x668d8f),_0x18e4b0=_0x20ec70(_0x1ce417),_0x231836=_0x20ec70(_0xf4ca24),_0x19749d=_0x20ec70(_0x4f7627),_0x25eaa0=_0x20ec70(_0xab5a6b),[_0x202b34,_0x5d3c32]=_0x5e5f09(null),[_0x6c8b71,_0x87eae4]=_0x5e5f09(null),_0x49692c=_0x127850(_0x58badc(0x245)+_0x542898(0x8)),[_0x24e0ec,_0x52dde0]=_0x5e5f09(!0x1),_0x3ee038=_0x18e4b0['getUnit'](_0xf770a2,_0xd3f775['UNIVER_BASE']),_0x239ede=_0x3ee038==null?void 0x0:_0x3ee038[_0x58badc(0x31e)]()[_0x58badc(0x2ec)][_0xbbb89d],_0x54c27a=_0x239ede==null?void 0x0:_0x239ede['views'][_0x3d1f6b],_0x49e4a9=ea(_0x54c27a),_0x5848f4=yr(_0xf770a2,_0xbbb89d,_0x3d1f6b);if(_0x2fd531(()=>{const _0x1f7977=_0x58badc;if(!_0x49e4a9)return;let _0x30f7b2=_0x49692c[_0x1f7977(0x179)];return _0x25eaa0[_0x1f7977(0x1f2)](_0x30f7b2,{'unitId':_0xf770a2,'tableId':_0xbbb89d,'viewId':_0x3d1f6b,'filters':[]}),()=>{const _0x17695e=_0x1f7977;_0x25eaa0[_0x17695e(0x1cf)](_0xf770a2,_0x30f7b2);};},[_0x49e4a9,_0x25eaa0,_0xbbb89d,_0xf770a2,_0x3d1f6b]),_0x2fd531(()=>{const _0x535e0e=_0x58badc;if(!ea(_0x54c27a))return;let _0x49c379=!0x0,_0x1132b6={'unitId':_0xf770a2,'tableId':_0xbbb89d,'viewId':_0x3d1f6b,'filters':[_0x54c27a['filter']??null]};return _0x25eaa0[_0x535e0e(0x477)](_0xf770a2,_0x49692c['current'],_0x1132b6)[_0x535e0e(0x3c4)](_0x3467f0=>{const _0x24aee3=_0x535e0e;_0x49c379&&_0x3467f0&&(_0x5d3c32(_0x3467f0),_0x87eae4(_0x25eaa0[_0x24aee3(0x242)](_0xf770a2,_0x49692c[_0x24aee3(0x179)])??null),_0x52dde0(!0x1));})[_0x535e0e(0x28c)](_0x15d781=>{const _0x42114b=_0x535e0e;_0x231836[_0x42114b(0x280)]('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x15d781),_0x49c379&&(_0x5d3c32(null),_0x52dde0(!0x0));}),()=>{_0x49c379=!0x1;};},[_0x231836,_0x25eaa0,_0xbbb89d,_0xf770a2,_0x54c27a,_0x3d1f6b]),!_0x239ede||!ea(_0x54c27a))return null;let _0x26885e=_0x25eaa0['getChartRuntime'](_0xf770a2,_0x49692c['current'])===_0x6c8b71?_0x6c8b71:null,_0x5a7556=_0x202b34?_0x391b30(_0x58badc(0x402),{'className':_0x58badc(0x462),'style':{'gridTemplateRows':_0x54c27a[_0x58badc(0x30a)][_0x58badc(0x201)]===_0x58badc(0x23e)?_0x58badc(0x496):'minmax(0,\x201fr)'},'children':[_0x54c27a[_0x58badc(0x30a)]['displayMode']!==_0x58badc(0x26a)&&_0x26885e&&_0x143050(_0x58badc(0x402),{'className':_0x58badc(0x3a2),'children':_0x143050(Rr,{'isRowDirection':_0x3fb36c(_0x54c27a[_0x58badc(0x30a)][_0x58badc(0x195)][_0x58badc(0x32c)]),'runtime':_0x26885e})}),_0x54c27a[_0x58badc(0x30a)][_0x58badc(0x201)]!==_0x58badc(0x195)&&_0x143050('div',{'className':'univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':_0x143050(ji,{'pivot':_0x54c27a[_0x58badc(0x30a)][_0x58badc(0x382)],'view':_0x202b34['view']})})]}):_0x143050(_0x58badc(0x402),{'className':_0x58badc(0x3dd),'children':_0x24e0ec?_0x19749d['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x19749d['t'](_0x58badc(0x2f6))}),_0x24e15c=_0x143050(Qi,{'config':_0x54c27a[_0x58badc(0x30a)],'runtime':_0x26885e,'table':_0x239ede,'onChange':_0x37bfab=>{const _0x22383f=_0x58badc;_0x18e4b0[_0x22383f(0x3d1)](_0xf770a2),_0x18e4b0[_0x22383f(0x46a)](_0xf770a2),_0x4cc129[_0x22383f(0x18b)](_0x1f6e61['id'],{'unitId':_0xf770a2,'tableId':_0xbbb89d,'viewId':_0x3d1f6b,'patch':_0x37bfab})['catch'](_0x1b06fd=>_0x231836[_0x22383f(0x280)](_0x22383f(0x1d5),_0x1b06fd));}});return _0x143050(Jr,{'children':_0x391b30(_0x58badc(0x402),{'className':_0x58badc(0x21d),'children':[_0x5848f4&&_0x143050(_0x11a8c2,{'onClick':()=>_0x445648(!0x0),'children':_0x19749d['t'](_0x58badc(0x372))}),_0x143050('div',{'className':_0x58badc(0x3a4),'children':_0x5a7556}),_0x5848f4&&_0xf599f8&&_0x143050(_0x2e2cb1,{'title':_0x19749d['t'](_0x58badc(0x459)),'onClose':()=>_0x445648(!0x1),'children':_0x24e15c})]})});}function ea(_0x375b50){const _0x462f71=_0x410bd1;return(_0x375b50==null?void 0x0:_0x375b50[_0x462f71(0x38c)])===_0x37c4bc[_0x462f71(0x3bf)]&&typeof _0x375b50[_0x462f71(0x30a)]==_0x462f71(0x16a)&&_0x375b50[_0x462f71(0x30a)]!==null&&'pivot'in _0x375b50[_0x462f71(0x30a)]&&'chart'in _0x375b50[_0x462f71(0x30a)]&&_0x462f71(0x201)in _0x375b50[_0x462f71(0x30a)];}let ta=class extends _0x34f5d7{constructor(_0x373724,_0x5a4e85,_0x23c5e7,_0x3cd673,_0x29117d,_0x2f5512){const _0x5ea84d=_0x410bd1;super(),this['disposeWithMe'](_0x5a4e85[_0x5ea84d(0x325)]({'type':_0x37c4bc[_0x5ea84d(0x3bf)],'renderMode':_0x5ea84d(0x40e),'icon':_0x475089,'component':$i,'menu':{get 'label'(){const _0x50ddb9=_0x5ea84d;return _0x2f5512['t'](_0x50ddb9(0x459));},get 'description'(){const _0x28c788=_0x5ea84d;return _0x2f5512['t'](_0x28c788(0x39f));},get 'defaultName'(){const _0x3af311=_0x5ea84d;return _0x2f5512['t'](_0x3af311(0x18c));}}})),this[_0x5ea84d(0x388)](_0x373724[_0x5ea84d(0x325)](na(_0x23c5e7,_0x3cd673,_0x29117d,_0x2f5512)));}};ta=Ar([Y(0x0,_0x76978b),Y(0x1,_0xb97bcb),Y(0x2,_0x1fee36(_0x3a9dda)),Y(0x3,_0x668d8f),Y(0x4,_0xd14797),Y(0x5,_0x1fee36(_0x4f7627))],ta);function na(_0x35972c,_0xb002b9,_0x5a7605,_0x226f0b){const _0x743f46=_0x410bd1;return{'change$':_0x360ca5(_0x35972c[_0x743f46(0x452)],_0x5a7605[_0x743f46(0x4b3)]),'component':Si,get 'labels'(){const _0x4c599a=_0x743f46;return{'add':_0x226f0b['t'](_0x4c599a(0x1b0)),'configure':_0x152e40=>_0x226f0b['t'](_0x4c599a(0x3e2),_0x152e40),'delete':_0x226f0b['t'](_0x4c599a(0x480)),'new':_0x226f0b['t'](_0x4c599a(0x461)),'rename':_0x226f0b['t']('bases-dashboard-ui.dashboard.rename'),'search':_0x226f0b['t'](_0x4c599a(0x41e)),'section':_0x226f0b['t'](_0x4c599a(0x1e3))};},'getItems':_0x1ccbd0=>{const _0x3b861a=_0x743f46;let _0x57f429=_0x35972c[_0x3b861a(0x1bf)](_0x1ccbd0);return _0x57f429[_0x3b861a(0x2f5)]['flatMap'](_0x25347b=>{const _0x5d79ec=_0x3b861a;let _0x3e8fa9=_0x57f429[_0x5d79ec(0x261)][_0x25347b];return _0x3e8fa9?[{'id':_0x3e8fa9['id'],'name':_0x3e8fa9[_0x5d79ec(0x1f6)],'readonly':!_0x467e07(_0x5a7605,_0x1ccbd0,_0x3e8fa9['id'])}]:[];});},'create':async _0x29588d=>{const _0x1ac6d5=_0x743f46;let _0x321ae2=_0x35972c[_0x1ac6d5(0x1bf)](_0x29588d),_0x533958='dashboard-'+_0x542898(0x8),_0x27345c=ra(_0x321ae2[_0x1ac6d5(0x2f5)][_0x1ac6d5(0x1c6)](_0x577300=>{const _0x3d3036=_0x1ac6d5;let _0x1357a9=_0x321ae2[_0x3d3036(0x261)][_0x577300];return _0x1357a9?[_0x1357a9[_0x3d3036(0x1f6)]]:[];}),_0x340440=>_0x226f0b['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x340440)));return await _0xb002b9[_0x1ac6d5(0x18b)](_0x100fa4['id'],{'unitId':_0x29588d,'dashboard':{'id':_0x533958,'name':_0x27345c,'widgetOrder':[],'widgets':{}}})?_0x533958:null;},'rename':async(_0x39067a,_0xd05a54,_0x53679d)=>{const _0x45130c=_0x743f46;let _0x52cef1=_0x35972c[_0x45130c(0x36f)](_0x39067a,_0xd05a54);return!!(_0x52cef1&&await _0xb002b9[_0x45130c(0x18b)](_0x1e24a6['id'],{'unitId':_0x39067a,'dashboard':{..._0x52cef1,'name':_0x53679d}}));},'remove':(_0x44bfe3,_0x1d2789)=>_0xb002b9[_0x743f46(0x18b)](_0x439898['id'],{'unitId':_0x44bfe3,'dashboardId':_0x1d2789})};}function ra(_0xde9722,_0x19df9c){const _0x337e63=_0x410bd1;let _0x17ae9a=new Set(_0xde9722),_0x91fb30=_0x17ae9a[_0x337e63(0x248)]+0x1,_0x49c7d0=_0x19df9c(_0x91fb30);for(;_0x17ae9a[_0x337e63(0x183)](_0x49c7d0);)_0x91fb30+=0x1,_0x49c7d0=_0x19df9c(_0x91fb30);return _0x49c7d0;}let ia=class extends _0x22507e{constructor(_0x4a3d3f=_r,_0x34275d,_0x376fbd){const _0x4eeefc=_0x410bd1;super(),this['_config']=_0x4a3d3f,this[_0x4eeefc(0x44f)]=_0x34275d,this[_0x4eeefc(0x3d2)]=_0x376fbd;let {..._0x244b1a}=_0x17941a({},_r,this[_0x4eeefc(0x250)]);this[_0x4eeefc(0x3d2)][_0x4eeefc(0x1ce)](gr,_0x244b1a);}['onStarting'](){const _0x4a45f7=_0x410bd1;this[_0x4a45f7(0x44f)][_0x4a45f7(0x307)]([jr]),this['_injector'][_0x4a45f7(0x307)]([qr]),this[_0x4a45f7(0x44f)][_0x4a45f7(0x307)]([ta]);}['onReady'](){const _0x3f3f0f=_0x410bd1;_0x4ffdef(this[_0x3f3f0f(0x44f)],[[jr],[qr],[ta]]);}};Ir(ia,'type',_0xd3f775['UNIVER_BASE']),Ir(ia,_0x410bd1(0x287),_0x410bd1(0x322)),Ir(ia,_0x410bd1(0x214),mr),Ir(ia,_0x410bd1(0x25d),hr),ia=Ar([_0x2b679d(_0x1b68d2,_0x7dcda4,_0x32b88b,_0x2d555f,_0xdd06cf,_0x1776ea),Y(0x1,_0x1fee36(_0x4c3614)),Y(0x2,_0x200457)],ia);function aa(_0x291a0c,_0x579cc0,_0xb4ba40,_0x17f7cd){const _0x18f22b=_0x410bd1;let _0x480447={..._0x291a0c};if(_0x579cc0[_0x18f22b(0x37e)]('w')){let _0x4795f8=_0x291a0c['column']+_0x291a0c['columnSpan'];_0x480447[_0x18f22b(0x1e8)]=Math[_0x18f22b(0x3b6)](0x0,Math['min'](_0x4795f8-0x1,_0x291a0c[_0x18f22b(0x1e8)]+_0xb4ba40)),_0x480447['columnSpan']=_0x4795f8-_0x480447[_0x18f22b(0x1e8)];}else _0x579cc0['includes']('e')&&(_0x480447[_0x18f22b(0x34c)]=Math[_0x18f22b(0x3b6)](0x1,Math[_0x18f22b(0x2c0)](_0x1e51f0-_0x291a0c[_0x18f22b(0x1e8)],_0x291a0c[_0x18f22b(0x34c)]+_0xb4ba40)));if(_0x579cc0['includes']('n')){let _0x2da8ba=_0x291a0c[_0x18f22b(0x3e4)]+_0x291a0c[_0x18f22b(0x1ad)];_0x480447[_0x18f22b(0x3e4)]=Math[_0x18f22b(0x3b6)](0x0,Math[_0x18f22b(0x2c0)](_0x2da8ba-0x1,_0x291a0c[_0x18f22b(0x3e4)]+_0x17f7cd)),_0x480447[_0x18f22b(0x1ad)]=_0x2da8ba-_0x480447[_0x18f22b(0x3e4)];}else _0x579cc0[_0x18f22b(0x37e)]('s')&&(_0x480447['rowSpan']=Math[_0x18f22b(0x3b6)](0x1,_0x291a0c[_0x18f22b(0x1ad)]+_0x17f7cd));return _0x480447;}function oa(_0x5b0b2d){const _0x172dac=_0x410bd1;let _0x45c30d=Math[_0x172dac(0x3b6)](0x1,Math[_0x172dac(0x2c0)](_0x1e51f0,Math['round'](_0x5b0b2d[_0x172dac(0x34c)])));return{'column':Math['max'](0x0,Math[_0x172dac(0x2c0)](_0x1e51f0-_0x45c30d,Math[_0x172dac(0x1d8)](_0x5b0b2d[_0x172dac(0x1e8)]))),'row':Math['max'](0x0,Math[_0x172dac(0x1d8)](_0x5b0b2d[_0x172dac(0x3e4)])),'columnSpan':_0x45c30d,'rowSpan':Math['max'](0x1,Math['round'](_0x5b0b2d[_0x172dac(0x1ad)]))};}function sa(_0x594c46,_0x2808ce,_0x539603){const _0x459373=_0x410bd1;let _0x4808aa=new Map(_0x594c46),_0x38310a=oa(_0x539603);_0x4808aa[_0x459373(0x338)](_0x2808ce,_0x38310a);let _0x6c5fda=[[_0x2808ce,_0x38310a]];for(let [_0x3f700b,_0x26383d]of _0x4808aa){if(_0x3f700b===_0x2808ce)continue;let _0x11a3c2=oa(_0x26383d);for(;_0x6c5fda['some'](([,_0x32bfb6])=>la(_0x11a3c2,_0x32bfb6));)_0x11a3c2={..._0x11a3c2,'row':_0x11a3c2[_0x459373(0x3e4)]+0x1};for(;_0x11a3c2[_0x459373(0x3e4)]>0x0;){let _0x5389a7={..._0x11a3c2,'row':_0x11a3c2[_0x459373(0x3e4)]-0x1};if(_0x6c5fda[_0x459373(0x29a)](([,_0x23ff5d])=>la(_0x5389a7,_0x23ff5d)))break;_0x11a3c2=_0x5389a7;}_0x6c5fda[_0x459373(0x1e7)]([_0x3f700b,_0x11a3c2]),_0x4808aa[_0x459373(0x338)](_0x3f700b,_0x11a3c2);}return _0x4808aa;}function ca(_0x13ef7b,_0x5cb540,_0x3dc0fb,_0x6fc89d=0x38,_0x5c2e67=0x16){const _0xd565c9=_0x410bd1;return _0x13ef7b<_0x5cb540+_0x6fc89d?-Math[_0xd565c9(0x315)](_0x5c2e67*(0x1-Math[_0xd565c9(0x3b6)](0x0,_0x13ef7b-_0x5cb540)/_0x6fc89d)):_0x13ef7b>_0x3dc0fb-_0x6fc89d?Math[_0xd565c9(0x315)](_0x5c2e67*(0x1-Math[_0xd565c9(0x3b6)](0x0,_0x3dc0fb-_0x13ef7b)/_0x6fc89d)):0x0;}function la(_0x1fcaa5,_0x280d4f){const _0x44aa47=_0x410bd1;return _0x1fcaa5[_0x44aa47(0x1e8)]<_0x280d4f[_0x44aa47(0x1e8)]+_0x280d4f['columnSpan']&&_0x1fcaa5[_0x44aa47(0x1e8)]+_0x1fcaa5['columnSpan']>_0x280d4f[_0x44aa47(0x1e8)]&&_0x1fcaa5[_0x44aa47(0x3e4)]<_0x280d4f['row']+_0x280d4f[_0x44aa47(0x1ad)]&&_0x1fcaa5['row']+_0x1fcaa5[_0x44aa47(0x1ad)]>_0x280d4f[_0x44aa47(0x3e4)];}const ua=[{'direction':'nw','className':_0x410bd1(0x33e)},{'direction':'n','className':_0x410bd1(0x355)},{'direction':'ne','className':_0x410bd1(0x161)},{'direction':'e','className':_0x410bd1(0x330)},{'direction':'se','className':'univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize'},{'direction':'s','className':_0x410bd1(0x29b)},{'direction':'sw','className':_0x410bd1(0x342)},{'direction':'w','className':_0x410bd1(0x369)}];function da({dashboard:_0x5d3123,dragLabel:_0x9b31be,editable:_0x1f50ea=!0x0,onLayoutsCommit:_0x597a2f,onSelectWidget:_0x797060,renderWidget:_0x22fe5c,renderWidgetActions:_0x519004,resizeLabel:_0x383e9f,selectedWidgetId:_0xc72bf7,widgetLabel:_0xde99a2}){const _0x1c116f=_0x410bd1;let _0x11a7f2=_0x127850(null),_0x1e7aba=_0x127850(null),[_0x3429a7,_0x327673]=_0x5e5f09(!0x1),_0x232742=_0x10a2b7(()=>new Map(_0x5d3123[_0x1c116f(0x487)]['flatMap'](_0x52a55c=>{const _0x40da99=_0x1c116f;let _0x174acd=_0x5d3123[_0x40da99(0x34d)][_0x52a55c];return _0x174acd?[[_0x52a55c,_0x174acd['layout']]]:[];})),[_0x5d3123]),[_0xb78318,_0x35f77d]=_0x5e5f09(_0x232742);_0x2fd531(()=>{const _0x1dc3e8=_0x1c116f;_0x1e7aba[_0x1dc3e8(0x179)]||_0x35f77d(_0x232742);},[_0x232742]),_0x2fd531(()=>{const _0x1ca465=_0x1c116f;if(!_0x3429a7)return;let _0x464d0a=_0x20f5d1=>{const _0x14df3c=_0x10b1;let _0x5b6788=_0x11a7f2[_0x14df3c(0x179)];if(!_0x5b6788)return null;let _0x548d42=_0x5b6788[_0x14df3c(0x2f2)](),_0x46fbba=Math[_0x14df3c(0x3b6)](0x1,(_0x548d42[_0x14df3c(0x252)]-0x8*(_0x1e51f0-0x1))/_0x1e51f0),_0x225955=Math[_0x14df3c(0x1d8)]((_0x5b6788[_0x14df3c(0x396)]-_0x20f5d1[_0x14df3c(0x32b)])/(_0x365d3b+0x8)),_0x33a2a9=Math['round']((_0x20f5d1[_0x14df3c(0x1a9)]-_0x20f5d1[_0x14df3c(0x47b)])/(_0x46fbba+0x8)),_0x4e2640=Math[_0x14df3c(0x1d8)]((_0x20f5d1[_0x14df3c(0x2c2)]-_0x20f5d1[_0x14df3c(0x18f)])/(_0x365d3b+0x8))+_0x225955,_0xf4b9a0=_0x20f5d1[_0x14df3c(0x413)]==='move'?{..._0x20f5d1[_0x14df3c(0x23a)],'column':_0x20f5d1[_0x14df3c(0x23a)][_0x14df3c(0x1e8)]+_0x33a2a9,'row':_0x20f5d1[_0x14df3c(0x23a)][_0x14df3c(0x3e4)]+_0x4e2640}:aa(_0x20f5d1['initial'],_0x20f5d1[_0x14df3c(0x442)]??'se',_0x33a2a9,_0x4e2640),_0x18833c=sa(_0x20f5d1[_0x14df3c(0x2c1)],_0x20f5d1['id'],_0xf4b9a0);return _0x35f77d(_0x18833c),_0x18833c;},_0x439788=_0x19e04a=>{const _0xaa3aeb=_0x10b1;let _0x33be90=_0x1e7aba['current'];if(!_0x33be90)return;let _0x29b80b={..._0x33be90,'pointerX':_0x19e04a['clientX'],'pointerY':_0x19e04a[_0xaa3aeb(0x335)]};_0x1e7aba[_0xaa3aeb(0x179)]=_0x29b80b;},_0x26ffa8=()=>{const _0x32e3d3=_0x10b1;let _0x379952=_0x1e7aba['current'],_0x5c2b78=_0x379952?_0x464d0a(_0x379952):null;_0x1e7aba[_0x32e3d3(0x179)]=null,_0x327673(!0x1),_0x5c2b78&&_0x597a2f(_0x5c2b78);},_0x3f050b=0x0,_0x5a8615=()=>{const _0x2ab15b=_0x10b1;let _0x502327=_0x11a7f2[_0x2ab15b(0x179)],_0x2a8475=_0x1e7aba[_0x2ab15b(0x179)];if(_0x502327&&_0x2a8475){let _0x26d690=_0x502327[_0x2ab15b(0x2f2)](),_0x49791e=ca(_0x2a8475[_0x2ab15b(0x2c2)],_0x26d690['top'],_0x26d690[_0x2ab15b(0x400)]);_0x49791e!==0x0&&(_0x502327[_0x2ab15b(0x396)]+=_0x49791e),_0x464d0a(_0x2a8475),_0x3f050b=requestAnimationFrame(_0x5a8615);}};return _0x3f050b=requestAnimationFrame(_0x5a8615),window[_0x1ca465(0x2fc)](_0x1ca465(0x1ae),_0x439788),window[_0x1ca465(0x2fc)](_0x1ca465(0x186),_0x26ffa8),()=>{const _0x51c5e7=_0x1ca465;cancelAnimationFrame(_0x3f050b),window[_0x51c5e7(0x445)](_0x51c5e7(0x1ae),_0x439788),window['removeEventListener'](_0x51c5e7(0x186),_0x26ffa8);};},[_0x3429a7,_0x597a2f]);let _0x31d0d6=Math[_0x1c116f(0x3b6)](0x8,...Array[_0x1c116f(0x24d)](_0xb78318[_0x1c116f(0x22c)]())[_0x1c116f(0x173)](_0x23e0e9=>_0x23e0e9[_0x1c116f(0x3e4)]+_0x23e0e9['rowSpan'])),_0x475b11=(_0x4de2cd,_0x2ce9a5,_0xe06c82,_0x4966ee)=>{const _0x2f8d56=_0x1c116f;_0x4de2cd[_0x2f8d56(0x35b)](),_0x4de2cd[_0x2f8d56(0x3b9)]();let _0x1a80da=_0x11a7f2[_0x2f8d56(0x179)],_0x398e9c={'id':_0x2ce9a5['id'],'mode':_0xe06c82,'pointerX':_0x4de2cd[_0x2f8d56(0x28e)],'pointerY':_0x4de2cd[_0x2f8d56(0x335)],'startX':_0x4de2cd[_0x2f8d56(0x28e)],'startY':_0x4de2cd[_0x2f8d56(0x335)],'startScrollTop':(_0x1a80da==null?void 0x0:_0x1a80da[_0x2f8d56(0x396)])??0x0,'initial':_0xb78318[_0x2f8d56(0x43f)](_0x2ce9a5['id'])??_0x2ce9a5[_0x2f8d56(0x281)],'initialLayouts':new Map(_0xb78318),'resizeDirection':_0x4966ee};_0x1e7aba[_0x2f8d56(0x179)]=_0x398e9c,_0x327673(!0x0);};return _0x143050(_0x1c116f(0x402),{'ref':_0x11a7f2,'data-dashboard-scroll-container':!0x0,'className':_0xec79e5(_0x1c116f(0x380),_0x44d47d),'onClick':_0x1f50ea?_0x2e083e=>{const _0xca2195=_0x1c116f;if(!(_0x2e083e['target']instanceof Node)||!_0x2e083e[_0xca2195(0x1ba)][_0xca2195(0x1a8)](_0x2e083e[_0xca2195(0x2f1)]))return;let _0x2732b5=_0x2e083e['target']instanceof Element?_0x2e083e[_0xca2195(0x2f1)]:_0x2e083e['target'][_0xca2195(0x294)];_0x2732b5!=null&&_0x2732b5['closest'](_0xca2195(0x42a))||_0x797060==null||_0x797060();}:void 0x0,'children':_0x143050(_0x1c116f(0x402),{'data-dashboard-grid':!0x0,'className':_0x1c116f(0x2cd),'style':{'gap':0x8,'gridAutoRows':_0x365d3b,'minHeight':_0x31d0d6*(_0x365d3b+0x8)},'children':_0x5d3123[_0x1c116f(0x487)][_0x1c116f(0x173)](_0x560d30=>{const _0x3631b7=_0x1c116f;var _0x21ce45;let _0x549bc7=_0x5d3123['widgets'][_0x560d30],_0x510e38=_0xb78318[_0x3631b7(0x43f)](_0x560d30);return!_0x549bc7||!_0x510e38?null:_0x391b30(_0x3631b7(0x231),{'data-dashboard-widget':_0x549bc7['id'],'aria-label':_0x549bc7[_0x3631b7(0x1c8)]??_0xde99a2(_0x549bc7),'className':_0xec79e5(_0x3631b7(0x29c),_0x549bc7[_0x3631b7(0x38c)]===_0x4e7fff[_0x3631b7(0x419)]||_0x549bc7[_0x3631b7(0x38c)]===_0x4e7fff[_0x3631b7(0x2b8)]?_0x3631b7(0x1fa):_0x3631b7(0x35f),_0x1f50ea&&_0xc72bf7===_0x549bc7['id']?_0x3631b7(0x385):'univer-border-gray-200\x20dark:!univer-border-gray-700'),'style':{'gridColumn':_0x510e38[_0x3631b7(0x1e8)]+0x1+'\x20/\x20span\x20'+_0x510e38[_0x3631b7(0x34c)],'gridRow':_0x510e38[_0x3631b7(0x3e4)]+0x1+_0x3631b7(0x192)+_0x510e38[_0x3631b7(0x1ad)]},'tabIndex':_0x1f50ea?0x0:void 0x0,'onClick':_0x1f50ea?()=>_0x797060==null?void 0x0:_0x797060(_0x549bc7['id']):void 0x0,'onFocus':_0x1f50ea?()=>_0x797060==null?void 0x0:_0x797060(_0x549bc7['id']):void 0x0,'children':[_0x1f50ea&&_0x143050(_0x3631b7(0x44d),{'type':_0x3631b7(0x44d),'aria-label':_0x9b31be,'data-dashboard-drag-handle':_0x549bc7['id'],'className':_0xec79e5('univer-pointer-events-none\x20univer-absolute\x20univer-left-1/2\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-h-5\x20univer-w-8\x20-univer-translate-x-1/2\x20univer-appearance-none\x20univer-items-center\x20univer-justify-center\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-400\x20univer-opacity-0\x20univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100',_0x3429a7&&((_0x21ce45=_0x1e7aba[_0x3631b7(0x179)])==null?void 0x0:_0x21ce45['id'])===_0x549bc7['id']&&_0x1e7aba[_0x3631b7(0x179)][_0x3631b7(0x413)]===_0x3631b7(0x200)?_0x3631b7(0x2e5):_0x3631b7(0x377)),'onPointerDown':_0x20ad15=>_0x475b11(_0x20ad15,_0x549bc7,'move'),'children':_0x143050(_0x5ca67b,{'className':_0x3631b7(0x20e),'aria-hidden':'true'})}),_0x1f50ea&&_0x143050(_0x3631b7(0x402),{'className':_0x3631b7(0x1c9),'children':_0x519004==null?void 0x0:_0x519004(_0x549bc7)}),_0x143050('div',{'className':_0x3631b7(0x199),'children':_0x22fe5c(_0x549bc7)}),_0x1f50ea&&ua[_0x3631b7(0x173)](({className:_0x36d058,direction:_0x56a44c})=>{const _0x1b4f87=_0x3631b7;let _0x5821d4=_0x56a44c[_0x1b4f87(0x38b)]===0x2;return _0x143050(_0x1b4f87(0x44d),{'type':_0x1b4f87(0x44d),'aria-label':_0x383e9f,'data-dashboard-resize-handle':_0x56a44c,'data-dashboard-resize-control':_0x5821d4?_0x56a44c:void 0x0,'data-dashboard-resize-edge':_0x5821d4?void 0x0:_0x56a44c,'className':_0xec79e5(_0x1b4f87(0x209),_0x5821d4?'univer-box-content\x20univer-size-1.5\x20univer-rounded-full\x20!univer-border-2\x20!univer-border-solid\x20!univer-border-white\x20!univer-bg-primary-600':_0x1b4f87(0x37f),_0x36d058,_0xc72bf7===_0x549bc7['id']&&_0x1b4f87(0x2a3)),'onPointerDown':_0x348854=>_0x475b11(_0x348854,_0x549bc7,_0x1b4f87(0x2a7),_0x56a44c)},_0x56a44c);})]},_0x549bc7['id']);})})});}var fa;const Q={'axis':{..._0x4d8c62,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0xd824da,'heatmap':_0xa35118,'indicatorLine':_0x10441e,'legend':_0x1b9bc9,'lineAndArea':_0x45d9c7,'pareto':_0x2c4778,'pie':_0x7ff226,'radar':_0x223cbb,'relation':{..._0x12660e,'useValueAsSymbolSize':!0x0},'series':{..._0x223992,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((fa=_0x376ad5[_0x410bd1(0x360)])==null?void 0x0:fa[_0x410bd1(0x49b)])??!0x1}},'style':_0x419379,'titles':_0x304725,'trendline':_0x201be4,'waterfall':{..._0x38fd81,'useSubtotal':!0x0},'waterfallStyle':_0x37da98,'wordCloud':_0x22d9d9},pa=[_0x2261bb[_0x410bd1(0x1fd)],_0x2261bb[_0x410bd1(0x1fe)],_0x2261bb[_0x410bd1(0x19a)],_0x2261bb[_0x410bd1(0x255)],_0x2261bb[_0x410bd1(0x210)],_0x2261bb[_0x410bd1(0x3a6)],_0x2261bb[_0x410bd1(0x1a6)],_0x2261bb['Heatmap'],_0x2261bb[_0x410bd1(0x3da)],_0x2261bb['Candlestick'],_0x2261bb[_0x410bd1(0x24a)],_0x2261bb[_0x410bd1(0x216)],_0x2261bb[_0x410bd1(0x379)],_0x2261bb[_0x410bd1(0x2dd)],_0x2261bb['Chord']];function ma(_0x2404e9){const _0xe52c8=_0x410bd1;let {config:_0x302262,onChange:_0x210d26,runtime:_0x559c8b,tableName:_0x87459d}=_0x2404e9,_0x26bdfa=_0x20ec70(qr),_0x4a2cda=_0x20ec70(_0x4f7627),[_0xccbddd,_0x45c199]=_0x5e5f09(_0x3b422b[_0xe52c8(0x30b)]),_0x33ab28=_0x10a2b7(()=>new _0x439c8c(_0x559c8b[_0xe52c8(0x37a)],{'commit':_0x45d9d8=>{const _0x4b1093=_0xe52c8;var _0x22dd52;let _0x2d5e19=_0x559c8b[_0x4b1093(0x37a)],_0x4cf74e=_0x59ff45(_0x45d9d8,{'series':(_0x22dd52=_0x2d5e19[_0x4b1093(0x30a)])==null?void 0x0:_0x22dd52[_0x4b1093(0x237)],'currentChartType':_0x2d5e19[_0x4b1093(0x2a8)],'currentStyle':_0x2d5e19[_0x4b1093(0x454)],'currentContext':_0x2d5e19[_0x4b1093(0x497)],'currentDataAggregation':_0x2d5e19['dataAggregation']});_0x210d26({'chart':ha(_0x302262[_0x4b1093(0x195)],_0x4cf74e)});}}),[_0x302262[_0xe52c8(0x195)],_0x210d26,_0x559c8b]),_0x40b02b=_0x10a2b7(()=>_0x2190e6(_0x1b8ffc[_0xe52c8(0x173)](_0xf8b349=>({..._0xf8b349,'label':_0x4a2cda['t'](ya(_0xf8b349[_0xe52c8(0x40d)]))}))),[_0x4a2cda]);return _0x143050(_0x1250c0,{'chartUIService':_0x26bdfa,'hostAdapter':_0x33ab28,'children':_0x391b30(_0xe52c8(0x402),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x143050(_0x55df58,{'ariaLabel':_0x4a2cda['t'](_0xe52c8(0x2d4)),'className':_0xe52c8(0x229),'items':[{'label':_0x4a2cda['t'](_0xe52c8(0x3f5)),'panelId':'base-pivot-chart-setup','value':_0x3b422b[_0xe52c8(0x30b)]},{'label':_0x4a2cda['t'](_0xe52c8(0x337)),'panelId':_0xe52c8(0x35e),'value':_0x3b422b[_0xe52c8(0x4a6)]}],'value':_0xccbddd,'onChange':_0x45c199}),_0xccbddd===_0x3b422b[_0xe52c8(0x30b)]?_0x143050(_0x3a4219,{'id':_0xe52c8(0x408),'label':_0x4a2cda['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x391b30(_0xe52c8(0x402),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x143050(_0x29fd74,{'options':_0x40b02b}),_0x143050(_0x5ce85a,{}),_0x143050(_0x468a30,{}),_0x143050(ga,{}),_0x143050(_0x5d6f36,{}),_0x391b30('div',{'children':[_0x143050(_0x41b08d,{'title':_0x4a2cda['t'](_0xe52c8(0x1e4))}),_0x143050(_0x56be65,{'disabled':!0x0,'value':_0x87459d})]}),_0x143050(_0x4e3257,{'orientationControl':_0x143050(_0x11a8c2,{'size':_0xe52c8(0x323),'onClick':()=>_0x210d26({'chart':{..._0x302262[_0xe52c8(0x195)],'orient':_0x302262[_0xe52c8(0x195)][_0xe52c8(0x32c)]===_0xe52c8(0x3e4)?_0xe52c8(0x1e8):_0xe52c8(0x3e4)}}),'children':_0x4a2cda['t'](_0xe52c8(0x43a))})}),_0x143050(_0x1d97dc,{}),_0x143050(_0x3ae098,{'defaultValues':Q['waterfall']}),_0x391b30(_0xe52c8(0x402),{'children':[_0x143050(_0x41b08d,{'title':_0x4a2cda['t'](_0xe52c8(0x441))}),_0x143050(_0x3f5ec5,{'value':_0x302262[_0xe52c8(0x201)],'options':[{'value':_0xe52c8(0x23e),'label':_0x4a2cda['t'](_0xe52c8(0x254))},{'value':_0xe52c8(0x195),'label':_0x4a2cda['t'](_0xe52c8(0x365))},{'value':_0xe52c8(0x26a),'label':_0x4a2cda['t'](_0xe52c8(0x3f9))}],'onChange':_0x2921fc=>{const _0x178b13=_0xe52c8;(_0x2921fc==='chart-and-table'||_0x2921fc==='chart'||_0x2921fc===_0x178b13(0x26a))&&_0x210d26({'displayMode':_0x2921fc});}})]})]})}):_0x143050(_0x3a4219,{'id':_0xe52c8(0x35e),'label':_0x4a2cda['t'](_0xe52c8(0x337)),'children':_0x143050(_a,{})})]})});}function ha(_0x3dda88,_0x1b1fe6){const _0x493166=_0x410bd1;return{..._0x3dda88,'type':_0x1b1fe6[_0x493166(0x2a8)]??_0x3dda88['type'],'style':_0x1b1fe6[_0x493166(0x454)]??_0x3dda88[_0x493166(0x454)],'context':_0x1b1fe6[_0x493166(0x497)]??_0x3dda88['context'],'dataAggregation':_0x1b1fe6[_0x493166(0x225)]??_0x3dda88[_0x493166(0x225)]};}function ga(){const _0x5e0a22=_0x410bd1;let _0x1db26e=_0x499edc();return _0x143050(_0x2f928b,{'visible':pa[_0x5e0a22(0x453)](_0x1adc2b=>!_0xbb03e5[_0x5e0a22(0x16f)](_0x1db26e,_0x1adc2b))});}function $(_0x5055bf){const _0x12f93c=_0x410bd1;return _0x391b30(_0x2844d6,{'id':_0x5055bf['id'],'children':[_0x143050(_0x375efc,{'children':_0x5055bf[_0x12f93c(0x19d)]}),_0x143050(_0x46900a,{'children':_0x5055bf[_0x12f93c(0x1d2)]})]});}function _a(){const _0x3bdca8=_0x410bd1;let _0x5ab39c=_0x20ec70(_0x4f7627),_0xcd7125=_0x499edc(),_0x477bdd=_0x313117(),[_0x209d1e,_0x21af2f]=_0x5e5f09(null),_0x280e6a=_0xbb03e5[_0x3bdca8(0x16f)](_0xcd7125,_0x2261bb[_0x3bdca8(0x324)]),_0x425c87=_0xcd7125===_0x2261bb[_0x3bdca8(0x1fe)],_0x132074=_0xcd7125===_0x2261bb[_0x3bdca8(0x19a)],_0x2e3c96=_0xcd7125===_0x2261bb[_0x3bdca8(0x210)],_0x46ec10=_0xbb03e5[_0x3bdca8(0x16f)](_0xcd7125,_0x2261bb['Bubble']),_0x33da35=_0xcd7125===_0x2261bb['Relation'],_0x382ad0=_0xcd7125===_0x2261bb[_0x3bdca8(0x271)],_0x291026=_0xcd7125===_0x2261bb['Pareto'],_0x4e2424=_0xcd7125===_0x2261bb[_0x3bdca8(0x1c3)],_0x18df65=_0xbab818(_0xcd7125,_0x2b72e7['GeneralSeries'])&&!_0x46ec10&&!_0x291026,_0x10a633=va(_0xcd7125,_0x5ab39c);return _0x391b30(_0x177a4c,{'value':_0x209d1e,'onChange':_0x21af2f,'children':[_0x143050($,{'id':_0x27e494[_0x3bdca8(0x230)],'label':_0x5ab39c['t'](_0x3bdca8(0x1eb)),'children':_0x143050(_0x5d8e64,{'defaultValues':Q[_0x3bdca8(0x454)]})}),_0x143050($,{'id':_0x27e494[_0x3bdca8(0x45e)],'label':_0x5ab39c['t']('bases-dashboard-ui.chart.common.chartAndAxisTitles'),'children':_0x143050(_0x364a1b,{'commitMode':_0x3bdca8(0x2ef),'defaultValues':Q[_0x3bdca8(0x3db)]})}),_0x143050(_0x533b6c,{'section':_0x3bdca8(0x222)}),_0x18df65&&_0x143050($,{'id':_0x27e494[_0x3bdca8(0x493)],'label':_0x5ab39c['t']('bases-dashboard-ui.chart.common.series'),'children':_0x143050(_0xaadc8a,{'defaultValues':Q['series'],'NumberFormatField':_0x56a20f})}),_0x382ad0&&_0x143050($,{'id':_0x27e494['WaterfallSeries'],'label':_0x5ab39c['t'](_0x3bdca8(0x465)),'children':_0x143050(_0x40b896,{'defaultValues':Q[_0x3bdca8(0x478)],'getDefaultBucketName':({seriesName:_0x3a4390,target:_0x867f18})=>_0x867f18===_0x1a11c1['Subtotal']?_0x5ab39c['t'](_0x3bdca8(0x318)):_0x3a4390?_0x3a4390+'-('+_0x5ab39c['t'](_0x3bdca8(0x317)+(_0x867f18===_0x1a11c1[_0x3bdca8(0x22d)]?_0x3bdca8(0x2d0):_0x3bdca8(0x2c9)))+')':'','NumberFormatField':_0x56a20f})}),_0x291026&&_0x391b30(_0x13d76c,{'children':[_0x143050($,{'id':_0x27e494[_0x3bdca8(0x3ca)],'label':_0x5ab39c['t'](_0x3bdca8(0x495)),'children':_0x143050(_0x4de7d9,{'defaultValues':Q[_0x3bdca8(0x47e)],'NumberFormatField':_0x56a20f,'showDataPointEditor':!0x0,'target':_0x3bdca8(0x239)})}),_0x143050($,{'id':_0x27e494[_0x3bdca8(0x2b5)],'label':_0x5ab39c['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':_0x143050(_0x4de7d9,{'defaultValues':Q[_0x3bdca8(0x47e)],'NumberFormatField':_0x56a20f,'showDataPointEditor':!0x1,'target':_0x3bdca8(0x1a2)})})]}),_0x280e6a&&_0x143050($,{'id':_0x27e494[_0x3bdca8(0x1d9)],'label':_0x5ab39c['t'](_0x3bdca8(0x44c)),'children':_0x143050(_0x4626d9,{'defaultValues':Q['pie'],'NumberFormatField':_0x56a20f})}),_0x132074&&_0x143050($,{'id':_0x27e494['WordCloud'],'label':_0x5ab39c['t'](_0x3bdca8(0x39c)),'children':_0x143050(_0x450802,{'defaultValues':Q[_0x3bdca8(0x269)]})}),_0x425c87&&_0x143050($,{'id':_0x27e494[_0x3bdca8(0x1fe)],'label':_0x5ab39c['t'](_0x3bdca8(0x157)),'children':_0x143050(_0x5b6a4d,{'defaultValues':Q['radar']})}),_0x2e3c96&&_0x143050($,{'id':_0x27e494[_0x3bdca8(0x210)],'label':_0x5ab39c['t']('bases-dashboard-ui.chart.section.funnel'),'children':_0x143050(_0x3515bf,{'defaultValues':Q['funnel'],'gapControl':'select'})}),_0x4e2424&&_0x143050($,{'id':_0x27e494[_0x3bdca8(0x1c3)],'label':_0x5ab39c['t']('bases-dashboard-ui.chart.common.heatmap'),'children':_0x143050(_0x26b14a,{'defaultValues':Q['heatmap']})}),_0x33da35&&_0x143050($,{'id':_0x27e494[_0x3bdca8(0x3a6)],'label':_0x5ab39c['t']('bases-dashboard-ui.chart.section.relation'),'children':_0x143050(_0x4bddcd,{'defaultValues':Q[_0x3bdca8(0x2b3)]})}),_0x230f4f(_0xcd7125)&&_0x143050($,{'id':_0x27e494['LineAndArea'],'label':_0x5ab39c['t'](_0xbb03e5[_0x3bdca8(0x16f)](_0xcd7125,_0x2261bb['Area'])?_0x3bdca8(0x351):'bases-dashboard-ui.chart.chartTypes.line'),'children':_0x143050(_0x4ff136,{'defaultValues':Q[_0x3bdca8(0x39d)],'lineStyleControl':_0x3bdca8(0x169)})}),_0xbab818(_0xcd7125,_0x2b72e7[_0x3bdca8(0x2a0)])&&_0x143050($,{'id':_0x27e494[_0x3bdca8(0x2a0)],'label':_0x5ab39c['t'](_0x3bdca8(0x277)),'children':_0x143050(_0x399526,{'defaultValues':Q['legend']})}),_0xbab818(_0xcd7125,_0x2b72e7['Axes'])&&_0x391b30(_0x13d76c,{'children':[_0x143050($,{'id':_0x27e494[_0x3bdca8(0x44a)],'label':_0x5ab39c['t']('bases-dashboard-ui.chart.common.horizontalAxis'),'children':_0x143050(_0x347442,{'axis':'x','defaultValues':Q[_0x3bdca8(0x4af)],'NumberFormatField':_0x56a20f})}),_0x143050($,{'id':_0x27e494[_0x3bdca8(0x333)],'label':_0x5ab39c['t'](_0x3bdca8(0x241)),'children':_0x143050(_0x347442,{'axis':'y','defaultValues':Q[_0x3bdca8(0x4af)],'NumberFormatField':_0x56a20f})}),_0x143050(_0x533b6c,{'section':'depthAxis'}),_0x477bdd&&_0x143050($,{'id':_0x27e494[_0x3bdca8(0x424)],'label':_0x5ab39c['t'](_0x3bdca8(0x43c)),'children':_0x143050(_0x347442,{'axis':_0x3bdca8(0x176),'defaultValues':Q[_0x3bdca8(0x4af)],'NumberFormatField':_0x56a20f})}),_0x143050($,{'id':_0x27e494['GridlinesAndTicks'],'label':_0x5ab39c['t'](_0x3bdca8(0x2aa)),'children':_0x143050(_0x10f178,{'defaultValues':Q[_0x3bdca8(0x4af)]})})]}),_0xbab818(_0xcd7125,_0x2b72e7['IndicatorLine'])&&_0x143050($,{'id':_0x27e494[_0x3bdca8(0x2d6)],'label':_0x5ab39c['t'](_0x3bdca8(0x3b1)),'children':_0x143050(_0x2906d0,{'defaultValues':Q[_0x3bdca8(0x3ff)]})}),_0x351f42(_0xcd7125)&&_0x143050($,{'id':_0x27e494['Trendline'],'label':_0x5ab39c['t'](_0x3bdca8(0x2a4)),'children':_0x143050(_0x3ac9fb,{'defaultValues':Q[_0x3bdca8(0x40f)]})}),_0x10a633&&_0x143050($,{'id':_0x10a633['id'],'label':_0x10a633[_0x3bdca8(0x19d)],'children':_0x143050(_0x3d37b1,{})})]});}function va(_0x10ee79,_0x88c5c7){const _0x5610a9=_0x410bd1;let _0x5e1389={[_0x2261bb[_0x5610a9(0x488)]]:{'id':_0x27e494[_0x5610a9(0x488)],'localeKey':_0x5610a9(0x41b)},[_0x2261bb[_0x5610a9(0x24a)]]:{'id':_0x27e494[_0x5610a9(0x24a)],'localeKey':_0x5610a9(0x2e4)},[_0x2261bb[_0x5610a9(0x216)]]:{'id':_0x27e494[_0x5610a9(0x216)],'localeKey':_0x5610a9(0x20f)},[_0x2261bb[_0x5610a9(0x379)]]:{'id':_0x27e494[_0x5610a9(0x379)],'localeKey':_0x5610a9(0x1f5)},[_0x2261bb[_0x5610a9(0x2dd)]]:{'id':_0x27e494[_0x5610a9(0x2dd)],'localeKey':_0x5610a9(0x3bb)},[_0x2261bb['Chord']]:{'id':_0x27e494[_0x5610a9(0x1fc)],'localeKey':_0x5610a9(0x1af)}}[_0x10ee79];return _0x5e1389?{'id':_0x5e1389['id'],'label':_0x88c5c7['t'](_0x5e1389[_0x5610a9(0x190)])}:null;}function ya(_0x51d0a5){return'bases-dashboard-ui.chart.chartTypes.'+_0x51d0a5;}function ba({onChange:_0x2b1145,onEditData:_0x24fe09,runtime:_0x286c0f,sourceChart:_0x247100,sourceName:_0x259832,widget:_0x2f171d}){const _0x3a5a83=_0x410bd1;let _0x18c5f7=_0x20ec70(qr),_0x4111d7=_0x20ec70(_0x4f7627),[_0x5e2ae4,_0x155949]=_0x5e5f09(_0x3b422b[_0x3a5a83(0x30b)]),_0xa7265f=_0x2f171d[_0x3a5a83(0x195)]??_0x247100,_0x5765c3=_0x10a2b7(()=>new _0x439c8c(_0x286c0f[_0x3a5a83(0x37a)],{'commit':_0x15e5c1=>{const _0x286817=_0x3a5a83;var _0x3e4ada;let _0x3ca334=_0x286c0f['model'],_0x4c994c=_0x59ff45(_0x15e5c1,{'series':(_0x3e4ada=_0x3ca334[_0x286817(0x30a)])==null?void 0x0:_0x3e4ada[_0x286817(0x237)],'currentChartType':_0x3ca334[_0x286817(0x2a8)],'currentStyle':_0x3ca334['style'],'currentContext':_0x3ca334[_0x286817(0x497)],'currentDataAggregation':_0x3ca334[_0x286817(0x225)]});_0x2b1145({..._0x2f171d,'chart':ha(_0xa7265f,_0x4c994c)})[_0x286817(0x28c)](()=>void 0x0);}}),[_0xa7265f,_0x2b1145,_0x286c0f,_0x2f171d]),_0x4de72e=_0x10a2b7(()=>_0x2190e6(_0x1b8ffc[_0x3a5a83(0x173)](_0x1f5d82=>({..._0x1f5d82,'label':_0x4111d7['t'](xa(_0x1f5d82[_0x3a5a83(0x40d)]))}))),[_0x4111d7]);return _0x143050(_0x1250c0,{'chartUIService':_0x18c5f7,'hostAdapter':_0x5765c3,'children':_0x391b30(_0x3a5a83(0x402),{'data-dashboard-chart-inspector':!0x0,'className':_0x3a5a83(0x3ed),'children':[_0x143050(_0x55df58,{'ariaLabel':_0x4111d7['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x3a5a83(0x229),'items':[{'label':_0x4111d7['t']('bases-dashboard-ui.chart.common.setup'),'panelId':'dashboard-chart-setup','value':_0x3b422b['Data']},{'label':_0x4111d7['t'](_0x3a5a83(0x337)),'panelId':_0x3a5a83(0x16b),'value':_0x3b422b[_0x3a5a83(0x4a6)]}],'value':_0x5e2ae4,'onChange':_0x155949}),_0x5e2ae4===_0x3b422b[_0x3a5a83(0x30b)]?_0x143050(_0x3a4219,{'id':_0x3a5a83(0x2ab),'label':_0x4111d7['t'](_0x3a5a83(0x3f5)),'children':_0x391b30('div',{'className':_0x3a5a83(0x3c3),'children':[_0x143050(_0x29fd74,{'options':_0x4de72e}),_0x143050(_0x5ce85a,{}),_0x143050(_0x468a30,{}),_0x143050(ga,{}),_0x143050(_0x5d6f36,{}),_0x391b30('div',{'children':[_0x143050(_0x41b08d,{'title':_0x4111d7['t'](_0x3a5a83(0x49a))}),_0x143050(_0x56be65,{'disabled':!0x0,'value':_0x259832}),_0x143050(_0x11a8c2,{'className':_0x3a5a83(0x228),'onClick':_0x24fe09,'children':_0x4111d7['t'](_0x3a5a83(0x3d4))})]})]})}):_0x143050(_0x3a4219,{'id':_0x3a5a83(0x16b),'label':_0x4111d7['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x143050(_a,{})})]})});}function xa(_0x58c6c2){const _0x9581d4=_0x410bd1;return _0x9581d4(0x1d1)+_0x58c6c2;}const Sa=[_0x410bd1(0x473),_0x410bd1(0x1c4),_0x410bd1(0x366),_0x410bd1(0x1c2),_0x410bd1(0x166),_0x410bd1(0x2b1)];function Ca({base:_0x366d77,onChange:_0x5a18fc,onSelectBackgroundImage:_0x4f8ee1,widget:_0x191347}){const _0x47bdeb=_0x410bd1;var _0x4e2553;let _0x231f35=_0x20ec70(_0x4f7627),_0x5d963e=_0x20ec70(_0x4e623a),_0x38c76c=_0x24cacb(()=>_0x5d963e['currentTheme$'],_0x5d963e[_0x47bdeb(0x188)](),!0x1,[_0x5d963e]),_0x3c6905=_0x24cacb(()=>_0x5d963e[_0x47bdeb(0x343)],_0x5d963e['darkMode'],!0x1,[_0x5d963e]),[_0x32e467,_0x260f01]=_0x5e5f09(_0x47bdeb(0x2a6)),[_0xc30f33,_0x5a6ded]=_0x5e5f09(!0x1),_0x4ddcc8=Cr(_0x191347),_0x23e04c=_0x366d77['getSnapshot']()[_0x47bdeb(0x2ec)][_0x191347['tableId']],_0x5a8a03=_0x23e04c==null?void 0x0:_0x23e04c[_0x47bdeb(0x30e)][_0x47bdeb(0x2da)](_0x20eeda=>_0x23e04c[_0x47bdeb(0x348)][_0x20eeda]),_0x353a38=_0x5a8a03?_0x23e04c==null?void 0x0:_0x23e04c[_0x47bdeb(0x348)][_0x5a8a03]:void 0x0,_0x1fe081=_0x23e04c&&_0x353a38?_0x31f17a(_0x366d77[_0x47bdeb(0x31e)](),_0x23e04c,_0x353a38)[_0x47bdeb(0x173)](_0x479d08=>({..._0x479d08,'current':!0x1})):[],_0x447615=((_0x4e2553=_0x191347[_0x47bdeb(0x3a0)][_0x47bdeb(0x213)])==null?void 0x0:_0x4e2553[_0x47bdeb(0x341)])??'',_0x5472ef=_0x176486=>_0x5a18fc(wr(_0x191347,_0x176486))['catch'](()=>void 0x0),_0x169858=_0x5b4067=>_0x5a18fc({..._0x191347,'description':_0x5b4067})['catch'](()=>void 0x0);return _0x391b30('div',{'data-dashboard-formula-inspector':!0x0,'className':_0x47bdeb(0x3ed),'children':[_0x143050(_0x5c4858,{'className':_0x47bdeb(0x306),'items':[{'value':'data','label':_0x231f35['t'](_0x47bdeb(0x20d))},{'value':_0x47bdeb(0x454),'label':_0x231f35['t'](_0x47bdeb(0x426))}],'value':_0x32e467,'onChange':_0x260f01}),_0x143050('div',{'className':_0x47bdeb(0x23c),'children':_0x32e467===_0x47bdeb(0x2a6)?_0x391b30(_0x47bdeb(0x402),{'className':_0x47bdeb(0x3dc),'children':[_0x143050(wa,{'label':_0x231f35['t'](_0x47bdeb(0x297)),'children':_0x143050(_0x56be65,{'value':_0x191347[_0x47bdeb(0x240)]??_0x191347[_0x47bdeb(0x1c8)]??'','onChange':_0x169858,'onBlur':_0x28ee9f=>_0x169858(_0x28ee9f[_0x47bdeb(0x2f1)]['value'])})}),_0x143050(wa,{'label':_0x231f35['t'](_0x47bdeb(0x49a)),'children':_0x143050(_0x56be65,{'disabled':!0x0,'value':(_0x23e04c==null?void 0x0:_0x23e04c[_0x47bdeb(0x1f6)])??_0x231f35['t'](_0x47bdeb(0x1f0))})}),_0x391b30(wa,{'label':_0x231f35['t'](_0x47bdeb(0x48b)),'children':[_0x143050(_0x56be65,{'disabled':!0x0,'value':_0x5451bf(_0x447615,_0x1fe081)}),_0x143050(_0x11a8c2,{'className':_0x47bdeb(0x228),'onClick':()=>_0x5a6ded(!0x0),'children':_0x231f35['t'](_0x47bdeb(0x3e5))})]})]}):_0x391b30(_0x47bdeb(0x402),{'className':_0x47bdeb(0x3dc),'children':[_0x143050(_0x535011,{'emptyLabel':_0x231f35['t'](_0x47bdeb(0x25a)),'label':_0x231f35['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x3c6905?_0x38c76c['gray'][0x384]:_0x38c76c[_0x47bdeb(0x20c)][0x0],'resetLabel':_0x231f35['t'](_0x47bdeb(0x17d)),'value':_0x4ddcc8[_0x47bdeb(0x32a)]??null,'onChange':_0x3ac108=>_0x5472ef({'backgroundColor':_0x3ac108??void 0x0})}),_0x391b30(wa,{'label':_0x231f35['t'](_0x47bdeb(0x2c5)),'children':[_0x391b30(_0x47bdeb(0x402),{'className':'univer-flex\x20univer-gap-2','children':[_0x391b30(_0x11a8c2,{'className':_0x47bdeb(0x27e),'onClick':()=>{const _0x2021d1=_0x47bdeb;_0x4f8ee1()[_0x2021d1(0x3c4)](_0x9ad12=>{const _0x1bb4db=_0x2021d1;if(_0x9ad12){var _0x8ed820;return _0x5472ef({'backgroundImage':{..._0x9ad12,'fit':((_0x8ed820=_0x4ddcc8['backgroundImage'])==null?void 0x0:_0x8ed820[_0x1bb4db(0x451)])??_0x1bb4db(0x409)}});}})[_0x2021d1(0x28c)](()=>void 0x0);},'children':[_0x143050(_0x82e3c7,{}),_0x4ddcc8[_0x47bdeb(0x2f8)]?_0x231f35['t'](_0x47bdeb(0x3e6)):_0x231f35['t'](_0x47bdeb(0x1bc))]}),_0x4ddcc8[_0x47bdeb(0x2f8)]&&_0x143050(_0x11a8c2,{'aria-label':_0x231f35['t'](_0x47bdeb(0x191)),'title':_0x231f35['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'onClick':()=>_0x5472ef({'backgroundImage':void 0x0}),'children':_0x143050(_0x500a22,{})})]}),_0x4ddcc8['backgroundImage']&&_0x143050(_0x5c4858,{'className':_0x47bdeb(0x398),'items':[{'value':_0x47bdeb(0x409),'label':_0x231f35['t'](_0x47bdeb(0x336))},{'value':'contain','label':_0x231f35['t']('bases-dashboard-ui.dashboardInspector.contain')}],'value':_0x4ddcc8['backgroundImage'][_0x47bdeb(0x451)],'onChange':_0x17cee4=>_0x5472ef({'backgroundImage':_0x4ddcc8[_0x47bdeb(0x2f8)]?{..._0x4ddcc8[_0x47bdeb(0x2f8)],'fit':_0x17cee4}:void 0x0})})]}),_0x143050(_0x535011,{'emptyLabel':_0x231f35['t'](_0x47bdeb(0x437)),'label':_0x231f35['t'](_0x47bdeb(0x437)),'pickerFallbackValue':_0x3c6905?_0x38c76c[_0x47bdeb(0x20c)][0x32]:_0x38c76c[_0x47bdeb(0x20c)][0x3e8],'resetLabel':_0x231f35['t'](_0x47bdeb(0x17d)),'value':_0x4ddcc8[_0x47bdeb(0x2b0)]??null,'onChange':_0x207727=>_0x5472ef({'textColor':_0x207727??void 0x0})}),_0x143050(wa,{'label':_0x231f35['t'](_0x47bdeb(0x42d)),'children':_0x143050(_0x5c4858,{'items':[{'value':_0x47bdeb(0x189),'label':_0x231f35['t'](_0x47bdeb(0x4ad))},{'value':_0x47bdeb(0x1d3),'label':_0x231f35['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0x47bdeb(0x483),'label':_0x231f35['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x4ddcc8[_0x47bdeb(0x1c7)],'onChange':_0x1d3c14=>_0x5472ef({'alignment':_0x1d3c14})})}),_0x391b30(wa,{'label':_0x231f35['t'](_0x47bdeb(0x207)),'children':[_0x143050(_0x5c4858,{'items':[{'value':'auto','label':_0x231f35['t'](_0x47bdeb(0x28b))},{'value':_0x47bdeb(0x234),'label':_0x231f35['t'](_0x47bdeb(0x384))}],'value':_0x4ddcc8[_0x47bdeb(0x1de)],'onChange':_0x479934=>_0x5472ef({'fontSizeMode':_0x479934})}),_0x4ddcc8[_0x47bdeb(0x1de)]===_0x47bdeb(0x234)&&_0x143050(_0x137e64,{'className':_0x47bdeb(0x398),'min':0xc,'max':0x78,'value':_0x4ddcc8[_0x47bdeb(0x39b)],'onChange':_0x20d3ca=>_0x5472ef({'fontSize':_0x20d3ca??0x28,'fontSizeMode':_0x47bdeb(0x234)})})]}),_0x143050(wa,{'label':_0x231f35['t'](_0x47bdeb(0x20b)),'children':_0x143050(_0x3f5ec5,{'value':_0x4ddcc8['numberFormat'],'options':[{'value':_0x47bdeb(0x473),'label':_0x231f35['t']('bases-dashboard-ui.dashboardInspector.general')},{'value':'number','label':_0x231f35['t'](_0x47bdeb(0x327))},{'value':_0x47bdeb(0x366),'label':_0x231f35['t'](_0x47bdeb(0x314))},{'value':_0x47bdeb(0x1c2),'label':_0x231f35['t']('bases-dashboard-ui.dashboardInspector.currency')},{'value':_0x47bdeb(0x166),'label':_0x231f35['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':_0x47bdeb(0x2b1),'label':_0x231f35['t'](_0x47bdeb(0x284))}],'onChange':_0x3445b5=>{const _0x4d8df0=_0x47bdeb;let _0x1c4580=Sa[_0x4d8df0(0x2da)](_0x148690=>_0x148690===_0x3445b5);_0x1c4580&&_0x5472ef({'numberFormat':_0x1c4580});}})}),_0x4ddcc8[_0x47bdeb(0x34e)]===_0x47bdeb(0x1c2)&&_0x143050(wa,{'label':_0x231f35['t'](_0x47bdeb(0x458)),'children':_0x143050(_0x56be65,{'value':_0x4ddcc8[_0x47bdeb(0x1c2)],'onChange':_0x123fb8=>_0x5472ef({'currency':_0x123fb8[_0x47bdeb(0x268)](0x0,0x3)[_0x47bdeb(0x1ee)]()})})}),_0x4ddcc8[_0x47bdeb(0x34e)]!==_0x47bdeb(0x473)&&_0x143050(wa,{'label':_0x231f35['t']('bases-dashboard-ui.dashboardInspector.decimalPlaces'),'children':_0x143050(_0x137e64,{'min':0x0,'max':0x8,'value':_0x4ddcc8[_0x47bdeb(0x36d)],'onChange':_0x4c1234=>_0x5472ef({'decimalPlaces':_0x4c1234??0x0})})})]})}),_0xc30f33&&_0x143050(_0x2e920d,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x143050(_0x3564dd,{'tables':_0x1fe081,'formula':_0x5451bf(_0x447615,_0x1fe081),'onCancel':()=>_0x5a6ded(!0x1),'onSave':_0x3505b8=>{const _0x44291d=_0x47bdeb;let _0x3addf6=_0x191347[_0x44291d(0x3a0)][_0x44291d(0x213)]??{'formula':''};return _0x5a18fc({..._0x191347,'shapeData':{..._0x191347[_0x44291d(0x3a0)],'formulaBinding':{..._0x3addf6,'formula':_0x57ee91(_0x3505b8,_0x1fe081)}}})[_0x44291d(0x3c4)](()=>_0x5a6ded(!0x1))['catch'](()=>void 0x0);}})})]});}function wa({children:_0xc15b0f,label:_0x460ed1}){const _0x2ef9dc=_0x410bd1;return _0x391b30(_0x2ef9dc(0x402),{'role':_0x2ef9dc(0x3af),'aria-label':_0x460ed1,'className':_0x2ef9dc(0x3be),'children':[_0x143050(_0x2ef9dc(0x378),{'children':_0x460ed1}),_0xc15b0f]});}const Ta={[_0x27f238['IS']]:_0x410bd1(0x282),[_0x27f238['IS_NOT']]:_0x410bd1(0x247),[_0x27f238[_0x410bd1(0x164)]]:'bases-dashboard-ui.operators.contains',[_0x27f238['NOT_CONTAINS']]:_0x410bd1(0x235),[_0x27f238[_0x410bd1(0x39a)]]:_0x410bd1(0x46b),[_0x27f238['IS_NOT_EMPTY']]:'bases-dashboard-ui.operators.isNotEmpty',[_0x27f238[_0x410bd1(0x175)]]:'bases-dashboard-ui.operators.greaterThan',[_0x27f238[_0x410bd1(0x3c8)]]:'bases-dashboard-ui.operators.greaterThanOrEqual',[_0x27f238[_0x410bd1(0x36e)]]:_0x410bd1(0x313),[_0x27f238['LESS_THAN_OR_EQUAL']]:_0x410bd1(0x353),[_0x27f238[_0x410bd1(0x3f6)]]:'bases-dashboard-ui.operators.before',[_0x27f238[_0x410bd1(0x412)]]:'bases-dashboard-ui.operators.after'};function Ea({disabled:_0x3c4851,fields:_0x4b6e5d,filter:_0x8a0372,onChange:_0x4d3e0d}){const _0x4bec01=_0x410bd1;let _0x2d1d08=_0x20ec70(_0x4f7627),_0xefd69f=(_0x8a0372==null?void 0x0:_0x8a0372[_0x4bec01(0x1df)])??[];return _0xefd69f[_0x4bec01(0x38b)]?_0x143050(_0x4bec01(0x402),{'className':_0x4bec01(0x1ec),'children':_0xefd69f[_0x4bec01(0x173)]((_0x145721,_0x1f2362)=>{const _0x54cf0f=_0x4bec01;let _0x107323=_0x4b6e5d[_0x54cf0f(0x2da)](_0x45045b=>_0x45045b['id']===_0x145721[_0x54cf0f(0x1b7)]);return _0x391b30('div',{'className':_0x54cf0f(0x2db),'children':[_0x391b30(_0x54cf0f(0x402),{'className':'univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','children':[_0x143050('span',{'className':_0x54cf0f(0x2c6),'children':(_0x107323==null?void 0x0:_0x107323[_0x54cf0f(0x1f6)])??_0x145721['fieldId']}),_0x143050(_0x54cf0f(0x378),{'className':_0x54cf0f(0x1ca),'children':_0x2d1d08['t'](Ta[_0x145721[_0x54cf0f(0x340)]])})]}),Pa(_0x145721[_0x54cf0f(0x340)])&&_0x143050(Oa,{'disabled':_0x3c4851,'field':_0x107323,'value':_0x145721[_0x54cf0f(0x3e0)],'onChange':_0x358ae2=>_0x4d3e0d(ja(_0x8a0372,_0x1f2362,{'operand':_0x358ae2}))})]},La(_0xefd69f,_0x145721,_0x1f2362));})}):_0x391b30('div',{'className':_0x4bec01(0x435),'children':[_0x143050(_0x90a2b7,{'className':_0x4bec01(0x4ac)}),_0x143050(_0x4bec01(0x378),{'className':_0x4bec01(0x3b2),'children':_0x2d1d08['t'](_0x4bec01(0x397))})]});}function Da({fields:_0x11a5ee,filter:_0x2801fc,onChange:_0x41b985,onClear:_0x1aa358}){const _0x1176fd=_0x410bd1;let _0x38264d=_0x20ec70(_0x4f7627),_0x4a43d4=(_0x2801fc==null?void 0x0:_0x2801fc[_0x1176fd(0x1df)])??[];return _0x391b30('div',{'data-dashboard-filter-inspector':!0x0,'className':_0x1176fd(0x168),'children':[_0x4a43d4[_0x1176fd(0x173)]((_0x4579f4,_0x1dddb6)=>{const _0x4b91cd=_0x1176fd;let _0x37b94d=_0x11a5ee[_0x4b91cd(0x2da)](_0x37dfd7=>_0x37dfd7['id']===_0x4579f4['fieldId'])??_0x11a5ee[0x0],_0x479b38=Ma(_0x37b94d);return _0x391b30(_0x4b91cd(0x407),{'className':_0x4b91cd(0x1aa),'children':[_0x391b30(_0x4b91cd(0x402),{'className':_0x4b91cd(0x303),'children':[_0x143050(_0x3f5ec5,{'value':_0x4579f4['fieldId'],'options':_0x11a5ee['map'](_0x16ff43=>({'value':_0x16ff43['id'],'label':_0x16ff43[_0x4b91cd(0x1f6)]})),'onChange':_0x496a61=>{const _0x18ddea=_0x4b91cd;let _0x44755b=_0x11a5ee[_0x18ddea(0x2da)](_0x5a93cc=>_0x5a93cc['id']===_0x496a61);if(!_0x44755b)return;let _0x5405ff=Ma(_0x44755b)[0x0];_0x41b985(ja(_0x2801fc,_0x1dddb6,Aa(_0x44755b,_0x5405ff)));}}),_0x143050(_0x11a8c2,{'type':_0x4b91cd(0x44d),'variant':_0x4b91cd(0x3f3),'aria-label':_0x38264d['t'](_0x4b91cd(0x3c5)),'className':_0x4b91cd(0x4b2),'onClick':()=>_0x41b985(ka(_0x2801fc,_0x4a43d4[_0x4b91cd(0x267)]((_0xeb6b8e,_0x30bad2)=>_0x30bad2!==_0x1dddb6))),'children':_0x143050(_0x26780d,{})})]}),_0x143050(_0x3f5ec5,{'value':_0x4579f4[_0x4b91cd(0x340)],'options':_0x479b38[_0x4b91cd(0x173)](_0x1cf233=>({'value':_0x1cf233,'label':_0x38264d['t'](Ta[_0x1cf233])})),'onChange':_0x35c6d4=>{let _0xa60f53=_0x479b38['find'](_0x334998=>_0x334998===_0x35c6d4);_0xa60f53&&_0x41b985(ja(_0x2801fc,_0x1dddb6,{'operator':_0xa60f53,'operand':Na(_0x37b94d)}));}}),Pa(_0x4579f4[_0x4b91cd(0x340)])&&_0x143050(Oa,{'field':_0x37b94d,'value':_0x4579f4[_0x4b91cd(0x3e0)],'onChange':_0x54686e=>_0x41b985(ja(_0x2801fc,_0x1dddb6,{'operand':_0x54686e}))})]},La(_0x4a43d4,_0x4579f4,_0x1dddb6));}),_0x391b30(_0x11a8c2,{'type':'button','variant':_0x1176fd(0x3f3),'className':_0x1176fd(0x468),'disabled':!_0x11a5ee[_0x1176fd(0x38b)],'onClick':()=>{let _0x3f6173=_0x11a5ee[0x0];if(!_0x3f6173)return;let _0x185b72=Ma(_0x3f6173)[0x0];_0x41b985(ka(_0x2801fc,[..._0x4a43d4,Aa(_0x3f6173,_0x185b72)]));},'children':[_0x143050(_0x82e3c7,{}),_0x38264d['t']('bases-dashboard-ui.dashboardInspector.newCondition')]}),_0x4a43d4['length']>0x0&&_0x143050(_0x11a8c2,{'type':'button','variant':'text','className':'univer-w-full','onClick':_0x1aa358,'children':_0x38264d['t'](_0x1176fd(0x3d0))})]});}function Oa({disabled:_0x3935a1,field:_0x1165a3,onChange:_0x361961,value:_0x1b2f4d}){const _0x2aa274=_0x410bd1;let _0x3595b1=_0x20ec70(_0x4f7627),[_0x4472de,_0x2bb850]=_0x5e5f09({'value':_0x1b2f4d,'text':String(_0x1b2f4d??'')});Object['is'](_0x4472de['value'],_0x1b2f4d)||_0x2bb850({'value':_0x1b2f4d,'text':String(_0x1b2f4d??'')});let _0x5f4a13=_0x4472de['text'],_0x58c1bb=_0x409702=>_0x2bb850({'value':_0x1b2f4d,'text':_0x409702}),_0x5da054=_0x1165a3==null?void 0x0:_0x1165a3[_0x2aa274(0x38c)];if(_0x5da054===_0xac378e['Checkbox']){let _0x2f0ca0=_0x1b2f4d===!0x0||_0x1b2f4d==='true';return _0x391b30(_0x11a8c2,{'type':_0x2aa274(0x44d),'variant':'default','disabled':_0x3935a1,'className':_0x2aa274(0x2e1),'onClick':()=>_0x361961(!_0x2f0ca0),'children':[_0x143050(_0x10db4e,{'checked':_0x2f0ca0,'disabled':_0x3935a1,'onChange':()=>void 0x0}),_0x2f0ca0?_0x3595b1['t'](_0x2aa274(0x243)):_0x3595b1['t']('bases-dashboard-ui.dashboardInspector.unchecked')]});}return Ra(_0x5da054)?_0x3935a1?_0x143050(_0x11a8c2,{'type':'button','variant':_0x2aa274(0x47a),'className':_0x2aa274(0x160),'disabled':!0x0,'children':_0x5e4ae7(_0x1b2f4d==null||_0x1b2f4d===''?void 0x0:String(_0x1b2f4d))[_0x2aa274(0x1d7)](_0x2aa274(0x1dd))}):_0x143050(_0x2d128f,{'className':'univer-w-full','value':_0x5e4ae7(_0x1b2f4d==null||_0x1b2f4d===''?void 0x0:String(_0x1b2f4d))['toDate'](),'onValueChange':_0x1a5d27=>_0x361961(_0x5e4ae7(_0x1a5d27)['format'](_0x2aa274(0x1dd)))}):Ba(_0x1165a3)?_0x143050(_0x3fad30,{'className':_0x2aa274(0x160),'disabled':_0x3935a1,'value':Array[_0x2aa274(0x1b8)](_0x1b2f4d)?_0x1b2f4d[_0x2aa274(0x173)](String):[],'options':Fa(_0x1165a3),'onChange':_0x361961}):_0x5da054===_0xac378e[_0x2aa274(0x2eb)]||_0x5da054===_0xac378e[_0x2aa274(0x2cc)]||_0x5da054===_0xac378e['Person']?_0x143050(_0x3f5ec5,{'className':'univer-w-full','disabled':_0x3935a1,'value':String(_0x1b2f4d??''),'options':[{'value':'','label':_0x3595b1['t'](_0x2aa274(0x450))},...Fa(_0x1165a3)],'onChange':_0x361961}):za(_0x5da054)?_0x143050(_0x56be65,{'className':'univer-w-full','disabled':_0x3935a1,'inputMode':_0x2aa274(0x2e2),'value':_0x5f4a13,'aria-invalid':_0x5f4a13!==''&&!Number[_0x2aa274(0x4a5)](Number(_0x5f4a13)),'onChange':_0x46c646=>{_0x58c1bb(_0x46c646),_0x46c646===''?_0x361961(''):Number['isFinite'](Number(_0x46c646))&&_0x361961(Number(_0x46c646));},'onBlur':()=>_0x58c1bb(String(_0x1b2f4d??''))}):_0x143050(_0x56be65,{'disabled':_0x3935a1,'value':String(_0x1b2f4d??''),'placeholder':_0x3595b1['t'](_0x2aa274(0x22e)),'onChange':_0x361961});}function ka(_0x1d3aeb,_0x240b52){const _0x26a210=_0x410bd1;return{'conjunction':(_0x1d3aeb==null?void 0x0:_0x1d3aeb[_0x26a210(0x45a)])??_0x3c7c2d[_0x26a210(0x3d7)],'conditions':_0x240b52};}function Aa(_0x4907e6,_0xfac75d){return Pa(_0xfac75d)?{'fieldId':_0x4907e6['id'],'operator':_0xfac75d,'operand':Na(_0x4907e6)}:{'fieldId':_0x4907e6['id'],'operator':_0xfac75d};}function ja(_0x302ec8,_0xd36888,_0x5d64de){const _0x458362=_0x410bd1;return ka(_0x302ec8,((_0x302ec8==null?void 0x0:_0x302ec8[_0x458362(0x1df)])??[])['map']((_0x44d1d,_0x54b69d)=>_0x54b69d===_0xd36888?{..._0x44d1d,..._0x5d64de}:_0x44d1d));}function Ma(_0x1d24c6){const _0x398bd4=_0x410bd1;let _0x369e4f=[_0x27f238[_0x398bd4(0x39a)],_0x27f238[_0x398bd4(0x32e)]];switch(_0x1d24c6==null?void 0x0:_0x1d24c6[_0x398bd4(0x38c)]){case _0xac378e[_0x398bd4(0x28a)]:case _0xac378e['Currency']:case _0xac378e['Progress']:case _0xac378e[_0x398bd4(0x2de)]:return[_0x27f238['IS'],_0x27f238[_0x398bd4(0x436)],_0x27f238[_0x398bd4(0x175)],_0x27f238[_0x398bd4(0x36e)],..._0x369e4f];case _0xac378e[_0x398bd4(0x49e)]:case _0xac378e[_0x398bd4(0x2a2)]:case _0xac378e['UpdatedAt']:return[_0x27f238['IS'],_0x27f238[_0x398bd4(0x436)],_0x27f238[_0x398bd4(0x3f6)],_0x27f238[_0x398bd4(0x412)],..._0x369e4f];case _0xac378e[_0x398bd4(0x2e7)]:return[_0x27f238['IS'],_0x27f238[_0x398bd4(0x436)]];default:return[_0x27f238['IS'],_0x27f238[_0x398bd4(0x436)],_0x27f238[_0x398bd4(0x164)],_0x27f238[_0x398bd4(0x29d)],..._0x369e4f];}}function Na(_0x5e2a5c){const _0x137783=_0x410bd1;return _0x5e2a5c?_0x5e2a5c[_0x137783(0x38c)]===_0xac378e[_0x137783(0x2e7)]?!0x1:Ra(_0x5e2a5c[_0x137783(0x38c)])?_0x5e4ae7()[_0x137783(0x1d7)](_0x137783(0x1dd)):Ba(_0x5e2a5c)?[]:'':'';}function Pa(_0x103d8b){const _0x2c9109=_0x410bd1;return _0x103d8b!==_0x27f238[_0x2c9109(0x39a)]&&_0x103d8b!==_0x27f238[_0x2c9109(0x32e)];}function Fa(_0x3b388c){const _0x32d6de=_0x410bd1;var _0x475dcc;return(Array['isArray'](_0x3b388c==null||(_0x475dcc=_0x3b388c['config'])==null?void 0x0:_0x475dcc[_0x32d6de(0x22a)])?_0x3b388c[_0x32d6de(0x30a)]['options']:[])['map']((_0x201ec1,_0x1c49b9)=>{const _0x401806=_0x32d6de;if(typeof _0x201ec1==_0x401806(0x274))return{'label':_0x201ec1,'value':_0x201ec1};if(!Ia(_0x201ec1))return{'label':String(_0x1c49b9+0x1),'value':String(_0x1c49b9+0x1)};let _0x257da0=_0x201ec1,_0x5d1a9c=String(_0x257da0[_0x401806(0x1f6)]??_0x257da0['id']??_0x1c49b9+0x1),_0x155ab1=String(_0x257da0['id']??_0x5d1a9c);return{'label':_0x5d1a9c,'value':/^opt-\d+$/[_0x401806(0x272)](_0x155ab1)?_0x5d1a9c:_0x155ab1};});}function Ia(_0x91d7d0){const _0x246715=_0x410bd1;return typeof _0x91d7d0==_0x246715(0x16a)&&!!_0x91d7d0;}function La(_0x224a34,_0x43cfbe,_0x5481eb){const _0x342f00=_0x410bd1;let _0xe2b6f7=JSON[_0x342f00(0x21b)](_0x43cfbe);return _0xe2b6f7+'-'+_0x224a34[_0x342f00(0x268)](0x0,_0x5481eb)[_0x342f00(0x267)](_0x439ae0=>JSON[_0x342f00(0x21b)](_0x439ae0)===_0xe2b6f7)[_0x342f00(0x38b)];}function Ra(_0x274444){const _0x587a63=_0x410bd1;return _0x274444===_0xac378e[_0x587a63(0x49e)]||_0x274444===_0xac378e['CreatedAt']||_0x274444===_0xac378e['UpdatedAt'];}function za(_0xdda19a){const _0x130f87=_0x410bd1;return _0xdda19a===_0xac378e['Number']||_0xdda19a===_0xac378e[_0x130f87(0x3cd)]||_0xdda19a===_0xac378e[_0x130f87(0x354)]||_0xdda19a===_0xac378e[_0x130f87(0x2de)];}function Ba(_0x46975f){const _0x15b8e5=_0x410bd1;var _0x55dd28;return(_0x46975f==null?void 0x0:_0x46975f[_0x15b8e5(0x38c)])===_0xac378e['MultiSelect']||(_0x46975f==null?void 0x0:_0x46975f[_0x15b8e5(0x38c)])===_0xac378e[_0x15b8e5(0x2cc)]||(_0x46975f==null?void 0x0:_0x46975f[_0x15b8e5(0x38c)])===_0xac378e[_0x15b8e5(0x16d)]&&((_0x55dd28=_0x46975f[_0x15b8e5(0x30a)])==null?void 0x0:_0x55dd28['allowMultiple'])===!0x0;}function Va({base:_0x2773cc,chartRuntime:_0x26095c,onChange:_0x2ff9b2,onClose:_0x270aa9,onSelectBackgroundImage:_0x699695,onSelectImage:_0x209bc7,unitId:_0x5e3037,widget:_0x4ffe5e}){const _0x13bde7=_0x410bd1;let _0x171c85=_0x20ec70(_0x668d8f),_0x32b7f6=_0x20ec70(_0x4f7627),_0xf15725=_0x2773cc['getSnapshot'](),_0x4e9c6d=_0x13bde7(0x266)in _0x4ffe5e?_0xf15725[_0x13bde7(0x2ec)][_0x4ffe5e[_0x13bde7(0x266)]]:void 0x0,_0xa09921=_0x4ffe5e[_0x13bde7(0x38c)]===_0x4e7fff[_0x13bde7(0x49f)]?_0x4e9c6d==null?void 0x0:_0x4e9c6d['views'][_0x4ffe5e[_0x13bde7(0x326)]]:void 0x0,_0x28ae0f=_0x32b7f6['t'](Ja(_0x4ffe5e));return _0x391b30(_0x13bde7(0x208),{'data-dashboard-inspector':!0x0,'className':_0x13bde7(0x232),'children':[_0x391b30(_0x13bde7(0x3cb),{'className':_0x13bde7(0x3d3),'children':[_0x143050('h3',{'className':_0x13bde7(0x46d),'children':_0x28ae0f}),_0x143050(_0x11a8c2,{'type':_0x13bde7(0x44d),'size':'small','variant':'text','aria-label':_0x32b7f6['t'](_0x13bde7(0x2ff)),'onClick':_0x270aa9,'children':_0x143050(_0x26780d,{})})]}),_0x4ffe5e[_0x13bde7(0x38c)]===_0x4e7fff[_0x13bde7(0x49f)]&&(qa(_0xa09921)&&_0x26095c?_0x143050(ba,{'runtime':_0x26095c,'sourceChart':_0xa09921[_0x13bde7(0x30a)]['chart'],'sourceName':((_0x4e9c6d==null?void 0x0:_0x4e9c6d[_0x13bde7(0x1f6)])??'')+_0x13bde7(0x1d4)+_0xa09921[_0x13bde7(0x1f6)],'widget':_0x4ffe5e,'onChange':_0x2ff9b2,'onEditData':()=>{const _0x2785ce=_0x13bde7;_0x171c85['executeCommand'](_0x2fe630['id'],{'unitId':_0x5e3037,'tableId':_0x4ffe5e['tableId'],'viewId':_0x4ffe5e[_0x2785ce(0x326)]})[_0x2785ce(0x28c)](()=>void 0x0);}}):_0x143050(Ga,{'message':qa(_0xa09921)?_0x32b7f6['t'](_0x13bde7(0x2fb)):_0x32b7f6['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})),_0x4ffe5e['type']===_0x4e7fff[_0x13bde7(0x2b8)]&&_0x143050(Ca,{'base':_0x2773cc,'widget':_0x4ffe5e,'onChange':_0x2ff9b2,'onSelectBackgroundImage':_0x699695}),_0x4ffe5e[_0x13bde7(0x38c)]===_0x4e7fff[_0x13bde7(0x193)]&&_0x143050(Ua,{'base':_0x2773cc,'onChange':_0x2ff9b2,'widget':_0x4ffe5e}),_0x4ffe5e[_0x13bde7(0x38c)]===_0x4e7fff[_0x13bde7(0x4b4)]&&_0x143050(Wa,{'onChange':_0x2ff9b2,'widget':_0x4ffe5e}),_0x4ffe5e['type']===_0x4e7fff[_0x13bde7(0x419)]&&_0x143050(Ha,{'onChange':_0x2ff9b2,'onSelectImage':_0x209bc7,'widget':_0x4ffe5e})]});}function Ha({onChange:_0x11c27b,onSelectImage:_0x2a449c,widget:_0x3c2a0a}){const _0x129dcd=_0x410bd1;let _0x5cda23=_0x20ec70(_0x4f7627);return _0x391b30(_0x129dcd(0x402),{'className':_0x129dcd(0x3e8),'children':[_0x391b30(_0x11a8c2,{'className':_0x129dcd(0x160),'onClick':()=>_0x2a449c()[_0x129dcd(0x3c4)](_0xea7f5c=>_0xea7f5c&&_0x11c27b({..._0x3c2a0a,'source':_0xea7f5c['source'],'sourceType':_0xea7f5c[_0x129dcd(0x253)],'alt':_0xea7f5c['name']}))[_0x129dcd(0x28c)](()=>void 0x0),'children':[_0x143050(_0x82e3c7,{}),_0x5cda23['t']('bases-dashboard-ui.dashboardInspector.replaceImage')]}),_0x391b30(_0x129dcd(0x19d),{'className':_0x129dcd(0x3be),'children':[_0x143050(_0x129dcd(0x378),{'children':_0x5cda23['t'](_0x129dcd(0x2c5))}),_0x143050(_0x5c4858,{'items':[{'value':_0x129dcd(0x409),'label':_0x5cda23['t'](_0x129dcd(0x336))},{'value':_0x129dcd(0x30c),'label':_0x5cda23['t'](_0x129dcd(0x308))},{'value':'original','label':_0x5cda23['t'](_0x129dcd(0x22b))}],'value':_0x3c2a0a[_0x129dcd(0x201)]??_0x129dcd(0x409),'onChange':_0x5aceac=>_0x11c27b({..._0x3c2a0a,'displayMode':_0x5aceac})[_0x129dcd(0x28c)](()=>void 0x0)})]})]});}function Ua({base:_0x4a912c,onChange:_0x1a262f,widget:_0x39ae9b}){const _0x2cd8c7=_0x410bd1;let _0x1e82d2=_0x4a912c[_0x2cd8c7(0x31e)]()[_0x2cd8c7(0x2ec)][_0x39ae9b[_0x2cd8c7(0x266)]],_0xd785d3=_0x1e82d2==null?void 0x0:_0x1e82d2[_0x2cd8c7(0x30e)][_0x2cd8c7(0x2da)](_0x2de850=>_0x1e82d2[_0x2cd8c7(0x348)][_0x2de850]),_0x441e63=_0xd785d3?_0x1e82d2==null?void 0x0:_0x1e82d2[_0x2cd8c7(0x348)][_0xd785d3]:void 0x0,_0x41d735=_0x1e82d2&&_0x441e63?_0x4eb67b(_0x1e82d2,_0x441e63):[];return _0x143050(Da,{'fields':_0x41d735,'filter':_0x39ae9b[_0x2cd8c7(0x267)],'onChange':_0xae912a=>_0x1a262f({..._0x39ae9b,'filter':_0xae912a})[_0x2cd8c7(0x28c)](()=>void 0x0),'onClear':()=>_0x1a262f({..._0x39ae9b,'filter':null})[_0x2cd8c7(0x28c)](()=>void 0x0)});}function Wa({onChange:_0x53eae8,widget:_0x27f5a8}){const _0x14659a=_0x410bd1;let _0x2b2f4f=_0x20ec70(_0x4f7627),_0x562a28=_0x20ec70(_0x4e623a),_0x57d24b=_0x24cacb(()=>_0x562a28[_0x14659a(0x1be)],_0x562a28[_0x14659a(0x188)](),!0x1,[_0x562a28]),_0xfdba8f=Hr(_0x27f5a8),_0x405911=_0x5436f7=>_0x53eae8({..._0x27f5a8,'appearance':{..._0xfdba8f,..._0x5436f7}})[_0x14659a(0x28c)](()=>void 0x0);return _0x391b30('div',{'className':_0x14659a(0x2f3),'children':[_0x143050(_0x2d4d6c,{'defaultValue':Ur(_0x27f5a8['document']),'rows':0x8,'onBlur':_0x424179=>_0x53eae8({..._0x27f5a8,'document':Wr(_0x27f5a8[_0x14659a(0x40b)],_0x424179[_0x14659a(0x2f1)][_0x14659a(0x46f)])})[_0x14659a(0x28c)](()=>void 0x0)}),_0x143050(_0x535011,{'emptyLabel':_0x2b2f4f['t'](_0x14659a(0x25a)),'label':_0x2b2f4f['t'](_0x14659a(0x25a)),'pickerFallbackValue':_0x57d24b['gray'][0x0],'resetLabel':_0x2b2f4f['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0xfdba8f[_0x14659a(0x32a)]??null,'onChange':_0x617070=>_0x405911({'backgroundColor':_0x617070??void 0x0})}),_0x143050(_0x535011,{'emptyLabel':_0x2b2f4f['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x2b2f4f['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x57d24b[_0x14659a(0x20c)][0x3e8],'resetLabel':_0x2b2f4f['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0xfdba8f[_0x14659a(0x2b0)]??null,'onChange':_0x3f98c7=>_0x405911({'textColor':_0x3f98c7??void 0x0})}),_0x143050(Ka,{'label':_0x2b2f4f['t'](_0x14659a(0x42d)),'children':_0x143050(_0x5c4858,{'items':[{'value':'left','label':_0x2b2f4f['t'](_0x14659a(0x4ad))},{'value':_0x14659a(0x1d3),'label':_0x2b2f4f['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0x14659a(0x483),'label':_0x2b2f4f['t'](_0x14659a(0x3b7))}],'value':_0xfdba8f[_0x14659a(0x1c7)],'onChange':_0x3eb1ea=>_0x405911({'alignment':_0x3eb1ea})})}),_0x391b30(Ka,{'label':_0x2b2f4f['t'](_0x14659a(0x207)),'children':[_0x143050(_0x5c4858,{'items':[{'value':'auto','label':_0x2b2f4f['t'](_0x14659a(0x28b))},{'value':_0x14659a(0x234),'label':_0x2b2f4f['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0xfdba8f[_0x14659a(0x1de)],'onChange':_0x1b6eb1=>_0x405911({'fontSizeMode':_0x1b6eb1})}),_0xfdba8f[_0x14659a(0x1de)]==='custom'&&_0x143050(_0x137e64,{'className':_0x14659a(0x398),'min':0xa,'max':0x78,'value':_0xfdba8f[_0x14659a(0x39b)],'onChange':_0x38e852=>_0x405911({'fontSize':_0x38e852??0x12,'fontSizeMode':'custom'})})]})]});}function Ga({message:_0x2e307d}){return _0x143050('div',{'className':'univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','children':_0x2e307d});}function Ka({children:_0x351032,label:_0x346289}){const _0x2f6e5c=_0x410bd1;return _0x391b30(_0x2f6e5c(0x402),{'role':_0x2f6e5c(0x3af),'aria-':!0x0,'className':_0x2f6e5c(0x3be),'children':[_0x143050('span',{'children':_0x346289}),_0x351032]});}function qa(_0x138f04){const _0x1c2d3a=_0x410bd1;return(_0x138f04==null?void 0x0:_0x138f04[_0x1c2d3a(0x38c)])===_0x37c4bc[_0x1c2d3a(0x3bf)]&&typeof _0x138f04[_0x1c2d3a(0x30a)]=='object'&&_0x138f04[_0x1c2d3a(0x30a)]!==null&&_0x1c2d3a(0x382)in _0x138f04[_0x1c2d3a(0x30a)]&&_0x1c2d3a(0x195)in _0x138f04[_0x1c2d3a(0x30a)];}function Ja(_0x37ebe4){const _0x182be8=_0x410bd1;switch(_0x37ebe4['type']){case _0x4e7fff[_0x182be8(0x49f)]:return'bases-dashboard-ui.dashboard.pivotChart';case _0x4e7fff[_0x182be8(0x193)]:return'bases-dashboard-ui.dashboard.tableFilter';case _0x4e7fff[_0x182be8(0x4b4)]:return'bases-dashboard-ui.dashboard.text';case _0x4e7fff[_0x182be8(0x419)]:return _0x182be8(0x42c);case _0x4e7fff['FormulaShape']:return'bases-dashboard-ui.dashboard.formulaShape';}}function Ya({onDelete:_0x52618c,onEdit:_0x1bc52c}){const _0x2d8ae0=_0x410bd1;let _0xbabd99=_0x20ec70(_0x4f7627),_0x561464=_0xbabd99['t']('bases-dashboard-ui.dashboard.editWidget'),_0x5767b1=_0xbabd99['t'](_0x2d8ae0(0x3b3)),_0x134f4f=_0xbabd99['t'](_0x2d8ae0(0x427));return _0x143050(_0x566dc7,{'items':[{'type':_0x2d8ae0(0x485),'children':_0x391b30(_0x2d8ae0(0x378),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x143050(_0x5711a9,{'className':_0x2d8ae0(0x27a),'aria-hidden':_0x2d8ae0(0x2c4)}),_0x143050(_0x2d8ae0(0x378),{'children':_0x561464})]}),'onSelect':_0x1bc52c},{'type':_0x2d8ae0(0x403)},{'type':_0x2d8ae0(0x485),'variant':_0x2d8ae0(0x373),'children':_0x391b30('span',{'className':_0x2d8ae0(0x203),'children':[_0x143050(_0x500a22,{'className':_0x2d8ae0(0x27a),'aria-hidden':'true'}),_0x143050(_0x2d8ae0(0x378),{'children':_0x5767b1})]}),'onSelect':_0x52618c}],'children':_0x143050(_0x11a8c2,{'type':_0x2d8ae0(0x44d),'size':_0x2d8ae0(0x323),'variant':_0x2d8ae0(0x3f3),'title':_0x134f4f,'aria-label':_0x134f4f,'className':_0x2d8ae0(0x3b5),'children':_0x143050(_0x2fabd1,{'className':'univer-size-4','aria-hidden':_0x2d8ae0(0x2c4)})})});}function Xa({dashboardId:_0x13b1ec,presentation:_0x403efe=!0x1,unitId:_0x467e9f}){const _0x3d2df1=_0x410bd1;let _0x5eeff7=_0x20ec70(_0x668d8f),_0x261c21=_0x20ec70(_0x458fcc),_0x12e3d1=_0x20ec70(_0x1561a2),_0x3f6a87=_0x20ec70(_0x1ce417),_0x395c2d=_0x20ec70(_0x4f7627),_0x2e89dc=_0x20ec70(_0x3a9dda),_0x35a440=_0x20ec70(_0x3de274),_0x452233=_0x127850(null),[_0x1ea3c5,_0x366bd5]=_0x5e5f09(!0x1),[_0x502478,_0x4d3a1f]=_0x5e5f09(),[_0x4f1c1c,_0x143a6c]=_0x5e5f09(!0x1),[_0x5e1113,_0x3ab22a]=_0x5e5f09(()=>new Map()),_0x3a9a17=_0x31eec3((_0x241f42,_0x1155bd)=>{_0x3ab22a(_0x4d4b05=>{const _0x557b8c=_0x10b1;let _0x5c8de3=new Map(_0x4d4b05);return _0x1155bd?_0x5c8de3['set'](_0x241f42,_0x1155bd):_0x5c8de3[_0x557b8c(0x171)](_0x241f42),_0x5c8de3;});},[]),_0xcbdd6=_0x24cacb(()=>_0x2e89dc[_0x3d2df1(0x452)][_0x3d2df1(0x40a)](_0x53720a(()=>_0x2e89dc[_0x3d2df1(0x36f)](_0x467e9f,_0x13b1ec))),_0x2e89dc[_0x3d2df1(0x36f)](_0x467e9f,_0x13b1ec),!0x1,[_0x13b1ec,_0x2e89dc,_0x467e9f]),_0x58a28b=_0x3f6a87[_0x3d2df1(0x211)](_0x467e9f,_0xd3f775[_0x3d2df1(0x420)]),_0x4e0bbc=_0x24cacb(()=>_0x35a440[_0x3d2df1(0x42f)],{'undos':0x0,'redos':0x0},!0x1,[_0x35a440]),_0x140a38=vr(_0x467e9f,_0x13b1ec);if(_0x2fd531(()=>{const _0x451e1e=_0x3d2df1;_0x3f6a87[_0x451e1e(0x3d1)](_0x467e9f),_0x3f6a87['focusUnit'](_0x467e9f);},[_0x3f6a87,_0x467e9f]),_0x2fd531(()=>{const _0x3fb36d=_0x3d2df1;let _0x3de108=_0x452233[_0x3fb36d(0x179)],_0x298e48=_0x3de108==null?void 0x0:_0x3de108[_0x3fb36d(0x22f)];if(!_0x3de108||!_0x298e48)return;let _0x5db658=()=>_0x143a6c(_0x298e48[_0x3fb36d(0x1db)]===_0x298e48['documentElement']),_0x4ab026=_0x1babae=>{const _0x40ad33=_0x3fb36d;_0x1babae['key']==='Escape'&&!_0x1babae['defaultPrevented']&&_0x298e48['fullscreenElement']===_0x298e48[_0x40ad33(0x3d5)]&&_0x298e48[_0x40ad33(0x300)]()['catch'](_0x5db658);};return _0x298e48[_0x3fb36d(0x2fc)](_0x3fb36d(0x358),_0x5db658),_0x298e48[_0x3fb36d(0x2fc)](_0x3fb36d(0x26c),_0x4ab026),()=>{const _0x50941d=_0x3fb36d;_0x298e48[_0x50941d(0x445)](_0x50941d(0x358),_0x5db658),_0x298e48[_0x50941d(0x445)](_0x50941d(0x26c),_0x4ab026);};},[]),!_0xcbdd6||!_0x58a28b)return null;let _0x260f26=_0x1f9bf3=>_0x5eeff7['executeCommand'](_0x59e700['id'],{'unitId':_0x467e9f,'dashboardId':_0x13b1ec,'widget':_0x1f9bf3})[_0x3d2df1(0x28c)](()=>void 0x0),_0x22e86d=(_0x150d12,_0x2c87f2,_0x435014)=>{const _0x351215=_0x3d2df1;let _0x59508e=Math[_0x351215(0x3b6)](0x0,..._0xcbdd6[_0x351215(0x487)][_0x351215(0x1c6)](_0x358ea0=>{const _0x594a35=_0x351215;var _0x44a865;let _0x14236d=(_0x44a865=_0xcbdd6[_0x594a35(0x34d)][_0x358ea0])==null?void 0x0:_0x44a865['layout'];return _0x14236d?[_0x14236d[_0x594a35(0x3e4)]+_0x14236d[_0x594a35(0x1ad)]]:[];})),_0x48317a='dashboard-widget-'+_0x542898(0x8),_0x14f6b4={'column':0x0,'row':_0x59508e,'columnSpan':_0x2c87f2,'rowSpan':_0x435014};switch(_0x150d12[_0x351215(0x38c)]){case _0x4e7fff[_0x351215(0x49f)]:return _0x260f26({..._0x150d12,'id':_0x48317a,'layout':_0x14f6b4});case _0x4e7fff[_0x351215(0x193)]:return _0x260f26({..._0x150d12,'id':_0x48317a,'layout':_0x14f6b4});case _0x4e7fff['Text']:return _0x260f26({..._0x150d12,'id':_0x48317a,'layout':_0x14f6b4});case _0x4e7fff[_0x351215(0x419)]:return _0x260f26({..._0x150d12,'id':_0x48317a,'layout':_0x14f6b4});case _0x4e7fff['FormulaShape']:return _0x260f26({..._0x150d12,'id':_0x48317a,'layout':_0x14f6b4});}},_0x4f6423=_0x58a28b[_0x3d2df1(0x31e)](),_0x49c951=_0x4f6423[_0x3d2df1(0x490)][_0x3d2df1(0x1c6)](_0x501211=>{const _0x97264c=_0x3d2df1;let _0x1f7f73=_0x4f6423[_0x97264c(0x2ec)][_0x501211];if(!_0x1f7f73)return[];let _0x3daa83=_0x1f7f73[_0x97264c(0x30e)]['flatMap'](_0x31ed7c=>{const _0x3beed9=_0x97264c;let _0x2e03ef=_0x1f7f73[_0x3beed9(0x348)][_0x31ed7c];return io(_0x2e03ef)?[{'type':'item','children':_0x2e03ef[_0x3beed9(0x1f6)],'onSelect':()=>_0x22e86d({'type':_0x4e7fff[_0x3beed9(0x49f)],'tableId':_0x501211,'pivotViewId':_0x31ed7c,'chart':{..._0x2e03ef['config'][_0x3beed9(0x195)]}},0x6,0xa)}]:[];});return[{'type':_0x97264c(0x312),'children':_0x1f7f73['name'],'options':[..._0x3daa83,..._0x3daa83[_0x97264c(0x38b)]?[{'type':'separator'}]:[],{'type':'item','children':_0x395c2d['t'](_0x97264c(0x397)),'onSelect':()=>_0x22e86d({'type':_0x4e7fff[_0x97264c(0x193)],'tableId':_0x501211,'filter':null},0x6,0x8)}]}];}),_0x445360=[..._0x49c951,..._0x49c951[_0x3d2df1(0x38b)]?[{'type':'separator'}]:[],{'type':'item','children':_0x395c2d['t']('bases-dashboard-ui.dashboard.text'),'onSelect':()=>_0x22e86d({'type':_0x4e7fff[_0x3d2df1(0x4b4)],'document':eo()},0x4,0x6)},{'type':_0x3d2df1(0x485),'children':_0x395c2d['t'](_0x3d2df1(0x42c)),'onSelect':()=>to(_0x261c21)[_0x3d2df1(0x3c4)](_0x4a4dbb=>_0x4a4dbb&&_0x22e86d({'type':_0x4e7fff['Image'],'source':_0x4a4dbb[_0x3d2df1(0x2d8)],'sourceType':_0x4a4dbb[_0x3d2df1(0x253)],'alt':_0x4a4dbb[_0x3d2df1(0x1f6)],'displayMode':_0x3d2df1(0x409)},0x4,0x6))},{'type':_0x3d2df1(0x485),'children':_0x395c2d['t'](_0x3d2df1(0x17f)),'onSelect':()=>{const _0x3e6734=_0x3d2df1;let _0x53409c=_0x4f6423[_0x3e6734(0x490)][_0x3e6734(0x2da)](_0x2e8bec=>_0x4f6423['tables'][_0x2e8bec]);_0x53409c&&_0x22e86d({'type':_0x4e7fff['FormulaShape'],'tableId':_0x53409c,'shapeType':_0x389913['RoundRect'],'shapeData':_0x365108(),'description':_0x395c2d['t'](_0x3e6734(0x17f))},0x4,0x6);}}],_0x18e481=_0x502478?_0xcbdd6['widgets'][_0x502478]:void 0x0,_0x46f46d=async()=>{const _0x12eba2=_0x3d2df1;let _0x12e660=_0x452233[_0x12eba2(0x179)];if(!_0x12e660)return;let _0xd9c38e=_0x12e660[_0x12eba2(0x22f)];_0xd9c38e[_0x12eba2(0x1db)]===_0xd9c38e['documentElement']?await _0xd9c38e[_0x12eba2(0x300)]():await _0xd9c38e[_0x12eba2(0x3d5)][_0x12eba2(0x258)]();},_0x35cd51=_0x403efe||_0x4f1c1c,_0x1c6afd=_0x140a38&&!_0x35cd51;return _0x391b30(_0x3d2df1(0x402),{'ref':_0x452233,'className':_0x3d2df1(0x4aa)+(_0x4f1c1c?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':_0x3d2df1(0x1b4))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[!_0x35cd51&&_0x391b30('header',{'className':'univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x143050(_0x37386e,{'className':_0x3d2df1(0x356)}),_0x143050('h2',{'className':_0x3d2df1(0x46d),'children':_0xcbdd6['name']}),_0x143050(_0x51ad51,{'target':{'unitId':_0x467e9f,'objectId':_0x264ef9(_0x13b1ec),'objectType':_0x2dc28e[_0x3d2df1(0x260)]},'name':_0xcbdd6['name'],'commandId':_0x523fb1['id'],'exists':()=>!!_0x2e89dc['getDashboard'](_0x467e9f,_0x13b1ec)},_0x467e9f+'/'+_0x13b1ec),_0x143050(_0x335c60,{'unitId':_0x467e9f}),_0x143050(_0x11a8c2,{'type':_0x3d2df1(0x44d),'size':_0x3d2df1(0x323),'variant':_0x3d2df1(0x3f3),'aria-label':_0x395c2d['t'](_0x3d2df1(0x43d)),'disabled':!_0x140a38||_0x4e0bbc[_0x3d2df1(0x36b)]===0x0,'onClick':()=>_0x5eeff7['executeCommand'](_0x2178d8['id'])['catch'](()=>void 0x0),'children':_0x143050(_0x232960,{})}),_0x143050(_0x11a8c2,{'type':_0x3d2df1(0x44d),'size':'small','variant':'text','aria-label':_0x395c2d['t'](_0x3d2df1(0x3f7)),'disabled':!_0x140a38||_0x4e0bbc['redos']===0x0,'onClick':()=>_0x5eeff7[_0x3d2df1(0x18b)](_0xa30686['id'])[_0x3d2df1(0x28c)](()=>void 0x0),'children':_0x143050(_0x4cec9e,{})}),_0x143050(_0x11a8c2,{'type':_0x3d2df1(0x44d),'size':_0x3d2df1(0x323),'variant':_0x3d2df1(0x3f3),'aria-label':_0x395c2d['t'](_0x3d2df1(0x46c)),'onClick':()=>_0x46f46d()[_0x3d2df1(0x28c)](()=>void 0x0),'children':_0x143050(_0x14205d,{})}),_0x143050(_0x566dc7,{'items':_0x445360,'children':_0x391b30(_0x11a8c2,{'variant':_0x3d2df1(0x386),'disabled':!_0x140a38,'children':[_0x143050(_0x82e3c7,{}),_0x395c2d['t'](_0x3d2df1(0x38f))]})})]}),_0x391b30(_0x3d2df1(0x402),{'className':_0x3d2df1(0x4a2),'children':[_0x143050(_0x3d2df1(0x402),{'className':_0x3d2df1(0x1ab),'children':_0x143050(da,{'dashboard':_0xcbdd6,'dragLabel':_0x395c2d['t'](_0x3d2df1(0x33a)),'editable':_0x1c6afd,'resizeLabel':_0x395c2d['t'](_0x3d2df1(0x3d8)),'widgetLabel':_0x24e422=>_0x395c2d['t'](ro(_0x24e422[_0x3d2df1(0x38c)])),'selectedWidgetId':_0x1c6afd?_0x502478:void 0x0,'onSelectWidget':_0x1c6afd?_0x426b07=>{_0x4d3a1f(_0x426b07),_0x426b07||_0x366bd5(!0x1);}:void 0x0,'onLayoutsCommit':_0x417f94=>{const _0x22ee59=_0x3d2df1;let _0x3bb68f={..._0xcbdd6[_0x22ee59(0x34d)]};_0x417f94[_0x22ee59(0x349)]((_0x41ab10,_0xf99138)=>{let _0x13c67b=_0x3bb68f[_0xf99138];_0x13c67b&&(_0x3bb68f[_0xf99138]={..._0x13c67b,'layout':_0x41ab10});}),_0x5eeff7[_0x22ee59(0x18b)](_0x1e24a6['id'],{'unitId':_0x467e9f,'dashboard':{..._0xcbdd6,'widgets':_0x3bb68f}})['catch'](()=>void 0x0);},'renderWidget':_0x3b381d=>_0x143050(Za,{'base':_0x58a28b,'dashboard':_0xcbdd6,'unitId':_0x467e9f,'widget':_0x3b381d,'onChange':_0x260f26,'onChartRuntimeChange':_0x3a9a17}),'renderWidgetActions':_0x109d7d=>_0x143050(Ya,{'onEdit':()=>{_0x4d3a1f(_0x109d7d['id']),_0x366bd5(!0x0);},'onDelete':()=>{const _0x4096e7=_0x3d2df1;_0x502478===_0x109d7d['id']&&(_0x4d3a1f(void 0x0),_0x366bd5(!0x1)),_0x5eeff7['executeCommand'](_0x29094f['id'],{'unitId':_0x467e9f,'dashboardId':_0x13b1ec,'widgetId':_0x109d7d['id']})[_0x4096e7(0x28c)](()=>void 0x0);}})})}),_0x1c6afd&&_0x1ea3c5&&_0x18e481&&_0x143050(Va,{'base':_0x58a28b,'chartRuntime':_0x5e1113[_0x3d2df1(0x43f)](_0x18e481['id']),'unitId':_0x467e9f,'widget':_0x18e481,'onChange':_0x260f26,'onClose':()=>_0x366bd5(!0x1),'onSelectBackgroundImage':()=>no(_0x12e3d1),'onSelectImage':()=>to(_0x261c21)})]})]});}function Za({base:_0x491e7b,dashboard:_0x4566ab,onChange:_0x4c0131,onChartRuntimeChange:_0x4f5aa7,unitId:_0x29ba50,widget:_0x2e1d5f}){const _0x40bea2=_0x410bd1;let _0x73f0f2=_0x10a2b7(()=>_0x4566ab[_0x40bea2(0x487)][_0x40bea2(0x1c6)](_0x36a3d4=>{const _0x37a638=_0x40bea2;let _0x2032fa=_0x4566ab[_0x37a638(0x34d)][_0x36a3d4];return(_0x2032fa==null?void 0x0:_0x2032fa[_0x37a638(0x38c)])===_0x4e7fff[_0x37a638(0x193)]&&_0x2032fa[_0x37a638(0x266)]===(_0x37a638(0x266)in _0x2e1d5f?_0x2e1d5f['tableId']:'')&&_0x2032fa['filter']?[_0x2032fa[_0x37a638(0x267)]]:[];}),[_0x4566ab,_0x2e1d5f]);switch(_0x2e1d5f['type']){case _0x4e7fff['PivotChart']:return _0x143050(zr,{'filters':_0x73f0f2,'unitId':_0x29ba50,'widget':_0x2e1d5f,'onRuntimeChange':_0x4f5aa7});case _0x4e7fff[_0x40bea2(0x193)]:return _0x143050(Ea,{'fields':Qa(_0x491e7b,_0x2e1d5f[_0x40bea2(0x266)]),'filter':_0x2e1d5f[_0x40bea2(0x267)],'onChange':_0x1824e7=>_0x4c0131({..._0x2e1d5f,'filter':_0x1824e7})['catch'](()=>void 0x0)});case _0x4e7fff['Text']:return _0x143050(Gr,{'widget':_0x2e1d5f});case _0x4e7fff[_0x40bea2(0x419)]:return _0x143050($a,{'widget':_0x2e1d5f});case _0x4e7fff['FormulaShape']:return _0x143050(kr,{'dashboardId':_0x4566ab['id'],'unitId':_0x29ba50,'widget':_0x2e1d5f});}}function Qa(_0x5bafcd,_0x4a53f5){const _0x382b87=_0x410bd1;let _0x37c324=_0x5bafcd[_0x382b87(0x31e)]()[_0x382b87(0x2ec)][_0x4a53f5],_0x33c20b=_0x37c324==null?void 0x0:_0x37c324[_0x382b87(0x30e)][_0x382b87(0x2da)](_0x56f9a3=>_0x37c324[_0x382b87(0x348)][_0x56f9a3]),_0x69d24a=_0x33c20b?_0x37c324==null?void 0x0:_0x37c324[_0x382b87(0x348)][_0x33c20b]:void 0x0;return _0x37c324&&_0x69d24a?_0x4eb67b(_0x37c324,_0x69d24a):[];}function $a({widget:_0x3bdb16}){const _0x719b3e=_0x410bd1;let _0x2ff2e7=_0x20ec70(_0x458fcc),[_0x187c24,_0x4a831a]=_0x5e5f09(_0x3bdb16[_0x719b3e(0x253)]===_0x4ca25c['UUID']?'':_0x3bdb16[_0x719b3e(0x2d8)]);return _0x2fd531(()=>{const _0x5c2f72=_0x719b3e;let _0x17c640=!0x0;return _0x2ff2e7[_0x5c2f72(0x4a1)](_0x3bdb16[_0x5c2f72(0x2d8)],_0x3bdb16[_0x5c2f72(0x253)])[_0x5c2f72(0x3c4)](_0x233ac5=>{_0x17c640&&_0x4a831a(_0x233ac5);})[_0x5c2f72(0x28c)](()=>void 0x0),()=>{_0x17c640=!0x1;};},[_0x2ff2e7,_0x3bdb16[_0x719b3e(0x2d8)],_0x3bdb16[_0x719b3e(0x253)]]),_0x187c24?_0x143050('div',{'role':_0x3bdb16[_0x719b3e(0x1b3)]?_0x719b3e(0x21f):void 0x0,'aria-label':_0x3bdb16[_0x719b3e(0x1b3)]||void 0x0,'data-dashboard-image':_0x3bdb16['id'],'className':_0x719b3e(0x421),'style':br(_0x187c24,_0x3bdb16['displayMode'])}):null;}function eo(){let _0x3f19de=_0x76d4c9(new Set());return{'id':'dashboard-text-'+_0x542898(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x3f19de}]},'documentStyle':{}};}function to(_0xc1e7c0){return new Promise(_0x5b0db9=>{const _0x1b374f=_0x10b1;let _0x38b0df=document[_0x1b374f(0x414)](_0x1b374f(0x466));_0x38b0df[_0x1b374f(0x38c)]='file',_0x38b0df[_0x1b374f(0x2e3)]='image/*',_0x38b0df[_0x1b374f(0x2fc)](_0x1b374f(0x376),()=>{const _0x519c64=_0x1b374f;var _0x241e57;let _0x17a530=(_0x241e57=_0x38b0df['files'])==null?void 0x0:_0x241e57[0x0];_0x17a530?_0xc1e7c0[_0x519c64(0x406)](_0x17a530)['then'](_0x29287c=>{const _0x53f67f=_0x519c64;!_0x29287c[_0x53f67f(0x2d8)]||_0x29287c[_0x53f67f(0x253)]===void 0x0?_0x5b0db9(null):_0x5b0db9({'name':_0x29287c[_0x53f67f(0x1f6)],'source':_0x29287c[_0x53f67f(0x2d8)],'sourceType':_0x29287c[_0x53f67f(0x253)]});})['catch'](()=>_0x5b0db9(null)):_0x5b0db9(null);},{'once':!0x0}),_0x38b0df[_0x1b374f(0x291)]();});}function no(_0x59f9be){return new Promise(_0xbbeec=>{const _0x19a7d5=_0x10b1;let _0x653219=document[_0x19a7d5(0x414)](_0x19a7d5(0x466));_0x653219[_0x19a7d5(0x38c)]='file',_0x653219['accept']='image/*',_0x653219[_0x19a7d5(0x2fc)]('change',()=>{const _0x592444=_0x19a7d5;var _0x236b52;let _0x4b9cdd=(_0x236b52=_0x653219[_0x592444(0x251)])==null?void 0x0:_0x236b52[0x0];_0x4b9cdd?_0x59f9be['saveImage'](_0x4b9cdd)[_0x592444(0x3c4)](_0x4a1a18=>{const _0x586116=_0x592444;if(!(_0x4a1a18!=null&&_0x4a1a18[_0x586116(0x2d8)]))_0xbbeec(null);else{if(_0x4a1a18[_0x586116(0x364)]){let _0x4ea33a=new Image();_0x4ea33a['src']=_0x4a1a18['base64Cache'],_0x59f9be[_0x586116(0x3b8)](_0x4a1a18[_0x586116(0x2d8)],_0x4a1a18[_0x586116(0x180)],_0x4ea33a);}_0xbbeec({'source':_0x4a1a18[_0x586116(0x2d8)],'sourceType':_0x4a1a18[_0x586116(0x180)]});}})[_0x592444(0x28c)](()=>_0xbbeec(null)):_0xbbeec(null);},{'once':!0x0}),_0x653219[_0x19a7d5(0x291)]();});}function ro(_0x49c6fb){const _0x14087e=_0x410bd1;switch(_0x49c6fb){case _0x4e7fff[_0x14087e(0x49f)]:return'bases-dashboard-ui.dashboard.pivotChart';case _0x4e7fff[_0x14087e(0x193)]:return _0x14087e(0x397);case _0x4e7fff[_0x14087e(0x4b4)]:return _0x14087e(0x2f9);case _0x4e7fff[_0x14087e(0x419)]:return _0x14087e(0x42c);case _0x4e7fff[_0x14087e(0x2b8)]:return _0x14087e(0x17f);}}function io(_0x227559){const _0x445b15=_0x410bd1;return(_0x227559==null?void 0x0:_0x227559[_0x445b15(0x38c)])===_0x37c4bc['Pivot']&&typeof _0x227559[_0x445b15(0x30a)]==_0x445b15(0x16a)&&_0x227559['config']!==null&&'pivot'in _0x227559[_0x445b15(0x30a)]&&_0x445b15(0x195)in _0x227559[_0x445b15(0x30a)];}const ao=[{'area':_0x3c113a[_0x410bd1(0x464)],'key':_0x410bd1(0x182),'label':_0x410bd1(0x479)},{'area':_0x3c113a[_0x410bd1(0x4ab)],'key':_0x410bd1(0x1ea),'label':_0x410bd1(0x2af)},{'area':_0x3c113a[_0x410bd1(0x2c3)],'key':_0x410bd1(0x28d),'label':_0x410bd1(0x1bd)},{'area':_0x3c113a['Value'],'key':_0x410bd1(0x438),'label':_0x410bd1(0x273)}],oo=[{'value':_0x9fb623['sum'],'localeKey':_0x410bd1(0x1bb)},{'value':_0x9fb623[_0x410bd1(0x37d)],'localeKey':'bases-dashboard-ui.pivot.count'},{'value':_0x9fb623[_0x410bd1(0x3a3)],'localeKey':_0x410bd1(0x1f8)},{'value':_0x9fb623[_0x410bd1(0x332)],'localeKey':_0x410bd1(0x1a7)},{'value':_0x9fb623[_0x410bd1(0x3b6)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':_0x9fb623[_0x410bd1(0x2c0)],'localeKey':_0x410bd1(0x275)},{'value':_0x9fb623[_0x410bd1(0x3ba)],'localeKey':'bases-dashboard-ui.pivot.product'},{'value':_0x9fb623[_0x410bd1(0x3ef)],'localeKey':'bases-dashboard-ui.pivot.stdDev'},{'value':_0x9fb623[_0x410bd1(0x381)],'localeKey':_0x410bd1(0x3ab)},{'value':_0x9fb623[_0x410bd1(0x2b6)],'localeKey':_0x410bd1(0x28f)},{'value':_0x9fb623[_0x410bd1(0x259)],'localeKey':_0x410bd1(0x2d7)}];function so(_0x4cf005){const _0x3a6f18=_0x410bd1;let {config:_0x4186dd,onChange:_0x4daaa8,table:_0x2bf266}=_0x4cf005,_0x5b711c=_0x20ec70(_0x4f7627),[_0x290ca4,_0x995324]=_0x5e5f09(_0x3a6f18(0x202)),[_0x2d03fd,_0x20bbcd]=_0x5e5f09(''),[_0x46c9b8,_0x1a5fc9]=_0x5e5f09(null),[_0x5c3cf6,_0x105123]=_0x5e5f09(null),[_0xeae691,_0x2e3072]=_0x5e5f09(null),[_0x2d196a,_0x4d51fd]=_0x5e5f09(null),_0x442b19=_0x127850(null),_0x4547df=_0x10a2b7(()=>_0x2bf266[_0x3a6f18(0x492)][_0x3a6f18(0x1c6)](_0x53abb6=>{const _0x5c2bec=_0x3a6f18;let _0x1fc736=_0x2bf266[_0x5c2bec(0x202)][_0x53abb6];return _0x1fc736&&_0x1fc736[_0x5c2bec(0x26b)]!==!0x0&&_0x1fc736['type']!==_0xac378e['RecordId']?[_0x1fc736]:[];})[_0x3a6f18(0x267)](_0x5bcb59=>_0x5bcb59[_0x3a6f18(0x1f6)][_0x3a6f18(0x181)]()[_0x3a6f18(0x37e)](_0x2d03fd[_0x3a6f18(0x48d)]()[_0x3a6f18(0x181)]())),[_0x2d03fd,_0x2bf266]),_0x5afbfa=_0x235a48=>{const _0x1f7d4c=_0x3a6f18;let _0x407d8d=_0x3cec59(_0x2bf266,_0x4186dd[_0x1f7d4c(0x382)]);try{_0x235a48(_0x407d8d),_0x4daaa8({'pivot':_0x407d8d[_0x1f7d4c(0x305)]()});}finally{_0x407d8d[_0x1f7d4c(0x481)]();}},_0x2063f7=(_0x296551,_0x4d4b6f)=>{_0x46c9b8&&(_0x5afbfa(_0x96aefa=>{const _0x59d7a8=_0x10b1;if(_0x46c9b8['kind']===_0x59d7a8(0x29f)){let _0x19a148=_0x96aefa[_0x59d7a8(0x215)](_0x46c9b8['id']),_0xa9e6f9=_0x19a148[_0x59d7a8(0x1f1)]===_0x296551&&_0x19a148[_0x59d7a8(0x2bd)]<_0x4d4b6f?_0x4d4b6f-0x1:_0x4d4b6f;_0x96aefa[_0x59d7a8(0x1a5)](_0x46c9b8['id'],_0x296551,_0xa9e6f9);}else go(_0x96aefa,_0x46c9b8['id'],_0x296551,_0x4d4b6f);}),_0x1a5fc9(null),_0x105123(null));};return _0x391b30(_0x3a6f18(0x402),{'className':_0x3a6f18(0x45d),'children':[_0x143050(_0x55df58,{'ariaLabel':_0x5b711c['t'](_0x3a6f18(0x48c)),'className':_0x3a6f18(0x229),'items':[{'label':_0x5b711c['t']('bases-dashboard-ui.pivot.fields'),'panelId':_0x3a6f18(0x174),'value':'fields'},{'label':_0x5b711c['t'](_0x3a6f18(0x2fe)),'panelId':_0x3a6f18(0x443),'value':_0x3a6f18(0x22a)}],'value':_0x290ca4,'onChange':_0x995324}),_0x143050(_0x3a6f18(0x402),{'ref':_0x442b19,'className':_0xec79e5(_0x3a6f18(0x2b4),_0x44d47d),'onDragOver':_0x251032=>{const _0x1e29f4=_0x3a6f18;let _0x22db51=_0x442b19['current'];if(!_0x22db51)return;let _0x79307d=_0x22db51[_0x1e29f4(0x2f2)]();_0x251032[_0x1e29f4(0x335)]<_0x79307d[_0x1e29f4(0x4a9)]+0x30?_0x22db51['scrollTop']-=0x10:_0x251032[_0x1e29f4(0x335)]>_0x79307d[_0x1e29f4(0x400)]-0x30&&(_0x22db51[_0x1e29f4(0x396)]+=0x10);},'children':_0x290ca4==='options'?_0x143050(ho,{'config':_0x4186dd,'commit':_0x5afbfa}):_0x391b30('div',{'className':_0x3a6f18(0x1f9),'children':[_0x391b30(_0x3a6f18(0x402),{'children':[_0x143050(_0x3a6f18(0x402),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x5b711c['t']('bases-dashboard-ui.pivot.sourceFields')}),_0x143050(_0x56be65,{'allowClear':!0x0,'slot':_0x143050(_0x1dab65,{}),'value':_0x2d03fd,'placeholder':_0x5b711c['t']('bases-dashboard-ui.pivot.searchFields'),'onChange':_0x20bbcd}),_0x143050(_0x3a6f18(0x402),{'className':_0x3a6f18(0x1cc),'children':_0x4547df[_0x3a6f18(0x173)](_0x18acd6=>_0x143050(co,{'config':_0x4186dd,'field':_0x18acd6,'onAdd':_0x21f730=>_0x5afbfa(_0x2cae0e=>go(_0x2cae0e,_0x18acd6['id'],_0x21f730,_0x2cae0e[_0x3a6f18(0x26d)](_0x21f730))),'onCheckedChange':_0x5a70bf=>_0x5afbfa(_0xda78db=>{const _0x228529=_0x3a6f18;let _0x33fb39=_0xda78db[_0x228529(0x3df)](_0x18acd6['id']);if(!_0x5a70bf)_0x33fb39[_0x228529(0x349)](_0x8d7785=>_0xda78db['removeField'](_0x8d7785[_0x228529(0x292)]()));else{if(_0x33fb39['length']===0x0){let _0x3cebbd=vo(_0x18acd6)?_0x3c113a[_0x228529(0x3c2)]:_0x3c113a[_0x228529(0x2c3)];_0xda78db['addFieldWithSourceId'](_0x18acd6['id'],_0x3cebbd);}}}),'onDragStart':()=>_0x1a5fc9({'kind':_0x3a6f18(0x2d8),'id':_0x18acd6['id']})},_0x18acd6['id']))})]}),_0x143050('div',{'className':_0x3a6f18(0x177),'children':ao[_0x3a6f18(0x173)](_0xc0743e=>_0x143050(uo,{'area':_0xc0743e[_0x3a6f18(0x1f1)],'dropTarget':_0x5c3cf6,'fields':_0x4186dd[_0x3a6f18(0x382)][_0xc0743e[_0x3a6f18(0x17b)]],'label':_0x5b711c['t'](_0xc0743e[_0x3a6f18(0x19d)]),'snapshot':_0x4186dd[_0x3a6f18(0x382)],'onDragEnd':()=>{_0x1a5fc9(null),_0x105123(null);},'onDragStart':_0x987d96=>_0x1a5fc9({'kind':_0x3a6f18(0x29f),'id':_0x987d96,'area':_0xc0743e[_0x3a6f18(0x1f1)]}),'onDragOver':_0xbdd6f9=>_0x105123({'area':_0xc0743e['area'],'index':_0xbdd6f9}),'onDrop':_0x237d89=>_0x2063f7(_0xc0743e[_0x3a6f18(0x1f1)],_0x237d89),'onFilter':_0x2e3072,'onRemove':_0x1b8d60=>_0x5afbfa(_0xe57faf=>_0xe57faf['removeField'](_0x1b8d60)),'onSettings':_0x4d51fd},_0xc0743e['area']))}),_0xeae691&&_0x143050(po,{'fieldId':_0xeae691,'snapshot':_0x4186dd[_0x3a6f18(0x382)],'table':_0x2bf266,'onCancel':()=>_0x2e3072(null),'onCommit':(_0x2ffc3a,_0x2c268e)=>{_0x5afbfa(_0x515f73=>{const _0x263f83=_0x10b1;let _0x30e1f3=_0x515f73[_0x263f83(0x48a)](_0xeae691),_0x50fef1=(_0x30e1f3==null?void 0x0:_0x30e1f3[_0x263f83(0x1f4)])??[];_0x515f73[_0x263f83(0x212)](_0xeae691,{'type':_0x315feb[_0x263f83(0x1a3)],'list':_0x2ffc3a,'isAll':_0x2ffc3a[_0x263f83(0x38b)]===_0x50fef1[_0x263f83(0x38b)]}),_0x515f73[_0x263f83(0x1ff)](_0xeae691,_0x2c268e===void 0x0?void 0x0:{'type':_0x2c268e});}),_0x2e3072(null);}},_0xeae691),_0x2d196a&&_0x143050(mo,{'field':_0x4186dd[_0x3a6f18(0x382)][_0x3a6f18(0x339)][_0x2d196a],'onCancel':()=>_0x4d51fd(null),'onCommit':(_0x4d46b4,_0x11730b,_0x344785)=>{_0x5afbfa(_0x3c2410=>{const _0x92607a=_0x10b1;_0x3c2410['renameField'](_0x2d196a,_0x4d46b4),_0x3c2410[_0x92607a(0x392)](_0x2d196a,_0x11730b),_0x3c2410[_0x92607a(0x2ac)](_0x2d196a,_0x344785||void 0x0);}),_0x4d51fd(null);}},_0x2d196a)]})})]});}function co(_0x3cb856){const _0x3754e9=_0x410bd1;let {config:_0x19dd6c,field:_0x48c42e,onAdd:_0x4b1e83,onCheckedChange:_0x3b9466,onDragStart:_0x1bc0d3}=_0x3cb856,_0x3fd00f=_0x20ec70(_0x4f7627),_0x5961b1=[...Object[_0x3754e9(0x22c)](_0x19dd6c[_0x3754e9(0x382)][_0x3754e9(0x3eb)]),...Object[_0x3754e9(0x22c)](_0x19dd6c['pivot'][_0x3754e9(0x339)])][_0x3754e9(0x29a)](_0x2bade0=>_0x2bade0[_0x3754e9(0x344)]===_0x48c42e['id']),_0x1d857f=ao[_0x3754e9(0x173)](_0x59ae27=>({'type':_0x3754e9(0x485),'children':_0x3fd00f['t'](yo(_0x59ae27['area'])),'onSelect':()=>_0x4b1e83(_0x59ae27[_0x3754e9(0x1f1)])}));return _0x391b30('div',{'draggable':!0x0,'className':'univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','onDragStart':_0x1bc0d3,'children':[_0x143050(_0x5ca67b,{'className':_0x3754e9(0x2df)}),_0x143050(_0x10db4e,{'checked':_0x5961b1,'onChange':_0xbe69cb=>_0x3b9466(!!_0xbe69cb)}),_0x143050(lo,{'field':_0x48c42e}),_0x143050(_0x3754e9(0x378),{'className':_0x3754e9(0x434),'children':_0x48c42e['name']}),_0x143050(_0x566dc7,{'align':_0x3754e9(0x33d),'items':_0x1d857f,'children':_0x143050(_0x3754e9(0x378),{'className':_0x3754e9(0x472),'children':_0x143050(_0x5d1e68,{})})})]});}function lo({field:_0x586ef3}){const _0x9baff1=_0x410bd1;return vo(_0x586ef3)?_0x143050(_0x5c186e,{'className':_0x9baff1(0x2df)}):_0x586ef3[_0x9baff1(0x38c)]===_0xac378e['Date']||_0x586ef3[_0x9baff1(0x38c)]===_0xac378e[_0x9baff1(0x2a2)]||_0x586ef3[_0x9baff1(0x38c)]===_0xac378e['UpdatedAt']?_0x143050(_0x5325fe,{'className':_0x9baff1(0x2df)}):_0x143050(_0x4af771,{'className':'univer-text-gray-400'});}function uo(_0x4dc78b){const _0x11ebb8=_0x410bd1;let {area:_0x54bb12,dropTarget:_0x1fcef5,fields:_0x2f6161,label:_0x28173d,snapshot:_0x1778ee}=_0x4dc78b,_0x3bfcb3=_0x20ec70(_0x4f7627);return _0x391b30(_0x11ebb8(0x407),{'className':_0xec79e5(_0x11ebb8(0x47f),_0x1f0d20),'onDragOver':_0x2389a7=>{const _0x2eaa1f=_0x11ebb8;_0x2389a7[_0x2eaa1f(0x35b)](),_0x4dc78b[_0x2eaa1f(0x36a)](_0x2f6161[_0x2eaa1f(0x38b)]);},'onDrop':_0xd9e31a=>{const _0x4917b7=_0x11ebb8;_0xd9e31a['preventDefault'](),_0x4dc78b[_0x4917b7(0x1f3)]((_0x1fcef5==null?void 0x0:_0x1fcef5[_0x4917b7(0x1f1)])===_0x54bb12?_0x1fcef5[_0x4917b7(0x2bd)]:_0x2f6161[_0x4917b7(0x38b)]);},'children':[_0x143050(_0x11ebb8(0x402),{'className':_0x11ebb8(0x367),'children':_0x28173d}),_0x391b30(_0x11ebb8(0x402),{'className':_0x11ebb8(0x422),'children':[_0x2f6161[_0x11ebb8(0x173)]((_0x133afd,_0x377423)=>{const _0x526e21=_0x11ebb8;let _0x5ccc07=_0x1778ee[_0x526e21(0x3eb)][_0x133afd]??_0x1778ee['measure'][_0x133afd];if(!_0x5ccc07)return null;let _0x1660a1=(_0x1fcef5==null?void 0x0:_0x1fcef5[_0x526e21(0x1f1)])===_0x54bb12&&_0x1fcef5[_0x526e21(0x2bd)]===_0x377423;return _0x391b30('div',{'onDragOver':_0x1864fe=>{const _0x86016c=_0x526e21;_0x1864fe[_0x86016c(0x35b)](),_0x1864fe['stopPropagation']();let _0x1f161c=_0x1864fe[_0x86016c(0x1ba)]['getBoundingClientRect']();_0x4dc78b[_0x86016c(0x36a)](_0x377423+ +(_0x1864fe['clientY']>_0x1f161c[_0x86016c(0x4a9)]+_0x1f161c[_0x86016c(0x484)]/0x2));},'onDrop':_0x1f113e=>{const _0x3c38d9=_0x526e21;_0x1f113e[_0x3c38d9(0x35b)](),_0x1f113e['stopPropagation'](),_0x4dc78b['onDrop']((_0x1fcef5==null?void 0x0:_0x1fcef5[_0x3c38d9(0x1f1)])===_0x54bb12?_0x1fcef5[_0x3c38d9(0x2bd)]:_0x377423);},'children':[_0x1660a1&&_0x143050('div',{'className':_0x526e21(0x3f4)}),_0x143050(fo,{'area':_0x54bb12,'field':_0x5ccc07,'onDragEnd':_0x4dc78b[_0x526e21(0x264)],'onDragStart':()=>_0x4dc78b[_0x526e21(0x2b7)](_0x133afd),'onFilter':()=>_0x4dc78b[_0x526e21(0x428)](_0x133afd),'onRemove':()=>_0x4dc78b[_0x526e21(0x31c)](_0x133afd),'onSettings':()=>_0x4dc78b[_0x526e21(0x456)](_0x133afd)})]},_0x133afd);}),(_0x1fcef5==null?void 0x0:_0x1fcef5[_0x11ebb8(0x1f1)])===_0x54bb12&&_0x1fcef5['index']===_0x2f6161[_0x11ebb8(0x38b)]&&_0x143050(_0x11ebb8(0x402),{'className':_0x11ebb8(0x3f4)}),_0x2f6161['length']===0x0&&_0x143050(_0x11ebb8(0x402),{'className':_0x11ebb8(0x359),'children':_0x3bfcb3['t'](_0x11ebb8(0x391))})]})]});}function fo(_0x5132af){const _0xe1444f=_0x410bd1;let _0x1a8cda=_0x20ec70(_0x4f7627),_0x233cf4=_0x5132af[_0xe1444f(0x1f1)]===_0x3c113a['Value'],_0x465154=[{'type':_0xe1444f(0x485),'children':_0x1a8cda['t']('bases-dashboard-ui.pivot.removeField'),'onSelect':_0x5132af[_0xe1444f(0x31c)]},{'type':'item','children':_0x1a8cda['t'](_0x233cf4?_0xe1444f(0x290):_0xe1444f(0x425)),'onSelect':_0x233cf4?_0x5132af[_0xe1444f(0x456)]:_0x5132af['onFilter']}];return _0x391b30(_0xe1444f(0x402),{'draggable':!0x0,'className':'univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','onDragEnd':_0x5132af[_0xe1444f(0x264)],'onDragStart':_0x5132af[_0xe1444f(0x2b7)],'children':[_0x143050(_0x5ca67b,{'className':'univer-text-gray-400'}),_0x143050(_0x3dcdeb,{'title':_0x5132af['field'][_0xe1444f(0x39e)],'children':_0x143050(_0xe1444f(0x378),{'className':_0xe1444f(0x434),'children':_0x5132af[_0xe1444f(0x29f)]['displayName']})}),_0x143050(_0x566dc7,{'align':_0xe1444f(0x33d),'items':_0x465154,'children':_0x143050('span',{'className':_0xe1444f(0x472),'children':_0x143050(_0x5d1e68,{})})})]});}function po(_0x2de830){const _0x73c7bd=_0x410bd1;var _0x2d2822,_0x30e7d2;let _0x2c2966=_0x20ec70(_0x4f7627),{format:_0x2c838d,items:_0x2ef346,itemTypes:_0x4c5da3}=_0x10a2b7(()=>{const _0x46e796=_0x10b1;let _0x13b6a2=_0x3cec59(_0x2de830[_0x46e796(0x26a)],_0x2de830[_0x46e796(0x43b)]);try{let _0x281f98=_0x13b6a2[_0x46e796(0x48a)](_0x2de830[_0x46e796(0x1b7)]);return{'format':_0x281f98==null?void 0x0:_0x281f98[_0x46e796(0x1d7)],'items':[...(_0x281f98==null?void 0x0:_0x281f98[_0x46e796(0x1f4)])??[]],'itemTypes':[...(_0x281f98==null?void 0x0:_0x281f98[_0x46e796(0x46e)])??[]]};}finally{_0x13b6a2[_0x46e796(0x481)]();}},[_0x2de830[_0x73c7bd(0x1b7)],_0x2de830[_0x73c7bd(0x43b)],_0x2de830['table']]),_0xd27b5a=(_0x2d2822=_0x2de830['snapshot'][_0x73c7bd(0x3eb)][_0x2de830[_0x73c7bd(0x1b7)]])==null?void 0x0:_0x2d2822[_0x73c7bd(0x2c8)],[_0x5e011a,_0x1244ad]=_0x5e5f09((_0xd27b5a==null?void 0x0:_0xd27b5a[_0x73c7bd(0x38c)])===_0x315feb[_0x73c7bd(0x1a3)]?_0xd27b5a[_0x73c7bd(0x449)]:_0x2ef346),[_0x2d8821,_0x58f582]=_0x5e5f09((_0x30e7d2=_0x2de830[_0x73c7bd(0x43b)]['dimension'][_0x2de830[_0x73c7bd(0x1b7)]])==null||(_0x30e7d2=_0x30e7d2[_0x73c7bd(0x1b1)])==null?void 0x0:_0x30e7d2[_0x73c7bd(0x38c)]),_0x50fe1f=_0x5e011a['length']===_0x2ef346[_0x73c7bd(0x38b)];return _0x391b30(_0x73c7bd(0x407),{'className':_0xec79e5(_0x73c7bd(0x24f),_0x1f0d20),'children':[_0x143050(_0x73c7bd(0x402),{'className':_0x73c7bd(0x170),'children':_0x2c2966['t'](_0x73c7bd(0x425))}),_0x391b30(_0x73c7bd(0x402),{'className':_0x73c7bd(0x460),'children':[_0x391b30(_0x11a8c2,{'className':'univer-flex-1','variant':_0x2d8821===_0x1e9e18['ascending']?_0x73c7bd(0x386):'default','onClick':()=>_0x58f582(_0x1e9e18[_0x73c7bd(0x19e)]),'children':[_0x143050(_0x52227c,{}),_0x2c2966['t'](_0x73c7bd(0x285))]}),_0x391b30(_0x11a8c2,{'className':'univer-flex-1','variant':_0x2d8821===_0x1e9e18[_0x73c7bd(0x395)]?_0x73c7bd(0x386):_0x73c7bd(0x47a),'onClick':()=>_0x58f582(_0x1e9e18[_0x73c7bd(0x395)]),'children':[_0x143050(_0x5c0c38,{}),_0x2c2966['t'](_0x73c7bd(0x2ee))]})]}),_0x391b30(_0x73c7bd(0x402),{'className':'univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','children':[_0x391b30(_0x73c7bd(0x19d),{'className':_0x73c7bd(0x3cc),'children':[_0x143050(_0x10db4e,{'checked':_0x50fe1f,'indeterminate':_0x5e011a['length']>0x0&&!_0x50fe1f,'onChange':()=>_0x1244ad(_0x50fe1f?[]:_0x2ef346)}),_0x2c2966['t']('bases-dashboard-ui.pivot.selectAll')]}),_0x2ef346[_0x73c7bd(0x173)]((_0x3bd9da,_0x260451)=>_0x391b30(_0x73c7bd(0x19d),{'className':_0x73c7bd(0x3cc),'children':[_0x143050(_0x10db4e,{'checked':_0x5e011a[_0x73c7bd(0x37e)](_0x3bd9da),'onChange':()=>_0x1244ad(_0x5a2c0d=>_0x5a2c0d[_0x73c7bd(0x37e)](_0x3bd9da)?_0x5a2c0d['filter'](_0x1be9d7=>_0x1be9d7!==_0x3bd9da):[..._0x5a2c0d,_0x3bd9da])}),_0x143050(_0x73c7bd(0x378),{'className':_0x73c7bd(0x2d9),'children':_o(_0x3bd9da,_0x4c5da3[_0x260451],_0x2c838d,_0x2c2966['t'](_0x73c7bd(0x444)))})]},_0x3bd9da))]}),_0x391b30(_0x73c7bd(0x402),{'className':_0x73c7bd(0x1a4),'children':[_0x143050(_0x11a8c2,{'variant':_0x73c7bd(0x172),'onClick':()=>_0x2de830[_0x73c7bd(0x2ed)](_0x2ef346,_0x2d8821),'children':_0x2c2966['t'](_0x73c7bd(0x27c))}),_0x391b30(_0x73c7bd(0x402),{'className':_0x73c7bd(0x279),'children':[_0x143050(_0x11a8c2,{'onClick':_0x2de830[_0x73c7bd(0x21e)],'children':_0x2c2966['t'](_0x73c7bd(0x204))}),_0x143050(_0x11a8c2,{'variant':_0x73c7bd(0x386),'disabled':_0x5e011a[_0x73c7bd(0x38b)]===0x0,'onClick':()=>_0x2de830['onCommit'](_0x5e011a,_0x2d8821),'children':_0x2c2966['t'](_0x73c7bd(0x158))})]})]})]});}function mo(_0x2e0d38){const _0xf7792e=_0x410bd1;var _0x2a7221,_0xf51110,_0x1813bc;let _0x2aa739=_0x20ec70(_0x4f7627),[_0x240bd2,_0x316d1e]=_0x5e5f09(((_0x2a7221=_0x2e0d38[_0xf7792e(0x29f)])==null?void 0x0:_0x2a7221[_0xf7792e(0x39e)])??''),[_0x597467,_0x2faf10]=_0x5e5f09(((_0xf51110=_0x2e0d38[_0xf7792e(0x29f)])==null?void 0x0:_0xf51110[_0xf7792e(0x489)])??_0x9fb623[_0xf7792e(0x3c1)]),[_0x17b62f,_0x3414c3]=_0x5e5f09(((_0x1813bc=_0x2e0d38[_0xf7792e(0x29f)])==null?void 0x0:_0x1813bc['format'])??'');return _0x2e0d38[_0xf7792e(0x29f)]?_0x391b30(_0xf7792e(0x407),{'className':_0xec79e5(_0xf7792e(0x2a1),_0x1f0d20),'children':[_0x143050(_0xf7792e(0x402),{'className':'univer-text-sm\x20univer-font-medium','children':_0x2aa739['t'](_0xf7792e(0x290))}),_0x391b30('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x2aa739['t'](_0xf7792e(0x1e0)),_0x143050(_0x56be65,{'value':_0x240bd2,'onChange':_0x316d1e})]}),_0x391b30('label',{'className':_0xf7792e(0x24c),'children':[_0x2aa739['t']('bases-dashboard-ui.pivot.summarizeBy'),_0x143050(_0x3f5ec5,{'value':String(_0x597467),'options':oo[_0xf7792e(0x173)](_0x4dd560=>({'value':String(_0x4dd560[_0xf7792e(0x46f)]),'label':_0x2aa739['t'](_0x4dd560[_0xf7792e(0x190)])})),'onChange':_0x181028=>{const _0x3025bb=_0xf7792e;let _0x449c88=oo[_0x3025bb(0x2da)](_0x71a3ee=>String(_0x71a3ee[_0x3025bb(0x46f)])===_0x181028);_0x449c88&&_0x2faf10(_0x449c88[_0x3025bb(0x46f)]);}})]}),_0x391b30(_0xf7792e(0x19d),{'className':_0xf7792e(0x24c),'children':[_0x2aa739['t'](_0xf7792e(0x45f)),_0x143050(_0x56be65,{'value':_0x17b62f,'onChange':_0x3414c3})]}),_0x391b30('div',{'className':_0xf7792e(0x3e9),'children':[_0x143050(_0x11a8c2,{'onClick':_0x2e0d38[_0xf7792e(0x21e)],'children':_0x2aa739['t']('bases-dashboard-ui.pivot.cancel')}),_0x143050(_0x11a8c2,{'variant':_0xf7792e(0x386),'disabled':!_0x240bd2[_0xf7792e(0x48d)](),'onClick':()=>_0x2e0d38['onCommit'](_0x240bd2['trim'](),_0x597467,_0x17b62f),'children':_0x2aa739['t'](_0xf7792e(0x158))})]})]}):null;}function ho(_0x4d7d3c){const _0x441641=_0x410bd1;let {config:_0x558ba1,commit:_0x277df0}=_0x4d7d3c,_0x5d5947=_0x20ec70(_0x4f7627),_0x4fc551=_0x558ba1[_0x441641(0x382)]['options'],_0xcabad6=_0x1d6bd8=>_0x277df0(_0x27e824=>_0x27e824[_0x441641(0x265)]({..._0x27e824[_0x441641(0x221)](),..._0x1d6bd8}));return _0x391b30('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x391b30('label',{'className':_0x441641(0x2b2),'children':[_0x5d5947['t'](_0x441641(0x4a4)),_0x143050(_0x3f5ec5,{'className':_0x441641(0x41d),'value':String(_0x558ba1[_0x441641(0x382)][_0x441641(0x281)]),'options':[{'value':String(_0x5a28d1['tabular']),'label':_0x5d5947['t']('bases-dashboard-ui.pivot.layoutTabular')},{'value':String(_0x5a28d1[_0x441641(0x2b1)]),'label':_0x5d5947['t']('bases-dashboard-ui.pivot.layoutCompact')},{'value':String(_0x5a28d1['outline']),'label':_0x5d5947['t'](_0x441641(0x2cb))}],'onChange':_0x428945=>{const _0x23b273=_0x441641;let _0x43c053=[_0x5a28d1['tabular'],_0x5a28d1[_0x23b273(0x2b1)],_0x5a28d1['outline']]['find'](_0x4da3c5=>String(_0x4da3c5)===_0x428945);_0x43c053!==void 0x0&&_0x277df0(_0x36b586=>_0x36b586['setLayout'](_0x43c053));}})]}),[{'key':_0x441641(0x41c),'label':_0x441641(0x309),'defaultValue':!0x1},{'key':_0x441641(0x19b),'label':_0x441641(0x457),'defaultValue':!0x1},{'key':'showRowSubtotal','label':_0x441641(0x4a7),'defaultValue':!0x0},{'key':_0x441641(0x3cf),'label':'bases-dashboard-ui.pivot.showRowGrandTotal','defaultValue':!0x0},{'key':_0x441641(0x3f2),'label':_0x441641(0x328),'defaultValue':!0x0},{'key':_0x441641(0x34a),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}][_0x441641(0x173)](_0x4ba2bd=>_0x391b30(_0x441641(0x19d),{'className':_0x441641(0x304),'children':[_0x143050(_0x10db4e,{'checked':!!(_0x4fc551[_0x4ba2bd[_0x441641(0x17b)]]??_0x4ba2bd['defaultValue']),'disabled':_0x4ba2bd[_0x441641(0x17b)]===_0x441641(0x41c)&&_0x558ba1['pivot'][_0x441641(0x281)]===_0x5a28d1[_0x441641(0x2b1)],'onChange':_0x4da02a=>_0xcabad6({[_0x4ba2bd[_0x441641(0x17b)]]:!!_0x4da02a})}),_0x5d5947['t'](_0x4ba2bd[_0x441641(0x19d)])]},_0x4ba2bd[_0x441641(0x17b)])),_0x558ba1[_0x441641(0x382)][_0x441641(0x281)]===_0x5a28d1[_0x441641(0x368)]&&_0x391b30(_0x441641(0x19d),{'className':_0x441641(0x2b2),'children':[_0x5d5947['t']('bases-dashboard-ui.pivot.rowSubtotalPosition'),_0x143050(_0x3f5ec5,{'className':'univer-w-36','value':String(_0x4fc551[_0x441641(0x198)]??_0x5ba910['top']),'options':[{'value':String(_0x5ba910[_0x441641(0x4a9)]),'label':_0x5d5947['t'](_0x441641(0x162))},{'value':String(_0x5ba910[_0x441641(0x400)]),'label':_0x5d5947['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x5ab1e7=>{const _0x1736f5=_0x441641;let _0x495757=[_0x5ba910[_0x1736f5(0x4a9)],_0x5ba910[_0x1736f5(0x400)]][_0x1736f5(0x2da)](_0x403d37=>String(_0x403d37)===_0x5ab1e7);_0x495757!==void 0x0&&_0xcabad6({'rowSubtotalPosition':_0x495757});}})]}),_0x391b30(_0x441641(0x19d),{'className':_0x441641(0x2b2),'children':[_0x5d5947['t'](_0x441641(0x31d)),_0x143050(_0x3f5ec5,{'className':'univer-w-36','value':String(_0x558ba1['pivot'][_0x441641(0x205)]===_0xeddb61[_0x441641(0x429)]?_0xeddb61[_0x441641(0x4ab)]:_0x558ba1['pivot'][_0x441641(0x205)]),'options':[{'value':String(_0xeddb61[_0x441641(0x4ab)]),'label':_0x5d5947['t'](_0x441641(0x2af))},{'value':String(_0xeddb61[_0x441641(0x2c3)]),'label':_0x5d5947['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x55762e=>{const _0x355870=_0x441641;let _0x1b8de0=[_0xeddb61[_0x355870(0x4ab)],_0xeddb61[_0x355870(0x2c3)]][_0x355870(0x2da)](_0x53a56d=>String(_0x53a56d)===_0x55762e);_0x1b8de0!==void 0x0&&_0x277df0(_0x40148f=>_0x40148f[_0x355870(0x431)](_0x1b8de0,_0x40148f[_0x355870(0x467)]()<0x0?0x0:_0x40148f[_0x355870(0x467)]()));}})]}),_0x391b30(_0x441641(0x19d),{'className':_0x441641(0x2b2),'children':[_0x5d5947['t'](_0x441641(0x194)),_0x143050(_0x137e64,{'className':_0x441641(0x2e6),'min':0x1,'max':0x14,'value':_0x4fc551[_0x441641(0x19f)]??0x1,'onChange':_0x472155=>{const _0x16cdf8=_0x441641;let _0x2751b1=Number(_0x472155);Number[_0x16cdf8(0x4a5)](_0x2751b1)&&_0x2751b1>=0x1&&_0xcabad6({'pageWrap':_0x2751b1});}})]}),_0x391b30(_0x441641(0x19d),{'className':_0x441641(0x2b2),'children':[_0x5d5947['t'](_0x441641(0x16c)),_0x143050(_0x3f5ec5,{'className':_0x441641(0x41d),'value':String(_0x4fc551[_0x441641(0x2a5)]??!0x1),'options':[{'value':_0x441641(0x423),'label':_0x5d5947['t'](_0x441641(0x3ea))},{'value':_0x441641(0x2c4),'label':_0x5d5947['t'](_0x441641(0x401))}],'onChange':_0x26add9=>_0xcabad6({'pageOverThenDown':_0x26add9==='true'})})]})]});}function go(_0x1925e6,_0x217232,_0x1e5767,_0xc49ebb){const _0x1c5a3b=_0x410bd1;let _0x1ff995=_0x1925e6['getTableFieldsByDataFieldId'](_0x217232)[_0x1c5a3b(0x2da)](_0x364990=>_0x1925e6[_0x1c5a3b(0x215)](_0x364990[_0x1c5a3b(0x292)]())[_0x1c5a3b(0x1f1)]!==_0x3c113a[_0x1c5a3b(0x3c2)]);_0x1e5767!==_0x3c113a[_0x1c5a3b(0x3c2)]&&_0x1ff995?_0x1925e6[_0x1c5a3b(0x1a5)](_0x1ff995[_0x1c5a3b(0x292)](),_0x1e5767,_0xc49ebb):_0x1925e6[_0x1c5a3b(0x3b0)](_0x217232,_0x1e5767,_0xc49ebb);}function _o(_0x4f787e,_0x1da809,_0x4c4c7a,_0x4d5c4f){const _0x52f8e1=_0x410bd1;return _0x1da809===_0x15e35b['blank']?_0x4d5c4f:_0x1da809===_0x15e35b[_0x52f8e1(0x25f)]&&_0x4c4c7a?_0x5140c1[_0x52f8e1(0x1d7)](_0x4c4c7a,Number(_0x4f787e)):_0x4f787e;}function vo(_0x170f52){const _0x15667f=_0x410bd1;return _0x170f52[_0x15667f(0x38c)]===_0xac378e['Number']||_0x170f52['type']===_0xac378e['Currency']||_0x170f52[_0x15667f(0x38c)]===_0xac378e[_0x15667f(0x354)]||_0x170f52[_0x15667f(0x38c)]===_0xac378e['Rating'];}function yo(_0x26aab8){const _0x5878b4=_0x410bd1;switch(_0x26aab8){case _0x3c113a[_0x5878b4(0x2c3)]:return _0x5878b4(0x1e6);case _0x3c113a[_0x5878b4(0x4ab)]:return _0x5878b4(0x1c5);case _0x3c113a[_0x5878b4(0x3c2)]:return'bases-dashboard-ui.pivot.addToValue';default:return _0x5878b4(0x302);}}function bo({config:_0x8e3c85,onChange:_0x544dcd,runtime:_0x1924d6,table:_0x5e58e2}){const _0x1c72b3=_0x410bd1;let _0x35b9f2=_0x20ec70(_0x4f7627),[_0x3c3956,_0x130980]=_0x5e5f09(_0x1c72b3(0x195));return _0x391b30(_0x1c72b3(0x208),{'className':_0x1c72b3(0x3f8),'children':[_0x143050(_0x55df58,{'ariaLabel':_0x35b9f2['t'](_0x1c72b3(0x459)),'className':_0x1c72b3(0x38e),'items':[{'label':_0x35b9f2['t']('bases-dashboard-ui.pivot.chartConfiguration'),'panelId':_0x1c72b3(0x362),'value':_0x1c72b3(0x195)},{'label':_0x35b9f2['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'panelId':_0x1c72b3(0x218),'value':_0x1c72b3(0x382)}],'value':_0x3c3956,'variant':_0x1c72b3(0x169),'onChange':_0x130980}),_0x143050('div',{'className':_0x1c72b3(0x25c),'children':_0x3c3956===_0x1c72b3(0x195)?_0x1924d6&&_0x143050(ma,{'config':_0x8e3c85,'runtime':_0x1924d6,'tableName':_0x5e58e2['name'],'onChange':_0x544dcd}):_0x143050(so,{'config':_0x8e3c85,'table':_0x5e58e2,'onChange':_0x544dcd})})]});}function xo({tableId:_0x1b75f4,unitId:_0x46b48b,viewId:_0x39cdf2}){const _0x1a0ea4=_0x410bd1;let _0x94debe=_0x20ec70(_0x668d8f),_0x2fe5af=_0x20ec70(_0x1ce417),_0x5d0d8f=_0x20ec70(_0xf4ca24),_0x372f0a=_0x20ec70(_0x4f7627),_0x2becfc=_0x20ec70(_0xab5a6b),[_0x619aa3,_0x1463e6]=_0x5e5f09(null),[_0xf4afe6,_0x37ad4e]=_0x5e5f09(null),_0xe9b78c=_0x127850(_0x1a0ea4(0x245)+_0x542898(0x8)),[_0x334c8d,_0x2784ad]=_0x5e5f09(!0x1),_0x50cd1e=_0x2fe5af[_0x1a0ea4(0x211)](_0x46b48b,_0xd3f775[_0x1a0ea4(0x420)]),_0x596eb9=_0x50cd1e==null?void 0x0:_0x50cd1e['getSnapshot']()[_0x1a0ea4(0x2ec)][_0x1b75f4],_0x4f6d39=_0x596eb9==null?void 0x0:_0x596eb9[_0x1a0ea4(0x348)][_0x39cdf2],_0x2668bb=So(_0x4f6d39),_0x689a6f=yr(_0x46b48b,_0x1b75f4,_0x39cdf2);if(_0x2fd531(()=>{const _0x54eff1=_0x1a0ea4;if(!_0x2668bb)return;let _0x19c2ad=_0xe9b78c[_0x54eff1(0x179)];return _0x2becfc['acquireChartRuntime'](_0x19c2ad,{'unitId':_0x46b48b,'tableId':_0x1b75f4,'viewId':_0x39cdf2,'filters':[]}),()=>{const _0x171bda=_0x54eff1;_0x2becfc[_0x171bda(0x1cf)](_0x46b48b,_0x19c2ad);};},[_0x2668bb,_0x2becfc,_0x1b75f4,_0x46b48b,_0x39cdf2]),_0x2fd531(()=>{const _0x29e0e9=_0x1a0ea4;if(!So(_0x4f6d39))return;let _0x5953e7=!0x0,_0x2e25da={'unitId':_0x46b48b,'tableId':_0x1b75f4,'viewId':_0x39cdf2,'filters':[_0x4f6d39[_0x29e0e9(0x267)]??null]};return _0x2becfc[_0x29e0e9(0x477)](_0x46b48b,_0xe9b78c[_0x29e0e9(0x179)],_0x2e25da)['then'](_0x5819c1=>{const _0x1d571c=_0x29e0e9;_0x5953e7&&_0x5819c1&&(_0x1463e6(_0x5819c1),_0x37ad4e(_0x2becfc[_0x1d571c(0x242)](_0x46b48b,_0xe9b78c[_0x1d571c(0x179)])??null),_0x2784ad(!0x1));})[_0x29e0e9(0x28c)](_0x4aa394=>{const _0x10c169=_0x29e0e9;_0x5d0d8f[_0x10c169(0x280)]('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x4aa394),_0x5953e7&&(_0x1463e6(null),_0x2784ad(!0x0));}),()=>{_0x5953e7=!0x1;};},[_0x5d0d8f,_0x2becfc,_0x1b75f4,_0x46b48b,_0x4f6d39,_0x39cdf2]),!_0x596eb9||!So(_0x4f6d39))return null;let _0x419874=_0x2becfc[_0x1a0ea4(0x242)](_0x46b48b,_0xe9b78c[_0x1a0ea4(0x179)])===_0xf4afe6?_0xf4afe6:null,_0x305c28=_0x619aa3?_0x391b30(_0x1a0ea4(0x402),{'className':'univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','style':{'gridTemplateRows':_0x4f6d39[_0x1a0ea4(0x30a)][_0x1a0ea4(0x201)]===_0x1a0ea4(0x23e)?_0x1a0ea4(0x17e):_0x1a0ea4(0x29e)},'children':[_0x4f6d39[_0x1a0ea4(0x30a)][_0x1a0ea4(0x201)]!==_0x1a0ea4(0x26a)&&_0x419874&&_0x143050(_0x1a0ea4(0x402),{'className':'univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':_0x143050(Rr,{'isRowDirection':_0x3fb36c(_0x4f6d39[_0x1a0ea4(0x30a)][_0x1a0ea4(0x195)]['orient']),'runtime':_0x419874})}),_0x4f6d39[_0x1a0ea4(0x30a)][_0x1a0ea4(0x201)]!==_0x1a0ea4(0x195)&&_0x143050(_0x1a0ea4(0x402),{'className':_0x1a0ea4(0x196),'children':_0x143050(ji,{'pivot':_0x4f6d39['config'][_0x1a0ea4(0x382)],'view':_0x619aa3[_0x1a0ea4(0x222)]})})]}):_0x143050('div',{'className':_0x1a0ea4(0x3dd),'children':_0x334c8d?_0x372f0a['t'](_0x1a0ea4(0x220)):_0x372f0a['t'](_0x1a0ea4(0x2f6))});return _0x391b30(_0x1a0ea4(0x402),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','children':[_0x143050('div',{'className':_0x1a0ea4(0x3a4),'children':_0x305c28}),_0x689a6f&&_0x143050(bo,{'config':_0x4f6d39[_0x1a0ea4(0x30a)],'runtime':_0x419874,'table':_0x596eb9,'onChange':_0xe6c4d8=>{const _0x3debca=_0x1a0ea4;_0x94debe['executeCommand'](_0x1f6e61['id'],{'unitId':_0x46b48b,'tableId':_0x1b75f4,'viewId':_0x39cdf2,'patch':_0xe6c4d8})[_0x3debca(0x28c)](_0x151273=>_0x5d0d8f['error'](_0x3debca(0x1d5),_0x151273));}})]});}function So(_0x3ff2ba){const _0x173f18=_0x410bd1;return(_0x3ff2ba==null?void 0x0:_0x3ff2ba[_0x173f18(0x38c)])===_0x37c4bc[_0x173f18(0x3bf)]&&typeof _0x3ff2ba[_0x173f18(0x30a)]==_0x173f18(0x16a)&&_0x3ff2ba[_0x173f18(0x30a)]!==null&&_0x173f18(0x382)in _0x3ff2ba[_0x173f18(0x30a)]&&_0x173f18(0x195)in _0x3ff2ba[_0x173f18(0x30a)]&&_0x173f18(0x201)in _0x3ff2ba[_0x173f18(0x30a)];}let Co=class extends _0x34f5d7{constructor(_0x3d16dc,_0x5c10a6,_0xda0dc3,_0x41e556,_0x2859c1,_0x254a21){const _0x15b335=_0x410bd1;super(),this[_0x15b335(0x388)](_0x5c10a6['register']({'type':_0x37c4bc[_0x15b335(0x3bf)],'renderMode':_0x15b335(0x40e),'icon':_0x475089,'component':xo,'menu':{get 'label'(){const _0x599cb8=_0x15b335;return _0x254a21['t'](_0x599cb8(0x459));},get 'description'(){return _0x254a21['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){const _0x269d09=_0x15b335;return _0x254a21['t'](_0x269d09(0x18c));}}})),this[_0x15b335(0x388)](_0x3d16dc[_0x15b335(0x325)](wo(_0xda0dc3,_0x41e556,_0x2859c1,_0x254a21)));}};Co=Ar([Y(0x0,_0x76978b),Y(0x1,_0xb97bcb),Y(0x2,_0x1fee36(_0x3a9dda)),Y(0x3,_0x668d8f),Y(0x4,_0xd14797),Y(0x5,_0x1fee36(_0x4f7627))],Co);function wo(_0x428a52,_0x17f918,_0x293819,_0x4396a2){const _0x37f9fd=_0x410bd1;return{'change$':_0x360ca5(_0x428a52[_0x37f9fd(0x452)],_0x293819[_0x37f9fd(0x4b3)]),'component':Xa,get 'labels'(){const _0x5de737=_0x37f9fd;return{'add':_0x4396a2['t'](_0x5de737(0x1b0)),'configure':_0x4c547f=>_0x4396a2['t'](_0x5de737(0x3e2),_0x4c547f),'delete':_0x4396a2['t'](_0x5de737(0x480)),'new':_0x4396a2['t'](_0x5de737(0x461)),'rename':_0x4396a2['t'](_0x5de737(0x15c)),'search':_0x4396a2['t'](_0x5de737(0x41e)),'section':_0x4396a2['t'](_0x5de737(0x1e3))};},'getItems':_0xff53dd=>{const _0x1d3f8a=_0x37f9fd;let _0x6ce88d=_0x428a52[_0x1d3f8a(0x1bf)](_0xff53dd);return _0x6ce88d[_0x1d3f8a(0x2f5)][_0x1d3f8a(0x1c6)](_0x5aec39=>{const _0x27db3c=_0x1d3f8a;let _0x341425=_0x6ce88d[_0x27db3c(0x261)][_0x5aec39];return _0x341425?[{'id':_0x341425['id'],'name':_0x341425[_0x27db3c(0x1f6)],'readonly':!_0x467e07(_0x293819,_0xff53dd,_0x341425['id'])}]:[];});},'create':async _0x4ece6f=>{const _0x46746b=_0x37f9fd;let _0x27c19f=_0x428a52['getResource'](_0x4ece6f),_0x593625='dashboard-'+_0x542898(0x8),_0x4864ad=To(_0x27c19f[_0x46746b(0x2f5)][_0x46746b(0x1c6)](_0x410149=>{const _0x32be0e=_0x46746b;let _0x3dd89a=_0x27c19f[_0x32be0e(0x261)][_0x410149];return _0x3dd89a?[_0x3dd89a['name']]:[];}),_0x547a63=>_0x4396a2['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x547a63)));return await _0x17f918[_0x46746b(0x18b)](_0x100fa4['id'],{'unitId':_0x4ece6f,'dashboard':{'id':_0x593625,'name':_0x4864ad,'widgetOrder':[],'widgets':{}}})?_0x593625:null;},'rename':async(_0x442f3d,_0x9a1af5,_0x37a9a6)=>{const _0x167cf9=_0x37f9fd;let _0x56a6c6=_0x428a52[_0x167cf9(0x36f)](_0x442f3d,_0x9a1af5);return!!(_0x56a6c6&&await _0x17f918[_0x167cf9(0x18b)](_0x1e24a6['id'],{'unitId':_0x442f3d,'dashboard':{..._0x56a6c6,'name':_0x37a9a6}}));},'remove':(_0x34b147,_0x100149)=>_0x17f918[_0x37f9fd(0x18b)](_0x439898['id'],{'unitId':_0x34b147,'dashboardId':_0x100149})};}function To(_0x136813,_0x3970f6){const _0x3b61f9=_0x410bd1;let _0x4d4757=new Set(_0x136813),_0x47f4f1=_0x4d4757[_0x3b61f9(0x248)]+0x1,_0x407517=_0x3970f6(_0x47f4f1);for(;_0x4d4757[_0x3b61f9(0x183)](_0x407517);)_0x47f4f1+=0x1,_0x407517=_0x3970f6(_0x47f4f1);return _0x407517;}let Eo=class extends _0x22507e{constructor(_0x3add79=_r,_0x3415b3,_0x1c95db){const _0x95f575=_0x410bd1;super(),this[_0x95f575(0x250)]=_0x3add79,this[_0x95f575(0x44f)]=_0x3415b3,this[_0x95f575(0x3d2)]=_0x1c95db;let {..._0x94d9a2}=_0x17941a({},_r,this[_0x95f575(0x250)]);this[_0x95f575(0x3d2)]['setConfig'](gr,_0x94d9a2);}[_0x410bd1(0x3b4)](){const _0x1a47d5=_0x410bd1;this[_0x1a47d5(0x44f)][_0x1a47d5(0x307)]([jr]),this['_injector'][_0x1a47d5(0x307)]([qr]),this['_injector']['add']([Co]);}[_0x410bd1(0x233)](){const _0x10c9d8=_0x410bd1;_0x4ffdef(this[_0x10c9d8(0x44f)],[[jr],[qr],[Co]]);}};Ir(Eo,'type',_0xd3f775[_0x410bd1(0x420)]),Ir(Eo,_0x410bd1(0x287),_0x410bd1(0x322)),Ir(Eo,_0x410bd1(0x214),mr),Ir(Eo,'version',hr),Eo=Ar([_0x2b679d(_0x1b68d2,_0x7dcda4,_0xe89ad3,_0x570ced,_0xdd06cf,_0x1776ea),Y(0x1,_0x1fee36(_0x4c3614)),Y(0x2,_0x200457)],Eo);export{ia as UniverBaseDashboardMobileUIPlugin,Eo as UniverBaseDashboardUIPlugin};
|