@univerjs-pro/bases-dashboard-ui 1.3.1 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/types/components/BasePivotChartEditor.d.ts +9 -9
- package/lib/types/components/mobile/BasePivotChartEditor.d.ts +9 -9
- package/lib/types/utils/dashboard-formula-shape.d.ts +4 -4
- package/lib/types/utils/dashboard-text.d.ts +2 -2
- 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 +23 -23
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x219009=_0x4abf;(function(_0x4c08a6,_0x19925f){const _0x34afed=_0x4abf,_0x5d4201=_0x4c08a6();while(!![]){try{const _0x3d7857=parseInt(_0x34afed(0x28f))/0x1*(-parseInt(_0x34afed(0x2f0))/0x2)+-parseInt(_0x34afed(0x437))/0x3+-parseInt(_0x34afed(0x175))/0x4+parseInt(_0x34afed(0x496))/0x5*(parseInt(_0x34afed(0x445))/0x6)+-parseInt(_0x34afed(0x3ba))/0x7+-parseInt(_0x34afed(0x2c4))/0x8*(parseInt(_0x34afed(0x1a3))/0x9)+-parseInt(_0x34afed(0x2c8))/0xa*(-parseInt(_0x34afed(0x36e))/0xb);if(_0x3d7857===_0x19925f)break;else _0x5d4201['push'](_0x5d4201['shift']());}catch(_0x304b8c){_0x5d4201['push'](_0x5d4201['shift']());}}}(_0x494c,0xf0040));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x3b43c9,BASES_DASHBOARD_GRID_COLUMNS as _0x2a8e2f,BaseChartRuntimeService as _0x559b79,BaseDashboardResourceService as _0x24d6a6,BaseDashboardWidgetType as _0xf5049a,CreateBaseDashboardCommand as _0x55205b,DeleteBaseDashboardCommand as _0x4136ca,RemoveBaseDashboardWidgetCommand as _0x451a8b,UniverBaseDashboardPlugin as _0x2eebed,UpdateBaseDashboardCommand as _0x570003,UpdateBasePivotViewCommand as _0x227312,UpsertBaseDashboardWidgetCommand as _0x53172b,canEditBaseDashboard as _0x108b4a,canEditBasePivotView as _0x58ffc2,createBasePivotTable as _0x26536e,resolveBasePivotChartRowDirection as _0x4562e5}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x1939e2,BaseMobileDrawer as _0x5cf81f,BaseMobileFilterOperand as _0x2b139d,BaseMobileFilterPanel as _0x5ea8f9,BaseUnitCollaborationStatus as _0x782d5,FormulaEditorPanel as _0x47c581,IBaseDashboardUIExtensionRegistryService as _0x475f81,IBaseViewUIRegistryService as _0x508eb1,MobileFormulaEditorPanel as _0x3edb60,UniverBasesMobileUIPlugin as _0x4adcce,UniverBasesUIPlugin as _0x255ca3,formulaToEditorFormula as _0x47b245,normalizeEditorFormulaForConfig as _0x47ab15,toFormulaMenuTables as _0x2afc8d,toMenuFields as _0xfb2dac}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x777c64,ChartAxisSection as _0x4f9809,ChartColorField as _0x3b005c,ChartCommonDataMappingSection as _0x215c50,ChartEditBlockTitle as _0x1dc825,ChartEditPanel as _0x24a4c3,ChartEditPanelSection as _0x4fbb3c,ChartEditPanelTab as _0x66773d,ChartEditPanelTabs as _0x531ef4,ChartEditorCapability as _0x4f0d5d,ChartEditorProvider as _0x44ba09,ChartFunnelStyleSection as _0x1a89aa,ChartGradientFillField as _0x5446d4,ChartGridlinesAndTicksSection as _0x507867,ChartHeatmapStyleSection as _0x129683,ChartHostAdapter as _0x1b56a9,ChartIndicatorLineSection as _0x5207e9,ChartLegendSection as _0x132084,ChartLineAndAreaSection as _0x2f03f7,ChartNumberFormatAtom as _0x43f297,ChartParetoSeriesSection as _0x6a1abb,ChartPieStyleSection as _0x782d62,ChartRadarStyleSection as _0x5b4358,ChartRelationStyleSection as _0x30b843,ChartSectionAccordion as _0x176760,ChartSectionAccordionContent as _0x58bf4b,ChartSectionAccordionItem as _0x17d75d,ChartSectionAccordionTrigger as _0x3e8f11,ChartSeriesSection as _0x95cd68,ChartStackField as _0x23a4c3,ChartStyleSection as _0x403f96,ChartThemeField as _0x380243,ChartThreeDSection as _0x12c722,ChartTitlesSection as _0x533222,ChartTrendlineSection as _0x2c7234,ChartTypeField as _0x623fe,ChartTypeSpecificDataSection as _0x1a5bff,ChartTypeSpecificSetupSection as _0x3d9f3c,ChartTypeSpecificStyleSection as _0x4f919a,ChartUIService as _0xcf3349,ChartViewStateRegistry as _0x3b1b72,ChartWaterfallSetupFields as _0x3e6c73,ChartWaterfallStyleSection as _0x189b03,ChartWordCloudStyleSection as _0x1d5b30,DEFAULT_CHART_AXIS_VALUES as _0x4b7c48,DEFAULT_CHART_FUNNEL_VALUES as _0x2425d6,DEFAULT_CHART_HEATMAP_VALUES as _0x34d401,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x89d8f0,DEFAULT_CHART_LEGEND_VALUES as _0x4e4d4b,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x305c9e,DEFAULT_CHART_PARETO_VALUES as _0x13cc6b,DEFAULT_CHART_PIE_VALUES as _0x28f162,DEFAULT_CHART_RADAR_VALUES as _0x4ad53f,DEFAULT_CHART_RELATION_VALUES as _0x102f37,DEFAULT_CHART_SERIES_VALUES as _0x1f143d,DEFAULT_CHART_STYLE_VALUES as _0x5209eb,DEFAULT_CHART_TITLE_VALUES as _0x4ced2d,DEFAULT_CHART_TRENDLINE_VALUES as _0x38d718,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x4e066c,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x3c4e32,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x546560,MobileChartEditorControls as _0x573640,MobileChartEditorProvider as _0x422ba9,UniverChartMobileUIPlugin as _0x4fac13,UniverChartUIPlugin as _0x559077,buildChartTypeSelectOptions as _0x1bca48,chartTypeSupportsCapability as _0x1d3b69,chartTypeSupportsLineAndAreaStyle as _0x222850,useChartEditorChartType as _0x4062bc,useChartEditorHasRightAxis as _0x312db6}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x138d6e}from'@univerjs-pro/license';import{ShapeFormulaService as _0x43ded2,UniverShapeEditorPlugin as _0xd85df1,createFormulaShapeData as _0x4027ac}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0x3f2f3b,BaseFilterConjunction as _0x47b446,BaseFilterOperator as _0x58020d,BaseViewType as _0x4ec201,DependentOn as _0x18504d,Disposable as _0x2b17e2,ICommandService as _0x4a773c,IConfigService as _0x5e932d,IImageIoService as _0xc6de23,ILogService as _0x44e345,IPermissionService as _0xd071cb,IUndoRedoService as _0x3b1640,IUniverInstanceService as _0x144775,ImageSourceType as _0x55ad71,Inject as _0x346fbc,Injector as _0x9ca0eb,LocaleService as _0x51de0a,ObjectPermissionService as _0x19d4a8,Plugin as _0x12151f,RedoCommand as _0x372344,ThemeService as _0x52f5e2,UndoCommand as _0x3d9772,UniverInstanceType as _0x160ed0,createParagraphId as _0x18fe69,dateKit as _0x8f4376,debounce as _0x356e73,generateRandomId as _0x3dac7b,merge as _0x3d5506,numfmt as _0x415bf1,touchDependencies as _0x4a083e}from'@univerjs/core';import{UniverDocsUIPlugin as _0x351b40}from'@univerjs/docs-ui';import{ArrowDownIcon as _0x23dcce,ArrowUpIcon as _0x5cdc9f,AscendingIcon as _0x52230b,CalendarIcon as _0x353aa7,ChartIcon as _0x4c651f,CloseIcon as _0x68937f,DeleteIcon as _0x140734,DescendingIcon as _0x404137,ExpandIcon as _0x19f77a,FilterIcon as _0x50dfce,GripVerticalIcon as _0x56435c,IncreaseIcon as _0x5a5e3d,MoreDownIcon as _0x27fd1a,MoreHorizontalIcon as _0x2ae422,NumberIcon as _0x519617,PenIcon as _0x579511,PivotTableIcon as _0x46a4b4,ProtectIcon as _0x56d64d,RedoIcon as _0x21d4d7,SearchIcon as _0x3f6321,TextIcon as _0x21875f,UndoIcon as _0x44b3b1}from'@univerjs/icons';import{combineLatest as _0x14fb38,map as _0x3dd263,merge as _0x3b3651,skip as _0x51a852}from'rxjs';import{SetBasePermissionCommand as _0x54bb96,getBaseDashboardPermissionObjectId as _0x5d041f}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x2b6ea6}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x3370d4,ShapeLineTypeEnum as _0x3941ff,ShapeTypeEnum as _0x5039fb}from'@univerjs-pro/engine-shape';import{Button as _0x2e1096,Checkbox as _0x5e364b,DatePicker as _0x4233f7,Dialog as _0x214192,DropdownMenu as _0x2049bb,Input as _0x4f1ee0,InputNumber as _0x770794,MobileDialog as _0x5e0b65,MobileDropdownMenu as _0x95003,MobileSelect as _0x2b3300,MultipleSelect as _0x27525a,Segmented as _0x35fc77,Select as _0x8bae00,Textarea as _0x439fc9,Tooltip as _0xe14895,borderClassName as _0x25ef46,clsx as _0x43bd71,scrollbarClassName as _0x178403}from'@univerjs/design';import{UnitObject as _0x2e13ef}from'@univerjs/protocol';import{ILayoutService as _0x2fc378,ObjectPermissionButton as _0x520a27,openObjectPermissionDialog as _0x4b14fb,useDependency as _0xb3eab7,useObservable as _0x97415f}from'@univerjs/ui';import{useCallback as _0x547d95,useEffect as _0x2153d6,useMemo as _0x2a7f67,useRef as _0x52068e,useState as _0x277721}from'react';import{Fragment as _0x1ef66a,jsx as _0x1af9b,jsxs as _0x52e710}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x3a53b0,ChartRenderMode as _0x49e938,ChartThemeService as _0x1ef0b9,ChartTypeBits as _0x3e0f4e,ChartWaterfallStyleTarget as _0x11f14c,IChartRenderModelManagerService as _0x7c1a1c,RTLChartStyle as _0x4f7330,chartBitsUtils as _0x29c223,chartTypeCanUseTrendLine as _0x479078,resolveChartRuntimeStyle as _0x596b44,resolveDefaultChartHostFrameStyle as _0xe9cc3f,toChartModelUpdate as _0xaa6a7c}from'@univerjs-pro/engine-chart';import{createPortal as _0x511ab4}from'react-dom';import{PivotCellStyleTypeEnum as _0x3fce02,PivotDataFieldDataTypeEnum as _0x4bea43,PivotDataFieldSortOperatorEnum as _0x42703e,PivotFilterTypeEnum as _0x43d698,PivotLayoutTypeEnum as _0x27edfb,PivotSubtotalPositionEnum as _0x1ce76a,PivotSubtotalTypeEnum as _0x37b485,PivotTableFiledAreaEnum as _0x2e2ea1,PivotTableValuePositionEnum as _0x3188ad,isErrorValue as _0x48662d,isPrefixValue as _0x1d612e}from'@univerjs-pro/engine-pivot';var mr=_0x219009(0x214),hr=_0x219009(0x49c);const gr=_0x219009(0x24b),_r={};function vr(_0x46f9bc,_0x30cb1c){const _0x4a2e73=_0x219009;let _0x2ab302=_0xb3eab7(_0xd071cb),_0x44639f=_0x108b4a(_0x2ab302,_0x46f9bc,_0x30cb1c);return _0x97415f(()=>_0x2ab302[_0x4a2e73(0x3e8)][_0x4a2e73(0x20d)](_0x3dd263(()=>_0x108b4a(_0x2ab302,_0x46f9bc,_0x30cb1c))),_0x44639f,!0x1,[_0x30cb1c,_0x2ab302,_0x46f9bc]);}function yr(_0x24a65b,_0x2b1508,_0x1d33fb){const _0x4a0a3b=_0x219009;let _0x26f95a=_0xb3eab7(_0xd071cb),_0x50b49a=_0x58ffc2(_0x26f95a,_0x24a65b,_0x2b1508,_0x1d33fb);return _0x97415f(()=>_0x26f95a[_0x4a0a3b(0x3e8)]['pipe'](_0x3dd263(()=>_0x58ffc2(_0x26f95a,_0x24a65b,_0x2b1508,_0x1d33fb))),_0x50b49a,!0x1,[_0x26f95a,_0x2b1508,_0x24a65b,_0x1d33fb]);}function br(_0x5d5f34,_0x2c2402=_0x219009(0x3de)){const _0x1a8110=_0x219009;return{'backgroundImage':'url('+JSON[_0x1a8110(0x18a)](_0x5d5f34)+')','backgroundPosition':_0x2c2402===_0x1a8110(0x3b5)?_0x1a8110(0x283):'center','backgroundRepeat':_0x2c2402===_0x1a8110(0x3b5)?'repeat':_0x1a8110(0x19c),'backgroundSize':_0x2c2402===_0x1a8110(0x3de)?_0x1a8110(0x3de):_0x1a8110(0x2a9)};}const xr={'alignment':_0x219009(0x357),'currency':_0x219009(0x311),'decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x219009(0x2a9),'numberFormat':_0x219009(0x334)},Sr={'CNY':'¥','EUR':'€','USD':'$'};function Cr(_0x3e07ca){const _0x4dd5d3=_0x219009;var _0x5632c5;let _0x2bcbcc=Dr(((_0x5632c5=_0x3e07ca[_0x4dd5d3(0x21c)][_0x4dd5d3(0x21e)])==null||(_0x5632c5=_0x5632c5[_0x4dd5d3(0x22f)])==null?void 0x0:_0x5632c5['pattern'])??'');return{...xr,..._0x2bcbcc,..._0x3e07ca['appearance']};}function wr(_0x4ec7b7,_0xa919be){const _0x11a8c4=_0x219009;let _0x5a014f={..._0x4ec7b7[_0x11a8c4(0x384)],..._0xa919be},_0x5e0756=Cr({..._0x4ec7b7,'appearance':_0x5a014f}),_0x1a1b08=_0x4ec7b7[_0x11a8c4(0x21c)][_0x11a8c4(0x21e)]??{'formula':''};return{..._0x4ec7b7,'appearance':_0x5a014f,'shapeData':{..._0x4ec7b7['shapeData'],'formulaBinding':{..._0x1a1b08,'numberFormat':{'pattern':Tr(_0x5e0756[_0x11a8c4(0x22f)],_0x5e0756['decimalPlaces'],_0x5e0756['currency'])}}}};}function Tr(_0x520c03,_0x2eb997,_0x4c29d7){const _0x3adb36=_0x219009;let _0x30fb05=Math[_0x3adb36(0x2eb)](0x0,Math[_0x3adb36(0x466)](0x8,Math[_0x3adb36(0x28e)](_0x2eb997))),_0x4d87d0=_0x30fb05?'.'+'0'[_0x3adb36(0x3b5)](_0x30fb05):'';switch(_0x520c03){case _0x3adb36(0x24f):return'0'+_0x4d87d0;case _0x3adb36(0x465):return'0'+_0x4d87d0+'%';case _0x3adb36(0x414):return(Sr[_0x4c29d7]??_0x4c29d7)+_0x3adb36(0x2e0)+_0x4d87d0;case _0x3adb36(0x264):return _0x3adb36(0x2e0)+_0x4d87d0;case _0x3adb36(0x449):case _0x3adb36(0x334):return _0x3adb36(0x452);}}function Er(_0x1ed2a1,_0x6f3fd2,_0x4b5db0){const _0x14e921=_0x219009;return _0x4b5db0['numberFormat']!=='compact'||typeof _0x6f3fd2!='number'||!Number['isFinite'](_0x6f3fd2)?_0x1ed2a1:new Intl['NumberFormat'](void 0x0,{'notation':_0x14e921(0x449),'minimumFractionDigits':_0x4b5db0[_0x14e921(0x497)]??0x0,'maximumFractionDigits':_0x4b5db0[_0x14e921(0x497)]??0x0})[_0x14e921(0x467)](_0x6f3fd2);}function Dr(_0x4cdbb9){const _0x318f2c=_0x219009;var _0x4f8fbf,_0x33bbe3;if(!_0x4cdbb9||_0x4cdbb9===_0x318f2c(0x452))return{};let _0x1d4af2=_0x4cdbb9[_0x318f2c(0x226)](/\.([0#]+)/),_0x57f7cb=(_0x1d4af2==null||(_0x4f8fbf=_0x1d4af2[0x1])==null?void 0x0:_0x4f8fbf[_0x318f2c(0x348)])??0x0;if(_0x4cdbb9[_0x318f2c(0x481)]('%'))return{'decimalPlaces':_0x57f7cb,'numberFormat':_0x318f2c(0x465)};let _0x2281ea=(_0x33bbe3=Object[_0x318f2c(0x40e)](Sr)[_0x318f2c(0x3ae)](([,_0x4363e6])=>_0x4cdbb9[_0x318f2c(0x481)](_0x4363e6)))==null?void 0x0:_0x33bbe3[0x0];return _0x2281ea?{'currency':_0x2281ea,'decimalPlaces':_0x57f7cb,'numberFormat':_0x318f2c(0x414)}:{'decimalPlaces':_0x57f7cb,'numberFormat':_0x4cdbb9[_0x318f2c(0x481)](',')?_0x318f2c(0x264):_0x318f2c(0x24f)};}const Or={'center':_0x219009(0x403),'left':_0x219009(0x3e0),'right':'flex-end'};function kr({dashboardId:_0x1e40ae,unitId:_0x5c8633,widget:_0xba9a11}){const _0x17846d=_0x219009;var _0x3553be,_0x3fba78,_0x40f74f,_0x1f072f,_0xa64b16,_0x3a30a6,_0x233fef,_0x20e9f5,_0x21f7ec;let _0x1c792f=_0xb3eab7(_0x43ded2),_0x163112=_0xb3eab7(_0xc6de23),_0x5abbcd=_0xb3eab7(_0x51de0a),_0x1faa16=_0x2a7f67(()=>({'hostType':_0x160ed0[_0x17846d(0x1b7)],'unitId':_0x5c8633,'subUnitId':_0x1e40ae,'shapeId':_0xba9a11['id']}),[_0x1e40ae,_0x5c8633,_0xba9a11['id']]),[_0x3f8a75,_0x498f3b]=_0x277721(()=>_0x1c792f[_0x17846d(0x1c7)](_0x1faa16)),[_0x1cf424,_0x54e3d5]=_0x277721(()=>{const _0x32246f=_0x17846d;var _0xe8b859;return(_0xe8b859=_0x1c792f[_0x32246f(0x1ea)](_0x1faa16))==null?void 0x0:_0xe8b859[_0x32246f(0x286)];}),[_0x4ee282,_0x466a69]=_0x277721(),_0x4b6101=_0x52068e(null),_0x15a4fa=_0x52068e(null),_0x196665=Cr(_0xba9a11);_0x2153d6(()=>{const _0x2b880d=_0x17846d;let _0x20f45c=_0x1c792f[_0x2b880d(0x490)][_0x2b880d(0x1a4)](_0x172e91=>{const _0x42bb7f=_0x2b880d;_0x172e91['unitId']===_0x5c8633&&_0x172e91[_0x42bb7f(0x3c1)]===_0x1e40ae&&_0x172e91[_0x42bb7f(0x49d)]===_0xba9a11['id']&&(_0x498f3b(_0x172e91['presentation']),_0x54e3d5(_0x172e91[_0x42bb7f(0x234)][_0x42bb7f(0x286)]));});return()=>_0x20f45c[_0x2b880d(0x40b)]();},[_0x1e40ae,_0x1c792f,_0x1faa16,_0x5c8633,_0xba9a11['id']]),_0x2153d6(()=>{const _0x2ef084=_0x17846d;let _0x2d5499=_0x196665['backgroundImage'];if(!_0x2d5499||_0x2d5499[_0x2ef084(0x33f)]!==_0x55ad71[_0x2ef084(0x2e3)])return;let _0x4e5827=_0x163112[_0x2ef084(0x1e5)](_0x2d5499[_0x2ef084(0x252)],_0x2d5499[_0x2ef084(0x33f)]);if(_0x4e5827!=null&&_0x4e5827[_0x2ef084(0x288)])return;let _0x49a4f4=!0x0;return _0x163112[_0x2ef084(0x433)](_0x2d5499[_0x2ef084(0x252)])[_0x2ef084(0x3ab)](_0x2a5362=>{const _0x666a02=_0x2ef084;_0x49a4f4&&_0x466a69({'source':_0x2d5499[_0x666a02(0x252)],'value':_0x2a5362});})['catch'](()=>void 0x0),()=>{_0x49a4f4=!0x1;};},[_0x196665[_0x17846d(0x3fb)],_0x163112]);let _0x5c626b=((_0x3553be=_0x196665[_0x17846d(0x3fb)])==null?void 0x0:_0x3553be[_0x17846d(0x33f)])===_0x55ad71[_0x17846d(0x2e3)]?((_0x3fba78=_0x163112['getImageSourceCache'](_0x196665[_0x17846d(0x3fb)][_0x17846d(0x252)],_0x196665[_0x17846d(0x3fb)][_0x17846d(0x33f)]))==null?void 0x0:_0x3fba78[_0x17846d(0x288)])??((_0x4ee282==null?void 0x0:_0x4ee282[_0x17846d(0x252)])===_0x196665['backgroundImage'][_0x17846d(0x252)]?_0x4ee282[_0x17846d(0x286)]:''):((_0x40f74f=_0x196665[_0x17846d(0x3fb)])==null?void 0x0:_0x40f74f[_0x17846d(0x252)])??'',_0x2283ec=_0xba9a11['shapeData'][_0x17846d(0x3dd)],_0x7bbe83=_0x2283ec&&'dataModel'in _0x2283ec?(_0x1f072f=_0x2283ec['dataModel'])==null?void 0x0:_0x1f072f[_0x17846d(0x45c)]:void 0x0,_0x105864=Er((_0x3f8a75==null?void 0x0:_0x3f8a75[_0x17846d(0x209)])??'',_0x1cf424,_0x196665),_0x197d91=_0xba9a11[_0x17846d(0x21c)]['fill'],_0x4c2dac=_0xba9a11[_0x17846d(0x21c)][_0x17846d(0x2a8)],_0x58fb81=_0x7bbe83==null||(_0xa64b16=_0x7bbe83[_0x17846d(0x325)])==null?void 0x0:_0xa64b16[_0x17846d(0x398)],_0x763521=_0xba9a11[_0x17846d(0x2bc)]??_0xba9a11[_0x17846d(0x4a8)]??'';return _0x2153d6(()=>{const _0x508b0e=_0x17846d;let _0x5a0da1=_0x4b6101[_0x508b0e(0x2bd)],_0x269b82=_0x15a4fa[_0x508b0e(0x2bd)];if(!_0x5a0da1||!_0x269b82)return;let _0x82481f=()=>{const _0x2f3f35=_0x508b0e;if(_0x196665['fontSizeMode']===_0x2f3f35(0x492)||!_0x5a0da1['clientWidth']||!_0x5a0da1['clientHeight']){_0x269b82['style'][_0x2f3f35(0x25d)]=_0x196665[_0x2f3f35(0x25d)]+'px';return;}let _0x5f6ada=0x1,_0x7c01a9=0x48,_0xb552d6=_0x5f6ada;for(;_0x5f6ada<=_0x7c01a9;){let _0x1557e6=Math[_0x2f3f35(0x2f1)]((_0x5f6ada+_0x7c01a9)/0x2);_0x269b82[_0x2f3f35(0x424)][_0x2f3f35(0x25d)]=_0x1557e6+'px',_0x269b82[_0x2f3f35(0x469)]<=_0x5a0da1[_0x2f3f35(0x485)]&&_0x269b82['scrollHeight']<=_0x5a0da1['clientHeight']?(_0xb552d6=_0x1557e6,_0x5f6ada=_0x1557e6+0x1):_0x7c01a9=_0x1557e6-0x1;}_0x269b82[_0x2f3f35(0x424)][_0x2f3f35(0x25d)]=_0xb552d6+'px';};if(_0x82481f(),typeof ResizeObserver>'u')return;let _0x51af6f=new ResizeObserver(_0x82481f);return _0x51af6f[_0x508b0e(0x1d8)](_0x5a0da1),()=>_0x51af6f[_0x508b0e(0x450)]();},[_0x196665[_0x17846d(0x25d)],_0x196665['fontSizeMode'],_0x105864]),_0x52e710(_0x17846d(0x173),{'data-dashboard-formula-shape':_0xba9a11['id'],'className':_0x17846d(0x36d),'style':{'backgroundColor':((_0x3a30a6=_0xba9a11['appearance'])==null?void 0x0:_0x3a30a6[_0x17846d(0x34d)])??((_0x197d91==null?void 0x0:_0x197d91[_0x17846d(0x4c9)])===_0x3370d4[_0x17846d(0x178)]?_0x197d91[_0x17846d(0x265)]??void 0x0:void 0x0),'border':(_0x4c2dac==null?void 0x0:_0x4c2dac[_0x17846d(0x1ba)])===_0x3941ff[_0x17846d(0x26a)]?(_0x4c2dac[_0x17846d(0x25a)]??0x1)+_0x17846d(0x425)+(_0x4c2dac[_0x17846d(0x265)]??_0x17846d(0x2e8)):void 0x0,'borderRadius':_0xba9a11['shapeType']===_0x5039fb[_0x17846d(0x313)]?0xc:void 0x0,'color':((_0x233fef=_0xba9a11[_0x17846d(0x384)])==null?void 0x0:_0x233fef[_0x17846d(0x321)])??(_0x3f8a75==null?void 0x0:_0x3f8a75[_0x17846d(0x265)])??(_0x58fb81==null||(_0x20e9f5=_0x58fb81['cl'])==null?void 0x0:_0x20e9f5[_0x17846d(0x3d9)])??void 0x0,'fontWeight':_0x58fb81!=null&&_0x58fb81['bl']?0x258:void 0x0,'textAlign':_0x196665['alignment']},'children':[_0x5c626b&&_0x1af9b(_0x17846d(0x397),{'src':_0x5c626b,'alt':'','aria-hidden':_0x17846d(0x1be),'className':_0x17846d(0x276),'style':{'objectFit':((_0x21f7ec=_0x196665[_0x17846d(0x3fb)])==null?void 0x0:_0x21f7ec[_0x17846d(0x180)])??_0x17846d(0x3de)}}),_0x52e710(_0x17846d(0x173),{'className':_0x17846d(0x31e),'children':[_0x763521&&_0x1af9b(_0x17846d(0x173),{'data-dashboard-formula-description':!0x0,'className':_0x17846d(0x3e9),'children':_0x763521}),_0x1af9b(_0x17846d(0x173),{'ref':_0x4b6101,'data-dashboard-formula-value':!0x0,'aria-label':_0x763521||_0x5abbcd['t'](_0x17846d(0x35d)),'className':_0x17846d(0x36c),'style':{'justifyContent':Or[_0x196665[_0x17846d(0x3a9)]]},'children':_0x1af9b(_0x17846d(0x46c),{'ref':_0x15a4fa,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x196665[_0x17846d(0x4b2)],'className':'univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','children':_0x105864})})]})]});}function Y(_0x442515,_0x5a62cb){return function(_0x17ffbe,_0x2b4aa9){_0x5a62cb(_0x17ffbe,_0x2b4aa9,_0x442515);};}function Ar(_0x18ad2b,_0x4e9f13,_0x393604,_0x2d310e){const _0x3f8508=_0x219009;var _0x852171=arguments[_0x3f8508(0x348)],_0x302113=_0x852171<0x3?_0x4e9f13:_0x2d310e===null?_0x2d310e=Object['getOwnPropertyDescriptor'](_0x4e9f13,_0x393604):_0x2d310e,_0x3ebdcb;if(typeof Reflect==_0x3f8508(0x43c)&&typeof Reflect['decorate']==_0x3f8508(0x27d))_0x302113=Reflect[_0x3f8508(0x4b1)](_0x18ad2b,_0x4e9f13,_0x393604,_0x2d310e);else{for(var _0x300125=_0x18ad2b[_0x3f8508(0x348)]-0x1;_0x300125>=0x0;_0x300125--)(_0x3ebdcb=_0x18ad2b[_0x300125])&&(_0x302113=(_0x852171<0x3?_0x3ebdcb(_0x302113):_0x852171>0x3?_0x3ebdcb(_0x4e9f13,_0x393604,_0x302113):_0x3ebdcb(_0x4e9f13,_0x393604))||_0x302113);}return _0x852171>0x3&&_0x302113&&Object[_0x3f8508(0x44d)](_0x4e9f13,_0x393604,_0x302113),_0x302113;}let jr=class{constructor(_0x31b642,_0x2f236b,_0xead1bc){const _0x4657ab=_0x219009;this[_0x4657ab(0x1db)]=_0x31b642,this[_0x4657ab(0x349)]=_0x2f236b,this[_0x4657ab(0x1c1)]=_0xead1bc;}['createDomChartInstance'](){const _0x24ed16=_0x219009;return this['_renderModelManager'][_0x24ed16(0x3f3)](_0x49e938[_0x24ed16(0x470)],this[_0x24ed16(0x32c)]());}[_0x219009(0x2d6)](_0x3eec72){const _0x1ec5e6=_0x219009;let _0x15a4e2=_0x3eec72[_0x1ec5e6(0x2e7)]['config'];if(!_0x15a4e2)throw Error(_0x1ec5e6(0x277)+_0x3eec72['chartId']+_0x1ec5e6(0x394));let _0x48e8ee=this[_0x1ec5e6(0x1db)]['getDirection']();return{'config':_0x15a4e2,'style':_0x596b44({..._0x3eec72['model'][_0x1ec5e6(0x424)],'runtime':_0x3eec72[_0x1ec5e6(0x2e7)][_0x1ec5e6(0x1c0)](_0x48e8ee),'direction':_0x48e8ee},_0x15a4e2[_0x1ec5e6(0x4b9)])};}[_0x219009(0x32c)](){const _0x17d0ed=_0x219009;return{'resolveHostStyle':({style:_0x3fc441})=>_0xe9cc3f({'style':_0x3fc441,'getRenderColor':_0x73ac54=>this[_0x17d0ed(0x349)][_0x17d0ed(0x35f)](_0x73ac54)}),'resolveRenderBackgroundColor':({hostStyle:_0x31a1cd})=>_0x31a1cd[_0x17d0ed(0x28d)]};}};jr=Ar([Y(0x0,_0x346fbc(_0x51de0a)),Y(0x1,_0x346fbc(_0x1ef0b9)),Y(0x2,_0x7c1a1c)],jr);function Mr(_0x17bf8e,_0x49427c){const _0x3589d9=_0x219009;var _0x45fe96;_0x17bf8e[_0x3589d9(0x424)]['backgroundColor']=_0x49427c['fill']??_0x3589d9(0x4a3),_0x17bf8e[_0x3589d9(0x424)][_0x3589d9(0x3c6)]=(_0x45fe96=_0x49427c[_0x3589d9(0x3c6)])!=null&&_0x45fe96[_0x3589d9(0x265)]&&_0x49427c['border'][_0x3589d9(0x25a)]?_0x49427c[_0x3589d9(0x3c6)][_0x3589d9(0x25a)]+'px\x20solid\x20'+_0x49427c[_0x3589d9(0x3c6)]['color']:'',_0x17bf8e['style'][_0x3589d9(0x3a5)]=_0x49427c['radius']?_0x49427c[_0x3589d9(0x184)]+'px':'',_0x17bf8e[_0x3589d9(0x424)][_0x3589d9(0x464)]='hidden',_0x17bf8e['style'][_0x3589d9(0x1dd)]=_0x3589d9(0x208);}function Nr(_0x3aeb67){'@babel/helpers - typeof';const _0x1be451=_0x219009;return Nr=typeof Symbol==_0x1be451(0x27d)&&typeof Symbol[_0x1be451(0x379)]==_0x1be451(0x2b3)?function(_0x2caa9){return typeof _0x2caa9;}:function(_0x441a7f){const _0x1ddbb3=_0x1be451;return _0x441a7f&&typeof Symbol==_0x1ddbb3(0x27d)&&_0x441a7f['constructor']===Symbol&&_0x441a7f!==Symbol[_0x1ddbb3(0x281)]?_0x1ddbb3(0x2b3):typeof _0x441a7f;},Nr(_0x3aeb67);}function Pr(_0x56fb64,_0x39ffa1){const _0xfc0b17=_0x219009;if(Nr(_0x56fb64)!=_0xfc0b17(0x43c)||!_0x56fb64)return _0x56fb64;var _0x525e6d=_0x56fb64[Symbol[_0xfc0b17(0x426)]];if(_0x525e6d!==void 0x0){var _0x5c91d0=_0x525e6d['call'](_0x56fb64,_0x39ffa1||_0xfc0b17(0x1ca));if(Nr(_0x5c91d0)!='object')return _0x5c91d0;throw TypeError(_0xfc0b17(0x47e));}return(_0x39ffa1===_0xfc0b17(0x380)?String:Number)(_0x56fb64);}function Fr(_0x489cc8){const _0x163382=_0x219009;var _0x117519=Pr(_0x489cc8,_0x163382(0x380));return Nr(_0x117519)=='symbol'?_0x117519:_0x117519+'';}function Ir(_0x35dbb5,_0x268b28,_0x14b193){const _0x565ffc=_0x219009;return(_0x268b28=Fr(_0x268b28))in _0x35dbb5?Object[_0x565ffc(0x44d)](_0x35dbb5,_0x268b28,{'value':_0x14b193,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x35dbb5[_0x268b28]=_0x14b193,_0x35dbb5;}var Lr=class extends _0x2b17e2{constructor(_0x4d8afa,_0x1a69da){const _0x27268b=_0x219009;super(),this[_0x27268b(0x2a2)]=_0x4d8afa,this[_0x27268b(0x187)]=_0x1a69da,Ir(this,_0x27268b(0x2b0),_0x49e938[_0x27268b(0x470)]);}['getRect'](){const _0x1ed419=_0x219009;return{'width':Math[_0x1ed419(0x2eb)](0x1,this[_0x1ed419(0x187)][_0x1ed419(0x485)]),'height':Math[_0x1ed419(0x2eb)](0x1,this[_0x1ed419(0x187)][_0x1ed419(0x179)])};}[_0x219009(0x1d0)](_0x2e42c3){Mr(this['_element'],_0x2e42c3);}async[_0x219009(0x211)](){return this['_element'];}[_0x219009(0x48c)](){const _0x365178=_0x219009;return this[_0x365178(0x187)][_0x365178(0x32b)];}[_0x219009(0x422)](){}[_0x219009(0x1cc)](){}['markNotReady'](){}};function Rr({isRowDirection:_0x1edec3,runtime:_0x57f5c9}){const _0x117d0=_0x219009;let _0x505c11=_0x52068e(null),_0x34ed38=_0xb3eab7(_0x51de0a),_0x5d9b38=_0xb3eab7(_0x44e345),_0x4c6d41=_0xb3eab7(jr),_0x36c582=_0xb3eab7(_0x52f5e2);return _0x2153d6(()=>{const _0x4395d4=_0x4abf;let _0x532553=_0x505c11[_0x4395d4(0x2bd)];if(!_0x532553)return;_0x532553[_0x4395d4(0x32f)]();let {chartId:_0x3da8bc,model:_0x4418b6}=_0x57f5c9,_0x97f035=_0x4418b6[_0x4395d4(0x2f2)],_0x1a9dec=new Lr(_0x3da8bc,_0x532553),_0x510ba4=_0x4c6d41[_0x4395d4(0x378)](),_0x35a8cb=!0x1,_0xcb93d1=null,_0x1ef691=null,_0x389860=null,_0x27591c=null,_0xa7d5c=!0x1,_0x906ab0=!0x1,_0x5eec61=Promise[_0x4395d4(0x4bb)]();_0x510ba4['bind'](_0x1a9dec);let _0x266eca=()=>{const _0x5449ad=_0x4395d4;var _0x1b9147,_0x21fa67,_0x44e798,_0x1529c4;if(document['visibilityState']===_0x5449ad(0x251)||(_0x1b9147=(_0x21fa67=window)[_0x5449ad(0x361)])!=null&&(_0x1b9147=_0x1b9147[_0x5449ad(0x391)](_0x21fa67,'(prefers-reduced-motion:\x20reduce)'))!=null&&_0x1b9147[_0x5449ad(0x461)]||(_0x44e798=(_0x1529c4=window)[_0x5449ad(0x361)])!=null&&(_0x44e798=_0x44e798[_0x5449ad(0x391)](_0x1529c4,_0x5449ad(0x40a)))!=null&&_0x44e798[_0x5449ad(0x461)]||!_0x532553[_0x5449ad(0x32b)])return!0x1;let _0x4166e5=_0x532553['getBoundingClientRect']();return _0x4166e5['width']>0x0&&_0x4166e5[_0x5449ad(0x34f)]>0x0&&_0x4166e5[_0x5449ad(0x312)]>0x0&&_0x4166e5[_0x5449ad(0x196)]>0x0&&_0x4166e5[_0x5449ad(0x357)]<window[_0x5449ad(0x233)]&&_0x4166e5[_0x5449ad(0x31d)]<window[_0x5449ad(0x256)];},_0x129651=()=>{const _0x329bc4=_0x4395d4;_0x1ef691!==null&&clearTimeout(_0x1ef691),_0x532553[_0x329bc4(0x3bd)][_0x329bc4(0x319)]=_0x329bc4(0x1be),_0x532553[_0x329bc4(0x3bd)]['baseChartDataAnimationDuration']=String(_0x3a53b0),_0x1ef691=setTimeout(()=>{const _0x54d08a=_0x329bc4;_0x1ef691=null,delete _0x532553['dataset'][_0x54d08a(0x319)],delete _0x532553[_0x54d08a(0x3bd)][_0x54d08a(0x22c)];},_0x3a53b0);},_0x1591e5=_0x356e73(()=>{const _0x12411b=_0x4395d4;if(_0x35a8cb||(_0xcb93d1!==null&&(clearTimeout(_0xcb93d1),_0xcb93d1=null),!_0x4418b6[_0x12411b(0x2dc)]))return;let _0x44b8dd=_0x906ab0;_0x906ab0=!0x1,_0x532553[_0x12411b(0x3bd)]['chartType']=String(_0x4418b6['chartType']),_0x532553[_0x12411b(0x3bd)][_0x12411b(0x2c0)]=String(_0x1edec3);let _0x5abd5c=_0x4c6d41[_0x12411b(0x2d6)](_0x57f5c9),_0x4a1572={'chartId':_0x3da8bc,'config':_0x5abd5c[_0x12411b(0x2dc)],'style':_0x5abd5c[_0x12411b(0x424)]};_0x5eec61=_0x5eec61[_0x12411b(0x3ab)](async()=>{const _0x575ed5=_0x12411b;_0x35a8cb||(_0x532553[_0x575ed5(0x3bd)][_0x575ed5(0x2c2)]=String(Number(_0x532553[_0x575ed5(0x3bd)][_0x575ed5(0x2c2)]??0x0)+0x1),_0x44b8dd&&_0x389860&&_0x510ba4['renderTransition']&&_0x266eca()?(await _0x510ba4['renderTransition'](_0x389860,_0x4a1572,{'duration':_0x3a53b0}),_0x35a8cb||_0x129651()):await _0x510ba4[_0x575ed5(0x47c)](_0x4a1572),_0x389860=_0x4a1572);})[_0x12411b(0x2c9)](_0x486988=>_0x5d9b38[_0x12411b(0x4ab)]('[BasePivotChart]\x20Failed\x20to\x20render\x20chart.',_0x486988));},0x64,{'leading':!0x0,'trailing':!0x0,'maxWait':0x64}),_0xe9bf1=(_0x162651=!0x1)=>{_0x906ab0||=_0x162651,!_0xa7d5c&&(_0xa7d5c=!0x0,queueMicrotask(()=>{_0xa7d5c=!0x1,_0x35a8cb||_0x1591e5();}));},_0x469d66=[_0x97f035['data$']['subscribe'](_0x526fa0=>{const _0x1cac2a=_0x4395d4;let _0x3c74e6=JSON[_0x1cac2a(0x18a)](_0x526fa0);_0x27591c!=null&&_0x27591c!==_0x3c74e6&&_0xe9bf1(!0x0),_0x27591c=_0x3c74e6;}),_0x4418b6[_0x4395d4(0x266)][_0x4395d4(0x1a4)](_0x174174=>{_0x174174&&_0xe9bf1();}),_0x4418b6[_0x4395d4(0x4a9)][_0x4395d4(0x1a4)](()=>_0xe9bf1()),_0x34ed38['direction$'][_0x4395d4(0x1a4)](()=>_0xe9bf1()),_0x14fb38([_0x36c582[_0x4395d4(0x341)],_0x36c582[_0x4395d4(0x40f)]])[_0x4395d4(0x20d)](_0x51a852(0x1))[_0x4395d4(0x1a4)](()=>_0xe9bf1())],_0xc7c7cc=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x367b8a=_0x4395d4;_0x35a8cb||(_0x1a9dec[_0x367b8a(0x422)](),_0xcb93d1!==null&&clearTimeout(_0xcb93d1),_0xcb93d1=setTimeout(()=>_0xe9bf1(),0x64));});return _0xc7c7cc==null||_0xc7c7cc[_0x4395d4(0x1d8)](_0x532553),()=>{const _0x5cfa51=_0x4395d4;_0x35a8cb=!0x0,_0x1591e5[_0x5cfa51(0x46b)](),_0xcb93d1!==null&&clearTimeout(_0xcb93d1),_0x1ef691!==null&&clearTimeout(_0x1ef691),delete _0x532553[_0x5cfa51(0x3bd)]['baseChartDataAnimation'],delete _0x532553[_0x5cfa51(0x3bd)]['baseChartDataAnimationDuration'],_0xc7c7cc==null||_0xc7c7cc['disconnect'](),_0x469d66[_0x5cfa51(0x2a3)](_0x5041d1=>_0x5041d1[_0x5cfa51(0x40b)]()),_0x510ba4['dispose'](),_0x1a9dec['dispose'](),_0x532553['replaceChildren']();};},[_0x1edec3,_0x34ed38,_0x5d9b38,_0x4c6d41,_0x57f5c9,_0x36c582]),_0x1af9b(_0x117d0(0x173),{'ref':_0x505c11,'data-u-comp':_0x117d0(0x1d1),'className':_0x117d0(0x1af)});}function zr({filters:_0x2c6982,onRuntimeChange:_0x4a29cd,unitId:_0x3a8cb8,widget:_0x3a2d7d}){const _0x50c720=_0x219009;let _0x2e3129=_0xb3eab7(_0x144775),_0x267aea=_0xb3eab7(_0x51de0a),_0x20e6dc=_0xb3eab7(_0x44e345),_0x13cffb=_0xb3eab7(_0x559b79),[_0x433d22,_0x38f923]=_0x277721(null),[_0x4008fb,_0x20cd8b]=_0x277721(!0x1),[_0x4f0b35,_0x2fa177]=_0x277721(null),_0x55a7e9=_0x52068e('base-dashboard-pivot-chart-'+_0x3dac7b(0x8)),_0x1d8d3a=_0x2e3129[_0x50c720(0x225)](_0x3a8cb8,_0x160ed0[_0x50c720(0x1b7)]),_0x3e9333=_0x1d8d3a==null?void 0x0:_0x1d8d3a['getSnapshot']()['tables'][_0x3a2d7d[_0x50c720(0x35c)]],_0x2cd237=_0x3e9333==null?void 0x0:_0x3e9333[_0x50c720(0x2ea)][_0x3a2d7d['pivotViewId']],_0x1c2cc0=Br(_0x2cd237);if(_0x2153d6(()=>{const _0x19d4df=_0x50c720;if(!_0x1c2cc0)return;let _0x101ced=_0x55a7e9[_0x19d4df(0x2bd)];return _0x13cffb[_0x19d4df(0x3fc)](_0x101ced,{'unitId':_0x3a8cb8,'tableId':_0x3a2d7d[_0x19d4df(0x35c)],'viewId':_0x3a2d7d[_0x19d4df(0x4c1)],'filters':[]}),()=>{const _0x16babe=_0x19d4df;_0x13cffb[_0x16babe(0x4a5)](_0x3a8cb8,_0x101ced),_0x4a29cd==null||_0x4a29cd(_0x3a2d7d['id'],null);};},[_0x1c2cc0,_0x4a29cd,_0x13cffb,_0x3a8cb8,_0x3a2d7d['id'],_0x3a2d7d[_0x50c720(0x4c1)],_0x3a2d7d[_0x50c720(0x35c)]]),_0x2153d6(()=>{const _0x42611d=_0x50c720;if(!Br(_0x2cd237))return;let _0x5a846a=!0x0,_0x19ef28=_0x3a2d7d[_0x42611d(0x2fc)]??_0x2cd237['config']['chart'],_0x4e730c={'unitId':_0x3a8cb8,'tableId':_0x3a2d7d[_0x42611d(0x35c)],'viewId':_0x3a2d7d['pivotViewId'],'filters':[_0x2cd237[_0x42611d(0x498)]??null,..._0x2c6982]};return _0x13cffb[_0x42611d(0x443)](_0x3a8cb8,_0x55a7e9[_0x42611d(0x2bd)],_0x4e730c,_0x19ef28)[_0x42611d(0x3ab)](_0x4b4a70=>{const _0x9a56=_0x42611d;if(!_0x5a846a||!_0x4b4a70)return;let _0x37eda7=_0x13cffb[_0x9a56(0x404)](_0x3a8cb8,_0x55a7e9[_0x9a56(0x2bd)])??null;_0x38f923(_0x4b4a70),_0x2fa177(_0x37eda7),_0x20cd8b(!0x1),_0x4a29cd==null||_0x4a29cd(_0x3a2d7d['id'],_0x37eda7);})[_0x42611d(0x2c9)](_0x8da4e2=>{const _0x4295f7=_0x42611d;_0x20e6dc['error'](_0x4295f7(0x4ac),_0x8da4e2),_0x5a846a&&(_0x38f923(null),_0x20cd8b(!0x0));}),()=>{_0x5a846a=!0x1;};},[_0x2c6982,_0x20e6dc,_0x4a29cd,_0x13cffb,_0x3a8cb8,_0x2cd237,_0x3a2d7d[_0x50c720(0x2fc)],_0x3a2d7d['id'],_0x3a2d7d['pivotViewId'],_0x3a2d7d[_0x50c720(0x35c)]]),!Br(_0x2cd237))return _0x1af9b(_0x50c720(0x173),{'className':_0x50c720(0x3b9),'children':_0x267aea['t'](_0x50c720(0x37d))});let _0x3c56cd=_0x13cffb['getChartRuntime'](_0x3a8cb8,_0x55a7e9[_0x50c720(0x2bd)])===_0x4f0b35?_0x4f0b35:null;return _0x433d22&&_0x3c56cd?_0x1af9b(Rr,{'isRowDirection':_0x4562e5((_0x3a2d7d[_0x50c720(0x2fc)]??_0x2cd237[_0x50c720(0x2dc)][_0x50c720(0x2fc)])[_0x50c720(0x4b4)]),'runtime':_0x3c56cd}):_0x1af9b('div',{'className':_0x50c720(0x3b9),'children':_0x267aea['t'](_0x4008fb?_0x50c720(0x4cf):_0x50c720(0x1e3))});}function Br(_0x50843b){const _0x419e7c=_0x219009;return(_0x50843b==null?void 0x0:_0x50843b[_0x419e7c(0x4b9)])===_0x4ec201[_0x419e7c(0x223)]&&typeof _0x50843b[_0x419e7c(0x2dc)]==_0x419e7c(0x43c)&&_0x50843b[_0x419e7c(0x2dc)]!==null&&_0x419e7c(0x3b3)in _0x50843b[_0x419e7c(0x2dc)]&&_0x419e7c(0x2fc)in _0x50843b[_0x419e7c(0x2dc)];}const Vr={'alignment':'left','fontSize':0x12,'fontSizeMode':'auto'};function Hr(_0x1acc69){return{...Vr,..._0x1acc69['appearance']};}function Ur(_0x19e0d6){const _0x117f32=_0x219009;var _0x2bef69;return((_0x2bef69=_0x19e0d6[_0x117f32(0x45b)])==null?void 0x0:_0x2bef69[_0x117f32(0x438)]['replace'](/\r\n$/,'')[_0x117f32(0x440)](/\r/g,'\x0a'))??'';}function _0x494c(){const _0x496f91=['createChartInstance','area','bases-dashboard-ui.chart.chartTypes.','univer-text-right','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','bases-dashboard-ui.dashboardInspector.checked','changed$','sortInfo','backgroundImage','acquireChartRuntime','univer-flex\x20univer-justify-end\x20univer-gap-2','IS_NOT','GREATER_THAN','BEFORE','header','varp','center','getChartRuntime','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','IS_NOT_EMPTY','dom','indexOf','univer-truncate','print','unsubscribe','target','bases-dashboard-ui.chart.common.rightVerticalAxis','entries','darkMode$','LESS_THAN','get','link','PieStyle','currency','exitFullscreen','bases-dashboard-ui.chart.section.treemap','renameField','disposeWithMe','onDragEnd','Scatter','scrollTop','conjunction','dashboard-widget-','univer-size-5\x20univer-rotate-90','showColGrandTotal','bases-dashboard-ui.chart.common.customize','bases-dashboard-ui.mobile.permissions','syncLayout','ManualFilter','style','px\x20solid\x20','toPrimitive','list','cumulativeLineStyle','waterfall','repeatRowLabels','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','univer-relative\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-50\x20dark:univer-bg-gray-950','Text','requestFullscreen','pointerY','bases-dashboard-ui.chart.section.chord','contains','bases-dashboard-ui.chart.waterfall.subtotal','getImage','initialLayouts','bases-dashboard-ui.dashboardInspector.backgroundColor','addImageSourceCache','3028035zMUMze','dataStream','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','bases-dashboard-ui.pivot.rowSubtotalPosition','bases-dashboard-ui.dashboardInspector.decimalPlaces','object','executeCommand','small','map','replace','bases-dashboard-ui.operators.contains','minmax(0,\x203fr)\x20minmax(0,\x202fr)','refreshChartRuntime','univer-shrink-0\x20univer-rounded-full\x20univer-bg-gray-200\x20univer-px-2\x20univer-py-0.5\x20univer-text-xs\x20univer-text-gray-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-300','797058uAwnla','bases-dashboard-ui.pivot.fieldSettings','setOptions','bases-dashboard-ui.operators.before','compact','univer-mx-auto\x20univer-size-6','TableFilter','updateFieldPosition','defineProperty','tables','bases-dashboard-ui.dashboardInspector.uploadImage','disconnect','closest','General','removeField','bases-dashboard-ui.chart.common.editChart','depthAxis','lastRow','bases-dashboard-ui.pivot.confirm','bases-dashboard-ui.chart.common.series','toUpperCase','bases-dashboard-ui.chart.common.heatmap','body','doc','slice','bases-dashboard-ui.dashboardInspector.autoFit','bases-dashboard-ui.dashboard.search','select','matches','Axes','CONTAINS','overflow','percent','min','format','bases-dashboard-ui.dashboard.resizeWidget','scrollWidth','split','cancel','span','article','product','chart-and-table','Dom','setSortInfo','bases-dashboard-ui.pivot.repeatColumnLabels','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','dataAggregation','bases-dashboard-ui.pivot.chartConfiguration','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','bases-dashboard-ui.dashboardInspector.reset','Value','Radar','univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','bases-dashboard-ui.dashboard.new','render','bases-dashboard-ui.dashboardInspector.unchecked','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','RecordId','bases-dashboard-ui.dashboardInspector.cover','includes','univer-pointer-events-auto\x20univer-opacity-100','waterfall.positive','saveAttachment','clientWidth','setConfig','relation','univer-mt-2','bases-dashboard-ui.operators.lessThanOrEqual','bases-dashboard-ui.pivot.variance','titles','checkMounted','univer-h-full\x20univer-w-full\x20univer-bg-transparent','dashboardOrder','_config','presentationChanged$','bases-dashboard-ui.chart.section.waterfall','custom','univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','univer-text-sm','univer-border-gray-200\x20dark:!univer-border-gray-700','5JNSYEv','decimalPlaces','filter','some','average','Data','1.3.1','shapeId','getAttachmentUrl','bases-dashboard-ui.pivot.tableOnly','row:','bases-dashboard-ui.dashboardInspector.repeat','widgets','transparent','startY','releaseChartRuntime','toJSON','chartType','title','style$','base-pivot-chart-setup','error','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.pivot.valuePosition','univer-border-0\x20univer-bg-transparent','original','univer-flex-1','decorate','fontSizeMode','kind','orient','univer-bg-transparent\x20dark:!univer-bg-transparent','bases-dashboard-ui.chart.section.pie','setLayout','contain','type','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','resolve','fullscreenElement','setSubtotalType','bases-dashboard-ui.pivot.numberFormat','descending','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','pivotViewId','colCount','file','info','widgetOrder','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','bases-dashboard-ui.chart.section.wordCloud','base-pivot-chart-style','fillType','getDashboard','bases-dashboard-ui.pivot.options','bases-dashboard-ui.pivot.grandTotal','Filter','bases-dashboard-ui.mobile.moveUp','bases-dashboard-ui.pivot.calculationFailed','univer-flex\x20univer-items-center\x20univer-gap-2','dashboard-','univer-w-24','resize','layout','toLocaleLowerCase','prefix','bases-dashboard-ui.dashboardInspector.selectOption','bases-dashboard-ui.dashboardInspector.editData','div','currentTarget','6125908AOOJPn','Rating','univer-grid\x20univer-gap-3','SolidFill','clientHeight','move','IS_EMPTY','ChartAndAxisTitles','Bubble','bases-dashboard-ui.pivot.description','bases-dashboard-ui.pivot.top','fit','from','bases-dashboard-ui.dashboard.redo','rowSubtotalPosition','radius','input','WordCloud','_element','getFieldCountByArea','values','stringify','bases-dashboard-ui.pivot.addToRow','bases-dashboard-ui.dashboardInspector.data','dataFieldId','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.addToColumn','getTableFieldsByDataFieldId','MultipleGrandTotal','alt','false','bases-dashboard-ui.chart.common.switchRowColumn','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','bottom','dashboard-chart-style','section','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','bases-dashboard-ui.pivot.chartOnly','bases-dashboard-ui.dashboardInspector.compact','no-repeat','bases-dashboard-ui.chart.section.candlestick','Sankey','bases-dashboard-ui.chart.chartTypes.line','group','PivotChart','Area','45dbfImo','subscribe','bases-dashboard-ui.pivot.display','bases-dashboard-ui.pivot.cancel','CreatedAt','clientY','bases-dashboard-ui.dashboardInspector.delete','univer-bg-gray-0\x20dark:!univer-bg-gray-900','formula','onMoveUp','bases-dashboard-ui.pivot.ascending','flatMap','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','bases-dashboard-ui.pivot.showRowGrandTotal','repeatColLabels','push','clientX','toDate','pointermove','bases-dashboard-ui.operators.is','UNIVER_BASE','destructive','removeEventListener','lineStrokeType','isBottomTotal','updateValuePosition','onStarting','true','packageName','getRuntimeContext','_renderModelManager','button','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','lastCol','wordCloud','paragraphId','getPresentation','bases-dashboard-ui.pivot.removeField','fields','default','fieldId','markReady','heatmap','pageRows','IndicatorLine','setStyle','base-pivot-chart','getOptions','bases-dashboard-ui.dashboard.image','focusUnit','end','label','bases-dashboard-ui.dashboard.delete','observe','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','_localeService','bases-dashboard-ui.chart.section.paretoBar','boxSizing','bases-dashboard-ui.dashboardInspector.description','bases-dashboard-ui.pivot.addToFilter','executeChartUpdateConfig','bases-dashboard-ui.pivot.downThenAcross','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','bases-dashboard-ui.pivot.calculating','\x20/\x20span\x20','getImageSourceCache','stdDev','bases-dashboard-ui.pivot.min','onDragOver','univer-m-3','getResult','bases-dashboard-ui.chart.common.chartAndAxisTitles','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','Date','pageWrap','Relation','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','isArray','pointerup','ParetoLineSeries','redos','date','series','MultiSelect','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','item','_configService','bases-dashboard-ui.dashboard.tableFilter','univer-mb-2\x20univer-border-collapse\x20univer-text-sm','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','bases-dashboard-ui.pivot.product','bases-dashboard-ui.pivot.chartAndTable','bases-dashboard-ui.pivot.searchFields','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','outline','showRowGrandTotal','bases-dashboard-ui.dashboardInspector.clear','onDragStart','getSnapshot','columnSpan','border-box','text','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','Image','pipe','bases-dashboard-ui.operators.greaterThan','bases-dashboard-ui.pivot.dataSource','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','ensureMount','UpdatedAt','setFieldFormat','@univerjs-pro/bases-dashboard-ui','operand','bases-dashboard-ui.pivot.defaultName','set','BASE_DASHBOARD_UI_PLUGIN','FormulaShape','AND','onCancel','shapeData','allSeriesStyle','formulaBinding','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','countNums','bases-dashboard-ui.pivot.dropFieldsHere','pageOverThenDown','Pivot','rowSpan','getUnit','match','dashboard-chart-setup','univer-flex\x20univer-flex-col\x20univer-gap-4','univer-w-36','univer-min-w-0\x20univer-flex-1','keydown','baseChartDataAnimationDuration','documentElement','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','numberFormat','bases-dashboard-ui.dashboard.defaultName','pageView','fieldOrder','innerWidth','result','system','segmented','saveImage','supports','rowCount','_injector','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','onReady','columnFields','grandTotal','context','allowMultiple','count','scrollHeight','getFieldPositionInfoById','AFTER','onMoveDown','Gauge','GeneralSeries','bases-dashboard-ui.mobile.moveDown','bases-dashboard-ui.pivot.pageDirection','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','bases-dashboard-ui.config','fullscreenchange','bases-dashboard-ui.pivot.addToValue','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','number','univer-group\x20univer-relative\x20univer-flex\x20univer-min-h-0\x20univer-flex-col\x20univer-overflow-visible\x20univer-rounded-lg\x20univer-border\x20univer-shadow-sm\x20univer-transition-shadow','hidden','source','Pareto','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','getResource','innerHeight','bases-dashboard-ui.dashboardInspector.enterValue','itemTypes','univer-text-gray-400','width','Style','univer-min-h-11\x20univer-px-3\x20univer-text-base','fontSize','NOT_CONTAINS','baseOn','field','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','thead','grouped','color','config$','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','getValueIndex','tbody','SolidLine','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','onDrop','bases-dashboard-ui.dashboardInspector.editFormula','bases-dashboard-ui.operators.notContains','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Currency','Series','bases-dashboard-ui.dashboard.undo','Progress','bases-dashboard-ui.chart.','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','Base\x20dashboard\x20chart\x20','bases-dashboard-ui.dashboardInspector.alignment','dataView','bases-dashboard-ui.dashboardInspector.replaceImage','data:','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','function','bases-dashboard-ui.pivot.acrossThenDown','onCommit','delete','prototype','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','0\x200','bases-dashboard-ui.pivot.fields','univer-cursor-grab','value','bases-dashboard-ui.pivot.pageWrap','src','bases-dashboard-ui.dashboard.section','rightYAxis','univer-pointer-events-none\x20univer-absolute\x20univer-left-1/2\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-h-5\x20univer-w-8\x20-univer-translate-x-1/2\x20univer-appearance-none\x20univer-items-center\x20univer-justify-center\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-400\x20univer-opacity-0\x20univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','isSubtotal','fill','round','211PAzhDZ','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','bases-dashboard-ui.pivot.layoutOutline','bases-dashboard-ui.dashboardInspector.general','getId','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-96\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','document','univer-flex\x20univer-h-auto\x20univer-min-h-12\x20univer-shrink-0\x20univer-flex-wrap\x20univer-items-center\x20univer-gap-1\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.filters','dashboard-text-','bases-dashboard-ui.dashboard.text','LineAndArea','axis','headerMap','base-pivot-chart-','change','imageSourceType','bases-dashboard-ui.pivot.name','aside','chartId','forEach','minmax(0,\x201fr)','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.dashboardInspector.style','bases-dashboard-ui.dashboardInspector.textSize','stroke','auto','tableOrder','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','stopPropagation','bases-dashboard-ui.pivot.summarizeBy','univer-cursor-grabbing','displayName','mode','bases-dashboard-ui.dashboardInspector.currencyCode','valueIndex','symbol','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','bases-dashboard-ui.dashboard.widgetActions','size','univer-flex\x20univer-gap-2','bases-dashboard-ui.dashboardInspector.numberFormat','bases-dashboard-ui.dashboardInspector.formula','univer-size-4','parentElement','description','current','tabular','corner:','chartRowDirection','key','renderRevision','addFieldWithSourceId','7144sWKUOv','register','\x20/\x20','bases-dashboard-ui.dashboardInspector.removeImage','65506010NhEggx','catch','bases-dashboard-ui.chart.section.sunburst','GrandTotal','bases-dashboard-ui.operators.greaterThanOrEqual','bases-dashboard-ui.dashboardInspector.dragWidget','Row','resizeDirection','onFilter','onRemove','univer-flex\x20univer-flex-col','cornerView','bases-dashboard-ui.pivot.layoutCompact','bases-dashboard-ui.pivot.max','createRenderInput','bases-dashboard-ui.dashboard.rename','univer-shrink-0\x20univer-px-3','bases-dashboard-ui.chart.common.setup','accept','univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','config','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','bases-dashboard-ui.pivot.selectAll','Line','#,##0','bases-dashboard-ui.dashboard.editWidget','Checkbox','UUID','every','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','defaultPrevented','model','currentColor','undos','views','max','bases-dashboard-ui.pivot.layoutTabular','getCurrentTheme','trim','univer-grid\x20univer-gap-3\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','13666jrwbOh','floor','dataSource','view','bases-dashboard-ui.dashboardInspector.dataSource','univer-max-h-40\x20univer-text-base','isFinite','primary','univer-grid\x20univer-gap-4\x20univer-p-4','join','bases-dashboard-ui.dashboardInspector.percent','univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize','chart','bases-dashboard-ui.dashboardInspector.right','barStyle','univer-grid\x20univer-gap-4','Group','bases-dashboard-ui.dashboard.add','bases-dashboard-ui.dashboardInspector.center','bases-dashboard-ui.pivot.countNumbers','ParetoBarSeries','bases-dashboard-ui.chart.section.indicatorLine','bases-dashboard-ui.pivot.average','RightVerticalAxis','Subtotal','bases-dashboard-ui.chart.common.trendline','GREATER_THAN_OR_EQUAL','rowView','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','univer-flex\x20univer-min-h-full\x20univer-flex-col','bases-dashboard-ui.pivot.displayName','getBoundingClientRect','univer-mt-2\x20univer-w-full','USD','right','RoundRect','createElement','bases-dashboard-ui.pivot.filterField','showColSubtotal','filterFields','labelId','baseChartDataAnimation','column','separator','bases-dashboard-ui.chart.section.relation','top','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','LESS_THAN_OR_EQUAL','initial','textColor','HorizontalAxis','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-whitespace-nowrap\x20univer-border\x20univer-border-gray-200\x20univer-px-3\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-left\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-text-sm\x20univer-font-medium','documentStyle','bases-dashboard-ui.dashboardInspector.custom','Number','table','headerRowCount','lineAndArea','isConnected','_createContext','bases-dashboard-ui.pivot.columns','tableFieldId','replaceChildren','undoRedoStatus$','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','univer-flex\x20univer-h-full\x20univer-w-[380px]\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','dispose','general','waterfall.negative','onMove','ChartStyle','files','univer-w-full','pointerX','preventDefault','conditions','onSettings','Waterfall','sourceType','bases-dashboard-ui.pivot.stdDevPopulation','currentTheme$','Legend','displayMode','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','bases-dashboard-ui.dashboardInspector.number','base-pivot-chart-configuration','bases-dashboard-ui.pivot.sum','length','_chartThemeService','dimension','Boxplot','pluginName','backgroundColor','bases-dashboard-ui.pivot.stdDev','height','bases-dashboard-ui.dashboardInspector.originalSize','bases-dashboard-ui.pivot.count','bases-dashboard-ui.dashboard.addWidget','Funnel','bases-dashboard-ui.dashboard.deleteWidget','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','defaultValue','left','isTopTotal','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','ascending','bases-dashboard-ui.dashboard.pivotChart','tableId','bases-dashboard-ui.dashboard.formulaShape','var','getRenderColor','valuePosition','matchMedia','univer-flex','image/*','base64Cache','bases-dashboard-ui.dashboardInspector.grouped','click','setLabelFilterInfo','blur','test','bases-dashboard-ui.operators.isNot','colView','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-flex-col\x20univer-justify-center\x20univer-overflow-hidden\x20univer-bg-gray-0\x20univer-p-4\x20univer-text-gray-1000\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-50','11KdNOxC','snapshot','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','addEventListener','bases-dashboard-ui.pivot.showRowSubtotal','rowFields','startScrollTop','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','bases-dashboard-ui.dashboardInspector.loading','rootContainerElement','createDomChartInstance','iterator','None','valueFields','localeKey','bases-dashboard-ui.dashboardInspector.sourceUnavailable','getDataFieldByTableId','bases-dashboard-ui.chart.section.paretoLine','string','ceil','children','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','appearance','bases-dashboard-ui.pivot.blank','bases-dashboard-ui.pivot.layout','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','darkMode','bases-dashboard-ui.pivot.bottom','univer-pointer-events-none\x20univer-absolute\x20univer-z-30\x20univer-appearance-none\x20univer-p-0\x20univer-opacity-0\x20!univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','row','BaseDashboard','bases-dashboard-ui.pivot.descending','WaterfallSeries','pareto','subItem','call','[data-dashboard-widget]','waterfallStyle','\x20has\x20no\x20render\x20config.','bases-dashboard-ui.chart.chartTypes.area','bases-dashboard-ui.operators.isNotEmpty','img','textStyle','stdDevp','data','Candlestick','items','version','Treemap','VerticalAxis','startX','Pie','univer-relative\x20univer-z-10','change$','index','borderRadius','rowType','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','bases-dashboard-ui.pivot.showColumnSubtotal','alignment','name','then','Sunburst','bases-dashboard-ui.pivot.pivotConfiguration','find','viewOrder','funnel','bases-dashboard-ui.chart.section.gridlinesAndTicks','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','pivot','bases-dashboard-ui.dashboardInspector.contain','repeat','isHeader','sum','bases-dashboard-ui.pivot.repeatRowLabels','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','11993030jTdIif','bases-dashboard-ui.chart.common.verticalAxis','gray','dataset','showRowSubtotal','YYYY-MM-DD','Histogram','subUnitId','bases-dashboard-ui.pivot.rows','bases-dashboard-ui.chart.section.gauge','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','base-pivot-table-configuration','border','univer-size-5\x20univer-text-primary-600','bases-dashboard-ui.pivot.sourceFields','pie','Chord','filterInfo','base-pivot-options','trendline','formatMap','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','options','bases-dashboard-ui.chart.section.histogram','bases-dashboard-ui.operators.lessThan','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','Column','measure','SingleSelect','subtotal','bases-dashboard-ui.dashboardInspector.left','rgb','Positive','univer-flex\x20univer-min-h-0\x20univer-flex-1','bases-dashboard-ui.dashboardInspector.textColor','shapeText','cover','operator','flex-start','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','setCurrentUnitForType','univer-box-content\x20univer-size-1.5\x20univer-rounded-full\x20!univer-border-2\x20!univer-border-solid\x20!univer-border-white\x20!univer-bg-primary-600','bases-dashboard-ui.dashboard.fullScreen','dashboards','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','add','permissionPointUpdate$','univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','rows','bases-dashboard-ui.dashboard.configure','activeRuntimeModel','base-pivot-fields','Heatmap','bases-dashboard-ui.dashboardInspector.backgroundImage','univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','Person','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4'];_0x494c=function(){return _0x496f91;};return _0x494c();}function Wr(_0xeda41b,_0x267cc0){const _0x1dcc55=_0x219009;var _0x288c9b;let _0x4094fa=_0x267cc0[_0x1dcc55(0x440)](/\r\n|\r/g,'\x0a')[_0x1dcc55(0x46a)]('\x0a'),_0x5cffda=_0x4094fa[_0x1dcc55(0x2f9)]('\x0d')+'\x0d\x0a',_0x48faf1=((_0x288c9b=_0xeda41b[_0x1dcc55(0x45b)])==null?void 0x0:_0x288c9b['paragraphs'])??[],_0x2ea2c3=new Set(_0x48faf1[_0x1dcc55(0x43f)](_0x3bc24b=>_0x3bc24b[_0x1dcc55(0x1c6)])),_0x4c8cba=0x0,_0x48ca73=_0x4094fa[_0x1dcc55(0x43f)]((_0x4b71ac,_0x4093fe)=>{const _0x6ce942=_0x1dcc55;_0x4c8cba+=_0x4b71ac[_0x6ce942(0x348)];let _0x52a174={..._0x48faf1[_0x4093fe]??{'startIndex':_0x4c8cba,'paragraphId':_0x18fe69(_0x2ea2c3)},'startIndex':_0x4c8cba};return _0x4c8cba+=0x1,_0x52a174;});return{..._0xeda41b,'body':{..._0xeda41b[_0x1dcc55(0x45b)],'dataStream':_0x5cffda,'paragraphs':_0x48ca73,'textRuns':[]}};}function Gr({widget:_0x23dc1d}){const _0x4abf87=_0x219009;let _0x1775c0=_0xb3eab7(_0x52f5e2),_0x54bff3=_0xb3eab7(_0x51de0a),_0x32d3eb=_0x97415f(()=>_0x1775c0[_0x4abf87(0x341)],_0x1775c0['getCurrentTheme'](),!0x1,[_0x1775c0]),_0x1b9cdb=_0x52068e(null),_0x1d088f=_0x52068e(null),_0x378d04=Hr(_0x23dc1d),_0x40167b=_0x378d04['backgroundColor']??_0x32d3eb[_0x4abf87(0x3bc)][0x0],_0x8ca486=_0x378d04[_0x4abf87(0x321)]??_0x32d3eb[_0x4abf87(0x3bc)][0x3e8],_0x458baa=Ur(_0x23dc1d['document']);return _0x2153d6(()=>{const _0x2643d3=_0x4abf87;let _0x3f1e2c=_0x1b9cdb[_0x2643d3(0x2bd)],_0x36858f=_0x1d088f['current'];if(!_0x3f1e2c||!_0x36858f)return;let _0x49c2e8=()=>{const _0x1c32f4=_0x2643d3;if(_0x378d04[_0x1c32f4(0x4b2)]===_0x1c32f4(0x492)||!_0x3f1e2c[_0x1c32f4(0x485)]||!_0x3f1e2c[_0x1c32f4(0x179)]){_0x36858f['style'][_0x1c32f4(0x25d)]=_0x378d04['fontSize']+'px';return;}let _0x2cd571=0x8,_0xf4a46f=0x48,_0xadfca5=_0x2cd571;for(;_0x2cd571<=_0xf4a46f;){let _0x504316=Math[_0x1c32f4(0x2f1)]((_0x2cd571+_0xf4a46f)/0x2);_0x36858f[_0x1c32f4(0x424)][_0x1c32f4(0x25d)]=_0x504316+'px',_0x36858f[_0x1c32f4(0x469)]<=_0x3f1e2c[_0x1c32f4(0x485)]&&_0x36858f[_0x1c32f4(0x242)]<=_0x3f1e2c['clientHeight']?(_0xadfca5=_0x504316,_0x2cd571=_0x504316+0x1):_0xf4a46f=_0x504316-0x1;}_0x36858f[_0x1c32f4(0x424)][_0x1c32f4(0x25d)]=_0xadfca5+'px';};if(_0x49c2e8(),typeof ResizeObserver>'u')return;let _0x5b2141=new ResizeObserver(_0x49c2e8);return _0x5b2141[_0x2643d3(0x1d8)](_0x3f1e2c),()=>_0x5b2141[_0x2643d3(0x450)]();},[_0x378d04[_0x4abf87(0x25d)],_0x378d04[_0x4abf87(0x4b2)],_0x458baa]),_0x1af9b(_0x4abf87(0x173),{'data-dashboard-text-widget':_0x23dc1d['id'],'className':_0x4abf87(0x27c),'style':{'backgroundColor':_0x40167b,'color':_0x8ca486},'children':_0x1af9b(_0x4abf87(0x173),{'ref':_0x1b9cdb,'data-dashboard-text-content':!0x0,'aria-label':_0x54bff3['t']('bases-dashboard-ui.dashboard.text'),'className':_0x4abf87(0x473),'children':_0x1af9b('div',{'ref':_0x1d088f,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x378d04[_0x4abf87(0x4b2)],'className':_0x4abf87(0x370),'style':{'textAlign':_0x378d04[_0x4abf87(0x3a9)]},'children':_0x458baa})})});}function Kr({dashboard:_0x1ed722,editable:_0x2d2621=!0x0,onSelectWidget:_0x2bba8f,renderWidget:_0x50c5b8,renderWidgetActions:_0x13f579,selectedWidgetId:_0x4dc8bd,widgetLabel:_0x54224b}){const _0x368e8e=_0x219009;return _0x1af9b(_0x368e8e(0x173),{'data-dashboard-scroll-container':!0x0,'className':_0x43bd71('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',_0x178403),'onClick':_0x2d2621?_0x2ebe21=>{const _0x2f06e2=_0x368e8e;if(!(_0x2ebe21[_0x2f06e2(0x40c)]instanceof Node)||!_0x2ebe21[_0x2f06e2(0x174)][_0x2f06e2(0x431)](_0x2ebe21[_0x2f06e2(0x40c)]))return;let _0x5f189d=_0x2ebe21[_0x2f06e2(0x40c)]instanceof Element?_0x2ebe21['target']:_0x2ebe21['target'][_0x2f06e2(0x2bb)];_0x5f189d!=null&&_0x5f189d[_0x2f06e2(0x451)](_0x2f06e2(0x392))||_0x2bba8f==null||_0x2bba8f();}:void 0x0,'children':_0x1af9b(_0x368e8e(0x173),{'data-dashboard-grid':!0x0,'className':_0x368e8e(0x201),'children':_0x1ed722[_0x368e8e(0x4c5)]['map'](_0x5dc1e4=>{const _0x4d41a2=_0x368e8e;let _0x1d45d8=_0x1ed722['widgets'][_0x5dc1e4];if(!_0x1d45d8)return null;let _0x39a636=Math['max'](0xb4,_0x1d45d8[_0x4d41a2(0x16e)][_0x4d41a2(0x224)]*_0x3b43c9);return _0x52e710(_0x4d41a2(0x46d),{'data-dashboard-widget':_0x1d45d8['id'],'aria-label':_0x1d45d8[_0x4d41a2(0x4a8)]??_0x54224b(_0x1d45d8),'className':_0x43bd71('univer-group\x20univer-relative\x20univer-flex\x20univer-min-h-0\x20univer-flex-col\x20univer-overflow-visible\x20univer-rounded-lg\x20univer-border\x20univer-shadow-sm\x20univer-transition-shadow',_0x1d45d8[_0x4d41a2(0x4b9)]===_0xf5049a[_0x4d41a2(0x20c)]||_0x1d45d8[_0x4d41a2(0x4b9)]===_0xf5049a['FormulaShape']?_0x4d41a2(0x4b5):_0x4d41a2(0x1aa),_0x2d2621&&_0x4dc8bd===_0x1d45d8['id']?_0x4d41a2(0x476):_0x4d41a2(0x495)),'style':{'minHeight':_0x39a636,'height':_0x39a636},'tabIndex':_0x2d2621?0x0:void 0x0,'onClick':_0x2d2621?()=>_0x2bba8f==null?void 0x0:_0x2bba8f(_0x1d45d8['id']):void 0x0,'onFocus':_0x2d2621?()=>_0x2bba8f==null?void 0x0:_0x2bba8f(_0x1d45d8['id']):void 0x0,'children':[_0x2d2621&&_0x1af9b(_0x4d41a2(0x173),{'className':'univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','children':_0x13f579==null?void 0x0:_0x13f579(_0x1d45d8)}),_0x1af9b('div',{'className':_0x4d41a2(0x3a7),'children':_0x50c5b8(_0x1d45d8)})]},_0x1d45d8['id']);})})});}let qr=class extends _0xcf3349{constructor(_0x4454e1){const _0x408967=_0x219009;super(_0x4454e1),Ir(this,_0x408967(0x3ec),null);}[_0x219009(0x1e0)](_0x1fadb8){}};qr=Ar([Y(0x0,_0x346fbc(_0x3b1b72))],qr);function Jr({children:_0x4e8520}){return _0x1af9b(_0x573640,{'children':_0x4e8520});}function Yr(_0x10d645){return _0x1af9b(_0x2b3300,{..._0x10d645});}function Xr(_0x50a8af){return _0x1af9b(_0x95003,{..._0x50a8af});}function Zr(_0x4a784f){return _0x1af9b(_0x5e0b65,{..._0x4a784f});}var Qr;const X={'axis':{..._0x4b7c48,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x2425d6,'heatmap':_0x34d401,'indicatorLine':_0x89d8f0,'legend':_0x4e4d4b,'lineAndArea':_0x305c9e,'pareto':_0x13cc6b,'pie':_0x28f162,'radar':_0x4ad53f,'relation':{..._0x102f37,'useValueAsSymbolSize':!0x0},'series':{..._0x1f143d,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Qr=_0x4f7330['allSeriesStyle'])==null?void 0x0:Qr[_0x219009(0x28a)])??!0x1}},'style':_0x5209eb,'titles':_0x4ced2d,'trendline':_0x38d718,'waterfall':{..._0x4e066c,'useSubtotal':!0x0},'waterfallStyle':_0x3c4e32,'wordCloud':_0x546560},$r=[_0x3e0f4e[_0x219009(0x2df)],_0x3e0f4e[_0x219009(0x479)],_0x3e0f4e[_0x219009(0x186)],_0x3e0f4e[_0x219009(0x41a)],_0x3e0f4e[_0x219009(0x353)],_0x3e0f4e[_0x219009(0x1ef)],_0x3e0f4e[_0x219009(0x19e)],_0x3e0f4e[_0x219009(0x3ee)],_0x3e0f4e[_0x219009(0x34b)],_0x3e0f4e[_0x219009(0x39b)],_0x3e0f4e['Histogram'],_0x3e0f4e[_0x219009(0x39e)],_0x3e0f4e[_0x219009(0x3ac)],_0x3e0f4e['Gauge'],_0x3e0f4e['Chord']];function ei(_0x573193){const _0x1e67b3=_0x219009;let {config:_0x1c3d64,onChange:_0x5d1081,runtime:_0x1aa33e,tableName:_0x2e1820}=_0x573193,_0x212bdd=_0xb3eab7(qr),_0x37c8a8=_0xb3eab7(_0x51de0a),[_0x167622,_0x46f20a]=_0x277721(_0x66773d[_0x1e67b3(0x49b)]),_0x56529e=_0x2a7f67(()=>new _0x1b56a9(_0x1aa33e['model'],{'commit':_0x2e5f62=>{const _0x1c30d8=_0x1e67b3;var _0x58d3fe;let _0x387aca=_0x1aa33e['model'],_0xa01be=_0xaa6a7c(_0x2e5f62,{'series':(_0x58d3fe=_0x387aca[_0x1c30d8(0x2dc)])==null?void 0x0:_0x58d3fe[_0x1c30d8(0x1f6)],'currentChartType':_0x387aca[_0x1c30d8(0x4a7)],'currentStyle':_0x387aca[_0x1c30d8(0x424)],'currentContext':_0x387aca[_0x1c30d8(0x23f)],'currentDataAggregation':_0x387aca[_0x1c30d8(0x474)]});_0x5d1081({'chart':ti(_0x1c3d64['chart'],_0xa01be)});}}),[_0x1c3d64[_0x1e67b3(0x2fc)],_0x5d1081,_0x1aa33e]),_0x2d2fa2=_0x2a7f67(()=>_0x1bca48(_0x777c64[_0x1e67b3(0x43f)](_0x50ebec=>({..._0x50ebec,'label':_0x37c8a8['t'](ai(_0x50ebec['labelId']))}))),[_0x37c8a8]);return _0x1af9b(_0x422ba9,{'chartUIService':_0x212bdd,'hostAdapter':_0x56529e,'children':_0x52e710('div',{'className':_0x1e67b3(0x2a5),'children':[_0x1af9b(_0x531ef4,{'ariaLabel':_0x37c8a8['t'](_0x1e67b3(0x454)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x37c8a8['t'](_0x1e67b3(0x2d9)),'panelId':_0x1e67b3(0x4aa),'value':_0x66773d['Data']},{'label':_0x37c8a8['t']('bases-dashboard-ui.chart.common.customize'),'panelId':'base-pivot-chart-style','value':_0x66773d[_0x1e67b3(0x25b)]}],'value':_0x167622,'onChange':_0x46f20a}),_0x167622===_0x66773d['Data']?_0x1af9b(_0x24a4c3,{'id':_0x1e67b3(0x4aa),'label':_0x37c8a8['t'](_0x1e67b3(0x2d9)),'children':_0x52e710('div',{'className':_0x1e67b3(0x2b4),'children':[_0x1af9b(_0x623fe,{'options':_0x2d2fa2}),_0x1af9b(_0x3d9f3c,{}),_0x1af9b(_0x380243,{}),_0x1af9b(ni,{}),_0x1af9b(_0x23a4c3,{}),_0x52e710(_0x1e67b3(0x173),{'children':[_0x1af9b(_0x1dc825,{'title':_0x37c8a8['t']('bases-dashboard-ui.pivot.dataSource')}),_0x1af9b(_0x4f1ee0,{'disabled':!0x0,'value':_0x2e1820})]}),_0x1af9b(_0x215c50,{'orientationControl':_0x1af9b(_0x2e1096,{'size':_0x1e67b3(0x43e),'onClick':()=>_0x5d1081({'chart':{..._0x1c3d64[_0x1e67b3(0x2fc)],'orient':_0x1c3d64[_0x1e67b3(0x2fc)][_0x1e67b3(0x4b4)]===_0x1e67b3(0x38b)?_0x1e67b3(0x31a):_0x1e67b3(0x38b)}}),'children':_0x37c8a8['t'](_0x1e67b3(0x194))})}),_0x1af9b(_0x1a5bff,{}),_0x1af9b(_0x3e6c73,{'defaultValues':X['waterfall']}),_0x52e710(_0x1e67b3(0x173),{'children':[_0x1af9b(_0x1dc825,{'title':_0x37c8a8['t'](_0x1e67b3(0x1a5))}),_0x1af9b(Yr,{'value':_0x1c3d64[_0x1e67b3(0x343)],'options':[{'value':_0x1e67b3(0x46f),'label':_0x37c8a8['t'](_0x1e67b3(0x1ff))},{'value':_0x1e67b3(0x2fc),'label':_0x37c8a8['t'](_0x1e67b3(0x19a))},{'value':_0x1e67b3(0x328),'label':_0x37c8a8['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x1a66e5=>{const _0x4ba370=_0x1e67b3;(_0x1a66e5===_0x4ba370(0x46f)||_0x1a66e5===_0x4ba370(0x2fc)||_0x1a66e5===_0x4ba370(0x328))&&_0x5d1081({'displayMode':_0x1a66e5});}})]})]})}):_0x1af9b(_0x24a4c3,{'id':'base-pivot-chart-style','label':_0x37c8a8['t'](_0x1e67b3(0x420)),'children':_0x1af9b(ri,{})})]})});}function ti(_0x2495f6,_0x39df4b){const _0x4d5f7d=_0x219009;return{..._0x2495f6,'type':_0x39df4b[_0x4d5f7d(0x4a7)]??_0x2495f6[_0x4d5f7d(0x4b9)],'style':_0x39df4b[_0x4d5f7d(0x424)]??_0x2495f6[_0x4d5f7d(0x424)],'context':_0x39df4b[_0x4d5f7d(0x23f)]??_0x2495f6[_0x4d5f7d(0x23f)],'dataAggregation':_0x39df4b[_0x4d5f7d(0x474)]??_0x2495f6['dataAggregation']};}function ni(){const _0x5b87bf=_0x219009;let _0x40d96d=_0x4062bc();return _0x1af9b(_0x5446d4,{'visible':$r[_0x5b87bf(0x2e4)](_0x501e78=>!_0x29c223['baseOn'](_0x40d96d,_0x501e78))});}function Z(_0x4de196){const _0x4ae2bb=_0x219009;return _0x52e710(_0x17d75d,{'id':_0x4de196['id'],'children':[_0x1af9b(_0x3e8f11,{'children':_0x4de196[_0x4ae2bb(0x1d6)]}),_0x1af9b(_0x58bf4b,{'children':_0x4de196[_0x4ae2bb(0x382)]})]});}function ri(){const _0x503794=_0x219009;let _0x2e0c19=_0xb3eab7(_0x51de0a),_0x27a206=_0x4062bc(),_0x442cd1=_0x312db6(),[_0x1770d3,_0x3853d1]=_0x277721(null),_0xc32bd6=_0x29c223[_0x503794(0x25f)](_0x27a206,_0x3e0f4e[_0x503794(0x3a1)]),_0x526eaf=_0x27a206===_0x3e0f4e[_0x503794(0x479)],_0x138a98=_0x27a206===_0x3e0f4e[_0x503794(0x186)],_0x3f09cf=_0x27a206===_0x3e0f4e[_0x503794(0x353)],_0x3f9fad=_0x29c223['baseOn'](_0x27a206,_0x3e0f4e[_0x503794(0x17d)]),_0x4d4277=_0x27a206===_0x3e0f4e['Relation'],_0x44fc10=_0x27a206===_0x3e0f4e[_0x503794(0x33e)],_0x40d8ab=_0x27a206===_0x3e0f4e[_0x503794(0x253)],_0x2505aa=_0x27a206===_0x3e0f4e[_0x503794(0x3ee)],_0xe6d523=_0x1d3b69(_0x27a206,_0x4f0d5d['GeneralSeries'])&&!_0x3f9fad&&!_0x40d8ab,_0x2632d9=ii(_0x27a206,_0x2e0c19);return _0x52e710(_0x176760,{'value':_0x1770d3,'onChange':_0x3853d1,'children':[_0x1af9b(Z,{'id':_0x4fbb3c['ChartStyle'],'label':_0x2e0c19['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0x1af9b(_0x403f96,{'defaultValues':X['style']})}),_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x17c)],'label':_0x2e0c19['t'](_0x503794(0x1eb)),'children':_0x1af9b(_0x533222,{'commitMode':_0x503794(0x368),'defaultValues':X['titles']})}),_0x1af9b(_0x12c722,{'section':'view'}),_0xe6d523&&_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x272)],'label':_0x2e0c19['t'](_0x503794(0x458)),'children':_0x1af9b(_0x95cd68,{'defaultValues':X['series'],'NumberFormatField':_0x43f297})}),_0x44fc10&&_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x38e)],'label':_0x2e0c19['t'](_0x503794(0x491)),'children':_0x1af9b(_0x189b03,{'defaultValues':X[_0x503794(0x393)],'getDefaultBucketName':({seriesName:_0x5beed2,target:_0x5b076c})=>_0x5b076c===_0x11f14c[_0x503794(0x308)]?_0x2e0c19['t'](_0x503794(0x432)):_0x5beed2?_0x5beed2+'-('+_0x2e0c19['t'](_0x503794(0x275)+(_0x5b076c===_0x11f14c[_0x503794(0x3da)]?_0x503794(0x483):_0x503794(0x335)))+')':'','NumberFormatField':_0x43f297})}),_0x40d8ab&&_0x52e710(_0x1ef66a,{'children':[_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x304)],'label':_0x2e0c19['t']('bases-dashboard-ui.chart.section.paretoBar'),'children':_0x1af9b(_0x6a1abb,{'defaultValues':X['pareto'],'NumberFormatField':_0x43f297,'showDataPointEditor':!0x0,'target':_0x503794(0x2fe)})}),_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x1f3)],'label':_0x2e0c19['t'](_0x503794(0x37f)),'children':_0x1af9b(_0x6a1abb,{'defaultValues':X[_0x503794(0x38f)],'NumberFormatField':_0x43f297,'showDataPointEditor':!0x1,'target':_0x503794(0x428)})})]}),_0xc32bd6&&_0x1af9b(Z,{'id':_0x4fbb3c['PieStyle'],'label':_0x2e0c19['t'](_0x503794(0x4b6)),'children':_0x1af9b(_0x782d62,{'defaultValues':X['pie'],'NumberFormatField':_0x43f297})}),_0x138a98&&_0x1af9b(Z,{'id':_0x4fbb3c['WordCloud'],'label':_0x2e0c19['t'](_0x503794(0x4c7)),'children':_0x1af9b(_0x1d5b30,{'defaultValues':X[_0x503794(0x1c5)]})}),_0x526eaf&&_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x479)],'label':_0x2e0c19['t']('bases-dashboard-ui.chart.section.radar'),'children':_0x1af9b(_0x5b4358,{'defaultValues':X['radar']})}),_0x3f09cf&&_0x1af9b(Z,{'id':_0x4fbb3c['Funnel'],'label':_0x2e0c19['t']('bases-dashboard-ui.chart.section.funnel'),'children':_0x1af9b(_0x1a89aa,{'defaultValues':X[_0x503794(0x3b0)],'gapControl':_0x503794(0x460)})}),_0x2505aa&&_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x3ee)],'label':_0x2e0c19['t'](_0x503794(0x45a)),'children':_0x1af9b(_0x129683,{'defaultValues':X[_0x503794(0x1cd)]})}),_0x4d4277&&_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x1ef)],'label':_0x2e0c19['t']('bases-dashboard-ui.chart.section.relation'),'children':_0x1af9b(_0x30b843,{'defaultValues':X[_0x503794(0x487)]})}),_0x222850(_0x27a206)&&_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x29a)],'label':_0x2e0c19['t'](_0x29c223['baseOn'](_0x27a206,_0x3e0f4e[_0x503794(0x1a2)])?_0x503794(0x395):_0x503794(0x19f)),'children':_0x1af9b(_0x2f03f7,{'defaultValues':X[_0x503794(0x32a)],'lineStyleControl':_0x503794(0x236)})}),_0x1d3b69(_0x27a206,_0x4f0d5d[_0x503794(0x342)])&&_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x342)],'label':_0x2e0c19['t']('bases-dashboard-ui.chart.common.legend'),'children':_0x1af9b(_0x132084,{'defaultValues':X['legend']})}),_0x1d3b69(_0x27a206,_0x4f0d5d[_0x503794(0x462)])&&_0x52e710(_0x1ef66a,{'children':[_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x322)],'label':_0x2e0c19['t']('bases-dashboard-ui.chart.common.horizontalAxis'),'children':_0x1af9b(_0x4f9809,{'axis':'x','defaultValues':X[_0x503794(0x29b)],'NumberFormatField':_0x43f297})}),_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x39f)],'label':_0x2e0c19['t'](_0x503794(0x3bb)),'children':_0x1af9b(_0x4f9809,{'axis':'y','defaultValues':X['axis'],'NumberFormatField':_0x43f297})}),_0x1af9b(_0x12c722,{'section':'depthAxis'}),_0x442cd1&&_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x307)],'label':_0x2e0c19['t'](_0x503794(0x40d)),'children':_0x1af9b(_0x4f9809,{'axis':'rightY','defaultValues':X[_0x503794(0x29b)],'NumberFormatField':_0x43f297})}),_0x1af9b(Z,{'id':_0x4fbb3c['GridlinesAndTicks'],'label':_0x2e0c19['t'](_0x503794(0x3b1)),'children':_0x1af9b(_0x507867,{'defaultValues':X[_0x503794(0x29b)]})})]}),_0x1d3b69(_0x27a206,_0x4f0d5d['IndicatorLine'])&&_0x1af9b(Z,{'id':_0x4fbb3c[_0x503794(0x1cf)],'label':_0x2e0c19['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x1af9b(_0x5207e9,{'defaultValues':X['indicatorLine']})}),_0x479078(_0x27a206)&&_0x1af9b(Z,{'id':_0x4fbb3c['Trendline'],'label':_0x2e0c19['t'](_0x503794(0x309)),'children':_0x1af9b(_0x2c7234,{'defaultValues':X['trendline']})}),_0x2632d9&&_0x1af9b(Z,{'id':_0x2632d9['id'],'label':_0x2632d9[_0x503794(0x1d6)],'children':_0x1af9b(_0x4f919a,{})})]});}function ii(_0x359884,_0x2e36df){const _0xc53a13=_0x219009;let _0x23e217={[_0x3e0f4e[_0xc53a13(0x39b)]]:{'id':_0x4fbb3c['Candlestick'],'localeKey':'bases-dashboard-ui.chart.section.candlestick'},[_0x3e0f4e['Histogram']]:{'id':_0x4fbb3c[_0xc53a13(0x3c0)],'localeKey':_0xc53a13(0x3d1)},[_0x3e0f4e[_0xc53a13(0x39e)]]:{'id':_0x4fbb3c[_0xc53a13(0x39e)],'localeKey':_0xc53a13(0x416)},[_0x3e0f4e[_0xc53a13(0x3ac)]]:{'id':_0x4fbb3c['Sunburst'],'localeKey':_0xc53a13(0x2ca)},[_0x3e0f4e[_0xc53a13(0x246)]]:{'id':_0x4fbb3c['Gauge'],'localeKey':_0xc53a13(0x3c3)},[_0x3e0f4e['Chord']]:{'id':_0x4fbb3c['Chord'],'localeKey':_0xc53a13(0x430)}}[_0x359884];return _0x23e217?{'id':_0x23e217['id'],'label':_0x2e36df['t'](_0x23e217[_0xc53a13(0x37c)])}:null;}function ai(_0xcd6c15){const _0xd844b=_0x219009;return _0xd844b(0x3f5)+_0xcd6c15;}function oi({onChange:_0x3e49e8,onEditData:_0x393147,runtime:_0x163f07,sourceChart:_0x9f3c27,sourceName:_0x22b41d,widget:_0x3b8576}){const _0x3207c3=_0x219009;let _0x56b5ea=_0xb3eab7(qr),_0x271794=_0xb3eab7(_0x51de0a),[_0x5554fe,_0x536f20]=_0x277721(_0x66773d[_0x3207c3(0x49b)]),_0xa5f096=_0x3b8576[_0x3207c3(0x2fc)]??_0x9f3c27,_0x1f72ae=_0x2a7f67(()=>new _0x1b56a9(_0x163f07[_0x3207c3(0x2e7)],{'commit':_0x34e8f7=>{const _0x5e5527=_0x3207c3;var _0x4f84a3;let _0x5f0c33=_0x163f07[_0x5e5527(0x2e7)],_0x5d5229=_0xaa6a7c(_0x34e8f7,{'series':(_0x4f84a3=_0x5f0c33[_0x5e5527(0x2dc)])==null?void 0x0:_0x4f84a3['series'],'currentChartType':_0x5f0c33[_0x5e5527(0x4a7)],'currentStyle':_0x5f0c33['style'],'currentContext':_0x5f0c33['context'],'currentDataAggregation':_0x5f0c33[_0x5e5527(0x474)]});_0x3e49e8({..._0x3b8576,'chart':ti(_0xa5f096,_0x5d5229)})['catch'](()=>void 0x0);}}),[_0xa5f096,_0x3e49e8,_0x163f07,_0x3b8576]),_0x5f1463=_0x2a7f67(()=>_0x1bca48(_0x777c64['map'](_0x369beb=>({..._0x369beb,'label':_0x271794['t'](si(_0x369beb[_0x3207c3(0x318)]))}))),[_0x271794]);return _0x1af9b(_0x44ba09,{'chartUIService':_0x56b5ea,'hostAdapter':_0x1f72ae,'children':_0x52e710(_0x3207c3(0x173),{'data-dashboard-chart-inspector':!0x0,'className':_0x3207c3(0x2e5),'children':[_0x1af9b(_0x531ef4,{'ariaLabel':_0x271794['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x3207c3(0x2d8),'items':[{'label':_0x271794['t'](_0x3207c3(0x2d9)),'panelId':_0x3207c3(0x227),'value':_0x66773d[_0x3207c3(0x49b)]},{'label':_0x271794['t'](_0x3207c3(0x420)),'panelId':_0x3207c3(0x197),'value':_0x66773d[_0x3207c3(0x25b)]}],'value':_0x5554fe,'onChange':_0x536f20}),_0x5554fe===_0x66773d[_0x3207c3(0x49b)]?_0x1af9b(_0x24a4c3,{'id':_0x3207c3(0x227),'label':_0x271794['t'](_0x3207c3(0x2d9)),'children':_0x52e710(_0x3207c3(0x173),{'className':_0x3207c3(0x2b4),'children':[_0x1af9b(_0x623fe,{'options':_0x5f1463}),_0x1af9b(_0x3d9f3c,{}),_0x1af9b(_0x380243,{}),_0x1af9b(ni,{}),_0x1af9b(_0x23a4c3,{}),_0x52e710(_0x3207c3(0x173),{'children':[_0x1af9b(_0x1dc825,{'title':_0x271794['t'](_0x3207c3(0x2f4))}),_0x1af9b(_0x4f1ee0,{'disabled':!0x0,'value':_0x22b41d}),_0x1af9b(_0x2e1096,{'className':_0x3207c3(0x310),'onClick':_0x393147,'children':_0x271794['t'](_0x3207c3(0x172))})]})]})}):_0x1af9b(_0x24a4c3,{'id':_0x3207c3(0x197),'label':_0x271794['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x1af9b(ri,{})})]})});}function si(_0x5a10ac){return'bases-dashboard-ui.chart.chartTypes.'+_0x5a10ac;}const ci=[_0x219009(0x334),_0x219009(0x24f),_0x219009(0x465),_0x219009(0x414),_0x219009(0x264),_0x219009(0x449)];function li({base:_0x57055e,onChange:_0xf80983,onSelectBackgroundImage:_0x1ee2c2,widget:_0x4f69bd}){const _0x296d49=_0x219009;var _0x4ed6f2;let _0x3ebd7c=_0xb3eab7(_0x51de0a),_0xcedfd7=_0xb3eab7(_0x52f5e2),_0x185704=_0x97415f(()=>_0xcedfd7[_0x296d49(0x341)],_0xcedfd7['getCurrentTheme'](),!0x1,[_0xcedfd7]),_0x15a225=_0x97415f(()=>_0xcedfd7[_0x296d49(0x40f)],_0xcedfd7['darkMode'],!0x1,[_0xcedfd7]),[_0x3104ef,_0x196b31]=_0x277721(_0x296d49(0x39a)),[_0x3f1cf5,_0x216d5b]=_0x277721(!0x1),_0x59cb06=Cr(_0x4f69bd),_0x1d912f=_0x57055e[_0x296d49(0x206)]()[_0x296d49(0x44e)][_0x4f69bd['tableId']],_0x359428=_0x1d912f==null?void 0x0:_0x1d912f[_0x296d49(0x3af)][_0x296d49(0x3ae)](_0x48eb2b=>_0x1d912f[_0x296d49(0x2ea)][_0x48eb2b]),_0x517c49=_0x359428?_0x1d912f==null?void 0x0:_0x1d912f[_0x296d49(0x2ea)][_0x359428]:void 0x0,_0x419a2f=_0x1d912f&&_0x517c49?_0x2afc8d(_0x57055e['getSnapshot'](),_0x1d912f,_0x517c49)[_0x296d49(0x43f)](_0x198d0b=>({..._0x198d0b,'current':!0x1})):[],_0x801c35=((_0x4ed6f2=_0x4f69bd[_0x296d49(0x21c)]['formulaBinding'])==null?void 0x0:_0x4ed6f2[_0x296d49(0x1ab)])??'',_0x2808ea=_0xe5929b=>_0xf80983(wr(_0x4f69bd,_0xe5929b))[_0x296d49(0x2c9)](()=>void 0x0),_0x48c82e=_0x35826d=>_0xf80983({..._0x4f69bd,'description':_0x35826d})[_0x296d49(0x2c9)](()=>void 0x0);return _0x52e710(_0x296d49(0x173),{'data-dashboard-formula-inspector':!0x0,'className':_0x296d49(0x2e5),'children':[_0x1af9b(_0x35fc77,{'className':_0x296d49(0x1e9),'items':[{'value':_0x296d49(0x39a),'label':_0x3ebd7c['t'](_0x296d49(0x18c))},{'value':'style','label':_0x3ebd7c['t'](_0x296d49(0x2a6))}],'value':_0x3104ef,'onChange':_0x196b31}),_0x1af9b(_0x296d49(0x173),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0x3104ef===_0x296d49(0x39a)?_0x52e710('div',{'className':_0x296d49(0x2ff),'children':[_0x1af9b(ui,{'label':_0x3ebd7c['t']('bases-dashboard-ui.dashboardInspector.description'),'children':_0x1af9b(_0x4f1ee0,{'value':_0x4f69bd['description']??_0x4f69bd[_0x296d49(0x4a8)]??'','onChange':_0x48c82e,'onBlur':_0x4f6c44=>_0x48c82e(_0x4f6c44['target'][_0x296d49(0x286)])})}),_0x1af9b(ui,{'label':_0x3ebd7c['t'](_0x296d49(0x2f4)),'children':_0x1af9b(_0x4f1ee0,{'disabled':!0x0,'value':(_0x1d912f==null?void 0x0:_0x1d912f['name'])??_0x3ebd7c['t'](_0x296d49(0x37d))})}),_0x52e710(ui,{'label':_0x3ebd7c['t'](_0x296d49(0x2b9)),'children':[_0x1af9b(_0x4f1ee0,{'disabled':!0x0,'value':_0x47b245(_0x801c35,_0x419a2f)}),_0x1af9b(_0x2e1096,{'className':_0x296d49(0x310),'onClick':()=>_0x216d5b(!0x0),'children':_0x3ebd7c['t'](_0x296d49(0x26e))})]})]}):_0x52e710('div',{'className':_0x296d49(0x2ff),'children':[_0x1af9b(_0x3b005c,{'emptyLabel':_0x3ebd7c['t'](_0x296d49(0x435)),'label':_0x3ebd7c['t'](_0x296d49(0x435)),'pickerFallbackValue':_0x15a225?_0x185704[_0x296d49(0x3bc)][0x384]:_0x185704['gray'][0x0],'resetLabel':_0x3ebd7c['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x59cb06[_0x296d49(0x34d)]??null,'onChange':_0x13ef24=>_0x2808ea({'backgroundColor':_0x13ef24??void 0x0})}),_0x52e710(ui,{'label':_0x3ebd7c['t']('bases-dashboard-ui.dashboardInspector.backgroundImage'),'children':[_0x52e710(_0x296d49(0x173),{'className':_0x296d49(0x2b7),'children':[_0x52e710(_0x2e1096,{'className':'univer-flex-1','onClick':()=>{const _0x2da33c=_0x296d49;_0x1ee2c2()[_0x2da33c(0x3ab)](_0x36db28=>{const _0x22ff81=_0x2da33c;if(_0x36db28){var _0x122aed;return _0x2808ea({'backgroundImage':{..._0x36db28,'fit':((_0x122aed=_0x59cb06['backgroundImage'])==null?void 0x0:_0x122aed[_0x22ff81(0x180)])??_0x22ff81(0x3de)}});}})[_0x2da33c(0x2c9)](()=>void 0x0);},'children':[_0x1af9b(_0x5a5e3d,{}),_0x59cb06[_0x296d49(0x3fb)]?_0x3ebd7c['t'](_0x296d49(0x27a)):_0x3ebd7c['t'](_0x296d49(0x44f))]}),_0x59cb06[_0x296d49(0x3fb)]&&_0x1af9b(_0x2e1096,{'aria-label':_0x3ebd7c['t'](_0x296d49(0x2c7)),'title':_0x3ebd7c['t'](_0x296d49(0x2c7)),'onClick':()=>_0x2808ea({'backgroundImage':void 0x0}),'children':_0x1af9b(_0x140734,{})})]}),_0x59cb06[_0x296d49(0x3fb)]&&_0x1af9b(_0x35fc77,{'className':_0x296d49(0x488),'items':[{'value':_0x296d49(0x3de),'label':_0x3ebd7c['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x296d49(0x4b8),'label':_0x3ebd7c['t'](_0x296d49(0x3b4))}],'value':_0x59cb06[_0x296d49(0x3fb)][_0x296d49(0x180)],'onChange':_0x1aa982=>_0x2808ea({'backgroundImage':_0x59cb06[_0x296d49(0x3fb)]?{..._0x59cb06[_0x296d49(0x3fb)],'fit':_0x1aa982}:void 0x0})})]}),_0x1af9b(_0x3b005c,{'emptyLabel':_0x3ebd7c['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x3ebd7c['t'](_0x296d49(0x3dc)),'pickerFallbackValue':_0x15a225?_0x185704[_0x296d49(0x3bc)][0x32]:_0x185704[_0x296d49(0x3bc)][0x3e8],'resetLabel':_0x3ebd7c['t'](_0x296d49(0x477)),'value':_0x59cb06[_0x296d49(0x321)]??null,'onChange':_0xe09a32=>_0x2808ea({'textColor':_0xe09a32??void 0x0})}),_0x1af9b(ui,{'label':_0x3ebd7c['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x1af9b(_0x35fc77,{'items':[{'value':'left','label':_0x3ebd7c['t'](_0x296d49(0x3d8))},{'value':_0x296d49(0x403),'label':_0x3ebd7c['t'](_0x296d49(0x302))},{'value':_0x296d49(0x312),'label':_0x3ebd7c['t'](_0x296d49(0x2fd))}],'value':_0x59cb06[_0x296d49(0x3a9)],'onChange':_0x909017=>_0x2808ea({'alignment':_0x909017})})}),_0x52e710(ui,{'label':_0x3ebd7c['t'](_0x296d49(0x2a7)),'children':[_0x1af9b(_0x35fc77,{'items':[{'value':_0x296d49(0x2a9),'label':_0x3ebd7c['t'](_0x296d49(0x45e))},{'value':_0x296d49(0x492),'label':_0x3ebd7c['t'](_0x296d49(0x326))}],'value':_0x59cb06[_0x296d49(0x4b2)],'onChange':_0x4914de=>_0x2808ea({'fontSizeMode':_0x4914de})}),_0x59cb06[_0x296d49(0x4b2)]===_0x296d49(0x492)&&_0x1af9b(_0x770794,{'className':_0x296d49(0x488),'min':0xc,'max':0x78,'value':_0x59cb06[_0x296d49(0x25d)],'onChange':_0x3726e6=>_0x2808ea({'fontSize':_0x3726e6??0x28,'fontSizeMode':_0x296d49(0x492)})})]}),_0x1af9b(ui,{'label':_0x3ebd7c['t'](_0x296d49(0x2b8)),'children':_0x1af9b(Yr,{'value':_0x59cb06['numberFormat'],'options':[{'value':_0x296d49(0x334),'label':_0x3ebd7c['t'](_0x296d49(0x292))},{'value':_0x296d49(0x24f),'label':_0x3ebd7c['t']('bases-dashboard-ui.dashboardInspector.number')},{'value':_0x296d49(0x465),'label':_0x3ebd7c['t'](_0x296d49(0x2fa))},{'value':_0x296d49(0x414),'label':_0x3ebd7c['t']('bases-dashboard-ui.dashboardInspector.currency')},{'value':_0x296d49(0x264),'label':_0x3ebd7c['t'](_0x296d49(0x365))},{'value':'compact','label':_0x3ebd7c['t'](_0x296d49(0x19b))}],'onChange':_0x11f342=>{const _0x734c0e=_0x296d49;let _0x1f5e03=ci[_0x734c0e(0x3ae)](_0x4dca3f=>_0x4dca3f===_0x11f342);_0x1f5e03&&_0x2808ea({'numberFormat':_0x1f5e03});}})}),_0x59cb06['numberFormat']===_0x296d49(0x414)&&_0x1af9b(ui,{'label':_0x3ebd7c['t'](_0x296d49(0x2b1)),'children':_0x1af9b(_0x4f1ee0,{'value':_0x59cb06[_0x296d49(0x414)],'onChange':_0x333f55=>_0x2808ea({'currency':_0x333f55[_0x296d49(0x45d)](0x0,0x3)[_0x296d49(0x459)]()})})}),_0x59cb06['numberFormat']!==_0x296d49(0x334)&&_0x1af9b(ui,{'label':_0x3ebd7c['t'](_0x296d49(0x43b)),'children':_0x1af9b(_0x770794,{'min':0x0,'max':0x8,'value':_0x59cb06[_0x296d49(0x497)],'onChange':_0x22b773=>_0x2808ea({'decimalPlaces':_0x22b773??0x0})})})]})}),_0x3f1cf5&&_0x1af9b(Zr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1af9b(_0x3edb60,{'tables':_0x419a2f,'formula':_0x47b245(_0x801c35,_0x419a2f),'onCancel':()=>_0x216d5b(!0x1),'onSave':_0x122db7=>{const _0x31d6c7=_0x296d49;let _0x5d0342=_0x4f69bd['shapeData'][_0x31d6c7(0x21e)]??{'formula':''};return _0xf80983({..._0x4f69bd,'shapeData':{..._0x4f69bd[_0x31d6c7(0x21c)],'formulaBinding':{..._0x5d0342,'formula':_0x47ab15(_0x122db7,_0x419a2f)}}})[_0x31d6c7(0x3ab)](()=>_0x216d5b(!0x1))[_0x31d6c7(0x2c9)](()=>void 0x0);}})})]});}function ui({children:_0x541e28,label:_0x5bfddc}){const _0x377523=_0x219009;return _0x52e710(_0x377523(0x173),{'role':'group','aria-label':_0x5bfddc,'className':_0x377523(0x359),'children':[_0x1af9b(_0x377523(0x46c),{'children':_0x5bfddc}),_0x541e28]});}function di({disabled:_0x1de8c4,fields:_0x27bffb,filter:_0x52b4ce,onChange:_0x44b887}){const _0xea4ab6=_0x219009;let _0x36504d=_0xb3eab7(_0x2fc378)[_0xea4ab6(0x377)]??null,[_0x2c83d3,_0x559dcc]=_0x277721(null),_0xce5f8d=_0xb3eab7(_0x51de0a),_0x415a2a=(_0x52b4ce==null?void 0x0:_0x52b4ce[_0xea4ab6(0x33c)])??[];if(!_0x415a2a[_0xea4ab6(0x348)])return _0x52e710(_0xea4ab6(0x173),{'className':'univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','children':[_0x1af9b(_0x50dfce,{'className':_0xea4ab6(0x44a)}),_0x1af9b(_0xea4ab6(0x46c),{'className':_0xea4ab6(0x494),'children':_0xce5f8d['t'](_0xea4ab6(0x1fb))})]});let _0x489f92=_0x2c83d3==null?void 0x0:_0x415a2a[_0x2c83d3],_0x1e41b4=_0x27bffb[_0xea4ab6(0x3ae)](_0x4bfbfe=>_0x4bfbfe['id']===(_0x489f92==null?void 0x0:_0x489f92['fieldId']));return _0x52e710(_0xea4ab6(0x173),{'className':'univer-grid\x20univer-gap-2\x20univer-p-3','children':[_0x415a2a['map']((_0x1f438d,_0x2c588e)=>{const _0x59fd55=_0xea4ab6;var _0x3c4a00;return _0x52e710(_0x2e1096,{'disabled':_0x1de8c4,'onClick':()=>_0x559dcc(_0x2c588e),'children':[_0x1af9b(_0x59fd55(0x46c),{'children':((_0x3c4a00=_0x27bffb[_0x59fd55(0x3ae)](_0x1e57ff=>_0x1e57ff['id']===_0x1f438d['fieldId']))==null?void 0x0:_0x3c4a00[_0x59fd55(0x3aa)])??_0x1f438d[_0x59fd55(0x1cb)]}),_0x1af9b(_0x59fd55(0x46c),{'className':'univer-truncate','children':String(_0x1f438d[_0x59fd55(0x215)]??'')})]},_0x1f438d['fieldId']+'-'+_0x2c588e);}),_0x1e41b4&&_0x489f92&&_0x2c83d3!=null&&_0x36504d&&_0x511ab4(_0x1af9b(_0x2b139d,{'field':_0x1e41b4,'value':_0x489f92[_0xea4ab6(0x215)],'onClose':()=>_0x559dcc(null),'onSave':_0x68152c=>{const _0x3be6d5=_0xea4ab6;_0x44b887({'conjunction':(_0x52b4ce==null?void 0x0:_0x52b4ce[_0x3be6d5(0x41c)])??_0x47b446[_0x3be6d5(0x21a)],'conditions':_0x415a2a[_0x3be6d5(0x43f)]((_0x3927ba,_0x3d891e)=>_0x3d891e===_0x2c83d3?{..._0x3927ba,'operand':_0x68152c}:_0x3927ba)}),_0x559dcc(null);}}),_0x36504d)]});}function fi({fields:_0x14de0c,filter:_0x26096c,onChange:_0x174e00,onClear:_0x26e39b}){const _0x494273=_0x219009;let _0x5e7ab2=_0xb3eab7(_0x51de0a);return _0x52e710(_0x494273(0x173),{'children':[_0x1af9b(_0x5ea8f9,{'fields':_0x14de0c,'value':_0x26096c??{'conjunction':_0x47b446[_0x494273(0x21a)],'conditions':[]},'onChange':_0x174e00}),_0x1af9b(_0x2e1096,{'onClick':_0x26e39b,'children':_0x5e7ab2['t'](_0x494273(0x477))})]});}function pi({base:_0x469b1c,chartRuntime:_0x1235d7,onChange:_0x2d1cfd,onClose:_0x2a2319,onSelectBackgroundImage:_0x5d9d01,onSelectImage:_0x55e6b9,unitId:_0x3a3c36,widget:_0x1f959a}){const _0x53a02e=_0x219009;let _0x544b4e=_0xb3eab7(_0x4a773c),_0x349926=_0xb3eab7(_0x51de0a),_0x3de438=_0x469b1c[_0x53a02e(0x206)](),_0x307e0c=_0x53a02e(0x35c)in _0x1f959a?_0x3de438['tables'][_0x1f959a[_0x53a02e(0x35c)]]:void 0x0,_0x1bb7d2=_0x1f959a['type']===_0xf5049a['PivotChart']?_0x307e0c==null?void 0x0:_0x307e0c['views'][_0x1f959a[_0x53a02e(0x4c1)]]:void 0x0,_0x340664=_0x349926['t'](bi(_0x1f959a)),_0x424ba8=_0x52e710('aside',{'data-dashboard-inspector':!0x0,'className':'univer-flex\x20univer-h-full\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x1f959a[_0x53a02e(0x4b9)]===_0xf5049a[_0x53a02e(0x1a1)]&&(yi(_0x1bb7d2)&&_0x1235d7?_0x1af9b(oi,{'runtime':_0x1235d7,'sourceChart':_0x1bb7d2['config'][_0x53a02e(0x2fc)],'sourceName':((_0x307e0c==null?void 0x0:_0x307e0c[_0x53a02e(0x3aa)])??'')+_0x53a02e(0x2c6)+_0x1bb7d2[_0x53a02e(0x3aa)],'widget':_0x1f959a,'onChange':_0x2d1cfd,'onEditData':()=>{const _0x2f6c11=_0x53a02e;_0x544b4e[_0x2f6c11(0x43d)](_0x1939e2['id'],{'unitId':_0x3a3c36,'tableId':_0x1f959a['tableId'],'viewId':_0x1f959a[_0x2f6c11(0x4c1)]})['catch'](()=>void 0x0);}}):_0x1af9b(_i,{'message':yi(_0x1bb7d2)?_0x349926['t'](_0x53a02e(0x376)):_0x349926['t'](_0x53a02e(0x37d))})),_0x1f959a[_0x53a02e(0x4b9)]===_0xf5049a['FormulaShape']&&_0x1af9b(li,{'base':_0x469b1c,'widget':_0x1f959a,'onChange':_0x2d1cfd,'onSelectBackgroundImage':_0x5d9d01}),_0x1f959a['type']===_0xf5049a[_0x53a02e(0x44b)]&&_0x1af9b(hi,{'base':_0x469b1c,'onChange':_0x2d1cfd,'widget':_0x1f959a}),_0x1f959a[_0x53a02e(0x4b9)]===_0xf5049a[_0x53a02e(0x42d)]&&_0x1af9b(gi,{'onChange':_0x2d1cfd,'widget':_0x1f959a}),_0x1f959a['type']===_0xf5049a['Image']&&_0x1af9b(mi,{'onChange':_0x2d1cfd,'onSelectImage':_0x55e6b9,'widget':_0x1f959a})]});return _0x1af9b(_0x5cf81f,{'title':_0x340664,'onClose':_0x2a2319,'children':_0x424ba8});}function mi({onChange:_0x2da842,onSelectImage:_0x56b876,widget:_0x35f520}){const _0x4ecd5d=_0x219009;let _0x43d348=_0xb3eab7(_0x51de0a);return _0x52e710('div',{'className':_0x4ecd5d(0x2f8),'children':[_0x52e710(_0x2e1096,{'className':'univer-w-full','onClick':()=>_0x56b876()[_0x4ecd5d(0x3ab)](_0x3fb1f4=>_0x3fb1f4&&_0x2da842({..._0x35f520,'source':_0x3fb1f4['source'],'sourceType':_0x3fb1f4['sourceType'],'alt':_0x3fb1f4['name']}))[_0x4ecd5d(0x2c9)](()=>void 0x0),'children':[_0x1af9b(_0x5a5e3d,{}),_0x43d348['t'](_0x4ecd5d(0x27a))]}),_0x52e710('label',{'className':_0x4ecd5d(0x359),'children':[_0x1af9b('span',{'children':_0x43d348['t'](_0x4ecd5d(0x3ef))}),_0x1af9b(_0x35fc77,{'items':[{'value':_0x4ecd5d(0x3de),'label':_0x43d348['t'](_0x4ecd5d(0x480))},{'value':_0x4ecd5d(0x3b5),'label':_0x43d348['t']('bases-dashboard-ui.dashboardInspector.repeat')},{'value':_0x4ecd5d(0x4af),'label':_0x43d348['t'](_0x4ecd5d(0x350))}],'value':_0x35f520[_0x4ecd5d(0x343)]??_0x4ecd5d(0x3de),'onChange':_0x4cb6e4=>_0x2da842({..._0x35f520,'displayMode':_0x4cb6e4})['catch'](()=>void 0x0)})]})]});}function hi({base:_0x3d7db5,onChange:_0x348e22,widget:_0x3c60b7}){const _0x1c9d63=_0x219009;let _0x250684=_0x3d7db5[_0x1c9d63(0x206)]()['tables'][_0x3c60b7[_0x1c9d63(0x35c)]],_0x2cdb86=_0x250684==null?void 0x0:_0x250684[_0x1c9d63(0x3af)]['find'](_0x728d8b=>_0x250684[_0x1c9d63(0x2ea)][_0x728d8b]),_0x40c06a=_0x2cdb86?_0x250684==null?void 0x0:_0x250684[_0x1c9d63(0x2ea)][_0x2cdb86]:void 0x0,_0x4ded83=_0x250684&&_0x40c06a?_0xfb2dac(_0x250684,_0x40c06a):[];return _0x1af9b(fi,{'fields':_0x4ded83,'filter':_0x3c60b7[_0x1c9d63(0x498)],'onChange':_0x1775ca=>_0x348e22({..._0x3c60b7,'filter':_0x1775ca})[_0x1c9d63(0x2c9)](()=>void 0x0),'onClear':()=>_0x348e22({..._0x3c60b7,'filter':null})[_0x1c9d63(0x2c9)](()=>void 0x0)});}function gi({onChange:_0x2d6366,widget:_0x34c65d}){const _0x569597=_0x219009;let _0x908150=_0xb3eab7(_0x51de0a),_0x366fda=_0xb3eab7(_0x52f5e2),_0x51d3a4=_0x97415f(()=>_0x366fda[_0x569597(0x341)],_0x366fda[_0x569597(0x2ed)](),!0x1,[_0x366fda]),_0x57c2ad=Hr(_0x34c65d),_0x56f314=_0x1b939a=>_0x2d6366({..._0x34c65d,'appearance':{..._0x57c2ad,..._0x1b939a}})[_0x569597(0x2c9)](()=>void 0x0);return _0x52e710(_0x569597(0x173),{'className':_0x569597(0x3f2),'children':[_0x1af9b(_0x439fc9,{'className':_0x569597(0x2f5),'defaultValue':Ur(_0x34c65d[_0x569597(0x295)]),'rows':0x8,'onBlur':_0x379996=>_0x2d6366({..._0x34c65d,'document':Wr(_0x34c65d[_0x569597(0x295)],_0x379996[_0x569597(0x40c)][_0x569597(0x286)])})[_0x569597(0x2c9)](()=>void 0x0)}),_0x1af9b(_0x3b005c,{'emptyLabel':_0x908150['t'](_0x569597(0x435)),'label':_0x908150['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x51d3a4[_0x569597(0x3bc)][0x0],'resetLabel':_0x908150['t'](_0x569597(0x477)),'value':_0x57c2ad['backgroundColor']??null,'onChange':_0x377524=>_0x56f314({'backgroundColor':_0x377524??void 0x0})}),_0x1af9b(_0x3b005c,{'emptyLabel':_0x908150['t'](_0x569597(0x3dc)),'label':_0x908150['t'](_0x569597(0x3dc)),'pickerFallbackValue':_0x51d3a4[_0x569597(0x3bc)][0x3e8],'resetLabel':_0x908150['t'](_0x569597(0x477)),'value':_0x57c2ad[_0x569597(0x321)]??null,'onChange':_0x1581fd=>_0x56f314({'textColor':_0x1581fd??void 0x0})}),_0x1af9b(vi,{'label':_0x908150['t'](_0x569597(0x278)),'children':_0x1af9b(_0x35fc77,{'items':[{'value':_0x569597(0x357),'label':_0x908150['t'](_0x569597(0x3d8))},{'value':_0x569597(0x403),'label':_0x908150['t'](_0x569597(0x302))},{'value':'right','label':_0x908150['t'](_0x569597(0x2fd))}],'value':_0x57c2ad[_0x569597(0x3a9)],'onChange':_0x1744ff=>_0x56f314({'alignment':_0x1744ff})})}),_0x52e710(vi,{'label':_0x908150['t'](_0x569597(0x2a7)),'children':[_0x1af9b(_0x35fc77,{'items':[{'value':_0x569597(0x2a9),'label':_0x908150['t'](_0x569597(0x45e))},{'value':_0x569597(0x492),'label':_0x908150['t'](_0x569597(0x326))}],'value':_0x57c2ad[_0x569597(0x4b2)],'onChange':_0x273955=>_0x56f314({'fontSizeMode':_0x273955})}),_0x57c2ad['fontSizeMode']==='custom'&&_0x1af9b(_0x770794,{'className':_0x569597(0x488),'min':0xa,'max':0x78,'value':_0x57c2ad['fontSize'],'onChange':_0x1dafb7=>_0x56f314({'fontSize':_0x1dafb7??0x12,'fontSizeMode':_0x569597(0x492)})})]})]});}function _i({message:_0x268dd9}){const _0x13141e=_0x219009;return _0x1af9b(_0x13141e(0x173),{'className':_0x13141e(0x23b),'children':_0x268dd9});}function vi({children:_0x33645b,label:_0x22df28}){const _0x27a325=_0x219009;return _0x52e710('div',{'role':_0x27a325(0x1a0),'aria-':!0x0,'className':_0x27a325(0x359),'children':[_0x1af9b(_0x27a325(0x46c),{'children':_0x22df28}),_0x33645b]});}function yi(_0xfec106){const _0x1feb1d=_0x219009;return(_0xfec106==null?void 0x0:_0xfec106[_0x1feb1d(0x4b9)])===_0x4ec201['Pivot']&&typeof _0xfec106[_0x1feb1d(0x2dc)]=='object'&&_0xfec106['config']!==null&&_0x1feb1d(0x3b3)in _0xfec106[_0x1feb1d(0x2dc)]&&'chart'in _0xfec106[_0x1feb1d(0x2dc)];}function bi(_0x5ac0d9){const _0x165606=_0x219009;switch(_0x5ac0d9['type']){case _0xf5049a[_0x165606(0x1a1)]:return _0x165606(0x35b);case _0xf5049a[_0x165606(0x44b)]:return'bases-dashboard-ui.dashboard.tableFilter';case _0xf5049a[_0x165606(0x42d)]:return _0x165606(0x299);case _0xf5049a[_0x165606(0x20c)]:return'bases-dashboard-ui.dashboard.image';case _0xf5049a['FormulaShape']:return'bases-dashboard-ui.dashboard.formulaShape';}}function xi({onDelete:_0x4a4805,onEdit:_0x560a63,onMoveUp:_0xaa24b2,onMoveDown:_0x41ef8b}){const _0x13dd55=_0x219009;let [_0x3b68bf,_0x17cd18]=_0x277721(!0x1),_0x25369e=_0xb3eab7(_0x51de0a),_0x421e40=_0x25369e['t'](_0x13dd55(0x2e1)),_0x576879=_0x25369e['t'](_0x13dd55(0x354)),_0x590697=_0x25369e['t'](_0x13dd55(0x2b5)),_0x2d5284=[{'type':_0x13dd55(0x1f9),'children':_0x52e710('span',{'className':_0x13dd55(0x4d0),'children':[_0x1af9b(_0x579511,{'className':_0x13dd55(0x2ba),'aria-hidden':_0x13dd55(0x1be)}),_0x1af9b(_0x13dd55(0x46c),{'children':_0x421e40})]}),'onSelect':_0x560a63},..._0xaa24b2?[{'type':_0x13dd55(0x1f9),'children':_0x52e710('span',{'className':_0x13dd55(0x4d0),'children':[_0x1af9b(_0x5cdc9f,{'className':_0x13dd55(0x2ba),'aria-hidden':_0x13dd55(0x1be)}),_0x1af9b('span',{'children':_0x25369e['t'](_0x13dd55(0x4ce))})]}),'onSelect':_0xaa24b2}]:[],..._0x41ef8b?[{'type':_0x13dd55(0x1f9),'children':_0x52e710(_0x13dd55(0x46c),{'className':_0x13dd55(0x4d0),'children':[_0x1af9b(_0x23dcce,{'className':'univer-size-4','aria-hidden':'true'}),_0x1af9b(_0x13dd55(0x46c),{'children':_0x25369e['t']('bases-dashboard-ui.mobile.moveDown')})]}),'onSelect':_0x41ef8b}]:[],{'type':_0x13dd55(0x31b)},{'type':_0x13dd55(0x1f9),'variant':'destructive','children':_0x52e710(_0x13dd55(0x46c),{'className':_0x13dd55(0x4d0),'children':[_0x1af9b(_0x140734,{'className':_0x13dd55(0x2ba),'aria-hidden':_0x13dd55(0x1be)}),_0x1af9b(_0x13dd55(0x46c),{'children':_0x576879})]}),'onSelect':_0x4a4805}];return _0x1af9b(_0x2049bb,{'open':_0x3b68bf,'onOpenChange':_0x17cd18,'align':_0x13dd55(0x1d5),'sideOffset':0x4,'items':_0x2d5284['map'](_0x3c6210=>({..._0x3c6210,'className':_0x3c6210[_0x13dd55(0x4b9)]===_0x13dd55(0x1f9)?_0x13dd55(0x25c):void 0x0})),'children':_0x1af9b(_0x2e1096,{'type':_0x13dd55(0x1c2),'size':_0x13dd55(0x43e),'variant':'text','onPointerDown':_0x375c62=>_0x375c62[_0x13dd55(0x33b)](),'onClick':()=>_0x17cd18(_0x372168=>!_0x372168),'title':_0x590697,'aria-label':_0x590697,'className':'univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','children':_0x1af9b(_0x2ae422,{'className':_0x13dd55(0x2ba),'aria-hidden':_0x13dd55(0x1be)})})});}function Si({dashboardId:_0x49ea6c,presentation:_0x139e0e=!0x1,unitId:_0x223a80}){const _0x82cc0a=_0x219009;let _0xfb8510=_0xb3eab7(_0x9ca0eb),_0x100882=_0xb3eab7(_0x19d4a8);_0x97415f(_0x100882[_0x82cc0a(0x3f9)],0x0);let _0x40cdda=_0xb3eab7(_0x4a773c),_0x1c4f1c=_0xb3eab7(_0x2b6ea6),_0x2cbfa3=_0xb3eab7(_0xc6de23),_0x5d3d98=_0xb3eab7(_0x144775),_0x36312b=_0xb3eab7(_0x51de0a),_0x5bf784=_0xb3eab7(_0x24d6a6),_0xca4f57=_0xb3eab7(_0x3b1640),[_0x45c65b,_0x4ae475]=_0x277721(!0x1),[_0x1a2815,_0x279ee2]=_0x277721(),[_0x4fc744,_0x489d1b]=_0x277721(!0x1),[_0x2c7425,_0x3a071d]=_0x277721(()=>new Map()),_0x495d86=_0x547d95((_0x35f19,_0x5c90f4)=>{_0x3a071d(_0x3a633e=>{const _0x3396b9=_0x4abf;let _0x277f52=new Map(_0x3a633e);return _0x5c90f4?_0x277f52[_0x3396b9(0x217)](_0x35f19,_0x5c90f4):_0x277f52[_0x3396b9(0x280)](_0x35f19),_0x277f52;});},[]),_0x2f5d34=_0x97415f(()=>_0x5bf784[_0x82cc0a(0x3a3)][_0x82cc0a(0x20d)](_0x3dd263(()=>_0x5bf784[_0x82cc0a(0x4ca)](_0x223a80,_0x49ea6c))),_0x5bf784[_0x82cc0a(0x4ca)](_0x223a80,_0x49ea6c),!0x1,[_0x49ea6c,_0x5bf784,_0x223a80]),_0xd49eb4=_0x5d3d98[_0x82cc0a(0x225)](_0x223a80,_0x160ed0[_0x82cc0a(0x1b7)]),_0x27a7de=_0x97415f(()=>_0xca4f57[_0x82cc0a(0x330)],{'undos':0x0,'redos':0x0},!0x1,[_0xca4f57]),_0x3c1a9f=vr(_0x223a80,_0x49ea6c);if(_0x2153d6(()=>{const _0x5aa261=_0x82cc0a;_0x5d3d98[_0x5aa261(0x3e2)](_0x223a80),_0x5d3d98[_0x5aa261(0x1d4)](_0x223a80);},[_0x5d3d98,_0x223a80]),!_0x2f5d34||!_0xd49eb4)return null;let _0x4def40={'unitId':_0x223a80,'objectId':_0x5d041f(_0x49ea6c),'objectType':_0x2e13ef['BaseDashboard']},_0x37fc11=(_0xf9baf5,_0x166a87)=>{const _0x3d818b=_0x82cc0a;let _0x2b32df=[..._0x2f5d34[_0x3d818b(0x4c5)]],_0x5001e5=_0x2b32df['indexOf'](_0xf9baf5),_0x189074=_0x5001e5+_0x166a87;if(!(_0x5001e5<0x0||_0x189074<0x0||_0x189074>=_0x2b32df[_0x3d818b(0x348)]))return[_0x2b32df[_0x5001e5],_0x2b32df[_0x189074]]=[_0x2b32df[_0x189074],_0x2b32df[_0x5001e5]],_0x40cdda[_0x3d818b(0x43d)](_0x570003['id'],{'unitId':_0x223a80,'dashboard':{..._0x2f5d34,'widgetOrder':_0x2b32df}});},_0x419504=_0x50a024=>_0x40cdda[_0x82cc0a(0x43d)](_0x53172b['id'],{'unitId':_0x223a80,'dashboardId':_0x49ea6c,'widget':_0x50a024})[_0x82cc0a(0x2c9)](()=>void 0x0),_0x44b967=(_0x3da85d,_0x496192,_0xaf236e)=>{const _0x1f6966=_0x82cc0a;let _0x4891d0=Math['max'](0x0,..._0x2f5d34[_0x1f6966(0x4c5)][_0x1f6966(0x1ae)](_0x50e7de=>{const _0x5be4a1=_0x1f6966;var _0x313d61;let _0x4943ad=(_0x313d61=_0x2f5d34[_0x5be4a1(0x4a2)][_0x50e7de])==null?void 0x0:_0x313d61[_0x5be4a1(0x16e)];return _0x4943ad?[_0x4943ad[_0x5be4a1(0x38b)]+_0x4943ad['rowSpan']]:[];})),_0x19469c='dashboard-widget-'+_0x3dac7b(0x8),_0x332b50={'column':0x0,'row':_0x4891d0,'columnSpan':_0x496192,'rowSpan':_0xaf236e};switch(_0x3da85d[_0x1f6966(0x4b9)]){case _0xf5049a['PivotChart']:return _0x419504({..._0x3da85d,'id':_0x19469c,'layout':_0x332b50});case _0xf5049a[_0x1f6966(0x44b)]:return _0x419504({..._0x3da85d,'id':_0x19469c,'layout':_0x332b50});case _0xf5049a['Text']:return _0x419504({..._0x3da85d,'id':_0x19469c,'layout':_0x332b50});case _0xf5049a[_0x1f6966(0x20c)]:return _0x419504({..._0x3da85d,'id':_0x19469c,'layout':_0x332b50});case _0xf5049a['FormulaShape']:return _0x419504({..._0x3da85d,'id':_0x19469c,'layout':_0x332b50});}},_0x2eaf52=_0xd49eb4['getSnapshot'](),_0x53e298=_0x2eaf52[_0x82cc0a(0x2aa)][_0x82cc0a(0x1ae)](_0x4a2451=>{const _0x10462a=_0x82cc0a;let _0x58c3fe=_0x2eaf52[_0x10462a(0x44e)][_0x4a2451];if(!_0x58c3fe)return[];let _0x10f462=_0x58c3fe[_0x10462a(0x3af)][_0x10462a(0x1ae)](_0x3545f7=>{const _0x3bfa3e=_0x10462a;let _0x2bee2b=_0x58c3fe[_0x3bfa3e(0x2ea)][_0x3545f7];return Ai(_0x2bee2b)?[{'type':_0x3bfa3e(0x1f9),'children':_0x2bee2b[_0x3bfa3e(0x3aa)],'onSelect':()=>_0x44b967({'type':_0xf5049a[_0x3bfa3e(0x1a1)],'tableId':_0x4a2451,'pivotViewId':_0x3545f7,'chart':{..._0x2bee2b[_0x3bfa3e(0x2dc)]['chart']}},0x6,0xa)}]:[];});return[{'type':_0x10462a(0x390),'children':_0x58c3fe[_0x10462a(0x3aa)],'options':[..._0x10f462,..._0x10f462['length']?[{'type':_0x10462a(0x31b)}]:[],{'type':'item','children':_0x36312b['t'](_0x10462a(0x1fb)),'onSelect':()=>_0x44b967({'type':_0xf5049a[_0x10462a(0x44b)],'tableId':_0x4a2451,'filter':null},0x6,0x8)}]}];}),_0x6809fd=[..._0x53e298,..._0x53e298[_0x82cc0a(0x348)]?[{'type':_0x82cc0a(0x31b)}]:[],{'type':_0x82cc0a(0x1f9),'children':_0x36312b['t'](_0x82cc0a(0x299)),'onSelect':()=>_0x44b967({'type':_0xf5049a[_0x82cc0a(0x42d)],'document':Ei()},0x4,0x6)},{'type':_0x82cc0a(0x1f9),'children':_0x36312b['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>Di(_0x1c4f1c)[_0x82cc0a(0x3ab)](_0x29baaa=>_0x29baaa&&_0x44b967({'type':_0xf5049a['Image'],'source':_0x29baaa['source'],'sourceType':_0x29baaa[_0x82cc0a(0x33f)],'alt':_0x29baaa['name'],'displayMode':_0x82cc0a(0x3de)},0x4,0x6))},{'type':_0x82cc0a(0x1f9),'children':_0x36312b['t']('bases-dashboard-ui.dashboard.formulaShape'),'onSelect':()=>{const _0x4fa25c=_0x82cc0a;let _0xb673e2=_0x2eaf52[_0x4fa25c(0x2aa)]['find'](_0x276ff2=>_0x2eaf52[_0x4fa25c(0x44e)][_0x276ff2]);_0xb673e2&&_0x44b967({'type':_0xf5049a[_0x4fa25c(0x219)],'tableId':_0xb673e2,'shapeType':_0x5039fb[_0x4fa25c(0x313)],'shapeData':_0x4027ac(),'description':_0x36312b['t'](_0x4fa25c(0x35d))},0x4,0x6);}}],_0x25c267=_0x1a2815?_0x2f5d34[_0x82cc0a(0x4a2)][_0x1a2815]:void 0x0,_0x3ddb4d=()=>_0x489d1b(_0x269ade=>!_0x269ade),_0x55a2e3=_0x139e0e||_0x4fc744,_0x31b2d9=_0x3c1a9f&&!_0x55a2e3;return _0x1af9b(Jr,{'children':_0x52e710(_0x82cc0a(0x173),{'className':_0x82cc0a(0x254)+(_0x4fc744?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':_0x82cc0a(0x3a2))+_0x82cc0a(0x3e1),'children':[_0x4fc744&&_0x1af9b(_0x2e1096,{'onClick':()=>_0x489d1b(!0x1),'children':_0x36312b['t']('bases-dashboard-ui.dashboardInspector.close')}),!_0x55a2e3&&_0x52e710('header',{'className':_0x82cc0a(0x296),'children':[_0x1af9b(_0x4c651f,{'className':'univer-size-5\x20univer-text-primary-600'}),_0x1af9b('h2',{'className':_0x82cc0a(0x3d3),'children':_0x2f5d34[_0x82cc0a(0x3aa)]}),_0x100882[_0x82cc0a(0x238)](_0x4def40)&&_0x1af9b(_0x2e1096,{'variant':_0x82cc0a(0x209),'disabled':!_0x100882['canView'](_0x4def40),'aria-label':_0x36312b['t'](_0x82cc0a(0x421)),'onClick':()=>{const _0x42ca33=_0x82cc0a;_0x4b14fb(_0xfb8510,{'target':_0x4def40,'name':_0x2f5d34[_0x42ca33(0x3aa)],'commandId':_0x54bb96['id'],'exists':()=>!!_0x5bf784[_0x42ca33(0x4ca)](_0x223a80,_0x49ea6c)});},'children':_0x1af9b(_0x56d64d,{})}),_0x1af9b(_0x782d5,{'unitId':_0x223a80}),_0x1af9b(_0x2e1096,{'type':_0x82cc0a(0x1c2),'size':_0x82cc0a(0x43e),'variant':_0x82cc0a(0x209),'aria-label':_0x36312b['t'](_0x82cc0a(0x273)),'disabled':!_0x3c1a9f||_0x27a7de[_0x82cc0a(0x2e9)]===0x0,'onClick':()=>_0x40cdda[_0x82cc0a(0x43d)](_0x3d9772['id'])[_0x82cc0a(0x2c9)](()=>void 0x0),'children':_0x1af9b(_0x44b3b1,{})}),_0x1af9b(_0x2e1096,{'type':_0x82cc0a(0x1c2),'size':'small','variant':_0x82cc0a(0x209),'aria-label':_0x36312b['t'](_0x82cc0a(0x182)),'disabled':!_0x3c1a9f||_0x27a7de[_0x82cc0a(0x1f4)]===0x0,'onClick':()=>_0x40cdda[_0x82cc0a(0x43d)](_0x372344['id'])[_0x82cc0a(0x2c9)](()=>void 0x0),'children':_0x1af9b(_0x21d4d7,{})}),_0x1af9b(_0x2e1096,{'type':_0x82cc0a(0x1c2),'size':_0x82cc0a(0x43e),'variant':'text','aria-label':_0x36312b['t']('bases-dashboard-ui.dashboard.fullScreen'),'onClick':_0x3ddb4d,'children':_0x1af9b(_0x19f77a,{})}),_0x1af9b(Xr,{'items':_0x6809fd,'children':_0x52e710(_0x2e1096,{'variant':_0x82cc0a(0x2f7),'disabled':!_0x3c1a9f,'children':[_0x1af9b(_0x5a5e3d,{}),_0x36312b['t']('bases-dashboard-ui.dashboard.addWidget')]})})]}),_0x52e710('div',{'className':_0x82cc0a(0x3db),'children':[_0x1af9b(_0x82cc0a(0x173),{'className':_0x82cc0a(0x22a),'children':_0x1af9b(Kr,{'dashboard':_0x2f5d34,'editable':_0x31b2d9,'widgetLabel':_0x198b74=>_0x36312b['t'](ki(_0x198b74['type'])),'selectedWidgetId':_0x31b2d9?_0x1a2815:void 0x0,'onSelectWidget':_0x31b2d9?_0x4199b5=>{_0x279ee2(_0x4199b5),_0x4199b5||_0x4ae475(!0x1);}:void 0x0,'renderWidget':_0x3e13f3=>_0x1af9b(Ci,{'base':_0xd49eb4,'dashboard':_0x2f5d34,'unitId':_0x223a80,'widget':_0x3e13f3,'onChange':_0x419504,'onChartRuntimeChange':_0x495d86}),'renderWidgetActions':_0x4abb5b=>_0x1af9b(xi,{'onMoveUp':_0x2f5d34[_0x82cc0a(0x4c5)][_0x82cc0a(0x408)](_0x4abb5b['id'])>0x0?()=>_0x37fc11(_0x4abb5b['id'],-0x1):void 0x0,'onMoveDown':_0x2f5d34[_0x82cc0a(0x4c5)][_0x82cc0a(0x408)](_0x4abb5b['id'])<_0x2f5d34[_0x82cc0a(0x4c5)]['length']-0x1?()=>_0x37fc11(_0x4abb5b['id'],0x1):void 0x0,'onEdit':()=>{_0x279ee2(_0x4abb5b['id']),_0x4ae475(!0x0);},'onDelete':()=>{const _0xcb5b84=_0x82cc0a;_0x1a2815===_0x4abb5b['id']&&(_0x279ee2(void 0x0),_0x4ae475(!0x1)),_0x40cdda['executeCommand'](_0x451a8b['id'],{'unitId':_0x223a80,'dashboardId':_0x49ea6c,'widgetId':_0x4abb5b['id']})[_0xcb5b84(0x2c9)](()=>void 0x0);}})})}),_0x31b2d9&&_0x45c65b&&_0x25c267&&_0x1af9b(pi,{'base':_0xd49eb4,'chartRuntime':_0x2c7425[_0x82cc0a(0x411)](_0x25c267['id']),'unitId':_0x223a80,'widget':_0x25c267,'onChange':_0x419504,'onClose':()=>_0x4ae475(!0x1),'onSelectBackgroundImage':()=>Oi(_0x2cbfa3),'onSelectImage':()=>Di(_0x1c4f1c)})]})]})});}function Ci({base:_0x2bf24b,dashboard:_0xcb0cc8,onChange:_0x4decd4,onChartRuntimeChange:_0x5aa35b,unitId:_0x591bd4,widget:_0x1eb306}){const _0x3c826f=_0x219009;let _0x39bf07=_0x2a7f67(()=>_0xcb0cc8['widgetOrder']['flatMap'](_0x44cee0=>{const _0x5cbdae=_0x4abf;let _0x3b7413=_0xcb0cc8[_0x5cbdae(0x4a2)][_0x44cee0];return(_0x3b7413==null?void 0x0:_0x3b7413['type'])===_0xf5049a[_0x5cbdae(0x44b)]&&_0x3b7413['tableId']===(_0x5cbdae(0x35c)in _0x1eb306?_0x1eb306[_0x5cbdae(0x35c)]:'')&&_0x3b7413[_0x5cbdae(0x498)]?[_0x3b7413[_0x5cbdae(0x498)]]:[];}),[_0xcb0cc8,_0x1eb306]);switch(_0x1eb306[_0x3c826f(0x4b9)]){case _0xf5049a[_0x3c826f(0x1a1)]:return _0x1af9b(zr,{'filters':_0x39bf07,'unitId':_0x591bd4,'widget':_0x1eb306,'onRuntimeChange':_0x5aa35b});case _0xf5049a[_0x3c826f(0x44b)]:return _0x1af9b(di,{'fields':wi(_0x2bf24b,_0x1eb306['tableId']),'filter':_0x1eb306[_0x3c826f(0x498)],'onChange':_0x1b2f58=>_0x4decd4({..._0x1eb306,'filter':_0x1b2f58})[_0x3c826f(0x2c9)](()=>void 0x0)});case _0xf5049a['Text']:return _0x1af9b(Gr,{'widget':_0x1eb306});case _0xf5049a[_0x3c826f(0x20c)]:return _0x1af9b(Ti,{'widget':_0x1eb306});case _0xf5049a[_0x3c826f(0x219)]:return _0x1af9b(kr,{'dashboardId':_0xcb0cc8['id'],'unitId':_0x591bd4,'widget':_0x1eb306});}}function wi(_0x2dee7e,_0x1c910b){const _0x15698d=_0x219009;let _0x31269a=_0x2dee7e[_0x15698d(0x206)]()[_0x15698d(0x44e)][_0x1c910b],_0x9a26e3=_0x31269a==null?void 0x0:_0x31269a['viewOrder'][_0x15698d(0x3ae)](_0x2f511c=>_0x31269a[_0x15698d(0x2ea)][_0x2f511c]),_0x5c0ab5=_0x9a26e3?_0x31269a==null?void 0x0:_0x31269a['views'][_0x9a26e3]:void 0x0;return _0x31269a&&_0x5c0ab5?_0xfb2dac(_0x31269a,_0x5c0ab5):[];}function Ti({widget:_0x5bb085}){const _0x449b5d=_0x219009;let _0x25d689=_0xb3eab7(_0x2b6ea6),[_0x9b2150,_0x3b2b8e]=_0x277721(_0x5bb085[_0x449b5d(0x33f)]===_0x55ad71['UUID']?'':_0x5bb085[_0x449b5d(0x252)]);return _0x2153d6(()=>{const _0x71a83e=_0x449b5d;let _0x11fdbb=!0x0;return _0x25d689[_0x71a83e(0x49e)](_0x5bb085['source'],_0x5bb085[_0x71a83e(0x33f)])[_0x71a83e(0x3ab)](_0x434ea5=>{_0x11fdbb&&_0x3b2b8e(_0x434ea5);})[_0x71a83e(0x2c9)](()=>void 0x0),()=>{_0x11fdbb=!0x1;};},[_0x25d689,_0x5bb085[_0x449b5d(0x252)],_0x5bb085[_0x449b5d(0x33f)]]),_0x9b2150?_0x1af9b('div',{'role':_0x5bb085['alt']?_0x449b5d(0x397):void 0x0,'aria-label':_0x5bb085['alt']||void 0x0,'data-dashboard-image':_0x5bb085['id'],'className':_0x449b5d(0x48d),'style':br(_0x9b2150,_0x5bb085[_0x449b5d(0x343)])}):null;}function Ei(){let _0x42ecaa=_0x18fe69(new Set());return{'id':'dashboard-text-'+_0x3dac7b(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x42ecaa}]},'documentStyle':{}};}function Di(_0x234fdc){return new Promise(_0xe2c47c=>{const _0x1e30cb=_0x4abf;let _0x20d05e=document[_0x1e30cb(0x314)](_0x1e30cb(0x185));_0x20d05e[_0x1e30cb(0x4b9)]=_0x1e30cb(0x4c3),_0x20d05e[_0x1e30cb(0x2da)]=_0x1e30cb(0x363),_0x20d05e['addEventListener']('change',()=>{const _0x25d479=_0x1e30cb;var _0x477246;let _0x81dcd6=(_0x477246=_0x20d05e[_0x25d479(0x338)])==null?void 0x0:_0x477246[0x0];_0x81dcd6?_0x234fdc[_0x25d479(0x484)](_0x81dcd6)['then'](_0x182bf3=>{const _0x4002d4=_0x25d479;!_0x182bf3[_0x4002d4(0x252)]||_0x182bf3[_0x4002d4(0x33f)]===void 0x0?_0xe2c47c(null):_0xe2c47c({'name':_0x182bf3['name'],'source':_0x182bf3[_0x4002d4(0x252)],'sourceType':_0x182bf3[_0x4002d4(0x33f)]});})[_0x25d479(0x2c9)](()=>_0xe2c47c(null)):_0xe2c47c(null);},{'once':!0x0}),_0x20d05e['click']();});}function Oi(_0x439e0d){return new Promise(_0x129c2d=>{const _0x20a7e9=_0x4abf;let _0x2eeb41=document[_0x20a7e9(0x314)](_0x20a7e9(0x185));_0x2eeb41[_0x20a7e9(0x4b9)]='file',_0x2eeb41[_0x20a7e9(0x2da)]=_0x20a7e9(0x363),_0x2eeb41[_0x20a7e9(0x371)](_0x20a7e9(0x29e),()=>{const _0x5d5dca=_0x20a7e9;var _0x551252;let _0x2a3336=(_0x551252=_0x2eeb41[_0x5d5dca(0x338)])==null?void 0x0:_0x551252[0x0];_0x2a3336?_0x439e0d[_0x5d5dca(0x237)](_0x2a3336)[_0x5d5dca(0x3ab)](_0x537842=>{const _0x49a856=_0x5d5dca;if(!(_0x537842!=null&&_0x537842[_0x49a856(0x252)]))_0x129c2d(null);else{if(_0x537842[_0x49a856(0x364)]){let _0x1cdea7=new Image();_0x1cdea7['src']=_0x537842[_0x49a856(0x364)],_0x439e0d[_0x49a856(0x436)](_0x537842[_0x49a856(0x252)],_0x537842[_0x49a856(0x29f)],_0x1cdea7);}_0x129c2d({'source':_0x537842[_0x49a856(0x252)],'sourceType':_0x537842[_0x49a856(0x29f)]});}})[_0x5d5dca(0x2c9)](()=>_0x129c2d(null)):_0x129c2d(null);},{'once':!0x0}),_0x2eeb41[_0x20a7e9(0x366)]();});}function ki(_0x405b91){const _0x1d0cf9=_0x219009;switch(_0x405b91){case _0xf5049a[_0x1d0cf9(0x1a1)]:return _0x1d0cf9(0x35b);case _0xf5049a[_0x1d0cf9(0x44b)]:return _0x1d0cf9(0x1fb);case _0xf5049a[_0x1d0cf9(0x42d)]:return _0x1d0cf9(0x299);case _0xf5049a[_0x1d0cf9(0x20c)]:return'bases-dashboard-ui.dashboard.image';case _0xf5049a[_0x1d0cf9(0x219)]:return _0x1d0cf9(0x35d);}}function Ai(_0x54c296){const _0x505c37=_0x219009;return(_0x54c296==null?void 0x0:_0x54c296['type'])===_0x4ec201[_0x505c37(0x223)]&&typeof _0x54c296[_0x505c37(0x2dc)]==_0x505c37(0x43c)&&_0x54c296[_0x505c37(0x2dc)]!==null&&_0x505c37(0x3b3)in _0x54c296[_0x505c37(0x2dc)]&&_0x505c37(0x2fc)in _0x54c296[_0x505c37(0x2dc)];}function _0x4abf(_0x3d1602,_0x1d8e86){_0x3d1602=_0x3d1602-0x16d;const _0x494cc5=_0x494c();let _0x4abf28=_0x494cc5[_0x3d1602];return _0x4abf28;}function ji({pivot:_0x34e005,view:_0xb507a9}){const _0x3a4778=_0x219009;let _0x574d60=_0xb3eab7(_0x51de0a),_0x528ce5=_0x2a7f67(()=>Mi(_0xb507a9,_0x34e005,_0x574d60['t'](_0x3a4778(0x4cc))),[_0x574d60,_0x34e005,_0xb507a9]);return _0x52e710(_0x3a4778(0x173),{'className':_0x3a4778(0x344),'children':[_0x528ce5[_0x3a4778(0x1ce)][_0x3a4778(0x348)]>0x0&&_0x1af9b(_0x3a4778(0x328),{'className':_0x3a4778(0x1fc),'children':_0x1af9b('tbody',{'children':Ni(_0x528ce5[_0x3a4778(0x1ce)])})}),_0x52e710(_0x3a4778(0x328),{'className':_0x3a4778(0x4c6),'children':[_0x528ce5[_0x3a4778(0x329)]>0x0&&_0x1af9b(_0x3a4778(0x263),{'className':'univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','children':Ni(_0x528ce5[_0x3a4778(0x3ea)]['slice'](0x0,_0x528ce5[_0x3a4778(0x329)]))}),_0x1af9b(_0x3a4778(0x269),{'children':Ni(_0x528ce5['rows'][_0x3a4778(0x45d)](_0x528ce5[_0x3a4778(0x329)]))})]})]});}function Mi(_0x3aee03,_0x31bc3a,_0x5119b6){const _0x22f6f1=_0x219009;let _0x504eef=_0x3aee03[_0x22f6f1(0x36b)]['rowCount'],_0xe519b2=_0x3aee03[_0x22f6f1(0x30b)][_0x22f6f1(0x4c2)],_0x5299ca=_0x3aee03[_0x22f6f1(0x279)][_0x22f6f1(0x239)],_0xd20434=_0x3aee03[_0x22f6f1(0x279)]['colCount'],_0x22e5ad=Array['from']({'length':_0x504eef+_0x5299ca},(_0x10ea27,_0xc8e9d8)=>Array['from']({'length':_0xe519b2+_0xd20434},(_0x2df376,_0x536c14)=>{const _0x4d013b=_0x22f6f1;var _0x4bda1e,_0x250ea4;if(_0xc8e9d8<_0x504eef&&_0x536c14<_0xe519b2)return Pi(_0x3aee03[_0x4d013b(0x2d3)],_0xc8e9d8,_0x536c14,void 0x0,_0x5119b6,!0x0,!0x1,_0x4d013b(0x2bf)+_0xc8e9d8+':'+_0x536c14);if(_0xc8e9d8<_0x504eef){var _0x3e06fd;let _0x3b5e81=_0x536c14-_0xe519b2,_0x535cc9=(_0x3e06fd=_0x3aee03[_0x4d013b(0x36b)][_0x4d013b(0x29c)][_0xc8e9d8])==null?void 0x0:_0x3e06fd[_0x4d013b(0x32e)];return Pi(_0x3aee03[_0x4d013b(0x36b)],_0xc8e9d8,_0x3b5e81,_0x535cc9?_0x3aee03[_0x4d013b(0x3ce)][_0x535cc9]:void 0x0,_0x5119b6,!0x0,Li(_0x3aee03[_0x4d013b(0x36b)][_0x4d013b(0x4c4)][_0x3b5e81]),'column:'+_0xc8e9d8+':'+_0x3b5e81);}if(_0x536c14<_0xe519b2){var _0x2abf10;let _0x519ab1=_0xc8e9d8-_0x504eef,_0x4a36f9=(_0x2abf10=_0x3aee03[_0x4d013b(0x30b)][_0x4d013b(0x29c)][_0x536c14])==null?void 0x0:_0x2abf10[_0x4d013b(0x32e)];return Pi(_0x3aee03[_0x4d013b(0x30b)],_0x519ab1,_0x536c14,_0x4a36f9?_0x3aee03['formatMap'][_0x4a36f9]:void 0x0,_0x5119b6,!0x0,Li(_0x3aee03[_0x4d013b(0x30b)]['info'][_0x519ab1]),_0x4d013b(0x4a0)+_0x519ab1+':'+_0x536c14);}let _0x351afc=_0xc8e9d8-_0x504eef,_0x2429e5=_0x536c14-_0xe519b2,_0x2b724e=Math[_0x4d013b(0x2eb)](((_0x4bda1e=_0x3aee03[_0x4d013b(0x30b)][_0x4d013b(0x4c4)][_0x351afc])==null?void 0x0:_0x4bda1e[_0x4d013b(0x2b2)])??-0x1,((_0x250ea4=_0x3aee03['colView'][_0x4d013b(0x4c4)][_0x2429e5])==null?void 0x0:_0x250ea4[_0x4d013b(0x2b2)])??-0x1),_0x3fb6eb=_0x31bc3a['valueFields'][_0x2b724e<0x0?0x0:_0x2b724e];return Pi(_0x3aee03['dataView'],_0x351afc,_0x2429e5,_0x3fb6eb?_0x3aee03[_0x4d013b(0x3ce)][_0x3fb6eb]:void 0x0,_0x5119b6,!0x1,Li(_0x3aee03[_0x4d013b(0x30b)][_0x4d013b(0x4c4)][_0x351afc])||Li(_0x3aee03[_0x4d013b(0x36b)][_0x4d013b(0x4c4)][_0x2429e5]),_0x4d013b(0x27b)+_0x351afc+':'+_0x2429e5);}));return{'headerColumnCount':_0xe519b2,'headerRowCount':_0x504eef,'pageRows':_0x3aee03['pageView'][_0x22f6f1(0x456)]<0x0||_0x3aee03['pageView'][_0x22f6f1(0x1c4)]<0x0?[]:Array[_0x22f6f1(0x181)]({'length':_0x3aee03[_0x22f6f1(0x231)][_0x22f6f1(0x456)]+0x1},(_0x2c7cac,_0x31d732)=>Array[_0x22f6f1(0x181)]({'length':_0x3aee03[_0x22f6f1(0x231)][_0x22f6f1(0x1c4)]+0x1},(_0x1dd38e,_0x4b86c7)=>Pi(_0x3aee03['pageView'],_0x31d732,_0x4b86c7,void 0x0,_0x5119b6,!0x0,!0x1,'page:'+_0x31d732+':'+_0x4b86c7))),'rows':_0x22e5ad};}function Ni(_0x2cd332){const _0x58550d=_0x219009;return _0x2cd332[_0x58550d(0x43f)](_0x476e4f=>{const _0x31c6c6=_0x58550d;var _0xbd215b;return _0x1af9b('tr',{'children':_0x476e4f[_0x31c6c6(0x43f)](_0x4cc34e=>{const _0x33b42b=_0x31c6c6;let _0x3ee9d6=_0x4cc34e[_0x33b42b(0x3b6)]?'th':'td';return _0x1af9b(_0x3ee9d6,{'className':_0x33b42b(0x323)+(_0x4cc34e['isTotal']?'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-gray-50\x20univer-font-semibold\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20':'')+_0x33b42b(0x270)+(_0x4cc34e[_0x33b42b(0x3b6)]?'':_0x33b42b(0x3f6))+_0x33b42b(0x1d9),'children':_0x4cc34e[_0x33b42b(0x286)]},_0x4cc34e['key']);})},(_0xbd215b=_0x476e4f[0x0])==null?void 0x0:_0xbd215b[_0x31c6c6(0x2c1)]);});}function Pi(_0x220c64,_0xc1e2e5,_0x597786,_0x3703c0,_0x425cc9,_0x139b80,_0x76a3ea,_0x1431ec){const _0x125dc2=_0x219009;var _0x534015;let _0x2a0bb3=(_0x534015=_0x220c64[_0x125dc2(0x39a)][_0xc1e2e5])==null?void 0x0:_0x534015[_0x597786],_0x9deb35=_0x2a0bb3==null?void 0x0:_0x2a0bb3['s'],_0x2a42bb=_0x76a3ea||_0x9deb35===_0x3fce02[_0x125dc2(0x2cb)]||_0x9deb35===_0x3fce02[_0x125dc2(0x191)];return{'isHeader':_0x139b80,'isTotal':_0x2a42bb||_0x9deb35===_0x3fce02['Subtotal'],'key':_0x1431ec,'style':_0x9deb35,'value':_0x2a42bb&&Ii(_0x2a0bb3==null?void 0x0:_0x2a0bb3['v'])?_0x425cc9:Fi(_0x2a0bb3,_0x3703c0)};}function Fi(_0x1845f1,_0x3583e5){const _0x30a58d=_0x219009;let _0x1d70f4=_0x1845f1==null?void 0x0:_0x1845f1['v'];return _0x1d612e(_0x1d70f4)?String(_0x1d70f4[_0x30a58d(0x286)]??_0x1d70f4[_0x30a58d(0x170)]??''):_0x48662d(_0x1d70f4)?'#'+_0x1d70f4['errorType']:_0x3583e5&&typeof _0x1d70f4==_0x30a58d(0x24f)?_0x415bf1['format'](_0x3583e5,_0x1d70f4):String(_0x1d70f4??'');}function Ii(_0x38a426){return _0x38a426===void 0x0||_0x38a426==='';}function Li(_0x5c8385){const _0x617513=_0x219009;return!!(_0x5c8385!=null&&_0x5c8385[_0x617513(0x1bb)]||_0x5c8385!=null&&_0x5c8385[_0x617513(0x358)]||_0x5c8385!=null&&_0x5c8385[_0x617513(0x28c)]||(_0x5c8385==null?void 0x0:_0x5c8385[_0x617513(0x3a6)])===_0x617513(0x23e));}const Ri=[{'area':_0x2e2ea1[_0x219009(0x4cd)],'key':_0x219009(0x317),'label':_0x219009(0x297)},{'area':_0x2e2ea1[_0x219009(0x3d4)],'key':_0x219009(0x23d),'label':'bases-dashboard-ui.pivot.columns'},{'area':_0x2e2ea1[_0x219009(0x2ce)],'key':_0x219009(0x373),'label':_0x219009(0x3c2)},{'area':_0x2e2ea1[_0x219009(0x478)],'key':_0x219009(0x37b),'label':'bases-dashboard-ui.pivot.values'}],zi=[{'value':_0x37b485['sum'],'localeKey':'bases-dashboard-ui.pivot.sum'},{'value':_0x37b485[_0x219009(0x241)],'localeKey':_0x219009(0x351)},{'value':_0x37b485[_0x219009(0x220)],'localeKey':_0x219009(0x303)},{'value':_0x37b485['average'],'localeKey':_0x219009(0x306)},{'value':_0x37b485[_0x219009(0x2eb)],'localeKey':_0x219009(0x2d5)},{'value':_0x37b485[_0x219009(0x466)],'localeKey':_0x219009(0x1e7)},{'value':_0x37b485[_0x219009(0x46e)],'localeKey':_0x219009(0x1fe)},{'value':_0x37b485[_0x219009(0x1e6)],'localeKey':_0x219009(0x34e)},{'value':_0x37b485[_0x219009(0x399)],'localeKey':_0x219009(0x340)},{'value':_0x37b485['var'],'localeKey':'bases-dashboard-ui.pivot.variance'},{'value':_0x37b485['varp'],'localeKey':'bases-dashboard-ui.pivot.variancePopulation'}];function Bi(_0x3923a2){const _0x4cf34c=_0x219009;let {config:_0x3d081b,onChange:_0x309de9,table:_0x2def0f}=_0x3923a2,_0xe6e5d7=_0xb3eab7(_0x51de0a),[_0x433b09,_0x53fb52]=_0x277721(_0x4cf34c(0x1c9)),[_0x3a2c0d,_0x6620f9]=_0x277721(''),[_0x3f6904,_0x13a06b]=_0x277721(null),[_0x1f9785,_0x2cdabd]=_0x277721(null),[_0x3ade64,_0x51c6b0]=_0x277721(null),[_0x1e5ea9,_0x37c5cd]=_0x277721(null),_0x401020=_0x52068e(null),_0x279fb9=_0x2a7f67(()=>_0x2def0f['fieldOrder'][_0x4cf34c(0x1ae)](_0x51e0af=>{const _0x13b258=_0x4cf34c;let _0x491159=_0x2def0f['fields'][_0x51e0af];return _0x491159&&_0x491159[_0x13b258(0x235)]!==!0x0&&_0x491159[_0x13b258(0x4b9)]!==_0x3f2f3b[_0x13b258(0x47f)]?[_0x491159]:[];})[_0x4cf34c(0x498)](_0xdd5e92=>_0xdd5e92[_0x4cf34c(0x3aa)]['toLocaleLowerCase']()[_0x4cf34c(0x481)](_0x3a2c0d['trim']()[_0x4cf34c(0x16f)]())),[_0x3a2c0d,_0x2def0f]),_0x52a2ae=_0x16a4c2=>{const _0x336d0f=_0x4cf34c;let _0x41f17a=_0x26536e(_0x2def0f,_0x3d081b[_0x336d0f(0x3b3)]);try{_0x16a4c2(_0x41f17a),_0x309de9({'pivot':_0x41f17a[_0x336d0f(0x4a6)]()});}finally{_0x41f17a[_0x336d0f(0x333)]();}},_0x246a71=(_0x59b68a,_0xde39a8)=>{_0x3f6904&&(_0x52a2ae(_0x7c62e7=>{const _0x167377=_0x4abf;if(_0x3f6904['kind']===_0x167377(0x260)){let _0x1fde01=_0x7c62e7[_0x167377(0x243)](_0x3f6904['id']),_0x1be5e6=_0x1fde01[_0x167377(0x3f4)]===_0x59b68a&&_0x1fde01['index']<_0xde39a8?_0xde39a8-0x1:_0xde39a8;_0x7c62e7[_0x167377(0x44c)](_0x3f6904['id'],_0x59b68a,_0x1be5e6);}else Ji(_0x7c62e7,_0x3f6904['id'],_0x59b68a,_0xde39a8);}),_0x13a06b(null),_0x2cdabd(null));};return _0x52e710(_0x4cf34c(0x173),{'className':_0x4cf34c(0x30d),'children':[_0x1af9b(_0x531ef4,{'ariaLabel':_0xe6e5d7['t'](_0x4cf34c(0x3ad)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0xe6e5d7['t'](_0x4cf34c(0x284)),'panelId':_0x4cf34c(0x3ed),'value':'fields'},{'label':_0xe6e5d7['t'](_0x4cf34c(0x4cb)),'panelId':_0x4cf34c(0x3cc),'value':_0x4cf34c(0x3d0)}],'value':_0x433b09,'onChange':_0x53fb52}),_0x1af9b('div',{'ref':_0x401020,'className':_0x43bd71(_0x4cf34c(0x24e),_0x178403),'onDragOver':_0x57530f=>{const _0xaccfa0=_0x4cf34c;let _0x5a4bfe=_0x401020[_0xaccfa0(0x2bd)];if(!_0x5a4bfe)return;let _0x3fba04=_0x5a4bfe[_0xaccfa0(0x30f)]();_0x57530f['clientY']<_0x3fba04[_0xaccfa0(0x31d)]+0x30?_0x5a4bfe[_0xaccfa0(0x41b)]-=0x10:_0x57530f[_0xaccfa0(0x1a8)]>_0x3fba04['bottom']-0x30&&(_0x5a4bfe['scrollTop']+=0x10);},'children':_0x433b09===_0x4cf34c(0x3d0)?_0x1af9b(qi,{'config':_0x3d081b,'commit':_0x52a2ae}):_0x52e710(_0x4cf34c(0x173),{'className':_0x4cf34c(0x228),'children':[_0x52e710(_0x4cf34c(0x173),{'children':[_0x1af9b('div',{'className':_0x4cf34c(0x1fd),'children':_0xe6e5d7['t'](_0x4cf34c(0x3c8))}),_0x1af9b(_0x4f1ee0,{'allowClear':!0x0,'slot':_0x1af9b(_0x3f6321,{}),'value':_0x3a2c0d,'placeholder':_0xe6e5d7['t'](_0x4cf34c(0x200)),'onChange':_0x6620f9}),_0x1af9b(_0x4cf34c(0x173),{'className':_0x4cf34c(0x3c4),'children':_0x279fb9[_0x4cf34c(0x43f)](_0x34d812=>_0x1af9b(Vi,{'config':_0x3d081b,'field':_0x34d812,'onAdd':_0x4201e6=>_0x52a2ae(_0x15eb1e=>Ji(_0x15eb1e,_0x34d812['id'],_0x4201e6,_0x15eb1e[_0x4cf34c(0x188)](_0x4201e6))),'onCheckedChange':_0x13de4=>_0x52a2ae(_0x38b942=>{const _0x35a2db=_0x4cf34c;let _0x1aa550=_0x38b942[_0x35a2db(0x190)](_0x34d812['id']);if(!_0x13de4)_0x1aa550['forEach'](_0x1d9bdd=>_0x38b942[_0x35a2db(0x453)](_0x1d9bdd['getId']()));else{if(_0x1aa550['length']===0x0){let _0x5e8abc=Xi(_0x34d812)?_0x2e2ea1['Value']:_0x2e2ea1[_0x35a2db(0x2ce)];_0x38b942[_0x35a2db(0x2c3)](_0x34d812['id'],_0x5e8abc);}}}),'onDragStart':()=>_0x13a06b({'kind':_0x4cf34c(0x252),'id':_0x34d812['id']})},_0x34d812['id']))})]}),_0x1af9b(_0x4cf34c(0x173),{'className':_0x4cf34c(0x177),'children':Ri['map'](_0x3f8aa4=>_0x1af9b(Ui,{'area':_0x3f8aa4[_0x4cf34c(0x3f4)],'dropTarget':_0x1f9785,'fields':_0x3d081b[_0x4cf34c(0x3b3)][_0x3f8aa4[_0x4cf34c(0x2c1)]],'label':_0xe6e5d7['t'](_0x3f8aa4[_0x4cf34c(0x1d6)]),'snapshot':_0x3d081b[_0x4cf34c(0x3b3)],'onDragEnd':()=>{_0x13a06b(null),_0x2cdabd(null);},'onDragStart':_0x5d6e69=>_0x13a06b({'kind':'field','id':_0x5d6e69,'area':_0x3f8aa4[_0x4cf34c(0x3f4)]}),'onDragOver':_0x540c00=>_0x2cdabd({'area':_0x3f8aa4[_0x4cf34c(0x3f4)],'index':_0x540c00}),'onDrop':_0x1101f3=>_0x246a71(_0x3f8aa4[_0x4cf34c(0x3f4)],_0x1101f3),'onFilter':_0x51c6b0,'onMove':(_0x47810a,_0x40c4bc,_0x3beaf7)=>_0x52a2ae(_0x4867a=>_0x4867a[_0x4cf34c(0x44c)](_0x47810a,_0x40c4bc,_0x3beaf7)),'onRemove':_0x44df08=>_0x52a2ae(_0x4bd8eb=>_0x4bd8eb[_0x4cf34c(0x453)](_0x44df08)),'onSettings':_0x37c5cd},_0x3f8aa4[_0x4cf34c(0x3f4)]))}),_0x3ade64&&_0x1af9b(Gi,{'fieldId':_0x3ade64,'snapshot':_0x3d081b[_0x4cf34c(0x3b3)],'table':_0x2def0f,'onCancel':()=>_0x51c6b0(null),'onCommit':(_0x36e2d7,_0x4d52b6)=>{_0x52a2ae(_0x5213ea=>{const _0xd39ea0=_0x4abf;let _0x2e612e=_0x5213ea['getDataFieldByTableId'](_0x3ade64),_0x93f398=(_0x2e612e==null?void 0x0:_0x2e612e[_0xd39ea0(0x39c)])??[];_0x5213ea[_0xd39ea0(0x367)](_0x3ade64,{'type':_0x43d698[_0xd39ea0(0x423)],'list':_0x36e2d7,'isAll':_0x36e2d7[_0xd39ea0(0x348)]===_0x93f398[_0xd39ea0(0x348)]}),_0x5213ea[_0xd39ea0(0x471)](_0x3ade64,_0x4d52b6===void 0x0?void 0x0:{'type':_0x4d52b6});}),_0x51c6b0(null);}},_0x3ade64),_0x1e5ea9&&_0x1af9b(Ki,{'field':_0x3d081b['pivot']['measure'][_0x1e5ea9],'onCancel':()=>_0x37c5cd(null),'onCommit':(_0xb107ca,_0x29e314,_0x36849b)=>{_0x52a2ae(_0x4967eb=>{const _0x34de6b=_0x4abf;_0x4967eb[_0x34de6b(0x417)](_0x1e5ea9,_0xb107ca),_0x4967eb[_0x34de6b(0x4bd)](_0x1e5ea9,_0x29e314),_0x4967eb[_0x34de6b(0x213)](_0x1e5ea9,_0x36849b||void 0x0);}),_0x37c5cd(null);}},_0x1e5ea9)]})})]});}function Vi(_0x1c5183){const _0x29cb33=_0x219009;let {config:_0x184dcd,field:_0x596575,onAdd:_0x1257f9,onCheckedChange:_0x10ad64,onDragStart:_0x10fae5}=_0x1c5183,_0x2fa45c=_0xb3eab7(_0x51de0a),_0x50c09d=[...Object['values'](_0x184dcd[_0x29cb33(0x3b3)][_0x29cb33(0x34a)]),...Object[_0x29cb33(0x189)](_0x184dcd['pivot']['measure'])][_0x29cb33(0x499)](_0x3e1733=>_0x3e1733[_0x29cb33(0x18d)]===_0x596575['id']),_0x37560a=Ri[_0x29cb33(0x43f)](_0x3073a1=>({'type':'item','children':_0x2fa45c['t'](Zi(_0x3073a1[_0x29cb33(0x3f4)])),'onSelect':()=>_0x1257f9(_0x3073a1[_0x29cb33(0x3f4)])}));return _0x52e710(_0x29cb33(0x173),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x29cb33(0x262),'onDragStart':_0x10fae5,'children':[_0x1af9b(_0x5e364b,{'checked':_0x50c09d,'onChange':_0x1ceee7=>_0x10ad64(!!_0x1ceee7)}),_0x1af9b(Hi,{'field':_0x596575}),_0x1af9b('span',{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x596575['name']}),_0x1af9b(Xr,{'align':_0x29cb33(0x1d5),'items':_0x37560a,'children':_0x1af9b(_0x2e1096,{'variant':_0x29cb33(0x209),'aria-label':_0x2fa45c['t'](_0x29cb33(0x446)),'children':_0x1af9b(_0x27fd1a,{})})})]});}function Hi({field:_0x222c32}){const _0x598cd1=_0x219009;return Xi(_0x222c32)?_0x1af9b(_0x519617,{'className':_0x598cd1(0x259)}):_0x222c32[_0x598cd1(0x4b9)]===_0x3f2f3b[_0x598cd1(0x1ed)]||_0x222c32['type']===_0x3f2f3b['CreatedAt']||_0x222c32[_0x598cd1(0x4b9)]===_0x3f2f3b[_0x598cd1(0x212)]?_0x1af9b(_0x353aa7,{'className':_0x598cd1(0x259)}):_0x1af9b(_0x21875f,{'className':'univer-text-gray-400'});}function Ui(_0x420205){const _0x22494d=_0x219009;let {area:_0x31d761,dropTarget:_0x53b698,fields:_0x5a669b,label:_0x44b427,snapshot:_0xb2775a}=_0x420205,_0xf60ae5=_0xb3eab7(_0x51de0a);return _0x52e710(_0x22494d(0x198),{'className':_0x43bd71('univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800',_0x25ef46),'onDragOver':_0x4a9ae1=>{const _0x572a79=_0x22494d;_0x4a9ae1['preventDefault'](),_0x420205[_0x572a79(0x1e8)](_0x5a669b[_0x572a79(0x348)]);},'onDrop':_0xe50d58=>{const _0x3d4ade=_0x22494d;_0xe50d58['preventDefault'](),_0x420205['onDrop']((_0x53b698==null?void 0x0:_0x53b698['area'])===_0x31d761?_0x53b698[_0x3d4ade(0x3a4)]:_0x5a669b['length']);},'children':[_0x1af9b('div',{'className':'univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','children':_0x44b427}),_0x52e710(_0x22494d(0x173),{'className':_0x22494d(0x2d2),'children':[_0x5a669b[_0x22494d(0x43f)]((_0x2962e2,_0x32ab00)=>{const _0x425c71=_0x22494d;let _0x5789b8=_0xb2775a[_0x425c71(0x34a)][_0x2962e2]??_0xb2775a[_0x425c71(0x3d5)][_0x2962e2];if(!_0x5789b8)return null;let _0x1b7add=(_0x53b698==null?void 0x0:_0x53b698[_0x425c71(0x3f4)])===_0x31d761&&_0x53b698['index']===_0x32ab00;return _0x52e710('div',{'onDragOver':_0x2a6bb1=>{const _0x3c0a1f=_0x425c71;_0x2a6bb1['preventDefault'](),_0x2a6bb1[_0x3c0a1f(0x2ac)]();let _0x5e498c=_0x2a6bb1[_0x3c0a1f(0x174)][_0x3c0a1f(0x30f)]();_0x420205[_0x3c0a1f(0x1e8)](_0x32ab00+ +(_0x2a6bb1[_0x3c0a1f(0x1a8)]>_0x5e498c[_0x3c0a1f(0x31d)]+_0x5e498c[_0x3c0a1f(0x34f)]/0x2));},'onDrop':_0x458942=>{const _0x1b7071=_0x425c71;_0x458942[_0x1b7071(0x33b)](),_0x458942[_0x1b7071(0x2ac)](),_0x420205[_0x1b7071(0x26d)]((_0x53b698==null?void 0x0:_0x53b698[_0x1b7071(0x3f4)])===_0x31d761?_0x53b698[_0x1b7071(0x3a4)]:_0x32ab00);},'children':[_0x1b7add&&_0x1af9b(_0x425c71(0x173),{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),_0x1af9b(Wi,{'area':_0x31d761,'field':_0x5789b8,'onDragEnd':_0x420205[_0x425c71(0x419)],'onDragStart':()=>_0x420205[_0x425c71(0x205)](_0x2962e2),'onFilter':()=>_0x420205[_0x425c71(0x2d0)](_0x2962e2),'onMove':_0x3e1a5d=>_0x420205[_0x425c71(0x336)](_0x2962e2,_0x3e1a5d,0x0),'onMoveUp':_0x32ab00>0x0?()=>_0x420205[_0x425c71(0x336)](_0x2962e2,_0x31d761,_0x32ab00-0x1):void 0x0,'onMoveDown':_0x32ab00<_0x5a669b[_0x425c71(0x348)]-0x1?()=>_0x420205[_0x425c71(0x336)](_0x2962e2,_0x31d761,_0x32ab00+0x1):void 0x0,'onRemove':()=>_0x420205[_0x425c71(0x2d1)](_0x2962e2),'onSettings':()=>_0x420205['onSettings'](_0x2962e2)})]},_0x2962e2);}),(_0x53b698==null?void 0x0:_0x53b698[_0x22494d(0x3f4)])===_0x31d761&&_0x53b698[_0x22494d(0x3a4)]===_0x5a669b['length']&&_0x1af9b('div',{'className':_0x22494d(0x290)}),_0x5a669b['length']===0x0&&_0x1af9b('div',{'className':_0x22494d(0x21f),'children':_0xf60ae5['t']('bases-dashboard-ui.pivot.sourceFields')})]})]});}function Wi(_0x1d7651){const _0x5f1c25=_0x219009;let _0x17e443=_0xb3eab7(_0x51de0a),_0x42f29a=_0x1d7651[_0x5f1c25(0x3f4)]===_0x2e2ea1['Value'],_0x3dc6e4=[...Ri['filter'](_0x5a3fc6=>_0x5a3fc6[_0x5f1c25(0x3f4)]!==_0x1d7651[_0x5f1c25(0x3f4)])[_0x5f1c25(0x43f)](_0x17edd0=>({'type':_0x5f1c25(0x1f9),'children':_0x17e443['t'](Zi(_0x17edd0[_0x5f1c25(0x3f4)])),'onSelect':()=>_0x1d7651[_0x5f1c25(0x336)](_0x17edd0[_0x5f1c25(0x3f4)])})),..._0x1d7651[_0x5f1c25(0x1ac)]?[{'type':'item','children':_0x17e443['t']('bases-dashboard-ui.mobile.moveUp'),'onSelect':_0x1d7651[_0x5f1c25(0x1ac)]}]:[],..._0x1d7651[_0x5f1c25(0x245)]?[{'type':'item','children':_0x17e443['t'](_0x5f1c25(0x248)),'onSelect':_0x1d7651[_0x5f1c25(0x245)]}]:[],{'type':_0x5f1c25(0x1f9),'children':_0x17e443['t'](_0x5f1c25(0x1c8)),'onSelect':_0x1d7651[_0x5f1c25(0x2d1)]},{'type':_0x5f1c25(0x1f9),'children':_0x17e443['t'](_0x42f29a?_0x5f1c25(0x446):_0x5f1c25(0x315)),'onSelect':_0x42f29a?_0x1d7651['onSettings']:_0x1d7651[_0x5f1c25(0x2d0)]}];return _0x52e710(_0x5f1c25(0x173),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x5f1c25(0x493),'onDragEnd':_0x1d7651[_0x5f1c25(0x419)],'onDragStart':_0x1d7651[_0x5f1c25(0x205)],'children':[_0x1af9b(_0xe14895,{'title':_0x1d7651['field'][_0x5f1c25(0x2af)],'children':_0x1af9b(_0x5f1c25(0x46c),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x1d7651[_0x5f1c25(0x260)]['displayName']})}),_0x1af9b(Xr,{'align':_0x5f1c25(0x1d5),'items':_0x3dc6e4,'children':_0x1af9b(_0x2e1096,{'variant':'text','aria-label':_0x17e443['t'](_0x5f1c25(0x446)),'children':_0x1af9b(_0x27fd1a,{})})})]});}function Gi(_0x47419e){const _0x7489d7=_0x219009;var _0x376dfa,_0x46d051;let _0x5e81e0=_0xb3eab7(_0x51de0a),{format:_0x2822ce,items:_0x57aed0,itemTypes:_0x43922d}=_0x2a7f67(()=>{const _0x2b3b68=_0x4abf;let _0x352d9f=_0x26536e(_0x47419e['table'],_0x47419e[_0x2b3b68(0x36f)]);try{let _0x5f5394=_0x352d9f['getDataFieldByTableId'](_0x47419e['fieldId']);return{'format':_0x5f5394==null?void 0x0:_0x5f5394[_0x2b3b68(0x467)],'items':[...(_0x5f5394==null?void 0x0:_0x5f5394[_0x2b3b68(0x39c)])??[]],'itemTypes':[...(_0x5f5394==null?void 0x0:_0x5f5394[_0x2b3b68(0x258)])??[]]};}finally{_0x352d9f[_0x2b3b68(0x333)]();}},[_0x47419e[_0x7489d7(0x1cb)],_0x47419e[_0x7489d7(0x36f)],_0x47419e[_0x7489d7(0x328)]]),_0x5752e7=(_0x376dfa=_0x47419e[_0x7489d7(0x36f)][_0x7489d7(0x34a)][_0x47419e[_0x7489d7(0x1cb)]])==null?void 0x0:_0x376dfa['filterInfo'],[_0x2dc368,_0x143bb5]=_0x277721((_0x5752e7==null?void 0x0:_0x5752e7[_0x7489d7(0x4b9)])===_0x43d698[_0x7489d7(0x423)]?_0x5752e7[_0x7489d7(0x427)]:_0x57aed0),[_0x59106c,_0x492960]=_0x277721((_0x46d051=_0x47419e[_0x7489d7(0x36f)][_0x7489d7(0x34a)][_0x47419e['fieldId']])==null||(_0x46d051=_0x46d051[_0x7489d7(0x3fa)])==null?void 0x0:_0x46d051[_0x7489d7(0x4b9)]),_0xe36fa2=_0x2dc368[_0x7489d7(0x348)]===_0x57aed0[_0x7489d7(0x348)],_0x155294=_0x52e710(_0x7489d7(0x198),{'className':_0x43bd71(_0x7489d7(0x18e),_0x25ef46),'children':[_0x1af9b(_0x7489d7(0x173),{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0x5e81e0['t']('bases-dashboard-ui.pivot.filterField')}),_0x52e710(_0x7489d7(0x173),{'className':_0x7489d7(0x362),'children':[_0x52e710(_0x2e1096,{'className':'univer-flex-1','variant':_0x59106c===_0x42703e[_0x7489d7(0x35a)]?_0x7489d7(0x2f7):_0x7489d7(0x1ca),'onClick':()=>_0x492960(_0x42703e['ascending']),'children':[_0x1af9b(_0x52230b,{}),_0x5e81e0['t']('bases-dashboard-ui.pivot.ascending')]}),_0x52e710(_0x2e1096,{'className':'univer-flex-1','variant':_0x59106c===_0x42703e[_0x7489d7(0x4bf)]?_0x7489d7(0x2f7):_0x7489d7(0x1ca),'onClick':()=>_0x492960(_0x42703e[_0x7489d7(0x4bf)]),'children':[_0x1af9b(_0x404137,{}),_0x5e81e0['t'](_0x7489d7(0x38d))]})]}),_0x52e710(_0x7489d7(0x173),{'className':_0x7489d7(0x355),'children':[_0x52e710(_0x7489d7(0x1d6),{'className':_0x7489d7(0x195),'children':[_0x1af9b(_0x5e364b,{'checked':_0xe36fa2,'indeterminate':_0x2dc368[_0x7489d7(0x348)]>0x0&&!_0xe36fa2,'onChange':()=>_0x143bb5(_0xe36fa2?[]:_0x57aed0)}),_0x5e81e0['t'](_0x7489d7(0x2de))]}),_0x57aed0[_0x7489d7(0x43f)]((_0x1bcdcd,_0x2bb894)=>_0x52e710(_0x7489d7(0x1d6),{'className':_0x7489d7(0x195),'children':[_0x1af9b(_0x5e364b,{'checked':_0x2dc368[_0x7489d7(0x481)](_0x1bcdcd),'onChange':()=>_0x143bb5(_0x391bf6=>_0x391bf6[_0x7489d7(0x481)](_0x1bcdcd)?_0x391bf6[_0x7489d7(0x498)](_0x8d5056=>_0x8d5056!==_0x1bcdcd):[..._0x391bf6,_0x1bcdcd])}),_0x1af9b(_0x7489d7(0x46c),{'className':_0x7489d7(0x409),'children':Yi(_0x1bcdcd,_0x43922d[_0x2bb894],_0x2822ce,_0x5e81e0['t'](_0x7489d7(0x385)))})]},_0x1bcdcd))]}),_0x52e710(_0x7489d7(0x173),{'className':_0x7489d7(0x199),'children':[_0x1af9b(_0x2e1096,{'variant':_0x7489d7(0x412),'onClick':()=>_0x47419e[_0x7489d7(0x27f)](_0x57aed0,_0x59106c),'children':_0x5e81e0['t']('bases-dashboard-ui.pivot.clearFilter')}),_0x52e710('div',{'className':_0x7489d7(0x2b7),'children':[_0x1af9b(_0x2e1096,{'onClick':_0x47419e[_0x7489d7(0x21b)],'children':_0x5e81e0['t'](_0x7489d7(0x1a6))}),_0x1af9b(_0x2e1096,{'variant':_0x7489d7(0x2f7),'disabled':_0x2dc368['length']===0x0,'onClick':()=>_0x47419e['onCommit'](_0x2dc368,_0x59106c),'children':_0x5e81e0['t']('bases-dashboard-ui.pivot.confirm')})]})]})]});return _0x1af9b(_0x5cf81f,{'title':_0x5e81e0['t'](_0x7489d7(0x315)),'onClose':_0x47419e[_0x7489d7(0x21b)],'children':_0x155294});}function Ki(_0x161c69){const _0x2459e0=_0x219009;var _0x2967d6,_0x55a36d,_0x237f60;let _0x5d2fc0=_0xb3eab7(_0x51de0a),[_0x2cc04e,_0x19f87b]=_0x277721(((_0x2967d6=_0x161c69['field'])==null?void 0x0:_0x2967d6[_0x2459e0(0x2af)])??''),[_0x5a9c22,_0x485b3a]=_0x277721(((_0x55a36d=_0x161c69[_0x2459e0(0x260)])==null?void 0x0:_0x55a36d[_0x2459e0(0x3d7)])??_0x37b485[_0x2459e0(0x3b7)]),[_0x37ed7d,_0x1f0748]=_0x277721(((_0x237f60=_0x161c69[_0x2459e0(0x260)])==null?void 0x0:_0x237f60[_0x2459e0(0x467)])??'');if(!_0x161c69[_0x2459e0(0x260)])return null;let _0x5188c4=_0x52e710(_0x2459e0(0x198),{'className':_0x43bd71(_0x2459e0(0x1ec),_0x25ef46),'children':[_0x1af9b('div',{'className':_0x2459e0(0x324),'children':_0x5d2fc0['t']('bases-dashboard-ui.pivot.fieldSettings')}),_0x52e710(_0x2459e0(0x1d6),{'className':_0x2459e0(0x261),'children':[_0x5d2fc0['t'](_0x2459e0(0x30e)),_0x1af9b(_0x4f1ee0,{'value':_0x2cc04e,'onChange':_0x19f87b})]}),_0x52e710(_0x2459e0(0x1d6),{'className':_0x2459e0(0x261),'children':[_0x5d2fc0['t']('bases-dashboard-ui.pivot.summarizeBy'),_0x1af9b(Yr,{'value':String(_0x5a9c22),'options':zi['map'](_0x132563=>({'value':String(_0x132563[_0x2459e0(0x286)]),'label':_0x5d2fc0['t'](_0x132563[_0x2459e0(0x37c)])})),'onChange':_0x17c9a2=>{const _0x2c664f=_0x2459e0;let _0x1084ab=zi[_0x2c664f(0x3ae)](_0x29e4e8=>String(_0x29e4e8[_0x2c664f(0x286)])===_0x17c9a2);_0x1084ab&&_0x485b3a(_0x1084ab[_0x2c664f(0x286)]);}})]}),_0x52e710('label',{'className':_0x2459e0(0x261),'children':[_0x5d2fc0['t'](_0x2459e0(0x4be)),_0x1af9b(_0x4f1ee0,{'value':_0x37ed7d,'onChange':_0x1f0748})]}),_0x52e710(_0x2459e0(0x173),{'className':_0x2459e0(0x3fd),'children':[_0x1af9b(_0x2e1096,{'onClick':_0x161c69['onCancel'],'children':_0x5d2fc0['t']('bases-dashboard-ui.pivot.cancel')}),_0x1af9b(_0x2e1096,{'variant':_0x2459e0(0x2f7),'disabled':!_0x2cc04e[_0x2459e0(0x2ee)](),'onClick':()=>_0x161c69[_0x2459e0(0x27f)](_0x2cc04e[_0x2459e0(0x2ee)](),_0x5a9c22,_0x37ed7d),'children':_0x5d2fc0['t'](_0x2459e0(0x457))})]})]});return _0x1af9b(_0x5cf81f,{'title':_0x5d2fc0['t'](_0x2459e0(0x446)),'onClose':_0x161c69[_0x2459e0(0x21b)],'children':_0x5188c4});}function qi(_0x52b9ae){const _0x178dd8=_0x219009;let {config:_0x1e33da,commit:_0x31e962}=_0x52b9ae,_0x47417f=_0xb3eab7(_0x51de0a),_0x38904d=_0x1e33da[_0x178dd8(0x3b3)][_0x178dd8(0x3d0)],_0x288527=_0x9eaa0=>_0x31e962(_0x283060=>_0x283060[_0x178dd8(0x447)]({..._0x283060[_0x178dd8(0x1d2)](),..._0x9eaa0}));return _0x52e710('div',{'className':_0x178dd8(0x228),'children':[_0x52e710(_0x178dd8(0x1d6),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x47417f['t']('bases-dashboard-ui.pivot.layout'),_0x1af9b(Yr,{'className':_0x178dd8(0x229),'value':String(_0x1e33da[_0x178dd8(0x3b3)]['layout']),'options':[{'value':String(_0x27edfb[_0x178dd8(0x2be)]),'label':_0x47417f['t'](_0x178dd8(0x2ec))},{'value':String(_0x27edfb[_0x178dd8(0x449)]),'label':_0x47417f['t']('bases-dashboard-ui.pivot.layoutCompact')},{'value':String(_0x27edfb[_0x178dd8(0x202)]),'label':_0x47417f['t'](_0x178dd8(0x291))}],'onChange':_0x4c186a=>{const _0x30d2a7=_0x178dd8;let _0x586cf8=[_0x27edfb[_0x30d2a7(0x2be)],_0x27edfb[_0x30d2a7(0x449)],_0x27edfb[_0x30d2a7(0x202)]][_0x30d2a7(0x3ae)](_0x4fdd2c=>String(_0x4fdd2c)===_0x4c186a);_0x586cf8!==void 0x0&&_0x31e962(_0x56ea45=>_0x56ea45[_0x30d2a7(0x4b7)](_0x586cf8));}})]}),[{'key':_0x178dd8(0x42a),'label':_0x178dd8(0x3b8),'defaultValue':!0x1},{'key':_0x178dd8(0x1b1),'label':_0x178dd8(0x472),'defaultValue':!0x1},{'key':_0x178dd8(0x3be),'label':'bases-dashboard-ui.pivot.showRowSubtotal','defaultValue':!0x0},{'key':_0x178dd8(0x203),'label':_0x178dd8(0x1b0),'defaultValue':!0x0},{'key':'showColSubtotal','label':_0x178dd8(0x3a8),'defaultValue':!0x0},{'key':_0x178dd8(0x41f),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}]['map'](_0x3259b2=>_0x52e710(_0x178dd8(0x1d6),{'className':_0x178dd8(0x387),'children':[_0x1af9b(_0x5e364b,{'checked':!!(_0x38904d[_0x3259b2[_0x178dd8(0x2c1)]]??_0x3259b2[_0x178dd8(0x356)]),'disabled':_0x3259b2['key']===_0x178dd8(0x42a)&&_0x1e33da[_0x178dd8(0x3b3)][_0x178dd8(0x16e)]===_0x27edfb[_0x178dd8(0x449)],'onChange':_0x55b479=>_0x288527({[_0x3259b2['key']]:!!_0x55b479})}),_0x47417f['t'](_0x3259b2[_0x178dd8(0x1d6)])]},_0x3259b2[_0x178dd8(0x2c1)])),_0x1e33da[_0x178dd8(0x3b3)][_0x178dd8(0x16e)]===_0x27edfb[_0x178dd8(0x202)]&&_0x52e710(_0x178dd8(0x1d6),{'className':_0x178dd8(0x26c),'children':[_0x47417f['t'](_0x178dd8(0x43a)),_0x1af9b(Yr,{'className':'univer-w-36','value':String(_0x38904d[_0x178dd8(0x183)]??_0x1ce76a[_0x178dd8(0x31d)]),'options':[{'value':String(_0x1ce76a[_0x178dd8(0x31d)]),'label':_0x47417f['t']('bases-dashboard-ui.pivot.top')},{'value':String(_0x1ce76a[_0x178dd8(0x196)]),'label':_0x47417f['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x310d5e=>{const _0x4f7afc=_0x178dd8;let _0x24c527=[_0x1ce76a[_0x4f7afc(0x31d)],_0x1ce76a['bottom']][_0x4f7afc(0x3ae)](_0x187ad1=>String(_0x187ad1)===_0x310d5e);_0x24c527!==void 0x0&&_0x288527({'rowSubtotalPosition':_0x24c527});}})]}),_0x52e710(_0x178dd8(0x1d6),{'className':_0x178dd8(0x26c),'children':[_0x47417f['t']('bases-dashboard-ui.pivot.valuePosition'),_0x1af9b(Yr,{'className':_0x178dd8(0x229),'value':String(_0x1e33da[_0x178dd8(0x3b3)][_0x178dd8(0x360)]===_0x3188ad[_0x178dd8(0x37a)]?_0x3188ad[_0x178dd8(0x3d4)]:_0x1e33da[_0x178dd8(0x3b3)][_0x178dd8(0x360)]),'options':[{'value':String(_0x3188ad[_0x178dd8(0x3d4)]),'label':_0x47417f['t'](_0x178dd8(0x32d))},{'value':String(_0x3188ad[_0x178dd8(0x2ce)]),'label':_0x47417f['t'](_0x178dd8(0x3c2))}],'onChange':_0x242415=>{const _0x4fa022=_0x178dd8;let _0x2b6225=[_0x3188ad[_0x4fa022(0x3d4)],_0x3188ad[_0x4fa022(0x2ce)]][_0x4fa022(0x3ae)](_0x4f0a89=>String(_0x4f0a89)===_0x242415);_0x2b6225!==void 0x0&&_0x31e962(_0x586b9a=>_0x586b9a[_0x4fa022(0x1bc)](_0x2b6225,_0x586b9a[_0x4fa022(0x268)]()<0x0?0x0:_0x586b9a[_0x4fa022(0x268)]()));}})]}),_0x52e710('label',{'className':_0x178dd8(0x26c),'children':[_0x47417f['t'](_0x178dd8(0x287)),_0x1af9b(_0x770794,{'className':_0x178dd8(0x4d2),'min':0x1,'max':0x14,'value':_0x38904d[_0x178dd8(0x1ee)]??0x1,'onChange':_0x10a614=>{let _0x232117=Number(_0x10a614);Number['isFinite'](_0x232117)&&_0x232117>=0x1&&_0x288527({'pageWrap':_0x232117});}})]}),_0x52e710(_0x178dd8(0x1d6),{'className':_0x178dd8(0x26c),'children':[_0x47417f['t']('bases-dashboard-ui.pivot.pageDirection'),_0x1af9b(Yr,{'className':_0x178dd8(0x229),'value':String(_0x38904d[_0x178dd8(0x222)]??!0x1),'options':[{'value':'false','label':_0x47417f['t'](_0x178dd8(0x1e1))},{'value':_0x178dd8(0x1be),'label':_0x47417f['t'](_0x178dd8(0x27e))}],'onChange':_0x1ad1d3=>_0x288527({'pageOverThenDown':_0x1ad1d3===_0x178dd8(0x1be)})})]})]});}function Ji(_0x37b87a,_0x5f20e8,_0x425d81,_0x40fb8a){const _0xfd4d87=_0x219009;let _0x2d7cbf=_0x37b87a[_0xfd4d87(0x190)](_0x5f20e8)['find'](_0x3a4a53=>_0x37b87a[_0xfd4d87(0x243)](_0x3a4a53[_0xfd4d87(0x293)]())[_0xfd4d87(0x3f4)]!==_0x2e2ea1[_0xfd4d87(0x478)]);_0x425d81!==_0x2e2ea1['Value']&&_0x2d7cbf?_0x37b87a['updateFieldPosition'](_0x2d7cbf[_0xfd4d87(0x293)](),_0x425d81,_0x40fb8a):_0x37b87a[_0xfd4d87(0x2c3)](_0x5f20e8,_0x425d81,_0x40fb8a);}function Yi(_0x1b5083,_0x1a5613,_0xc9a5b5,_0x566640){const _0x288710=_0x219009;return _0x1a5613===_0x4bea43['blank']?_0x566640:_0x1a5613===_0x4bea43[_0x288710(0x1f5)]&&_0xc9a5b5?_0x415bf1['format'](_0xc9a5b5,Number(_0x1b5083)):_0x1b5083;}function Xi(_0x34bbc8){const _0x4be763=_0x219009;return _0x34bbc8['type']===_0x3f2f3b[_0x4be763(0x327)]||_0x34bbc8[_0x4be763(0x4b9)]===_0x3f2f3b[_0x4be763(0x271)]||_0x34bbc8['type']===_0x3f2f3b[_0x4be763(0x274)]||_0x34bbc8[_0x4be763(0x4b9)]===_0x3f2f3b[_0x4be763(0x176)];}function Zi(_0x145989){const _0x302628=_0x219009;switch(_0x145989){case _0x2e2ea1[_0x302628(0x2ce)]:return _0x302628(0x18b);case _0x2e2ea1[_0x302628(0x3d4)]:return _0x302628(0x18f);case _0x2e2ea1[_0x302628(0x478)]:return'bases-dashboard-ui.pivot.addToValue';default:return _0x302628(0x1df);}}function Qi({config:_0x3f93ef,onChange:_0x1c6f1e,runtime:_0x4c973e,table:_0x14a355}){const _0x4279e8=_0x219009;let _0x560a9b=_0xb3eab7(_0x51de0a),[_0x14ab48,_0x10f8de]=_0x277721('chart');return _0x52e710(_0x4279e8(0x2a1),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x1af9b(_0x531ef4,{'ariaLabel':_0x560a9b['t'](_0x4279e8(0x2a0)),'className':_0x4279e8(0x42b),'items':[{'label':_0x560a9b['t'](_0x4279e8(0x475)),'panelId':_0x4279e8(0x346),'value':_0x4279e8(0x2fc)},{'label':_0x560a9b['t'](_0x4279e8(0x3ad)),'panelId':'base-pivot-table-configuration','value':_0x4279e8(0x3b3)}],'value':_0x14ab48,'variant':_0x4279e8(0x236),'onChange':_0x10f8de}),_0x1af9b('div',{'className':_0x4279e8(0x282),'children':_0x14ab48===_0x4279e8(0x2fc)?_0x4c973e&&_0x1af9b(ei,{'config':_0x3f93ef,'runtime':_0x4c973e,'tableName':_0x14a355[_0x4279e8(0x3aa)],'onChange':_0x1c6f1e}):_0x1af9b(Bi,{'config':_0x3f93ef,'table':_0x14a355,'onChange':_0x1c6f1e})})]});}function $i({tableId:_0x588260,unitId:_0x3a8aff,viewId:_0x44424a}){const _0x36938b=_0x219009;let [_0x4a6daa,_0xfb1783]=_0x277721(!0x1),_0xe93f14=_0xb3eab7(_0x4a773c),_0x41955d=_0xb3eab7(_0x144775),_0x555c65=_0xb3eab7(_0x44e345),_0x2c25dd=_0xb3eab7(_0x51de0a),_0x1c033d=_0xb3eab7(_0x559b79),[_0x54e599,_0x1546b8]=_0x277721(null),[_0xc1d3a,_0x1a219e]=_0x277721(null),_0x11fa93=_0x52068e(_0x36938b(0x29d)+_0x3dac7b(0x8)),[_0x2e2976,_0x205ef2]=_0x277721(!0x1),_0x4a94ee=_0x41955d[_0x36938b(0x225)](_0x3a8aff,_0x160ed0[_0x36938b(0x1b7)]),_0x14460b=_0x4a94ee==null?void 0x0:_0x4a94ee[_0x36938b(0x206)]()['tables'][_0x588260],_0x867606=_0x14460b==null?void 0x0:_0x14460b[_0x36938b(0x2ea)][_0x44424a],_0x3ce83c=ea(_0x867606),_0x349c6b=yr(_0x3a8aff,_0x588260,_0x44424a);if(_0x2153d6(()=>{const _0x3768df=_0x36938b;if(!_0x3ce83c)return;let _0x4c8a31=_0x11fa93[_0x3768df(0x2bd)];return _0x1c033d[_0x3768df(0x3fc)](_0x4c8a31,{'unitId':_0x3a8aff,'tableId':_0x588260,'viewId':_0x44424a,'filters':[]}),()=>{const _0x1166ba=_0x3768df;_0x1c033d[_0x1166ba(0x4a5)](_0x3a8aff,_0x4c8a31);};},[_0x3ce83c,_0x1c033d,_0x588260,_0x3a8aff,_0x44424a]),_0x2153d6(()=>{const _0x533918=_0x36938b;if(!ea(_0x867606))return;let _0x136b8e=!0x0,_0x99ee05={'unitId':_0x3a8aff,'tableId':_0x588260,'viewId':_0x44424a,'filters':[_0x867606['filter']??null]};return _0x1c033d['refreshChartRuntime'](_0x3a8aff,_0x11fa93['current'],_0x99ee05)[_0x533918(0x3ab)](_0x1c8a4f=>{const _0x3471a5=_0x533918;_0x136b8e&&_0x1c8a4f&&(_0x1546b8(_0x1c8a4f),_0x1a219e(_0x1c033d[_0x3471a5(0x404)](_0x3a8aff,_0x11fa93[_0x3471a5(0x2bd)])??null),_0x205ef2(!0x1));})[_0x533918(0x2c9)](_0x54a349=>{const _0xeadf86=_0x533918;_0x555c65[_0xeadf86(0x4ab)](_0xeadf86(0x267),_0x54a349),_0x136b8e&&(_0x1546b8(null),_0x205ef2(!0x0));}),()=>{_0x136b8e=!0x1;};},[_0x555c65,_0x1c033d,_0x588260,_0x3a8aff,_0x867606,_0x44424a]),!_0x14460b||!ea(_0x867606))return null;let _0x2449f8=_0x1c033d['getChartRuntime'](_0x3a8aff,_0x11fa93[_0x36938b(0x2bd)])===_0xc1d3a?_0xc1d3a:null,_0x5d663e=_0x54e599?_0x52e710('div',{'className':_0x36938b(0x1f0),'style':{'gridTemplateRows':_0x867606[_0x36938b(0x2dc)][_0x36938b(0x343)]===_0x36938b(0x46f)?_0x36938b(0x442):_0x36938b(0x2a4)},'children':[_0x867606[_0x36938b(0x2dc)][_0x36938b(0x343)]!==_0x36938b(0x328)&&_0x2449f8&&_0x1af9b(_0x36938b(0x173),{'className':_0x36938b(0x1da),'children':_0x1af9b(Rr,{'isRowDirection':_0x4562e5(_0x867606[_0x36938b(0x2dc)][_0x36938b(0x2fc)][_0x36938b(0x4b4)]),'runtime':_0x2449f8})}),_0x867606[_0x36938b(0x2dc)][_0x36938b(0x343)]!=='chart'&&_0x1af9b(_0x36938b(0x173),{'className':_0x36938b(0x383),'children':_0x1af9b(ji,{'pivot':_0x867606[_0x36938b(0x2dc)][_0x36938b(0x3b3)],'view':_0x54e599[_0x36938b(0x2f3)]})})]}):_0x1af9b(_0x36938b(0x173),{'className':_0x36938b(0x375),'children':_0x2e2976?_0x2c25dd['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x2c25dd['t'](_0x36938b(0x1e3))}),_0x57fb3c=_0x1af9b(Qi,{'config':_0x867606[_0x36938b(0x2dc)],'runtime':_0x2449f8,'table':_0x14460b,'onChange':_0x56d41f=>{const _0xe9913d=_0x36938b;_0x41955d[_0xe9913d(0x3e2)](_0x3a8aff),_0x41955d['focusUnit'](_0x3a8aff),_0xe93f14['executeCommand'](_0x227312['id'],{'unitId':_0x3a8aff,'tableId':_0x588260,'viewId':_0x44424a,'patch':_0x56d41f})[_0xe9913d(0x2c9)](_0x1c3d6e=>_0x555c65[_0xe9913d(0x4ab)](_0xe9913d(0x1f8),_0x1c3d6e));}});return _0x1af9b(Jr,{'children':_0x52e710(_0x36938b(0x173),{'className':_0x36938b(0x42c),'children':[_0x349c6b&&_0x1af9b(_0x2e1096,{'onClick':()=>_0xfb1783(!0x0),'children':_0x2c25dd['t'](_0x36938b(0x475))}),_0x1af9b(_0x36938b(0x173),{'className':_0x36938b(0x2ab),'children':_0x5d663e}),_0x349c6b&&_0x4a6daa&&_0x1af9b(_0x5cf81f,{'title':_0x2c25dd['t'](_0x36938b(0x2a0)),'onClose':()=>_0xfb1783(!0x1),'children':_0x57fb3c})]})});}function ea(_0x181307){const _0x5ab649=_0x219009;return(_0x181307==null?void 0x0:_0x181307[_0x5ab649(0x4b9)])===_0x4ec201[_0x5ab649(0x223)]&&typeof _0x181307[_0x5ab649(0x2dc)]==_0x5ab649(0x43c)&&_0x181307[_0x5ab649(0x2dc)]!==null&&'pivot'in _0x181307[_0x5ab649(0x2dc)]&&'chart'in _0x181307[_0x5ab649(0x2dc)]&&_0x5ab649(0x343)in _0x181307['config'];}let ta=class extends _0x2b17e2{constructor(_0x40a693,_0x43f884,_0x1adb47,_0x5d24cd,_0x2d1868,_0x3bec00){const _0x5bcce1=_0x219009;super(),this['disposeWithMe'](_0x43f884[_0x5bcce1(0x2c5)]({'type':_0x4ec201[_0x5bcce1(0x223)],'renderMode':_0x5bcce1(0x407),'icon':_0x46a4b4,'component':$i,'menu':{get 'label'(){const _0x28a34d=_0x5bcce1;return _0x3bec00['t'](_0x28a34d(0x2a0));},get 'description'(){const _0x5c7ae2=_0x5bcce1;return _0x3bec00['t'](_0x5c7ae2(0x17e));},get 'defaultName'(){const _0x54fa06=_0x5bcce1;return _0x3bec00['t'](_0x54fa06(0x216));}}})),this[_0x5bcce1(0x418)](_0x40a693[_0x5bcce1(0x2c5)](na(_0x1adb47,_0x5d24cd,_0x2d1868,_0x3bec00)));}};ta=Ar([Y(0x0,_0x475f81),Y(0x1,_0x508eb1),Y(0x2,_0x346fbc(_0x24d6a6)),Y(0x3,_0x4a773c),Y(0x4,_0xd071cb),Y(0x5,_0x346fbc(_0x51de0a))],ta);function na(_0x298e46,_0xcebc7,_0xf1964a,_0x476024){const _0x75acc0=_0x219009;return{'change$':_0x3b3651(_0x298e46['change$'],_0xf1964a[_0x75acc0(0x3e8)]),'component':Si,get 'labels'(){const _0x9ef184=_0x75acc0;return{'add':_0x476024['t'](_0x9ef184(0x301)),'configure':_0x1eec3a=>_0x476024['t'](_0x9ef184(0x3eb),_0x1eec3a),'delete':_0x476024['t']('bases-dashboard-ui.dashboard.delete'),'new':_0x476024['t'](_0x9ef184(0x47b)),'rename':_0x476024['t'](_0x9ef184(0x2d7)),'search':_0x476024['t']('bases-dashboard-ui.dashboard.search'),'section':_0x476024['t']('bases-dashboard-ui.dashboard.section')};},'getItems':_0x2f551a=>{const _0x346e9a=_0x75acc0;let _0x2946eb=_0x298e46[_0x346e9a(0x255)](_0x2f551a);return _0x2946eb[_0x346e9a(0x48e)][_0x346e9a(0x1ae)](_0x2da8db=>{const _0x859598=_0x346e9a;let _0x490d71=_0x2946eb['dashboards'][_0x2da8db];return _0x490d71?[{'id':_0x490d71['id'],'name':_0x490d71[_0x859598(0x3aa)],'readonly':!_0x108b4a(_0xf1964a,_0x2f551a,_0x490d71['id'])}]:[];});},'create':async _0x1cf3fb=>{const _0x171468=_0x75acc0;let _0x13ef06=_0x298e46[_0x171468(0x255)](_0x1cf3fb),_0x4df9fc=_0x171468(0x4d1)+_0x3dac7b(0x8),_0x14b727=ra(_0x13ef06[_0x171468(0x48e)][_0x171468(0x1ae)](_0x59ed65=>{const _0x1ca95d=_0x171468;let _0xe9bf2b=_0x13ef06[_0x1ca95d(0x3e5)][_0x59ed65];return _0xe9bf2b?[_0xe9bf2b[_0x1ca95d(0x3aa)]]:[];}),_0x387636=>_0x476024['t'](_0x171468(0x230),String(_0x387636)));return await _0xcebc7['executeCommand'](_0x55205b['id'],{'unitId':_0x1cf3fb,'dashboard':{'id':_0x4df9fc,'name':_0x14b727,'widgetOrder':[],'widgets':{}}})?_0x4df9fc:null;},'rename':async(_0x212a7b,_0x25228a,_0x260bc6)=>{const _0x5b191b=_0x75acc0;let _0x505628=_0x298e46[_0x5b191b(0x4ca)](_0x212a7b,_0x25228a);return!!(_0x505628&&await _0xcebc7[_0x5b191b(0x43d)](_0x570003['id'],{'unitId':_0x212a7b,'dashboard':{..._0x505628,'name':_0x260bc6}}));},'remove':(_0x5b2c22,_0x5f4d70)=>_0xcebc7['executeCommand'](_0x4136ca['id'],{'unitId':_0x5b2c22,'dashboardId':_0x5f4d70})};}function ra(_0x91fc85,_0x18f643){const _0x1efd52=_0x219009;let _0x4d38ff=new Set(_0x91fc85),_0x1aeeb7=_0x4d38ff[_0x1efd52(0x2b6)]+0x1,_0x507b43=_0x18f643(_0x1aeeb7);for(;_0x4d38ff['has'](_0x507b43);)_0x1aeeb7+=0x1,_0x507b43=_0x18f643(_0x1aeeb7);return _0x507b43;}let ia=class extends _0x12151f{constructor(_0x394ebf=_r,_0x42b5cc,_0x23e866){const _0x2e8dfc=_0x219009;super(),this['_config']=_0x394ebf,this[_0x2e8dfc(0x23a)]=_0x42b5cc,this[_0x2e8dfc(0x1fa)]=_0x23e866;let {..._0x445808}=_0x3d5506({},_r,this[_0x2e8dfc(0x48f)]);this[_0x2e8dfc(0x1fa)][_0x2e8dfc(0x486)](gr,_0x445808);}[_0x219009(0x1bd)](){const _0x49d1d7=_0x219009;this[_0x49d1d7(0x23a)][_0x49d1d7(0x3e7)]([jr]),this['_injector'][_0x49d1d7(0x3e7)]([qr]),this[_0x49d1d7(0x23a)][_0x49d1d7(0x3e7)]([ta]);}['onReady'](){const _0xf85992=_0x219009;_0x4a083e(this[_0xf85992(0x23a)],[[jr],[qr],[ta]]);}};Ir(ia,'type',_0x160ed0[_0x219009(0x1b7)]),Ir(ia,_0x219009(0x34c),_0x219009(0x218)),Ir(ia,'packageName',mr),Ir(ia,_0x219009(0x39d),hr),ia=Ar([_0x18504d(_0x138d6e,_0x2eebed,_0x4adcce,_0x4fac13,_0xd85df1,_0x351b40),Y(0x1,_0x346fbc(_0x9ca0eb)),Y(0x2,_0x5e932d)],ia);function aa(_0x5d9863,_0x1238ad,_0x53564b,_0x1c04fe){const _0x5a9d8d=_0x219009;let _0x215ced={..._0x5d9863};if(_0x1238ad['includes']('w')){let _0x480bea=_0x5d9863[_0x5a9d8d(0x31a)]+_0x5d9863[_0x5a9d8d(0x207)];_0x215ced[_0x5a9d8d(0x31a)]=Math[_0x5a9d8d(0x2eb)](0x0,Math[_0x5a9d8d(0x466)](_0x480bea-0x1,_0x5d9863[_0x5a9d8d(0x31a)]+_0x53564b)),_0x215ced[_0x5a9d8d(0x207)]=_0x480bea-_0x215ced[_0x5a9d8d(0x31a)];}else _0x1238ad[_0x5a9d8d(0x481)]('e')&&(_0x215ced[_0x5a9d8d(0x207)]=Math['max'](0x1,Math[_0x5a9d8d(0x466)](_0x2a8e2f-_0x5d9863[_0x5a9d8d(0x31a)],_0x5d9863[_0x5a9d8d(0x207)]+_0x53564b)));if(_0x1238ad[_0x5a9d8d(0x481)]('n')){let _0x36c3ae=_0x5d9863['row']+_0x5d9863[_0x5a9d8d(0x224)];_0x215ced[_0x5a9d8d(0x38b)]=Math['max'](0x0,Math[_0x5a9d8d(0x466)](_0x36c3ae-0x1,_0x5d9863[_0x5a9d8d(0x38b)]+_0x1c04fe)),_0x215ced[_0x5a9d8d(0x224)]=_0x36c3ae-_0x215ced[_0x5a9d8d(0x38b)];}else _0x1238ad[_0x5a9d8d(0x481)]('s')&&(_0x215ced[_0x5a9d8d(0x224)]=Math[_0x5a9d8d(0x2eb)](0x1,_0x5d9863['rowSpan']+_0x1c04fe));return _0x215ced;}function oa(_0x2f15da){const _0x1f3656=_0x219009;let _0x45d4ca=Math['max'](0x1,Math['min'](_0x2a8e2f,Math[_0x1f3656(0x28e)](_0x2f15da[_0x1f3656(0x207)])));return{'column':Math['max'](0x0,Math['min'](_0x2a8e2f-_0x45d4ca,Math['round'](_0x2f15da[_0x1f3656(0x31a)]))),'row':Math[_0x1f3656(0x2eb)](0x0,Math['round'](_0x2f15da['row'])),'columnSpan':_0x45d4ca,'rowSpan':Math['max'](0x1,Math[_0x1f3656(0x28e)](_0x2f15da['rowSpan']))};}function sa(_0x56e466,_0x30068e,_0x378582){const _0x5600d6=_0x219009;let _0x948b60=new Map(_0x56e466),_0x240811=oa(_0x378582);_0x948b60[_0x5600d6(0x217)](_0x30068e,_0x240811);let _0x33a48b=[[_0x30068e,_0x240811]];for(let [_0x4010b6,_0x57ceb3]of _0x948b60){if(_0x4010b6===_0x30068e)continue;let _0x30a541=oa(_0x57ceb3);for(;_0x33a48b[_0x5600d6(0x499)](([,_0x3301e0])=>la(_0x30a541,_0x3301e0));)_0x30a541={..._0x30a541,'row':_0x30a541[_0x5600d6(0x38b)]+0x1};for(;_0x30a541[_0x5600d6(0x38b)]>0x0;){let _0x358879={..._0x30a541,'row':_0x30a541[_0x5600d6(0x38b)]-0x1};if(_0x33a48b[_0x5600d6(0x499)](([,_0x4b5c6d])=>la(_0x358879,_0x4b5c6d)))break;_0x30a541=_0x358879;}_0x33a48b[_0x5600d6(0x1b2)]([_0x4010b6,_0x30a541]),_0x948b60[_0x5600d6(0x217)](_0x4010b6,_0x30a541);}return _0x948b60;}function ca(_0x3b19b0,_0xa9bbbe,_0x558e74,_0x2752a8=0x38,_0x1c614f=0x16){const _0x3539fb=_0x219009;return _0x3b19b0<_0xa9bbbe+_0x2752a8?-Math[_0x3539fb(0x381)](_0x1c614f*(0x1-Math[_0x3539fb(0x2eb)](0x0,_0x3b19b0-_0xa9bbbe)/_0x2752a8)):_0x3b19b0>_0x558e74-_0x2752a8?Math[_0x3539fb(0x381)](_0x1c614f*(0x1-Math[_0x3539fb(0x2eb)](0x0,_0x558e74-_0x3b19b0)/_0x2752a8)):0x0;}function la(_0x22ad3f,_0x182bcd){const _0x4e8d6c=_0x219009;return _0x22ad3f['column']<_0x182bcd[_0x4e8d6c(0x31a)]+_0x182bcd['columnSpan']&&_0x22ad3f[_0x4e8d6c(0x31a)]+_0x22ad3f[_0x4e8d6c(0x207)]>_0x182bcd[_0x4e8d6c(0x31a)]&&_0x22ad3f[_0x4e8d6c(0x38b)]<_0x182bcd[_0x4e8d6c(0x38b)]+_0x182bcd['rowSpan']&&_0x22ad3f[_0x4e8d6c(0x38b)]+_0x22ad3f[_0x4e8d6c(0x224)]>_0x182bcd['row'];}const ua=[{'direction':'nw','className':'univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize'},{'direction':'n','className':_0x219009(0x1c3)},{'direction':'ne','className':_0x219009(0x2dd)},{'direction':'e','className':_0x219009(0x4c0)},{'direction':'se','className':_0x219009(0x2fb)},{'direction':'s','className':'-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize'},{'direction':'sw','className':_0x219009(0x210)},{'direction':'w','className':_0x219009(0x3e6)}];function da({dashboard:_0x5791db,dragLabel:_0x4c1d4d,editable:_0x18e05b=!0x0,onLayoutsCommit:_0x55de47,onSelectWidget:_0x5ddada,renderWidget:_0x4db6e3,renderWidgetActions:_0x3023fd,resizeLabel:_0x5cb071,selectedWidgetId:_0x3d4575,widgetLabel:_0x30dd01}){const _0x3d617c=_0x219009;let _0x5544ba=_0x52068e(null),_0x8c390c=_0x52068e(null),[_0x3f809f,_0x2d5f31]=_0x277721(!0x1),_0x15c3fd=_0x2a7f67(()=>new Map(_0x5791db['widgetOrder'][_0x3d617c(0x1ae)](_0x58c2c8=>{const _0x29da9a=_0x3d617c;let _0x1959a5=_0x5791db[_0x29da9a(0x4a2)][_0x58c2c8];return _0x1959a5?[[_0x58c2c8,_0x1959a5[_0x29da9a(0x16e)]]]:[];})),[_0x5791db]),[_0x2e9553,_0x229475]=_0x277721(_0x15c3fd);_0x2153d6(()=>{const _0x569f9f=_0x3d617c;_0x8c390c[_0x569f9f(0x2bd)]||_0x229475(_0x15c3fd);},[_0x15c3fd]),_0x2153d6(()=>{const _0x23ff54=_0x3d617c;if(!_0x3f809f)return;let _0x612a22=_0x516aa0=>{const _0x58236d=_0x4abf;let _0x577d41=_0x5544ba[_0x58236d(0x2bd)];if(!_0x577d41)return null;let _0x462be0=_0x577d41[_0x58236d(0x30f)](),_0x233d5c=Math[_0x58236d(0x2eb)](0x1,(_0x462be0[_0x58236d(0x25a)]-0x8*(_0x2a8e2f-0x1))/_0x2a8e2f),_0x24d3f6=Math[_0x58236d(0x28e)]((_0x577d41['scrollTop']-_0x516aa0[_0x58236d(0x374)])/(_0x3b43c9+0x8)),_0x5d2860=Math[_0x58236d(0x28e)]((_0x516aa0[_0x58236d(0x33a)]-_0x516aa0[_0x58236d(0x3a0)])/(_0x233d5c+0x8)),_0x3e865a=Math[_0x58236d(0x28e)]((_0x516aa0[_0x58236d(0x42f)]-_0x516aa0[_0x58236d(0x4a4)])/(_0x3b43c9+0x8))+_0x24d3f6,_0x409c53=_0x516aa0['mode']===_0x58236d(0x17a)?{..._0x516aa0[_0x58236d(0x320)],'column':_0x516aa0[_0x58236d(0x320)][_0x58236d(0x31a)]+_0x5d2860,'row':_0x516aa0[_0x58236d(0x320)]['row']+_0x3e865a}:aa(_0x516aa0[_0x58236d(0x320)],_0x516aa0[_0x58236d(0x2cf)]??'se',_0x5d2860,_0x3e865a),_0x40203c=sa(_0x516aa0[_0x58236d(0x434)],_0x516aa0['id'],_0x409c53);return _0x229475(_0x40203c),_0x40203c;},_0xb97379=_0x2e402a=>{const _0x409ed0=_0x4abf;let _0xb60f54=_0x8c390c[_0x409ed0(0x2bd)];if(!_0xb60f54)return;let _0x49e15d={..._0xb60f54,'pointerX':_0x2e402a['clientX'],'pointerY':_0x2e402a[_0x409ed0(0x1a8)]};_0x8c390c[_0x409ed0(0x2bd)]=_0x49e15d;},_0x5bab85=()=>{const _0x2d38c4=_0x4abf;let _0x294afe=_0x8c390c[_0x2d38c4(0x2bd)],_0x1d4537=_0x294afe?_0x612a22(_0x294afe):null;_0x8c390c[_0x2d38c4(0x2bd)]=null,_0x2d5f31(!0x1),_0x1d4537&&_0x55de47(_0x1d4537);},_0x24a94=0x0,_0x102b2d=()=>{const _0x11495d=_0x4abf;let _0x2d34cc=_0x5544ba[_0x11495d(0x2bd)],_0x25679f=_0x8c390c[_0x11495d(0x2bd)];if(_0x2d34cc&&_0x25679f){let _0x474990=_0x2d34cc[_0x11495d(0x30f)](),_0xe06c9=ca(_0x25679f['pointerY'],_0x474990['top'],_0x474990[_0x11495d(0x196)]);_0xe06c9!==0x0&&(_0x2d34cc[_0x11495d(0x41b)]+=_0xe06c9),_0x612a22(_0x25679f),_0x24a94=requestAnimationFrame(_0x102b2d);}};return _0x24a94=requestAnimationFrame(_0x102b2d),window[_0x23ff54(0x371)](_0x23ff54(0x1b5),_0xb97379),window[_0x23ff54(0x371)](_0x23ff54(0x1f2),_0x5bab85),()=>{const _0xb016d2=_0x23ff54;cancelAnimationFrame(_0x24a94),window[_0xb016d2(0x1b9)](_0xb016d2(0x1b5),_0xb97379),window[_0xb016d2(0x1b9)](_0xb016d2(0x1f2),_0x5bab85);};},[_0x3f809f,_0x55de47]);let _0x27939d=Math[_0x3d617c(0x2eb)](0x8,...Array[_0x3d617c(0x181)](_0x2e9553[_0x3d617c(0x189)]())[_0x3d617c(0x43f)](_0x1b16c2=>_0x1b16c2[_0x3d617c(0x38b)]+_0x1b16c2[_0x3d617c(0x224)])),_0x42dbed=(_0x19122e,_0x47ee6a,_0x2b84b5,_0x363076)=>{const _0x56eb61=_0x3d617c;_0x19122e['preventDefault'](),_0x19122e[_0x56eb61(0x2ac)]();let _0x3ab717=_0x5544ba[_0x56eb61(0x2bd)],_0x4d7a29={'id':_0x47ee6a['id'],'mode':_0x2b84b5,'pointerX':_0x19122e[_0x56eb61(0x1b3)],'pointerY':_0x19122e['clientY'],'startX':_0x19122e[_0x56eb61(0x1b3)],'startY':_0x19122e[_0x56eb61(0x1a8)],'startScrollTop':(_0x3ab717==null?void 0x0:_0x3ab717[_0x56eb61(0x41b)])??0x0,'initial':_0x2e9553[_0x56eb61(0x411)](_0x47ee6a['id'])??_0x47ee6a[_0x56eb61(0x16e)],'initialLayouts':new Map(_0x2e9553),'resizeDirection':_0x363076};_0x8c390c[_0x56eb61(0x2bd)]=_0x4d7a29,_0x2d5f31(!0x0);};return _0x1af9b('div',{'ref':_0x5544ba,'data-dashboard-scroll-container':!0x0,'className':_0x43bd71(_0x3d617c(0x331),_0x178403),'onClick':_0x18e05b?_0x209354=>{const _0x17afa7=_0x3d617c;if(!(_0x209354[_0x17afa7(0x40c)]instanceof Node)||!_0x209354['currentTarget'][_0x17afa7(0x431)](_0x209354[_0x17afa7(0x40c)]))return;let _0x3505d9=_0x209354['target']instanceof Element?_0x209354[_0x17afa7(0x40c)]:_0x209354['target']['parentElement'];_0x3505d9!=null&&_0x3505d9[_0x17afa7(0x451)](_0x17afa7(0x392))||_0x5ddada==null||_0x5ddada();}:void 0x0,'children':_0x1af9b(_0x3d617c(0x173),{'data-dashboard-grid':!0x0,'className':_0x3d617c(0x4ba),'style':{'gap':0x8,'gridAutoRows':_0x3b43c9,'minHeight':_0x27939d*(_0x3b43c9+0x8)},'children':_0x5791db[_0x3d617c(0x4c5)][_0x3d617c(0x43f)](_0x4718ce=>{const _0x1b6b4f=_0x3d617c;var _0x196a4e;let _0xe68ef9=_0x5791db['widgets'][_0x4718ce],_0x16cf68=_0x2e9553[_0x1b6b4f(0x411)](_0x4718ce);return!_0xe68ef9||!_0x16cf68?null:_0x52e710(_0x1b6b4f(0x46d),{'data-dashboard-widget':_0xe68ef9['id'],'aria-label':_0xe68ef9[_0x1b6b4f(0x4a8)]??_0x30dd01(_0xe68ef9),'className':_0x43bd71(_0x1b6b4f(0x250),_0xe68ef9[_0x1b6b4f(0x4b9)]===_0xf5049a[_0x1b6b4f(0x20c)]||_0xe68ef9[_0x1b6b4f(0x4b9)]===_0xf5049a[_0x1b6b4f(0x219)]?_0x1b6b4f(0x4b5):'univer-bg-gray-0\x20dark:!univer-bg-gray-900',_0x18e05b&&_0x3d4575===_0xe68ef9['id']?_0x1b6b4f(0x476):_0x1b6b4f(0x495)),'style':{'gridColumn':_0x16cf68[_0x1b6b4f(0x31a)]+0x1+_0x1b6b4f(0x1e4)+_0x16cf68[_0x1b6b4f(0x207)],'gridRow':_0x16cf68['row']+0x1+_0x1b6b4f(0x1e4)+_0x16cf68[_0x1b6b4f(0x224)]},'tabIndex':_0x18e05b?0x0:void 0x0,'onClick':_0x18e05b?()=>_0x5ddada==null?void 0x0:_0x5ddada(_0xe68ef9['id']):void 0x0,'onFocus':_0x18e05b?()=>_0x5ddada==null?void 0x0:_0x5ddada(_0xe68ef9['id']):void 0x0,'children':[_0x18e05b&&_0x1af9b(_0x1b6b4f(0x1c2),{'type':_0x1b6b4f(0x1c2),'aria-label':_0x4c1d4d,'data-dashboard-drag-handle':_0xe68ef9['id'],'className':_0x43bd71(_0x1b6b4f(0x28b),_0x3f809f&&((_0x196a4e=_0x8c390c[_0x1b6b4f(0x2bd)])==null?void 0x0:_0x196a4e['id'])===_0xe68ef9['id']&&_0x8c390c[_0x1b6b4f(0x2bd)][_0x1b6b4f(0x2b0)]===_0x1b6b4f(0x17a)?_0x1b6b4f(0x2ae):_0x1b6b4f(0x285)),'onPointerDown':_0x275270=>_0x42dbed(_0x275270,_0xe68ef9,'move'),'children':_0x1af9b(_0x56435c,{'className':_0x1b6b4f(0x41e),'aria-hidden':_0x1b6b4f(0x1be)})}),_0x18e05b&&_0x1af9b(_0x1b6b4f(0x173),{'className':_0x1b6b4f(0x3f0),'children':_0x3023fd==null?void 0x0:_0x3023fd(_0xe68ef9)}),_0x1af9b(_0x1b6b4f(0x173),{'className':'univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','children':_0x4db6e3(_0xe68ef9)}),_0x18e05b&&ua['map'](({className:_0x21968d,direction:_0x2239b1})=>{const _0x41532a=_0x1b6b4f;let _0x3467d6=_0x2239b1[_0x41532a(0x348)]===0x2;return _0x1af9b(_0x41532a(0x1c2),{'type':_0x41532a(0x1c2),'aria-label':_0x5cb071,'data-dashboard-resize-handle':_0x2239b1,'data-dashboard-resize-control':_0x3467d6?_0x2239b1:void 0x0,'data-dashboard-resize-edge':_0x3467d6?void 0x0:_0x2239b1,'className':_0x43bd71(_0x41532a(0x38a),_0x3467d6?_0x41532a(0x3e3):_0x41532a(0x4ae),_0x21968d,_0x3d4575===_0xe68ef9['id']&&_0x41532a(0x482)),'onPointerDown':_0x278b46=>_0x42dbed(_0x278b46,_0xe68ef9,_0x41532a(0x16d),_0x2239b1)},_0x2239b1);})]},_0xe68ef9['id']);})})});}var fa;const Q={'axis':{..._0x4b7c48,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x2425d6,'heatmap':_0x34d401,'indicatorLine':_0x89d8f0,'legend':_0x4e4d4b,'lineAndArea':_0x305c9e,'pareto':_0x13cc6b,'pie':_0x28f162,'radar':_0x4ad53f,'relation':{..._0x102f37,'useValueAsSymbolSize':!0x0},'series':{..._0x1f143d,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((fa=_0x4f7330[_0x219009(0x21d)])==null?void 0x0:fa[_0x219009(0x28a)])??!0x1}},'style':_0x5209eb,'titles':_0x4ced2d,'trendline':_0x38d718,'waterfall':{..._0x4e066c,'useSubtotal':!0x0},'waterfallStyle':_0x3c4e32,'wordCloud':_0x546560},pa=[_0x3e0f4e[_0x219009(0x2df)],_0x3e0f4e[_0x219009(0x479)],_0x3e0f4e[_0x219009(0x186)],_0x3e0f4e['Scatter'],_0x3e0f4e[_0x219009(0x353)],_0x3e0f4e['Relation'],_0x3e0f4e[_0x219009(0x19e)],_0x3e0f4e[_0x219009(0x3ee)],_0x3e0f4e[_0x219009(0x34b)],_0x3e0f4e['Candlestick'],_0x3e0f4e[_0x219009(0x3c0)],_0x3e0f4e[_0x219009(0x39e)],_0x3e0f4e['Sunburst'],_0x3e0f4e[_0x219009(0x246)],_0x3e0f4e['Chord']];function ma(_0x2d704b){const _0x479a10=_0x219009;let {config:_0x3e1100,onChange:_0x566646,runtime:_0x4f6857,tableName:_0x4b6eec}=_0x2d704b,_0x19c370=_0xb3eab7(qr),_0x482ac9=_0xb3eab7(_0x51de0a),[_0x41e3fc,_0x1bff64]=_0x277721(_0x66773d[_0x479a10(0x49b)]),_0x53db54=_0x2a7f67(()=>new _0x1b56a9(_0x4f6857[_0x479a10(0x2e7)],{'commit':_0x135181=>{const _0x3fa993=_0x479a10;var _0x43aaa1;let _0x5aec87=_0x4f6857[_0x3fa993(0x2e7)],_0x4c4a21=_0xaa6a7c(_0x135181,{'series':(_0x43aaa1=_0x5aec87['config'])==null?void 0x0:_0x43aaa1['series'],'currentChartType':_0x5aec87[_0x3fa993(0x4a7)],'currentStyle':_0x5aec87[_0x3fa993(0x424)],'currentContext':_0x5aec87[_0x3fa993(0x23f)],'currentDataAggregation':_0x5aec87[_0x3fa993(0x474)]});_0x566646({'chart':ha(_0x3e1100[_0x3fa993(0x2fc)],_0x4c4a21)});}}),[_0x3e1100[_0x479a10(0x2fc)],_0x566646,_0x4f6857]),_0x111adc=_0x2a7f67(()=>_0x1bca48(_0x777c64[_0x479a10(0x43f)](_0x21ff62=>({..._0x21ff62,'label':_0x482ac9['t'](ya(_0x21ff62[_0x479a10(0x318)]))}))),[_0x482ac9]);return _0x1af9b(_0x44ba09,{'chartUIService':_0x19c370,'hostAdapter':_0x53db54,'children':_0x52e710(_0x479a10(0x173),{'className':_0x479a10(0x2a5),'children':[_0x1af9b(_0x531ef4,{'ariaLabel':_0x482ac9['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x479a10(0x2d8),'items':[{'label':_0x482ac9['t'](_0x479a10(0x2d9)),'panelId':'base-pivot-chart-setup','value':_0x66773d[_0x479a10(0x49b)]},{'label':_0x482ac9['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x479a10(0x4c8),'value':_0x66773d[_0x479a10(0x25b)]}],'value':_0x41e3fc,'onChange':_0x1bff64}),_0x41e3fc===_0x66773d[_0x479a10(0x49b)]?_0x1af9b(_0x24a4c3,{'id':_0x479a10(0x4aa),'label':_0x482ac9['t'](_0x479a10(0x2d9)),'children':_0x52e710('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x1af9b(_0x623fe,{'options':_0x111adc}),_0x1af9b(_0x3d9f3c,{}),_0x1af9b(_0x380243,{}),_0x1af9b(ga,{}),_0x1af9b(_0x23a4c3,{}),_0x52e710(_0x479a10(0x173),{'children':[_0x1af9b(_0x1dc825,{'title':_0x482ac9['t'](_0x479a10(0x20f))}),_0x1af9b(_0x4f1ee0,{'disabled':!0x0,'value':_0x4b6eec})]}),_0x1af9b(_0x215c50,{'orientationControl':_0x1af9b(_0x2e1096,{'size':_0x479a10(0x43e),'onClick':()=>_0x566646({'chart':{..._0x3e1100['chart'],'orient':_0x3e1100['chart'][_0x479a10(0x4b4)]===_0x479a10(0x38b)?_0x479a10(0x31a):_0x479a10(0x38b)}}),'children':_0x482ac9['t']('bases-dashboard-ui.chart.common.switchRowColumn')})}),_0x1af9b(_0x1a5bff,{}),_0x1af9b(_0x3e6c73,{'defaultValues':Q[_0x479a10(0x429)]}),_0x52e710(_0x479a10(0x173),{'children':[_0x1af9b(_0x1dc825,{'title':_0x482ac9['t'](_0x479a10(0x1a5))}),_0x1af9b(_0x8bae00,{'value':_0x3e1100[_0x479a10(0x343)],'options':[{'value':'chart-and-table','label':_0x482ac9['t'](_0x479a10(0x1ff))},{'value':_0x479a10(0x2fc),'label':_0x482ac9['t'](_0x479a10(0x19a))},{'value':_0x479a10(0x328),'label':_0x482ac9['t'](_0x479a10(0x49f))}],'onChange':_0x194bb8=>{(_0x194bb8==='chart-and-table'||_0x194bb8==='chart'||_0x194bb8==='table')&&_0x566646({'displayMode':_0x194bb8});}})]})]})}):_0x1af9b(_0x24a4c3,{'id':_0x479a10(0x4c8),'label':_0x482ac9['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x1af9b(_a,{})})]})});}function ha(_0x4c65c1,_0x22fc1a){const _0x1e1986=_0x219009;return{..._0x4c65c1,'type':_0x22fc1a[_0x1e1986(0x4a7)]??_0x4c65c1[_0x1e1986(0x4b9)],'style':_0x22fc1a[_0x1e1986(0x424)]??_0x4c65c1[_0x1e1986(0x424)],'context':_0x22fc1a['context']??_0x4c65c1[_0x1e1986(0x23f)],'dataAggregation':_0x22fc1a[_0x1e1986(0x474)]??_0x4c65c1[_0x1e1986(0x474)]};}function ga(){const _0x2d14ea=_0x219009;let _0x1af849=_0x4062bc();return _0x1af9b(_0x5446d4,{'visible':pa[_0x2d14ea(0x2e4)](_0x3cd386=>!_0x29c223[_0x2d14ea(0x25f)](_0x1af849,_0x3cd386))});}function $(_0xee21de){const _0x1ffcb8=_0x219009;return _0x52e710(_0x17d75d,{'id':_0xee21de['id'],'children':[_0x1af9b(_0x3e8f11,{'children':_0xee21de[_0x1ffcb8(0x1d6)]}),_0x1af9b(_0x58bf4b,{'children':_0xee21de['children']})]});}function _a(){const _0x49cc78=_0x219009;let _0x3ec784=_0xb3eab7(_0x51de0a),_0x35e78c=_0x4062bc(),_0x545e53=_0x312db6(),[_0x8280ac,_0x23338c]=_0x277721(null),_0x458a77=_0x29c223[_0x49cc78(0x25f)](_0x35e78c,_0x3e0f4e[_0x49cc78(0x3a1)]),_0x35a6a2=_0x35e78c===_0x3e0f4e[_0x49cc78(0x479)],_0x2638ee=_0x35e78c===_0x3e0f4e[_0x49cc78(0x186)],_0x3f1a7b=_0x35e78c===_0x3e0f4e['Funnel'],_0x227d87=_0x29c223[_0x49cc78(0x25f)](_0x35e78c,_0x3e0f4e[_0x49cc78(0x17d)]),_0xf78098=_0x35e78c===_0x3e0f4e[_0x49cc78(0x1ef)],_0x19abae=_0x35e78c===_0x3e0f4e[_0x49cc78(0x33e)],_0x2c5b3f=_0x35e78c===_0x3e0f4e['Pareto'],_0x43c397=_0x35e78c===_0x3e0f4e[_0x49cc78(0x3ee)],_0x3b575b=_0x1d3b69(_0x35e78c,_0x4f0d5d[_0x49cc78(0x247)])&&!_0x227d87&&!_0x2c5b3f,_0x86030=va(_0x35e78c,_0x3ec784);return _0x52e710(_0x176760,{'value':_0x8280ac,'onChange':_0x23338c,'children':[_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x337)],'label':_0x3ec784['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0x1af9b(_0x403f96,{'defaultValues':Q[_0x49cc78(0x424)]})}),_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x17c)],'label':_0x3ec784['t']('bases-dashboard-ui.chart.common.chartAndAxisTitles'),'children':_0x1af9b(_0x533222,{'commitMode':_0x49cc78(0x368),'defaultValues':Q[_0x49cc78(0x48b)]})}),_0x1af9b(_0x12c722,{'section':_0x49cc78(0x2f3)}),_0x3b575b&&_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x272)],'label':_0x3ec784['t'](_0x49cc78(0x458)),'children':_0x1af9b(_0x95cd68,{'defaultValues':Q[_0x49cc78(0x1f6)],'NumberFormatField':_0x43f297})}),_0x19abae&&_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x38e)],'label':_0x3ec784['t']('bases-dashboard-ui.chart.section.waterfall'),'children':_0x1af9b(_0x189b03,{'defaultValues':Q[_0x49cc78(0x393)],'getDefaultBucketName':({seriesName:_0x40a147,target:_0x2b4d01})=>_0x2b4d01===_0x11f14c[_0x49cc78(0x308)]?_0x3ec784['t'](_0x49cc78(0x432)):_0x40a147?_0x40a147+'-('+_0x3ec784['t'](_0x49cc78(0x275)+(_0x2b4d01===_0x11f14c[_0x49cc78(0x3da)]?'waterfall.positive':_0x49cc78(0x335)))+')':'','NumberFormatField':_0x43f297})}),_0x2c5b3f&&_0x52e710(_0x1ef66a,{'children':[_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x304)],'label':_0x3ec784['t'](_0x49cc78(0x1dc)),'children':_0x1af9b(_0x6a1abb,{'defaultValues':Q[_0x49cc78(0x38f)],'NumberFormatField':_0x43f297,'showDataPointEditor':!0x0,'target':_0x49cc78(0x2fe)})}),_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x1f3)],'label':_0x3ec784['t'](_0x49cc78(0x37f)),'children':_0x1af9b(_0x6a1abb,{'defaultValues':Q[_0x49cc78(0x38f)],'NumberFormatField':_0x43f297,'showDataPointEditor':!0x1,'target':_0x49cc78(0x428)})})]}),_0x458a77&&_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x413)],'label':_0x3ec784['t']('bases-dashboard-ui.chart.section.pie'),'children':_0x1af9b(_0x782d62,{'defaultValues':Q[_0x49cc78(0x3c9)],'NumberFormatField':_0x43f297})}),_0x2638ee&&_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x186)],'label':_0x3ec784['t'](_0x49cc78(0x4c7)),'children':_0x1af9b(_0x1d5b30,{'defaultValues':Q[_0x49cc78(0x1c5)]})}),_0x35a6a2&&_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x479)],'label':_0x3ec784['t']('bases-dashboard-ui.chart.section.radar'),'children':_0x1af9b(_0x5b4358,{'defaultValues':Q['radar']})}),_0x3f1a7b&&_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x353)],'label':_0x3ec784['t']('bases-dashboard-ui.chart.section.funnel'),'children':_0x1af9b(_0x1a89aa,{'defaultValues':Q[_0x49cc78(0x3b0)],'gapControl':_0x49cc78(0x460)})}),_0x43c397&&_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x3ee)],'label':_0x3ec784['t'](_0x49cc78(0x45a)),'children':_0x1af9b(_0x129683,{'defaultValues':Q[_0x49cc78(0x1cd)]})}),_0xf78098&&_0x1af9b($,{'id':_0x4fbb3c['Relation'],'label':_0x3ec784['t'](_0x49cc78(0x31c)),'children':_0x1af9b(_0x30b843,{'defaultValues':Q['relation']})}),_0x222850(_0x35e78c)&&_0x1af9b($,{'id':_0x4fbb3c['LineAndArea'],'label':_0x3ec784['t'](_0x29c223[_0x49cc78(0x25f)](_0x35e78c,_0x3e0f4e[_0x49cc78(0x1a2)])?'bases-dashboard-ui.chart.chartTypes.area':_0x49cc78(0x19f)),'children':_0x1af9b(_0x2f03f7,{'defaultValues':Q[_0x49cc78(0x32a)],'lineStyleControl':_0x49cc78(0x236)})}),_0x1d3b69(_0x35e78c,_0x4f0d5d[_0x49cc78(0x342)])&&_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x342)],'label':_0x3ec784['t']('bases-dashboard-ui.chart.common.legend'),'children':_0x1af9b(_0x132084,{'defaultValues':Q['legend']})}),_0x1d3b69(_0x35e78c,_0x4f0d5d[_0x49cc78(0x462)])&&_0x52e710(_0x1ef66a,{'children':[_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x322)],'label':_0x3ec784['t']('bases-dashboard-ui.chart.common.horizontalAxis'),'children':_0x1af9b(_0x4f9809,{'axis':'x','defaultValues':Q[_0x49cc78(0x29b)],'NumberFormatField':_0x43f297})}),_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x39f)],'label':_0x3ec784['t']('bases-dashboard-ui.chart.common.verticalAxis'),'children':_0x1af9b(_0x4f9809,{'axis':'y','defaultValues':Q[_0x49cc78(0x29b)],'NumberFormatField':_0x43f297})}),_0x1af9b(_0x12c722,{'section':_0x49cc78(0x455)}),_0x545e53&&_0x1af9b($,{'id':_0x4fbb3c['RightVerticalAxis'],'label':_0x3ec784['t']('bases-dashboard-ui.chart.common.rightVerticalAxis'),'children':_0x1af9b(_0x4f9809,{'axis':'rightY','defaultValues':Q['axis'],'NumberFormatField':_0x43f297})}),_0x1af9b($,{'id':_0x4fbb3c['GridlinesAndTicks'],'label':_0x3ec784['t'](_0x49cc78(0x3b1)),'children':_0x1af9b(_0x507867,{'defaultValues':Q[_0x49cc78(0x29b)]})})]}),_0x1d3b69(_0x35e78c,_0x4f0d5d[_0x49cc78(0x1cf)])&&_0x1af9b($,{'id':_0x4fbb3c[_0x49cc78(0x1cf)],'label':_0x3ec784['t'](_0x49cc78(0x305)),'children':_0x1af9b(_0x5207e9,{'defaultValues':Q['indicatorLine']})}),_0x479078(_0x35e78c)&&_0x1af9b($,{'id':_0x4fbb3c['Trendline'],'label':_0x3ec784['t'](_0x49cc78(0x309)),'children':_0x1af9b(_0x2c7234,{'defaultValues':Q[_0x49cc78(0x3cd)]})}),_0x86030&&_0x1af9b($,{'id':_0x86030['id'],'label':_0x86030[_0x49cc78(0x1d6)],'children':_0x1af9b(_0x4f919a,{})})]});}function va(_0x4d13a6,_0x3b90dd){const _0x1f5128=_0x219009;let _0x544bab={[_0x3e0f4e['Candlestick']]:{'id':_0x4fbb3c[_0x1f5128(0x39b)],'localeKey':_0x1f5128(0x19d)},[_0x3e0f4e[_0x1f5128(0x3c0)]]:{'id':_0x4fbb3c[_0x1f5128(0x3c0)],'localeKey':_0x1f5128(0x3d1)},[_0x3e0f4e[_0x1f5128(0x39e)]]:{'id':_0x4fbb3c[_0x1f5128(0x39e)],'localeKey':'bases-dashboard-ui.chart.section.treemap'},[_0x3e0f4e[_0x1f5128(0x3ac)]]:{'id':_0x4fbb3c[_0x1f5128(0x3ac)],'localeKey':_0x1f5128(0x2ca)},[_0x3e0f4e['Gauge']]:{'id':_0x4fbb3c['Gauge'],'localeKey':'bases-dashboard-ui.chart.section.gauge'},[_0x3e0f4e[_0x1f5128(0x3ca)]]:{'id':_0x4fbb3c['Chord'],'localeKey':_0x1f5128(0x430)}}[_0x4d13a6];return _0x544bab?{'id':_0x544bab['id'],'label':_0x3b90dd['t'](_0x544bab['localeKey'])}:null;}function ya(_0xaa192c){const _0x196f97=_0x219009;return _0x196f97(0x3f5)+_0xaa192c;}function ba({onChange:_0x3dc844,onEditData:_0x331bc9,runtime:_0x430f7b,sourceChart:_0x2c61a6,sourceName:_0x62be2e,widget:_0x3b985c}){const _0x4da79f=_0x219009;let _0x1fe9f6=_0xb3eab7(qr),_0x102dc1=_0xb3eab7(_0x51de0a),[_0x19c975,_0x3496fa]=_0x277721(_0x66773d[_0x4da79f(0x49b)]),_0x4f12a4=_0x3b985c['chart']??_0x2c61a6,_0x41946d=_0x2a7f67(()=>new _0x1b56a9(_0x430f7b[_0x4da79f(0x2e7)],{'commit':_0x43026b=>{const _0x5b1487=_0x4da79f;var _0x45cf66;let _0x9b7ec6=_0x430f7b[_0x5b1487(0x2e7)],_0x3993a3=_0xaa6a7c(_0x43026b,{'series':(_0x45cf66=_0x9b7ec6[_0x5b1487(0x2dc)])==null?void 0x0:_0x45cf66[_0x5b1487(0x1f6)],'currentChartType':_0x9b7ec6[_0x5b1487(0x4a7)],'currentStyle':_0x9b7ec6[_0x5b1487(0x424)],'currentContext':_0x9b7ec6[_0x5b1487(0x23f)],'currentDataAggregation':_0x9b7ec6[_0x5b1487(0x474)]});_0x3dc844({..._0x3b985c,'chart':ha(_0x4f12a4,_0x3993a3)})['catch'](()=>void 0x0);}}),[_0x4f12a4,_0x3dc844,_0x430f7b,_0x3b985c]),_0x2f5ec9=_0x2a7f67(()=>_0x1bca48(_0x777c64[_0x4da79f(0x43f)](_0x547ecf=>({..._0x547ecf,'label':_0x102dc1['t'](xa(_0x547ecf[_0x4da79f(0x318)]))}))),[_0x102dc1]);return _0x1af9b(_0x44ba09,{'chartUIService':_0x1fe9f6,'hostAdapter':_0x41946d,'children':_0x52e710(_0x4da79f(0x173),{'data-dashboard-chart-inspector':!0x0,'className':_0x4da79f(0x2e5),'children':[_0x1af9b(_0x531ef4,{'ariaLabel':_0x102dc1['t'](_0x4da79f(0x454)),'className':_0x4da79f(0x2d8),'items':[{'label':_0x102dc1['t'](_0x4da79f(0x2d9)),'panelId':_0x4da79f(0x227),'value':_0x66773d[_0x4da79f(0x49b)]},{'label':_0x102dc1['t'](_0x4da79f(0x420)),'panelId':_0x4da79f(0x197),'value':_0x66773d[_0x4da79f(0x25b)]}],'value':_0x19c975,'onChange':_0x3496fa}),_0x19c975===_0x66773d[_0x4da79f(0x49b)]?_0x1af9b(_0x24a4c3,{'id':_0x4da79f(0x227),'label':_0x102dc1['t'](_0x4da79f(0x2d9)),'children':_0x52e710(_0x4da79f(0x173),{'className':_0x4da79f(0x2b4),'children':[_0x1af9b(_0x623fe,{'options':_0x2f5ec9}),_0x1af9b(_0x3d9f3c,{}),_0x1af9b(_0x380243,{}),_0x1af9b(ga,{}),_0x1af9b(_0x23a4c3,{}),_0x52e710(_0x4da79f(0x173),{'children':[_0x1af9b(_0x1dc825,{'title':_0x102dc1['t'](_0x4da79f(0x2f4))}),_0x1af9b(_0x4f1ee0,{'disabled':!0x0,'value':_0x62be2e}),_0x1af9b(_0x2e1096,{'className':'univer-mt-2\x20univer-w-full','onClick':_0x331bc9,'children':_0x102dc1['t'](_0x4da79f(0x172))})]})]})}):_0x1af9b(_0x24a4c3,{'id':_0x4da79f(0x197),'label':_0x102dc1['t'](_0x4da79f(0x420)),'children':_0x1af9b(_a,{})})]})});}function xa(_0x581e37){const _0x40630c=_0x219009;return _0x40630c(0x3f5)+_0x581e37;}const Sa=[_0x219009(0x334),_0x219009(0x24f),_0x219009(0x465),_0x219009(0x414),_0x219009(0x264),_0x219009(0x449)];function Ca({base:_0x5f19f7,onChange:_0x3c152b,onSelectBackgroundImage:_0x497d79,widget:_0x2b2955}){const _0x35bf6a=_0x219009;var _0x57e4f9;let _0x248bb3=_0xb3eab7(_0x51de0a),_0x236300=_0xb3eab7(_0x52f5e2),_0x35a5c2=_0x97415f(()=>_0x236300[_0x35bf6a(0x341)],_0x236300[_0x35bf6a(0x2ed)](),!0x1,[_0x236300]),_0x57e222=_0x97415f(()=>_0x236300[_0x35bf6a(0x40f)],_0x236300[_0x35bf6a(0x388)],!0x1,[_0x236300]),[_0x1911c2,_0x406dd8]=_0x277721(_0x35bf6a(0x39a)),[_0x39db0f,_0x524cdf]=_0x277721(!0x1),_0x59f838=Cr(_0x2b2955),_0x2973b6=_0x5f19f7[_0x35bf6a(0x206)]()[_0x35bf6a(0x44e)][_0x2b2955[_0x35bf6a(0x35c)]],_0x521ec7=_0x2973b6==null?void 0x0:_0x2973b6[_0x35bf6a(0x3af)]['find'](_0x216525=>_0x2973b6[_0x35bf6a(0x2ea)][_0x216525]),_0xe7863c=_0x521ec7?_0x2973b6==null?void 0x0:_0x2973b6['views'][_0x521ec7]:void 0x0,_0x109c09=_0x2973b6&&_0xe7863c?_0x2afc8d(_0x5f19f7[_0x35bf6a(0x206)](),_0x2973b6,_0xe7863c)[_0x35bf6a(0x43f)](_0x301b20=>({..._0x301b20,'current':!0x1})):[],_0x367ec1=((_0x57e4f9=_0x2b2955[_0x35bf6a(0x21c)][_0x35bf6a(0x21e)])==null?void 0x0:_0x57e4f9[_0x35bf6a(0x1ab)])??'',_0x1d4c2e=_0x46a074=>_0x3c152b(wr(_0x2b2955,_0x46a074))['catch'](()=>void 0x0),_0x30546c=_0x12f4d5=>_0x3c152b({..._0x2b2955,'description':_0x12f4d5})[_0x35bf6a(0x2c9)](()=>void 0x0);return _0x52e710(_0x35bf6a(0x173),{'data-dashboard-formula-inspector':!0x0,'className':_0x35bf6a(0x2e5),'children':[_0x1af9b(_0x35fc77,{'className':_0x35bf6a(0x1e9),'items':[{'value':_0x35bf6a(0x39a),'label':_0x248bb3['t'](_0x35bf6a(0x18c))},{'value':_0x35bf6a(0x424),'label':_0x248bb3['t']('bases-dashboard-ui.dashboardInspector.style')}],'value':_0x1911c2,'onChange':_0x406dd8}),_0x1af9b('div',{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0x1911c2==='data'?_0x52e710(_0x35bf6a(0x173),{'className':'univer-grid\x20univer-gap-4','children':[_0x1af9b(wa,{'label':_0x248bb3['t'](_0x35bf6a(0x1de)),'children':_0x1af9b(_0x4f1ee0,{'value':_0x2b2955[_0x35bf6a(0x2bc)]??_0x2b2955[_0x35bf6a(0x4a8)]??'','onChange':_0x30546c,'onBlur':_0x1fcc88=>_0x30546c(_0x1fcc88[_0x35bf6a(0x40c)][_0x35bf6a(0x286)])})}),_0x1af9b(wa,{'label':_0x248bb3['t'](_0x35bf6a(0x2f4)),'children':_0x1af9b(_0x4f1ee0,{'disabled':!0x0,'value':(_0x2973b6==null?void 0x0:_0x2973b6[_0x35bf6a(0x3aa)])??_0x248bb3['t'](_0x35bf6a(0x37d))})}),_0x52e710(wa,{'label':_0x248bb3['t']('bases-dashboard-ui.dashboardInspector.formula'),'children':[_0x1af9b(_0x4f1ee0,{'disabled':!0x0,'value':_0x47b245(_0x367ec1,_0x109c09)}),_0x1af9b(_0x2e1096,{'className':_0x35bf6a(0x310),'onClick':()=>_0x524cdf(!0x0),'children':_0x248bb3['t'](_0x35bf6a(0x26e))})]})]}):_0x52e710(_0x35bf6a(0x173),{'className':_0x35bf6a(0x2ff),'children':[_0x1af9b(_0x3b005c,{'emptyLabel':_0x248bb3['t'](_0x35bf6a(0x435)),'label':_0x248bb3['t'](_0x35bf6a(0x435)),'pickerFallbackValue':_0x57e222?_0x35a5c2[_0x35bf6a(0x3bc)][0x384]:_0x35a5c2['gray'][0x0],'resetLabel':_0x248bb3['t'](_0x35bf6a(0x477)),'value':_0x59f838[_0x35bf6a(0x34d)]??null,'onChange':_0x25f85e=>_0x1d4c2e({'backgroundColor':_0x25f85e??void 0x0})}),_0x52e710(wa,{'label':_0x248bb3['t'](_0x35bf6a(0x3ef)),'children':[_0x52e710('div',{'className':_0x35bf6a(0x2b7),'children':[_0x52e710(_0x2e1096,{'className':_0x35bf6a(0x4b0),'onClick':()=>{const _0x4c71a5=_0x35bf6a;_0x497d79()[_0x4c71a5(0x3ab)](_0x3d19bf=>{const _0x233065=_0x4c71a5;if(_0x3d19bf){var _0x31e876;return _0x1d4c2e({'backgroundImage':{..._0x3d19bf,'fit':((_0x31e876=_0x59f838[_0x233065(0x3fb)])==null?void 0x0:_0x31e876[_0x233065(0x180)])??_0x233065(0x3de)}});}})[_0x4c71a5(0x2c9)](()=>void 0x0);},'children':[_0x1af9b(_0x5a5e3d,{}),_0x59f838[_0x35bf6a(0x3fb)]?_0x248bb3['t']('bases-dashboard-ui.dashboardInspector.replaceImage'):_0x248bb3['t']('bases-dashboard-ui.dashboardInspector.uploadImage')]}),_0x59f838[_0x35bf6a(0x3fb)]&&_0x1af9b(_0x2e1096,{'aria-label':_0x248bb3['t'](_0x35bf6a(0x2c7)),'title':_0x248bb3['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'onClick':()=>_0x1d4c2e({'backgroundImage':void 0x0}),'children':_0x1af9b(_0x140734,{})})]}),_0x59f838['backgroundImage']&&_0x1af9b(_0x35fc77,{'className':'univer-mt-2','items':[{'value':_0x35bf6a(0x3de),'label':_0x248bb3['t'](_0x35bf6a(0x480))},{'value':'contain','label':_0x248bb3['t'](_0x35bf6a(0x3b4))}],'value':_0x59f838[_0x35bf6a(0x3fb)][_0x35bf6a(0x180)],'onChange':_0x647c2d=>_0x1d4c2e({'backgroundImage':_0x59f838[_0x35bf6a(0x3fb)]?{..._0x59f838['backgroundImage'],'fit':_0x647c2d}:void 0x0})})]}),_0x1af9b(_0x3b005c,{'emptyLabel':_0x248bb3['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x248bb3['t'](_0x35bf6a(0x3dc)),'pickerFallbackValue':_0x57e222?_0x35a5c2[_0x35bf6a(0x3bc)][0x32]:_0x35a5c2[_0x35bf6a(0x3bc)][0x3e8],'resetLabel':_0x248bb3['t'](_0x35bf6a(0x477)),'value':_0x59f838[_0x35bf6a(0x321)]??null,'onChange':_0x404080=>_0x1d4c2e({'textColor':_0x404080??void 0x0})}),_0x1af9b(wa,{'label':_0x248bb3['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x1af9b(_0x35fc77,{'items':[{'value':_0x35bf6a(0x357),'label':_0x248bb3['t'](_0x35bf6a(0x3d8))},{'value':_0x35bf6a(0x403),'label':_0x248bb3['t'](_0x35bf6a(0x302))},{'value':_0x35bf6a(0x312),'label':_0x248bb3['t'](_0x35bf6a(0x2fd))}],'value':_0x59f838[_0x35bf6a(0x3a9)],'onChange':_0x3b953f=>_0x1d4c2e({'alignment':_0x3b953f})})}),_0x52e710(wa,{'label':_0x248bb3['t'](_0x35bf6a(0x2a7)),'children':[_0x1af9b(_0x35fc77,{'items':[{'value':_0x35bf6a(0x2a9),'label':_0x248bb3['t'](_0x35bf6a(0x45e))},{'value':_0x35bf6a(0x492),'label':_0x248bb3['t'](_0x35bf6a(0x326))}],'value':_0x59f838[_0x35bf6a(0x4b2)],'onChange':_0x39855b=>_0x1d4c2e({'fontSizeMode':_0x39855b})}),_0x59f838[_0x35bf6a(0x4b2)]===_0x35bf6a(0x492)&&_0x1af9b(_0x770794,{'className':_0x35bf6a(0x488),'min':0xc,'max':0x78,'value':_0x59f838[_0x35bf6a(0x25d)],'onChange':_0x3f949d=>_0x1d4c2e({'fontSize':_0x3f949d??0x28,'fontSizeMode':'custom'})})]}),_0x1af9b(wa,{'label':_0x248bb3['t'](_0x35bf6a(0x2b8)),'children':_0x1af9b(_0x8bae00,{'value':_0x59f838['numberFormat'],'options':[{'value':_0x35bf6a(0x334),'label':_0x248bb3['t'](_0x35bf6a(0x292))},{'value':'number','label':_0x248bb3['t'](_0x35bf6a(0x345))},{'value':_0x35bf6a(0x465),'label':_0x248bb3['t'](_0x35bf6a(0x2fa))},{'value':_0x35bf6a(0x414),'label':_0x248bb3['t']('bases-dashboard-ui.dashboardInspector.currency')},{'value':'grouped','label':_0x248bb3['t'](_0x35bf6a(0x365))},{'value':_0x35bf6a(0x449),'label':_0x248bb3['t'](_0x35bf6a(0x19b))}],'onChange':_0x3fb7cb=>{const _0x47724a=_0x35bf6a;let _0x5841fe=Sa[_0x47724a(0x3ae)](_0x1296e3=>_0x1296e3===_0x3fb7cb);_0x5841fe&&_0x1d4c2e({'numberFormat':_0x5841fe});}})}),_0x59f838[_0x35bf6a(0x22f)]==='currency'&&_0x1af9b(wa,{'label':_0x248bb3['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x1af9b(_0x4f1ee0,{'value':_0x59f838['currency'],'onChange':_0x3317fc=>_0x1d4c2e({'currency':_0x3317fc[_0x35bf6a(0x45d)](0x0,0x3)['toUpperCase']()})})}),_0x59f838['numberFormat']!==_0x35bf6a(0x334)&&_0x1af9b(wa,{'label':_0x248bb3['t'](_0x35bf6a(0x43b)),'children':_0x1af9b(_0x770794,{'min':0x0,'max':0x8,'value':_0x59f838['decimalPlaces'],'onChange':_0x152b02=>_0x1d4c2e({'decimalPlaces':_0x152b02??0x0})})})]})}),_0x39db0f&&_0x1af9b(_0x214192,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1af9b(_0x47c581,{'tables':_0x109c09,'formula':_0x47b245(_0x367ec1,_0x109c09),'onCancel':()=>_0x524cdf(!0x1),'onSave':_0x2e091b=>{const _0x59a478=_0x35bf6a;let _0x384b7f=_0x2b2955[_0x59a478(0x21c)][_0x59a478(0x21e)]??{'formula':''};return _0x3c152b({..._0x2b2955,'shapeData':{..._0x2b2955[_0x59a478(0x21c)],'formulaBinding':{..._0x384b7f,'formula':_0x47ab15(_0x2e091b,_0x109c09)}}})[_0x59a478(0x3ab)](()=>_0x524cdf(!0x1))['catch'](()=>void 0x0);}})})]});}function wa({children:_0x240ba7,label:_0x3604a6}){const _0xafc752=_0x219009;return _0x52e710(_0xafc752(0x173),{'role':_0xafc752(0x1a0),'aria-label':_0x3604a6,'className':_0xafc752(0x359),'children':[_0x1af9b(_0xafc752(0x46c),{'children':_0x3604a6}),_0x240ba7]});}const Ta={[_0x58020d['IS']]:_0x219009(0x1b6),[_0x58020d[_0x219009(0x3fe)]]:_0x219009(0x36a),[_0x58020d['CONTAINS']]:_0x219009(0x441),[_0x58020d[_0x219009(0x25e)]]:_0x219009(0x26f),[_0x58020d['IS_EMPTY']]:'bases-dashboard-ui.operators.isEmpty',[_0x58020d[_0x219009(0x406)]]:_0x219009(0x396),[_0x58020d['GREATER_THAN']]:_0x219009(0x20e),[_0x58020d[_0x219009(0x30a)]]:_0x219009(0x2cc),[_0x58020d[_0x219009(0x410)]]:_0x219009(0x3d2),[_0x58020d[_0x219009(0x31f)]]:_0x219009(0x489),[_0x58020d['BEFORE']]:_0x219009(0x448),[_0x58020d[_0x219009(0x244)]]:'bases-dashboard-ui.operators.after'};function Ea({disabled:_0x29fb04,fields:_0x313cf3,filter:_0x49728f,onChange:_0x258988}){const _0x567c0e=_0x219009;let _0x393a02=_0xb3eab7(_0x51de0a),_0x12b1c4=(_0x49728f==null?void 0x0:_0x49728f['conditions'])??[];return _0x12b1c4[_0x567c0e(0x348)]?_0x1af9b(_0x567c0e(0x173),{'className':_0x567c0e(0x3f7),'children':_0x12b1c4[_0x567c0e(0x43f)]((_0x54b847,_0x26d839)=>{const _0x341439=_0x567c0e;let _0x2db0a9=_0x313cf3['find'](_0x4e26c8=>_0x4e26c8['id']===_0x54b847[_0x341439(0x1cb)]);return _0x52e710(_0x341439(0x173),{'className':_0x341439(0x2db),'children':[_0x52e710('div',{'className':_0x341439(0x20a),'children':[_0x1af9b('span',{'className':_0x341439(0x22e),'children':(_0x2db0a9==null?void 0x0:_0x2db0a9[_0x341439(0x3aa)])??_0x54b847[_0x341439(0x1cb)]}),_0x1af9b(_0x341439(0x46c),{'className':_0x341439(0x444),'children':_0x393a02['t'](Ta[_0x54b847[_0x341439(0x3df)]])})]}),Pa(_0x54b847[_0x341439(0x3df)])&&_0x1af9b(Oa,{'disabled':_0x29fb04,'field':_0x2db0a9,'value':_0x54b847['operand'],'onChange':_0x199d10=>_0x258988(ja(_0x49728f,_0x26d839,{'operand':_0x199d10}))})]},La(_0x12b1c4,_0x54b847,_0x26d839));})}):_0x52e710('div',{'className':'univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','children':[_0x1af9b(_0x50dfce,{'className':_0x567c0e(0x44a)}),_0x1af9b(_0x567c0e(0x46c),{'className':_0x567c0e(0x494),'children':_0x393a02['t'](_0x567c0e(0x1fb))})]});}function Da({fields:_0x272f74,filter:_0x7d7459,onChange:_0xb04e45,onClear:_0x289c35}){const _0x470bb2=_0x219009;let _0x4df684=_0xb3eab7(_0x51de0a),_0x4bc6b2=(_0x7d7459==null?void 0x0:_0x7d7459['conditions'])??[];return _0x52e710(_0x470bb2(0x173),{'data-dashboard-filter-inspector':!0x0,'className':_0x470bb2(0x47a),'children':[_0x4bc6b2[_0x470bb2(0x43f)]((_0x266a2a,_0x4e6c49)=>{const _0x1e9368=_0x470bb2;let _0x433260=_0x272f74['find'](_0x5af14f=>_0x5af14f['id']===_0x266a2a['fieldId'])??_0x272f74[0x0],_0xe4a742=Ma(_0x433260);return _0x52e710(_0x1e9368(0x198),{'className':_0x1e9368(0x2ef),'children':[_0x52e710(_0x1e9368(0x173),{'className':_0x1e9368(0x24a),'children':[_0x1af9b(_0x8bae00,{'value':_0x266a2a['fieldId'],'options':_0x272f74[_0x1e9368(0x43f)](_0x4fee9f=>({'value':_0x4fee9f['id'],'label':_0x4fee9f[_0x1e9368(0x3aa)]})),'onChange':_0x2299e5=>{let _0x44f094=_0x272f74['find'](_0x2a0462=>_0x2a0462['id']===_0x2299e5);if(!_0x44f094)return;let _0x545ba1=Ma(_0x44f094)[0x0];_0xb04e45(ja(_0x7d7459,_0x4e6c49,Aa(_0x44f094,_0x545ba1)));}}),_0x1af9b(_0x2e1096,{'type':'button','variant':_0x1e9368(0x209),'aria-label':_0x4df684['t'](_0x1e9368(0x1a9)),'className':'univer-size-8\x20univer-p-0\x20univer-text-red-500','onClick':()=>_0xb04e45(ka(_0x7d7459,_0x4bc6b2[_0x1e9368(0x498)]((_0x21030d,_0x5412e2)=>_0x5412e2!==_0x4e6c49))),'children':_0x1af9b(_0x68937f,{})})]}),_0x1af9b(_0x8bae00,{'value':_0x266a2a[_0x1e9368(0x3df)],'options':_0xe4a742[_0x1e9368(0x43f)](_0x5e633f=>({'value':_0x5e633f,'label':_0x4df684['t'](Ta[_0x5e633f])})),'onChange':_0x57e4ba=>{const _0x2582a8=_0x1e9368;let _0x2dad2f=_0xe4a742[_0x2582a8(0x3ae)](_0xb6f1d9=>_0xb6f1d9===_0x57e4ba);_0x2dad2f&&_0xb04e45(ja(_0x7d7459,_0x4e6c49,{'operator':_0x2dad2f,'operand':Na(_0x433260)}));}}),Pa(_0x266a2a[_0x1e9368(0x3df)])&&_0x1af9b(Oa,{'field':_0x433260,'value':_0x266a2a[_0x1e9368(0x215)],'onChange':_0x5f41c5=>_0xb04e45(ja(_0x7d7459,_0x4e6c49,{'operand':_0x5f41c5}))})]},La(_0x4bc6b2,_0x266a2a,_0x4e6c49));}),_0x52e710(_0x2e1096,{'type':_0x470bb2(0x1c2),'variant':_0x470bb2(0x209),'className':'univer-w-full\x20univer-justify-start\x20univer-text-primary-600','disabled':!_0x272f74['length'],'onClick':()=>{let _0x5c7d1f=_0x272f74[0x0];if(!_0x5c7d1f)return;let _0x2e5f81=Ma(_0x5c7d1f)[0x0];_0xb04e45(ka(_0x7d7459,[..._0x4bc6b2,Aa(_0x5c7d1f,_0x2e5f81)]));},'children':[_0x1af9b(_0x5a5e3d,{}),_0x4df684['t']('bases-dashboard-ui.dashboardInspector.newCondition')]}),_0x4bc6b2['length']>0x0&&_0x1af9b(_0x2e1096,{'type':'button','variant':_0x470bb2(0x209),'className':_0x470bb2(0x339),'onClick':_0x289c35,'children':_0x4df684['t'](_0x470bb2(0x204))})]});}function Oa({disabled:_0x439d52,field:_0x1c15ec,onChange:_0x5335e2,value:_0x3306a4}){const _0x194dec=_0x219009;let _0x457822=_0xb3eab7(_0x51de0a),[_0x41f77d,_0x3e11e1]=_0x277721({'value':_0x3306a4,'text':String(_0x3306a4??'')});Object['is'](_0x41f77d['value'],_0x3306a4)||_0x3e11e1({'value':_0x3306a4,'text':String(_0x3306a4??'')});let _0x3a7b75=_0x41f77d[_0x194dec(0x209)],_0x452fcb=_0x498411=>_0x3e11e1({'value':_0x3306a4,'text':_0x498411}),_0x4bdf24=_0x1c15ec==null?void 0x0:_0x1c15ec[_0x194dec(0x4b9)];if(_0x4bdf24===_0x3f2f3b[_0x194dec(0x2e2)]){let _0x20495a=_0x3306a4===!0x0||_0x3306a4===_0x194dec(0x1be);return _0x52e710(_0x2e1096,{'type':_0x194dec(0x1c2),'variant':_0x194dec(0x1ca),'disabled':_0x439d52,'className':'univer-w-full\x20univer-justify-start','onClick':()=>_0x5335e2(!_0x20495a),'children':[_0x1af9b(_0x5e364b,{'checked':_0x20495a,'disabled':_0x439d52,'onChange':()=>void 0x0}),_0x20495a?_0x457822['t'](_0x194dec(0x3f8)):_0x457822['t'](_0x194dec(0x47d))]});}return Ra(_0x4bdf24)?_0x439d52?_0x1af9b(_0x2e1096,{'type':_0x194dec(0x1c2),'variant':'default','className':_0x194dec(0x339),'disabled':!0x0,'children':_0x8f4376(_0x3306a4==null||_0x3306a4===''?void 0x0:String(_0x3306a4))['format']('YYYY-MM-DD')}):_0x1af9b(_0x4233f7,{'className':_0x194dec(0x339),'value':_0x8f4376(_0x3306a4==null||_0x3306a4===''?void 0x0:String(_0x3306a4))[_0x194dec(0x1b4)](),'onValueChange':_0x2747d0=>_0x5335e2(_0x8f4376(_0x2747d0)[_0x194dec(0x467)](_0x194dec(0x3bf)))}):Ba(_0x1c15ec)?_0x1af9b(_0x27525a,{'className':_0x194dec(0x339),'disabled':_0x439d52,'value':Array[_0x194dec(0x1f1)](_0x3306a4)?_0x3306a4[_0x194dec(0x43f)](String):[],'options':Fa(_0x1c15ec),'onChange':_0x5335e2}):_0x4bdf24===_0x3f2f3b[_0x194dec(0x3d6)]||_0x4bdf24===_0x3f2f3b[_0x194dec(0x300)]||_0x4bdf24===_0x3f2f3b[_0x194dec(0x3f1)]?_0x1af9b(_0x8bae00,{'className':'univer-w-full','disabled':_0x439d52,'value':String(_0x3306a4??''),'options':[{'value':'','label':_0x457822['t'](_0x194dec(0x171))},...Fa(_0x1c15ec)],'onChange':_0x5335e2}):za(_0x4bdf24)?_0x1af9b(_0x4f1ee0,{'className':_0x194dec(0x339),'disabled':_0x439d52,'inputMode':'decimal','value':_0x3a7b75,'aria-invalid':_0x3a7b75!==''&&!Number['isFinite'](Number(_0x3a7b75)),'onChange':_0x54dd12=>{const _0x348526=_0x194dec;_0x452fcb(_0x54dd12),_0x54dd12===''?_0x5335e2(''):Number[_0x348526(0x2f6)](Number(_0x54dd12))&&_0x5335e2(Number(_0x54dd12));},'onBlur':()=>_0x452fcb(String(_0x3306a4??''))}):_0x1af9b(_0x4f1ee0,{'disabled':_0x439d52,'value':String(_0x3306a4??''),'placeholder':_0x457822['t'](_0x194dec(0x257)),'onChange':_0x5335e2});}function ka(_0x333e27,_0x499483){const _0x43df6b=_0x219009;return{'conjunction':(_0x333e27==null?void 0x0:_0x333e27[_0x43df6b(0x41c)])??_0x47b446['AND'],'conditions':_0x499483};}function Aa(_0x28faea,_0x533ed2){return Pa(_0x533ed2)?{'fieldId':_0x28faea['id'],'operator':_0x533ed2,'operand':Na(_0x28faea)}:{'fieldId':_0x28faea['id'],'operator':_0x533ed2};}function ja(_0x5783ab,_0x515960,_0x2e9728){const _0x15e987=_0x219009;return ka(_0x5783ab,((_0x5783ab==null?void 0x0:_0x5783ab['conditions'])??[])[_0x15e987(0x43f)]((_0x12f0c8,_0x3cab25)=>_0x3cab25===_0x515960?{..._0x12f0c8,..._0x2e9728}:_0x12f0c8));}function Ma(_0x384fef){const _0x53a436=_0x219009;let _0x54deb4=[_0x58020d[_0x53a436(0x17b)],_0x58020d['IS_NOT_EMPTY']];switch(_0x384fef==null?void 0x0:_0x384fef[_0x53a436(0x4b9)]){case _0x3f2f3b[_0x53a436(0x327)]:case _0x3f2f3b[_0x53a436(0x271)]:case _0x3f2f3b['Progress']:case _0x3f2f3b[_0x53a436(0x176)]:return[_0x58020d['IS'],_0x58020d[_0x53a436(0x3fe)],_0x58020d[_0x53a436(0x3ff)],_0x58020d[_0x53a436(0x410)],..._0x54deb4];case _0x3f2f3b[_0x53a436(0x1ed)]:case _0x3f2f3b[_0x53a436(0x1a7)]:case _0x3f2f3b[_0x53a436(0x212)]:return[_0x58020d['IS'],_0x58020d['IS_NOT'],_0x58020d[_0x53a436(0x400)],_0x58020d['AFTER'],..._0x54deb4];case _0x3f2f3b[_0x53a436(0x2e2)]:return[_0x58020d['IS'],_0x58020d[_0x53a436(0x3fe)]];default:return[_0x58020d['IS'],_0x58020d['IS_NOT'],_0x58020d[_0x53a436(0x463)],_0x58020d[_0x53a436(0x25e)],..._0x54deb4];}}function Na(_0x41196c){const _0x2e8a87=_0x219009;return _0x41196c?_0x41196c[_0x2e8a87(0x4b9)]===_0x3f2f3b[_0x2e8a87(0x2e2)]?!0x1:Ra(_0x41196c[_0x2e8a87(0x4b9)])?_0x8f4376()[_0x2e8a87(0x467)](_0x2e8a87(0x3bf)):Ba(_0x41196c)?[]:'':'';}function Pa(_0x199ff2){const _0x3e2148=_0x219009;return _0x199ff2!==_0x58020d[_0x3e2148(0x17b)]&&_0x199ff2!==_0x58020d[_0x3e2148(0x406)];}function Fa(_0x313354){const _0xdba25f=_0x219009;var _0x26bb25;return(Array[_0xdba25f(0x1f1)](_0x313354==null||(_0x26bb25=_0x313354[_0xdba25f(0x2dc)])==null?void 0x0:_0x26bb25['options'])?_0x313354['config'][_0xdba25f(0x3d0)]:[])['map']((_0x375ace,_0x2a753a)=>{const _0x208b73=_0xdba25f;if(typeof _0x375ace==_0x208b73(0x380))return{'label':_0x375ace,'value':_0x375ace};if(!Ia(_0x375ace))return{'label':String(_0x2a753a+0x1),'value':String(_0x2a753a+0x1)};let _0x4bf735=_0x375ace,_0x4d75f4=String(_0x4bf735[_0x208b73(0x3aa)]??_0x4bf735['id']??_0x2a753a+0x1),_0x47c894=String(_0x4bf735['id']??_0x4d75f4);return{'label':_0x4d75f4,'value':/^opt-\d+$/[_0x208b73(0x369)](_0x47c894)?_0x4d75f4:_0x47c894};});}function Ia(_0x47b7c8){const _0x53b5eb=_0x219009;return typeof _0x47b7c8==_0x53b5eb(0x43c)&&!!_0x47b7c8;}function La(_0x24156e,_0x44481e,_0x27f197){const _0x7da6f=_0x219009;let _0x12921c=JSON[_0x7da6f(0x18a)](_0x44481e);return _0x12921c+'-'+_0x24156e['slice'](0x0,_0x27f197)[_0x7da6f(0x498)](_0x147b36=>JSON[_0x7da6f(0x18a)](_0x147b36)===_0x12921c)[_0x7da6f(0x348)];}function Ra(_0x198748){const _0x216741=_0x219009;return _0x198748===_0x3f2f3b[_0x216741(0x1ed)]||_0x198748===_0x3f2f3b[_0x216741(0x1a7)]||_0x198748===_0x3f2f3b['UpdatedAt'];}function za(_0x178e6b){const _0x15c64e=_0x219009;return _0x178e6b===_0x3f2f3b['Number']||_0x178e6b===_0x3f2f3b['Currency']||_0x178e6b===_0x3f2f3b[_0x15c64e(0x274)]||_0x178e6b===_0x3f2f3b[_0x15c64e(0x176)];}function Ba(_0x23ee80){const _0x3e6711=_0x219009;var _0x42ac13;return(_0x23ee80==null?void 0x0:_0x23ee80[_0x3e6711(0x4b9)])===_0x3f2f3b[_0x3e6711(0x1f7)]||(_0x23ee80==null?void 0x0:_0x23ee80[_0x3e6711(0x4b9)])===_0x3f2f3b[_0x3e6711(0x300)]||(_0x23ee80==null?void 0x0:_0x23ee80[_0x3e6711(0x4b9)])===_0x3f2f3b['Person']&&((_0x42ac13=_0x23ee80[_0x3e6711(0x2dc)])==null?void 0x0:_0x42ac13[_0x3e6711(0x240)])===!0x0;}function Va({base:_0x1733f6,chartRuntime:_0xa0da5f,onChange:_0x26f75e,onClose:_0x485741,onSelectBackgroundImage:_0xcd50f,onSelectImage:_0x434da5,unitId:_0x2415b0,widget:_0x48d446}){const _0xc9c9d9=_0x219009;let _0x5903f5=_0xb3eab7(_0x4a773c),_0x186490=_0xb3eab7(_0x51de0a),_0x5680a3=_0x1733f6['getSnapshot'](),_0xc40e26=_0xc9c9d9(0x35c)in _0x48d446?_0x5680a3['tables'][_0x48d446[_0xc9c9d9(0x35c)]]:void 0x0,_0xa3b438=_0x48d446[_0xc9c9d9(0x4b9)]===_0xf5049a[_0xc9c9d9(0x1a1)]?_0xc40e26==null?void 0x0:_0xc40e26[_0xc9c9d9(0x2ea)][_0x48d446[_0xc9c9d9(0x4c1)]]:void 0x0,_0x1a42d3=_0x186490['t'](Ja(_0x48d446));return _0x52e710(_0xc9c9d9(0x2a1),{'data-dashboard-inspector':!0x0,'className':_0xc9c9d9(0x332),'children':[_0x52e710(_0xc9c9d9(0x401),{'className':'univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-px-4\x20dark:!univer-border-gray-700','children':[_0x1af9b('h3',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0x1a42d3}),_0x1af9b(_0x2e1096,{'type':_0xc9c9d9(0x1c2),'size':_0xc9c9d9(0x43e),'variant':_0xc9c9d9(0x209),'aria-label':_0x186490['t']('bases-dashboard-ui.dashboardInspector.close'),'onClick':_0x485741,'children':_0x1af9b(_0x68937f,{})})]}),_0x48d446[_0xc9c9d9(0x4b9)]===_0xf5049a[_0xc9c9d9(0x1a1)]&&(qa(_0xa3b438)&&_0xa0da5f?_0x1af9b(ba,{'runtime':_0xa0da5f,'sourceChart':_0xa3b438[_0xc9c9d9(0x2dc)]['chart'],'sourceName':((_0xc40e26==null?void 0x0:_0xc40e26[_0xc9c9d9(0x3aa)])??'')+_0xc9c9d9(0x2c6)+_0xa3b438[_0xc9c9d9(0x3aa)],'widget':_0x48d446,'onChange':_0x26f75e,'onEditData':()=>{const _0x3ed9e0=_0xc9c9d9;_0x5903f5[_0x3ed9e0(0x43d)](_0x1939e2['id'],{'unitId':_0x2415b0,'tableId':_0x48d446['tableId'],'viewId':_0x48d446['pivotViewId']})['catch'](()=>void 0x0);}}):_0x1af9b(Ga,{'message':qa(_0xa3b438)?_0x186490['t']('bases-dashboard-ui.dashboardInspector.loading'):_0x186490['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})),_0x48d446[_0xc9c9d9(0x4b9)]===_0xf5049a[_0xc9c9d9(0x219)]&&_0x1af9b(Ca,{'base':_0x1733f6,'widget':_0x48d446,'onChange':_0x26f75e,'onSelectBackgroundImage':_0xcd50f}),_0x48d446[_0xc9c9d9(0x4b9)]===_0xf5049a[_0xc9c9d9(0x44b)]&&_0x1af9b(Ua,{'base':_0x1733f6,'onChange':_0x26f75e,'widget':_0x48d446}),_0x48d446[_0xc9c9d9(0x4b9)]===_0xf5049a['Text']&&_0x1af9b(Wa,{'onChange':_0x26f75e,'widget':_0x48d446}),_0x48d446[_0xc9c9d9(0x4b9)]===_0xf5049a['Image']&&_0x1af9b(Ha,{'onChange':_0x26f75e,'onSelectImage':_0x434da5,'widget':_0x48d446})]});}function Ha({onChange:_0x169f48,onSelectImage:_0x3527c7,widget:_0xfd7bbd}){const _0xe25508=_0x219009;let _0x32cee7=_0xb3eab7(_0x51de0a);return _0x52e710('div',{'className':_0xe25508(0x2f8),'children':[_0x52e710(_0x2e1096,{'className':'univer-w-full','onClick':()=>_0x3527c7()['then'](_0x56f371=>_0x56f371&&_0x169f48({..._0xfd7bbd,'source':_0x56f371[_0xe25508(0x252)],'sourceType':_0x56f371[_0xe25508(0x33f)],'alt':_0x56f371['name']}))['catch'](()=>void 0x0),'children':[_0x1af9b(_0x5a5e3d,{}),_0x32cee7['t'](_0xe25508(0x27a))]}),_0x52e710(_0xe25508(0x1d6),{'className':_0xe25508(0x359),'children':[_0x1af9b('span',{'children':_0x32cee7['t'](_0xe25508(0x3ef))}),_0x1af9b(_0x35fc77,{'items':[{'value':_0xe25508(0x3de),'label':_0x32cee7['t'](_0xe25508(0x480))},{'value':_0xe25508(0x3b5),'label':_0x32cee7['t'](_0xe25508(0x4a1))},{'value':'original','label':_0x32cee7['t'](_0xe25508(0x350))}],'value':_0xfd7bbd['displayMode']??_0xe25508(0x3de),'onChange':_0x25854a=>_0x169f48({..._0xfd7bbd,'displayMode':_0x25854a})['catch'](()=>void 0x0)})]})]});}function Ua({base:_0x566a81,onChange:_0x48afb7,widget:_0x4bff24}){const _0x4f905c=_0x219009;let _0x5cce84=_0x566a81[_0x4f905c(0x206)]()[_0x4f905c(0x44e)][_0x4bff24['tableId']],_0x3025c0=_0x5cce84==null?void 0x0:_0x5cce84[_0x4f905c(0x3af)]['find'](_0x4a281f=>_0x5cce84[_0x4f905c(0x2ea)][_0x4a281f]),_0x10c64f=_0x3025c0?_0x5cce84==null?void 0x0:_0x5cce84['views'][_0x3025c0]:void 0x0,_0x2c9d56=_0x5cce84&&_0x10c64f?_0xfb2dac(_0x5cce84,_0x10c64f):[];return _0x1af9b(Da,{'fields':_0x2c9d56,'filter':_0x4bff24[_0x4f905c(0x498)],'onChange':_0x1ef1a7=>_0x48afb7({..._0x4bff24,'filter':_0x1ef1a7})['catch'](()=>void 0x0),'onClear':()=>_0x48afb7({..._0x4bff24,'filter':null})[_0x4f905c(0x2c9)](()=>void 0x0)});}function Wa({onChange:_0x400d18,widget:_0x1329dc}){const _0x45d6c7=_0x219009;let _0x3bf782=_0xb3eab7(_0x51de0a),_0x1c3c13=_0xb3eab7(_0x52f5e2),_0x5be31f=_0x97415f(()=>_0x1c3c13[_0x45d6c7(0x341)],_0x1c3c13[_0x45d6c7(0x2ed)](),!0x1,[_0x1c3c13]),_0x52be49=Hr(_0x1329dc),_0x434c76=_0x4be238=>_0x400d18({..._0x1329dc,'appearance':{..._0x52be49,..._0x4be238}})[_0x45d6c7(0x2c9)](()=>void 0x0);return _0x52e710(_0x45d6c7(0x173),{'className':_0x45d6c7(0x3f2),'children':[_0x1af9b(_0x439fc9,{'defaultValue':Ur(_0x1329dc['document']),'rows':0x8,'onBlur':_0x120604=>_0x400d18({..._0x1329dc,'document':Wr(_0x1329dc[_0x45d6c7(0x295)],_0x120604[_0x45d6c7(0x40c)][_0x45d6c7(0x286)])})[_0x45d6c7(0x2c9)](()=>void 0x0)}),_0x1af9b(_0x3b005c,{'emptyLabel':_0x3bf782['t'](_0x45d6c7(0x435)),'label':_0x3bf782['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x5be31f[_0x45d6c7(0x3bc)][0x0],'resetLabel':_0x3bf782['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x52be49[_0x45d6c7(0x34d)]??null,'onChange':_0x4d066a=>_0x434c76({'backgroundColor':_0x4d066a??void 0x0})}),_0x1af9b(_0x3b005c,{'emptyLabel':_0x3bf782['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x3bf782['t'](_0x45d6c7(0x3dc)),'pickerFallbackValue':_0x5be31f['gray'][0x3e8],'resetLabel':_0x3bf782['t'](_0x45d6c7(0x477)),'value':_0x52be49[_0x45d6c7(0x321)]??null,'onChange':_0x1c368d=>_0x434c76({'textColor':_0x1c368d??void 0x0})}),_0x1af9b(Ka,{'label':_0x3bf782['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x1af9b(_0x35fc77,{'items':[{'value':'left','label':_0x3bf782['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':_0x45d6c7(0x403),'label':_0x3bf782['t'](_0x45d6c7(0x302))},{'value':'right','label':_0x3bf782['t'](_0x45d6c7(0x2fd))}],'value':_0x52be49[_0x45d6c7(0x3a9)],'onChange':_0x5b172f=>_0x434c76({'alignment':_0x5b172f})})}),_0x52e710(Ka,{'label':_0x3bf782['t'](_0x45d6c7(0x2a7)),'children':[_0x1af9b(_0x35fc77,{'items':[{'value':_0x45d6c7(0x2a9),'label':_0x3bf782['t'](_0x45d6c7(0x45e))},{'value':_0x45d6c7(0x492),'label':_0x3bf782['t'](_0x45d6c7(0x326))}],'value':_0x52be49[_0x45d6c7(0x4b2)],'onChange':_0x3870e7=>_0x434c76({'fontSizeMode':_0x3870e7})}),_0x52be49['fontSizeMode']===_0x45d6c7(0x492)&&_0x1af9b(_0x770794,{'className':_0x45d6c7(0x488),'min':0xa,'max':0x78,'value':_0x52be49[_0x45d6c7(0x25d)],'onChange':_0x447b28=>_0x434c76({'fontSize':_0x447b28??0x12,'fontSizeMode':_0x45d6c7(0x492)})})]})]});}function Ga({message:_0x2afd92}){const _0x5e7987=_0x219009;return _0x1af9b(_0x5e7987(0x173),{'className':_0x5e7987(0x23b),'children':_0x2afd92});}function Ka({children:_0x24155d,label:_0x98a673}){const _0x332a0f=_0x219009;return _0x52e710(_0x332a0f(0x173),{'role':_0x332a0f(0x1a0),'aria-':!0x0,'className':_0x332a0f(0x359),'children':[_0x1af9b(_0x332a0f(0x46c),{'children':_0x98a673}),_0x24155d]});}function qa(_0x19f048){const _0x31be8e=_0x219009;return(_0x19f048==null?void 0x0:_0x19f048[_0x31be8e(0x4b9)])===_0x4ec201[_0x31be8e(0x223)]&&typeof _0x19f048[_0x31be8e(0x2dc)]=='object'&&_0x19f048[_0x31be8e(0x2dc)]!==null&&_0x31be8e(0x3b3)in _0x19f048[_0x31be8e(0x2dc)]&&_0x31be8e(0x2fc)in _0x19f048['config'];}function Ja(_0x57c019){const _0x160e13=_0x219009;switch(_0x57c019[_0x160e13(0x4b9)]){case _0xf5049a[_0x160e13(0x1a1)]:return'bases-dashboard-ui.dashboard.pivotChart';case _0xf5049a[_0x160e13(0x44b)]:return _0x160e13(0x1fb);case _0xf5049a[_0x160e13(0x42d)]:return _0x160e13(0x299);case _0xf5049a[_0x160e13(0x20c)]:return _0x160e13(0x1d3);case _0xf5049a[_0x160e13(0x219)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function Ya({onDelete:_0x2c1752,onEdit:_0x451b35}){const _0x4b3839=_0x219009;let _0x2d5250=_0xb3eab7(_0x51de0a),_0x24d20b=_0x2d5250['t'](_0x4b3839(0x2e1)),_0x2bf8ce=_0x2d5250['t'](_0x4b3839(0x354)),_0x11fd28=_0x2d5250['t'](_0x4b3839(0x2b5));return _0x1af9b(_0x2049bb,{'items':[{'type':'item','children':_0x52e710('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1af9b(_0x579511,{'className':'univer-size-4','aria-hidden':_0x4b3839(0x1be)}),_0x1af9b(_0x4b3839(0x46c),{'children':_0x24d20b})]}),'onSelect':_0x451b35},{'type':_0x4b3839(0x31b)},{'type':_0x4b3839(0x1f9),'variant':_0x4b3839(0x1b8),'children':_0x52e710(_0x4b3839(0x46c),{'className':_0x4b3839(0x4d0),'children':[_0x1af9b(_0x140734,{'className':'univer-size-4','aria-hidden':_0x4b3839(0x1be)}),_0x1af9b('span',{'children':_0x2bf8ce})]}),'onSelect':_0x2c1752}],'children':_0x1af9b(_0x2e1096,{'type':_0x4b3839(0x1c2),'size':_0x4b3839(0x43e),'variant':_0x4b3839(0x209),'title':_0x11fd28,'aria-label':_0x11fd28,'className':'univer-size-6\x20!univer-border\x20!univer-border-solid\x20!univer-border-gray-200\x20!univer-bg-gray-0\x20univer-p-0\x20!univer-shadow-none\x20hover:!univer-bg-gray-100\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900\x20dark:hover:!univer-bg-gray-800','children':_0x1af9b(_0x2ae422,{'className':_0x4b3839(0x2ba),'aria-hidden':_0x4b3839(0x1be)})})});}function Xa({dashboardId:_0x44f9ed,presentation:_0x3c91c7=!0x1,unitId:_0x544037}){const _0x1de5b5=_0x219009;let _0x4fe935=_0xb3eab7(_0x4a773c),_0x2a9155=_0xb3eab7(_0x2b6ea6),_0xb51468=_0xb3eab7(_0xc6de23),_0x5265d0=_0xb3eab7(_0x144775),_0xa5cb7e=_0xb3eab7(_0x51de0a),_0x4b0737=_0xb3eab7(_0x24d6a6),_0x481228=_0xb3eab7(_0x3b1640),_0x2b38d4=_0x52068e(null),[_0x4242a4,_0x1a62be]=_0x277721(!0x1),[_0x3c32a1,_0x410d17]=_0x277721(),[_0x3334e8,_0x565030]=_0x277721(!0x1),[_0x5d120a,_0x2fb087]=_0x277721(()=>new Map()),_0x4111a8=_0x547d95((_0x2df2ca,_0x288499)=>{_0x2fb087(_0x2e1738=>{const _0x3bbf4e=_0x4abf;let _0x4dfe1d=new Map(_0x2e1738);return _0x288499?_0x4dfe1d[_0x3bbf4e(0x217)](_0x2df2ca,_0x288499):_0x4dfe1d['delete'](_0x2df2ca),_0x4dfe1d;});},[]),_0x2c3bd1=_0x97415f(()=>_0x4b0737[_0x1de5b5(0x3a3)][_0x1de5b5(0x20d)](_0x3dd263(()=>_0x4b0737[_0x1de5b5(0x4ca)](_0x544037,_0x44f9ed))),_0x4b0737[_0x1de5b5(0x4ca)](_0x544037,_0x44f9ed),!0x1,[_0x44f9ed,_0x4b0737,_0x544037]),_0x4cca61=_0x5265d0[_0x1de5b5(0x225)](_0x544037,_0x160ed0['UNIVER_BASE']),_0x173f40=_0x97415f(()=>_0x481228[_0x1de5b5(0x330)],{'undos':0x0,'redos':0x0},!0x1,[_0x481228]),_0x9f8b34=vr(_0x544037,_0x44f9ed);if(_0x2153d6(()=>{const _0x2120ee=_0x1de5b5;_0x5265d0[_0x2120ee(0x3e2)](_0x544037),_0x5265d0['focusUnit'](_0x544037);},[_0x5265d0,_0x544037]),_0x2153d6(()=>{const _0x1ee450=_0x1de5b5;let _0x13479c=_0x2b38d4['current'],_0x358f6a=_0x13479c==null?void 0x0:_0x13479c['ownerDocument'];if(!_0x13479c||!_0x358f6a)return;let _0xb0aa13=()=>_0x565030(_0x358f6a[_0x1ee450(0x4bc)]===_0x358f6a[_0x1ee450(0x22d)]),_0x3f5c83=_0x29520b=>{const _0x2dbe97=_0x1ee450;_0x29520b[_0x2dbe97(0x2c1)]==='Escape'&&!_0x29520b[_0x2dbe97(0x2e6)]&&_0x358f6a[_0x2dbe97(0x4bc)]===_0x358f6a[_0x2dbe97(0x22d)]&&_0x358f6a[_0x2dbe97(0x415)]()[_0x2dbe97(0x2c9)](_0xb0aa13);};return _0x358f6a[_0x1ee450(0x371)](_0x1ee450(0x24c),_0xb0aa13),_0x358f6a[_0x1ee450(0x371)](_0x1ee450(0x22b),_0x3f5c83),()=>{const _0x53ec65=_0x1ee450;_0x358f6a['removeEventListener'](_0x53ec65(0x24c),_0xb0aa13),_0x358f6a[_0x53ec65(0x1b9)](_0x53ec65(0x22b),_0x3f5c83);};},[]),!_0x2c3bd1||!_0x4cca61)return null;let _0x3d02a2=_0xd00799=>_0x4fe935[_0x1de5b5(0x43d)](_0x53172b['id'],{'unitId':_0x544037,'dashboardId':_0x44f9ed,'widget':_0xd00799})[_0x1de5b5(0x2c9)](()=>void 0x0),_0x39b17e=(_0x3657a0,_0x4389b8,_0x522f9d)=>{const _0x17799b=_0x1de5b5;let _0x5edd1e=Math['max'](0x0,..._0x2c3bd1[_0x17799b(0x4c5)][_0x17799b(0x1ae)](_0x52ed4f=>{const _0x18fe6a=_0x17799b;var _0x4e26f1;let _0x57fc14=(_0x4e26f1=_0x2c3bd1['widgets'][_0x52ed4f])==null?void 0x0:_0x4e26f1[_0x18fe6a(0x16e)];return _0x57fc14?[_0x57fc14[_0x18fe6a(0x38b)]+_0x57fc14[_0x18fe6a(0x224)]]:[];})),_0x56d542=_0x17799b(0x41d)+_0x3dac7b(0x8),_0x1923a9={'column':0x0,'row':_0x5edd1e,'columnSpan':_0x4389b8,'rowSpan':_0x522f9d};switch(_0x3657a0[_0x17799b(0x4b9)]){case _0xf5049a[_0x17799b(0x1a1)]:return _0x3d02a2({..._0x3657a0,'id':_0x56d542,'layout':_0x1923a9});case _0xf5049a[_0x17799b(0x44b)]:return _0x3d02a2({..._0x3657a0,'id':_0x56d542,'layout':_0x1923a9});case _0xf5049a[_0x17799b(0x42d)]:return _0x3d02a2({..._0x3657a0,'id':_0x56d542,'layout':_0x1923a9});case _0xf5049a[_0x17799b(0x20c)]:return _0x3d02a2({..._0x3657a0,'id':_0x56d542,'layout':_0x1923a9});case _0xf5049a[_0x17799b(0x219)]:return _0x3d02a2({..._0x3657a0,'id':_0x56d542,'layout':_0x1923a9});}},_0x50df44=_0x4cca61[_0x1de5b5(0x206)](),_0x5087ad=_0x50df44[_0x1de5b5(0x2aa)]['flatMap'](_0x5012bd=>{const _0x134496=_0x1de5b5;let _0x1097ea=_0x50df44[_0x134496(0x44e)][_0x5012bd];if(!_0x1097ea)return[];let _0x241677=_0x1097ea['viewOrder'][_0x134496(0x1ae)](_0x5c9b02=>{const _0x216a37=_0x134496;let _0x496eef=_0x1097ea['views'][_0x5c9b02];return io(_0x496eef)?[{'type':_0x216a37(0x1f9),'children':_0x496eef[_0x216a37(0x3aa)],'onSelect':()=>_0x39b17e({'type':_0xf5049a[_0x216a37(0x1a1)],'tableId':_0x5012bd,'pivotViewId':_0x5c9b02,'chart':{..._0x496eef[_0x216a37(0x2dc)][_0x216a37(0x2fc)]}},0x6,0xa)}]:[];});return[{'type':_0x134496(0x390),'children':_0x1097ea[_0x134496(0x3aa)],'options':[..._0x241677,..._0x241677[_0x134496(0x348)]?[{'type':_0x134496(0x31b)}]:[],{'type':_0x134496(0x1f9),'children':_0xa5cb7e['t'](_0x134496(0x1fb)),'onSelect':()=>_0x39b17e({'type':_0xf5049a[_0x134496(0x44b)],'tableId':_0x5012bd,'filter':null},0x6,0x8)}]}];}),_0x5b5d2b=[..._0x5087ad,..._0x5087ad[_0x1de5b5(0x348)]?[{'type':_0x1de5b5(0x31b)}]:[],{'type':_0x1de5b5(0x1f9),'children':_0xa5cb7e['t'](_0x1de5b5(0x299)),'onSelect':()=>_0x39b17e({'type':_0xf5049a['Text'],'document':eo()},0x4,0x6)},{'type':'item','children':_0xa5cb7e['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>to(_0x2a9155)[_0x1de5b5(0x3ab)](_0x3071b9=>_0x3071b9&&_0x39b17e({'type':_0xf5049a['Image'],'source':_0x3071b9[_0x1de5b5(0x252)],'sourceType':_0x3071b9[_0x1de5b5(0x33f)],'alt':_0x3071b9['name'],'displayMode':_0x1de5b5(0x3de)},0x4,0x6))},{'type':_0x1de5b5(0x1f9),'children':_0xa5cb7e['t'](_0x1de5b5(0x35d)),'onSelect':()=>{const _0x398aff=_0x1de5b5;let _0x18662e=_0x50df44['tableOrder']['find'](_0x1af195=>_0x50df44['tables'][_0x1af195]);_0x18662e&&_0x39b17e({'type':_0xf5049a[_0x398aff(0x219)],'tableId':_0x18662e,'shapeType':_0x5039fb[_0x398aff(0x313)],'shapeData':_0x4027ac(),'description':_0xa5cb7e['t'](_0x398aff(0x35d))},0x4,0x6);}}],_0xace698=_0x3c32a1?_0x2c3bd1[_0x1de5b5(0x4a2)][_0x3c32a1]:void 0x0,_0x4d1a7e=async()=>{const _0x408dda=_0x1de5b5;let _0x3e5b45=_0x2b38d4[_0x408dda(0x2bd)];if(!_0x3e5b45)return;let _0x4f5f64=_0x3e5b45['ownerDocument'];_0x4f5f64[_0x408dda(0x4bc)]===_0x4f5f64[_0x408dda(0x22d)]?await _0x4f5f64['exitFullscreen']():await _0x4f5f64[_0x408dda(0x22d)][_0x408dda(0x42e)]();},_0x488d9a=_0x3c91c7||_0x3334e8,_0x5dae0b=_0x9f8b34&&!_0x488d9a;return _0x52e710(_0x1de5b5(0x173),{'ref':_0x2b38d4,'className':_0x1de5b5(0x405)+(_0x3334e8?_0x1de5b5(0x1e2):'univer-relative\x20univer-z-10')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[!_0x488d9a&&_0x52e710(_0x1de5b5(0x401),{'className':_0x1de5b5(0x3b2),'children':[_0x1af9b(_0x4c651f,{'className':_0x1de5b5(0x3c7)}),_0x1af9b('h2',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0x2c3bd1[_0x1de5b5(0x3aa)]}),_0x1af9b(_0x520a27,{'target':{'unitId':_0x544037,'objectId':_0x5d041f(_0x44f9ed),'objectType':_0x2e13ef[_0x1de5b5(0x38c)]},'name':_0x2c3bd1['name'],'commandId':_0x54bb96['id'],'exists':()=>!!_0x4b0737[_0x1de5b5(0x4ca)](_0x544037,_0x44f9ed)},_0x544037+'/'+_0x44f9ed),_0x1af9b(_0x782d5,{'unitId':_0x544037}),_0x1af9b(_0x2e1096,{'type':_0x1de5b5(0x1c2),'size':_0x1de5b5(0x43e),'variant':'text','aria-label':_0xa5cb7e['t'](_0x1de5b5(0x273)),'disabled':!_0x9f8b34||_0x173f40['undos']===0x0,'onClick':()=>_0x4fe935['executeCommand'](_0x3d9772['id'])[_0x1de5b5(0x2c9)](()=>void 0x0),'children':_0x1af9b(_0x44b3b1,{})}),_0x1af9b(_0x2e1096,{'type':_0x1de5b5(0x1c2),'size':_0x1de5b5(0x43e),'variant':'text','aria-label':_0xa5cb7e['t']('bases-dashboard-ui.dashboard.redo'),'disabled':!_0x9f8b34||_0x173f40['redos']===0x0,'onClick':()=>_0x4fe935[_0x1de5b5(0x43d)](_0x372344['id'])[_0x1de5b5(0x2c9)](()=>void 0x0),'children':_0x1af9b(_0x21d4d7,{})}),_0x1af9b(_0x2e1096,{'type':'button','size':'small','variant':_0x1de5b5(0x209),'aria-label':_0xa5cb7e['t'](_0x1de5b5(0x3e4)),'onClick':()=>_0x4d1a7e()[_0x1de5b5(0x2c9)](()=>void 0x0),'children':_0x1af9b(_0x19f77a,{})}),_0x1af9b(_0x2049bb,{'items':_0x5b5d2b,'children':_0x52e710(_0x2e1096,{'variant':'primary','disabled':!_0x9f8b34,'children':[_0x1af9b(_0x5a5e3d,{}),_0xa5cb7e['t'](_0x1de5b5(0x352))]})})]}),_0x52e710(_0x1de5b5(0x173),{'className':_0x1de5b5(0x3db),'children':[_0x1af9b('div',{'className':_0x1de5b5(0x22a),'children':_0x1af9b(da,{'dashboard':_0x2c3bd1,'dragLabel':_0xa5cb7e['t'](_0x1de5b5(0x2cd)),'editable':_0x5dae0b,'resizeLabel':_0xa5cb7e['t'](_0x1de5b5(0x468)),'widgetLabel':_0x2225ee=>_0xa5cb7e['t'](ro(_0x2225ee[_0x1de5b5(0x4b9)])),'selectedWidgetId':_0x5dae0b?_0x3c32a1:void 0x0,'onSelectWidget':_0x5dae0b?_0x19d8c7=>{_0x410d17(_0x19d8c7),_0x19d8c7||_0x1a62be(!0x1);}:void 0x0,'onLayoutsCommit':_0x34d234=>{const _0x530262=_0x1de5b5;let _0x1fa0f9={..._0x2c3bd1[_0x530262(0x4a2)]};_0x34d234[_0x530262(0x2a3)]((_0x2c279b,_0x387850)=>{let _0x150cb4=_0x1fa0f9[_0x387850];_0x150cb4&&(_0x1fa0f9[_0x387850]={..._0x150cb4,'layout':_0x2c279b});}),_0x4fe935[_0x530262(0x43d)](_0x570003['id'],{'unitId':_0x544037,'dashboard':{..._0x2c3bd1,'widgets':_0x1fa0f9}})['catch'](()=>void 0x0);},'renderWidget':_0x4c7757=>_0x1af9b(Za,{'base':_0x4cca61,'dashboard':_0x2c3bd1,'unitId':_0x544037,'widget':_0x4c7757,'onChange':_0x3d02a2,'onChartRuntimeChange':_0x4111a8}),'renderWidgetActions':_0x5be0bd=>_0x1af9b(Ya,{'onEdit':()=>{_0x410d17(_0x5be0bd['id']),_0x1a62be(!0x0);},'onDelete':()=>{const _0x5006d1=_0x1de5b5;_0x3c32a1===_0x5be0bd['id']&&(_0x410d17(void 0x0),_0x1a62be(!0x1)),_0x4fe935[_0x5006d1(0x43d)](_0x451a8b['id'],{'unitId':_0x544037,'dashboardId':_0x44f9ed,'widgetId':_0x5be0bd['id']})[_0x5006d1(0x2c9)](()=>void 0x0);}})})}),_0x5dae0b&&_0x4242a4&&_0xace698&&_0x1af9b(Va,{'base':_0x4cca61,'chartRuntime':_0x5d120a[_0x1de5b5(0x411)](_0xace698['id']),'unitId':_0x544037,'widget':_0xace698,'onChange':_0x3d02a2,'onClose':()=>_0x1a62be(!0x1),'onSelectBackgroundImage':()=>no(_0xb51468),'onSelectImage':()=>to(_0x2a9155)})]})]});}function Za({base:_0x51c8d7,dashboard:_0x255a5e,onChange:_0x10e0a2,onChartRuntimeChange:_0x11acba,unitId:_0x504488,widget:_0x4002d6}){const _0x576336=_0x219009;let _0xa4fa13=_0x2a7f67(()=>_0x255a5e[_0x576336(0x4c5)][_0x576336(0x1ae)](_0x554522=>{const _0x3b1364=_0x576336;let _0x35f663=_0x255a5e['widgets'][_0x554522];return(_0x35f663==null?void 0x0:_0x35f663[_0x3b1364(0x4b9)])===_0xf5049a['TableFilter']&&_0x35f663[_0x3b1364(0x35c)]===(_0x3b1364(0x35c)in _0x4002d6?_0x4002d6[_0x3b1364(0x35c)]:'')&&_0x35f663['filter']?[_0x35f663[_0x3b1364(0x498)]]:[];}),[_0x255a5e,_0x4002d6]);switch(_0x4002d6[_0x576336(0x4b9)]){case _0xf5049a[_0x576336(0x1a1)]:return _0x1af9b(zr,{'filters':_0xa4fa13,'unitId':_0x504488,'widget':_0x4002d6,'onRuntimeChange':_0x11acba});case _0xf5049a[_0x576336(0x44b)]:return _0x1af9b(Ea,{'fields':Qa(_0x51c8d7,_0x4002d6[_0x576336(0x35c)]),'filter':_0x4002d6[_0x576336(0x498)],'onChange':_0x43272c=>_0x10e0a2({..._0x4002d6,'filter':_0x43272c})[_0x576336(0x2c9)](()=>void 0x0)});case _0xf5049a['Text']:return _0x1af9b(Gr,{'widget':_0x4002d6});case _0xf5049a[_0x576336(0x20c)]:return _0x1af9b($a,{'widget':_0x4002d6});case _0xf5049a['FormulaShape']:return _0x1af9b(kr,{'dashboardId':_0x255a5e['id'],'unitId':_0x504488,'widget':_0x4002d6});}}function Qa(_0xf0eb58,_0xadbc17){const _0x51fdac=_0x219009;let _0x503942=_0xf0eb58[_0x51fdac(0x206)]()[_0x51fdac(0x44e)][_0xadbc17],_0x3d0a4c=_0x503942==null?void 0x0:_0x503942[_0x51fdac(0x3af)][_0x51fdac(0x3ae)](_0x1bc978=>_0x503942[_0x51fdac(0x2ea)][_0x1bc978]),_0x571c6a=_0x3d0a4c?_0x503942==null?void 0x0:_0x503942[_0x51fdac(0x2ea)][_0x3d0a4c]:void 0x0;return _0x503942&&_0x571c6a?_0xfb2dac(_0x503942,_0x571c6a):[];}function $a({widget:_0x376cbc}){const _0x20480b=_0x219009;let _0x14fe41=_0xb3eab7(_0x2b6ea6),[_0x3afe83,_0x5acadb]=_0x277721(_0x376cbc[_0x20480b(0x33f)]===_0x55ad71['UUID']?'':_0x376cbc[_0x20480b(0x252)]);return _0x2153d6(()=>{const _0x4058f0=_0x20480b;let _0x898ac0=!0x0;return _0x14fe41[_0x4058f0(0x49e)](_0x376cbc[_0x4058f0(0x252)],_0x376cbc[_0x4058f0(0x33f)])['then'](_0x5c3769=>{_0x898ac0&&_0x5acadb(_0x5c3769);})[_0x4058f0(0x2c9)](()=>void 0x0),()=>{_0x898ac0=!0x1;};},[_0x14fe41,_0x376cbc['source'],_0x376cbc[_0x20480b(0x33f)]]),_0x3afe83?_0x1af9b(_0x20480b(0x173),{'role':_0x376cbc[_0x20480b(0x192)]?_0x20480b(0x397):void 0x0,'aria-label':_0x376cbc[_0x20480b(0x192)]||void 0x0,'data-dashboard-image':_0x376cbc['id'],'className':_0x20480b(0x48d),'style':br(_0x3afe83,_0x376cbc[_0x20480b(0x343)])}):null;}function eo(){const _0x154f8d=_0x219009;let _0x48146a=_0x18fe69(new Set());return{'id':_0x154f8d(0x298)+_0x3dac7b(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x48146a}]},'documentStyle':{}};}function to(_0x1cd28d){return new Promise(_0x4478bf=>{const _0x3b5715=_0x4abf;let _0x225338=document[_0x3b5715(0x314)](_0x3b5715(0x185));_0x225338[_0x3b5715(0x4b9)]='file',_0x225338[_0x3b5715(0x2da)]=_0x3b5715(0x363),_0x225338[_0x3b5715(0x371)](_0x3b5715(0x29e),()=>{const _0x73f6c4=_0x3b5715;var _0x44b204;let _0x4949f4=(_0x44b204=_0x225338[_0x73f6c4(0x338)])==null?void 0x0:_0x44b204[0x0];_0x4949f4?_0x1cd28d[_0x73f6c4(0x484)](_0x4949f4)['then'](_0x246593=>{const _0x22eb08=_0x73f6c4;!_0x246593[_0x22eb08(0x252)]||_0x246593[_0x22eb08(0x33f)]===void 0x0?_0x4478bf(null):_0x4478bf({'name':_0x246593[_0x22eb08(0x3aa)],'source':_0x246593[_0x22eb08(0x252)],'sourceType':_0x246593[_0x22eb08(0x33f)]});})[_0x73f6c4(0x2c9)](()=>_0x4478bf(null)):_0x4478bf(null);},{'once':!0x0}),_0x225338[_0x3b5715(0x366)]();});}function no(_0xf26b12){return new Promise(_0x5a855e=>{const _0x2b7f70=_0x4abf;let _0x50630b=document[_0x2b7f70(0x314)]('input');_0x50630b[_0x2b7f70(0x4b9)]=_0x2b7f70(0x4c3),_0x50630b['accept']='image/*',_0x50630b[_0x2b7f70(0x371)]('change',()=>{const _0x34ec36=_0x2b7f70;var _0x5b2ae9;let _0x64db77=(_0x5b2ae9=_0x50630b[_0x34ec36(0x338)])==null?void 0x0:_0x5b2ae9[0x0];_0x64db77?_0xf26b12[_0x34ec36(0x237)](_0x64db77)[_0x34ec36(0x3ab)](_0x441dfe=>{const _0x1adbb7=_0x34ec36;if(!(_0x441dfe!=null&&_0x441dfe[_0x1adbb7(0x252)]))_0x5a855e(null);else{if(_0x441dfe[_0x1adbb7(0x364)]){let _0x3b7d5b=new Image();_0x3b7d5b['src']=_0x441dfe[_0x1adbb7(0x364)],_0xf26b12[_0x1adbb7(0x436)](_0x441dfe[_0x1adbb7(0x252)],_0x441dfe[_0x1adbb7(0x29f)],_0x3b7d5b);}_0x5a855e({'source':_0x441dfe[_0x1adbb7(0x252)],'sourceType':_0x441dfe[_0x1adbb7(0x29f)]});}})['catch'](()=>_0x5a855e(null)):_0x5a855e(null);},{'once':!0x0}),_0x50630b[_0x2b7f70(0x366)]();});}function ro(_0x119196){const _0x2dbfcf=_0x219009;switch(_0x119196){case _0xf5049a[_0x2dbfcf(0x1a1)]:return _0x2dbfcf(0x35b);case _0xf5049a['TableFilter']:return _0x2dbfcf(0x1fb);case _0xf5049a[_0x2dbfcf(0x42d)]:return'bases-dashboard-ui.dashboard.text';case _0xf5049a[_0x2dbfcf(0x20c)]:return _0x2dbfcf(0x1d3);case _0xf5049a['FormulaShape']:return'bases-dashboard-ui.dashboard.formulaShape';}}function io(_0x475881){const _0x143925=_0x219009;return(_0x475881==null?void 0x0:_0x475881[_0x143925(0x4b9)])===_0x4ec201[_0x143925(0x223)]&&typeof _0x475881[_0x143925(0x2dc)]==_0x143925(0x43c)&&_0x475881[_0x143925(0x2dc)]!==null&&_0x143925(0x3b3)in _0x475881[_0x143925(0x2dc)]&&_0x143925(0x2fc)in _0x475881[_0x143925(0x2dc)];}const ao=[{'area':_0x2e2ea1[_0x219009(0x4cd)],'key':_0x219009(0x317),'label':_0x219009(0x297)},{'area':_0x2e2ea1[_0x219009(0x3d4)],'key':_0x219009(0x23d),'label':_0x219009(0x32d)},{'area':_0x2e2ea1[_0x219009(0x2ce)],'key':'rowFields','label':_0x219009(0x3c2)},{'area':_0x2e2ea1['Value'],'key':_0x219009(0x37b),'label':'bases-dashboard-ui.pivot.values'}],oo=[{'value':_0x37b485[_0x219009(0x3b7)],'localeKey':_0x219009(0x347)},{'value':_0x37b485[_0x219009(0x241)],'localeKey':'bases-dashboard-ui.pivot.count'},{'value':_0x37b485[_0x219009(0x220)],'localeKey':_0x219009(0x303)},{'value':_0x37b485[_0x219009(0x49a)],'localeKey':'bases-dashboard-ui.pivot.average'},{'value':_0x37b485[_0x219009(0x2eb)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':_0x37b485[_0x219009(0x466)],'localeKey':_0x219009(0x1e7)},{'value':_0x37b485[_0x219009(0x46e)],'localeKey':'bases-dashboard-ui.pivot.product'},{'value':_0x37b485[_0x219009(0x1e6)],'localeKey':_0x219009(0x34e)},{'value':_0x37b485[_0x219009(0x399)],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x37b485[_0x219009(0x35e)],'localeKey':_0x219009(0x48a)},{'value':_0x37b485[_0x219009(0x402)],'localeKey':'bases-dashboard-ui.pivot.variancePopulation'}];function so(_0x817746){const _0x10f323=_0x219009;let {config:_0x8f1a33,onChange:_0x161a52,table:_0x387f29}=_0x817746,_0xb767d5=_0xb3eab7(_0x51de0a),[_0x27ca97,_0x5bd883]=_0x277721(_0x10f323(0x1c9)),[_0xda6d37,_0x5dc219]=_0x277721(''),[_0x1a3923,_0x3796a4]=_0x277721(null),[_0x58a750,_0x369204]=_0x277721(null),[_0x208ecd,_0x4f52df]=_0x277721(null),[_0x37285a,_0x1f0f7f]=_0x277721(null),_0x7f5a0=_0x52068e(null),_0x5ea77c=_0x2a7f67(()=>_0x387f29[_0x10f323(0x232)][_0x10f323(0x1ae)](_0x5297c4=>{const _0x1c0d4e=_0x10f323;let _0x8c989a=_0x387f29[_0x1c0d4e(0x1c9)][_0x5297c4];return _0x8c989a&&_0x8c989a[_0x1c0d4e(0x235)]!==!0x0&&_0x8c989a[_0x1c0d4e(0x4b9)]!==_0x3f2f3b[_0x1c0d4e(0x47f)]?[_0x8c989a]:[];})[_0x10f323(0x498)](_0x3857f1=>_0x3857f1[_0x10f323(0x3aa)][_0x10f323(0x16f)]()[_0x10f323(0x481)](_0xda6d37['trim']()[_0x10f323(0x16f)]())),[_0xda6d37,_0x387f29]),_0x3cb8fc=_0x1a2614=>{let _0x29820e=_0x26536e(_0x387f29,_0x8f1a33['pivot']);try{_0x1a2614(_0x29820e),_0x161a52({'pivot':_0x29820e['toJSON']()});}finally{_0x29820e['dispose']();}},_0x25ec0e=(_0x50a536,_0x26f039)=>{_0x1a3923&&(_0x3cb8fc(_0x375333=>{const _0x1898d5=_0x4abf;if(_0x1a3923[_0x1898d5(0x4b3)]===_0x1898d5(0x260)){let _0x164ef8=_0x375333['getFieldPositionInfoById'](_0x1a3923['id']),_0x509b7b=_0x164ef8[_0x1898d5(0x3f4)]===_0x50a536&&_0x164ef8[_0x1898d5(0x3a4)]<_0x26f039?_0x26f039-0x1:_0x26f039;_0x375333[_0x1898d5(0x44c)](_0x1a3923['id'],_0x50a536,_0x509b7b);}else go(_0x375333,_0x1a3923['id'],_0x50a536,_0x26f039);}),_0x3796a4(null),_0x369204(null));};return _0x52e710(_0x10f323(0x173),{'className':_0x10f323(0x30d),'children':[_0x1af9b(_0x531ef4,{'ariaLabel':_0xb767d5['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'className':_0x10f323(0x2d8),'items':[{'label':_0xb767d5['t'](_0x10f323(0x284)),'panelId':'base-pivot-fields','value':_0x10f323(0x1c9)},{'label':_0xb767d5['t'](_0x10f323(0x4cb)),'panelId':_0x10f323(0x3cc),'value':_0x10f323(0x3d0)}],'value':_0x27ca97,'onChange':_0x5bd883}),_0x1af9b(_0x10f323(0x173),{'ref':_0x7f5a0,'className':_0x43bd71(_0x10f323(0x24e),_0x178403),'onDragOver':_0x55f9b5=>{const _0x23e021=_0x10f323;let _0x3d8bae=_0x7f5a0['current'];if(!_0x3d8bae)return;let _0x3c1307=_0x3d8bae[_0x23e021(0x30f)]();_0x55f9b5[_0x23e021(0x1a8)]<_0x3c1307['top']+0x30?_0x3d8bae[_0x23e021(0x41b)]-=0x10:_0x55f9b5[_0x23e021(0x1a8)]>_0x3c1307[_0x23e021(0x196)]-0x30&&(_0x3d8bae[_0x23e021(0x41b)]+=0x10);},'children':_0x27ca97===_0x10f323(0x3d0)?_0x1af9b(ho,{'config':_0x8f1a33,'commit':_0x3cb8fc}):_0x52e710(_0x10f323(0x173),{'className':_0x10f323(0x228),'children':[_0x52e710('div',{'children':[_0x1af9b(_0x10f323(0x173),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0xb767d5['t'](_0x10f323(0x3c8))}),_0x1af9b(_0x4f1ee0,{'allowClear':!0x0,'slot':_0x1af9b(_0x3f6321,{}),'value':_0xda6d37,'placeholder':_0xb767d5['t'](_0x10f323(0x200)),'onChange':_0x5dc219}),_0x1af9b(_0x10f323(0x173),{'className':_0x10f323(0x3c4),'children':_0x5ea77c[_0x10f323(0x43f)](_0x37b4bc=>_0x1af9b(co,{'config':_0x8f1a33,'field':_0x37b4bc,'onAdd':_0x570e72=>_0x3cb8fc(_0x465b32=>go(_0x465b32,_0x37b4bc['id'],_0x570e72,_0x465b32[_0x10f323(0x188)](_0x570e72))),'onCheckedChange':_0x1b5102=>_0x3cb8fc(_0x299f11=>{const _0x4a9d91=_0x10f323;let _0x343171=_0x299f11[_0x4a9d91(0x190)](_0x37b4bc['id']);if(!_0x1b5102)_0x343171['forEach'](_0x27322e=>_0x299f11[_0x4a9d91(0x453)](_0x27322e['getId']()));else{if(_0x343171[_0x4a9d91(0x348)]===0x0){let _0x5ab112=vo(_0x37b4bc)?_0x2e2ea1['Value']:_0x2e2ea1[_0x4a9d91(0x2ce)];_0x299f11[_0x4a9d91(0x2c3)](_0x37b4bc['id'],_0x5ab112);}}}),'onDragStart':()=>_0x3796a4({'kind':_0x10f323(0x252),'id':_0x37b4bc['id']})},_0x37b4bc['id']))})]}),_0x1af9b(_0x10f323(0x173),{'className':_0x10f323(0x439),'children':ao['map'](_0x45b826=>_0x1af9b(uo,{'area':_0x45b826[_0x10f323(0x3f4)],'dropTarget':_0x58a750,'fields':_0x8f1a33['pivot'][_0x45b826['key']],'label':_0xb767d5['t'](_0x45b826[_0x10f323(0x1d6)]),'snapshot':_0x8f1a33[_0x10f323(0x3b3)],'onDragEnd':()=>{_0x3796a4(null),_0x369204(null);},'onDragStart':_0x3cd181=>_0x3796a4({'kind':_0x10f323(0x260),'id':_0x3cd181,'area':_0x45b826[_0x10f323(0x3f4)]}),'onDragOver':_0x26ea70=>_0x369204({'area':_0x45b826[_0x10f323(0x3f4)],'index':_0x26ea70}),'onDrop':_0x13a139=>_0x25ec0e(_0x45b826[_0x10f323(0x3f4)],_0x13a139),'onFilter':_0x4f52df,'onRemove':_0x1961bb=>_0x3cb8fc(_0x3e857b=>_0x3e857b['removeField'](_0x1961bb)),'onSettings':_0x1f0f7f},_0x45b826[_0x10f323(0x3f4)]))}),_0x208ecd&&_0x1af9b(po,{'fieldId':_0x208ecd,'snapshot':_0x8f1a33[_0x10f323(0x3b3)],'table':_0x387f29,'onCancel':()=>_0x4f52df(null),'onCommit':(_0x42df30,_0x2e5f8f)=>{_0x3cb8fc(_0xf83f5d=>{const _0x4e4c59=_0x4abf;let _0x1e25e0=_0xf83f5d[_0x4e4c59(0x37e)](_0x208ecd),_0x1e0b7a=(_0x1e25e0==null?void 0x0:_0x1e25e0[_0x4e4c59(0x39c)])??[];_0xf83f5d['setLabelFilterInfo'](_0x208ecd,{'type':_0x43d698['ManualFilter'],'list':_0x42df30,'isAll':_0x42df30[_0x4e4c59(0x348)]===_0x1e0b7a[_0x4e4c59(0x348)]}),_0xf83f5d[_0x4e4c59(0x471)](_0x208ecd,_0x2e5f8f===void 0x0?void 0x0:{'type':_0x2e5f8f});}),_0x4f52df(null);}},_0x208ecd),_0x37285a&&_0x1af9b(mo,{'field':_0x8f1a33['pivot'][_0x10f323(0x3d5)][_0x37285a],'onCancel':()=>_0x1f0f7f(null),'onCommit':(_0x3bab5b,_0x15c73a,_0x363256)=>{_0x3cb8fc(_0x4afaa3=>{const _0x123ace=_0x4abf;_0x4afaa3['renameField'](_0x37285a,_0x3bab5b),_0x4afaa3[_0x123ace(0x4bd)](_0x37285a,_0x15c73a),_0x4afaa3[_0x123ace(0x213)](_0x37285a,_0x363256||void 0x0);}),_0x1f0f7f(null);}},_0x37285a)]})})]});}function co(_0x92824b){const _0x357085=_0x219009;let {config:_0xca5521,field:_0x627411,onAdd:_0x38ab01,onCheckedChange:_0x2a2f60,onDragStart:_0x513465}=_0x92824b,_0x3d1752=_0xb3eab7(_0x51de0a),_0x1b413a=[...Object['values'](_0xca5521[_0x357085(0x3b3)][_0x357085(0x34a)]),...Object['values'](_0xca5521[_0x357085(0x3b3)][_0x357085(0x3d5)])][_0x357085(0x499)](_0x59331c=>_0x59331c[_0x357085(0x18d)]===_0x627411['id']),_0x353625=ao[_0x357085(0x43f)](_0x1e6938=>({'type':_0x357085(0x1f9),'children':_0x3d1752['t'](yo(_0x1e6938[_0x357085(0x3f4)])),'onSelect':()=>_0x38ab01(_0x1e6938[_0x357085(0x3f4)])}));return _0x52e710(_0x357085(0x173),{'draggable':!0x0,'className':_0x357085(0x262),'onDragStart':_0x513465,'children':[_0x1af9b(_0x56435c,{'className':'univer-text-gray-400'}),_0x1af9b(_0x5e364b,{'checked':_0x1b413a,'onChange':_0x4f032d=>_0x2a2f60(!!_0x4f032d)}),_0x1af9b(lo,{'field':_0x627411}),_0x1af9b(_0x357085(0x46c),{'className':_0x357085(0x3cf),'children':_0x627411[_0x357085(0x3aa)]}),_0x1af9b(_0x2049bb,{'align':_0x357085(0x1d5),'items':_0x353625,'children':_0x1af9b(_0x357085(0x46c),{'className':'univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','children':_0x1af9b(_0x27fd1a,{})})})]});}function lo({field:_0x23b3aa}){const _0x13eef5=_0x219009;return vo(_0x23b3aa)?_0x1af9b(_0x519617,{'className':_0x13eef5(0x259)}):_0x23b3aa[_0x13eef5(0x4b9)]===_0x3f2f3b['Date']||_0x23b3aa[_0x13eef5(0x4b9)]===_0x3f2f3b['CreatedAt']||_0x23b3aa[_0x13eef5(0x4b9)]===_0x3f2f3b[_0x13eef5(0x212)]?_0x1af9b(_0x353aa7,{'className':_0x13eef5(0x259)}):_0x1af9b(_0x21875f,{'className':_0x13eef5(0x259)});}function uo(_0x260634){const _0x2fb3ba=_0x219009;let {area:_0x1c27d6,dropTarget:_0x494d30,fields:_0x293052,label:_0x2005c1,snapshot:_0x162741}=_0x260634,_0xd6f457=_0xb3eab7(_0x51de0a);return _0x52e710(_0x2fb3ba(0x198),{'className':_0x43bd71(_0x2fb3ba(0x26b),_0x25ef46),'onDragOver':_0x4f0e21=>{const _0x4b9882=_0x2fb3ba;_0x4f0e21[_0x4b9882(0x33b)](),_0x260634['onDragOver'](_0x293052['length']);},'onDrop':_0x24b352=>{const _0x3cddd7=_0x2fb3ba;_0x24b352[_0x3cddd7(0x33b)](),_0x260634[_0x3cddd7(0x26d)]((_0x494d30==null?void 0x0:_0x494d30['area'])===_0x1c27d6?_0x494d30[_0x3cddd7(0x3a4)]:_0x293052['length']);},'children':[_0x1af9b(_0x2fb3ba(0x173),{'className':_0x2fb3ba(0x30c),'children':_0x2005c1}),_0x52e710(_0x2fb3ba(0x173),{'className':'univer-flex\x20univer-flex-col','children':[_0x293052[_0x2fb3ba(0x43f)]((_0x32b8ec,_0x3461c5)=>{const _0x3fdc15=_0x2fb3ba;let _0x24499b=_0x162741['dimension'][_0x32b8ec]??_0x162741[_0x3fdc15(0x3d5)][_0x32b8ec];if(!_0x24499b)return null;let _0x52e277=(_0x494d30==null?void 0x0:_0x494d30['area'])===_0x1c27d6&&_0x494d30['index']===_0x3461c5;return _0x52e710(_0x3fdc15(0x173),{'onDragOver':_0x5e68d9=>{const _0xd7cf5=_0x3fdc15;_0x5e68d9['preventDefault'](),_0x5e68d9[_0xd7cf5(0x2ac)]();let _0x43742a=_0x5e68d9['currentTarget']['getBoundingClientRect']();_0x260634[_0xd7cf5(0x1e8)](_0x3461c5+ +(_0x5e68d9['clientY']>_0x43742a[_0xd7cf5(0x31d)]+_0x43742a[_0xd7cf5(0x34f)]/0x2));},'onDrop':_0x4730e3=>{const _0x19d777=_0x3fdc15;_0x4730e3[_0x19d777(0x33b)](),_0x4730e3['stopPropagation'](),_0x260634['onDrop']((_0x494d30==null?void 0x0:_0x494d30[_0x19d777(0x3f4)])===_0x1c27d6?_0x494d30[_0x19d777(0x3a4)]:_0x3461c5);},'children':[_0x52e277&&_0x1af9b(_0x3fdc15(0x173),{'className':_0x3fdc15(0x290)}),_0x1af9b(fo,{'area':_0x1c27d6,'field':_0x24499b,'onDragEnd':_0x260634[_0x3fdc15(0x419)],'onDragStart':()=>_0x260634[_0x3fdc15(0x205)](_0x32b8ec),'onFilter':()=>_0x260634[_0x3fdc15(0x2d0)](_0x32b8ec),'onRemove':()=>_0x260634[_0x3fdc15(0x2d1)](_0x32b8ec),'onSettings':()=>_0x260634[_0x3fdc15(0x33d)](_0x32b8ec)})]},_0x32b8ec);}),(_0x494d30==null?void 0x0:_0x494d30[_0x2fb3ba(0x3f4)])===_0x1c27d6&&_0x494d30[_0x2fb3ba(0x3a4)]===_0x293052[_0x2fb3ba(0x348)]&&_0x1af9b('div',{'className':_0x2fb3ba(0x290)}),_0x293052['length']===0x0&&_0x1af9b(_0x2fb3ba(0x173),{'className':'univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','children':_0xd6f457['t'](_0x2fb3ba(0x221))})]})]});}function fo(_0x5ce1b6){const _0x3c597b=_0x219009;let _0x3f5531=_0xb3eab7(_0x51de0a),_0x32de1b=_0x5ce1b6[_0x3c597b(0x3f4)]===_0x2e2ea1['Value'],_0x2d8237=[{'type':_0x3c597b(0x1f9),'children':_0x3f5531['t']('bases-dashboard-ui.pivot.removeField'),'onSelect':_0x5ce1b6['onRemove']},{'type':_0x3c597b(0x1f9),'children':_0x3f5531['t'](_0x32de1b?'bases-dashboard-ui.pivot.fieldSettings':'bases-dashboard-ui.pivot.filterField'),'onSelect':_0x32de1b?_0x5ce1b6[_0x3c597b(0x33d)]:_0x5ce1b6[_0x3c597b(0x2d0)]}];return _0x52e710(_0x3c597b(0x173),{'draggable':!0x0,'className':'univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','onDragEnd':_0x5ce1b6['onDragEnd'],'onDragStart':_0x5ce1b6[_0x3c597b(0x205)],'children':[_0x1af9b(_0x56435c,{'className':_0x3c597b(0x259)}),_0x1af9b(_0xe14895,{'title':_0x5ce1b6[_0x3c597b(0x260)][_0x3c597b(0x2af)],'children':_0x1af9b(_0x3c597b(0x46c),{'className':_0x3c597b(0x3cf),'children':_0x5ce1b6[_0x3c597b(0x260)][_0x3c597b(0x2af)]})}),_0x1af9b(_0x2049bb,{'align':_0x3c597b(0x1d5),'items':_0x2d8237,'children':_0x1af9b(_0x3c597b(0x46c),{'className':'univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','children':_0x1af9b(_0x27fd1a,{})})})]});}function po(_0x51269a){const _0xbdd600=_0x219009;var _0x565745,_0x17de53;let _0x16a09a=_0xb3eab7(_0x51de0a),{format:_0x51250c,items:_0x3c6f0d,itemTypes:_0x4693b9}=_0x2a7f67(()=>{const _0x235edc=_0x4abf;let _0x14050c=_0x26536e(_0x51269a['table'],_0x51269a['snapshot']);try{let _0x3258be=_0x14050c['getDataFieldByTableId'](_0x51269a[_0x235edc(0x1cb)]);return{'format':_0x3258be==null?void 0x0:_0x3258be[_0x235edc(0x467)],'items':[...(_0x3258be==null?void 0x0:_0x3258be['items'])??[]],'itemTypes':[...(_0x3258be==null?void 0x0:_0x3258be[_0x235edc(0x258)])??[]]};}finally{_0x14050c[_0x235edc(0x333)]();}},[_0x51269a['fieldId'],_0x51269a[_0xbdd600(0x36f)],_0x51269a[_0xbdd600(0x328)]]),_0x33fb8f=(_0x565745=_0x51269a[_0xbdd600(0x36f)][_0xbdd600(0x34a)][_0x51269a['fieldId']])==null?void 0x0:_0x565745[_0xbdd600(0x3cb)],[_0x2f28c2,_0x4b927e]=_0x277721((_0x33fb8f==null?void 0x0:_0x33fb8f[_0xbdd600(0x4b9)])===_0x43d698[_0xbdd600(0x423)]?_0x33fb8f[_0xbdd600(0x427)]:_0x3c6f0d),[_0x3b01b7,_0xc5b2aa]=_0x277721((_0x17de53=_0x51269a[_0xbdd600(0x36f)][_0xbdd600(0x34a)][_0x51269a[_0xbdd600(0x1cb)]])==null||(_0x17de53=_0x17de53[_0xbdd600(0x3fa)])==null?void 0x0:_0x17de53[_0xbdd600(0x4b9)]),_0x59ebcc=_0x2f28c2[_0xbdd600(0x348)]===_0x3c6f0d[_0xbdd600(0x348)];return _0x52e710(_0xbdd600(0x198),{'className':_0x43bd71(_0xbdd600(0x18e),_0x25ef46),'children':[_0x1af9b(_0xbdd600(0x173),{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0x16a09a['t']('bases-dashboard-ui.pivot.filterField')}),_0x52e710(_0xbdd600(0x173),{'className':_0xbdd600(0x362),'children':[_0x52e710(_0x2e1096,{'className':_0xbdd600(0x4b0),'variant':_0x3b01b7===_0x42703e[_0xbdd600(0x35a)]?_0xbdd600(0x2f7):_0xbdd600(0x1ca),'onClick':()=>_0xc5b2aa(_0x42703e[_0xbdd600(0x35a)]),'children':[_0x1af9b(_0x52230b,{}),_0x16a09a['t'](_0xbdd600(0x1ad))]}),_0x52e710(_0x2e1096,{'className':_0xbdd600(0x4b0),'variant':_0x3b01b7===_0x42703e[_0xbdd600(0x4bf)]?_0xbdd600(0x2f7):_0xbdd600(0x1ca),'onClick':()=>_0xc5b2aa(_0x42703e[_0xbdd600(0x4bf)]),'children':[_0x1af9b(_0x404137,{}),_0x16a09a['t'](_0xbdd600(0x38d))]})]}),_0x52e710('div',{'className':_0xbdd600(0x355),'children':[_0x52e710(_0xbdd600(0x1d6),{'className':_0xbdd600(0x195),'children':[_0x1af9b(_0x5e364b,{'checked':_0x59ebcc,'indeterminate':_0x2f28c2[_0xbdd600(0x348)]>0x0&&!_0x59ebcc,'onChange':()=>_0x4b927e(_0x59ebcc?[]:_0x3c6f0d)}),_0x16a09a['t'](_0xbdd600(0x2de))]}),_0x3c6f0d['map']((_0x19dfcd,_0x53c231)=>_0x52e710('label',{'className':_0xbdd600(0x195),'children':[_0x1af9b(_0x5e364b,{'checked':_0x2f28c2[_0xbdd600(0x481)](_0x19dfcd),'onChange':()=>_0x4b927e(_0x4a8fd7=>_0x4a8fd7['includes'](_0x19dfcd)?_0x4a8fd7[_0xbdd600(0x498)](_0x11a014=>_0x11a014!==_0x19dfcd):[..._0x4a8fd7,_0x19dfcd])}),_0x1af9b('span',{'className':_0xbdd600(0x409),'children':_o(_0x19dfcd,_0x4693b9[_0x53c231],_0x51250c,_0x16a09a['t'](_0xbdd600(0x385)))})]},_0x19dfcd))]}),_0x52e710(_0xbdd600(0x173),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[_0x1af9b(_0x2e1096,{'variant':_0xbdd600(0x412),'onClick':()=>_0x51269a[_0xbdd600(0x27f)](_0x3c6f0d,_0x3b01b7),'children':_0x16a09a['t']('bases-dashboard-ui.pivot.clearFilter')}),_0x52e710(_0xbdd600(0x173),{'className':'univer-flex\x20univer-gap-2','children':[_0x1af9b(_0x2e1096,{'onClick':_0x51269a[_0xbdd600(0x21b)],'children':_0x16a09a['t'](_0xbdd600(0x1a6))}),_0x1af9b(_0x2e1096,{'variant':_0xbdd600(0x2f7),'disabled':_0x2f28c2[_0xbdd600(0x348)]===0x0,'onClick':()=>_0x51269a[_0xbdd600(0x27f)](_0x2f28c2,_0x3b01b7),'children':_0x16a09a['t'](_0xbdd600(0x457))})]})]})]});}function mo(_0x3ca9fe){const _0x26cd1e=_0x219009;var _0x4ce7cb,_0x4c3291,_0x450ccb;let _0x10c18b=_0xb3eab7(_0x51de0a),[_0x42b9e3,_0x18ad93]=_0x277721(((_0x4ce7cb=_0x3ca9fe[_0x26cd1e(0x260)])==null?void 0x0:_0x4ce7cb['displayName'])??''),[_0xb41589,_0x2a992e]=_0x277721(((_0x4c3291=_0x3ca9fe[_0x26cd1e(0x260)])==null?void 0x0:_0x4c3291['subtotal'])??_0x37b485[_0x26cd1e(0x3b7)]),[_0x3e2fc8,_0x5426e8]=_0x277721(((_0x450ccb=_0x3ca9fe[_0x26cd1e(0x260)])==null?void 0x0:_0x450ccb[_0x26cd1e(0x467)])??'');return _0x3ca9fe[_0x26cd1e(0x260)]?_0x52e710(_0x26cd1e(0x198),{'className':_0x43bd71('univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900',_0x25ef46),'children':[_0x1af9b(_0x26cd1e(0x173),{'className':_0x26cd1e(0x324),'children':_0x10c18b['t']('bases-dashboard-ui.pivot.fieldSettings')}),_0x52e710(_0x26cd1e(0x1d6),{'className':_0x26cd1e(0x261),'children':[_0x10c18b['t']('bases-dashboard-ui.pivot.displayName'),_0x1af9b(_0x4f1ee0,{'value':_0x42b9e3,'onChange':_0x18ad93})]}),_0x52e710(_0x26cd1e(0x1d6),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x10c18b['t'](_0x26cd1e(0x2ad)),_0x1af9b(_0x8bae00,{'value':String(_0xb41589),'options':oo[_0x26cd1e(0x43f)](_0x5bb541=>({'value':String(_0x5bb541[_0x26cd1e(0x286)]),'label':_0x10c18b['t'](_0x5bb541[_0x26cd1e(0x37c)])})),'onChange':_0x36516e=>{const _0x99ddee=_0x26cd1e;let _0x2dc351=oo[_0x99ddee(0x3ae)](_0x120166=>String(_0x120166[_0x99ddee(0x286)])===_0x36516e);_0x2dc351&&_0x2a992e(_0x2dc351['value']);}})]}),_0x52e710(_0x26cd1e(0x1d6),{'className':_0x26cd1e(0x261),'children':[_0x10c18b['t'](_0x26cd1e(0x4be)),_0x1af9b(_0x4f1ee0,{'value':_0x3e2fc8,'onChange':_0x5426e8})]}),_0x52e710(_0x26cd1e(0x173),{'className':_0x26cd1e(0x3fd),'children':[_0x1af9b(_0x2e1096,{'onClick':_0x3ca9fe[_0x26cd1e(0x21b)],'children':_0x10c18b['t'](_0x26cd1e(0x1a6))}),_0x1af9b(_0x2e1096,{'variant':_0x26cd1e(0x2f7),'disabled':!_0x42b9e3[_0x26cd1e(0x2ee)](),'onClick':()=>_0x3ca9fe[_0x26cd1e(0x27f)](_0x42b9e3[_0x26cd1e(0x2ee)](),_0xb41589,_0x3e2fc8),'children':_0x10c18b['t'](_0x26cd1e(0x457))})]})]}):null;}function ho(_0x22dbc9){const _0x30f26a=_0x219009;let {config:_0x51eee1,commit:_0x1d202c}=_0x22dbc9,_0x121991=_0xb3eab7(_0x51de0a),_0x1a51c1=_0x51eee1[_0x30f26a(0x3b3)]['options'],_0x37c73b=_0x5ba2a6=>_0x1d202c(_0x2d502c=>_0x2d502c[_0x30f26a(0x447)]({..._0x2d502c['getOptions'](),..._0x5ba2a6}));return _0x52e710(_0x30f26a(0x173),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x52e710(_0x30f26a(0x1d6),{'className':_0x30f26a(0x26c),'children':[_0x121991['t'](_0x30f26a(0x386)),_0x1af9b(_0x8bae00,{'className':'univer-w-36','value':String(_0x51eee1['pivot'][_0x30f26a(0x16e)]),'options':[{'value':String(_0x27edfb[_0x30f26a(0x2be)]),'label':_0x121991['t'](_0x30f26a(0x2ec))},{'value':String(_0x27edfb['compact']),'label':_0x121991['t'](_0x30f26a(0x2d4))},{'value':String(_0x27edfb[_0x30f26a(0x202)]),'label':_0x121991['t'](_0x30f26a(0x291))}],'onChange':_0x3936ce=>{const _0x35e845=_0x30f26a;let _0x6f9e82=[_0x27edfb['tabular'],_0x27edfb[_0x35e845(0x449)],_0x27edfb[_0x35e845(0x202)]][_0x35e845(0x3ae)](_0x5b4d54=>String(_0x5b4d54)===_0x3936ce);_0x6f9e82!==void 0x0&&_0x1d202c(_0x57ca15=>_0x57ca15['setLayout'](_0x6f9e82));}})]}),[{'key':_0x30f26a(0x42a),'label':_0x30f26a(0x3b8),'defaultValue':!0x1},{'key':_0x30f26a(0x1b1),'label':'bases-dashboard-ui.pivot.repeatColumnLabels','defaultValue':!0x1},{'key':'showRowSubtotal','label':_0x30f26a(0x372),'defaultValue':!0x0},{'key':'showRowGrandTotal','label':_0x30f26a(0x1b0),'defaultValue':!0x0},{'key':_0x30f26a(0x316),'label':_0x30f26a(0x3a8),'defaultValue':!0x0},{'key':_0x30f26a(0x41f),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}]['map'](_0x23d820=>_0x52e710('label',{'className':_0x30f26a(0x387),'children':[_0x1af9b(_0x5e364b,{'checked':!!(_0x1a51c1[_0x23d820[_0x30f26a(0x2c1)]]??_0x23d820[_0x30f26a(0x356)]),'disabled':_0x23d820[_0x30f26a(0x2c1)]===_0x30f26a(0x42a)&&_0x51eee1['pivot'][_0x30f26a(0x16e)]===_0x27edfb[_0x30f26a(0x449)],'onChange':_0x3ea39c=>_0x37c73b({[_0x23d820[_0x30f26a(0x2c1)]]:!!_0x3ea39c})}),_0x121991['t'](_0x23d820[_0x30f26a(0x1d6)])]},_0x23d820['key'])),_0x51eee1['pivot'][_0x30f26a(0x16e)]===_0x27edfb[_0x30f26a(0x202)]&&_0x52e710('label',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x121991['t'](_0x30f26a(0x43a)),_0x1af9b(_0x8bae00,{'className':_0x30f26a(0x229),'value':String(_0x1a51c1['rowSubtotalPosition']??_0x1ce76a[_0x30f26a(0x31d)]),'options':[{'value':String(_0x1ce76a[_0x30f26a(0x31d)]),'label':_0x121991['t'](_0x30f26a(0x17f))},{'value':String(_0x1ce76a[_0x30f26a(0x196)]),'label':_0x121991['t'](_0x30f26a(0x389))}],'onChange':_0x43c894=>{const _0x49cb9c=_0x30f26a;let _0x24ab8e=[_0x1ce76a[_0x49cb9c(0x31d)],_0x1ce76a[_0x49cb9c(0x196)]][_0x49cb9c(0x3ae)](_0x2bac6f=>String(_0x2bac6f)===_0x43c894);_0x24ab8e!==void 0x0&&_0x37c73b({'rowSubtotalPosition':_0x24ab8e});}})]}),_0x52e710('label',{'className':_0x30f26a(0x26c),'children':[_0x121991['t'](_0x30f26a(0x4ad)),_0x1af9b(_0x8bae00,{'className':_0x30f26a(0x229),'value':String(_0x51eee1[_0x30f26a(0x3b3)][_0x30f26a(0x360)]===_0x3188ad[_0x30f26a(0x37a)]?_0x3188ad[_0x30f26a(0x3d4)]:_0x51eee1[_0x30f26a(0x3b3)][_0x30f26a(0x360)]),'options':[{'value':String(_0x3188ad[_0x30f26a(0x3d4)]),'label':_0x121991['t']('bases-dashboard-ui.pivot.columns')},{'value':String(_0x3188ad[_0x30f26a(0x2ce)]),'label':_0x121991['t'](_0x30f26a(0x3c2))}],'onChange':_0x468bef=>{const _0x1705c0=_0x30f26a;let _0x16607d=[_0x3188ad[_0x1705c0(0x3d4)],_0x3188ad['Row']]['find'](_0x2f2d84=>String(_0x2f2d84)===_0x468bef);_0x16607d!==void 0x0&&_0x1d202c(_0x11fca3=>_0x11fca3['updateValuePosition'](_0x16607d,_0x11fca3['getValueIndex']()<0x0?0x0:_0x11fca3['getValueIndex']()));}})]}),_0x52e710(_0x30f26a(0x1d6),{'className':_0x30f26a(0x26c),'children':[_0x121991['t'](_0x30f26a(0x287)),_0x1af9b(_0x770794,{'className':_0x30f26a(0x4d2),'min':0x1,'max':0x14,'value':_0x1a51c1['pageWrap']??0x1,'onChange':_0x5bcdb9=>{const _0x1bb558=_0x30f26a;let _0x5301cb=Number(_0x5bcdb9);Number[_0x1bb558(0x2f6)](_0x5301cb)&&_0x5301cb>=0x1&&_0x37c73b({'pageWrap':_0x5301cb});}})]}),_0x52e710(_0x30f26a(0x1d6),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x121991['t'](_0x30f26a(0x249)),_0x1af9b(_0x8bae00,{'className':_0x30f26a(0x229),'value':String(_0x1a51c1[_0x30f26a(0x222)]??!0x1),'options':[{'value':_0x30f26a(0x193),'label':_0x121991['t'](_0x30f26a(0x1e1))},{'value':_0x30f26a(0x1be),'label':_0x121991['t']('bases-dashboard-ui.pivot.acrossThenDown')}],'onChange':_0x5264e5=>_0x37c73b({'pageOverThenDown':_0x5264e5===_0x30f26a(0x1be)})})]})]});}function go(_0x51b6c0,_0x1e9e0f,_0x546cd1,_0x107b22){const _0x6d579c=_0x219009;let _0x4d6cd9=_0x51b6c0[_0x6d579c(0x190)](_0x1e9e0f)['find'](_0x305be2=>_0x51b6c0[_0x6d579c(0x243)](_0x305be2[_0x6d579c(0x293)]())['area']!==_0x2e2ea1['Value']);_0x546cd1!==_0x2e2ea1[_0x6d579c(0x478)]&&_0x4d6cd9?_0x51b6c0[_0x6d579c(0x44c)](_0x4d6cd9[_0x6d579c(0x293)](),_0x546cd1,_0x107b22):_0x51b6c0[_0x6d579c(0x2c3)](_0x1e9e0f,_0x546cd1,_0x107b22);}function _o(_0x5787e1,_0x207b87,_0x569496,_0x5d1780){const _0xf16939=_0x219009;return _0x207b87===_0x4bea43['blank']?_0x5d1780:_0x207b87===_0x4bea43['date']&&_0x569496?_0x415bf1[_0xf16939(0x467)](_0x569496,Number(_0x5787e1)):_0x5787e1;}function vo(_0x53d2ec){const _0x1cc636=_0x219009;return _0x53d2ec[_0x1cc636(0x4b9)]===_0x3f2f3b[_0x1cc636(0x327)]||_0x53d2ec['type']===_0x3f2f3b[_0x1cc636(0x271)]||_0x53d2ec['type']===_0x3f2f3b[_0x1cc636(0x274)]||_0x53d2ec[_0x1cc636(0x4b9)]===_0x3f2f3b[_0x1cc636(0x176)];}function yo(_0x318c67){const _0x55dc9b=_0x219009;switch(_0x318c67){case _0x2e2ea1['Row']:return'bases-dashboard-ui.pivot.addToRow';case _0x2e2ea1['Column']:return _0x55dc9b(0x18f);case _0x2e2ea1[_0x55dc9b(0x478)]:return _0x55dc9b(0x24d);default:return _0x55dc9b(0x1df);}}function bo({config:_0x5360aa,onChange:_0x460ddb,runtime:_0x48d7b5,table:_0x7be981}){const _0x2f2aa5=_0x219009;let _0x458e3b=_0xb3eab7(_0x51de0a),[_0x3c5c2a,_0x3b57c2]=_0x277721(_0x2f2aa5(0x2fc));return _0x52e710(_0x2f2aa5(0x2a1),{'className':_0x2f2aa5(0x294),'children':[_0x1af9b(_0x531ef4,{'ariaLabel':_0x458e3b['t'](_0x2f2aa5(0x2a0)),'className':'univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','items':[{'label':_0x458e3b['t'](_0x2f2aa5(0x475)),'panelId':_0x2f2aa5(0x346),'value':_0x2f2aa5(0x2fc)},{'label':_0x458e3b['t'](_0x2f2aa5(0x3ad)),'panelId':_0x2f2aa5(0x3c5),'value':_0x2f2aa5(0x3b3)}],'value':_0x3c5c2a,'variant':_0x2f2aa5(0x236),'onChange':_0x3b57c2}),_0x1af9b('div',{'className':_0x2f2aa5(0x282),'children':_0x3c5c2a===_0x2f2aa5(0x2fc)?_0x48d7b5&&_0x1af9b(ma,{'config':_0x5360aa,'runtime':_0x48d7b5,'tableName':_0x7be981[_0x2f2aa5(0x3aa)],'onChange':_0x460ddb}):_0x1af9b(so,{'config':_0x5360aa,'table':_0x7be981,'onChange':_0x460ddb})})]});}function xo({tableId:_0x541873,unitId:_0x54f24e,viewId:_0x46e86b}){const _0x56fd16=_0x219009;let _0x482871=_0xb3eab7(_0x4a773c),_0x43a5f4=_0xb3eab7(_0x144775),_0x449235=_0xb3eab7(_0x44e345),_0x4d58a2=_0xb3eab7(_0x51de0a),_0x14ad0f=_0xb3eab7(_0x559b79),[_0x1f75a4,_0x4d952c]=_0x277721(null),[_0x367cd7,_0x8c5626]=_0x277721(null),_0x3eb9e9=_0x52068e(_0x56fd16(0x29d)+_0x3dac7b(0x8)),[_0x2a83d0,_0x496242]=_0x277721(!0x1),_0x1ebf80=_0x43a5f4[_0x56fd16(0x225)](_0x54f24e,_0x160ed0[_0x56fd16(0x1b7)]),_0x5ab5f3=_0x1ebf80==null?void 0x0:_0x1ebf80[_0x56fd16(0x206)]()[_0x56fd16(0x44e)][_0x541873],_0x499389=_0x5ab5f3==null?void 0x0:_0x5ab5f3['views'][_0x46e86b],_0x26dd6e=So(_0x499389),_0x393c8a=yr(_0x54f24e,_0x541873,_0x46e86b);if(_0x2153d6(()=>{const _0x2ed3b5=_0x56fd16;if(!_0x26dd6e)return;let _0x1c3085=_0x3eb9e9[_0x2ed3b5(0x2bd)];return _0x14ad0f[_0x2ed3b5(0x3fc)](_0x1c3085,{'unitId':_0x54f24e,'tableId':_0x541873,'viewId':_0x46e86b,'filters':[]}),()=>{const _0x536b8a=_0x2ed3b5;_0x14ad0f[_0x536b8a(0x4a5)](_0x54f24e,_0x1c3085);};},[_0x26dd6e,_0x14ad0f,_0x541873,_0x54f24e,_0x46e86b]),_0x2153d6(()=>{const _0x34696b=_0x56fd16;if(!So(_0x499389))return;let _0x15d9b6=!0x0,_0x1eea0b={'unitId':_0x54f24e,'tableId':_0x541873,'viewId':_0x46e86b,'filters':[_0x499389[_0x34696b(0x498)]??null]};return _0x14ad0f[_0x34696b(0x443)](_0x54f24e,_0x3eb9e9[_0x34696b(0x2bd)],_0x1eea0b)['then'](_0x5bf8d9=>{const _0x37bed5=_0x34696b;_0x15d9b6&&_0x5bf8d9&&(_0x4d952c(_0x5bf8d9),_0x8c5626(_0x14ad0f[_0x37bed5(0x404)](_0x54f24e,_0x3eb9e9[_0x37bed5(0x2bd)])??null),_0x496242(!0x1));})['catch'](_0x401521=>{const _0x2e1b8e=_0x34696b;_0x449235['error'](_0x2e1b8e(0x267),_0x401521),_0x15d9b6&&(_0x4d952c(null),_0x496242(!0x0));}),()=>{_0x15d9b6=!0x1;};},[_0x449235,_0x14ad0f,_0x541873,_0x54f24e,_0x499389,_0x46e86b]),!_0x5ab5f3||!So(_0x499389))return null;let _0x205623=_0x14ad0f[_0x56fd16(0x404)](_0x54f24e,_0x3eb9e9[_0x56fd16(0x2bd)])===_0x367cd7?_0x367cd7:null,_0xd8c43d=_0x1f75a4?_0x52e710('div',{'className':_0x56fd16(0x1f0),'style':{'gridTemplateRows':_0x499389[_0x56fd16(0x2dc)][_0x56fd16(0x343)]===_0x56fd16(0x46f)?'minmax(240px,\x203fr)\x20minmax(180px,\x202fr)':_0x56fd16(0x2a4)},'children':[_0x499389[_0x56fd16(0x2dc)][_0x56fd16(0x343)]!==_0x56fd16(0x328)&&_0x205623&&_0x1af9b(_0x56fd16(0x173),{'className':'univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':_0x1af9b(Rr,{'isRowDirection':_0x4562e5(_0x499389[_0x56fd16(0x2dc)][_0x56fd16(0x2fc)][_0x56fd16(0x4b4)]),'runtime':_0x205623})}),_0x499389['config'][_0x56fd16(0x343)]!=='chart'&&_0x1af9b(_0x56fd16(0x173),{'className':_0x56fd16(0x383),'children':_0x1af9b(ji,{'pivot':_0x499389[_0x56fd16(0x2dc)][_0x56fd16(0x3b3)],'view':_0x1f75a4['view']})})]}):_0x1af9b(_0x56fd16(0x173),{'className':_0x56fd16(0x375),'children':_0x2a83d0?_0x4d58a2['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x4d58a2['t'](_0x56fd16(0x1e3))});return _0x52e710(_0x56fd16(0x173),{'className':_0x56fd16(0x20b),'children':[_0x1af9b(_0x56fd16(0x173),{'className':_0x56fd16(0x2ab),'children':_0xd8c43d}),_0x393c8a&&_0x1af9b(bo,{'config':_0x499389['config'],'runtime':_0x205623,'table':_0x5ab5f3,'onChange':_0x4dfb43=>{const _0x12f4a4=_0x56fd16;_0x482871[_0x12f4a4(0x43d)](_0x227312['id'],{'unitId':_0x54f24e,'tableId':_0x541873,'viewId':_0x46e86b,'patch':_0x4dfb43})[_0x12f4a4(0x2c9)](_0x445147=>_0x449235[_0x12f4a4(0x4ab)]('[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.',_0x445147));}})]});}function So(_0x3de623){const _0x3e46bd=_0x219009;return(_0x3de623==null?void 0x0:_0x3de623['type'])===_0x4ec201[_0x3e46bd(0x223)]&&typeof _0x3de623[_0x3e46bd(0x2dc)]=='object'&&_0x3de623[_0x3e46bd(0x2dc)]!==null&&'pivot'in _0x3de623[_0x3e46bd(0x2dc)]&&_0x3e46bd(0x2fc)in _0x3de623[_0x3e46bd(0x2dc)]&&'displayMode'in _0x3de623[_0x3e46bd(0x2dc)];}let Co=class extends _0x2b17e2{constructor(_0x518686,_0x129141,_0x2c0550,_0x27b3b8,_0x14b5fa,_0x26ea08){const _0x3b9149=_0x219009;super(),this['disposeWithMe'](_0x129141[_0x3b9149(0x2c5)]({'type':_0x4ec201['Pivot'],'renderMode':'dom','icon':_0x46a4b4,'component':xo,'menu':{get 'label'(){const _0x43af9c=_0x3b9149;return _0x26ea08['t'](_0x43af9c(0x2a0));},get 'description'(){const _0x5ed53e=_0x3b9149;return _0x26ea08['t'](_0x5ed53e(0x17e));},get 'defaultName'(){return _0x26ea08['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x3b9149(0x418)](_0x518686[_0x3b9149(0x2c5)](wo(_0x2c0550,_0x27b3b8,_0x14b5fa,_0x26ea08)));}};Co=Ar([Y(0x0,_0x475f81),Y(0x1,_0x508eb1),Y(0x2,_0x346fbc(_0x24d6a6)),Y(0x3,_0x4a773c),Y(0x4,_0xd071cb),Y(0x5,_0x346fbc(_0x51de0a))],Co);function wo(_0x40ed24,_0x438636,_0xd8f5e4,_0x571a39){const _0x2a0850=_0x219009;return{'change$':_0x3b3651(_0x40ed24['change$'],_0xd8f5e4[_0x2a0850(0x3e8)]),'component':Xa,get 'labels'(){const _0x2ab9fa=_0x2a0850;return{'add':_0x571a39['t'](_0x2ab9fa(0x301)),'configure':_0x283aa4=>_0x571a39['t']('bases-dashboard-ui.dashboard.configure',_0x283aa4),'delete':_0x571a39['t'](_0x2ab9fa(0x1d7)),'new':_0x571a39['t'](_0x2ab9fa(0x47b)),'rename':_0x571a39['t']('bases-dashboard-ui.dashboard.rename'),'search':_0x571a39['t'](_0x2ab9fa(0x45f)),'section':_0x571a39['t'](_0x2ab9fa(0x289))};},'getItems':_0x386c6b=>{const _0x337f59=_0x2a0850;let _0x5a9963=_0x40ed24[_0x337f59(0x255)](_0x386c6b);return _0x5a9963[_0x337f59(0x48e)][_0x337f59(0x1ae)](_0x1df6c1=>{const _0x393039=_0x337f59;let _0x24d6fe=_0x5a9963[_0x393039(0x3e5)][_0x1df6c1];return _0x24d6fe?[{'id':_0x24d6fe['id'],'name':_0x24d6fe[_0x393039(0x3aa)],'readonly':!_0x108b4a(_0xd8f5e4,_0x386c6b,_0x24d6fe['id'])}]:[];});},'create':async _0x4facf9=>{const _0x3f1158=_0x2a0850;let _0x295998=_0x40ed24['getResource'](_0x4facf9),_0x449cd6='dashboard-'+_0x3dac7b(0x8),_0x48d61d=To(_0x295998[_0x3f1158(0x48e)]['flatMap'](_0x277822=>{const _0x559ee2=_0x3f1158;let _0x4f4c3c=_0x295998[_0x559ee2(0x3e5)][_0x277822];return _0x4f4c3c?[_0x4f4c3c[_0x559ee2(0x3aa)]]:[];}),_0x5b09d2=>_0x571a39['t'](_0x3f1158(0x230),String(_0x5b09d2)));return await _0x438636['executeCommand'](_0x55205b['id'],{'unitId':_0x4facf9,'dashboard':{'id':_0x449cd6,'name':_0x48d61d,'widgetOrder':[],'widgets':{}}})?_0x449cd6:null;},'rename':async(_0x15edcf,_0x49250d,_0x20da3c)=>{const _0x3704d4=_0x2a0850;let _0x441c0e=_0x40ed24[_0x3704d4(0x4ca)](_0x15edcf,_0x49250d);return!!(_0x441c0e&&await _0x438636[_0x3704d4(0x43d)](_0x570003['id'],{'unitId':_0x15edcf,'dashboard':{..._0x441c0e,'name':_0x20da3c}}));},'remove':(_0x52e215,_0x557a65)=>_0x438636[_0x2a0850(0x43d)](_0x4136ca['id'],{'unitId':_0x52e215,'dashboardId':_0x557a65})};}function To(_0x2e0790,_0x1b0209){const _0x2f32f9=_0x219009;let _0x3dd744=new Set(_0x2e0790),_0x20b862=_0x3dd744[_0x2f32f9(0x2b6)]+0x1,_0x50294e=_0x1b0209(_0x20b862);for(;_0x3dd744['has'](_0x50294e);)_0x20b862+=0x1,_0x50294e=_0x1b0209(_0x20b862);return _0x50294e;}let Eo=class extends _0x12151f{constructor(_0x2c5b9c=_r,_0x12ea4a,_0x5b9aa2){const _0x168d81=_0x219009;super(),this[_0x168d81(0x48f)]=_0x2c5b9c,this[_0x168d81(0x23a)]=_0x12ea4a,this[_0x168d81(0x1fa)]=_0x5b9aa2;let {..._0x1c8323}=_0x3d5506({},_r,this['_config']);this['_configService']['setConfig'](gr,_0x1c8323);}[_0x219009(0x1bd)](){const _0x57c75f=_0x219009;this['_injector'][_0x57c75f(0x3e7)]([jr]),this[_0x57c75f(0x23a)][_0x57c75f(0x3e7)]([qr]),this['_injector'][_0x57c75f(0x3e7)]([Co]);}[_0x219009(0x23c)](){const _0xaeb2d5=_0x219009;_0x4a083e(this[_0xaeb2d5(0x23a)],[[jr],[qr],[Co]]);}};Ir(Eo,_0x219009(0x4b9),_0x160ed0[_0x219009(0x1b7)]),Ir(Eo,_0x219009(0x34c),_0x219009(0x218)),Ir(Eo,_0x219009(0x1bf),mr),Ir(Eo,_0x219009(0x39d),hr),Eo=Ar([_0x18504d(_0x138d6e,_0x2eebed,_0x255ca3,_0x559077,_0xd85df1,_0x351b40),Y(0x1,_0x346fbc(_0x9ca0eb)),Y(0x2,_0x5e932d)],Eo);export{ia as UniverBaseDashboardMobileUIPlugin,Eo as UniverBaseDashboardUIPlugin};
|
|
1
|
+
const _0x5d48da=_0x187c;(function(_0x24cc04,_0x21c685){const _0x20ab5a=_0x187c,_0xc2fabe=_0x24cc04();while(!![]){try{const _0x16c100=parseInt(_0x20ab5a(0xcb))/0x1+parseInt(_0x20ab5a(0x12e))/0x2*(parseInt(_0x20ab5a(0x26c))/0x3)+parseInt(_0x20ab5a(0x3d0))/0x4*(parseInt(_0x20ab5a(0x1d8))/0x5)+-parseInt(_0x20ab5a(0xd6))/0x6*(parseInt(_0x20ab5a(0x242))/0x7)+parseInt(_0x20ab5a(0x182))/0x8+parseInt(_0x20ab5a(0x197))/0x9+-parseInt(_0x20ab5a(0x30c))/0xa;if(_0x16c100===_0x21c685)break;else _0xc2fabe['push'](_0xc2fabe['shift']());}catch(_0x4c4a15){_0xc2fabe['push'](_0xc2fabe['shift']());}}}(_0x1f68,0xdbcfe));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x560757,BASES_DASHBOARD_GRID_COLUMNS as _0x3587a5,BaseChartRuntimeService as _0x2cf236,BaseDashboardResourceService as _0x3a16be,BaseDashboardWidgetType as _0x4dd1ab,CreateBaseDashboardCommand as _0x4764c4,DeleteBaseDashboardCommand as _0x391460,RemoveBaseDashboardWidgetCommand as _0x105c7d,UniverBaseDashboardPlugin as _0x7e7509,UpdateBaseDashboardCommand as _0x1e3e1b,UpdateBasePivotViewCommand as _0x173771,UpsertBaseDashboardWidgetCommand as _0x1041db,canEditBaseDashboard as _0x5706cb,canEditBasePivotView as _0x86a5a0,createBasePivotTable as _0x2a70ba,resolveBasePivotChartRowDirection as _0x1aba1a}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x166344,BaseMobileDrawer as _0x19aa31,BaseMobileFilterOperand as _0x2e05d2,BaseMobileFilterPanel as _0x52caf8,BaseUnitCollaborationStatus as _0x450293,FormulaEditorPanel as _0x6c795b,IBaseDashboardUIExtensionRegistryService as _0x5b5009,IBaseViewUIRegistryService as _0x414da1,MobileFormulaEditorPanel as _0x4524e4,UniverBasesMobileUIPlugin as _0x36ac31,UniverBasesUIPlugin as _0x408ea8,formulaToEditorFormula as _0x196177,normalizeEditorFormulaForConfig as _0x43ca80,toFormulaMenuTables as _0x372e38,toMenuFields as _0x28d476}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x8d6a08,ChartAxisSection as _0x51c0bf,ChartColorField as _0x209a9d,ChartCommonDataMappingSection as _0x70f2bb,ChartEditBlockTitle as _0x30e809,ChartEditPanel as _0x59879a,ChartEditPanelSection as _0x4baf7f,ChartEditPanelTab as _0x389329,ChartEditPanelTabs as _0x46e44d,ChartEditorCapability as _0xc8129,ChartEditorProvider as _0x4f5736,ChartFunnelStyleSection as _0x5591da,ChartGradientFillField as _0x1ca39a,ChartGridlinesAndTicksSection as _0x58fc11,ChartHeatmapStyleSection as _0x1aca4d,ChartHostAdapter as _0x367b2a,ChartIndicatorLineSection as _0x54d111,ChartLegendSection as _0x2205cf,ChartLineAndAreaSection as _0x2a4c4d,ChartNumberFormatAtom as _0x3f2847,ChartParetoSeriesSection as _0x117afe,ChartPieStyleSection as _0x32a1e9,ChartRadarStyleSection as _0x1423a1,ChartRelationStyleSection as _0x4117cf,ChartSectionAccordion as _0x151ab2,ChartSectionAccordionContent as _0x37b567,ChartSectionAccordionItem as _0x53ec64,ChartSectionAccordionTrigger as _0x51656d,ChartSeriesSection as _0x4f3338,ChartStackField as _0x1ed3a5,ChartStyleSection as _0xc54821,ChartThemeField as _0x3aee5e,ChartThreeDSection as _0x31fb16,ChartTitlesSection as _0x517322,ChartTrendlineSection as _0x311435,ChartTypeField as _0x3352ce,ChartTypeSpecificDataSection as _0x468257,ChartTypeSpecificSetupSection as _0x53d74e,ChartTypeSpecificStyleSection as _0x3f116c,ChartUIService as _0x4186b4,ChartViewStateRegistry as _0x3de432,ChartWaterfallSetupFields as _0x153e3c,ChartWaterfallStyleSection as _0x122082,ChartWordCloudStyleSection as _0x51f587,DEFAULT_CHART_AXIS_VALUES as _0x2b6728,DEFAULT_CHART_FUNNEL_VALUES as _0x5683c7,DEFAULT_CHART_HEATMAP_VALUES as _0x165da0,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x2adc54,DEFAULT_CHART_LEGEND_VALUES as _0x1267c7,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x514143,DEFAULT_CHART_PARETO_VALUES as _0x1e2ae9,DEFAULT_CHART_PIE_VALUES as _0x2e45c9,DEFAULT_CHART_RADAR_VALUES as _0x32285a,DEFAULT_CHART_RELATION_VALUES as _0x270a4f,DEFAULT_CHART_SERIES_VALUES as _0x338c3f,DEFAULT_CHART_STYLE_VALUES as _0x2d6dc1,DEFAULT_CHART_TITLE_VALUES as _0x5a35d2,DEFAULT_CHART_TRENDLINE_VALUES as _0x59bb04,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x3d8d6d,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x5630e0,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x5624b3,MobileChartEditorControls as _0x103427,MobileChartEditorProvider as _0x323b1b,UniverChartMobileUIPlugin as _0x38b402,UniverChartUIPlugin as _0x41f191,buildChartTypeSelectOptions as _0x2f5cf3,chartTypeSupportsCapability as _0x2ecac2,chartTypeSupportsLineAndAreaStyle as _0x1dac15,useChartEditorChartType as _0x10d8e4,useChartEditorHasRightAxis as _0xef83d1}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x5d1ed0}from'@univerjs-pro/license';import{ShapeFormulaService as _0x4aaa31,UniverShapeEditorPlugin as _0xff803e,createFormulaShapeData as _0x154b06}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0x3bfbe2,BaseFilterConjunction as _0x26ccb5,BaseFilterOperator as _0x462609,BaseViewType as _0xc74f11,DependentOn as _0xb94e7b,Disposable as _0x419e57,ICommandService as _0x1e6f93,IConfigService as _0x8e960e,IImageIoService as _0x2667ef,ILogService as _0x53f9ce,IPermissionService as _0x100697,IUndoRedoService as _0x12718a,IUniverInstanceService as _0x4829da,ImageSourceType as _0x3892df,Inject as _0x2d5804,Injector as _0x3c350b,LocaleService as _0x1ecd96,ObjectPermissionService as _0x5df1d5,Plugin as _0x1ea012,RedoCommand as _0x5eb015,ThemeService as _0x56b689,UndoCommand as _0x1c6299,UniverInstanceType as _0x247fc0,createParagraphId as _0x1be82d,dateKit as _0x3276ff,debounce as _0x18fc5e,generateRandomId as _0x2cedf9,merge as _0x362ea8,numfmt as _0x52ec2b,touchDependencies as _0xe4152}from'@univerjs/core';import{UniverDocsUIPlugin as _0x175601}from'@univerjs/docs-ui';import{ArrowDownIcon as _0xfb8e72,ArrowUpIcon as _0x343cd3,AscendingIcon as _0x558ec6,CalendarIcon as _0x143320,ChartIcon as _0x5f4d2a,CloseIcon as _0x1ab83b,DeleteIcon as _0x275aa7,DescendingIcon as _0x3c94ed,ExpandIcon as _0x6d0af7,FilterIcon as _0x266672,GripVerticalIcon as _0x1e67fc,IncreaseIcon as _0x4f1759,MoreDownIcon as _0x3693ad,MoreHorizontalIcon as _0x4093a6,NumberIcon as _0xfa6b5,PenIcon as _0x1d4ca0,PivotTableIcon as _0x55ff4b,ProtectIcon as _0x44f2df,RedoIcon as _0x245c5e,SearchIcon as _0xa664ad,TextIcon as _0x45f36b,UndoIcon as _0x4e88b7}from'@univerjs/icons';import{combineLatest as _0x4b0df4,map as _0x51821f,merge as _0x5f1bfe,skip as _0xf92f5f}from'rxjs';import{SetBasePermissionCommand as _0x5205b3,getBaseDashboardPermissionObjectId as _0x4b369a}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x5b5322}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x3069d9,ShapeLineTypeEnum as _0xaf4f42,ShapeTypeEnum as _0x5d0718}from'@univerjs-pro/engine-shape';import{Button as _0x101ca4,Checkbox as _0x57ed34,DatePicker as _0x485a77,Dialog as _0x4ce712,DropdownMenu as _0x56bbe5,Input as _0x5d579d,InputNumber as _0x57c888,MobileDialog as _0x5aeff1,MobileDropdownMenu as _0x4b4d66,MobileSelect as _0x71f9e8,MultipleSelect as _0x5ca0fb,Segmented as _0x18f25a,Select as _0x701e3d,Textarea as _0x80dadb,Tooltip as _0x2f0618,borderClassName as _0x3b0e1f,clsx as _0x37e66c,scrollbarClassName as _0xb0e9d1}from'@univerjs/design';import{UnitObject as _0x346fe7}from'@univerjs/protocol';import{ILayoutService as _0x23d8e9,ObjectPermissionButton as _0x4faeac,openObjectPermissionDialog as _0x523b72,useDependency as _0x40463f,useObservable as _0x5056f6}from'@univerjs/ui';import{useCallback as _0x26d744,useEffect as _0x185176,useMemo as _0x5c672b,useRef as _0x25fc59,useState as _0x4ebd7a}from'react';import{Fragment as _0x5554ea,jsx as _0x5628d9,jsxs as _0x2fa798}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x2ab57e,ChartRenderMode as _0x2d3214,ChartThemeService as _0x259141,ChartTypeBits as _0x1cf6fa,ChartWaterfallStyleTarget as _0x148de0,IChartRenderModelManagerService as _0x1b1321,RTLChartStyle as _0xa4c4f5,chartBitsUtils as _0x242779,chartTypeCanUseTrendLine as _0x3f9965,resolveChartRuntimeStyle as _0x197630,resolveDefaultChartHostFrameStyle as _0x4b1e9d,toChartModelUpdate as _0x5adbe1}from'@univerjs-pro/engine-chart';import{createPortal as _0x1c0161}from'react-dom';import{PivotCellStyleTypeEnum as _0x1dbe62,PivotDataFieldDataTypeEnum as _0xd2fae4,PivotDataFieldSortOperatorEnum as _0x1b5f3a,PivotFilterTypeEnum as _0x829bf6,PivotLayoutTypeEnum as _0xd936c5,PivotSubtotalPositionEnum as _0x551070,PivotSubtotalTypeEnum as _0x3bfa9b,PivotTableFiledAreaEnum as _0x87fd74,PivotTableValuePositionEnum as _0x3fa86b,isErrorValue as _0x3e551d,isPrefixValue as _0x2b18e7}from'@univerjs-pro/engine-pivot';var mr=_0x5d48da(0x3a6),hr=_0x5d48da(0x344);const gr='bases-dashboard-ui.config',_r={};function vr(_0x5a422e,_0x2463ea){const _0x5ac22d=_0x5d48da;let _0x111362=_0x40463f(_0x100697),_0x55e2a8=_0x5706cb(_0x111362,_0x5a422e,_0x2463ea);return _0x5056f6(()=>_0x111362[_0x5ac22d(0x27a)][_0x5ac22d(0x209)](_0x51821f(()=>_0x5706cb(_0x111362,_0x5a422e,_0x2463ea))),_0x55e2a8,!0x1,[_0x2463ea,_0x111362,_0x5a422e]);}function yr(_0x48aa7e,_0x650981,_0x29c2a5){const _0x2809a5=_0x5d48da;let _0x213337=_0x40463f(_0x100697),_0x5ee902=_0x86a5a0(_0x213337,_0x48aa7e,_0x650981,_0x29c2a5);return _0x5056f6(()=>_0x213337[_0x2809a5(0x27a)][_0x2809a5(0x209)](_0x51821f(()=>_0x86a5a0(_0x213337,_0x48aa7e,_0x650981,_0x29c2a5))),_0x5ee902,!0x1,[_0x213337,_0x650981,_0x48aa7e,_0x29c2a5]);}function br(_0x4b060b,_0x5be540=_0x5d48da(0x15c)){const _0xedf963=_0x5d48da;return{'backgroundImage':_0xedf963(0x274)+JSON[_0xedf963(0x3c1)](_0x4b060b)+')','backgroundPosition':_0x5be540===_0xedf963(0x2a3)?_0xedf963(0x1d5):_0xedf963(0x38c),'backgroundRepeat':_0x5be540===_0xedf963(0x2a3)?_0xedf963(0x2a3):_0xedf963(0x396),'backgroundSize':_0x5be540===_0xedf963(0x15c)?_0xedf963(0x15c):_0xedf963(0x1eb)};}const xr={'alignment':_0x5d48da(0x269),'currency':'USD','decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x5d48da(0x1eb),'numberFormat':'general'},Sr={'CNY':'¥','EUR':'€','USD':'$'};function Cr(_0x5b70d1){const _0x35391c=_0x5d48da;var _0x276a57;let _0x9d4daa=Dr(((_0x276a57=_0x5b70d1[_0x35391c(0x27e)][_0x35391c(0x3cb)])==null||(_0x276a57=_0x276a57[_0x35391c(0x371)])==null?void 0x0:_0x276a57[_0x35391c(0x1b0)])??'');return{...xr,..._0x9d4daa,..._0x5b70d1[_0x35391c(0x374)]};}function wr(_0x777079,_0xf92c84){const _0x572cde=_0x5d48da;let _0xed0cc4={..._0x777079[_0x572cde(0x374)],..._0xf92c84},_0x1707fc=Cr({..._0x777079,'appearance':_0xed0cc4}),_0x17e9b3=_0x777079[_0x572cde(0x27e)][_0x572cde(0x3cb)]??{'formula':''};return{..._0x777079,'appearance':_0xed0cc4,'shapeData':{..._0x777079[_0x572cde(0x27e)],'formulaBinding':{..._0x17e9b3,'numberFormat':{'pattern':Tr(_0x1707fc[_0x572cde(0x371)],_0x1707fc[_0x572cde(0xc9)],_0x1707fc[_0x572cde(0x1b3)])}}}};}function Tr(_0x4ba51e,_0x1488b2,_0x1c778a){const _0x1fe250=_0x5d48da;let _0x1d77b4=Math[_0x1fe250(0x16b)](0x0,Math[_0x1fe250(0x2cf)](0x8,Math['round'](_0x1488b2))),_0x3e7288=_0x1d77b4?'.'+'0'[_0x1fe250(0x2a3)](_0x1d77b4):'';switch(_0x4ba51e){case _0x1fe250(0x31b):return'0'+_0x3e7288;case _0x1fe250(0x228):return'0'+_0x3e7288+'%';case _0x1fe250(0x1b3):return(Sr[_0x1c778a]??_0x1c778a)+_0x1fe250(0x31c)+_0x3e7288;case'grouped':return _0x1fe250(0x31c)+_0x3e7288;case'compact':case _0x1fe250(0x308):return _0x1fe250(0x139);}}function Er(_0x54adf6,_0x7114fc,_0x43fb45){const _0x3fb8b8=_0x5d48da;return _0x43fb45['numberFormat']!==_0x3fb8b8(0xbd)||typeof _0x7114fc!='number'||!Number[_0x3fb8b8(0x206)](_0x7114fc)?_0x54adf6:new Intl[(_0x3fb8b8(0x160))](void 0x0,{'notation':_0x3fb8b8(0xbd),'minimumFractionDigits':_0x43fb45[_0x3fb8b8(0xc9)]??0x0,'maximumFractionDigits':_0x43fb45[_0x3fb8b8(0xc9)]??0x0})[_0x3fb8b8(0x231)](_0x7114fc);}function Dr(_0x11c280){const _0x3bfb32=_0x5d48da;var _0x150e9b,_0x3399bd;if(!_0x11c280||_0x11c280===_0x3bfb32(0x139))return{};let _0x443a3c=_0x11c280[_0x3bfb32(0x1c2)](/\.([0#]+)/),_0x178f1d=(_0x443a3c==null||(_0x150e9b=_0x443a3c[0x1])==null?void 0x0:_0x150e9b[_0x3bfb32(0x193)])??0x0;if(_0x11c280['includes']('%'))return{'decimalPlaces':_0x178f1d,'numberFormat':'percent'};let _0x447a83=(_0x3399bd=Object[_0x3bfb32(0x39a)](Sr)[_0x3bfb32(0x153)](([,_0x59cfa9])=>_0x11c280[_0x3bfb32(0x292)](_0x59cfa9)))==null?void 0x0:_0x3399bd[0x0];return _0x447a83?{'currency':_0x447a83,'decimalPlaces':_0x178f1d,'numberFormat':_0x3bfb32(0x1b3)}:{'decimalPlaces':_0x178f1d,'numberFormat':_0x11c280['includes'](',')?_0x3bfb32(0xa5):_0x3bfb32(0x31b)};}const Or={'center':'center','left':'flex-start','right':'flex-end'};function kr({dashboardId:_0x53a4b8,unitId:_0x3b08e6,widget:_0xcd3564}){const _0x7b1f9f=_0x5d48da;var _0x1f89d9,_0x3ab0d5,_0x2c225e,_0x67635e,_0x30baaa,_0x24796e,_0xe4b7f6,_0x1cdbd4,_0x59bd15;let _0x218504=_0x40463f(_0x4aaa31),_0x32044c=_0x40463f(_0x2667ef),_0x4558de=_0x40463f(_0x1ecd96),_0x38941e=_0x5c672b(()=>({'hostType':_0x247fc0[_0x7b1f9f(0x324)],'unitId':_0x3b08e6,'subUnitId':_0x53a4b8,'shapeId':_0xcd3564['id']}),[_0x53a4b8,_0x3b08e6,_0xcd3564['id']]),[_0x2b31c2,_0x366142]=_0x4ebd7a(()=>_0x218504[_0x7b1f9f(0x14d)](_0x38941e)),[_0x277246,_0x1fb780]=_0x4ebd7a(()=>{const _0x270289=_0x7b1f9f;var _0x259627;return(_0x259627=_0x218504[_0x270289(0xb7)](_0x38941e))==null?void 0x0:_0x259627['value'];}),[_0x43689c,_0x269e76]=_0x4ebd7a(),_0x3320a6=_0x25fc59(null),_0x23eb16=_0x25fc59(null),_0x573600=Cr(_0xcd3564);_0x185176(()=>{const _0x4f5797=_0x7b1f9f;let _0x56237c=_0x218504[_0x4f5797(0x338)][_0x4f5797(0x336)](_0x50affd=>{const _0x39b0fe=_0x4f5797;_0x50affd['unitId']===_0x3b08e6&&_0x50affd['subUnitId']===_0x53a4b8&&_0x50affd[_0x39b0fe(0x379)]===_0xcd3564['id']&&(_0x366142(_0x50affd[_0x39b0fe(0xf2)]),_0x1fb780(_0x50affd['result'][_0x39b0fe(0x32d)]));});return()=>_0x56237c[_0x4f5797(0x18f)]();},[_0x53a4b8,_0x218504,_0x38941e,_0x3b08e6,_0xcd3564['id']]),_0x185176(()=>{const _0x5e5b90=_0x7b1f9f;let _0x41db5f=_0x573600[_0x5e5b90(0x33c)];if(!_0x41db5f||_0x41db5f[_0x5e5b90(0xa8)]!==_0x3892df[_0x5e5b90(0xe0)])return;let _0x38fdbb=_0x32044c['getImageSourceCache'](_0x41db5f[_0x5e5b90(0x136)],_0x41db5f[_0x5e5b90(0xa8)]);if(_0x38fdbb!=null&&_0x38fdbb[_0x5e5b90(0x1f5)])return;let _0x2dc7bb=!0x0;return _0x32044c[_0x5e5b90(0xec)](_0x41db5f[_0x5e5b90(0x136)])['then'](_0x3dc761=>{const _0x246727=_0x5e5b90;_0x2dc7bb&&_0x269e76({'source':_0x41db5f[_0x246727(0x136)],'value':_0x3dc761});})['catch'](()=>void 0x0),()=>{_0x2dc7bb=!0x1;};},[_0x573600[_0x7b1f9f(0x33c)],_0x32044c]);let _0x4e6fd9=((_0x1f89d9=_0x573600['backgroundImage'])==null?void 0x0:_0x1f89d9[_0x7b1f9f(0xa8)])===_0x3892df[_0x7b1f9f(0xe0)]?((_0x3ab0d5=_0x32044c[_0x7b1f9f(0x17f)](_0x573600[_0x7b1f9f(0x33c)][_0x7b1f9f(0x136)],_0x573600[_0x7b1f9f(0x33c)]['sourceType']))==null?void 0x0:_0x3ab0d5[_0x7b1f9f(0x1f5)])??((_0x43689c==null?void 0x0:_0x43689c[_0x7b1f9f(0x136)])===_0x573600[_0x7b1f9f(0x33c)][_0x7b1f9f(0x136)]?_0x43689c[_0x7b1f9f(0x32d)]:''):((_0x2c225e=_0x573600[_0x7b1f9f(0x33c)])==null?void 0x0:_0x2c225e['source'])??'',_0x276d4f=_0xcd3564['shapeData'][_0x7b1f9f(0x261)],_0x4bbf16=_0x276d4f&&_0x7b1f9f(0x1e4)in _0x276d4f?(_0x67635e=_0x276d4f[_0x7b1f9f(0x1e4)])==null?void 0x0:_0x67635e[_0x7b1f9f(0x146)]:void 0x0,_0x4623c7=Er((_0x2b31c2==null?void 0x0:_0x2b31c2[_0x7b1f9f(0x2e2)])??'',_0x277246,_0x573600),_0x39432b=_0xcd3564[_0x7b1f9f(0x27e)][_0x7b1f9f(0x100)],_0x252f80=_0xcd3564[_0x7b1f9f(0x27e)][_0x7b1f9f(0x345)],_0x3892ca=_0x4bbf16==null||(_0x30baaa=_0x4bbf16[_0x7b1f9f(0x305)])==null?void 0x0:_0x30baaa[_0x7b1f9f(0x14b)],_0x42d84d=_0xcd3564[_0x7b1f9f(0x16e)]??_0xcd3564['title']??'';return _0x185176(()=>{const _0x24b721=_0x7b1f9f;let _0x370b40=_0x3320a6[_0x24b721(0xe8)],_0x4a2b7c=_0x23eb16[_0x24b721(0xe8)];if(!_0x370b40||!_0x4a2b7c)return;let _0x21fd10=()=>{const _0x3c7f7b=_0x24b721;if(_0x573600[_0x3c7f7b(0x27d)]===_0x3c7f7b(0x2ec)||!_0x370b40[_0x3c7f7b(0x178)]||!_0x370b40[_0x3c7f7b(0x34a)]){_0x4a2b7c['style'][_0x3c7f7b(0x268)]=_0x573600[_0x3c7f7b(0x268)]+'px';return;}let _0x3c2042=0x1,_0x135117=0x48,_0x416295=_0x3c2042;for(;_0x3c2042<=_0x135117;){let _0xadccdf=Math[_0x3c7f7b(0xf5)]((_0x3c2042+_0x135117)/0x2);_0x4a2b7c[_0x3c7f7b(0x36b)][_0x3c7f7b(0x268)]=_0xadccdf+'px',_0x4a2b7c[_0x3c7f7b(0x156)]<=_0x370b40[_0x3c7f7b(0x178)]&&_0x4a2b7c['scrollHeight']<=_0x370b40['clientHeight']?(_0x416295=_0xadccdf,_0x3c2042=_0xadccdf+0x1):_0x135117=_0xadccdf-0x1;}_0x4a2b7c[_0x3c7f7b(0x36b)][_0x3c7f7b(0x268)]=_0x416295+'px';};if(_0x21fd10(),typeof ResizeObserver>'u')return;let _0x1d599d=new ResizeObserver(_0x21fd10);return _0x1d599d[_0x24b721(0x386)](_0x370b40),()=>_0x1d599d[_0x24b721(0x101)]();},[_0x573600[_0x7b1f9f(0x268)],_0x573600[_0x7b1f9f(0x27d)],_0x4623c7]),_0x2fa798('div',{'data-dashboard-formula-shape':_0xcd3564['id'],'className':_0x7b1f9f(0x2dc),'style':{'backgroundColor':((_0x24796e=_0xcd3564[_0x7b1f9f(0x374)])==null?void 0x0:_0x24796e[_0x7b1f9f(0x2e5)])??((_0x39432b==null?void 0x0:_0x39432b['fillType'])===_0x3069d9['SolidFill']?_0x39432b[_0x7b1f9f(0x264)]??void 0x0:void 0x0),'border':(_0x252f80==null?void 0x0:_0x252f80['lineStrokeType'])===_0xaf4f42['SolidLine']?(_0x252f80[_0x7b1f9f(0x3ed)]??0x1)+_0x7b1f9f(0x215)+(_0x252f80['color']??'currentColor'):void 0x0,'borderRadius':_0xcd3564[_0x7b1f9f(0x273)]===_0x5d0718[_0x7b1f9f(0x226)]?0xc:void 0x0,'color':((_0xe4b7f6=_0xcd3564[_0x7b1f9f(0x374)])==null?void 0x0:_0xe4b7f6[_0x7b1f9f(0x13d)])??(_0x2b31c2==null?void 0x0:_0x2b31c2[_0x7b1f9f(0x264)])??(_0x3892ca==null||(_0x1cdbd4=_0x3892ca['cl'])==null?void 0x0:_0x1cdbd4[_0x7b1f9f(0x27b)])??void 0x0,'fontWeight':_0x3892ca!=null&&_0x3892ca['bl']?0x258:void 0x0,'textAlign':_0x573600['alignment']},'children':[_0x4e6fd9&&_0x5628d9('img',{'src':_0x4e6fd9,'alt':'','aria-hidden':_0x7b1f9f(0x1da),'className':'univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','style':{'objectFit':((_0x59bd15=_0x573600[_0x7b1f9f(0x33c)])==null?void 0x0:_0x59bd15[_0x7b1f9f(0x1f3)])??_0x7b1f9f(0x15c)}}),_0x2fa798('div',{'className':'univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','children':[_0x42d84d&&_0x5628d9(_0x7b1f9f(0x334),{'data-dashboard-formula-description':!0x0,'className':_0x7b1f9f(0x368),'children':_0x42d84d}),_0x5628d9('div',{'ref':_0x3320a6,'data-dashboard-formula-value':!0x0,'aria-label':_0x42d84d||_0x4558de['t'](_0x7b1f9f(0x38b)),'className':_0x7b1f9f(0x123),'style':{'justifyContent':Or[_0x573600[_0x7b1f9f(0x326)]]},'children':_0x5628d9(_0x7b1f9f(0x339),{'ref':_0x23eb16,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x573600[_0x7b1f9f(0x27d)],'className':_0x7b1f9f(0x2da),'children':_0x4623c7})})]})]});}function Y(_0x3c52d0,_0x52ca40){return function(_0x234436,_0x580925){_0x52ca40(_0x234436,_0x580925,_0x3c52d0);};}function Ar(_0x209677,_0x750a2a,_0x1f3817,_0x24be8c){const _0x2a5568=_0x5d48da;var _0x1cb919=arguments[_0x2a5568(0x193)],_0x68ea59=_0x1cb919<0x3?_0x750a2a:_0x24be8c===null?_0x24be8c=Object[_0x2a5568(0x138)](_0x750a2a,_0x1f3817):_0x24be8c,_0x4f63bb;if(typeof Reflect==_0x2a5568(0x262)&&typeof Reflect[_0x2a5568(0x301)]==_0x2a5568(0x201))_0x68ea59=Reflect[_0x2a5568(0x301)](_0x209677,_0x750a2a,_0x1f3817,_0x24be8c);else{for(var _0x43d555=_0x209677[_0x2a5568(0x193)]-0x1;_0x43d555>=0x0;_0x43d555--)(_0x4f63bb=_0x209677[_0x43d555])&&(_0x68ea59=(_0x1cb919<0x3?_0x4f63bb(_0x68ea59):_0x1cb919>0x3?_0x4f63bb(_0x750a2a,_0x1f3817,_0x68ea59):_0x4f63bb(_0x750a2a,_0x1f3817))||_0x68ea59);}return _0x1cb919>0x3&&_0x68ea59&&Object['defineProperty'](_0x750a2a,_0x1f3817,_0x68ea59),_0x68ea59;}let jr=class{constructor(_0x19cede,_0x1667f6,_0xc9129c){const _0x1eaf86=_0x5d48da;this[_0x1eaf86(0xa3)]=_0x19cede,this['_chartThemeService']=_0x1667f6,this[_0x1eaf86(0x135)]=_0xc9129c;}[_0x5d48da(0xfd)](){const _0x4eb9e9=_0x5d48da;return this[_0x4eb9e9(0x135)][_0x4eb9e9(0x36d)](_0x2d3214[_0x4eb9e9(0x3b2)],this[_0x4eb9e9(0x3d2)]());}['createRenderInput'](_0x75b2c4){const _0x17a813=_0x5d48da;let _0x47682c=_0x75b2c4[_0x17a813(0x1ad)]['config'];if(!_0x47682c)throw Error(_0x17a813(0x38e)+_0x75b2c4[_0x17a813(0x1c1)]+'\x20has\x20no\x20render\x20config.');let _0x543cdd=this[_0x17a813(0xa3)][_0x17a813(0x29b)]();return{'config':_0x47682c,'style':_0x197630({..._0x75b2c4[_0x17a813(0x1ad)][_0x17a813(0x36b)],'runtime':_0x75b2c4[_0x17a813(0x1ad)][_0x17a813(0xa9)](_0x543cdd),'direction':_0x543cdd},_0x47682c['type'])};}['_createContext'](){const _0x20b727=_0x5d48da;return{'resolveHostStyle':({style:_0x326437})=>_0x4b1e9d({'style':_0x326437,'getRenderColor':_0x29f14c=>this['_chartThemeService'][_0x20b727(0xac)](_0x29f14c)}),'resolveRenderBackgroundColor':({hostStyle:_0x1b71a2})=>_0x1b71a2[_0x20b727(0x100)]};}};jr=Ar([Y(0x0,_0x2d5804(_0x1ecd96)),Y(0x1,_0x2d5804(_0x259141)),Y(0x2,_0x1b1321)],jr);function Mr(_0x317ba1,_0x3baaec){const _0x1ba7ee=_0x5d48da;var _0x320c6e;_0x317ba1[_0x1ba7ee(0x36b)][_0x1ba7ee(0x2e5)]=_0x3baaec[_0x1ba7ee(0x100)]??_0x1ba7ee(0x317),_0x317ba1['style'][_0x1ba7ee(0x2e1)]=(_0x320c6e=_0x3baaec[_0x1ba7ee(0x2e1)])!=null&&_0x320c6e[_0x1ba7ee(0x264)]&&_0x3baaec[_0x1ba7ee(0x2e1)][_0x1ba7ee(0x3ed)]?_0x3baaec[_0x1ba7ee(0x2e1)][_0x1ba7ee(0x3ed)]+'px\x20solid\x20'+_0x3baaec[_0x1ba7ee(0x2e1)][_0x1ba7ee(0x264)]:'',_0x317ba1[_0x1ba7ee(0x36b)][_0x1ba7ee(0x194)]=_0x3baaec[_0x1ba7ee(0x2c0)]?_0x3baaec[_0x1ba7ee(0x2c0)]+'px':'',_0x317ba1[_0x1ba7ee(0x36b)][_0x1ba7ee(0x312)]='hidden',_0x317ba1[_0x1ba7ee(0x36b)][_0x1ba7ee(0x2ab)]=_0x1ba7ee(0x20d);}function Nr(_0x40e74e){'@babel/helpers - typeof';const _0x4c9bc3=_0x5d48da;return Nr=typeof Symbol=='function'&&typeof Symbol[_0x4c9bc3(0x109)]==_0x4c9bc3(0x15e)?function(_0x43314e){return typeof _0x43314e;}:function(_0xdca108){const _0x1db8df=_0x4c9bc3;return _0xdca108&&typeof Symbol==_0x1db8df(0x201)&&_0xdca108['constructor']===Symbol&&_0xdca108!==Symbol['prototype']?_0x1db8df(0x15e):typeof _0xdca108;},Nr(_0x40e74e);}function Pr(_0x23bbb2,_0x5c844a){const _0x2e08b1=_0x5d48da;if(Nr(_0x23bbb2)!=_0x2e08b1(0x262)||!_0x23bbb2)return _0x23bbb2;var _0x11b894=_0x23bbb2[Symbol[_0x2e08b1(0x113)]];if(_0x11b894!==void 0x0){var _0x94eae1=_0x11b894[_0x2e08b1(0xdf)](_0x23bbb2,_0x5c844a||'default');if(Nr(_0x94eae1)!=_0x2e08b1(0x262))return _0x94eae1;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x5c844a===_0x2e08b1(0xd5)?String:Number)(_0x23bbb2);}function Fr(_0x2c73a6){const _0x2d011f=_0x5d48da;var _0x5868ea=Pr(_0x2c73a6,'string');return Nr(_0x5868ea)==_0x2d011f(0x15e)?_0x5868ea:_0x5868ea+'';}function Ir(_0x6c6fc5,_0xfd2eee,_0x4feb91){const _0x139fd3=_0x5d48da;return(_0xfd2eee=Fr(_0xfd2eee))in _0x6c6fc5?Object[_0x139fd3(0x2df)](_0x6c6fc5,_0xfd2eee,{'value':_0x4feb91,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x6c6fc5[_0xfd2eee]=_0x4feb91,_0x6c6fc5;}var Lr=class extends _0x419e57{constructor(_0x325a3b,_0x4d04a5){const _0x56ca11=_0x5d48da;super(),this['chartId']=_0x325a3b,this[_0x56ca11(0x11a)]=_0x4d04a5,Ir(this,_0x56ca11(0x362),_0x2d3214[_0x56ca11(0x3b2)]);}[_0x5d48da(0x1a9)](){const _0x928b31=_0x5d48da;return{'width':Math[_0x928b31(0x16b)](0x1,this[_0x928b31(0x11a)][_0x928b31(0x178)]),'height':Math[_0x928b31(0x16b)](0x1,this[_0x928b31(0x11a)]['clientHeight'])};}[_0x5d48da(0x235)](_0x31d235){const _0x32d635=_0x5d48da;Mr(this[_0x32d635(0x11a)],_0x31d235);}async[_0x5d48da(0x2ee)](){const _0x42fb32=_0x5d48da;return this[_0x42fb32(0x11a)];}[_0x5d48da(0x107)](){const _0x188f09=_0x5d48da;return this['_element'][_0x188f09(0x1f1)];}[_0x5d48da(0x216)](){}['markReady'](){}['markNotReady'](){}};function Rr({isRowDirection:_0x9ecf32,runtime:_0x112fb0}){const _0x56054e=_0x5d48da;let _0x3a1d28=_0x25fc59(null),_0x528e77=_0x40463f(_0x1ecd96),_0x1d4368=_0x40463f(_0x53f9ce),_0x1e2165=_0x40463f(jr),_0x3ee7cf=_0x40463f(_0x56b689);return _0x185176(()=>{const _0x4fadb8=_0x187c;let _0x1f28ca=_0x3a1d28[_0x4fadb8(0xe8)];if(!_0x1f28ca)return;_0x1f28ca[_0x4fadb8(0x23c)]();let {chartId:_0x3228cc,model:_0x2a519b}=_0x112fb0,_0x275e73=_0x2a519b[_0x4fadb8(0x3e2)],_0x582836=new Lr(_0x3228cc,_0x1f28ca),_0x299edb=_0x1e2165[_0x4fadb8(0xfd)](),_0x54c634=!0x1,_0x2efd0f=null,_0x176978=null,_0x32a32b=null,_0x1fcd7a=null,_0x2a81d2=!0x1,_0x3237ec=!0x1,_0x480bac=Promise[_0x4fadb8(0x248)]();_0x299edb[_0x4fadb8(0x202)](_0x582836);let _0xf95632=()=>{const _0xea578=_0x4fadb8;var _0x3b532f,_0xad6c65,_0x43a356,_0x1c1155;if(document[_0xea578(0x103)]===_0xea578(0x30b)||(_0x3b532f=(_0xad6c65=window)[_0xea578(0x30f)])!=null&&(_0x3b532f=_0x3b532f['call'](_0xad6c65,_0xea578(0x212)))!=null&&_0x3b532f[_0xea578(0xa2)]||(_0x43a356=(_0x1c1155=window)[_0xea578(0x30f)])!=null&&(_0x43a356=_0x43a356[_0xea578(0xdf)](_0x1c1155,'print'))!=null&&_0x43a356[_0xea578(0xa2)]||!_0x1f28ca[_0xea578(0x1f1)])return!0x1;let _0x2b5eb5=_0x1f28ca[_0xea578(0x319)]();return _0x2b5eb5['width']>0x0&&_0x2b5eb5['height']>0x0&&_0x2b5eb5[_0xea578(0x39f)]>0x0&&_0x2b5eb5[_0xea578(0xdc)]>0x0&&_0x2b5eb5[_0xea578(0x269)]<window[_0xea578(0xed)]&&_0x2b5eb5['top']<window[_0xea578(0x219)];},_0x1de769=()=>{const _0x1793ee=_0x4fadb8;_0x176978!==null&&clearTimeout(_0x176978),_0x1f28ca[_0x1793ee(0x19e)]['baseChartDataAnimation']='true',_0x1f28ca[_0x1793ee(0x19e)][_0x1793ee(0x207)]=String(_0x2ab57e),_0x176978=setTimeout(()=>{const _0x4aff10=_0x1793ee;_0x176978=null,delete _0x1f28ca['dataset'][_0x4aff10(0x13f)],delete _0x1f28ca[_0x4aff10(0x19e)][_0x4aff10(0x207)];},_0x2ab57e);},_0x2cc027=_0x18fc5e(()=>{const _0x139be7=_0x4fadb8;if(_0x54c634||(_0x2efd0f!==null&&(clearTimeout(_0x2efd0f),_0x2efd0f=null),!_0x2a519b[_0x139be7(0xa7)]))return;let _0x142150=_0x3237ec;_0x3237ec=!0x1,_0x1f28ca[_0x139be7(0x19e)]['chartType']=String(_0x2a519b[_0x139be7(0x287)]),_0x1f28ca[_0x139be7(0x19e)]['chartRowDirection']=String(_0x9ecf32);let _0x42d7d5=_0x1e2165[_0x139be7(0x1c5)](_0x112fb0),_0xdf0e40={'chartId':_0x3228cc,'config':_0x42d7d5[_0x139be7(0xa7)],'style':_0x42d7d5[_0x139be7(0x36b)]};_0x480bac=_0x480bac['then'](async()=>{const _0x532d4d=_0x139be7;_0x54c634||(_0x1f28ca[_0x532d4d(0x19e)][_0x532d4d(0x3ea)]=String(Number(_0x1f28ca['dataset'][_0x532d4d(0x3ea)]??0x0)+0x1),_0x142150&&_0x32a32b&&_0x299edb['renderTransition']&&_0xf95632()?(await _0x299edb[_0x532d4d(0x33a)](_0x32a32b,_0xdf0e40,{'duration':_0x2ab57e}),_0x54c634||_0x1de769()):await _0x299edb[_0x532d4d(0x14e)](_0xdf0e40),_0x32a32b=_0xdf0e40);})[_0x139be7(0x26d)](_0xabee1d=>_0x1d4368[_0x139be7(0x1a0)](_0x139be7(0xde),_0xabee1d));},0x64,{'leading':!0x0,'trailing':!0x0,'maxWait':0x64}),_0x5f0bb7=(_0x155494=!0x1)=>{_0x3237ec||=_0x155494,_0x2a81d2||(_0x2a81d2=!0x0,queueMicrotask(()=>{_0x2a81d2=!0x1,_0x54c634||_0x2cc027();}));},_0x3ba4f9=[_0x275e73['data$'][_0x4fadb8(0x336)](_0x17c1c2=>{const _0x258670=_0x4fadb8;let _0x3c216a=JSON[_0x258670(0x3c1)](_0x17c1c2);_0x1fcd7a!=null&&_0x1fcd7a!==_0x3c216a&&_0x5f0bb7(!0x0),_0x1fcd7a=_0x3c216a;}),_0x2a519b['config$']['subscribe'](_0x51f2e6=>{_0x51f2e6&&_0x5f0bb7();}),_0x2a519b['style$']['subscribe'](()=>_0x5f0bb7()),_0x528e77[_0x4fadb8(0x1bc)][_0x4fadb8(0x336)](()=>_0x5f0bb7()),_0x4b0df4([_0x3ee7cf['currentTheme$'],_0x3ee7cf[_0x4fadb8(0x227)]])[_0x4fadb8(0x209)](_0xf92f5f(0x1))[_0x4fadb8(0x336)](()=>_0x5f0bb7())],_0x1d090e=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x5b73d6=_0x4fadb8;_0x54c634||(_0x582836[_0x5b73d6(0x216)](),_0x2efd0f!==null&&clearTimeout(_0x2efd0f),_0x2efd0f=setTimeout(()=>_0x5f0bb7(),0x64));});return _0x1d090e==null||_0x1d090e[_0x4fadb8(0x386)](_0x1f28ca),()=>{const _0x6b5b90=_0x4fadb8;_0x54c634=!0x0,_0x2cc027[_0x6b5b90(0x1bd)](),_0x2efd0f!==null&&clearTimeout(_0x2efd0f),_0x176978!==null&&clearTimeout(_0x176978),delete _0x1f28ca[_0x6b5b90(0x19e)][_0x6b5b90(0x13f)],delete _0x1f28ca[_0x6b5b90(0x19e)][_0x6b5b90(0x207)],_0x1d090e==null||_0x1d090e[_0x6b5b90(0x101)](),_0x3ba4f9['forEach'](_0x2b94cd=>_0x2b94cd[_0x6b5b90(0x18f)]()),_0x299edb[_0x6b5b90(0x1b9)](),_0x582836['dispose'](),_0x1f28ca[_0x6b5b90(0x23c)]();};},[_0x9ecf32,_0x528e77,_0x1d4368,_0x1e2165,_0x112fb0,_0x3ee7cf]),_0x5628d9(_0x56054e(0x334),{'ref':_0x3a1d28,'data-u-comp':'base-pivot-chart','className':'univer-absolute\x20univer-inset-0\x20univer-overflow-hidden'});}function zr({filters:_0x5af1c9,onRuntimeChange:_0xc0c239,unitId:_0x3de44b,widget:_0x40a9cc}){const _0x1a2402=_0x5d48da;let _0x32895f=_0x40463f(_0x4829da),_0x70fe7e=_0x40463f(_0x1ecd96),_0x2f89b1=_0x40463f(_0x53f9ce),_0x5c0b3a=_0x40463f(_0x2cf236),[_0x53cd94,_0x2f9f66]=_0x4ebd7a(null),[_0x3b63f9,_0x1fd0d0]=_0x4ebd7a(!0x1),[_0x2172ff,_0x4afc9a]=_0x4ebd7a(null),_0x3b64a8=_0x25fc59(_0x1a2402(0x1e6)+_0x2cedf9(0x8)),_0x15d9a6=_0x32895f['getUnit'](_0x3de44b,_0x247fc0[_0x1a2402(0x324)]),_0x5b64ca=_0x15d9a6==null?void 0x0:_0x15d9a6[_0x1a2402(0x3e8)]()[_0x1a2402(0x3b5)][_0x40a9cc[_0x1a2402(0x9d)]],_0x475831=_0x5b64ca==null?void 0x0:_0x5b64ca[_0x1a2402(0x2eb)][_0x40a9cc[_0x1a2402(0x260)]],_0x1ac970=Br(_0x475831);if(_0x185176(()=>{const _0x1f2893=_0x1a2402;if(!_0x1ac970)return;let _0x14fcee=_0x3b64a8[_0x1f2893(0xe8)];return _0x5c0b3a[_0x1f2893(0x1fe)](_0x14fcee,{'unitId':_0x3de44b,'tableId':_0x40a9cc[_0x1f2893(0x9d)],'viewId':_0x40a9cc[_0x1f2893(0x260)],'filters':[]}),()=>{const _0x558f62=_0x1f2893;_0x5c0b3a[_0x558f62(0x3e0)](_0x3de44b,_0x14fcee),_0xc0c239==null||_0xc0c239(_0x40a9cc['id'],null);};},[_0x1ac970,_0xc0c239,_0x5c0b3a,_0x3de44b,_0x40a9cc['id'],_0x40a9cc[_0x1a2402(0x260)],_0x40a9cc[_0x1a2402(0x9d)]]),_0x185176(()=>{const _0x2c85ed=_0x1a2402;if(!Br(_0x475831))return;let _0x13a4b8=!0x0,_0x164060=_0x40a9cc[_0x2c85ed(0x204)]??_0x475831['config'][_0x2c85ed(0x204)],_0x4adec5={'unitId':_0x3de44b,'tableId':_0x40a9cc[_0x2c85ed(0x9d)],'viewId':_0x40a9cc[_0x2c85ed(0x260)],'filters':[_0x475831[_0x2c85ed(0x122)]??null,..._0x5af1c9]};return _0x5c0b3a[_0x2c85ed(0x276)](_0x3de44b,_0x3b64a8[_0x2c85ed(0xe8)],_0x4adec5,_0x164060)['then'](_0xbd77b2=>{const _0x517776=_0x2c85ed;if(!_0x13a4b8||!_0xbd77b2)return;let _0x4a88c9=_0x5c0b3a[_0x517776(0x128)](_0x3de44b,_0x3b64a8['current'])??null;_0x2f9f66(_0xbd77b2),_0x4afc9a(_0x4a88c9),_0x1fd0d0(!0x1),_0xc0c239==null||_0xc0c239(_0x40a9cc['id'],_0x4a88c9);})['catch'](_0x2db6fb=>{_0x2f89b1['error']('[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x2db6fb),_0x13a4b8&&(_0x2f9f66(null),_0x1fd0d0(!0x0));}),()=>{_0x13a4b8=!0x1;};},[_0x5af1c9,_0x2f89b1,_0xc0c239,_0x5c0b3a,_0x3de44b,_0x475831,_0x40a9cc[_0x1a2402(0x204)],_0x40a9cc['id'],_0x40a9cc[_0x1a2402(0x260)],_0x40a9cc[_0x1a2402(0x9d)]]),!Br(_0x475831))return _0x5628d9('div',{'className':_0x1a2402(0x2bf),'children':_0x70fe7e['t'](_0x1a2402(0x1bb))});let _0x23f5f0=_0x5c0b3a[_0x1a2402(0x128)](_0x3de44b,_0x3b64a8[_0x1a2402(0xe8)])===_0x2172ff?_0x2172ff:null;return _0x53cd94&&_0x23f5f0?_0x5628d9(Rr,{'isRowDirection':_0x1aba1a((_0x40a9cc['chart']??_0x475831['config'][_0x1a2402(0x204)])[_0x1a2402(0x1e8)]),'runtime':_0x23f5f0}):_0x5628d9(_0x1a2402(0x334),{'className':_0x1a2402(0x2bf),'children':_0x70fe7e['t'](_0x3b63f9?_0x1a2402(0x372):_0x1a2402(0x2a9))});}function Br(_0x431f9d){const _0x44ddea=_0x5d48da;return(_0x431f9d==null?void 0x0:_0x431f9d['type'])===_0xc74f11[_0x44ddea(0xe1)]&&typeof _0x431f9d[_0x44ddea(0xa7)]=='object'&&_0x431f9d[_0x44ddea(0xa7)]!==null&&_0x44ddea(0x106)in _0x431f9d[_0x44ddea(0xa7)]&&_0x44ddea(0x204)in _0x431f9d[_0x44ddea(0xa7)];}const Vr={'alignment':_0x5d48da(0x269),'fontSize':0x12,'fontSizeMode':_0x5d48da(0x1eb)};function Hr(_0x247a55){const _0x25d962=_0x5d48da;return{...Vr,..._0x247a55[_0x25d962(0x374)]};}function Ur(_0x57ad97){const _0x121ad3=_0x5d48da;var _0x2b2668;return((_0x2b2668=_0x57ad97[_0x121ad3(0x3eb)])==null?void 0x0:_0x2b2668['dataStream']['replace'](/\r\n$/,'')[_0x121ad3(0x2e0)](/\r/g,'\x0a'))??'';}function Wr(_0x4ead5e,_0x1a7cff){const _0x436060=_0x5d48da;var _0x8bb7d5;let _0x545986=_0x1a7cff['replace'](/\r\n|\r/g,'\x0a')[_0x436060(0x120)]('\x0a'),_0x5968b2=_0x545986['join']('\x0d')+'\x0d\x0a',_0x34aa7a=((_0x8bb7d5=_0x4ead5e[_0x436060(0x3eb)])==null?void 0x0:_0x8bb7d5[_0x436060(0x367)])??[],_0x398ddb=new Set(_0x34aa7a[_0x436060(0x2ea)](_0xa26442=>_0xa26442[_0x436060(0x15a)])),_0x26ee5b=0x0,_0x4aab4e=_0x545986[_0x436060(0x2ea)]((_0x1d6fa1,_0x195290)=>{_0x26ee5b+=_0x1d6fa1['length'];let _0x178f21={..._0x34aa7a[_0x195290]??{'startIndex':_0x26ee5b,'paragraphId':_0x1be82d(_0x398ddb)},'startIndex':_0x26ee5b};return _0x26ee5b+=0x1,_0x178f21;});return{..._0x4ead5e,'body':{..._0x4ead5e['body'],'dataStream':_0x5968b2,'paragraphs':_0x4aab4e,'textRuns':[]}};}function Gr({widget:_0x132cd7}){const _0x45e077=_0x5d48da;let _0x45e8bd=_0x40463f(_0x56b689),_0x2c3af1=_0x40463f(_0x1ecd96),_0x3b3c6c=_0x5056f6(()=>_0x45e8bd[_0x45e077(0x137)],_0x45e8bd[_0x45e077(0x3cf)](),!0x1,[_0x45e8bd]),_0x2b893f=_0x25fc59(null),_0x58a1a2=_0x25fc59(null),_0x4cc9f0=Hr(_0x132cd7),_0x12aa01=_0x4cc9f0[_0x45e077(0x2e5)]??_0x3b3c6c['gray'][0x0],_0x511ce0=_0x4cc9f0[_0x45e077(0x13d)]??_0x3b3c6c[_0x45e077(0x14a)][0x3e8],_0x3a894c=Ur(_0x132cd7['document']);return _0x185176(()=>{const _0x5afb81=_0x45e077;let _0xfae14=_0x2b893f[_0x5afb81(0xe8)],_0x266a12=_0x58a1a2[_0x5afb81(0xe8)];if(!_0xfae14||!_0x266a12)return;let _0x1fd93e=()=>{const _0x41907c=_0x5afb81;if(_0x4cc9f0[_0x41907c(0x27d)]===_0x41907c(0x2ec)||!_0xfae14[_0x41907c(0x178)]||!_0xfae14[_0x41907c(0x34a)]){_0x266a12[_0x41907c(0x36b)][_0x41907c(0x268)]=_0x4cc9f0[_0x41907c(0x268)]+'px';return;}let _0x5c6b69=0x8,_0x1b468b=0x48,_0x1ce856=_0x5c6b69;for(;_0x5c6b69<=_0x1b468b;){let _0x45cb1e=Math[_0x41907c(0xf5)]((_0x5c6b69+_0x1b468b)/0x2);_0x266a12['style'][_0x41907c(0x268)]=_0x45cb1e+'px',_0x266a12['scrollWidth']<=_0xfae14[_0x41907c(0x178)]&&_0x266a12['scrollHeight']<=_0xfae14['clientHeight']?(_0x1ce856=_0x45cb1e,_0x5c6b69=_0x45cb1e+0x1):_0x1b468b=_0x45cb1e-0x1;}_0x266a12[_0x41907c(0x36b)]['fontSize']=_0x1ce856+'px';};if(_0x1fd93e(),typeof ResizeObserver>'u')return;let _0x2b8625=new ResizeObserver(_0x1fd93e);return _0x2b8625['observe'](_0xfae14),()=>_0x2b8625[_0x5afb81(0x101)]();},[_0x4cc9f0[_0x45e077(0x268)],_0x4cc9f0[_0x45e077(0x27d)],_0x3a894c]),_0x5628d9(_0x45e077(0x334),{'data-dashboard-text-widget':_0x132cd7['id'],'className':_0x45e077(0x3bf),'style':{'backgroundColor':_0x12aa01,'color':_0x511ce0},'children':_0x5628d9('div',{'ref':_0x2b893f,'data-dashboard-text-content':!0x0,'aria-label':_0x2c3af1['t'](_0x45e077(0x126)),'className':_0x45e077(0x291),'children':_0x5628d9(_0x45e077(0x334),{'ref':_0x58a1a2,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x4cc9f0[_0x45e077(0x27d)],'className':_0x45e077(0x29f),'style':{'textAlign':_0x4cc9f0[_0x45e077(0x326)]},'children':_0x3a894c})})});}function Kr({dashboard:_0x1351cd,editable:_0x22bfb3=!0x0,onSelectWidget:_0x42be92,renderWidget:_0x379327,renderWidgetActions:_0x26f84e,selectedWidgetId:_0x58e435,widgetLabel:_0x474819}){const _0x553c96=_0x5d48da;return _0x5628d9(_0x553c96(0x334),{'data-dashboard-scroll-container':!0x0,'className':_0x37e66c(_0x553c96(0x2b2),_0xb0e9d1),'onClick':_0x22bfb3?_0x1e848f=>{const _0x28ad38=_0x553c96;if(!(_0x1e848f[_0x28ad38(0x320)]instanceof Node)||!_0x1e848f[_0x28ad38(0x3c6)][_0x28ad38(0x1d4)](_0x1e848f[_0x28ad38(0x320)]))return;let _0x3d7747=_0x1e848f[_0x28ad38(0x320)]instanceof Element?_0x1e848f[_0x28ad38(0x320)]:_0x1e848f[_0x28ad38(0x320)][_0x28ad38(0x3b0)];_0x3d7747!=null&&_0x3d7747['closest']('[data-dashboard-widget]')||_0x42be92==null||_0x42be92();}:void 0x0,'children':_0x5628d9(_0x553c96(0x334),{'data-dashboard-grid':!0x0,'className':_0x553c96(0x35f),'children':_0x1351cd[_0x553c96(0x3a0)][_0x553c96(0x2ea)](_0x19e746=>{const _0x6b23c8=_0x553c96;let _0x4035fa=_0x1351cd[_0x6b23c8(0x1f6)][_0x19e746];if(!_0x4035fa)return null;let _0x32a09a=Math['max'](0xb4,_0x4035fa[_0x6b23c8(0x3e1)][_0x6b23c8(0x314)]*_0x560757);return _0x2fa798(_0x6b23c8(0x335),{'data-dashboard-widget':_0x4035fa['id'],'aria-label':_0x4035fa[_0x6b23c8(0xbc)]??_0x474819(_0x4035fa),'className':_0x37e66c(_0x6b23c8(0x18e),_0x4035fa['type']===_0x4dd1ab[_0x6b23c8(0x3c0)]||_0x4035fa[_0x6b23c8(0x278)]===_0x4dd1ab[_0x6b23c8(0x2c2)]?'univer-bg-transparent\x20dark:!univer-bg-transparent':'univer-bg-gray-0\x20dark:!univer-bg-gray-900',_0x22bfb3&&_0x58e435===_0x4035fa['id']?_0x6b23c8(0x2b6):'univer-border-gray-200\x20dark:!univer-border-gray-700'),'style':{'minHeight':_0x32a09a,'height':_0x32a09a},'tabIndex':_0x22bfb3?0x0:void 0x0,'onClick':_0x22bfb3?()=>_0x42be92==null?void 0x0:_0x42be92(_0x4035fa['id']):void 0x0,'onFocus':_0x22bfb3?()=>_0x42be92==null?void 0x0:_0x42be92(_0x4035fa['id']):void 0x0,'children':[_0x22bfb3&&_0x5628d9(_0x6b23c8(0x334),{'className':_0x6b23c8(0x143),'children':_0x26f84e==null?void 0x0:_0x26f84e(_0x4035fa)}),_0x5628d9('div',{'className':_0x6b23c8(0x20a),'children':_0x379327(_0x4035fa)})]},_0x4035fa['id']);})})});}let qr=class extends _0x4186b4{constructor(_0x4cb094){const _0x4adf75=_0x5d48da;super(_0x4cb094),Ir(this,_0x4adf75(0x1ab),null);}[_0x5d48da(0xb2)](_0x18dfb0){}};qr=Ar([Y(0x0,_0x2d5804(_0x3de432))],qr);function Jr({children:_0x57d3af}){return _0x5628d9(_0x103427,{'children':_0x57d3af});}function Yr(_0x351973){return _0x5628d9(_0x71f9e8,{..._0x351973});}function Xr(_0x1a8e74){return _0x5628d9(_0x4b4d66,{..._0x1a8e74});}function Zr(_0x113d6a){return _0x5628d9(_0x5aeff1,{..._0x113d6a});}var Qr;const X={'axis':{..._0x2b6728,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x5683c7,'heatmap':_0x165da0,'indicatorLine':_0x2adc54,'legend':_0x1267c7,'lineAndArea':_0x514143,'pareto':_0x1e2ae9,'pie':_0x2e45c9,'radar':_0x32285a,'relation':{..._0x270a4f,'useValueAsSymbolSize':!0x0},'series':{..._0x338c3f,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Qr=_0xa4c4f5[_0x5d48da(0x1fb)])==null?void 0x0:Qr['rightYAxis'])??!0x1}},'style':_0x2d6dc1,'titles':_0x5a35d2,'trendline':_0x59bb04,'waterfall':{..._0x3d8d6d,'useSubtotal':!0x0},'waterfallStyle':_0x5630e0,'wordCloud':_0x5624b3},$r=[_0x1cf6fa['Line'],_0x1cf6fa[_0x5d48da(0x140)],_0x1cf6fa['WordCloud'],_0x1cf6fa[_0x5d48da(0x34d)],_0x1cf6fa['Funnel'],_0x1cf6fa[_0x5d48da(0x28b)],_0x1cf6fa['Sankey'],_0x1cf6fa[_0x5d48da(0x385)],_0x1cf6fa[_0x5d48da(0x3cd)],_0x1cf6fa['Candlestick'],_0x1cf6fa[_0x5d48da(0xb8)],_0x1cf6fa[_0x5d48da(0x28d)],_0x1cf6fa[_0x5d48da(0xf1)],_0x1cf6fa[_0x5d48da(0x186)],_0x1cf6fa[_0x5d48da(0xe5)]];function ei(_0x338386){const _0x45af5c=_0x5d48da;let {config:_0x1e03f4,onChange:_0x2fe0f1,runtime:_0x4ccc22,tableName:_0x3d18f4}=_0x338386,_0xbbbfa6=_0x40463f(qr),_0x53d506=_0x40463f(_0x1ecd96),[_0x416928,_0x550f64]=_0x4ebd7a(_0x389329[_0x45af5c(0xf0)]),_0x59aec9=_0x5c672b(()=>new _0x367b2a(_0x4ccc22['model'],{'commit':_0x2712b6=>{const _0x1eb803=_0x45af5c;var _0x5a73bf;let _0x218c0a=_0x4ccc22[_0x1eb803(0x1ad)],_0x495fbb=_0x5adbe1(_0x2712b6,{'series':(_0x5a73bf=_0x218c0a[_0x1eb803(0xa7)])==null?void 0x0:_0x5a73bf[_0x1eb803(0x32f)],'currentChartType':_0x218c0a[_0x1eb803(0x287)],'currentStyle':_0x218c0a[_0x1eb803(0x36b)],'currentContext':_0x218c0a[_0x1eb803(0x378)],'currentDataAggregation':_0x218c0a[_0x1eb803(0x2fa)]});_0x2fe0f1({'chart':ti(_0x1e03f4[_0x1eb803(0x204)],_0x495fbb)});}}),[_0x1e03f4[_0x45af5c(0x204)],_0x2fe0f1,_0x4ccc22]),_0x4e577d=_0x5c672b(()=>_0x2f5cf3(_0x8d6a08['map'](_0x5019d9=>({..._0x5019d9,'label':_0x53d506['t'](ai(_0x5019d9['labelId']))}))),[_0x53d506]);return _0x5628d9(_0x323b1b,{'chartUIService':_0xbbbfa6,'hostAdapter':_0x59aec9,'children':_0x2fa798(_0x45af5c(0x334),{'className':_0x45af5c(0x1e2),'children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x53d506['t'](_0x45af5c(0x142)),'className':_0x45af5c(0x3c9),'items':[{'label':_0x53d506['t'](_0x45af5c(0x360)),'panelId':_0x45af5c(0x3b1),'value':_0x389329[_0x45af5c(0xf0)]},{'label':_0x53d506['t'](_0x45af5c(0x15b)),'panelId':_0x45af5c(0x271),'value':_0x389329[_0x45af5c(0x2c8)]}],'value':_0x416928,'onChange':_0x550f64}),_0x416928===_0x389329[_0x45af5c(0xf0)]?_0x5628d9(_0x59879a,{'id':_0x45af5c(0x3b1),'label':_0x53d506['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x2fa798(_0x45af5c(0x334),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x5628d9(_0x3352ce,{'options':_0x4e577d}),_0x5628d9(_0x53d74e,{}),_0x5628d9(_0x3aee5e,{}),_0x5628d9(ni,{}),_0x5628d9(_0x1ed3a5,{}),_0x2fa798(_0x45af5c(0x334),{'children':[_0x5628d9(_0x30e809,{'title':_0x53d506['t'](_0x45af5c(0x22f))}),_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':_0x3d18f4})]}),_0x5628d9(_0x70f2bb,{'orientationControl':_0x5628d9(_0x101ca4,{'size':_0x45af5c(0x147),'onClick':()=>_0x2fe0f1({'chart':{..._0x1e03f4[_0x45af5c(0x204)],'orient':_0x1e03f4[_0x45af5c(0x204)][_0x45af5c(0x1e8)]===_0x45af5c(0x1f2)?_0x45af5c(0x33b):_0x45af5c(0x1f2)}}),'children':_0x53d506['t']('bases-dashboard-ui.chart.common.switchRowColumn')})}),_0x5628d9(_0x468257,{}),_0x5628d9(_0x153e3c,{'defaultValues':X['waterfall']}),_0x2fa798(_0x45af5c(0x334),{'children':[_0x5628d9(_0x30e809,{'title':_0x53d506['t'](_0x45af5c(0xb1))}),_0x5628d9(Yr,{'value':_0x1e03f4[_0x45af5c(0x31a)],'options':[{'value':_0x45af5c(0x27c),'label':_0x53d506['t'](_0x45af5c(0x239))},{'value':_0x45af5c(0x204),'label':_0x53d506['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':_0x45af5c(0x2d3),'label':_0x53d506['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x270154=>{const _0x436cde=_0x45af5c;(_0x270154===_0x436cde(0x27c)||_0x270154===_0x436cde(0x204)||_0x270154==='table')&&_0x2fe0f1({'displayMode':_0x270154});}})]})]})}):_0x5628d9(_0x59879a,{'id':_0x45af5c(0x271),'label':_0x53d506['t'](_0x45af5c(0x15b)),'children':_0x5628d9(ri,{})})]})});}function ti(_0x788fa0,_0x3ab5f3){const _0x21b13f=_0x5d48da;return{..._0x788fa0,'type':_0x3ab5f3[_0x21b13f(0x287)]??_0x788fa0['type'],'style':_0x3ab5f3[_0x21b13f(0x36b)]??_0x788fa0['style'],'context':_0x3ab5f3[_0x21b13f(0x378)]??_0x788fa0[_0x21b13f(0x378)],'dataAggregation':_0x3ab5f3[_0x21b13f(0x2fa)]??_0x788fa0[_0x21b13f(0x2fa)]};}function ni(){const _0x151a73=_0x5d48da;let _0x46dd2b=_0x10d8e4();return _0x5628d9(_0x1ca39a,{'visible':$r[_0x151a73(0x35b)](_0x464e5c=>!_0x242779['baseOn'](_0x46dd2b,_0x464e5c))});}function Z(_0x190672){const _0x328109=_0x5d48da;return _0x2fa798(_0x53ec64,{'id':_0x190672['id'],'children':[_0x5628d9(_0x51656d,{'children':_0x190672[_0x328109(0x249)]}),_0x5628d9(_0x37b567,{'children':_0x190672[_0x328109(0x29e)]})]});}function ri(){const _0x5541ae=_0x5d48da;let _0x518a23=_0x40463f(_0x1ecd96),_0x5347ce=_0x10d8e4(),_0x96a956=_0xef83d1(),[_0x506ab1,_0x5c276e]=_0x4ebd7a(null),_0x339d40=_0x242779['baseOn'](_0x5347ce,_0x1cf6fa[_0x5541ae(0x282)]),_0x1135bb=_0x5347ce===_0x1cf6fa['Radar'],_0x3b8ce7=_0x5347ce===_0x1cf6fa[_0x5541ae(0x21a)],_0x31606a=_0x5347ce===_0x1cf6fa[_0x5541ae(0x30a)],_0x212941=_0x242779[_0x5541ae(0x263)](_0x5347ce,_0x1cf6fa[_0x5541ae(0x3d8)]),_0x4113bf=_0x5347ce===_0x1cf6fa[_0x5541ae(0x28b)],_0x4e1512=_0x5347ce===_0x1cf6fa[_0x5541ae(0x33f)],_0x1e1a80=_0x5347ce===_0x1cf6fa[_0x5541ae(0x218)],_0x44df03=_0x5347ce===_0x1cf6fa[_0x5541ae(0x385)],_0x43dae0=_0x2ecac2(_0x5347ce,_0xc8129[_0x5541ae(0x3de)])&&!_0x212941&&!_0x1e1a80,_0x101f68=ii(_0x5347ce,_0x518a23);return _0x2fa798(_0x151ab2,{'value':_0x506ab1,'onChange':_0x5c276e,'children':[_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x119)],'label':_0x518a23['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0x5628d9(_0xc54821,{'defaultValues':X[_0x5541ae(0x36b)]})}),_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x1cd)],'label':_0x518a23['t'](_0x5541ae(0x24d)),'children':_0x5628d9(_0x517322,{'commitMode':_0x5541ae(0x19f),'defaultValues':X[_0x5541ae(0x161)]})}),_0x5628d9(_0x31fb16,{'section':'view'}),_0x43dae0&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x2c3)],'label':_0x518a23['t'](_0x5541ae(0x112)),'children':_0x5628d9(_0x4f3338,{'defaultValues':X['series'],'NumberFormatField':_0x3f2847})}),_0x4e1512&&_0x5628d9(Z,{'id':_0x4baf7f['WaterfallSeries'],'label':_0x518a23['t']('bases-dashboard-ui.chart.section.waterfall'),'children':_0x5628d9(_0x122082,{'defaultValues':X[_0x5541ae(0x12d)],'getDefaultBucketName':({seriesName:_0x41bc71,target:_0x1bd5f5})=>_0x1bd5f5===_0x148de0[_0x5541ae(0x1fa)]?_0x518a23['t'](_0x5541ae(0x1df)):_0x41bc71?_0x41bc71+'-('+_0x518a23['t'](_0x5541ae(0x2b5)+(_0x1bd5f5===_0x148de0['Positive']?'waterfall.positive':_0x5541ae(0x34c)))+')':'','NumberFormatField':_0x3f2847})}),_0x1e1a80&&_0x2fa798(_0x5554ea,{'children':[_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x380)],'label':_0x518a23['t'](_0x5541ae(0xd8)),'children':_0x5628d9(_0x117afe,{'defaultValues':X['pareto'],'NumberFormatField':_0x3f2847,'showDataPointEditor':!0x0,'target':_0x5541ae(0x2fc)})}),_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x21f)],'label':_0x518a23['t'](_0x5541ae(0x2d7)),'children':_0x5628d9(_0x117afe,{'defaultValues':X[_0x5541ae(0x2cc)],'NumberFormatField':_0x3f2847,'showDataPointEditor':!0x1,'target':_0x5541ae(0x246)})})]}),_0x339d40&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x1b8)],'label':_0x518a23['t'](_0x5541ae(0x3ef)),'children':_0x5628d9(_0x32a1e9,{'defaultValues':X[_0x5541ae(0x225)],'NumberFormatField':_0x3f2847})}),_0x3b8ce7&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x21a)],'label':_0x518a23['t'](_0x5541ae(0x25e)),'children':_0x5628d9(_0x51f587,{'defaultValues':X[_0x5541ae(0x286)]})}),_0x1135bb&&_0x5628d9(Z,{'id':_0x4baf7f['Radar'],'label':_0x518a23['t']('bases-dashboard-ui.chart.section.radar'),'children':_0x5628d9(_0x1423a1,{'defaultValues':X[_0x5541ae(0x294)]})}),_0x31606a&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x30a)],'label':_0x518a23['t'](_0x5541ae(0x3bb)),'children':_0x5628d9(_0x5591da,{'defaultValues':X[_0x5541ae(0xfe)],'gapControl':_0x5541ae(0x315)})}),_0x44df03&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x385)],'label':_0x518a23['t']('bases-dashboard-ui.chart.common.heatmap'),'children':_0x5628d9(_0x1aca4d,{'defaultValues':X[_0x5541ae(0x337)]})}),_0x4113bf&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x28b)],'label':_0x518a23['t'](_0x5541ae(0x1c4)),'children':_0x5628d9(_0x4117cf,{'defaultValues':X[_0x5541ae(0x2bb)]})}),_0x1dac15(_0x5347ce)&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0xf3)],'label':_0x518a23['t'](_0x242779['baseOn'](_0x5347ce,_0x1cf6fa[_0x5541ae(0x332)])?_0x5541ae(0x1cf):'bases-dashboard-ui.chart.chartTypes.line'),'children':_0x5628d9(_0x2a4c4d,{'defaultValues':X[_0x5541ae(0x366)],'lineStyleControl':_0x5541ae(0x1d2)})}),_0x2ecac2(_0x5347ce,_0xc8129['Legend'])&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x2a2)],'label':_0x518a23['t'](_0x5541ae(0x183)),'children':_0x5628d9(_0x2205cf,{'defaultValues':X[_0x5541ae(0xdb)]})}),_0x2ecac2(_0x5347ce,_0xc8129[_0x5541ae(0x31e)])&&_0x2fa798(_0x5554ea,{'children':[_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x266)],'label':_0x518a23['t'](_0x5541ae(0x2f1)),'children':_0x5628d9(_0x51c0bf,{'axis':'x','defaultValues':X[_0x5541ae(0x399)],'NumberFormatField':_0x3f2847})}),_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x9e)],'label':_0x518a23['t'](_0x5541ae(0x32b)),'children':_0x5628d9(_0x51c0bf,{'axis':'y','defaultValues':X[_0x5541ae(0x399)],'NumberFormatField':_0x3f2847})}),_0x5628d9(_0x31fb16,{'section':_0x5541ae(0x2c7)}),_0x96a956&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x375)],'label':_0x518a23['t']('bases-dashboard-ui.chart.common.rightVerticalAxis'),'children':_0x5628d9(_0x51c0bf,{'axis':'rightY','defaultValues':X[_0x5541ae(0x399)],'NumberFormatField':_0x3f2847})}),_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x210)],'label':_0x518a23['t'](_0x5541ae(0x2ba)),'children':_0x5628d9(_0x58fc11,{'defaultValues':X[_0x5541ae(0x399)]})})]}),_0x2ecac2(_0x5347ce,_0xc8129[_0x5541ae(0x306)])&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x306)],'label':_0x518a23['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x5628d9(_0x54d111,{'defaultValues':X[_0x5541ae(0x20f)]})}),_0x3f9965(_0x5347ce)&&_0x5628d9(Z,{'id':_0x4baf7f[_0x5541ae(0x36f)],'label':_0x518a23['t']('bases-dashboard-ui.chart.common.trendline'),'children':_0x5628d9(_0x311435,{'defaultValues':X['trendline']})}),_0x101f68&&_0x5628d9(Z,{'id':_0x101f68['id'],'label':_0x101f68[_0x5541ae(0x249)],'children':_0x5628d9(_0x3f116c,{})})]});}function ii(_0x856a82,_0x4f803e){const _0x23e851=_0x5d48da;let _0x5a00cf={[_0x1cf6fa[_0x23e851(0x395)]]:{'id':_0x4baf7f[_0x23e851(0x395)],'localeKey':_0x23e851(0xba)},[_0x1cf6fa['Histogram']]:{'id':_0x4baf7f[_0x23e851(0xb8)],'localeKey':_0x23e851(0x13e)},[_0x1cf6fa[_0x23e851(0x28d)]]:{'id':_0x4baf7f[_0x23e851(0x28d)],'localeKey':'bases-dashboard-ui.chart.section.treemap'},[_0x1cf6fa[_0x23e851(0xf1)]]:{'id':_0x4baf7f[_0x23e851(0xf1)],'localeKey':'bases-dashboard-ui.chart.section.sunburst'},[_0x1cf6fa['Gauge']]:{'id':_0x4baf7f['Gauge'],'localeKey':'bases-dashboard-ui.chart.section.gauge'},[_0x1cf6fa[_0x23e851(0xe5)]]:{'id':_0x4baf7f['Chord'],'localeKey':_0x23e851(0x277)}}[_0x856a82];return _0x5a00cf?{'id':_0x5a00cf['id'],'label':_0x4f803e['t'](_0x5a00cf[_0x23e851(0x1f0)])}:null;}function ai(_0x241979){const _0x546bf6=_0x5d48da;return _0x546bf6(0x36a)+_0x241979;}function oi({onChange:_0x5c2ec8,onEditData:_0x175b09,runtime:_0x4ec0d2,sourceChart:_0x8517da,sourceName:_0x3bbd0c,widget:_0x35a48e}){const _0x34270d=_0x5d48da;let _0x547bcd=_0x40463f(qr),_0x294249=_0x40463f(_0x1ecd96),[_0x47b93d,_0x556225]=_0x4ebd7a(_0x389329[_0x34270d(0xf0)]),_0x442bae=_0x35a48e[_0x34270d(0x204)]??_0x8517da,_0x49e667=_0x5c672b(()=>new _0x367b2a(_0x4ec0d2[_0x34270d(0x1ad)],{'commit':_0x2f103e=>{const _0x148c09=_0x34270d;var _0xc31ecf;let _0x2b0bce=_0x4ec0d2[_0x148c09(0x1ad)],_0x1b09cf=_0x5adbe1(_0x2f103e,{'series':(_0xc31ecf=_0x2b0bce[_0x148c09(0xa7)])==null?void 0x0:_0xc31ecf['series'],'currentChartType':_0x2b0bce['chartType'],'currentStyle':_0x2b0bce[_0x148c09(0x36b)],'currentContext':_0x2b0bce['context'],'currentDataAggregation':_0x2b0bce[_0x148c09(0x2fa)]});_0x5c2ec8({..._0x35a48e,'chart':ti(_0x442bae,_0x1b09cf)})[_0x148c09(0x26d)](()=>void 0x0);}}),[_0x442bae,_0x5c2ec8,_0x4ec0d2,_0x35a48e]),_0x511c7b=_0x5c672b(()=>_0x2f5cf3(_0x8d6a08[_0x34270d(0x2ea)](_0x32bbaf=>({..._0x32bbaf,'label':_0x294249['t'](si(_0x32bbaf[_0x34270d(0x2fb)]))}))),[_0x294249]);return _0x5628d9(_0x4f5736,{'chartUIService':_0x547bcd,'hostAdapter':_0x49e667,'children':_0x2fa798(_0x34270d(0x334),{'data-dashboard-chart-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x294249['t'](_0x34270d(0x142)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x294249['t'](_0x34270d(0x360)),'panelId':_0x34270d(0x22c),'value':_0x389329[_0x34270d(0xf0)]},{'label':_0x294249['t'](_0x34270d(0x15b)),'panelId':_0x34270d(0x358),'value':_0x389329['Style']}],'value':_0x47b93d,'onChange':_0x556225}),_0x47b93d===_0x389329['Data']?_0x5628d9(_0x59879a,{'id':_0x34270d(0x22c),'label':_0x294249['t'](_0x34270d(0x360)),'children':_0x2fa798('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x5628d9(_0x3352ce,{'options':_0x511c7b}),_0x5628d9(_0x53d74e,{}),_0x5628d9(_0x3aee5e,{}),_0x5628d9(ni,{}),_0x5628d9(_0x1ed3a5,{}),_0x2fa798(_0x34270d(0x334),{'children':[_0x5628d9(_0x30e809,{'title':_0x294249['t'](_0x34270d(0xab))}),_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':_0x3bbd0c}),_0x5628d9(_0x101ca4,{'className':_0x34270d(0xd1),'onClick':_0x175b09,'children':_0x294249['t']('bases-dashboard-ui.dashboardInspector.editData')})]})]})}):_0x5628d9(_0x59879a,{'id':_0x34270d(0x358),'label':_0x294249['t'](_0x34270d(0x15b)),'children':_0x5628d9(ri,{})})]})});}function si(_0x18d757){return'bases-dashboard-ui.chart.chartTypes.'+_0x18d757;}const ci=[_0x5d48da(0x308),_0x5d48da(0x31b),_0x5d48da(0x228),_0x5d48da(0x1b3),_0x5d48da(0xa5),_0x5d48da(0xbd)];function li({base:_0x28774c,onChange:_0x46fa4e,onSelectBackgroundImage:_0x274f5a,widget:_0x444a44}){const _0x46b1f2=_0x5d48da;var _0x4ff028;let _0x18e59c=_0x40463f(_0x1ecd96),_0x13613a=_0x40463f(_0x56b689),_0x505650=_0x5056f6(()=>_0x13613a[_0x46b1f2(0x137)],_0x13613a[_0x46b1f2(0x3cf)](),!0x1,[_0x13613a]),_0x3c08e8=_0x5056f6(()=>_0x13613a[_0x46b1f2(0x227)],_0x13613a['darkMode'],!0x1,[_0x13613a]),[_0x15674a,_0xe3f0b1]=_0x4ebd7a(_0x46b1f2(0x373)),[_0x46d349,_0x4b56d0]=_0x4ebd7a(!0x1),_0x37dfe=Cr(_0x444a44),_0x75b2db=_0x28774c['getSnapshot']()['tables'][_0x444a44[_0x46b1f2(0x9d)]],_0x559c89=_0x75b2db==null?void 0x0:_0x75b2db[_0x46b1f2(0x389)][_0x46b1f2(0x153)](_0xb5404=>_0x75b2db[_0x46b1f2(0x2eb)][_0xb5404]),_0x5d302a=_0x559c89?_0x75b2db==null?void 0x0:_0x75b2db[_0x46b1f2(0x2eb)][_0x559c89]:void 0x0,_0x2dbb60=_0x75b2db&&_0x5d302a?_0x372e38(_0x28774c['getSnapshot'](),_0x75b2db,_0x5d302a)[_0x46b1f2(0x2ea)](_0x5b6ee7=>({..._0x5b6ee7,'current':!0x1})):[],_0x301f90=((_0x4ff028=_0x444a44[_0x46b1f2(0x27e)][_0x46b1f2(0x3cb)])==null?void 0x0:_0x4ff028[_0x46b1f2(0x2ad)])??'',_0x273f38=_0x2597f5=>_0x46fa4e(wr(_0x444a44,_0x2597f5))[_0x46b1f2(0x26d)](()=>void 0x0),_0x2fa296=_0x5703b7=>_0x46fa4e({..._0x444a44,'description':_0x5703b7})['catch'](()=>void 0x0);return _0x2fa798(_0x46b1f2(0x334),{'data-dashboard-formula-inspector':!0x0,'className':_0x46b1f2(0x34b),'children':[_0x5628d9(_0x18f25a,{'className':_0x46b1f2(0x313),'items':[{'value':'data','label':_0x18e59c['t']('bases-dashboard-ui.dashboardInspector.data')},{'value':_0x46b1f2(0x36b),'label':_0x18e59c['t'](_0x46b1f2(0x369))}],'value':_0x15674a,'onChange':_0xe3f0b1}),_0x5628d9(_0x46b1f2(0x334),{'className':_0x46b1f2(0xf4),'children':_0x15674a===_0x46b1f2(0x373)?_0x2fa798(_0x46b1f2(0x334),{'className':_0x46b1f2(0x3b7),'children':[_0x5628d9(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x295)),'children':_0x5628d9(_0x5d579d,{'value':_0x444a44[_0x46b1f2(0x16e)]??_0x444a44[_0x46b1f2(0xbc)]??'','onChange':_0x2fa296,'onBlur':_0x19ab35=>_0x2fa296(_0x19ab35[_0x46b1f2(0x320)][_0x46b1f2(0x32d)])})}),_0x5628d9(ui,{'label':_0x18e59c['t'](_0x46b1f2(0xab)),'children':_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':(_0x75b2db==null?void 0x0:_0x75b2db[_0x46b1f2(0x3d7)])??_0x18e59c['t'](_0x46b1f2(0x1bb))})}),_0x2fa798(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x2fd)),'children':[_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':_0x196177(_0x301f90,_0x2dbb60)}),_0x5628d9(_0x101ca4,{'className':'univer-mt-2\x20univer-w-full','onClick':()=>_0x4b56d0(!0x0),'children':_0x18e59c['t'](_0x46b1f2(0x333))})]})]}):_0x2fa798(_0x46b1f2(0x334),{'className':_0x46b1f2(0x3b7),'children':[_0x5628d9(_0x209a9d,{'emptyLabel':_0x18e59c['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x18e59c['t'](_0x46b1f2(0x3b9)),'pickerFallbackValue':_0x3c08e8?_0x505650['gray'][0x384]:_0x505650['gray'][0x0],'resetLabel':_0x18e59c['t'](_0x46b1f2(0x23f)),'value':_0x37dfe[_0x46b1f2(0x2e5)]??null,'onChange':_0x39ebdb=>_0x273f38({'backgroundColor':_0x39ebdb??void 0x0})}),_0x2fa798(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x38d)),'children':[_0x2fa798(_0x46b1f2(0x334),{'className':_0x46b1f2(0x316),'children':[_0x2fa798(_0x101ca4,{'className':'univer-flex-1','onClick':()=>{const _0x4ae866=_0x46b1f2;_0x274f5a()[_0x4ae866(0xa4)](_0x2d6eca=>{const _0x28d6ed=_0x4ae866;if(_0x2d6eca){var _0x53f040;return _0x273f38({'backgroundImage':{..._0x2d6eca,'fit':((_0x53f040=_0x37dfe['backgroundImage'])==null?void 0x0:_0x53f040['fit'])??_0x28d6ed(0x15c)}});}})['catch'](()=>void 0x0);},'children':[_0x5628d9(_0x4f1759,{}),_0x37dfe['backgroundImage']?_0x18e59c['t']('bases-dashboard-ui.dashboardInspector.replaceImage'):_0x18e59c['t'](_0x46b1f2(0x158))]}),_0x37dfe[_0x46b1f2(0x33c)]&&_0x5628d9(_0x101ca4,{'aria-label':_0x18e59c['t'](_0x46b1f2(0xe4)),'title':_0x18e59c['t'](_0x46b1f2(0xe4)),'onClick':()=>_0x273f38({'backgroundImage':void 0x0}),'children':_0x5628d9(_0x275aa7,{})})]}),_0x37dfe[_0x46b1f2(0x33c)]&&_0x5628d9(_0x18f25a,{'className':_0x46b1f2(0xd9),'items':[{'value':'cover','label':_0x18e59c['t'](_0x46b1f2(0x214))},{'value':'contain','label':_0x18e59c['t'](_0x46b1f2(0x1cc))}],'value':_0x37dfe[_0x46b1f2(0x33c)][_0x46b1f2(0x1f3)],'onChange':_0x2c6d64=>_0x273f38({'backgroundImage':_0x37dfe[_0x46b1f2(0x33c)]?{..._0x37dfe[_0x46b1f2(0x33c)],'fit':_0x2c6d64}:void 0x0})})]}),_0x5628d9(_0x209a9d,{'emptyLabel':_0x18e59c['t'](_0x46b1f2(0x37a)),'label':_0x18e59c['t'](_0x46b1f2(0x37a)),'pickerFallbackValue':_0x3c08e8?_0x505650['gray'][0x32]:_0x505650[_0x46b1f2(0x14a)][0x3e8],'resetLabel':_0x18e59c['t'](_0x46b1f2(0x23f)),'value':_0x37dfe[_0x46b1f2(0x13d)]??null,'onChange':_0x291007=>_0x273f38({'textColor':_0x291007??void 0x0})}),_0x5628d9(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x281)),'children':_0x5628d9(_0x18f25a,{'items':[{'value':_0x46b1f2(0x269),'label':_0x18e59c['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':'center','label':_0x18e59c['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0x46b1f2(0x39f),'label':_0x18e59c['t'](_0x46b1f2(0x363))}],'value':_0x37dfe['alignment'],'onChange':_0x2c6a1a=>_0x273f38({'alignment':_0x2c6a1a})})}),_0x2fa798(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x102)),'children':[_0x5628d9(_0x18f25a,{'items':[{'value':'auto','label':_0x18e59c['t'](_0x46b1f2(0xcc))},{'value':_0x46b1f2(0x2ec),'label':_0x18e59c['t'](_0x46b1f2(0x133))}],'value':_0x37dfe[_0x46b1f2(0x27d)],'onChange':_0x191afd=>_0x273f38({'fontSizeMode':_0x191afd})}),_0x37dfe[_0x46b1f2(0x27d)]==='custom'&&_0x5628d9(_0x57c888,{'className':_0x46b1f2(0xd9),'min':0xc,'max':0x78,'value':_0x37dfe[_0x46b1f2(0x268)],'onChange':_0x45da96=>_0x273f38({'fontSize':_0x45da96??0x28,'fontSizeMode':_0x46b1f2(0x2ec)})})]}),_0x5628d9(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x3c3)),'children':_0x5628d9(Yr,{'value':_0x37dfe[_0x46b1f2(0x371)],'options':[{'value':_0x46b1f2(0x308),'label':_0x18e59c['t'](_0x46b1f2(0x1be))},{'value':'number','label':_0x18e59c['t']('bases-dashboard-ui.dashboardInspector.number')},{'value':'percent','label':_0x18e59c['t'](_0x46b1f2(0x3b8))},{'value':_0x46b1f2(0x1b3),'label':_0x18e59c['t'](_0x46b1f2(0x325))},{'value':_0x46b1f2(0xa5),'label':_0x18e59c['t'](_0x46b1f2(0x175))},{'value':'compact','label':_0x18e59c['t'](_0x46b1f2(0x10e))}],'onChange':_0x75c96f=>{const _0x5ee7e3=_0x46b1f2;let _0x5170bd=ci[_0x5ee7e3(0x153)](_0x5c9f81=>_0x5c9f81===_0x75c96f);_0x5170bd&&_0x273f38({'numberFormat':_0x5170bd});}})}),_0x37dfe['numberFormat']===_0x46b1f2(0x1b3)&&_0x5628d9(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x130)),'children':_0x5628d9(_0x5d579d,{'value':_0x37dfe[_0x46b1f2(0x1b3)],'onChange':_0xcadffc=>_0x273f38({'currency':_0xcadffc[_0x46b1f2(0x165)](0x0,0x3)[_0x46b1f2(0x26a)]()})})}),_0x37dfe[_0x46b1f2(0x371)]!==_0x46b1f2(0x308)&&_0x5628d9(ui,{'label':_0x18e59c['t'](_0x46b1f2(0x384)),'children':_0x5628d9(_0x57c888,{'min':0x0,'max':0x8,'value':_0x37dfe[_0x46b1f2(0xc9)],'onChange':_0x3f8f32=>_0x273f38({'decimalPlaces':_0x3f8f32??0x0})})})]})}),_0x46d349&&_0x5628d9(Zr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x5628d9(_0x4524e4,{'tables':_0x2dbb60,'formula':_0x196177(_0x301f90,_0x2dbb60),'onCancel':()=>_0x4b56d0(!0x1),'onSave':_0x2d56f8=>{const _0x16b9e5=_0x46b1f2;let _0x2d3aa5=_0x444a44[_0x16b9e5(0x27e)][_0x16b9e5(0x3cb)]??{'formula':''};return _0x46fa4e({..._0x444a44,'shapeData':{..._0x444a44[_0x16b9e5(0x27e)],'formulaBinding':{..._0x2d3aa5,'formula':_0x43ca80(_0x2d56f8,_0x2dbb60)}}})[_0x16b9e5(0xa4)](()=>_0x4b56d0(!0x1))[_0x16b9e5(0x26d)](()=>void 0x0);}})})]});}function ui({children:_0x588a2c,label:_0x27d752}){const _0x315641=_0x5d48da;return _0x2fa798('div',{'role':'group','aria-label':_0x27d752,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x5628d9(_0x315641(0x339),{'children':_0x27d752}),_0x588a2c]});}function di({disabled:_0x72d03d,fields:_0x1f05d4,filter:_0x36b470,onChange:_0x235711}){const _0x28d18a=_0x5d48da;let _0x2e8118=_0x40463f(_0x23d8e9)[_0x28d18a(0xaa)]??null,[_0x4ed653,_0x46962d]=_0x4ebd7a(null),_0x183d2a=_0x40463f(_0x1ecd96),_0x140238=(_0x36b470==null?void 0x0:_0x36b470[_0x28d18a(0x32c)])??[];if(!_0x140238['length'])return _0x2fa798(_0x28d18a(0x334),{'className':_0x28d18a(0x2b4),'children':[_0x5628d9(_0x266672,{'className':'univer-mx-auto\x20univer-size-6'}),_0x5628d9(_0x28d18a(0x339),{'className':_0x28d18a(0x3ab),'children':_0x183d2a['t'](_0x28d18a(0x108))})]});let _0xfb43fd=_0x4ed653==null?void 0x0:_0x140238[_0x4ed653],_0x54be79=_0x1f05d4[_0x28d18a(0x153)](_0x32fcd5=>_0x32fcd5['id']===(_0xfb43fd==null?void 0x0:_0xfb43fd[_0x28d18a(0x221)]));return _0x2fa798(_0x28d18a(0x334),{'className':_0x28d18a(0x1af),'children':[_0x140238[_0x28d18a(0x2ea)]((_0x15799f,_0xdb41f9)=>{const _0x319a2b=_0x28d18a;var _0x33b1a7;return _0x2fa798(_0x101ca4,{'disabled':_0x72d03d,'onClick':()=>_0x46962d(_0xdb41f9),'children':[_0x5628d9(_0x319a2b(0x339),{'children':((_0x33b1a7=_0x1f05d4[_0x319a2b(0x153)](_0x576ab7=>_0x576ab7['id']===_0x15799f[_0x319a2b(0x221)]))==null?void 0x0:_0x33b1a7['name'])??_0x15799f[_0x319a2b(0x221)]}),_0x5628d9(_0x319a2b(0x339),{'className':_0x319a2b(0xae),'children':String(_0x15799f[_0x319a2b(0x2d6)]??'')})]},_0x15799f['fieldId']+'-'+_0xdb41f9);}),_0x54be79&&_0xfb43fd&&_0x4ed653!=null&&_0x2e8118&&_0x1c0161(_0x5628d9(_0x2e05d2,{'field':_0x54be79,'value':_0xfb43fd[_0x28d18a(0x2d6)],'onClose':()=>_0x46962d(null),'onSave':_0x58328c=>{const _0x2c784a=_0x28d18a;_0x235711({'conjunction':(_0x36b470==null?void 0x0:_0x36b470[_0x2c784a(0xc3)])??_0x26ccb5[_0x2c784a(0x2f5)],'conditions':_0x140238['map']((_0x5e93bc,_0x31971b)=>_0x31971b===_0x4ed653?{..._0x5e93bc,'operand':_0x58328c}:_0x5e93bc)}),_0x46962d(null);}}),_0x2e8118)]});}function fi({fields:_0x3d6429,filter:_0x2db991,onChange:_0x3a7c2c,onClear:_0x56efc3}){const _0x26e14b=_0x5d48da;let _0x118316=_0x40463f(_0x1ecd96);return _0x2fa798(_0x26e14b(0x334),{'children':[_0x5628d9(_0x52caf8,{'fields':_0x3d6429,'value':_0x2db991??{'conjunction':_0x26ccb5[_0x26e14b(0x2f5)],'conditions':[]},'onChange':_0x3a7c2c}),_0x5628d9(_0x101ca4,{'onClick':_0x56efc3,'children':_0x118316['t']('bases-dashboard-ui.dashboardInspector.reset')})]});}function pi({base:_0x3a7c8f,chartRuntime:_0x14bca1,onChange:_0x5ed203,onClose:_0x5beda3,onSelectBackgroundImage:_0x38878c,onSelectImage:_0x1af6bb,unitId:_0x4d7b67,widget:_0x28438b}){const _0x5893d4=_0x5d48da;let _0x389d8f=_0x40463f(_0x1e6f93),_0x457443=_0x40463f(_0x1ecd96),_0x2593c6=_0x3a7c8f[_0x5893d4(0x3e8)](),_0x273cc7=_0x5893d4(0x9d)in _0x28438b?_0x2593c6[_0x5893d4(0x3b5)][_0x28438b[_0x5893d4(0x9d)]]:void 0x0,_0x44795f=_0x28438b[_0x5893d4(0x278)]===_0x4dd1ab[_0x5893d4(0x173)]?_0x273cc7==null?void 0x0:_0x273cc7[_0x5893d4(0x2eb)][_0x28438b['pivotViewId']]:void 0x0,_0x32f685=_0x457443['t'](bi(_0x28438b)),_0xa6fe25=_0x2fa798(_0x5893d4(0x3da),{'data-dashboard-inspector':!0x0,'className':_0x5893d4(0x2fe),'children':[_0x28438b[_0x5893d4(0x278)]===_0x4dd1ab[_0x5893d4(0x173)]&&(yi(_0x44795f)&&_0x14bca1?_0x5628d9(oi,{'runtime':_0x14bca1,'sourceChart':_0x44795f[_0x5893d4(0xa7)][_0x5893d4(0x204)],'sourceName':((_0x273cc7==null?void 0x0:_0x273cc7[_0x5893d4(0x3d7)])??'')+'\x20/\x20'+_0x44795f['name'],'widget':_0x28438b,'onChange':_0x5ed203,'onEditData':()=>{const _0x24cc67=_0x5893d4;_0x389d8f[_0x24cc67(0x3e3)](_0x166344['id'],{'unitId':_0x4d7b67,'tableId':_0x28438b['tableId'],'viewId':_0x28438b[_0x24cc67(0x260)]})[_0x24cc67(0x26d)](()=>void 0x0);}}):_0x5628d9(_i,{'message':yi(_0x44795f)?_0x457443['t'](_0x5893d4(0x349)):_0x457443['t'](_0x5893d4(0x1bb))})),_0x28438b['type']===_0x4dd1ab[_0x5893d4(0x2c2)]&&_0x5628d9(li,{'base':_0x3a7c8f,'widget':_0x28438b,'onChange':_0x5ed203,'onSelectBackgroundImage':_0x38878c}),_0x28438b[_0x5893d4(0x278)]===_0x4dd1ab[_0x5893d4(0x296)]&&_0x5628d9(hi,{'base':_0x3a7c8f,'onChange':_0x5ed203,'widget':_0x28438b}),_0x28438b[_0x5893d4(0x278)]===_0x4dd1ab[_0x5893d4(0x1c9)]&&_0x5628d9(gi,{'onChange':_0x5ed203,'widget':_0x28438b}),_0x28438b[_0x5893d4(0x278)]===_0x4dd1ab[_0x5893d4(0x3c0)]&&_0x5628d9(mi,{'onChange':_0x5ed203,'onSelectImage':_0x1af6bb,'widget':_0x28438b})]});return _0x5628d9(_0x19aa31,{'title':_0x32f685,'onClose':_0x5beda3,'children':_0xa6fe25});}function mi({onChange:_0x483eb7,onSelectImage:_0x1936a2,widget:_0x5330d6}){const _0x43c96c=_0x5d48da;let _0x5f1543=_0x40463f(_0x1ecd96);return _0x2fa798('div',{'className':_0x43c96c(0x195),'children':[_0x2fa798(_0x101ca4,{'className':_0x43c96c(0x23b),'onClick':()=>_0x1936a2()[_0x43c96c(0xa4)](_0x152105=>_0x152105&&_0x483eb7({..._0x5330d6,'source':_0x152105[_0x43c96c(0x136)],'sourceType':_0x152105[_0x43c96c(0xa8)],'alt':_0x152105[_0x43c96c(0x3d7)]}))[_0x43c96c(0x26d)](()=>void 0x0),'children':[_0x5628d9(_0x4f1759,{}),_0x5f1543['t'](_0x43c96c(0x16d))]}),_0x2fa798('label',{'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x5628d9(_0x43c96c(0x339),{'children':_0x5f1543['t'](_0x43c96c(0x38d))}),_0x5628d9(_0x18f25a,{'items':[{'value':_0x43c96c(0x15c),'label':_0x5f1543['t'](_0x43c96c(0x214))},{'value':_0x43c96c(0x2a3),'label':_0x5f1543['t'](_0x43c96c(0x10c))},{'value':'original','label':_0x5f1543['t'](_0x43c96c(0xc2))}],'value':_0x5330d6['displayMode']??_0x43c96c(0x15c),'onChange':_0x31ee28=>_0x483eb7({..._0x5330d6,'displayMode':_0x31ee28})[_0x43c96c(0x26d)](()=>void 0x0)})]})]});}function hi({base:_0x19db93,onChange:_0x2ebcbf,widget:_0x2eae23}){const _0x381fb5=_0x5d48da;let _0x4c9996=_0x19db93[_0x381fb5(0x3e8)]()[_0x381fb5(0x3b5)][_0x2eae23[_0x381fb5(0x9d)]],_0x3f3d99=_0x4c9996==null?void 0x0:_0x4c9996[_0x381fb5(0x389)][_0x381fb5(0x153)](_0x513c62=>_0x4c9996['views'][_0x513c62]),_0x124361=_0x3f3d99?_0x4c9996==null?void 0x0:_0x4c9996[_0x381fb5(0x2eb)][_0x3f3d99]:void 0x0,_0x58f610=_0x4c9996&&_0x124361?_0x28d476(_0x4c9996,_0x124361):[];return _0x5628d9(fi,{'fields':_0x58f610,'filter':_0x2eae23[_0x381fb5(0x122)],'onChange':_0x6bb692=>_0x2ebcbf({..._0x2eae23,'filter':_0x6bb692})['catch'](()=>void 0x0),'onClear':()=>_0x2ebcbf({..._0x2eae23,'filter':null})[_0x381fb5(0x26d)](()=>void 0x0)});}function gi({onChange:_0x19d381,widget:_0x1554b9}){const _0x3c7ca8=_0x5d48da;let _0x328578=_0x40463f(_0x1ecd96),_0x2e3c25=_0x40463f(_0x56b689),_0x43fea7=_0x5056f6(()=>_0x2e3c25[_0x3c7ca8(0x137)],_0x2e3c25[_0x3c7ca8(0x3cf)](),!0x1,[_0x2e3c25]),_0x5e6bec=Hr(_0x1554b9),_0x5a82e8=_0x1c0573=>_0x19d381({..._0x1554b9,'appearance':{..._0x5e6bec,..._0x1c0573}})[_0x3c7ca8(0x26d)](()=>void 0x0);return _0x2fa798(_0x3c7ca8(0x334),{'className':_0x3c7ca8(0x285),'children':[_0x5628d9(_0x80dadb,{'className':'univer-max-h-40\x20univer-text-base','defaultValue':Ur(_0x1554b9[_0x3c7ca8(0x348)]),'rows':0x8,'onBlur':_0x5a4a22=>_0x19d381({..._0x1554b9,'document':Wr(_0x1554b9['document'],_0x5a4a22[_0x3c7ca8(0x320)][_0x3c7ca8(0x32d)])})['catch'](()=>void 0x0)}),_0x5628d9(_0x209a9d,{'emptyLabel':_0x328578['t'](_0x3c7ca8(0x3b9)),'label':_0x328578['t'](_0x3c7ca8(0x3b9)),'pickerFallbackValue':_0x43fea7[_0x3c7ca8(0x14a)][0x0],'resetLabel':_0x328578['t'](_0x3c7ca8(0x23f)),'value':_0x5e6bec[_0x3c7ca8(0x2e5)]??null,'onChange':_0x1807b4=>_0x5a82e8({'backgroundColor':_0x1807b4??void 0x0})}),_0x5628d9(_0x209a9d,{'emptyLabel':_0x328578['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x328578['t'](_0x3c7ca8(0x37a)),'pickerFallbackValue':_0x43fea7[_0x3c7ca8(0x14a)][0x3e8],'resetLabel':_0x328578['t'](_0x3c7ca8(0x23f)),'value':_0x5e6bec['textColor']??null,'onChange':_0x9a05b7=>_0x5a82e8({'textColor':_0x9a05b7??void 0x0})}),_0x5628d9(vi,{'label':_0x328578['t'](_0x3c7ca8(0x281)),'children':_0x5628d9(_0x18f25a,{'items':[{'value':_0x3c7ca8(0x269),'label':_0x328578['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':_0x3c7ca8(0x38c),'label':_0x328578['t'](_0x3c7ca8(0x11c))},{'value':_0x3c7ca8(0x39f),'label':_0x328578['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x5e6bec['alignment'],'onChange':_0x1c5afd=>_0x5a82e8({'alignment':_0x1c5afd})})}),_0x2fa798(vi,{'label':_0x328578['t'](_0x3c7ca8(0x102)),'children':[_0x5628d9(_0x18f25a,{'items':[{'value':_0x3c7ca8(0x1eb),'label':_0x328578['t'](_0x3c7ca8(0xcc))},{'value':_0x3c7ca8(0x2ec),'label':_0x328578['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x5e6bec[_0x3c7ca8(0x27d)],'onChange':_0x20863b=>_0x5a82e8({'fontSizeMode':_0x20863b})}),_0x5e6bec[_0x3c7ca8(0x27d)]===_0x3c7ca8(0x2ec)&&_0x5628d9(_0x57c888,{'className':_0x3c7ca8(0xd9),'min':0xa,'max':0x78,'value':_0x5e6bec[_0x3c7ca8(0x268)],'onChange':_0x5d0074=>_0x5a82e8({'fontSize':_0x5d0074??0x12,'fontSizeMode':'custom'})})]})]});}function _i({message:_0x2d560e}){const _0x17b836=_0x5d48da;return _0x5628d9('div',{'className':_0x17b836(0x16f),'children':_0x2d560e});}function vi({children:_0x377de0,label:_0x38d74a}){const _0x3736d3=_0x5d48da;return _0x2fa798('div',{'role':_0x3736d3(0x350),'aria-':!0x0,'className':_0x3736d3(0x127),'children':[_0x5628d9(_0x3736d3(0x339),{'children':_0x38d74a}),_0x377de0]});}function yi(_0xa05e1d){const _0x335662=_0x5d48da;return(_0xa05e1d==null?void 0x0:_0xa05e1d['type'])===_0xc74f11[_0x335662(0xe1)]&&typeof _0xa05e1d[_0x335662(0xa7)]=='object'&&_0xa05e1d['config']!==null&&_0x335662(0x106)in _0xa05e1d[_0x335662(0xa7)]&&'chart'in _0xa05e1d[_0x335662(0xa7)];}function _0x1f68(){const _0x41dfb7=['dataFieldId','refreshChartRuntime','bases-dashboard-ui.chart.section.chord','type','isSubtotal','permissionPointUpdate$','rgb','chart-and-table','fontSizeMode','shapeData','kind','univer-w-24','bases-dashboard-ui.dashboardInspector.alignment','Pie','univer-flex\x20univer-h-auto\x20univer-min-h-12\x20univer-shrink-0\x20univer-flex-wrap\x20univer-items-center\x20univer-gap-1\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.addToColumn','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','wordCloud','chartType','clientX','rowView','scrollTop','Relation','bases-dashboard-ui.pivot.ascending','Treemap','bases-dashboard-ui.operators.before','bases-dashboard-ui.pivot.filterField','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','includes','onDragStart','radar','bases-dashboard-ui.dashboardInspector.description','TableFilter','bases-dashboard-ui.dashboard.deleteWidget','Person','pluginName','IS_NOT','getDirection','view','bases-dashboard-ui.dashboardInspector.dragWidget','children','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','getValueIndex','options','Legend','repeat','bases-dashboard-ui.dashboard.image','\x20/\x20','None','redos','bases-dashboard-ui.pivot.descending','bases-dashboard-ui.pivot.calculating','initial','boxSizing','average','formula','univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','bases-dashboard-ui.mobile.moveDown','bases-dashboard-ui.pivot.max','updateValuePosition','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','bases-dashboard-ui.chart.','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','bases-dashboard-ui.chart.common.switchRowColumn','defaultValue','univer-h-full\x20univer-w-full\x20univer-bg-transparent','bases-dashboard-ui.chart.section.gridlinesAndTicks','relation','univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','getAttachmentUrl','bases-dashboard-ui.operators.lessThanOrEqual','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','radius','list','FormulaShape','Series','grandTotal','valueFields','bases-dashboard-ui.pivot.countNumbers','depthAxis','Style','rows','link','onDragOver','pareto','repeatColLabels','getId','min','key','univer-text-sm\x20univer-font-medium','univer-bg-gray-0\x20dark:!univer-bg-gray-900','table','LESS_THAN','Currency','operand','bases-dashboard-ui.chart.section.paretoLine','bases-dashboard-ui.pivot.defaultName','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','onCancel','univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-flex-col\x20univer-justify-center\x20univer-overflow-hidden\x20univer-bg-gray-0\x20univer-p-4\x20univer-text-gray-1000\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-50','Checkbox','round','defineProperty','replace','border','text','documentElement','bases-dashboard-ui.pivot.layout','backgroundColor','bases-dashboard-ui.pivot.cancel','bases-dashboard-ui.pivot.fieldSettings','univer-size-5\x20univer-rotate-90','lastCol','map','views','custom','base-pivot-chart-configuration','ensureMount','showColSubtotal','countNums','bases-dashboard-ui.chart.common.horizontalAxis','onMoveUp','showRowSubtotal','contain','AND','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.pivot.layoutOutline','saveImage','snapshot','dataAggregation','labelId','barStyle','bases-dashboard-ui.dashboardInspector.formula','univer-flex\x20univer-h-full\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','index','prefix','decorate','CreatedAt','bases-dashboard-ui.dashboard.section','univer-flex\x20univer-h-full\x20univer-w-[380px]\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','documentStyle','IndicatorLine','UpdatedAt','general','valueIndex','Funnel','hidden','26225750TxXOXa','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.pivot.variance','matchMedia','univer-min-h-11\x20univer-px-3\x20univer-text-base','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','overflow','univer-m-3','rowSpan','select','univer-flex\x20univer-gap-2','transparent','rowSubtotalPosition','getBoundingClientRect','displayMode','number','#,##0','bases-dashboard-ui.pivot.fields','Axes','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','target','item','pageView','bases-dashboard-ui.mobile.moveUp','UNIVER_BASE','bases-dashboard-ui.dashboardInspector.currency','alignment','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','bases-dashboard-ui.pivot.rowSubtotalPosition','SingleSelect','bases-dashboard-ui.pivot.dropFieldsHere','bases-dashboard-ui.chart.common.verticalAxis','conditions','value','bases-dashboard-ui.pivot.stdDevPopulation','series','pageRows','bases-dashboard-ui.pivot.pageWrap','Area','bases-dashboard-ui.dashboardInspector.editFormula','div','article','subscribe','heatmap','presentationChanged$','span','renderTransition','column','backgroundImage','bases-dashboard-ui.pivot.valuePosition','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','Waterfall','setConfig','keydown','univer-flex\x20univer-flex-col','register','1.4.0','stroke','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','measure','document','bases-dashboard-ui.dashboardInspector.loading','clientHeight','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','waterfall.negative','Scatter','univer-mx-auto\x20univer-size-6','indexOf','group','AFTER','LESS_THAN_OR_EQUAL','some','bases-dashboard-ui.chart.common.chartStyle','darkMode','univer-bg-transparent\x20dark:!univer-bg-transparent','bases-dashboard-ui.dashboard.rename','dashboard-chart-style','tableFieldId','bases-dashboard-ui.chart.section.radar','every','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','subtotal','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','bases-dashboard-ui.chart.common.setup','bases-dashboard-ui.chart.section.treemap','mode','bases-dashboard-ui.dashboardInspector.right','bases-dashboard-ui.dashboard.configure','createElement','lineAndArea','paragraphs','univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','bases-dashboard-ui.dashboardInspector.style','bases-dashboard-ui.chart.chartTypes.','style','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','createChartInstance','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','Trendline','values','numberFormat','bases-dashboard-ui.pivot.calculationFailed','data','appearance','RightVerticalAxis','bases-dashboard-ui.operators.greaterThan','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','context','shapeId','bases-dashboard-ui.dashboardInspector.textColor','BaseDashboard','bases-dashboard-ui.pivot.showColumnSubtotal','packageName','product','onDragEnd','ParetoBarSeries','sum','bases-dashboard-ui.mobile.permissions','push','bases-dashboard-ui.dashboardInspector.decimalPlaces','Heatmap','observe','onSettings','bases-dashboard-ui.chart.common.trendline','viewOrder','Progress','bases-dashboard-ui.dashboard.formulaShape','center','bases-dashboard-ui.dashboardInspector.backgroundImage','Base\x20dashboard\x20chart\x20','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','dashboard-text-','rowType','getFieldPositionInfoById','Rating','preventDefault','Candlestick','no-repeat','onMove','colView','axis','entries','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','file','RecordId','filterFields','right','widgetOrder','onStarting','univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.acrossThenDown','univer-size-6\x20!univer-border\x20!univer-border-solid\x20!univer-border-gray-200\x20!univer-bg-gray-0\x20univer-p-0\x20!univer-shadow-none\x20hover:!univer-bg-gray-100\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900\x20dark:hover:!univer-bg-gray-800','bases-dashboard-ui.pivot.count','@univerjs-pro/bases-dashboard-ui','[data-dashboard-widget]','startX','GREATER_THAN_OR_EQUAL','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','univer-text-sm','bases-dashboard-ui.pivot.summarizeBy','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','pageWrap','bases-dashboard-ui.pivot.showColumnGrandTotal','parentElement','base-pivot-chart-setup','Dom','pointerup','system','tables','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','univer-grid\x20univer-gap-4','bases-dashboard-ui.dashboardInspector.percent','bases-dashboard-ui.dashboardInspector.backgroundColor','Date','bases-dashboard-ui.chart.section.funnel','size','displayName','bases-dashboard-ui.dashboardInspector.enterValue','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','Image','stringify','bases-dashboard-ui.pivot.removeField','bases-dashboard-ui.dashboardInspector.numberFormat','click','bases-dashboard-ui.dashboardInspector.number','currentTarget','univer-flex-1','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','univer-shrink-0\x20univer-px-3','valuePosition','formulaBinding','bases-dashboard-ui.operators.isEmpty','Boxplot','forEach','getCurrentTheme','4WdqiGC','univer-text-gray-400','_createContext','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','waterfall','name','Bubble','thead','aside','univer-size-4','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','BEFORE','GeneralSeries','removeEventListener','releaseChartRuntime','layout','dataSource','executeCommand','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','dashboards','bases-dashboard-ui.operators.contains','resizeDirection','getSnapshot','bases-dashboard-ui.pivot.grandTotal','renderRevision','body','setOptions','width','univer-cursor-grab','bases-dashboard-ui.chart.section.pie','change$','fields','has','tableId','VerticalAxis','pointerY','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','bases-dashboard-ui.pivot.showRowGrandTotal','matches','_localeService','then','grouped','CONTAINS','config','sourceType','getRuntimeContext','rootContainerElement','bases-dashboard-ui.dashboardInspector.dataSource','getRenderColor','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','univer-truncate','fullscreenchange','bases-dashboard-ui.dashboardInspector.left','bases-dashboard-ui.pivot.display','executeChartUpdateConfig','sortInfo','bases-dashboard-ui.pivot.options','bases-dashboard-ui.pivot.filters','fieldOrder','getResult','Histogram','bases-dashboard-ui.pivot.addToFilter','bases-dashboard-ui.chart.section.candlestick','univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','title','compact','Group','_injector','bases-dashboard-ui.dashboard.defaultName','getResource','bases-dashboard-ui.dashboardInspector.originalSize','conjunction','bases-dashboard-ui.pivot.values','bases-dashboard-ui.operators.isNotEmpty','_configService','date','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','decimalPlaces','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','1114177gGbYbu','bases-dashboard-ui.dashboardInspector.autoFit','bases-dashboard-ui.pivot.stdDev','bases-dashboard-ui.pivot.rows','bases-dashboard-ui.dashboardInspector.checked','addFieldWithSourceId','univer-mt-2\x20univer-w-full','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','rowFields','dashboardOrder','string','6QgCTbZ','bases-dashboard-ui.pivot.description','bases-dashboard-ui.chart.section.paretoBar','univer-mt-2','bases-dashboard-ui.chart.common.heatmap','legend','bottom','bases-dashboard-ui.pivot.confirm','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','call','UUID','Pivot','bases-dashboard-ui.dashboard.editWidget','bases-dashboard-ui.pivot.pageDirection','bases-dashboard-ui.dashboardInspector.removeImage','Chord','rightY','bases-dashboard-ui.dashboard.delete','current','bases-dashboard-ui.dashboard.addWidget','bases-dashboard-ui.dashboard.redo','img','getImage','innerWidth','subItem','univer-pointer-events-none\x20univer-absolute\x20univer-z-30\x20univer-appearance-none\x20univer-p-0\x20univer-opacity-0\x20!univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','Data','Sunburst','presentation','LineAndArea','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','floor','false','stopPropagation','univer-text-right','addImageSourceCache','bases-dashboard-ui.dashboard.add','undoRedoStatus$','var','createDomChartInstance','funnel','pointermove','fill','disconnect','bases-dashboard-ui.dashboardInspector.textSize','visibilityState','bases-dashboard-ui.pivot.variancePopulation','WaterfallSeries','pivot','checkMounted','bases-dashboard-ui.dashboard.tableFilter','iterator','bases-dashboard-ui.dashboard.search','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','bases-dashboard-ui.dashboardInspector.repeat','bases-dashboard-ui.pivot.product','bases-dashboard-ui.dashboardInspector.compact','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','getDataFieldByTableId','section','bases-dashboard-ui.chart.common.series','toPrimitive','bases-dashboard-ui.pivot.layoutTabular','image/*','tabular','bases-dashboard-ui.pivot.average','base-pivot-chart-','ChartStyle','_element','bases-dashboard-ui.pivot.blank','bases-dashboard-ui.dashboardInspector.center','column:','isArray','button','split','getFieldCountByArea','filter','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','bases-dashboard-ui.operators.is','toLocaleLowerCase','bases-dashboard-ui.dashboard.text','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','getChartRuntime','bases-dashboard-ui.pivot.sourceFields','onFilter','bases-dashboard-ui.chart.section.gauge','info','waterfallStyle','215018aupjJt','univer-relative\x20univer-z-10','bases-dashboard-ui.dashboardInspector.currencyCode','saveAttachment','bases-dashboard-ui.pivot.top','bases-dashboard-ui.dashboardInspector.custom','clientY','_renderModelManager','source','currentTheme$','getOwnPropertyDescriptor','General','undos','Escape','bases-dashboard-ui.dashboard.fullScreen','textColor','bases-dashboard-ui.chart.section.histogram','baseChartDataAnimation','Radar','input','bases-dashboard-ui.chart.common.editChart','univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','bases-dashboard-ui.chart.common.rightVerticalAxis','univer-grid\x20univer-gap-3\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','doc','small','header','toDate','gray','textStyle','univer-border-gray-200\x20dark:!univer-border-gray-700','getPresentation','render','Number','updateFieldPosition','tbody','stdDevp','find','bases-dashboard-ui.dashboard.widgetActions','YYYY-MM-DD','scrollWidth','setLabelFilterInfo','bases-dashboard-ui.dashboardInspector.uploadImage','ceil','paragraphId','bases-dashboard-ui.chart.common.customize','cover','changed$','symbol','univer-flex\x20univer-justify-end\x20univer-gap-2','NumberFormat','titles','repeatRowLabels','Filter','rightYAxis','slice','set','univer-w-36','IS_NOT_EMPTY','univer-size-8\x20univer-p-0\x20univer-text-red-500','isTopTotal','max','univer-flex\x20univer-flex-col\x20univer-gap-4','bases-dashboard-ui.dashboardInspector.replaceImage','description','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','files','top','bases-dashboard-ui.pivot.chartConfiguration','PivotChart','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','bases-dashboard-ui.dashboardInspector.grouped','IS_EMPTY','accept','clientWidth','univer-flex\x20univer-items-center\x20univer-gap-2','addEventListener','bases-dashboard-ui.dashboardInspector.close','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','getUnit','delete','getImageSourceCache','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-px-4\x20dark:!univer-border-gray-700','univer-shrink-0\x20univer-rounded-full\x20univer-bg-gray-200\x20univer-px-2\x20univer-py-0.5\x20univer-text-xs\x20univer-text-gray-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-300','5675400DTOhAx','bases-dashboard-ui.chart.common.legend','headerRowCount','get','Gauge','onReady','pageOverThenDown','showRowGrandTotal','fullscreenElement','getDashboard','default','bases-dashboard-ui.pivot.downThenAcross','univer-group\x20univer-relative\x20univer-flex\x20univer-min-h-0\x20univer-flex-col\x20univer-overflow-visible\x20univer-rounded-lg\x20univer-border\x20univer-shadow-sm\x20univer-transition-shadow','unsubscribe','bases-dashboard-ui.operators.after','from','bases-dashboard-ui.operators.isNot','length','borderRadius','univer-grid\x20univer-gap-4\x20univer-p-4','isTotal','7870626tdoYTS','ascending','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','bases-dashboard-ui.pivot.addToRow','univer-flex','descending','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','dataset','blur','error','bases-dashboard-ui.dashboard.undo','renameField','bases-dashboard-ui.pivot.showRowSubtotal','bases-dashboard-ui.pivot.columns','bases-dashboard-ui.pivot.repeatRowLabels','decimal','onDrop','setSortInfo','getRect','headerMap','activeRuntimeModel','flatMap','model','version','univer-grid\x20univer-gap-2\x20univer-p-3','pattern','_config','count','currency','trim','varp','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','dimension','PieStyle','dispose','pointerX','bases-dashboard-ui.dashboardInspector.sourceUnavailable','direction$','cancel','bases-dashboard-ui.dashboardInspector.general','add','imageSourceType','chartId','match','area','bases-dashboard-ui.chart.section.relation','createRenderInput','bases-dashboard-ui.operators.lessThan','formatMap','base-pivot-table-configuration','Text','bases-dashboard-ui.dashboard.pivotChart','cornerView','bases-dashboard-ui.dashboardInspector.contain','ChartAndAxisTitles','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','bases-dashboard-ui.chart.chartTypes.area','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','blank','segmented','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','contains','0\x200','base-pivot-options','bases-dashboard-ui.pivot.pivotConfiguration','7503380zhRQkj','bases-dashboard-ui.pivot.tableOnly','true','minmax(0,\x203fr)\x20minmax(0,\x202fr)','disposeWithMe','supports','setLayout','bases-dashboard-ui.chart.waterfall.subtotal','bases-dashboard-ui.pivot.sum','bases-dashboard-ui.pivot.layoutCompact','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.operators.notContains','dataModel','univer-min-w-0\x20univer-flex-1','base-dashboard-pivot-chart-','rowCount','orient','base-pivot-fields','change','auto','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','end','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-gray-50\x20univer-font-semibold\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','base64Cache','localeKey','isConnected','row','fit','MultipleGrandTotal','src','widgets','exitFullscreen','getOptions','Line','Subtotal','allSeriesStyle','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','separator','acquireChartRuntime','bases-dashboard-ui.dashboardInspector.editData','Column','function','bind','bases-dashboard-ui.dashboardInspector.data','chart','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','isFinite','baseChartDataAnimationDuration','\x20/\x20span\x20','pipe','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','MultiSelect','bases-dashboard-ui.pivot.name','border-box','onMoveDown','indicatorLine','GridlinesAndTicks','onCommit','(prefers-reduced-motion:\x20reduce)','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','bases-dashboard-ui.dashboardInspector.cover','px\x20solid\x20','syncLayout','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','Pareto','innerHeight','WordCloud','getTableFieldsByDataFieldId','columnFields','bases-dashboard-ui.pivot.addToValue','Row','ParetoLineSeries','defaultPrevented','fieldId','waterfall.positive','filterInfo','univer-size-5\x20univer-text-primary-600','pie','RoundRect','darkMode$','percent','columnSpan','field','height','dashboard-chart-setup','primary','row:','bases-dashboard-ui.pivot.dataSource','operator','format','tableOrder','bases-dashboard-ui.pivot.selectAll','bases-dashboard-ui.dashboard.new','setStyle','dashboard-widget-','univer-relative\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-50\x20dark:univer-bg-gray-950','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','bases-dashboard-ui.pivot.chartAndTable','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','univer-w-full','replaceChildren','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-flex\x20univer-min-h-full\x20univer-flex-col','bases-dashboard-ui.dashboardInspector.reset','bases-dashboard-ui.pivot.clearFilter','showColGrandTotal','5483632XcSvKR','univer-pointer-events-none\x20univer-absolute\x20univer-left-1/2\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-h-5\x20univer-w-8\x20-univer-translate-x-1/2\x20univer-appearance-none\x20univer-items-center\x20univer-justify-center\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-400\x20univer-opacity-0\x20univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','lastRow','onRemove','cumulativeLineStyle','destructive','resolve','label','setFieldFormat','Value','colCount','bases-dashboard-ui.chart.common.chartAndAxisTitles','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','removeField','alt','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','items','ownerDocument','ManualFilter','dom','dataView','setSubtotalType','bases-dashboard-ui.dashboardInspector.selectOption','univer-cursor-grabbing','original','move','setCurrentUnitForType','dashboard-','bases-dashboard-ui.chart.section.wordCloud','data:','pivotViewId','shapeText','object','baseOn','color','toJSON','HorizontalAxis','univer-mb-2\x20univer-border-collapse\x20univer-text-sm','fontSize','left','toUpperCase','bases-dashboard-ui.pivot.bottom','3WgasRS','catch','isHeader','canView','outline','base-pivot-chart-style','bases-dashboard-ui.pivot.searchFields','shapeType','url('];_0x1f68=function(){return _0x41dfb7;};return _0x1f68();}function bi(_0x381111){const _0x126147=_0x5d48da;switch(_0x381111[_0x126147(0x278)]){case _0x4dd1ab['PivotChart']:return _0x126147(0x1ca);case _0x4dd1ab[_0x126147(0x296)]:return _0x126147(0x108);case _0x4dd1ab[_0x126147(0x1c9)]:return'bases-dashboard-ui.dashboard.text';case _0x4dd1ab[_0x126147(0x3c0)]:return _0x126147(0x2a4);case _0x4dd1ab['FormulaShape']:return _0x126147(0x38b);}}function xi({onDelete:_0x18bf02,onEdit:_0x2e43df,onMoveUp:_0x2997e5,onMoveDown:_0x6ceadb}){const _0x491ddc=_0x5d48da;let [_0x288c7d,_0x3216fe]=_0x4ebd7a(!0x1),_0x2b9ea9=_0x40463f(_0x1ecd96),_0x2af55f=_0x2b9ea9['t'](_0x491ddc(0xe2)),_0x2febf0=_0x2b9ea9['t'](_0x491ddc(0x297)),_0x10956b=_0x2b9ea9['t'](_0x491ddc(0x154)),_0x312e07=[{'type':'item','children':_0x2fa798(_0x491ddc(0x339),{'className':_0x491ddc(0x179),'children':[_0x5628d9(_0x1d4ca0,{'className':_0x491ddc(0x3db),'aria-hidden':_0x491ddc(0x1da)}),_0x5628d9(_0x491ddc(0x339),{'children':_0x2af55f})]}),'onSelect':_0x2e43df},..._0x2997e5?[{'type':'item','children':_0x2fa798(_0x491ddc(0x339),{'className':_0x491ddc(0x179),'children':[_0x5628d9(_0x343cd3,{'className':_0x491ddc(0x3db),'aria-hidden':_0x491ddc(0x1da)}),_0x5628d9(_0x491ddc(0x339),{'children':_0x2b9ea9['t'](_0x491ddc(0x323))})]}),'onSelect':_0x2997e5}]:[],..._0x6ceadb?[{'type':_0x491ddc(0x321),'children':_0x2fa798(_0x491ddc(0x339),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x5628d9(_0xfb8e72,{'className':_0x491ddc(0x3db),'aria-hidden':_0x491ddc(0x1da)}),_0x5628d9(_0x491ddc(0x339),{'children':_0x2b9ea9['t'](_0x491ddc(0x2af))})]}),'onSelect':_0x6ceadb}]:[],{'type':_0x491ddc(0x1fd)},{'type':_0x491ddc(0x321),'variant':_0x491ddc(0x247),'children':_0x2fa798('span',{'className':_0x491ddc(0x179),'children':[_0x5628d9(_0x275aa7,{'className':_0x491ddc(0x3db),'aria-hidden':_0x491ddc(0x1da)}),_0x5628d9('span',{'children':_0x2febf0})]}),'onSelect':_0x18bf02}];return _0x5628d9(_0x56bbe5,{'open':_0x288c7d,'onOpenChange':_0x3216fe,'align':_0x491ddc(0x1ed),'sideOffset':0x4,'items':_0x312e07[_0x491ddc(0x2ea)](_0x250ade=>({..._0x250ade,'className':_0x250ade[_0x491ddc(0x278)]===_0x491ddc(0x321)?_0x491ddc(0x310):void 0x0})),'children':_0x5628d9(_0x101ca4,{'type':_0x491ddc(0x11f),'size':_0x491ddc(0x147),'variant':_0x491ddc(0x2e2),'onPointerDown':_0x23fa92=>_0x23fa92[_0x491ddc(0x394)](),'onClick':()=>_0x3216fe(_0x44ffb5=>!_0x44ffb5),'title':_0x10956b,'aria-label':_0x10956b,'className':'univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','children':_0x5628d9(_0x4093a6,{'className':_0x491ddc(0x3db),'aria-hidden':_0x491ddc(0x1da)})})});}function Si({dashboardId:_0x344e64,presentation:_0x2f0eff=!0x1,unitId:_0x3685a3}){const _0x579ef5=_0x5d48da;let _0x1d0650=_0x40463f(_0x3c350b),_0x31d123=_0x40463f(_0x5df1d5);_0x5056f6(_0x31d123[_0x579ef5(0x15d)],0x0);let _0x419f5b=_0x40463f(_0x1e6f93),_0x32d2dc=_0x40463f(_0x5b5322),_0x45a81e=_0x40463f(_0x2667ef),_0x30df4c=_0x40463f(_0x4829da),_0x24e3bd=_0x40463f(_0x1ecd96),_0x53d840=_0x40463f(_0x3a16be),_0x32ca48=_0x40463f(_0x12718a),[_0x14c7cb,_0x1b6d4a]=_0x4ebd7a(!0x1),[_0x45e171,_0x245b72]=_0x4ebd7a(),[_0x1fa87d,_0x250275]=_0x4ebd7a(!0x1),[_0x483dbc,_0x41c410]=_0x4ebd7a(()=>new Map()),_0xf3b021=_0x26d744((_0x4935fb,_0x5f5087)=>{_0x41c410(_0x4db09d=>{const _0x5585f3=_0x187c;let _0x449013=new Map(_0x4db09d);return _0x5f5087?_0x449013[_0x5585f3(0x166)](_0x4935fb,_0x5f5087):_0x449013['delete'](_0x4935fb),_0x449013;});},[]),_0x1186dd=_0x5056f6(()=>_0x53d840[_0x579ef5(0x9a)][_0x579ef5(0x209)](_0x51821f(()=>_0x53d840[_0x579ef5(0x18b)](_0x3685a3,_0x344e64))),_0x53d840[_0x579ef5(0x18b)](_0x3685a3,_0x344e64),!0x1,[_0x344e64,_0x53d840,_0x3685a3]),_0x53b4d2=_0x30df4c[_0x579ef5(0x17d)](_0x3685a3,_0x247fc0[_0x579ef5(0x324)]),_0x52d1e8=_0x5056f6(()=>_0x32ca48[_0x579ef5(0xfb)],{'undos':0x0,'redos':0x0},!0x1,[_0x32ca48]),_0x1caeb0=vr(_0x3685a3,_0x344e64);if(_0x185176(()=>{const _0xb2a5be=_0x579ef5;_0x30df4c[_0xb2a5be(0x25c)](_0x3685a3),_0x30df4c['focusUnit'](_0x3685a3);},[_0x30df4c,_0x3685a3]),!_0x1186dd||!_0x53b4d2)return null;let _0x25cbea={'unitId':_0x3685a3,'objectId':_0x4b369a(_0x344e64),'objectType':_0x346fe7[_0x579ef5(0x37b)]},_0x3f4dfc=(_0x9664e1,_0x30dc42)=>{const _0x2b7077=_0x579ef5;let _0x500cb9=[..._0x1186dd['widgetOrder']],_0x19bbff=_0x500cb9[_0x2b7077(0x34f)](_0x9664e1),_0x35313e=_0x19bbff+_0x30dc42;if(!(_0x19bbff<0x0||_0x35313e<0x0||_0x35313e>=_0x500cb9[_0x2b7077(0x193)]))return[_0x500cb9[_0x19bbff],_0x500cb9[_0x35313e]]=[_0x500cb9[_0x35313e],_0x500cb9[_0x19bbff]],_0x419f5b['executeCommand'](_0x1e3e1b['id'],{'unitId':_0x3685a3,'dashboard':{..._0x1186dd,'widgetOrder':_0x500cb9}});},_0x4d9180=_0x59e56e=>_0x419f5b[_0x579ef5(0x3e3)](_0x1041db['id'],{'unitId':_0x3685a3,'dashboardId':_0x344e64,'widget':_0x59e56e})[_0x579ef5(0x26d)](()=>void 0x0),_0x265dd0=(_0x2b0e00,_0x240f1f,_0xa7dfb7)=>{const _0x11d10f=_0x579ef5;let _0x3ae9a0=Math['max'](0x0,..._0x1186dd['widgetOrder']['flatMap'](_0x1a4921=>{const _0x19c0ab=_0x187c;var _0x32461e;let _0x29eb02=(_0x32461e=_0x1186dd[_0x19c0ab(0x1f6)][_0x1a4921])==null?void 0x0:_0x32461e[_0x19c0ab(0x3e1)];return _0x29eb02?[_0x29eb02[_0x19c0ab(0x1f2)]+_0x29eb02[_0x19c0ab(0x314)]]:[];})),_0x3d48cc='dashboard-widget-'+_0x2cedf9(0x8),_0x8e074a={'column':0x0,'row':_0x3ae9a0,'columnSpan':_0x240f1f,'rowSpan':_0xa7dfb7};switch(_0x2b0e00[_0x11d10f(0x278)]){case _0x4dd1ab[_0x11d10f(0x173)]:return _0x4d9180({..._0x2b0e00,'id':_0x3d48cc,'layout':_0x8e074a});case _0x4dd1ab['TableFilter']:return _0x4d9180({..._0x2b0e00,'id':_0x3d48cc,'layout':_0x8e074a});case _0x4dd1ab[_0x11d10f(0x1c9)]:return _0x4d9180({..._0x2b0e00,'id':_0x3d48cc,'layout':_0x8e074a});case _0x4dd1ab[_0x11d10f(0x3c0)]:return _0x4d9180({..._0x2b0e00,'id':_0x3d48cc,'layout':_0x8e074a});case _0x4dd1ab[_0x11d10f(0x2c2)]:return _0x4d9180({..._0x2b0e00,'id':_0x3d48cc,'layout':_0x8e074a});}},_0x2e1d94=_0x53b4d2[_0x579ef5(0x3e8)](),_0x1f54d1=_0x2e1d94['tableOrder'][_0x579ef5(0x1ac)](_0xeee8e1=>{const _0x118a13=_0x579ef5;let _0x3d12aa=_0x2e1d94['tables'][_0xeee8e1];if(!_0x3d12aa)return[];let _0x5e779e=_0x3d12aa[_0x118a13(0x389)][_0x118a13(0x1ac)](_0x1ea831=>{const _0x4407b5=_0x118a13;let _0x198e33=_0x3d12aa[_0x4407b5(0x2eb)][_0x1ea831];return Ai(_0x198e33)?[{'type':_0x4407b5(0x321),'children':_0x198e33[_0x4407b5(0x3d7)],'onSelect':()=>_0x265dd0({'type':_0x4dd1ab[_0x4407b5(0x173)],'tableId':_0xeee8e1,'pivotViewId':_0x1ea831,'chart':{..._0x198e33[_0x4407b5(0xa7)][_0x4407b5(0x204)]}},0x6,0xa)}]:[];});return[{'type':_0x118a13(0xee),'children':_0x3d12aa[_0x118a13(0x3d7)],'options':[..._0x5e779e,..._0x5e779e[_0x118a13(0x193)]?[{'type':_0x118a13(0x1fd)}]:[],{'type':_0x118a13(0x321),'children':_0x24e3bd['t'](_0x118a13(0x108)),'onSelect':()=>_0x265dd0({'type':_0x4dd1ab[_0x118a13(0x296)],'tableId':_0xeee8e1,'filter':null},0x6,0x8)}]}];}),_0x81f383=[..._0x1f54d1,..._0x1f54d1['length']?[{'type':_0x579ef5(0x1fd)}]:[],{'type':_0x579ef5(0x321),'children':_0x24e3bd['t']('bases-dashboard-ui.dashboard.text'),'onSelect':()=>_0x265dd0({'type':_0x4dd1ab[_0x579ef5(0x1c9)],'document':Ei()},0x4,0x6)},{'type':'item','children':_0x24e3bd['t'](_0x579ef5(0x2a4)),'onSelect':()=>Di(_0x32d2dc)[_0x579ef5(0xa4)](_0x41be3b=>_0x41be3b&&_0x265dd0({'type':_0x4dd1ab['Image'],'source':_0x41be3b[_0x579ef5(0x136)],'sourceType':_0x41be3b['sourceType'],'alt':_0x41be3b[_0x579ef5(0x3d7)],'displayMode':_0x579ef5(0x15c)},0x4,0x6))},{'type':_0x579ef5(0x321),'children':_0x24e3bd['t'](_0x579ef5(0x38b)),'onSelect':()=>{const _0x2c40e6=_0x579ef5;let _0x67bae1=_0x2e1d94[_0x2c40e6(0x232)]['find'](_0x4c1339=>_0x2e1d94[_0x2c40e6(0x3b5)][_0x4c1339]);_0x67bae1&&_0x265dd0({'type':_0x4dd1ab[_0x2c40e6(0x2c2)],'tableId':_0x67bae1,'shapeType':_0x5d0718[_0x2c40e6(0x226)],'shapeData':_0x154b06(),'description':_0x24e3bd['t'](_0x2c40e6(0x38b))},0x4,0x6);}}],_0x1c0c53=_0x45e171?_0x1186dd[_0x579ef5(0x1f6)][_0x45e171]:void 0x0,_0x5ecdcc=()=>_0x250275(_0xd7f9c9=>!_0xd7f9c9),_0xf7478c=_0x2f0eff||_0x1fa87d,_0xfb6a63=_0x1caeb0&&!_0xf7478c;return _0x5628d9(Jr,{'children':_0x2fa798(_0x579ef5(0x334),{'className':_0x579ef5(0x38f)+(_0x1fa87d?_0x579ef5(0x1ce):_0x579ef5(0x12f))+_0x579ef5(0x205),'children':[_0x1fa87d&&_0x5628d9(_0x101ca4,{'onClick':()=>_0x250275(!0x1),'children':_0x24e3bd['t']('bases-dashboard-ui.dashboardInspector.close')}),!_0xf7478c&&_0x2fa798(_0x579ef5(0x148),{'className':_0x579ef5(0x283),'children':[_0x5628d9(_0x5f4d2a,{'className':_0x579ef5(0x224)}),_0x5628d9('h2',{'className':_0x579ef5(0x327),'children':_0x1186dd[_0x579ef5(0x3d7)]}),_0x31d123[_0x579ef5(0x1dd)](_0x25cbea)&&_0x5628d9(_0x101ca4,{'variant':_0x579ef5(0x2e2),'disabled':!_0x31d123[_0x579ef5(0x26f)](_0x25cbea),'aria-label':_0x24e3bd['t'](_0x579ef5(0x382)),'onClick':()=>{const _0x1d64b0=_0x579ef5;_0x523b72(_0x1d0650,{'target':_0x25cbea,'name':_0x1186dd[_0x1d64b0(0x3d7)],'commandId':_0x5205b3['id'],'exists':()=>!!_0x53d840[_0x1d64b0(0x18b)](_0x3685a3,_0x344e64)});},'children':_0x5628d9(_0x44f2df,{})}),_0x5628d9(_0x450293,{'unitId':_0x3685a3}),_0x5628d9(_0x101ca4,{'type':_0x579ef5(0x11f),'size':_0x579ef5(0x147),'variant':_0x579ef5(0x2e2),'aria-label':_0x24e3bd['t'](_0x579ef5(0x1a1)),'disabled':!_0x1caeb0||_0x52d1e8[_0x579ef5(0x13a)]===0x0,'onClick':()=>_0x419f5b['executeCommand'](_0x1c6299['id'])[_0x579ef5(0x26d)](()=>void 0x0),'children':_0x5628d9(_0x4e88b7,{})}),_0x5628d9(_0x101ca4,{'type':_0x579ef5(0x11f),'size':_0x579ef5(0x147),'variant':_0x579ef5(0x2e2),'aria-label':_0x24e3bd['t'](_0x579ef5(0xea)),'disabled':!_0x1caeb0||_0x52d1e8[_0x579ef5(0x2a7)]===0x0,'onClick':()=>_0x419f5b[_0x579ef5(0x3e3)](_0x5eb015['id'])[_0x579ef5(0x26d)](()=>void 0x0),'children':_0x5628d9(_0x245c5e,{})}),_0x5628d9(_0x101ca4,{'type':_0x579ef5(0x11f),'size':_0x579ef5(0x147),'variant':_0x579ef5(0x2e2),'aria-label':_0x24e3bd['t'](_0x579ef5(0x13c)),'onClick':_0x5ecdcc,'children':_0x5628d9(_0x6d0af7,{})}),_0x5628d9(Xr,{'items':_0x81f383,'children':_0x2fa798(_0x101ca4,{'variant':_0x579ef5(0x22d),'disabled':!_0x1caeb0,'children':[_0x5628d9(_0x4f1759,{}),_0x24e3bd['t'](_0x579ef5(0xe9))]})})]}),_0x2fa798(_0x579ef5(0x334),{'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1','children':[_0x5628d9(_0x579ef5(0x334),{'className':_0x579ef5(0x1e5),'children':_0x5628d9(Kr,{'dashboard':_0x1186dd,'editable':_0xfb6a63,'widgetLabel':_0x10ffd8=>_0x24e3bd['t'](ki(_0x10ffd8[_0x579ef5(0x278)])),'selectedWidgetId':_0xfb6a63?_0x45e171:void 0x0,'onSelectWidget':_0xfb6a63?_0x54c664=>{_0x245b72(_0x54c664),_0x54c664||_0x1b6d4a(!0x1);}:void 0x0,'renderWidget':_0x4e33b9=>_0x5628d9(Ci,{'base':_0x53b4d2,'dashboard':_0x1186dd,'unitId':_0x3685a3,'widget':_0x4e33b9,'onChange':_0x4d9180,'onChartRuntimeChange':_0xf3b021}),'renderWidgetActions':_0x10ea10=>_0x5628d9(xi,{'onMoveUp':_0x1186dd[_0x579ef5(0x3a0)][_0x579ef5(0x34f)](_0x10ea10['id'])>0x0?()=>_0x3f4dfc(_0x10ea10['id'],-0x1):void 0x0,'onMoveDown':_0x1186dd[_0x579ef5(0x3a0)][_0x579ef5(0x34f)](_0x10ea10['id'])<_0x1186dd[_0x579ef5(0x3a0)][_0x579ef5(0x193)]-0x1?()=>_0x3f4dfc(_0x10ea10['id'],0x1):void 0x0,'onEdit':()=>{_0x245b72(_0x10ea10['id']),_0x1b6d4a(!0x0);},'onDelete':()=>{const _0x59da80=_0x579ef5;_0x45e171===_0x10ea10['id']&&(_0x245b72(void 0x0),_0x1b6d4a(!0x1)),_0x419f5b[_0x59da80(0x3e3)](_0x105c7d['id'],{'unitId':_0x3685a3,'dashboardId':_0x344e64,'widgetId':_0x10ea10['id']})[_0x59da80(0x26d)](()=>void 0x0);}})})}),_0xfb6a63&&_0x14c7cb&&_0x1c0c53&&_0x5628d9(pi,{'base':_0x53b4d2,'chartRuntime':_0x483dbc['get'](_0x1c0c53['id']),'unitId':_0x3685a3,'widget':_0x1c0c53,'onChange':_0x4d9180,'onClose':()=>_0x1b6d4a(!0x1),'onSelectBackgroundImage':()=>Oi(_0x45a81e),'onSelectImage':()=>Di(_0x32d2dc)})]})]})});}function Ci({base:_0x3a18bd,dashboard:_0xe9b27f,onChange:_0x43b75b,onChartRuntimeChange:_0x2027c4,unitId:_0x4055cd,widget:_0xd56595}){const _0x218b06=_0x5d48da;let _0xa42cf8=_0x5c672b(()=>_0xe9b27f[_0x218b06(0x3a0)][_0x218b06(0x1ac)](_0x1bd3cb=>{const _0x358f7d=_0x218b06;let _0x3b8d9e=_0xe9b27f[_0x358f7d(0x1f6)][_0x1bd3cb];return(_0x3b8d9e==null?void 0x0:_0x3b8d9e[_0x358f7d(0x278)])===_0x4dd1ab[_0x358f7d(0x296)]&&_0x3b8d9e[_0x358f7d(0x9d)]===(_0x358f7d(0x9d)in _0xd56595?_0xd56595[_0x358f7d(0x9d)]:'')&&_0x3b8d9e[_0x358f7d(0x122)]?[_0x3b8d9e[_0x358f7d(0x122)]]:[];}),[_0xe9b27f,_0xd56595]);switch(_0xd56595['type']){case _0x4dd1ab[_0x218b06(0x173)]:return _0x5628d9(zr,{'filters':_0xa42cf8,'unitId':_0x4055cd,'widget':_0xd56595,'onRuntimeChange':_0x2027c4});case _0x4dd1ab['TableFilter']:return _0x5628d9(di,{'fields':wi(_0x3a18bd,_0xd56595[_0x218b06(0x9d)]),'filter':_0xd56595[_0x218b06(0x122)],'onChange':_0x1814e4=>_0x43b75b({..._0xd56595,'filter':_0x1814e4})[_0x218b06(0x26d)](()=>void 0x0)});case _0x4dd1ab[_0x218b06(0x1c9)]:return _0x5628d9(Gr,{'widget':_0xd56595});case _0x4dd1ab[_0x218b06(0x3c0)]:return _0x5628d9(Ti,{'widget':_0xd56595});case _0x4dd1ab['FormulaShape']:return _0x5628d9(kr,{'dashboardId':_0xe9b27f['id'],'unitId':_0x4055cd,'widget':_0xd56595});}}function wi(_0x1465c7,_0x3f5c77){const _0x5177cf=_0x5d48da;let _0x277a64=_0x1465c7[_0x5177cf(0x3e8)]()[_0x5177cf(0x3b5)][_0x3f5c77],_0xd52c79=_0x277a64==null?void 0x0:_0x277a64['viewOrder']['find'](_0x4427e7=>_0x277a64['views'][_0x4427e7]),_0x4ed7b2=_0xd52c79?_0x277a64==null?void 0x0:_0x277a64[_0x5177cf(0x2eb)][_0xd52c79]:void 0x0;return _0x277a64&&_0x4ed7b2?_0x28d476(_0x277a64,_0x4ed7b2):[];}function Ti({widget:_0x41aab8}){const _0x39cf2f=_0x5d48da;let _0x42c68f=_0x40463f(_0x5b5322),[_0x4c0d9f,_0x38a241]=_0x4ebd7a(_0x41aab8[_0x39cf2f(0xa8)]===_0x3892df[_0x39cf2f(0xe0)]?'':_0x41aab8[_0x39cf2f(0x136)]);return _0x185176(()=>{const _0xbe77ad=_0x39cf2f;let _0x28841f=!0x0;return _0x42c68f[_0xbe77ad(0x2bd)](_0x41aab8[_0xbe77ad(0x136)],_0x41aab8[_0xbe77ad(0xa8)])[_0xbe77ad(0xa4)](_0x1093a8=>{_0x28841f&&_0x38a241(_0x1093a8);})[_0xbe77ad(0x26d)](()=>void 0x0),()=>{_0x28841f=!0x1;};},[_0x42c68f,_0x41aab8[_0x39cf2f(0x136)],_0x41aab8['sourceType']]),_0x4c0d9f?_0x5628d9(_0x39cf2f(0x334),{'role':_0x41aab8['alt']?_0x39cf2f(0xeb):void 0x0,'aria-label':_0x41aab8[_0x39cf2f(0x250)]||void 0x0,'data-dashboard-image':_0x41aab8['id'],'className':_0x39cf2f(0x2b9),'style':br(_0x4c0d9f,_0x41aab8[_0x39cf2f(0x31a)])}):null;}function Ei(){const _0x1d55e3=_0x5d48da;let _0x193659=_0x1be82d(new Set());return{'id':_0x1d55e3(0x390)+_0x2cedf9(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x193659}]},'documentStyle':{}};}function Di(_0x33f46e){return new Promise(_0x1e65df=>{const _0x42e3a7=_0x187c;let _0x76a4d2=document['createElement']('input');_0x76a4d2[_0x42e3a7(0x278)]='file',_0x76a4d2[_0x42e3a7(0x177)]='image/*',_0x76a4d2[_0x42e3a7(0x17a)]('change',()=>{const _0x5efeb4=_0x42e3a7;var _0x3b3110;let _0x360d57=(_0x3b3110=_0x76a4d2[_0x5efeb4(0x170)])==null?void 0x0:_0x3b3110[0x0];_0x360d57?_0x33f46e[_0x5efeb4(0x131)](_0x360d57)[_0x5efeb4(0xa4)](_0x5c8ac8=>{const _0x36f771=_0x5efeb4;!_0x5c8ac8[_0x36f771(0x136)]||_0x5c8ac8[_0x36f771(0xa8)]===void 0x0?_0x1e65df(null):_0x1e65df({'name':_0x5c8ac8['name'],'source':_0x5c8ac8['source'],'sourceType':_0x5c8ac8[_0x36f771(0xa8)]});})[_0x5efeb4(0x26d)](()=>_0x1e65df(null)):_0x1e65df(null);},{'once':!0x0}),_0x76a4d2[_0x42e3a7(0x3c4)]();});}function Oi(_0x574f76){return new Promise(_0x29ca06=>{const _0x35ab79=_0x187c;let _0x1ccbd8=document[_0x35ab79(0x365)]('input');_0x1ccbd8[_0x35ab79(0x278)]='file',_0x1ccbd8['accept']=_0x35ab79(0x115),_0x1ccbd8[_0x35ab79(0x17a)](_0x35ab79(0x1ea),()=>{const _0x2b4496=_0x35ab79;var _0x4d336;let _0x26c5db=(_0x4d336=_0x1ccbd8[_0x2b4496(0x170)])==null?void 0x0:_0x4d336[0x0];_0x26c5db?_0x574f76['saveImage'](_0x26c5db)[_0x2b4496(0xa4)](_0x54b034=>{const _0x299753=_0x2b4496;if(!(_0x54b034!=null&&_0x54b034[_0x299753(0x136)]))_0x29ca06(null);else{if(_0x54b034[_0x299753(0x1ef)]){let _0x4548fe=new Image();_0x4548fe[_0x299753(0x1f5)]=_0x54b034[_0x299753(0x1ef)],_0x574f76[_0x299753(0xf9)](_0x54b034[_0x299753(0x136)],_0x54b034[_0x299753(0x1c0)],_0x4548fe);}_0x29ca06({'source':_0x54b034[_0x299753(0x136)],'sourceType':_0x54b034['imageSourceType']});}})['catch'](()=>_0x29ca06(null)):_0x29ca06(null);},{'once':!0x0}),_0x1ccbd8['click']();});}function ki(_0x5ede19){const _0x3914bf=_0x5d48da;switch(_0x5ede19){case _0x4dd1ab['PivotChart']:return _0x3914bf(0x1ca);case _0x4dd1ab[_0x3914bf(0x296)]:return _0x3914bf(0x108);case _0x4dd1ab[_0x3914bf(0x1c9)]:return _0x3914bf(0x126);case _0x4dd1ab[_0x3914bf(0x3c0)]:return _0x3914bf(0x2a4);case _0x4dd1ab['FormulaShape']:return'bases-dashboard-ui.dashboard.formulaShape';}}function Ai(_0x183ddd){const _0x3a32ba=_0x5d48da;return(_0x183ddd==null?void 0x0:_0x183ddd[_0x3a32ba(0x278)])===_0xc74f11[_0x3a32ba(0xe1)]&&typeof _0x183ddd[_0x3a32ba(0xa7)]==_0x3a32ba(0x262)&&_0x183ddd['config']!==null&&_0x3a32ba(0x106)in _0x183ddd[_0x3a32ba(0xa7)]&&_0x3a32ba(0x204)in _0x183ddd[_0x3a32ba(0xa7)];}function ji({pivot:_0x7f2cc,view:_0x41d75c}){const _0x38921c=_0x5d48da;let _0x4c13e6=_0x40463f(_0x1ecd96),_0x1818b3=_0x5c672b(()=>Mi(_0x41d75c,_0x7f2cc,_0x4c13e6['t'](_0x38921c(0x3e9))),[_0x4c13e6,_0x7f2cc,_0x41d75c]);return _0x2fa798(_0x38921c(0x334),{'className':'univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','children':[_0x1818b3[_0x38921c(0x330)]['length']>0x0&&_0x5628d9(_0x38921c(0x2d3),{'className':_0x38921c(0x267),'children':_0x5628d9(_0x38921c(0x151),{'children':Ni(_0x1818b3[_0x38921c(0x330)])})}),_0x2fa798(_0x38921c(0x2d3),{'className':'univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','children':[_0x1818b3['headerRowCount']>0x0&&_0x5628d9(_0x38921c(0x3d9),{'className':_0x38921c(0x2b3),'children':Ni(_0x1818b3[_0x38921c(0x2c9)]['slice'](0x0,_0x1818b3['headerRowCount']))}),_0x5628d9(_0x38921c(0x151),{'children':Ni(_0x1818b3[_0x38921c(0x2c9)][_0x38921c(0x165)](_0x1818b3[_0x38921c(0x184)]))})]})]});}function Mi(_0x57491d,_0x442b68,_0x2e7fd1){const _0x8c85b=_0x5d48da;let _0xaa0d1a=_0x57491d[_0x8c85b(0x398)][_0x8c85b(0x1e7)],_0x25398b=_0x57491d[_0x8c85b(0x289)][_0x8c85b(0x24c)],_0x583ddf=_0x57491d[_0x8c85b(0x256)]['rowCount'],_0x2cad1e=_0x57491d[_0x8c85b(0x256)]['colCount'],_0x18824b=Array[_0x8c85b(0x191)]({'length':_0xaa0d1a+_0x583ddf},(_0x3082f6,_0x1410a5)=>Array[_0x8c85b(0x191)]({'length':_0x25398b+_0x2cad1e},(_0x3acda9,_0x4f26f4)=>{const _0x4196a1=_0x8c85b;var _0xc9c05a,_0x115433;if(_0x1410a5<_0xaa0d1a&&_0x4f26f4<_0x25398b)return Pi(_0x57491d[_0x4196a1(0x1cb)],_0x1410a5,_0x4f26f4,void 0x0,_0x2e7fd1,!0x0,!0x1,'corner:'+_0x1410a5+':'+_0x4f26f4);if(_0x1410a5<_0xaa0d1a){var _0x710fca;let _0x1484be=_0x4f26f4-_0x25398b,_0x23bf38=(_0x710fca=_0x57491d[_0x4196a1(0x398)][_0x4196a1(0x1aa)][_0x1410a5])==null?void 0x0:_0x710fca[_0x4196a1(0x359)];return Pi(_0x57491d[_0x4196a1(0x398)],_0x1410a5,_0x1484be,_0x23bf38?_0x57491d[_0x4196a1(0x1c7)][_0x23bf38]:void 0x0,_0x2e7fd1,!0x0,Li(_0x57491d['colView'][_0x4196a1(0x12c)][_0x1484be]),_0x4196a1(0x11d)+_0x1410a5+':'+_0x1484be);}if(_0x4f26f4<_0x25398b){var _0x495a73;let _0x9e645e=_0x1410a5-_0xaa0d1a,_0xcdf512=(_0x495a73=_0x57491d[_0x4196a1(0x289)]['headerMap'][_0x4f26f4])==null?void 0x0:_0x495a73[_0x4196a1(0x359)];return Pi(_0x57491d[_0x4196a1(0x289)],_0x9e645e,_0x4f26f4,_0xcdf512?_0x57491d[_0x4196a1(0x1c7)][_0xcdf512]:void 0x0,_0x2e7fd1,!0x0,Li(_0x57491d[_0x4196a1(0x289)][_0x4196a1(0x12c)][_0x9e645e]),_0x4196a1(0x22e)+_0x9e645e+':'+_0x4f26f4);}let _0x403928=_0x1410a5-_0xaa0d1a,_0x1dbede=_0x4f26f4-_0x25398b,_0x31c253=Math['max'](((_0xc9c05a=_0x57491d[_0x4196a1(0x289)][_0x4196a1(0x12c)][_0x403928])==null?void 0x0:_0xc9c05a[_0x4196a1(0x309)])??-0x1,((_0x115433=_0x57491d['colView'][_0x4196a1(0x12c)][_0x1dbede])==null?void 0x0:_0x115433[_0x4196a1(0x309)])??-0x1),_0x52cf8e=_0x442b68[_0x4196a1(0x2c5)][_0x31c253<0x0?0x0:_0x31c253];return Pi(_0x57491d[_0x4196a1(0x256)],_0x403928,_0x1dbede,_0x52cf8e?_0x57491d[_0x4196a1(0x1c7)][_0x52cf8e]:void 0x0,_0x2e7fd1,!0x1,Li(_0x57491d['rowView'][_0x4196a1(0x12c)][_0x403928])||Li(_0x57491d[_0x4196a1(0x398)]['info'][_0x1dbede]),_0x4196a1(0x25f)+_0x403928+':'+_0x1dbede);}));return{'headerColumnCount':_0x25398b,'headerRowCount':_0xaa0d1a,'pageRows':_0x57491d[_0x8c85b(0x322)][_0x8c85b(0x244)]<0x0||_0x57491d[_0x8c85b(0x322)]['lastCol']<0x0?[]:Array['from']({'length':_0x57491d[_0x8c85b(0x322)][_0x8c85b(0x244)]+0x1},(_0x23ce06,_0x5b3991)=>Array[_0x8c85b(0x191)]({'length':_0x57491d[_0x8c85b(0x322)][_0x8c85b(0x2e9)]+0x1},(_0x98630a,_0x57c095)=>Pi(_0x57491d[_0x8c85b(0x322)],_0x5b3991,_0x57c095,void 0x0,_0x2e7fd1,!0x0,!0x1,'page:'+_0x5b3991+':'+_0x57c095))),'rows':_0x18824b};}function Ni(_0x2e69a8){const _0x49d01d=_0x5d48da;return _0x2e69a8[_0x49d01d(0x2ea)](_0x134280=>{const _0x3ab10b=_0x49d01d;var _0x527abd;return _0x5628d9('tr',{'children':_0x134280[_0x3ab10b(0x2ea)](_0x380cbc=>{const _0x4ebd6b=_0x3ab10b;let _0x481282=_0x380cbc[_0x4ebd6b(0x26e)]?'th':'td';return _0x5628d9(_0x481282,{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-whitespace-nowrap\x20univer-border\x20univer-border-gray-200\x20univer-px-3\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-left\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x380cbc[_0x4ebd6b(0x196)]?_0x4ebd6b(0x1ee):'')+_0x4ebd6b(0x23d)+(_0x380cbc[_0x4ebd6b(0x26e)]?'':_0x4ebd6b(0xf8))+_0x4ebd6b(0x1d3),'children':_0x380cbc['value']},_0x380cbc[_0x4ebd6b(0x2d0)]);})},(_0x527abd=_0x134280[0x0])==null?void 0x0:_0x527abd[_0x3ab10b(0x2d0)]);});}function Pi(_0x5c8711,_0x180e28,_0x353fe7,_0x21554d,_0x1286e3,_0x559a8e,_0x5cbd68,_0x55e177){const _0x4604fc=_0x5d48da;var _0x2f20e1;let _0x43fd7c=(_0x2f20e1=_0x5c8711[_0x4604fc(0x373)][_0x180e28])==null?void 0x0:_0x2f20e1[_0x353fe7],_0x189405=_0x43fd7c==null?void 0x0:_0x43fd7c['s'],_0x5a6571=_0x5cbd68||_0x189405===_0x1dbe62['GrandTotal']||_0x189405===_0x1dbe62[_0x4604fc(0x1f4)];return{'isHeader':_0x559a8e,'isTotal':_0x5a6571||_0x189405===_0x1dbe62['Subtotal'],'key':_0x55e177,'style':_0x189405,'value':_0x5a6571&&Ii(_0x43fd7c==null?void 0x0:_0x43fd7c['v'])?_0x1286e3:Fi(_0x43fd7c,_0x21554d)};}function Fi(_0x57f2f3,_0x1d8b95){const _0x2cccb1=_0x5d48da;let _0x5c1738=_0x57f2f3==null?void 0x0:_0x57f2f3['v'];return _0x2b18e7(_0x5c1738)?String(_0x5c1738['value']??_0x5c1738[_0x2cccb1(0x300)]??''):_0x3e551d(_0x5c1738)?'#'+_0x5c1738['errorType']:_0x1d8b95&&typeof _0x5c1738==_0x2cccb1(0x31b)?_0x52ec2b[_0x2cccb1(0x231)](_0x1d8b95,_0x5c1738):String(_0x5c1738??'');}function Ii(_0x317726){return _0x317726===void 0x0||_0x317726==='';}function Li(_0x3b1f8d){const _0x2fee8c=_0x5d48da;return!!(_0x3b1f8d!=null&&_0x3b1f8d['isBottomTotal']||_0x3b1f8d!=null&&_0x3b1f8d[_0x2fee8c(0x16a)]||_0x3b1f8d!=null&&_0x3b1f8d[_0x2fee8c(0x279)]||(_0x3b1f8d==null?void 0x0:_0x3b1f8d[_0x2fee8c(0x391)])===_0x2fee8c(0x2c4));}const Ri=[{'area':_0x87fd74[_0x5d48da(0x163)],'key':_0x5d48da(0x39e),'label':_0x5d48da(0xb5)},{'area':_0x87fd74['Column'],'key':_0x5d48da(0x21c),'label':_0x5d48da(0x1a4)},{'area':_0x87fd74[_0x5d48da(0x21e)],'key':_0x5d48da(0xd3),'label':_0x5d48da(0xce)},{'area':_0x87fd74[_0x5d48da(0x24b)],'key':_0x5d48da(0x2c5),'label':'bases-dashboard-ui.pivot.values'}],zi=[{'value':_0x3bfa9b[_0x5d48da(0x381)],'localeKey':_0x5d48da(0x1e0)},{'value':_0x3bfa9b[_0x5d48da(0x1b2)],'localeKey':_0x5d48da(0x3a5)},{'value':_0x3bfa9b[_0x5d48da(0x2f0)],'localeKey':'bases-dashboard-ui.pivot.countNumbers'},{'value':_0x3bfa9b[_0x5d48da(0x2ac)],'localeKey':_0x5d48da(0x117)},{'value':_0x3bfa9b['max'],'localeKey':_0x5d48da(0x2b0)},{'value':_0x3bfa9b[_0x5d48da(0x2cf)],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x3bfa9b[_0x5d48da(0x37e)],'localeKey':_0x5d48da(0x10d)},{'value':_0x3bfa9b['stdDev'],'localeKey':_0x5d48da(0xcd)},{'value':_0x3bfa9b[_0x5d48da(0x152)],'localeKey':_0x5d48da(0x32e)},{'value':_0x3bfa9b['var'],'localeKey':_0x5d48da(0x30e)},{'value':_0x3bfa9b[_0x5d48da(0x1b5)],'localeKey':_0x5d48da(0x104)}];function Bi(_0x476cb4){const _0x5c1add=_0x5d48da;let {config:_0x18305b,onChange:_0x42b47f,table:_0x1fd691}=_0x476cb4,_0x558896=_0x40463f(_0x1ecd96),[_0x44379d,_0x4c258e]=_0x4ebd7a(_0x5c1add(0x9b)),[_0x1ccee0,_0x298248]=_0x4ebd7a(''),[_0x1f362e,_0x134d56]=_0x4ebd7a(null),[_0x3a4df7,_0x560213]=_0x4ebd7a(null),[_0x33fd1e,_0xe63d9f]=_0x4ebd7a(null),[_0x4c2860,_0x5305c7]=_0x4ebd7a(null),_0x3e4e15=_0x25fc59(null),_0x4ee7f2=_0x5c672b(()=>_0x1fd691[_0x5c1add(0xb6)][_0x5c1add(0x1ac)](_0x1952e4=>{const _0x594a0a=_0x5c1add;let _0x48507a=_0x1fd691[_0x594a0a(0x9b)][_0x1952e4];return _0x48507a&&_0x48507a[_0x594a0a(0x3b4)]!==!0x0&&_0x48507a['type']!==_0x3bfbe2['RecordId']?[_0x48507a]:[];})['filter'](_0x11acd3=>_0x11acd3[_0x5c1add(0x3d7)][_0x5c1add(0x125)]()['includes'](_0x1ccee0[_0x5c1add(0x1b4)]()[_0x5c1add(0x125)]())),[_0x1ccee0,_0x1fd691]),_0x4622d5=_0x325b82=>{const _0x4566bb=_0x5c1add;let _0x358faf=_0x2a70ba(_0x1fd691,_0x18305b[_0x4566bb(0x106)]);try{_0x325b82(_0x358faf),_0x42b47f({'pivot':_0x358faf[_0x4566bb(0x265)]()});}finally{_0x358faf[_0x4566bb(0x1b9)]();}},_0x40f947=(_0x2c1830,_0x324d9b)=>{_0x1f362e&&(_0x4622d5(_0x1185d2=>{const _0x1c7387=_0x187c;if(_0x1f362e[_0x1c7387(0x27f)]==='field'){let _0x174706=_0x1185d2['getFieldPositionInfoById'](_0x1f362e['id']),_0xc17f06=_0x174706[_0x1c7387(0x1c3)]===_0x2c1830&&_0x174706[_0x1c7387(0x2ff)]<_0x324d9b?_0x324d9b-0x1:_0x324d9b;_0x1185d2[_0x1c7387(0x150)](_0x1f362e['id'],_0x2c1830,_0xc17f06);}else Ji(_0x1185d2,_0x1f362e['id'],_0x2c1830,_0x324d9b);}),_0x134d56(null),_0x560213(null));};return _0x2fa798(_0x5c1add(0x334),{'className':_0x5c1add(0x23e),'children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x558896['t'](_0x5c1add(0x1d7)),'className':_0x5c1add(0x3c9),'items':[{'label':_0x558896['t'](_0x5c1add(0x31d)),'panelId':_0x5c1add(0x1e9),'value':_0x5c1add(0x9b)},{'label':_0x558896['t'](_0x5c1add(0xb4)),'panelId':_0x5c1add(0x1d6),'value':_0x5c1add(0x2a1)}],'value':_0x44379d,'onChange':_0x4c258e}),_0x5628d9(_0x5c1add(0x334),{'ref':_0x3e4e15,'className':_0x37e66c('univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3',_0xb0e9d1),'onDragOver':_0x31cd82=>{const _0x5386f8=_0x5c1add;let _0xa6b15f=_0x3e4e15[_0x5386f8(0xe8)];if(!_0xa6b15f)return;let _0x264595=_0xa6b15f[_0x5386f8(0x319)]();_0x31cd82[_0x5386f8(0x134)]<_0x264595[_0x5386f8(0x171)]+0x30?_0xa6b15f[_0x5386f8(0x28a)]-=0x10:_0x31cd82['clientY']>_0x264595[_0x5386f8(0xdc)]-0x30&&(_0xa6b15f[_0x5386f8(0x28a)]+=0x10);},'children':_0x44379d===_0x5c1add(0x2a1)?_0x5628d9(qi,{'config':_0x18305b,'commit':_0x4622d5}):_0x2fa798(_0x5c1add(0x334),{'className':_0x5c1add(0x16c),'children':[_0x2fa798('div',{'children':[_0x5628d9(_0x5c1add(0x334),{'className':_0x5c1add(0x36e),'children':_0x558896['t']('bases-dashboard-ui.pivot.sourceFields')}),_0x5628d9(_0x5d579d,{'allowClear':!0x0,'slot':_0x5628d9(_0xa664ad,{}),'value':_0x1ccee0,'placeholder':_0x558896['t'](_0x5c1add(0x272)),'onChange':_0x298248}),_0x5628d9('div',{'className':_0x5c1add(0x1d0),'children':_0x4ee7f2[_0x5c1add(0x2ea)](_0x583cc2=>_0x5628d9(Vi,{'config':_0x18305b,'field':_0x583cc2,'onAdd':_0x12ad09=>_0x4622d5(_0x1eb3b3=>Ji(_0x1eb3b3,_0x583cc2['id'],_0x12ad09,_0x1eb3b3['getFieldCountByArea'](_0x12ad09))),'onCheckedChange':_0x3016b0=>_0x4622d5(_0x1becc9=>{const _0xc306dc=_0x5c1add;let _0x313ebb=_0x1becc9['getTableFieldsByDataFieldId'](_0x583cc2['id']);if(!_0x3016b0)_0x313ebb[_0xc306dc(0x3ce)](_0x3fea5e=>_0x1becc9['removeField'](_0x3fea5e[_0xc306dc(0x2ce)]()));else{if(_0x313ebb[_0xc306dc(0x193)]===0x0){let _0x3fc905=Xi(_0x583cc2)?_0x87fd74['Value']:_0x87fd74[_0xc306dc(0x21e)];_0x1becc9[_0xc306dc(0xd0)](_0x583cc2['id'],_0x3fc905);}}}),'onDragStart':()=>_0x134d56({'kind':_0x5c1add(0x136),'id':_0x583cc2['id']})},_0x583cc2['id']))})]}),_0x5628d9(_0x5c1add(0x334),{'className':'univer-grid\x20univer-gap-3','children':Ri['map'](_0x58ff9e=>_0x5628d9(Ui,{'area':_0x58ff9e[_0x5c1add(0x1c3)],'dropTarget':_0x3a4df7,'fields':_0x18305b['pivot'][_0x58ff9e[_0x5c1add(0x2d0)]],'label':_0x558896['t'](_0x58ff9e['label']),'snapshot':_0x18305b[_0x5c1add(0x106)],'onDragEnd':()=>{_0x134d56(null),_0x560213(null);},'onDragStart':_0x106852=>_0x134d56({'kind':'field','id':_0x106852,'area':_0x58ff9e[_0x5c1add(0x1c3)]}),'onDragOver':_0x1b2a73=>_0x560213({'area':_0x58ff9e[_0x5c1add(0x1c3)],'index':_0x1b2a73}),'onDrop':_0x5ab16=>_0x40f947(_0x58ff9e[_0x5c1add(0x1c3)],_0x5ab16),'onFilter':_0xe63d9f,'onMove':(_0x4cb7b5,_0x3e4166,_0x33c89f)=>_0x4622d5(_0x36a3b1=>_0x36a3b1[_0x5c1add(0x150)](_0x4cb7b5,_0x3e4166,_0x33c89f)),'onRemove':_0x1fd1d3=>_0x4622d5(_0x3e0e08=>_0x3e0e08['removeField'](_0x1fd1d3)),'onSettings':_0x5305c7},_0x58ff9e[_0x5c1add(0x1c3)]))}),_0x33fd1e&&_0x5628d9(Gi,{'fieldId':_0x33fd1e,'snapshot':_0x18305b[_0x5c1add(0x106)],'table':_0x1fd691,'onCancel':()=>_0xe63d9f(null),'onCommit':(_0x4cff8c,_0x20e130)=>{_0x4622d5(_0x1bdacb=>{const _0x1fc063=_0x187c;let _0x24aaa8=_0x1bdacb[_0x1fc063(0x110)](_0x33fd1e),_0x5a4d72=(_0x24aaa8==null?void 0x0:_0x24aaa8[_0x1fc063(0x252)])??[];_0x1bdacb['setLabelFilterInfo'](_0x33fd1e,{'type':_0x829bf6[_0x1fc063(0x254)],'list':_0x4cff8c,'isAll':_0x4cff8c[_0x1fc063(0x193)]===_0x5a4d72[_0x1fc063(0x193)]}),_0x1bdacb[_0x1fc063(0x1a8)](_0x33fd1e,_0x20e130===void 0x0?void 0x0:{'type':_0x20e130});}),_0xe63d9f(null);}},_0x33fd1e),_0x4c2860&&_0x5628d9(Ki,{'field':_0x18305b['pivot']['measure'][_0x4c2860],'onCancel':()=>_0x5305c7(null),'onCommit':(_0x2f02a5,_0x5b87eb,_0x60858)=>{_0x4622d5(_0x29f14a=>{const _0x58f02f=_0x187c;_0x29f14a[_0x58f02f(0x1a2)](_0x4c2860,_0x2f02a5),_0x29f14a[_0x58f02f(0x257)](_0x4c2860,_0x5b87eb),_0x29f14a[_0x58f02f(0x24a)](_0x4c2860,_0x60858||void 0x0);}),_0x5305c7(null);}},_0x4c2860)]})})]});}function Vi(_0x3d2847){const _0x247a2c=_0x5d48da;let {config:_0x107005,field:_0x4d409d,onAdd:_0x383b12,onCheckedChange:_0x463fd6,onDragStart:_0x1ca69a}=_0x3d2847,_0x220b94=_0x40463f(_0x1ecd96),_0x24a1c0=[...Object[_0x247a2c(0x370)](_0x107005[_0x247a2c(0x106)][_0x247a2c(0x1b7)]),...Object[_0x247a2c(0x370)](_0x107005['pivot'][_0x247a2c(0x347)])][_0x247a2c(0x353)](_0x161247=>_0x161247[_0x247a2c(0x275)]===_0x4d409d['id']),_0x1c729b=Ri[_0x247a2c(0x2ea)](_0x5aa2a0=>({'type':_0x247a2c(0x321),'children':_0x220b94['t'](Zi(_0x5aa2a0[_0x247a2c(0x1c3)])),'onSelect':()=>_0x383b12(_0x5aa2a0['area'])}));return _0x2fa798(_0x247a2c(0x334),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x247a2c(0x2bc),'onDragStart':_0x1ca69a,'children':[_0x5628d9(_0x57ed34,{'checked':_0x24a1c0,'onChange':_0x15e2d4=>_0x463fd6(!!_0x15e2d4)}),_0x5628d9(Hi,{'field':_0x4d409d}),_0x5628d9(_0x247a2c(0x339),{'className':_0x247a2c(0x3d3),'children':_0x4d409d[_0x247a2c(0x3d7)]}),_0x5628d9(Xr,{'align':_0x247a2c(0x1ed),'items':_0x1c729b,'children':_0x5628d9(_0x101ca4,{'variant':_0x247a2c(0x2e2),'aria-label':_0x220b94['t'](_0x247a2c(0x2e7)),'children':_0x5628d9(_0x3693ad,{})})})]});}function Hi({field:_0x36fe9a}){const _0x416411=_0x5d48da;return Xi(_0x36fe9a)?_0x5628d9(_0xfa6b5,{'className':'univer-text-gray-400'}):_0x36fe9a[_0x416411(0x278)]===_0x3bfbe2['Date']||_0x36fe9a['type']===_0x3bfbe2[_0x416411(0x302)]||_0x36fe9a[_0x416411(0x278)]===_0x3bfbe2[_0x416411(0x307)]?_0x5628d9(_0x143320,{'className':_0x416411(0x3d1)}):_0x5628d9(_0x45f36b,{'className':_0x416411(0x3d1)});}function Ui(_0x48547e){const _0xaf2b24=_0x5d48da;let {area:_0x238323,dropTarget:_0x34ba9e,fields:_0x460cbf,label:_0x379052,snapshot:_0x2520e2}=_0x48547e,_0x617c76=_0x40463f(_0x1ecd96);return _0x2fa798('section',{'className':_0x37e66c(_0xaf2b24(0x251),_0x3b0e1f),'onDragOver':_0x429b9f=>{const _0x553f3f=_0xaf2b24;_0x429b9f[_0x553f3f(0x394)](),_0x48547e['onDragOver'](_0x460cbf[_0x553f3f(0x193)]);},'onDrop':_0x39cf4c=>{const _0x2fbceb=_0xaf2b24;_0x39cf4c['preventDefault'](),_0x48547e[_0x2fbceb(0x1a7)]((_0x34ba9e==null?void 0x0:_0x34ba9e['area'])===_0x238323?_0x34ba9e[_0x2fbceb(0x2ff)]:_0x460cbf[_0x2fbceb(0x193)]);},'children':[_0x5628d9(_0xaf2b24(0x334),{'className':_0xaf2b24(0x3dc),'children':_0x379052}),_0x2fa798(_0xaf2b24(0x334),{'className':_0xaf2b24(0x342),'children':[_0x460cbf[_0xaf2b24(0x2ea)]((_0x2e8081,_0x3f2240)=>{const _0x26ea4b=_0xaf2b24;let _0x3f97e2=_0x2520e2[_0x26ea4b(0x1b7)][_0x2e8081]??_0x2520e2[_0x26ea4b(0x347)][_0x2e8081];if(!_0x3f97e2)return null;let _0x21aae2=(_0x34ba9e==null?void 0x0:_0x34ba9e['area'])===_0x238323&&_0x34ba9e[_0x26ea4b(0x2ff)]===_0x3f2240;return _0x2fa798(_0x26ea4b(0x334),{'onDragOver':_0xfff3e0=>{const _0x1753d7=_0x26ea4b;_0xfff3e0[_0x1753d7(0x394)](),_0xfff3e0[_0x1753d7(0xf7)]();let _0x58d5d4=_0xfff3e0[_0x1753d7(0x3c6)]['getBoundingClientRect']();_0x48547e[_0x1753d7(0x2cb)](_0x3f2240+ +(_0xfff3e0['clientY']>_0x58d5d4[_0x1753d7(0x171)]+_0x58d5d4['height']/0x2));},'onDrop':_0xadcd49=>{const _0x1d1e43=_0x26ea4b;_0xadcd49['preventDefault'](),_0xadcd49[_0x1d1e43(0xf7)](),_0x48547e[_0x1d1e43(0x1a7)]((_0x34ba9e==null?void 0x0:_0x34ba9e['area'])===_0x238323?_0x34ba9e[_0x1d1e43(0x2ff)]:_0x3f2240);},'children':[_0x21aae2&&_0x5628d9(_0x26ea4b(0x334),{'className':_0x26ea4b(0x3e4)}),_0x5628d9(Wi,{'area':_0x238323,'field':_0x3f97e2,'onDragEnd':_0x48547e[_0x26ea4b(0x37f)],'onDragStart':()=>_0x48547e[_0x26ea4b(0x293)](_0x2e8081),'onFilter':()=>_0x48547e[_0x26ea4b(0x12a)](_0x2e8081),'onMove':_0x4972e7=>_0x48547e[_0x26ea4b(0x397)](_0x2e8081,_0x4972e7,0x0),'onMoveUp':_0x3f2240>0x0?()=>_0x48547e[_0x26ea4b(0x397)](_0x2e8081,_0x238323,_0x3f2240-0x1):void 0x0,'onMoveDown':_0x3f2240<_0x460cbf[_0x26ea4b(0x193)]-0x1?()=>_0x48547e[_0x26ea4b(0x397)](_0x2e8081,_0x238323,_0x3f2240+0x1):void 0x0,'onRemove':()=>_0x48547e['onRemove'](_0x2e8081),'onSettings':()=>_0x48547e[_0x26ea4b(0x387)](_0x2e8081)})]},_0x2e8081);}),(_0x34ba9e==null?void 0x0:_0x34ba9e[_0xaf2b24(0x1c3)])===_0x238323&&_0x34ba9e[_0xaf2b24(0x2ff)]===_0x460cbf['length']&&_0x5628d9(_0xaf2b24(0x334),{'className':_0xaf2b24(0x3e4)}),_0x460cbf['length']===0x0&&_0x5628d9(_0xaf2b24(0x334),{'className':'univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','children':_0x617c76['t']('bases-dashboard-ui.pivot.sourceFields')})]})]});}function Wi(_0x4ac1ce){const _0x6e25f0=_0x5d48da;let _0x5a28b1=_0x40463f(_0x1ecd96),_0x270a44=_0x4ac1ce[_0x6e25f0(0x1c3)]===_0x87fd74[_0x6e25f0(0x24b)],_0xfe45b4=[...Ri['filter'](_0xe2f56a=>_0xe2f56a[_0x6e25f0(0x1c3)]!==_0x4ac1ce[_0x6e25f0(0x1c3)])[_0x6e25f0(0x2ea)](_0x16f89d=>({'type':_0x6e25f0(0x321),'children':_0x5a28b1['t'](Zi(_0x16f89d[_0x6e25f0(0x1c3)])),'onSelect':()=>_0x4ac1ce[_0x6e25f0(0x397)](_0x16f89d['area'])})),..._0x4ac1ce[_0x6e25f0(0x2f2)]?[{'type':'item','children':_0x5a28b1['t'](_0x6e25f0(0x323)),'onSelect':_0x4ac1ce['onMoveUp']}]:[],..._0x4ac1ce[_0x6e25f0(0x20e)]?[{'type':_0x6e25f0(0x321),'children':_0x5a28b1['t']('bases-dashboard-ui.mobile.moveDown'),'onSelect':_0x4ac1ce[_0x6e25f0(0x20e)]}]:[],{'type':_0x6e25f0(0x321),'children':_0x5a28b1['t'](_0x6e25f0(0x3c2)),'onSelect':_0x4ac1ce[_0x6e25f0(0x245)]},{'type':_0x6e25f0(0x321),'children':_0x5a28b1['t'](_0x270a44?_0x6e25f0(0x2e7):_0x6e25f0(0x28f)),'onSelect':_0x270a44?_0x4ac1ce[_0x6e25f0(0x387)]:_0x4ac1ce[_0x6e25f0(0x12a)]}];return _0x2fa798(_0x6e25f0(0x334),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x6e25f0(0x3a2),'onDragEnd':_0x4ac1ce['onDragEnd'],'onDragStart':_0x4ac1ce['onDragStart'],'children':[_0x5628d9(_0x2f0618,{'title':_0x4ac1ce[_0x6e25f0(0x22a)][_0x6e25f0(0x3bd)],'children':_0x5628d9(_0x6e25f0(0x339),{'className':_0x6e25f0(0x3d3),'children':_0x4ac1ce[_0x6e25f0(0x22a)][_0x6e25f0(0x3bd)]})}),_0x5628d9(Xr,{'align':_0x6e25f0(0x1ed),'items':_0xfe45b4,'children':_0x5628d9(_0x101ca4,{'variant':_0x6e25f0(0x2e2),'aria-label':_0x5a28b1['t']('bases-dashboard-ui.pivot.fieldSettings'),'children':_0x5628d9(_0x3693ad,{})})})]});}function Gi(_0x4eb1fa){const _0x4b1386=_0x5d48da;var _0x254f07,_0x6bffef;let _0x4e4b99=_0x40463f(_0x1ecd96),{format:_0x2ae7dc,items:_0x23024b,itemTypes:_0x5d544d}=_0x5c672b(()=>{const _0xad4fa0=_0x187c;let _0x175c6c=_0x2a70ba(_0x4eb1fa[_0xad4fa0(0x2d3)],_0x4eb1fa[_0xad4fa0(0x2f9)]);try{let _0x51e91c=_0x175c6c[_0xad4fa0(0x110)](_0x4eb1fa['fieldId']);return{'format':_0x51e91c==null?void 0x0:_0x51e91c['format'],'items':[...(_0x51e91c==null?void 0x0:_0x51e91c[_0xad4fa0(0x252)])??[]],'itemTypes':[...(_0x51e91c==null?void 0x0:_0x51e91c['itemTypes'])??[]]};}finally{_0x175c6c[_0xad4fa0(0x1b9)]();}},[_0x4eb1fa[_0x4b1386(0x221)],_0x4eb1fa['snapshot'],_0x4eb1fa['table']]),_0x3583d2=(_0x254f07=_0x4eb1fa[_0x4b1386(0x2f9)][_0x4b1386(0x1b7)][_0x4eb1fa[_0x4b1386(0x221)]])==null?void 0x0:_0x254f07['filterInfo'],[_0x292df1,_0x11de30]=_0x4ebd7a((_0x3583d2==null?void 0x0:_0x3583d2[_0x4b1386(0x278)])===_0x829bf6['ManualFilter']?_0x3583d2[_0x4b1386(0x2c1)]:_0x23024b),[_0x4a1acd,_0x4ebee4]=_0x4ebd7a((_0x6bffef=_0x4eb1fa[_0x4b1386(0x2f9)][_0x4b1386(0x1b7)][_0x4eb1fa['fieldId']])==null||(_0x6bffef=_0x6bffef['sortInfo'])==null?void 0x0:_0x6bffef[_0x4b1386(0x278)]),_0x585e08=_0x292df1[_0x4b1386(0x193)]===_0x23024b[_0x4b1386(0x193)],_0x4643bc=_0x2fa798(_0x4b1386(0x111),{'className':_0x37e66c(_0x4b1386(0x33e),_0x3b0e1f),'children':[_0x5628d9(_0x4b1386(0x334),{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0x4e4b99['t'](_0x4b1386(0x28f))}),_0x2fa798(_0x4b1386(0x334),{'className':'univer-flex','children':[_0x2fa798(_0x101ca4,{'className':_0x4b1386(0x3c7),'variant':_0x4a1acd===_0x1b5f3a[_0x4b1386(0x198)]?_0x4b1386(0x22d):'default','onClick':()=>_0x4ebee4(_0x1b5f3a[_0x4b1386(0x198)]),'children':[_0x5628d9(_0x558ec6,{}),_0x4e4b99['t'](_0x4b1386(0x28c))]}),_0x2fa798(_0x101ca4,{'className':_0x4b1386(0x3c7),'variant':_0x4a1acd===_0x1b5f3a[_0x4b1386(0x19c)]?_0x4b1386(0x22d):_0x4b1386(0x18c),'onClick':()=>_0x4ebee4(_0x1b5f3a[_0x4b1386(0x19c)]),'children':[_0x5628d9(_0x3c94ed,{}),_0x4e4b99['t'](_0x4b1386(0x2a8))]})]}),_0x2fa798(_0x4b1386(0x334),{'className':_0x4b1386(0x311),'children':[_0x2fa798('label',{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x5628d9(_0x57ed34,{'checked':_0x585e08,'indeterminate':_0x292df1[_0x4b1386(0x193)]>0x0&&!_0x585e08,'onChange':()=>_0x11de30(_0x585e08?[]:_0x23024b)}),_0x4e4b99['t'](_0x4b1386(0x233))]}),_0x23024b['map']((_0xff2918,_0x40b8d7)=>_0x2fa798(_0x4b1386(0x249),{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x5628d9(_0x57ed34,{'checked':_0x292df1[_0x4b1386(0x292)](_0xff2918),'onChange':()=>_0x11de30(_0xa10cff=>_0xa10cff[_0x4b1386(0x292)](_0xff2918)?_0xa10cff[_0x4b1386(0x122)](_0x1b8298=>_0x1b8298!==_0xff2918):[..._0xa10cff,_0xff2918])}),_0x5628d9(_0x4b1386(0x339),{'className':_0x4b1386(0xae),'children':Yi(_0xff2918,_0x5d544d[_0x40b8d7],_0x2ae7dc,_0x4e4b99['t']('bases-dashboard-ui.pivot.blank'))})]},_0xff2918))]}),_0x2fa798(_0x4b1386(0x334),{'className':_0x4b1386(0x1fc),'children':[_0x5628d9(_0x101ca4,{'variant':_0x4b1386(0x2ca),'onClick':()=>_0x4eb1fa[_0x4b1386(0x211)](_0x23024b,_0x4a1acd),'children':_0x4e4b99['t'](_0x4b1386(0x240))}),_0x2fa798('div',{'className':_0x4b1386(0x316),'children':[_0x5628d9(_0x101ca4,{'onClick':_0x4eb1fa[_0x4b1386(0x2db)],'children':_0x4e4b99['t'](_0x4b1386(0x2e6))}),_0x5628d9(_0x101ca4,{'variant':_0x4b1386(0x22d),'disabled':_0x292df1[_0x4b1386(0x193)]===0x0,'onClick':()=>_0x4eb1fa[_0x4b1386(0x211)](_0x292df1,_0x4a1acd),'children':_0x4e4b99['t'](_0x4b1386(0xdd))})]})]})]});return _0x5628d9(_0x19aa31,{'title':_0x4e4b99['t'](_0x4b1386(0x28f)),'onClose':_0x4eb1fa[_0x4b1386(0x2db)],'children':_0x4643bc});}function Ki(_0x48f8f7){const _0x193279=_0x5d48da;var _0x412db9,_0x4563dd,_0x3b0b11;let _0x39b5a3=_0x40463f(_0x1ecd96),[_0x24a857,_0x1185c4]=_0x4ebd7a(((_0x412db9=_0x48f8f7['field'])==null?void 0x0:_0x412db9[_0x193279(0x3bd)])??''),[_0x56c168,_0x49bc09]=_0x4ebd7a(((_0x4563dd=_0x48f8f7[_0x193279(0x22a)])==null?void 0x0:_0x4563dd['subtotal'])??_0x3bfa9b[_0x193279(0x381)]),[_0x26f337,_0x5dcd0a]=_0x4ebd7a(((_0x3b0b11=_0x48f8f7['field'])==null?void 0x0:_0x3b0b11[_0x193279(0x231)])??'');if(!_0x48f8f7[_0x193279(0x22a)])return null;let _0x523e24=_0x2fa798(_0x193279(0x111),{'className':_0x37e66c(_0x193279(0x23a),_0x3b0e1f),'children':[_0x5628d9(_0x193279(0x334),{'className':_0x193279(0x2d1),'children':_0x39b5a3['t']('bases-dashboard-ui.pivot.fieldSettings')}),_0x2fa798('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x39b5a3['t']('bases-dashboard-ui.pivot.displayName'),_0x5628d9(_0x5d579d,{'value':_0x24a857,'onChange':_0x1185c4})]}),_0x2fa798(_0x193279(0x249),{'className':_0x193279(0x10f),'children':[_0x39b5a3['t'](_0x193279(0x3ac)),_0x5628d9(Yr,{'value':String(_0x56c168),'options':zi['map'](_0x335844=>({'value':String(_0x335844[_0x193279(0x32d)]),'label':_0x39b5a3['t'](_0x335844[_0x193279(0x1f0)])})),'onChange':_0x3f8f8d=>{const _0x400e20=_0x193279;let _0x293d68=zi[_0x400e20(0x153)](_0x365454=>String(_0x365454[_0x400e20(0x32d)])===_0x3f8f8d);_0x293d68&&_0x49bc09(_0x293d68['value']);}})]}),_0x2fa798(_0x193279(0x249),{'className':_0x193279(0x10f),'children':[_0x39b5a3['t']('bases-dashboard-ui.pivot.numberFormat'),_0x5628d9(_0x5d579d,{'value':_0x26f337,'onChange':_0x5dcd0a})]}),_0x2fa798(_0x193279(0x334),{'className':_0x193279(0x15f),'children':[_0x5628d9(_0x101ca4,{'onClick':_0x48f8f7[_0x193279(0x2db)],'children':_0x39b5a3['t']('bases-dashboard-ui.pivot.cancel')}),_0x5628d9(_0x101ca4,{'variant':_0x193279(0x22d),'disabled':!_0x24a857['trim'](),'onClick':()=>_0x48f8f7[_0x193279(0x211)](_0x24a857[_0x193279(0x1b4)](),_0x56c168,_0x26f337),'children':_0x39b5a3['t'](_0x193279(0xdd))})]})]});return _0x5628d9(_0x19aa31,{'title':_0x39b5a3['t'](_0x193279(0x2e7)),'onClose':_0x48f8f7[_0x193279(0x2db)],'children':_0x523e24});}function qi(_0x40c212){const _0x29fc73=_0x5d48da;let {config:_0xf4db8a,commit:_0x52e448}=_0x40c212,_0x18f108=_0x40463f(_0x1ecd96),_0x5be5a7=_0xf4db8a[_0x29fc73(0x106)][_0x29fc73(0x2a1)],_0x1553c4=_0x129d92=>_0x52e448(_0x54156f=>_0x54156f['setOptions']({..._0x54156f[_0x29fc73(0x1f8)](),..._0x129d92}));return _0x2fa798(_0x29fc73(0x334),{'className':_0x29fc73(0x16c),'children':[_0x2fa798('label',{'className':_0x29fc73(0x238),'children':[_0x18f108['t'](_0x29fc73(0x2e4)),_0x5628d9(Yr,{'className':_0x29fc73(0x167),'value':String(_0xf4db8a[_0x29fc73(0x106)][_0x29fc73(0x3e1)]),'options':[{'value':String(_0xd936c5[_0x29fc73(0x116)]),'label':_0x18f108['t'](_0x29fc73(0x114))},{'value':String(_0xd936c5[_0x29fc73(0xbd)]),'label':_0x18f108['t'](_0x29fc73(0x1e1))},{'value':String(_0xd936c5[_0x29fc73(0x270)]),'label':_0x18f108['t'](_0x29fc73(0x2f7))}],'onChange':_0x3d106b=>{const _0x529e44=_0x29fc73;let _0x1126fc=[_0xd936c5[_0x529e44(0x116)],_0xd936c5[_0x529e44(0xbd)],_0xd936c5[_0x529e44(0x270)]][_0x529e44(0x153)](_0x2e310f=>String(_0x2e310f)===_0x3d106b);_0x1126fc!==void 0x0&&_0x52e448(_0x4b3206=>_0x4b3206[_0x529e44(0x1de)](_0x1126fc));}})]}),[{'key':_0x29fc73(0x162),'label':_0x29fc73(0x1a5),'defaultValue':!0x1},{'key':_0x29fc73(0x2cd),'label':'bases-dashboard-ui.pivot.repeatColumnLabels','defaultValue':!0x1},{'key':_0x29fc73(0x2f3),'label':_0x29fc73(0x1a3),'defaultValue':!0x0},{'key':_0x29fc73(0x189),'label':_0x29fc73(0xa1),'defaultValue':!0x0},{'key':_0x29fc73(0x2ef),'label':_0x29fc73(0x37c),'defaultValue':!0x0},{'key':_0x29fc73(0x241),'label':_0x29fc73(0x3af),'defaultValue':!0x0}][_0x29fc73(0x2ea)](_0x5c081d=>_0x2fa798(_0x29fc73(0x249),{'className':_0x29fc73(0x3c8),'children':[_0x5628d9(_0x57ed34,{'checked':!!(_0x5be5a7[_0x5c081d[_0x29fc73(0x2d0)]]??_0x5c081d[_0x29fc73(0x2b8)]),'disabled':_0x5c081d[_0x29fc73(0x2d0)]===_0x29fc73(0x162)&&_0xf4db8a[_0x29fc73(0x106)][_0x29fc73(0x3e1)]===_0xd936c5[_0x29fc73(0xbd)],'onChange':_0x529c68=>_0x1553c4({[_0x5c081d['key']]:!!_0x529c68})}),_0x18f108['t'](_0x5c081d[_0x29fc73(0x249)])]},_0x5c081d[_0x29fc73(0x2d0)])),_0xf4db8a[_0x29fc73(0x106)][_0x29fc73(0x3e1)]===_0xd936c5[_0x29fc73(0x270)]&&_0x2fa798(_0x29fc73(0x249),{'className':_0x29fc73(0x238),'children':[_0x18f108['t']('bases-dashboard-ui.pivot.rowSubtotalPosition'),_0x5628d9(Yr,{'className':_0x29fc73(0x167),'value':String(_0x5be5a7[_0x29fc73(0x318)]??_0x551070[_0x29fc73(0x171)]),'options':[{'value':String(_0x551070['top']),'label':_0x18f108['t'](_0x29fc73(0x132))},{'value':String(_0x551070[_0x29fc73(0xdc)]),'label':_0x18f108['t'](_0x29fc73(0x26b))}],'onChange':_0x3cbe42=>{const _0x516ed8=_0x29fc73;let _0x14eb6f=[_0x551070[_0x516ed8(0x171)],_0x551070[_0x516ed8(0xdc)]][_0x516ed8(0x153)](_0x28399e=>String(_0x28399e)===_0x3cbe42);_0x14eb6f!==void 0x0&&_0x1553c4({'rowSubtotalPosition':_0x14eb6f});}})]}),_0x2fa798('label',{'className':_0x29fc73(0x238),'children':[_0x18f108['t'](_0x29fc73(0x33d)),_0x5628d9(Yr,{'className':'univer-w-36','value':String(_0xf4db8a[_0x29fc73(0x106)][_0x29fc73(0x3ca)]===_0x3fa86b[_0x29fc73(0x2a6)]?_0x3fa86b[_0x29fc73(0x200)]:_0xf4db8a[_0x29fc73(0x106)][_0x29fc73(0x3ca)]),'options':[{'value':String(_0x3fa86b[_0x29fc73(0x200)]),'label':_0x18f108['t'](_0x29fc73(0x1a4))},{'value':String(_0x3fa86b[_0x29fc73(0x21e)]),'label':_0x18f108['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x56b158=>{const _0x19eea7=_0x29fc73;let _0x5c7096=[_0x3fa86b[_0x19eea7(0x200)],_0x3fa86b[_0x19eea7(0x21e)]][_0x19eea7(0x153)](_0x41016f=>String(_0x41016f)===_0x56b158);_0x5c7096!==void 0x0&&_0x52e448(_0x17eee7=>_0x17eee7[_0x19eea7(0x2b1)](_0x5c7096,_0x17eee7[_0x19eea7(0x2a0)]()<0x0?0x0:_0x17eee7['getValueIndex']()));}})]}),_0x2fa798(_0x29fc73(0x249),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x18f108['t'](_0x29fc73(0x331)),_0x5628d9(_0x57c888,{'className':_0x29fc73(0x280),'min':0x1,'max':0x14,'value':_0x5be5a7[_0x29fc73(0x3ae)]??0x1,'onChange':_0x51fe2d=>{const _0x7b3761=_0x29fc73;let _0x4f6b85=Number(_0x51fe2d);Number[_0x7b3761(0x206)](_0x4f6b85)&&_0x4f6b85>=0x1&&_0x1553c4({'pageWrap':_0x4f6b85});}})]}),_0x2fa798('label',{'className':_0x29fc73(0x238),'children':[_0x18f108['t']('bases-dashboard-ui.pivot.pageDirection'),_0x5628d9(Yr,{'className':'univer-w-36','value':String(_0x5be5a7[_0x29fc73(0x188)]??!0x1),'options':[{'value':_0x29fc73(0xf6),'label':_0x18f108['t'](_0x29fc73(0x18d))},{'value':_0x29fc73(0x1da),'label':_0x18f108['t'](_0x29fc73(0x3a3))}],'onChange':_0x35a480=>_0x1553c4({'pageOverThenDown':_0x35a480===_0x29fc73(0x1da)})})]})]});}function Ji(_0x5639ed,_0x48ad1c,_0x1893db,_0x12f90d){const _0x4b7e04=_0x5d48da;let _0x2f9733=_0x5639ed['getTableFieldsByDataFieldId'](_0x48ad1c)[_0x4b7e04(0x153)](_0x87129e=>_0x5639ed['getFieldPositionInfoById'](_0x87129e[_0x4b7e04(0x2ce)]())[_0x4b7e04(0x1c3)]!==_0x87fd74['Value']);_0x1893db!==_0x87fd74[_0x4b7e04(0x24b)]&&_0x2f9733?_0x5639ed[_0x4b7e04(0x150)](_0x2f9733[_0x4b7e04(0x2ce)](),_0x1893db,_0x12f90d):_0x5639ed['addFieldWithSourceId'](_0x48ad1c,_0x1893db,_0x12f90d);}function Yi(_0xa36ea6,_0x3397df,_0x167c44,_0x575678){const _0x30affe=_0x5d48da;return _0x3397df===_0xd2fae4['blank']?_0x575678:_0x3397df===_0xd2fae4[_0x30affe(0xc7)]&&_0x167c44?_0x52ec2b[_0x30affe(0x231)](_0x167c44,Number(_0xa36ea6)):_0xa36ea6;}function Xi(_0x54c280){const _0x5c2b15=_0x5d48da;return _0x54c280['type']===_0x3bfbe2['Number']||_0x54c280['type']===_0x3bfbe2[_0x5c2b15(0x2d5)]||_0x54c280[_0x5c2b15(0x278)]===_0x3bfbe2[_0x5c2b15(0x38a)]||_0x54c280[_0x5c2b15(0x278)]===_0x3bfbe2['Rating'];}function Zi(_0x109e0a){const _0x2bb8ee=_0x5d48da;switch(_0x109e0a){case _0x87fd74['Row']:return _0x2bb8ee(0x19a);case _0x87fd74['Column']:return _0x2bb8ee(0x284);case _0x87fd74[_0x2bb8ee(0x24b)]:return _0x2bb8ee(0x21d);default:return _0x2bb8ee(0xb9);}}function Qi({config:_0x576d40,onChange:_0x546351,runtime:_0x1f5cb0,table:_0x3c2e82}){const _0x135239=_0x5d48da;let _0x10d2d8=_0x40463f(_0x1ecd96),[_0x218a12,_0xeeb1ba]=_0x4ebd7a('chart');return _0x2fa798(_0x135239(0x3da),{'className':_0x135239(0x19d),'children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x10d2d8['t']('bases-dashboard-ui.pivot.name'),'className':_0x135239(0x217),'items':[{'label':_0x10d2d8['t'](_0x135239(0x172)),'panelId':_0x135239(0x2ed),'value':'chart'},{'label':_0x10d2d8['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'panelId':_0x135239(0x1c8),'value':_0x135239(0x106)}],'value':_0x218a12,'variant':'segmented','onChange':_0xeeb1ba}),_0x5628d9(_0x135239(0x334),{'className':_0x135239(0x213),'children':_0x218a12==='chart'?_0x1f5cb0&&_0x5628d9(ei,{'config':_0x576d40,'runtime':_0x1f5cb0,'tableName':_0x3c2e82[_0x135239(0x3d7)],'onChange':_0x546351}):_0x5628d9(Bi,{'config':_0x576d40,'table':_0x3c2e82,'onChange':_0x546351})})]});}function $i({tableId:_0x144859,unitId:_0x46c3a9,viewId:_0xc9b528}){const _0x3c8a07=_0x5d48da;let [_0x2ef899,_0x16a35b]=_0x4ebd7a(!0x1),_0x1057e0=_0x40463f(_0x1e6f93),_0x254c2d=_0x40463f(_0x4829da),_0x3954ff=_0x40463f(_0x53f9ce),_0x2543fa=_0x40463f(_0x1ecd96),_0x3473db=_0x40463f(_0x2cf236),[_0x507a85,_0x3885e4]=_0x4ebd7a(null),[_0x4587ba,_0x8d7023]=_0x4ebd7a(null),_0x5ac5cc=_0x25fc59(_0x3c8a07(0x118)+_0x2cedf9(0x8)),[_0x28439f,_0x5e2e3f]=_0x4ebd7a(!0x1),_0x2e3b1e=_0x254c2d['getUnit'](_0x46c3a9,_0x247fc0[_0x3c8a07(0x324)]),_0x245fe3=_0x2e3b1e==null?void 0x0:_0x2e3b1e[_0x3c8a07(0x3e8)]()['tables'][_0x144859],_0x864bb1=_0x245fe3==null?void 0x0:_0x245fe3['views'][_0xc9b528],_0xdc59b8=ea(_0x864bb1),_0x2a40da=yr(_0x46c3a9,_0x144859,_0xc9b528);if(_0x185176(()=>{const _0x2d07fc=_0x3c8a07;if(!_0xdc59b8)return;let _0xa6ac=_0x5ac5cc[_0x2d07fc(0xe8)];return _0x3473db[_0x2d07fc(0x1fe)](_0xa6ac,{'unitId':_0x46c3a9,'tableId':_0x144859,'viewId':_0xc9b528,'filters':[]}),()=>{const _0x112530=_0x2d07fc;_0x3473db[_0x112530(0x3e0)](_0x46c3a9,_0xa6ac);};},[_0xdc59b8,_0x3473db,_0x144859,_0x46c3a9,_0xc9b528]),_0x185176(()=>{const _0x6920a2=_0x3c8a07;if(!ea(_0x864bb1))return;let _0x37962d=!0x0,_0x509872={'unitId':_0x46c3a9,'tableId':_0x144859,'viewId':_0xc9b528,'filters':[_0x864bb1[_0x6920a2(0x122)]??null]};return _0x3473db['refreshChartRuntime'](_0x46c3a9,_0x5ac5cc['current'],_0x509872)[_0x6920a2(0xa4)](_0x2ea849=>{const _0x9e6712=_0x6920a2;_0x37962d&&_0x2ea849&&(_0x3885e4(_0x2ea849),_0x8d7023(_0x3473db[_0x9e6712(0x128)](_0x46c3a9,_0x5ac5cc[_0x9e6712(0xe8)])??null),_0x5e2e3f(!0x1));})[_0x6920a2(0x26d)](_0x28e46b=>{_0x3954ff['error']('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x28e46b),_0x37962d&&(_0x3885e4(null),_0x5e2e3f(!0x0));}),()=>{_0x37962d=!0x1;};},[_0x3954ff,_0x3473db,_0x144859,_0x46c3a9,_0x864bb1,_0xc9b528]),!_0x245fe3||!ea(_0x864bb1))return null;let _0xae5603=_0x3473db[_0x3c8a07(0x128)](_0x46c3a9,_0x5ac5cc[_0x3c8a07(0xe8)])===_0x4587ba?_0x4587ba:null,_0x4f1b5d=_0x507a85?_0x2fa798('div',{'className':_0x3c8a07(0x377),'style':{'gridTemplateRows':_0x864bb1['config'][_0x3c8a07(0x31a)]===_0x3c8a07(0x27c)?_0x3c8a07(0x1db):'minmax(0,\x201fr)'},'children':[_0x864bb1[_0x3c8a07(0xa7)]['displayMode']!==_0x3c8a07(0x2d3)&&_0xae5603&&_0x5628d9(_0x3c8a07(0x334),{'className':_0x3c8a07(0x3d5),'children':_0x5628d9(Rr,{'isRowDirection':_0x1aba1a(_0x864bb1['config'][_0x3c8a07(0x204)][_0x3c8a07(0x1e8)]),'runtime':_0xae5603})}),_0x864bb1[_0x3c8a07(0xa7)][_0x3c8a07(0x31a)]!==_0x3c8a07(0x204)&&_0x5628d9(_0x3c8a07(0x334),{'className':_0x3c8a07(0x24e),'children':_0x5628d9(ji,{'pivot':_0x864bb1[_0x3c8a07(0xa7)][_0x3c8a07(0x106)],'view':_0x507a85[_0x3c8a07(0x29c)]})})]}):_0x5628d9('div',{'className':_0x3c8a07(0x3aa),'children':_0x28439f?_0x2543fa['t'](_0x3c8a07(0x372)):_0x2543fa['t'](_0x3c8a07(0x2a9))}),_0x2ca392=_0x5628d9(Qi,{'config':_0x864bb1[_0x3c8a07(0xa7)],'runtime':_0xae5603,'table':_0x245fe3,'onChange':_0x4305c9=>{const _0x161e53=_0x3c8a07;_0x254c2d[_0x161e53(0x25c)](_0x46c3a9),_0x254c2d['focusUnit'](_0x46c3a9),_0x1057e0[_0x161e53(0x3e3)](_0x173771['id'],{'unitId':_0x46c3a9,'tableId':_0x144859,'viewId':_0xc9b528,'patch':_0x4305c9})[_0x161e53(0x26d)](_0x4266b7=>_0x3954ff['error']('[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.',_0x4266b7));}});return _0x5628d9(Jr,{'children':_0x2fa798('div',{'className':_0x3c8a07(0x237),'children':[_0x2a40da&&_0x5628d9(_0x101ca4,{'onClick':()=>_0x16a35b(!0x0),'children':_0x2543fa['t'](_0x3c8a07(0x172))}),_0x5628d9(_0x3c8a07(0x334),{'className':_0x3c8a07(0x17c),'children':_0x4f1b5d}),_0x2a40da&&_0x2ef899&&_0x5628d9(_0x19aa31,{'title':_0x2543fa['t'](_0x3c8a07(0x20c)),'onClose':()=>_0x16a35b(!0x1),'children':_0x2ca392})]})});}function ea(_0x4173cb){const _0x56ac88=_0x5d48da;return(_0x4173cb==null?void 0x0:_0x4173cb['type'])===_0xc74f11[_0x56ac88(0xe1)]&&typeof _0x4173cb[_0x56ac88(0xa7)]=='object'&&_0x4173cb[_0x56ac88(0xa7)]!==null&&_0x56ac88(0x106)in _0x4173cb[_0x56ac88(0xa7)]&&_0x56ac88(0x204)in _0x4173cb[_0x56ac88(0xa7)]&&_0x56ac88(0x31a)in _0x4173cb[_0x56ac88(0xa7)];}let ta=class extends _0x419e57{constructor(_0x151ca0,_0x2f087c,_0x256f4a,_0xbcd738,_0x3af1ec,_0x33a213){const _0x4113eb=_0x5d48da;super(),this['disposeWithMe'](_0x2f087c[_0x4113eb(0x343)]({'type':_0xc74f11[_0x4113eb(0xe1)],'renderMode':'dom','icon':_0x55ff4b,'component':$i,'menu':{get 'label'(){const _0x3250a1=_0x4113eb;return _0x33a213['t'](_0x3250a1(0x20c));},get 'description'(){const _0x581394=_0x4113eb;return _0x33a213['t'](_0x581394(0xd7));},get 'defaultName'(){return _0x33a213['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x4113eb(0x1dc)](_0x151ca0[_0x4113eb(0x343)](na(_0x256f4a,_0xbcd738,_0x3af1ec,_0x33a213)));}};ta=Ar([Y(0x0,_0x5b5009),Y(0x1,_0x414da1),Y(0x2,_0x2d5804(_0x3a16be)),Y(0x3,_0x1e6f93),Y(0x4,_0x100697),Y(0x5,_0x2d5804(_0x1ecd96))],ta);function na(_0x5a600f,_0x52267a,_0x3b10cb,_0x475b4d){const _0x47f867=_0x5d48da;return{'change$':_0x5f1bfe(_0x5a600f[_0x47f867(0x9a)],_0x3b10cb[_0x47f867(0x27a)]),'component':Si,get 'labels'(){const _0x33dbbb=_0x47f867;return{'add':_0x475b4d['t'](_0x33dbbb(0xfa)),'configure':_0x221f24=>_0x475b4d['t'](_0x33dbbb(0x364),_0x221f24),'delete':_0x475b4d['t'](_0x33dbbb(0xe7)),'new':_0x475b4d['t'](_0x33dbbb(0x234)),'rename':_0x475b4d['t'](_0x33dbbb(0x357)),'search':_0x475b4d['t'](_0x33dbbb(0x10a)),'section':_0x475b4d['t']('bases-dashboard-ui.dashboard.section')};},'getItems':_0x249e14=>{const _0x36ad9f=_0x47f867;let _0x4b8f16=_0x5a600f[_0x36ad9f(0xc1)](_0x249e14);return _0x4b8f16[_0x36ad9f(0xd4)][_0x36ad9f(0x1ac)](_0x3da7b6=>{const _0xde567b=_0x36ad9f;let _0x549c38=_0x4b8f16['dashboards'][_0x3da7b6];return _0x549c38?[{'id':_0x549c38['id'],'name':_0x549c38[_0xde567b(0x3d7)],'readonly':!_0x5706cb(_0x3b10cb,_0x249e14,_0x549c38['id'])}]:[];});},'create':async _0x4ada3e=>{const _0x143098=_0x47f867;let _0x5165a3=_0x5a600f['getResource'](_0x4ada3e),_0x3b8f29='dashboard-'+_0x2cedf9(0x8),_0x11e277=ra(_0x5165a3[_0x143098(0xd4)][_0x143098(0x1ac)](_0x53936c=>{const _0x397365=_0x143098;let _0x433a5d=_0x5165a3[_0x397365(0x3e5)][_0x53936c];return _0x433a5d?[_0x433a5d[_0x397365(0x3d7)]]:[];}),_0x230bc4=>_0x475b4d['t'](_0x143098(0xc0),String(_0x230bc4)));return await _0x52267a[_0x143098(0x3e3)](_0x4764c4['id'],{'unitId':_0x4ada3e,'dashboard':{'id':_0x3b8f29,'name':_0x11e277,'widgetOrder':[],'widgets':{}}})?_0x3b8f29:null;},'rename':async(_0x29e391,_0x35917d,_0x5b8bc5)=>{const _0x5c5c3b=_0x47f867;let _0x562017=_0x5a600f[_0x5c5c3b(0x18b)](_0x29e391,_0x35917d);return!!(_0x562017&&await _0x52267a[_0x5c5c3b(0x3e3)](_0x1e3e1b['id'],{'unitId':_0x29e391,'dashboard':{..._0x562017,'name':_0x5b8bc5}}));},'remove':(_0x4f009a,_0x58d9c1)=>_0x52267a[_0x47f867(0x3e3)](_0x391460['id'],{'unitId':_0x4f009a,'dashboardId':_0x58d9c1})};}function ra(_0x480d0c,_0x5c3d6b){const _0x561647=_0x5d48da;let _0x515285=new Set(_0x480d0c),_0x4b0c29=_0x515285['size']+0x1,_0x19a38c=_0x5c3d6b(_0x4b0c29);for(;_0x515285[_0x561647(0x9c)](_0x19a38c);)_0x4b0c29+=0x1,_0x19a38c=_0x5c3d6b(_0x4b0c29);return _0x19a38c;}let ia=class extends _0x1ea012{constructor(_0x32cb91=_r,_0x101420,_0x1a75e8){const _0x31f69e=_0x5d48da;super(),this['_config']=_0x32cb91,this[_0x31f69e(0xbf)]=_0x101420,this[_0x31f69e(0xc6)]=_0x1a75e8;let {..._0x4e586b}=_0x362ea8({},_r,this[_0x31f69e(0x1b1)]);this[_0x31f69e(0xc6)]['setConfig'](gr,_0x4e586b);}[_0x5d48da(0x3a1)](){const _0x44fef5=_0x5d48da;this[_0x44fef5(0xbf)][_0x44fef5(0x1bf)]([jr]),this[_0x44fef5(0xbf)][_0x44fef5(0x1bf)]([qr]),this[_0x44fef5(0xbf)]['add']([ta]);}[_0x5d48da(0x187)](){_0xe4152(this['_injector'],[[jr],[qr],[ta]]);}};Ir(ia,_0x5d48da(0x278),_0x247fc0['UNIVER_BASE']),Ir(ia,'pluginName','BASE_DASHBOARD_UI_PLUGIN'),Ir(ia,_0x5d48da(0x37d),mr),Ir(ia,_0x5d48da(0x1ae),hr),ia=Ar([_0xb94e7b(_0x5d1ed0,_0x7e7509,_0x36ac31,_0x38b402,_0xff803e,_0x175601),Y(0x1,_0x2d5804(_0x3c350b)),Y(0x2,_0x8e960e)],ia);function aa(_0x1bb3c1,_0x5a0653,_0x3b9c5c,_0x39f3fb){const _0xb64bd2=_0x5d48da;let _0x11398c={..._0x1bb3c1};if(_0x5a0653['includes']('w')){let _0x43924d=_0x1bb3c1[_0xb64bd2(0x33b)]+_0x1bb3c1[_0xb64bd2(0x229)];_0x11398c[_0xb64bd2(0x33b)]=Math[_0xb64bd2(0x16b)](0x0,Math[_0xb64bd2(0x2cf)](_0x43924d-0x1,_0x1bb3c1[_0xb64bd2(0x33b)]+_0x3b9c5c)),_0x11398c[_0xb64bd2(0x229)]=_0x43924d-_0x11398c['column'];}else _0x5a0653['includes']('e')&&(_0x11398c[_0xb64bd2(0x229)]=Math['max'](0x1,Math[_0xb64bd2(0x2cf)](_0x3587a5-_0x1bb3c1[_0xb64bd2(0x33b)],_0x1bb3c1[_0xb64bd2(0x229)]+_0x3b9c5c)));if(_0x5a0653[_0xb64bd2(0x292)]('n')){let _0x478c41=_0x1bb3c1['row']+_0x1bb3c1['rowSpan'];_0x11398c['row']=Math['max'](0x0,Math['min'](_0x478c41-0x1,_0x1bb3c1[_0xb64bd2(0x1f2)]+_0x39f3fb)),_0x11398c[_0xb64bd2(0x314)]=_0x478c41-_0x11398c['row'];}else _0x5a0653['includes']('s')&&(_0x11398c['rowSpan']=Math[_0xb64bd2(0x16b)](0x1,_0x1bb3c1[_0xb64bd2(0x314)]+_0x39f3fb));return _0x11398c;}function oa(_0x285327){const _0x2ddb5b=_0x5d48da;let _0x5d7dcc=Math[_0x2ddb5b(0x16b)](0x1,Math[_0x2ddb5b(0x2cf)](_0x3587a5,Math['round'](_0x285327[_0x2ddb5b(0x229)])));return{'column':Math['max'](0x0,Math[_0x2ddb5b(0x2cf)](_0x3587a5-_0x5d7dcc,Math[_0x2ddb5b(0x2de)](_0x285327[_0x2ddb5b(0x33b)]))),'row':Math['max'](0x0,Math[_0x2ddb5b(0x2de)](_0x285327['row'])),'columnSpan':_0x5d7dcc,'rowSpan':Math[_0x2ddb5b(0x16b)](0x1,Math[_0x2ddb5b(0x2de)](_0x285327['rowSpan']))};}function sa(_0x2d4ef6,_0x31b55a,_0x4ccdee){const _0x52823e=_0x5d48da;let _0x3ddd52=new Map(_0x2d4ef6),_0x2ca97d=oa(_0x4ccdee);_0x3ddd52[_0x52823e(0x166)](_0x31b55a,_0x2ca97d);let _0x5af7e1=[[_0x31b55a,_0x2ca97d]];for(let [_0x5a80e2,_0x12f5cf]of _0x3ddd52){if(_0x5a80e2===_0x31b55a)continue;let _0x158fc3=oa(_0x12f5cf);for(;_0x5af7e1['some'](([,_0x3b11df])=>la(_0x158fc3,_0x3b11df));)_0x158fc3={..._0x158fc3,'row':_0x158fc3['row']+0x1};for(;_0x158fc3[_0x52823e(0x1f2)]>0x0;){let _0x46a756={..._0x158fc3,'row':_0x158fc3['row']-0x1};if(_0x5af7e1[_0x52823e(0x353)](([,_0x441c98])=>la(_0x46a756,_0x441c98)))break;_0x158fc3=_0x46a756;}_0x5af7e1[_0x52823e(0x383)]([_0x5a80e2,_0x158fc3]),_0x3ddd52[_0x52823e(0x166)](_0x5a80e2,_0x158fc3);}return _0x3ddd52;}function ca(_0x535333,_0x15a7b8,_0x2bebed,_0x508a40=0x38,_0x552fe1=0x16){const _0x15e5e8=_0x5d48da;return _0x535333<_0x15a7b8+_0x508a40?-Math[_0x15e5e8(0x159)](_0x552fe1*(0x1-Math[_0x15e5e8(0x16b)](0x0,_0x535333-_0x15a7b8)/_0x508a40)):_0x535333>_0x2bebed-_0x508a40?Math[_0x15e5e8(0x159)](_0x552fe1*(0x1-Math[_0x15e5e8(0x16b)](0x0,_0x2bebed-_0x535333)/_0x508a40)):0x0;}function la(_0xca1eaf,_0x3ed001){const _0xc79a33=_0x5d48da;return _0xca1eaf['column']<_0x3ed001[_0xc79a33(0x33b)]+_0x3ed001[_0xc79a33(0x229)]&&_0xca1eaf['column']+_0xca1eaf['columnSpan']>_0x3ed001['column']&&_0xca1eaf[_0xc79a33(0x1f2)]<_0x3ed001[_0xc79a33(0x1f2)]+_0x3ed001[_0xc79a33(0x314)]&&_0xca1eaf[_0xc79a33(0x1f2)]+_0xca1eaf['rowSpan']>_0x3ed001[_0xc79a33(0x1f2)];}const ua=[{'direction':'nw','className':_0x5d48da(0x3ad)},{'direction':'n','className':_0x5d48da(0x31f)},{'direction':'ne','className':_0x5d48da(0x35c)},{'direction':'e','className':'-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize'},{'direction':'se','className':'univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize'},{'direction':'s','className':'-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize'},{'direction':'sw','className':_0x5d48da(0x39b)},{'direction':'w','className':_0x5d48da(0xc8)}];function da({dashboard:_0x5c0f76,dragLabel:_0x250fe7,editable:_0x4990d5=!0x0,onLayoutsCommit:_0x5501a8,onSelectWidget:_0x4d2892,renderWidget:_0x3f1b5d,renderWidgetActions:_0x3d0866,resizeLabel:_0x3adc56,selectedWidgetId:_0x4f8888,widgetLabel:_0x13250d}){const _0xcc61b2=_0x5d48da;let _0x3d5304=_0x25fc59(null),_0x41f80c=_0x25fc59(null),[_0x1e6763,_0x59aff2]=_0x4ebd7a(!0x1),_0x57744c=_0x5c672b(()=>new Map(_0x5c0f76[_0xcc61b2(0x3a0)][_0xcc61b2(0x1ac)](_0xe999e9=>{const _0x1e6431=_0xcc61b2;let _0x239c3e=_0x5c0f76[_0x1e6431(0x1f6)][_0xe999e9];return _0x239c3e?[[_0xe999e9,_0x239c3e[_0x1e6431(0x3e1)]]]:[];})),[_0x5c0f76]),[_0xb7528a,_0x26bfc3]=_0x4ebd7a(_0x57744c);_0x185176(()=>{const _0x21f503=_0xcc61b2;_0x41f80c[_0x21f503(0xe8)]||_0x26bfc3(_0x57744c);},[_0x57744c]),_0x185176(()=>{const _0x2b6e32=_0xcc61b2;if(!_0x1e6763)return;let _0x5d2011=_0x512805=>{const _0xe8cd84=_0x187c;let _0x59bade=_0x3d5304['current'];if(!_0x59bade)return null;let _0x4f4468=_0x59bade[_0xe8cd84(0x319)](),_0x202457=Math['max'](0x1,(_0x4f4468[_0xe8cd84(0x3ed)]-0x8*(_0x3587a5-0x1))/_0x3587a5),_0x3d6c00=Math[_0xe8cd84(0x2de)]((_0x59bade[_0xe8cd84(0x28a)]-_0x512805['startScrollTop'])/(_0x560757+0x8)),_0x5acfd6=Math['round']((_0x512805[_0xe8cd84(0x1ba)]-_0x512805[_0xe8cd84(0x3a8)])/(_0x202457+0x8)),_0x519928=Math['round']((_0x512805[_0xe8cd84(0x9f)]-_0x512805['startY'])/(_0x560757+0x8))+_0x3d6c00,_0x319fe1=_0x512805[_0xe8cd84(0x362)]==='move'?{..._0x512805[_0xe8cd84(0x2aa)],'column':_0x512805['initial'][_0xe8cd84(0x33b)]+_0x5acfd6,'row':_0x512805[_0xe8cd84(0x2aa)]['row']+_0x519928}:aa(_0x512805['initial'],_0x512805[_0xe8cd84(0x3e7)]??'se',_0x5acfd6,_0x519928),_0x360c86=sa(_0x512805['initialLayouts'],_0x512805['id'],_0x319fe1);return _0x26bfc3(_0x360c86),_0x360c86;},_0x5b62cc=_0x1c1951=>{const _0x5691e1=_0x187c;let _0x3e8d78=_0x41f80c[_0x5691e1(0xe8)];if(!_0x3e8d78)return;let _0x4f2a8c={..._0x3e8d78,'pointerX':_0x1c1951[_0x5691e1(0x288)],'pointerY':_0x1c1951[_0x5691e1(0x134)]};_0x41f80c[_0x5691e1(0xe8)]=_0x4f2a8c;},_0x22ac25=()=>{const _0xb7e3b8=_0x187c;let _0x5c24a9=_0x41f80c['current'],_0x397265=_0x5c24a9?_0x5d2011(_0x5c24a9):null;_0x41f80c[_0xb7e3b8(0xe8)]=null,_0x59aff2(!0x1),_0x397265&&_0x5501a8(_0x397265);},_0x169591=0x0,_0x3eb395=()=>{const _0x230d61=_0x187c;let _0x10e2f6=_0x3d5304[_0x230d61(0xe8)],_0x21ae9e=_0x41f80c[_0x230d61(0xe8)];if(_0x10e2f6&&_0x21ae9e){let _0x4b015f=_0x10e2f6[_0x230d61(0x319)](),_0x21154f=ca(_0x21ae9e[_0x230d61(0x9f)],_0x4b015f[_0x230d61(0x171)],_0x4b015f['bottom']);_0x21154f!==0x0&&(_0x10e2f6['scrollTop']+=_0x21154f),_0x5d2011(_0x21ae9e),_0x169591=requestAnimationFrame(_0x3eb395);}};return _0x169591=requestAnimationFrame(_0x3eb395),window['addEventListener'](_0x2b6e32(0xff),_0x5b62cc),window['addEventListener'](_0x2b6e32(0x3b3),_0x22ac25),()=>{const _0x28ed51=_0x2b6e32;cancelAnimationFrame(_0x169591),window[_0x28ed51(0x3df)](_0x28ed51(0xff),_0x5b62cc),window[_0x28ed51(0x3df)](_0x28ed51(0x3b3),_0x22ac25);};},[_0x1e6763,_0x5501a8]);let _0x752435=Math[_0xcc61b2(0x16b)](0x8,...Array[_0xcc61b2(0x191)](_0xb7528a[_0xcc61b2(0x370)]())['map'](_0x4cb712=>_0x4cb712[_0xcc61b2(0x1f2)]+_0x4cb712[_0xcc61b2(0x314)])),_0x569838=(_0x52e214,_0x59c5c4,_0x5cce43,_0x5ded77)=>{const _0x29c611=_0xcc61b2;_0x52e214[_0x29c611(0x394)](),_0x52e214[_0x29c611(0xf7)]();let _0x997e95=_0x3d5304[_0x29c611(0xe8)],_0x4337c1={'id':_0x59c5c4['id'],'mode':_0x5cce43,'pointerX':_0x52e214['clientX'],'pointerY':_0x52e214[_0x29c611(0x134)],'startX':_0x52e214[_0x29c611(0x288)],'startY':_0x52e214[_0x29c611(0x134)],'startScrollTop':(_0x997e95==null?void 0x0:_0x997e95[_0x29c611(0x28a)])??0x0,'initial':_0xb7528a[_0x29c611(0x185)](_0x59c5c4['id'])??_0x59c5c4[_0x29c611(0x3e1)],'initialLayouts':new Map(_0xb7528a),'resizeDirection':_0x5ded77};_0x41f80c[_0x29c611(0xe8)]=_0x4337c1,_0x59aff2(!0x0);};return _0x5628d9(_0xcc61b2(0x334),{'ref':_0x3d5304,'data-dashboard-scroll-container':!0x0,'className':_0x37e66c('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',_0xb0e9d1),'onClick':_0x4990d5?_0x4c53c9=>{const _0x3f296c=_0xcc61b2;if(!(_0x4c53c9[_0x3f296c(0x320)]instanceof Node)||!_0x4c53c9[_0x3f296c(0x3c6)][_0x3f296c(0x1d4)](_0x4c53c9[_0x3f296c(0x320)]))return;let _0x1124e5=_0x4c53c9[_0x3f296c(0x320)]instanceof Element?_0x4c53c9[_0x3f296c(0x320)]:_0x4c53c9[_0x3f296c(0x320)][_0x3f296c(0x3b0)];_0x1124e5!=null&&_0x1124e5['closest'](_0x3f296c(0x3a7))||_0x4d2892==null||_0x4d2892();}:void 0x0,'children':_0x5628d9(_0xcc61b2(0x334),{'data-dashboard-grid':!0x0,'className':_0xcc61b2(0x35d),'style':{'gap':0x8,'gridAutoRows':_0x560757,'minHeight':_0x752435*(_0x560757+0x8)},'children':_0x5c0f76[_0xcc61b2(0x3a0)][_0xcc61b2(0x2ea)](_0x165107=>{const _0x309e28=_0xcc61b2;var _0x3c2172;let _0x11c5c1=_0x5c0f76['widgets'][_0x165107],_0x593604=_0xb7528a[_0x309e28(0x185)](_0x165107);return!_0x11c5c1||!_0x593604?null:_0x2fa798(_0x309e28(0x335),{'data-dashboard-widget':_0x11c5c1['id'],'aria-label':_0x11c5c1[_0x309e28(0xbc)]??_0x13250d(_0x11c5c1),'className':_0x37e66c(_0x309e28(0x18e),_0x11c5c1[_0x309e28(0x278)]===_0x4dd1ab[_0x309e28(0x3c0)]||_0x11c5c1[_0x309e28(0x278)]===_0x4dd1ab[_0x309e28(0x2c2)]?_0x309e28(0x356):_0x309e28(0x2d2),_0x4990d5&&_0x4f8888===_0x11c5c1['id']?'univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500':_0x309e28(0x14c)),'style':{'gridColumn':_0x593604[_0x309e28(0x33b)]+0x1+_0x309e28(0x208)+_0x593604[_0x309e28(0x229)],'gridRow':_0x593604[_0x309e28(0x1f2)]+0x1+_0x309e28(0x208)+_0x593604[_0x309e28(0x314)]},'tabIndex':_0x4990d5?0x0:void 0x0,'onClick':_0x4990d5?()=>_0x4d2892==null?void 0x0:_0x4d2892(_0x11c5c1['id']):void 0x0,'onFocus':_0x4990d5?()=>_0x4d2892==null?void 0x0:_0x4d2892(_0x11c5c1['id']):void 0x0,'children':[_0x4990d5&&_0x5628d9(_0x309e28(0x11f),{'type':_0x309e28(0x11f),'aria-label':_0x250fe7,'data-dashboard-drag-handle':_0x11c5c1['id'],'className':_0x37e66c(_0x309e28(0x243),_0x1e6763&&((_0x3c2172=_0x41f80c[_0x309e28(0xe8)])==null?void 0x0:_0x3c2172['id'])===_0x11c5c1['id']&&_0x41f80c['current'][_0x309e28(0x362)]==='move'?_0x309e28(0x259):_0x309e28(0x3ee)),'onPointerDown':_0x5466fa=>_0x569838(_0x5466fa,_0x11c5c1,_0x309e28(0x25b)),'children':_0x5628d9(_0x1e67fc,{'className':_0x309e28(0x2e8),'aria-hidden':_0x309e28(0x1da)})}),_0x4990d5&&_0x5628d9('div',{'className':_0x309e28(0x143),'children':_0x3d0866==null?void 0x0:_0x3d0866(_0x11c5c1)}),_0x5628d9('div',{'className':_0x309e28(0x20a),'children':_0x3f1b5d(_0x11c5c1)}),_0x4990d5&&ua['map'](({className:_0x44a8db,direction:_0xba4d02})=>{const _0x275ad5=_0x309e28;let _0x553e07=_0xba4d02['length']===0x2;return _0x5628d9(_0x275ad5(0x11f),{'type':_0x275ad5(0x11f),'aria-label':_0x3adc56,'data-dashboard-resize-handle':_0xba4d02,'data-dashboard-resize-control':_0x553e07?_0xba4d02:void 0x0,'data-dashboard-resize-edge':_0x553e07?void 0x0:_0xba4d02,'className':_0x37e66c(_0x275ad5(0xef),_0x553e07?'univer-box-content\x20univer-size-1.5\x20univer-rounded-full\x20!univer-border-2\x20!univer-border-solid\x20!univer-border-white\x20!univer-bg-primary-600':'univer-border-0\x20univer-bg-transparent',_0x44a8db,_0x4f8888===_0x11c5c1['id']&&'univer-pointer-events-auto\x20univer-opacity-100'),'onPointerDown':_0x8bc6ac=>_0x569838(_0x8bc6ac,_0x11c5c1,'resize',_0xba4d02)},_0xba4d02);})]},_0x11c5c1['id']);})})});}var fa;const Q={'axis':{..._0x2b6728,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x5683c7,'heatmap':_0x165da0,'indicatorLine':_0x2adc54,'legend':_0x1267c7,'lineAndArea':_0x514143,'pareto':_0x1e2ae9,'pie':_0x2e45c9,'radar':_0x32285a,'relation':{..._0x270a4f,'useValueAsSymbolSize':!0x0},'series':{..._0x338c3f,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((fa=_0xa4c4f5[_0x5d48da(0x1fb)])==null?void 0x0:fa[_0x5d48da(0x164)])??!0x1}},'style':_0x2d6dc1,'titles':_0x5a35d2,'trendline':_0x59bb04,'waterfall':{..._0x3d8d6d,'useSubtotal':!0x0},'waterfallStyle':_0x5630e0,'wordCloud':_0x5624b3},pa=[_0x1cf6fa[_0x5d48da(0x1f9)],_0x1cf6fa[_0x5d48da(0x140)],_0x1cf6fa[_0x5d48da(0x21a)],_0x1cf6fa[_0x5d48da(0x34d)],_0x1cf6fa[_0x5d48da(0x30a)],_0x1cf6fa['Relation'],_0x1cf6fa['Sankey'],_0x1cf6fa[_0x5d48da(0x385)],_0x1cf6fa[_0x5d48da(0x3cd)],_0x1cf6fa['Candlestick'],_0x1cf6fa[_0x5d48da(0xb8)],_0x1cf6fa[_0x5d48da(0x28d)],_0x1cf6fa[_0x5d48da(0xf1)],_0x1cf6fa[_0x5d48da(0x186)],_0x1cf6fa['Chord']];function ma(_0x5e4261){const _0x20cf11=_0x5d48da;let {config:_0x140358,onChange:_0x586001,runtime:_0x14c80c,tableName:_0x3d27d4}=_0x5e4261,_0x27e997=_0x40463f(qr),_0x4a95bd=_0x40463f(_0x1ecd96),[_0x42b44f,_0x1076cf]=_0x4ebd7a(_0x389329[_0x20cf11(0xf0)]),_0x5736dc=_0x5c672b(()=>new _0x367b2a(_0x14c80c[_0x20cf11(0x1ad)],{'commit':_0x12a5ad=>{const _0x5c9b32=_0x20cf11;var _0x29e1ae;let _0x4c05ea=_0x14c80c[_0x5c9b32(0x1ad)],_0xad87a5=_0x5adbe1(_0x12a5ad,{'series':(_0x29e1ae=_0x4c05ea[_0x5c9b32(0xa7)])==null?void 0x0:_0x29e1ae['series'],'currentChartType':_0x4c05ea[_0x5c9b32(0x287)],'currentStyle':_0x4c05ea[_0x5c9b32(0x36b)],'currentContext':_0x4c05ea[_0x5c9b32(0x378)],'currentDataAggregation':_0x4c05ea[_0x5c9b32(0x2fa)]});_0x586001({'chart':ha(_0x140358[_0x5c9b32(0x204)],_0xad87a5)});}}),[_0x140358[_0x20cf11(0x204)],_0x586001,_0x14c80c]),_0x4487d4=_0x5c672b(()=>_0x2f5cf3(_0x8d6a08[_0x20cf11(0x2ea)](_0x52c25e=>({..._0x52c25e,'label':_0x4a95bd['t'](ya(_0x52c25e[_0x20cf11(0x2fb)]))}))),[_0x4a95bd]);return _0x5628d9(_0x4f5736,{'chartUIService':_0x27e997,'hostAdapter':_0x5736dc,'children':_0x2fa798(_0x20cf11(0x334),{'className':_0x20cf11(0x1e2),'children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x4a95bd['t'](_0x20cf11(0x142)),'className':_0x20cf11(0x3c9),'items':[{'label':_0x4a95bd['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0x20cf11(0x3b1),'value':_0x389329[_0x20cf11(0xf0)]},{'label':_0x4a95bd['t'](_0x20cf11(0x15b)),'panelId':_0x20cf11(0x271),'value':_0x389329['Style']}],'value':_0x42b44f,'onChange':_0x1076cf}),_0x42b44f===_0x389329[_0x20cf11(0xf0)]?_0x5628d9(_0x59879a,{'id':_0x20cf11(0x3b1),'label':_0x4a95bd['t'](_0x20cf11(0x360)),'children':_0x2fa798(_0x20cf11(0x334),{'className':_0x20cf11(0x36c),'children':[_0x5628d9(_0x3352ce,{'options':_0x4487d4}),_0x5628d9(_0x53d74e,{}),_0x5628d9(_0x3aee5e,{}),_0x5628d9(ga,{}),_0x5628d9(_0x1ed3a5,{}),_0x2fa798(_0x20cf11(0x334),{'children':[_0x5628d9(_0x30e809,{'title':_0x4a95bd['t'](_0x20cf11(0x22f))}),_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':_0x3d27d4})]}),_0x5628d9(_0x70f2bb,{'orientationControl':_0x5628d9(_0x101ca4,{'size':_0x20cf11(0x147),'onClick':()=>_0x586001({'chart':{..._0x140358[_0x20cf11(0x204)],'orient':_0x140358[_0x20cf11(0x204)]['orient']==='row'?'column':_0x20cf11(0x1f2)}}),'children':_0x4a95bd['t'](_0x20cf11(0x2b7))})}),_0x5628d9(_0x468257,{}),_0x5628d9(_0x153e3c,{'defaultValues':Q[_0x20cf11(0x3d6)]}),_0x2fa798(_0x20cf11(0x334),{'children':[_0x5628d9(_0x30e809,{'title':_0x4a95bd['t'](_0x20cf11(0xb1))}),_0x5628d9(_0x701e3d,{'value':_0x140358[_0x20cf11(0x31a)],'options':[{'value':_0x20cf11(0x27c),'label':_0x4a95bd['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':_0x20cf11(0x204),'label':_0x4a95bd['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':'table','label':_0x4a95bd['t'](_0x20cf11(0x1d9))}],'onChange':_0x8a85ae=>{const _0x417094=_0x20cf11;(_0x8a85ae===_0x417094(0x27c)||_0x8a85ae===_0x417094(0x204)||_0x8a85ae===_0x417094(0x2d3))&&_0x586001({'displayMode':_0x8a85ae});}})]})]})}):_0x5628d9(_0x59879a,{'id':_0x20cf11(0x271),'label':_0x4a95bd['t'](_0x20cf11(0x15b)),'children':_0x5628d9(_a,{})})]})});}function ha(_0x3fd9f5,_0x32c1ea){const _0x588675=_0x5d48da;return{..._0x3fd9f5,'type':_0x32c1ea[_0x588675(0x287)]??_0x3fd9f5['type'],'style':_0x32c1ea[_0x588675(0x36b)]??_0x3fd9f5['style'],'context':_0x32c1ea[_0x588675(0x378)]??_0x3fd9f5['context'],'dataAggregation':_0x32c1ea['dataAggregation']??_0x3fd9f5['dataAggregation']};}function ga(){const _0x6da6a0=_0x5d48da;let _0x1cf177=_0x10d8e4();return _0x5628d9(_0x1ca39a,{'visible':pa[_0x6da6a0(0x35b)](_0x2b3852=>!_0x242779[_0x6da6a0(0x263)](_0x1cf177,_0x2b3852))});}function $(_0x5ba49d){const _0x489fb2=_0x5d48da;return _0x2fa798(_0x53ec64,{'id':_0x5ba49d['id'],'children':[_0x5628d9(_0x51656d,{'children':_0x5ba49d[_0x489fb2(0x249)]}),_0x5628d9(_0x37b567,{'children':_0x5ba49d[_0x489fb2(0x29e)]})]});}function _a(){const _0x359dda=_0x5d48da;let _0x2ce9cb=_0x40463f(_0x1ecd96),_0x1f9f3e=_0x10d8e4(),_0x389383=_0xef83d1(),[_0x2bf06f,_0xd2cd4d]=_0x4ebd7a(null),_0xe9f49e=_0x242779[_0x359dda(0x263)](_0x1f9f3e,_0x1cf6fa[_0x359dda(0x282)]),_0xfd5037=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x140)],_0x1d95db=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x21a)],_0x29b8ae=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x30a)],_0xc231e1=_0x242779[_0x359dda(0x263)](_0x1f9f3e,_0x1cf6fa[_0x359dda(0x3d8)]),_0x50deef=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x28b)],_0x5bc611=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x33f)],_0x58cd42=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x218)],_0xbf275d=_0x1f9f3e===_0x1cf6fa[_0x359dda(0x385)],_0x31b0e4=_0x2ecac2(_0x1f9f3e,_0xc8129[_0x359dda(0x3de)])&&!_0xc231e1&&!_0x58cd42,_0x5a872e=va(_0x1f9f3e,_0x2ce9cb);return _0x2fa798(_0x151ab2,{'value':_0x2bf06f,'onChange':_0xd2cd4d,'children':[_0x5628d9($,{'id':_0x4baf7f['ChartStyle'],'label':_0x2ce9cb['t'](_0x359dda(0x354)),'children':_0x5628d9(_0xc54821,{'defaultValues':Q['style']})}),_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x1cd)],'label':_0x2ce9cb['t'](_0x359dda(0x24d)),'children':_0x5628d9(_0x517322,{'commitMode':'blur','defaultValues':Q[_0x359dda(0x161)]})}),_0x5628d9(_0x31fb16,{'section':'view'}),_0x31b0e4&&_0x5628d9($,{'id':_0x4baf7f['Series'],'label':_0x2ce9cb['t'](_0x359dda(0x112)),'children':_0x5628d9(_0x4f3338,{'defaultValues':Q['series'],'NumberFormatField':_0x3f2847})}),_0x5bc611&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x105)],'label':_0x2ce9cb['t']('bases-dashboard-ui.chart.section.waterfall'),'children':_0x5628d9(_0x122082,{'defaultValues':Q['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x394955,target:_0x1dfed8})=>_0x1dfed8===_0x148de0[_0x359dda(0x1fa)]?_0x2ce9cb['t'](_0x359dda(0x1df)):_0x394955?_0x394955+'-('+_0x2ce9cb['t']('bases-dashboard-ui.chart.'+(_0x1dfed8===_0x148de0['Positive']?_0x359dda(0x222):_0x359dda(0x34c)))+')':'','NumberFormatField':_0x3f2847})}),_0x58cd42&&_0x2fa798(_0x5554ea,{'children':[_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x380)],'label':_0x2ce9cb['t'](_0x359dda(0xd8)),'children':_0x5628d9(_0x117afe,{'defaultValues':Q[_0x359dda(0x2cc)],'NumberFormatField':_0x3f2847,'showDataPointEditor':!0x0,'target':'barStyle'})}),_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x21f)],'label':_0x2ce9cb['t'](_0x359dda(0x2d7)),'children':_0x5628d9(_0x117afe,{'defaultValues':Q[_0x359dda(0x2cc)],'NumberFormatField':_0x3f2847,'showDataPointEditor':!0x1,'target':_0x359dda(0x246)})})]}),_0xe9f49e&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x1b8)],'label':_0x2ce9cb['t']('bases-dashboard-ui.chart.section.pie'),'children':_0x5628d9(_0x32a1e9,{'defaultValues':Q['pie'],'NumberFormatField':_0x3f2847})}),_0x1d95db&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x21a)],'label':_0x2ce9cb['t'](_0x359dda(0x25e)),'children':_0x5628d9(_0x51f587,{'defaultValues':Q[_0x359dda(0x286)]})}),_0xfd5037&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x140)],'label':_0x2ce9cb['t'](_0x359dda(0x35a)),'children':_0x5628d9(_0x1423a1,{'defaultValues':Q[_0x359dda(0x294)]})}),_0x29b8ae&&_0x5628d9($,{'id':_0x4baf7f['Funnel'],'label':_0x2ce9cb['t'](_0x359dda(0x3bb)),'children':_0x5628d9(_0x5591da,{'defaultValues':Q[_0x359dda(0xfe)],'gapControl':'select'})}),_0xbf275d&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x385)],'label':_0x2ce9cb['t'](_0x359dda(0xda)),'children':_0x5628d9(_0x1aca4d,{'defaultValues':Q[_0x359dda(0x337)]})}),_0x50deef&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x28b)],'label':_0x2ce9cb['t'](_0x359dda(0x1c4)),'children':_0x5628d9(_0x4117cf,{'defaultValues':Q[_0x359dda(0x2bb)]})}),_0x1dac15(_0x1f9f3e)&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0xf3)],'label':_0x2ce9cb['t'](_0x242779[_0x359dda(0x263)](_0x1f9f3e,_0x1cf6fa[_0x359dda(0x332)])?'bases-dashboard-ui.chart.chartTypes.area':'bases-dashboard-ui.chart.chartTypes.line'),'children':_0x5628d9(_0x2a4c4d,{'defaultValues':Q[_0x359dda(0x366)],'lineStyleControl':_0x359dda(0x1d2)})}),_0x2ecac2(_0x1f9f3e,_0xc8129[_0x359dda(0x2a2)])&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x2a2)],'label':_0x2ce9cb['t'](_0x359dda(0x183)),'children':_0x5628d9(_0x2205cf,{'defaultValues':Q[_0x359dda(0xdb)]})}),_0x2ecac2(_0x1f9f3e,_0xc8129[_0x359dda(0x31e)])&&_0x2fa798(_0x5554ea,{'children':[_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x266)],'label':_0x2ce9cb['t']('bases-dashboard-ui.chart.common.horizontalAxis'),'children':_0x5628d9(_0x51c0bf,{'axis':'x','defaultValues':Q[_0x359dda(0x399)],'NumberFormatField':_0x3f2847})}),_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x9e)],'label':_0x2ce9cb['t'](_0x359dda(0x32b)),'children':_0x5628d9(_0x51c0bf,{'axis':'y','defaultValues':Q['axis'],'NumberFormatField':_0x3f2847})}),_0x5628d9(_0x31fb16,{'section':_0x359dda(0x2c7)}),_0x389383&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x375)],'label':_0x2ce9cb['t'](_0x359dda(0x144)),'children':_0x5628d9(_0x51c0bf,{'axis':_0x359dda(0xe6),'defaultValues':Q[_0x359dda(0x399)],'NumberFormatField':_0x3f2847})}),_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x210)],'label':_0x2ce9cb['t']('bases-dashboard-ui.chart.section.gridlinesAndTicks'),'children':_0x5628d9(_0x58fc11,{'defaultValues':Q['axis']})})]}),_0x2ecac2(_0x1f9f3e,_0xc8129['IndicatorLine'])&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x306)],'label':_0x2ce9cb['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x5628d9(_0x54d111,{'defaultValues':Q[_0x359dda(0x20f)]})}),_0x3f9965(_0x1f9f3e)&&_0x5628d9($,{'id':_0x4baf7f[_0x359dda(0x36f)],'label':_0x2ce9cb['t'](_0x359dda(0x388)),'children':_0x5628d9(_0x311435,{'defaultValues':Q['trendline']})}),_0x5a872e&&_0x5628d9($,{'id':_0x5a872e['id'],'label':_0x5a872e[_0x359dda(0x249)],'children':_0x5628d9(_0x3f116c,{})})]});}function va(_0x2f476e,_0x2d7374){const _0x727a13=_0x5d48da;let _0x491a48={[_0x1cf6fa[_0x727a13(0x395)]]:{'id':_0x4baf7f[_0x727a13(0x395)],'localeKey':'bases-dashboard-ui.chart.section.candlestick'},[_0x1cf6fa[_0x727a13(0xb8)]]:{'id':_0x4baf7f[_0x727a13(0xb8)],'localeKey':'bases-dashboard-ui.chart.section.histogram'},[_0x1cf6fa[_0x727a13(0x28d)]]:{'id':_0x4baf7f[_0x727a13(0x28d)],'localeKey':_0x727a13(0x361)},[_0x1cf6fa[_0x727a13(0xf1)]]:{'id':_0x4baf7f[_0x727a13(0xf1)],'localeKey':'bases-dashboard-ui.chart.section.sunburst'},[_0x1cf6fa[_0x727a13(0x186)]]:{'id':_0x4baf7f[_0x727a13(0x186)],'localeKey':_0x727a13(0x12b)},[_0x1cf6fa[_0x727a13(0xe5)]]:{'id':_0x4baf7f[_0x727a13(0xe5)],'localeKey':'bases-dashboard-ui.chart.section.chord'}}[_0x2f476e];return _0x491a48?{'id':_0x491a48['id'],'label':_0x2d7374['t'](_0x491a48[_0x727a13(0x1f0)])}:null;}function ya(_0x214f9e){const _0x57bcd0=_0x5d48da;return _0x57bcd0(0x36a)+_0x214f9e;}function ba({onChange:_0x5f1f9b,onEditData:_0x3872d4,runtime:_0x11416c,sourceChart:_0x58c79a,sourceName:_0x5f26be,widget:_0x1da6ed}){const _0x49f9f=_0x5d48da;let _0x2fa628=_0x40463f(qr),_0x57c118=_0x40463f(_0x1ecd96),[_0x5825e1,_0x1b34a3]=_0x4ebd7a(_0x389329['Data']),_0x43412c=_0x1da6ed['chart']??_0x58c79a,_0x2cf70e=_0x5c672b(()=>new _0x367b2a(_0x11416c[_0x49f9f(0x1ad)],{'commit':_0x41c6cd=>{const _0x32486a=_0x49f9f;var _0x415b42;let _0x2d1249=_0x11416c[_0x32486a(0x1ad)],_0x49392c=_0x5adbe1(_0x41c6cd,{'series':(_0x415b42=_0x2d1249[_0x32486a(0xa7)])==null?void 0x0:_0x415b42[_0x32486a(0x32f)],'currentChartType':_0x2d1249[_0x32486a(0x287)],'currentStyle':_0x2d1249[_0x32486a(0x36b)],'currentContext':_0x2d1249[_0x32486a(0x378)],'currentDataAggregation':_0x2d1249[_0x32486a(0x2fa)]});_0x5f1f9b({..._0x1da6ed,'chart':ha(_0x43412c,_0x49392c)})[_0x32486a(0x26d)](()=>void 0x0);}}),[_0x43412c,_0x5f1f9b,_0x11416c,_0x1da6ed]),_0x25ed3f=_0x5c672b(()=>_0x2f5cf3(_0x8d6a08[_0x49f9f(0x2ea)](_0x468342=>({..._0x468342,'label':_0x57c118['t'](xa(_0x468342[_0x49f9f(0x2fb)]))}))),[_0x57c118]);return _0x5628d9(_0x4f5736,{'chartUIService':_0x2fa628,'hostAdapter':_0x2cf70e,'children':_0x2fa798(_0x49f9f(0x334),{'data-dashboard-chart-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x57c118['t'](_0x49f9f(0x142)),'className':_0x49f9f(0x3c9),'items':[{'label':_0x57c118['t']('bases-dashboard-ui.chart.common.setup'),'panelId':'dashboard-chart-setup','value':_0x389329[_0x49f9f(0xf0)]},{'label':_0x57c118['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x49f9f(0x358),'value':_0x389329[_0x49f9f(0x2c8)]}],'value':_0x5825e1,'onChange':_0x1b34a3}),_0x5825e1===_0x389329[_0x49f9f(0xf0)]?_0x5628d9(_0x59879a,{'id':_0x49f9f(0x22c),'label':_0x57c118['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x2fa798('div',{'className':_0x49f9f(0x36c),'children':[_0x5628d9(_0x3352ce,{'options':_0x25ed3f}),_0x5628d9(_0x53d74e,{}),_0x5628d9(_0x3aee5e,{}),_0x5628d9(ga,{}),_0x5628d9(_0x1ed3a5,{}),_0x2fa798(_0x49f9f(0x334),{'children':[_0x5628d9(_0x30e809,{'title':_0x57c118['t'](_0x49f9f(0xab))}),_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':_0x5f26be}),_0x5628d9(_0x101ca4,{'className':'univer-mt-2\x20univer-w-full','onClick':_0x3872d4,'children':_0x57c118['t'](_0x49f9f(0x1ff))})]})]})}):_0x5628d9(_0x59879a,{'id':_0x49f9f(0x358),'label':_0x57c118['t'](_0x49f9f(0x15b)),'children':_0x5628d9(_a,{})})]})});}function xa(_0x5e56b6){const _0x11cb06=_0x5d48da;return _0x11cb06(0x36a)+_0x5e56b6;}const Sa=[_0x5d48da(0x308),_0x5d48da(0x31b),_0x5d48da(0x228),'currency',_0x5d48da(0xa5),_0x5d48da(0xbd)];function Ca({base:_0x183954,onChange:_0x4c6cc4,onSelectBackgroundImage:_0x1f92a0,widget:_0x4ec832}){const _0x119591=_0x5d48da;var _0x371262;let _0x3dfa37=_0x40463f(_0x1ecd96),_0x15eddc=_0x40463f(_0x56b689),_0x213c18=_0x5056f6(()=>_0x15eddc[_0x119591(0x137)],_0x15eddc['getCurrentTheme'](),!0x1,[_0x15eddc]),_0x44ea35=_0x5056f6(()=>_0x15eddc[_0x119591(0x227)],_0x15eddc[_0x119591(0x355)],!0x1,[_0x15eddc]),[_0x343dbe,_0x31d178]=_0x4ebd7a(_0x119591(0x373)),[_0x37d69e,_0x389c4b]=_0x4ebd7a(!0x1),_0x4043d0=Cr(_0x4ec832),_0x37c41f=_0x183954[_0x119591(0x3e8)]()['tables'][_0x4ec832[_0x119591(0x9d)]],_0xb78604=_0x37c41f==null?void 0x0:_0x37c41f['viewOrder'][_0x119591(0x153)](_0x1194e4=>_0x37c41f['views'][_0x1194e4]),_0x2b6add=_0xb78604?_0x37c41f==null?void 0x0:_0x37c41f[_0x119591(0x2eb)][_0xb78604]:void 0x0,_0x197da3=_0x37c41f&&_0x2b6add?_0x372e38(_0x183954[_0x119591(0x3e8)](),_0x37c41f,_0x2b6add)[_0x119591(0x2ea)](_0x1a6aa7=>({..._0x1a6aa7,'current':!0x1})):[],_0x2e4649=((_0x371262=_0x4ec832[_0x119591(0x27e)][_0x119591(0x3cb)])==null?void 0x0:_0x371262[_0x119591(0x2ad)])??'',_0x32e02f=_0x172edf=>_0x4c6cc4(wr(_0x4ec832,_0x172edf))[_0x119591(0x26d)](()=>void 0x0),_0x52f79a=_0x420a8d=>_0x4c6cc4({..._0x4ec832,'description':_0x420a8d})['catch'](()=>void 0x0);return _0x2fa798('div',{'data-dashboard-formula-inspector':!0x0,'className':_0x119591(0x34b),'children':[_0x5628d9(_0x18f25a,{'className':_0x119591(0x313),'items':[{'value':'data','label':_0x3dfa37['t'](_0x119591(0x203))},{'value':_0x119591(0x36b),'label':_0x3dfa37['t'](_0x119591(0x369))}],'value':_0x343dbe,'onChange':_0x31d178}),_0x5628d9(_0x119591(0x334),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0x343dbe===_0x119591(0x373)?_0x2fa798(_0x119591(0x334),{'className':'univer-grid\x20univer-gap-4','children':[_0x5628d9(wa,{'label':_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.description'),'children':_0x5628d9(_0x5d579d,{'value':_0x4ec832[_0x119591(0x16e)]??_0x4ec832[_0x119591(0xbc)]??'','onChange':_0x52f79a,'onBlur':_0x2c5a66=>_0x52f79a(_0x2c5a66[_0x119591(0x320)]['value'])})}),_0x5628d9(wa,{'label':_0x3dfa37['t'](_0x119591(0xab)),'children':_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':(_0x37c41f==null?void 0x0:_0x37c41f[_0x119591(0x3d7)])??_0x3dfa37['t'](_0x119591(0x1bb))})}),_0x2fa798(wa,{'label':_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.formula'),'children':[_0x5628d9(_0x5d579d,{'disabled':!0x0,'value':_0x196177(_0x2e4649,_0x197da3)}),_0x5628d9(_0x101ca4,{'className':_0x119591(0xd1),'onClick':()=>_0x389c4b(!0x0),'children':_0x3dfa37['t'](_0x119591(0x333))})]})]}):_0x2fa798(_0x119591(0x334),{'className':'univer-grid\x20univer-gap-4','children':[_0x5628d9(_0x209a9d,{'emptyLabel':_0x3dfa37['t'](_0x119591(0x3b9)),'label':_0x3dfa37['t'](_0x119591(0x3b9)),'pickerFallbackValue':_0x44ea35?_0x213c18[_0x119591(0x14a)][0x384]:_0x213c18['gray'][0x0],'resetLabel':_0x3dfa37['t'](_0x119591(0x23f)),'value':_0x4043d0[_0x119591(0x2e5)]??null,'onChange':_0x2d9490=>_0x32e02f({'backgroundColor':_0x2d9490??void 0x0})}),_0x2fa798(wa,{'label':_0x3dfa37['t'](_0x119591(0x38d)),'children':[_0x2fa798(_0x119591(0x334),{'className':_0x119591(0x316),'children':[_0x2fa798(_0x101ca4,{'className':_0x119591(0x3c7),'onClick':()=>{const _0x314567=_0x119591;_0x1f92a0()['then'](_0x47446f=>{const _0x499a90=_0x187c;if(_0x47446f){var _0x29a41b;return _0x32e02f({'backgroundImage':{..._0x47446f,'fit':((_0x29a41b=_0x4043d0['backgroundImage'])==null?void 0x0:_0x29a41b[_0x499a90(0x1f3)])??_0x499a90(0x15c)}});}})[_0x314567(0x26d)](()=>void 0x0);},'children':[_0x5628d9(_0x4f1759,{}),_0x4043d0['backgroundImage']?_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.replaceImage'):_0x3dfa37['t'](_0x119591(0x158))]}),_0x4043d0[_0x119591(0x33c)]&&_0x5628d9(_0x101ca4,{'aria-label':_0x3dfa37['t'](_0x119591(0xe4)),'title':_0x3dfa37['t'](_0x119591(0xe4)),'onClick':()=>_0x32e02f({'backgroundImage':void 0x0}),'children':_0x5628d9(_0x275aa7,{})})]}),_0x4043d0['backgroundImage']&&_0x5628d9(_0x18f25a,{'className':_0x119591(0xd9),'items':[{'value':_0x119591(0x15c),'label':_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x119591(0x2f4),'label':_0x3dfa37['t'](_0x119591(0x1cc))}],'value':_0x4043d0[_0x119591(0x33c)][_0x119591(0x1f3)],'onChange':_0x4e52bc=>_0x32e02f({'backgroundImage':_0x4043d0[_0x119591(0x33c)]?{..._0x4043d0[_0x119591(0x33c)],'fit':_0x4e52bc}:void 0x0})})]}),_0x5628d9(_0x209a9d,{'emptyLabel':_0x3dfa37['t'](_0x119591(0x37a)),'label':_0x3dfa37['t'](_0x119591(0x37a)),'pickerFallbackValue':_0x44ea35?_0x213c18[_0x119591(0x14a)][0x32]:_0x213c18[_0x119591(0x14a)][0x3e8],'resetLabel':_0x3dfa37['t'](_0x119591(0x23f)),'value':_0x4043d0[_0x119591(0x13d)]??null,'onChange':_0x62dff2=>_0x32e02f({'textColor':_0x62dff2??void 0x0})}),_0x5628d9(wa,{'label':_0x3dfa37['t'](_0x119591(0x281)),'children':_0x5628d9(_0x18f25a,{'items':[{'value':_0x119591(0x269),'label':_0x3dfa37['t'](_0x119591(0xb0))},{'value':_0x119591(0x38c),'label':_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0x119591(0x39f),'label':_0x3dfa37['t'](_0x119591(0x363))}],'value':_0x4043d0['alignment'],'onChange':_0x40a36f=>_0x32e02f({'alignment':_0x40a36f})})}),_0x2fa798(wa,{'label':_0x3dfa37['t'](_0x119591(0x102)),'children':[_0x5628d9(_0x18f25a,{'items':[{'value':_0x119591(0x1eb),'label':_0x3dfa37['t'](_0x119591(0xcc))},{'value':'custom','label':_0x3dfa37['t'](_0x119591(0x133))}],'value':_0x4043d0['fontSizeMode'],'onChange':_0x16e9c6=>_0x32e02f({'fontSizeMode':_0x16e9c6})}),_0x4043d0[_0x119591(0x27d)]===_0x119591(0x2ec)&&_0x5628d9(_0x57c888,{'className':_0x119591(0xd9),'min':0xc,'max':0x78,'value':_0x4043d0[_0x119591(0x268)],'onChange':_0xeb395d=>_0x32e02f({'fontSize':_0xeb395d??0x28,'fontSizeMode':'custom'})})]}),_0x5628d9(wa,{'label':_0x3dfa37['t'](_0x119591(0x3c3)),'children':_0x5628d9(_0x701e3d,{'value':_0x4043d0[_0x119591(0x371)],'options':[{'value':_0x119591(0x308),'label':_0x3dfa37['t'](_0x119591(0x1be))},{'value':_0x119591(0x31b),'label':_0x3dfa37['t'](_0x119591(0x3c5))},{'value':_0x119591(0x228),'label':_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.percent')},{'value':_0x119591(0x1b3),'label':_0x3dfa37['t'](_0x119591(0x325))},{'value':'grouped','label':_0x3dfa37['t'](_0x119591(0x175))},{'value':_0x119591(0xbd),'label':_0x3dfa37['t'](_0x119591(0x10e))}],'onChange':_0x380797=>{const _0x53bd3a=_0x119591;let _0x4bb652=Sa[_0x53bd3a(0x153)](_0x199a92=>_0x199a92===_0x380797);_0x4bb652&&_0x32e02f({'numberFormat':_0x4bb652});}})}),_0x4043d0[_0x119591(0x371)]===_0x119591(0x1b3)&&_0x5628d9(wa,{'label':_0x3dfa37['t'](_0x119591(0x130)),'children':_0x5628d9(_0x5d579d,{'value':_0x4043d0[_0x119591(0x1b3)],'onChange':_0x4f6a5d=>_0x32e02f({'currency':_0x4f6a5d[_0x119591(0x165)](0x0,0x3)[_0x119591(0x26a)]()})})}),_0x4043d0[_0x119591(0x371)]!==_0x119591(0x308)&&_0x5628d9(wa,{'label':_0x3dfa37['t']('bases-dashboard-ui.dashboardInspector.decimalPlaces'),'children':_0x5628d9(_0x57c888,{'min':0x0,'max':0x8,'value':_0x4043d0[_0x119591(0xc9)],'onChange':_0x58d4f5=>_0x32e02f({'decimalPlaces':_0x58d4f5??0x0})})})]})}),_0x37d69e&&_0x5628d9(_0x4ce712,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x5628d9(_0x6c795b,{'tables':_0x197da3,'formula':_0x196177(_0x2e4649,_0x197da3),'onCancel':()=>_0x389c4b(!0x1),'onSave':_0x3d8e8e=>{const _0x641d26=_0x119591;let _0x4d61eb=_0x4ec832[_0x641d26(0x27e)][_0x641d26(0x3cb)]??{'formula':''};return _0x4c6cc4({..._0x4ec832,'shapeData':{..._0x4ec832[_0x641d26(0x27e)],'formulaBinding':{..._0x4d61eb,'formula':_0x43ca80(_0x3d8e8e,_0x197da3)}}})[_0x641d26(0xa4)](()=>_0x389c4b(!0x1))[_0x641d26(0x26d)](()=>void 0x0);}})})]});}function wa({children:_0x46214d,label:_0x5bc1e6}){const _0x2129c8=_0x5d48da;return _0x2fa798('div',{'role':_0x2129c8(0x350),'aria-label':_0x5bc1e6,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x5628d9(_0x2129c8(0x339),{'children':_0x5bc1e6}),_0x46214d]});}const Ta={[_0x462609['IS']]:_0x5d48da(0x124),[_0x462609[_0x5d48da(0x29a)]]:_0x5d48da(0x192),[_0x462609[_0x5d48da(0xa6)]]:_0x5d48da(0x3e6),[_0x462609['NOT_CONTAINS']]:_0x5d48da(0x1e3),[_0x462609['IS_EMPTY']]:_0x5d48da(0x3cc),[_0x462609[_0x5d48da(0x168)]]:_0x5d48da(0xc5),[_0x462609['GREATER_THAN']]:_0x5d48da(0x376),[_0x462609[_0x5d48da(0x3a9)]]:'bases-dashboard-ui.operators.greaterThanOrEqual',[_0x462609[_0x5d48da(0x2d4)]]:_0x5d48da(0x1c6),[_0x462609[_0x5d48da(0x352)]]:_0x5d48da(0x2be),[_0x462609[_0x5d48da(0x3dd)]]:_0x5d48da(0x28e),[_0x462609[_0x5d48da(0x351)]]:_0x5d48da(0x190)};function Ea({disabled:_0x5d937b,fields:_0x1d3bc3,filter:_0x330a62,onChange:_0x57b3d2}){const _0x4f5d6d=_0x5d48da;let _0x43665b=_0x40463f(_0x1ecd96),_0xd00d48=(_0x330a62==null?void 0x0:_0x330a62['conditions'])??[];return _0xd00d48[_0x4f5d6d(0x193)]?_0x5628d9('div',{'className':_0x4f5d6d(0x1ec),'children':_0xd00d48[_0x4f5d6d(0x2ea)]((_0x4b9b89,_0x2ea1cb)=>{const _0x1a9055=_0x4f5d6d;let _0x3e212a=_0x1d3bc3[_0x1a9055(0x153)](_0x1b0360=>_0x1b0360['id']===_0x4b9b89[_0x1a9055(0x221)]);return _0x2fa798(_0x1a9055(0x334),{'className':_0x1a9055(0x2ae),'children':[_0x2fa798(_0x1a9055(0x334),{'className':_0x1a9055(0xad),'children':[_0x5628d9(_0x1a9055(0x339),{'className':_0x1a9055(0x3b6),'children':(_0x3e212a==null?void 0x0:_0x3e212a[_0x1a9055(0x3d7)])??_0x4b9b89['fieldId']}),_0x5628d9(_0x1a9055(0x339),{'className':_0x1a9055(0x181),'children':_0x43665b['t'](Ta[_0x4b9b89[_0x1a9055(0x230)]])})]}),Pa(_0x4b9b89[_0x1a9055(0x230)])&&_0x5628d9(Oa,{'disabled':_0x5d937b,'field':_0x3e212a,'value':_0x4b9b89[_0x1a9055(0x2d6)],'onChange':_0xf99018=>_0x57b3d2(ja(_0x330a62,_0x2ea1cb,{'operand':_0xf99018}))})]},La(_0xd00d48,_0x4b9b89,_0x2ea1cb));})}):_0x2fa798(_0x4f5d6d(0x334),{'className':_0x4f5d6d(0x2b4),'children':[_0x5628d9(_0x266672,{'className':_0x4f5d6d(0x34e)}),_0x5628d9(_0x4f5d6d(0x339),{'className':'univer-text-sm','children':_0x43665b['t']('bases-dashboard-ui.dashboard.tableFilter')})]});}function Da({fields:_0x3142fc,filter:_0x2f2ab0,onChange:_0x35b9d6,onClear:_0x4478a2}){const _0x19f4c1=_0x5d48da;let _0xcb8f59=_0x40463f(_0x1ecd96),_0x78b6cc=(_0x2f2ab0==null?void 0x0:_0x2f2ab0[_0x19f4c1(0x32c)])??[];return _0x2fa798(_0x19f4c1(0x334),{'data-dashboard-filter-inspector':!0x0,'className':_0x19f4c1(0xbb),'children':[_0x78b6cc['map']((_0x58f70f,_0x595404)=>{const _0x2d7008=_0x19f4c1;let _0x4f38d0=_0x3142fc['find'](_0x2bc1ef=>_0x2bc1ef['id']===_0x58f70f[_0x2d7008(0x221)])??_0x3142fc[0x0],_0x59ce63=Ma(_0x4f38d0);return _0x2fa798(_0x2d7008(0x111),{'className':_0x2d7008(0x145),'children':[_0x2fa798('div',{'className':_0x2d7008(0x2d9),'children':[_0x5628d9(_0x701e3d,{'value':_0x58f70f[_0x2d7008(0x221)],'options':_0x3142fc[_0x2d7008(0x2ea)](_0x4bd7d5=>({'value':_0x4bd7d5['id'],'label':_0x4bd7d5[_0x2d7008(0x3d7)]})),'onChange':_0x1e2b6c=>{const _0x359f89=_0x2d7008;let _0x5dcd66=_0x3142fc[_0x359f89(0x153)](_0x321627=>_0x321627['id']===_0x1e2b6c);if(!_0x5dcd66)return;let _0x48f377=Ma(_0x5dcd66)[0x0];_0x35b9d6(ja(_0x2f2ab0,_0x595404,Aa(_0x5dcd66,_0x48f377)));}}),_0x5628d9(_0x101ca4,{'type':'button','variant':_0x2d7008(0x2e2),'aria-label':_0xcb8f59['t']('bases-dashboard-ui.dashboardInspector.delete'),'className':_0x2d7008(0x169),'onClick':()=>_0x35b9d6(ka(_0x2f2ab0,_0x78b6cc[_0x2d7008(0x122)]((_0x5cec7a,_0x3d0ea4)=>_0x3d0ea4!==_0x595404))),'children':_0x5628d9(_0x1ab83b,{})})]}),_0x5628d9(_0x701e3d,{'value':_0x58f70f['operator'],'options':_0x59ce63[_0x2d7008(0x2ea)](_0x2d0357=>({'value':_0x2d0357,'label':_0xcb8f59['t'](Ta[_0x2d0357])})),'onChange':_0x428f11=>{const _0x2e0b34=_0x2d7008;let _0x4090bc=_0x59ce63[_0x2e0b34(0x153)](_0x534b61=>_0x534b61===_0x428f11);_0x4090bc&&_0x35b9d6(ja(_0x2f2ab0,_0x595404,{'operator':_0x4090bc,'operand':Na(_0x4f38d0)}));}}),Pa(_0x58f70f['operator'])&&_0x5628d9(Oa,{'field':_0x4f38d0,'value':_0x58f70f[_0x2d7008(0x2d6)],'onChange':_0x5f3c28=>_0x35b9d6(ja(_0x2f2ab0,_0x595404,{'operand':_0x5f3c28}))})]},La(_0x78b6cc,_0x58f70f,_0x595404));}),_0x2fa798(_0x101ca4,{'type':_0x19f4c1(0x11f),'variant':_0x19f4c1(0x2e2),'className':_0x19f4c1(0xd2),'disabled':!_0x3142fc['length'],'onClick':()=>{let _0x3b51f2=_0x3142fc[0x0];if(!_0x3b51f2)return;let _0x22a610=Ma(_0x3b51f2)[0x0];_0x35b9d6(ka(_0x2f2ab0,[..._0x78b6cc,Aa(_0x3b51f2,_0x22a610)]));},'children':[_0x5628d9(_0x4f1759,{}),_0xcb8f59['t']('bases-dashboard-ui.dashboardInspector.newCondition')]}),_0x78b6cc[_0x19f4c1(0x193)]>0x0&&_0x5628d9(_0x101ca4,{'type':_0x19f4c1(0x11f),'variant':'text','className':_0x19f4c1(0x23b),'onClick':_0x4478a2,'children':_0xcb8f59['t']('bases-dashboard-ui.dashboardInspector.clear')})]});}function Oa({disabled:_0xeb0dc,field:_0x16b38f,onChange:_0x3a03f0,value:_0x51d1ac}){const _0x529cc4=_0x5d48da;let _0x2401e7=_0x40463f(_0x1ecd96),[_0x3edc1a,_0xb7e071]=_0x4ebd7a({'value':_0x51d1ac,'text':String(_0x51d1ac??'')});Object['is'](_0x3edc1a[_0x529cc4(0x32d)],_0x51d1ac)||_0xb7e071({'value':_0x51d1ac,'text':String(_0x51d1ac??'')});let _0x3b0170=_0x3edc1a['text'],_0x56af6b=_0x112757=>_0xb7e071({'value':_0x51d1ac,'text':_0x112757}),_0x6e65c8=_0x16b38f==null?void 0x0:_0x16b38f[_0x529cc4(0x278)];if(_0x6e65c8===_0x3bfbe2[_0x529cc4(0x2dd)]){let _0xc704e9=_0x51d1ac===!0x0||_0x51d1ac===_0x529cc4(0x1da);return _0x2fa798(_0x101ca4,{'type':_0x529cc4(0x11f),'variant':'default','disabled':_0xeb0dc,'className':'univer-w-full\x20univer-justify-start','onClick':()=>_0x3a03f0(!_0xc704e9),'children':[_0x5628d9(_0x57ed34,{'checked':_0xc704e9,'disabled':_0xeb0dc,'onChange':()=>void 0x0}),_0xc704e9?_0x2401e7['t'](_0x529cc4(0xcf)):_0x2401e7['t']('bases-dashboard-ui.dashboardInspector.unchecked')]});}return Ra(_0x6e65c8)?_0xeb0dc?_0x5628d9(_0x101ca4,{'type':'button','variant':_0x529cc4(0x18c),'className':'univer-w-full','disabled':!0x0,'children':_0x3276ff(_0x51d1ac==null||_0x51d1ac===''?void 0x0:String(_0x51d1ac))[_0x529cc4(0x231)](_0x529cc4(0x155))}):_0x5628d9(_0x485a77,{'className':_0x529cc4(0x23b),'value':_0x3276ff(_0x51d1ac==null||_0x51d1ac===''?void 0x0:String(_0x51d1ac))[_0x529cc4(0x149)](),'onValueChange':_0x4e86d5=>_0x3a03f0(_0x3276ff(_0x4e86d5)['format'](_0x529cc4(0x155)))}):Ba(_0x16b38f)?_0x5628d9(_0x5ca0fb,{'className':'univer-w-full','disabled':_0xeb0dc,'value':Array[_0x529cc4(0x11e)](_0x51d1ac)?_0x51d1ac[_0x529cc4(0x2ea)](String):[],'options':Fa(_0x16b38f),'onChange':_0x3a03f0}):_0x6e65c8===_0x3bfbe2[_0x529cc4(0x329)]||_0x6e65c8===_0x3bfbe2[_0x529cc4(0xbe)]||_0x6e65c8===_0x3bfbe2['Person']?_0x5628d9(_0x701e3d,{'className':_0x529cc4(0x23b),'disabled':_0xeb0dc,'value':String(_0x51d1ac??''),'options':[{'value':'','label':_0x2401e7['t'](_0x529cc4(0x258))},...Fa(_0x16b38f)],'onChange':_0x3a03f0}):za(_0x6e65c8)?_0x5628d9(_0x5d579d,{'className':_0x529cc4(0x23b),'disabled':_0xeb0dc,'inputMode':_0x529cc4(0x1a6),'value':_0x3b0170,'aria-invalid':_0x3b0170!==''&&!Number[_0x529cc4(0x206)](Number(_0x3b0170)),'onChange':_0x3e1ce9=>{_0x56af6b(_0x3e1ce9),_0x3e1ce9===''?_0x3a03f0(''):Number['isFinite'](Number(_0x3e1ce9))&&_0x3a03f0(Number(_0x3e1ce9));},'onBlur':()=>_0x56af6b(String(_0x51d1ac??''))}):_0x5628d9(_0x5d579d,{'disabled':_0xeb0dc,'value':String(_0x51d1ac??''),'placeholder':_0x2401e7['t'](_0x529cc4(0x3be)),'onChange':_0x3a03f0});}function ka(_0x41c18c,_0x5c13f6){const _0x155ffe=_0x5d48da;return{'conjunction':(_0x41c18c==null?void 0x0:_0x41c18c['conjunction'])??_0x26ccb5[_0x155ffe(0x2f5)],'conditions':_0x5c13f6};}function Aa(_0x18dee5,_0x92364d){return Pa(_0x92364d)?{'fieldId':_0x18dee5['id'],'operator':_0x92364d,'operand':Na(_0x18dee5)}:{'fieldId':_0x18dee5['id'],'operator':_0x92364d};}function ja(_0x2325a7,_0x5b8348,_0x3edc47){const _0x27e036=_0x5d48da;return ka(_0x2325a7,((_0x2325a7==null?void 0x0:_0x2325a7[_0x27e036(0x32c)])??[])[_0x27e036(0x2ea)]((_0x31c4eb,_0x4fd57d)=>_0x4fd57d===_0x5b8348?{..._0x31c4eb,..._0x3edc47}:_0x31c4eb));}function Ma(_0x582bc2){const _0x14b035=_0x5d48da;let _0x34f399=[_0x462609['IS_EMPTY'],_0x462609['IS_NOT_EMPTY']];switch(_0x582bc2==null?void 0x0:_0x582bc2[_0x14b035(0x278)]){case _0x3bfbe2[_0x14b035(0x14f)]:case _0x3bfbe2[_0x14b035(0x2d5)]:case _0x3bfbe2[_0x14b035(0x38a)]:case _0x3bfbe2[_0x14b035(0x393)]:return[_0x462609['IS'],_0x462609['IS_NOT'],_0x462609['GREATER_THAN'],_0x462609[_0x14b035(0x2d4)],..._0x34f399];case _0x3bfbe2[_0x14b035(0x3ba)]:case _0x3bfbe2[_0x14b035(0x302)]:case _0x3bfbe2[_0x14b035(0x307)]:return[_0x462609['IS'],_0x462609[_0x14b035(0x29a)],_0x462609[_0x14b035(0x3dd)],_0x462609['AFTER'],..._0x34f399];case _0x3bfbe2[_0x14b035(0x2dd)]:return[_0x462609['IS'],_0x462609[_0x14b035(0x29a)]];default:return[_0x462609['IS'],_0x462609[_0x14b035(0x29a)],_0x462609[_0x14b035(0xa6)],_0x462609['NOT_CONTAINS'],..._0x34f399];}}function Na(_0x57db6c){const _0xf136db=_0x5d48da;return _0x57db6c?_0x57db6c['type']===_0x3bfbe2[_0xf136db(0x2dd)]?!0x1:Ra(_0x57db6c['type'])?_0x3276ff()[_0xf136db(0x231)](_0xf136db(0x155)):Ba(_0x57db6c)?[]:'':'';}function Pa(_0x2a3ca2){const _0x27cead=_0x5d48da;return _0x2a3ca2!==_0x462609[_0x27cead(0x176)]&&_0x2a3ca2!==_0x462609[_0x27cead(0x168)];}function Fa(_0x1ba98d){const _0x4e843a=_0x5d48da;var _0x26e078;return(Array[_0x4e843a(0x11e)](_0x1ba98d==null||(_0x26e078=_0x1ba98d[_0x4e843a(0xa7)])==null?void 0x0:_0x26e078[_0x4e843a(0x2a1)])?_0x1ba98d[_0x4e843a(0xa7)][_0x4e843a(0x2a1)]:[])[_0x4e843a(0x2ea)]((_0x48d6d7,_0x46f924)=>{if(typeof _0x48d6d7=='string')return{'label':_0x48d6d7,'value':_0x48d6d7};if(!Ia(_0x48d6d7))return{'label':String(_0x46f924+0x1),'value':String(_0x46f924+0x1)};let _0x46b266=_0x48d6d7,_0x467670=String(_0x46b266['name']??_0x46b266['id']??_0x46f924+0x1),_0x378ee5=String(_0x46b266['id']??_0x467670);return{'label':_0x467670,'value':/^opt-\d+$/['test'](_0x378ee5)?_0x467670:_0x378ee5};});}function Ia(_0x151e41){return typeof _0x151e41=='object'&&!!_0x151e41;}function La(_0x406e71,_0x5453d4,_0x4624bd){const _0x327c73=_0x5d48da;let _0x505bab=JSON[_0x327c73(0x3c1)](_0x5453d4);return _0x505bab+'-'+_0x406e71[_0x327c73(0x165)](0x0,_0x4624bd)[_0x327c73(0x122)](_0x5cf6cc=>JSON[_0x327c73(0x3c1)](_0x5cf6cc)===_0x505bab)[_0x327c73(0x193)];}function Ra(_0x504570){const _0xca6c9e=_0x5d48da;return _0x504570===_0x3bfbe2['Date']||_0x504570===_0x3bfbe2['CreatedAt']||_0x504570===_0x3bfbe2[_0xca6c9e(0x307)];}function za(_0x28849e){const _0xc9bf12=_0x5d48da;return _0x28849e===_0x3bfbe2[_0xc9bf12(0x14f)]||_0x28849e===_0x3bfbe2[_0xc9bf12(0x2d5)]||_0x28849e===_0x3bfbe2[_0xc9bf12(0x38a)]||_0x28849e===_0x3bfbe2['Rating'];}function Ba(_0x480a27){const _0x300773=_0x5d48da;var _0xfd4b4f;return(_0x480a27==null?void 0x0:_0x480a27[_0x300773(0x278)])===_0x3bfbe2[_0x300773(0x20b)]||(_0x480a27==null?void 0x0:_0x480a27[_0x300773(0x278)])===_0x3bfbe2[_0x300773(0xbe)]||(_0x480a27==null?void 0x0:_0x480a27[_0x300773(0x278)])===_0x3bfbe2[_0x300773(0x298)]&&((_0xfd4b4f=_0x480a27[_0x300773(0xa7)])==null?void 0x0:_0xfd4b4f['allowMultiple'])===!0x0;}function Va({base:_0x5747c8,chartRuntime:_0x4570d4,onChange:_0x245905,onClose:_0x3734db,onSelectBackgroundImage:_0x4813fb,onSelectImage:_0x1faefb,unitId:_0x482c3e,widget:_0x3b6108}){const _0x22c92f=_0x5d48da;let _0x347822=_0x40463f(_0x1e6f93),_0x241ab6=_0x40463f(_0x1ecd96),_0x559385=_0x5747c8['getSnapshot'](),_0x19b0e7=_0x22c92f(0x9d)in _0x3b6108?_0x559385[_0x22c92f(0x3b5)][_0x3b6108[_0x22c92f(0x9d)]]:void 0x0,_0x37906a=_0x3b6108[_0x22c92f(0x278)]===_0x4dd1ab['PivotChart']?_0x19b0e7==null?void 0x0:_0x19b0e7[_0x22c92f(0x2eb)][_0x3b6108[_0x22c92f(0x260)]]:void 0x0,_0x523552=_0x241ab6['t'](Ja(_0x3b6108));return _0x2fa798(_0x22c92f(0x3da),{'data-dashboard-inspector':!0x0,'className':_0x22c92f(0x304),'children':[_0x2fa798(_0x22c92f(0x148),{'className':_0x22c92f(0x180),'children':[_0x5628d9('h3',{'className':_0x22c92f(0x327),'children':_0x523552}),_0x5628d9(_0x101ca4,{'type':_0x22c92f(0x11f),'size':_0x22c92f(0x147),'variant':_0x22c92f(0x2e2),'aria-label':_0x241ab6['t'](_0x22c92f(0x17b)),'onClick':_0x3734db,'children':_0x5628d9(_0x1ab83b,{})})]}),_0x3b6108['type']===_0x4dd1ab[_0x22c92f(0x173)]&&(qa(_0x37906a)&&_0x4570d4?_0x5628d9(ba,{'runtime':_0x4570d4,'sourceChart':_0x37906a[_0x22c92f(0xa7)][_0x22c92f(0x204)],'sourceName':((_0x19b0e7==null?void 0x0:_0x19b0e7[_0x22c92f(0x3d7)])??'')+_0x22c92f(0x2a5)+_0x37906a[_0x22c92f(0x3d7)],'widget':_0x3b6108,'onChange':_0x245905,'onEditData':()=>{const _0x3352f8=_0x22c92f;_0x347822[_0x3352f8(0x3e3)](_0x166344['id'],{'unitId':_0x482c3e,'tableId':_0x3b6108[_0x3352f8(0x9d)],'viewId':_0x3b6108[_0x3352f8(0x260)]})[_0x3352f8(0x26d)](()=>void 0x0);}}):_0x5628d9(Ga,{'message':qa(_0x37906a)?_0x241ab6['t']('bases-dashboard-ui.dashboardInspector.loading'):_0x241ab6['t'](_0x22c92f(0x1bb))})),_0x3b6108['type']===_0x4dd1ab[_0x22c92f(0x2c2)]&&_0x5628d9(Ca,{'base':_0x5747c8,'widget':_0x3b6108,'onChange':_0x245905,'onSelectBackgroundImage':_0x4813fb}),_0x3b6108['type']===_0x4dd1ab['TableFilter']&&_0x5628d9(Ua,{'base':_0x5747c8,'onChange':_0x245905,'widget':_0x3b6108}),_0x3b6108[_0x22c92f(0x278)]===_0x4dd1ab['Text']&&_0x5628d9(Wa,{'onChange':_0x245905,'widget':_0x3b6108}),_0x3b6108['type']===_0x4dd1ab[_0x22c92f(0x3c0)]&&_0x5628d9(Ha,{'onChange':_0x245905,'onSelectImage':_0x1faefb,'widget':_0x3b6108})]});}function Ha({onChange:_0x1f483f,onSelectImage:_0x12d8f7,widget:_0x5686c9}){const _0x3d97c2=_0x5d48da;let _0x3fc926=_0x40463f(_0x1ecd96);return _0x2fa798(_0x3d97c2(0x334),{'className':_0x3d97c2(0x195),'children':[_0x2fa798(_0x101ca4,{'className':_0x3d97c2(0x23b),'onClick':()=>_0x12d8f7()[_0x3d97c2(0xa4)](_0xce622d=>_0xce622d&&_0x1f483f({..._0x5686c9,'source':_0xce622d[_0x3d97c2(0x136)],'sourceType':_0xce622d[_0x3d97c2(0xa8)],'alt':_0xce622d[_0x3d97c2(0x3d7)]}))['catch'](()=>void 0x0),'children':[_0x5628d9(_0x4f1759,{}),_0x3fc926['t'](_0x3d97c2(0x16d))]}),_0x2fa798(_0x3d97c2(0x249),{'className':_0x3d97c2(0x127),'children':[_0x5628d9(_0x3d97c2(0x339),{'children':_0x3fc926['t']('bases-dashboard-ui.dashboardInspector.backgroundImage')}),_0x5628d9(_0x18f25a,{'items':[{'value':_0x3d97c2(0x15c),'label':_0x3fc926['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x3d97c2(0x2a3),'label':_0x3fc926['t'](_0x3d97c2(0x10c))},{'value':_0x3d97c2(0x25a),'label':_0x3fc926['t'](_0x3d97c2(0xc2))}],'value':_0x5686c9[_0x3d97c2(0x31a)]??_0x3d97c2(0x15c),'onChange':_0x2966ef=>_0x1f483f({..._0x5686c9,'displayMode':_0x2966ef})[_0x3d97c2(0x26d)](()=>void 0x0)})]})]});}function Ua({base:_0x3d2cdf,onChange:_0x309766,widget:_0x55045c}){const _0x6d14f3=_0x5d48da;let _0x1beba5=_0x3d2cdf[_0x6d14f3(0x3e8)]()[_0x6d14f3(0x3b5)][_0x55045c[_0x6d14f3(0x9d)]],_0x401ff1=_0x1beba5==null?void 0x0:_0x1beba5[_0x6d14f3(0x389)][_0x6d14f3(0x153)](_0x2e8d2f=>_0x1beba5[_0x6d14f3(0x2eb)][_0x2e8d2f]),_0x5bf8df=_0x401ff1?_0x1beba5==null?void 0x0:_0x1beba5[_0x6d14f3(0x2eb)][_0x401ff1]:void 0x0,_0x245d1a=_0x1beba5&&_0x5bf8df?_0x28d476(_0x1beba5,_0x5bf8df):[];return _0x5628d9(Da,{'fields':_0x245d1a,'filter':_0x55045c[_0x6d14f3(0x122)],'onChange':_0x1919db=>_0x309766({..._0x55045c,'filter':_0x1919db})[_0x6d14f3(0x26d)](()=>void 0x0),'onClear':()=>_0x309766({..._0x55045c,'filter':null})[_0x6d14f3(0x26d)](()=>void 0x0)});}function Wa({onChange:_0x25d194,widget:_0x4a2a49}){const _0x23c9e2=_0x5d48da;let _0x5babed=_0x40463f(_0x1ecd96),_0x17bd8b=_0x40463f(_0x56b689),_0x39d6ad=_0x5056f6(()=>_0x17bd8b[_0x23c9e2(0x137)],_0x17bd8b[_0x23c9e2(0x3cf)](),!0x1,[_0x17bd8b]),_0x343320=Hr(_0x4a2a49),_0x3dfa89=_0x28ee09=>_0x25d194({..._0x4a2a49,'appearance':{..._0x343320,..._0x28ee09}})[_0x23c9e2(0x26d)](()=>void 0x0);return _0x2fa798(_0x23c9e2(0x334),{'className':_0x23c9e2(0x285),'children':[_0x5628d9(_0x80dadb,{'defaultValue':Ur(_0x4a2a49['document']),'rows':0x8,'onBlur':_0x3f3413=>_0x25d194({..._0x4a2a49,'document':Wr(_0x4a2a49[_0x23c9e2(0x348)],_0x3f3413[_0x23c9e2(0x320)][_0x23c9e2(0x32d)])})[_0x23c9e2(0x26d)](()=>void 0x0)}),_0x5628d9(_0x209a9d,{'emptyLabel':_0x5babed['t'](_0x23c9e2(0x3b9)),'label':_0x5babed['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x39d6ad[_0x23c9e2(0x14a)][0x0],'resetLabel':_0x5babed['t'](_0x23c9e2(0x23f)),'value':_0x343320[_0x23c9e2(0x2e5)]??null,'onChange':_0x2d94f6=>_0x3dfa89({'backgroundColor':_0x2d94f6??void 0x0})}),_0x5628d9(_0x209a9d,{'emptyLabel':_0x5babed['t'](_0x23c9e2(0x37a)),'label':_0x5babed['t'](_0x23c9e2(0x37a)),'pickerFallbackValue':_0x39d6ad['gray'][0x3e8],'resetLabel':_0x5babed['t'](_0x23c9e2(0x23f)),'value':_0x343320['textColor']??null,'onChange':_0x19a305=>_0x3dfa89({'textColor':_0x19a305??void 0x0})}),_0x5628d9(Ka,{'label':_0x5babed['t'](_0x23c9e2(0x281)),'children':_0x5628d9(_0x18f25a,{'items':[{'value':_0x23c9e2(0x269),'label':_0x5babed['t'](_0x23c9e2(0xb0))},{'value':_0x23c9e2(0x38c),'label':_0x5babed['t'](_0x23c9e2(0x11c))},{'value':_0x23c9e2(0x39f),'label':_0x5babed['t'](_0x23c9e2(0x363))}],'value':_0x343320[_0x23c9e2(0x326)],'onChange':_0x3c3553=>_0x3dfa89({'alignment':_0x3c3553})})}),_0x2fa798(Ka,{'label':_0x5babed['t']('bases-dashboard-ui.dashboardInspector.textSize'),'children':[_0x5628d9(_0x18f25a,{'items':[{'value':_0x23c9e2(0x1eb),'label':_0x5babed['t'](_0x23c9e2(0xcc))},{'value':_0x23c9e2(0x2ec),'label':_0x5babed['t'](_0x23c9e2(0x133))}],'value':_0x343320[_0x23c9e2(0x27d)],'onChange':_0x4229a6=>_0x3dfa89({'fontSizeMode':_0x4229a6})}),_0x343320[_0x23c9e2(0x27d)]==='custom'&&_0x5628d9(_0x57c888,{'className':_0x23c9e2(0xd9),'min':0xa,'max':0x78,'value':_0x343320[_0x23c9e2(0x268)],'onChange':_0x430338=>_0x3dfa89({'fontSize':_0x430338??0x12,'fontSizeMode':'custom'})})]})]});}function Ga({message:_0x326efb}){const _0x4ef60b=_0x5d48da;return _0x5628d9(_0x4ef60b(0x334),{'className':_0x4ef60b(0x16f),'children':_0x326efb});}function Ka({children:_0x1dcedc,label:_0xb75303}){const _0x3f3e24=_0x5d48da;return _0x2fa798(_0x3f3e24(0x334),{'role':_0x3f3e24(0x350),'aria-':!0x0,'className':_0x3f3e24(0x127),'children':[_0x5628d9(_0x3f3e24(0x339),{'children':_0xb75303}),_0x1dcedc]});}function qa(_0x1f6590){const _0x358311=_0x5d48da;return(_0x1f6590==null?void 0x0:_0x1f6590[_0x358311(0x278)])===_0xc74f11[_0x358311(0xe1)]&&typeof _0x1f6590[_0x358311(0xa7)]=='object'&&_0x1f6590[_0x358311(0xa7)]!==null&&_0x358311(0x106)in _0x1f6590[_0x358311(0xa7)]&&'chart'in _0x1f6590['config'];}function Ja(_0x10b327){const _0x15c851=_0x5d48da;switch(_0x10b327[_0x15c851(0x278)]){case _0x4dd1ab[_0x15c851(0x173)]:return _0x15c851(0x1ca);case _0x4dd1ab['TableFilter']:return _0x15c851(0x108);case _0x4dd1ab[_0x15c851(0x1c9)]:return _0x15c851(0x126);case _0x4dd1ab['Image']:return _0x15c851(0x2a4);case _0x4dd1ab[_0x15c851(0x2c2)]:return _0x15c851(0x38b);}}function Ya({onDelete:_0x4baf48,onEdit:_0x1dcbae}){const _0x588c3e=_0x5d48da;let _0x2def2e=_0x40463f(_0x1ecd96),_0x8173bf=_0x2def2e['t'](_0x588c3e(0xe2)),_0x5bbe0a=_0x2def2e['t'](_0x588c3e(0x297)),_0x585ba0=_0x2def2e['t'](_0x588c3e(0x154));return _0x5628d9(_0x56bbe5,{'items':[{'type':_0x588c3e(0x321),'children':_0x2fa798(_0x588c3e(0x339),{'className':_0x588c3e(0x179),'children':[_0x5628d9(_0x1d4ca0,{'className':_0x588c3e(0x3db),'aria-hidden':_0x588c3e(0x1da)}),_0x5628d9(_0x588c3e(0x339),{'children':_0x8173bf})]}),'onSelect':_0x1dcbae},{'type':_0x588c3e(0x1fd)},{'type':'item','variant':_0x588c3e(0x247),'children':_0x2fa798(_0x588c3e(0x339),{'className':_0x588c3e(0x179),'children':[_0x5628d9(_0x275aa7,{'className':_0x588c3e(0x3db),'aria-hidden':_0x588c3e(0x1da)}),_0x5628d9('span',{'children':_0x5bbe0a})]}),'onSelect':_0x4baf48}],'children':_0x5628d9(_0x101ca4,{'type':_0x588c3e(0x11f),'size':_0x588c3e(0x147),'variant':'text','title':_0x585ba0,'aria-label':_0x585ba0,'className':_0x588c3e(0x3a4),'children':_0x5628d9(_0x4093a6,{'className':_0x588c3e(0x3db),'aria-hidden':_0x588c3e(0x1da)})})});}function Xa({dashboardId:_0x2f3d4c,presentation:_0x3d9b0c=!0x1,unitId:_0x378083}){const _0x4b477c=_0x5d48da;let _0x523db1=_0x40463f(_0x1e6f93),_0x3191d2=_0x40463f(_0x5b5322),_0x568d56=_0x40463f(_0x2667ef),_0xe26474=_0x40463f(_0x4829da),_0x499a70=_0x40463f(_0x1ecd96),_0x55c4f3=_0x40463f(_0x3a16be),_0x112ff4=_0x40463f(_0x12718a),_0x10c776=_0x25fc59(null),[_0x401528,_0x267471]=_0x4ebd7a(!0x1),[_0x490473,_0x16ab0f]=_0x4ebd7a(),[_0x2f69d9,_0x4191c8]=_0x4ebd7a(!0x1),[_0x15ff89,_0x131041]=_0x4ebd7a(()=>new Map()),_0x383ef5=_0x26d744((_0x51220f,_0x18f8f4)=>{_0x131041(_0x3e3ff6=>{const _0x481405=_0x187c;let _0x20c694=new Map(_0x3e3ff6);return _0x18f8f4?_0x20c694['set'](_0x51220f,_0x18f8f4):_0x20c694[_0x481405(0x17e)](_0x51220f),_0x20c694;});},[]),_0x3d0e9c=_0x5056f6(()=>_0x55c4f3[_0x4b477c(0x9a)][_0x4b477c(0x209)](_0x51821f(()=>_0x55c4f3['getDashboard'](_0x378083,_0x2f3d4c))),_0x55c4f3[_0x4b477c(0x18b)](_0x378083,_0x2f3d4c),!0x1,[_0x2f3d4c,_0x55c4f3,_0x378083]),_0x1b4a97=_0xe26474['getUnit'](_0x378083,_0x247fc0[_0x4b477c(0x324)]),_0x2dde64=_0x5056f6(()=>_0x112ff4['undoRedoStatus$'],{'undos':0x0,'redos':0x0},!0x1,[_0x112ff4]),_0x222763=vr(_0x378083,_0x2f3d4c);if(_0x185176(()=>{const _0x277ba4=_0x4b477c;_0xe26474[_0x277ba4(0x25c)](_0x378083),_0xe26474['focusUnit'](_0x378083);},[_0xe26474,_0x378083]),_0x185176(()=>{const _0x5f3b60=_0x4b477c;let _0x1a156f=_0x10c776[_0x5f3b60(0xe8)],_0x40bc31=_0x1a156f==null?void 0x0:_0x1a156f[_0x5f3b60(0x253)];if(!_0x1a156f||!_0x40bc31)return;let _0x1225fb=()=>_0x4191c8(_0x40bc31['fullscreenElement']===_0x40bc31[_0x5f3b60(0x2e3)]),_0x4a53d9=_0x4e1a1c=>{const _0x5b3920=_0x5f3b60;_0x4e1a1c[_0x5b3920(0x2d0)]===_0x5b3920(0x13b)&&!_0x4e1a1c[_0x5b3920(0x220)]&&_0x40bc31[_0x5b3920(0x18a)]===_0x40bc31[_0x5b3920(0x2e3)]&&_0x40bc31[_0x5b3920(0x1f7)]()['catch'](_0x1225fb);};return _0x40bc31[_0x5f3b60(0x17a)]('fullscreenchange',_0x1225fb),_0x40bc31['addEventListener'](_0x5f3b60(0x341),_0x4a53d9),()=>{const _0x4b7961=_0x5f3b60;_0x40bc31['removeEventListener'](_0x4b7961(0xaf),_0x1225fb),_0x40bc31[_0x4b7961(0x3df)](_0x4b7961(0x341),_0x4a53d9);};},[]),!_0x3d0e9c||!_0x1b4a97)return null;let _0x31019c=_0x1e9e68=>_0x523db1[_0x4b477c(0x3e3)](_0x1041db['id'],{'unitId':_0x378083,'dashboardId':_0x2f3d4c,'widget':_0x1e9e68})[_0x4b477c(0x26d)](()=>void 0x0),_0x745c26=(_0x2e2aa5,_0x164590,_0x296cbd)=>{const _0x1ceba9=_0x4b477c;let _0x40a702=Math[_0x1ceba9(0x16b)](0x0,..._0x3d0e9c[_0x1ceba9(0x3a0)]['flatMap'](_0x48159c=>{const _0x2a5dfd=_0x1ceba9;var _0x1af889;let _0x336316=(_0x1af889=_0x3d0e9c[_0x2a5dfd(0x1f6)][_0x48159c])==null?void 0x0:_0x1af889[_0x2a5dfd(0x3e1)];return _0x336316?[_0x336316['row']+_0x336316['rowSpan']]:[];})),_0x45c6b3=_0x1ceba9(0x236)+_0x2cedf9(0x8),_0x15c47c={'column':0x0,'row':_0x40a702,'columnSpan':_0x164590,'rowSpan':_0x296cbd};switch(_0x2e2aa5[_0x1ceba9(0x278)]){case _0x4dd1ab[_0x1ceba9(0x173)]:return _0x31019c({..._0x2e2aa5,'id':_0x45c6b3,'layout':_0x15c47c});case _0x4dd1ab[_0x1ceba9(0x296)]:return _0x31019c({..._0x2e2aa5,'id':_0x45c6b3,'layout':_0x15c47c});case _0x4dd1ab[_0x1ceba9(0x1c9)]:return _0x31019c({..._0x2e2aa5,'id':_0x45c6b3,'layout':_0x15c47c});case _0x4dd1ab['Image']:return _0x31019c({..._0x2e2aa5,'id':_0x45c6b3,'layout':_0x15c47c});case _0x4dd1ab['FormulaShape']:return _0x31019c({..._0x2e2aa5,'id':_0x45c6b3,'layout':_0x15c47c});}},_0x5ace19=_0x1b4a97[_0x4b477c(0x3e8)](),_0x45dfdc=_0x5ace19['tableOrder'][_0x4b477c(0x1ac)](_0x594b31=>{const _0xbb35f0=_0x4b477c;let _0x46ae40=_0x5ace19['tables'][_0x594b31];if(!_0x46ae40)return[];let _0x53e0ac=_0x46ae40[_0xbb35f0(0x389)]['flatMap'](_0x3a0c55=>{const _0x55e1c6=_0xbb35f0;let _0x5d3ca6=_0x46ae40[_0x55e1c6(0x2eb)][_0x3a0c55];return io(_0x5d3ca6)?[{'type':'item','children':_0x5d3ca6[_0x55e1c6(0x3d7)],'onSelect':()=>_0x745c26({'type':_0x4dd1ab[_0x55e1c6(0x173)],'tableId':_0x594b31,'pivotViewId':_0x3a0c55,'chart':{..._0x5d3ca6[_0x55e1c6(0xa7)][_0x55e1c6(0x204)]}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0x46ae40[_0xbb35f0(0x3d7)],'options':[..._0x53e0ac,..._0x53e0ac['length']?[{'type':'separator'}]:[],{'type':_0xbb35f0(0x321),'children':_0x499a70['t'](_0xbb35f0(0x108)),'onSelect':()=>_0x745c26({'type':_0x4dd1ab[_0xbb35f0(0x296)],'tableId':_0x594b31,'filter':null},0x6,0x8)}]}];}),_0x1f079a=[..._0x45dfdc,..._0x45dfdc[_0x4b477c(0x193)]?[{'type':_0x4b477c(0x1fd)}]:[],{'type':_0x4b477c(0x321),'children':_0x499a70['t'](_0x4b477c(0x126)),'onSelect':()=>_0x745c26({'type':_0x4dd1ab['Text'],'document':eo()},0x4,0x6)},{'type':_0x4b477c(0x321),'children':_0x499a70['t'](_0x4b477c(0x2a4)),'onSelect':()=>to(_0x3191d2)[_0x4b477c(0xa4)](_0x5765fd=>_0x5765fd&&_0x745c26({'type':_0x4dd1ab[_0x4b477c(0x3c0)],'source':_0x5765fd[_0x4b477c(0x136)],'sourceType':_0x5765fd['sourceType'],'alt':_0x5765fd[_0x4b477c(0x3d7)],'displayMode':'cover'},0x4,0x6))},{'type':'item','children':_0x499a70['t']('bases-dashboard-ui.dashboard.formulaShape'),'onSelect':()=>{const _0x4152d2=_0x4b477c;let _0x5d0242=_0x5ace19[_0x4152d2(0x232)][_0x4152d2(0x153)](_0x2d5ef3=>_0x5ace19[_0x4152d2(0x3b5)][_0x2d5ef3]);_0x5d0242&&_0x745c26({'type':_0x4dd1ab[_0x4152d2(0x2c2)],'tableId':_0x5d0242,'shapeType':_0x5d0718[_0x4152d2(0x226)],'shapeData':_0x154b06(),'description':_0x499a70['t'](_0x4152d2(0x38b))},0x4,0x6);}}],_0xe5bd36=_0x490473?_0x3d0e9c['widgets'][_0x490473]:void 0x0,_0x21c32b=async()=>{const _0x5da1aa=_0x4b477c;let _0x1381d2=_0x10c776[_0x5da1aa(0xe8)];if(!_0x1381d2)return;let _0x2450c4=_0x1381d2['ownerDocument'];_0x2450c4[_0x5da1aa(0x18a)]===_0x2450c4[_0x5da1aa(0x2e3)]?await _0x2450c4[_0x5da1aa(0x1f7)]():await _0x2450c4[_0x5da1aa(0x2e3)]['requestFullscreen']();},_0x5152ac=_0x3d9b0c||_0x2f69d9,_0x1eb6c4=_0x222763&&!_0x5152ac;return _0x2fa798('div',{'ref':_0x10c776,'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2f69d9?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':'univer-relative\x20univer-z-10')+_0x4b477c(0x2f6),'children':[!_0x5152ac&&_0x2fa798(_0x4b477c(0x148),{'className':_0x4b477c(0x174),'children':[_0x5628d9(_0x5f4d2a,{'className':'univer-size-5\x20univer-text-primary-600'}),_0x5628d9('h2',{'className':_0x4b477c(0x327),'children':_0x3d0e9c[_0x4b477c(0x3d7)]}),_0x5628d9(_0x4faeac,{'target':{'unitId':_0x378083,'objectId':_0x4b369a(_0x2f3d4c),'objectType':_0x346fe7[_0x4b477c(0x37b)]},'name':_0x3d0e9c[_0x4b477c(0x3d7)],'commandId':_0x5205b3['id'],'exists':()=>!!_0x55c4f3['getDashboard'](_0x378083,_0x2f3d4c)},_0x378083+'/'+_0x2f3d4c),_0x5628d9(_0x450293,{'unitId':_0x378083}),_0x5628d9(_0x101ca4,{'type':'button','size':_0x4b477c(0x147),'variant':_0x4b477c(0x2e2),'aria-label':_0x499a70['t']('bases-dashboard-ui.dashboard.undo'),'disabled':!_0x222763||_0x2dde64[_0x4b477c(0x13a)]===0x0,'onClick':()=>_0x523db1[_0x4b477c(0x3e3)](_0x1c6299['id'])['catch'](()=>void 0x0),'children':_0x5628d9(_0x4e88b7,{})}),_0x5628d9(_0x101ca4,{'type':'button','size':_0x4b477c(0x147),'variant':'text','aria-label':_0x499a70['t'](_0x4b477c(0xea)),'disabled':!_0x222763||_0x2dde64[_0x4b477c(0x2a7)]===0x0,'onClick':()=>_0x523db1[_0x4b477c(0x3e3)](_0x5eb015['id'])['catch'](()=>void 0x0),'children':_0x5628d9(_0x245c5e,{})}),_0x5628d9(_0x101ca4,{'type':_0x4b477c(0x11f),'size':'small','variant':_0x4b477c(0x2e2),'aria-label':_0x499a70['t'](_0x4b477c(0x13c)),'onClick':()=>_0x21c32b()[_0x4b477c(0x26d)](()=>void 0x0),'children':_0x5628d9(_0x6d0af7,{})}),_0x5628d9(_0x56bbe5,{'items':_0x1f079a,'children':_0x2fa798(_0x101ca4,{'variant':'primary','disabled':!_0x222763,'children':[_0x5628d9(_0x4f1759,{}),_0x499a70['t']('bases-dashboard-ui.dashboard.addWidget')]})})]}),_0x2fa798('div',{'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1','children':[_0x5628d9('div',{'className':_0x4b477c(0x1e5),'children':_0x5628d9(da,{'dashboard':_0x3d0e9c,'dragLabel':_0x499a70['t'](_0x4b477c(0x29d)),'editable':_0x1eb6c4,'resizeLabel':_0x499a70['t']('bases-dashboard-ui.dashboard.resizeWidget'),'widgetLabel':_0x1380f7=>_0x499a70['t'](ro(_0x1380f7['type'])),'selectedWidgetId':_0x1eb6c4?_0x490473:void 0x0,'onSelectWidget':_0x1eb6c4?_0x342d35=>{_0x16ab0f(_0x342d35),_0x342d35||_0x267471(!0x1);}:void 0x0,'onLayoutsCommit':_0x17e34f=>{const _0x8814a6=_0x4b477c;let _0x1ca494={..._0x3d0e9c[_0x8814a6(0x1f6)]};_0x17e34f[_0x8814a6(0x3ce)]((_0x95767c,_0x3b87ce)=>{let _0x2bd2e4=_0x1ca494[_0x3b87ce];_0x2bd2e4&&(_0x1ca494[_0x3b87ce]={..._0x2bd2e4,'layout':_0x95767c});}),_0x523db1[_0x8814a6(0x3e3)](_0x1e3e1b['id'],{'unitId':_0x378083,'dashboard':{..._0x3d0e9c,'widgets':_0x1ca494}})[_0x8814a6(0x26d)](()=>void 0x0);},'renderWidget':_0x3ef608=>_0x5628d9(Za,{'base':_0x1b4a97,'dashboard':_0x3d0e9c,'unitId':_0x378083,'widget':_0x3ef608,'onChange':_0x31019c,'onChartRuntimeChange':_0x383ef5}),'renderWidgetActions':_0x23eed4=>_0x5628d9(Ya,{'onEdit':()=>{_0x16ab0f(_0x23eed4['id']),_0x267471(!0x0);},'onDelete':()=>{const _0x17c019=_0x4b477c;_0x490473===_0x23eed4['id']&&(_0x16ab0f(void 0x0),_0x267471(!0x1)),_0x523db1[_0x17c019(0x3e3)](_0x105c7d['id'],{'unitId':_0x378083,'dashboardId':_0x2f3d4c,'widgetId':_0x23eed4['id']})[_0x17c019(0x26d)](()=>void 0x0);}})})}),_0x1eb6c4&&_0x401528&&_0xe5bd36&&_0x5628d9(Va,{'base':_0x1b4a97,'chartRuntime':_0x15ff89[_0x4b477c(0x185)](_0xe5bd36['id']),'unitId':_0x378083,'widget':_0xe5bd36,'onChange':_0x31019c,'onClose':()=>_0x267471(!0x1),'onSelectBackgroundImage':()=>no(_0x568d56),'onSelectImage':()=>to(_0x3191d2)})]})]});}function Za({base:_0x369ef8,dashboard:_0x573cea,onChange:_0x245b6f,onChartRuntimeChange:_0x5eef8a,unitId:_0x15daee,widget:_0x193055}){const _0x29b28d=_0x5d48da;let _0x28f6ab=_0x5c672b(()=>_0x573cea['widgetOrder'][_0x29b28d(0x1ac)](_0x5d1592=>{const _0x402769=_0x29b28d;let _0x2aef60=_0x573cea[_0x402769(0x1f6)][_0x5d1592];return(_0x2aef60==null?void 0x0:_0x2aef60['type'])===_0x4dd1ab[_0x402769(0x296)]&&_0x2aef60['tableId']===('tableId'in _0x193055?_0x193055['tableId']:'')&&_0x2aef60[_0x402769(0x122)]?[_0x2aef60['filter']]:[];}),[_0x573cea,_0x193055]);switch(_0x193055[_0x29b28d(0x278)]){case _0x4dd1ab[_0x29b28d(0x173)]:return _0x5628d9(zr,{'filters':_0x28f6ab,'unitId':_0x15daee,'widget':_0x193055,'onRuntimeChange':_0x5eef8a});case _0x4dd1ab['TableFilter']:return _0x5628d9(Ea,{'fields':Qa(_0x369ef8,_0x193055[_0x29b28d(0x9d)]),'filter':_0x193055[_0x29b28d(0x122)],'onChange':_0x10c8fa=>_0x245b6f({..._0x193055,'filter':_0x10c8fa})[_0x29b28d(0x26d)](()=>void 0x0)});case _0x4dd1ab[_0x29b28d(0x1c9)]:return _0x5628d9(Gr,{'widget':_0x193055});case _0x4dd1ab[_0x29b28d(0x3c0)]:return _0x5628d9($a,{'widget':_0x193055});case _0x4dd1ab[_0x29b28d(0x2c2)]:return _0x5628d9(kr,{'dashboardId':_0x573cea['id'],'unitId':_0x15daee,'widget':_0x193055});}}function Qa(_0x3797f5,_0x5d0515){const _0xa30b48=_0x5d48da;let _0x5e2498=_0x3797f5[_0xa30b48(0x3e8)]()[_0xa30b48(0x3b5)][_0x5d0515],_0x558d8f=_0x5e2498==null?void 0x0:_0x5e2498[_0xa30b48(0x389)][_0xa30b48(0x153)](_0x47a75a=>_0x5e2498['views'][_0x47a75a]),_0x51ae31=_0x558d8f?_0x5e2498==null?void 0x0:_0x5e2498[_0xa30b48(0x2eb)][_0x558d8f]:void 0x0;return _0x5e2498&&_0x51ae31?_0x28d476(_0x5e2498,_0x51ae31):[];}function $a({widget:_0x106b80}){const _0xd292b1=_0x5d48da;let _0x2f0fbd=_0x40463f(_0x5b5322),[_0x4be827,_0x56b26d]=_0x4ebd7a(_0x106b80[_0xd292b1(0xa8)]===_0x3892df[_0xd292b1(0xe0)]?'':_0x106b80[_0xd292b1(0x136)]);return _0x185176(()=>{const _0x2e22bd=_0xd292b1;let _0x4f8720=!0x0;return _0x2f0fbd[_0x2e22bd(0x2bd)](_0x106b80[_0x2e22bd(0x136)],_0x106b80['sourceType'])[_0x2e22bd(0xa4)](_0x472aa1=>{_0x4f8720&&_0x56b26d(_0x472aa1);})['catch'](()=>void 0x0),()=>{_0x4f8720=!0x1;};},[_0x2f0fbd,_0x106b80[_0xd292b1(0x136)],_0x106b80[_0xd292b1(0xa8)]]),_0x4be827?_0x5628d9(_0xd292b1(0x334),{'role':_0x106b80[_0xd292b1(0x250)]?'img':void 0x0,'aria-label':_0x106b80[_0xd292b1(0x250)]||void 0x0,'data-dashboard-image':_0x106b80['id'],'className':_0xd292b1(0x2b9),'style':br(_0x4be827,_0x106b80[_0xd292b1(0x31a)])}):null;}function eo(){let _0x38a11c=_0x1be82d(new Set());return{'id':'dashboard-text-'+_0x2cedf9(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x38a11c}]},'documentStyle':{}};}function to(_0x1e12ac){return new Promise(_0x57f65a=>{const _0xaa6146=_0x187c;let _0x3c0e3f=document[_0xaa6146(0x365)](_0xaa6146(0x141));_0x3c0e3f[_0xaa6146(0x278)]=_0xaa6146(0x39c),_0x3c0e3f[_0xaa6146(0x177)]=_0xaa6146(0x115),_0x3c0e3f[_0xaa6146(0x17a)](_0xaa6146(0x1ea),()=>{const _0x47e0bd=_0xaa6146;var _0x40b2a6;let _0x5a473a=(_0x40b2a6=_0x3c0e3f['files'])==null?void 0x0:_0x40b2a6[0x0];_0x5a473a?_0x1e12ac[_0x47e0bd(0x131)](_0x5a473a)[_0x47e0bd(0xa4)](_0x1c49bd=>{const _0x115305=_0x47e0bd;!_0x1c49bd['source']||_0x1c49bd[_0x115305(0xa8)]===void 0x0?_0x57f65a(null):_0x57f65a({'name':_0x1c49bd[_0x115305(0x3d7)],'source':_0x1c49bd[_0x115305(0x136)],'sourceType':_0x1c49bd[_0x115305(0xa8)]});})[_0x47e0bd(0x26d)](()=>_0x57f65a(null)):_0x57f65a(null);},{'once':!0x0}),_0x3c0e3f[_0xaa6146(0x3c4)]();});}function no(_0x24755){return new Promise(_0x88afdb=>{const _0x5d8698=_0x187c;let _0x54cd96=document[_0x5d8698(0x365)](_0x5d8698(0x141));_0x54cd96[_0x5d8698(0x278)]=_0x5d8698(0x39c),_0x54cd96[_0x5d8698(0x177)]='image/*',_0x54cd96[_0x5d8698(0x17a)]('change',()=>{const _0x34f5e8=_0x5d8698;var _0x45e7b3;let _0x3f5274=(_0x45e7b3=_0x54cd96[_0x34f5e8(0x170)])==null?void 0x0:_0x45e7b3[0x0];_0x3f5274?_0x24755[_0x34f5e8(0x2f8)](_0x3f5274)[_0x34f5e8(0xa4)](_0x3b0445=>{const _0x571274=_0x34f5e8;if(!(_0x3b0445!=null&&_0x3b0445[_0x571274(0x136)]))_0x88afdb(null);else{if(_0x3b0445['base64Cache']){let _0x3002c8=new Image();_0x3002c8[_0x571274(0x1f5)]=_0x3b0445[_0x571274(0x1ef)],_0x24755[_0x571274(0xf9)](_0x3b0445[_0x571274(0x136)],_0x3b0445[_0x571274(0x1c0)],_0x3002c8);}_0x88afdb({'source':_0x3b0445[_0x571274(0x136)],'sourceType':_0x3b0445[_0x571274(0x1c0)]});}})[_0x34f5e8(0x26d)](()=>_0x88afdb(null)):_0x88afdb(null);},{'once':!0x0}),_0x54cd96[_0x5d8698(0x3c4)]();});}function ro(_0x5412e3){const _0x301777=_0x5d48da;switch(_0x5412e3){case _0x4dd1ab[_0x301777(0x173)]:return _0x301777(0x1ca);case _0x4dd1ab[_0x301777(0x296)]:return _0x301777(0x108);case _0x4dd1ab[_0x301777(0x1c9)]:return _0x301777(0x126);case _0x4dd1ab[_0x301777(0x3c0)]:return _0x301777(0x2a4);case _0x4dd1ab[_0x301777(0x2c2)]:return _0x301777(0x38b);}}function io(_0x47b093){const _0x210bc2=_0x5d48da;return(_0x47b093==null?void 0x0:_0x47b093[_0x210bc2(0x278)])===_0xc74f11[_0x210bc2(0xe1)]&&typeof _0x47b093[_0x210bc2(0xa7)]=='object'&&_0x47b093[_0x210bc2(0xa7)]!==null&&_0x210bc2(0x106)in _0x47b093['config']&&_0x210bc2(0x204)in _0x47b093[_0x210bc2(0xa7)];}const ao=[{'area':_0x87fd74[_0x5d48da(0x163)],'key':'filterFields','label':'bases-dashboard-ui.pivot.filters'},{'area':_0x87fd74[_0x5d48da(0x200)],'key':_0x5d48da(0x21c),'label':_0x5d48da(0x1a4)},{'area':_0x87fd74[_0x5d48da(0x21e)],'key':'rowFields','label':_0x5d48da(0xce)},{'area':_0x87fd74[_0x5d48da(0x24b)],'key':_0x5d48da(0x2c5),'label':_0x5d48da(0xc4)}],oo=[{'value':_0x3bfa9b[_0x5d48da(0x381)],'localeKey':_0x5d48da(0x1e0)},{'value':_0x3bfa9b[_0x5d48da(0x1b2)],'localeKey':'bases-dashboard-ui.pivot.count'},{'value':_0x3bfa9b[_0x5d48da(0x2f0)],'localeKey':_0x5d48da(0x2c6)},{'value':_0x3bfa9b[_0x5d48da(0x2ac)],'localeKey':'bases-dashboard-ui.pivot.average'},{'value':_0x3bfa9b[_0x5d48da(0x16b)],'localeKey':_0x5d48da(0x2b0)},{'value':_0x3bfa9b[_0x5d48da(0x2cf)],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x3bfa9b['product'],'localeKey':_0x5d48da(0x10d)},{'value':_0x3bfa9b['stdDev'],'localeKey':_0x5d48da(0xcd)},{'value':_0x3bfa9b[_0x5d48da(0x152)],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x3bfa9b[_0x5d48da(0xfc)],'localeKey':'bases-dashboard-ui.pivot.variance'},{'value':_0x3bfa9b[_0x5d48da(0x1b5)],'localeKey':_0x5d48da(0x104)}];function so(_0x430c40){const _0x4e8f7f=_0x5d48da;let {config:_0x5c606e,onChange:_0x41b711,table:_0x561400}=_0x430c40,_0x284ab6=_0x40463f(_0x1ecd96),[_0x384708,_0xcc7417]=_0x4ebd7a('fields'),[_0x4c0216,_0x7fdf2e]=_0x4ebd7a(''),[_0x28795b,_0xadb283]=_0x4ebd7a(null),[_0x3d8aa4,_0x39ab19]=_0x4ebd7a(null),[_0xfe240e,_0x523dd0]=_0x4ebd7a(null),[_0x12e167,_0x3dbfce]=_0x4ebd7a(null),_0x48b624=_0x25fc59(null),_0x5b6e04=_0x5c672b(()=>_0x561400[_0x4e8f7f(0xb6)][_0x4e8f7f(0x1ac)](_0x20741a=>{const _0x1746b7=_0x4e8f7f;let _0x26610f=_0x561400[_0x1746b7(0x9b)][_0x20741a];return _0x26610f&&_0x26610f[_0x1746b7(0x3b4)]!==!0x0&&_0x26610f[_0x1746b7(0x278)]!==_0x3bfbe2[_0x1746b7(0x39d)]?[_0x26610f]:[];})[_0x4e8f7f(0x122)](_0x27a55a=>_0x27a55a[_0x4e8f7f(0x3d7)][_0x4e8f7f(0x125)]()[_0x4e8f7f(0x292)](_0x4c0216[_0x4e8f7f(0x1b4)]()[_0x4e8f7f(0x125)]())),[_0x4c0216,_0x561400]),_0x35da6d=_0x5f006f=>{const _0x2c9192=_0x4e8f7f;let _0xd1c7c6=_0x2a70ba(_0x561400,_0x5c606e[_0x2c9192(0x106)]);try{_0x5f006f(_0xd1c7c6),_0x41b711({'pivot':_0xd1c7c6[_0x2c9192(0x265)]()});}finally{_0xd1c7c6[_0x2c9192(0x1b9)]();}},_0x2226fa=(_0x21e7b8,_0x26128e)=>{_0x28795b&&(_0x35da6d(_0x220448=>{const _0x175842=_0x187c;if(_0x28795b[_0x175842(0x27f)]===_0x175842(0x22a)){let _0x3c89dc=_0x220448[_0x175842(0x392)](_0x28795b['id']),_0x78ab26=_0x3c89dc[_0x175842(0x1c3)]===_0x21e7b8&&_0x3c89dc[_0x175842(0x2ff)]<_0x26128e?_0x26128e-0x1:_0x26128e;_0x220448['updateFieldPosition'](_0x28795b['id'],_0x21e7b8,_0x78ab26);}else go(_0x220448,_0x28795b['id'],_0x21e7b8,_0x26128e);}),_0xadb283(null),_0x39ab19(null));};return _0x2fa798(_0x4e8f7f(0x334),{'className':_0x4e8f7f(0x23e),'children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x284ab6['t'](_0x4e8f7f(0x1d7)),'className':_0x4e8f7f(0x3c9),'items':[{'label':_0x284ab6['t'](_0x4e8f7f(0x31d)),'panelId':_0x4e8f7f(0x1e9),'value':_0x4e8f7f(0x9b)},{'label':_0x284ab6['t'](_0x4e8f7f(0xb4)),'panelId':_0x4e8f7f(0x1d6),'value':_0x4e8f7f(0x2a1)}],'value':_0x384708,'onChange':_0xcc7417}),_0x5628d9(_0x4e8f7f(0x334),{'ref':_0x48b624,'className':_0x37e66c(_0x4e8f7f(0xa0),_0xb0e9d1),'onDragOver':_0x1cbaba=>{const _0x4facfe=_0x4e8f7f;let _0x279160=_0x48b624[_0x4facfe(0xe8)];if(!_0x279160)return;let _0x52de6a=_0x279160[_0x4facfe(0x319)]();_0x1cbaba[_0x4facfe(0x134)]<_0x52de6a['top']+0x30?_0x279160[_0x4facfe(0x28a)]-=0x10:_0x1cbaba[_0x4facfe(0x134)]>_0x52de6a['bottom']-0x30&&(_0x279160[_0x4facfe(0x28a)]+=0x10);},'children':_0x384708==='options'?_0x5628d9(ho,{'config':_0x5c606e,'commit':_0x35da6d}):_0x2fa798(_0x4e8f7f(0x334),{'className':_0x4e8f7f(0x16c),'children':[_0x2fa798(_0x4e8f7f(0x334),{'children':[_0x5628d9(_0x4e8f7f(0x334),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x284ab6['t'](_0x4e8f7f(0x129))}),_0x5628d9(_0x5d579d,{'allowClear':!0x0,'slot':_0x5628d9(_0xa664ad,{}),'value':_0x4c0216,'placeholder':_0x284ab6['t']('bases-dashboard-ui.pivot.searchFields'),'onChange':_0x7fdf2e}),_0x5628d9(_0x4e8f7f(0x334),{'className':_0x4e8f7f(0x1d0),'children':_0x5b6e04[_0x4e8f7f(0x2ea)](_0x59357a=>_0x5628d9(co,{'config':_0x5c606e,'field':_0x59357a,'onAdd':_0x3e1301=>_0x35da6d(_0x3a7852=>go(_0x3a7852,_0x59357a['id'],_0x3e1301,_0x3a7852[_0x4e8f7f(0x121)](_0x3e1301))),'onCheckedChange':_0x4d0dd0=>_0x35da6d(_0x5452e8=>{const _0x5c8322=_0x4e8f7f;let _0xb6b349=_0x5452e8[_0x5c8322(0x21b)](_0x59357a['id']);if(!_0x4d0dd0)_0xb6b349['forEach'](_0x366684=>_0x5452e8[_0x5c8322(0x24f)](_0x366684['getId']()));else{if(_0xb6b349[_0x5c8322(0x193)]===0x0){let _0x1146ac=vo(_0x59357a)?_0x87fd74['Value']:_0x87fd74['Row'];_0x5452e8[_0x5c8322(0xd0)](_0x59357a['id'],_0x1146ac);}}}),'onDragStart':()=>_0xadb283({'kind':_0x4e8f7f(0x136),'id':_0x59357a['id']})},_0x59357a['id']))})]}),_0x5628d9(_0x4e8f7f(0x334),{'className':_0x4e8f7f(0x199),'children':ao[_0x4e8f7f(0x2ea)](_0x51fdad=>_0x5628d9(uo,{'area':_0x51fdad[_0x4e8f7f(0x1c3)],'dropTarget':_0x3d8aa4,'fields':_0x5c606e['pivot'][_0x51fdad[_0x4e8f7f(0x2d0)]],'label':_0x284ab6['t'](_0x51fdad[_0x4e8f7f(0x249)]),'snapshot':_0x5c606e['pivot'],'onDragEnd':()=>{_0xadb283(null),_0x39ab19(null);},'onDragStart':_0x1f30e5=>_0xadb283({'kind':'field','id':_0x1f30e5,'area':_0x51fdad[_0x4e8f7f(0x1c3)]}),'onDragOver':_0x3566bd=>_0x39ab19({'area':_0x51fdad[_0x4e8f7f(0x1c3)],'index':_0x3566bd}),'onDrop':_0xdbf793=>_0x2226fa(_0x51fdad[_0x4e8f7f(0x1c3)],_0xdbf793),'onFilter':_0x523dd0,'onRemove':_0x24001c=>_0x35da6d(_0x591bd2=>_0x591bd2[_0x4e8f7f(0x24f)](_0x24001c)),'onSettings':_0x3dbfce},_0x51fdad['area']))}),_0xfe240e&&_0x5628d9(po,{'fieldId':_0xfe240e,'snapshot':_0x5c606e[_0x4e8f7f(0x106)],'table':_0x561400,'onCancel':()=>_0x523dd0(null),'onCommit':(_0x27566f,_0x3bea7f)=>{_0x35da6d(_0xcf5488=>{const _0x335dbd=_0x187c;let _0x22d602=_0xcf5488[_0x335dbd(0x110)](_0xfe240e),_0x36ef2c=(_0x22d602==null?void 0x0:_0x22d602['items'])??[];_0xcf5488[_0x335dbd(0x157)](_0xfe240e,{'type':_0x829bf6[_0x335dbd(0x254)],'list':_0x27566f,'isAll':_0x27566f[_0x335dbd(0x193)]===_0x36ef2c[_0x335dbd(0x193)]}),_0xcf5488['setSortInfo'](_0xfe240e,_0x3bea7f===void 0x0?void 0x0:{'type':_0x3bea7f});}),_0x523dd0(null);}},_0xfe240e),_0x12e167&&_0x5628d9(mo,{'field':_0x5c606e[_0x4e8f7f(0x106)][_0x4e8f7f(0x347)][_0x12e167],'onCancel':()=>_0x3dbfce(null),'onCommit':(_0x5a500b,_0x275b46,_0x3b9af6)=>{_0x35da6d(_0x39d2f0=>{const _0x2e03b0=_0x187c;_0x39d2f0['renameField'](_0x12e167,_0x5a500b),_0x39d2f0[_0x2e03b0(0x257)](_0x12e167,_0x275b46),_0x39d2f0['setFieldFormat'](_0x12e167,_0x3b9af6||void 0x0);}),_0x3dbfce(null);}},_0x12e167)]})})]});}function co(_0x317278){const _0x3c9374=_0x5d48da;let {config:_0x310c97,field:_0x44eaf1,onAdd:_0x3bfbd0,onCheckedChange:_0x23be0d,onDragStart:_0x4dce6a}=_0x317278,_0xb52867=_0x40463f(_0x1ecd96),_0x3171b7=[...Object['values'](_0x310c97['pivot'][_0x3c9374(0x1b7)]),...Object[_0x3c9374(0x370)](_0x310c97[_0x3c9374(0x106)]['measure'])]['some'](_0x130177=>_0x130177[_0x3c9374(0x275)]===_0x44eaf1['id']),_0x11efb1=ao[_0x3c9374(0x2ea)](_0x37e0e8=>({'type':_0x3c9374(0x321),'children':_0xb52867['t'](yo(_0x37e0e8[_0x3c9374(0x1c3)])),'onSelect':()=>_0x3bfbd0(_0x37e0e8[_0x3c9374(0x1c3)])}));return _0x2fa798(_0x3c9374(0x334),{'draggable':!0x0,'className':_0x3c9374(0x2bc),'onDragStart':_0x4dce6a,'children':[_0x5628d9(_0x1e67fc,{'className':'univer-text-gray-400'}),_0x5628d9(_0x57ed34,{'checked':_0x3171b7,'onChange':_0x218bbf=>_0x23be0d(!!_0x218bbf)}),_0x5628d9(lo,{'field':_0x44eaf1}),_0x5628d9('span',{'className':_0x3c9374(0x3d3),'children':_0x44eaf1[_0x3c9374(0x3d7)]}),_0x5628d9(_0x56bbe5,{'align':'end','items':_0x11efb1,'children':_0x5628d9('span',{'className':_0x3c9374(0x10b),'children':_0x5628d9(_0x3693ad,{})})})]});}function lo({field:_0x5e9071}){const _0x93cda0=_0x5d48da;return vo(_0x5e9071)?_0x5628d9(_0xfa6b5,{'className':_0x93cda0(0x3d1)}):_0x5e9071['type']===_0x3bfbe2[_0x93cda0(0x3ba)]||_0x5e9071[_0x93cda0(0x278)]===_0x3bfbe2[_0x93cda0(0x302)]||_0x5e9071[_0x93cda0(0x278)]===_0x3bfbe2['UpdatedAt']?_0x5628d9(_0x143320,{'className':_0x93cda0(0x3d1)}):_0x5628d9(_0x45f36b,{'className':_0x93cda0(0x3d1)});}function uo(_0x2b8ccf){const _0x2ed79e=_0x5d48da;let {area:_0x50bb75,dropTarget:_0x5dcfb5,fields:_0x31ef59,label:_0x4a5bb8,snapshot:_0x2e5859}=_0x2b8ccf,_0x4ed8f3=_0x40463f(_0x1ecd96);return _0x2fa798(_0x2ed79e(0x111),{'className':_0x37e66c(_0x2ed79e(0x251),_0x3b0e1f),'onDragOver':_0x237797=>{const _0x430a3e=_0x2ed79e;_0x237797['preventDefault'](),_0x2b8ccf[_0x430a3e(0x2cb)](_0x31ef59['length']);},'onDrop':_0x3121b8=>{const _0x6ef66d=_0x2ed79e;_0x3121b8[_0x6ef66d(0x394)](),_0x2b8ccf[_0x6ef66d(0x1a7)]((_0x5dcfb5==null?void 0x0:_0x5dcfb5[_0x6ef66d(0x1c3)])===_0x50bb75?_0x5dcfb5[_0x6ef66d(0x2ff)]:_0x31ef59[_0x6ef66d(0x193)]);},'children':[_0x5628d9(_0x2ed79e(0x334),{'className':_0x2ed79e(0x3dc),'children':_0x4a5bb8}),_0x2fa798(_0x2ed79e(0x334),{'className':_0x2ed79e(0x342),'children':[_0x31ef59[_0x2ed79e(0x2ea)]((_0x29dcbb,_0x593913)=>{const _0x402d76=_0x2ed79e;let _0x1b9a7f=_0x2e5859[_0x402d76(0x1b7)][_0x29dcbb]??_0x2e5859[_0x402d76(0x347)][_0x29dcbb];if(!_0x1b9a7f)return null;let _0x44169f=(_0x5dcfb5==null?void 0x0:_0x5dcfb5['area'])===_0x50bb75&&_0x5dcfb5['index']===_0x593913;return _0x2fa798(_0x402d76(0x334),{'onDragOver':_0x3eeed8=>{const _0x54a4ea=_0x402d76;_0x3eeed8[_0x54a4ea(0x394)](),_0x3eeed8[_0x54a4ea(0xf7)]();let _0x50b279=_0x3eeed8[_0x54a4ea(0x3c6)]['getBoundingClientRect']();_0x2b8ccf[_0x54a4ea(0x2cb)](_0x593913+ +(_0x3eeed8[_0x54a4ea(0x134)]>_0x50b279[_0x54a4ea(0x171)]+_0x50b279[_0x54a4ea(0x22b)]/0x2));},'onDrop':_0x555bdc=>{const _0x1550ea=_0x402d76;_0x555bdc[_0x1550ea(0x394)](),_0x555bdc[_0x1550ea(0xf7)](),_0x2b8ccf['onDrop']((_0x5dcfb5==null?void 0x0:_0x5dcfb5[_0x1550ea(0x1c3)])===_0x50bb75?_0x5dcfb5['index']:_0x593913);},'children':[_0x44169f&&_0x5628d9('div',{'className':_0x402d76(0x3e4)}),_0x5628d9(fo,{'area':_0x50bb75,'field':_0x1b9a7f,'onDragEnd':_0x2b8ccf[_0x402d76(0x37f)],'onDragStart':()=>_0x2b8ccf[_0x402d76(0x293)](_0x29dcbb),'onFilter':()=>_0x2b8ccf[_0x402d76(0x12a)](_0x29dcbb),'onRemove':()=>_0x2b8ccf[_0x402d76(0x245)](_0x29dcbb),'onSettings':()=>_0x2b8ccf[_0x402d76(0x387)](_0x29dcbb)})]},_0x29dcbb);}),(_0x5dcfb5==null?void 0x0:_0x5dcfb5[_0x2ed79e(0x1c3)])===_0x50bb75&&_0x5dcfb5[_0x2ed79e(0x2ff)]===_0x31ef59[_0x2ed79e(0x193)]&&_0x5628d9(_0x2ed79e(0x334),{'className':_0x2ed79e(0x3e4)}),_0x31ef59['length']===0x0&&_0x5628d9('div',{'className':_0x2ed79e(0x3d4),'children':_0x4ed8f3['t'](_0x2ed79e(0x32a))})]})]});}function fo(_0x56ffc7){const _0x163aef=_0x5d48da;let _0x21f844=_0x40463f(_0x1ecd96),_0x5bd94b=_0x56ffc7[_0x163aef(0x1c3)]===_0x87fd74['Value'],_0x325f9a=[{'type':_0x163aef(0x321),'children':_0x21f844['t'](_0x163aef(0x3c2)),'onSelect':_0x56ffc7['onRemove']},{'type':_0x163aef(0x321),'children':_0x21f844['t'](_0x5bd94b?_0x163aef(0x2e7):_0x163aef(0x28f)),'onSelect':_0x5bd94b?_0x56ffc7[_0x163aef(0x387)]:_0x56ffc7[_0x163aef(0x12a)]}];return _0x2fa798(_0x163aef(0x334),{'draggable':!0x0,'className':_0x163aef(0x3a2),'onDragEnd':_0x56ffc7['onDragEnd'],'onDragStart':_0x56ffc7[_0x163aef(0x293)],'children':[_0x5628d9(_0x1e67fc,{'className':_0x163aef(0x3d1)}),_0x5628d9(_0x2f0618,{'title':_0x56ffc7[_0x163aef(0x22a)]['displayName'],'children':_0x5628d9(_0x163aef(0x339),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x56ffc7[_0x163aef(0x22a)][_0x163aef(0x3bd)]})}),_0x5628d9(_0x56bbe5,{'align':_0x163aef(0x1ed),'items':_0x325f9a,'children':_0x5628d9(_0x163aef(0x339),{'className':_0x163aef(0x10b),'children':_0x5628d9(_0x3693ad,{})})})]});}function po(_0x3ad3b2){const _0x30bd79=_0x5d48da;var _0x30b9a2,_0x123059;let _0x2b5abe=_0x40463f(_0x1ecd96),{format:_0x2751ad,items:_0x1cf29a,itemTypes:_0x55980c}=_0x5c672b(()=>{const _0x1f5141=_0x187c;let _0xbe2796=_0x2a70ba(_0x3ad3b2[_0x1f5141(0x2d3)],_0x3ad3b2['snapshot']);try{let _0x40ac64=_0xbe2796[_0x1f5141(0x110)](_0x3ad3b2['fieldId']);return{'format':_0x40ac64==null?void 0x0:_0x40ac64[_0x1f5141(0x231)],'items':[...(_0x40ac64==null?void 0x0:_0x40ac64[_0x1f5141(0x252)])??[]],'itemTypes':[...(_0x40ac64==null?void 0x0:_0x40ac64['itemTypes'])??[]]};}finally{_0xbe2796['dispose']();}},[_0x3ad3b2[_0x30bd79(0x221)],_0x3ad3b2['snapshot'],_0x3ad3b2[_0x30bd79(0x2d3)]]),_0x2c09bd=(_0x30b9a2=_0x3ad3b2[_0x30bd79(0x2f9)]['dimension'][_0x3ad3b2['fieldId']])==null?void 0x0:_0x30b9a2[_0x30bd79(0x223)],[_0x3e20c9,_0xdd2514]=_0x4ebd7a((_0x2c09bd==null?void 0x0:_0x2c09bd[_0x30bd79(0x278)])===_0x829bf6['ManualFilter']?_0x2c09bd[_0x30bd79(0x2c1)]:_0x1cf29a),[_0x539b14,_0x4ecba9]=_0x4ebd7a((_0x123059=_0x3ad3b2[_0x30bd79(0x2f9)][_0x30bd79(0x1b7)][_0x3ad3b2[_0x30bd79(0x221)]])==null||(_0x123059=_0x123059[_0x30bd79(0xb3)])==null?void 0x0:_0x123059[_0x30bd79(0x278)]),_0x4ca8cb=_0x3e20c9['length']===_0x1cf29a[_0x30bd79(0x193)];return _0x2fa798(_0x30bd79(0x111),{'className':_0x37e66c(_0x30bd79(0x33e),_0x3b0e1f),'children':[_0x5628d9(_0x30bd79(0x334),{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0x2b5abe['t']('bases-dashboard-ui.pivot.filterField')}),_0x2fa798('div',{'className':_0x30bd79(0x19b),'children':[_0x2fa798(_0x101ca4,{'className':_0x30bd79(0x3c7),'variant':_0x539b14===_0x1b5f3a[_0x30bd79(0x198)]?_0x30bd79(0x22d):_0x30bd79(0x18c),'onClick':()=>_0x4ecba9(_0x1b5f3a[_0x30bd79(0x198)]),'children':[_0x5628d9(_0x558ec6,{}),_0x2b5abe['t'](_0x30bd79(0x28c))]}),_0x2fa798(_0x101ca4,{'className':_0x30bd79(0x3c7),'variant':_0x539b14===_0x1b5f3a[_0x30bd79(0x19c)]?_0x30bd79(0x22d):'default','onClick':()=>_0x4ecba9(_0x1b5f3a[_0x30bd79(0x19c)]),'children':[_0x5628d9(_0x3c94ed,{}),_0x2b5abe['t'](_0x30bd79(0x2a8))]})]}),_0x2fa798(_0x30bd79(0x334),{'className':_0x30bd79(0x311),'children':[_0x2fa798(_0x30bd79(0x249),{'className':_0x30bd79(0xca),'children':[_0x5628d9(_0x57ed34,{'checked':_0x4ca8cb,'indeterminate':_0x3e20c9[_0x30bd79(0x193)]>0x0&&!_0x4ca8cb,'onChange':()=>_0xdd2514(_0x4ca8cb?[]:_0x1cf29a)}),_0x2b5abe['t'](_0x30bd79(0x233))]}),_0x1cf29a[_0x30bd79(0x2ea)]((_0x3ec416,_0x3a68d1)=>_0x2fa798(_0x30bd79(0x249),{'className':_0x30bd79(0xca),'children':[_0x5628d9(_0x57ed34,{'checked':_0x3e20c9[_0x30bd79(0x292)](_0x3ec416),'onChange':()=>_0xdd2514(_0xfd95b9=>_0xfd95b9[_0x30bd79(0x292)](_0x3ec416)?_0xfd95b9['filter'](_0xa46608=>_0xa46608!==_0x3ec416):[..._0xfd95b9,_0x3ec416])}),_0x5628d9(_0x30bd79(0x339),{'className':_0x30bd79(0xae),'children':_o(_0x3ec416,_0x55980c[_0x3a68d1],_0x2751ad,_0x2b5abe['t'](_0x30bd79(0x11b)))})]},_0x3ec416))]}),_0x2fa798(_0x30bd79(0x334),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[_0x5628d9(_0x101ca4,{'variant':_0x30bd79(0x2ca),'onClick':()=>_0x3ad3b2[_0x30bd79(0x211)](_0x1cf29a,_0x539b14),'children':_0x2b5abe['t'](_0x30bd79(0x240))}),_0x2fa798(_0x30bd79(0x334),{'className':_0x30bd79(0x316),'children':[_0x5628d9(_0x101ca4,{'onClick':_0x3ad3b2[_0x30bd79(0x2db)],'children':_0x2b5abe['t'](_0x30bd79(0x2e6))}),_0x5628d9(_0x101ca4,{'variant':_0x30bd79(0x22d),'disabled':_0x3e20c9['length']===0x0,'onClick':()=>_0x3ad3b2['onCommit'](_0x3e20c9,_0x539b14),'children':_0x2b5abe['t'](_0x30bd79(0xdd))})]})]})]});}function mo(_0xb4f96a){const _0x2db665=_0x5d48da;var _0x58406a,_0x5cba29,_0x239a83;let _0x165dfd=_0x40463f(_0x1ecd96),[_0x1f7f11,_0x1e64c4]=_0x4ebd7a(((_0x58406a=_0xb4f96a[_0x2db665(0x22a)])==null?void 0x0:_0x58406a[_0x2db665(0x3bd)])??''),[_0x52d846,_0x53e38b]=_0x4ebd7a(((_0x5cba29=_0xb4f96a[_0x2db665(0x22a)])==null?void 0x0:_0x5cba29[_0x2db665(0x35e)])??_0x3bfa9b[_0x2db665(0x381)]),[_0x16ec1e,_0x30bf27]=_0x4ebd7a(((_0x239a83=_0xb4f96a[_0x2db665(0x22a)])==null?void 0x0:_0x239a83[_0x2db665(0x231)])??'');return _0xb4f96a[_0x2db665(0x22a)]?_0x2fa798('section',{'className':_0x37e66c(_0x2db665(0x23a),_0x3b0e1f),'children':[_0x5628d9('div',{'className':_0x2db665(0x2d1),'children':_0x165dfd['t']('bases-dashboard-ui.pivot.fieldSettings')}),_0x2fa798('label',{'className':_0x2db665(0x10f),'children':[_0x165dfd['t']('bases-dashboard-ui.pivot.displayName'),_0x5628d9(_0x5d579d,{'value':_0x1f7f11,'onChange':_0x1e64c4})]}),_0x2fa798(_0x2db665(0x249),{'className':_0x2db665(0x10f),'children':[_0x165dfd['t'](_0x2db665(0x3ac)),_0x5628d9(_0x701e3d,{'value':String(_0x52d846),'options':oo[_0x2db665(0x2ea)](_0x5bcc8a=>({'value':String(_0x5bcc8a[_0x2db665(0x32d)]),'label':_0x165dfd['t'](_0x5bcc8a['localeKey'])})),'onChange':_0x5be54c=>{const _0x497068=_0x2db665;let _0x24e110=oo['find'](_0x4fc3a2=>String(_0x4fc3a2[_0x497068(0x32d)])===_0x5be54c);_0x24e110&&_0x53e38b(_0x24e110[_0x497068(0x32d)]);}})]}),_0x2fa798('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x165dfd['t']('bases-dashboard-ui.pivot.numberFormat'),_0x5628d9(_0x5d579d,{'value':_0x16ec1e,'onChange':_0x30bf27})]}),_0x2fa798(_0x2db665(0x334),{'className':_0x2db665(0x15f),'children':[_0x5628d9(_0x101ca4,{'onClick':_0xb4f96a[_0x2db665(0x2db)],'children':_0x165dfd['t'](_0x2db665(0x2e6))}),_0x5628d9(_0x101ca4,{'variant':_0x2db665(0x22d),'disabled':!_0x1f7f11[_0x2db665(0x1b4)](),'onClick':()=>_0xb4f96a['onCommit'](_0x1f7f11[_0x2db665(0x1b4)](),_0x52d846,_0x16ec1e),'children':_0x165dfd['t'](_0x2db665(0xdd))})]})]}):null;}function ho(_0x3bf3d4){const _0x508911=_0x5d48da;let {config:_0x47e7d7,commit:_0x4c94fc}=_0x3bf3d4,_0xbadeae=_0x40463f(_0x1ecd96),_0x1c7b69=_0x47e7d7[_0x508911(0x106)]['options'],_0x3fd2b6=_0x2fa89f=>_0x4c94fc(_0x9ebeb8=>_0x9ebeb8[_0x508911(0x3ec)]({..._0x9ebeb8[_0x508911(0x1f8)](),..._0x2fa89f}));return _0x2fa798(_0x508911(0x334),{'className':_0x508911(0x16c),'children':[_0x2fa798(_0x508911(0x249),{'className':_0x508911(0x238),'children':[_0xbadeae['t'](_0x508911(0x2e4)),_0x5628d9(_0x701e3d,{'className':'univer-w-36','value':String(_0x47e7d7[_0x508911(0x106)][_0x508911(0x3e1)]),'options':[{'value':String(_0xd936c5[_0x508911(0x116)]),'label':_0xbadeae['t'](_0x508911(0x114))},{'value':String(_0xd936c5[_0x508911(0xbd)]),'label':_0xbadeae['t'](_0x508911(0x1e1))},{'value':String(_0xd936c5[_0x508911(0x270)]),'label':_0xbadeae['t'](_0x508911(0x2f7))}],'onChange':_0x42b8e2=>{const _0x14a036=_0x508911;let _0x4fd45b=[_0xd936c5[_0x14a036(0x116)],_0xd936c5['compact'],_0xd936c5[_0x14a036(0x270)]]['find'](_0x33d343=>String(_0x33d343)===_0x42b8e2);_0x4fd45b!==void 0x0&&_0x4c94fc(_0x57e256=>_0x57e256['setLayout'](_0x4fd45b));}})]}),[{'key':_0x508911(0x162),'label':_0x508911(0x1a5),'defaultValue':!0x1},{'key':_0x508911(0x2cd),'label':'bases-dashboard-ui.pivot.repeatColumnLabels','defaultValue':!0x1},{'key':_0x508911(0x2f3),'label':_0x508911(0x1a3),'defaultValue':!0x0},{'key':'showRowGrandTotal','label':_0x508911(0xa1),'defaultValue':!0x0},{'key':_0x508911(0x2ef),'label':'bases-dashboard-ui.pivot.showColumnSubtotal','defaultValue':!0x0},{'key':_0x508911(0x241),'label':_0x508911(0x3af),'defaultValue':!0x0}][_0x508911(0x2ea)](_0x5aec9a=>_0x2fa798(_0x508911(0x249),{'className':_0x508911(0x3c8),'children':[_0x5628d9(_0x57ed34,{'checked':!!(_0x1c7b69[_0x5aec9a[_0x508911(0x2d0)]]??_0x5aec9a[_0x508911(0x2b8)]),'disabled':_0x5aec9a[_0x508911(0x2d0)]===_0x508911(0x162)&&_0x47e7d7[_0x508911(0x106)][_0x508911(0x3e1)]===_0xd936c5[_0x508911(0xbd)],'onChange':_0x387ae9=>_0x3fd2b6({[_0x5aec9a[_0x508911(0x2d0)]]:!!_0x387ae9})}),_0xbadeae['t'](_0x5aec9a[_0x508911(0x249)])]},_0x5aec9a['key'])),_0x47e7d7[_0x508911(0x106)][_0x508911(0x3e1)]===_0xd936c5[_0x508911(0x270)]&&_0x2fa798(_0x508911(0x249),{'className':_0x508911(0x238),'children':[_0xbadeae['t'](_0x508911(0x328)),_0x5628d9(_0x701e3d,{'className':_0x508911(0x167),'value':String(_0x1c7b69[_0x508911(0x318)]??_0x551070[_0x508911(0x171)]),'options':[{'value':String(_0x551070['top']),'label':_0xbadeae['t'](_0x508911(0x132))},{'value':String(_0x551070['bottom']),'label':_0xbadeae['t'](_0x508911(0x26b))}],'onChange':_0x1399c7=>{const _0x2704ec=_0x508911;let _0x1744c0=[_0x551070['top'],_0x551070[_0x2704ec(0xdc)]][_0x2704ec(0x153)](_0x3b8d38=>String(_0x3b8d38)===_0x1399c7);_0x1744c0!==void 0x0&&_0x3fd2b6({'rowSubtotalPosition':_0x1744c0});}})]}),_0x2fa798(_0x508911(0x249),{'className':_0x508911(0x238),'children':[_0xbadeae['t']('bases-dashboard-ui.pivot.valuePosition'),_0x5628d9(_0x701e3d,{'className':_0x508911(0x167),'value':String(_0x47e7d7['pivot']['valuePosition']===_0x3fa86b['None']?_0x3fa86b[_0x508911(0x200)]:_0x47e7d7[_0x508911(0x106)][_0x508911(0x3ca)]),'options':[{'value':String(_0x3fa86b[_0x508911(0x200)]),'label':_0xbadeae['t'](_0x508911(0x1a4))},{'value':String(_0x3fa86b['Row']),'label':_0xbadeae['t'](_0x508911(0xce))}],'onChange':_0x5e5478=>{const _0x51cea2=_0x508911;let _0x487a22=[_0x3fa86b[_0x51cea2(0x200)],_0x3fa86b['Row']]['find'](_0x3df4ee=>String(_0x3df4ee)===_0x5e5478);_0x487a22!==void 0x0&&_0x4c94fc(_0x4e2d07=>_0x4e2d07['updateValuePosition'](_0x487a22,_0x4e2d07[_0x51cea2(0x2a0)]()<0x0?0x0:_0x4e2d07[_0x51cea2(0x2a0)]()));}})]}),_0x2fa798(_0x508911(0x249),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0xbadeae['t']('bases-dashboard-ui.pivot.pageWrap'),_0x5628d9(_0x57c888,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x1c7b69[_0x508911(0x3ae)]??0x1,'onChange':_0xb09cd7=>{const _0x7dd5cc=_0x508911;let _0x405912=Number(_0xb09cd7);Number[_0x7dd5cc(0x206)](_0x405912)&&_0x405912>=0x1&&_0x3fd2b6({'pageWrap':_0x405912});}})]}),_0x2fa798('label',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0xbadeae['t'](_0x508911(0xe3)),_0x5628d9(_0x701e3d,{'className':'univer-w-36','value':String(_0x1c7b69[_0x508911(0x188)]??!0x1),'options':[{'value':_0x508911(0xf6),'label':_0xbadeae['t'](_0x508911(0x18d))},{'value':_0x508911(0x1da),'label':_0xbadeae['t'](_0x508911(0x3a3))}],'onChange':_0x573e63=>_0x3fd2b6({'pageOverThenDown':_0x573e63==='true'})})]})]});}function go(_0x4fea19,_0x438192,_0x40e062,_0x320b83){const _0x44bb6c=_0x5d48da;let _0x325915=_0x4fea19[_0x44bb6c(0x21b)](_0x438192)[_0x44bb6c(0x153)](_0x12662f=>_0x4fea19['getFieldPositionInfoById'](_0x12662f[_0x44bb6c(0x2ce)]())[_0x44bb6c(0x1c3)]!==_0x87fd74[_0x44bb6c(0x24b)]);_0x40e062!==_0x87fd74['Value']&&_0x325915?_0x4fea19[_0x44bb6c(0x150)](_0x325915[_0x44bb6c(0x2ce)](),_0x40e062,_0x320b83):_0x4fea19['addFieldWithSourceId'](_0x438192,_0x40e062,_0x320b83);}function _o(_0x31f3ed,_0x531b9f,_0x4f37b5,_0x325ede){const _0x378272=_0x5d48da;return _0x531b9f===_0xd2fae4[_0x378272(0x1d1)]?_0x325ede:_0x531b9f===_0xd2fae4['date']&&_0x4f37b5?_0x52ec2b[_0x378272(0x231)](_0x4f37b5,Number(_0x31f3ed)):_0x31f3ed;}function vo(_0x34e402){const _0xd03e20=_0x5d48da;return _0x34e402[_0xd03e20(0x278)]===_0x3bfbe2[_0xd03e20(0x14f)]||_0x34e402[_0xd03e20(0x278)]===_0x3bfbe2[_0xd03e20(0x2d5)]||_0x34e402['type']===_0x3bfbe2[_0xd03e20(0x38a)]||_0x34e402['type']===_0x3bfbe2[_0xd03e20(0x393)];}function yo(_0x51dd41){const _0x3a7fd7=_0x5d48da;switch(_0x51dd41){case _0x87fd74[_0x3a7fd7(0x21e)]:return _0x3a7fd7(0x19a);case _0x87fd74[_0x3a7fd7(0x200)]:return _0x3a7fd7(0x284);case _0x87fd74[_0x3a7fd7(0x24b)]:return _0x3a7fd7(0x21d);default:return'bases-dashboard-ui.pivot.addToFilter';}}function bo({config:_0x5ba92f,onChange:_0x4c411f,runtime:_0xfedd9d,table:_0x54c544}){const _0x1006bb=_0x5d48da;let _0x564b76=_0x40463f(_0x1ecd96),[_0x3bce83,_0x3d0283]=_0x4ebd7a(_0x1006bb(0x204));return _0x2fa798(_0x1006bb(0x3da),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-96\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x5628d9(_0x46e44d,{'ariaLabel':_0x564b76['t'](_0x1006bb(0x20c)),'className':_0x1006bb(0x217),'items':[{'label':_0x564b76['t'](_0x1006bb(0x172)),'panelId':_0x1006bb(0x2ed),'value':_0x1006bb(0x204)},{'label':_0x564b76['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'panelId':_0x1006bb(0x1c8),'value':_0x1006bb(0x106)}],'value':_0x3bce83,'variant':_0x1006bb(0x1d2),'onChange':_0x3d0283}),_0x5628d9(_0x1006bb(0x334),{'className':_0x1006bb(0x213),'children':_0x3bce83===_0x1006bb(0x204)?_0xfedd9d&&_0x5628d9(ma,{'config':_0x5ba92f,'runtime':_0xfedd9d,'tableName':_0x54c544[_0x1006bb(0x3d7)],'onChange':_0x4c411f}):_0x5628d9(so,{'config':_0x5ba92f,'table':_0x54c544,'onChange':_0x4c411f})})]});}function xo({tableId:_0x196ea7,unitId:_0xb95277,viewId:_0x4a9b2e}){const _0x2518f6=_0x5d48da;let _0x57d4ee=_0x40463f(_0x1e6f93),_0x29f593=_0x40463f(_0x4829da),_0xd14c90=_0x40463f(_0x53f9ce),_0x21b765=_0x40463f(_0x1ecd96),_0x398f99=_0x40463f(_0x2cf236),[_0x3cd74d,_0x3caaf4]=_0x4ebd7a(null),[_0x4d39aa,_0x43cb76]=_0x4ebd7a(null),_0x5a5f2b=_0x25fc59(_0x2518f6(0x118)+_0x2cedf9(0x8)),[_0x29f4b8,_0x517ea8]=_0x4ebd7a(!0x1),_0x3866ac=_0x29f593[_0x2518f6(0x17d)](_0xb95277,_0x247fc0[_0x2518f6(0x324)]),_0x1d788c=_0x3866ac==null?void 0x0:_0x3866ac[_0x2518f6(0x3e8)]()[_0x2518f6(0x3b5)][_0x196ea7],_0x4cd4f5=_0x1d788c==null?void 0x0:_0x1d788c['views'][_0x4a9b2e],_0x21f54b=So(_0x4cd4f5),_0x5c6939=yr(_0xb95277,_0x196ea7,_0x4a9b2e);if(_0x185176(()=>{const _0x321f81=_0x2518f6;if(!_0x21f54b)return;let _0x4214b2=_0x5a5f2b[_0x321f81(0xe8)];return _0x398f99[_0x321f81(0x1fe)](_0x4214b2,{'unitId':_0xb95277,'tableId':_0x196ea7,'viewId':_0x4a9b2e,'filters':[]}),()=>{const _0xdab2f=_0x321f81;_0x398f99[_0xdab2f(0x3e0)](_0xb95277,_0x4214b2);};},[_0x21f54b,_0x398f99,_0x196ea7,_0xb95277,_0x4a9b2e]),_0x185176(()=>{const _0x568035=_0x2518f6;if(!So(_0x4cd4f5))return;let _0x416e7d=!0x0,_0x129730={'unitId':_0xb95277,'tableId':_0x196ea7,'viewId':_0x4a9b2e,'filters':[_0x4cd4f5[_0x568035(0x122)]??null]};return _0x398f99[_0x568035(0x276)](_0xb95277,_0x5a5f2b['current'],_0x129730)['then'](_0x3d2e8c=>{_0x416e7d&&_0x3d2e8c&&(_0x3caaf4(_0x3d2e8c),_0x43cb76(_0x398f99['getChartRuntime'](_0xb95277,_0x5a5f2b['current'])??null),_0x517ea8(!0x1));})['catch'](_0x2dfe3b=>{const _0x186166=_0x568035;_0xd14c90[_0x186166(0x1a0)](_0x186166(0x30d),_0x2dfe3b),_0x416e7d&&(_0x3caaf4(null),_0x517ea8(!0x0));}),()=>{_0x416e7d=!0x1;};},[_0xd14c90,_0x398f99,_0x196ea7,_0xb95277,_0x4cd4f5,_0x4a9b2e]),!_0x1d788c||!So(_0x4cd4f5))return null;let _0x425a58=_0x398f99['getChartRuntime'](_0xb95277,_0x5a5f2b[_0x2518f6(0xe8)])===_0x4d39aa?_0x4d39aa:null,_0x3a9441=_0x3cd74d?_0x2fa798(_0x2518f6(0x334),{'className':_0x2518f6(0x377),'style':{'gridTemplateRows':_0x4cd4f5[_0x2518f6(0xa7)][_0x2518f6(0x31a)]==='chart-and-table'?_0x2518f6(0x346):'minmax(0,\x201fr)'},'children':[_0x4cd4f5['config']['displayMode']!==_0x2518f6(0x2d3)&&_0x425a58&&_0x5628d9('div',{'className':_0x2518f6(0x3d5),'children':_0x5628d9(Rr,{'isRowDirection':_0x1aba1a(_0x4cd4f5[_0x2518f6(0xa7)][_0x2518f6(0x204)][_0x2518f6(0x1e8)]),'runtime':_0x425a58})}),_0x4cd4f5[_0x2518f6(0xa7)][_0x2518f6(0x31a)]!==_0x2518f6(0x204)&&_0x5628d9(_0x2518f6(0x334),{'className':_0x2518f6(0x24e),'children':_0x5628d9(ji,{'pivot':_0x4cd4f5[_0x2518f6(0xa7)][_0x2518f6(0x106)],'view':_0x3cd74d[_0x2518f6(0x29c)]})})]}):_0x5628d9('div',{'className':_0x2518f6(0x3aa),'children':_0x29f4b8?_0x21b765['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x21b765['t']('bases-dashboard-ui.pivot.calculating')});return _0x2fa798(_0x2518f6(0x334),{'className':_0x2518f6(0x290),'children':[_0x5628d9(_0x2518f6(0x334),{'className':_0x2518f6(0x17c),'children':_0x3a9441}),_0x5c6939&&_0x5628d9(bo,{'config':_0x4cd4f5[_0x2518f6(0xa7)],'runtime':_0x425a58,'table':_0x1d788c,'onChange':_0x334a47=>{const _0x3f5043=_0x2518f6;_0x57d4ee[_0x3f5043(0x3e3)](_0x173771['id'],{'unitId':_0xb95277,'tableId':_0x196ea7,'viewId':_0x4a9b2e,'patch':_0x334a47})[_0x3f5043(0x26d)](_0x4c806a=>_0xd14c90[_0x3f5043(0x1a0)](_0x3f5043(0x1b6),_0x4c806a));}})]});}function So(_0x1c7c16){const _0x297745=_0x5d48da;return(_0x1c7c16==null?void 0x0:_0x1c7c16[_0x297745(0x278)])===_0xc74f11[_0x297745(0xe1)]&&typeof _0x1c7c16[_0x297745(0xa7)]==_0x297745(0x262)&&_0x1c7c16[_0x297745(0xa7)]!==null&&_0x297745(0x106)in _0x1c7c16['config']&&_0x297745(0x204)in _0x1c7c16['config']&&_0x297745(0x31a)in _0x1c7c16[_0x297745(0xa7)];}let Co=class extends _0x419e57{constructor(_0x2c0e23,_0x3c9994,_0x715b75,_0x5e0bd9,_0x30d75f,_0x31867a){const _0x10185c=_0x5d48da;super(),this[_0x10185c(0x1dc)](_0x3c9994[_0x10185c(0x343)]({'type':_0xc74f11[_0x10185c(0xe1)],'renderMode':_0x10185c(0x255),'icon':_0x55ff4b,'component':xo,'menu':{get 'label'(){const _0x3e8ff4=_0x10185c;return _0x31867a['t'](_0x3e8ff4(0x20c));},get 'description'(){return _0x31867a['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){const _0x530b4d=_0x10185c;return _0x31867a['t'](_0x530b4d(0x2d8));}}})),this[_0x10185c(0x1dc)](_0x2c0e23['register'](wo(_0x715b75,_0x5e0bd9,_0x30d75f,_0x31867a)));}};Co=Ar([Y(0x0,_0x5b5009),Y(0x1,_0x414da1),Y(0x2,_0x2d5804(_0x3a16be)),Y(0x3,_0x1e6f93),Y(0x4,_0x100697),Y(0x5,_0x2d5804(_0x1ecd96))],Co);function _0x187c(_0x9f099f,_0x203d0e){_0x9f099f=_0x9f099f-0x9a;const _0x1f688e=_0x1f68();let _0x187c20=_0x1f688e[_0x9f099f];return _0x187c20;}function wo(_0x434256,_0x175cd5,_0x58dd2f,_0x355255){const _0x493f81=_0x5d48da;return{'change$':_0x5f1bfe(_0x434256['change$'],_0x58dd2f[_0x493f81(0x27a)]),'component':Xa,get 'labels'(){const _0x3096ff=_0x493f81;return{'add':_0x355255['t']('bases-dashboard-ui.dashboard.add'),'configure':_0x1ccedb=>_0x355255['t'](_0x3096ff(0x364),_0x1ccedb),'delete':_0x355255['t']('bases-dashboard-ui.dashboard.delete'),'new':_0x355255['t'](_0x3096ff(0x234)),'rename':_0x355255['t'](_0x3096ff(0x357)),'search':_0x355255['t']('bases-dashboard-ui.dashboard.search'),'section':_0x355255['t'](_0x3096ff(0x303))};},'getItems':_0x287529=>{const _0x4ecd86=_0x493f81;let _0xd7cdbb=_0x434256[_0x4ecd86(0xc1)](_0x287529);return _0xd7cdbb['dashboardOrder']['flatMap'](_0xb98674=>{const _0x3636af=_0x4ecd86;let _0x2ddb62=_0xd7cdbb['dashboards'][_0xb98674];return _0x2ddb62?[{'id':_0x2ddb62['id'],'name':_0x2ddb62[_0x3636af(0x3d7)],'readonly':!_0x5706cb(_0x58dd2f,_0x287529,_0x2ddb62['id'])}]:[];});},'create':async _0x53f19b=>{const _0x409b72=_0x493f81;let _0x53278c=_0x434256[_0x409b72(0xc1)](_0x53f19b),_0x10ff23=_0x409b72(0x25d)+_0x2cedf9(0x8),_0x472a6b=To(_0x53278c[_0x409b72(0xd4)][_0x409b72(0x1ac)](_0x180f8e=>{const _0x22bce0=_0x409b72;let _0x1406f6=_0x53278c['dashboards'][_0x180f8e];return _0x1406f6?[_0x1406f6[_0x22bce0(0x3d7)]]:[];}),_0xd3766c=>_0x355255['t'](_0x409b72(0xc0),String(_0xd3766c)));return await _0x175cd5[_0x409b72(0x3e3)](_0x4764c4['id'],{'unitId':_0x53f19b,'dashboard':{'id':_0x10ff23,'name':_0x472a6b,'widgetOrder':[],'widgets':{}}})?_0x10ff23:null;},'rename':async(_0x19767c,_0x15322f,_0x8ba776)=>{const _0x3666a8=_0x493f81;let _0x3823b7=_0x434256[_0x3666a8(0x18b)](_0x19767c,_0x15322f);return!!(_0x3823b7&&await _0x175cd5[_0x3666a8(0x3e3)](_0x1e3e1b['id'],{'unitId':_0x19767c,'dashboard':{..._0x3823b7,'name':_0x8ba776}}));},'remove':(_0x3b8b17,_0xa245bb)=>_0x175cd5[_0x493f81(0x3e3)](_0x391460['id'],{'unitId':_0x3b8b17,'dashboardId':_0xa245bb})};}function To(_0x4d7f12,_0x422f1a){const _0x5b7964=_0x5d48da;let _0x194faf=new Set(_0x4d7f12),_0x391e73=_0x194faf[_0x5b7964(0x3bc)]+0x1,_0x4812fc=_0x422f1a(_0x391e73);for(;_0x194faf['has'](_0x4812fc);)_0x391e73+=0x1,_0x4812fc=_0x422f1a(_0x391e73);return _0x4812fc;}let Eo=class extends _0x1ea012{constructor(_0x55d3b7=_r,_0x2c001a,_0x4ccc68){const _0x1d28fe=_0x5d48da;super(),this['_config']=_0x55d3b7,this[_0x1d28fe(0xbf)]=_0x2c001a,this['_configService']=_0x4ccc68;let {..._0x131bf2}=_0x362ea8({},_r,this[_0x1d28fe(0x1b1)]);this[_0x1d28fe(0xc6)][_0x1d28fe(0x340)](gr,_0x131bf2);}[_0x5d48da(0x3a1)](){const _0x425116=_0x5d48da;this[_0x425116(0xbf)][_0x425116(0x1bf)]([jr]),this[_0x425116(0xbf)][_0x425116(0x1bf)]([qr]),this[_0x425116(0xbf)][_0x425116(0x1bf)]([Co]);}[_0x5d48da(0x187)](){_0xe4152(this['_injector'],[[jr],[qr],[Co]]);}};Ir(Eo,_0x5d48da(0x278),_0x247fc0[_0x5d48da(0x324)]),Ir(Eo,_0x5d48da(0x299),'BASE_DASHBOARD_UI_PLUGIN'),Ir(Eo,_0x5d48da(0x37d),mr),Ir(Eo,_0x5d48da(0x1ae),hr),Eo=Ar([_0xb94e7b(_0x5d1ed0,_0x7e7509,_0x408ea8,_0x41f191,_0xff803e,_0x175601),Y(0x1,_0x2d5804(_0x3c350b)),Y(0x2,_0x8e960e)],Eo);export{ia as UniverBaseDashboardMobileUIPlugin,Eo as UniverBaseDashboardUIPlugin};
|