@univerjs-pro/bases-dashboard-ui 1.0.1 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/cs-CZ.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/nl-NL.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/th-TH.js +1 -1
- package/lib/cjs/locale/tr-TR.js +1 -1
- package/lib/cjs/locale/uk-UA.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/cs-CZ.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/nl-NL.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/th-TH.js +1 -1
- package/lib/es/locale/tr-TR.js +1 -1
- package/lib/es/locale/uk-UA.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/cs-CZ.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/nl-NL.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/th-TH.js +1 -1
- package/lib/locale/tr-TR.js +1 -1
- package/lib/locale/uk-UA.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/cs-CZ.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/nl-NL.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/th-TH.js +1 -1
- package/lib/umd/locale/tr-TR.js +1 -1
- package/lib/umd/locale/uk-UA.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +18 -18
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3447f8=_0x1596;(function(_0x4569f3,_0xdc0e1a){const _0x47caef=_0x1596,_0x633aa1=_0x4569f3();while(!![]){try{const _0x309319=-parseInt(_0x47caef(0x222))/0x1+-parseInt(_0x47caef(0x1af))/0x2+parseInt(_0x47caef(0x3d8))/0x3*(parseInt(_0x47caef(0x3ac))/0x4)+parseInt(_0x47caef(0x16c))/0x5+-parseInt(_0x47caef(0x39c))/0x6*(parseInt(_0x47caef(0x13b))/0x7)+parseInt(_0x47caef(0x182))/0x8*(-parseInt(_0x47caef(0xf6))/0x9)+parseInt(_0x47caef(0x38b))/0xa*(parseInt(_0x47caef(0x185))/0xb);if(_0x309319===_0xdc0e1a)break;else _0x633aa1['push'](_0x633aa1['shift']());}catch(_0x5e4984){_0x633aa1['push'](_0x633aa1['shift']());}}}(_0x3448,0xe8d33));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x35833c,BASES_DASHBOARD_GRID_COLUMNS as _0x25ec11,BaseChartRuntimeService as _0x2cc67a,BaseDashboardResourceService as _0x4e6cdd,BaseDashboardWidgetType as _0x28a714,CreateBaseDashboardCommand as _0x15bed1,DeleteBaseDashboardCommand as _0x56eacd,RemoveBaseDashboardWidgetCommand as _0x25ddde,UniverBaseDashboardPlugin as _0x12b6ef,UpdateBaseDashboardCommand as _0x51a517,UpdateBasePivotViewCommand as _0x22ea58,UpsertBaseDashboardWidgetCommand as _0x49cadf,canEditBaseDashboard as _0x314d1d,canEditBasePivotView as _0x46c031,createBasePivotTable as _0x57279f,resolveBasePivotChartRowDirection as _0x18785d}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0xe74b73,BaseMobileDrawer as _0x14b201,BaseMobileFilterOperand as _0x2001af,BaseMobileFilterPanel as _0x22f272,BaseUnitCollaborationStatus as _0x484f3c,FormulaEditorPanel as _0x1d7a56,IBaseDashboardUIExtensionRegistryService as _0x3460c3,IBaseViewUIRegistryService as _0x198cb9,MobileFormulaEditorPanel as _0x4689e6,UniverBasesMobileUIPlugin as _0x2e4e9f,UniverBasesUIPlugin as _0x3c0cd9,formulaToEditorFormula as _0x3ae876,normalizeEditorFormulaForConfig as _0x3949ea,toFormulaMenuTables as _0x11a6ff,toMenuFields as _0x295488}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x1016f1,ChartAxisSection as _0x3ee0e8,ChartColorField as _0x2d27c8,ChartCommonDataMappingSection as _0x3a6df3,ChartEditBlockTitle as _0x36a7b3,ChartEditPanel as _0x2a9829,ChartEditPanelSection as _0x2ecbeb,ChartEditPanelTab as _0x2599aa,ChartEditPanelTabs as _0x283559,ChartEditorCapability as _0x44db8c,ChartEditorProvider as _0x4bde66,ChartFunnelStyleSection as _0x7de25d,ChartGradientFillField as _0x5103da,ChartGridlinesAndTicksSection as _0x3fd0a7,ChartHeatmapStyleSection as _0x51ee3a,ChartHostAdapter as _0x3832ea,ChartIndicatorLineSection as _0x566467,ChartLegendSection as _0x4d3419,ChartLineAndAreaSection as _0x171453,ChartNumberFormatAtom as _0x3220da,ChartParetoSeriesSection as _0x44a0fb,ChartPieStyleSection as _0x4b289c,ChartRadarStyleSection as _0x1d9e1f,ChartRelationStyleSection as _0xa63c30,ChartSectionAccordion as _0x11d43d,ChartSectionAccordionContent as _0x3206aa,ChartSectionAccordionItem as _0x8a2ccf,ChartSectionAccordionTrigger as _0x32883f,ChartSeriesSection as _0x33c14c,ChartStackField as _0x2fa3d3,ChartStyleSection as _0x20d08d,ChartThemeField as _0x57f87a,ChartTitlesSection as _0x245340,ChartTrendlineSection as _0x3c2f68,ChartTypeField as _0x28e1f3,ChartTypeSpecificDataSection as _0x20436f,ChartTypeSpecificSetupSection as _0x2fc38a,ChartTypeSpecificStyleSection as _0x2412a5,ChartUIService as _0xa5aa5a,ChartViewStateRegistry as _0x91bc23,ChartWaterfallSetupFields as _0x4b136e,ChartWaterfallStyleSection as _0x166174,ChartWordCloudStyleSection as _0x13d7d7,DEFAULT_CHART_AXIS_VALUES as _0x152708,DEFAULT_CHART_FUNNEL_VALUES as _0x540e6b,DEFAULT_CHART_HEATMAP_VALUES as _0x5badfc,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x252eea,DEFAULT_CHART_LEGEND_VALUES as _0x337e65,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x5e0a33,DEFAULT_CHART_PARETO_VALUES as _0x38048e,DEFAULT_CHART_PIE_VALUES as _0x1c8b9e,DEFAULT_CHART_RADAR_VALUES as _0x4bcca4,DEFAULT_CHART_RELATION_VALUES as _0x3de6de,DEFAULT_CHART_SERIES_VALUES as _0x324182,DEFAULT_CHART_STYLE_VALUES as _0xd40535,DEFAULT_CHART_TITLE_VALUES as _0x289a2d,DEFAULT_CHART_TRENDLINE_VALUES as _0x4c6d30,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x15085e,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x3f0564,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x145212,MobileChartEditorControls as _0x342c29,MobileChartEditorProvider as _0x378b2c,UniverChartMobileUIPlugin as _0x54ced9,UniverChartUIPlugin as _0x22f198,buildChartTypeSelectOptions as _0x4fc7e8,chartTypeSupportsCapability as _0xe0cb49,chartTypeSupportsLineAndAreaStyle as _0x2aabdc,useChartEditorChartType as _0x3d34ba,useChartEditorHasRightAxis as _0x20bafb}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x267ea2}from'@univerjs-pro/license';import{ShapeFormulaService as _0xc23566,UniverShapeEditorPlugin as _0x100373,createFormulaShapeData as _0x30a9dd}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0x2940a8,BaseFilterConjunction as _0x3a6b1d,BaseFilterOperator as _0x411cb8,BaseViewType as _0x4da0de,DependentOn as _0xc92a94,Disposable as _0x47ac6f,ICommandService as _0x1ec317,IConfigService as _0x56e562,IImageIoService as _0x2cceec,ILogService as _0x133842,IPermissionService as _0x58608a,IUndoRedoService as _0x3c357b,IUniverInstanceService as _0xa15270,ImageSourceType as _0x188e10,Inject as _0x1e6fb0,Injector as _0x49fd9b,LocaleService as _0x255457,ObjectPermissionService as _0x346c1c,Plugin as _0x4b5524,RedoCommand as _0x1df103,ThemeService as _0x22d94c,UndoCommand as _0xbacc2f,UniverInstanceType as _0x6e7cef,createParagraphId as _0x156ce9,dateKit as _0xa2fcf,generateRandomId as _0x2aef82,merge as _0x2b2cf0,numfmt as _0x254bab,touchDependencies as _0x3ce29c}from'@univerjs/core';import{UniverDocsUIPlugin as _0x442bae}from'@univerjs/docs-ui';import{ArrowDownIcon as _0x4857ec,ArrowUpIcon as _0x40d299,AscendingIcon as _0x2a08ae,CalendarIcon as _0x1437d4,ChartIcon as _0x4cc2bb,CloseIcon as _0x54b54f,DeleteIcon as _0x306b68,DescendingIcon as _0x20c70b,ExpandIcon as _0x2e21be,FilterIcon as _0x48629d,GripVerticalIcon as _0x229479,IncreaseIcon as _0x34ddb8,MoreDownIcon as _0x2e92dc,MoreHorizontalIcon as _0x46df20,NumberIcon as _0x5b2a53,PenIcon as _0x41a33d,PivotTableIcon as _0x551361,ProtectIcon as _0x3bf51c,RedoIcon as _0x40da8b,SearchIcon as _0x10f455,TextIcon as _0x3177bc,UndoIcon as _0x32ef86}from'@univerjs/icons';import{combineLatest as _0x35ec39,map as _0x26242b,merge as _0x1691f8,skip as _0x4f0506}from'rxjs';import{SetBasePermissionCommand as _0x180c8f,getBaseDashboardPermissionObjectId as _0x4e82aa}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x230a38}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x40e758,ShapeLineTypeEnum as _0x1c4533,ShapeTypeEnum as _0x337cc8}from'@univerjs-pro/engine-shape';import{Button as _0x10d589,Checkbox as _0x22d09c,DatePicker as _0x27fb91,Dialog as _0x1ab529,DropdownMenu as _0x86d9a9,Input as _0x2647d7,InputNumber as _0x499d19,MobileDialog as _0x2661d2,MobileDropdownMenu as _0x3837bd,MobileSelect as _0xea1085,MultipleSelect as _0x57fab8,Segmented as _0x1eff91,Select as _0x4b13fc,Textarea as _0x539ea5,Tooltip as _0x310d74,borderClassName as _0x243840,clsx as _0x54dbd2,scrollbarClassName as _0x2bbb9f}from'@univerjs/design';import{UnitObject as _0x1349b1}from'@univerjs/protocol';import{ILayoutService as _0x5d52a6,ObjectPermissionButton as _0x903bf7,openObjectPermissionDialog as _0x5a6cf8,useDependency as _0x53af8d,useObservable as _0x129d28}from'@univerjs/ui';import{useCallback as _0x2f6d8e,useEffect as _0x543512,useMemo as _0x125177,useRef as _0x4523d4,useState as _0xee90d5}from'react';import{Fragment as _0x594ef8,jsx as _0x1fa005,jsxs as _0x5c238f}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x133cf9,ChartRenderMode as _0x4306b5,ChartThemeService as _0x2d3e2e,ChartTypeBits as _0x44b61b,ChartWaterfallStyleTarget as _0x1aea73,IChartRenderModelManagerService as _0x2ba92b,RTLChartStyle as _0x2ce46e,chartBitsUtils as _0x51a8fc,chartTypeCanUseTrendLine as _0x5b26be,resolveChartRuntimeStyle as _0x5641c4,resolveDefaultChartHostFrameStyle as _0x3bc6f7,toChartModelUpdate as _0x3fd4b5}from'@univerjs-pro/engine-chart';import{createPortal as _0x46c06e}from'react-dom';import{PivotCellStyleTypeEnum as _0x534fec,PivotDataFieldDataTypeEnum as _0x25f34a,PivotDataFieldSortOperatorEnum as _0x428f40,PivotFilterTypeEnum as _0x5a8717,PivotLayoutTypeEnum as _0x185dea,PivotSubtotalPositionEnum as _0x568753,PivotSubtotalTypeEnum as _0x1f46e1,PivotTableFiledAreaEnum as _0x23447d,PivotTableValuePositionEnum as _0x2d76e7,isErrorValue as _0x20d60c,isPrefixValue as _0x958be8}from'@univerjs-pro/engine-pivot';var fr=_0x3447f8(0x166),pr=_0x3447f8(0x191);const mr=_0x3447f8(0x19c),hr={};function gr(_0x5dc133,_0x5ea750){const _0x438697=_0x3447f8;let _0xe0ae4=_0x53af8d(_0x58608a),_0x2a9a56=_0x314d1d(_0xe0ae4,_0x5dc133,_0x5ea750);return _0x129d28(()=>_0xe0ae4[_0x438697(0x214)][_0x438697(0x387)](_0x26242b(()=>_0x314d1d(_0xe0ae4,_0x5dc133,_0x5ea750))),_0x2a9a56,!0x1,[_0x5ea750,_0xe0ae4,_0x5dc133]);}function _r(_0x5abc36,_0x3bbc18,_0x1239e6){const _0x4e10f9=_0x3447f8;let _0x1991bf=_0x53af8d(_0x58608a),_0x5d1eff=_0x46c031(_0x1991bf,_0x5abc36,_0x3bbc18,_0x1239e6);return _0x129d28(()=>_0x1991bf[_0x4e10f9(0x214)][_0x4e10f9(0x387)](_0x26242b(()=>_0x46c031(_0x1991bf,_0x5abc36,_0x3bbc18,_0x1239e6))),_0x5d1eff,!0x1,[_0x1991bf,_0x3bbc18,_0x5abc36,_0x1239e6]);}function vr(_0x24c184,_0x38dad0=_0x3447f8(0x285)){const _0x4528bd=_0x3447f8;return{'backgroundImage':'url('+JSON[_0x4528bd(0x1d3)](_0x24c184)+')','backgroundPosition':_0x38dad0===_0x4528bd(0x2af)?_0x4528bd(0x407):_0x4528bd(0x1e4),'backgroundRepeat':_0x38dad0===_0x4528bd(0x2af)?_0x4528bd(0x2af):_0x4528bd(0x137),'backgroundSize':_0x38dad0===_0x4528bd(0x285)?_0x4528bd(0x285):_0x4528bd(0x195)};}const yr={'alignment':_0x3447f8(0x1b4),'currency':'USD','decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x3447f8(0x195),'numberFormat':'general'},br={'CNY':'¥','EUR':'€','USD':'$'};function xr(_0x3dd396){const _0x535403=_0x3447f8;var _0x538dc8;let _0x4622f1=Tr(((_0x538dc8=_0x3dd396[_0x535403(0x100)][_0x535403(0x23f)])==null||(_0x538dc8=_0x538dc8[_0x535403(0x235)])==null?void 0x0:_0x538dc8[_0x535403(0x338)])??'');return{...yr,..._0x4622f1,..._0x3dd396[_0x535403(0x2d3)]};}function Sr(_0x14a122,_0x5d5e46){const _0x1e5b43=_0x3447f8;let _0x1c6631={..._0x14a122[_0x1e5b43(0x2d3)],..._0x5d5e46},_0xe72fa2=xr({..._0x14a122,'appearance':_0x1c6631}),_0x12131e=_0x14a122[_0x1e5b43(0x100)][_0x1e5b43(0x23f)]??{'formula':''};return{..._0x14a122,'appearance':_0x1c6631,'shapeData':{..._0x14a122[_0x1e5b43(0x100)],'formulaBinding':{..._0x12131e,'numberFormat':{'pattern':Cr(_0xe72fa2[_0x1e5b43(0x235)],_0xe72fa2[_0x1e5b43(0xb9)],_0xe72fa2['currency'])}}}};}function Cr(_0x5bb5b0,_0x51b8a4,_0x12d7b1){const _0x47be1d=_0x3447f8;let _0x332ce7=Math[_0x47be1d(0x351)](0x0,Math[_0x47be1d(0x379)](0x8,Math[_0x47be1d(0x323)](_0x51b8a4))),_0x531e6f=_0x332ce7?'.'+'0'[_0x47be1d(0x2af)](_0x332ce7):'';switch(_0x5bb5b0){case _0x47be1d(0x30d):return'0'+_0x531e6f;case _0x47be1d(0x277):return'0'+_0x531e6f+'%';case _0x47be1d(0x39b):return(br[_0x12d7b1]??_0x12d7b1)+'#,##0'+_0x531e6f;case _0x47be1d(0x196):return _0x47be1d(0x3a5)+_0x531e6f;case _0x47be1d(0x3da):case _0x47be1d(0x20a):return _0x47be1d(0x2f4);}}function wr(_0x55f4a7,_0x3f1131,_0x9d487a){const _0x5c4bcd=_0x3447f8;return _0x9d487a[_0x5c4bcd(0x235)]!=='compact'||typeof _0x3f1131!='number'||!Number[_0x5c4bcd(0x1b3)](_0x3f1131)?_0x55f4a7:new Intl[(_0x5c4bcd(0x259))](void 0x0,{'notation':_0x5c4bcd(0x3da),'minimumFractionDigits':_0x9d487a['decimalPlaces']??0x0,'maximumFractionDigits':_0x9d487a[_0x5c4bcd(0xb9)]??0x0})[_0x5c4bcd(0x11b)](_0x3f1131);}function Tr(_0x542fb5){const _0x425db9=_0x3447f8;var _0xac698b,_0x169c34;if(!_0x542fb5||_0x542fb5==='General')return{};let _0x30b69a=_0x542fb5['match'](/\.([0#]+)/),_0x727516=(_0x30b69a==null||(_0xac698b=_0x30b69a[0x1])==null?void 0x0:_0xac698b[_0x425db9(0x2c8)])??0x0;if(_0x542fb5[_0x425db9(0x2f8)]('%'))return{'decimalPlaces':_0x727516,'numberFormat':'percent'};let _0x419f1a=(_0x169c34=Object[_0x425db9(0x3bb)](br)[_0x425db9(0x2c9)](([,_0x97f3b])=>_0x542fb5[_0x425db9(0x2f8)](_0x97f3b)))==null?void 0x0:_0x169c34[0x0];return _0x419f1a?{'currency':_0x419f1a,'decimalPlaces':_0x727516,'numberFormat':_0x425db9(0x39b)}:{'decimalPlaces':_0x727516,'numberFormat':_0x542fb5[_0x425db9(0x2f8)](',')?_0x425db9(0x196):_0x425db9(0x30d)};}const Er={'center':_0x3447f8(0x1e4),'left':'flex-start','right':_0x3447f8(0x104)};function Dr({dashboardId:_0x2f0f80,unitId:_0x2b2bd6,widget:_0x404089}){const _0x39f975=_0x3447f8;var _0x519905,_0x2c3d5c,_0x12eb90,_0x37a76c,_0x420cd6,_0x2626e4,_0x3131a3,_0x237e56,_0x276d66;let _0x43c130=_0x53af8d(_0xc23566),_0x439648=_0x53af8d(_0x2cceec),_0x1975e3=_0x53af8d(_0x255457),_0x4295dc=_0x125177(()=>({'hostType':_0x6e7cef[_0x39f975(0x1f7)],'unitId':_0x2b2bd6,'subUnitId':_0x2f0f80,'shapeId':_0x404089['id']}),[_0x2f0f80,_0x2b2bd6,_0x404089['id']]),[_0x52d507,_0x2bfe50]=_0xee90d5(()=>_0x43c130['getPresentation'](_0x4295dc)),[_0x18a6fd,_0x5c6938]=_0xee90d5(()=>{const _0x2ca5d1=_0x39f975;var _0x38de1a;return(_0x38de1a=_0x43c130[_0x2ca5d1(0x19d)](_0x4295dc))==null?void 0x0:_0x38de1a['value'];}),[_0x3fe820,_0x256cfd]=_0xee90d5(),_0x3c929e=_0x4523d4(null),_0x505693=_0x4523d4(null),_0x4bb213=xr(_0x404089);_0x543512(()=>{const _0x525f7a=_0x39f975;let _0x5651df=_0x43c130[_0x525f7a(0x3d2)][_0x525f7a(0x178)](_0x5c9c9a=>{const _0x13d8b8=_0x525f7a;_0x5c9c9a[_0x13d8b8(0x184)]===_0x2b2bd6&&_0x5c9c9a['subUnitId']===_0x2f0f80&&_0x5c9c9a[_0x13d8b8(0x353)]===_0x404089['id']&&(_0x2bfe50(_0x5c9c9a[_0x13d8b8(0x131)]),_0x5c6938(_0x5c9c9a['result'][_0x13d8b8(0x2c2)]));});return()=>_0x5651df[_0x525f7a(0x3c6)]();},[_0x2f0f80,_0x43c130,_0x4295dc,_0x2b2bd6,_0x404089['id']]),_0x543512(()=>{const _0x468ccc=_0x39f975;let _0x3af951=_0x4bb213[_0x468ccc(0x294)];if(!_0x3af951||_0x3af951[_0x468ccc(0xd9)]!==_0x188e10[_0x468ccc(0x234)])return;let _0x57a11e=_0x439648[_0x468ccc(0x152)](_0x3af951[_0x468ccc(0x2c6)],_0x3af951[_0x468ccc(0xd9)]);if(_0x57a11e!=null&&_0x57a11e[_0x468ccc(0xba)])return;let _0x32f752=!0x0;return _0x439648['getImage'](_0x3af951[_0x468ccc(0x2c6)])['then'](_0x55345f=>{const _0x2887af=_0x468ccc;_0x32f752&&_0x256cfd({'source':_0x3af951[_0x2887af(0x2c6)],'value':_0x55345f});})['catch'](()=>void 0x0),()=>{_0x32f752=!0x1;};},[_0x4bb213[_0x39f975(0x294)],_0x439648]);let _0x3257d7=((_0x519905=_0x4bb213['backgroundImage'])==null?void 0x0:_0x519905[_0x39f975(0xd9)])===_0x188e10[_0x39f975(0x234)]?((_0x2c3d5c=_0x439648['getImageSourceCache'](_0x4bb213[_0x39f975(0x294)][_0x39f975(0x2c6)],_0x4bb213['backgroundImage'][_0x39f975(0xd9)]))==null?void 0x0:_0x2c3d5c[_0x39f975(0xba)])??((_0x3fe820==null?void 0x0:_0x3fe820[_0x39f975(0x2c6)])===_0x4bb213['backgroundImage'][_0x39f975(0x2c6)]?_0x3fe820['value']:''):((_0x12eb90=_0x4bb213[_0x39f975(0x294)])==null?void 0x0:_0x12eb90[_0x39f975(0x2c6)])??'',_0x40205a=_0x404089[_0x39f975(0x100)][_0x39f975(0xe7)],_0x562584=_0x40205a&&_0x39f975(0x2cb)in _0x40205a?(_0x37a76c=_0x40205a[_0x39f975(0x2cb)])==null?void 0x0:_0x37a76c['doc']:void 0x0,_0x48e3e3=wr((_0x52d507==null?void 0x0:_0x52d507[_0x39f975(0x3ca)])??'',_0x18a6fd,_0x4bb213),_0x3d3e6b=_0x404089[_0x39f975(0x100)]['fill'],_0x5b2269=_0x404089[_0x39f975(0x100)][_0x39f975(0x20d)],_0x4da654=_0x562584==null||(_0x420cd6=_0x562584['documentStyle'])==null?void 0x0:_0x420cd6['textStyle'],_0x45bb9f=_0x404089[_0x39f975(0x36b)]??_0x404089[_0x39f975(0x239)]??'';return _0x543512(()=>{const _0x4ab86e=_0x39f975;let _0x1c14b7=_0x3c929e[_0x4ab86e(0x23e)],_0x11018d=_0x505693[_0x4ab86e(0x23e)];if(!_0x1c14b7||!_0x11018d)return;let _0x56489b=()=>{const _0x69d180=_0x4ab86e;if(_0x4bb213['fontSizeMode']===_0x69d180(0x1b1)||!_0x1c14b7[_0x69d180(0x2eb)]||!_0x1c14b7['clientHeight']){_0x11018d['style']['fontSize']=_0x4bb213['fontSize']+'px';return;}let _0x25e804=0x1,_0x32da30=0x48,_0x4974a8=_0x25e804;for(;_0x25e804<=_0x32da30;){let _0x3e9571=Math[_0x69d180(0x112)]((_0x25e804+_0x32da30)/0x2);_0x11018d[_0x69d180(0xc1)][_0x69d180(0x1ae)]=_0x3e9571+'px',_0x11018d['scrollWidth']<=_0x1c14b7[_0x69d180(0x2eb)]&&_0x11018d['scrollHeight']<=_0x1c14b7[_0x69d180(0x3e4)]?(_0x4974a8=_0x3e9571,_0x25e804=_0x3e9571+0x1):_0x32da30=_0x3e9571-0x1;}_0x11018d[_0x69d180(0xc1)][_0x69d180(0x1ae)]=_0x4974a8+'px';};if(_0x56489b(),typeof ResizeObserver>'u')return;let _0x52e43e=new ResizeObserver(_0x56489b);return _0x52e43e[_0x4ab86e(0x17a)](_0x1c14b7),()=>_0x52e43e[_0x4ab86e(0x1a2)]();},[_0x4bb213[_0x39f975(0x1ae)],_0x4bb213[_0x39f975(0x38a)],_0x48e3e3]),_0x5c238f(_0x39f975(0x1e8),{'data-dashboard-formula-shape':_0x404089['id'],'className':_0x39f975(0x2a4),'style':{'backgroundColor':((_0x2626e4=_0x404089[_0x39f975(0x2d3)])==null?void 0x0:_0x2626e4['backgroundColor'])??((_0x3d3e6b==null?void 0x0:_0x3d3e6b[_0x39f975(0x26a)])===_0x40e758['SolidFill']?_0x3d3e6b[_0x39f975(0xc0)]??void 0x0:void 0x0),'border':(_0x5b2269==null?void 0x0:_0x5b2269[_0x39f975(0xbf)])===_0x1c4533['SolidLine']?(_0x5b2269[_0x39f975(0x144)]??0x1)+_0x39f975(0xc5)+(_0x5b2269['color']??'currentColor'):void 0x0,'borderRadius':_0x404089[_0x39f975(0x2e8)]===_0x337cc8[_0x39f975(0x190)]?0xc:void 0x0,'color':((_0x3131a3=_0x404089[_0x39f975(0x2d3)])==null?void 0x0:_0x3131a3[_0x39f975(0xef)])??(_0x52d507==null?void 0x0:_0x52d507[_0x39f975(0xc0)])??(_0x4da654==null||(_0x237e56=_0x4da654['cl'])==null?void 0x0:_0x237e56['rgb'])??void 0x0,'fontWeight':_0x4da654!=null&&_0x4da654['bl']?0x258:void 0x0,'textAlign':_0x4bb213['alignment']},'children':[_0x3257d7&&_0x1fa005('img',{'src':_0x3257d7,'alt':'','aria-hidden':'true','className':_0x39f975(0x335),'style':{'objectFit':((_0x276d66=_0x4bb213[_0x39f975(0x294)])==null?void 0x0:_0x276d66[_0x39f975(0x160)])??_0x39f975(0x285)}}),_0x5c238f(_0x39f975(0x1e8),{'className':_0x39f975(0x274),'children':[_0x45bb9f&&_0x1fa005('div',{'data-dashboard-formula-description':!0x0,'className':_0x39f975(0xe9),'children':_0x45bb9f}),_0x1fa005(_0x39f975(0x1e8),{'ref':_0x3c929e,'data-dashboard-formula-value':!0x0,'aria-label':_0x45bb9f||_0x1975e3['t'](_0x39f975(0x2fd)),'className':_0x39f975(0x3e0),'style':{'justifyContent':Er[_0x4bb213[_0x39f975(0x218)]]},'children':_0x1fa005('span',{'ref':_0x505693,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x4bb213['fontSizeMode'],'className':'univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','children':_0x48e3e3})})]})]});}function Y(_0x572608,_0x12c111){return function(_0x32c7e6,_0x167175){_0x12c111(_0x32c7e6,_0x167175,_0x572608);};}function Or(_0x54c2cf,_0x8efb6a,_0x199bd2,_0x1ae9f9){const _0x35c98d=_0x3447f8;var _0x4a1c33=arguments[_0x35c98d(0x2c8)],_0x4d90bb=_0x4a1c33<0x3?_0x8efb6a:_0x1ae9f9===null?_0x1ae9f9=Object[_0x35c98d(0x382)](_0x8efb6a,_0x199bd2):_0x1ae9f9,_0x5606a6;if(typeof Reflect==_0x35c98d(0x2f1)&&typeof Reflect[_0x35c98d(0x1e9)]==_0x35c98d(0x252))_0x4d90bb=Reflect['decorate'](_0x54c2cf,_0x8efb6a,_0x199bd2,_0x1ae9f9);else{for(var _0x99e5ec=_0x54c2cf[_0x35c98d(0x2c8)]-0x1;_0x99e5ec>=0x0;_0x99e5ec--)(_0x5606a6=_0x54c2cf[_0x99e5ec])&&(_0x4d90bb=(_0x4a1c33<0x3?_0x5606a6(_0x4d90bb):_0x4a1c33>0x3?_0x5606a6(_0x8efb6a,_0x199bd2,_0x4d90bb):_0x5606a6(_0x8efb6a,_0x199bd2))||_0x4d90bb);}return _0x4a1c33>0x3&&_0x4d90bb&&Object['defineProperty'](_0x8efb6a,_0x199bd2,_0x4d90bb),_0x4d90bb;}let kr=class{constructor(_0x2548ed,_0x245fa3,_0x3b20a3){const _0x3e18bc=_0x3447f8;this['_localeService']=_0x2548ed,this['_chartThemeService']=_0x245fa3,this[_0x3e18bc(0x167)]=_0x3b20a3;}[_0x3447f8(0x2a3)](){const _0x273f29=_0x3447f8;return this[_0x273f29(0x167)][_0x273f29(0x395)](_0x4306b5[_0x273f29(0x403)],this[_0x273f29(0x17e)]());}[_0x3447f8(0x1d9)](_0x59e488){const _0x14d1d9=_0x3447f8;let _0x88adfc=_0x59e488[_0x14d1d9(0x2c4)]['config'];if(!_0x88adfc)throw Error(_0x14d1d9(0x22f)+_0x59e488['chartId']+_0x14d1d9(0x2a7));let _0x3ed4ee=this[_0x14d1d9(0x2b3)][_0x14d1d9(0x2b2)]();return{'config':_0x88adfc,'style':_0x5641c4({..._0x59e488[_0x14d1d9(0x2c4)][_0x14d1d9(0xc1)],'runtime':_0x59e488[_0x14d1d9(0x2c4)][_0x14d1d9(0x10e)](_0x3ed4ee),'direction':_0x3ed4ee},_0x88adfc[_0x14d1d9(0x1b9)])};}[_0x3447f8(0x17e)](){const _0x235f18=_0x3447f8;return{'resolveHostStyle':({style:_0x5ab795})=>_0x3bc6f7({'style':_0x5ab795,'getRenderColor':_0x26cd58=>this[_0x235f18(0x103)][_0x235f18(0x400)](_0x26cd58)}),'resolveRenderBackgroundColor':({hostStyle:_0x1ba685})=>_0x1ba685['fill']};}};kr=Or([Y(0x0,_0x1e6fb0(_0x255457)),Y(0x1,_0x1e6fb0(_0x2d3e2e)),Y(0x2,_0x2ba92b)],kr);function Ar(_0x2c5d21,_0x23dfce){const _0x32e87c=_0x3447f8;var _0x1f7bd5;_0x2c5d21[_0x32e87c(0xc1)]['backgroundColor']=_0x23dfce[_0x32e87c(0x310)]??_0x32e87c(0x3a0),_0x2c5d21[_0x32e87c(0xc1)]['border']=(_0x1f7bd5=_0x23dfce['border'])!=null&&_0x1f7bd5[_0x32e87c(0xc0)]&&_0x23dfce['border'][_0x32e87c(0x144)]?_0x23dfce[_0x32e87c(0x1f2)][_0x32e87c(0x144)]+_0x32e87c(0xc5)+_0x23dfce['border'][_0x32e87c(0xc0)]:'',_0x2c5d21['style'][_0x32e87c(0xc4)]=_0x23dfce[_0x32e87c(0x179)]?_0x23dfce[_0x32e87c(0x179)]+'px':'',_0x2c5d21[_0x32e87c(0xc1)][_0x32e87c(0x2b4)]=_0x32e87c(0x343),_0x2c5d21[_0x32e87c(0xc1)][_0x32e87c(0x3aa)]=_0x32e87c(0x31b);}function _0x3448(){const _0x1022ae=['height','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','max','stdDevp','shapeId','bases-dashboard-ui.chart.section.chord','prototype','bases-dashboard-ui.operators.isEmpty','pointerX','pageWrap','univer-text-gray-400','Radar','bases-dashboard-ui.chart.section.gridlinesAndTicks','bases-dashboard-ui.pivot.layout','bases-dashboard-ui.dashboardInspector.repeat','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','lastRow','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','colView','column','article','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','operand','removeEventListener','bases-dashboard-ui.dashboardInspector.dataSource','valueIndex','univer-pointer-events-none\x20univer-absolute\x20univer-z-30\x20univer-appearance-none\x20univer-p-0\x20univer-opacity-0\x20!univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','description','disposeWithMe','rowCount','default','bases-dashboard-ui.pivot.addToRow','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','clientX','end','bases-dashboard-ui.pivot.chartAndTable','bases-dashboard-ui.dashboard.fullScreen','accept','headerRowCount','univer-text-right','bases-dashboard-ui.dashboardInspector.number','min','onDragOver','Gauge','print','relation','false','filterInfo','replaceChildren','base-dashboard-pivot-chart-','getOwnPropertyDescriptor','renderRevision','bases-dashboard-ui.pivot.downThenAcross','YYYY-MM-DD','matchMedia','pipe','changed$','univer-pointer-events-auto\x20univer-opacity-100','fontSizeMode','44333140rVlCkx','waterfall.positive','bases-dashboard-ui.pivot.product','colCount','GrandTotal','toUpperCase','bases-dashboard-ui.pivot.variancePopulation','formula','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','columnSpan','createChartInstance','bases-dashboard-ui.pivot.rows','RecordId','data$','isArray','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','currency','53304laVgOQ','bases-dashboard-ui.dashboardInspector.contain','itemTypes','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','transparent','from','requestFullscreen','focusUnit','has','#,##0','columnFields','test','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','boxSizing','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','252ZaTCMu','base-pivot-options','bases-dashboard-ui.pivot.numberFormat','univer-w-full','IS_NOT','packageName','univer-size-8\x20univer-p-0\x20univer-text-red-500','image/*','bases-dashboard-ui.mobile.moveDown','onCommit','getSnapshot','GridlinesAndTicks','Rating','button','paragraphId','entries','bases-dashboard-ui.pivot.addToColumn','bases-dashboard-ui.pivot.clearFilter','getUnit','img','wordCloud','tbody','render','currentTarget','some','bases-dashboard-ui.dashboardInspector.textSize','unsubscribe','IS_NOT_EMPTY','legend','Number','text','Waterfall','bases-dashboard-ui.pivot.average','Bubble','bases-dashboard-ui.chart.section.waterfall','original','univer-cursor-grabbing','formatMap','presentationChanged$','VerticalAxis','univer-flex\x20univer-gap-2','bases-dashboard-ui.dashboardInspector.custom','view','bases-dashboard-ui.pivot.max','11916tPJnfq','imageSourceType','compact','bases-dashboard-ui.pivot.values','_configService','bases-dashboard-ui.pivot.countNumbers','setStyle','bases-dashboard-ui.dashboardInspector.uploadImage','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','bases-dashboard-ui.dashboardInspector.enterValue','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','page:','clientHeight','_injector','list','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','cumulativeLineStyle','getValueIndex','target','univer-flex','bases-dashboard-ui.pivot.variance','alt','PivotChart','rowSpan','pointerup','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','bases-dashboard-ui.chart.section.histogram','univer-group\x20univer-relative\x20univer-flex\x20univer-min-h-0\x20univer-flex-col\x20univer-overflow-visible\x20univer-rounded-lg\x20univer-border\x20univer-shadow-sm\x20univer-transition-shadow','click','pie','\x20/\x20span\x20','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','onFilter','bases-dashboard-ui.pivot.showColumnSubtotal','univer-min-h-11\x20univer-px-3\x20univer-text-base','canView','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','bases-dashboard-ui.dashboardInspector.replaceImage','gray','base-pivot-fields','getRenderColor','then','bases-dashboard-ui.operators.lessThan','Dom','bases-dashboard-ui.pivot.display','bases-dashboard-ui.pivot.calculating','scrollTop','0\x200','executeChartUpdateConfig','IndicatorLine','span','decimalPlaces','src','titles','tableOrder','markNotReady','bases-dashboard-ui.pivot.displayName','lineStrokeType','color','style','SingleSelect','barStyle','borderRadius','px\x20solid\x20','register','saveImage','bases-dashboard-ui.pivot.top','bases-dashboard-ui.dashboardInspector.data','bases-dashboard-ui.pivot.filters','documentElement','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','univer-mb-3\x20univer-text-sm\x20univer-font-medium','base-pivot-table-configuration','onDragStart','onMoveUp','setSubtotalType','bases-dashboard-ui.pivot.pageDirection','var','bases-dashboard-ui.operators.after','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','bases-dashboard-ui.dashboardInspector.dragWidget','toLocaleLowerCase','getDataFieldByTableId','sourceType','chartId','univer-cursor-grab','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','createElement','rowFields','bases-dashboard-ui.dashboard.rename','layout','bases-dashboard-ui.dashboardInspector.sourceUnavailable','change','bases-dashboard-ui.dashboard.pivotChart','bases-dashboard-ui.dashboardInspector.editData','setFieldFormat','shapeText','defaultValue','univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','set','index','onReady','resize','closest','textColor','bases-dashboard-ui.chart.section.wordCloud','bases-dashboard-ui.dashboardInspector.style','every','push','bases-dashboard-ui.dashboard.search','univer-flex\x20univer-flex-col','29313lmUubp','Histogram','files','chart-and-table','Series','keydown','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','values','bases-dashboard-ui.pivot.repeatColumnLabels','move','shapeData','field','showColGrandTotal','_chartThemeService','flex-end','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','saveAttachment','showColSubtotal','Relation','bases-dashboard-ui.pivot.summarizeBy','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','bases-dashboard-ui.chart.section.funnel','baseChartDataAnimation','pivot','getRuntimeContext','header','univer-flex\x20univer-h-auto\x20univer-min-h-12\x20univer-shrink-0\x20univer-flex-wrap\x20univer-items-center\x20univer-gap-1\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','univer-mt-2','floor','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','replace','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','univer-flex\x20univer-flex-col\x20univer-gap-4','clientY','date','dashboard-text-','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','format','getCurrentTheme','small','bases-dashboard-ui.operators.isNot','getFieldCountByArea','bases-dashboard-ui.dashboard.deleteWidget','slice','bases-dashboard-ui.pivot.sum','onMove','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','primary','getFieldPositionInfoById','string','corner:','univer-size-4','snapshot','bases-dashboard-ui.chart.common.verticalAxis','bases-dashboard-ui.dashboardInspector.decimalPlaces','paragraphs','resolve','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.dashboardInspector.right','presentation','bases-dashboard-ui.pivot.cancel','lineAndArea','backgroundColor','change$','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','no-repeat','tabular','localeKey','dashboard-','1477KqPOiF','isSubtotal','showRowGrandTotal','chartType','renameField','indicatorLine','bases-dashboard-ui.chart.common.switchRowColumn','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','bases-dashboard-ui.pivot.calculationFailed','width','bases-dashboard-ui.dashboard.text','univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','bases-dashboard-ui.chart.chartTypes.','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','currentTheme$','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','resizeDirection','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','filter','bases-dashboard-ui.pivot.dropFieldsHere','univer-bg-gray-0\x20dark:!univer-bg-gray-900','getImageSourceCache','bases-dashboard-ui.dashboardInspector.removeImage','tableId','descending','dashboard-widget-','Pie','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','fullscreenElement','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','get','file','univer-relative\x20univer-z-10','bases-dashboard-ui.pivot.confirm','trim','fit','separator','bases-dashboard-ui.dashboardInspector.autoFit','ceil','dataFieldId','bases-dashboard-ui.dashboardInspector.left','@univerjs-pro/bases-dashboard-ui','_renderModelManager','bases-dashboard-ui.pivot.showRowGrandTotal','bases-dashboard-ui.chart.common.setup','preventDefault','pointermove','5304860lAzjrE','lastCol','GREATER_THAN','getRect','bases-dashboard-ui.dashboardInspector.originalSize','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','Boxplot','table','allowMultiple','univer-grid\x20univer-gap-4\x20univer-p-4','version','grandTotal','subscribe','radius','observe','operator','ManualFilter','ascending','_createContext','setOptions','RightVerticalAxis','measure','3928xPPkYE','rowView','unitId','11VPOgsg','tables','[data-dashboard-widget]','initial','pareto','body','bases-dashboard-ui.pivot.rowSubtotalPosition','univer-box-content\x20univer-size-1.5\x20univer-rounded-full\x20!univer-border-2\x20!univer-border-solid\x20!univer-border-white\x20!univer-bg-primary-600','Currency','bases-dashboard-ui.mobile.moveUp','pageRows','RoundRect','1.0.1','onStarting','bases-dashboard-ui.dashboardInspector.currency','Trendline','auto','grouped','releaseChartRuntime','CreatedAt','bottom','darkMode$','bases-dashboard-ui.dashboard.add','bases-dashboard-ui.config','getResult','bases-dashboard-ui.pivot.chartConfiguration','bases-dashboard-ui.dashboardInspector.backgroundColor','acquireChartRuntime','updateValuePosition','disconnect','error','bases-dashboard-ui.pivot.valuePosition','bases-dashboard-ui.pivot.description','showRowSubtotal','outline','univer-grid\x20univer-gap-4','bases-dashboard-ui.pivot.name','bases-dashboard-ui.dashboardInspector.selectOption','bases-dashboard-ui.pivot.layoutOutline','bases-dashboard-ui.pivot.layoutTabular','bases-dashboard-ui.dashboardInspector.cover','fontSize','1318580WwUkMQ','Value','custom','univer-h-full\x20univer-w-full\x20univer-bg-transparent','isFinite','left','getTableFieldsByDataFieldId','univer-bg-gray-50/80\x20dark:!univer-bg-gray-800/70\x20univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-p-3\x20dark:!univer-border-gray-700','bases-dashboard-ui.pivot.pivotConfiguration','style$','type','defineProperty','countNums','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-px-4\x20dark:!univer-border-gray-700','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','bases-dashboard-ui.pivot.acrossThenDown','removeField','bases-dashboard-ui.dashboardInspector.description','base64Cache','tableFieldId','bases-dashboard-ui.chart.common.trendline','bases-dashboard-ui.chart.','getAttachmentUrl','bases-dashboard-ui.dashboard.editWidget','pointerY','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','Checkbox','FormulaShape','indexOf','univer-flex-1','bases-dashboard-ui.chart.section.radar','PieStyle','orient','LESS_THAN_OR_EQUAL','contain','valuePosition','stringify','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','cornerView','refreshChartRuntime','univer-flex\x20univer-min-h-full\x20univer-flex-col','bases-dashboard-ui.pivot.count','createRenderInput','conditions','pageOverThenDown','base-pivot-chart-setup','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','bases-dashboard-ui.dashboard.new','bases-dashboard-ui.pivot.descending','bases-dashboard-ui.dashboardInspector.reset','bases-dashboard-ui.operators.is','Sunburst','context','center','fieldId','bases-dashboard-ui.pivot.removeField','bases-dashboard-ui.operators.before','div','decorate','minmax(0,\x201fr)','chart','Pivot','bases-dashboard-ui.pivot.dataSource','map','setConfig','bases-dashboard-ui.pivot.columns','sum','border','bases-dashboard-ui.pivot.addToFilter','stdDev','subtotal','univer-shrink-0\x20univer-rounded-full\x20univer-bg-gray-200\x20univer-px-2\x20univer-py-0.5\x20univer-text-xs\x20univer-text-gray-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-300','UNIVER_BASE','Treemap','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','add','input','dashboards','bases-dashboard-ui.operators.greaterThanOrEqual','undos','base-pivot-chart','call','bases-dashboard-ui.pivot.chartOnly','bases-dashboard-ui.dashboardInspector.newCondition','count','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-whitespace-nowrap\x20univer-border\x20univer-border-gray-200\x20univer-px-3\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-left\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.chart.section.sunburst','BASE_DASHBOARD_UI_PLUGIN','bases-dashboard-ui.chart.common.editChart','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','startX','general','bases-dashboard-ui.dashboardInspector.clear','bases-dashboard-ui.dashboardInspector.numberFormat','stroke','Row','baseChartDataAnimationDuration','bases-dashboard-ui.pivot.grandTotal','join','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','addEventListener','permissionPointUpdate$','univer-flex\x20univer-min-h-0\x20univer-flex-1','WaterfallSeries','bases-dashboard-ui.chart.common.heatmap','alignment','dataAggregation','scrollHeight','bases-dashboard-ui.chart.common.series','bases-dashboard-ui.dashboardInspector.loading','link','group','getOptions','bases-dashboard-ui.chart.section.indicatorLine','bases-dashboard-ui.pivot.bottom','657870bwuwLK','univer-grid\x20univer-gap-3','univer-grid\x20univer-gap-2\x20univer-p-3','UpdatedAt','AND','onCancel','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','bases-dashboard-ui.dashboard.redo','bases-dashboard-ui.pivot.selectAll','toPrimitive','syncLayout','bases-dashboard-ui.dashboardInspector.center','bases-dashboard-ui.dashboardInspector.backgroundImage','Base\x20dashboard\x20chart\x20','trendline','constructor','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','bases-dashboard-ui.dashboard.image','UUID','numberFormat','bases-dashboard-ui.chart.waterfall.subtotal','univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize','bases-dashboard-ui.dashboard.delete','title','ensureMount','updateFieldPosition','Funnel','univer-flex\x20univer-justify-end\x20univer-gap-2','current','formulaBinding','BaseDashboard','chartRowDirection','univer-truncate','base-pivot-chart-style','contains','univer-size-5\x20univer-text-primary-600','bases-dashboard-ui.pivot.addToValue','darkMode','univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','LESS_THAN','label','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','AFTER','fieldOrder','toJSON','MultiSelect','sortInfo','Filter','function','bases-dashboard-ui.dashboard.tableFilter','bases-dashboard-ui.operators.contains','pluginName','prefix','bases-dashboard-ui.dashboardInspector.formula','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','NumberFormat','onDrop','repeatRowLabels','bases-dashboard-ui.pivot.showColumnGrandTotal','bases-dashboard-ui.dashboard.resizeWidget','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','onDragEnd','bases-dashboard-ui.dashboardInspector.percent','onMoveDown','destructive','getBoundingClientRect','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','Candlestick','setLayout','bases-dashboard-ui.chart.section.candlestick','aside','CONTAINS','fillType','items','isHeader','bases-dashboard-ui.dashboardInspector.textColor','BEFORE','univer-min-w-0\x20univer-flex-1','bases-dashboard-ui.pivot.defaultName','setSortInfo','mode','stopPropagation','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','baseOn','delete','percent','bases-dashboard-ui.dashboard.addWidget','data','bases-dashboard-ui.mobile.permissions','rows','Heatmap','bases-dashboard-ui.pivot.repeatRowLabels','dashboardOrder','GeneralSeries','rootContainerElement','exitFullscreen','bases-dashboard-ui.pivot.options','series','rightYAxis','cover','viewOrder','bases-dashboard-ui.chart.common.horizontalAxis','axis','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','innerWidth','base-pivot-chart-configuration','headerMap','waterfall','heatmap','univer-size-6\x20!univer-border\x20!univer-border-solid\x20!univer-border-gray-200\x20!univer-bg-gray-0\x20univer-p-0\x20!univer-shadow-none\x20hover:!univer-bg-gray-100\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900\x20dark:hover:!univer-bg-gray-800','bases-dashboard-ui.dashboard.configure','Date','Subtotal','backgroundImage','blank','repeatColLabels','dataset','fullscreenchange','univer-w-full\x20univer-justify-start','setLabelFilterInfo','Column','Person','getResource','waterfall.negative','addFieldWithSourceId','bases-dashboard-ui.pivot.fieldSettings','renderTransition','Escape','createDomChartInstance','univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-flex-col\x20univer-justify-center\x20univer-overflow-hidden\x20univer-bg-gray-0\x20univer-p-4\x20univer-text-gray-1000\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-50','TableFilter','widgetOrder','\x20has\x20no\x20render\x20config.','ChartStyle','bases-dashboard-ui.chart.section.treemap','Data','Scatter','system','labelId','_config','repeat','config','filterFields','getDirection','_localeService','overflow','redos','row','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','bases-dashboard-ui.dashboard.undo','ParetoBarSeries','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','displayName','checkMounted','getId','executeCommand','univer-m-3','bases-dashboard-ui.pivot.min','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','value','onRemove','model','Group','source','isBottomTotal','length','find','bases-dashboard-ui.chart.common.legend','dataModel','radar','name','isConnected','getDashboard','bases-dashboard-ui.pivot.filterField','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','true','appearance','Text','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','addImageSourceCache','univer-text-sm','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.pivot.searchFields','bases-dashboard-ui.dashboardInspector.delete','segmented','views','dimension','Chord','univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','univer-size-5\x20univer-rotate-90','pivotViewId','NOT_CONTAINS','bases-dashboard-ui.chart.section.pie','HorizontalAxis','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','bases-dashboard-ui.pivot.ascending','bases-dashboard-ui.chart.common.customize','shapeType','bases-dashboard-ui.pivot.fields','ChartAndAxisTitles','clientWidth','onSettings','bases-dashboard-ui.operators.greaterThan','fields','valueFields','iterator','object','displayMode','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','General','bases-dashboard-ui.chart.common.rightVerticalAxis','univer-max-h-40\x20univer-text-base','parentElement','includes','ownerDocument','Legend','univer-flex\x20univer-h-full\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','key','bases-dashboard-ui.dashboard.formulaShape','dispose','dataSource','setCurrentUnitForType','matches','univer-shrink-0\x20univer-px-3','blur','Progress','bases-dashboard-ui.chart.section.gauge','funnel','rightY','catch','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','bases-dashboard-ui.pivot.pageWrap','product','flatMap','number','univer-flex\x20univer-items-center\x20univer-gap-2','dom','fill','widgets','undoRedoStatus$','univer-grid\x20univer-gap-3\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','right','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','bases-dashboard-ui.dashboardInspector.close','config$','dashboard-chart-setup','bases-dashboard-ui.chart.section.paretoBar','visibilityState','border-box','bases-dashboard-ui.pivot.showRowSubtotal','rowSubtotalPosition','bases-dashboard-ui.chart.section.paretoLine','univer-border-gray-200\x20dark:!univer-border-gray-700','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','dashboard-chart-style','None','round','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-gray-50\x20univer-font-semibold\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','split','options','Sankey','bases-dashboard-ui.chart.section.lineAndArea','select','ParetoLineSeries','bases-dashboard-ui.dashboardInspector.compact','dataStream','univer-mt-2\x20univer-w-full','WordCloud','forEach','bases-dashboard-ui.dashboardInspector.grouped','bases-dashboard-ui.chart.section.relation','bind','univer-w-36','\x20/\x20','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','section','getChartRuntime','pattern','document','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','varp','_element','scrollWidth','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Style','dataView','Image','pageView','hidden','average','bases-dashboard-ui.pivot.tableOnly','activeRuntimeModel','item','top','bases-dashboard-ui.dashboardInspector.alignment','bases-dashboard-ui.operators.isNotEmpty','info','bases-dashboard-ui.pivot.stdDevPopulation','area','IS_EMPTY'];_0x3448=function(){return _0x1022ae;};return _0x3448();}function jr(_0x416343){'@babel/helpers - typeof';const _0x10b798=_0x3447f8;return jr=typeof Symbol==_0x10b798(0x252)&&typeof Symbol[_0x10b798(0x2f0)]=='symbol'?function(_0x1ff5eb){return typeof _0x1ff5eb;}:function(_0x378218){const _0x517a54=_0x10b798;return _0x378218&&typeof Symbol=='function'&&_0x378218[_0x517a54(0x231)]===Symbol&&_0x378218!==Symbol[_0x517a54(0x355)]?'symbol':typeof _0x378218;},jr(_0x416343);}function Mr(_0x49f46b,_0x2ddb61){const _0x5a63a7=_0x3447f8;if(jr(_0x49f46b)!=_0x5a63a7(0x2f1)||!_0x49f46b)return _0x49f46b;var _0x3d448f=_0x49f46b[Symbol[_0x5a63a7(0x22b)]];if(_0x3d448f!==void 0x0){var _0x5d1f9e=_0x3d448f[_0x5a63a7(0x200)](_0x49f46b,_0x2ddb61||_0x5a63a7(0x36e));if(jr(_0x5d1f9e)!=_0x5a63a7(0x2f1))return _0x5d1f9e;throw TypeError(_0x5a63a7(0x2ba));}return(_0x2ddb61==='string'?String:Number)(_0x49f46b);}function Nr(_0x14f060){var _0x21bd07=Mr(_0x14f060,'string');return jr(_0x21bd07)=='symbol'?_0x21bd07:_0x21bd07+'';}function Pr(_0x21ade8,_0x1566ba,_0x4df3c7){const _0x4d5612=_0x3447f8;return(_0x1566ba=Nr(_0x1566ba))in _0x21ade8?Object[_0x4d5612(0x1ba)](_0x21ade8,_0x1566ba,{'value':_0x4df3c7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x21ade8[_0x1566ba]=_0x4df3c7,_0x21ade8;}var Fr=class extends _0x47ac6f{constructor(_0x4a6ded,_0x279c3f){const _0x52290a=_0x3447f8;super(),this[_0x52290a(0xda)]=_0x4a6ded,this[_0x52290a(0x33c)]=_0x279c3f,Pr(this,_0x52290a(0x272),_0x4306b5[_0x52290a(0x403)]);}[_0x3447f8(0x16f)](){const _0x4d0bed=_0x3447f8;return{'width':Math['max'](0x1,this[_0x4d0bed(0x33c)][_0x4d0bed(0x2eb)]),'height':Math['max'](0x1,this[_0x4d0bed(0x33c)][_0x4d0bed(0x3e4)])};}[_0x3447f8(0x3de)](_0x5d6bbb){Ar(this['_element'],_0x5d6bbb);}async[_0x3447f8(0x23a)](){const _0xaedd30=_0x3447f8;return this[_0xaedd30(0x33c)];}[_0x3447f8(0x2bc)](){const _0x3c30c5=_0x3447f8;return this[_0x3c30c5(0x33c)][_0x3c30c5(0x2ce)];}[_0x3447f8(0x22c)](){}['markReady'](){}[_0x3447f8(0xbd)](){}};function Ir({isRowDirection:_0x25c39b,runtime:_0x3433e3}){const _0x10c4b5=_0x3447f8;let _0x5da5d3=_0x4523d4(null),_0x355b33=_0x53af8d(_0x255457),_0x560a9d=_0x53af8d(_0x133842),_0x18cda9=_0x53af8d(kr),_0x1f5277=_0x53af8d(_0x22d94c);return _0x543512(()=>{const _0x6bb577=_0x1596;let _0x36db0e=_0x5da5d3[_0x6bb577(0x23e)];if(!_0x36db0e)return;_0x36db0e[_0x6bb577(0x380)]();let {chartId:_0x5d1811,model:_0x385303}=_0x3433e3,_0x283b75=_0x385303[_0x6bb577(0x2ff)],_0x3c0a7d=new Fr(_0x5d1811,_0x36db0e),_0x49ed65=_0x18cda9[_0x6bb577(0x2a3)](),_0x336146=!0x1,_0x28a10b=null,_0x558bf=null,_0x225c31=null,_0x112d15=null,_0xc5e873=!0x1,_0x29d6e7=!0x1,_0x29d194=Promise[_0x6bb577(0x12e)]();_0x49ed65[_0x6bb577(0x332)](_0x3c0a7d);let _0x1f3d2f=()=>{const _0x333eb8=_0x6bb577;var _0xad8755,_0x1ca40d,_0x2a4a4c,_0x270714;if(document[_0x333eb8(0x31a)]===_0x333eb8(0x343)||(_0xad8755=(_0x1ca40d=window)[_0x333eb8(0x386)])!=null&&(_0xad8755=_0xad8755[_0x333eb8(0x200)](_0x1ca40d,'(prefers-reduced-motion:\x20reduce)'))!=null&&_0xad8755['matches']||(_0x2a4a4c=(_0x270714=window)[_0x333eb8(0x386)])!=null&&(_0x2a4a4c=_0x2a4a4c[_0x333eb8(0x200)](_0x270714,_0x333eb8(0x37c)))!=null&&_0x2a4a4c[_0x333eb8(0x301)]||!_0x36db0e[_0x333eb8(0x2ce)])return!0x1;let _0x522466=_0x36db0e[_0x333eb8(0x263)]();return _0x522466[_0x333eb8(0x144)]>0x0&&_0x522466[_0x333eb8(0x34f)]>0x0&&_0x522466[_0x333eb8(0x314)]>0x0&&_0x522466['bottom']>0x0&&_0x522466['left']<window[_0x333eb8(0x28b)]&&_0x522466['top']<window['innerHeight'];},_0x1dc4ea=()=>{const _0x3b9973=_0x6bb577;_0x558bf!==null&&clearTimeout(_0x558bf),_0x36db0e['dataset'][_0x3b9973(0x10c)]=_0x3b9973(0x2d2),_0x36db0e[_0x3b9973(0x297)][_0x3b9973(0x20f)]=String(_0x133cf9),_0x558bf=setTimeout(()=>{const _0x54e7a8=_0x3b9973;_0x558bf=null,delete _0x36db0e[_0x54e7a8(0x297)][_0x54e7a8(0x10c)],delete _0x36db0e[_0x54e7a8(0x297)][_0x54e7a8(0x20f)];},_0x133cf9);},_0xbceb9e=_0x4ef84c=>{const _0x4d0262=_0x6bb577;if(_0x336146)return;if(_0x28a10b!==null&&(clearTimeout(_0x28a10b),_0x28a10b=null),!_0x385303['config']){_0x29d6e7||=_0x4ef84c;return;}_0x36db0e['dataset'][_0x4d0262(0x13e)]=String(_0x385303[_0x4d0262(0x13e)]),_0x36db0e[_0x4d0262(0x297)][_0x4d0262(0x241)]=String(_0x25c39b);let _0x1cb8b6=_0x18cda9[_0x4d0262(0x1d9)](_0x3433e3),_0x4aa2e7={'chartId':_0x5d1811,'config':_0x1cb8b6['config'],'style':_0x1cb8b6[_0x4d0262(0xc1)]};_0x29d194=_0x29d194['then'](async()=>{const _0x54d68c=_0x4d0262;_0x336146||(_0x36db0e[_0x54d68c(0x297)][_0x54d68c(0x383)]=String(Number(_0x36db0e[_0x54d68c(0x297)][_0x54d68c(0x383)]??0x0)+0x1),_0x4ef84c&&_0x225c31&&_0x49ed65[_0x54d68c(0x2a1)]&&_0x1f3d2f()?(await _0x49ed65['renderTransition'](_0x225c31,_0x4aa2e7,{'duration':_0x133cf9}),_0x336146||_0x1dc4ea()):await _0x49ed65[_0x54d68c(0x3c2)](_0x4aa2e7),_0x225c31=_0x4aa2e7);})[_0x4d0262(0x308)](_0x524110=>_0x560a9d[_0x4d0262(0x1a3)](_0x4d0262(0x364),_0x524110));},_0x690dce=(_0x214abd=!0x1)=>{_0x29d6e7||=_0x214abd,!_0xc5e873&&(_0xc5e873=!0x0,queueMicrotask(()=>{_0xc5e873=!0x1;let _0x4f2b97=_0x29d6e7;_0x29d6e7=!0x1,_0xbceb9e(_0x4f2b97);}));},_0x243f02=[_0x283b75[_0x6bb577(0x398)][_0x6bb577(0x178)](_0x36642c=>{let _0x8cb729=JSON['stringify'](_0x36642c);_0x112d15!=null&&_0x112d15!==_0x8cb729&&_0x690dce(!0x0),_0x112d15=_0x8cb729;}),_0x385303[_0x6bb577(0x317)]['subscribe'](_0x3702d1=>{_0x3702d1&&_0x690dce();}),_0x385303[_0x6bb577(0x1b8)][_0x6bb577(0x178)](()=>_0x690dce()),_0x355b33['direction$'][_0x6bb577(0x178)](()=>_0x690dce()),_0x35ec39([_0x1f5277[_0x6bb577(0x14a)],_0x1f5277[_0x6bb577(0x19a)]])[_0x6bb577(0x387)](_0x4f0506(0x1))[_0x6bb577(0x178)](()=>_0x690dce())],_0x229f61=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x5a72da=_0x6bb577;_0x336146||(_0x3c0a7d[_0x5a72da(0x22c)](),_0x28a10b!==null&&clearTimeout(_0x28a10b),_0x28a10b=setTimeout(()=>_0x690dce(),0x64));});return _0x229f61==null||_0x229f61[_0x6bb577(0x17a)](_0x36db0e),()=>{const _0x33911e=_0x6bb577;_0x336146=!0x0,_0x28a10b!==null&&clearTimeout(_0x28a10b),_0x558bf!==null&&clearTimeout(_0x558bf),delete _0x36db0e['dataset'][_0x33911e(0x10c)],delete _0x36db0e[_0x33911e(0x297)][_0x33911e(0x20f)],_0x229f61==null||_0x229f61['disconnect'](),_0x243f02[_0x33911e(0x32f)](_0x17b4be=>_0x17b4be[_0x33911e(0x3c6)]()),_0x49ed65['dispose'](),_0x3c0a7d[_0x33911e(0x2fe)](),_0x36db0e[_0x33911e(0x380)]();};},[_0x25c39b,_0x355b33,_0x560a9d,_0x18cda9,_0x3433e3,_0x1f5277]),_0x1fa005(_0x10c4b5(0x1e8),{'ref':_0x5da5d3,'data-u-comp':_0x10c4b5(0x1ff),'className':_0x10c4b5(0xcc)});}function Lr({filters:_0x428449,onRuntimeChange:_0x246468,unitId:_0x491c8a,widget:_0x356b0a}){const _0x91979c=_0x3447f8;let _0x41b9d4=_0x53af8d(_0xa15270),_0x5ea7ef=_0x53af8d(_0x255457),_0x49c22a=_0x53af8d(_0x133842),_0x494e83=_0x53af8d(_0x2cc67a),[_0x2aed0c,_0x514163]=_0xee90d5(null),[_0xe3d686,_0x3107c2]=_0xee90d5(!0x1),[_0x45f958,_0x40e39f]=_0xee90d5(null),_0x71ab73=_0x4523d4(_0x91979c(0x381)+_0x2aef82(0x8)),_0x17063a=_0x41b9d4[_0x91979c(0x3be)](_0x491c8a,_0x6e7cef[_0x91979c(0x1f7)]),_0x2eb99f=_0x17063a==null?void 0x0:_0x17063a['getSnapshot']()['tables'][_0x356b0a['tableId']],_0x380b4d=_0x2eb99f==null?void 0x0:_0x2eb99f[_0x91979c(0x2dc)][_0x356b0a[_0x91979c(0x2e1)]],_0x28c5aa=Rr(_0x380b4d);if(_0x543512(()=>{const _0x4af76c=_0x91979c;if(!_0x28c5aa)return;let _0x424ebe=_0x71ab73[_0x4af76c(0x23e)];return _0x494e83['acquireChartRuntime'](_0x424ebe,{'unitId':_0x491c8a,'tableId':_0x356b0a[_0x4af76c(0x154)],'viewId':_0x356b0a['pivotViewId'],'filters':[]}),()=>{const _0x3798b0=_0x4af76c;_0x494e83[_0x3798b0(0x197)](_0x491c8a,_0x424ebe),_0x246468==null||_0x246468(_0x356b0a['id'],null);};},[_0x28c5aa,_0x246468,_0x494e83,_0x491c8a,_0x356b0a['id'],_0x356b0a['pivotViewId'],_0x356b0a[_0x91979c(0x154)]]),_0x543512(()=>{const _0xb63695=_0x91979c;if(!Rr(_0x380b4d))return;let _0x7bab0a=!0x0,_0x17a1b8=_0x356b0a[_0xb63695(0x1eb)]??_0x380b4d[_0xb63695(0x2b0)][_0xb63695(0x1eb)],_0x5ee941={'unitId':_0x491c8a,'tableId':_0x356b0a[_0xb63695(0x154)],'viewId':_0x356b0a[_0xb63695(0x2e1)],'filters':[_0x380b4d['filter']??null,..._0x428449]};return _0x494e83[_0xb63695(0x1d6)](_0x491c8a,_0x71ab73[_0xb63695(0x23e)],_0x5ee941,_0x17a1b8)[_0xb63695(0x401)](_0x447f4f=>{const _0x25ad30=_0xb63695;if(!_0x7bab0a||!_0x447f4f)return;let _0x67c2b3=_0x494e83[_0x25ad30(0x337)](_0x491c8a,_0x71ab73[_0x25ad30(0x23e)])??null;_0x514163(_0x447f4f),_0x40e39f(_0x67c2b3),_0x3107c2(!0x1),_0x246468==null||_0x246468(_0x356b0a['id'],_0x67c2b3);})[_0xb63695(0x308)](_0xa5edd1=>{const _0x53e809=_0xb63695;_0x49c22a[_0x53e809(0x1a3)](_0x53e809(0x2d8),_0xa5edd1),_0x7bab0a&&(_0x514163(null),_0x3107c2(!0x0));}),()=>{_0x7bab0a=!0x1;};},[_0x428449,_0x49c22a,_0x246468,_0x494e83,_0x491c8a,_0x380b4d,_0x356b0a['chart'],_0x356b0a['id'],_0x356b0a[_0x91979c(0x2e1)],_0x356b0a['tableId']]),!Rr(_0x380b4d))return _0x1fa005(_0x91979c(0x1e8),{'className':_0x91979c(0x2c1),'children':_0x5ea7ef['t'](_0x91979c(0xe2))});let _0xfa2201=_0x494e83[_0x91979c(0x337)](_0x491c8a,_0x71ab73[_0x91979c(0x23e)])===_0x45f958?_0x45f958:null;return _0x2aed0c&&_0xfa2201?_0x1fa005(Ir,{'isRowDirection':_0x18785d((_0x356b0a[_0x91979c(0x1eb)]??_0x380b4d['config'][_0x91979c(0x1eb)])[_0x91979c(0x1cf)]),'runtime':_0xfa2201}):_0x1fa005('div',{'className':_0x91979c(0x2c1),'children':_0x5ea7ef['t'](_0xe3d686?'bases-dashboard-ui.pivot.calculationFailed':_0x91979c(0x405))});}function Rr(_0x374578){const _0xae8396=_0x3447f8;return(_0x374578==null?void 0x0:_0x374578[_0xae8396(0x1b9)])===_0x4da0de[_0xae8396(0x1ec)]&&typeof _0x374578[_0xae8396(0x2b0)]==_0xae8396(0x2f1)&&_0x374578[_0xae8396(0x2b0)]!==null&&_0xae8396(0x10d)in _0x374578[_0xae8396(0x2b0)]&&_0xae8396(0x1eb)in _0x374578['config'];}const zr={'alignment':_0x3447f8(0x1b4),'fontSize':0x12,'fontSizeMode':_0x3447f8(0x195)};function Br(_0x1107b1){return{...zr,..._0x1107b1['appearance']};}function Vr(_0x4f5e88){const _0x2f5109=_0x3447f8;var _0x426c71;return((_0x426c71=_0x4f5e88[_0x2f5109(0x18a)])==null?void 0x0:_0x426c71[_0x2f5109(0x32c)]['replace'](/\r\n$/,'')[_0x2f5109(0x114)](/\r/g,'\x0a'))??'';}function Hr(_0x374124,_0x9df30){const _0x38436e=_0x3447f8;var _0x45292e;let _0x45c080=_0x9df30[_0x38436e(0x114)](/\r\n|\r/g,'\x0a')[_0x38436e(0x325)]('\x0a'),_0x4c6cb5=_0x45c080[_0x38436e(0x211)]('\x0d')+'\x0d\x0a',_0x182849=((_0x45292e=_0x374124[_0x38436e(0x18a)])==null?void 0x0:_0x45292e[_0x38436e(0x12d)])??[],_0x5135c4=new Set(_0x182849[_0x38436e(0x1ee)](_0x4c389d=>_0x4c389d[_0x38436e(0x3ba)])),_0x2c8d75=0x0,_0x4c5d0e=_0x45c080['map']((_0x9ac136,_0x1bb5a5)=>{const _0x53c0e0=_0x38436e;_0x2c8d75+=_0x9ac136[_0x53c0e0(0x2c8)];let _0x284a6e={..._0x182849[_0x1bb5a5]??{'startIndex':_0x2c8d75,'paragraphId':_0x156ce9(_0x5135c4)},'startIndex':_0x2c8d75};return _0x2c8d75+=0x1,_0x284a6e;});return{..._0x374124,'body':{..._0x374124[_0x38436e(0x18a)],'dataStream':_0x4c6cb5,'paragraphs':_0x4c5d0e,'textRuns':[]}};}function Ur({widget:_0x33b577}){const _0x326cb3=_0x3447f8;let _0x257f1d=_0x53af8d(_0x22d94c),_0x22101e=_0x53af8d(_0x255457),_0x2b65ec=_0x129d28(()=>_0x257f1d['currentTheme$'],_0x257f1d[_0x326cb3(0x11c)](),!0x1,[_0x257f1d]),_0x565cf8=_0x4523d4(null),_0x397542=_0x4523d4(null),_0x19f6af=Br(_0x33b577),_0x321f7a=_0x19f6af[_0x326cb3(0x134)]??_0x2b65ec['gray'][0x0],_0x193cf0=_0x19f6af[_0x326cb3(0xef)]??_0x2b65ec['gray'][0x3e8],_0x2e060f=Vr(_0x33b577['document']);return _0x543512(()=>{const _0x4ccb26=_0x326cb3;let _0x281b3f=_0x565cf8['current'],_0x111108=_0x397542[_0x4ccb26(0x23e)];if(!_0x281b3f||!_0x111108)return;let _0x4bbd35=()=>{const _0x171a28=_0x4ccb26;if(_0x19f6af[_0x171a28(0x38a)]===_0x171a28(0x1b1)||!_0x281b3f[_0x171a28(0x2eb)]||!_0x281b3f[_0x171a28(0x3e4)]){_0x111108[_0x171a28(0xc1)][_0x171a28(0x1ae)]=_0x19f6af[_0x171a28(0x1ae)]+'px';return;}let _0x3a88af=0x8,_0x385240=0x48,_0x5acd77=_0x3a88af;for(;_0x3a88af<=_0x385240;){let _0x57c0b2=Math[_0x171a28(0x112)]((_0x3a88af+_0x385240)/0x2);_0x111108[_0x171a28(0xc1)][_0x171a28(0x1ae)]=_0x57c0b2+'px',_0x111108[_0x171a28(0x33d)]<=_0x281b3f[_0x171a28(0x2eb)]&&_0x111108[_0x171a28(0x21a)]<=_0x281b3f[_0x171a28(0x3e4)]?(_0x5acd77=_0x57c0b2,_0x3a88af=_0x57c0b2+0x1):_0x385240=_0x57c0b2-0x1;}_0x111108[_0x171a28(0xc1)][_0x171a28(0x1ae)]=_0x5acd77+'px';};if(_0x4bbd35(),typeof ResizeObserver>'u')return;let _0x2c60fd=new ResizeObserver(_0x4bbd35);return _0x2c60fd[_0x4ccb26(0x17a)](_0x281b3f),()=>_0x2c60fd['disconnect']();},[_0x19f6af[_0x326cb3(0x1ae)],_0x19f6af[_0x326cb3(0x38a)],_0x2e060f]),_0x1fa005('div',{'data-dashboard-text-widget':_0x33b577['id'],'className':_0x326cb3(0x315),'style':{'backgroundColor':_0x321f7a,'color':_0x193cf0},'children':_0x1fa005(_0x326cb3(0x1e8),{'ref':_0x565cf8,'data-dashboard-text-content':!0x0,'aria-label':_0x22101e['t']('bases-dashboard-ui.dashboard.text'),'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','children':_0x1fa005(_0x326cb3(0x1e8),{'ref':_0x397542,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x19f6af['fontSizeMode'],'className':'univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','style':{'textAlign':_0x19f6af[_0x326cb3(0x218)]},'children':_0x2e060f})})});}function Wr({dashboard:_0x1ede8b,editable:_0xcdb2b0=!0x0,onSelectWidget:_0x426fba,renderWidget:_0x3e544d,renderWidgetActions:_0x5901b0,selectedWidgetId:_0x2ffc2f,widgetLabel:_0x2866ac}){const _0x59a188=_0x3447f8;return _0x1fa005(_0x59a188(0x1e8),{'data-dashboard-scroll-container':!0x0,'className':_0x54dbd2('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',_0x2bbb9f),'onClick':_0xcdb2b0?_0x25b894=>{const _0x22a29a=_0x59a188;if(!(_0x25b894[_0x22a29a(0x3ea)]instanceof Node)||!_0x25b894[_0x22a29a(0x3c3)]['contains'](_0x25b894['target']))return;let _0x52343d=_0x25b894[_0x22a29a(0x3ea)]instanceof Element?_0x25b894[_0x22a29a(0x3ea)]:_0x25b894[_0x22a29a(0x3ea)][_0x22a29a(0x2f7)];_0x52343d!=null&&_0x52343d['closest'](_0x22a29a(0x187))||_0x426fba==null||_0x426fba();}:void 0x0,'children':_0x1fa005('div',{'data-dashboard-grid':!0x0,'className':'univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','children':_0x1ede8b[_0x59a188(0x2a6)][_0x59a188(0x1ee)](_0x372d6d=>{const _0xe9227c=_0x59a188;let _0x242825=_0x1ede8b[_0xe9227c(0x311)][_0x372d6d];if(!_0x242825)return null;let _0x40eeee=Math[_0xe9227c(0x351)](0xb4,_0x242825['layout'][_0xe9227c(0x3ef)]*_0x35833c);return _0x5c238f(_0xe9227c(0x363),{'data-dashboard-widget':_0x242825['id'],'aria-label':_0x242825['title']??_0x2866ac(_0x242825),'className':_0x54dbd2(_0xe9227c(0x3f3),_0x242825['type']===_0x28a714[_0xe9227c(0x341)]||_0x242825['type']===_0x28a714['FormulaShape']?'univer-bg-transparent\x20dark:!univer-bg-transparent':_0xe9227c(0x151),_0xcdb2b0&&_0x2ffc2f===_0x242825['id']?_0xe9227c(0x1dd):'univer-border-gray-200\x20dark:!univer-border-gray-700'),'style':{'minHeight':_0x40eeee,'height':_0x40eeee},'tabIndex':_0xcdb2b0?0x0:void 0x0,'onClick':_0xcdb2b0?()=>_0x426fba==null?void 0x0:_0x426fba(_0x242825['id']):void 0x0,'onFocus':_0xcdb2b0?()=>_0x426fba==null?void 0x0:_0x426fba(_0x242825['id']):void 0x0,'children':[_0xcdb2b0&&_0x1fa005(_0xe9227c(0x1e8),{'className':'univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','children':_0x5901b0==null?void 0x0:_0x5901b0(_0x242825)}),_0x1fa005(_0xe9227c(0x1e8),{'className':_0xe9227c(0x264),'children':_0x3e544d(_0x242825)})]},_0x242825['id']);})})});}let Gr=class extends _0xa5aa5a{constructor(_0x576d67){const _0x48fc70=_0x3447f8;super(_0x576d67),Pr(this,_0x48fc70(0x346),null);}[_0x3447f8(0x408)](_0x4d3f41){}};Gr=Or([Y(0x0,_0x1e6fb0(_0x91bc23))],Gr);function Kr({children:_0x497416}){return _0x1fa005(_0x342c29,{'children':_0x497416});}function qr(_0x1aca35){return _0x1fa005(_0xea1085,{..._0x1aca35});}function Jr(_0x52fb50){return _0x1fa005(_0x3837bd,{..._0x52fb50});}function Yr(_0xf263f8){return _0x1fa005(_0x2661d2,{..._0xf263f8});}var Xr;const X={'axis':{..._0x152708,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x540e6b,'heatmap':_0x5badfc,'indicatorLine':_0x252eea,'legend':_0x337e65,'lineAndArea':_0x5e0a33,'pareto':_0x38048e,'pie':_0x1c8b9e,'radar':_0x4bcca4,'relation':{..._0x3de6de,'useValueAsSymbolSize':!0x0},'series':{..._0x324182,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Xr=_0x2ce46e['allSeriesStyle'])==null?void 0x0:Xr[_0x3447f8(0x284)])??!0x1}},'style':_0xd40535,'titles':_0x289a2d,'trendline':_0x4c6d30,'waterfall':{..._0x15085e,'useSubtotal':!0x0},'waterfallStyle':_0x3f0564,'wordCloud':_0x145212},Zr=[_0x44b61b['Line'],_0x44b61b[_0x3447f8(0x35a)],_0x44b61b[_0x3447f8(0x32e)],_0x44b61b[_0x3447f8(0x2ab)],_0x44b61b[_0x3447f8(0x23c)],_0x44b61b[_0x3447f8(0x108)],_0x44b61b[_0x3447f8(0x327)],_0x44b61b['Heatmap'],_0x44b61b[_0x3447f8(0x172)],_0x44b61b[_0x3447f8(0x265)],_0x44b61b[_0x3447f8(0xf7)],_0x44b61b[_0x3447f8(0x1f8)],_0x44b61b['Sunburst'],_0x44b61b[_0x3447f8(0x37b)],_0x44b61b[_0x3447f8(0x2de)]];function Qr(_0x4d6f0c){const _0x3caa29=_0x3447f8;let {config:_0x1a7e5e,onChange:_0x3114d0,runtime:_0x268c26,tableName:_0x9e5b70}=_0x4d6f0c,_0x498f29=_0x53af8d(Gr),_0x41fa39=_0x53af8d(_0x255457),[_0x337686,_0x2c376a]=_0xee90d5(_0x2599aa['Data']),_0x59d9ed=_0x125177(()=>new _0x3832ea(_0x268c26[_0x3caa29(0x2c4)],{'commit':_0xdb1db4=>{const _0xa825d7=_0x3caa29;var _0x53f84b;let _0x18b571=_0x268c26['model'],_0x1bf179=_0x3fd4b5(_0xdb1db4,{'series':(_0x53f84b=_0x18b571[_0xa825d7(0x2b0)])==null?void 0x0:_0x53f84b['series'],'currentChartType':_0x18b571[_0xa825d7(0x13e)],'currentStyle':_0x18b571[_0xa825d7(0xc1)],'currentContext':_0x18b571['context'],'currentDataAggregation':_0x18b571['dataAggregation']});_0x3114d0({'chart':$r(_0x1a7e5e[_0xa825d7(0x1eb)],_0x1bf179)});}}),[_0x1a7e5e[_0x3caa29(0x1eb)],_0x3114d0,_0x268c26]),_0x45e053=_0x125177(()=>_0x4fc7e8(_0x1016f1[_0x3caa29(0x1ee)](_0x16ea00=>({..._0x16ea00,'label':_0x41fa39['t'](ri(_0x16ea00['labelId']))}))),[_0x41fa39]);return _0x1fa005(_0x378b2c,{'chartUIService':_0x498f29,'hostAdapter':_0x59d9ed,'children':_0x5c238f(_0x3caa29(0x1e8),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x1fa005(_0x283559,{'ariaLabel':_0x41fa39['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x3caa29(0x302),'items':[{'label':_0x41fa39['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0x3caa29(0x1dc),'value':_0x2599aa['Data']},{'label':_0x41fa39['t'](_0x3caa29(0x2e7)),'panelId':_0x3caa29(0x243),'value':_0x2599aa['Style']}],'value':_0x337686,'onChange':_0x2c376a}),_0x337686===_0x2599aa[_0x3caa29(0x2aa)]?_0x1fa005(_0x2a9829,{'id':'base-pivot-chart-setup','label':_0x41fa39['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x5c238f(_0x3caa29(0x1e8),{'className':_0x3caa29(0x228),'children':[_0x1fa005(_0x28e1f3,{'options':_0x45e053}),_0x1fa005(_0x2fc38a,{}),_0x1fa005(_0x57f87a,{}),_0x1fa005(ei,{}),_0x1fa005(_0x2fa3d3,{}),_0x5c238f(_0x3caa29(0x1e8),{'children':[_0x1fa005(_0x36a7b3,{'title':_0x41fa39['t'](_0x3caa29(0x1ed))}),_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':_0x9e5b70})]}),_0x1fa005(_0x3a6df3,{'orientationControl':_0x1fa005(_0x10d589,{'size':'small','onClick':()=>_0x3114d0({'chart':{..._0x1a7e5e['chart'],'orient':_0x1a7e5e[_0x3caa29(0x1eb)]['orient']===_0x3caa29(0x2b6)?'column':'row'}}),'children':_0x41fa39['t'](_0x3caa29(0x141))})}),_0x1fa005(_0x20436f,{}),_0x1fa005(_0x4b136e,{'defaultValues':X['waterfall']}),_0x5c238f(_0x3caa29(0x1e8),{'children':[_0x1fa005(_0x36a7b3,{'title':_0x41fa39['t'](_0x3caa29(0x404))}),_0x1fa005(qr,{'value':_0x1a7e5e[_0x3caa29(0x2f2)],'options':[{'value':_0x3caa29(0xf9),'label':_0x41fa39['t'](_0x3caa29(0x373))},{'value':_0x3caa29(0x1eb),'label':_0x41fa39['t'](_0x3caa29(0x201))},{'value':_0x3caa29(0x173),'label':_0x41fa39['t'](_0x3caa29(0x345))}],'onChange':_0x5314fb=>{const _0x5017a2=_0x3caa29;(_0x5314fb==='chart-and-table'||_0x5314fb===_0x5017a2(0x1eb)||_0x5314fb==='table')&&_0x3114d0({'displayMode':_0x5314fb});}})]})]})}):_0x1fa005(_0x2a9829,{'id':_0x3caa29(0x243),'label':_0x41fa39['t'](_0x3caa29(0x2e7)),'children':_0x1fa005(ti,{})})]})});}function $r(_0x45dc48,_0x4c48bd){const _0x1c5ea4=_0x3447f8;return{..._0x45dc48,'type':_0x4c48bd[_0x1c5ea4(0x13e)]??_0x45dc48['type'],'style':_0x4c48bd[_0x1c5ea4(0xc1)]??_0x45dc48[_0x1c5ea4(0xc1)],'context':_0x4c48bd[_0x1c5ea4(0x1e3)]??_0x45dc48[_0x1c5ea4(0x1e3)],'dataAggregation':_0x4c48bd[_0x1c5ea4(0x219)]??_0x45dc48['dataAggregation']};}function ei(){const _0x542318=_0x3447f8;let _0xabe3e0=_0x3d34ba();return _0x1fa005(_0x5103da,{'visible':Zr[_0x542318(0xf2)](_0x53f079=>!_0x51a8fc[_0x542318(0x275)](_0xabe3e0,_0x53f079))});}function Z(_0x50be19){const _0x11750c=_0x3447f8;return _0x5c238f(_0x8a2ccf,{'id':_0x50be19['id'],'children':[_0x1fa005(_0x32883f,{'children':_0x50be19[_0x11750c(0x24a)]}),_0x1fa005(_0x3206aa,{'children':_0x50be19['children']})]});}function ti(){const _0x54503e=_0x3447f8;let _0x2d65f4=_0x53af8d(_0x255457),_0x44c45c=_0x3d34ba(),_0x2a8ca0=_0x20bafb(),[_0x2a76e4,_0x15414d]=_0xee90d5(null),_0x2fb2ec=_0x51a8fc[_0x54503e(0x275)](_0x44c45c,_0x44b61b[_0x54503e(0x157)]),_0x44f3df=_0x44c45c===_0x44b61b[_0x54503e(0x35a)],_0xe0ab2f=_0x44c45c===_0x44b61b['WordCloud'],_0x3226f9=_0x44c45c===_0x44b61b[_0x54503e(0x23c)],_0x5c329d=_0x51a8fc[_0x54503e(0x275)](_0x44c45c,_0x44b61b[_0x54503e(0x3cd)]),_0x17e0cd=_0x44c45c===_0x44b61b[_0x54503e(0x108)],_0x135d2a=_0x44c45c===_0x44b61b['Waterfall'],_0x26ba55=_0x44c45c===_0x44b61b['Pareto'],_0x3ff624=_0x44c45c===_0x44b61b[_0x54503e(0x27c)],_0x21e549=_0xe0cb49(_0x44c45c,_0x44db8c[_0x54503e(0x27f)])&&!_0x5c329d&&!_0x26ba55,_0x156cc8=ni(_0x44c45c,_0x2d65f4);return _0x5c238f(_0x11d43d,{'value':_0x2a76e4,'onChange':_0x15414d,'children':[_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x2a8)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0x1fa005(_0x20d08d,{'defaultValues':X[_0x54503e(0xc1)]})}),_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x2ea)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.common.chartAndAxisTitles'),'children':_0x1fa005(_0x245340,{'commitMode':_0x54503e(0x303),'defaultValues':X[_0x54503e(0xbb)]})}),_0x21e549&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0xfa)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.common.series'),'children':_0x1fa005(_0x33c14c,{'defaultValues':X[_0x54503e(0x283)],'NumberFormatField':_0x3220da})}),_0x135d2a&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x216)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.section.waterfall'),'children':_0x1fa005(_0x166174,{'defaultValues':X['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x412769,target:_0x59bdbc})=>_0x59bdbc===_0x1aea73[_0x54503e(0x293)]?_0x2d65f4['t'](_0x54503e(0x236)):_0x412769?_0x412769+'-('+_0x2d65f4['t'](_0x54503e(0x1c4)+(_0x59bdbc===_0x1aea73['Positive']?_0x54503e(0x38c):_0x54503e(0x29e)))+')':'','NumberFormatField':_0x3220da})}),_0x26ba55&&_0x5c238f(_0x594ef8,{'children':[_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x2b9)],'label':_0x2d65f4['t'](_0x54503e(0x319)),'children':_0x1fa005(_0x44a0fb,{'defaultValues':X[_0x54503e(0x189)],'NumberFormatField':_0x3220da,'showDataPointEditor':!0x0,'target':_0x54503e(0xc3)})}),_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x32a)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':_0x1fa005(_0x44a0fb,{'defaultValues':X[_0x54503e(0x189)],'NumberFormatField':_0x3220da,'showDataPointEditor':!0x1,'target':_0x54503e(0x3e8)})})]}),_0x2fb2ec&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x1ce)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.section.pie'),'children':_0x1fa005(_0x4b289c,{'defaultValues':X[_0x54503e(0x3f5)],'NumberFormatField':_0x3220da})}),_0xe0ab2f&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x32e)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.section.wordCloud'),'children':_0x1fa005(_0x13d7d7,{'defaultValues':X[_0x54503e(0x3c0)]})}),_0x44f3df&&_0x1fa005(Z,{'id':_0x2ecbeb['Radar'],'label':_0x2d65f4['t'](_0x54503e(0x1cd)),'children':_0x1fa005(_0x1d9e1f,{'defaultValues':X[_0x54503e(0x2cc)]})}),_0x3226f9&&_0x1fa005(Z,{'id':_0x2ecbeb['Funnel'],'label':_0x2d65f4['t'](_0x54503e(0x10b)),'children':_0x1fa005(_0x7de25d,{'defaultValues':X[_0x54503e(0x306)],'gapControl':_0x54503e(0x329)})}),_0x3ff624&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x27c)],'label':_0x2d65f4['t']('bases-dashboard-ui.chart.common.heatmap'),'children':_0x1fa005(_0x51ee3a,{'defaultValues':X[_0x54503e(0x28f)]})}),_0x17e0cd&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x108)],'label':_0x2d65f4['t'](_0x54503e(0x331)),'children':_0x1fa005(_0xa63c30,{'defaultValues':X[_0x54503e(0x37d)]})}),_0x2aabdc(_0x44c45c)&&_0x1fa005(Z,{'id':_0x2ecbeb['LineAndArea'],'label':_0x2d65f4['t'](_0x54503e(0x328)),'children':_0x1fa005(_0x171453,{'defaultValues':X[_0x54503e(0x133)],'lineStyleControl':_0x54503e(0x2db)})}),_0xe0cb49(_0x44c45c,_0x44db8c[_0x54503e(0x2fa)])&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x2fa)],'label':_0x2d65f4['t'](_0x54503e(0x2ca)),'children':_0x1fa005(_0x4d3419,{'defaultValues':X[_0x54503e(0x3c8)]})}),_0xe0cb49(_0x44c45c,_0x44db8c['Axes'])&&_0x5c238f(_0x594ef8,{'children':[_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x2e4)],'label':_0x2d65f4['t'](_0x54503e(0x287)),'children':_0x1fa005(_0x3ee0e8,{'axis':'x','defaultValues':X[_0x54503e(0x288)],'NumberFormatField':_0x3220da})}),_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x3d3)],'label':_0x2d65f4['t'](_0x54503e(0x12b)),'children':_0x1fa005(_0x3ee0e8,{'axis':'y','defaultValues':X['axis'],'NumberFormatField':_0x3220da})}),_0x2a8ca0&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x180)],'label':_0x2d65f4['t'](_0x54503e(0x2f5)),'children':_0x1fa005(_0x3ee0e8,{'axis':_0x54503e(0x307),'defaultValues':X[_0x54503e(0x288)],'NumberFormatField':_0x3220da})}),_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x3b7)],'label':_0x2d65f4['t'](_0x54503e(0x35b)),'children':_0x1fa005(_0x3fd0a7,{'defaultValues':X[_0x54503e(0x288)]})})]}),_0xe0cb49(_0x44c45c,_0x44db8c['IndicatorLine'])&&_0x1fa005(Z,{'id':_0x2ecbeb[_0x54503e(0x409)],'label':_0x2d65f4['t'](_0x54503e(0x220)),'children':_0x1fa005(_0x566467,{'defaultValues':X[_0x54503e(0x140)]})}),_0x5b26be(_0x44c45c)&&_0x1fa005(Z,{'id':_0x2ecbeb['Trendline'],'label':_0x2d65f4['t'](_0x54503e(0x1c3)),'children':_0x1fa005(_0x3c2f68,{'defaultValues':X[_0x54503e(0x230)]})}),_0x156cc8&&_0x1fa005(Z,{'id':_0x156cc8['id'],'label':_0x156cc8[_0x54503e(0x24a)],'children':_0x1fa005(_0x2412a5,{})})]});}function ni(_0x3be12e,_0x377dae){const _0x59a06f=_0x3447f8;let _0x20af7e={[_0x44b61b[_0x59a06f(0x265)]]:{'id':_0x2ecbeb['Candlestick'],'localeKey':_0x59a06f(0x267)},[_0x44b61b['Histogram']]:{'id':_0x2ecbeb[_0x59a06f(0xf7)],'localeKey':_0x59a06f(0x3f2)},[_0x44b61b[_0x59a06f(0x1f8)]]:{'id':_0x2ecbeb[_0x59a06f(0x1f8)],'localeKey':'bases-dashboard-ui.chart.section.treemap'},[_0x44b61b[_0x59a06f(0x1e2)]]:{'id':_0x2ecbeb[_0x59a06f(0x1e2)],'localeKey':_0x59a06f(0x205)},[_0x44b61b[_0x59a06f(0x37b)]]:{'id':_0x2ecbeb[_0x59a06f(0x37b)],'localeKey':'bases-dashboard-ui.chart.section.gauge'},[_0x44b61b['Chord']]:{'id':_0x2ecbeb[_0x59a06f(0x2de)],'localeKey':_0x59a06f(0x354)}}[_0x3be12e];return _0x20af7e?{'id':_0x20af7e['id'],'label':_0x377dae['t'](_0x20af7e[_0x59a06f(0x139)])}:null;}function ri(_0x2b61c9){const _0x377632=_0x3447f8;return _0x377632(0x148)+_0x2b61c9;}function ii({onChange:_0x2f2ac6,onEditData:_0x47292e,runtime:_0x2fe732,sourceChart:_0x45f6e4,sourceName:_0x8514ea,widget:_0x3c6c80}){const _0x5849f1=_0x3447f8;let _0x423797=_0x53af8d(Gr),_0x14bb9b=_0x53af8d(_0x255457),[_0xcbb894,_0x3c62ad]=_0xee90d5(_0x2599aa[_0x5849f1(0x2aa)]),_0x2d0849=_0x3c6c80['chart']??_0x45f6e4,_0x16c7a2=_0x125177(()=>new _0x3832ea(_0x2fe732[_0x5849f1(0x2c4)],{'commit':_0x46c03=>{const _0x166c28=_0x5849f1;var _0x22bda6;let _0x36d3b5=_0x2fe732[_0x166c28(0x2c4)],_0x4230ce=_0x3fd4b5(_0x46c03,{'series':(_0x22bda6=_0x36d3b5['config'])==null?void 0x0:_0x22bda6[_0x166c28(0x283)],'currentChartType':_0x36d3b5[_0x166c28(0x13e)],'currentStyle':_0x36d3b5[_0x166c28(0xc1)],'currentContext':_0x36d3b5[_0x166c28(0x1e3)],'currentDataAggregation':_0x36d3b5[_0x166c28(0x219)]});_0x2f2ac6({..._0x3c6c80,'chart':$r(_0x2d0849,_0x4230ce)})[_0x166c28(0x308)](()=>void 0x0);}}),[_0x2d0849,_0x2f2ac6,_0x2fe732,_0x3c6c80]),_0x59e6bb=_0x125177(()=>_0x4fc7e8(_0x1016f1['map'](_0x229449=>({..._0x229449,'label':_0x14bb9b['t'](ai(_0x229449[_0x5849f1(0x2ad)]))}))),[_0x14bb9b]);return _0x1fa005(_0x4bde66,{'chartUIService':_0x423797,'hostAdapter':_0x16c7a2,'children':_0x5c238f(_0x5849f1(0x1e8),{'data-dashboard-chart-inspector':!0x0,'className':_0x5849f1(0x1bd),'children':[_0x1fa005(_0x283559,{'ariaLabel':_0x14bb9b['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x5849f1(0x302),'items':[{'label':_0x14bb9b['t'](_0x5849f1(0x169)),'panelId':_0x5849f1(0x318),'value':_0x2599aa[_0x5849f1(0x2aa)]},{'label':_0x14bb9b['t'](_0x5849f1(0x2e7)),'panelId':_0x5849f1(0x321),'value':_0x2599aa[_0x5849f1(0x33f)]}],'value':_0xcbb894,'onChange':_0x3c62ad}),_0xcbb894===_0x2599aa['Data']?_0x1fa005(_0x2a9829,{'id':'dashboard-chart-setup','label':_0x14bb9b['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x5c238f(_0x5849f1(0x1e8),{'className':_0x5849f1(0x228),'children':[_0x1fa005(_0x28e1f3,{'options':_0x59e6bb}),_0x1fa005(_0x2fc38a,{}),_0x1fa005(_0x57f87a,{}),_0x1fa005(ei,{}),_0x1fa005(_0x2fa3d3,{}),_0x5c238f(_0x5849f1(0x1e8),{'children':[_0x1fa005(_0x36a7b3,{'title':_0x14bb9b['t']('bases-dashboard-ui.dashboardInspector.dataSource')}),_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':_0x8514ea}),_0x1fa005(_0x10d589,{'className':_0x5849f1(0x32d),'onClick':_0x47292e,'children':_0x14bb9b['t'](_0x5849f1(0xe5))})]})]})}):_0x1fa005(_0x2a9829,{'id':'dashboard-chart-style','label':_0x14bb9b['t'](_0x5849f1(0x2e7)),'children':_0x1fa005(ti,{})})]})});}function ai(_0x2f0cbf){const _0x525342=_0x3447f8;return _0x525342(0x148)+_0x2f0cbf;}const oi=[_0x3447f8(0x20a),_0x3447f8(0x30d),'percent',_0x3447f8(0x39b),_0x3447f8(0x196),_0x3447f8(0x3da)];function si({base:_0x35f59b,onChange:_0x580fcb,onSelectBackgroundImage:_0x41e010,widget:_0x27c75e}){const _0x76ffdf=_0x3447f8;var _0x51fd20;let _0x275568=_0x53af8d(_0x255457),_0x24103c=_0x53af8d(_0x22d94c),_0x36a3ad=_0x129d28(()=>_0x24103c['currentTheme$'],_0x24103c['getCurrentTheme'](),!0x1,[_0x24103c]),_0x10edcf=_0x129d28(()=>_0x24103c[_0x76ffdf(0x19a)],_0x24103c[_0x76ffdf(0x247)],!0x1,[_0x24103c]),[_0x917748,_0x3a5e65]=_0xee90d5(_0x76ffdf(0x279)),[_0x58bd19,_0x4bb974]=_0xee90d5(!0x1),_0x38cc8f=xr(_0x27c75e),_0x404fbd=_0x35f59b[_0x76ffdf(0x3b6)]()[_0x76ffdf(0x186)][_0x27c75e[_0x76ffdf(0x154)]],_0x413ed4=_0x404fbd==null?void 0x0:_0x404fbd[_0x76ffdf(0x286)]['find'](_0x51936d=>_0x404fbd[_0x76ffdf(0x2dc)][_0x51936d]),_0x366f59=_0x413ed4?_0x404fbd==null?void 0x0:_0x404fbd['views'][_0x413ed4]:void 0x0,_0x153876=_0x404fbd&&_0x366f59?_0x11a6ff(_0x35f59b['getSnapshot'](),_0x404fbd,_0x366f59)[_0x76ffdf(0x1ee)](_0x3fa48d=>({..._0x3fa48d,'current':!0x1})):[],_0x9d2f37=((_0x51fd20=_0x27c75e[_0x76ffdf(0x100)][_0x76ffdf(0x23f)])==null?void 0x0:_0x51fd20[_0x76ffdf(0x392)])??'',_0x4a8d36=_0x30dbe2=>_0x580fcb(Sr(_0x27c75e,_0x30dbe2))[_0x76ffdf(0x308)](()=>void 0x0),_0x391f1b=_0x1ef0e1=>_0x580fcb({..._0x27c75e,'description':_0x1ef0e1})[_0x76ffdf(0x308)](()=>void 0x0);return _0x5c238f(_0x76ffdf(0x1e8),{'data-dashboard-formula-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x1fa005(_0x1eff91,{'className':_0x76ffdf(0x2bf),'items':[{'value':_0x76ffdf(0x279),'label':_0x275568['t'](_0x76ffdf(0xc9))},{'value':_0x76ffdf(0xc1),'label':_0x275568['t'](_0x76ffdf(0xf1))}],'value':_0x917748,'onChange':_0x3a5e65}),_0x1fa005(_0x76ffdf(0x1e8),{'className':_0x76ffdf(0x105),'children':_0x917748===_0x76ffdf(0x279)?_0x5c238f(_0x76ffdf(0x1e8),{'className':_0x76ffdf(0x1a8),'children':[_0x1fa005(ci,{'label':_0x275568['t'](_0x76ffdf(0x1c0)),'children':_0x1fa005(_0x2647d7,{'value':_0x27c75e['description']??_0x27c75e['title']??'','onChange':_0x391f1b,'onBlur':_0x11b0d6=>_0x391f1b(_0x11b0d6[_0x76ffdf(0x3ea)][_0x76ffdf(0x2c2)])})}),_0x1fa005(ci,{'label':_0x275568['t'](_0x76ffdf(0x368)),'children':_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':(_0x404fbd==null?void 0x0:_0x404fbd[_0x76ffdf(0x2cd)])??_0x275568['t'](_0x76ffdf(0xe2))})}),_0x5c238f(ci,{'label':_0x275568['t'](_0x76ffdf(0x257)),'children':[_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':_0x3ae876(_0x9d2f37,_0x153876)}),_0x1fa005(_0x10d589,{'className':_0x76ffdf(0x32d),'onClick':()=>_0x4bb974(!0x0),'children':_0x275568['t']('bases-dashboard-ui.dashboardInspector.editFormula')})]})]}):_0x5c238f(_0x76ffdf(0x1e8),{'className':_0x76ffdf(0x1a8),'children':[_0x1fa005(_0x2d27c8,{'emptyLabel':_0x275568['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x275568['t'](_0x76ffdf(0x19f)),'pickerFallbackValue':_0x10edcf?_0x36a3ad[_0x76ffdf(0x3fe)][0x384]:_0x36a3ad[_0x76ffdf(0x3fe)][0x0],'resetLabel':_0x275568['t'](_0x76ffdf(0x1e0)),'value':_0x38cc8f['backgroundColor']??null,'onChange':_0x57d406=>_0x4a8d36({'backgroundColor':_0x57d406??void 0x0})}),_0x5c238f(ci,{'label':_0x275568['t'](_0x76ffdf(0x22e)),'children':[_0x5c238f(_0x76ffdf(0x1e8),{'className':_0x76ffdf(0x3d4),'children':[_0x5c238f(_0x10d589,{'className':_0x76ffdf(0x1cc),'onClick':()=>{const _0x998c01=_0x76ffdf;_0x41e010()[_0x998c01(0x401)](_0x5384bf=>{const _0x48e995=_0x998c01;if(_0x5384bf){var _0xb3982f;return _0x4a8d36({'backgroundImage':{..._0x5384bf,'fit':((_0xb3982f=_0x38cc8f[_0x48e995(0x294)])==null?void 0x0:_0xb3982f['fit'])??'cover'}});}})['catch'](()=>void 0x0);},'children':[_0x1fa005(_0x34ddb8,{}),_0x38cc8f[_0x76ffdf(0x294)]?_0x275568['t'](_0x76ffdf(0x3fd)):_0x275568['t']('bases-dashboard-ui.dashboardInspector.uploadImage')]}),_0x38cc8f['backgroundImage']&&_0x1fa005(_0x10d589,{'aria-label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x275568['t'](_0x76ffdf(0x153)),'onClick':()=>_0x4a8d36({'backgroundImage':void 0x0}),'children':_0x1fa005(_0x306b68,{})})]}),_0x38cc8f[_0x76ffdf(0x294)]&&_0x1fa005(_0x1eff91,{'className':_0x76ffdf(0x111),'items':[{'value':_0x76ffdf(0x285),'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x76ffdf(0x1d1),'label':_0x275568['t'](_0x76ffdf(0x39d))}],'value':_0x38cc8f[_0x76ffdf(0x294)][_0x76ffdf(0x160)],'onChange':_0x4e2eef=>_0x4a8d36({'backgroundImage':_0x38cc8f[_0x76ffdf(0x294)]?{..._0x38cc8f[_0x76ffdf(0x294)],'fit':_0x4e2eef}:void 0x0})})]}),_0x1fa005(_0x2d27c8,{'emptyLabel':_0x275568['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x10edcf?_0x36a3ad[_0x76ffdf(0x3fe)][0x32]:_0x36a3ad[_0x76ffdf(0x3fe)][0x3e8],'resetLabel':_0x275568['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x38cc8f[_0x76ffdf(0xef)]??null,'onChange':_0x35d90e=>_0x4a8d36({'textColor':_0x35d90e??void 0x0})}),_0x1fa005(ci,{'label':_0x275568['t'](_0x76ffdf(0x349)),'children':_0x1fa005(_0x1eff91,{'items':[{'value':_0x76ffdf(0x1b4),'label':_0x275568['t'](_0x76ffdf(0x165))},{'value':'center','label':_0x275568['t'](_0x76ffdf(0x22d))},{'value':_0x76ffdf(0x314),'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x38cc8f['alignment'],'onChange':_0x2c2966=>_0x4a8d36({'alignment':_0x2c2966})})}),_0x5c238f(ci,{'label':_0x275568['t'](_0x76ffdf(0x3c5)),'children':[_0x1fa005(_0x1eff91,{'items':[{'value':_0x76ffdf(0x195),'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':'custom','label':_0x275568['t'](_0x76ffdf(0x3d5))}],'value':_0x38cc8f[_0x76ffdf(0x38a)],'onChange':_0x214c19=>_0x4a8d36({'fontSizeMode':_0x214c19})}),_0x38cc8f[_0x76ffdf(0x38a)]===_0x76ffdf(0x1b1)&&_0x1fa005(_0x499d19,{'className':_0x76ffdf(0x111),'min':0xc,'max':0x78,'value':_0x38cc8f[_0x76ffdf(0x1ae)],'onChange':_0x3f076d=>_0x4a8d36({'fontSize':_0x3f076d??0x28,'fontSizeMode':_0x76ffdf(0x1b1)})})]}),_0x1fa005(ci,{'label':_0x275568['t'](_0x76ffdf(0x20c)),'children':_0x1fa005(qr,{'value':_0x38cc8f['numberFormat'],'options':[{'value':_0x76ffdf(0x20a),'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.general')},{'value':'number','label':_0x275568['t'](_0x76ffdf(0x378))},{'value':_0x76ffdf(0x277),'label':_0x275568['t'](_0x76ffdf(0x260))},{'value':'currency','label':_0x275568['t'](_0x76ffdf(0x193))},{'value':_0x76ffdf(0x196),'label':_0x275568['t'](_0x76ffdf(0x330))},{'value':'compact','label':_0x275568['t'](_0x76ffdf(0x32b))}],'onChange':_0x298b2f=>{let _0x5099b7=oi['find'](_0xb9755e=>_0xb9755e===_0x298b2f);_0x5099b7&&_0x4a8d36({'numberFormat':_0x5099b7});}})}),_0x38cc8f[_0x76ffdf(0x235)]===_0x76ffdf(0x39b)&&_0x1fa005(ci,{'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x1fa005(_0x2647d7,{'value':_0x38cc8f[_0x76ffdf(0x39b)],'onChange':_0x59746a=>_0x4a8d36({'currency':_0x59746a['slice'](0x0,0x3)[_0x76ffdf(0x390)]()})})}),_0x38cc8f[_0x76ffdf(0x235)]!==_0x76ffdf(0x20a)&&_0x1fa005(ci,{'label':_0x275568['t']('bases-dashboard-ui.dashboardInspector.decimalPlaces'),'children':_0x1fa005(_0x499d19,{'min':0x0,'max':0x8,'value':_0x38cc8f[_0x76ffdf(0xb9)],'onChange':_0x27b850=>_0x4a8d36({'decimalPlaces':_0x27b850??0x0})})})]})}),_0x58bd19&&_0x1fa005(Yr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1fa005(_0x4689e6,{'tables':_0x153876,'formula':_0x3ae876(_0x9d2f37,_0x153876),'onCancel':()=>_0x4bb974(!0x1),'onSave':_0x9d3bf5=>{const _0x55e86c=_0x76ffdf;let _0x1222e5=_0x27c75e['shapeData']['formulaBinding']??{'formula':''};return _0x580fcb({..._0x27c75e,'shapeData':{..._0x27c75e[_0x55e86c(0x100)],'formulaBinding':{..._0x1222e5,'formula':_0x3949ea(_0x9d3bf5,_0x153876)}}})[_0x55e86c(0x401)](()=>_0x4bb974(!0x1))[_0x55e86c(0x308)](()=>void 0x0);}})})]});}function ci({children:_0x2cb578,label:_0x24c2c5}){const _0x2cb23c=_0x3447f8;return _0x5c238f(_0x2cb23c(0x1e8),{'role':_0x2cb23c(0x21e),'aria-label':_0x24c2c5,'className':_0x2cb23c(0x393),'children':[_0x1fa005('span',{'children':_0x24c2c5}),_0x2cb578]});}function li({disabled:_0x6b18ce,fields:_0x10697d,filter:_0x1ef7d8,onChange:_0x214503}){const _0x2eec48=_0x3447f8;let _0x4224ba=_0x53af8d(_0x5d52a6)[_0x2eec48(0x280)]??null,[_0x27f370,_0x33e5e9]=_0xee90d5(null),_0x21d46a=_0x53af8d(_0x255457),_0x1b3ca0=(_0x1ef7d8==null?void 0x0:_0x1ef7d8[_0x2eec48(0x1da)])??[];if(!_0x1b3ca0[_0x2eec48(0x2c8)])return _0x5c238f('div',{'className':_0x2eec48(0x309),'children':[_0x1fa005(_0x48629d,{'className':'univer-mx-auto\x20univer-size-6'}),_0x1fa005(_0x2eec48(0x40a),{'className':_0x2eec48(0x2d7),'children':_0x21d46a['t'](_0x2eec48(0x253))})]});let _0x1f688f=_0x27f370==null?void 0x0:_0x1b3ca0[_0x27f370],_0x48b03b=_0x10697d[_0x2eec48(0x2c9)](_0x1d86bc=>_0x1d86bc['id']===(_0x1f688f==null?void 0x0:_0x1f688f[_0x2eec48(0x1e5)]));return _0x5c238f('div',{'className':_0x2eec48(0x224),'children':[_0x1b3ca0[_0x2eec48(0x1ee)]((_0x5f0add,_0x3510ae)=>{const _0x456dde=_0x2eec48;var _0x409b4c;return _0x5c238f(_0x10d589,{'disabled':_0x6b18ce,'onClick':()=>_0x33e5e9(_0x3510ae),'children':[_0x1fa005(_0x456dde(0x40a),{'children':((_0x409b4c=_0x10697d['find'](_0x2b71b5=>_0x2b71b5['id']===_0x5f0add[_0x456dde(0x1e5)]))==null?void 0x0:_0x409b4c[_0x456dde(0x2cd)])??_0x5f0add[_0x456dde(0x1e5)]}),_0x1fa005(_0x456dde(0x40a),{'className':_0x456dde(0x242),'children':String(_0x5f0add[_0x456dde(0x366)]??'')})]},_0x5f0add[_0x456dde(0x1e5)]+'-'+_0x3510ae);}),_0x48b03b&&_0x1f688f&&_0x27f370!=null&&_0x4224ba&&_0x46c06e(_0x1fa005(_0x2001af,{'field':_0x48b03b,'value':_0x1f688f[_0x2eec48(0x366)],'onClose':()=>_0x33e5e9(null),'onSave':_0x58ade5=>{_0x214503({'conjunction':(_0x1ef7d8==null?void 0x0:_0x1ef7d8['conjunction'])??_0x3a6b1d['AND'],'conditions':_0x1b3ca0['map']((_0x13fb8c,_0x586b5c)=>_0x586b5c===_0x27f370?{..._0x13fb8c,'operand':_0x58ade5}:_0x13fb8c)}),_0x33e5e9(null);}}),_0x4224ba)]});}function ui({fields:_0x424631,filter:_0x1866e4,onChange:_0x8b7dc,onClear:_0x35d6ed}){const _0x187a61=_0x3447f8;let _0x344c27=_0x53af8d(_0x255457);return _0x5c238f(_0x187a61(0x1e8),{'children':[_0x1fa005(_0x22f272,{'fields':_0x424631,'value':_0x1866e4??{'conjunction':_0x3a6b1d[_0x187a61(0x226)],'conditions':[]},'onChange':_0x8b7dc}),_0x1fa005(_0x10d589,{'onClick':_0x35d6ed,'children':_0x344c27['t'](_0x187a61(0x1e0))})]});}function di({base:_0x497396,chartRuntime:_0x115791,onChange:_0x2f3a48,onClose:_0x10fbf9,onSelectBackgroundImage:_0x10dbdf,onSelectImage:_0x24bd55,unitId:_0x15e86a,widget:_0x22c204}){const _0x390da1=_0x3447f8;let _0x10501a=_0x53af8d(_0x1ec317),_0x20fd26=_0x53af8d(_0x255457),_0x437148=_0x497396[_0x390da1(0x3b6)](),_0x41f5e7=_0x390da1(0x154)in _0x22c204?_0x437148[_0x390da1(0x186)][_0x22c204[_0x390da1(0x154)]]:void 0x0,_0x187ac8=_0x22c204[_0x390da1(0x1b9)]===_0x28a714[_0x390da1(0x3ee)]?_0x41f5e7==null?void 0x0:_0x41f5e7[_0x390da1(0x2dc)][_0x22c204[_0x390da1(0x2e1)]]:void 0x0,_0x26493d=_0x20fd26['t'](vi(_0x22c204)),_0x28cb28=_0x5c238f('aside',{'data-dashboard-inspector':!0x0,'className':_0x390da1(0x2fb),'children':[_0x22c204[_0x390da1(0x1b9)]===_0x28a714[_0x390da1(0x3ee)]&&(_i(_0x187ac8)&&_0x115791?_0x1fa005(ii,{'runtime':_0x115791,'sourceChart':_0x187ac8[_0x390da1(0x2b0)][_0x390da1(0x1eb)],'sourceName':((_0x41f5e7==null?void 0x0:_0x41f5e7['name'])??'')+'\x20/\x20'+_0x187ac8[_0x390da1(0x2cd)],'widget':_0x22c204,'onChange':_0x2f3a48,'onEditData':()=>{const _0x5cf562=_0x390da1;_0x10501a[_0x5cf562(0x2be)](_0xe74b73['id'],{'unitId':_0x15e86a,'tableId':_0x22c204[_0x5cf562(0x154)],'viewId':_0x22c204[_0x5cf562(0x2e1)]})[_0x5cf562(0x308)](()=>void 0x0);}}):_0x1fa005(hi,{'message':_i(_0x187ac8)?_0x20fd26['t'](_0x390da1(0x21c)):_0x20fd26['t'](_0x390da1(0xe2))})),_0x22c204[_0x390da1(0x1b9)]===_0x28a714[_0x390da1(0x1ca)]&&_0x1fa005(si,{'base':_0x497396,'widget':_0x22c204,'onChange':_0x2f3a48,'onSelectBackgroundImage':_0x10dbdf}),_0x22c204[_0x390da1(0x1b9)]===_0x28a714[_0x390da1(0x2a5)]&&_0x1fa005(pi,{'base':_0x497396,'onChange':_0x2f3a48,'widget':_0x22c204}),_0x22c204[_0x390da1(0x1b9)]===_0x28a714[_0x390da1(0x2d4)]&&_0x1fa005(mi,{'onChange':_0x2f3a48,'widget':_0x22c204}),_0x22c204[_0x390da1(0x1b9)]===_0x28a714[_0x390da1(0x341)]&&_0x1fa005(fi,{'onChange':_0x2f3a48,'onSelectImage':_0x24bd55,'widget':_0x22c204})]});return _0x1fa005(_0x14b201,{'title':_0x26493d,'onClose':_0x10fbf9,'children':_0x28cb28});}function fi({onChange:_0x4e7764,onSelectImage:_0x34d5c1,widget:_0x332195}){const _0x8f6372=_0x3447f8;let _0xddca1=_0x53af8d(_0x255457);return _0x5c238f(_0x8f6372(0x1e8),{'className':_0x8f6372(0x175),'children':[_0x5c238f(_0x10d589,{'className':_0x8f6372(0x3af),'onClick':()=>_0x34d5c1()['then'](_0x324eda=>_0x324eda&&_0x4e7764({..._0x332195,'source':_0x324eda['source'],'sourceType':_0x324eda[_0x8f6372(0xd9)],'alt':_0x324eda[_0x8f6372(0x2cd)]}))[_0x8f6372(0x308)](()=>void 0x0),'children':[_0x1fa005(_0x34ddb8,{}),_0xddca1['t'](_0x8f6372(0x3fd))]}),_0x5c238f('label',{'className':_0x8f6372(0x393),'children':[_0x1fa005('span',{'children':_0xddca1['t'](_0x8f6372(0x22e))}),_0x1fa005(_0x1eff91,{'items':[{'value':_0x8f6372(0x285),'label':_0xddca1['t'](_0x8f6372(0x1ad))},{'value':_0x8f6372(0x2af),'label':_0xddca1['t'](_0x8f6372(0x35d))},{'value':_0x8f6372(0x3cf),'label':_0xddca1['t'](_0x8f6372(0x170))}],'value':_0x332195[_0x8f6372(0x2f2)]??'cover','onChange':_0x19c784=>_0x4e7764({..._0x332195,'displayMode':_0x19c784})['catch'](()=>void 0x0)})]})]});}function pi({base:_0xf64990,onChange:_0x3ebf70,widget:_0x237071}){const _0x2b344b=_0x3447f8;let _0x16c42e=_0xf64990[_0x2b344b(0x3b6)]()['tables'][_0x237071[_0x2b344b(0x154)]],_0x258d9c=_0x16c42e==null?void 0x0:_0x16c42e[_0x2b344b(0x286)][_0x2b344b(0x2c9)](_0x47f207=>_0x16c42e[_0x2b344b(0x2dc)][_0x47f207]),_0x514704=_0x258d9c?_0x16c42e==null?void 0x0:_0x16c42e['views'][_0x258d9c]:void 0x0,_0x35408c=_0x16c42e&&_0x514704?_0x295488(_0x16c42e,_0x514704):[];return _0x1fa005(ui,{'fields':_0x35408c,'filter':_0x237071[_0x2b344b(0x14f)],'onChange':_0x142276=>_0x3ebf70({..._0x237071,'filter':_0x142276})[_0x2b344b(0x308)](()=>void 0x0),'onClear':()=>_0x3ebf70({..._0x237071,'filter':null})[_0x2b344b(0x308)](()=>void 0x0)});}function mi({onChange:_0x386cf0,widget:_0x2c0c54}){const _0x3bb71e=_0x3447f8;let _0x581ad2=_0x53af8d(_0x255457),_0x328f19=_0x53af8d(_0x22d94c),_0x1f6fb0=_0x129d28(()=>_0x328f19['currentTheme$'],_0x328f19[_0x3bb71e(0x11c)](),!0x1,[_0x328f19]),_0x1dc230=Br(_0x2c0c54),_0x1d4654=_0x4f0682=>_0x386cf0({..._0x2c0c54,'appearance':{..._0x1dc230,..._0x4f0682}})['catch'](()=>void 0x0);return _0x5c238f(_0x3bb71e(0x1e8),{'className':_0x3bb71e(0x142),'children':[_0x1fa005(_0x539ea5,{'className':_0x3bb71e(0x2f6),'defaultValue':Vr(_0x2c0c54[_0x3bb71e(0x339)]),'rows':0x8,'onBlur':_0xf97e88=>_0x386cf0({..._0x2c0c54,'document':Hr(_0x2c0c54['document'],_0xf97e88['target'][_0x3bb71e(0x2c2)])})['catch'](()=>void 0x0)}),_0x1fa005(_0x2d27c8,{'emptyLabel':_0x581ad2['t'](_0x3bb71e(0x19f)),'label':_0x581ad2['t'](_0x3bb71e(0x19f)),'pickerFallbackValue':_0x1f6fb0[_0x3bb71e(0x3fe)][0x0],'resetLabel':_0x581ad2['t'](_0x3bb71e(0x1e0)),'value':_0x1dc230[_0x3bb71e(0x134)]??null,'onChange':_0x3d2e5c=>_0x1d4654({'backgroundColor':_0x3d2e5c??void 0x0})}),_0x1fa005(_0x2d27c8,{'emptyLabel':_0x581ad2['t'](_0x3bb71e(0x26d)),'label':_0x581ad2['t'](_0x3bb71e(0x26d)),'pickerFallbackValue':_0x1f6fb0[_0x3bb71e(0x3fe)][0x3e8],'resetLabel':_0x581ad2['t'](_0x3bb71e(0x1e0)),'value':_0x1dc230[_0x3bb71e(0xef)]??null,'onChange':_0x240fca=>_0x1d4654({'textColor':_0x240fca??void 0x0})}),_0x1fa005(gi,{'label':_0x581ad2['t'](_0x3bb71e(0x349)),'children':_0x1fa005(_0x1eff91,{'items':[{'value':_0x3bb71e(0x1b4),'label':_0x581ad2['t'](_0x3bb71e(0x165))},{'value':_0x3bb71e(0x1e4),'label':_0x581ad2['t'](_0x3bb71e(0x22d))},{'value':_0x3bb71e(0x314),'label':_0x581ad2['t'](_0x3bb71e(0x130))}],'value':_0x1dc230['alignment'],'onChange':_0x1a325d=>_0x1d4654({'alignment':_0x1a325d})})}),_0x5c238f(gi,{'label':_0x581ad2['t']('bases-dashboard-ui.dashboardInspector.textSize'),'children':[_0x1fa005(_0x1eff91,{'items':[{'value':_0x3bb71e(0x195),'label':_0x581ad2['t'](_0x3bb71e(0x162))},{'value':_0x3bb71e(0x1b1),'label':_0x581ad2['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x1dc230['fontSizeMode'],'onChange':_0x5e14dd=>_0x1d4654({'fontSizeMode':_0x5e14dd})}),_0x1dc230['fontSizeMode']===_0x3bb71e(0x1b1)&&_0x1fa005(_0x499d19,{'className':'univer-mt-2','min':0xa,'max':0x78,'value':_0x1dc230[_0x3bb71e(0x1ae)],'onChange':_0xd8bc5f=>_0x1d4654({'fontSize':_0xd8bc5f??0x12,'fontSizeMode':_0x3bb71e(0x1b1)})})]})]});}function hi({message:_0x3cd0f3}){const _0x78400d=_0x3447f8;return _0x1fa005(_0x78400d(0x1e8),{'className':_0x78400d(0x35e),'children':_0x3cd0f3});}function gi({children:_0x3707de,label:_0x576e60}){const _0x476598=_0x3447f8;return _0x5c238f(_0x476598(0x1e8),{'role':'group','aria-':!0x0,'className':_0x476598(0x393),'children':[_0x1fa005(_0x476598(0x40a),{'children':_0x576e60}),_0x3707de]});}function _i(_0x328a75){const _0x5f1ce9=_0x3447f8;return(_0x328a75==null?void 0x0:_0x328a75['type'])===_0x4da0de[_0x5f1ce9(0x1ec)]&&typeof _0x328a75['config']==_0x5f1ce9(0x2f1)&&_0x328a75[_0x5f1ce9(0x2b0)]!==null&&_0x5f1ce9(0x10d)in _0x328a75[_0x5f1ce9(0x2b0)]&&_0x5f1ce9(0x1eb)in _0x328a75[_0x5f1ce9(0x2b0)];}function vi(_0x5b5dce){const _0x290749=_0x3447f8;switch(_0x5b5dce[_0x290749(0x1b9)]){case _0x28a714[_0x290749(0x3ee)]:return _0x290749(0xe4);case _0x28a714['TableFilter']:return _0x290749(0x253);case _0x28a714['Text']:return _0x290749(0x145);case _0x28a714[_0x290749(0x341)]:return _0x290749(0x233);case _0x28a714['FormulaShape']:return'bases-dashboard-ui.dashboard.formulaShape';}}function yi({onDelete:_0x2d4681,onEdit:_0x1b5484,onMoveUp:_0x87de86,onMoveDown:_0x2d58c6}){const _0x718ce6=_0x3447f8;let [_0x2b0f03,_0x53e9d4]=_0xee90d5(!0x1),_0x3b3bbd=_0x53af8d(_0x255457),_0x34d98a=_0x3b3bbd['t'](_0x718ce6(0x1c6)),_0x285592=_0x3b3bbd['t'](_0x718ce6(0x120)),_0x360151=_0x3b3bbd['t']('bases-dashboard-ui.dashboard.widgetActions'),_0x234f1e=[{'type':_0x718ce6(0x347),'children':_0x5c238f(_0x718ce6(0x40a),{'className':_0x718ce6(0x30e),'children':[_0x1fa005(_0x41a33d,{'className':_0x718ce6(0x129),'aria-hidden':'true'}),_0x1fa005('span',{'children':_0x34d98a})]}),'onSelect':_0x1b5484},..._0x87de86?[{'type':_0x718ce6(0x347),'children':_0x5c238f(_0x718ce6(0x40a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1fa005(_0x40d299,{'className':_0x718ce6(0x129),'aria-hidden':_0x718ce6(0x2d2)}),_0x1fa005(_0x718ce6(0x40a),{'children':_0x3b3bbd['t']('bases-dashboard-ui.mobile.moveUp')})]}),'onSelect':_0x87de86}]:[],..._0x2d58c6?[{'type':'item','children':_0x5c238f('span',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1fa005(_0x4857ec,{'className':'univer-size-4','aria-hidden':_0x718ce6(0x2d2)}),_0x1fa005(_0x718ce6(0x40a),{'children':_0x3b3bbd['t'](_0x718ce6(0x3b4))})]}),'onSelect':_0x2d58c6}]:[],{'type':_0x718ce6(0x161)},{'type':_0x718ce6(0x347),'variant':_0x718ce6(0x262),'children':_0x5c238f(_0x718ce6(0x40a),{'className':_0x718ce6(0x30e),'children':[_0x1fa005(_0x306b68,{'className':_0x718ce6(0x129),'aria-hidden':'true'}),_0x1fa005(_0x718ce6(0x40a),{'children':_0x285592})]}),'onSelect':_0x2d4681}];return _0x1fa005(_0x86d9a9,{'open':_0x2b0f03,'onOpenChange':_0x53e9d4,'align':_0x718ce6(0x372),'sideOffset':0x4,'items':_0x234f1e['map'](_0x85b65c=>({..._0x85b65c,'className':_0x85b65c[_0x718ce6(0x1b9)]===_0x718ce6(0x347)?_0x718ce6(0x3fa):void 0x0})),'children':_0x1fa005(_0x10d589,{'type':'button','size':_0x718ce6(0x11d),'variant':'text','onPointerDown':_0x1a9442=>_0x1a9442[_0x718ce6(0x16a)](),'onClick':()=>_0x53e9d4(_0x68463a=>!_0x68463a),'title':_0x360151,'aria-label':_0x360151,'className':_0x718ce6(0x3ab),'children':_0x1fa005(_0x46df20,{'className':_0x718ce6(0x129),'aria-hidden':'true'})})});}function bi({dashboardId:_0x5c1bea,presentation:_0x19bd59=!0x1,unitId:_0x579f62}){const _0x4bd748=_0x3447f8;let _0x513cbf=_0x53af8d(_0x49fd9b),_0x6b53b3=_0x53af8d(_0x346c1c);_0x129d28(_0x6b53b3[_0x4bd748(0x388)],0x0);let _0x3d3ccb=_0x53af8d(_0x1ec317),_0x3c12c2=_0x53af8d(_0x230a38),_0x508b69=_0x53af8d(_0x2cceec),_0x539864=_0x53af8d(_0xa15270),_0x30ffe6=_0x53af8d(_0x255457),_0x5bbbf4=_0x53af8d(_0x4e6cdd),_0x4a7438=_0x53af8d(_0x3c357b),[_0x5c075a,_0x3faa61]=_0xee90d5(!0x1),[_0x3d88cc,_0x52189e]=_0xee90d5(),[_0x12d916,_0x36cea6]=_0xee90d5(!0x1),[_0x511140,_0x5858f0]=_0xee90d5(()=>new Map()),_0x3a2cbc=_0x2f6d8e((_0x465e48,_0x36baa1)=>{_0x5858f0(_0x468868=>{let _0x52a8df=new Map(_0x468868);return _0x36baa1?_0x52a8df['set'](_0x465e48,_0x36baa1):_0x52a8df['delete'](_0x465e48),_0x52a8df;});},[]),_0x519c0e=_0x129d28(()=>_0x5bbbf4[_0x4bd748(0x135)][_0x4bd748(0x387)](_0x26242b(()=>_0x5bbbf4['getDashboard'](_0x579f62,_0x5c1bea))),_0x5bbbf4['getDashboard'](_0x579f62,_0x5c1bea),!0x1,[_0x5c1bea,_0x5bbbf4,_0x579f62]),_0x5aa108=_0x539864[_0x4bd748(0x3be)](_0x579f62,_0x6e7cef[_0x4bd748(0x1f7)]),_0x3a1e86=_0x129d28(()=>_0x4a7438[_0x4bd748(0x312)],{'undos':0x0,'redos':0x0},!0x1,[_0x4a7438]),_0x5c526e=gr(_0x579f62,_0x5c1bea);if(_0x543512(()=>{const _0x4342ed=_0x4bd748;_0x539864['setCurrentUnitForType'](_0x579f62),_0x539864[_0x4342ed(0x3a3)](_0x579f62);},[_0x539864,_0x579f62]),!_0x519c0e||!_0x5aa108)return null;let _0x286826={'unitId':_0x579f62,'objectId':_0x4e82aa(_0x5c1bea),'objectType':_0x1349b1[_0x4bd748(0x240)]},_0x33eadc=(_0x26b33d,_0x1f90bb)=>{const _0x41dbde=_0x4bd748;let _0x379def=[..._0x519c0e['widgetOrder']],_0x1282c4=_0x379def[_0x41dbde(0x1cb)](_0x26b33d),_0x243b5a=_0x1282c4+_0x1f90bb;if(!(_0x1282c4<0x0||_0x243b5a<0x0||_0x243b5a>=_0x379def[_0x41dbde(0x2c8)]))return[_0x379def[_0x1282c4],_0x379def[_0x243b5a]]=[_0x379def[_0x243b5a],_0x379def[_0x1282c4]],_0x3d3ccb['executeCommand'](_0x51a517['id'],{'unitId':_0x579f62,'dashboard':{..._0x519c0e,'widgetOrder':_0x379def}});},_0xd4f2c7=_0x42eb92=>_0x3d3ccb[_0x4bd748(0x2be)](_0x49cadf['id'],{'unitId':_0x579f62,'dashboardId':_0x5c1bea,'widget':_0x42eb92})[_0x4bd748(0x308)](()=>void 0x0),_0x331469=(_0x47ae7a,_0x1c60aa,_0x237309)=>{const _0x29f8cd=_0x4bd748;let _0x1d84f5=Math[_0x29f8cd(0x351)](0x0,..._0x519c0e['widgetOrder'][_0x29f8cd(0x30c)](_0x29399f=>{const _0xfa4ce6=_0x29f8cd;var _0x5f4e9c;let _0x360d25=(_0x5f4e9c=_0x519c0e[_0xfa4ce6(0x311)][_0x29399f])==null?void 0x0:_0x5f4e9c['layout'];return _0x360d25?[_0x360d25[_0xfa4ce6(0x2b6)]+_0x360d25[_0xfa4ce6(0x3ef)]]:[];})),_0x232ed4='dashboard-widget-'+_0x2aef82(0x8),_0x1abe25={'column':0x0,'row':_0x1d84f5,'columnSpan':_0x1c60aa,'rowSpan':_0x237309};switch(_0x47ae7a['type']){case _0x28a714[_0x29f8cd(0x3ee)]:return _0xd4f2c7({..._0x47ae7a,'id':_0x232ed4,'layout':_0x1abe25});case _0x28a714[_0x29f8cd(0x2a5)]:return _0xd4f2c7({..._0x47ae7a,'id':_0x232ed4,'layout':_0x1abe25});case _0x28a714[_0x29f8cd(0x2d4)]:return _0xd4f2c7({..._0x47ae7a,'id':_0x232ed4,'layout':_0x1abe25});case _0x28a714[_0x29f8cd(0x341)]:return _0xd4f2c7({..._0x47ae7a,'id':_0x232ed4,'layout':_0x1abe25});case _0x28a714[_0x29f8cd(0x1ca)]:return _0xd4f2c7({..._0x47ae7a,'id':_0x232ed4,'layout':_0x1abe25});}},_0x54c33c=_0x5aa108['getSnapshot'](),_0x5a2bf9=_0x54c33c[_0x4bd748(0xbc)][_0x4bd748(0x30c)](_0x444ed8=>{const _0x5bc8b7=_0x4bd748;let _0xc413d8=_0x54c33c[_0x5bc8b7(0x186)][_0x444ed8];if(!_0xc413d8)return[];let _0x1fb0c6=_0xc413d8[_0x5bc8b7(0x286)][_0x5bc8b7(0x30c)](_0x5a2ba9=>{const _0x502869=_0x5bc8b7;let _0x73ceb0=_0xc413d8[_0x502869(0x2dc)][_0x5a2ba9];return Oi(_0x73ceb0)?[{'type':_0x502869(0x347),'children':_0x73ceb0['name'],'onSelect':()=>_0x331469({'type':_0x28a714[_0x502869(0x3ee)],'tableId':_0x444ed8,'pivotViewId':_0x5a2ba9,'chart':{..._0x73ceb0[_0x502869(0x2b0)][_0x502869(0x1eb)]}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0xc413d8['name'],'options':[..._0x1fb0c6,..._0x1fb0c6['length']?[{'type':'separator'}]:[],{'type':_0x5bc8b7(0x347),'children':_0x30ffe6['t'](_0x5bc8b7(0x253)),'onSelect':()=>_0x331469({'type':_0x28a714[_0x5bc8b7(0x2a5)],'tableId':_0x444ed8,'filter':null},0x6,0x8)}]}];}),_0x2abc9d=[..._0x5a2bf9,..._0x5a2bf9[_0x4bd748(0x2c8)]?[{'type':_0x4bd748(0x161)}]:[],{'type':_0x4bd748(0x347),'children':_0x30ffe6['t'](_0x4bd748(0x145)),'onSelect':()=>_0x331469({'type':_0x28a714[_0x4bd748(0x2d4)],'document':wi()},0x4,0x6)},{'type':_0x4bd748(0x347),'children':_0x30ffe6['t'](_0x4bd748(0x233)),'onSelect':()=>Ti(_0x3c12c2)[_0x4bd748(0x401)](_0x543182=>_0x543182&&_0x331469({'type':_0x28a714['Image'],'source':_0x543182[_0x4bd748(0x2c6)],'sourceType':_0x543182[_0x4bd748(0xd9)],'alt':_0x543182[_0x4bd748(0x2cd)],'displayMode':_0x4bd748(0x285)},0x4,0x6))},{'type':'item','children':_0x30ffe6['t'](_0x4bd748(0x2fd)),'onSelect':()=>{const _0x28c5b6=_0x4bd748;let _0x3a9288=_0x54c33c[_0x28c5b6(0xbc)][_0x28c5b6(0x2c9)](_0x550557=>_0x54c33c['tables'][_0x550557]);_0x3a9288&&_0x331469({'type':_0x28a714[_0x28c5b6(0x1ca)],'tableId':_0x3a9288,'shapeType':_0x337cc8[_0x28c5b6(0x190)],'shapeData':_0x30a9dd(),'description':_0x30ffe6['t']('bases-dashboard-ui.dashboard.formulaShape')},0x4,0x6);}}],_0x5eed35=_0x3d88cc?_0x519c0e[_0x4bd748(0x311)][_0x3d88cc]:void 0x0,_0x365ac9=()=>_0x36cea6(_0x35dea0=>!_0x35dea0),_0x42ccfe=_0x19bd59||_0x12d916,_0xeb9c6f=_0x5c526e&&!_0x42ccfe;return _0x1fa005(Kr,{'children':_0x5c238f(_0x4bd748(0x1e8),{'className':_0x4bd748(0x136)+(_0x12d916?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':_0x4bd748(0x15d))+_0x4bd748(0x33e),'children':[_0x12d916&&_0x1fa005(_0x10d589,{'onClick':()=>_0x36cea6(!0x1),'children':_0x30ffe6['t']('bases-dashboard-ui.dashboardInspector.close')}),!_0x42ccfe&&_0x5c238f(_0x4bd748(0x10f),{'className':_0x4bd748(0x110),'children':[_0x1fa005(_0x4cc2bb,{'className':'univer-size-5\x20univer-text-primary-600'}),_0x1fa005('h2',{'className':_0x4bd748(0x232),'children':_0x519c0e[_0x4bd748(0x2cd)]}),_0x6b53b3['supports'](_0x286826)&&_0x1fa005(_0x10d589,{'variant':_0x4bd748(0x3ca),'disabled':!_0x6b53b3[_0x4bd748(0x3fb)](_0x286826),'aria-label':_0x30ffe6['t'](_0x4bd748(0x27a)),'onClick':()=>{const _0x463086=_0x4bd748;_0x5a6cf8(_0x513cbf,{'target':_0x286826,'name':_0x519c0e[_0x463086(0x2cd)],'commandId':_0x180c8f['id'],'exists':()=>!!_0x5bbbf4[_0x463086(0x2cf)](_0x579f62,_0x5c1bea)});},'children':_0x1fa005(_0x3bf51c,{})}),_0x1fa005(_0x484f3c,{'unitId':_0x579f62}),_0x1fa005(_0x10d589,{'type':_0x4bd748(0x3b9),'size':_0x4bd748(0x11d),'variant':'text','aria-label':_0x30ffe6['t'](_0x4bd748(0x2b8)),'disabled':!_0x5c526e||_0x3a1e86['undos']===0x0,'onClick':()=>_0x3d3ccb['executeCommand'](_0xbacc2f['id'])[_0x4bd748(0x308)](()=>void 0x0),'children':_0x1fa005(_0x32ef86,{})}),_0x1fa005(_0x10d589,{'type':_0x4bd748(0x3b9),'size':_0x4bd748(0x11d),'variant':_0x4bd748(0x3ca),'aria-label':_0x30ffe6['t'](_0x4bd748(0x229)),'disabled':!_0x5c526e||_0x3a1e86[_0x4bd748(0x2b5)]===0x0,'onClick':()=>_0x3d3ccb[_0x4bd748(0x2be)](_0x1df103['id'])[_0x4bd748(0x308)](()=>void 0x0),'children':_0x1fa005(_0x40da8b,{})}),_0x1fa005(_0x10d589,{'type':_0x4bd748(0x3b9),'size':'small','variant':_0x4bd748(0x3ca),'aria-label':_0x30ffe6['t']('bases-dashboard-ui.dashboard.fullScreen'),'onClick':_0x365ac9,'children':_0x1fa005(_0x2e21be,{})}),_0x1fa005(Jr,{'items':_0x2abc9d,'children':_0x5c238f(_0x10d589,{'variant':_0x4bd748(0x125),'disabled':!_0x5c526e,'children':[_0x1fa005(_0x34ddb8,{}),_0x30ffe6['t'](_0x4bd748(0x278))]})})]}),_0x5c238f(_0x4bd748(0x1e8),{'className':_0x4bd748(0x215),'children':[_0x1fa005(_0x4bd748(0x1e8),{'className':_0x4bd748(0x26f),'children':_0x1fa005(Wr,{'dashboard':_0x519c0e,'editable':_0xeb9c6f,'widgetLabel':_0x545ad9=>_0x30ffe6['t'](Di(_0x545ad9[_0x4bd748(0x1b9)])),'selectedWidgetId':_0xeb9c6f?_0x3d88cc:void 0x0,'onSelectWidget':_0xeb9c6f?_0x2d3692=>{_0x52189e(_0x2d3692),_0x2d3692||_0x3faa61(!0x1);}:void 0x0,'renderWidget':_0x4484c9=>_0x1fa005(xi,{'base':_0x5aa108,'dashboard':_0x519c0e,'unitId':_0x579f62,'widget':_0x4484c9,'onChange':_0xd4f2c7,'onChartRuntimeChange':_0x3a2cbc}),'renderWidgetActions':_0x142ef1=>_0x1fa005(yi,{'onMoveUp':_0x519c0e[_0x4bd748(0x2a6)][_0x4bd748(0x1cb)](_0x142ef1['id'])>0x0?()=>_0x33eadc(_0x142ef1['id'],-0x1):void 0x0,'onMoveDown':_0x519c0e[_0x4bd748(0x2a6)][_0x4bd748(0x1cb)](_0x142ef1['id'])<_0x519c0e['widgetOrder'][_0x4bd748(0x2c8)]-0x1?()=>_0x33eadc(_0x142ef1['id'],0x1):void 0x0,'onEdit':()=>{_0x52189e(_0x142ef1['id']),_0x3faa61(!0x0);},'onDelete':()=>{const _0x6e141=_0x4bd748;_0x3d88cc===_0x142ef1['id']&&(_0x52189e(void 0x0),_0x3faa61(!0x1)),_0x3d3ccb[_0x6e141(0x2be)](_0x25ddde['id'],{'unitId':_0x579f62,'dashboardId':_0x5c1bea,'widgetId':_0x142ef1['id']})[_0x6e141(0x308)](()=>void 0x0);}})})}),_0xeb9c6f&&_0x5c075a&&_0x5eed35&&_0x1fa005(di,{'base':_0x5aa108,'chartRuntime':_0x511140[_0x4bd748(0x15b)](_0x5eed35['id']),'unitId':_0x579f62,'widget':_0x5eed35,'onChange':_0xd4f2c7,'onClose':()=>_0x3faa61(!0x1),'onSelectBackgroundImage':()=>Ei(_0x508b69),'onSelectImage':()=>Ti(_0x3c12c2)})]})]})});}function xi({base:_0x2b77be,dashboard:_0x54bbb3,onChange:_0x5c1f03,onChartRuntimeChange:_0x46e338,unitId:_0x3f450f,widget:_0x4f7937}){const _0x325eb8=_0x3447f8;let _0x3ff80b=_0x125177(()=>_0x54bbb3[_0x325eb8(0x2a6)][_0x325eb8(0x30c)](_0x3695e2=>{const _0x2ca257=_0x325eb8;let _0x3801ae=_0x54bbb3[_0x2ca257(0x311)][_0x3695e2];return(_0x3801ae==null?void 0x0:_0x3801ae[_0x2ca257(0x1b9)])===_0x28a714[_0x2ca257(0x2a5)]&&_0x3801ae[_0x2ca257(0x154)]===('tableId'in _0x4f7937?_0x4f7937[_0x2ca257(0x154)]:'')&&_0x3801ae[_0x2ca257(0x14f)]?[_0x3801ae[_0x2ca257(0x14f)]]:[];}),[_0x54bbb3,_0x4f7937]);switch(_0x4f7937[_0x325eb8(0x1b9)]){case _0x28a714[_0x325eb8(0x3ee)]:return _0x1fa005(Lr,{'filters':_0x3ff80b,'unitId':_0x3f450f,'widget':_0x4f7937,'onRuntimeChange':_0x46e338});case _0x28a714[_0x325eb8(0x2a5)]:return _0x1fa005(li,{'fields':Si(_0x2b77be,_0x4f7937[_0x325eb8(0x154)]),'filter':_0x4f7937[_0x325eb8(0x14f)],'onChange':_0x254c31=>_0x5c1f03({..._0x4f7937,'filter':_0x254c31})[_0x325eb8(0x308)](()=>void 0x0)});case _0x28a714[_0x325eb8(0x2d4)]:return _0x1fa005(Ur,{'widget':_0x4f7937});case _0x28a714[_0x325eb8(0x341)]:return _0x1fa005(Ci,{'widget':_0x4f7937});case _0x28a714[_0x325eb8(0x1ca)]:return _0x1fa005(Dr,{'dashboardId':_0x54bbb3['id'],'unitId':_0x3f450f,'widget':_0x4f7937});}}function Si(_0x38c74e,_0x1a0d3f){const _0x32c0fb=_0x3447f8;let _0x138038=_0x38c74e['getSnapshot']()[_0x32c0fb(0x186)][_0x1a0d3f],_0x183de8=_0x138038==null?void 0x0:_0x138038[_0x32c0fb(0x286)][_0x32c0fb(0x2c9)](_0x428c7a=>_0x138038[_0x32c0fb(0x2dc)][_0x428c7a]),_0x2ca3fb=_0x183de8?_0x138038==null?void 0x0:_0x138038[_0x32c0fb(0x2dc)][_0x183de8]:void 0x0;return _0x138038&&_0x2ca3fb?_0x295488(_0x138038,_0x2ca3fb):[];}function Ci({widget:_0x43f9ca}){const _0x582a19=_0x3447f8;let _0x2f1190=_0x53af8d(_0x230a38),[_0x564e9c,_0x198667]=_0xee90d5(_0x43f9ca[_0x582a19(0xd9)]===_0x188e10[_0x582a19(0x234)]?'':_0x43f9ca[_0x582a19(0x2c6)]);return _0x543512(()=>{const _0xaecc5e=_0x582a19;let _0x539fd4=!0x0;return _0x2f1190[_0xaecc5e(0x1c5)](_0x43f9ca[_0xaecc5e(0x2c6)],_0x43f9ca[_0xaecc5e(0xd9)])[_0xaecc5e(0x401)](_0x284757=>{_0x539fd4&&_0x198667(_0x284757);})[_0xaecc5e(0x308)](()=>void 0x0),()=>{_0x539fd4=!0x1;};},[_0x2f1190,_0x43f9ca[_0x582a19(0x2c6)],_0x43f9ca[_0x582a19(0xd9)]]),_0x564e9c?_0x1fa005(_0x582a19(0x1e8),{'role':_0x43f9ca[_0x582a19(0x3ed)]?'img':void 0x0,'aria-label':_0x43f9ca[_0x582a19(0x3ed)]||void 0x0,'data-dashboard-image':_0x43f9ca['id'],'className':'univer-h-full\x20univer-w-full\x20univer-bg-transparent','style':vr(_0x564e9c,_0x43f9ca[_0x582a19(0x2f2)])}):null;}function wi(){const _0x178168=_0x3447f8;let _0x44b1a4=_0x156ce9(new Set());return{'id':_0x178168(0x119)+_0x2aef82(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x44b1a4}]},'documentStyle':{}};}function Ti(_0xe1301){return new Promise(_0xeeea13=>{const _0x499658=_0x1596;let _0x545268=document[_0x499658(0xde)](_0x499658(0x1fb));_0x545268[_0x499658(0x1b9)]=_0x499658(0x15c),_0x545268[_0x499658(0x375)]=_0x499658(0x3b3),_0x545268[_0x499658(0x213)]('change',()=>{const _0x3401bf=_0x499658;var _0x2150c9;let _0x57ed34=(_0x2150c9=_0x545268['files'])==null?void 0x0:_0x2150c9[0x0];if(!_0x57ed34){_0xeeea13(null);return;}_0xe1301[_0x3401bf(0x106)](_0x57ed34)[_0x3401bf(0x401)](_0x2dcaac=>{const _0x30abe7=_0x3401bf;if(!_0x2dcaac[_0x30abe7(0x2c6)]||_0x2dcaac[_0x30abe7(0xd9)]===void 0x0){_0xeeea13(null);return;}_0xeeea13({'name':_0x2dcaac['name'],'source':_0x2dcaac[_0x30abe7(0x2c6)],'sourceType':_0x2dcaac[_0x30abe7(0xd9)]});})[_0x3401bf(0x308)](()=>_0xeeea13(null));},{'once':!0x0}),_0x545268[_0x499658(0x3f4)]();});}function Ei(_0x15a40a){return new Promise(_0x460777=>{const _0x6dfa62=_0x1596;let _0x316484=document['createElement'](_0x6dfa62(0x1fb));_0x316484['type']=_0x6dfa62(0x15c),_0x316484[_0x6dfa62(0x375)]=_0x6dfa62(0x3b3),_0x316484[_0x6dfa62(0x213)](_0x6dfa62(0xe3),()=>{const _0xf924d9=_0x6dfa62;var _0x113bd2;let _0x47a316=(_0x113bd2=_0x316484[_0xf924d9(0xf8)])==null?void 0x0:_0x113bd2[0x0];if(!_0x47a316){_0x460777(null);return;}_0x15a40a[_0xf924d9(0xc7)](_0x47a316)['then'](_0x4796a9=>{const _0x56f630=_0xf924d9;if(!(_0x4796a9!=null&&_0x4796a9[_0x56f630(0x2c6)])){_0x460777(null);return;}if(_0x4796a9[_0x56f630(0x1c1)]){let _0x2dc6c9=new Image();_0x2dc6c9[_0x56f630(0xba)]=_0x4796a9[_0x56f630(0x1c1)],_0x15a40a['addImageSourceCache'](_0x4796a9[_0x56f630(0x2c6)],_0x4796a9[_0x56f630(0x3d9)],_0x2dc6c9);}_0x460777({'source':_0x4796a9['source'],'sourceType':_0x4796a9[_0x56f630(0x3d9)]});})[_0xf924d9(0x308)](()=>_0x460777(null));},{'once':!0x0}),_0x316484[_0x6dfa62(0x3f4)]();});}function Di(_0x160027){const _0x296bd1=_0x3447f8;switch(_0x160027){case _0x28a714[_0x296bd1(0x3ee)]:return _0x296bd1(0xe4);case _0x28a714[_0x296bd1(0x2a5)]:return _0x296bd1(0x253);case _0x28a714[_0x296bd1(0x2d4)]:return _0x296bd1(0x145);case _0x28a714[_0x296bd1(0x341)]:return _0x296bd1(0x233);case _0x28a714[_0x296bd1(0x1ca)]:return _0x296bd1(0x2fd);}}function Oi(_0x1c4efe){const _0x2f44fc=_0x3447f8;return(_0x1c4efe==null?void 0x0:_0x1c4efe['type'])===_0x4da0de[_0x2f44fc(0x1ec)]&&typeof _0x1c4efe[_0x2f44fc(0x2b0)]==_0x2f44fc(0x2f1)&&_0x1c4efe[_0x2f44fc(0x2b0)]!==null&&'pivot'in _0x1c4efe['config']&&_0x2f44fc(0x1eb)in _0x1c4efe[_0x2f44fc(0x2b0)];}function ki({pivot:_0x2ef114,view:_0x196128}){const _0x3f789d=_0x3447f8;let _0x58e367=_0x53af8d(_0x255457),_0x1d3b6d=_0x125177(()=>Ai(_0x196128,_0x2ef114,_0x58e367['t'](_0x3f789d(0x210))),[_0x58e367,_0x2ef114,_0x196128]);return _0x5c238f(_0x3f789d(0x1e8),{'className':_0x3f789d(0x10a),'children':[_0x1d3b6d[_0x3f789d(0x18f)][_0x3f789d(0x2c8)]>0x0&&_0x1fa005('table',{'className':'univer-mb-2\x20univer-border-collapse\x20univer-text-sm','children':_0x1fa005(_0x3f789d(0x3c1),{'children':ji(_0x1d3b6d[_0x3f789d(0x18f)])})}),_0x5c238f('table',{'className':_0x3f789d(0x24b),'children':[_0x1d3b6d['headerRowCount']>0x0&&_0x1fa005('thead',{'className':_0x3f789d(0x365),'children':ji(_0x1d3b6d[_0x3f789d(0x27b)][_0x3f789d(0x121)](0x0,_0x1d3b6d[_0x3f789d(0x376)]))}),_0x1fa005('tbody',{'children':ji(_0x1d3b6d[_0x3f789d(0x27b)][_0x3f789d(0x121)](_0x1d3b6d[_0x3f789d(0x376)]))})]})]});}function Ai(_0x229c95,_0x490a12,_0x31da61){const _0x4eadc5=_0x3447f8;let _0x36755f=_0x229c95['colView'][_0x4eadc5(0x36d)],_0x580222=_0x229c95[_0x4eadc5(0x183)][_0x4eadc5(0x38e)],_0x5cdfea=_0x229c95['dataView'][_0x4eadc5(0x36d)],_0x4021e7=_0x229c95[_0x4eadc5(0x340)]['colCount'],_0x4e6337=Array[_0x4eadc5(0x3a1)]({'length':_0x36755f+_0x5cdfea},(_0x15ef65,_0x79ca80)=>Array[_0x4eadc5(0x3a1)]({'length':_0x580222+_0x4021e7},(_0x31a3c8,_0x5c9051)=>{const _0x3f4ce0=_0x4eadc5;var _0x207abe,_0x4e4961;if(_0x79ca80<_0x36755f&&_0x5c9051<_0x580222)return Mi(_0x229c95[_0x3f4ce0(0x1d5)],_0x79ca80,_0x5c9051,void 0x0,_0x31da61,!0x0,!0x1,_0x3f4ce0(0x128)+_0x79ca80+':'+_0x5c9051);if(_0x79ca80<_0x36755f){var _0x327568;let _0x2a1796=_0x5c9051-_0x580222,_0x52feb9=(_0x327568=_0x229c95['colView'][_0x3f4ce0(0x28d)][_0x79ca80])==null?void 0x0:_0x327568[_0x3f4ce0(0x1c2)];return Mi(_0x229c95['colView'],_0x79ca80,_0x2a1796,_0x52feb9?_0x229c95[_0x3f4ce0(0x3d1)][_0x52feb9]:void 0x0,_0x31da61,!0x0,Fi(_0x229c95[_0x3f4ce0(0x361)]['info'][_0x2a1796]),'column:'+_0x79ca80+':'+_0x2a1796);}if(_0x5c9051<_0x580222){var _0x13fb73;let _0x14fb71=_0x79ca80-_0x36755f,_0x29c1ae=(_0x13fb73=_0x229c95[_0x3f4ce0(0x183)]['headerMap'][_0x5c9051])==null?void 0x0:_0x13fb73[_0x3f4ce0(0x1c2)];return Mi(_0x229c95[_0x3f4ce0(0x183)],_0x14fb71,_0x5c9051,_0x29c1ae?_0x229c95['formatMap'][_0x29c1ae]:void 0x0,_0x31da61,!0x0,Fi(_0x229c95['rowView'][_0x3f4ce0(0x34b)][_0x14fb71]),'row:'+_0x14fb71+':'+_0x5c9051);}let _0x2fa974=_0x79ca80-_0x36755f,_0x2abddb=_0x5c9051-_0x580222,_0x268aa3=Math[_0x3f4ce0(0x351)](((_0x207abe=_0x229c95['rowView'][_0x3f4ce0(0x34b)][_0x2fa974])==null?void 0x0:_0x207abe[_0x3f4ce0(0x369)])??-0x1,((_0x4e4961=_0x229c95[_0x3f4ce0(0x361)][_0x3f4ce0(0x34b)][_0x2abddb])==null?void 0x0:_0x4e4961[_0x3f4ce0(0x369)])??-0x1),_0x1b3027=_0x490a12[_0x3f4ce0(0x2ef)][_0x268aa3<0x0?0x0:_0x268aa3];return Mi(_0x229c95['dataView'],_0x2fa974,_0x2abddb,_0x1b3027?_0x229c95[_0x3f4ce0(0x3d1)][_0x1b3027]:void 0x0,_0x31da61,!0x1,Fi(_0x229c95[_0x3f4ce0(0x183)][_0x3f4ce0(0x34b)][_0x2fa974])||Fi(_0x229c95['colView']['info'][_0x2abddb]),'data:'+_0x2fa974+':'+_0x2abddb);}));return{'headerColumnCount':_0x580222,'headerRowCount':_0x36755f,'pageRows':_0x229c95['pageView'][_0x4eadc5(0x35f)]<0x0||_0x229c95['pageView']['lastCol']<0x0?[]:Array[_0x4eadc5(0x3a1)]({'length':_0x229c95[_0x4eadc5(0x342)][_0x4eadc5(0x35f)]+0x1},(_0x59f62e,_0x14402b)=>Array[_0x4eadc5(0x3a1)]({'length':_0x229c95['pageView'][_0x4eadc5(0x16d)]+0x1},(_0x51c7ce,_0x42cb87)=>Mi(_0x229c95['pageView'],_0x14402b,_0x42cb87,void 0x0,_0x31da61,!0x0,!0x1,_0x4eadc5(0x3e3)+_0x14402b+':'+_0x42cb87))),'rows':_0x4e6337};}function ji(_0x1bc8f6){const _0x3b919f=_0x3447f8;return _0x1bc8f6[_0x3b919f(0x1ee)](_0x5e53f4=>{const _0x20e06f=_0x3b919f;var _0x2648a1;return _0x1fa005('tr',{'children':_0x5e53f4[_0x20e06f(0x1ee)](_0x2b5632=>{const _0x2b19b1=_0x20e06f;let _0x1e8aec=_0x2b5632[_0x2b19b1(0x26c)]?'th':'td';return _0x1fa005(_0x1e8aec,{'className':_0x2b19b1(0x204)+(_0x2b5632['isTotal']?_0x2b19b1(0x324):'')+_0x2b19b1(0x212)+(_0x2b5632[_0x2b19b1(0x26c)]?'':_0x2b19b1(0x377))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0x2b5632['value']},_0x2b5632['key']);})},(_0x2648a1=_0x5e53f4[0x0])==null?void 0x0:_0x2648a1[_0x20e06f(0x2fc)]);});}function Mi(_0x2d77cd,_0x1ec2fa,_0x42b1da,_0x52a70c,_0x2bf0c9,_0x24b3e1,_0xc07ab4,_0x173179){const _0x1ffbc9=_0x3447f8;var _0x179d57;let _0x2bb0d5=(_0x179d57=_0x2d77cd[_0x1ffbc9(0x279)][_0x1ec2fa])==null?void 0x0:_0x179d57[_0x42b1da],_0x36faaf=_0x2bb0d5==null?void 0x0:_0x2bb0d5['s'],_0x23ddd0=_0xc07ab4||_0x36faaf===_0x534fec[_0x1ffbc9(0x38f)]||_0x36faaf===_0x534fec['MultipleGrandTotal'];return{'isHeader':_0x24b3e1,'isTotal':_0x23ddd0||_0x36faaf===_0x534fec['Subtotal'],'key':_0x173179,'style':_0x36faaf,'value':_0x23ddd0&&Pi(_0x2bb0d5==null?void 0x0:_0x2bb0d5['v'])?_0x2bf0c9:Ni(_0x2bb0d5,_0x52a70c)};}function Ni(_0x648c0,_0x4fdd72){const _0x57194d=_0x3447f8;let _0xac456d=_0x648c0==null?void 0x0:_0x648c0['v'];return _0x958be8(_0xac456d)?String(_0xac456d[_0x57194d(0x2c2)]??_0xac456d[_0x57194d(0x256)]??''):_0x20d60c(_0xac456d)?'#'+_0xac456d['errorType']:_0x4fdd72&&typeof _0xac456d==_0x57194d(0x30d)?_0x254bab[_0x57194d(0x11b)](_0x4fdd72,_0xac456d):String(_0xac456d??'');}function Pi(_0x159aff){return _0x159aff===void 0x0||_0x159aff==='';}function Fi(_0xdc7b97){const _0x6faf02=_0x3447f8;return!!(_0xdc7b97!=null&&_0xdc7b97[_0x6faf02(0x2c7)]||_0xdc7b97!=null&&_0xdc7b97['isTopTotal']||_0xdc7b97!=null&&_0xdc7b97[_0x6faf02(0x13c)]||(_0xdc7b97==null?void 0x0:_0xdc7b97['rowType'])===_0x6faf02(0x177));}const Ii=[{'area':_0x23447d[_0x3447f8(0x251)],'key':_0x3447f8(0x2b1),'label':_0x3447f8(0xca)},{'area':_0x23447d[_0x3447f8(0x29b)],'key':'columnFields','label':'bases-dashboard-ui.pivot.columns'},{'area':_0x23447d['Row'],'key':_0x3447f8(0xdf),'label':'bases-dashboard-ui.pivot.rows'},{'area':_0x23447d['Value'],'key':_0x3447f8(0x2ef),'label':'bases-dashboard-ui.pivot.values'}],Li=[{'value':_0x1f46e1['sum'],'localeKey':_0x3447f8(0x122)},{'value':_0x1f46e1[_0x3447f8(0x203)],'localeKey':_0x3447f8(0x1d8)},{'value':_0x1f46e1['countNums'],'localeKey':_0x3447f8(0x3dd)},{'value':_0x1f46e1['average'],'localeKey':_0x3447f8(0x3cc)},{'value':_0x1f46e1[_0x3447f8(0x351)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':_0x1f46e1[_0x3447f8(0x379)],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x1f46e1[_0x3447f8(0x30b)],'localeKey':_0x3447f8(0x38d)},{'value':_0x1f46e1[_0x3447f8(0x1f4)],'localeKey':'bases-dashboard-ui.pivot.stdDev'},{'value':_0x1f46e1[_0x3447f8(0x352)],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x1f46e1[_0x3447f8(0xd3)],'localeKey':_0x3447f8(0x3ec)},{'value':_0x1f46e1[_0x3447f8(0x33b)],'localeKey':_0x3447f8(0x391)}];function Ri(_0xdab8fa){const _0x4a0b72=_0x3447f8;let {config:_0x5bf981,onChange:_0x418a18,table:_0x526d30}=_0xdab8fa,_0x41b567=_0x53af8d(_0x255457),[_0x2f6165,_0x384ec7]=_0xee90d5('fields'),[_0x224a45,_0x1456de]=_0xee90d5(''),[_0x3817ab,_0x46bff3]=_0xee90d5(null),[_0x2dbfe6,_0x38d11f]=_0xee90d5(null),[_0x5e9cc3,_0x1106f9]=_0xee90d5(null),[_0x58153e,_0x2480f1]=_0xee90d5(null),_0xe9736=_0x4523d4(null),_0x5e4650=_0x125177(()=>_0x526d30[_0x4a0b72(0x24d)][_0x4a0b72(0x30c)](_0x598655=>{const _0x594a51=_0x4a0b72;let _0x287646=_0x526d30[_0x594a51(0x2ee)][_0x598655];return _0x287646&&_0x287646[_0x594a51(0x2ac)]!==!0x0&&_0x287646[_0x594a51(0x1b9)]!==_0x2940a8[_0x594a51(0x397)]?[_0x287646]:[];})[_0x4a0b72(0x14f)](_0x34c554=>_0x34c554[_0x4a0b72(0x2cd)][_0x4a0b72(0xd7)]()[_0x4a0b72(0x2f8)](_0x224a45[_0x4a0b72(0x15f)]()[_0x4a0b72(0xd7)]())),[_0x224a45,_0x526d30]),_0xc71e6e=_0x2a8e75=>{const _0x4b3672=_0x4a0b72;let _0x15bd03=_0x57279f(_0x526d30,_0x5bf981[_0x4b3672(0x10d)]);try{_0x2a8e75(_0x15bd03),_0x418a18({'pivot':_0x15bd03[_0x4b3672(0x24e)]()});}finally{_0x15bd03[_0x4b3672(0x2fe)]();}},_0x1f4f20=(_0x36b665,_0x19b27f)=>{_0x3817ab&&(_0xc71e6e(_0x476cf8=>{const _0x313d5f=_0x1596;if(_0x3817ab['kind']==='field'){let _0x32b3ac=_0x476cf8['getFieldPositionInfoById'](_0x3817ab['id']),_0x3f7c1a=_0x32b3ac['area']===_0x36b665&&_0x32b3ac[_0x313d5f(0xeb)]<_0x19b27f?_0x19b27f-0x1:_0x19b27f;_0x476cf8[_0x313d5f(0x23b)](_0x3817ab['id'],_0x36b665,_0x3f7c1a);return;}Ki(_0x476cf8,_0x3817ab['id'],_0x36b665,_0x19b27f);}),_0x46bff3(null),_0x38d11f(null));};return _0x5c238f(_0x4a0b72(0x1e8),{'className':_0x4a0b72(0x1d7),'children':[_0x1fa005(_0x283559,{'ariaLabel':_0x41b567['t'](_0x4a0b72(0x1b7)),'className':_0x4a0b72(0x302),'items':[{'label':_0x41b567['t'](_0x4a0b72(0x2e9)),'panelId':'base-pivot-fields','value':'fields'},{'label':_0x41b567['t']('bases-dashboard-ui.pivot.options'),'panelId':'base-pivot-options','value':_0x4a0b72(0x326)}],'value':_0x2f6165,'onChange':_0x384ec7}),_0x1fa005(_0x4a0b72(0x1e8),{'ref':_0xe9736,'className':_0x54dbd2('univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3',_0x2bbb9f),'onDragOver':_0x5d1f05=>{const _0x1130f9=_0x4a0b72;let _0x5922dd=_0xe9736[_0x1130f9(0x23e)];if(!_0x5922dd)return;let _0x3cb834=_0x5922dd[_0x1130f9(0x263)]();_0x5d1f05[_0x1130f9(0x117)]<_0x3cb834[_0x1130f9(0x348)]+0x30?_0x5922dd[_0x1130f9(0x406)]-=0x10:_0x5d1f05[_0x1130f9(0x117)]>_0x3cb834[_0x1130f9(0x199)]-0x30&&(_0x5922dd['scrollTop']+=0x10);},'children':_0x2f6165==='options'?_0x1fa005(Gi,{'config':_0x5bf981,'commit':_0xc71e6e}):_0x5c238f(_0x4a0b72(0x1e8),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x5c238f(_0x4a0b72(0x1e8),{'children':[_0x1fa005(_0x4a0b72(0x1e8),{'className':_0x4a0b72(0x3f7),'children':_0x41b567['t']('bases-dashboard-ui.pivot.sourceFields')}),_0x1fa005(_0x2647d7,{'allowClear':!0x0,'slot':_0x1fa005(_0x10f455,{}),'value':_0x224a45,'placeholder':_0x41b567['t'](_0x4a0b72(0x2d9)),'onChange':_0x1456de}),_0x1fa005(_0x4a0b72(0x1e8),{'className':_0x4a0b72(0xdd),'children':_0x5e4650[_0x4a0b72(0x1ee)](_0x489a61=>_0x1fa005(zi,{'config':_0x5bf981,'field':_0x489a61,'onAdd':_0x35bb07=>_0xc71e6e(_0x524841=>Ki(_0x524841,_0x489a61['id'],_0x35bb07,_0x524841[_0x4a0b72(0x11f)](_0x35bb07))),'onCheckedChange':_0x34e219=>_0xc71e6e(_0x51a8a5=>{const _0x1b823f=_0x4a0b72;let _0x3ef920=_0x51a8a5[_0x1b823f(0x1b5)](_0x489a61['id']);if(!_0x34e219){_0x3ef920[_0x1b823f(0x32f)](_0x51e68e=>_0x51a8a5[_0x1b823f(0x1bf)](_0x51e68e[_0x1b823f(0x2bd)]()));return;}if(_0x3ef920[_0x1b823f(0x2c8)]===0x0){let _0x359fd5=Ji(_0x489a61)?_0x23447d[_0x1b823f(0x1b0)]:_0x23447d[_0x1b823f(0x20e)];_0x51a8a5[_0x1b823f(0x29f)](_0x489a61['id'],_0x359fd5);}}),'onDragStart':()=>_0x46bff3({'kind':_0x4a0b72(0x2c6),'id':_0x489a61['id']})},_0x489a61['id']))})]}),_0x1fa005('div',{'className':_0x4a0b72(0x223),'children':Ii[_0x4a0b72(0x1ee)](_0x1ba2a7=>_0x1fa005(Vi,{'area':_0x1ba2a7[_0x4a0b72(0x34d)],'dropTarget':_0x2dbfe6,'fields':_0x5bf981['pivot'][_0x1ba2a7[_0x4a0b72(0x2fc)]],'label':_0x41b567['t'](_0x1ba2a7['label']),'snapshot':_0x5bf981[_0x4a0b72(0x10d)],'onDragEnd':()=>{_0x46bff3(null),_0x38d11f(null);},'onDragStart':_0x369eee=>_0x46bff3({'kind':_0x4a0b72(0x101),'id':_0x369eee,'area':_0x1ba2a7[_0x4a0b72(0x34d)]}),'onDragOver':_0x18bdff=>_0x38d11f({'area':_0x1ba2a7[_0x4a0b72(0x34d)],'index':_0x18bdff}),'onDrop':_0x1dede5=>_0x1f4f20(_0x1ba2a7[_0x4a0b72(0x34d)],_0x1dede5),'onFilter':_0x1106f9,'onMove':(_0x54e526,_0x427411,_0x52c596)=>_0xc71e6e(_0x3d540f=>_0x3d540f['updateFieldPosition'](_0x54e526,_0x427411,_0x52c596)),'onRemove':_0x3f5fd3=>_0xc71e6e(_0x32bc96=>_0x32bc96['removeField'](_0x3f5fd3)),'onSettings':_0x2480f1},_0x1ba2a7[_0x4a0b72(0x34d)]))}),_0x5e9cc3&&_0x1fa005(Ui,{'fieldId':_0x5e9cc3,'snapshot':_0x5bf981[_0x4a0b72(0x10d)],'table':_0x526d30,'onCancel':()=>_0x1106f9(null),'onCommit':(_0x25b1b4,_0x180ec0)=>{_0xc71e6e(_0x1145de=>{const _0x30aa01=_0x1596;let _0x49b3de=_0x1145de['getDataFieldByTableId'](_0x5e9cc3),_0x347905=(_0x49b3de==null?void 0x0:_0x49b3de[_0x30aa01(0x26b)])??[];_0x1145de[_0x30aa01(0x29a)](_0x5e9cc3,{'type':_0x5a8717[_0x30aa01(0x17c)],'list':_0x25b1b4,'isAll':_0x25b1b4[_0x30aa01(0x2c8)]===_0x347905[_0x30aa01(0x2c8)]}),_0x1145de[_0x30aa01(0x271)](_0x5e9cc3,_0x180ec0===void 0x0?void 0x0:{'type':_0x180ec0});}),_0x1106f9(null);}},_0x5e9cc3),_0x58153e&&_0x1fa005(Wi,{'field':_0x5bf981[_0x4a0b72(0x10d)][_0x4a0b72(0x181)][_0x58153e],'onCancel':()=>_0x2480f1(null),'onCommit':(_0x36c373,_0x38a79c,_0x1b83af)=>{_0xc71e6e(_0x3522b=>{const _0x4397f3=_0x1596;_0x3522b[_0x4397f3(0x13f)](_0x58153e,_0x36c373),_0x3522b[_0x4397f3(0xd1)](_0x58153e,_0x38a79c),_0x3522b[_0x4397f3(0xe6)](_0x58153e,_0x1b83af||void 0x0);}),_0x2480f1(null);}},_0x58153e)]})})]});}function zi(_0xb69bb3){const _0x101fae=_0x3447f8;let {config:_0x2689ae,field:_0x42d3b3,onAdd:_0x4ecf64,onCheckedChange:_0x2bd890,onDragStart:_0x2b2781}=_0xb69bb3,_0x17fadc=_0x53af8d(_0x255457),_0x110c04=[...Object[_0x101fae(0xfd)](_0x2689ae[_0x101fae(0x10d)]['dimension']),...Object['values'](_0x2689ae[_0x101fae(0x10d)][_0x101fae(0x181)])]['some'](_0x55bca4=>_0x55bca4['dataFieldId']===_0x42d3b3['id']),_0x1bc008=Ii[_0x101fae(0x1ee)](_0x4c1332=>({'type':'item','children':_0x17fadc['t'](Yi(_0x4c1332[_0x101fae(0x34d)])),'onSelect':()=>_0x4ecf64(_0x4c1332[_0x101fae(0x34d)])}));return _0x5c238f(_0x101fae(0x1e8),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x101fae(0x28a),'onDragStart':_0x2b2781,'children':[_0x1fa005(_0x22d09c,{'checked':_0x110c04,'onChange':_0x4c6a9d=>_0x2bd890(!!_0x4c6a9d)}),_0x1fa005(Bi,{'field':_0x42d3b3}),_0x1fa005(_0x101fae(0x40a),{'className':_0x101fae(0x14b),'children':_0x42d3b3[_0x101fae(0x2cd)]}),_0x1fa005(Jr,{'align':_0x101fae(0x372),'items':_0x1bc008,'children':_0x1fa005(_0x10d589,{'variant':_0x101fae(0x3ca),'aria-label':_0x17fadc['t'](_0x101fae(0x2a0)),'children':_0x1fa005(_0x2e92dc,{})})})]});}function Bi({field:_0x33fb80}){const _0x1fed8f=_0x3447f8;return Ji(_0x33fb80)?_0x1fa005(_0x5b2a53,{'className':_0x1fed8f(0x359)}):_0x33fb80[_0x1fed8f(0x1b9)]===_0x2940a8[_0x1fed8f(0x292)]||_0x33fb80[_0x1fed8f(0x1b9)]===_0x2940a8['CreatedAt']||_0x33fb80[_0x1fed8f(0x1b9)]===_0x2940a8['UpdatedAt']?_0x1fa005(_0x1437d4,{'className':_0x1fed8f(0x359)}):_0x1fa005(_0x3177bc,{'className':_0x1fed8f(0x359)});}function Vi(_0xe718c1){const _0x21f029=_0x3447f8;let {area:_0x854bed,dropTarget:_0x44e6fc,fields:_0x9c9035,label:_0x1c9c7e,snapshot:_0x5ae3bb}=_0xe718c1,_0x32bce7=_0x53af8d(_0x255457);return _0x5c238f('section',{'className':_0x54dbd2('univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800',_0x243840),'onDragOver':_0xcfd2a4=>{const _0x3d36c9=_0x1596;_0xcfd2a4['preventDefault'](),_0xe718c1['onDragOver'](_0x9c9035[_0x3d36c9(0x2c8)]);},'onDrop':_0x532ea5=>{const _0x200b51=_0x1596;_0x532ea5[_0x200b51(0x16a)](),_0xe718c1[_0x200b51(0x25a)]((_0x44e6fc==null?void 0x0:_0x44e6fc[_0x200b51(0x34d)])===_0x854bed?_0x44e6fc[_0x200b51(0xeb)]:_0x9c9035[_0x200b51(0x2c8)]);},'children':[_0x1fa005(_0x21f029(0x1e8),{'className':_0x21f029(0xdc),'children':_0x1c9c7e}),_0x5c238f(_0x21f029(0x1e8),{'className':'univer-flex\x20univer-flex-col','children':[_0x9c9035['map']((_0x316665,_0x557cde)=>{const _0x105bec=_0x21f029;let _0x395e3d=_0x5ae3bb[_0x105bec(0x2dd)][_0x316665]??_0x5ae3bb['measure'][_0x316665];if(!_0x395e3d)return null;let _0x3d3d39=(_0x44e6fc==null?void 0x0:_0x44e6fc[_0x105bec(0x34d)])===_0x854bed&&_0x44e6fc[_0x105bec(0xeb)]===_0x557cde;return _0x5c238f(_0x105bec(0x1e8),{'onDragOver':_0x4c7308=>{const _0x41ca0c=_0x105bec;_0x4c7308[_0x41ca0c(0x16a)](),_0x4c7308['stopPropagation']();let _0x5492e1=_0x4c7308[_0x41ca0c(0x3c3)][_0x41ca0c(0x263)]();_0xe718c1[_0x41ca0c(0x37a)](_0x557cde+ +(_0x4c7308[_0x41ca0c(0x117)]>_0x5492e1[_0x41ca0c(0x348)]+_0x5492e1['height']/0x2));},'onDrop':_0x473bc4=>{const _0x341978=_0x105bec;_0x473bc4[_0x341978(0x16a)](),_0x473bc4[_0x341978(0x273)](),_0xe718c1[_0x341978(0x25a)]((_0x44e6fc==null?void 0x0:_0x44e6fc[_0x341978(0x34d)])===_0x854bed?_0x44e6fc['index']:_0x557cde);},'children':[_0x3d3d39&&_0x1fa005('div',{'className':_0x105bec(0x3e7)}),_0x1fa005(Hi,{'area':_0x854bed,'field':_0x395e3d,'onDragEnd':_0xe718c1[_0x105bec(0x25f)],'onDragStart':()=>_0xe718c1[_0x105bec(0xcf)](_0x316665),'onFilter':()=>_0xe718c1['onFilter'](_0x316665),'onMove':_0x2408bc=>_0xe718c1[_0x105bec(0x123)](_0x316665,_0x2408bc,0x0),'onMoveUp':_0x557cde>0x0?()=>_0xe718c1[_0x105bec(0x123)](_0x316665,_0x854bed,_0x557cde-0x1):void 0x0,'onMoveDown':_0x557cde<_0x9c9035[_0x105bec(0x2c8)]-0x1?()=>_0xe718c1[_0x105bec(0x123)](_0x316665,_0x854bed,_0x557cde+0x1):void 0x0,'onRemove':()=>_0xe718c1[_0x105bec(0x2c3)](_0x316665),'onSettings':()=>_0xe718c1[_0x105bec(0x2ec)](_0x316665)})]},_0x316665);}),(_0x44e6fc==null?void 0x0:_0x44e6fc[_0x21f029(0x34d)])===_0x854bed&&_0x44e6fc[_0x21f029(0xeb)]===_0x9c9035[_0x21f029(0x2c8)]&&_0x1fa005(_0x21f029(0x1e8),{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),_0x9c9035[_0x21f029(0x2c8)]===0x0&&_0x1fa005(_0x21f029(0x1e8),{'className':_0x21f029(0x2b7),'children':_0x32bce7['t']('bases-dashboard-ui.pivot.sourceFields')})]})]});}function Hi(_0x5e8f1f){const _0x1704d3=_0x3447f8;let _0x145e75=_0x53af8d(_0x255457),_0x205376=_0x5e8f1f['area']===_0x23447d['Value'],_0x17ecf7=[...Ii[_0x1704d3(0x14f)](_0x5ad051=>_0x5ad051['area']!==_0x5e8f1f[_0x1704d3(0x34d)])[_0x1704d3(0x1ee)](_0x169fa3=>({'type':_0x1704d3(0x347),'children':_0x145e75['t'](Yi(_0x169fa3[_0x1704d3(0x34d)])),'onSelect':()=>_0x5e8f1f[_0x1704d3(0x123)](_0x169fa3[_0x1704d3(0x34d)])})),..._0x5e8f1f[_0x1704d3(0xd0)]?[{'type':_0x1704d3(0x347),'children':_0x145e75['t'](_0x1704d3(0x18e)),'onSelect':_0x5e8f1f[_0x1704d3(0xd0)]}]:[],..._0x5e8f1f['onMoveDown']?[{'type':'item','children':_0x145e75['t'](_0x1704d3(0x3b4)),'onSelect':_0x5e8f1f[_0x1704d3(0x261)]}]:[],{'type':'item','children':_0x145e75['t']('bases-dashboard-ui.pivot.removeField'),'onSelect':_0x5e8f1f[_0x1704d3(0x2c3)]},{'type':_0x1704d3(0x347),'children':_0x145e75['t'](_0x205376?_0x1704d3(0x2a0):_0x1704d3(0x2d0)),'onSelect':_0x205376?_0x5e8f1f[_0x1704d3(0x2ec)]:_0x5e8f1f['onFilter']}];return _0x5c238f(_0x1704d3(0x1e8),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x1704d3(0x146),'onDragEnd':_0x5e8f1f[_0x1704d3(0x25f)],'onDragStart':_0x5e8f1f[_0x1704d3(0xcf)],'children':[_0x1fa005(_0x310d74,{'title':_0x5e8f1f[_0x1704d3(0x101)][_0x1704d3(0x2bb)],'children':_0x1fa005(_0x1704d3(0x40a),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x5e8f1f[_0x1704d3(0x101)][_0x1704d3(0x2bb)]})}),_0x1fa005(Jr,{'align':_0x1704d3(0x372),'items':_0x17ecf7,'children':_0x1fa005(_0x10d589,{'variant':'text','aria-label':_0x145e75['t'](_0x1704d3(0x2a0)),'children':_0x1fa005(_0x2e92dc,{})})})]});}function Ui(_0x4efbf7){const _0x1a83cf=_0x3447f8;var _0x52aa12,_0x43a051;let _0x19bc53=_0x53af8d(_0x255457),{format:_0x44a82c,items:_0x2817c4,itemTypes:_0x55bc78}=_0x125177(()=>{const _0x50bdd3=_0x1596;let _0x3efc3b=_0x57279f(_0x4efbf7[_0x50bdd3(0x173)],_0x4efbf7[_0x50bdd3(0x12a)]);try{let _0x2ef832=_0x3efc3b['getDataFieldByTableId'](_0x4efbf7[_0x50bdd3(0x1e5)]);return{'format':_0x2ef832==null?void 0x0:_0x2ef832[_0x50bdd3(0x11b)],'items':[...(_0x2ef832==null?void 0x0:_0x2ef832['items'])??[]],'itemTypes':[...(_0x2ef832==null?void 0x0:_0x2ef832['itemTypes'])??[]]};}finally{_0x3efc3b['dispose']();}},[_0x4efbf7[_0x1a83cf(0x1e5)],_0x4efbf7[_0x1a83cf(0x12a)],_0x4efbf7[_0x1a83cf(0x173)]]),_0x10eee4=(_0x52aa12=_0x4efbf7[_0x1a83cf(0x12a)][_0x1a83cf(0x2dd)][_0x4efbf7[_0x1a83cf(0x1e5)]])==null?void 0x0:_0x52aa12[_0x1a83cf(0x37f)],[_0x55e4c3,_0x4159f8]=_0xee90d5((_0x10eee4==null?void 0x0:_0x10eee4[_0x1a83cf(0x1b9)])===_0x5a8717['ManualFilter']?_0x10eee4['list']:_0x2817c4),[_0x1a7ac6,_0x1421b4]=_0xee90d5((_0x43a051=_0x4efbf7['snapshot'][_0x1a83cf(0x2dd)][_0x4efbf7[_0x1a83cf(0x1e5)]])==null||(_0x43a051=_0x43a051[_0x1a83cf(0x250)])==null?void 0x0:_0x43a051[_0x1a83cf(0x1b9)]),_0x3a1a08=_0x55e4c3[_0x1a83cf(0x2c8)]===_0x2817c4[_0x1a83cf(0x2c8)],_0x1bf5c1=_0x5c238f(_0x1a83cf(0x336),{'className':_0x54dbd2(_0x1a83cf(0x14d),_0x243840),'children':[_0x1fa005(_0x1a83cf(0x1e8),{'className':_0x1a83cf(0xcd),'children':_0x19bc53['t'](_0x1a83cf(0x2d0))}),_0x5c238f('div',{'className':_0x1a83cf(0x3eb),'children':[_0x5c238f(_0x10d589,{'className':_0x1a83cf(0x1cc),'variant':_0x1a7ac6===_0x428f40['ascending']?_0x1a83cf(0x125):_0x1a83cf(0x36e),'onClick':()=>_0x1421b4(_0x428f40[_0x1a83cf(0x17d)]),'children':[_0x1fa005(_0x2a08ae,{}),_0x19bc53['t'](_0x1a83cf(0x2e6))]}),_0x5c238f(_0x10d589,{'className':_0x1a83cf(0x1cc),'variant':_0x1a7ac6===_0x428f40['descending']?'primary':_0x1a83cf(0x36e),'onClick':()=>_0x1421b4(_0x428f40['descending']),'children':[_0x1fa005(_0x20c70b,{}),_0x19bc53['t']('bases-dashboard-ui.pivot.descending')]})]}),_0x5c238f(_0x1a83cf(0x1e8),{'className':_0x1a83cf(0x15a),'children':[_0x5c238f(_0x1a83cf(0x24a),{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x1fa005(_0x22d09c,{'checked':_0x3a1a08,'indeterminate':_0x55e4c3[_0x1a83cf(0x2c8)]>0x0&&!_0x3a1a08,'onChange':()=>_0x4159f8(_0x3a1a08?[]:_0x2817c4)}),_0x19bc53['t']('bases-dashboard-ui.pivot.selectAll')]}),_0x2817c4[_0x1a83cf(0x1ee)]((_0x5a2ed5,_0x1ed33d)=>_0x5c238f(_0x1a83cf(0x24a),{'className':_0x1a83cf(0x208),'children':[_0x1fa005(_0x22d09c,{'checked':_0x55e4c3[_0x1a83cf(0x2f8)](_0x5a2ed5),'onChange':()=>_0x4159f8(_0x35e7fa=>_0x35e7fa[_0x1a83cf(0x2f8)](_0x5a2ed5)?_0x35e7fa[_0x1a83cf(0x14f)](_0x2768c9=>_0x2768c9!==_0x5a2ed5):[..._0x35e7fa,_0x5a2ed5])}),_0x1fa005(_0x1a83cf(0x40a),{'className':_0x1a83cf(0x242),'children':qi(_0x5a2ed5,_0x55bc78[_0x1ed33d],_0x44a82c,_0x19bc53['t']('bases-dashboard-ui.pivot.blank'))})]},_0x5a2ed5))]}),_0x5c238f(_0x1a83cf(0x1e8),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[_0x1fa005(_0x10d589,{'variant':'link','onClick':()=>_0x4efbf7[_0x1a83cf(0x3b5)](_0x2817c4,_0x1a7ac6),'children':_0x19bc53['t'](_0x1a83cf(0x3bd))}),_0x5c238f('div',{'className':_0x1a83cf(0x3d4),'children':[_0x1fa005(_0x10d589,{'onClick':_0x4efbf7['onCancel'],'children':_0x19bc53['t'](_0x1a83cf(0x132))}),_0x1fa005(_0x10d589,{'variant':_0x1a83cf(0x125),'disabled':_0x55e4c3[_0x1a83cf(0x2c8)]===0x0,'onClick':()=>_0x4efbf7[_0x1a83cf(0x3b5)](_0x55e4c3,_0x1a7ac6),'children':_0x19bc53['t']('bases-dashboard-ui.pivot.confirm')})]})]})]});return _0x1fa005(_0x14b201,{'title':_0x19bc53['t']('bases-dashboard-ui.pivot.filterField'),'onClose':_0x4efbf7[_0x1a83cf(0x227)],'children':_0x1bf5c1});}function Wi(_0x1a310b){const _0x36846d=_0x3447f8;var _0x3a3598,_0x253b7f,_0x52e881;let _0x49a51a=_0x53af8d(_0x255457),[_0x1b4628,_0x5498bf]=_0xee90d5(((_0x3a3598=_0x1a310b['field'])==null?void 0x0:_0x3a3598[_0x36846d(0x2bb)])??''),[_0x174bac,_0x392cf7]=_0xee90d5(((_0x253b7f=_0x1a310b['field'])==null?void 0x0:_0x253b7f[_0x36846d(0x1f5)])??_0x1f46e1['sum']),[_0x53bd20,_0x127a8f]=_0xee90d5(((_0x52e881=_0x1a310b[_0x36846d(0x101)])==null?void 0x0:_0x52e881[_0x36846d(0x11b)])??'');if(!_0x1a310b[_0x36846d(0x101)])return null;let _0x2bb110=_0x5c238f(_0x36846d(0x336),{'className':_0x54dbd2(_0x36846d(0x320),_0x243840),'children':[_0x1fa005('div',{'className':'univer-text-sm\x20univer-font-medium','children':_0x49a51a['t'](_0x36846d(0x2a0))}),_0x5c238f('label',{'className':_0x36846d(0x289),'children':[_0x49a51a['t'](_0x36846d(0xbe)),_0x1fa005(_0x2647d7,{'value':_0x1b4628,'onChange':_0x5498bf})]}),_0x5c238f('label',{'className':_0x36846d(0x289),'children':[_0x49a51a['t'](_0x36846d(0x109)),_0x1fa005(qr,{'value':String(_0x174bac),'options':Li[_0x36846d(0x1ee)](_0x5e7b79=>({'value':String(_0x5e7b79[_0x36846d(0x2c2)]),'label':_0x49a51a['t'](_0x5e7b79[_0x36846d(0x139)])})),'onChange':_0x179a0c=>{const _0x29a47f=_0x36846d;let _0x5f1b8c=Li[_0x29a47f(0x2c9)](_0x110366=>String(_0x110366['value'])===_0x179a0c);_0x5f1b8c&&_0x392cf7(_0x5f1b8c[_0x29a47f(0x2c2)]);}})]}),_0x5c238f(_0x36846d(0x24a),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x49a51a['t'](_0x36846d(0x3ae)),_0x1fa005(_0x2647d7,{'value':_0x53bd20,'onChange':_0x127a8f})]}),_0x5c238f(_0x36846d(0x1e8),{'className':_0x36846d(0x23d),'children':[_0x1fa005(_0x10d589,{'onClick':_0x1a310b[_0x36846d(0x227)],'children':_0x49a51a['t'](_0x36846d(0x132))}),_0x1fa005(_0x10d589,{'variant':_0x36846d(0x125),'disabled':!_0x1b4628[_0x36846d(0x15f)](),'onClick':()=>_0x1a310b[_0x36846d(0x3b5)](_0x1b4628['trim'](),_0x174bac,_0x53bd20),'children':_0x49a51a['t'](_0x36846d(0x15e))})]})]});return _0x1fa005(_0x14b201,{'title':_0x49a51a['t']('bases-dashboard-ui.pivot.fieldSettings'),'onClose':_0x1a310b[_0x36846d(0x227)],'children':_0x2bb110});}function Gi(_0x61a484){const _0x4fc48c=_0x3447f8;let {config:_0x105f27,commit:_0x21baef}=_0x61a484,_0x3d3ac4=_0x53af8d(_0x255457),_0x102482=_0x105f27['pivot'][_0x4fc48c(0x326)],_0x372a78=_0x3c325b=>_0x21baef(_0x25ebe8=>_0x25ebe8[_0x4fc48c(0x17f)]({..._0x25ebe8[_0x4fc48c(0x21f)](),..._0x3c325b}));return _0x5c238f(_0x4fc48c(0x1e8),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x5c238f('label',{'className':_0x4fc48c(0x39f),'children':[_0x3d3ac4['t'](_0x4fc48c(0x35c)),_0x1fa005(qr,{'className':_0x4fc48c(0x333),'value':String(_0x105f27[_0x4fc48c(0x10d)][_0x4fc48c(0xe1)]),'options':[{'value':String(_0x185dea['tabular']),'label':_0x3d3ac4['t'](_0x4fc48c(0x1ac))},{'value':String(_0x185dea[_0x4fc48c(0x3da)]),'label':_0x3d3ac4['t']('bases-dashboard-ui.pivot.layoutCompact')},{'value':String(_0x185dea[_0x4fc48c(0x1a7)]),'label':_0x3d3ac4['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x44ece9=>{const _0x3ed73e=_0x4fc48c;let _0x45b67d=[_0x185dea['tabular'],_0x185dea[_0x3ed73e(0x3da)],_0x185dea['outline']]['find'](_0x39ba93=>String(_0x39ba93)===_0x44ece9);_0x45b67d!==void 0x0&&_0x21baef(_0x363e8a=>_0x363e8a[_0x3ed73e(0x266)](_0x45b67d));}})]}),[{'key':_0x4fc48c(0x25b),'label':'bases-dashboard-ui.pivot.repeatRowLabels','defaultValue':!0x1},{'key':_0x4fc48c(0x296),'label':_0x4fc48c(0xfe),'defaultValue':!0x1},{'key':_0x4fc48c(0x1a6),'label':_0x4fc48c(0x31c),'defaultValue':!0x0},{'key':_0x4fc48c(0x13d),'label':_0x4fc48c(0x168),'defaultValue':!0x0},{'key':_0x4fc48c(0x107),'label':_0x4fc48c(0x3f9),'defaultValue':!0x0},{'key':_0x4fc48c(0x102),'label':_0x4fc48c(0x25c),'defaultValue':!0x0}][_0x4fc48c(0x1ee)](_0x36297d=>_0x5c238f(_0x4fc48c(0x24a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x1fa005(_0x22d09c,{'checked':!!(_0x102482[_0x36297d[_0x4fc48c(0x2fc)]]??_0x36297d[_0x4fc48c(0xe8)]),'disabled':_0x36297d[_0x4fc48c(0x2fc)]===_0x4fc48c(0x25b)&&_0x105f27[_0x4fc48c(0x10d)][_0x4fc48c(0xe1)]===_0x185dea['compact'],'onChange':_0xb89348=>_0x372a78({[_0x36297d[_0x4fc48c(0x2fc)]]:!!_0xb89348})}),_0x3d3ac4['t'](_0x36297d[_0x4fc48c(0x24a)])]},_0x36297d[_0x4fc48c(0x2fc)])),_0x105f27['pivot']['layout']===_0x185dea[_0x4fc48c(0x1a7)]&&_0x5c238f(_0x4fc48c(0x24a),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x3d3ac4['t']('bases-dashboard-ui.pivot.rowSubtotalPosition'),_0x1fa005(qr,{'className':_0x4fc48c(0x333),'value':String(_0x102482['rowSubtotalPosition']??_0x568753[_0x4fc48c(0x348)]),'options':[{'value':String(_0x568753[_0x4fc48c(0x348)]),'label':_0x3d3ac4['t'](_0x4fc48c(0xc8))},{'value':String(_0x568753[_0x4fc48c(0x199)]),'label':_0x3d3ac4['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x2d8e5b=>{const _0x2ff368=_0x4fc48c;let _0x4eed22=[_0x568753[_0x2ff368(0x348)],_0x568753[_0x2ff368(0x199)]][_0x2ff368(0x2c9)](_0x4fa5e6=>String(_0x4fa5e6)===_0x2d8e5b);_0x4eed22!==void 0x0&&_0x372a78({'rowSubtotalPosition':_0x4eed22});}})]}),_0x5c238f(_0x4fc48c(0x24a),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x3d3ac4['t']('bases-dashboard-ui.pivot.valuePosition'),_0x1fa005(qr,{'className':_0x4fc48c(0x333),'value':String(_0x105f27[_0x4fc48c(0x10d)][_0x4fc48c(0x1d2)]===_0x2d76e7[_0x4fc48c(0x322)]?_0x2d76e7[_0x4fc48c(0x29b)]:_0x105f27[_0x4fc48c(0x10d)][_0x4fc48c(0x1d2)]),'options':[{'value':String(_0x2d76e7[_0x4fc48c(0x29b)]),'label':_0x3d3ac4['t'](_0x4fc48c(0x1f0))},{'value':String(_0x2d76e7[_0x4fc48c(0x20e)]),'label':_0x3d3ac4['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x5e17a0=>{const _0x5a81e0=_0x4fc48c;let _0xe920c7=[_0x2d76e7['Column'],_0x2d76e7[_0x5a81e0(0x20e)]]['find'](_0x4d64f2=>String(_0x4d64f2)===_0x5e17a0);_0xe920c7!==void 0x0&&_0x21baef(_0x1714ac=>_0x1714ac[_0x5a81e0(0x1a1)](_0xe920c7,_0x1714ac['getValueIndex']()<0x0?0x0:_0x1714ac['getValueIndex']()));}})]}),_0x5c238f(_0x4fc48c(0x24a),{'className':_0x4fc48c(0x39f),'children':[_0x3d3ac4['t'](_0x4fc48c(0x30a)),_0x1fa005(_0x499d19,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x102482[_0x4fc48c(0x358)]??0x1,'onChange':_0x1ff1f2=>{const _0x193655=_0x4fc48c;let _0x4cc4a5=Number(_0x1ff1f2);Number[_0x193655(0x1b3)](_0x4cc4a5)&&_0x4cc4a5>=0x1&&_0x372a78({'pageWrap':_0x4cc4a5});}})]}),_0x5c238f(_0x4fc48c(0x24a),{'className':_0x4fc48c(0x39f),'children':[_0x3d3ac4['t']('bases-dashboard-ui.pivot.pageDirection'),_0x1fa005(qr,{'className':_0x4fc48c(0x333),'value':String(_0x102482[_0x4fc48c(0x1db)]??!0x1),'options':[{'value':_0x4fc48c(0x37e),'label':_0x3d3ac4['t'](_0x4fc48c(0x384))},{'value':_0x4fc48c(0x2d2),'label':_0x3d3ac4['t']('bases-dashboard-ui.pivot.acrossThenDown')}],'onChange':_0x3bed88=>_0x372a78({'pageOverThenDown':_0x3bed88==='true'})})]})]});}function Ki(_0x3793c5,_0x174932,_0x82c91c,_0x15181d){const _0x1185bf=_0x3447f8;let _0x852edc=_0x3793c5[_0x1185bf(0x1b5)](_0x174932)[_0x1185bf(0x2c9)](_0x3828df=>_0x3793c5[_0x1185bf(0x126)](_0x3828df[_0x1185bf(0x2bd)]())[_0x1185bf(0x34d)]!==_0x23447d[_0x1185bf(0x1b0)]);if(_0x82c91c!==_0x23447d[_0x1185bf(0x1b0)]&&_0x852edc){_0x3793c5[_0x1185bf(0x23b)](_0x852edc[_0x1185bf(0x2bd)](),_0x82c91c,_0x15181d);return;}_0x3793c5['addFieldWithSourceId'](_0x174932,_0x82c91c,_0x15181d);}function qi(_0x4b5aa2,_0x35f2fd,_0x1ec389,_0x58f6e7){const _0x115f0d=_0x3447f8;return _0x35f2fd===_0x25f34a[_0x115f0d(0x295)]?_0x58f6e7:_0x35f2fd===_0x25f34a[_0x115f0d(0x118)]&&_0x1ec389?_0x254bab['format'](_0x1ec389,Number(_0x4b5aa2)):_0x4b5aa2;}function Ji(_0x46f9c8){const _0x348f91=_0x3447f8;return _0x46f9c8[_0x348f91(0x1b9)]===_0x2940a8[_0x348f91(0x3c9)]||_0x46f9c8[_0x348f91(0x1b9)]===_0x2940a8[_0x348f91(0x18d)]||_0x46f9c8[_0x348f91(0x1b9)]===_0x2940a8[_0x348f91(0x304)]||_0x46f9c8['type']===_0x2940a8[_0x348f91(0x3b8)];}function Yi(_0x493230){const _0x54a2c4=_0x3447f8;switch(_0x493230){case _0x23447d[_0x54a2c4(0x20e)]:return _0x54a2c4(0x36f);case _0x23447d[_0x54a2c4(0x29b)]:return'bases-dashboard-ui.pivot.addToColumn';case _0x23447d['Value']:return _0x54a2c4(0x246);default:return _0x54a2c4(0x1f3);}}function Xi({config:_0x2d5904,onChange:_0x11a0e5,runtime:_0x4c0cf9,table:_0x77456f}){const _0x1334d2=_0x3447f8;let _0x4cb01d=_0x53af8d(_0x255457),[_0x42e41d,_0x286c7d]=_0xee90d5(_0x1334d2(0x1eb));return _0x5c238f(_0x1334d2(0x268),{'className':_0x1334d2(0x258),'children':[_0x1fa005(_0x283559,{'ariaLabel':_0x4cb01d['t'](_0x1334d2(0x1a9)),'className':_0x1334d2(0x33a),'items':[{'label':_0x4cb01d['t'](_0x1334d2(0x19e)),'panelId':_0x1334d2(0x28c),'value':'chart'},{'label':_0x4cb01d['t'](_0x1334d2(0x1b7)),'panelId':_0x1334d2(0xce),'value':_0x1334d2(0x10d)}],'value':_0x42e41d,'variant':_0x1334d2(0x2db),'onChange':_0x286c7d}),_0x1fa005(_0x1334d2(0x1e8),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','children':_0x42e41d==='chart'?_0x4c0cf9&&_0x1fa005(Qr,{'config':_0x2d5904,'runtime':_0x4c0cf9,'tableName':_0x77456f[_0x1334d2(0x2cd)],'onChange':_0x11a0e5}):_0x1fa005(Ri,{'config':_0x2d5904,'table':_0x77456f,'onChange':_0x11a0e5})})]});}function _0x1596(_0x4222ee,_0x85c599){_0x4222ee=_0x4222ee-0xb9;const _0x344824=_0x3448();let _0x15969c=_0x344824[_0x4222ee];return _0x15969c;}function Zi({tableId:_0x23aa47,unitId:_0x54bedf,viewId:_0x16da8f}){const _0x46eae0=_0x3447f8;let [_0x45bfef,_0x26a89e]=_0xee90d5(!0x1),_0x3403ae=_0x53af8d(_0x1ec317),_0x1a6a84=_0x53af8d(_0xa15270),_0x1b6917=_0x53af8d(_0x133842),_0x1931d1=_0x53af8d(_0x255457),_0x25d106=_0x53af8d(_0x2cc67a),[_0x286bf3,_0x31c1ea]=_0xee90d5(null),[_0x49c61d,_0x1bdc8a]=_0xee90d5(null),_0x4fe3bb=_0x4523d4('base-pivot-chart-'+_0x2aef82(0x8)),[_0x526437,_0x131ac2]=_0xee90d5(!0x1),_0x2ea8e7=_0x1a6a84['getUnit'](_0x54bedf,_0x6e7cef[_0x46eae0(0x1f7)]),_0x3fc8f5=_0x2ea8e7==null?void 0x0:_0x2ea8e7[_0x46eae0(0x3b6)]()[_0x46eae0(0x186)][_0x23aa47],_0xa9176c=_0x3fc8f5==null?void 0x0:_0x3fc8f5['views'][_0x16da8f],_0x3abd6c=Qi(_0xa9176c),_0x1ef5a5=_r(_0x54bedf,_0x23aa47,_0x16da8f);if(_0x543512(()=>{const _0x114f36=_0x46eae0;if(!_0x3abd6c)return;let _0x2cdf77=_0x4fe3bb['current'];return _0x25d106[_0x114f36(0x1a0)](_0x2cdf77,{'unitId':_0x54bedf,'tableId':_0x23aa47,'viewId':_0x16da8f,'filters':[]}),()=>{const _0x448926=_0x114f36;_0x25d106[_0x448926(0x197)](_0x54bedf,_0x2cdf77);};},[_0x3abd6c,_0x25d106,_0x23aa47,_0x54bedf,_0x16da8f]),_0x543512(()=>{const _0x91faa4=_0x46eae0;if(!Qi(_0xa9176c))return;let _0x58d4fb=!0x0,_0x2a901a={'unitId':_0x54bedf,'tableId':_0x23aa47,'viewId':_0x16da8f,'filters':[_0xa9176c[_0x91faa4(0x14f)]??null]};return _0x25d106[_0x91faa4(0x1d6)](_0x54bedf,_0x4fe3bb[_0x91faa4(0x23e)],_0x2a901a)[_0x91faa4(0x401)](_0x2edcad=>{const _0x36f829=_0x91faa4;_0x58d4fb&&_0x2edcad&&(_0x31c1ea(_0x2edcad),_0x1bdc8a(_0x25d106[_0x36f829(0x337)](_0x54bedf,_0x4fe3bb[_0x36f829(0x23e)])??null),_0x131ac2(!0x1));})[_0x91faa4(0x308)](_0x580f56=>{const _0x4e63c3=_0x91faa4;_0x1b6917[_0x4e63c3(0x1a3)]('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x580f56),_0x58d4fb&&(_0x31c1ea(null),_0x131ac2(!0x0));}),()=>{_0x58d4fb=!0x1;};},[_0x1b6917,_0x25d106,_0x23aa47,_0x54bedf,_0xa9176c,_0x16da8f]),!_0x3fc8f5||!Qi(_0xa9176c))return null;let _0x5e040f=_0x25d106[_0x46eae0(0x337)](_0x54bedf,_0x4fe3bb[_0x46eae0(0x23e)])===_0x49c61d?_0x49c61d:null,_0x576fec=_0x286bf3?_0x5c238f(_0x46eae0(0x1e8),{'className':_0x46eae0(0x1f9),'style':{'gridTemplateRows':_0xa9176c['config'][_0x46eae0(0x2f2)]===_0x46eae0(0xf9)?'minmax(0,\x203fr)\x20minmax(0,\x202fr)':_0x46eae0(0x1ea)},'children':[_0xa9176c[_0x46eae0(0x2b0)][_0x46eae0(0x2f2)]!==_0x46eae0(0x173)&&_0x5e040f&&_0x1fa005(_0x46eae0(0x1e8),{'className':_0x46eae0(0x360),'children':_0x1fa005(Ir,{'isRowDirection':_0x18785d(_0xa9176c[_0x46eae0(0x2b0)]['chart']['orient']),'runtime':_0x5e040f})}),_0xa9176c[_0x46eae0(0x2b0)][_0x46eae0(0x2f2)]!=='chart'&&_0x1fa005(_0x46eae0(0x1e8),{'className':'univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':_0x1fa005(ki,{'pivot':_0xa9176c[_0x46eae0(0x2b0)]['pivot'],'view':_0x286bf3[_0x46eae0(0x3d6)]})})]}):_0x1fa005(_0x46eae0(0x1e8),{'className':_0x46eae0(0x158),'children':_0x526437?_0x1931d1['t'](_0x46eae0(0x143)):_0x1931d1['t']('bases-dashboard-ui.pivot.calculating')}),_0x430b7a=_0x1fa005(Xi,{'config':_0xa9176c[_0x46eae0(0x2b0)],'runtime':_0x5e040f,'table':_0x3fc8f5,'onChange':_0x16ad29=>{const _0x1fa365=_0x46eae0;_0x1a6a84[_0x1fa365(0x300)](_0x54bedf),_0x1a6a84[_0x1fa365(0x3a3)](_0x54bedf),_0x3403ae[_0x1fa365(0x2be)](_0x22ea58['id'],{'unitId':_0x54bedf,'tableId':_0x23aa47,'viewId':_0x16da8f,'patch':_0x16ad29})[_0x1fa365(0x308)](_0x297198=>_0x1b6917['error']('[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.',_0x297198));}});return _0x1fa005(Kr,{'children':_0x5c238f(_0x46eae0(0x1e8),{'className':'univer-relative\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-50\x20dark:univer-bg-gray-950','children':[_0x1ef5a5&&_0x1fa005(_0x10d589,{'onClick':()=>_0x26a89e(!0x0),'children':_0x1931d1['t'](_0x46eae0(0x19e))}),_0x1fa005('div',{'className':_0x46eae0(0x3fc),'children':_0x576fec}),_0x1ef5a5&&_0x45bfef&&_0x1fa005(_0x14b201,{'title':_0x1931d1['t'](_0x46eae0(0x1a9)),'onClose':()=>_0x26a89e(!0x1),'children':_0x430b7a})]})});}function Qi(_0x4d9832){const _0x117b81=_0x3447f8;return(_0x4d9832==null?void 0x0:_0x4d9832[_0x117b81(0x1b9)])===_0x4da0de[_0x117b81(0x1ec)]&&typeof _0x4d9832['config']==_0x117b81(0x2f1)&&_0x4d9832[_0x117b81(0x2b0)]!==null&&_0x117b81(0x10d)in _0x4d9832['config']&&_0x117b81(0x1eb)in _0x4d9832[_0x117b81(0x2b0)]&&_0x117b81(0x2f2)in _0x4d9832[_0x117b81(0x2b0)];}let $i=class extends _0x47ac6f{constructor(_0x2a636c,_0x532e18,_0x574080,_0x2d7544,_0x34c28a,_0x41b14f){const _0x2dfc2f=_0x3447f8;super(),this[_0x2dfc2f(0x36c)](_0x532e18[_0x2dfc2f(0xc6)]({'type':_0x4da0de[_0x2dfc2f(0x1ec)],'renderMode':_0x2dfc2f(0x30f),'icon':_0x551361,'component':Zi,'menu':{get 'label'(){const _0x243b8f=_0x2dfc2f;return _0x41b14f['t'](_0x243b8f(0x1a9));},get 'description'(){return _0x41b14f['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){return _0x41b14f['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x2dfc2f(0x36c)](_0x2a636c[_0x2dfc2f(0xc6)](ea(_0x574080,_0x2d7544,_0x34c28a,_0x41b14f)));}};$i=Or([Y(0x0,_0x3460c3),Y(0x1,_0x198cb9),Y(0x2,_0x1e6fb0(_0x4e6cdd)),Y(0x3,_0x1ec317),Y(0x4,_0x58608a),Y(0x5,_0x1e6fb0(_0x255457))],$i);function ea(_0x35d6a0,_0x6bb2e5,_0x118015,_0x51ad38){const _0x55fddd=_0x3447f8;return{'change$':_0x1691f8(_0x35d6a0[_0x55fddd(0x135)],_0x118015['permissionPointUpdate$']),'component':bi,get 'labels'(){const _0x2bdd74=_0x55fddd;return{'add':_0x51ad38['t'](_0x2bdd74(0x19b)),'configure':_0x16a990=>_0x51ad38['t'](_0x2bdd74(0x291),_0x16a990),'delete':_0x51ad38['t'](_0x2bdd74(0x238)),'new':_0x51ad38['t'](_0x2bdd74(0x1de)),'rename':_0x51ad38['t'](_0x2bdd74(0xe0)),'search':_0x51ad38['t']('bases-dashboard-ui.dashboard.search'),'section':_0x51ad38['t']('bases-dashboard-ui.dashboard.section')};},'getItems':_0x37aa00=>{const _0x832436=_0x55fddd;let _0x196677=_0x35d6a0[_0x832436(0x29d)](_0x37aa00);return _0x196677[_0x832436(0x27e)][_0x832436(0x30c)](_0x2a697e=>{const _0x5b13bc=_0x832436;let _0x184ff2=_0x196677[_0x5b13bc(0x1fc)][_0x2a697e];return _0x184ff2?[{'id':_0x184ff2['id'],'name':_0x184ff2[_0x5b13bc(0x2cd)],'readonly':!_0x314d1d(_0x118015,_0x37aa00,_0x184ff2['id'])}]:[];});},'create':async _0x199e86=>{const _0x4c4edd=_0x55fddd;let _0x1c28ad=_0x35d6a0['getResource'](_0x199e86),_0x48eec8=_0x4c4edd(0x13a)+_0x2aef82(0x8),_0x140c0b=ta(_0x1c28ad['dashboardOrder']['flatMap'](_0x182896=>{const _0x540c2c=_0x4c4edd;let _0x21381f=_0x1c28ad['dashboards'][_0x182896];return _0x21381f?[_0x21381f[_0x540c2c(0x2cd)]]:[];}),_0x3f396a=>_0x51ad38['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x3f396a)));return await _0x6bb2e5[_0x4c4edd(0x2be)](_0x15bed1['id'],{'unitId':_0x199e86,'dashboard':{'id':_0x48eec8,'name':_0x140c0b,'widgetOrder':[],'widgets':{}}})?_0x48eec8:null;},'rename':async(_0xc408f9,_0x5b7cb3,_0xcedf98)=>{const _0x54cd8d=_0x55fddd;let _0x329f5a=_0x35d6a0['getDashboard'](_0xc408f9,_0x5b7cb3);return!!(_0x329f5a&&await _0x6bb2e5[_0x54cd8d(0x2be)](_0x51a517['id'],{'unitId':_0xc408f9,'dashboard':{..._0x329f5a,'name':_0xcedf98}}));},'remove':(_0x147f8c,_0x3159d4)=>_0x6bb2e5[_0x55fddd(0x2be)](_0x56eacd['id'],{'unitId':_0x147f8c,'dashboardId':_0x3159d4})};}function ta(_0x4f225e,_0x52dbd7){const _0x12204f=_0x3447f8;let _0x5b024f=new Set(_0x4f225e),_0x307cf7=_0x5b024f['size']+0x1,_0x255a44=_0x52dbd7(_0x307cf7);for(;_0x5b024f[_0x12204f(0x3a4)](_0x255a44);)_0x307cf7+=0x1,_0x255a44=_0x52dbd7(_0x307cf7);return _0x255a44;}let na=class extends _0x4b5524{constructor(_0x516fc0=hr,_0x51a17f,_0x52efd2){const _0x36d1d6=_0x3447f8;super(),this['_config']=_0x516fc0,this[_0x36d1d6(0x3e5)]=_0x51a17f,this[_0x36d1d6(0x3dc)]=_0x52efd2;let {..._0x20831f}=_0x2b2cf0({},hr,this[_0x36d1d6(0x2ae)]);this['_configService'][_0x36d1d6(0x1ef)](mr,_0x20831f);}[_0x3447f8(0x192)](){const _0x222670=_0x3447f8;this['_injector'][_0x222670(0x1fa)]([kr]),this[_0x222670(0x3e5)]['add']([Gr]),this['_injector'][_0x222670(0x1fa)]([$i]);}['onReady'](){const _0x1cd863=_0x3447f8;_0x3ce29c(this[_0x1cd863(0x3e5)],[[kr],[Gr],[$i]]);}};Pr(na,_0x3447f8(0x1b9),_0x6e7cef['UNIVER_BASE']),Pr(na,_0x3447f8(0x255),_0x3447f8(0x206)),Pr(na,'packageName',fr),Pr(na,'version',pr),na=Or([_0xc92a94(_0x267ea2,_0x12b6ef,_0x2e4e9f,_0x54ced9,_0x100373,_0x442bae),Y(0x1,_0x1e6fb0(_0x49fd9b)),Y(0x2,_0x56e562)],na);function ra(_0x11cddb,_0x118dfe,_0x417cc1,_0x542774){const _0x34b351=_0x3447f8;let _0x1bc0e2={..._0x11cddb};if(_0x118dfe[_0x34b351(0x2f8)]('w')){let _0x22f8b1=_0x11cddb[_0x34b351(0x362)]+_0x11cddb[_0x34b351(0x394)];_0x1bc0e2[_0x34b351(0x362)]=Math[_0x34b351(0x351)](0x0,Math['min'](_0x22f8b1-0x1,_0x11cddb[_0x34b351(0x362)]+_0x417cc1)),_0x1bc0e2[_0x34b351(0x394)]=_0x22f8b1-_0x1bc0e2[_0x34b351(0x362)];}else _0x118dfe[_0x34b351(0x2f8)]('e')&&(_0x1bc0e2['columnSpan']=Math[_0x34b351(0x351)](0x1,Math['min'](_0x25ec11-_0x11cddb[_0x34b351(0x362)],_0x11cddb['columnSpan']+_0x417cc1)));if(_0x118dfe[_0x34b351(0x2f8)]('n')){let _0x47670f=_0x11cddb[_0x34b351(0x2b6)]+_0x11cddb[_0x34b351(0x3ef)];_0x1bc0e2[_0x34b351(0x2b6)]=Math['max'](0x0,Math['min'](_0x47670f-0x1,_0x11cddb[_0x34b351(0x2b6)]+_0x542774)),_0x1bc0e2[_0x34b351(0x3ef)]=_0x47670f-_0x1bc0e2[_0x34b351(0x2b6)];}else _0x118dfe[_0x34b351(0x2f8)]('s')&&(_0x1bc0e2['rowSpan']=Math['max'](0x1,_0x11cddb['rowSpan']+_0x542774));return _0x1bc0e2;}function ia(_0x559764){const _0x5c4c0e=_0x3447f8;let _0x34fd96=Math[_0x5c4c0e(0x351)](0x1,Math[_0x5c4c0e(0x379)](_0x25ec11,Math[_0x5c4c0e(0x323)](_0x559764[_0x5c4c0e(0x394)])));return{'column':Math[_0x5c4c0e(0x351)](0x0,Math[_0x5c4c0e(0x379)](_0x25ec11-_0x34fd96,Math[_0x5c4c0e(0x323)](_0x559764[_0x5c4c0e(0x362)]))),'row':Math[_0x5c4c0e(0x351)](0x0,Math[_0x5c4c0e(0x323)](_0x559764['row'])),'columnSpan':_0x34fd96,'rowSpan':Math['max'](0x1,Math[_0x5c4c0e(0x323)](_0x559764[_0x5c4c0e(0x3ef)]))};}function aa(_0x5300ec,_0x15ab49,_0x2bf1df){const _0xfff008=_0x3447f8;let _0x4df103=new Map(_0x5300ec),_0x617139=ia(_0x2bf1df);_0x4df103[_0xfff008(0xea)](_0x15ab49,_0x617139);let _0x2fe011=[[_0x15ab49,_0x617139]];for(let [_0x2ed6e2,_0x17f225]of _0x4df103){if(_0x2ed6e2===_0x15ab49)continue;let _0x1fc7bd=ia(_0x17f225);for(;_0x2fe011[_0xfff008(0x3c4)](([,_0x2bdcf2])=>sa(_0x1fc7bd,_0x2bdcf2));)_0x1fc7bd={..._0x1fc7bd,'row':_0x1fc7bd[_0xfff008(0x2b6)]+0x1};for(;_0x1fc7bd[_0xfff008(0x2b6)]>0x0;){let _0x27f1ce={..._0x1fc7bd,'row':_0x1fc7bd[_0xfff008(0x2b6)]-0x1};if(_0x2fe011[_0xfff008(0x3c4)](([,_0x2b3818])=>sa(_0x27f1ce,_0x2b3818)))break;_0x1fc7bd=_0x27f1ce;}_0x2fe011[_0xfff008(0xf3)]([_0x2ed6e2,_0x1fc7bd]),_0x4df103[_0xfff008(0xea)](_0x2ed6e2,_0x1fc7bd);}return _0x4df103;}function oa(_0x263b9f,_0x49ff7d,_0x4e49fe,_0x30061c=0x38,_0x51dcb3=0x16){const _0x548740=_0x3447f8;return _0x263b9f<_0x49ff7d+_0x30061c?-Math[_0x548740(0x163)](_0x51dcb3*(0x1-Math[_0x548740(0x351)](0x0,_0x263b9f-_0x49ff7d)/_0x30061c)):_0x263b9f>_0x4e49fe-_0x30061c?Math[_0x548740(0x163)](_0x51dcb3*(0x1-Math[_0x548740(0x351)](0x0,_0x4e49fe-_0x263b9f)/_0x30061c)):0x0;}function sa(_0x54ec54,_0x3bc64b){const _0x1602ea=_0x3447f8;return _0x54ec54[_0x1602ea(0x362)]<_0x3bc64b[_0x1602ea(0x362)]+_0x3bc64b[_0x1602ea(0x394)]&&_0x54ec54[_0x1602ea(0x362)]+_0x54ec54[_0x1602ea(0x394)]>_0x3bc64b[_0x1602ea(0x362)]&&_0x54ec54[_0x1602ea(0x2b6)]<_0x3bc64b[_0x1602ea(0x2b6)]+_0x3bc64b[_0x1602ea(0x3ef)]&&_0x54ec54[_0x1602ea(0x2b6)]+_0x54ec54[_0x1602ea(0x3ef)]>_0x3bc64b[_0x1602ea(0x2b6)];}const ca=[{'direction':'nw','className':_0x3447f8(0x2d5)},{'direction':'n','className':'-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize'},{'direction':'ne','className':_0x3447f8(0x147)},{'direction':'e','className':'-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize'},{'direction':'se','className':_0x3447f8(0x237)},{'direction':'s','className':_0x3447f8(0x3f1)},{'direction':'sw','className':_0x3447f8(0x25e)},{'direction':'w','className':_0x3447f8(0x2d1)}];function la({dashboard:_0x1140e9,dragLabel:_0x58691a,editable:_0x15ebde=!0x0,onLayoutsCommit:_0x46e33b,onSelectWidget:_0x3a4d61,renderWidget:_0x3bd35d,renderWidgetActions:_0x59407a,resizeLabel:_0x39515e,selectedWidgetId:_0x4f0f97,widgetLabel:_0x489fe2}){const _0x81418d=_0x3447f8;let _0x102ce9=_0x4523d4(null),_0x3bbe7e=_0x4523d4(null),[_0x4f5985,_0x4926c3]=_0xee90d5(!0x1),_0x23fa9b=_0x125177(()=>new Map(_0x1140e9[_0x81418d(0x2a6)][_0x81418d(0x30c)](_0xe96b35=>{const _0x3c6706=_0x81418d;let _0x4373ff=_0x1140e9[_0x3c6706(0x311)][_0xe96b35];return _0x4373ff?[[_0xe96b35,_0x4373ff[_0x3c6706(0xe1)]]]:[];})),[_0x1140e9]),[_0x39bb6c,_0x5015ec]=_0xee90d5(_0x23fa9b);_0x543512(()=>{_0x3bbe7e['current']||_0x5015ec(_0x23fa9b);},[_0x23fa9b]),_0x543512(()=>{const _0x3a68b7=_0x81418d;if(!_0x4f5985)return;let _0x53e233=_0x3603b7=>{const _0xb1e12=_0x1596;let _0x5462dc=_0x102ce9[_0xb1e12(0x23e)];if(!_0x5462dc)return null;let _0x1739ee=_0x5462dc[_0xb1e12(0x263)](),_0x25365c=Math[_0xb1e12(0x351)](0x1,(_0x1739ee[_0xb1e12(0x144)]-0x8*(_0x25ec11-0x1))/_0x25ec11),_0x511301=Math[_0xb1e12(0x323)]((_0x5462dc[_0xb1e12(0x406)]-_0x3603b7['startScrollTop'])/(_0x35833c+0x8)),_0x24fd80=Math[_0xb1e12(0x323)]((_0x3603b7[_0xb1e12(0x357)]-_0x3603b7[_0xb1e12(0x209)])/(_0x25365c+0x8)),_0x482bab=Math['round']((_0x3603b7[_0xb1e12(0x1c7)]-_0x3603b7['startY'])/(_0x35833c+0x8))+_0x511301,_0x16323b=_0x3603b7[_0xb1e12(0x272)]==='move'?{..._0x3603b7[_0xb1e12(0x188)],'column':_0x3603b7['initial'][_0xb1e12(0x362)]+_0x24fd80,'row':_0x3603b7[_0xb1e12(0x188)][_0xb1e12(0x2b6)]+_0x482bab}:ra(_0x3603b7[_0xb1e12(0x188)],_0x3603b7[_0xb1e12(0x14c)]??'se',_0x24fd80,_0x482bab),_0x2f2aa1=aa(_0x3603b7['initialLayouts'],_0x3603b7['id'],_0x16323b);return _0x5015ec(_0x2f2aa1),_0x2f2aa1;},_0x6fea5d=_0x273d72=>{const _0x762fe8=_0x1596;let _0x681ffc=_0x3bbe7e[_0x762fe8(0x23e)];if(!_0x681ffc)return;let _0x6fb8d9={..._0x681ffc,'pointerX':_0x273d72[_0x762fe8(0x371)],'pointerY':_0x273d72['clientY']};_0x3bbe7e[_0x762fe8(0x23e)]=_0x6fb8d9;},_0x24695b=()=>{const _0x686dd4=_0x1596;let _0xddaee=_0x3bbe7e[_0x686dd4(0x23e)],_0x11e205=_0xddaee?_0x53e233(_0xddaee):null;_0x3bbe7e[_0x686dd4(0x23e)]=null,_0x4926c3(!0x1),_0x11e205&&_0x46e33b(_0x11e205);},_0x14b1c4=0x0,_0x384a2b=()=>{const _0x142941=_0x1596;let _0x2a3a89=_0x102ce9[_0x142941(0x23e)],_0x31e9c1=_0x3bbe7e[_0x142941(0x23e)];if(_0x2a3a89&&_0x31e9c1){let _0x205a44=_0x2a3a89[_0x142941(0x263)](),_0x26b1ff=oa(_0x31e9c1[_0x142941(0x1c7)],_0x205a44[_0x142941(0x348)],_0x205a44[_0x142941(0x199)]);_0x26b1ff!==0x0&&(_0x2a3a89['scrollTop']+=_0x26b1ff),_0x53e233(_0x31e9c1),_0x14b1c4=requestAnimationFrame(_0x384a2b);}};return _0x14b1c4=requestAnimationFrame(_0x384a2b),window[_0x3a68b7(0x213)](_0x3a68b7(0x16b),_0x6fea5d),window['addEventListener'](_0x3a68b7(0x3f0),_0x24695b),()=>{const _0x41d682=_0x3a68b7;cancelAnimationFrame(_0x14b1c4),window[_0x41d682(0x367)](_0x41d682(0x16b),_0x6fea5d),window[_0x41d682(0x367)](_0x41d682(0x3f0),_0x24695b);};},[_0x4f5985,_0x46e33b]);let _0x4ae9ba=Math[_0x81418d(0x351)](0x8,...Array[_0x81418d(0x3a1)](_0x39bb6c[_0x81418d(0xfd)]())[_0x81418d(0x1ee)](_0x29b584=>_0x29b584[_0x81418d(0x2b6)]+_0x29b584[_0x81418d(0x3ef)])),_0x156601=(_0x366eaa,_0x1f6719,_0x558768,_0x16af83)=>{const _0x26f804=_0x81418d;_0x366eaa[_0x26f804(0x16a)](),_0x366eaa['stopPropagation']();let _0x2d7505=_0x102ce9['current'],_0x46f6e5={'id':_0x1f6719['id'],'mode':_0x558768,'pointerX':_0x366eaa['clientX'],'pointerY':_0x366eaa['clientY'],'startX':_0x366eaa['clientX'],'startY':_0x366eaa['clientY'],'startScrollTop':(_0x2d7505==null?void 0x0:_0x2d7505[_0x26f804(0x406)])??0x0,'initial':_0x39bb6c[_0x26f804(0x15b)](_0x1f6719['id'])??_0x1f6719['layout'],'initialLayouts':new Map(_0x39bb6c),'resizeDirection':_0x16af83};_0x3bbe7e['current']=_0x46f6e5,_0x4926c3(!0x0);};return _0x1fa005(_0x81418d(0x1e8),{'ref':_0x102ce9,'data-dashboard-scroll-container':!0x0,'className':_0x54dbd2('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',_0x2bbb9f),'onClick':_0x15ebde?_0x155d3a=>{const _0x2313fe=_0x81418d;if(!(_0x155d3a[_0x2313fe(0x3ea)]instanceof Node)||!_0x155d3a[_0x2313fe(0x3c3)][_0x2313fe(0x244)](_0x155d3a[_0x2313fe(0x3ea)]))return;let _0x2de61b=_0x155d3a[_0x2313fe(0x3ea)]instanceof Element?_0x155d3a[_0x2313fe(0x3ea)]:_0x155d3a[_0x2313fe(0x3ea)][_0x2313fe(0x2f7)];_0x2de61b!=null&&_0x2de61b[_0x2313fe(0xee)](_0x2313fe(0x187))||_0x3a4d61==null||_0x3a4d61();}:void 0x0,'children':_0x1fa005(_0x81418d(0x1e8),{'data-dashboard-grid':!0x0,'className':_0x81418d(0x3a8),'style':{'gap':0x8,'gridAutoRows':_0x35833c,'minHeight':_0x4ae9ba*(_0x35833c+0x8)},'children':_0x1140e9['widgetOrder'][_0x81418d(0x1ee)](_0x445bd4=>{const _0x16d78e=_0x81418d;var _0x4e93f6;let _0x4f7b44=_0x1140e9[_0x16d78e(0x311)][_0x445bd4],_0x488585=_0x39bb6c[_0x16d78e(0x15b)](_0x445bd4);return!_0x4f7b44||!_0x488585?null:_0x5c238f(_0x16d78e(0x363),{'data-dashboard-widget':_0x4f7b44['id'],'aria-label':_0x4f7b44[_0x16d78e(0x239)]??_0x489fe2(_0x4f7b44),'className':_0x54dbd2(_0x16d78e(0x3f3),_0x4f7b44[_0x16d78e(0x1b9)]===_0x28a714[_0x16d78e(0x341)]||_0x4f7b44[_0x16d78e(0x1b9)]===_0x28a714[_0x16d78e(0x1ca)]?'univer-bg-transparent\x20dark:!univer-bg-transparent':_0x16d78e(0x151),_0x15ebde&&_0x4f0f97===_0x4f7b44['id']?'univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500':_0x16d78e(0x31f)),'style':{'gridColumn':_0x488585[_0x16d78e(0x362)]+0x1+_0x16d78e(0x3f6)+_0x488585[_0x16d78e(0x394)],'gridRow':_0x488585[_0x16d78e(0x2b6)]+0x1+_0x16d78e(0x3f6)+_0x488585['rowSpan']},'tabIndex':_0x15ebde?0x0:void 0x0,'onClick':_0x15ebde?()=>_0x3a4d61==null?void 0x0:_0x3a4d61(_0x4f7b44['id']):void 0x0,'onFocus':_0x15ebde?()=>_0x3a4d61==null?void 0x0:_0x3a4d61(_0x4f7b44['id']):void 0x0,'children':[_0x15ebde&&_0x1fa005('button',{'type':'button','aria-label':_0x58691a,'data-dashboard-drag-handle':_0x4f7b44['id'],'className':_0x54dbd2('univer-pointer-events-none\x20univer-absolute\x20univer-left-1/2\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-h-5\x20univer-w-8\x20-univer-translate-x-1/2\x20univer-appearance-none\x20univer-items-center\x20univer-justify-center\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-400\x20univer-opacity-0\x20univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100',_0x4f5985&&((_0x4e93f6=_0x3bbe7e[_0x16d78e(0x23e)])==null?void 0x0:_0x4e93f6['id'])===_0x4f7b44['id']&&_0x3bbe7e[_0x16d78e(0x23e)][_0x16d78e(0x272)]===_0x16d78e(0xff)?_0x16d78e(0x3d0):_0x16d78e(0xdb)),'onPointerDown':_0x27aca8=>_0x156601(_0x27aca8,_0x4f7b44,_0x16d78e(0xff)),'children':_0x1fa005(_0x229479,{'className':_0x16d78e(0x2e0),'aria-hidden':'true'})}),_0x15ebde&&_0x1fa005(_0x16d78e(0x1e8),{'className':_0x16d78e(0x2df),'children':_0x59407a==null?void 0x0:_0x59407a(_0x4f7b44)}),_0x1fa005(_0x16d78e(0x1e8),{'className':_0x16d78e(0x264),'children':_0x3bd35d(_0x4f7b44)}),_0x15ebde&&ca[_0x16d78e(0x1ee)](({className:_0x3aa5d2,direction:_0x2f0cb7})=>{const _0x29f585=_0x16d78e;let _0x232bf9=_0x2f0cb7[_0x29f585(0x2c8)]===0x2;return _0x1fa005(_0x29f585(0x3b9),{'type':_0x29f585(0x3b9),'aria-label':_0x39515e,'data-dashboard-resize-handle':_0x2f0cb7,'data-dashboard-resize-control':_0x232bf9?_0x2f0cb7:void 0x0,'data-dashboard-resize-edge':_0x232bf9?void 0x0:_0x2f0cb7,'className':_0x54dbd2(_0x29f585(0x36a),_0x232bf9?_0x29f585(0x18c):'univer-border-0\x20univer-bg-transparent',_0x3aa5d2,_0x4f0f97===_0x4f7b44['id']&&_0x29f585(0x389)),'onPointerDown':_0x5cc1b1=>_0x156601(_0x5cc1b1,_0x4f7b44,_0x29f585(0xed),_0x2f0cb7)},_0x2f0cb7);})]},_0x4f7b44['id']);})})});}var ua;const Q={'axis':{..._0x152708,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x540e6b,'heatmap':_0x5badfc,'indicatorLine':_0x252eea,'legend':_0x337e65,'lineAndArea':_0x5e0a33,'pareto':_0x38048e,'pie':_0x1c8b9e,'radar':_0x4bcca4,'relation':{..._0x3de6de,'useValueAsSymbolSize':!0x0},'series':{..._0x324182,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((ua=_0x2ce46e['allSeriesStyle'])==null?void 0x0:ua[_0x3447f8(0x284)])??!0x1}},'style':_0xd40535,'titles':_0x289a2d,'trendline':_0x4c6d30,'waterfall':{..._0x15085e,'useSubtotal':!0x0},'waterfallStyle':_0x3f0564,'wordCloud':_0x145212},da=[_0x44b61b['Line'],_0x44b61b[_0x3447f8(0x35a)],_0x44b61b[_0x3447f8(0x32e)],_0x44b61b[_0x3447f8(0x2ab)],_0x44b61b['Funnel'],_0x44b61b[_0x3447f8(0x108)],_0x44b61b[_0x3447f8(0x327)],_0x44b61b[_0x3447f8(0x27c)],_0x44b61b[_0x3447f8(0x172)],_0x44b61b[_0x3447f8(0x265)],_0x44b61b[_0x3447f8(0xf7)],_0x44b61b[_0x3447f8(0x1f8)],_0x44b61b[_0x3447f8(0x1e2)],_0x44b61b['Gauge'],_0x44b61b[_0x3447f8(0x2de)]];function fa(_0x36dd43){const _0x4242b3=_0x3447f8;let {config:_0x5c0f55,onChange:_0x545604,runtime:_0x407b57,tableName:_0x192c96}=_0x36dd43,_0x5b6361=_0x53af8d(Gr),_0x1a27e0=_0x53af8d(_0x255457),[_0x25cf48,_0xda7743]=_0xee90d5(_0x2599aa[_0x4242b3(0x2aa)]),_0x730d61=_0x125177(()=>new _0x3832ea(_0x407b57[_0x4242b3(0x2c4)],{'commit':_0x1339b2=>{const _0x101d2e=_0x4242b3;var _0x2360e7;let _0x582a59=_0x407b57[_0x101d2e(0x2c4)],_0x1b106e=_0x3fd4b5(_0x1339b2,{'series':(_0x2360e7=_0x582a59[_0x101d2e(0x2b0)])==null?void 0x0:_0x2360e7[_0x101d2e(0x283)],'currentChartType':_0x582a59[_0x101d2e(0x13e)],'currentStyle':_0x582a59[_0x101d2e(0xc1)],'currentContext':_0x582a59[_0x101d2e(0x1e3)],'currentDataAggregation':_0x582a59[_0x101d2e(0x219)]});_0x545604({'chart':pa(_0x5c0f55[_0x101d2e(0x1eb)],_0x1b106e)});}}),[_0x5c0f55['chart'],_0x545604,_0x407b57]),_0x1f2d9d=_0x125177(()=>_0x4fc7e8(_0x1016f1[_0x4242b3(0x1ee)](_0x1977eb=>({..._0x1977eb,'label':_0x1a27e0['t'](_a(_0x1977eb[_0x4242b3(0x2ad)]))}))),[_0x1a27e0]);return _0x1fa005(_0x4bde66,{'chartUIService':_0x5b6361,'hostAdapter':_0x730d61,'children':_0x5c238f(_0x4242b3(0x1e8),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x1fa005(_0x283559,{'ariaLabel':_0x1a27e0['t'](_0x4242b3(0x207)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x1a27e0['t'](_0x4242b3(0x169)),'panelId':_0x4242b3(0x1dc),'value':_0x2599aa[_0x4242b3(0x2aa)]},{'label':_0x1a27e0['t'](_0x4242b3(0x2e7)),'panelId':_0x4242b3(0x243),'value':_0x2599aa[_0x4242b3(0x33f)]}],'value':_0x25cf48,'onChange':_0xda7743}),_0x25cf48===_0x2599aa[_0x4242b3(0x2aa)]?_0x1fa005(_0x2a9829,{'id':_0x4242b3(0x1dc),'label':_0x1a27e0['t'](_0x4242b3(0x169)),'children':_0x5c238f('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x1fa005(_0x28e1f3,{'options':_0x1f2d9d}),_0x1fa005(_0x2fc38a,{}),_0x1fa005(_0x57f87a,{}),_0x1fa005(ma,{}),_0x1fa005(_0x2fa3d3,{}),_0x5c238f(_0x4242b3(0x1e8),{'children':[_0x1fa005(_0x36a7b3,{'title':_0x1a27e0['t'](_0x4242b3(0x1ed))}),_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':_0x192c96})]}),_0x1fa005(_0x3a6df3,{'orientationControl':_0x1fa005(_0x10d589,{'size':_0x4242b3(0x11d),'onClick':()=>_0x545604({'chart':{..._0x5c0f55[_0x4242b3(0x1eb)],'orient':_0x5c0f55[_0x4242b3(0x1eb)]['orient']===_0x4242b3(0x2b6)?_0x4242b3(0x362):_0x4242b3(0x2b6)}}),'children':_0x1a27e0['t']('bases-dashboard-ui.chart.common.switchRowColumn')})}),_0x1fa005(_0x20436f,{}),_0x1fa005(_0x4b136e,{'defaultValues':Q[_0x4242b3(0x28e)]}),_0x5c238f(_0x4242b3(0x1e8),{'children':[_0x1fa005(_0x36a7b3,{'title':_0x1a27e0['t']('bases-dashboard-ui.pivot.display')}),_0x1fa005(_0x4b13fc,{'value':_0x5c0f55[_0x4242b3(0x2f2)],'options':[{'value':_0x4242b3(0xf9),'label':_0x1a27e0['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':_0x4242b3(0x1eb),'label':_0x1a27e0['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':_0x4242b3(0x173),'label':_0x1a27e0['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0xa09d39=>{const _0x314da7=_0x4242b3;(_0xa09d39===_0x314da7(0xf9)||_0xa09d39==='chart'||_0xa09d39===_0x314da7(0x173))&&_0x545604({'displayMode':_0xa09d39});}})]})]})}):_0x1fa005(_0x2a9829,{'id':_0x4242b3(0x243),'label':_0x1a27e0['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x1fa005(ha,{})})]})});}function pa(_0x10190f,_0x28156c){const _0x49ea92=_0x3447f8;return{..._0x10190f,'type':_0x28156c[_0x49ea92(0x13e)]??_0x10190f['type'],'style':_0x28156c['style']??_0x10190f[_0x49ea92(0xc1)],'context':_0x28156c['context']??_0x10190f['context'],'dataAggregation':_0x28156c[_0x49ea92(0x219)]??_0x10190f[_0x49ea92(0x219)]};}function ma(){const _0x1050b7=_0x3447f8;let _0x10d189=_0x3d34ba();return _0x1fa005(_0x5103da,{'visible':da[_0x1050b7(0xf2)](_0x39edc1=>!_0x51a8fc[_0x1050b7(0x275)](_0x10d189,_0x39edc1))});}function $(_0x1c06cf){const _0x115ab1=_0x3447f8;return _0x5c238f(_0x8a2ccf,{'id':_0x1c06cf['id'],'children':[_0x1fa005(_0x32883f,{'children':_0x1c06cf[_0x115ab1(0x24a)]}),_0x1fa005(_0x3206aa,{'children':_0x1c06cf['children']})]});}function ha(){const _0x4bde95=_0x3447f8;let _0x305a44=_0x53af8d(_0x255457),_0x18d6be=_0x3d34ba(),_0x28c862=_0x20bafb(),[_0x1f22cc,_0xdeb400]=_0xee90d5(null),_0x15ea75=_0x51a8fc[_0x4bde95(0x275)](_0x18d6be,_0x44b61b[_0x4bde95(0x157)]),_0x364459=_0x18d6be===_0x44b61b[_0x4bde95(0x35a)],_0x1c2aeb=_0x18d6be===_0x44b61b[_0x4bde95(0x32e)],_0x2644ce=_0x18d6be===_0x44b61b[_0x4bde95(0x23c)],_0x6cb5be=_0x51a8fc['baseOn'](_0x18d6be,_0x44b61b['Bubble']),_0x253f25=_0x18d6be===_0x44b61b[_0x4bde95(0x108)],_0x3ce87f=_0x18d6be===_0x44b61b[_0x4bde95(0x3cb)],_0x101ba7=_0x18d6be===_0x44b61b['Pareto'],_0x6c049e=_0x18d6be===_0x44b61b[_0x4bde95(0x27c)],_0x3265e2=_0xe0cb49(_0x18d6be,_0x44db8c[_0x4bde95(0x27f)])&&!_0x6cb5be&&!_0x101ba7,_0x5f52b=ga(_0x18d6be,_0x305a44);return _0x5c238f(_0x11d43d,{'value':_0x1f22cc,'onChange':_0xdeb400,'children':[_0x1fa005($,{'id':_0x2ecbeb['ChartStyle'],'label':_0x305a44['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0x1fa005(_0x20d08d,{'defaultValues':Q[_0x4bde95(0xc1)]})}),_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x2ea)],'label':_0x305a44['t']('bases-dashboard-ui.chart.common.chartAndAxisTitles'),'children':_0x1fa005(_0x245340,{'commitMode':_0x4bde95(0x303),'defaultValues':Q[_0x4bde95(0xbb)]})}),_0x3265e2&&_0x1fa005($,{'id':_0x2ecbeb['Series'],'label':_0x305a44['t'](_0x4bde95(0x21b)),'children':_0x1fa005(_0x33c14c,{'defaultValues':Q[_0x4bde95(0x283)],'NumberFormatField':_0x3220da})}),_0x3ce87f&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x216)],'label':_0x305a44['t'](_0x4bde95(0x3ce)),'children':_0x1fa005(_0x166174,{'defaultValues':Q['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x105ada,target:_0x14fb1d})=>_0x14fb1d===_0x1aea73[_0x4bde95(0x293)]?_0x305a44['t'](_0x4bde95(0x236)):_0x105ada?_0x105ada+'-('+_0x305a44['t']('bases-dashboard-ui.chart.'+(_0x14fb1d===_0x1aea73['Positive']?_0x4bde95(0x38c):'waterfall.negative'))+')':'','NumberFormatField':_0x3220da})}),_0x101ba7&&_0x5c238f(_0x594ef8,{'children':[_0x1fa005($,{'id':_0x2ecbeb['ParetoBarSeries'],'label':_0x305a44['t']('bases-dashboard-ui.chart.section.paretoBar'),'children':_0x1fa005(_0x44a0fb,{'defaultValues':Q[_0x4bde95(0x189)],'NumberFormatField':_0x3220da,'showDataPointEditor':!0x0,'target':_0x4bde95(0xc3)})}),_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x32a)],'label':_0x305a44['t'](_0x4bde95(0x31e)),'children':_0x1fa005(_0x44a0fb,{'defaultValues':Q[_0x4bde95(0x189)],'NumberFormatField':_0x3220da,'showDataPointEditor':!0x1,'target':_0x4bde95(0x3e8)})})]}),_0x15ea75&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x1ce)],'label':_0x305a44['t'](_0x4bde95(0x2e3)),'children':_0x1fa005(_0x4b289c,{'defaultValues':Q[_0x4bde95(0x3f5)],'NumberFormatField':_0x3220da})}),_0x1c2aeb&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x32e)],'label':_0x305a44['t'](_0x4bde95(0xf0)),'children':_0x1fa005(_0x13d7d7,{'defaultValues':Q[_0x4bde95(0x3c0)]})}),_0x364459&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x35a)],'label':_0x305a44['t'](_0x4bde95(0x1cd)),'children':_0x1fa005(_0x1d9e1f,{'defaultValues':Q['radar']})}),_0x2644ce&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x23c)],'label':_0x305a44['t'](_0x4bde95(0x10b)),'children':_0x1fa005(_0x7de25d,{'defaultValues':Q[_0x4bde95(0x306)],'gapControl':_0x4bde95(0x329)})}),_0x6c049e&&_0x1fa005($,{'id':_0x2ecbeb['Heatmap'],'label':_0x305a44['t'](_0x4bde95(0x217)),'children':_0x1fa005(_0x51ee3a,{'defaultValues':Q['heatmap']})}),_0x253f25&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x108)],'label':_0x305a44['t'](_0x4bde95(0x331)),'children':_0x1fa005(_0xa63c30,{'defaultValues':Q[_0x4bde95(0x37d)]})}),_0x2aabdc(_0x18d6be)&&_0x1fa005($,{'id':_0x2ecbeb['LineAndArea'],'label':_0x305a44['t'](_0x4bde95(0x328)),'children':_0x1fa005(_0x171453,{'defaultValues':Q[_0x4bde95(0x133)],'lineStyleControl':_0x4bde95(0x2db)})}),_0xe0cb49(_0x18d6be,_0x44db8c[_0x4bde95(0x2fa)])&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x2fa)],'label':_0x305a44['t'](_0x4bde95(0x2ca)),'children':_0x1fa005(_0x4d3419,{'defaultValues':Q[_0x4bde95(0x3c8)]})}),_0xe0cb49(_0x18d6be,_0x44db8c['Axes'])&&_0x5c238f(_0x594ef8,{'children':[_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x2e4)],'label':_0x305a44['t'](_0x4bde95(0x287)),'children':_0x1fa005(_0x3ee0e8,{'axis':'x','defaultValues':Q[_0x4bde95(0x288)],'NumberFormatField':_0x3220da})}),_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x3d3)],'label':_0x305a44['t']('bases-dashboard-ui.chart.common.verticalAxis'),'children':_0x1fa005(_0x3ee0e8,{'axis':'y','defaultValues':Q[_0x4bde95(0x288)],'NumberFormatField':_0x3220da})}),_0x28c862&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x180)],'label':_0x305a44['t']('bases-dashboard-ui.chart.common.rightVerticalAxis'),'children':_0x1fa005(_0x3ee0e8,{'axis':_0x4bde95(0x307),'defaultValues':Q[_0x4bde95(0x288)],'NumberFormatField':_0x3220da})}),_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x3b7)],'label':_0x305a44['t']('bases-dashboard-ui.chart.section.gridlinesAndTicks'),'children':_0x1fa005(_0x3fd0a7,{'defaultValues':Q[_0x4bde95(0x288)]})})]}),_0xe0cb49(_0x18d6be,_0x44db8c[_0x4bde95(0x409)])&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x409)],'label':_0x305a44['t'](_0x4bde95(0x220)),'children':_0x1fa005(_0x566467,{'defaultValues':Q[_0x4bde95(0x140)]})}),_0x5b26be(_0x18d6be)&&_0x1fa005($,{'id':_0x2ecbeb[_0x4bde95(0x194)],'label':_0x305a44['t'](_0x4bde95(0x1c3)),'children':_0x1fa005(_0x3c2f68,{'defaultValues':Q[_0x4bde95(0x230)]})}),_0x5f52b&&_0x1fa005($,{'id':_0x5f52b['id'],'label':_0x5f52b['label'],'children':_0x1fa005(_0x2412a5,{})})]});}function ga(_0x400fbf,_0x1557ab){const _0x56b211=_0x3447f8;let _0x572f5c={[_0x44b61b[_0x56b211(0x265)]]:{'id':_0x2ecbeb[_0x56b211(0x265)],'localeKey':_0x56b211(0x267)},[_0x44b61b[_0x56b211(0xf7)]]:{'id':_0x2ecbeb[_0x56b211(0xf7)],'localeKey':'bases-dashboard-ui.chart.section.histogram'},[_0x44b61b[_0x56b211(0x1f8)]]:{'id':_0x2ecbeb[_0x56b211(0x1f8)],'localeKey':_0x56b211(0x2a9)},[_0x44b61b[_0x56b211(0x1e2)]]:{'id':_0x2ecbeb[_0x56b211(0x1e2)],'localeKey':_0x56b211(0x205)},[_0x44b61b[_0x56b211(0x37b)]]:{'id':_0x2ecbeb['Gauge'],'localeKey':_0x56b211(0x305)},[_0x44b61b[_0x56b211(0x2de)]]:{'id':_0x2ecbeb[_0x56b211(0x2de)],'localeKey':_0x56b211(0x354)}}[_0x400fbf];return _0x572f5c?{'id':_0x572f5c['id'],'label':_0x1557ab['t'](_0x572f5c[_0x56b211(0x139)])}:null;}function _a(_0x56985a){const _0x5234db=_0x3447f8;return _0x5234db(0x148)+_0x56985a;}function va({onChange:_0x79863b,onEditData:_0x10b17c,runtime:_0x1867cf,sourceChart:_0x49da74,sourceName:_0x4dce09,widget:_0x265da0}){const _0x3ec2dc=_0x3447f8;let _0x5d295a=_0x53af8d(Gr),_0x301fb9=_0x53af8d(_0x255457),[_0x5c7620,_0x2a47ca]=_0xee90d5(_0x2599aa[_0x3ec2dc(0x2aa)]),_0x58f702=_0x265da0[_0x3ec2dc(0x1eb)]??_0x49da74,_0x108349=_0x125177(()=>new _0x3832ea(_0x1867cf['model'],{'commit':_0x395810=>{const _0xfb41f7=_0x3ec2dc;var _0x1c0a82;let _0x22f5a9=_0x1867cf['model'],_0x302f02=_0x3fd4b5(_0x395810,{'series':(_0x1c0a82=_0x22f5a9['config'])==null?void 0x0:_0x1c0a82['series'],'currentChartType':_0x22f5a9[_0xfb41f7(0x13e)],'currentStyle':_0x22f5a9[_0xfb41f7(0xc1)],'currentContext':_0x22f5a9[_0xfb41f7(0x1e3)],'currentDataAggregation':_0x22f5a9[_0xfb41f7(0x219)]});_0x79863b({..._0x265da0,'chart':pa(_0x58f702,_0x302f02)})[_0xfb41f7(0x308)](()=>void 0x0);}}),[_0x58f702,_0x79863b,_0x1867cf,_0x265da0]),_0x1c83f5=_0x125177(()=>_0x4fc7e8(_0x1016f1[_0x3ec2dc(0x1ee)](_0x185402=>({..._0x185402,'label':_0x301fb9['t'](ya(_0x185402['labelId']))}))),[_0x301fb9]);return _0x1fa005(_0x4bde66,{'chartUIService':_0x5d295a,'hostAdapter':_0x108349,'children':_0x5c238f(_0x3ec2dc(0x1e8),{'data-dashboard-chart-inspector':!0x0,'className':_0x3ec2dc(0x1bd),'children':[_0x1fa005(_0x283559,{'ariaLabel':_0x301fb9['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x3ec2dc(0x302),'items':[{'label':_0x301fb9['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0x3ec2dc(0x318),'value':_0x2599aa[_0x3ec2dc(0x2aa)]},{'label':_0x301fb9['t'](_0x3ec2dc(0x2e7)),'panelId':_0x3ec2dc(0x321),'value':_0x2599aa[_0x3ec2dc(0x33f)]}],'value':_0x5c7620,'onChange':_0x2a47ca}),_0x5c7620===_0x2599aa[_0x3ec2dc(0x2aa)]?_0x1fa005(_0x2a9829,{'id':_0x3ec2dc(0x318),'label':_0x301fb9['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x5c238f('div',{'className':_0x3ec2dc(0x228),'children':[_0x1fa005(_0x28e1f3,{'options':_0x1c83f5}),_0x1fa005(_0x2fc38a,{}),_0x1fa005(_0x57f87a,{}),_0x1fa005(ma,{}),_0x1fa005(_0x2fa3d3,{}),_0x5c238f(_0x3ec2dc(0x1e8),{'children':[_0x1fa005(_0x36a7b3,{'title':_0x301fb9['t'](_0x3ec2dc(0x368))}),_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':_0x4dce09}),_0x1fa005(_0x10d589,{'className':_0x3ec2dc(0x32d),'onClick':_0x10b17c,'children':_0x301fb9['t'](_0x3ec2dc(0xe5))})]})]})}):_0x1fa005(_0x2a9829,{'id':_0x3ec2dc(0x321),'label':_0x301fb9['t'](_0x3ec2dc(0x2e7)),'children':_0x1fa005(ha,{})})]})});}function ya(_0x51d5d4){const _0x58df55=_0x3447f8;return _0x58df55(0x148)+_0x51d5d4;}const ba=[_0x3447f8(0x20a),'number',_0x3447f8(0x277),_0x3447f8(0x39b),'grouped',_0x3447f8(0x3da)];function xa({base:_0x5ccd70,onChange:_0x3c5f73,onSelectBackgroundImage:_0x18ee2b,widget:_0x5af833}){const _0x42c392=_0x3447f8;var _0x5eb1fd;let _0x36b4ce=_0x53af8d(_0x255457),_0x3800a3=_0x53af8d(_0x22d94c),_0x4fc3a1=_0x129d28(()=>_0x3800a3[_0x42c392(0x14a)],_0x3800a3[_0x42c392(0x11c)](),!0x1,[_0x3800a3]),_0x53f8a7=_0x129d28(()=>_0x3800a3['darkMode$'],_0x3800a3[_0x42c392(0x247)],!0x1,[_0x3800a3]),[_0x340c35,_0x355768]=_0xee90d5('data'),[_0x199e52,_0x38117c]=_0xee90d5(!0x1),_0x201447=xr(_0x5af833),_0x5e9bdb=_0x5ccd70[_0x42c392(0x3b6)]()[_0x42c392(0x186)][_0x5af833[_0x42c392(0x154)]],_0xb57d61=_0x5e9bdb==null?void 0x0:_0x5e9bdb[_0x42c392(0x286)][_0x42c392(0x2c9)](_0x2672a3=>_0x5e9bdb[_0x42c392(0x2dc)][_0x2672a3]),_0x1aaae2=_0xb57d61?_0x5e9bdb==null?void 0x0:_0x5e9bdb['views'][_0xb57d61]:void 0x0,_0x143220=_0x5e9bdb&&_0x1aaae2?_0x11a6ff(_0x5ccd70[_0x42c392(0x3b6)](),_0x5e9bdb,_0x1aaae2)[_0x42c392(0x1ee)](_0x55691b=>({..._0x55691b,'current':!0x1})):[],_0x4f24fc=((_0x5eb1fd=_0x5af833['shapeData']['formulaBinding'])==null?void 0x0:_0x5eb1fd[_0x42c392(0x392)])??'',_0x59dd5d=_0x58fab2=>_0x3c5f73(Sr(_0x5af833,_0x58fab2))[_0x42c392(0x308)](()=>void 0x0),_0x47668b=_0x2618f1=>_0x3c5f73({..._0x5af833,'description':_0x2618f1})[_0x42c392(0x308)](()=>void 0x0);return _0x5c238f('div',{'data-dashboard-formula-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x1fa005(_0x1eff91,{'className':'univer-m-3','items':[{'value':_0x42c392(0x279),'label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.data')},{'value':_0x42c392(0xc1),'label':_0x36b4ce['t'](_0x42c392(0xf1))}],'value':_0x340c35,'onChange':_0x355768}),_0x1fa005(_0x42c392(0x1e8),{'className':_0x42c392(0x105),'children':_0x340c35===_0x42c392(0x279)?_0x5c238f(_0x42c392(0x1e8),{'className':_0x42c392(0x1a8),'children':[_0x1fa005(Sa,{'label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.description'),'children':_0x1fa005(_0x2647d7,{'value':_0x5af833[_0x42c392(0x36b)]??_0x5af833[_0x42c392(0x239)]??'','onChange':_0x47668b,'onBlur':_0x5b5421=>_0x47668b(_0x5b5421[_0x42c392(0x3ea)][_0x42c392(0x2c2)])})}),_0x1fa005(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x368)),'children':_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':(_0x5e9bdb==null?void 0x0:_0x5e9bdb[_0x42c392(0x2cd)])??_0x36b4ce['t'](_0x42c392(0xe2))})}),_0x5c238f(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x257)),'children':[_0x1fa005(_0x2647d7,{'disabled':!0x0,'value':_0x3ae876(_0x4f24fc,_0x143220)}),_0x1fa005(_0x10d589,{'className':_0x42c392(0x32d),'onClick':()=>_0x38117c(!0x0),'children':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.editFormula')})]})]}):_0x5c238f(_0x42c392(0x1e8),{'className':_0x42c392(0x1a8),'children':[_0x1fa005(_0x2d27c8,{'emptyLabel':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x36b4ce['t'](_0x42c392(0x19f)),'pickerFallbackValue':_0x53f8a7?_0x4fc3a1[_0x42c392(0x3fe)][0x384]:_0x4fc3a1[_0x42c392(0x3fe)][0x0],'resetLabel':_0x36b4ce['t'](_0x42c392(0x1e0)),'value':_0x201447[_0x42c392(0x134)]??null,'onChange':_0x259e62=>_0x59dd5d({'backgroundColor':_0x259e62??void 0x0})}),_0x5c238f(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x22e)),'children':[_0x5c238f(_0x42c392(0x1e8),{'className':_0x42c392(0x3d4),'children':[_0x5c238f(_0x10d589,{'className':_0x42c392(0x1cc),'onClick':()=>{const _0x5d51c7=_0x42c392;_0x18ee2b()[_0x5d51c7(0x401)](_0x57fea8=>{const _0x23eaf4=_0x5d51c7;if(_0x57fea8){var _0x2065ab;return _0x59dd5d({'backgroundImage':{..._0x57fea8,'fit':((_0x2065ab=_0x201447[_0x23eaf4(0x294)])==null?void 0x0:_0x2065ab['fit'])??'cover'}});}})[_0x5d51c7(0x308)](()=>void 0x0);},'children':[_0x1fa005(_0x34ddb8,{}),_0x201447[_0x42c392(0x294)]?_0x36b4ce['t'](_0x42c392(0x3fd)):_0x36b4ce['t'](_0x42c392(0x3df))]}),_0x201447[_0x42c392(0x294)]&&_0x1fa005(_0x10d589,{'aria-label':_0x36b4ce['t'](_0x42c392(0x153)),'title':_0x36b4ce['t'](_0x42c392(0x153)),'onClick':()=>_0x59dd5d({'backgroundImage':void 0x0}),'children':_0x1fa005(_0x306b68,{})})]}),_0x201447[_0x42c392(0x294)]&&_0x1fa005(_0x1eff91,{'className':_0x42c392(0x111),'items':[{'value':_0x42c392(0x285),'label':_0x36b4ce['t'](_0x42c392(0x1ad))},{'value':'contain','label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.contain')}],'value':_0x201447[_0x42c392(0x294)][_0x42c392(0x160)],'onChange':_0x5a0194=>_0x59dd5d({'backgroundImage':_0x201447[_0x42c392(0x294)]?{..._0x201447[_0x42c392(0x294)],'fit':_0x5a0194}:void 0x0})})]}),_0x1fa005(_0x2d27c8,{'emptyLabel':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x36b4ce['t'](_0x42c392(0x26d)),'pickerFallbackValue':_0x53f8a7?_0x4fc3a1[_0x42c392(0x3fe)][0x32]:_0x4fc3a1['gray'][0x3e8],'resetLabel':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x201447[_0x42c392(0xef)]??null,'onChange':_0x2d740e=>_0x59dd5d({'textColor':_0x2d740e??void 0x0})}),_0x1fa005(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x349)),'children':_0x1fa005(_0x1eff91,{'items':[{'value':_0x42c392(0x1b4),'label':_0x36b4ce['t'](_0x42c392(0x165))},{'value':_0x42c392(0x1e4),'label':_0x36b4ce['t'](_0x42c392(0x22d))},{'value':_0x42c392(0x314),'label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x201447[_0x42c392(0x218)],'onChange':_0x3cadde=>_0x59dd5d({'alignment':_0x3cadde})})}),_0x5c238f(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x3c5)),'children':[_0x1fa005(_0x1eff91,{'items':[{'value':'auto','label':_0x36b4ce['t'](_0x42c392(0x162))},{'value':_0x42c392(0x1b1),'label':_0x36b4ce['t'](_0x42c392(0x3d5))}],'value':_0x201447[_0x42c392(0x38a)],'onChange':_0x495cbf=>_0x59dd5d({'fontSizeMode':_0x495cbf})}),_0x201447[_0x42c392(0x38a)]==='custom'&&_0x1fa005(_0x499d19,{'className':'univer-mt-2','min':0xc,'max':0x78,'value':_0x201447['fontSize'],'onChange':_0x1f8e27=>_0x59dd5d({'fontSize':_0x1f8e27??0x28,'fontSizeMode':'custom'})})]}),_0x1fa005(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x20c)),'children':_0x1fa005(_0x4b13fc,{'value':_0x201447[_0x42c392(0x235)],'options':[{'value':'general','label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.general')},{'value':_0x42c392(0x30d),'label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.number')},{'value':_0x42c392(0x277),'label':_0x36b4ce['t'](_0x42c392(0x260))},{'value':'currency','label':_0x36b4ce['t'](_0x42c392(0x193))},{'value':'grouped','label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':_0x42c392(0x3da),'label':_0x36b4ce['t'](_0x42c392(0x32b))}],'onChange':_0x37bd2b=>{const _0x4a3b47=_0x42c392;let _0x36abd8=ba[_0x4a3b47(0x2c9)](_0x1b819f=>_0x1b819f===_0x37bd2b);_0x36abd8&&_0x59dd5d({'numberFormat':_0x36abd8});}})}),_0x201447[_0x42c392(0x235)]===_0x42c392(0x39b)&&_0x1fa005(Sa,{'label':_0x36b4ce['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x1fa005(_0x2647d7,{'value':_0x201447[_0x42c392(0x39b)],'onChange':_0x570e92=>_0x59dd5d({'currency':_0x570e92[_0x42c392(0x121)](0x0,0x3)[_0x42c392(0x390)]()})})}),_0x201447['numberFormat']!=='general'&&_0x1fa005(Sa,{'label':_0x36b4ce['t'](_0x42c392(0x12c)),'children':_0x1fa005(_0x499d19,{'min':0x0,'max':0x8,'value':_0x201447['decimalPlaces'],'onChange':_0x10bed3=>_0x59dd5d({'decimalPlaces':_0x10bed3??0x0})})})]})}),_0x199e52&&_0x1fa005(_0x1ab529,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1fa005(_0x1d7a56,{'tables':_0x143220,'formula':_0x3ae876(_0x4f24fc,_0x143220),'onCancel':()=>_0x38117c(!0x1),'onSave':_0x4a8961=>{const _0x29c9ed=_0x42c392;let _0x1de046=_0x5af833[_0x29c9ed(0x100)][_0x29c9ed(0x23f)]??{'formula':''};return _0x3c5f73({..._0x5af833,'shapeData':{..._0x5af833[_0x29c9ed(0x100)],'formulaBinding':{..._0x1de046,'formula':_0x3949ea(_0x4a8961,_0x143220)}}})[_0x29c9ed(0x401)](()=>_0x38117c(!0x1))['catch'](()=>void 0x0);}})})]});}function Sa({children:_0x186c59,label:_0x1a790b}){const _0x16f007=_0x3447f8;return _0x5c238f(_0x16f007(0x1e8),{'role':_0x16f007(0x21e),'aria-label':_0x1a790b,'className':_0x16f007(0x393),'children':[_0x1fa005('span',{'children':_0x1a790b}),_0x186c59]});}const Ca={[_0x411cb8['IS']]:_0x3447f8(0x1e1),[_0x411cb8[_0x3447f8(0x3b0)]]:_0x3447f8(0x11e),[_0x411cb8[_0x3447f8(0x269)]]:_0x3447f8(0x254),[_0x411cb8[_0x3447f8(0x2e2)]]:'bases-dashboard-ui.operators.notContains',[_0x411cb8[_0x3447f8(0x34e)]]:_0x3447f8(0x356),[_0x411cb8[_0x3447f8(0x3c7)]]:_0x3447f8(0x34a),[_0x411cb8[_0x3447f8(0x16e)]]:_0x3447f8(0x2ed),[_0x411cb8['GREATER_THAN_OR_EQUAL']]:_0x3447f8(0x1fd),[_0x411cb8[_0x3447f8(0x249)]]:_0x3447f8(0x402),[_0x411cb8[_0x3447f8(0x1d0)]]:'bases-dashboard-ui.operators.lessThanOrEqual',[_0x411cb8[_0x3447f8(0x26e)]]:_0x3447f8(0x1e7),[_0x411cb8[_0x3447f8(0x24c)]]:_0x3447f8(0xd4)};function wa({disabled:_0x4beb41,fields:_0x32d639,filter:_0x244ebb,onChange:_0x518356}){const _0x5dee62=_0x3447f8;let _0x5026ff=_0x53af8d(_0x255457),_0x4b4523=(_0x244ebb==null?void 0x0:_0x244ebb[_0x5dee62(0x1da)])??[];return _0x4b4523['length']?_0x1fa005(_0x5dee62(0x1e8),{'className':_0x5dee62(0x115),'children':_0x4b4523['map']((_0x3eab71,_0x610825)=>{const _0xd39a80=_0x5dee62;let _0x9d315f=_0x32d639[_0xd39a80(0x2c9)](_0x23e2ce=>_0x23e2ce['id']===_0x3eab71['fieldId']);return _0x5c238f(_0xd39a80(0x1e8),{'className':_0xd39a80(0x1b6),'children':[_0x5c238f(_0xd39a80(0x1e8),{'className':_0xd39a80(0xd5),'children':[_0x1fa005(_0xd39a80(0x40a),{'className':_0xd39a80(0x124),'children':(_0x9d315f==null?void 0x0:_0x9d315f[_0xd39a80(0x2cd)])??_0x3eab71[_0xd39a80(0x1e5)]}),_0x1fa005('span',{'className':_0xd39a80(0x1f6),'children':_0x5026ff['t'](Ca[_0x3eab71['operator']])})]}),Ma(_0x3eab71['operator'])&&_0x1fa005(Ea,{'disabled':_0x4beb41,'field':_0x9d315f,'value':_0x3eab71['operand'],'onChange':_0x2ed01d=>_0x518356(ka(_0x244ebb,_0x610825,{'operand':_0x2ed01d}))})]},Fa(_0x4b4523,_0x3eab71,_0x610825));})}):_0x5c238f(_0x5dee62(0x1e8),{'className':'univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','children':[_0x1fa005(_0x48629d,{'className':'univer-mx-auto\x20univer-size-6'}),_0x1fa005(_0x5dee62(0x40a),{'className':'univer-text-sm','children':_0x5026ff['t'](_0x5dee62(0x253))})]});}function Ta({fields:_0x34303e,filter:_0x226ffd,onChange:_0x5e01c4,onClear:_0x5e4d78}){const _0x3eabcd=_0x3447f8;let _0x534e75=_0x53af8d(_0x255457),_0x3024b1=(_0x226ffd==null?void 0x0:_0x226ffd[_0x3eabcd(0x1da)])??[];return _0x5c238f(_0x3eabcd(0x1e8),{'data-dashboard-filter-inspector':!0x0,'className':_0x3eabcd(0x248),'children':[_0x3024b1[_0x3eabcd(0x1ee)]((_0x17dc86,_0x57a7b0)=>{const _0x261746=_0x3eabcd;let _0x4966a2=_0x34303e['find'](_0x36f84b=>_0x36f84b['id']===_0x17dc86[_0x261746(0x1e5)])??_0x34303e[0x0],_0x245349=Aa(_0x4966a2);return _0x5c238f(_0x261746(0x336),{'className':_0x261746(0x313),'children':[_0x5c238f(_0x261746(0x1e8),{'className':_0x261746(0x1d4),'children':[_0x1fa005(_0x4b13fc,{'value':_0x17dc86[_0x261746(0x1e5)],'options':_0x34303e[_0x261746(0x1ee)](_0xc9799a=>({'value':_0xc9799a['id'],'label':_0xc9799a[_0x261746(0x2cd)]})),'onChange':_0x4966c0=>{let _0x13c455=_0x34303e['find'](_0x4914aa=>_0x4914aa['id']===_0x4966c0);if(!_0x13c455)return;let _0x2d48c7=Aa(_0x13c455)[0x0];_0x5e01c4(ka(_0x226ffd,_0x57a7b0,Oa(_0x13c455,_0x2d48c7)));}}),_0x1fa005(_0x10d589,{'type':_0x261746(0x3b9),'variant':_0x261746(0x3ca),'aria-label':_0x534e75['t'](_0x261746(0x2da)),'className':_0x261746(0x3b2),'onClick':()=>_0x5e01c4(Da(_0x226ffd,_0x3024b1['filter']((_0x5f2b2f,_0x450624)=>_0x450624!==_0x57a7b0))),'children':_0x1fa005(_0x54b54f,{})})]}),_0x1fa005(_0x4b13fc,{'value':_0x17dc86[_0x261746(0x17b)],'options':_0x245349[_0x261746(0x1ee)](_0x212f80=>({'value':_0x212f80,'label':_0x534e75['t'](Ca[_0x212f80])})),'onChange':_0x4479b2=>{let _0x5397f4=_0x245349['find'](_0x23b817=>_0x23b817===_0x4479b2);_0x5397f4&&_0x5e01c4(ka(_0x226ffd,_0x57a7b0,{'operator':_0x5397f4,'operand':ja(_0x4966a2)}));}}),Ma(_0x17dc86[_0x261746(0x17b)])&&_0x1fa005(Ea,{'field':_0x4966a2,'value':_0x17dc86[_0x261746(0x366)],'onChange':_0x2dac04=>_0x5e01c4(ka(_0x226ffd,_0x57a7b0,{'operand':_0x2dac04}))})]},Fa(_0x3024b1,_0x17dc86,_0x57a7b0));}),_0x5c238f(_0x10d589,{'type':_0x3eabcd(0x3b9),'variant':_0x3eabcd(0x3ca),'className':'univer-w-full\x20univer-justify-start\x20univer-text-primary-600','disabled':!_0x34303e[_0x3eabcd(0x2c8)],'onClick':()=>{let _0x3b93=_0x34303e[0x0];if(!_0x3b93)return;let _0x25bce7=Aa(_0x3b93)[0x0];_0x5e01c4(Da(_0x226ffd,[..._0x3024b1,Oa(_0x3b93,_0x25bce7)]));},'children':[_0x1fa005(_0x34ddb8,{}),_0x534e75['t'](_0x3eabcd(0x202))]}),_0x3024b1[_0x3eabcd(0x2c8)]>0x0&&_0x1fa005(_0x10d589,{'type':_0x3eabcd(0x3b9),'variant':_0x3eabcd(0x3ca),'className':_0x3eabcd(0x3af),'onClick':_0x5e4d78,'children':_0x534e75['t'](_0x3eabcd(0x20b))})]});}function Ea({disabled:_0x5d7749,field:_0x2cf3b1,onChange:_0x558739,value:_0x34df50}){const _0x3bc264=_0x3447f8;let _0x58ef60=_0x53af8d(_0x255457),_0x5719c8=_0x2cf3b1==null?void 0x0:_0x2cf3b1[_0x3bc264(0x1b9)];if(_0x5719c8===_0x2940a8[_0x3bc264(0x1c9)]){let _0x4c9b8d=_0x34df50===!0x0||_0x34df50===_0x3bc264(0x2d2);return _0x5c238f(_0x10d589,{'type':_0x3bc264(0x3b9),'variant':'default','disabled':_0x5d7749,'className':_0x3bc264(0x299),'onClick':()=>_0x558739(!_0x4c9b8d),'children':[_0x1fa005(_0x22d09c,{'checked':_0x4c9b8d,'disabled':_0x5d7749,'onChange':()=>void 0x0}),_0x4c9b8d?_0x58ef60['t']('bases-dashboard-ui.dashboardInspector.checked'):_0x58ef60['t']('bases-dashboard-ui.dashboardInspector.unchecked')]});}return Ia(_0x5719c8)?_0x5d7749?_0x1fa005(_0x10d589,{'type':_0x3bc264(0x3b9),'variant':_0x3bc264(0x36e),'className':'univer-w-full','disabled':!0x0,'children':_0xa2fcf(_0x34df50==null||_0x34df50===''?void 0x0:String(_0x34df50))[_0x3bc264(0x11b)](_0x3bc264(0x385))}):_0x1fa005(_0x27fb91,{'className':_0x3bc264(0x3af),'value':_0xa2fcf(_0x34df50==null||_0x34df50===''?void 0x0:String(_0x34df50))['toDate'](),'onValueChange':_0x5e5257=>_0x558739(_0xa2fcf(_0x5e5257)[_0x3bc264(0x11b)](_0x3bc264(0x385)))}):Ra(_0x2cf3b1)?_0x1fa005(_0x57fab8,{'className':_0x3bc264(0x3af),'disabled':_0x5d7749,'value':Array[_0x3bc264(0x399)](_0x34df50)?_0x34df50[_0x3bc264(0x1ee)](String):[],'options':Na(_0x2cf3b1),'onChange':_0x558739}):_0x5719c8===_0x2940a8[_0x3bc264(0xc2)]||_0x5719c8===_0x2940a8[_0x3bc264(0x2c5)]||_0x5719c8===_0x2940a8['Person']?_0x1fa005(_0x4b13fc,{'className':_0x3bc264(0x3af),'disabled':_0x5d7749,'value':String(_0x34df50??''),'options':[{'value':'','label':_0x58ef60['t'](_0x3bc264(0x1aa))},...Na(_0x2cf3b1)],'onChange':_0x558739}):La(_0x5719c8)?_0x1fa005(_0x499d19,{'className':_0x3bc264(0x3af),'allowEmpty':!0x0,'disabled':_0x5d7749,'value':Number['isFinite'](Number(_0x34df50))?Number(_0x34df50):null,'onChange':_0x2df900=>_0x558739(_0x2df900??'')}):_0x1fa005(_0x2647d7,{'disabled':_0x5d7749,'value':String(_0x34df50??''),'placeholder':_0x58ef60['t'](_0x3bc264(0x3e1)),'onChange':_0x558739});}function Da(_0x39cc50,_0x2f3e09){return{'conjunction':(_0x39cc50==null?void 0x0:_0x39cc50['conjunction'])??_0x3a6b1d['AND'],'conditions':_0x2f3e09};}function Oa(_0x165ff6,_0x35238d){return Ma(_0x35238d)?{'fieldId':_0x165ff6['id'],'operator':_0x35238d,'operand':ja(_0x165ff6)}:{'fieldId':_0x165ff6['id'],'operator':_0x35238d};}function ka(_0x338703,_0x43b4f7,_0x5903d5){const _0x5d5498=_0x3447f8;return Da(_0x338703,((_0x338703==null?void 0x0:_0x338703[_0x5d5498(0x1da)])??[])[_0x5d5498(0x1ee)]((_0x55bdc6,_0x3b6dde)=>_0x3b6dde===_0x43b4f7?{..._0x55bdc6,..._0x5903d5}:_0x55bdc6));}function Aa(_0x2602c2){const _0x8ba18c=_0x3447f8;let _0x1e73b1=[_0x411cb8[_0x8ba18c(0x34e)],_0x411cb8[_0x8ba18c(0x3c7)]];switch(_0x2602c2==null?void 0x0:_0x2602c2[_0x8ba18c(0x1b9)]){case _0x2940a8['Number']:case _0x2940a8[_0x8ba18c(0x18d)]:case _0x2940a8[_0x8ba18c(0x304)]:case _0x2940a8[_0x8ba18c(0x3b8)]:return[_0x411cb8['IS'],_0x411cb8[_0x8ba18c(0x3b0)],_0x411cb8[_0x8ba18c(0x16e)],_0x411cb8['LESS_THAN'],..._0x1e73b1];case _0x2940a8[_0x8ba18c(0x292)]:case _0x2940a8[_0x8ba18c(0x198)]:case _0x2940a8[_0x8ba18c(0x225)]:return[_0x411cb8['IS'],_0x411cb8[_0x8ba18c(0x3b0)],_0x411cb8['BEFORE'],_0x411cb8[_0x8ba18c(0x24c)],..._0x1e73b1];case _0x2940a8[_0x8ba18c(0x1c9)]:return[_0x411cb8['IS'],_0x411cb8[_0x8ba18c(0x3b0)]];default:return[_0x411cb8['IS'],_0x411cb8[_0x8ba18c(0x3b0)],_0x411cb8['CONTAINS'],_0x411cb8[_0x8ba18c(0x2e2)],..._0x1e73b1];}}function ja(_0x3a1c7f){const _0x4bb26a=_0x3447f8;return _0x3a1c7f?_0x3a1c7f[_0x4bb26a(0x1b9)]===_0x2940a8[_0x4bb26a(0x1c9)]?!0x1:Ia(_0x3a1c7f['type'])?_0xa2fcf()[_0x4bb26a(0x11b)](_0x4bb26a(0x385)):Ra(_0x3a1c7f)?[]:'':'';}function Ma(_0x275fda){const _0x5915ac=_0x3447f8;return _0x275fda!==_0x411cb8['IS_EMPTY']&&_0x275fda!==_0x411cb8[_0x5915ac(0x3c7)];}function Na(_0x31c335){const _0x27d941=_0x3447f8;var _0x17c72e;return(Array[_0x27d941(0x399)](_0x31c335==null||(_0x17c72e=_0x31c335[_0x27d941(0x2b0)])==null?void 0x0:_0x17c72e[_0x27d941(0x326)])?_0x31c335[_0x27d941(0x2b0)]['options']:[])['map']((_0x36021a,_0x27258b)=>{const _0x518b09=_0x27d941;if(typeof _0x36021a==_0x518b09(0x127))return{'label':_0x36021a,'value':_0x36021a};if(!Pa(_0x36021a))return{'label':String(_0x27258b+0x1),'value':String(_0x27258b+0x1)};let _0x34a195=_0x36021a,_0x2bf994=String(_0x34a195[_0x518b09(0x2cd)]??_0x34a195['id']??_0x27258b+0x1),_0x3dc11b=String(_0x34a195['id']??_0x2bf994);return{'label':_0x2bf994,'value':/^opt-\d+$/[_0x518b09(0x3a7)](_0x3dc11b)?_0x2bf994:_0x3dc11b};});}function Pa(_0x51988b){const _0x4d06dd=_0x3447f8;return typeof _0x51988b==_0x4d06dd(0x2f1)&&!!_0x51988b;}function Fa(_0x5c2157,_0x32dc5d,_0x2e9c47){const _0x86e735=_0x3447f8;let _0x290e61=JSON[_0x86e735(0x1d3)](_0x32dc5d);return _0x290e61+'-'+_0x5c2157[_0x86e735(0x121)](0x0,_0x2e9c47)[_0x86e735(0x14f)](_0xf29f3=>JSON[_0x86e735(0x1d3)](_0xf29f3)===_0x290e61)[_0x86e735(0x2c8)];}function Ia(_0x58fef1){const _0x81e77=_0x3447f8;return _0x58fef1===_0x2940a8[_0x81e77(0x292)]||_0x58fef1===_0x2940a8[_0x81e77(0x198)]||_0x58fef1===_0x2940a8[_0x81e77(0x225)];}function La(_0x1dd8d4){const _0x559e70=_0x3447f8;return _0x1dd8d4===_0x2940a8[_0x559e70(0x3c9)]||_0x1dd8d4===_0x2940a8[_0x559e70(0x18d)]||_0x1dd8d4===_0x2940a8[_0x559e70(0x304)]||_0x1dd8d4===_0x2940a8[_0x559e70(0x3b8)];}function Ra(_0x3e3818){const _0x56939a=_0x3447f8;var _0x300092;return(_0x3e3818==null?void 0x0:_0x3e3818['type'])===_0x2940a8[_0x56939a(0x24f)]||(_0x3e3818==null?void 0x0:_0x3e3818[_0x56939a(0x1b9)])===_0x2940a8[_0x56939a(0x2c5)]||(_0x3e3818==null?void 0x0:_0x3e3818[_0x56939a(0x1b9)])===_0x2940a8[_0x56939a(0x29c)]&&((_0x300092=_0x3e3818[_0x56939a(0x2b0)])==null?void 0x0:_0x300092[_0x56939a(0x174)])===!0x0;}function za({base:_0x310c08,chartRuntime:_0x500cb2,onChange:_0x350866,onClose:_0x3eea7e,onSelectBackgroundImage:_0x5b3e30,onSelectImage:_0x56bf07,unitId:_0x50ea32,widget:_0x255711}){const _0x3f2a09=_0x3447f8;let _0x2a3adc=_0x53af8d(_0x1ec317),_0x39be28=_0x53af8d(_0x255457),_0x26dadb=_0x310c08['getSnapshot'](),_0x784372=_0x3f2a09(0x154)in _0x255711?_0x26dadb[_0x3f2a09(0x186)][_0x255711[_0x3f2a09(0x154)]]:void 0x0,_0x143071=_0x255711[_0x3f2a09(0x1b9)]===_0x28a714[_0x3f2a09(0x3ee)]?_0x784372==null?void 0x0:_0x784372[_0x3f2a09(0x2dc)][_0x255711[_0x3f2a09(0x2e1)]]:void 0x0,_0x508d99=_0x39be28['t'](Ka(_0x255711));return _0x5c238f(_0x3f2a09(0x268),{'data-dashboard-inspector':!0x0,'className':'univer-flex\x20univer-h-full\x20univer-w-[380px]\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x5c238f(_0x3f2a09(0x10f),{'className':_0x3f2a09(0x1bc),'children':[_0x1fa005('h3',{'className':_0x3f2a09(0x232),'children':_0x508d99}),_0x1fa005(_0x10d589,{'type':'button','size':_0x3f2a09(0x11d),'variant':_0x3f2a09(0x3ca),'aria-label':_0x39be28['t'](_0x3f2a09(0x316)),'onClick':_0x3eea7e,'children':_0x1fa005(_0x54b54f,{})})]}),_0x255711['type']===_0x28a714['PivotChart']&&(Ga(_0x143071)&&_0x500cb2?_0x1fa005(va,{'runtime':_0x500cb2,'sourceChart':_0x143071[_0x3f2a09(0x2b0)]['chart'],'sourceName':((_0x784372==null?void 0x0:_0x784372['name'])??'')+_0x3f2a09(0x334)+_0x143071['name'],'widget':_0x255711,'onChange':_0x350866,'onEditData':()=>{const _0x224d4d=_0x3f2a09;_0x2a3adc[_0x224d4d(0x2be)](_0xe74b73['id'],{'unitId':_0x50ea32,'tableId':_0x255711['tableId'],'viewId':_0x255711[_0x224d4d(0x2e1)]})['catch'](()=>void 0x0);}}):_0x1fa005(Ua,{'message':Ga(_0x143071)?_0x39be28['t'](_0x3f2a09(0x21c)):_0x39be28['t'](_0x3f2a09(0xe2))})),_0x255711['type']===_0x28a714['FormulaShape']&&_0x1fa005(xa,{'base':_0x310c08,'widget':_0x255711,'onChange':_0x350866,'onSelectBackgroundImage':_0x5b3e30}),_0x255711[_0x3f2a09(0x1b9)]===_0x28a714[_0x3f2a09(0x2a5)]&&_0x1fa005(Va,{'base':_0x310c08,'onChange':_0x350866,'widget':_0x255711}),_0x255711[_0x3f2a09(0x1b9)]===_0x28a714[_0x3f2a09(0x2d4)]&&_0x1fa005(Ha,{'onChange':_0x350866,'widget':_0x255711}),_0x255711[_0x3f2a09(0x1b9)]===_0x28a714[_0x3f2a09(0x341)]&&_0x1fa005(Ba,{'onChange':_0x350866,'onSelectImage':_0x56bf07,'widget':_0x255711})]});}function Ba({onChange:_0x2d1b42,onSelectImage:_0x4e29e3,widget:_0xaf5c8e}){const _0x2532ce=_0x3447f8;let _0x5ad1cd=_0x53af8d(_0x255457);return _0x5c238f(_0x2532ce(0x1e8),{'className':_0x2532ce(0x175),'children':[_0x5c238f(_0x10d589,{'className':'univer-w-full','onClick':()=>_0x4e29e3()[_0x2532ce(0x401)](_0x4af1c6=>_0x4af1c6&&_0x2d1b42({..._0xaf5c8e,'source':_0x4af1c6[_0x2532ce(0x2c6)],'sourceType':_0x4af1c6[_0x2532ce(0xd9)],'alt':_0x4af1c6['name']}))['catch'](()=>void 0x0),'children':[_0x1fa005(_0x34ddb8,{}),_0x5ad1cd['t'](_0x2532ce(0x3fd))]}),_0x5c238f(_0x2532ce(0x24a),{'className':_0x2532ce(0x393),'children':[_0x1fa005('span',{'children':_0x5ad1cd['t'](_0x2532ce(0x22e))}),_0x1fa005(_0x1eff91,{'items':[{'value':'cover','label':_0x5ad1cd['t'](_0x2532ce(0x1ad))},{'value':_0x2532ce(0x2af),'label':_0x5ad1cd['t']('bases-dashboard-ui.dashboardInspector.repeat')},{'value':_0x2532ce(0x3cf),'label':_0x5ad1cd['t'](_0x2532ce(0x170))}],'value':_0xaf5c8e[_0x2532ce(0x2f2)]??_0x2532ce(0x285),'onChange':_0x1ea6b9=>_0x2d1b42({..._0xaf5c8e,'displayMode':_0x1ea6b9})['catch'](()=>void 0x0)})]})]});}function Va({base:_0x39ce21,onChange:_0x4b2bf8,widget:_0x211fc1}){const _0x228d63=_0x3447f8;let _0x309b98=_0x39ce21[_0x228d63(0x3b6)]()[_0x228d63(0x186)][_0x211fc1[_0x228d63(0x154)]],_0x5ef447=_0x309b98==null?void 0x0:_0x309b98[_0x228d63(0x286)][_0x228d63(0x2c9)](_0x80e87=>_0x309b98[_0x228d63(0x2dc)][_0x80e87]),_0x498eeb=_0x5ef447?_0x309b98==null?void 0x0:_0x309b98[_0x228d63(0x2dc)][_0x5ef447]:void 0x0,_0x581247=_0x309b98&&_0x498eeb?_0x295488(_0x309b98,_0x498eeb):[];return _0x1fa005(Ta,{'fields':_0x581247,'filter':_0x211fc1[_0x228d63(0x14f)],'onChange':_0x546395=>_0x4b2bf8({..._0x211fc1,'filter':_0x546395})[_0x228d63(0x308)](()=>void 0x0),'onClear':()=>_0x4b2bf8({..._0x211fc1,'filter':null})['catch'](()=>void 0x0)});}function Ha({onChange:_0x3efe48,widget:_0x344995}){const _0x131826=_0x3447f8;let _0x58c9d6=_0x53af8d(_0x255457),_0x2c57b5=_0x53af8d(_0x22d94c),_0x42e0ab=_0x129d28(()=>_0x2c57b5[_0x131826(0x14a)],_0x2c57b5[_0x131826(0x11c)](),!0x1,[_0x2c57b5]),_0x2356c0=Br(_0x344995),_0x2da4e6=_0x4ca295=>_0x3efe48({..._0x344995,'appearance':{..._0x2356c0,..._0x4ca295}})[_0x131826(0x308)](()=>void 0x0);return _0x5c238f('div',{'className':_0x131826(0x142),'children':[_0x1fa005(_0x539ea5,{'defaultValue':Vr(_0x344995[_0x131826(0x339)]),'rows':0x8,'onBlur':_0x469d1f=>_0x3efe48({..._0x344995,'document':Hr(_0x344995[_0x131826(0x339)],_0x469d1f[_0x131826(0x3ea)][_0x131826(0x2c2)])})[_0x131826(0x308)](()=>void 0x0)}),_0x1fa005(_0x2d27c8,{'emptyLabel':_0x58c9d6['t'](_0x131826(0x19f)),'label':_0x58c9d6['t'](_0x131826(0x19f)),'pickerFallbackValue':_0x42e0ab[_0x131826(0x3fe)][0x0],'resetLabel':_0x58c9d6['t'](_0x131826(0x1e0)),'value':_0x2356c0[_0x131826(0x134)]??null,'onChange':_0x2b1441=>_0x2da4e6({'backgroundColor':_0x2b1441??void 0x0})}),_0x1fa005(_0x2d27c8,{'emptyLabel':_0x58c9d6['t'](_0x131826(0x26d)),'label':_0x58c9d6['t'](_0x131826(0x26d)),'pickerFallbackValue':_0x42e0ab[_0x131826(0x3fe)][0x3e8],'resetLabel':_0x58c9d6['t'](_0x131826(0x1e0)),'value':_0x2356c0['textColor']??null,'onChange':_0x24d7fe=>_0x2da4e6({'textColor':_0x24d7fe??void 0x0})}),_0x1fa005(Wa,{'label':_0x58c9d6['t'](_0x131826(0x349)),'children':_0x1fa005(_0x1eff91,{'items':[{'value':_0x131826(0x1b4),'label':_0x58c9d6['t'](_0x131826(0x165))},{'value':_0x131826(0x1e4),'label':_0x58c9d6['t'](_0x131826(0x22d))},{'value':_0x131826(0x314),'label':_0x58c9d6['t'](_0x131826(0x130))}],'value':_0x2356c0[_0x131826(0x218)],'onChange':_0x534867=>_0x2da4e6({'alignment':_0x534867})})}),_0x5c238f(Wa,{'label':_0x58c9d6['t'](_0x131826(0x3c5)),'children':[_0x1fa005(_0x1eff91,{'items':[{'value':_0x131826(0x195),'label':_0x58c9d6['t'](_0x131826(0x162))},{'value':_0x131826(0x1b1),'label':_0x58c9d6['t'](_0x131826(0x3d5))}],'value':_0x2356c0[_0x131826(0x38a)],'onChange':_0x3a30d2=>_0x2da4e6({'fontSizeMode':_0x3a30d2})}),_0x2356c0[_0x131826(0x38a)]===_0x131826(0x1b1)&&_0x1fa005(_0x499d19,{'className':_0x131826(0x111),'min':0xa,'max':0x78,'value':_0x2356c0[_0x131826(0x1ae)],'onChange':_0x7bfbcc=>_0x2da4e6({'fontSize':_0x7bfbcc??0x12,'fontSizeMode':_0x131826(0x1b1)})})]})]});}function Ua({message:_0x35a4c2}){const _0x1e39d9=_0x3447f8;return _0x1fa005(_0x1e39d9(0x1e8),{'className':_0x1e39d9(0x35e),'children':_0x35a4c2});}function Wa({children:_0x2a2cb8,label:_0xb664d0}){const _0x257831=_0x3447f8;return _0x5c238f(_0x257831(0x1e8),{'role':'group','aria-':!0x0,'className':_0x257831(0x393),'children':[_0x1fa005(_0x257831(0x40a),{'children':_0xb664d0}),_0x2a2cb8]});}function Ga(_0x22860c){const _0x42a4e9=_0x3447f8;return(_0x22860c==null?void 0x0:_0x22860c[_0x42a4e9(0x1b9)])===_0x4da0de[_0x42a4e9(0x1ec)]&&typeof _0x22860c[_0x42a4e9(0x2b0)]==_0x42a4e9(0x2f1)&&_0x22860c['config']!==null&&_0x42a4e9(0x10d)in _0x22860c[_0x42a4e9(0x2b0)]&&_0x42a4e9(0x1eb)in _0x22860c[_0x42a4e9(0x2b0)];}function Ka(_0x43f3ae){const _0x1fa3e4=_0x3447f8;switch(_0x43f3ae['type']){case _0x28a714[_0x1fa3e4(0x3ee)]:return _0x1fa3e4(0xe4);case _0x28a714['TableFilter']:return _0x1fa3e4(0x253);case _0x28a714[_0x1fa3e4(0x2d4)]:return _0x1fa3e4(0x145);case _0x28a714[_0x1fa3e4(0x341)]:return _0x1fa3e4(0x233);case _0x28a714[_0x1fa3e4(0x1ca)]:return _0x1fa3e4(0x2fd);}}function qa({onDelete:_0x1f78fd,onEdit:_0x2eeebd}){const _0x1c122e=_0x3447f8;let _0x5bf114=_0x53af8d(_0x255457),_0x2dfb2f=_0x5bf114['t'](_0x1c122e(0x1c6)),_0x8cc3cb=_0x5bf114['t'](_0x1c122e(0x120)),_0x3eb6db=_0x5bf114['t']('bases-dashboard-ui.dashboard.widgetActions');return _0x1fa005(_0x86d9a9,{'items':[{'type':_0x1c122e(0x347),'children':_0x5c238f(_0x1c122e(0x40a),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1fa005(_0x41a33d,{'className':_0x1c122e(0x129),'aria-hidden':_0x1c122e(0x2d2)}),_0x1fa005(_0x1c122e(0x40a),{'children':_0x2dfb2f})]}),'onSelect':_0x2eeebd},{'type':_0x1c122e(0x161)},{'type':'item','variant':_0x1c122e(0x262),'children':_0x5c238f(_0x1c122e(0x40a),{'className':_0x1c122e(0x30e),'children':[_0x1fa005(_0x306b68,{'className':_0x1c122e(0x129),'aria-hidden':_0x1c122e(0x2d2)}),_0x1fa005('span',{'children':_0x8cc3cb})]}),'onSelect':_0x1f78fd}],'children':_0x1fa005(_0x10d589,{'type':_0x1c122e(0x3b9),'size':_0x1c122e(0x11d),'variant':_0x1c122e(0x3ca),'title':_0x3eb6db,'aria-label':_0x3eb6db,'className':_0x1c122e(0x290),'children':_0x1fa005(_0x46df20,{'className':_0x1c122e(0x129),'aria-hidden':'true'})})});}function Ja({dashboardId:_0x516e14,presentation:_0x5b99f0=!0x1,unitId:_0x15c02b}){const _0x1961b0=_0x3447f8;let _0x374854=_0x53af8d(_0x1ec317),_0x68aa20=_0x53af8d(_0x230a38),_0x5d917d=_0x53af8d(_0x2cceec),_0x4307cc=_0x53af8d(_0xa15270),_0x42c918=_0x53af8d(_0x255457),_0x556572=_0x53af8d(_0x4e6cdd),_0x557d99=_0x53af8d(_0x3c357b),_0x83931f=_0x4523d4(null),[_0x503282,_0x220748]=_0xee90d5(!0x1),[_0x2c272e,_0x12ed30]=_0xee90d5(),[_0x528d50,_0xb90ed6]=_0xee90d5(!0x1),[_0x23773b,_0xd66ca6]=_0xee90d5(()=>new Map()),_0x5467b0=_0x2f6d8e((_0x5c8cd0,_0x4a9b63)=>{_0xd66ca6(_0x430aa=>{const _0x3b40e4=_0x1596;let _0x6c9d0f=new Map(_0x430aa);return _0x4a9b63?_0x6c9d0f[_0x3b40e4(0xea)](_0x5c8cd0,_0x4a9b63):_0x6c9d0f[_0x3b40e4(0x276)](_0x5c8cd0),_0x6c9d0f;});},[]),_0x411940=_0x129d28(()=>_0x556572[_0x1961b0(0x135)][_0x1961b0(0x387)](_0x26242b(()=>_0x556572['getDashboard'](_0x15c02b,_0x516e14))),_0x556572[_0x1961b0(0x2cf)](_0x15c02b,_0x516e14),!0x1,[_0x516e14,_0x556572,_0x15c02b]),_0x45da5a=_0x4307cc[_0x1961b0(0x3be)](_0x15c02b,_0x6e7cef[_0x1961b0(0x1f7)]),_0x22ff93=_0x129d28(()=>_0x557d99['undoRedoStatus$'],{'undos':0x0,'redos':0x0},!0x1,[_0x557d99]),_0x455dd9=gr(_0x15c02b,_0x516e14);if(_0x543512(()=>{const _0x13a1ea=_0x1961b0;_0x4307cc[_0x13a1ea(0x300)](_0x15c02b),_0x4307cc[_0x13a1ea(0x3a3)](_0x15c02b);},[_0x4307cc,_0x15c02b]),_0x543512(()=>{const _0x47bf0a=_0x1961b0;let _0x1aa485=_0x83931f[_0x47bf0a(0x23e)],_0x46242e=_0x1aa485==null?void 0x0:_0x1aa485[_0x47bf0a(0x2f9)];if(!_0x1aa485||!_0x46242e)return;let _0x444a8f=()=>_0xb90ed6(_0x46242e[_0x47bf0a(0x159)]===_0x46242e[_0x47bf0a(0xcb)]),_0x3ec94c=_0x3cf469=>{const _0x19fee6=_0x47bf0a;_0x3cf469[_0x19fee6(0x2fc)]===_0x19fee6(0x2a2)&&!_0x3cf469['defaultPrevented']&&_0x46242e[_0x19fee6(0x159)]===_0x46242e[_0x19fee6(0xcb)]&&_0x46242e[_0x19fee6(0x281)]()['catch'](_0x444a8f);};return _0x46242e[_0x47bf0a(0x213)](_0x47bf0a(0x298),_0x444a8f),_0x46242e[_0x47bf0a(0x213)](_0x47bf0a(0xfb),_0x3ec94c),()=>{const _0x3699e7=_0x47bf0a;_0x46242e[_0x3699e7(0x367)](_0x3699e7(0x298),_0x444a8f),_0x46242e['removeEventListener'](_0x3699e7(0xfb),_0x3ec94c);};},[]),!_0x411940||!_0x45da5a)return null;let _0x394ac1=_0x2dec28=>_0x374854[_0x1961b0(0x2be)](_0x49cadf['id'],{'unitId':_0x15c02b,'dashboardId':_0x516e14,'widget':_0x2dec28})[_0x1961b0(0x308)](()=>void 0x0),_0x5bfc35=(_0x3b69d7,_0xf1596a,_0x24701d)=>{const _0x275ca4=_0x1961b0;let _0x228dbb=Math[_0x275ca4(0x351)](0x0,..._0x411940[_0x275ca4(0x2a6)][_0x275ca4(0x30c)](_0x2e3e3d=>{const _0x178b87=_0x275ca4;var _0x486d01;let _0x4eda60=(_0x486d01=_0x411940[_0x178b87(0x311)][_0x2e3e3d])==null?void 0x0:_0x486d01[_0x178b87(0xe1)];return _0x4eda60?[_0x4eda60[_0x178b87(0x2b6)]+_0x4eda60[_0x178b87(0x3ef)]]:[];})),_0x130ae2=_0x275ca4(0x156)+_0x2aef82(0x8),_0xf80aca={'column':0x0,'row':_0x228dbb,'columnSpan':_0xf1596a,'rowSpan':_0x24701d};switch(_0x3b69d7[_0x275ca4(0x1b9)]){case _0x28a714['PivotChart']:return _0x394ac1({..._0x3b69d7,'id':_0x130ae2,'layout':_0xf80aca});case _0x28a714[_0x275ca4(0x2a5)]:return _0x394ac1({..._0x3b69d7,'id':_0x130ae2,'layout':_0xf80aca});case _0x28a714['Text']:return _0x394ac1({..._0x3b69d7,'id':_0x130ae2,'layout':_0xf80aca});case _0x28a714[_0x275ca4(0x341)]:return _0x394ac1({..._0x3b69d7,'id':_0x130ae2,'layout':_0xf80aca});case _0x28a714[_0x275ca4(0x1ca)]:return _0x394ac1({..._0x3b69d7,'id':_0x130ae2,'layout':_0xf80aca});}},_0x24f184=_0x45da5a[_0x1961b0(0x3b6)](),_0x5b03d4=_0x24f184[_0x1961b0(0xbc)][_0x1961b0(0x30c)](_0x5ceacd=>{const _0x1dc9a9=_0x1961b0;let _0x455a08=_0x24f184['tables'][_0x5ceacd];if(!_0x455a08)return[];let _0x4cc7c9=_0x455a08['viewOrder'][_0x1dc9a9(0x30c)](_0x1f41e9=>{const _0x30a543=_0x1dc9a9;let _0xd8a390=_0x455a08[_0x30a543(0x2dc)][_0x1f41e9];return no(_0xd8a390)?[{'type':_0x30a543(0x347),'children':_0xd8a390[_0x30a543(0x2cd)],'onSelect':()=>_0x5bfc35({'type':_0x28a714[_0x30a543(0x3ee)],'tableId':_0x5ceacd,'pivotViewId':_0x1f41e9,'chart':{..._0xd8a390[_0x30a543(0x2b0)][_0x30a543(0x1eb)]}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0x455a08[_0x1dc9a9(0x2cd)],'options':[..._0x4cc7c9,..._0x4cc7c9[_0x1dc9a9(0x2c8)]?[{'type':_0x1dc9a9(0x161)}]:[],{'type':_0x1dc9a9(0x347),'children':_0x42c918['t'](_0x1dc9a9(0x253)),'onSelect':()=>_0x5bfc35({'type':_0x28a714[_0x1dc9a9(0x2a5)],'tableId':_0x5ceacd,'filter':null},0x6,0x8)}]}];}),_0x11635c=[..._0x5b03d4,..._0x5b03d4['length']?[{'type':_0x1961b0(0x161)}]:[],{'type':'item','children':_0x42c918['t'](_0x1961b0(0x145)),'onSelect':()=>_0x5bfc35({'type':_0x28a714['Text'],'document':Qa()},0x4,0x6)},{'type':_0x1961b0(0x347),'children':_0x42c918['t'](_0x1961b0(0x233)),'onSelect':()=>$a(_0x68aa20)[_0x1961b0(0x401)](_0x1596c0=>_0x1596c0&&_0x5bfc35({'type':_0x28a714[_0x1961b0(0x341)],'source':_0x1596c0[_0x1961b0(0x2c6)],'sourceType':_0x1596c0[_0x1961b0(0xd9)],'alt':_0x1596c0['name'],'displayMode':_0x1961b0(0x285)},0x4,0x6))},{'type':'item','children':_0x42c918['t'](_0x1961b0(0x2fd)),'onSelect':()=>{const _0x366905=_0x1961b0;let _0x32f851=_0x24f184['tableOrder'][_0x366905(0x2c9)](_0x3ae339=>_0x24f184[_0x366905(0x186)][_0x3ae339]);_0x32f851&&_0x5bfc35({'type':_0x28a714[_0x366905(0x1ca)],'tableId':_0x32f851,'shapeType':_0x337cc8[_0x366905(0x190)],'shapeData':_0x30a9dd(),'description':_0x42c918['t'](_0x366905(0x2fd))},0x4,0x6);}}],_0xd9cbe5=_0x2c272e?_0x411940[_0x1961b0(0x311)][_0x2c272e]:void 0x0,_0x30e8f8=async()=>{const _0x3a1d9f=_0x1961b0;let _0x7e24b5=_0x83931f['current'];if(!_0x7e24b5)return;let _0x464d22=_0x7e24b5[_0x3a1d9f(0x2f9)];if(_0x464d22[_0x3a1d9f(0x159)]===_0x464d22[_0x3a1d9f(0xcb)]){await _0x464d22[_0x3a1d9f(0x281)]();return;}await _0x464d22[_0x3a1d9f(0xcb)][_0x3a1d9f(0x3a2)]();},_0x37d292=_0x5b99f0||_0x528d50,_0x45391e=_0x455dd9&&!_0x37d292;return _0x5c238f(_0x1961b0(0x1e8),{'ref':_0x83931f,'className':_0x1961b0(0x2f3)+(_0x528d50?_0x1961b0(0x2e5):_0x1961b0(0x15d))+_0x1961b0(0x3a9),'children':[!_0x37d292&&_0x5c238f(_0x1961b0(0x10f),{'className':_0x1961b0(0xfc),'children':[_0x1fa005(_0x4cc2bb,{'className':_0x1961b0(0x245)}),_0x1fa005('h2',{'className':_0x1961b0(0x232),'children':_0x411940[_0x1961b0(0x2cd)]}),_0x1fa005(_0x903bf7,{'target':{'unitId':_0x15c02b,'objectId':_0x4e82aa(_0x516e14),'objectType':_0x1349b1[_0x1961b0(0x240)]},'name':_0x411940['name'],'commandId':_0x180c8f['id'],'exists':()=>!!_0x556572[_0x1961b0(0x2cf)](_0x15c02b,_0x516e14)},_0x15c02b+'/'+_0x516e14),_0x1fa005(_0x484f3c,{'unitId':_0x15c02b}),_0x1fa005(_0x10d589,{'type':_0x1961b0(0x3b9),'size':_0x1961b0(0x11d),'variant':_0x1961b0(0x3ca),'aria-label':_0x42c918['t'](_0x1961b0(0x2b8)),'disabled':!_0x455dd9||_0x22ff93[_0x1961b0(0x1fe)]===0x0,'onClick':()=>_0x374854[_0x1961b0(0x2be)](_0xbacc2f['id'])[_0x1961b0(0x308)](()=>void 0x0),'children':_0x1fa005(_0x32ef86,{})}),_0x1fa005(_0x10d589,{'type':_0x1961b0(0x3b9),'size':_0x1961b0(0x11d),'variant':_0x1961b0(0x3ca),'aria-label':_0x42c918['t'](_0x1961b0(0x229)),'disabled':!_0x455dd9||_0x22ff93[_0x1961b0(0x2b5)]===0x0,'onClick':()=>_0x374854[_0x1961b0(0x2be)](_0x1df103['id'])['catch'](()=>void 0x0),'children':_0x1fa005(_0x40da8b,{})}),_0x1fa005(_0x10d589,{'type':'button','size':_0x1961b0(0x11d),'variant':_0x1961b0(0x3ca),'aria-label':_0x42c918['t'](_0x1961b0(0x374)),'onClick':()=>_0x30e8f8()[_0x1961b0(0x308)](()=>void 0x0),'children':_0x1fa005(_0x2e21be,{})}),_0x1fa005(_0x86d9a9,{'items':_0x11635c,'children':_0x5c238f(_0x10d589,{'variant':_0x1961b0(0x125),'disabled':!_0x455dd9,'children':[_0x1fa005(_0x34ddb8,{}),_0x42c918['t'](_0x1961b0(0x278))]})})]}),_0x5c238f(_0x1961b0(0x1e8),{'className':_0x1961b0(0x215),'children':[_0x1fa005('div',{'className':_0x1961b0(0x26f),'children':_0x1fa005(la,{'dashboard':_0x411940,'dragLabel':_0x42c918['t'](_0x1961b0(0xd6)),'editable':_0x45391e,'resizeLabel':_0x42c918['t'](_0x1961b0(0x25d)),'widgetLabel':_0x2b31d1=>_0x42c918['t'](to(_0x2b31d1[_0x1961b0(0x1b9)])),'selectedWidgetId':_0x45391e?_0x2c272e:void 0x0,'onSelectWidget':_0x45391e?_0x57e49a=>{_0x12ed30(_0x57e49a),_0x57e49a||_0x220748(!0x1);}:void 0x0,'onLayoutsCommit':_0x5d625a=>{const _0x32da55=_0x1961b0;let _0x1f6f40={..._0x411940[_0x32da55(0x311)]};_0x5d625a['forEach']((_0x4878d6,_0x29584c)=>{let _0x5d2205=_0x1f6f40[_0x29584c];_0x5d2205&&(_0x1f6f40[_0x29584c]={..._0x5d2205,'layout':_0x4878d6});}),_0x374854[_0x32da55(0x2be)](_0x51a517['id'],{'unitId':_0x15c02b,'dashboard':{..._0x411940,'widgets':_0x1f6f40}})[_0x32da55(0x308)](()=>void 0x0);},'renderWidget':_0x5f3e45=>_0x1fa005(Ya,{'base':_0x45da5a,'dashboard':_0x411940,'unitId':_0x15c02b,'widget':_0x5f3e45,'onChange':_0x394ac1,'onChartRuntimeChange':_0x5467b0}),'renderWidgetActions':_0x826eaa=>_0x1fa005(qa,{'onEdit':()=>{_0x12ed30(_0x826eaa['id']),_0x220748(!0x0);},'onDelete':()=>{const _0x5affea=_0x1961b0;_0x2c272e===_0x826eaa['id']&&(_0x12ed30(void 0x0),_0x220748(!0x1)),_0x374854[_0x5affea(0x2be)](_0x25ddde['id'],{'unitId':_0x15c02b,'dashboardId':_0x516e14,'widgetId':_0x826eaa['id']})[_0x5affea(0x308)](()=>void 0x0);}})})}),_0x45391e&&_0x503282&&_0xd9cbe5&&_0x1fa005(za,{'base':_0x45da5a,'chartRuntime':_0x23773b[_0x1961b0(0x15b)](_0xd9cbe5['id']),'unitId':_0x15c02b,'widget':_0xd9cbe5,'onChange':_0x394ac1,'onClose':()=>_0x220748(!0x1),'onSelectBackgroundImage':()=>eo(_0x5d917d),'onSelectImage':()=>$a(_0x68aa20)})]})]});}function Ya({base:_0x55d938,dashboard:_0x95637b,onChange:_0x302d47,onChartRuntimeChange:_0x50a859,unitId:_0x13e973,widget:_0x1b96d1}){const _0x3bcd33=_0x3447f8;let _0x364d60=_0x125177(()=>_0x95637b[_0x3bcd33(0x2a6)][_0x3bcd33(0x30c)](_0x2f5bb9=>{const _0x317170=_0x3bcd33;let _0x5f060a=_0x95637b[_0x317170(0x311)][_0x2f5bb9];return(_0x5f060a==null?void 0x0:_0x5f060a['type'])===_0x28a714[_0x317170(0x2a5)]&&_0x5f060a[_0x317170(0x154)]===(_0x317170(0x154)in _0x1b96d1?_0x1b96d1[_0x317170(0x154)]:'')&&_0x5f060a[_0x317170(0x14f)]?[_0x5f060a['filter']]:[];}),[_0x95637b,_0x1b96d1]);switch(_0x1b96d1['type']){case _0x28a714['PivotChart']:return _0x1fa005(Lr,{'filters':_0x364d60,'unitId':_0x13e973,'widget':_0x1b96d1,'onRuntimeChange':_0x50a859});case _0x28a714[_0x3bcd33(0x2a5)]:return _0x1fa005(wa,{'fields':Xa(_0x55d938,_0x1b96d1[_0x3bcd33(0x154)]),'filter':_0x1b96d1[_0x3bcd33(0x14f)],'onChange':_0x563ecb=>_0x302d47({..._0x1b96d1,'filter':_0x563ecb})['catch'](()=>void 0x0)});case _0x28a714[_0x3bcd33(0x2d4)]:return _0x1fa005(Ur,{'widget':_0x1b96d1});case _0x28a714[_0x3bcd33(0x341)]:return _0x1fa005(Za,{'widget':_0x1b96d1});case _0x28a714['FormulaShape']:return _0x1fa005(Dr,{'dashboardId':_0x95637b['id'],'unitId':_0x13e973,'widget':_0x1b96d1});}}function Xa(_0x5d1c3a,_0x33c34e){const _0x3e276a=_0x3447f8;let _0x1c9f87=_0x5d1c3a[_0x3e276a(0x3b6)]()[_0x3e276a(0x186)][_0x33c34e],_0x6016ad=_0x1c9f87==null?void 0x0:_0x1c9f87[_0x3e276a(0x286)][_0x3e276a(0x2c9)](_0xbcddbd=>_0x1c9f87['views'][_0xbcddbd]),_0x30f9aa=_0x6016ad?_0x1c9f87==null?void 0x0:_0x1c9f87['views'][_0x6016ad]:void 0x0;return _0x1c9f87&&_0x30f9aa?_0x295488(_0x1c9f87,_0x30f9aa):[];}function Za({widget:_0x175de7}){const _0x518f86=_0x3447f8;let _0x4f89d1=_0x53af8d(_0x230a38),[_0x4847c4,_0x1e7d6a]=_0xee90d5(_0x175de7[_0x518f86(0xd9)]===_0x188e10[_0x518f86(0x234)]?'':_0x175de7[_0x518f86(0x2c6)]);return _0x543512(()=>{const _0x2db39e=_0x518f86;let _0x399148=!0x0;return _0x4f89d1['getAttachmentUrl'](_0x175de7[_0x2db39e(0x2c6)],_0x175de7[_0x2db39e(0xd9)])[_0x2db39e(0x401)](_0x369292=>{_0x399148&&_0x1e7d6a(_0x369292);})['catch'](()=>void 0x0),()=>{_0x399148=!0x1;};},[_0x4f89d1,_0x175de7[_0x518f86(0x2c6)],_0x175de7['sourceType']]),_0x4847c4?_0x1fa005('div',{'role':_0x175de7[_0x518f86(0x3ed)]?_0x518f86(0x3bf):void 0x0,'aria-label':_0x175de7[_0x518f86(0x3ed)]||void 0x0,'data-dashboard-image':_0x175de7['id'],'className':_0x518f86(0x1b2),'style':vr(_0x4847c4,_0x175de7[_0x518f86(0x2f2)])}):null;}function Qa(){let _0x49290b=_0x156ce9(new Set());return{'id':'dashboard-text-'+_0x2aef82(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x49290b}]},'documentStyle':{}};}function $a(_0x1ef450){return new Promise(_0x151edd=>{const _0x4f5b10=_0x1596;let _0x81b13e=document['createElement'](_0x4f5b10(0x1fb));_0x81b13e[_0x4f5b10(0x1b9)]=_0x4f5b10(0x15c),_0x81b13e[_0x4f5b10(0x375)]=_0x4f5b10(0x3b3),_0x81b13e[_0x4f5b10(0x213)](_0x4f5b10(0xe3),()=>{const _0x32bada=_0x4f5b10;var _0x5d18a9;let _0x1e7bdc=(_0x5d18a9=_0x81b13e[_0x32bada(0xf8)])==null?void 0x0:_0x5d18a9[0x0];if(!_0x1e7bdc){_0x151edd(null);return;}_0x1ef450['saveAttachment'](_0x1e7bdc)[_0x32bada(0x401)](_0x4efccb=>{const _0x542887=_0x32bada;if(!_0x4efccb[_0x542887(0x2c6)]||_0x4efccb[_0x542887(0xd9)]===void 0x0){_0x151edd(null);return;}_0x151edd({'name':_0x4efccb[_0x542887(0x2cd)],'source':_0x4efccb[_0x542887(0x2c6)],'sourceType':_0x4efccb[_0x542887(0xd9)]});})[_0x32bada(0x308)](()=>_0x151edd(null));},{'once':!0x0}),_0x81b13e[_0x4f5b10(0x3f4)]();});}function eo(_0x8258cb){return new Promise(_0x5e1afc=>{const _0x37df61=_0x1596;let _0x5341d4=document[_0x37df61(0xde)](_0x37df61(0x1fb));_0x5341d4[_0x37df61(0x1b9)]=_0x37df61(0x15c),_0x5341d4['accept']=_0x37df61(0x3b3),_0x5341d4[_0x37df61(0x213)](_0x37df61(0xe3),()=>{const _0x22b161=_0x37df61;var _0x5a485c;let _0x1b67bf=(_0x5a485c=_0x5341d4[_0x22b161(0xf8)])==null?void 0x0:_0x5a485c[0x0];if(!_0x1b67bf){_0x5e1afc(null);return;}_0x8258cb[_0x22b161(0xc7)](_0x1b67bf)[_0x22b161(0x401)](_0x2d9154=>{const _0x6d2130=_0x22b161;if(!(_0x2d9154!=null&&_0x2d9154['source'])){_0x5e1afc(null);return;}if(_0x2d9154[_0x6d2130(0x1c1)]){let _0x1090db=new Image();_0x1090db[_0x6d2130(0xba)]=_0x2d9154[_0x6d2130(0x1c1)],_0x8258cb[_0x6d2130(0x2d6)](_0x2d9154[_0x6d2130(0x2c6)],_0x2d9154[_0x6d2130(0x3d9)],_0x1090db);}_0x5e1afc({'source':_0x2d9154[_0x6d2130(0x2c6)],'sourceType':_0x2d9154[_0x6d2130(0x3d9)]});})['catch'](()=>_0x5e1afc(null));},{'once':!0x0}),_0x5341d4[_0x37df61(0x3f4)]();});}function to(_0x2d239d){const _0x4c6f33=_0x3447f8;switch(_0x2d239d){case _0x28a714[_0x4c6f33(0x3ee)]:return'bases-dashboard-ui.dashboard.pivotChart';case _0x28a714[_0x4c6f33(0x2a5)]:return _0x4c6f33(0x253);case _0x28a714['Text']:return _0x4c6f33(0x145);case _0x28a714['Image']:return _0x4c6f33(0x233);case _0x28a714[_0x4c6f33(0x1ca)]:return _0x4c6f33(0x2fd);}}function no(_0x569422){const _0x9ba54c=_0x3447f8;return(_0x569422==null?void 0x0:_0x569422['type'])===_0x4da0de[_0x9ba54c(0x1ec)]&&typeof _0x569422[_0x9ba54c(0x2b0)]=='object'&&_0x569422[_0x9ba54c(0x2b0)]!==null&&'pivot'in _0x569422['config']&&_0x9ba54c(0x1eb)in _0x569422[_0x9ba54c(0x2b0)];}const ro=[{'area':_0x23447d[_0x3447f8(0x251)],'key':_0x3447f8(0x2b1),'label':_0x3447f8(0xca)},{'area':_0x23447d[_0x3447f8(0x29b)],'key':_0x3447f8(0x3a6),'label':_0x3447f8(0x1f0)},{'area':_0x23447d[_0x3447f8(0x20e)],'key':'rowFields','label':_0x3447f8(0x396)},{'area':_0x23447d[_0x3447f8(0x1b0)],'key':'valueFields','label':_0x3447f8(0x3db)}],io=[{'value':_0x1f46e1[_0x3447f8(0x1f1)],'localeKey':'bases-dashboard-ui.pivot.sum'},{'value':_0x1f46e1[_0x3447f8(0x203)],'localeKey':'bases-dashboard-ui.pivot.count'},{'value':_0x1f46e1[_0x3447f8(0x1bb)],'localeKey':_0x3447f8(0x3dd)},{'value':_0x1f46e1[_0x3447f8(0x344)],'localeKey':_0x3447f8(0x3cc)},{'value':_0x1f46e1[_0x3447f8(0x351)],'localeKey':_0x3447f8(0x3d7)},{'value':_0x1f46e1['min'],'localeKey':_0x3447f8(0x2c0)},{'value':_0x1f46e1[_0x3447f8(0x30b)],'localeKey':_0x3447f8(0x38d)},{'value':_0x1f46e1[_0x3447f8(0x1f4)],'localeKey':'bases-dashboard-ui.pivot.stdDev'},{'value':_0x1f46e1[_0x3447f8(0x352)],'localeKey':_0x3447f8(0x34c)},{'value':_0x1f46e1[_0x3447f8(0xd3)],'localeKey':_0x3447f8(0x3ec)},{'value':_0x1f46e1[_0x3447f8(0x33b)],'localeKey':'bases-dashboard-ui.pivot.variancePopulation'}];function ao(_0x35effa){const _0xc7042d=_0x3447f8;let {config:_0x32e302,onChange:_0xe5b6e5,table:_0x482867}=_0x35effa,_0x19fca8=_0x53af8d(_0x255457),[_0x3bfb78,_0x1cada1]=_0xee90d5(_0xc7042d(0x2ee)),[_0x58fbd4,_0x447420]=_0xee90d5(''),[_0xbdbf3a,_0x367828]=_0xee90d5(null),[_0x2b7d7e,_0x9def6c]=_0xee90d5(null),[_0x163ff4,_0x568f53]=_0xee90d5(null),[_0x1ea366,_0x22d281]=_0xee90d5(null),_0x361034=_0x4523d4(null),_0x330f84=_0x125177(()=>_0x482867[_0xc7042d(0x24d)][_0xc7042d(0x30c)](_0x2c1f7d=>{const _0x10189b=_0xc7042d;let _0x2c08c3=_0x482867[_0x10189b(0x2ee)][_0x2c1f7d];return _0x2c08c3&&_0x2c08c3[_0x10189b(0x2ac)]!==!0x0&&_0x2c08c3[_0x10189b(0x1b9)]!==_0x2940a8[_0x10189b(0x397)]?[_0x2c08c3]:[];})[_0xc7042d(0x14f)](_0x4af10e=>_0x4af10e[_0xc7042d(0x2cd)][_0xc7042d(0xd7)]()['includes'](_0x58fbd4['trim']()['toLocaleLowerCase']())),[_0x58fbd4,_0x482867]),_0xdf5617=_0x4321f4=>{const _0x160589=_0xc7042d;let _0xa692dc=_0x57279f(_0x482867,_0x32e302[_0x160589(0x10d)]);try{_0x4321f4(_0xa692dc),_0xe5b6e5({'pivot':_0xa692dc['toJSON']()});}finally{_0xa692dc[_0x160589(0x2fe)]();}},_0x50dc25=(_0x57a9af,_0x1e3ef4)=>{_0xbdbf3a&&(_0xdf5617(_0x348e23=>{const _0x4c4e3f=_0x1596;if(_0xbdbf3a['kind']==='field'){let _0x138450=_0x348e23[_0x4c4e3f(0x126)](_0xbdbf3a['id']),_0x100ec0=_0x138450[_0x4c4e3f(0x34d)]===_0x57a9af&&_0x138450['index']<_0x1e3ef4?_0x1e3ef4-0x1:_0x1e3ef4;_0x348e23['updateFieldPosition'](_0xbdbf3a['id'],_0x57a9af,_0x100ec0);return;}mo(_0x348e23,_0xbdbf3a['id'],_0x57a9af,_0x1e3ef4);}),_0x367828(null),_0x9def6c(null));};return _0x5c238f('div',{'className':_0xc7042d(0x1d7),'children':[_0x1fa005(_0x283559,{'ariaLabel':_0x19fca8['t'](_0xc7042d(0x1b7)),'className':_0xc7042d(0x302),'items':[{'label':_0x19fca8['t'](_0xc7042d(0x2e9)),'panelId':_0xc7042d(0x3ff),'value':_0xc7042d(0x2ee)},{'label':_0x19fca8['t'](_0xc7042d(0x282)),'panelId':_0xc7042d(0x3ad),'value':_0xc7042d(0x326)}],'value':_0x3bfb78,'onChange':_0x1cada1}),_0x1fa005(_0xc7042d(0x1e8),{'ref':_0x361034,'className':_0x54dbd2(_0xc7042d(0x149),_0x2bbb9f),'onDragOver':_0x23ddbb=>{const _0x405c3b=_0xc7042d;let _0x212353=_0x361034[_0x405c3b(0x23e)];if(!_0x212353)return;let _0x114f72=_0x212353[_0x405c3b(0x263)]();_0x23ddbb['clientY']<_0x114f72['top']+0x30?_0x212353[_0x405c3b(0x406)]-=0x10:_0x23ddbb[_0x405c3b(0x117)]>_0x114f72[_0x405c3b(0x199)]-0x30&&(_0x212353['scrollTop']+=0x10);},'children':_0x3bfb78===_0xc7042d(0x326)?_0x1fa005(po,{'config':_0x32e302,'commit':_0xdf5617}):_0x5c238f(_0xc7042d(0x1e8),{'className':_0xc7042d(0x116),'children':[_0x5c238f('div',{'children':[_0x1fa005(_0xc7042d(0x1e8),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x19fca8['t']('bases-dashboard-ui.pivot.sourceFields')}),_0x1fa005(_0x2647d7,{'allowClear':!0x0,'slot':_0x1fa005(_0x10f455,{}),'value':_0x58fbd4,'placeholder':_0x19fca8['t']('bases-dashboard-ui.pivot.searchFields'),'onChange':_0x447420}),_0x1fa005('div',{'className':_0xc7042d(0xdd),'children':_0x330f84['map'](_0x2b3e64=>_0x1fa005(oo,{'config':_0x32e302,'field':_0x2b3e64,'onAdd':_0x324331=>_0xdf5617(_0x45c677=>mo(_0x45c677,_0x2b3e64['id'],_0x324331,_0x45c677[_0xc7042d(0x11f)](_0x324331))),'onCheckedChange':_0x3e81f3=>_0xdf5617(_0xd654c5=>{const _0x434b53=_0xc7042d;let _0x3429b5=_0xd654c5['getTableFieldsByDataFieldId'](_0x2b3e64['id']);if(!_0x3e81f3){_0x3429b5[_0x434b53(0x32f)](_0x466702=>_0xd654c5[_0x434b53(0x1bf)](_0x466702[_0x434b53(0x2bd)]()));return;}if(_0x3429b5[_0x434b53(0x2c8)]===0x0){let _0xf665dc=go(_0x2b3e64)?_0x23447d['Value']:_0x23447d['Row'];_0xd654c5[_0x434b53(0x29f)](_0x2b3e64['id'],_0xf665dc);}}),'onDragStart':()=>_0x367828({'kind':_0xc7042d(0x2c6),'id':_0x2b3e64['id']})},_0x2b3e64['id']))})]}),_0x1fa005(_0xc7042d(0x1e8),{'className':'univer-grid\x20univer-grid-cols-2\x20univer-gap-3','children':ro[_0xc7042d(0x1ee)](_0x172ce7=>_0x1fa005(co,{'area':_0x172ce7[_0xc7042d(0x34d)],'dropTarget':_0x2b7d7e,'fields':_0x32e302['pivot'][_0x172ce7[_0xc7042d(0x2fc)]],'label':_0x19fca8['t'](_0x172ce7[_0xc7042d(0x24a)]),'snapshot':_0x32e302[_0xc7042d(0x10d)],'onDragEnd':()=>{_0x367828(null),_0x9def6c(null);},'onDragStart':_0x550f81=>_0x367828({'kind':_0xc7042d(0x101),'id':_0x550f81,'area':_0x172ce7[_0xc7042d(0x34d)]}),'onDragOver':_0x40a418=>_0x9def6c({'area':_0x172ce7[_0xc7042d(0x34d)],'index':_0x40a418}),'onDrop':_0x578524=>_0x50dc25(_0x172ce7[_0xc7042d(0x34d)],_0x578524),'onFilter':_0x568f53,'onRemove':_0x2893d8=>_0xdf5617(_0x46ff81=>_0x46ff81[_0xc7042d(0x1bf)](_0x2893d8)),'onSettings':_0x22d281},_0x172ce7['area']))}),_0x163ff4&&_0x1fa005(uo,{'fieldId':_0x163ff4,'snapshot':_0x32e302['pivot'],'table':_0x482867,'onCancel':()=>_0x568f53(null),'onCommit':(_0x5ae64a,_0x90989e)=>{_0xdf5617(_0x2057e2=>{const _0x1694a1=_0x1596;let _0x5d2cc0=_0x2057e2[_0x1694a1(0xd8)](_0x163ff4),_0x23fce3=(_0x5d2cc0==null?void 0x0:_0x5d2cc0[_0x1694a1(0x26b)])??[];_0x2057e2[_0x1694a1(0x29a)](_0x163ff4,{'type':_0x5a8717[_0x1694a1(0x17c)],'list':_0x5ae64a,'isAll':_0x5ae64a[_0x1694a1(0x2c8)]===_0x23fce3[_0x1694a1(0x2c8)]}),_0x2057e2[_0x1694a1(0x271)](_0x163ff4,_0x90989e===void 0x0?void 0x0:{'type':_0x90989e});}),_0x568f53(null);}},_0x163ff4),_0x1ea366&&_0x1fa005(fo,{'field':_0x32e302[_0xc7042d(0x10d)][_0xc7042d(0x181)][_0x1ea366],'onCancel':()=>_0x22d281(null),'onCommit':(_0x279413,_0x17bcc4,_0x3dd9fc)=>{_0xdf5617(_0x209d9d=>{const _0x3ddad5=_0x1596;_0x209d9d[_0x3ddad5(0x13f)](_0x1ea366,_0x279413),_0x209d9d[_0x3ddad5(0xd1)](_0x1ea366,_0x17bcc4),_0x209d9d['setFieldFormat'](_0x1ea366,_0x3dd9fc||void 0x0);}),_0x22d281(null);}},_0x1ea366)]})})]});}function oo(_0x556679){const _0x2f62d6=_0x3447f8;let {config:_0x4ab6da,field:_0x1a1e77,onAdd:_0x162291,onCheckedChange:_0x259371,onDragStart:_0x27c1b8}=_0x556679,_0x22c844=_0x53af8d(_0x255457),_0x2d4258=[...Object[_0x2f62d6(0xfd)](_0x4ab6da['pivot']['dimension']),...Object[_0x2f62d6(0xfd)](_0x4ab6da[_0x2f62d6(0x10d)][_0x2f62d6(0x181)])][_0x2f62d6(0x3c4)](_0x235b89=>_0x235b89[_0x2f62d6(0x164)]===_0x1a1e77['id']),_0x42a0a5=ro[_0x2f62d6(0x1ee)](_0x2380a1=>({'type':'item','children':_0x22c844['t'](_o(_0x2380a1[_0x2f62d6(0x34d)])),'onSelect':()=>_0x162291(_0x2380a1[_0x2f62d6(0x34d)])}));return _0x5c238f(_0x2f62d6(0x1e8),{'draggable':!0x0,'className':'univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','onDragStart':_0x27c1b8,'children':[_0x1fa005(_0x229479,{'className':_0x2f62d6(0x359)}),_0x1fa005(_0x22d09c,{'checked':_0x2d4258,'onChange':_0x5432f2=>_0x259371(!!_0x5432f2)}),_0x1fa005(so,{'field':_0x1a1e77}),_0x1fa005(_0x2f62d6(0x40a),{'className':_0x2f62d6(0x14b),'children':_0x1a1e77[_0x2f62d6(0x2cd)]}),_0x1fa005(_0x86d9a9,{'align':'end','items':_0x42a0a5,'children':_0x1fa005(_0x2f62d6(0x40a),{'className':_0x2f62d6(0x370),'children':_0x1fa005(_0x2e92dc,{})})})]});}function so({field:_0x5e297b}){const _0x1d7123=_0x3447f8;return go(_0x5e297b)?_0x1fa005(_0x5b2a53,{'className':_0x1d7123(0x359)}):_0x5e297b[_0x1d7123(0x1b9)]===_0x2940a8[_0x1d7123(0x292)]||_0x5e297b[_0x1d7123(0x1b9)]===_0x2940a8[_0x1d7123(0x198)]||_0x5e297b[_0x1d7123(0x1b9)]===_0x2940a8['UpdatedAt']?_0x1fa005(_0x1437d4,{'className':_0x1d7123(0x359)}):_0x1fa005(_0x3177bc,{'className':'univer-text-gray-400'});}function co(_0x82328d){const _0x1abe43=_0x3447f8;let {area:_0x230d65,dropTarget:_0x3821c7,fields:_0x22d459,label:_0x42c7d5,snapshot:_0x1cec10}=_0x82328d,_0x5616ec=_0x53af8d(_0x255457);return _0x5c238f(_0x1abe43(0x336),{'className':_0x54dbd2(_0x1abe43(0x350),_0x243840),'onDragOver':_0x4752a1=>{const _0x2f8d93=_0x1abe43;_0x4752a1[_0x2f8d93(0x16a)](),_0x82328d[_0x2f8d93(0x37a)](_0x22d459[_0x2f8d93(0x2c8)]);},'onDrop':_0x48a12a=>{const _0x2dd449=_0x1abe43;_0x48a12a['preventDefault'](),_0x82328d['onDrop']((_0x3821c7==null?void 0x0:_0x3821c7['area'])===_0x230d65?_0x3821c7[_0x2dd449(0xeb)]:_0x22d459[_0x2dd449(0x2c8)]);},'children':[_0x1fa005(_0x1abe43(0x1e8),{'className':'univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','children':_0x42c7d5}),_0x5c238f('div',{'className':_0x1abe43(0xf5),'children':[_0x22d459['map']((_0x491946,_0x80fb7a)=>{const _0x38ce95=_0x1abe43;let _0x268cb5=_0x1cec10[_0x38ce95(0x2dd)][_0x491946]??_0x1cec10[_0x38ce95(0x181)][_0x491946];if(!_0x268cb5)return null;let _0x595c87=(_0x3821c7==null?void 0x0:_0x3821c7['area'])===_0x230d65&&_0x3821c7['index']===_0x80fb7a;return _0x5c238f(_0x38ce95(0x1e8),{'onDragOver':_0x44488c=>{const _0x3c5061=_0x38ce95;_0x44488c[_0x3c5061(0x16a)](),_0x44488c['stopPropagation']();let _0x5e5186=_0x44488c[_0x3c5061(0x3c3)][_0x3c5061(0x263)]();_0x82328d[_0x3c5061(0x37a)](_0x80fb7a+ +(_0x44488c['clientY']>_0x5e5186[_0x3c5061(0x348)]+_0x5e5186[_0x3c5061(0x34f)]/0x2));},'onDrop':_0x3e7e59=>{const _0x19b163=_0x38ce95;_0x3e7e59[_0x19b163(0x16a)](),_0x3e7e59[_0x19b163(0x273)](),_0x82328d[_0x19b163(0x25a)]((_0x3821c7==null?void 0x0:_0x3821c7[_0x19b163(0x34d)])===_0x230d65?_0x3821c7[_0x19b163(0xeb)]:_0x80fb7a);},'children':[_0x595c87&&_0x1fa005(_0x38ce95(0x1e8),{'className':_0x38ce95(0x3e7)}),_0x1fa005(lo,{'area':_0x230d65,'field':_0x268cb5,'onDragEnd':_0x82328d[_0x38ce95(0x25f)],'onDragStart':()=>_0x82328d['onDragStart'](_0x491946),'onFilter':()=>_0x82328d['onFilter'](_0x491946),'onRemove':()=>_0x82328d[_0x38ce95(0x2c3)](_0x491946),'onSettings':()=>_0x82328d[_0x38ce95(0x2ec)](_0x491946)})]},_0x491946);}),(_0x3821c7==null?void 0x0:_0x3821c7[_0x1abe43(0x34d)])===_0x230d65&&_0x3821c7[_0x1abe43(0xeb)]===_0x22d459[_0x1abe43(0x2c8)]&&_0x1fa005(_0x1abe43(0x1e8),{'className':_0x1abe43(0x3e7)}),_0x22d459['length']===0x0&&_0x1fa005(_0x1abe43(0x1e8),{'className':_0x1abe43(0x2b7),'children':_0x5616ec['t'](_0x1abe43(0x150))})]})]});}function lo(_0x2d2568){const _0x40e57f=_0x3447f8;let _0x270fed=_0x53af8d(_0x255457),_0x233b26=_0x2d2568[_0x40e57f(0x34d)]===_0x23447d['Value'],_0xf6b68d=[{'type':_0x40e57f(0x347),'children':_0x270fed['t'](_0x40e57f(0x1e6)),'onSelect':_0x2d2568[_0x40e57f(0x2c3)]},{'type':_0x40e57f(0x347),'children':_0x270fed['t'](_0x233b26?_0x40e57f(0x2a0):_0x40e57f(0x2d0)),'onSelect':_0x233b26?_0x2d2568[_0x40e57f(0x2ec)]:_0x2d2568[_0x40e57f(0x3f8)]}];return _0x5c238f(_0x40e57f(0x1e8),{'draggable':!0x0,'className':_0x40e57f(0x146),'onDragEnd':_0x2d2568[_0x40e57f(0x25f)],'onDragStart':_0x2d2568[_0x40e57f(0xcf)],'children':[_0x1fa005(_0x229479,{'className':'univer-text-gray-400'}),_0x1fa005(_0x310d74,{'title':_0x2d2568[_0x40e57f(0x101)]['displayName'],'children':_0x1fa005(_0x40e57f(0x40a),{'className':_0x40e57f(0x14b),'children':_0x2d2568[_0x40e57f(0x101)][_0x40e57f(0x2bb)]})}),_0x1fa005(_0x86d9a9,{'align':_0x40e57f(0x372),'items':_0xf6b68d,'children':_0x1fa005(_0x40e57f(0x40a),{'className':_0x40e57f(0x370),'children':_0x1fa005(_0x2e92dc,{})})})]});}function uo(_0x561018){const _0x7b8e48=_0x3447f8;var _0x2177bb,_0x27b9b3;let _0x2a11ad=_0x53af8d(_0x255457),{format:_0x3adc14,items:_0x517c93,itemTypes:_0x47bde6}=_0x125177(()=>{const _0x1db201=_0x1596;let _0x24d343=_0x57279f(_0x561018['table'],_0x561018[_0x1db201(0x12a)]);try{let _0x5c5cfe=_0x24d343[_0x1db201(0xd8)](_0x561018['fieldId']);return{'format':_0x5c5cfe==null?void 0x0:_0x5c5cfe[_0x1db201(0x11b)],'items':[...(_0x5c5cfe==null?void 0x0:_0x5c5cfe[_0x1db201(0x26b)])??[]],'itemTypes':[...(_0x5c5cfe==null?void 0x0:_0x5c5cfe[_0x1db201(0x39e)])??[]]};}finally{_0x24d343[_0x1db201(0x2fe)]();}},[_0x561018[_0x7b8e48(0x1e5)],_0x561018[_0x7b8e48(0x12a)],_0x561018['table']]),_0x448bf1=(_0x2177bb=_0x561018['snapshot'][_0x7b8e48(0x2dd)][_0x561018[_0x7b8e48(0x1e5)]])==null?void 0x0:_0x2177bb['filterInfo'],[_0x14be24,_0x1b4b27]=_0xee90d5((_0x448bf1==null?void 0x0:_0x448bf1[_0x7b8e48(0x1b9)])===_0x5a8717[_0x7b8e48(0x17c)]?_0x448bf1[_0x7b8e48(0x3e6)]:_0x517c93),[_0x5b56cb,_0x40e4c8]=_0xee90d5((_0x27b9b3=_0x561018[_0x7b8e48(0x12a)][_0x7b8e48(0x2dd)][_0x561018[_0x7b8e48(0x1e5)]])==null||(_0x27b9b3=_0x27b9b3['sortInfo'])==null?void 0x0:_0x27b9b3[_0x7b8e48(0x1b9)]),_0x250772=_0x14be24[_0x7b8e48(0x2c8)]===_0x517c93[_0x7b8e48(0x2c8)];return _0x5c238f(_0x7b8e48(0x336),{'className':_0x54dbd2(_0x7b8e48(0x14d),_0x243840),'children':[_0x1fa005(_0x7b8e48(0x1e8),{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0x2a11ad['t'](_0x7b8e48(0x2d0))}),_0x5c238f(_0x7b8e48(0x1e8),{'className':_0x7b8e48(0x3eb),'children':[_0x5c238f(_0x10d589,{'className':_0x7b8e48(0x1cc),'variant':_0x5b56cb===_0x428f40['ascending']?_0x7b8e48(0x125):_0x7b8e48(0x36e),'onClick':()=>_0x40e4c8(_0x428f40[_0x7b8e48(0x17d)]),'children':[_0x1fa005(_0x2a08ae,{}),_0x2a11ad['t'](_0x7b8e48(0x2e6))]}),_0x5c238f(_0x10d589,{'className':'univer-flex-1','variant':_0x5b56cb===_0x428f40['descending']?'primary':_0x7b8e48(0x36e),'onClick':()=>_0x40e4c8(_0x428f40[_0x7b8e48(0x155)]),'children':[_0x1fa005(_0x20c70b,{}),_0x2a11ad['t'](_0x7b8e48(0x1df))]})]}),_0x5c238f(_0x7b8e48(0x1e8),{'className':_0x7b8e48(0x15a),'children':[_0x5c238f(_0x7b8e48(0x24a),{'className':_0x7b8e48(0x208),'children':[_0x1fa005(_0x22d09c,{'checked':_0x250772,'indeterminate':_0x14be24['length']>0x0&&!_0x250772,'onChange':()=>_0x1b4b27(_0x250772?[]:_0x517c93)}),_0x2a11ad['t'](_0x7b8e48(0x22a))]}),_0x517c93[_0x7b8e48(0x1ee)]((_0x3fcc99,_0x130a5e)=>_0x5c238f('label',{'className':_0x7b8e48(0x208),'children':[_0x1fa005(_0x22d09c,{'checked':_0x14be24['includes'](_0x3fcc99),'onChange':()=>_0x1b4b27(_0x5bcfef=>_0x5bcfef['includes'](_0x3fcc99)?_0x5bcfef['filter'](_0x1cc496=>_0x1cc496!==_0x3fcc99):[..._0x5bcfef,_0x3fcc99])}),_0x1fa005('span',{'className':_0x7b8e48(0x242),'children':ho(_0x3fcc99,_0x47bde6[_0x130a5e],_0x3adc14,_0x2a11ad['t']('bases-dashboard-ui.pivot.blank'))})]},_0x3fcc99))]}),_0x5c238f(_0x7b8e48(0x1e8),{'className':_0x7b8e48(0x1c8),'children':[_0x1fa005(_0x10d589,{'variant':_0x7b8e48(0x21d),'onClick':()=>_0x561018['onCommit'](_0x517c93,_0x5b56cb),'children':_0x2a11ad['t'](_0x7b8e48(0x3bd))}),_0x5c238f('div',{'className':_0x7b8e48(0x3d4),'children':[_0x1fa005(_0x10d589,{'onClick':_0x561018[_0x7b8e48(0x227)],'children':_0x2a11ad['t'](_0x7b8e48(0x132))}),_0x1fa005(_0x10d589,{'variant':_0x7b8e48(0x125),'disabled':_0x14be24[_0x7b8e48(0x2c8)]===0x0,'onClick':()=>_0x561018[_0x7b8e48(0x3b5)](_0x14be24,_0x5b56cb),'children':_0x2a11ad['t'](_0x7b8e48(0x15e))})]})]})]});}function fo(_0x552725){const _0x44b8ff=_0x3447f8;var _0x3e2270,_0x203fdf,_0x36f544;let _0xe5b1b4=_0x53af8d(_0x255457),[_0xa7796c,_0x2bd166]=_0xee90d5(((_0x3e2270=_0x552725[_0x44b8ff(0x101)])==null?void 0x0:_0x3e2270[_0x44b8ff(0x2bb)])??''),[_0x5252ef,_0x3c11bb]=_0xee90d5(((_0x203fdf=_0x552725['field'])==null?void 0x0:_0x203fdf[_0x44b8ff(0x1f5)])??_0x1f46e1['sum']),[_0x465756,_0x4ca438]=_0xee90d5(((_0x36f544=_0x552725['field'])==null?void 0x0:_0x36f544[_0x44b8ff(0x11b)])??'');return _0x552725[_0x44b8ff(0x101)]?_0x5c238f(_0x44b8ff(0x336),{'className':_0x54dbd2('univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900',_0x243840),'children':[_0x1fa005(_0x44b8ff(0x1e8),{'className':'univer-text-sm\x20univer-font-medium','children':_0xe5b1b4['t'](_0x44b8ff(0x2a0))}),_0x5c238f(_0x44b8ff(0x24a),{'className':_0x44b8ff(0x289),'children':[_0xe5b1b4['t'](_0x44b8ff(0xbe)),_0x1fa005(_0x2647d7,{'value':_0xa7796c,'onChange':_0x2bd166})]}),_0x5c238f('label',{'className':_0x44b8ff(0x289),'children':[_0xe5b1b4['t'](_0x44b8ff(0x109)),_0x1fa005(_0x4b13fc,{'value':String(_0x5252ef),'options':io['map'](_0x512b3c=>({'value':String(_0x512b3c[_0x44b8ff(0x2c2)]),'label':_0xe5b1b4['t'](_0x512b3c['localeKey'])})),'onChange':_0x2c735b=>{const _0x4b0714=_0x44b8ff;let _0x39ea13=io[_0x4b0714(0x2c9)](_0x29448b=>String(_0x29448b[_0x4b0714(0x2c2)])===_0x2c735b);_0x39ea13&&_0x3c11bb(_0x39ea13[_0x4b0714(0x2c2)]);}})]}),_0x5c238f('label',{'className':_0x44b8ff(0x289),'children':[_0xe5b1b4['t'](_0x44b8ff(0x3ae)),_0x1fa005(_0x2647d7,{'value':_0x465756,'onChange':_0x4ca438})]}),_0x5c238f(_0x44b8ff(0x1e8),{'className':_0x44b8ff(0x23d),'children':[_0x1fa005(_0x10d589,{'onClick':_0x552725[_0x44b8ff(0x227)],'children':_0xe5b1b4['t']('bases-dashboard-ui.pivot.cancel')}),_0x1fa005(_0x10d589,{'variant':_0x44b8ff(0x125),'disabled':!_0xa7796c[_0x44b8ff(0x15f)](),'onClick':()=>_0x552725['onCommit'](_0xa7796c['trim'](),_0x5252ef,_0x465756),'children':_0xe5b1b4['t'](_0x44b8ff(0x15e))})]})]}):null;}function po(_0x275d9e){const _0x605a5a=_0x3447f8;let {config:_0x447de5,commit:_0x85e50f}=_0x275d9e,_0x483c57=_0x53af8d(_0x255457),_0x521595=_0x447de5[_0x605a5a(0x10d)][_0x605a5a(0x326)],_0x36d630=_0x1a5476=>_0x85e50f(_0x4bfcf3=>_0x4bfcf3[_0x605a5a(0x17f)]({..._0x4bfcf3['getOptions'](),..._0x1a5476}));return _0x5c238f('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x5c238f(_0x605a5a(0x24a),{'className':_0x605a5a(0x39f),'children':[_0x483c57['t']('bases-dashboard-ui.pivot.layout'),_0x1fa005(_0x4b13fc,{'className':'univer-w-36','value':String(_0x447de5[_0x605a5a(0x10d)][_0x605a5a(0xe1)]),'options':[{'value':String(_0x185dea['tabular']),'label':_0x483c57['t'](_0x605a5a(0x1ac))},{'value':String(_0x185dea[_0x605a5a(0x3da)]),'label':_0x483c57['t']('bases-dashboard-ui.pivot.layoutCompact')},{'value':String(_0x185dea[_0x605a5a(0x1a7)]),'label':_0x483c57['t'](_0x605a5a(0x1ab))}],'onChange':_0x12aa85=>{const _0x1df377=_0x605a5a;let _0x20203d=[_0x185dea[_0x1df377(0x138)],_0x185dea[_0x1df377(0x3da)],_0x185dea['outline']][_0x1df377(0x2c9)](_0x25cdb4=>String(_0x25cdb4)===_0x12aa85);_0x20203d!==void 0x0&&_0x85e50f(_0x3aa543=>_0x3aa543[_0x1df377(0x266)](_0x20203d));}})]}),[{'key':_0x605a5a(0x25b),'label':_0x605a5a(0x27d),'defaultValue':!0x1},{'key':_0x605a5a(0x296),'label':_0x605a5a(0xfe),'defaultValue':!0x1},{'key':_0x605a5a(0x1a6),'label':_0x605a5a(0x31c),'defaultValue':!0x0},{'key':_0x605a5a(0x13d),'label':_0x605a5a(0x168),'defaultValue':!0x0},{'key':_0x605a5a(0x107),'label':'bases-dashboard-ui.pivot.showColumnSubtotal','defaultValue':!0x0},{'key':_0x605a5a(0x102),'label':_0x605a5a(0x25c),'defaultValue':!0x0}][_0x605a5a(0x1ee)](_0x3bddde=>_0x5c238f('label',{'className':_0x605a5a(0x171),'children':[_0x1fa005(_0x22d09c,{'checked':!!(_0x521595[_0x3bddde[_0x605a5a(0x2fc)]]??_0x3bddde[_0x605a5a(0xe8)]),'disabled':_0x3bddde[_0x605a5a(0x2fc)]==='repeatRowLabels'&&_0x447de5['pivot'][_0x605a5a(0xe1)]===_0x185dea['compact'],'onChange':_0x20e978=>_0x36d630({[_0x3bddde[_0x605a5a(0x2fc)]]:!!_0x20e978})}),_0x483c57['t'](_0x3bddde['label'])]},_0x3bddde[_0x605a5a(0x2fc)])),_0x447de5[_0x605a5a(0x10d)][_0x605a5a(0xe1)]===_0x185dea[_0x605a5a(0x1a7)]&&_0x5c238f(_0x605a5a(0x24a),{'className':_0x605a5a(0x39f),'children':[_0x483c57['t'](_0x605a5a(0x18b)),_0x1fa005(_0x4b13fc,{'className':_0x605a5a(0x333),'value':String(_0x521595[_0x605a5a(0x31d)]??_0x568753[_0x605a5a(0x348)]),'options':[{'value':String(_0x568753[_0x605a5a(0x348)]),'label':_0x483c57['t']('bases-dashboard-ui.pivot.top')},{'value':String(_0x568753[_0x605a5a(0x199)]),'label':_0x483c57['t'](_0x605a5a(0x221))}],'onChange':_0x432ced=>{const _0x232bfd=_0x605a5a;let _0x1f51f4=[_0x568753[_0x232bfd(0x348)],_0x568753[_0x232bfd(0x199)]][_0x232bfd(0x2c9)](_0x4b8e27=>String(_0x4b8e27)===_0x432ced);_0x1f51f4!==void 0x0&&_0x36d630({'rowSubtotalPosition':_0x1f51f4});}})]}),_0x5c238f(_0x605a5a(0x24a),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x483c57['t'](_0x605a5a(0x1a4)),_0x1fa005(_0x4b13fc,{'className':_0x605a5a(0x333),'value':String(_0x447de5['pivot'][_0x605a5a(0x1d2)]===_0x2d76e7[_0x605a5a(0x322)]?_0x2d76e7[_0x605a5a(0x29b)]:_0x447de5[_0x605a5a(0x10d)][_0x605a5a(0x1d2)]),'options':[{'value':String(_0x2d76e7['Column']),'label':_0x483c57['t'](_0x605a5a(0x1f0))},{'value':String(_0x2d76e7[_0x605a5a(0x20e)]),'label':_0x483c57['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x482527=>{const _0x1cb354=_0x605a5a;let _0x47b49c=[_0x2d76e7[_0x1cb354(0x29b)],_0x2d76e7['Row']][_0x1cb354(0x2c9)](_0x393ae8=>String(_0x393ae8)===_0x482527);_0x47b49c!==void 0x0&&_0x85e50f(_0x56278b=>_0x56278b[_0x1cb354(0x1a1)](_0x47b49c,_0x56278b[_0x1cb354(0x3e9)]()<0x0?0x0:_0x56278b[_0x1cb354(0x3e9)]()));}})]}),_0x5c238f(_0x605a5a(0x24a),{'className':_0x605a5a(0x39f),'children':[_0x483c57['t'](_0x605a5a(0x30a)),_0x1fa005(_0x499d19,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x521595[_0x605a5a(0x358)]??0x1,'onChange':_0x36bb80=>{const _0x505817=_0x605a5a;let _0x69d3e=Number(_0x36bb80);Number[_0x505817(0x1b3)](_0x69d3e)&&_0x69d3e>=0x1&&_0x36d630({'pageWrap':_0x69d3e});}})]}),_0x5c238f(_0x605a5a(0x24a),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x483c57['t'](_0x605a5a(0xd2)),_0x1fa005(_0x4b13fc,{'className':_0x605a5a(0x333),'value':String(_0x521595[_0x605a5a(0x1db)]??!0x1),'options':[{'value':'false','label':_0x483c57['t'](_0x605a5a(0x384))},{'value':_0x605a5a(0x2d2),'label':_0x483c57['t'](_0x605a5a(0x1be))}],'onChange':_0x23b94a=>_0x36d630({'pageOverThenDown':_0x23b94a===_0x605a5a(0x2d2)})})]})]});}function mo(_0xf7ff0f,_0x1911f5,_0x495d09,_0x481adf){const _0xe980a6=_0x3447f8;let _0xe95b3d=_0xf7ff0f['getTableFieldsByDataFieldId'](_0x1911f5)[_0xe980a6(0x2c9)](_0x1f4967=>_0xf7ff0f['getFieldPositionInfoById'](_0x1f4967[_0xe980a6(0x2bd)]())[_0xe980a6(0x34d)]!==_0x23447d[_0xe980a6(0x1b0)]);if(_0x495d09!==_0x23447d[_0xe980a6(0x1b0)]&&_0xe95b3d){_0xf7ff0f['updateFieldPosition'](_0xe95b3d[_0xe980a6(0x2bd)](),_0x495d09,_0x481adf);return;}_0xf7ff0f[_0xe980a6(0x29f)](_0x1911f5,_0x495d09,_0x481adf);}function ho(_0x5753b7,_0xa3212a,_0x41e92d,_0x2bd4b2){const _0x4bf75d=_0x3447f8;return _0xa3212a===_0x25f34a[_0x4bf75d(0x295)]?_0x2bd4b2:_0xa3212a===_0x25f34a['date']&&_0x41e92d?_0x254bab[_0x4bf75d(0x11b)](_0x41e92d,Number(_0x5753b7)):_0x5753b7;}function go(_0x31588f){const _0x282c08=_0x3447f8;return _0x31588f[_0x282c08(0x1b9)]===_0x2940a8[_0x282c08(0x3c9)]||_0x31588f[_0x282c08(0x1b9)]===_0x2940a8[_0x282c08(0x18d)]||_0x31588f[_0x282c08(0x1b9)]===_0x2940a8['Progress']||_0x31588f[_0x282c08(0x1b9)]===_0x2940a8[_0x282c08(0x3b8)];}function _o(_0x1c03c4){const _0xd09aab=_0x3447f8;switch(_0x1c03c4){case _0x23447d[_0xd09aab(0x20e)]:return _0xd09aab(0x36f);case _0x23447d[_0xd09aab(0x29b)]:return _0xd09aab(0x3bc);case _0x23447d[_0xd09aab(0x1b0)]:return _0xd09aab(0x246);default:return _0xd09aab(0x1f3);}}function vo({config:_0x2ce3f3,onChange:_0x2c4711,runtime:_0x250a84,table:_0x4b5100}){const _0x1744c0=_0x3447f8;let _0x17e51e=_0x53af8d(_0x255457),[_0x582a4c,_0x5c186b]=_0xee90d5('chart');return _0x5c238f('aside',{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-96\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x1fa005(_0x283559,{'ariaLabel':_0x17e51e['t'](_0x1744c0(0x1a9)),'className':_0x1744c0(0x33a),'items':[{'label':_0x17e51e['t'](_0x1744c0(0x19e)),'panelId':'base-pivot-chart-configuration','value':_0x1744c0(0x1eb)},{'label':_0x17e51e['t'](_0x1744c0(0x1b7)),'panelId':_0x1744c0(0xce),'value':_0x1744c0(0x10d)}],'value':_0x582a4c,'variant':'segmented','onChange':_0x5c186b}),_0x1fa005('div',{'className':_0x1744c0(0x3e2),'children':_0x582a4c===_0x1744c0(0x1eb)?_0x250a84&&_0x1fa005(fa,{'config':_0x2ce3f3,'runtime':_0x250a84,'tableName':_0x4b5100[_0x1744c0(0x2cd)],'onChange':_0x2c4711}):_0x1fa005(ao,{'config':_0x2ce3f3,'table':_0x4b5100,'onChange':_0x2c4711})})]});}function yo({tableId:_0x38f236,unitId:_0x458af1,viewId:_0x52bd45}){const _0x32dc53=_0x3447f8;let _0x565c58=_0x53af8d(_0x1ec317),_0x4cceee=_0x53af8d(_0xa15270),_0x31eb33=_0x53af8d(_0x133842),_0x52d517=_0x53af8d(_0x255457),_0x5e8588=_0x53af8d(_0x2cc67a),[_0x17bdbe,_0x42809c]=_0xee90d5(null),[_0x2f4d9d,_0x35a31d]=_0xee90d5(null),_0x3fff56=_0x4523d4('base-pivot-chart-'+_0x2aef82(0x8)),[_0x4ff7f9,_0x376743]=_0xee90d5(!0x1),_0x1881ec=_0x4cceee[_0x32dc53(0x3be)](_0x458af1,_0x6e7cef[_0x32dc53(0x1f7)]),_0x58cf1e=_0x1881ec==null?void 0x0:_0x1881ec[_0x32dc53(0x3b6)]()[_0x32dc53(0x186)][_0x38f236],_0x2ad89f=_0x58cf1e==null?void 0x0:_0x58cf1e[_0x32dc53(0x2dc)][_0x52bd45],_0xd46c96=bo(_0x2ad89f),_0x24fccf=_r(_0x458af1,_0x38f236,_0x52bd45);if(_0x543512(()=>{const _0x4efe2e=_0x32dc53;if(!_0xd46c96)return;let _0x48e6f7=_0x3fff56[_0x4efe2e(0x23e)];return _0x5e8588[_0x4efe2e(0x1a0)](_0x48e6f7,{'unitId':_0x458af1,'tableId':_0x38f236,'viewId':_0x52bd45,'filters':[]}),()=>{const _0x2ce314=_0x4efe2e;_0x5e8588[_0x2ce314(0x197)](_0x458af1,_0x48e6f7);};},[_0xd46c96,_0x5e8588,_0x38f236,_0x458af1,_0x52bd45]),_0x543512(()=>{const _0xdc6e0c=_0x32dc53;if(!bo(_0x2ad89f))return;let _0x4a26e8=!0x0,_0x345e15={'unitId':_0x458af1,'tableId':_0x38f236,'viewId':_0x52bd45,'filters':[_0x2ad89f[_0xdc6e0c(0x14f)]??null]};return _0x5e8588[_0xdc6e0c(0x1d6)](_0x458af1,_0x3fff56['current'],_0x345e15)['then'](_0x380106=>{const _0x691b6f=_0xdc6e0c;_0x4a26e8&&_0x380106&&(_0x42809c(_0x380106),_0x35a31d(_0x5e8588[_0x691b6f(0x337)](_0x458af1,_0x3fff56[_0x691b6f(0x23e)])??null),_0x376743(!0x1));})[_0xdc6e0c(0x308)](_0xf8e1f3=>{const _0x2f6e53=_0xdc6e0c;_0x31eb33[_0x2f6e53(0x1a3)](_0x2f6e53(0x12f),_0xf8e1f3),_0x4a26e8&&(_0x42809c(null),_0x376743(!0x0));}),()=>{_0x4a26e8=!0x1;};},[_0x31eb33,_0x5e8588,_0x38f236,_0x458af1,_0x2ad89f,_0x52bd45]),!_0x58cf1e||!bo(_0x2ad89f))return null;let _0x5c64c5=_0x5e8588['getChartRuntime'](_0x458af1,_0x3fff56[_0x32dc53(0x23e)])===_0x2f4d9d?_0x2f4d9d:null,_0x26ee87=_0x17bdbe?_0x5c238f(_0x32dc53(0x1e8),{'className':_0x32dc53(0x1f9),'style':{'gridTemplateRows':_0x2ad89f['config'][_0x32dc53(0x2f2)]===_0x32dc53(0xf9)?_0x32dc53(0x11a):_0x32dc53(0x1ea)},'children':[_0x2ad89f[_0x32dc53(0x2b0)][_0x32dc53(0x2f2)]!==_0x32dc53(0x173)&&_0x5c64c5&&_0x1fa005('div',{'className':_0x32dc53(0x360),'children':_0x1fa005(Ir,{'isRowDirection':_0x18785d(_0x2ad89f[_0x32dc53(0x2b0)][_0x32dc53(0x1eb)]['orient']),'runtime':_0x5c64c5})}),_0x2ad89f[_0x32dc53(0x2b0)][_0x32dc53(0x2f2)]!=='chart'&&_0x1fa005('div',{'className':_0x32dc53(0x14e),'children':_0x1fa005(ki,{'pivot':_0x2ad89f['config'][_0x32dc53(0x10d)],'view':_0x17bdbe[_0x32dc53(0x3d6)]})})]}):_0x1fa005(_0x32dc53(0x1e8),{'className':_0x32dc53(0x158),'children':_0x4ff7f9?_0x52d517['t'](_0x32dc53(0x143)):_0x52d517['t']('bases-dashboard-ui.pivot.calculating')});return _0x5c238f(_0x32dc53(0x1e8),{'className':_0x32dc53(0x113),'children':[_0x1fa005(_0x32dc53(0x1e8),{'className':_0x32dc53(0x3fc),'children':_0x26ee87}),_0x24fccf&&_0x1fa005(vo,{'config':_0x2ad89f[_0x32dc53(0x2b0)],'runtime':_0x5c64c5,'table':_0x58cf1e,'onChange':_0x5c1f63=>{const _0x4b83d5=_0x32dc53;_0x565c58[_0x4b83d5(0x2be)](_0x22ea58['id'],{'unitId':_0x458af1,'tableId':_0x38f236,'viewId':_0x52bd45,'patch':_0x5c1f63})[_0x4b83d5(0x308)](_0x1b572c=>_0x31eb33[_0x4b83d5(0x1a3)](_0x4b83d5(0x39a),_0x1b572c));}})]});}function bo(_0x34e123){const _0x409370=_0x3447f8;return(_0x34e123==null?void 0x0:_0x34e123[_0x409370(0x1b9)])===_0x4da0de[_0x409370(0x1ec)]&&typeof _0x34e123[_0x409370(0x2b0)]==_0x409370(0x2f1)&&_0x34e123[_0x409370(0x2b0)]!==null&&_0x409370(0x10d)in _0x34e123[_0x409370(0x2b0)]&&_0x409370(0x1eb)in _0x34e123[_0x409370(0x2b0)]&&_0x409370(0x2f2)in _0x34e123[_0x409370(0x2b0)];}let xo=class extends _0x47ac6f{constructor(_0x51c5f2,_0x54f871,_0x31f053,_0x2c7026,_0x416925,_0xabc562){const _0x3d7725=_0x3447f8;super(),this[_0x3d7725(0x36c)](_0x54f871['register']({'type':_0x4da0de[_0x3d7725(0x1ec)],'renderMode':_0x3d7725(0x30f),'icon':_0x551361,'component':yo,'menu':{get 'label'(){const _0x3ec0d4=_0x3d7725;return _0xabc562['t'](_0x3ec0d4(0x1a9));},get 'description'(){const _0x5c948e=_0x3d7725;return _0xabc562['t'](_0x5c948e(0x1a5));},get 'defaultName'(){const _0x18d305=_0x3d7725;return _0xabc562['t'](_0x18d305(0x270));}}})),this[_0x3d7725(0x36c)](_0x51c5f2['register'](So(_0x31f053,_0x2c7026,_0x416925,_0xabc562)));}};xo=Or([Y(0x0,_0x3460c3),Y(0x1,_0x198cb9),Y(0x2,_0x1e6fb0(_0x4e6cdd)),Y(0x3,_0x1ec317),Y(0x4,_0x58608a),Y(0x5,_0x1e6fb0(_0x255457))],xo);function So(_0x28de39,_0x4658d9,_0x3a7df1,_0x2b8518){const _0x2bc5fb=_0x3447f8;return{'change$':_0x1691f8(_0x28de39['change$'],_0x3a7df1[_0x2bc5fb(0x214)]),'component':Ja,get 'labels'(){const _0x5ca943=_0x2bc5fb;return{'add':_0x2b8518['t'](_0x5ca943(0x19b)),'configure':_0x51fbed=>_0x2b8518['t'](_0x5ca943(0x291),_0x51fbed),'delete':_0x2b8518['t']('bases-dashboard-ui.dashboard.delete'),'new':_0x2b8518['t']('bases-dashboard-ui.dashboard.new'),'rename':_0x2b8518['t']('bases-dashboard-ui.dashboard.rename'),'search':_0x2b8518['t'](_0x5ca943(0xf4)),'section':_0x2b8518['t']('bases-dashboard-ui.dashboard.section')};},'getItems':_0x45b69d=>{const _0x4537b1=_0x2bc5fb;let _0x28a675=_0x28de39[_0x4537b1(0x29d)](_0x45b69d);return _0x28a675['dashboardOrder'][_0x4537b1(0x30c)](_0x193607=>{const _0xc965ce=_0x4537b1;let _0x2be8bd=_0x28a675['dashboards'][_0x193607];return _0x2be8bd?[{'id':_0x2be8bd['id'],'name':_0x2be8bd[_0xc965ce(0x2cd)],'readonly':!_0x314d1d(_0x3a7df1,_0x45b69d,_0x2be8bd['id'])}]:[];});},'create':async _0x1b6352=>{const _0xc72793=_0x2bc5fb;let _0x1fa413=_0x28de39['getResource'](_0x1b6352),_0x496866=_0xc72793(0x13a)+_0x2aef82(0x8),_0x36e8cc=Co(_0x1fa413['dashboardOrder']['flatMap'](_0xf32ba=>{const _0x3bd9e9=_0xc72793;let _0x23a9ae=_0x1fa413[_0x3bd9e9(0x1fc)][_0xf32ba];return _0x23a9ae?[_0x23a9ae[_0x3bd9e9(0x2cd)]]:[];}),_0x3705cb=>_0x2b8518['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x3705cb)));return await _0x4658d9[_0xc72793(0x2be)](_0x15bed1['id'],{'unitId':_0x1b6352,'dashboard':{'id':_0x496866,'name':_0x36e8cc,'widgetOrder':[],'widgets':{}}})?_0x496866:null;},'rename':async(_0x52e180,_0x162647,_0x5b25a3)=>{const _0x5f35ab=_0x2bc5fb;let _0x149d6e=_0x28de39[_0x5f35ab(0x2cf)](_0x52e180,_0x162647);return!!(_0x149d6e&&await _0x4658d9['executeCommand'](_0x51a517['id'],{'unitId':_0x52e180,'dashboard':{..._0x149d6e,'name':_0x5b25a3}}));},'remove':(_0x29dae4,_0x51465b)=>_0x4658d9[_0x2bc5fb(0x2be)](_0x56eacd['id'],{'unitId':_0x29dae4,'dashboardId':_0x51465b})};}function Co(_0x3718ce,_0x22921c){const _0x5c6790=_0x3447f8;let _0x19c750=new Set(_0x3718ce),_0x1e8749=_0x19c750['size']+0x1,_0xbd30ea=_0x22921c(_0x1e8749);for(;_0x19c750[_0x5c6790(0x3a4)](_0xbd30ea);)_0x1e8749+=0x1,_0xbd30ea=_0x22921c(_0x1e8749);return _0xbd30ea;}let wo=class extends _0x4b5524{constructor(_0x34921d=hr,_0x475234,_0x1ca8ce){const _0x2aa227=_0x3447f8;super(),this['_config']=_0x34921d,this['_injector']=_0x475234,this[_0x2aa227(0x3dc)]=_0x1ca8ce;let {..._0x1b7d62}=_0x2b2cf0({},hr,this[_0x2aa227(0x2ae)]);this[_0x2aa227(0x3dc)][_0x2aa227(0x1ef)](mr,_0x1b7d62);}[_0x3447f8(0x192)](){const _0x3416cc=_0x3447f8;this[_0x3416cc(0x3e5)][_0x3416cc(0x1fa)]([kr]),this[_0x3416cc(0x3e5)][_0x3416cc(0x1fa)]([Gr]),this[_0x3416cc(0x3e5)][_0x3416cc(0x1fa)]([xo]);}[_0x3447f8(0xec)](){const _0x5b538c=_0x3447f8;_0x3ce29c(this[_0x5b538c(0x3e5)],[[kr],[Gr],[xo]]);}};Pr(wo,_0x3447f8(0x1b9),_0x6e7cef['UNIVER_BASE']),Pr(wo,_0x3447f8(0x255),_0x3447f8(0x206)),Pr(wo,_0x3447f8(0x3b1),fr),Pr(wo,_0x3447f8(0x176),pr),wo=Or([_0xc92a94(_0x267ea2,_0x12b6ef,_0x3c0cd9,_0x22f198,_0x100373,_0x442bae),Y(0x1,_0x1e6fb0(_0x49fd9b)),Y(0x2,_0x56e562)],wo);export{na as UniverBaseDashboardMobileUIPlugin,wo as UniverBaseDashboardUIPlugin};
|
|
1
|
+
const _0x2353bc=_0x1cf6;(function(_0x3fe7b4,_0x293bd9){const _0x32e535=_0x1cf6,_0x4977ed=_0x3fe7b4();while(!![]){try{const _0x2ec9ce=-parseInt(_0x32e535(0x2b0))/0x1*(parseInt(_0x32e535(0x50e))/0x2)+-parseInt(_0x32e535(0x2d5))/0x3*(-parseInt(_0x32e535(0x1f4))/0x4)+-parseInt(_0x32e535(0x2e8))/0x5*(-parseInt(_0x32e535(0x437))/0x6)+parseInt(_0x32e535(0x3fb))/0x7+parseInt(_0x32e535(0x2b4))/0x8+parseInt(_0x32e535(0x213))/0x9*(-parseInt(_0x32e535(0x234))/0xa)+-parseInt(_0x32e535(0x1dc))/0xb*(parseInt(_0x32e535(0x2c3))/0xc);if(_0x2ec9ce===_0x293bd9)break;else _0x4977ed['push'](_0x4977ed['shift']());}catch(_0x315a9f){_0x4977ed['push'](_0x4977ed['shift']());}}}(_0x5550,0x475d7));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x50185b,BASES_DASHBOARD_GRID_COLUMNS as _0x20c9d7,BaseChartRuntimeService as _0x22ef82,BaseDashboardResourceService as _0x5e40a3,BaseDashboardWidgetType as _0x342116,CreateBaseDashboardCommand as _0x2ef5a6,DeleteBaseDashboardCommand as _0x22aa0a,RemoveBaseDashboardWidgetCommand as _0x20648d,UniverBaseDashboardPlugin as _0x1615ad,UpdateBaseDashboardCommand as _0x5cbeb4,UpdateBasePivotViewCommand as _0x303df3,UpsertBaseDashboardWidgetCommand as _0x2b3367,canEditBaseDashboard as _0x25b5d2,canEditBasePivotView as _0x2ecb1b,createBasePivotTable as _0x1c8584,resolveBasePivotChartRowDirection as _0x2fa6dd}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x9b2833,BaseMobileDrawer as _0x4989cc,BaseMobileFilterOperand as _0x5c4dcf,BaseMobileFilterPanel as _0x1ab4e1,BaseUnitCollaborationStatus as _0xf8bfea,FormulaEditorPanel as _0x55d652,IBaseDashboardUIExtensionRegistryService as _0x509544,IBaseViewUIRegistryService as _0x5eecd3,MobileFormulaEditorPanel as _0x33c106,UniverBasesMobileUIPlugin as _0x139492,UniverBasesUIPlugin as _0x151faa,formulaToEditorFormula as _0x1b3454,normalizeEditorFormulaForConfig as _0x24d391,toFormulaMenuTables as _0x57cd99,toMenuFields as _0x5249f3}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x170e20,ChartAxisSection as _0x185c32,ChartColorField as _0x38703b,ChartCommonDataMappingSection as _0x26c1b7,ChartEditBlockTitle as _0x2db9bd,ChartEditPanel as _0x3812e6,ChartEditPanelSection as _0x8fe1f1,ChartEditPanelTab as _0x139866,ChartEditPanelTabs as _0x35a378,ChartEditorCapability as _0x1958f1,ChartEditorProvider as _0x4bacfa,ChartFunnelStyleSection as _0x666ad2,ChartGradientFillField as _0x34de73,ChartGridlinesAndTicksSection as _0x1f6674,ChartHeatmapStyleSection as _0x3c01f2,ChartHostAdapter as _0x29d554,ChartIndicatorLineSection as _0x5f2295,ChartLegendSection as _0x1dc64f,ChartLineAndAreaSection as _0x457b13,ChartNumberFormatAtom as _0x2f8e19,ChartParetoSeriesSection as _0x35a412,ChartPieStyleSection as _0x34a105,ChartRadarStyleSection as _0x4c7c71,ChartRelationStyleSection as _0x11ce9e,ChartSectionAccordion as _0x28ef86,ChartSectionAccordionContent as _0xaf7aad,ChartSectionAccordionItem as _0x1358f8,ChartSectionAccordionTrigger as _0x352fb4,ChartSeriesSection as _0x3bcbff,ChartStackField as _0x3210ae,ChartStyleSection as _0x466794,ChartThemeField as _0x1603db,ChartTitlesSection as _0xe815e7,ChartTrendlineSection as _0x3c8ddd,ChartTypeField as _0x195039,ChartTypeSpecificDataSection as _0x45db86,ChartTypeSpecificSetupSection as _0x3eaf0a,ChartTypeSpecificStyleSection as _0x5d0cdf,ChartUIService as _0x3ae17a,ChartViewStateRegistry as _0x2cea70,ChartWaterfallSetupFields as _0x4e37ce,ChartWaterfallStyleSection as _0x217c37,ChartWordCloudStyleSection as _0x5ac713,DEFAULT_CHART_AXIS_VALUES as _0x5caca4,DEFAULT_CHART_FUNNEL_VALUES as _0x26697d,DEFAULT_CHART_HEATMAP_VALUES as _0x296680,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x195779,DEFAULT_CHART_LEGEND_VALUES as _0x4fe0eb,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x499ec0,DEFAULT_CHART_PARETO_VALUES as _0x4cf110,DEFAULT_CHART_PIE_VALUES as _0x1db8a1,DEFAULT_CHART_RADAR_VALUES as _0x35ac4f,DEFAULT_CHART_RELATION_VALUES as _0x2da675,DEFAULT_CHART_SERIES_VALUES as _0x396e30,DEFAULT_CHART_STYLE_VALUES as _0x5792d9,DEFAULT_CHART_TITLE_VALUES as _0x21806e,DEFAULT_CHART_TRENDLINE_VALUES as _0x563c89,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x2c231e,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x31f02c,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x8c0c35,MobileChartEditorControls as _0xac1dd7,MobileChartEditorProvider as _0x2dc504,UniverChartMobileUIPlugin as _0x2c95bb,UniverChartUIPlugin as _0x4a2c56,buildChartTypeSelectOptions as _0x2dbfb8,chartTypeSupportsCapability as _0x326a9b,chartTypeSupportsLineAndAreaStyle as _0x59d745,useChartEditorChartType as _0x1f2e67,useChartEditorHasRightAxis as _0x51b799}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x38c17a}from'@univerjs-pro/license';import{ShapeFormulaService as _0xbf6a95,UniverShapeEditorPlugin as _0x47e249,createFormulaShapeData as _0x11d1a1}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0x557eea,BaseFilterConjunction as _0xf09c6,BaseFilterOperator as _0x17381a,BaseViewType as _0x5ee6b5,DependentOn as _0x4fc5af,Disposable as _0x2e76da,ICommandService as _0x32452d,IConfigService as _0x5a5187,IImageIoService as _0x5482b5,ILogService as _0x34ac8c,IPermissionService as _0x4c7ae7,IUndoRedoService as _0x123793,IUniverInstanceService as _0x4074e5,ImageSourceType as _0x26a785,Inject as _0x2a19f9,Injector as _0x5a8661,LocaleService as _0x5cd3ee,ObjectPermissionService as _0x1adc86,Plugin as _0x52aef1,RedoCommand as _0x8d3b46,ThemeService as _0x277079,UndoCommand as _0x4170dd,UniverInstanceType as _0x51ec78,createParagraphId as _0x112de2,dateKit as _0x22c7cc,generateRandomId as _0x325e5d,merge as _0x1731fc,numfmt as _0x3f4aae,touchDependencies as _0x445a23}from'@univerjs/core';import{UniverDocsUIPlugin as _0x220c65}from'@univerjs/docs-ui';function _0x1cf6(_0x3c0f50,_0x125c99){_0x3c0f50=_0x3c0f50-0x1a8;const _0x5550f1=_0x5550();let _0x1cf6d7=_0x5550f1[_0x3c0f50];return _0x1cf6d7;}import{ArrowDownIcon as _0x5c6cd4,ArrowUpIcon as _0x19b9b0,AscendingIcon as _0x4c6d55,CalendarIcon as _0x951fbe,ChartIcon as _0x433eb4,CloseIcon as _0x122a02,DeleteIcon as _0x2d17f6,DescendingIcon as _0x59e3b9,ExpandIcon as _0x54cca2,FilterIcon as _0x425726,GripVerticalIcon as _0x1487d8,IncreaseIcon as _0x5155a3,MoreDownIcon as _0xf77a3b,MoreHorizontalIcon as _0x27b384,NumberIcon as _0x5a5ded,PenIcon as _0x392d1f,PivotTableIcon as _0x3ad3c2,ProtectIcon as _0x7e2f55,RedoIcon as _0x44a42f,SearchIcon as _0x51aac6,TextIcon as _0x264f2e,UndoIcon as _0x4f90a3}from'@univerjs/icons';import{combineLatest as _0x4d74fa,map as _0x299cc9,merge as _0x53dd21,skip as _0x260464}from'rxjs';import{SetBasePermissionCommand as _0x42d2ec,getBaseDashboardPermissionObjectId as _0x275cd2}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x4d763c}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x1869dd,ShapeLineTypeEnum as _0x19c511,ShapeTypeEnum as _0x4387d7}from'@univerjs-pro/engine-shape';import{Button as _0x1b3e3b,Checkbox as _0x3cc061,DatePicker as _0x1596d0,Dialog as _0x4b580d,DropdownMenu as _0x492a1e,Input as _0x2c53ee,InputNumber as _0x1c2086,MobileDialog as _0x138a17,MobileDropdownMenu as _0x4083c0,MobileSelect as _0x3b7f81,MultipleSelect as _0x3ab7df,Segmented as _0x116fe9,Select as _0xce6b1b,Textarea as _0x136f1a,Tooltip as _0x56b693,borderClassName as _0x1298ac,clsx as _0x52fed8,scrollbarClassName as _0x2a22a5}from'@univerjs/design';import{UnitObject as _0x4f7ac1}from'@univerjs/protocol';import{ILayoutService as _0x55d16d,ObjectPermissionButton as _0x468217,openObjectPermissionDialog as _0x14db5b,useDependency as _0x39b411,useObservable as _0x499abf}from'@univerjs/ui';import{useCallback as _0xd8821d,useEffect as _0x38e78f,useMemo as _0x56a185,useRef as _0x35f949,useState as _0x2be63d}from'react';import{Fragment as _0xa1bb43,jsx as _0x4dabb7,jsxs as _0x2b00c1}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x5cdbed,ChartRenderMode as _0x268ec5,ChartThemeService as _0x23197c,ChartTypeBits as _0x3414f3,ChartWaterfallStyleTarget as _0x6a9b13,IChartRenderModelManagerService as _0xc28907,RTLChartStyle as _0x46c996,chartBitsUtils as _0x4c5ed5,chartTypeCanUseTrendLine as _0xae124c,resolveChartRuntimeStyle as _0xca4f0b,resolveDefaultChartHostFrameStyle as _0x1b98f6,toChartModelUpdate as _0x485197}from'@univerjs-pro/engine-chart';import{createPortal as _0x1f6ddd}from'react-dom';import{PivotCellStyleTypeEnum as _0x5d656b,PivotDataFieldDataTypeEnum as _0x1fe7b3,PivotDataFieldSortOperatorEnum as _0x428fd4,PivotFilterTypeEnum as _0x1b814d,PivotLayoutTypeEnum as _0x426ac9,PivotSubtotalPositionEnum as _0x10ab45,PivotSubtotalTypeEnum as _0x282c8a,PivotTableFiledAreaEnum as _0x4c815c,PivotTableValuePositionEnum as _0x288ba5,isErrorValue as _0x426ce3,isPrefixValue as _0x1b2084}from'@univerjs-pro/engine-pivot';var fr=_0x2353bc(0x207),pr=_0x2353bc(0x407);const mr=_0x2353bc(0x2f8),hr={};function gr(_0x1fa658,_0x420303){const _0x5ecb5a=_0x2353bc;let _0x3baf80=_0x39b411(_0x4c7ae7),_0x970187=_0x25b5d2(_0x3baf80,_0x1fa658,_0x420303);return _0x499abf(()=>_0x3baf80[_0x5ecb5a(0x391)][_0x5ecb5a(0x41d)](_0x299cc9(()=>_0x25b5d2(_0x3baf80,_0x1fa658,_0x420303))),_0x970187,!0x1,[_0x420303,_0x3baf80,_0x1fa658]);}function _r(_0x12786b,_0x4cb2b8,_0x290f00){const _0x1394bb=_0x2353bc;let _0x457d99=_0x39b411(_0x4c7ae7),_0x1103c2=_0x2ecb1b(_0x457d99,_0x12786b,_0x4cb2b8,_0x290f00);return _0x499abf(()=>_0x457d99['permissionPointUpdate$'][_0x1394bb(0x41d)](_0x299cc9(()=>_0x2ecb1b(_0x457d99,_0x12786b,_0x4cb2b8,_0x290f00))),_0x1103c2,!0x1,[_0x457d99,_0x4cb2b8,_0x12786b,_0x290f00]);}function vr(_0x4c558c,_0x9fdb4d=_0x2353bc(0x3d5)){const _0x4627bc=_0x2353bc;return{'backgroundImage':_0x4627bc(0x3df)+JSON['stringify'](_0x4c558c)+')','backgroundPosition':_0x9fdb4d===_0x4627bc(0x42b)?_0x4627bc(0x2e2):_0x4627bc(0x4b2),'backgroundRepeat':_0x9fdb4d==='repeat'?_0x4627bc(0x42b):_0x4627bc(0x2bd),'backgroundSize':_0x9fdb4d===_0x4627bc(0x3d5)?'cover':_0x4627bc(0x3b6)};}const yr={'alignment':_0x2353bc(0x20a),'currency':_0x2353bc(0x200),'decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x2353bc(0x3b6),'numberFormat':_0x2353bc(0x3f3)},br={'CNY':'¥','EUR':'€','USD':'$'};function xr(_0x41706e){const _0x13a8ff=_0x2353bc;var _0x3560d5;let _0x380462=Tr(((_0x3560d5=_0x41706e[_0x13a8ff(0x1d8)][_0x13a8ff(0x3e3)])==null||(_0x3560d5=_0x3560d5[_0x13a8ff(0x348)])==null?void 0x0:_0x3560d5['pattern'])??'');return{...yr,..._0x380462,..._0x41706e[_0x13a8ff(0x294)]};}function Sr(_0x2a8dc1,_0xd71f9d){const _0x53f312=_0x2353bc;let _0x28391b={..._0x2a8dc1[_0x53f312(0x294)],..._0xd71f9d},_0x523c9a=xr({..._0x2a8dc1,'appearance':_0x28391b}),_0x3918f4=_0x2a8dc1['shapeData'][_0x53f312(0x3e3)]??{'formula':''};return{..._0x2a8dc1,'appearance':_0x28391b,'shapeData':{..._0x2a8dc1[_0x53f312(0x1d8)],'formulaBinding':{..._0x3918f4,'numberFormat':{'pattern':Cr(_0x523c9a[_0x53f312(0x348)],_0x523c9a[_0x53f312(0x201)],_0x523c9a[_0x53f312(0x241)])}}}};}function Cr(_0x3973a3,_0x2d6d26,_0x5d86b8){const _0x368608=_0x2353bc;let _0x164bed=Math['max'](0x0,Math[_0x368608(0x314)](0x8,Math[_0x368608(0x384)](_0x2d6d26))),_0x3c3aa5=_0x164bed?'.'+'0'[_0x368608(0x42b)](_0x164bed):'';switch(_0x3973a3){case _0x368608(0x3c4):return'0'+_0x3c3aa5;case _0x368608(0x327):return'0'+_0x3c3aa5+'%';case _0x368608(0x241):return(br[_0x5d86b8]??_0x5d86b8)+_0x368608(0x257)+_0x3c3aa5;case _0x368608(0x39e):return'#,##0'+_0x3c3aa5;case _0x368608(0x1be):case _0x368608(0x3f3):return _0x368608(0x400);}}function wr(_0xad118b,_0x4eb116,_0x2b9b34){const _0x161ee8=_0x2353bc;return _0x2b9b34[_0x161ee8(0x348)]!==_0x161ee8(0x1be)||typeof _0x4eb116!=_0x161ee8(0x3c4)||!Number['isFinite'](_0x4eb116)?_0xad118b:new Intl[(_0x161ee8(0x38e))](void 0x0,{'notation':_0x161ee8(0x1be),'minimumFractionDigits':_0x2b9b34['decimalPlaces']??0x0,'maximumFractionDigits':_0x2b9b34['decimalPlaces']??0x0})[_0x161ee8(0x347)](_0x4eb116);}function Tr(_0x2f543a){const _0x47b3c0=_0x2353bc;var _0x3237f4,_0x43afd7;if(!_0x2f543a||_0x2f543a===_0x47b3c0(0x400))return{};let _0x407347=_0x2f543a[_0x47b3c0(0x208)](/\.([0#]+)/),_0x332cab=(_0x407347==null||(_0x3237f4=_0x407347[0x1])==null?void 0x0:_0x3237f4[_0x47b3c0(0x4da)])??0x0;if(_0x2f543a['includes']('%'))return{'decimalPlaces':_0x332cab,'numberFormat':_0x47b3c0(0x327)};let _0x367d33=(_0x43afd7=Object[_0x47b3c0(0x2ff)](br)[_0x47b3c0(0x397)](([,_0xae1bca])=>_0x2f543a[_0x47b3c0(0x331)](_0xae1bca)))==null?void 0x0:_0x43afd7[0x0];return _0x367d33?{'currency':_0x367d33,'decimalPlaces':_0x332cab,'numberFormat':'currency'}:{'decimalPlaces':_0x332cab,'numberFormat':_0x2f543a['includes'](',')?'grouped':'number'};}const Er={'center':_0x2353bc(0x4b2),'left':_0x2353bc(0x4e6),'right':'flex-end'};function Dr({dashboardId:_0x48d429,unitId:_0x5b6f48,widget:_0x983fc8}){const _0x26021b=_0x2353bc;var _0x285c28,_0x1643a4,_0x5d79db,_0x1f276e,_0x736c6e,_0x37f13c,_0x20c8f6,_0x392b5c,_0x19bc59;let _0x59cd7d=_0x39b411(_0xbf6a95),_0x54d9ac=_0x39b411(_0x5482b5),_0x9bdeff=_0x39b411(_0x5cd3ee),_0x1105eb=_0x56a185(()=>({'hostType':_0x51ec78[_0x26021b(0x4eb)],'unitId':_0x5b6f48,'subUnitId':_0x48d429,'shapeId':_0x983fc8['id']}),[_0x48d429,_0x5b6f48,_0x983fc8['id']]),[_0x13929c,_0x20f4e5]=_0x2be63d(()=>_0x59cd7d[_0x26021b(0x1c6)](_0x1105eb)),[_0x561b83,_0x2a02d9]=_0x2be63d(()=>{const _0x31d6ef=_0x26021b;var _0x50af33;return(_0x50af33=_0x59cd7d['getResult'](_0x1105eb))==null?void 0x0:_0x50af33[_0x31d6ef(0x284)];}),[_0x3bade5,_0x29e01c]=_0x2be63d(),_0x4fce3b=_0x35f949(null),_0x5bda28=_0x35f949(null),_0x23555b=xr(_0x983fc8);_0x38e78f(()=>{const _0x572182=_0x26021b;let _0x29665c=_0x59cd7d[_0x572182(0x4f6)][_0x572182(0x2f4)](_0x10c5b1=>{const _0x9cd0fa=_0x572182;_0x10c5b1[_0x9cd0fa(0x2f7)]===_0x5b6f48&&_0x10c5b1[_0x9cd0fa(0x4d4)]===_0x48d429&&_0x10c5b1[_0x9cd0fa(0x1ce)]===_0x983fc8['id']&&(_0x20f4e5(_0x10c5b1['presentation']),_0x2a02d9(_0x10c5b1['result'][_0x9cd0fa(0x284)]));});return()=>_0x29665c[_0x572182(0x20f)]();},[_0x48d429,_0x59cd7d,_0x1105eb,_0x5b6f48,_0x983fc8['id']]),_0x38e78f(()=>{const _0x72ea69=_0x26021b;let _0x57dfb8=_0x23555b[_0x72ea69(0x48f)];if(!_0x57dfb8||_0x57dfb8[_0x72ea69(0x4b3)]!==_0x26a785[_0x72ea69(0x43f)])return;let _0x555523=_0x54d9ac['getImageSourceCache'](_0x57dfb8[_0x72ea69(0x24c)],_0x57dfb8[_0x72ea69(0x4b3)]);if(_0x555523!=null&&_0x555523['src'])return;let _0x1a7326=!0x0;return _0x54d9ac[_0x72ea69(0x1fb)](_0x57dfb8['source'])[_0x72ea69(0x388)](_0x9057b0=>{_0x1a7326&&_0x29e01c({'source':_0x57dfb8['source'],'value':_0x9057b0});})['catch'](()=>void 0x0),()=>{_0x1a7326=!0x1;};},[_0x23555b['backgroundImage'],_0x54d9ac]);let _0x325981=((_0x285c28=_0x23555b[_0x26021b(0x48f)])==null?void 0x0:_0x285c28[_0x26021b(0x4b3)])===_0x26a785[_0x26021b(0x43f)]?((_0x1643a4=_0x54d9ac[_0x26021b(0x3c3)](_0x23555b[_0x26021b(0x48f)][_0x26021b(0x24c)],_0x23555b[_0x26021b(0x48f)][_0x26021b(0x4b3)]))==null?void 0x0:_0x1643a4[_0x26021b(0x2dd)])??((_0x3bade5==null?void 0x0:_0x3bade5['source'])===_0x23555b[_0x26021b(0x48f)][_0x26021b(0x24c)]?_0x3bade5[_0x26021b(0x284)]:''):((_0x5d79db=_0x23555b[_0x26021b(0x48f)])==null?void 0x0:_0x5d79db[_0x26021b(0x24c)])??'',_0x555868=_0x983fc8[_0x26021b(0x1d8)]['shapeText'],_0x39a2ad=_0x555868&&_0x26021b(0x4c1)in _0x555868?(_0x1f276e=_0x555868[_0x26021b(0x4c1)])==null?void 0x0:_0x1f276e[_0x26021b(0x4c4)]:void 0x0,_0xf6462b=wr((_0x13929c==null?void 0x0:_0x13929c[_0x26021b(0x452)])??'',_0x561b83,_0x23555b),_0x8f34a8=_0x983fc8[_0x26021b(0x1d8)][_0x26021b(0x47e)],_0x296aad=_0x983fc8[_0x26021b(0x1d8)][_0x26021b(0x445)],_0x399cb7=_0x39a2ad==null||(_0x736c6e=_0x39a2ad[_0x26021b(0x50b)])==null?void 0x0:_0x736c6e[_0x26021b(0x33c)],_0x638de5=_0x983fc8[_0x26021b(0x24b)]??_0x983fc8[_0x26021b(0x448)]??'';return _0x38e78f(()=>{const _0x465411=_0x26021b;let _0x2e5627=_0x4fce3b['current'],_0x51ddf8=_0x5bda28['current'];if(!_0x2e5627||!_0x51ddf8)return;let _0x5e76ab=()=>{const _0x88e4b5=_0x1cf6;if(_0x23555b[_0x88e4b5(0x1e2)]===_0x88e4b5(0x509)||!_0x2e5627['clientWidth']||!_0x2e5627['clientHeight']){_0x51ddf8[_0x88e4b5(0x3f1)]['fontSize']=_0x23555b[_0x88e4b5(0x444)]+'px';return;}let _0x5780ce=0x1,_0x485246=0x48,_0x46204e=_0x5780ce;for(;_0x5780ce<=_0x485246;){let _0x4479f9=Math[_0x88e4b5(0x1ef)]((_0x5780ce+_0x485246)/0x2);_0x51ddf8[_0x88e4b5(0x3f1)][_0x88e4b5(0x444)]=_0x4479f9+'px',_0x51ddf8[_0x88e4b5(0x4dd)]<=_0x2e5627[_0x88e4b5(0x2b8)]&&_0x51ddf8[_0x88e4b5(0x48e)]<=_0x2e5627[_0x88e4b5(0x249)]?(_0x46204e=_0x4479f9,_0x5780ce=_0x4479f9+0x1):_0x485246=_0x4479f9-0x1;}_0x51ddf8['style'][_0x88e4b5(0x444)]=_0x46204e+'px';};if(_0x5e76ab(),typeof ResizeObserver>'u')return;let _0x392835=new ResizeObserver(_0x5e76ab);return _0x392835['observe'](_0x2e5627),()=>_0x392835[_0x465411(0x1ad)]();},[_0x23555b[_0x26021b(0x444)],_0x23555b[_0x26021b(0x1e2)],_0xf6462b]),_0x2b00c1(_0x26021b(0x442),{'data-dashboard-formula-shape':_0x983fc8['id'],'className':_0x26021b(0x2ad),'style':{'backgroundColor':((_0x37f13c=_0x983fc8[_0x26021b(0x294)])==null?void 0x0:_0x37f13c[_0x26021b(0x394)])??((_0x8f34a8==null?void 0x0:_0x8f34a8[_0x26021b(0x446)])===_0x1869dd[_0x26021b(0x1e9)]?_0x8f34a8[_0x26021b(0x33a)]??void 0x0:void 0x0),'border':(_0x296aad==null?void 0x0:_0x296aad['lineStrokeType'])===_0x19c511[_0x26021b(0x289)]?(_0x296aad[_0x26021b(0x3c9)]??0x1)+'px\x20solid\x20'+(_0x296aad[_0x26021b(0x33a)]??_0x26021b(0x2e9)):void 0x0,'borderRadius':_0x983fc8[_0x26021b(0x34b)]===_0x4387d7['RoundRect']?0xc:void 0x0,'color':((_0x20c8f6=_0x983fc8[_0x26021b(0x294)])==null?void 0x0:_0x20c8f6[_0x26021b(0x204)])??(_0x13929c==null?void 0x0:_0x13929c[_0x26021b(0x33a)])??(_0x399cb7==null||(_0x392b5c=_0x399cb7['cl'])==null?void 0x0:_0x392b5c[_0x26021b(0x491)])??void 0x0,'fontWeight':_0x399cb7!=null&&_0x399cb7['bl']?0x258:void 0x0,'textAlign':_0x23555b[_0x26021b(0x22e)]},'children':[_0x325981&&_0x4dabb7('img',{'src':_0x325981,'alt':'','aria-hidden':_0x26021b(0x1d5),'className':_0x26021b(0x454),'style':{'objectFit':((_0x19bc59=_0x23555b['backgroundImage'])==null?void 0x0:_0x19bc59['fit'])??_0x26021b(0x3d5)}}),_0x2b00c1(_0x26021b(0x442),{'className':_0x26021b(0x4bc),'children':[_0x638de5&&_0x4dabb7(_0x26021b(0x442),{'data-dashboard-formula-description':!0x0,'className':_0x26021b(0x252),'children':_0x638de5}),_0x4dabb7(_0x26021b(0x442),{'ref':_0x4fce3b,'data-dashboard-formula-value':!0x0,'aria-label':_0x638de5||_0x9bdeff['t'](_0x26021b(0x268)),'className':_0x26021b(0x22f),'style':{'justifyContent':Er[_0x23555b['alignment']]},'children':_0x4dabb7('span',{'ref':_0x5bda28,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x23555b[_0x26021b(0x1e2)],'className':_0x26021b(0x247),'children':_0xf6462b})})]})]});}function Y(_0x226977,_0x5c9ca8){return function(_0x5dff4d,_0x5c65d3){_0x5c9ca8(_0x5dff4d,_0x5c65d3,_0x226977);};}function Or(_0x31cfa6,_0x399b7f,_0x53415c,_0x38eadd){const _0x309298=_0x2353bc;var _0x4e895f=arguments['length'],_0x3c425f=_0x4e895f<0x3?_0x399b7f:_0x38eadd===null?_0x38eadd=Object[_0x309298(0x286)](_0x399b7f,_0x53415c):_0x38eadd,_0x9be2b9;if(typeof Reflect==_0x309298(0x43c)&&typeof Reflect[_0x309298(0x1f8)]==_0x309298(0x46e))_0x3c425f=Reflect[_0x309298(0x1f8)](_0x31cfa6,_0x399b7f,_0x53415c,_0x38eadd);else{for(var _0x54c9b9=_0x31cfa6['length']-0x1;_0x54c9b9>=0x0;_0x54c9b9--)(_0x9be2b9=_0x31cfa6[_0x54c9b9])&&(_0x3c425f=(_0x4e895f<0x3?_0x9be2b9(_0x3c425f):_0x4e895f>0x3?_0x9be2b9(_0x399b7f,_0x53415c,_0x3c425f):_0x9be2b9(_0x399b7f,_0x53415c))||_0x3c425f);}return _0x4e895f>0x3&&_0x3c425f&&Object[_0x309298(0x1cc)](_0x399b7f,_0x53415c,_0x3c425f),_0x3c425f;}let kr=class{constructor(_0x3a720e,_0x20a338,_0x306103){const _0x1d40a3=_0x2353bc;this[_0x1d40a3(0x1ea)]=_0x3a720e,this['_chartThemeService']=_0x20a338,this['_renderModelManager']=_0x306103;}[_0x2353bc(0x253)](){const _0x4fdfe3=_0x2353bc;return this['_renderModelManager'][_0x4fdfe3(0x4ca)](_0x268ec5['Dom'],this['_createContext']());}[_0x2353bc(0x307)](_0x7a2d38){const _0x551d23=_0x2353bc;let _0x28b375=_0x7a2d38[_0x551d23(0x37a)][_0x551d23(0x4e8)];if(!_0x28b375)throw Error(_0x551d23(0x1b6)+_0x7a2d38[_0x551d23(0x4a5)]+_0x551d23(0x20e));let _0xd72453=this[_0x551d23(0x1ea)]['getDirection']();return{'config':_0x28b375,'style':_0xca4f0b({..._0x7a2d38[_0x551d23(0x37a)]['style'],'runtime':_0x7a2d38[_0x551d23(0x37a)]['getRuntimeContext'](_0xd72453),'direction':_0xd72453},_0x28b375['type'])};}[_0x2353bc(0x381)](){const _0x12664f=_0x2353bc;return{'resolveHostStyle':({style:_0xfad8e})=>_0x1b98f6({'style':_0xfad8e,'getRenderColor':_0x4f553c=>this[_0x12664f(0x42e)][_0x12664f(0x3f8)](_0x4f553c)}),'resolveRenderBackgroundColor':({hostStyle:_0x38dc70})=>_0x38dc70['fill']};}};kr=Or([Y(0x0,_0x2a19f9(_0x5cd3ee)),Y(0x1,_0x2a19f9(_0x23197c)),Y(0x2,_0xc28907)],kr);function Ar(_0x20326a,_0x4f9651){const _0x5cb167=_0x2353bc;var _0x27698f;_0x20326a[_0x5cb167(0x3f1)][_0x5cb167(0x394)]=_0x4f9651[_0x5cb167(0x47e)]??_0x5cb167(0x505),_0x20326a[_0x5cb167(0x3f1)]['border']=(_0x27698f=_0x4f9651[_0x5cb167(0x42c)])!=null&&_0x27698f['color']&&_0x4f9651['border'][_0x5cb167(0x3c9)]?_0x4f9651[_0x5cb167(0x42c)][_0x5cb167(0x3c9)]+_0x5cb167(0x358)+_0x4f9651[_0x5cb167(0x42c)]['color']:'',_0x20326a[_0x5cb167(0x3f1)][_0x5cb167(0x50f)]=_0x4f9651[_0x5cb167(0x30d)]?_0x4f9651[_0x5cb167(0x30d)]+'px':'',_0x20326a[_0x5cb167(0x3f1)][_0x5cb167(0x271)]=_0x5cb167(0x395),_0x20326a[_0x5cb167(0x3f1)][_0x5cb167(0x221)]=_0x5cb167(0x2ec);}function jr(_0x2e4da4){'@babel/helpers - typeof';const _0x65fba7=_0x2353bc;return jr=typeof Symbol==_0x65fba7(0x46e)&&typeof Symbol[_0x65fba7(0x25e)]==_0x65fba7(0x4f4)?function(_0x4c4a9c){return typeof _0x4c4a9c;}:function(_0x5e8e63){const _0x5c3bb8=_0x65fba7;return _0x5e8e63&&typeof Symbol==_0x5c3bb8(0x46e)&&_0x5e8e63[_0x5c3bb8(0x419)]===Symbol&&_0x5e8e63!==Symbol[_0x5c3bb8(0x215)]?'symbol':typeof _0x5e8e63;},jr(_0x2e4da4);}function Mr(_0x16d32a,_0x22dc45){const _0x555271=_0x2353bc;if(jr(_0x16d32a)!=_0x555271(0x43c)||!_0x16d32a)return _0x16d32a;var _0x39fe94=_0x16d32a[Symbol['toPrimitive']];if(_0x39fe94!==void 0x0){var _0x20f17c=_0x39fe94[_0x555271(0x2ed)](_0x16d32a,_0x22dc45||_0x555271(0x431));if(jr(_0x20f17c)!=_0x555271(0x43c))return _0x20f17c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x22dc45===_0x555271(0x4ff)?String:Number)(_0x16d32a);}function Nr(_0x1b2372){const _0xbb8a1e=_0x2353bc;var _0x543d0f=Mr(_0x1b2372,'string');return jr(_0x543d0f)==_0xbb8a1e(0x4f4)?_0x543d0f:_0x543d0f+'';}function Pr(_0x1bd1ca,_0x15756a,_0x4f287d){const _0x236068=_0x2353bc;return(_0x15756a=Nr(_0x15756a))in _0x1bd1ca?Object[_0x236068(0x1cc)](_0x1bd1ca,_0x15756a,{'value':_0x4f287d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1bd1ca[_0x15756a]=_0x4f287d,_0x1bd1ca;}var Fr=class extends _0x2e76da{constructor(_0x2627f1,_0x41d875){const _0xe925a8=_0x2353bc;super(),this[_0xe925a8(0x4a5)]=_0x2627f1,this[_0xe925a8(0x299)]=_0x41d875,Pr(this,_0xe925a8(0x224),_0x268ec5['Dom']);}[_0x2353bc(0x3c1)](){const _0x2747a6=_0x2353bc;return{'width':Math['max'](0x1,this[_0x2747a6(0x299)][_0x2747a6(0x2b8)]),'height':Math['max'](0x1,this[_0x2747a6(0x299)][_0x2747a6(0x249)])};}[_0x2353bc(0x26a)](_0x1e83bc){const _0x42c504=_0x2353bc;Ar(this[_0x42c504(0x299)],_0x1e83bc);}async[_0x2353bc(0x4df)](){const _0x4a54c7=_0x2353bc;return this[_0x4a54c7(0x299)];}[_0x2353bc(0x1aa)](){const _0x41b344=_0x2353bc;return this[_0x41b344(0x299)][_0x41b344(0x3b1)];}[_0x2353bc(0x4af)](){}['markReady'](){}['markNotReady'](){}};function Ir({isRowDirection:_0x2acb18,runtime:_0x168129}){const _0x3a860b=_0x2353bc;let _0x497a47=_0x35f949(null),_0x314d78=_0x39b411(_0x5cd3ee),_0x528d9f=_0x39b411(_0x34ac8c),_0x4daed=_0x39b411(kr),_0x1dbdcd=_0x39b411(_0x277079);return _0x38e78f(()=>{const _0x57b2c1=_0x1cf6;let _0x123d13=_0x497a47[_0x57b2c1(0x38f)];if(!_0x123d13)return;_0x123d13[_0x57b2c1(0x48d)]();let {chartId:_0x531352,model:_0x58e3ab}=_0x168129,_0x4e2f34=_0x58e3ab[_0x57b2c1(0x30a)],_0x53c678=new Fr(_0x531352,_0x123d13),_0x3fca7a=_0x4daed['createDomChartInstance'](),_0x4c7887=!0x1,_0x470f80=null,_0x1671a4=null,_0x57e47d=null,_0x298592=null,_0x8fd474=!0x1,_0x2b459f=!0x1,_0x47ae73=Promise[_0x57b2c1(0x240)]();_0x3fca7a[_0x57b2c1(0x324)](_0x53c678);let _0x3fe789=()=>{const _0x17afd8=_0x57b2c1;var _0xb5754b,_0x118f2b,_0x4bc69c,_0x4f5d5f;if(document[_0x17afd8(0x3cb)]===_0x17afd8(0x395)||(_0xb5754b=(_0x118f2b=window)[_0x17afd8(0x27c)])!=null&&(_0xb5754b=_0xb5754b[_0x17afd8(0x2ed)](_0x118f2b,'(prefers-reduced-motion:\x20reduce)'))!=null&&_0xb5754b[_0x17afd8(0x285)]||(_0x4bc69c=(_0x4f5d5f=window)[_0x17afd8(0x27c)])!=null&&(_0x4bc69c=_0x4bc69c[_0x17afd8(0x2ed)](_0x4f5d5f,'print'))!=null&&_0x4bc69c[_0x17afd8(0x285)]||!_0x123d13[_0x17afd8(0x3b1)])return!0x1;let _0x51e2dd=_0x123d13[_0x17afd8(0x4db)]();return _0x51e2dd[_0x17afd8(0x3c9)]>0x0&&_0x51e2dd[_0x17afd8(0x312)]>0x0&&_0x51e2dd[_0x17afd8(0x214)]>0x0&&_0x51e2dd[_0x17afd8(0x2d0)]>0x0&&_0x51e2dd[_0x17afd8(0x20a)]<window[_0x17afd8(0x335)]&&_0x51e2dd[_0x17afd8(0x45e)]<window[_0x17afd8(0x47d)];},_0x12cb99=()=>{const _0x3c75e3=_0x57b2c1;_0x1671a4!==null&&clearTimeout(_0x1671a4),_0x123d13[_0x3c75e3(0x29d)][_0x3c75e3(0x489)]=_0x3c75e3(0x1d5),_0x123d13[_0x3c75e3(0x29d)][_0x3c75e3(0x35b)]=String(_0x5cdbed),_0x1671a4=setTimeout(()=>{const _0x556e28=_0x3c75e3;_0x1671a4=null,delete _0x123d13[_0x556e28(0x29d)][_0x556e28(0x489)],delete _0x123d13[_0x556e28(0x29d)]['baseChartDataAnimationDuration'];},_0x5cdbed);},_0x15972e=_0x2279c5=>{const _0x446758=_0x57b2c1;if(_0x4c7887)return;if(_0x470f80!==null&&(clearTimeout(_0x470f80),_0x470f80=null),!_0x58e3ab['config']){_0x2b459f||=_0x2279c5;return;}_0x123d13[_0x446758(0x29d)][_0x446758(0x3e2)]=String(_0x58e3ab['chartType']),_0x123d13[_0x446758(0x29d)]['chartRowDirection']=String(_0x2acb18);let _0x460073=_0x4daed[_0x446758(0x307)](_0x168129),_0x267390={'chartId':_0x531352,'config':_0x460073[_0x446758(0x4e8)],'style':_0x460073['style']};_0x47ae73=_0x47ae73[_0x446758(0x388)](async()=>{const _0x53cfe0=_0x446758;_0x4c7887||(_0x123d13['dataset'][_0x53cfe0(0x46b)]=String(Number(_0x123d13[_0x53cfe0(0x29d)]['renderRevision']??0x0)+0x1),_0x2279c5&&_0x57e47d&&_0x3fca7a[_0x53cfe0(0x276)]&&_0x3fe789()?(await _0x3fca7a[_0x53cfe0(0x276)](_0x57e47d,_0x267390,{'duration':_0x5cdbed}),_0x4c7887||_0x12cb99()):await _0x3fca7a[_0x53cfe0(0x34e)](_0x267390),_0x57e47d=_0x267390);})[_0x446758(0x3d2)](_0x17964e=>_0x528d9f[_0x446758(0x1b4)](_0x446758(0x49f),_0x17964e));},_0x4b87e7=(_0x57a115=!0x1)=>{_0x2b459f||=_0x57a115,!_0x8fd474&&(_0x8fd474=!0x0,queueMicrotask(()=>{_0x8fd474=!0x1;let _0xaab000=_0x2b459f;_0x2b459f=!0x1,_0x15972e(_0xaab000);}));},_0x2baaa2=[_0x4e2f34[_0x57b2c1(0x45c)][_0x57b2c1(0x2f4)](_0x33336f=>{const _0x2f891d=_0x57b2c1;let _0x309603=JSON[_0x2f891d(0x492)](_0x33336f);_0x298592!=null&&_0x298592!==_0x309603&&_0x4b87e7(!0x0),_0x298592=_0x309603;}),_0x58e3ab[_0x57b2c1(0x3f9)]['subscribe'](_0x3adde4=>{_0x3adde4&&_0x4b87e7();}),_0x58e3ab[_0x57b2c1(0x2d4)][_0x57b2c1(0x2f4)](()=>_0x4b87e7()),_0x314d78['direction$'][_0x57b2c1(0x2f4)](()=>_0x4b87e7()),_0x4d74fa([_0x1dbdcd[_0x57b2c1(0x227)],_0x1dbdcd[_0x57b2c1(0x3d1)]])[_0x57b2c1(0x41d)](_0x260464(0x1))[_0x57b2c1(0x2f4)](()=>_0x4b87e7())],_0x3b7d77=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x187193=_0x57b2c1;_0x4c7887||(_0x53c678[_0x187193(0x4af)](),_0x470f80!==null&&clearTimeout(_0x470f80),_0x470f80=setTimeout(()=>_0x4b87e7(),0x64));});return _0x3b7d77==null||_0x3b7d77[_0x57b2c1(0x23b)](_0x123d13),()=>{const _0x1e3c2b=_0x57b2c1;_0x4c7887=!0x0,_0x470f80!==null&&clearTimeout(_0x470f80),_0x1671a4!==null&&clearTimeout(_0x1671a4),delete _0x123d13[_0x1e3c2b(0x29d)][_0x1e3c2b(0x489)],delete _0x123d13[_0x1e3c2b(0x29d)][_0x1e3c2b(0x35b)],_0x3b7d77==null||_0x3b7d77[_0x1e3c2b(0x1ad)](),_0x2baaa2[_0x1e3c2b(0x3c0)](_0x5e0228=>_0x5e0228[_0x1e3c2b(0x20f)]()),_0x3fca7a[_0x1e3c2b(0x2d9)](),_0x53c678['dispose'](),_0x123d13[_0x1e3c2b(0x48d)]();};},[_0x2acb18,_0x314d78,_0x528d9f,_0x4daed,_0x168129,_0x1dbdcd]),_0x4dabb7(_0x3a860b(0x442),{'ref':_0x497a47,'data-u-comp':_0x3a860b(0x2b5),'className':_0x3a860b(0x41b)});}function Lr({filters:_0x231dff,onRuntimeChange:_0x52cee9,unitId:_0x329254,widget:_0x1a3c69}){const _0x1e70b0=_0x2353bc;let _0x4fe889=_0x39b411(_0x4074e5),_0x6c10c5=_0x39b411(_0x5cd3ee),_0x48ec66=_0x39b411(_0x34ac8c),_0x393b04=_0x39b411(_0x22ef82),[_0x2eb232,_0xf5b165]=_0x2be63d(null),[_0x3b723e,_0x1252f7]=_0x2be63d(!0x1),[_0x396abc,_0x5393d6]=_0x2be63d(null),_0x4257d0=_0x35f949(_0x1e70b0(0x3ea)+_0x325e5d(0x8)),_0x2e4a46=_0x4fe889['getUnit'](_0x329254,_0x51ec78[_0x1e70b0(0x4eb)]),_0x1251d7=_0x2e4a46==null?void 0x0:_0x2e4a46['getSnapshot']()['tables'][_0x1a3c69['tableId']],_0x636774=_0x1251d7==null?void 0x0:_0x1251d7[_0x1e70b0(0x451)][_0x1a3c69[_0x1e70b0(0x399)]],_0x16a62e=Rr(_0x636774);if(_0x38e78f(()=>{const _0xc392f=_0x1e70b0;if(!_0x16a62e)return;let _0x35a8b8=_0x4257d0['current'];return _0x393b04['acquireChartRuntime'](_0x35a8b8,{'unitId':_0x329254,'tableId':_0x1a3c69[_0xc392f(0x475)],'viewId':_0x1a3c69['pivotViewId'],'filters':[]}),()=>{const _0x592605=_0xc392f;_0x393b04[_0x592605(0x503)](_0x329254,_0x35a8b8),_0x52cee9==null||_0x52cee9(_0x1a3c69['id'],null);};},[_0x16a62e,_0x52cee9,_0x393b04,_0x329254,_0x1a3c69['id'],_0x1a3c69[_0x1e70b0(0x399)],_0x1a3c69[_0x1e70b0(0x475)]]),_0x38e78f(()=>{const _0x29f1cb=_0x1e70b0;if(!Rr(_0x636774))return;let _0xf030c=!0x0,_0x21103a=_0x1a3c69['chart']??_0x636774[_0x29f1cb(0x4e8)]['chart'],_0x2ca16e={'unitId':_0x329254,'tableId':_0x1a3c69[_0x29f1cb(0x475)],'viewId':_0x1a3c69[_0x29f1cb(0x399)],'filters':[_0x636774[_0x29f1cb(0x1b3)]??null,..._0x231dff]};return _0x393b04[_0x29f1cb(0x41f)](_0x329254,_0x4257d0[_0x29f1cb(0x38f)],_0x2ca16e,_0x21103a)[_0x29f1cb(0x388)](_0x54e590=>{const _0x2c573d=_0x29f1cb;if(!_0xf030c||!_0x54e590)return;let _0x5de8c0=_0x393b04[_0x2c573d(0x33e)](_0x329254,_0x4257d0[_0x2c573d(0x38f)])??null;_0xf5b165(_0x54e590),_0x5393d6(_0x5de8c0),_0x1252f7(!0x1),_0x52cee9==null||_0x52cee9(_0x1a3c69['id'],_0x5de8c0);})[_0x29f1cb(0x3d2)](_0x58a6d9=>{const _0x2f73d6=_0x29f1cb;_0x48ec66[_0x2f73d6(0x1b4)]('[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x58a6d9),_0xf030c&&(_0xf5b165(null),_0x1252f7(!0x0));}),()=>{_0xf030c=!0x1;};},[_0x231dff,_0x48ec66,_0x52cee9,_0x393b04,_0x329254,_0x636774,_0x1a3c69[_0x1e70b0(0x4d8)],_0x1a3c69['id'],_0x1a3c69[_0x1e70b0(0x399)],_0x1a3c69[_0x1e70b0(0x475)]]),!Rr(_0x636774))return _0x4dabb7(_0x1e70b0(0x442),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','children':_0x6c10c5['t'](_0x1e70b0(0x3d7))});let _0x3ffa9b=_0x393b04[_0x1e70b0(0x33e)](_0x329254,_0x4257d0[_0x1e70b0(0x38f)])===_0x396abc?_0x396abc:null;return _0x2eb232&&_0x3ffa9b?_0x4dabb7(Ir,{'isRowDirection':_0x2fa6dd((_0x1a3c69['chart']??_0x636774[_0x1e70b0(0x4e8)][_0x1e70b0(0x4d8)])['orient']),'runtime':_0x3ffa9b}):_0x4dabb7(_0x1e70b0(0x442),{'className':_0x1e70b0(0x2d2),'children':_0x6c10c5['t'](_0x3b723e?'bases-dashboard-ui.pivot.calculationFailed':_0x1e70b0(0x463))});}function Rr(_0x2d5278){const _0x209af7=_0x2353bc;return(_0x2d5278==null?void 0x0:_0x2d5278['type'])===_0x5ee6b5[_0x209af7(0x49c)]&&typeof _0x2d5278[_0x209af7(0x4e8)]=='object'&&_0x2d5278[_0x209af7(0x4e8)]!==null&&_0x209af7(0x4aa)in _0x2d5278['config']&&_0x209af7(0x4d8)in _0x2d5278[_0x209af7(0x4e8)];}const zr={'alignment':'left','fontSize':0x12,'fontSizeMode':_0x2353bc(0x3b6)};function Br(_0x4bb747){const _0x3344ab=_0x2353bc;return{...zr,..._0x4bb747[_0x3344ab(0x294)]};}function Vr(_0x55cfa2){const _0x44e5f2=_0x2353bc;var _0x392692;return((_0x392692=_0x55cfa2['body'])==null?void 0x0:_0x392692['dataStream'][_0x44e5f2(0x436)](/\r\n$/,'')[_0x44e5f2(0x436)](/\r/g,'\x0a'))??'';}function _0x5550(){const _0x495b73=['bases-dashboard-ui.pivot.numberFormat','pageRows','base-dashboard-pivot-chart-','univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize','span','bases-dashboard-ui.dashboard.add','trim','bases-dashboard-ui.operators.isEmpty','radar','style','isSubtotal','general','BEFORE','getSnapshot','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.tableOnly','getRenderColor','config$','addFieldWithSourceId','2200219fEeaiZ','GREATER_THAN','supports','dashboardOrder','map','General','set','showRowGrandTotal','acquireChartRuntime','bases-dashboard-ui.pivot.removeField','pluginName','bases-dashboard-ui.chart.common.chartAndAxisTitles','1.0.3','clientY','bases-dashboard-ui.pivot.layoutCompact','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','repeatColLabels','univer-size-5\x20univer-rotate-90','NOT_CONTAINS','univer-size-4','bases-dashboard-ui.pivot.pageDirection','univer-shrink-0\x20univer-px-3','viewOrder','bases-dashboard-ui.pivot.pageWrap','rowSubtotalPosition','univer-flex','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','Number','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','series','constructor','bases-dashboard-ui.pivot.addToFilter','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','items','pipe','test','refreshChartRuntime','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','bases-dashboard-ui.pivot.layoutOutline','bases-dashboard-ui.pivot.top','item','bases-dashboard-ui.dashboard.search','scrollTop','univer-bg-gray-50/80\x20dark:!univer-bg-gray-800/70\x20univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-p-3\x20dark:!univer-border-gray-700','setConfig','Positive','subItem','Rating','repeat','border','univer-pointer-events-none\x20univer-absolute\x20univer-z-30\x20univer-appearance-none\x20univer-p-0\x20univer-opacity-0\x20!univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','_chartThemeService','bases-dashboard-ui.pivot.max','bases-dashboard-ui.chart.common.switchRowColumn','default','small','gray','onCommit','MultipleGrandTotal','replace','67974DtPsPC','files','layout','bases-dashboard-ui.pivot.ascending','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','object','fieldId','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','UUID','base-pivot-chart-configuration','univer-text-sm\x20univer-font-medium','div','univer-grid\x20univer-gap-4\x20univer-p-4','fontSize','stroke','fillType','_configService','title','bases-dashboard-ui.dashboardInspector.reset','bases-dashboard-ui.pivot.showRowSubtotal','info','bases-dashboard-ui.pivot.product','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','minmax(0,\x203fr)\x20minmax(0,\x202fr)','bases-dashboard-ui.dashboardInspector.description','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','views','text','blur','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','page:','Row','fieldOrder','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','univer-flex\x20univer-h-full\x20univer-w-[380px]\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','parentElement','bases-dashboard-ui.dashboardInspector.contain','data$','base-pivot-chart-setup','top','bases-dashboard-ui.dashboard.text','bases-dashboard-ui.dashboardInspector.editFormula','accept','initialLayouts','bases-dashboard-ui.pivot.calculating','some','select','bases-dashboard-ui.chart.common.setup','setSubtotalType','ManualFilter','image/*','dimension','renderRevision','Sankey','dashboard-chart-style','function','bases-dashboard-ui.dashboardInspector.clear','bases-dashboard-ui.pivot.display','univer-size-8\x20univer-p-0\x20univer-text-red-500','univer-mx-auto\x20univer-size-6','univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','Scatter','tableId','bases-dashboard-ui.chart.section.relation','pie','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','repeatRowLabels','Value','formatMap','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','innerHeight','fill','bases-dashboard-ui.dashboard.new','funnel','[data-dashboard-widget]','section','tableFieldId','Series','orient','bases-dashboard-ui.chart.section.radar','row','VerticalAxis','baseChartDataAnimation','change','false','bases-dashboard-ui.pivot.countNumbers','replaceChildren','scrollHeight','backgroundImage','rowFields','rgb','stringify','bases-dashboard-ui.operators.notContains','Gauge','bases-dashboard-ui.chart.section.sunburst','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','startY','every','Column','univer-flex\x20univer-items-center\x20univer-gap-2','bases-dashboard-ui.chart.section.pie','Pivot','toLocaleLowerCase','onFilter','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','children','bases-dashboard-ui.pivot.acrossThenDown','UpdatedAt','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','isFinite','chartId','displayMode','bases-dashboard-ui.pivot.pivotConfiguration','bases-dashboard-ui.pivot.sourceFields','dashboard-widget-','pivot','bases-dashboard-ui.chart.section.lineAndArea','headerRowCount','values','Image','syncLayout','bases-dashboard-ui.dashboard.addWidget','data','center','sourceType','rowSpan','onMove','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','bases-dashboard-ui.dashboardInspector.enterValue','packageName','table','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','rows','bases-dashboard-ui.operators.is','exitFullscreen','univer-w-24','dataModel','setLabelFilterInfo','lastCol','doc','ParetoLineSeries','getAttachmentUrl','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','getOptions','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','createChartInstance','onDragOver','dom','bases-dashboard-ui.dashboardInspector.compact','from','univer-flex\x20univer-gap-2','destructive','keydown','segmented','input','subUnitId','bases-dashboard-ui.chart.common.legend','document','Person','chart','BaseDashboard','length','getBoundingClientRect','lastRow','scrollWidth','system','ensureMount','univer-grid\x20univer-gap-4','widgets','toUpperCase','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','Radar','LineAndArea','flex-start','Date','config','base-pivot-chart-','list','UNIVER_BASE','push','itemTypes','bases-dashboard-ui.dashboard.undo','Line','average','univer-flex\x20univer-flex-col\x20univer-gap-4','bases-dashboard-ui.operators.after','base-pivot-fields','symbol','Funnel','presentationChanged$','onCancel','toDate','univer-flex\x20univer-justify-end\x20univer-gap-2','ChartStyle','bases-dashboard-ui.dashboardInspector.uploadImage','univer-size-6\x20!univer-border\x20!univer-border-solid\x20!univer-border-gray-200\x20!univer-bg-gray-0\x20univer-p-0\x20!univer-shadow-none\x20hover:!univer-bg-gray-100\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900\x20dark:hover:!univer-bg-gray-800','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-96\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.addToValue','string','bases-dashboard-ui.dashboardInspector.numberFormat','colView','bases-dashboard-ui.dashboardInspector.currency','releaseChartRuntime','saveAttachment','transparent','field','waterfall.positive','legend','custom','separator','documentStyle','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.addToColumn','36170QJphQa','borderRadius','operator','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','blank','labelId','bases-dashboard-ui.chart.common.series','checkMounted','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','register','disconnect','getId','context','updateFieldPosition','Pie','univer-grid\x20univer-gap-3\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','filter','error','univer-w-full','Base\x20dashboard\x20chart\x20','pageOverThenDown','conditions','bases-dashboard-ui.dashboard.widgetActions','defaultValue','valuePosition','join','univer-size-5\x20univer-text-primary-600','compact','bases-dashboard-ui.dashboardInspector.close','univer-flex\x20univer-min-h-0\x20univer-flex-1','add','stdDevp','bases-dashboard-ui.pivot.rowSubtotalPosition','bases-dashboard-ui.dashboard.section','univer-text-right','getPresentation','measure','bases-dashboard-ui.dashboard.redo','bases-dashboard-ui.pivot.displayName','bases-dashboard-ui.operators.greaterThan','bases-dashboard-ui.chart.section.paretoBar','defineProperty','getTableFieldsByDataFieldId','shapeId','univer-box-content\x20univer-size-1.5\x20univer-rounded-full\x20!univer-border-2\x20!univer-border-solid\x20!univer-border-white\x20!univer-bg-primary-600','snapshot','addEventListener','IS_NOT','Subtotal','bases-dashboard-ui.pivot.rows','true','WaterfallSeries','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','shapeData','ChartAndAxisTitles','bases-dashboard-ui.dashboardInspector.custom','bases-dashboard-ui.chart.section.candlestick','239899hmavMD','bases-dashboard-ui.dashboardInspector.data','stopPropagation','Data','sortInfo','bases-dashboard-ui.dashboardInspector.number','fontSizeMode','cumulativeLineStyle','data:','tableOrder','rightY','pointermove','renameField','SolidFill','_localeService','disposeWithMe','bases-dashboard-ui.chart.common.verticalAxis','img','GridlinesAndTicks','floor','bases-dashboard-ui.dashboardInspector.removeImage','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','pointerY','232yMFdKS','bases-dashboard-ui.pivot.repeatColumnLabels','MultiSelect','body','decorate','valueFields','undos','getImage','corner:','bases-dashboard-ui.dashboardInspector.right','Candlestick','executeCommand','USD','decimalPlaces','AFTER','univer-h-full\x20univer-w-full\x20univer-bg-transparent','textColor','Checkbox','onMoveUp','@univerjs-pro/bases-dashboard-ui','match','date','left','baseOn','onDrop','Heatmap','\x20has\x20no\x20render\x20config.','unsubscribe','startX','bases-dashboard-ui.dashboardInspector.decimalPlaces','bases-dashboard-ui.pivot.grandTotal','271638dDHyCC','right','prototype','bases-dashboard-ui.dashboardInspector.unchecked','rootContainerElement','var','bases-dashboard-ui.dashboardInspector.textSize','bases-dashboard-ui.dashboardInspector.textColor','ascending','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','GrandTotal','_config','undoRedoStatus$','resize','boxSizing','bases-dashboard-ui.dashboardInspector.formula','IndicatorLine','mode','base-pivot-table-configuration','univer-truncate','currentTheme$','button','descending','documentElement','bases-dashboard-ui.chart.section.paretoLine','varp','pageView','alignment','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','minmax(0,\x201fr)','tbody','YYYY-MM-DD','bases-dashboard-ui.dashboard.configure','80zRxAjT','onMoveDown','end','bases-dashboard-ui.dashboardInspector.center','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','bases-dashboard-ui.chart.section.funnel','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','observe','trendline','imageSourceType','wordCloud','univer-w-36','resolve','currency','Histogram','bases-dashboard-ui.operators.before','bases-dashboard-ui.pivot.defaultName','bases-dashboard-ui.dashboardInspector.backgroundColor','showRowSubtotal','univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','clientHeight','isHeader','description','source','indicatorLine','removeField','Waterfall','currentTarget','activeRuntimeModel','univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','createDomChartInstance','paragraphId','bases-dashboard-ui.chart.section.histogram','bases-dashboard-ui.dashboardInspector.replaceImage','#,##0','view','bases-dashboard-ui.dashboard.rename','defaultPrevented','onReady','bases-dashboard-ui.dashboardInspector.newCondition','bases-dashboard-ui.pivot.valuePosition','iterator','univer-mt-2\x20univer-w-full','bases-dashboard-ui.dashboardInspector.originalSize','bases-dashboard-ui.chart.section.gridlinesAndTicks','titles','setSortInfo','BASE_DASHBOARD_UI_PLUGIN','indexOf','univer-mt-2','bases-dashboard-ui.dashboardInspector.backgroundImage','bases-dashboard-ui.dashboard.formulaShape','area','setStyle','bases-dashboard-ui.chart.common.horizontalAxis','ownerDocument','univer-grid\x20univer-gap-2\x20univer-p-3','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','columnSpan','GeneralSeries','overflow','size','fields','formula','contains','renderTransition','Trendline','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','move','base-pivot-options','matchMedia','removeEventListener','changed$','AND','showColSubtotal','fullscreenElement','bases-dashboard-ui.pivot.repeatRowLabels','clientX','value','matches','getOwnPropertyDescriptor','onRemove','bases-dashboard-ui.dashboard.fullScreen','SolidLine','univer-flex\x20univer-h-full\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.addToRow','rowView','bases-dashboard-ui.dashboardInspector.left','univer-text-gray-400','setLayout','univer-min-w-0\x20univer-flex-1','bases-dashboard-ui.pivot.layout','bases-dashboard-ui.dashboardInspector.general','bases-dashboard-ui.dashboard.image','appearance','dashboard-chart-setup','TableFilter','WordCloud','Text','_element','bases-dashboard-ui.pivot.dropFieldsHere','bases-dashboard-ui.dashboardInspector.autoFit','bases-dashboard-ui.pivot.count','dataset','kind','version','_injector','bases-dashboard-ui.pivot.filters','bases-dashboard-ui.pivot.blank','change$','dataView','bases-dashboard-ui.pivot.fields','bases-dashboard-ui.chart.common.chartStyle','stdDev','bases-dashboard-ui.operators.lessThanOrEqual','displayName','bases-dashboard-ui.dashboardInspector.loading','bases-dashboard-ui.mobile.moveUp','bases-dashboard-ui.dashboardInspector.style','univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-flex-col\x20univer-justify-center\x20univer-overflow-hidden\x20univer-bg-gray-0\x20univer-p-4\x20univer-text-gray-1000\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-50','Bubble','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','9NQOIMn','getResource','bases-dashboard-ui.pivot.descending','IS_EMPTY','1023704qcaUpR','base-pivot-chart','aside','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','clientWidth','bases-dashboard-ui.pivot.variance','bases-dashboard-ui.chart.section.wordCloud','bases-dashboard-ui.pivot.showColumnSubtotal','original','no-repeat','bases-dashboard-ui.chart.section.treemap','sum','bases-dashboard-ui.pivot.summarizeBy','bases-dashboard-ui.pivot.showColumnGrandTotal','bases-dashboard-ui.chart.common.heatmap','276zzAXvQ','bases-dashboard-ui.chart.section.waterfall','univer-cursor-grab','rightYAxis','bases-dashboard-ui.pivot.fieldSettings','tabular','fit','bases-dashboard-ui.pivot.showRowGrandTotal','barStyle','subtotal','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','redos','getValueIndex','bottom','Boxplot','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','bases-dashboard-ui.pivot.clearFilter','style$','10383SIiYEq','product','univer-w-full\x20univer-justify-start','getCurrentTheme','dispose','bases-dashboard-ui.pivot.dataSource','onStarting','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','src','setFieldFormat','executeChartUpdateConfig','bases-dashboard-ui.dashboardInspector.editData','filterFields','0\x200','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','Chord','Pareto','bases-dashboard-ui.operators.isNot','bases-dashboard-ui.dashboardInspector.cover','245czrfnV','currentColor','showColGrandTotal','max','border-box','call','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-gray-50\x20univer-font-semibold\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.dashboard.deleteWidget','get','univer-group\x20univer-relative\x20univer-flex\x20univer-min-h-0\x20univer-flex-col\x20univer-overflow-visible\x20univer-rounded-lg\x20univer-border\x20univer-shadow-sm\x20univer-transition-shadow','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','subscribe','toJSON','bases-dashboard-ui.pivot.name','unitId','bases-dashboard-ui.config','SingleSelect','CreatedAt','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','waterfall','None','entries','heatmap','univer-flex\x20univer-min-h-full\x20univer-flex-col','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','LESS_THAN_OR_EQUAL','closest','bases-dashboard-ui.dashboard.delete','univer-mb-3\x20univer-text-sm\x20univer-font-medium','createRenderInput','base64Cache','headerMap','dataSource','has','bases-dashboard-ui.pivot.downThenAcross','radius','ceil','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','axis','base-pivot-chart-style','height','Axes','min','resizeDirection','getFieldPositionInfoById','bases-dashboard-ui.chart.chartTypes.','bases-dashboard-ui.pivot.columns','Escape','link','bases-dashboard-ui.dashboardInspector.dataSource','onDragEnd','bases-dashboard-ui.operators.isNotEmpty','contain','bases-dashboard-ui.chart.waterfall.subtotal','options','Currency','pointerup','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','bind','bases-dashboard-ui.pivot.confirm','bases-dashboard-ui.pivot.values','percent','univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','name','index','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','bases-dashboard-ui.dashboardInspector.dragWidget','split','addImageSourceCache','RightVerticalAxis','chart-and-table','includes','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','univer-min-h-11\x20univer-px-3\x20univer-text-base','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','innerWidth','key','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','rowType','color','bases-dashboard-ui.mobile.moveDown','textStyle','fullscreenchange','getChartRuntime','bases-dashboard-ui.chart.common.customize','pareto','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','univer-flex-1','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','target','bases-dashboard-ui.pivot.description','univer-m-3','format','numberFormat','count','getDashboard','shapeType','bases-dashboard-ui.pivot.calculationFailed','rowCount','render','univer-shrink-0\x20univer-rounded-full\x20univer-bg-gray-200\x20univer-px-2\x20univer-py-0.5\x20univer-text-xs\x20univer-text-gray-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-300','bases-dashboard-ui.dashboard.pivotChart','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','Style','localeKey','allowMultiple','dataFieldId','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','univer-border-gray-200\x20dark:!univer-border-gray-700','px\x20solid\x20','ParetoBarSeries','bases-dashboard-ui.pivot.searchFields','baseChartDataAnimationDuration','CONTAINS','slice','\x20/\x20span\x20','focusUnit','bases-dashboard-ui.pivot.stdDevPopulation','isBottomTotal','widgetOrder','relation','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','group','Sunburst','univer-max-h-40\x20univer-text-base','bases-dashboard-ui.pivot.selectAll','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','header','bases-dashboard-ui.pivot.chartConfiguration','HorizontalAxis','LESS_THAN','FormulaShape','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','dashboards','row:','bases-dashboard-ui.pivot.layoutTabular','onSettings','bases-dashboard-ui.chart.common.rightVerticalAxis','IS_NOT_EMPTY','bases-dashboard-ui.pivot.cancel','cornerView','univer-flex\x20univer-flex-col','outline','model','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.chart.section.chord','operand','getUnit','primary','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','_createContext','univer-bg-transparent\x20dark:!univer-bg-transparent','bases-dashboard-ui.pivot.bottom','round','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','article','bases-dashboard-ui.chart.common.trendline','then','RecordId','getFieldCountByArea','initial','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','onDragStart','NumberFormat','current','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','permissionPointUpdate$','bases-dashboard-ui.dashboardInspector.repeat','type','backgroundColor','hidden','bases-dashboard-ui.dashboard.tableFilter','find','bases-dashboard-ui.dashboard.resizeWidget','pivotViewId','lineAndArea','column','tables','bases-dashboard-ui.dashboardInspector.selectOption','grouped','bases-dashboard-ui.dashboard.editWidget','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','bases-dashboard-ui.pivot.filterField','bases-dashboard-ui.mobile.permissions','PivotChart','dashboard-','valueIndex','waterfallStyle','RoundRect','waterfall.negative','bases-dashboard-ui.chart.section.gauge','Treemap','click','bases-dashboard-ui.pivot.stdDev','filterInfo','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','darkMode','label','isConnected','bases-dashboard-ui.pivot.sum','univer-text-sm','Filter','colCount','auto','getDataFieldByTableId','Legend','dataAggregation','requestFullscreen','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','flatMap','file','Group','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','forEach','getRect','bases-dashboard-ui.operators.lessThan','getImageSourceCache','number','Progress','bases-dashboard-ui.pivot.chartAndTable','bases-dashboard-ui.pivot.chartOnly','countNums','width','preventDefault','visibilityState','univer-border-0\x20univer-bg-transparent','allSeriesStyle','setCurrentUnitForType','bases-dashboard-ui.dashboardInspector.alignment','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','darkMode$','catch','univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.chart.common.editChart','cover','createElement','bases-dashboard-ui.dashboardInspector.sourceUnavailable','alt','conjunction','GREATER_THAN_OR_EQUAL','setOptions','saveImage','Relation','dashboard-text-','url(','bases-dashboard-ui.pivot.variancePopulation','bases-dashboard-ui.operators.greaterThanOrEqual','chartType','formulaBinding','bases-dashboard-ui.pivot.average','bases-dashboard-ui.dashboard.defaultName','updateValuePosition','bases-dashboard-ui.dashboardInspector.checked'];_0x5550=function(){return _0x495b73;};return _0x5550();}function Hr(_0x546313,_0x1f9b9a){const _0x1e4e18=_0x2353bc;var _0x43acee;let _0x5cadfb=_0x1f9b9a[_0x1e4e18(0x436)](/\r\n|\r/g,'\x0a')[_0x1e4e18(0x32d)]('\x0a'),_0x2c3b46=_0x5cadfb[_0x1e4e18(0x1bc)]('\x0d')+'\x0d\x0a',_0xf29daf=((_0x43acee=_0x546313[_0x1e4e18(0x1f7)])==null?void 0x0:_0x43acee['paragraphs'])??[],_0x5c3c22=new Set(_0xf29daf[_0x1e4e18(0x3ff)](_0x5b4b88=>_0x5b4b88[_0x1e4e18(0x254)])),_0xbd9f41=0x0,_0x5d26b3=_0x5cadfb[_0x1e4e18(0x3ff)]((_0x1c82e4,_0x36ed3d)=>{_0xbd9f41+=_0x1c82e4['length'];let _0x2040c5={..._0xf29daf[_0x36ed3d]??{'startIndex':_0xbd9f41,'paragraphId':_0x112de2(_0x5c3c22)},'startIndex':_0xbd9f41};return _0xbd9f41+=0x1,_0x2040c5;});return{..._0x546313,'body':{..._0x546313[_0x1e4e18(0x1f7)],'dataStream':_0x2c3b46,'paragraphs':_0x5d26b3,'textRuns':[]}};}function Ur({widget:_0x1b5e65}){const _0x1d3d68=_0x2353bc;let _0x2cda5d=_0x39b411(_0x277079),_0x3eb3bc=_0x39b411(_0x5cd3ee),_0x49edaa=_0x499abf(()=>_0x2cda5d['currentTheme$'],_0x2cda5d['getCurrentTheme'](),!0x1,[_0x2cda5d]),_0x2a2623=_0x35f949(null),_0x3f0a58=_0x35f949(null),_0x2eac20=Br(_0x1b5e65),_0x41d782=_0x2eac20[_0x1d3d68(0x394)]??_0x49edaa[_0x1d3d68(0x433)][0x0],_0x18494e=_0x2eac20[_0x1d3d68(0x204)]??_0x49edaa[_0x1d3d68(0x433)][0x3e8],_0x362cbc=Vr(_0x1b5e65[_0x1d3d68(0x4d6)]);return _0x38e78f(()=>{const _0x193d66=_0x1d3d68;let _0x81d58c=_0x2a2623[_0x193d66(0x38f)],_0xea3b65=_0x3f0a58['current'];if(!_0x81d58c||!_0xea3b65)return;let _0x438cdb=()=>{const _0xe3d182=_0x193d66;if(_0x2eac20[_0xe3d182(0x1e2)]===_0xe3d182(0x509)||!_0x81d58c[_0xe3d182(0x2b8)]||!_0x81d58c['clientHeight']){_0xea3b65[_0xe3d182(0x3f1)][_0xe3d182(0x444)]=_0x2eac20[_0xe3d182(0x444)]+'px';return;}let _0x20350c=0x8,_0x43893f=0x48,_0xbe4a6f=_0x20350c;for(;_0x20350c<=_0x43893f;){let _0x1effc5=Math[_0xe3d182(0x1ef)]((_0x20350c+_0x43893f)/0x2);_0xea3b65[_0xe3d182(0x3f1)][_0xe3d182(0x444)]=_0x1effc5+'px',_0xea3b65[_0xe3d182(0x4dd)]<=_0x81d58c['clientWidth']&&_0xea3b65[_0xe3d182(0x48e)]<=_0x81d58c[_0xe3d182(0x249)]?(_0xbe4a6f=_0x1effc5,_0x20350c=_0x1effc5+0x1):_0x43893f=_0x1effc5-0x1;}_0xea3b65[_0xe3d182(0x3f1)][_0xe3d182(0x444)]=_0xbe4a6f+'px';};if(_0x438cdb(),typeof ResizeObserver>'u')return;let _0x4b14f9=new ResizeObserver(_0x438cdb);return _0x4b14f9[_0x193d66(0x23b)](_0x81d58c),()=>_0x4b14f9[_0x193d66(0x1ad)]();},[_0x2eac20[_0x1d3d68(0x444)],_0x2eac20['fontSizeMode'],_0x362cbc]),_0x4dabb7(_0x1d3d68(0x442),{'data-dashboard-text-widget':_0x1b5e65['id'],'className':'univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','style':{'backgroundColor':_0x41d782,'color':_0x18494e},'children':_0x4dabb7(_0x1d3d68(0x442),{'ref':_0x2a2623,'data-dashboard-text-content':!0x0,'aria-label':_0x3eb3bc['t'](_0x1d3d68(0x45f)),'className':_0x1d3d68(0x4c7),'children':_0x4dabb7(_0x1d3d68(0x442),{'ref':_0x3f0a58,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x2eac20['fontSizeMode'],'className':_0x1d3d68(0x238),'style':{'textAlign':_0x2eac20[_0x1d3d68(0x22e)]},'children':_0x362cbc})})});}function Wr({dashboard:_0x368a36,editable:_0x43d787=!0x0,onSelectWidget:_0x4a13c5,renderWidget:_0x1406c3,renderWidgetActions:_0x24e003,selectedWidgetId:_0x22ce65,widgetLabel:_0x1ceb2a}){const _0x151c16=_0x2353bc;return _0x4dabb7(_0x151c16(0x442),{'data-dashboard-scroll-container':!0x0,'className':_0x52fed8(_0x151c16(0x338),_0x2a22a5),'onClick':_0x43d787?_0x177a22=>{const _0x1ae054=_0x151c16;if(!(_0x177a22['target']instanceof Node)||!_0x177a22[_0x1ae054(0x250)][_0x1ae054(0x275)](_0x177a22[_0x1ae054(0x344)]))return;let _0x22d340=_0x177a22[_0x1ae054(0x344)]instanceof Element?_0x177a22[_0x1ae054(0x344)]:_0x177a22[_0x1ae054(0x344)][_0x1ae054(0x45a)];_0x22d340!=null&&_0x22d340[_0x1ae054(0x304)](_0x1ae054(0x481))||_0x4a13c5==null||_0x4a13c5();}:void 0x0,'children':_0x4dabb7('div',{'data-dashboard-grid':!0x0,'className':_0x151c16(0x36f),'children':_0x368a36[_0x151c16(0x362)]['map'](_0x3ff3a1=>{const _0x1c9204=_0x151c16;let _0x244daa=_0x368a36[_0x1c9204(0x4e1)][_0x3ff3a1];if(!_0x244daa)return null;let _0x3b3e82=Math[_0x1c9204(0x2eb)](0xb4,_0x244daa['layout'][_0x1c9204(0x4b4)]*_0x50185b);return _0x2b00c1('article',{'data-dashboard-widget':_0x244daa['id'],'aria-label':_0x244daa[_0x1c9204(0x448)]??_0x1ceb2a(_0x244daa),'className':_0x52fed8(_0x1c9204(0x2f1),_0x244daa[_0x1c9204(0x393)]===_0x342116[_0x1c9204(0x4ae)]||_0x244daa[_0x1c9204(0x393)]===_0x342116[_0x1c9204(0x36e)]?_0x1c9204(0x382):_0x1c9204(0x3d3),_0x43d787&&_0x22ce65===_0x244daa['id']?_0x1c9204(0x30f):_0x1c9204(0x357)),'style':{'minHeight':_0x3b3e82,'height':_0x3b3e82},'tabIndex':_0x43d787?0x0:void 0x0,'onClick':_0x43d787?()=>_0x4a13c5==null?void 0x0:_0x4a13c5(_0x244daa['id']):void 0x0,'onFocus':_0x43d787?()=>_0x4a13c5==null?void 0x0:_0x4a13c5(_0x244daa['id']):void 0x0,'children':[_0x43d787&&_0x4dabb7('div',{'className':_0x1c9204(0x2f3),'children':_0x24e003==null?void 0x0:_0x24e003(_0x244daa)}),_0x4dabb7('div',{'className':'univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','children':_0x1406c3(_0x244daa)})]},_0x244daa['id']);})})});}let Gr=class extends _0x3ae17a{constructor(_0x3f8264){const _0x1230e9=_0x2353bc;super(_0x3f8264),Pr(this,_0x1230e9(0x251),null);}[_0x2353bc(0x2df)](_0x3a5eb3){}};Gr=Or([Y(0x0,_0x2a19f9(_0x2cea70))],Gr);function Kr({children:_0x2143b2}){return _0x4dabb7(_0xac1dd7,{'children':_0x2143b2});}function qr(_0x5d5e01){return _0x4dabb7(_0x3b7f81,{..._0x5d5e01});}function Jr(_0x454423){return _0x4dabb7(_0x4083c0,{..._0x454423});}function Yr(_0x1474e5){return _0x4dabb7(_0x138a17,{..._0x1474e5});}var Xr;const X={'axis':{..._0x5caca4,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x26697d,'heatmap':_0x296680,'indicatorLine':_0x195779,'legend':_0x4fe0eb,'lineAndArea':_0x499ec0,'pareto':_0x4cf110,'pie':_0x1db8a1,'radar':_0x35ac4f,'relation':{..._0x2da675,'useValueAsSymbolSize':!0x0},'series':{..._0x396e30,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Xr=_0x46c996[_0x2353bc(0x3cd)])==null?void 0x0:Xr[_0x2353bc(0x2c6)])??!0x1}},'style':_0x5792d9,'titles':_0x21806e,'trendline':_0x563c89,'waterfall':{..._0x2c231e,'useSubtotal':!0x0},'waterfallStyle':_0x31f02c,'wordCloud':_0x8c0c35},Zr=[_0x3414f3['Line'],_0x3414f3[_0x2353bc(0x4e4)],_0x3414f3[_0x2353bc(0x297)],_0x3414f3[_0x2353bc(0x474)],_0x3414f3[_0x2353bc(0x4f5)],_0x3414f3[_0x2353bc(0x3dd)],_0x3414f3[_0x2353bc(0x46c)],_0x3414f3['Heatmap'],_0x3414f3[_0x2353bc(0x2d1)],_0x3414f3[_0x2353bc(0x1fe)],_0x3414f3['Histogram'],_0x3414f3['Treemap'],_0x3414f3['Sunburst'],_0x3414f3[_0x2353bc(0x494)],_0x3414f3[_0x2353bc(0x2e4)]];function Qr(_0x26d638){const _0x1a8e3c=_0x2353bc;let {config:_0x459fc1,onChange:_0x526207,runtime:_0x2397cf,tableName:_0x5b167a}=_0x26d638,_0x8bc3c6=_0x39b411(Gr),_0x204292=_0x39b411(_0x5cd3ee),[_0x277c9d,_0x3d17bc]=_0x2be63d(_0x139866['Data']),_0x29022e=_0x56a185(()=>new _0x29d554(_0x2397cf[_0x1a8e3c(0x37a)],{'commit':_0x40426c=>{const _0x4f765c=_0x1a8e3c;var _0x145aa8;let _0x2a17bf=_0x2397cf['model'],_0x36b775=_0x485197(_0x40426c,{'series':(_0x145aa8=_0x2a17bf[_0x4f765c(0x4e8)])==null?void 0x0:_0x145aa8[_0x4f765c(0x418)],'currentChartType':_0x2a17bf['chartType'],'currentStyle':_0x2a17bf[_0x4f765c(0x3f1)],'currentContext':_0x2a17bf[_0x4f765c(0x1af)],'currentDataAggregation':_0x2a17bf[_0x4f765c(0x3b9)]});_0x526207({'chart':$r(_0x459fc1[_0x4f765c(0x4d8)],_0x36b775)});}}),[_0x459fc1[_0x1a8e3c(0x4d8)],_0x526207,_0x2397cf]),_0x218da2=_0x56a185(()=>_0x2dbfb8(_0x170e20[_0x1a8e3c(0x3ff)](_0x4578fe=>({..._0x4578fe,'label':_0x204292['t'](ri(_0x4578fe[_0x1a8e3c(0x1a8)]))}))),[_0x204292]);return _0x4dabb7(_0x2dc504,{'chartUIService':_0x8bc3c6,'hostAdapter':_0x29022e,'children':_0x2b00c1('div',{'className':_0x1a8e3c(0x450),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x204292['t'](_0x1a8e3c(0x3d4)),'className':_0x1a8e3c(0x410),'items':[{'label':_0x204292['t'](_0x1a8e3c(0x466)),'panelId':'base-pivot-chart-setup','value':_0x139866[_0x1a8e3c(0x1df)]},{'label':_0x204292['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x1a8e3c(0x311),'value':_0x139866[_0x1a8e3c(0x352)]}],'value':_0x277c9d,'onChange':_0x3d17bc}),_0x277c9d===_0x139866[_0x1a8e3c(0x1df)]?_0x4dabb7(_0x3812e6,{'id':'base-pivot-chart-setup','label':_0x204292['t'](_0x1a8e3c(0x466)),'children':_0x2b00c1(_0x1a8e3c(0x442),{'className':_0x1a8e3c(0x4e3),'children':[_0x4dabb7(_0x195039,{'options':_0x218da2}),_0x4dabb7(_0x3eaf0a,{}),_0x4dabb7(_0x1603db,{}),_0x4dabb7(ei,{}),_0x4dabb7(_0x3210ae,{}),_0x2b00c1('div',{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x204292['t']('bases-dashboard-ui.pivot.dataSource')}),_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x5b167a})]}),_0x4dabb7(_0x26c1b7,{'orientationControl':_0x4dabb7(_0x1b3e3b,{'size':_0x1a8e3c(0x432),'onClick':()=>_0x526207({'chart':{..._0x459fc1[_0x1a8e3c(0x4d8)],'orient':_0x459fc1[_0x1a8e3c(0x4d8)]['orient']==='row'?_0x1a8e3c(0x39b):_0x1a8e3c(0x487)}}),'children':_0x204292['t'](_0x1a8e3c(0x430))})}),_0x4dabb7(_0x45db86,{}),_0x4dabb7(_0x4e37ce,{'defaultValues':X[_0x1a8e3c(0x2fd)]}),_0x2b00c1('div',{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x204292['t']('bases-dashboard-ui.pivot.display')}),_0x4dabb7(qr,{'value':_0x459fc1['displayMode'],'options':[{'value':_0x1a8e3c(0x330),'label':_0x204292['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':_0x1a8e3c(0x4d8),'label':_0x204292['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':_0x1a8e3c(0x4bb),'label':_0x204292['t'](_0x1a8e3c(0x3f7))}],'onChange':_0x1604ee=>{const _0x197162=_0x1a8e3c;(_0x1604ee==='chart-and-table'||_0x1604ee===_0x197162(0x4d8)||_0x1604ee===_0x197162(0x4bb))&&_0x526207({'displayMode':_0x1604ee});}})]})]})}):_0x4dabb7(_0x3812e6,{'id':_0x1a8e3c(0x311),'label':_0x204292['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x4dabb7(ti,{})})]})});}function $r(_0x3da4f2,_0x371df6){const _0x403af7=_0x2353bc;return{..._0x3da4f2,'type':_0x371df6[_0x403af7(0x3e2)]??_0x3da4f2['type'],'style':_0x371df6[_0x403af7(0x3f1)]??_0x3da4f2[_0x403af7(0x3f1)],'context':_0x371df6[_0x403af7(0x1af)]??_0x3da4f2['context'],'dataAggregation':_0x371df6['dataAggregation']??_0x3da4f2[_0x403af7(0x3b9)]};}function ei(){const _0xb69f9a=_0x2353bc;let _0x3275ea=_0x1f2e67();return _0x4dabb7(_0x34de73,{'visible':Zr[_0xb69f9a(0x498)](_0x218882=>!_0x4c5ed5[_0xb69f9a(0x20b)](_0x3275ea,_0x218882))});}function Z(_0x553fc8){const _0x1b1121=_0x2353bc;return _0x2b00c1(_0x1358f8,{'id':_0x553fc8['id'],'children':[_0x4dabb7(_0x352fb4,{'children':_0x553fc8[_0x1b1121(0x3b0)]}),_0x4dabb7(_0xaf7aad,{'children':_0x553fc8[_0x1b1121(0x4a0)]})]});}function ti(){const _0xbfa589=_0x2353bc;let _0x5c07c1=_0x39b411(_0x5cd3ee),_0x35deb5=_0x1f2e67(),_0x209d8e=_0x51b799(),[_0x3c1cba,_0x37837e]=_0x2be63d(null),_0xc449c=_0x4c5ed5[_0xbfa589(0x20b)](_0x35deb5,_0x3414f3['Pie']),_0x4de0ce=_0x35deb5===_0x3414f3[_0xbfa589(0x4e4)],_0x4f0883=_0x35deb5===_0x3414f3['WordCloud'],_0x210def=_0x35deb5===_0x3414f3[_0xbfa589(0x4f5)],_0x10bfca=_0x4c5ed5['baseOn'](_0x35deb5,_0x3414f3[_0xbfa589(0x2ae)]),_0x5d6391=_0x35deb5===_0x3414f3[_0xbfa589(0x3dd)],_0x26097a=_0x35deb5===_0x3414f3[_0xbfa589(0x24f)],_0x23a33f=_0x35deb5===_0x3414f3[_0xbfa589(0x2e5)],_0x2a2e3b=_0x35deb5===_0x3414f3[_0xbfa589(0x20d)],_0x2e0d24=_0x326a9b(_0x35deb5,_0x1958f1['GeneralSeries'])&&!_0x10bfca&&!_0x23a33f,_0x441410=ni(_0x35deb5,_0x5c07c1);return _0x2b00c1(_0x28ef86,{'value':_0x3c1cba,'onChange':_0x37837e,'children':[_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x4fa)],'label':_0x5c07c1['t'](_0xbfa589(0x2a6)),'children':_0x4dabb7(_0x466794,{'defaultValues':X[_0xbfa589(0x3f1)]})}),_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x1d9)],'label':_0x5c07c1['t'](_0xbfa589(0x406)),'children':_0x4dabb7(_0xe815e7,{'commitMode':_0xbfa589(0x453),'defaultValues':X[_0xbfa589(0x262)]})}),_0x2e0d24&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x484)],'label':_0x5c07c1['t']('bases-dashboard-ui.chart.common.series'),'children':_0x4dabb7(_0x3bcbff,{'defaultValues':X['series'],'NumberFormatField':_0x2f8e19})}),_0x26097a&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x1d6)],'label':_0x5c07c1['t'](_0xbfa589(0x2c4)),'children':_0x4dabb7(_0x217c37,{'defaultValues':X[_0xbfa589(0x3a6)],'getDefaultBucketName':({seriesName:_0x5101c9,target:_0x3ec3e5})=>_0x3ec3e5===_0x6a9b13[_0xbfa589(0x1d3)]?_0x5c07c1['t'](_0xbfa589(0x31f)):_0x5101c9?_0x5101c9+'-('+_0x5c07c1['t']('bases-dashboard-ui.chart.'+(_0x3ec3e5===_0x6a9b13[_0xbfa589(0x428)]?_0xbfa589(0x507):_0xbfa589(0x3a8)))+')':'','NumberFormatField':_0x2f8e19})}),_0x23a33f&&_0x2b00c1(_0xa1bb43,{'children':[_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x359)],'label':_0x5c07c1['t'](_0xbfa589(0x1cb)),'children':_0x4dabb7(_0x35a412,{'defaultValues':X[_0xbfa589(0x340)],'NumberFormatField':_0x2f8e19,'showDataPointEditor':!0x0,'target':_0xbfa589(0x2cb)})}),_0x4dabb7(Z,{'id':_0x8fe1f1['ParetoLineSeries'],'label':_0x5c07c1['t'](_0xbfa589(0x22b)),'children':_0x4dabb7(_0x35a412,{'defaultValues':X[_0xbfa589(0x340)],'NumberFormatField':_0x2f8e19,'showDataPointEditor':!0x1,'target':_0xbfa589(0x1e3)})})]}),_0xc449c&&_0x4dabb7(Z,{'id':_0x8fe1f1['PieStyle'],'label':_0x5c07c1['t']('bases-dashboard-ui.chart.section.pie'),'children':_0x4dabb7(_0x34a105,{'defaultValues':X['pie'],'NumberFormatField':_0x2f8e19})}),_0x4f0883&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x297)],'label':_0x5c07c1['t'](_0xbfa589(0x2ba)),'children':_0x4dabb7(_0x5ac713,{'defaultValues':X[_0xbfa589(0x23e)]})}),_0x4de0ce&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x4e4)],'label':_0x5c07c1['t'](_0xbfa589(0x486)),'children':_0x4dabb7(_0x4c7c71,{'defaultValues':X[_0xbfa589(0x3f0)]})}),_0x210def&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x4f5)],'label':_0x5c07c1['t'](_0xbfa589(0x239)),'children':_0x4dabb7(_0x666ad2,{'defaultValues':X['funnel'],'gapControl':_0xbfa589(0x465)})}),_0x2a2e3b&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x20d)],'label':_0x5c07c1['t'](_0xbfa589(0x2c2)),'children':_0x4dabb7(_0x3c01f2,{'defaultValues':X[_0xbfa589(0x300)]})}),_0x5d6391&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x3dd)],'label':_0x5c07c1['t'](_0xbfa589(0x476)),'children':_0x4dabb7(_0x11ce9e,{'defaultValues':X[_0xbfa589(0x363)]})}),_0x59d745(_0x35deb5)&&_0x4dabb7(Z,{'id':_0x8fe1f1['LineAndArea'],'label':_0x5c07c1['t'](_0xbfa589(0x4ab)),'children':_0x4dabb7(_0x457b13,{'defaultValues':X['lineAndArea'],'lineStyleControl':_0xbfa589(0x4d2)})}),_0x326a9b(_0x35deb5,_0x1958f1[_0xbfa589(0x3b8)])&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x3b8)],'label':_0x5c07c1['t'](_0xbfa589(0x4d5)),'children':_0x4dabb7(_0x1dc64f,{'defaultValues':X[_0xbfa589(0x508)]})}),_0x326a9b(_0x35deb5,_0x1958f1[_0xbfa589(0x313)])&&_0x2b00c1(_0xa1bb43,{'children':[_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x36c)],'label':_0x5c07c1['t'](_0xbfa589(0x26b)),'children':_0x4dabb7(_0x185c32,{'axis':'x','defaultValues':X['axis'],'NumberFormatField':_0x2f8e19})}),_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x488)],'label':_0x5c07c1['t'](_0xbfa589(0x1ec)),'children':_0x4dabb7(_0x185c32,{'axis':'y','defaultValues':X[_0xbfa589(0x310)],'NumberFormatField':_0x2f8e19})}),_0x209d8e&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x32f)],'label':_0x5c07c1['t'](_0xbfa589(0x374)),'children':_0x4dabb7(_0x185c32,{'axis':_0xbfa589(0x1e6),'defaultValues':X[_0xbfa589(0x310)],'NumberFormatField':_0x2f8e19})}),_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x1ee)],'label':_0x5c07c1['t'](_0xbfa589(0x261)),'children':_0x4dabb7(_0x1f6674,{'defaultValues':X[_0xbfa589(0x310)]})})]}),_0x326a9b(_0x35deb5,_0x1958f1[_0xbfa589(0x223)])&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x223)],'label':_0x5c07c1['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x4dabb7(_0x5f2295,{'defaultValues':X['indicatorLine']})}),_0xae124c(_0x35deb5)&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x277)],'label':_0x5c07c1['t'](_0xbfa589(0x387)),'children':_0x4dabb7(_0x3c8ddd,{'defaultValues':X[_0xbfa589(0x23c)]})}),_0x441410&&_0x4dabb7(Z,{'id':_0x441410['id'],'label':_0x441410[_0xbfa589(0x3b0)],'children':_0x4dabb7(_0x5d0cdf,{})})]});}function ni(_0x557cb7,_0x3ea701){const _0x140274=_0x2353bc;let _0x3e56ef={[_0x3414f3[_0x140274(0x1fe)]]:{'id':_0x8fe1f1[_0x140274(0x1fe)],'localeKey':_0x140274(0x1db)},[_0x3414f3['Histogram']]:{'id':_0x8fe1f1[_0x140274(0x242)],'localeKey':_0x140274(0x255)},[_0x3414f3[_0x140274(0x3aa)]]:{'id':_0x8fe1f1['Treemap'],'localeKey':_0x140274(0x2be)},[_0x3414f3[_0x140274(0x366)]]:{'id':_0x8fe1f1[_0x140274(0x366)],'localeKey':_0x140274(0x495)},[_0x3414f3[_0x140274(0x494)]]:{'id':_0x8fe1f1[_0x140274(0x494)],'localeKey':_0x140274(0x3a9)},[_0x3414f3[_0x140274(0x2e4)]]:{'id':_0x8fe1f1[_0x140274(0x2e4)],'localeKey':_0x140274(0x37c)}}[_0x557cb7];return _0x3e56ef?{'id':_0x3e56ef['id'],'label':_0x3ea701['t'](_0x3e56ef[_0x140274(0x353)])}:null;}function ri(_0x17294f){return'bases-dashboard-ui.chart.chartTypes.'+_0x17294f;}function ii({onChange:_0x24c751,onEditData:_0x328425,runtime:_0x48e895,sourceChart:_0x3bd8eb,sourceName:_0x43ddac,widget:_0x55dc0b}){const _0x3ecf51=_0x2353bc;let _0x1fcc4d=_0x39b411(Gr),_0x440d46=_0x39b411(_0x5cd3ee),[_0x1c42dc,_0x56406e]=_0x2be63d(_0x139866[_0x3ecf51(0x1df)]),_0x26c278=_0x55dc0b[_0x3ecf51(0x4d8)]??_0x3bd8eb,_0x1c74ec=_0x56a185(()=>new _0x29d554(_0x48e895[_0x3ecf51(0x37a)],{'commit':_0x2722a7=>{const _0x1cb880=_0x3ecf51;var _0x3438e4;let _0x189376=_0x48e895[_0x1cb880(0x37a)],_0x1c6e11=_0x485197(_0x2722a7,{'series':(_0x3438e4=_0x189376['config'])==null?void 0x0:_0x3438e4[_0x1cb880(0x418)],'currentChartType':_0x189376[_0x1cb880(0x3e2)],'currentStyle':_0x189376[_0x1cb880(0x3f1)],'currentContext':_0x189376[_0x1cb880(0x1af)],'currentDataAggregation':_0x189376[_0x1cb880(0x3b9)]});_0x24c751({..._0x55dc0b,'chart':$r(_0x26c278,_0x1c6e11)})['catch'](()=>void 0x0);}}),[_0x26c278,_0x24c751,_0x48e895,_0x55dc0b]),_0xee1465=_0x56a185(()=>_0x2dbfb8(_0x170e20[_0x3ecf51(0x3ff)](_0x40b079=>({..._0x40b079,'label':_0x440d46['t'](ai(_0x40b079[_0x3ecf51(0x1a8)]))}))),[_0x440d46]);return _0x4dabb7(_0x4bacfa,{'chartUIService':_0x1fcc4d,'hostAdapter':_0x1c74ec,'children':_0x2b00c1(_0x3ecf51(0x442),{'data-dashboard-chart-inspector':!0x0,'className':_0x3ecf51(0x2f2),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x440d46['t'](_0x3ecf51(0x3d4)),'className':_0x3ecf51(0x410),'items':[{'label':_0x440d46['t'](_0x3ecf51(0x466)),'panelId':_0x3ecf51(0x295),'value':_0x139866[_0x3ecf51(0x1df)]},{'label':_0x440d46['t'](_0x3ecf51(0x33f)),'panelId':_0x3ecf51(0x46d),'value':_0x139866[_0x3ecf51(0x352)]}],'value':_0x1c42dc,'onChange':_0x56406e}),_0x1c42dc===_0x139866[_0x3ecf51(0x1df)]?_0x4dabb7(_0x3812e6,{'id':'dashboard-chart-setup','label':_0x440d46['t'](_0x3ecf51(0x466)),'children':_0x2b00c1('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x4dabb7(_0x195039,{'options':_0xee1465}),_0x4dabb7(_0x3eaf0a,{}),_0x4dabb7(_0x1603db,{}),_0x4dabb7(ei,{}),_0x4dabb7(_0x3210ae,{}),_0x2b00c1(_0x3ecf51(0x442),{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x440d46['t']('bases-dashboard-ui.dashboardInspector.dataSource')}),_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x43ddac}),_0x4dabb7(_0x1b3e3b,{'className':_0x3ecf51(0x25f),'onClick':_0x328425,'children':_0x440d46['t'](_0x3ecf51(0x2e0))})]})]})}):_0x4dabb7(_0x3812e6,{'id':'dashboard-chart-style','label':_0x440d46['t'](_0x3ecf51(0x33f)),'children':_0x4dabb7(ti,{})})]})});}function ai(_0x302d85){const _0x1fa892=_0x2353bc;return _0x1fa892(0x317)+_0x302d85;}const oi=[_0x2353bc(0x3f3),_0x2353bc(0x3c4),_0x2353bc(0x327),_0x2353bc(0x241),_0x2353bc(0x39e),_0x2353bc(0x1be)];function si({base:_0x519c35,onChange:_0x255deb,onSelectBackgroundImage:_0xed7c5c,widget:_0x3d782c}){const _0x419e6d=_0x2353bc;var _0xe252be;let _0x1b4850=_0x39b411(_0x5cd3ee),_0x3fb4b2=_0x39b411(_0x277079),_0x4947f5=_0x499abf(()=>_0x3fb4b2[_0x419e6d(0x227)],_0x3fb4b2[_0x419e6d(0x2d8)](),!0x1,[_0x3fb4b2]),_0xe55b09=_0x499abf(()=>_0x3fb4b2[_0x419e6d(0x3d1)],_0x3fb4b2[_0x419e6d(0x3af)],!0x1,[_0x3fb4b2]),[_0x51db30,_0x1765e2]=_0x2be63d(_0x419e6d(0x4b1)),[_0x5fc54,_0x4271b2]=_0x2be63d(!0x1),_0x26f90a=xr(_0x3d782c),_0x5094da=_0x519c35[_0x419e6d(0x3f5)]()['tables'][_0x3d782c[_0x419e6d(0x475)]],_0x7743e6=_0x5094da==null?void 0x0:_0x5094da[_0x419e6d(0x411)][_0x419e6d(0x397)](_0x35e99a=>_0x5094da[_0x419e6d(0x451)][_0x35e99a]),_0x52623c=_0x7743e6?_0x5094da==null?void 0x0:_0x5094da[_0x419e6d(0x451)][_0x7743e6]:void 0x0,_0x5574b2=_0x5094da&&_0x52623c?_0x57cd99(_0x519c35[_0x419e6d(0x3f5)](),_0x5094da,_0x52623c)[_0x419e6d(0x3ff)](_0x45ef9d=>({..._0x45ef9d,'current':!0x1})):[],_0x6a0f9=((_0xe252be=_0x3d782c[_0x419e6d(0x1d8)][_0x419e6d(0x3e3)])==null?void 0x0:_0xe252be['formula'])??'',_0xe18a76=_0x103cda=>_0x255deb(Sr(_0x3d782c,_0x103cda))['catch'](()=>void 0x0),_0x1c3adc=_0x581676=>_0x255deb({..._0x3d782c,'description':_0x581676})[_0x419e6d(0x3d2)](()=>void 0x0);return _0x2b00c1(_0x419e6d(0x442),{'data-dashboard-formula-inspector':!0x0,'className':_0x419e6d(0x2f2),'children':[_0x4dabb7(_0x116fe9,{'className':'univer-m-3','items':[{'value':_0x419e6d(0x4b1),'label':_0x1b4850['t'](_0x419e6d(0x1dd))},{'value':_0x419e6d(0x3f1),'label':_0x1b4850['t'](_0x419e6d(0x2ac))}],'value':_0x51db30,'onChange':_0x1765e2}),_0x4dabb7(_0x419e6d(0x442),{'className':_0x419e6d(0x26e),'children':_0x51db30==='data'?_0x2b00c1(_0x419e6d(0x442),{'className':_0x419e6d(0x4e0),'children':[_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x44f)),'children':_0x4dabb7(_0x2c53ee,{'value':_0x3d782c[_0x419e6d(0x24b)]??_0x3d782c[_0x419e6d(0x448)]??'','onChange':_0x1c3adc,'onBlur':_0x546090=>_0x1c3adc(_0x546090[_0x419e6d(0x344)]['value'])})}),_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x31b)),'children':_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':(_0x5094da==null?void 0x0:_0x5094da[_0x419e6d(0x329)])??_0x1b4850['t'](_0x419e6d(0x3d7))})}),_0x2b00c1(ci,{'label':_0x1b4850['t'](_0x419e6d(0x222)),'children':[_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x1b3454(_0x6a0f9,_0x5574b2)}),_0x4dabb7(_0x1b3e3b,{'className':_0x419e6d(0x25f),'onClick':()=>_0x4271b2(!0x0),'children':_0x1b4850['t'](_0x419e6d(0x460))})]})]}):_0x2b00c1('div',{'className':_0x419e6d(0x4e0),'children':[_0x4dabb7(_0x38703b,{'emptyLabel':_0x1b4850['t'](_0x419e6d(0x245)),'label':_0x1b4850['t'](_0x419e6d(0x245)),'pickerFallbackValue':_0xe55b09?_0x4947f5[_0x419e6d(0x433)][0x384]:_0x4947f5[_0x419e6d(0x433)][0x0],'resetLabel':_0x1b4850['t'](_0x419e6d(0x449)),'value':_0x26f90a[_0x419e6d(0x394)]??null,'onChange':_0x2233b1=>_0xe18a76({'backgroundColor':_0x2233b1??void 0x0})}),_0x2b00c1(ci,{'label':_0x1b4850['t'](_0x419e6d(0x267)),'children':[_0x2b00c1('div',{'className':_0x419e6d(0x4cf),'children':[_0x2b00c1(_0x1b3e3b,{'className':_0x419e6d(0x342),'onClick':()=>{const _0xeca2d1=_0x419e6d;_0xed7c5c()[_0xeca2d1(0x388)](_0x176032=>{const _0x1d68c4=_0xeca2d1;if(_0x176032){var _0x3978e0;return _0xe18a76({'backgroundImage':{..._0x176032,'fit':((_0x3978e0=_0x26f90a[_0x1d68c4(0x48f)])==null?void 0x0:_0x3978e0['fit'])??'cover'}});}})[_0xeca2d1(0x3d2)](()=>void 0x0);},'children':[_0x4dabb7(_0x5155a3,{}),_0x26f90a[_0x419e6d(0x48f)]?_0x1b4850['t'](_0x419e6d(0x256)):_0x1b4850['t'](_0x419e6d(0x4fb))]}),_0x26f90a[_0x419e6d(0x48f)]&&_0x4dabb7(_0x1b3e3b,{'aria-label':_0x1b4850['t'](_0x419e6d(0x1f0)),'title':_0x1b4850['t'](_0x419e6d(0x1f0)),'onClick':()=>_0xe18a76({'backgroundImage':void 0x0}),'children':_0x4dabb7(_0x2d17f6,{})})]}),_0x26f90a[_0x419e6d(0x48f)]&&_0x4dabb7(_0x116fe9,{'className':_0x419e6d(0x266),'items':[{'value':_0x419e6d(0x3d5),'label':_0x1b4850['t'](_0x419e6d(0x2e7))},{'value':_0x419e6d(0x31e),'label':_0x1b4850['t'](_0x419e6d(0x45b))}],'value':_0x26f90a[_0x419e6d(0x48f)]['fit'],'onChange':_0x4a704d=>_0xe18a76({'backgroundImage':_0x26f90a[_0x419e6d(0x48f)]?{..._0x26f90a[_0x419e6d(0x48f)],'fit':_0x4a704d}:void 0x0})})]}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x1b4850['t'](_0x419e6d(0x21a)),'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0xe55b09?_0x4947f5[_0x419e6d(0x433)][0x32]:_0x4947f5[_0x419e6d(0x433)][0x3e8],'resetLabel':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x26f90a[_0x419e6d(0x204)]??null,'onChange':_0x17607b=>_0xe18a76({'textColor':_0x17607b??void 0x0})}),_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x3cf)),'children':_0x4dabb7(_0x116fe9,{'items':[{'value':'left','label':_0x1b4850['t'](_0x419e6d(0x28d))},{'value':_0x419e6d(0x4b2),'label':_0x1b4850['t'](_0x419e6d(0x237))},{'value':'right','label':_0x1b4850['t'](_0x419e6d(0x1fd))}],'value':_0x26f90a[_0x419e6d(0x22e)],'onChange':_0x56fcc0=>_0xe18a76({'alignment':_0x56fcc0})})}),_0x2b00c1(ci,{'label':_0x1b4850['t'](_0x419e6d(0x219)),'children':[_0x4dabb7(_0x116fe9,{'items':[{'value':_0x419e6d(0x3b6),'label':_0x1b4850['t'](_0x419e6d(0x29b))},{'value':_0x419e6d(0x509),'label':_0x1b4850['t'](_0x419e6d(0x1da))}],'value':_0x26f90a['fontSizeMode'],'onChange':_0x5c62ef=>_0xe18a76({'fontSizeMode':_0x5c62ef})}),_0x26f90a[_0x419e6d(0x1e2)]===_0x419e6d(0x509)&&_0x4dabb7(_0x1c2086,{'className':'univer-mt-2','min':0xc,'max':0x78,'value':_0x26f90a['fontSize'],'onChange':_0x22b14f=>_0xe18a76({'fontSize':_0x22b14f??0x28,'fontSizeMode':_0x419e6d(0x509)})})]}),_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x500)),'children':_0x4dabb7(qr,{'value':_0x26f90a[_0x419e6d(0x348)],'options':[{'value':_0x419e6d(0x3f3),'label':_0x1b4850['t'](_0x419e6d(0x292))},{'value':_0x419e6d(0x3c4),'label':_0x1b4850['t'](_0x419e6d(0x1e1))},{'value':_0x419e6d(0x327),'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.percent')},{'value':_0x419e6d(0x241),'label':_0x1b4850['t'](_0x419e6d(0x502))},{'value':_0x419e6d(0x39e),'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':_0x419e6d(0x1be),'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.compact')}],'onChange':_0x2e7ea1=>{let _0x1fc9cd=oi['find'](_0x11c21f=>_0x11c21f===_0x2e7ea1);_0x1fc9cd&&_0xe18a76({'numberFormat':_0x1fc9cd});}})}),_0x26f90a[_0x419e6d(0x348)]==='currency'&&_0x4dabb7(ci,{'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x4dabb7(_0x2c53ee,{'value':_0x26f90a[_0x419e6d(0x241)],'onChange':_0x59b567=>_0xe18a76({'currency':_0x59b567['slice'](0x0,0x3)[_0x419e6d(0x4e2)]()})})}),_0x26f90a[_0x419e6d(0x348)]!==_0x419e6d(0x3f3)&&_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x211)),'children':_0x4dabb7(_0x1c2086,{'min':0x0,'max':0x8,'value':_0x26f90a[_0x419e6d(0x201)],'onChange':_0x146695=>_0xe18a76({'decimalPlaces':_0x146695??0x0})})})]})}),_0x5fc54&&_0x4dabb7(Yr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x4dabb7(_0x33c106,{'tables':_0x5574b2,'formula':_0x1b3454(_0x6a0f9,_0x5574b2),'onCancel':()=>_0x4271b2(!0x1),'onSave':_0x19bce7=>{const _0x4ae251=_0x419e6d;let _0x51a9c5=_0x3d782c['shapeData']['formulaBinding']??{'formula':''};return _0x255deb({..._0x3d782c,'shapeData':{..._0x3d782c[_0x4ae251(0x1d8)],'formulaBinding':{..._0x51a9c5,'formula':_0x24d391(_0x19bce7,_0x5574b2)}}})[_0x4ae251(0x388)](()=>_0x4271b2(!0x1))['catch'](()=>void 0x0);}})})]});}function ci({children:_0x40b2fb,label:_0x2f7059}){const _0x49e31f=_0x2353bc;return _0x2b00c1(_0x49e31f(0x442),{'role':_0x49e31f(0x365),'aria-label':_0x2f7059,'className':_0x49e31f(0x3d0),'children':[_0x4dabb7(_0x49e31f(0x3ec),{'children':_0x2f7059}),_0x40b2fb]});}function li({disabled:_0x392d42,fields:_0xbf8cf3,filter:_0x383dda,onChange:_0x5da0a4}){const _0xd77aa4=_0x2353bc;let _0x4a8b7c=_0x39b411(_0x55d16d)[_0xd77aa4(0x217)]??null,[_0x1fe5aa,_0x12ff86]=_0x2be63d(null),_0x2dbb15=_0x39b411(_0x5cd3ee),_0x3fc0b1=(_0x383dda==null?void 0x0:_0x383dda[_0xd77aa4(0x1b8)])??[];if(!_0x3fc0b1[_0xd77aa4(0x4da)])return _0x2b00c1(_0xd77aa4(0x442),{'className':_0xd77aa4(0x1f2),'children':[_0x4dabb7(_0x425726,{'className':_0xd77aa4(0x472)}),_0x4dabb7('span',{'className':'univer-text-sm','children':_0x2dbb15['t']('bases-dashboard-ui.dashboard.tableFilter')})]});let _0x486f78=_0x1fe5aa==null?void 0x0:_0x3fc0b1[_0x1fe5aa],_0x3e4a3c=_0xbf8cf3['find'](_0x1db10b=>_0x1db10b['id']===(_0x486f78==null?void 0x0:_0x486f78[_0xd77aa4(0x43d)]));return _0x2b00c1(_0xd77aa4(0x442),{'className':_0xd77aa4(0x26d),'children':[_0x3fc0b1[_0xd77aa4(0x3ff)]((_0x266219,_0x2eb809)=>{const _0x3dd986=_0xd77aa4;var _0x2c60ee;return _0x2b00c1(_0x1b3e3b,{'disabled':_0x392d42,'onClick':()=>_0x12ff86(_0x2eb809),'children':[_0x4dabb7(_0x3dd986(0x3ec),{'children':((_0x2c60ee=_0xbf8cf3[_0x3dd986(0x397)](_0x586e36=>_0x586e36['id']===_0x266219[_0x3dd986(0x43d)]))==null?void 0x0:_0x2c60ee['name'])??_0x266219[_0x3dd986(0x43d)]}),_0x4dabb7(_0x3dd986(0x3ec),{'className':_0x3dd986(0x226),'children':String(_0x266219[_0x3dd986(0x37d)]??'')})]},_0x266219[_0x3dd986(0x43d)]+'-'+_0x2eb809);}),_0x3e4a3c&&_0x486f78&&_0x1fe5aa!=null&&_0x4a8b7c&&_0x1f6ddd(_0x4dabb7(_0x5c4dcf,{'field':_0x3e4a3c,'value':_0x486f78[_0xd77aa4(0x37d)],'onClose':()=>_0x12ff86(null),'onSave':_0x773d13=>{const _0x530f97=_0xd77aa4;_0x5da0a4({'conjunction':(_0x383dda==null?void 0x0:_0x383dda['conjunction'])??_0xf09c6[_0x530f97(0x27f)],'conditions':_0x3fc0b1[_0x530f97(0x3ff)]((_0x6ed982,_0xae69c4)=>_0xae69c4===_0x1fe5aa?{..._0x6ed982,'operand':_0x773d13}:_0x6ed982)}),_0x12ff86(null);}}),_0x4a8b7c)]});}function ui({fields:_0x59af24,filter:_0x10f7b3,onChange:_0x41e07c,onClear:_0x96e3d1}){const _0x4dc081=_0x2353bc;let _0x536542=_0x39b411(_0x5cd3ee);return _0x2b00c1(_0x4dc081(0x442),{'children':[_0x4dabb7(_0x1ab4e1,{'fields':_0x59af24,'value':_0x10f7b3??{'conjunction':_0xf09c6[_0x4dc081(0x27f)],'conditions':[]},'onChange':_0x41e07c}),_0x4dabb7(_0x1b3e3b,{'onClick':_0x96e3d1,'children':_0x536542['t'](_0x4dc081(0x449))})]});}function di({base:_0x452002,chartRuntime:_0xb13a2b,onChange:_0x3c5a03,onClose:_0x2499a2,onSelectBackgroundImage:_0x59bc3a,onSelectImage:_0x50bca2,unitId:_0x6f935d,widget:_0x48a5fd}){const _0x2e4805=_0x2353bc;let _0x1fc0cc=_0x39b411(_0x32452d),_0x5a8c52=_0x39b411(_0x5cd3ee),_0x4a9b68=_0x452002[_0x2e4805(0x3f5)](),_0x47fb5f='tableId'in _0x48a5fd?_0x4a9b68[_0x2e4805(0x39c)][_0x48a5fd[_0x2e4805(0x475)]]:void 0x0,_0x402bd6=_0x48a5fd[_0x2e4805(0x393)]===_0x342116[_0x2e4805(0x3a3)]?_0x47fb5f==null?void 0x0:_0x47fb5f[_0x2e4805(0x451)][_0x48a5fd[_0x2e4805(0x399)]]:void 0x0,_0x37fab7=_0x5a8c52['t'](vi(_0x48a5fd)),_0xc8266c=_0x2b00c1(_0x2e4805(0x2b6),{'data-dashboard-inspector':!0x0,'className':_0x2e4805(0x28a),'children':[_0x48a5fd[_0x2e4805(0x393)]===_0x342116[_0x2e4805(0x3a3)]&&(_i(_0x402bd6)&&_0xb13a2b?_0x4dabb7(ii,{'runtime':_0xb13a2b,'sourceChart':_0x402bd6[_0x2e4805(0x4e8)][_0x2e4805(0x4d8)],'sourceName':((_0x47fb5f==null?void 0x0:_0x47fb5f[_0x2e4805(0x329)])??'')+'\x20/\x20'+_0x402bd6[_0x2e4805(0x329)],'widget':_0x48a5fd,'onChange':_0x3c5a03,'onEditData':()=>{const _0x226627=_0x2e4805;_0x1fc0cc['executeCommand'](_0x9b2833['id'],{'unitId':_0x6f935d,'tableId':_0x48a5fd['tableId'],'viewId':_0x48a5fd[_0x226627(0x399)]})['catch'](()=>void 0x0);}}):_0x4dabb7(hi,{'message':_i(_0x402bd6)?_0x5a8c52['t'](_0x2e4805(0x2aa)):_0x5a8c52['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})),_0x48a5fd['type']===_0x342116[_0x2e4805(0x36e)]&&_0x4dabb7(si,{'base':_0x452002,'widget':_0x48a5fd,'onChange':_0x3c5a03,'onSelectBackgroundImage':_0x59bc3a}),_0x48a5fd[_0x2e4805(0x393)]===_0x342116[_0x2e4805(0x296)]&&_0x4dabb7(pi,{'base':_0x452002,'onChange':_0x3c5a03,'widget':_0x48a5fd}),_0x48a5fd[_0x2e4805(0x393)]===_0x342116[_0x2e4805(0x298)]&&_0x4dabb7(mi,{'onChange':_0x3c5a03,'widget':_0x48a5fd}),_0x48a5fd[_0x2e4805(0x393)]===_0x342116['Image']&&_0x4dabb7(fi,{'onChange':_0x3c5a03,'onSelectImage':_0x50bca2,'widget':_0x48a5fd})]});return _0x4dabb7(_0x4989cc,{'title':_0x37fab7,'onClose':_0x2499a2,'children':_0xc8266c});}function fi({onChange:_0xf7d288,onSelectImage:_0x594d4f,widget:_0x3980ef}){const _0x41c97c=_0x2353bc;let _0x3530af=_0x39b411(_0x5cd3ee);return _0x2b00c1(_0x41c97c(0x442),{'className':_0x41c97c(0x443),'children':[_0x2b00c1(_0x1b3e3b,{'className':'univer-w-full','onClick':()=>_0x594d4f()[_0x41c97c(0x388)](_0x304f8c=>_0x304f8c&&_0xf7d288({..._0x3980ef,'source':_0x304f8c['source'],'sourceType':_0x304f8c[_0x41c97c(0x4b3)],'alt':_0x304f8c[_0x41c97c(0x329)]}))[_0x41c97c(0x3d2)](()=>void 0x0),'children':[_0x4dabb7(_0x5155a3,{}),_0x3530af['t'](_0x41c97c(0x256))]}),_0x2b00c1(_0x41c97c(0x3b0),{'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x4dabb7('span',{'children':_0x3530af['t']('bases-dashboard-ui.dashboardInspector.backgroundImage')}),_0x4dabb7(_0x116fe9,{'items':[{'value':_0x41c97c(0x3d5),'label':_0x3530af['t'](_0x41c97c(0x2e7))},{'value':_0x41c97c(0x42b),'label':_0x3530af['t'](_0x41c97c(0x392))},{'value':_0x41c97c(0x2bc),'label':_0x3530af['t'](_0x41c97c(0x260))}],'value':_0x3980ef['displayMode']??_0x41c97c(0x3d5),'onChange':_0x4da01d=>_0xf7d288({..._0x3980ef,'displayMode':_0x4da01d})[_0x41c97c(0x3d2)](()=>void 0x0)})]})]});}function pi({base:_0x2a322a,onChange:_0x509742,widget:_0xe86d62}){const _0x172c52=_0x2353bc;let _0x3c37f0=_0x2a322a['getSnapshot']()[_0x172c52(0x39c)][_0xe86d62['tableId']],_0x382053=_0x3c37f0==null?void 0x0:_0x3c37f0['viewOrder'][_0x172c52(0x397)](_0x35c0b4=>_0x3c37f0[_0x172c52(0x451)][_0x35c0b4]),_0x17556f=_0x382053?_0x3c37f0==null?void 0x0:_0x3c37f0[_0x172c52(0x451)][_0x382053]:void 0x0,_0x3185ee=_0x3c37f0&&_0x17556f?_0x5249f3(_0x3c37f0,_0x17556f):[];return _0x4dabb7(ui,{'fields':_0x3185ee,'filter':_0xe86d62[_0x172c52(0x1b3)],'onChange':_0x48a989=>_0x509742({..._0xe86d62,'filter':_0x48a989})['catch'](()=>void 0x0),'onClear':()=>_0x509742({..._0xe86d62,'filter':null})[_0x172c52(0x3d2)](()=>void 0x0)});}function mi({onChange:_0x2305f2,widget:_0x250201}){const _0x55530a=_0x2353bc;let _0x5b5b87=_0x39b411(_0x5cd3ee),_0x1e9ed8=_0x39b411(_0x277079),_0x3c1cbb=_0x499abf(()=>_0x1e9ed8[_0x55530a(0x227)],_0x1e9ed8['getCurrentTheme'](),!0x1,[_0x1e9ed8]),_0x55822=Br(_0x250201),_0x4c1b9a=_0x46c2f1=>_0x2305f2({..._0x250201,'appearance':{..._0x55822,..._0x46c2f1}})[_0x55530a(0x3d2)](()=>void 0x0);return _0x2b00c1('div',{'className':_0x55530a(0x4b8),'children':[_0x4dabb7(_0x136f1a,{'className':_0x55530a(0x367),'defaultValue':Vr(_0x250201[_0x55530a(0x4d6)]),'rows':0x8,'onBlur':_0xcbead5=>_0x2305f2({..._0x250201,'document':Hr(_0x250201[_0x55530a(0x4d6)],_0xcbead5[_0x55530a(0x344)][_0x55530a(0x284)])})[_0x55530a(0x3d2)](()=>void 0x0)}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x5b5b87['t'](_0x55530a(0x245)),'label':_0x5b5b87['t'](_0x55530a(0x245)),'pickerFallbackValue':_0x3c1cbb[_0x55530a(0x433)][0x0],'resetLabel':_0x5b5b87['t'](_0x55530a(0x449)),'value':_0x55822[_0x55530a(0x394)]??null,'onChange':_0x3cc47e=>_0x4c1b9a({'backgroundColor':_0x3cc47e??void 0x0})}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x5b5b87['t'](_0x55530a(0x21a)),'label':_0x5b5b87['t'](_0x55530a(0x21a)),'pickerFallbackValue':_0x3c1cbb[_0x55530a(0x433)][0x3e8],'resetLabel':_0x5b5b87['t'](_0x55530a(0x449)),'value':_0x55822[_0x55530a(0x204)]??null,'onChange':_0x13ebd5=>_0x4c1b9a({'textColor':_0x13ebd5??void 0x0})}),_0x4dabb7(gi,{'label':_0x5b5b87['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x4dabb7(_0x116fe9,{'items':[{'value':_0x55530a(0x20a),'label':_0x5b5b87['t'](_0x55530a(0x28d))},{'value':_0x55530a(0x4b2),'label':_0x5b5b87['t'](_0x55530a(0x237))},{'value':_0x55530a(0x214),'label':_0x5b5b87['t'](_0x55530a(0x1fd))}],'value':_0x55822[_0x55530a(0x22e)],'onChange':_0xe0b9e1=>_0x4c1b9a({'alignment':_0xe0b9e1})})}),_0x2b00c1(gi,{'label':_0x5b5b87['t'](_0x55530a(0x219)),'children':[_0x4dabb7(_0x116fe9,{'items':[{'value':'auto','label':_0x5b5b87['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':'custom','label':_0x5b5b87['t'](_0x55530a(0x1da))}],'value':_0x55822[_0x55530a(0x1e2)],'onChange':_0x3e81c1=>_0x4c1b9a({'fontSizeMode':_0x3e81c1})}),_0x55822[_0x55530a(0x1e2)]===_0x55530a(0x509)&&_0x4dabb7(_0x1c2086,{'className':_0x55530a(0x266),'min':0xa,'max':0x78,'value':_0x55822['fontSize'],'onChange':_0x2cd1be=>_0x4c1b9a({'fontSize':_0x2cd1be??0x12,'fontSizeMode':_0x55530a(0x509)})})]})]});}function hi({message:_0x1fe626}){const _0x4eb0a3=_0x2353bc;return _0x4dabb7(_0x4eb0a3(0x442),{'className':_0x4eb0a3(0x43b),'children':_0x1fe626});}function gi({children:_0x32df21,label:_0x28f8c0}){const _0x412141=_0x2353bc;return _0x2b00c1(_0x412141(0x442),{'role':_0x412141(0x365),'aria-':!0x0,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x4dabb7(_0x412141(0x3ec),{'children':_0x28f8c0}),_0x32df21]});}function _i(_0x1c45cf){const _0x54ef24=_0x2353bc;return(_0x1c45cf==null?void 0x0:_0x1c45cf[_0x54ef24(0x393)])===_0x5ee6b5['Pivot']&&typeof _0x1c45cf[_0x54ef24(0x4e8)]=='object'&&_0x1c45cf[_0x54ef24(0x4e8)]!==null&&'pivot'in _0x1c45cf['config']&&_0x54ef24(0x4d8)in _0x1c45cf['config'];}function vi(_0xc6e11d){const _0x1b03cb=_0x2353bc;switch(_0xc6e11d[_0x1b03cb(0x393)]){case _0x342116[_0x1b03cb(0x3a3)]:return _0x1b03cb(0x350);case _0x342116['TableFilter']:return'bases-dashboard-ui.dashboard.tableFilter';case _0x342116[_0x1b03cb(0x298)]:return _0x1b03cb(0x45f);case _0x342116[_0x1b03cb(0x4ae)]:return _0x1b03cb(0x293);case _0x342116[_0x1b03cb(0x36e)]:return _0x1b03cb(0x268);}}function yi({onDelete:_0x5eda89,onEdit:_0x59ca85,onMoveUp:_0x2cb8fa,onMoveDown:_0x1ec481}){const _0x26289a=_0x2353bc;let [_0xaad42c,_0x108322]=_0x2be63d(!0x1),_0x19c078=_0x39b411(_0x5cd3ee),_0x5d606f=_0x19c078['t'](_0x26289a(0x39f)),_0x2edc98=_0x19c078['t'](_0x26289a(0x2ef)),_0x1e8e00=_0x19c078['t'](_0x26289a(0x1b9)),_0x1b10f2=[{'type':_0x26289a(0x423),'children':_0x2b00c1(_0x26289a(0x3ec),{'className':_0x26289a(0x49a),'children':[_0x4dabb7(_0x392d1f,{'className':'univer-size-4','aria-hidden':_0x26289a(0x1d5)}),_0x4dabb7(_0x26289a(0x3ec),{'children':_0x5d606f})]}),'onSelect':_0x59ca85},..._0x2cb8fa?[{'type':_0x26289a(0x423),'children':_0x2b00c1('span',{'className':_0x26289a(0x49a),'children':[_0x4dabb7(_0x19b9b0,{'className':_0x26289a(0x40e),'aria-hidden':_0x26289a(0x1d5)}),_0x4dabb7(_0x26289a(0x3ec),{'children':_0x19c078['t'](_0x26289a(0x2ab))})]}),'onSelect':_0x2cb8fa}]:[],..._0x1ec481?[{'type':'item','children':_0x2b00c1(_0x26289a(0x3ec),{'className':_0x26289a(0x49a),'children':[_0x4dabb7(_0x5c6cd4,{'className':'univer-size-4','aria-hidden':_0x26289a(0x1d5)}),_0x4dabb7(_0x26289a(0x3ec),{'children':_0x19c078['t'](_0x26289a(0x33b))})]}),'onSelect':_0x1ec481}]:[],{'type':'separator'},{'type':'item','variant':_0x26289a(0x4d0),'children':_0x2b00c1('span',{'className':_0x26289a(0x49a),'children':[_0x4dabb7(_0x2d17f6,{'className':_0x26289a(0x40e),'aria-hidden':_0x26289a(0x1d5)}),_0x4dabb7(_0x26289a(0x3ec),{'children':_0x2edc98})]}),'onSelect':_0x5eda89}];return _0x4dabb7(_0x492a1e,{'open':_0xaad42c,'onOpenChange':_0x108322,'align':'end','sideOffset':0x4,'items':_0x1b10f2[_0x26289a(0x3ff)](_0x351437=>({..._0x351437,'className':_0x351437[_0x26289a(0x393)]==='item'?_0x26289a(0x333):void 0x0})),'children':_0x4dabb7(_0x1b3e3b,{'type':_0x26289a(0x228),'size':'small','variant':_0x26289a(0x452),'onPointerDown':_0x29dd6c=>_0x29dd6c[_0x26289a(0x3ca)](),'onClick':()=>_0x108322(_0x27622e=>!_0x27622e),'title':_0x1e8e00,'aria-label':_0x1e8e00,'className':_0x26289a(0x390),'children':_0x4dabb7(_0x27b384,{'className':_0x26289a(0x40e),'aria-hidden':_0x26289a(0x1d5)})})});}function bi({dashboardId:_0x37d848,presentation:_0x4d39a0=!0x1,unitId:_0x4dcc89}){const _0x1b836e=_0x2353bc;let _0x1041b0=_0x39b411(_0x5a8661),_0x588165=_0x39b411(_0x1adc86);_0x499abf(_0x588165[_0x1b836e(0x27e)],0x0);let _0x32fdc9=_0x39b411(_0x32452d),_0x3eb518=_0x39b411(_0x4d763c),_0x1c912c=_0x39b411(_0x5482b5),_0x264795=_0x39b411(_0x4074e5),_0x16550a=_0x39b411(_0x5cd3ee),_0x16d860=_0x39b411(_0x5e40a3),_0x398124=_0x39b411(_0x123793),[_0x57b776,_0x492bbd]=_0x2be63d(!0x1),[_0x24fe28,_0x330d3b]=_0x2be63d(),[_0x572763,_0xea6dc7]=_0x2be63d(!0x1),[_0x5bf598,_0x88d98]=_0x2be63d(()=>new Map()),_0x525b5b=_0xd8821d((_0xbaf683,_0x246ff0)=>{_0x88d98(_0x5898d0=>{const _0x388158=_0x1cf6;let _0x10c1e9=new Map(_0x5898d0);return _0x246ff0?_0x10c1e9[_0x388158(0x401)](_0xbaf683,_0x246ff0):_0x10c1e9['delete'](_0xbaf683),_0x10c1e9;});},[]),_0xdc038c=_0x499abf(()=>_0x16d860[_0x1b836e(0x2a3)]['pipe'](_0x299cc9(()=>_0x16d860['getDashboard'](_0x4dcc89,_0x37d848))),_0x16d860['getDashboard'](_0x4dcc89,_0x37d848),!0x1,[_0x37d848,_0x16d860,_0x4dcc89]),_0x4484d0=_0x264795['getUnit'](_0x4dcc89,_0x51ec78['UNIVER_BASE']),_0x5ca72c=_0x499abf(()=>_0x398124[_0x1b836e(0x21f)],{'undos':0x0,'redos':0x0},!0x1,[_0x398124]),_0x10ba9a=gr(_0x4dcc89,_0x37d848);if(_0x38e78f(()=>{const _0x1f11cf=_0x1b836e;_0x264795['setCurrentUnitForType'](_0x4dcc89),_0x264795[_0x1f11cf(0x35f)](_0x4dcc89);},[_0x264795,_0x4dcc89]),!_0xdc038c||!_0x4484d0)return null;let _0x5c22d6={'unitId':_0x4dcc89,'objectId':_0x275cd2(_0x37d848),'objectType':_0x4f7ac1[_0x1b836e(0x4d9)]},_0x498890=(_0x5c61ca,_0x16c88a)=>{const _0x59e19c=_0x1b836e;let _0x139927=[..._0xdc038c[_0x59e19c(0x362)]],_0x32fda9=_0x139927[_0x59e19c(0x265)](_0x5c61ca),_0x3184c4=_0x32fda9+_0x16c88a;if(!(_0x32fda9<0x0||_0x3184c4<0x0||_0x3184c4>=_0x139927['length']))return[_0x139927[_0x32fda9],_0x139927[_0x3184c4]]=[_0x139927[_0x3184c4],_0x139927[_0x32fda9]],_0x32fdc9[_0x59e19c(0x1ff)](_0x5cbeb4['id'],{'unitId':_0x4dcc89,'dashboard':{..._0xdc038c,'widgetOrder':_0x139927}});},_0x47f2da=_0x2f2afd=>_0x32fdc9['executeCommand'](_0x2b3367['id'],{'unitId':_0x4dcc89,'dashboardId':_0x37d848,'widget':_0x2f2afd})[_0x1b836e(0x3d2)](()=>void 0x0),_0x392eb4=(_0x4d0f5b,_0x14c2a2,_0xd66285)=>{const _0x4c6f0c=_0x1b836e;let _0x568e8d=Math['max'](0x0,..._0xdc038c[_0x4c6f0c(0x362)][_0x4c6f0c(0x3bc)](_0xe23f16=>{const _0x4109ad=_0x4c6f0c;var _0x36b5d5;let _0x3650da=(_0x36b5d5=_0xdc038c['widgets'][_0xe23f16])==null?void 0x0:_0x36b5d5[_0x4109ad(0x439)];return _0x3650da?[_0x3650da[_0x4109ad(0x487)]+_0x3650da['rowSpan']]:[];})),_0x243c1d=_0x4c6f0c(0x4a9)+_0x325e5d(0x8),_0x630fbd={'column':0x0,'row':_0x568e8d,'columnSpan':_0x14c2a2,'rowSpan':_0xd66285};switch(_0x4d0f5b[_0x4c6f0c(0x393)]){case _0x342116['PivotChart']:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});case _0x342116['TableFilter']:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});case _0x342116[_0x4c6f0c(0x298)]:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});case _0x342116['Image']:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});case _0x342116[_0x4c6f0c(0x36e)]:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});}},_0x4685a9=_0x4484d0[_0x1b836e(0x3f5)](),_0x49feee=_0x4685a9['tableOrder'][_0x1b836e(0x3bc)](_0x54298c=>{const _0x58cd5c=_0x1b836e;let _0x37290e=_0x4685a9['tables'][_0x54298c];if(!_0x37290e)return[];let _0x480e03=_0x37290e[_0x58cd5c(0x411)][_0x58cd5c(0x3bc)](_0x102cbb=>{const _0x395e0b=_0x58cd5c;let _0x4efc5f=_0x37290e[_0x395e0b(0x451)][_0x102cbb];return Oi(_0x4efc5f)?[{'type':_0x395e0b(0x423),'children':_0x4efc5f['name'],'onSelect':()=>_0x392eb4({'type':_0x342116[_0x395e0b(0x3a3)],'tableId':_0x54298c,'pivotViewId':_0x102cbb,'chart':{..._0x4efc5f['config'][_0x395e0b(0x4d8)]}},0x6,0xa)}]:[];});return[{'type':_0x58cd5c(0x429),'children':_0x37290e[_0x58cd5c(0x329)],'options':[..._0x480e03,..._0x480e03['length']?[{'type':_0x58cd5c(0x50a)}]:[],{'type':'item','children':_0x16550a['t'](_0x58cd5c(0x396)),'onSelect':()=>_0x392eb4({'type':_0x342116[_0x58cd5c(0x296)],'tableId':_0x54298c,'filter':null},0x6,0x8)}]}];}),_0x5c2c27=[..._0x49feee,..._0x49feee['length']?[{'type':_0x1b836e(0x50a)}]:[],{'type':_0x1b836e(0x423),'children':_0x16550a['t'](_0x1b836e(0x45f)),'onSelect':()=>_0x392eb4({'type':_0x342116[_0x1b836e(0x298)],'document':wi()},0x4,0x6)},{'type':_0x1b836e(0x423),'children':_0x16550a['t'](_0x1b836e(0x293)),'onSelect':()=>Ti(_0x3eb518)[_0x1b836e(0x388)](_0x3a6746=>_0x3a6746&&_0x392eb4({'type':_0x342116[_0x1b836e(0x4ae)],'source':_0x3a6746['source'],'sourceType':_0x3a6746[_0x1b836e(0x4b3)],'alt':_0x3a6746[_0x1b836e(0x329)],'displayMode':'cover'},0x4,0x6))},{'type':'item','children':_0x16550a['t'](_0x1b836e(0x268)),'onSelect':()=>{const _0x2ea04d=_0x1b836e;let _0x28409a=_0x4685a9[_0x2ea04d(0x1e5)][_0x2ea04d(0x397)](_0x5c4838=>_0x4685a9[_0x2ea04d(0x39c)][_0x5c4838]);_0x28409a&&_0x392eb4({'type':_0x342116[_0x2ea04d(0x36e)],'tableId':_0x28409a,'shapeType':_0x4387d7[_0x2ea04d(0x3a7)],'shapeData':_0x11d1a1(),'description':_0x16550a['t']('bases-dashboard-ui.dashboard.formulaShape')},0x4,0x6);}}],_0x17ff2a=_0x24fe28?_0xdc038c[_0x1b836e(0x4e1)][_0x24fe28]:void 0x0,_0x734064=()=>_0xea6dc7(_0x471b31=>!_0x471b31),_0x4c82e0=_0x4d39a0||_0x572763,_0x2f2990=_0x10ba9a&&!_0x4c82e0;return _0x4dabb7(Kr,{'children':_0x2b00c1(_0x1b836e(0x442),{'className':_0x1b836e(0x37b)+(_0x572763?_0x1b836e(0x369):'univer-relative\x20univer-z-10')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[_0x572763&&_0x4dabb7(_0x1b3e3b,{'onClick':()=>_0xea6dc7(!0x1),'children':_0x16550a['t'](_0x1b836e(0x1bf))}),!_0x4c82e0&&_0x2b00c1(_0x1b836e(0x36a),{'className':'univer-flex\x20univer-h-auto\x20univer-min-h-12\x20univer-shrink-0\x20univer-flex-wrap\x20univer-items-center\x20univer-gap-1\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x4dabb7(_0x433eb4,{'className':_0x1b836e(0x1bd)}),_0x4dabb7('h2',{'className':_0x1b836e(0x385),'children':_0xdc038c[_0x1b836e(0x329)]}),_0x588165[_0x1b836e(0x3fd)](_0x5c22d6)&&_0x4dabb7(_0x1b3e3b,{'variant':_0x1b836e(0x452),'disabled':!_0x588165['canView'](_0x5c22d6),'aria-label':_0x16550a['t'](_0x1b836e(0x3a2)),'onClick':()=>{const _0xe8aa22=_0x1b836e;_0x14db5b(_0x1041b0,{'target':_0x5c22d6,'name':_0xdc038c[_0xe8aa22(0x329)],'commandId':_0x42d2ec['id'],'exists':()=>!!_0x16d860['getDashboard'](_0x4dcc89,_0x37d848)});},'children':_0x4dabb7(_0x7e2f55,{})}),_0x4dabb7(_0xf8bfea,{'unitId':_0x4dcc89}),_0x4dabb7(_0x1b3e3b,{'type':'button','size':_0x1b836e(0x432),'variant':_0x1b836e(0x452),'aria-label':_0x16550a['t'](_0x1b836e(0x4ee)),'disabled':!_0x10ba9a||_0x5ca72c['undos']===0x0,'onClick':()=>_0x32fdc9[_0x1b836e(0x1ff)](_0x4170dd['id'])[_0x1b836e(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x4f90a3,{})}),_0x4dabb7(_0x1b3e3b,{'type':_0x1b836e(0x228),'size':_0x1b836e(0x432),'variant':_0x1b836e(0x452),'aria-label':_0x16550a['t'](_0x1b836e(0x1c8)),'disabled':!_0x10ba9a||_0x5ca72c[_0x1b836e(0x2ce)]===0x0,'onClick':()=>_0x32fdc9[_0x1b836e(0x1ff)](_0x8d3b46['id'])[_0x1b836e(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x44a42f,{})}),_0x4dabb7(_0x1b3e3b,{'type':_0x1b836e(0x228),'size':_0x1b836e(0x432),'variant':_0x1b836e(0x452),'aria-label':_0x16550a['t']('bases-dashboard-ui.dashboard.fullScreen'),'onClick':_0x734064,'children':_0x4dabb7(_0x54cca2,{})}),_0x4dabb7(Jr,{'items':_0x5c2c27,'children':_0x2b00c1(_0x1b3e3b,{'variant':_0x1b836e(0x37f),'disabled':!_0x10ba9a,'children':[_0x4dabb7(_0x5155a3,{}),_0x16550a['t'](_0x1b836e(0x4b0))]})})]}),_0x2b00c1('div',{'className':_0x1b836e(0x1c0),'children':[_0x4dabb7('div',{'className':_0x1b836e(0x290),'children':_0x4dabb7(Wr,{'dashboard':_0xdc038c,'editable':_0x2f2990,'widgetLabel':_0x14b2e2=>_0x16550a['t'](Di(_0x14b2e2['type'])),'selectedWidgetId':_0x2f2990?_0x24fe28:void 0x0,'onSelectWidget':_0x2f2990?_0x25ff14=>{_0x330d3b(_0x25ff14),_0x25ff14||_0x492bbd(!0x1);}:void 0x0,'renderWidget':_0x3b6720=>_0x4dabb7(xi,{'base':_0x4484d0,'dashboard':_0xdc038c,'unitId':_0x4dcc89,'widget':_0x3b6720,'onChange':_0x47f2da,'onChartRuntimeChange':_0x525b5b}),'renderWidgetActions':_0x1a50c5=>_0x4dabb7(yi,{'onMoveUp':_0xdc038c[_0x1b836e(0x362)]['indexOf'](_0x1a50c5['id'])>0x0?()=>_0x498890(_0x1a50c5['id'],-0x1):void 0x0,'onMoveDown':_0xdc038c[_0x1b836e(0x362)][_0x1b836e(0x265)](_0x1a50c5['id'])<_0xdc038c[_0x1b836e(0x362)][_0x1b836e(0x4da)]-0x1?()=>_0x498890(_0x1a50c5['id'],0x1):void 0x0,'onEdit':()=>{_0x330d3b(_0x1a50c5['id']),_0x492bbd(!0x0);},'onDelete':()=>{const _0x2998e0=_0x1b836e;_0x24fe28===_0x1a50c5['id']&&(_0x330d3b(void 0x0),_0x492bbd(!0x1)),_0x32fdc9[_0x2998e0(0x1ff)](_0x20648d['id'],{'unitId':_0x4dcc89,'dashboardId':_0x37d848,'widgetId':_0x1a50c5['id']})[_0x2998e0(0x3d2)](()=>void 0x0);}})})}),_0x2f2990&&_0x57b776&&_0x17ff2a&&_0x4dabb7(di,{'base':_0x4484d0,'chartRuntime':_0x5bf598['get'](_0x17ff2a['id']),'unitId':_0x4dcc89,'widget':_0x17ff2a,'onChange':_0x47f2da,'onClose':()=>_0x492bbd(!0x1),'onSelectBackgroundImage':()=>Ei(_0x1c912c),'onSelectImage':()=>Ti(_0x3eb518)})]})]})});}function xi({base:_0x2a117d,dashboard:_0x16a82a,onChange:_0x2ce927,onChartRuntimeChange:_0x894ffd,unitId:_0xd99dca,widget:_0x1b5833}){const _0x212a0a=_0x2353bc;let _0x318c34=_0x56a185(()=>_0x16a82a[_0x212a0a(0x362)][_0x212a0a(0x3bc)](_0x1485bb=>{const _0x1ebea9=_0x212a0a;let _0x11a497=_0x16a82a['widgets'][_0x1485bb];return(_0x11a497==null?void 0x0:_0x11a497[_0x1ebea9(0x393)])===_0x342116['TableFilter']&&_0x11a497['tableId']===(_0x1ebea9(0x475)in _0x1b5833?_0x1b5833['tableId']:'')&&_0x11a497[_0x1ebea9(0x1b3)]?[_0x11a497[_0x1ebea9(0x1b3)]]:[];}),[_0x16a82a,_0x1b5833]);switch(_0x1b5833['type']){case _0x342116['PivotChart']:return _0x4dabb7(Lr,{'filters':_0x318c34,'unitId':_0xd99dca,'widget':_0x1b5833,'onRuntimeChange':_0x894ffd});case _0x342116['TableFilter']:return _0x4dabb7(li,{'fields':Si(_0x2a117d,_0x1b5833['tableId']),'filter':_0x1b5833['filter'],'onChange':_0x5b9b2e=>_0x2ce927({..._0x1b5833,'filter':_0x5b9b2e})[_0x212a0a(0x3d2)](()=>void 0x0)});case _0x342116[_0x212a0a(0x298)]:return _0x4dabb7(Ur,{'widget':_0x1b5833});case _0x342116['Image']:return _0x4dabb7(Ci,{'widget':_0x1b5833});case _0x342116[_0x212a0a(0x36e)]:return _0x4dabb7(Dr,{'dashboardId':_0x16a82a['id'],'unitId':_0xd99dca,'widget':_0x1b5833});}}function Si(_0x47432f,_0x1bab84){const _0x34a5ec=_0x2353bc;let _0x34a7dd=_0x47432f['getSnapshot']()[_0x34a5ec(0x39c)][_0x1bab84],_0x342e92=_0x34a7dd==null?void 0x0:_0x34a7dd[_0x34a5ec(0x411)][_0x34a5ec(0x397)](_0x47b38d=>_0x34a7dd[_0x34a5ec(0x451)][_0x47b38d]),_0x5575b1=_0x342e92?_0x34a7dd==null?void 0x0:_0x34a7dd['views'][_0x342e92]:void 0x0;return _0x34a7dd&&_0x5575b1?_0x5249f3(_0x34a7dd,_0x5575b1):[];}function Ci({widget:_0xf6e448}){const _0x548064=_0x2353bc;let _0x50f41c=_0x39b411(_0x4d763c),[_0x1697cd,_0x4dadd3]=_0x2be63d(_0xf6e448[_0x548064(0x4b3)]===_0x26a785[_0x548064(0x43f)]?'':_0xf6e448['source']);return _0x38e78f(()=>{const _0x478c1c=_0x548064;let _0x116546=!0x0;return _0x50f41c[_0x478c1c(0x4c6)](_0xf6e448[_0x478c1c(0x24c)],_0xf6e448[_0x478c1c(0x4b3)])[_0x478c1c(0x388)](_0x289233=>{_0x116546&&_0x4dadd3(_0x289233);})[_0x478c1c(0x3d2)](()=>void 0x0),()=>{_0x116546=!0x1;};},[_0x50f41c,_0xf6e448['source'],_0xf6e448[_0x548064(0x4b3)]]),_0x1697cd?_0x4dabb7(_0x548064(0x442),{'role':_0xf6e448['alt']?'img':void 0x0,'aria-label':_0xf6e448['alt']||void 0x0,'data-dashboard-image':_0xf6e448['id'],'className':_0x548064(0x203),'style':vr(_0x1697cd,_0xf6e448[_0x548064(0x4a6)])}):null;}function wi(){const _0x19deb7=_0x2353bc;let _0x3e4902=_0x112de2(new Set());return{'id':_0x19deb7(0x3de)+_0x325e5d(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x3e4902}]},'documentStyle':{}};}function Ti(_0x5efd71){return new Promise(_0x1c6d87=>{const _0x3456f3=_0x1cf6;let _0x27eb71=document[_0x3456f3(0x3d6)](_0x3456f3(0x4d3));_0x27eb71[_0x3456f3(0x393)]=_0x3456f3(0x3bd),_0x27eb71[_0x3456f3(0x461)]=_0x3456f3(0x469),_0x27eb71[_0x3456f3(0x1d1)]('change',()=>{const _0x2b6c6e=_0x3456f3;var _0x1601e2;let _0x1a820c=(_0x1601e2=_0x27eb71['files'])==null?void 0x0:_0x1601e2[0x0];if(!_0x1a820c){_0x1c6d87(null);return;}_0x5efd71[_0x2b6c6e(0x504)](_0x1a820c)['then'](_0x4e2d7b=>{const _0x5454f0=_0x2b6c6e;if(!_0x4e2d7b[_0x5454f0(0x24c)]||_0x4e2d7b[_0x5454f0(0x4b3)]===void 0x0){_0x1c6d87(null);return;}_0x1c6d87({'name':_0x4e2d7b[_0x5454f0(0x329)],'source':_0x4e2d7b[_0x5454f0(0x24c)],'sourceType':_0x4e2d7b['sourceType']});})[_0x2b6c6e(0x3d2)](()=>_0x1c6d87(null));},{'once':!0x0}),_0x27eb71[_0x3456f3(0x3ab)]();});}function Ei(_0x320567){return new Promise(_0x113099=>{const _0x14aa0d=_0x1cf6;let _0x401716=document[_0x14aa0d(0x3d6)](_0x14aa0d(0x4d3));_0x401716[_0x14aa0d(0x393)]=_0x14aa0d(0x3bd),_0x401716['accept']='image/*',_0x401716[_0x14aa0d(0x1d1)](_0x14aa0d(0x48a),()=>{const _0x5d7f33=_0x14aa0d;var _0x523f73;let _0x9e2ce7=(_0x523f73=_0x401716['files'])==null?void 0x0:_0x523f73[0x0];if(!_0x9e2ce7){_0x113099(null);return;}_0x320567[_0x5d7f33(0x3dc)](_0x9e2ce7)['then'](_0x2b87e6=>{const _0x6c3c1=_0x5d7f33;if(!(_0x2b87e6!=null&&_0x2b87e6[_0x6c3c1(0x24c)])){_0x113099(null);return;}if(_0x2b87e6[_0x6c3c1(0x308)]){let _0x23b5d4=new Image();_0x23b5d4[_0x6c3c1(0x2dd)]=_0x2b87e6[_0x6c3c1(0x308)],_0x320567[_0x6c3c1(0x32e)](_0x2b87e6[_0x6c3c1(0x24c)],_0x2b87e6[_0x6c3c1(0x23d)],_0x23b5d4);}_0x113099({'source':_0x2b87e6[_0x6c3c1(0x24c)],'sourceType':_0x2b87e6[_0x6c3c1(0x23d)]});})[_0x5d7f33(0x3d2)](()=>_0x113099(null));},{'once':!0x0}),_0x401716[_0x14aa0d(0x3ab)]();});}function Di(_0x5f572f){const _0x271e64=_0x2353bc;switch(_0x5f572f){case _0x342116[_0x271e64(0x3a3)]:return _0x271e64(0x350);case _0x342116[_0x271e64(0x296)]:return _0x271e64(0x396);case _0x342116[_0x271e64(0x298)]:return _0x271e64(0x45f);case _0x342116[_0x271e64(0x4ae)]:return _0x271e64(0x293);case _0x342116[_0x271e64(0x36e)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function Oi(_0x271859){const _0x499ab2=_0x2353bc;return(_0x271859==null?void 0x0:_0x271859[_0x499ab2(0x393)])===_0x5ee6b5[_0x499ab2(0x49c)]&&typeof _0x271859[_0x499ab2(0x4e8)]==_0x499ab2(0x43c)&&_0x271859[_0x499ab2(0x4e8)]!==null&&'pivot'in _0x271859['config']&&_0x499ab2(0x4d8)in _0x271859['config'];}function ki({pivot:_0x3bf516,view:_0x266824}){const _0x2f2d8b=_0x2353bc;let _0x258130=_0x39b411(_0x5cd3ee),_0x21394b=_0x56a185(()=>Ai(_0x266824,_0x3bf516,_0x258130['t'](_0x2f2d8b(0x212))),[_0x258130,_0x3bf516,_0x266824]);return _0x2b00c1(_0x2f2d8b(0x442),{'className':_0x2f2d8b(0x323),'children':[_0x21394b['pageRows'][_0x2f2d8b(0x4da)]>0x0&&_0x4dabb7('table',{'className':'univer-mb-2\x20univer-border-collapse\x20univer-text-sm','children':_0x4dabb7(_0x2f2d8b(0x231),{'children':ji(_0x21394b[_0x2f2d8b(0x3e9)])})}),_0x2b00c1('table',{'className':_0x2f2d8b(0x420),'children':[_0x21394b[_0x2f2d8b(0x4ac)]>0x0&&_0x4dabb7('thead',{'className':_0x2f2d8b(0x44d),'children':ji(_0x21394b[_0x2f2d8b(0x4bd)][_0x2f2d8b(0x35d)](0x0,_0x21394b[_0x2f2d8b(0x4ac)]))}),_0x4dabb7(_0x2f2d8b(0x231),{'children':ji(_0x21394b[_0x2f2d8b(0x4bd)]['slice'](_0x21394b[_0x2f2d8b(0x4ac)]))})]})]});}function Ai(_0xc7501b,_0x36475f,_0x1f6297){const _0xcb5d68=_0x2353bc;let _0xccef06=_0xc7501b[_0xcb5d68(0x501)][_0xcb5d68(0x34d)],_0xb2cf78=_0xc7501b['rowView'][_0xcb5d68(0x3b5)],_0x5b550e=_0xc7501b[_0xcb5d68(0x2a4)][_0xcb5d68(0x34d)],_0x8ae676=_0xc7501b[_0xcb5d68(0x2a4)][_0xcb5d68(0x3b5)],_0x3fae7a=Array[_0xcb5d68(0x4ce)]({'length':_0xccef06+_0x5b550e},(_0x533811,_0x1febab)=>Array[_0xcb5d68(0x4ce)]({'length':_0xb2cf78+_0x8ae676},(_0x1c539b,_0x200546)=>{const _0x32c068=_0xcb5d68;var _0xa0bb32,_0x5e2baa;if(_0x1febab<_0xccef06&&_0x200546<_0xb2cf78)return Mi(_0xc7501b[_0x32c068(0x377)],_0x1febab,_0x200546,void 0x0,_0x1f6297,!0x0,!0x1,_0x32c068(0x1fc)+_0x1febab+':'+_0x200546);if(_0x1febab<_0xccef06){var _0x3b3982;let _0x43b520=_0x200546-_0xb2cf78,_0x4008dd=(_0x3b3982=_0xc7501b[_0x32c068(0x501)][_0x32c068(0x309)][_0x1febab])==null?void 0x0:_0x3b3982[_0x32c068(0x483)];return Mi(_0xc7501b[_0x32c068(0x501)],_0x1febab,_0x43b520,_0x4008dd?_0xc7501b['formatMap'][_0x4008dd]:void 0x0,_0x1f6297,!0x0,Fi(_0xc7501b['colView'][_0x32c068(0x44b)][_0x43b520]),'column:'+_0x1febab+':'+_0x43b520);}if(_0x200546<_0xb2cf78){var _0x3442c6;let _0x1becf9=_0x1febab-_0xccef06,_0x22692b=(_0x3442c6=_0xc7501b[_0x32c068(0x28c)][_0x32c068(0x309)][_0x200546])==null?void 0x0:_0x3442c6['tableFieldId'];return Mi(_0xc7501b[_0x32c068(0x28c)],_0x1becf9,_0x200546,_0x22692b?_0xc7501b[_0x32c068(0x47b)][_0x22692b]:void 0x0,_0x1f6297,!0x0,Fi(_0xc7501b[_0x32c068(0x28c)][_0x32c068(0x44b)][_0x1becf9]),_0x32c068(0x371)+_0x1becf9+':'+_0x200546);}let _0x18c33f=_0x1febab-_0xccef06,_0x3959cc=_0x200546-_0xb2cf78,_0xba71b8=Math[_0x32c068(0x2eb)](((_0xa0bb32=_0xc7501b['rowView'][_0x32c068(0x44b)][_0x18c33f])==null?void 0x0:_0xa0bb32[_0x32c068(0x3a5)])??-0x1,((_0x5e2baa=_0xc7501b[_0x32c068(0x501)][_0x32c068(0x44b)][_0x3959cc])==null?void 0x0:_0x5e2baa[_0x32c068(0x3a5)])??-0x1),_0x1b9437=_0x36475f[_0x32c068(0x1f9)][_0xba71b8<0x0?0x0:_0xba71b8];return Mi(_0xc7501b['dataView'],_0x18c33f,_0x3959cc,_0x1b9437?_0xc7501b['formatMap'][_0x1b9437]:void 0x0,_0x1f6297,!0x1,Fi(_0xc7501b[_0x32c068(0x28c)][_0x32c068(0x44b)][_0x18c33f])||Fi(_0xc7501b[_0x32c068(0x501)][_0x32c068(0x44b)][_0x3959cc]),_0x32c068(0x1e4)+_0x18c33f+':'+_0x3959cc);}));return{'headerColumnCount':_0xb2cf78,'headerRowCount':_0xccef06,'pageRows':_0xc7501b['pageView'][_0xcb5d68(0x4dc)]<0x0||_0xc7501b[_0xcb5d68(0x22d)][_0xcb5d68(0x4c3)]<0x0?[]:Array['from']({'length':_0xc7501b[_0xcb5d68(0x22d)]['lastRow']+0x1},(_0x49421c,_0x1341cb)=>Array[_0xcb5d68(0x4ce)]({'length':_0xc7501b[_0xcb5d68(0x22d)][_0xcb5d68(0x4c3)]+0x1},(_0x465df1,_0x20094f)=>Mi(_0xc7501b['pageView'],_0x1341cb,_0x20094f,void 0x0,_0x1f6297,!0x0,!0x1,_0xcb5d68(0x455)+_0x1341cb+':'+_0x20094f))),'rows':_0x3fae7a};}function ji(_0x5c1494){const _0x54c8f4=_0x2353bc;return _0x5c1494[_0x54c8f4(0x3ff)](_0x2eeeb1=>{const _0x1af5fa=_0x54c8f4;var _0x19727c;return _0x4dabb7('tr',{'children':_0x2eeeb1[_0x1af5fa(0x3ff)](_0x2ce50c=>{const _0x3f308f=_0x1af5fa;let _0x32dd1d=_0x2ce50c[_0x3f308f(0x24a)]?'th':'td';return _0x4dabb7(_0x32dd1d,{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-whitespace-nowrap\x20univer-border\x20univer-border-gray-200\x20univer-px-3\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-left\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2ce50c['isTotal']?_0x3f308f(0x2ee):'')+_0x3f308f(0x23a)+(_0x2ce50c[_0x3f308f(0x24a)]?'':_0x3f308f(0x1c5))+_0x3f308f(0x248),'children':_0x2ce50c[_0x3f308f(0x284)]},_0x2ce50c[_0x3f308f(0x336)]);})},(_0x19727c=_0x2eeeb1[0x0])==null?void 0x0:_0x19727c[_0x1af5fa(0x336)]);});}function Mi(_0x4ab663,_0x186538,_0x1bdf0d,_0x1182c8,_0x3c3439,_0x56f9e2,_0xe8b6a9,_0x4e72ca){const _0x71ce72=_0x2353bc;var _0x448722;let _0x3dd0a8=(_0x448722=_0x4ab663['data'][_0x186538])==null?void 0x0:_0x448722[_0x1bdf0d],_0x22694b=_0x3dd0a8==null?void 0x0:_0x3dd0a8['s'],_0x30942a=_0xe8b6a9||_0x22694b===_0x5d656b[_0x71ce72(0x21d)]||_0x22694b===_0x5d656b[_0x71ce72(0x435)];return{'isHeader':_0x56f9e2,'isTotal':_0x30942a||_0x22694b===_0x5d656b[_0x71ce72(0x1d3)],'key':_0x4e72ca,'style':_0x22694b,'value':_0x30942a&&Pi(_0x3dd0a8==null?void 0x0:_0x3dd0a8['v'])?_0x3c3439:Ni(_0x3dd0a8,_0x1182c8)};}function Ni(_0x25cb58,_0x3ad3fb){const _0x15721d=_0x2353bc;let _0x43c83b=_0x25cb58==null?void 0x0:_0x25cb58['v'];return _0x1b2084(_0x43c83b)?String(_0x43c83b[_0x15721d(0x284)]??_0x43c83b['prefix']??''):_0x426ce3(_0x43c83b)?'#'+_0x43c83b['errorType']:_0x3ad3fb&&typeof _0x43c83b==_0x15721d(0x3c4)?_0x3f4aae[_0x15721d(0x347)](_0x3ad3fb,_0x43c83b):String(_0x43c83b??'');}function Pi(_0x1d56b6){return _0x1d56b6===void 0x0||_0x1d56b6==='';}function Fi(_0x431bee){const _0x266301=_0x2353bc;return!!(_0x431bee!=null&&_0x431bee[_0x266301(0x361)]||_0x431bee!=null&&_0x431bee['isTopTotal']||_0x431bee!=null&&_0x431bee[_0x266301(0x3f2)]||(_0x431bee==null?void 0x0:_0x431bee[_0x266301(0x339)])==='grandTotal');}const Ii=[{'area':_0x4c815c[_0x2353bc(0x3b4)],'key':_0x2353bc(0x2e1),'label':_0x2353bc(0x2a1)},{'area':_0x4c815c[_0x2353bc(0x499)],'key':'columnFields','label':_0x2353bc(0x318)},{'area':_0x4c815c[_0x2353bc(0x456)],'key':_0x2353bc(0x490),'label':_0x2353bc(0x1d4)},{'area':_0x4c815c[_0x2353bc(0x47a)],'key':_0x2353bc(0x1f9),'label':_0x2353bc(0x326)}],Li=[{'value':_0x282c8a[_0x2353bc(0x2bf)],'localeKey':_0x2353bc(0x3b2)},{'value':_0x282c8a['count'],'localeKey':_0x2353bc(0x29c)},{'value':_0x282c8a[_0x2353bc(0x3c8)],'localeKey':_0x2353bc(0x48c)},{'value':_0x282c8a[_0x2353bc(0x4f0)],'localeKey':_0x2353bc(0x3e4)},{'value':_0x282c8a[_0x2353bc(0x2eb)],'localeKey':_0x2353bc(0x42f)},{'value':_0x282c8a[_0x2353bc(0x314)],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x282c8a[_0x2353bc(0x2d6)],'localeKey':_0x2353bc(0x44c)},{'value':_0x282c8a[_0x2353bc(0x2a7)],'localeKey':_0x2353bc(0x3ac)},{'value':_0x282c8a['stdDevp'],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x282c8a[_0x2353bc(0x218)],'localeKey':_0x2353bc(0x2b9)},{'value':_0x282c8a[_0x2353bc(0x22c)],'localeKey':_0x2353bc(0x3e0)}];function Ri(_0x4b32ae){const _0x14e6b3=_0x2353bc;let {config:_0x58b9a7,onChange:_0x5c3cac,table:_0x5900af}=_0x4b32ae,_0x3a9b06=_0x39b411(_0x5cd3ee),[_0x479898,_0x343c22]=_0x2be63d(_0x14e6b3(0x273)),[_0x4d2d78,_0x563d98]=_0x2be63d(''),[_0x565a5a,_0x54315e]=_0x2be63d(null),[_0x4fc275,_0x3db859]=_0x2be63d(null),[_0x36a548,_0x41c801]=_0x2be63d(null),[_0x1bb088,_0xc21cc0]=_0x2be63d(null),_0x3c330f=_0x35f949(null),_0x4a363d=_0x56a185(()=>_0x5900af['fieldOrder'][_0x14e6b3(0x3bc)](_0x1bbc57=>{const _0x49e6e2=_0x14e6b3;let _0x136c60=_0x5900af[_0x49e6e2(0x273)][_0x1bbc57];return _0x136c60&&_0x136c60['system']!==!0x0&&_0x136c60[_0x49e6e2(0x393)]!==_0x557eea[_0x49e6e2(0x389)]?[_0x136c60]:[];})[_0x14e6b3(0x1b3)](_0x2f9060=>_0x2f9060[_0x14e6b3(0x329)]['toLocaleLowerCase']()[_0x14e6b3(0x331)](_0x4d2d78[_0x14e6b3(0x3ee)]()[_0x14e6b3(0x49d)]())),[_0x4d2d78,_0x5900af]),_0x43ee29=_0xe7939=>{const _0x523a79=_0x14e6b3;let _0x2f210c=_0x1c8584(_0x5900af,_0x58b9a7[_0x523a79(0x4aa)]);try{_0xe7939(_0x2f210c),_0x5c3cac({'pivot':_0x2f210c['toJSON']()});}finally{_0x2f210c['dispose']();}},_0x3a9d8a=(_0x1c199e,_0x152c53)=>{_0x565a5a&&(_0x43ee29(_0xe2dd8d=>{const _0x2ca70d=_0x1cf6;if(_0x565a5a[_0x2ca70d(0x29e)]===_0x2ca70d(0x506)){let _0xd287d3=_0xe2dd8d[_0x2ca70d(0x316)](_0x565a5a['id']),_0x3551b6=_0xd287d3[_0x2ca70d(0x269)]===_0x1c199e&&_0xd287d3['index']<_0x152c53?_0x152c53-0x1:_0x152c53;_0xe2dd8d['updateFieldPosition'](_0x565a5a['id'],_0x1c199e,_0x3551b6);return;}Ki(_0xe2dd8d,_0x565a5a['id'],_0x1c199e,_0x152c53);}),_0x54315e(null),_0x3db859(null));};return _0x2b00c1(_0x14e6b3(0x442),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col','children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x3a9b06['t'](_0x14e6b3(0x4a7)),'className':_0x14e6b3(0x410),'items':[{'label':_0x3a9b06['t'](_0x14e6b3(0x2a5)),'panelId':_0x14e6b3(0x4f3),'value':_0x14e6b3(0x273)},{'label':_0x3a9b06['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x14e6b3(0x27b),'value':'options'}],'value':_0x479898,'onChange':_0x343c22}),_0x4dabb7('div',{'ref':_0x3c330f,'className':_0x52fed8(_0x14e6b3(0x2fb),_0x2a22a5),'onDragOver':_0x5171cf=>{const _0xf72121=_0x14e6b3;let _0x42f65b=_0x3c330f['current'];if(!_0x42f65b)return;let _0xc5d3e9=_0x42f65b[_0xf72121(0x4db)]();_0x5171cf[_0xf72121(0x408)]<_0xc5d3e9['top']+0x30?_0x42f65b['scrollTop']-=0x10:_0x5171cf[_0xf72121(0x408)]>_0xc5d3e9[_0xf72121(0x2d0)]-0x30&&(_0x42f65b[_0xf72121(0x425)]+=0x10);},'children':_0x479898===_0x14e6b3(0x320)?_0x4dabb7(Gi,{'config':_0x58b9a7,'commit':_0x43ee29}):_0x2b00c1(_0x14e6b3(0x442),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x2b00c1(_0x14e6b3(0x442),{'children':[_0x4dabb7(_0x14e6b3(0x442),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x3a9b06['t']('bases-dashboard-ui.pivot.sourceFields')}),_0x4dabb7(_0x2c53ee,{'allowClear':!0x0,'slot':_0x4dabb7(_0x51aac6,{}),'value':_0x4d2d78,'placeholder':_0x3a9b06['t'](_0x14e6b3(0x35a)),'onChange':_0x563d98}),_0x4dabb7(_0x14e6b3(0x442),{'className':_0x14e6b3(0x351),'children':_0x4a363d[_0x14e6b3(0x3ff)](_0x2c5221=>_0x4dabb7(zi,{'config':_0x58b9a7,'field':_0x2c5221,'onAdd':_0x50d17d=>_0x43ee29(_0x3840f7=>Ki(_0x3840f7,_0x2c5221['id'],_0x50d17d,_0x3840f7['getFieldCountByArea'](_0x50d17d))),'onCheckedChange':_0x597380=>_0x43ee29(_0x20a575=>{const _0x259c64=_0x14e6b3;let _0x34f00b=_0x20a575['getTableFieldsByDataFieldId'](_0x2c5221['id']);if(!_0x597380){_0x34f00b['forEach'](_0x81b155=>_0x20a575[_0x259c64(0x24e)](_0x81b155['getId']()));return;}if(_0x34f00b[_0x259c64(0x4da)]===0x0){let _0x489489=Ji(_0x2c5221)?_0x4c815c[_0x259c64(0x47a)]:_0x4c815c[_0x259c64(0x456)];_0x20a575[_0x259c64(0x3fa)](_0x2c5221['id'],_0x489489);}}),'onDragStart':()=>_0x54315e({'kind':_0x14e6b3(0x24c),'id':_0x2c5221['id']})},_0x2c5221['id']))})]}),_0x4dabb7(_0x14e6b3(0x442),{'className':'univer-grid\x20univer-gap-3','children':Ii[_0x14e6b3(0x3ff)](_0x4112c6=>_0x4dabb7(Vi,{'area':_0x4112c6['area'],'dropTarget':_0x4fc275,'fields':_0x58b9a7[_0x14e6b3(0x4aa)][_0x4112c6[_0x14e6b3(0x336)]],'label':_0x3a9b06['t'](_0x4112c6[_0x14e6b3(0x3b0)]),'snapshot':_0x58b9a7['pivot'],'onDragEnd':()=>{_0x54315e(null),_0x3db859(null);},'onDragStart':_0x17360d=>_0x54315e({'kind':'field','id':_0x17360d,'area':_0x4112c6[_0x14e6b3(0x269)]}),'onDragOver':_0x39f988=>_0x3db859({'area':_0x4112c6['area'],'index':_0x39f988}),'onDrop':_0x2d0b29=>_0x3a9d8a(_0x4112c6[_0x14e6b3(0x269)],_0x2d0b29),'onFilter':_0x41c801,'onMove':(_0x467161,_0x14b0a0,_0x376b78)=>_0x43ee29(_0x2bfc04=>_0x2bfc04['updateFieldPosition'](_0x467161,_0x14b0a0,_0x376b78)),'onRemove':_0x3acfe4=>_0x43ee29(_0x284d98=>_0x284d98['removeField'](_0x3acfe4)),'onSettings':_0xc21cc0},_0x4112c6['area']))}),_0x36a548&&_0x4dabb7(Ui,{'fieldId':_0x36a548,'snapshot':_0x58b9a7['pivot'],'table':_0x5900af,'onCancel':()=>_0x41c801(null),'onCommit':(_0x272ef6,_0x22b983)=>{_0x43ee29(_0x5f0164=>{const _0x359b8b=_0x1cf6;let _0x489c84=_0x5f0164[_0x359b8b(0x3b7)](_0x36a548),_0x2b8bb0=(_0x489c84==null?void 0x0:_0x489c84['items'])??[];_0x5f0164[_0x359b8b(0x4c2)](_0x36a548,{'type':_0x1b814d[_0x359b8b(0x468)],'list':_0x272ef6,'isAll':_0x272ef6[_0x359b8b(0x4da)]===_0x2b8bb0['length']}),_0x5f0164[_0x359b8b(0x263)](_0x36a548,_0x22b983===void 0x0?void 0x0:{'type':_0x22b983});}),_0x41c801(null);}},_0x36a548),_0x1bb088&&_0x4dabb7(Wi,{'field':_0x58b9a7[_0x14e6b3(0x4aa)]['measure'][_0x1bb088],'onCancel':()=>_0xc21cc0(null),'onCommit':(_0x3f5e2b,_0xffe44b,_0x3b258a)=>{_0x43ee29(_0x1cf23c=>{const _0x46cab7=_0x1cf6;_0x1cf23c[_0x46cab7(0x1e8)](_0x1bb088,_0x3f5e2b),_0x1cf23c[_0x46cab7(0x467)](_0x1bb088,_0xffe44b),_0x1cf23c[_0x46cab7(0x2de)](_0x1bb088,_0x3b258a||void 0x0);}),_0xc21cc0(null);}},_0x1bb088)]})})]});}function zi(_0xd3dcb5){const _0x5139d4=_0x2353bc;let {config:_0x41669b,field:_0x27c732,onAdd:_0x52c20a,onCheckedChange:_0xf2535e,onDragStart:_0x5edc81}=_0xd3dcb5,_0x2fe2af=_0x39b411(_0x5cd3ee),_0x1eacaf=[...Object['values'](_0x41669b[_0x5139d4(0x4aa)][_0x5139d4(0x46a)]),...Object[_0x5139d4(0x4ad)](_0x41669b[_0x5139d4(0x4aa)][_0x5139d4(0x1c7)])]['some'](_0x3c2105=>_0x3c2105[_0x5139d4(0x355)]===_0x27c732['id']),_0x3160ec=Ii[_0x5139d4(0x3ff)](_0x2d96ec=>({'type':'item','children':_0x2fe2af['t'](Yi(_0x2d96ec[_0x5139d4(0x269)])),'onSelect':()=>_0x52c20a(_0x2d96ec[_0x5139d4(0x269)])}));return _0x2b00c1(_0x5139d4(0x442),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x5139d4(0x473),'onDragStart':_0x5edc81,'children':[_0x4dabb7(_0x3cc061,{'checked':_0x1eacaf,'onChange':_0x169c62=>_0xf2535e(!!_0x169c62)}),_0x4dabb7(Bi,{'field':_0x27c732}),_0x4dabb7('span',{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x27c732['name']}),_0x4dabb7(Jr,{'align':_0x5139d4(0x236),'items':_0x3160ec,'children':_0x4dabb7(_0x1b3e3b,{'variant':'text','aria-label':_0x2fe2af['t']('bases-dashboard-ui.pivot.fieldSettings'),'children':_0x4dabb7(_0xf77a3b,{})})})]});}function Bi({field:_0x3dd8ba}){const _0x5409d5=_0x2353bc;return Ji(_0x3dd8ba)?_0x4dabb7(_0x5a5ded,{'className':_0x5409d5(0x28e)}):_0x3dd8ba[_0x5409d5(0x393)]===_0x557eea['Date']||_0x3dd8ba['type']===_0x557eea[_0x5409d5(0x2fa)]||_0x3dd8ba[_0x5409d5(0x393)]===_0x557eea['UpdatedAt']?_0x4dabb7(_0x951fbe,{'className':_0x5409d5(0x28e)}):_0x4dabb7(_0x264f2e,{'className':_0x5409d5(0x28e)});}function Vi(_0x30fd85){const _0x3c342f=_0x2353bc;let {area:_0x16a360,dropTarget:_0x3afb08,fields:_0x1f9547,label:_0x4ed925,snapshot:_0x4fab24}=_0x30fd85,_0x1eb183=_0x39b411(_0x5cd3ee);return _0x2b00c1('section',{'className':_0x52fed8(_0x3c342f(0x458),_0x1298ac),'onDragOver':_0x1f0bcd=>{const _0x23d6fa=_0x3c342f;_0x1f0bcd[_0x23d6fa(0x3ca)](),_0x30fd85['onDragOver'](_0x1f9547[_0x23d6fa(0x4da)]);},'onDrop':_0x1b896a=>{const _0x4137a5=_0x3c342f;_0x1b896a[_0x4137a5(0x3ca)](),_0x30fd85[_0x4137a5(0x20c)]((_0x3afb08==null?void 0x0:_0x3afb08[_0x4137a5(0x269)])===_0x16a360?_0x3afb08[_0x4137a5(0x32a)]:_0x1f9547[_0x4137a5(0x4da)]);},'children':[_0x4dabb7('div',{'className':_0x3c342f(0x356),'children':_0x4ed925}),_0x2b00c1(_0x3c342f(0x442),{'className':_0x3c342f(0x378),'children':[_0x1f9547[_0x3c342f(0x3ff)]((_0x5d4a05,_0x1eb024)=>{const _0x31a941=_0x3c342f;let _0x4973f=_0x4fab24[_0x31a941(0x46a)][_0x5d4a05]??_0x4fab24[_0x31a941(0x1c7)][_0x5d4a05];if(!_0x4973f)return null;let _0x4f0cf5=(_0x3afb08==null?void 0x0:_0x3afb08[_0x31a941(0x269)])===_0x16a360&&_0x3afb08[_0x31a941(0x32a)]===_0x1eb024;return _0x2b00c1(_0x31a941(0x442),{'onDragOver':_0x3058af=>{const _0x5e507c=_0x31a941;_0x3058af[_0x5e507c(0x3ca)](),_0x3058af[_0x5e507c(0x1de)]();let _0x52e16d=_0x3058af[_0x5e507c(0x250)]['getBoundingClientRect']();_0x30fd85[_0x5e507c(0x4cb)](_0x1eb024+ +(_0x3058af[_0x5e507c(0x408)]>_0x52e16d[_0x5e507c(0x45e)]+_0x52e16d['height']/0x2));},'onDrop':_0x1c9830=>{const _0x1e8462=_0x31a941;_0x1c9830[_0x1e8462(0x3ca)](),_0x1c9830[_0x1e8462(0x1de)](),_0x30fd85['onDrop']((_0x3afb08==null?void 0x0:_0x3afb08[_0x1e8462(0x269)])===_0x16a360?_0x3afb08['index']:_0x1eb024);},'children':[_0x4f0cf5&&_0x4dabb7('div',{'className':_0x31a941(0x278)}),_0x4dabb7(Hi,{'area':_0x16a360,'field':_0x4973f,'onDragEnd':_0x30fd85[_0x31a941(0x31c)],'onDragStart':()=>_0x30fd85['onDragStart'](_0x5d4a05),'onFilter':()=>_0x30fd85[_0x31a941(0x49e)](_0x5d4a05),'onMove':_0x3c4244=>_0x30fd85['onMove'](_0x5d4a05,_0x3c4244,0x0),'onMoveUp':_0x1eb024>0x0?()=>_0x30fd85[_0x31a941(0x4b5)](_0x5d4a05,_0x16a360,_0x1eb024-0x1):void 0x0,'onMoveDown':_0x1eb024<_0x1f9547[_0x31a941(0x4da)]-0x1?()=>_0x30fd85[_0x31a941(0x4b5)](_0x5d4a05,_0x16a360,_0x1eb024+0x1):void 0x0,'onRemove':()=>_0x30fd85[_0x31a941(0x287)](_0x5d4a05),'onSettings':()=>_0x30fd85['onSettings'](_0x5d4a05)})]},_0x5d4a05);}),(_0x3afb08==null?void 0x0:_0x3afb08['area'])===_0x16a360&&_0x3afb08[_0x3c342f(0x32a)]===_0x1f9547[_0x3c342f(0x4da)]&&_0x4dabb7(_0x3c342f(0x442),{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),_0x1f9547[_0x3c342f(0x4da)]===0x0&&_0x4dabb7('div',{'className':_0x3c342f(0x279),'children':_0x1eb183['t']('bases-dashboard-ui.pivot.sourceFields')})]})]});}function Hi(_0x148289){const _0x5412b9=_0x2353bc;let _0x3b4155=_0x39b411(_0x5cd3ee),_0x5a1aef=_0x148289['area']===_0x4c815c['Value'],_0x5a8d44=[...Ii[_0x5412b9(0x1b3)](_0x2497fb=>_0x2497fb[_0x5412b9(0x269)]!==_0x148289['area'])[_0x5412b9(0x3ff)](_0x595dc7=>({'type':_0x5412b9(0x423),'children':_0x3b4155['t'](Yi(_0x595dc7[_0x5412b9(0x269)])),'onSelect':()=>_0x148289[_0x5412b9(0x4b5)](_0x595dc7[_0x5412b9(0x269)])})),..._0x148289[_0x5412b9(0x206)]?[{'type':'item','children':_0x3b4155['t'](_0x5412b9(0x2ab)),'onSelect':_0x148289[_0x5412b9(0x206)]}]:[],..._0x148289[_0x5412b9(0x235)]?[{'type':_0x5412b9(0x423),'children':_0x3b4155['t'](_0x5412b9(0x33b)),'onSelect':_0x148289[_0x5412b9(0x235)]}]:[],{'type':_0x5412b9(0x423),'children':_0x3b4155['t'](_0x5412b9(0x404)),'onSelect':_0x148289['onRemove']},{'type':_0x5412b9(0x423),'children':_0x3b4155['t'](_0x5a1aef?_0x5412b9(0x2c7):_0x5412b9(0x3a1)),'onSelect':_0x5a1aef?_0x148289[_0x5412b9(0x373)]:_0x148289[_0x5412b9(0x49e)]}];return _0x2b00c1('div',{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x5412b9(0x328),'onDragEnd':_0x148289[_0x5412b9(0x31c)],'onDragStart':_0x148289['onDragStart'],'children':[_0x4dabb7(_0x56b693,{'title':_0x148289[_0x5412b9(0x506)][_0x5412b9(0x2a9)],'children':_0x4dabb7(_0x5412b9(0x3ec),{'className':_0x5412b9(0x3bf),'children':_0x148289['field'][_0x5412b9(0x2a9)]})}),_0x4dabb7(Jr,{'align':_0x5412b9(0x236),'items':_0x5a8d44,'children':_0x4dabb7(_0x1b3e3b,{'variant':_0x5412b9(0x452),'aria-label':_0x3b4155['t'](_0x5412b9(0x2c7)),'children':_0x4dabb7(_0xf77a3b,{})})})]});}function Ui(_0x3ef5bc){const _0x5f450e=_0x2353bc;var _0x5db6a2,_0x10aee2;let _0x9e9778=_0x39b411(_0x5cd3ee),{format:_0x46e3b7,items:_0x13e838,itemTypes:_0x285867}=_0x56a185(()=>{const _0x4f8d8a=_0x1cf6;let _0x1e122f=_0x1c8584(_0x3ef5bc[_0x4f8d8a(0x4bb)],_0x3ef5bc[_0x4f8d8a(0x1d0)]);try{let _0x5cd992=_0x1e122f['getDataFieldByTableId'](_0x3ef5bc[_0x4f8d8a(0x43d)]);return{'format':_0x5cd992==null?void 0x0:_0x5cd992['format'],'items':[...(_0x5cd992==null?void 0x0:_0x5cd992[_0x4f8d8a(0x41c)])??[]],'itemTypes':[...(_0x5cd992==null?void 0x0:_0x5cd992[_0x4f8d8a(0x4ed)])??[]]};}finally{_0x1e122f['dispose']();}},[_0x3ef5bc[_0x5f450e(0x43d)],_0x3ef5bc['snapshot'],_0x3ef5bc[_0x5f450e(0x4bb)]]),_0x29aeec=(_0x5db6a2=_0x3ef5bc[_0x5f450e(0x1d0)][_0x5f450e(0x46a)][_0x3ef5bc[_0x5f450e(0x43d)]])==null?void 0x0:_0x5db6a2[_0x5f450e(0x3ad)],[_0x2416f9,_0x22428c]=_0x2be63d((_0x29aeec==null?void 0x0:_0x29aeec['type'])===_0x1b814d['ManualFilter']?_0x29aeec[_0x5f450e(0x4ea)]:_0x13e838),[_0x173575,_0xa911aa]=_0x2be63d((_0x10aee2=_0x3ef5bc['snapshot'][_0x5f450e(0x46a)][_0x3ef5bc[_0x5f450e(0x43d)]])==null||(_0x10aee2=_0x10aee2[_0x5f450e(0x1e0)])==null?void 0x0:_0x10aee2[_0x5f450e(0x393)]),_0x4154cc=_0x2416f9[_0x5f450e(0x4da)]===_0x13e838['length'],_0x2095c2=_0x2b00c1(_0x5f450e(0x482),{'className':_0x52fed8(_0x5f450e(0x3f6),_0x1298ac),'children':[_0x4dabb7('div',{'className':_0x5f450e(0x306),'children':_0x9e9778['t'](_0x5f450e(0x3a1))}),_0x2b00c1(_0x5f450e(0x442),{'className':_0x5f450e(0x414),'children':[_0x2b00c1(_0x1b3e3b,{'className':'univer-flex-1','variant':_0x173575===_0x428fd4[_0x5f450e(0x21b)]?_0x5f450e(0x37f):'default','onClick':()=>_0xa911aa(_0x428fd4[_0x5f450e(0x21b)]),'children':[_0x4dabb7(_0x4c6d55,{}),_0x9e9778['t'](_0x5f450e(0x43a))]}),_0x2b00c1(_0x1b3e3b,{'className':_0x5f450e(0x342),'variant':_0x173575===_0x428fd4[_0x5f450e(0x229)]?_0x5f450e(0x37f):_0x5f450e(0x431),'onClick':()=>_0xa911aa(_0x428fd4['descending']),'children':[_0x4dabb7(_0x59e3b9,{}),_0x9e9778['t'](_0x5f450e(0x2b2))]})]}),_0x2b00c1(_0x5f450e(0x442),{'className':_0x5f450e(0x302),'children':[_0x2b00c1(_0x5f450e(0x3b0),{'className':_0x5f450e(0x334),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x4154cc,'indeterminate':_0x2416f9['length']>0x0&&!_0x4154cc,'onChange':()=>_0x22428c(_0x4154cc?[]:_0x13e838)}),_0x9e9778['t'](_0x5f450e(0x368))]}),_0x13e838[_0x5f450e(0x3ff)]((_0x432f70,_0x46a66d)=>_0x2b00c1('label',{'className':_0x5f450e(0x334),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x2416f9[_0x5f450e(0x331)](_0x432f70),'onChange':()=>_0x22428c(_0x4cc6de=>_0x4cc6de[_0x5f450e(0x331)](_0x432f70)?_0x4cc6de[_0x5f450e(0x1b3)](_0x3dd27c=>_0x3dd27c!==_0x432f70):[..._0x4cc6de,_0x432f70])}),_0x4dabb7(_0x5f450e(0x3ec),{'className':_0x5f450e(0x226),'children':qi(_0x432f70,_0x285867[_0x46a66d],_0x46e3b7,_0x9e9778['t'](_0x5f450e(0x2a2)))})]},_0x432f70))]}),_0x2b00c1(_0x5f450e(0x442),{'className':_0x5f450e(0x2e3),'children':[_0x4dabb7(_0x1b3e3b,{'variant':_0x5f450e(0x31a),'onClick':()=>_0x3ef5bc[_0x5f450e(0x434)](_0x13e838,_0x173575),'children':_0x9e9778['t'](_0x5f450e(0x2d3))}),_0x2b00c1(_0x5f450e(0x442),{'className':'univer-flex\x20univer-gap-2','children':[_0x4dabb7(_0x1b3e3b,{'onClick':_0x3ef5bc[_0x5f450e(0x4f7)],'children':_0x9e9778['t']('bases-dashboard-ui.pivot.cancel')}),_0x4dabb7(_0x1b3e3b,{'variant':_0x5f450e(0x37f),'disabled':_0x2416f9[_0x5f450e(0x4da)]===0x0,'onClick':()=>_0x3ef5bc[_0x5f450e(0x434)](_0x2416f9,_0x173575),'children':_0x9e9778['t'](_0x5f450e(0x325))})]})]})]});return _0x4dabb7(_0x4989cc,{'title':_0x9e9778['t']('bases-dashboard-ui.pivot.filterField'),'onClose':_0x3ef5bc[_0x5f450e(0x4f7)],'children':_0x2095c2});}function Wi(_0x1ea0d5){const _0x17c031=_0x2353bc;var _0x38532e,_0xdbdb9c,_0x182ee3;let _0x4420b5=_0x39b411(_0x5cd3ee),[_0x1288ee,_0x3e2177]=_0x2be63d(((_0x38532e=_0x1ea0d5[_0x17c031(0x506)])==null?void 0x0:_0x38532e[_0x17c031(0x2a9)])??''),[_0x1c0c14,_0x1ef88f]=_0x2be63d(((_0xdbdb9c=_0x1ea0d5[_0x17c031(0x506)])==null?void 0x0:_0xdbdb9c['subtotal'])??_0x282c8a[_0x17c031(0x2bf)]),[_0x289563,_0x1635c4]=_0x2be63d(((_0x182ee3=_0x1ea0d5[_0x17c031(0x506)])==null?void 0x0:_0x182ee3['format'])??'');if(!_0x1ea0d5[_0x17c031(0x506)])return null;let _0x46b3c4=_0x2b00c1(_0x17c031(0x482),{'className':_0x52fed8(_0x17c031(0x50c),_0x1298ac),'children':[_0x4dabb7(_0x17c031(0x442),{'className':'univer-text-sm\x20univer-font-medium','children':_0x4420b5['t'](_0x17c031(0x2c7))}),_0x2b00c1(_0x17c031(0x3b0),{'className':_0x17c031(0x4a3),'children':[_0x4420b5['t'](_0x17c031(0x1c9)),_0x4dabb7(_0x2c53ee,{'value':_0x1288ee,'onChange':_0x3e2177})]}),_0x2b00c1('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x4420b5['t']('bases-dashboard-ui.pivot.summarizeBy'),_0x4dabb7(qr,{'value':String(_0x1c0c14),'options':Li['map'](_0x30d868=>({'value':String(_0x30d868[_0x17c031(0x284)]),'label':_0x4420b5['t'](_0x30d868[_0x17c031(0x353)])})),'onChange':_0x12b3fb=>{const _0x471233=_0x17c031;let _0x4844f7=Li['find'](_0x5ceaa9=>String(_0x5ceaa9[_0x471233(0x284)])===_0x12b3fb);_0x4844f7&&_0x1ef88f(_0x4844f7[_0x471233(0x284)]);}})]}),_0x2b00c1('label',{'className':_0x17c031(0x4a3),'children':[_0x4420b5['t'](_0x17c031(0x3e8)),_0x4dabb7(_0x2c53ee,{'value':_0x289563,'onChange':_0x1635c4})]}),_0x2b00c1(_0x17c031(0x442),{'className':_0x17c031(0x4f9),'children':[_0x4dabb7(_0x1b3e3b,{'onClick':_0x1ea0d5[_0x17c031(0x4f7)],'children':_0x4420b5['t'](_0x17c031(0x376))}),_0x4dabb7(_0x1b3e3b,{'variant':'primary','disabled':!_0x1288ee[_0x17c031(0x3ee)](),'onClick':()=>_0x1ea0d5['onCommit'](_0x1288ee['trim'](),_0x1c0c14,_0x289563),'children':_0x4420b5['t'](_0x17c031(0x325))})]})]});return _0x4dabb7(_0x4989cc,{'title':_0x4420b5['t'](_0x17c031(0x2c7)),'onClose':_0x1ea0d5[_0x17c031(0x4f7)],'children':_0x46b3c4});}function Gi(_0x3899dd){const _0x23dbe9=_0x2353bc;let {config:_0x21e48e,commit:_0x197b95}=_0x3899dd,_0x412811=_0x39b411(_0x5cd3ee),_0x368f5c=_0x21e48e['pivot'][_0x23dbe9(0x320)],_0x230464=_0x529ef7=>_0x197b95(_0x37c7a1=>_0x37c7a1[_0x23dbe9(0x3db)]({..._0x37c7a1['getOptions'](),..._0x529ef7}));return _0x2b00c1('div',{'className':_0x23dbe9(0x4f1),'children':[_0x2b00c1(_0x23dbe9(0x3b0),{'className':_0x23dbe9(0x1f1),'children':[_0x412811['t'](_0x23dbe9(0x291)),_0x4dabb7(qr,{'className':'univer-w-36','value':String(_0x21e48e[_0x23dbe9(0x4aa)]['layout']),'options':[{'value':String(_0x426ac9[_0x23dbe9(0x2c8)]),'label':_0x412811['t']('bases-dashboard-ui.pivot.layoutTabular')},{'value':String(_0x426ac9[_0x23dbe9(0x1be)]),'label':_0x412811['t'](_0x23dbe9(0x409))},{'value':String(_0x426ac9[_0x23dbe9(0x379)]),'label':_0x412811['t'](_0x23dbe9(0x421))}],'onChange':_0x343726=>{const _0x4f6612=_0x23dbe9;let _0x38d872=[_0x426ac9[_0x4f6612(0x2c8)],_0x426ac9[_0x4f6612(0x1be)],_0x426ac9[_0x4f6612(0x379)]][_0x4f6612(0x397)](_0x12b1e6=>String(_0x12b1e6)===_0x343726);_0x38d872!==void 0x0&&_0x197b95(_0x447c53=>_0x447c53[_0x4f6612(0x28f)](_0x38d872));}})]}),[{'key':_0x23dbe9(0x479),'label':_0x23dbe9(0x282),'defaultValue':!0x1},{'key':_0x23dbe9(0x40b),'label':'bases-dashboard-ui.pivot.repeatColumnLabels','defaultValue':!0x1},{'key':'showRowSubtotal','label':_0x23dbe9(0x44a),'defaultValue':!0x0},{'key':_0x23dbe9(0x402),'label':_0x23dbe9(0x2ca),'defaultValue':!0x0},{'key':_0x23dbe9(0x280),'label':_0x23dbe9(0x2bb),'defaultValue':!0x0},{'key':'showColGrandTotal','label':_0x23dbe9(0x2c1),'defaultValue':!0x0}]['map'](_0x1bcc08=>_0x2b00c1(_0x23dbe9(0x3b0),{'className':_0x23dbe9(0x343),'children':[_0x4dabb7(_0x3cc061,{'checked':!!(_0x368f5c[_0x1bcc08[_0x23dbe9(0x336)]]??_0x1bcc08[_0x23dbe9(0x1ba)]),'disabled':_0x1bcc08['key']==='repeatRowLabels'&&_0x21e48e[_0x23dbe9(0x4aa)][_0x23dbe9(0x439)]===_0x426ac9[_0x23dbe9(0x1be)],'onChange':_0x442be3=>_0x230464({[_0x1bcc08[_0x23dbe9(0x336)]]:!!_0x442be3})}),_0x412811['t'](_0x1bcc08[_0x23dbe9(0x3b0)])]},_0x1bcc08[_0x23dbe9(0x336)])),_0x21e48e[_0x23dbe9(0x4aa)][_0x23dbe9(0x439)]===_0x426ac9[_0x23dbe9(0x379)]&&_0x2b00c1(_0x23dbe9(0x3b0),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x412811['t'](_0x23dbe9(0x1c3)),_0x4dabb7(qr,{'className':_0x23dbe9(0x23f),'value':String(_0x368f5c[_0x23dbe9(0x413)]??_0x10ab45['top']),'options':[{'value':String(_0x10ab45['top']),'label':_0x412811['t'](_0x23dbe9(0x422))},{'value':String(_0x10ab45['bottom']),'label':_0x412811['t'](_0x23dbe9(0x383))}],'onChange':_0x1b066f=>{const _0x35ef10=_0x23dbe9;let _0x212a0f=[_0x10ab45[_0x35ef10(0x45e)],_0x10ab45[_0x35ef10(0x2d0)]][_0x35ef10(0x397)](_0x39c9b2=>String(_0x39c9b2)===_0x1b066f);_0x212a0f!==void 0x0&&_0x230464({'rowSubtotalPosition':_0x212a0f});}})]}),_0x2b00c1(_0x23dbe9(0x3b0),{'className':_0x23dbe9(0x1f1),'children':[_0x412811['t'](_0x23dbe9(0x25d)),_0x4dabb7(qr,{'className':_0x23dbe9(0x23f),'value':String(_0x21e48e[_0x23dbe9(0x4aa)][_0x23dbe9(0x1bb)]===_0x288ba5[_0x23dbe9(0x2fe)]?_0x288ba5[_0x23dbe9(0x499)]:_0x21e48e[_0x23dbe9(0x4aa)][_0x23dbe9(0x1bb)]),'options':[{'value':String(_0x288ba5[_0x23dbe9(0x499)]),'label':_0x412811['t'](_0x23dbe9(0x318))},{'value':String(_0x288ba5[_0x23dbe9(0x456)]),'label':_0x412811['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x1b707d=>{const _0x51b2e0=_0x23dbe9;let _0x22b349=[_0x288ba5['Column'],_0x288ba5[_0x51b2e0(0x456)]][_0x51b2e0(0x397)](_0x3ee5b7=>String(_0x3ee5b7)===_0x1b707d);_0x22b349!==void 0x0&&_0x197b95(_0x404a62=>_0x404a62['updateValuePosition'](_0x22b349,_0x404a62[_0x51b2e0(0x2cf)]()<0x0?0x0:_0x404a62[_0x51b2e0(0x2cf)]()));}})]}),_0x2b00c1(_0x23dbe9(0x3b0),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x412811['t']('bases-dashboard-ui.pivot.pageWrap'),_0x4dabb7(_0x1c2086,{'className':_0x23dbe9(0x4c0),'min':0x1,'max':0x14,'value':_0x368f5c['pageWrap']??0x1,'onChange':_0x475573=>{let _0x4f5698=Number(_0x475573);Number['isFinite'](_0x4f5698)&&_0x4f5698>=0x1&&_0x230464({'pageWrap':_0x4f5698});}})]}),_0x2b00c1(_0x23dbe9(0x3b0),{'className':_0x23dbe9(0x1f1),'children':[_0x412811['t'](_0x23dbe9(0x40f)),_0x4dabb7(qr,{'className':'univer-w-36','value':String(_0x368f5c[_0x23dbe9(0x1b7)]??!0x1),'options':[{'value':_0x23dbe9(0x48b),'label':_0x412811['t'](_0x23dbe9(0x30c))},{'value':_0x23dbe9(0x1d5),'label':_0x412811['t'](_0x23dbe9(0x4a1))}],'onChange':_0x37c44d=>_0x230464({'pageOverThenDown':_0x37c44d==='true'})})]})]});}function Ki(_0x3caa46,_0xcf7742,_0x300388,_0x78710){const _0x55def8=_0x2353bc;let _0x6c4d7e=_0x3caa46['getTableFieldsByDataFieldId'](_0xcf7742)[_0x55def8(0x397)](_0x478440=>_0x3caa46[_0x55def8(0x316)](_0x478440[_0x55def8(0x1ae)]())[_0x55def8(0x269)]!==_0x4c815c[_0x55def8(0x47a)]);if(_0x300388!==_0x4c815c[_0x55def8(0x47a)]&&_0x6c4d7e){_0x3caa46[_0x55def8(0x1b0)](_0x6c4d7e[_0x55def8(0x1ae)](),_0x300388,_0x78710);return;}_0x3caa46[_0x55def8(0x3fa)](_0xcf7742,_0x300388,_0x78710);}function qi(_0x321d1a,_0x1072f7,_0x233100,_0x17f509){const _0x20c585=_0x2353bc;return _0x1072f7===_0x1fe7b3[_0x20c585(0x512)]?_0x17f509:_0x1072f7===_0x1fe7b3[_0x20c585(0x209)]&&_0x233100?_0x3f4aae[_0x20c585(0x347)](_0x233100,Number(_0x321d1a)):_0x321d1a;}function Ji(_0x193744){const _0x96860e=_0x2353bc;return _0x193744['type']===_0x557eea[_0x96860e(0x416)]||_0x193744['type']===_0x557eea[_0x96860e(0x321)]||_0x193744[_0x96860e(0x393)]===_0x557eea['Progress']||_0x193744[_0x96860e(0x393)]===_0x557eea[_0x96860e(0x42a)];}function Yi(_0x5c2279){const _0x53b0ea=_0x2353bc;switch(_0x5c2279){case _0x4c815c[_0x53b0ea(0x456)]:return _0x53b0ea(0x28b);case _0x4c815c[_0x53b0ea(0x499)]:return _0x53b0ea(0x50d);case _0x4c815c[_0x53b0ea(0x47a)]:return _0x53b0ea(0x4fe);default:return _0x53b0ea(0x41a);}}function Xi({config:_0x2bd721,onChange:_0x24a267,runtime:_0x312532,table:_0xa33f0f}){const _0xb6cdde=_0x2353bc;let _0xcd0aa0=_0x39b411(_0x5cd3ee),[_0x146deb,_0x333d35]=_0x2be63d('chart');return _0x2b00c1(_0xb6cdde(0x2b6),{'className':_0xb6cdde(0x40a),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0xcd0aa0['t'](_0xb6cdde(0x2f6)),'className':'univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','items':[{'label':_0xcd0aa0['t'](_0xb6cdde(0x36b)),'panelId':'base-pivot-chart-configuration','value':_0xb6cdde(0x4d8)},{'label':_0xcd0aa0['t'](_0xb6cdde(0x4a7)),'panelId':_0xb6cdde(0x225),'value':_0xb6cdde(0x4aa)}],'value':_0x146deb,'variant':_0xb6cdde(0x4d2),'onChange':_0x333d35}),_0x4dabb7(_0xb6cdde(0x442),{'className':_0xb6cdde(0x380),'children':_0x146deb===_0xb6cdde(0x4d8)?_0x312532&&_0x4dabb7(Qr,{'config':_0x2bd721,'runtime':_0x312532,'tableName':_0xa33f0f[_0xb6cdde(0x329)],'onChange':_0x24a267}):_0x4dabb7(Ri,{'config':_0x2bd721,'table':_0xa33f0f,'onChange':_0x24a267})})]});}function Zi({tableId:_0x505a17,unitId:_0x3f5bb5,viewId:_0x418ee1}){const _0x5bfbba=_0x2353bc;let [_0x216300,_0x7e450d]=_0x2be63d(!0x1),_0x15b16d=_0x39b411(_0x32452d),_0x57e18b=_0x39b411(_0x4074e5),_0x1f29c7=_0x39b411(_0x34ac8c),_0x1e64cf=_0x39b411(_0x5cd3ee),_0xe2a781=_0x39b411(_0x22ef82),[_0x5caddf,_0x4f042d]=_0x2be63d(null),[_0x47fb17,_0x50a818]=_0x2be63d(null),_0x344ac8=_0x35f949(_0x5bfbba(0x4e9)+_0x325e5d(0x8)),[_0x37ef82,_0xee075e]=_0x2be63d(!0x1),_0x2fb9d7=_0x57e18b['getUnit'](_0x3f5bb5,_0x51ec78[_0x5bfbba(0x4eb)]),_0x49ac79=_0x2fb9d7==null?void 0x0:_0x2fb9d7['getSnapshot']()[_0x5bfbba(0x39c)][_0x505a17],_0x10fae0=_0x49ac79==null?void 0x0:_0x49ac79['views'][_0x418ee1],_0x4f7fe9=Qi(_0x10fae0),_0x1def8=_r(_0x3f5bb5,_0x505a17,_0x418ee1);if(_0x38e78f(()=>{const _0xcbb2ee=_0x5bfbba;if(!_0x4f7fe9)return;let _0x51cc91=_0x344ac8[_0xcbb2ee(0x38f)];return _0xe2a781[_0xcbb2ee(0x403)](_0x51cc91,{'unitId':_0x3f5bb5,'tableId':_0x505a17,'viewId':_0x418ee1,'filters':[]}),()=>{const _0x4ef4a5=_0xcbb2ee;_0xe2a781[_0x4ef4a5(0x503)](_0x3f5bb5,_0x51cc91);};},[_0x4f7fe9,_0xe2a781,_0x505a17,_0x3f5bb5,_0x418ee1]),_0x38e78f(()=>{const _0x3869df=_0x5bfbba;if(!Qi(_0x10fae0))return;let _0x49c496=!0x0,_0x3df014={'unitId':_0x3f5bb5,'tableId':_0x505a17,'viewId':_0x418ee1,'filters':[_0x10fae0[_0x3869df(0x1b3)]??null]};return _0xe2a781[_0x3869df(0x41f)](_0x3f5bb5,_0x344ac8[_0x3869df(0x38f)],_0x3df014)['then'](_0xba6bf8=>{const _0x5ba27f=_0x3869df;_0x49c496&&_0xba6bf8&&(_0x4f042d(_0xba6bf8),_0x50a818(_0xe2a781[_0x5ba27f(0x33e)](_0x3f5bb5,_0x344ac8[_0x5ba27f(0x38f)])??null),_0xee075e(!0x1));})[_0x3869df(0x3d2)](_0x5e6f0b=>{_0x1f29c7['error']('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x5e6f0b),_0x49c496&&(_0x4f042d(null),_0xee075e(!0x0));}),()=>{_0x49c496=!0x1;};},[_0x1f29c7,_0xe2a781,_0x505a17,_0x3f5bb5,_0x10fae0,_0x418ee1]),!_0x49ac79||!Qi(_0x10fae0))return null;let _0x23cd90=_0xe2a781['getChartRuntime'](_0x3f5bb5,_0x344ac8['current'])===_0x47fb17?_0x47fb17:null,_0x1f8fda=_0x5caddf?_0x2b00c1('div',{'className':_0x5bfbba(0x2cd),'style':{'gridTemplateRows':_0x10fae0[_0x5bfbba(0x4e8)][_0x5bfbba(0x4a6)]===_0x5bfbba(0x330)?_0x5bfbba(0x44e):_0x5bfbba(0x230)},'children':[_0x10fae0[_0x5bfbba(0x4e8)][_0x5bfbba(0x4a6)]!==_0x5bfbba(0x4bb)&&_0x23cd90&&_0x4dabb7(_0x5bfbba(0x442),{'className':'univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':_0x4dabb7(Ir,{'isRowDirection':_0x2fa6dd(_0x10fae0[_0x5bfbba(0x4e8)][_0x5bfbba(0x4d8)][_0x5bfbba(0x485)]),'runtime':_0x23cd90})}),_0x10fae0[_0x5bfbba(0x4e8)][_0x5bfbba(0x4a6)]!=='chart'&&_0x4dabb7(_0x5bfbba(0x442),{'className':_0x5bfbba(0x32b),'children':_0x4dabb7(ki,{'pivot':_0x10fae0['config'][_0x5bfbba(0x4aa)],'view':_0x5caddf[_0x5bfbba(0x258)]})})]}):_0x4dabb7('div',{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x37ef82?_0x1e64cf['t'](_0x5bfbba(0x34c)):_0x1e64cf['t']('bases-dashboard-ui.pivot.calculating')}),_0x2a60ea=_0x4dabb7(Xi,{'config':_0x10fae0[_0x5bfbba(0x4e8)],'runtime':_0x23cd90,'table':_0x49ac79,'onChange':_0x148bd6=>{const _0x106e33=_0x5bfbba;_0x57e18b[_0x106e33(0x3ce)](_0x3f5bb5),_0x57e18b[_0x106e33(0x35f)](_0x3f5bb5),_0x15b16d[_0x106e33(0x1ff)](_0x303df3['id'],{'unitId':_0x3f5bb5,'tableId':_0x505a17,'viewId':_0x418ee1,'patch':_0x148bd6})[_0x106e33(0x3d2)](_0x552296=>_0x1f29c7[_0x106e33(0x1b4)](_0x106e33(0x337),_0x552296));}});return _0x4dabb7(Kr,{'children':_0x2b00c1(_0x5bfbba(0x442),{'className':'univer-relative\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-50\x20dark:univer-bg-gray-950','children':[_0x1def8&&_0x4dabb7(_0x1b3e3b,{'onClick':()=>_0x7e450d(!0x0),'children':_0x1e64cf['t'](_0x5bfbba(0x36b))}),_0x4dabb7(_0x5bfbba(0x442),{'className':_0x5bfbba(0x43e),'children':_0x1f8fda}),_0x1def8&&_0x216300&&_0x4dabb7(_0x4989cc,{'title':_0x1e64cf['t'](_0x5bfbba(0x2f6)),'onClose':()=>_0x7e450d(!0x1),'children':_0x2a60ea})]})});}function Qi(_0x2dc864){const _0x19b5b1=_0x2353bc;return(_0x2dc864==null?void 0x0:_0x2dc864[_0x19b5b1(0x393)])===_0x5ee6b5[_0x19b5b1(0x49c)]&&typeof _0x2dc864[_0x19b5b1(0x4e8)]==_0x19b5b1(0x43c)&&_0x2dc864[_0x19b5b1(0x4e8)]!==null&&'pivot'in _0x2dc864[_0x19b5b1(0x4e8)]&&_0x19b5b1(0x4d8)in _0x2dc864[_0x19b5b1(0x4e8)]&&_0x19b5b1(0x4a6)in _0x2dc864['config'];}let $i=class extends _0x2e76da{constructor(_0x5b5943,_0x393e4b,_0x25b341,_0x231b45,_0x49a595,_0x4fc794){const _0x1f4fab=_0x2353bc;super(),this[_0x1f4fab(0x1eb)](_0x393e4b[_0x1f4fab(0x1ac)]({'type':_0x5ee6b5['Pivot'],'renderMode':_0x1f4fab(0x4cc),'icon':_0x3ad3c2,'component':Zi,'menu':{get 'label'(){const _0x11e103=_0x1f4fab;return _0x4fc794['t'](_0x11e103(0x2f6));},get 'description'(){const _0x547663=_0x1f4fab;return _0x4fc794['t'](_0x547663(0x345));},get 'defaultName'(){const _0x3ac35e=_0x1f4fab;return _0x4fc794['t'](_0x3ac35e(0x244));}}})),this['disposeWithMe'](_0x5b5943[_0x1f4fab(0x1ac)](ea(_0x25b341,_0x231b45,_0x49a595,_0x4fc794)));}};$i=Or([Y(0x0,_0x509544),Y(0x1,_0x5eecd3),Y(0x2,_0x2a19f9(_0x5e40a3)),Y(0x3,_0x32452d),Y(0x4,_0x4c7ae7),Y(0x5,_0x2a19f9(_0x5cd3ee))],$i);function ea(_0x1e5361,_0x349538,_0x452fa0,_0x5332c7){const _0x564f93=_0x2353bc;return{'change$':_0x53dd21(_0x1e5361['change$'],_0x452fa0[_0x564f93(0x391)]),'component':bi,get 'labels'(){const _0x5d8ce1=_0x564f93;return{'add':_0x5332c7['t']('bases-dashboard-ui.dashboard.add'),'configure':_0x1ab8e4=>_0x5332c7['t'](_0x5d8ce1(0x233),_0x1ab8e4),'delete':_0x5332c7['t'](_0x5d8ce1(0x305)),'new':_0x5332c7['t'](_0x5d8ce1(0x47f)),'rename':_0x5332c7['t'](_0x5d8ce1(0x259)),'search':_0x5332c7['t'](_0x5d8ce1(0x424)),'section':_0x5332c7['t'](_0x5d8ce1(0x1c4))};},'getItems':_0x3fe205=>{const _0x5c03b4=_0x564f93;let _0x1da4e9=_0x1e5361['getResource'](_0x3fe205);return _0x1da4e9[_0x5c03b4(0x3fe)][_0x5c03b4(0x3bc)](_0x786700=>{const _0x39cf24=_0x5c03b4;let _0x1d4fa2=_0x1da4e9[_0x39cf24(0x370)][_0x786700];return _0x1d4fa2?[{'id':_0x1d4fa2['id'],'name':_0x1d4fa2[_0x39cf24(0x329)],'readonly':!_0x25b5d2(_0x452fa0,_0x3fe205,_0x1d4fa2['id'])}]:[];});},'create':async _0x1a7677=>{const _0x20d530=_0x564f93;let _0x20254f=_0x1e5361[_0x20d530(0x2b1)](_0x1a7677),_0x5c78ca=_0x20d530(0x3a4)+_0x325e5d(0x8),_0x342fb0=ta(_0x20254f[_0x20d530(0x3fe)][_0x20d530(0x3bc)](_0x93b354=>{const _0x36c2aa=_0x20d530;let _0x177a6a=_0x20254f[_0x36c2aa(0x370)][_0x93b354];return _0x177a6a?[_0x177a6a[_0x36c2aa(0x329)]]:[];}),_0xc84da=>_0x5332c7['t'](_0x20d530(0x3e5),String(_0xc84da)));return await _0x349538['executeCommand'](_0x2ef5a6['id'],{'unitId':_0x1a7677,'dashboard':{'id':_0x5c78ca,'name':_0x342fb0,'widgetOrder':[],'widgets':{}}})?_0x5c78ca:null;},'rename':async(_0x1a4e7f,_0x445110,_0x5449d3)=>{const _0x2fa56c=_0x564f93;let _0x1cfe43=_0x1e5361['getDashboard'](_0x1a4e7f,_0x445110);return!!(_0x1cfe43&&await _0x349538[_0x2fa56c(0x1ff)](_0x5cbeb4['id'],{'unitId':_0x1a4e7f,'dashboard':{..._0x1cfe43,'name':_0x5449d3}}));},'remove':(_0xa838f6,_0x105a0d)=>_0x349538[_0x564f93(0x1ff)](_0x22aa0a['id'],{'unitId':_0xa838f6,'dashboardId':_0x105a0d})};}function ta(_0x7e0785,_0x4886f7){const _0x367c21=_0x2353bc;let _0x7d2d26=new Set(_0x7e0785),_0x597ca8=_0x7d2d26['size']+0x1,_0x3b22f9=_0x4886f7(_0x597ca8);for(;_0x7d2d26[_0x367c21(0x30b)](_0x3b22f9);)_0x597ca8+=0x1,_0x3b22f9=_0x4886f7(_0x597ca8);return _0x3b22f9;}let na=class extends _0x52aef1{constructor(_0x3ba2aa=hr,_0x11a7dd,_0x57acaa){const _0x44bdfd=_0x2353bc;super(),this[_0x44bdfd(0x21e)]=_0x3ba2aa,this['_injector']=_0x11a7dd,this['_configService']=_0x57acaa;let {..._0x59ab12}=_0x1731fc({},hr,this[_0x44bdfd(0x21e)]);this['_configService'][_0x44bdfd(0x427)](mr,_0x59ab12);}['onStarting'](){const _0x389bb8=_0x2353bc;this[_0x389bb8(0x2a0)][_0x389bb8(0x1c1)]([kr]),this['_injector'][_0x389bb8(0x1c1)]([Gr]),this['_injector'][_0x389bb8(0x1c1)]([$i]);}['onReady'](){const _0x515597=_0x2353bc;_0x445a23(this[_0x515597(0x2a0)],[[kr],[Gr],[$i]]);}};Pr(na,_0x2353bc(0x393),_0x51ec78['UNIVER_BASE']),Pr(na,_0x2353bc(0x405),_0x2353bc(0x264)),Pr(na,'packageName',fr),Pr(na,_0x2353bc(0x29f),pr),na=Or([_0x4fc5af(_0x38c17a,_0x1615ad,_0x139492,_0x2c95bb,_0x47e249,_0x220c65),Y(0x1,_0x2a19f9(_0x5a8661)),Y(0x2,_0x5a5187)],na);function ra(_0x1be68e,_0x51c02f,_0x11635b,_0x58c686){const _0x2ac0f6=_0x2353bc;let _0x1677a3={..._0x1be68e};if(_0x51c02f[_0x2ac0f6(0x331)]('w')){let _0x4c3571=_0x1be68e['column']+_0x1be68e['columnSpan'];_0x1677a3[_0x2ac0f6(0x39b)]=Math[_0x2ac0f6(0x2eb)](0x0,Math['min'](_0x4c3571-0x1,_0x1be68e[_0x2ac0f6(0x39b)]+_0x11635b)),_0x1677a3[_0x2ac0f6(0x26f)]=_0x4c3571-_0x1677a3[_0x2ac0f6(0x39b)];}else _0x51c02f[_0x2ac0f6(0x331)]('e')&&(_0x1677a3[_0x2ac0f6(0x26f)]=Math[_0x2ac0f6(0x2eb)](0x1,Math[_0x2ac0f6(0x314)](_0x20c9d7-_0x1be68e[_0x2ac0f6(0x39b)],_0x1be68e[_0x2ac0f6(0x26f)]+_0x11635b)));if(_0x51c02f[_0x2ac0f6(0x331)]('n')){let _0x4935c7=_0x1be68e[_0x2ac0f6(0x487)]+_0x1be68e[_0x2ac0f6(0x4b4)];_0x1677a3[_0x2ac0f6(0x487)]=Math[_0x2ac0f6(0x2eb)](0x0,Math[_0x2ac0f6(0x314)](_0x4935c7-0x1,_0x1be68e['row']+_0x58c686)),_0x1677a3['rowSpan']=_0x4935c7-_0x1677a3[_0x2ac0f6(0x487)];}else _0x51c02f[_0x2ac0f6(0x331)]('s')&&(_0x1677a3['rowSpan']=Math[_0x2ac0f6(0x2eb)](0x1,_0x1be68e[_0x2ac0f6(0x4b4)]+_0x58c686));return _0x1677a3;}function ia(_0x3efc54){const _0x3ad088=_0x2353bc;let _0x15ce94=Math['max'](0x1,Math['min'](_0x20c9d7,Math['round'](_0x3efc54[_0x3ad088(0x26f)])));return{'column':Math[_0x3ad088(0x2eb)](0x0,Math['min'](_0x20c9d7-_0x15ce94,Math['round'](_0x3efc54[_0x3ad088(0x39b)]))),'row':Math['max'](0x0,Math['round'](_0x3efc54[_0x3ad088(0x487)])),'columnSpan':_0x15ce94,'rowSpan':Math['max'](0x1,Math[_0x3ad088(0x384)](_0x3efc54[_0x3ad088(0x4b4)]))};}function aa(_0x86400e,_0x264002,_0x591dcc){const _0x389cf2=_0x2353bc;let _0x23306e=new Map(_0x86400e),_0x405b5d=ia(_0x591dcc);_0x23306e[_0x389cf2(0x401)](_0x264002,_0x405b5d);let _0xb20dc0=[[_0x264002,_0x405b5d]];for(let [_0x5440a9,_0x3864be]of _0x23306e){if(_0x5440a9===_0x264002)continue;let _0x22981d=ia(_0x3864be);for(;_0xb20dc0[_0x389cf2(0x464)](([,_0x443eec])=>sa(_0x22981d,_0x443eec));)_0x22981d={..._0x22981d,'row':_0x22981d[_0x389cf2(0x487)]+0x1};for(;_0x22981d[_0x389cf2(0x487)]>0x0;){let _0x127bab={..._0x22981d,'row':_0x22981d[_0x389cf2(0x487)]-0x1};if(_0xb20dc0['some'](([,_0x469f9e])=>sa(_0x127bab,_0x469f9e)))break;_0x22981d=_0x127bab;}_0xb20dc0[_0x389cf2(0x4ec)]([_0x5440a9,_0x22981d]),_0x23306e['set'](_0x5440a9,_0x22981d);}return _0x23306e;}function oa(_0x438988,_0x1f7695,_0xba13d,_0x3ce656=0x38,_0x549e03=0x16){const _0x5a02e3=_0x2353bc;return _0x438988<_0x1f7695+_0x3ce656?-Math[_0x5a02e3(0x30e)](_0x549e03*(0x1-Math[_0x5a02e3(0x2eb)](0x0,_0x438988-_0x1f7695)/_0x3ce656)):_0x438988>_0xba13d-_0x3ce656?Math[_0x5a02e3(0x30e)](_0x549e03*(0x1-Math[_0x5a02e3(0x2eb)](0x0,_0xba13d-_0x438988)/_0x3ce656)):0x0;}function sa(_0x2fec36,_0x1579e4){const _0x5df90c=_0x2353bc;return _0x2fec36[_0x5df90c(0x39b)]<_0x1579e4[_0x5df90c(0x39b)]+_0x1579e4[_0x5df90c(0x26f)]&&_0x2fec36[_0x5df90c(0x39b)]+_0x2fec36[_0x5df90c(0x26f)]>_0x1579e4[_0x5df90c(0x39b)]&&_0x2fec36[_0x5df90c(0x487)]<_0x1579e4[_0x5df90c(0x487)]+_0x1579e4[_0x5df90c(0x4b4)]&&_0x2fec36[_0x5df90c(0x487)]+_0x2fec36[_0x5df90c(0x4b4)]>_0x1579e4['row'];}const ca=[{'direction':'nw','className':_0x2353bc(0x2dc)},{'direction':'n','className':_0x2353bc(0x3a0)},{'direction':'ne','className':'univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize'},{'direction':'e','className':_0x2353bc(0x364)},{'direction':'se','className':_0x2353bc(0x3eb)},{'direction':'s','className':_0x2353bc(0x496)},{'direction':'sw','className':'univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize'},{'direction':'w','className':_0x2353bc(0x2af)}];function la({dashboard:_0x429c50,dragLabel:_0x1520c4,editable:_0x3ff6ea=!0x0,onLayoutsCommit:_0x246b0f,onSelectWidget:_0x371d18,renderWidget:_0xd856c4,renderWidgetActions:_0x5584c9,resizeLabel:_0x347697,selectedWidgetId:_0x1ebf59,widgetLabel:_0x40819c}){const _0xab83dd=_0x2353bc;let _0x402d55=_0x35f949(null),_0x581412=_0x35f949(null),[_0x413c2b,_0x2f616f]=_0x2be63d(!0x1),_0x470b0a=_0x56a185(()=>new Map(_0x429c50[_0xab83dd(0x362)][_0xab83dd(0x3bc)](_0x516be2=>{const _0x4f71ae=_0xab83dd;let _0x1ddb18=_0x429c50['widgets'][_0x516be2];return _0x1ddb18?[[_0x516be2,_0x1ddb18[_0x4f71ae(0x439)]]]:[];})),[_0x429c50]),[_0x7a1e79,_0x413836]=_0x2be63d(_0x470b0a);_0x38e78f(()=>{const _0xd72bb2=_0xab83dd;_0x581412[_0xd72bb2(0x38f)]||_0x413836(_0x470b0a);},[_0x470b0a]),_0x38e78f(()=>{const _0x4fc63d=_0xab83dd;if(!_0x413c2b)return;let _0xef4e54=_0x490e2d=>{const _0x2b45f4=_0x1cf6;let _0x180427=_0x402d55['current'];if(!_0x180427)return null;let _0x6d2fc5=_0x180427['getBoundingClientRect'](),_0x13c08b=Math[_0x2b45f4(0x2eb)](0x1,(_0x6d2fc5[_0x2b45f4(0x3c9)]-0x8*(_0x20c9d7-0x1))/_0x20c9d7),_0x69dbd7=Math[_0x2b45f4(0x384)]((_0x180427[_0x2b45f4(0x425)]-_0x490e2d['startScrollTop'])/(_0x50185b+0x8)),_0xb8c393=Math['round']((_0x490e2d['pointerX']-_0x490e2d[_0x2b45f4(0x210)])/(_0x13c08b+0x8)),_0x4ccba6=Math[_0x2b45f4(0x384)]((_0x490e2d[_0x2b45f4(0x1f3)]-_0x490e2d[_0x2b45f4(0x497)])/(_0x50185b+0x8))+_0x69dbd7,_0x171b4c=_0x490e2d[_0x2b45f4(0x224)]===_0x2b45f4(0x27a)?{..._0x490e2d['initial'],'column':_0x490e2d['initial']['column']+_0xb8c393,'row':_0x490e2d['initial']['row']+_0x4ccba6}:ra(_0x490e2d[_0x2b45f4(0x38b)],_0x490e2d[_0x2b45f4(0x315)]??'se',_0xb8c393,_0x4ccba6),_0x9652d9=aa(_0x490e2d[_0x2b45f4(0x462)],_0x490e2d['id'],_0x171b4c);return _0x413836(_0x9652d9),_0x9652d9;},_0x2ce3f6=_0x22df99=>{const _0x1a5457=_0x1cf6;let _0x4b2b9e=_0x581412[_0x1a5457(0x38f)];if(!_0x4b2b9e)return;let _0x547451={..._0x4b2b9e,'pointerX':_0x22df99[_0x1a5457(0x283)],'pointerY':_0x22df99[_0x1a5457(0x408)]};_0x581412[_0x1a5457(0x38f)]=_0x547451;},_0x37375b=()=>{const _0x391de5=_0x1cf6;let _0x37b7de=_0x581412['current'],_0xe3eb0c=_0x37b7de?_0xef4e54(_0x37b7de):null;_0x581412[_0x391de5(0x38f)]=null,_0x2f616f(!0x1),_0xe3eb0c&&_0x246b0f(_0xe3eb0c);},_0x1afcc7=0x0,_0x24c200=()=>{const _0x90eb5b=_0x1cf6;let _0x890fc=_0x402d55[_0x90eb5b(0x38f)],_0x5ee0b2=_0x581412['current'];if(_0x890fc&&_0x5ee0b2){let _0x3140d6=_0x890fc[_0x90eb5b(0x4db)](),_0x74a1f1=oa(_0x5ee0b2[_0x90eb5b(0x1f3)],_0x3140d6[_0x90eb5b(0x45e)],_0x3140d6[_0x90eb5b(0x2d0)]);_0x74a1f1!==0x0&&(_0x890fc[_0x90eb5b(0x425)]+=_0x74a1f1),_0xef4e54(_0x5ee0b2),_0x1afcc7=requestAnimationFrame(_0x24c200);}};return _0x1afcc7=requestAnimationFrame(_0x24c200),window[_0x4fc63d(0x1d1)](_0x4fc63d(0x1e7),_0x2ce3f6),window[_0x4fc63d(0x1d1)](_0x4fc63d(0x322),_0x37375b),()=>{const _0x1ea24d=_0x4fc63d;cancelAnimationFrame(_0x1afcc7),window[_0x1ea24d(0x27d)](_0x1ea24d(0x1e7),_0x2ce3f6),window[_0x1ea24d(0x27d)](_0x1ea24d(0x322),_0x37375b);};},[_0x413c2b,_0x246b0f]);let _0x19f547=Math[_0xab83dd(0x2eb)](0x8,...Array[_0xab83dd(0x4ce)](_0x7a1e79['values']())[_0xab83dd(0x3ff)](_0xb6d4cd=>_0xb6d4cd[_0xab83dd(0x487)]+_0xb6d4cd[_0xab83dd(0x4b4)])),_0x2e0942=(_0x286824,_0x1ec0cb,_0x43b489,_0x4b90c0)=>{const _0xf9a2ee=_0xab83dd;_0x286824[_0xf9a2ee(0x3ca)](),_0x286824[_0xf9a2ee(0x1de)]();let _0x308175=_0x402d55['current'],_0xe79e79={'id':_0x1ec0cb['id'],'mode':_0x43b489,'pointerX':_0x286824[_0xf9a2ee(0x283)],'pointerY':_0x286824[_0xf9a2ee(0x408)],'startX':_0x286824[_0xf9a2ee(0x283)],'startY':_0x286824['clientY'],'startScrollTop':(_0x308175==null?void 0x0:_0x308175[_0xf9a2ee(0x425)])??0x0,'initial':_0x7a1e79[_0xf9a2ee(0x2f0)](_0x1ec0cb['id'])??_0x1ec0cb[_0xf9a2ee(0x439)],'initialLayouts':new Map(_0x7a1e79),'resizeDirection':_0x4b90c0};_0x581412['current']=_0xe79e79,_0x2f616f(!0x0);};return _0x4dabb7('div',{'ref':_0x402d55,'data-dashboard-scroll-container':!0x0,'className':_0x52fed8(_0xab83dd(0x338),_0x2a22a5),'onClick':_0x3ff6ea?_0x56c7e9=>{const _0x27cacc=_0xab83dd;if(!(_0x56c7e9['target']instanceof Node)||!_0x56c7e9[_0x27cacc(0x250)][_0x27cacc(0x275)](_0x56c7e9[_0x27cacc(0x344)]))return;let _0x84181=_0x56c7e9['target']instanceof Element?_0x56c7e9['target']:_0x56c7e9[_0x27cacc(0x344)][_0x27cacc(0x45a)];_0x84181!=null&&_0x84181[_0x27cacc(0x304)](_0x27cacc(0x481))||_0x371d18==null||_0x371d18();}:void 0x0,'children':_0x4dabb7('div',{'data-dashboard-grid':!0x0,'className':_0xab83dd(0x1d7),'style':{'gap':0x8,'gridAutoRows':_0x50185b,'minHeight':_0x19f547*(_0x50185b+0x8)},'children':_0x429c50['widgetOrder'][_0xab83dd(0x3ff)](_0x322fa2=>{const _0x36d00f=_0xab83dd;var _0x2b68bb;let _0x2fdd67=_0x429c50[_0x36d00f(0x4e1)][_0x322fa2],_0xad4033=_0x7a1e79[_0x36d00f(0x2f0)](_0x322fa2);return!_0x2fdd67||!_0xad4033?null:_0x2b00c1(_0x36d00f(0x386),{'data-dashboard-widget':_0x2fdd67['id'],'aria-label':_0x2fdd67[_0x36d00f(0x448)]??_0x40819c(_0x2fdd67),'className':_0x52fed8(_0x36d00f(0x2f1),_0x2fdd67[_0x36d00f(0x393)]===_0x342116[_0x36d00f(0x4ae)]||_0x2fdd67[_0x36d00f(0x393)]===_0x342116['FormulaShape']?_0x36d00f(0x382):_0x36d00f(0x3d3),_0x3ff6ea&&_0x1ebf59===_0x2fdd67['id']?_0x36d00f(0x30f):_0x36d00f(0x357)),'style':{'gridColumn':_0xad4033[_0x36d00f(0x39b)]+0x1+_0x36d00f(0x35e)+_0xad4033[_0x36d00f(0x26f)],'gridRow':_0xad4033[_0x36d00f(0x487)]+0x1+_0x36d00f(0x35e)+_0xad4033['rowSpan']},'tabIndex':_0x3ff6ea?0x0:void 0x0,'onClick':_0x3ff6ea?()=>_0x371d18==null?void 0x0:_0x371d18(_0x2fdd67['id']):void 0x0,'onFocus':_0x3ff6ea?()=>_0x371d18==null?void 0x0:_0x371d18(_0x2fdd67['id']):void 0x0,'children':[_0x3ff6ea&&_0x4dabb7(_0x36d00f(0x228),{'type':_0x36d00f(0x228),'aria-label':_0x1520c4,'data-dashboard-drag-handle':_0x2fdd67['id'],'className':_0x52fed8('univer-pointer-events-none\x20univer-absolute\x20univer-left-1/2\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-h-5\x20univer-w-8\x20-univer-translate-x-1/2\x20univer-appearance-none\x20univer-items-center\x20univer-justify-center\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-400\x20univer-opacity-0\x20univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100',_0x413c2b&&((_0x2b68bb=_0x581412[_0x36d00f(0x38f)])==null?void 0x0:_0x2b68bb['id'])===_0x2fdd67['id']&&_0x581412[_0x36d00f(0x38f)][_0x36d00f(0x224)]===_0x36d00f(0x27a)?'univer-cursor-grabbing':_0x36d00f(0x2c5)),'onPointerDown':_0x529d3e=>_0x2e0942(_0x529d3e,_0x2fdd67,_0x36d00f(0x27a)),'children':_0x4dabb7(_0x1487d8,{'className':_0x36d00f(0x40c),'aria-hidden':_0x36d00f(0x1d5)})}),_0x3ff6ea&&_0x4dabb7('div',{'className':_0x36d00f(0x2f3),'children':_0x5584c9==null?void 0x0:_0x5584c9(_0x2fdd67)}),_0x4dabb7(_0x36d00f(0x442),{'className':_0x36d00f(0x2b7),'children':_0xd856c4(_0x2fdd67)}),_0x3ff6ea&&ca[_0x36d00f(0x3ff)](({className:_0x39ff2a,direction:_0x3af055})=>{const _0x1c858a=_0x36d00f;let _0x5745a6=_0x3af055[_0x1c858a(0x4da)]===0x2;return _0x4dabb7(_0x1c858a(0x228),{'type':_0x1c858a(0x228),'aria-label':_0x347697,'data-dashboard-resize-handle':_0x3af055,'data-dashboard-resize-control':_0x5745a6?_0x3af055:void 0x0,'data-dashboard-resize-edge':_0x5745a6?void 0x0:_0x3af055,'className':_0x52fed8(_0x1c858a(0x42d),_0x5745a6?_0x1c858a(0x1cf):_0x1c858a(0x3cc),_0x39ff2a,_0x1ebf59===_0x2fdd67['id']&&'univer-pointer-events-auto\x20univer-opacity-100'),'onPointerDown':_0x547b2f=>_0x2e0942(_0x547b2f,_0x2fdd67,_0x1c858a(0x220),_0x3af055)},_0x3af055);})]},_0x2fdd67['id']);})})});}var ua;const Q={'axis':{..._0x5caca4,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x26697d,'heatmap':_0x296680,'indicatorLine':_0x195779,'legend':_0x4fe0eb,'lineAndArea':_0x499ec0,'pareto':_0x4cf110,'pie':_0x1db8a1,'radar':_0x35ac4f,'relation':{..._0x2da675,'useValueAsSymbolSize':!0x0},'series':{..._0x396e30,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((ua=_0x46c996['allSeriesStyle'])==null?void 0x0:ua[_0x2353bc(0x2c6)])??!0x1}},'style':_0x5792d9,'titles':_0x21806e,'trendline':_0x563c89,'waterfall':{..._0x2c231e,'useSubtotal':!0x0},'waterfallStyle':_0x31f02c,'wordCloud':_0x8c0c35},da=[_0x3414f3[_0x2353bc(0x4ef)],_0x3414f3['Radar'],_0x3414f3['WordCloud'],_0x3414f3['Scatter'],_0x3414f3[_0x2353bc(0x4f5)],_0x3414f3[_0x2353bc(0x3dd)],_0x3414f3[_0x2353bc(0x46c)],_0x3414f3['Heatmap'],_0x3414f3[_0x2353bc(0x2d1)],_0x3414f3[_0x2353bc(0x1fe)],_0x3414f3['Histogram'],_0x3414f3['Treemap'],_0x3414f3['Sunburst'],_0x3414f3[_0x2353bc(0x494)],_0x3414f3[_0x2353bc(0x2e4)]];function fa(_0x3eb10e){const _0x5e8fcd=_0x2353bc;let {config:_0x486f6d,onChange:_0x30d33c,runtime:_0x2ac1d1,tableName:_0x595b6c}=_0x3eb10e,_0x5d8ef4=_0x39b411(Gr),_0x28dc6d=_0x39b411(_0x5cd3ee),[_0x482840,_0x53d767]=_0x2be63d(_0x139866['Data']),_0x2ba712=_0x56a185(()=>new _0x29d554(_0x2ac1d1[_0x5e8fcd(0x37a)],{'commit':_0x44ac9a=>{const _0x1867e3=_0x5e8fcd;var _0x6f1ac5;let _0x14ab0e=_0x2ac1d1[_0x1867e3(0x37a)],_0x438cbd=_0x485197(_0x44ac9a,{'series':(_0x6f1ac5=_0x14ab0e[_0x1867e3(0x4e8)])==null?void 0x0:_0x6f1ac5['series'],'currentChartType':_0x14ab0e[_0x1867e3(0x3e2)],'currentStyle':_0x14ab0e['style'],'currentContext':_0x14ab0e[_0x1867e3(0x1af)],'currentDataAggregation':_0x14ab0e[_0x1867e3(0x3b9)]});_0x30d33c({'chart':pa(_0x486f6d[_0x1867e3(0x4d8)],_0x438cbd)});}}),[_0x486f6d[_0x5e8fcd(0x4d8)],_0x30d33c,_0x2ac1d1]),_0xfbcda5=_0x56a185(()=>_0x2dbfb8(_0x170e20['map'](_0x4777b2=>({..._0x4777b2,'label':_0x28dc6d['t'](_a(_0x4777b2[_0x5e8fcd(0x1a8)]))}))),[_0x28dc6d]);return _0x4dabb7(_0x4bacfa,{'chartUIService':_0x5d8ef4,'hostAdapter':_0x2ba712,'children':_0x2b00c1(_0x5e8fcd(0x442),{'className':_0x5e8fcd(0x450),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x28dc6d['t'](_0x5e8fcd(0x3d4)),'className':_0x5e8fcd(0x410),'items':[{'label':_0x28dc6d['t'](_0x5e8fcd(0x466)),'panelId':_0x5e8fcd(0x45d),'value':_0x139866[_0x5e8fcd(0x1df)]},{'label':_0x28dc6d['t'](_0x5e8fcd(0x33f)),'panelId':_0x5e8fcd(0x311),'value':_0x139866[_0x5e8fcd(0x352)]}],'value':_0x482840,'onChange':_0x53d767}),_0x482840===_0x139866['Data']?_0x4dabb7(_0x3812e6,{'id':'base-pivot-chart-setup','label':_0x28dc6d['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x2b00c1(_0x5e8fcd(0x442),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x4dabb7(_0x195039,{'options':_0xfbcda5}),_0x4dabb7(_0x3eaf0a,{}),_0x4dabb7(_0x1603db,{}),_0x4dabb7(ma,{}),_0x4dabb7(_0x3210ae,{}),_0x2b00c1(_0x5e8fcd(0x442),{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x28dc6d['t'](_0x5e8fcd(0x2da))}),_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x595b6c})]}),_0x4dabb7(_0x26c1b7,{'orientationControl':_0x4dabb7(_0x1b3e3b,{'size':_0x5e8fcd(0x432),'onClick':()=>_0x30d33c({'chart':{..._0x486f6d[_0x5e8fcd(0x4d8)],'orient':_0x486f6d['chart'][_0x5e8fcd(0x485)]===_0x5e8fcd(0x487)?_0x5e8fcd(0x39b):'row'}}),'children':_0x28dc6d['t']('bases-dashboard-ui.chart.common.switchRowColumn')})}),_0x4dabb7(_0x45db86,{}),_0x4dabb7(_0x4e37ce,{'defaultValues':Q[_0x5e8fcd(0x2fd)]}),_0x2b00c1('div',{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x28dc6d['t'](_0x5e8fcd(0x470))}),_0x4dabb7(_0xce6b1b,{'value':_0x486f6d[_0x5e8fcd(0x4a6)],'options':[{'value':_0x5e8fcd(0x330),'label':_0x28dc6d['t'](_0x5e8fcd(0x3c6))},{'value':_0x5e8fcd(0x4d8),'label':_0x28dc6d['t'](_0x5e8fcd(0x3c7))},{'value':_0x5e8fcd(0x4bb),'label':_0x28dc6d['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x38503b=>{const _0x485e1d=_0x5e8fcd;(_0x38503b===_0x485e1d(0x330)||_0x38503b===_0x485e1d(0x4d8)||_0x38503b===_0x485e1d(0x4bb))&&_0x30d33c({'displayMode':_0x38503b});}})]})]})}):_0x4dabb7(_0x3812e6,{'id':'base-pivot-chart-style','label':_0x28dc6d['t'](_0x5e8fcd(0x33f)),'children':_0x4dabb7(ha,{})})]})});}function pa(_0x3db5a4,_0x19e117){const _0x10f3df=_0x2353bc;return{..._0x3db5a4,'type':_0x19e117[_0x10f3df(0x3e2)]??_0x3db5a4['type'],'style':_0x19e117[_0x10f3df(0x3f1)]??_0x3db5a4[_0x10f3df(0x3f1)],'context':_0x19e117[_0x10f3df(0x1af)]??_0x3db5a4['context'],'dataAggregation':_0x19e117[_0x10f3df(0x3b9)]??_0x3db5a4[_0x10f3df(0x3b9)]};}function ma(){const _0xd1cc0=_0x2353bc;let _0x2e4890=_0x1f2e67();return _0x4dabb7(_0x34de73,{'visible':da[_0xd1cc0(0x498)](_0xab9aab=>!_0x4c5ed5[_0xd1cc0(0x20b)](_0x2e4890,_0xab9aab))});}function $(_0x55758e){const _0x4c67ff=_0x2353bc;return _0x2b00c1(_0x1358f8,{'id':_0x55758e['id'],'children':[_0x4dabb7(_0x352fb4,{'children':_0x55758e[_0x4c67ff(0x3b0)]}),_0x4dabb7(_0xaf7aad,{'children':_0x55758e[_0x4c67ff(0x4a0)]})]});}function ha(){const _0x5beea5=_0x2353bc;let _0x11faa3=_0x39b411(_0x5cd3ee),_0x80a800=_0x1f2e67(),_0x212c5e=_0x51b799(),[_0x1af09c,_0x7f8022]=_0x2be63d(null),_0x341540=_0x4c5ed5['baseOn'](_0x80a800,_0x3414f3[_0x5beea5(0x1b1)]),_0x3a5efc=_0x80a800===_0x3414f3[_0x5beea5(0x4e4)],_0x45ab49=_0x80a800===_0x3414f3[_0x5beea5(0x297)],_0x5f0d27=_0x80a800===_0x3414f3['Funnel'],_0x2d6f7e=_0x4c5ed5[_0x5beea5(0x20b)](_0x80a800,_0x3414f3[_0x5beea5(0x2ae)]),_0x3e202f=_0x80a800===_0x3414f3['Relation'],_0x44cde6=_0x80a800===_0x3414f3[_0x5beea5(0x24f)],_0x4e5145=_0x80a800===_0x3414f3['Pareto'],_0x29edce=_0x80a800===_0x3414f3['Heatmap'],_0x2e8a88=_0x326a9b(_0x80a800,_0x1958f1[_0x5beea5(0x270)])&&!_0x2d6f7e&&!_0x4e5145,_0xe7ba27=ga(_0x80a800,_0x11faa3);return _0x2b00c1(_0x28ef86,{'value':_0x1af09c,'onChange':_0x7f8022,'children':[_0x4dabb7($,{'id':_0x8fe1f1['ChartStyle'],'label':_0x11faa3['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0x4dabb7(_0x466794,{'defaultValues':Q[_0x5beea5(0x3f1)]})}),_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x1d9)],'label':_0x11faa3['t'](_0x5beea5(0x406)),'children':_0x4dabb7(_0xe815e7,{'commitMode':_0x5beea5(0x453),'defaultValues':Q[_0x5beea5(0x262)]})}),_0x2e8a88&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x484)],'label':_0x11faa3['t'](_0x5beea5(0x1a9)),'children':_0x4dabb7(_0x3bcbff,{'defaultValues':Q[_0x5beea5(0x418)],'NumberFormatField':_0x2f8e19})}),_0x44cde6&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x1d6)],'label':_0x11faa3['t'](_0x5beea5(0x2c4)),'children':_0x4dabb7(_0x217c37,{'defaultValues':Q['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x11f305,target:_0x132ba0})=>_0x132ba0===_0x6a9b13[_0x5beea5(0x1d3)]?_0x11faa3['t']('bases-dashboard-ui.chart.waterfall.subtotal'):_0x11f305?_0x11f305+'-('+_0x11faa3['t']('bases-dashboard-ui.chart.'+(_0x132ba0===_0x6a9b13[_0x5beea5(0x428)]?_0x5beea5(0x507):_0x5beea5(0x3a8)))+')':'','NumberFormatField':_0x2f8e19})}),_0x4e5145&&_0x2b00c1(_0xa1bb43,{'children':[_0x4dabb7($,{'id':_0x8fe1f1['ParetoBarSeries'],'label':_0x11faa3['t'](_0x5beea5(0x1cb)),'children':_0x4dabb7(_0x35a412,{'defaultValues':Q[_0x5beea5(0x340)],'NumberFormatField':_0x2f8e19,'showDataPointEditor':!0x0,'target':'barStyle'})}),_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x4c5)],'label':_0x11faa3['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':_0x4dabb7(_0x35a412,{'defaultValues':Q['pareto'],'NumberFormatField':_0x2f8e19,'showDataPointEditor':!0x1,'target':_0x5beea5(0x1e3)})})]}),_0x341540&&_0x4dabb7($,{'id':_0x8fe1f1['PieStyle'],'label':_0x11faa3['t'](_0x5beea5(0x49b)),'children':_0x4dabb7(_0x34a105,{'defaultValues':Q[_0x5beea5(0x477)],'NumberFormatField':_0x2f8e19})}),_0x45ab49&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x297)],'label':_0x11faa3['t'](_0x5beea5(0x2ba)),'children':_0x4dabb7(_0x5ac713,{'defaultValues':Q['wordCloud']})}),_0x3a5efc&&_0x4dabb7($,{'id':_0x8fe1f1['Radar'],'label':_0x11faa3['t']('bases-dashboard-ui.chart.section.radar'),'children':_0x4dabb7(_0x4c7c71,{'defaultValues':Q[_0x5beea5(0x3f0)]})}),_0x5f0d27&&_0x4dabb7($,{'id':_0x8fe1f1['Funnel'],'label':_0x11faa3['t']('bases-dashboard-ui.chart.section.funnel'),'children':_0x4dabb7(_0x666ad2,{'defaultValues':Q[_0x5beea5(0x480)],'gapControl':_0x5beea5(0x465)})}),_0x29edce&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x20d)],'label':_0x11faa3['t'](_0x5beea5(0x2c2)),'children':_0x4dabb7(_0x3c01f2,{'defaultValues':Q[_0x5beea5(0x300)]})}),_0x3e202f&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x3dd)],'label':_0x11faa3['t'](_0x5beea5(0x476)),'children':_0x4dabb7(_0x11ce9e,{'defaultValues':Q[_0x5beea5(0x363)]})}),_0x59d745(_0x80a800)&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x4e5)],'label':_0x11faa3['t'](_0x5beea5(0x4ab)),'children':_0x4dabb7(_0x457b13,{'defaultValues':Q[_0x5beea5(0x39a)],'lineStyleControl':'segmented'})}),_0x326a9b(_0x80a800,_0x1958f1[_0x5beea5(0x3b8)])&&_0x4dabb7($,{'id':_0x8fe1f1['Legend'],'label':_0x11faa3['t'](_0x5beea5(0x4d5)),'children':_0x4dabb7(_0x1dc64f,{'defaultValues':Q[_0x5beea5(0x508)]})}),_0x326a9b(_0x80a800,_0x1958f1[_0x5beea5(0x313)])&&_0x2b00c1(_0xa1bb43,{'children':[_0x4dabb7($,{'id':_0x8fe1f1['HorizontalAxis'],'label':_0x11faa3['t'](_0x5beea5(0x26b)),'children':_0x4dabb7(_0x185c32,{'axis':'x','defaultValues':Q[_0x5beea5(0x310)],'NumberFormatField':_0x2f8e19})}),_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x488)],'label':_0x11faa3['t'](_0x5beea5(0x1ec)),'children':_0x4dabb7(_0x185c32,{'axis':'y','defaultValues':Q['axis'],'NumberFormatField':_0x2f8e19})}),_0x212c5e&&_0x4dabb7($,{'id':_0x8fe1f1['RightVerticalAxis'],'label':_0x11faa3['t'](_0x5beea5(0x374)),'children':_0x4dabb7(_0x185c32,{'axis':'rightY','defaultValues':Q['axis'],'NumberFormatField':_0x2f8e19})}),_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x1ee)],'label':_0x11faa3['t'](_0x5beea5(0x261)),'children':_0x4dabb7(_0x1f6674,{'defaultValues':Q[_0x5beea5(0x310)]})})]}),_0x326a9b(_0x80a800,_0x1958f1[_0x5beea5(0x223)])&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x223)],'label':_0x11faa3['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x4dabb7(_0x5f2295,{'defaultValues':Q[_0x5beea5(0x24d)]})}),_0xae124c(_0x80a800)&&_0x4dabb7($,{'id':_0x8fe1f1['Trendline'],'label':_0x11faa3['t'](_0x5beea5(0x387)),'children':_0x4dabb7(_0x3c8ddd,{'defaultValues':Q[_0x5beea5(0x23c)]})}),_0xe7ba27&&_0x4dabb7($,{'id':_0xe7ba27['id'],'label':_0xe7ba27['label'],'children':_0x4dabb7(_0x5d0cdf,{})})]});}function ga(_0x19bc19,_0x3c9d36){const _0x101916=_0x2353bc;let _0x5882a1={[_0x3414f3[_0x101916(0x1fe)]]:{'id':_0x8fe1f1[_0x101916(0x1fe)],'localeKey':_0x101916(0x1db)},[_0x3414f3['Histogram']]:{'id':_0x8fe1f1[_0x101916(0x242)],'localeKey':_0x101916(0x255)},[_0x3414f3[_0x101916(0x3aa)]]:{'id':_0x8fe1f1[_0x101916(0x3aa)],'localeKey':'bases-dashboard-ui.chart.section.treemap'},[_0x3414f3[_0x101916(0x366)]]:{'id':_0x8fe1f1[_0x101916(0x366)],'localeKey':_0x101916(0x495)},[_0x3414f3[_0x101916(0x494)]]:{'id':_0x8fe1f1[_0x101916(0x494)],'localeKey':'bases-dashboard-ui.chart.section.gauge'},[_0x3414f3[_0x101916(0x2e4)]]:{'id':_0x8fe1f1['Chord'],'localeKey':_0x101916(0x37c)}}[_0x19bc19];return _0x5882a1?{'id':_0x5882a1['id'],'label':_0x3c9d36['t'](_0x5882a1[_0x101916(0x353)])}:null;}function _a(_0xf1576a){const _0x377113=_0x2353bc;return _0x377113(0x317)+_0xf1576a;}function va({onChange:_0x346ca5,onEditData:_0x1df637,runtime:_0x5023bf,sourceChart:_0x3759eb,sourceName:_0x1c155c,widget:_0x4fb5f1}){const _0x1c008b=_0x2353bc;let _0x19f0dc=_0x39b411(Gr),_0x4648cc=_0x39b411(_0x5cd3ee),[_0xf25e52,_0x52db5c]=_0x2be63d(_0x139866[_0x1c008b(0x1df)]),_0x54e5d2=_0x4fb5f1['chart']??_0x3759eb,_0x34e1bc=_0x56a185(()=>new _0x29d554(_0x5023bf[_0x1c008b(0x37a)],{'commit':_0x23f344=>{const _0x3f532e=_0x1c008b;var _0x2adb6a;let _0x37d912=_0x5023bf['model'],_0x34048a=_0x485197(_0x23f344,{'series':(_0x2adb6a=_0x37d912['config'])==null?void 0x0:_0x2adb6a[_0x3f532e(0x418)],'currentChartType':_0x37d912[_0x3f532e(0x3e2)],'currentStyle':_0x37d912[_0x3f532e(0x3f1)],'currentContext':_0x37d912['context'],'currentDataAggregation':_0x37d912[_0x3f532e(0x3b9)]});_0x346ca5({..._0x4fb5f1,'chart':pa(_0x54e5d2,_0x34048a)})[_0x3f532e(0x3d2)](()=>void 0x0);}}),[_0x54e5d2,_0x346ca5,_0x5023bf,_0x4fb5f1]),_0x5c18b1=_0x56a185(()=>_0x2dbfb8(_0x170e20[_0x1c008b(0x3ff)](_0x1283f3=>({..._0x1283f3,'label':_0x4648cc['t'](ya(_0x1283f3[_0x1c008b(0x1a8)]))}))),[_0x4648cc]);return _0x4dabb7(_0x4bacfa,{'chartUIService':_0x19f0dc,'hostAdapter':_0x34e1bc,'children':_0x2b00c1(_0x1c008b(0x442),{'data-dashboard-chart-inspector':!0x0,'className':_0x1c008b(0x2f2),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x4648cc['t'](_0x1c008b(0x3d4)),'className':_0x1c008b(0x410),'items':[{'label':_0x4648cc['t'](_0x1c008b(0x466)),'panelId':_0x1c008b(0x295),'value':_0x139866['Data']},{'label':_0x4648cc['t'](_0x1c008b(0x33f)),'panelId':_0x1c008b(0x46d),'value':_0x139866['Style']}],'value':_0xf25e52,'onChange':_0x52db5c}),_0xf25e52===_0x139866[_0x1c008b(0x1df)]?_0x4dabb7(_0x3812e6,{'id':_0x1c008b(0x295),'label':_0x4648cc['t'](_0x1c008b(0x466)),'children':_0x2b00c1(_0x1c008b(0x442),{'className':_0x1c008b(0x4e3),'children':[_0x4dabb7(_0x195039,{'options':_0x5c18b1}),_0x4dabb7(_0x3eaf0a,{}),_0x4dabb7(_0x1603db,{}),_0x4dabb7(ma,{}),_0x4dabb7(_0x3210ae,{}),_0x2b00c1(_0x1c008b(0x442),{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x4648cc['t']('bases-dashboard-ui.dashboardInspector.dataSource')}),_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x1c155c}),_0x4dabb7(_0x1b3e3b,{'className':_0x1c008b(0x25f),'onClick':_0x1df637,'children':_0x4648cc['t'](_0x1c008b(0x2e0))})]})]})}):_0x4dabb7(_0x3812e6,{'id':_0x1c008b(0x46d),'label':_0x4648cc['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x4dabb7(ha,{})})]})});}function ya(_0x2e5a8d){const _0x5b16c8=_0x2353bc;return _0x5b16c8(0x317)+_0x2e5a8d;}const ba=['general',_0x2353bc(0x3c4),_0x2353bc(0x327),_0x2353bc(0x241),_0x2353bc(0x39e),'compact'];function xa({base:_0x266779,onChange:_0xbda0fa,onSelectBackgroundImage:_0x4465dc,widget:_0x31d0fe}){const _0x16db93=_0x2353bc;var _0x3d36ed;let _0x402626=_0x39b411(_0x5cd3ee),_0x53c740=_0x39b411(_0x277079),_0x198db0=_0x499abf(()=>_0x53c740[_0x16db93(0x227)],_0x53c740[_0x16db93(0x2d8)](),!0x1,[_0x53c740]),_0x704b8b=_0x499abf(()=>_0x53c740['darkMode$'],_0x53c740['darkMode'],!0x1,[_0x53c740]),[_0x3d3ef6,_0x43142f]=_0x2be63d(_0x16db93(0x4b1)),[_0x273223,_0x51ddcd]=_0x2be63d(!0x1),_0x5e6a5f=xr(_0x31d0fe),_0x1eeb23=_0x266779['getSnapshot']()[_0x16db93(0x39c)][_0x31d0fe[_0x16db93(0x475)]],_0x32e218=_0x1eeb23==null?void 0x0:_0x1eeb23[_0x16db93(0x411)][_0x16db93(0x397)](_0x867f5e=>_0x1eeb23[_0x16db93(0x451)][_0x867f5e]),_0x4108a8=_0x32e218?_0x1eeb23==null?void 0x0:_0x1eeb23['views'][_0x32e218]:void 0x0,_0x378d89=_0x1eeb23&&_0x4108a8?_0x57cd99(_0x266779[_0x16db93(0x3f5)](),_0x1eeb23,_0x4108a8)['map'](_0x34fb78=>({..._0x34fb78,'current':!0x1})):[],_0x5c4973=((_0x3d36ed=_0x31d0fe[_0x16db93(0x1d8)][_0x16db93(0x3e3)])==null?void 0x0:_0x3d36ed[_0x16db93(0x274)])??'',_0x179e87=_0x3eb206=>_0xbda0fa(Sr(_0x31d0fe,_0x3eb206))['catch'](()=>void 0x0),_0x5884e0=_0x2b9d0b=>_0xbda0fa({..._0x31d0fe,'description':_0x2b9d0b})['catch'](()=>void 0x0);return _0x2b00c1(_0x16db93(0x442),{'data-dashboard-formula-inspector':!0x0,'className':_0x16db93(0x2f2),'children':[_0x4dabb7(_0x116fe9,{'className':_0x16db93(0x346),'items':[{'value':'data','label':_0x402626['t'](_0x16db93(0x1dd))},{'value':_0x16db93(0x3f1),'label':_0x402626['t'](_0x16db93(0x2ac))}],'value':_0x3d3ef6,'onChange':_0x43142f}),_0x4dabb7(_0x16db93(0x442),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0x3d3ef6==='data'?_0x2b00c1(_0x16db93(0x442),{'className':_0x16db93(0x4e0),'children':[_0x4dabb7(Sa,{'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.description'),'children':_0x4dabb7(_0x2c53ee,{'value':_0x31d0fe['description']??_0x31d0fe['title']??'','onChange':_0x5884e0,'onBlur':_0x2fb235=>_0x5884e0(_0x2fb235['target'][_0x16db93(0x284)])})}),_0x4dabb7(Sa,{'label':_0x402626['t'](_0x16db93(0x31b)),'children':_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':(_0x1eeb23==null?void 0x0:_0x1eeb23['name'])??_0x402626['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})}),_0x2b00c1(Sa,{'label':_0x402626['t'](_0x16db93(0x222)),'children':[_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x1b3454(_0x5c4973,_0x378d89)}),_0x4dabb7(_0x1b3e3b,{'className':_0x16db93(0x25f),'onClick':()=>_0x51ddcd(!0x0),'children':_0x402626['t'](_0x16db93(0x460))})]})]}):_0x2b00c1('div',{'className':_0x16db93(0x4e0),'children':[_0x4dabb7(_0x38703b,{'emptyLabel':_0x402626['t'](_0x16db93(0x245)),'label':_0x402626['t'](_0x16db93(0x245)),'pickerFallbackValue':_0x704b8b?_0x198db0[_0x16db93(0x433)][0x384]:_0x198db0[_0x16db93(0x433)][0x0],'resetLabel':_0x402626['t'](_0x16db93(0x449)),'value':_0x5e6a5f[_0x16db93(0x394)]??null,'onChange':_0x396117=>_0x179e87({'backgroundColor':_0x396117??void 0x0})}),_0x2b00c1(Sa,{'label':_0x402626['t'](_0x16db93(0x267)),'children':[_0x2b00c1(_0x16db93(0x442),{'className':_0x16db93(0x4cf),'children':[_0x2b00c1(_0x1b3e3b,{'className':_0x16db93(0x342),'onClick':()=>{const _0x1277ff=_0x16db93;_0x4465dc()[_0x1277ff(0x388)](_0x2f011b=>{const _0x187ac4=_0x1277ff;if(_0x2f011b){var _0x12a9ee;return _0x179e87({'backgroundImage':{..._0x2f011b,'fit':((_0x12a9ee=_0x5e6a5f['backgroundImage'])==null?void 0x0:_0x12a9ee['fit'])??_0x187ac4(0x3d5)}});}})[_0x1277ff(0x3d2)](()=>void 0x0);},'children':[_0x4dabb7(_0x5155a3,{}),_0x5e6a5f[_0x16db93(0x48f)]?_0x402626['t'](_0x16db93(0x256)):_0x402626['t']('bases-dashboard-ui.dashboardInspector.uploadImage')]}),_0x5e6a5f[_0x16db93(0x48f)]&&_0x4dabb7(_0x1b3e3b,{'aria-label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x402626['t'](_0x16db93(0x1f0)),'onClick':()=>_0x179e87({'backgroundImage':void 0x0}),'children':_0x4dabb7(_0x2d17f6,{})})]}),_0x5e6a5f['backgroundImage']&&_0x4dabb7(_0x116fe9,{'className':_0x16db93(0x266),'items':[{'value':_0x16db93(0x3d5),'label':_0x402626['t'](_0x16db93(0x2e7))},{'value':'contain','label':_0x402626['t'](_0x16db93(0x45b))}],'value':_0x5e6a5f[_0x16db93(0x48f)][_0x16db93(0x2c9)],'onChange':_0x39b1b7=>_0x179e87({'backgroundImage':_0x5e6a5f[_0x16db93(0x48f)]?{..._0x5e6a5f['backgroundImage'],'fit':_0x39b1b7}:void 0x0})})]}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x402626['t'](_0x16db93(0x21a)),'label':_0x402626['t'](_0x16db93(0x21a)),'pickerFallbackValue':_0x704b8b?_0x198db0[_0x16db93(0x433)][0x32]:_0x198db0[_0x16db93(0x433)][0x3e8],'resetLabel':_0x402626['t'](_0x16db93(0x449)),'value':_0x5e6a5f[_0x16db93(0x204)]??null,'onChange':_0x18cb43=>_0x179e87({'textColor':_0x18cb43??void 0x0})}),_0x4dabb7(Sa,{'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x4dabb7(_0x116fe9,{'items':[{'value':_0x16db93(0x20a),'label':_0x402626['t'](_0x16db93(0x28d))},{'value':_0x16db93(0x4b2),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':'right','label':_0x402626['t'](_0x16db93(0x1fd))}],'value':_0x5e6a5f['alignment'],'onChange':_0x357667=>_0x179e87({'alignment':_0x357667})})}),_0x2b00c1(Sa,{'label':_0x402626['t'](_0x16db93(0x219)),'children':[_0x4dabb7(_0x116fe9,{'items':[{'value':_0x16db93(0x3b6),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':_0x16db93(0x509),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x5e6a5f[_0x16db93(0x1e2)],'onChange':_0x371a80=>_0x179e87({'fontSizeMode':_0x371a80})}),_0x5e6a5f[_0x16db93(0x1e2)]==='custom'&&_0x4dabb7(_0x1c2086,{'className':_0x16db93(0x266),'min':0xc,'max':0x78,'value':_0x5e6a5f['fontSize'],'onChange':_0x38cddd=>_0x179e87({'fontSize':_0x38cddd??0x28,'fontSizeMode':_0x16db93(0x509)})})]}),_0x4dabb7(Sa,{'label':_0x402626['t'](_0x16db93(0x500)),'children':_0x4dabb7(_0xce6b1b,{'value':_0x5e6a5f[_0x16db93(0x348)],'options':[{'value':_0x16db93(0x3f3),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.general')},{'value':_0x16db93(0x3c4),'label':_0x402626['t'](_0x16db93(0x1e1))},{'value':_0x16db93(0x327),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.percent')},{'value':_0x16db93(0x241),'label':_0x402626['t'](_0x16db93(0x502))},{'value':_0x16db93(0x39e),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':_0x16db93(0x1be),'label':_0x402626['t'](_0x16db93(0x4cd))}],'onChange':_0x5ad74a=>{const _0x1b4869=_0x16db93;let _0xaeffd8=ba[_0x1b4869(0x397)](_0x416300=>_0x416300===_0x5ad74a);_0xaeffd8&&_0x179e87({'numberFormat':_0xaeffd8});}})}),_0x5e6a5f[_0x16db93(0x348)]===_0x16db93(0x241)&&_0x4dabb7(Sa,{'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x4dabb7(_0x2c53ee,{'value':_0x5e6a5f['currency'],'onChange':_0x35f18f=>_0x179e87({'currency':_0x35f18f[_0x16db93(0x35d)](0x0,0x3)[_0x16db93(0x4e2)]()})})}),_0x5e6a5f[_0x16db93(0x348)]!==_0x16db93(0x3f3)&&_0x4dabb7(Sa,{'label':_0x402626['t'](_0x16db93(0x211)),'children':_0x4dabb7(_0x1c2086,{'min':0x0,'max':0x8,'value':_0x5e6a5f['decimalPlaces'],'onChange':_0x304407=>_0x179e87({'decimalPlaces':_0x304407??0x0})})})]})}),_0x273223&&_0x4dabb7(_0x4b580d,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x4dabb7(_0x55d652,{'tables':_0x378d89,'formula':_0x1b3454(_0x5c4973,_0x378d89),'onCancel':()=>_0x51ddcd(!0x1),'onSave':_0x5cc300=>{const _0x380b0a=_0x16db93;let _0x233eef=_0x31d0fe[_0x380b0a(0x1d8)][_0x380b0a(0x3e3)]??{'formula':''};return _0xbda0fa({..._0x31d0fe,'shapeData':{..._0x31d0fe[_0x380b0a(0x1d8)],'formulaBinding':{..._0x233eef,'formula':_0x24d391(_0x5cc300,_0x378d89)}}})[_0x380b0a(0x388)](()=>_0x51ddcd(!0x1))[_0x380b0a(0x3d2)](()=>void 0x0);}})})]});}function Sa({children:_0x2cba44,label:_0x58b251}){const _0x555861=_0x2353bc;return _0x2b00c1(_0x555861(0x442),{'role':_0x555861(0x365),'aria-label':_0x58b251,'className':_0x555861(0x3d0),'children':[_0x4dabb7(_0x555861(0x3ec),{'children':_0x58b251}),_0x2cba44]});}const Ca={[_0x17381a['IS']]:_0x2353bc(0x4be),[_0x17381a[_0x2353bc(0x1d2)]]:_0x2353bc(0x2e6),[_0x17381a[_0x2353bc(0x35c)]]:'bases-dashboard-ui.operators.contains',[_0x17381a['NOT_CONTAINS']]:_0x2353bc(0x493),[_0x17381a[_0x2353bc(0x2b3)]]:_0x2353bc(0x3ef),[_0x17381a['IS_NOT_EMPTY']]:_0x2353bc(0x31d),[_0x17381a[_0x2353bc(0x3fc)]]:_0x2353bc(0x1ca),[_0x17381a[_0x2353bc(0x3da)]]:_0x2353bc(0x3e1),[_0x17381a[_0x2353bc(0x36d)]]:_0x2353bc(0x3c2),[_0x17381a[_0x2353bc(0x303)]]:_0x2353bc(0x2a8),[_0x17381a[_0x2353bc(0x3f4)]]:_0x2353bc(0x243),[_0x17381a[_0x2353bc(0x202)]]:_0x2353bc(0x4f2)};function wa({disabled:_0x3654,fields:_0x4a45a4,filter:_0x3e073d,onChange:_0x32785d}){const _0x3436b1=_0x2353bc;let _0x52acdc=_0x39b411(_0x5cd3ee),_0x55a72a=(_0x3e073d==null?void 0x0:_0x3e073d[_0x3436b1(0x1b8)])??[];return _0x55a72a[_0x3436b1(0x4da)]?_0x4dabb7(_0x3436b1(0x442),{'className':_0x3436b1(0x417),'children':_0x55a72a[_0x3436b1(0x3ff)]((_0x1fcc3c,_0x5c2911)=>{const _0x4fe261=_0x3436b1;let _0x36da24=_0x4a45a4[_0x4fe261(0x397)](_0x461e08=>_0x461e08['id']===_0x1fcc3c[_0x4fe261(0x43d)]);return _0x2b00c1(_0x4fe261(0x442),{'className':_0x4fe261(0x426),'children':[_0x2b00c1(_0x4fe261(0x442),{'className':_0x4fe261(0x21c),'children':[_0x4dabb7(_0x4fe261(0x3ec),{'className':_0x4fe261(0x2fc),'children':(_0x36da24==null?void 0x0:_0x36da24[_0x4fe261(0x329)])??_0x1fcc3c[_0x4fe261(0x43d)]}),_0x4dabb7('span',{'className':_0x4fe261(0x34f),'children':_0x52acdc['t'](Ca[_0x1fcc3c[_0x4fe261(0x510)]])})]}),Ma(_0x1fcc3c['operator'])&&_0x4dabb7(Ea,{'disabled':_0x3654,'field':_0x36da24,'value':_0x1fcc3c[_0x4fe261(0x37d)],'onChange':_0x11c71e=>_0x32785d(ka(_0x3e073d,_0x5c2911,{'operand':_0x11c71e}))})]},Fa(_0x55a72a,_0x1fcc3c,_0x5c2911));})}):_0x2b00c1(_0x3436b1(0x442),{'className':_0x3436b1(0x1f2),'children':[_0x4dabb7(_0x425726,{'className':'univer-mx-auto\x20univer-size-6'}),_0x4dabb7('span',{'className':_0x3436b1(0x3b3),'children':_0x52acdc['t'](_0x3436b1(0x396))})]});}function Ta({fields:_0x1f4c36,filter:_0x38d581,onChange:_0x3224c7,onClear:_0x31186a}){const _0x57697b=_0x2353bc;let _0x34beba=_0x39b411(_0x5cd3ee),_0x4457b1=(_0x38d581==null?void 0x0:_0x38d581[_0x57697b(0x1b8)])??[];return _0x2b00c1(_0x57697b(0x442),{'data-dashboard-filter-inspector':!0x0,'className':'univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','children':[_0x4457b1['map']((_0xf7d128,_0x1c679d)=>{const _0x2e518a=_0x57697b;let _0x15de43=_0x1f4c36[_0x2e518a(0x397)](_0x24be71=>_0x24be71['id']===_0xf7d128[_0x2e518a(0x43d)])??_0x1f4c36[0x0],_0xb70ce5=Aa(_0x15de43);return _0x2b00c1(_0x2e518a(0x482),{'className':_0x2e518a(0x1b2),'children':[_0x2b00c1(_0x2e518a(0x442),{'className':_0x2e518a(0x4b7),'children':[_0x4dabb7(_0xce6b1b,{'value':_0xf7d128[_0x2e518a(0x43d)],'options':_0x1f4c36[_0x2e518a(0x3ff)](_0x3f37d8=>({'value':_0x3f37d8['id'],'label':_0x3f37d8['name']})),'onChange':_0x90bc09=>{const _0x2d75fe=_0x2e518a;let _0x5ecfc8=_0x1f4c36[_0x2d75fe(0x397)](_0x2a7361=>_0x2a7361['id']===_0x90bc09);if(!_0x5ecfc8)return;let _0x30ae90=Aa(_0x5ecfc8)[0x0];_0x3224c7(ka(_0x38d581,_0x1c679d,Oa(_0x5ecfc8,_0x30ae90)));}}),_0x4dabb7(_0x1b3e3b,{'type':_0x2e518a(0x228),'variant':_0x2e518a(0x452),'aria-label':_0x34beba['t']('bases-dashboard-ui.dashboardInspector.delete'),'className':_0x2e518a(0x471),'onClick':()=>_0x3224c7(Da(_0x38d581,_0x4457b1[_0x2e518a(0x1b3)]((_0x40bdd2,_0x29ff3c)=>_0x29ff3c!==_0x1c679d))),'children':_0x4dabb7(_0x122a02,{})})]}),_0x4dabb7(_0xce6b1b,{'value':_0xf7d128[_0x2e518a(0x510)],'options':_0xb70ce5[_0x2e518a(0x3ff)](_0x2fbb12=>({'value':_0x2fbb12,'label':_0x34beba['t'](Ca[_0x2fbb12])})),'onChange':_0x48a373=>{const _0xa85f3d=_0x2e518a;let _0x3e6bbb=_0xb70ce5[_0xa85f3d(0x397)](_0x5aa635=>_0x5aa635===_0x48a373);_0x3e6bbb&&_0x3224c7(ka(_0x38d581,_0x1c679d,{'operator':_0x3e6bbb,'operand':ja(_0x15de43)}));}}),Ma(_0xf7d128[_0x2e518a(0x510)])&&_0x4dabb7(Ea,{'field':_0x15de43,'value':_0xf7d128[_0x2e518a(0x37d)],'onChange':_0x3bf0d9=>_0x3224c7(ka(_0x38d581,_0x1c679d,{'operand':_0x3bf0d9}))})]},Fa(_0x4457b1,_0xf7d128,_0x1c679d));}),_0x2b00c1(_0x1b3e3b,{'type':_0x57697b(0x228),'variant':'text','className':_0x57697b(0x332),'disabled':!_0x1f4c36['length'],'onClick':()=>{let _0x1de638=_0x1f4c36[0x0];if(!_0x1de638)return;let _0x32b1eb=Aa(_0x1de638)[0x0];_0x3224c7(Da(_0x38d581,[..._0x4457b1,Oa(_0x1de638,_0x32b1eb)]));},'children':[_0x4dabb7(_0x5155a3,{}),_0x34beba['t'](_0x57697b(0x25c))]}),_0x4457b1[_0x57697b(0x4da)]>0x0&&_0x4dabb7(_0x1b3e3b,{'type':'button','variant':_0x57697b(0x452),'className':_0x57697b(0x1b5),'onClick':_0x31186a,'children':_0x34beba['t'](_0x57697b(0x46f))})]});}function Ea({disabled:_0x413fae,field:_0x14a3b4,onChange:_0x28cc85,value:_0x4c2e62}){const _0x3090aa=_0x2353bc;let _0x3d4762=_0x39b411(_0x5cd3ee),_0x38d941=_0x14a3b4==null?void 0x0:_0x14a3b4[_0x3090aa(0x393)];if(_0x38d941===_0x557eea[_0x3090aa(0x205)]){let _0x36452e=_0x4c2e62===!0x0||_0x4c2e62===_0x3090aa(0x1d5);return _0x2b00c1(_0x1b3e3b,{'type':_0x3090aa(0x228),'variant':_0x3090aa(0x431),'disabled':_0x413fae,'className':_0x3090aa(0x2d7),'onClick':()=>_0x28cc85(!_0x36452e),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x36452e,'disabled':_0x413fae,'onChange':()=>void 0x0}),_0x36452e?_0x3d4762['t'](_0x3090aa(0x3e7)):_0x3d4762['t'](_0x3090aa(0x216))]});}return Ia(_0x38d941)?_0x413fae?_0x4dabb7(_0x1b3e3b,{'type':_0x3090aa(0x228),'variant':_0x3090aa(0x431),'className':_0x3090aa(0x1b5),'disabled':!0x0,'children':_0x22c7cc(_0x4c2e62==null||_0x4c2e62===''?void 0x0:String(_0x4c2e62))[_0x3090aa(0x347)]('YYYY-MM-DD')}):_0x4dabb7(_0x1596d0,{'className':_0x3090aa(0x1b5),'value':_0x22c7cc(_0x4c2e62==null||_0x4c2e62===''?void 0x0:String(_0x4c2e62))[_0x3090aa(0x4f8)](),'onValueChange':_0x45c716=>_0x28cc85(_0x22c7cc(_0x45c716)[_0x3090aa(0x347)](_0x3090aa(0x232)))}):Ra(_0x14a3b4)?_0x4dabb7(_0x3ab7df,{'className':_0x3090aa(0x1b5),'disabled':_0x413fae,'value':Array['isArray'](_0x4c2e62)?_0x4c2e62[_0x3090aa(0x3ff)](String):[],'options':Na(_0x14a3b4),'onChange':_0x28cc85}):_0x38d941===_0x557eea[_0x3090aa(0x2f9)]||_0x38d941===_0x557eea[_0x3090aa(0x3be)]||_0x38d941===_0x557eea[_0x3090aa(0x4d7)]?_0x4dabb7(_0xce6b1b,{'className':_0x3090aa(0x1b5),'disabled':_0x413fae,'value':String(_0x4c2e62??''),'options':[{'value':'','label':_0x3d4762['t'](_0x3090aa(0x39d))},...Na(_0x14a3b4)],'onChange':_0x28cc85}):La(_0x38d941)?_0x4dabb7(_0x1c2086,{'className':_0x3090aa(0x1b5),'allowEmpty':!0x0,'disabled':_0x413fae,'value':Number[_0x3090aa(0x4a4)](Number(_0x4c2e62))?Number(_0x4c2e62):null,'onChange':_0x5021f3=>_0x28cc85(_0x5021f3??'')}):_0x4dabb7(_0x2c53ee,{'disabled':_0x413fae,'value':String(_0x4c2e62??''),'placeholder':_0x3d4762['t'](_0x3090aa(0x4b9)),'onChange':_0x28cc85});}function Da(_0x182c27,_0x102198){const _0x4cd6a4=_0x2353bc;return{'conjunction':(_0x182c27==null?void 0x0:_0x182c27[_0x4cd6a4(0x3d9)])??_0xf09c6[_0x4cd6a4(0x27f)],'conditions':_0x102198};}function Oa(_0xe91191,_0x299177){return Ma(_0x299177)?{'fieldId':_0xe91191['id'],'operator':_0x299177,'operand':ja(_0xe91191)}:{'fieldId':_0xe91191['id'],'operator':_0x299177};}function ka(_0x111487,_0x43ce78,_0xcc7b4f){const _0x131be9=_0x2353bc;return Da(_0x111487,((_0x111487==null?void 0x0:_0x111487[_0x131be9(0x1b8)])??[])[_0x131be9(0x3ff)]((_0x31f8fc,_0x577e57)=>_0x577e57===_0x43ce78?{..._0x31f8fc,..._0xcc7b4f}:_0x31f8fc));}function Aa(_0x3f36c){const _0x11cf24=_0x2353bc;let _0x4b37c3=[_0x17381a[_0x11cf24(0x2b3)],_0x17381a['IS_NOT_EMPTY']];switch(_0x3f36c==null?void 0x0:_0x3f36c[_0x11cf24(0x393)]){case _0x557eea[_0x11cf24(0x416)]:case _0x557eea[_0x11cf24(0x321)]:case _0x557eea['Progress']:case _0x557eea[_0x11cf24(0x42a)]:return[_0x17381a['IS'],_0x17381a[_0x11cf24(0x1d2)],_0x17381a['GREATER_THAN'],_0x17381a[_0x11cf24(0x36d)],..._0x4b37c3];case _0x557eea[_0x11cf24(0x4e7)]:case _0x557eea[_0x11cf24(0x2fa)]:case _0x557eea[_0x11cf24(0x4a2)]:return[_0x17381a['IS'],_0x17381a[_0x11cf24(0x1d2)],_0x17381a[_0x11cf24(0x3f4)],_0x17381a[_0x11cf24(0x202)],..._0x4b37c3];case _0x557eea[_0x11cf24(0x205)]:return[_0x17381a['IS'],_0x17381a['IS_NOT']];default:return[_0x17381a['IS'],_0x17381a[_0x11cf24(0x1d2)],_0x17381a[_0x11cf24(0x35c)],_0x17381a[_0x11cf24(0x40d)],..._0x4b37c3];}}function ja(_0x3e591b){const _0x4635ae=_0x2353bc;return _0x3e591b?_0x3e591b['type']===_0x557eea['Checkbox']?!0x1:Ia(_0x3e591b[_0x4635ae(0x393)])?_0x22c7cc()[_0x4635ae(0x347)](_0x4635ae(0x232)):Ra(_0x3e591b)?[]:'':'';}function Ma(_0x3576cd){const _0x14c98f=_0x2353bc;return _0x3576cd!==_0x17381a[_0x14c98f(0x2b3)]&&_0x3576cd!==_0x17381a[_0x14c98f(0x375)];}function Na(_0xa7050d){const _0x6d9db=_0x2353bc;var _0x26d601;return(Array['isArray'](_0xa7050d==null||(_0x26d601=_0xa7050d[_0x6d9db(0x4e8)])==null?void 0x0:_0x26d601['options'])?_0xa7050d['config'][_0x6d9db(0x320)]:[])[_0x6d9db(0x3ff)]((_0x44f612,_0x28d9cd)=>{const _0x3ae553=_0x6d9db;if(typeof _0x44f612==_0x3ae553(0x4ff))return{'label':_0x44f612,'value':_0x44f612};if(!Pa(_0x44f612))return{'label':String(_0x28d9cd+0x1),'value':String(_0x28d9cd+0x1)};let _0x532423=_0x44f612,_0x390c96=String(_0x532423[_0x3ae553(0x329)]??_0x532423['id']??_0x28d9cd+0x1),_0x2cb6cb=String(_0x532423['id']??_0x390c96);return{'label':_0x390c96,'value':/^opt-\d+$/[_0x3ae553(0x41e)](_0x2cb6cb)?_0x390c96:_0x2cb6cb};});}function Pa(_0x3d6142){const _0x17f520=_0x2353bc;return typeof _0x3d6142==_0x17f520(0x43c)&&!!_0x3d6142;}function Fa(_0x42564f,_0x324197,_0x45832f){const _0x36adf7=_0x2353bc;let _0x3104b2=JSON['stringify'](_0x324197);return _0x3104b2+'-'+_0x42564f[_0x36adf7(0x35d)](0x0,_0x45832f)[_0x36adf7(0x1b3)](_0x511f23=>JSON[_0x36adf7(0x492)](_0x511f23)===_0x3104b2)['length'];}function Ia(_0x2d2da9){const _0x108f7d=_0x2353bc;return _0x2d2da9===_0x557eea['Date']||_0x2d2da9===_0x557eea[_0x108f7d(0x2fa)]||_0x2d2da9===_0x557eea[_0x108f7d(0x4a2)];}function La(_0x2e12ff){const _0x187558=_0x2353bc;return _0x2e12ff===_0x557eea[_0x187558(0x416)]||_0x2e12ff===_0x557eea[_0x187558(0x321)]||_0x2e12ff===_0x557eea[_0x187558(0x3c5)]||_0x2e12ff===_0x557eea[_0x187558(0x42a)];}function Ra(_0x4d0b06){const _0x1dd369=_0x2353bc;var _0x1c5d3c;return(_0x4d0b06==null?void 0x0:_0x4d0b06[_0x1dd369(0x393)])===_0x557eea[_0x1dd369(0x1f6)]||(_0x4d0b06==null?void 0x0:_0x4d0b06['type'])===_0x557eea['Group']||(_0x4d0b06==null?void 0x0:_0x4d0b06[_0x1dd369(0x393)])===_0x557eea['Person']&&((_0x1c5d3c=_0x4d0b06[_0x1dd369(0x4e8)])==null?void 0x0:_0x1c5d3c[_0x1dd369(0x354)])===!0x0;}function za({base:_0xf720d,chartRuntime:_0x3c3484,onChange:_0xc7c89d,onClose:_0x45e503,onSelectBackgroundImage:_0x4d1e5b,onSelectImage:_0xd81de1,unitId:_0x1835b4,widget:_0x122dfe}){const _0x154dce=_0x2353bc;let _0x1cd4e4=_0x39b411(_0x32452d),_0xe26cac=_0x39b411(_0x5cd3ee),_0x57635a=_0xf720d[_0x154dce(0x3f5)](),_0x102423=_0x154dce(0x475)in _0x122dfe?_0x57635a[_0x154dce(0x39c)][_0x122dfe[_0x154dce(0x475)]]:void 0x0,_0x5d600a=_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x3a3)]?_0x102423==null?void 0x0:_0x102423[_0x154dce(0x451)][_0x122dfe[_0x154dce(0x399)]]:void 0x0,_0x2b4747=_0xe26cac['t'](Ka(_0x122dfe));return _0x2b00c1(_0x154dce(0x2b6),{'data-dashboard-inspector':!0x0,'className':_0x154dce(0x459),'children':[_0x2b00c1(_0x154dce(0x36a),{'className':'univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-px-4\x20dark:!univer-border-gray-700','children':[_0x4dabb7('h3',{'className':_0x154dce(0x385),'children':_0x2b4747}),_0x4dabb7(_0x1b3e3b,{'type':_0x154dce(0x228),'size':_0x154dce(0x432),'variant':_0x154dce(0x452),'aria-label':_0xe26cac['t']('bases-dashboard-ui.dashboardInspector.close'),'onClick':_0x45e503,'children':_0x4dabb7(_0x122a02,{})})]}),_0x122dfe['type']===_0x342116[_0x154dce(0x3a3)]&&(Ga(_0x5d600a)&&_0x3c3484?_0x4dabb7(va,{'runtime':_0x3c3484,'sourceChart':_0x5d600a[_0x154dce(0x4e8)]['chart'],'sourceName':((_0x102423==null?void 0x0:_0x102423['name'])??'')+'\x20/\x20'+_0x5d600a[_0x154dce(0x329)],'widget':_0x122dfe,'onChange':_0xc7c89d,'onEditData':()=>{const _0x56c876=_0x154dce;_0x1cd4e4[_0x56c876(0x1ff)](_0x9b2833['id'],{'unitId':_0x1835b4,'tableId':_0x122dfe[_0x56c876(0x475)],'viewId':_0x122dfe[_0x56c876(0x399)]})[_0x56c876(0x3d2)](()=>void 0x0);}}):_0x4dabb7(Ua,{'message':Ga(_0x5d600a)?_0xe26cac['t'](_0x154dce(0x2aa)):_0xe26cac['t'](_0x154dce(0x3d7))})),_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x36e)]&&_0x4dabb7(xa,{'base':_0xf720d,'widget':_0x122dfe,'onChange':_0xc7c89d,'onSelectBackgroundImage':_0x4d1e5b}),_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x296)]&&_0x4dabb7(Va,{'base':_0xf720d,'onChange':_0xc7c89d,'widget':_0x122dfe}),_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x298)]&&_0x4dabb7(Ha,{'onChange':_0xc7c89d,'widget':_0x122dfe}),_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x4ae)]&&_0x4dabb7(Ba,{'onChange':_0xc7c89d,'onSelectImage':_0xd81de1,'widget':_0x122dfe})]});}function Ba({onChange:_0x5d016f,onSelectImage:_0xd39f12,widget:_0x50cef5}){const _0x387501=_0x2353bc;let _0x2dfdfb=_0x39b411(_0x5cd3ee);return _0x2b00c1(_0x387501(0x442),{'className':'univer-grid\x20univer-gap-4\x20univer-p-4','children':[_0x2b00c1(_0x1b3e3b,{'className':_0x387501(0x1b5),'onClick':()=>_0xd39f12()['then'](_0x14399c=>_0x14399c&&_0x5d016f({..._0x50cef5,'source':_0x14399c['source'],'sourceType':_0x14399c['sourceType'],'alt':_0x14399c[_0x387501(0x329)]}))[_0x387501(0x3d2)](()=>void 0x0),'children':[_0x4dabb7(_0x5155a3,{}),_0x2dfdfb['t'](_0x387501(0x256))]}),_0x2b00c1('label',{'className':_0x387501(0x3d0),'children':[_0x4dabb7(_0x387501(0x3ec),{'children':_0x2dfdfb['t'](_0x387501(0x267))}),_0x4dabb7(_0x116fe9,{'items':[{'value':_0x387501(0x3d5),'label':_0x2dfdfb['t'](_0x387501(0x2e7))},{'value':_0x387501(0x42b),'label':_0x2dfdfb['t'](_0x387501(0x392))},{'value':_0x387501(0x2bc),'label':_0x2dfdfb['t'](_0x387501(0x260))}],'value':_0x50cef5['displayMode']??_0x387501(0x3d5),'onChange':_0x171bc0=>_0x5d016f({..._0x50cef5,'displayMode':_0x171bc0})[_0x387501(0x3d2)](()=>void 0x0)})]})]});}function Va({base:_0x1be224,onChange:_0x53e616,widget:_0x53bf31}){const _0x5c1d04=_0x2353bc;let _0x1fbc38=_0x1be224['getSnapshot']()[_0x5c1d04(0x39c)][_0x53bf31['tableId']],_0x3d955b=_0x1fbc38==null?void 0x0:_0x1fbc38[_0x5c1d04(0x411)][_0x5c1d04(0x397)](_0x37b84f=>_0x1fbc38[_0x5c1d04(0x451)][_0x37b84f]),_0x277a23=_0x3d955b?_0x1fbc38==null?void 0x0:_0x1fbc38[_0x5c1d04(0x451)][_0x3d955b]:void 0x0,_0x56c4f0=_0x1fbc38&&_0x277a23?_0x5249f3(_0x1fbc38,_0x277a23):[];return _0x4dabb7(Ta,{'fields':_0x56c4f0,'filter':_0x53bf31[_0x5c1d04(0x1b3)],'onChange':_0x43e1b9=>_0x53e616({..._0x53bf31,'filter':_0x43e1b9})[_0x5c1d04(0x3d2)](()=>void 0x0),'onClear':()=>_0x53e616({..._0x53bf31,'filter':null})['catch'](()=>void 0x0)});}function Ha({onChange:_0x146b24,widget:_0x21c2c2}){const _0x40fc8c=_0x2353bc;let _0x2c9efe=_0x39b411(_0x5cd3ee),_0x352785=_0x39b411(_0x277079),_0x4b118f=_0x499abf(()=>_0x352785[_0x40fc8c(0x227)],_0x352785['getCurrentTheme'](),!0x1,[_0x352785]),_0x5c8e3d=Br(_0x21c2c2),_0x368ad9=_0x243cbf=>_0x146b24({..._0x21c2c2,'appearance':{..._0x5c8e3d,..._0x243cbf}})[_0x40fc8c(0x3d2)](()=>void 0x0);return _0x2b00c1(_0x40fc8c(0x442),{'className':_0x40fc8c(0x4b8),'children':[_0x4dabb7(_0x136f1a,{'defaultValue':Vr(_0x21c2c2[_0x40fc8c(0x4d6)]),'rows':0x8,'onBlur':_0x34e6d4=>_0x146b24({..._0x21c2c2,'document':Hr(_0x21c2c2['document'],_0x34e6d4[_0x40fc8c(0x344)][_0x40fc8c(0x284)])})['catch'](()=>void 0x0)}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x4b118f[_0x40fc8c(0x433)][0x0],'resetLabel':_0x2c9efe['t'](_0x40fc8c(0x449)),'value':_0x5c8e3d[_0x40fc8c(0x394)]??null,'onChange':_0x52bdd2=>_0x368ad9({'backgroundColor':_0x52bdd2??void 0x0})}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x2c9efe['t'](_0x40fc8c(0x21a)),'label':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x4b118f[_0x40fc8c(0x433)][0x3e8],'resetLabel':_0x2c9efe['t'](_0x40fc8c(0x449)),'value':_0x5c8e3d[_0x40fc8c(0x204)]??null,'onChange':_0x2d12b0=>_0x368ad9({'textColor':_0x2d12b0??void 0x0})}),_0x4dabb7(Wa,{'label':_0x2c9efe['t'](_0x40fc8c(0x3cf)),'children':_0x4dabb7(_0x116fe9,{'items':[{'value':'left','label':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':'center','label':_0x2c9efe['t'](_0x40fc8c(0x237))},{'value':_0x40fc8c(0x214),'label':_0x2c9efe['t'](_0x40fc8c(0x1fd))}],'value':_0x5c8e3d['alignment'],'onChange':_0x207232=>_0x368ad9({'alignment':_0x207232})})}),_0x2b00c1(Wa,{'label':_0x2c9efe['t'](_0x40fc8c(0x219)),'children':[_0x4dabb7(_0x116fe9,{'items':[{'value':_0x40fc8c(0x3b6),'label':_0x2c9efe['t'](_0x40fc8c(0x29b))},{'value':_0x40fc8c(0x509),'label':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x5c8e3d[_0x40fc8c(0x1e2)],'onChange':_0x4fa194=>_0x368ad9({'fontSizeMode':_0x4fa194})}),_0x5c8e3d[_0x40fc8c(0x1e2)]===_0x40fc8c(0x509)&&_0x4dabb7(_0x1c2086,{'className':_0x40fc8c(0x266),'min':0xa,'max':0x78,'value':_0x5c8e3d['fontSize'],'onChange':_0x4fb997=>_0x368ad9({'fontSize':_0x4fb997??0x12,'fontSizeMode':'custom'})})]})]});}function Ua({message:_0x21501c}){const _0x2b2d50=_0x2353bc;return _0x4dabb7(_0x2b2d50(0x442),{'className':_0x2b2d50(0x43b),'children':_0x21501c});}function Wa({children:_0x34733f,label:_0x3e8896}){const _0x1df5af=_0x2353bc;return _0x2b00c1('div',{'role':'group','aria-':!0x0,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x4dabb7(_0x1df5af(0x3ec),{'children':_0x3e8896}),_0x34733f]});}function Ga(_0x31cab9){const _0x173e08=_0x2353bc;return(_0x31cab9==null?void 0x0:_0x31cab9[_0x173e08(0x393)])===_0x5ee6b5[_0x173e08(0x49c)]&&typeof _0x31cab9[_0x173e08(0x4e8)]=='object'&&_0x31cab9[_0x173e08(0x4e8)]!==null&&_0x173e08(0x4aa)in _0x31cab9[_0x173e08(0x4e8)]&&_0x173e08(0x4d8)in _0x31cab9[_0x173e08(0x4e8)];}function Ka(_0x55f64d){const _0x3410ef=_0x2353bc;switch(_0x55f64d['type']){case _0x342116['PivotChart']:return _0x3410ef(0x350);case _0x342116['TableFilter']:return _0x3410ef(0x396);case _0x342116[_0x3410ef(0x298)]:return'bases-dashboard-ui.dashboard.text';case _0x342116['Image']:return _0x3410ef(0x293);case _0x342116[_0x3410ef(0x36e)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function qa({onDelete:_0x3c29f6,onEdit:_0x31ebb2}){const _0x1a008e=_0x2353bc;let _0x51e3af=_0x39b411(_0x5cd3ee),_0x3c5c62=_0x51e3af['t']('bases-dashboard-ui.dashboard.editWidget'),_0x335e7a=_0x51e3af['t'](_0x1a008e(0x2ef)),_0x15cc73=_0x51e3af['t'](_0x1a008e(0x1b9));return _0x4dabb7(_0x492a1e,{'items':[{'type':'item','children':_0x2b00c1(_0x1a008e(0x3ec),{'className':_0x1a008e(0x49a),'children':[_0x4dabb7(_0x392d1f,{'className':_0x1a008e(0x40e),'aria-hidden':_0x1a008e(0x1d5)}),_0x4dabb7(_0x1a008e(0x3ec),{'children':_0x3c5c62})]}),'onSelect':_0x31ebb2},{'type':_0x1a008e(0x50a)},{'type':_0x1a008e(0x423),'variant':_0x1a008e(0x4d0),'children':_0x2b00c1(_0x1a008e(0x3ec),{'className':_0x1a008e(0x49a),'children':[_0x4dabb7(_0x2d17f6,{'className':_0x1a008e(0x40e),'aria-hidden':_0x1a008e(0x1d5)}),_0x4dabb7(_0x1a008e(0x3ec),{'children':_0x335e7a})]}),'onSelect':_0x3c29f6}],'children':_0x4dabb7(_0x1b3e3b,{'type':'button','size':_0x1a008e(0x432),'variant':_0x1a008e(0x452),'title':_0x15cc73,'aria-label':_0x15cc73,'className':_0x1a008e(0x4fc),'children':_0x4dabb7(_0x27b384,{'className':_0x1a008e(0x40e),'aria-hidden':_0x1a008e(0x1d5)})})});}function Ja({dashboardId:_0x4b4b2,presentation:_0x1388b0=!0x1,unitId:_0x61af0d}){const _0x192218=_0x2353bc;let _0x32f623=_0x39b411(_0x32452d),_0x13916e=_0x39b411(_0x4d763c),_0x338ef3=_0x39b411(_0x5482b5),_0x54eed1=_0x39b411(_0x4074e5),_0x5aff02=_0x39b411(_0x5cd3ee),_0x2f9ad9=_0x39b411(_0x5e40a3),_0x374cfd=_0x39b411(_0x123793),_0x549f43=_0x35f949(null),[_0x24a903,_0x36e3b3]=_0x2be63d(!0x1),[_0x2d653c,_0x1287d3]=_0x2be63d(),[_0x5998ca,_0x4fa890]=_0x2be63d(!0x1),[_0x41df4d,_0x2b88c1]=_0x2be63d(()=>new Map()),_0x6d8894=_0xd8821d((_0x4aab6b,_0x1d86c4)=>{_0x2b88c1(_0x23c583=>{const _0x21bd02=_0x1cf6;let _0x166b33=new Map(_0x23c583);return _0x1d86c4?_0x166b33[_0x21bd02(0x401)](_0x4aab6b,_0x1d86c4):_0x166b33['delete'](_0x4aab6b),_0x166b33;});},[]),_0x2f172f=_0x499abf(()=>_0x2f9ad9[_0x192218(0x2a3)][_0x192218(0x41d)](_0x299cc9(()=>_0x2f9ad9[_0x192218(0x34a)](_0x61af0d,_0x4b4b2))),_0x2f9ad9[_0x192218(0x34a)](_0x61af0d,_0x4b4b2),!0x1,[_0x4b4b2,_0x2f9ad9,_0x61af0d]),_0x2f3771=_0x54eed1[_0x192218(0x37e)](_0x61af0d,_0x51ec78[_0x192218(0x4eb)]),_0x5af263=_0x499abf(()=>_0x374cfd[_0x192218(0x21f)],{'undos':0x0,'redos':0x0},!0x1,[_0x374cfd]),_0x1cac75=gr(_0x61af0d,_0x4b4b2);if(_0x38e78f(()=>{const _0x54eb4d=_0x192218;_0x54eed1[_0x54eb4d(0x3ce)](_0x61af0d),_0x54eed1[_0x54eb4d(0x35f)](_0x61af0d);},[_0x54eed1,_0x61af0d]),_0x38e78f(()=>{const _0x50bfee=_0x192218;let _0x196c2d=_0x549f43[_0x50bfee(0x38f)],_0x446140=_0x196c2d==null?void 0x0:_0x196c2d[_0x50bfee(0x26c)];if(!_0x196c2d||!_0x446140)return;let _0x577dd6=()=>_0x4fa890(_0x446140[_0x50bfee(0x281)]===_0x446140[_0x50bfee(0x22a)]),_0x1b9bbd=_0x35d99e=>{const _0x454197=_0x50bfee;_0x35d99e['key']===_0x454197(0x319)&&!_0x35d99e[_0x454197(0x25a)]&&_0x446140[_0x454197(0x281)]===_0x446140['documentElement']&&_0x446140[_0x454197(0x4bf)]()[_0x454197(0x3d2)](_0x577dd6);};return _0x446140[_0x50bfee(0x1d1)]('fullscreenchange',_0x577dd6),_0x446140['addEventListener']('keydown',_0x1b9bbd),()=>{const _0x4f1dd8=_0x50bfee;_0x446140['removeEventListener'](_0x4f1dd8(0x33d),_0x577dd6),_0x446140[_0x4f1dd8(0x27d)](_0x4f1dd8(0x4d1),_0x1b9bbd);};},[]),!_0x2f172f||!_0x2f3771)return null;let _0x4c0942=_0x3cf6e3=>_0x32f623[_0x192218(0x1ff)](_0x2b3367['id'],{'unitId':_0x61af0d,'dashboardId':_0x4b4b2,'widget':_0x3cf6e3})[_0x192218(0x3d2)](()=>void 0x0),_0x14432d=(_0x2dfddd,_0x2b3604,_0x5251ed)=>{const _0x15836e=_0x192218;let _0x426bdf=Math[_0x15836e(0x2eb)](0x0,..._0x2f172f[_0x15836e(0x362)][_0x15836e(0x3bc)](_0x420380=>{const _0x1c52d8=_0x15836e;var _0x3836d5;let _0x16bf67=(_0x3836d5=_0x2f172f['widgets'][_0x420380])==null?void 0x0:_0x3836d5[_0x1c52d8(0x439)];return _0x16bf67?[_0x16bf67['row']+_0x16bf67[_0x1c52d8(0x4b4)]]:[];})),_0x516f0f=_0x15836e(0x4a9)+_0x325e5d(0x8),_0x20326f={'column':0x0,'row':_0x426bdf,'columnSpan':_0x2b3604,'rowSpan':_0x5251ed};switch(_0x2dfddd[_0x15836e(0x393)]){case _0x342116[_0x15836e(0x3a3)]:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});case _0x342116[_0x15836e(0x296)]:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});case _0x342116['Text']:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});case _0x342116[_0x15836e(0x4ae)]:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});case _0x342116['FormulaShape']:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});}},_0x5e6da4=_0x2f3771['getSnapshot'](),_0x29518a=_0x5e6da4[_0x192218(0x1e5)]['flatMap'](_0x4d3b93=>{const _0x3f2ee4=_0x192218;let _0x47bed7=_0x5e6da4[_0x3f2ee4(0x39c)][_0x4d3b93];if(!_0x47bed7)return[];let _0x4e45c1=_0x47bed7[_0x3f2ee4(0x411)][_0x3f2ee4(0x3bc)](_0x18b868=>{const _0x1b8569=_0x3f2ee4;let _0x181dc8=_0x47bed7['views'][_0x18b868];return no(_0x181dc8)?[{'type':_0x1b8569(0x423),'children':_0x181dc8[_0x1b8569(0x329)],'onSelect':()=>_0x14432d({'type':_0x342116['PivotChart'],'tableId':_0x4d3b93,'pivotViewId':_0x18b868,'chart':{..._0x181dc8[_0x1b8569(0x4e8)][_0x1b8569(0x4d8)]}},0x6,0xa)}]:[];});return[{'type':_0x3f2ee4(0x429),'children':_0x47bed7['name'],'options':[..._0x4e45c1,..._0x4e45c1['length']?[{'type':'separator'}]:[],{'type':_0x3f2ee4(0x423),'children':_0x5aff02['t'](_0x3f2ee4(0x396)),'onSelect':()=>_0x14432d({'type':_0x342116[_0x3f2ee4(0x296)],'tableId':_0x4d3b93,'filter':null},0x6,0x8)}]}];}),_0x4c0e08=[..._0x29518a,..._0x29518a['length']?[{'type':_0x192218(0x50a)}]:[],{'type':'item','children':_0x5aff02['t'](_0x192218(0x45f)),'onSelect':()=>_0x14432d({'type':_0x342116[_0x192218(0x298)],'document':Qa()},0x4,0x6)},{'type':_0x192218(0x423),'children':_0x5aff02['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>$a(_0x13916e)[_0x192218(0x388)](_0x3ce793=>_0x3ce793&&_0x14432d({'type':_0x342116[_0x192218(0x4ae)],'source':_0x3ce793['source'],'sourceType':_0x3ce793[_0x192218(0x4b3)],'alt':_0x3ce793['name'],'displayMode':'cover'},0x4,0x6))},{'type':'item','children':_0x5aff02['t'](_0x192218(0x268)),'onSelect':()=>{const _0x50183=_0x192218;let _0x530941=_0x5e6da4[_0x50183(0x1e5)][_0x50183(0x397)](_0x3ca033=>_0x5e6da4[_0x50183(0x39c)][_0x3ca033]);_0x530941&&_0x14432d({'type':_0x342116['FormulaShape'],'tableId':_0x530941,'shapeType':_0x4387d7[_0x50183(0x3a7)],'shapeData':_0x11d1a1(),'description':_0x5aff02['t'](_0x50183(0x268))},0x4,0x6);}}],_0x5a4756=_0x2d653c?_0x2f172f[_0x192218(0x4e1)][_0x2d653c]:void 0x0,_0x17b497=async()=>{const _0x33d1a0=_0x192218;let _0x5de661=_0x549f43[_0x33d1a0(0x38f)];if(!_0x5de661)return;let _0x14db51=_0x5de661[_0x33d1a0(0x26c)];if(_0x14db51[_0x33d1a0(0x281)]===_0x14db51[_0x33d1a0(0x22a)]){await _0x14db51[_0x33d1a0(0x4bf)]();return;}await _0x14db51[_0x33d1a0(0x22a)][_0x33d1a0(0x3ba)]();},_0x3be869=_0x1388b0||_0x5998ca,_0x289805=_0x1cac75&&!_0x3be869;return _0x2b00c1(_0x192218(0x442),{'ref':_0x549f43,'className':_0x192218(0x1ab)+(_0x5998ca?_0x192218(0x369):'univer-relative\x20univer-z-10')+_0x192218(0x3ae),'children':[!_0x3be869&&_0x2b00c1('header',{'className':_0x192218(0x415),'children':[_0x4dabb7(_0x433eb4,{'className':_0x192218(0x1bd)}),_0x4dabb7('h2',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0x2f172f['name']}),_0x4dabb7(_0x468217,{'target':{'unitId':_0x61af0d,'objectId':_0x275cd2(_0x4b4b2),'objectType':_0x4f7ac1[_0x192218(0x4d9)]},'name':_0x2f172f[_0x192218(0x329)],'commandId':_0x42d2ec['id'],'exists':()=>!!_0x2f9ad9['getDashboard'](_0x61af0d,_0x4b4b2)},_0x61af0d+'/'+_0x4b4b2),_0x4dabb7(_0xf8bfea,{'unitId':_0x61af0d}),_0x4dabb7(_0x1b3e3b,{'type':_0x192218(0x228),'size':_0x192218(0x432),'variant':'text','aria-label':_0x5aff02['t'](_0x192218(0x4ee)),'disabled':!_0x1cac75||_0x5af263[_0x192218(0x1fa)]===0x0,'onClick':()=>_0x32f623[_0x192218(0x1ff)](_0x4170dd['id'])[_0x192218(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x4f90a3,{})}),_0x4dabb7(_0x1b3e3b,{'type':_0x192218(0x228),'size':_0x192218(0x432),'variant':'text','aria-label':_0x5aff02['t'](_0x192218(0x1c8)),'disabled':!_0x1cac75||_0x5af263[_0x192218(0x2ce)]===0x0,'onClick':()=>_0x32f623[_0x192218(0x1ff)](_0x8d3b46['id'])[_0x192218(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x44a42f,{})}),_0x4dabb7(_0x1b3e3b,{'type':'button','size':_0x192218(0x432),'variant':_0x192218(0x452),'aria-label':_0x5aff02['t'](_0x192218(0x288)),'onClick':()=>_0x17b497()[_0x192218(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x54cca2,{})}),_0x4dabb7(_0x492a1e,{'items':_0x4c0e08,'children':_0x2b00c1(_0x1b3e3b,{'variant':_0x192218(0x37f),'disabled':!_0x1cac75,'children':[_0x4dabb7(_0x5155a3,{}),_0x5aff02['t'](_0x192218(0x4b0))]})})]}),_0x2b00c1(_0x192218(0x442),{'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1','children':[_0x4dabb7(_0x192218(0x442),{'className':_0x192218(0x290),'children':_0x4dabb7(la,{'dashboard':_0x2f172f,'dragLabel':_0x5aff02['t'](_0x192218(0x32c)),'editable':_0x289805,'resizeLabel':_0x5aff02['t'](_0x192218(0x398)),'widgetLabel':_0x229786=>_0x5aff02['t'](to(_0x229786[_0x192218(0x393)])),'selectedWidgetId':_0x289805?_0x2d653c:void 0x0,'onSelectWidget':_0x289805?_0x37c04b=>{_0x1287d3(_0x37c04b),_0x37c04b||_0x36e3b3(!0x1);}:void 0x0,'onLayoutsCommit':_0x44eeb7=>{const _0x449b7b=_0x192218;let _0xd6b521={..._0x2f172f[_0x449b7b(0x4e1)]};_0x44eeb7[_0x449b7b(0x3c0)]((_0x3d7e54,_0x4a2a62)=>{let _0x3cf33d=_0xd6b521[_0x4a2a62];_0x3cf33d&&(_0xd6b521[_0x4a2a62]={..._0x3cf33d,'layout':_0x3d7e54});}),_0x32f623[_0x449b7b(0x1ff)](_0x5cbeb4['id'],{'unitId':_0x61af0d,'dashboard':{..._0x2f172f,'widgets':_0xd6b521}})[_0x449b7b(0x3d2)](()=>void 0x0);},'renderWidget':_0x23d73c=>_0x4dabb7(Ya,{'base':_0x2f3771,'dashboard':_0x2f172f,'unitId':_0x61af0d,'widget':_0x23d73c,'onChange':_0x4c0942,'onChartRuntimeChange':_0x6d8894}),'renderWidgetActions':_0x57046d=>_0x4dabb7(qa,{'onEdit':()=>{_0x1287d3(_0x57046d['id']),_0x36e3b3(!0x0);},'onDelete':()=>{const _0x5cb3a8=_0x192218;_0x2d653c===_0x57046d['id']&&(_0x1287d3(void 0x0),_0x36e3b3(!0x1)),_0x32f623[_0x5cb3a8(0x1ff)](_0x20648d['id'],{'unitId':_0x61af0d,'dashboardId':_0x4b4b2,'widgetId':_0x57046d['id']})[_0x5cb3a8(0x3d2)](()=>void 0x0);}})})}),_0x289805&&_0x24a903&&_0x5a4756&&_0x4dabb7(za,{'base':_0x2f3771,'chartRuntime':_0x41df4d['get'](_0x5a4756['id']),'unitId':_0x61af0d,'widget':_0x5a4756,'onChange':_0x4c0942,'onClose':()=>_0x36e3b3(!0x1),'onSelectBackgroundImage':()=>eo(_0x338ef3),'onSelectImage':()=>$a(_0x13916e)})]})]});}function Ya({base:_0x2aebc1,dashboard:_0xb70bd7,onChange:_0x99c138,onChartRuntimeChange:_0x204ec8,unitId:_0x4782c6,widget:_0x56588c}){const _0x42fc9c=_0x2353bc;let _0x23d631=_0x56a185(()=>_0xb70bd7[_0x42fc9c(0x362)][_0x42fc9c(0x3bc)](_0x12960f=>{const _0x38f07f=_0x42fc9c;let _0x4db1c4=_0xb70bd7[_0x38f07f(0x4e1)][_0x12960f];return(_0x4db1c4==null?void 0x0:_0x4db1c4[_0x38f07f(0x393)])===_0x342116['TableFilter']&&_0x4db1c4[_0x38f07f(0x475)]===('tableId'in _0x56588c?_0x56588c[_0x38f07f(0x475)]:'')&&_0x4db1c4[_0x38f07f(0x1b3)]?[_0x4db1c4[_0x38f07f(0x1b3)]]:[];}),[_0xb70bd7,_0x56588c]);switch(_0x56588c[_0x42fc9c(0x393)]){case _0x342116['PivotChart']:return _0x4dabb7(Lr,{'filters':_0x23d631,'unitId':_0x4782c6,'widget':_0x56588c,'onRuntimeChange':_0x204ec8});case _0x342116['TableFilter']:return _0x4dabb7(wa,{'fields':Xa(_0x2aebc1,_0x56588c[_0x42fc9c(0x475)]),'filter':_0x56588c['filter'],'onChange':_0x3bbb8e=>_0x99c138({..._0x56588c,'filter':_0x3bbb8e})['catch'](()=>void 0x0)});case _0x342116[_0x42fc9c(0x298)]:return _0x4dabb7(Ur,{'widget':_0x56588c});case _0x342116[_0x42fc9c(0x4ae)]:return _0x4dabb7(Za,{'widget':_0x56588c});case _0x342116[_0x42fc9c(0x36e)]:return _0x4dabb7(Dr,{'dashboardId':_0xb70bd7['id'],'unitId':_0x4782c6,'widget':_0x56588c});}}function Xa(_0x484a53,_0x2a7776){const _0x38a23e=_0x2353bc;let _0x196454=_0x484a53['getSnapshot']()[_0x38a23e(0x39c)][_0x2a7776],_0x27b8ce=_0x196454==null?void 0x0:_0x196454['viewOrder'][_0x38a23e(0x397)](_0x23f3c5=>_0x196454[_0x38a23e(0x451)][_0x23f3c5]),_0x3b65ea=_0x27b8ce?_0x196454==null?void 0x0:_0x196454[_0x38a23e(0x451)][_0x27b8ce]:void 0x0;return _0x196454&&_0x3b65ea?_0x5249f3(_0x196454,_0x3b65ea):[];}function Za({widget:_0x5bfa53}){const _0x13a110=_0x2353bc;let _0x19aef0=_0x39b411(_0x4d763c),[_0x431066,_0x256d8d]=_0x2be63d(_0x5bfa53['sourceType']===_0x26a785[_0x13a110(0x43f)]?'':_0x5bfa53[_0x13a110(0x24c)]);return _0x38e78f(()=>{const _0x2c4d59=_0x13a110;let _0x1f02b3=!0x0;return _0x19aef0[_0x2c4d59(0x4c6)](_0x5bfa53[_0x2c4d59(0x24c)],_0x5bfa53[_0x2c4d59(0x4b3)])[_0x2c4d59(0x388)](_0x44d972=>{_0x1f02b3&&_0x256d8d(_0x44d972);})[_0x2c4d59(0x3d2)](()=>void 0x0),()=>{_0x1f02b3=!0x1;};},[_0x19aef0,_0x5bfa53[_0x13a110(0x24c)],_0x5bfa53[_0x13a110(0x4b3)]]),_0x431066?_0x4dabb7(_0x13a110(0x442),{'role':_0x5bfa53['alt']?_0x13a110(0x1ed):void 0x0,'aria-label':_0x5bfa53[_0x13a110(0x3d8)]||void 0x0,'data-dashboard-image':_0x5bfa53['id'],'className':_0x13a110(0x203),'style':vr(_0x431066,_0x5bfa53[_0x13a110(0x4a6)])}):null;}function Qa(){const _0x591636=_0x2353bc;let _0x53d73c=_0x112de2(new Set());return{'id':_0x591636(0x3de)+_0x325e5d(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x53d73c}]},'documentStyle':{}};}function $a(_0xa8aecb){return new Promise(_0x4078c4=>{const _0x464b05=_0x1cf6;let _0x3fd98e=document[_0x464b05(0x3d6)](_0x464b05(0x4d3));_0x3fd98e['type']='file',_0x3fd98e[_0x464b05(0x461)]=_0x464b05(0x469),_0x3fd98e[_0x464b05(0x1d1)]('change',()=>{const _0x59c1a8=_0x464b05;var _0x40fd04;let _0xdcf2a=(_0x40fd04=_0x3fd98e[_0x59c1a8(0x438)])==null?void 0x0:_0x40fd04[0x0];if(!_0xdcf2a){_0x4078c4(null);return;}_0xa8aecb[_0x59c1a8(0x504)](_0xdcf2a)[_0x59c1a8(0x388)](_0x40b842=>{const _0x1a4b18=_0x59c1a8;if(!_0x40b842[_0x1a4b18(0x24c)]||_0x40b842['sourceType']===void 0x0){_0x4078c4(null);return;}_0x4078c4({'name':_0x40b842[_0x1a4b18(0x329)],'source':_0x40b842['source'],'sourceType':_0x40b842[_0x1a4b18(0x4b3)]});})[_0x59c1a8(0x3d2)](()=>_0x4078c4(null));},{'once':!0x0}),_0x3fd98e[_0x464b05(0x3ab)]();});}function eo(_0x363cef){return new Promise(_0x289258=>{const _0x58dcdd=_0x1cf6;let _0x53b1d1=document[_0x58dcdd(0x3d6)](_0x58dcdd(0x4d3));_0x53b1d1[_0x58dcdd(0x393)]='file',_0x53b1d1[_0x58dcdd(0x461)]=_0x58dcdd(0x469),_0x53b1d1[_0x58dcdd(0x1d1)](_0x58dcdd(0x48a),()=>{const _0x309562=_0x58dcdd;var _0x50298f;let _0x314ff0=(_0x50298f=_0x53b1d1[_0x309562(0x438)])==null?void 0x0:_0x50298f[0x0];if(!_0x314ff0){_0x289258(null);return;}_0x363cef[_0x309562(0x3dc)](_0x314ff0)['then'](_0x57b342=>{const _0x50ff60=_0x309562;if(!(_0x57b342!=null&&_0x57b342[_0x50ff60(0x24c)])){_0x289258(null);return;}if(_0x57b342[_0x50ff60(0x308)]){let _0x16604c=new Image();_0x16604c['src']=_0x57b342[_0x50ff60(0x308)],_0x363cef['addImageSourceCache'](_0x57b342['source'],_0x57b342['imageSourceType'],_0x16604c);}_0x289258({'source':_0x57b342[_0x50ff60(0x24c)],'sourceType':_0x57b342[_0x50ff60(0x23d)]});})[_0x309562(0x3d2)](()=>_0x289258(null));},{'once':!0x0}),_0x53b1d1['click']();});}function to(_0x5c1f3a){const _0x2fe032=_0x2353bc;switch(_0x5c1f3a){case _0x342116[_0x2fe032(0x3a3)]:return _0x2fe032(0x350);case _0x342116[_0x2fe032(0x296)]:return _0x2fe032(0x396);case _0x342116['Text']:return'bases-dashboard-ui.dashboard.text';case _0x342116[_0x2fe032(0x4ae)]:return _0x2fe032(0x293);case _0x342116[_0x2fe032(0x36e)]:return _0x2fe032(0x268);}}function no(_0x4fe6a8){const _0xa92f1b=_0x2353bc;return(_0x4fe6a8==null?void 0x0:_0x4fe6a8[_0xa92f1b(0x393)])===_0x5ee6b5[_0xa92f1b(0x49c)]&&typeof _0x4fe6a8[_0xa92f1b(0x4e8)]=='object'&&_0x4fe6a8[_0xa92f1b(0x4e8)]!==null&&_0xa92f1b(0x4aa)in _0x4fe6a8['config']&&_0xa92f1b(0x4d8)in _0x4fe6a8['config'];}const ro=[{'area':_0x4c815c[_0x2353bc(0x3b4)],'key':_0x2353bc(0x2e1),'label':'bases-dashboard-ui.pivot.filters'},{'area':_0x4c815c['Column'],'key':'columnFields','label':_0x2353bc(0x318)},{'area':_0x4c815c[_0x2353bc(0x456)],'key':'rowFields','label':'bases-dashboard-ui.pivot.rows'},{'area':_0x4c815c['Value'],'key':_0x2353bc(0x1f9),'label':_0x2353bc(0x326)}],io=[{'value':_0x282c8a[_0x2353bc(0x2bf)],'localeKey':_0x2353bc(0x3b2)},{'value':_0x282c8a[_0x2353bc(0x349)],'localeKey':_0x2353bc(0x29c)},{'value':_0x282c8a[_0x2353bc(0x3c8)],'localeKey':_0x2353bc(0x48c)},{'value':_0x282c8a[_0x2353bc(0x4f0)],'localeKey':_0x2353bc(0x3e4)},{'value':_0x282c8a[_0x2353bc(0x2eb)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':_0x282c8a['min'],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x282c8a[_0x2353bc(0x2d6)],'localeKey':_0x2353bc(0x44c)},{'value':_0x282c8a[_0x2353bc(0x2a7)],'localeKey':'bases-dashboard-ui.pivot.stdDev'},{'value':_0x282c8a[_0x2353bc(0x1c2)],'localeKey':_0x2353bc(0x360)},{'value':_0x282c8a[_0x2353bc(0x218)],'localeKey':_0x2353bc(0x2b9)},{'value':_0x282c8a[_0x2353bc(0x22c)],'localeKey':_0x2353bc(0x3e0)}];function ao(_0x196a6b){const _0x591c84=_0x2353bc;let {config:_0x513f87,onChange:_0x597b18,table:_0x3bc7f4}=_0x196a6b,_0x735190=_0x39b411(_0x5cd3ee),[_0x225d2b,_0x1f1cd4]=_0x2be63d('fields'),[_0x2d77e2,_0x4f81dc]=_0x2be63d(''),[_0x48e8d4,_0x2fe53d]=_0x2be63d(null),[_0x388552,_0x1c30ed]=_0x2be63d(null),[_0x4cd760,_0x44bf09]=_0x2be63d(null),[_0x58a3f4,_0x2de9ce]=_0x2be63d(null),_0xb6f816=_0x35f949(null),_0x57add6=_0x56a185(()=>_0x3bc7f4[_0x591c84(0x457)][_0x591c84(0x3bc)](_0x1c7e00=>{const _0x5d3b04=_0x591c84;let _0x32e41a=_0x3bc7f4[_0x5d3b04(0x273)][_0x1c7e00];return _0x32e41a&&_0x32e41a[_0x5d3b04(0x4de)]!==!0x0&&_0x32e41a[_0x5d3b04(0x393)]!==_0x557eea['RecordId']?[_0x32e41a]:[];})['filter'](_0x4f7368=>_0x4f7368[_0x591c84(0x329)][_0x591c84(0x49d)]()['includes'](_0x2d77e2[_0x591c84(0x3ee)]()[_0x591c84(0x49d)]())),[_0x2d77e2,_0x3bc7f4]),_0x1fed30=_0x17ea25=>{const _0x14e4ec=_0x591c84;let _0x3ff40f=_0x1c8584(_0x3bc7f4,_0x513f87[_0x14e4ec(0x4aa)]);try{_0x17ea25(_0x3ff40f),_0x597b18({'pivot':_0x3ff40f[_0x14e4ec(0x2f5)]()});}finally{_0x3ff40f[_0x14e4ec(0x2d9)]();}},_0x1b0a85=(_0x7b5351,_0x5cb9cb)=>{_0x48e8d4&&(_0x1fed30(_0x4ce258=>{const _0x4b1d81=_0x1cf6;if(_0x48e8d4[_0x4b1d81(0x29e)]==='field'){let _0x17cbb6=_0x4ce258[_0x4b1d81(0x316)](_0x48e8d4['id']),_0x332399=_0x17cbb6[_0x4b1d81(0x269)]===_0x7b5351&&_0x17cbb6[_0x4b1d81(0x32a)]<_0x5cb9cb?_0x5cb9cb-0x1:_0x5cb9cb;_0x4ce258[_0x4b1d81(0x1b0)](_0x48e8d4['id'],_0x7b5351,_0x332399);return;}mo(_0x4ce258,_0x48e8d4['id'],_0x7b5351,_0x5cb9cb);}),_0x2fe53d(null),_0x1c30ed(null));};return _0x2b00c1(_0x591c84(0x442),{'className':_0x591c84(0x301),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x735190['t'](_0x591c84(0x4a7)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x735190['t'](_0x591c84(0x2a5)),'panelId':'base-pivot-fields','value':_0x591c84(0x273)},{'label':_0x735190['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x591c84(0x27b),'value':'options'}],'value':_0x225d2b,'onChange':_0x1f1cd4}),_0x4dabb7(_0x591c84(0x442),{'ref':_0xb6f816,'className':_0x52fed8(_0x591c84(0x2fb),_0x2a22a5),'onDragOver':_0xa3e2f5=>{const _0x2ff0c8=_0x591c84;let _0x4619b9=_0xb6f816['current'];if(!_0x4619b9)return;let _0x2c1fc2=_0x4619b9[_0x2ff0c8(0x4db)]();_0xa3e2f5[_0x2ff0c8(0x408)]<_0x2c1fc2['top']+0x30?_0x4619b9['scrollTop']-=0x10:_0xa3e2f5[_0x2ff0c8(0x408)]>_0x2c1fc2[_0x2ff0c8(0x2d0)]-0x30&&(_0x4619b9['scrollTop']+=0x10);},'children':_0x225d2b===_0x591c84(0x320)?_0x4dabb7(po,{'config':_0x513f87,'commit':_0x1fed30}):_0x2b00c1(_0x591c84(0x442),{'className':_0x591c84(0x4f1),'children':[_0x2b00c1('div',{'children':[_0x4dabb7(_0x591c84(0x442),{'className':_0x591c84(0x47c),'children':_0x735190['t'](_0x591c84(0x4a8))}),_0x4dabb7(_0x2c53ee,{'allowClear':!0x0,'slot':_0x4dabb7(_0x51aac6,{}),'value':_0x2d77e2,'placeholder':_0x735190['t'](_0x591c84(0x35a)),'onChange':_0x4f81dc}),_0x4dabb7(_0x591c84(0x442),{'className':_0x591c84(0x351),'children':_0x57add6['map'](_0x54de93=>_0x4dabb7(oo,{'config':_0x513f87,'field':_0x54de93,'onAdd':_0xa244c8=>_0x1fed30(_0x207da4=>mo(_0x207da4,_0x54de93['id'],_0xa244c8,_0x207da4[_0x591c84(0x38a)](_0xa244c8))),'onCheckedChange':_0x12e012=>_0x1fed30(_0x1e84ce=>{const _0x2a082a=_0x591c84;let _0xf83847=_0x1e84ce['getTableFieldsByDataFieldId'](_0x54de93['id']);if(!_0x12e012){_0xf83847[_0x2a082a(0x3c0)](_0xc27b3a=>_0x1e84ce['removeField'](_0xc27b3a[_0x2a082a(0x1ae)]()));return;}if(_0xf83847[_0x2a082a(0x4da)]===0x0){let _0x5f188a=go(_0x54de93)?_0x4c815c[_0x2a082a(0x47a)]:_0x4c815c['Row'];_0x1e84ce[_0x2a082a(0x3fa)](_0x54de93['id'],_0x5f188a);}}),'onDragStart':()=>_0x2fe53d({'kind':'source','id':_0x54de93['id']})},_0x54de93['id']))})]}),_0x4dabb7('div',{'className':_0x591c84(0x478),'children':ro[_0x591c84(0x3ff)](_0x17d04b=>_0x4dabb7(co,{'area':_0x17d04b[_0x591c84(0x269)],'dropTarget':_0x388552,'fields':_0x513f87[_0x591c84(0x4aa)][_0x17d04b['key']],'label':_0x735190['t'](_0x17d04b['label']),'snapshot':_0x513f87[_0x591c84(0x4aa)],'onDragEnd':()=>{_0x2fe53d(null),_0x1c30ed(null);},'onDragStart':_0x5aa0ec=>_0x2fe53d({'kind':_0x591c84(0x506),'id':_0x5aa0ec,'area':_0x17d04b[_0x591c84(0x269)]}),'onDragOver':_0x3a04ac=>_0x1c30ed({'area':_0x17d04b[_0x591c84(0x269)],'index':_0x3a04ac}),'onDrop':_0x2ffcdf=>_0x1b0a85(_0x17d04b[_0x591c84(0x269)],_0x2ffcdf),'onFilter':_0x44bf09,'onRemove':_0x59cfa5=>_0x1fed30(_0x3318b5=>_0x3318b5['removeField'](_0x59cfa5)),'onSettings':_0x2de9ce},_0x17d04b[_0x591c84(0x269)]))}),_0x4cd760&&_0x4dabb7(uo,{'fieldId':_0x4cd760,'snapshot':_0x513f87[_0x591c84(0x4aa)],'table':_0x3bc7f4,'onCancel':()=>_0x44bf09(null),'onCommit':(_0x395414,_0x8a8a2)=>{_0x1fed30(_0x3c84ea=>{const _0xd2ebd=_0x1cf6;let _0x463390=_0x3c84ea['getDataFieldByTableId'](_0x4cd760),_0x595004=(_0x463390==null?void 0x0:_0x463390[_0xd2ebd(0x41c)])??[];_0x3c84ea[_0xd2ebd(0x4c2)](_0x4cd760,{'type':_0x1b814d[_0xd2ebd(0x468)],'list':_0x395414,'isAll':_0x395414['length']===_0x595004[_0xd2ebd(0x4da)]}),_0x3c84ea[_0xd2ebd(0x263)](_0x4cd760,_0x8a8a2===void 0x0?void 0x0:{'type':_0x8a8a2});}),_0x44bf09(null);}},_0x4cd760),_0x58a3f4&&_0x4dabb7(fo,{'field':_0x513f87[_0x591c84(0x4aa)][_0x591c84(0x1c7)][_0x58a3f4],'onCancel':()=>_0x2de9ce(null),'onCommit':(_0x27c6f4,_0xb267cd,_0x4f6348)=>{_0x1fed30(_0x5215f8=>{const _0x3ec3f1=_0x1cf6;_0x5215f8[_0x3ec3f1(0x1e8)](_0x58a3f4,_0x27c6f4),_0x5215f8[_0x3ec3f1(0x467)](_0x58a3f4,_0xb267cd),_0x5215f8[_0x3ec3f1(0x2de)](_0x58a3f4,_0x4f6348||void 0x0);}),_0x2de9ce(null);}},_0x58a3f4)]})})]});}function oo(_0x2d6ad0){const _0x181f56=_0x2353bc;let {config:_0x268b9c,field:_0x4cf084,onAdd:_0x5281f8,onCheckedChange:_0x16ce41,onDragStart:_0x2b6a1d}=_0x2d6ad0,_0x56a454=_0x39b411(_0x5cd3ee),_0x3d625c=[...Object[_0x181f56(0x4ad)](_0x268b9c[_0x181f56(0x4aa)]['dimension']),...Object[_0x181f56(0x4ad)](_0x268b9c['pivot'][_0x181f56(0x1c7)])]['some'](_0x2759ba=>_0x2759ba['dataFieldId']===_0x4cf084['id']),_0x5cede8=ro[_0x181f56(0x3ff)](_0x446f93=>({'type':_0x181f56(0x423),'children':_0x56a454['t'](_o(_0x446f93[_0x181f56(0x269)])),'onSelect':()=>_0x5281f8(_0x446f93[_0x181f56(0x269)])}));return _0x2b00c1(_0x181f56(0x442),{'draggable':!0x0,'className':_0x181f56(0x473),'onDragStart':_0x2b6a1d,'children':[_0x4dabb7(_0x1487d8,{'className':_0x181f56(0x28e)}),_0x4dabb7(_0x3cc061,{'checked':_0x3d625c,'onChange':_0x581d79=>_0x16ce41(!!_0x581d79)}),_0x4dabb7(so,{'field':_0x4cf084}),_0x4dabb7(_0x181f56(0x3ec),{'className':_0x181f56(0x3bf),'children':_0x4cf084['name']}),_0x4dabb7(_0x492a1e,{'align':_0x181f56(0x236),'items':_0x5cede8,'children':_0x4dabb7('span',{'className':'univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','children':_0x4dabb7(_0xf77a3b,{})})})]});}function so({field:_0x338bc3}){const _0x576b39=_0x2353bc;return go(_0x338bc3)?_0x4dabb7(_0x5a5ded,{'className':'univer-text-gray-400'}):_0x338bc3[_0x576b39(0x393)]===_0x557eea[_0x576b39(0x4e7)]||_0x338bc3[_0x576b39(0x393)]===_0x557eea[_0x576b39(0x2fa)]||_0x338bc3[_0x576b39(0x393)]===_0x557eea[_0x576b39(0x4a2)]?_0x4dabb7(_0x951fbe,{'className':_0x576b39(0x28e)}):_0x4dabb7(_0x264f2e,{'className':_0x576b39(0x28e)});}function co(_0x440d97){const _0x1d52f4=_0x2353bc;let {area:_0x1cd686,dropTarget:_0x38b906,fields:_0x551959,label:_0x1e1422,snapshot:_0x1a0bcd}=_0x440d97,_0x18c69b=_0x39b411(_0x5cd3ee);return _0x2b00c1(_0x1d52f4(0x482),{'className':_0x52fed8(_0x1d52f4(0x458),_0x1298ac),'onDragOver':_0x111f63=>{const _0x4f39e5=_0x1d52f4;_0x111f63['preventDefault'](),_0x440d97['onDragOver'](_0x551959[_0x4f39e5(0x4da)]);},'onDrop':_0x6e9980=>{const _0x1e8e7b=_0x1d52f4;_0x6e9980[_0x1e8e7b(0x3ca)](),_0x440d97[_0x1e8e7b(0x20c)]((_0x38b906==null?void 0x0:_0x38b906[_0x1e8e7b(0x269)])===_0x1cd686?_0x38b906[_0x1e8e7b(0x32a)]:_0x551959[_0x1e8e7b(0x4da)]);},'children':[_0x4dabb7(_0x1d52f4(0x442),{'className':_0x1d52f4(0x356),'children':_0x1e1422}),_0x2b00c1(_0x1d52f4(0x442),{'className':_0x1d52f4(0x378),'children':[_0x551959['map']((_0x3f4b06,_0x4e9905)=>{const _0x4376dc=_0x1d52f4;let _0x586f72=_0x1a0bcd[_0x4376dc(0x46a)][_0x3f4b06]??_0x1a0bcd[_0x4376dc(0x1c7)][_0x3f4b06];if(!_0x586f72)return null;let _0x3dfd09=(_0x38b906==null?void 0x0:_0x38b906[_0x4376dc(0x269)])===_0x1cd686&&_0x38b906[_0x4376dc(0x32a)]===_0x4e9905;return _0x2b00c1(_0x4376dc(0x442),{'onDragOver':_0x38c344=>{const _0x5e6c91=_0x4376dc;_0x38c344[_0x5e6c91(0x3ca)](),_0x38c344['stopPropagation']();let _0x485e80=_0x38c344['currentTarget'][_0x5e6c91(0x4db)]();_0x440d97[_0x5e6c91(0x4cb)](_0x4e9905+ +(_0x38c344['clientY']>_0x485e80[_0x5e6c91(0x45e)]+_0x485e80['height']/0x2));},'onDrop':_0x4fd0cf=>{const _0xc24946=_0x4376dc;_0x4fd0cf[_0xc24946(0x3ca)](),_0x4fd0cf['stopPropagation'](),_0x440d97['onDrop']((_0x38b906==null?void 0x0:_0x38b906[_0xc24946(0x269)])===_0x1cd686?_0x38b906[_0xc24946(0x32a)]:_0x4e9905);},'children':[_0x3dfd09&&_0x4dabb7(_0x4376dc(0x442),{'className':_0x4376dc(0x278)}),_0x4dabb7(lo,{'area':_0x1cd686,'field':_0x586f72,'onDragEnd':_0x440d97['onDragEnd'],'onDragStart':()=>_0x440d97[_0x4376dc(0x38d)](_0x3f4b06),'onFilter':()=>_0x440d97[_0x4376dc(0x49e)](_0x3f4b06),'onRemove':()=>_0x440d97[_0x4376dc(0x287)](_0x3f4b06),'onSettings':()=>_0x440d97[_0x4376dc(0x373)](_0x3f4b06)})]},_0x3f4b06);}),(_0x38b906==null?void 0x0:_0x38b906['area'])===_0x1cd686&&_0x38b906[_0x1d52f4(0x32a)]===_0x551959[_0x1d52f4(0x4da)]&&_0x4dabb7('div',{'className':_0x1d52f4(0x278)}),_0x551959[_0x1d52f4(0x4da)]===0x0&&_0x4dabb7(_0x1d52f4(0x442),{'className':_0x1d52f4(0x279),'children':_0x18c69b['t'](_0x1d52f4(0x29a))})]})]});}function lo(_0x35dc66){const _0x5d9ee5=_0x2353bc;let _0x15a9b6=_0x39b411(_0x5cd3ee),_0x5a265e=_0x35dc66['area']===_0x4c815c[_0x5d9ee5(0x47a)],_0x55199a=[{'type':_0x5d9ee5(0x423),'children':_0x15a9b6['t'](_0x5d9ee5(0x404)),'onSelect':_0x35dc66[_0x5d9ee5(0x287)]},{'type':'item','children':_0x15a9b6['t'](_0x5a265e?'bases-dashboard-ui.pivot.fieldSettings':_0x5d9ee5(0x3a1)),'onSelect':_0x5a265e?_0x35dc66[_0x5d9ee5(0x373)]:_0x35dc66[_0x5d9ee5(0x49e)]}];return _0x2b00c1('div',{'draggable':!0x0,'className':'univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','onDragEnd':_0x35dc66[_0x5d9ee5(0x31c)],'onDragStart':_0x35dc66[_0x5d9ee5(0x38d)],'children':[_0x4dabb7(_0x1487d8,{'className':_0x5d9ee5(0x28e)}),_0x4dabb7(_0x56b693,{'title':_0x35dc66[_0x5d9ee5(0x506)][_0x5d9ee5(0x2a9)],'children':_0x4dabb7(_0x5d9ee5(0x3ec),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x35dc66[_0x5d9ee5(0x506)][_0x5d9ee5(0x2a9)]})}),_0x4dabb7(_0x492a1e,{'align':_0x5d9ee5(0x236),'items':_0x55199a,'children':_0x4dabb7(_0x5d9ee5(0x3ec),{'className':_0x5d9ee5(0x3bb),'children':_0x4dabb7(_0xf77a3b,{})})})]});}function uo(_0x249734){const _0x9c3e57=_0x2353bc;var _0x52c4de,_0x24330d;let _0x374880=_0x39b411(_0x5cd3ee),{format:_0x538cba,items:_0x10473d,itemTypes:_0x5927e3}=_0x56a185(()=>{const _0x5c64a4=_0x1cf6;let _0x183e12=_0x1c8584(_0x249734[_0x5c64a4(0x4bb)],_0x249734[_0x5c64a4(0x1d0)]);try{let _0x10a588=_0x183e12[_0x5c64a4(0x3b7)](_0x249734[_0x5c64a4(0x43d)]);return{'format':_0x10a588==null?void 0x0:_0x10a588[_0x5c64a4(0x347)],'items':[...(_0x10a588==null?void 0x0:_0x10a588[_0x5c64a4(0x41c)])??[]],'itemTypes':[...(_0x10a588==null?void 0x0:_0x10a588[_0x5c64a4(0x4ed)])??[]]};}finally{_0x183e12[_0x5c64a4(0x2d9)]();}},[_0x249734[_0x9c3e57(0x43d)],_0x249734[_0x9c3e57(0x1d0)],_0x249734[_0x9c3e57(0x4bb)]]),_0x3f0462=(_0x52c4de=_0x249734[_0x9c3e57(0x1d0)][_0x9c3e57(0x46a)][_0x249734['fieldId']])==null?void 0x0:_0x52c4de['filterInfo'],[_0x4283f6,_0x5f2a54]=_0x2be63d((_0x3f0462==null?void 0x0:_0x3f0462[_0x9c3e57(0x393)])===_0x1b814d[_0x9c3e57(0x468)]?_0x3f0462[_0x9c3e57(0x4ea)]:_0x10473d),[_0x2068dc,_0x1e3648]=_0x2be63d((_0x24330d=_0x249734['snapshot'][_0x9c3e57(0x46a)][_0x249734[_0x9c3e57(0x43d)]])==null||(_0x24330d=_0x24330d[_0x9c3e57(0x1e0)])==null?void 0x0:_0x24330d[_0x9c3e57(0x393)]),_0x58b9e3=_0x4283f6[_0x9c3e57(0x4da)]===_0x10473d[_0x9c3e57(0x4da)];return _0x2b00c1(_0x9c3e57(0x482),{'className':_0x52fed8(_0x9c3e57(0x3f6),_0x1298ac),'children':[_0x4dabb7('div',{'className':_0x9c3e57(0x306),'children':_0x374880['t'](_0x9c3e57(0x3a1))}),_0x2b00c1(_0x9c3e57(0x442),{'className':_0x9c3e57(0x414),'children':[_0x2b00c1(_0x1b3e3b,{'className':_0x9c3e57(0x342),'variant':_0x2068dc===_0x428fd4['ascending']?'primary':_0x9c3e57(0x431),'onClick':()=>_0x1e3648(_0x428fd4[_0x9c3e57(0x21b)]),'children':[_0x4dabb7(_0x4c6d55,{}),_0x374880['t'](_0x9c3e57(0x43a))]}),_0x2b00c1(_0x1b3e3b,{'className':_0x9c3e57(0x342),'variant':_0x2068dc===_0x428fd4[_0x9c3e57(0x229)]?'primary':'default','onClick':()=>_0x1e3648(_0x428fd4['descending']),'children':[_0x4dabb7(_0x59e3b9,{}),_0x374880['t'](_0x9c3e57(0x2b2))]})]}),_0x2b00c1('div',{'className':_0x9c3e57(0x302),'children':[_0x2b00c1(_0x9c3e57(0x3b0),{'className':_0x9c3e57(0x334),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x58b9e3,'indeterminate':_0x4283f6[_0x9c3e57(0x4da)]>0x0&&!_0x58b9e3,'onChange':()=>_0x5f2a54(_0x58b9e3?[]:_0x10473d)}),_0x374880['t'](_0x9c3e57(0x368))]}),_0x10473d[_0x9c3e57(0x3ff)]((_0x32cb90,_0x511a22)=>_0x2b00c1(_0x9c3e57(0x3b0),{'className':_0x9c3e57(0x334),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x4283f6['includes'](_0x32cb90),'onChange':()=>_0x5f2a54(_0x319320=>_0x319320['includes'](_0x32cb90)?_0x319320[_0x9c3e57(0x1b3)](_0x10accf=>_0x10accf!==_0x32cb90):[..._0x319320,_0x32cb90])}),_0x4dabb7('span',{'className':_0x9c3e57(0x226),'children':ho(_0x32cb90,_0x5927e3[_0x511a22],_0x538cba,_0x374880['t'](_0x9c3e57(0x2a2)))})]},_0x32cb90))]}),_0x2b00c1(_0x9c3e57(0x442),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[_0x4dabb7(_0x1b3e3b,{'variant':_0x9c3e57(0x31a),'onClick':()=>_0x249734[_0x9c3e57(0x434)](_0x10473d,_0x2068dc),'children':_0x374880['t'](_0x9c3e57(0x2d3))}),_0x2b00c1(_0x9c3e57(0x442),{'className':_0x9c3e57(0x4cf),'children':[_0x4dabb7(_0x1b3e3b,{'onClick':_0x249734['onCancel'],'children':_0x374880['t']('bases-dashboard-ui.pivot.cancel')}),_0x4dabb7(_0x1b3e3b,{'variant':_0x9c3e57(0x37f),'disabled':_0x4283f6[_0x9c3e57(0x4da)]===0x0,'onClick':()=>_0x249734[_0x9c3e57(0x434)](_0x4283f6,_0x2068dc),'children':_0x374880['t'](_0x9c3e57(0x325))})]})]})]});}function fo(_0x45cdce){const _0x375d86=_0x2353bc;var _0x3e6696,_0x54fc46,_0x46a65d;let _0x4e4fb7=_0x39b411(_0x5cd3ee),[_0x2d524f,_0x1b2cca]=_0x2be63d(((_0x3e6696=_0x45cdce[_0x375d86(0x506)])==null?void 0x0:_0x3e6696['displayName'])??''),[_0x3fc751,_0x53c046]=_0x2be63d(((_0x54fc46=_0x45cdce[_0x375d86(0x506)])==null?void 0x0:_0x54fc46[_0x375d86(0x2cc)])??_0x282c8a[_0x375d86(0x2bf)]),[_0x46562e,_0x394a78]=_0x2be63d(((_0x46a65d=_0x45cdce[_0x375d86(0x506)])==null?void 0x0:_0x46a65d['format'])??'');return _0x45cdce['field']?_0x2b00c1(_0x375d86(0x482),{'className':_0x52fed8(_0x375d86(0x50c),_0x1298ac),'children':[_0x4dabb7(_0x375d86(0x442),{'className':_0x375d86(0x441),'children':_0x4e4fb7['t'](_0x375d86(0x2c7))}),_0x2b00c1(_0x375d86(0x3b0),{'className':_0x375d86(0x4a3),'children':[_0x4e4fb7['t'](_0x375d86(0x1c9)),_0x4dabb7(_0x2c53ee,{'value':_0x2d524f,'onChange':_0x1b2cca})]}),_0x2b00c1(_0x375d86(0x3b0),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x4e4fb7['t'](_0x375d86(0x2c0)),_0x4dabb7(_0xce6b1b,{'value':String(_0x3fc751),'options':io[_0x375d86(0x3ff)](_0xb70e3f=>({'value':String(_0xb70e3f['value']),'label':_0x4e4fb7['t'](_0xb70e3f['localeKey'])})),'onChange':_0x2db5be=>{const _0x4c93c3=_0x375d86;let _0x5db262=io['find'](_0x5191f5=>String(_0x5191f5['value'])===_0x2db5be);_0x5db262&&_0x53c046(_0x5db262[_0x4c93c3(0x284)]);}})]}),_0x2b00c1('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x4e4fb7['t'](_0x375d86(0x3e8)),_0x4dabb7(_0x2c53ee,{'value':_0x46562e,'onChange':_0x394a78})]}),_0x2b00c1('div',{'className':_0x375d86(0x4f9),'children':[_0x4dabb7(_0x1b3e3b,{'onClick':_0x45cdce[_0x375d86(0x4f7)],'children':_0x4e4fb7['t'](_0x375d86(0x376))}),_0x4dabb7(_0x1b3e3b,{'variant':_0x375d86(0x37f),'disabled':!_0x2d524f[_0x375d86(0x3ee)](),'onClick':()=>_0x45cdce['onCommit'](_0x2d524f[_0x375d86(0x3ee)](),_0x3fc751,_0x46562e),'children':_0x4e4fb7['t']('bases-dashboard-ui.pivot.confirm')})]})]}):null;}function po(_0x1bd56d){const _0x353dc8=_0x2353bc;let {config:_0x3cc06e,commit:_0x1bd2fc}=_0x1bd56d,_0x4a93be=_0x39b411(_0x5cd3ee),_0x4466be=_0x3cc06e[_0x353dc8(0x4aa)][_0x353dc8(0x320)],_0x1198b1=_0x540914=>_0x1bd2fc(_0x52673f=>_0x52673f['setOptions']({..._0x52673f[_0x353dc8(0x4c8)](),..._0x540914}));return _0x2b00c1(_0x353dc8(0x442),{'className':_0x353dc8(0x4f1),'children':[_0x2b00c1(_0x353dc8(0x3b0),{'className':_0x353dc8(0x1f1),'children':[_0x4a93be['t'](_0x353dc8(0x291)),_0x4dabb7(_0xce6b1b,{'className':_0x353dc8(0x23f),'value':String(_0x3cc06e[_0x353dc8(0x4aa)][_0x353dc8(0x439)]),'options':[{'value':String(_0x426ac9[_0x353dc8(0x2c8)]),'label':_0x4a93be['t'](_0x353dc8(0x372))},{'value':String(_0x426ac9[_0x353dc8(0x1be)]),'label':_0x4a93be['t'](_0x353dc8(0x409))},{'value':String(_0x426ac9[_0x353dc8(0x379)]),'label':_0x4a93be['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x4e97b1=>{const _0x3a7777=_0x353dc8;let _0x4abce4=[_0x426ac9[_0x3a7777(0x2c8)],_0x426ac9['compact'],_0x426ac9['outline']][_0x3a7777(0x397)](_0x380df7=>String(_0x380df7)===_0x4e97b1);_0x4abce4!==void 0x0&&_0x1bd2fc(_0x4a4fa0=>_0x4a4fa0['setLayout'](_0x4abce4));}})]}),[{'key':'repeatRowLabels','label':'bases-dashboard-ui.pivot.repeatRowLabels','defaultValue':!0x1},{'key':_0x353dc8(0x40b),'label':_0x353dc8(0x1f5),'defaultValue':!0x1},{'key':_0x353dc8(0x246),'label':'bases-dashboard-ui.pivot.showRowSubtotal','defaultValue':!0x0},{'key':_0x353dc8(0x402),'label':_0x353dc8(0x2ca),'defaultValue':!0x0},{'key':_0x353dc8(0x280),'label':_0x353dc8(0x2bb),'defaultValue':!0x0},{'key':_0x353dc8(0x2ea),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}]['map'](_0x9a70a9=>_0x2b00c1(_0x353dc8(0x3b0),{'className':_0x353dc8(0x343),'children':[_0x4dabb7(_0x3cc061,{'checked':!!(_0x4466be[_0x9a70a9[_0x353dc8(0x336)]]??_0x9a70a9['defaultValue']),'disabled':_0x9a70a9['key']===_0x353dc8(0x479)&&_0x3cc06e['pivot'][_0x353dc8(0x439)]===_0x426ac9['compact'],'onChange':_0x3324a4=>_0x1198b1({[_0x9a70a9[_0x353dc8(0x336)]]:!!_0x3324a4})}),_0x4a93be['t'](_0x9a70a9[_0x353dc8(0x3b0)])]},_0x9a70a9[_0x353dc8(0x336)])),_0x3cc06e[_0x353dc8(0x4aa)][_0x353dc8(0x439)]===_0x426ac9['outline']&&_0x2b00c1('label',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x4a93be['t'](_0x353dc8(0x1c3)),_0x4dabb7(_0xce6b1b,{'className':'univer-w-36','value':String(_0x4466be[_0x353dc8(0x413)]??_0x10ab45[_0x353dc8(0x45e)]),'options':[{'value':String(_0x10ab45['top']),'label':_0x4a93be['t'](_0x353dc8(0x422))},{'value':String(_0x10ab45[_0x353dc8(0x2d0)]),'label':_0x4a93be['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x2908b0=>{const _0x134cbe=_0x353dc8;let _0x49aa50=[_0x10ab45[_0x134cbe(0x45e)],_0x10ab45[_0x134cbe(0x2d0)]]['find'](_0x5b7c81=>String(_0x5b7c81)===_0x2908b0);_0x49aa50!==void 0x0&&_0x1198b1({'rowSubtotalPosition':_0x49aa50});}})]}),_0x2b00c1('label',{'className':_0x353dc8(0x1f1),'children':[_0x4a93be['t'](_0x353dc8(0x25d)),_0x4dabb7(_0xce6b1b,{'className':_0x353dc8(0x23f),'value':String(_0x3cc06e[_0x353dc8(0x4aa)][_0x353dc8(0x1bb)]===_0x288ba5[_0x353dc8(0x2fe)]?_0x288ba5[_0x353dc8(0x499)]:_0x3cc06e['pivot'][_0x353dc8(0x1bb)]),'options':[{'value':String(_0x288ba5[_0x353dc8(0x499)]),'label':_0x4a93be['t']('bases-dashboard-ui.pivot.columns')},{'value':String(_0x288ba5[_0x353dc8(0x456)]),'label':_0x4a93be['t'](_0x353dc8(0x1d4))}],'onChange':_0x5f52c4=>{const _0x3aafab=_0x353dc8;let _0x4f7b0c=[_0x288ba5[_0x3aafab(0x499)],_0x288ba5['Row']]['find'](_0x4a6d8c=>String(_0x4a6d8c)===_0x5f52c4);_0x4f7b0c!==void 0x0&&_0x1bd2fc(_0x12b7d1=>_0x12b7d1[_0x3aafab(0x3e6)](_0x4f7b0c,_0x12b7d1[_0x3aafab(0x2cf)]()<0x0?0x0:_0x12b7d1[_0x3aafab(0x2cf)]()));}})]}),_0x2b00c1(_0x353dc8(0x3b0),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x4a93be['t'](_0x353dc8(0x412)),_0x4dabb7(_0x1c2086,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x4466be['pageWrap']??0x1,'onChange':_0x1cab7a=>{const _0x3e4795=_0x353dc8;let _0x120e6d=Number(_0x1cab7a);Number[_0x3e4795(0x4a4)](_0x120e6d)&&_0x120e6d>=0x1&&_0x1198b1({'pageWrap':_0x120e6d});}})]}),_0x2b00c1(_0x353dc8(0x3b0),{'className':_0x353dc8(0x1f1),'children':[_0x4a93be['t']('bases-dashboard-ui.pivot.pageDirection'),_0x4dabb7(_0xce6b1b,{'className':_0x353dc8(0x23f),'value':String(_0x4466be[_0x353dc8(0x1b7)]??!0x1),'options':[{'value':_0x353dc8(0x48b),'label':_0x4a93be['t'](_0x353dc8(0x30c))},{'value':'true','label':_0x4a93be['t'](_0x353dc8(0x4a1))}],'onChange':_0x4fe993=>_0x1198b1({'pageOverThenDown':_0x4fe993==='true'})})]})]});}function mo(_0x1f8543,_0x5c34eb,_0x3b31b4,_0x593b0e){const _0x32f3eb=_0x2353bc;let _0x4720fa=_0x1f8543[_0x32f3eb(0x1cd)](_0x5c34eb)[_0x32f3eb(0x397)](_0x5afdc6=>_0x1f8543['getFieldPositionInfoById'](_0x5afdc6[_0x32f3eb(0x1ae)]())[_0x32f3eb(0x269)]!==_0x4c815c[_0x32f3eb(0x47a)]);if(_0x3b31b4!==_0x4c815c[_0x32f3eb(0x47a)]&&_0x4720fa){_0x1f8543[_0x32f3eb(0x1b0)](_0x4720fa[_0x32f3eb(0x1ae)](),_0x3b31b4,_0x593b0e);return;}_0x1f8543[_0x32f3eb(0x3fa)](_0x5c34eb,_0x3b31b4,_0x593b0e);}function ho(_0x595cf7,_0x2dd1df,_0xa0c3ce,_0x15904c){const _0x2ff743=_0x2353bc;return _0x2dd1df===_0x1fe7b3[_0x2ff743(0x512)]?_0x15904c:_0x2dd1df===_0x1fe7b3['date']&&_0xa0c3ce?_0x3f4aae['format'](_0xa0c3ce,Number(_0x595cf7)):_0x595cf7;}function go(_0x41a601){const _0x365493=_0x2353bc;return _0x41a601[_0x365493(0x393)]===_0x557eea[_0x365493(0x416)]||_0x41a601['type']===_0x557eea[_0x365493(0x321)]||_0x41a601[_0x365493(0x393)]===_0x557eea[_0x365493(0x3c5)]||_0x41a601[_0x365493(0x393)]===_0x557eea[_0x365493(0x42a)];}function _o(_0x53644a){const _0x13ebf0=_0x2353bc;switch(_0x53644a){case _0x4c815c[_0x13ebf0(0x456)]:return _0x13ebf0(0x28b);case _0x4c815c[_0x13ebf0(0x499)]:return _0x13ebf0(0x50d);case _0x4c815c[_0x13ebf0(0x47a)]:return'bases-dashboard-ui.pivot.addToValue';default:return _0x13ebf0(0x41a);}}function vo({config:_0x599bce,onChange:_0x353ea2,runtime:_0x346e04,table:_0x491911}){const _0x1506e3=_0x2353bc;let _0x23fcfa=_0x39b411(_0x5cd3ee),[_0x59facb,_0x54059f]=_0x2be63d(_0x1506e3(0x4d8));return _0x2b00c1(_0x1506e3(0x2b6),{'className':_0x1506e3(0x4fd),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x23fcfa['t'](_0x1506e3(0x2f6)),'className':_0x1506e3(0x38c),'items':[{'label':_0x23fcfa['t'](_0x1506e3(0x36b)),'panelId':_0x1506e3(0x440),'value':_0x1506e3(0x4d8)},{'label':_0x23fcfa['t'](_0x1506e3(0x4a7)),'panelId':_0x1506e3(0x225),'value':_0x1506e3(0x4aa)}],'value':_0x59facb,'variant':_0x1506e3(0x4d2),'onChange':_0x54059f}),_0x4dabb7(_0x1506e3(0x442),{'className':_0x1506e3(0x380),'children':_0x59facb===_0x1506e3(0x4d8)?_0x346e04&&_0x4dabb7(fa,{'config':_0x599bce,'runtime':_0x346e04,'tableName':_0x491911['name'],'onChange':_0x353ea2}):_0x4dabb7(ao,{'config':_0x599bce,'table':_0x491911,'onChange':_0x353ea2})})]});}function yo({tableId:_0x3d757a,unitId:_0x27e018,viewId:_0x18b6db}){const _0x1302cf=_0x2353bc;let _0x5d5ebe=_0x39b411(_0x32452d),_0x29874e=_0x39b411(_0x4074e5),_0xdfaefb=_0x39b411(_0x34ac8c),_0x4365aa=_0x39b411(_0x5cd3ee),_0x2a78b2=_0x39b411(_0x22ef82),[_0x223f75,_0x2420cc]=_0x2be63d(null),[_0x3da0c3,_0x390221]=_0x2be63d(null),_0x4af626=_0x35f949(_0x1302cf(0x4e9)+_0x325e5d(0x8)),[_0x1f6030,_0x31b599]=_0x2be63d(!0x1),_0x317b57=_0x29874e['getUnit'](_0x27e018,_0x51ec78[_0x1302cf(0x4eb)]),_0x56a108=_0x317b57==null?void 0x0:_0x317b57[_0x1302cf(0x3f5)]()['tables'][_0x3d757a],_0x350e9f=_0x56a108==null?void 0x0:_0x56a108[_0x1302cf(0x451)][_0x18b6db],_0x2ead60=bo(_0x350e9f),_0x2f58b9=_r(_0x27e018,_0x3d757a,_0x18b6db);if(_0x38e78f(()=>{const _0x587d3a=_0x1302cf;if(!_0x2ead60)return;let _0x1ed291=_0x4af626[_0x587d3a(0x38f)];return _0x2a78b2['acquireChartRuntime'](_0x1ed291,{'unitId':_0x27e018,'tableId':_0x3d757a,'viewId':_0x18b6db,'filters':[]}),()=>{const _0xb8bb17=_0x587d3a;_0x2a78b2[_0xb8bb17(0x503)](_0x27e018,_0x1ed291);};},[_0x2ead60,_0x2a78b2,_0x3d757a,_0x27e018,_0x18b6db]),_0x38e78f(()=>{const _0x14702b=_0x1302cf;if(!bo(_0x350e9f))return;let _0x3f3f70=!0x0,_0x29fded={'unitId':_0x27e018,'tableId':_0x3d757a,'viewId':_0x18b6db,'filters':[_0x350e9f[_0x14702b(0x1b3)]??null]};return _0x2a78b2[_0x14702b(0x41f)](_0x27e018,_0x4af626[_0x14702b(0x38f)],_0x29fded)['then'](_0x25c9e0=>{const _0x503da9=_0x14702b;_0x3f3f70&&_0x25c9e0&&(_0x2420cc(_0x25c9e0),_0x390221(_0x2a78b2[_0x503da9(0x33e)](_0x27e018,_0x4af626[_0x503da9(0x38f)])??null),_0x31b599(!0x1));})['catch'](_0x2e862a=>{const _0x5b9f69=_0x14702b;_0xdfaefb[_0x5b9f69(0x1b4)](_0x5b9f69(0x341),_0x2e862a),_0x3f3f70&&(_0x2420cc(null),_0x31b599(!0x0));}),()=>{_0x3f3f70=!0x1;};},[_0xdfaefb,_0x2a78b2,_0x3d757a,_0x27e018,_0x350e9f,_0x18b6db]),!_0x56a108||!bo(_0x350e9f))return null;let _0x5bb065=_0x2a78b2[_0x1302cf(0x33e)](_0x27e018,_0x4af626['current'])===_0x3da0c3?_0x3da0c3:null,_0x44cd29=_0x223f75?_0x2b00c1(_0x1302cf(0x442),{'className':_0x1302cf(0x2cd),'style':{'gridTemplateRows':_0x350e9f[_0x1302cf(0x4e8)][_0x1302cf(0x4a6)]===_0x1302cf(0x330)?_0x1302cf(0x511):_0x1302cf(0x230)},'children':[_0x350e9f[_0x1302cf(0x4e8)][_0x1302cf(0x4a6)]!==_0x1302cf(0x4bb)&&_0x5bb065&&_0x4dabb7(_0x1302cf(0x442),{'className':_0x1302cf(0x4c9),'children':_0x4dabb7(Ir,{'isRowDirection':_0x2fa6dd(_0x350e9f['config'][_0x1302cf(0x4d8)][_0x1302cf(0x485)]),'runtime':_0x5bb065})}),_0x350e9f[_0x1302cf(0x4e8)][_0x1302cf(0x4a6)]!=='chart'&&_0x4dabb7('div',{'className':_0x1302cf(0x32b),'children':_0x4dabb7(ki,{'pivot':_0x350e9f[_0x1302cf(0x4e8)][_0x1302cf(0x4aa)],'view':_0x223f75['view']})})]}):_0x4dabb7(_0x1302cf(0x442),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x1f6030?_0x4365aa['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x4365aa['t'](_0x1302cf(0x463))});return _0x2b00c1(_0x1302cf(0x442),{'className':_0x1302cf(0x4b6),'children':[_0x4dabb7(_0x1302cf(0x442),{'className':_0x1302cf(0x43e),'children':_0x44cd29}),_0x2f58b9&&_0x4dabb7(vo,{'config':_0x350e9f['config'],'runtime':_0x5bb065,'table':_0x56a108,'onChange':_0x10dc11=>{const _0x193081=_0x1302cf;_0x5d5ebe['executeCommand'](_0x303df3['id'],{'unitId':_0x27e018,'tableId':_0x3d757a,'viewId':_0x18b6db,'patch':_0x10dc11})[_0x193081(0x3d2)](_0x23df5d=>_0xdfaefb[_0x193081(0x1b4)](_0x193081(0x337),_0x23df5d));}})]});}function bo(_0x2a9da6){const _0x55f698=_0x2353bc;return(_0x2a9da6==null?void 0x0:_0x2a9da6[_0x55f698(0x393)])===_0x5ee6b5['Pivot']&&typeof _0x2a9da6[_0x55f698(0x4e8)]=='object'&&_0x2a9da6[_0x55f698(0x4e8)]!==null&&'pivot'in _0x2a9da6['config']&&_0x55f698(0x4d8)in _0x2a9da6[_0x55f698(0x4e8)]&&_0x55f698(0x4a6)in _0x2a9da6[_0x55f698(0x4e8)];}let xo=class extends _0x2e76da{constructor(_0x5c9987,_0x147162,_0x25bb36,_0x52dc46,_0x58aa3b,_0x185b7e){const _0x487ece=_0x2353bc;super(),this[_0x487ece(0x1eb)](_0x147162[_0x487ece(0x1ac)]({'type':_0x5ee6b5['Pivot'],'renderMode':_0x487ece(0x4cc),'icon':_0x3ad3c2,'component':yo,'menu':{get 'label'(){return _0x185b7e['t']('bases-dashboard-ui.pivot.name');},get 'description'(){const _0x1c4de4=_0x487ece;return _0x185b7e['t'](_0x1c4de4(0x345));},get 'defaultName'(){return _0x185b7e['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x487ece(0x1eb)](_0x5c9987['register'](So(_0x25bb36,_0x52dc46,_0x58aa3b,_0x185b7e)));}};xo=Or([Y(0x0,_0x509544),Y(0x1,_0x5eecd3),Y(0x2,_0x2a19f9(_0x5e40a3)),Y(0x3,_0x32452d),Y(0x4,_0x4c7ae7),Y(0x5,_0x2a19f9(_0x5cd3ee))],xo);function So(_0x2ae871,_0x1ff551,_0x2d214e,_0x2fb16f){const _0x285db8=_0x2353bc;return{'change$':_0x53dd21(_0x2ae871[_0x285db8(0x2a3)],_0x2d214e[_0x285db8(0x391)]),'component':Ja,get 'labels'(){const _0xd9a4f1=_0x285db8;return{'add':_0x2fb16f['t'](_0xd9a4f1(0x3ed)),'configure':_0x2ae8d2=>_0x2fb16f['t'](_0xd9a4f1(0x233),_0x2ae8d2),'delete':_0x2fb16f['t'](_0xd9a4f1(0x305)),'new':_0x2fb16f['t']('bases-dashboard-ui.dashboard.new'),'rename':_0x2fb16f['t'](_0xd9a4f1(0x259)),'search':_0x2fb16f['t'](_0xd9a4f1(0x424)),'section':_0x2fb16f['t'](_0xd9a4f1(0x1c4))};},'getItems':_0x3ca741=>{const _0x4d3812=_0x285db8;let _0x2a3f61=_0x2ae871[_0x4d3812(0x2b1)](_0x3ca741);return _0x2a3f61[_0x4d3812(0x3fe)][_0x4d3812(0x3bc)](_0x3286c5=>{const _0x4969ce=_0x4d3812;let _0x1e09e7=_0x2a3f61[_0x4969ce(0x370)][_0x3286c5];return _0x1e09e7?[{'id':_0x1e09e7['id'],'name':_0x1e09e7[_0x4969ce(0x329)],'readonly':!_0x25b5d2(_0x2d214e,_0x3ca741,_0x1e09e7['id'])}]:[];});},'create':async _0x1f388d=>{const _0x5917e4=_0x285db8;let _0x4a06f6=_0x2ae871[_0x5917e4(0x2b1)](_0x1f388d),_0x54cdcd=_0x5917e4(0x3a4)+_0x325e5d(0x8),_0x37fe44=Co(_0x4a06f6[_0x5917e4(0x3fe)][_0x5917e4(0x3bc)](_0x4d8eab=>{let _0x580a4f=_0x4a06f6['dashboards'][_0x4d8eab];return _0x580a4f?[_0x580a4f['name']]:[];}),_0x345da2=>_0x2fb16f['t'](_0x5917e4(0x3e5),String(_0x345da2)));return await _0x1ff551[_0x5917e4(0x1ff)](_0x2ef5a6['id'],{'unitId':_0x1f388d,'dashboard':{'id':_0x54cdcd,'name':_0x37fe44,'widgetOrder':[],'widgets':{}}})?_0x54cdcd:null;},'rename':async(_0x57ccff,_0x1a5693,_0x29e6d1)=>{const _0x482658=_0x285db8;let _0x4fa17c=_0x2ae871[_0x482658(0x34a)](_0x57ccff,_0x1a5693);return!!(_0x4fa17c&&await _0x1ff551['executeCommand'](_0x5cbeb4['id'],{'unitId':_0x57ccff,'dashboard':{..._0x4fa17c,'name':_0x29e6d1}}));},'remove':(_0x19274d,_0x15174d)=>_0x1ff551['executeCommand'](_0x22aa0a['id'],{'unitId':_0x19274d,'dashboardId':_0x15174d})};}function Co(_0x247619,_0x16a3b1){const _0x3eb9c7=_0x2353bc;let _0x1e420f=new Set(_0x247619),_0x2b5cab=_0x1e420f[_0x3eb9c7(0x272)]+0x1,_0x291041=_0x16a3b1(_0x2b5cab);for(;_0x1e420f[_0x3eb9c7(0x30b)](_0x291041);)_0x2b5cab+=0x1,_0x291041=_0x16a3b1(_0x2b5cab);return _0x291041;}let wo=class extends _0x52aef1{constructor(_0x500853=hr,_0x20d046,_0x3ebc94){const _0x3c5f85=_0x2353bc;super(),this['_config']=_0x500853,this[_0x3c5f85(0x2a0)]=_0x20d046,this['_configService']=_0x3ebc94;let {..._0x1f9080}=_0x1731fc({},hr,this[_0x3c5f85(0x21e)]);this[_0x3c5f85(0x447)][_0x3c5f85(0x427)](mr,_0x1f9080);}[_0x2353bc(0x2db)](){const _0x45e574=_0x2353bc;this[_0x45e574(0x2a0)]['add']([kr]),this[_0x45e574(0x2a0)][_0x45e574(0x1c1)]([Gr]),this['_injector']['add']([xo]);}[_0x2353bc(0x25b)](){const _0x3c60f4=_0x2353bc;_0x445a23(this[_0x3c60f4(0x2a0)],[[kr],[Gr],[xo]]);}};Pr(wo,_0x2353bc(0x393),_0x51ec78['UNIVER_BASE']),Pr(wo,_0x2353bc(0x405),_0x2353bc(0x264)),Pr(wo,_0x2353bc(0x4ba),fr),Pr(wo,'version',pr),wo=Or([_0x4fc5af(_0x38c17a,_0x1615ad,_0x151faa,_0x4a2c56,_0x47e249,_0x220c65),Y(0x1,_0x2a19f9(_0x5a8661)),Y(0x2,_0x5a5187)],wo);export{na as UniverBaseDashboardMobileUIPlugin,wo as UniverBaseDashboardUIPlugin};
|