@univerjs-pro/bases-dashboard-ui 1.0.3 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/cs-CZ.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/nl-NL.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/th-TH.js +1 -1
- package/lib/cjs/locale/tr-TR.js +1 -1
- package/lib/cjs/locale/uk-UA.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/cs-CZ.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/nl-NL.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/th-TH.js +1 -1
- package/lib/es/locale/tr-TR.js +1 -1
- package/lib/es/locale/uk-UA.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/cs-CZ.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/nl-NL.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/th-TH.js +1 -1
- package/lib/locale/tr-TR.js +1 -1
- package/lib/locale/uk-UA.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/locale/en-US.d.ts +11 -0
- 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 +20 -20
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2353bc=_0x1cf6;(function(_0x3fe7b4,_0x293bd9){const _0x32e535=_0x1cf6,_0x4977ed=_0x3fe7b4();while(!![]){try{const _0x2ec9ce=-parseInt(_0x32e535(0x2b0))/0x1*(parseInt(_0x32e535(0x50e))/0x2)+-parseInt(_0x32e535(0x2d5))/0x3*(-parseInt(_0x32e535(0x1f4))/0x4)+-parseInt(_0x32e535(0x2e8))/0x5*(-parseInt(_0x32e535(0x437))/0x6)+parseInt(_0x32e535(0x3fb))/0x7+parseInt(_0x32e535(0x2b4))/0x8+parseInt(_0x32e535(0x213))/0x9*(-parseInt(_0x32e535(0x234))/0xa)+-parseInt(_0x32e535(0x1dc))/0xb*(parseInt(_0x32e535(0x2c3))/0xc);if(_0x2ec9ce===_0x293bd9)break;else _0x4977ed['push'](_0x4977ed['shift']());}catch(_0x315a9f){_0x4977ed['push'](_0x4977ed['shift']());}}}(_0x5550,0x475d7));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x50185b,BASES_DASHBOARD_GRID_COLUMNS as _0x20c9d7,BaseChartRuntimeService as _0x22ef82,BaseDashboardResourceService as _0x5e40a3,BaseDashboardWidgetType as _0x342116,CreateBaseDashboardCommand as _0x2ef5a6,DeleteBaseDashboardCommand as _0x22aa0a,RemoveBaseDashboardWidgetCommand as _0x20648d,UniverBaseDashboardPlugin as _0x1615ad,UpdateBaseDashboardCommand as _0x5cbeb4,UpdateBasePivotViewCommand as _0x303df3,UpsertBaseDashboardWidgetCommand as _0x2b3367,canEditBaseDashboard as _0x25b5d2,canEditBasePivotView as _0x2ecb1b,createBasePivotTable as _0x1c8584,resolveBasePivotChartRowDirection as _0x2fa6dd}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x9b2833,BaseMobileDrawer as _0x4989cc,BaseMobileFilterOperand as _0x5c4dcf,BaseMobileFilterPanel as _0x1ab4e1,BaseUnitCollaborationStatus as _0xf8bfea,FormulaEditorPanel as _0x55d652,IBaseDashboardUIExtensionRegistryService as _0x509544,IBaseViewUIRegistryService as _0x5eecd3,MobileFormulaEditorPanel as _0x33c106,UniverBasesMobileUIPlugin as _0x139492,UniverBasesUIPlugin as _0x151faa,formulaToEditorFormula as _0x1b3454,normalizeEditorFormulaForConfig as _0x24d391,toFormulaMenuTables as _0x57cd99,toMenuFields as _0x5249f3}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x170e20,ChartAxisSection as _0x185c32,ChartColorField as _0x38703b,ChartCommonDataMappingSection as _0x26c1b7,ChartEditBlockTitle as _0x2db9bd,ChartEditPanel as _0x3812e6,ChartEditPanelSection as _0x8fe1f1,ChartEditPanelTab as _0x139866,ChartEditPanelTabs as _0x35a378,ChartEditorCapability as _0x1958f1,ChartEditorProvider as _0x4bacfa,ChartFunnelStyleSection as _0x666ad2,ChartGradientFillField as _0x34de73,ChartGridlinesAndTicksSection as _0x1f6674,ChartHeatmapStyleSection as _0x3c01f2,ChartHostAdapter as _0x29d554,ChartIndicatorLineSection as _0x5f2295,ChartLegendSection as _0x1dc64f,ChartLineAndAreaSection as _0x457b13,ChartNumberFormatAtom as _0x2f8e19,ChartParetoSeriesSection as _0x35a412,ChartPieStyleSection as _0x34a105,ChartRadarStyleSection as _0x4c7c71,ChartRelationStyleSection as _0x11ce9e,ChartSectionAccordion as _0x28ef86,ChartSectionAccordionContent as _0xaf7aad,ChartSectionAccordionItem as _0x1358f8,ChartSectionAccordionTrigger as _0x352fb4,ChartSeriesSection as _0x3bcbff,ChartStackField as _0x3210ae,ChartStyleSection as _0x466794,ChartThemeField as _0x1603db,ChartTitlesSection as _0xe815e7,ChartTrendlineSection as _0x3c8ddd,ChartTypeField as _0x195039,ChartTypeSpecificDataSection as _0x45db86,ChartTypeSpecificSetupSection as _0x3eaf0a,ChartTypeSpecificStyleSection as _0x5d0cdf,ChartUIService as _0x3ae17a,ChartViewStateRegistry as _0x2cea70,ChartWaterfallSetupFields as _0x4e37ce,ChartWaterfallStyleSection as _0x217c37,ChartWordCloudStyleSection as _0x5ac713,DEFAULT_CHART_AXIS_VALUES as _0x5caca4,DEFAULT_CHART_FUNNEL_VALUES as _0x26697d,DEFAULT_CHART_HEATMAP_VALUES as _0x296680,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x195779,DEFAULT_CHART_LEGEND_VALUES as _0x4fe0eb,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x499ec0,DEFAULT_CHART_PARETO_VALUES as _0x4cf110,DEFAULT_CHART_PIE_VALUES as _0x1db8a1,DEFAULT_CHART_RADAR_VALUES as _0x35ac4f,DEFAULT_CHART_RELATION_VALUES as _0x2da675,DEFAULT_CHART_SERIES_VALUES as _0x396e30,DEFAULT_CHART_STYLE_VALUES as _0x5792d9,DEFAULT_CHART_TITLE_VALUES as _0x21806e,DEFAULT_CHART_TRENDLINE_VALUES as _0x563c89,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x2c231e,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x31f02c,DEFAULT_CHART_WORD_CLOUD_VALUES as _0x8c0c35,MobileChartEditorControls as _0xac1dd7,MobileChartEditorProvider as _0x2dc504,UniverChartMobileUIPlugin as _0x2c95bb,UniverChartUIPlugin as _0x4a2c56,buildChartTypeSelectOptions as _0x2dbfb8,chartTypeSupportsCapability as _0x326a9b,chartTypeSupportsLineAndAreaStyle as _0x59d745,useChartEditorChartType as _0x1f2e67,useChartEditorHasRightAxis as _0x51b799}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x38c17a}from'@univerjs-pro/license';import{ShapeFormulaService as _0xbf6a95,UniverShapeEditorPlugin as _0x47e249,createFormulaShapeData as _0x11d1a1}from'@univerjs-pro/shape-editor';import{BaseFieldType as _0x557eea,BaseFilterConjunction as _0xf09c6,BaseFilterOperator as _0x17381a,BaseViewType as _0x5ee6b5,DependentOn as _0x4fc5af,Disposable as _0x2e76da,ICommandService as _0x32452d,IConfigService as _0x5a5187,IImageIoService as _0x5482b5,ILogService as _0x34ac8c,IPermissionService as _0x4c7ae7,IUndoRedoService as _0x123793,IUniverInstanceService as _0x4074e5,ImageSourceType as _0x26a785,Inject as _0x2a19f9,Injector as _0x5a8661,LocaleService as _0x5cd3ee,ObjectPermissionService as _0x1adc86,Plugin as _0x52aef1,RedoCommand as _0x8d3b46,ThemeService as _0x277079,UndoCommand as _0x4170dd,UniverInstanceType as _0x51ec78,createParagraphId as _0x112de2,dateKit as _0x22c7cc,generateRandomId as _0x325e5d,merge as _0x1731fc,numfmt as _0x3f4aae,touchDependencies as _0x445a23}from'@univerjs/core';import{UniverDocsUIPlugin as _0x220c65}from'@univerjs/docs-ui';function _0x1cf6(_0x3c0f50,_0x125c99){_0x3c0f50=_0x3c0f50-0x1a8;const _0x5550f1=_0x5550();let _0x1cf6d7=_0x5550f1[_0x3c0f50];return _0x1cf6d7;}import{ArrowDownIcon as _0x5c6cd4,ArrowUpIcon as _0x19b9b0,AscendingIcon as _0x4c6d55,CalendarIcon as _0x951fbe,ChartIcon as _0x433eb4,CloseIcon as _0x122a02,DeleteIcon as _0x2d17f6,DescendingIcon as _0x59e3b9,ExpandIcon as _0x54cca2,FilterIcon as _0x425726,GripVerticalIcon as _0x1487d8,IncreaseIcon as _0x5155a3,MoreDownIcon as _0xf77a3b,MoreHorizontalIcon as _0x27b384,NumberIcon as _0x5a5ded,PenIcon as _0x392d1f,PivotTableIcon as _0x3ad3c2,ProtectIcon as _0x7e2f55,RedoIcon as _0x44a42f,SearchIcon as _0x51aac6,TextIcon as _0x264f2e,UndoIcon as _0x4f90a3}from'@univerjs/icons';import{combineLatest as _0x4d74fa,map as _0x299cc9,merge as _0x53dd21,skip as _0x260464}from'rxjs';import{SetBasePermissionCommand as _0x42d2ec,getBaseDashboardPermissionObjectId as _0x275cd2}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x4d763c}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x1869dd,ShapeLineTypeEnum as _0x19c511,ShapeTypeEnum as _0x4387d7}from'@univerjs-pro/engine-shape';import{Button as _0x1b3e3b,Checkbox as _0x3cc061,DatePicker as _0x1596d0,Dialog as _0x4b580d,DropdownMenu as _0x492a1e,Input as _0x2c53ee,InputNumber as _0x1c2086,MobileDialog as _0x138a17,MobileDropdownMenu as _0x4083c0,MobileSelect as _0x3b7f81,MultipleSelect as _0x3ab7df,Segmented as _0x116fe9,Select as _0xce6b1b,Textarea as _0x136f1a,Tooltip as _0x56b693,borderClassName as _0x1298ac,clsx as _0x52fed8,scrollbarClassName as _0x2a22a5}from'@univerjs/design';import{UnitObject as _0x4f7ac1}from'@univerjs/protocol';import{ILayoutService as _0x55d16d,ObjectPermissionButton as _0x468217,openObjectPermissionDialog as _0x14db5b,useDependency as _0x39b411,useObservable as _0x499abf}from'@univerjs/ui';import{useCallback as _0xd8821d,useEffect as _0x38e78f,useMemo as _0x56a185,useRef as _0x35f949,useState as _0x2be63d}from'react';import{Fragment as _0xa1bb43,jsx as _0x4dabb7,jsxs as _0x2b00c1}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x5cdbed,ChartRenderMode as _0x268ec5,ChartThemeService as _0x23197c,ChartTypeBits as _0x3414f3,ChartWaterfallStyleTarget as _0x6a9b13,IChartRenderModelManagerService as _0xc28907,RTLChartStyle as _0x46c996,chartBitsUtils as _0x4c5ed5,chartTypeCanUseTrendLine as _0xae124c,resolveChartRuntimeStyle as _0xca4f0b,resolveDefaultChartHostFrameStyle as _0x1b98f6,toChartModelUpdate as _0x485197}from'@univerjs-pro/engine-chart';import{createPortal as _0x1f6ddd}from'react-dom';import{PivotCellStyleTypeEnum as _0x5d656b,PivotDataFieldDataTypeEnum as _0x1fe7b3,PivotDataFieldSortOperatorEnum as _0x428fd4,PivotFilterTypeEnum as _0x1b814d,PivotLayoutTypeEnum as _0x426ac9,PivotSubtotalPositionEnum as _0x10ab45,PivotSubtotalTypeEnum as _0x282c8a,PivotTableFiledAreaEnum as _0x4c815c,PivotTableValuePositionEnum as _0x288ba5,isErrorValue as _0x426ce3,isPrefixValue as _0x1b2084}from'@univerjs-pro/engine-pivot';var fr=_0x2353bc(0x207),pr=_0x2353bc(0x407);const mr=_0x2353bc(0x2f8),hr={};function gr(_0x1fa658,_0x420303){const _0x5ecb5a=_0x2353bc;let _0x3baf80=_0x39b411(_0x4c7ae7),_0x970187=_0x25b5d2(_0x3baf80,_0x1fa658,_0x420303);return _0x499abf(()=>_0x3baf80[_0x5ecb5a(0x391)][_0x5ecb5a(0x41d)](_0x299cc9(()=>_0x25b5d2(_0x3baf80,_0x1fa658,_0x420303))),_0x970187,!0x1,[_0x420303,_0x3baf80,_0x1fa658]);}function _r(_0x12786b,_0x4cb2b8,_0x290f00){const _0x1394bb=_0x2353bc;let _0x457d99=_0x39b411(_0x4c7ae7),_0x1103c2=_0x2ecb1b(_0x457d99,_0x12786b,_0x4cb2b8,_0x290f00);return _0x499abf(()=>_0x457d99['permissionPointUpdate$'][_0x1394bb(0x41d)](_0x299cc9(()=>_0x2ecb1b(_0x457d99,_0x12786b,_0x4cb2b8,_0x290f00))),_0x1103c2,!0x1,[_0x457d99,_0x4cb2b8,_0x12786b,_0x290f00]);}function vr(_0x4c558c,_0x9fdb4d=_0x2353bc(0x3d5)){const _0x4627bc=_0x2353bc;return{'backgroundImage':_0x4627bc(0x3df)+JSON['stringify'](_0x4c558c)+')','backgroundPosition':_0x9fdb4d===_0x4627bc(0x42b)?_0x4627bc(0x2e2):_0x4627bc(0x4b2),'backgroundRepeat':_0x9fdb4d==='repeat'?_0x4627bc(0x42b):_0x4627bc(0x2bd),'backgroundSize':_0x9fdb4d===_0x4627bc(0x3d5)?'cover':_0x4627bc(0x3b6)};}const yr={'alignment':_0x2353bc(0x20a),'currency':_0x2353bc(0x200),'decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x2353bc(0x3b6),'numberFormat':_0x2353bc(0x3f3)},br={'CNY':'¥','EUR':'€','USD':'$'};function xr(_0x41706e){const _0x13a8ff=_0x2353bc;var _0x3560d5;let _0x380462=Tr(((_0x3560d5=_0x41706e[_0x13a8ff(0x1d8)][_0x13a8ff(0x3e3)])==null||(_0x3560d5=_0x3560d5[_0x13a8ff(0x348)])==null?void 0x0:_0x3560d5['pattern'])??'');return{...yr,..._0x380462,..._0x41706e[_0x13a8ff(0x294)]};}function Sr(_0x2a8dc1,_0xd71f9d){const _0x53f312=_0x2353bc;let _0x28391b={..._0x2a8dc1[_0x53f312(0x294)],..._0xd71f9d},_0x523c9a=xr({..._0x2a8dc1,'appearance':_0x28391b}),_0x3918f4=_0x2a8dc1['shapeData'][_0x53f312(0x3e3)]??{'formula':''};return{..._0x2a8dc1,'appearance':_0x28391b,'shapeData':{..._0x2a8dc1[_0x53f312(0x1d8)],'formulaBinding':{..._0x3918f4,'numberFormat':{'pattern':Cr(_0x523c9a[_0x53f312(0x348)],_0x523c9a[_0x53f312(0x201)],_0x523c9a[_0x53f312(0x241)])}}}};}function Cr(_0x3973a3,_0x2d6d26,_0x5d86b8){const _0x368608=_0x2353bc;let _0x164bed=Math['max'](0x0,Math[_0x368608(0x314)](0x8,Math[_0x368608(0x384)](_0x2d6d26))),_0x3c3aa5=_0x164bed?'.'+'0'[_0x368608(0x42b)](_0x164bed):'';switch(_0x3973a3){case _0x368608(0x3c4):return'0'+_0x3c3aa5;case _0x368608(0x327):return'0'+_0x3c3aa5+'%';case _0x368608(0x241):return(br[_0x5d86b8]??_0x5d86b8)+_0x368608(0x257)+_0x3c3aa5;case _0x368608(0x39e):return'#,##0'+_0x3c3aa5;case _0x368608(0x1be):case _0x368608(0x3f3):return _0x368608(0x400);}}function wr(_0xad118b,_0x4eb116,_0x2b9b34){const _0x161ee8=_0x2353bc;return _0x2b9b34[_0x161ee8(0x348)]!==_0x161ee8(0x1be)||typeof _0x4eb116!=_0x161ee8(0x3c4)||!Number['isFinite'](_0x4eb116)?_0xad118b:new Intl[(_0x161ee8(0x38e))](void 0x0,{'notation':_0x161ee8(0x1be),'minimumFractionDigits':_0x2b9b34['decimalPlaces']??0x0,'maximumFractionDigits':_0x2b9b34['decimalPlaces']??0x0})[_0x161ee8(0x347)](_0x4eb116);}function Tr(_0x2f543a){const _0x47b3c0=_0x2353bc;var _0x3237f4,_0x43afd7;if(!_0x2f543a||_0x2f543a===_0x47b3c0(0x400))return{};let _0x407347=_0x2f543a[_0x47b3c0(0x208)](/\.([0#]+)/),_0x332cab=(_0x407347==null||(_0x3237f4=_0x407347[0x1])==null?void 0x0:_0x3237f4[_0x47b3c0(0x4da)])??0x0;if(_0x2f543a['includes']('%'))return{'decimalPlaces':_0x332cab,'numberFormat':_0x47b3c0(0x327)};let _0x367d33=(_0x43afd7=Object[_0x47b3c0(0x2ff)](br)[_0x47b3c0(0x397)](([,_0xae1bca])=>_0x2f543a[_0x47b3c0(0x331)](_0xae1bca)))==null?void 0x0:_0x43afd7[0x0];return _0x367d33?{'currency':_0x367d33,'decimalPlaces':_0x332cab,'numberFormat':'currency'}:{'decimalPlaces':_0x332cab,'numberFormat':_0x2f543a['includes'](',')?'grouped':'number'};}const Er={'center':_0x2353bc(0x4b2),'left':_0x2353bc(0x4e6),'right':'flex-end'};function Dr({dashboardId:_0x48d429,unitId:_0x5b6f48,widget:_0x983fc8}){const _0x26021b=_0x2353bc;var _0x285c28,_0x1643a4,_0x5d79db,_0x1f276e,_0x736c6e,_0x37f13c,_0x20c8f6,_0x392b5c,_0x19bc59;let _0x59cd7d=_0x39b411(_0xbf6a95),_0x54d9ac=_0x39b411(_0x5482b5),_0x9bdeff=_0x39b411(_0x5cd3ee),_0x1105eb=_0x56a185(()=>({'hostType':_0x51ec78[_0x26021b(0x4eb)],'unitId':_0x5b6f48,'subUnitId':_0x48d429,'shapeId':_0x983fc8['id']}),[_0x48d429,_0x5b6f48,_0x983fc8['id']]),[_0x13929c,_0x20f4e5]=_0x2be63d(()=>_0x59cd7d[_0x26021b(0x1c6)](_0x1105eb)),[_0x561b83,_0x2a02d9]=_0x2be63d(()=>{const _0x31d6ef=_0x26021b;var _0x50af33;return(_0x50af33=_0x59cd7d['getResult'](_0x1105eb))==null?void 0x0:_0x50af33[_0x31d6ef(0x284)];}),[_0x3bade5,_0x29e01c]=_0x2be63d(),_0x4fce3b=_0x35f949(null),_0x5bda28=_0x35f949(null),_0x23555b=xr(_0x983fc8);_0x38e78f(()=>{const _0x572182=_0x26021b;let _0x29665c=_0x59cd7d[_0x572182(0x4f6)][_0x572182(0x2f4)](_0x10c5b1=>{const _0x9cd0fa=_0x572182;_0x10c5b1[_0x9cd0fa(0x2f7)]===_0x5b6f48&&_0x10c5b1[_0x9cd0fa(0x4d4)]===_0x48d429&&_0x10c5b1[_0x9cd0fa(0x1ce)]===_0x983fc8['id']&&(_0x20f4e5(_0x10c5b1['presentation']),_0x2a02d9(_0x10c5b1['result'][_0x9cd0fa(0x284)]));});return()=>_0x29665c[_0x572182(0x20f)]();},[_0x48d429,_0x59cd7d,_0x1105eb,_0x5b6f48,_0x983fc8['id']]),_0x38e78f(()=>{const _0x72ea69=_0x26021b;let _0x57dfb8=_0x23555b[_0x72ea69(0x48f)];if(!_0x57dfb8||_0x57dfb8[_0x72ea69(0x4b3)]!==_0x26a785[_0x72ea69(0x43f)])return;let _0x555523=_0x54d9ac['getImageSourceCache'](_0x57dfb8[_0x72ea69(0x24c)],_0x57dfb8[_0x72ea69(0x4b3)]);if(_0x555523!=null&&_0x555523['src'])return;let _0x1a7326=!0x0;return _0x54d9ac[_0x72ea69(0x1fb)](_0x57dfb8['source'])[_0x72ea69(0x388)](_0x9057b0=>{_0x1a7326&&_0x29e01c({'source':_0x57dfb8['source'],'value':_0x9057b0});})['catch'](()=>void 0x0),()=>{_0x1a7326=!0x1;};},[_0x23555b['backgroundImage'],_0x54d9ac]);let _0x325981=((_0x285c28=_0x23555b[_0x26021b(0x48f)])==null?void 0x0:_0x285c28[_0x26021b(0x4b3)])===_0x26a785[_0x26021b(0x43f)]?((_0x1643a4=_0x54d9ac[_0x26021b(0x3c3)](_0x23555b[_0x26021b(0x48f)][_0x26021b(0x24c)],_0x23555b[_0x26021b(0x48f)][_0x26021b(0x4b3)]))==null?void 0x0:_0x1643a4[_0x26021b(0x2dd)])??((_0x3bade5==null?void 0x0:_0x3bade5['source'])===_0x23555b[_0x26021b(0x48f)][_0x26021b(0x24c)]?_0x3bade5[_0x26021b(0x284)]:''):((_0x5d79db=_0x23555b[_0x26021b(0x48f)])==null?void 0x0:_0x5d79db[_0x26021b(0x24c)])??'',_0x555868=_0x983fc8[_0x26021b(0x1d8)]['shapeText'],_0x39a2ad=_0x555868&&_0x26021b(0x4c1)in _0x555868?(_0x1f276e=_0x555868[_0x26021b(0x4c1)])==null?void 0x0:_0x1f276e[_0x26021b(0x4c4)]:void 0x0,_0xf6462b=wr((_0x13929c==null?void 0x0:_0x13929c[_0x26021b(0x452)])??'',_0x561b83,_0x23555b),_0x8f34a8=_0x983fc8[_0x26021b(0x1d8)][_0x26021b(0x47e)],_0x296aad=_0x983fc8[_0x26021b(0x1d8)][_0x26021b(0x445)],_0x399cb7=_0x39a2ad==null||(_0x736c6e=_0x39a2ad[_0x26021b(0x50b)])==null?void 0x0:_0x736c6e[_0x26021b(0x33c)],_0x638de5=_0x983fc8[_0x26021b(0x24b)]??_0x983fc8[_0x26021b(0x448)]??'';return _0x38e78f(()=>{const _0x465411=_0x26021b;let _0x2e5627=_0x4fce3b['current'],_0x51ddf8=_0x5bda28['current'];if(!_0x2e5627||!_0x51ddf8)return;let _0x5e76ab=()=>{const _0x88e4b5=_0x1cf6;if(_0x23555b[_0x88e4b5(0x1e2)]===_0x88e4b5(0x509)||!_0x2e5627['clientWidth']||!_0x2e5627['clientHeight']){_0x51ddf8[_0x88e4b5(0x3f1)]['fontSize']=_0x23555b[_0x88e4b5(0x444)]+'px';return;}let _0x5780ce=0x1,_0x485246=0x48,_0x46204e=_0x5780ce;for(;_0x5780ce<=_0x485246;){let _0x4479f9=Math[_0x88e4b5(0x1ef)]((_0x5780ce+_0x485246)/0x2);_0x51ddf8[_0x88e4b5(0x3f1)][_0x88e4b5(0x444)]=_0x4479f9+'px',_0x51ddf8[_0x88e4b5(0x4dd)]<=_0x2e5627[_0x88e4b5(0x2b8)]&&_0x51ddf8[_0x88e4b5(0x48e)]<=_0x2e5627[_0x88e4b5(0x249)]?(_0x46204e=_0x4479f9,_0x5780ce=_0x4479f9+0x1):_0x485246=_0x4479f9-0x1;}_0x51ddf8['style'][_0x88e4b5(0x444)]=_0x46204e+'px';};if(_0x5e76ab(),typeof ResizeObserver>'u')return;let _0x392835=new ResizeObserver(_0x5e76ab);return _0x392835['observe'](_0x2e5627),()=>_0x392835[_0x465411(0x1ad)]();},[_0x23555b[_0x26021b(0x444)],_0x23555b[_0x26021b(0x1e2)],_0xf6462b]),_0x2b00c1(_0x26021b(0x442),{'data-dashboard-formula-shape':_0x983fc8['id'],'className':_0x26021b(0x2ad),'style':{'backgroundColor':((_0x37f13c=_0x983fc8[_0x26021b(0x294)])==null?void 0x0:_0x37f13c[_0x26021b(0x394)])??((_0x8f34a8==null?void 0x0:_0x8f34a8[_0x26021b(0x446)])===_0x1869dd[_0x26021b(0x1e9)]?_0x8f34a8[_0x26021b(0x33a)]??void 0x0:void 0x0),'border':(_0x296aad==null?void 0x0:_0x296aad['lineStrokeType'])===_0x19c511[_0x26021b(0x289)]?(_0x296aad[_0x26021b(0x3c9)]??0x1)+'px\x20solid\x20'+(_0x296aad[_0x26021b(0x33a)]??_0x26021b(0x2e9)):void 0x0,'borderRadius':_0x983fc8[_0x26021b(0x34b)]===_0x4387d7['RoundRect']?0xc:void 0x0,'color':((_0x20c8f6=_0x983fc8[_0x26021b(0x294)])==null?void 0x0:_0x20c8f6[_0x26021b(0x204)])??(_0x13929c==null?void 0x0:_0x13929c[_0x26021b(0x33a)])??(_0x399cb7==null||(_0x392b5c=_0x399cb7['cl'])==null?void 0x0:_0x392b5c[_0x26021b(0x491)])??void 0x0,'fontWeight':_0x399cb7!=null&&_0x399cb7['bl']?0x258:void 0x0,'textAlign':_0x23555b[_0x26021b(0x22e)]},'children':[_0x325981&&_0x4dabb7('img',{'src':_0x325981,'alt':'','aria-hidden':_0x26021b(0x1d5),'className':_0x26021b(0x454),'style':{'objectFit':((_0x19bc59=_0x23555b['backgroundImage'])==null?void 0x0:_0x19bc59['fit'])??_0x26021b(0x3d5)}}),_0x2b00c1(_0x26021b(0x442),{'className':_0x26021b(0x4bc),'children':[_0x638de5&&_0x4dabb7(_0x26021b(0x442),{'data-dashboard-formula-description':!0x0,'className':_0x26021b(0x252),'children':_0x638de5}),_0x4dabb7(_0x26021b(0x442),{'ref':_0x4fce3b,'data-dashboard-formula-value':!0x0,'aria-label':_0x638de5||_0x9bdeff['t'](_0x26021b(0x268)),'className':_0x26021b(0x22f),'style':{'justifyContent':Er[_0x23555b['alignment']]},'children':_0x4dabb7('span',{'ref':_0x5bda28,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x23555b[_0x26021b(0x1e2)],'className':_0x26021b(0x247),'children':_0xf6462b})})]})]});}function Y(_0x226977,_0x5c9ca8){return function(_0x5dff4d,_0x5c65d3){_0x5c9ca8(_0x5dff4d,_0x5c65d3,_0x226977);};}function Or(_0x31cfa6,_0x399b7f,_0x53415c,_0x38eadd){const _0x309298=_0x2353bc;var _0x4e895f=arguments['length'],_0x3c425f=_0x4e895f<0x3?_0x399b7f:_0x38eadd===null?_0x38eadd=Object[_0x309298(0x286)](_0x399b7f,_0x53415c):_0x38eadd,_0x9be2b9;if(typeof Reflect==_0x309298(0x43c)&&typeof Reflect[_0x309298(0x1f8)]==_0x309298(0x46e))_0x3c425f=Reflect[_0x309298(0x1f8)](_0x31cfa6,_0x399b7f,_0x53415c,_0x38eadd);else{for(var _0x54c9b9=_0x31cfa6['length']-0x1;_0x54c9b9>=0x0;_0x54c9b9--)(_0x9be2b9=_0x31cfa6[_0x54c9b9])&&(_0x3c425f=(_0x4e895f<0x3?_0x9be2b9(_0x3c425f):_0x4e895f>0x3?_0x9be2b9(_0x399b7f,_0x53415c,_0x3c425f):_0x9be2b9(_0x399b7f,_0x53415c))||_0x3c425f);}return _0x4e895f>0x3&&_0x3c425f&&Object[_0x309298(0x1cc)](_0x399b7f,_0x53415c,_0x3c425f),_0x3c425f;}let kr=class{constructor(_0x3a720e,_0x20a338,_0x306103){const _0x1d40a3=_0x2353bc;this[_0x1d40a3(0x1ea)]=_0x3a720e,this['_chartThemeService']=_0x20a338,this['_renderModelManager']=_0x306103;}[_0x2353bc(0x253)](){const _0x4fdfe3=_0x2353bc;return this['_renderModelManager'][_0x4fdfe3(0x4ca)](_0x268ec5['Dom'],this['_createContext']());}[_0x2353bc(0x307)](_0x7a2d38){const _0x551d23=_0x2353bc;let _0x28b375=_0x7a2d38[_0x551d23(0x37a)][_0x551d23(0x4e8)];if(!_0x28b375)throw Error(_0x551d23(0x1b6)+_0x7a2d38[_0x551d23(0x4a5)]+_0x551d23(0x20e));let _0xd72453=this[_0x551d23(0x1ea)]['getDirection']();return{'config':_0x28b375,'style':_0xca4f0b({..._0x7a2d38[_0x551d23(0x37a)]['style'],'runtime':_0x7a2d38[_0x551d23(0x37a)]['getRuntimeContext'](_0xd72453),'direction':_0xd72453},_0x28b375['type'])};}[_0x2353bc(0x381)](){const _0x12664f=_0x2353bc;return{'resolveHostStyle':({style:_0xfad8e})=>_0x1b98f6({'style':_0xfad8e,'getRenderColor':_0x4f553c=>this[_0x12664f(0x42e)][_0x12664f(0x3f8)](_0x4f553c)}),'resolveRenderBackgroundColor':({hostStyle:_0x38dc70})=>_0x38dc70['fill']};}};kr=Or([Y(0x0,_0x2a19f9(_0x5cd3ee)),Y(0x1,_0x2a19f9(_0x23197c)),Y(0x2,_0xc28907)],kr);function Ar(_0x20326a,_0x4f9651){const _0x5cb167=_0x2353bc;var _0x27698f;_0x20326a[_0x5cb167(0x3f1)][_0x5cb167(0x394)]=_0x4f9651[_0x5cb167(0x47e)]??_0x5cb167(0x505),_0x20326a[_0x5cb167(0x3f1)]['border']=(_0x27698f=_0x4f9651[_0x5cb167(0x42c)])!=null&&_0x27698f['color']&&_0x4f9651['border'][_0x5cb167(0x3c9)]?_0x4f9651[_0x5cb167(0x42c)][_0x5cb167(0x3c9)]+_0x5cb167(0x358)+_0x4f9651[_0x5cb167(0x42c)]['color']:'',_0x20326a[_0x5cb167(0x3f1)][_0x5cb167(0x50f)]=_0x4f9651[_0x5cb167(0x30d)]?_0x4f9651[_0x5cb167(0x30d)]+'px':'',_0x20326a[_0x5cb167(0x3f1)][_0x5cb167(0x271)]=_0x5cb167(0x395),_0x20326a[_0x5cb167(0x3f1)][_0x5cb167(0x221)]=_0x5cb167(0x2ec);}function jr(_0x2e4da4){'@babel/helpers - typeof';const _0x65fba7=_0x2353bc;return jr=typeof Symbol==_0x65fba7(0x46e)&&typeof Symbol[_0x65fba7(0x25e)]==_0x65fba7(0x4f4)?function(_0x4c4a9c){return typeof _0x4c4a9c;}:function(_0x5e8e63){const _0x5c3bb8=_0x65fba7;return _0x5e8e63&&typeof Symbol==_0x5c3bb8(0x46e)&&_0x5e8e63[_0x5c3bb8(0x419)]===Symbol&&_0x5e8e63!==Symbol[_0x5c3bb8(0x215)]?'symbol':typeof _0x5e8e63;},jr(_0x2e4da4);}function Mr(_0x16d32a,_0x22dc45){const _0x555271=_0x2353bc;if(jr(_0x16d32a)!=_0x555271(0x43c)||!_0x16d32a)return _0x16d32a;var _0x39fe94=_0x16d32a[Symbol['toPrimitive']];if(_0x39fe94!==void 0x0){var _0x20f17c=_0x39fe94[_0x555271(0x2ed)](_0x16d32a,_0x22dc45||_0x555271(0x431));if(jr(_0x20f17c)!=_0x555271(0x43c))return _0x20f17c;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x22dc45===_0x555271(0x4ff)?String:Number)(_0x16d32a);}function Nr(_0x1b2372){const _0xbb8a1e=_0x2353bc;var _0x543d0f=Mr(_0x1b2372,'string');return jr(_0x543d0f)==_0xbb8a1e(0x4f4)?_0x543d0f:_0x543d0f+'';}function Pr(_0x1bd1ca,_0x15756a,_0x4f287d){const _0x236068=_0x2353bc;return(_0x15756a=Nr(_0x15756a))in _0x1bd1ca?Object[_0x236068(0x1cc)](_0x1bd1ca,_0x15756a,{'value':_0x4f287d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1bd1ca[_0x15756a]=_0x4f287d,_0x1bd1ca;}var Fr=class extends _0x2e76da{constructor(_0x2627f1,_0x41d875){const _0xe925a8=_0x2353bc;super(),this[_0xe925a8(0x4a5)]=_0x2627f1,this[_0xe925a8(0x299)]=_0x41d875,Pr(this,_0xe925a8(0x224),_0x268ec5['Dom']);}[_0x2353bc(0x3c1)](){const _0x2747a6=_0x2353bc;return{'width':Math['max'](0x1,this[_0x2747a6(0x299)][_0x2747a6(0x2b8)]),'height':Math['max'](0x1,this[_0x2747a6(0x299)][_0x2747a6(0x249)])};}[_0x2353bc(0x26a)](_0x1e83bc){const _0x42c504=_0x2353bc;Ar(this[_0x42c504(0x299)],_0x1e83bc);}async[_0x2353bc(0x4df)](){const _0x4a54c7=_0x2353bc;return this[_0x4a54c7(0x299)];}[_0x2353bc(0x1aa)](){const _0x41b344=_0x2353bc;return this[_0x41b344(0x299)][_0x41b344(0x3b1)];}[_0x2353bc(0x4af)](){}['markReady'](){}['markNotReady'](){}};function Ir({isRowDirection:_0x2acb18,runtime:_0x168129}){const _0x3a860b=_0x2353bc;let _0x497a47=_0x35f949(null),_0x314d78=_0x39b411(_0x5cd3ee),_0x528d9f=_0x39b411(_0x34ac8c),_0x4daed=_0x39b411(kr),_0x1dbdcd=_0x39b411(_0x277079);return _0x38e78f(()=>{const _0x57b2c1=_0x1cf6;let _0x123d13=_0x497a47[_0x57b2c1(0x38f)];if(!_0x123d13)return;_0x123d13[_0x57b2c1(0x48d)]();let {chartId:_0x531352,model:_0x58e3ab}=_0x168129,_0x4e2f34=_0x58e3ab[_0x57b2c1(0x30a)],_0x53c678=new Fr(_0x531352,_0x123d13),_0x3fca7a=_0x4daed['createDomChartInstance'](),_0x4c7887=!0x1,_0x470f80=null,_0x1671a4=null,_0x57e47d=null,_0x298592=null,_0x8fd474=!0x1,_0x2b459f=!0x1,_0x47ae73=Promise[_0x57b2c1(0x240)]();_0x3fca7a[_0x57b2c1(0x324)](_0x53c678);let _0x3fe789=()=>{const _0x17afd8=_0x57b2c1;var _0xb5754b,_0x118f2b,_0x4bc69c,_0x4f5d5f;if(document[_0x17afd8(0x3cb)]===_0x17afd8(0x395)||(_0xb5754b=(_0x118f2b=window)[_0x17afd8(0x27c)])!=null&&(_0xb5754b=_0xb5754b[_0x17afd8(0x2ed)](_0x118f2b,'(prefers-reduced-motion:\x20reduce)'))!=null&&_0xb5754b[_0x17afd8(0x285)]||(_0x4bc69c=(_0x4f5d5f=window)[_0x17afd8(0x27c)])!=null&&(_0x4bc69c=_0x4bc69c[_0x17afd8(0x2ed)](_0x4f5d5f,'print'))!=null&&_0x4bc69c[_0x17afd8(0x285)]||!_0x123d13[_0x17afd8(0x3b1)])return!0x1;let _0x51e2dd=_0x123d13[_0x17afd8(0x4db)]();return _0x51e2dd[_0x17afd8(0x3c9)]>0x0&&_0x51e2dd[_0x17afd8(0x312)]>0x0&&_0x51e2dd[_0x17afd8(0x214)]>0x0&&_0x51e2dd[_0x17afd8(0x2d0)]>0x0&&_0x51e2dd[_0x17afd8(0x20a)]<window[_0x17afd8(0x335)]&&_0x51e2dd[_0x17afd8(0x45e)]<window[_0x17afd8(0x47d)];},_0x12cb99=()=>{const _0x3c75e3=_0x57b2c1;_0x1671a4!==null&&clearTimeout(_0x1671a4),_0x123d13[_0x3c75e3(0x29d)][_0x3c75e3(0x489)]=_0x3c75e3(0x1d5),_0x123d13[_0x3c75e3(0x29d)][_0x3c75e3(0x35b)]=String(_0x5cdbed),_0x1671a4=setTimeout(()=>{const _0x556e28=_0x3c75e3;_0x1671a4=null,delete _0x123d13[_0x556e28(0x29d)][_0x556e28(0x489)],delete _0x123d13[_0x556e28(0x29d)]['baseChartDataAnimationDuration'];},_0x5cdbed);},_0x15972e=_0x2279c5=>{const _0x446758=_0x57b2c1;if(_0x4c7887)return;if(_0x470f80!==null&&(clearTimeout(_0x470f80),_0x470f80=null),!_0x58e3ab['config']){_0x2b459f||=_0x2279c5;return;}_0x123d13[_0x446758(0x29d)][_0x446758(0x3e2)]=String(_0x58e3ab['chartType']),_0x123d13[_0x446758(0x29d)]['chartRowDirection']=String(_0x2acb18);let _0x460073=_0x4daed[_0x446758(0x307)](_0x168129),_0x267390={'chartId':_0x531352,'config':_0x460073[_0x446758(0x4e8)],'style':_0x460073['style']};_0x47ae73=_0x47ae73[_0x446758(0x388)](async()=>{const _0x53cfe0=_0x446758;_0x4c7887||(_0x123d13['dataset'][_0x53cfe0(0x46b)]=String(Number(_0x123d13[_0x53cfe0(0x29d)]['renderRevision']??0x0)+0x1),_0x2279c5&&_0x57e47d&&_0x3fca7a[_0x53cfe0(0x276)]&&_0x3fe789()?(await _0x3fca7a[_0x53cfe0(0x276)](_0x57e47d,_0x267390,{'duration':_0x5cdbed}),_0x4c7887||_0x12cb99()):await _0x3fca7a[_0x53cfe0(0x34e)](_0x267390),_0x57e47d=_0x267390);})[_0x446758(0x3d2)](_0x17964e=>_0x528d9f[_0x446758(0x1b4)](_0x446758(0x49f),_0x17964e));},_0x4b87e7=(_0x57a115=!0x1)=>{_0x2b459f||=_0x57a115,!_0x8fd474&&(_0x8fd474=!0x0,queueMicrotask(()=>{_0x8fd474=!0x1;let _0xaab000=_0x2b459f;_0x2b459f=!0x1,_0x15972e(_0xaab000);}));},_0x2baaa2=[_0x4e2f34[_0x57b2c1(0x45c)][_0x57b2c1(0x2f4)](_0x33336f=>{const _0x2f891d=_0x57b2c1;let _0x309603=JSON[_0x2f891d(0x492)](_0x33336f);_0x298592!=null&&_0x298592!==_0x309603&&_0x4b87e7(!0x0),_0x298592=_0x309603;}),_0x58e3ab[_0x57b2c1(0x3f9)]['subscribe'](_0x3adde4=>{_0x3adde4&&_0x4b87e7();}),_0x58e3ab[_0x57b2c1(0x2d4)][_0x57b2c1(0x2f4)](()=>_0x4b87e7()),_0x314d78['direction$'][_0x57b2c1(0x2f4)](()=>_0x4b87e7()),_0x4d74fa([_0x1dbdcd[_0x57b2c1(0x227)],_0x1dbdcd[_0x57b2c1(0x3d1)]])[_0x57b2c1(0x41d)](_0x260464(0x1))[_0x57b2c1(0x2f4)](()=>_0x4b87e7())],_0x3b7d77=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x187193=_0x57b2c1;_0x4c7887||(_0x53c678[_0x187193(0x4af)](),_0x470f80!==null&&clearTimeout(_0x470f80),_0x470f80=setTimeout(()=>_0x4b87e7(),0x64));});return _0x3b7d77==null||_0x3b7d77[_0x57b2c1(0x23b)](_0x123d13),()=>{const _0x1e3c2b=_0x57b2c1;_0x4c7887=!0x0,_0x470f80!==null&&clearTimeout(_0x470f80),_0x1671a4!==null&&clearTimeout(_0x1671a4),delete _0x123d13[_0x1e3c2b(0x29d)][_0x1e3c2b(0x489)],delete _0x123d13[_0x1e3c2b(0x29d)][_0x1e3c2b(0x35b)],_0x3b7d77==null||_0x3b7d77[_0x1e3c2b(0x1ad)](),_0x2baaa2[_0x1e3c2b(0x3c0)](_0x5e0228=>_0x5e0228[_0x1e3c2b(0x20f)]()),_0x3fca7a[_0x1e3c2b(0x2d9)](),_0x53c678['dispose'](),_0x123d13[_0x1e3c2b(0x48d)]();};},[_0x2acb18,_0x314d78,_0x528d9f,_0x4daed,_0x168129,_0x1dbdcd]),_0x4dabb7(_0x3a860b(0x442),{'ref':_0x497a47,'data-u-comp':_0x3a860b(0x2b5),'className':_0x3a860b(0x41b)});}function Lr({filters:_0x231dff,onRuntimeChange:_0x52cee9,unitId:_0x329254,widget:_0x1a3c69}){const _0x1e70b0=_0x2353bc;let _0x4fe889=_0x39b411(_0x4074e5),_0x6c10c5=_0x39b411(_0x5cd3ee),_0x48ec66=_0x39b411(_0x34ac8c),_0x393b04=_0x39b411(_0x22ef82),[_0x2eb232,_0xf5b165]=_0x2be63d(null),[_0x3b723e,_0x1252f7]=_0x2be63d(!0x1),[_0x396abc,_0x5393d6]=_0x2be63d(null),_0x4257d0=_0x35f949(_0x1e70b0(0x3ea)+_0x325e5d(0x8)),_0x2e4a46=_0x4fe889['getUnit'](_0x329254,_0x51ec78[_0x1e70b0(0x4eb)]),_0x1251d7=_0x2e4a46==null?void 0x0:_0x2e4a46['getSnapshot']()['tables'][_0x1a3c69['tableId']],_0x636774=_0x1251d7==null?void 0x0:_0x1251d7[_0x1e70b0(0x451)][_0x1a3c69[_0x1e70b0(0x399)]],_0x16a62e=Rr(_0x636774);if(_0x38e78f(()=>{const _0xc392f=_0x1e70b0;if(!_0x16a62e)return;let _0x35a8b8=_0x4257d0['current'];return _0x393b04['acquireChartRuntime'](_0x35a8b8,{'unitId':_0x329254,'tableId':_0x1a3c69[_0xc392f(0x475)],'viewId':_0x1a3c69['pivotViewId'],'filters':[]}),()=>{const _0x592605=_0xc392f;_0x393b04[_0x592605(0x503)](_0x329254,_0x35a8b8),_0x52cee9==null||_0x52cee9(_0x1a3c69['id'],null);};},[_0x16a62e,_0x52cee9,_0x393b04,_0x329254,_0x1a3c69['id'],_0x1a3c69[_0x1e70b0(0x399)],_0x1a3c69[_0x1e70b0(0x475)]]),_0x38e78f(()=>{const _0x29f1cb=_0x1e70b0;if(!Rr(_0x636774))return;let _0xf030c=!0x0,_0x21103a=_0x1a3c69['chart']??_0x636774[_0x29f1cb(0x4e8)]['chart'],_0x2ca16e={'unitId':_0x329254,'tableId':_0x1a3c69[_0x29f1cb(0x475)],'viewId':_0x1a3c69[_0x29f1cb(0x399)],'filters':[_0x636774[_0x29f1cb(0x1b3)]??null,..._0x231dff]};return _0x393b04[_0x29f1cb(0x41f)](_0x329254,_0x4257d0[_0x29f1cb(0x38f)],_0x2ca16e,_0x21103a)[_0x29f1cb(0x388)](_0x54e590=>{const _0x2c573d=_0x29f1cb;if(!_0xf030c||!_0x54e590)return;let _0x5de8c0=_0x393b04[_0x2c573d(0x33e)](_0x329254,_0x4257d0[_0x2c573d(0x38f)])??null;_0xf5b165(_0x54e590),_0x5393d6(_0x5de8c0),_0x1252f7(!0x1),_0x52cee9==null||_0x52cee9(_0x1a3c69['id'],_0x5de8c0);})[_0x29f1cb(0x3d2)](_0x58a6d9=>{const _0x2f73d6=_0x29f1cb;_0x48ec66[_0x2f73d6(0x1b4)]('[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x58a6d9),_0xf030c&&(_0xf5b165(null),_0x1252f7(!0x0));}),()=>{_0xf030c=!0x1;};},[_0x231dff,_0x48ec66,_0x52cee9,_0x393b04,_0x329254,_0x636774,_0x1a3c69[_0x1e70b0(0x4d8)],_0x1a3c69['id'],_0x1a3c69[_0x1e70b0(0x399)],_0x1a3c69[_0x1e70b0(0x475)]]),!Rr(_0x636774))return _0x4dabb7(_0x1e70b0(0x442),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','children':_0x6c10c5['t'](_0x1e70b0(0x3d7))});let _0x3ffa9b=_0x393b04[_0x1e70b0(0x33e)](_0x329254,_0x4257d0[_0x1e70b0(0x38f)])===_0x396abc?_0x396abc:null;return _0x2eb232&&_0x3ffa9b?_0x4dabb7(Ir,{'isRowDirection':_0x2fa6dd((_0x1a3c69['chart']??_0x636774[_0x1e70b0(0x4e8)][_0x1e70b0(0x4d8)])['orient']),'runtime':_0x3ffa9b}):_0x4dabb7(_0x1e70b0(0x442),{'className':_0x1e70b0(0x2d2),'children':_0x6c10c5['t'](_0x3b723e?'bases-dashboard-ui.pivot.calculationFailed':_0x1e70b0(0x463))});}function Rr(_0x2d5278){const _0x209af7=_0x2353bc;return(_0x2d5278==null?void 0x0:_0x2d5278['type'])===_0x5ee6b5[_0x209af7(0x49c)]&&typeof _0x2d5278[_0x209af7(0x4e8)]=='object'&&_0x2d5278[_0x209af7(0x4e8)]!==null&&_0x209af7(0x4aa)in _0x2d5278['config']&&_0x209af7(0x4d8)in _0x2d5278[_0x209af7(0x4e8)];}const zr={'alignment':'left','fontSize':0x12,'fontSizeMode':_0x2353bc(0x3b6)};function Br(_0x4bb747){const _0x3344ab=_0x2353bc;return{...zr,..._0x4bb747[_0x3344ab(0x294)]};}function Vr(_0x55cfa2){const _0x44e5f2=_0x2353bc;var _0x392692;return((_0x392692=_0x55cfa2['body'])==null?void 0x0:_0x392692['dataStream'][_0x44e5f2(0x436)](/\r\n$/,'')[_0x44e5f2(0x436)](/\r/g,'\x0a'))??'';}function _0x5550(){const _0x495b73=['bases-dashboard-ui.pivot.numberFormat','pageRows','base-dashboard-pivot-chart-','univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize','span','bases-dashboard-ui.dashboard.add','trim','bases-dashboard-ui.operators.isEmpty','radar','style','isSubtotal','general','BEFORE','getSnapshot','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.tableOnly','getRenderColor','config$','addFieldWithSourceId','2200219fEeaiZ','GREATER_THAN','supports','dashboardOrder','map','General','set','showRowGrandTotal','acquireChartRuntime','bases-dashboard-ui.pivot.removeField','pluginName','bases-dashboard-ui.chart.common.chartAndAxisTitles','1.0.3','clientY','bases-dashboard-ui.pivot.layoutCompact','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','repeatColLabels','univer-size-5\x20univer-rotate-90','NOT_CONTAINS','univer-size-4','bases-dashboard-ui.pivot.pageDirection','univer-shrink-0\x20univer-px-3','viewOrder','bases-dashboard-ui.pivot.pageWrap','rowSubtotalPosition','univer-flex','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','Number','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','series','constructor','bases-dashboard-ui.pivot.addToFilter','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','items','pipe','test','refreshChartRuntime','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','bases-dashboard-ui.pivot.layoutOutline','bases-dashboard-ui.pivot.top','item','bases-dashboard-ui.dashboard.search','scrollTop','univer-bg-gray-50/80\x20dark:!univer-bg-gray-800/70\x20univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-p-3\x20dark:!univer-border-gray-700','setConfig','Positive','subItem','Rating','repeat','border','univer-pointer-events-none\x20univer-absolute\x20univer-z-30\x20univer-appearance-none\x20univer-p-0\x20univer-opacity-0\x20!univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','_chartThemeService','bases-dashboard-ui.pivot.max','bases-dashboard-ui.chart.common.switchRowColumn','default','small','gray','onCommit','MultipleGrandTotal','replace','67974DtPsPC','files','layout','bases-dashboard-ui.pivot.ascending','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','object','fieldId','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','UUID','base-pivot-chart-configuration','univer-text-sm\x20univer-font-medium','div','univer-grid\x20univer-gap-4\x20univer-p-4','fontSize','stroke','fillType','_configService','title','bases-dashboard-ui.dashboardInspector.reset','bases-dashboard-ui.pivot.showRowSubtotal','info','bases-dashboard-ui.pivot.product','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','minmax(0,\x203fr)\x20minmax(0,\x202fr)','bases-dashboard-ui.dashboardInspector.description','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','views','text','blur','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','page:','Row','fieldOrder','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','univer-flex\x20univer-h-full\x20univer-w-[380px]\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','parentElement','bases-dashboard-ui.dashboardInspector.contain','data$','base-pivot-chart-setup','top','bases-dashboard-ui.dashboard.text','bases-dashboard-ui.dashboardInspector.editFormula','accept','initialLayouts','bases-dashboard-ui.pivot.calculating','some','select','bases-dashboard-ui.chart.common.setup','setSubtotalType','ManualFilter','image/*','dimension','renderRevision','Sankey','dashboard-chart-style','function','bases-dashboard-ui.dashboardInspector.clear','bases-dashboard-ui.pivot.display','univer-size-8\x20univer-p-0\x20univer-text-red-500','univer-mx-auto\x20univer-size-6','univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','Scatter','tableId','bases-dashboard-ui.chart.section.relation','pie','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','repeatRowLabels','Value','formatMap','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','innerHeight','fill','bases-dashboard-ui.dashboard.new','funnel','[data-dashboard-widget]','section','tableFieldId','Series','orient','bases-dashboard-ui.chart.section.radar','row','VerticalAxis','baseChartDataAnimation','change','false','bases-dashboard-ui.pivot.countNumbers','replaceChildren','scrollHeight','backgroundImage','rowFields','rgb','stringify','bases-dashboard-ui.operators.notContains','Gauge','bases-dashboard-ui.chart.section.sunburst','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','startY','every','Column','univer-flex\x20univer-items-center\x20univer-gap-2','bases-dashboard-ui.chart.section.pie','Pivot','toLocaleLowerCase','onFilter','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','children','bases-dashboard-ui.pivot.acrossThenDown','UpdatedAt','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','isFinite','chartId','displayMode','bases-dashboard-ui.pivot.pivotConfiguration','bases-dashboard-ui.pivot.sourceFields','dashboard-widget-','pivot','bases-dashboard-ui.chart.section.lineAndArea','headerRowCount','values','Image','syncLayout','bases-dashboard-ui.dashboard.addWidget','data','center','sourceType','rowSpan','onMove','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','bases-dashboard-ui.dashboardInspector.enterValue','packageName','table','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','rows','bases-dashboard-ui.operators.is','exitFullscreen','univer-w-24','dataModel','setLabelFilterInfo','lastCol','doc','ParetoLineSeries','getAttachmentUrl','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','getOptions','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','createChartInstance','onDragOver','dom','bases-dashboard-ui.dashboardInspector.compact','from','univer-flex\x20univer-gap-2','destructive','keydown','segmented','input','subUnitId','bases-dashboard-ui.chart.common.legend','document','Person','chart','BaseDashboard','length','getBoundingClientRect','lastRow','scrollWidth','system','ensureMount','univer-grid\x20univer-gap-4','widgets','toUpperCase','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','Radar','LineAndArea','flex-start','Date','config','base-pivot-chart-','list','UNIVER_BASE','push','itemTypes','bases-dashboard-ui.dashboard.undo','Line','average','univer-flex\x20univer-flex-col\x20univer-gap-4','bases-dashboard-ui.operators.after','base-pivot-fields','symbol','Funnel','presentationChanged$','onCancel','toDate','univer-flex\x20univer-justify-end\x20univer-gap-2','ChartStyle','bases-dashboard-ui.dashboardInspector.uploadImage','univer-size-6\x20!univer-border\x20!univer-border-solid\x20!univer-border-gray-200\x20!univer-bg-gray-0\x20univer-p-0\x20!univer-shadow-none\x20hover:!univer-bg-gray-100\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900\x20dark:hover:!univer-bg-gray-800','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-96\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.addToValue','string','bases-dashboard-ui.dashboardInspector.numberFormat','colView','bases-dashboard-ui.dashboardInspector.currency','releaseChartRuntime','saveAttachment','transparent','field','waterfall.positive','legend','custom','separator','documentStyle','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.addToColumn','36170QJphQa','borderRadius','operator','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','blank','labelId','bases-dashboard-ui.chart.common.series','checkMounted','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','register','disconnect','getId','context','updateFieldPosition','Pie','univer-grid\x20univer-gap-3\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','filter','error','univer-w-full','Base\x20dashboard\x20chart\x20','pageOverThenDown','conditions','bases-dashboard-ui.dashboard.widgetActions','defaultValue','valuePosition','join','univer-size-5\x20univer-text-primary-600','compact','bases-dashboard-ui.dashboardInspector.close','univer-flex\x20univer-min-h-0\x20univer-flex-1','add','stdDevp','bases-dashboard-ui.pivot.rowSubtotalPosition','bases-dashboard-ui.dashboard.section','univer-text-right','getPresentation','measure','bases-dashboard-ui.dashboard.redo','bases-dashboard-ui.pivot.displayName','bases-dashboard-ui.operators.greaterThan','bases-dashboard-ui.chart.section.paretoBar','defineProperty','getTableFieldsByDataFieldId','shapeId','univer-box-content\x20univer-size-1.5\x20univer-rounded-full\x20!univer-border-2\x20!univer-border-solid\x20!univer-border-white\x20!univer-bg-primary-600','snapshot','addEventListener','IS_NOT','Subtotal','bases-dashboard-ui.pivot.rows','true','WaterfallSeries','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','shapeData','ChartAndAxisTitles','bases-dashboard-ui.dashboardInspector.custom','bases-dashboard-ui.chart.section.candlestick','239899hmavMD','bases-dashboard-ui.dashboardInspector.data','stopPropagation','Data','sortInfo','bases-dashboard-ui.dashboardInspector.number','fontSizeMode','cumulativeLineStyle','data:','tableOrder','rightY','pointermove','renameField','SolidFill','_localeService','disposeWithMe','bases-dashboard-ui.chart.common.verticalAxis','img','GridlinesAndTicks','floor','bases-dashboard-ui.dashboardInspector.removeImage','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','pointerY','232yMFdKS','bases-dashboard-ui.pivot.repeatColumnLabels','MultiSelect','body','decorate','valueFields','undos','getImage','corner:','bases-dashboard-ui.dashboardInspector.right','Candlestick','executeCommand','USD','decimalPlaces','AFTER','univer-h-full\x20univer-w-full\x20univer-bg-transparent','textColor','Checkbox','onMoveUp','@univerjs-pro/bases-dashboard-ui','match','date','left','baseOn','onDrop','Heatmap','\x20has\x20no\x20render\x20config.','unsubscribe','startX','bases-dashboard-ui.dashboardInspector.decimalPlaces','bases-dashboard-ui.pivot.grandTotal','271638dDHyCC','right','prototype','bases-dashboard-ui.dashboardInspector.unchecked','rootContainerElement','var','bases-dashboard-ui.dashboardInspector.textSize','bases-dashboard-ui.dashboardInspector.textColor','ascending','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','GrandTotal','_config','undoRedoStatus$','resize','boxSizing','bases-dashboard-ui.dashboardInspector.formula','IndicatorLine','mode','base-pivot-table-configuration','univer-truncate','currentTheme$','button','descending','documentElement','bases-dashboard-ui.chart.section.paretoLine','varp','pageView','alignment','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','minmax(0,\x201fr)','tbody','YYYY-MM-DD','bases-dashboard-ui.dashboard.configure','80zRxAjT','onMoveDown','end','bases-dashboard-ui.dashboardInspector.center','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','bases-dashboard-ui.chart.section.funnel','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','observe','trendline','imageSourceType','wordCloud','univer-w-36','resolve','currency','Histogram','bases-dashboard-ui.operators.before','bases-dashboard-ui.pivot.defaultName','bases-dashboard-ui.dashboardInspector.backgroundColor','showRowSubtotal','univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','clientHeight','isHeader','description','source','indicatorLine','removeField','Waterfall','currentTarget','activeRuntimeModel','univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','createDomChartInstance','paragraphId','bases-dashboard-ui.chart.section.histogram','bases-dashboard-ui.dashboardInspector.replaceImage','#,##0','view','bases-dashboard-ui.dashboard.rename','defaultPrevented','onReady','bases-dashboard-ui.dashboardInspector.newCondition','bases-dashboard-ui.pivot.valuePosition','iterator','univer-mt-2\x20univer-w-full','bases-dashboard-ui.dashboardInspector.originalSize','bases-dashboard-ui.chart.section.gridlinesAndTicks','titles','setSortInfo','BASE_DASHBOARD_UI_PLUGIN','indexOf','univer-mt-2','bases-dashboard-ui.dashboardInspector.backgroundImage','bases-dashboard-ui.dashboard.formulaShape','area','setStyle','bases-dashboard-ui.chart.common.horizontalAxis','ownerDocument','univer-grid\x20univer-gap-2\x20univer-p-3','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','columnSpan','GeneralSeries','overflow','size','fields','formula','contains','renderTransition','Trendline','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','move','base-pivot-options','matchMedia','removeEventListener','changed$','AND','showColSubtotal','fullscreenElement','bases-dashboard-ui.pivot.repeatRowLabels','clientX','value','matches','getOwnPropertyDescriptor','onRemove','bases-dashboard-ui.dashboard.fullScreen','SolidLine','univer-flex\x20univer-h-full\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.addToRow','rowView','bases-dashboard-ui.dashboardInspector.left','univer-text-gray-400','setLayout','univer-min-w-0\x20univer-flex-1','bases-dashboard-ui.pivot.layout','bases-dashboard-ui.dashboardInspector.general','bases-dashboard-ui.dashboard.image','appearance','dashboard-chart-setup','TableFilter','WordCloud','Text','_element','bases-dashboard-ui.pivot.dropFieldsHere','bases-dashboard-ui.dashboardInspector.autoFit','bases-dashboard-ui.pivot.count','dataset','kind','version','_injector','bases-dashboard-ui.pivot.filters','bases-dashboard-ui.pivot.blank','change$','dataView','bases-dashboard-ui.pivot.fields','bases-dashboard-ui.chart.common.chartStyle','stdDev','bases-dashboard-ui.operators.lessThanOrEqual','displayName','bases-dashboard-ui.dashboardInspector.loading','bases-dashboard-ui.mobile.moveUp','bases-dashboard-ui.dashboardInspector.style','univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-flex-col\x20univer-justify-center\x20univer-overflow-hidden\x20univer-bg-gray-0\x20univer-p-4\x20univer-text-gray-1000\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-50','Bubble','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','9NQOIMn','getResource','bases-dashboard-ui.pivot.descending','IS_EMPTY','1023704qcaUpR','base-pivot-chart','aside','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','clientWidth','bases-dashboard-ui.pivot.variance','bases-dashboard-ui.chart.section.wordCloud','bases-dashboard-ui.pivot.showColumnSubtotal','original','no-repeat','bases-dashboard-ui.chart.section.treemap','sum','bases-dashboard-ui.pivot.summarizeBy','bases-dashboard-ui.pivot.showColumnGrandTotal','bases-dashboard-ui.chart.common.heatmap','276zzAXvQ','bases-dashboard-ui.chart.section.waterfall','univer-cursor-grab','rightYAxis','bases-dashboard-ui.pivot.fieldSettings','tabular','fit','bases-dashboard-ui.pivot.showRowGrandTotal','barStyle','subtotal','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','redos','getValueIndex','bottom','Boxplot','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','bases-dashboard-ui.pivot.clearFilter','style$','10383SIiYEq','product','univer-w-full\x20univer-justify-start','getCurrentTheme','dispose','bases-dashboard-ui.pivot.dataSource','onStarting','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','src','setFieldFormat','executeChartUpdateConfig','bases-dashboard-ui.dashboardInspector.editData','filterFields','0\x200','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','Chord','Pareto','bases-dashboard-ui.operators.isNot','bases-dashboard-ui.dashboardInspector.cover','245czrfnV','currentColor','showColGrandTotal','max','border-box','call','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-gray-50\x20univer-font-semibold\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.dashboard.deleteWidget','get','univer-group\x20univer-relative\x20univer-flex\x20univer-min-h-0\x20univer-flex-col\x20univer-overflow-visible\x20univer-rounded-lg\x20univer-border\x20univer-shadow-sm\x20univer-transition-shadow','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','subscribe','toJSON','bases-dashboard-ui.pivot.name','unitId','bases-dashboard-ui.config','SingleSelect','CreatedAt','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','waterfall','None','entries','heatmap','univer-flex\x20univer-min-h-full\x20univer-flex-col','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','LESS_THAN_OR_EQUAL','closest','bases-dashboard-ui.dashboard.delete','univer-mb-3\x20univer-text-sm\x20univer-font-medium','createRenderInput','base64Cache','headerMap','dataSource','has','bases-dashboard-ui.pivot.downThenAcross','radius','ceil','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','axis','base-pivot-chart-style','height','Axes','min','resizeDirection','getFieldPositionInfoById','bases-dashboard-ui.chart.chartTypes.','bases-dashboard-ui.pivot.columns','Escape','link','bases-dashboard-ui.dashboardInspector.dataSource','onDragEnd','bases-dashboard-ui.operators.isNotEmpty','contain','bases-dashboard-ui.chart.waterfall.subtotal','options','Currency','pointerup','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','bind','bases-dashboard-ui.pivot.confirm','bases-dashboard-ui.pivot.values','percent','univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','name','index','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','bases-dashboard-ui.dashboardInspector.dragWidget','split','addImageSourceCache','RightVerticalAxis','chart-and-table','includes','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','univer-min-h-11\x20univer-px-3\x20univer-text-base','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','innerWidth','key','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','rowType','color','bases-dashboard-ui.mobile.moveDown','textStyle','fullscreenchange','getChartRuntime','bases-dashboard-ui.chart.common.customize','pareto','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','univer-flex-1','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','target','bases-dashboard-ui.pivot.description','univer-m-3','format','numberFormat','count','getDashboard','shapeType','bases-dashboard-ui.pivot.calculationFailed','rowCount','render','univer-shrink-0\x20univer-rounded-full\x20univer-bg-gray-200\x20univer-px-2\x20univer-py-0.5\x20univer-text-xs\x20univer-text-gray-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-300','bases-dashboard-ui.dashboard.pivotChart','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','Style','localeKey','allowMultiple','dataFieldId','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','univer-border-gray-200\x20dark:!univer-border-gray-700','px\x20solid\x20','ParetoBarSeries','bases-dashboard-ui.pivot.searchFields','baseChartDataAnimationDuration','CONTAINS','slice','\x20/\x20span\x20','focusUnit','bases-dashboard-ui.pivot.stdDevPopulation','isBottomTotal','widgetOrder','relation','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','group','Sunburst','univer-max-h-40\x20univer-text-base','bases-dashboard-ui.pivot.selectAll','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','header','bases-dashboard-ui.pivot.chartConfiguration','HorizontalAxis','LESS_THAN','FormulaShape','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','dashboards','row:','bases-dashboard-ui.pivot.layoutTabular','onSettings','bases-dashboard-ui.chart.common.rightVerticalAxis','IS_NOT_EMPTY','bases-dashboard-ui.pivot.cancel','cornerView','univer-flex\x20univer-flex-col','outline','model','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.chart.section.chord','operand','getUnit','primary','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','_createContext','univer-bg-transparent\x20dark:!univer-bg-transparent','bases-dashboard-ui.pivot.bottom','round','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','article','bases-dashboard-ui.chart.common.trendline','then','RecordId','getFieldCountByArea','initial','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','onDragStart','NumberFormat','current','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','permissionPointUpdate$','bases-dashboard-ui.dashboardInspector.repeat','type','backgroundColor','hidden','bases-dashboard-ui.dashboard.tableFilter','find','bases-dashboard-ui.dashboard.resizeWidget','pivotViewId','lineAndArea','column','tables','bases-dashboard-ui.dashboardInspector.selectOption','grouped','bases-dashboard-ui.dashboard.editWidget','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','bases-dashboard-ui.pivot.filterField','bases-dashboard-ui.mobile.permissions','PivotChart','dashboard-','valueIndex','waterfallStyle','RoundRect','waterfall.negative','bases-dashboard-ui.chart.section.gauge','Treemap','click','bases-dashboard-ui.pivot.stdDev','filterInfo','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','darkMode','label','isConnected','bases-dashboard-ui.pivot.sum','univer-text-sm','Filter','colCount','auto','getDataFieldByTableId','Legend','dataAggregation','requestFullscreen','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','flatMap','file','Group','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','forEach','getRect','bases-dashboard-ui.operators.lessThan','getImageSourceCache','number','Progress','bases-dashboard-ui.pivot.chartAndTable','bases-dashboard-ui.pivot.chartOnly','countNums','width','preventDefault','visibilityState','univer-border-0\x20univer-bg-transparent','allSeriesStyle','setCurrentUnitForType','bases-dashboard-ui.dashboardInspector.alignment','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','darkMode$','catch','univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.chart.common.editChart','cover','createElement','bases-dashboard-ui.dashboardInspector.sourceUnavailable','alt','conjunction','GREATER_THAN_OR_EQUAL','setOptions','saveImage','Relation','dashboard-text-','url(','bases-dashboard-ui.pivot.variancePopulation','bases-dashboard-ui.operators.greaterThanOrEqual','chartType','formulaBinding','bases-dashboard-ui.pivot.average','bases-dashboard-ui.dashboard.defaultName','updateValuePosition','bases-dashboard-ui.dashboardInspector.checked'];_0x5550=function(){return _0x495b73;};return _0x5550();}function Hr(_0x546313,_0x1f9b9a){const _0x1e4e18=_0x2353bc;var _0x43acee;let _0x5cadfb=_0x1f9b9a[_0x1e4e18(0x436)](/\r\n|\r/g,'\x0a')[_0x1e4e18(0x32d)]('\x0a'),_0x2c3b46=_0x5cadfb[_0x1e4e18(0x1bc)]('\x0d')+'\x0d\x0a',_0xf29daf=((_0x43acee=_0x546313[_0x1e4e18(0x1f7)])==null?void 0x0:_0x43acee['paragraphs'])??[],_0x5c3c22=new Set(_0xf29daf[_0x1e4e18(0x3ff)](_0x5b4b88=>_0x5b4b88[_0x1e4e18(0x254)])),_0xbd9f41=0x0,_0x5d26b3=_0x5cadfb[_0x1e4e18(0x3ff)]((_0x1c82e4,_0x36ed3d)=>{_0xbd9f41+=_0x1c82e4['length'];let _0x2040c5={..._0xf29daf[_0x36ed3d]??{'startIndex':_0xbd9f41,'paragraphId':_0x112de2(_0x5c3c22)},'startIndex':_0xbd9f41};return _0xbd9f41+=0x1,_0x2040c5;});return{..._0x546313,'body':{..._0x546313[_0x1e4e18(0x1f7)],'dataStream':_0x2c3b46,'paragraphs':_0x5d26b3,'textRuns':[]}};}function Ur({widget:_0x1b5e65}){const _0x1d3d68=_0x2353bc;let _0x2cda5d=_0x39b411(_0x277079),_0x3eb3bc=_0x39b411(_0x5cd3ee),_0x49edaa=_0x499abf(()=>_0x2cda5d['currentTheme$'],_0x2cda5d['getCurrentTheme'](),!0x1,[_0x2cda5d]),_0x2a2623=_0x35f949(null),_0x3f0a58=_0x35f949(null),_0x2eac20=Br(_0x1b5e65),_0x41d782=_0x2eac20[_0x1d3d68(0x394)]??_0x49edaa[_0x1d3d68(0x433)][0x0],_0x18494e=_0x2eac20[_0x1d3d68(0x204)]??_0x49edaa[_0x1d3d68(0x433)][0x3e8],_0x362cbc=Vr(_0x1b5e65[_0x1d3d68(0x4d6)]);return _0x38e78f(()=>{const _0x193d66=_0x1d3d68;let _0x81d58c=_0x2a2623[_0x193d66(0x38f)],_0xea3b65=_0x3f0a58['current'];if(!_0x81d58c||!_0xea3b65)return;let _0x438cdb=()=>{const _0xe3d182=_0x193d66;if(_0x2eac20[_0xe3d182(0x1e2)]===_0xe3d182(0x509)||!_0x81d58c[_0xe3d182(0x2b8)]||!_0x81d58c['clientHeight']){_0xea3b65[_0xe3d182(0x3f1)][_0xe3d182(0x444)]=_0x2eac20[_0xe3d182(0x444)]+'px';return;}let _0x20350c=0x8,_0x43893f=0x48,_0xbe4a6f=_0x20350c;for(;_0x20350c<=_0x43893f;){let _0x1effc5=Math[_0xe3d182(0x1ef)]((_0x20350c+_0x43893f)/0x2);_0xea3b65[_0xe3d182(0x3f1)][_0xe3d182(0x444)]=_0x1effc5+'px',_0xea3b65[_0xe3d182(0x4dd)]<=_0x81d58c['clientWidth']&&_0xea3b65[_0xe3d182(0x48e)]<=_0x81d58c[_0xe3d182(0x249)]?(_0xbe4a6f=_0x1effc5,_0x20350c=_0x1effc5+0x1):_0x43893f=_0x1effc5-0x1;}_0xea3b65[_0xe3d182(0x3f1)][_0xe3d182(0x444)]=_0xbe4a6f+'px';};if(_0x438cdb(),typeof ResizeObserver>'u')return;let _0x4b14f9=new ResizeObserver(_0x438cdb);return _0x4b14f9[_0x193d66(0x23b)](_0x81d58c),()=>_0x4b14f9[_0x193d66(0x1ad)]();},[_0x2eac20[_0x1d3d68(0x444)],_0x2eac20['fontSizeMode'],_0x362cbc]),_0x4dabb7(_0x1d3d68(0x442),{'data-dashboard-text-widget':_0x1b5e65['id'],'className':'univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','style':{'backgroundColor':_0x41d782,'color':_0x18494e},'children':_0x4dabb7(_0x1d3d68(0x442),{'ref':_0x2a2623,'data-dashboard-text-content':!0x0,'aria-label':_0x3eb3bc['t'](_0x1d3d68(0x45f)),'className':_0x1d3d68(0x4c7),'children':_0x4dabb7(_0x1d3d68(0x442),{'ref':_0x3f0a58,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x2eac20['fontSizeMode'],'className':_0x1d3d68(0x238),'style':{'textAlign':_0x2eac20[_0x1d3d68(0x22e)]},'children':_0x362cbc})})});}function Wr({dashboard:_0x368a36,editable:_0x43d787=!0x0,onSelectWidget:_0x4a13c5,renderWidget:_0x1406c3,renderWidgetActions:_0x24e003,selectedWidgetId:_0x22ce65,widgetLabel:_0x1ceb2a}){const _0x151c16=_0x2353bc;return _0x4dabb7(_0x151c16(0x442),{'data-dashboard-scroll-container':!0x0,'className':_0x52fed8(_0x151c16(0x338),_0x2a22a5),'onClick':_0x43d787?_0x177a22=>{const _0x1ae054=_0x151c16;if(!(_0x177a22['target']instanceof Node)||!_0x177a22[_0x1ae054(0x250)][_0x1ae054(0x275)](_0x177a22[_0x1ae054(0x344)]))return;let _0x22d340=_0x177a22[_0x1ae054(0x344)]instanceof Element?_0x177a22[_0x1ae054(0x344)]:_0x177a22[_0x1ae054(0x344)][_0x1ae054(0x45a)];_0x22d340!=null&&_0x22d340[_0x1ae054(0x304)](_0x1ae054(0x481))||_0x4a13c5==null||_0x4a13c5();}:void 0x0,'children':_0x4dabb7('div',{'data-dashboard-grid':!0x0,'className':_0x151c16(0x36f),'children':_0x368a36[_0x151c16(0x362)]['map'](_0x3ff3a1=>{const _0x1c9204=_0x151c16;let _0x244daa=_0x368a36[_0x1c9204(0x4e1)][_0x3ff3a1];if(!_0x244daa)return null;let _0x3b3e82=Math[_0x1c9204(0x2eb)](0xb4,_0x244daa['layout'][_0x1c9204(0x4b4)]*_0x50185b);return _0x2b00c1('article',{'data-dashboard-widget':_0x244daa['id'],'aria-label':_0x244daa[_0x1c9204(0x448)]??_0x1ceb2a(_0x244daa),'className':_0x52fed8(_0x1c9204(0x2f1),_0x244daa[_0x1c9204(0x393)]===_0x342116[_0x1c9204(0x4ae)]||_0x244daa[_0x1c9204(0x393)]===_0x342116[_0x1c9204(0x36e)]?_0x1c9204(0x382):_0x1c9204(0x3d3),_0x43d787&&_0x22ce65===_0x244daa['id']?_0x1c9204(0x30f):_0x1c9204(0x357)),'style':{'minHeight':_0x3b3e82,'height':_0x3b3e82},'tabIndex':_0x43d787?0x0:void 0x0,'onClick':_0x43d787?()=>_0x4a13c5==null?void 0x0:_0x4a13c5(_0x244daa['id']):void 0x0,'onFocus':_0x43d787?()=>_0x4a13c5==null?void 0x0:_0x4a13c5(_0x244daa['id']):void 0x0,'children':[_0x43d787&&_0x4dabb7('div',{'className':_0x1c9204(0x2f3),'children':_0x24e003==null?void 0x0:_0x24e003(_0x244daa)}),_0x4dabb7('div',{'className':'univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','children':_0x1406c3(_0x244daa)})]},_0x244daa['id']);})})});}let Gr=class extends _0x3ae17a{constructor(_0x3f8264){const _0x1230e9=_0x2353bc;super(_0x3f8264),Pr(this,_0x1230e9(0x251),null);}[_0x2353bc(0x2df)](_0x3a5eb3){}};Gr=Or([Y(0x0,_0x2a19f9(_0x2cea70))],Gr);function Kr({children:_0x2143b2}){return _0x4dabb7(_0xac1dd7,{'children':_0x2143b2});}function qr(_0x5d5e01){return _0x4dabb7(_0x3b7f81,{..._0x5d5e01});}function Jr(_0x454423){return _0x4dabb7(_0x4083c0,{..._0x454423});}function Yr(_0x1474e5){return _0x4dabb7(_0x138a17,{..._0x1474e5});}var Xr;const X={'axis':{..._0x5caca4,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x26697d,'heatmap':_0x296680,'indicatorLine':_0x195779,'legend':_0x4fe0eb,'lineAndArea':_0x499ec0,'pareto':_0x4cf110,'pie':_0x1db8a1,'radar':_0x35ac4f,'relation':{..._0x2da675,'useValueAsSymbolSize':!0x0},'series':{..._0x396e30,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Xr=_0x46c996[_0x2353bc(0x3cd)])==null?void 0x0:Xr[_0x2353bc(0x2c6)])??!0x1}},'style':_0x5792d9,'titles':_0x21806e,'trendline':_0x563c89,'waterfall':{..._0x2c231e,'useSubtotal':!0x0},'waterfallStyle':_0x31f02c,'wordCloud':_0x8c0c35},Zr=[_0x3414f3['Line'],_0x3414f3[_0x2353bc(0x4e4)],_0x3414f3[_0x2353bc(0x297)],_0x3414f3[_0x2353bc(0x474)],_0x3414f3[_0x2353bc(0x4f5)],_0x3414f3[_0x2353bc(0x3dd)],_0x3414f3[_0x2353bc(0x46c)],_0x3414f3['Heatmap'],_0x3414f3[_0x2353bc(0x2d1)],_0x3414f3[_0x2353bc(0x1fe)],_0x3414f3['Histogram'],_0x3414f3['Treemap'],_0x3414f3['Sunburst'],_0x3414f3[_0x2353bc(0x494)],_0x3414f3[_0x2353bc(0x2e4)]];function Qr(_0x26d638){const _0x1a8e3c=_0x2353bc;let {config:_0x459fc1,onChange:_0x526207,runtime:_0x2397cf,tableName:_0x5b167a}=_0x26d638,_0x8bc3c6=_0x39b411(Gr),_0x204292=_0x39b411(_0x5cd3ee),[_0x277c9d,_0x3d17bc]=_0x2be63d(_0x139866['Data']),_0x29022e=_0x56a185(()=>new _0x29d554(_0x2397cf[_0x1a8e3c(0x37a)],{'commit':_0x40426c=>{const _0x4f765c=_0x1a8e3c;var _0x145aa8;let _0x2a17bf=_0x2397cf['model'],_0x36b775=_0x485197(_0x40426c,{'series':(_0x145aa8=_0x2a17bf[_0x4f765c(0x4e8)])==null?void 0x0:_0x145aa8[_0x4f765c(0x418)],'currentChartType':_0x2a17bf['chartType'],'currentStyle':_0x2a17bf[_0x4f765c(0x3f1)],'currentContext':_0x2a17bf[_0x4f765c(0x1af)],'currentDataAggregation':_0x2a17bf[_0x4f765c(0x3b9)]});_0x526207({'chart':$r(_0x459fc1[_0x4f765c(0x4d8)],_0x36b775)});}}),[_0x459fc1[_0x1a8e3c(0x4d8)],_0x526207,_0x2397cf]),_0x218da2=_0x56a185(()=>_0x2dbfb8(_0x170e20[_0x1a8e3c(0x3ff)](_0x4578fe=>({..._0x4578fe,'label':_0x204292['t'](ri(_0x4578fe[_0x1a8e3c(0x1a8)]))}))),[_0x204292]);return _0x4dabb7(_0x2dc504,{'chartUIService':_0x8bc3c6,'hostAdapter':_0x29022e,'children':_0x2b00c1('div',{'className':_0x1a8e3c(0x450),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x204292['t'](_0x1a8e3c(0x3d4)),'className':_0x1a8e3c(0x410),'items':[{'label':_0x204292['t'](_0x1a8e3c(0x466)),'panelId':'base-pivot-chart-setup','value':_0x139866[_0x1a8e3c(0x1df)]},{'label':_0x204292['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x1a8e3c(0x311),'value':_0x139866[_0x1a8e3c(0x352)]}],'value':_0x277c9d,'onChange':_0x3d17bc}),_0x277c9d===_0x139866[_0x1a8e3c(0x1df)]?_0x4dabb7(_0x3812e6,{'id':'base-pivot-chart-setup','label':_0x204292['t'](_0x1a8e3c(0x466)),'children':_0x2b00c1(_0x1a8e3c(0x442),{'className':_0x1a8e3c(0x4e3),'children':[_0x4dabb7(_0x195039,{'options':_0x218da2}),_0x4dabb7(_0x3eaf0a,{}),_0x4dabb7(_0x1603db,{}),_0x4dabb7(ei,{}),_0x4dabb7(_0x3210ae,{}),_0x2b00c1('div',{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x204292['t']('bases-dashboard-ui.pivot.dataSource')}),_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x5b167a})]}),_0x4dabb7(_0x26c1b7,{'orientationControl':_0x4dabb7(_0x1b3e3b,{'size':_0x1a8e3c(0x432),'onClick':()=>_0x526207({'chart':{..._0x459fc1[_0x1a8e3c(0x4d8)],'orient':_0x459fc1[_0x1a8e3c(0x4d8)]['orient']==='row'?_0x1a8e3c(0x39b):_0x1a8e3c(0x487)}}),'children':_0x204292['t'](_0x1a8e3c(0x430))})}),_0x4dabb7(_0x45db86,{}),_0x4dabb7(_0x4e37ce,{'defaultValues':X[_0x1a8e3c(0x2fd)]}),_0x2b00c1('div',{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x204292['t']('bases-dashboard-ui.pivot.display')}),_0x4dabb7(qr,{'value':_0x459fc1['displayMode'],'options':[{'value':_0x1a8e3c(0x330),'label':_0x204292['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':_0x1a8e3c(0x4d8),'label':_0x204292['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':_0x1a8e3c(0x4bb),'label':_0x204292['t'](_0x1a8e3c(0x3f7))}],'onChange':_0x1604ee=>{const _0x197162=_0x1a8e3c;(_0x1604ee==='chart-and-table'||_0x1604ee===_0x197162(0x4d8)||_0x1604ee===_0x197162(0x4bb))&&_0x526207({'displayMode':_0x1604ee});}})]})]})}):_0x4dabb7(_0x3812e6,{'id':_0x1a8e3c(0x311),'label':_0x204292['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x4dabb7(ti,{})})]})});}function $r(_0x3da4f2,_0x371df6){const _0x403af7=_0x2353bc;return{..._0x3da4f2,'type':_0x371df6[_0x403af7(0x3e2)]??_0x3da4f2['type'],'style':_0x371df6[_0x403af7(0x3f1)]??_0x3da4f2[_0x403af7(0x3f1)],'context':_0x371df6[_0x403af7(0x1af)]??_0x3da4f2['context'],'dataAggregation':_0x371df6['dataAggregation']??_0x3da4f2[_0x403af7(0x3b9)]};}function ei(){const _0xb69f9a=_0x2353bc;let _0x3275ea=_0x1f2e67();return _0x4dabb7(_0x34de73,{'visible':Zr[_0xb69f9a(0x498)](_0x218882=>!_0x4c5ed5[_0xb69f9a(0x20b)](_0x3275ea,_0x218882))});}function Z(_0x553fc8){const _0x1b1121=_0x2353bc;return _0x2b00c1(_0x1358f8,{'id':_0x553fc8['id'],'children':[_0x4dabb7(_0x352fb4,{'children':_0x553fc8[_0x1b1121(0x3b0)]}),_0x4dabb7(_0xaf7aad,{'children':_0x553fc8[_0x1b1121(0x4a0)]})]});}function ti(){const _0xbfa589=_0x2353bc;let _0x5c07c1=_0x39b411(_0x5cd3ee),_0x35deb5=_0x1f2e67(),_0x209d8e=_0x51b799(),[_0x3c1cba,_0x37837e]=_0x2be63d(null),_0xc449c=_0x4c5ed5[_0xbfa589(0x20b)](_0x35deb5,_0x3414f3['Pie']),_0x4de0ce=_0x35deb5===_0x3414f3[_0xbfa589(0x4e4)],_0x4f0883=_0x35deb5===_0x3414f3['WordCloud'],_0x210def=_0x35deb5===_0x3414f3[_0xbfa589(0x4f5)],_0x10bfca=_0x4c5ed5['baseOn'](_0x35deb5,_0x3414f3[_0xbfa589(0x2ae)]),_0x5d6391=_0x35deb5===_0x3414f3[_0xbfa589(0x3dd)],_0x26097a=_0x35deb5===_0x3414f3[_0xbfa589(0x24f)],_0x23a33f=_0x35deb5===_0x3414f3[_0xbfa589(0x2e5)],_0x2a2e3b=_0x35deb5===_0x3414f3[_0xbfa589(0x20d)],_0x2e0d24=_0x326a9b(_0x35deb5,_0x1958f1['GeneralSeries'])&&!_0x10bfca&&!_0x23a33f,_0x441410=ni(_0x35deb5,_0x5c07c1);return _0x2b00c1(_0x28ef86,{'value':_0x3c1cba,'onChange':_0x37837e,'children':[_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x4fa)],'label':_0x5c07c1['t'](_0xbfa589(0x2a6)),'children':_0x4dabb7(_0x466794,{'defaultValues':X[_0xbfa589(0x3f1)]})}),_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x1d9)],'label':_0x5c07c1['t'](_0xbfa589(0x406)),'children':_0x4dabb7(_0xe815e7,{'commitMode':_0xbfa589(0x453),'defaultValues':X[_0xbfa589(0x262)]})}),_0x2e0d24&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x484)],'label':_0x5c07c1['t']('bases-dashboard-ui.chart.common.series'),'children':_0x4dabb7(_0x3bcbff,{'defaultValues':X['series'],'NumberFormatField':_0x2f8e19})}),_0x26097a&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x1d6)],'label':_0x5c07c1['t'](_0xbfa589(0x2c4)),'children':_0x4dabb7(_0x217c37,{'defaultValues':X[_0xbfa589(0x3a6)],'getDefaultBucketName':({seriesName:_0x5101c9,target:_0x3ec3e5})=>_0x3ec3e5===_0x6a9b13[_0xbfa589(0x1d3)]?_0x5c07c1['t'](_0xbfa589(0x31f)):_0x5101c9?_0x5101c9+'-('+_0x5c07c1['t']('bases-dashboard-ui.chart.'+(_0x3ec3e5===_0x6a9b13[_0xbfa589(0x428)]?_0xbfa589(0x507):_0xbfa589(0x3a8)))+')':'','NumberFormatField':_0x2f8e19})}),_0x23a33f&&_0x2b00c1(_0xa1bb43,{'children':[_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x359)],'label':_0x5c07c1['t'](_0xbfa589(0x1cb)),'children':_0x4dabb7(_0x35a412,{'defaultValues':X[_0xbfa589(0x340)],'NumberFormatField':_0x2f8e19,'showDataPointEditor':!0x0,'target':_0xbfa589(0x2cb)})}),_0x4dabb7(Z,{'id':_0x8fe1f1['ParetoLineSeries'],'label':_0x5c07c1['t'](_0xbfa589(0x22b)),'children':_0x4dabb7(_0x35a412,{'defaultValues':X[_0xbfa589(0x340)],'NumberFormatField':_0x2f8e19,'showDataPointEditor':!0x1,'target':_0xbfa589(0x1e3)})})]}),_0xc449c&&_0x4dabb7(Z,{'id':_0x8fe1f1['PieStyle'],'label':_0x5c07c1['t']('bases-dashboard-ui.chart.section.pie'),'children':_0x4dabb7(_0x34a105,{'defaultValues':X['pie'],'NumberFormatField':_0x2f8e19})}),_0x4f0883&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x297)],'label':_0x5c07c1['t'](_0xbfa589(0x2ba)),'children':_0x4dabb7(_0x5ac713,{'defaultValues':X[_0xbfa589(0x23e)]})}),_0x4de0ce&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x4e4)],'label':_0x5c07c1['t'](_0xbfa589(0x486)),'children':_0x4dabb7(_0x4c7c71,{'defaultValues':X[_0xbfa589(0x3f0)]})}),_0x210def&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x4f5)],'label':_0x5c07c1['t'](_0xbfa589(0x239)),'children':_0x4dabb7(_0x666ad2,{'defaultValues':X['funnel'],'gapControl':_0xbfa589(0x465)})}),_0x2a2e3b&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x20d)],'label':_0x5c07c1['t'](_0xbfa589(0x2c2)),'children':_0x4dabb7(_0x3c01f2,{'defaultValues':X[_0xbfa589(0x300)]})}),_0x5d6391&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x3dd)],'label':_0x5c07c1['t'](_0xbfa589(0x476)),'children':_0x4dabb7(_0x11ce9e,{'defaultValues':X[_0xbfa589(0x363)]})}),_0x59d745(_0x35deb5)&&_0x4dabb7(Z,{'id':_0x8fe1f1['LineAndArea'],'label':_0x5c07c1['t'](_0xbfa589(0x4ab)),'children':_0x4dabb7(_0x457b13,{'defaultValues':X['lineAndArea'],'lineStyleControl':_0xbfa589(0x4d2)})}),_0x326a9b(_0x35deb5,_0x1958f1[_0xbfa589(0x3b8)])&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x3b8)],'label':_0x5c07c1['t'](_0xbfa589(0x4d5)),'children':_0x4dabb7(_0x1dc64f,{'defaultValues':X[_0xbfa589(0x508)]})}),_0x326a9b(_0x35deb5,_0x1958f1[_0xbfa589(0x313)])&&_0x2b00c1(_0xa1bb43,{'children':[_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x36c)],'label':_0x5c07c1['t'](_0xbfa589(0x26b)),'children':_0x4dabb7(_0x185c32,{'axis':'x','defaultValues':X['axis'],'NumberFormatField':_0x2f8e19})}),_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x488)],'label':_0x5c07c1['t'](_0xbfa589(0x1ec)),'children':_0x4dabb7(_0x185c32,{'axis':'y','defaultValues':X[_0xbfa589(0x310)],'NumberFormatField':_0x2f8e19})}),_0x209d8e&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x32f)],'label':_0x5c07c1['t'](_0xbfa589(0x374)),'children':_0x4dabb7(_0x185c32,{'axis':_0xbfa589(0x1e6),'defaultValues':X[_0xbfa589(0x310)],'NumberFormatField':_0x2f8e19})}),_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x1ee)],'label':_0x5c07c1['t'](_0xbfa589(0x261)),'children':_0x4dabb7(_0x1f6674,{'defaultValues':X[_0xbfa589(0x310)]})})]}),_0x326a9b(_0x35deb5,_0x1958f1[_0xbfa589(0x223)])&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x223)],'label':_0x5c07c1['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x4dabb7(_0x5f2295,{'defaultValues':X['indicatorLine']})}),_0xae124c(_0x35deb5)&&_0x4dabb7(Z,{'id':_0x8fe1f1[_0xbfa589(0x277)],'label':_0x5c07c1['t'](_0xbfa589(0x387)),'children':_0x4dabb7(_0x3c8ddd,{'defaultValues':X[_0xbfa589(0x23c)]})}),_0x441410&&_0x4dabb7(Z,{'id':_0x441410['id'],'label':_0x441410[_0xbfa589(0x3b0)],'children':_0x4dabb7(_0x5d0cdf,{})})]});}function ni(_0x557cb7,_0x3ea701){const _0x140274=_0x2353bc;let _0x3e56ef={[_0x3414f3[_0x140274(0x1fe)]]:{'id':_0x8fe1f1[_0x140274(0x1fe)],'localeKey':_0x140274(0x1db)},[_0x3414f3['Histogram']]:{'id':_0x8fe1f1[_0x140274(0x242)],'localeKey':_0x140274(0x255)},[_0x3414f3[_0x140274(0x3aa)]]:{'id':_0x8fe1f1['Treemap'],'localeKey':_0x140274(0x2be)},[_0x3414f3[_0x140274(0x366)]]:{'id':_0x8fe1f1[_0x140274(0x366)],'localeKey':_0x140274(0x495)},[_0x3414f3[_0x140274(0x494)]]:{'id':_0x8fe1f1[_0x140274(0x494)],'localeKey':_0x140274(0x3a9)},[_0x3414f3[_0x140274(0x2e4)]]:{'id':_0x8fe1f1[_0x140274(0x2e4)],'localeKey':_0x140274(0x37c)}}[_0x557cb7];return _0x3e56ef?{'id':_0x3e56ef['id'],'label':_0x3ea701['t'](_0x3e56ef[_0x140274(0x353)])}:null;}function ri(_0x17294f){return'bases-dashboard-ui.chart.chartTypes.'+_0x17294f;}function ii({onChange:_0x24c751,onEditData:_0x328425,runtime:_0x48e895,sourceChart:_0x3bd8eb,sourceName:_0x43ddac,widget:_0x55dc0b}){const _0x3ecf51=_0x2353bc;let _0x1fcc4d=_0x39b411(Gr),_0x440d46=_0x39b411(_0x5cd3ee),[_0x1c42dc,_0x56406e]=_0x2be63d(_0x139866[_0x3ecf51(0x1df)]),_0x26c278=_0x55dc0b[_0x3ecf51(0x4d8)]??_0x3bd8eb,_0x1c74ec=_0x56a185(()=>new _0x29d554(_0x48e895[_0x3ecf51(0x37a)],{'commit':_0x2722a7=>{const _0x1cb880=_0x3ecf51;var _0x3438e4;let _0x189376=_0x48e895[_0x1cb880(0x37a)],_0x1c6e11=_0x485197(_0x2722a7,{'series':(_0x3438e4=_0x189376['config'])==null?void 0x0:_0x3438e4[_0x1cb880(0x418)],'currentChartType':_0x189376[_0x1cb880(0x3e2)],'currentStyle':_0x189376[_0x1cb880(0x3f1)],'currentContext':_0x189376[_0x1cb880(0x1af)],'currentDataAggregation':_0x189376[_0x1cb880(0x3b9)]});_0x24c751({..._0x55dc0b,'chart':$r(_0x26c278,_0x1c6e11)})['catch'](()=>void 0x0);}}),[_0x26c278,_0x24c751,_0x48e895,_0x55dc0b]),_0xee1465=_0x56a185(()=>_0x2dbfb8(_0x170e20[_0x3ecf51(0x3ff)](_0x40b079=>({..._0x40b079,'label':_0x440d46['t'](ai(_0x40b079[_0x3ecf51(0x1a8)]))}))),[_0x440d46]);return _0x4dabb7(_0x4bacfa,{'chartUIService':_0x1fcc4d,'hostAdapter':_0x1c74ec,'children':_0x2b00c1(_0x3ecf51(0x442),{'data-dashboard-chart-inspector':!0x0,'className':_0x3ecf51(0x2f2),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x440d46['t'](_0x3ecf51(0x3d4)),'className':_0x3ecf51(0x410),'items':[{'label':_0x440d46['t'](_0x3ecf51(0x466)),'panelId':_0x3ecf51(0x295),'value':_0x139866[_0x3ecf51(0x1df)]},{'label':_0x440d46['t'](_0x3ecf51(0x33f)),'panelId':_0x3ecf51(0x46d),'value':_0x139866[_0x3ecf51(0x352)]}],'value':_0x1c42dc,'onChange':_0x56406e}),_0x1c42dc===_0x139866[_0x3ecf51(0x1df)]?_0x4dabb7(_0x3812e6,{'id':'dashboard-chart-setup','label':_0x440d46['t'](_0x3ecf51(0x466)),'children':_0x2b00c1('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x4dabb7(_0x195039,{'options':_0xee1465}),_0x4dabb7(_0x3eaf0a,{}),_0x4dabb7(_0x1603db,{}),_0x4dabb7(ei,{}),_0x4dabb7(_0x3210ae,{}),_0x2b00c1(_0x3ecf51(0x442),{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x440d46['t']('bases-dashboard-ui.dashboardInspector.dataSource')}),_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x43ddac}),_0x4dabb7(_0x1b3e3b,{'className':_0x3ecf51(0x25f),'onClick':_0x328425,'children':_0x440d46['t'](_0x3ecf51(0x2e0))})]})]})}):_0x4dabb7(_0x3812e6,{'id':'dashboard-chart-style','label':_0x440d46['t'](_0x3ecf51(0x33f)),'children':_0x4dabb7(ti,{})})]})});}function ai(_0x302d85){const _0x1fa892=_0x2353bc;return _0x1fa892(0x317)+_0x302d85;}const oi=[_0x2353bc(0x3f3),_0x2353bc(0x3c4),_0x2353bc(0x327),_0x2353bc(0x241),_0x2353bc(0x39e),_0x2353bc(0x1be)];function si({base:_0x519c35,onChange:_0x255deb,onSelectBackgroundImage:_0xed7c5c,widget:_0x3d782c}){const _0x419e6d=_0x2353bc;var _0xe252be;let _0x1b4850=_0x39b411(_0x5cd3ee),_0x3fb4b2=_0x39b411(_0x277079),_0x4947f5=_0x499abf(()=>_0x3fb4b2[_0x419e6d(0x227)],_0x3fb4b2[_0x419e6d(0x2d8)](),!0x1,[_0x3fb4b2]),_0xe55b09=_0x499abf(()=>_0x3fb4b2[_0x419e6d(0x3d1)],_0x3fb4b2[_0x419e6d(0x3af)],!0x1,[_0x3fb4b2]),[_0x51db30,_0x1765e2]=_0x2be63d(_0x419e6d(0x4b1)),[_0x5fc54,_0x4271b2]=_0x2be63d(!0x1),_0x26f90a=xr(_0x3d782c),_0x5094da=_0x519c35[_0x419e6d(0x3f5)]()['tables'][_0x3d782c[_0x419e6d(0x475)]],_0x7743e6=_0x5094da==null?void 0x0:_0x5094da[_0x419e6d(0x411)][_0x419e6d(0x397)](_0x35e99a=>_0x5094da[_0x419e6d(0x451)][_0x35e99a]),_0x52623c=_0x7743e6?_0x5094da==null?void 0x0:_0x5094da[_0x419e6d(0x451)][_0x7743e6]:void 0x0,_0x5574b2=_0x5094da&&_0x52623c?_0x57cd99(_0x519c35[_0x419e6d(0x3f5)](),_0x5094da,_0x52623c)[_0x419e6d(0x3ff)](_0x45ef9d=>({..._0x45ef9d,'current':!0x1})):[],_0x6a0f9=((_0xe252be=_0x3d782c[_0x419e6d(0x1d8)][_0x419e6d(0x3e3)])==null?void 0x0:_0xe252be['formula'])??'',_0xe18a76=_0x103cda=>_0x255deb(Sr(_0x3d782c,_0x103cda))['catch'](()=>void 0x0),_0x1c3adc=_0x581676=>_0x255deb({..._0x3d782c,'description':_0x581676})[_0x419e6d(0x3d2)](()=>void 0x0);return _0x2b00c1(_0x419e6d(0x442),{'data-dashboard-formula-inspector':!0x0,'className':_0x419e6d(0x2f2),'children':[_0x4dabb7(_0x116fe9,{'className':'univer-m-3','items':[{'value':_0x419e6d(0x4b1),'label':_0x1b4850['t'](_0x419e6d(0x1dd))},{'value':_0x419e6d(0x3f1),'label':_0x1b4850['t'](_0x419e6d(0x2ac))}],'value':_0x51db30,'onChange':_0x1765e2}),_0x4dabb7(_0x419e6d(0x442),{'className':_0x419e6d(0x26e),'children':_0x51db30==='data'?_0x2b00c1(_0x419e6d(0x442),{'className':_0x419e6d(0x4e0),'children':[_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x44f)),'children':_0x4dabb7(_0x2c53ee,{'value':_0x3d782c[_0x419e6d(0x24b)]??_0x3d782c[_0x419e6d(0x448)]??'','onChange':_0x1c3adc,'onBlur':_0x546090=>_0x1c3adc(_0x546090[_0x419e6d(0x344)]['value'])})}),_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x31b)),'children':_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':(_0x5094da==null?void 0x0:_0x5094da[_0x419e6d(0x329)])??_0x1b4850['t'](_0x419e6d(0x3d7))})}),_0x2b00c1(ci,{'label':_0x1b4850['t'](_0x419e6d(0x222)),'children':[_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x1b3454(_0x6a0f9,_0x5574b2)}),_0x4dabb7(_0x1b3e3b,{'className':_0x419e6d(0x25f),'onClick':()=>_0x4271b2(!0x0),'children':_0x1b4850['t'](_0x419e6d(0x460))})]})]}):_0x2b00c1('div',{'className':_0x419e6d(0x4e0),'children':[_0x4dabb7(_0x38703b,{'emptyLabel':_0x1b4850['t'](_0x419e6d(0x245)),'label':_0x1b4850['t'](_0x419e6d(0x245)),'pickerFallbackValue':_0xe55b09?_0x4947f5[_0x419e6d(0x433)][0x384]:_0x4947f5[_0x419e6d(0x433)][0x0],'resetLabel':_0x1b4850['t'](_0x419e6d(0x449)),'value':_0x26f90a[_0x419e6d(0x394)]??null,'onChange':_0x2233b1=>_0xe18a76({'backgroundColor':_0x2233b1??void 0x0})}),_0x2b00c1(ci,{'label':_0x1b4850['t'](_0x419e6d(0x267)),'children':[_0x2b00c1('div',{'className':_0x419e6d(0x4cf),'children':[_0x2b00c1(_0x1b3e3b,{'className':_0x419e6d(0x342),'onClick':()=>{const _0xeca2d1=_0x419e6d;_0xed7c5c()[_0xeca2d1(0x388)](_0x176032=>{const _0x1d68c4=_0xeca2d1;if(_0x176032){var _0x3978e0;return _0xe18a76({'backgroundImage':{..._0x176032,'fit':((_0x3978e0=_0x26f90a[_0x1d68c4(0x48f)])==null?void 0x0:_0x3978e0['fit'])??'cover'}});}})[_0xeca2d1(0x3d2)](()=>void 0x0);},'children':[_0x4dabb7(_0x5155a3,{}),_0x26f90a[_0x419e6d(0x48f)]?_0x1b4850['t'](_0x419e6d(0x256)):_0x1b4850['t'](_0x419e6d(0x4fb))]}),_0x26f90a[_0x419e6d(0x48f)]&&_0x4dabb7(_0x1b3e3b,{'aria-label':_0x1b4850['t'](_0x419e6d(0x1f0)),'title':_0x1b4850['t'](_0x419e6d(0x1f0)),'onClick':()=>_0xe18a76({'backgroundImage':void 0x0}),'children':_0x4dabb7(_0x2d17f6,{})})]}),_0x26f90a[_0x419e6d(0x48f)]&&_0x4dabb7(_0x116fe9,{'className':_0x419e6d(0x266),'items':[{'value':_0x419e6d(0x3d5),'label':_0x1b4850['t'](_0x419e6d(0x2e7))},{'value':_0x419e6d(0x31e),'label':_0x1b4850['t'](_0x419e6d(0x45b))}],'value':_0x26f90a[_0x419e6d(0x48f)]['fit'],'onChange':_0x4a704d=>_0xe18a76({'backgroundImage':_0x26f90a[_0x419e6d(0x48f)]?{..._0x26f90a[_0x419e6d(0x48f)],'fit':_0x4a704d}:void 0x0})})]}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x1b4850['t'](_0x419e6d(0x21a)),'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0xe55b09?_0x4947f5[_0x419e6d(0x433)][0x32]:_0x4947f5[_0x419e6d(0x433)][0x3e8],'resetLabel':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x26f90a[_0x419e6d(0x204)]??null,'onChange':_0x17607b=>_0xe18a76({'textColor':_0x17607b??void 0x0})}),_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x3cf)),'children':_0x4dabb7(_0x116fe9,{'items':[{'value':'left','label':_0x1b4850['t'](_0x419e6d(0x28d))},{'value':_0x419e6d(0x4b2),'label':_0x1b4850['t'](_0x419e6d(0x237))},{'value':'right','label':_0x1b4850['t'](_0x419e6d(0x1fd))}],'value':_0x26f90a[_0x419e6d(0x22e)],'onChange':_0x56fcc0=>_0xe18a76({'alignment':_0x56fcc0})})}),_0x2b00c1(ci,{'label':_0x1b4850['t'](_0x419e6d(0x219)),'children':[_0x4dabb7(_0x116fe9,{'items':[{'value':_0x419e6d(0x3b6),'label':_0x1b4850['t'](_0x419e6d(0x29b))},{'value':_0x419e6d(0x509),'label':_0x1b4850['t'](_0x419e6d(0x1da))}],'value':_0x26f90a['fontSizeMode'],'onChange':_0x5c62ef=>_0xe18a76({'fontSizeMode':_0x5c62ef})}),_0x26f90a[_0x419e6d(0x1e2)]===_0x419e6d(0x509)&&_0x4dabb7(_0x1c2086,{'className':'univer-mt-2','min':0xc,'max':0x78,'value':_0x26f90a['fontSize'],'onChange':_0x22b14f=>_0xe18a76({'fontSize':_0x22b14f??0x28,'fontSizeMode':_0x419e6d(0x509)})})]}),_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x500)),'children':_0x4dabb7(qr,{'value':_0x26f90a[_0x419e6d(0x348)],'options':[{'value':_0x419e6d(0x3f3),'label':_0x1b4850['t'](_0x419e6d(0x292))},{'value':_0x419e6d(0x3c4),'label':_0x1b4850['t'](_0x419e6d(0x1e1))},{'value':_0x419e6d(0x327),'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.percent')},{'value':_0x419e6d(0x241),'label':_0x1b4850['t'](_0x419e6d(0x502))},{'value':_0x419e6d(0x39e),'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':_0x419e6d(0x1be),'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.compact')}],'onChange':_0x2e7ea1=>{let _0x1fc9cd=oi['find'](_0x11c21f=>_0x11c21f===_0x2e7ea1);_0x1fc9cd&&_0xe18a76({'numberFormat':_0x1fc9cd});}})}),_0x26f90a[_0x419e6d(0x348)]==='currency'&&_0x4dabb7(ci,{'label':_0x1b4850['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x4dabb7(_0x2c53ee,{'value':_0x26f90a[_0x419e6d(0x241)],'onChange':_0x59b567=>_0xe18a76({'currency':_0x59b567['slice'](0x0,0x3)[_0x419e6d(0x4e2)]()})})}),_0x26f90a[_0x419e6d(0x348)]!==_0x419e6d(0x3f3)&&_0x4dabb7(ci,{'label':_0x1b4850['t'](_0x419e6d(0x211)),'children':_0x4dabb7(_0x1c2086,{'min':0x0,'max':0x8,'value':_0x26f90a[_0x419e6d(0x201)],'onChange':_0x146695=>_0xe18a76({'decimalPlaces':_0x146695??0x0})})})]})}),_0x5fc54&&_0x4dabb7(Yr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x4dabb7(_0x33c106,{'tables':_0x5574b2,'formula':_0x1b3454(_0x6a0f9,_0x5574b2),'onCancel':()=>_0x4271b2(!0x1),'onSave':_0x19bce7=>{const _0x4ae251=_0x419e6d;let _0x51a9c5=_0x3d782c['shapeData']['formulaBinding']??{'formula':''};return _0x255deb({..._0x3d782c,'shapeData':{..._0x3d782c[_0x4ae251(0x1d8)],'formulaBinding':{..._0x51a9c5,'formula':_0x24d391(_0x19bce7,_0x5574b2)}}})[_0x4ae251(0x388)](()=>_0x4271b2(!0x1))['catch'](()=>void 0x0);}})})]});}function ci({children:_0x40b2fb,label:_0x2f7059}){const _0x49e31f=_0x2353bc;return _0x2b00c1(_0x49e31f(0x442),{'role':_0x49e31f(0x365),'aria-label':_0x2f7059,'className':_0x49e31f(0x3d0),'children':[_0x4dabb7(_0x49e31f(0x3ec),{'children':_0x2f7059}),_0x40b2fb]});}function li({disabled:_0x392d42,fields:_0xbf8cf3,filter:_0x383dda,onChange:_0x5da0a4}){const _0xd77aa4=_0x2353bc;let _0x4a8b7c=_0x39b411(_0x55d16d)[_0xd77aa4(0x217)]??null,[_0x1fe5aa,_0x12ff86]=_0x2be63d(null),_0x2dbb15=_0x39b411(_0x5cd3ee),_0x3fc0b1=(_0x383dda==null?void 0x0:_0x383dda[_0xd77aa4(0x1b8)])??[];if(!_0x3fc0b1[_0xd77aa4(0x4da)])return _0x2b00c1(_0xd77aa4(0x442),{'className':_0xd77aa4(0x1f2),'children':[_0x4dabb7(_0x425726,{'className':_0xd77aa4(0x472)}),_0x4dabb7('span',{'className':'univer-text-sm','children':_0x2dbb15['t']('bases-dashboard-ui.dashboard.tableFilter')})]});let _0x486f78=_0x1fe5aa==null?void 0x0:_0x3fc0b1[_0x1fe5aa],_0x3e4a3c=_0xbf8cf3['find'](_0x1db10b=>_0x1db10b['id']===(_0x486f78==null?void 0x0:_0x486f78[_0xd77aa4(0x43d)]));return _0x2b00c1(_0xd77aa4(0x442),{'className':_0xd77aa4(0x26d),'children':[_0x3fc0b1[_0xd77aa4(0x3ff)]((_0x266219,_0x2eb809)=>{const _0x3dd986=_0xd77aa4;var _0x2c60ee;return _0x2b00c1(_0x1b3e3b,{'disabled':_0x392d42,'onClick':()=>_0x12ff86(_0x2eb809),'children':[_0x4dabb7(_0x3dd986(0x3ec),{'children':((_0x2c60ee=_0xbf8cf3[_0x3dd986(0x397)](_0x586e36=>_0x586e36['id']===_0x266219[_0x3dd986(0x43d)]))==null?void 0x0:_0x2c60ee['name'])??_0x266219[_0x3dd986(0x43d)]}),_0x4dabb7(_0x3dd986(0x3ec),{'className':_0x3dd986(0x226),'children':String(_0x266219[_0x3dd986(0x37d)]??'')})]},_0x266219[_0x3dd986(0x43d)]+'-'+_0x2eb809);}),_0x3e4a3c&&_0x486f78&&_0x1fe5aa!=null&&_0x4a8b7c&&_0x1f6ddd(_0x4dabb7(_0x5c4dcf,{'field':_0x3e4a3c,'value':_0x486f78[_0xd77aa4(0x37d)],'onClose':()=>_0x12ff86(null),'onSave':_0x773d13=>{const _0x530f97=_0xd77aa4;_0x5da0a4({'conjunction':(_0x383dda==null?void 0x0:_0x383dda['conjunction'])??_0xf09c6[_0x530f97(0x27f)],'conditions':_0x3fc0b1[_0x530f97(0x3ff)]((_0x6ed982,_0xae69c4)=>_0xae69c4===_0x1fe5aa?{..._0x6ed982,'operand':_0x773d13}:_0x6ed982)}),_0x12ff86(null);}}),_0x4a8b7c)]});}function ui({fields:_0x59af24,filter:_0x10f7b3,onChange:_0x41e07c,onClear:_0x96e3d1}){const _0x4dc081=_0x2353bc;let _0x536542=_0x39b411(_0x5cd3ee);return _0x2b00c1(_0x4dc081(0x442),{'children':[_0x4dabb7(_0x1ab4e1,{'fields':_0x59af24,'value':_0x10f7b3??{'conjunction':_0xf09c6[_0x4dc081(0x27f)],'conditions':[]},'onChange':_0x41e07c}),_0x4dabb7(_0x1b3e3b,{'onClick':_0x96e3d1,'children':_0x536542['t'](_0x4dc081(0x449))})]});}function di({base:_0x452002,chartRuntime:_0xb13a2b,onChange:_0x3c5a03,onClose:_0x2499a2,onSelectBackgroundImage:_0x59bc3a,onSelectImage:_0x50bca2,unitId:_0x6f935d,widget:_0x48a5fd}){const _0x2e4805=_0x2353bc;let _0x1fc0cc=_0x39b411(_0x32452d),_0x5a8c52=_0x39b411(_0x5cd3ee),_0x4a9b68=_0x452002[_0x2e4805(0x3f5)](),_0x47fb5f='tableId'in _0x48a5fd?_0x4a9b68[_0x2e4805(0x39c)][_0x48a5fd[_0x2e4805(0x475)]]:void 0x0,_0x402bd6=_0x48a5fd[_0x2e4805(0x393)]===_0x342116[_0x2e4805(0x3a3)]?_0x47fb5f==null?void 0x0:_0x47fb5f[_0x2e4805(0x451)][_0x48a5fd[_0x2e4805(0x399)]]:void 0x0,_0x37fab7=_0x5a8c52['t'](vi(_0x48a5fd)),_0xc8266c=_0x2b00c1(_0x2e4805(0x2b6),{'data-dashboard-inspector':!0x0,'className':_0x2e4805(0x28a),'children':[_0x48a5fd[_0x2e4805(0x393)]===_0x342116[_0x2e4805(0x3a3)]&&(_i(_0x402bd6)&&_0xb13a2b?_0x4dabb7(ii,{'runtime':_0xb13a2b,'sourceChart':_0x402bd6[_0x2e4805(0x4e8)][_0x2e4805(0x4d8)],'sourceName':((_0x47fb5f==null?void 0x0:_0x47fb5f[_0x2e4805(0x329)])??'')+'\x20/\x20'+_0x402bd6[_0x2e4805(0x329)],'widget':_0x48a5fd,'onChange':_0x3c5a03,'onEditData':()=>{const _0x226627=_0x2e4805;_0x1fc0cc['executeCommand'](_0x9b2833['id'],{'unitId':_0x6f935d,'tableId':_0x48a5fd['tableId'],'viewId':_0x48a5fd[_0x226627(0x399)]})['catch'](()=>void 0x0);}}):_0x4dabb7(hi,{'message':_i(_0x402bd6)?_0x5a8c52['t'](_0x2e4805(0x2aa)):_0x5a8c52['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})),_0x48a5fd['type']===_0x342116[_0x2e4805(0x36e)]&&_0x4dabb7(si,{'base':_0x452002,'widget':_0x48a5fd,'onChange':_0x3c5a03,'onSelectBackgroundImage':_0x59bc3a}),_0x48a5fd[_0x2e4805(0x393)]===_0x342116[_0x2e4805(0x296)]&&_0x4dabb7(pi,{'base':_0x452002,'onChange':_0x3c5a03,'widget':_0x48a5fd}),_0x48a5fd[_0x2e4805(0x393)]===_0x342116[_0x2e4805(0x298)]&&_0x4dabb7(mi,{'onChange':_0x3c5a03,'widget':_0x48a5fd}),_0x48a5fd[_0x2e4805(0x393)]===_0x342116['Image']&&_0x4dabb7(fi,{'onChange':_0x3c5a03,'onSelectImage':_0x50bca2,'widget':_0x48a5fd})]});return _0x4dabb7(_0x4989cc,{'title':_0x37fab7,'onClose':_0x2499a2,'children':_0xc8266c});}function fi({onChange:_0xf7d288,onSelectImage:_0x594d4f,widget:_0x3980ef}){const _0x41c97c=_0x2353bc;let _0x3530af=_0x39b411(_0x5cd3ee);return _0x2b00c1(_0x41c97c(0x442),{'className':_0x41c97c(0x443),'children':[_0x2b00c1(_0x1b3e3b,{'className':'univer-w-full','onClick':()=>_0x594d4f()[_0x41c97c(0x388)](_0x304f8c=>_0x304f8c&&_0xf7d288({..._0x3980ef,'source':_0x304f8c['source'],'sourceType':_0x304f8c[_0x41c97c(0x4b3)],'alt':_0x304f8c[_0x41c97c(0x329)]}))[_0x41c97c(0x3d2)](()=>void 0x0),'children':[_0x4dabb7(_0x5155a3,{}),_0x3530af['t'](_0x41c97c(0x256))]}),_0x2b00c1(_0x41c97c(0x3b0),{'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x4dabb7('span',{'children':_0x3530af['t']('bases-dashboard-ui.dashboardInspector.backgroundImage')}),_0x4dabb7(_0x116fe9,{'items':[{'value':_0x41c97c(0x3d5),'label':_0x3530af['t'](_0x41c97c(0x2e7))},{'value':_0x41c97c(0x42b),'label':_0x3530af['t'](_0x41c97c(0x392))},{'value':_0x41c97c(0x2bc),'label':_0x3530af['t'](_0x41c97c(0x260))}],'value':_0x3980ef['displayMode']??_0x41c97c(0x3d5),'onChange':_0x4da01d=>_0xf7d288({..._0x3980ef,'displayMode':_0x4da01d})[_0x41c97c(0x3d2)](()=>void 0x0)})]})]});}function pi({base:_0x2a322a,onChange:_0x509742,widget:_0xe86d62}){const _0x172c52=_0x2353bc;let _0x3c37f0=_0x2a322a['getSnapshot']()[_0x172c52(0x39c)][_0xe86d62['tableId']],_0x382053=_0x3c37f0==null?void 0x0:_0x3c37f0['viewOrder'][_0x172c52(0x397)](_0x35c0b4=>_0x3c37f0[_0x172c52(0x451)][_0x35c0b4]),_0x17556f=_0x382053?_0x3c37f0==null?void 0x0:_0x3c37f0[_0x172c52(0x451)][_0x382053]:void 0x0,_0x3185ee=_0x3c37f0&&_0x17556f?_0x5249f3(_0x3c37f0,_0x17556f):[];return _0x4dabb7(ui,{'fields':_0x3185ee,'filter':_0xe86d62[_0x172c52(0x1b3)],'onChange':_0x48a989=>_0x509742({..._0xe86d62,'filter':_0x48a989})['catch'](()=>void 0x0),'onClear':()=>_0x509742({..._0xe86d62,'filter':null})[_0x172c52(0x3d2)](()=>void 0x0)});}function mi({onChange:_0x2305f2,widget:_0x250201}){const _0x55530a=_0x2353bc;let _0x5b5b87=_0x39b411(_0x5cd3ee),_0x1e9ed8=_0x39b411(_0x277079),_0x3c1cbb=_0x499abf(()=>_0x1e9ed8[_0x55530a(0x227)],_0x1e9ed8['getCurrentTheme'](),!0x1,[_0x1e9ed8]),_0x55822=Br(_0x250201),_0x4c1b9a=_0x46c2f1=>_0x2305f2({..._0x250201,'appearance':{..._0x55822,..._0x46c2f1}})[_0x55530a(0x3d2)](()=>void 0x0);return _0x2b00c1('div',{'className':_0x55530a(0x4b8),'children':[_0x4dabb7(_0x136f1a,{'className':_0x55530a(0x367),'defaultValue':Vr(_0x250201[_0x55530a(0x4d6)]),'rows':0x8,'onBlur':_0xcbead5=>_0x2305f2({..._0x250201,'document':Hr(_0x250201[_0x55530a(0x4d6)],_0xcbead5[_0x55530a(0x344)][_0x55530a(0x284)])})[_0x55530a(0x3d2)](()=>void 0x0)}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x5b5b87['t'](_0x55530a(0x245)),'label':_0x5b5b87['t'](_0x55530a(0x245)),'pickerFallbackValue':_0x3c1cbb[_0x55530a(0x433)][0x0],'resetLabel':_0x5b5b87['t'](_0x55530a(0x449)),'value':_0x55822[_0x55530a(0x394)]??null,'onChange':_0x3cc47e=>_0x4c1b9a({'backgroundColor':_0x3cc47e??void 0x0})}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x5b5b87['t'](_0x55530a(0x21a)),'label':_0x5b5b87['t'](_0x55530a(0x21a)),'pickerFallbackValue':_0x3c1cbb[_0x55530a(0x433)][0x3e8],'resetLabel':_0x5b5b87['t'](_0x55530a(0x449)),'value':_0x55822[_0x55530a(0x204)]??null,'onChange':_0x13ebd5=>_0x4c1b9a({'textColor':_0x13ebd5??void 0x0})}),_0x4dabb7(gi,{'label':_0x5b5b87['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x4dabb7(_0x116fe9,{'items':[{'value':_0x55530a(0x20a),'label':_0x5b5b87['t'](_0x55530a(0x28d))},{'value':_0x55530a(0x4b2),'label':_0x5b5b87['t'](_0x55530a(0x237))},{'value':_0x55530a(0x214),'label':_0x5b5b87['t'](_0x55530a(0x1fd))}],'value':_0x55822[_0x55530a(0x22e)],'onChange':_0xe0b9e1=>_0x4c1b9a({'alignment':_0xe0b9e1})})}),_0x2b00c1(gi,{'label':_0x5b5b87['t'](_0x55530a(0x219)),'children':[_0x4dabb7(_0x116fe9,{'items':[{'value':'auto','label':_0x5b5b87['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':'custom','label':_0x5b5b87['t'](_0x55530a(0x1da))}],'value':_0x55822[_0x55530a(0x1e2)],'onChange':_0x3e81c1=>_0x4c1b9a({'fontSizeMode':_0x3e81c1})}),_0x55822[_0x55530a(0x1e2)]===_0x55530a(0x509)&&_0x4dabb7(_0x1c2086,{'className':_0x55530a(0x266),'min':0xa,'max':0x78,'value':_0x55822['fontSize'],'onChange':_0x2cd1be=>_0x4c1b9a({'fontSize':_0x2cd1be??0x12,'fontSizeMode':_0x55530a(0x509)})})]})]});}function hi({message:_0x1fe626}){const _0x4eb0a3=_0x2353bc;return _0x4dabb7(_0x4eb0a3(0x442),{'className':_0x4eb0a3(0x43b),'children':_0x1fe626});}function gi({children:_0x32df21,label:_0x28f8c0}){const _0x412141=_0x2353bc;return _0x2b00c1(_0x412141(0x442),{'role':_0x412141(0x365),'aria-':!0x0,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x4dabb7(_0x412141(0x3ec),{'children':_0x28f8c0}),_0x32df21]});}function _i(_0x1c45cf){const _0x54ef24=_0x2353bc;return(_0x1c45cf==null?void 0x0:_0x1c45cf[_0x54ef24(0x393)])===_0x5ee6b5['Pivot']&&typeof _0x1c45cf[_0x54ef24(0x4e8)]=='object'&&_0x1c45cf[_0x54ef24(0x4e8)]!==null&&'pivot'in _0x1c45cf['config']&&_0x54ef24(0x4d8)in _0x1c45cf['config'];}function vi(_0xc6e11d){const _0x1b03cb=_0x2353bc;switch(_0xc6e11d[_0x1b03cb(0x393)]){case _0x342116[_0x1b03cb(0x3a3)]:return _0x1b03cb(0x350);case _0x342116['TableFilter']:return'bases-dashboard-ui.dashboard.tableFilter';case _0x342116[_0x1b03cb(0x298)]:return _0x1b03cb(0x45f);case _0x342116[_0x1b03cb(0x4ae)]:return _0x1b03cb(0x293);case _0x342116[_0x1b03cb(0x36e)]:return _0x1b03cb(0x268);}}function yi({onDelete:_0x5eda89,onEdit:_0x59ca85,onMoveUp:_0x2cb8fa,onMoveDown:_0x1ec481}){const _0x26289a=_0x2353bc;let [_0xaad42c,_0x108322]=_0x2be63d(!0x1),_0x19c078=_0x39b411(_0x5cd3ee),_0x5d606f=_0x19c078['t'](_0x26289a(0x39f)),_0x2edc98=_0x19c078['t'](_0x26289a(0x2ef)),_0x1e8e00=_0x19c078['t'](_0x26289a(0x1b9)),_0x1b10f2=[{'type':_0x26289a(0x423),'children':_0x2b00c1(_0x26289a(0x3ec),{'className':_0x26289a(0x49a),'children':[_0x4dabb7(_0x392d1f,{'className':'univer-size-4','aria-hidden':_0x26289a(0x1d5)}),_0x4dabb7(_0x26289a(0x3ec),{'children':_0x5d606f})]}),'onSelect':_0x59ca85},..._0x2cb8fa?[{'type':_0x26289a(0x423),'children':_0x2b00c1('span',{'className':_0x26289a(0x49a),'children':[_0x4dabb7(_0x19b9b0,{'className':_0x26289a(0x40e),'aria-hidden':_0x26289a(0x1d5)}),_0x4dabb7(_0x26289a(0x3ec),{'children':_0x19c078['t'](_0x26289a(0x2ab))})]}),'onSelect':_0x2cb8fa}]:[],..._0x1ec481?[{'type':'item','children':_0x2b00c1(_0x26289a(0x3ec),{'className':_0x26289a(0x49a),'children':[_0x4dabb7(_0x5c6cd4,{'className':'univer-size-4','aria-hidden':_0x26289a(0x1d5)}),_0x4dabb7(_0x26289a(0x3ec),{'children':_0x19c078['t'](_0x26289a(0x33b))})]}),'onSelect':_0x1ec481}]:[],{'type':'separator'},{'type':'item','variant':_0x26289a(0x4d0),'children':_0x2b00c1('span',{'className':_0x26289a(0x49a),'children':[_0x4dabb7(_0x2d17f6,{'className':_0x26289a(0x40e),'aria-hidden':_0x26289a(0x1d5)}),_0x4dabb7(_0x26289a(0x3ec),{'children':_0x2edc98})]}),'onSelect':_0x5eda89}];return _0x4dabb7(_0x492a1e,{'open':_0xaad42c,'onOpenChange':_0x108322,'align':'end','sideOffset':0x4,'items':_0x1b10f2[_0x26289a(0x3ff)](_0x351437=>({..._0x351437,'className':_0x351437[_0x26289a(0x393)]==='item'?_0x26289a(0x333):void 0x0})),'children':_0x4dabb7(_0x1b3e3b,{'type':_0x26289a(0x228),'size':'small','variant':_0x26289a(0x452),'onPointerDown':_0x29dd6c=>_0x29dd6c[_0x26289a(0x3ca)](),'onClick':()=>_0x108322(_0x27622e=>!_0x27622e),'title':_0x1e8e00,'aria-label':_0x1e8e00,'className':_0x26289a(0x390),'children':_0x4dabb7(_0x27b384,{'className':_0x26289a(0x40e),'aria-hidden':_0x26289a(0x1d5)})})});}function bi({dashboardId:_0x37d848,presentation:_0x4d39a0=!0x1,unitId:_0x4dcc89}){const _0x1b836e=_0x2353bc;let _0x1041b0=_0x39b411(_0x5a8661),_0x588165=_0x39b411(_0x1adc86);_0x499abf(_0x588165[_0x1b836e(0x27e)],0x0);let _0x32fdc9=_0x39b411(_0x32452d),_0x3eb518=_0x39b411(_0x4d763c),_0x1c912c=_0x39b411(_0x5482b5),_0x264795=_0x39b411(_0x4074e5),_0x16550a=_0x39b411(_0x5cd3ee),_0x16d860=_0x39b411(_0x5e40a3),_0x398124=_0x39b411(_0x123793),[_0x57b776,_0x492bbd]=_0x2be63d(!0x1),[_0x24fe28,_0x330d3b]=_0x2be63d(),[_0x572763,_0xea6dc7]=_0x2be63d(!0x1),[_0x5bf598,_0x88d98]=_0x2be63d(()=>new Map()),_0x525b5b=_0xd8821d((_0xbaf683,_0x246ff0)=>{_0x88d98(_0x5898d0=>{const _0x388158=_0x1cf6;let _0x10c1e9=new Map(_0x5898d0);return _0x246ff0?_0x10c1e9[_0x388158(0x401)](_0xbaf683,_0x246ff0):_0x10c1e9['delete'](_0xbaf683),_0x10c1e9;});},[]),_0xdc038c=_0x499abf(()=>_0x16d860[_0x1b836e(0x2a3)]['pipe'](_0x299cc9(()=>_0x16d860['getDashboard'](_0x4dcc89,_0x37d848))),_0x16d860['getDashboard'](_0x4dcc89,_0x37d848),!0x1,[_0x37d848,_0x16d860,_0x4dcc89]),_0x4484d0=_0x264795['getUnit'](_0x4dcc89,_0x51ec78['UNIVER_BASE']),_0x5ca72c=_0x499abf(()=>_0x398124[_0x1b836e(0x21f)],{'undos':0x0,'redos':0x0},!0x1,[_0x398124]),_0x10ba9a=gr(_0x4dcc89,_0x37d848);if(_0x38e78f(()=>{const _0x1f11cf=_0x1b836e;_0x264795['setCurrentUnitForType'](_0x4dcc89),_0x264795[_0x1f11cf(0x35f)](_0x4dcc89);},[_0x264795,_0x4dcc89]),!_0xdc038c||!_0x4484d0)return null;let _0x5c22d6={'unitId':_0x4dcc89,'objectId':_0x275cd2(_0x37d848),'objectType':_0x4f7ac1[_0x1b836e(0x4d9)]},_0x498890=(_0x5c61ca,_0x16c88a)=>{const _0x59e19c=_0x1b836e;let _0x139927=[..._0xdc038c[_0x59e19c(0x362)]],_0x32fda9=_0x139927[_0x59e19c(0x265)](_0x5c61ca),_0x3184c4=_0x32fda9+_0x16c88a;if(!(_0x32fda9<0x0||_0x3184c4<0x0||_0x3184c4>=_0x139927['length']))return[_0x139927[_0x32fda9],_0x139927[_0x3184c4]]=[_0x139927[_0x3184c4],_0x139927[_0x32fda9]],_0x32fdc9[_0x59e19c(0x1ff)](_0x5cbeb4['id'],{'unitId':_0x4dcc89,'dashboard':{..._0xdc038c,'widgetOrder':_0x139927}});},_0x47f2da=_0x2f2afd=>_0x32fdc9['executeCommand'](_0x2b3367['id'],{'unitId':_0x4dcc89,'dashboardId':_0x37d848,'widget':_0x2f2afd})[_0x1b836e(0x3d2)](()=>void 0x0),_0x392eb4=(_0x4d0f5b,_0x14c2a2,_0xd66285)=>{const _0x4c6f0c=_0x1b836e;let _0x568e8d=Math['max'](0x0,..._0xdc038c[_0x4c6f0c(0x362)][_0x4c6f0c(0x3bc)](_0xe23f16=>{const _0x4109ad=_0x4c6f0c;var _0x36b5d5;let _0x3650da=(_0x36b5d5=_0xdc038c['widgets'][_0xe23f16])==null?void 0x0:_0x36b5d5[_0x4109ad(0x439)];return _0x3650da?[_0x3650da[_0x4109ad(0x487)]+_0x3650da['rowSpan']]:[];})),_0x243c1d=_0x4c6f0c(0x4a9)+_0x325e5d(0x8),_0x630fbd={'column':0x0,'row':_0x568e8d,'columnSpan':_0x14c2a2,'rowSpan':_0xd66285};switch(_0x4d0f5b[_0x4c6f0c(0x393)]){case _0x342116['PivotChart']:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});case _0x342116['TableFilter']:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});case _0x342116[_0x4c6f0c(0x298)]:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});case _0x342116['Image']:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});case _0x342116[_0x4c6f0c(0x36e)]:return _0x47f2da({..._0x4d0f5b,'id':_0x243c1d,'layout':_0x630fbd});}},_0x4685a9=_0x4484d0[_0x1b836e(0x3f5)](),_0x49feee=_0x4685a9['tableOrder'][_0x1b836e(0x3bc)](_0x54298c=>{const _0x58cd5c=_0x1b836e;let _0x37290e=_0x4685a9['tables'][_0x54298c];if(!_0x37290e)return[];let _0x480e03=_0x37290e[_0x58cd5c(0x411)][_0x58cd5c(0x3bc)](_0x102cbb=>{const _0x395e0b=_0x58cd5c;let _0x4efc5f=_0x37290e[_0x395e0b(0x451)][_0x102cbb];return Oi(_0x4efc5f)?[{'type':_0x395e0b(0x423),'children':_0x4efc5f['name'],'onSelect':()=>_0x392eb4({'type':_0x342116[_0x395e0b(0x3a3)],'tableId':_0x54298c,'pivotViewId':_0x102cbb,'chart':{..._0x4efc5f['config'][_0x395e0b(0x4d8)]}},0x6,0xa)}]:[];});return[{'type':_0x58cd5c(0x429),'children':_0x37290e[_0x58cd5c(0x329)],'options':[..._0x480e03,..._0x480e03['length']?[{'type':_0x58cd5c(0x50a)}]:[],{'type':'item','children':_0x16550a['t'](_0x58cd5c(0x396)),'onSelect':()=>_0x392eb4({'type':_0x342116[_0x58cd5c(0x296)],'tableId':_0x54298c,'filter':null},0x6,0x8)}]}];}),_0x5c2c27=[..._0x49feee,..._0x49feee['length']?[{'type':_0x1b836e(0x50a)}]:[],{'type':_0x1b836e(0x423),'children':_0x16550a['t'](_0x1b836e(0x45f)),'onSelect':()=>_0x392eb4({'type':_0x342116[_0x1b836e(0x298)],'document':wi()},0x4,0x6)},{'type':_0x1b836e(0x423),'children':_0x16550a['t'](_0x1b836e(0x293)),'onSelect':()=>Ti(_0x3eb518)[_0x1b836e(0x388)](_0x3a6746=>_0x3a6746&&_0x392eb4({'type':_0x342116[_0x1b836e(0x4ae)],'source':_0x3a6746['source'],'sourceType':_0x3a6746[_0x1b836e(0x4b3)],'alt':_0x3a6746[_0x1b836e(0x329)],'displayMode':'cover'},0x4,0x6))},{'type':'item','children':_0x16550a['t'](_0x1b836e(0x268)),'onSelect':()=>{const _0x2ea04d=_0x1b836e;let _0x28409a=_0x4685a9[_0x2ea04d(0x1e5)][_0x2ea04d(0x397)](_0x5c4838=>_0x4685a9[_0x2ea04d(0x39c)][_0x5c4838]);_0x28409a&&_0x392eb4({'type':_0x342116[_0x2ea04d(0x36e)],'tableId':_0x28409a,'shapeType':_0x4387d7[_0x2ea04d(0x3a7)],'shapeData':_0x11d1a1(),'description':_0x16550a['t']('bases-dashboard-ui.dashboard.formulaShape')},0x4,0x6);}}],_0x17ff2a=_0x24fe28?_0xdc038c[_0x1b836e(0x4e1)][_0x24fe28]:void 0x0,_0x734064=()=>_0xea6dc7(_0x471b31=>!_0x471b31),_0x4c82e0=_0x4d39a0||_0x572763,_0x2f2990=_0x10ba9a&&!_0x4c82e0;return _0x4dabb7(Kr,{'children':_0x2b00c1(_0x1b836e(0x442),{'className':_0x1b836e(0x37b)+(_0x572763?_0x1b836e(0x369):'univer-relative\x20univer-z-10')+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[_0x572763&&_0x4dabb7(_0x1b3e3b,{'onClick':()=>_0xea6dc7(!0x1),'children':_0x16550a['t'](_0x1b836e(0x1bf))}),!_0x4c82e0&&_0x2b00c1(_0x1b836e(0x36a),{'className':'univer-flex\x20univer-h-auto\x20univer-min-h-12\x20univer-shrink-0\x20univer-flex-wrap\x20univer-items-center\x20univer-gap-1\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x4dabb7(_0x433eb4,{'className':_0x1b836e(0x1bd)}),_0x4dabb7('h2',{'className':_0x1b836e(0x385),'children':_0xdc038c[_0x1b836e(0x329)]}),_0x588165[_0x1b836e(0x3fd)](_0x5c22d6)&&_0x4dabb7(_0x1b3e3b,{'variant':_0x1b836e(0x452),'disabled':!_0x588165['canView'](_0x5c22d6),'aria-label':_0x16550a['t'](_0x1b836e(0x3a2)),'onClick':()=>{const _0xe8aa22=_0x1b836e;_0x14db5b(_0x1041b0,{'target':_0x5c22d6,'name':_0xdc038c[_0xe8aa22(0x329)],'commandId':_0x42d2ec['id'],'exists':()=>!!_0x16d860['getDashboard'](_0x4dcc89,_0x37d848)});},'children':_0x4dabb7(_0x7e2f55,{})}),_0x4dabb7(_0xf8bfea,{'unitId':_0x4dcc89}),_0x4dabb7(_0x1b3e3b,{'type':'button','size':_0x1b836e(0x432),'variant':_0x1b836e(0x452),'aria-label':_0x16550a['t'](_0x1b836e(0x4ee)),'disabled':!_0x10ba9a||_0x5ca72c['undos']===0x0,'onClick':()=>_0x32fdc9[_0x1b836e(0x1ff)](_0x4170dd['id'])[_0x1b836e(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x4f90a3,{})}),_0x4dabb7(_0x1b3e3b,{'type':_0x1b836e(0x228),'size':_0x1b836e(0x432),'variant':_0x1b836e(0x452),'aria-label':_0x16550a['t'](_0x1b836e(0x1c8)),'disabled':!_0x10ba9a||_0x5ca72c[_0x1b836e(0x2ce)]===0x0,'onClick':()=>_0x32fdc9[_0x1b836e(0x1ff)](_0x8d3b46['id'])[_0x1b836e(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x44a42f,{})}),_0x4dabb7(_0x1b3e3b,{'type':_0x1b836e(0x228),'size':_0x1b836e(0x432),'variant':_0x1b836e(0x452),'aria-label':_0x16550a['t']('bases-dashboard-ui.dashboard.fullScreen'),'onClick':_0x734064,'children':_0x4dabb7(_0x54cca2,{})}),_0x4dabb7(Jr,{'items':_0x5c2c27,'children':_0x2b00c1(_0x1b3e3b,{'variant':_0x1b836e(0x37f),'disabled':!_0x10ba9a,'children':[_0x4dabb7(_0x5155a3,{}),_0x16550a['t'](_0x1b836e(0x4b0))]})})]}),_0x2b00c1('div',{'className':_0x1b836e(0x1c0),'children':[_0x4dabb7('div',{'className':_0x1b836e(0x290),'children':_0x4dabb7(Wr,{'dashboard':_0xdc038c,'editable':_0x2f2990,'widgetLabel':_0x14b2e2=>_0x16550a['t'](Di(_0x14b2e2['type'])),'selectedWidgetId':_0x2f2990?_0x24fe28:void 0x0,'onSelectWidget':_0x2f2990?_0x25ff14=>{_0x330d3b(_0x25ff14),_0x25ff14||_0x492bbd(!0x1);}:void 0x0,'renderWidget':_0x3b6720=>_0x4dabb7(xi,{'base':_0x4484d0,'dashboard':_0xdc038c,'unitId':_0x4dcc89,'widget':_0x3b6720,'onChange':_0x47f2da,'onChartRuntimeChange':_0x525b5b}),'renderWidgetActions':_0x1a50c5=>_0x4dabb7(yi,{'onMoveUp':_0xdc038c[_0x1b836e(0x362)]['indexOf'](_0x1a50c5['id'])>0x0?()=>_0x498890(_0x1a50c5['id'],-0x1):void 0x0,'onMoveDown':_0xdc038c[_0x1b836e(0x362)][_0x1b836e(0x265)](_0x1a50c5['id'])<_0xdc038c[_0x1b836e(0x362)][_0x1b836e(0x4da)]-0x1?()=>_0x498890(_0x1a50c5['id'],0x1):void 0x0,'onEdit':()=>{_0x330d3b(_0x1a50c5['id']),_0x492bbd(!0x0);},'onDelete':()=>{const _0x2998e0=_0x1b836e;_0x24fe28===_0x1a50c5['id']&&(_0x330d3b(void 0x0),_0x492bbd(!0x1)),_0x32fdc9[_0x2998e0(0x1ff)](_0x20648d['id'],{'unitId':_0x4dcc89,'dashboardId':_0x37d848,'widgetId':_0x1a50c5['id']})[_0x2998e0(0x3d2)](()=>void 0x0);}})})}),_0x2f2990&&_0x57b776&&_0x17ff2a&&_0x4dabb7(di,{'base':_0x4484d0,'chartRuntime':_0x5bf598['get'](_0x17ff2a['id']),'unitId':_0x4dcc89,'widget':_0x17ff2a,'onChange':_0x47f2da,'onClose':()=>_0x492bbd(!0x1),'onSelectBackgroundImage':()=>Ei(_0x1c912c),'onSelectImage':()=>Ti(_0x3eb518)})]})]})});}function xi({base:_0x2a117d,dashboard:_0x16a82a,onChange:_0x2ce927,onChartRuntimeChange:_0x894ffd,unitId:_0xd99dca,widget:_0x1b5833}){const _0x212a0a=_0x2353bc;let _0x318c34=_0x56a185(()=>_0x16a82a[_0x212a0a(0x362)][_0x212a0a(0x3bc)](_0x1485bb=>{const _0x1ebea9=_0x212a0a;let _0x11a497=_0x16a82a['widgets'][_0x1485bb];return(_0x11a497==null?void 0x0:_0x11a497[_0x1ebea9(0x393)])===_0x342116['TableFilter']&&_0x11a497['tableId']===(_0x1ebea9(0x475)in _0x1b5833?_0x1b5833['tableId']:'')&&_0x11a497[_0x1ebea9(0x1b3)]?[_0x11a497[_0x1ebea9(0x1b3)]]:[];}),[_0x16a82a,_0x1b5833]);switch(_0x1b5833['type']){case _0x342116['PivotChart']:return _0x4dabb7(Lr,{'filters':_0x318c34,'unitId':_0xd99dca,'widget':_0x1b5833,'onRuntimeChange':_0x894ffd});case _0x342116['TableFilter']:return _0x4dabb7(li,{'fields':Si(_0x2a117d,_0x1b5833['tableId']),'filter':_0x1b5833['filter'],'onChange':_0x5b9b2e=>_0x2ce927({..._0x1b5833,'filter':_0x5b9b2e})[_0x212a0a(0x3d2)](()=>void 0x0)});case _0x342116[_0x212a0a(0x298)]:return _0x4dabb7(Ur,{'widget':_0x1b5833});case _0x342116['Image']:return _0x4dabb7(Ci,{'widget':_0x1b5833});case _0x342116[_0x212a0a(0x36e)]:return _0x4dabb7(Dr,{'dashboardId':_0x16a82a['id'],'unitId':_0xd99dca,'widget':_0x1b5833});}}function Si(_0x47432f,_0x1bab84){const _0x34a5ec=_0x2353bc;let _0x34a7dd=_0x47432f['getSnapshot']()[_0x34a5ec(0x39c)][_0x1bab84],_0x342e92=_0x34a7dd==null?void 0x0:_0x34a7dd[_0x34a5ec(0x411)][_0x34a5ec(0x397)](_0x47b38d=>_0x34a7dd[_0x34a5ec(0x451)][_0x47b38d]),_0x5575b1=_0x342e92?_0x34a7dd==null?void 0x0:_0x34a7dd['views'][_0x342e92]:void 0x0;return _0x34a7dd&&_0x5575b1?_0x5249f3(_0x34a7dd,_0x5575b1):[];}function Ci({widget:_0xf6e448}){const _0x548064=_0x2353bc;let _0x50f41c=_0x39b411(_0x4d763c),[_0x1697cd,_0x4dadd3]=_0x2be63d(_0xf6e448[_0x548064(0x4b3)]===_0x26a785[_0x548064(0x43f)]?'':_0xf6e448['source']);return _0x38e78f(()=>{const _0x478c1c=_0x548064;let _0x116546=!0x0;return _0x50f41c[_0x478c1c(0x4c6)](_0xf6e448[_0x478c1c(0x24c)],_0xf6e448[_0x478c1c(0x4b3)])[_0x478c1c(0x388)](_0x289233=>{_0x116546&&_0x4dadd3(_0x289233);})[_0x478c1c(0x3d2)](()=>void 0x0),()=>{_0x116546=!0x1;};},[_0x50f41c,_0xf6e448['source'],_0xf6e448[_0x548064(0x4b3)]]),_0x1697cd?_0x4dabb7(_0x548064(0x442),{'role':_0xf6e448['alt']?'img':void 0x0,'aria-label':_0xf6e448['alt']||void 0x0,'data-dashboard-image':_0xf6e448['id'],'className':_0x548064(0x203),'style':vr(_0x1697cd,_0xf6e448[_0x548064(0x4a6)])}):null;}function wi(){const _0x19deb7=_0x2353bc;let _0x3e4902=_0x112de2(new Set());return{'id':_0x19deb7(0x3de)+_0x325e5d(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x3e4902}]},'documentStyle':{}};}function Ti(_0x5efd71){return new Promise(_0x1c6d87=>{const _0x3456f3=_0x1cf6;let _0x27eb71=document[_0x3456f3(0x3d6)](_0x3456f3(0x4d3));_0x27eb71[_0x3456f3(0x393)]=_0x3456f3(0x3bd),_0x27eb71[_0x3456f3(0x461)]=_0x3456f3(0x469),_0x27eb71[_0x3456f3(0x1d1)]('change',()=>{const _0x2b6c6e=_0x3456f3;var _0x1601e2;let _0x1a820c=(_0x1601e2=_0x27eb71['files'])==null?void 0x0:_0x1601e2[0x0];if(!_0x1a820c){_0x1c6d87(null);return;}_0x5efd71[_0x2b6c6e(0x504)](_0x1a820c)['then'](_0x4e2d7b=>{const _0x5454f0=_0x2b6c6e;if(!_0x4e2d7b[_0x5454f0(0x24c)]||_0x4e2d7b[_0x5454f0(0x4b3)]===void 0x0){_0x1c6d87(null);return;}_0x1c6d87({'name':_0x4e2d7b[_0x5454f0(0x329)],'source':_0x4e2d7b[_0x5454f0(0x24c)],'sourceType':_0x4e2d7b['sourceType']});})[_0x2b6c6e(0x3d2)](()=>_0x1c6d87(null));},{'once':!0x0}),_0x27eb71[_0x3456f3(0x3ab)]();});}function Ei(_0x320567){return new Promise(_0x113099=>{const _0x14aa0d=_0x1cf6;let _0x401716=document[_0x14aa0d(0x3d6)](_0x14aa0d(0x4d3));_0x401716[_0x14aa0d(0x393)]=_0x14aa0d(0x3bd),_0x401716['accept']='image/*',_0x401716[_0x14aa0d(0x1d1)](_0x14aa0d(0x48a),()=>{const _0x5d7f33=_0x14aa0d;var _0x523f73;let _0x9e2ce7=(_0x523f73=_0x401716['files'])==null?void 0x0:_0x523f73[0x0];if(!_0x9e2ce7){_0x113099(null);return;}_0x320567[_0x5d7f33(0x3dc)](_0x9e2ce7)['then'](_0x2b87e6=>{const _0x6c3c1=_0x5d7f33;if(!(_0x2b87e6!=null&&_0x2b87e6[_0x6c3c1(0x24c)])){_0x113099(null);return;}if(_0x2b87e6[_0x6c3c1(0x308)]){let _0x23b5d4=new Image();_0x23b5d4[_0x6c3c1(0x2dd)]=_0x2b87e6[_0x6c3c1(0x308)],_0x320567[_0x6c3c1(0x32e)](_0x2b87e6[_0x6c3c1(0x24c)],_0x2b87e6[_0x6c3c1(0x23d)],_0x23b5d4);}_0x113099({'source':_0x2b87e6[_0x6c3c1(0x24c)],'sourceType':_0x2b87e6[_0x6c3c1(0x23d)]});})[_0x5d7f33(0x3d2)](()=>_0x113099(null));},{'once':!0x0}),_0x401716[_0x14aa0d(0x3ab)]();});}function Di(_0x5f572f){const _0x271e64=_0x2353bc;switch(_0x5f572f){case _0x342116[_0x271e64(0x3a3)]:return _0x271e64(0x350);case _0x342116[_0x271e64(0x296)]:return _0x271e64(0x396);case _0x342116[_0x271e64(0x298)]:return _0x271e64(0x45f);case _0x342116[_0x271e64(0x4ae)]:return _0x271e64(0x293);case _0x342116[_0x271e64(0x36e)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function Oi(_0x271859){const _0x499ab2=_0x2353bc;return(_0x271859==null?void 0x0:_0x271859[_0x499ab2(0x393)])===_0x5ee6b5[_0x499ab2(0x49c)]&&typeof _0x271859[_0x499ab2(0x4e8)]==_0x499ab2(0x43c)&&_0x271859[_0x499ab2(0x4e8)]!==null&&'pivot'in _0x271859['config']&&_0x499ab2(0x4d8)in _0x271859['config'];}function ki({pivot:_0x3bf516,view:_0x266824}){const _0x2f2d8b=_0x2353bc;let _0x258130=_0x39b411(_0x5cd3ee),_0x21394b=_0x56a185(()=>Ai(_0x266824,_0x3bf516,_0x258130['t'](_0x2f2d8b(0x212))),[_0x258130,_0x3bf516,_0x266824]);return _0x2b00c1(_0x2f2d8b(0x442),{'className':_0x2f2d8b(0x323),'children':[_0x21394b['pageRows'][_0x2f2d8b(0x4da)]>0x0&&_0x4dabb7('table',{'className':'univer-mb-2\x20univer-border-collapse\x20univer-text-sm','children':_0x4dabb7(_0x2f2d8b(0x231),{'children':ji(_0x21394b[_0x2f2d8b(0x3e9)])})}),_0x2b00c1('table',{'className':_0x2f2d8b(0x420),'children':[_0x21394b[_0x2f2d8b(0x4ac)]>0x0&&_0x4dabb7('thead',{'className':_0x2f2d8b(0x44d),'children':ji(_0x21394b[_0x2f2d8b(0x4bd)][_0x2f2d8b(0x35d)](0x0,_0x21394b[_0x2f2d8b(0x4ac)]))}),_0x4dabb7(_0x2f2d8b(0x231),{'children':ji(_0x21394b[_0x2f2d8b(0x4bd)]['slice'](_0x21394b[_0x2f2d8b(0x4ac)]))})]})]});}function Ai(_0xc7501b,_0x36475f,_0x1f6297){const _0xcb5d68=_0x2353bc;let _0xccef06=_0xc7501b[_0xcb5d68(0x501)][_0xcb5d68(0x34d)],_0xb2cf78=_0xc7501b['rowView'][_0xcb5d68(0x3b5)],_0x5b550e=_0xc7501b[_0xcb5d68(0x2a4)][_0xcb5d68(0x34d)],_0x8ae676=_0xc7501b[_0xcb5d68(0x2a4)][_0xcb5d68(0x3b5)],_0x3fae7a=Array[_0xcb5d68(0x4ce)]({'length':_0xccef06+_0x5b550e},(_0x533811,_0x1febab)=>Array[_0xcb5d68(0x4ce)]({'length':_0xb2cf78+_0x8ae676},(_0x1c539b,_0x200546)=>{const _0x32c068=_0xcb5d68;var _0xa0bb32,_0x5e2baa;if(_0x1febab<_0xccef06&&_0x200546<_0xb2cf78)return Mi(_0xc7501b[_0x32c068(0x377)],_0x1febab,_0x200546,void 0x0,_0x1f6297,!0x0,!0x1,_0x32c068(0x1fc)+_0x1febab+':'+_0x200546);if(_0x1febab<_0xccef06){var _0x3b3982;let _0x43b520=_0x200546-_0xb2cf78,_0x4008dd=(_0x3b3982=_0xc7501b[_0x32c068(0x501)][_0x32c068(0x309)][_0x1febab])==null?void 0x0:_0x3b3982[_0x32c068(0x483)];return Mi(_0xc7501b[_0x32c068(0x501)],_0x1febab,_0x43b520,_0x4008dd?_0xc7501b['formatMap'][_0x4008dd]:void 0x0,_0x1f6297,!0x0,Fi(_0xc7501b['colView'][_0x32c068(0x44b)][_0x43b520]),'column:'+_0x1febab+':'+_0x43b520);}if(_0x200546<_0xb2cf78){var _0x3442c6;let _0x1becf9=_0x1febab-_0xccef06,_0x22692b=(_0x3442c6=_0xc7501b[_0x32c068(0x28c)][_0x32c068(0x309)][_0x200546])==null?void 0x0:_0x3442c6['tableFieldId'];return Mi(_0xc7501b[_0x32c068(0x28c)],_0x1becf9,_0x200546,_0x22692b?_0xc7501b[_0x32c068(0x47b)][_0x22692b]:void 0x0,_0x1f6297,!0x0,Fi(_0xc7501b[_0x32c068(0x28c)][_0x32c068(0x44b)][_0x1becf9]),_0x32c068(0x371)+_0x1becf9+':'+_0x200546);}let _0x18c33f=_0x1febab-_0xccef06,_0x3959cc=_0x200546-_0xb2cf78,_0xba71b8=Math[_0x32c068(0x2eb)](((_0xa0bb32=_0xc7501b['rowView'][_0x32c068(0x44b)][_0x18c33f])==null?void 0x0:_0xa0bb32[_0x32c068(0x3a5)])??-0x1,((_0x5e2baa=_0xc7501b[_0x32c068(0x501)][_0x32c068(0x44b)][_0x3959cc])==null?void 0x0:_0x5e2baa[_0x32c068(0x3a5)])??-0x1),_0x1b9437=_0x36475f[_0x32c068(0x1f9)][_0xba71b8<0x0?0x0:_0xba71b8];return Mi(_0xc7501b['dataView'],_0x18c33f,_0x3959cc,_0x1b9437?_0xc7501b['formatMap'][_0x1b9437]:void 0x0,_0x1f6297,!0x1,Fi(_0xc7501b[_0x32c068(0x28c)][_0x32c068(0x44b)][_0x18c33f])||Fi(_0xc7501b[_0x32c068(0x501)][_0x32c068(0x44b)][_0x3959cc]),_0x32c068(0x1e4)+_0x18c33f+':'+_0x3959cc);}));return{'headerColumnCount':_0xb2cf78,'headerRowCount':_0xccef06,'pageRows':_0xc7501b['pageView'][_0xcb5d68(0x4dc)]<0x0||_0xc7501b[_0xcb5d68(0x22d)][_0xcb5d68(0x4c3)]<0x0?[]:Array['from']({'length':_0xc7501b[_0xcb5d68(0x22d)]['lastRow']+0x1},(_0x49421c,_0x1341cb)=>Array[_0xcb5d68(0x4ce)]({'length':_0xc7501b[_0xcb5d68(0x22d)][_0xcb5d68(0x4c3)]+0x1},(_0x465df1,_0x20094f)=>Mi(_0xc7501b['pageView'],_0x1341cb,_0x20094f,void 0x0,_0x1f6297,!0x0,!0x1,_0xcb5d68(0x455)+_0x1341cb+':'+_0x20094f))),'rows':_0x3fae7a};}function ji(_0x5c1494){const _0x54c8f4=_0x2353bc;return _0x5c1494[_0x54c8f4(0x3ff)](_0x2eeeb1=>{const _0x1af5fa=_0x54c8f4;var _0x19727c;return _0x4dabb7('tr',{'children':_0x2eeeb1[_0x1af5fa(0x3ff)](_0x2ce50c=>{const _0x3f308f=_0x1af5fa;let _0x32dd1d=_0x2ce50c[_0x3f308f(0x24a)]?'th':'td';return _0x4dabb7(_0x32dd1d,{'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-whitespace-nowrap\x20univer-border\x20univer-border-gray-200\x20univer-px-3\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-left\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x2ce50c['isTotal']?_0x3f308f(0x2ee):'')+_0x3f308f(0x23a)+(_0x2ce50c[_0x3f308f(0x24a)]?'':_0x3f308f(0x1c5))+_0x3f308f(0x248),'children':_0x2ce50c[_0x3f308f(0x284)]},_0x2ce50c[_0x3f308f(0x336)]);})},(_0x19727c=_0x2eeeb1[0x0])==null?void 0x0:_0x19727c[_0x1af5fa(0x336)]);});}function Mi(_0x4ab663,_0x186538,_0x1bdf0d,_0x1182c8,_0x3c3439,_0x56f9e2,_0xe8b6a9,_0x4e72ca){const _0x71ce72=_0x2353bc;var _0x448722;let _0x3dd0a8=(_0x448722=_0x4ab663['data'][_0x186538])==null?void 0x0:_0x448722[_0x1bdf0d],_0x22694b=_0x3dd0a8==null?void 0x0:_0x3dd0a8['s'],_0x30942a=_0xe8b6a9||_0x22694b===_0x5d656b[_0x71ce72(0x21d)]||_0x22694b===_0x5d656b[_0x71ce72(0x435)];return{'isHeader':_0x56f9e2,'isTotal':_0x30942a||_0x22694b===_0x5d656b[_0x71ce72(0x1d3)],'key':_0x4e72ca,'style':_0x22694b,'value':_0x30942a&&Pi(_0x3dd0a8==null?void 0x0:_0x3dd0a8['v'])?_0x3c3439:Ni(_0x3dd0a8,_0x1182c8)};}function Ni(_0x25cb58,_0x3ad3fb){const _0x15721d=_0x2353bc;let _0x43c83b=_0x25cb58==null?void 0x0:_0x25cb58['v'];return _0x1b2084(_0x43c83b)?String(_0x43c83b[_0x15721d(0x284)]??_0x43c83b['prefix']??''):_0x426ce3(_0x43c83b)?'#'+_0x43c83b['errorType']:_0x3ad3fb&&typeof _0x43c83b==_0x15721d(0x3c4)?_0x3f4aae[_0x15721d(0x347)](_0x3ad3fb,_0x43c83b):String(_0x43c83b??'');}function Pi(_0x1d56b6){return _0x1d56b6===void 0x0||_0x1d56b6==='';}function Fi(_0x431bee){const _0x266301=_0x2353bc;return!!(_0x431bee!=null&&_0x431bee[_0x266301(0x361)]||_0x431bee!=null&&_0x431bee['isTopTotal']||_0x431bee!=null&&_0x431bee[_0x266301(0x3f2)]||(_0x431bee==null?void 0x0:_0x431bee[_0x266301(0x339)])==='grandTotal');}const Ii=[{'area':_0x4c815c[_0x2353bc(0x3b4)],'key':_0x2353bc(0x2e1),'label':_0x2353bc(0x2a1)},{'area':_0x4c815c[_0x2353bc(0x499)],'key':'columnFields','label':_0x2353bc(0x318)},{'area':_0x4c815c[_0x2353bc(0x456)],'key':_0x2353bc(0x490),'label':_0x2353bc(0x1d4)},{'area':_0x4c815c[_0x2353bc(0x47a)],'key':_0x2353bc(0x1f9),'label':_0x2353bc(0x326)}],Li=[{'value':_0x282c8a[_0x2353bc(0x2bf)],'localeKey':_0x2353bc(0x3b2)},{'value':_0x282c8a['count'],'localeKey':_0x2353bc(0x29c)},{'value':_0x282c8a[_0x2353bc(0x3c8)],'localeKey':_0x2353bc(0x48c)},{'value':_0x282c8a[_0x2353bc(0x4f0)],'localeKey':_0x2353bc(0x3e4)},{'value':_0x282c8a[_0x2353bc(0x2eb)],'localeKey':_0x2353bc(0x42f)},{'value':_0x282c8a[_0x2353bc(0x314)],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x282c8a[_0x2353bc(0x2d6)],'localeKey':_0x2353bc(0x44c)},{'value':_0x282c8a[_0x2353bc(0x2a7)],'localeKey':_0x2353bc(0x3ac)},{'value':_0x282c8a['stdDevp'],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x282c8a[_0x2353bc(0x218)],'localeKey':_0x2353bc(0x2b9)},{'value':_0x282c8a[_0x2353bc(0x22c)],'localeKey':_0x2353bc(0x3e0)}];function Ri(_0x4b32ae){const _0x14e6b3=_0x2353bc;let {config:_0x58b9a7,onChange:_0x5c3cac,table:_0x5900af}=_0x4b32ae,_0x3a9b06=_0x39b411(_0x5cd3ee),[_0x479898,_0x343c22]=_0x2be63d(_0x14e6b3(0x273)),[_0x4d2d78,_0x563d98]=_0x2be63d(''),[_0x565a5a,_0x54315e]=_0x2be63d(null),[_0x4fc275,_0x3db859]=_0x2be63d(null),[_0x36a548,_0x41c801]=_0x2be63d(null),[_0x1bb088,_0xc21cc0]=_0x2be63d(null),_0x3c330f=_0x35f949(null),_0x4a363d=_0x56a185(()=>_0x5900af['fieldOrder'][_0x14e6b3(0x3bc)](_0x1bbc57=>{const _0x49e6e2=_0x14e6b3;let _0x136c60=_0x5900af[_0x49e6e2(0x273)][_0x1bbc57];return _0x136c60&&_0x136c60['system']!==!0x0&&_0x136c60[_0x49e6e2(0x393)]!==_0x557eea[_0x49e6e2(0x389)]?[_0x136c60]:[];})[_0x14e6b3(0x1b3)](_0x2f9060=>_0x2f9060[_0x14e6b3(0x329)]['toLocaleLowerCase']()[_0x14e6b3(0x331)](_0x4d2d78[_0x14e6b3(0x3ee)]()[_0x14e6b3(0x49d)]())),[_0x4d2d78,_0x5900af]),_0x43ee29=_0xe7939=>{const _0x523a79=_0x14e6b3;let _0x2f210c=_0x1c8584(_0x5900af,_0x58b9a7[_0x523a79(0x4aa)]);try{_0xe7939(_0x2f210c),_0x5c3cac({'pivot':_0x2f210c['toJSON']()});}finally{_0x2f210c['dispose']();}},_0x3a9d8a=(_0x1c199e,_0x152c53)=>{_0x565a5a&&(_0x43ee29(_0xe2dd8d=>{const _0x2ca70d=_0x1cf6;if(_0x565a5a[_0x2ca70d(0x29e)]===_0x2ca70d(0x506)){let _0xd287d3=_0xe2dd8d[_0x2ca70d(0x316)](_0x565a5a['id']),_0x3551b6=_0xd287d3[_0x2ca70d(0x269)]===_0x1c199e&&_0xd287d3['index']<_0x152c53?_0x152c53-0x1:_0x152c53;_0xe2dd8d['updateFieldPosition'](_0x565a5a['id'],_0x1c199e,_0x3551b6);return;}Ki(_0xe2dd8d,_0x565a5a['id'],_0x1c199e,_0x152c53);}),_0x54315e(null),_0x3db859(null));};return _0x2b00c1(_0x14e6b3(0x442),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col','children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x3a9b06['t'](_0x14e6b3(0x4a7)),'className':_0x14e6b3(0x410),'items':[{'label':_0x3a9b06['t'](_0x14e6b3(0x2a5)),'panelId':_0x14e6b3(0x4f3),'value':_0x14e6b3(0x273)},{'label':_0x3a9b06['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x14e6b3(0x27b),'value':'options'}],'value':_0x479898,'onChange':_0x343c22}),_0x4dabb7('div',{'ref':_0x3c330f,'className':_0x52fed8(_0x14e6b3(0x2fb),_0x2a22a5),'onDragOver':_0x5171cf=>{const _0xf72121=_0x14e6b3;let _0x42f65b=_0x3c330f['current'];if(!_0x42f65b)return;let _0xc5d3e9=_0x42f65b[_0xf72121(0x4db)]();_0x5171cf[_0xf72121(0x408)]<_0xc5d3e9['top']+0x30?_0x42f65b['scrollTop']-=0x10:_0x5171cf[_0xf72121(0x408)]>_0xc5d3e9[_0xf72121(0x2d0)]-0x30&&(_0x42f65b[_0xf72121(0x425)]+=0x10);},'children':_0x479898===_0x14e6b3(0x320)?_0x4dabb7(Gi,{'config':_0x58b9a7,'commit':_0x43ee29}):_0x2b00c1(_0x14e6b3(0x442),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x2b00c1(_0x14e6b3(0x442),{'children':[_0x4dabb7(_0x14e6b3(0x442),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x3a9b06['t']('bases-dashboard-ui.pivot.sourceFields')}),_0x4dabb7(_0x2c53ee,{'allowClear':!0x0,'slot':_0x4dabb7(_0x51aac6,{}),'value':_0x4d2d78,'placeholder':_0x3a9b06['t'](_0x14e6b3(0x35a)),'onChange':_0x563d98}),_0x4dabb7(_0x14e6b3(0x442),{'className':_0x14e6b3(0x351),'children':_0x4a363d[_0x14e6b3(0x3ff)](_0x2c5221=>_0x4dabb7(zi,{'config':_0x58b9a7,'field':_0x2c5221,'onAdd':_0x50d17d=>_0x43ee29(_0x3840f7=>Ki(_0x3840f7,_0x2c5221['id'],_0x50d17d,_0x3840f7['getFieldCountByArea'](_0x50d17d))),'onCheckedChange':_0x597380=>_0x43ee29(_0x20a575=>{const _0x259c64=_0x14e6b3;let _0x34f00b=_0x20a575['getTableFieldsByDataFieldId'](_0x2c5221['id']);if(!_0x597380){_0x34f00b['forEach'](_0x81b155=>_0x20a575[_0x259c64(0x24e)](_0x81b155['getId']()));return;}if(_0x34f00b[_0x259c64(0x4da)]===0x0){let _0x489489=Ji(_0x2c5221)?_0x4c815c[_0x259c64(0x47a)]:_0x4c815c[_0x259c64(0x456)];_0x20a575[_0x259c64(0x3fa)](_0x2c5221['id'],_0x489489);}}),'onDragStart':()=>_0x54315e({'kind':_0x14e6b3(0x24c),'id':_0x2c5221['id']})},_0x2c5221['id']))})]}),_0x4dabb7(_0x14e6b3(0x442),{'className':'univer-grid\x20univer-gap-3','children':Ii[_0x14e6b3(0x3ff)](_0x4112c6=>_0x4dabb7(Vi,{'area':_0x4112c6['area'],'dropTarget':_0x4fc275,'fields':_0x58b9a7[_0x14e6b3(0x4aa)][_0x4112c6[_0x14e6b3(0x336)]],'label':_0x3a9b06['t'](_0x4112c6[_0x14e6b3(0x3b0)]),'snapshot':_0x58b9a7['pivot'],'onDragEnd':()=>{_0x54315e(null),_0x3db859(null);},'onDragStart':_0x17360d=>_0x54315e({'kind':'field','id':_0x17360d,'area':_0x4112c6[_0x14e6b3(0x269)]}),'onDragOver':_0x39f988=>_0x3db859({'area':_0x4112c6['area'],'index':_0x39f988}),'onDrop':_0x2d0b29=>_0x3a9d8a(_0x4112c6[_0x14e6b3(0x269)],_0x2d0b29),'onFilter':_0x41c801,'onMove':(_0x467161,_0x14b0a0,_0x376b78)=>_0x43ee29(_0x2bfc04=>_0x2bfc04['updateFieldPosition'](_0x467161,_0x14b0a0,_0x376b78)),'onRemove':_0x3acfe4=>_0x43ee29(_0x284d98=>_0x284d98['removeField'](_0x3acfe4)),'onSettings':_0xc21cc0},_0x4112c6['area']))}),_0x36a548&&_0x4dabb7(Ui,{'fieldId':_0x36a548,'snapshot':_0x58b9a7['pivot'],'table':_0x5900af,'onCancel':()=>_0x41c801(null),'onCommit':(_0x272ef6,_0x22b983)=>{_0x43ee29(_0x5f0164=>{const _0x359b8b=_0x1cf6;let _0x489c84=_0x5f0164[_0x359b8b(0x3b7)](_0x36a548),_0x2b8bb0=(_0x489c84==null?void 0x0:_0x489c84['items'])??[];_0x5f0164[_0x359b8b(0x4c2)](_0x36a548,{'type':_0x1b814d[_0x359b8b(0x468)],'list':_0x272ef6,'isAll':_0x272ef6[_0x359b8b(0x4da)]===_0x2b8bb0['length']}),_0x5f0164[_0x359b8b(0x263)](_0x36a548,_0x22b983===void 0x0?void 0x0:{'type':_0x22b983});}),_0x41c801(null);}},_0x36a548),_0x1bb088&&_0x4dabb7(Wi,{'field':_0x58b9a7[_0x14e6b3(0x4aa)]['measure'][_0x1bb088],'onCancel':()=>_0xc21cc0(null),'onCommit':(_0x3f5e2b,_0xffe44b,_0x3b258a)=>{_0x43ee29(_0x1cf23c=>{const _0x46cab7=_0x1cf6;_0x1cf23c[_0x46cab7(0x1e8)](_0x1bb088,_0x3f5e2b),_0x1cf23c[_0x46cab7(0x467)](_0x1bb088,_0xffe44b),_0x1cf23c[_0x46cab7(0x2de)](_0x1bb088,_0x3b258a||void 0x0);}),_0xc21cc0(null);}},_0x1bb088)]})})]});}function zi(_0xd3dcb5){const _0x5139d4=_0x2353bc;let {config:_0x41669b,field:_0x27c732,onAdd:_0x52c20a,onCheckedChange:_0xf2535e,onDragStart:_0x5edc81}=_0xd3dcb5,_0x2fe2af=_0x39b411(_0x5cd3ee),_0x1eacaf=[...Object['values'](_0x41669b[_0x5139d4(0x4aa)][_0x5139d4(0x46a)]),...Object[_0x5139d4(0x4ad)](_0x41669b[_0x5139d4(0x4aa)][_0x5139d4(0x1c7)])]['some'](_0x3c2105=>_0x3c2105[_0x5139d4(0x355)]===_0x27c732['id']),_0x3160ec=Ii[_0x5139d4(0x3ff)](_0x2d96ec=>({'type':'item','children':_0x2fe2af['t'](Yi(_0x2d96ec[_0x5139d4(0x269)])),'onSelect':()=>_0x52c20a(_0x2d96ec[_0x5139d4(0x269)])}));return _0x2b00c1(_0x5139d4(0x442),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x5139d4(0x473),'onDragStart':_0x5edc81,'children':[_0x4dabb7(_0x3cc061,{'checked':_0x1eacaf,'onChange':_0x169c62=>_0xf2535e(!!_0x169c62)}),_0x4dabb7(Bi,{'field':_0x27c732}),_0x4dabb7('span',{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x27c732['name']}),_0x4dabb7(Jr,{'align':_0x5139d4(0x236),'items':_0x3160ec,'children':_0x4dabb7(_0x1b3e3b,{'variant':'text','aria-label':_0x2fe2af['t']('bases-dashboard-ui.pivot.fieldSettings'),'children':_0x4dabb7(_0xf77a3b,{})})})]});}function Bi({field:_0x3dd8ba}){const _0x5409d5=_0x2353bc;return Ji(_0x3dd8ba)?_0x4dabb7(_0x5a5ded,{'className':_0x5409d5(0x28e)}):_0x3dd8ba[_0x5409d5(0x393)]===_0x557eea['Date']||_0x3dd8ba['type']===_0x557eea[_0x5409d5(0x2fa)]||_0x3dd8ba[_0x5409d5(0x393)]===_0x557eea['UpdatedAt']?_0x4dabb7(_0x951fbe,{'className':_0x5409d5(0x28e)}):_0x4dabb7(_0x264f2e,{'className':_0x5409d5(0x28e)});}function Vi(_0x30fd85){const _0x3c342f=_0x2353bc;let {area:_0x16a360,dropTarget:_0x3afb08,fields:_0x1f9547,label:_0x4ed925,snapshot:_0x4fab24}=_0x30fd85,_0x1eb183=_0x39b411(_0x5cd3ee);return _0x2b00c1('section',{'className':_0x52fed8(_0x3c342f(0x458),_0x1298ac),'onDragOver':_0x1f0bcd=>{const _0x23d6fa=_0x3c342f;_0x1f0bcd[_0x23d6fa(0x3ca)](),_0x30fd85['onDragOver'](_0x1f9547[_0x23d6fa(0x4da)]);},'onDrop':_0x1b896a=>{const _0x4137a5=_0x3c342f;_0x1b896a[_0x4137a5(0x3ca)](),_0x30fd85[_0x4137a5(0x20c)]((_0x3afb08==null?void 0x0:_0x3afb08[_0x4137a5(0x269)])===_0x16a360?_0x3afb08[_0x4137a5(0x32a)]:_0x1f9547[_0x4137a5(0x4da)]);},'children':[_0x4dabb7('div',{'className':_0x3c342f(0x356),'children':_0x4ed925}),_0x2b00c1(_0x3c342f(0x442),{'className':_0x3c342f(0x378),'children':[_0x1f9547[_0x3c342f(0x3ff)]((_0x5d4a05,_0x1eb024)=>{const _0x31a941=_0x3c342f;let _0x4973f=_0x4fab24[_0x31a941(0x46a)][_0x5d4a05]??_0x4fab24[_0x31a941(0x1c7)][_0x5d4a05];if(!_0x4973f)return null;let _0x4f0cf5=(_0x3afb08==null?void 0x0:_0x3afb08[_0x31a941(0x269)])===_0x16a360&&_0x3afb08[_0x31a941(0x32a)]===_0x1eb024;return _0x2b00c1(_0x31a941(0x442),{'onDragOver':_0x3058af=>{const _0x5e507c=_0x31a941;_0x3058af[_0x5e507c(0x3ca)](),_0x3058af[_0x5e507c(0x1de)]();let _0x52e16d=_0x3058af[_0x5e507c(0x250)]['getBoundingClientRect']();_0x30fd85[_0x5e507c(0x4cb)](_0x1eb024+ +(_0x3058af[_0x5e507c(0x408)]>_0x52e16d[_0x5e507c(0x45e)]+_0x52e16d['height']/0x2));},'onDrop':_0x1c9830=>{const _0x1e8462=_0x31a941;_0x1c9830[_0x1e8462(0x3ca)](),_0x1c9830[_0x1e8462(0x1de)](),_0x30fd85['onDrop']((_0x3afb08==null?void 0x0:_0x3afb08[_0x1e8462(0x269)])===_0x16a360?_0x3afb08['index']:_0x1eb024);},'children':[_0x4f0cf5&&_0x4dabb7('div',{'className':_0x31a941(0x278)}),_0x4dabb7(Hi,{'area':_0x16a360,'field':_0x4973f,'onDragEnd':_0x30fd85[_0x31a941(0x31c)],'onDragStart':()=>_0x30fd85['onDragStart'](_0x5d4a05),'onFilter':()=>_0x30fd85[_0x31a941(0x49e)](_0x5d4a05),'onMove':_0x3c4244=>_0x30fd85['onMove'](_0x5d4a05,_0x3c4244,0x0),'onMoveUp':_0x1eb024>0x0?()=>_0x30fd85[_0x31a941(0x4b5)](_0x5d4a05,_0x16a360,_0x1eb024-0x1):void 0x0,'onMoveDown':_0x1eb024<_0x1f9547[_0x31a941(0x4da)]-0x1?()=>_0x30fd85[_0x31a941(0x4b5)](_0x5d4a05,_0x16a360,_0x1eb024+0x1):void 0x0,'onRemove':()=>_0x30fd85[_0x31a941(0x287)](_0x5d4a05),'onSettings':()=>_0x30fd85['onSettings'](_0x5d4a05)})]},_0x5d4a05);}),(_0x3afb08==null?void 0x0:_0x3afb08['area'])===_0x16a360&&_0x3afb08[_0x3c342f(0x32a)]===_0x1f9547[_0x3c342f(0x4da)]&&_0x4dabb7(_0x3c342f(0x442),{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),_0x1f9547[_0x3c342f(0x4da)]===0x0&&_0x4dabb7('div',{'className':_0x3c342f(0x279),'children':_0x1eb183['t']('bases-dashboard-ui.pivot.sourceFields')})]})]});}function Hi(_0x148289){const _0x5412b9=_0x2353bc;let _0x3b4155=_0x39b411(_0x5cd3ee),_0x5a1aef=_0x148289['area']===_0x4c815c['Value'],_0x5a8d44=[...Ii[_0x5412b9(0x1b3)](_0x2497fb=>_0x2497fb[_0x5412b9(0x269)]!==_0x148289['area'])[_0x5412b9(0x3ff)](_0x595dc7=>({'type':_0x5412b9(0x423),'children':_0x3b4155['t'](Yi(_0x595dc7[_0x5412b9(0x269)])),'onSelect':()=>_0x148289[_0x5412b9(0x4b5)](_0x595dc7[_0x5412b9(0x269)])})),..._0x148289[_0x5412b9(0x206)]?[{'type':'item','children':_0x3b4155['t'](_0x5412b9(0x2ab)),'onSelect':_0x148289[_0x5412b9(0x206)]}]:[],..._0x148289[_0x5412b9(0x235)]?[{'type':_0x5412b9(0x423),'children':_0x3b4155['t'](_0x5412b9(0x33b)),'onSelect':_0x148289[_0x5412b9(0x235)]}]:[],{'type':_0x5412b9(0x423),'children':_0x3b4155['t'](_0x5412b9(0x404)),'onSelect':_0x148289['onRemove']},{'type':_0x5412b9(0x423),'children':_0x3b4155['t'](_0x5a1aef?_0x5412b9(0x2c7):_0x5412b9(0x3a1)),'onSelect':_0x5a1aef?_0x148289[_0x5412b9(0x373)]:_0x148289[_0x5412b9(0x49e)]}];return _0x2b00c1('div',{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x5412b9(0x328),'onDragEnd':_0x148289[_0x5412b9(0x31c)],'onDragStart':_0x148289['onDragStart'],'children':[_0x4dabb7(_0x56b693,{'title':_0x148289[_0x5412b9(0x506)][_0x5412b9(0x2a9)],'children':_0x4dabb7(_0x5412b9(0x3ec),{'className':_0x5412b9(0x3bf),'children':_0x148289['field'][_0x5412b9(0x2a9)]})}),_0x4dabb7(Jr,{'align':_0x5412b9(0x236),'items':_0x5a8d44,'children':_0x4dabb7(_0x1b3e3b,{'variant':_0x5412b9(0x452),'aria-label':_0x3b4155['t'](_0x5412b9(0x2c7)),'children':_0x4dabb7(_0xf77a3b,{})})})]});}function Ui(_0x3ef5bc){const _0x5f450e=_0x2353bc;var _0x5db6a2,_0x10aee2;let _0x9e9778=_0x39b411(_0x5cd3ee),{format:_0x46e3b7,items:_0x13e838,itemTypes:_0x285867}=_0x56a185(()=>{const _0x4f8d8a=_0x1cf6;let _0x1e122f=_0x1c8584(_0x3ef5bc[_0x4f8d8a(0x4bb)],_0x3ef5bc[_0x4f8d8a(0x1d0)]);try{let _0x5cd992=_0x1e122f['getDataFieldByTableId'](_0x3ef5bc[_0x4f8d8a(0x43d)]);return{'format':_0x5cd992==null?void 0x0:_0x5cd992['format'],'items':[...(_0x5cd992==null?void 0x0:_0x5cd992[_0x4f8d8a(0x41c)])??[]],'itemTypes':[...(_0x5cd992==null?void 0x0:_0x5cd992[_0x4f8d8a(0x4ed)])??[]]};}finally{_0x1e122f['dispose']();}},[_0x3ef5bc[_0x5f450e(0x43d)],_0x3ef5bc['snapshot'],_0x3ef5bc[_0x5f450e(0x4bb)]]),_0x29aeec=(_0x5db6a2=_0x3ef5bc[_0x5f450e(0x1d0)][_0x5f450e(0x46a)][_0x3ef5bc[_0x5f450e(0x43d)]])==null?void 0x0:_0x5db6a2[_0x5f450e(0x3ad)],[_0x2416f9,_0x22428c]=_0x2be63d((_0x29aeec==null?void 0x0:_0x29aeec['type'])===_0x1b814d['ManualFilter']?_0x29aeec[_0x5f450e(0x4ea)]:_0x13e838),[_0x173575,_0xa911aa]=_0x2be63d((_0x10aee2=_0x3ef5bc['snapshot'][_0x5f450e(0x46a)][_0x3ef5bc[_0x5f450e(0x43d)]])==null||(_0x10aee2=_0x10aee2[_0x5f450e(0x1e0)])==null?void 0x0:_0x10aee2[_0x5f450e(0x393)]),_0x4154cc=_0x2416f9[_0x5f450e(0x4da)]===_0x13e838['length'],_0x2095c2=_0x2b00c1(_0x5f450e(0x482),{'className':_0x52fed8(_0x5f450e(0x3f6),_0x1298ac),'children':[_0x4dabb7('div',{'className':_0x5f450e(0x306),'children':_0x9e9778['t'](_0x5f450e(0x3a1))}),_0x2b00c1(_0x5f450e(0x442),{'className':_0x5f450e(0x414),'children':[_0x2b00c1(_0x1b3e3b,{'className':'univer-flex-1','variant':_0x173575===_0x428fd4[_0x5f450e(0x21b)]?_0x5f450e(0x37f):'default','onClick':()=>_0xa911aa(_0x428fd4[_0x5f450e(0x21b)]),'children':[_0x4dabb7(_0x4c6d55,{}),_0x9e9778['t'](_0x5f450e(0x43a))]}),_0x2b00c1(_0x1b3e3b,{'className':_0x5f450e(0x342),'variant':_0x173575===_0x428fd4[_0x5f450e(0x229)]?_0x5f450e(0x37f):_0x5f450e(0x431),'onClick':()=>_0xa911aa(_0x428fd4['descending']),'children':[_0x4dabb7(_0x59e3b9,{}),_0x9e9778['t'](_0x5f450e(0x2b2))]})]}),_0x2b00c1(_0x5f450e(0x442),{'className':_0x5f450e(0x302),'children':[_0x2b00c1(_0x5f450e(0x3b0),{'className':_0x5f450e(0x334),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x4154cc,'indeterminate':_0x2416f9['length']>0x0&&!_0x4154cc,'onChange':()=>_0x22428c(_0x4154cc?[]:_0x13e838)}),_0x9e9778['t'](_0x5f450e(0x368))]}),_0x13e838[_0x5f450e(0x3ff)]((_0x432f70,_0x46a66d)=>_0x2b00c1('label',{'className':_0x5f450e(0x334),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x2416f9[_0x5f450e(0x331)](_0x432f70),'onChange':()=>_0x22428c(_0x4cc6de=>_0x4cc6de[_0x5f450e(0x331)](_0x432f70)?_0x4cc6de[_0x5f450e(0x1b3)](_0x3dd27c=>_0x3dd27c!==_0x432f70):[..._0x4cc6de,_0x432f70])}),_0x4dabb7(_0x5f450e(0x3ec),{'className':_0x5f450e(0x226),'children':qi(_0x432f70,_0x285867[_0x46a66d],_0x46e3b7,_0x9e9778['t'](_0x5f450e(0x2a2)))})]},_0x432f70))]}),_0x2b00c1(_0x5f450e(0x442),{'className':_0x5f450e(0x2e3),'children':[_0x4dabb7(_0x1b3e3b,{'variant':_0x5f450e(0x31a),'onClick':()=>_0x3ef5bc[_0x5f450e(0x434)](_0x13e838,_0x173575),'children':_0x9e9778['t'](_0x5f450e(0x2d3))}),_0x2b00c1(_0x5f450e(0x442),{'className':'univer-flex\x20univer-gap-2','children':[_0x4dabb7(_0x1b3e3b,{'onClick':_0x3ef5bc[_0x5f450e(0x4f7)],'children':_0x9e9778['t']('bases-dashboard-ui.pivot.cancel')}),_0x4dabb7(_0x1b3e3b,{'variant':_0x5f450e(0x37f),'disabled':_0x2416f9[_0x5f450e(0x4da)]===0x0,'onClick':()=>_0x3ef5bc[_0x5f450e(0x434)](_0x2416f9,_0x173575),'children':_0x9e9778['t'](_0x5f450e(0x325))})]})]})]});return _0x4dabb7(_0x4989cc,{'title':_0x9e9778['t']('bases-dashboard-ui.pivot.filterField'),'onClose':_0x3ef5bc[_0x5f450e(0x4f7)],'children':_0x2095c2});}function Wi(_0x1ea0d5){const _0x17c031=_0x2353bc;var _0x38532e,_0xdbdb9c,_0x182ee3;let _0x4420b5=_0x39b411(_0x5cd3ee),[_0x1288ee,_0x3e2177]=_0x2be63d(((_0x38532e=_0x1ea0d5[_0x17c031(0x506)])==null?void 0x0:_0x38532e[_0x17c031(0x2a9)])??''),[_0x1c0c14,_0x1ef88f]=_0x2be63d(((_0xdbdb9c=_0x1ea0d5[_0x17c031(0x506)])==null?void 0x0:_0xdbdb9c['subtotal'])??_0x282c8a[_0x17c031(0x2bf)]),[_0x289563,_0x1635c4]=_0x2be63d(((_0x182ee3=_0x1ea0d5[_0x17c031(0x506)])==null?void 0x0:_0x182ee3['format'])??'');if(!_0x1ea0d5[_0x17c031(0x506)])return null;let _0x46b3c4=_0x2b00c1(_0x17c031(0x482),{'className':_0x52fed8(_0x17c031(0x50c),_0x1298ac),'children':[_0x4dabb7(_0x17c031(0x442),{'className':'univer-text-sm\x20univer-font-medium','children':_0x4420b5['t'](_0x17c031(0x2c7))}),_0x2b00c1(_0x17c031(0x3b0),{'className':_0x17c031(0x4a3),'children':[_0x4420b5['t'](_0x17c031(0x1c9)),_0x4dabb7(_0x2c53ee,{'value':_0x1288ee,'onChange':_0x3e2177})]}),_0x2b00c1('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x4420b5['t']('bases-dashboard-ui.pivot.summarizeBy'),_0x4dabb7(qr,{'value':String(_0x1c0c14),'options':Li['map'](_0x30d868=>({'value':String(_0x30d868[_0x17c031(0x284)]),'label':_0x4420b5['t'](_0x30d868[_0x17c031(0x353)])})),'onChange':_0x12b3fb=>{const _0x471233=_0x17c031;let _0x4844f7=Li['find'](_0x5ceaa9=>String(_0x5ceaa9[_0x471233(0x284)])===_0x12b3fb);_0x4844f7&&_0x1ef88f(_0x4844f7[_0x471233(0x284)]);}})]}),_0x2b00c1('label',{'className':_0x17c031(0x4a3),'children':[_0x4420b5['t'](_0x17c031(0x3e8)),_0x4dabb7(_0x2c53ee,{'value':_0x289563,'onChange':_0x1635c4})]}),_0x2b00c1(_0x17c031(0x442),{'className':_0x17c031(0x4f9),'children':[_0x4dabb7(_0x1b3e3b,{'onClick':_0x1ea0d5[_0x17c031(0x4f7)],'children':_0x4420b5['t'](_0x17c031(0x376))}),_0x4dabb7(_0x1b3e3b,{'variant':'primary','disabled':!_0x1288ee[_0x17c031(0x3ee)](),'onClick':()=>_0x1ea0d5['onCommit'](_0x1288ee['trim'](),_0x1c0c14,_0x289563),'children':_0x4420b5['t'](_0x17c031(0x325))})]})]});return _0x4dabb7(_0x4989cc,{'title':_0x4420b5['t'](_0x17c031(0x2c7)),'onClose':_0x1ea0d5[_0x17c031(0x4f7)],'children':_0x46b3c4});}function Gi(_0x3899dd){const _0x23dbe9=_0x2353bc;let {config:_0x21e48e,commit:_0x197b95}=_0x3899dd,_0x412811=_0x39b411(_0x5cd3ee),_0x368f5c=_0x21e48e['pivot'][_0x23dbe9(0x320)],_0x230464=_0x529ef7=>_0x197b95(_0x37c7a1=>_0x37c7a1[_0x23dbe9(0x3db)]({..._0x37c7a1['getOptions'](),..._0x529ef7}));return _0x2b00c1('div',{'className':_0x23dbe9(0x4f1),'children':[_0x2b00c1(_0x23dbe9(0x3b0),{'className':_0x23dbe9(0x1f1),'children':[_0x412811['t'](_0x23dbe9(0x291)),_0x4dabb7(qr,{'className':'univer-w-36','value':String(_0x21e48e[_0x23dbe9(0x4aa)]['layout']),'options':[{'value':String(_0x426ac9[_0x23dbe9(0x2c8)]),'label':_0x412811['t']('bases-dashboard-ui.pivot.layoutTabular')},{'value':String(_0x426ac9[_0x23dbe9(0x1be)]),'label':_0x412811['t'](_0x23dbe9(0x409))},{'value':String(_0x426ac9[_0x23dbe9(0x379)]),'label':_0x412811['t'](_0x23dbe9(0x421))}],'onChange':_0x343726=>{const _0x4f6612=_0x23dbe9;let _0x38d872=[_0x426ac9[_0x4f6612(0x2c8)],_0x426ac9[_0x4f6612(0x1be)],_0x426ac9[_0x4f6612(0x379)]][_0x4f6612(0x397)](_0x12b1e6=>String(_0x12b1e6)===_0x343726);_0x38d872!==void 0x0&&_0x197b95(_0x447c53=>_0x447c53[_0x4f6612(0x28f)](_0x38d872));}})]}),[{'key':_0x23dbe9(0x479),'label':_0x23dbe9(0x282),'defaultValue':!0x1},{'key':_0x23dbe9(0x40b),'label':'bases-dashboard-ui.pivot.repeatColumnLabels','defaultValue':!0x1},{'key':'showRowSubtotal','label':_0x23dbe9(0x44a),'defaultValue':!0x0},{'key':_0x23dbe9(0x402),'label':_0x23dbe9(0x2ca),'defaultValue':!0x0},{'key':_0x23dbe9(0x280),'label':_0x23dbe9(0x2bb),'defaultValue':!0x0},{'key':'showColGrandTotal','label':_0x23dbe9(0x2c1),'defaultValue':!0x0}]['map'](_0x1bcc08=>_0x2b00c1(_0x23dbe9(0x3b0),{'className':_0x23dbe9(0x343),'children':[_0x4dabb7(_0x3cc061,{'checked':!!(_0x368f5c[_0x1bcc08[_0x23dbe9(0x336)]]??_0x1bcc08[_0x23dbe9(0x1ba)]),'disabled':_0x1bcc08['key']==='repeatRowLabels'&&_0x21e48e[_0x23dbe9(0x4aa)][_0x23dbe9(0x439)]===_0x426ac9[_0x23dbe9(0x1be)],'onChange':_0x442be3=>_0x230464({[_0x1bcc08[_0x23dbe9(0x336)]]:!!_0x442be3})}),_0x412811['t'](_0x1bcc08[_0x23dbe9(0x3b0)])]},_0x1bcc08[_0x23dbe9(0x336)])),_0x21e48e[_0x23dbe9(0x4aa)][_0x23dbe9(0x439)]===_0x426ac9[_0x23dbe9(0x379)]&&_0x2b00c1(_0x23dbe9(0x3b0),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x412811['t'](_0x23dbe9(0x1c3)),_0x4dabb7(qr,{'className':_0x23dbe9(0x23f),'value':String(_0x368f5c[_0x23dbe9(0x413)]??_0x10ab45['top']),'options':[{'value':String(_0x10ab45['top']),'label':_0x412811['t'](_0x23dbe9(0x422))},{'value':String(_0x10ab45['bottom']),'label':_0x412811['t'](_0x23dbe9(0x383))}],'onChange':_0x1b066f=>{const _0x35ef10=_0x23dbe9;let _0x212a0f=[_0x10ab45[_0x35ef10(0x45e)],_0x10ab45[_0x35ef10(0x2d0)]][_0x35ef10(0x397)](_0x39c9b2=>String(_0x39c9b2)===_0x1b066f);_0x212a0f!==void 0x0&&_0x230464({'rowSubtotalPosition':_0x212a0f});}})]}),_0x2b00c1(_0x23dbe9(0x3b0),{'className':_0x23dbe9(0x1f1),'children':[_0x412811['t'](_0x23dbe9(0x25d)),_0x4dabb7(qr,{'className':_0x23dbe9(0x23f),'value':String(_0x21e48e[_0x23dbe9(0x4aa)][_0x23dbe9(0x1bb)]===_0x288ba5[_0x23dbe9(0x2fe)]?_0x288ba5[_0x23dbe9(0x499)]:_0x21e48e[_0x23dbe9(0x4aa)][_0x23dbe9(0x1bb)]),'options':[{'value':String(_0x288ba5[_0x23dbe9(0x499)]),'label':_0x412811['t'](_0x23dbe9(0x318))},{'value':String(_0x288ba5[_0x23dbe9(0x456)]),'label':_0x412811['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x1b707d=>{const _0x51b2e0=_0x23dbe9;let _0x22b349=[_0x288ba5['Column'],_0x288ba5[_0x51b2e0(0x456)]][_0x51b2e0(0x397)](_0x3ee5b7=>String(_0x3ee5b7)===_0x1b707d);_0x22b349!==void 0x0&&_0x197b95(_0x404a62=>_0x404a62['updateValuePosition'](_0x22b349,_0x404a62[_0x51b2e0(0x2cf)]()<0x0?0x0:_0x404a62[_0x51b2e0(0x2cf)]()));}})]}),_0x2b00c1(_0x23dbe9(0x3b0),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x412811['t']('bases-dashboard-ui.pivot.pageWrap'),_0x4dabb7(_0x1c2086,{'className':_0x23dbe9(0x4c0),'min':0x1,'max':0x14,'value':_0x368f5c['pageWrap']??0x1,'onChange':_0x475573=>{let _0x4f5698=Number(_0x475573);Number['isFinite'](_0x4f5698)&&_0x4f5698>=0x1&&_0x230464({'pageWrap':_0x4f5698});}})]}),_0x2b00c1(_0x23dbe9(0x3b0),{'className':_0x23dbe9(0x1f1),'children':[_0x412811['t'](_0x23dbe9(0x40f)),_0x4dabb7(qr,{'className':'univer-w-36','value':String(_0x368f5c[_0x23dbe9(0x1b7)]??!0x1),'options':[{'value':_0x23dbe9(0x48b),'label':_0x412811['t'](_0x23dbe9(0x30c))},{'value':_0x23dbe9(0x1d5),'label':_0x412811['t'](_0x23dbe9(0x4a1))}],'onChange':_0x37c44d=>_0x230464({'pageOverThenDown':_0x37c44d==='true'})})]})]});}function Ki(_0x3caa46,_0xcf7742,_0x300388,_0x78710){const _0x55def8=_0x2353bc;let _0x6c4d7e=_0x3caa46['getTableFieldsByDataFieldId'](_0xcf7742)[_0x55def8(0x397)](_0x478440=>_0x3caa46[_0x55def8(0x316)](_0x478440[_0x55def8(0x1ae)]())[_0x55def8(0x269)]!==_0x4c815c[_0x55def8(0x47a)]);if(_0x300388!==_0x4c815c[_0x55def8(0x47a)]&&_0x6c4d7e){_0x3caa46[_0x55def8(0x1b0)](_0x6c4d7e[_0x55def8(0x1ae)](),_0x300388,_0x78710);return;}_0x3caa46[_0x55def8(0x3fa)](_0xcf7742,_0x300388,_0x78710);}function qi(_0x321d1a,_0x1072f7,_0x233100,_0x17f509){const _0x20c585=_0x2353bc;return _0x1072f7===_0x1fe7b3[_0x20c585(0x512)]?_0x17f509:_0x1072f7===_0x1fe7b3[_0x20c585(0x209)]&&_0x233100?_0x3f4aae[_0x20c585(0x347)](_0x233100,Number(_0x321d1a)):_0x321d1a;}function Ji(_0x193744){const _0x96860e=_0x2353bc;return _0x193744['type']===_0x557eea[_0x96860e(0x416)]||_0x193744['type']===_0x557eea[_0x96860e(0x321)]||_0x193744[_0x96860e(0x393)]===_0x557eea['Progress']||_0x193744[_0x96860e(0x393)]===_0x557eea[_0x96860e(0x42a)];}function Yi(_0x5c2279){const _0x53b0ea=_0x2353bc;switch(_0x5c2279){case _0x4c815c[_0x53b0ea(0x456)]:return _0x53b0ea(0x28b);case _0x4c815c[_0x53b0ea(0x499)]:return _0x53b0ea(0x50d);case _0x4c815c[_0x53b0ea(0x47a)]:return _0x53b0ea(0x4fe);default:return _0x53b0ea(0x41a);}}function Xi({config:_0x2bd721,onChange:_0x24a267,runtime:_0x312532,table:_0xa33f0f}){const _0xb6cdde=_0x2353bc;let _0xcd0aa0=_0x39b411(_0x5cd3ee),[_0x146deb,_0x333d35]=_0x2be63d('chart');return _0x2b00c1(_0xb6cdde(0x2b6),{'className':_0xb6cdde(0x40a),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0xcd0aa0['t'](_0xb6cdde(0x2f6)),'className':'univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','items':[{'label':_0xcd0aa0['t'](_0xb6cdde(0x36b)),'panelId':'base-pivot-chart-configuration','value':_0xb6cdde(0x4d8)},{'label':_0xcd0aa0['t'](_0xb6cdde(0x4a7)),'panelId':_0xb6cdde(0x225),'value':_0xb6cdde(0x4aa)}],'value':_0x146deb,'variant':_0xb6cdde(0x4d2),'onChange':_0x333d35}),_0x4dabb7(_0xb6cdde(0x442),{'className':_0xb6cdde(0x380),'children':_0x146deb===_0xb6cdde(0x4d8)?_0x312532&&_0x4dabb7(Qr,{'config':_0x2bd721,'runtime':_0x312532,'tableName':_0xa33f0f[_0xb6cdde(0x329)],'onChange':_0x24a267}):_0x4dabb7(Ri,{'config':_0x2bd721,'table':_0xa33f0f,'onChange':_0x24a267})})]});}function Zi({tableId:_0x505a17,unitId:_0x3f5bb5,viewId:_0x418ee1}){const _0x5bfbba=_0x2353bc;let [_0x216300,_0x7e450d]=_0x2be63d(!0x1),_0x15b16d=_0x39b411(_0x32452d),_0x57e18b=_0x39b411(_0x4074e5),_0x1f29c7=_0x39b411(_0x34ac8c),_0x1e64cf=_0x39b411(_0x5cd3ee),_0xe2a781=_0x39b411(_0x22ef82),[_0x5caddf,_0x4f042d]=_0x2be63d(null),[_0x47fb17,_0x50a818]=_0x2be63d(null),_0x344ac8=_0x35f949(_0x5bfbba(0x4e9)+_0x325e5d(0x8)),[_0x37ef82,_0xee075e]=_0x2be63d(!0x1),_0x2fb9d7=_0x57e18b['getUnit'](_0x3f5bb5,_0x51ec78[_0x5bfbba(0x4eb)]),_0x49ac79=_0x2fb9d7==null?void 0x0:_0x2fb9d7['getSnapshot']()[_0x5bfbba(0x39c)][_0x505a17],_0x10fae0=_0x49ac79==null?void 0x0:_0x49ac79['views'][_0x418ee1],_0x4f7fe9=Qi(_0x10fae0),_0x1def8=_r(_0x3f5bb5,_0x505a17,_0x418ee1);if(_0x38e78f(()=>{const _0xcbb2ee=_0x5bfbba;if(!_0x4f7fe9)return;let _0x51cc91=_0x344ac8[_0xcbb2ee(0x38f)];return _0xe2a781[_0xcbb2ee(0x403)](_0x51cc91,{'unitId':_0x3f5bb5,'tableId':_0x505a17,'viewId':_0x418ee1,'filters':[]}),()=>{const _0x4ef4a5=_0xcbb2ee;_0xe2a781[_0x4ef4a5(0x503)](_0x3f5bb5,_0x51cc91);};},[_0x4f7fe9,_0xe2a781,_0x505a17,_0x3f5bb5,_0x418ee1]),_0x38e78f(()=>{const _0x3869df=_0x5bfbba;if(!Qi(_0x10fae0))return;let _0x49c496=!0x0,_0x3df014={'unitId':_0x3f5bb5,'tableId':_0x505a17,'viewId':_0x418ee1,'filters':[_0x10fae0[_0x3869df(0x1b3)]??null]};return _0xe2a781[_0x3869df(0x41f)](_0x3f5bb5,_0x344ac8[_0x3869df(0x38f)],_0x3df014)['then'](_0xba6bf8=>{const _0x5ba27f=_0x3869df;_0x49c496&&_0xba6bf8&&(_0x4f042d(_0xba6bf8),_0x50a818(_0xe2a781[_0x5ba27f(0x33e)](_0x3f5bb5,_0x344ac8[_0x5ba27f(0x38f)])??null),_0xee075e(!0x1));})[_0x3869df(0x3d2)](_0x5e6f0b=>{_0x1f29c7['error']('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x5e6f0b),_0x49c496&&(_0x4f042d(null),_0xee075e(!0x0));}),()=>{_0x49c496=!0x1;};},[_0x1f29c7,_0xe2a781,_0x505a17,_0x3f5bb5,_0x10fae0,_0x418ee1]),!_0x49ac79||!Qi(_0x10fae0))return null;let _0x23cd90=_0xe2a781['getChartRuntime'](_0x3f5bb5,_0x344ac8['current'])===_0x47fb17?_0x47fb17:null,_0x1f8fda=_0x5caddf?_0x2b00c1('div',{'className':_0x5bfbba(0x2cd),'style':{'gridTemplateRows':_0x10fae0[_0x5bfbba(0x4e8)][_0x5bfbba(0x4a6)]===_0x5bfbba(0x330)?_0x5bfbba(0x44e):_0x5bfbba(0x230)},'children':[_0x10fae0[_0x5bfbba(0x4e8)][_0x5bfbba(0x4a6)]!==_0x5bfbba(0x4bb)&&_0x23cd90&&_0x4dabb7(_0x5bfbba(0x442),{'className':'univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':_0x4dabb7(Ir,{'isRowDirection':_0x2fa6dd(_0x10fae0[_0x5bfbba(0x4e8)][_0x5bfbba(0x4d8)][_0x5bfbba(0x485)]),'runtime':_0x23cd90})}),_0x10fae0[_0x5bfbba(0x4e8)][_0x5bfbba(0x4a6)]!=='chart'&&_0x4dabb7(_0x5bfbba(0x442),{'className':_0x5bfbba(0x32b),'children':_0x4dabb7(ki,{'pivot':_0x10fae0['config'][_0x5bfbba(0x4aa)],'view':_0x5caddf[_0x5bfbba(0x258)]})})]}):_0x4dabb7('div',{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x37ef82?_0x1e64cf['t'](_0x5bfbba(0x34c)):_0x1e64cf['t']('bases-dashboard-ui.pivot.calculating')}),_0x2a60ea=_0x4dabb7(Xi,{'config':_0x10fae0[_0x5bfbba(0x4e8)],'runtime':_0x23cd90,'table':_0x49ac79,'onChange':_0x148bd6=>{const _0x106e33=_0x5bfbba;_0x57e18b[_0x106e33(0x3ce)](_0x3f5bb5),_0x57e18b[_0x106e33(0x35f)](_0x3f5bb5),_0x15b16d[_0x106e33(0x1ff)](_0x303df3['id'],{'unitId':_0x3f5bb5,'tableId':_0x505a17,'viewId':_0x418ee1,'patch':_0x148bd6})[_0x106e33(0x3d2)](_0x552296=>_0x1f29c7[_0x106e33(0x1b4)](_0x106e33(0x337),_0x552296));}});return _0x4dabb7(Kr,{'children':_0x2b00c1(_0x5bfbba(0x442),{'className':'univer-relative\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-50\x20dark:univer-bg-gray-950','children':[_0x1def8&&_0x4dabb7(_0x1b3e3b,{'onClick':()=>_0x7e450d(!0x0),'children':_0x1e64cf['t'](_0x5bfbba(0x36b))}),_0x4dabb7(_0x5bfbba(0x442),{'className':_0x5bfbba(0x43e),'children':_0x1f8fda}),_0x1def8&&_0x216300&&_0x4dabb7(_0x4989cc,{'title':_0x1e64cf['t'](_0x5bfbba(0x2f6)),'onClose':()=>_0x7e450d(!0x1),'children':_0x2a60ea})]})});}function Qi(_0x2dc864){const _0x19b5b1=_0x2353bc;return(_0x2dc864==null?void 0x0:_0x2dc864[_0x19b5b1(0x393)])===_0x5ee6b5[_0x19b5b1(0x49c)]&&typeof _0x2dc864[_0x19b5b1(0x4e8)]==_0x19b5b1(0x43c)&&_0x2dc864[_0x19b5b1(0x4e8)]!==null&&'pivot'in _0x2dc864[_0x19b5b1(0x4e8)]&&_0x19b5b1(0x4d8)in _0x2dc864[_0x19b5b1(0x4e8)]&&_0x19b5b1(0x4a6)in _0x2dc864['config'];}let $i=class extends _0x2e76da{constructor(_0x5b5943,_0x393e4b,_0x25b341,_0x231b45,_0x49a595,_0x4fc794){const _0x1f4fab=_0x2353bc;super(),this[_0x1f4fab(0x1eb)](_0x393e4b[_0x1f4fab(0x1ac)]({'type':_0x5ee6b5['Pivot'],'renderMode':_0x1f4fab(0x4cc),'icon':_0x3ad3c2,'component':Zi,'menu':{get 'label'(){const _0x11e103=_0x1f4fab;return _0x4fc794['t'](_0x11e103(0x2f6));},get 'description'(){const _0x547663=_0x1f4fab;return _0x4fc794['t'](_0x547663(0x345));},get 'defaultName'(){const _0x3ac35e=_0x1f4fab;return _0x4fc794['t'](_0x3ac35e(0x244));}}})),this['disposeWithMe'](_0x5b5943[_0x1f4fab(0x1ac)](ea(_0x25b341,_0x231b45,_0x49a595,_0x4fc794)));}};$i=Or([Y(0x0,_0x509544),Y(0x1,_0x5eecd3),Y(0x2,_0x2a19f9(_0x5e40a3)),Y(0x3,_0x32452d),Y(0x4,_0x4c7ae7),Y(0x5,_0x2a19f9(_0x5cd3ee))],$i);function ea(_0x1e5361,_0x349538,_0x452fa0,_0x5332c7){const _0x564f93=_0x2353bc;return{'change$':_0x53dd21(_0x1e5361['change$'],_0x452fa0[_0x564f93(0x391)]),'component':bi,get 'labels'(){const _0x5d8ce1=_0x564f93;return{'add':_0x5332c7['t']('bases-dashboard-ui.dashboard.add'),'configure':_0x1ab8e4=>_0x5332c7['t'](_0x5d8ce1(0x233),_0x1ab8e4),'delete':_0x5332c7['t'](_0x5d8ce1(0x305)),'new':_0x5332c7['t'](_0x5d8ce1(0x47f)),'rename':_0x5332c7['t'](_0x5d8ce1(0x259)),'search':_0x5332c7['t'](_0x5d8ce1(0x424)),'section':_0x5332c7['t'](_0x5d8ce1(0x1c4))};},'getItems':_0x3fe205=>{const _0x5c03b4=_0x564f93;let _0x1da4e9=_0x1e5361['getResource'](_0x3fe205);return _0x1da4e9[_0x5c03b4(0x3fe)][_0x5c03b4(0x3bc)](_0x786700=>{const _0x39cf24=_0x5c03b4;let _0x1d4fa2=_0x1da4e9[_0x39cf24(0x370)][_0x786700];return _0x1d4fa2?[{'id':_0x1d4fa2['id'],'name':_0x1d4fa2[_0x39cf24(0x329)],'readonly':!_0x25b5d2(_0x452fa0,_0x3fe205,_0x1d4fa2['id'])}]:[];});},'create':async _0x1a7677=>{const _0x20d530=_0x564f93;let _0x20254f=_0x1e5361[_0x20d530(0x2b1)](_0x1a7677),_0x5c78ca=_0x20d530(0x3a4)+_0x325e5d(0x8),_0x342fb0=ta(_0x20254f[_0x20d530(0x3fe)][_0x20d530(0x3bc)](_0x93b354=>{const _0x36c2aa=_0x20d530;let _0x177a6a=_0x20254f[_0x36c2aa(0x370)][_0x93b354];return _0x177a6a?[_0x177a6a[_0x36c2aa(0x329)]]:[];}),_0xc84da=>_0x5332c7['t'](_0x20d530(0x3e5),String(_0xc84da)));return await _0x349538['executeCommand'](_0x2ef5a6['id'],{'unitId':_0x1a7677,'dashboard':{'id':_0x5c78ca,'name':_0x342fb0,'widgetOrder':[],'widgets':{}}})?_0x5c78ca:null;},'rename':async(_0x1a4e7f,_0x445110,_0x5449d3)=>{const _0x2fa56c=_0x564f93;let _0x1cfe43=_0x1e5361['getDashboard'](_0x1a4e7f,_0x445110);return!!(_0x1cfe43&&await _0x349538[_0x2fa56c(0x1ff)](_0x5cbeb4['id'],{'unitId':_0x1a4e7f,'dashboard':{..._0x1cfe43,'name':_0x5449d3}}));},'remove':(_0xa838f6,_0x105a0d)=>_0x349538[_0x564f93(0x1ff)](_0x22aa0a['id'],{'unitId':_0xa838f6,'dashboardId':_0x105a0d})};}function ta(_0x7e0785,_0x4886f7){const _0x367c21=_0x2353bc;let _0x7d2d26=new Set(_0x7e0785),_0x597ca8=_0x7d2d26['size']+0x1,_0x3b22f9=_0x4886f7(_0x597ca8);for(;_0x7d2d26[_0x367c21(0x30b)](_0x3b22f9);)_0x597ca8+=0x1,_0x3b22f9=_0x4886f7(_0x597ca8);return _0x3b22f9;}let na=class extends _0x52aef1{constructor(_0x3ba2aa=hr,_0x11a7dd,_0x57acaa){const _0x44bdfd=_0x2353bc;super(),this[_0x44bdfd(0x21e)]=_0x3ba2aa,this['_injector']=_0x11a7dd,this['_configService']=_0x57acaa;let {..._0x59ab12}=_0x1731fc({},hr,this[_0x44bdfd(0x21e)]);this['_configService'][_0x44bdfd(0x427)](mr,_0x59ab12);}['onStarting'](){const _0x389bb8=_0x2353bc;this[_0x389bb8(0x2a0)][_0x389bb8(0x1c1)]([kr]),this['_injector'][_0x389bb8(0x1c1)]([Gr]),this['_injector'][_0x389bb8(0x1c1)]([$i]);}['onReady'](){const _0x515597=_0x2353bc;_0x445a23(this[_0x515597(0x2a0)],[[kr],[Gr],[$i]]);}};Pr(na,_0x2353bc(0x393),_0x51ec78['UNIVER_BASE']),Pr(na,_0x2353bc(0x405),_0x2353bc(0x264)),Pr(na,'packageName',fr),Pr(na,_0x2353bc(0x29f),pr),na=Or([_0x4fc5af(_0x38c17a,_0x1615ad,_0x139492,_0x2c95bb,_0x47e249,_0x220c65),Y(0x1,_0x2a19f9(_0x5a8661)),Y(0x2,_0x5a5187)],na);function ra(_0x1be68e,_0x51c02f,_0x11635b,_0x58c686){const _0x2ac0f6=_0x2353bc;let _0x1677a3={..._0x1be68e};if(_0x51c02f[_0x2ac0f6(0x331)]('w')){let _0x4c3571=_0x1be68e['column']+_0x1be68e['columnSpan'];_0x1677a3[_0x2ac0f6(0x39b)]=Math[_0x2ac0f6(0x2eb)](0x0,Math['min'](_0x4c3571-0x1,_0x1be68e[_0x2ac0f6(0x39b)]+_0x11635b)),_0x1677a3[_0x2ac0f6(0x26f)]=_0x4c3571-_0x1677a3[_0x2ac0f6(0x39b)];}else _0x51c02f[_0x2ac0f6(0x331)]('e')&&(_0x1677a3[_0x2ac0f6(0x26f)]=Math[_0x2ac0f6(0x2eb)](0x1,Math[_0x2ac0f6(0x314)](_0x20c9d7-_0x1be68e[_0x2ac0f6(0x39b)],_0x1be68e[_0x2ac0f6(0x26f)]+_0x11635b)));if(_0x51c02f[_0x2ac0f6(0x331)]('n')){let _0x4935c7=_0x1be68e[_0x2ac0f6(0x487)]+_0x1be68e[_0x2ac0f6(0x4b4)];_0x1677a3[_0x2ac0f6(0x487)]=Math[_0x2ac0f6(0x2eb)](0x0,Math[_0x2ac0f6(0x314)](_0x4935c7-0x1,_0x1be68e['row']+_0x58c686)),_0x1677a3['rowSpan']=_0x4935c7-_0x1677a3[_0x2ac0f6(0x487)];}else _0x51c02f[_0x2ac0f6(0x331)]('s')&&(_0x1677a3['rowSpan']=Math[_0x2ac0f6(0x2eb)](0x1,_0x1be68e[_0x2ac0f6(0x4b4)]+_0x58c686));return _0x1677a3;}function ia(_0x3efc54){const _0x3ad088=_0x2353bc;let _0x15ce94=Math['max'](0x1,Math['min'](_0x20c9d7,Math['round'](_0x3efc54[_0x3ad088(0x26f)])));return{'column':Math[_0x3ad088(0x2eb)](0x0,Math['min'](_0x20c9d7-_0x15ce94,Math['round'](_0x3efc54[_0x3ad088(0x39b)]))),'row':Math['max'](0x0,Math['round'](_0x3efc54[_0x3ad088(0x487)])),'columnSpan':_0x15ce94,'rowSpan':Math['max'](0x1,Math[_0x3ad088(0x384)](_0x3efc54[_0x3ad088(0x4b4)]))};}function aa(_0x86400e,_0x264002,_0x591dcc){const _0x389cf2=_0x2353bc;let _0x23306e=new Map(_0x86400e),_0x405b5d=ia(_0x591dcc);_0x23306e[_0x389cf2(0x401)](_0x264002,_0x405b5d);let _0xb20dc0=[[_0x264002,_0x405b5d]];for(let [_0x5440a9,_0x3864be]of _0x23306e){if(_0x5440a9===_0x264002)continue;let _0x22981d=ia(_0x3864be);for(;_0xb20dc0[_0x389cf2(0x464)](([,_0x443eec])=>sa(_0x22981d,_0x443eec));)_0x22981d={..._0x22981d,'row':_0x22981d[_0x389cf2(0x487)]+0x1};for(;_0x22981d[_0x389cf2(0x487)]>0x0;){let _0x127bab={..._0x22981d,'row':_0x22981d[_0x389cf2(0x487)]-0x1};if(_0xb20dc0['some'](([,_0x469f9e])=>sa(_0x127bab,_0x469f9e)))break;_0x22981d=_0x127bab;}_0xb20dc0[_0x389cf2(0x4ec)]([_0x5440a9,_0x22981d]),_0x23306e['set'](_0x5440a9,_0x22981d);}return _0x23306e;}function oa(_0x438988,_0x1f7695,_0xba13d,_0x3ce656=0x38,_0x549e03=0x16){const _0x5a02e3=_0x2353bc;return _0x438988<_0x1f7695+_0x3ce656?-Math[_0x5a02e3(0x30e)](_0x549e03*(0x1-Math[_0x5a02e3(0x2eb)](0x0,_0x438988-_0x1f7695)/_0x3ce656)):_0x438988>_0xba13d-_0x3ce656?Math[_0x5a02e3(0x30e)](_0x549e03*(0x1-Math[_0x5a02e3(0x2eb)](0x0,_0xba13d-_0x438988)/_0x3ce656)):0x0;}function sa(_0x2fec36,_0x1579e4){const _0x5df90c=_0x2353bc;return _0x2fec36[_0x5df90c(0x39b)]<_0x1579e4[_0x5df90c(0x39b)]+_0x1579e4[_0x5df90c(0x26f)]&&_0x2fec36[_0x5df90c(0x39b)]+_0x2fec36[_0x5df90c(0x26f)]>_0x1579e4[_0x5df90c(0x39b)]&&_0x2fec36[_0x5df90c(0x487)]<_0x1579e4[_0x5df90c(0x487)]+_0x1579e4[_0x5df90c(0x4b4)]&&_0x2fec36[_0x5df90c(0x487)]+_0x2fec36[_0x5df90c(0x4b4)]>_0x1579e4['row'];}const ca=[{'direction':'nw','className':_0x2353bc(0x2dc)},{'direction':'n','className':_0x2353bc(0x3a0)},{'direction':'ne','className':'univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize'},{'direction':'e','className':_0x2353bc(0x364)},{'direction':'se','className':_0x2353bc(0x3eb)},{'direction':'s','className':_0x2353bc(0x496)},{'direction':'sw','className':'univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize'},{'direction':'w','className':_0x2353bc(0x2af)}];function la({dashboard:_0x429c50,dragLabel:_0x1520c4,editable:_0x3ff6ea=!0x0,onLayoutsCommit:_0x246b0f,onSelectWidget:_0x371d18,renderWidget:_0xd856c4,renderWidgetActions:_0x5584c9,resizeLabel:_0x347697,selectedWidgetId:_0x1ebf59,widgetLabel:_0x40819c}){const _0xab83dd=_0x2353bc;let _0x402d55=_0x35f949(null),_0x581412=_0x35f949(null),[_0x413c2b,_0x2f616f]=_0x2be63d(!0x1),_0x470b0a=_0x56a185(()=>new Map(_0x429c50[_0xab83dd(0x362)][_0xab83dd(0x3bc)](_0x516be2=>{const _0x4f71ae=_0xab83dd;let _0x1ddb18=_0x429c50['widgets'][_0x516be2];return _0x1ddb18?[[_0x516be2,_0x1ddb18[_0x4f71ae(0x439)]]]:[];})),[_0x429c50]),[_0x7a1e79,_0x413836]=_0x2be63d(_0x470b0a);_0x38e78f(()=>{const _0xd72bb2=_0xab83dd;_0x581412[_0xd72bb2(0x38f)]||_0x413836(_0x470b0a);},[_0x470b0a]),_0x38e78f(()=>{const _0x4fc63d=_0xab83dd;if(!_0x413c2b)return;let _0xef4e54=_0x490e2d=>{const _0x2b45f4=_0x1cf6;let _0x180427=_0x402d55['current'];if(!_0x180427)return null;let _0x6d2fc5=_0x180427['getBoundingClientRect'](),_0x13c08b=Math[_0x2b45f4(0x2eb)](0x1,(_0x6d2fc5[_0x2b45f4(0x3c9)]-0x8*(_0x20c9d7-0x1))/_0x20c9d7),_0x69dbd7=Math[_0x2b45f4(0x384)]((_0x180427[_0x2b45f4(0x425)]-_0x490e2d['startScrollTop'])/(_0x50185b+0x8)),_0xb8c393=Math['round']((_0x490e2d['pointerX']-_0x490e2d[_0x2b45f4(0x210)])/(_0x13c08b+0x8)),_0x4ccba6=Math[_0x2b45f4(0x384)]((_0x490e2d[_0x2b45f4(0x1f3)]-_0x490e2d[_0x2b45f4(0x497)])/(_0x50185b+0x8))+_0x69dbd7,_0x171b4c=_0x490e2d[_0x2b45f4(0x224)]===_0x2b45f4(0x27a)?{..._0x490e2d['initial'],'column':_0x490e2d['initial']['column']+_0xb8c393,'row':_0x490e2d['initial']['row']+_0x4ccba6}:ra(_0x490e2d[_0x2b45f4(0x38b)],_0x490e2d[_0x2b45f4(0x315)]??'se',_0xb8c393,_0x4ccba6),_0x9652d9=aa(_0x490e2d[_0x2b45f4(0x462)],_0x490e2d['id'],_0x171b4c);return _0x413836(_0x9652d9),_0x9652d9;},_0x2ce3f6=_0x22df99=>{const _0x1a5457=_0x1cf6;let _0x4b2b9e=_0x581412[_0x1a5457(0x38f)];if(!_0x4b2b9e)return;let _0x547451={..._0x4b2b9e,'pointerX':_0x22df99[_0x1a5457(0x283)],'pointerY':_0x22df99[_0x1a5457(0x408)]};_0x581412[_0x1a5457(0x38f)]=_0x547451;},_0x37375b=()=>{const _0x391de5=_0x1cf6;let _0x37b7de=_0x581412['current'],_0xe3eb0c=_0x37b7de?_0xef4e54(_0x37b7de):null;_0x581412[_0x391de5(0x38f)]=null,_0x2f616f(!0x1),_0xe3eb0c&&_0x246b0f(_0xe3eb0c);},_0x1afcc7=0x0,_0x24c200=()=>{const _0x90eb5b=_0x1cf6;let _0x890fc=_0x402d55[_0x90eb5b(0x38f)],_0x5ee0b2=_0x581412['current'];if(_0x890fc&&_0x5ee0b2){let _0x3140d6=_0x890fc[_0x90eb5b(0x4db)](),_0x74a1f1=oa(_0x5ee0b2[_0x90eb5b(0x1f3)],_0x3140d6[_0x90eb5b(0x45e)],_0x3140d6[_0x90eb5b(0x2d0)]);_0x74a1f1!==0x0&&(_0x890fc[_0x90eb5b(0x425)]+=_0x74a1f1),_0xef4e54(_0x5ee0b2),_0x1afcc7=requestAnimationFrame(_0x24c200);}};return _0x1afcc7=requestAnimationFrame(_0x24c200),window[_0x4fc63d(0x1d1)](_0x4fc63d(0x1e7),_0x2ce3f6),window[_0x4fc63d(0x1d1)](_0x4fc63d(0x322),_0x37375b),()=>{const _0x1ea24d=_0x4fc63d;cancelAnimationFrame(_0x1afcc7),window[_0x1ea24d(0x27d)](_0x1ea24d(0x1e7),_0x2ce3f6),window[_0x1ea24d(0x27d)](_0x1ea24d(0x322),_0x37375b);};},[_0x413c2b,_0x246b0f]);let _0x19f547=Math[_0xab83dd(0x2eb)](0x8,...Array[_0xab83dd(0x4ce)](_0x7a1e79['values']())[_0xab83dd(0x3ff)](_0xb6d4cd=>_0xb6d4cd[_0xab83dd(0x487)]+_0xb6d4cd[_0xab83dd(0x4b4)])),_0x2e0942=(_0x286824,_0x1ec0cb,_0x43b489,_0x4b90c0)=>{const _0xf9a2ee=_0xab83dd;_0x286824[_0xf9a2ee(0x3ca)](),_0x286824[_0xf9a2ee(0x1de)]();let _0x308175=_0x402d55['current'],_0xe79e79={'id':_0x1ec0cb['id'],'mode':_0x43b489,'pointerX':_0x286824[_0xf9a2ee(0x283)],'pointerY':_0x286824[_0xf9a2ee(0x408)],'startX':_0x286824[_0xf9a2ee(0x283)],'startY':_0x286824['clientY'],'startScrollTop':(_0x308175==null?void 0x0:_0x308175[_0xf9a2ee(0x425)])??0x0,'initial':_0x7a1e79[_0xf9a2ee(0x2f0)](_0x1ec0cb['id'])??_0x1ec0cb[_0xf9a2ee(0x439)],'initialLayouts':new Map(_0x7a1e79),'resizeDirection':_0x4b90c0};_0x581412['current']=_0xe79e79,_0x2f616f(!0x0);};return _0x4dabb7('div',{'ref':_0x402d55,'data-dashboard-scroll-container':!0x0,'className':_0x52fed8(_0xab83dd(0x338),_0x2a22a5),'onClick':_0x3ff6ea?_0x56c7e9=>{const _0x27cacc=_0xab83dd;if(!(_0x56c7e9['target']instanceof Node)||!_0x56c7e9[_0x27cacc(0x250)][_0x27cacc(0x275)](_0x56c7e9[_0x27cacc(0x344)]))return;let _0x84181=_0x56c7e9['target']instanceof Element?_0x56c7e9['target']:_0x56c7e9[_0x27cacc(0x344)][_0x27cacc(0x45a)];_0x84181!=null&&_0x84181[_0x27cacc(0x304)](_0x27cacc(0x481))||_0x371d18==null||_0x371d18();}:void 0x0,'children':_0x4dabb7('div',{'data-dashboard-grid':!0x0,'className':_0xab83dd(0x1d7),'style':{'gap':0x8,'gridAutoRows':_0x50185b,'minHeight':_0x19f547*(_0x50185b+0x8)},'children':_0x429c50['widgetOrder'][_0xab83dd(0x3ff)](_0x322fa2=>{const _0x36d00f=_0xab83dd;var _0x2b68bb;let _0x2fdd67=_0x429c50[_0x36d00f(0x4e1)][_0x322fa2],_0xad4033=_0x7a1e79[_0x36d00f(0x2f0)](_0x322fa2);return!_0x2fdd67||!_0xad4033?null:_0x2b00c1(_0x36d00f(0x386),{'data-dashboard-widget':_0x2fdd67['id'],'aria-label':_0x2fdd67[_0x36d00f(0x448)]??_0x40819c(_0x2fdd67),'className':_0x52fed8(_0x36d00f(0x2f1),_0x2fdd67[_0x36d00f(0x393)]===_0x342116[_0x36d00f(0x4ae)]||_0x2fdd67[_0x36d00f(0x393)]===_0x342116['FormulaShape']?_0x36d00f(0x382):_0x36d00f(0x3d3),_0x3ff6ea&&_0x1ebf59===_0x2fdd67['id']?_0x36d00f(0x30f):_0x36d00f(0x357)),'style':{'gridColumn':_0xad4033[_0x36d00f(0x39b)]+0x1+_0x36d00f(0x35e)+_0xad4033[_0x36d00f(0x26f)],'gridRow':_0xad4033[_0x36d00f(0x487)]+0x1+_0x36d00f(0x35e)+_0xad4033['rowSpan']},'tabIndex':_0x3ff6ea?0x0:void 0x0,'onClick':_0x3ff6ea?()=>_0x371d18==null?void 0x0:_0x371d18(_0x2fdd67['id']):void 0x0,'onFocus':_0x3ff6ea?()=>_0x371d18==null?void 0x0:_0x371d18(_0x2fdd67['id']):void 0x0,'children':[_0x3ff6ea&&_0x4dabb7(_0x36d00f(0x228),{'type':_0x36d00f(0x228),'aria-label':_0x1520c4,'data-dashboard-drag-handle':_0x2fdd67['id'],'className':_0x52fed8('univer-pointer-events-none\x20univer-absolute\x20univer-left-1/2\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-h-5\x20univer-w-8\x20-univer-translate-x-1/2\x20univer-appearance-none\x20univer-items-center\x20univer-justify-center\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-400\x20univer-opacity-0\x20univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100',_0x413c2b&&((_0x2b68bb=_0x581412[_0x36d00f(0x38f)])==null?void 0x0:_0x2b68bb['id'])===_0x2fdd67['id']&&_0x581412[_0x36d00f(0x38f)][_0x36d00f(0x224)]===_0x36d00f(0x27a)?'univer-cursor-grabbing':_0x36d00f(0x2c5)),'onPointerDown':_0x529d3e=>_0x2e0942(_0x529d3e,_0x2fdd67,_0x36d00f(0x27a)),'children':_0x4dabb7(_0x1487d8,{'className':_0x36d00f(0x40c),'aria-hidden':_0x36d00f(0x1d5)})}),_0x3ff6ea&&_0x4dabb7('div',{'className':_0x36d00f(0x2f3),'children':_0x5584c9==null?void 0x0:_0x5584c9(_0x2fdd67)}),_0x4dabb7(_0x36d00f(0x442),{'className':_0x36d00f(0x2b7),'children':_0xd856c4(_0x2fdd67)}),_0x3ff6ea&&ca[_0x36d00f(0x3ff)](({className:_0x39ff2a,direction:_0x3af055})=>{const _0x1c858a=_0x36d00f;let _0x5745a6=_0x3af055[_0x1c858a(0x4da)]===0x2;return _0x4dabb7(_0x1c858a(0x228),{'type':_0x1c858a(0x228),'aria-label':_0x347697,'data-dashboard-resize-handle':_0x3af055,'data-dashboard-resize-control':_0x5745a6?_0x3af055:void 0x0,'data-dashboard-resize-edge':_0x5745a6?void 0x0:_0x3af055,'className':_0x52fed8(_0x1c858a(0x42d),_0x5745a6?_0x1c858a(0x1cf):_0x1c858a(0x3cc),_0x39ff2a,_0x1ebf59===_0x2fdd67['id']&&'univer-pointer-events-auto\x20univer-opacity-100'),'onPointerDown':_0x547b2f=>_0x2e0942(_0x547b2f,_0x2fdd67,_0x1c858a(0x220),_0x3af055)},_0x3af055);})]},_0x2fdd67['id']);})})});}var ua;const Q={'axis':{..._0x5caca4,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x26697d,'heatmap':_0x296680,'indicatorLine':_0x195779,'legend':_0x4fe0eb,'lineAndArea':_0x499ec0,'pareto':_0x4cf110,'pie':_0x1db8a1,'radar':_0x35ac4f,'relation':{..._0x2da675,'useValueAsSymbolSize':!0x0},'series':{..._0x396e30,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((ua=_0x46c996['allSeriesStyle'])==null?void 0x0:ua[_0x2353bc(0x2c6)])??!0x1}},'style':_0x5792d9,'titles':_0x21806e,'trendline':_0x563c89,'waterfall':{..._0x2c231e,'useSubtotal':!0x0},'waterfallStyle':_0x31f02c,'wordCloud':_0x8c0c35},da=[_0x3414f3[_0x2353bc(0x4ef)],_0x3414f3['Radar'],_0x3414f3['WordCloud'],_0x3414f3['Scatter'],_0x3414f3[_0x2353bc(0x4f5)],_0x3414f3[_0x2353bc(0x3dd)],_0x3414f3[_0x2353bc(0x46c)],_0x3414f3['Heatmap'],_0x3414f3[_0x2353bc(0x2d1)],_0x3414f3[_0x2353bc(0x1fe)],_0x3414f3['Histogram'],_0x3414f3['Treemap'],_0x3414f3['Sunburst'],_0x3414f3[_0x2353bc(0x494)],_0x3414f3[_0x2353bc(0x2e4)]];function fa(_0x3eb10e){const _0x5e8fcd=_0x2353bc;let {config:_0x486f6d,onChange:_0x30d33c,runtime:_0x2ac1d1,tableName:_0x595b6c}=_0x3eb10e,_0x5d8ef4=_0x39b411(Gr),_0x28dc6d=_0x39b411(_0x5cd3ee),[_0x482840,_0x53d767]=_0x2be63d(_0x139866['Data']),_0x2ba712=_0x56a185(()=>new _0x29d554(_0x2ac1d1[_0x5e8fcd(0x37a)],{'commit':_0x44ac9a=>{const _0x1867e3=_0x5e8fcd;var _0x6f1ac5;let _0x14ab0e=_0x2ac1d1[_0x1867e3(0x37a)],_0x438cbd=_0x485197(_0x44ac9a,{'series':(_0x6f1ac5=_0x14ab0e[_0x1867e3(0x4e8)])==null?void 0x0:_0x6f1ac5['series'],'currentChartType':_0x14ab0e[_0x1867e3(0x3e2)],'currentStyle':_0x14ab0e['style'],'currentContext':_0x14ab0e[_0x1867e3(0x1af)],'currentDataAggregation':_0x14ab0e[_0x1867e3(0x3b9)]});_0x30d33c({'chart':pa(_0x486f6d[_0x1867e3(0x4d8)],_0x438cbd)});}}),[_0x486f6d[_0x5e8fcd(0x4d8)],_0x30d33c,_0x2ac1d1]),_0xfbcda5=_0x56a185(()=>_0x2dbfb8(_0x170e20['map'](_0x4777b2=>({..._0x4777b2,'label':_0x28dc6d['t'](_a(_0x4777b2[_0x5e8fcd(0x1a8)]))}))),[_0x28dc6d]);return _0x4dabb7(_0x4bacfa,{'chartUIService':_0x5d8ef4,'hostAdapter':_0x2ba712,'children':_0x2b00c1(_0x5e8fcd(0x442),{'className':_0x5e8fcd(0x450),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x28dc6d['t'](_0x5e8fcd(0x3d4)),'className':_0x5e8fcd(0x410),'items':[{'label':_0x28dc6d['t'](_0x5e8fcd(0x466)),'panelId':_0x5e8fcd(0x45d),'value':_0x139866[_0x5e8fcd(0x1df)]},{'label':_0x28dc6d['t'](_0x5e8fcd(0x33f)),'panelId':_0x5e8fcd(0x311),'value':_0x139866[_0x5e8fcd(0x352)]}],'value':_0x482840,'onChange':_0x53d767}),_0x482840===_0x139866['Data']?_0x4dabb7(_0x3812e6,{'id':'base-pivot-chart-setup','label':_0x28dc6d['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x2b00c1(_0x5e8fcd(0x442),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x4dabb7(_0x195039,{'options':_0xfbcda5}),_0x4dabb7(_0x3eaf0a,{}),_0x4dabb7(_0x1603db,{}),_0x4dabb7(ma,{}),_0x4dabb7(_0x3210ae,{}),_0x2b00c1(_0x5e8fcd(0x442),{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x28dc6d['t'](_0x5e8fcd(0x2da))}),_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x595b6c})]}),_0x4dabb7(_0x26c1b7,{'orientationControl':_0x4dabb7(_0x1b3e3b,{'size':_0x5e8fcd(0x432),'onClick':()=>_0x30d33c({'chart':{..._0x486f6d[_0x5e8fcd(0x4d8)],'orient':_0x486f6d['chart'][_0x5e8fcd(0x485)]===_0x5e8fcd(0x487)?_0x5e8fcd(0x39b):'row'}}),'children':_0x28dc6d['t']('bases-dashboard-ui.chart.common.switchRowColumn')})}),_0x4dabb7(_0x45db86,{}),_0x4dabb7(_0x4e37ce,{'defaultValues':Q[_0x5e8fcd(0x2fd)]}),_0x2b00c1('div',{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x28dc6d['t'](_0x5e8fcd(0x470))}),_0x4dabb7(_0xce6b1b,{'value':_0x486f6d[_0x5e8fcd(0x4a6)],'options':[{'value':_0x5e8fcd(0x330),'label':_0x28dc6d['t'](_0x5e8fcd(0x3c6))},{'value':_0x5e8fcd(0x4d8),'label':_0x28dc6d['t'](_0x5e8fcd(0x3c7))},{'value':_0x5e8fcd(0x4bb),'label':_0x28dc6d['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x38503b=>{const _0x485e1d=_0x5e8fcd;(_0x38503b===_0x485e1d(0x330)||_0x38503b===_0x485e1d(0x4d8)||_0x38503b===_0x485e1d(0x4bb))&&_0x30d33c({'displayMode':_0x38503b});}})]})]})}):_0x4dabb7(_0x3812e6,{'id':'base-pivot-chart-style','label':_0x28dc6d['t'](_0x5e8fcd(0x33f)),'children':_0x4dabb7(ha,{})})]})});}function pa(_0x3db5a4,_0x19e117){const _0x10f3df=_0x2353bc;return{..._0x3db5a4,'type':_0x19e117[_0x10f3df(0x3e2)]??_0x3db5a4['type'],'style':_0x19e117[_0x10f3df(0x3f1)]??_0x3db5a4[_0x10f3df(0x3f1)],'context':_0x19e117[_0x10f3df(0x1af)]??_0x3db5a4['context'],'dataAggregation':_0x19e117[_0x10f3df(0x3b9)]??_0x3db5a4[_0x10f3df(0x3b9)]};}function ma(){const _0xd1cc0=_0x2353bc;let _0x2e4890=_0x1f2e67();return _0x4dabb7(_0x34de73,{'visible':da[_0xd1cc0(0x498)](_0xab9aab=>!_0x4c5ed5[_0xd1cc0(0x20b)](_0x2e4890,_0xab9aab))});}function $(_0x55758e){const _0x4c67ff=_0x2353bc;return _0x2b00c1(_0x1358f8,{'id':_0x55758e['id'],'children':[_0x4dabb7(_0x352fb4,{'children':_0x55758e[_0x4c67ff(0x3b0)]}),_0x4dabb7(_0xaf7aad,{'children':_0x55758e[_0x4c67ff(0x4a0)]})]});}function ha(){const _0x5beea5=_0x2353bc;let _0x11faa3=_0x39b411(_0x5cd3ee),_0x80a800=_0x1f2e67(),_0x212c5e=_0x51b799(),[_0x1af09c,_0x7f8022]=_0x2be63d(null),_0x341540=_0x4c5ed5['baseOn'](_0x80a800,_0x3414f3[_0x5beea5(0x1b1)]),_0x3a5efc=_0x80a800===_0x3414f3[_0x5beea5(0x4e4)],_0x45ab49=_0x80a800===_0x3414f3[_0x5beea5(0x297)],_0x5f0d27=_0x80a800===_0x3414f3['Funnel'],_0x2d6f7e=_0x4c5ed5[_0x5beea5(0x20b)](_0x80a800,_0x3414f3[_0x5beea5(0x2ae)]),_0x3e202f=_0x80a800===_0x3414f3['Relation'],_0x44cde6=_0x80a800===_0x3414f3[_0x5beea5(0x24f)],_0x4e5145=_0x80a800===_0x3414f3['Pareto'],_0x29edce=_0x80a800===_0x3414f3['Heatmap'],_0x2e8a88=_0x326a9b(_0x80a800,_0x1958f1[_0x5beea5(0x270)])&&!_0x2d6f7e&&!_0x4e5145,_0xe7ba27=ga(_0x80a800,_0x11faa3);return _0x2b00c1(_0x28ef86,{'value':_0x1af09c,'onChange':_0x7f8022,'children':[_0x4dabb7($,{'id':_0x8fe1f1['ChartStyle'],'label':_0x11faa3['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':_0x4dabb7(_0x466794,{'defaultValues':Q[_0x5beea5(0x3f1)]})}),_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x1d9)],'label':_0x11faa3['t'](_0x5beea5(0x406)),'children':_0x4dabb7(_0xe815e7,{'commitMode':_0x5beea5(0x453),'defaultValues':Q[_0x5beea5(0x262)]})}),_0x2e8a88&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x484)],'label':_0x11faa3['t'](_0x5beea5(0x1a9)),'children':_0x4dabb7(_0x3bcbff,{'defaultValues':Q[_0x5beea5(0x418)],'NumberFormatField':_0x2f8e19})}),_0x44cde6&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x1d6)],'label':_0x11faa3['t'](_0x5beea5(0x2c4)),'children':_0x4dabb7(_0x217c37,{'defaultValues':Q['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x11f305,target:_0x132ba0})=>_0x132ba0===_0x6a9b13[_0x5beea5(0x1d3)]?_0x11faa3['t']('bases-dashboard-ui.chart.waterfall.subtotal'):_0x11f305?_0x11f305+'-('+_0x11faa3['t']('bases-dashboard-ui.chart.'+(_0x132ba0===_0x6a9b13[_0x5beea5(0x428)]?_0x5beea5(0x507):_0x5beea5(0x3a8)))+')':'','NumberFormatField':_0x2f8e19})}),_0x4e5145&&_0x2b00c1(_0xa1bb43,{'children':[_0x4dabb7($,{'id':_0x8fe1f1['ParetoBarSeries'],'label':_0x11faa3['t'](_0x5beea5(0x1cb)),'children':_0x4dabb7(_0x35a412,{'defaultValues':Q[_0x5beea5(0x340)],'NumberFormatField':_0x2f8e19,'showDataPointEditor':!0x0,'target':'barStyle'})}),_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x4c5)],'label':_0x11faa3['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':_0x4dabb7(_0x35a412,{'defaultValues':Q['pareto'],'NumberFormatField':_0x2f8e19,'showDataPointEditor':!0x1,'target':_0x5beea5(0x1e3)})})]}),_0x341540&&_0x4dabb7($,{'id':_0x8fe1f1['PieStyle'],'label':_0x11faa3['t'](_0x5beea5(0x49b)),'children':_0x4dabb7(_0x34a105,{'defaultValues':Q[_0x5beea5(0x477)],'NumberFormatField':_0x2f8e19})}),_0x45ab49&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x297)],'label':_0x11faa3['t'](_0x5beea5(0x2ba)),'children':_0x4dabb7(_0x5ac713,{'defaultValues':Q['wordCloud']})}),_0x3a5efc&&_0x4dabb7($,{'id':_0x8fe1f1['Radar'],'label':_0x11faa3['t']('bases-dashboard-ui.chart.section.radar'),'children':_0x4dabb7(_0x4c7c71,{'defaultValues':Q[_0x5beea5(0x3f0)]})}),_0x5f0d27&&_0x4dabb7($,{'id':_0x8fe1f1['Funnel'],'label':_0x11faa3['t']('bases-dashboard-ui.chart.section.funnel'),'children':_0x4dabb7(_0x666ad2,{'defaultValues':Q[_0x5beea5(0x480)],'gapControl':_0x5beea5(0x465)})}),_0x29edce&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x20d)],'label':_0x11faa3['t'](_0x5beea5(0x2c2)),'children':_0x4dabb7(_0x3c01f2,{'defaultValues':Q[_0x5beea5(0x300)]})}),_0x3e202f&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x3dd)],'label':_0x11faa3['t'](_0x5beea5(0x476)),'children':_0x4dabb7(_0x11ce9e,{'defaultValues':Q[_0x5beea5(0x363)]})}),_0x59d745(_0x80a800)&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x4e5)],'label':_0x11faa3['t'](_0x5beea5(0x4ab)),'children':_0x4dabb7(_0x457b13,{'defaultValues':Q[_0x5beea5(0x39a)],'lineStyleControl':'segmented'})}),_0x326a9b(_0x80a800,_0x1958f1[_0x5beea5(0x3b8)])&&_0x4dabb7($,{'id':_0x8fe1f1['Legend'],'label':_0x11faa3['t'](_0x5beea5(0x4d5)),'children':_0x4dabb7(_0x1dc64f,{'defaultValues':Q[_0x5beea5(0x508)]})}),_0x326a9b(_0x80a800,_0x1958f1[_0x5beea5(0x313)])&&_0x2b00c1(_0xa1bb43,{'children':[_0x4dabb7($,{'id':_0x8fe1f1['HorizontalAxis'],'label':_0x11faa3['t'](_0x5beea5(0x26b)),'children':_0x4dabb7(_0x185c32,{'axis':'x','defaultValues':Q[_0x5beea5(0x310)],'NumberFormatField':_0x2f8e19})}),_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x488)],'label':_0x11faa3['t'](_0x5beea5(0x1ec)),'children':_0x4dabb7(_0x185c32,{'axis':'y','defaultValues':Q['axis'],'NumberFormatField':_0x2f8e19})}),_0x212c5e&&_0x4dabb7($,{'id':_0x8fe1f1['RightVerticalAxis'],'label':_0x11faa3['t'](_0x5beea5(0x374)),'children':_0x4dabb7(_0x185c32,{'axis':'rightY','defaultValues':Q['axis'],'NumberFormatField':_0x2f8e19})}),_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x1ee)],'label':_0x11faa3['t'](_0x5beea5(0x261)),'children':_0x4dabb7(_0x1f6674,{'defaultValues':Q[_0x5beea5(0x310)]})})]}),_0x326a9b(_0x80a800,_0x1958f1[_0x5beea5(0x223)])&&_0x4dabb7($,{'id':_0x8fe1f1[_0x5beea5(0x223)],'label':_0x11faa3['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':_0x4dabb7(_0x5f2295,{'defaultValues':Q[_0x5beea5(0x24d)]})}),_0xae124c(_0x80a800)&&_0x4dabb7($,{'id':_0x8fe1f1['Trendline'],'label':_0x11faa3['t'](_0x5beea5(0x387)),'children':_0x4dabb7(_0x3c8ddd,{'defaultValues':Q[_0x5beea5(0x23c)]})}),_0xe7ba27&&_0x4dabb7($,{'id':_0xe7ba27['id'],'label':_0xe7ba27['label'],'children':_0x4dabb7(_0x5d0cdf,{})})]});}function ga(_0x19bc19,_0x3c9d36){const _0x101916=_0x2353bc;let _0x5882a1={[_0x3414f3[_0x101916(0x1fe)]]:{'id':_0x8fe1f1[_0x101916(0x1fe)],'localeKey':_0x101916(0x1db)},[_0x3414f3['Histogram']]:{'id':_0x8fe1f1[_0x101916(0x242)],'localeKey':_0x101916(0x255)},[_0x3414f3[_0x101916(0x3aa)]]:{'id':_0x8fe1f1[_0x101916(0x3aa)],'localeKey':'bases-dashboard-ui.chart.section.treemap'},[_0x3414f3[_0x101916(0x366)]]:{'id':_0x8fe1f1[_0x101916(0x366)],'localeKey':_0x101916(0x495)},[_0x3414f3[_0x101916(0x494)]]:{'id':_0x8fe1f1[_0x101916(0x494)],'localeKey':'bases-dashboard-ui.chart.section.gauge'},[_0x3414f3[_0x101916(0x2e4)]]:{'id':_0x8fe1f1['Chord'],'localeKey':_0x101916(0x37c)}}[_0x19bc19];return _0x5882a1?{'id':_0x5882a1['id'],'label':_0x3c9d36['t'](_0x5882a1[_0x101916(0x353)])}:null;}function _a(_0xf1576a){const _0x377113=_0x2353bc;return _0x377113(0x317)+_0xf1576a;}function va({onChange:_0x346ca5,onEditData:_0x1df637,runtime:_0x5023bf,sourceChart:_0x3759eb,sourceName:_0x1c155c,widget:_0x4fb5f1}){const _0x1c008b=_0x2353bc;let _0x19f0dc=_0x39b411(Gr),_0x4648cc=_0x39b411(_0x5cd3ee),[_0xf25e52,_0x52db5c]=_0x2be63d(_0x139866[_0x1c008b(0x1df)]),_0x54e5d2=_0x4fb5f1['chart']??_0x3759eb,_0x34e1bc=_0x56a185(()=>new _0x29d554(_0x5023bf[_0x1c008b(0x37a)],{'commit':_0x23f344=>{const _0x3f532e=_0x1c008b;var _0x2adb6a;let _0x37d912=_0x5023bf['model'],_0x34048a=_0x485197(_0x23f344,{'series':(_0x2adb6a=_0x37d912['config'])==null?void 0x0:_0x2adb6a[_0x3f532e(0x418)],'currentChartType':_0x37d912[_0x3f532e(0x3e2)],'currentStyle':_0x37d912[_0x3f532e(0x3f1)],'currentContext':_0x37d912['context'],'currentDataAggregation':_0x37d912[_0x3f532e(0x3b9)]});_0x346ca5({..._0x4fb5f1,'chart':pa(_0x54e5d2,_0x34048a)})[_0x3f532e(0x3d2)](()=>void 0x0);}}),[_0x54e5d2,_0x346ca5,_0x5023bf,_0x4fb5f1]),_0x5c18b1=_0x56a185(()=>_0x2dbfb8(_0x170e20[_0x1c008b(0x3ff)](_0x1283f3=>({..._0x1283f3,'label':_0x4648cc['t'](ya(_0x1283f3[_0x1c008b(0x1a8)]))}))),[_0x4648cc]);return _0x4dabb7(_0x4bacfa,{'chartUIService':_0x19f0dc,'hostAdapter':_0x34e1bc,'children':_0x2b00c1(_0x1c008b(0x442),{'data-dashboard-chart-inspector':!0x0,'className':_0x1c008b(0x2f2),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x4648cc['t'](_0x1c008b(0x3d4)),'className':_0x1c008b(0x410),'items':[{'label':_0x4648cc['t'](_0x1c008b(0x466)),'panelId':_0x1c008b(0x295),'value':_0x139866['Data']},{'label':_0x4648cc['t'](_0x1c008b(0x33f)),'panelId':_0x1c008b(0x46d),'value':_0x139866['Style']}],'value':_0xf25e52,'onChange':_0x52db5c}),_0xf25e52===_0x139866[_0x1c008b(0x1df)]?_0x4dabb7(_0x3812e6,{'id':_0x1c008b(0x295),'label':_0x4648cc['t'](_0x1c008b(0x466)),'children':_0x2b00c1(_0x1c008b(0x442),{'className':_0x1c008b(0x4e3),'children':[_0x4dabb7(_0x195039,{'options':_0x5c18b1}),_0x4dabb7(_0x3eaf0a,{}),_0x4dabb7(_0x1603db,{}),_0x4dabb7(ma,{}),_0x4dabb7(_0x3210ae,{}),_0x2b00c1(_0x1c008b(0x442),{'children':[_0x4dabb7(_0x2db9bd,{'title':_0x4648cc['t']('bases-dashboard-ui.dashboardInspector.dataSource')}),_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x1c155c}),_0x4dabb7(_0x1b3e3b,{'className':_0x1c008b(0x25f),'onClick':_0x1df637,'children':_0x4648cc['t'](_0x1c008b(0x2e0))})]})]})}):_0x4dabb7(_0x3812e6,{'id':_0x1c008b(0x46d),'label':_0x4648cc['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x4dabb7(ha,{})})]})});}function ya(_0x2e5a8d){const _0x5b16c8=_0x2353bc;return _0x5b16c8(0x317)+_0x2e5a8d;}const ba=['general',_0x2353bc(0x3c4),_0x2353bc(0x327),_0x2353bc(0x241),_0x2353bc(0x39e),'compact'];function xa({base:_0x266779,onChange:_0xbda0fa,onSelectBackgroundImage:_0x4465dc,widget:_0x31d0fe}){const _0x16db93=_0x2353bc;var _0x3d36ed;let _0x402626=_0x39b411(_0x5cd3ee),_0x53c740=_0x39b411(_0x277079),_0x198db0=_0x499abf(()=>_0x53c740[_0x16db93(0x227)],_0x53c740[_0x16db93(0x2d8)](),!0x1,[_0x53c740]),_0x704b8b=_0x499abf(()=>_0x53c740['darkMode$'],_0x53c740['darkMode'],!0x1,[_0x53c740]),[_0x3d3ef6,_0x43142f]=_0x2be63d(_0x16db93(0x4b1)),[_0x273223,_0x51ddcd]=_0x2be63d(!0x1),_0x5e6a5f=xr(_0x31d0fe),_0x1eeb23=_0x266779['getSnapshot']()[_0x16db93(0x39c)][_0x31d0fe[_0x16db93(0x475)]],_0x32e218=_0x1eeb23==null?void 0x0:_0x1eeb23[_0x16db93(0x411)][_0x16db93(0x397)](_0x867f5e=>_0x1eeb23[_0x16db93(0x451)][_0x867f5e]),_0x4108a8=_0x32e218?_0x1eeb23==null?void 0x0:_0x1eeb23['views'][_0x32e218]:void 0x0,_0x378d89=_0x1eeb23&&_0x4108a8?_0x57cd99(_0x266779[_0x16db93(0x3f5)](),_0x1eeb23,_0x4108a8)['map'](_0x34fb78=>({..._0x34fb78,'current':!0x1})):[],_0x5c4973=((_0x3d36ed=_0x31d0fe[_0x16db93(0x1d8)][_0x16db93(0x3e3)])==null?void 0x0:_0x3d36ed[_0x16db93(0x274)])??'',_0x179e87=_0x3eb206=>_0xbda0fa(Sr(_0x31d0fe,_0x3eb206))['catch'](()=>void 0x0),_0x5884e0=_0x2b9d0b=>_0xbda0fa({..._0x31d0fe,'description':_0x2b9d0b})['catch'](()=>void 0x0);return _0x2b00c1(_0x16db93(0x442),{'data-dashboard-formula-inspector':!0x0,'className':_0x16db93(0x2f2),'children':[_0x4dabb7(_0x116fe9,{'className':_0x16db93(0x346),'items':[{'value':'data','label':_0x402626['t'](_0x16db93(0x1dd))},{'value':_0x16db93(0x3f1),'label':_0x402626['t'](_0x16db93(0x2ac))}],'value':_0x3d3ef6,'onChange':_0x43142f}),_0x4dabb7(_0x16db93(0x442),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0x3d3ef6==='data'?_0x2b00c1(_0x16db93(0x442),{'className':_0x16db93(0x4e0),'children':[_0x4dabb7(Sa,{'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.description'),'children':_0x4dabb7(_0x2c53ee,{'value':_0x31d0fe['description']??_0x31d0fe['title']??'','onChange':_0x5884e0,'onBlur':_0x2fb235=>_0x5884e0(_0x2fb235['target'][_0x16db93(0x284)])})}),_0x4dabb7(Sa,{'label':_0x402626['t'](_0x16db93(0x31b)),'children':_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':(_0x1eeb23==null?void 0x0:_0x1eeb23['name'])??_0x402626['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})}),_0x2b00c1(Sa,{'label':_0x402626['t'](_0x16db93(0x222)),'children':[_0x4dabb7(_0x2c53ee,{'disabled':!0x0,'value':_0x1b3454(_0x5c4973,_0x378d89)}),_0x4dabb7(_0x1b3e3b,{'className':_0x16db93(0x25f),'onClick':()=>_0x51ddcd(!0x0),'children':_0x402626['t'](_0x16db93(0x460))})]})]}):_0x2b00c1('div',{'className':_0x16db93(0x4e0),'children':[_0x4dabb7(_0x38703b,{'emptyLabel':_0x402626['t'](_0x16db93(0x245)),'label':_0x402626['t'](_0x16db93(0x245)),'pickerFallbackValue':_0x704b8b?_0x198db0[_0x16db93(0x433)][0x384]:_0x198db0[_0x16db93(0x433)][0x0],'resetLabel':_0x402626['t'](_0x16db93(0x449)),'value':_0x5e6a5f[_0x16db93(0x394)]??null,'onChange':_0x396117=>_0x179e87({'backgroundColor':_0x396117??void 0x0})}),_0x2b00c1(Sa,{'label':_0x402626['t'](_0x16db93(0x267)),'children':[_0x2b00c1(_0x16db93(0x442),{'className':_0x16db93(0x4cf),'children':[_0x2b00c1(_0x1b3e3b,{'className':_0x16db93(0x342),'onClick':()=>{const _0x1277ff=_0x16db93;_0x4465dc()[_0x1277ff(0x388)](_0x2f011b=>{const _0x187ac4=_0x1277ff;if(_0x2f011b){var _0x12a9ee;return _0x179e87({'backgroundImage':{..._0x2f011b,'fit':((_0x12a9ee=_0x5e6a5f['backgroundImage'])==null?void 0x0:_0x12a9ee['fit'])??_0x187ac4(0x3d5)}});}})[_0x1277ff(0x3d2)](()=>void 0x0);},'children':[_0x4dabb7(_0x5155a3,{}),_0x5e6a5f[_0x16db93(0x48f)]?_0x402626['t'](_0x16db93(0x256)):_0x402626['t']('bases-dashboard-ui.dashboardInspector.uploadImage')]}),_0x5e6a5f[_0x16db93(0x48f)]&&_0x4dabb7(_0x1b3e3b,{'aria-label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x402626['t'](_0x16db93(0x1f0)),'onClick':()=>_0x179e87({'backgroundImage':void 0x0}),'children':_0x4dabb7(_0x2d17f6,{})})]}),_0x5e6a5f['backgroundImage']&&_0x4dabb7(_0x116fe9,{'className':_0x16db93(0x266),'items':[{'value':_0x16db93(0x3d5),'label':_0x402626['t'](_0x16db93(0x2e7))},{'value':'contain','label':_0x402626['t'](_0x16db93(0x45b))}],'value':_0x5e6a5f[_0x16db93(0x48f)][_0x16db93(0x2c9)],'onChange':_0x39b1b7=>_0x179e87({'backgroundImage':_0x5e6a5f[_0x16db93(0x48f)]?{..._0x5e6a5f['backgroundImage'],'fit':_0x39b1b7}:void 0x0})})]}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x402626['t'](_0x16db93(0x21a)),'label':_0x402626['t'](_0x16db93(0x21a)),'pickerFallbackValue':_0x704b8b?_0x198db0[_0x16db93(0x433)][0x32]:_0x198db0[_0x16db93(0x433)][0x3e8],'resetLabel':_0x402626['t'](_0x16db93(0x449)),'value':_0x5e6a5f[_0x16db93(0x204)]??null,'onChange':_0x18cb43=>_0x179e87({'textColor':_0x18cb43??void 0x0})}),_0x4dabb7(Sa,{'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x4dabb7(_0x116fe9,{'items':[{'value':_0x16db93(0x20a),'label':_0x402626['t'](_0x16db93(0x28d))},{'value':_0x16db93(0x4b2),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':'right','label':_0x402626['t'](_0x16db93(0x1fd))}],'value':_0x5e6a5f['alignment'],'onChange':_0x357667=>_0x179e87({'alignment':_0x357667})})}),_0x2b00c1(Sa,{'label':_0x402626['t'](_0x16db93(0x219)),'children':[_0x4dabb7(_0x116fe9,{'items':[{'value':_0x16db93(0x3b6),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':_0x16db93(0x509),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x5e6a5f[_0x16db93(0x1e2)],'onChange':_0x371a80=>_0x179e87({'fontSizeMode':_0x371a80})}),_0x5e6a5f[_0x16db93(0x1e2)]==='custom'&&_0x4dabb7(_0x1c2086,{'className':_0x16db93(0x266),'min':0xc,'max':0x78,'value':_0x5e6a5f['fontSize'],'onChange':_0x38cddd=>_0x179e87({'fontSize':_0x38cddd??0x28,'fontSizeMode':_0x16db93(0x509)})})]}),_0x4dabb7(Sa,{'label':_0x402626['t'](_0x16db93(0x500)),'children':_0x4dabb7(_0xce6b1b,{'value':_0x5e6a5f[_0x16db93(0x348)],'options':[{'value':_0x16db93(0x3f3),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.general')},{'value':_0x16db93(0x3c4),'label':_0x402626['t'](_0x16db93(0x1e1))},{'value':_0x16db93(0x327),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.percent')},{'value':_0x16db93(0x241),'label':_0x402626['t'](_0x16db93(0x502))},{'value':_0x16db93(0x39e),'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':_0x16db93(0x1be),'label':_0x402626['t'](_0x16db93(0x4cd))}],'onChange':_0x5ad74a=>{const _0x1b4869=_0x16db93;let _0xaeffd8=ba[_0x1b4869(0x397)](_0x416300=>_0x416300===_0x5ad74a);_0xaeffd8&&_0x179e87({'numberFormat':_0xaeffd8});}})}),_0x5e6a5f[_0x16db93(0x348)]===_0x16db93(0x241)&&_0x4dabb7(Sa,{'label':_0x402626['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x4dabb7(_0x2c53ee,{'value':_0x5e6a5f['currency'],'onChange':_0x35f18f=>_0x179e87({'currency':_0x35f18f[_0x16db93(0x35d)](0x0,0x3)[_0x16db93(0x4e2)]()})})}),_0x5e6a5f[_0x16db93(0x348)]!==_0x16db93(0x3f3)&&_0x4dabb7(Sa,{'label':_0x402626['t'](_0x16db93(0x211)),'children':_0x4dabb7(_0x1c2086,{'min':0x0,'max':0x8,'value':_0x5e6a5f['decimalPlaces'],'onChange':_0x304407=>_0x179e87({'decimalPlaces':_0x304407??0x0})})})]})}),_0x273223&&_0x4dabb7(_0x4b580d,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x4dabb7(_0x55d652,{'tables':_0x378d89,'formula':_0x1b3454(_0x5c4973,_0x378d89),'onCancel':()=>_0x51ddcd(!0x1),'onSave':_0x5cc300=>{const _0x380b0a=_0x16db93;let _0x233eef=_0x31d0fe[_0x380b0a(0x1d8)][_0x380b0a(0x3e3)]??{'formula':''};return _0xbda0fa({..._0x31d0fe,'shapeData':{..._0x31d0fe[_0x380b0a(0x1d8)],'formulaBinding':{..._0x233eef,'formula':_0x24d391(_0x5cc300,_0x378d89)}}})[_0x380b0a(0x388)](()=>_0x51ddcd(!0x1))[_0x380b0a(0x3d2)](()=>void 0x0);}})})]});}function Sa({children:_0x2cba44,label:_0x58b251}){const _0x555861=_0x2353bc;return _0x2b00c1(_0x555861(0x442),{'role':_0x555861(0x365),'aria-label':_0x58b251,'className':_0x555861(0x3d0),'children':[_0x4dabb7(_0x555861(0x3ec),{'children':_0x58b251}),_0x2cba44]});}const Ca={[_0x17381a['IS']]:_0x2353bc(0x4be),[_0x17381a[_0x2353bc(0x1d2)]]:_0x2353bc(0x2e6),[_0x17381a[_0x2353bc(0x35c)]]:'bases-dashboard-ui.operators.contains',[_0x17381a['NOT_CONTAINS']]:_0x2353bc(0x493),[_0x17381a[_0x2353bc(0x2b3)]]:_0x2353bc(0x3ef),[_0x17381a['IS_NOT_EMPTY']]:_0x2353bc(0x31d),[_0x17381a[_0x2353bc(0x3fc)]]:_0x2353bc(0x1ca),[_0x17381a[_0x2353bc(0x3da)]]:_0x2353bc(0x3e1),[_0x17381a[_0x2353bc(0x36d)]]:_0x2353bc(0x3c2),[_0x17381a[_0x2353bc(0x303)]]:_0x2353bc(0x2a8),[_0x17381a[_0x2353bc(0x3f4)]]:_0x2353bc(0x243),[_0x17381a[_0x2353bc(0x202)]]:_0x2353bc(0x4f2)};function wa({disabled:_0x3654,fields:_0x4a45a4,filter:_0x3e073d,onChange:_0x32785d}){const _0x3436b1=_0x2353bc;let _0x52acdc=_0x39b411(_0x5cd3ee),_0x55a72a=(_0x3e073d==null?void 0x0:_0x3e073d[_0x3436b1(0x1b8)])??[];return _0x55a72a[_0x3436b1(0x4da)]?_0x4dabb7(_0x3436b1(0x442),{'className':_0x3436b1(0x417),'children':_0x55a72a[_0x3436b1(0x3ff)]((_0x1fcc3c,_0x5c2911)=>{const _0x4fe261=_0x3436b1;let _0x36da24=_0x4a45a4[_0x4fe261(0x397)](_0x461e08=>_0x461e08['id']===_0x1fcc3c[_0x4fe261(0x43d)]);return _0x2b00c1(_0x4fe261(0x442),{'className':_0x4fe261(0x426),'children':[_0x2b00c1(_0x4fe261(0x442),{'className':_0x4fe261(0x21c),'children':[_0x4dabb7(_0x4fe261(0x3ec),{'className':_0x4fe261(0x2fc),'children':(_0x36da24==null?void 0x0:_0x36da24[_0x4fe261(0x329)])??_0x1fcc3c[_0x4fe261(0x43d)]}),_0x4dabb7('span',{'className':_0x4fe261(0x34f),'children':_0x52acdc['t'](Ca[_0x1fcc3c[_0x4fe261(0x510)]])})]}),Ma(_0x1fcc3c['operator'])&&_0x4dabb7(Ea,{'disabled':_0x3654,'field':_0x36da24,'value':_0x1fcc3c[_0x4fe261(0x37d)],'onChange':_0x11c71e=>_0x32785d(ka(_0x3e073d,_0x5c2911,{'operand':_0x11c71e}))})]},Fa(_0x55a72a,_0x1fcc3c,_0x5c2911));})}):_0x2b00c1(_0x3436b1(0x442),{'className':_0x3436b1(0x1f2),'children':[_0x4dabb7(_0x425726,{'className':'univer-mx-auto\x20univer-size-6'}),_0x4dabb7('span',{'className':_0x3436b1(0x3b3),'children':_0x52acdc['t'](_0x3436b1(0x396))})]});}function Ta({fields:_0x1f4c36,filter:_0x38d581,onChange:_0x3224c7,onClear:_0x31186a}){const _0x57697b=_0x2353bc;let _0x34beba=_0x39b411(_0x5cd3ee),_0x4457b1=(_0x38d581==null?void 0x0:_0x38d581[_0x57697b(0x1b8)])??[];return _0x2b00c1(_0x57697b(0x442),{'data-dashboard-filter-inspector':!0x0,'className':'univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','children':[_0x4457b1['map']((_0xf7d128,_0x1c679d)=>{const _0x2e518a=_0x57697b;let _0x15de43=_0x1f4c36[_0x2e518a(0x397)](_0x24be71=>_0x24be71['id']===_0xf7d128[_0x2e518a(0x43d)])??_0x1f4c36[0x0],_0xb70ce5=Aa(_0x15de43);return _0x2b00c1(_0x2e518a(0x482),{'className':_0x2e518a(0x1b2),'children':[_0x2b00c1(_0x2e518a(0x442),{'className':_0x2e518a(0x4b7),'children':[_0x4dabb7(_0xce6b1b,{'value':_0xf7d128[_0x2e518a(0x43d)],'options':_0x1f4c36[_0x2e518a(0x3ff)](_0x3f37d8=>({'value':_0x3f37d8['id'],'label':_0x3f37d8['name']})),'onChange':_0x90bc09=>{const _0x2d75fe=_0x2e518a;let _0x5ecfc8=_0x1f4c36[_0x2d75fe(0x397)](_0x2a7361=>_0x2a7361['id']===_0x90bc09);if(!_0x5ecfc8)return;let _0x30ae90=Aa(_0x5ecfc8)[0x0];_0x3224c7(ka(_0x38d581,_0x1c679d,Oa(_0x5ecfc8,_0x30ae90)));}}),_0x4dabb7(_0x1b3e3b,{'type':_0x2e518a(0x228),'variant':_0x2e518a(0x452),'aria-label':_0x34beba['t']('bases-dashboard-ui.dashboardInspector.delete'),'className':_0x2e518a(0x471),'onClick':()=>_0x3224c7(Da(_0x38d581,_0x4457b1[_0x2e518a(0x1b3)]((_0x40bdd2,_0x29ff3c)=>_0x29ff3c!==_0x1c679d))),'children':_0x4dabb7(_0x122a02,{})})]}),_0x4dabb7(_0xce6b1b,{'value':_0xf7d128[_0x2e518a(0x510)],'options':_0xb70ce5[_0x2e518a(0x3ff)](_0x2fbb12=>({'value':_0x2fbb12,'label':_0x34beba['t'](Ca[_0x2fbb12])})),'onChange':_0x48a373=>{const _0xa85f3d=_0x2e518a;let _0x3e6bbb=_0xb70ce5[_0xa85f3d(0x397)](_0x5aa635=>_0x5aa635===_0x48a373);_0x3e6bbb&&_0x3224c7(ka(_0x38d581,_0x1c679d,{'operator':_0x3e6bbb,'operand':ja(_0x15de43)}));}}),Ma(_0xf7d128[_0x2e518a(0x510)])&&_0x4dabb7(Ea,{'field':_0x15de43,'value':_0xf7d128[_0x2e518a(0x37d)],'onChange':_0x3bf0d9=>_0x3224c7(ka(_0x38d581,_0x1c679d,{'operand':_0x3bf0d9}))})]},Fa(_0x4457b1,_0xf7d128,_0x1c679d));}),_0x2b00c1(_0x1b3e3b,{'type':_0x57697b(0x228),'variant':'text','className':_0x57697b(0x332),'disabled':!_0x1f4c36['length'],'onClick':()=>{let _0x1de638=_0x1f4c36[0x0];if(!_0x1de638)return;let _0x32b1eb=Aa(_0x1de638)[0x0];_0x3224c7(Da(_0x38d581,[..._0x4457b1,Oa(_0x1de638,_0x32b1eb)]));},'children':[_0x4dabb7(_0x5155a3,{}),_0x34beba['t'](_0x57697b(0x25c))]}),_0x4457b1[_0x57697b(0x4da)]>0x0&&_0x4dabb7(_0x1b3e3b,{'type':'button','variant':_0x57697b(0x452),'className':_0x57697b(0x1b5),'onClick':_0x31186a,'children':_0x34beba['t'](_0x57697b(0x46f))})]});}function Ea({disabled:_0x413fae,field:_0x14a3b4,onChange:_0x28cc85,value:_0x4c2e62}){const _0x3090aa=_0x2353bc;let _0x3d4762=_0x39b411(_0x5cd3ee),_0x38d941=_0x14a3b4==null?void 0x0:_0x14a3b4[_0x3090aa(0x393)];if(_0x38d941===_0x557eea[_0x3090aa(0x205)]){let _0x36452e=_0x4c2e62===!0x0||_0x4c2e62===_0x3090aa(0x1d5);return _0x2b00c1(_0x1b3e3b,{'type':_0x3090aa(0x228),'variant':_0x3090aa(0x431),'disabled':_0x413fae,'className':_0x3090aa(0x2d7),'onClick':()=>_0x28cc85(!_0x36452e),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x36452e,'disabled':_0x413fae,'onChange':()=>void 0x0}),_0x36452e?_0x3d4762['t'](_0x3090aa(0x3e7)):_0x3d4762['t'](_0x3090aa(0x216))]});}return Ia(_0x38d941)?_0x413fae?_0x4dabb7(_0x1b3e3b,{'type':_0x3090aa(0x228),'variant':_0x3090aa(0x431),'className':_0x3090aa(0x1b5),'disabled':!0x0,'children':_0x22c7cc(_0x4c2e62==null||_0x4c2e62===''?void 0x0:String(_0x4c2e62))[_0x3090aa(0x347)]('YYYY-MM-DD')}):_0x4dabb7(_0x1596d0,{'className':_0x3090aa(0x1b5),'value':_0x22c7cc(_0x4c2e62==null||_0x4c2e62===''?void 0x0:String(_0x4c2e62))[_0x3090aa(0x4f8)](),'onValueChange':_0x45c716=>_0x28cc85(_0x22c7cc(_0x45c716)[_0x3090aa(0x347)](_0x3090aa(0x232)))}):Ra(_0x14a3b4)?_0x4dabb7(_0x3ab7df,{'className':_0x3090aa(0x1b5),'disabled':_0x413fae,'value':Array['isArray'](_0x4c2e62)?_0x4c2e62[_0x3090aa(0x3ff)](String):[],'options':Na(_0x14a3b4),'onChange':_0x28cc85}):_0x38d941===_0x557eea[_0x3090aa(0x2f9)]||_0x38d941===_0x557eea[_0x3090aa(0x3be)]||_0x38d941===_0x557eea[_0x3090aa(0x4d7)]?_0x4dabb7(_0xce6b1b,{'className':_0x3090aa(0x1b5),'disabled':_0x413fae,'value':String(_0x4c2e62??''),'options':[{'value':'','label':_0x3d4762['t'](_0x3090aa(0x39d))},...Na(_0x14a3b4)],'onChange':_0x28cc85}):La(_0x38d941)?_0x4dabb7(_0x1c2086,{'className':_0x3090aa(0x1b5),'allowEmpty':!0x0,'disabled':_0x413fae,'value':Number[_0x3090aa(0x4a4)](Number(_0x4c2e62))?Number(_0x4c2e62):null,'onChange':_0x5021f3=>_0x28cc85(_0x5021f3??'')}):_0x4dabb7(_0x2c53ee,{'disabled':_0x413fae,'value':String(_0x4c2e62??''),'placeholder':_0x3d4762['t'](_0x3090aa(0x4b9)),'onChange':_0x28cc85});}function Da(_0x182c27,_0x102198){const _0x4cd6a4=_0x2353bc;return{'conjunction':(_0x182c27==null?void 0x0:_0x182c27[_0x4cd6a4(0x3d9)])??_0xf09c6[_0x4cd6a4(0x27f)],'conditions':_0x102198};}function Oa(_0xe91191,_0x299177){return Ma(_0x299177)?{'fieldId':_0xe91191['id'],'operator':_0x299177,'operand':ja(_0xe91191)}:{'fieldId':_0xe91191['id'],'operator':_0x299177};}function ka(_0x111487,_0x43ce78,_0xcc7b4f){const _0x131be9=_0x2353bc;return Da(_0x111487,((_0x111487==null?void 0x0:_0x111487[_0x131be9(0x1b8)])??[])[_0x131be9(0x3ff)]((_0x31f8fc,_0x577e57)=>_0x577e57===_0x43ce78?{..._0x31f8fc,..._0xcc7b4f}:_0x31f8fc));}function Aa(_0x3f36c){const _0x11cf24=_0x2353bc;let _0x4b37c3=[_0x17381a[_0x11cf24(0x2b3)],_0x17381a['IS_NOT_EMPTY']];switch(_0x3f36c==null?void 0x0:_0x3f36c[_0x11cf24(0x393)]){case _0x557eea[_0x11cf24(0x416)]:case _0x557eea[_0x11cf24(0x321)]:case _0x557eea['Progress']:case _0x557eea[_0x11cf24(0x42a)]:return[_0x17381a['IS'],_0x17381a[_0x11cf24(0x1d2)],_0x17381a['GREATER_THAN'],_0x17381a[_0x11cf24(0x36d)],..._0x4b37c3];case _0x557eea[_0x11cf24(0x4e7)]:case _0x557eea[_0x11cf24(0x2fa)]:case _0x557eea[_0x11cf24(0x4a2)]:return[_0x17381a['IS'],_0x17381a[_0x11cf24(0x1d2)],_0x17381a[_0x11cf24(0x3f4)],_0x17381a[_0x11cf24(0x202)],..._0x4b37c3];case _0x557eea[_0x11cf24(0x205)]:return[_0x17381a['IS'],_0x17381a['IS_NOT']];default:return[_0x17381a['IS'],_0x17381a[_0x11cf24(0x1d2)],_0x17381a[_0x11cf24(0x35c)],_0x17381a[_0x11cf24(0x40d)],..._0x4b37c3];}}function ja(_0x3e591b){const _0x4635ae=_0x2353bc;return _0x3e591b?_0x3e591b['type']===_0x557eea['Checkbox']?!0x1:Ia(_0x3e591b[_0x4635ae(0x393)])?_0x22c7cc()[_0x4635ae(0x347)](_0x4635ae(0x232)):Ra(_0x3e591b)?[]:'':'';}function Ma(_0x3576cd){const _0x14c98f=_0x2353bc;return _0x3576cd!==_0x17381a[_0x14c98f(0x2b3)]&&_0x3576cd!==_0x17381a[_0x14c98f(0x375)];}function Na(_0xa7050d){const _0x6d9db=_0x2353bc;var _0x26d601;return(Array['isArray'](_0xa7050d==null||(_0x26d601=_0xa7050d[_0x6d9db(0x4e8)])==null?void 0x0:_0x26d601['options'])?_0xa7050d['config'][_0x6d9db(0x320)]:[])[_0x6d9db(0x3ff)]((_0x44f612,_0x28d9cd)=>{const _0x3ae553=_0x6d9db;if(typeof _0x44f612==_0x3ae553(0x4ff))return{'label':_0x44f612,'value':_0x44f612};if(!Pa(_0x44f612))return{'label':String(_0x28d9cd+0x1),'value':String(_0x28d9cd+0x1)};let _0x532423=_0x44f612,_0x390c96=String(_0x532423[_0x3ae553(0x329)]??_0x532423['id']??_0x28d9cd+0x1),_0x2cb6cb=String(_0x532423['id']??_0x390c96);return{'label':_0x390c96,'value':/^opt-\d+$/[_0x3ae553(0x41e)](_0x2cb6cb)?_0x390c96:_0x2cb6cb};});}function Pa(_0x3d6142){const _0x17f520=_0x2353bc;return typeof _0x3d6142==_0x17f520(0x43c)&&!!_0x3d6142;}function Fa(_0x42564f,_0x324197,_0x45832f){const _0x36adf7=_0x2353bc;let _0x3104b2=JSON['stringify'](_0x324197);return _0x3104b2+'-'+_0x42564f[_0x36adf7(0x35d)](0x0,_0x45832f)[_0x36adf7(0x1b3)](_0x511f23=>JSON[_0x36adf7(0x492)](_0x511f23)===_0x3104b2)['length'];}function Ia(_0x2d2da9){const _0x108f7d=_0x2353bc;return _0x2d2da9===_0x557eea['Date']||_0x2d2da9===_0x557eea[_0x108f7d(0x2fa)]||_0x2d2da9===_0x557eea[_0x108f7d(0x4a2)];}function La(_0x2e12ff){const _0x187558=_0x2353bc;return _0x2e12ff===_0x557eea[_0x187558(0x416)]||_0x2e12ff===_0x557eea[_0x187558(0x321)]||_0x2e12ff===_0x557eea[_0x187558(0x3c5)]||_0x2e12ff===_0x557eea[_0x187558(0x42a)];}function Ra(_0x4d0b06){const _0x1dd369=_0x2353bc;var _0x1c5d3c;return(_0x4d0b06==null?void 0x0:_0x4d0b06[_0x1dd369(0x393)])===_0x557eea[_0x1dd369(0x1f6)]||(_0x4d0b06==null?void 0x0:_0x4d0b06['type'])===_0x557eea['Group']||(_0x4d0b06==null?void 0x0:_0x4d0b06[_0x1dd369(0x393)])===_0x557eea['Person']&&((_0x1c5d3c=_0x4d0b06[_0x1dd369(0x4e8)])==null?void 0x0:_0x1c5d3c[_0x1dd369(0x354)])===!0x0;}function za({base:_0xf720d,chartRuntime:_0x3c3484,onChange:_0xc7c89d,onClose:_0x45e503,onSelectBackgroundImage:_0x4d1e5b,onSelectImage:_0xd81de1,unitId:_0x1835b4,widget:_0x122dfe}){const _0x154dce=_0x2353bc;let _0x1cd4e4=_0x39b411(_0x32452d),_0xe26cac=_0x39b411(_0x5cd3ee),_0x57635a=_0xf720d[_0x154dce(0x3f5)](),_0x102423=_0x154dce(0x475)in _0x122dfe?_0x57635a[_0x154dce(0x39c)][_0x122dfe[_0x154dce(0x475)]]:void 0x0,_0x5d600a=_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x3a3)]?_0x102423==null?void 0x0:_0x102423[_0x154dce(0x451)][_0x122dfe[_0x154dce(0x399)]]:void 0x0,_0x2b4747=_0xe26cac['t'](Ka(_0x122dfe));return _0x2b00c1(_0x154dce(0x2b6),{'data-dashboard-inspector':!0x0,'className':_0x154dce(0x459),'children':[_0x2b00c1(_0x154dce(0x36a),{'className':'univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-px-4\x20dark:!univer-border-gray-700','children':[_0x4dabb7('h3',{'className':_0x154dce(0x385),'children':_0x2b4747}),_0x4dabb7(_0x1b3e3b,{'type':_0x154dce(0x228),'size':_0x154dce(0x432),'variant':_0x154dce(0x452),'aria-label':_0xe26cac['t']('bases-dashboard-ui.dashboardInspector.close'),'onClick':_0x45e503,'children':_0x4dabb7(_0x122a02,{})})]}),_0x122dfe['type']===_0x342116[_0x154dce(0x3a3)]&&(Ga(_0x5d600a)&&_0x3c3484?_0x4dabb7(va,{'runtime':_0x3c3484,'sourceChart':_0x5d600a[_0x154dce(0x4e8)]['chart'],'sourceName':((_0x102423==null?void 0x0:_0x102423['name'])??'')+'\x20/\x20'+_0x5d600a[_0x154dce(0x329)],'widget':_0x122dfe,'onChange':_0xc7c89d,'onEditData':()=>{const _0x56c876=_0x154dce;_0x1cd4e4[_0x56c876(0x1ff)](_0x9b2833['id'],{'unitId':_0x1835b4,'tableId':_0x122dfe[_0x56c876(0x475)],'viewId':_0x122dfe[_0x56c876(0x399)]})[_0x56c876(0x3d2)](()=>void 0x0);}}):_0x4dabb7(Ua,{'message':Ga(_0x5d600a)?_0xe26cac['t'](_0x154dce(0x2aa)):_0xe26cac['t'](_0x154dce(0x3d7))})),_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x36e)]&&_0x4dabb7(xa,{'base':_0xf720d,'widget':_0x122dfe,'onChange':_0xc7c89d,'onSelectBackgroundImage':_0x4d1e5b}),_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x296)]&&_0x4dabb7(Va,{'base':_0xf720d,'onChange':_0xc7c89d,'widget':_0x122dfe}),_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x298)]&&_0x4dabb7(Ha,{'onChange':_0xc7c89d,'widget':_0x122dfe}),_0x122dfe[_0x154dce(0x393)]===_0x342116[_0x154dce(0x4ae)]&&_0x4dabb7(Ba,{'onChange':_0xc7c89d,'onSelectImage':_0xd81de1,'widget':_0x122dfe})]});}function Ba({onChange:_0x5d016f,onSelectImage:_0xd39f12,widget:_0x50cef5}){const _0x387501=_0x2353bc;let _0x2dfdfb=_0x39b411(_0x5cd3ee);return _0x2b00c1(_0x387501(0x442),{'className':'univer-grid\x20univer-gap-4\x20univer-p-4','children':[_0x2b00c1(_0x1b3e3b,{'className':_0x387501(0x1b5),'onClick':()=>_0xd39f12()['then'](_0x14399c=>_0x14399c&&_0x5d016f({..._0x50cef5,'source':_0x14399c['source'],'sourceType':_0x14399c['sourceType'],'alt':_0x14399c[_0x387501(0x329)]}))[_0x387501(0x3d2)](()=>void 0x0),'children':[_0x4dabb7(_0x5155a3,{}),_0x2dfdfb['t'](_0x387501(0x256))]}),_0x2b00c1('label',{'className':_0x387501(0x3d0),'children':[_0x4dabb7(_0x387501(0x3ec),{'children':_0x2dfdfb['t'](_0x387501(0x267))}),_0x4dabb7(_0x116fe9,{'items':[{'value':_0x387501(0x3d5),'label':_0x2dfdfb['t'](_0x387501(0x2e7))},{'value':_0x387501(0x42b),'label':_0x2dfdfb['t'](_0x387501(0x392))},{'value':_0x387501(0x2bc),'label':_0x2dfdfb['t'](_0x387501(0x260))}],'value':_0x50cef5['displayMode']??_0x387501(0x3d5),'onChange':_0x171bc0=>_0x5d016f({..._0x50cef5,'displayMode':_0x171bc0})[_0x387501(0x3d2)](()=>void 0x0)})]})]});}function Va({base:_0x1be224,onChange:_0x53e616,widget:_0x53bf31}){const _0x5c1d04=_0x2353bc;let _0x1fbc38=_0x1be224['getSnapshot']()[_0x5c1d04(0x39c)][_0x53bf31['tableId']],_0x3d955b=_0x1fbc38==null?void 0x0:_0x1fbc38[_0x5c1d04(0x411)][_0x5c1d04(0x397)](_0x37b84f=>_0x1fbc38[_0x5c1d04(0x451)][_0x37b84f]),_0x277a23=_0x3d955b?_0x1fbc38==null?void 0x0:_0x1fbc38[_0x5c1d04(0x451)][_0x3d955b]:void 0x0,_0x56c4f0=_0x1fbc38&&_0x277a23?_0x5249f3(_0x1fbc38,_0x277a23):[];return _0x4dabb7(Ta,{'fields':_0x56c4f0,'filter':_0x53bf31[_0x5c1d04(0x1b3)],'onChange':_0x43e1b9=>_0x53e616({..._0x53bf31,'filter':_0x43e1b9})[_0x5c1d04(0x3d2)](()=>void 0x0),'onClear':()=>_0x53e616({..._0x53bf31,'filter':null})['catch'](()=>void 0x0)});}function Ha({onChange:_0x146b24,widget:_0x21c2c2}){const _0x40fc8c=_0x2353bc;let _0x2c9efe=_0x39b411(_0x5cd3ee),_0x352785=_0x39b411(_0x277079),_0x4b118f=_0x499abf(()=>_0x352785[_0x40fc8c(0x227)],_0x352785['getCurrentTheme'](),!0x1,[_0x352785]),_0x5c8e3d=Br(_0x21c2c2),_0x368ad9=_0x243cbf=>_0x146b24({..._0x21c2c2,'appearance':{..._0x5c8e3d,..._0x243cbf}})[_0x40fc8c(0x3d2)](()=>void 0x0);return _0x2b00c1(_0x40fc8c(0x442),{'className':_0x40fc8c(0x4b8),'children':[_0x4dabb7(_0x136f1a,{'defaultValue':Vr(_0x21c2c2[_0x40fc8c(0x4d6)]),'rows':0x8,'onBlur':_0x34e6d4=>_0x146b24({..._0x21c2c2,'document':Hr(_0x21c2c2['document'],_0x34e6d4[_0x40fc8c(0x344)][_0x40fc8c(0x284)])})['catch'](()=>void 0x0)}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x4b118f[_0x40fc8c(0x433)][0x0],'resetLabel':_0x2c9efe['t'](_0x40fc8c(0x449)),'value':_0x5c8e3d[_0x40fc8c(0x394)]??null,'onChange':_0x52bdd2=>_0x368ad9({'backgroundColor':_0x52bdd2??void 0x0})}),_0x4dabb7(_0x38703b,{'emptyLabel':_0x2c9efe['t'](_0x40fc8c(0x21a)),'label':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x4b118f[_0x40fc8c(0x433)][0x3e8],'resetLabel':_0x2c9efe['t'](_0x40fc8c(0x449)),'value':_0x5c8e3d[_0x40fc8c(0x204)]??null,'onChange':_0x2d12b0=>_0x368ad9({'textColor':_0x2d12b0??void 0x0})}),_0x4dabb7(Wa,{'label':_0x2c9efe['t'](_0x40fc8c(0x3cf)),'children':_0x4dabb7(_0x116fe9,{'items':[{'value':'left','label':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':'center','label':_0x2c9efe['t'](_0x40fc8c(0x237))},{'value':_0x40fc8c(0x214),'label':_0x2c9efe['t'](_0x40fc8c(0x1fd))}],'value':_0x5c8e3d['alignment'],'onChange':_0x207232=>_0x368ad9({'alignment':_0x207232})})}),_0x2b00c1(Wa,{'label':_0x2c9efe['t'](_0x40fc8c(0x219)),'children':[_0x4dabb7(_0x116fe9,{'items':[{'value':_0x40fc8c(0x3b6),'label':_0x2c9efe['t'](_0x40fc8c(0x29b))},{'value':_0x40fc8c(0x509),'label':_0x2c9efe['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x5c8e3d[_0x40fc8c(0x1e2)],'onChange':_0x4fa194=>_0x368ad9({'fontSizeMode':_0x4fa194})}),_0x5c8e3d[_0x40fc8c(0x1e2)]===_0x40fc8c(0x509)&&_0x4dabb7(_0x1c2086,{'className':_0x40fc8c(0x266),'min':0xa,'max':0x78,'value':_0x5c8e3d['fontSize'],'onChange':_0x4fb997=>_0x368ad9({'fontSize':_0x4fb997??0x12,'fontSizeMode':'custom'})})]})]});}function Ua({message:_0x21501c}){const _0x2b2d50=_0x2353bc;return _0x4dabb7(_0x2b2d50(0x442),{'className':_0x2b2d50(0x43b),'children':_0x21501c});}function Wa({children:_0x34733f,label:_0x3e8896}){const _0x1df5af=_0x2353bc;return _0x2b00c1('div',{'role':'group','aria-':!0x0,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[_0x4dabb7(_0x1df5af(0x3ec),{'children':_0x3e8896}),_0x34733f]});}function Ga(_0x31cab9){const _0x173e08=_0x2353bc;return(_0x31cab9==null?void 0x0:_0x31cab9[_0x173e08(0x393)])===_0x5ee6b5[_0x173e08(0x49c)]&&typeof _0x31cab9[_0x173e08(0x4e8)]=='object'&&_0x31cab9[_0x173e08(0x4e8)]!==null&&_0x173e08(0x4aa)in _0x31cab9[_0x173e08(0x4e8)]&&_0x173e08(0x4d8)in _0x31cab9[_0x173e08(0x4e8)];}function Ka(_0x55f64d){const _0x3410ef=_0x2353bc;switch(_0x55f64d['type']){case _0x342116['PivotChart']:return _0x3410ef(0x350);case _0x342116['TableFilter']:return _0x3410ef(0x396);case _0x342116[_0x3410ef(0x298)]:return'bases-dashboard-ui.dashboard.text';case _0x342116['Image']:return _0x3410ef(0x293);case _0x342116[_0x3410ef(0x36e)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function qa({onDelete:_0x3c29f6,onEdit:_0x31ebb2}){const _0x1a008e=_0x2353bc;let _0x51e3af=_0x39b411(_0x5cd3ee),_0x3c5c62=_0x51e3af['t']('bases-dashboard-ui.dashboard.editWidget'),_0x335e7a=_0x51e3af['t'](_0x1a008e(0x2ef)),_0x15cc73=_0x51e3af['t'](_0x1a008e(0x1b9));return _0x4dabb7(_0x492a1e,{'items':[{'type':'item','children':_0x2b00c1(_0x1a008e(0x3ec),{'className':_0x1a008e(0x49a),'children':[_0x4dabb7(_0x392d1f,{'className':_0x1a008e(0x40e),'aria-hidden':_0x1a008e(0x1d5)}),_0x4dabb7(_0x1a008e(0x3ec),{'children':_0x3c5c62})]}),'onSelect':_0x31ebb2},{'type':_0x1a008e(0x50a)},{'type':_0x1a008e(0x423),'variant':_0x1a008e(0x4d0),'children':_0x2b00c1(_0x1a008e(0x3ec),{'className':_0x1a008e(0x49a),'children':[_0x4dabb7(_0x2d17f6,{'className':_0x1a008e(0x40e),'aria-hidden':_0x1a008e(0x1d5)}),_0x4dabb7(_0x1a008e(0x3ec),{'children':_0x335e7a})]}),'onSelect':_0x3c29f6}],'children':_0x4dabb7(_0x1b3e3b,{'type':'button','size':_0x1a008e(0x432),'variant':_0x1a008e(0x452),'title':_0x15cc73,'aria-label':_0x15cc73,'className':_0x1a008e(0x4fc),'children':_0x4dabb7(_0x27b384,{'className':_0x1a008e(0x40e),'aria-hidden':_0x1a008e(0x1d5)})})});}function Ja({dashboardId:_0x4b4b2,presentation:_0x1388b0=!0x1,unitId:_0x61af0d}){const _0x192218=_0x2353bc;let _0x32f623=_0x39b411(_0x32452d),_0x13916e=_0x39b411(_0x4d763c),_0x338ef3=_0x39b411(_0x5482b5),_0x54eed1=_0x39b411(_0x4074e5),_0x5aff02=_0x39b411(_0x5cd3ee),_0x2f9ad9=_0x39b411(_0x5e40a3),_0x374cfd=_0x39b411(_0x123793),_0x549f43=_0x35f949(null),[_0x24a903,_0x36e3b3]=_0x2be63d(!0x1),[_0x2d653c,_0x1287d3]=_0x2be63d(),[_0x5998ca,_0x4fa890]=_0x2be63d(!0x1),[_0x41df4d,_0x2b88c1]=_0x2be63d(()=>new Map()),_0x6d8894=_0xd8821d((_0x4aab6b,_0x1d86c4)=>{_0x2b88c1(_0x23c583=>{const _0x21bd02=_0x1cf6;let _0x166b33=new Map(_0x23c583);return _0x1d86c4?_0x166b33[_0x21bd02(0x401)](_0x4aab6b,_0x1d86c4):_0x166b33['delete'](_0x4aab6b),_0x166b33;});},[]),_0x2f172f=_0x499abf(()=>_0x2f9ad9[_0x192218(0x2a3)][_0x192218(0x41d)](_0x299cc9(()=>_0x2f9ad9[_0x192218(0x34a)](_0x61af0d,_0x4b4b2))),_0x2f9ad9[_0x192218(0x34a)](_0x61af0d,_0x4b4b2),!0x1,[_0x4b4b2,_0x2f9ad9,_0x61af0d]),_0x2f3771=_0x54eed1[_0x192218(0x37e)](_0x61af0d,_0x51ec78[_0x192218(0x4eb)]),_0x5af263=_0x499abf(()=>_0x374cfd[_0x192218(0x21f)],{'undos':0x0,'redos':0x0},!0x1,[_0x374cfd]),_0x1cac75=gr(_0x61af0d,_0x4b4b2);if(_0x38e78f(()=>{const _0x54eb4d=_0x192218;_0x54eed1[_0x54eb4d(0x3ce)](_0x61af0d),_0x54eed1[_0x54eb4d(0x35f)](_0x61af0d);},[_0x54eed1,_0x61af0d]),_0x38e78f(()=>{const _0x50bfee=_0x192218;let _0x196c2d=_0x549f43[_0x50bfee(0x38f)],_0x446140=_0x196c2d==null?void 0x0:_0x196c2d[_0x50bfee(0x26c)];if(!_0x196c2d||!_0x446140)return;let _0x577dd6=()=>_0x4fa890(_0x446140[_0x50bfee(0x281)]===_0x446140[_0x50bfee(0x22a)]),_0x1b9bbd=_0x35d99e=>{const _0x454197=_0x50bfee;_0x35d99e['key']===_0x454197(0x319)&&!_0x35d99e[_0x454197(0x25a)]&&_0x446140[_0x454197(0x281)]===_0x446140['documentElement']&&_0x446140[_0x454197(0x4bf)]()[_0x454197(0x3d2)](_0x577dd6);};return _0x446140[_0x50bfee(0x1d1)]('fullscreenchange',_0x577dd6),_0x446140['addEventListener']('keydown',_0x1b9bbd),()=>{const _0x4f1dd8=_0x50bfee;_0x446140['removeEventListener'](_0x4f1dd8(0x33d),_0x577dd6),_0x446140[_0x4f1dd8(0x27d)](_0x4f1dd8(0x4d1),_0x1b9bbd);};},[]),!_0x2f172f||!_0x2f3771)return null;let _0x4c0942=_0x3cf6e3=>_0x32f623[_0x192218(0x1ff)](_0x2b3367['id'],{'unitId':_0x61af0d,'dashboardId':_0x4b4b2,'widget':_0x3cf6e3})[_0x192218(0x3d2)](()=>void 0x0),_0x14432d=(_0x2dfddd,_0x2b3604,_0x5251ed)=>{const _0x15836e=_0x192218;let _0x426bdf=Math[_0x15836e(0x2eb)](0x0,..._0x2f172f[_0x15836e(0x362)][_0x15836e(0x3bc)](_0x420380=>{const _0x1c52d8=_0x15836e;var _0x3836d5;let _0x16bf67=(_0x3836d5=_0x2f172f['widgets'][_0x420380])==null?void 0x0:_0x3836d5[_0x1c52d8(0x439)];return _0x16bf67?[_0x16bf67['row']+_0x16bf67[_0x1c52d8(0x4b4)]]:[];})),_0x516f0f=_0x15836e(0x4a9)+_0x325e5d(0x8),_0x20326f={'column':0x0,'row':_0x426bdf,'columnSpan':_0x2b3604,'rowSpan':_0x5251ed};switch(_0x2dfddd[_0x15836e(0x393)]){case _0x342116[_0x15836e(0x3a3)]:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});case _0x342116[_0x15836e(0x296)]:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});case _0x342116['Text']:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});case _0x342116[_0x15836e(0x4ae)]:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});case _0x342116['FormulaShape']:return _0x4c0942({..._0x2dfddd,'id':_0x516f0f,'layout':_0x20326f});}},_0x5e6da4=_0x2f3771['getSnapshot'](),_0x29518a=_0x5e6da4[_0x192218(0x1e5)]['flatMap'](_0x4d3b93=>{const _0x3f2ee4=_0x192218;let _0x47bed7=_0x5e6da4[_0x3f2ee4(0x39c)][_0x4d3b93];if(!_0x47bed7)return[];let _0x4e45c1=_0x47bed7[_0x3f2ee4(0x411)][_0x3f2ee4(0x3bc)](_0x18b868=>{const _0x1b8569=_0x3f2ee4;let _0x181dc8=_0x47bed7['views'][_0x18b868];return no(_0x181dc8)?[{'type':_0x1b8569(0x423),'children':_0x181dc8[_0x1b8569(0x329)],'onSelect':()=>_0x14432d({'type':_0x342116['PivotChart'],'tableId':_0x4d3b93,'pivotViewId':_0x18b868,'chart':{..._0x181dc8[_0x1b8569(0x4e8)][_0x1b8569(0x4d8)]}},0x6,0xa)}]:[];});return[{'type':_0x3f2ee4(0x429),'children':_0x47bed7['name'],'options':[..._0x4e45c1,..._0x4e45c1['length']?[{'type':'separator'}]:[],{'type':_0x3f2ee4(0x423),'children':_0x5aff02['t'](_0x3f2ee4(0x396)),'onSelect':()=>_0x14432d({'type':_0x342116[_0x3f2ee4(0x296)],'tableId':_0x4d3b93,'filter':null},0x6,0x8)}]}];}),_0x4c0e08=[..._0x29518a,..._0x29518a['length']?[{'type':_0x192218(0x50a)}]:[],{'type':'item','children':_0x5aff02['t'](_0x192218(0x45f)),'onSelect':()=>_0x14432d({'type':_0x342116[_0x192218(0x298)],'document':Qa()},0x4,0x6)},{'type':_0x192218(0x423),'children':_0x5aff02['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>$a(_0x13916e)[_0x192218(0x388)](_0x3ce793=>_0x3ce793&&_0x14432d({'type':_0x342116[_0x192218(0x4ae)],'source':_0x3ce793['source'],'sourceType':_0x3ce793[_0x192218(0x4b3)],'alt':_0x3ce793['name'],'displayMode':'cover'},0x4,0x6))},{'type':'item','children':_0x5aff02['t'](_0x192218(0x268)),'onSelect':()=>{const _0x50183=_0x192218;let _0x530941=_0x5e6da4[_0x50183(0x1e5)][_0x50183(0x397)](_0x3ca033=>_0x5e6da4[_0x50183(0x39c)][_0x3ca033]);_0x530941&&_0x14432d({'type':_0x342116['FormulaShape'],'tableId':_0x530941,'shapeType':_0x4387d7[_0x50183(0x3a7)],'shapeData':_0x11d1a1(),'description':_0x5aff02['t'](_0x50183(0x268))},0x4,0x6);}}],_0x5a4756=_0x2d653c?_0x2f172f[_0x192218(0x4e1)][_0x2d653c]:void 0x0,_0x17b497=async()=>{const _0x33d1a0=_0x192218;let _0x5de661=_0x549f43[_0x33d1a0(0x38f)];if(!_0x5de661)return;let _0x14db51=_0x5de661[_0x33d1a0(0x26c)];if(_0x14db51[_0x33d1a0(0x281)]===_0x14db51[_0x33d1a0(0x22a)]){await _0x14db51[_0x33d1a0(0x4bf)]();return;}await _0x14db51[_0x33d1a0(0x22a)][_0x33d1a0(0x3ba)]();},_0x3be869=_0x1388b0||_0x5998ca,_0x289805=_0x1cac75&&!_0x3be869;return _0x2b00c1(_0x192218(0x442),{'ref':_0x549f43,'className':_0x192218(0x1ab)+(_0x5998ca?_0x192218(0x369):'univer-relative\x20univer-z-10')+_0x192218(0x3ae),'children':[!_0x3be869&&_0x2b00c1('header',{'className':_0x192218(0x415),'children':[_0x4dabb7(_0x433eb4,{'className':_0x192218(0x1bd)}),_0x4dabb7('h2',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0x2f172f['name']}),_0x4dabb7(_0x468217,{'target':{'unitId':_0x61af0d,'objectId':_0x275cd2(_0x4b4b2),'objectType':_0x4f7ac1[_0x192218(0x4d9)]},'name':_0x2f172f[_0x192218(0x329)],'commandId':_0x42d2ec['id'],'exists':()=>!!_0x2f9ad9['getDashboard'](_0x61af0d,_0x4b4b2)},_0x61af0d+'/'+_0x4b4b2),_0x4dabb7(_0xf8bfea,{'unitId':_0x61af0d}),_0x4dabb7(_0x1b3e3b,{'type':_0x192218(0x228),'size':_0x192218(0x432),'variant':'text','aria-label':_0x5aff02['t'](_0x192218(0x4ee)),'disabled':!_0x1cac75||_0x5af263[_0x192218(0x1fa)]===0x0,'onClick':()=>_0x32f623[_0x192218(0x1ff)](_0x4170dd['id'])[_0x192218(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x4f90a3,{})}),_0x4dabb7(_0x1b3e3b,{'type':_0x192218(0x228),'size':_0x192218(0x432),'variant':'text','aria-label':_0x5aff02['t'](_0x192218(0x1c8)),'disabled':!_0x1cac75||_0x5af263[_0x192218(0x2ce)]===0x0,'onClick':()=>_0x32f623[_0x192218(0x1ff)](_0x8d3b46['id'])[_0x192218(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x44a42f,{})}),_0x4dabb7(_0x1b3e3b,{'type':'button','size':_0x192218(0x432),'variant':_0x192218(0x452),'aria-label':_0x5aff02['t'](_0x192218(0x288)),'onClick':()=>_0x17b497()[_0x192218(0x3d2)](()=>void 0x0),'children':_0x4dabb7(_0x54cca2,{})}),_0x4dabb7(_0x492a1e,{'items':_0x4c0e08,'children':_0x2b00c1(_0x1b3e3b,{'variant':_0x192218(0x37f),'disabled':!_0x1cac75,'children':[_0x4dabb7(_0x5155a3,{}),_0x5aff02['t'](_0x192218(0x4b0))]})})]}),_0x2b00c1(_0x192218(0x442),{'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1','children':[_0x4dabb7(_0x192218(0x442),{'className':_0x192218(0x290),'children':_0x4dabb7(la,{'dashboard':_0x2f172f,'dragLabel':_0x5aff02['t'](_0x192218(0x32c)),'editable':_0x289805,'resizeLabel':_0x5aff02['t'](_0x192218(0x398)),'widgetLabel':_0x229786=>_0x5aff02['t'](to(_0x229786[_0x192218(0x393)])),'selectedWidgetId':_0x289805?_0x2d653c:void 0x0,'onSelectWidget':_0x289805?_0x37c04b=>{_0x1287d3(_0x37c04b),_0x37c04b||_0x36e3b3(!0x1);}:void 0x0,'onLayoutsCommit':_0x44eeb7=>{const _0x449b7b=_0x192218;let _0xd6b521={..._0x2f172f[_0x449b7b(0x4e1)]};_0x44eeb7[_0x449b7b(0x3c0)]((_0x3d7e54,_0x4a2a62)=>{let _0x3cf33d=_0xd6b521[_0x4a2a62];_0x3cf33d&&(_0xd6b521[_0x4a2a62]={..._0x3cf33d,'layout':_0x3d7e54});}),_0x32f623[_0x449b7b(0x1ff)](_0x5cbeb4['id'],{'unitId':_0x61af0d,'dashboard':{..._0x2f172f,'widgets':_0xd6b521}})[_0x449b7b(0x3d2)](()=>void 0x0);},'renderWidget':_0x23d73c=>_0x4dabb7(Ya,{'base':_0x2f3771,'dashboard':_0x2f172f,'unitId':_0x61af0d,'widget':_0x23d73c,'onChange':_0x4c0942,'onChartRuntimeChange':_0x6d8894}),'renderWidgetActions':_0x57046d=>_0x4dabb7(qa,{'onEdit':()=>{_0x1287d3(_0x57046d['id']),_0x36e3b3(!0x0);},'onDelete':()=>{const _0x5cb3a8=_0x192218;_0x2d653c===_0x57046d['id']&&(_0x1287d3(void 0x0),_0x36e3b3(!0x1)),_0x32f623[_0x5cb3a8(0x1ff)](_0x20648d['id'],{'unitId':_0x61af0d,'dashboardId':_0x4b4b2,'widgetId':_0x57046d['id']})[_0x5cb3a8(0x3d2)](()=>void 0x0);}})})}),_0x289805&&_0x24a903&&_0x5a4756&&_0x4dabb7(za,{'base':_0x2f3771,'chartRuntime':_0x41df4d['get'](_0x5a4756['id']),'unitId':_0x61af0d,'widget':_0x5a4756,'onChange':_0x4c0942,'onClose':()=>_0x36e3b3(!0x1),'onSelectBackgroundImage':()=>eo(_0x338ef3),'onSelectImage':()=>$a(_0x13916e)})]})]});}function Ya({base:_0x2aebc1,dashboard:_0xb70bd7,onChange:_0x99c138,onChartRuntimeChange:_0x204ec8,unitId:_0x4782c6,widget:_0x56588c}){const _0x42fc9c=_0x2353bc;let _0x23d631=_0x56a185(()=>_0xb70bd7[_0x42fc9c(0x362)][_0x42fc9c(0x3bc)](_0x12960f=>{const _0x38f07f=_0x42fc9c;let _0x4db1c4=_0xb70bd7[_0x38f07f(0x4e1)][_0x12960f];return(_0x4db1c4==null?void 0x0:_0x4db1c4[_0x38f07f(0x393)])===_0x342116['TableFilter']&&_0x4db1c4[_0x38f07f(0x475)]===('tableId'in _0x56588c?_0x56588c[_0x38f07f(0x475)]:'')&&_0x4db1c4[_0x38f07f(0x1b3)]?[_0x4db1c4[_0x38f07f(0x1b3)]]:[];}),[_0xb70bd7,_0x56588c]);switch(_0x56588c[_0x42fc9c(0x393)]){case _0x342116['PivotChart']:return _0x4dabb7(Lr,{'filters':_0x23d631,'unitId':_0x4782c6,'widget':_0x56588c,'onRuntimeChange':_0x204ec8});case _0x342116['TableFilter']:return _0x4dabb7(wa,{'fields':Xa(_0x2aebc1,_0x56588c[_0x42fc9c(0x475)]),'filter':_0x56588c['filter'],'onChange':_0x3bbb8e=>_0x99c138({..._0x56588c,'filter':_0x3bbb8e})['catch'](()=>void 0x0)});case _0x342116[_0x42fc9c(0x298)]:return _0x4dabb7(Ur,{'widget':_0x56588c});case _0x342116[_0x42fc9c(0x4ae)]:return _0x4dabb7(Za,{'widget':_0x56588c});case _0x342116[_0x42fc9c(0x36e)]:return _0x4dabb7(Dr,{'dashboardId':_0xb70bd7['id'],'unitId':_0x4782c6,'widget':_0x56588c});}}function Xa(_0x484a53,_0x2a7776){const _0x38a23e=_0x2353bc;let _0x196454=_0x484a53['getSnapshot']()[_0x38a23e(0x39c)][_0x2a7776],_0x27b8ce=_0x196454==null?void 0x0:_0x196454['viewOrder'][_0x38a23e(0x397)](_0x23f3c5=>_0x196454[_0x38a23e(0x451)][_0x23f3c5]),_0x3b65ea=_0x27b8ce?_0x196454==null?void 0x0:_0x196454[_0x38a23e(0x451)][_0x27b8ce]:void 0x0;return _0x196454&&_0x3b65ea?_0x5249f3(_0x196454,_0x3b65ea):[];}function Za({widget:_0x5bfa53}){const _0x13a110=_0x2353bc;let _0x19aef0=_0x39b411(_0x4d763c),[_0x431066,_0x256d8d]=_0x2be63d(_0x5bfa53['sourceType']===_0x26a785[_0x13a110(0x43f)]?'':_0x5bfa53[_0x13a110(0x24c)]);return _0x38e78f(()=>{const _0x2c4d59=_0x13a110;let _0x1f02b3=!0x0;return _0x19aef0[_0x2c4d59(0x4c6)](_0x5bfa53[_0x2c4d59(0x24c)],_0x5bfa53[_0x2c4d59(0x4b3)])[_0x2c4d59(0x388)](_0x44d972=>{_0x1f02b3&&_0x256d8d(_0x44d972);})[_0x2c4d59(0x3d2)](()=>void 0x0),()=>{_0x1f02b3=!0x1;};},[_0x19aef0,_0x5bfa53[_0x13a110(0x24c)],_0x5bfa53[_0x13a110(0x4b3)]]),_0x431066?_0x4dabb7(_0x13a110(0x442),{'role':_0x5bfa53['alt']?_0x13a110(0x1ed):void 0x0,'aria-label':_0x5bfa53[_0x13a110(0x3d8)]||void 0x0,'data-dashboard-image':_0x5bfa53['id'],'className':_0x13a110(0x203),'style':vr(_0x431066,_0x5bfa53[_0x13a110(0x4a6)])}):null;}function Qa(){const _0x591636=_0x2353bc;let _0x53d73c=_0x112de2(new Set());return{'id':_0x591636(0x3de)+_0x325e5d(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x53d73c}]},'documentStyle':{}};}function $a(_0xa8aecb){return new Promise(_0x4078c4=>{const _0x464b05=_0x1cf6;let _0x3fd98e=document[_0x464b05(0x3d6)](_0x464b05(0x4d3));_0x3fd98e['type']='file',_0x3fd98e[_0x464b05(0x461)]=_0x464b05(0x469),_0x3fd98e[_0x464b05(0x1d1)]('change',()=>{const _0x59c1a8=_0x464b05;var _0x40fd04;let _0xdcf2a=(_0x40fd04=_0x3fd98e[_0x59c1a8(0x438)])==null?void 0x0:_0x40fd04[0x0];if(!_0xdcf2a){_0x4078c4(null);return;}_0xa8aecb[_0x59c1a8(0x504)](_0xdcf2a)[_0x59c1a8(0x388)](_0x40b842=>{const _0x1a4b18=_0x59c1a8;if(!_0x40b842[_0x1a4b18(0x24c)]||_0x40b842['sourceType']===void 0x0){_0x4078c4(null);return;}_0x4078c4({'name':_0x40b842[_0x1a4b18(0x329)],'source':_0x40b842['source'],'sourceType':_0x40b842[_0x1a4b18(0x4b3)]});})[_0x59c1a8(0x3d2)](()=>_0x4078c4(null));},{'once':!0x0}),_0x3fd98e[_0x464b05(0x3ab)]();});}function eo(_0x363cef){return new Promise(_0x289258=>{const _0x58dcdd=_0x1cf6;let _0x53b1d1=document[_0x58dcdd(0x3d6)](_0x58dcdd(0x4d3));_0x53b1d1[_0x58dcdd(0x393)]='file',_0x53b1d1[_0x58dcdd(0x461)]=_0x58dcdd(0x469),_0x53b1d1[_0x58dcdd(0x1d1)](_0x58dcdd(0x48a),()=>{const _0x309562=_0x58dcdd;var _0x50298f;let _0x314ff0=(_0x50298f=_0x53b1d1[_0x309562(0x438)])==null?void 0x0:_0x50298f[0x0];if(!_0x314ff0){_0x289258(null);return;}_0x363cef[_0x309562(0x3dc)](_0x314ff0)['then'](_0x57b342=>{const _0x50ff60=_0x309562;if(!(_0x57b342!=null&&_0x57b342[_0x50ff60(0x24c)])){_0x289258(null);return;}if(_0x57b342[_0x50ff60(0x308)]){let _0x16604c=new Image();_0x16604c['src']=_0x57b342[_0x50ff60(0x308)],_0x363cef['addImageSourceCache'](_0x57b342['source'],_0x57b342['imageSourceType'],_0x16604c);}_0x289258({'source':_0x57b342[_0x50ff60(0x24c)],'sourceType':_0x57b342[_0x50ff60(0x23d)]});})[_0x309562(0x3d2)](()=>_0x289258(null));},{'once':!0x0}),_0x53b1d1['click']();});}function to(_0x5c1f3a){const _0x2fe032=_0x2353bc;switch(_0x5c1f3a){case _0x342116[_0x2fe032(0x3a3)]:return _0x2fe032(0x350);case _0x342116[_0x2fe032(0x296)]:return _0x2fe032(0x396);case _0x342116['Text']:return'bases-dashboard-ui.dashboard.text';case _0x342116[_0x2fe032(0x4ae)]:return _0x2fe032(0x293);case _0x342116[_0x2fe032(0x36e)]:return _0x2fe032(0x268);}}function no(_0x4fe6a8){const _0xa92f1b=_0x2353bc;return(_0x4fe6a8==null?void 0x0:_0x4fe6a8[_0xa92f1b(0x393)])===_0x5ee6b5[_0xa92f1b(0x49c)]&&typeof _0x4fe6a8[_0xa92f1b(0x4e8)]=='object'&&_0x4fe6a8[_0xa92f1b(0x4e8)]!==null&&_0xa92f1b(0x4aa)in _0x4fe6a8['config']&&_0xa92f1b(0x4d8)in _0x4fe6a8['config'];}const ro=[{'area':_0x4c815c[_0x2353bc(0x3b4)],'key':_0x2353bc(0x2e1),'label':'bases-dashboard-ui.pivot.filters'},{'area':_0x4c815c['Column'],'key':'columnFields','label':_0x2353bc(0x318)},{'area':_0x4c815c[_0x2353bc(0x456)],'key':'rowFields','label':'bases-dashboard-ui.pivot.rows'},{'area':_0x4c815c['Value'],'key':_0x2353bc(0x1f9),'label':_0x2353bc(0x326)}],io=[{'value':_0x282c8a[_0x2353bc(0x2bf)],'localeKey':_0x2353bc(0x3b2)},{'value':_0x282c8a[_0x2353bc(0x349)],'localeKey':_0x2353bc(0x29c)},{'value':_0x282c8a[_0x2353bc(0x3c8)],'localeKey':_0x2353bc(0x48c)},{'value':_0x282c8a[_0x2353bc(0x4f0)],'localeKey':_0x2353bc(0x3e4)},{'value':_0x282c8a[_0x2353bc(0x2eb)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':_0x282c8a['min'],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':_0x282c8a[_0x2353bc(0x2d6)],'localeKey':_0x2353bc(0x44c)},{'value':_0x282c8a[_0x2353bc(0x2a7)],'localeKey':'bases-dashboard-ui.pivot.stdDev'},{'value':_0x282c8a[_0x2353bc(0x1c2)],'localeKey':_0x2353bc(0x360)},{'value':_0x282c8a[_0x2353bc(0x218)],'localeKey':_0x2353bc(0x2b9)},{'value':_0x282c8a[_0x2353bc(0x22c)],'localeKey':_0x2353bc(0x3e0)}];function ao(_0x196a6b){const _0x591c84=_0x2353bc;let {config:_0x513f87,onChange:_0x597b18,table:_0x3bc7f4}=_0x196a6b,_0x735190=_0x39b411(_0x5cd3ee),[_0x225d2b,_0x1f1cd4]=_0x2be63d('fields'),[_0x2d77e2,_0x4f81dc]=_0x2be63d(''),[_0x48e8d4,_0x2fe53d]=_0x2be63d(null),[_0x388552,_0x1c30ed]=_0x2be63d(null),[_0x4cd760,_0x44bf09]=_0x2be63d(null),[_0x58a3f4,_0x2de9ce]=_0x2be63d(null),_0xb6f816=_0x35f949(null),_0x57add6=_0x56a185(()=>_0x3bc7f4[_0x591c84(0x457)][_0x591c84(0x3bc)](_0x1c7e00=>{const _0x5d3b04=_0x591c84;let _0x32e41a=_0x3bc7f4[_0x5d3b04(0x273)][_0x1c7e00];return _0x32e41a&&_0x32e41a[_0x5d3b04(0x4de)]!==!0x0&&_0x32e41a[_0x5d3b04(0x393)]!==_0x557eea['RecordId']?[_0x32e41a]:[];})['filter'](_0x4f7368=>_0x4f7368[_0x591c84(0x329)][_0x591c84(0x49d)]()['includes'](_0x2d77e2[_0x591c84(0x3ee)]()[_0x591c84(0x49d)]())),[_0x2d77e2,_0x3bc7f4]),_0x1fed30=_0x17ea25=>{const _0x14e4ec=_0x591c84;let _0x3ff40f=_0x1c8584(_0x3bc7f4,_0x513f87[_0x14e4ec(0x4aa)]);try{_0x17ea25(_0x3ff40f),_0x597b18({'pivot':_0x3ff40f[_0x14e4ec(0x2f5)]()});}finally{_0x3ff40f[_0x14e4ec(0x2d9)]();}},_0x1b0a85=(_0x7b5351,_0x5cb9cb)=>{_0x48e8d4&&(_0x1fed30(_0x4ce258=>{const _0x4b1d81=_0x1cf6;if(_0x48e8d4[_0x4b1d81(0x29e)]==='field'){let _0x17cbb6=_0x4ce258[_0x4b1d81(0x316)](_0x48e8d4['id']),_0x332399=_0x17cbb6[_0x4b1d81(0x269)]===_0x7b5351&&_0x17cbb6[_0x4b1d81(0x32a)]<_0x5cb9cb?_0x5cb9cb-0x1:_0x5cb9cb;_0x4ce258[_0x4b1d81(0x1b0)](_0x48e8d4['id'],_0x7b5351,_0x332399);return;}mo(_0x4ce258,_0x48e8d4['id'],_0x7b5351,_0x5cb9cb);}),_0x2fe53d(null),_0x1c30ed(null));};return _0x2b00c1(_0x591c84(0x442),{'className':_0x591c84(0x301),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x735190['t'](_0x591c84(0x4a7)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x735190['t'](_0x591c84(0x2a5)),'panelId':'base-pivot-fields','value':_0x591c84(0x273)},{'label':_0x735190['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x591c84(0x27b),'value':'options'}],'value':_0x225d2b,'onChange':_0x1f1cd4}),_0x4dabb7(_0x591c84(0x442),{'ref':_0xb6f816,'className':_0x52fed8(_0x591c84(0x2fb),_0x2a22a5),'onDragOver':_0xa3e2f5=>{const _0x2ff0c8=_0x591c84;let _0x4619b9=_0xb6f816['current'];if(!_0x4619b9)return;let _0x2c1fc2=_0x4619b9[_0x2ff0c8(0x4db)]();_0xa3e2f5[_0x2ff0c8(0x408)]<_0x2c1fc2['top']+0x30?_0x4619b9['scrollTop']-=0x10:_0xa3e2f5[_0x2ff0c8(0x408)]>_0x2c1fc2[_0x2ff0c8(0x2d0)]-0x30&&(_0x4619b9['scrollTop']+=0x10);},'children':_0x225d2b===_0x591c84(0x320)?_0x4dabb7(po,{'config':_0x513f87,'commit':_0x1fed30}):_0x2b00c1(_0x591c84(0x442),{'className':_0x591c84(0x4f1),'children':[_0x2b00c1('div',{'children':[_0x4dabb7(_0x591c84(0x442),{'className':_0x591c84(0x47c),'children':_0x735190['t'](_0x591c84(0x4a8))}),_0x4dabb7(_0x2c53ee,{'allowClear':!0x0,'slot':_0x4dabb7(_0x51aac6,{}),'value':_0x2d77e2,'placeholder':_0x735190['t'](_0x591c84(0x35a)),'onChange':_0x4f81dc}),_0x4dabb7(_0x591c84(0x442),{'className':_0x591c84(0x351),'children':_0x57add6['map'](_0x54de93=>_0x4dabb7(oo,{'config':_0x513f87,'field':_0x54de93,'onAdd':_0xa244c8=>_0x1fed30(_0x207da4=>mo(_0x207da4,_0x54de93['id'],_0xa244c8,_0x207da4[_0x591c84(0x38a)](_0xa244c8))),'onCheckedChange':_0x12e012=>_0x1fed30(_0x1e84ce=>{const _0x2a082a=_0x591c84;let _0xf83847=_0x1e84ce['getTableFieldsByDataFieldId'](_0x54de93['id']);if(!_0x12e012){_0xf83847[_0x2a082a(0x3c0)](_0xc27b3a=>_0x1e84ce['removeField'](_0xc27b3a[_0x2a082a(0x1ae)]()));return;}if(_0xf83847[_0x2a082a(0x4da)]===0x0){let _0x5f188a=go(_0x54de93)?_0x4c815c[_0x2a082a(0x47a)]:_0x4c815c['Row'];_0x1e84ce[_0x2a082a(0x3fa)](_0x54de93['id'],_0x5f188a);}}),'onDragStart':()=>_0x2fe53d({'kind':'source','id':_0x54de93['id']})},_0x54de93['id']))})]}),_0x4dabb7('div',{'className':_0x591c84(0x478),'children':ro[_0x591c84(0x3ff)](_0x17d04b=>_0x4dabb7(co,{'area':_0x17d04b[_0x591c84(0x269)],'dropTarget':_0x388552,'fields':_0x513f87[_0x591c84(0x4aa)][_0x17d04b['key']],'label':_0x735190['t'](_0x17d04b['label']),'snapshot':_0x513f87[_0x591c84(0x4aa)],'onDragEnd':()=>{_0x2fe53d(null),_0x1c30ed(null);},'onDragStart':_0x5aa0ec=>_0x2fe53d({'kind':_0x591c84(0x506),'id':_0x5aa0ec,'area':_0x17d04b[_0x591c84(0x269)]}),'onDragOver':_0x3a04ac=>_0x1c30ed({'area':_0x17d04b[_0x591c84(0x269)],'index':_0x3a04ac}),'onDrop':_0x2ffcdf=>_0x1b0a85(_0x17d04b[_0x591c84(0x269)],_0x2ffcdf),'onFilter':_0x44bf09,'onRemove':_0x59cfa5=>_0x1fed30(_0x3318b5=>_0x3318b5['removeField'](_0x59cfa5)),'onSettings':_0x2de9ce},_0x17d04b[_0x591c84(0x269)]))}),_0x4cd760&&_0x4dabb7(uo,{'fieldId':_0x4cd760,'snapshot':_0x513f87[_0x591c84(0x4aa)],'table':_0x3bc7f4,'onCancel':()=>_0x44bf09(null),'onCommit':(_0x395414,_0x8a8a2)=>{_0x1fed30(_0x3c84ea=>{const _0xd2ebd=_0x1cf6;let _0x463390=_0x3c84ea['getDataFieldByTableId'](_0x4cd760),_0x595004=(_0x463390==null?void 0x0:_0x463390[_0xd2ebd(0x41c)])??[];_0x3c84ea[_0xd2ebd(0x4c2)](_0x4cd760,{'type':_0x1b814d[_0xd2ebd(0x468)],'list':_0x395414,'isAll':_0x395414['length']===_0x595004[_0xd2ebd(0x4da)]}),_0x3c84ea[_0xd2ebd(0x263)](_0x4cd760,_0x8a8a2===void 0x0?void 0x0:{'type':_0x8a8a2});}),_0x44bf09(null);}},_0x4cd760),_0x58a3f4&&_0x4dabb7(fo,{'field':_0x513f87[_0x591c84(0x4aa)][_0x591c84(0x1c7)][_0x58a3f4],'onCancel':()=>_0x2de9ce(null),'onCommit':(_0x27c6f4,_0xb267cd,_0x4f6348)=>{_0x1fed30(_0x5215f8=>{const _0x3ec3f1=_0x1cf6;_0x5215f8[_0x3ec3f1(0x1e8)](_0x58a3f4,_0x27c6f4),_0x5215f8[_0x3ec3f1(0x467)](_0x58a3f4,_0xb267cd),_0x5215f8[_0x3ec3f1(0x2de)](_0x58a3f4,_0x4f6348||void 0x0);}),_0x2de9ce(null);}},_0x58a3f4)]})})]});}function oo(_0x2d6ad0){const _0x181f56=_0x2353bc;let {config:_0x268b9c,field:_0x4cf084,onAdd:_0x5281f8,onCheckedChange:_0x16ce41,onDragStart:_0x2b6a1d}=_0x2d6ad0,_0x56a454=_0x39b411(_0x5cd3ee),_0x3d625c=[...Object[_0x181f56(0x4ad)](_0x268b9c[_0x181f56(0x4aa)]['dimension']),...Object[_0x181f56(0x4ad)](_0x268b9c['pivot'][_0x181f56(0x1c7)])]['some'](_0x2759ba=>_0x2759ba['dataFieldId']===_0x4cf084['id']),_0x5cede8=ro[_0x181f56(0x3ff)](_0x446f93=>({'type':_0x181f56(0x423),'children':_0x56a454['t'](_o(_0x446f93[_0x181f56(0x269)])),'onSelect':()=>_0x5281f8(_0x446f93[_0x181f56(0x269)])}));return _0x2b00c1(_0x181f56(0x442),{'draggable':!0x0,'className':_0x181f56(0x473),'onDragStart':_0x2b6a1d,'children':[_0x4dabb7(_0x1487d8,{'className':_0x181f56(0x28e)}),_0x4dabb7(_0x3cc061,{'checked':_0x3d625c,'onChange':_0x581d79=>_0x16ce41(!!_0x581d79)}),_0x4dabb7(so,{'field':_0x4cf084}),_0x4dabb7(_0x181f56(0x3ec),{'className':_0x181f56(0x3bf),'children':_0x4cf084['name']}),_0x4dabb7(_0x492a1e,{'align':_0x181f56(0x236),'items':_0x5cede8,'children':_0x4dabb7('span',{'className':'univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','children':_0x4dabb7(_0xf77a3b,{})})})]});}function so({field:_0x338bc3}){const _0x576b39=_0x2353bc;return go(_0x338bc3)?_0x4dabb7(_0x5a5ded,{'className':'univer-text-gray-400'}):_0x338bc3[_0x576b39(0x393)]===_0x557eea[_0x576b39(0x4e7)]||_0x338bc3[_0x576b39(0x393)]===_0x557eea[_0x576b39(0x2fa)]||_0x338bc3[_0x576b39(0x393)]===_0x557eea[_0x576b39(0x4a2)]?_0x4dabb7(_0x951fbe,{'className':_0x576b39(0x28e)}):_0x4dabb7(_0x264f2e,{'className':_0x576b39(0x28e)});}function co(_0x440d97){const _0x1d52f4=_0x2353bc;let {area:_0x1cd686,dropTarget:_0x38b906,fields:_0x551959,label:_0x1e1422,snapshot:_0x1a0bcd}=_0x440d97,_0x18c69b=_0x39b411(_0x5cd3ee);return _0x2b00c1(_0x1d52f4(0x482),{'className':_0x52fed8(_0x1d52f4(0x458),_0x1298ac),'onDragOver':_0x111f63=>{const _0x4f39e5=_0x1d52f4;_0x111f63['preventDefault'](),_0x440d97['onDragOver'](_0x551959[_0x4f39e5(0x4da)]);},'onDrop':_0x6e9980=>{const _0x1e8e7b=_0x1d52f4;_0x6e9980[_0x1e8e7b(0x3ca)](),_0x440d97[_0x1e8e7b(0x20c)]((_0x38b906==null?void 0x0:_0x38b906[_0x1e8e7b(0x269)])===_0x1cd686?_0x38b906[_0x1e8e7b(0x32a)]:_0x551959[_0x1e8e7b(0x4da)]);},'children':[_0x4dabb7(_0x1d52f4(0x442),{'className':_0x1d52f4(0x356),'children':_0x1e1422}),_0x2b00c1(_0x1d52f4(0x442),{'className':_0x1d52f4(0x378),'children':[_0x551959['map']((_0x3f4b06,_0x4e9905)=>{const _0x4376dc=_0x1d52f4;let _0x586f72=_0x1a0bcd[_0x4376dc(0x46a)][_0x3f4b06]??_0x1a0bcd[_0x4376dc(0x1c7)][_0x3f4b06];if(!_0x586f72)return null;let _0x3dfd09=(_0x38b906==null?void 0x0:_0x38b906[_0x4376dc(0x269)])===_0x1cd686&&_0x38b906[_0x4376dc(0x32a)]===_0x4e9905;return _0x2b00c1(_0x4376dc(0x442),{'onDragOver':_0x38c344=>{const _0x5e6c91=_0x4376dc;_0x38c344[_0x5e6c91(0x3ca)](),_0x38c344['stopPropagation']();let _0x485e80=_0x38c344['currentTarget'][_0x5e6c91(0x4db)]();_0x440d97[_0x5e6c91(0x4cb)](_0x4e9905+ +(_0x38c344['clientY']>_0x485e80[_0x5e6c91(0x45e)]+_0x485e80['height']/0x2));},'onDrop':_0x4fd0cf=>{const _0xc24946=_0x4376dc;_0x4fd0cf[_0xc24946(0x3ca)](),_0x4fd0cf['stopPropagation'](),_0x440d97['onDrop']((_0x38b906==null?void 0x0:_0x38b906[_0xc24946(0x269)])===_0x1cd686?_0x38b906[_0xc24946(0x32a)]:_0x4e9905);},'children':[_0x3dfd09&&_0x4dabb7(_0x4376dc(0x442),{'className':_0x4376dc(0x278)}),_0x4dabb7(lo,{'area':_0x1cd686,'field':_0x586f72,'onDragEnd':_0x440d97['onDragEnd'],'onDragStart':()=>_0x440d97[_0x4376dc(0x38d)](_0x3f4b06),'onFilter':()=>_0x440d97[_0x4376dc(0x49e)](_0x3f4b06),'onRemove':()=>_0x440d97[_0x4376dc(0x287)](_0x3f4b06),'onSettings':()=>_0x440d97[_0x4376dc(0x373)](_0x3f4b06)})]},_0x3f4b06);}),(_0x38b906==null?void 0x0:_0x38b906['area'])===_0x1cd686&&_0x38b906[_0x1d52f4(0x32a)]===_0x551959[_0x1d52f4(0x4da)]&&_0x4dabb7('div',{'className':_0x1d52f4(0x278)}),_0x551959[_0x1d52f4(0x4da)]===0x0&&_0x4dabb7(_0x1d52f4(0x442),{'className':_0x1d52f4(0x279),'children':_0x18c69b['t'](_0x1d52f4(0x29a))})]})]});}function lo(_0x35dc66){const _0x5d9ee5=_0x2353bc;let _0x15a9b6=_0x39b411(_0x5cd3ee),_0x5a265e=_0x35dc66['area']===_0x4c815c[_0x5d9ee5(0x47a)],_0x55199a=[{'type':_0x5d9ee5(0x423),'children':_0x15a9b6['t'](_0x5d9ee5(0x404)),'onSelect':_0x35dc66[_0x5d9ee5(0x287)]},{'type':'item','children':_0x15a9b6['t'](_0x5a265e?'bases-dashboard-ui.pivot.fieldSettings':_0x5d9ee5(0x3a1)),'onSelect':_0x5a265e?_0x35dc66[_0x5d9ee5(0x373)]:_0x35dc66[_0x5d9ee5(0x49e)]}];return _0x2b00c1('div',{'draggable':!0x0,'className':'univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','onDragEnd':_0x35dc66[_0x5d9ee5(0x31c)],'onDragStart':_0x35dc66[_0x5d9ee5(0x38d)],'children':[_0x4dabb7(_0x1487d8,{'className':_0x5d9ee5(0x28e)}),_0x4dabb7(_0x56b693,{'title':_0x35dc66[_0x5d9ee5(0x506)][_0x5d9ee5(0x2a9)],'children':_0x4dabb7(_0x5d9ee5(0x3ec),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x35dc66[_0x5d9ee5(0x506)][_0x5d9ee5(0x2a9)]})}),_0x4dabb7(_0x492a1e,{'align':_0x5d9ee5(0x236),'items':_0x55199a,'children':_0x4dabb7(_0x5d9ee5(0x3ec),{'className':_0x5d9ee5(0x3bb),'children':_0x4dabb7(_0xf77a3b,{})})})]});}function uo(_0x249734){const _0x9c3e57=_0x2353bc;var _0x52c4de,_0x24330d;let _0x374880=_0x39b411(_0x5cd3ee),{format:_0x538cba,items:_0x10473d,itemTypes:_0x5927e3}=_0x56a185(()=>{const _0x5c64a4=_0x1cf6;let _0x183e12=_0x1c8584(_0x249734[_0x5c64a4(0x4bb)],_0x249734[_0x5c64a4(0x1d0)]);try{let _0x10a588=_0x183e12[_0x5c64a4(0x3b7)](_0x249734[_0x5c64a4(0x43d)]);return{'format':_0x10a588==null?void 0x0:_0x10a588[_0x5c64a4(0x347)],'items':[...(_0x10a588==null?void 0x0:_0x10a588[_0x5c64a4(0x41c)])??[]],'itemTypes':[...(_0x10a588==null?void 0x0:_0x10a588[_0x5c64a4(0x4ed)])??[]]};}finally{_0x183e12[_0x5c64a4(0x2d9)]();}},[_0x249734[_0x9c3e57(0x43d)],_0x249734[_0x9c3e57(0x1d0)],_0x249734[_0x9c3e57(0x4bb)]]),_0x3f0462=(_0x52c4de=_0x249734[_0x9c3e57(0x1d0)][_0x9c3e57(0x46a)][_0x249734['fieldId']])==null?void 0x0:_0x52c4de['filterInfo'],[_0x4283f6,_0x5f2a54]=_0x2be63d((_0x3f0462==null?void 0x0:_0x3f0462[_0x9c3e57(0x393)])===_0x1b814d[_0x9c3e57(0x468)]?_0x3f0462[_0x9c3e57(0x4ea)]:_0x10473d),[_0x2068dc,_0x1e3648]=_0x2be63d((_0x24330d=_0x249734['snapshot'][_0x9c3e57(0x46a)][_0x249734[_0x9c3e57(0x43d)]])==null||(_0x24330d=_0x24330d[_0x9c3e57(0x1e0)])==null?void 0x0:_0x24330d[_0x9c3e57(0x393)]),_0x58b9e3=_0x4283f6[_0x9c3e57(0x4da)]===_0x10473d[_0x9c3e57(0x4da)];return _0x2b00c1(_0x9c3e57(0x482),{'className':_0x52fed8(_0x9c3e57(0x3f6),_0x1298ac),'children':[_0x4dabb7('div',{'className':_0x9c3e57(0x306),'children':_0x374880['t'](_0x9c3e57(0x3a1))}),_0x2b00c1(_0x9c3e57(0x442),{'className':_0x9c3e57(0x414),'children':[_0x2b00c1(_0x1b3e3b,{'className':_0x9c3e57(0x342),'variant':_0x2068dc===_0x428fd4['ascending']?'primary':_0x9c3e57(0x431),'onClick':()=>_0x1e3648(_0x428fd4[_0x9c3e57(0x21b)]),'children':[_0x4dabb7(_0x4c6d55,{}),_0x374880['t'](_0x9c3e57(0x43a))]}),_0x2b00c1(_0x1b3e3b,{'className':_0x9c3e57(0x342),'variant':_0x2068dc===_0x428fd4[_0x9c3e57(0x229)]?'primary':'default','onClick':()=>_0x1e3648(_0x428fd4['descending']),'children':[_0x4dabb7(_0x59e3b9,{}),_0x374880['t'](_0x9c3e57(0x2b2))]})]}),_0x2b00c1('div',{'className':_0x9c3e57(0x302),'children':[_0x2b00c1(_0x9c3e57(0x3b0),{'className':_0x9c3e57(0x334),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x58b9e3,'indeterminate':_0x4283f6[_0x9c3e57(0x4da)]>0x0&&!_0x58b9e3,'onChange':()=>_0x5f2a54(_0x58b9e3?[]:_0x10473d)}),_0x374880['t'](_0x9c3e57(0x368))]}),_0x10473d[_0x9c3e57(0x3ff)]((_0x32cb90,_0x511a22)=>_0x2b00c1(_0x9c3e57(0x3b0),{'className':_0x9c3e57(0x334),'children':[_0x4dabb7(_0x3cc061,{'checked':_0x4283f6['includes'](_0x32cb90),'onChange':()=>_0x5f2a54(_0x319320=>_0x319320['includes'](_0x32cb90)?_0x319320[_0x9c3e57(0x1b3)](_0x10accf=>_0x10accf!==_0x32cb90):[..._0x319320,_0x32cb90])}),_0x4dabb7('span',{'className':_0x9c3e57(0x226),'children':ho(_0x32cb90,_0x5927e3[_0x511a22],_0x538cba,_0x374880['t'](_0x9c3e57(0x2a2)))})]},_0x32cb90))]}),_0x2b00c1(_0x9c3e57(0x442),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[_0x4dabb7(_0x1b3e3b,{'variant':_0x9c3e57(0x31a),'onClick':()=>_0x249734[_0x9c3e57(0x434)](_0x10473d,_0x2068dc),'children':_0x374880['t'](_0x9c3e57(0x2d3))}),_0x2b00c1(_0x9c3e57(0x442),{'className':_0x9c3e57(0x4cf),'children':[_0x4dabb7(_0x1b3e3b,{'onClick':_0x249734['onCancel'],'children':_0x374880['t']('bases-dashboard-ui.pivot.cancel')}),_0x4dabb7(_0x1b3e3b,{'variant':_0x9c3e57(0x37f),'disabled':_0x4283f6[_0x9c3e57(0x4da)]===0x0,'onClick':()=>_0x249734[_0x9c3e57(0x434)](_0x4283f6,_0x2068dc),'children':_0x374880['t'](_0x9c3e57(0x325))})]})]})]});}function fo(_0x45cdce){const _0x375d86=_0x2353bc;var _0x3e6696,_0x54fc46,_0x46a65d;let _0x4e4fb7=_0x39b411(_0x5cd3ee),[_0x2d524f,_0x1b2cca]=_0x2be63d(((_0x3e6696=_0x45cdce[_0x375d86(0x506)])==null?void 0x0:_0x3e6696['displayName'])??''),[_0x3fc751,_0x53c046]=_0x2be63d(((_0x54fc46=_0x45cdce[_0x375d86(0x506)])==null?void 0x0:_0x54fc46[_0x375d86(0x2cc)])??_0x282c8a[_0x375d86(0x2bf)]),[_0x46562e,_0x394a78]=_0x2be63d(((_0x46a65d=_0x45cdce[_0x375d86(0x506)])==null?void 0x0:_0x46a65d['format'])??'');return _0x45cdce['field']?_0x2b00c1(_0x375d86(0x482),{'className':_0x52fed8(_0x375d86(0x50c),_0x1298ac),'children':[_0x4dabb7(_0x375d86(0x442),{'className':_0x375d86(0x441),'children':_0x4e4fb7['t'](_0x375d86(0x2c7))}),_0x2b00c1(_0x375d86(0x3b0),{'className':_0x375d86(0x4a3),'children':[_0x4e4fb7['t'](_0x375d86(0x1c9)),_0x4dabb7(_0x2c53ee,{'value':_0x2d524f,'onChange':_0x1b2cca})]}),_0x2b00c1(_0x375d86(0x3b0),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x4e4fb7['t'](_0x375d86(0x2c0)),_0x4dabb7(_0xce6b1b,{'value':String(_0x3fc751),'options':io[_0x375d86(0x3ff)](_0xb70e3f=>({'value':String(_0xb70e3f['value']),'label':_0x4e4fb7['t'](_0xb70e3f['localeKey'])})),'onChange':_0x2db5be=>{const _0x4c93c3=_0x375d86;let _0x5db262=io['find'](_0x5191f5=>String(_0x5191f5['value'])===_0x2db5be);_0x5db262&&_0x53c046(_0x5db262[_0x4c93c3(0x284)]);}})]}),_0x2b00c1('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x4e4fb7['t'](_0x375d86(0x3e8)),_0x4dabb7(_0x2c53ee,{'value':_0x46562e,'onChange':_0x394a78})]}),_0x2b00c1('div',{'className':_0x375d86(0x4f9),'children':[_0x4dabb7(_0x1b3e3b,{'onClick':_0x45cdce[_0x375d86(0x4f7)],'children':_0x4e4fb7['t'](_0x375d86(0x376))}),_0x4dabb7(_0x1b3e3b,{'variant':_0x375d86(0x37f),'disabled':!_0x2d524f[_0x375d86(0x3ee)](),'onClick':()=>_0x45cdce['onCommit'](_0x2d524f[_0x375d86(0x3ee)](),_0x3fc751,_0x46562e),'children':_0x4e4fb7['t']('bases-dashboard-ui.pivot.confirm')})]})]}):null;}function po(_0x1bd56d){const _0x353dc8=_0x2353bc;let {config:_0x3cc06e,commit:_0x1bd2fc}=_0x1bd56d,_0x4a93be=_0x39b411(_0x5cd3ee),_0x4466be=_0x3cc06e[_0x353dc8(0x4aa)][_0x353dc8(0x320)],_0x1198b1=_0x540914=>_0x1bd2fc(_0x52673f=>_0x52673f['setOptions']({..._0x52673f[_0x353dc8(0x4c8)](),..._0x540914}));return _0x2b00c1(_0x353dc8(0x442),{'className':_0x353dc8(0x4f1),'children':[_0x2b00c1(_0x353dc8(0x3b0),{'className':_0x353dc8(0x1f1),'children':[_0x4a93be['t'](_0x353dc8(0x291)),_0x4dabb7(_0xce6b1b,{'className':_0x353dc8(0x23f),'value':String(_0x3cc06e[_0x353dc8(0x4aa)][_0x353dc8(0x439)]),'options':[{'value':String(_0x426ac9[_0x353dc8(0x2c8)]),'label':_0x4a93be['t'](_0x353dc8(0x372))},{'value':String(_0x426ac9[_0x353dc8(0x1be)]),'label':_0x4a93be['t'](_0x353dc8(0x409))},{'value':String(_0x426ac9[_0x353dc8(0x379)]),'label':_0x4a93be['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x4e97b1=>{const _0x3a7777=_0x353dc8;let _0x4abce4=[_0x426ac9[_0x3a7777(0x2c8)],_0x426ac9['compact'],_0x426ac9['outline']][_0x3a7777(0x397)](_0x380df7=>String(_0x380df7)===_0x4e97b1);_0x4abce4!==void 0x0&&_0x1bd2fc(_0x4a4fa0=>_0x4a4fa0['setLayout'](_0x4abce4));}})]}),[{'key':'repeatRowLabels','label':'bases-dashboard-ui.pivot.repeatRowLabels','defaultValue':!0x1},{'key':_0x353dc8(0x40b),'label':_0x353dc8(0x1f5),'defaultValue':!0x1},{'key':_0x353dc8(0x246),'label':'bases-dashboard-ui.pivot.showRowSubtotal','defaultValue':!0x0},{'key':_0x353dc8(0x402),'label':_0x353dc8(0x2ca),'defaultValue':!0x0},{'key':_0x353dc8(0x280),'label':_0x353dc8(0x2bb),'defaultValue':!0x0},{'key':_0x353dc8(0x2ea),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}]['map'](_0x9a70a9=>_0x2b00c1(_0x353dc8(0x3b0),{'className':_0x353dc8(0x343),'children':[_0x4dabb7(_0x3cc061,{'checked':!!(_0x4466be[_0x9a70a9[_0x353dc8(0x336)]]??_0x9a70a9['defaultValue']),'disabled':_0x9a70a9['key']===_0x353dc8(0x479)&&_0x3cc06e['pivot'][_0x353dc8(0x439)]===_0x426ac9['compact'],'onChange':_0x3324a4=>_0x1198b1({[_0x9a70a9[_0x353dc8(0x336)]]:!!_0x3324a4})}),_0x4a93be['t'](_0x9a70a9[_0x353dc8(0x3b0)])]},_0x9a70a9[_0x353dc8(0x336)])),_0x3cc06e[_0x353dc8(0x4aa)][_0x353dc8(0x439)]===_0x426ac9['outline']&&_0x2b00c1('label',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x4a93be['t'](_0x353dc8(0x1c3)),_0x4dabb7(_0xce6b1b,{'className':'univer-w-36','value':String(_0x4466be[_0x353dc8(0x413)]??_0x10ab45[_0x353dc8(0x45e)]),'options':[{'value':String(_0x10ab45['top']),'label':_0x4a93be['t'](_0x353dc8(0x422))},{'value':String(_0x10ab45[_0x353dc8(0x2d0)]),'label':_0x4a93be['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x2908b0=>{const _0x134cbe=_0x353dc8;let _0x49aa50=[_0x10ab45[_0x134cbe(0x45e)],_0x10ab45[_0x134cbe(0x2d0)]]['find'](_0x5b7c81=>String(_0x5b7c81)===_0x2908b0);_0x49aa50!==void 0x0&&_0x1198b1({'rowSubtotalPosition':_0x49aa50});}})]}),_0x2b00c1('label',{'className':_0x353dc8(0x1f1),'children':[_0x4a93be['t'](_0x353dc8(0x25d)),_0x4dabb7(_0xce6b1b,{'className':_0x353dc8(0x23f),'value':String(_0x3cc06e[_0x353dc8(0x4aa)][_0x353dc8(0x1bb)]===_0x288ba5[_0x353dc8(0x2fe)]?_0x288ba5[_0x353dc8(0x499)]:_0x3cc06e['pivot'][_0x353dc8(0x1bb)]),'options':[{'value':String(_0x288ba5[_0x353dc8(0x499)]),'label':_0x4a93be['t']('bases-dashboard-ui.pivot.columns')},{'value':String(_0x288ba5[_0x353dc8(0x456)]),'label':_0x4a93be['t'](_0x353dc8(0x1d4))}],'onChange':_0x5f52c4=>{const _0x3aafab=_0x353dc8;let _0x4f7b0c=[_0x288ba5[_0x3aafab(0x499)],_0x288ba5['Row']]['find'](_0x4a6d8c=>String(_0x4a6d8c)===_0x5f52c4);_0x4f7b0c!==void 0x0&&_0x1bd2fc(_0x12b7d1=>_0x12b7d1[_0x3aafab(0x3e6)](_0x4f7b0c,_0x12b7d1[_0x3aafab(0x2cf)]()<0x0?0x0:_0x12b7d1[_0x3aafab(0x2cf)]()));}})]}),_0x2b00c1(_0x353dc8(0x3b0),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x4a93be['t'](_0x353dc8(0x412)),_0x4dabb7(_0x1c2086,{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0x4466be['pageWrap']??0x1,'onChange':_0x1cab7a=>{const _0x3e4795=_0x353dc8;let _0x120e6d=Number(_0x1cab7a);Number[_0x3e4795(0x4a4)](_0x120e6d)&&_0x120e6d>=0x1&&_0x1198b1({'pageWrap':_0x120e6d});}})]}),_0x2b00c1(_0x353dc8(0x3b0),{'className':_0x353dc8(0x1f1),'children':[_0x4a93be['t']('bases-dashboard-ui.pivot.pageDirection'),_0x4dabb7(_0xce6b1b,{'className':_0x353dc8(0x23f),'value':String(_0x4466be[_0x353dc8(0x1b7)]??!0x1),'options':[{'value':_0x353dc8(0x48b),'label':_0x4a93be['t'](_0x353dc8(0x30c))},{'value':'true','label':_0x4a93be['t'](_0x353dc8(0x4a1))}],'onChange':_0x4fe993=>_0x1198b1({'pageOverThenDown':_0x4fe993==='true'})})]})]});}function mo(_0x1f8543,_0x5c34eb,_0x3b31b4,_0x593b0e){const _0x32f3eb=_0x2353bc;let _0x4720fa=_0x1f8543[_0x32f3eb(0x1cd)](_0x5c34eb)[_0x32f3eb(0x397)](_0x5afdc6=>_0x1f8543['getFieldPositionInfoById'](_0x5afdc6[_0x32f3eb(0x1ae)]())[_0x32f3eb(0x269)]!==_0x4c815c[_0x32f3eb(0x47a)]);if(_0x3b31b4!==_0x4c815c[_0x32f3eb(0x47a)]&&_0x4720fa){_0x1f8543[_0x32f3eb(0x1b0)](_0x4720fa[_0x32f3eb(0x1ae)](),_0x3b31b4,_0x593b0e);return;}_0x1f8543[_0x32f3eb(0x3fa)](_0x5c34eb,_0x3b31b4,_0x593b0e);}function ho(_0x595cf7,_0x2dd1df,_0xa0c3ce,_0x15904c){const _0x2ff743=_0x2353bc;return _0x2dd1df===_0x1fe7b3[_0x2ff743(0x512)]?_0x15904c:_0x2dd1df===_0x1fe7b3['date']&&_0xa0c3ce?_0x3f4aae['format'](_0xa0c3ce,Number(_0x595cf7)):_0x595cf7;}function go(_0x41a601){const _0x365493=_0x2353bc;return _0x41a601[_0x365493(0x393)]===_0x557eea[_0x365493(0x416)]||_0x41a601['type']===_0x557eea[_0x365493(0x321)]||_0x41a601[_0x365493(0x393)]===_0x557eea[_0x365493(0x3c5)]||_0x41a601[_0x365493(0x393)]===_0x557eea[_0x365493(0x42a)];}function _o(_0x53644a){const _0x13ebf0=_0x2353bc;switch(_0x53644a){case _0x4c815c[_0x13ebf0(0x456)]:return _0x13ebf0(0x28b);case _0x4c815c[_0x13ebf0(0x499)]:return _0x13ebf0(0x50d);case _0x4c815c[_0x13ebf0(0x47a)]:return'bases-dashboard-ui.pivot.addToValue';default:return _0x13ebf0(0x41a);}}function vo({config:_0x599bce,onChange:_0x353ea2,runtime:_0x346e04,table:_0x491911}){const _0x1506e3=_0x2353bc;let _0x23fcfa=_0x39b411(_0x5cd3ee),[_0x59facb,_0x54059f]=_0x2be63d(_0x1506e3(0x4d8));return _0x2b00c1(_0x1506e3(0x2b6),{'className':_0x1506e3(0x4fd),'children':[_0x4dabb7(_0x35a378,{'ariaLabel':_0x23fcfa['t'](_0x1506e3(0x2f6)),'className':_0x1506e3(0x38c),'items':[{'label':_0x23fcfa['t'](_0x1506e3(0x36b)),'panelId':_0x1506e3(0x440),'value':_0x1506e3(0x4d8)},{'label':_0x23fcfa['t'](_0x1506e3(0x4a7)),'panelId':_0x1506e3(0x225),'value':_0x1506e3(0x4aa)}],'value':_0x59facb,'variant':_0x1506e3(0x4d2),'onChange':_0x54059f}),_0x4dabb7(_0x1506e3(0x442),{'className':_0x1506e3(0x380),'children':_0x59facb===_0x1506e3(0x4d8)?_0x346e04&&_0x4dabb7(fa,{'config':_0x599bce,'runtime':_0x346e04,'tableName':_0x491911['name'],'onChange':_0x353ea2}):_0x4dabb7(ao,{'config':_0x599bce,'table':_0x491911,'onChange':_0x353ea2})})]});}function yo({tableId:_0x3d757a,unitId:_0x27e018,viewId:_0x18b6db}){const _0x1302cf=_0x2353bc;let _0x5d5ebe=_0x39b411(_0x32452d),_0x29874e=_0x39b411(_0x4074e5),_0xdfaefb=_0x39b411(_0x34ac8c),_0x4365aa=_0x39b411(_0x5cd3ee),_0x2a78b2=_0x39b411(_0x22ef82),[_0x223f75,_0x2420cc]=_0x2be63d(null),[_0x3da0c3,_0x390221]=_0x2be63d(null),_0x4af626=_0x35f949(_0x1302cf(0x4e9)+_0x325e5d(0x8)),[_0x1f6030,_0x31b599]=_0x2be63d(!0x1),_0x317b57=_0x29874e['getUnit'](_0x27e018,_0x51ec78[_0x1302cf(0x4eb)]),_0x56a108=_0x317b57==null?void 0x0:_0x317b57[_0x1302cf(0x3f5)]()['tables'][_0x3d757a],_0x350e9f=_0x56a108==null?void 0x0:_0x56a108[_0x1302cf(0x451)][_0x18b6db],_0x2ead60=bo(_0x350e9f),_0x2f58b9=_r(_0x27e018,_0x3d757a,_0x18b6db);if(_0x38e78f(()=>{const _0x587d3a=_0x1302cf;if(!_0x2ead60)return;let _0x1ed291=_0x4af626[_0x587d3a(0x38f)];return _0x2a78b2['acquireChartRuntime'](_0x1ed291,{'unitId':_0x27e018,'tableId':_0x3d757a,'viewId':_0x18b6db,'filters':[]}),()=>{const _0xb8bb17=_0x587d3a;_0x2a78b2[_0xb8bb17(0x503)](_0x27e018,_0x1ed291);};},[_0x2ead60,_0x2a78b2,_0x3d757a,_0x27e018,_0x18b6db]),_0x38e78f(()=>{const _0x14702b=_0x1302cf;if(!bo(_0x350e9f))return;let _0x3f3f70=!0x0,_0x29fded={'unitId':_0x27e018,'tableId':_0x3d757a,'viewId':_0x18b6db,'filters':[_0x350e9f[_0x14702b(0x1b3)]??null]};return _0x2a78b2[_0x14702b(0x41f)](_0x27e018,_0x4af626[_0x14702b(0x38f)],_0x29fded)['then'](_0x25c9e0=>{const _0x503da9=_0x14702b;_0x3f3f70&&_0x25c9e0&&(_0x2420cc(_0x25c9e0),_0x390221(_0x2a78b2[_0x503da9(0x33e)](_0x27e018,_0x4af626[_0x503da9(0x38f)])??null),_0x31b599(!0x1));})['catch'](_0x2e862a=>{const _0x5b9f69=_0x14702b;_0xdfaefb[_0x5b9f69(0x1b4)](_0x5b9f69(0x341),_0x2e862a),_0x3f3f70&&(_0x2420cc(null),_0x31b599(!0x0));}),()=>{_0x3f3f70=!0x1;};},[_0xdfaefb,_0x2a78b2,_0x3d757a,_0x27e018,_0x350e9f,_0x18b6db]),!_0x56a108||!bo(_0x350e9f))return null;let _0x5bb065=_0x2a78b2[_0x1302cf(0x33e)](_0x27e018,_0x4af626['current'])===_0x3da0c3?_0x3da0c3:null,_0x44cd29=_0x223f75?_0x2b00c1(_0x1302cf(0x442),{'className':_0x1302cf(0x2cd),'style':{'gridTemplateRows':_0x350e9f[_0x1302cf(0x4e8)][_0x1302cf(0x4a6)]===_0x1302cf(0x330)?_0x1302cf(0x511):_0x1302cf(0x230)},'children':[_0x350e9f[_0x1302cf(0x4e8)][_0x1302cf(0x4a6)]!==_0x1302cf(0x4bb)&&_0x5bb065&&_0x4dabb7(_0x1302cf(0x442),{'className':_0x1302cf(0x4c9),'children':_0x4dabb7(Ir,{'isRowDirection':_0x2fa6dd(_0x350e9f['config'][_0x1302cf(0x4d8)][_0x1302cf(0x485)]),'runtime':_0x5bb065})}),_0x350e9f[_0x1302cf(0x4e8)][_0x1302cf(0x4a6)]!=='chart'&&_0x4dabb7('div',{'className':_0x1302cf(0x32b),'children':_0x4dabb7(ki,{'pivot':_0x350e9f[_0x1302cf(0x4e8)][_0x1302cf(0x4aa)],'view':_0x223f75['view']})})]}):_0x4dabb7(_0x1302cf(0x442),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x1f6030?_0x4365aa['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x4365aa['t'](_0x1302cf(0x463))});return _0x2b00c1(_0x1302cf(0x442),{'className':_0x1302cf(0x4b6),'children':[_0x4dabb7(_0x1302cf(0x442),{'className':_0x1302cf(0x43e),'children':_0x44cd29}),_0x2f58b9&&_0x4dabb7(vo,{'config':_0x350e9f['config'],'runtime':_0x5bb065,'table':_0x56a108,'onChange':_0x10dc11=>{const _0x193081=_0x1302cf;_0x5d5ebe['executeCommand'](_0x303df3['id'],{'unitId':_0x27e018,'tableId':_0x3d757a,'viewId':_0x18b6db,'patch':_0x10dc11})[_0x193081(0x3d2)](_0x23df5d=>_0xdfaefb[_0x193081(0x1b4)](_0x193081(0x337),_0x23df5d));}})]});}function bo(_0x2a9da6){const _0x55f698=_0x2353bc;return(_0x2a9da6==null?void 0x0:_0x2a9da6[_0x55f698(0x393)])===_0x5ee6b5['Pivot']&&typeof _0x2a9da6[_0x55f698(0x4e8)]=='object'&&_0x2a9da6[_0x55f698(0x4e8)]!==null&&'pivot'in _0x2a9da6['config']&&_0x55f698(0x4d8)in _0x2a9da6[_0x55f698(0x4e8)]&&_0x55f698(0x4a6)in _0x2a9da6[_0x55f698(0x4e8)];}let xo=class extends _0x2e76da{constructor(_0x5c9987,_0x147162,_0x25bb36,_0x52dc46,_0x58aa3b,_0x185b7e){const _0x487ece=_0x2353bc;super(),this[_0x487ece(0x1eb)](_0x147162[_0x487ece(0x1ac)]({'type':_0x5ee6b5['Pivot'],'renderMode':_0x487ece(0x4cc),'icon':_0x3ad3c2,'component':yo,'menu':{get 'label'(){return _0x185b7e['t']('bases-dashboard-ui.pivot.name');},get 'description'(){const _0x1c4de4=_0x487ece;return _0x185b7e['t'](_0x1c4de4(0x345));},get 'defaultName'(){return _0x185b7e['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x487ece(0x1eb)](_0x5c9987['register'](So(_0x25bb36,_0x52dc46,_0x58aa3b,_0x185b7e)));}};xo=Or([Y(0x0,_0x509544),Y(0x1,_0x5eecd3),Y(0x2,_0x2a19f9(_0x5e40a3)),Y(0x3,_0x32452d),Y(0x4,_0x4c7ae7),Y(0x5,_0x2a19f9(_0x5cd3ee))],xo);function So(_0x2ae871,_0x1ff551,_0x2d214e,_0x2fb16f){const _0x285db8=_0x2353bc;return{'change$':_0x53dd21(_0x2ae871[_0x285db8(0x2a3)],_0x2d214e[_0x285db8(0x391)]),'component':Ja,get 'labels'(){const _0xd9a4f1=_0x285db8;return{'add':_0x2fb16f['t'](_0xd9a4f1(0x3ed)),'configure':_0x2ae8d2=>_0x2fb16f['t'](_0xd9a4f1(0x233),_0x2ae8d2),'delete':_0x2fb16f['t'](_0xd9a4f1(0x305)),'new':_0x2fb16f['t']('bases-dashboard-ui.dashboard.new'),'rename':_0x2fb16f['t'](_0xd9a4f1(0x259)),'search':_0x2fb16f['t'](_0xd9a4f1(0x424)),'section':_0x2fb16f['t'](_0xd9a4f1(0x1c4))};},'getItems':_0x3ca741=>{const _0x4d3812=_0x285db8;let _0x2a3f61=_0x2ae871[_0x4d3812(0x2b1)](_0x3ca741);return _0x2a3f61[_0x4d3812(0x3fe)][_0x4d3812(0x3bc)](_0x3286c5=>{const _0x4969ce=_0x4d3812;let _0x1e09e7=_0x2a3f61[_0x4969ce(0x370)][_0x3286c5];return _0x1e09e7?[{'id':_0x1e09e7['id'],'name':_0x1e09e7[_0x4969ce(0x329)],'readonly':!_0x25b5d2(_0x2d214e,_0x3ca741,_0x1e09e7['id'])}]:[];});},'create':async _0x1f388d=>{const _0x5917e4=_0x285db8;let _0x4a06f6=_0x2ae871[_0x5917e4(0x2b1)](_0x1f388d),_0x54cdcd=_0x5917e4(0x3a4)+_0x325e5d(0x8),_0x37fe44=Co(_0x4a06f6[_0x5917e4(0x3fe)][_0x5917e4(0x3bc)](_0x4d8eab=>{let _0x580a4f=_0x4a06f6['dashboards'][_0x4d8eab];return _0x580a4f?[_0x580a4f['name']]:[];}),_0x345da2=>_0x2fb16f['t'](_0x5917e4(0x3e5),String(_0x345da2)));return await _0x1ff551[_0x5917e4(0x1ff)](_0x2ef5a6['id'],{'unitId':_0x1f388d,'dashboard':{'id':_0x54cdcd,'name':_0x37fe44,'widgetOrder':[],'widgets':{}}})?_0x54cdcd:null;},'rename':async(_0x57ccff,_0x1a5693,_0x29e6d1)=>{const _0x482658=_0x285db8;let _0x4fa17c=_0x2ae871[_0x482658(0x34a)](_0x57ccff,_0x1a5693);return!!(_0x4fa17c&&await _0x1ff551['executeCommand'](_0x5cbeb4['id'],{'unitId':_0x57ccff,'dashboard':{..._0x4fa17c,'name':_0x29e6d1}}));},'remove':(_0x19274d,_0x15174d)=>_0x1ff551['executeCommand'](_0x22aa0a['id'],{'unitId':_0x19274d,'dashboardId':_0x15174d})};}function Co(_0x247619,_0x16a3b1){const _0x3eb9c7=_0x2353bc;let _0x1e420f=new Set(_0x247619),_0x2b5cab=_0x1e420f[_0x3eb9c7(0x272)]+0x1,_0x291041=_0x16a3b1(_0x2b5cab);for(;_0x1e420f[_0x3eb9c7(0x30b)](_0x291041);)_0x2b5cab+=0x1,_0x291041=_0x16a3b1(_0x2b5cab);return _0x291041;}let wo=class extends _0x52aef1{constructor(_0x500853=hr,_0x20d046,_0x3ebc94){const _0x3c5f85=_0x2353bc;super(),this['_config']=_0x500853,this[_0x3c5f85(0x2a0)]=_0x20d046,this['_configService']=_0x3ebc94;let {..._0x1f9080}=_0x1731fc({},hr,this[_0x3c5f85(0x21e)]);this[_0x3c5f85(0x447)][_0x3c5f85(0x427)](mr,_0x1f9080);}[_0x2353bc(0x2db)](){const _0x45e574=_0x2353bc;this[_0x45e574(0x2a0)]['add']([kr]),this[_0x45e574(0x2a0)][_0x45e574(0x1c1)]([Gr]),this['_injector']['add']([xo]);}[_0x2353bc(0x25b)](){const _0x3c60f4=_0x2353bc;_0x445a23(this[_0x3c60f4(0x2a0)],[[kr],[Gr],[xo]]);}};Pr(wo,_0x2353bc(0x393),_0x51ec78['UNIVER_BASE']),Pr(wo,_0x2353bc(0x405),_0x2353bc(0x264)),Pr(wo,_0x2353bc(0x4ba),fr),Pr(wo,'version',pr),wo=Or([_0x4fc5af(_0x38c17a,_0x1615ad,_0x151faa,_0x4a2c56,_0x47e249,_0x220c65),Y(0x1,_0x2a19f9(_0x5a8661)),Y(0x2,_0x5a5187)],wo);export{na as UniverBaseDashboardMobileUIPlugin,wo as UniverBaseDashboardUIPlugin};
|
|
1
|
+
const _0xbfff20=_0x5dbe;(function(_0x5b1820,_0x5afdf2){const _0x3a449a=_0x5dbe,_0x37a565=_0x5b1820();while(!![]){try{const _0x299548=parseInt(_0x3a449a(0x229))/0x1+-parseInt(_0x3a449a(0x32a))/0x2+-parseInt(_0x3a449a(0x1c6))/0x3*(parseInt(_0x3a449a(0x1dc))/0x4)+-parseInt(_0x3a449a(0x2b2))/0x5+parseInt(_0x3a449a(0x230))/0x6+parseInt(_0x3a449a(0x39c))/0x7*(parseInt(_0x3a449a(0x2f0))/0x8)+parseInt(_0x3a449a(0x1f9))/0x9*(-parseInt(_0x3a449a(0x3ce))/0xa);if(_0x299548===_0x5afdf2)break;else _0x37a565['push'](_0x37a565['shift']());}catch(_0x529867){_0x37a565['push'](_0x37a565['shift']());}}}(_0x1cf0,0x2a8c7));import{BASES_DASHBOARD_DEFAULT_ROW_HEIGHT as _0x3e9cab,BASES_DASHBOARD_GRID_COLUMNS as _0x5c9bf8,BaseChartRuntimeService as _0x441727,BaseDashboardResourceService as _0x309002,BaseDashboardWidgetType as _0x1402ed,CreateBaseDashboardCommand as _0x28a4bb,DeleteBaseDashboardCommand as _0x22a544,RemoveBaseDashboardWidgetCommand as _0x55f0a4,UniverBaseDashboardPlugin as _0xbeeff3,UpdateBaseDashboardCommand as _0x39c855,UpdateBasePivotViewCommand as _0x50437b,UpsertBaseDashboardWidgetCommand as _0x1c8540,canEditBaseDashboard as _0x120634,canEditBasePivotView as _0x19dd77,createBasePivotTable as _0x560cf4,resolveBasePivotChartRowDirection as _0x3b57e8}from'@univerjs-pro/bases-dashboard';import{ActivateBaseViewOperation as _0x24a280,BaseMobileDrawer as _0xbfe7,BaseMobileFilterOperand as _0x2a8e30,BaseMobileFilterPanel as _0x40f4ca,BaseUnitCollaborationStatus as _0x36e7c3,FormulaEditorPanel as _0x375bf1,IBaseDashboardUIExtensionRegistryService as _0x2a9f9e,IBaseViewUIRegistryService as _0x1611be,MobileFormulaEditorPanel as _0x5e5ef4,UniverBasesMobileUIPlugin as _0x31752d,UniverBasesUIPlugin as _0xfebde9,formulaToEditorFormula as _0x200012,normalizeEditorFormulaForConfig as _0x359363,toFormulaMenuTables as _0xacf6bd,toMenuFields as _0x173f22}from'@univerjs-pro/bases-ui';import{CHART_TYPE_CATALOG as _0x1fbca7,ChartAxisSection as _0x54bdb3,ChartColorField as _0x4931cb,ChartCommonDataMappingSection as _0x521472,ChartEditBlockTitle as _0x4ed5df,ChartEditPanel as _0x420eaf,ChartEditPanelSection as _0x275cd6,ChartEditPanelTab as _0x39d056,ChartEditPanelTabs as _0x242d81,ChartEditorCapability as _0x235cca,ChartEditorProvider as _0x413b19,ChartFunnelStyleSection as _0x5c3a2a,ChartGradientFillField as _0x18f4fe,ChartGridlinesAndTicksSection as _0xd55416,ChartHeatmapStyleSection as _0x1a9d64,ChartHostAdapter as _0x439e96,ChartIndicatorLineSection as _0x4e8f14,ChartLegendSection as _0x40abfd,ChartLineAndAreaSection as _0x67621e,ChartNumberFormatAtom as _0x1fdd9c,ChartParetoSeriesSection as _0xc41187,ChartPieStyleSection as _0x411c97,ChartRadarStyleSection as _0x3cdb06,ChartRelationStyleSection as _0x43b09c,ChartSectionAccordion as _0x169833,ChartSectionAccordionContent as _0x50efea,ChartSectionAccordionItem as _0x476c3e,ChartSectionAccordionTrigger as _0x3ee43e,ChartSeriesSection as _0x3fdf0f,ChartStackField as _0x14bbde,ChartStyleSection as _0x392a75,ChartThemeField as _0x2a621a,ChartThreeDSection as _0x461f63,ChartTitlesSection as _0x3a97b5,ChartTrendlineSection as _0x2d84a4,ChartTypeField as _0x44e1cd,ChartTypeSpecificDataSection as _0x27502d,ChartTypeSpecificSetupSection as _0xd07337,ChartTypeSpecificStyleSection as _0x359635,ChartUIService as _0x22cc04,ChartViewStateRegistry as _0x41a29f,ChartWaterfallSetupFields as _0x1e15dd,ChartWaterfallStyleSection as _0x321527,ChartWordCloudStyleSection as _0x34e06c,DEFAULT_CHART_AXIS_VALUES as _0x3c4ba3,DEFAULT_CHART_FUNNEL_VALUES as _0x2c5e3a,DEFAULT_CHART_HEATMAP_VALUES as _0x4f57a1,DEFAULT_CHART_INDICATOR_LINE_VALUES as _0x57cad4,DEFAULT_CHART_LEGEND_VALUES as _0x43f27b,DEFAULT_CHART_LINE_AND_AREA_VALUES as _0x1a8b1f,DEFAULT_CHART_PARETO_VALUES as _0x1aa1b1,DEFAULT_CHART_PIE_VALUES as _0x258d6f,DEFAULT_CHART_RADAR_VALUES as _0x2ec41b,DEFAULT_CHART_RELATION_VALUES as _0x4805f6,DEFAULT_CHART_SERIES_VALUES as _0x13b217,DEFAULT_CHART_STYLE_VALUES as _0x13d7eb,DEFAULT_CHART_TITLE_VALUES as _0x4abb4a,DEFAULT_CHART_TRENDLINE_VALUES as _0x72a22e,DEFAULT_CHART_WATERFALL_SETUP_VALUES as _0x2cc178,DEFAULT_CHART_WATERFALL_STYLE_VALUES as _0x436808,DEFAULT_CHART_WORD_CLOUD_VALUES as _0xfd1cc7,MobileChartEditorControls as _0x16eea4,MobileChartEditorProvider as _0x5cda0c,UniverChartMobileUIPlugin as _0x48f981,UniverChartUIPlugin as _0x136391,buildChartTypeSelectOptions as _0x5b5e1c,chartTypeSupportsCapability as _0x4c4c0b,chartTypeSupportsLineAndAreaStyle as _0x2324f4,useChartEditorChartType as _0x486f74,useChartEditorHasRightAxis as _0x3d2664}from'@univerjs-pro/chart-ui';import{UniverLicensePlugin as _0x36c2e0}from'@univerjs-pro/license';import{ShapeFormulaService as _0x5cf3f4,UniverShapeEditorPlugin as _0x3371b7,createFormulaShapeData as _0x18c256}from'@univerjs-pro/shape-editor';function _0x5dbe(_0x1bc8d8,_0x17cf69){_0x1bc8d8=_0x1bc8d8-0x158;const _0x1cf071=_0x1cf0();let _0x5dbe10=_0x1cf071[_0x1bc8d8];return _0x5dbe10;}import{BaseFieldType as _0x4fcd7c,BaseFilterConjunction as _0x4854b1,BaseFilterOperator as _0x30a5c8,BaseViewType as _0x54a718,DependentOn as _0x1957bf,Disposable as _0x2eec42,ICommandService as _0x2220df,IConfigService as _0x6de229,IImageIoService as _0x4fbe75,ILogService as _0x49fceb,IPermissionService as _0x4deb76,IUndoRedoService as _0x1daf4e,IUniverInstanceService as _0x14186a,ImageSourceType as _0x18951a,Inject as _0x38b292,Injector as _0x38337e,LocaleService as _0x2989fb,ObjectPermissionService as _0x4b64cf,Plugin as _0x14271e,RedoCommand as _0x413296,ThemeService as _0x3fdc71,UndoCommand as _0x38c4d5,UniverInstanceType as _0x37ea54,createParagraphId as _0x467708,dateKit as _0x1be5ea,generateRandomId as _0xd28735,merge as _0x2004cb,numfmt as _0x4bc3f5,touchDependencies as _0x5b9752}from'@univerjs/core';import{UniverDocsUIPlugin as _0xc91b76}from'@univerjs/docs-ui';import{ArrowDownIcon as _0x55a2db,ArrowUpIcon as _0x54c046,AscendingIcon as _0x5de895,CalendarIcon as _0x23c2ab,ChartIcon as _0x396df3,CloseIcon as _0x33d94a,DeleteIcon as _0x48daea,DescendingIcon as _0xcbb196,ExpandIcon as _0x275a4b,FilterIcon as _0xad9ba4,GripVerticalIcon as _0x4f0f93,IncreaseIcon as _0x34be53,MoreDownIcon as _0xacb52a,MoreHorizontalIcon as _0x122b7c,NumberIcon as _0x45f616,PenIcon as _0xddf888,PivotTableIcon as _0x25ef71,ProtectIcon as _0x2ff091,RedoIcon as _0x421b18,SearchIcon as _0x302bc4,TextIcon as _0x383758,UndoIcon as _0x5d8a74}from'@univerjs/icons';import{combineLatest as _0x2dd9ec,map as _0x3fca8e,merge as _0x440773,skip as _0x12e509}from'rxjs';import{SetBasePermissionCommand as _0x501d41,getBaseDashboardPermissionObjectId as _0x3f3aa0}from'@univerjs-pro/bases';import{IAttachmentIoService as _0x3107a8}from'@univerjs-pro/collaboration-client';import{ShapeFillEnum as _0x2ed70e,ShapeLineTypeEnum as _0x48222a,ShapeTypeEnum as _0xed2d79}from'@univerjs-pro/engine-shape';import{Button as _0x6d25a2,Checkbox as _0x1eb8df,DatePicker as _0x406bb7,Dialog as _0x178b21,DropdownMenu as _0x440082,Input as _0x1b54d7,InputNumber as _0x5a3ae3,MobileDialog as _0x2c4746,MobileDropdownMenu as _0x15dcec,MobileSelect as _0x3cb16e,MultipleSelect as _0x5cd170,Segmented as _0x4fe720,Select as _0x219a49,Textarea as _0x435e56,Tooltip as _0x501781,borderClassName as _0x14cf31,clsx as _0x14b647,scrollbarClassName as _0x439165}from'@univerjs/design';import{UnitObject as _0x26ad9b}from'@univerjs/protocol';import{ILayoutService as _0x3927ed,ObjectPermissionButton as _0xad9b28,openObjectPermissionDialog as _0x7236fe,useDependency as _0x29f087,useObservable as _0x39908a}from'@univerjs/ui';import{useCallback as _0xdcfb42,useEffect as _0x436796,useMemo as _0x548c0f,useRef as _0x2861da,useState as _0x34e679}from'react';import{Fragment as _0x52e8d3,jsx as _0x1c53e9,jsxs as _0x1108cb}from'react/jsx-runtime';import{CHART_DATA_UPDATE_ANIMATION_DURATION as _0x5135e6,ChartRenderMode as _0x2fe426,ChartThemeService as _0x384907,ChartTypeBits as _0x217c21,ChartWaterfallStyleTarget as _0x17b66a,IChartRenderModelManagerService as _0x4a688d,RTLChartStyle as _0x40bf0b,chartBitsUtils as _0x1094d9,chartTypeCanUseTrendLine as _0x23f1e4,resolveChartRuntimeStyle as _0x21eccd,resolveDefaultChartHostFrameStyle as _0x1fcd93,toChartModelUpdate as _0x3aa652}from'@univerjs-pro/engine-chart';import{createPortal as _0x3ae99d}from'react-dom';import{PivotCellStyleTypeEnum as _0x4b5125,PivotDataFieldDataTypeEnum as _0x48a00c,PivotDataFieldSortOperatorEnum as _0xaa402b,PivotFilterTypeEnum as _0x5a1647,PivotLayoutTypeEnum as _0x66aa38,PivotSubtotalPositionEnum as _0x571e80,PivotSubtotalTypeEnum as _0x4ad10e,PivotTableFiledAreaEnum as _0x1126e4,PivotTableValuePositionEnum as _0xe5d4e5,isErrorValue as _0xfe435,isPrefixValue as _0x1a85fe}from'@univerjs-pro/engine-pivot';var pr=_0xbfff20(0x188),mr=_0xbfff20(0x43e);const hr='bases-dashboard-ui.config',gr={};function _r(_0x3c8b96,_0x55526d){const _0x3134c3=_0xbfff20;let _0x38c2f5=_0x29f087(_0x4deb76),_0x7e2a98=_0x120634(_0x38c2f5,_0x3c8b96,_0x55526d);return _0x39908a(()=>_0x38c2f5[_0x3134c3(0x179)][_0x3134c3(0x472)](_0x3fca8e(()=>_0x120634(_0x38c2f5,_0x3c8b96,_0x55526d))),_0x7e2a98,!0x1,[_0x55526d,_0x38c2f5,_0x3c8b96]);}function vr(_0x2303df,_0x397cf2,_0xe65f33){const _0x3ed6d6=_0xbfff20;let _0x5c06e9=_0x29f087(_0x4deb76),_0x36d55b=_0x19dd77(_0x5c06e9,_0x2303df,_0x397cf2,_0xe65f33);return _0x39908a(()=>_0x5c06e9['permissionPointUpdate$'][_0x3ed6d6(0x472)](_0x3fca8e(()=>_0x19dd77(_0x5c06e9,_0x2303df,_0x397cf2,_0xe65f33))),_0x36d55b,!0x1,[_0x5c06e9,_0x397cf2,_0x2303df,_0xe65f33]);}function yr(_0x3cca68,_0x5d72fb=_0xbfff20(0x2b8)){const _0x71e6ed=_0xbfff20;return{'backgroundImage':_0x71e6ed(0x20f)+JSON[_0x71e6ed(0x3e1)](_0x3cca68)+')','backgroundPosition':_0x5d72fb===_0x71e6ed(0x33c)?_0x71e6ed(0x1a9):_0x71e6ed(0x34f),'backgroundRepeat':_0x5d72fb==='repeat'?_0x71e6ed(0x33c):'no-repeat','backgroundSize':_0x5d72fb===_0x71e6ed(0x2b8)?_0x71e6ed(0x2b8):_0x71e6ed(0x2fd)};}const br={'alignment':_0xbfff20(0x297),'currency':'USD','decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':'auto','numberFormat':_0xbfff20(0x3b8)},xr={'CNY':'¥','EUR':'€','USD':'$'};function Sr(_0x565867){const _0x350c7d=_0xbfff20;var _0x4d4280;let _0x3f8985=Er(((_0x4d4280=_0x565867[_0x350c7d(0x18a)][_0x350c7d(0x226)])==null||(_0x4d4280=_0x4d4280['numberFormat'])==null?void 0x0:_0x4d4280[_0x350c7d(0x18b)])??'');return{...br,..._0x3f8985,..._0x565867[_0x350c7d(0x31e)]};}function Cr(_0x1f7427,_0x1e9c5f){const _0x5ed13b=_0xbfff20;let _0xec262e={..._0x1f7427[_0x5ed13b(0x31e)],..._0x1e9c5f},_0x324536=Sr({..._0x1f7427,'appearance':_0xec262e}),_0x52b8d8=_0x1f7427[_0x5ed13b(0x18a)]['formulaBinding']??{'formula':''};return{..._0x1f7427,'appearance':_0xec262e,'shapeData':{..._0x1f7427[_0x5ed13b(0x18a)],'formulaBinding':{..._0x52b8d8,'numberFormat':{'pattern':wr(_0x324536[_0x5ed13b(0x4a5)],_0x324536[_0x5ed13b(0x372)],_0x324536[_0x5ed13b(0x33e)])}}}};}function wr(_0x121837,_0x1bb12d,_0x24d2ab){const _0x586ed1=_0xbfff20;let _0x46ce6e=Math[_0x586ed1(0x43f)](0x0,Math['min'](0x8,Math['round'](_0x1bb12d))),_0xc4bb10=_0x46ce6e?'.'+'0'['repeat'](_0x46ce6e):'';switch(_0x121837){case _0x586ed1(0x2f5):return'0'+_0xc4bb10;case _0x586ed1(0x28d):return'0'+_0xc4bb10+'%';case _0x586ed1(0x33e):return(xr[_0x24d2ab]??_0x24d2ab)+_0x586ed1(0x1a4)+_0xc4bb10;case _0x586ed1(0x2ce):return _0x586ed1(0x1a4)+_0xc4bb10;case _0x586ed1(0x3eb):case _0x586ed1(0x3b8):return _0x586ed1(0x44a);}}function Tr(_0x576e08,_0x3b937e,_0x45c2b9){const _0x2de0b4=_0xbfff20;return _0x45c2b9[_0x2de0b4(0x4a5)]!==_0x2de0b4(0x3eb)||typeof _0x3b937e!=_0x2de0b4(0x2f5)||!Number['isFinite'](_0x3b937e)?_0x576e08:new Intl[(_0x2de0b4(0x2dc))](void 0x0,{'notation':_0x2de0b4(0x3eb),'minimumFractionDigits':_0x45c2b9[_0x2de0b4(0x372)]??0x0,'maximumFractionDigits':_0x45c2b9[_0x2de0b4(0x372)]??0x0})[_0x2de0b4(0x1ea)](_0x3b937e);}function Er(_0x20a969){const _0x357c0a=_0xbfff20;var _0x478141,_0x36bcee;if(!_0x20a969||_0x20a969===_0x357c0a(0x44a))return{};let _0x2e09a7=_0x20a969[_0x357c0a(0x2cd)](/\.([0#]+)/),_0x360f69=(_0x2e09a7==null||(_0x478141=_0x2e09a7[0x1])==null?void 0x0:_0x478141[_0x357c0a(0x2df)])??0x0;if(_0x20a969[_0x357c0a(0x3d0)]('%'))return{'decimalPlaces':_0x360f69,'numberFormat':_0x357c0a(0x28d)};let _0x45c538=(_0x36bcee=Object[_0x357c0a(0x1c1)](xr)[_0x357c0a(0x1ac)](([,_0x1f0dc2])=>_0x20a969[_0x357c0a(0x3d0)](_0x1f0dc2)))==null?void 0x0:_0x36bcee[0x0];return _0x45c538?{'currency':_0x45c538,'decimalPlaces':_0x360f69,'numberFormat':'currency'}:{'decimalPlaces':_0x360f69,'numberFormat':_0x20a969[_0x357c0a(0x3d0)](',')?_0x357c0a(0x2ce):_0x357c0a(0x2f5)};}const Dr={'center':_0xbfff20(0x34f),'left':_0xbfff20(0x407),'right':_0xbfff20(0x489)};function Or({dashboardId:_0x4f5ef8,unitId:_0x1f23c0,widget:_0x5ee796}){const _0x3c86f5=_0xbfff20;var _0x217dd3,_0x1f29e3,_0x1aeb9f,_0x37bc4f,_0x48ba1a,_0x228684,_0x4cdeb4,_0x6d7cbe,_0x1f2da7;let _0x5cc3ee=_0x29f087(_0x5cf3f4),_0x3dc9bd=_0x29f087(_0x4fbe75),_0x59e4eb=_0x29f087(_0x2989fb),_0x20043b=_0x548c0f(()=>({'hostType':_0x37ea54[_0x3c86f5(0x2e2)],'unitId':_0x1f23c0,'subUnitId':_0x4f5ef8,'shapeId':_0x5ee796['id']}),[_0x4f5ef8,_0x1f23c0,_0x5ee796['id']]),[_0x39bc01,_0x4998fb]=_0x34e679(()=>_0x5cc3ee[_0x3c86f5(0x1ae)](_0x20043b)),[_0x1af4cc,_0x2ae5be]=_0x34e679(()=>{const _0x408f7a=_0x3c86f5;var _0x497a7d;return(_0x497a7d=_0x5cc3ee[_0x408f7a(0x29b)](_0x20043b))==null?void 0x0:_0x497a7d[_0x408f7a(0x1b5)];}),[_0x3ba593,_0x19a062]=_0x34e679(),_0x5cabfb=_0x2861da(null),_0x5e6ee6=_0x2861da(null),_0x547f25=Sr(_0x5ee796);_0x436796(()=>{const _0x35b112=_0x3c86f5;let _0x4dbfbe=_0x5cc3ee['presentationChanged$'][_0x35b112(0x2d5)](_0x25d5d0=>{const _0x1f6740=_0x35b112;_0x25d5d0[_0x1f6740(0x289)]===_0x1f23c0&&_0x25d5d0[_0x1f6740(0x424)]===_0x4f5ef8&&_0x25d5d0['shapeId']===_0x5ee796['id']&&(_0x4998fb(_0x25d5d0['presentation']),_0x2ae5be(_0x25d5d0[_0x1f6740(0x324)][_0x1f6740(0x1b5)]));});return()=>_0x4dbfbe['unsubscribe']();},[_0x4f5ef8,_0x5cc3ee,_0x20043b,_0x1f23c0,_0x5ee796['id']]),_0x436796(()=>{const _0x52212e=_0x3c86f5;let _0x2ff2de=_0x547f25['backgroundImage'];if(!_0x2ff2de||_0x2ff2de[_0x52212e(0x18c)]!==_0x18951a[_0x52212e(0x202)])return;let _0x8a0296=_0x3dc9bd[_0x52212e(0x1fa)](_0x2ff2de[_0x52212e(0x2ad)],_0x2ff2de['sourceType']);if(_0x8a0296!=null&&_0x8a0296[_0x52212e(0x175)])return;let _0x582464=!0x0;return _0x3dc9bd[_0x52212e(0x3a4)](_0x2ff2de['source'])['then'](_0x4260a6=>{_0x582464&&_0x19a062({'source':_0x2ff2de['source'],'value':_0x4260a6});})['catch'](()=>void 0x0),()=>{_0x582464=!0x1;};},[_0x547f25[_0x3c86f5(0x345)],_0x3dc9bd]);let _0x2ede9c=((_0x217dd3=_0x547f25[_0x3c86f5(0x345)])==null?void 0x0:_0x217dd3[_0x3c86f5(0x18c)])===_0x18951a[_0x3c86f5(0x202)]?((_0x1f29e3=_0x3dc9bd['getImageSourceCache'](_0x547f25[_0x3c86f5(0x345)][_0x3c86f5(0x2ad)],_0x547f25[_0x3c86f5(0x345)][_0x3c86f5(0x18c)]))==null?void 0x0:_0x1f29e3['src'])??((_0x3ba593==null?void 0x0:_0x3ba593['source'])===_0x547f25[_0x3c86f5(0x345)][_0x3c86f5(0x2ad)]?_0x3ba593[_0x3c86f5(0x1b5)]:''):((_0x1aeb9f=_0x547f25[_0x3c86f5(0x345)])==null?void 0x0:_0x1aeb9f['source'])??'',_0x4f5bc5=_0x5ee796[_0x3c86f5(0x18a)][_0x3c86f5(0x1a7)],_0x42e43a=_0x4f5bc5&&_0x3c86f5(0x1a3)in _0x4f5bc5?(_0x37bc4f=_0x4f5bc5['dataModel'])==null?void 0x0:_0x37bc4f['doc']:void 0x0,_0x5d71d2=Tr((_0x39bc01==null?void 0x0:_0x39bc01['text'])??'',_0x1af4cc,_0x547f25),_0x47029f=_0x5ee796[_0x3c86f5(0x18a)][_0x3c86f5(0x467)],_0x58f84b=_0x5ee796[_0x3c86f5(0x18a)][_0x3c86f5(0x420)],_0x249def=_0x42e43a==null||(_0x48ba1a=_0x42e43a[_0x3c86f5(0x3b6)])==null?void 0x0:_0x48ba1a[_0x3c86f5(0x38b)],_0x408a81=_0x5ee796[_0x3c86f5(0x429)]??_0x5ee796['title']??'';return _0x436796(()=>{const _0x4a77e2=_0x3c86f5;let _0x4406e6=_0x5cabfb[_0x4a77e2(0x49d)],_0x7ec7fb=_0x5e6ee6[_0x4a77e2(0x49d)];if(!_0x4406e6||!_0x7ec7fb)return;let _0x2e5507=()=>{const _0xad9c41=_0x4a77e2;if(_0x547f25[_0xad9c41(0x1ab)]===_0xad9c41(0x22d)||!_0x4406e6[_0xad9c41(0x3c1)]||!_0x4406e6[_0xad9c41(0x2d6)]){_0x7ec7fb[_0xad9c41(0x2c8)][_0xad9c41(0x320)]=_0x547f25[_0xad9c41(0x320)]+'px';return;}let _0x1ae6b8=0x1,_0x4fa67a=0x48,_0x52d58b=_0x1ae6b8;for(;_0x1ae6b8<=_0x4fa67a;){let _0xc1324=Math['floor']((_0x1ae6b8+_0x4fa67a)/0x2);_0x7ec7fb[_0xad9c41(0x2c8)][_0xad9c41(0x320)]=_0xc1324+'px',_0x7ec7fb[_0xad9c41(0x302)]<=_0x4406e6['clientWidth']&&_0x7ec7fb['scrollHeight']<=_0x4406e6[_0xad9c41(0x2d6)]?(_0x52d58b=_0xc1324,_0x1ae6b8=_0xc1324+0x1):_0x4fa67a=_0xc1324-0x1;}_0x7ec7fb[_0xad9c41(0x2c8)][_0xad9c41(0x320)]=_0x52d58b+'px';};if(_0x2e5507(),typeof ResizeObserver>'u')return;let _0xd62ac0=new ResizeObserver(_0x2e5507);return _0xd62ac0[_0x4a77e2(0x42d)](_0x4406e6),()=>_0xd62ac0[_0x4a77e2(0x19f)]();},[_0x547f25[_0x3c86f5(0x320)],_0x547f25['fontSizeMode'],_0x5d71d2]),_0x1108cb(_0x3c86f5(0x1e8),{'data-dashboard-formula-shape':_0x5ee796['id'],'className':_0x3c86f5(0x212),'style':{'backgroundColor':((_0x228684=_0x5ee796[_0x3c86f5(0x31e)])==null?void 0x0:_0x228684[_0x3c86f5(0x33d)])??((_0x47029f==null?void 0x0:_0x47029f['fillType'])===_0x2ed70e['SolidFill']?_0x47029f['color']??void 0x0:void 0x0),'border':(_0x58f84b==null?void 0x0:_0x58f84b['lineStrokeType'])===_0x48222a[_0x3c86f5(0x3f7)]?(_0x58f84b[_0x3c86f5(0x4ac)]??0x1)+_0x3c86f5(0x2f6)+(_0x58f84b[_0x3c86f5(0x1cd)]??_0x3c86f5(0x363)):void 0x0,'borderRadius':_0x5ee796[_0x3c86f5(0x28c)]===_0xed2d79[_0x3c86f5(0x370)]?0xc:void 0x0,'color':((_0x4cdeb4=_0x5ee796['appearance'])==null?void 0x0:_0x4cdeb4[_0x3c86f5(0x42f)])??(_0x39bc01==null?void 0x0:_0x39bc01[_0x3c86f5(0x1cd)])??(_0x249def==null||(_0x6d7cbe=_0x249def['cl'])==null?void 0x0:_0x6d7cbe[_0x3c86f5(0x263)])??void 0x0,'fontWeight':_0x249def!=null&&_0x249def['bl']?0x258:void 0x0,'textAlign':_0x547f25[_0x3c86f5(0x2c1)]},'children':[_0x2ede9c&&_0x1c53e9(_0x3c86f5(0x15e),{'src':_0x2ede9c,'alt':'','aria-hidden':'true','className':_0x3c86f5(0x369),'style':{'objectFit':((_0x1f2da7=_0x547f25[_0x3c86f5(0x345)])==null?void 0x0:_0x1f2da7[_0x3c86f5(0x290)])??_0x3c86f5(0x2b8)}}),_0x1108cb(_0x3c86f5(0x1e8),{'className':_0x3c86f5(0x259),'children':[_0x408a81&&_0x1c53e9(_0x3c86f5(0x1e8),{'data-dashboard-formula-description':!0x0,'className':'univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','children':_0x408a81}),_0x1c53e9(_0x3c86f5(0x1e8),{'ref':_0x5cabfb,'data-dashboard-formula-value':!0x0,'aria-label':_0x408a81||_0x59e4eb['t'](_0x3c86f5(0x47b)),'className':_0x3c86f5(0x488),'style':{'justifyContent':Dr[_0x547f25[_0x3c86f5(0x2c1)]]},'children':_0x1c53e9('span',{'ref':_0x5e6ee6,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x547f25[_0x3c86f5(0x1ab)],'className':_0x3c86f5(0x498),'children':_0x5d71d2})})]})]});}function Y(_0x440931,_0x1911b6){return function(_0x58a2bd,_0x391246){_0x1911b6(_0x58a2bd,_0x391246,_0x440931);};}function kr(_0x1bb25b,_0x209bd4,_0x5a2f18,_0x240a2b){const _0x300a47=_0xbfff20;var _0x4c5bed=arguments[_0x300a47(0x2df)],_0x16a5d4=_0x4c5bed<0x3?_0x209bd4:_0x240a2b===null?_0x240a2b=Object[_0x300a47(0x245)](_0x209bd4,_0x5a2f18):_0x240a2b,_0xc14544;if(typeof Reflect==_0x300a47(0x235)&&typeof Reflect[_0x300a47(0x1e7)]==_0x300a47(0x3c7))_0x16a5d4=Reflect[_0x300a47(0x1e7)](_0x1bb25b,_0x209bd4,_0x5a2f18,_0x240a2b);else{for(var _0x10e7d2=_0x1bb25b['length']-0x1;_0x10e7d2>=0x0;_0x10e7d2--)(_0xc14544=_0x1bb25b[_0x10e7d2])&&(_0x16a5d4=(_0x4c5bed<0x3?_0xc14544(_0x16a5d4):_0x4c5bed>0x3?_0xc14544(_0x209bd4,_0x5a2f18,_0x16a5d4):_0xc14544(_0x209bd4,_0x5a2f18))||_0x16a5d4);}return _0x4c5bed>0x3&&_0x16a5d4&&Object[_0x300a47(0x49f)](_0x209bd4,_0x5a2f18,_0x16a5d4),_0x16a5d4;}let Ar=class{constructor(_0x4382e3,_0x269b10,_0x36d762){const _0x51a6b8=_0xbfff20;this['_localeService']=_0x4382e3,this[_0x51a6b8(0x27b)]=_0x269b10,this[_0x51a6b8(0x2b7)]=_0x36d762;}[_0xbfff20(0x1f1)](){const _0x124286=_0xbfff20;return this['_renderModelManager']['createChartInstance'](_0x2fe426[_0x124286(0x422)],this[_0x124286(0x473)]());}[_0xbfff20(0x47d)](_0x15527d){const _0x5ecc4c=_0xbfff20;let _0x33e7c3=_0x15527d[_0x5ecc4c(0x1ee)]['config'];if(!_0x33e7c3)throw Error(_0x5ecc4c(0x3be)+_0x15527d[_0x5ecc4c(0x371)]+_0x5ecc4c(0x3bc));let _0x174046=this[_0x5ecc4c(0x1d5)][_0x5ecc4c(0x484)]();return{'config':_0x33e7c3,'style':_0x21eccd({..._0x15527d['model'][_0x5ecc4c(0x2c8)],'runtime':_0x15527d[_0x5ecc4c(0x1ee)][_0x5ecc4c(0x2dd)](_0x174046),'direction':_0x174046},_0x33e7c3[_0x5ecc4c(0x427)])};}['_createContext'](){const _0xa39270=_0xbfff20;return{'resolveHostStyle':({style:_0xf25289})=>_0x1fcd93({'style':_0xf25289,'getRenderColor':_0x860c04=>this[_0xa39270(0x27b)][_0xa39270(0x47f)](_0x860c04)}),'resolveRenderBackgroundColor':({hostStyle:_0x257ea4})=>_0x257ea4['fill']};}};Ar=kr([Y(0x0,_0x38b292(_0x2989fb)),Y(0x1,_0x38b292(_0x384907)),Y(0x2,_0x4a688d)],Ar);function jr(_0x44e981,_0x51402f){const _0x1d0f3a=_0xbfff20;var _0x5d56c3;_0x44e981['style'][_0x1d0f3a(0x33d)]=_0x51402f['fill']??'transparent',_0x44e981[_0x1d0f3a(0x2c8)]['border']=(_0x5d56c3=_0x51402f[_0x1d0f3a(0x426)])!=null&&_0x5d56c3[_0x1d0f3a(0x1cd)]&&_0x51402f[_0x1d0f3a(0x426)][_0x1d0f3a(0x4ac)]?_0x51402f[_0x1d0f3a(0x426)][_0x1d0f3a(0x4ac)]+'px\x20solid\x20'+_0x51402f[_0x1d0f3a(0x426)][_0x1d0f3a(0x1cd)]:'',_0x44e981['style'][_0x1d0f3a(0x27d)]=_0x51402f[_0x1d0f3a(0x438)]?_0x51402f['radius']+'px':'',_0x44e981[_0x1d0f3a(0x2c8)][_0x1d0f3a(0x2e5)]=_0x1d0f3a(0x478),_0x44e981['style'][_0x1d0f3a(0x4aa)]=_0x1d0f3a(0x333);}function Mr(_0x3eaa09){'@babel/helpers - typeof';const _0xa44de6=_0xbfff20;return Mr=typeof Symbol=='function'&&typeof Symbol[_0xa44de6(0x1da)]==_0xa44de6(0x40c)?function(_0x486df9){return typeof _0x486df9;}:function(_0x303d80){const _0x34300c=_0xa44de6;return _0x303d80&&typeof Symbol==_0x34300c(0x3c7)&&_0x303d80[_0x34300c(0x2ee)]===Symbol&&_0x303d80!==Symbol['prototype']?'symbol':typeof _0x303d80;},Mr(_0x3eaa09);}function Nr(_0x509b42,_0x1530af){const _0x424cf0=_0xbfff20;if(Mr(_0x509b42)!=_0x424cf0(0x235)||!_0x509b42)return _0x509b42;var _0x25d03e=_0x509b42[Symbol[_0x424cf0(0x352)]];if(_0x25d03e!==void 0x0){var _0x485d3d=_0x25d03e[_0x424cf0(0x1be)](_0x509b42,_0x1530af||_0x424cf0(0x30e));if(Mr(_0x485d3d)!=_0x424cf0(0x235))return _0x485d3d;throw TypeError(_0x424cf0(0x29f));}return(_0x1530af==='string'?String:Number)(_0x509b42);}function Pr(_0xc0d0a1){const _0x20432e=_0xbfff20;var _0x176845=Nr(_0xc0d0a1,_0x20432e(0x3e0));return Mr(_0x176845)=='symbol'?_0x176845:_0x176845+'';}function Fr(_0x3395e6,_0x7b7c26,_0x5eb78d){const _0x478797=_0xbfff20;return(_0x7b7c26=Pr(_0x7b7c26))in _0x3395e6?Object[_0x478797(0x49f)](_0x3395e6,_0x7b7c26,{'value':_0x5eb78d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3395e6[_0x7b7c26]=_0x5eb78d,_0x3395e6;}var Ir=class extends _0x2eec42{constructor(_0x2ada83,_0x42d469){const _0x2a0698=_0xbfff20;super(),this[_0x2a0698(0x371)]=_0x2ada83,this[_0x2a0698(0x2ba)]=_0x42d469,Fr(this,_0x2a0698(0x3fd),_0x2fe426[_0x2a0698(0x422)]);}['getRect'](){const _0x5e5ca3=_0xbfff20;return{'width':Math['max'](0x1,this[_0x5e5ca3(0x2ba)][_0x5e5ca3(0x3c1)]),'height':Math[_0x5e5ca3(0x43f)](0x1,this['_element']['clientHeight'])};}[_0xbfff20(0x382)](_0x319a75){const _0x28f641=_0xbfff20;jr(this[_0x28f641(0x2ba)],_0x319a75);}async['ensureMount'](){return this['_element'];}[_0xbfff20(0x482)](){const _0xcefca=_0xbfff20;return this[_0xcefca(0x2ba)][_0xcefca(0x25b)];}[_0xbfff20(0x3e3)](){}['markReady'](){}[_0xbfff20(0x423)](){}};function Lr({isRowDirection:_0x49fe3d,runtime:_0x578e6b}){const _0x4902c0=_0xbfff20;let _0x1b4598=_0x2861da(null),_0x336474=_0x29f087(_0x2989fb),_0x1550ed=_0x29f087(_0x49fceb),_0x16d313=_0x29f087(Ar),_0x417db8=_0x29f087(_0x3fdc71);return _0x436796(()=>{const _0x1ef637=_0x5dbe;let _0x339500=_0x1b4598[_0x1ef637(0x49d)];if(!_0x339500)return;_0x339500[_0x1ef637(0x2c7)]();let {chartId:_0x3908ef,model:_0x3ff57a}=_0x578e6b,_0x19eeba=_0x3ff57a[_0x1ef637(0x21e)],_0x2ffa08=new Ir(_0x3908ef,_0x339500),_0x4662f6=_0x16d313['createDomChartInstance'](),_0x3224fe=!0x1,_0x464e6e=null,_0x2a1f7d=null,_0x31f657=null,_0x5856d6=null,_0x4a43e6=!0x1,_0x5c0909=!0x1,_0xc9f161=Promise[_0x1ef637(0x393)]();_0x4662f6[_0x1ef637(0x282)](_0x2ffa08);let _0x50c981=()=>{const _0x3876a9=_0x1ef637;var _0x4f88f9,_0x19ad60,_0x318f59,_0x3b1a8e;if(document[_0x3876a9(0x317)]===_0x3876a9(0x478)||(_0x4f88f9=(_0x19ad60=window)[_0x3876a9(0x2f7)])!=null&&(_0x4f88f9=_0x4f88f9['call'](_0x19ad60,'(prefers-reduced-motion:\x20reduce)'))!=null&&_0x4f88f9[_0x3876a9(0x17b)]||(_0x318f59=(_0x3b1a8e=window)[_0x3876a9(0x2f7)])!=null&&(_0x318f59=_0x318f59[_0x3876a9(0x1be)](_0x3b1a8e,_0x3876a9(0x3d9)))!=null&&_0x318f59[_0x3876a9(0x17b)]||!_0x339500[_0x3876a9(0x25b)])return!0x1;let _0x1dffbd=_0x339500[_0x3876a9(0x260)]();return _0x1dffbd['width']>0x0&&_0x1dffbd['height']>0x0&&_0x1dffbd[_0x3876a9(0x2e0)]>0x0&&_0x1dffbd[_0x3876a9(0x2a2)]>0x0&&_0x1dffbd[_0x3876a9(0x297)]<window[_0x3876a9(0x379)]&&_0x1dffbd[_0x3876a9(0x3e6)]<window[_0x3876a9(0x200)];},_0x3d1ae3=()=>{const _0x250c1e=_0x1ef637;_0x2a1f7d!==null&&clearTimeout(_0x2a1f7d),_0x339500[_0x250c1e(0x214)][_0x250c1e(0x36c)]='true',_0x339500['dataset'][_0x250c1e(0x394)]=String(_0x5135e6),_0x2a1f7d=setTimeout(()=>{const _0x281f35=_0x250c1e;_0x2a1f7d=null,delete _0x339500['dataset'][_0x281f35(0x36c)],delete _0x339500[_0x281f35(0x214)][_0x281f35(0x394)];},_0x5135e6);},_0x1de64b=_0x44da7e=>{const _0x1736d7=_0x1ef637;if(_0x3224fe)return;if(_0x464e6e!==null&&(clearTimeout(_0x464e6e),_0x464e6e=null),!_0x3ff57a[_0x1736d7(0x167)]){_0x5c0909||=_0x44da7e;return;}_0x339500[_0x1736d7(0x214)][_0x1736d7(0x288)]=String(_0x3ff57a[_0x1736d7(0x288)]),_0x339500[_0x1736d7(0x214)][_0x1736d7(0x17e)]=String(_0x49fe3d);let _0x365858=_0x16d313['createRenderInput'](_0x578e6b),_0x23ca58={'chartId':_0x3908ef,'config':_0x365858[_0x1736d7(0x167)],'style':_0x365858['style']};_0xc9f161=_0xc9f161[_0x1736d7(0x271)](async()=>{const _0x194588=_0x1736d7;_0x3224fe||(_0x339500['dataset'][_0x194588(0x3fe)]=String(Number(_0x339500[_0x194588(0x214)][_0x194588(0x3fe)]??0x0)+0x1),_0x44da7e&&_0x31f657&&_0x4662f6['renderTransition']&&_0x50c981()?(await _0x4662f6['renderTransition'](_0x31f657,_0x23ca58,{'duration':_0x5135e6}),_0x3224fe||_0x3d1ae3()):await _0x4662f6[_0x194588(0x165)](_0x23ca58),_0x31f657=_0x23ca58);})[_0x1736d7(0x433)](_0x531eac=>_0x1550ed[_0x1736d7(0x1a6)]('[BasePivotChart]\x20Failed\x20to\x20render\x20chart.',_0x531eac));},_0x65f83=(_0x1b4454=!0x1)=>{_0x5c0909||=_0x1b4454,!_0x4a43e6&&(_0x4a43e6=!0x0,queueMicrotask(()=>{_0x4a43e6=!0x1;let _0x11574b=_0x5c0909;_0x5c0909=!0x1,_0x1de64b(_0x11574b);}));},_0x1f0fed=[_0x19eeba[_0x1ef637(0x2bd)][_0x1ef637(0x2d5)](_0x4e76e1=>{let _0x56fe3e=JSON['stringify'](_0x4e76e1);_0x5856d6!=null&&_0x5856d6!==_0x56fe3e&&_0x65f83(!0x0),_0x5856d6=_0x56fe3e;}),_0x3ff57a[_0x1ef637(0x29a)][_0x1ef637(0x2d5)](_0x4fb2b8=>{_0x4fb2b8&&_0x65f83();}),_0x3ff57a[_0x1ef637(0x15d)][_0x1ef637(0x2d5)](()=>_0x65f83()),_0x336474[_0x1ef637(0x378)][_0x1ef637(0x2d5)](()=>_0x65f83()),_0x2dd9ec([_0x417db8[_0x1ef637(0x1d1)],_0x417db8[_0x1ef637(0x419)]])['pipe'](_0x12e509(0x1))[_0x1ef637(0x2d5)](()=>_0x65f83())],_0x158bb8=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x14c41b=_0x1ef637;_0x3224fe||(_0x2ffa08[_0x14c41b(0x3e3)](),_0x464e6e!==null&&clearTimeout(_0x464e6e),_0x464e6e=setTimeout(()=>_0x65f83(),0x64));});return _0x158bb8==null||_0x158bb8[_0x1ef637(0x42d)](_0x339500),()=>{const _0x4a93af=_0x1ef637;_0x3224fe=!0x0,_0x464e6e!==null&&clearTimeout(_0x464e6e),_0x2a1f7d!==null&&clearTimeout(_0x2a1f7d),delete _0x339500[_0x4a93af(0x214)][_0x4a93af(0x36c)],delete _0x339500['dataset'][_0x4a93af(0x394)],_0x158bb8==null||_0x158bb8[_0x4a93af(0x19f)](),_0x1f0fed[_0x4a93af(0x4a2)](_0x13fc3c=>_0x13fc3c[_0x4a93af(0x3f4)]()),_0x4662f6[_0x4a93af(0x19b)](),_0x2ffa08[_0x4a93af(0x19b)](),_0x339500[_0x4a93af(0x2c7)]();};},[_0x49fe3d,_0x336474,_0x1550ed,_0x16d313,_0x578e6b,_0x417db8]),_0x1c53e9(_0x4902c0(0x1e8),{'ref':_0x1b4598,'data-u-comp':_0x4902c0(0x2af),'className':'univer-absolute\x20univer-inset-0\x20univer-overflow-hidden'});}function Rr({filters:_0x169fb9,onRuntimeChange:_0x27ad12,unitId:_0x5b7c72,widget:_0x1e4e42}){const _0x38bd70=_0xbfff20;let _0x9bcf7=_0x29f087(_0x14186a),_0x2364b0=_0x29f087(_0x2989fb),_0x573fd2=_0x29f087(_0x49fceb),_0xbe7bfa=_0x29f087(_0x441727),[_0x27256b,_0x38f6c1]=_0x34e679(null),[_0x529e41,_0x3ba8ef]=_0x34e679(!0x1),[_0x5c7046,_0x10f41b]=_0x34e679(null),_0xea1b71=_0x2861da(_0x38bd70(0x210)+_0xd28735(0x8)),_0x3684e1=_0x9bcf7[_0x38bd70(0x454)](_0x5b7c72,_0x37ea54['UNIVER_BASE']),_0x58a9ba=_0x3684e1==null?void 0x0:_0x3684e1[_0x38bd70(0x373)]()[_0x38bd70(0x3df)][_0x1e4e42[_0x38bd70(0x335)]],_0xa41227=_0x58a9ba==null?void 0x0:_0x58a9ba[_0x38bd70(0x2b9)][_0x1e4e42[_0x38bd70(0x1b6)]],_0xa8ab98=zr(_0xa41227);if(_0x436796(()=>{const _0x132edf=_0x38bd70;if(!_0xa8ab98)return;let _0x46d7f7=_0xea1b71[_0x132edf(0x49d)];return _0xbe7bfa[_0x132edf(0x38c)](_0x46d7f7,{'unitId':_0x5b7c72,'tableId':_0x1e4e42[_0x132edf(0x335)],'viewId':_0x1e4e42[_0x132edf(0x1b6)],'filters':[]}),()=>{const _0x7f1be4=_0x132edf;_0xbe7bfa[_0x7f1be4(0x414)](_0x5b7c72,_0x46d7f7),_0x27ad12==null||_0x27ad12(_0x1e4e42['id'],null);};},[_0xa8ab98,_0x27ad12,_0xbe7bfa,_0x5b7c72,_0x1e4e42['id'],_0x1e4e42[_0x38bd70(0x1b6)],_0x1e4e42[_0x38bd70(0x335)]]),_0x436796(()=>{const _0x556a81=_0x38bd70;if(!zr(_0xa41227))return;let _0x586b1e=!0x0,_0x2a1710=_0x1e4e42[_0x556a81(0x252)]??_0xa41227[_0x556a81(0x167)][_0x556a81(0x252)],_0x52236d={'unitId':_0x5b7c72,'tableId':_0x1e4e42[_0x556a81(0x335)],'viewId':_0x1e4e42[_0x556a81(0x1b6)],'filters':[_0xa41227[_0x556a81(0x2be)]??null,..._0x169fb9]};return _0xbe7bfa['refreshChartRuntime'](_0x5b7c72,_0xea1b71[_0x556a81(0x49d)],_0x52236d,_0x2a1710)[_0x556a81(0x271)](_0x45aa55=>{const _0x36e822=_0x556a81;if(!_0x586b1e||!_0x45aa55)return;let _0x213673=_0xbe7bfa['getChartRuntime'](_0x5b7c72,_0xea1b71[_0x36e822(0x49d)])??null;_0x38f6c1(_0x45aa55),_0x10f41b(_0x213673),_0x3ba8ef(!0x1),_0x27ad12==null||_0x27ad12(_0x1e4e42['id'],_0x213673);})[_0x556a81(0x433)](_0x18f3b1=>{const _0x4983a0=_0x556a81;_0x573fd2[_0x4983a0(0x1a6)](_0x4983a0(0x340),_0x18f3b1),_0x586b1e&&(_0x38f6c1(null),_0x3ba8ef(!0x0));}),()=>{_0x586b1e=!0x1;};},[_0x169fb9,_0x573fd2,_0x27ad12,_0xbe7bfa,_0x5b7c72,_0xa41227,_0x1e4e42[_0x38bd70(0x252)],_0x1e4e42['id'],_0x1e4e42[_0x38bd70(0x1b6)],_0x1e4e42['tableId']]),!zr(_0xa41227))return _0x1c53e9('div',{'className':_0x38bd70(0x322),'children':_0x2364b0['t'](_0x38bd70(0x1ad))});let _0x4986ae=_0xbe7bfa['getChartRuntime'](_0x5b7c72,_0xea1b71[_0x38bd70(0x49d)])===_0x5c7046?_0x5c7046:null;return _0x27256b&&_0x4986ae?_0x1c53e9(Lr,{'isRowDirection':_0x3b57e8((_0x1e4e42[_0x38bd70(0x252)]??_0xa41227[_0x38bd70(0x167)][_0x38bd70(0x252)])[_0x38bd70(0x292)]),'runtime':_0x4986ae}):_0x1c53e9('div',{'className':_0x38bd70(0x322),'children':_0x2364b0['t'](_0x529e41?_0x38bd70(0x2ed):_0x38bd70(0x3b2))});}function zr(_0x557622){const _0x549aa0=_0xbfff20;return(_0x557622==null?void 0x0:_0x557622['type'])===_0x54a718['Pivot']&&typeof _0x557622[_0x549aa0(0x167)]==_0x549aa0(0x235)&&_0x557622['config']!==null&&_0x549aa0(0x274)in _0x557622[_0x549aa0(0x167)]&&_0x549aa0(0x252)in _0x557622[_0x549aa0(0x167)];}const Br={'alignment':_0xbfff20(0x297),'fontSize':0x12,'fontSizeMode':_0xbfff20(0x2fd)};function Vr(_0x5b5b08){const _0x18646f=_0xbfff20;return{...Br,..._0x5b5b08[_0x18646f(0x31e)]};}function Hr(_0x289fd0){const _0x32fa6a=_0xbfff20;var _0x24d903;return((_0x24d903=_0x289fd0[_0x32fa6a(0x45f)])==null?void 0x0:_0x24d903['dataStream']['replace'](/\r\n$/,'')[_0x32fa6a(0x1b9)](/\r/g,'\x0a'))??'';}function Ur(_0x15b943,_0x56af10){const _0x2c24ed=_0xbfff20;var _0x5e2bd0;let _0x7d15d7=_0x56af10[_0x2c24ed(0x1b9)](/\r\n|\r/g,'\x0a')[_0x2c24ed(0x3cf)]('\x0a'),_0x14aff1=_0x7d15d7[_0x2c24ed(0x284)]('\x0d')+'\x0d\x0a',_0x1275a4=((_0x5e2bd0=_0x15b943['body'])==null?void 0x0:_0x5e2bd0[_0x2c24ed(0x42c)])??[],_0x2bf03d=new Set(_0x1275a4['map'](_0x459e28=>_0x459e28['paragraphId'])),_0x35bc23=0x0,_0x4cf271=_0x7d15d7[_0x2c24ed(0x1fd)]((_0x4fb472,_0x2c5ed2)=>{const _0x1ac452=_0x2c24ed;_0x35bc23+=_0x4fb472[_0x1ac452(0x2df)];let _0x49c9f4={..._0x1275a4[_0x2c5ed2]??{'startIndex':_0x35bc23,'paragraphId':_0x467708(_0x2bf03d)},'startIndex':_0x35bc23};return _0x35bc23+=0x1,_0x49c9f4;});return{..._0x15b943,'body':{..._0x15b943[_0x2c24ed(0x45f)],'dataStream':_0x14aff1,'paragraphs':_0x4cf271,'textRuns':[]}};}function Wr({widget:_0x1a5f55}){const _0x381d32=_0xbfff20;let _0x1512f4=_0x29f087(_0x3fdc71),_0xa74eeb=_0x29f087(_0x2989fb),_0xeb9bd9=_0x39908a(()=>_0x1512f4[_0x381d32(0x1d1)],_0x1512f4[_0x381d32(0x21f)](),!0x1,[_0x1512f4]),_0x523f44=_0x2861da(null),_0x3e9542=_0x2861da(null),_0x4e5e07=Vr(_0x1a5f55),_0x3fca53=_0x4e5e07[_0x381d32(0x33d)]??_0xeb9bd9[_0x381d32(0x45c)][0x0],_0x2afeb1=_0x4e5e07[_0x381d32(0x42f)]??_0xeb9bd9['gray'][0x3e8],_0x23201f=Hr(_0x1a5f55['document']);return _0x436796(()=>{const _0x387db3=_0x381d32;let _0xe2ffe7=_0x523f44[_0x387db3(0x49d)],_0x37d9bb=_0x3e9542['current'];if(!_0xe2ffe7||!_0x37d9bb)return;let _0x1c1573=()=>{const _0x3f4228=_0x387db3;if(_0x4e5e07[_0x3f4228(0x1ab)]==='custom'||!_0xe2ffe7[_0x3f4228(0x3c1)]||!_0xe2ffe7['clientHeight']){_0x37d9bb[_0x3f4228(0x2c8)][_0x3f4228(0x320)]=_0x4e5e07[_0x3f4228(0x320)]+'px';return;}let _0x58ed4f=0x8,_0x5d59dd=0x48,_0x4f611c=_0x58ed4f;for(;_0x58ed4f<=_0x5d59dd;){let _0x1da050=Math['floor']((_0x58ed4f+_0x5d59dd)/0x2);_0x37d9bb[_0x3f4228(0x2c8)][_0x3f4228(0x320)]=_0x1da050+'px',_0x37d9bb[_0x3f4228(0x302)]<=_0xe2ffe7[_0x3f4228(0x3c1)]&&_0x37d9bb[_0x3f4228(0x2d7)]<=_0xe2ffe7[_0x3f4228(0x2d6)]?(_0x4f611c=_0x1da050,_0x58ed4f=_0x1da050+0x1):_0x5d59dd=_0x1da050-0x1;}_0x37d9bb[_0x3f4228(0x2c8)][_0x3f4228(0x320)]=_0x4f611c+'px';};if(_0x1c1573(),typeof ResizeObserver>'u')return;let _0x62f654=new ResizeObserver(_0x1c1573);return _0x62f654[_0x387db3(0x42d)](_0xe2ffe7),()=>_0x62f654[_0x387db3(0x19f)]();},[_0x4e5e07[_0x381d32(0x320)],_0x4e5e07['fontSizeMode'],_0x23201f]),_0x1c53e9(_0x381d32(0x1e8),{'data-dashboard-text-widget':_0x1a5f55['id'],'className':_0x381d32(0x16f),'style':{'backgroundColor':_0x3fca53,'color':_0x2afeb1},'children':_0x1c53e9(_0x381d32(0x1e8),{'ref':_0x523f44,'data-dashboard-text-content':!0x0,'aria-label':_0xa74eeb['t'](_0x381d32(0x3ba)),'className':_0x381d32(0x307),'children':_0x1c53e9(_0x381d32(0x1e8),{'ref':_0x3e9542,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x4e5e07[_0x381d32(0x1ab)],'className':_0x381d32(0x249),'style':{'textAlign':_0x4e5e07[_0x381d32(0x2c1)]},'children':_0x23201f})})});}function Gr({dashboard:_0x965068,editable:_0x364e00=!0x0,onSelectWidget:_0x4a9bdf,renderWidget:_0x1b3e45,renderWidgetActions:_0x518844,selectedWidgetId:_0xaff9cc,widgetLabel:_0x57a469}){const _0x21aec0=_0xbfff20;return _0x1c53e9('div',{'data-dashboard-scroll-container':!0x0,'className':_0x14b647(_0x21aec0(0x48f),_0x439165),'onClick':_0x364e00?_0xa1f2c2=>{const _0x5a2046=_0x21aec0;if(!(_0xa1f2c2[_0x5a2046(0x1cb)]instanceof Node)||!_0xa1f2c2[_0x5a2046(0x40a)][_0x5a2046(0x3e5)](_0xa1f2c2['target']))return;let _0x3e9ea1=_0xa1f2c2[_0x5a2046(0x1cb)]instanceof Element?_0xa1f2c2[_0x5a2046(0x1cb)]:_0xa1f2c2[_0x5a2046(0x1cb)][_0x5a2046(0x196)];_0x3e9ea1!=null&&_0x3e9ea1[_0x5a2046(0x21a)]('[data-dashboard-widget]')||_0x4a9bdf==null||_0x4a9bdf();}:void 0x0,'children':_0x1c53e9('div',{'data-dashboard-grid':!0x0,'className':_0x21aec0(0x21d),'children':_0x965068['widgetOrder']['map'](_0x5284e1=>{const _0x5af975=_0x21aec0;let _0x5da6ef=_0x965068[_0x5af975(0x280)][_0x5284e1];if(!_0x5da6ef)return null;let _0x262949=Math[_0x5af975(0x43f)](0xb4,_0x5da6ef[_0x5af975(0x2fc)][_0x5af975(0x1b2)]*_0x3e9cab);return _0x1108cb(_0x5af975(0x241),{'data-dashboard-widget':_0x5da6ef['id'],'aria-label':_0x5da6ef[_0x5af975(0x236)]??_0x57a469(_0x5da6ef),'className':_0x14b647(_0x5af975(0x1aa),_0x5da6ef[_0x5af975(0x427)]===_0x1402ed['Image']||_0x5da6ef['type']===_0x1402ed[_0x5af975(0x1d9)]?_0x5af975(0x361):_0x5af975(0x33a),_0x364e00&&_0xaff9cc===_0x5da6ef['id']?'univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500':_0x5af975(0x49c)),'style':{'minHeight':_0x262949,'height':_0x262949},'tabIndex':_0x364e00?0x0:void 0x0,'onClick':_0x364e00?()=>_0x4a9bdf==null?void 0x0:_0x4a9bdf(_0x5da6ef['id']):void 0x0,'onFocus':_0x364e00?()=>_0x4a9bdf==null?void 0x0:_0x4a9bdf(_0x5da6ef['id']):void 0x0,'children':[_0x364e00&&_0x1c53e9('div',{'className':_0x5af975(0x358),'children':_0x518844==null?void 0x0:_0x518844(_0x5da6ef)}),_0x1c53e9(_0x5af975(0x1e8),{'className':'univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','children':_0x1b3e45(_0x5da6ef)})]},_0x5da6ef['id']);})})});}let Kr=class extends _0x22cc04{constructor(_0x5b7b7c){super(_0x5b7b7c),Fr(this,'activeRuntimeModel',null);}[_0xbfff20(0x25c)](_0x23434c){}};Kr=kr([Y(0x0,_0x38b292(_0x41a29f))],Kr);function qr({children:_0x19c70e}){return _0x1c53e9(_0x16eea4,{'children':_0x19c70e});}function Jr(_0x2e61ef){return _0x1c53e9(_0x3cb16e,{..._0x2e61ef});}function Yr(_0x58ad19){return _0x1c53e9(_0x15dcec,{..._0x58ad19});}function Xr(_0x3082a8){return _0x1c53e9(_0x2c4746,{..._0x3082a8});}var Zr;const X={'axis':{..._0x3c4ba3,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x2c5e3a,'heatmap':_0x4f57a1,'indicatorLine':_0x57cad4,'legend':_0x43f27b,'lineAndArea':_0x1a8b1f,'pareto':_0x1aa1b1,'pie':_0x258d6f,'radar':_0x2ec41b,'relation':{..._0x4805f6,'useValueAsSymbolSize':!0x0},'series':{..._0x13b217,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Zr=_0x40bf0b[_0xbfff20(0x254)])==null?void 0x0:Zr[_0xbfff20(0x492)])??!0x1}},'style':_0x13d7eb,'titles':_0x4abb4a,'trendline':_0x72a22e,'waterfall':{..._0x2cc178,'useSubtotal':!0x0},'waterfallStyle':_0x436808,'wordCloud':_0xfd1cc7},Qr=[_0x217c21['Line'],_0x217c21[_0xbfff20(0x356)],_0x217c21[_0xbfff20(0x458)],_0x217c21['Scatter'],_0x217c21[_0xbfff20(0x25a)],_0x217c21['Relation'],_0x217c21[_0xbfff20(0x23a)],_0x217c21[_0xbfff20(0x1af)],_0x217c21[_0xbfff20(0x4a7)],_0x217c21[_0xbfff20(0x360)],_0x217c21[_0xbfff20(0x2f3)],_0x217c21[_0xbfff20(0x3a2)],_0x217c21[_0xbfff20(0x23b)],_0x217c21[_0xbfff20(0x38f)],_0x217c21['Chord']];function $r(_0x26defd){const _0x308408=_0xbfff20;let {config:_0xa61c77,onChange:_0x5dc0af,runtime:_0x392ed1,tableName:_0x4bba0f}=_0x26defd,_0x17241c=_0x29f087(Kr),_0x1930f4=_0x29f087(_0x2989fb),[_0x14307c,_0x577f83]=_0x34e679(_0x39d056[_0x308408(0x491)]),_0xab7d44=_0x548c0f(()=>new _0x439e96(_0x392ed1[_0x308408(0x1ee)],{'commit':_0x46f0a7=>{const _0x416bc1=_0x308408;var _0x559cf6;let _0x183678=_0x392ed1[_0x416bc1(0x1ee)],_0x39efdd=_0x3aa652(_0x46f0a7,{'series':(_0x559cf6=_0x183678[_0x416bc1(0x167)])==null?void 0x0:_0x559cf6[_0x416bc1(0x28b)],'currentChartType':_0x183678[_0x416bc1(0x288)],'currentStyle':_0x183678[_0x416bc1(0x2c8)],'currentContext':_0x183678[_0x416bc1(0x3b5)],'currentDataAggregation':_0x183678[_0x416bc1(0x48e)]});_0x5dc0af({'chart':ei(_0xa61c77['chart'],_0x39efdd)});}}),[_0xa61c77[_0x308408(0x252)],_0x5dc0af,_0x392ed1]),_0x52f374=_0x548c0f(()=>_0x5b5e1c(_0x1fbca7[_0x308408(0x1fd)](_0x47610f=>({..._0x47610f,'label':_0x1930f4['t'](ii(_0x47610f['labelId']))}))),[_0x1930f4]);return _0x1c53e9(_0x5cda0c,{'chartUIService':_0x17241c,'hostAdapter':_0xab7d44,'children':_0x1108cb(_0x308408(0x1e8),{'className':_0x308408(0x1d6),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x1930f4['t'](_0x308408(0x1b1)),'className':_0x308408(0x251),'items':[{'label':_0x1930f4['t'](_0x308408(0x242)),'panelId':_0x308408(0x41e),'value':_0x39d056[_0x308408(0x491)]},{'label':_0x1930f4['t'](_0x308408(0x1c3)),'panelId':_0x308408(0x474),'value':_0x39d056['Style']}],'value':_0x14307c,'onChange':_0x577f83}),_0x14307c===_0x39d056[_0x308408(0x491)]?_0x1c53e9(_0x420eaf,{'id':_0x308408(0x41e),'label':_0x1930f4['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x1108cb('div',{'className':_0x308408(0x3b9),'children':[_0x1c53e9(_0x44e1cd,{'options':_0x52f374}),_0x1c53e9(_0xd07337,{}),_0x1c53e9(_0x2a621a,{}),_0x1c53e9(ti,{}),_0x1c53e9(_0x14bbde,{}),_0x1108cb(_0x308408(0x1e8),{'children':[_0x1c53e9(_0x4ed5df,{'title':_0x1930f4['t'](_0x308408(0x264))}),_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':_0x4bba0f})]}),_0x1c53e9(_0x521472,{'orientationControl':_0x1c53e9(_0x6d25a2,{'size':_0x308408(0x189),'onClick':()=>_0x5dc0af({'chart':{..._0xa61c77[_0x308408(0x252)],'orient':_0xa61c77[_0x308408(0x252)][_0x308408(0x292)]===_0x308408(0x430)?'column':_0x308408(0x430)}}),'children':_0x1930f4['t'](_0x308408(0x3a6))})}),_0x1c53e9(_0x27502d,{}),_0x1c53e9(_0x1e15dd,{'defaultValues':X[_0x308408(0x1fc)]}),_0x1108cb('div',{'children':[_0x1c53e9(_0x4ed5df,{'title':_0x1930f4['t'](_0x308408(0x47e))}),_0x1c53e9(Jr,{'value':_0xa61c77['displayMode'],'options':[{'value':_0x308408(0x36e),'label':_0x1930f4['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':_0x308408(0x252),'label':_0x1930f4['t'](_0x308408(0x266))},{'value':_0x308408(0x405),'label':_0x1930f4['t'](_0x308408(0x186))}],'onChange':_0x1b0657=>{const _0x419dfb=_0x308408;(_0x1b0657===_0x419dfb(0x36e)||_0x1b0657===_0x419dfb(0x252)||_0x1b0657==='table')&&_0x5dc0af({'displayMode':_0x1b0657});}})]})]})}):_0x1c53e9(_0x420eaf,{'id':'base-pivot-chart-style','label':_0x1930f4['t'](_0x308408(0x1c3)),'children':_0x1c53e9(ni,{})})]})});}function ei(_0x438cfa,_0x40638e){const _0x4218b=_0xbfff20;return{..._0x438cfa,'type':_0x40638e[_0x4218b(0x288)]??_0x438cfa[_0x4218b(0x427)],'style':_0x40638e[_0x4218b(0x2c8)]??_0x438cfa['style'],'context':_0x40638e[_0x4218b(0x3b5)]??_0x438cfa[_0x4218b(0x3b5)],'dataAggregation':_0x40638e['dataAggregation']??_0x438cfa[_0x4218b(0x48e)]};}function ti(){const _0x3e7c31=_0xbfff20;let _0x200b5c=_0x486f74();return _0x1c53e9(_0x18f4fe,{'visible':Qr[_0x3e7c31(0x311)](_0x141bcf=>!_0x1094d9[_0x3e7c31(0x30f)](_0x200b5c,_0x141bcf))});}function Z(_0x211880){const _0x70d6d0=_0xbfff20;return _0x1108cb(_0x476c3e,{'id':_0x211880['id'],'children':[_0x1c53e9(_0x3ee43e,{'children':_0x211880[_0x70d6d0(0x1b8)]}),_0x1c53e9(_0x50efea,{'children':_0x211880[_0x70d6d0(0x310)]})]});}function ni(){const _0x1c6806=_0xbfff20;let _0x5677a6=_0x29f087(_0x2989fb),_0x275b0f=_0x486f74(),_0x464efb=_0x3d2664(),[_0x3413ad,_0x14510d]=_0x34e679(null),_0x597e35=_0x1094d9[_0x1c6806(0x30f)](_0x275b0f,_0x217c21['Pie']),_0x43a1fc=_0x275b0f===_0x217c21[_0x1c6806(0x356)],_0x26eda3=_0x275b0f===_0x217c21[_0x1c6806(0x458)],_0x380be0=_0x275b0f===_0x217c21['Funnel'],_0x2794b9=_0x1094d9[_0x1c6806(0x30f)](_0x275b0f,_0x217c21[_0x1c6806(0x3d3)]),_0x10af09=_0x275b0f===_0x217c21[_0x1c6806(0x1f4)],_0x1653e8=_0x275b0f===_0x217c21[_0x1c6806(0x1b3)],_0x1e8c58=_0x275b0f===_0x217c21[_0x1c6806(0x3f6)],_0x5910d2=_0x275b0f===_0x217c21[_0x1c6806(0x1af)],_0x45e6ce=_0x4c4c0b(_0x275b0f,_0x235cca[_0x1c6806(0x38d)])&&!_0x2794b9&&!_0x1e8c58,_0x27f116=ri(_0x275b0f,_0x5677a6);return _0x1108cb(_0x169833,{'value':_0x3413ad,'onChange':_0x14510d,'children':[_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x40f)],'label':_0x5677a6['t'](_0x1c6806(0x270)),'children':_0x1c53e9(_0x392a75,{'defaultValues':X['style']})}),_0x1c53e9(Z,{'id':_0x275cd6['ChartAndAxisTitles'],'label':_0x5677a6['t'](_0x1c6806(0x37f)),'children':_0x1c53e9(_0x3a97b5,{'commitMode':_0x1c6806(0x1bd),'defaultValues':X[_0x1c6806(0x2b6)]})}),_0x1c53e9(_0x461f63,{'section':_0x1c6806(0x1f5)}),_0x45e6ce&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x18d)],'label':_0x5677a6['t'](_0x1c6806(0x217)),'children':_0x1c53e9(_0x3fdf0f,{'defaultValues':X['series'],'NumberFormatField':_0x1fdd9c})}),_0x1653e8&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x3ee)],'label':_0x5677a6['t'](_0x1c6806(0x15a)),'children':_0x1c53e9(_0x321527,{'defaultValues':X['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x278edd,target:_0x5c3eda})=>_0x5c3eda===_0x17b66a[_0x1c6806(0x220)]?_0x5677a6['t'](_0x1c6806(0x3dc)):_0x278edd?_0x278edd+'-('+_0x5677a6['t'](_0x1c6806(0x33b)+(_0x5c3eda===_0x17b66a[_0x1c6806(0x3ab)]?_0x1c6806(0x2bb):'waterfall.negative'))+')':'','NumberFormatField':_0x1fdd9c})}),_0x1e8c58&&_0x1108cb(_0x52e8d3,{'children':[_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x31d)],'label':_0x5677a6['t'](_0x1c6806(0x321)),'children':_0x1c53e9(_0xc41187,{'defaultValues':X[_0x1c6806(0x1ec)],'NumberFormatField':_0x1fdd9c,'showDataPointEditor':!0x0,'target':'barStyle'})}),_0x1c53e9(Z,{'id':_0x275cd6['ParetoLineSeries'],'label':_0x5677a6['t'](_0x1c6806(0x44e)),'children':_0x1c53e9(_0xc41187,{'defaultValues':X[_0x1c6806(0x1ec)],'NumberFormatField':_0x1fdd9c,'showDataPointEditor':!0x1,'target':'cumulativeLineStyle'})})]}),_0x597e35&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x397)],'label':_0x5677a6['t'](_0x1c6806(0x1f2)),'children':_0x1c53e9(_0x411c97,{'defaultValues':X[_0x1c6806(0x20e)],'NumberFormatField':_0x1fdd9c})}),_0x26eda3&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x458)],'label':_0x5677a6['t']('bases-dashboard-ui.chart.section.wordCloud'),'children':_0x1c53e9(_0x34e06c,{'defaultValues':X[_0x1c6806(0x2a3)]})}),_0x43a1fc&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x356)],'label':_0x5677a6['t'](_0x1c6806(0x218)),'children':_0x1c53e9(_0x3cdb06,{'defaultValues':X['radar']})}),_0x380be0&&_0x1c53e9(Z,{'id':_0x275cd6['Funnel'],'label':_0x5677a6['t'](_0x1c6806(0x3a3)),'children':_0x1c53e9(_0x5c3a2a,{'defaultValues':X['funnel'],'gapControl':_0x1c6806(0x3fc)})}),_0x5910d2&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x1af)],'label':_0x5677a6['t'](_0x1c6806(0x1c8)),'children':_0x1c53e9(_0x1a9d64,{'defaultValues':X[_0x1c6806(0x1f3)]})}),_0x10af09&&_0x1c53e9(Z,{'id':_0x275cd6['Relation'],'label':_0x5677a6['t'](_0x1c6806(0x42a)),'children':_0x1c53e9(_0x43b09c,{'defaultValues':X['relation']})}),_0x2324f4(_0x275b0f)&&_0x1c53e9(Z,{'id':_0x275cd6['LineAndArea'],'label':_0x5677a6['t'](_0x1094d9[_0x1c6806(0x30f)](_0x275b0f,_0x217c21['Area'])?_0x1c6806(0x34b):'bases-dashboard-ui.chart.chartTypes.line'),'children':_0x1c53e9(_0x67621e,{'defaultValues':X[_0x1c6806(0x23f)],'lineStyleControl':'segmented'})}),_0x4c4c0b(_0x275b0f,_0x235cca['Legend'])&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x187)],'label':_0x5677a6['t'](_0x1c6806(0x351)),'children':_0x1c53e9(_0x40abfd,{'defaultValues':X[_0x1c6806(0x409)]})}),_0x4c4c0b(_0x275b0f,_0x235cca['Axes'])&&_0x1108cb(_0x52e8d3,{'children':[_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x39e)],'label':_0x5677a6['t']('bases-dashboard-ui.chart.common.horizontalAxis'),'children':_0x1c53e9(_0x54bdb3,{'axis':'x','defaultValues':X['axis'],'NumberFormatField':_0x1fdd9c})}),_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x3a5)],'label':_0x5677a6['t'](_0x1c6806(0x2cf)),'children':_0x1c53e9(_0x54bdb3,{'axis':'y','defaultValues':X[_0x1c6806(0x359)],'NumberFormatField':_0x1fdd9c})}),_0x1c53e9(_0x461f63,{'section':'depthAxis'}),_0x464efb&&_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x3ef)],'label':_0x5677a6['t'](_0x1c6806(0x476)),'children':_0x1c53e9(_0x54bdb3,{'axis':_0x1c6806(0x209),'defaultValues':X['axis'],'NumberFormatField':_0x1fdd9c})}),_0x1c53e9(Z,{'id':_0x275cd6[_0x1c6806(0x247)],'label':_0x5677a6['t'](_0x1c6806(0x413)),'children':_0x1c53e9(_0xd55416,{'defaultValues':X[_0x1c6806(0x359)]})})]}),_0x4c4c0b(_0x275b0f,_0x235cca[_0x1c6806(0x19c)])&&_0x1c53e9(Z,{'id':_0x275cd6['IndicatorLine'],'label':_0x5677a6['t'](_0x1c6806(0x31a)),'children':_0x1c53e9(_0x4e8f14,{'defaultValues':X[_0x1c6806(0x3d1)]})}),_0x23f1e4(_0x275b0f)&&_0x1c53e9(Z,{'id':_0x275cd6['Trendline'],'label':_0x5677a6['t'](_0x1c6806(0x417)),'children':_0x1c53e9(_0x2d84a4,{'defaultValues':X[_0x1c6806(0x2cb)]})}),_0x27f116&&_0x1c53e9(Z,{'id':_0x27f116['id'],'label':_0x27f116['label'],'children':_0x1c53e9(_0x359635,{})})]});}function ri(_0x5e68ae,_0x24f253){const _0x37d778=_0xbfff20;let _0xe4413b={[_0x217c21[_0x37d778(0x360)]]:{'id':_0x275cd6[_0x37d778(0x360)],'localeKey':_0x37d778(0x2b3)},[_0x217c21[_0x37d778(0x2f3)]]:{'id':_0x275cd6[_0x37d778(0x2f3)],'localeKey':_0x37d778(0x26f)},[_0x217c21[_0x37d778(0x3a2)]]:{'id':_0x275cd6[_0x37d778(0x3a2)],'localeKey':_0x37d778(0x2ca)},[_0x217c21['Sunburst']]:{'id':_0x275cd6[_0x37d778(0x23b)],'localeKey':_0x37d778(0x399)},[_0x217c21[_0x37d778(0x38f)]]:{'id':_0x275cd6[_0x37d778(0x38f)],'localeKey':_0x37d778(0x1d3)},[_0x217c21[_0x37d778(0x44d)]]:{'id':_0x275cd6[_0x37d778(0x44d)],'localeKey':_0x37d778(0x411)}}[_0x5e68ae];return _0xe4413b?{'id':_0xe4413b['id'],'label':_0x24f253['t'](_0xe4413b[_0x37d778(0x39b)])}:null;}function ii(_0x33b29d){const _0x4b3719=_0xbfff20;return _0x4b3719(0x408)+_0x33b29d;}function ai({onChange:_0x161e22,onEditData:_0x1a6e35,runtime:_0x111503,sourceChart:_0x20abc4,sourceName:_0x2dc508,widget:_0x9cecd8}){const _0x17e9b4=_0xbfff20;let _0x321ce5=_0x29f087(Kr),_0xc00f89=_0x29f087(_0x2989fb),[_0x4aae78,_0x1bfbdf]=_0x34e679(_0x39d056[_0x17e9b4(0x491)]),_0x14857d=_0x9cecd8[_0x17e9b4(0x252)]??_0x20abc4,_0x4742fd=_0x548c0f(()=>new _0x439e96(_0x111503[_0x17e9b4(0x1ee)],{'commit':_0x3a21e7=>{const _0x478af1=_0x17e9b4;var _0x3032e0;let _0x25f81d=_0x111503[_0x478af1(0x1ee)],_0x33e6e9=_0x3aa652(_0x3a21e7,{'series':(_0x3032e0=_0x25f81d[_0x478af1(0x167)])==null?void 0x0:_0x3032e0[_0x478af1(0x28b)],'currentChartType':_0x25f81d[_0x478af1(0x288)],'currentStyle':_0x25f81d[_0x478af1(0x2c8)],'currentContext':_0x25f81d[_0x478af1(0x3b5)],'currentDataAggregation':_0x25f81d['dataAggregation']});_0x161e22({..._0x9cecd8,'chart':ei(_0x14857d,_0x33e6e9)})[_0x478af1(0x433)](()=>void 0x0);}}),[_0x14857d,_0x161e22,_0x111503,_0x9cecd8]),_0x19738c=_0x548c0f(()=>_0x5b5e1c(_0x1fbca7['map'](_0x33489b=>({..._0x33489b,'label':_0xc00f89['t'](oi(_0x33489b[_0x17e9b4(0x364)]))}))),[_0xc00f89]);return _0x1c53e9(_0x413b19,{'chartUIService':_0x321ce5,'hostAdapter':_0x4742fd,'children':_0x1108cb('div',{'data-dashboard-chart-inspector':!0x0,'className':_0x17e9b4(0x22b),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0xc00f89['t'](_0x17e9b4(0x1b1)),'className':_0x17e9b4(0x251),'items':[{'label':_0xc00f89['t'](_0x17e9b4(0x242)),'panelId':_0x17e9b4(0x380),'value':_0x39d056['Data']},{'label':_0xc00f89['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x17e9b4(0x248),'value':_0x39d056[_0x17e9b4(0x30a)]}],'value':_0x4aae78,'onChange':_0x1bfbdf}),_0x4aae78===_0x39d056[_0x17e9b4(0x491)]?_0x1c53e9(_0x420eaf,{'id':_0x17e9b4(0x380),'label':_0xc00f89['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x1108cb('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[_0x1c53e9(_0x44e1cd,{'options':_0x19738c}),_0x1c53e9(_0xd07337,{}),_0x1c53e9(_0x2a621a,{}),_0x1c53e9(ti,{}),_0x1c53e9(_0x14bbde,{}),_0x1108cb(_0x17e9b4(0x1e8),{'children':[_0x1c53e9(_0x4ed5df,{'title':_0xc00f89['t'](_0x17e9b4(0x3cb))}),_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':_0x2dc508}),_0x1c53e9(_0x6d25a2,{'className':_0x17e9b4(0x1bb),'onClick':_0x1a6e35,'children':_0xc00f89['t'](_0x17e9b4(0x2c0))})]})]})}):_0x1c53e9(_0x420eaf,{'id':_0x17e9b4(0x248),'label':_0xc00f89['t']('bases-dashboard-ui.chart.common.customize'),'children':_0x1c53e9(ni,{})})]})});}function oi(_0x243852){const _0x262d16=_0xbfff20;return _0x262d16(0x408)+_0x243852;}const si=[_0xbfff20(0x3b8),_0xbfff20(0x2f5),'percent',_0xbfff20(0x33e),_0xbfff20(0x2ce),'compact'];function ci({base:_0x420024,onChange:_0x5af384,onSelectBackgroundImage:_0x5c1f51,widget:_0x18e7e7}){const _0x179c6c=_0xbfff20;var _0x4350f8;let _0x3f7a5e=_0x29f087(_0x2989fb),_0x5e3611=_0x29f087(_0x3fdc71),_0xa22d16=_0x39908a(()=>_0x5e3611['currentTheme$'],_0x5e3611['getCurrentTheme'](),!0x1,[_0x5e3611]),_0xef2564=_0x39908a(()=>_0x5e3611[_0x179c6c(0x419)],_0x5e3611['darkMode'],!0x1,[_0x5e3611]),[_0x23e478,_0xe358ea]=_0x34e679(_0x179c6c(0x490)),[_0x1ac925,_0x511832]=_0x34e679(!0x1),_0x32919f=Sr(_0x18e7e7),_0x18b4f7=_0x420024['getSnapshot']()[_0x179c6c(0x3df)][_0x18e7e7[_0x179c6c(0x335)]],_0x4caaa4=_0x18b4f7==null?void 0x0:_0x18b4f7[_0x179c6c(0x18e)][_0x179c6c(0x1ac)](_0x23eafa=>_0x18b4f7['views'][_0x23eafa]),_0x32b0b1=_0x4caaa4?_0x18b4f7==null?void 0x0:_0x18b4f7[_0x179c6c(0x2b9)][_0x4caaa4]:void 0x0,_0xa7290b=_0x18b4f7&&_0x32b0b1?_0xacf6bd(_0x420024[_0x179c6c(0x373)](),_0x18b4f7,_0x32b0b1)[_0x179c6c(0x1fd)](_0x404910=>({..._0x404910,'current':!0x1})):[],_0x26d161=((_0x4350f8=_0x18e7e7['shapeData'][_0x179c6c(0x226)])==null?void 0x0:_0x4350f8[_0x179c6c(0x495)])??'',_0x2f0fd1=_0x5112cb=>_0x5af384(Cr(_0x18e7e7,_0x5112cb))[_0x179c6c(0x433)](()=>void 0x0),_0x4ffcd5=_0x4c41f4=>_0x5af384({..._0x18e7e7,'description':_0x4c41f4})['catch'](()=>void 0x0);return _0x1108cb('div',{'data-dashboard-formula-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[_0x1c53e9(_0x4fe720,{'className':_0x179c6c(0x398),'items':[{'value':_0x179c6c(0x490),'label':_0x3f7a5e['t'](_0x179c6c(0x203))},{'value':'style','label':_0x3f7a5e['t'](_0x179c6c(0x49a))}],'value':_0x23e478,'onChange':_0xe358ea}),_0x1c53e9(_0x179c6c(0x1e8),{'className':_0x179c6c(0x298),'children':_0x23e478===_0x179c6c(0x490)?_0x1108cb(_0x179c6c(0x1e8),{'className':_0x179c6c(0x48b),'children':[_0x1c53e9(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x243)),'children':_0x1c53e9(_0x1b54d7,{'value':_0x18e7e7[_0x179c6c(0x429)]??_0x18e7e7[_0x179c6c(0x236)]??'','onChange':_0x4ffcd5,'onBlur':_0x4c15c3=>_0x4ffcd5(_0x4c15c3[_0x179c6c(0x1cb)][_0x179c6c(0x1b5)])})}),_0x1c53e9(li,{'label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.dataSource'),'children':_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':(_0x18b4f7==null?void 0x0:_0x18b4f7[_0x179c6c(0x3ca)])??_0x3f7a5e['t'](_0x179c6c(0x1ad))})}),_0x1108cb(li,{'label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.formula'),'children':[_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':_0x200012(_0x26d161,_0xa7290b)}),_0x1c53e9(_0x6d25a2,{'className':'univer-mt-2\x20univer-w-full','onClick':()=>_0x511832(!0x0),'children':_0x3f7a5e['t'](_0x179c6c(0x366))})]})]}):_0x1108cb('div',{'className':'univer-grid\x20univer-gap-4','children':[_0x1c53e9(_0x4931cb,{'emptyLabel':_0x3f7a5e['t'](_0x179c6c(0x41b)),'label':_0x3f7a5e['t'](_0x179c6c(0x41b)),'pickerFallbackValue':_0xef2564?_0xa22d16[_0x179c6c(0x45c)][0x384]:_0xa22d16['gray'][0x0],'resetLabel':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x32919f[_0x179c6c(0x33d)]??null,'onChange':_0x58c975=>_0x2f0fd1({'backgroundColor':_0x58c975??void 0x0})}),_0x1108cb(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x28a)),'children':[_0x1108cb(_0x179c6c(0x1e8),{'className':_0x179c6c(0x30b),'children':[_0x1108cb(_0x6d25a2,{'className':_0x179c6c(0x436),'onClick':()=>{const _0x5c76c0=_0x179c6c;_0x5c1f51()[_0x5c76c0(0x271)](_0x337481=>{const _0xd9c2c2=_0x5c76c0;if(_0x337481){var _0x94060b;return _0x2f0fd1({'backgroundImage':{..._0x337481,'fit':((_0x94060b=_0x32919f[_0xd9c2c2(0x345)])==null?void 0x0:_0x94060b[_0xd9c2c2(0x290)])??'cover'}});}})['catch'](()=>void 0x0);},'children':[_0x1c53e9(_0x34be53,{}),_0x32919f[_0x179c6c(0x345)]?_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.replaceImage'):_0x3f7a5e['t'](_0x179c6c(0x1bc))]}),_0x32919f['backgroundImage']&&_0x1c53e9(_0x6d25a2,{'aria-label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'onClick':()=>_0x2f0fd1({'backgroundImage':void 0x0}),'children':_0x1c53e9(_0x48daea,{})})]}),_0x32919f['backgroundImage']&&_0x1c53e9(_0x4fe720,{'className':_0x179c6c(0x313),'items':[{'value':_0x179c6c(0x2b8),'label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x179c6c(0x26b),'label':_0x3f7a5e['t'](_0x179c6c(0x483))}],'value':_0x32919f[_0x179c6c(0x345)][_0x179c6c(0x290)],'onChange':_0x4d65c5=>_0x2f0fd1({'backgroundImage':_0x32919f[_0x179c6c(0x345)]?{..._0x32919f[_0x179c6c(0x345)],'fit':_0x4d65c5}:void 0x0})})]}),_0x1c53e9(_0x4931cb,{'emptyLabel':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x3f7a5e['t'](_0x179c6c(0x384)),'pickerFallbackValue':_0xef2564?_0xa22d16[_0x179c6c(0x45c)][0x32]:_0xa22d16[_0x179c6c(0x45c)][0x3e8],'resetLabel':_0x3f7a5e['t'](_0x179c6c(0x272)),'value':_0x32919f['textColor']??null,'onChange':_0x2b61b1=>_0x2f0fd1({'textColor':_0x2b61b1??void 0x0})}),_0x1c53e9(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x316)),'children':_0x1c53e9(_0x4fe720,{'items':[{'value':_0x179c6c(0x297),'label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':'center','label':_0x3f7a5e['t'](_0x179c6c(0x207))},{'value':_0x179c6c(0x2e0),'label':_0x3f7a5e['t'](_0x179c6c(0x24b))}],'value':_0x32919f['alignment'],'onChange':_0x19fa72=>_0x2f0fd1({'alignment':_0x19fa72})})}),_0x1108cb(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x32f)),'children':[_0x1c53e9(_0x4fe720,{'items':[{'value':_0x179c6c(0x2fd),'label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':_0x179c6c(0x22d),'label':_0x3f7a5e['t'](_0x179c6c(0x238))}],'value':_0x32919f[_0x179c6c(0x1ab)],'onChange':_0x2c4b82=>_0x2f0fd1({'fontSizeMode':_0x2c4b82})}),_0x32919f[_0x179c6c(0x1ab)]===_0x179c6c(0x22d)&&_0x1c53e9(_0x5a3ae3,{'className':_0x179c6c(0x313),'min':0xc,'max':0x78,'value':_0x32919f[_0x179c6c(0x320)],'onChange':_0x3fe61c=>_0x2f0fd1({'fontSize':_0x3fe61c??0x28,'fontSizeMode':'custom'})})]}),_0x1c53e9(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x381)),'children':_0x1c53e9(Jr,{'value':_0x32919f[_0x179c6c(0x4a5)],'options':[{'value':'general','label':_0x3f7a5e['t'](_0x179c6c(0x376))},{'value':_0x179c6c(0x2f5),'label':_0x3f7a5e['t'](_0x179c6c(0x27f))},{'value':_0x179c6c(0x28d),'label':_0x3f7a5e['t'](_0x179c6c(0x31b))},{'value':_0x179c6c(0x33e),'label':_0x3f7a5e['t']('bases-dashboard-ui.dashboardInspector.currency')},{'value':_0x179c6c(0x2ce),'label':_0x3f7a5e['t'](_0x179c6c(0x451))},{'value':_0x179c6c(0x3eb),'label':_0x3f7a5e['t'](_0x179c6c(0x36f))}],'onChange':_0x57ba02=>{let _0x2bf452=si['find'](_0x2a1550=>_0x2a1550===_0x57ba02);_0x2bf452&&_0x2f0fd1({'numberFormat':_0x2bf452});}})}),_0x32919f[_0x179c6c(0x4a5)]==='currency'&&_0x1c53e9(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x211)),'children':_0x1c53e9(_0x1b54d7,{'value':_0x32919f[_0x179c6c(0x33e)],'onChange':_0x2190cf=>_0x2f0fd1({'currency':_0x2190cf[_0x179c6c(0x26a)](0x0,0x3)[_0x179c6c(0x49e)]()})})}),_0x32919f[_0x179c6c(0x4a5)]!==_0x179c6c(0x3b8)&&_0x1c53e9(li,{'label':_0x3f7a5e['t'](_0x179c6c(0x20b)),'children':_0x1c53e9(_0x5a3ae3,{'min':0x0,'max':0x8,'value':_0x32919f['decimalPlaces'],'onChange':_0x5a5833=>_0x2f0fd1({'decimalPlaces':_0x5a5833??0x0})})})]})}),_0x1ac925&&_0x1c53e9(Xr,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1c53e9(_0x5e5ef4,{'tables':_0xa7290b,'formula':_0x200012(_0x26d161,_0xa7290b),'onCancel':()=>_0x511832(!0x1),'onSave':_0x191db2=>{const _0x994861=_0x179c6c;let _0x393ad7=_0x18e7e7[_0x994861(0x18a)][_0x994861(0x226)]??{'formula':''};return _0x5af384({..._0x18e7e7,'shapeData':{..._0x18e7e7[_0x994861(0x18a)],'formulaBinding':{..._0x393ad7,'formula':_0x359363(_0x191db2,_0xa7290b)}}})[_0x994861(0x271)](()=>_0x511832(!0x1))[_0x994861(0x433)](()=>void 0x0);}})})]});}function li({children:_0x42a216,label:_0x360096}){const _0x3e0995=_0xbfff20;return _0x1108cb(_0x3e0995(0x1e8),{'role':_0x3e0995(0x161),'aria-label':_0x360096,'className':_0x3e0995(0x277),'children':[_0x1c53e9(_0x3e0995(0x213),{'children':_0x360096}),_0x42a216]});}function ui({disabled:_0x2de3ce,fields:_0x5097d9,filter:_0x1c130c,onChange:_0x11afaa}){const _0x592ef6=_0xbfff20;let _0x24ac3c=_0x29f087(_0x3927ed)[_0x592ef6(0x35c)]??null,[_0x5b059d,_0x2a2d56]=_0x34e679(null),_0x533095=_0x29f087(_0x2989fb),_0x5bee87=(_0x1c130c==null?void 0x0:_0x1c130c[_0x592ef6(0x232)])??[];if(!_0x5bee87[_0x592ef6(0x2df)])return _0x1108cb(_0x592ef6(0x1e8),{'className':_0x592ef6(0x40e),'children':[_0x1c53e9(_0xad9ba4,{'className':_0x592ef6(0x30c)}),_0x1c53e9(_0x592ef6(0x213),{'className':_0x592ef6(0x479),'children':_0x533095['t']('bases-dashboard-ui.dashboard.tableFilter')})]});let _0x8d3ea9=_0x5b059d==null?void 0x0:_0x5bee87[_0x5b059d],_0x1aae5b=_0x5097d9[_0x592ef6(0x1ac)](_0x5638af=>_0x5638af['id']===(_0x8d3ea9==null?void 0x0:_0x8d3ea9[_0x592ef6(0x17d)]));return _0x1108cb(_0x592ef6(0x1e8),{'className':_0x592ef6(0x3e7),'children':[_0x5bee87[_0x592ef6(0x1fd)]((_0x365fc6,_0x34f86c)=>{const _0x14de37=_0x592ef6;var _0x272fc4;return _0x1108cb(_0x6d25a2,{'disabled':_0x2de3ce,'onClick':()=>_0x2a2d56(_0x34f86c),'children':[_0x1c53e9(_0x14de37(0x213),{'children':((_0x272fc4=_0x5097d9[_0x14de37(0x1ac)](_0x38a5fc=>_0x38a5fc['id']===_0x365fc6[_0x14de37(0x17d)]))==null?void 0x0:_0x272fc4[_0x14de37(0x3ca)])??_0x365fc6[_0x14de37(0x17d)]}),_0x1c53e9(_0x14de37(0x213),{'className':_0x14de37(0x3aa),'children':String(_0x365fc6[_0x14de37(0x377)]??'')})]},_0x365fc6['fieldId']+'-'+_0x34f86c);}),_0x1aae5b&&_0x8d3ea9&&_0x5b059d!=null&&_0x24ac3c&&_0x3ae99d(_0x1c53e9(_0x2a8e30,{'field':_0x1aae5b,'value':_0x8d3ea9[_0x592ef6(0x377)],'onClose':()=>_0x2a2d56(null),'onSave':_0x334bc7=>{const _0xd53cc9=_0x592ef6;_0x11afaa({'conjunction':(_0x1c130c==null?void 0x0:_0x1c130c['conjunction'])??_0x4854b1[_0xd53cc9(0x2b0)],'conditions':_0x5bee87[_0xd53cc9(0x1fd)]((_0x146db1,_0x5e1e40)=>_0x5e1e40===_0x5b059d?{..._0x146db1,'operand':_0x334bc7}:_0x146db1)}),_0x2a2d56(null);}}),_0x24ac3c)]});}function di({fields:_0x985c85,filter:_0xdff69e,onChange:_0x178b7d,onClear:_0x524108}){const _0x53db98=_0xbfff20;let _0x2dd381=_0x29f087(_0x2989fb);return _0x1108cb(_0x53db98(0x1e8),{'children':[_0x1c53e9(_0x40f4ca,{'fields':_0x985c85,'value':_0xdff69e??{'conjunction':_0x4854b1[_0x53db98(0x2b0)],'conditions':[]},'onChange':_0x178b7d}),_0x1c53e9(_0x6d25a2,{'onClick':_0x524108,'children':_0x2dd381['t'](_0x53db98(0x272))})]});}function fi({base:_0x1e66d9,chartRuntime:_0x1b94f8,onChange:_0x290d5b,onClose:_0x2ee278,onSelectBackgroundImage:_0x1ed1ef,onSelectImage:_0x4d5607,unitId:_0x3e6d5d,widget:_0x383b4c}){const _0x256852=_0xbfff20;let _0x36e8ae=_0x29f087(_0x2220df),_0x25feec=_0x29f087(_0x2989fb),_0x239e0d=_0x1e66d9['getSnapshot'](),_0x457123=_0x256852(0x335)in _0x383b4c?_0x239e0d[_0x256852(0x3df)][_0x383b4c[_0x256852(0x335)]]:void 0x0,_0x2df438=_0x383b4c[_0x256852(0x427)]===_0x1402ed[_0x256852(0x3c8)]?_0x457123==null?void 0x0:_0x457123[_0x256852(0x2b9)][_0x383b4c['pivotViewId']]:void 0x0,_0x33e563=_0x25feec['t'](yi(_0x383b4c)),_0x1fe8ee=_0x1108cb(_0x256852(0x1fb),{'data-dashboard-inspector':!0x0,'className':_0x256852(0x20a),'children':[_0x383b4c[_0x256852(0x427)]===_0x1402ed[_0x256852(0x3c8)]&&(vi(_0x2df438)&&_0x1b94f8?_0x1c53e9(ai,{'runtime':_0x1b94f8,'sourceChart':_0x2df438['config'][_0x256852(0x252)],'sourceName':((_0x457123==null?void 0x0:_0x457123['name'])??'')+_0x256852(0x2db)+_0x2df438['name'],'widget':_0x383b4c,'onChange':_0x290d5b,'onEditData':()=>{const _0x220b91=_0x256852;_0x36e8ae['executeCommand'](_0x24a280['id'],{'unitId':_0x3e6d5d,'tableId':_0x383b4c[_0x220b91(0x335)],'viewId':_0x383b4c[_0x220b91(0x1b6)]})[_0x220b91(0x433)](()=>void 0x0);}}):_0x1c53e9(gi,{'message':vi(_0x2df438)?_0x25feec['t']('bases-dashboard-ui.dashboardInspector.loading'):_0x25feec['t'](_0x256852(0x1ad))})),_0x383b4c[_0x256852(0x427)]===_0x1402ed[_0x256852(0x1d9)]&&_0x1c53e9(ci,{'base':_0x1e66d9,'widget':_0x383b4c,'onChange':_0x290d5b,'onSelectBackgroundImage':_0x1ed1ef}),_0x383b4c[_0x256852(0x427)]===_0x1402ed[_0x256852(0x287)]&&_0x1c53e9(mi,{'base':_0x1e66d9,'onChange':_0x290d5b,'widget':_0x383b4c}),_0x383b4c['type']===_0x1402ed[_0x256852(0x194)]&&_0x1c53e9(hi,{'onChange':_0x290d5b,'widget':_0x383b4c}),_0x383b4c[_0x256852(0x427)]===_0x1402ed[_0x256852(0x471)]&&_0x1c53e9(pi,{'onChange':_0x290d5b,'onSelectImage':_0x4d5607,'widget':_0x383b4c})]});return _0x1c53e9(_0xbfe7,{'title':_0x33e563,'onClose':_0x2ee278,'children':_0x1fe8ee});}function pi({onChange:_0x30565e,onSelectImage:_0x2af728,widget:_0x56d5fd}){const _0x38daef=_0xbfff20;let _0x123648=_0x29f087(_0x2989fb);return _0x1108cb(_0x38daef(0x1e8),{'className':_0x38daef(0x481),'children':[_0x1108cb(_0x6d25a2,{'className':_0x38daef(0x449),'onClick':()=>_0x2af728()[_0x38daef(0x271)](_0x36e2a0=>_0x36e2a0&&_0x30565e({..._0x56d5fd,'source':_0x36e2a0[_0x38daef(0x2ad)],'sourceType':_0x36e2a0[_0x38daef(0x18c)],'alt':_0x36e2a0[_0x38daef(0x3ca)]}))[_0x38daef(0x433)](()=>void 0x0),'children':[_0x1c53e9(_0x34be53,{}),_0x123648['t'](_0x38daef(0x3b0))]}),_0x1108cb('label',{'className':_0x38daef(0x277),'children':[_0x1c53e9(_0x38daef(0x213),{'children':_0x123648['t'](_0x38daef(0x28a))}),_0x1c53e9(_0x4fe720,{'items':[{'value':'cover','label':_0x123648['t'](_0x38daef(0x22f))},{'value':'repeat','label':_0x123648['t'](_0x38daef(0x1de))},{'value':'original','label':_0x123648['t'](_0x38daef(0x3db))}],'value':_0x56d5fd['displayMode']??_0x38daef(0x2b8),'onChange':_0x32c9e9=>_0x30565e({..._0x56d5fd,'displayMode':_0x32c9e9})[_0x38daef(0x433)](()=>void 0x0)})]})]});}function mi({base:_0x41b691,onChange:_0x48de97,widget:_0xdfe8fa}){const _0x25a205=_0xbfff20;let _0x542184=_0x41b691['getSnapshot']()[_0x25a205(0x3df)][_0xdfe8fa[_0x25a205(0x335)]],_0x238105=_0x542184==null?void 0x0:_0x542184[_0x25a205(0x18e)][_0x25a205(0x1ac)](_0x546a0d=>_0x542184[_0x25a205(0x2b9)][_0x546a0d]),_0x20875c=_0x238105?_0x542184==null?void 0x0:_0x542184[_0x25a205(0x2b9)][_0x238105]:void 0x0,_0x473718=_0x542184&&_0x20875c?_0x173f22(_0x542184,_0x20875c):[];return _0x1c53e9(di,{'fields':_0x473718,'filter':_0xdfe8fa[_0x25a205(0x2be)],'onChange':_0x15c56d=>_0x48de97({..._0xdfe8fa,'filter':_0x15c56d})[_0x25a205(0x433)](()=>void 0x0),'onClear':()=>_0x48de97({..._0xdfe8fa,'filter':null})['catch'](()=>void 0x0)});}function hi({onChange:_0x4216aa,widget:_0x1b73f3}){const _0xd16fbe=_0xbfff20;let _0x21c41c=_0x29f087(_0x2989fb),_0x4dacd7=_0x29f087(_0x3fdc71),_0x2732c4=_0x39908a(()=>_0x4dacd7[_0xd16fbe(0x1d1)],_0x4dacd7[_0xd16fbe(0x21f)](),!0x1,[_0x4dacd7]),_0x6d0010=Vr(_0x1b73f3),_0x17c7d8=_0x16bfd0=>_0x4216aa({..._0x1b73f3,'appearance':{..._0x6d0010,..._0x16bfd0}})[_0xd16fbe(0x433)](()=>void 0x0);return _0x1108cb('div',{'className':_0xd16fbe(0x442),'children':[_0x1c53e9(_0x435e56,{'className':'univer-max-h-40\x20univer-text-base','defaultValue':Hr(_0x1b73f3[_0xd16fbe(0x27c)]),'rows':0x8,'onBlur':_0x2fcd4d=>_0x4216aa({..._0x1b73f3,'document':Ur(_0x1b73f3[_0xd16fbe(0x27c)],_0x2fcd4d[_0xd16fbe(0x1cb)][_0xd16fbe(0x1b5)])})[_0xd16fbe(0x433)](()=>void 0x0)}),_0x1c53e9(_0x4931cb,{'emptyLabel':_0x21c41c['t'](_0xd16fbe(0x41b)),'label':_0x21c41c['t'](_0xd16fbe(0x41b)),'pickerFallbackValue':_0x2732c4[_0xd16fbe(0x45c)][0x0],'resetLabel':_0x21c41c['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x6d0010[_0xd16fbe(0x33d)]??null,'onChange':_0x303f30=>_0x17c7d8({'backgroundColor':_0x303f30??void 0x0})}),_0x1c53e9(_0x4931cb,{'emptyLabel':_0x21c41c['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x21c41c['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x2732c4[_0xd16fbe(0x45c)][0x3e8],'resetLabel':_0x21c41c['t'](_0xd16fbe(0x272)),'value':_0x6d0010[_0xd16fbe(0x42f)]??null,'onChange':_0x10fac1=>_0x17c7d8({'textColor':_0x10fac1??void 0x0})}),_0x1c53e9(_i,{'label':_0x21c41c['t'](_0xd16fbe(0x316)),'children':_0x1c53e9(_0x4fe720,{'items':[{'value':_0xd16fbe(0x297),'label':_0x21c41c['t'](_0xd16fbe(0x3ed))},{'value':_0xd16fbe(0x34f),'label':_0x21c41c['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':'right','label':_0x21c41c['t'](_0xd16fbe(0x24b))}],'value':_0x6d0010[_0xd16fbe(0x2c1)],'onChange':_0x13ea9f=>_0x17c7d8({'alignment':_0x13ea9f})})}),_0x1108cb(_i,{'label':_0x21c41c['t'](_0xd16fbe(0x32f)),'children':[_0x1c53e9(_0x4fe720,{'items':[{'value':_0xd16fbe(0x2fd),'label':_0x21c41c['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':_0xd16fbe(0x22d),'label':_0x21c41c['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x6d0010[_0xd16fbe(0x1ab)],'onChange':_0x3923a9=>_0x17c7d8({'fontSizeMode':_0x3923a9})}),_0x6d0010[_0xd16fbe(0x1ab)]===_0xd16fbe(0x22d)&&_0x1c53e9(_0x5a3ae3,{'className':_0xd16fbe(0x313),'min':0xa,'max':0x78,'value':_0x6d0010[_0xd16fbe(0x320)],'onChange':_0x21dacf=>_0x17c7d8({'fontSize':_0x21dacf??0x12,'fontSizeMode':_0xd16fbe(0x22d)})})]})]});}function gi({message:_0x4d22e4}){const _0x382c92=_0xbfff20;return _0x1c53e9(_0x382c92(0x1e8),{'className':_0x382c92(0x1bf),'children':_0x4d22e4});}function _i({children:_0x26d107,label:_0x1ae286}){const _0x4b23a5=_0xbfff20;return _0x1108cb(_0x4b23a5(0x1e8),{'role':_0x4b23a5(0x161),'aria-':!0x0,'className':_0x4b23a5(0x277),'children':[_0x1c53e9('span',{'children':_0x1ae286}),_0x26d107]});}function vi(_0x291aa5){const _0x451283=_0xbfff20;return(_0x291aa5==null?void 0x0:_0x291aa5[_0x451283(0x427)])===_0x54a718[_0x451283(0x2c9)]&&typeof _0x291aa5[_0x451283(0x167)]==_0x451283(0x235)&&_0x291aa5['config']!==null&&_0x451283(0x274)in _0x291aa5['config']&&_0x451283(0x252)in _0x291aa5[_0x451283(0x167)];}function yi(_0x1c4c68){const _0x2abaaf=_0xbfff20;switch(_0x1c4c68[_0x2abaaf(0x427)]){case _0x1402ed[_0x2abaaf(0x3c8)]:return _0x2abaaf(0x303);case _0x1402ed[_0x2abaaf(0x287)]:return'bases-dashboard-ui.dashboard.tableFilter';case _0x1402ed[_0x2abaaf(0x194)]:return _0x2abaaf(0x3ba);case _0x1402ed[_0x2abaaf(0x471)]:return _0x2abaaf(0x279);case _0x1402ed[_0x2abaaf(0x1d9)]:return _0x2abaaf(0x47b);}}function bi({onDelete:_0x1853cb,onEdit:_0x11ca52,onMoveUp:_0x488931,onMoveDown:_0x23c9ba}){const _0x374182=_0xbfff20;let [_0x1ac562,_0x1826a8]=_0x34e679(!0x1),_0x4d1c59=_0x29f087(_0x2989fb),_0x53c89a=_0x4d1c59['t'](_0x374182(0x2a1)),_0x2ac33e=_0x4d1c59['t'](_0x374182(0x164)),_0x30c3d4=_0x4d1c59['t']('bases-dashboard-ui.dashboard.widgetActions'),_0x10b322=[{'type':_0x374182(0x2c2),'children':_0x1108cb(_0x374182(0x213),{'className':_0x374182(0x208),'children':[_0x1c53e9(_0xddf888,{'className':_0x374182(0x305),'aria-hidden':_0x374182(0x354)}),_0x1c53e9(_0x374182(0x213),{'children':_0x53c89a})]}),'onSelect':_0x11ca52},..._0x488931?[{'type':_0x374182(0x2c2),'children':_0x1108cb(_0x374182(0x213),{'className':_0x374182(0x208),'children':[_0x1c53e9(_0x54c046,{'className':_0x374182(0x305),'aria-hidden':_0x374182(0x354)}),_0x1c53e9(_0x374182(0x213),{'children':_0x4d1c59['t'](_0x374182(0x45e))})]}),'onSelect':_0x488931}]:[],..._0x23c9ba?[{'type':'item','children':_0x1108cb('span',{'className':_0x374182(0x208),'children':[_0x1c53e9(_0x55a2db,{'className':'univer-size-4','aria-hidden':'true'}),_0x1c53e9('span',{'children':_0x4d1c59['t'](_0x374182(0x1b4))})]}),'onSelect':_0x23c9ba}]:[],{'type':_0x374182(0x174)},{'type':_0x374182(0x2c2),'variant':_0x374182(0x195),'children':_0x1108cb(_0x374182(0x213),{'className':_0x374182(0x208),'children':[_0x1c53e9(_0x48daea,{'className':_0x374182(0x305),'aria-hidden':'true'}),_0x1c53e9(_0x374182(0x213),{'children':_0x2ac33e})]}),'onSelect':_0x1853cb}];return _0x1c53e9(_0x440082,{'open':_0x1ac562,'onOpenChange':_0x1826a8,'align':_0x374182(0x221),'sideOffset':0x4,'items':_0x10b322['map'](_0x501304=>({..._0x501304,'className':_0x501304[_0x374182(0x427)]===_0x374182(0x2c2)?_0x374182(0x1ef):void 0x0})),'children':_0x1c53e9(_0x6d25a2,{'type':_0x374182(0x2d8),'size':'small','variant':_0x374182(0x173),'onPointerDown':_0x54cc6d=>_0x54cc6d[_0x374182(0x2ea)](),'onClick':()=>_0x1826a8(_0x288069=>!_0x288069),'title':_0x30c3d4,'aria-label':_0x30c3d4,'className':_0x374182(0x346),'children':_0x1c53e9(_0x122b7c,{'className':_0x374182(0x305),'aria-hidden':_0x374182(0x354)})})});}function xi({dashboardId:_0x3dd649,presentation:_0x2eecab=!0x1,unitId:_0x12c6f9}){const _0x10e9c8=_0xbfff20;let _0x2e6ca4=_0x29f087(_0x38337e),_0x36a628=_0x29f087(_0x4b64cf);_0x39908a(_0x36a628['changed$'],0x0);let _0x3adb4f=_0x29f087(_0x2220df),_0x742f5c=_0x29f087(_0x3107a8),_0x3d1a05=_0x29f087(_0x4fbe75),_0x4f1125=_0x29f087(_0x14186a),_0x4b85f6=_0x29f087(_0x2989fb),_0x21da88=_0x29f087(_0x309002),_0x1b980b=_0x29f087(_0x1daf4e),[_0xc8fa12,_0x308e2a]=_0x34e679(!0x1),[_0x191cf7,_0x131139]=_0x34e679(),[_0x94bbec,_0x4f7935]=_0x34e679(!0x1),[_0x1b6ac4,_0x182cc5]=_0x34e679(()=>new Map()),_0x31b78f=_0xdcfb42((_0xb78698,_0x36815a)=>{_0x182cc5(_0x8426be=>{const _0x53d515=_0x5dbe;let _0x1ed7f1=new Map(_0x8426be);return _0x36815a?_0x1ed7f1['set'](_0xb78698,_0x36815a):_0x1ed7f1[_0x53d515(0x375)](_0xb78698),_0x1ed7f1;});},[]),_0x2a53f1=_0x39908a(()=>_0x21da88[_0x10e9c8(0x2bc)][_0x10e9c8(0x472)](_0x3fca8e(()=>_0x21da88[_0x10e9c8(0x34a)](_0x12c6f9,_0x3dd649))),_0x21da88[_0x10e9c8(0x34a)](_0x12c6f9,_0x3dd649),!0x1,[_0x3dd649,_0x21da88,_0x12c6f9]),_0x1d493e=_0x4f1125[_0x10e9c8(0x454)](_0x12c6f9,_0x37ea54[_0x10e9c8(0x2e2)]),_0x119de3=_0x39908a(()=>_0x1b980b[_0x10e9c8(0x29c)],{'undos':0x0,'redos':0x0},!0x1,[_0x1b980b]),_0x2f334c=_r(_0x12c6f9,_0x3dd649);if(_0x436796(()=>{const _0x4b5854=_0x10e9c8;_0x4f1125['setCurrentUnitForType'](_0x12c6f9),_0x4f1125[_0x4b5854(0x177)](_0x12c6f9);},[_0x4f1125,_0x12c6f9]),!_0x2a53f1||!_0x1d493e)return null;let _0x16f237={'unitId':_0x12c6f9,'objectId':_0x3f3aa0(_0x3dd649),'objectType':_0x26ad9b[_0x10e9c8(0x24f)]},_0x28a74d=(_0x5a11f5,_0xbddb21)=>{const _0x423b1d=_0x10e9c8;let _0x871622=[..._0x2a53f1[_0x423b1d(0x3b1)]],_0x202374=_0x871622[_0x423b1d(0x494)](_0x5a11f5),_0x365f27=_0x202374+_0xbddb21;if(!(_0x202374<0x0||_0x365f27<0x0||_0x365f27>=_0x871622['length']))return[_0x871622[_0x202374],_0x871622[_0x365f27]]=[_0x871622[_0x365f27],_0x871622[_0x202374]],_0x3adb4f[_0x423b1d(0x42e)](_0x39c855['id'],{'unitId':_0x12c6f9,'dashboard':{..._0x2a53f1,'widgetOrder':_0x871622}});},_0x7963f7=_0x36ff41=>_0x3adb4f['executeCommand'](_0x1c8540['id'],{'unitId':_0x12c6f9,'dashboardId':_0x3dd649,'widget':_0x36ff41})[_0x10e9c8(0x433)](()=>void 0x0),_0x5a7293=(_0x3416a8,_0x462cf6,_0x4d467e)=>{const _0x22f873=_0x10e9c8;let _0x132c22=Math[_0x22f873(0x43f)](0x0,..._0x2a53f1[_0x22f873(0x3b1)]['flatMap'](_0x2eeb0c=>{const _0x3b6f77=_0x22f873;var _0x26e681;let _0x1695c7=(_0x26e681=_0x2a53f1[_0x3b6f77(0x280)][_0x2eeb0c])==null?void 0x0:_0x26e681[_0x3b6f77(0x2fc)];return _0x1695c7?[_0x1695c7['row']+_0x1695c7['rowSpan']]:[];})),_0x328dc1='dashboard-widget-'+_0xd28735(0x8),_0x1b8c93={'column':0x0,'row':_0x132c22,'columnSpan':_0x462cf6,'rowSpan':_0x4d467e};switch(_0x3416a8[_0x22f873(0x427)]){case _0x1402ed[_0x22f873(0x3c8)]:return _0x7963f7({..._0x3416a8,'id':_0x328dc1,'layout':_0x1b8c93});case _0x1402ed[_0x22f873(0x287)]:return _0x7963f7({..._0x3416a8,'id':_0x328dc1,'layout':_0x1b8c93});case _0x1402ed[_0x22f873(0x194)]:return _0x7963f7({..._0x3416a8,'id':_0x328dc1,'layout':_0x1b8c93});case _0x1402ed[_0x22f873(0x471)]:return _0x7963f7({..._0x3416a8,'id':_0x328dc1,'layout':_0x1b8c93});case _0x1402ed[_0x22f873(0x1d9)]:return _0x7963f7({..._0x3416a8,'id':_0x328dc1,'layout':_0x1b8c93});}},_0x33e07f=_0x1d493e[_0x10e9c8(0x373)](),_0x397cdf=_0x33e07f[_0x10e9c8(0x32d)][_0x10e9c8(0x31f)](_0x52fe67=>{const _0x3b2c39=_0x10e9c8;let _0x48c8c9=_0x33e07f['tables'][_0x52fe67];if(!_0x48c8c9)return[];let _0x13040a=_0x48c8c9['viewOrder'][_0x3b2c39(0x31f)](_0x51fa27=>{const _0x17341a=_0x3b2c39;let _0x9b3127=_0x48c8c9[_0x17341a(0x2b9)][_0x51fa27];return ki(_0x9b3127)?[{'type':_0x17341a(0x2c2),'children':_0x9b3127[_0x17341a(0x3ca)],'onSelect':()=>_0x5a7293({'type':_0x1402ed[_0x17341a(0x3c8)],'tableId':_0x52fe67,'pivotViewId':_0x51fa27,'chart':{..._0x9b3127[_0x17341a(0x167)][_0x17341a(0x252)]}},0x6,0xa)}]:[];});return[{'type':_0x3b2c39(0x466),'children':_0x48c8c9[_0x3b2c39(0x3ca)],'options':[..._0x13040a,..._0x13040a[_0x3b2c39(0x2df)]?[{'type':_0x3b2c39(0x174)}]:[],{'type':'item','children':_0x4b85f6['t']('bases-dashboard-ui.dashboard.tableFilter'),'onSelect':()=>_0x5a7293({'type':_0x1402ed[_0x3b2c39(0x287)],'tableId':_0x52fe67,'filter':null},0x6,0x8)}]}];}),_0x4a32eb=[..._0x397cdf,..._0x397cdf[_0x10e9c8(0x2df)]?[{'type':_0x10e9c8(0x174)}]:[],{'type':_0x10e9c8(0x2c2),'children':_0x4b85f6['t'](_0x10e9c8(0x3ba)),'onSelect':()=>_0x5a7293({'type':_0x1402ed[_0x10e9c8(0x194)],'document':Ti()},0x4,0x6)},{'type':_0x10e9c8(0x2c2),'children':_0x4b85f6['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>Ei(_0x742f5c)['then'](_0x1ef9c7=>_0x1ef9c7&&_0x5a7293({'type':_0x1402ed[_0x10e9c8(0x471)],'source':_0x1ef9c7[_0x10e9c8(0x2ad)],'sourceType':_0x1ef9c7[_0x10e9c8(0x18c)],'alt':_0x1ef9c7[_0x10e9c8(0x3ca)],'displayMode':_0x10e9c8(0x2b8)},0x4,0x6))},{'type':_0x10e9c8(0x2c2),'children':_0x4b85f6['t']('bases-dashboard-ui.dashboard.formulaShape'),'onSelect':()=>{const _0xb35c23=_0x10e9c8;let _0x587101=_0x33e07f[_0xb35c23(0x32d)][_0xb35c23(0x1ac)](_0x2969f9=>_0x33e07f[_0xb35c23(0x3df)][_0x2969f9]);_0x587101&&_0x5a7293({'type':_0x1402ed[_0xb35c23(0x1d9)],'tableId':_0x587101,'shapeType':_0xed2d79['RoundRect'],'shapeData':_0x18c256(),'description':_0x4b85f6['t'](_0xb35c23(0x47b))},0x4,0x6);}}],_0x43476a=_0x191cf7?_0x2a53f1[_0x10e9c8(0x280)][_0x191cf7]:void 0x0,_0xb72483=()=>_0x4f7935(_0x26153e=>!_0x26153e),_0x5a7b09=_0x2eecab||_0x94bbec,_0x47e4b7=_0x2f334c&&!_0x5a7b09;return _0x1c53e9(qr,{'children':_0x1108cb(_0x10e9c8(0x1e8),{'className':_0x10e9c8(0x4ab)+(_0x94bbec?_0x10e9c8(0x3e8):'univer-relative\x20univer-z-10')+_0x10e9c8(0x2b4),'children':[_0x94bbec&&_0x1c53e9(_0x6d25a2,{'onClick':()=>_0x4f7935(!0x1),'children':_0x4b85f6['t'](_0x10e9c8(0x19a))}),!_0x5a7b09&&_0x1108cb('header',{'className':_0x10e9c8(0x180),'children':[_0x1c53e9(_0x396df3,{'className':_0x10e9c8(0x3ec)}),_0x1c53e9('h2',{'className':_0x10e9c8(0x2e8),'children':_0x2a53f1['name']}),_0x36a628[_0x10e9c8(0x26e)](_0x16f237)&&_0x1c53e9(_0x6d25a2,{'variant':_0x10e9c8(0x173),'disabled':!_0x36a628[_0x10e9c8(0x395)](_0x16f237),'aria-label':_0x4b85f6['t'](_0x10e9c8(0x206)),'onClick':()=>{const _0x3f74e1=_0x10e9c8;_0x7236fe(_0x2e6ca4,{'target':_0x16f237,'name':_0x2a53f1[_0x3f74e1(0x3ca)],'commandId':_0x501d41['id'],'exists':()=>!!_0x21da88[_0x3f74e1(0x34a)](_0x12c6f9,_0x3dd649)});},'children':_0x1c53e9(_0x2ff091,{})}),_0x1c53e9(_0x36e7c3,{'unitId':_0x12c6f9}),_0x1c53e9(_0x6d25a2,{'type':'button','size':_0x10e9c8(0x189),'variant':_0x10e9c8(0x173),'aria-label':_0x4b85f6['t']('bases-dashboard-ui.dashboard.undo'),'disabled':!_0x2f334c||_0x119de3['undos']===0x0,'onClick':()=>_0x3adb4f[_0x10e9c8(0x42e)](_0x38c4d5['id'])[_0x10e9c8(0x433)](()=>void 0x0),'children':_0x1c53e9(_0x5d8a74,{})}),_0x1c53e9(_0x6d25a2,{'type':'button','size':_0x10e9c8(0x189),'variant':_0x10e9c8(0x173),'aria-label':_0x4b85f6['t'](_0x10e9c8(0x1c2)),'disabled':!_0x2f334c||_0x119de3[_0x10e9c8(0x47c)]===0x0,'onClick':()=>_0x3adb4f['executeCommand'](_0x413296['id'])[_0x10e9c8(0x433)](()=>void 0x0),'children':_0x1c53e9(_0x421b18,{})}),_0x1c53e9(_0x6d25a2,{'type':_0x10e9c8(0x2d8),'size':_0x10e9c8(0x189),'variant':'text','aria-label':_0x4b85f6['t'](_0x10e9c8(0x1e2)),'onClick':_0xb72483,'children':_0x1c53e9(_0x275a4b,{})}),_0x1c53e9(Yr,{'items':_0x4a32eb,'children':_0x1108cb(_0x6d25a2,{'variant':_0x10e9c8(0x3d2),'disabled':!_0x2f334c,'children':[_0x1c53e9(_0x34be53,{}),_0x4b85f6['t'](_0x10e9c8(0x486))]})})]}),_0x1108cb(_0x10e9c8(0x1e8),{'className':_0x10e9c8(0x447),'children':[_0x1c53e9(_0x10e9c8(0x1e8),{'className':_0x10e9c8(0x3a9),'children':_0x1c53e9(Gr,{'dashboard':_0x2a53f1,'editable':_0x47e4b7,'widgetLabel':_0xc9eaf9=>_0x4b85f6['t'](Oi(_0xc9eaf9[_0x10e9c8(0x427)])),'selectedWidgetId':_0x47e4b7?_0x191cf7:void 0x0,'onSelectWidget':_0x47e4b7?_0x409e16=>{_0x131139(_0x409e16),_0x409e16||_0x308e2a(!0x1);}:void 0x0,'renderWidget':_0x59b09b=>_0x1c53e9(Si,{'base':_0x1d493e,'dashboard':_0x2a53f1,'unitId':_0x12c6f9,'widget':_0x59b09b,'onChange':_0x7963f7,'onChartRuntimeChange':_0x31b78f}),'renderWidgetActions':_0x40c41c=>_0x1c53e9(bi,{'onMoveUp':_0x2a53f1[_0x10e9c8(0x3b1)][_0x10e9c8(0x494)](_0x40c41c['id'])>0x0?()=>_0x28a74d(_0x40c41c['id'],-0x1):void 0x0,'onMoveDown':_0x2a53f1[_0x10e9c8(0x3b1)][_0x10e9c8(0x494)](_0x40c41c['id'])<_0x2a53f1[_0x10e9c8(0x3b1)]['length']-0x1?()=>_0x28a74d(_0x40c41c['id'],0x1):void 0x0,'onEdit':()=>{_0x131139(_0x40c41c['id']),_0x308e2a(!0x0);},'onDelete':()=>{const _0x132ebf=_0x10e9c8;_0x191cf7===_0x40c41c['id']&&(_0x131139(void 0x0),_0x308e2a(!0x1)),_0x3adb4f[_0x132ebf(0x42e)](_0x55f0a4['id'],{'unitId':_0x12c6f9,'dashboardId':_0x3dd649,'widgetId':_0x40c41c['id']})[_0x132ebf(0x433)](()=>void 0x0);}})})}),_0x47e4b7&&_0xc8fa12&&_0x43476a&&_0x1c53e9(fi,{'base':_0x1d493e,'chartRuntime':_0x1b6ac4[_0x10e9c8(0x197)](_0x43476a['id']),'unitId':_0x12c6f9,'widget':_0x43476a,'onChange':_0x7963f7,'onClose':()=>_0x308e2a(!0x1),'onSelectBackgroundImage':()=>Di(_0x3d1a05),'onSelectImage':()=>Ei(_0x742f5c)})]})]})});}function Si({base:_0x1c678b,dashboard:_0x188842,onChange:_0x36fd22,onChartRuntimeChange:_0x5c9156,unitId:_0x4725a7,widget:_0x16d3a6}){const _0x519052=_0xbfff20;let _0x378f34=_0x548c0f(()=>_0x188842[_0x519052(0x3b1)][_0x519052(0x31f)](_0x304428=>{const _0x30823f=_0x519052;let _0x120672=_0x188842[_0x30823f(0x280)][_0x304428];return(_0x120672==null?void 0x0:_0x120672[_0x30823f(0x427)])===_0x1402ed[_0x30823f(0x287)]&&_0x120672[_0x30823f(0x335)]===('tableId'in _0x16d3a6?_0x16d3a6[_0x30823f(0x335)]:'')&&_0x120672['filter']?[_0x120672['filter']]:[];}),[_0x188842,_0x16d3a6]);switch(_0x16d3a6[_0x519052(0x427)]){case _0x1402ed[_0x519052(0x3c8)]:return _0x1c53e9(Rr,{'filters':_0x378f34,'unitId':_0x4725a7,'widget':_0x16d3a6,'onRuntimeChange':_0x5c9156});case _0x1402ed[_0x519052(0x287)]:return _0x1c53e9(ui,{'fields':Ci(_0x1c678b,_0x16d3a6[_0x519052(0x335)]),'filter':_0x16d3a6['filter'],'onChange':_0x5e16f6=>_0x36fd22({..._0x16d3a6,'filter':_0x5e16f6})['catch'](()=>void 0x0)});case _0x1402ed[_0x519052(0x194)]:return _0x1c53e9(Wr,{'widget':_0x16d3a6});case _0x1402ed['Image']:return _0x1c53e9(wi,{'widget':_0x16d3a6});case _0x1402ed[_0x519052(0x1d9)]:return _0x1c53e9(Or,{'dashboardId':_0x188842['id'],'unitId':_0x4725a7,'widget':_0x16d3a6});}}function Ci(_0x14185c,_0x11eb3b){const _0x34c892=_0xbfff20;let _0x2044ab=_0x14185c['getSnapshot']()['tables'][_0x11eb3b],_0x4f739d=_0x2044ab==null?void 0x0:_0x2044ab[_0x34c892(0x18e)][_0x34c892(0x1ac)](_0x4b1215=>_0x2044ab['views'][_0x4b1215]),_0x444a6e=_0x4f739d?_0x2044ab==null?void 0x0:_0x2044ab['views'][_0x4f739d]:void 0x0;return _0x2044ab&&_0x444a6e?_0x173f22(_0x2044ab,_0x444a6e):[];}function wi({widget:_0x39d796}){const _0x4b29f8=_0xbfff20;let _0x40cd00=_0x29f087(_0x3107a8),[_0x4ef6e4,_0x5c0e2a]=_0x34e679(_0x39d796[_0x4b29f8(0x18c)]===_0x18951a[_0x4b29f8(0x202)]?'':_0x39d796['source']);return _0x436796(()=>{const _0x5c4622=_0x4b29f8;let _0xbf56e2=!0x0;return _0x40cd00['getAttachmentUrl'](_0x39d796['source'],_0x39d796[_0x5c4622(0x18c)])[_0x5c4622(0x271)](_0x29f27d=>{_0xbf56e2&&_0x5c0e2a(_0x29f27d);})[_0x5c4622(0x433)](()=>void 0x0),()=>{_0xbf56e2=!0x1;};},[_0x40cd00,_0x39d796[_0x4b29f8(0x2ad)],_0x39d796['sourceType']]),_0x4ef6e4?_0x1c53e9(_0x4b29f8(0x1e8),{'role':_0x39d796[_0x4b29f8(0x1e4)]?_0x4b29f8(0x15e):void 0x0,'aria-label':_0x39d796[_0x4b29f8(0x1e4)]||void 0x0,'data-dashboard-image':_0x39d796['id'],'className':_0x4b29f8(0x453),'style':yr(_0x4ef6e4,_0x39d796[_0x4b29f8(0x463)])}):null;}function Ti(){let _0xcc7b22=_0x467708(new Set());return{'id':'dashboard-text-'+_0xd28735(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0xcc7b22}]},'documentStyle':{}};}function Ei(_0x3bfb31){return new Promise(_0xf58ad=>{const _0x1c4962=_0x5dbe;let _0x2d5bd2=document[_0x1c4962(0x457)]('input');_0x2d5bd2[_0x1c4962(0x427)]=_0x1c4962(0x1df),_0x2d5bd2[_0x1c4962(0x46d)]=_0x1c4962(0x46b),_0x2d5bd2[_0x1c4962(0x410)](_0x1c4962(0x17f),()=>{const _0x6ddf13=_0x1c4962;var _0xda6679;let _0x565e0b=(_0xda6679=_0x2d5bd2[_0x6ddf13(0x34c)])==null?void 0x0:_0xda6679[0x0];_0x565e0b?_0x3bfb31['saveAttachment'](_0x565e0b)[_0x6ddf13(0x271)](_0x3dedc3=>{const _0x327066=_0x6ddf13;!_0x3dedc3[_0x327066(0x2ad)]||_0x3dedc3[_0x327066(0x18c)]===void 0x0?_0xf58ad(null):_0xf58ad({'name':_0x3dedc3[_0x327066(0x3ca)],'source':_0x3dedc3[_0x327066(0x2ad)],'sourceType':_0x3dedc3[_0x327066(0x18c)]});})['catch'](()=>_0xf58ad(null)):_0xf58ad(null);},{'once':!0x0}),_0x2d5bd2[_0x1c4962(0x2a5)]();});}function Di(_0x33bb27){return new Promise(_0x21a168=>{const _0x39efb8=_0x5dbe;let _0xcd6096=document[_0x39efb8(0x457)]('input');_0xcd6096[_0x39efb8(0x427)]=_0x39efb8(0x1df),_0xcd6096[_0x39efb8(0x46d)]=_0x39efb8(0x46b),_0xcd6096['addEventListener'](_0x39efb8(0x17f),()=>{const _0x31c208=_0x39efb8;var _0x38b344;let _0x38f852=(_0x38b344=_0xcd6096[_0x31c208(0x34c)])==null?void 0x0:_0x38b344[0x0];_0x38f852?_0x33bb27['saveImage'](_0x38f852)[_0x31c208(0x271)](_0x45bb75=>{const _0x51534d=_0x31c208;if(!(_0x45bb75!=null&&_0x45bb75['source']))_0x21a168(null);else{if(_0x45bb75['base64Cache']){let _0x16b8e0=new Image();_0x16b8e0[_0x51534d(0x175)]=_0x45bb75[_0x51534d(0x1c7)],_0x33bb27[_0x51534d(0x388)](_0x45bb75['source'],_0x45bb75[_0x51534d(0x172)],_0x16b8e0);}_0x21a168({'source':_0x45bb75[_0x51534d(0x2ad)],'sourceType':_0x45bb75[_0x51534d(0x172)]});}})['catch'](()=>_0x21a168(null)):_0x21a168(null);},{'once':!0x0}),_0xcd6096[_0x39efb8(0x2a5)]();});}function Oi(_0x47accf){const _0x588d7f=_0xbfff20;switch(_0x47accf){case _0x1402ed['PivotChart']:return _0x588d7f(0x303);case _0x1402ed[_0x588d7f(0x287)]:return _0x588d7f(0x319);case _0x1402ed['Text']:return _0x588d7f(0x3ba);case _0x1402ed[_0x588d7f(0x471)]:return'bases-dashboard-ui.dashboard.image';case _0x1402ed[_0x588d7f(0x1d9)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function ki(_0x20e6aa){const _0xc999b=_0xbfff20;return(_0x20e6aa==null?void 0x0:_0x20e6aa[_0xc999b(0x427)])===_0x54a718[_0xc999b(0x2c9)]&&typeof _0x20e6aa['config']==_0xc999b(0x235)&&_0x20e6aa[_0xc999b(0x167)]!==null&&_0xc999b(0x274)in _0x20e6aa['config']&&_0xc999b(0x252)in _0x20e6aa[_0xc999b(0x167)];}function Ai({pivot:_0x2ec3d7,view:_0xf11c19}){const _0x4f408c=_0xbfff20;let _0x19c95d=_0x29f087(_0x2989fb),_0x23f3a2=_0x548c0f(()=>ji(_0xf11c19,_0x2ec3d7,_0x19c95d['t'](_0x4f408c(0x3f1))),[_0x19c95d,_0x2ec3d7,_0xf11c19]);return _0x1108cb(_0x4f408c(0x1e8),{'className':_0x4f408c(0x418),'children':[_0x23f3a2[_0x4f408c(0x338)][_0x4f408c(0x2df)]>0x0&&_0x1c53e9(_0x4f408c(0x405),{'className':_0x4f408c(0x168),'children':_0x1c53e9(_0x4f408c(0x3c5),{'children':Mi(_0x23f3a2[_0x4f408c(0x338)])})}),_0x1108cb(_0x4f408c(0x405),{'className':_0x4f408c(0x440),'children':[_0x23f3a2[_0x4f408c(0x22e)]>0x0&&_0x1c53e9(_0x4f408c(0x1dd),{'className':_0x4f408c(0x36d),'children':Mi(_0x23f3a2['rows']['slice'](0x0,_0x23f3a2[_0x4f408c(0x22e)]))}),_0x1c53e9(_0x4f408c(0x3c5),{'children':Mi(_0x23f3a2['rows'][_0x4f408c(0x26a)](_0x23f3a2['headerRowCount']))})]})]});}function ji(_0x465378,_0x1aa74b,_0x4dc8ce){const _0x1e1e9c=_0xbfff20;let _0xab333=_0x465378[_0x1e1e9c(0x3f9)][_0x1e1e9c(0x24d)],_0x37eef8=_0x465378[_0x1e1e9c(0x40d)][_0x1e1e9c(0x39f)],_0x1bfb3f=_0x465378[_0x1e1e9c(0x400)][_0x1e1e9c(0x24d)],_0x21d788=_0x465378['dataView'][_0x1e1e9c(0x39f)],_0x3007ed=Array[_0x1e1e9c(0x2a7)]({'length':_0xab333+_0x1bfb3f},(_0x4e250f,_0xf54998)=>Array[_0x1e1e9c(0x2a7)]({'length':_0x37eef8+_0x21d788},(_0xdd16f0,_0x5d1ab0)=>{const _0xa07144=_0x1e1e9c;var _0x5b0bbf,_0x2b2cc7;if(_0xf54998<_0xab333&&_0x5d1ab0<_0x37eef8)return Ni(_0x465378[_0xa07144(0x437)],_0xf54998,_0x5d1ab0,void 0x0,_0x4dc8ce,!0x0,!0x1,'corner:'+_0xf54998+':'+_0x5d1ab0);if(_0xf54998<_0xab333){var _0x10c556;let _0x32d603=_0x5d1ab0-_0x37eef8,_0x1fe4bd=(_0x10c556=_0x465378[_0xa07144(0x3f9)][_0xa07144(0x285)][_0xf54998])==null?void 0x0:_0x10c556[_0xa07144(0x2c6)];return Ni(_0x465378[_0xa07144(0x3f9)],_0xf54998,_0x32d603,_0x1fe4bd?_0x465378[_0xa07144(0x328)][_0x1fe4bd]:void 0x0,_0x4dc8ce,!0x0,Ii(_0x465378[_0xa07144(0x3f9)][_0xa07144(0x1a2)][_0x32d603]),_0xa07144(0x2bf)+_0xf54998+':'+_0x32d603);}if(_0x5d1ab0<_0x37eef8){var _0x16b0b3;let _0x37c1b7=_0xf54998-_0xab333,_0x18fcd1=(_0x16b0b3=_0x465378[_0xa07144(0x40d)][_0xa07144(0x285)][_0x5d1ab0])==null?void 0x0:_0x16b0b3['tableFieldId'];return Ni(_0x465378[_0xa07144(0x40d)],_0x37c1b7,_0x5d1ab0,_0x18fcd1?_0x465378['formatMap'][_0x18fcd1]:void 0x0,_0x4dc8ce,!0x0,Ii(_0x465378[_0xa07144(0x40d)][_0xa07144(0x1a2)][_0x37c1b7]),'row:'+_0x37c1b7+':'+_0x5d1ab0);}let _0x158dfd=_0xf54998-_0xab333,_0x5935cc=_0x5d1ab0-_0x37eef8,_0x2800c3=Math[_0xa07144(0x43f)](((_0x5b0bbf=_0x465378[_0xa07144(0x40d)][_0xa07144(0x1a2)][_0x158dfd])==null?void 0x0:_0x5b0bbf[_0xa07144(0x2e1)])??-0x1,((_0x2b2cc7=_0x465378['colView'][_0xa07144(0x1a2)][_0x5935cc])==null?void 0x0:_0x2b2cc7[_0xa07144(0x2e1)])??-0x1),_0x16ce18=_0x1aa74b['valueFields'][_0x2800c3<0x0?0x0:_0x2800c3];return Ni(_0x465378[_0xa07144(0x400)],_0x158dfd,_0x5935cc,_0x16ce18?_0x465378['formatMap'][_0x16ce18]:void 0x0,_0x4dc8ce,!0x1,Ii(_0x465378[_0xa07144(0x40d)][_0xa07144(0x1a2)][_0x158dfd])||Ii(_0x465378['colView'][_0xa07144(0x1a2)][_0x5935cc]),'data:'+_0x158dfd+':'+_0x5935cc);}));return{'headerColumnCount':_0x37eef8,'headerRowCount':_0xab333,'pageRows':_0x465378[_0x1e1e9c(0x334)]['lastRow']<0x0||_0x465378[_0x1e1e9c(0x334)][_0x1e1e9c(0x199)]<0x0?[]:Array['from']({'length':_0x465378[_0x1e1e9c(0x334)][_0x1e1e9c(0x35b)]+0x1},(_0x169259,_0x402f32)=>Array[_0x1e1e9c(0x2a7)]({'length':_0x465378[_0x1e1e9c(0x334)][_0x1e1e9c(0x199)]+0x1},(_0x502931,_0x583ca0)=>Ni(_0x465378[_0x1e1e9c(0x334)],_0x402f32,_0x583ca0,void 0x0,_0x4dc8ce,!0x0,!0x1,_0x1e1e9c(0x23c)+_0x402f32+':'+_0x583ca0))),'rows':_0x3007ed};}function Mi(_0x2f80d0){const _0x3b6550=_0xbfff20;return _0x2f80d0[_0x3b6550(0x1fd)](_0x327cb2=>{var _0x1dcc17;return _0x1c53e9('tr',{'children':_0x327cb2['map'](_0x39e525=>{const _0x56423b=_0x5dbe;let _0x3e2bad=_0x39e525['isHeader']?'th':'td';return _0x1c53e9(_0x3e2bad,{'className':_0x56423b(0x1d2)+(_0x39e525[_0x56423b(0x1b0)]?'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-bg-gray-50\x20univer-font-semibold\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-800\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20':'')+_0x56423b(0x2a4)+(_0x39e525[_0x56423b(0x15b)]?'':'univer-text-right')+_0x56423b(0x24e),'children':_0x39e525[_0x56423b(0x1b5)]},_0x39e525['key']);})},(_0x1dcc17=_0x327cb2[0x0])==null?void 0x0:_0x1dcc17['key']);});}function Ni(_0x446f59,_0x2686f7,_0x4baacc,_0x217dbc,_0x4c2ab9,_0x50fba9,_0x4ca9fc,_0x53c494){const _0x76cf43=_0xbfff20;var _0x30d520;let _0x1acb6a=(_0x30d520=_0x446f59[_0x76cf43(0x490)][_0x2686f7])==null?void 0x0:_0x30d520[_0x4baacc],_0x5067ec=_0x1acb6a==null?void 0x0:_0x1acb6a['s'],_0x2ace40=_0x4ca9fc||_0x5067ec===_0x4b5125[_0x76cf43(0x459)]||_0x5067ec===_0x4b5125[_0x76cf43(0x315)];return{'isHeader':_0x50fba9,'isTotal':_0x2ace40||_0x5067ec===_0x4b5125['Subtotal'],'key':_0x53c494,'style':_0x5067ec,'value':_0x2ace40&&Fi(_0x1acb6a==null?void 0x0:_0x1acb6a['v'])?_0x4c2ab9:Pi(_0x1acb6a,_0x217dbc)};}function Pi(_0x47189d,_0x1e5de5){const _0x56d1c5=_0xbfff20;let _0x2b903f=_0x47189d==null?void 0x0:_0x47189d['v'];return _0x1a85fe(_0x2b903f)?String(_0x2b903f[_0x56d1c5(0x1b5)]??_0x2b903f[_0x56d1c5(0x15f)]??''):_0xfe435(_0x2b903f)?'#'+_0x2b903f[_0x56d1c5(0x312)]:_0x1e5de5&&typeof _0x2b903f==_0x56d1c5(0x2f5)?_0x4bc3f5[_0x56d1c5(0x1ea)](_0x1e5de5,_0x2b903f):String(_0x2b903f??'');}function Fi(_0x272401){return _0x272401===void 0x0||_0x272401==='';}function Ii(_0x3ee763){const _0x129c3d=_0xbfff20;return!!(_0x3ee763!=null&&_0x3ee763[_0x129c3d(0x1a1)]||_0x3ee763!=null&&_0x3ee763[_0x129c3d(0x461)]||_0x3ee763!=null&&_0x3ee763['isSubtotal']||(_0x3ee763==null?void 0x0:_0x3ee763[_0x129c3d(0x25f)])===_0x129c3d(0x2ac));}const Li=[{'area':_0x1126e4[_0xbfff20(0x2a9)],'key':'filterFields','label':_0xbfff20(0x178)},{'area':_0x1126e4[_0xbfff20(0x2b5)],'key':_0xbfff20(0x273),'label':_0xbfff20(0x3bb)},{'area':_0x1126e4[_0xbfff20(0x350)],'key':_0xbfff20(0x2ef),'label':_0xbfff20(0x25e)},{'area':_0x1126e4['Value'],'key':_0xbfff20(0x205),'label':_0xbfff20(0x246)}],Ri=[{'value':_0x4ad10e[_0xbfff20(0x3c2)],'localeKey':_0xbfff20(0x43d)},{'value':_0x4ad10e[_0xbfff20(0x1f6)],'localeKey':_0xbfff20(0x21b)},{'value':_0x4ad10e[_0xbfff20(0x261)],'localeKey':'bases-dashboard-ui.pivot.countNumbers'},{'value':_0x4ad10e['average'],'localeKey':_0xbfff20(0x396)},{'value':_0x4ad10e['max'],'localeKey':_0xbfff20(0x3d4)},{'value':_0x4ad10e['min'],'localeKey':_0xbfff20(0x47a)},{'value':_0x4ad10e[_0xbfff20(0x392)],'localeKey':_0xbfff20(0x24a)},{'value':_0x4ad10e[_0xbfff20(0x362)],'localeKey':_0xbfff20(0x25d)},{'value':_0x4ad10e[_0xbfff20(0x353)],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x4ad10e[_0xbfff20(0x374)],'localeKey':_0xbfff20(0x2f2)},{'value':_0x4ad10e['varp'],'localeKey':_0xbfff20(0x291)}];function zi(_0x5b5a48){const _0x41f600=_0xbfff20;let {config:_0x8709f8,onChange:_0x58232a,table:_0x564b31}=_0x5b5a48,_0x380a51=_0x29f087(_0x2989fb),[_0x5ef09a,_0x33e478]=_0x34e679(_0x41f600(0x1e9)),[_0x4e0fd2,_0x51e2aa]=_0x34e679(''),[_0x37cef1,_0x4b104f]=_0x34e679(null),[_0xe4554e,_0x49f438]=_0x34e679(null),[_0xbce925,_0x3f7b52]=_0x34e679(null),[_0x3cf5c9,_0x593532]=_0x34e679(null),_0xf6d67a=_0x2861da(null),_0x196b2d=_0x548c0f(()=>_0x564b31[_0x41f600(0x222)]['flatMap'](_0x3c4a65=>{const _0xab856e=_0x41f600;let _0x56d3f6=_0x564b31['fields'][_0x3c4a65];return _0x56d3f6&&_0x56d3f6[_0xab856e(0x2d2)]!==!0x0&&_0x56d3f6[_0xab856e(0x427)]!==_0x4fcd7c[_0xab856e(0x496)]?[_0x56d3f6]:[];})[_0x41f600(0x2be)](_0x4410cd=>_0x4410cd[_0x41f600(0x3ca)][_0x41f600(0x3d5)]()[_0x41f600(0x3d0)](_0x4e0fd2[_0x41f600(0x278)]()[_0x41f600(0x3d5)]())),[_0x4e0fd2,_0x564b31]),_0x2c9b2c=_0xb1cdad=>{const _0x122c8c=_0x41f600;let _0x3ae9f0=_0x560cf4(_0x564b31,_0x8709f8[_0x122c8c(0x274)]);try{_0xb1cdad(_0x3ae9f0),_0x58232a({'pivot':_0x3ae9f0[_0x122c8c(0x262)]()});}finally{_0x3ae9f0[_0x122c8c(0x19b)]();}},_0x54cd70=(_0x3f7e02,_0x34007e)=>{_0x37cef1&&(_0x2c9b2c(_0x1bda9f=>{const _0x2b6c9c=_0x5dbe;if(_0x37cef1['kind']===_0x2b6c9c(0x2e6)){let _0xbff79b=_0x1bda9f[_0x2b6c9c(0x19e)](_0x37cef1['id']),_0x4a2e70=_0xbff79b[_0x2b6c9c(0x450)]===_0x3f7e02&&_0xbff79b[_0x2b6c9c(0x365)]<_0x34007e?_0x34007e-0x1:_0x34007e;_0x1bda9f[_0x2b6c9c(0x445)](_0x37cef1['id'],_0x3f7e02,_0x4a2e70);}else qi(_0x1bda9f,_0x37cef1['id'],_0x3f7e02,_0x34007e);}),_0x4b104f(null),_0x49f438(null));};return _0x1108cb(_0x41f600(0x1e8),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col','children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x380a51['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'className':_0x41f600(0x251),'items':[{'label':_0x380a51['t'](_0x41f600(0x3f8)),'panelId':'base-pivot-fields','value':'fields'},{'label':_0x380a51['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x41f600(0x3da),'value':'options'}],'value':_0x5ef09a,'onChange':_0x33e478}),_0x1c53e9(_0x41f600(0x1e8),{'ref':_0xf6d67a,'className':_0x14b647(_0x41f600(0x1e3),_0x439165),'onDragOver':_0x521a80=>{const _0x16e09a=_0x41f600;let _0x37c771=_0xf6d67a[_0x16e09a(0x49d)];if(!_0x37c771)return;let _0x1f8f4d=_0x37c771[_0x16e09a(0x260)]();_0x521a80[_0x16e09a(0x4ae)]<_0x1f8f4d['top']+0x30?_0x37c771[_0x16e09a(0x389)]-=0x10:_0x521a80[_0x16e09a(0x4ae)]>_0x1f8f4d[_0x16e09a(0x2a2)]-0x30&&(_0x37c771[_0x16e09a(0x389)]+=0x10);},'children':_0x5ef09a===_0x41f600(0x37e)?_0x1c53e9(Ki,{'config':_0x8709f8,'commit':_0x2c9b2c}):_0x1108cb('div',{'className':_0x41f600(0x1e6),'children':[_0x1108cb(_0x41f600(0x1e8),{'children':[_0x1c53e9(_0x41f600(0x1e8),{'className':_0x41f600(0x368),'children':_0x380a51['t'](_0x41f600(0x1f7))}),_0x1c53e9(_0x1b54d7,{'allowClear':!0x0,'slot':_0x1c53e9(_0x302bc4,{}),'value':_0x4e0fd2,'placeholder':_0x380a51['t'](_0x41f600(0x257)),'onChange':_0x51e2aa}),_0x1c53e9(_0x41f600(0x1e8),{'className':_0x41f600(0x406),'children':_0x196b2d[_0x41f600(0x1fd)](_0x4d5964=>_0x1c53e9(Bi,{'config':_0x8709f8,'field':_0x4d5964,'onAdd':_0x29d2c3=>_0x2c9b2c(_0x274d09=>qi(_0x274d09,_0x4d5964['id'],_0x29d2c3,_0x274d09[_0x41f600(0x308)](_0x29d2c3))),'onCheckedChange':_0x128d29=>_0x2c9b2c(_0x1f5843=>{const _0x4e3f60=_0x41f600;let _0x48ac24=_0x1f5843['getTableFieldsByDataFieldId'](_0x4d5964['id']);if(!_0x128d29)_0x48ac24[_0x4e3f60(0x4a2)](_0x1cba24=>_0x1f5843[_0x4e3f60(0x38a)](_0x1cba24[_0x4e3f60(0x3c6)]()));else{if(_0x48ac24[_0x4e3f60(0x2df)]===0x0){let _0x26ead0=Yi(_0x4d5964)?_0x1126e4[_0x4e3f60(0x2aa)]:_0x1126e4[_0x4e3f60(0x350)];_0x1f5843[_0x4e3f60(0x39d)](_0x4d5964['id'],_0x26ead0);}}}),'onDragStart':()=>_0x4b104f({'kind':_0x41f600(0x2ad),'id':_0x4d5964['id']})},_0x4d5964['id']))})]}),_0x1c53e9(_0x41f600(0x1e8),{'className':'univer-grid\x20univer-gap-3','children':Li[_0x41f600(0x1fd)](_0x438c51=>_0x1c53e9(Hi,{'area':_0x438c51[_0x41f600(0x450)],'dropTarget':_0xe4554e,'fields':_0x8709f8[_0x41f600(0x274)][_0x438c51[_0x41f600(0x48d)]],'label':_0x380a51['t'](_0x438c51[_0x41f600(0x1b8)]),'snapshot':_0x8709f8[_0x41f600(0x274)],'onDragEnd':()=>{_0x4b104f(null),_0x49f438(null);},'onDragStart':_0x254378=>_0x4b104f({'kind':_0x41f600(0x2e6),'id':_0x254378,'area':_0x438c51[_0x41f600(0x450)]}),'onDragOver':_0xa15178=>_0x49f438({'area':_0x438c51[_0x41f600(0x450)],'index':_0xa15178}),'onDrop':_0xb14293=>_0x54cd70(_0x438c51[_0x41f600(0x450)],_0xb14293),'onFilter':_0x3f7b52,'onMove':(_0x4de124,_0x1102b7,_0x506392)=>_0x2c9b2c(_0x1c10c2=>_0x1c10c2[_0x41f600(0x445)](_0x4de124,_0x1102b7,_0x506392)),'onRemove':_0x83c256=>_0x2c9b2c(_0x1d1c79=>_0x1d1c79[_0x41f600(0x38a)](_0x83c256)),'onSettings':_0x593532},_0x438c51[_0x41f600(0x450)]))}),_0xbce925&&_0x1c53e9(Wi,{'fieldId':_0xbce925,'snapshot':_0x8709f8[_0x41f600(0x274)],'table':_0x564b31,'onCancel':()=>_0x3f7b52(null),'onCommit':(_0x42a5ee,_0x5be750)=>{_0x2c9b2c(_0x44394c=>{const _0x5af48b=_0x5dbe;let _0x580906=_0x44394c[_0x5af48b(0x2ab)](_0xbce925),_0x33720a=(_0x580906==null?void 0x0:_0x580906[_0x5af48b(0x1c0)])??[];_0x44394c['setLabelFilterInfo'](_0xbce925,{'type':_0x5a1647[_0x5af48b(0x224)],'list':_0x42a5ee,'isAll':_0x42a5ee[_0x5af48b(0x2df)]===_0x33720a[_0x5af48b(0x2df)]}),_0x44394c['setSortInfo'](_0xbce925,_0x5be750===void 0x0?void 0x0:{'type':_0x5be750});}),_0x3f7b52(null);}},_0xbce925),_0x3cf5c9&&_0x1c53e9(Gi,{'field':_0x8709f8[_0x41f600(0x274)][_0x41f600(0x421)][_0x3cf5c9],'onCancel':()=>_0x593532(null),'onCommit':(_0x235062,_0x19ef32,_0x5e90e3)=>{_0x2c9b2c(_0x3b330e=>{const _0x2891ff=_0x5dbe;_0x3b330e[_0x2891ff(0x455)](_0x3cf5c9,_0x235062),_0x3b330e[_0x2891ff(0x355)](_0x3cf5c9,_0x19ef32),_0x3b330e['setFieldFormat'](_0x3cf5c9,_0x5e90e3||void 0x0);}),_0x593532(null);}},_0x3cf5c9)]})})]});}function Bi(_0x5da7c9){const _0x70a43=_0xbfff20;let {config:_0x58e456,field:_0x2cc83b,onAdd:_0x5357b2,onCheckedChange:_0x488c41,onDragStart:_0x2ffc0d}=_0x5da7c9,_0x2e182a=_0x29f087(_0x2989fb),_0x2d4e8c=[...Object[_0x70a43(0x34e)](_0x58e456[_0x70a43(0x274)][_0x70a43(0x401)]),...Object['values'](_0x58e456[_0x70a43(0x274)][_0x70a43(0x421)])][_0x70a43(0x415)](_0x34052a=>_0x34052a[_0x70a43(0x2c4)]===_0x2cc83b['id']),_0x3a5f2b=Li[_0x70a43(0x1fd)](_0x4c0827=>({'type':_0x70a43(0x2c2),'children':_0x2e182a['t'](Xi(_0x4c0827[_0x70a43(0x450)])),'onSelect':()=>_0x5357b2(_0x4c0827[_0x70a43(0x450)])}));return _0x1108cb(_0x70a43(0x1e8),{'draggable':!0x1,'style':{'minHeight':0x30},'className':'univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','onDragStart':_0x2ffc0d,'children':[_0x1c53e9(_0x1eb8df,{'checked':_0x2d4e8c,'onChange':_0x53d8f3=>_0x488c41(!!_0x53d8f3)}),_0x1c53e9(Vi,{'field':_0x2cc83b}),_0x1c53e9('span',{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x2cc83b[_0x70a43(0x3ca)]}),_0x1c53e9(Yr,{'align':_0x70a43(0x221),'items':_0x3a5f2b,'children':_0x1c53e9(_0x6d25a2,{'variant':'text','aria-label':_0x2e182a['t'](_0x70a43(0x4a6)),'children':_0x1c53e9(_0xacb52a,{})})})]});}function Vi({field:_0x21e378}){const _0x9652b3=_0xbfff20;return Yi(_0x21e378)?_0x1c53e9(_0x45f616,{'className':_0x9652b3(0x1d8)}):_0x21e378[_0x9652b3(0x427)]===_0x4fcd7c[_0x9652b3(0x43b)]||_0x21e378[_0x9652b3(0x427)]===_0x4fcd7c['CreatedAt']||_0x21e378[_0x9652b3(0x427)]===_0x4fcd7c[_0x9652b3(0x386)]?_0x1c53e9(_0x23c2ab,{'className':_0x9652b3(0x1d8)}):_0x1c53e9(_0x383758,{'className':_0x9652b3(0x1d8)});}function Hi(_0x546931){const _0xc0ddad=_0xbfff20;let {area:_0x4f6a85,dropTarget:_0x14e321,fields:_0x1a6bce,label:_0x134534,snapshot:_0x235288}=_0x546931,_0xf8cfb7=_0x29f087(_0x2989fb);return _0x1108cb(_0xc0ddad(0x493),{'className':_0x14b647(_0xc0ddad(0x332),_0x14cf31),'onDragOver':_0x5437d2=>{const _0x388332=_0xc0ddad;_0x5437d2[_0x388332(0x2ea)](),_0x546931[_0x388332(0x1ba)](_0x1a6bce[_0x388332(0x2df)]);},'onDrop':_0x564340=>{const _0x372b1f=_0xc0ddad;_0x564340[_0x372b1f(0x2ea)](),_0x546931[_0x372b1f(0x166)]((_0x14e321==null?void 0x0:_0x14e321[_0x372b1f(0x450)])===_0x4f6a85?_0x14e321[_0x372b1f(0x365)]:_0x1a6bce[_0x372b1f(0x2df)]);},'children':[_0x1c53e9(_0xc0ddad(0x1e8),{'className':_0xc0ddad(0x3af),'children':_0x134534}),_0x1108cb(_0xc0ddad(0x1e8),{'className':_0xc0ddad(0x27e),'children':[_0x1a6bce[_0xc0ddad(0x1fd)]((_0x55c076,_0x281386)=>{const _0x1686a8=_0xc0ddad;let _0x53cf7e=_0x235288[_0x1686a8(0x401)][_0x55c076]??_0x235288[_0x1686a8(0x421)][_0x55c076];if(!_0x53cf7e)return null;let _0x5527e1=(_0x14e321==null?void 0x0:_0x14e321[_0x1686a8(0x450)])===_0x4f6a85&&_0x14e321['index']===_0x281386;return _0x1108cb('div',{'onDragOver':_0x2c9add=>{const _0x18b4c6=_0x1686a8;_0x2c9add[_0x18b4c6(0x2ea)](),_0x2c9add[_0x18b4c6(0x3fb)]();let _0x4548f9=_0x2c9add[_0x18b4c6(0x40a)][_0x18b4c6(0x260)]();_0x546931[_0x18b4c6(0x1ba)](_0x281386+ +(_0x2c9add['clientY']>_0x4548f9[_0x18b4c6(0x3e6)]+_0x4548f9[_0x18b4c6(0x402)]/0x2));},'onDrop':_0x318add=>{const _0x1b5f63=_0x1686a8;_0x318add['preventDefault'](),_0x318add['stopPropagation'](),_0x546931[_0x1b5f63(0x166)]((_0x14e321==null?void 0x0:_0x14e321[_0x1b5f63(0x450)])===_0x4f6a85?_0x14e321[_0x1b5f63(0x365)]:_0x281386);},'children':[_0x5527e1&&_0x1c53e9('div',{'className':_0x1686a8(0x487)}),_0x1c53e9(Ui,{'area':_0x4f6a85,'field':_0x53cf7e,'onDragEnd':_0x546931[_0x1686a8(0x183)],'onDragStart':()=>_0x546931['onDragStart'](_0x55c076),'onFilter':()=>_0x546931[_0x1686a8(0x3b7)](_0x55c076),'onMove':_0x4c989b=>_0x546931[_0x1686a8(0x460)](_0x55c076,_0x4c989b,0x0),'onMoveUp':_0x281386>0x0?()=>_0x546931[_0x1686a8(0x460)](_0x55c076,_0x4f6a85,_0x281386-0x1):void 0x0,'onMoveDown':_0x281386<_0x1a6bce[_0x1686a8(0x2df)]-0x1?()=>_0x546931[_0x1686a8(0x460)](_0x55c076,_0x4f6a85,_0x281386+0x1):void 0x0,'onRemove':()=>_0x546931[_0x1686a8(0x169)](_0x55c076),'onSettings':()=>_0x546931[_0x1686a8(0x2cc)](_0x55c076)})]},_0x55c076);}),(_0x14e321==null?void 0x0:_0x14e321[_0xc0ddad(0x450)])===_0x4f6a85&&_0x14e321[_0xc0ddad(0x365)]===_0x1a6bce[_0xc0ddad(0x2df)]&&_0x1c53e9(_0xc0ddad(0x1e8),{'className':_0xc0ddad(0x487)}),_0x1a6bce[_0xc0ddad(0x2df)]===0x0&&_0x1c53e9('div',{'className':_0xc0ddad(0x1d0),'children':_0xf8cfb7['t'](_0xc0ddad(0x1f7))})]})]});}function Ui(_0x1a633e){const _0x48d809=_0xbfff20;let _0x5e0f17=_0x29f087(_0x2989fb),_0x372cdf=_0x1a633e['area']===_0x1126e4[_0x48d809(0x2aa)],_0x98e411=[...Li[_0x48d809(0x2be)](_0x1bf0b6=>_0x1bf0b6[_0x48d809(0x450)]!==_0x1a633e[_0x48d809(0x450)])[_0x48d809(0x1fd)](_0x1b1e3e=>({'type':'item','children':_0x5e0f17['t'](Xi(_0x1b1e3e[_0x48d809(0x450)])),'onSelect':()=>_0x1a633e[_0x48d809(0x460)](_0x1b1e3e[_0x48d809(0x450)])})),..._0x1a633e[_0x48d809(0x258)]?[{'type':_0x48d809(0x2c2),'children':_0x5e0f17['t']('bases-dashboard-ui.mobile.moveUp'),'onSelect':_0x1a633e[_0x48d809(0x258)]}]:[],..._0x1a633e['onMoveDown']?[{'type':_0x48d809(0x2c2),'children':_0x5e0f17['t'](_0x48d809(0x1b4)),'onSelect':_0x1a633e[_0x48d809(0x22a)]}]:[],{'type':_0x48d809(0x2c2),'children':_0x5e0f17['t'](_0x48d809(0x276)),'onSelect':_0x1a633e[_0x48d809(0x169)]},{'type':_0x48d809(0x2c2),'children':_0x5e0f17['t'](_0x372cdf?'bases-dashboard-ui.pivot.fieldSettings':_0x48d809(0x36a)),'onSelect':_0x372cdf?_0x1a633e[_0x48d809(0x2cc)]:_0x1a633e['onFilter']}];return _0x1108cb(_0x48d809(0x1e8),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x48d809(0x32c),'onDragEnd':_0x1a633e['onDragEnd'],'onDragStart':_0x1a633e['onDragStart'],'children':[_0x1c53e9(_0x501781,{'title':_0x1a633e['field'][_0x48d809(0x1cf)],'children':_0x1c53e9(_0x48d809(0x213),{'className':_0x48d809(0x309),'children':_0x1a633e['field'][_0x48d809(0x1cf)]})}),_0x1c53e9(Yr,{'align':_0x48d809(0x221),'items':_0x98e411,'children':_0x1c53e9(_0x6d25a2,{'variant':_0x48d809(0x173),'aria-label':_0x5e0f17['t']('bases-dashboard-ui.pivot.fieldSettings'),'children':_0x1c53e9(_0xacb52a,{})})})]});}function Wi(_0xfb31b4){const _0xebef80=_0xbfff20;var _0x206a55,_0x36c37b;let _0x3c4970=_0x29f087(_0x2989fb),{format:_0x15c460,items:_0x160b45,itemTypes:_0x459932}=_0x548c0f(()=>{const _0x5a2582=_0x5dbe;let _0x473415=_0x560cf4(_0xfb31b4[_0x5a2582(0x405)],_0xfb31b4[_0x5a2582(0x432)]);try{let _0x4bf390=_0x473415[_0x5a2582(0x2ab)](_0xfb31b4[_0x5a2582(0x17d)]);return{'format':_0x4bf390==null?void 0x0:_0x4bf390[_0x5a2582(0x1ea)],'items':[...(_0x4bf390==null?void 0x0:_0x4bf390[_0x5a2582(0x1c0)])??[]],'itemTypes':[...(_0x4bf390==null?void 0x0:_0x4bf390[_0x5a2582(0x22c)])??[]]};}finally{_0x473415['dispose']();}},[_0xfb31b4[_0xebef80(0x17d)],_0xfb31b4[_0xebef80(0x432)],_0xfb31b4[_0xebef80(0x405)]]),_0x1ede8a=(_0x206a55=_0xfb31b4[_0xebef80(0x432)][_0xebef80(0x401)][_0xfb31b4[_0xebef80(0x17d)]])==null?void 0x0:_0x206a55[_0xebef80(0x158)],[_0x565f86,_0x1f22ed]=_0x34e679((_0x1ede8a==null?void 0x0:_0x1ede8a[_0xebef80(0x427)])===_0x5a1647['ManualFilter']?_0x1ede8a[_0xebef80(0x1ca)]:_0x160b45),[_0x55b69d,_0x4ebec6]=_0x34e679((_0x36c37b=_0xfb31b4[_0xebef80(0x432)][_0xebef80(0x401)][_0xfb31b4[_0xebef80(0x17d)]])==null||(_0x36c37b=_0x36c37b[_0xebef80(0x23e)])==null?void 0x0:_0x36c37b['type']),_0x1eb802=_0x565f86[_0xebef80(0x2df)]===_0x160b45[_0xebef80(0x2df)],_0x5609fd=_0x1108cb(_0xebef80(0x493),{'className':_0x14b647(_0xebef80(0x35d),_0x14cf31),'children':[_0x1c53e9(_0xebef80(0x1e8),{'className':_0xebef80(0x2fb),'children':_0x3c4970['t'](_0xebef80(0x36a))}),_0x1108cb('div',{'className':_0xebef80(0x1f8),'children':[_0x1108cb(_0x6d25a2,{'className':'univer-flex-1','variant':_0x55b69d===_0xaa402b[_0xebef80(0x357)]?_0xebef80(0x3d2):_0xebef80(0x30e),'onClick':()=>_0x4ebec6(_0xaa402b['ascending']),'children':[_0x1c53e9(_0x5de895,{}),_0x3c4970['t'](_0xebef80(0x497))]}),_0x1108cb(_0x6d25a2,{'className':'univer-flex-1','variant':_0x55b69d===_0xaa402b[_0xebef80(0x2d4)]?_0xebef80(0x3d2):_0xebef80(0x30e),'onClick':()=>_0x4ebec6(_0xaa402b[_0xebef80(0x2d4)]),'children':[_0x1c53e9(_0xcbb196,{}),_0x3c4970['t']('bases-dashboard-ui.pivot.descending')]})]}),_0x1108cb(_0xebef80(0x1e8),{'className':_0xebef80(0x28f),'children':[_0x1108cb(_0xebef80(0x1b8),{'className':_0xebef80(0x299),'children':[_0x1c53e9(_0x1eb8df,{'checked':_0x1eb802,'indeterminate':_0x565f86[_0xebef80(0x2df)]>0x0&&!_0x1eb802,'onChange':()=>_0x1f22ed(_0x1eb802?[]:_0x160b45)}),_0x3c4970['t'](_0xebef80(0x337))]}),_0x160b45[_0xebef80(0x1fd)]((_0x4075b9,_0x2918ab)=>_0x1108cb('label',{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[_0x1c53e9(_0x1eb8df,{'checked':_0x565f86['includes'](_0x4075b9),'onChange':()=>_0x1f22ed(_0xf12a1=>_0xf12a1[_0xebef80(0x3d0)](_0x4075b9)?_0xf12a1[_0xebef80(0x2be)](_0x1d88cd=>_0x1d88cd!==_0x4075b9):[..._0xf12a1,_0x4075b9])}),_0x1c53e9('span',{'className':_0xebef80(0x3aa),'children':Ji(_0x4075b9,_0x459932[_0x2918ab],_0x15c460,_0x3c4970['t']('bases-dashboard-ui.pivot.blank'))})]},_0x4075b9))]}),_0x1108cb(_0xebef80(0x1e8),{'className':_0xebef80(0x17a),'children':[_0x1c53e9(_0x6d25a2,{'variant':'link','onClick':()=>_0xfb31b4[_0xebef80(0x2d1)](_0x160b45,_0x55b69d),'children':_0x3c4970['t'](_0xebef80(0x43c))}),_0x1108cb(_0xebef80(0x1e8),{'className':_0xebef80(0x30b),'children':[_0x1c53e9(_0x6d25a2,{'onClick':_0xfb31b4[_0xebef80(0x16d)],'children':_0x3c4970['t'](_0xebef80(0x391))}),_0x1c53e9(_0x6d25a2,{'variant':'primary','disabled':_0x565f86[_0xebef80(0x2df)]===0x0,'onClick':()=>_0xfb31b4[_0xebef80(0x2d1)](_0x565f86,_0x55b69d),'children':_0x3c4970['t'](_0xebef80(0x3b4))})]})]})]});return _0x1c53e9(_0xbfe7,{'title':_0x3c4970['t']('bases-dashboard-ui.pivot.filterField'),'onClose':_0xfb31b4[_0xebef80(0x16d)],'children':_0x5609fd});}function Gi(_0x4766d6){const _0x40a297=_0xbfff20;var _0x5e9796,_0x58200e,_0x2bb519;let _0x518427=_0x29f087(_0x2989fb),[_0x588722,_0x599f9b]=_0x34e679(((_0x5e9796=_0x4766d6['field'])==null?void 0x0:_0x5e9796['displayName'])??''),[_0x5e5889,_0x5cbdf0]=_0x34e679(((_0x58200e=_0x4766d6[_0x40a297(0x2e6)])==null?void 0x0:_0x58200e[_0x40a297(0x4a3)])??_0x4ad10e[_0x40a297(0x3c2)]),[_0x556e0e,_0x457c0c]=_0x34e679(((_0x2bb519=_0x4766d6['field'])==null?void 0x0:_0x2bb519[_0x40a297(0x1ea)])??'');if(!_0x4766d6[_0x40a297(0x2e6)])return null;let _0x159650=_0x1108cb(_0x40a297(0x493),{'className':_0x14b647(_0x40a297(0x1e1),_0x14cf31),'children':[_0x1c53e9(_0x40a297(0x1e8),{'className':_0x40a297(0x3ea),'children':_0x518427['t']('bases-dashboard-ui.pivot.fieldSettings')}),_0x1108cb(_0x40a297(0x1b8),{'className':_0x40a297(0x223),'children':[_0x518427['t'](_0x40a297(0x480)),_0x1c53e9(_0x1b54d7,{'value':_0x588722,'onChange':_0x599f9b})]}),_0x1108cb('label',{'className':_0x40a297(0x223),'children':[_0x518427['t']('bases-dashboard-ui.pivot.summarizeBy'),_0x1c53e9(Jr,{'value':String(_0x5e5889),'options':Ri['map'](_0x20d305=>({'value':String(_0x20d305[_0x40a297(0x1b5)]),'label':_0x518427['t'](_0x20d305['localeKey'])})),'onChange':_0x24b20b=>{const _0x125e2b=_0x40a297;let _0x347d2e=Ri[_0x125e2b(0x1ac)](_0x568f12=>String(_0x568f12[_0x125e2b(0x1b5)])===_0x24b20b);_0x347d2e&&_0x5cbdf0(_0x347d2e[_0x125e2b(0x1b5)]);}})]}),_0x1108cb(_0x40a297(0x1b8),{'className':_0x40a297(0x223),'children':[_0x518427['t'](_0x40a297(0x341)),_0x1c53e9(_0x1b54d7,{'value':_0x556e0e,'onChange':_0x457c0c})]}),_0x1108cb('div',{'className':_0x40a297(0x431),'children':[_0x1c53e9(_0x6d25a2,{'onClick':_0x4766d6[_0x40a297(0x16d)],'children':_0x518427['t'](_0x40a297(0x391))}),_0x1c53e9(_0x6d25a2,{'variant':'primary','disabled':!_0x588722['trim'](),'onClick':()=>_0x4766d6[_0x40a297(0x2d1)](_0x588722['trim'](),_0x5e5889,_0x556e0e),'children':_0x518427['t'](_0x40a297(0x3b4))})]})]});return _0x1c53e9(_0xbfe7,{'title':_0x518427['t'](_0x40a297(0x4a6)),'onClose':_0x4766d6[_0x40a297(0x16d)],'children':_0x159650});}function Ki(_0x2c7ff2){const _0x25d0dd=_0xbfff20;let {config:_0xc060a6,commit:_0x45a923}=_0x2c7ff2,_0x55fdeb=_0x29f087(_0x2989fb),_0x5088da=_0xc060a6[_0x25d0dd(0x274)]['options'],_0x3b8e74=_0x5409be=>_0x45a923(_0xbe1793=>_0xbe1793[_0x25d0dd(0x159)]({..._0xbe1793['getOptions'](),..._0x5409be}));return _0x1108cb('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x1108cb(_0x25d0dd(0x1b8),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x55fdeb['t'](_0x25d0dd(0x348)),_0x1c53e9(Jr,{'className':'univer-w-36','value':String(_0xc060a6[_0x25d0dd(0x274)][_0x25d0dd(0x2fc)]),'options':[{'value':String(_0x66aa38['tabular']),'label':_0x55fdeb['t'](_0x25d0dd(0x385))},{'value':String(_0x66aa38[_0x25d0dd(0x3eb)]),'label':_0x55fdeb['t']('bases-dashboard-ui.pivot.layoutCompact')},{'value':String(_0x66aa38[_0x25d0dd(0x3ff)]),'label':_0x55fdeb['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x2d43c5=>{const _0x28f748=_0x25d0dd;let _0x33f527=[_0x66aa38[_0x28f748(0x383)],_0x66aa38[_0x28f748(0x3eb)],_0x66aa38['outline']][_0x28f748(0x1ac)](_0x439d63=>String(_0x439d63)===_0x2d43c5);_0x33f527!==void 0x0&&_0x45a923(_0x5a4f54=>_0x5a4f54[_0x28f748(0x37b)](_0x33f527));}})]}),[{'key':_0x25d0dd(0x3a1),'label':_0x25d0dd(0x3c3),'defaultValue':!0x1},{'key':_0x25d0dd(0x48a),'label':_0x25d0dd(0x1ff),'defaultValue':!0x1},{'key':_0x25d0dd(0x3d8),'label':'bases-dashboard-ui.pivot.showRowSubtotal','defaultValue':!0x0},{'key':_0x25d0dd(0x2c5),'label':_0x25d0dd(0x3ad),'defaultValue':!0x0},{'key':_0x25d0dd(0x160),'label':'bases-dashboard-ui.pivot.showColumnSubtotal','defaultValue':!0x0},{'key':_0x25d0dd(0x2a0),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}]['map'](_0x343f1d=>_0x1108cb(_0x25d0dd(0x1b8),{'className':_0x25d0dd(0x2ae),'children':[_0x1c53e9(_0x1eb8df,{'checked':!!(_0x5088da[_0x343f1d[_0x25d0dd(0x48d)]]??_0x343f1d[_0x25d0dd(0x3fa)]),'disabled':_0x343f1d[_0x25d0dd(0x48d)]===_0x25d0dd(0x3a1)&&_0xc060a6[_0x25d0dd(0x274)][_0x25d0dd(0x2fc)]===_0x66aa38[_0x25d0dd(0x3eb)],'onChange':_0x359e98=>_0x3b8e74({[_0x343f1d['key']]:!!_0x359e98})}),_0x55fdeb['t'](_0x343f1d[_0x25d0dd(0x1b8)])]},_0x343f1d['key'])),_0xc060a6[_0x25d0dd(0x274)][_0x25d0dd(0x2fc)]===_0x66aa38[_0x25d0dd(0x3ff)]&&_0x1108cb('label',{'className':_0x25d0dd(0x2f4),'children':[_0x55fdeb['t'](_0x25d0dd(0x323)),_0x1c53e9(Jr,{'className':_0x25d0dd(0x44c),'value':String(_0x5088da[_0x25d0dd(0x329)]??_0x571e80['top']),'options':[{'value':String(_0x571e80['top']),'label':_0x55fdeb['t'](_0x25d0dd(0x1c5))},{'value':String(_0x571e80['bottom']),'label':_0x55fdeb['t'](_0x25d0dd(0x464))}],'onChange':_0x3a14de=>{const _0xfb7345=_0x25d0dd;let _0x3ac494=[_0x571e80[_0xfb7345(0x3e6)],_0x571e80['bottom']][_0xfb7345(0x1ac)](_0x536968=>String(_0x536968)===_0x3a14de);_0x3ac494!==void 0x0&&_0x3b8e74({'rowSubtotalPosition':_0x3ac494});}})]}),_0x1108cb(_0x25d0dd(0x1b8),{'className':_0x25d0dd(0x2f4),'children':[_0x55fdeb['t']('bases-dashboard-ui.pivot.valuePosition'),_0x1c53e9(Jr,{'className':_0x25d0dd(0x44c),'value':String(_0xc060a6[_0x25d0dd(0x274)][_0x25d0dd(0x275)]===_0xe5d4e5['None']?_0xe5d4e5[_0x25d0dd(0x2b5)]:_0xc060a6[_0x25d0dd(0x274)][_0x25d0dd(0x275)]),'options':[{'value':String(_0xe5d4e5[_0x25d0dd(0x2b5)]),'label':_0x55fdeb['t'](_0x25d0dd(0x3bb))},{'value':String(_0xe5d4e5[_0x25d0dd(0x350)]),'label':_0x55fdeb['t'](_0x25d0dd(0x25e))}],'onChange':_0x5019c8=>{const _0x22bb3c=_0x25d0dd;let _0x587ae5=[_0xe5d4e5[_0x22bb3c(0x2b5)],_0xe5d4e5[_0x22bb3c(0x350)]]['find'](_0x2048cc=>String(_0x2048cc)===_0x5019c8);_0x587ae5!==void 0x0&&_0x45a923(_0x533a3c=>_0x533a3c['updateValuePosition'](_0x587ae5,_0x533a3c[_0x22bb3c(0x16e)]()<0x0?0x0:_0x533a3c['getValueIndex']()));}})]}),_0x1108cb(_0x25d0dd(0x1b8),{'className':_0x25d0dd(0x2f4),'children':[_0x55fdeb['t'](_0x25d0dd(0x182)),_0x1c53e9(_0x5a3ae3,{'className':_0x25d0dd(0x3d7),'min':0x1,'max':0x14,'value':_0x5088da[_0x25d0dd(0x38e)]??0x1,'onChange':_0x3b140f=>{const _0xa70cb6=_0x25d0dd;let _0x2ca393=Number(_0x3b140f);Number[_0xa70cb6(0x2da)](_0x2ca393)&&_0x2ca393>=0x1&&_0x3b8e74({'pageWrap':_0x2ca393});}})]}),_0x1108cb(_0x25d0dd(0x1b8),{'className':_0x25d0dd(0x2f4),'children':[_0x55fdeb['t']('bases-dashboard-ui.pivot.pageDirection'),_0x1c53e9(Jr,{'className':_0x25d0dd(0x44c),'value':String(_0x5088da[_0x25d0dd(0x40b)]??!0x1),'options':[{'value':_0x25d0dd(0x41f),'label':_0x55fdeb['t'](_0x25d0dd(0x3c4))},{'value':_0x25d0dd(0x354),'label':_0x55fdeb['t'](_0x25d0dd(0x269))}],'onChange':_0x1f8a41=>_0x3b8e74({'pageOverThenDown':_0x1f8a41===_0x25d0dd(0x354)})})]})]});}function qi(_0x16bbd8,_0x5e175e,_0x4bbfa0,_0xb76f0){const _0x26091d=_0xbfff20;let _0x3869bf=_0x16bbd8[_0x26091d(0x3e4)](_0x5e175e)['find'](_0x46e114=>_0x16bbd8['getFieldPositionInfoById'](_0x46e114[_0x26091d(0x3c6)]())[_0x26091d(0x450)]!==_0x1126e4[_0x26091d(0x2aa)]);_0x4bbfa0!==_0x1126e4[_0x26091d(0x2aa)]&&_0x3869bf?_0x16bbd8[_0x26091d(0x445)](_0x3869bf[_0x26091d(0x3c6)](),_0x4bbfa0,_0xb76f0):_0x16bbd8[_0x26091d(0x39d)](_0x5e175e,_0x4bbfa0,_0xb76f0);}function Ji(_0x386fc6,_0x2a801c,_0x662d62,_0x5b6ba3){const _0x100844=_0xbfff20;return _0x2a801c===_0x48a00c[_0x100844(0x330)]?_0x5b6ba3:_0x2a801c===_0x48a00c[_0x100844(0x2f1)]&&_0x662d62?_0x4bc3f5['format'](_0x662d62,Number(_0x386fc6)):_0x386fc6;}function Yi(_0x12dcac){const _0x63c974=_0xbfff20;return _0x12dcac['type']===_0x4fcd7c[_0x63c974(0x2e4)]||_0x12dcac[_0x63c974(0x427)]===_0x4fcd7c[_0x63c974(0x256)]||_0x12dcac[_0x63c974(0x427)]===_0x4fcd7c['Progress']||_0x12dcac['type']===_0x4fcd7c[_0x63c974(0x31c)];}function Xi(_0x850707){const _0x4b6719=_0xbfff20;switch(_0x850707){case _0x1126e4[_0x4b6719(0x350)]:return _0x4b6719(0x215);case _0x1126e4['Column']:return _0x4b6719(0x2fa);case _0x1126e4[_0x4b6719(0x2aa)]:return _0x4b6719(0x18f);default:return _0x4b6719(0x3a7);}}function Zi({config:_0xb45d85,onChange:_0xc74d7c,runtime:_0x22da3d,table:_0x23660c}){const _0x2d854f=_0xbfff20;let _0x1f762a=_0x29f087(_0x2989fb),[_0x55e02d,_0x1f7025]=_0x34e679(_0x2d854f(0x252));return _0x1108cb(_0x2d854f(0x1fb),{'className':_0x2d854f(0x439),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x1f762a['t'](_0x2d854f(0x3f2)),'className':_0x2d854f(0x3bd),'items':[{'label':_0x1f762a['t'](_0x2d854f(0x1eb)),'panelId':_0x2d854f(0x470),'value':'chart'},{'label':_0x1f762a['t'](_0x2d854f(0x3c9)),'panelId':'base-pivot-table-configuration','value':_0x2d854f(0x274)}],'value':_0x55e02d,'variant':'segmented','onChange':_0x1f7025}),_0x1c53e9(_0x2d854f(0x1e8),{'className':_0x2d854f(0x3ac),'children':_0x55e02d==='chart'?_0x22da3d&&_0x1c53e9($r,{'config':_0xb45d85,'runtime':_0x22da3d,'tableName':_0x23660c[_0x2d854f(0x3ca)],'onChange':_0xc74d7c}):_0x1c53e9(zi,{'config':_0xb45d85,'table':_0x23660c,'onChange':_0xc74d7c})})]});}function Qi({tableId:_0x5268e6,unitId:_0x32ec93,viewId:_0xcb365c}){const _0x1b60e0=_0xbfff20;let [_0x1dd88a,_0x17c392]=_0x34e679(!0x1),_0x178e49=_0x29f087(_0x2220df),_0x57e69b=_0x29f087(_0x14186a),_0x4490d1=_0x29f087(_0x49fceb),_0x5e3d36=_0x29f087(_0x2989fb),_0x5562fc=_0x29f087(_0x441727),[_0x69fcf9,_0x440b72]=_0x34e679(null),[_0x2e9b07,_0x107d57]=_0x34e679(null),_0x325e9a=_0x2861da(_0x1b60e0(0x244)+_0xd28735(0x8)),[_0x3dd905,_0x26a656]=_0x34e679(!0x1),_0x27616b=_0x57e69b[_0x1b60e0(0x454)](_0x32ec93,_0x37ea54[_0x1b60e0(0x2e2)]),_0x2c62e4=_0x27616b==null?void 0x0:_0x27616b[_0x1b60e0(0x373)]()['tables'][_0x5268e6],_0x7410e9=_0x2c62e4==null?void 0x0:_0x2c62e4['views'][_0xcb365c],_0x16f3e9=$i(_0x7410e9),_0x3df638=vr(_0x32ec93,_0x5268e6,_0xcb365c);if(_0x436796(()=>{const _0x3455cb=_0x1b60e0;if(!_0x16f3e9)return;let _0x288bda=_0x325e9a['current'];return _0x5562fc[_0x3455cb(0x38c)](_0x288bda,{'unitId':_0x32ec93,'tableId':_0x5268e6,'viewId':_0xcb365c,'filters':[]}),()=>{const _0x1a0615=_0x3455cb;_0x5562fc[_0x1a0615(0x414)](_0x32ec93,_0x288bda);};},[_0x16f3e9,_0x5562fc,_0x5268e6,_0x32ec93,_0xcb365c]),_0x436796(()=>{const _0x2ed499=_0x1b60e0;if(!$i(_0x7410e9))return;let _0x572aff=!0x0,_0x2124d1={'unitId':_0x32ec93,'tableId':_0x5268e6,'viewId':_0xcb365c,'filters':[_0x7410e9[_0x2ed499(0x2be)]??null]};return _0x5562fc['refreshChartRuntime'](_0x32ec93,_0x325e9a[_0x2ed499(0x49d)],_0x2124d1)[_0x2ed499(0x271)](_0x1cba5f=>{const _0x484619=_0x2ed499;_0x572aff&&_0x1cba5f&&(_0x440b72(_0x1cba5f),_0x107d57(_0x5562fc[_0x484619(0x3bf)](_0x32ec93,_0x325e9a[_0x484619(0x49d)])??null),_0x26a656(!0x1));})[_0x2ed499(0x433)](_0x3c7d54=>{const _0x3e4866=_0x2ed499;_0x4490d1[_0x3e4866(0x1a6)](_0x3e4866(0x33f),_0x3c7d54),_0x572aff&&(_0x440b72(null),_0x26a656(!0x0));}),()=>{_0x572aff=!0x1;};},[_0x4490d1,_0x5562fc,_0x5268e6,_0x32ec93,_0x7410e9,_0xcb365c]),!_0x2c62e4||!$i(_0x7410e9))return null;let _0x2ebf4e=_0x5562fc['getChartRuntime'](_0x32ec93,_0x325e9a[_0x1b60e0(0x49d)])===_0x2e9b07?_0x2e9b07:null,_0x2025f0=_0x69fcf9?_0x1108cb(_0x1b60e0(0x1e8),{'className':'univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','style':{'gridTemplateRows':_0x7410e9['config'][_0x1b60e0(0x463)]==='chart-and-table'?_0x1b60e0(0x2e7):_0x1b60e0(0x456)},'children':[_0x7410e9['config'][_0x1b60e0(0x463)]!==_0x1b60e0(0x405)&&_0x2ebf4e&&_0x1c53e9(_0x1b60e0(0x1e8),{'className':'univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':_0x1c53e9(Lr,{'isRowDirection':_0x3b57e8(_0x7410e9[_0x1b60e0(0x167)][_0x1b60e0(0x252)][_0x1b60e0(0x292)]),'runtime':_0x2ebf4e})}),_0x7410e9[_0x1b60e0(0x167)][_0x1b60e0(0x463)]!==_0x1b60e0(0x252)&&_0x1c53e9(_0x1b60e0(0x1e8),{'className':_0x1b60e0(0x45d),'children':_0x1c53e9(Ai,{'pivot':_0x7410e9['config'][_0x1b60e0(0x274)],'view':_0x69fcf9['view']})})]}):_0x1c53e9(_0x1b60e0(0x1e8),{'className':_0x1b60e0(0x216),'children':_0x3dd905?_0x5e3d36['t'](_0x1b60e0(0x2ed)):_0x5e3d36['t']('bases-dashboard-ui.pivot.calculating')}),_0x5c8284=_0x1c53e9(Zi,{'config':_0x7410e9[_0x1b60e0(0x167)],'runtime':_0x2ebf4e,'table':_0x2c62e4,'onChange':_0x50f441=>{const _0x73b1ad=_0x1b60e0;_0x57e69b[_0x73b1ad(0x1a8)](_0x32ec93),_0x57e69b[_0x73b1ad(0x177)](_0x32ec93),_0x178e49[_0x73b1ad(0x42e)](_0x50437b['id'],{'unitId':_0x32ec93,'tableId':_0x5268e6,'viewId':_0xcb365c,'patch':_0x50f441})[_0x73b1ad(0x433)](_0x206216=>_0x4490d1['error'](_0x73b1ad(0x3cd),_0x206216));}});return _0x1c53e9(qr,{'children':_0x1108cb(_0x1b60e0(0x1e8),{'className':_0x1b60e0(0x4a0),'children':[_0x3df638&&_0x1c53e9(_0x6d25a2,{'onClick':()=>_0x17c392(!0x0),'children':_0x5e3d36['t']('bases-dashboard-ui.pivot.chartConfiguration')}),_0x1c53e9(_0x1b60e0(0x1e8),{'className':'univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','children':_0x2025f0}),_0x3df638&&_0x1dd88a&&_0x1c53e9(_0xbfe7,{'title':_0x5e3d36['t'](_0x1b60e0(0x3f2)),'onClose':()=>_0x17c392(!0x1),'children':_0x5c8284})]})});}function $i(_0x46f4d6){const _0x309239=_0xbfff20;return(_0x46f4d6==null?void 0x0:_0x46f4d6[_0x309239(0x427)])===_0x54a718['Pivot']&&typeof _0x46f4d6['config']==_0x309239(0x235)&&_0x46f4d6['config']!==null&&_0x309239(0x274)in _0x46f4d6['config']&&_0x309239(0x252)in _0x46f4d6[_0x309239(0x167)]&&'displayMode'in _0x46f4d6['config'];}let ea=class extends _0x2eec42{constructor(_0x425ef9,_0x7b5489,_0x506c28,_0x247bc5,_0x3f42e9,_0x5df882){const _0x28c491=_0xbfff20;super(),this[_0x28c491(0x253)](_0x7b5489[_0x28c491(0x219)]({'type':_0x54a718[_0x28c491(0x2c9)],'renderMode':'dom','icon':_0x25ef71,'component':Qi,'menu':{get 'label'(){const _0xfa00bb=_0x28c491;return _0x5df882['t'](_0xfa00bb(0x3f2));},get 'description'(){return _0x5df882['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){const _0x2884f4=_0x28c491;return _0x5df882['t'](_0x2884f4(0x475));}}})),this['disposeWithMe'](_0x425ef9['register'](ta(_0x506c28,_0x247bc5,_0x3f42e9,_0x5df882)));}};ea=kr([Y(0x0,_0x2a9f9e),Y(0x1,_0x1611be),Y(0x2,_0x38b292(_0x309002)),Y(0x3,_0x2220df),Y(0x4,_0x4deb76),Y(0x5,_0x38b292(_0x2989fb))],ea);function ta(_0x129ae9,_0x2ea0d6,_0x715bb6,_0x2a23f5){const _0x3af9aa=_0xbfff20;return{'change$':_0x440773(_0x129ae9['change$'],_0x715bb6[_0x3af9aa(0x179)]),'component':xi,get 'labels'(){const _0x590806=_0x3af9aa;return{'add':_0x2a23f5['t']('bases-dashboard-ui.dashboard.add'),'configure':_0x211ad6=>_0x2a23f5['t']('bases-dashboard-ui.dashboard.configure',_0x211ad6),'delete':_0x2a23f5['t'](_0x590806(0x171)),'new':_0x2a23f5['t'](_0x590806(0x3ae)),'rename':_0x2a23f5['t'](_0x590806(0x336)),'search':_0x2a23f5['t'](_0x590806(0x325)),'section':_0x2a23f5['t'](_0x590806(0x2ec))};},'getItems':_0x32ed79=>{const _0x4a440c=_0x3af9aa;let _0xe1dfe=_0x129ae9[_0x4a440c(0x1ce)](_0x32ed79);return _0xe1dfe['dashboardOrder'][_0x4a440c(0x31f)](_0x4976d3=>{const _0x87b30f=_0x4a440c;let _0x46cbb1=_0xe1dfe[_0x87b30f(0x344)][_0x4976d3];return _0x46cbb1?[{'id':_0x46cbb1['id'],'name':_0x46cbb1[_0x87b30f(0x3ca)],'readonly':!_0x120634(_0x715bb6,_0x32ed79,_0x46cbb1['id'])}]:[];});},'create':async _0x425203=>{const _0x153cb3=_0x3af9aa;let _0x391635=_0x129ae9['getResource'](_0x425203),_0xfb9538='dashboard-'+_0xd28735(0x8),_0x227383=na(_0x391635[_0x153cb3(0x28e)][_0x153cb3(0x31f)](_0x5ce121=>{const _0x32ee0b=_0x153cb3;let _0x29e3da=_0x391635[_0x32ee0b(0x344)][_0x5ce121];return _0x29e3da?[_0x29e3da[_0x32ee0b(0x3ca)]]:[];}),_0x158a8b=>_0x2a23f5['t'](_0x153cb3(0x4ad),String(_0x158a8b)));return await _0x2ea0d6['executeCommand'](_0x28a4bb['id'],{'unitId':_0x425203,'dashboard':{'id':_0xfb9538,'name':_0x227383,'widgetOrder':[],'widgets':{}}})?_0xfb9538:null;},'rename':async(_0x2fbe8a,_0x449eed,_0x4dac9b)=>{const _0x2a1d98=_0x3af9aa;let _0x147389=_0x129ae9[_0x2a1d98(0x34a)](_0x2fbe8a,_0x449eed);return!!(_0x147389&&await _0x2ea0d6[_0x2a1d98(0x42e)](_0x39c855['id'],{'unitId':_0x2fbe8a,'dashboard':{..._0x147389,'name':_0x4dac9b}}));},'remove':(_0x3ce609,_0xa61371)=>_0x2ea0d6['executeCommand'](_0x22a544['id'],{'unitId':_0x3ce609,'dashboardId':_0xa61371})};}function na(_0x2877c3,_0x5a9e8c){const _0x4bb91c=_0xbfff20;let _0x57e948=new Set(_0x2877c3),_0x13d3ed=_0x57e948['size']+0x1,_0x412b98=_0x5a9e8c(_0x13d3ed);for(;_0x57e948[_0x4bb91c(0x2f8)](_0x412b98);)_0x13d3ed+=0x1,_0x412b98=_0x5a9e8c(_0x13d3ed);return _0x412b98;}let ra=class extends _0x14271e{constructor(_0x5a721a=gr,_0xc5bd45,_0x574f1c){const _0x509b9e=_0xbfff20;super(),this[_0x509b9e(0x469)]=_0x5a721a,this['_injector']=_0xc5bd45,this[_0x509b9e(0x403)]=_0x574f1c;let {..._0x30fd98}=_0x2004cb({},gr,this[_0x509b9e(0x469)]);this[_0x509b9e(0x403)][_0x509b9e(0x4a4)](hr,_0x30fd98);}[_0xbfff20(0x37a)](){const _0x2c81f9=_0xbfff20;this[_0x2c81f9(0x326)][_0x2c81f9(0x1d7)]([Ar]),this[_0x2c81f9(0x326)]['add']([Kr]),this[_0x2c81f9(0x326)][_0x2c81f9(0x1d7)]([ea]);}[_0xbfff20(0x184)](){const _0x1ba84d=_0xbfff20;_0x5b9752(this[_0x1ba84d(0x326)],[[Ar],[Kr],[ea]]);}};Fr(ra,_0xbfff20(0x427),_0x37ea54[_0xbfff20(0x2e2)]),Fr(ra,_0xbfff20(0x1d4),_0xbfff20(0x255)),Fr(ra,_0xbfff20(0x267),pr),Fr(ra,_0xbfff20(0x1b7),mr),ra=kr([_0x1957bf(_0x36c2e0,_0xbeeff3,_0x31752d,_0x48f981,_0x3371b7,_0xc91b76),Y(0x1,_0x38b292(_0x38337e)),Y(0x2,_0x6de229)],ra);function ia(_0x209c04,_0x49342f,_0xe76e85,_0x1d8b1f){const _0x5b6994=_0xbfff20;let _0x2550e5={..._0x209c04};if(_0x49342f[_0x5b6994(0x3d0)]('w')){let _0x55787c=_0x209c04[_0x5b6994(0x204)]+_0x209c04[_0x5b6994(0x41d)];_0x2550e5['column']=Math[_0x5b6994(0x43f)](0x0,Math[_0x5b6994(0x441)](_0x55787c-0x1,_0x209c04[_0x5b6994(0x204)]+_0xe76e85)),_0x2550e5[_0x5b6994(0x41d)]=_0x55787c-_0x2550e5[_0x5b6994(0x204)];}else _0x49342f[_0x5b6994(0x3d0)]('e')&&(_0x2550e5[_0x5b6994(0x41d)]=Math[_0x5b6994(0x43f)](0x1,Math[_0x5b6994(0x441)](_0x5c9bf8-_0x209c04[_0x5b6994(0x204)],_0x209c04[_0x5b6994(0x41d)]+_0xe76e85)));if(_0x49342f[_0x5b6994(0x3d0)]('n')){let _0x1f7210=_0x209c04[_0x5b6994(0x430)]+_0x209c04[_0x5b6994(0x1b2)];_0x2550e5['row']=Math[_0x5b6994(0x43f)](0x0,Math[_0x5b6994(0x441)](_0x1f7210-0x1,_0x209c04[_0x5b6994(0x430)]+_0x1d8b1f)),_0x2550e5[_0x5b6994(0x1b2)]=_0x1f7210-_0x2550e5[_0x5b6994(0x430)];}else _0x49342f[_0x5b6994(0x3d0)]('s')&&(_0x2550e5['rowSpan']=Math['max'](0x1,_0x209c04[_0x5b6994(0x1b2)]+_0x1d8b1f));return _0x2550e5;}function aa(_0x38e38a){const _0x1bc90c=_0xbfff20;let _0x6c8687=Math['max'](0x1,Math[_0x1bc90c(0x441)](_0x5c9bf8,Math[_0x1bc90c(0x4a9)](_0x38e38a[_0x1bc90c(0x41d)])));return{'column':Math[_0x1bc90c(0x43f)](0x0,Math[_0x1bc90c(0x441)](_0x5c9bf8-_0x6c8687,Math['round'](_0x38e38a['column']))),'row':Math['max'](0x0,Math[_0x1bc90c(0x4a9)](_0x38e38a['row'])),'columnSpan':_0x6c8687,'rowSpan':Math[_0x1bc90c(0x43f)](0x1,Math[_0x1bc90c(0x4a9)](_0x38e38a[_0x1bc90c(0x1b2)]))};}function oa(_0x4edf2a,_0x212e9e,_0x324666){const _0x3741d8=_0xbfff20;let _0x22bd85=new Map(_0x4edf2a),_0xa40428=aa(_0x324666);_0x22bd85[_0x3741d8(0x499)](_0x212e9e,_0xa40428);let _0x12d9a=[[_0x212e9e,_0xa40428]];for(let [_0xdb7a6f,_0x26f54a]of _0x22bd85){if(_0xdb7a6f===_0x212e9e)continue;let _0x55df51=aa(_0x26f54a);for(;_0x12d9a[_0x3741d8(0x415)](([,_0x3420de])=>ca(_0x55df51,_0x3420de));)_0x55df51={..._0x55df51,'row':_0x55df51['row']+0x1};for(;_0x55df51[_0x3741d8(0x430)]>0x0;){let _0x279c70={..._0x55df51,'row':_0x55df51['row']-0x1};if(_0x12d9a[_0x3741d8(0x415)](([,_0x3aa21a])=>ca(_0x279c70,_0x3aa21a)))break;_0x55df51=_0x279c70;}_0x12d9a[_0x3741d8(0x181)]([_0xdb7a6f,_0x55df51]),_0x22bd85['set'](_0xdb7a6f,_0x55df51);}return _0x22bd85;}function sa(_0x54c4b3,_0x4821a9,_0x10743b,_0x5e6245=0x38,_0x2efd5e=0x16){const _0x2a2a2d=_0xbfff20;return _0x54c4b3<_0x4821a9+_0x5e6245?-Math[_0x2a2a2d(0x1e0)](_0x2efd5e*(0x1-Math['max'](0x0,_0x54c4b3-_0x4821a9)/_0x5e6245)):_0x54c4b3>_0x10743b-_0x5e6245?Math[_0x2a2a2d(0x1e0)](_0x2efd5e*(0x1-Math[_0x2a2a2d(0x43f)](0x0,_0x10743b-_0x54c4b3)/_0x5e6245)):0x0;}function ca(_0x20b5e2,_0x252947){const _0x3bab8c=_0xbfff20;return _0x20b5e2['column']<_0x252947[_0x3bab8c(0x204)]+_0x252947[_0x3bab8c(0x41d)]&&_0x20b5e2[_0x3bab8c(0x204)]+_0x20b5e2[_0x3bab8c(0x41d)]>_0x252947[_0x3bab8c(0x204)]&&_0x20b5e2[_0x3bab8c(0x430)]<_0x252947['row']+_0x252947[_0x3bab8c(0x1b2)]&&_0x20b5e2[_0x3bab8c(0x430)]+_0x20b5e2['rowSpan']>_0x252947[_0x3bab8c(0x430)];}const la=[{'direction':'nw','className':_0xbfff20(0x193)},{'direction':'n','className':'-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize'},{'direction':'ne','className':_0xbfff20(0x26d)},{'direction':'e','className':_0xbfff20(0x49b)},{'direction':'se','className':_0xbfff20(0x46e)},{'direction':'s','className':'-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize'},{'direction':'sw','className':_0xbfff20(0x3a8)},{'direction':'w','className':_0xbfff20(0x35a)}];function ua({dashboard:_0x146d4e,dragLabel:_0x1d1287,editable:_0x1fa28f=!0x0,onLayoutsCommit:_0x2b7e04,onSelectWidget:_0x2febe6,renderWidget:_0x3721db,renderWidgetActions:_0x3f9efc,resizeLabel:_0x5dc9d4,selectedWidgetId:_0x23974d,widgetLabel:_0x46e96d}){const _0x383644=_0xbfff20;let _0x1aa9bc=_0x2861da(null),_0x1cf843=_0x2861da(null),[_0x3d1fe7,_0x46455d]=_0x34e679(!0x1),_0xde84dd=_0x548c0f(()=>new Map(_0x146d4e[_0x383644(0x3b1)][_0x383644(0x31f)](_0xb8bfae=>{const _0x4307fa=_0x383644;let _0x16cf78=_0x146d4e[_0x4307fa(0x280)][_0xb8bfae];return _0x16cf78?[[_0xb8bfae,_0x16cf78[_0x4307fa(0x2fc)]]]:[];})),[_0x146d4e]),[_0x20db1d,_0x470777]=_0x34e679(_0xde84dd);_0x436796(()=>{const _0x8c0fd8=_0x383644;_0x1cf843[_0x8c0fd8(0x49d)]||_0x470777(_0xde84dd);},[_0xde84dd]),_0x436796(()=>{const _0x3a2047=_0x383644;if(!_0x3d1fe7)return;let _0x1c92a7=_0x1ed6e3=>{const _0x16fb2b=_0x5dbe;let _0x2e2f64=_0x1aa9bc[_0x16fb2b(0x49d)];if(!_0x2e2f64)return null;let _0x351ce4=_0x2e2f64[_0x16fb2b(0x260)](),_0x1e8c94=Math[_0x16fb2b(0x43f)](0x1,(_0x351ce4[_0x16fb2b(0x4ac)]-0x8*(_0x5c9bf8-0x1))/_0x5c9bf8),_0x196d15=Math[_0x16fb2b(0x4a9)]((_0x2e2f64[_0x16fb2b(0x389)]-_0x1ed6e3[_0x16fb2b(0x234)])/(_0x3e9cab+0x8)),_0xbbe4ff=Math[_0x16fb2b(0x4a9)]((_0x1ed6e3['pointerX']-_0x1ed6e3[_0x16fb2b(0x283)])/(_0x1e8c94+0x8)),_0x1a7e60=Math[_0x16fb2b(0x4a9)]((_0x1ed6e3['pointerY']-_0x1ed6e3[_0x16fb2b(0x2fe)])/(_0x3e9cab+0x8))+_0x196d15,_0x1c3c1f=_0x1ed6e3[_0x16fb2b(0x3fd)]===_0x16fb2b(0x268)?{..._0x1ed6e3[_0x16fb2b(0x30d)],'column':_0x1ed6e3['initial'][_0x16fb2b(0x204)]+_0xbbe4ff,'row':_0x1ed6e3[_0x16fb2b(0x30d)][_0x16fb2b(0x430)]+_0x1a7e60}:ia(_0x1ed6e3[_0x16fb2b(0x30d)],_0x1ed6e3['resizeDirection']??'se',_0xbbe4ff,_0x1a7e60),_0x47c841=oa(_0x1ed6e3['initialLayouts'],_0x1ed6e3['id'],_0x1c3c1f);return _0x470777(_0x47c841),_0x47c841;},_0x518e04=_0x22c649=>{const _0x1ff540=_0x5dbe;let _0x467bab=_0x1cf843[_0x1ff540(0x49d)];if(!_0x467bab)return;let _0x6916ab={..._0x467bab,'pointerX':_0x22c649[_0x1ff540(0x1f0)],'pointerY':_0x22c649[_0x1ff540(0x4ae)]};_0x1cf843[_0x1ff540(0x49d)]=_0x6916ab;},_0x1ff33a=()=>{let _0x257699=_0x1cf843['current'],_0x3baf9e=_0x257699?_0x1c92a7(_0x257699):null;_0x1cf843['current']=null,_0x46455d(!0x1),_0x3baf9e&&_0x2b7e04(_0x3baf9e);},_0x5517b1=0x0,_0x4ca90d=()=>{const _0x30e415=_0x5dbe;let _0x20b903=_0x1aa9bc['current'],_0x4711f8=_0x1cf843['current'];if(_0x20b903&&_0x4711f8){let _0x4a5c10=_0x20b903['getBoundingClientRect'](),_0xc35a4e=sa(_0x4711f8['pointerY'],_0x4a5c10[_0x30e415(0x3e6)],_0x4a5c10[_0x30e415(0x2a2)]);_0xc35a4e!==0x0&&(_0x20b903[_0x30e415(0x389)]+=_0xc35a4e),_0x1c92a7(_0x4711f8),_0x5517b1=requestAnimationFrame(_0x4ca90d);}};return _0x5517b1=requestAnimationFrame(_0x4ca90d),window[_0x3a2047(0x410)]('pointermove',_0x518e04),window[_0x3a2047(0x410)](_0x3a2047(0x293),_0x1ff33a),()=>{const _0x16ce17=_0x3a2047;cancelAnimationFrame(_0x5517b1),window[_0x16ce17(0x300)](_0x16ce17(0x233),_0x518e04),window['removeEventListener'](_0x16ce17(0x293),_0x1ff33a);};},[_0x3d1fe7,_0x2b7e04]);let _0x2078a1=Math[_0x383644(0x43f)](0x8,...Array[_0x383644(0x2a7)](_0x20db1d['values']())[_0x383644(0x1fd)](_0x3b4179=>_0x3b4179['row']+_0x3b4179[_0x383644(0x1b2)])),_0x1f4ba7=(_0x592e48,_0x37d1e5,_0xa89720,_0x1d7137)=>{const _0x1c76f7=_0x383644;_0x592e48[_0x1c76f7(0x2ea)](),_0x592e48[_0x1c76f7(0x3fb)]();let _0x15a4ba=_0x1aa9bc['current'],_0x45b76d={'id':_0x37d1e5['id'],'mode':_0xa89720,'pointerX':_0x592e48['clientX'],'pointerY':_0x592e48[_0x1c76f7(0x4ae)],'startX':_0x592e48['clientX'],'startY':_0x592e48['clientY'],'startScrollTop':(_0x15a4ba==null?void 0x0:_0x15a4ba['scrollTop'])??0x0,'initial':_0x20db1d[_0x1c76f7(0x197)](_0x37d1e5['id'])??_0x37d1e5[_0x1c76f7(0x2fc)],'initialLayouts':new Map(_0x20db1d),'resizeDirection':_0x1d7137};_0x1cf843[_0x1c76f7(0x49d)]=_0x45b76d,_0x46455d(!0x0);};return _0x1c53e9(_0x383644(0x1e8),{'ref':_0x1aa9bc,'data-dashboard-scroll-container':!0x0,'className':_0x14b647(_0x383644(0x48f),_0x439165),'onClick':_0x1fa28f?_0xb8d4a7=>{const _0x346520=_0x383644;if(!(_0xb8d4a7['target']instanceof Node)||!_0xb8d4a7[_0x346520(0x40a)][_0x346520(0x3e5)](_0xb8d4a7[_0x346520(0x1cb)]))return;let _0xfbbbf2=_0xb8d4a7[_0x346520(0x1cb)]instanceof Element?_0xb8d4a7[_0x346520(0x1cb)]:_0xb8d4a7[_0x346520(0x1cb)][_0x346520(0x196)];_0xfbbbf2!=null&&_0xfbbbf2[_0x346520(0x21a)](_0x346520(0x16b))||_0x2febe6==null||_0x2febe6();}:void 0x0,'children':_0x1c53e9(_0x383644(0x1e8),{'data-dashboard-grid':!0x0,'className':_0x383644(0x3cc),'style':{'gap':0x8,'gridAutoRows':_0x3e9cab,'minHeight':_0x2078a1*(_0x3e9cab+0x8)},'children':_0x146d4e[_0x383644(0x3b1)]['map'](_0xca2d3a=>{const _0x5e7b5e=_0x383644;var _0x10b23d;let _0x431510=_0x146d4e[_0x5e7b5e(0x280)][_0xca2d3a],_0x532894=_0x20db1d['get'](_0xca2d3a);return!_0x431510||!_0x532894?null:_0x1108cb(_0x5e7b5e(0x241),{'data-dashboard-widget':_0x431510['id'],'aria-label':_0x431510[_0x5e7b5e(0x236)]??_0x46e96d(_0x431510),'className':_0x14b647('univer-group\x20univer-relative\x20univer-flex\x20univer-min-h-0\x20univer-flex-col\x20univer-overflow-visible\x20univer-rounded-lg\x20univer-border\x20univer-shadow-sm\x20univer-transition-shadow',_0x431510[_0x5e7b5e(0x427)]===_0x1402ed['Image']||_0x431510[_0x5e7b5e(0x427)]===_0x1402ed[_0x5e7b5e(0x1d9)]?_0x5e7b5e(0x361):_0x5e7b5e(0x33a),_0x1fa28f&&_0x23974d===_0x431510['id']?_0x5e7b5e(0x462):'univer-border-gray-200\x20dark:!univer-border-gray-700'),'style':{'gridColumn':_0x532894[_0x5e7b5e(0x204)]+0x1+_0x5e7b5e(0x1fe)+_0x532894[_0x5e7b5e(0x41d)],'gridRow':_0x532894['row']+0x1+_0x5e7b5e(0x1fe)+_0x532894[_0x5e7b5e(0x1b2)]},'tabIndex':_0x1fa28f?0x0:void 0x0,'onClick':_0x1fa28f?()=>_0x2febe6==null?void 0x0:_0x2febe6(_0x431510['id']):void 0x0,'onFocus':_0x1fa28f?()=>_0x2febe6==null?void 0x0:_0x2febe6(_0x431510['id']):void 0x0,'children':[_0x1fa28f&&_0x1c53e9(_0x5e7b5e(0x2d8),{'type':_0x5e7b5e(0x2d8),'aria-label':_0x1d1287,'data-dashboard-drag-handle':_0x431510['id'],'className':_0x14b647(_0x5e7b5e(0x44b),_0x3d1fe7&&((_0x10b23d=_0x1cf843[_0x5e7b5e(0x49d)])==null?void 0x0:_0x10b23d['id'])===_0x431510['id']&&_0x1cf843[_0x5e7b5e(0x49d)][_0x5e7b5e(0x3fd)]==='move'?'univer-cursor-grabbing':_0x5e7b5e(0x36b)),'onPointerDown':_0x4c04b5=>_0x1f4ba7(_0x4c04b5,_0x431510,_0x5e7b5e(0x268)),'children':_0x1c53e9(_0x4f0f93,{'className':'univer-size-5\x20univer-rotate-90','aria-hidden':_0x5e7b5e(0x354)})}),_0x1fa28f&&_0x1c53e9(_0x5e7b5e(0x1e8),{'className':_0x5e7b5e(0x358),'children':_0x3f9efc==null?void 0x0:_0x3f9efc(_0x431510)}),_0x1c53e9(_0x5e7b5e(0x1e8),{'className':_0x5e7b5e(0x46f),'children':_0x3721db(_0x431510)}),_0x1fa28f&&la[_0x5e7b5e(0x1fd)](({className:_0x5d5ba5,direction:_0x9bfe47})=>{const _0x3e8113=_0x5e7b5e;let _0x311d9a=_0x9bfe47[_0x3e8113(0x2df)]===0x2;return _0x1c53e9(_0x3e8113(0x2d8),{'type':_0x3e8113(0x2d8),'aria-label':_0x5dc9d4,'data-dashboard-resize-handle':_0x9bfe47,'data-dashboard-resize-control':_0x311d9a?_0x9bfe47:void 0x0,'data-dashboard-resize-edge':_0x311d9a?void 0x0:_0x9bfe47,'className':_0x14b647(_0x3e8113(0x485),_0x311d9a?_0x3e8113(0x3d6):'univer-border-0\x20univer-bg-transparent',_0x5d5ba5,_0x23974d===_0x431510['id']&&'univer-pointer-events-auto\x20univer-opacity-100'),'onPointerDown':_0x2f65dc=>_0x1f4ba7(_0x2f65dc,_0x431510,_0x3e8113(0x306),_0x9bfe47)},_0x9bfe47);})]},_0x431510['id']);})})});}var da;const Q={'axis':{..._0x3c4ba3,'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':_0x2c5e3a,'heatmap':_0x4f57a1,'indicatorLine':_0x57cad4,'legend':_0x43f27b,'lineAndArea':_0x1a8b1f,'pareto':_0x1aa1b1,'pie':_0x258d6f,'radar':_0x2ec41b,'relation':{..._0x4805f6,'useValueAsSymbolSize':!0x0},'series':{..._0x13b217,'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((da=_0x40bf0b[_0xbfff20(0x254)])==null?void 0x0:da[_0xbfff20(0x492)])??!0x1}},'style':_0x13d7eb,'titles':_0x4abb4a,'trendline':_0x72a22e,'waterfall':{..._0x2cc178,'useSubtotal':!0x0},'waterfallStyle':_0x436808,'wordCloud':_0xfd1cc7},fa=[_0x217c21['Line'],_0x217c21['Radar'],_0x217c21['WordCloud'],_0x217c21[_0xbfff20(0x170)],_0x217c21[_0xbfff20(0x25a)],_0x217c21[_0xbfff20(0x1f4)],_0x217c21[_0xbfff20(0x23a)],_0x217c21['Heatmap'],_0x217c21[_0xbfff20(0x4a7)],_0x217c21[_0xbfff20(0x360)],_0x217c21[_0xbfff20(0x2f3)],_0x217c21[_0xbfff20(0x3a2)],_0x217c21['Sunburst'],_0x217c21[_0xbfff20(0x38f)],_0x217c21['Chord']];function pa(_0xa2273e){const _0x16910b=_0xbfff20;let {config:_0x537b8c,onChange:_0x447127,runtime:_0x127e72,tableName:_0x1a256c}=_0xa2273e,_0x12dc89=_0x29f087(Kr),_0x2a8993=_0x29f087(_0x2989fb),[_0x1a7bc0,_0x3f0e81]=_0x34e679(_0x39d056[_0x16910b(0x491)]),_0x548a5d=_0x548c0f(()=>new _0x439e96(_0x127e72[_0x16910b(0x1ee)],{'commit':_0x10d07a=>{const _0x4e54e4=_0x16910b;var _0x4c1130;let _0x3d04d6=_0x127e72[_0x4e54e4(0x1ee)],_0x355b99=_0x3aa652(_0x10d07a,{'series':(_0x4c1130=_0x3d04d6[_0x4e54e4(0x167)])==null?void 0x0:_0x4c1130['series'],'currentChartType':_0x3d04d6[_0x4e54e4(0x288)],'currentStyle':_0x3d04d6[_0x4e54e4(0x2c8)],'currentContext':_0x3d04d6['context'],'currentDataAggregation':_0x3d04d6[_0x4e54e4(0x48e)]});_0x447127({'chart':ma(_0x537b8c['chart'],_0x355b99)});}}),[_0x537b8c[_0x16910b(0x252)],_0x447127,_0x127e72]),_0x20da2d=_0x548c0f(()=>_0x5b5e1c(_0x1fbca7[_0x16910b(0x1fd)](_0x4d1673=>({..._0x4d1673,'label':_0x2a8993['t'](va(_0x4d1673[_0x16910b(0x364)]))}))),[_0x2a8993]);return _0x1c53e9(_0x413b19,{'chartUIService':_0x12dc89,'hostAdapter':_0x548a5d,'children':_0x1108cb(_0x16910b(0x1e8),{'className':_0x16910b(0x1d6),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x2a8993['t'](_0x16910b(0x1b1)),'className':_0x16910b(0x251),'items':[{'label':_0x2a8993['t'](_0x16910b(0x242)),'panelId':_0x16910b(0x41e),'value':_0x39d056[_0x16910b(0x491)]},{'label':_0x2a8993['t'](_0x16910b(0x1c3)),'panelId':_0x16910b(0x474),'value':_0x39d056[_0x16910b(0x30a)]}],'value':_0x1a7bc0,'onChange':_0x3f0e81}),_0x1a7bc0===_0x39d056[_0x16910b(0x491)]?_0x1c53e9(_0x420eaf,{'id':_0x16910b(0x41e),'label':_0x2a8993['t'](_0x16910b(0x242)),'children':_0x1108cb('div',{'className':_0x16910b(0x3b9),'children':[_0x1c53e9(_0x44e1cd,{'options':_0x20da2d}),_0x1c53e9(_0xd07337,{}),_0x1c53e9(_0x2a621a,{}),_0x1c53e9(ha,{}),_0x1c53e9(_0x14bbde,{}),_0x1108cb(_0x16910b(0x1e8),{'children':[_0x1c53e9(_0x4ed5df,{'title':_0x2a8993['t']('bases-dashboard-ui.pivot.dataSource')}),_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':_0x1a256c})]}),_0x1c53e9(_0x521472,{'orientationControl':_0x1c53e9(_0x6d25a2,{'size':_0x16910b(0x189),'onClick':()=>_0x447127({'chart':{..._0x537b8c[_0x16910b(0x252)],'orient':_0x537b8c['chart'][_0x16910b(0x292)]==='row'?_0x16910b(0x204):'row'}}),'children':_0x2a8993['t'](_0x16910b(0x3a6))})}),_0x1c53e9(_0x27502d,{}),_0x1c53e9(_0x1e15dd,{'defaultValues':Q[_0x16910b(0x1fc)]}),_0x1108cb('div',{'children':[_0x1c53e9(_0x4ed5df,{'title':_0x2a8993['t'](_0x16910b(0x47e))}),_0x1c53e9(_0x219a49,{'value':_0x537b8c['displayMode'],'options':[{'value':_0x16910b(0x36e),'label':_0x2a8993['t'](_0x16910b(0x343))},{'value':'chart','label':_0x2a8993['t'](_0x16910b(0x266))},{'value':_0x16910b(0x405),'label':_0x2a8993['t'](_0x16910b(0x186))}],'onChange':_0x268bd2=>{const _0x9cacda=_0x16910b;(_0x268bd2==='chart-and-table'||_0x268bd2===_0x9cacda(0x252)||_0x268bd2==='table')&&_0x447127({'displayMode':_0x268bd2});}})]})]})}):_0x1c53e9(_0x420eaf,{'id':_0x16910b(0x474),'label':_0x2a8993['t'](_0x16910b(0x1c3)),'children':_0x1c53e9(ga,{})})]})});}function ma(_0x305916,_0x1ba861){const _0x442d42=_0xbfff20;return{..._0x305916,'type':_0x1ba861[_0x442d42(0x288)]??_0x305916[_0x442d42(0x427)],'style':_0x1ba861[_0x442d42(0x2c8)]??_0x305916[_0x442d42(0x2c8)],'context':_0x1ba861[_0x442d42(0x3b5)]??_0x305916['context'],'dataAggregation':_0x1ba861[_0x442d42(0x48e)]??_0x305916[_0x442d42(0x48e)]};}function ha(){const _0x44e44c=_0xbfff20;let _0x4186a6=_0x486f74();return _0x1c53e9(_0x18f4fe,{'visible':fa[_0x44e44c(0x311)](_0x739e4f=>!_0x1094d9['baseOn'](_0x4186a6,_0x739e4f))});}function _0x1cf0(){const _0x117c88=['bases-dashboard-ui.pivot.addToColumn','univer-mb-3\x20univer-text-sm\x20univer-font-medium','layout','auto','startY','univer-size-6\x20!univer-border\x20!univer-border-solid\x20!univer-border-gray-200\x20!univer-bg-gray-0\x20univer-p-0\x20!univer-shadow-none\x20hover:!univer-bg-gray-100\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900\x20dark:hover:!univer-bg-gray-800','removeEventListener','bases-dashboard-ui.dashboardInspector.enterValue','scrollWidth','bases-dashboard-ui.dashboard.pivotChart','dom','univer-size-4','resize','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','getFieldCountByArea','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','Style','univer-flex\x20univer-gap-2','univer-mx-auto\x20univer-size-6','initial','default','baseOn','children','every','errorType','univer-mt-2','bases-dashboard-ui.dashboard.undo','MultipleGrandTotal','bases-dashboard-ui.dashboardInspector.alignment','visibilityState','isArray','bases-dashboard-ui.dashboard.tableFilter','bases-dashboard-ui.chart.section.indicatorLine','bases-dashboard-ui.dashboardInspector.percent','Rating','ParetoBarSeries','appearance','flatMap','fontSize','bases-dashboard-ui.chart.section.paretoBar','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','bases-dashboard-ui.pivot.rowSubtotalPosition','result','bases-dashboard-ui.dashboard.search','_injector','bases-dashboard-ui.operators.isNot','formatMap','rowSubtotalPosition','114622ZlDzfz','univer-grid\x20univer-gap-3\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','tableOrder','fullscreenElement','bases-dashboard-ui.dashboardInspector.textSize','blank','filterFields','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','border-box','pageView','tableId','bases-dashboard-ui.dashboard.rename','bases-dashboard-ui.pivot.selectAll','pageRows','ChartAndAxisTitles','univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.chart.','repeat','backgroundColor','currency','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.pivot.numberFormat','waterfall.negative','bases-dashboard-ui.pivot.chartAndTable','dashboards','backgroundImage','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','kind','bases-dashboard-ui.pivot.layout','bases-dashboard-ui.operators.after','getDashboard','bases-dashboard-ui.chart.chartTypes.area','files','updateValuePosition','values','center','Row','bases-dashboard-ui.chart.common.legend','toPrimitive','stdDevp','true','setSubtotalType','Radar','ascending','univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','axis','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','lastRow','rootContainerElement','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','saveImage','GREATER_THAN','Candlestick','univer-bg-transparent\x20dark:!univer-bg-transparent','stdDev','currentColor','labelId','index','bases-dashboard-ui.dashboardInspector.editFormula','LESS_THAN_OR_EQUAL','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','bases-dashboard-ui.pivot.filterField','univer-cursor-grab','baseChartDataAnimation','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','chart-and-table','bases-dashboard-ui.dashboardInspector.compact','RoundRect','chartId','decimalPlaces','getSnapshot','var','delete','bases-dashboard-ui.dashboardInspector.general','operand','direction$','innerWidth','onStarting','setLayout','bases-dashboard-ui.operators.lessThanOrEqual','base-pivot-table-configuration','options','bases-dashboard-ui.chart.common.chartAndAxisTitles','dashboard-chart-setup','bases-dashboard-ui.dashboardInspector.numberFormat','setStyle','tabular','bases-dashboard-ui.dashboardInspector.textColor','bases-dashboard-ui.pivot.layoutTabular','UpdatedAt','Checkbox','addImageSourceCache','scrollTop','removeField','textStyle','acquireChartRuntime','GeneralSeries','pageWrap','Gauge','bases-dashboard-ui.pivot.valuePosition','bases-dashboard-ui.pivot.cancel','product','resolve','baseChartDataAnimationDuration','canView','bases-dashboard-ui.pivot.average','PieStyle','univer-m-3','bases-dashboard-ui.chart.section.sunburst','AFTER','localeKey','301406KvMaxG','addFieldWithSourceId','HorizontalAxis','colCount','YYYY-MM-DD','repeatRowLabels','Treemap','bases-dashboard-ui.chart.section.funnel','getImage','VerticalAxis','bases-dashboard-ui.chart.common.switchRowColumn','bases-dashboard-ui.pivot.addToFilter','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','univer-min-w-0\x20univer-flex-1','univer-truncate','Positive','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','bases-dashboard-ui.pivot.showRowGrandTotal','bases-dashboard-ui.dashboard.new','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','bases-dashboard-ui.dashboardInspector.replaceImage','widgetOrder','bases-dashboard-ui.pivot.calculating','bases-dashboard-ui.chart.section.wordCloud','bases-dashboard-ui.pivot.confirm','context','documentStyle','onFilter','general','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','bases-dashboard-ui.dashboard.text','bases-dashboard-ui.pivot.columns','\x20has\x20no\x20render\x20config.','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','Base\x20dashboard\x20chart\x20','getChartRuntime','LESS_THAN','clientWidth','sum','bases-dashboard-ui.pivot.repeatRowLabels','bases-dashboard-ui.pivot.downThenAcross','tbody','getId','function','PivotChart','bases-dashboard-ui.pivot.pivotConfiguration','name','bases-dashboard-ui.dashboardInspector.dataSource','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','4990AkZDzS','split','includes','indicatorLine','primary','Bubble','bases-dashboard-ui.pivot.max','toLocaleLowerCase','univer-box-content\x20univer-size-1.5\x20univer-rounded-full\x20!univer-border-2\x20!univer-border-solid\x20!univer-border-white\x20!univer-bg-primary-600','univer-w-24','showRowSubtotal','print','base-pivot-options','bases-dashboard-ui.dashboardInspector.originalSize','bases-dashboard-ui.chart.waterfall.subtotal','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','Progress','tables','string','stringify','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','syncLayout','getTableFieldsByDataFieldId','contains','top','univer-grid\x20univer-gap-2\x20univer-p-3','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','univer-text-sm\x20univer-font-medium','compact','univer-size-5\x20univer-text-primary-600','bases-dashboard-ui.dashboardInspector.left','WaterfallSeries','RightVerticalAxis','Axes','bases-dashboard-ui.pivot.grandTotal','bases-dashboard-ui.pivot.name','univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','unsubscribe','bases-dashboard-ui.pivot.layoutCompact','Pareto','SolidLine','bases-dashboard-ui.pivot.fields','colView','defaultValue','stopPropagation','select','mode','renderRevision','outline','dataView','dimension','height','_configService','conjunction','table','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','flex-start','bases-dashboard-ui.chart.chartTypes.','legend','currentTarget','pageOverThenDown','symbol','rowView','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','ChartStyle','addEventListener','bases-dashboard-ui.chart.section.chord','defaultPrevented','bases-dashboard-ui.chart.section.gridlinesAndTicks','releaseChartRuntime','some','Escape','bases-dashboard-ui.chart.common.trendline','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','darkMode$','bases-dashboard-ui.operators.contains','bases-dashboard-ui.dashboardInspector.backgroundColor','bases-dashboard-ui.pivot.description','columnSpan','base-pivot-chart-setup','false','stroke','measure','Dom','markNotReady','subUnitId','CreatedAt','border','type','IS_NOT_EMPTY','description','bases-dashboard-ui.chart.section.relation','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-96\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','paragraphs','observe','executeCommand','textColor','row','univer-flex\x20univer-justify-end\x20univer-gap-2','snapshot','catch','bases-dashboard-ui.chart.chartTypes.line','bases-dashboard-ui.dashboardInspector.selectOption','univer-flex-1','cornerView','radius','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','Date','bases-dashboard-ui.pivot.clearFilter','bases-dashboard-ui.pivot.sum','1.1.0','max','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','min','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','bases-dashboard-ui.dashboard.add','exitFullscreen','updateFieldPosition','cumulativeLineStyle','univer-flex\x20univer-min-h-0\x20univer-flex-1','requestFullscreen','univer-w-full','General','univer-pointer-events-none\x20univer-absolute\x20univer-left-1/2\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-h-5\x20univer-w-8\x20-univer-translate-x-1/2\x20univer-appearance-none\x20univer-items-center\x20univer-justify-center\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-400\x20univer-opacity-0\x20univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','univer-w-36','Chord','bases-dashboard-ui.chart.section.paretoLine','setSortInfo','area','bases-dashboard-ui.dashboardInspector.grouped','bases-dashboard-ui.operators.greaterThan','univer-h-full\x20univer-w-full\x20univer-bg-transparent','getUnit','renameField','minmax(0,\x201fr)','createElement','WordCloud','GrandTotal','bases-dashboard-ui.pivot.layoutOutline','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','gray','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','bases-dashboard-ui.mobile.moveUp','body','onMove','isTopTotal','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','displayMode','bases-dashboard-ui.pivot.bottom','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','subItem','fill','bases-dashboard-ui.operators.lessThan','_config','bases-dashboard-ui.dashboardInspector.unchecked','image/*','getOptions','accept','univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','base-pivot-chart-configuration','Image','pipe','_createContext','base-pivot-chart-style','bases-dashboard-ui.pivot.defaultName','bases-dashboard-ui.chart.common.rightVerticalAxis','allowMultiple','hidden','univer-text-sm','bases-dashboard-ui.pivot.min','bases-dashboard-ui.dashboard.formulaShape','redos','createRenderInput','bases-dashboard-ui.pivot.display','getRenderColor','bases-dashboard-ui.pivot.displayName','univer-grid\x20univer-gap-4\x20univer-p-4','checkMounted','bases-dashboard-ui.dashboardInspector.contain','getDirection','univer-pointer-events-none\x20univer-absolute\x20univer-z-30\x20univer-appearance-none\x20univer-p-0\x20univer-opacity-0\x20!univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','bases-dashboard-ui.dashboard.addWidget','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','flex-end','repeatColLabels','univer-grid\x20univer-gap-4','bases-dashboard-ui.operators.is','key','dataAggregation','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','data','Data','rightYAxis','section','indexOf','formula','RecordId','bases-dashboard-ui.pivot.ascending','univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','set','bases-dashboard-ui.dashboardInspector.style','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','univer-border-gray-200\x20dark:!univer-border-gray-700','current','toUpperCase','defineProperty','univer-relative\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-col\x20univer-bg-gray-50\x20dark:univer-bg-gray-950','documentElement','forEach','subtotal','setConfig','numberFormat','bases-dashboard-ui.pivot.fieldSettings','Boxplot','dashboard-widget-','round','boxSizing','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','width','bases-dashboard-ui.dashboard.defaultName','clientY','filterInfo','setOptions','bases-dashboard-ui.chart.section.waterfall','isHeader','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','style$','img','prefix','showColSubtotal','group','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','bases-dashboard-ui.pivot.descending','bases-dashboard-ui.dashboard.deleteWidget','render','onDrop','config','univer-mb-2\x20univer-border-collapse\x20univer-text-sm','onRemove','segmented','[data-dashboard-widget]','univer-size-8\x20univer-p-0\x20univer-text-red-500','onCancel','getValueIndex','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','Scatter','bases-dashboard-ui.dashboard.delete','imageSourceType','text','separator','src','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','focusUnit','bases-dashboard-ui.pivot.filters','permissionPointUpdate$','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','matches','CONTAINS','fieldId','chartRowDirection','change','univer-flex\x20univer-h-auto\x20univer-min-h-12\x20univer-shrink-0\x20univer-flex-wrap\x20univer-items-center\x20univer-gap-1\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','push','bases-dashboard-ui.pivot.pageWrap','onDragEnd','onReady','bases-dashboard-ui.dashboardInspector.dragWidget','bases-dashboard-ui.pivot.tableOnly','Legend','@univerjs-pro/bases-dashboard-ui','small','shapeData','pattern','sourceType','Series','viewOrder','bases-dashboard-ui.pivot.addToValue','fullscreenchange','SingleSelect','BEFORE','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','Text','destructive','parentElement','get','barStyle','lastCol','bases-dashboard-ui.dashboardInspector.close','dispose','IndicatorLine','Group','getFieldPositionInfoById','disconnect','Person','isBottomTotal','info','dataModel','#,##0','bases-dashboard-ui.dashboardInspector.clear','error','shapeText','setCurrentUnitForType','0\x200','univer-group\x20univer-relative\x20univer-flex\x20univer-min-h-0\x20univer-flex-col\x20univer-overflow-visible\x20univer-rounded-lg\x20univer-border\x20univer-shadow-sm\x20univer-transition-shadow','fontSizeMode','find','bases-dashboard-ui.dashboardInspector.sourceUnavailable','getPresentation','Heatmap','isTotal','bases-dashboard-ui.chart.common.editChart','rowSpan','Waterfall','bases-dashboard-ui.mobile.moveDown','value','pivotViewId','version','label','replace','onDragOver','univer-mt-2\x20univer-w-full','bases-dashboard-ui.dashboardInspector.uploadImage','blur','call','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','items','entries','bases-dashboard-ui.dashboard.redo','bases-dashboard-ui.chart.common.customize','bases-dashboard-ui.pivot.pageDirection','bases-dashboard-ui.pivot.top','178593lNEYEz','base64Cache','bases-dashboard-ui.chart.common.heatmap','IS_NOT','list','target','bases-dashboard-ui.dashboard.resizeWidget','color','getResource','displayName','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','currentTheme$','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-whitespace-nowrap\x20univer-border\x20univer-border-gray-200\x20univer-px-3\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-left\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.chart.section.gauge','pluginName','_localeService','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','add','univer-text-gray-400','FormulaShape','iterator','bases-dashboard-ui.chart.common.horizontalAxis','4yKYtVM','thead','bases-dashboard-ui.dashboardInspector.repeat','file','ceil','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','bases-dashboard-ui.dashboard.fullScreen','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','alt','Area','univer-flex\x20univer-flex-col\x20univer-gap-4','decorate','div','fields','format','bases-dashboard-ui.pivot.chartConfiguration','pareto','bases-dashboard-ui.pivot.showColumnSubtotal','model','univer-min-h-11\x20univer-px-3\x20univer-text-base','clientX','createDomChartInstance','bases-dashboard-ui.chart.section.pie','heatmap','Relation','view','count','bases-dashboard-ui.pivot.sourceFields','univer-flex','5823JzFDXe','getImageSourceCache','aside','waterfall','map','\x20/\x20span\x20','bases-dashboard-ui.pivot.repeatColumnLabels','innerHeight','univer-flex\x20univer-h-full\x20univer-w-[380px]\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','UUID','bases-dashboard-ui.dashboardInspector.data','column','valueFields','bases-dashboard-ui.mobile.permissions','bases-dashboard-ui.dashboardInspector.center','univer-flex\x20univer-items-center\x20univer-gap-2','rightY','univer-flex\x20univer-h-full\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.dashboardInspector.decimalPlaces','operator','bases-dashboard-ui.dashboardInspector.autoFit','pie','url(','base-dashboard-pivot-chart-','bases-dashboard-ui.dashboardInspector.currencyCode','univer-relative\x20univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-flex-col\x20univer-justify-center\x20univer-overflow-hidden\x20univer-bg-gray-0\x20univer-p-4\x20univer-text-gray-1000\x20dark:!univer-bg-gray-900\x20dark:!univer-text-gray-50','span','dataset','bases-dashboard-ui.pivot.addToRow','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','bases-dashboard-ui.chart.common.series','bases-dashboard-ui.chart.section.radar','register','closest','bases-dashboard-ui.pivot.count','waterfallStyle','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','dataSource','getCurrentTheme','Subtotal','end','fieldOrder','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','ManualFilter','bases-dashboard-ui.pivot.showRowSubtotal','formulaBinding','undos','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','110813BLFSPE','onMoveDown','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','itemTypes','custom','headerRowCount','bases-dashboard-ui.dashboardInspector.cover','2065512yprZuI','univer-flex\x20univer-min-h-full\x20univer-flex-col','conditions','pointermove','startScrollTop','object','title','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.dashboardInspector.custom','bases-dashboard-ui.dashboardInspector.delete','Sankey','Sunburst','page:','bases-dashboard-ui.pivot.dropFieldsHere','sortInfo','lineAndArea','input','article','bases-dashboard-ui.chart.common.setup','bases-dashboard-ui.dashboardInspector.description','base-pivot-chart-','getOwnPropertyDescriptor','bases-dashboard-ui.pivot.values','GridlinesAndTicks','dashboard-chart-style','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','bases-dashboard-ui.pivot.product','bases-dashboard-ui.dashboardInspector.right','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','rowCount','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','BaseDashboard','test','univer-shrink-0\x20univer-px-3','chart','disposeWithMe','allSeriesStyle','BASE_DASHBOARD_UI_PLUGIN','Currency','bases-dashboard-ui.pivot.searchFields','onMoveUp','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','Funnel','isConnected','executeChartUpdateConfig','bases-dashboard-ui.pivot.stdDev','bases-dashboard-ui.pivot.rows','rowType','getBoundingClientRect','countNums','toJSON','rgb','bases-dashboard-ui.pivot.dataSource','NOT_CONTAINS','bases-dashboard-ui.pivot.chartOnly','packageName','move','bases-dashboard-ui.pivot.acrossThenDown','slice','contain','None','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','supports','bases-dashboard-ui.chart.section.histogram','bases-dashboard-ui.chart.common.chartStyle','then','bases-dashboard-ui.dashboardInspector.reset','columnFields','pivot','valuePosition','bases-dashboard-ui.pivot.removeField','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','trim','bases-dashboard-ui.dashboard.image','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','_chartThemeService','document','borderRadius','univer-flex\x20univer-flex-col','bases-dashboard-ui.dashboardInspector.number','widgets','dashboard-text-','bind','startX','join','headerMap','MultiSelect','TableFilter','chartType','unitId','bases-dashboard-ui.dashboardInspector.backgroundImage','series','shapeType','percent','dashboardOrder','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','fit','bases-dashboard-ui.pivot.variancePopulation','orient','pointerup','univer-w-full\x20univer-justify-start','onDragStart','bases-dashboard-ui.pivot.summarizeBy','left','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','config$','getResult','undoRedoStatus$','univer-bg-gray-50/80\x20dark:!univer-bg-gray-800/70\x20univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-p-3\x20dark:!univer-border-gray-700','header','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','showColGrandTotal','bases-dashboard-ui.dashboard.editWidget','bottom','wordCloud','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','click','bases-dashboard-ui.operators.isNotEmpty','from','ownerDocument','Filter','Value','getDataFieldByTableId','grandTotal','source','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','base-pivot-chart','AND','refreshChartRuntime','712485KtrQUP','bases-dashboard-ui.chart.section.candlestick','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Column','titles','_renderModelManager','cover','views','_element','waterfall.positive','change$','data$','filter','column:','bases-dashboard-ui.dashboardInspector.editData','alignment','item','varp','dataFieldId','showRowGrandTotal','tableFieldId','replaceChildren','style','Pivot','bases-dashboard-ui.chart.section.treemap','trendline','onSettings','match','grouped','bases-dashboard-ui.chart.common.verticalAxis','bases-dashboard-ui.dashboard.configure','onCommit','system','univer-shrink-0\x20univer-rounded-full\x20univer-bg-gray-200\x20univer-px-2\x20univer-py-0.5\x20univer-text-xs\x20univer-text-gray-600\x20dark:!univer-bg-gray-700\x20dark:!univer-text-gray-300','descending','subscribe','clientHeight','scrollHeight','button','keydown','isFinite','\x20/\x20','NumberFormat','getRuntimeContext','bases-dashboard-ui.dashboardInspector.checked','length','right','valueIndex','UNIVER_BASE','bases-dashboard-ui.dashboardInspector.removeImage','Number','overflow','field','minmax(0,\x203fr)\x20minmax(0,\x202fr)','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','bases-dashboard-ui.dashboard.widgetActions','preventDefault','bases-dashboard-ui.dashboardInspector.formula','bases-dashboard-ui.dashboard.section','bases-dashboard-ui.pivot.calculationFailed','constructor','rowFields','56cmIegS','date','bases-dashboard-ui.pivot.variance','Histogram','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','number','px\x20solid\x20','matchMedia','has','ParetoLineSeries'];_0x1cf0=function(){return _0x117c88;};return _0x1cf0();}function $(_0x50976e){const _0x390882=_0xbfff20;return _0x1108cb(_0x476c3e,{'id':_0x50976e['id'],'children':[_0x1c53e9(_0x3ee43e,{'children':_0x50976e[_0x390882(0x1b8)]}),_0x1c53e9(_0x50efea,{'children':_0x50976e[_0x390882(0x310)]})]});}function ga(){const _0x417c4c=_0xbfff20;let _0x5c7d91=_0x29f087(_0x2989fb),_0x3656f0=_0x486f74(),_0x3ee604=_0x3d2664(),[_0xbc1aa,_0x35a174]=_0x34e679(null),_0x4d7b2d=_0x1094d9[_0x417c4c(0x30f)](_0x3656f0,_0x217c21['Pie']),_0x507cf8=_0x3656f0===_0x217c21['Radar'],_0x588be2=_0x3656f0===_0x217c21[_0x417c4c(0x458)],_0x16531c=_0x3656f0===_0x217c21[_0x417c4c(0x25a)],_0x53ac14=_0x1094d9[_0x417c4c(0x30f)](_0x3656f0,_0x217c21[_0x417c4c(0x3d3)]),_0x356fc2=_0x3656f0===_0x217c21[_0x417c4c(0x1f4)],_0x4aa331=_0x3656f0===_0x217c21[_0x417c4c(0x1b3)],_0x4deb9d=_0x3656f0===_0x217c21[_0x417c4c(0x3f6)],_0x49670f=_0x3656f0===_0x217c21[_0x417c4c(0x1af)],_0x372635=_0x4c4c0b(_0x3656f0,_0x235cca['GeneralSeries'])&&!_0x53ac14&&!_0x4deb9d,_0xee96ee=_a(_0x3656f0,_0x5c7d91);return _0x1108cb(_0x169833,{'value':_0xbc1aa,'onChange':_0x35a174,'children':[_0x1c53e9($,{'id':_0x275cd6['ChartStyle'],'label':_0x5c7d91['t'](_0x417c4c(0x270)),'children':_0x1c53e9(_0x392a75,{'defaultValues':Q['style']})}),_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x339)],'label':_0x5c7d91['t'](_0x417c4c(0x37f)),'children':_0x1c53e9(_0x3a97b5,{'commitMode':_0x417c4c(0x1bd),'defaultValues':Q[_0x417c4c(0x2b6)]})}),_0x1c53e9(_0x461f63,{'section':_0x417c4c(0x1f5)}),_0x372635&&_0x1c53e9($,{'id':_0x275cd6['Series'],'label':_0x5c7d91['t'](_0x417c4c(0x217)),'children':_0x1c53e9(_0x3fdf0f,{'defaultValues':Q[_0x417c4c(0x28b)],'NumberFormatField':_0x1fdd9c})}),_0x4aa331&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x3ee)],'label':_0x5c7d91['t'](_0x417c4c(0x15a)),'children':_0x1c53e9(_0x321527,{'defaultValues':Q[_0x417c4c(0x21c)],'getDefaultBucketName':({seriesName:_0xa72cba,target:_0x44e494})=>_0x44e494===_0x17b66a[_0x417c4c(0x220)]?_0x5c7d91['t'](_0x417c4c(0x3dc)):_0xa72cba?_0xa72cba+'-('+_0x5c7d91['t'](_0x417c4c(0x33b)+(_0x44e494===_0x17b66a[_0x417c4c(0x3ab)]?'waterfall.positive':_0x417c4c(0x342)))+')':'','NumberFormatField':_0x1fdd9c})}),_0x4deb9d&&_0x1108cb(_0x52e8d3,{'children':[_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x31d)],'label':_0x5c7d91['t'](_0x417c4c(0x321)),'children':_0x1c53e9(_0xc41187,{'defaultValues':Q[_0x417c4c(0x1ec)],'NumberFormatField':_0x1fdd9c,'showDataPointEditor':!0x0,'target':_0x417c4c(0x198)})}),_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x2f9)],'label':_0x5c7d91['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':_0x1c53e9(_0xc41187,{'defaultValues':Q[_0x417c4c(0x1ec)],'NumberFormatField':_0x1fdd9c,'showDataPointEditor':!0x1,'target':_0x417c4c(0x446)})})]}),_0x4d7b2d&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x397)],'label':_0x5c7d91['t'](_0x417c4c(0x1f2)),'children':_0x1c53e9(_0x411c97,{'defaultValues':Q[_0x417c4c(0x20e)],'NumberFormatField':_0x1fdd9c})}),_0x588be2&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x458)],'label':_0x5c7d91['t'](_0x417c4c(0x3b3)),'children':_0x1c53e9(_0x34e06c,{'defaultValues':Q[_0x417c4c(0x2a3)]})}),_0x507cf8&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x356)],'label':_0x5c7d91['t'](_0x417c4c(0x218)),'children':_0x1c53e9(_0x3cdb06,{'defaultValues':Q['radar']})}),_0x16531c&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x25a)],'label':_0x5c7d91['t'](_0x417c4c(0x3a3)),'children':_0x1c53e9(_0x5c3a2a,{'defaultValues':Q['funnel'],'gapControl':_0x417c4c(0x3fc)})}),_0x49670f&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x1af)],'label':_0x5c7d91['t'](_0x417c4c(0x1c8)),'children':_0x1c53e9(_0x1a9d64,{'defaultValues':Q['heatmap']})}),_0x356fc2&&_0x1c53e9($,{'id':_0x275cd6['Relation'],'label':_0x5c7d91['t'](_0x417c4c(0x42a)),'children':_0x1c53e9(_0x43b09c,{'defaultValues':Q['relation']})}),_0x2324f4(_0x3656f0)&&_0x1c53e9($,{'id':_0x275cd6['LineAndArea'],'label':_0x5c7d91['t'](_0x1094d9[_0x417c4c(0x30f)](_0x3656f0,_0x217c21[_0x417c4c(0x1e5)])?_0x417c4c(0x34b):_0x417c4c(0x434)),'children':_0x1c53e9(_0x67621e,{'defaultValues':Q[_0x417c4c(0x23f)],'lineStyleControl':_0x417c4c(0x16a)})}),_0x4c4c0b(_0x3656f0,_0x235cca['Legend'])&&_0x1c53e9($,{'id':_0x275cd6['Legend'],'label':_0x5c7d91['t'](_0x417c4c(0x351)),'children':_0x1c53e9(_0x40abfd,{'defaultValues':Q[_0x417c4c(0x409)]})}),_0x4c4c0b(_0x3656f0,_0x235cca[_0x417c4c(0x3f0)])&&_0x1108cb(_0x52e8d3,{'children':[_0x1c53e9($,{'id':_0x275cd6['HorizontalAxis'],'label':_0x5c7d91['t'](_0x417c4c(0x1db)),'children':_0x1c53e9(_0x54bdb3,{'axis':'x','defaultValues':Q['axis'],'NumberFormatField':_0x1fdd9c})}),_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x3a5)],'label':_0x5c7d91['t'](_0x417c4c(0x2cf)),'children':_0x1c53e9(_0x54bdb3,{'axis':'y','defaultValues':Q[_0x417c4c(0x359)],'NumberFormatField':_0x1fdd9c})}),_0x1c53e9(_0x461f63,{'section':'depthAxis'}),_0x3ee604&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x3ef)],'label':_0x5c7d91['t'](_0x417c4c(0x476)),'children':_0x1c53e9(_0x54bdb3,{'axis':_0x417c4c(0x209),'defaultValues':Q[_0x417c4c(0x359)],'NumberFormatField':_0x1fdd9c})}),_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x247)],'label':_0x5c7d91['t'](_0x417c4c(0x413)),'children':_0x1c53e9(_0xd55416,{'defaultValues':Q[_0x417c4c(0x359)]})})]}),_0x4c4c0b(_0x3656f0,_0x235cca[_0x417c4c(0x19c)])&&_0x1c53e9($,{'id':_0x275cd6[_0x417c4c(0x19c)],'label':_0x5c7d91['t'](_0x417c4c(0x31a)),'children':_0x1c53e9(_0x4e8f14,{'defaultValues':Q[_0x417c4c(0x3d1)]})}),_0x23f1e4(_0x3656f0)&&_0x1c53e9($,{'id':_0x275cd6['Trendline'],'label':_0x5c7d91['t']('bases-dashboard-ui.chart.common.trendline'),'children':_0x1c53e9(_0x2d84a4,{'defaultValues':Q[_0x417c4c(0x2cb)]})}),_0xee96ee&&_0x1c53e9($,{'id':_0xee96ee['id'],'label':_0xee96ee['label'],'children':_0x1c53e9(_0x359635,{})})]});}function _a(_0x3876be,_0x429d87){const _0x257c0e=_0xbfff20;let _0x5b823f={[_0x217c21['Candlestick']]:{'id':_0x275cd6[_0x257c0e(0x360)],'localeKey':_0x257c0e(0x2b3)},[_0x217c21['Histogram']]:{'id':_0x275cd6['Histogram'],'localeKey':_0x257c0e(0x26f)},[_0x217c21[_0x257c0e(0x3a2)]]:{'id':_0x275cd6['Treemap'],'localeKey':_0x257c0e(0x2ca)},[_0x217c21[_0x257c0e(0x23b)]]:{'id':_0x275cd6['Sunburst'],'localeKey':_0x257c0e(0x399)},[_0x217c21[_0x257c0e(0x38f)]]:{'id':_0x275cd6[_0x257c0e(0x38f)],'localeKey':_0x257c0e(0x1d3)},[_0x217c21[_0x257c0e(0x44d)]]:{'id':_0x275cd6[_0x257c0e(0x44d)],'localeKey':_0x257c0e(0x411)}}[_0x3876be];return _0x5b823f?{'id':_0x5b823f['id'],'label':_0x429d87['t'](_0x5b823f[_0x257c0e(0x39b)])}:null;}function va(_0x1a7341){const _0x201994=_0xbfff20;return _0x201994(0x408)+_0x1a7341;}function ya({onChange:_0x226b44,onEditData:_0x33cbca,runtime:_0x3cfa2e,sourceChart:_0x47a1bc,sourceName:_0x15bbc9,widget:_0x207c4e}){const _0x476e93=_0xbfff20;let _0x5ae7db=_0x29f087(Kr),_0x17d9cc=_0x29f087(_0x2989fb),[_0x27bf12,_0x400ff3]=_0x34e679(_0x39d056[_0x476e93(0x491)]),_0x40910b=_0x207c4e['chart']??_0x47a1bc,_0x3ba7e5=_0x548c0f(()=>new _0x439e96(_0x3cfa2e['model'],{'commit':_0x332e82=>{const _0x24df0f=_0x476e93;var _0x3989e8;let _0x5028b0=_0x3cfa2e[_0x24df0f(0x1ee)],_0x149da0=_0x3aa652(_0x332e82,{'series':(_0x3989e8=_0x5028b0['config'])==null?void 0x0:_0x3989e8['series'],'currentChartType':_0x5028b0[_0x24df0f(0x288)],'currentStyle':_0x5028b0[_0x24df0f(0x2c8)],'currentContext':_0x5028b0[_0x24df0f(0x3b5)],'currentDataAggregation':_0x5028b0[_0x24df0f(0x48e)]});_0x226b44({..._0x207c4e,'chart':ma(_0x40910b,_0x149da0)})[_0x24df0f(0x433)](()=>void 0x0);}}),[_0x40910b,_0x226b44,_0x3cfa2e,_0x207c4e]),_0x49a9be=_0x548c0f(()=>_0x5b5e1c(_0x1fbca7['map'](_0xbc3ba8=>({..._0xbc3ba8,'label':_0x17d9cc['t'](ba(_0xbc3ba8['labelId']))}))),[_0x17d9cc]);return _0x1c53e9(_0x413b19,{'chartUIService':_0x5ae7db,'hostAdapter':_0x3ba7e5,'children':_0x1108cb(_0x476e93(0x1e8),{'data-dashboard-chart-inspector':!0x0,'className':_0x476e93(0x22b),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x17d9cc['t'](_0x476e93(0x1b1)),'className':_0x476e93(0x251),'items':[{'label':_0x17d9cc['t'](_0x476e93(0x242)),'panelId':'dashboard-chart-setup','value':_0x39d056[_0x476e93(0x491)]},{'label':_0x17d9cc['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x476e93(0x248),'value':_0x39d056[_0x476e93(0x30a)]}],'value':_0x27bf12,'onChange':_0x400ff3}),_0x27bf12===_0x39d056[_0x476e93(0x491)]?_0x1c53e9(_0x420eaf,{'id':_0x476e93(0x380),'label':_0x17d9cc['t']('bases-dashboard-ui.chart.common.setup'),'children':_0x1108cb(_0x476e93(0x1e8),{'className':_0x476e93(0x3b9),'children':[_0x1c53e9(_0x44e1cd,{'options':_0x49a9be}),_0x1c53e9(_0xd07337,{}),_0x1c53e9(_0x2a621a,{}),_0x1c53e9(ha,{}),_0x1c53e9(_0x14bbde,{}),_0x1108cb('div',{'children':[_0x1c53e9(_0x4ed5df,{'title':_0x17d9cc['t'](_0x476e93(0x3cb))}),_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':_0x15bbc9}),_0x1c53e9(_0x6d25a2,{'className':_0x476e93(0x1bb),'onClick':_0x33cbca,'children':_0x17d9cc['t'](_0x476e93(0x2c0))})]})]})}):_0x1c53e9(_0x420eaf,{'id':_0x476e93(0x248),'label':_0x17d9cc['t'](_0x476e93(0x1c3)),'children':_0x1c53e9(ga,{})})]})});}function ba(_0x126f91){const _0x38ead3=_0xbfff20;return _0x38ead3(0x408)+_0x126f91;}const xa=['general',_0xbfff20(0x2f5),_0xbfff20(0x28d),_0xbfff20(0x33e),_0xbfff20(0x2ce),_0xbfff20(0x3eb)];function Sa({base:_0x399bce,onChange:_0x436ad8,onSelectBackgroundImage:_0x5979c2,widget:_0x2a7c09}){const _0x166891=_0xbfff20;var _0x52136b;let _0x114dd9=_0x29f087(_0x2989fb),_0x5f1cb8=_0x29f087(_0x3fdc71),_0x2c53cf=_0x39908a(()=>_0x5f1cb8[_0x166891(0x1d1)],_0x5f1cb8[_0x166891(0x21f)](),!0x1,[_0x5f1cb8]),_0x42ea2d=_0x39908a(()=>_0x5f1cb8[_0x166891(0x419)],_0x5f1cb8['darkMode'],!0x1,[_0x5f1cb8]),[_0xb0ef65,_0x57056]=_0x34e679(_0x166891(0x490)),[_0x37d710,_0x2f80fa]=_0x34e679(!0x1),_0x3ed792=Sr(_0x2a7c09),_0xe9e46d=_0x399bce['getSnapshot']()[_0x166891(0x3df)][_0x2a7c09['tableId']],_0x3dc15d=_0xe9e46d==null?void 0x0:_0xe9e46d[_0x166891(0x18e)][_0x166891(0x1ac)](_0x11c016=>_0xe9e46d[_0x166891(0x2b9)][_0x11c016]),_0x58cbc1=_0x3dc15d?_0xe9e46d==null?void 0x0:_0xe9e46d[_0x166891(0x2b9)][_0x3dc15d]:void 0x0,_0x1a0cd4=_0xe9e46d&&_0x58cbc1?_0xacf6bd(_0x399bce[_0x166891(0x373)](),_0xe9e46d,_0x58cbc1)[_0x166891(0x1fd)](_0xf13f6a=>({..._0xf13f6a,'current':!0x1})):[],_0x3c8b07=((_0x52136b=_0x2a7c09['shapeData'][_0x166891(0x226)])==null?void 0x0:_0x52136b[_0x166891(0x495)])??'',_0x39fb46=_0xacb7f5=>_0x436ad8(Cr(_0x2a7c09,_0xacb7f5))[_0x166891(0x433)](()=>void 0x0),_0x1189b0=_0x53b821=>_0x436ad8({..._0x2a7c09,'description':_0x53b821})['catch'](()=>void 0x0);return _0x1108cb(_0x166891(0x1e8),{'data-dashboard-formula-inspector':!0x0,'className':_0x166891(0x22b),'children':[_0x1c53e9(_0x4fe720,{'className':_0x166891(0x398),'items':[{'value':_0x166891(0x490),'label':_0x114dd9['t'](_0x166891(0x203))},{'value':_0x166891(0x2c8),'label':_0x114dd9['t'](_0x166891(0x49a))}],'value':_0xb0ef65,'onChange':_0x57056}),_0x1c53e9('div',{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0xb0ef65===_0x166891(0x490)?_0x1108cb(_0x166891(0x1e8),{'className':_0x166891(0x48b),'children':[_0x1c53e9(Ca,{'label':_0x114dd9['t'](_0x166891(0x243)),'children':_0x1c53e9(_0x1b54d7,{'value':_0x2a7c09[_0x166891(0x429)]??_0x2a7c09['title']??'','onChange':_0x1189b0,'onBlur':_0x1e0d69=>_0x1189b0(_0x1e0d69['target'][_0x166891(0x1b5)])})}),_0x1c53e9(Ca,{'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.dataSource'),'children':_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':(_0xe9e46d==null?void 0x0:_0xe9e46d['name'])??_0x114dd9['t'](_0x166891(0x1ad))})}),_0x1108cb(Ca,{'label':_0x114dd9['t'](_0x166891(0x2eb)),'children':[_0x1c53e9(_0x1b54d7,{'disabled':!0x0,'value':_0x200012(_0x3c8b07,_0x1a0cd4)}),_0x1c53e9(_0x6d25a2,{'className':'univer-mt-2\x20univer-w-full','onClick':()=>_0x2f80fa(!0x0),'children':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.editFormula')})]})]}):_0x1108cb(_0x166891(0x1e8),{'className':_0x166891(0x48b),'children':[_0x1c53e9(_0x4931cb,{'emptyLabel':_0x114dd9['t'](_0x166891(0x41b)),'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x42ea2d?_0x2c53cf['gray'][0x384]:_0x2c53cf[_0x166891(0x45c)][0x0],'resetLabel':_0x114dd9['t'](_0x166891(0x272)),'value':_0x3ed792[_0x166891(0x33d)]??null,'onChange':_0x2096f8=>_0x39fb46({'backgroundColor':_0x2096f8??void 0x0})}),_0x1108cb(Ca,{'label':_0x114dd9['t'](_0x166891(0x28a)),'children':[_0x1108cb(_0x166891(0x1e8),{'className':'univer-flex\x20univer-gap-2','children':[_0x1108cb(_0x6d25a2,{'className':_0x166891(0x436),'onClick':()=>{const _0x2c7a51=_0x166891;_0x5979c2()[_0x2c7a51(0x271)](_0x286cdc=>{const _0x5ebf99=_0x2c7a51;if(_0x286cdc){var _0xe3c5c1;return _0x39fb46({'backgroundImage':{..._0x286cdc,'fit':((_0xe3c5c1=_0x3ed792[_0x5ebf99(0x345)])==null?void 0x0:_0xe3c5c1[_0x5ebf99(0x290)])??_0x5ebf99(0x2b8)}});}})[_0x2c7a51(0x433)](()=>void 0x0);},'children':[_0x1c53e9(_0x34be53,{}),_0x3ed792[_0x166891(0x345)]?_0x114dd9['t'](_0x166891(0x3b0)):_0x114dd9['t'](_0x166891(0x1bc))]}),_0x3ed792['backgroundImage']&&_0x1c53e9(_0x6d25a2,{'aria-label':_0x114dd9['t'](_0x166891(0x2e3)),'title':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'onClick':()=>_0x39fb46({'backgroundImage':void 0x0}),'children':_0x1c53e9(_0x48daea,{})})]}),_0x3ed792[_0x166891(0x345)]&&_0x1c53e9(_0x4fe720,{'className':_0x166891(0x313),'items':[{'value':'cover','label':_0x114dd9['t'](_0x166891(0x22f))},{'value':_0x166891(0x26b),'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.contain')}],'value':_0x3ed792['backgroundImage'][_0x166891(0x290)],'onChange':_0x3a9a99=>_0x39fb46({'backgroundImage':_0x3ed792[_0x166891(0x345)]?{..._0x3ed792[_0x166891(0x345)],'fit':_0x3a9a99}:void 0x0})})]}),_0x1c53e9(_0x4931cb,{'emptyLabel':_0x114dd9['t'](_0x166891(0x384)),'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x42ea2d?_0x2c53cf[_0x166891(0x45c)][0x32]:_0x2c53cf[_0x166891(0x45c)][0x3e8],'resetLabel':_0x114dd9['t'](_0x166891(0x272)),'value':_0x3ed792[_0x166891(0x42f)]??null,'onChange':_0x4475d8=>_0x39fb46({'textColor':_0x4475d8??void 0x0})}),_0x1c53e9(Ca,{'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':_0x1c53e9(_0x4fe720,{'items':[{'value':_0x166891(0x297),'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':_0x166891(0x34f),'label':_0x114dd9['t'](_0x166891(0x207))},{'value':_0x166891(0x2e0),'label':_0x114dd9['t'](_0x166891(0x24b))}],'value':_0x3ed792[_0x166891(0x2c1)],'onChange':_0x2c0d84=>_0x39fb46({'alignment':_0x2c0d84})})}),_0x1108cb(Ca,{'label':_0x114dd9['t'](_0x166891(0x32f)),'children':[_0x1c53e9(_0x4fe720,{'items':[{'value':'auto','label':_0x114dd9['t'](_0x166891(0x20d))},{'value':_0x166891(0x22d),'label':_0x114dd9['t'](_0x166891(0x238))}],'value':_0x3ed792[_0x166891(0x1ab)],'onChange':_0x46eb64=>_0x39fb46({'fontSizeMode':_0x46eb64})}),_0x3ed792[_0x166891(0x1ab)]===_0x166891(0x22d)&&_0x1c53e9(_0x5a3ae3,{'className':_0x166891(0x313),'min':0xc,'max':0x78,'value':_0x3ed792[_0x166891(0x320)],'onChange':_0x14f517=>_0x39fb46({'fontSize':_0x14f517??0x28,'fontSizeMode':'custom'})})]}),_0x1c53e9(Ca,{'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.numberFormat'),'children':_0x1c53e9(_0x219a49,{'value':_0x3ed792[_0x166891(0x4a5)],'options':[{'value':_0x166891(0x3b8),'label':_0x114dd9['t'](_0x166891(0x376))},{'value':_0x166891(0x2f5),'label':_0x114dd9['t'](_0x166891(0x27f))},{'value':'percent','label':_0x114dd9['t'](_0x166891(0x31b))},{'value':_0x166891(0x33e),'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.currency')},{'value':_0x166891(0x2ce),'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':'compact','label':_0x114dd9['t'](_0x166891(0x36f))}],'onChange':_0x5c8231=>{const _0x23d1fd=_0x166891;let _0x177a35=xa[_0x23d1fd(0x1ac)](_0x3974e4=>_0x3974e4===_0x5c8231);_0x177a35&&_0x39fb46({'numberFormat':_0x177a35});}})}),_0x3ed792[_0x166891(0x4a5)]===_0x166891(0x33e)&&_0x1c53e9(Ca,{'label':_0x114dd9['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':_0x1c53e9(_0x1b54d7,{'value':_0x3ed792[_0x166891(0x33e)],'onChange':_0x2be3bf=>_0x39fb46({'currency':_0x2be3bf[_0x166891(0x26a)](0x0,0x3)[_0x166891(0x49e)]()})})}),_0x3ed792[_0x166891(0x4a5)]!=='general'&&_0x1c53e9(Ca,{'label':_0x114dd9['t'](_0x166891(0x20b)),'children':_0x1c53e9(_0x5a3ae3,{'min':0x0,'max':0x8,'value':_0x3ed792['decimalPlaces'],'onChange':_0x53e956=>_0x39fb46({'decimalPlaces':_0x53e956??0x0})})})]})}),_0x37d710&&_0x1c53e9(_0x178b21,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':_0x1c53e9(_0x375bf1,{'tables':_0x1a0cd4,'formula':_0x200012(_0x3c8b07,_0x1a0cd4),'onCancel':()=>_0x2f80fa(!0x1),'onSave':_0x345e94=>{const _0x511c86=_0x166891;let _0x4da87e=_0x2a7c09['shapeData']['formulaBinding']??{'formula':''};return _0x436ad8({..._0x2a7c09,'shapeData':{..._0x2a7c09['shapeData'],'formulaBinding':{..._0x4da87e,'formula':_0x359363(_0x345e94,_0x1a0cd4)}}})[_0x511c86(0x271)](()=>_0x2f80fa(!0x1))[_0x511c86(0x433)](()=>void 0x0);}})})]});}function Ca({children:_0x15e5c0,label:_0x1620c7}){const _0x443ff5=_0xbfff20;return _0x1108cb('div',{'role':_0x443ff5(0x161),'aria-label':_0x1620c7,'className':_0x443ff5(0x277),'children':[_0x1c53e9(_0x443ff5(0x213),{'children':_0x1620c7}),_0x15e5c0]});}const wa={[_0x30a5c8['IS']]:_0xbfff20(0x48c),[_0x30a5c8['IS_NOT']]:_0xbfff20(0x327),[_0x30a5c8[_0xbfff20(0x17c)]]:_0xbfff20(0x41a),[_0x30a5c8[_0xbfff20(0x265)]]:'bases-dashboard-ui.operators.notContains',[_0x30a5c8['IS_EMPTY']]:'bases-dashboard-ui.operators.isEmpty',[_0x30a5c8[_0xbfff20(0x428)]]:_0xbfff20(0x2a6),[_0x30a5c8[_0xbfff20(0x35f)]]:_0xbfff20(0x452),[_0x30a5c8['GREATER_THAN_OR_EQUAL']]:'bases-dashboard-ui.operators.greaterThanOrEqual',[_0x30a5c8[_0xbfff20(0x3c0)]]:_0xbfff20(0x468),[_0x30a5c8[_0xbfff20(0x367)]]:_0xbfff20(0x37c),[_0x30a5c8[_0xbfff20(0x192)]]:'bases-dashboard-ui.operators.before',[_0x30a5c8[_0xbfff20(0x39a)]]:_0xbfff20(0x349)};function Ta({disabled:_0x494021,fields:_0x3bfc03,filter:_0x4eec78,onChange:_0x335159}){const _0x42b935=_0xbfff20;let _0x2cc5da=_0x29f087(_0x2989fb),_0x359e04=(_0x4eec78==null?void 0x0:_0x4eec78[_0x42b935(0x232)])??[];return _0x359e04[_0x42b935(0x2df)]?_0x1c53e9(_0x42b935(0x1e8),{'className':_0x42b935(0x162),'children':_0x359e04['map']((_0x31da54,_0x4f56f5)=>{const _0x3ff4ea=_0x42b935;let _0x1a99dd=_0x3bfc03[_0x3ff4ea(0x1ac)](_0x16c797=>_0x16c797['id']===_0x31da54[_0x3ff4ea(0x17d)]);return _0x1108cb(_0x3ff4ea(0x1e8),{'className':_0x3ff4ea(0x29d),'children':[_0x1108cb(_0x3ff4ea(0x1e8),{'className':_0x3ff4ea(0x45b),'children':[_0x1c53e9(_0x3ff4ea(0x213),{'className':_0x3ff4ea(0x24c),'children':(_0x1a99dd==null?void 0x0:_0x1a99dd[_0x3ff4ea(0x3ca)])??_0x31da54[_0x3ff4ea(0x17d)]}),_0x1c53e9('span',{'className':_0x3ff4ea(0x2d3),'children':_0x2cc5da['t'](wa[_0x31da54['operator']])})]}),Na(_0x31da54[_0x3ff4ea(0x20c)])&&_0x1c53e9(Da,{'disabled':_0x494021,'field':_0x1a99dd,'value':_0x31da54[_0x3ff4ea(0x377)],'onChange':_0x4f549f=>_0x335159(Aa(_0x4eec78,_0x4f56f5,{'operand':_0x4f549f}))})]},Ia(_0x359e04,_0x31da54,_0x4f56f5));})}):_0x1108cb('div',{'className':_0x42b935(0x40e),'children':[_0x1c53e9(_0xad9ba4,{'className':_0x42b935(0x30c)}),_0x1c53e9('span',{'className':_0x42b935(0x479),'children':_0x2cc5da['t'](_0x42b935(0x319))})]});}function Ea({fields:_0x369364,filter:_0x30781a,onChange:_0x1e2ef1,onClear:_0x3e9d73}){const _0x3eab89=_0xbfff20;let _0x309b2d=_0x29f087(_0x2989fb),_0x90965d=(_0x30781a==null?void 0x0:_0x30781a[_0x3eab89(0x232)])??[];return _0x1108cb(_0x3eab89(0x1e8),{'data-dashboard-filter-inspector':!0x0,'className':'univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','children':[_0x90965d[_0x3eab89(0x1fd)]((_0x1360da,_0x4be841)=>{const _0x531bf8=_0x3eab89;let _0x532806=_0x369364[_0x531bf8(0x1ac)](_0x405c7e=>_0x405c7e['id']===_0x1360da['fieldId'])??_0x369364[0x0],_0x52b41e=ja(_0x532806);return _0x1108cb('section',{'className':_0x531bf8(0x32b),'children':[_0x1108cb(_0x531bf8(0x1e8),{'className':_0x531bf8(0x228),'children':[_0x1c53e9(_0x219a49,{'value':_0x1360da[_0x531bf8(0x17d)],'options':_0x369364[_0x531bf8(0x1fd)](_0x26fbd9=>({'value':_0x26fbd9['id'],'label':_0x26fbd9[_0x531bf8(0x3ca)]})),'onChange':_0x57fc10=>{const _0x52e949=_0x531bf8;let _0x1e0851=_0x369364[_0x52e949(0x1ac)](_0x8509c7=>_0x8509c7['id']===_0x57fc10);if(!_0x1e0851)return;let _0x2b3769=ja(_0x1e0851)[0x0];_0x1e2ef1(Aa(_0x30781a,_0x4be841,ka(_0x1e0851,_0x2b3769)));}}),_0x1c53e9(_0x6d25a2,{'type':'button','variant':_0x531bf8(0x173),'aria-label':_0x309b2d['t'](_0x531bf8(0x239)),'className':_0x531bf8(0x16c),'onClick':()=>_0x1e2ef1(Oa(_0x30781a,_0x90965d[_0x531bf8(0x2be)]((_0x8e273,_0x36d10d)=>_0x36d10d!==_0x4be841))),'children':_0x1c53e9(_0x33d94a,{})})]}),_0x1c53e9(_0x219a49,{'value':_0x1360da[_0x531bf8(0x20c)],'options':_0x52b41e[_0x531bf8(0x1fd)](_0x9e521=>({'value':_0x9e521,'label':_0x309b2d['t'](wa[_0x9e521])})),'onChange':_0x3ee0e9=>{let _0x18e5eb=_0x52b41e['find'](_0x31256b=>_0x31256b===_0x3ee0e9);_0x18e5eb&&_0x1e2ef1(Aa(_0x30781a,_0x4be841,{'operator':_0x18e5eb,'operand':Ma(_0x532806)}));}}),Na(_0x1360da['operator'])&&_0x1c53e9(Da,{'field':_0x532806,'value':_0x1360da[_0x531bf8(0x377)],'onChange':_0x4fe29d=>_0x1e2ef1(Aa(_0x30781a,_0x4be841,{'operand':_0x4fe29d}))})]},Ia(_0x90965d,_0x1360da,_0x4be841));}),_0x1108cb(_0x6d25a2,{'type':'button','variant':_0x3eab89(0x173),'className':_0x3eab89(0x43a),'disabled':!_0x369364[_0x3eab89(0x2df)],'onClick':()=>{let _0x35e51c=_0x369364[0x0];if(!_0x35e51c)return;let _0x2ce8ef=ja(_0x35e51c)[0x0];_0x1e2ef1(Oa(_0x30781a,[..._0x90965d,ka(_0x35e51c,_0x2ce8ef)]));},'children':[_0x1c53e9(_0x34be53,{}),_0x309b2d['t']('bases-dashboard-ui.dashboardInspector.newCondition')]}),_0x90965d[_0x3eab89(0x2df)]>0x0&&_0x1c53e9(_0x6d25a2,{'type':'button','variant':_0x3eab89(0x173),'className':_0x3eab89(0x449),'onClick':_0x3e9d73,'children':_0x309b2d['t'](_0x3eab89(0x1a5))})]});}function Da({disabled:_0x199311,field:_0x2efa2e,onChange:_0x9d535e,value:_0x3342d7}){const _0x50cce5=_0xbfff20;let _0xb09779=_0x29f087(_0x2989fb),[_0x2706c6,_0x2c3560]=_0x34e679({'value':_0x3342d7,'text':String(_0x3342d7??'')});Object['is'](_0x2706c6[_0x50cce5(0x1b5)],_0x3342d7)||_0x2c3560({'value':_0x3342d7,'text':String(_0x3342d7??'')});let _0x545b25=_0x2706c6[_0x50cce5(0x173)],_0x28de36=_0x4e3688=>_0x2c3560({'value':_0x3342d7,'text':_0x4e3688}),_0xfbaf16=_0x2efa2e==null?void 0x0:_0x2efa2e[_0x50cce5(0x427)];if(_0xfbaf16===_0x4fcd7c[_0x50cce5(0x387)]){let _0x2abe63=_0x3342d7===!0x0||_0x3342d7===_0x50cce5(0x354);return _0x1108cb(_0x6d25a2,{'type':_0x50cce5(0x2d8),'variant':_0x50cce5(0x30e),'disabled':_0x199311,'className':_0x50cce5(0x294),'onClick':()=>_0x9d535e(!_0x2abe63),'children':[_0x1c53e9(_0x1eb8df,{'checked':_0x2abe63,'disabled':_0x199311,'onChange':()=>void 0x0}),_0x2abe63?_0xb09779['t'](_0x50cce5(0x2de)):_0xb09779['t'](_0x50cce5(0x46a))]});}return La(_0xfbaf16)?_0x199311?_0x1c53e9(_0x6d25a2,{'type':_0x50cce5(0x2d8),'variant':_0x50cce5(0x30e),'className':_0x50cce5(0x449),'disabled':!0x0,'children':_0x1be5ea(_0x3342d7==null||_0x3342d7===''?void 0x0:String(_0x3342d7))[_0x50cce5(0x1ea)](_0x50cce5(0x3a0))}):_0x1c53e9(_0x406bb7,{'className':'univer-w-full','value':_0x1be5ea(_0x3342d7==null||_0x3342d7===''?void 0x0:String(_0x3342d7))['toDate'](),'onValueChange':_0x89d4e0=>_0x9d535e(_0x1be5ea(_0x89d4e0)[_0x50cce5(0x1ea)](_0x50cce5(0x3a0)))}):za(_0x2efa2e)?_0x1c53e9(_0x5cd170,{'className':_0x50cce5(0x449),'disabled':_0x199311,'value':Array[_0x50cce5(0x318)](_0x3342d7)?_0x3342d7['map'](String):[],'options':Pa(_0x2efa2e),'onChange':_0x9d535e}):_0xfbaf16===_0x4fcd7c[_0x50cce5(0x191)]||_0xfbaf16===_0x4fcd7c[_0x50cce5(0x19d)]||_0xfbaf16===_0x4fcd7c[_0x50cce5(0x1a0)]?_0x1c53e9(_0x219a49,{'className':_0x50cce5(0x449),'disabled':_0x199311,'value':String(_0x3342d7??''),'options':[{'value':'','label':_0xb09779['t'](_0x50cce5(0x435))},...Pa(_0x2efa2e)],'onChange':_0x9d535e}):Ra(_0xfbaf16)?_0x1c53e9(_0x1b54d7,{'className':_0x50cce5(0x449),'disabled':_0x199311,'inputMode':'decimal','value':_0x545b25,'aria-invalid':_0x545b25!==''&&!Number[_0x50cce5(0x2da)](Number(_0x545b25)),'onChange':_0x569022=>{const _0x3dfe2d=_0x50cce5;_0x28de36(_0x569022),_0x569022===''?_0x9d535e(''):Number[_0x3dfe2d(0x2da)](Number(_0x569022))&&_0x9d535e(Number(_0x569022));},'onBlur':()=>_0x28de36(String(_0x3342d7??''))}):_0x1c53e9(_0x1b54d7,{'disabled':_0x199311,'value':String(_0x3342d7??''),'placeholder':_0xb09779['t'](_0x50cce5(0x301)),'onChange':_0x9d535e});}function Oa(_0x127f14,_0x4c7e86){const _0x2394b6=_0xbfff20;return{'conjunction':(_0x127f14==null?void 0x0:_0x127f14[_0x2394b6(0x404)])??_0x4854b1[_0x2394b6(0x2b0)],'conditions':_0x4c7e86};}function ka(_0x19618b,_0x2cb2bb){return Na(_0x2cb2bb)?{'fieldId':_0x19618b['id'],'operator':_0x2cb2bb,'operand':Ma(_0x19618b)}:{'fieldId':_0x19618b['id'],'operator':_0x2cb2bb};}function Aa(_0x24b92c,_0x33818b,_0x122c9c){const _0x50a86f=_0xbfff20;return Oa(_0x24b92c,((_0x24b92c==null?void 0x0:_0x24b92c[_0x50a86f(0x232)])??[])[_0x50a86f(0x1fd)]((_0x563ef2,_0x38f8c1)=>_0x38f8c1===_0x33818b?{..._0x563ef2,..._0x122c9c}:_0x563ef2));}function ja(_0x5da5f3){const _0x3961ff=_0xbfff20;let _0x48dba6=[_0x30a5c8['IS_EMPTY'],_0x30a5c8[_0x3961ff(0x428)]];switch(_0x5da5f3==null?void 0x0:_0x5da5f3[_0x3961ff(0x427)]){case _0x4fcd7c['Number']:case _0x4fcd7c[_0x3961ff(0x256)]:case _0x4fcd7c[_0x3961ff(0x3de)]:case _0x4fcd7c[_0x3961ff(0x31c)]:return[_0x30a5c8['IS'],_0x30a5c8[_0x3961ff(0x1c9)],_0x30a5c8[_0x3961ff(0x35f)],_0x30a5c8[_0x3961ff(0x3c0)],..._0x48dba6];case _0x4fcd7c['Date']:case _0x4fcd7c[_0x3961ff(0x425)]:case _0x4fcd7c['UpdatedAt']:return[_0x30a5c8['IS'],_0x30a5c8[_0x3961ff(0x1c9)],_0x30a5c8[_0x3961ff(0x192)],_0x30a5c8[_0x3961ff(0x39a)],..._0x48dba6];case _0x4fcd7c['Checkbox']:return[_0x30a5c8['IS'],_0x30a5c8[_0x3961ff(0x1c9)]];default:return[_0x30a5c8['IS'],_0x30a5c8[_0x3961ff(0x1c9)],_0x30a5c8[_0x3961ff(0x17c)],_0x30a5c8['NOT_CONTAINS'],..._0x48dba6];}}function Ma(_0x7f4582){const _0x5db787=_0xbfff20;return _0x7f4582?_0x7f4582[_0x5db787(0x427)]===_0x4fcd7c[_0x5db787(0x387)]?!0x1:La(_0x7f4582['type'])?_0x1be5ea()[_0x5db787(0x1ea)]('YYYY-MM-DD'):za(_0x7f4582)?[]:'':'';}function Na(_0x460deb){return _0x460deb!==_0x30a5c8['IS_EMPTY']&&_0x460deb!==_0x30a5c8['IS_NOT_EMPTY'];}function Pa(_0x551879){const _0x37f01a=_0xbfff20;var _0x1daa3f;return(Array[_0x37f01a(0x318)](_0x551879==null||(_0x1daa3f=_0x551879['config'])==null?void 0x0:_0x1daa3f[_0x37f01a(0x37e)])?_0x551879[_0x37f01a(0x167)]['options']:[])[_0x37f01a(0x1fd)]((_0x10a639,_0x142eb4)=>{const _0x475a1=_0x37f01a;if(typeof _0x10a639=='string')return{'label':_0x10a639,'value':_0x10a639};if(!Fa(_0x10a639))return{'label':String(_0x142eb4+0x1),'value':String(_0x142eb4+0x1)};let _0x34066d=_0x10a639,_0x509edd=String(_0x34066d[_0x475a1(0x3ca)]??_0x34066d['id']??_0x142eb4+0x1),_0x4bf907=String(_0x34066d['id']??_0x509edd);return{'label':_0x509edd,'value':/^opt-\d+$/[_0x475a1(0x250)](_0x4bf907)?_0x509edd:_0x4bf907};});}function Fa(_0x51d0bc){return typeof _0x51d0bc=='object'&&!!_0x51d0bc;}function Ia(_0xc1d366,_0x1803c0,_0x556e2d){const _0x3ae947=_0xbfff20;let _0x151275=JSON['stringify'](_0x1803c0);return _0x151275+'-'+_0xc1d366[_0x3ae947(0x26a)](0x0,_0x556e2d)['filter'](_0xd51aaa=>JSON['stringify'](_0xd51aaa)===_0x151275)[_0x3ae947(0x2df)];}function La(_0x4e1318){const _0x5b781f=_0xbfff20;return _0x4e1318===_0x4fcd7c[_0x5b781f(0x43b)]||_0x4e1318===_0x4fcd7c[_0x5b781f(0x425)]||_0x4e1318===_0x4fcd7c[_0x5b781f(0x386)];}function Ra(_0x17cd24){const _0x2c7d07=_0xbfff20;return _0x17cd24===_0x4fcd7c[_0x2c7d07(0x2e4)]||_0x17cd24===_0x4fcd7c[_0x2c7d07(0x256)]||_0x17cd24===_0x4fcd7c[_0x2c7d07(0x3de)]||_0x17cd24===_0x4fcd7c[_0x2c7d07(0x31c)];}function za(_0x2b37b0){const _0x41bb26=_0xbfff20;var _0x5c856a;return(_0x2b37b0==null?void 0x0:_0x2b37b0[_0x41bb26(0x427)])===_0x4fcd7c[_0x41bb26(0x286)]||(_0x2b37b0==null?void 0x0:_0x2b37b0[_0x41bb26(0x427)])===_0x4fcd7c[_0x41bb26(0x19d)]||(_0x2b37b0==null?void 0x0:_0x2b37b0[_0x41bb26(0x427)])===_0x4fcd7c[_0x41bb26(0x1a0)]&&((_0x5c856a=_0x2b37b0[_0x41bb26(0x167)])==null?void 0x0:_0x5c856a[_0x41bb26(0x477)])===!0x0;}function Ba({base:_0x2c8e79,chartRuntime:_0x3ffbf1,onChange:_0x236797,onClose:_0xa9b256,onSelectBackgroundImage:_0x3777da,onSelectImage:_0x12ba09,unitId:_0xf700ca,widget:_0x5116d7}){const _0x18a484=_0xbfff20;let _0x22e8f4=_0x29f087(_0x2220df),_0x79eb11=_0x29f087(_0x2989fb),_0x2a4f85=_0x2c8e79[_0x18a484(0x373)](),_0x4ccf34='tableId'in _0x5116d7?_0x2a4f85[_0x18a484(0x3df)][_0x5116d7[_0x18a484(0x335)]]:void 0x0,_0x2f5aed=_0x5116d7[_0x18a484(0x427)]===_0x1402ed[_0x18a484(0x3c8)]?_0x4ccf34==null?void 0x0:_0x4ccf34[_0x18a484(0x2b9)][_0x5116d7[_0x18a484(0x1b6)]]:void 0x0,_0x5a4db0=_0x79eb11['t'](qa(_0x5116d7));return _0x1108cb(_0x18a484(0x1fb),{'data-dashboard-inspector':!0x0,'className':_0x18a484(0x201),'children':[_0x1108cb(_0x18a484(0x29e),{'className':'univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-border-b\x20univer-border-gray-200\x20univer-px-4\x20dark:!univer-border-gray-700','children':[_0x1c53e9('h3',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0x5a4db0}),_0x1c53e9(_0x6d25a2,{'type':'button','size':_0x18a484(0x189),'variant':'text','aria-label':_0x79eb11['t']('bases-dashboard-ui.dashboardInspector.close'),'onClick':_0xa9b256,'children':_0x1c53e9(_0x33d94a,{})})]}),_0x5116d7[_0x18a484(0x427)]===_0x1402ed[_0x18a484(0x3c8)]&&(Ka(_0x2f5aed)&&_0x3ffbf1?_0x1c53e9(ya,{'runtime':_0x3ffbf1,'sourceChart':_0x2f5aed['config']['chart'],'sourceName':((_0x4ccf34==null?void 0x0:_0x4ccf34[_0x18a484(0x3ca)])??'')+_0x18a484(0x2db)+_0x2f5aed[_0x18a484(0x3ca)],'widget':_0x5116d7,'onChange':_0x236797,'onEditData':()=>{const _0x225885=_0x18a484;_0x22e8f4[_0x225885(0x42e)](_0x24a280['id'],{'unitId':_0xf700ca,'tableId':_0x5116d7[_0x225885(0x335)],'viewId':_0x5116d7[_0x225885(0x1b6)]})['catch'](()=>void 0x0);}}):_0x1c53e9(Wa,{'message':Ka(_0x2f5aed)?_0x79eb11['t']('bases-dashboard-ui.dashboardInspector.loading'):_0x79eb11['t'](_0x18a484(0x1ad))})),_0x5116d7[_0x18a484(0x427)]===_0x1402ed[_0x18a484(0x1d9)]&&_0x1c53e9(Sa,{'base':_0x2c8e79,'widget':_0x5116d7,'onChange':_0x236797,'onSelectBackgroundImage':_0x3777da}),_0x5116d7[_0x18a484(0x427)]===_0x1402ed[_0x18a484(0x287)]&&_0x1c53e9(Ha,{'base':_0x2c8e79,'onChange':_0x236797,'widget':_0x5116d7}),_0x5116d7['type']===_0x1402ed[_0x18a484(0x194)]&&_0x1c53e9(Ua,{'onChange':_0x236797,'widget':_0x5116d7}),_0x5116d7[_0x18a484(0x427)]===_0x1402ed[_0x18a484(0x471)]&&_0x1c53e9(Va,{'onChange':_0x236797,'onSelectImage':_0x12ba09,'widget':_0x5116d7})]});}function Va({onChange:_0x3a3f6c,onSelectImage:_0x1f83b7,widget:_0xbeda69}){const _0x47769c=_0xbfff20;let _0x3b5657=_0x29f087(_0x2989fb);return _0x1108cb(_0x47769c(0x1e8),{'className':_0x47769c(0x481),'children':[_0x1108cb(_0x6d25a2,{'className':_0x47769c(0x449),'onClick':()=>_0x1f83b7()['then'](_0x344d2a=>_0x344d2a&&_0x3a3f6c({..._0xbeda69,'source':_0x344d2a['source'],'sourceType':_0x344d2a[_0x47769c(0x18c)],'alt':_0x344d2a[_0x47769c(0x3ca)]}))[_0x47769c(0x433)](()=>void 0x0),'children':[_0x1c53e9(_0x34be53,{}),_0x3b5657['t']('bases-dashboard-ui.dashboardInspector.replaceImage')]}),_0x1108cb(_0x47769c(0x1b8),{'className':_0x47769c(0x277),'children':[_0x1c53e9(_0x47769c(0x213),{'children':_0x3b5657['t'](_0x47769c(0x28a))}),_0x1c53e9(_0x4fe720,{'items':[{'value':_0x47769c(0x2b8),'label':_0x3b5657['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x47769c(0x33c),'label':_0x3b5657['t']('bases-dashboard-ui.dashboardInspector.repeat')},{'value':'original','label':_0x3b5657['t'](_0x47769c(0x3db))}],'value':_0xbeda69['displayMode']??'cover','onChange':_0x35b872=>_0x3a3f6c({..._0xbeda69,'displayMode':_0x35b872})[_0x47769c(0x433)](()=>void 0x0)})]})]});}function Ha({base:_0x14f0ab,onChange:_0x51de64,widget:_0x4a3630}){const _0x8a5158=_0xbfff20;let _0x1f85db=_0x14f0ab[_0x8a5158(0x373)]()['tables'][_0x4a3630[_0x8a5158(0x335)]],_0x38bec7=_0x1f85db==null?void 0x0:_0x1f85db[_0x8a5158(0x18e)][_0x8a5158(0x1ac)](_0x312f35=>_0x1f85db[_0x8a5158(0x2b9)][_0x312f35]),_0xcf24b0=_0x38bec7?_0x1f85db==null?void 0x0:_0x1f85db[_0x8a5158(0x2b9)][_0x38bec7]:void 0x0,_0x7274df=_0x1f85db&&_0xcf24b0?_0x173f22(_0x1f85db,_0xcf24b0):[];return _0x1c53e9(Ea,{'fields':_0x7274df,'filter':_0x4a3630[_0x8a5158(0x2be)],'onChange':_0x179c81=>_0x51de64({..._0x4a3630,'filter':_0x179c81})[_0x8a5158(0x433)](()=>void 0x0),'onClear':()=>_0x51de64({..._0x4a3630,'filter':null})[_0x8a5158(0x433)](()=>void 0x0)});}function Ua({onChange:_0x4b4ea8,widget:_0x4b56fe}){const _0x3d7360=_0xbfff20;let _0x1fccca=_0x29f087(_0x2989fb),_0x18aa98=_0x29f087(_0x3fdc71),_0x272037=_0x39908a(()=>_0x18aa98[_0x3d7360(0x1d1)],_0x18aa98[_0x3d7360(0x21f)](),!0x1,[_0x18aa98]),_0x22b2f7=Vr(_0x4b56fe),_0x52acb5=_0xa7f0bf=>_0x4b4ea8({..._0x4b56fe,'appearance':{..._0x22b2f7,..._0xa7f0bf}})[_0x3d7360(0x433)](()=>void 0x0);return _0x1108cb(_0x3d7360(0x1e8),{'className':_0x3d7360(0x442),'children':[_0x1c53e9(_0x435e56,{'defaultValue':Hr(_0x4b56fe[_0x3d7360(0x27c)]),'rows':0x8,'onBlur':_0x5776eb=>_0x4b4ea8({..._0x4b56fe,'document':Ur(_0x4b56fe[_0x3d7360(0x27c)],_0x5776eb['target'][_0x3d7360(0x1b5)])})['catch'](()=>void 0x0)}),_0x1c53e9(_0x4931cb,{'emptyLabel':_0x1fccca['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x1fccca['t'](_0x3d7360(0x41b)),'pickerFallbackValue':_0x272037[_0x3d7360(0x45c)][0x0],'resetLabel':_0x1fccca['t'](_0x3d7360(0x272)),'value':_0x22b2f7[_0x3d7360(0x33d)]??null,'onChange':_0x8a36aa=>_0x52acb5({'backgroundColor':_0x8a36aa??void 0x0})}),_0x1c53e9(_0x4931cb,{'emptyLabel':_0x1fccca['t'](_0x3d7360(0x384)),'label':_0x1fccca['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x272037[_0x3d7360(0x45c)][0x3e8],'resetLabel':_0x1fccca['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x22b2f7[_0x3d7360(0x42f)]??null,'onChange':_0x52b395=>_0x52acb5({'textColor':_0x52b395??void 0x0})}),_0x1c53e9(Ga,{'label':_0x1fccca['t'](_0x3d7360(0x316)),'children':_0x1c53e9(_0x4fe720,{'items':[{'value':_0x3d7360(0x297),'label':_0x1fccca['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':'center','label':_0x1fccca['t'](_0x3d7360(0x207))},{'value':_0x3d7360(0x2e0),'label':_0x1fccca['t'](_0x3d7360(0x24b))}],'value':_0x22b2f7['alignment'],'onChange':_0x3349b2=>_0x52acb5({'alignment':_0x3349b2})})}),_0x1108cb(Ga,{'label':_0x1fccca['t'](_0x3d7360(0x32f)),'children':[_0x1c53e9(_0x4fe720,{'items':[{'value':_0x3d7360(0x2fd),'label':_0x1fccca['t'](_0x3d7360(0x20d))},{'value':_0x3d7360(0x22d),'label':_0x1fccca['t'](_0x3d7360(0x238))}],'value':_0x22b2f7[_0x3d7360(0x1ab)],'onChange':_0x2d11c0=>_0x52acb5({'fontSizeMode':_0x2d11c0})}),_0x22b2f7[_0x3d7360(0x1ab)]===_0x3d7360(0x22d)&&_0x1c53e9(_0x5a3ae3,{'className':'univer-mt-2','min':0xa,'max':0x78,'value':_0x22b2f7[_0x3d7360(0x320)],'onChange':_0x5d8c85=>_0x52acb5({'fontSize':_0x5d8c85??0x12,'fontSizeMode':_0x3d7360(0x22d)})})]})]});}function Wa({message:_0xfcf406}){const _0x4ea561=_0xbfff20;return _0x1c53e9(_0x4ea561(0x1e8),{'className':_0x4ea561(0x1bf),'children':_0xfcf406});}function Ga({children:_0x398928,label:_0x3ccd60}){const _0x1fe8f5=_0xbfff20;return _0x1108cb(_0x1fe8f5(0x1e8),{'role':_0x1fe8f5(0x161),'aria-':!0x0,'className':_0x1fe8f5(0x277),'children':[_0x1c53e9('span',{'children':_0x3ccd60}),_0x398928]});}function Ka(_0x2d242d){const _0x34db74=_0xbfff20;return(_0x2d242d==null?void 0x0:_0x2d242d[_0x34db74(0x427)])===_0x54a718[_0x34db74(0x2c9)]&&typeof _0x2d242d[_0x34db74(0x167)]==_0x34db74(0x235)&&_0x2d242d['config']!==null&&_0x34db74(0x274)in _0x2d242d['config']&&_0x34db74(0x252)in _0x2d242d[_0x34db74(0x167)];}function qa(_0x10987b){const _0x83461=_0xbfff20;switch(_0x10987b[_0x83461(0x427)]){case _0x1402ed[_0x83461(0x3c8)]:return'bases-dashboard-ui.dashboard.pivotChart';case _0x1402ed[_0x83461(0x287)]:return _0x83461(0x319);case _0x1402ed['Text']:return _0x83461(0x3ba);case _0x1402ed[_0x83461(0x471)]:return _0x83461(0x279);case _0x1402ed[_0x83461(0x1d9)]:return _0x83461(0x47b);}}function Ja({onDelete:_0xda979c,onEdit:_0x10d5ba}){const _0x4f812b=_0xbfff20;let _0x221cd5=_0x29f087(_0x2989fb),_0x21a214=_0x221cd5['t'](_0x4f812b(0x2a1)),_0x2e5251=_0x221cd5['t'](_0x4f812b(0x164)),_0x2d9884=_0x221cd5['t'](_0x4f812b(0x2e9));return _0x1c53e9(_0x440082,{'items':[{'type':_0x4f812b(0x2c2),'children':_0x1108cb(_0x4f812b(0x213),{'className':_0x4f812b(0x208),'children':[_0x1c53e9(_0xddf888,{'className':_0x4f812b(0x305),'aria-hidden':_0x4f812b(0x354)}),_0x1c53e9(_0x4f812b(0x213),{'children':_0x21a214})]}),'onSelect':_0x10d5ba},{'type':_0x4f812b(0x174)},{'type':'item','variant':_0x4f812b(0x195),'children':_0x1108cb(_0x4f812b(0x213),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[_0x1c53e9(_0x48daea,{'className':_0x4f812b(0x305),'aria-hidden':_0x4f812b(0x354)}),_0x1c53e9('span',{'children':_0x2e5251})]}),'onSelect':_0xda979c}],'children':_0x1c53e9(_0x6d25a2,{'type':_0x4f812b(0x2d8),'size':_0x4f812b(0x189),'variant':_0x4f812b(0x173),'title':_0x2d9884,'aria-label':_0x2d9884,'className':_0x4f812b(0x2ff),'children':_0x1c53e9(_0x122b7c,{'className':_0x4f812b(0x305),'aria-hidden':_0x4f812b(0x354)})})});}function Ya({dashboardId:_0x1bf5cb,presentation:_0x7b27b7=!0x1,unitId:_0x33d6b9}){const _0x297466=_0xbfff20;let _0x57e6f9=_0x29f087(_0x2220df),_0x16b795=_0x29f087(_0x3107a8),_0xfaba5b=_0x29f087(_0x4fbe75),_0x34bb52=_0x29f087(_0x14186a),_0x42404f=_0x29f087(_0x2989fb),_0x1d7ac4=_0x29f087(_0x309002),_0x12d2bd=_0x29f087(_0x1daf4e),_0x5dcd6b=_0x2861da(null),[_0x1d7a5c,_0xf5c829]=_0x34e679(!0x1),[_0x31d4ba,_0x15640a]=_0x34e679(),[_0x15d6d7,_0x128a9f]=_0x34e679(!0x1),[_0x21fc54,_0x11d50b]=_0x34e679(()=>new Map()),_0x157870=_0xdcfb42((_0x2b99a8,_0x447f36)=>{_0x11d50b(_0x5efdf0=>{const _0x41db13=_0x5dbe;let _0x35573c=new Map(_0x5efdf0);return _0x447f36?_0x35573c[_0x41db13(0x499)](_0x2b99a8,_0x447f36):_0x35573c[_0x41db13(0x375)](_0x2b99a8),_0x35573c;});},[]),_0x1e956c=_0x39908a(()=>_0x1d7ac4['change$'][_0x297466(0x472)](_0x3fca8e(()=>_0x1d7ac4[_0x297466(0x34a)](_0x33d6b9,_0x1bf5cb))),_0x1d7ac4[_0x297466(0x34a)](_0x33d6b9,_0x1bf5cb),!0x1,[_0x1bf5cb,_0x1d7ac4,_0x33d6b9]),_0x5d7033=_0x34bb52[_0x297466(0x454)](_0x33d6b9,_0x37ea54[_0x297466(0x2e2)]),_0x2260a7=_0x39908a(()=>_0x12d2bd[_0x297466(0x29c)],{'undos':0x0,'redos':0x0},!0x1,[_0x12d2bd]),_0x2d70fc=_r(_0x33d6b9,_0x1bf5cb);if(_0x436796(()=>{const _0x1e367f=_0x297466;_0x34bb52['setCurrentUnitForType'](_0x33d6b9),_0x34bb52[_0x1e367f(0x177)](_0x33d6b9);},[_0x34bb52,_0x33d6b9]),_0x436796(()=>{const _0x4b1c89=_0x297466;let _0x5da374=_0x5dcd6b[_0x4b1c89(0x49d)],_0xb98ff3=_0x5da374==null?void 0x0:_0x5da374['ownerDocument'];if(!_0x5da374||!_0xb98ff3)return;let _0x56d314=()=>_0x128a9f(_0xb98ff3[_0x4b1c89(0x32e)]===_0xb98ff3[_0x4b1c89(0x4a1)]),_0x490724=_0x217f02=>{const _0x58d568=_0x4b1c89;_0x217f02[_0x58d568(0x48d)]===_0x58d568(0x416)&&!_0x217f02[_0x58d568(0x412)]&&_0xb98ff3[_0x58d568(0x32e)]===_0xb98ff3['documentElement']&&_0xb98ff3[_0x58d568(0x444)]()[_0x58d568(0x433)](_0x56d314);};return _0xb98ff3[_0x4b1c89(0x410)]('fullscreenchange',_0x56d314),_0xb98ff3['addEventListener'](_0x4b1c89(0x2d9),_0x490724),()=>{const _0xe09099=_0x4b1c89;_0xb98ff3[_0xe09099(0x300)](_0xe09099(0x190),_0x56d314),_0xb98ff3[_0xe09099(0x300)]('keydown',_0x490724);};},[]),!_0x1e956c||!_0x5d7033)return null;let _0x39ec5a=_0x1d5eb9=>_0x57e6f9[_0x297466(0x42e)](_0x1c8540['id'],{'unitId':_0x33d6b9,'dashboardId':_0x1bf5cb,'widget':_0x1d5eb9})['catch'](()=>void 0x0),_0xba3562=(_0x4ed827,_0x4361c6,_0x4af7a8)=>{const _0x575fb7=_0x297466;let _0x27378=Math['max'](0x0,..._0x1e956c['widgetOrder'][_0x575fb7(0x31f)](_0x2ee1b4=>{const _0x36db5b=_0x575fb7;var _0xeeb995;let _0x5a4c02=(_0xeeb995=_0x1e956c[_0x36db5b(0x280)][_0x2ee1b4])==null?void 0x0:_0xeeb995['layout'];return _0x5a4c02?[_0x5a4c02[_0x36db5b(0x430)]+_0x5a4c02[_0x36db5b(0x1b2)]]:[];})),_0x536ce9=_0x575fb7(0x4a8)+_0xd28735(0x8),_0x2ae9af={'column':0x0,'row':_0x27378,'columnSpan':_0x4361c6,'rowSpan':_0x4af7a8};switch(_0x4ed827['type']){case _0x1402ed[_0x575fb7(0x3c8)]:return _0x39ec5a({..._0x4ed827,'id':_0x536ce9,'layout':_0x2ae9af});case _0x1402ed[_0x575fb7(0x287)]:return _0x39ec5a({..._0x4ed827,'id':_0x536ce9,'layout':_0x2ae9af});case _0x1402ed[_0x575fb7(0x194)]:return _0x39ec5a({..._0x4ed827,'id':_0x536ce9,'layout':_0x2ae9af});case _0x1402ed[_0x575fb7(0x471)]:return _0x39ec5a({..._0x4ed827,'id':_0x536ce9,'layout':_0x2ae9af});case _0x1402ed[_0x575fb7(0x1d9)]:return _0x39ec5a({..._0x4ed827,'id':_0x536ce9,'layout':_0x2ae9af});}},_0x5b7799=_0x5d7033[_0x297466(0x373)](),_0x31a9b8=_0x5b7799[_0x297466(0x32d)][_0x297466(0x31f)](_0x37309a=>{const _0x404e93=_0x297466;let _0x52069d=_0x5b7799[_0x404e93(0x3df)][_0x37309a];if(!_0x52069d)return[];let _0x2a8203=_0x52069d[_0x404e93(0x18e)][_0x404e93(0x31f)](_0x4f4a28=>{const _0xc43c1b=_0x404e93;let _0x43fd61=_0x52069d[_0xc43c1b(0x2b9)][_0x4f4a28];return ro(_0x43fd61)?[{'type':_0xc43c1b(0x2c2),'children':_0x43fd61[_0xc43c1b(0x3ca)],'onSelect':()=>_0xba3562({'type':_0x1402ed['PivotChart'],'tableId':_0x37309a,'pivotViewId':_0x4f4a28,'chart':{..._0x43fd61[_0xc43c1b(0x167)][_0xc43c1b(0x252)]}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0x52069d[_0x404e93(0x3ca)],'options':[..._0x2a8203,..._0x2a8203[_0x404e93(0x2df)]?[{'type':_0x404e93(0x174)}]:[],{'type':'item','children':_0x42404f['t'](_0x404e93(0x319)),'onSelect':()=>_0xba3562({'type':_0x1402ed[_0x404e93(0x287)],'tableId':_0x37309a,'filter':null},0x6,0x8)}]}];}),_0x110ee8=[..._0x31a9b8,..._0x31a9b8[_0x297466(0x2df)]?[{'type':_0x297466(0x174)}]:[],{'type':'item','children':_0x42404f['t']('bases-dashboard-ui.dashboard.text'),'onSelect':()=>_0xba3562({'type':_0x1402ed[_0x297466(0x194)],'document':$a()},0x4,0x6)},{'type':_0x297466(0x2c2),'children':_0x42404f['t'](_0x297466(0x279)),'onSelect':()=>eo(_0x16b795)['then'](_0x3244e5=>_0x3244e5&&_0xba3562({'type':_0x1402ed[_0x297466(0x471)],'source':_0x3244e5[_0x297466(0x2ad)],'sourceType':_0x3244e5[_0x297466(0x18c)],'alt':_0x3244e5['name'],'displayMode':'cover'},0x4,0x6))},{'type':'item','children':_0x42404f['t']('bases-dashboard-ui.dashboard.formulaShape'),'onSelect':()=>{const _0x178a9f=_0x297466;let _0x253a70=_0x5b7799['tableOrder'][_0x178a9f(0x1ac)](_0x4b5df9=>_0x5b7799[_0x178a9f(0x3df)][_0x4b5df9]);_0x253a70&&_0xba3562({'type':_0x1402ed[_0x178a9f(0x1d9)],'tableId':_0x253a70,'shapeType':_0xed2d79['RoundRect'],'shapeData':_0x18c256(),'description':_0x42404f['t'](_0x178a9f(0x47b))},0x4,0x6);}}],_0x1bd1ca=_0x31d4ba?_0x1e956c[_0x297466(0x280)][_0x31d4ba]:void 0x0,_0x580c99=async()=>{const _0x158ffc=_0x297466;let _0x2dffd6=_0x5dcd6b[_0x158ffc(0x49d)];if(!_0x2dffd6)return;let _0x38a106=_0x2dffd6[_0x158ffc(0x2a8)];_0x38a106['fullscreenElement']===_0x38a106[_0x158ffc(0x4a1)]?await _0x38a106[_0x158ffc(0x444)]():await _0x38a106[_0x158ffc(0x4a1)][_0x158ffc(0x448)]();},_0x45a778=_0x7b27b7||_0x15d6d7,_0x50a49b=_0x2d70fc&&!_0x45a778;return _0x1108cb(_0x297466(0x1e8),{'ref':_0x5dcd6b,'className':_0x297466(0x15c)+(_0x15d6d7?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':'univer-relative\x20univer-z-10')+_0x297466(0x237),'children':[!_0x45a778&&_0x1108cb('header',{'className':'univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[_0x1c53e9(_0x396df3,{'className':'univer-size-5\x20univer-text-primary-600'}),_0x1c53e9('h2',{'className':_0x297466(0x2e8),'children':_0x1e956c['name']}),_0x1c53e9(_0xad9b28,{'target':{'unitId':_0x33d6b9,'objectId':_0x3f3aa0(_0x1bf5cb),'objectType':_0x26ad9b[_0x297466(0x24f)]},'name':_0x1e956c[_0x297466(0x3ca)],'commandId':_0x501d41['id'],'exists':()=>!!_0x1d7ac4[_0x297466(0x34a)](_0x33d6b9,_0x1bf5cb)},_0x33d6b9+'/'+_0x1bf5cb),_0x1c53e9(_0x36e7c3,{'unitId':_0x33d6b9}),_0x1c53e9(_0x6d25a2,{'type':_0x297466(0x2d8),'size':_0x297466(0x189),'variant':_0x297466(0x173),'aria-label':_0x42404f['t'](_0x297466(0x314)),'disabled':!_0x2d70fc||_0x2260a7[_0x297466(0x227)]===0x0,'onClick':()=>_0x57e6f9[_0x297466(0x42e)](_0x38c4d5['id'])[_0x297466(0x433)](()=>void 0x0),'children':_0x1c53e9(_0x5d8a74,{})}),_0x1c53e9(_0x6d25a2,{'type':_0x297466(0x2d8),'size':'small','variant':_0x297466(0x173),'aria-label':_0x42404f['t'](_0x297466(0x1c2)),'disabled':!_0x2d70fc||_0x2260a7[_0x297466(0x47c)]===0x0,'onClick':()=>_0x57e6f9['executeCommand'](_0x413296['id'])[_0x297466(0x433)](()=>void 0x0),'children':_0x1c53e9(_0x421b18,{})}),_0x1c53e9(_0x6d25a2,{'type':'button','size':_0x297466(0x189),'variant':_0x297466(0x173),'aria-label':_0x42404f['t'](_0x297466(0x1e2)),'onClick':()=>_0x580c99()['catch'](()=>void 0x0),'children':_0x1c53e9(_0x275a4b,{})}),_0x1c53e9(_0x440082,{'items':_0x110ee8,'children':_0x1108cb(_0x6d25a2,{'variant':_0x297466(0x3d2),'disabled':!_0x2d70fc,'children':[_0x1c53e9(_0x34be53,{}),_0x42404f['t'](_0x297466(0x486))]})})]}),_0x1108cb(_0x297466(0x1e8),{'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1','children':[_0x1c53e9(_0x297466(0x1e8),{'className':_0x297466(0x3a9),'children':_0x1c53e9(ua,{'dashboard':_0x1e956c,'dragLabel':_0x42404f['t'](_0x297466(0x185)),'editable':_0x50a49b,'resizeLabel':_0x42404f['t'](_0x297466(0x1cc)),'widgetLabel':_0x2844c3=>_0x42404f['t'](no(_0x2844c3[_0x297466(0x427)])),'selectedWidgetId':_0x50a49b?_0x31d4ba:void 0x0,'onSelectWidget':_0x50a49b?_0x35f5ff=>{_0x15640a(_0x35f5ff),_0x35f5ff||_0xf5c829(!0x1);}:void 0x0,'onLayoutsCommit':_0x291259=>{const _0x31289f=_0x297466;let _0xc6a2c5={..._0x1e956c[_0x31289f(0x280)]};_0x291259['forEach']((_0x27a443,_0x4049ab)=>{let _0x5a08b7=_0xc6a2c5[_0x4049ab];_0x5a08b7&&(_0xc6a2c5[_0x4049ab]={..._0x5a08b7,'layout':_0x27a443});}),_0x57e6f9[_0x31289f(0x42e)](_0x39c855['id'],{'unitId':_0x33d6b9,'dashboard':{..._0x1e956c,'widgets':_0xc6a2c5}})[_0x31289f(0x433)](()=>void 0x0);},'renderWidget':_0x2d4a9d=>_0x1c53e9(Xa,{'base':_0x5d7033,'dashboard':_0x1e956c,'unitId':_0x33d6b9,'widget':_0x2d4a9d,'onChange':_0x39ec5a,'onChartRuntimeChange':_0x157870}),'renderWidgetActions':_0x3c37de=>_0x1c53e9(Ja,{'onEdit':()=>{_0x15640a(_0x3c37de['id']),_0xf5c829(!0x0);},'onDelete':()=>{const _0x3c62c0=_0x297466;_0x31d4ba===_0x3c37de['id']&&(_0x15640a(void 0x0),_0xf5c829(!0x1)),_0x57e6f9[_0x3c62c0(0x42e)](_0x55f0a4['id'],{'unitId':_0x33d6b9,'dashboardId':_0x1bf5cb,'widgetId':_0x3c37de['id']})[_0x3c62c0(0x433)](()=>void 0x0);}})})}),_0x50a49b&&_0x1d7a5c&&_0x1bd1ca&&_0x1c53e9(Ba,{'base':_0x5d7033,'chartRuntime':_0x21fc54[_0x297466(0x197)](_0x1bd1ca['id']),'unitId':_0x33d6b9,'widget':_0x1bd1ca,'onChange':_0x39ec5a,'onClose':()=>_0xf5c829(!0x1),'onSelectBackgroundImage':()=>to(_0xfaba5b),'onSelectImage':()=>eo(_0x16b795)})]})]});}function Xa({base:_0x14ef65,dashboard:_0x53489b,onChange:_0x2557e3,onChartRuntimeChange:_0x560a06,unitId:_0xa6631,widget:_0x276380}){const _0x2ca435=_0xbfff20;let _0x17afd4=_0x548c0f(()=>_0x53489b[_0x2ca435(0x3b1)][_0x2ca435(0x31f)](_0x5d1e20=>{const _0x5c7157=_0x2ca435;let _0x22ae49=_0x53489b[_0x5c7157(0x280)][_0x5d1e20];return(_0x22ae49==null?void 0x0:_0x22ae49[_0x5c7157(0x427)])===_0x1402ed[_0x5c7157(0x287)]&&_0x22ae49['tableId']===(_0x5c7157(0x335)in _0x276380?_0x276380[_0x5c7157(0x335)]:'')&&_0x22ae49[_0x5c7157(0x2be)]?[_0x22ae49[_0x5c7157(0x2be)]]:[];}),[_0x53489b,_0x276380]);switch(_0x276380[_0x2ca435(0x427)]){case _0x1402ed[_0x2ca435(0x3c8)]:return _0x1c53e9(Rr,{'filters':_0x17afd4,'unitId':_0xa6631,'widget':_0x276380,'onRuntimeChange':_0x560a06});case _0x1402ed['TableFilter']:return _0x1c53e9(Ta,{'fields':Za(_0x14ef65,_0x276380[_0x2ca435(0x335)]),'filter':_0x276380['filter'],'onChange':_0x4ad732=>_0x2557e3({..._0x276380,'filter':_0x4ad732})[_0x2ca435(0x433)](()=>void 0x0)});case _0x1402ed[_0x2ca435(0x194)]:return _0x1c53e9(Wr,{'widget':_0x276380});case _0x1402ed[_0x2ca435(0x471)]:return _0x1c53e9(Qa,{'widget':_0x276380});case _0x1402ed[_0x2ca435(0x1d9)]:return _0x1c53e9(Or,{'dashboardId':_0x53489b['id'],'unitId':_0xa6631,'widget':_0x276380});}}function Za(_0x189768,_0x2f63fb){const _0x3e2831=_0xbfff20;let _0x58f0f7=_0x189768[_0x3e2831(0x373)]()[_0x3e2831(0x3df)][_0x2f63fb],_0x4e5935=_0x58f0f7==null?void 0x0:_0x58f0f7[_0x3e2831(0x18e)][_0x3e2831(0x1ac)](_0x2c58e5=>_0x58f0f7[_0x3e2831(0x2b9)][_0x2c58e5]),_0x3f0506=_0x4e5935?_0x58f0f7==null?void 0x0:_0x58f0f7['views'][_0x4e5935]:void 0x0;return _0x58f0f7&&_0x3f0506?_0x173f22(_0x58f0f7,_0x3f0506):[];}function Qa({widget:_0x1d79dd}){const _0x274ae2=_0xbfff20;let _0x28eb7b=_0x29f087(_0x3107a8),[_0x4b16ec,_0x30e0ba]=_0x34e679(_0x1d79dd['sourceType']===_0x18951a['UUID']?'':_0x1d79dd[_0x274ae2(0x2ad)]);return _0x436796(()=>{const _0x271946=_0x274ae2;let _0x2888ea=!0x0;return _0x28eb7b['getAttachmentUrl'](_0x1d79dd[_0x271946(0x2ad)],_0x1d79dd[_0x271946(0x18c)])[_0x271946(0x271)](_0x303a03=>{_0x2888ea&&_0x30e0ba(_0x303a03);})[_0x271946(0x433)](()=>void 0x0),()=>{_0x2888ea=!0x1;};},[_0x28eb7b,_0x1d79dd[_0x274ae2(0x2ad)],_0x1d79dd[_0x274ae2(0x18c)]]),_0x4b16ec?_0x1c53e9(_0x274ae2(0x1e8),{'role':_0x1d79dd[_0x274ae2(0x1e4)]?_0x274ae2(0x15e):void 0x0,'aria-label':_0x1d79dd[_0x274ae2(0x1e4)]||void 0x0,'data-dashboard-image':_0x1d79dd['id'],'className':_0x274ae2(0x453),'style':yr(_0x4b16ec,_0x1d79dd['displayMode'])}):null;}function $a(){const _0x1a8871=_0xbfff20;let _0x34c540=_0x467708(new Set());return{'id':_0x1a8871(0x281)+_0xd28735(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x34c540}]},'documentStyle':{}};}function eo(_0x45d961){return new Promise(_0x3b8199=>{const _0x4f45f8=_0x5dbe;let _0xa6a9bf=document[_0x4f45f8(0x457)](_0x4f45f8(0x240));_0xa6a9bf[_0x4f45f8(0x427)]=_0x4f45f8(0x1df),_0xa6a9bf[_0x4f45f8(0x46d)]=_0x4f45f8(0x46b),_0xa6a9bf['addEventListener'](_0x4f45f8(0x17f),()=>{const _0x97159b=_0x4f45f8;var _0x2ec23d;let _0x56961a=(_0x2ec23d=_0xa6a9bf[_0x97159b(0x34c)])==null?void 0x0:_0x2ec23d[0x0];_0x56961a?_0x45d961['saveAttachment'](_0x56961a)[_0x97159b(0x271)](_0x2857ff=>{const _0x9e3e6d=_0x97159b;!_0x2857ff[_0x9e3e6d(0x2ad)]||_0x2857ff[_0x9e3e6d(0x18c)]===void 0x0?_0x3b8199(null):_0x3b8199({'name':_0x2857ff[_0x9e3e6d(0x3ca)],'source':_0x2857ff['source'],'sourceType':_0x2857ff[_0x9e3e6d(0x18c)]});})[_0x97159b(0x433)](()=>_0x3b8199(null)):_0x3b8199(null);},{'once':!0x0}),_0xa6a9bf[_0x4f45f8(0x2a5)]();});}function to(_0x1cf579){return new Promise(_0x3f25cb=>{const _0x9956ee=_0x5dbe;let _0x56bac4=document[_0x9956ee(0x457)]('input');_0x56bac4[_0x9956ee(0x427)]='file',_0x56bac4[_0x9956ee(0x46d)]=_0x9956ee(0x46b),_0x56bac4[_0x9956ee(0x410)](_0x9956ee(0x17f),()=>{const _0x1f0414=_0x9956ee;var _0x19aa85;let _0x24e845=(_0x19aa85=_0x56bac4[_0x1f0414(0x34c)])==null?void 0x0:_0x19aa85[0x0];_0x24e845?_0x1cf579[_0x1f0414(0x35e)](_0x24e845)[_0x1f0414(0x271)](_0x15a779=>{const _0x31b16c=_0x1f0414;if(!(_0x15a779!=null&&_0x15a779[_0x31b16c(0x2ad)]))_0x3f25cb(null);else{if(_0x15a779[_0x31b16c(0x1c7)]){let _0x5579fb=new Image();_0x5579fb[_0x31b16c(0x175)]=_0x15a779[_0x31b16c(0x1c7)],_0x1cf579[_0x31b16c(0x388)](_0x15a779[_0x31b16c(0x2ad)],_0x15a779['imageSourceType'],_0x5579fb);}_0x3f25cb({'source':_0x15a779[_0x31b16c(0x2ad)],'sourceType':_0x15a779[_0x31b16c(0x172)]});}})['catch'](()=>_0x3f25cb(null)):_0x3f25cb(null);},{'once':!0x0}),_0x56bac4[_0x9956ee(0x2a5)]();});}function no(_0xdb3e66){const _0x28d79b=_0xbfff20;switch(_0xdb3e66){case _0x1402ed[_0x28d79b(0x3c8)]:return _0x28d79b(0x303);case _0x1402ed[_0x28d79b(0x287)]:return _0x28d79b(0x319);case _0x1402ed['Text']:return _0x28d79b(0x3ba);case _0x1402ed['Image']:return _0x28d79b(0x279);case _0x1402ed['FormulaShape']:return _0x28d79b(0x47b);}}function ro(_0x4991e1){const _0x226abc=_0xbfff20;return(_0x4991e1==null?void 0x0:_0x4991e1[_0x226abc(0x427)])===_0x54a718[_0x226abc(0x2c9)]&&typeof _0x4991e1['config']==_0x226abc(0x235)&&_0x4991e1[_0x226abc(0x167)]!==null&&_0x226abc(0x274)in _0x4991e1[_0x226abc(0x167)]&&_0x226abc(0x252)in _0x4991e1[_0x226abc(0x167)];}const io=[{'area':_0x1126e4[_0xbfff20(0x2a9)],'key':_0xbfff20(0x331),'label':_0xbfff20(0x178)},{'area':_0x1126e4[_0xbfff20(0x2b5)],'key':_0xbfff20(0x273),'label':'bases-dashboard-ui.pivot.columns'},{'area':_0x1126e4[_0xbfff20(0x350)],'key':_0xbfff20(0x2ef),'label':_0xbfff20(0x25e)},{'area':_0x1126e4[_0xbfff20(0x2aa)],'key':'valueFields','label':_0xbfff20(0x246)}],ao=[{'value':_0x4ad10e['sum'],'localeKey':_0xbfff20(0x43d)},{'value':_0x4ad10e['count'],'localeKey':_0xbfff20(0x21b)},{'value':_0x4ad10e[_0xbfff20(0x261)],'localeKey':'bases-dashboard-ui.pivot.countNumbers'},{'value':_0x4ad10e['average'],'localeKey':_0xbfff20(0x396)},{'value':_0x4ad10e[_0xbfff20(0x43f)],'localeKey':_0xbfff20(0x3d4)},{'value':_0x4ad10e[_0xbfff20(0x441)],'localeKey':_0xbfff20(0x47a)},{'value':_0x4ad10e[_0xbfff20(0x392)],'localeKey':_0xbfff20(0x24a)},{'value':_0x4ad10e[_0xbfff20(0x362)],'localeKey':'bases-dashboard-ui.pivot.stdDev'},{'value':_0x4ad10e[_0xbfff20(0x353)],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':_0x4ad10e['var'],'localeKey':_0xbfff20(0x2f2)},{'value':_0x4ad10e[_0xbfff20(0x2c3)],'localeKey':'bases-dashboard-ui.pivot.variancePopulation'}];function oo(_0x1f3a43){const _0x2186b4=_0xbfff20;let {config:_0x3ddf74,onChange:_0x4800d8,table:_0x28e3a6}=_0x1f3a43,_0x4ee229=_0x29f087(_0x2989fb),[_0x5f5012,_0x20ab0f]=_0x34e679(_0x2186b4(0x1e9)),[_0x912e51,_0x10b242]=_0x34e679(''),[_0x63ed5e,_0x5e66f0]=_0x34e679(null),[_0x574780,_0x5aef1d]=_0x34e679(null),[_0x9a6477,_0x13bc87]=_0x34e679(null),[_0x18a98e,_0x3c659a]=_0x34e679(null),_0x1e3d14=_0x2861da(null),_0x298a3a=_0x548c0f(()=>_0x28e3a6[_0x2186b4(0x222)][_0x2186b4(0x31f)](_0x291807=>{const _0x2fa8d8=_0x2186b4;let _0x46b644=_0x28e3a6[_0x2fa8d8(0x1e9)][_0x291807];return _0x46b644&&_0x46b644[_0x2fa8d8(0x2d2)]!==!0x0&&_0x46b644[_0x2fa8d8(0x427)]!==_0x4fcd7c[_0x2fa8d8(0x496)]?[_0x46b644]:[];})[_0x2186b4(0x2be)](_0x5718ba=>_0x5718ba[_0x2186b4(0x3ca)]['toLocaleLowerCase']()[_0x2186b4(0x3d0)](_0x912e51[_0x2186b4(0x278)]()['toLocaleLowerCase']())),[_0x912e51,_0x28e3a6]),_0x24daf=_0x4488a4=>{const _0x355922=_0x2186b4;let _0x1d34d9=_0x560cf4(_0x28e3a6,_0x3ddf74[_0x355922(0x274)]);try{_0x4488a4(_0x1d34d9),_0x4800d8({'pivot':_0x1d34d9[_0x355922(0x262)]()});}finally{_0x1d34d9[_0x355922(0x19b)]();}},_0x354d80=(_0x3035f7,_0x5f0afd)=>{_0x63ed5e&&(_0x24daf(_0x520332=>{const _0x261511=_0x5dbe;if(_0x63ed5e[_0x261511(0x347)]===_0x261511(0x2e6)){let _0x5b57e8=_0x520332['getFieldPositionInfoById'](_0x63ed5e['id']),_0x24f792=_0x5b57e8[_0x261511(0x450)]===_0x3035f7&&_0x5b57e8[_0x261511(0x365)]<_0x5f0afd?_0x5f0afd-0x1:_0x5f0afd;_0x520332[_0x261511(0x445)](_0x63ed5e['id'],_0x3035f7,_0x24f792);}else ho(_0x520332,_0x63ed5e['id'],_0x3035f7,_0x5f0afd);}),_0x5e66f0(null),_0x5aef1d(null));};return _0x1108cb(_0x2186b4(0x1e8),{'className':_0x2186b4(0x231),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x4ee229['t'](_0x2186b4(0x3c9)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x4ee229['t'](_0x2186b4(0x3f8)),'panelId':'base-pivot-fields','value':'fields'},{'label':_0x4ee229['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x2186b4(0x3da),'value':'options'}],'value':_0x5f5012,'onChange':_0x20ab0f}),_0x1c53e9(_0x2186b4(0x1e8),{'ref':_0x1e3d14,'className':_0x14b647(_0x2186b4(0x1e3),_0x439165),'onDragOver':_0x35a143=>{const _0x4255ec=_0x2186b4;let _0x1283b5=_0x1e3d14[_0x4255ec(0x49d)];if(!_0x1283b5)return;let _0x5b87b2=_0x1283b5['getBoundingClientRect']();_0x35a143[_0x4255ec(0x4ae)]<_0x5b87b2[_0x4255ec(0x3e6)]+0x30?_0x1283b5[_0x4255ec(0x389)]-=0x10:_0x35a143[_0x4255ec(0x4ae)]>_0x5b87b2[_0x4255ec(0x2a2)]-0x30&&(_0x1283b5[_0x4255ec(0x389)]+=0x10);},'children':_0x5f5012==='options'?_0x1c53e9(mo,{'config':_0x3ddf74,'commit':_0x24daf}):_0x1108cb('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[_0x1108cb(_0x2186b4(0x1e8),{'children':[_0x1c53e9(_0x2186b4(0x1e8),{'className':_0x2186b4(0x368),'children':_0x4ee229['t'](_0x2186b4(0x1f7))}),_0x1c53e9(_0x1b54d7,{'allowClear':!0x0,'slot':_0x1c53e9(_0x302bc4,{}),'value':_0x912e51,'placeholder':_0x4ee229['t']('bases-dashboard-ui.pivot.searchFields'),'onChange':_0x10b242}),_0x1c53e9(_0x2186b4(0x1e8),{'className':'univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','children':_0x298a3a[_0x2186b4(0x1fd)](_0x9e6831=>_0x1c53e9(so,{'config':_0x3ddf74,'field':_0x9e6831,'onAdd':_0x4eb15a=>_0x24daf(_0x55a82c=>ho(_0x55a82c,_0x9e6831['id'],_0x4eb15a,_0x55a82c['getFieldCountByArea'](_0x4eb15a))),'onCheckedChange':_0x1c20bf=>_0x24daf(_0x5c6bff=>{const _0x3057f6=_0x2186b4;let _0x141187=_0x5c6bff[_0x3057f6(0x3e4)](_0x9e6831['id']);if(!_0x1c20bf)_0x141187[_0x3057f6(0x4a2)](_0xb61dcc=>_0x5c6bff[_0x3057f6(0x38a)](_0xb61dcc[_0x3057f6(0x3c6)]()));else{if(_0x141187[_0x3057f6(0x2df)]===0x0){let _0x1a579e=_o(_0x9e6831)?_0x1126e4[_0x3057f6(0x2aa)]:_0x1126e4[_0x3057f6(0x350)];_0x5c6bff[_0x3057f6(0x39d)](_0x9e6831['id'],_0x1a579e);}}}),'onDragStart':()=>_0x5e66f0({'kind':_0x2186b4(0x2ad),'id':_0x9e6831['id']})},_0x9e6831['id']))})]}),_0x1c53e9('div',{'className':'univer-grid\x20univer-grid-cols-2\x20univer-gap-3','children':io[_0x2186b4(0x1fd)](_0x5ce39f=>_0x1c53e9(lo,{'area':_0x5ce39f[_0x2186b4(0x450)],'dropTarget':_0x574780,'fields':_0x3ddf74['pivot'][_0x5ce39f[_0x2186b4(0x48d)]],'label':_0x4ee229['t'](_0x5ce39f[_0x2186b4(0x1b8)]),'snapshot':_0x3ddf74[_0x2186b4(0x274)],'onDragEnd':()=>{_0x5e66f0(null),_0x5aef1d(null);},'onDragStart':_0x48ea03=>_0x5e66f0({'kind':_0x2186b4(0x2e6),'id':_0x48ea03,'area':_0x5ce39f[_0x2186b4(0x450)]}),'onDragOver':_0x5f0400=>_0x5aef1d({'area':_0x5ce39f[_0x2186b4(0x450)],'index':_0x5f0400}),'onDrop':_0x4f4487=>_0x354d80(_0x5ce39f[_0x2186b4(0x450)],_0x4f4487),'onFilter':_0x13bc87,'onRemove':_0x36da5d=>_0x24daf(_0x4c6117=>_0x4c6117[_0x2186b4(0x38a)](_0x36da5d)),'onSettings':_0x3c659a},_0x5ce39f[_0x2186b4(0x450)]))}),_0x9a6477&&_0x1c53e9(fo,{'fieldId':_0x9a6477,'snapshot':_0x3ddf74[_0x2186b4(0x274)],'table':_0x28e3a6,'onCancel':()=>_0x13bc87(null),'onCommit':(_0x5c8749,_0x55c918)=>{_0x24daf(_0x513ad0=>{const _0x74b9c9=_0x5dbe;let _0x5f4a7b=_0x513ad0[_0x74b9c9(0x2ab)](_0x9a6477),_0x19d0f0=(_0x5f4a7b==null?void 0x0:_0x5f4a7b[_0x74b9c9(0x1c0)])??[];_0x513ad0['setLabelFilterInfo'](_0x9a6477,{'type':_0x5a1647[_0x74b9c9(0x224)],'list':_0x5c8749,'isAll':_0x5c8749[_0x74b9c9(0x2df)]===_0x19d0f0[_0x74b9c9(0x2df)]}),_0x513ad0[_0x74b9c9(0x44f)](_0x9a6477,_0x55c918===void 0x0?void 0x0:{'type':_0x55c918});}),_0x13bc87(null);}},_0x9a6477),_0x18a98e&&_0x1c53e9(po,{'field':_0x3ddf74[_0x2186b4(0x274)][_0x2186b4(0x421)][_0x18a98e],'onCancel':()=>_0x3c659a(null),'onCommit':(_0x441c81,_0x171fe4,_0x399c9f)=>{_0x24daf(_0x91e4a8=>{const _0x5db5f7=_0x5dbe;_0x91e4a8['renameField'](_0x18a98e,_0x441c81),_0x91e4a8[_0x5db5f7(0x355)](_0x18a98e,_0x171fe4),_0x91e4a8['setFieldFormat'](_0x18a98e,_0x399c9f||void 0x0);}),_0x3c659a(null);}},_0x18a98e)]})})]});}function so(_0x33f015){const _0x238e10=_0xbfff20;let {config:_0x4c7282,field:_0x1eece1,onAdd:_0x48e826,onCheckedChange:_0x386ed4,onDragStart:_0x1faa76}=_0x33f015,_0x1d3042=_0x29f087(_0x2989fb),_0xcf3b1f=[...Object[_0x238e10(0x34e)](_0x4c7282[_0x238e10(0x274)][_0x238e10(0x401)]),...Object['values'](_0x4c7282['pivot'][_0x238e10(0x421)])][_0x238e10(0x415)](_0x371319=>_0x371319[_0x238e10(0x2c4)]===_0x1eece1['id']),_0x2629d3=io['map'](_0x292be4=>({'type':_0x238e10(0x2c2),'children':_0x1d3042['t'](vo(_0x292be4[_0x238e10(0x450)])),'onSelect':()=>_0x48e826(_0x292be4[_0x238e10(0x450)])}));return _0x1108cb(_0x238e10(0x1e8),{'draggable':!0x0,'className':_0x238e10(0x3f3),'onDragStart':_0x1faa76,'children':[_0x1c53e9(_0x4f0f93,{'className':_0x238e10(0x1d8)}),_0x1c53e9(_0x1eb8df,{'checked':_0xcf3b1f,'onChange':_0x2dce3b=>_0x386ed4(!!_0x2dce3b)}),_0x1c53e9(co,{'field':_0x1eece1}),_0x1c53e9(_0x238e10(0x213),{'className':_0x238e10(0x309),'children':_0x1eece1['name']}),_0x1c53e9(_0x440082,{'align':'end','items':_0x2629d3,'children':_0x1c53e9(_0x238e10(0x213),{'className':_0x238e10(0x27a),'children':_0x1c53e9(_0xacb52a,{})})})]});}function co({field:_0x5f0835}){const _0x4f8808=_0xbfff20;return _o(_0x5f0835)?_0x1c53e9(_0x45f616,{'className':_0x4f8808(0x1d8)}):_0x5f0835[_0x4f8808(0x427)]===_0x4fcd7c[_0x4f8808(0x43b)]||_0x5f0835['type']===_0x4fcd7c[_0x4f8808(0x425)]||_0x5f0835['type']===_0x4fcd7c['UpdatedAt']?_0x1c53e9(_0x23c2ab,{'className':_0x4f8808(0x1d8)}):_0x1c53e9(_0x383758,{'className':_0x4f8808(0x1d8)});}function lo(_0x4d090c){const _0x3f6556=_0xbfff20;let {area:_0x19590e,dropTarget:_0x4d2267,fields:_0x11f479,label:_0x554cdb,snapshot:_0x3a01cf}=_0x4d090c,_0x3211ad=_0x29f087(_0x2989fb);return _0x1108cb(_0x3f6556(0x493),{'className':_0x14b647('univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800',_0x14cf31),'onDragOver':_0x109273=>{const _0x1ce8b4=_0x3f6556;_0x109273[_0x1ce8b4(0x2ea)](),_0x4d090c[_0x1ce8b4(0x1ba)](_0x11f479[_0x1ce8b4(0x2df)]);},'onDrop':_0x51d4d4=>{const _0x2600eb=_0x3f6556;_0x51d4d4[_0x2600eb(0x2ea)](),_0x4d090c[_0x2600eb(0x166)]((_0x4d2267==null?void 0x0:_0x4d2267[_0x2600eb(0x450)])===_0x19590e?_0x4d2267[_0x2600eb(0x365)]:_0x11f479['length']);},'children':[_0x1c53e9(_0x3f6556(0x1e8),{'className':'univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','children':_0x554cdb}),_0x1108cb(_0x3f6556(0x1e8),{'className':'univer-flex\x20univer-flex-col','children':[_0x11f479['map']((_0x6b4c42,_0x2eabc2)=>{const _0x12bd48=_0x3f6556;let _0x5e5e16=_0x3a01cf[_0x12bd48(0x401)][_0x6b4c42]??_0x3a01cf[_0x12bd48(0x421)][_0x6b4c42];if(!_0x5e5e16)return null;let _0x46db31=(_0x4d2267==null?void 0x0:_0x4d2267[_0x12bd48(0x450)])===_0x19590e&&_0x4d2267[_0x12bd48(0x365)]===_0x2eabc2;return _0x1108cb(_0x12bd48(0x1e8),{'onDragOver':_0x2bd644=>{const _0x45f764=_0x12bd48;_0x2bd644['preventDefault'](),_0x2bd644['stopPropagation']();let _0x53a77c=_0x2bd644[_0x45f764(0x40a)][_0x45f764(0x260)]();_0x4d090c[_0x45f764(0x1ba)](_0x2eabc2+ +(_0x2bd644['clientY']>_0x53a77c[_0x45f764(0x3e6)]+_0x53a77c[_0x45f764(0x402)]/0x2));},'onDrop':_0x5423db=>{const _0x2dabd6=_0x12bd48;_0x5423db[_0x2dabd6(0x2ea)](),_0x5423db[_0x2dabd6(0x3fb)](),_0x4d090c['onDrop']((_0x4d2267==null?void 0x0:_0x4d2267[_0x2dabd6(0x450)])===_0x19590e?_0x4d2267[_0x2dabd6(0x365)]:_0x2eabc2);},'children':[_0x46db31&&_0x1c53e9(_0x12bd48(0x1e8),{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),_0x1c53e9(uo,{'area':_0x19590e,'field':_0x5e5e16,'onDragEnd':_0x4d090c[_0x12bd48(0x183)],'onDragStart':()=>_0x4d090c[_0x12bd48(0x295)](_0x6b4c42),'onFilter':()=>_0x4d090c[_0x12bd48(0x3b7)](_0x6b4c42),'onRemove':()=>_0x4d090c[_0x12bd48(0x169)](_0x6b4c42),'onSettings':()=>_0x4d090c[_0x12bd48(0x2cc)](_0x6b4c42)})]},_0x6b4c42);}),(_0x4d2267==null?void 0x0:_0x4d2267[_0x3f6556(0x450)])===_0x19590e&&_0x4d2267[_0x3f6556(0x365)]===_0x11f479['length']&&_0x1c53e9('div',{'className':_0x3f6556(0x487)}),_0x11f479[_0x3f6556(0x2df)]===0x0&&_0x1c53e9(_0x3f6556(0x1e8),{'className':_0x3f6556(0x1d0),'children':_0x3211ad['t'](_0x3f6556(0x23d))})]})]});}function uo(_0xc08bad){const _0x47ea14=_0xbfff20;let _0x3789b1=_0x29f087(_0x2989fb),_0x438b72=_0xc08bad[_0x47ea14(0x450)]===_0x1126e4[_0x47ea14(0x2aa)],_0x5c1947=[{'type':_0x47ea14(0x2c2),'children':_0x3789b1['t'](_0x47ea14(0x276)),'onSelect':_0xc08bad[_0x47ea14(0x169)]},{'type':_0x47ea14(0x2c2),'children':_0x3789b1['t'](_0x438b72?_0x47ea14(0x4a6):_0x47ea14(0x36a)),'onSelect':_0x438b72?_0xc08bad[_0x47ea14(0x2cc)]:_0xc08bad['onFilter']}];return _0x1108cb('div',{'draggable':!0x0,'className':_0x47ea14(0x32c),'onDragEnd':_0xc08bad[_0x47ea14(0x183)],'onDragStart':_0xc08bad[_0x47ea14(0x295)],'children':[_0x1c53e9(_0x4f0f93,{'className':_0x47ea14(0x1d8)}),_0x1c53e9(_0x501781,{'title':_0xc08bad[_0x47ea14(0x2e6)]['displayName'],'children':_0x1c53e9('span',{'className':_0x47ea14(0x309),'children':_0xc08bad[_0x47ea14(0x2e6)][_0x47ea14(0x1cf)]})}),_0x1c53e9(_0x440082,{'align':_0x47ea14(0x221),'items':_0x5c1947,'children':_0x1c53e9(_0x47ea14(0x213),{'className':_0x47ea14(0x27a),'children':_0x1c53e9(_0xacb52a,{})})})]});}function fo(_0x49b02e){const _0x49739a=_0xbfff20;var _0x295977,_0x47e4b1;let _0x3081ca=_0x29f087(_0x2989fb),{format:_0x5cbf6a,items:_0x4f9285,itemTypes:_0x521371}=_0x548c0f(()=>{const _0x39e2eb=_0x5dbe;let _0x5dbcad=_0x560cf4(_0x49b02e[_0x39e2eb(0x405)],_0x49b02e[_0x39e2eb(0x432)]);try{let _0x503d3c=_0x5dbcad[_0x39e2eb(0x2ab)](_0x49b02e[_0x39e2eb(0x17d)]);return{'format':_0x503d3c==null?void 0x0:_0x503d3c[_0x39e2eb(0x1ea)],'items':[...(_0x503d3c==null?void 0x0:_0x503d3c[_0x39e2eb(0x1c0)])??[]],'itemTypes':[...(_0x503d3c==null?void 0x0:_0x503d3c[_0x39e2eb(0x22c)])??[]]};}finally{_0x5dbcad[_0x39e2eb(0x19b)]();}},[_0x49b02e[_0x49739a(0x17d)],_0x49b02e[_0x49739a(0x432)],_0x49b02e[_0x49739a(0x405)]]),_0x51841a=(_0x295977=_0x49b02e[_0x49739a(0x432)][_0x49739a(0x401)][_0x49b02e[_0x49739a(0x17d)]])==null?void 0x0:_0x295977[_0x49739a(0x158)],[_0x32d804,_0x5d69f4]=_0x34e679((_0x51841a==null?void 0x0:_0x51841a[_0x49739a(0x427)])===_0x5a1647[_0x49739a(0x224)]?_0x51841a[_0x49739a(0x1ca)]:_0x4f9285),[_0x18745f,_0xd07556]=_0x34e679((_0x47e4b1=_0x49b02e[_0x49739a(0x432)][_0x49739a(0x401)][_0x49b02e[_0x49739a(0x17d)]])==null||(_0x47e4b1=_0x47e4b1[_0x49739a(0x23e)])==null?void 0x0:_0x47e4b1[_0x49739a(0x427)]),_0x58db55=_0x32d804[_0x49739a(0x2df)]===_0x4f9285[_0x49739a(0x2df)];return _0x1108cb(_0x49739a(0x493),{'className':_0x14b647(_0x49739a(0x35d),_0x14cf31),'children':[_0x1c53e9(_0x49739a(0x1e8),{'className':_0x49739a(0x2fb),'children':_0x3081ca['t'](_0x49739a(0x36a))}),_0x1108cb(_0x49739a(0x1e8),{'className':_0x49739a(0x1f8),'children':[_0x1108cb(_0x6d25a2,{'className':_0x49739a(0x436),'variant':_0x18745f===_0xaa402b[_0x49739a(0x357)]?_0x49739a(0x3d2):_0x49739a(0x30e),'onClick':()=>_0xd07556(_0xaa402b['ascending']),'children':[_0x1c53e9(_0x5de895,{}),_0x3081ca['t'](_0x49739a(0x497))]}),_0x1108cb(_0x6d25a2,{'className':_0x49739a(0x436),'variant':_0x18745f===_0xaa402b['descending']?_0x49739a(0x3d2):'default','onClick':()=>_0xd07556(_0xaa402b['descending']),'children':[_0x1c53e9(_0xcbb196,{}),_0x3081ca['t'](_0x49739a(0x163))]})]}),_0x1108cb(_0x49739a(0x1e8),{'className':_0x49739a(0x28f),'children':[_0x1108cb(_0x49739a(0x1b8),{'className':_0x49739a(0x299),'children':[_0x1c53e9(_0x1eb8df,{'checked':_0x58db55,'indeterminate':_0x32d804['length']>0x0&&!_0x58db55,'onChange':()=>_0x5d69f4(_0x58db55?[]:_0x4f9285)}),_0x3081ca['t'](_0x49739a(0x337))]}),_0x4f9285['map']((_0x1c879b,_0x1869c4)=>_0x1108cb('label',{'className':_0x49739a(0x299),'children':[_0x1c53e9(_0x1eb8df,{'checked':_0x32d804[_0x49739a(0x3d0)](_0x1c879b),'onChange':()=>_0x5d69f4(_0x321c0a=>_0x321c0a[_0x49739a(0x3d0)](_0x1c879b)?_0x321c0a['filter'](_0x279d3d=>_0x279d3d!==_0x1c879b):[..._0x321c0a,_0x1c879b])}),_0x1c53e9(_0x49739a(0x213),{'className':_0x49739a(0x3aa),'children':go(_0x1c879b,_0x521371[_0x1869c4],_0x5cbf6a,_0x3081ca['t']('bases-dashboard-ui.pivot.blank'))})]},_0x1c879b))]}),_0x1108cb('div',{'className':_0x49739a(0x17a),'children':[_0x1c53e9(_0x6d25a2,{'variant':'link','onClick':()=>_0x49b02e['onCommit'](_0x4f9285,_0x18745f),'children':_0x3081ca['t'](_0x49739a(0x43c))}),_0x1108cb(_0x49739a(0x1e8),{'className':_0x49739a(0x30b),'children':[_0x1c53e9(_0x6d25a2,{'onClick':_0x49b02e[_0x49739a(0x16d)],'children':_0x3081ca['t']('bases-dashboard-ui.pivot.cancel')}),_0x1c53e9(_0x6d25a2,{'variant':_0x49739a(0x3d2),'disabled':_0x32d804[_0x49739a(0x2df)]===0x0,'onClick':()=>_0x49b02e['onCommit'](_0x32d804,_0x18745f),'children':_0x3081ca['t']('bases-dashboard-ui.pivot.confirm')})]})]})]});}function po(_0x51ce7d){const _0x376331=_0xbfff20;var _0x4ad8a9,_0x8dfc41,_0x2b21e8;let _0x3b1dfd=_0x29f087(_0x2989fb),[_0xe5b721,_0x474388]=_0x34e679(((_0x4ad8a9=_0x51ce7d['field'])==null?void 0x0:_0x4ad8a9['displayName'])??''),[_0x576214,_0xcf31d4]=_0x34e679(((_0x8dfc41=_0x51ce7d[_0x376331(0x2e6)])==null?void 0x0:_0x8dfc41['subtotal'])??_0x4ad10e[_0x376331(0x3c2)]),[_0x2b34e4,_0x43c510]=_0x34e679(((_0x2b21e8=_0x51ce7d[_0x376331(0x2e6)])==null?void 0x0:_0x2b21e8[_0x376331(0x1ea)])??'');return _0x51ce7d[_0x376331(0x2e6)]?_0x1108cb('section',{'className':_0x14b647('univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900',_0x14cf31),'children':[_0x1c53e9(_0x376331(0x1e8),{'className':_0x376331(0x3ea),'children':_0x3b1dfd['t']('bases-dashboard-ui.pivot.fieldSettings')}),_0x1108cb('label',{'className':_0x376331(0x223),'children':[_0x3b1dfd['t'](_0x376331(0x480)),_0x1c53e9(_0x1b54d7,{'value':_0xe5b721,'onChange':_0x474388})]}),_0x1108cb(_0x376331(0x1b8),{'className':_0x376331(0x223),'children':[_0x3b1dfd['t'](_0x376331(0x296)),_0x1c53e9(_0x219a49,{'value':String(_0x576214),'options':ao[_0x376331(0x1fd)](_0x24da6d=>({'value':String(_0x24da6d['value']),'label':_0x3b1dfd['t'](_0x24da6d[_0x376331(0x39b)])})),'onChange':_0xa05420=>{const _0x4e9a01=_0x376331;let _0x9d152f=ao[_0x4e9a01(0x1ac)](_0x28855c=>String(_0x28855c['value'])===_0xa05420);_0x9d152f&&_0xcf31d4(_0x9d152f['value']);}})]}),_0x1108cb('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x3b1dfd['t'](_0x376331(0x341)),_0x1c53e9(_0x1b54d7,{'value':_0x2b34e4,'onChange':_0x43c510})]}),_0x1108cb(_0x376331(0x1e8),{'className':_0x376331(0x431),'children':[_0x1c53e9(_0x6d25a2,{'onClick':_0x51ce7d[_0x376331(0x16d)],'children':_0x3b1dfd['t']('bases-dashboard-ui.pivot.cancel')}),_0x1c53e9(_0x6d25a2,{'variant':_0x376331(0x3d2),'disabled':!_0xe5b721['trim'](),'onClick':()=>_0x51ce7d[_0x376331(0x2d1)](_0xe5b721[_0x376331(0x278)](),_0x576214,_0x2b34e4),'children':_0x3b1dfd['t']('bases-dashboard-ui.pivot.confirm')})]})]}):null;}function mo(_0x1756c7){const _0x58ac66=_0xbfff20;let {config:_0x55b486,commit:_0x4cecc2}=_0x1756c7,_0x2778e8=_0x29f087(_0x2989fb),_0x26346f=_0x55b486[_0x58ac66(0x274)][_0x58ac66(0x37e)],_0x152a3d=_0x1b60c5=>_0x4cecc2(_0x1d3db4=>_0x1d3db4['setOptions']({..._0x1d3db4[_0x58ac66(0x46c)](),..._0x1b60c5}));return _0x1108cb(_0x58ac66(0x1e8),{'className':_0x58ac66(0x1e6),'children':[_0x1108cb(_0x58ac66(0x1b8),{'className':_0x58ac66(0x2f4),'children':[_0x2778e8['t'](_0x58ac66(0x348)),_0x1c53e9(_0x219a49,{'className':_0x58ac66(0x44c),'value':String(_0x55b486[_0x58ac66(0x274)][_0x58ac66(0x2fc)]),'options':[{'value':String(_0x66aa38['tabular']),'label':_0x2778e8['t'](_0x58ac66(0x385))},{'value':String(_0x66aa38[_0x58ac66(0x3eb)]),'label':_0x2778e8['t'](_0x58ac66(0x3f5))},{'value':String(_0x66aa38[_0x58ac66(0x3ff)]),'label':_0x2778e8['t'](_0x58ac66(0x45a))}],'onChange':_0x39441b=>{const _0x50cad2=_0x58ac66;let _0x56cd5e=[_0x66aa38['tabular'],_0x66aa38[_0x50cad2(0x3eb)],_0x66aa38['outline']][_0x50cad2(0x1ac)](_0x45de72=>String(_0x45de72)===_0x39441b);_0x56cd5e!==void 0x0&&_0x4cecc2(_0x8ceda9=>_0x8ceda9[_0x50cad2(0x37b)](_0x56cd5e));}})]}),[{'key':_0x58ac66(0x3a1),'label':_0x58ac66(0x3c3),'defaultValue':!0x1},{'key':_0x58ac66(0x48a),'label':_0x58ac66(0x1ff),'defaultValue':!0x1},{'key':_0x58ac66(0x3d8),'label':_0x58ac66(0x225),'defaultValue':!0x0},{'key':'showRowGrandTotal','label':_0x58ac66(0x3ad),'defaultValue':!0x0},{'key':_0x58ac66(0x160),'label':_0x58ac66(0x1ed),'defaultValue':!0x0},{'key':_0x58ac66(0x2a0),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}][_0x58ac66(0x1fd)](_0x2793af=>_0x1108cb(_0x58ac66(0x1b8),{'className':_0x58ac66(0x2ae),'children':[_0x1c53e9(_0x1eb8df,{'checked':!!(_0x26346f[_0x2793af[_0x58ac66(0x48d)]]??_0x2793af[_0x58ac66(0x3fa)]),'disabled':_0x2793af['key']==='repeatRowLabels'&&_0x55b486[_0x58ac66(0x274)][_0x58ac66(0x2fc)]===_0x66aa38['compact'],'onChange':_0x381a01=>_0x152a3d({[_0x2793af[_0x58ac66(0x48d)]]:!!_0x381a01})}),_0x2778e8['t'](_0x2793af[_0x58ac66(0x1b8)])]},_0x2793af[_0x58ac66(0x48d)])),_0x55b486[_0x58ac66(0x274)][_0x58ac66(0x2fc)]===_0x66aa38[_0x58ac66(0x3ff)]&&_0x1108cb('label',{'className':_0x58ac66(0x2f4),'children':[_0x2778e8['t'](_0x58ac66(0x323)),_0x1c53e9(_0x219a49,{'className':_0x58ac66(0x44c),'value':String(_0x26346f[_0x58ac66(0x329)]??_0x571e80['top']),'options':[{'value':String(_0x571e80[_0x58ac66(0x3e6)]),'label':_0x2778e8['t'](_0x58ac66(0x1c5))},{'value':String(_0x571e80[_0x58ac66(0x2a2)]),'label':_0x2778e8['t'](_0x58ac66(0x464))}],'onChange':_0x98d6e1=>{const _0x15d431=_0x58ac66;let _0x5e5f2f=[_0x571e80[_0x15d431(0x3e6)],_0x571e80[_0x15d431(0x2a2)]]['find'](_0x5483e0=>String(_0x5483e0)===_0x98d6e1);_0x5e5f2f!==void 0x0&&_0x152a3d({'rowSubtotalPosition':_0x5e5f2f});}})]}),_0x1108cb('label',{'className':_0x58ac66(0x2f4),'children':[_0x2778e8['t'](_0x58ac66(0x390)),_0x1c53e9(_0x219a49,{'className':_0x58ac66(0x44c),'value':String(_0x55b486[_0x58ac66(0x274)][_0x58ac66(0x275)]===_0xe5d4e5[_0x58ac66(0x26c)]?_0xe5d4e5[_0x58ac66(0x2b5)]:_0x55b486[_0x58ac66(0x274)][_0x58ac66(0x275)]),'options':[{'value':String(_0xe5d4e5['Column']),'label':_0x2778e8['t'](_0x58ac66(0x3bb))},{'value':String(_0xe5d4e5[_0x58ac66(0x350)]),'label':_0x2778e8['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x18433d=>{const _0x39b8ab=_0x58ac66;let _0x3bc02a=[_0xe5d4e5[_0x39b8ab(0x2b5)],_0xe5d4e5['Row']]['find'](_0x2231f4=>String(_0x2231f4)===_0x18433d);_0x3bc02a!==void 0x0&&_0x4cecc2(_0x53bd6e=>_0x53bd6e[_0x39b8ab(0x34d)](_0x3bc02a,_0x53bd6e[_0x39b8ab(0x16e)]()<0x0?0x0:_0x53bd6e['getValueIndex']()));}})]}),_0x1108cb(_0x58ac66(0x1b8),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x2778e8['t'](_0x58ac66(0x182)),_0x1c53e9(_0x5a3ae3,{'className':_0x58ac66(0x3d7),'min':0x1,'max':0x14,'value':_0x26346f[_0x58ac66(0x38e)]??0x1,'onChange':_0x1eb61b=>{const _0x554bad=_0x58ac66;let _0x331cbd=Number(_0x1eb61b);Number[_0x554bad(0x2da)](_0x331cbd)&&_0x331cbd>=0x1&&_0x152a3d({'pageWrap':_0x331cbd});}})]}),_0x1108cb('label',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x2778e8['t'](_0x58ac66(0x1c4)),_0x1c53e9(_0x219a49,{'className':_0x58ac66(0x44c),'value':String(_0x26346f['pageOverThenDown']??!0x1),'options':[{'value':_0x58ac66(0x41f),'label':_0x2778e8['t'](_0x58ac66(0x3c4))},{'value':_0x58ac66(0x354),'label':_0x2778e8['t'](_0x58ac66(0x269))}],'onChange':_0x43f531=>_0x152a3d({'pageOverThenDown':_0x43f531==='true'})})]})]});}function ho(_0x4721ee,_0x3dcce7,_0xeb2a9e,_0x39dccf){const _0x27ecd1=_0xbfff20;let _0x3ebb81=_0x4721ee[_0x27ecd1(0x3e4)](_0x3dcce7)[_0x27ecd1(0x1ac)](_0x3e44f3=>_0x4721ee[_0x27ecd1(0x19e)](_0x3e44f3[_0x27ecd1(0x3c6)]())[_0x27ecd1(0x450)]!==_0x1126e4[_0x27ecd1(0x2aa)]);_0xeb2a9e!==_0x1126e4['Value']&&_0x3ebb81?_0x4721ee[_0x27ecd1(0x445)](_0x3ebb81[_0x27ecd1(0x3c6)](),_0xeb2a9e,_0x39dccf):_0x4721ee['addFieldWithSourceId'](_0x3dcce7,_0xeb2a9e,_0x39dccf);}function go(_0x3ca653,_0x48de91,_0x1a1c1e,_0x264200){const _0xaf524=_0xbfff20;return _0x48de91===_0x48a00c[_0xaf524(0x330)]?_0x264200:_0x48de91===_0x48a00c[_0xaf524(0x2f1)]&&_0x1a1c1e?_0x4bc3f5[_0xaf524(0x1ea)](_0x1a1c1e,Number(_0x3ca653)):_0x3ca653;}function _o(_0x3e0ecd){const _0x23cf79=_0xbfff20;return _0x3e0ecd[_0x23cf79(0x427)]===_0x4fcd7c['Number']||_0x3e0ecd[_0x23cf79(0x427)]===_0x4fcd7c[_0x23cf79(0x256)]||_0x3e0ecd[_0x23cf79(0x427)]===_0x4fcd7c[_0x23cf79(0x3de)]||_0x3e0ecd[_0x23cf79(0x427)]===_0x4fcd7c['Rating'];}function vo(_0x3d1e3c){const _0x1c8e57=_0xbfff20;switch(_0x3d1e3c){case _0x1126e4[_0x1c8e57(0x350)]:return _0x1c8e57(0x215);case _0x1126e4['Column']:return _0x1c8e57(0x2fa);case _0x1126e4[_0x1c8e57(0x2aa)]:return'bases-dashboard-ui.pivot.addToValue';default:return _0x1c8e57(0x3a7);}}function yo({config:_0x3fd19a,onChange:_0x21e4a6,runtime:_0x1b216e,table:_0xc81a13}){const _0x3aa28d=_0xbfff20;let _0x22ac4d=_0x29f087(_0x2989fb),[_0x210eda,_0x3af5ea]=_0x34e679('chart');return _0x1108cb(_0x3aa28d(0x1fb),{'className':_0x3aa28d(0x42b),'children':[_0x1c53e9(_0x242d81,{'ariaLabel':_0x22ac4d['t'](_0x3aa28d(0x3f2)),'className':'univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','items':[{'label':_0x22ac4d['t'](_0x3aa28d(0x1eb)),'panelId':'base-pivot-chart-configuration','value':_0x3aa28d(0x252)},{'label':_0x22ac4d['t'](_0x3aa28d(0x3c9)),'panelId':_0x3aa28d(0x37d),'value':_0x3aa28d(0x274)}],'value':_0x210eda,'variant':_0x3aa28d(0x16a),'onChange':_0x3af5ea}),_0x1c53e9(_0x3aa28d(0x1e8),{'className':_0x3aa28d(0x3ac),'children':_0x210eda===_0x3aa28d(0x252)?_0x1b216e&&_0x1c53e9(pa,{'config':_0x3fd19a,'runtime':_0x1b216e,'tableName':_0xc81a13['name'],'onChange':_0x21e4a6}):_0x1c53e9(oo,{'config':_0x3fd19a,'table':_0xc81a13,'onChange':_0x21e4a6})})]});}function bo({tableId:_0xc8fe45,unitId:_0xdab8ad,viewId:_0x23e33b}){const _0x391ce8=_0xbfff20;let _0x2f789b=_0x29f087(_0x2220df),_0x5d13db=_0x29f087(_0x14186a),_0x51f38f=_0x29f087(_0x49fceb),_0x46050d=_0x29f087(_0x2989fb),_0x28a5ea=_0x29f087(_0x441727),[_0x4c06c1,_0x32c438]=_0x34e679(null),[_0x43c515,_0xcbc1a2]=_0x34e679(null),_0x56a9ee=_0x2861da('base-pivot-chart-'+_0xd28735(0x8)),[_0x3b6685,_0x1f4abd]=_0x34e679(!0x1),_0x1c1f3a=_0x5d13db['getUnit'](_0xdab8ad,_0x37ea54[_0x391ce8(0x2e2)]),_0x5f38f8=_0x1c1f3a==null?void 0x0:_0x1c1f3a[_0x391ce8(0x373)]()[_0x391ce8(0x3df)][_0xc8fe45],_0xf36d6e=_0x5f38f8==null?void 0x0:_0x5f38f8['views'][_0x23e33b],_0x1eb71e=xo(_0xf36d6e),_0x44f825=vr(_0xdab8ad,_0xc8fe45,_0x23e33b);if(_0x436796(()=>{const _0x508530=_0x391ce8;if(!_0x1eb71e)return;let _0x2a7cc6=_0x56a9ee[_0x508530(0x49d)];return _0x28a5ea['acquireChartRuntime'](_0x2a7cc6,{'unitId':_0xdab8ad,'tableId':_0xc8fe45,'viewId':_0x23e33b,'filters':[]}),()=>{const _0x1b0345=_0x508530;_0x28a5ea[_0x1b0345(0x414)](_0xdab8ad,_0x2a7cc6);};},[_0x1eb71e,_0x28a5ea,_0xc8fe45,_0xdab8ad,_0x23e33b]),_0x436796(()=>{const _0x54134b=_0x391ce8;if(!xo(_0xf36d6e))return;let _0x148d58=!0x0,_0x407bf8={'unitId':_0xdab8ad,'tableId':_0xc8fe45,'viewId':_0x23e33b,'filters':[_0xf36d6e[_0x54134b(0x2be)]??null]};return _0x28a5ea[_0x54134b(0x2b1)](_0xdab8ad,_0x56a9ee[_0x54134b(0x49d)],_0x407bf8)[_0x54134b(0x271)](_0x2fdc29=>{const _0x36d3de=_0x54134b;_0x148d58&&_0x2fdc29&&(_0x32c438(_0x2fdc29),_0xcbc1a2(_0x28a5ea[_0x36d3de(0x3bf)](_0xdab8ad,_0x56a9ee[_0x36d3de(0x49d)])??null),_0x1f4abd(!0x1));})[_0x54134b(0x433)](_0x537765=>{const _0x1c0989=_0x54134b;_0x51f38f[_0x1c0989(0x1a6)](_0x1c0989(0x33f),_0x537765),_0x148d58&&(_0x32c438(null),_0x1f4abd(!0x0));}),()=>{_0x148d58=!0x1;};},[_0x51f38f,_0x28a5ea,_0xc8fe45,_0xdab8ad,_0xf36d6e,_0x23e33b]),!_0x5f38f8||!xo(_0xf36d6e))return null;let _0x324be2=_0x28a5ea[_0x391ce8(0x3bf)](_0xdab8ad,_0x56a9ee[_0x391ce8(0x49d)])===_0x43c515?_0x43c515:null,_0x5136ac=_0x4c06c1?_0x1108cb('div',{'className':_0x391ce8(0x465),'style':{'gridTemplateRows':_0xf36d6e[_0x391ce8(0x167)]['displayMode']===_0x391ce8(0x36e)?_0x391ce8(0x3e2):'minmax(0,\x201fr)'},'children':[_0xf36d6e[_0x391ce8(0x167)]['displayMode']!=='table'&&_0x324be2&&_0x1c53e9('div',{'className':_0x391ce8(0x176),'children':_0x1c53e9(Lr,{'isRowDirection':_0x3b57e8(_0xf36d6e[_0x391ce8(0x167)][_0x391ce8(0x252)][_0x391ce8(0x292)]),'runtime':_0x324be2})}),_0xf36d6e[_0x391ce8(0x167)][_0x391ce8(0x463)]!==_0x391ce8(0x252)&&_0x1c53e9(_0x391ce8(0x1e8),{'className':_0x391ce8(0x45d),'children':_0x1c53e9(Ai,{'pivot':_0xf36d6e[_0x391ce8(0x167)]['pivot'],'view':_0x4c06c1[_0x391ce8(0x1f5)]})})]}):_0x1c53e9('div',{'className':_0x391ce8(0x216),'children':_0x3b6685?_0x46050d['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x46050d['t'](_0x391ce8(0x3b2))});return _0x1108cb(_0x391ce8(0x1e8),{'className':_0x391ce8(0x3dd),'children':[_0x1c53e9(_0x391ce8(0x1e8),{'className':_0x391ce8(0x3e9),'children':_0x5136ac}),_0x44f825&&_0x1c53e9(yo,{'config':_0xf36d6e[_0x391ce8(0x167)],'runtime':_0x324be2,'table':_0x5f38f8,'onChange':_0x382643=>{const _0xe72c6a=_0x391ce8;_0x2f789b[_0xe72c6a(0x42e)](_0x50437b['id'],{'unitId':_0xdab8ad,'tableId':_0xc8fe45,'viewId':_0x23e33b,'patch':_0x382643})[_0xe72c6a(0x433)](_0x1afb34=>_0x51f38f[_0xe72c6a(0x1a6)](_0xe72c6a(0x3cd),_0x1afb34));}})]});}function xo(_0x2b69b8){const _0x16b16c=_0xbfff20;return(_0x2b69b8==null?void 0x0:_0x2b69b8[_0x16b16c(0x427)])===_0x54a718['Pivot']&&typeof _0x2b69b8[_0x16b16c(0x167)]==_0x16b16c(0x235)&&_0x2b69b8[_0x16b16c(0x167)]!==null&&_0x16b16c(0x274)in _0x2b69b8[_0x16b16c(0x167)]&&_0x16b16c(0x252)in _0x2b69b8[_0x16b16c(0x167)]&&'displayMode'in _0x2b69b8[_0x16b16c(0x167)];}let So=class extends _0x2eec42{constructor(_0x52018b,_0x3ed455,_0x41eb33,_0x59d0e5,_0x4acb67,_0x1c867f){const _0x4bfe2b=_0xbfff20;super(),this[_0x4bfe2b(0x253)](_0x3ed455[_0x4bfe2b(0x219)]({'type':_0x54a718[_0x4bfe2b(0x2c9)],'renderMode':_0x4bfe2b(0x304),'icon':_0x25ef71,'component':bo,'menu':{get 'label'(){const _0x4855e0=_0x4bfe2b;return _0x1c867f['t'](_0x4855e0(0x3f2));},get 'description'(){const _0x1c2bf7=_0x4bfe2b;return _0x1c867f['t'](_0x1c2bf7(0x41c));},get 'defaultName'(){const _0x23e4a3=_0x4bfe2b;return _0x1c867f['t'](_0x23e4a3(0x475));}}})),this[_0x4bfe2b(0x253)](_0x52018b[_0x4bfe2b(0x219)](Co(_0x41eb33,_0x59d0e5,_0x4acb67,_0x1c867f)));}};So=kr([Y(0x0,_0x2a9f9e),Y(0x1,_0x1611be),Y(0x2,_0x38b292(_0x309002)),Y(0x3,_0x2220df),Y(0x4,_0x4deb76),Y(0x5,_0x38b292(_0x2989fb))],So);function Co(_0x3ad195,_0x4a009c,_0x1b38be,_0x2cd89b){const _0x3aa5ee=_0xbfff20;return{'change$':_0x440773(_0x3ad195[_0x3aa5ee(0x2bc)],_0x1b38be[_0x3aa5ee(0x179)]),'component':Ya,get 'labels'(){const _0x6024d7=_0x3aa5ee;return{'add':_0x2cd89b['t'](_0x6024d7(0x443)),'configure':_0x474657=>_0x2cd89b['t'](_0x6024d7(0x2d0),_0x474657),'delete':_0x2cd89b['t'](_0x6024d7(0x171)),'new':_0x2cd89b['t'](_0x6024d7(0x3ae)),'rename':_0x2cd89b['t']('bases-dashboard-ui.dashboard.rename'),'search':_0x2cd89b['t']('bases-dashboard-ui.dashboard.search'),'section':_0x2cd89b['t'](_0x6024d7(0x2ec))};},'getItems':_0x269143=>{const _0x570e74=_0x3aa5ee;let _0x332e74=_0x3ad195[_0x570e74(0x1ce)](_0x269143);return _0x332e74['dashboardOrder'][_0x570e74(0x31f)](_0x28cbba=>{const _0x20eadc=_0x570e74;let _0x4d5d2f=_0x332e74[_0x20eadc(0x344)][_0x28cbba];return _0x4d5d2f?[{'id':_0x4d5d2f['id'],'name':_0x4d5d2f[_0x20eadc(0x3ca)],'readonly':!_0x120634(_0x1b38be,_0x269143,_0x4d5d2f['id'])}]:[];});},'create':async _0xcf4b8b=>{const _0x9ba14a=_0x3aa5ee;let _0x1e24e5=_0x3ad195[_0x9ba14a(0x1ce)](_0xcf4b8b),_0x16e616='dashboard-'+_0xd28735(0x8),_0x2dd663=wo(_0x1e24e5[_0x9ba14a(0x28e)][_0x9ba14a(0x31f)](_0x412553=>{const _0x28e583=_0x9ba14a;let _0x1b3ba2=_0x1e24e5['dashboards'][_0x412553];return _0x1b3ba2?[_0x1b3ba2[_0x28e583(0x3ca)]]:[];}),_0x48d163=>_0x2cd89b['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x48d163)));return await _0x4a009c[_0x9ba14a(0x42e)](_0x28a4bb['id'],{'unitId':_0xcf4b8b,'dashboard':{'id':_0x16e616,'name':_0x2dd663,'widgetOrder':[],'widgets':{}}})?_0x16e616:null;},'rename':async(_0x528483,_0x5049e6,_0x26246d)=>{const _0x1dce32=_0x3aa5ee;let _0x470694=_0x3ad195[_0x1dce32(0x34a)](_0x528483,_0x5049e6);return!!(_0x470694&&await _0x4a009c[_0x1dce32(0x42e)](_0x39c855['id'],{'unitId':_0x528483,'dashboard':{..._0x470694,'name':_0x26246d}}));},'remove':(_0x477ada,_0x5335c2)=>_0x4a009c[_0x3aa5ee(0x42e)](_0x22a544['id'],{'unitId':_0x477ada,'dashboardId':_0x5335c2})};}function wo(_0x4322b4,_0x3572c4){const _0x2c09fa=_0xbfff20;let _0x5a1e60=new Set(_0x4322b4),_0x32da9c=_0x5a1e60['size']+0x1,_0x3ac5e6=_0x3572c4(_0x32da9c);for(;_0x5a1e60[_0x2c09fa(0x2f8)](_0x3ac5e6);)_0x32da9c+=0x1,_0x3ac5e6=_0x3572c4(_0x32da9c);return _0x3ac5e6;}let To=class extends _0x14271e{constructor(_0x30cb17=gr,_0x3a7904,_0xd55122){const _0x5e0c8e=_0xbfff20;super(),this[_0x5e0c8e(0x469)]=_0x30cb17,this[_0x5e0c8e(0x326)]=_0x3a7904,this[_0x5e0c8e(0x403)]=_0xd55122;let {..._0x2368db}=_0x2004cb({},gr,this[_0x5e0c8e(0x469)]);this[_0x5e0c8e(0x403)][_0x5e0c8e(0x4a4)](hr,_0x2368db);}[_0xbfff20(0x37a)](){const _0x48a8f6=_0xbfff20;this[_0x48a8f6(0x326)][_0x48a8f6(0x1d7)]([Ar]),this[_0x48a8f6(0x326)][_0x48a8f6(0x1d7)]([Kr]),this[_0x48a8f6(0x326)][_0x48a8f6(0x1d7)]([So]);}[_0xbfff20(0x184)](){const _0x5bfa0f=_0xbfff20;_0x5b9752(this[_0x5bfa0f(0x326)],[[Ar],[Kr],[So]]);}};Fr(To,'type',_0x37ea54[_0xbfff20(0x2e2)]),Fr(To,'pluginName','BASE_DASHBOARD_UI_PLUGIN'),Fr(To,_0xbfff20(0x267),pr),Fr(To,'version',mr),To=kr([_0x1957bf(_0x36c2e0,_0xbeeff3,_0xfebde9,_0x136391,_0x3371b7,_0xc91b76),Y(0x1,_0x38b292(_0x38337e)),Y(0x2,_0x6de229)],To);export{ra as UniverBaseDashboardMobileUIPlugin,To as UniverBaseDashboardUIPlugin};
|