@univerjs-pro/bases-dashboard-ui 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ar-SA.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/cs-CZ.js +1 -1
- package/lib/cjs/locale/de-DE.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/id-ID.js +1 -1
- package/lib/cjs/locale/it-IT.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/nl-NL.js +1 -1
- package/lib/cjs/locale/pl-PL.js +1 -1
- package/lib/cjs/locale/pt-BR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/th-TH.js +1 -1
- package/lib/cjs/locale/tr-TR.js +1 -1
- package/lib/cjs/locale/uk-UA.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-HK.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ar-SA.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/cs-CZ.js +1 -1
- package/lib/es/locale/de-DE.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/id-ID.js +1 -1
- package/lib/es/locale/it-IT.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/nl-NL.js +1 -1
- package/lib/es/locale/pl-PL.js +1 -1
- package/lib/es/locale/pt-BR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/th-TH.js +1 -1
- package/lib/es/locale/tr-TR.js +1 -1
- package/lib/es/locale/uk-UA.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-HK.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ar-SA.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/cs-CZ.js +1 -1
- package/lib/locale/de-DE.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/id-ID.js +1 -1
- package/lib/locale/it-IT.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/nl-NL.js +1 -1
- package/lib/locale/pl-PL.js +1 -1
- package/lib/locale/pt-BR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/th-TH.js +1 -1
- package/lib/locale/tr-TR.js +1 -1
- package/lib/locale/uk-UA.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-HK.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ar-SA.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/cs-CZ.js +1 -1
- package/lib/umd/locale/de-DE.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/id-ID.js +1 -1
- package/lib/umd/locale/it-IT.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/nl-NL.js +1 -1
- package/lib/umd/locale/pl-PL.js +1 -1
- package/lib/umd/locale/pt-BR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/th-TH.js +1 -1
- package/lib/umd/locale/tr-TR.js +1 -1
- package/lib/umd/locale/uk-UA.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-HK.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +18 -18
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x5ed5a2=_0x46f3;(function(_0xb0e621,_0x35a8dc){const _0x123d1d=_0x46f3,_0xdf2772=_0xb0e621();while(!![]){try{const _0x9251b=-parseInt(_0x123d1d(0x1c0))/0x1*(-parseInt(_0x123d1d(0x16b))/0x2)+parseInt(_0x123d1d(0x19e))/0x3+-parseInt(_0x123d1d(0x2ea))/0x4*(parseInt(_0x123d1d(0x49a))/0x5)+-parseInt(_0x123d1d(0x172))/0x6*(parseInt(_0x123d1d(0x271))/0x7)+parseInt(_0x123d1d(0x261))/0x8*(parseInt(_0x123d1d(0x1f4))/0x9)+parseInt(_0x123d1d(0x3f2))/0xa*(-parseInt(_0x123d1d(0x414))/0xb)+parseInt(_0x123d1d(0x2f2))/0xc;if(_0x9251b===_0x35a8dc)break;else _0xdf2772['push'](_0xdf2772['shift']());}catch(_0x12f1ef){_0xdf2772['push'](_0xdf2772['shift']());}}}(_0x4fea,0x591d9),Object['defineProperty'](exports,Symbol[_0x5ed5a2(0x373)],{'value':_0x5ed5a2(0x4fd)}));let e=require('@univerjs-pro/bases-dashboard'),t=require('@univerjs-pro/bases-ui'),n=require('@univerjs-pro/chart-ui'),r=require('@univerjs-pro/license'),i=require('@univerjs-pro/shape-editor'),a=require('@univerjs/core'),o=require('@univerjs/docs-ui'),s=require('@univerjs/icons'),c=require('rxjs'),l=require('@univerjs-pro/bases'),u=require('@univerjs-pro/collaboration-client'),d=require('@univerjs-pro/engine-shape'),f=require('@univerjs/design'),p=require('@univerjs/protocol'),m=require('@univerjs/ui'),h=require('react'),g=require('react/jsx-runtime'),_=require('@univerjs-pro/engine-chart'),v=require('react-dom'),y=require('@univerjs-pro/engine-pivot');var b=_0x5ed5a2(0x3f4),x=_0x5ed5a2(0x25f);const S=_0x5ed5a2(0x1cb),C={};function w(_0xb2f1fc,_0x1f78e1){const _0x433a4b=_0x5ed5a2;let _0x4cfa24=(0x0,m[_0x433a4b(0x354)])(a[_0x433a4b(0x227)]),_0x365ab9=(0x0,e[_0x433a4b(0x550)])(_0x4cfa24,_0xb2f1fc,_0x1f78e1);return(0x0,m[_0x433a4b(0x4e3)])(()=>_0x4cfa24[_0x433a4b(0x4b8)][_0x433a4b(0x558)]((0x0,c[_0x433a4b(0x51d)])(()=>(0x0,e['canEditBaseDashboard'])(_0x4cfa24,_0xb2f1fc,_0x1f78e1))),_0x365ab9,!0x1,[_0x1f78e1,_0x4cfa24,_0xb2f1fc]);}function T(_0x2c1826,_0x1e571d,_0x36d6f2){const _0x113a75=_0x5ed5a2;let _0x24e343=(0x0,m['useDependency'])(a[_0x113a75(0x227)]),_0x2c3e9f=(0x0,e[_0x113a75(0x399)])(_0x24e343,_0x2c1826,_0x1e571d,_0x36d6f2);return(0x0,m[_0x113a75(0x4e3)])(()=>_0x24e343[_0x113a75(0x4b8)][_0x113a75(0x558)]((0x0,c[_0x113a75(0x51d)])(()=>(0x0,e[_0x113a75(0x399)])(_0x24e343,_0x2c1826,_0x1e571d,_0x36d6f2))),_0x2c3e9f,!0x1,[_0x24e343,_0x1e571d,_0x2c1826,_0x36d6f2]);}function E(_0x2faff6,_0x13c08a=_0x5ed5a2(0x423)){const _0x1cde46=_0x5ed5a2;return{'backgroundImage':_0x1cde46(0x427)+JSON[_0x1cde46(0x2bf)](_0x2faff6)+')','backgroundPosition':_0x13c08a===_0x1cde46(0x515)?_0x1cde46(0x3b6):_0x1cde46(0x166),'backgroundRepeat':_0x13c08a==='repeat'?'repeat':'no-repeat','backgroundSize':_0x13c08a===_0x1cde46(0x423)?'cover':_0x1cde46(0x547)};}const D={'alignment':_0x5ed5a2(0x40f),'currency':'USD','decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x5ed5a2(0x547),'numberFormat':'general'},O={'CNY':'¥','EUR':'€','USD':'$'};function k(_0x1de1ef){const _0x539a72=_0x5ed5a2;var _0x262148;let _0xa74c32=te(((_0x262148=_0x1de1ef[_0x539a72(0x152)][_0x539a72(0x3c8)])==null||(_0x262148=_0x262148[_0x539a72(0x1e5)])==null?void 0x0:_0x262148[_0x539a72(0x359)])??'');return{...D,..._0xa74c32,..._0x1de1ef['appearance']};}function A(_0x204c6a,_0x4e42d9){const _0x25f2a4=_0x5ed5a2;let _0x2237e4={..._0x204c6a[_0x25f2a4(0x12f)],..._0x4e42d9},_0x3e21f6=k({..._0x204c6a,'appearance':_0x2237e4}),_0x568802=_0x204c6a[_0x25f2a4(0x152)]['formulaBinding']??{'formula':''};return{..._0x204c6a,'appearance':_0x2237e4,'shapeData':{..._0x204c6a[_0x25f2a4(0x152)],'formulaBinding':{..._0x568802,'numberFormat':{'pattern':j(_0x3e21f6[_0x25f2a4(0x1e5)],_0x3e21f6[_0x25f2a4(0x3a9)],_0x3e21f6[_0x25f2a4(0x3ee)])}}}};}function j(_0x3b4877,_0x3860da,_0x5a233b){const _0x4c5bd2=_0x5ed5a2;let _0x41d081=Math['max'](0x0,Math[_0x4c5bd2(0x2e6)](0x8,Math['round'](_0x3860da))),_0x39dd62=_0x41d081?'.'+'0'[_0x4c5bd2(0x515)](_0x41d081):'';switch(_0x3b4877){case _0x4c5bd2(0x21c):return'0'+_0x39dd62;case'percent':return'0'+_0x39dd62+'%';case _0x4c5bd2(0x3ee):return(O[_0x5a233b]??_0x5a233b)+_0x4c5bd2(0x137)+_0x39dd62;case _0x4c5bd2(0x384):return _0x4c5bd2(0x137)+_0x39dd62;case'compact':case _0x4c5bd2(0x459):return _0x4c5bd2(0x251);}}function ee(_0xf2ef6e,_0x34d00d,_0x31ff50){const _0x15d2be=_0x5ed5a2;return _0x31ff50['numberFormat']!==_0x15d2be(0x1ce)||typeof _0x34d00d!=_0x15d2be(0x21c)||!Number[_0x15d2be(0x513)](_0x34d00d)?_0xf2ef6e:new Intl[(_0x15d2be(0x27b))](void 0x0,{'notation':_0x15d2be(0x1ce),'minimumFractionDigits':_0x31ff50[_0x15d2be(0x3a9)]??0x0,'maximumFractionDigits':_0x31ff50[_0x15d2be(0x3a9)]??0x0})[_0x15d2be(0x3a2)](_0x34d00d);}function te(_0x49e90b){const _0x153cb2=_0x5ed5a2;var _0x3cacbb,_0x5a10b0;if(!_0x49e90b||_0x49e90b===_0x153cb2(0x251))return{};let _0x1a444a=_0x49e90b[_0x153cb2(0x537)](/\.([0#]+)/),_0x3afe05=(_0x1a444a==null||(_0x3cacbb=_0x1a444a[0x1])==null?void 0x0:_0x3cacbb['length'])??0x0;if(_0x49e90b[_0x153cb2(0x433)]('%'))return{'decimalPlaces':_0x3afe05,'numberFormat':_0x153cb2(0x4f6)};let _0x1f0108=(_0x5a10b0=Object[_0x153cb2(0x2a1)](O)['find'](([,_0xec3de8])=>_0x49e90b[_0x153cb2(0x433)](_0xec3de8)))==null?void 0x0:_0x5a10b0[0x0];return _0x1f0108?{'currency':_0x1f0108,'decimalPlaces':_0x3afe05,'numberFormat':_0x153cb2(0x3ee)}:{'decimalPlaces':_0x3afe05,'numberFormat':_0x49e90b['includes'](',')?_0x153cb2(0x384):_0x153cb2(0x21c)};}const ne={'center':_0x5ed5a2(0x166),'left':_0x5ed5a2(0x1f3),'right':_0x5ed5a2(0x16f)};function M({dashboardId:_0x21166f,unitId:_0x3562dc,widget:_0x241ef7}){const _0x5a2868=_0x5ed5a2;var _0xf39c2e,_0xc2fcdf,_0x190490,_0x36a3dc,_0x50e8d3,_0x3290b7,_0x442f50,_0x2219a5,_0xe12a4c;let _0x5ac12c=(0x0,m['useDependency'])(i[_0x5a2868(0x179)]),_0x1863db=(0x0,m['useDependency'])(a[_0x5a2868(0x553)]),_0xf746d0=(0x0,m[_0x5a2868(0x354)])(a[_0x5a2868(0x331)]),_0x4688c2=(0x0,h[_0x5a2868(0x16e)])(()=>({'hostType':a['UniverInstanceType'][_0x5a2868(0x15a)],'unitId':_0x3562dc,'subUnitId':_0x21166f,'shapeId':_0x241ef7['id']}),[_0x21166f,_0x3562dc,_0x241ef7['id']]),[_0x554b37,_0x5aca77]=(0x0,h[_0x5a2868(0x541)])(()=>_0x5ac12c['getPresentation'](_0x4688c2)),[_0x84cca7,_0x46b19e]=(0x0,h[_0x5a2868(0x541)])(()=>{const _0x600f69=_0x5a2868;var _0x429168;return(_0x429168=_0x5ac12c[_0x600f69(0x2b7)](_0x4688c2))==null?void 0x0:_0x429168['value'];}),[_0xa67ecb,_0x56a614]=(0x0,h[_0x5a2868(0x541)])(),_0x36f86f=(0x0,h[_0x5a2868(0x1b3)])(null),_0x1ca029=(0x0,h[_0x5a2868(0x1b3)])(null),_0x276f53=k(_0x241ef7);(0x0,h[_0x5a2868(0x45e)])(()=>{const _0xd72b8c=_0x5a2868;let _0xbfd592=_0x5ac12c[_0xd72b8c(0x20b)]['subscribe'](_0x492fa6=>{const _0x495983=_0xd72b8c;_0x492fa6['unitId']===_0x3562dc&&_0x492fa6[_0x495983(0x147)]===_0x21166f&&_0x492fa6[_0x495983(0x352)]===_0x241ef7['id']&&(_0x5aca77(_0x492fa6[_0x495983(0x502)]),_0x46b19e(_0x492fa6[_0x495983(0x52c)][_0x495983(0x2a2)]));});return()=>_0xbfd592[_0xd72b8c(0x170)]();},[_0x21166f,_0x5ac12c,_0x4688c2,_0x3562dc,_0x241ef7['id']]),(0x0,h[_0x5a2868(0x45e)])(()=>{const _0x10a816=_0x5a2868;let _0x35fa3d=_0x276f53[_0x10a816(0x153)];if(!_0x35fa3d||_0x35fa3d['sourceType']!==a[_0x10a816(0x4af)][_0x10a816(0x254)])return;let _0x1f777d=_0x1863db[_0x10a816(0x385)](_0x35fa3d[_0x10a816(0x321)],_0x35fa3d[_0x10a816(0x38e)]);if(_0x1f777d!=null&&_0x1f777d[_0x10a816(0x1b5)])return;let _0x4f164f=!0x0;return _0x1863db[_0x10a816(0x2b8)](_0x35fa3d[_0x10a816(0x321)])[_0x10a816(0x52a)](_0x14f7b7=>{const _0x1b923f=_0x10a816;_0x4f164f&&_0x56a614({'source':_0x35fa3d[_0x1b923f(0x321)],'value':_0x14f7b7});})[_0x10a816(0x26e)](()=>void 0x0),()=>{_0x4f164f=!0x1;};},[_0x276f53[_0x5a2868(0x153)],_0x1863db]);let _0x338c91=((_0xf39c2e=_0x276f53['backgroundImage'])==null?void 0x0:_0xf39c2e[_0x5a2868(0x38e)])===a[_0x5a2868(0x4af)]['UUID']?((_0xc2fcdf=_0x1863db[_0x5a2868(0x385)](_0x276f53[_0x5a2868(0x153)][_0x5a2868(0x321)],_0x276f53['backgroundImage'][_0x5a2868(0x38e)]))==null?void 0x0:_0xc2fcdf[_0x5a2868(0x1b5)])??((_0xa67ecb==null?void 0x0:_0xa67ecb[_0x5a2868(0x321)])===_0x276f53['backgroundImage'][_0x5a2868(0x321)]?_0xa67ecb[_0x5a2868(0x2a2)]:''):((_0x190490=_0x276f53[_0x5a2868(0x153)])==null?void 0x0:_0x190490['source'])??'',_0x38f74d=_0x241ef7[_0x5a2868(0x152)][_0x5a2868(0x511)],_0x25d5fd=_0x38f74d&&_0x5a2868(0x4ff)in _0x38f74d?(_0x36a3dc=_0x38f74d[_0x5a2868(0x4ff)])==null?void 0x0:_0x36a3dc['doc']:void 0x0,_0x1e4956=ee((_0x554b37==null?void 0x0:_0x554b37[_0x5a2868(0x1d3)])??'',_0x84cca7,_0x276f53),_0x53a642=_0x241ef7[_0x5a2868(0x152)][_0x5a2868(0x429)],_0x53f3ea=_0x241ef7[_0x5a2868(0x152)][_0x5a2868(0x1c8)],_0x1089e7=_0x25d5fd==null||(_0x50e8d3=_0x25d5fd[_0x5a2868(0x1a9)])==null?void 0x0:_0x50e8d3['textStyle'],_0xf11fe5=_0x241ef7[_0x5a2868(0x4e6)]??_0x241ef7[_0x5a2868(0x2cb)]??'';return(0x0,h[_0x5a2868(0x45e)])(()=>{const _0x4bfe0b=_0x5a2868;let _0x27135c=_0x36f86f[_0x4bfe0b(0x28f)],_0x163d9e=_0x1ca029[_0x4bfe0b(0x28f)];if(!_0x27135c||!_0x163d9e)return;let _0x4d65cb=()=>{const _0x2a82a7=_0x4bfe0b;if(_0x276f53[_0x2a82a7(0x520)]==='custom'||!_0x27135c[_0x2a82a7(0x3bb)]||!_0x27135c[_0x2a82a7(0x122)]){_0x163d9e[_0x2a82a7(0x3b4)][_0x2a82a7(0x2fd)]=_0x276f53[_0x2a82a7(0x2fd)]+'px';return;}let _0x2f8aa3=0x1,_0x363d5e=0x48,_0x2d14e2=_0x2f8aa3;for(;_0x2f8aa3<=_0x363d5e;){let _0x3782e0=Math[_0x2a82a7(0x3ff)]((_0x2f8aa3+_0x363d5e)/0x2);_0x163d9e[_0x2a82a7(0x3b4)][_0x2a82a7(0x2fd)]=_0x3782e0+'px',_0x163d9e[_0x2a82a7(0x30c)]<=_0x27135c[_0x2a82a7(0x3bb)]&&_0x163d9e['scrollHeight']<=_0x27135c['clientHeight']?(_0x2d14e2=_0x3782e0,_0x2f8aa3=_0x3782e0+0x1):_0x363d5e=_0x3782e0-0x1;}_0x163d9e['style']['fontSize']=_0x2d14e2+'px';};if(_0x4d65cb(),typeof ResizeObserver>'u')return;let _0x5aebb7=new ResizeObserver(_0x4d65cb);return _0x5aebb7[_0x4bfe0b(0x13a)](_0x27135c),()=>_0x5aebb7[_0x4bfe0b(0x3f5)]();},[_0x276f53[_0x5a2868(0x2fd)],_0x276f53[_0x5a2868(0x520)],_0x1e4956]),(0x0,g[_0x5a2868(0x186)])(_0x5a2868(0x378),{'data-dashboard-formula-shape':_0x241ef7['id'],'className':_0x5a2868(0x3da),'style':{'backgroundColor':((_0x3290b7=_0x241ef7[_0x5a2868(0x12f)])==null?void 0x0:_0x3290b7[_0x5a2868(0x277)])??((_0x53a642==null?void 0x0:_0x53a642[_0x5a2868(0x27d)])===d[_0x5a2868(0x21f)]['SolidFill']?_0x53a642[_0x5a2868(0x491)]??void 0x0:void 0x0),'border':(_0x53f3ea==null?void 0x0:_0x53f3ea[_0x5a2868(0x4c2)])===d[_0x5a2868(0x27a)][_0x5a2868(0x29b)]?(_0x53f3ea['width']??0x1)+'px\x20solid\x20'+(_0x53f3ea[_0x5a2868(0x491)]??_0x5a2868(0x226)):void 0x0,'borderRadius':_0x241ef7[_0x5a2868(0x13c)]===d[_0x5a2868(0x1dd)][_0x5a2868(0x50d)]?0xc:void 0x0,'color':((_0x442f50=_0x241ef7['appearance'])==null?void 0x0:_0x442f50[_0x5a2868(0x216)])??(_0x554b37==null?void 0x0:_0x554b37[_0x5a2868(0x491)])??(_0x1089e7==null||(_0x2219a5=_0x1089e7['cl'])==null?void 0x0:_0x2219a5[_0x5a2868(0x18b)])??void 0x0,'fontWeight':_0x1089e7!=null&&_0x1089e7['bl']?0x258:void 0x0,'textAlign':_0x276f53['alignment']},'children':[_0x338c91&&(0x0,g[_0x5a2868(0x40a)])('img',{'src':_0x338c91,'alt':'','aria-hidden':_0x5a2868(0x556),'className':_0x5a2868(0x2ab),'style':{'objectFit':((_0xe12a4c=_0x276f53[_0x5a2868(0x153)])==null?void 0x0:_0xe12a4c[_0x5a2868(0x16d)])??'cover'}}),(0x0,g['jsxs'])(_0x5a2868(0x378),{'className':_0x5a2868(0x248),'children':[_0xf11fe5&&(0x0,g[_0x5a2868(0x40a)])(_0x5a2868(0x378),{'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':_0xf11fe5}),(0x0,g['jsx'])(_0x5a2868(0x378),{'ref':_0x36f86f,'data-dashboard-formula-value':!0x0,'aria-label':_0xf11fe5||_0xf746d0['t'](_0x5a2868(0x467)),'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','style':{'justifyContent':ne[_0x276f53[_0x5a2868(0x4bf)]]},'children':(0x0,g[_0x5a2868(0x40a)])(_0x5a2868(0x4ba),{'ref':_0x1ca029,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x276f53[_0x5a2868(0x520)],'className':_0x5a2868(0x500),'children':_0x1e4956})})]})]});}function N(_0x527492,_0x11d2de){return function(_0x3a84fe,_0x5dc793){_0x11d2de(_0x3a84fe,_0x5dc793,_0x527492);};}function P(_0x5d8236,_0xfdfe1b,_0x52752f,_0x222b93){const _0x2d8c53=_0x5ed5a2;var _0x34e667=arguments['length'],_0x1728ca=_0x34e667<0x3?_0xfdfe1b:_0x222b93===null?_0x222b93=Object[_0x2d8c53(0x4e7)](_0xfdfe1b,_0x52752f):_0x222b93,_0x44ed7f;if(typeof Reflect==_0x2d8c53(0x335)&&typeof Reflect[_0x2d8c53(0x141)]=='function')_0x1728ca=Reflect[_0x2d8c53(0x141)](_0x5d8236,_0xfdfe1b,_0x52752f,_0x222b93);else{for(var _0x471248=_0x5d8236[_0x2d8c53(0x253)]-0x1;_0x471248>=0x0;_0x471248--)(_0x44ed7f=_0x5d8236[_0x471248])&&(_0x1728ca=(_0x34e667<0x3?_0x44ed7f(_0x1728ca):_0x34e667>0x3?_0x44ed7f(_0xfdfe1b,_0x52752f,_0x1728ca):_0x44ed7f(_0xfdfe1b,_0x52752f))||_0x1728ca);}return _0x34e667>0x3&&_0x1728ca&&Object[_0x2d8c53(0x532)](_0xfdfe1b,_0x52752f,_0x1728ca),_0x1728ca;}let F=class{constructor(_0x3fc183,_0x25d75b,_0x1c5cd7){const _0x22e9d8=_0x5ed5a2;this[_0x22e9d8(0x41c)]=_0x3fc183,this[_0x22e9d8(0x291)]=_0x25d75b,this['_renderModelManager']=_0x1c5cd7;}[_0x5ed5a2(0x232)](){const _0x5f125b=_0x5ed5a2;return this[_0x5f125b(0x451)][_0x5f125b(0x2d1)](_[_0x5f125b(0x478)][_0x5f125b(0x338)],this['_createContext']());}[_0x5ed5a2(0x2c4)](_0x46b31a){const _0x38d6f2=_0x5ed5a2;let _0x2128ad=_0x46b31a[_0x38d6f2(0x42f)]['config'];if(!_0x2128ad)throw Error(_0x38d6f2(0x139)+_0x46b31a[_0x38d6f2(0x29e)]+'\x20has\x20no\x20render\x20config.');let _0x23789e=this['_localeService'][_0x38d6f2(0x393)]();return{'config':_0x2128ad,'style':(0x0,_[_0x38d6f2(0x1f6)])({..._0x46b31a[_0x38d6f2(0x42f)][_0x38d6f2(0x3b4)],'runtime':_0x46b31a['model'][_0x38d6f2(0x519)](_0x23789e),'direction':_0x23789e},_0x2128ad['type'])};}[_0x5ed5a2(0x50c)](){const _0x4e6bb4=_0x5ed5a2;return{'resolveHostStyle':({style:_0x599050})=>(0x0,_[_0x4e6bb4(0x48d)])({'style':_0x599050,'getRenderColor':_0x45ab8d=>this['_chartThemeService']['getRenderColor'](_0x45ab8d)}),'resolveRenderBackgroundColor':({hostStyle:_0xca018d})=>_0xca018d['fill']};}};F=P([N(0x0,(0x0,a[_0x5ed5a2(0x1cf)])(a[_0x5ed5a2(0x331)])),N(0x1,(0x0,a[_0x5ed5a2(0x1cf)])(_[_0x5ed5a2(0x145)])),N(0x2,_[_0x5ed5a2(0x154)])],F);function I(_0x1784d2,_0x5ceff7){const _0x4dcb2d=_0x5ed5a2;var _0x5632f1;_0x1784d2[_0x4dcb2d(0x3b4)]['backgroundColor']=_0x5ceff7[_0x4dcb2d(0x429)]??_0x4dcb2d(0x35d),_0x1784d2[_0x4dcb2d(0x3b4)][_0x4dcb2d(0x169)]=(_0x5632f1=_0x5ceff7['border'])!=null&&_0x5632f1['color']&&_0x5ceff7['border'][_0x4dcb2d(0x125)]?_0x5ceff7[_0x4dcb2d(0x169)][_0x4dcb2d(0x125)]+'px\x20solid\x20'+_0x5ceff7['border'][_0x4dcb2d(0x491)]:'',_0x1784d2[_0x4dcb2d(0x3b4)]['borderRadius']=_0x5ceff7['radius']?_0x5ceff7[_0x4dcb2d(0x3dd)]+'px':'',_0x1784d2[_0x4dcb2d(0x3b4)][_0x4dcb2d(0x501)]='hidden',_0x1784d2[_0x4dcb2d(0x3b4)]['boxSizing']=_0x4dcb2d(0x348);}function L(_0x49970a){'@babel/helpers - typeof';const _0x3410e7=_0x5ed5a2;return L=typeof Symbol==_0x3410e7(0x279)&&typeof Symbol[_0x3410e7(0x496)]=='symbol'?function(_0x38a76d){return typeof _0x38a76d;}:function(_0x19d3f1){const _0x496740=_0x3410e7;return _0x19d3f1&&typeof Symbol==_0x496740(0x279)&&_0x19d3f1[_0x496740(0x167)]===Symbol&&_0x19d3f1!==Symbol[_0x496740(0x1ae)]?'symbol':typeof _0x19d3f1;},L(_0x49970a);}function R(_0x4c585f,_0x4b5d14){const _0x3a205d=_0x5ed5a2;if(L(_0x4c585f)!=_0x3a205d(0x335)||!_0x4c585f)return _0x4c585f;var _0x45b629=_0x4c585f[Symbol[_0x3a205d(0x259)]];if(_0x45b629!==void 0x0){var _0x372a25=_0x45b629['call'](_0x4c585f,_0x4b5d14||_0x3a205d(0x2bc));if(L(_0x372a25)!=_0x3a205d(0x335))return _0x372a25;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4b5d14===_0x3a205d(0x28e)?String:Number)(_0x4c585f);}function z(_0x1b507d){const _0x27cafa=_0x5ed5a2;var _0x168f55=R(_0x1b507d,_0x27cafa(0x28e));return L(_0x168f55)==_0x27cafa(0x2e9)?_0x168f55:_0x168f55+'';}function B(_0x610225,_0xa9cef7,_0x4ffa85){return(_0xa9cef7=z(_0xa9cef7))in _0x610225?Object['defineProperty'](_0x610225,_0xa9cef7,{'value':_0x4ffa85,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x610225[_0xa9cef7]=_0x4ffa85,_0x610225;}var V=class extends a[_0x5ed5a2(0x330)]{constructor(_0x1f3151,_0x2bf079){const _0x3c4f0c=_0x5ed5a2;super(),this['chartId']=_0x1f3151,this[_0x3c4f0c(0x49f)]=_0x2bf079,B(this,_0x3c4f0c(0x249),_[_0x3c4f0c(0x478)]['Dom']);}[_0x5ed5a2(0x4f1)](){const _0x2171b9=_0x5ed5a2;return{'width':Math[_0x2171b9(0x464)](0x1,this['_element'][_0x2171b9(0x3bb)]),'height':Math['max'](0x1,this[_0x2171b9(0x49f)]['clientHeight'])};}[_0x5ed5a2(0x4a4)](_0x545d1d){I(this['_element'],_0x545d1d);}async[_0x5ed5a2(0x15f)](){return this['_element'];}['checkMounted'](){const _0x39715f=_0x5ed5a2;return this[_0x39715f(0x49f)][_0x39715f(0x288)];}['syncLayout'](){}['markReady'](){}[_0x5ed5a2(0x444)](){}};function re({isRowDirection:_0x3cbf97,runtime:_0x4a345b}){const _0x18f61=_0x5ed5a2;let _0x2f710e=(0x0,h['useRef'])(null),_0x49fe80=(0x0,m['useDependency'])(a[_0x18f61(0x331)]),_0x216ed5=(0x0,m[_0x18f61(0x354)])(a[_0x18f61(0x2bd)]),_0x396c86=(0x0,m[_0x18f61(0x354)])(F),_0x503940=(0x0,m[_0x18f61(0x354)])(a[_0x18f61(0x4e5)]);return(0x0,h[_0x18f61(0x45e)])(()=>{const _0x50557d=_0x18f61;let _0x5b0e98=_0x2f710e[_0x50557d(0x28f)];if(!_0x5b0e98)return;_0x5b0e98[_0x50557d(0x476)]();let {chartId:_0x1a0dc0,model:_0x590246}=_0x4a345b,_0xecfeb6=_0x590246[_0x50557d(0x231)],_0x2323a6=new V(_0x1a0dc0,_0x5b0e98),_0x381f28=_0x396c86[_0x50557d(0x232)](),_0x2d10bd=!0x1,_0x211112=null,_0x32e657=null,_0x307d42=null,_0x5234fa=null,_0x297ede=!0x1,_0x4fd649=!0x1,_0x79f1dc=Promise[_0x50557d(0x4ee)]();_0x381f28[_0x50557d(0x3e6)](_0x2323a6);let _0x4e0c1b=()=>{const _0x1ae7a3=_0x50557d;var _0x3b698f,_0x1688c2,_0x34df39,_0x542834;if(document[_0x1ae7a3(0x1b4)]===_0x1ae7a3(0x2cf)||(_0x3b698f=(_0x1688c2=window)[_0x1ae7a3(0x50a)])!=null&&(_0x3b698f=_0x3b698f['call'](_0x1688c2,'(prefers-reduced-motion:\x20reduce)'))!=null&&_0x3b698f[_0x1ae7a3(0x1b0)]||(_0x34df39=(_0x542834=window)[_0x1ae7a3(0x50a)])!=null&&(_0x34df39=_0x34df39[_0x1ae7a3(0x239)](_0x542834,_0x1ae7a3(0x18f)))!=null&&_0x34df39[_0x1ae7a3(0x1b0)]||!_0x5b0e98[_0x1ae7a3(0x288)])return!0x1;let _0x2ecd06=_0x5b0e98[_0x1ae7a3(0x1eb)]();return _0x2ecd06[_0x1ae7a3(0x125)]>0x0&&_0x2ecd06[_0x1ae7a3(0x4f3)]>0x0&&_0x2ecd06[_0x1ae7a3(0x27f)]>0x0&&_0x2ecd06['bottom']>0x0&&_0x2ecd06[_0x1ae7a3(0x40f)]<window[_0x1ae7a3(0x4fc)]&&_0x2ecd06[_0x1ae7a3(0x51e)]<window[_0x1ae7a3(0x322)];},_0x1aedcc=()=>{const _0x54668b=_0x50557d;_0x32e657!==null&&clearTimeout(_0x32e657),_0x5b0e98[_0x54668b(0x1c2)][_0x54668b(0x40e)]=_0x54668b(0x556),_0x5b0e98['dataset'][_0x54668b(0x12c)]=String(_[_0x54668b(0x1e8)]),_0x32e657=setTimeout(()=>{const _0x4337ce=_0x54668b;_0x32e657=null,delete _0x5b0e98[_0x4337ce(0x1c2)]['baseChartDataAnimation'],delete _0x5b0e98[_0x4337ce(0x1c2)][_0x4337ce(0x12c)];},_[_0x54668b(0x1e8)]);},_0x487e58=_0x35d8f2=>{const _0x51c95d=_0x50557d;if(_0x2d10bd)return;if(_0x211112!==null&&(clearTimeout(_0x211112),_0x211112=null),!_0x590246['config']){_0x4fd649||=_0x35d8f2;return;}_0x5b0e98[_0x51c95d(0x1c2)][_0x51c95d(0x2d8)]=String(_0x590246[_0x51c95d(0x2d8)]),_0x5b0e98[_0x51c95d(0x1c2)][_0x51c95d(0x43d)]=String(_0x3cbf97);let _0x34b36a=_0x396c86[_0x51c95d(0x2c4)](_0x4a345b),_0x41abf1={'chartId':_0x1a0dc0,'config':_0x34b36a[_0x51c95d(0x489)],'style':_0x34b36a[_0x51c95d(0x3b4)]};_0x79f1dc=_0x79f1dc['then'](async()=>{const _0x1ccde4=_0x51c95d;_0x2d10bd||(_0x5b0e98[_0x1ccde4(0x1c2)][_0x1ccde4(0x371)]=String(Number(_0x5b0e98['dataset']['renderRevision']??0x0)+0x1),_0x35d8f2&&_0x307d42&&_0x381f28[_0x1ccde4(0x2a5)]&&_0x4e0c1b()?(await _0x381f28[_0x1ccde4(0x2a5)](_0x307d42,_0x41abf1,{'duration':_[_0x1ccde4(0x1e8)]}),_0x2d10bd||_0x1aedcc()):await _0x381f28[_0x1ccde4(0x215)](_0x41abf1),_0x307d42=_0x41abf1);})['catch'](_0xe6b3b8=>_0x216ed5[_0x51c95d(0x458)](_0x51c95d(0x150),_0xe6b3b8));},_0x542a27=(_0x9ad9f3=!0x1)=>{_0x4fd649||=_0x9ad9f3,!_0x297ede&&(_0x297ede=!0x0,queueMicrotask(()=>{_0x297ede=!0x1;let _0x3b334a=_0x4fd649;_0x4fd649=!0x1,_0x487e58(_0x3b334a);}));},_0x5a25=[_0xecfeb6['data$']['subscribe'](_0x15024d=>{const _0x2c90f1=_0x50557d;let _0x5d1395=JSON[_0x2c90f1(0x2bf)](_0x15024d);_0x5234fa!=null&&_0x5234fa!==_0x5d1395&&_0x542a27(!0x0),_0x5234fa=_0x5d1395;}),_0x590246[_0x50557d(0x240)][_0x50557d(0x3b1)](_0xebf504=>{_0xebf504&&_0x542a27();}),_0x590246[_0x50557d(0x15e)]['subscribe'](()=>_0x542a27()),_0x49fe80[_0x50557d(0x28b)][_0x50557d(0x3b1)](()=>_0x542a27()),(0x0,c['combineLatest'])([_0x503940[_0x50557d(0x278)],_0x503940['darkMode$']])['pipe']((0x0,c['skip'])(0x1))[_0x50557d(0x3b1)](()=>_0x542a27())],_0x1e9741=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x4cf732=_0x50557d;_0x2d10bd||(_0x2323a6[_0x4cf732(0x53d)](),_0x211112!==null&&clearTimeout(_0x211112),_0x211112=setTimeout(()=>_0x542a27(),0x64));});return _0x1e9741==null||_0x1e9741[_0x50557d(0x13a)](_0x5b0e98),()=>{const _0x54081f=_0x50557d;_0x2d10bd=!0x0,_0x211112!==null&&clearTimeout(_0x211112),_0x32e657!==null&&clearTimeout(_0x32e657),delete _0x5b0e98[_0x54081f(0x1c2)][_0x54081f(0x40e)],delete _0x5b0e98[_0x54081f(0x1c2)][_0x54081f(0x12c)],_0x1e9741==null||_0x1e9741[_0x54081f(0x3f5)](),_0x5a25['forEach'](_0x47d7a4=>_0x47d7a4[_0x54081f(0x170)]()),_0x381f28[_0x54081f(0x2f1)](),_0x2323a6['dispose'](),_0x5b0e98['replaceChildren']();};},[_0x3cbf97,_0x49fe80,_0x216ed5,_0x396c86,_0x4a345b,_0x503940]),(0x0,g[_0x18f61(0x40a)])('div',{'ref':_0x2f710e,'data-u-comp':'base-pivot-chart','className':'univer-absolute\x20univer-inset-0\x20univer-overflow-hidden'});}function ie({filters:_0x3dba10,onRuntimeChange:_0x3f880f,unitId:_0x23b994,widget:_0x322219}){const _0x36f272=_0x5ed5a2;let _0x133167=(0x0,m[_0x36f272(0x354)])(a['IUniverInstanceService']),_0x405af3=(0x0,m[_0x36f272(0x354)])(a['LocaleService']),_0x2a04ae=(0x0,m[_0x36f272(0x354)])(a[_0x36f272(0x2bd)]),_0x46efb4=(0x0,m['useDependency'])(e['BaseChartRuntimeService']),[_0x58982b,_0x3a3a54]=(0x0,h[_0x36f272(0x541)])(null),[_0x274dff,_0x2b73e2]=(0x0,h[_0x36f272(0x541)])(!0x1),[_0x40e841,_0x4aee4a]=(0x0,h[_0x36f272(0x541)])(null),_0x45957a=(0x0,h[_0x36f272(0x1b3)])(_0x36f272(0x400)+(0x0,a['generateRandomId'])(0x8)),_0x23cd17=_0x133167[_0x36f272(0x4d5)](_0x23b994,a[_0x36f272(0x39a)][_0x36f272(0x15a)]),_0x5c7a2b=_0x23cd17==null?void 0x0:_0x23cd17[_0x36f272(0x2c2)]()[_0x36f272(0x308)][_0x322219['tableId']],_0x48a7a6=_0x5c7a2b==null?void 0x0:_0x5c7a2b['views'][_0x322219[_0x36f272(0x2b4)]],_0x28775c=H(_0x48a7a6);if((0x0,h[_0x36f272(0x45e)])(()=>{const _0x2c2fbb=_0x36f272;if(!_0x28775c)return;let _0x3402f=_0x45957a[_0x2c2fbb(0x28f)];return _0x46efb4[_0x2c2fbb(0x39c)](_0x3402f,{'unitId':_0x23b994,'tableId':_0x322219[_0x2c2fbb(0x326)],'viewId':_0x322219[_0x2c2fbb(0x2b4)],'filters':[]}),()=>{const _0x2f5303=_0x2c2fbb;_0x46efb4[_0x2f5303(0x473)](_0x23b994,_0x3402f),_0x3f880f==null||_0x3f880f(_0x322219['id'],null);};},[_0x28775c,_0x3f880f,_0x46efb4,_0x23b994,_0x322219['id'],_0x322219[_0x36f272(0x2b4)],_0x322219[_0x36f272(0x326)]]),(0x0,h[_0x36f272(0x45e)])(()=>{const _0x4992c1=_0x36f272;if(!H(_0x48a7a6))return;let _0x1fa0a7=!0x0,_0x71acd4=_0x322219[_0x4992c1(0x43a)]??_0x48a7a6[_0x4992c1(0x489)][_0x4992c1(0x43a)],_0x3980ac={'unitId':_0x23b994,'tableId':_0x322219[_0x4992c1(0x326)],'viewId':_0x322219[_0x4992c1(0x2b4)],'filters':[_0x48a7a6[_0x4992c1(0x2ac)]??null,..._0x3dba10]};return _0x46efb4[_0x4992c1(0x493)](_0x23b994,_0x45957a[_0x4992c1(0x28f)],_0x3980ac,_0x71acd4)[_0x4992c1(0x52a)](_0x194343=>{const _0x3351cb=_0x4992c1;if(!_0x1fa0a7||!_0x194343)return;let _0x2dfb45=_0x46efb4['getChartRuntime'](_0x23b994,_0x45957a[_0x3351cb(0x28f)])??null;_0x3a3a54(_0x194343),_0x4aee4a(_0x2dfb45),_0x2b73e2(!0x1),_0x3f880f==null||_0x3f880f(_0x322219['id'],_0x2dfb45);})[_0x4992c1(0x26e)](_0x1780f2=>{const _0x21f6fb=_0x4992c1;_0x2a04ae['error'](_0x21f6fb(0x40c),_0x1780f2),_0x1fa0a7&&(_0x3a3a54(null),_0x2b73e2(!0x0));}),()=>{_0x1fa0a7=!0x1;};},[_0x3dba10,_0x2a04ae,_0x3f880f,_0x46efb4,_0x23b994,_0x48a7a6,_0x322219['chart'],_0x322219['id'],_0x322219[_0x36f272(0x2b4)],_0x322219['tableId']]),!H(_0x48a7a6))return(0x0,g['jsx'])(_0x36f272(0x378),{'className':_0x36f272(0x554),'children':_0x405af3['t'](_0x36f272(0x2a6))});let _0x32be21=_0x46efb4[_0x36f272(0x448)](_0x23b994,_0x45957a[_0x36f272(0x28f)])===_0x40e841?_0x40e841:null;return _0x58982b&&_0x32be21?(0x0,g[_0x36f272(0x40a)])(re,{'isRowDirection':(0x0,e[_0x36f272(0x199)])((_0x322219['chart']??_0x48a7a6['config'][_0x36f272(0x43a)])[_0x36f272(0x2e5)]),'runtime':_0x32be21}):(0x0,g['jsx'])(_0x36f272(0x378),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','children':_0x405af3['t'](_0x274dff?_0x36f272(0x45b):_0x36f272(0x42a))});}function H(_0x4d559f){const _0x3e593f=_0x5ed5a2;return(_0x4d559f==null?void 0x0:_0x4d559f[_0x3e593f(0x436)])===a[_0x3e593f(0x39b)][_0x3e593f(0x1f7)]&&typeof _0x4d559f['config']==_0x3e593f(0x335)&&_0x4d559f[_0x3e593f(0x489)]!==null&&_0x3e593f(0x264)in _0x4d559f[_0x3e593f(0x489)]&&_0x3e593f(0x43a)in _0x4d559f[_0x3e593f(0x489)];}const ae={'alignment':_0x5ed5a2(0x40f),'fontSize':0x12,'fontSizeMode':_0x5ed5a2(0x547)};function oe(_0x201014){const _0xb3ba49=_0x5ed5a2;return{...ae,..._0x201014[_0xb3ba49(0x12f)]};}function U(_0x2e25ba){const _0x496dfb=_0x5ed5a2;var _0x1c50b2;return((_0x1c50b2=_0x2e25ba[_0x496dfb(0x1e1)])==null?void 0x0:_0x1c50b2['dataStream']['replace'](/\r\n$/,'')['replace'](/\r/g,'\x0a'))??'';}function se(_0x39d1b9,_0x3068d5){const _0x28f12a=_0x5ed5a2;var _0x583c23;let _0x36fc29=_0x3068d5[_0x28f12a(0x2e0)](/\r\n|\r/g,'\x0a')[_0x28f12a(0x21d)]('\x0a'),_0x3b0d21=_0x36fc29['join']('\x0d')+'\x0d\x0a',_0x26ed4b=((_0x583c23=_0x39d1b9[_0x28f12a(0x1e1)])==null?void 0x0:_0x583c23[_0x28f12a(0x523)])??[],_0x41b1c0=new Set(_0x26ed4b['map'](_0x22f143=>_0x22f143[_0x28f12a(0x417)])),_0x2b7e43=0x0,_0x340adc=_0x36fc29[_0x28f12a(0x51d)]((_0x1168ad,_0x4192fc)=>{const _0x14a157=_0x28f12a;_0x2b7e43+=_0x1168ad['length'];let _0x5a2f81={..._0x26ed4b[_0x4192fc]??{'startIndex':_0x2b7e43,'paragraphId':(0x0,a[_0x14a157(0x2f4)])(_0x41b1c0)},'startIndex':_0x2b7e43};return _0x2b7e43+=0x1,_0x5a2f81;});return{..._0x39d1b9,'body':{..._0x39d1b9[_0x28f12a(0x1e1)],'dataStream':_0x3b0d21,'paragraphs':_0x340adc,'textRuns':[]}};}function ce({widget:_0xf47b0b}){const _0x154e95=_0x5ed5a2;let _0x5d4a8e=(0x0,m['useDependency'])(a[_0x154e95(0x4e5)]),_0x2a22f3=(0x0,m['useDependency'])(a[_0x154e95(0x331)]),_0x55036d=(0x0,m[_0x154e95(0x4e3)])(()=>_0x5d4a8e[_0x154e95(0x278)],_0x5d4a8e[_0x154e95(0x24d)](),!0x1,[_0x5d4a8e]),_0x4fd13e=(0x0,h[_0x154e95(0x1b3)])(null),_0x1b1522=(0x0,h[_0x154e95(0x1b3)])(null),_0x304432=oe(_0xf47b0b),_0x21b3c9=_0x304432[_0x154e95(0x277)]??_0x55036d[_0x154e95(0x17c)][0x0],_0x42a908=_0x304432['textColor']??_0x55036d[_0x154e95(0x17c)][0x3e8],_0x5914a4=U(_0xf47b0b['document']);return(0x0,h['useEffect'])(()=>{const _0x3b05b3=_0x154e95;let _0x24946d=_0x4fd13e['current'],_0x383ce5=_0x1b1522[_0x3b05b3(0x28f)];if(!_0x24946d||!_0x383ce5)return;let _0x4417e9=()=>{const _0x18fcb3=_0x3b05b3;if(_0x304432[_0x18fcb3(0x520)]==='custom'||!_0x24946d['clientWidth']||!_0x24946d[_0x18fcb3(0x122)]){_0x383ce5[_0x18fcb3(0x3b4)]['fontSize']=_0x304432[_0x18fcb3(0x2fd)]+'px';return;}let _0x3e2cc5=0x8,_0x5a3e63=0x48,_0x1bfe3d=_0x3e2cc5;for(;_0x3e2cc5<=_0x5a3e63;){let _0xc64dcd=Math[_0x18fcb3(0x3ff)]((_0x3e2cc5+_0x5a3e63)/0x2);_0x383ce5[_0x18fcb3(0x3b4)][_0x18fcb3(0x2fd)]=_0xc64dcd+'px',_0x383ce5[_0x18fcb3(0x30c)]<=_0x24946d[_0x18fcb3(0x3bb)]&&_0x383ce5['scrollHeight']<=_0x24946d[_0x18fcb3(0x122)]?(_0x1bfe3d=_0xc64dcd,_0x3e2cc5=_0xc64dcd+0x1):_0x5a3e63=_0xc64dcd-0x1;}_0x383ce5[_0x18fcb3(0x3b4)][_0x18fcb3(0x2fd)]=_0x1bfe3d+'px';};if(_0x4417e9(),typeof ResizeObserver>'u')return;let _0x48248a=new ResizeObserver(_0x4417e9);return _0x48248a[_0x3b05b3(0x13a)](_0x24946d),()=>_0x48248a[_0x3b05b3(0x3f5)]();},[_0x304432[_0x154e95(0x2fd)],_0x304432[_0x154e95(0x520)],_0x5914a4]),(0x0,g[_0x154e95(0x40a)])(_0x154e95(0x378),{'data-dashboard-text-widget':_0xf47b0b['id'],'className':_0x154e95(0x28d),'style':{'backgroundColor':_0x21b3c9,'color':_0x42a908},'children':(0x0,g[_0x154e95(0x40a)])(_0x154e95(0x378),{'ref':_0x4fd13e,'data-dashboard-text-content':!0x0,'aria-label':_0x2a22f3['t'](_0x154e95(0x475)),'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','children':(0x0,g['jsx'])('div',{'ref':_0x1b1522,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x304432['fontSizeMode'],'className':_0x154e95(0x12b),'style':{'textAlign':_0x304432['alignment']},'children':_0x5914a4})})});}function le({dashboard:_0x433fe1,editable:_0x179a2b=!0x0,onSelectWidget:_0x55d1ff,renderWidget:_0x17d96f,renderWidgetActions:_0x5833af,selectedWidgetId:_0x4eeb4b,widgetLabel:_0x357712}){const _0x12d9d1=_0x5ed5a2;return(0x0,g['jsx'])(_0x12d9d1(0x378),{'data-dashboard-scroll-container':!0x0,'className':(0x0,f[_0x12d9d1(0x328)])('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',f['scrollbarClassName']),'onClick':_0x179a2b?_0xae8dfe=>{const _0x29e578=_0x12d9d1;if(!(_0xae8dfe[_0x29e578(0x33b)]instanceof Node)||!_0xae8dfe['currentTarget']['contains'](_0xae8dfe[_0x29e578(0x33b)]))return;let _0x2c5200=_0xae8dfe[_0x29e578(0x33b)]instanceof Element?_0xae8dfe['target']:_0xae8dfe[_0x29e578(0x33b)][_0x29e578(0x3d6)];_0x2c5200!=null&&_0x2c5200['closest'](_0x29e578(0x31d))||_0x55d1ff==null||_0x55d1ff();}:void 0x0,'children':(0x0,g[_0x12d9d1(0x40a)])('div',{'data-dashboard-grid':!0x0,'className':_0x12d9d1(0x2f0),'children':_0x433fe1['widgetOrder'][_0x12d9d1(0x51d)](_0x4cb02a=>{const _0x2ecd51=_0x12d9d1;let _0x11eaed=_0x433fe1[_0x2ecd51(0x329)][_0x4cb02a];if(!_0x11eaed)return null;let _0x57c1eb=Math[_0x2ecd51(0x464)](0xb4,_0x11eaed[_0x2ecd51(0x18d)][_0x2ecd51(0x120)]*e[_0x2ecd51(0x1e6)]);return(0x0,g[_0x2ecd51(0x186)])(_0x2ecd51(0x33d),{'data-dashboard-widget':_0x11eaed['id'],'aria-label':_0x11eaed[_0x2ecd51(0x2cb)]??_0x357712(_0x11eaed),'className':(0x0,f[_0x2ecd51(0x328)])(_0x2ecd51(0x41f),_0x11eaed[_0x2ecd51(0x436)]===e[_0x2ecd51(0x311)][_0x2ecd51(0x192)]||_0x11eaed[_0x2ecd51(0x436)]===e['BaseDashboardWidgetType'][_0x2ecd51(0x39d)]?_0x2ecd51(0x38d):_0x2ecd51(0x3a3),_0x179a2b&&_0x4eeb4b===_0x11eaed['id']?_0x2ecd51(0x548):_0x2ecd51(0x3e5)),'style':{'minHeight':_0x57c1eb,'height':_0x57c1eb},'tabIndex':_0x179a2b?0x0:void 0x0,'onClick':_0x179a2b?()=>_0x55d1ff==null?void 0x0:_0x55d1ff(_0x11eaed['id']):void 0x0,'onFocus':_0x179a2b?()=>_0x55d1ff==null?void 0x0:_0x55d1ff(_0x11eaed['id']):void 0x0,'children':[_0x179a2b&&(0x0,g[_0x2ecd51(0x40a)])(_0x2ecd51(0x378),{'className':_0x2ecd51(0x4bb),'children':_0x5833af==null?void 0x0:_0x5833af(_0x11eaed)}),(0x0,g[_0x2ecd51(0x40a)])('div',{'className':'univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','children':_0x17d96f(_0x11eaed)})]},_0x11eaed['id']);})})});}let W=class extends n[_0x5ed5a2(0x4f7)]{constructor(_0x151195){const _0x381884=_0x5ed5a2;super(_0x151195),B(this,_0x381884(0x439),null);}[_0x5ed5a2(0x53c)](_0x292267){}};W=P([N(0x0,(0x0,a[_0x5ed5a2(0x1cf)])(n[_0x5ed5a2(0x54f)]))],W);function ue({children:_0x423c54}){const _0x1654be=_0x5ed5a2;return(0x0,g[_0x1654be(0x40a)])(n[_0x1654be(0x509)],{'children':_0x423c54});}function G(_0x55fd88){const _0x48222e=_0x5ed5a2;return(0x0,g['jsx'])(f[_0x48222e(0x217)],{..._0x55fd88});}function de(_0x1a136f){const _0x569d54=_0x5ed5a2;return(0x0,g[_0x569d54(0x40a)])(f[_0x569d54(0x471)],{..._0x1a136f});}function fe(_0x263b9a){const _0x497a41=_0x5ed5a2;return(0x0,g[_0x497a41(0x40a)])(f[_0x497a41(0x42e)],{..._0x263b9a});}var pe;const K={'axis':{...n[_0x5ed5a2(0x504)],'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':n[_0x5ed5a2(0x355)],'heatmap':n[_0x5ed5a2(0x32b)],'indicatorLine':n[_0x5ed5a2(0x40b)],'legend':n['DEFAULT_CHART_LEGEND_VALUES'],'lineAndArea':n[_0x5ed5a2(0x4df)],'pareto':n[_0x5ed5a2(0x1fd)],'pie':n[_0x5ed5a2(0x4c9)],'radar':n[_0x5ed5a2(0x3bf)],'relation':{...n['DEFAULT_CHART_RELATION_VALUES'],'useValueAsSymbolSize':!0x0},'series':{...n[_0x5ed5a2(0x189)],'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((pe=_[_0x5ed5a2(0x193)][_0x5ed5a2(0x4e9)])==null?void 0x0:pe[_0x5ed5a2(0x4a2)])??!0x1}},'style':n[_0x5ed5a2(0x13b)],'titles':n[_0x5ed5a2(0x1a7)],'trendline':n['DEFAULT_CHART_TRENDLINE_VALUES'],'waterfall':{...n[_0x5ed5a2(0x3af)],'useSubtotal':!0x0},'waterfallStyle':n[_0x5ed5a2(0x457)],'wordCloud':n[_0x5ed5a2(0x1a6)]},me=[_[_0x5ed5a2(0x2cd)][_0x5ed5a2(0x323)],_[_0x5ed5a2(0x2cd)][_0x5ed5a2(0x2de)],_[_0x5ed5a2(0x2cd)]['WordCloud'],_[_0x5ed5a2(0x2cd)][_0x5ed5a2(0x46a)],_['ChartTypeBits'][_0x5ed5a2(0x53b)],_[_0x5ed5a2(0x2cd)]['Relation'],_[_0x5ed5a2(0x2cd)]['Sankey'],_[_0x5ed5a2(0x2cd)][_0x5ed5a2(0x499)],_[_0x5ed5a2(0x2cd)]['Boxplot'],_[_0x5ed5a2(0x2cd)][_0x5ed5a2(0x474)],_[_0x5ed5a2(0x2cd)][_0x5ed5a2(0x270)],_['ChartTypeBits'][_0x5ed5a2(0x30d)],_[_0x5ed5a2(0x2cd)][_0x5ed5a2(0x2af)],_['ChartTypeBits'][_0x5ed5a2(0x275)],_[_0x5ed5a2(0x2cd)][_0x5ed5a2(0x3bd)]];function he(_0x111a3c){const _0x1f23d3=_0x5ed5a2;let {config:_0x148c87,onChange:_0xbcaef,runtime:_0x176717,tableName:_0x3523c8}=_0x111a3c,_0x554d05=(0x0,m[_0x1f23d3(0x354)])(W),_0x42f17b=(0x0,m[_0x1f23d3(0x354)])(a[_0x1f23d3(0x331)]),[_0x3a50eb,_0x40e696]=(0x0,h[_0x1f23d3(0x541)])(n[_0x1f23d3(0x175)][_0x1f23d3(0x43f)]),_0x1e0516=(0x0,h['useMemo'])(()=>new n[(_0x1f23d3(0x4ab))](_0x176717['model'],{'commit':_0x115790=>{const _0x340fd0=_0x1f23d3;var _0x23c53e;let _0x3d2060=_0x176717[_0x340fd0(0x42f)],_0x4c092c=(0x0,_['toChartModelUpdate'])(_0x115790,{'series':(_0x23c53e=_0x3d2060[_0x340fd0(0x489)])==null?void 0x0:_0x23c53e['series'],'currentChartType':_0x3d2060[_0x340fd0(0x2d8)],'currentStyle':_0x3d2060[_0x340fd0(0x3b4)],'currentContext':_0x3d2060[_0x340fd0(0x242)],'currentDataAggregation':_0x3d2060[_0x340fd0(0x4a7)]});_0xbcaef({'chart':ge(_0x148c87[_0x340fd0(0x43a)],_0x4c092c)});}}),[_0x148c87['chart'],_0xbcaef,_0x176717]),_0x522037=(0x0,h[_0x1f23d3(0x16e)])(()=>(0x0,n[_0x1f23d3(0x22d)])(n[_0x1f23d3(0x389)][_0x1f23d3(0x51d)](_0x2fc404=>({..._0x2fc404,'label':_0x42f17b['t'](be(_0x2fc404['labelId']))}))),[_0x42f17b]);return(0x0,g[_0x1f23d3(0x40a)])(n[_0x1f23d3(0x3c3)],{'chartUIService':_0x554d05,'hostAdapter':_0x1e0516,'children':(0x0,g['jsxs'])(_0x1f23d3(0x378),{'className':_0x1f23d3(0x313),'children':[(0x0,g[_0x1f23d3(0x40a)])(n[_0x1f23d3(0x23d)],{'ariaLabel':_0x42f17b['t'](_0x1f23d3(0x223)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x42f17b['t']('bases-dashboard-ui.chart.common.setup'),'panelId':'base-pivot-chart-setup','value':n[_0x1f23d3(0x175)][_0x1f23d3(0x43f)]},{'label':_0x42f17b['t'](_0x1f23d3(0x14a)),'panelId':_0x1f23d3(0x2df),'value':n[_0x1f23d3(0x175)]['Style']}],'value':_0x3a50eb,'onChange':_0x40e696}),_0x3a50eb===n[_0x1f23d3(0x175)][_0x1f23d3(0x43f)]?(0x0,g['jsx'])(n['ChartEditPanel'],{'id':'base-pivot-chart-setup','label':_0x42f17b['t'](_0x1f23d3(0x52f)),'children':(0x0,g['jsxs'])(_0x1f23d3(0x378),{'className':_0x1f23d3(0x3f3),'children':[(0x0,g[_0x1f23d3(0x40a)])(n[_0x1f23d3(0x413)],{'options':_0x522037}),(0x0,g[_0x1f23d3(0x40a)])(n[_0x1f23d3(0x497)],{}),(0x0,g[_0x1f23d3(0x40a)])(n[_0x1f23d3(0x518)],{}),(0x0,g[_0x1f23d3(0x40a)])(_e,{}),(0x0,g[_0x1f23d3(0x40a)])(n[_0x1f23d3(0x317)],{}),(0x0,g[_0x1f23d3(0x186)])('div',{'children':[(0x0,g[_0x1f23d3(0x40a)])(n[_0x1f23d3(0x298)],{'title':_0x42f17b['t']('bases-dashboard-ui.pivot.dataSource')}),(0x0,g[_0x1f23d3(0x40a)])(f['Input'],{'disabled':!0x0,'value':_0x3523c8})]}),(0x0,g[_0x1f23d3(0x40a)])(n[_0x1f23d3(0x2e7)],{'orientationControl':(0x0,g[_0x1f23d3(0x40a)])(f['Button'],{'size':'small','onClick':()=>_0xbcaef({'chart':{..._0x148c87[_0x1f23d3(0x43a)],'orient':_0x148c87[_0x1f23d3(0x43a)][_0x1f23d3(0x2e5)]===_0x1f23d3(0x3ab)?_0x1f23d3(0x13f):_0x1f23d3(0x3ab)}}),'children':_0x42f17b['t'](_0x1f23d3(0x184))})}),(0x0,g['jsx'])(n[_0x1f23d3(0x3c6)],{}),(0x0,g['jsx'])(n[_0x1f23d3(0x53f)],{'defaultValues':K['waterfall']}),(0x0,g[_0x1f23d3(0x186)])(_0x1f23d3(0x378),{'children':[(0x0,g['jsx'])(n['ChartEditBlockTitle'],{'title':_0x42f17b['t'](_0x1f23d3(0x3ae))}),(0x0,g[_0x1f23d3(0x40a)])(G,{'value':_0x148c87['displayMode'],'options':[{'value':_0x1f23d3(0x546),'label':_0x42f17b['t'](_0x1f23d3(0x50b))},{'value':'chart','label':_0x42f17b['t'](_0x1f23d3(0x3ca))},{'value':'table','label':_0x42f17b['t'](_0x1f23d3(0x50e))}],'onChange':_0x11538b=>{const _0xe193fc=_0x1f23d3;(_0x11538b==='chart-and-table'||_0x11538b===_0xe193fc(0x43a)||_0x11538b===_0xe193fc(0x1a8))&&_0xbcaef({'displayMode':_0x11538b});}})]})]})}):(0x0,g[_0x1f23d3(0x40a)])(n[_0x1f23d3(0x121)],{'id':_0x1f23d3(0x2df),'label':_0x42f17b['t'](_0x1f23d3(0x14a)),'children':(0x0,g[_0x1f23d3(0x40a)])(ve,{})})]})});}function ge(_0x4f8e4c,_0x26e7c6){const _0xc73175=_0x5ed5a2;return{..._0x4f8e4c,'type':_0x26e7c6[_0xc73175(0x2d8)]??_0x4f8e4c[_0xc73175(0x436)],'style':_0x26e7c6['style']??_0x4f8e4c[_0xc73175(0x3b4)],'context':_0x26e7c6[_0xc73175(0x242)]??_0x4f8e4c['context'],'dataAggregation':_0x26e7c6[_0xc73175(0x4a7)]??_0x4f8e4c[_0xc73175(0x4a7)]};}function _e(){const _0x269887=_0x5ed5a2;let _0x2e6a62=(0x0,n[_0x269887(0x3a1)])();return(0x0,g[_0x269887(0x40a)])(n[_0x269887(0x24c)],{'visible':me[_0x269887(0x12e)](_0x59f03f=>!_[_0x269887(0x221)][_0x269887(0x517)](_0x2e6a62,_0x59f03f))});}function q(_0x409138){const _0x1d0cb9=_0x5ed5a2;return(0x0,g[_0x1d0cb9(0x186)])(n[_0x1d0cb9(0x53e)],{'id':_0x409138['id'],'children':[(0x0,g[_0x1d0cb9(0x40a)])(n[_0x1d0cb9(0x3e8)],{'children':_0x409138[_0x1d0cb9(0x369)]}),(0x0,g[_0x1d0cb9(0x40a)])(n[_0x1d0cb9(0x3fa)],{'children':_0x409138['children']})]});}function ve(){const _0x5efd0a=_0x5ed5a2;let _0x135f0a=(0x0,m[_0x5efd0a(0x354)])(a['LocaleService']),_0x175820=(0x0,n['useChartEditorChartType'])(),_0xc1941f=(0x0,n[_0x5efd0a(0x284)])(),[_0x4160b1,_0x2bcc24]=(0x0,h[_0x5efd0a(0x541)])(null),_0x34cd28=_[_0x5efd0a(0x221)]['baseOn'](_0x175820,_[_0x5efd0a(0x2cd)][_0x5efd0a(0x190)]),_0x53059d=_0x175820===_['ChartTypeBits'][_0x5efd0a(0x2de)],_0x3116e9=_0x175820===_[_0x5efd0a(0x2cd)][_0x5efd0a(0x2d6)],_0x3d7749=_0x175820===_[_0x5efd0a(0x2cd)][_0x5efd0a(0x53b)],_0x218900=_[_0x5efd0a(0x221)][_0x5efd0a(0x517)](_0x175820,_['ChartTypeBits'][_0x5efd0a(0x479)]),_0x1195dc=_0x175820===_[_0x5efd0a(0x2cd)][_0x5efd0a(0x13e)],_0xee779e=_0x175820===_[_0x5efd0a(0x2cd)][_0x5efd0a(0x22c)],_0x2b393b=_0x175820===_[_0x5efd0a(0x2cd)][_0x5efd0a(0x495)],_0x41ac8a=_0x175820===_[_0x5efd0a(0x2cd)][_0x5efd0a(0x499)],_0x196d66=(0x0,n[_0x5efd0a(0x340)])(_0x175820,n[_0x5efd0a(0x19b)]['GeneralSeries'])&&!_0x218900&&!_0x2b393b,_0x457780=ye(_0x175820,_0x135f0a);return(0x0,g[_0x5efd0a(0x186)])(n[_0x5efd0a(0x41d)],{'value':_0x4160b1,'onChange':_0x2bcc24,'children':[(0x0,g[_0x5efd0a(0x40a)])(q,{'id':n[_0x5efd0a(0x156)][_0x5efd0a(0x157)],'label':_0x135f0a['t'](_0x5efd0a(0x48c)),'children':(0x0,g[_0x5efd0a(0x40a)])(n[_0x5efd0a(0x194)],{'defaultValues':K[_0x5efd0a(0x3b4)]})}),(0x0,g['jsx'])(q,{'id':n[_0x5efd0a(0x156)][_0x5efd0a(0x1e7)],'label':_0x135f0a['t'](_0x5efd0a(0x17b)),'children':(0x0,g['jsx'])(n['ChartTitlesSection'],{'commitMode':_0x5efd0a(0x262),'defaultValues':K[_0x5efd0a(0x430)]})}),(0x0,g['jsx'])(n[_0x5efd0a(0x29f)],{'section':_0x5efd0a(0x2b2)}),_0x196d66&&(0x0,g['jsx'])(q,{'id':n[_0x5efd0a(0x156)]['Series'],'label':_0x135f0a['t']('bases-dashboard-ui.chart.common.series'),'children':(0x0,g[_0x5efd0a(0x40a)])(n[_0x5efd0a(0x17f)],{'defaultValues':K[_0x5efd0a(0x425)],'NumberFormatField':n['ChartNumberFormatAtom']})}),_0xee779e&&(0x0,g[_0x5efd0a(0x40a)])(q,{'id':n[_0x5efd0a(0x156)][_0x5efd0a(0x181)],'label':_0x135f0a['t'](_0x5efd0a(0x203)),'children':(0x0,g[_0x5efd0a(0x40a)])(n['ChartWaterfallStyleSection'],{'defaultValues':K[_0x5efd0a(0x3b7)],'getDefaultBucketName':({seriesName:_0x169291,target:_0x43e306})=>_0x43e306===_[_0x5efd0a(0x1c9)]['Subtotal']?_0x135f0a['t'](_0x5efd0a(0x295)):_0x169291?_0x169291+'-('+_0x135f0a['t'](_0x5efd0a(0x418)+(_0x43e306===_[_0x5efd0a(0x1c9)][_0x5efd0a(0x540)]?_0x5efd0a(0x3be):'waterfall.negative'))+')':'','NumberFormatField':n[_0x5efd0a(0x158)]})}),_0x2b393b&&(0x0,g[_0x5efd0a(0x186)])(g[_0x5efd0a(0x18c)],{'children':[(0x0,g['jsx'])(q,{'id':n[_0x5efd0a(0x156)][_0x5efd0a(0x3cd)],'label':_0x135f0a['t']('bases-dashboard-ui.chart.section.paretoBar'),'children':(0x0,g[_0x5efd0a(0x40a)])(n[_0x5efd0a(0x47d)],{'defaultValues':K[_0x5efd0a(0x1aa)],'NumberFormatField':n[_0x5efd0a(0x158)],'showDataPointEditor':!0x0,'target':_0x5efd0a(0x4bc)})}),(0x0,g[_0x5efd0a(0x40a)])(q,{'id':n[_0x5efd0a(0x156)][_0x5efd0a(0x45d)],'label':_0x135f0a['t'](_0x5efd0a(0x3d4)),'children':(0x0,g[_0x5efd0a(0x40a)])(n[_0x5efd0a(0x47d)],{'defaultValues':K[_0x5efd0a(0x1aa)],'NumberFormatField':n[_0x5efd0a(0x158)],'showDataPointEditor':!0x1,'target':_0x5efd0a(0x4ad)})})]}),_0x34cd28&&(0x0,g['jsx'])(q,{'id':n[_0x5efd0a(0x156)]['PieStyle'],'label':_0x135f0a['t'](_0x5efd0a(0x23e)),'children':(0x0,g[_0x5efd0a(0x40a)])(n[_0x5efd0a(0x34a)],{'defaultValues':K[_0x5efd0a(0x25b)],'NumberFormatField':n['ChartNumberFormatAtom']})}),_0x3116e9&&(0x0,g[_0x5efd0a(0x40a)])(q,{'id':n[_0x5efd0a(0x156)][_0x5efd0a(0x2d6)],'label':_0x135f0a['t']('bases-dashboard-ui.chart.section.wordCloud'),'children':(0x0,g['jsx'])(n[_0x5efd0a(0x524)],{'defaultValues':K[_0x5efd0a(0x243)]})}),_0x53059d&&(0x0,g['jsx'])(q,{'id':n['ChartEditPanelSection'][_0x5efd0a(0x2de)],'label':_0x135f0a['t'](_0x5efd0a(0x2db)),'children':(0x0,g['jsx'])(n[_0x5efd0a(0x460)],{'defaultValues':K[_0x5efd0a(0x144)]})}),_0x3d7749&&(0x0,g[_0x5efd0a(0x40a)])(q,{'id':n[_0x5efd0a(0x156)]['Funnel'],'label':_0x135f0a['t'](_0x5efd0a(0x533)),'children':(0x0,g[_0x5efd0a(0x40a)])(n['ChartFunnelStyleSection'],{'defaultValues':K['funnel'],'gapControl':_0x5efd0a(0x2fb)})}),_0x41ac8a&&(0x0,g['jsx'])(q,{'id':n[_0x5efd0a(0x156)][_0x5efd0a(0x499)],'label':_0x135f0a['t'](_0x5efd0a(0x2d7)),'children':(0x0,g[_0x5efd0a(0x40a)])(n[_0x5efd0a(0x171)],{'defaultValues':K[_0x5efd0a(0x51f)]})}),_0x1195dc&&(0x0,g[_0x5efd0a(0x40a)])(q,{'id':n[_0x5efd0a(0x156)][_0x5efd0a(0x13e)],'label':_0x135f0a['t']('bases-dashboard-ui.chart.section.relation'),'children':(0x0,g[_0x5efd0a(0x40a)])(n[_0x5efd0a(0x27c)],{'defaultValues':K[_0x5efd0a(0x17a)]})}),(0x0,n[_0x5efd0a(0x131)])(_0x175820)&&(0x0,g[_0x5efd0a(0x40a)])(q,{'id':n[_0x5efd0a(0x156)][_0x5efd0a(0x2f6)],'label':_0x135f0a['t'](_[_0x5efd0a(0x221)][_0x5efd0a(0x517)](_0x175820,_['ChartTypeBits']['Area'])?_0x5efd0a(0x2ca):_0x5efd0a(0x4fb)),'children':(0x0,g[_0x5efd0a(0x40a)])(n[_0x5efd0a(0x415)],{'defaultValues':K[_0x5efd0a(0x29a)],'lineStyleControl':'segmented'})}),(0x0,n[_0x5efd0a(0x340)])(_0x175820,n[_0x5efd0a(0x19b)]['Legend'])&&(0x0,g[_0x5efd0a(0x40a)])(q,{'id':n['ChartEditPanelSection'][_0x5efd0a(0x4f9)],'label':_0x135f0a['t']('bases-dashboard-ui.chart.common.legend'),'children':(0x0,g[_0x5efd0a(0x40a)])(n[_0x5efd0a(0x34b)],{'defaultValues':K['legend']})}),(0x0,n['chartTypeSupportsCapability'])(_0x175820,n[_0x5efd0a(0x19b)]['Axes'])&&(0x0,g[_0x5efd0a(0x186)])(g[_0x5efd0a(0x18c)],{'children':[(0x0,g['jsx'])(q,{'id':n[_0x5efd0a(0x156)][_0x5efd0a(0x1ea)],'label':_0x135f0a['t']('bases-dashboard-ui.chart.common.horizontalAxis'),'children':(0x0,g['jsx'])(n[_0x5efd0a(0x441)],{'axis':'x','defaultValues':K['axis'],'NumberFormatField':n['ChartNumberFormatAtom']})}),(0x0,g['jsx'])(q,{'id':n[_0x5efd0a(0x156)]['VerticalAxis'],'label':_0x135f0a['t'](_0x5efd0a(0x2b9)),'children':(0x0,g[_0x5efd0a(0x40a)])(n['ChartAxisSection'],{'axis':'y','defaultValues':K[_0x5efd0a(0x406)],'NumberFormatField':n[_0x5efd0a(0x158)]})}),(0x0,g['jsx'])(n['ChartThreeDSection'],{'section':_0x5efd0a(0x1fb)}),_0xc1941f&&(0x0,g['jsx'])(q,{'id':n[_0x5efd0a(0x156)][_0x5efd0a(0x4c8)],'label':_0x135f0a['t'](_0x5efd0a(0x283)),'children':(0x0,g['jsx'])(n['ChartAxisSection'],{'axis':_0x5efd0a(0x36c),'defaultValues':K[_0x5efd0a(0x406)],'NumberFormatField':n[_0x5efd0a(0x158)]})}),(0x0,g['jsx'])(q,{'id':n[_0x5efd0a(0x156)]['GridlinesAndTicks'],'label':_0x135f0a['t'](_0x5efd0a(0x47e)),'children':(0x0,g['jsx'])(n[_0x5efd0a(0x2a7)],{'defaultValues':K[_0x5efd0a(0x406)]})})]}),(0x0,n[_0x5efd0a(0x340)])(_0x175820,n[_0x5efd0a(0x19b)][_0x5efd0a(0x224)])&&(0x0,g[_0x5efd0a(0x40a)])(q,{'id':n[_0x5efd0a(0x156)]['IndicatorLine'],'label':_0x135f0a['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':(0x0,g[_0x5efd0a(0x40a)])(n['ChartIndicatorLineSection'],{'defaultValues':K['indicatorLine']})}),(0x0,_[_0x5efd0a(0x30a)])(_0x175820)&&(0x0,g['jsx'])(q,{'id':n[_0x5efd0a(0x156)][_0x5efd0a(0x54a)],'label':_0x135f0a['t']('bases-dashboard-ui.chart.common.trendline'),'children':(0x0,g['jsx'])(n[_0x5efd0a(0x4e0)],{'defaultValues':K['trendline']})}),_0x457780&&(0x0,g[_0x5efd0a(0x40a)])(q,{'id':_0x457780['id'],'label':_0x457780[_0x5efd0a(0x369)],'children':(0x0,g['jsx'])(n[_0x5efd0a(0x3c0)],{})})]});}function ye(_0x324873,_0x41faff){const _0x30bda0=_0x5ed5a2;let _0x3b1562={[_[_0x30bda0(0x2cd)]['Candlestick']]:{'id':n[_0x30bda0(0x156)][_0x30bda0(0x474)],'localeKey':_0x30bda0(0x3e0)},[_[_0x30bda0(0x2cd)]['Histogram']]:{'id':n[_0x30bda0(0x156)][_0x30bda0(0x270)],'localeKey':_0x30bda0(0x2ff)},[_[_0x30bda0(0x2cd)][_0x30bda0(0x30d)]]:{'id':n[_0x30bda0(0x156)][_0x30bda0(0x30d)],'localeKey':_0x30bda0(0x247)},[_[_0x30bda0(0x2cd)][_0x30bda0(0x2af)]]:{'id':n[_0x30bda0(0x156)][_0x30bda0(0x2af)],'localeKey':_0x30bda0(0x218)},[_[_0x30bda0(0x2cd)][_0x30bda0(0x275)]]:{'id':n[_0x30bda0(0x156)][_0x30bda0(0x275)],'localeKey':'bases-dashboard-ui.chart.section.gauge'},[_[_0x30bda0(0x2cd)]['Chord']]:{'id':n[_0x30bda0(0x156)][_0x30bda0(0x3bd)],'localeKey':_0x30bda0(0x503)}}[_0x324873];return _0x3b1562?{'id':_0x3b1562['id'],'label':_0x41faff['t'](_0x3b1562['localeKey'])}:null;}function be(_0x2bd49b){const _0x157477=_0x5ed5a2;return _0x157477(0x28a)+_0x2bd49b;}function xe({onChange:_0x55158e,onEditData:_0x5ecdac,runtime:_0x18c807,sourceChart:_0x5aca93,sourceName:_0x16e109,widget:_0x3ac5d0}){const _0x4f0b4d=_0x5ed5a2;let _0x3662bc=(0x0,m[_0x4f0b4d(0x354)])(W),_0xe8b6fc=(0x0,m[_0x4f0b4d(0x354)])(a[_0x4f0b4d(0x331)]),[_0x49cf94,_0x24f8f7]=(0x0,h[_0x4f0b4d(0x541)])(n[_0x4f0b4d(0x175)][_0x4f0b4d(0x43f)]),_0x4418a8=_0x3ac5d0[_0x4f0b4d(0x43a)]??_0x5aca93,_0xb26c79=(0x0,h[_0x4f0b4d(0x16e)])(()=>new n[(_0x4f0b4d(0x4ab))](_0x18c807[_0x4f0b4d(0x42f)],{'commit':_0x43a60e=>{const _0xc92350=_0x4f0b4d;var _0x169ec7;let _0x44afcf=_0x18c807[_0xc92350(0x42f)],_0x1910a0=(0x0,_[_0xc92350(0x32f)])(_0x43a60e,{'series':(_0x169ec7=_0x44afcf[_0xc92350(0x489)])==null?void 0x0:_0x169ec7['series'],'currentChartType':_0x44afcf[_0xc92350(0x2d8)],'currentStyle':_0x44afcf[_0xc92350(0x3b4)],'currentContext':_0x44afcf['context'],'currentDataAggregation':_0x44afcf[_0xc92350(0x4a7)]});_0x55158e({..._0x3ac5d0,'chart':ge(_0x4418a8,_0x1910a0)})['catch'](()=>void 0x0);}}),[_0x4418a8,_0x55158e,_0x18c807,_0x3ac5d0]),_0xc79819=(0x0,h[_0x4f0b4d(0x16e)])(()=>(0x0,n[_0x4f0b4d(0x22d)])(n[_0x4f0b4d(0x389)]['map'](_0x30fc6d=>({..._0x30fc6d,'label':_0xe8b6fc['t'](Se(_0x30fc6d[_0x4f0b4d(0x466)]))}))),[_0xe8b6fc]);return(0x0,g[_0x4f0b4d(0x40a)])(n[_0x4f0b4d(0x435)],{'chartUIService':_0x3662bc,'hostAdapter':_0xb26c79,'children':(0x0,g[_0x4f0b4d(0x186)])('div',{'data-dashboard-chart-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[(0x0,g[_0x4f0b4d(0x40a)])(n['ChartEditPanelTabs'],{'ariaLabel':_0xe8b6fc['t']('bases-dashboard-ui.chart.common.editChart'),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0xe8b6fc['t'](_0x4f0b4d(0x52f)),'panelId':'dashboard-chart-setup','value':n['ChartEditPanelTab']['Data']},{'label':_0xe8b6fc['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x4f0b4d(0x3df),'value':n[_0x4f0b4d(0x175)][_0x4f0b4d(0x200)]}],'value':_0x49cf94,'onChange':_0x24f8f7}),_0x49cf94===n[_0x4f0b4d(0x175)][_0x4f0b4d(0x43f)]?(0x0,g[_0x4f0b4d(0x40a)])(n[_0x4f0b4d(0x121)],{'id':'dashboard-chart-setup','label':_0xe8b6fc['t'](_0x4f0b4d(0x52f)),'children':(0x0,g[_0x4f0b4d(0x186)])(_0x4f0b4d(0x378),{'className':_0x4f0b4d(0x3f3),'children':[(0x0,g[_0x4f0b4d(0x40a)])(n[_0x4f0b4d(0x413)],{'options':_0xc79819}),(0x0,g[_0x4f0b4d(0x40a)])(n[_0x4f0b4d(0x497)],{}),(0x0,g['jsx'])(n[_0x4f0b4d(0x518)],{}),(0x0,g['jsx'])(_e,{}),(0x0,g[_0x4f0b4d(0x40a)])(n[_0x4f0b4d(0x317)],{}),(0x0,g[_0x4f0b4d(0x186)])(_0x4f0b4d(0x378),{'children':[(0x0,g[_0x4f0b4d(0x40a)])(n[_0x4f0b4d(0x298)],{'title':_0xe8b6fc['t'](_0x4f0b4d(0x2fa))}),(0x0,g['jsx'])(f['Input'],{'disabled':!0x0,'value':_0x16e109}),(0x0,g[_0x4f0b4d(0x40a)])(f[_0x4f0b4d(0x123)],{'className':'univer-mt-2\x20univer-w-full','onClick':_0x5ecdac,'children':_0xe8b6fc['t'](_0x4f0b4d(0x1c7))})]})]})}):(0x0,g[_0x4f0b4d(0x40a)])(n[_0x4f0b4d(0x121)],{'id':'dashboard-chart-style','label':_0xe8b6fc['t'](_0x4f0b4d(0x14a)),'children':(0x0,g[_0x4f0b4d(0x40a)])(ve,{})})]})});}function Se(_0x5d9fdd){const _0x1ca5c9=_0x5ed5a2;return _0x1ca5c9(0x28a)+_0x5d9fdd;}const Ce=[_0x5ed5a2(0x459),_0x5ed5a2(0x21c),'percent',_0x5ed5a2(0x3ee),_0x5ed5a2(0x384),'compact'];function we({base:_0x37615a,onChange:_0x36877c,onSelectBackgroundImage:_0x37764b,widget:_0x1ef9c7}){const _0xae9fd8=_0x5ed5a2;var _0x2bd1db;let _0x184e9d=(0x0,m[_0xae9fd8(0x354)])(a[_0xae9fd8(0x331)]),_0x59aa2d=(0x0,m[_0xae9fd8(0x354)])(a['ThemeService']),_0x50180e=(0x0,m[_0xae9fd8(0x4e3)])(()=>_0x59aa2d[_0xae9fd8(0x278)],_0x59aa2d[_0xae9fd8(0x24d)](),!0x1,[_0x59aa2d]),_0x78e0a4=(0x0,m[_0xae9fd8(0x4e3)])(()=>_0x59aa2d[_0xae9fd8(0x3ed)],_0x59aa2d[_0xae9fd8(0x409)],!0x1,[_0x59aa2d]),[_0x178a42,_0x1552be]=(0x0,h[_0xae9fd8(0x541)])(_0xae9fd8(0x3a7)),[_0x3f7702,_0x122b44]=(0x0,h[_0xae9fd8(0x541)])(!0x1),_0x4963d9=k(_0x1ef9c7),_0x4090aa=_0x37615a[_0xae9fd8(0x2c2)]()[_0xae9fd8(0x308)][_0x1ef9c7['tableId']],_0xddbcf2=_0x4090aa==null?void 0x0:_0x4090aa[_0xae9fd8(0x1b7)][_0xae9fd8(0x485)](_0x3eef09=>_0x4090aa['views'][_0x3eef09]),_0x1203d9=_0xddbcf2?_0x4090aa==null?void 0x0:_0x4090aa[_0xae9fd8(0x3a5)][_0xddbcf2]:void 0x0,_0x525403=_0x4090aa&&_0x1203d9?(0x0,t[_0xae9fd8(0x34c)])(_0x37615a[_0xae9fd8(0x2c2)](),_0x4090aa,_0x1203d9)[_0xae9fd8(0x51d)](_0x4fe9e4=>({..._0x4fe9e4,'current':!0x1})):[],_0x152398=((_0x2bd1db=_0x1ef9c7[_0xae9fd8(0x152)]['formulaBinding'])==null?void 0x0:_0x2bd1db[_0xae9fd8(0x14c)])??'',_0x4747b2=_0x40e7be=>_0x36877c(A(_0x1ef9c7,_0x40e7be))[_0xae9fd8(0x26e)](()=>void 0x0),_0x599ecb=_0x462395=>_0x36877c({..._0x1ef9c7,'description':_0x462395})[_0xae9fd8(0x26e)](()=>void 0x0);return(0x0,g[_0xae9fd8(0x186)])(_0xae9fd8(0x378),{'data-dashboard-formula-inspector':!0x0,'className':_0xae9fd8(0x201),'children':[(0x0,g['jsx'])(f['Segmented'],{'className':_0xae9fd8(0x312),'items':[{'value':_0xae9fd8(0x3a7),'label':_0x184e9d['t'](_0xae9fd8(0x24e))},{'value':_0xae9fd8(0x3b4),'label':_0x184e9d['t']('bases-dashboard-ui.dashboardInspector.style')}],'value':_0x178a42,'onChange':_0x1552be}),(0x0,g[_0xae9fd8(0x40a)])(_0xae9fd8(0x378),{'className':_0xae9fd8(0x16c),'children':_0x178a42===_0xae9fd8(0x3a7)?(0x0,g[_0xae9fd8(0x186)])(_0xae9fd8(0x378),{'className':_0xae9fd8(0x356),'children':[(0x0,g[_0xae9fd8(0x40a)])(J,{'label':_0x184e9d['t']('bases-dashboard-ui.dashboardInspector.description'),'children':(0x0,g[_0xae9fd8(0x40a)])(f['Input'],{'value':_0x1ef9c7['description']??_0x1ef9c7['title']??'','onChange':_0x599ecb,'onBlur':_0x2cd778=>_0x599ecb(_0x2cd778[_0xae9fd8(0x33b)][_0xae9fd8(0x2a2)])})}),(0x0,g[_0xae9fd8(0x40a)])(J,{'label':_0x184e9d['t']('bases-dashboard-ui.dashboardInspector.dataSource'),'children':(0x0,g[_0xae9fd8(0x40a)])(f[_0xae9fd8(0x345)],{'disabled':!0x0,'value':(_0x4090aa==null?void 0x0:_0x4090aa['name'])??_0x184e9d['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})}),(0x0,g[_0xae9fd8(0x186)])(J,{'label':_0x184e9d['t'](_0xae9fd8(0x4b1)),'children':[(0x0,g[_0xae9fd8(0x40a)])(f[_0xae9fd8(0x345)],{'disabled':!0x0,'value':(0x0,t[_0xae9fd8(0x432)])(_0x152398,_0x525403)}),(0x0,g[_0xae9fd8(0x40a)])(f[_0xae9fd8(0x123)],{'className':_0xae9fd8(0x481),'onClick':()=>_0x122b44(!0x0),'children':_0x184e9d['t'](_0xae9fd8(0x27e))})]})]}):(0x0,g[_0xae9fd8(0x186)])(_0xae9fd8(0x378),{'className':'univer-grid\x20univer-gap-4','children':[(0x0,g['jsx'])(n[_0xae9fd8(0x437)],{'emptyLabel':_0x184e9d['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x184e9d['t'](_0xae9fd8(0x47c)),'pickerFallbackValue':_0x78e0a4?_0x50180e['gray'][0x384]:_0x50180e[_0xae9fd8(0x17c)][0x0],'resetLabel':_0x184e9d['t'](_0xae9fd8(0x258)),'value':_0x4963d9[_0xae9fd8(0x277)]??null,'onChange':_0x5de8a5=>_0x4747b2({'backgroundColor':_0x5de8a5??void 0x0})}),(0x0,g['jsxs'])(J,{'label':_0x184e9d['t'](_0xae9fd8(0x42b)),'children':[(0x0,g[_0xae9fd8(0x186)])(_0xae9fd8(0x378),{'className':_0xae9fd8(0x391),'children':[(0x0,g[_0xae9fd8(0x186)])(f['Button'],{'className':_0xae9fd8(0x462),'onClick':()=>{const _0x26d8ae=_0xae9fd8;_0x37764b()[_0x26d8ae(0x52a)](_0x30cfd5=>{const _0x4f9a54=_0x26d8ae;if(_0x30cfd5){var _0x4b70f1;return _0x4747b2({'backgroundImage':{..._0x30cfd5,'fit':((_0x4b70f1=_0x4963d9[_0x4f9a54(0x153)])==null?void 0x0:_0x4b70f1[_0x4f9a54(0x16d)])??_0x4f9a54(0x423)}});}})['catch'](()=>void 0x0);},'children':[(0x0,g[_0xae9fd8(0x40a)])(s[_0xae9fd8(0x538)],{}),_0x4963d9[_0xae9fd8(0x153)]?_0x184e9d['t'](_0xae9fd8(0x516)):_0x184e9d['t'](_0xae9fd8(0x39e))]}),_0x4963d9[_0xae9fd8(0x153)]&&(0x0,g[_0xae9fd8(0x40a)])(f['Button'],{'aria-label':_0x184e9d['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x184e9d['t'](_0xae9fd8(0x2c9)),'onClick':()=>_0x4747b2({'backgroundImage':void 0x0}),'children':(0x0,g['jsx'])(s[_0xae9fd8(0x23f)],{})})]}),_0x4963d9['backgroundImage']&&(0x0,g['jsx'])(f[_0xae9fd8(0x505)],{'className':_0xae9fd8(0x30e),'items':[{'value':_0xae9fd8(0x423),'label':_0x184e9d['t'](_0xae9fd8(0x212))},{'value':_0xae9fd8(0x14f),'label':_0x184e9d['t'](_0xae9fd8(0x2ed))}],'value':_0x4963d9[_0xae9fd8(0x153)][_0xae9fd8(0x16d)],'onChange':_0x40cf86=>_0x4747b2({'backgroundImage':_0x4963d9['backgroundImage']?{..._0x4963d9['backgroundImage'],'fit':_0x40cf86}:void 0x0})})]}),(0x0,g[_0xae9fd8(0x40a)])(n[_0xae9fd8(0x437)],{'emptyLabel':_0x184e9d['t'](_0xae9fd8(0x149)),'label':_0x184e9d['t'](_0xae9fd8(0x149)),'pickerFallbackValue':_0x78e0a4?_0x50180e[_0xae9fd8(0x17c)][0x32]:_0x50180e['gray'][0x3e8],'resetLabel':_0x184e9d['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x4963d9['textColor']??null,'onChange':_0x2456d7=>_0x4747b2({'textColor':_0x2456d7??void 0x0})}),(0x0,g[_0xae9fd8(0x40a)])(J,{'label':_0x184e9d['t'](_0xae9fd8(0x31f)),'children':(0x0,g[_0xae9fd8(0x40a)])(f[_0xae9fd8(0x505)],{'items':[{'value':'left','label':_0x184e9d['t'](_0xae9fd8(0x2ae))},{'value':_0xae9fd8(0x166),'label':_0x184e9d['t'](_0xae9fd8(0x47a))},{'value':'right','label':_0x184e9d['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x4963d9[_0xae9fd8(0x4bf)],'onChange':_0x615f37=>_0x4747b2({'alignment':_0x615f37})})}),(0x0,g['jsxs'])(J,{'label':_0x184e9d['t']('bases-dashboard-ui.dashboardInspector.textSize'),'children':[(0x0,g[_0xae9fd8(0x40a)])(f[_0xae9fd8(0x505)],{'items':[{'value':_0xae9fd8(0x547),'label':_0x184e9d['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':_0xae9fd8(0x4c6),'label':_0x184e9d['t'](_0xae9fd8(0x211))}],'value':_0x4963d9[_0xae9fd8(0x520)],'onChange':_0x2ff489=>_0x4747b2({'fontSizeMode':_0x2ff489})}),_0x4963d9[_0xae9fd8(0x520)]==='custom'&&(0x0,g[_0xae9fd8(0x40a)])(f['InputNumber'],{'className':_0xae9fd8(0x30e),'min':0xc,'max':0x78,'value':_0x4963d9[_0xae9fd8(0x2fd)],'onChange':_0x4b9b3c=>_0x4747b2({'fontSize':_0x4b9b3c??0x28,'fontSizeMode':'custom'})})]}),(0x0,g[_0xae9fd8(0x40a)])(J,{'label':_0x184e9d['t'](_0xae9fd8(0x202)),'children':(0x0,g[_0xae9fd8(0x40a)])(G,{'value':_0x4963d9[_0xae9fd8(0x1e5)],'options':[{'value':'general','label':_0x184e9d['t'](_0xae9fd8(0x2b5))},{'value':'number','label':_0x184e9d['t'](_0xae9fd8(0x187))},{'value':_0xae9fd8(0x4f6),'label':_0x184e9d['t'](_0xae9fd8(0x281))},{'value':'currency','label':_0x184e9d['t']('bases-dashboard-ui.dashboardInspector.currency')},{'value':'grouped','label':_0x184e9d['t'](_0xae9fd8(0x29d))},{'value':_0xae9fd8(0x1ce),'label':_0x184e9d['t'](_0xae9fd8(0x26f))}],'onChange':_0x1c78d8=>{const _0x27f7c1=_0xae9fd8;let _0x433338=Ce[_0x27f7c1(0x485)](_0x2e4251=>_0x2e4251===_0x1c78d8);_0x433338&&_0x4747b2({'numberFormat':_0x433338});}})}),_0x4963d9[_0xae9fd8(0x1e5)]===_0xae9fd8(0x3ee)&&(0x0,g['jsx'])(J,{'label':_0x184e9d['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':(0x0,g[_0xae9fd8(0x40a)])(f[_0xae9fd8(0x345)],{'value':_0x4963d9[_0xae9fd8(0x3ee)],'onChange':_0x53069c=>_0x4747b2({'currency':_0x53069c[_0xae9fd8(0x230)](0x0,0x3)[_0xae9fd8(0x552)]()})})}),_0x4963d9[_0xae9fd8(0x1e5)]!==_0xae9fd8(0x459)&&(0x0,g['jsx'])(J,{'label':_0x184e9d['t'](_0xae9fd8(0x14e)),'children':(0x0,g[_0xae9fd8(0x40a)])(f[_0xae9fd8(0x19a)],{'min':0x0,'max':0x8,'value':_0x4963d9[_0xae9fd8(0x3a9)],'onChange':_0x503f74=>_0x4747b2({'decimalPlaces':_0x503f74??0x0})})})]})}),_0x3f7702&&(0x0,g['jsx'])(fe,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':(0x0,g[_0xae9fd8(0x40a)])(t['MobileFormulaEditorPanel'],{'tables':_0x525403,'formula':(0x0,t['formulaToEditorFormula'])(_0x152398,_0x525403),'onCancel':()=>_0x122b44(!0x1),'onSave':_0x3b067b=>{const _0x1a7c14=_0xae9fd8;let _0x5ca915=_0x1ef9c7[_0x1a7c14(0x152)][_0x1a7c14(0x3c8)]??{'formula':''};return _0x36877c({..._0x1ef9c7,'shapeData':{..._0x1ef9c7[_0x1a7c14(0x152)],'formulaBinding':{..._0x5ca915,'formula':(0x0,t[_0x1a7c14(0x43c)])(_0x3b067b,_0x525403)}}})[_0x1a7c14(0x52a)](()=>_0x122b44(!0x1))['catch'](()=>void 0x0);}})})]});}function J({children:_0x319587,label:_0x5891b2}){const _0x4689d3=_0x5ed5a2;return(0x0,g['jsxs'])(_0x4689d3(0x378),{'role':_0x4689d3(0x196),'aria-label':_0x5891b2,'className':_0x4689d3(0x3a8),'children':[(0x0,g[_0x4689d3(0x40a)])(_0x4689d3(0x4ba),{'children':_0x5891b2}),_0x319587]});}function Te({disabled:_0x3eaceb,fields:_0x44f14e,filter:_0x14e9c8,onChange:_0x4afb06}){const _0x3e7f78=_0x5ed5a2;let _0x322050=(0x0,m[_0x3e7f78(0x354)])(m[_0x3e7f78(0x162)])[_0x3e7f78(0x195)]??null,[_0x408bcf,_0x50566b]=(0x0,h['useState'])(null),_0x5d3c2c=(0x0,m[_0x3e7f78(0x354)])(a[_0x3e7f78(0x331)]),_0x231fdf=(_0x14e9c8==null?void 0x0:_0x14e9c8[_0x3e7f78(0x1bd)])??[];if(!_0x231fdf['length'])return(0x0,g[_0x3e7f78(0x186)])(_0x3e7f78(0x378),{'className':'univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','children':[(0x0,g['jsx'])(s[_0x3e7f78(0x44e)],{'className':_0x3e7f78(0x452)}),(0x0,g['jsx'])(_0x3e7f78(0x4ba),{'className':_0x3e7f78(0x265),'children':_0x5d3c2c['t'](_0x3e7f78(0x4e2))})]});let _0x5a1466=_0x408bcf==null?void 0x0:_0x231fdf[_0x408bcf],_0x15c659=_0x44f14e[_0x3e7f78(0x485)](_0x1df12d=>_0x1df12d['id']===(_0x5a1466==null?void 0x0:_0x5a1466[_0x3e7f78(0x364)]));return(0x0,g[_0x3e7f78(0x186)])('div',{'className':_0x3e7f78(0x269),'children':[_0x231fdf[_0x3e7f78(0x51d)]((_0x17c398,_0x323e7c)=>{const _0x4f94ff=_0x3e7f78;var _0x1a9902;return(0x0,g[_0x4f94ff(0x186)])(f[_0x4f94ff(0x123)],{'disabled':_0x3eaceb,'onClick':()=>_0x50566b(_0x323e7c),'children':[(0x0,g[_0x4f94ff(0x40a)])(_0x4f94ff(0x4ba),{'children':((_0x1a9902=_0x44f14e[_0x4f94ff(0x485)](_0x816362=>_0x816362['id']===_0x17c398[_0x4f94ff(0x364)]))==null?void 0x0:_0x1a9902['name'])??_0x17c398['fieldId']}),(0x0,g['jsx'])(_0x4f94ff(0x4ba),{'className':_0x4f94ff(0x126),'children':String(_0x17c398[_0x4f94ff(0x45f)]??'')})]},_0x17c398['fieldId']+'-'+_0x323e7c);}),_0x15c659&&_0x5a1466&&_0x408bcf!=null&&_0x322050&&(0x0,v[_0x3e7f78(0x4a6)])((0x0,g[_0x3e7f78(0x40a)])(t[_0x3e7f78(0x3ec)],{'field':_0x15c659,'value':_0x5a1466[_0x3e7f78(0x45f)],'onClose':()=>_0x50566b(null),'onSave':_0xefbbb2=>{const _0x19b796=_0x3e7f78;_0x4afb06({'conjunction':(_0x14e9c8==null?void 0x0:_0x14e9c8[_0x19b796(0x4ea)])??a['BaseFilterConjunction']['AND'],'conditions':_0x231fdf[_0x19b796(0x51d)]((_0x405779,_0x8768a4)=>_0x8768a4===_0x408bcf?{..._0x405779,'operand':_0xefbbb2}:_0x405779)}),_0x50566b(null);}}),_0x322050)]});}function Ee({fields:_0x3ffc9f,filter:_0x24642e,onChange:_0x9ec5,onClear:_0x520ce9}){const _0x560a1e=_0x5ed5a2;let _0x23da6e=(0x0,m[_0x560a1e(0x354)])(a[_0x560a1e(0x331)]);return(0x0,g[_0x560a1e(0x186)])(_0x560a1e(0x378),{'children':[(0x0,g[_0x560a1e(0x40a)])(t[_0x560a1e(0x293)],{'fields':_0x3ffc9f,'value':_0x24642e??{'conjunction':a[_0x560a1e(0x4c4)][_0x560a1e(0x2b0)],'conditions':[]},'onChange':_0x9ec5}),(0x0,g['jsx'])(f[_0x560a1e(0x123)],{'onClick':_0x520ce9,'children':_0x23da6e['t'](_0x560a1e(0x258))})]});}function De({base:_0x2fdd96,chartRuntime:_0x33013a,onChange:_0x2941a6,onClose:_0x3b9989,onSelectBackgroundImage:_0xfd2d7a,onSelectImage:_0x408ef1,unitId:_0x40903e,widget:_0x5cee28}){const _0x2fa873=_0x5ed5a2;let _0x2db907=(0x0,m[_0x2fa873(0x354)])(a['ICommandService']),_0x26eca1=(0x0,m[_0x2fa873(0x354)])(a[_0x2fa873(0x331)]),_0x2c8357=_0x2fdd96[_0x2fa873(0x2c2)](),_0xd403de=_0x2fa873(0x326)in _0x5cee28?_0x2c8357['tables'][_0x5cee28[_0x2fa873(0x326)]]:void 0x0,_0xc685d9=_0x5cee28['type']===e['BaseDashboardWidgetType'][_0x2fa873(0x237)]?_0xd403de==null?void 0x0:_0xd403de[_0x2fa873(0x3a5)][_0x5cee28[_0x2fa873(0x2b4)]]:void 0x0,_0x2e3603=_0x26eca1['t'](Pe(_0x5cee28)),_0x442980=(0x0,g[_0x2fa873(0x186)])(_0x2fa873(0x544),{'data-dashboard-inspector':!0x0,'className':_0x2fa873(0x29c),'children':[_0x5cee28[_0x2fa873(0x436)]===e[_0x2fa873(0x311)][_0x2fa873(0x237)]&&(Ne(_0xc685d9)&&_0x33013a?(0x0,g[_0x2fa873(0x40a)])(xe,{'runtime':_0x33013a,'sourceChart':_0xc685d9[_0x2fa873(0x489)][_0x2fa873(0x43a)],'sourceName':((_0xd403de==null?void 0x0:_0xd403de[_0x2fa873(0x416)])??'')+_0x2fa873(0x2da)+_0xc685d9['name'],'widget':_0x5cee28,'onChange':_0x2941a6,'onEditData':()=>{const _0x365f97=_0x2fa873;_0x2db907['executeCommand'](t[_0x365f97(0x3c4)]['id'],{'unitId':_0x40903e,'tableId':_0x5cee28['tableId'],'viewId':_0x5cee28['pivotViewId']})[_0x365f97(0x26e)](()=>void 0x0);}}):(0x0,g[_0x2fa873(0x40a)])(je,{'message':Ne(_0xc685d9)?_0x26eca1['t'](_0x2fa873(0x18e)):_0x26eca1['t'](_0x2fa873(0x2a6))})),_0x5cee28[_0x2fa873(0x436)]===e['BaseDashboardWidgetType']['FormulaShape']&&(0x0,g[_0x2fa873(0x40a)])(we,{'base':_0x2fdd96,'widget':_0x5cee28,'onChange':_0x2941a6,'onSelectBackgroundImage':_0xfd2d7a}),_0x5cee28[_0x2fa873(0x436)]===e[_0x2fa873(0x311)][_0x2fa873(0x4cb)]&&(0x0,g['jsx'])(ke,{'base':_0x2fdd96,'onChange':_0x2941a6,'widget':_0x5cee28}),_0x5cee28[_0x2fa873(0x436)]===e[_0x2fa873(0x311)][_0x2fa873(0x52b)]&&(0x0,g['jsx'])(Ae,{'onChange':_0x2941a6,'widget':_0x5cee28}),_0x5cee28[_0x2fa873(0x436)]===e[_0x2fa873(0x311)]['Image']&&(0x0,g[_0x2fa873(0x40a)])(Oe,{'onChange':_0x2941a6,'onSelectImage':_0x408ef1,'widget':_0x5cee28})]});return(0x0,g[_0x2fa873(0x40a)])(t[_0x2fa873(0x362)],{'title':_0x2e3603,'onClose':_0x3b9989,'children':_0x442980});}function Oe({onChange:_0x1ecf55,onSelectImage:_0x22a277,widget:_0x43666d}){const _0x25a912=_0x5ed5a2;let _0xd46556=(0x0,m[_0x25a912(0x354)])(a[_0x25a912(0x331)]);return(0x0,g[_0x25a912(0x186)])('div',{'className':_0x25a912(0x539),'children':[(0x0,g[_0x25a912(0x186)])(f[_0x25a912(0x123)],{'className':'univer-w-full','onClick':()=>_0x22a277()[_0x25a912(0x52a)](_0x18b2b7=>_0x18b2b7&&_0x1ecf55({..._0x43666d,'source':_0x18b2b7[_0x25a912(0x321)],'sourceType':_0x18b2b7[_0x25a912(0x38e)],'alt':_0x18b2b7[_0x25a912(0x416)]}))[_0x25a912(0x26e)](()=>void 0x0),'children':[(0x0,g[_0x25a912(0x40a)])(s[_0x25a912(0x538)],{}),_0xd46556['t'](_0x25a912(0x516))]}),(0x0,g[_0x25a912(0x186)])(_0x25a912(0x369),{'className':_0x25a912(0x3a8),'children':[(0x0,g[_0x25a912(0x40a)])(_0x25a912(0x4ba),{'children':_0xd46556['t'](_0x25a912(0x42b))}),(0x0,g[_0x25a912(0x40a)])(f[_0x25a912(0x505)],{'items':[{'value':_0x25a912(0x423),'label':_0xd46556['t'](_0x25a912(0x212))},{'value':_0x25a912(0x515),'label':_0xd46556['t'](_0x25a912(0x1b8))},{'value':_0x25a912(0x35f),'label':_0xd46556['t'](_0x25a912(0x2e8))}],'value':_0x43666d[_0x25a912(0x233)]??'cover','onChange':_0xe86d1c=>_0x1ecf55({..._0x43666d,'displayMode':_0xe86d1c})[_0x25a912(0x26e)](()=>void 0x0)})]})]});}function ke({base:_0x409712,onChange:_0x51b37f,widget:_0x4042fb}){const _0x445934=_0x5ed5a2;let _0x41cbf7=_0x409712['getSnapshot']()[_0x445934(0x308)][_0x4042fb[_0x445934(0x326)]],_0x59d937=_0x41cbf7==null?void 0x0:_0x41cbf7[_0x445934(0x1b7)][_0x445934(0x485)](_0x383385=>_0x41cbf7[_0x445934(0x3a5)][_0x383385]),_0x3472ef=_0x59d937?_0x41cbf7==null?void 0x0:_0x41cbf7['views'][_0x59d937]:void 0x0,_0xd106dd=_0x41cbf7&&_0x3472ef?(0x0,t[_0x445934(0x1b1)])(_0x41cbf7,_0x3472ef):[];return(0x0,g['jsx'])(Ee,{'fields':_0xd106dd,'filter':_0x4042fb[_0x445934(0x2ac)],'onChange':_0xbc9e2=>_0x51b37f({..._0x4042fb,'filter':_0xbc9e2})[_0x445934(0x26e)](()=>void 0x0),'onClear':()=>_0x51b37f({..._0x4042fb,'filter':null})[_0x445934(0x26e)](()=>void 0x0)});}function Ae({onChange:_0xf6f9f3,widget:_0x3c5c2b}){const _0x4098e6=_0x5ed5a2;let _0x52dd52=(0x0,m[_0x4098e6(0x354)])(a[_0x4098e6(0x331)]),_0xb5c5a4=(0x0,m[_0x4098e6(0x354)])(a[_0x4098e6(0x4e5)]),_0x179e23=(0x0,m['useObservable'])(()=>_0xb5c5a4['currentTheme$'],_0xb5c5a4[_0x4098e6(0x24d)](),!0x1,[_0xb5c5a4]),_0x4ed4d0=oe(_0x3c5c2b),_0xf80b19=_0x1f0598=>_0xf6f9f3({..._0x3c5c2b,'appearance':{..._0x4ed4d0,..._0x1f0598}})['catch'](()=>void 0x0);return(0x0,g[_0x4098e6(0x186)])(_0x4098e6(0x378),{'className':_0x4098e6(0x174),'children':[(0x0,g[_0x4098e6(0x40a)])(f['Textarea'],{'className':'univer-max-h-40\x20univer-text-base','defaultValue':U(_0x3c5c2b['document']),'rows':0x8,'onBlur':_0x519579=>_0xf6f9f3({..._0x3c5c2b,'document':se(_0x3c5c2b[_0x4098e6(0x183)],_0x519579[_0x4098e6(0x33b)][_0x4098e6(0x2a2)])})['catch'](()=>void 0x0)}),(0x0,g[_0x4098e6(0x40a)])(n['ChartColorField'],{'emptyLabel':_0x52dd52['t'](_0x4098e6(0x47c)),'label':_0x52dd52['t'](_0x4098e6(0x47c)),'pickerFallbackValue':_0x179e23[_0x4098e6(0x17c)][0x0],'resetLabel':_0x52dd52['t'](_0x4098e6(0x258)),'value':_0x4ed4d0[_0x4098e6(0x277)]??null,'onChange':_0x40d046=>_0xf80b19({'backgroundColor':_0x40d046??void 0x0})}),(0x0,g[_0x4098e6(0x40a)])(n['ChartColorField'],{'emptyLabel':_0x52dd52['t'](_0x4098e6(0x149)),'label':_0x52dd52['t'](_0x4098e6(0x149)),'pickerFallbackValue':_0x179e23[_0x4098e6(0x17c)][0x3e8],'resetLabel':_0x52dd52['t'](_0x4098e6(0x258)),'value':_0x4ed4d0[_0x4098e6(0x216)]??null,'onChange':_0x48be5e=>_0xf80b19({'textColor':_0x48be5e??void 0x0})}),(0x0,g[_0x4098e6(0x40a)])(Me,{'label':_0x52dd52['t'](_0x4098e6(0x31f)),'children':(0x0,g['jsx'])(f[_0x4098e6(0x505)],{'items':[{'value':_0x4098e6(0x40f),'label':_0x52dd52['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':_0x4098e6(0x166),'label':_0x52dd52['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0x4098e6(0x27f),'label':_0x52dd52['t'](_0x4098e6(0x20f))}],'value':_0x4ed4d0[_0x4098e6(0x4bf)],'onChange':_0x309ea4=>_0xf80b19({'alignment':_0x309ea4})})}),(0x0,g[_0x4098e6(0x186)])(Me,{'label':_0x52dd52['t'](_0x4098e6(0x360)),'children':[(0x0,g[_0x4098e6(0x40a)])(f['Segmented'],{'items':[{'value':_0x4098e6(0x547),'label':_0x52dd52['t'](_0x4098e6(0x52d))},{'value':_0x4098e6(0x4c6),'label':_0x52dd52['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x4ed4d0[_0x4098e6(0x520)],'onChange':_0x2f28cb=>_0xf80b19({'fontSizeMode':_0x2f28cb})}),_0x4ed4d0[_0x4098e6(0x520)]===_0x4098e6(0x4c6)&&(0x0,g[_0x4098e6(0x40a)])(f[_0x4098e6(0x19a)],{'className':_0x4098e6(0x30e),'min':0xa,'max':0x78,'value':_0x4ed4d0[_0x4098e6(0x2fd)],'onChange':_0x133400=>_0xf80b19({'fontSize':_0x133400??0x12,'fontSizeMode':_0x4098e6(0x4c6)})})]})]});}function je({message:_0x4b310f}){const _0x4299a4=_0x5ed5a2;return(0x0,g['jsx'])(_0x4299a4(0x378),{'className':'univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','children':_0x4b310f});}function Me({children:_0x422038,label:_0x261e2c}){const _0x286cd9=_0x5ed5a2;return(0x0,g['jsxs'])(_0x286cd9(0x378),{'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':[(0x0,g[_0x286cd9(0x40a)])(_0x286cd9(0x4ba),{'children':_0x261e2c}),_0x422038]});}function Ne(_0xf1202a){const _0x737fc8=_0x5ed5a2;return(_0xf1202a==null?void 0x0:_0xf1202a[_0x737fc8(0x436)])===a['BaseViewType'][_0x737fc8(0x1f7)]&&typeof _0xf1202a[_0x737fc8(0x489)]==_0x737fc8(0x335)&&_0xf1202a[_0x737fc8(0x489)]!==null&&_0x737fc8(0x264)in _0xf1202a[_0x737fc8(0x489)]&&_0x737fc8(0x43a)in _0xf1202a['config'];}function Pe(_0x347fba){const _0x49534b=_0x5ed5a2;switch(_0x347fba[_0x49534b(0x436)]){case e[_0x49534b(0x311)][_0x49534b(0x237)]:return _0x49534b(0x2aa);case e[_0x49534b(0x311)][_0x49534b(0x4cb)]:return _0x49534b(0x4e2);case e[_0x49534b(0x311)][_0x49534b(0x52b)]:return'bases-dashboard-ui.dashboard.text';case e[_0x49534b(0x311)][_0x49534b(0x192)]:return _0x49534b(0x54c);case e[_0x49534b(0x311)]['FormulaShape']:return _0x49534b(0x467);}}function Fe({onDelete:_0x231699,onEdit:_0x397833,onMoveUp:_0x39a2ac,onMoveDown:_0x5d925f}){const _0x390c20=_0x5ed5a2;let [_0x8155f9,_0x2aa49e]=(0x0,h[_0x390c20(0x541)])(!0x1),_0x48d3eb=(0x0,m[_0x390c20(0x354)])(a[_0x390c20(0x331)]),_0x43fe96=_0x48d3eb['t'](_0x390c20(0x285)),_0x324571=_0x48d3eb['t'](_0x390c20(0x477)),_0xb45d5e=_0x48d3eb['t'](_0x390c20(0x3fd)),_0x5f8cd8=[{'type':'item','children':(0x0,g['jsxs'])(_0x390c20(0x4ba),{'className':_0x390c20(0x408),'children':[(0x0,g[_0x390c20(0x40a)])(s[_0x390c20(0x2e3)],{'className':_0x390c20(0x4ed),'aria-hidden':'true'}),(0x0,g[_0x390c20(0x40a)])(_0x390c20(0x4ba),{'children':_0x43fe96})]}),'onSelect':_0x397833},..._0x39a2ac?[{'type':'item','children':(0x0,g[_0x390c20(0x186)])(_0x390c20(0x4ba),{'className':_0x390c20(0x408),'children':[(0x0,g[_0x390c20(0x40a)])(s[_0x390c20(0x38a)],{'className':_0x390c20(0x4ed),'aria-hidden':_0x390c20(0x556)}),(0x0,g['jsx'])(_0x390c20(0x4ba),{'children':_0x48d3eb['t']('bases-dashboard-ui.mobile.moveUp')})]}),'onSelect':_0x39a2ac}]:[],..._0x5d925f?[{'type':_0x390c20(0x3d9),'children':(0x0,g[_0x390c20(0x186)])(_0x390c20(0x4ba),{'className':_0x390c20(0x408),'children':[(0x0,g['jsx'])(s[_0x390c20(0x267)],{'className':_0x390c20(0x4ed),'aria-hidden':_0x390c20(0x556)}),(0x0,g[_0x390c20(0x40a)])(_0x390c20(0x4ba),{'children':_0x48d3eb['t']('bases-dashboard-ui.mobile.moveDown')})]}),'onSelect':_0x5d925f}]:[],{'type':_0x390c20(0x4bd)},{'type':'item','variant':_0x390c20(0x422),'children':(0x0,g[_0x390c20(0x186)])(_0x390c20(0x4ba),{'className':_0x390c20(0x408),'children':[(0x0,g[_0x390c20(0x40a)])(s[_0x390c20(0x23f)],{'className':_0x390c20(0x4ed),'aria-hidden':_0x390c20(0x556)}),(0x0,g[_0x390c20(0x40a)])(_0x390c20(0x4ba),{'children':_0x324571})]}),'onSelect':_0x231699}];return(0x0,g[_0x390c20(0x40a)])(f[_0x390c20(0x4d0)],{'open':_0x8155f9,'onOpenChange':_0x2aa49e,'align':_0x390c20(0x1b6),'sideOffset':0x4,'items':_0x5f8cd8['map'](_0x3251dd=>({..._0x3251dd,'className':_0x3251dd['type']===_0x390c20(0x3d9)?_0x390c20(0x241):void 0x0})),'children':(0x0,g[_0x390c20(0x40a)])(f[_0x390c20(0x123)],{'type':_0x390c20(0x304),'size':_0x390c20(0x43b),'variant':_0x390c20(0x1d3),'onPointerDown':_0x49de6f=>_0x49de6f[_0x390c20(0x48a)](),'onClick':()=>_0x2aa49e(_0x4a936d=>!_0x4a936d),'title':_0xb45d5e,'aria-label':_0xb45d5e,'className':_0x390c20(0x155),'children':(0x0,g[_0x390c20(0x40a)])(s[_0x390c20(0x135)],{'className':'univer-size-4','aria-hidden':_0x390c20(0x556)})})});}function Ie({dashboardId:_0x4b0a65,presentation:_0x11f793=!0x1,unitId:_0x4a758f}){const _0x2d6520=_0x5ed5a2;let _0x25d4e2=(0x0,m[_0x2d6520(0x354)])(a[_0x2d6520(0x47b)]),_0x5383a6=(0x0,m['useDependency'])(a['ObjectPermissionService']);(0x0,m[_0x2d6520(0x4e3)])(_0x5383a6[_0x2d6520(0x542)],0x0);let _0x1c4f32=(0x0,m['useDependency'])(a[_0x2d6520(0x1ac)]),_0x7f164e=(0x0,m[_0x2d6520(0x354)])(u[_0x2d6520(0x26b)]),_0x1ba588=(0x0,m[_0x2d6520(0x354)])(a[_0x2d6520(0x553)]),_0x6850f1=(0x0,m[_0x2d6520(0x354)])(a[_0x2d6520(0x3b0)]),_0x26c0c7=(0x0,m['useDependency'])(a[_0x2d6520(0x331)]),_0x26156c=(0x0,m[_0x2d6520(0x354)])(e[_0x2d6520(0x3e3)]),_0x1d1b3b=(0x0,m[_0x2d6520(0x354)])(a[_0x2d6520(0x35b)]),[_0x2ca7c4,_0x48519b]=(0x0,h['useState'])(!0x1),[_0x53187e,_0x547ba8]=(0x0,h[_0x2d6520(0x541)])(),[_0x68c297,_0x2d8429]=(0x0,h[_0x2d6520(0x541)])(!0x1),[_0x3ca92c,_0x3899b5]=(0x0,h[_0x2d6520(0x541)])(()=>new Map()),_0x4567cf=(0x0,h['useCallback'])((_0x58365a,_0x2e99ed)=>{_0x3899b5(_0x5eb90f=>{const _0xa8c91d=_0x46f3;let _0x3a117f=new Map(_0x5eb90f);return _0x2e99ed?_0x3a117f['set'](_0x58365a,_0x2e99ed):_0x3a117f[_0xa8c91d(0x397)](_0x58365a),_0x3a117f;});},[]),_0x37b2fc=(0x0,m[_0x2d6520(0x4e3)])(()=>_0x26156c[_0x2d6520(0x465)]['pipe']((0x0,c[_0x2d6520(0x51d)])(()=>_0x26156c['getDashboard'](_0x4a758f,_0x4b0a65))),_0x26156c[_0x2d6520(0x4d7)](_0x4a758f,_0x4b0a65),!0x1,[_0x4b0a65,_0x26156c,_0x4a758f]),_0x4fb119=_0x6850f1['getUnit'](_0x4a758f,a['UniverInstanceType'][_0x2d6520(0x15a)]),_0x5af00e=(0x0,m[_0x2d6520(0x4e3)])(()=>_0x1d1b3b[_0x2d6520(0x20a)],{'undos':0x0,'redos':0x0},!0x1,[_0x1d1b3b]),_0xa0a755=w(_0x4a758f,_0x4b0a65);if((0x0,h[_0x2d6520(0x45e)])(()=>{const _0x3691ca=_0x2d6520;_0x6850f1[_0x3691ca(0x346)](_0x4a758f),_0x6850f1[_0x3691ca(0x19d)](_0x4a758f);},[_0x6850f1,_0x4a758f]),!_0x37b2fc||!_0x4fb119)return null;let _0x42b691={'unitId':_0x4a758f,'objectId':(0x0,l[_0x2d6520(0x557)])(_0x4b0a65),'objectType':p['UnitObject'][_0x2d6520(0x4b5)]},_0x511154=(_0x396abc,_0x4f0b3d)=>{const _0x18a84c=_0x2d6520;let _0x341f6c=[..._0x37b2fc[_0x18a84c(0x44b)]],_0x2cf9df=_0x341f6c[_0x18a84c(0x468)](_0x396abc),_0x5ab479=_0x2cf9df+_0x4f0b3d;if(!(_0x2cf9df<0x0||_0x5ab479<0x0||_0x5ab479>=_0x341f6c[_0x18a84c(0x253)]))return[_0x341f6c[_0x2cf9df],_0x341f6c[_0x5ab479]]=[_0x341f6c[_0x5ab479],_0x341f6c[_0x2cf9df]],_0x1c4f32[_0x18a84c(0x3f9)](e[_0x18a84c(0x205)]['id'],{'unitId':_0x4a758f,'dashboard':{..._0x37b2fc,'widgetOrder':_0x341f6c}});},_0x2961cc=_0x2f266b=>_0x1c4f32[_0x2d6520(0x3f9)](e[_0x2d6520(0x343)]['id'],{'unitId':_0x4a758f,'dashboardId':_0x4b0a65,'widget':_0x2f266b})['catch'](()=>void 0x0),_0x2ce00c=(_0x17578a,_0x4d5da4,_0x199092)=>{const _0x5ed7d7=_0x2d6520;let _0x90b2f2=Math[_0x5ed7d7(0x464)](0x0,..._0x37b2fc['widgetOrder'][_0x5ed7d7(0x3e9)](_0x23de8d=>{const _0x1ccc04=_0x5ed7d7;var _0x30de9f;let _0x564149=(_0x30de9f=_0x37b2fc[_0x1ccc04(0x329)][_0x23de8d])==null?void 0x0:_0x30de9f[_0x1ccc04(0x18d)];return _0x564149?[_0x564149['row']+_0x564149[_0x1ccc04(0x120)]]:[];})),_0x2292c7=_0x5ed7d7(0x37c)+(0x0,a[_0x5ed7d7(0x19c)])(0x8),_0x148753={'column':0x0,'row':_0x90b2f2,'columnSpan':_0x4d5da4,'rowSpan':_0x199092};switch(_0x17578a[_0x5ed7d7(0x436)]){case e[_0x5ed7d7(0x311)]['PivotChart']:return _0x2961cc({..._0x17578a,'id':_0x2292c7,'layout':_0x148753});case e[_0x5ed7d7(0x311)][_0x5ed7d7(0x4cb)]:return _0x2961cc({..._0x17578a,'id':_0x2292c7,'layout':_0x148753});case e[_0x5ed7d7(0x311)][_0x5ed7d7(0x52b)]:return _0x2961cc({..._0x17578a,'id':_0x2292c7,'layout':_0x148753});case e[_0x5ed7d7(0x311)][_0x5ed7d7(0x192)]:return _0x2961cc({..._0x17578a,'id':_0x2292c7,'layout':_0x148753});case e['BaseDashboardWidgetType']['FormulaShape']:return _0x2961cc({..._0x17578a,'id':_0x2292c7,'layout':_0x148753});}},_0x2d796c=_0x4fb119[_0x2d6520(0x2c2)](),_0x1aaf10=_0x2d796c[_0x2d6520(0x2a4)][_0x2d6520(0x3e9)](_0x14dd61=>{const _0x8fe9a2=_0x2d6520;let _0x4f6af9=_0x2d796c[_0x8fe9a2(0x308)][_0x14dd61];if(!_0x4f6af9)return[];let _0x56f54c=_0x4f6af9[_0x8fe9a2(0x1b7)]['flatMap'](_0x20e695=>{const _0x5d7c23=_0x8fe9a2;let _0x308414=_0x4f6af9[_0x5d7c23(0x3a5)][_0x20e695];return We(_0x308414)?[{'type':_0x5d7c23(0x3d9),'children':_0x308414['name'],'onSelect':()=>_0x2ce00c({'type':e['BaseDashboardWidgetType'][_0x5d7c23(0x237)],'tableId':_0x14dd61,'pivotViewId':_0x20e695,'chart':{..._0x308414['config']['chart']}},0x6,0xa)}]:[];});return[{'type':_0x8fe9a2(0x2d3),'children':_0x4f6af9[_0x8fe9a2(0x416)],'options':[..._0x56f54c,..._0x56f54c[_0x8fe9a2(0x253)]?[{'type':'separator'}]:[],{'type':'item','children':_0x26c0c7['t']('bases-dashboard-ui.dashboard.tableFilter'),'onSelect':()=>_0x2ce00c({'type':e[_0x8fe9a2(0x311)][_0x8fe9a2(0x4cb)],'tableId':_0x14dd61,'filter':null},0x6,0x8)}]}];}),_0x13c733=[..._0x1aaf10,..._0x1aaf10[_0x2d6520(0x253)]?[{'type':_0x2d6520(0x4bd)}]:[],{'type':_0x2d6520(0x3d9),'children':_0x26c0c7['t']('bases-dashboard-ui.dashboard.text'),'onSelect':()=>_0x2ce00c({'type':e['BaseDashboardWidgetType'][_0x2d6520(0x52b)],'document':Be()},0x4,0x6)},{'type':_0x2d6520(0x3d9),'children':_0x26c0c7['t'](_0x2d6520(0x54c)),'onSelect':()=>Ve(_0x7f164e)[_0x2d6520(0x52a)](_0x405f50=>_0x405f50&&_0x2ce00c({'type':e[_0x2d6520(0x311)][_0x2d6520(0x192)],'source':_0x405f50['source'],'sourceType':_0x405f50[_0x2d6520(0x38e)],'alt':_0x405f50[_0x2d6520(0x416)],'displayMode':'cover'},0x4,0x6))},{'type':'item','children':_0x26c0c7['t'](_0x2d6520(0x467)),'onSelect':()=>{const _0x114a2a=_0x2d6520;let _0x21ba70=_0x2d796c[_0x114a2a(0x2a4)]['find'](_0x330709=>_0x2d796c[_0x114a2a(0x308)][_0x330709]);_0x21ba70&&_0x2ce00c({'type':e[_0x114a2a(0x311)][_0x114a2a(0x39d)],'tableId':_0x21ba70,'shapeType':d[_0x114a2a(0x1dd)][_0x114a2a(0x50d)],'shapeData':(0x0,i[_0x114a2a(0x3f7)])(),'description':_0x26c0c7['t'](_0x114a2a(0x467))},0x4,0x6);}}],_0x51bd8c=_0x53187e?_0x37b2fc[_0x2d6520(0x329)][_0x53187e]:void 0x0,_0x20eae2=()=>_0x2d8429(_0x1c5c07=>!_0x1c5c07),_0x1f5c56=_0x11f793||_0x68c297,_0x485512=_0xa0a755&&!_0x1f5c56;return(0x0,g[_0x2d6520(0x40a)])(ue,{'children':(0x0,g[_0x2d6520(0x186)])(_0x2d6520(0x378),{'className':_0x2d6520(0x209)+(_0x68c297?_0x2d6520(0x33a):_0x2d6520(0x35e))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':[_0x68c297&&(0x0,g[_0x2d6520(0x40a)])(f[_0x2d6520(0x123)],{'onClick':()=>_0x2d8429(!0x1),'children':_0x26c0c7['t']('bases-dashboard-ui.dashboardInspector.close')}),!_0x1f5c56&&(0x0,g[_0x2d6520(0x186)])(_0x2d6520(0x307),{'className':_0x2d6520(0x534),'children':[(0x0,g['jsx'])(s[_0x2d6520(0x4ca)],{'className':_0x2d6520(0x36a)}),(0x0,g[_0x2d6520(0x40a)])('h2',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0x37b2fc[_0x2d6520(0x416)]}),_0x5383a6[_0x2d6520(0x297)](_0x42b691)&&(0x0,g['jsx'])(f[_0x2d6520(0x123)],{'variant':'text','disabled':!_0x5383a6[_0x2d6520(0x387)](_0x42b691),'aria-label':_0x26c0c7['t'](_0x2d6520(0x4ce)),'onClick':()=>{const _0x46d1c6=_0x2d6520;(0x0,m[_0x46d1c6(0x4a0)])(_0x25d4e2,{'target':_0x42b691,'name':_0x37b2fc['name'],'commandId':l[_0x46d1c6(0x3f1)]['id'],'exists':()=>!!_0x26156c[_0x46d1c6(0x4d7)](_0x4a758f,_0x4b0a65)});},'children':(0x0,g['jsx'])(s[_0x2d6520(0x40d)],{})}),(0x0,g['jsx'])(t[_0x2d6520(0x289)],{'unitId':_0x4a758f}),(0x0,g['jsx'])(f[_0x2d6520(0x123)],{'type':_0x2d6520(0x304),'size':'small','variant':_0x2d6520(0x1d3),'aria-label':_0x26c0c7['t'](_0x2d6520(0x133)),'disabled':!_0xa0a755||_0x5af00e['undos']===0x0,'onClick':()=>_0x1c4f32[_0x2d6520(0x3f9)](a[_0x2d6520(0x3c5)]['id'])['catch'](()=>void 0x0),'children':(0x0,g[_0x2d6520(0x40a)])(s[_0x2d6520(0x54d)],{})}),(0x0,g['jsx'])(f[_0x2d6520(0x123)],{'type':_0x2d6520(0x304),'size':_0x2d6520(0x43b),'variant':'text','aria-label':_0x26c0c7['t'](_0x2d6520(0x506)),'disabled':!_0xa0a755||_0x5af00e[_0x2d6520(0x428)]===0x0,'onClick':()=>_0x1c4f32[_0x2d6520(0x3f9)](a['RedoCommand']['id'])[_0x2d6520(0x26e)](()=>void 0x0),'children':(0x0,g[_0x2d6520(0x40a)])(s[_0x2d6520(0x2d2)],{})}),(0x0,g['jsx'])(f[_0x2d6520(0x123)],{'type':'button','size':_0x2d6520(0x43b),'variant':'text','aria-label':_0x26c0c7['t'](_0x2d6520(0x2d4)),'onClick':_0x20eae2,'children':(0x0,g[_0x2d6520(0x40a)])(s[_0x2d6520(0x1c3)],{})}),(0x0,g[_0x2d6520(0x40a)])(de,{'items':_0x13c733,'children':(0x0,g[_0x2d6520(0x186)])(f['Button'],{'variant':_0x2d6520(0x12d),'disabled':!_0xa0a755,'children':[(0x0,g['jsx'])(s[_0x2d6520(0x538)],{}),_0x26c0c7['t'](_0x2d6520(0x197))]})})]}),(0x0,g[_0x2d6520(0x186)])('div',{'className':_0x2d6520(0x334),'children':[(0x0,g[_0x2d6520(0x40a)])(_0x2d6520(0x378),{'className':_0x2d6520(0x148),'children':(0x0,g['jsx'])(le,{'dashboard':_0x37b2fc,'editable':_0x485512,'widgetLabel':_0x572b2e=>_0x26c0c7['t'](Ue(_0x572b2e[_0x2d6520(0x436)])),'selectedWidgetId':_0x485512?_0x53187e:void 0x0,'onSelectWidget':_0x485512?_0x239892=>{_0x547ba8(_0x239892),_0x239892||_0x48519b(!0x1);}:void 0x0,'renderWidget':_0x2b4aca=>(0x0,g[_0x2d6520(0x40a)])(Le,{'base':_0x4fb119,'dashboard':_0x37b2fc,'unitId':_0x4a758f,'widget':_0x2b4aca,'onChange':_0x2961cc,'onChartRuntimeChange':_0x4567cf}),'renderWidgetActions':_0xdec8ed=>(0x0,g['jsx'])(Fe,{'onMoveUp':_0x37b2fc[_0x2d6520(0x44b)][_0x2d6520(0x468)](_0xdec8ed['id'])>0x0?()=>_0x511154(_0xdec8ed['id'],-0x1):void 0x0,'onMoveDown':_0x37b2fc[_0x2d6520(0x44b)][_0x2d6520(0x468)](_0xdec8ed['id'])<_0x37b2fc[_0x2d6520(0x44b)]['length']-0x1?()=>_0x511154(_0xdec8ed['id'],0x1):void 0x0,'onEdit':()=>{_0x547ba8(_0xdec8ed['id']),_0x48519b(!0x0);},'onDelete':()=>{const _0xd9b482=_0x2d6520;_0x53187e===_0xdec8ed['id']&&(_0x547ba8(void 0x0),_0x48519b(!0x1)),_0x1c4f32[_0xd9b482(0x3f9)](e[_0xd9b482(0x1e0)]['id'],{'unitId':_0x4a758f,'dashboardId':_0x4b0a65,'widgetId':_0xdec8ed['id']})[_0xd9b482(0x26e)](()=>void 0x0);}})})}),_0x485512&&_0x2ca7c4&&_0x51bd8c&&(0x0,g[_0x2d6520(0x40a)])(De,{'base':_0x4fb119,'chartRuntime':_0x3ca92c['get'](_0x51bd8c['id']),'unitId':_0x4a758f,'widget':_0x51bd8c,'onChange':_0x2961cc,'onClose':()=>_0x48519b(!0x1),'onSelectBackgroundImage':()=>He(_0x1ba588),'onSelectImage':()=>Ve(_0x7f164e)})]})]})});}function Le({base:_0x3efdc6,dashboard:_0x5e64cd,onChange:_0x3a494f,onChartRuntimeChange:_0x280f0d,unitId:_0x271e33,widget:_0x58c3be}){const _0x128919=_0x5ed5a2;let _0x4d6380=(0x0,h[_0x128919(0x16e)])(()=>_0x5e64cd['widgetOrder'][_0x128919(0x3e9)](_0x5f0cb6=>{const _0x3c5374=_0x128919;let _0x2808e8=_0x5e64cd[_0x3c5374(0x329)][_0x5f0cb6];return(_0x2808e8==null?void 0x0:_0x2808e8[_0x3c5374(0x436)])===e[_0x3c5374(0x311)][_0x3c5374(0x4cb)]&&_0x2808e8['tableId']===('tableId'in _0x58c3be?_0x58c3be[_0x3c5374(0x326)]:'')&&_0x2808e8[_0x3c5374(0x2ac)]?[_0x2808e8['filter']]:[];}),[_0x5e64cd,_0x58c3be]);switch(_0x58c3be[_0x128919(0x436)]){case e[_0x128919(0x311)][_0x128919(0x237)]:return(0x0,g[_0x128919(0x40a)])(ie,{'filters':_0x4d6380,'unitId':_0x271e33,'widget':_0x58c3be,'onRuntimeChange':_0x280f0d});case e[_0x128919(0x311)][_0x128919(0x4cb)]:return(0x0,g['jsx'])(Te,{'fields':Re(_0x3efdc6,_0x58c3be[_0x128919(0x326)]),'filter':_0x58c3be[_0x128919(0x2ac)],'onChange':_0x51a370=>_0x3a494f({..._0x58c3be,'filter':_0x51a370})[_0x128919(0x26e)](()=>void 0x0)});case e[_0x128919(0x311)][_0x128919(0x52b)]:return(0x0,g[_0x128919(0x40a)])(ce,{'widget':_0x58c3be});case e['BaseDashboardWidgetType']['Image']:return(0x0,g[_0x128919(0x40a)])(ze,{'widget':_0x58c3be});case e[_0x128919(0x311)][_0x128919(0x39d)]:return(0x0,g[_0x128919(0x40a)])(M,{'dashboardId':_0x5e64cd['id'],'unitId':_0x271e33,'widget':_0x58c3be});}}function Re(_0x7620f7,_0x7f8df5){const _0x159462=_0x5ed5a2;let _0x26e473=_0x7620f7[_0x159462(0x2c2)]()[_0x159462(0x308)][_0x7f8df5],_0x525ff6=_0x26e473==null?void 0x0:_0x26e473[_0x159462(0x1b7)][_0x159462(0x485)](_0xdc3966=>_0x26e473['views'][_0xdc3966]),_0x3e65c3=_0x525ff6?_0x26e473==null?void 0x0:_0x26e473['views'][_0x525ff6]:void 0x0;return _0x26e473&&_0x3e65c3?(0x0,t[_0x159462(0x1b1)])(_0x26e473,_0x3e65c3):[];}function ze({widget:_0x2d2cf1}){const _0x238ad9=_0x5ed5a2;let _0x3990fa=(0x0,m[_0x238ad9(0x354)])(u[_0x238ad9(0x26b)]),[_0x3752f3,_0x29faef]=(0x0,h[_0x238ad9(0x541)])(_0x2d2cf1[_0x238ad9(0x38e)]===a[_0x238ad9(0x4af)][_0x238ad9(0x254)]?'':_0x2d2cf1['source']);return(0x0,h[_0x238ad9(0x45e)])(()=>{const _0x39f47d=_0x238ad9;let _0x41f756=!0x0;return _0x3990fa['getAttachmentUrl'](_0x2d2cf1['source'],_0x2d2cf1['sourceType'])['then'](_0x182586=>{_0x41f756&&_0x29faef(_0x182586);})[_0x39f47d(0x26e)](()=>void 0x0),()=>{_0x41f756=!0x1;};},[_0x3990fa,_0x2d2cf1['source'],_0x2d2cf1['sourceType']]),_0x3752f3?(0x0,g[_0x238ad9(0x40a)])(_0x238ad9(0x378),{'role':_0x2d2cf1[_0x238ad9(0x3d1)]?'img':void 0x0,'aria-label':_0x2d2cf1[_0x238ad9(0x3d1)]||void 0x0,'data-dashboard-image':_0x2d2cf1['id'],'className':'univer-h-full\x20univer-w-full\x20univer-bg-transparent','style':E(_0x3752f3,_0x2d2cf1[_0x238ad9(0x233)])}):null;}function Be(){const _0x16aeec=_0x5ed5a2;let _0x5a1e51=(0x0,a[_0x16aeec(0x2f4)])(new Set());return{'id':'dashboard-text-'+(0x0,a[_0x16aeec(0x19c)])(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x5a1e51}]},'documentStyle':{}};}function Ve(_0x90b095){return new Promise(_0x447993=>{const _0x5d611c=_0x46f3;let _0x41d412=document['createElement']('input');_0x41d412[_0x5d611c(0x436)]='file',_0x41d412[_0x5d611c(0x42c)]=_0x5d611c(0x2a9),_0x41d412[_0x5d611c(0x442)](_0x5d611c(0x327),()=>{const _0x255cb0=_0x5d611c;var _0x4803d2;let _0x338d36=(_0x4803d2=_0x41d412[_0x255cb0(0x2e1)])==null?void 0x0:_0x4803d2[0x0];_0x338d36?_0x90b095[_0x255cb0(0x24b)](_0x338d36)['then'](_0x4d9bf3=>{const _0xb00161=_0x255cb0;!_0x4d9bf3['source']||_0x4d9bf3[_0xb00161(0x38e)]===void 0x0?_0x447993(null):_0x447993({'name':_0x4d9bf3['name'],'source':_0x4d9bf3[_0xb00161(0x321)],'sourceType':_0x4d9bf3[_0xb00161(0x38e)]});})['catch'](()=>_0x447993(null)):_0x447993(null);},{'once':!0x0}),_0x41d412['click']();});}function He(_0xdd42fd){return new Promise(_0x11bb4f=>{const _0x9bd7f8=_0x46f3;let _0xc44a7=document[_0x9bd7f8(0x350)]('input');_0xc44a7[_0x9bd7f8(0x436)]=_0x9bd7f8(0x4b0),_0xc44a7[_0x9bd7f8(0x42c)]=_0x9bd7f8(0x2a9),_0xc44a7[_0x9bd7f8(0x442)](_0x9bd7f8(0x327),()=>{const _0x42c302=_0x9bd7f8;var _0xf8e219;let _0x2e5e0b=(_0xf8e219=_0xc44a7[_0x42c302(0x2e1)])==null?void 0x0:_0xf8e219[0x0];_0x2e5e0b?_0xdd42fd[_0x42c302(0x28c)](_0x2e5e0b)[_0x42c302(0x52a)](_0xdb6e78=>{const _0x4b2635=_0x42c302;if(!(_0xdb6e78!=null&&_0xdb6e78[_0x4b2635(0x321)]))_0x11bb4f(null);else{if(_0xdb6e78[_0x4b2635(0x1d2)]){let _0x59595c=new Image();_0x59595c[_0x4b2635(0x1b5)]=_0xdb6e78[_0x4b2635(0x1d2)],_0xdd42fd[_0x4b2635(0x4eb)](_0xdb6e78[_0x4b2635(0x321)],_0xdb6e78['imageSourceType'],_0x59595c);}_0x11bb4f({'source':_0xdb6e78['source'],'sourceType':_0xdb6e78['imageSourceType']});}})[_0x42c302(0x26e)](()=>_0x11bb4f(null)):_0x11bb4f(null);},{'once':!0x0}),_0xc44a7[_0x9bd7f8(0x361)]();});}function Ue(_0x3a0468){const _0x124e8d=_0x5ed5a2;switch(_0x3a0468){case e[_0x124e8d(0x311)][_0x124e8d(0x237)]:return _0x124e8d(0x2aa);case e[_0x124e8d(0x311)][_0x124e8d(0x4cb)]:return'bases-dashboard-ui.dashboard.tableFilter';case e[_0x124e8d(0x311)][_0x124e8d(0x52b)]:return _0x124e8d(0x475);case e[_0x124e8d(0x311)][_0x124e8d(0x192)]:return _0x124e8d(0x54c);case e['BaseDashboardWidgetType']['FormulaShape']:return _0x124e8d(0x467);}}function We(_0x59b935){const _0x5aee78=_0x5ed5a2;return(_0x59b935==null?void 0x0:_0x59b935[_0x5aee78(0x436)])===a['BaseViewType']['Pivot']&&typeof _0x59b935[_0x5aee78(0x489)]==_0x5aee78(0x335)&&_0x59b935['config']!==null&&_0x5aee78(0x264)in _0x59b935[_0x5aee78(0x489)]&&'chart'in _0x59b935[_0x5aee78(0x489)];}function Ge({pivot:_0x57ce66,view:_0x20a842}){const _0x2adce8=_0x5ed5a2;let _0x49909b=(0x0,m[_0x2adce8(0x354)])(a[_0x2adce8(0x331)]),_0x544b37=(0x0,h['useMemo'])(()=>Ke(_0x20a842,_0x57ce66,_0x49909b['t'](_0x2adce8(0x15b))),[_0x49909b,_0x57ce66,_0x20a842]);return(0x0,g['jsxs'])(_0x2adce8(0x378),{'className':_0x2adce8(0x2f8),'children':[_0x544b37[_0x2adce8(0x1a2)]['length']>0x0&&(0x0,g[_0x2adce8(0x40a)])(_0x2adce8(0x1a8),{'className':_0x2adce8(0x225),'children':(0x0,g[_0x2adce8(0x40a)])(_0x2adce8(0x2ba),{'children':qe(_0x544b37[_0x2adce8(0x1a2)])})}),(0x0,g[_0x2adce8(0x186)])(_0x2adce8(0x1a8),{'className':_0x2adce8(0x357),'children':[_0x544b37[_0x2adce8(0x19f)]>0x0&&(0x0,g[_0x2adce8(0x40a)])(_0x2adce8(0x3bc),{'className':_0x2adce8(0x2d0),'children':qe(_0x544b37['rows'][_0x2adce8(0x230)](0x0,_0x544b37[_0x2adce8(0x19f)]))}),(0x0,g[_0x2adce8(0x40a)])(_0x2adce8(0x2ba),{'children':qe(_0x544b37[_0x2adce8(0x17e)]['slice'](_0x544b37[_0x2adce8(0x19f)]))})]})]});}function Ke(_0x1ebee2,_0x131429,_0x52c39f){const _0x22cf03=_0x5ed5a2;let _0xc3adec=_0x1ebee2[_0x22cf03(0x3ce)][_0x22cf03(0x274)],_0x39f516=_0x1ebee2[_0x22cf03(0x494)][_0x22cf03(0x2d9)],_0x28b728=_0x1ebee2[_0x22cf03(0x1af)][_0x22cf03(0x274)],_0x1fbedd=_0x1ebee2['dataView'][_0x22cf03(0x2d9)],_0x19bfa6=Array['from']({'length':_0xc3adec+_0x28b728},(_0xf10281,_0x3a262a)=>Array[_0x22cf03(0x456)]({'length':_0x39f516+_0x1fbedd},(_0x93c4c6,_0x580841)=>{const _0x4a809f=_0x22cf03;var _0x510f5f,_0xd24e4c;if(_0x3a262a<_0xc3adec&&_0x580841<_0x39f516)return Je(_0x1ebee2[_0x4a809f(0x401)],_0x3a262a,_0x580841,void 0x0,_0x52c39f,!0x0,!0x1,_0x4a809f(0x1c1)+_0x3a262a+':'+_0x580841);if(_0x3a262a<_0xc3adec){var _0x28e221;let _0x4d4185=_0x580841-_0x39f516,_0x530301=(_0x28e221=_0x1ebee2[_0x4a809f(0x3ce)][_0x4a809f(0x341)][_0x3a262a])==null?void 0x0:_0x28e221['tableFieldId'];return Je(_0x1ebee2['colView'],_0x3a262a,_0x4d4185,_0x530301?_0x1ebee2[_0x4a809f(0x398)][_0x530301]:void 0x0,_0x52c39f,!0x0,Ze(_0x1ebee2['colView']['info'][_0x4d4185]),_0x4a809f(0x420)+_0x3a262a+':'+_0x4d4185);}if(_0x580841<_0x39f516){var _0x1c90f7;let _0x3614bc=_0x3a262a-_0xc3adec,_0x172c7c=(_0x1c90f7=_0x1ebee2[_0x4a809f(0x494)][_0x4a809f(0x341)][_0x580841])==null?void 0x0:_0x1c90f7['tableFieldId'];return Je(_0x1ebee2[_0x4a809f(0x494)],_0x3614bc,_0x580841,_0x172c7c?_0x1ebee2[_0x4a809f(0x398)][_0x172c7c]:void 0x0,_0x52c39f,!0x0,Ze(_0x1ebee2['rowView']['info'][_0x3614bc]),_0x4a809f(0x434)+_0x3614bc+':'+_0x580841);}let _0x1ad9e4=_0x3a262a-_0xc3adec,_0x5cbfe7=_0x580841-_0x39f516,_0x517820=Math[_0x4a809f(0x464)](((_0x510f5f=_0x1ebee2['rowView'][_0x4a809f(0x545)][_0x1ad9e4])==null?void 0x0:_0x510f5f[_0x4a809f(0x483)])??-0x1,((_0xd24e4c=_0x1ebee2['colView'][_0x4a809f(0x545)][_0x5cbfe7])==null?void 0x0:_0xd24e4c['valueIndex'])??-0x1),_0x43c730=_0x131429[_0x4a809f(0x1d5)][_0x517820<0x0?0x0:_0x517820];return Je(_0x1ebee2[_0x4a809f(0x1af)],_0x1ad9e4,_0x5cbfe7,_0x43c730?_0x1ebee2[_0x4a809f(0x398)][_0x43c730]:void 0x0,_0x52c39f,!0x1,Ze(_0x1ebee2[_0x4a809f(0x494)]['info'][_0x1ad9e4])||Ze(_0x1ebee2['colView'][_0x4a809f(0x545)][_0x5cbfe7]),_0x4a809f(0x256)+_0x1ad9e4+':'+_0x5cbfe7);}));return{'headerColumnCount':_0x39f516,'headerRowCount':_0xc3adec,'pageRows':_0x1ebee2[_0x22cf03(0x4cf)][_0x22cf03(0x206)]<0x0||_0x1ebee2[_0x22cf03(0x4cf)][_0x22cf03(0x1a4)]<0x0?[]:Array[_0x22cf03(0x456)]({'length':_0x1ebee2[_0x22cf03(0x4cf)][_0x22cf03(0x206)]+0x1},(_0x5726b5,_0x59644a)=>Array[_0x22cf03(0x456)]({'length':_0x1ebee2['pageView']['lastCol']+0x1},(_0x3be3d9,_0x3f345b)=>Je(_0x1ebee2[_0x22cf03(0x4cf)],_0x59644a,_0x3f345b,void 0x0,_0x52c39f,!0x0,!0x1,_0x22cf03(0x453)+_0x59644a+':'+_0x3f345b))),'rows':_0x19bfa6};}function qe(_0x100cb8){return _0x100cb8['map'](_0x5946a6=>{const _0x1df0e4=_0x46f3;var _0x101c14;return(0x0,g[_0x1df0e4(0x40a)])('tr',{'children':_0x5946a6[_0x1df0e4(0x51d)](_0xb74513=>{const _0xc94404=_0x1df0e4;let _0x82530c=_0xb74513[_0xc94404(0x1df)]?'th':'td';return(0x0,g[_0xc94404(0x40a)])(_0x82530c,{'className':_0xc94404(0x54b)+(_0xb74513[_0xc94404(0x487)]?'\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':'')+_0xc94404(0x1bc)+(_0xb74513[_0xc94404(0x1df)]?'':_0xc94404(0x177))+'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','children':_0xb74513['value']},_0xb74513[_0xc94404(0x3b2)]);})},(_0x101c14=_0x5946a6[0x0])==null?void 0x0:_0x101c14['key']);});}function Je(_0x2ad3eb,_0xa4973c,_0x3fd204,_0x4ccf9d,_0x437462,_0x189d18,_0x1323d8,_0x24ae0a){const _0x25c634=_0x5ed5a2;var _0x4b3b42;let _0x1ce348=(_0x4b3b42=_0x2ad3eb['data'][_0xa4973c])==null?void 0x0:_0x4b3b42[_0x3fd204],_0x5e0b41=_0x1ce348==null?void 0x0:_0x1ce348['s'],_0x70160d=_0x1323d8||_0x5e0b41===y[_0x25c634(0x318)]['GrandTotal']||_0x5e0b41===y[_0x25c634(0x318)]['MultipleGrandTotal'];return{'isHeader':_0x189d18,'isTotal':_0x70160d||_0x5e0b41===y[_0x25c634(0x318)][_0x25c634(0x24a)],'key':_0x24ae0a,'style':_0x5e0b41,'value':_0x70160d&&Xe(_0x1ce348==null?void 0x0:_0x1ce348['v'])?_0x437462:Ye(_0x1ce348,_0x4ccf9d)};}function Ye(_0x193bd6,_0x21c38a){const _0xe590cc=_0x5ed5a2;let _0x137e3b=_0x193bd6==null?void 0x0:_0x193bd6['v'];return(0x0,y[_0xe590cc(0x13d)])(_0x137e3b)?String(_0x137e3b['value']??_0x137e3b[_0xe590cc(0x23c)]??''):(0x0,y[_0xe590cc(0x339)])(_0x137e3b)?'#'+_0x137e3b['errorType']:_0x21c38a&&typeof _0x137e3b==_0xe590cc(0x21c)?a[_0xe590cc(0x136)]['format'](_0x21c38a,_0x137e3b):String(_0x137e3b??'');}function Xe(_0x5aa0dd){return _0x5aa0dd===void 0x0||_0x5aa0dd==='';}function Ze(_0x3f7f1b){const _0x174ef0=_0x5ed5a2;return!!(_0x3f7f1b!=null&&_0x3f7f1b[_0x174ef0(0x22f)]||_0x3f7f1b!=null&&_0x3f7f1b['isTopTotal']||_0x3f7f1b!=null&&_0x3f7f1b[_0x174ef0(0x292)]||(_0x3f7f1b==null?void 0x0:_0x3f7f1b['rowType'])==='grandTotal');}const Qe=[{'area':y[_0x5ed5a2(0x31a)][_0x5ed5a2(0x1de)],'key':_0x5ed5a2(0x46c),'label':'bases-dashboard-ui.pivot.filters'},{'area':y['PivotTableFiledAreaEnum'][_0x5ed5a2(0x380)],'key':_0x5ed5a2(0x3cf),'label':_0x5ed5a2(0x4cc)},{'area':y['PivotTableFiledAreaEnum'][_0x5ed5a2(0x1dc)],'key':_0x5ed5a2(0x4d9),'label':_0x5ed5a2(0x3fb)},{'area':y[_0x5ed5a2(0x31a)][_0x5ed5a2(0x290)],'key':_0x5ed5a2(0x1d5),'label':_0x5ed5a2(0x412)}],$e=[{'value':y[_0x5ed5a2(0x374)][_0x5ed5a2(0x4b3)],'localeKey':'bases-dashboard-ui.pivot.sum'},{'value':y['PivotSubtotalTypeEnum'][_0x5ed5a2(0x45a)],'localeKey':_0x5ed5a2(0x2ce)},{'value':y['PivotSubtotalTypeEnum'][_0x5ed5a2(0x49d)],'localeKey':_0x5ed5a2(0x4d3)},{'value':y[_0x5ed5a2(0x374)][_0x5ed5a2(0x37f)],'localeKey':_0x5ed5a2(0x1db)},{'value':y[_0x5ed5a2(0x374)][_0x5ed5a2(0x464)],'localeKey':_0x5ed5a2(0x3b5)},{'value':y[_0x5ed5a2(0x374)][_0x5ed5a2(0x2e6)],'localeKey':_0x5ed5a2(0x244)},{'value':y[_0x5ed5a2(0x374)][_0x5ed5a2(0x3e1)],'localeKey':_0x5ed5a2(0x1ca)},{'value':y[_0x5ed5a2(0x374)][_0x5ed5a2(0x555)],'localeKey':_0x5ed5a2(0x23a)},{'value':y[_0x5ed5a2(0x374)][_0x5ed5a2(0x2c0)],'localeKey':_0x5ed5a2(0x3d5)},{'value':y[_0x5ed5a2(0x374)][_0x5ed5a2(0x306)],'localeKey':_0x5ed5a2(0x438)},{'value':y[_0x5ed5a2(0x374)][_0x5ed5a2(0x35a)],'localeKey':_0x5ed5a2(0x2c1)}];function et(_0x41e9a8){const _0x10f7ea=_0x5ed5a2;let {config:_0x569a5d,onChange:_0x327c8e,table:_0x194d55}=_0x41e9a8,_0x5b61ff=(0x0,m[_0x10f7ea(0x354)])(a[_0x10f7ea(0x331)]),[_0x155414,_0x29e57c]=(0x0,h[_0x10f7ea(0x541)])('fields'),[_0x6bb9e0,_0x8574c3]=(0x0,h['useState'])(''),[_0x38308f,_0x49c47c]=(0x0,h[_0x10f7ea(0x541)])(null),[_0x25623e,_0x563671]=(0x0,h[_0x10f7ea(0x541)])(null),[_0x4d4fd0,_0x473170]=(0x0,h[_0x10f7ea(0x541)])(null),[_0x4d2b32,_0x39e240]=(0x0,h[_0x10f7ea(0x541)])(null),_0x1b556d=(0x0,h[_0x10f7ea(0x1b3)])(null),_0x4b5faf=(0x0,h[_0x10f7ea(0x16e)])(()=>_0x194d55['fieldOrder'][_0x10f7ea(0x3e9)](_0x10d136=>{const _0x3b4651=_0x10f7ea;let _0x57e2be=_0x194d55[_0x3b4651(0x305)][_0x10d136];return _0x57e2be&&_0x57e2be['system']!==!0x0&&_0x57e2be[_0x3b4651(0x436)]!==a[_0x3b4651(0x35c)][_0x3b4651(0x333)]?[_0x57e2be]:[];})[_0x10f7ea(0x2ac)](_0x57db05=>_0x57db05['name'][_0x10f7ea(0x488)]()[_0x10f7ea(0x433)](_0x6bb9e0[_0x10f7ea(0x198)]()[_0x10f7ea(0x488)]())),[_0x6bb9e0,_0x194d55]),_0x37a3c6=_0x53d201=>{const _0x4a4b5a=_0x10f7ea;let _0x547fd2=(0x0,e[_0x4a4b5a(0x4c5)])(_0x194d55,_0x569a5d[_0x4a4b5a(0x264)]);try{_0x53d201(_0x547fd2),_0x327c8e({'pivot':_0x547fd2[_0x4a4b5a(0x463)]()});}finally{_0x547fd2[_0x4a4b5a(0x2f1)]();}},_0x4458f5=(_0x4d6fee,_0x397eb0)=>{_0x38308f&&(_0x37a3c6(_0x4a5e6d=>{const _0x5c194e=_0x46f3;if(_0x38308f[_0x5c194e(0x419)]===_0x5c194e(0x2b1)){let _0x438426=_0x4a5e6d[_0x5c194e(0x51b)](_0x38308f['id']),_0x38cd38=_0x438426[_0x5c194e(0x3cc)]===_0x4d6fee&&_0x438426[_0x5c194e(0x296)]<_0x397eb0?_0x397eb0-0x1:_0x397eb0;_0x4a5e6d[_0x5c194e(0x1ec)](_0x38308f['id'],_0x4d6fee,_0x38cd38);}else ct(_0x4a5e6d,_0x38308f['id'],_0x4d6fee,_0x397eb0);}),_0x49c47c(null),_0x563671(null));};return(0x0,g[_0x10f7ea(0x186)])(_0x10f7ea(0x378),{'className':_0x10f7ea(0x1a5),'children':[(0x0,g['jsx'])(n[_0x10f7ea(0x23d)],{'ariaLabel':_0x5b61ff['t'](_0x10f7ea(0x159)),'className':_0x10f7ea(0x4e4),'items':[{'label':_0x5b61ff['t'](_0x10f7ea(0x286)),'panelId':'base-pivot-fields','value':_0x10f7ea(0x305)},{'label':_0x5b61ff['t'](_0x10f7ea(0x421)),'panelId':'base-pivot-options','value':_0x10f7ea(0x2c7)}],'value':_0x155414,'onChange':_0x29e57c}),(0x0,g[_0x10f7ea(0x40a)])(_0x10f7ea(0x378),{'ref':_0x1b556d,'className':(0x0,f['clsx'])(_0x10f7ea(0x4b2),f[_0x10f7ea(0x1d0)]),'onDragOver':_0x5d5e36=>{const _0x312900=_0x10f7ea;let _0x2531b8=_0x1b556d[_0x312900(0x28f)];if(!_0x2531b8)return;let _0x19ef65=_0x2531b8[_0x312900(0x1eb)]();_0x5d5e36['clientY']<_0x19ef65[_0x312900(0x51e)]+0x30?_0x2531b8[_0x312900(0x3fc)]-=0x10:_0x5d5e36[_0x312900(0x512)]>_0x19ef65[_0x312900(0x37b)]-0x30&&(_0x2531b8[_0x312900(0x3fc)]+=0x10);},'children':_0x155414===_0x10f7ea(0x2c7)?(0x0,g[_0x10f7ea(0x40a)])(st,{'config':_0x569a5d,'commit':_0x37a3c6}):(0x0,g['jsxs'])(_0x10f7ea(0x378),{'className':_0x10f7ea(0x367),'children':[(0x0,g['jsxs'])('div',{'children':[(0x0,g[_0x10f7ea(0x40a)])(_0x10f7ea(0x378),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x5b61ff['t'](_0x10f7ea(0x1d6))}),(0x0,g['jsx'])(f[_0x10f7ea(0x345)],{'allowClear':!0x0,'slot':(0x0,g[_0x10f7ea(0x40a)])(s[_0x10f7ea(0x142)],{}),'value':_0x6bb9e0,'placeholder':_0x5b61ff['t']('bases-dashboard-ui.pivot.searchFields'),'onChange':_0x8574c3}),(0x0,g['jsx'])(_0x10f7ea(0x378),{'className':_0x10f7ea(0x268),'children':_0x4b5faf['map'](_0x4fba87=>(0x0,g['jsx'])(tt,{'config':_0x569a5d,'field':_0x4fba87,'onAdd':_0x186037=>_0x37a3c6(_0x58dd73=>ct(_0x58dd73,_0x4fba87['id'],_0x186037,_0x58dd73[_0x10f7ea(0x1a0)](_0x186037))),'onCheckedChange':_0x539c39=>_0x37a3c6(_0x2f6839=>{const _0x2ba151=_0x10f7ea;let _0x57e3a8=_0x2f6839[_0x2ba151(0x301)](_0x4fba87['id']);if(!_0x539c39)_0x57e3a8[_0x2ba151(0x1f9)](_0x38dde1=>_0x2f6839[_0x2ba151(0x3e2)](_0x38dde1['getId']()));else{if(_0x57e3a8['length']===0x0){let _0x17f773=ut(_0x4fba87)?y['PivotTableFiledAreaEnum'][_0x2ba151(0x290)]:y['PivotTableFiledAreaEnum'][_0x2ba151(0x1dc)];_0x2f6839[_0x2ba151(0x163)](_0x4fba87['id'],_0x17f773);}}}),'onDragStart':()=>_0x49c47c({'kind':_0x10f7ea(0x321),'id':_0x4fba87['id']})},_0x4fba87['id']))})]}),(0x0,g[_0x10f7ea(0x40a)])(_0x10f7ea(0x378),{'className':_0x10f7ea(0x48f),'children':Qe['map'](_0xe2818a=>(0x0,g[_0x10f7ea(0x40a)])(rt,{'area':_0xe2818a['area'],'dropTarget':_0x25623e,'fields':_0x569a5d[_0x10f7ea(0x264)][_0xe2818a[_0x10f7ea(0x3b2)]],'label':_0x5b61ff['t'](_0xe2818a[_0x10f7ea(0x369)]),'snapshot':_0x569a5d['pivot'],'onDragEnd':()=>{_0x49c47c(null),_0x563671(null);},'onDragStart':_0x38fb91=>_0x49c47c({'kind':_0x10f7ea(0x2b1),'id':_0x38fb91,'area':_0xe2818a[_0x10f7ea(0x3cc)]}),'onDragOver':_0x405b48=>_0x563671({'area':_0xe2818a[_0x10f7ea(0x3cc)],'index':_0x405b48}),'onDrop':_0x3f046c=>_0x4458f5(_0xe2818a[_0x10f7ea(0x3cc)],_0x3f046c),'onFilter':_0x473170,'onMove':(_0x5d582c,_0x4a910e,_0x1d60c0)=>_0x37a3c6(_0x3e2f88=>_0x3e2f88[_0x10f7ea(0x1ec)](_0x5d582c,_0x4a910e,_0x1d60c0)),'onRemove':_0x564708=>_0x37a3c6(_0x44a4c4=>_0x44a4c4['removeField'](_0x564708)),'onSettings':_0x39e240},_0xe2818a[_0x10f7ea(0x3cc)]))}),_0x4d4fd0&&(0x0,g[_0x10f7ea(0x40a)])(at,{'fieldId':_0x4d4fd0,'snapshot':_0x569a5d[_0x10f7ea(0x264)],'table':_0x194d55,'onCancel':()=>_0x473170(null),'onCommit':(_0x41fbeb,_0x2268cc)=>{_0x37a3c6(_0x36ee7f=>{const _0x3d86e8=_0x46f3;let _0x2d8643=_0x36ee7f[_0x3d86e8(0x4aa)](_0x4d4fd0),_0x5ccb3f=(_0x2d8643==null?void 0x0:_0x2d8643[_0x3d86e8(0x246)])??[];_0x36ee7f[_0x3d86e8(0x4da)](_0x4d4fd0,{'type':y[_0x3d86e8(0x3f6)][_0x3d86e8(0x443)],'list':_0x41fbeb,'isAll':_0x41fbeb[_0x3d86e8(0x253)]===_0x5ccb3f['length']}),_0x36ee7f[_0x3d86e8(0x260)](_0x4d4fd0,_0x2268cc===void 0x0?void 0x0:{'type':_0x2268cc});}),_0x473170(null);}},_0x4d4fd0),_0x4d2b32&&(0x0,g[_0x10f7ea(0x40a)])(ot,{'field':_0x569a5d[_0x10f7ea(0x264)][_0x10f7ea(0x492)][_0x4d2b32],'onCancel':()=>_0x39e240(null),'onCommit':(_0x348b33,_0xfa77f,_0x31cb87)=>{_0x37a3c6(_0x2b86b3=>{const _0x566c96=_0x46f3;_0x2b86b3[_0x566c96(0x383)](_0x4d2b32,_0x348b33),_0x2b86b3[_0x566c96(0x23b)](_0x4d2b32,_0xfa77f),_0x2b86b3['setFieldFormat'](_0x4d2b32,_0x31cb87||void 0x0);}),_0x39e240(null);}},_0x4d2b32)]})})]});}function tt(_0x3d8dc0){const _0x1adec6=_0x5ed5a2;let {config:_0x3be146,field:_0x204fb8,onAdd:_0x5ccfc8,onCheckedChange:_0x2af95b,onDragStart:_0x106430}=_0x3d8dc0,_0x59da8b=(0x0,m[_0x1adec6(0x354)])(a[_0x1adec6(0x331)]),_0x203d5e=[...Object['values'](_0x3be146['pivot'][_0x1adec6(0x42d)]),...Object[_0x1adec6(0x51c)](_0x3be146[_0x1adec6(0x264)][_0x1adec6(0x492)])][_0x1adec6(0x351)](_0x2c0fa3=>_0x2c0fa3[_0x1adec6(0x447)]===_0x204fb8['id']),_0x4336db=Qe['map'](_0x152569=>({'type':_0x1adec6(0x3d9),'children':_0x59da8b['t'](dt(_0x152569[_0x1adec6(0x3cc)])),'onSelect':()=>_0x5ccfc8(_0x152569[_0x1adec6(0x3cc)])}));return(0x0,g[_0x1adec6(0x186)])('div',{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x1adec6(0x20d),'onDragStart':_0x106430,'children':[(0x0,g[_0x1adec6(0x40a)])(f[_0x1adec6(0x2b6)],{'checked':_0x203d5e,'onChange':_0x241c0a=>_0x2af95b(!!_0x241c0a)}),(0x0,g[_0x1adec6(0x40a)])(nt,{'field':_0x204fb8}),(0x0,g[_0x1adec6(0x40a)])(_0x1adec6(0x4ba),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x204fb8[_0x1adec6(0x416)]}),(0x0,g['jsx'])(de,{'align':'end','items':_0x4336db,'children':(0x0,g[_0x1adec6(0x40a)])(f['Button'],{'variant':_0x1adec6(0x1d3),'aria-label':_0x59da8b['t'](_0x1adec6(0x407)),'children':(0x0,g[_0x1adec6(0x40a)])(s[_0x1adec6(0x375)],{})})})]});}function nt({field:_0x32349f}){const _0x83938c=_0x5ed5a2;return ut(_0x32349f)?(0x0,g['jsx'])(s[_0x83938c(0x3d0)],{'className':_0x83938c(0x20c)}):_0x32349f[_0x83938c(0x436)]===a[_0x83938c(0x35c)][_0x83938c(0x469)]||_0x32349f['type']===a[_0x83938c(0x35c)]['CreatedAt']||_0x32349f[_0x83938c(0x436)]===a[_0x83938c(0x35c)]['UpdatedAt']?(0x0,g[_0x83938c(0x40a)])(s[_0x83938c(0x324)],{'className':_0x83938c(0x20c)}):(0x0,g[_0x83938c(0x40a)])(s[_0x83938c(0x180)],{'className':_0x83938c(0x20c)});}function rt(_0x126668){const _0x57e464=_0x5ed5a2;let {area:_0x5297e4,dropTarget:_0x34a6ad,fields:_0x2d4ae7,label:_0x8a5ff4,snapshot:_0x313e8f}=_0x126668,_0x1067a3=(0x0,m[_0x57e464(0x354)])(a['LocaleService']);return(0x0,g[_0x57e464(0x186)])(_0x57e464(0x220),{'className':(0x0,f['clsx'])(_0x57e464(0x392),f['borderClassName']),'onDragOver':_0x3d35ea=>{const _0x2be8ec=_0x57e464;_0x3d35ea[_0x2be8ec(0x48a)](),_0x126668['onDragOver'](_0x2d4ae7['length']);},'onDrop':_0xab1347=>{const _0x1c3a87=_0x57e464;_0xab1347['preventDefault'](),_0x126668[_0x1c3a87(0x379)]((_0x34a6ad==null?void 0x0:_0x34a6ad['area'])===_0x5297e4?_0x34a6ad[_0x1c3a87(0x296)]:_0x2d4ae7[_0x1c3a87(0x253)]);},'children':[(0x0,g['jsx'])(_0x57e464(0x378),{'className':_0x57e464(0x484),'children':_0x8a5ff4}),(0x0,g[_0x57e464(0x186)])('div',{'className':_0x57e464(0x1ad),'children':[_0x2d4ae7[_0x57e464(0x51d)]((_0x5b6cc4,_0x57438f)=>{const _0x1aa00a=_0x57e464;let _0x77d78d=_0x313e8f[_0x1aa00a(0x42d)][_0x5b6cc4]??_0x313e8f[_0x1aa00a(0x492)][_0x5b6cc4];if(!_0x77d78d)return null;let _0x5974dd=(_0x34a6ad==null?void 0x0:_0x34a6ad[_0x1aa00a(0x3cc)])===_0x5297e4&&_0x34a6ad[_0x1aa00a(0x296)]===_0x57438f;return(0x0,g[_0x1aa00a(0x186)])(_0x1aa00a(0x378),{'onDragOver':_0x3d2f3b=>{const _0x4bd910=_0x1aa00a;_0x3d2f3b['preventDefault'](),_0x3d2f3b['stopPropagation']();let _0x3f9d00=_0x3d2f3b['currentTarget'][_0x4bd910(0x1eb)]();_0x126668[_0x4bd910(0x404)](_0x57438f+ +(_0x3d2f3b[_0x4bd910(0x512)]>_0x3f9d00[_0x4bd910(0x51e)]+_0x3f9d00[_0x4bd910(0x4f3)]/0x2));},'onDrop':_0x16a739=>{const _0x5e2609=_0x1aa00a;_0x16a739[_0x5e2609(0x48a)](),_0x16a739[_0x5e2609(0x314)](),_0x126668[_0x5e2609(0x379)]((_0x34a6ad==null?void 0x0:_0x34a6ad[_0x5e2609(0x3cc)])===_0x5297e4?_0x34a6ad[_0x5e2609(0x296)]:_0x57438f);},'children':[_0x5974dd&&(0x0,g[_0x1aa00a(0x40a)])(_0x1aa00a(0x378),{'className':_0x1aa00a(0x36d)}),(0x0,g['jsx'])(it,{'area':_0x5297e4,'field':_0x77d78d,'onDragEnd':_0x126668[_0x1aa00a(0x472)],'onDragStart':()=>_0x126668[_0x1aa00a(0x2f9)](_0x5b6cc4),'onFilter':()=>_0x126668[_0x1aa00a(0x31e)](_0x5b6cc4),'onMove':_0x3a59d1=>_0x126668['onMove'](_0x5b6cc4,_0x3a59d1,0x0),'onMoveUp':_0x57438f>0x0?()=>_0x126668['onMove'](_0x5b6cc4,_0x5297e4,_0x57438f-0x1):void 0x0,'onMoveDown':_0x57438f<_0x2d4ae7[_0x1aa00a(0x253)]-0x1?()=>_0x126668['onMove'](_0x5b6cc4,_0x5297e4,_0x57438f+0x1):void 0x0,'onRemove':()=>_0x126668['onRemove'](_0x5b6cc4),'onSettings':()=>_0x126668[_0x1aa00a(0x1c6)](_0x5b6cc4)})]},_0x5b6cc4);}),(_0x34a6ad==null?void 0x0:_0x34a6ad[_0x57e464(0x3cc)])===_0x5297e4&&_0x34a6ad[_0x57e464(0x296)]===_0x2d4ae7[_0x57e464(0x253)]&&(0x0,g['jsx'])(_0x57e464(0x378),{'className':_0x57e464(0x36d)}),_0x2d4ae7[_0x57e464(0x253)]===0x0&&(0x0,g['jsx'])(_0x57e464(0x378),{'className':_0x57e464(0x4ec),'children':_0x1067a3['t'](_0x57e464(0x1d6))})]})]});}function it(_0xe0b665){const _0xd182fe=_0x5ed5a2;let _0x1abf23=(0x0,m['useDependency'])(a['LocaleService']),_0x21a50c=_0xe0b665['area']===y[_0xd182fe(0x31a)][_0xd182fe(0x290)],_0x545333=[...Qe[_0xd182fe(0x2ac)](_0x58312d=>_0x58312d[_0xd182fe(0x3cc)]!==_0xe0b665[_0xd182fe(0x3cc)])[_0xd182fe(0x51d)](_0x3a79ce=>({'type':'item','children':_0x1abf23['t'](dt(_0x3a79ce['area'])),'onSelect':()=>_0xe0b665[_0xd182fe(0x3f0)](_0x3a79ce[_0xd182fe(0x3cc)])})),..._0xe0b665[_0xd182fe(0x280)]?[{'type':_0xd182fe(0x3d9),'children':_0x1abf23['t'](_0xd182fe(0x3f8)),'onSelect':_0xe0b665[_0xd182fe(0x280)]}]:[],..._0xe0b665[_0xd182fe(0x1b2)]?[{'type':_0xd182fe(0x3d9),'children':_0x1abf23['t']('bases-dashboard-ui.mobile.moveDown'),'onSelect':_0xe0b665[_0xd182fe(0x1b2)]}]:[],{'type':_0xd182fe(0x3d9),'children':_0x1abf23['t'](_0xd182fe(0x403)),'onSelect':_0xe0b665['onRemove']},{'type':_0xd182fe(0x3d9),'children':_0x1abf23['t'](_0x21a50c?'bases-dashboard-ui.pivot.fieldSettings':_0xd182fe(0x3a4)),'onSelect':_0x21a50c?_0xe0b665[_0xd182fe(0x1c6)]:_0xe0b665[_0xd182fe(0x31e)]}];return(0x0,g[_0xd182fe(0x186)])(_0xd182fe(0x378),{'draggable':!0x1,'style':{'minHeight':0x30},'className':'univer-my-1\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-2\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','onDragEnd':_0xe0b665[_0xd182fe(0x472)],'onDragStart':_0xe0b665[_0xd182fe(0x2f9)],'children':[(0x0,g[_0xd182fe(0x40a)])(f['Tooltip'],{'title':_0xe0b665['field'][_0xd182fe(0x20e)],'children':(0x0,g['jsx'])(_0xd182fe(0x4ba),{'className':_0xd182fe(0x4b7),'children':_0xe0b665[_0xd182fe(0x2b1)][_0xd182fe(0x20e)]})}),(0x0,g[_0xd182fe(0x40a)])(de,{'align':'end','items':_0x545333,'children':(0x0,g[_0xd182fe(0x40a)])(f['Button'],{'variant':_0xd182fe(0x1d3),'aria-label':_0x1abf23['t'](_0xd182fe(0x407)),'children':(0x0,g[_0xd182fe(0x40a)])(s[_0xd182fe(0x375)],{})})})]});}function at(_0x19fa3b){const _0x32d9b9=_0x5ed5a2;var _0x2ee20c,_0x345299;let _0x2b01c0=(0x0,m[_0x32d9b9(0x354)])(a[_0x32d9b9(0x331)]),{format:_0x2d5adc,items:_0x5684da,itemTypes:_0x5158c0}=(0x0,h[_0x32d9b9(0x16e)])(()=>{const _0xe1c465=_0x32d9b9;let _0x584cf6=(0x0,e[_0xe1c465(0x4c5)])(_0x19fa3b[_0xe1c465(0x1a8)],_0x19fa3b[_0xe1c465(0x4dc)]);try{let _0xdbd5e2=_0x584cf6[_0xe1c465(0x4aa)](_0x19fa3b[_0xe1c465(0x364)]);return{'format':_0xdbd5e2==null?void 0x0:_0xdbd5e2[_0xe1c465(0x3a2)],'items':[...(_0xdbd5e2==null?void 0x0:_0xdbd5e2[_0xe1c465(0x246)])??[]],'itemTypes':[...(_0xdbd5e2==null?void 0x0:_0xdbd5e2[_0xe1c465(0x445)])??[]]};}finally{_0x584cf6['dispose']();}},[_0x19fa3b[_0x32d9b9(0x364)],_0x19fa3b[_0x32d9b9(0x4dc)],_0x19fa3b[_0x32d9b9(0x1a8)]]),_0x3ee06c=(_0x2ee20c=_0x19fa3b[_0x32d9b9(0x4dc)][_0x32d9b9(0x42d)][_0x19fa3b[_0x32d9b9(0x364)]])==null?void 0x0:_0x2ee20c[_0x32d9b9(0x37d)],[_0x3cd25e,_0x7ba58f]=(0x0,h[_0x32d9b9(0x541)])((_0x3ee06c==null?void 0x0:_0x3ee06c[_0x32d9b9(0x436)])===y[_0x32d9b9(0x3f6)]['ManualFilter']?_0x3ee06c['list']:_0x5684da),[_0x183281,_0x282cab]=(0x0,h[_0x32d9b9(0x541)])((_0x345299=_0x19fa3b[_0x32d9b9(0x4dc)][_0x32d9b9(0x42d)][_0x19fa3b[_0x32d9b9(0x364)]])==null||(_0x345299=_0x345299[_0x32d9b9(0x33c)])==null?void 0x0:_0x345299[_0x32d9b9(0x436)]),_0x418d38=_0x3cd25e[_0x32d9b9(0x253)]===_0x5684da[_0x32d9b9(0x253)],_0x22131e=(0x0,g[_0x32d9b9(0x186)])(_0x32d9b9(0x220),{'className':(0x0,f['clsx'])(_0x32d9b9(0x411),f['borderClassName']),'children':[(0x0,g['jsx'])(_0x32d9b9(0x378),{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0x2b01c0['t']('bases-dashboard-ui.pivot.filterField')}),(0x0,g['jsxs'])(_0x32d9b9(0x378),{'className':_0x32d9b9(0x14d),'children':[(0x0,g['jsxs'])(f[_0x32d9b9(0x123)],{'className':'univer-flex-1','variant':_0x183281===y['PivotDataFieldSortOperatorEnum'][_0x32d9b9(0x34e)]?_0x32d9b9(0x12d):_0x32d9b9(0x2bc),'onClick':()=>_0x282cab(y[_0x32d9b9(0x124)][_0x32d9b9(0x34e)]),'children':[(0x0,g['jsx'])(s['AscendingIcon'],{}),_0x2b01c0['t']('bases-dashboard-ui.pivot.ascending')]}),(0x0,g[_0x32d9b9(0x186)])(f[_0x32d9b9(0x123)],{'className':_0x32d9b9(0x462),'variant':_0x183281===y[_0x32d9b9(0x124)][_0x32d9b9(0x344)]?_0x32d9b9(0x12d):_0x32d9b9(0x2bc),'onClick':()=>_0x282cab(y[_0x32d9b9(0x124)][_0x32d9b9(0x344)]),'children':[(0x0,g['jsx'])(s['DescendingIcon'],{}),_0x2b01c0['t'](_0x32d9b9(0x26a))]})]}),(0x0,g[_0x32d9b9(0x186)])('div',{'className':_0x32d9b9(0x132),'children':[(0x0,g[_0x32d9b9(0x186)])(_0x32d9b9(0x369),{'className':_0x32d9b9(0x4c0),'children':[(0x0,g[_0x32d9b9(0x40a)])(f[_0x32d9b9(0x2b6)],{'checked':_0x418d38,'indeterminate':_0x3cd25e[_0x32d9b9(0x253)]>0x0&&!_0x418d38,'onChange':()=>_0x7ba58f(_0x418d38?[]:_0x5684da)}),_0x2b01c0['t']('bases-dashboard-ui.pivot.selectAll')]}),_0x5684da[_0x32d9b9(0x51d)]((_0x132339,_0xd8ffb3)=>(0x0,g[_0x32d9b9(0x186)])(_0x32d9b9(0x369),{'className':_0x32d9b9(0x4c0),'children':[(0x0,g[_0x32d9b9(0x40a)])(f[_0x32d9b9(0x2b6)],{'checked':_0x3cd25e[_0x32d9b9(0x433)](_0x132339),'onChange':()=>_0x7ba58f(_0xd95995=>_0xd95995['includes'](_0x132339)?_0xd95995[_0x32d9b9(0x2ac)](_0x5955d9=>_0x5955d9!==_0x132339):[..._0xd95995,_0x132339])}),(0x0,g[_0x32d9b9(0x40a)])(_0x32d9b9(0x4ba),{'className':_0x32d9b9(0x126),'children':lt(_0x132339,_0x5158c0[_0xd8ffb3],_0x2d5adc,_0x2b01c0['t'](_0x32d9b9(0x522)))})]},_0x132339))]}),(0x0,g[_0x32d9b9(0x186)])(_0x32d9b9(0x378),{'className':_0x32d9b9(0x222),'children':[(0x0,g['jsx'])(f[_0x32d9b9(0x123)],{'variant':_0x32d9b9(0x4db),'onClick':()=>_0x19fa3b[_0x32d9b9(0x151)](_0x5684da,_0x183281),'children':_0x2b01c0['t'](_0x32d9b9(0x1a3))}),(0x0,g['jsxs'])(_0x32d9b9(0x378),{'className':_0x32d9b9(0x391),'children':[(0x0,g['jsx'])(f[_0x32d9b9(0x123)],{'onClick':_0x19fa3b[_0x32d9b9(0x3de)],'children':_0x2b01c0['t'](_0x32d9b9(0x3eb))}),(0x0,g['jsx'])(f['Button'],{'variant':_0x32d9b9(0x12d),'disabled':_0x3cd25e[_0x32d9b9(0x253)]===0x0,'onClick':()=>_0x19fa3b['onCommit'](_0x3cd25e,_0x183281),'children':_0x2b01c0['t'](_0x32d9b9(0x25d))})]})]})]});return(0x0,g[_0x32d9b9(0x40a)])(t[_0x32d9b9(0x362)],{'title':_0x2b01c0['t'](_0x32d9b9(0x3a4)),'onClose':_0x19fa3b['onCancel'],'children':_0x22131e});}function ot(_0x5672ad){const _0x51e5c1=_0x5ed5a2;var _0x312124,_0x8dd1b1,_0x3744ad;let _0x557beb=(0x0,m['useDependency'])(a['LocaleService']),[_0x4bc236,_0x45ab6a]=(0x0,h[_0x51e5c1(0x541)])(((_0x312124=_0x5672ad[_0x51e5c1(0x2b1)])==null?void 0x0:_0x312124[_0x51e5c1(0x20e)])??''),[_0x5872dd,_0x24eb01]=(0x0,h[_0x51e5c1(0x541)])(((_0x8dd1b1=_0x5672ad['field'])==null?void 0x0:_0x8dd1b1['subtotal'])??y['PivotSubtotalTypeEnum'][_0x51e5c1(0x4b3)]),[_0x85d6b6,_0x437f4d]=(0x0,h['useState'])(((_0x3744ad=_0x5672ad[_0x51e5c1(0x2b1)])==null?void 0x0:_0x3744ad[_0x51e5c1(0x3a2)])??'');if(!_0x5672ad[_0x51e5c1(0x2b1)])return null;let _0x5e1e26=(0x0,g[_0x51e5c1(0x186)])(_0x51e5c1(0x220),{'className':(0x0,f['clsx'])(_0x51e5c1(0x21b),f['borderClassName']),'children':[(0x0,g[_0x51e5c1(0x40a)])(_0x51e5c1(0x378),{'className':_0x51e5c1(0x245),'children':_0x557beb['t'](_0x51e5c1(0x407))}),(0x0,g[_0x51e5c1(0x186)])(_0x51e5c1(0x369),{'className':_0x51e5c1(0x482),'children':[_0x557beb['t'](_0x51e5c1(0x294)),(0x0,g[_0x51e5c1(0x40a)])(f[_0x51e5c1(0x345)],{'value':_0x4bc236,'onChange':_0x45ab6a})]}),(0x0,g[_0x51e5c1(0x186)])(_0x51e5c1(0x369),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x557beb['t']('bases-dashboard-ui.pivot.summarizeBy'),(0x0,g[_0x51e5c1(0x40a)])(G,{'value':String(_0x5872dd),'options':$e[_0x51e5c1(0x51d)](_0x27887a=>({'value':String(_0x27887a[_0x51e5c1(0x2a2)]),'label':_0x557beb['t'](_0x27887a[_0x51e5c1(0x426)])})),'onChange':_0x27733b=>{const _0x3d5090=_0x51e5c1;let _0x3467ed=$e['find'](_0x28ea52=>String(_0x28ea52[_0x3d5090(0x2a2)])===_0x27733b);_0x3467ed&&_0x24eb01(_0x3467ed[_0x3d5090(0x2a2)]);}})]}),(0x0,g[_0x51e5c1(0x186)])(_0x51e5c1(0x369),{'className':_0x51e5c1(0x482),'children':[_0x557beb['t'](_0x51e5c1(0x3a0)),(0x0,g[_0x51e5c1(0x40a)])(f['Input'],{'value':_0x85d6b6,'onChange':_0x437f4d})]}),(0x0,g[_0x51e5c1(0x186)])(_0x51e5c1(0x378),{'className':'univer-flex\x20univer-justify-end\x20univer-gap-2','children':[(0x0,g[_0x51e5c1(0x40a)])(f[_0x51e5c1(0x123)],{'onClick':_0x5672ad['onCancel'],'children':_0x557beb['t']('bases-dashboard-ui.pivot.cancel')}),(0x0,g[_0x51e5c1(0x40a)])(f[_0x51e5c1(0x123)],{'variant':_0x51e5c1(0x12d),'disabled':!_0x4bc236[_0x51e5c1(0x198)](),'onClick':()=>_0x5672ad[_0x51e5c1(0x151)](_0x4bc236[_0x51e5c1(0x198)](),_0x5872dd,_0x85d6b6),'children':_0x557beb['t']('bases-dashboard-ui.pivot.confirm')})]})]});return(0x0,g[_0x51e5c1(0x40a)])(t[_0x51e5c1(0x362)],{'title':_0x557beb['t'](_0x51e5c1(0x407)),'onClose':_0x5672ad[_0x51e5c1(0x3de)],'children':_0x5e1e26});}function st(_0x4fba04){const _0x2c82f3=_0x5ed5a2;let {config:_0x17cfed,commit:_0x4f727b}=_0x4fba04,_0x20f888=(0x0,m[_0x2c82f3(0x354)])(a[_0x2c82f3(0x331)]),_0x35b41c=_0x17cfed[_0x2c82f3(0x264)][_0x2c82f3(0x2c7)],_0xe50b2=_0x3a6096=>_0x4f727b(_0x1144f7=>_0x1144f7[_0x2c82f3(0x543)]({..._0x1144f7[_0x2c82f3(0x2e4)](),..._0x3a6096}));return(0x0,g[_0x2c82f3(0x186)])(_0x2c82f3(0x378),{'className':_0x2c82f3(0x367),'children':[(0x0,g[_0x2c82f3(0x186)])(_0x2c82f3(0x369),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x20f888['t'](_0x2c82f3(0x18a)),(0x0,g['jsx'])(G,{'className':_0x2c82f3(0x3ea),'value':String(_0x17cfed[_0x2c82f3(0x264)][_0x2c82f3(0x18d)]),'options':[{'value':String(y[_0x2c82f3(0x176)]['tabular']),'label':_0x20f888['t'](_0x2c82f3(0x1d9))},{'value':String(y[_0x2c82f3(0x176)][_0x2c82f3(0x1ce)]),'label':_0x20f888['t'](_0x2c82f3(0x50f))},{'value':String(y[_0x2c82f3(0x176)][_0x2c82f3(0x319)]),'label':_0x20f888['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x11de12=>{const _0x4740be=_0x2c82f3;let _0x559c94=[y[_0x4740be(0x176)]['tabular'],y[_0x4740be(0x176)][_0x4740be(0x1ce)],y[_0x4740be(0x176)]['outline']][_0x4740be(0x485)](_0xa059bc=>String(_0xa059bc)===_0x11de12);_0x559c94!==void 0x0&&_0x4f727b(_0x575040=>_0x575040[_0x4740be(0x38f)](_0x559c94));}})]}),[{'key':_0x2c82f3(0x4a8),'label':_0x2c82f3(0x300),'defaultValue':!0x1},{'key':_0x2c82f3(0x386),'label':'bases-dashboard-ui.pivot.repeatColumnLabels','defaultValue':!0x1},{'key':_0x2c82f3(0x3e4),'label':_0x2c82f3(0x32e),'defaultValue':!0x0},{'key':_0x2c82f3(0x24f),'label':_0x2c82f3(0x2f7),'defaultValue':!0x0},{'key':_0x2c82f3(0x1da),'label':_0x2c82f3(0x12a),'defaultValue':!0x0},{'key':_0x2c82f3(0x46d),'label':_0x2c82f3(0x26c),'defaultValue':!0x0}]['map'](_0x1a375d=>(0x0,g[_0x2c82f3(0x186)])(_0x2c82f3(0x369),{'className':_0x2c82f3(0x160),'children':[(0x0,g['jsx'])(f[_0x2c82f3(0x2b6)],{'checked':!!(_0x35b41c[_0x1a375d['key']]??_0x1a375d['defaultValue']),'disabled':_0x1a375d[_0x2c82f3(0x3b2)]==='repeatRowLabels'&&_0x17cfed['pivot'][_0x2c82f3(0x18d)]===y[_0x2c82f3(0x176)][_0x2c82f3(0x1ce)],'onChange':_0x4e0bbf=>_0xe50b2({[_0x1a375d[_0x2c82f3(0x3b2)]]:!!_0x4e0bbf})}),_0x20f888['t'](_0x1a375d['label'])]},_0x1a375d['key'])),_0x17cfed[_0x2c82f3(0x264)]['layout']===y[_0x2c82f3(0x176)][_0x2c82f3(0x319)]&&(0x0,g[_0x2c82f3(0x186)])(_0x2c82f3(0x369),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x20f888['t'](_0x2c82f3(0x3aa)),(0x0,g[_0x2c82f3(0x40a)])(G,{'className':'univer-w-36','value':String(_0x35b41c[_0x2c82f3(0x32a)]??y[_0x2c82f3(0x2c3)][_0x2c82f3(0x51e)]),'options':[{'value':String(y[_0x2c82f3(0x2c3)]['top']),'label':_0x20f888['t'](_0x2c82f3(0x4d6))},{'value':String(y[_0x2c82f3(0x2c3)][_0x2c82f3(0x37b)]),'label':_0x20f888['t'](_0x2c82f3(0x302))}],'onChange':_0x140420=>{const _0x13898a=_0x2c82f3;let _0x36649c=[y['PivotSubtotalPositionEnum'][_0x13898a(0x51e)],y['PivotSubtotalPositionEnum'][_0x13898a(0x37b)]][_0x13898a(0x485)](_0x41c644=>String(_0x41c644)===_0x140420);_0x36649c!==void 0x0&&_0xe50b2({'rowSubtotalPosition':_0x36649c});}})]}),(0x0,g[_0x2c82f3(0x186)])('label',{'className':_0x2c82f3(0x3e7),'children':[_0x20f888['t'](_0x2c82f3(0x127)),(0x0,g[_0x2c82f3(0x40a)])(G,{'className':_0x2c82f3(0x3ea),'value':String(_0x17cfed['pivot'][_0x2c82f3(0x3cb)]===y['PivotTableValuePositionEnum']['None']?y['PivotTableValuePositionEnum'][_0x2c82f3(0x380)]:_0x17cfed[_0x2c82f3(0x264)][_0x2c82f3(0x3cb)]),'options':[{'value':String(y['PivotTableValuePositionEnum'][_0x2c82f3(0x380)]),'label':_0x20f888['t'](_0x2c82f3(0x4cc))},{'value':String(y[_0x2c82f3(0x3ba)][_0x2c82f3(0x1dc)]),'label':_0x20f888['t'](_0x2c82f3(0x3fb))}],'onChange':_0x16e62f=>{const _0x3f01da=_0x2c82f3;let _0x492093=[y[_0x3f01da(0x3ba)]['Column'],y[_0x3f01da(0x3ba)]['Row']]['find'](_0x48db7f=>String(_0x48db7f)===_0x16e62f);_0x492093!==void 0x0&&_0x4f727b(_0x54c512=>_0x54c512[_0x3f01da(0x337)](_0x492093,_0x54c512[_0x3f01da(0x33e)]()<0x0?0x0:_0x54c512[_0x3f01da(0x33e)]()));}})]}),(0x0,g[_0x2c82f3(0x186)])(_0x2c82f3(0x369),{'className':_0x2c82f3(0x3e7),'children':[_0x20f888['t'](_0x2c82f3(0x2ee)),(0x0,g[_0x2c82f3(0x40a)])(f['InputNumber'],{'className':_0x2c82f3(0x229),'min':0x1,'max':0x14,'value':_0x35b41c[_0x2c82f3(0x363)]??0x1,'onChange':_0x26066f=>{const _0x58b19d=_0x2c82f3;let _0xc1d34a=Number(_0x26066f);Number[_0x58b19d(0x513)](_0xc1d34a)&&_0xc1d34a>=0x1&&_0xe50b2({'pageWrap':_0xc1d34a});}})]}),(0x0,g[_0x2c82f3(0x186)])(_0x2c82f3(0x369),{'className':_0x2c82f3(0x3e7),'children':[_0x20f888['t'](_0x2c82f3(0x32d)),(0x0,g['jsx'])(G,{'className':_0x2c82f3(0x3ea),'value':String(_0x35b41c[_0x2c82f3(0x376)]??!0x1),'options':[{'value':_0x2c82f3(0x2d5),'label':_0x20f888['t'](_0x2c82f3(0x138))},{'value':'true','label':_0x20f888['t'](_0x2c82f3(0x31b))}],'onChange':_0x4042bf=>_0xe50b2({'pageOverThenDown':_0x4042bf===_0x2c82f3(0x556)})})]})]});}function ct(_0x3a7bd6,_0x533ddc,_0x352863,_0x514706){const _0x53e945=_0x5ed5a2;let _0x313e2f=_0x3a7bd6[_0x53e945(0x301)](_0x533ddc)[_0x53e945(0x485)](_0x41d2e2=>_0x3a7bd6[_0x53e945(0x51b)](_0x41d2e2[_0x53e945(0x2ec)]())[_0x53e945(0x3cc)]!==y[_0x53e945(0x31a)]['Value']);_0x352863!==y[_0x53e945(0x31a)]['Value']&&_0x313e2f?_0x3a7bd6[_0x53e945(0x1ec)](_0x313e2f[_0x53e945(0x2ec)](),_0x352863,_0x514706):_0x3a7bd6[_0x53e945(0x163)](_0x533ddc,_0x352863,_0x514706);}function lt(_0x32f05d,_0x47c09f,_0xcd1dd5,_0x4effd6){const _0x4b1b83=_0x5ed5a2;return _0x47c09f===y[_0x4b1b83(0x299)]['blank']?_0x4effd6:_0x47c09f===y[_0x4b1b83(0x299)][_0x4b1b83(0x3ac)]&&_0xcd1dd5?a[_0x4b1b83(0x136)]['format'](_0xcd1dd5,Number(_0x32f05d)):_0x32f05d;}function ut(_0x282098){const _0x1f7ea8=_0x5ed5a2;return _0x282098[_0x1f7ea8(0x436)]===a[_0x1f7ea8(0x35c)]['Number']||_0x282098[_0x1f7ea8(0x436)]===a[_0x1f7ea8(0x35c)]['Currency']||_0x282098['type']===a[_0x1f7ea8(0x35c)][_0x1f7ea8(0x336)]||_0x282098['type']===a[_0x1f7ea8(0x35c)]['Rating'];}function dt(_0x2f8482){const _0x4990e9=_0x5ed5a2;switch(_0x2f8482){case y[_0x4990e9(0x31a)]['Row']:return _0x4990e9(0x46e);case y['PivotTableFiledAreaEnum'][_0x4990e9(0x380)]:return _0x4990e9(0x191);case y[_0x4990e9(0x31a)]['Value']:return _0x4990e9(0x510);default:return _0x4990e9(0x48e);}}function ft({config:_0x491470,onChange:_0x15079f,runtime:_0x3040f8,table:_0x43d5d6}){const _0x4463b4=_0x5ed5a2;let _0x564964=(0x0,m[_0x4463b4(0x354)])(a[_0x4463b4(0x331)]),[_0x5a1004,_0x53a4f7]=(0x0,h['useState'])(_0x4463b4(0x43a));return(0x0,g[_0x4463b4(0x186)])(_0x4463b4(0x544),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[(0x0,g[_0x4463b4(0x40a)])(n[_0x4463b4(0x23d)],{'ariaLabel':_0x564964['t'](_0x4463b4(0x17d)),'className':_0x4463b4(0x228),'items':[{'label':_0x564964['t']('bases-dashboard-ui.pivot.chartConfiguration'),'panelId':_0x4463b4(0x3c7),'value':_0x4463b4(0x43a)},{'label':_0x564964['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'panelId':_0x4463b4(0x486),'value':'pivot'}],'value':_0x5a1004,'variant':_0x4463b4(0x381),'onChange':_0x53a4f7}),(0x0,g[_0x4463b4(0x40a)])('div',{'className':_0x4463b4(0x4f5),'children':_0x5a1004===_0x4463b4(0x43a)?_0x3040f8&&(0x0,g['jsx'])(he,{'config':_0x491470,'runtime':_0x3040f8,'tableName':_0x43d5d6[_0x4463b4(0x416)],'onChange':_0x15079f}):(0x0,g[_0x4463b4(0x40a)])(et,{'config':_0x491470,'table':_0x43d5d6,'onChange':_0x15079f})})]});}function pt({tableId:_0x45b9d8,unitId:_0x244908,viewId:_0x558962}){const _0x20d325=_0x5ed5a2;let [_0x3b8b89,_0x438c86]=(0x0,h[_0x20d325(0x541)])(!0x1),_0x49ee87=(0x0,m[_0x20d325(0x354)])(a[_0x20d325(0x1ac)]),_0x3df9f1=(0x0,m['useDependency'])(a[_0x20d325(0x3b0)]),_0x3b13ef=(0x0,m[_0x20d325(0x354)])(a[_0x20d325(0x2bd)]),_0x372d3f=(0x0,m[_0x20d325(0x354)])(a[_0x20d325(0x331)]),_0xfd04cd=(0x0,m[_0x20d325(0x354)])(e['BaseChartRuntimeService']),[_0x97c8d5,_0x303780]=(0x0,h['useState'])(null),[_0x78f687,_0xfe3d7f]=(0x0,h[_0x20d325(0x541)])(null),_0x54ce22=(0x0,h[_0x20d325(0x1b3)])(_0x20d325(0x4ac)+(0x0,a[_0x20d325(0x19c)])(0x8)),[_0x5247d9,_0x5e3a87]=(0x0,h['useState'])(!0x1),_0x4bd584=_0x3df9f1['getUnit'](_0x244908,a[_0x20d325(0x39a)][_0x20d325(0x15a)]),_0xc97def=_0x4bd584==null?void 0x0:_0x4bd584[_0x20d325(0x2c2)]()[_0x20d325(0x308)][_0x45b9d8],_0x1693af=_0xc97def==null?void 0x0:_0xc97def['views'][_0x558962],_0x536704=mt(_0x1693af),_0x4e203d=T(_0x244908,_0x45b9d8,_0x558962);if((0x0,h[_0x20d325(0x45e)])(()=>{const _0x4dea1d=_0x20d325;if(!_0x536704)return;let _0x5c6809=_0x54ce22[_0x4dea1d(0x28f)];return _0xfd04cd[_0x4dea1d(0x39c)](_0x5c6809,{'unitId':_0x244908,'tableId':_0x45b9d8,'viewId':_0x558962,'filters':[]}),()=>{const _0x235f32=_0x4dea1d;_0xfd04cd[_0x235f32(0x473)](_0x244908,_0x5c6809);};},[_0x536704,_0xfd04cd,_0x45b9d8,_0x244908,_0x558962]),(0x0,h[_0x20d325(0x45e)])(()=>{const _0x59e2ce=_0x20d325;if(!mt(_0x1693af))return;let _0x3ce27e=!0x0,_0x27ddbc={'unitId':_0x244908,'tableId':_0x45b9d8,'viewId':_0x558962,'filters':[_0x1693af['filter']??null]};return _0xfd04cd[_0x59e2ce(0x493)](_0x244908,_0x54ce22['current'],_0x27ddbc)[_0x59e2ce(0x52a)](_0x27e145=>{const _0x3df7a4=_0x59e2ce;_0x3ce27e&&_0x27e145&&(_0x303780(_0x27e145),_0xfe3d7f(_0xfd04cd['getChartRuntime'](_0x244908,_0x54ce22[_0x3df7a4(0x28f)])??null),_0x5e3a87(!0x1));})[_0x59e2ce(0x26e)](_0x30f3b0=>{const _0x5a44cf=_0x59e2ce;_0x3b13ef[_0x5a44cf(0x458)](_0x5a44cf(0x4b9),_0x30f3b0),_0x3ce27e&&(_0x303780(null),_0x5e3a87(!0x0));}),()=>{_0x3ce27e=!0x1;};},[_0x3b13ef,_0xfd04cd,_0x45b9d8,_0x244908,_0x1693af,_0x558962]),!_0xc97def||!mt(_0x1693af))return null;let _0x233bc5=_0xfd04cd[_0x20d325(0x448)](_0x244908,_0x54ce22[_0x20d325(0x28f)])===_0x78f687?_0x78f687:null,_0x24fed6=_0x97c8d5?(0x0,g[_0x20d325(0x186)])(_0x20d325(0x378),{'className':_0x20d325(0x39f),'style':{'gridTemplateRows':_0x1693af['config'][_0x20d325(0x233)]===_0x20d325(0x546)?_0x20d325(0x1f8):'minmax(0,\x201fr)'},'children':[_0x1693af[_0x20d325(0x489)]['displayMode']!==_0x20d325(0x1a8)&&_0x233bc5&&(0x0,g[_0x20d325(0x40a)])(_0x20d325(0x378),{'className':_0x20d325(0x2f3),'children':(0x0,g['jsx'])(re,{'isRowDirection':(0x0,e['resolveBasePivotChartRowDirection'])(_0x1693af['config']['chart']['orient']),'runtime':_0x233bc5})}),_0x1693af[_0x20d325(0x489)]['displayMode']!==_0x20d325(0x43a)&&(0x0,g[_0x20d325(0x40a)])(_0x20d325(0x378),{'className':_0x20d325(0x446),'children':(0x0,g[_0x20d325(0x40a)])(Ge,{'pivot':_0x1693af['config'][_0x20d325(0x264)],'view':_0x97c8d5['view']})})]}):(0x0,g[_0x20d325(0x40a)])(_0x20d325(0x378),{'className':_0x20d325(0x450),'children':_0x5247d9?_0x372d3f['t'](_0x20d325(0x45b)):_0x372d3f['t'](_0x20d325(0x42a))}),_0x1900bc=(0x0,g[_0x20d325(0x40a)])(ft,{'config':_0x1693af[_0x20d325(0x489)],'runtime':_0x233bc5,'table':_0xc97def,'onChange':_0x54d47d=>{const _0x2a9bc2=_0x20d325;_0x3df9f1[_0x2a9bc2(0x346)](_0x244908),_0x3df9f1[_0x2a9bc2(0x19d)](_0x244908),_0x49ee87[_0x2a9bc2(0x3f9)](e[_0x2a9bc2(0x303)]['id'],{'unitId':_0x244908,'tableId':_0x45b9d8,'viewId':_0x558962,'patch':_0x54d47d})['catch'](_0x1db5a1=>_0x3b13ef['error'](_0x2a9bc2(0x2b3),_0x1db5a1));}});return(0x0,g[_0x20d325(0x40a)])(ue,{'children':(0x0,g[_0x20d325(0x186)])(_0x20d325(0x378),{'className':_0x20d325(0x2be),'children':[_0x4e203d&&(0x0,g['jsx'])(f[_0x20d325(0x123)],{'onClick':()=>_0x438c86(!0x0),'children':_0x372d3f['t']('bases-dashboard-ui.pivot.chartConfiguration')}),(0x0,g[_0x20d325(0x40a)])('div',{'className':_0x20d325(0x32c),'children':_0x24fed6}),_0x4e203d&&_0x3b8b89&&(0x0,g[_0x20d325(0x40a)])(t['BaseMobileDrawer'],{'title':_0x372d3f['t'](_0x20d325(0x17d)),'onClose':()=>_0x438c86(!0x1),'children':_0x1900bc})]})});}function mt(_0x43651d){const _0x1c8b06=_0x5ed5a2;return(_0x43651d==null?void 0x0:_0x43651d[_0x1c8b06(0x436)])===a[_0x1c8b06(0x39b)][_0x1c8b06(0x1f7)]&&typeof _0x43651d[_0x1c8b06(0x489)]==_0x1c8b06(0x335)&&_0x43651d[_0x1c8b06(0x489)]!==null&&_0x1c8b06(0x264)in _0x43651d['config']&&_0x1c8b06(0x43a)in _0x43651d['config']&&_0x1c8b06(0x233)in _0x43651d[_0x1c8b06(0x489)];}let ht=class extends a['Disposable']{constructor(_0x196831,_0x110bb9,_0x5b1bfe,_0x20a880,_0x4ab39d,_0x45c17f){const _0xb91a39=_0x5ed5a2;super(),this[_0xb91a39(0x272)](_0x110bb9[_0xb91a39(0x521)]({'type':a[_0xb91a39(0x39b)][_0xb91a39(0x1f7)],'renderMode':_0xb91a39(0x536),'icon':s[_0xb91a39(0x480)],'component':pt,'menu':{get 'label'(){const _0x1341c0=_0xb91a39;return _0x45c17f['t'](_0x1341c0(0x17d));},get 'description'(){const _0x409eff=_0xb91a39;return _0x45c17f['t'](_0x409eff(0x161));},get 'defaultName'(){const _0x150300=_0xb91a39;return _0x45c17f['t'](_0x150300(0x22a));}}})),this[_0xb91a39(0x272)](_0x196831[_0xb91a39(0x521)](gt(_0x5b1bfe,_0x20a880,_0x4ab39d,_0x45c17f)));}};function _0x46f3(_0x13e4ae,_0x2033b0){_0x13e4ae=_0x13e4ae-0x120;const _0x4fea9b=_0x4fea();let _0x46f3f0=_0x4fea9b[_0x13e4ae];return _0x46f3f0;}ht=P([N(0x0,t['IBaseDashboardUIExtensionRegistryService']),N(0x1,t[_0x5ed5a2(0x26d)]),N(0x2,(0x0,a[_0x5ed5a2(0x1cf)])(e[_0x5ed5a2(0x3e3)])),N(0x3,a[_0x5ed5a2(0x1ac)]),N(0x4,a[_0x5ed5a2(0x227)]),N(0x5,(0x0,a[_0x5ed5a2(0x1cf)])(a[_0x5ed5a2(0x331)]))],ht);function gt(_0x551bfb,_0x55d9e0,_0x5af27e,_0x12493c){const _0x7bf75d=_0x5ed5a2;return{'change$':(0x0,c['merge'])(_0x551bfb[_0x7bf75d(0x465)],_0x5af27e[_0x7bf75d(0x4b8)]),'component':Ie,get 'labels'(){const _0x17812c=_0x7bf75d;return{'add':_0x12493c['t'](_0x17812c(0x43e)),'configure':_0x64f6ca=>_0x12493c['t']('bases-dashboard-ui.dashboard.configure',_0x64f6ca),'delete':_0x12493c['t']('bases-dashboard-ui.dashboard.delete'),'new':_0x12493c['t']('bases-dashboard-ui.dashboard.new'),'rename':_0x12493c['t'](_0x17812c(0x358)),'search':_0x12493c['t'](_0x17812c(0x372)),'section':_0x12493c['t'](_0x17812c(0x3d2))};},'getItems':_0x3406a0=>{const _0x18875c=_0x7bf75d;let _0x31c3a2=_0x551bfb[_0x18875c(0x49b)](_0x3406a0);return _0x31c3a2[_0x18875c(0x3ad)]['flatMap'](_0x460306=>{const _0x3b8e08=_0x18875c;let _0x2ff2db=_0x31c3a2[_0x3b8e08(0x238)][_0x460306];return _0x2ff2db?[{'id':_0x2ff2db['id'],'name':_0x2ff2db[_0x3b8e08(0x416)],'readonly':!(0x0,e['canEditBaseDashboard'])(_0x5af27e,_0x3406a0,_0x2ff2db['id'])}]:[];});},'create':async _0x82209e=>{const _0x3e6d20=_0x7bf75d;let _0xd7dc71=_0x551bfb['getResource'](_0x82209e),_0x5ec4f7=_0x3e6d20(0x48b)+(0x0,a[_0x3e6d20(0x19c)])(0x8),_0x7118b4=_t(_0xd7dc71[_0x3e6d20(0x3ad)]['flatMap'](_0x3a07b4=>{const _0x54a27e=_0x3e6d20;let _0x200936=_0xd7dc71[_0x54a27e(0x238)][_0x3a07b4];return _0x200936?[_0x200936['name']]:[];}),_0x1ecaa0=>_0x12493c['t'](_0x3e6d20(0x15c),String(_0x1ecaa0)));return await _0x55d9e0['executeCommand'](e[_0x3e6d20(0x208)]['id'],{'unitId':_0x82209e,'dashboard':{'id':_0x5ec4f7,'name':_0x7118b4,'widgetOrder':[],'widgets':{}}})?_0x5ec4f7:null;},'rename':async(_0x40d24e,_0x51c67f,_0x12bc59)=>{const _0x386bfa=_0x7bf75d;let _0x15a389=_0x551bfb[_0x386bfa(0x4d7)](_0x40d24e,_0x51c67f);return!!(_0x15a389&&await _0x55d9e0[_0x386bfa(0x3f9)](e[_0x386bfa(0x205)]['id'],{'unitId':_0x40d24e,'dashboard':{..._0x15a389,'name':_0x12bc59}}));},'remove':(_0x31954f,_0x2d7981)=>_0x55d9e0[_0x7bf75d(0x3f9)](e['DeleteBaseDashboardCommand']['id'],{'unitId':_0x31954f,'dashboardId':_0x2d7981})};}function _t(_0x4ad269,_0x2b443f){const _0x1823ce=_0x5ed5a2;let _0x426f57=new Set(_0x4ad269),_0x4407cc=_0x426f57[_0x1823ce(0x1fe)]+0x1,_0x55a775=_0x2b443f(_0x4407cc);for(;_0x426f57['has'](_0x55a775);)_0x4407cc+=0x1,_0x55a775=_0x2b443f(_0x4407cc);return _0x55a775;}let Y=class extends a[_0x5ed5a2(0x449)]{constructor(_0x1d540f=C,_0x711f6b,_0x2637d6){const _0x44fdad=_0x5ed5a2;super(),this[_0x44fdad(0x273)]=_0x1d540f,this['_injector']=_0x711f6b,this[_0x44fdad(0x185)]=_0x2637d6;let {..._0x475aad}=(0x0,a[_0x44fdad(0x173)])({},C,this[_0x44fdad(0x273)]);this['_configService']['setConfig'](S,_0x475aad);}['onStarting'](){const _0xe14021=_0x5ed5a2;this[_0xe14021(0x146)][_0xe14021(0x4cd)]([F]),this['_injector']['add']([W]),this[_0xe14021(0x146)][_0xe14021(0x4cd)]([ht]);}[_0x5ed5a2(0x390)](){const _0x11ff4a=_0x5ed5a2;(0x0,a[_0x11ff4a(0x440)])(this['_injector'],[[F],[W],[ht]]);}};B(Y,_0x5ed5a2(0x436),a['UniverInstanceType'][_0x5ed5a2(0x15a)]),B(Y,_0x5ed5a2(0x508),_0x5ed5a2(0x49e)),B(Y,_0x5ed5a2(0x44d),b),B(Y,_0x5ed5a2(0x1f0),x),Y=P([(0x0,a[_0x5ed5a2(0x368)])(r[_0x5ed5a2(0x37a)],e['UniverBaseDashboardPlugin'],t[_0x5ed5a2(0x41a)],n[_0x5ed5a2(0x47f)],i[_0x5ed5a2(0x46f)],o['UniverDocsUIPlugin']),N(0x1,(0x0,a['Inject'])(a[_0x5ed5a2(0x47b)])),N(0x2,a['IConfigService'])],Y);function vt(_0x1c31b7,_0xf951bf,_0x2a883a,_0x3f7d39){const _0x21a40b=_0x5ed5a2;let _0x2668e4={..._0x1c31b7};if(_0xf951bf[_0x21a40b(0x433)]('w')){let _0x1508d9=_0x1c31b7[_0x21a40b(0x13f)]+_0x1c31b7[_0x21a40b(0x164)];_0x2668e4[_0x21a40b(0x13f)]=Math['max'](0x0,Math[_0x21a40b(0x2e6)](_0x1508d9-0x1,_0x1c31b7[_0x21a40b(0x13f)]+_0x2a883a)),_0x2668e4['columnSpan']=_0x1508d9-_0x2668e4['column'];}else _0xf951bf[_0x21a40b(0x433)]('e')&&(_0x2668e4[_0x21a40b(0x164)]=Math[_0x21a40b(0x464)](0x1,Math[_0x21a40b(0x2e6)](e[_0x21a40b(0x1f5)]-_0x1c31b7['column'],_0x1c31b7[_0x21a40b(0x164)]+_0x2a883a)));if(_0xf951bf[_0x21a40b(0x433)]('n')){let _0x10cf57=_0x1c31b7[_0x21a40b(0x3ab)]+_0x1c31b7[_0x21a40b(0x120)];_0x2668e4['row']=Math['max'](0x0,Math[_0x21a40b(0x2e6)](_0x10cf57-0x1,_0x1c31b7[_0x21a40b(0x3ab)]+_0x3f7d39)),_0x2668e4['rowSpan']=_0x10cf57-_0x2668e4[_0x21a40b(0x3ab)];}else _0xf951bf[_0x21a40b(0x433)]('s')&&(_0x2668e4[_0x21a40b(0x120)]=Math['max'](0x1,_0x1c31b7[_0x21a40b(0x120)]+_0x3f7d39));return _0x2668e4;}function yt(_0xe63c4){const _0x38cd35=_0x5ed5a2;let _0x4d7194=Math[_0x38cd35(0x464)](0x1,Math[_0x38cd35(0x2e6)](e[_0x38cd35(0x1f5)],Math[_0x38cd35(0x16a)](_0xe63c4[_0x38cd35(0x164)])));return{'column':Math[_0x38cd35(0x464)](0x0,Math['min'](e[_0x38cd35(0x1f5)]-_0x4d7194,Math['round'](_0xe63c4['column']))),'row':Math['max'](0x0,Math[_0x38cd35(0x16a)](_0xe63c4['row'])),'columnSpan':_0x4d7194,'rowSpan':Math[_0x38cd35(0x464)](0x1,Math['round'](_0xe63c4[_0x38cd35(0x120)]))};}function bt(_0x2d433c,_0xf1bcba,_0x3572d9){const _0x45f953=_0x5ed5a2;let _0x3cc1d9=new Map(_0x2d433c),_0xb22b1e=yt(_0x3572d9);_0x3cc1d9[_0x45f953(0x470)](_0xf1bcba,_0xb22b1e);let _0x559149=[[_0xf1bcba,_0xb22b1e]];for(let [_0x64661c,_0x4a01d9]of _0x3cc1d9){if(_0x64661c===_0xf1bcba)continue;let _0x584554=yt(_0x4a01d9);for(;_0x559149[_0x45f953(0x351)](([,_0x12b4aa])=>St(_0x584554,_0x12b4aa));)_0x584554={..._0x584554,'row':_0x584554[_0x45f953(0x3ab)]+0x1};for(;_0x584554['row']>0x0;){let _0x3ac0db={..._0x584554,'row':_0x584554[_0x45f953(0x3ab)]-0x1};if(_0x559149[_0x45f953(0x351)](([,_0x345109])=>St(_0x3ac0db,_0x345109)))break;_0x584554=_0x3ac0db;}_0x559149['push']([_0x64661c,_0x584554]),_0x3cc1d9['set'](_0x64661c,_0x584554);}return _0x3cc1d9;}function xt(_0x2fb15f,_0xb2abb5,_0x900611,_0x1801ca=0x38,_0xc1b0d7=0x16){const _0xd54636=_0x5ed5a2;return _0x2fb15f<_0xb2abb5+_0x1801ca?-Math['ceil'](_0xc1b0d7*(0x1-Math[_0xd54636(0x464)](0x0,_0x2fb15f-_0xb2abb5)/_0x1801ca)):_0x2fb15f>_0x900611-_0x1801ca?Math[_0xd54636(0x310)](_0xc1b0d7*(0x1-Math[_0xd54636(0x464)](0x0,_0x900611-_0x2fb15f)/_0x1801ca)):0x0;}function St(_0x5e2218,_0x51a455){const _0x630064=_0x5ed5a2;return _0x5e2218['column']<_0x51a455[_0x630064(0x13f)]+_0x51a455[_0x630064(0x164)]&&_0x5e2218[_0x630064(0x13f)]+_0x5e2218['columnSpan']>_0x51a455[_0x630064(0x13f)]&&_0x5e2218['row']<_0x51a455[_0x630064(0x3ab)]+_0x51a455[_0x630064(0x120)]&&_0x5e2218[_0x630064(0x3ab)]+_0x5e2218[_0x630064(0x120)]>_0x51a455[_0x630064(0x3ab)];}const Ct=[{'direction':'nw','className':'univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize'},{'direction':'n','className':_0x5ed5a2(0x4f4)},{'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':_0x5ed5a2(0x234)},{'direction':'se','className':_0x5ed5a2(0x143)},{'direction':'s','className':_0x5ed5a2(0x4e8)},{'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':_0x5ed5a2(0x2f5)}];function wt({dashboard:_0x36a427,dragLabel:_0x4004ba,editable:_0x22bcea=!0x0,onLayoutsCommit:_0x543e93,onSelectWidget:_0x3fdda7,renderWidget:_0x5b65f9,renderWidgetActions:_0x460d70,resizeLabel:_0x689873,selectedWidgetId:_0x30e716,widgetLabel:_0x5bd0f4}){const _0x1e443c=_0x5ed5a2;let _0x1b6eff=(0x0,h['useRef'])(null),_0x1698a5=(0x0,h[_0x1e443c(0x1b3)])(null),[_0x343ca7,_0x53c9d1]=(0x0,h[_0x1e443c(0x541)])(!0x1),_0x2d65c9=(0x0,h[_0x1e443c(0x16e)])(()=>new Map(_0x36a427['widgetOrder']['flatMap'](_0x403c1d=>{const _0x5d9733=_0x1e443c;let _0x363769=_0x36a427[_0x5d9733(0x329)][_0x403c1d];return _0x363769?[[_0x403c1d,_0x363769[_0x5d9733(0x18d)]]]:[];})),[_0x36a427]),[_0x50e124,_0x204ff0]=(0x0,h['useState'])(_0x2d65c9);(0x0,h[_0x1e443c(0x45e)])(()=>{const _0x32941f=_0x1e443c;_0x1698a5[_0x32941f(0x28f)]||_0x204ff0(_0x2d65c9);},[_0x2d65c9]),(0x0,h[_0x1e443c(0x45e)])(()=>{const _0xdf0bd3=_0x1e443c;if(!_0x343ca7)return;let _0xf5828d=_0x1d6707=>{const _0xfc8b7c=_0x46f3;let _0xfbddb4=_0x1b6eff[_0xfc8b7c(0x28f)];if(!_0xfbddb4)return null;let _0x58617d=_0xfbddb4['getBoundingClientRect'](),_0x32255b=Math['max'](0x1,(_0x58617d[_0xfc8b7c(0x125)]-0x8*(e[_0xfc8b7c(0x1f5)]-0x1))/e[_0xfc8b7c(0x1f5)]),_0x45af15=Math[_0xfc8b7c(0x16a)]((_0xfbddb4[_0xfc8b7c(0x3fc)]-_0x1d6707['startScrollTop'])/(e[_0xfc8b7c(0x1e6)]+0x8)),_0x39dd35=Math[_0xfc8b7c(0x16a)]((_0x1d6707[_0xfc8b7c(0x1be)]-_0x1d6707[_0xfc8b7c(0x1d8)])/(_0x32255b+0x8)),_0x51bcb5=Math[_0xfc8b7c(0x16a)]((_0x1d6707[_0xfc8b7c(0x25c)]-_0x1d6707['startY'])/(e[_0xfc8b7c(0x1e6)]+0x8))+_0x45af15,_0x4ae8e5=_0x1d6707[_0xfc8b7c(0x249)]==='move'?{..._0x1d6707[_0xfc8b7c(0x2dd)],'column':_0x1d6707[_0xfc8b7c(0x2dd)][_0xfc8b7c(0x13f)]+_0x39dd35,'row':_0x1d6707[_0xfc8b7c(0x2dd)][_0xfc8b7c(0x3ab)]+_0x51bcb5}:vt(_0x1d6707[_0xfc8b7c(0x2dd)],_0x1d6707[_0xfc8b7c(0x2bb)]??'se',_0x39dd35,_0x51bcb5),_0x4935da=bt(_0x1d6707['initialLayouts'],_0x1d6707['id'],_0x4ae8e5);return _0x204ff0(_0x4935da),_0x4935da;},_0x373e5c=_0x4819f6=>{const _0x43cd33=_0x46f3;let _0x18aa5f=_0x1698a5['current'];if(!_0x18aa5f)return;let _0x459f14={..._0x18aa5f,'pointerX':_0x4819f6[_0x43cd33(0x1bf)],'pointerY':_0x4819f6[_0x43cd33(0x512)]};_0x1698a5[_0x43cd33(0x28f)]=_0x459f14;},_0x2d8a44=()=>{const _0xcb0306=_0x46f3;let _0x49799b=_0x1698a5[_0xcb0306(0x28f)],_0x219098=_0x49799b?_0xf5828d(_0x49799b):null;_0x1698a5[_0xcb0306(0x28f)]=null,_0x53c9d1(!0x1),_0x219098&&_0x543e93(_0x219098);},_0x9a853=0x0,_0x29cd81=()=>{const _0x4d17df=_0x46f3;let _0x12f96e=_0x1b6eff['current'],_0x56a782=_0x1698a5[_0x4d17df(0x28f)];if(_0x12f96e&&_0x56a782){let _0x4ec854=_0x12f96e[_0x4d17df(0x1eb)](),_0x2bdcb5=xt(_0x56a782['pointerY'],_0x4ec854[_0x4d17df(0x51e)],_0x4ec854[_0x4d17df(0x37b)]);_0x2bdcb5!==0x0&&(_0x12f96e[_0x4d17df(0x3fc)]+=_0x2bdcb5),_0xf5828d(_0x56a782),_0x9a853=requestAnimationFrame(_0x29cd81);}};return _0x9a853=requestAnimationFrame(_0x29cd81),window[_0xdf0bd3(0x442)]('pointermove',_0x373e5c),window[_0xdf0bd3(0x442)](_0xdf0bd3(0x4b4),_0x2d8a44),()=>{const _0x478694=_0xdf0bd3;cancelAnimationFrame(_0x9a853),window[_0x478694(0x4a1)]('pointermove',_0x373e5c),window[_0x478694(0x4a1)](_0x478694(0x4b4),_0x2d8a44);};},[_0x343ca7,_0x543e93]);let _0x59a258=Math['max'](0x8,...Array[_0x1e443c(0x456)](_0x50e124[_0x1e443c(0x51c)]())['map'](_0x64fa93=>_0x64fa93['row']+_0x64fa93[_0x1e443c(0x120)])),_0x2d7e62=(_0x45fd92,_0x43ce68,_0x46a9a0,_0x7ffe32)=>{const _0x140783=_0x1e443c;_0x45fd92[_0x140783(0x48a)](),_0x45fd92[_0x140783(0x314)]();let _0x53fe8d=_0x1b6eff[_0x140783(0x28f)],_0x470019={'id':_0x43ce68['id'],'mode':_0x46a9a0,'pointerX':_0x45fd92[_0x140783(0x1bf)],'pointerY':_0x45fd92[_0x140783(0x512)],'startX':_0x45fd92[_0x140783(0x1bf)],'startY':_0x45fd92[_0x140783(0x512)],'startScrollTop':(_0x53fe8d==null?void 0x0:_0x53fe8d[_0x140783(0x3fc)])??0x0,'initial':_0x50e124[_0x140783(0x353)](_0x43ce68['id'])??_0x43ce68['layout'],'initialLayouts':new Map(_0x50e124),'resizeDirection':_0x7ffe32};_0x1698a5[_0x140783(0x28f)]=_0x470019,_0x53c9d1(!0x0);};return(0x0,g[_0x1e443c(0x40a)])(_0x1e443c(0x378),{'ref':_0x1b6eff,'data-dashboard-scroll-container':!0x0,'className':(0x0,f[_0x1e443c(0x328)])(_0x1e443c(0x490),f[_0x1e443c(0x1d0)]),'onClick':_0x22bcea?_0x74655a=>{const _0x6fc1c9=_0x1e443c;if(!(_0x74655a[_0x6fc1c9(0x33b)]instanceof Node)||!_0x74655a['currentTarget']['contains'](_0x74655a[_0x6fc1c9(0x33b)]))return;let _0x38c5f3=_0x74655a[_0x6fc1c9(0x33b)]instanceof Element?_0x74655a['target']:_0x74655a[_0x6fc1c9(0x33b)][_0x6fc1c9(0x3d6)];_0x38c5f3!=null&&_0x38c5f3[_0x6fc1c9(0x342)](_0x6fc1c9(0x31d))||_0x3fdda7==null||_0x3fdda7();}:void 0x0,'children':(0x0,g[_0x1e443c(0x40a)])(_0x1e443c(0x378),{'data-dashboard-grid':!0x0,'className':_0x1e443c(0x4c1),'style':{'gap':0x8,'gridAutoRows':e[_0x1e443c(0x1e6)],'minHeight':_0x59a258*(e[_0x1e443c(0x1e6)]+0x8)},'children':_0x36a427[_0x1e443c(0x44b)][_0x1e443c(0x51d)](_0x1bcfa0=>{const _0x5acc15=_0x1e443c;var _0x16f2f1;let _0x315157=_0x36a427[_0x5acc15(0x329)][_0x1bcfa0],_0x26e06a=_0x50e124[_0x5acc15(0x353)](_0x1bcfa0);return!_0x315157||!_0x26e06a?null:(0x0,g[_0x5acc15(0x186)])(_0x5acc15(0x33d),{'data-dashboard-widget':_0x315157['id'],'aria-label':_0x315157[_0x5acc15(0x2cb)]??_0x5bd0f4(_0x315157),'className':(0x0,f['clsx'])(_0x5acc15(0x41f),_0x315157['type']===e[_0x5acc15(0x311)][_0x5acc15(0x192)]||_0x315157[_0x5acc15(0x436)]===e[_0x5acc15(0x311)][_0x5acc15(0x39d)]?_0x5acc15(0x38d):'univer-bg-gray-0\x20dark:!univer-bg-gray-900',_0x22bcea&&_0x30e716===_0x315157['id']?'univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500':_0x5acc15(0x3e5)),'style':{'gridColumn':_0x26e06a[_0x5acc15(0x13f)]+0x1+_0x5acc15(0x3c2)+_0x26e06a[_0x5acc15(0x164)],'gridRow':_0x26e06a['row']+0x1+_0x5acc15(0x3c2)+_0x26e06a[_0x5acc15(0x120)]},'tabIndex':_0x22bcea?0x0:void 0x0,'onClick':_0x22bcea?()=>_0x3fdda7==null?void 0x0:_0x3fdda7(_0x315157['id']):void 0x0,'onFocus':_0x22bcea?()=>_0x3fdda7==null?void 0x0:_0x3fdda7(_0x315157['id']):void 0x0,'children':[_0x22bcea&&(0x0,g[_0x5acc15(0x40a)])(_0x5acc15(0x304),{'type':_0x5acc15(0x304),'aria-label':_0x4004ba,'data-dashboard-drag-handle':_0x315157['id'],'className':(0x0,f[_0x5acc15(0x328)])(_0x5acc15(0x3c1),_0x343ca7&&((_0x16f2f1=_0x1698a5[_0x5acc15(0x28f)])==null?void 0x0:_0x16f2f1['id'])===_0x315157['id']&&_0x1698a5[_0x5acc15(0x28f)][_0x5acc15(0x249)]===_0x5acc15(0x2e2)?_0x5acc15(0x4c3):'univer-cursor-grab'),'onPointerDown':_0xb35be=>_0x2d7e62(_0xb35be,_0x315157,_0x5acc15(0x2e2)),'children':(0x0,g[_0x5acc15(0x40a)])(s[_0x5acc15(0x130)],{'className':_0x5acc15(0x382),'aria-hidden':_0x5acc15(0x556)})}),_0x22bcea&&(0x0,g[_0x5acc15(0x40a)])(_0x5acc15(0x378),{'className':_0x5acc15(0x4bb),'children':_0x460d70==null?void 0x0:_0x460d70(_0x315157)}),(0x0,g[_0x5acc15(0x40a)])(_0x5acc15(0x378),{'className':_0x5acc15(0x410),'children':_0x5b65f9(_0x315157)}),_0x22bcea&&Ct[_0x5acc15(0x51d)](({className:_0x1b7dec,direction:_0x4765bf})=>{const _0x25679f=_0x5acc15;let _0x557fb3=_0x4765bf[_0x25679f(0x253)]===0x2;return(0x0,g[_0x25679f(0x40a)])(_0x25679f(0x304),{'type':_0x25679f(0x304),'aria-label':_0x689873,'data-dashboard-resize-handle':_0x4765bf,'data-dashboard-resize-control':_0x557fb3?_0x4765bf:void 0x0,'data-dashboard-resize-edge':_0x557fb3?void 0x0:_0x4765bf,'className':(0x0,f[_0x25679f(0x328)])(_0x25679f(0x34d),_0x557fb3?_0x25679f(0x3b9):_0x25679f(0x1d4),_0x1b7dec,_0x30e716===_0x315157['id']&&_0x25679f(0x4ef)),'onPointerDown':_0x45b5cc=>_0x2d7e62(_0x45b5cc,_0x315157,'resize',_0x4765bf)},_0x4765bf);})]},_0x315157['id']);})})});}var Tt;const X={'axis':{...n[_0x5ed5a2(0x504)],'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':n['DEFAULT_CHART_FUNNEL_VALUES'],'heatmap':n[_0x5ed5a2(0x32b)],'indicatorLine':n[_0x5ed5a2(0x40b)],'legend':n[_0x5ed5a2(0x33f)],'lineAndArea':n[_0x5ed5a2(0x4df)],'pareto':n[_0x5ed5a2(0x1fd)],'pie':n[_0x5ed5a2(0x4c9)],'radar':n['DEFAULT_CHART_RADAR_VALUES'],'relation':{...n[_0x5ed5a2(0x2ef)],'useValueAsSymbolSize':!0x0},'series':{...n[_0x5ed5a2(0x189)],'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Tt=_['RTLChartStyle']['allSeriesStyle'])==null?void 0x0:Tt['rightYAxis'])??!0x1}},'style':n['DEFAULT_CHART_STYLE_VALUES'],'titles':n[_0x5ed5a2(0x1a7)],'trendline':n[_0x5ed5a2(0x3b8)],'waterfall':{...n[_0x5ed5a2(0x3af)],'useSubtotal':!0x0},'waterfallStyle':n[_0x5ed5a2(0x457)],'wordCloud':n[_0x5ed5a2(0x1a6)]},Et=[_['ChartTypeBits']['Line'],_[_0x5ed5a2(0x2cd)][_0x5ed5a2(0x2de)],_[_0x5ed5a2(0x2cd)][_0x5ed5a2(0x2d6)],_['ChartTypeBits']['Scatter'],_[_0x5ed5a2(0x2cd)][_0x5ed5a2(0x53b)],_[_0x5ed5a2(0x2cd)]['Relation'],_[_0x5ed5a2(0x2cd)][_0x5ed5a2(0x213)],_[_0x5ed5a2(0x2cd)]['Heatmap'],_[_0x5ed5a2(0x2cd)][_0x5ed5a2(0x1ab)],_[_0x5ed5a2(0x2cd)][_0x5ed5a2(0x474)],_['ChartTypeBits'][_0x5ed5a2(0x270)],_[_0x5ed5a2(0x2cd)][_0x5ed5a2(0x30d)],_[_0x5ed5a2(0x2cd)][_0x5ed5a2(0x2af)],_[_0x5ed5a2(0x2cd)][_0x5ed5a2(0x275)],_[_0x5ed5a2(0x2cd)]['Chord']];function Dt(_0x576ba9){const _0x53f190=_0x5ed5a2;let {config:_0x3a70b5,onChange:_0x332502,runtime:_0xdab279,tableName:_0x348965}=_0x576ba9,_0x4ad6c2=(0x0,m[_0x53f190(0x354)])(W),_0x17921b=(0x0,m[_0x53f190(0x354)])(a['LocaleService']),[_0x557e73,_0x250f36]=(0x0,h[_0x53f190(0x541)])(n['ChartEditPanelTab']['Data']),_0x18643d=(0x0,h[_0x53f190(0x16e)])(()=>new n[(_0x53f190(0x4ab))](_0xdab279[_0x53f190(0x42f)],{'commit':_0x5be2fa=>{const _0x32bea3=_0x53f190;var _0x2cfa0b;let _0x4ce781=_0xdab279[_0x32bea3(0x42f)],_0x364431=(0x0,_[_0x32bea3(0x32f)])(_0x5be2fa,{'series':(_0x2cfa0b=_0x4ce781[_0x32bea3(0x489)])==null?void 0x0:_0x2cfa0b['series'],'currentChartType':_0x4ce781[_0x32bea3(0x2d8)],'currentStyle':_0x4ce781['style'],'currentContext':_0x4ce781[_0x32bea3(0x242)],'currentDataAggregation':_0x4ce781[_0x32bea3(0x4a7)]});_0x332502({'chart':Ot(_0x3a70b5[_0x32bea3(0x43a)],_0x364431)});}}),[_0x3a70b5[_0x53f190(0x43a)],_0x332502,_0xdab279]),_0x2e2345=(0x0,h[_0x53f190(0x16e)])(()=>(0x0,n[_0x53f190(0x22d)])(n[_0x53f190(0x389)]['map'](_0x4cc4ed=>({..._0x4cc4ed,'label':_0x17921b['t'](Mt(_0x4cc4ed[_0x53f190(0x466)]))}))),[_0x17921b]);return(0x0,g[_0x53f190(0x40a)])(n[_0x53f190(0x435)],{'chartUIService':_0x4ad6c2,'hostAdapter':_0x18643d,'children':(0x0,g[_0x53f190(0x186)])(_0x53f190(0x378),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[(0x0,g[_0x53f190(0x40a)])(n['ChartEditPanelTabs'],{'ariaLabel':_0x17921b['t'](_0x53f190(0x223)),'className':_0x53f190(0x4e4),'items':[{'label':_0x17921b['t'](_0x53f190(0x52f)),'panelId':'base-pivot-chart-setup','value':n[_0x53f190(0x175)][_0x53f190(0x43f)]},{'label':_0x17921b['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x53f190(0x2df),'value':n[_0x53f190(0x175)][_0x53f190(0x200)]}],'value':_0x557e73,'onChange':_0x250f36}),_0x557e73===n[_0x53f190(0x175)][_0x53f190(0x43f)]?(0x0,g['jsx'])(n[_0x53f190(0x121)],{'id':_0x53f190(0x168),'label':_0x17921b['t'](_0x53f190(0x52f)),'children':(0x0,g[_0x53f190(0x186)])('div',{'className':_0x53f190(0x3f3),'children':[(0x0,g['jsx'])(n[_0x53f190(0x413)],{'options':_0x2e2345}),(0x0,g[_0x53f190(0x40a)])(n[_0x53f190(0x497)],{}),(0x0,g['jsx'])(n[_0x53f190(0x518)],{}),(0x0,g['jsx'])(kt,{}),(0x0,g[_0x53f190(0x40a)])(n[_0x53f190(0x317)],{}),(0x0,g[_0x53f190(0x186)])('div',{'children':[(0x0,g[_0x53f190(0x40a)])(n['ChartEditBlockTitle'],{'title':_0x17921b['t'](_0x53f190(0x3c9))}),(0x0,g[_0x53f190(0x40a)])(f[_0x53f190(0x345)],{'disabled':!0x0,'value':_0x348965})]}),(0x0,g['jsx'])(n[_0x53f190(0x2e7)],{'orientationControl':(0x0,g[_0x53f190(0x40a)])(f['Button'],{'size':_0x53f190(0x43b),'onClick':()=>_0x332502({'chart':{..._0x3a70b5[_0x53f190(0x43a)],'orient':_0x3a70b5[_0x53f190(0x43a)][_0x53f190(0x2e5)]===_0x53f190(0x3ab)?_0x53f190(0x13f):_0x53f190(0x3ab)}}),'children':_0x17921b['t'](_0x53f190(0x184))})}),(0x0,g[_0x53f190(0x40a)])(n[_0x53f190(0x3c6)],{}),(0x0,g[_0x53f190(0x40a)])(n[_0x53f190(0x53f)],{'defaultValues':X['waterfall']}),(0x0,g['jsxs'])(_0x53f190(0x378),{'children':[(0x0,g[_0x53f190(0x40a)])(n['ChartEditBlockTitle'],{'title':_0x17921b['t']('bases-dashboard-ui.pivot.display')}),(0x0,g['jsx'])(f[_0x53f190(0x498)],{'value':_0x3a70b5[_0x53f190(0x233)],'options':[{'value':_0x53f190(0x546),'label':_0x17921b['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':_0x53f190(0x43a),'label':_0x17921b['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':_0x53f190(0x1a8),'label':_0x17921b['t'](_0x53f190(0x50e))}],'onChange':_0x3987f7=>{const _0x4b02cf=_0x53f190;(_0x3987f7===_0x4b02cf(0x546)||_0x3987f7===_0x4b02cf(0x43a)||_0x3987f7===_0x4b02cf(0x1a8))&&_0x332502({'displayMode':_0x3987f7});}})]})]})}):(0x0,g[_0x53f190(0x40a)])(n[_0x53f190(0x121)],{'id':'base-pivot-chart-style','label':_0x17921b['t'](_0x53f190(0x14a)),'children':(0x0,g['jsx'])(At,{})})]})});}function Ot(_0x57294f,_0x2c2370){const _0x173333=_0x5ed5a2;return{..._0x57294f,'type':_0x2c2370[_0x173333(0x2d8)]??_0x57294f[_0x173333(0x436)],'style':_0x2c2370[_0x173333(0x3b4)]??_0x57294f[_0x173333(0x3b4)],'context':_0x2c2370[_0x173333(0x242)]??_0x57294f[_0x173333(0x242)],'dataAggregation':_0x2c2370[_0x173333(0x4a7)]??_0x57294f[_0x173333(0x4a7)]};}function kt(){const _0x4e1cd5=_0x5ed5a2;let _0x578717=(0x0,n['useChartEditorChartType'])();return(0x0,g['jsx'])(n['ChartGradientFillField'],{'visible':Et['every'](_0x45587c=>!_[_0x4e1cd5(0x221)][_0x4e1cd5(0x517)](_0x578717,_0x45587c))});}function Z(_0x2a2333){const _0x1ca2a8=_0x5ed5a2;return(0x0,g[_0x1ca2a8(0x186)])(n[_0x1ca2a8(0x53e)],{'id':_0x2a2333['id'],'children':[(0x0,g[_0x1ca2a8(0x40a)])(n[_0x1ca2a8(0x3e8)],{'children':_0x2a2333[_0x1ca2a8(0x369)]}),(0x0,g[_0x1ca2a8(0x40a)])(n[_0x1ca2a8(0x3fa)],{'children':_0x2a2333['children']})]});}function At(){const _0x4a4d52=_0x5ed5a2;let _0x2f6d07=(0x0,m['useDependency'])(a[_0x4a4d52(0x331)]),_0xff296e=(0x0,n['useChartEditorChartType'])(),_0x3b8c44=(0x0,n[_0x4a4d52(0x284)])(),[_0x2e7f56,_0x2923c2]=(0x0,h[_0x4a4d52(0x541)])(null),_0x15e8de=_[_0x4a4d52(0x221)][_0x4a4d52(0x517)](_0xff296e,_[_0x4a4d52(0x2cd)]['Pie']),_0x29bf5c=_0xff296e===_[_0x4a4d52(0x2cd)][_0x4a4d52(0x2de)],_0x4c6fbc=_0xff296e===_[_0x4a4d52(0x2cd)][_0x4a4d52(0x2d6)],_0x546ec2=_0xff296e===_[_0x4a4d52(0x2cd)][_0x4a4d52(0x53b)],_0x4c33fc=_['chartBitsUtils'][_0x4a4d52(0x517)](_0xff296e,_[_0x4a4d52(0x2cd)][_0x4a4d52(0x479)]),_0x189552=_0xff296e===_[_0x4a4d52(0x2cd)][_0x4a4d52(0x13e)],_0x285267=_0xff296e===_[_0x4a4d52(0x2cd)][_0x4a4d52(0x22c)],_0x56c711=_0xff296e===_[_0x4a4d52(0x2cd)][_0x4a4d52(0x495)],_0x398d12=_0xff296e===_[_0x4a4d52(0x2cd)]['Heatmap'],_0x45d0fe=(0x0,n[_0x4a4d52(0x340)])(_0xff296e,n[_0x4a4d52(0x19b)][_0x4a4d52(0x53a)])&&!_0x4c33fc&&!_0x56c711,_0x18a5af=jt(_0xff296e,_0x2f6d07);return(0x0,g['jsxs'])(n[_0x4a4d52(0x41d)],{'value':_0x2e7f56,'onChange':_0x2923c2,'children':[(0x0,g[_0x4a4d52(0x40a)])(Z,{'id':n[_0x4a4d52(0x156)][_0x4a4d52(0x157)],'label':_0x2f6d07['t'](_0x4a4d52(0x48c)),'children':(0x0,g[_0x4a4d52(0x40a)])(n[_0x4a4d52(0x194)],{'defaultValues':X[_0x4a4d52(0x3b4)]})}),(0x0,g['jsx'])(Z,{'id':n['ChartEditPanelSection'][_0x4a4d52(0x1e7)],'label':_0x2f6d07['t'](_0x4a4d52(0x17b)),'children':(0x0,g[_0x4a4d52(0x40a)])(n[_0x4a4d52(0x4f0)],{'commitMode':_0x4a4d52(0x262),'defaultValues':X[_0x4a4d52(0x430)]})}),(0x0,g[_0x4a4d52(0x40a)])(n['ChartThreeDSection'],{'section':_0x4a4d52(0x2b2)}),_0x45d0fe&&(0x0,g[_0x4a4d52(0x40a)])(Z,{'id':n[_0x4a4d52(0x156)][_0x4a4d52(0x531)],'label':_0x2f6d07['t'](_0x4a4d52(0x31c)),'children':(0x0,g[_0x4a4d52(0x40a)])(n[_0x4a4d52(0x17f)],{'defaultValues':X[_0x4a4d52(0x425)],'NumberFormatField':n[_0x4a4d52(0x158)]})}),_0x285267&&(0x0,g[_0x4a4d52(0x40a)])(Z,{'id':n[_0x4a4d52(0x156)]['WaterfallSeries'],'label':_0x2f6d07['t']('bases-dashboard-ui.chart.section.waterfall'),'children':(0x0,g[_0x4a4d52(0x40a)])(n[_0x4a4d52(0x535)],{'defaultValues':X['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x41b474,target:_0x396ed0})=>_0x396ed0===_[_0x4a4d52(0x1c9)]['Subtotal']?_0x2f6d07['t'](_0x4a4d52(0x295)):_0x41b474?_0x41b474+'-('+_0x2f6d07['t'](_0x4a4d52(0x418)+(_0x396ed0===_[_0x4a4d52(0x1c9)]['Positive']?'waterfall.positive':_0x4a4d52(0x41e)))+')':'','NumberFormatField':n[_0x4a4d52(0x158)]})}),_0x56c711&&(0x0,g[_0x4a4d52(0x186)])(g[_0x4a4d52(0x18c)],{'children':[(0x0,g['jsx'])(Z,{'id':n[_0x4a4d52(0x156)][_0x4a4d52(0x3cd)],'label':_0x2f6d07['t'](_0x4a4d52(0x34f)),'children':(0x0,g[_0x4a4d52(0x40a)])(n[_0x4a4d52(0x47d)],{'defaultValues':X['pareto'],'NumberFormatField':n[_0x4a4d52(0x158)],'showDataPointEditor':!0x0,'target':'barStyle'})}),(0x0,g[_0x4a4d52(0x40a)])(Z,{'id':n[_0x4a4d52(0x156)][_0x4a4d52(0x45d)],'label':_0x2f6d07['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':(0x0,g['jsx'])(n[_0x4a4d52(0x47d)],{'defaultValues':X[_0x4a4d52(0x1aa)],'NumberFormatField':n[_0x4a4d52(0x158)],'showDataPointEditor':!0x1,'target':_0x4a4d52(0x4ad)})})]}),_0x15e8de&&(0x0,g[_0x4a4d52(0x40a)])(Z,{'id':n['ChartEditPanelSection'][_0x4a4d52(0x4f8)],'label':_0x2f6d07['t']('bases-dashboard-ui.chart.section.pie'),'children':(0x0,g[_0x4a4d52(0x40a)])(n[_0x4a4d52(0x34a)],{'defaultValues':X[_0x4a4d52(0x25b)],'NumberFormatField':n['ChartNumberFormatAtom']})}),_0x4c6fbc&&(0x0,g[_0x4a4d52(0x40a)])(Z,{'id':n[_0x4a4d52(0x156)][_0x4a4d52(0x2d6)],'label':_0x2f6d07['t'](_0x4a4d52(0x551)),'children':(0x0,g[_0x4a4d52(0x40a)])(n['ChartWordCloudStyleSection'],{'defaultValues':X['wordCloud']})}),_0x29bf5c&&(0x0,g[_0x4a4d52(0x40a)])(Z,{'id':n[_0x4a4d52(0x156)][_0x4a4d52(0x2de)],'label':_0x2f6d07['t'](_0x4a4d52(0x2db)),'children':(0x0,g[_0x4a4d52(0x40a)])(n[_0x4a4d52(0x460)],{'defaultValues':X[_0x4a4d52(0x144)]})}),_0x546ec2&&(0x0,g[_0x4a4d52(0x40a)])(Z,{'id':n[_0x4a4d52(0x156)][_0x4a4d52(0x53b)],'label':_0x2f6d07['t']('bases-dashboard-ui.chart.section.funnel'),'children':(0x0,g[_0x4a4d52(0x40a)])(n[_0x4a4d52(0x2fc)],{'defaultValues':X[_0x4a4d52(0x424)],'gapControl':'select'})}),_0x398d12&&(0x0,g['jsx'])(Z,{'id':n[_0x4a4d52(0x156)][_0x4a4d52(0x499)],'label':_0x2f6d07['t'](_0x4a4d52(0x2d7)),'children':(0x0,g[_0x4a4d52(0x40a)])(n[_0x4a4d52(0x171)],{'defaultValues':X['heatmap']})}),_0x189552&&(0x0,g[_0x4a4d52(0x40a)])(Z,{'id':n[_0x4a4d52(0x156)][_0x4a4d52(0x13e)],'label':_0x2f6d07['t'](_0x4a4d52(0x316)),'children':(0x0,g['jsx'])(n[_0x4a4d52(0x27c)],{'defaultValues':X[_0x4a4d52(0x17a)]})}),(0x0,n[_0x4a4d52(0x131)])(_0xff296e)&&(0x0,g['jsx'])(Z,{'id':n[_0x4a4d52(0x156)][_0x4a4d52(0x2f6)],'label':_0x2f6d07['t'](_[_0x4a4d52(0x221)][_0x4a4d52(0x517)](_0xff296e,_['ChartTypeBits'][_0x4a4d52(0x1bb)])?_0x4a4d52(0x2ca):'bases-dashboard-ui.chart.chartTypes.line'),'children':(0x0,g[_0x4a4d52(0x40a)])(n[_0x4a4d52(0x415)],{'defaultValues':X['lineAndArea'],'lineStyleControl':_0x4a4d52(0x381)})}),(0x0,n[_0x4a4d52(0x340)])(_0xff296e,n[_0x4a4d52(0x19b)]['Legend'])&&(0x0,g[_0x4a4d52(0x40a)])(Z,{'id':n[_0x4a4d52(0x156)]['Legend'],'label':_0x2f6d07['t'](_0x4a4d52(0x22e)),'children':(0x0,g[_0x4a4d52(0x40a)])(n[_0x4a4d52(0x34b)],{'defaultValues':X[_0x4a4d52(0x37e)]})}),(0x0,n['chartTypeSupportsCapability'])(_0xff296e,n[_0x4a4d52(0x19b)][_0x4a4d52(0x2a3)])&&(0x0,g[_0x4a4d52(0x186)])(g[_0x4a4d52(0x18c)],{'children':[(0x0,g['jsx'])(Z,{'id':n[_0x4a4d52(0x156)][_0x4a4d52(0x1ea)],'label':_0x2f6d07['t'](_0x4a4d52(0x396)),'children':(0x0,g[_0x4a4d52(0x40a)])(n['ChartAxisSection'],{'axis':'x','defaultValues':X['axis'],'NumberFormatField':n[_0x4a4d52(0x158)]})}),(0x0,g['jsx'])(Z,{'id':n['ChartEditPanelSection'][_0x4a4d52(0x325)],'label':_0x2f6d07['t'](_0x4a4d52(0x2b9)),'children':(0x0,g['jsx'])(n[_0x4a4d52(0x441)],{'axis':'y','defaultValues':X[_0x4a4d52(0x406)],'NumberFormatField':n[_0x4a4d52(0x158)]})}),(0x0,g[_0x4a4d52(0x40a)])(n[_0x4a4d52(0x29f)],{'section':_0x4a4d52(0x1fb)}),_0x3b8c44&&(0x0,g[_0x4a4d52(0x40a)])(Z,{'id':n[_0x4a4d52(0x156)][_0x4a4d52(0x4c8)],'label':_0x2f6d07['t'](_0x4a4d52(0x283)),'children':(0x0,g[_0x4a4d52(0x40a)])(n[_0x4a4d52(0x441)],{'axis':_0x4a4d52(0x36c),'defaultValues':X['axis'],'NumberFormatField':n[_0x4a4d52(0x158)]})}),(0x0,g[_0x4a4d52(0x40a)])(Z,{'id':n[_0x4a4d52(0x156)]['GridlinesAndTicks'],'label':_0x2f6d07['t'](_0x4a4d52(0x47e)),'children':(0x0,g[_0x4a4d52(0x40a)])(n[_0x4a4d52(0x2a7)],{'defaultValues':X[_0x4a4d52(0x406)]})})]}),(0x0,n['chartTypeSupportsCapability'])(_0xff296e,n[_0x4a4d52(0x19b)][_0x4a4d52(0x224)])&&(0x0,g[_0x4a4d52(0x40a)])(Z,{'id':n[_0x4a4d52(0x156)]['IndicatorLine'],'label':_0x2f6d07['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':(0x0,g[_0x4a4d52(0x40a)])(n[_0x4a4d52(0x3ef)],{'defaultValues':X['indicatorLine']})}),(0x0,_['chartTypeCanUseTrendLine'])(_0xff296e)&&(0x0,g[_0x4a4d52(0x40a)])(Z,{'id':n['ChartEditPanelSection'][_0x4a4d52(0x54a)],'label':_0x2f6d07['t']('bases-dashboard-ui.chart.common.trendline'),'children':(0x0,g[_0x4a4d52(0x40a)])(n[_0x4a4d52(0x4e0)],{'defaultValues':X[_0x4a4d52(0x4d4)]})}),_0x18a5af&&(0x0,g['jsx'])(Z,{'id':_0x18a5af['id'],'label':_0x18a5af[_0x4a4d52(0x369)],'children':(0x0,g[_0x4a4d52(0x40a)])(n[_0x4a4d52(0x3c0)],{})})]});}function jt(_0x596e07,_0x44e7fe){const _0x286fd4=_0x5ed5a2;let _0x5b9e50={[_[_0x286fd4(0x2cd)][_0x286fd4(0x474)]]:{'id':n[_0x286fd4(0x156)]['Candlestick'],'localeKey':_0x286fd4(0x3e0)},[_['ChartTypeBits'][_0x286fd4(0x270)]]:{'id':n[_0x286fd4(0x156)][_0x286fd4(0x270)],'localeKey':_0x286fd4(0x2ff)},[_['ChartTypeBits'][_0x286fd4(0x30d)]]:{'id':n[_0x286fd4(0x156)][_0x286fd4(0x30d)],'localeKey':_0x286fd4(0x247)},[_['ChartTypeBits'][_0x286fd4(0x2af)]]:{'id':n[_0x286fd4(0x156)][_0x286fd4(0x2af)],'localeKey':_0x286fd4(0x218)},[_[_0x286fd4(0x2cd)][_0x286fd4(0x275)]]:{'id':n[_0x286fd4(0x156)][_0x286fd4(0x275)],'localeKey':_0x286fd4(0x4fa)},[_[_0x286fd4(0x2cd)]['Chord']]:{'id':n['ChartEditPanelSection'][_0x286fd4(0x3bd)],'localeKey':_0x286fd4(0x503)}}[_0x596e07];return _0x5b9e50?{'id':_0x5b9e50['id'],'label':_0x44e7fe['t'](_0x5b9e50[_0x286fd4(0x426)])}:null;}function Mt(_0x437f5d){const _0x34ff16=_0x5ed5a2;return _0x34ff16(0x28a)+_0x437f5d;}function Nt({onChange:_0xfef9b1,onEditData:_0x2810ed,runtime:_0x44626b,sourceChart:_0x7ae19c,sourceName:_0x49d9c5,widget:_0x104d6d}){const _0x59df68=_0x5ed5a2;let _0x31c7a2=(0x0,m[_0x59df68(0x354)])(W),_0x41b533=(0x0,m[_0x59df68(0x354)])(a[_0x59df68(0x331)]),[_0x1d8f18,_0x4ead5e]=(0x0,h['useState'])(n[_0x59df68(0x175)]['Data']),_0x32d4d6=_0x104d6d[_0x59df68(0x43a)]??_0x7ae19c,_0x316ae6=(0x0,h[_0x59df68(0x16e)])(()=>new n[(_0x59df68(0x4ab))](_0x44626b[_0x59df68(0x42f)],{'commit':_0x51a882=>{const _0xf47440=_0x59df68;var _0x58e7b2;let _0x1c1576=_0x44626b['model'],_0xe29fbb=(0x0,_[_0xf47440(0x32f)])(_0x51a882,{'series':(_0x58e7b2=_0x1c1576[_0xf47440(0x489)])==null?void 0x0:_0x58e7b2['series'],'currentChartType':_0x1c1576[_0xf47440(0x2d8)],'currentStyle':_0x1c1576[_0xf47440(0x3b4)],'currentContext':_0x1c1576[_0xf47440(0x242)],'currentDataAggregation':_0x1c1576['dataAggregation']});_0xfef9b1({..._0x104d6d,'chart':Ot(_0x32d4d6,_0xe29fbb)})[_0xf47440(0x26e)](()=>void 0x0);}}),[_0x32d4d6,_0xfef9b1,_0x44626b,_0x104d6d]),_0x27b65a=(0x0,h['useMemo'])(()=>(0x0,n[_0x59df68(0x22d)])(n[_0x59df68(0x389)][_0x59df68(0x51d)](_0x123ed0=>({..._0x123ed0,'label':_0x41b533['t'](Pt(_0x123ed0[_0x59df68(0x466)]))}))),[_0x41b533]);return(0x0,g[_0x59df68(0x40a)])(n[_0x59df68(0x435)],{'chartUIService':_0x31c7a2,'hostAdapter':_0x316ae6,'children':(0x0,g['jsxs'])('div',{'data-dashboard-chart-inspector':!0x0,'className':_0x59df68(0x201),'children':[(0x0,g['jsx'])(n[_0x59df68(0x23d)],{'ariaLabel':_0x41b533['t'](_0x59df68(0x223)),'className':_0x59df68(0x4e4),'items':[{'label':_0x41b533['t'](_0x59df68(0x52f)),'panelId':_0x59df68(0x1e2),'value':n['ChartEditPanelTab'][_0x59df68(0x43f)]},{'label':_0x41b533['t']('bases-dashboard-ui.chart.common.customize'),'panelId':_0x59df68(0x3df),'value':n[_0x59df68(0x175)][_0x59df68(0x200)]}],'value':_0x1d8f18,'onChange':_0x4ead5e}),_0x1d8f18===n['ChartEditPanelTab'][_0x59df68(0x43f)]?(0x0,g[_0x59df68(0x40a)])(n['ChartEditPanel'],{'id':_0x59df68(0x1e2),'label':_0x41b533['t'](_0x59df68(0x52f)),'children':(0x0,g['jsxs'])(_0x59df68(0x378),{'className':_0x59df68(0x3f3),'children':[(0x0,g[_0x59df68(0x40a)])(n[_0x59df68(0x413)],{'options':_0x27b65a}),(0x0,g[_0x59df68(0x40a)])(n[_0x59df68(0x497)],{}),(0x0,g[_0x59df68(0x40a)])(n[_0x59df68(0x518)],{}),(0x0,g[_0x59df68(0x40a)])(kt,{}),(0x0,g['jsx'])(n[_0x59df68(0x317)],{}),(0x0,g['jsxs'])(_0x59df68(0x378),{'children':[(0x0,g[_0x59df68(0x40a)])(n[_0x59df68(0x298)],{'title':_0x41b533['t'](_0x59df68(0x2fa))}),(0x0,g[_0x59df68(0x40a)])(f['Input'],{'disabled':!0x0,'value':_0x49d9c5}),(0x0,g[_0x59df68(0x40a)])(f[_0x59df68(0x123)],{'className':_0x59df68(0x481),'onClick':_0x2810ed,'children':_0x41b533['t']('bases-dashboard-ui.dashboardInspector.editData')})]})]})}):(0x0,g[_0x59df68(0x40a)])(n[_0x59df68(0x121)],{'id':_0x59df68(0x3df),'label':_0x41b533['t'](_0x59df68(0x14a)),'children':(0x0,g[_0x59df68(0x40a)])(At,{})})]})});}function Pt(_0x3f6981){const _0x1c3ad8=_0x5ed5a2;return _0x1c3ad8(0x28a)+_0x3f6981;}const Ft=['general','number',_0x5ed5a2(0x4f6),_0x5ed5a2(0x3ee),_0x5ed5a2(0x384),'compact'];function It({base:_0x190aa5,onChange:_0x3deaf4,onSelectBackgroundImage:_0x36cff3,widget:_0x1df6d5}){const _0x5e6a0c=_0x5ed5a2;var _0x3ab59b;let _0x657817=(0x0,m[_0x5e6a0c(0x354)])(a[_0x5e6a0c(0x331)]),_0x50a023=(0x0,m[_0x5e6a0c(0x354)])(a[_0x5e6a0c(0x4e5)]),_0x2ef248=(0x0,m[_0x5e6a0c(0x4e3)])(()=>_0x50a023['currentTheme$'],_0x50a023[_0x5e6a0c(0x24d)](),!0x1,[_0x50a023]),_0x276bee=(0x0,m['useObservable'])(()=>_0x50a023['darkMode$'],_0x50a023[_0x5e6a0c(0x409)],!0x1,[_0x50a023]),[_0x5ec350,_0x2a5297]=(0x0,h['useState'])('data'),[_0x29673d,_0x2b654a]=(0x0,h[_0x5e6a0c(0x541)])(!0x1),_0x49d478=k(_0x1df6d5),_0x4f4267=_0x190aa5[_0x5e6a0c(0x2c2)]()['tables'][_0x1df6d5['tableId']],_0x452d9f=_0x4f4267==null?void 0x0:_0x4f4267[_0x5e6a0c(0x1b7)][_0x5e6a0c(0x485)](_0x24cced=>_0x4f4267['views'][_0x24cced]),_0x3a07d8=_0x452d9f?_0x4f4267==null?void 0x0:_0x4f4267[_0x5e6a0c(0x3a5)][_0x452d9f]:void 0x0,_0x305742=_0x4f4267&&_0x3a07d8?(0x0,t[_0x5e6a0c(0x34c)])(_0x190aa5[_0x5e6a0c(0x2c2)](),_0x4f4267,_0x3a07d8)[_0x5e6a0c(0x51d)](_0x1754fc=>({..._0x1754fc,'current':!0x1})):[],_0x441fd6=((_0x3ab59b=_0x1df6d5[_0x5e6a0c(0x152)][_0x5e6a0c(0x3c8)])==null?void 0x0:_0x3ab59b['formula'])??'',_0x319aab=_0x167aa7=>_0x3deaf4(A(_0x1df6d5,_0x167aa7))[_0x5e6a0c(0x26e)](()=>void 0x0),_0x4e962a=_0x232608=>_0x3deaf4({..._0x1df6d5,'description':_0x232608})[_0x5e6a0c(0x26e)](()=>void 0x0);return(0x0,g[_0x5e6a0c(0x186)])(_0x5e6a0c(0x378),{'data-dashboard-formula-inspector':!0x0,'className':_0x5e6a0c(0x201),'children':[(0x0,g[_0x5e6a0c(0x40a)])(f['Segmented'],{'className':'univer-m-3','items':[{'value':_0x5e6a0c(0x3a7),'label':_0x657817['t'](_0x5e6a0c(0x24e))},{'value':_0x5e6a0c(0x3b4),'label':_0x657817['t']('bases-dashboard-ui.dashboardInspector.style')}],'value':_0x5ec350,'onChange':_0x2a5297}),(0x0,g[_0x5e6a0c(0x40a)])(_0x5e6a0c(0x378),{'className':_0x5e6a0c(0x16c),'children':_0x5ec350===_0x5e6a0c(0x3a7)?(0x0,g[_0x5e6a0c(0x186)])(_0x5e6a0c(0x378),{'className':_0x5e6a0c(0x356),'children':[(0x0,g[_0x5e6a0c(0x40a)])(Q,{'label':_0x657817['t'](_0x5e6a0c(0x204)),'children':(0x0,g[_0x5e6a0c(0x40a)])(f[_0x5e6a0c(0x345)],{'value':_0x1df6d5[_0x5e6a0c(0x4e6)]??_0x1df6d5[_0x5e6a0c(0x2cb)]??'','onChange':_0x4e962a,'onBlur':_0x2d4a1d=>_0x4e962a(_0x2d4a1d[_0x5e6a0c(0x33b)][_0x5e6a0c(0x2a2)])})}),(0x0,g['jsx'])(Q,{'label':_0x657817['t'](_0x5e6a0c(0x2fa)),'children':(0x0,g[_0x5e6a0c(0x40a)])(f[_0x5e6a0c(0x345)],{'disabled':!0x0,'value':(_0x4f4267==null?void 0x0:_0x4f4267[_0x5e6a0c(0x416)])??_0x657817['t'](_0x5e6a0c(0x2a6))})}),(0x0,g['jsxs'])(Q,{'label':_0x657817['t'](_0x5e6a0c(0x4b1)),'children':[(0x0,g['jsx'])(f[_0x5e6a0c(0x345)],{'disabled':!0x0,'value':(0x0,t[_0x5e6a0c(0x432)])(_0x441fd6,_0x305742)}),(0x0,g[_0x5e6a0c(0x40a)])(f[_0x5e6a0c(0x123)],{'className':_0x5e6a0c(0x481),'onClick':()=>_0x2b654a(!0x0),'children':_0x657817['t']('bases-dashboard-ui.dashboardInspector.editFormula')})]})]}):(0x0,g[_0x5e6a0c(0x186)])(_0x5e6a0c(0x378),{'className':_0x5e6a0c(0x356),'children':[(0x0,g[_0x5e6a0c(0x40a)])(n[_0x5e6a0c(0x437)],{'emptyLabel':_0x657817['t'](_0x5e6a0c(0x47c)),'label':_0x657817['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x276bee?_0x2ef248[_0x5e6a0c(0x17c)][0x384]:_0x2ef248[_0x5e6a0c(0x17c)][0x0],'resetLabel':_0x657817['t'](_0x5e6a0c(0x258)),'value':_0x49d478[_0x5e6a0c(0x277)]??null,'onChange':_0xfb3c6f=>_0x319aab({'backgroundColor':_0xfb3c6f??void 0x0})}),(0x0,g[_0x5e6a0c(0x186)])(Q,{'label':_0x657817['t']('bases-dashboard-ui.dashboardInspector.backgroundImage'),'children':[(0x0,g[_0x5e6a0c(0x186)])(_0x5e6a0c(0x378),{'className':_0x5e6a0c(0x391),'children':[(0x0,g[_0x5e6a0c(0x186)])(f[_0x5e6a0c(0x123)],{'className':'univer-flex-1','onClick':()=>{const _0x464e5c=_0x5e6a0c;_0x36cff3()['then'](_0x34232c=>{const _0x292a03=_0x46f3;if(_0x34232c){var _0x1fc706;return _0x319aab({'backgroundImage':{..._0x34232c,'fit':((_0x1fc706=_0x49d478['backgroundImage'])==null?void 0x0:_0x1fc706[_0x292a03(0x16d)])??_0x292a03(0x423)}});}})[_0x464e5c(0x26e)](()=>void 0x0);},'children':[(0x0,g['jsx'])(s[_0x5e6a0c(0x538)],{}),_0x49d478[_0x5e6a0c(0x153)]?_0x657817['t'](_0x5e6a0c(0x516)):_0x657817['t'](_0x5e6a0c(0x39e))]}),_0x49d478['backgroundImage']&&(0x0,g[_0x5e6a0c(0x40a)])(f['Button'],{'aria-label':_0x657817['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x657817['t'](_0x5e6a0c(0x2c9)),'onClick':()=>_0x319aab({'backgroundImage':void 0x0}),'children':(0x0,g['jsx'])(s['DeleteIcon'],{})})]}),_0x49d478['backgroundImage']&&(0x0,g[_0x5e6a0c(0x40a)])(f[_0x5e6a0c(0x505)],{'className':_0x5e6a0c(0x30e),'items':[{'value':_0x5e6a0c(0x423),'label':_0x657817['t'](_0x5e6a0c(0x212))},{'value':_0x5e6a0c(0x14f),'label':_0x657817['t'](_0x5e6a0c(0x2ed))}],'value':_0x49d478[_0x5e6a0c(0x153)][_0x5e6a0c(0x16d)],'onChange':_0x22e89e=>_0x319aab({'backgroundImage':_0x49d478['backgroundImage']?{..._0x49d478[_0x5e6a0c(0x153)],'fit':_0x22e89e}:void 0x0})})]}),(0x0,g[_0x5e6a0c(0x40a)])(n[_0x5e6a0c(0x437)],{'emptyLabel':_0x657817['t'](_0x5e6a0c(0x149)),'label':_0x657817['t'](_0x5e6a0c(0x149)),'pickerFallbackValue':_0x276bee?_0x2ef248['gray'][0x32]:_0x2ef248[_0x5e6a0c(0x17c)][0x3e8],'resetLabel':_0x657817['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x49d478[_0x5e6a0c(0x216)]??null,'onChange':_0x3bc8f9=>_0x319aab({'textColor':_0x3bc8f9??void 0x0})}),(0x0,g['jsx'])(Q,{'label':_0x657817['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':(0x0,g[_0x5e6a0c(0x40a)])(f[_0x5e6a0c(0x505)],{'items':[{'value':'left','label':_0x657817['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':_0x5e6a0c(0x166),'label':_0x657817['t'](_0x5e6a0c(0x47a))},{'value':_0x5e6a0c(0x27f),'label':_0x657817['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x49d478['alignment'],'onChange':_0x3f9dd0=>_0x319aab({'alignment':_0x3f9dd0})})}),(0x0,g[_0x5e6a0c(0x186)])(Q,{'label':_0x657817['t'](_0x5e6a0c(0x360)),'children':[(0x0,g[_0x5e6a0c(0x40a)])(f['Segmented'],{'items':[{'value':_0x5e6a0c(0x547),'label':_0x657817['t'](_0x5e6a0c(0x52d))},{'value':_0x5e6a0c(0x4c6),'label':_0x657817['t'](_0x5e6a0c(0x211))}],'value':_0x49d478['fontSizeMode'],'onChange':_0x3ab629=>_0x319aab({'fontSizeMode':_0x3ab629})}),_0x49d478['fontSizeMode']===_0x5e6a0c(0x4c6)&&(0x0,g[_0x5e6a0c(0x40a)])(f[_0x5e6a0c(0x19a)],{'className':_0x5e6a0c(0x30e),'min':0xc,'max':0x78,'value':_0x49d478[_0x5e6a0c(0x2fd)],'onChange':_0x580e17=>_0x319aab({'fontSize':_0x580e17??0x28,'fontSizeMode':'custom'})})]}),(0x0,g['jsx'])(Q,{'label':_0x657817['t'](_0x5e6a0c(0x202)),'children':(0x0,g[_0x5e6a0c(0x40a)])(f[_0x5e6a0c(0x498)],{'value':_0x49d478[_0x5e6a0c(0x1e5)],'options':[{'value':_0x5e6a0c(0x459),'label':_0x657817['t'](_0x5e6a0c(0x2b5))},{'value':'number','label':_0x657817['t']('bases-dashboard-ui.dashboardInspector.number')},{'value':_0x5e6a0c(0x4f6),'label':_0x657817['t'](_0x5e6a0c(0x281))},{'value':_0x5e6a0c(0x3ee),'label':_0x657817['t'](_0x5e6a0c(0x4a5))},{'value':_0x5e6a0c(0x384),'label':_0x657817['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':'compact','label':_0x657817['t']('bases-dashboard-ui.dashboardInspector.compact')}],'onChange':_0x5aa02f=>{let _0x53294c=Ft['find'](_0x104ff3=>_0x104ff3===_0x5aa02f);_0x53294c&&_0x319aab({'numberFormat':_0x53294c});}})}),_0x49d478[_0x5e6a0c(0x1e5)]===_0x5e6a0c(0x3ee)&&(0x0,g[_0x5e6a0c(0x40a)])(Q,{'label':_0x657817['t'](_0x5e6a0c(0x2ad)),'children':(0x0,g['jsx'])(f[_0x5e6a0c(0x345)],{'value':_0x49d478[_0x5e6a0c(0x3ee)],'onChange':_0x2c30c5=>_0x319aab({'currency':_0x2c30c5['slice'](0x0,0x3)['toUpperCase']()})})}),_0x49d478['numberFormat']!==_0x5e6a0c(0x459)&&(0x0,g['jsx'])(Q,{'label':_0x657817['t'](_0x5e6a0c(0x14e)),'children':(0x0,g[_0x5e6a0c(0x40a)])(f[_0x5e6a0c(0x19a)],{'min':0x0,'max':0x8,'value':_0x49d478['decimalPlaces'],'onChange':_0x3a37aa=>_0x319aab({'decimalPlaces':_0x3a37aa??0x0})})})]})}),_0x29673d&&(0x0,g['jsx'])(f[_0x5e6a0c(0x276)],{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':(0x0,g['jsx'])(t[_0x5e6a0c(0x250)],{'tables':_0x305742,'formula':(0x0,t[_0x5e6a0c(0x432)])(_0x441fd6,_0x305742),'onCancel':()=>_0x2b654a(!0x1),'onSave':_0x2b2e37=>{const _0x28cea4=_0x5e6a0c;let _0x2ee295=_0x1df6d5[_0x28cea4(0x152)][_0x28cea4(0x3c8)]??{'formula':''};return _0x3deaf4({..._0x1df6d5,'shapeData':{..._0x1df6d5['shapeData'],'formulaBinding':{..._0x2ee295,'formula':(0x0,t['normalizeEditorFormulaForConfig'])(_0x2b2e37,_0x305742)}}})[_0x28cea4(0x52a)](()=>_0x2b654a(!0x1))['catch'](()=>void 0x0);}})})]});}function Q({children:_0x91ce1d,label:_0x359818}){const _0x48b003=_0x5ed5a2;return(0x0,g[_0x48b003(0x186)])(_0x48b003(0x378),{'role':_0x48b003(0x196),'aria-label':_0x359818,'className':_0x48b003(0x3a8),'children':[(0x0,g['jsx'])(_0x48b003(0x4ba),{'children':_0x359818}),_0x91ce1d]});}const Lt={[a[_0x5ed5a2(0x3a6)]['IS']]:_0x5ed5a2(0x1f1),[a['BaseFilterOperator']['IS_NOT']]:_0x5ed5a2(0x454),[a['BaseFilterOperator'][_0x5ed5a2(0x526)]]:'bases-dashboard-ui.operators.contains',[a[_0x5ed5a2(0x3a6)][_0x5ed5a2(0x236)]]:_0x5ed5a2(0x45c),[a[_0x5ed5a2(0x3a6)][_0x5ed5a2(0x1d7)]]:_0x5ed5a2(0x349),[a[_0x5ed5a2(0x3a6)][_0x5ed5a2(0x21a)]]:_0x5ed5a2(0x1c4),[a[_0x5ed5a2(0x3a6)][_0x5ed5a2(0x1cc)]]:_0x5ed5a2(0x252),[a[_0x5ed5a2(0x3a6)][_0x5ed5a2(0x4d1)]]:_0x5ed5a2(0x129),[a[_0x5ed5a2(0x3a6)]['LESS_THAN']]:_0x5ed5a2(0x257),[a[_0x5ed5a2(0x3a6)]['LESS_THAN_OR_EQUAL']]:_0x5ed5a2(0x21e),[a[_0x5ed5a2(0x3a6)][_0x5ed5a2(0x1ff)]]:'bases-dashboard-ui.operators.before',[a['BaseFilterOperator'][_0x5ed5a2(0x4be)]]:_0x5ed5a2(0x309)};function Rt({disabled:_0x5f0186,fields:_0x1c715e,filter:_0x15472d,onChange:_0x31bba5}){const _0x21745a=_0x5ed5a2;let _0x3df9dd=(0x0,m['useDependency'])(a[_0x21745a(0x331)]),_0x95f7a=(_0x15472d==null?void 0x0:_0x15472d[_0x21745a(0x1bd)])??[];return _0x95f7a['length']?(0x0,g[_0x21745a(0x40a)])(_0x21745a(0x378),{'className':_0x21745a(0x549),'children':_0x95f7a[_0x21745a(0x51d)]((_0x2c2b81,_0x178b7e)=>{const _0x19f3cb=_0x21745a;let _0x8328c9=_0x1c715e[_0x19f3cb(0x485)](_0x39f422=>_0x39f422['id']===_0x2c2b81[_0x19f3cb(0x364)]);return(0x0,g[_0x19f3cb(0x186)])(_0x19f3cb(0x378),{'className':_0x19f3cb(0x49c),'children':[(0x0,g['jsxs'])(_0x19f3cb(0x378),{'className':_0x19f3cb(0x507),'children':[(0x0,g[_0x19f3cb(0x40a)])('span',{'className':_0x19f3cb(0x2dc),'children':(_0x8328c9==null?void 0x0:_0x8328c9['name'])??_0x2c2b81[_0x19f3cb(0x364)]}),(0x0,g[_0x19f3cb(0x40a)])(_0x19f3cb(0x4ba),{'className':_0x19f3cb(0x134),'children':_0x3df9dd['t'](Lt[_0x2c2b81[_0x19f3cb(0x370)]])})]}),Kt(_0x2c2b81[_0x19f3cb(0x370)])&&(0x0,g[_0x19f3cb(0x40a)])(Bt,{'disabled':_0x5f0186,'field':_0x8328c9,'value':_0x2c2b81['operand'],'onChange':_0x3476df=>_0x31bba5(Ut(_0x15472d,_0x178b7e,{'operand':_0x3476df}))})]},Yt(_0x95f7a,_0x2c2b81,_0x178b7e));})}):(0x0,g['jsxs'])(_0x21745a(0x378),{'className':_0x21745a(0x529),'children':[(0x0,g[_0x21745a(0x40a)])(s[_0x21745a(0x44e)],{'className':_0x21745a(0x452)}),(0x0,g['jsx'])(_0x21745a(0x4ba),{'className':_0x21745a(0x265),'children':_0x3df9dd['t']('bases-dashboard-ui.dashboard.tableFilter')})]});}function zt({fields:_0x3b2068,filter:_0xc86bc5,onChange:_0x58a664,onClear:_0x2bbb23}){const _0x14016a=_0x5ed5a2;let _0x55b8b3=(0x0,m['useDependency'])(a[_0x14016a(0x331)]),_0x34ee25=(_0xc86bc5==null?void 0x0:_0xc86bc5[_0x14016a(0x1bd)])??[];return(0x0,g['jsxs'])(_0x14016a(0x378),{'data-dashboard-filter-inspector':!0x0,'className':_0x14016a(0x36e),'children':[_0x34ee25[_0x14016a(0x51d)]((_0x1e0d63,_0x3d5091)=>{const _0xa55d04=_0x14016a;let _0x4bc9fc=_0x3b2068[_0xa55d04(0x485)](_0x4c8985=>_0x4c8985['id']===_0x1e0d63[_0xa55d04(0x364)])??_0x3b2068[0x0],_0x9432c4=Wt(_0x4bc9fc);return(0x0,g[_0xa55d04(0x186)])(_0xa55d04(0x220),{'className':_0xa55d04(0x377),'children':[(0x0,g[_0xa55d04(0x186)])(_0xa55d04(0x378),{'className':_0xa55d04(0x36f),'children':[(0x0,g[_0xa55d04(0x40a)])(f[_0xa55d04(0x498)],{'value':_0x1e0d63[_0xa55d04(0x364)],'options':_0x3b2068[_0xa55d04(0x51d)](_0x2a816b=>({'value':_0x2a816b['id'],'label':_0x2a816b['name']})),'onChange':_0x2e2969=>{const _0x1fc49f=_0xa55d04;let _0x51a5d5=_0x3b2068[_0x1fc49f(0x485)](_0x33e688=>_0x33e688['id']===_0x2e2969);if(!_0x51a5d5)return;let _0x1fcfa7=Wt(_0x51a5d5)[0x0];_0x58a664(Ut(_0xc86bc5,_0x3d5091,Ht(_0x51a5d5,_0x1fcfa7)));}}),(0x0,g[_0xa55d04(0x40a)])(f[_0xa55d04(0x123)],{'type':_0xa55d04(0x304),'variant':_0xa55d04(0x1d3),'aria-label':_0x55b8b3['t'](_0xa55d04(0x395)),'className':_0xa55d04(0x1fa),'onClick':()=>_0x58a664(Vt(_0xc86bc5,_0x34ee25[_0xa55d04(0x2ac)]((_0x4eca3b,_0x3341a4)=>_0x3341a4!==_0x3d5091))),'children':(0x0,g[_0xa55d04(0x40a)])(s[_0xa55d04(0x1ef)],{})})]}),(0x0,g[_0xa55d04(0x40a)])(f[_0xa55d04(0x498)],{'value':_0x1e0d63[_0xa55d04(0x370)],'options':_0x9432c4[_0xa55d04(0x51d)](_0x27a699=>({'value':_0x27a699,'label':_0x55b8b3['t'](Lt[_0x27a699])})),'onChange':_0x413ba4=>{let _0x4c9e79=_0x9432c4['find'](_0x25aeee=>_0x25aeee===_0x413ba4);_0x4c9e79&&_0x58a664(Ut(_0xc86bc5,_0x3d5091,{'operator':_0x4c9e79,'operand':Gt(_0x4bc9fc)}));}}),Kt(_0x1e0d63[_0xa55d04(0x370)])&&(0x0,g[_0xa55d04(0x40a)])(Bt,{'field':_0x4bc9fc,'value':_0x1e0d63[_0xa55d04(0x45f)],'onChange':_0x19937f=>_0x58a664(Ut(_0xc86bc5,_0x3d5091,{'operand':_0x19937f}))})]},Yt(_0x34ee25,_0x1e0d63,_0x3d5091));}),(0x0,g[_0x14016a(0x186)])(f[_0x14016a(0x123)],{'type':_0x14016a(0x304),'variant':'text','className':'univer-w-full\x20univer-justify-start\x20univer-text-primary-600','disabled':!_0x3b2068[_0x14016a(0x253)],'onClick':()=>{let _0x18b5e8=_0x3b2068[0x0];if(!_0x18b5e8)return;let _0x5d5d0e=Wt(_0x18b5e8)[0x0];_0x58a664(Vt(_0xc86bc5,[..._0x34ee25,Ht(_0x18b5e8,_0x5d5d0e)]));},'children':[(0x0,g[_0x14016a(0x40a)])(s[_0x14016a(0x538)],{}),_0x55b8b3['t'](_0x14016a(0x128))]}),_0x34ee25[_0x14016a(0x253)]>0x0&&(0x0,g['jsx'])(f[_0x14016a(0x123)],{'type':_0x14016a(0x304),'variant':_0x14016a(0x1d3),'className':_0x14016a(0x25a),'onClick':_0x2bbb23,'children':_0x55b8b3['t'](_0x14016a(0x3d8))})]});}function Bt({disabled:_0x111133,field:_0x3ab626,onChange:_0x1722b5,value:_0xba7e49}){const _0x385155=_0x5ed5a2;let _0x3ee79a=(0x0,m[_0x385155(0x354)])(a['LocaleService']),[_0x1b26dc,_0x30bc1a]=(0x0,h[_0x385155(0x541)])({'value':_0xba7e49,'text':String(_0xba7e49??'')});Object['is'](_0x1b26dc[_0x385155(0x2a2)],_0xba7e49)||_0x30bc1a({'value':_0xba7e49,'text':String(_0xba7e49??'')});let _0x30e6ff=_0x1b26dc[_0x385155(0x1d3)],_0x1944ff=_0x5682d9=>_0x30bc1a({'value':_0xba7e49,'text':_0x5682d9}),_0x2d31d2=_0x3ab626==null?void 0x0:_0x3ab626[_0x385155(0x436)];if(_0x2d31d2===a[_0x385155(0x35c)][_0x385155(0x2b6)]){let _0x21b5f9=_0xba7e49===!0x0||_0xba7e49===_0x385155(0x556);return(0x0,g['jsxs'])(f[_0x385155(0x123)],{'type':_0x385155(0x304),'variant':_0x385155(0x2bc),'disabled':_0x111133,'className':'univer-w-full\x20univer-justify-start','onClick':()=>_0x1722b5(!_0x21b5f9),'children':[(0x0,g[_0x385155(0x40a)])(f[_0x385155(0x2b6)],{'checked':_0x21b5f9,'disabled':_0x111133,'onChange':()=>void 0x0}),_0x21b5f9?_0x3ee79a['t'](_0x385155(0x1ee)):_0x3ee79a['t'](_0x385155(0x207))]});}return Xt(_0x2d31d2)?_0x111133?(0x0,g[_0x385155(0x40a)])(f['Button'],{'type':_0x385155(0x304),'variant':_0x385155(0x2bc),'className':_0x385155(0x25a),'disabled':!0x0,'children':(0x0,a[_0x385155(0x3fe)])(_0xba7e49==null||_0xba7e49===''?void 0x0:String(_0xba7e49))[_0x385155(0x3a2)](_0x385155(0x38c))}):(0x0,g[_0x385155(0x40a)])(f[_0x385155(0x4fe)],{'className':'univer-w-full','value':(0x0,a['dateKit'])(_0xba7e49==null||_0xba7e49===''?void 0x0:String(_0xba7e49))[_0x385155(0x4dd)](),'onValueChange':_0x267ae3=>_0x1722b5((0x0,a[_0x385155(0x3fe)])(_0x267ae3)['format'](_0x385155(0x38c)))}):Qt(_0x3ab626)?(0x0,g[_0x385155(0x40a)])(f[_0x385155(0x347)],{'className':_0x385155(0x25a),'disabled':_0x111133,'value':Array[_0x385155(0x266)](_0xba7e49)?_0xba7e49[_0x385155(0x51d)](String):[],'options':qt(_0x3ab626),'onChange':_0x1722b5}):_0x2d31d2===a['BaseFieldType']['SingleSelect']||_0x2d31d2===a[_0x385155(0x35c)][_0x385155(0x2c8)]||_0x2d31d2===a['BaseFieldType'][_0x385155(0x1f2)]?(0x0,g[_0x385155(0x40a)])(f['Select'],{'className':_0x385155(0x25a),'disabled':_0x111133,'value':String(_0xba7e49??''),'options':[{'value':'','label':_0x3ee79a['t'](_0x385155(0x525))},...qt(_0x3ab626)],'onChange':_0x1722b5}):Zt(_0x2d31d2)?(0x0,g['jsx'])(f[_0x385155(0x345)],{'className':'univer-w-full','disabled':_0x111133,'inputMode':_0x385155(0x22b),'value':_0x30e6ff,'aria-invalid':_0x30e6ff!==''&&!Number[_0x385155(0x513)](Number(_0x30e6ff)),'onChange':_0x266e4f=>{const _0x48c5dd=_0x385155;_0x1944ff(_0x266e4f),_0x266e4f===''?_0x1722b5(''):Number[_0x48c5dd(0x513)](Number(_0x266e4f))&&_0x1722b5(Number(_0x266e4f));},'onBlur':()=>_0x1944ff(String(_0xba7e49??''))}):(0x0,g[_0x385155(0x40a)])(f[_0x385155(0x345)],{'disabled':_0x111133,'value':String(_0xba7e49??''),'placeholder':_0x3ee79a['t']('bases-dashboard-ui.dashboardInspector.enterValue'),'onChange':_0x1722b5});}function Vt(_0x2f9d77,_0x1e4877){const _0x55a128=_0x5ed5a2;return{'conjunction':(_0x2f9d77==null?void 0x0:_0x2f9d77['conjunction'])??a[_0x55a128(0x4c4)]['AND'],'conditions':_0x1e4877};}function Ht(_0x2d06d9,_0x2d876b){return Kt(_0x2d876b)?{'fieldId':_0x2d06d9['id'],'operator':_0x2d876b,'operand':Gt(_0x2d06d9)}:{'fieldId':_0x2d06d9['id'],'operator':_0x2d876b};}function Ut(_0x4fb018,_0x4f64dc,_0x40a4c5){const _0x3629e0=_0x5ed5a2;return Vt(_0x4fb018,((_0x4fb018==null?void 0x0:_0x4fb018[_0x3629e0(0x1bd)])??[])[_0x3629e0(0x51d)]((_0x4947cc,_0xdb07a5)=>_0xdb07a5===_0x4f64dc?{..._0x4947cc,..._0x40a4c5}:_0x4947cc));}function Wt(_0x5174cc){const _0x543226=_0x5ed5a2;let _0x21a529=[a['BaseFilterOperator']['IS_EMPTY'],a[_0x543226(0x3a6)][_0x543226(0x21a)]];switch(_0x5174cc==null?void 0x0:_0x5174cc[_0x543226(0x436)]){case a[_0x543226(0x35c)][_0x543226(0x461)]:case a[_0x543226(0x35c)][_0x543226(0x1e4)]:case a[_0x543226(0x35c)][_0x543226(0x336)]:case a[_0x543226(0x35c)][_0x543226(0x36b)]:return[a[_0x543226(0x3a6)]['IS'],a[_0x543226(0x3a6)][_0x543226(0x44f)],a['BaseFilterOperator']['GREATER_THAN'],a['BaseFilterOperator']['LESS_THAN'],..._0x21a529];case a[_0x543226(0x35c)]['Date']:case a['BaseFieldType'][_0x543226(0x2fe)]:case a[_0x543226(0x35c)][_0x543226(0x3b3)]:return[a[_0x543226(0x3a6)]['IS'],a[_0x543226(0x3a6)][_0x543226(0x44f)],a[_0x543226(0x3a6)]['BEFORE'],a[_0x543226(0x3a6)][_0x543226(0x4be)],..._0x21a529];case a[_0x543226(0x35c)][_0x543226(0x2b6)]:return[a[_0x543226(0x3a6)]['IS'],a[_0x543226(0x3a6)][_0x543226(0x44f)]];default:return[a[_0x543226(0x3a6)]['IS'],a[_0x543226(0x3a6)][_0x543226(0x44f)],a[_0x543226(0x3a6)][_0x543226(0x526)],a['BaseFilterOperator'][_0x543226(0x236)],..._0x21a529];}}function Gt(_0xe59825){const _0x278acb=_0x5ed5a2;return _0xe59825?_0xe59825[_0x278acb(0x436)]===a[_0x278acb(0x35c)]['Checkbox']?!0x1:Xt(_0xe59825[_0x278acb(0x436)])?(0x0,a[_0x278acb(0x3fe)])()[_0x278acb(0x3a2)](_0x278acb(0x38c)):Qt(_0xe59825)?[]:'':'';}function Kt(_0x323a0c){const _0x451139=_0x5ed5a2;return _0x323a0c!==a[_0x451139(0x3a6)][_0x451139(0x1d7)]&&_0x323a0c!==a['BaseFilterOperator'][_0x451139(0x21a)];}function qt(_0x30eb3d){const _0x341aba=_0x5ed5a2;var _0x4fd8db;return(Array['isArray'](_0x30eb3d==null||(_0x4fd8db=_0x30eb3d[_0x341aba(0x489)])==null?void 0x0:_0x4fd8db[_0x341aba(0x2c7)])?_0x30eb3d[_0x341aba(0x489)][_0x341aba(0x2c7)]:[])['map']((_0x3297a4,_0x305db5)=>{const _0x42d31f=_0x341aba;if(typeof _0x3297a4==_0x42d31f(0x28e))return{'label':_0x3297a4,'value':_0x3297a4};if(!Jt(_0x3297a4))return{'label':String(_0x305db5+0x1),'value':String(_0x305db5+0x1)};let _0x402cab=_0x3297a4,_0x3c0949=String(_0x402cab['name']??_0x402cab['id']??_0x305db5+0x1),_0x572019=String(_0x402cab['id']??_0x3c0949);return{'label':_0x3c0949,'value':/^opt-\d+$/[_0x42d31f(0x140)](_0x572019)?_0x3c0949:_0x572019};});}function Jt(_0x305ae8){const _0x400631=_0x5ed5a2;return typeof _0x305ae8==_0x400631(0x335)&&!!_0x305ae8;}function Yt(_0x23495b,_0x3ec555,_0x28eee8){const _0x55b292=_0x5ed5a2;let _0x488098=JSON['stringify'](_0x3ec555);return _0x488098+'-'+_0x23495b[_0x55b292(0x230)](0x0,_0x28eee8)[_0x55b292(0x2ac)](_0x64a7fb=>JSON[_0x55b292(0x2bf)](_0x64a7fb)===_0x488098)[_0x55b292(0x253)];}function Xt(_0x52c7c4){const _0x13f928=_0x5ed5a2;return _0x52c7c4===a['BaseFieldType'][_0x13f928(0x469)]||_0x52c7c4===a['BaseFieldType'][_0x13f928(0x2fe)]||_0x52c7c4===a['BaseFieldType'][_0x13f928(0x3b3)];}function Zt(_0x1f9dbd){const _0x545615=_0x5ed5a2;return _0x1f9dbd===a[_0x545615(0x35c)][_0x545615(0x461)]||_0x1f9dbd===a[_0x545615(0x35c)][_0x545615(0x1e4)]||_0x1f9dbd===a[_0x545615(0x35c)][_0x545615(0x336)]||_0x1f9dbd===a[_0x545615(0x35c)][_0x545615(0x36b)];}function Qt(_0x54ecf4){const _0x1d5ac9=_0x5ed5a2;var _0x10aa08;return(_0x54ecf4==null?void 0x0:_0x54ecf4[_0x1d5ac9(0x436)])===a[_0x1d5ac9(0x35c)]['MultiSelect']||(_0x54ecf4==null?void 0x0:_0x54ecf4['type'])===a['BaseFieldType'][_0x1d5ac9(0x2c8)]||(_0x54ecf4==null?void 0x0:_0x54ecf4[_0x1d5ac9(0x436)])===a[_0x1d5ac9(0x35c)][_0x1d5ac9(0x1f2)]&&((_0x10aa08=_0x54ecf4[_0x1d5ac9(0x489)])==null?void 0x0:_0x10aa08[_0x1d5ac9(0x402)])===!0x0;}function $t({base:_0x54f324,chartRuntime:_0x3d0213,onChange:_0x2264fd,onClose:_0x5c9627,onSelectBackgroundImage:_0x311706,onSelectImage:_0x294df7,unitId:_0xc5b870,widget:_0x2b5c67}){const _0x48e4ee=_0x5ed5a2;let _0x38acda=(0x0,m[_0x48e4ee(0x354)])(a[_0x48e4ee(0x1ac)]),_0x1f33b2=(0x0,m[_0x48e4ee(0x354)])(a['LocaleService']),_0x373815=_0x54f324['getSnapshot'](),_0x4be484=_0x48e4ee(0x326)in _0x2b5c67?_0x373815[_0x48e4ee(0x308)][_0x2b5c67[_0x48e4ee(0x326)]]:void 0x0,_0x4f8ca7=_0x2b5c67[_0x48e4ee(0x436)]===e['BaseDashboardWidgetType'][_0x48e4ee(0x237)]?_0x4be484==null?void 0x0:_0x4be484[_0x48e4ee(0x3a5)][_0x2b5c67[_0x48e4ee(0x2b4)]]:void 0x0,_0x2f4303=_0x1f33b2['t'](sn(_0x2b5c67));return(0x0,g['jsxs'])(_0x48e4ee(0x544),{'data-dashboard-inspector':!0x0,'className':_0x48e4ee(0x2c5),'children':[(0x0,g[_0x48e4ee(0x186)])('header',{'className':_0x48e4ee(0x4de),'children':[(0x0,g[_0x48e4ee(0x40a)])('h3',{'className':_0x48e4ee(0x219),'children':_0x2f4303}),(0x0,g[_0x48e4ee(0x40a)])(f[_0x48e4ee(0x123)],{'type':_0x48e4ee(0x304),'size':_0x48e4ee(0x43b),'variant':_0x48e4ee(0x1d3),'aria-label':_0x1f33b2['t'](_0x48e4ee(0x4d2)),'onClick':_0x5c9627,'children':(0x0,g[_0x48e4ee(0x40a)])(s[_0x48e4ee(0x1ef)],{})})]}),_0x2b5c67['type']===e[_0x48e4ee(0x311)]['PivotChart']&&(on(_0x4f8ca7)&&_0x3d0213?(0x0,g[_0x48e4ee(0x40a)])(Nt,{'runtime':_0x3d0213,'sourceChart':_0x4f8ca7[_0x48e4ee(0x489)][_0x48e4ee(0x43a)],'sourceName':((_0x4be484==null?void 0x0:_0x4be484['name'])??'')+'\x20/\x20'+_0x4f8ca7['name'],'widget':_0x2b5c67,'onChange':_0x2264fd,'onEditData':()=>{const _0x213153=_0x48e4ee;_0x38acda[_0x213153(0x3f9)](t['ActivateBaseViewOperation']['id'],{'unitId':_0xc5b870,'tableId':_0x2b5c67[_0x213153(0x326)],'viewId':_0x2b5c67['pivotViewId']})['catch'](()=>void 0x0);}}):(0x0,g[_0x48e4ee(0x40a)])(rn,{'message':on(_0x4f8ca7)?_0x1f33b2['t'](_0x48e4ee(0x18e)):_0x1f33b2['t'](_0x48e4ee(0x2a6))})),_0x2b5c67[_0x48e4ee(0x436)]===e[_0x48e4ee(0x311)][_0x48e4ee(0x39d)]&&(0x0,g['jsx'])(It,{'base':_0x54f324,'widget':_0x2b5c67,'onChange':_0x2264fd,'onSelectBackgroundImage':_0x311706}),_0x2b5c67['type']===e[_0x48e4ee(0x311)][_0x48e4ee(0x4cb)]&&(0x0,g[_0x48e4ee(0x40a)])(tn,{'base':_0x54f324,'onChange':_0x2264fd,'widget':_0x2b5c67}),_0x2b5c67[_0x48e4ee(0x436)]===e['BaseDashboardWidgetType'][_0x48e4ee(0x52b)]&&(0x0,g['jsx'])(nn,{'onChange':_0x2264fd,'widget':_0x2b5c67}),_0x2b5c67['type']===e[_0x48e4ee(0x311)][_0x48e4ee(0x192)]&&(0x0,g['jsx'])(en,{'onChange':_0x2264fd,'onSelectImage':_0x294df7,'widget':_0x2b5c67})]});}function en({onChange:_0x1200ba,onSelectImage:_0x94678a,widget:_0x2ee467}){const _0x314bcc=_0x5ed5a2;let _0x4f25b9=(0x0,m[_0x314bcc(0x354)])(a['LocaleService']);return(0x0,g[_0x314bcc(0x186)])(_0x314bcc(0x378),{'className':_0x314bcc(0x539),'children':[(0x0,g[_0x314bcc(0x186)])(f[_0x314bcc(0x123)],{'className':_0x314bcc(0x25a),'onClick':()=>_0x94678a()[_0x314bcc(0x52a)](_0x178562=>_0x178562&&_0x1200ba({..._0x2ee467,'source':_0x178562[_0x314bcc(0x321)],'sourceType':_0x178562[_0x314bcc(0x38e)],'alt':_0x178562[_0x314bcc(0x416)]}))[_0x314bcc(0x26e)](()=>void 0x0),'children':[(0x0,g[_0x314bcc(0x40a)])(s[_0x314bcc(0x538)],{}),_0x4f25b9['t'](_0x314bcc(0x516))]}),(0x0,g[_0x314bcc(0x186)])(_0x314bcc(0x369),{'className':_0x314bcc(0x3a8),'children':[(0x0,g[_0x314bcc(0x40a)])(_0x314bcc(0x4ba),{'children':_0x4f25b9['t'](_0x314bcc(0x42b))}),(0x0,g[_0x314bcc(0x40a)])(f[_0x314bcc(0x505)],{'items':[{'value':_0x314bcc(0x423),'label':_0x4f25b9['t'](_0x314bcc(0x212))},{'value':_0x314bcc(0x515),'label':_0x4f25b9['t'](_0x314bcc(0x1b8))},{'value':_0x314bcc(0x35f),'label':_0x4f25b9['t'](_0x314bcc(0x2e8))}],'value':_0x2ee467[_0x314bcc(0x233)]??_0x314bcc(0x423),'onChange':_0x48e4bd=>_0x1200ba({..._0x2ee467,'displayMode':_0x48e4bd})[_0x314bcc(0x26e)](()=>void 0x0)})]})]});}function tn({base:_0x3a1a90,onChange:_0x15ecea,widget:_0x4909b1}){const _0x272edc=_0x5ed5a2;let _0x2db6e4=_0x3a1a90[_0x272edc(0x2c2)]()[_0x272edc(0x308)][_0x4909b1[_0x272edc(0x326)]],_0x3db248=_0x2db6e4==null?void 0x0:_0x2db6e4[_0x272edc(0x1b7)][_0x272edc(0x485)](_0xc90ab8=>_0x2db6e4[_0x272edc(0x3a5)][_0xc90ab8]),_0xd1f2b0=_0x3db248?_0x2db6e4==null?void 0x0:_0x2db6e4[_0x272edc(0x3a5)][_0x3db248]:void 0x0,_0x328d77=_0x2db6e4&&_0xd1f2b0?(0x0,t[_0x272edc(0x1b1)])(_0x2db6e4,_0xd1f2b0):[];return(0x0,g[_0x272edc(0x40a)])(zt,{'fields':_0x328d77,'filter':_0x4909b1['filter'],'onChange':_0xf8f457=>_0x15ecea({..._0x4909b1,'filter':_0xf8f457})[_0x272edc(0x26e)](()=>void 0x0),'onClear':()=>_0x15ecea({..._0x4909b1,'filter':null})[_0x272edc(0x26e)](()=>void 0x0)});}function nn({onChange:_0x593287,widget:_0x4ee040}){const _0x148010=_0x5ed5a2;let _0x37c2a9=(0x0,m[_0x148010(0x354)])(a[_0x148010(0x331)]),_0x1c8441=(0x0,m[_0x148010(0x354)])(a['ThemeService']),_0x26b668=(0x0,m[_0x148010(0x4e3)])(()=>_0x1c8441['currentTheme$'],_0x1c8441[_0x148010(0x24d)](),!0x1,[_0x1c8441]),_0x1d12bd=oe(_0x4ee040),_0x44e936=_0x18fb5a=>_0x593287({..._0x4ee040,'appearance':{..._0x1d12bd,..._0x18fb5a}})[_0x148010(0x26e)](()=>void 0x0);return(0x0,g[_0x148010(0x186)])(_0x148010(0x378),{'className':_0x148010(0x174),'children':[(0x0,g['jsx'])(f[_0x148010(0x514)],{'defaultValue':U(_0x4ee040[_0x148010(0x183)]),'rows':0x8,'onBlur':_0x2364fc=>_0x593287({..._0x4ee040,'document':se(_0x4ee040[_0x148010(0x183)],_0x2364fc[_0x148010(0x33b)][_0x148010(0x2a2)])})[_0x148010(0x26e)](()=>void 0x0)}),(0x0,g[_0x148010(0x40a)])(n[_0x148010(0x437)],{'emptyLabel':_0x37c2a9['t'](_0x148010(0x47c)),'label':_0x37c2a9['t'](_0x148010(0x47c)),'pickerFallbackValue':_0x26b668[_0x148010(0x17c)][0x0],'resetLabel':_0x37c2a9['t'](_0x148010(0x258)),'value':_0x1d12bd[_0x148010(0x277)]??null,'onChange':_0x26c92c=>_0x44e936({'backgroundColor':_0x26c92c??void 0x0})}),(0x0,g[_0x148010(0x40a)])(n[_0x148010(0x437)],{'emptyLabel':_0x37c2a9['t'](_0x148010(0x149)),'label':_0x37c2a9['t'](_0x148010(0x149)),'pickerFallbackValue':_0x26b668[_0x148010(0x17c)][0x3e8],'resetLabel':_0x37c2a9['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x1d12bd['textColor']??null,'onChange':_0x13aaef=>_0x44e936({'textColor':_0x13aaef??void 0x0})}),(0x0,g[_0x148010(0x40a)])(an,{'label':_0x37c2a9['t'](_0x148010(0x31f)),'children':(0x0,g[_0x148010(0x40a)])(f[_0x148010(0x505)],{'items':[{'value':'left','label':_0x37c2a9['t'](_0x148010(0x2ae))},{'value':_0x148010(0x166),'label':_0x37c2a9['t'](_0x148010(0x47a))},{'value':_0x148010(0x27f),'label':_0x37c2a9['t'](_0x148010(0x20f))}],'value':_0x1d12bd['alignment'],'onChange':_0x17e416=>_0x44e936({'alignment':_0x17e416})})}),(0x0,g['jsxs'])(an,{'label':_0x37c2a9['t'](_0x148010(0x360)),'children':[(0x0,g[_0x148010(0x40a)])(f[_0x148010(0x505)],{'items':[{'value':_0x148010(0x547),'label':_0x37c2a9['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':_0x148010(0x4c6),'label':_0x37c2a9['t'](_0x148010(0x211))}],'value':_0x1d12bd[_0x148010(0x520)],'onChange':_0x56241f=>_0x44e936({'fontSizeMode':_0x56241f})}),_0x1d12bd[_0x148010(0x520)]===_0x148010(0x4c6)&&(0x0,g[_0x148010(0x40a)])(f[_0x148010(0x19a)],{'className':'univer-mt-2','min':0xa,'max':0x78,'value':_0x1d12bd[_0x148010(0x2fd)],'onChange':_0x4cd046=>_0x44e936({'fontSize':_0x4cd046??0x12,'fontSizeMode':_0x148010(0x4c6)})})]})]});}function rn({message:_0x20f986}){const _0x1964f3=_0x5ed5a2;return(0x0,g[_0x1964f3(0x40a)])(_0x1964f3(0x378),{'className':_0x1964f3(0x51a),'children':_0x20f986});}function an({children:_0x12a51b,label:_0x5155dc}){const _0x1b2860=_0x5ed5a2;return(0x0,g['jsxs'])('div',{'role':_0x1b2860(0x196),'aria-':!0x0,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[(0x0,g[_0x1b2860(0x40a)])('span',{'children':_0x5155dc}),_0x12a51b]});}function on(_0x5ff9e3){const _0x1b1a95=_0x5ed5a2;return(_0x5ff9e3==null?void 0x0:_0x5ff9e3[_0x1b1a95(0x436)])===a[_0x1b1a95(0x39b)][_0x1b1a95(0x1f7)]&&typeof _0x5ff9e3['config']==_0x1b1a95(0x335)&&_0x5ff9e3[_0x1b1a95(0x489)]!==null&&_0x1b1a95(0x264)in _0x5ff9e3[_0x1b1a95(0x489)]&&_0x1b1a95(0x43a)in _0x5ff9e3[_0x1b1a95(0x489)];}function sn(_0x235c61){const _0x264a2c=_0x5ed5a2;switch(_0x235c61[_0x264a2c(0x436)]){case e['BaseDashboardWidgetType']['PivotChart']:return _0x264a2c(0x2aa);case e[_0x264a2c(0x311)][_0x264a2c(0x4cb)]:return _0x264a2c(0x4e2);case e[_0x264a2c(0x311)][_0x264a2c(0x52b)]:return _0x264a2c(0x475);case e[_0x264a2c(0x311)]['Image']:return _0x264a2c(0x54c);case e[_0x264a2c(0x311)][_0x264a2c(0x39d)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function cn({onDelete:_0x2687e6,onEdit:_0x1dbc9f}){const _0x497177=_0x5ed5a2;let _0x55877c=(0x0,m[_0x497177(0x354)])(a[_0x497177(0x331)]),_0x395ed2=_0x55877c['t'](_0x497177(0x285)),_0x2ae92d=_0x55877c['t'](_0x497177(0x477)),_0x237b33=_0x55877c['t'](_0x497177(0x3fd));return(0x0,g[_0x497177(0x40a)])(f[_0x497177(0x4d0)],{'items':[{'type':_0x497177(0x3d9),'children':(0x0,g[_0x497177(0x186)])(_0x497177(0x4ba),{'className':_0x497177(0x408),'children':[(0x0,g[_0x497177(0x40a)])(s['PenIcon'],{'className':_0x497177(0x4ed),'aria-hidden':'true'}),(0x0,g[_0x497177(0x40a)])(_0x497177(0x4ba),{'children':_0x395ed2})]}),'onSelect':_0x1dbc9f},{'type':_0x497177(0x4bd)},{'type':_0x497177(0x3d9),'variant':'destructive','children':(0x0,g[_0x497177(0x186)])(_0x497177(0x4ba),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,g[_0x497177(0x40a)])(s[_0x497177(0x23f)],{'className':_0x497177(0x4ed),'aria-hidden':_0x497177(0x556)}),(0x0,g['jsx'])(_0x497177(0x4ba),{'children':_0x2ae92d})]}),'onSelect':_0x2687e6}],'children':(0x0,g['jsx'])(f[_0x497177(0x123)],{'type':_0x497177(0x304),'size':'small','variant':'text','title':_0x237b33,'aria-label':_0x237b33,'className':_0x497177(0x182),'children':(0x0,g[_0x497177(0x40a)])(s[_0x497177(0x135)],{'className':'univer-size-4','aria-hidden':_0x497177(0x556)})})});}function ln({dashboardId:_0x523e15,presentation:_0x38e17f=!0x1,unitId:_0x2925b7}){const _0x49a333=_0x5ed5a2;let _0x10e51e=(0x0,m[_0x49a333(0x354)])(a['ICommandService']),_0x42220f=(0x0,m[_0x49a333(0x354)])(u[_0x49a333(0x26b)]),_0xc3d6ab=(0x0,m[_0x49a333(0x354)])(a[_0x49a333(0x553)]),_0x47728c=(0x0,m[_0x49a333(0x354)])(a['IUniverInstanceService']),_0x20c433=(0x0,m[_0x49a333(0x354)])(a[_0x49a333(0x331)]),_0x14efd9=(0x0,m[_0x49a333(0x354)])(e[_0x49a333(0x3e3)]),_0x2b2868=(0x0,m[_0x49a333(0x354)])(a[_0x49a333(0x35b)]),_0x2f9a40=(0x0,h[_0x49a333(0x1b3)])(null),[_0x346150,_0x4d0fb8]=(0x0,h['useState'])(!0x1),[_0x4956db,_0x269184]=(0x0,h['useState'])(),[_0x4a7e15,_0x429de9]=(0x0,h['useState'])(!0x1),[_0x30ad44,_0x55449b]=(0x0,h[_0x49a333(0x541)])(()=>new Map()),_0x181a03=(0x0,h['useCallback'])((_0x4a704d,_0x303d61)=>{_0x55449b(_0x31e875=>{const _0x67f479=_0x46f3;let _0x1562a6=new Map(_0x31e875);return _0x303d61?_0x1562a6[_0x67f479(0x470)](_0x4a704d,_0x303d61):_0x1562a6[_0x67f479(0x397)](_0x4a704d),_0x1562a6;});},[]),_0x33a75a=(0x0,m[_0x49a333(0x4e3)])(()=>_0x14efd9[_0x49a333(0x465)][_0x49a333(0x558)]((0x0,c[_0x49a333(0x51d)])(()=>_0x14efd9[_0x49a333(0x4d7)](_0x2925b7,_0x523e15))),_0x14efd9[_0x49a333(0x4d7)](_0x2925b7,_0x523e15),!0x1,[_0x523e15,_0x14efd9,_0x2925b7]),_0x45a406=_0x47728c[_0x49a333(0x4d5)](_0x2925b7,a[_0x49a333(0x39a)][_0x49a333(0x15a)]),_0x3987e7=(0x0,m['useObservable'])(()=>_0x2b2868[_0x49a333(0x20a)],{'undos':0x0,'redos':0x0},!0x1,[_0x2b2868]),_0x3cc392=w(_0x2925b7,_0x523e15);if((0x0,h[_0x49a333(0x45e)])(()=>{const _0x4b5117=_0x49a333;_0x47728c[_0x4b5117(0x346)](_0x2925b7),_0x47728c[_0x4b5117(0x19d)](_0x2925b7);},[_0x47728c,_0x2925b7]),(0x0,h['useEffect'])(()=>{const _0x26c936=_0x49a333;let _0x10426d=_0x2f9a40['current'],_0x170736=_0x10426d==null?void 0x0:_0x10426d[_0x26c936(0x54e)];if(!_0x10426d||!_0x170736)return;let _0x334e83=()=>_0x429de9(_0x170736[_0x26c936(0x4ae)]===_0x170736[_0x26c936(0x1cd)]),_0x43674c=_0x3ed2d1=>{const _0x487a5e=_0x26c936;_0x3ed2d1[_0x487a5e(0x3b2)]==='Escape'&&!_0x3ed2d1[_0x487a5e(0x530)]&&_0x170736[_0x487a5e(0x4ae)]===_0x170736[_0x487a5e(0x1cd)]&&_0x170736['exitFullscreen']()[_0x487a5e(0x26e)](_0x334e83);};return _0x170736[_0x26c936(0x442)](_0x26c936(0x178),_0x334e83),_0x170736[_0x26c936(0x442)]('keydown',_0x43674c),()=>{const _0x2203aa=_0x26c936;_0x170736['removeEventListener'](_0x2203aa(0x178),_0x334e83),_0x170736['removeEventListener'](_0x2203aa(0x30f),_0x43674c);};},[]),!_0x33a75a||!_0x45a406)return null;let _0x396b46=_0x14f781=>_0x10e51e[_0x49a333(0x3f9)](e[_0x49a333(0x343)]['id'],{'unitId':_0x2925b7,'dashboardId':_0x523e15,'widget':_0x14f781})[_0x49a333(0x26e)](()=>void 0x0),_0x44053d=(_0x3ed448,_0x184c5d,_0x345ddc)=>{const _0x37d66c=_0x49a333;let _0x5f1583=Math[_0x37d66c(0x464)](0x0,..._0x33a75a[_0x37d66c(0x44b)][_0x37d66c(0x3e9)](_0x2a20ea=>{const _0x347761=_0x37d66c;var _0x4f3248;let _0x57db3b=(_0x4f3248=_0x33a75a[_0x347761(0x329)][_0x2a20ea])==null?void 0x0:_0x4f3248[_0x347761(0x18d)];return _0x57db3b?[_0x57db3b['row']+_0x57db3b[_0x347761(0x120)]]:[];})),_0x4914bd='dashboard-widget-'+(0x0,a['generateRandomId'])(0x8),_0x12f01a={'column':0x0,'row':_0x5f1583,'columnSpan':_0x184c5d,'rowSpan':_0x345ddc};switch(_0x3ed448[_0x37d66c(0x436)]){case e[_0x37d66c(0x311)][_0x37d66c(0x237)]:return _0x396b46({..._0x3ed448,'id':_0x4914bd,'layout':_0x12f01a});case e['BaseDashboardWidgetType']['TableFilter']:return _0x396b46({..._0x3ed448,'id':_0x4914bd,'layout':_0x12f01a});case e['BaseDashboardWidgetType'][_0x37d66c(0x52b)]:return _0x396b46({..._0x3ed448,'id':_0x4914bd,'layout':_0x12f01a});case e['BaseDashboardWidgetType'][_0x37d66c(0x192)]:return _0x396b46({..._0x3ed448,'id':_0x4914bd,'layout':_0x12f01a});case e[_0x37d66c(0x311)][_0x37d66c(0x39d)]:return _0x396b46({..._0x3ed448,'id':_0x4914bd,'layout':_0x12f01a});}},_0xf835fc=_0x45a406[_0x49a333(0x2c2)](),_0x43b42e=_0xf835fc[_0x49a333(0x2a4)][_0x49a333(0x3e9)](_0x178288=>{const _0x3f9ea0=_0x49a333;let _0x356d47=_0xf835fc['tables'][_0x178288];if(!_0x356d47)return[];let _0x26adf5=_0x356d47[_0x3f9ea0(0x1b7)][_0x3f9ea0(0x3e9)](_0x593b0d=>{const _0x2e6c58=_0x3f9ea0;let _0x8e1968=_0x356d47[_0x2e6c58(0x3a5)][_0x593b0d];return _n(_0x8e1968)?[{'type':_0x2e6c58(0x3d9),'children':_0x8e1968[_0x2e6c58(0x416)],'onSelect':()=>_0x44053d({'type':e['BaseDashboardWidgetType']['PivotChart'],'tableId':_0x178288,'pivotViewId':_0x593b0d,'chart':{..._0x8e1968[_0x2e6c58(0x489)]['chart']}},0x6,0xa)}]:[];});return[{'type':_0x3f9ea0(0x2d3),'children':_0x356d47[_0x3f9ea0(0x416)],'options':[..._0x26adf5,..._0x26adf5['length']?[{'type':'separator'}]:[],{'type':_0x3f9ea0(0x3d9),'children':_0x20c433['t'](_0x3f9ea0(0x4e2)),'onSelect':()=>_0x44053d({'type':e[_0x3f9ea0(0x311)][_0x3f9ea0(0x4cb)],'tableId':_0x178288,'filter':null},0x6,0x8)}]}];}),_0x272a49=[..._0x43b42e,..._0x43b42e['length']?[{'type':_0x49a333(0x4bd)}]:[],{'type':'item','children':_0x20c433['t'](_0x49a333(0x475)),'onSelect':()=>_0x44053d({'type':e[_0x49a333(0x311)][_0x49a333(0x52b)],'document':pn()},0x4,0x6)},{'type':_0x49a333(0x3d9),'children':_0x20c433['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>mn(_0x42220f)[_0x49a333(0x52a)](_0x19d92f=>_0x19d92f&&_0x44053d({'type':e[_0x49a333(0x311)][_0x49a333(0x192)],'source':_0x19d92f[_0x49a333(0x321)],'sourceType':_0x19d92f[_0x49a333(0x38e)],'alt':_0x19d92f['name'],'displayMode':_0x49a333(0x423)},0x4,0x6))},{'type':_0x49a333(0x3d9),'children':_0x20c433['t']('bases-dashboard-ui.dashboard.formulaShape'),'onSelect':()=>{const _0x247beb=_0x49a333;let _0x8e0903=_0xf835fc[_0x247beb(0x2a4)]['find'](_0x33d760=>_0xf835fc[_0x247beb(0x308)][_0x33d760]);_0x8e0903&&_0x44053d({'type':e[_0x247beb(0x311)][_0x247beb(0x39d)],'tableId':_0x8e0903,'shapeType':d[_0x247beb(0x1dd)][_0x247beb(0x50d)],'shapeData':(0x0,i['createFormulaShapeData'])(),'description':_0x20c433['t'](_0x247beb(0x467))},0x4,0x6);}}],_0x59f814=_0x4956db?_0x33a75a[_0x49a333(0x329)][_0x4956db]:void 0x0,_0xb93587=async()=>{const _0x1f0273=_0x49a333;let _0x862e46=_0x2f9a40['current'];if(!_0x862e46)return;let _0x3da982=_0x862e46[_0x1f0273(0x54e)];_0x3da982[_0x1f0273(0x4ae)]===_0x3da982[_0x1f0273(0x1cd)]?await _0x3da982[_0x1f0273(0x44a)]():await _0x3da982[_0x1f0273(0x1cd)][_0x1f0273(0x52e)]();},_0x51e492=_0x38e17f||_0x4a7e15,_0x418946=_0x3cc392&&!_0x51e492;return(0x0,g[_0x49a333(0x186)])(_0x49a333(0x378),{'ref':_0x2f9a40,'className':'\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-flex-col\x20univer-bg-gray-0\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-bg-gray-900\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(_0x4a7e15?_0x49a333(0x33a):'univer-relative\x20univer-z-10')+_0x49a333(0x4d8),'children':[!_0x51e492&&(0x0,g['jsxs'])(_0x49a333(0x307),{'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':[(0x0,g[_0x49a333(0x40a)])(s[_0x49a333(0x4ca)],{'className':_0x49a333(0x36a)}),(0x0,g['jsx'])('h2',{'className':_0x49a333(0x219),'children':_0x33a75a['name']}),(0x0,g[_0x49a333(0x40a)])(m[_0x49a333(0x188)],{'target':{'unitId':_0x2925b7,'objectId':(0x0,l[_0x49a333(0x557)])(_0x523e15),'objectType':p[_0x49a333(0x4a9)][_0x49a333(0x4b5)]},'name':_0x33a75a['name'],'commandId':l[_0x49a333(0x3f1)]['id'],'exists':()=>!!_0x14efd9[_0x49a333(0x4d7)](_0x2925b7,_0x523e15)},_0x2925b7+'/'+_0x523e15),(0x0,g[_0x49a333(0x40a)])(t[_0x49a333(0x289)],{'unitId':_0x2925b7}),(0x0,g['jsx'])(f[_0x49a333(0x123)],{'type':_0x49a333(0x304),'size':_0x49a333(0x43b),'variant':_0x49a333(0x1d3),'aria-label':_0x20c433['t'](_0x49a333(0x133)),'disabled':!_0x3cc392||_0x3987e7['undos']===0x0,'onClick':()=>_0x10e51e[_0x49a333(0x3f9)](a[_0x49a333(0x3c5)]['id'])['catch'](()=>void 0x0),'children':(0x0,g['jsx'])(s[_0x49a333(0x54d)],{})}),(0x0,g[_0x49a333(0x40a)])(f[_0x49a333(0x123)],{'type':_0x49a333(0x304),'size':_0x49a333(0x43b),'variant':_0x49a333(0x1d3),'aria-label':_0x20c433['t'](_0x49a333(0x506)),'disabled':!_0x3cc392||_0x3987e7[_0x49a333(0x428)]===0x0,'onClick':()=>_0x10e51e[_0x49a333(0x3f9)](a['RedoCommand']['id'])['catch'](()=>void 0x0),'children':(0x0,g[_0x49a333(0x40a)])(s[_0x49a333(0x2d2)],{})}),(0x0,g[_0x49a333(0x40a)])(f[_0x49a333(0x123)],{'type':'button','size':_0x49a333(0x43b),'variant':_0x49a333(0x1d3),'aria-label':_0x20c433['t'](_0x49a333(0x2d4)),'onClick':()=>_0xb93587()[_0x49a333(0x26e)](()=>void 0x0),'children':(0x0,g[_0x49a333(0x40a)])(s['ExpandIcon'],{})}),(0x0,g[_0x49a333(0x40a)])(f[_0x49a333(0x4d0)],{'items':_0x272a49,'children':(0x0,g[_0x49a333(0x186)])(f[_0x49a333(0x123)],{'variant':_0x49a333(0x12d),'disabled':!_0x3cc392,'children':[(0x0,g[_0x49a333(0x40a)])(s['IncreaseIcon'],{}),_0x20c433['t'](_0x49a333(0x197))]})})]}),(0x0,g['jsxs'])(_0x49a333(0x378),{'className':_0x49a333(0x334),'children':[(0x0,g[_0x49a333(0x40a)])(_0x49a333(0x378),{'className':_0x49a333(0x148),'children':(0x0,g[_0x49a333(0x40a)])(wt,{'dashboard':_0x33a75a,'dragLabel':_0x20c433['t'](_0x49a333(0x315)),'editable':_0x418946,'resizeLabel':_0x20c433['t'](_0x49a333(0x527)),'widgetLabel':_0x2a8530=>_0x20c433['t'](gn(_0x2a8530['type'])),'selectedWidgetId':_0x418946?_0x4956db:void 0x0,'onSelectWidget':_0x418946?_0x238893=>{_0x269184(_0x238893),_0x238893||_0x4d0fb8(!0x1);}:void 0x0,'onLayoutsCommit':_0x4b8108=>{const _0x18d1c7=_0x49a333;let _0x431ff3={..._0x33a75a['widgets']};_0x4b8108['forEach']((_0x55f01b,_0xc4efc7)=>{let _0x594f23=_0x431ff3[_0xc4efc7];_0x594f23&&(_0x431ff3[_0xc4efc7]={..._0x594f23,'layout':_0x55f01b});}),_0x10e51e[_0x18d1c7(0x3f9)](e[_0x18d1c7(0x205)]['id'],{'unitId':_0x2925b7,'dashboard':{..._0x33a75a,'widgets':_0x431ff3}})[_0x18d1c7(0x26e)](()=>void 0x0);},'renderWidget':_0x5da728=>(0x0,g[_0x49a333(0x40a)])(un,{'base':_0x45a406,'dashboard':_0x33a75a,'unitId':_0x2925b7,'widget':_0x5da728,'onChange':_0x396b46,'onChartRuntimeChange':_0x181a03}),'renderWidgetActions':_0x59a1b4=>(0x0,g[_0x49a333(0x40a)])(cn,{'onEdit':()=>{_0x269184(_0x59a1b4['id']),_0x4d0fb8(!0x0);},'onDelete':()=>{const _0x42519d=_0x49a333;_0x4956db===_0x59a1b4['id']&&(_0x269184(void 0x0),_0x4d0fb8(!0x1)),_0x10e51e[_0x42519d(0x3f9)](e[_0x42519d(0x1e0)]['id'],{'unitId':_0x2925b7,'dashboardId':_0x523e15,'widgetId':_0x59a1b4['id']})[_0x42519d(0x26e)](()=>void 0x0);}})})}),_0x418946&&_0x346150&&_0x59f814&&(0x0,g[_0x49a333(0x40a)])($t,{'base':_0x45a406,'chartRuntime':_0x30ad44['get'](_0x59f814['id']),'unitId':_0x2925b7,'widget':_0x59f814,'onChange':_0x396b46,'onClose':()=>_0x4d0fb8(!0x1),'onSelectBackgroundImage':()=>hn(_0xc3d6ab),'onSelectImage':()=>mn(_0x42220f)})]})]});}function un({base:_0x39d6d4,dashboard:_0x1abda5,onChange:_0x50ca85,onChartRuntimeChange:_0x33b5d1,unitId:_0x960b6f,widget:_0x427401}){const _0x32b07c=_0x5ed5a2;let _0x5f0770=(0x0,h[_0x32b07c(0x16e)])(()=>_0x1abda5[_0x32b07c(0x44b)][_0x32b07c(0x3e9)](_0x1cbad6=>{const _0xfeefdb=_0x32b07c;let _0x22e568=_0x1abda5[_0xfeefdb(0x329)][_0x1cbad6];return(_0x22e568==null?void 0x0:_0x22e568[_0xfeefdb(0x436)])===e['BaseDashboardWidgetType'][_0xfeefdb(0x4cb)]&&_0x22e568[_0xfeefdb(0x326)]===(_0xfeefdb(0x326)in _0x427401?_0x427401[_0xfeefdb(0x326)]:'')&&_0x22e568[_0xfeefdb(0x2ac)]?[_0x22e568['filter']]:[];}),[_0x1abda5,_0x427401]);switch(_0x427401[_0x32b07c(0x436)]){case e[_0x32b07c(0x311)][_0x32b07c(0x237)]:return(0x0,g[_0x32b07c(0x40a)])(ie,{'filters':_0x5f0770,'unitId':_0x960b6f,'widget':_0x427401,'onRuntimeChange':_0x33b5d1});case e[_0x32b07c(0x311)][_0x32b07c(0x4cb)]:return(0x0,g[_0x32b07c(0x40a)])(Rt,{'fields':dn(_0x39d6d4,_0x427401[_0x32b07c(0x326)]),'filter':_0x427401[_0x32b07c(0x2ac)],'onChange':_0x119a77=>_0x50ca85({..._0x427401,'filter':_0x119a77})[_0x32b07c(0x26e)](()=>void 0x0)});case e[_0x32b07c(0x311)][_0x32b07c(0x52b)]:return(0x0,g['jsx'])(ce,{'widget':_0x427401});case e[_0x32b07c(0x311)][_0x32b07c(0x192)]:return(0x0,g['jsx'])(fn,{'widget':_0x427401});case e[_0x32b07c(0x311)][_0x32b07c(0x39d)]:return(0x0,g[_0x32b07c(0x40a)])(M,{'dashboardId':_0x1abda5['id'],'unitId':_0x960b6f,'widget':_0x427401});}}function dn(_0x7cabe4,_0x4139fd){const _0x2c8465=_0x5ed5a2;let _0x287c4d=_0x7cabe4[_0x2c8465(0x2c2)]()[_0x2c8465(0x308)][_0x4139fd],_0x43ef36=_0x287c4d==null?void 0x0:_0x287c4d['viewOrder']['find'](_0x1f91fd=>_0x287c4d[_0x2c8465(0x3a5)][_0x1f91fd]),_0x47199e=_0x43ef36?_0x287c4d==null?void 0x0:_0x287c4d[_0x2c8465(0x3a5)][_0x43ef36]:void 0x0;return _0x287c4d&&_0x47199e?(0x0,t[_0x2c8465(0x1b1)])(_0x287c4d,_0x47199e):[];}function fn({widget:_0x3691c4}){const _0x7799e1=_0x5ed5a2;let _0x2285d9=(0x0,m['useDependency'])(u[_0x7799e1(0x26b)]),[_0xf41b05,_0x484e94]=(0x0,h['useState'])(_0x3691c4[_0x7799e1(0x38e)]===a[_0x7799e1(0x4af)]['UUID']?'':_0x3691c4[_0x7799e1(0x321)]);return(0x0,h[_0x7799e1(0x45e)])(()=>{const _0x2feec6=_0x7799e1;let _0x351f72=!0x0;return _0x2285d9[_0x2feec6(0x455)](_0x3691c4[_0x2feec6(0x321)],_0x3691c4['sourceType'])[_0x2feec6(0x52a)](_0x1e80be=>{_0x351f72&&_0x484e94(_0x1e80be);})[_0x2feec6(0x26e)](()=>void 0x0),()=>{_0x351f72=!0x1;};},[_0x2285d9,_0x3691c4[_0x7799e1(0x321)],_0x3691c4['sourceType']]),_0xf41b05?(0x0,g['jsx'])(_0x7799e1(0x378),{'role':_0x3691c4['alt']?'img':void 0x0,'aria-label':_0x3691c4[_0x7799e1(0x3d1)]||void 0x0,'data-dashboard-image':_0x3691c4['id'],'className':_0x7799e1(0x332),'style':E(_0xf41b05,_0x3691c4['displayMode'])}):null;}function pn(){const _0x193cde=_0x5ed5a2;let _0x4b6736=(0x0,a['createParagraphId'])(new Set());return{'id':_0x193cde(0x394)+(0x0,a[_0x193cde(0x19c)])(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x4b6736}]},'documentStyle':{}};}function mn(_0x2eae41){return new Promise(_0x55cf8d=>{const _0x1dc6aa=_0x46f3;let _0x2eca5e=document['createElement'](_0x1dc6aa(0x255));_0x2eca5e[_0x1dc6aa(0x436)]='file',_0x2eca5e[_0x1dc6aa(0x42c)]=_0x1dc6aa(0x2a9),_0x2eca5e[_0x1dc6aa(0x442)]('change',()=>{const _0x153af4=_0x1dc6aa;var _0xe1f364;let _0x1a008e=(_0xe1f364=_0x2eca5e[_0x153af4(0x2e1)])==null?void 0x0:_0xe1f364[0x0];_0x1a008e?_0x2eae41['saveAttachment'](_0x1a008e)[_0x153af4(0x52a)](_0x532137=>{const _0x17d54e=_0x153af4;!_0x532137[_0x17d54e(0x321)]||_0x532137['sourceType']===void 0x0?_0x55cf8d(null):_0x55cf8d({'name':_0x532137[_0x17d54e(0x416)],'source':_0x532137['source'],'sourceType':_0x532137[_0x17d54e(0x38e)]});})['catch'](()=>_0x55cf8d(null)):_0x55cf8d(null);},{'once':!0x0}),_0x2eca5e[_0x1dc6aa(0x361)]();});}function hn(_0x2eced3){return new Promise(_0x335f6a=>{const _0x4f29b8=_0x46f3;let _0x8e6a69=document['createElement'](_0x4f29b8(0x255));_0x8e6a69[_0x4f29b8(0x436)]=_0x4f29b8(0x4b0),_0x8e6a69['accept']=_0x4f29b8(0x2a9),_0x8e6a69[_0x4f29b8(0x442)](_0x4f29b8(0x327),()=>{const _0x50895b=_0x4f29b8;var _0x288f02;let _0x2fc3be=(_0x288f02=_0x8e6a69['files'])==null?void 0x0:_0x288f02[0x0];_0x2fc3be?_0x2eced3[_0x50895b(0x28c)](_0x2fc3be)[_0x50895b(0x52a)](_0x3cf486=>{const _0x34caf6=_0x50895b;if(!(_0x3cf486!=null&&_0x3cf486[_0x34caf6(0x321)]))_0x335f6a(null);else{if(_0x3cf486[_0x34caf6(0x1d2)]){let _0x22297b=new Image();_0x22297b['src']=_0x3cf486[_0x34caf6(0x1d2)],_0x2eced3[_0x34caf6(0x4eb)](_0x3cf486['source'],_0x3cf486[_0x34caf6(0x1e9)],_0x22297b);}_0x335f6a({'source':_0x3cf486[_0x34caf6(0x321)],'sourceType':_0x3cf486[_0x34caf6(0x1e9)]});}})['catch'](()=>_0x335f6a(null)):_0x335f6a(null);},{'once':!0x0}),_0x8e6a69[_0x4f29b8(0x361)]();});}function gn(_0x3a86fb){const _0x55e036=_0x5ed5a2;switch(_0x3a86fb){case e[_0x55e036(0x311)][_0x55e036(0x237)]:return _0x55e036(0x2aa);case e[_0x55e036(0x311)]['TableFilter']:return'bases-dashboard-ui.dashboard.tableFilter';case e[_0x55e036(0x311)]['Text']:return _0x55e036(0x475);case e[_0x55e036(0x311)][_0x55e036(0x192)]:return _0x55e036(0x54c);case e[_0x55e036(0x311)][_0x55e036(0x39d)]:return _0x55e036(0x467);}}function _n(_0x5eb6ac){const _0x4ae1d5=_0x5ed5a2;return(_0x5eb6ac==null?void 0x0:_0x5eb6ac['type'])===a[_0x4ae1d5(0x39b)][_0x4ae1d5(0x1f7)]&&typeof _0x5eb6ac['config']==_0x4ae1d5(0x335)&&_0x5eb6ac[_0x4ae1d5(0x489)]!==null&&_0x4ae1d5(0x264)in _0x5eb6ac['config']&&_0x4ae1d5(0x43a)in _0x5eb6ac['config'];}const vn=[{'area':y['PivotTableFiledAreaEnum'][_0x5ed5a2(0x1de)],'key':'filterFields','label':_0x5ed5a2(0x528)},{'area':y[_0x5ed5a2(0x31a)][_0x5ed5a2(0x380)],'key':_0x5ed5a2(0x3cf),'label':_0x5ed5a2(0x4cc)},{'area':y[_0x5ed5a2(0x31a)][_0x5ed5a2(0x1dc)],'key':_0x5ed5a2(0x4d9),'label':_0x5ed5a2(0x3fb)},{'area':y['PivotTableFiledAreaEnum'][_0x5ed5a2(0x290)],'key':'valueFields','label':'bases-dashboard-ui.pivot.values'}],yn=[{'value':y[_0x5ed5a2(0x374)]['sum'],'localeKey':_0x5ed5a2(0x282)},{'value':y[_0x5ed5a2(0x374)][_0x5ed5a2(0x45a)],'localeKey':'bases-dashboard-ui.pivot.count'},{'value':y['PivotSubtotalTypeEnum'][_0x5ed5a2(0x49d)],'localeKey':_0x5ed5a2(0x4d3)},{'value':y[_0x5ed5a2(0x374)][_0x5ed5a2(0x37f)],'localeKey':_0x5ed5a2(0x1db)},{'value':y[_0x5ed5a2(0x374)][_0x5ed5a2(0x464)],'localeKey':_0x5ed5a2(0x3b5)},{'value':y[_0x5ed5a2(0x374)][_0x5ed5a2(0x2e6)],'localeKey':_0x5ed5a2(0x244)},{'value':y[_0x5ed5a2(0x374)]['product'],'localeKey':'bases-dashboard-ui.pivot.product'},{'value':y['PivotSubtotalTypeEnum']['stdDev'],'localeKey':_0x5ed5a2(0x23a)},{'value':y[_0x5ed5a2(0x374)][_0x5ed5a2(0x2c0)],'localeKey':_0x5ed5a2(0x3d5)},{'value':y[_0x5ed5a2(0x374)][_0x5ed5a2(0x306)],'localeKey':'bases-dashboard-ui.pivot.variance'},{'value':y[_0x5ed5a2(0x374)]['varp'],'localeKey':_0x5ed5a2(0x2c1)}];function bn(_0x2c0531){const _0x2f45c4=_0x5ed5a2;let {config:_0x5a5969,onChange:_0x5c482f,table:_0x4c7b67}=_0x2c0531,_0x2d9d4c=(0x0,m[_0x2f45c4(0x354)])(a[_0x2f45c4(0x331)]),[_0x2cf5a2,_0x118555]=(0x0,h['useState'])(_0x2f45c4(0x305)),[_0x3b7731,_0x4e0c5f]=(0x0,h[_0x2f45c4(0x541)])(''),[_0x5d5fe3,_0x49e541]=(0x0,h['useState'])(null),[_0x381af9,_0x590d95]=(0x0,h[_0x2f45c4(0x541)])(null),[_0x48c251,_0x4c8adb]=(0x0,h['useState'])(null),[_0x5a1f23,_0x1fc156]=(0x0,h['useState'])(null),_0x2cf97f=(0x0,h[_0x2f45c4(0x1b3)])(null),_0x5cd64f=(0x0,h[_0x2f45c4(0x16e)])(()=>_0x4c7b67['fieldOrder'][_0x2f45c4(0x3e9)](_0x18f791=>{const _0x2cea6a=_0x2f45c4;let _0xda850a=_0x4c7b67[_0x2cea6a(0x305)][_0x18f791];return _0xda850a&&_0xda850a[_0x2cea6a(0x165)]!==!0x0&&_0xda850a[_0x2cea6a(0x436)]!==a[_0x2cea6a(0x35c)][_0x2cea6a(0x333)]?[_0xda850a]:[];})[_0x2f45c4(0x2ac)](_0x1f8cfe=>_0x1f8cfe[_0x2f45c4(0x416)][_0x2f45c4(0x488)]()[_0x2f45c4(0x433)](_0x3b7731['trim']()[_0x2f45c4(0x488)]())),[_0x3b7731,_0x4c7b67]),_0x293b9b=_0x2d5771=>{const _0x5f2771=_0x2f45c4;let _0x32ea0d=(0x0,e[_0x5f2771(0x4c5)])(_0x4c7b67,_0x5a5969[_0x5f2771(0x264)]);try{_0x2d5771(_0x32ea0d),_0x5c482f({'pivot':_0x32ea0d[_0x5f2771(0x463)]()});}finally{_0x32ea0d['dispose']();}},_0x5b4339=(_0x13e054,_0x1acf72)=>{_0x5d5fe3&&(_0x293b9b(_0x44575d=>{const _0x5b7d49=_0x46f3;if(_0x5d5fe3[_0x5b7d49(0x419)]===_0x5b7d49(0x2b1)){let _0x1fd846=_0x44575d[_0x5b7d49(0x51b)](_0x5d5fe3['id']),_0x5b7601=_0x1fd846[_0x5b7d49(0x3cc)]===_0x13e054&&_0x1fd846[_0x5b7d49(0x296)]<_0x1acf72?_0x1acf72-0x1:_0x1acf72;_0x44575d[_0x5b7d49(0x1ec)](_0x5d5fe3['id'],_0x13e054,_0x5b7601);}else On(_0x44575d,_0x5d5fe3['id'],_0x13e054,_0x1acf72);}),_0x49e541(null),_0x590d95(null));};return(0x0,g[_0x2f45c4(0x186)])(_0x2f45c4(0x378),{'className':'univer-flex\x20univer-min-h-full\x20univer-flex-col','children':[(0x0,g['jsx'])(n[_0x2f45c4(0x23d)],{'ariaLabel':_0x2d9d4c['t'](_0x2f45c4(0x159)),'className':_0x2f45c4(0x4e4),'items':[{'label':_0x2d9d4c['t'](_0x2f45c4(0x286)),'panelId':_0x2f45c4(0x44c),'value':_0x2f45c4(0x305)},{'label':_0x2d9d4c['t'](_0x2f45c4(0x421)),'panelId':_0x2f45c4(0x4b6),'value':_0x2f45c4(0x2c7)}],'value':_0x2cf5a2,'onChange':_0x118555}),(0x0,g[_0x2f45c4(0x40a)])(_0x2f45c4(0x378),{'ref':_0x2cf97f,'className':(0x0,f[_0x2f45c4(0x328)])('univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3',f['scrollbarClassName']),'onDragOver':_0x4df2e4=>{const _0x2c1d7f=_0x2f45c4;let _0x4dd041=_0x2cf97f[_0x2c1d7f(0x28f)];if(!_0x4dd041)return;let _0x576354=_0x4dd041[_0x2c1d7f(0x1eb)]();_0x4df2e4[_0x2c1d7f(0x512)]<_0x576354[_0x2c1d7f(0x51e)]+0x30?_0x4dd041[_0x2c1d7f(0x3fc)]-=0x10:_0x4df2e4[_0x2c1d7f(0x512)]>_0x576354['bottom']-0x30&&(_0x4dd041[_0x2c1d7f(0x3fc)]+=0x10);},'children':_0x2cf5a2===_0x2f45c4(0x2c7)?(0x0,g[_0x2f45c4(0x40a)])(Dn,{'config':_0x5a5969,'commit':_0x293b9b}):(0x0,g[_0x2f45c4(0x186)])(_0x2f45c4(0x378),{'className':_0x2f45c4(0x367),'children':[(0x0,g[_0x2f45c4(0x186)])(_0x2f45c4(0x378),{'children':[(0x0,g['jsx'])(_0x2f45c4(0x378),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x2d9d4c['t'](_0x2f45c4(0x1d6))}),(0x0,g[_0x2f45c4(0x40a)])(f[_0x2f45c4(0x345)],{'allowClear':!0x0,'slot':(0x0,g[_0x2f45c4(0x40a)])(s[_0x2f45c4(0x142)],{}),'value':_0x3b7731,'placeholder':_0x2d9d4c['t'](_0x2f45c4(0x1e3)),'onChange':_0x4e0c5f}),(0x0,g[_0x2f45c4(0x40a)])(_0x2f45c4(0x378),{'className':_0x2f45c4(0x268),'children':_0x5cd64f['map'](_0x1823a3=>(0x0,g[_0x2f45c4(0x40a)])(xn,{'config':_0x5a5969,'field':_0x1823a3,'onAdd':_0x518d03=>_0x293b9b(_0xf2aa58=>On(_0xf2aa58,_0x1823a3['id'],_0x518d03,_0xf2aa58['getFieldCountByArea'](_0x518d03))),'onCheckedChange':_0x503d9a=>_0x293b9b(_0x4530fb=>{const _0x1c161b=_0x2f45c4;let _0x2648ea=_0x4530fb[_0x1c161b(0x301)](_0x1823a3['id']);if(!_0x503d9a)_0x2648ea[_0x1c161b(0x1f9)](_0x57fee8=>_0x4530fb[_0x1c161b(0x3e2)](_0x57fee8[_0x1c161b(0x2ec)]()));else{if(_0x2648ea[_0x1c161b(0x253)]===0x0){let _0x7c6112=An(_0x1823a3)?y[_0x1c161b(0x31a)][_0x1c161b(0x290)]:y[_0x1c161b(0x31a)][_0x1c161b(0x1dc)];_0x4530fb[_0x1c161b(0x163)](_0x1823a3['id'],_0x7c6112);}}}),'onDragStart':()=>_0x49e541({'kind':_0x2f45c4(0x321),'id':_0x1823a3['id']})},_0x1823a3['id']))})]}),(0x0,g[_0x2f45c4(0x40a)])(_0x2f45c4(0x378),{'className':_0x2f45c4(0x3dc),'children':vn[_0x2f45c4(0x51d)](_0x2bd837=>(0x0,g[_0x2f45c4(0x40a)])(Cn,{'area':_0x2bd837[_0x2f45c4(0x3cc)],'dropTarget':_0x381af9,'fields':_0x5a5969[_0x2f45c4(0x264)][_0x2bd837['key']],'label':_0x2d9d4c['t'](_0x2bd837[_0x2f45c4(0x369)]),'snapshot':_0x5a5969[_0x2f45c4(0x264)],'onDragEnd':()=>{_0x49e541(null),_0x590d95(null);},'onDragStart':_0x5ef607=>_0x49e541({'kind':'field','id':_0x5ef607,'area':_0x2bd837[_0x2f45c4(0x3cc)]}),'onDragOver':_0x1d6e09=>_0x590d95({'area':_0x2bd837[_0x2f45c4(0x3cc)],'index':_0x1d6e09}),'onDrop':_0x19efcd=>_0x5b4339(_0x2bd837[_0x2f45c4(0x3cc)],_0x19efcd),'onFilter':_0x4c8adb,'onRemove':_0x344c08=>_0x293b9b(_0xd99309=>_0xd99309[_0x2f45c4(0x3e2)](_0x344c08)),'onSettings':_0x1fc156},_0x2bd837[_0x2f45c4(0x3cc)]))}),_0x48c251&&(0x0,g['jsx'])(Tn,{'fieldId':_0x48c251,'snapshot':_0x5a5969[_0x2f45c4(0x264)],'table':_0x4c7b67,'onCancel':()=>_0x4c8adb(null),'onCommit':(_0x13118d,_0x5691d3)=>{_0x293b9b(_0x396537=>{const _0x430128=_0x46f3;let _0xe5c9ad=_0x396537['getDataFieldByTableId'](_0x48c251),_0x3b8db1=(_0xe5c9ad==null?void 0x0:_0xe5c9ad[_0x430128(0x246)])??[];_0x396537[_0x430128(0x4da)](_0x48c251,{'type':y[_0x430128(0x3f6)][_0x430128(0x443)],'list':_0x13118d,'isAll':_0x13118d[_0x430128(0x253)]===_0x3b8db1['length']}),_0x396537['setSortInfo'](_0x48c251,_0x5691d3===void 0x0?void 0x0:{'type':_0x5691d3});}),_0x4c8adb(null);}},_0x48c251),_0x5a1f23&&(0x0,g[_0x2f45c4(0x40a)])(En,{'field':_0x5a5969[_0x2f45c4(0x264)][_0x2f45c4(0x492)][_0x5a1f23],'onCancel':()=>_0x1fc156(null),'onCommit':(_0x42a750,_0x171218,_0x5b78ff)=>{_0x293b9b(_0x822f4=>{const _0x5e13bf=_0x46f3;_0x822f4[_0x5e13bf(0x383)](_0x5a1f23,_0x42a750),_0x822f4[_0x5e13bf(0x23b)](_0x5a1f23,_0x171218),_0x822f4[_0x5e13bf(0x2c6)](_0x5a1f23,_0x5b78ff||void 0x0);}),_0x1fc156(null);}},_0x5a1f23)]})})]});}function xn(_0x5f0ea3){const _0x265d19=_0x5ed5a2;let {config:_0xf88a7d,field:_0x48fc4a,onAdd:_0x4e018f,onCheckedChange:_0x570467,onDragStart:_0x4222b5}=_0x5f0ea3,_0x22c9ae=(0x0,m['useDependency'])(a[_0x265d19(0x331)]),_0x58a0dc=[...Object[_0x265d19(0x51c)](_0xf88a7d[_0x265d19(0x264)][_0x265d19(0x42d)]),...Object[_0x265d19(0x51c)](_0xf88a7d[_0x265d19(0x264)][_0x265d19(0x492)])][_0x265d19(0x351)](_0x5730c5=>_0x5730c5['dataFieldId']===_0x48fc4a['id']),_0x3ec84a=vn[_0x265d19(0x51d)](_0x2c8b85=>({'type':'item','children':_0x22c9ae['t'](jn(_0x2c8b85['area'])),'onSelect':()=>_0x4e018f(_0x2c8b85[_0x265d19(0x3cc)])}));return(0x0,g['jsxs'])(_0x265d19(0x378),{'draggable':!0x0,'className':'univer-group\x20univer-flex\x20univer-h-8\x20univer-items-center\x20univer-gap-2\x20univer-rounded-md\x20univer-px-1\x20hover:univer-bg-gray-100\x20dark:hover:!univer-bg-gray-700','onDragStart':_0x4222b5,'children':[(0x0,g[_0x265d19(0x40a)])(s[_0x265d19(0x130)],{'className':_0x265d19(0x20c)}),(0x0,g[_0x265d19(0x40a)])(f[_0x265d19(0x2b6)],{'checked':_0x58a0dc,'onChange':_0x46dea3=>_0x570467(!!_0x46dea3)}),(0x0,g[_0x265d19(0x40a)])(Sn,{'field':_0x48fc4a}),(0x0,g[_0x265d19(0x40a)])(_0x265d19(0x4ba),{'className':_0x265d19(0x4b7),'children':_0x48fc4a[_0x265d19(0x416)]}),(0x0,g[_0x265d19(0x40a)])(f[_0x265d19(0x4d0)],{'align':'end','items':_0x3ec84a,'children':(0x0,g['jsx'])('span',{'className':_0x265d19(0x2eb),'children':(0x0,g[_0x265d19(0x40a)])(s['MoreDownIcon'],{})})})]});}function Sn({field:_0x15eab8}){const _0xb1645a=_0x5ed5a2;return An(_0x15eab8)?(0x0,g[_0xb1645a(0x40a)])(s['NumberIcon'],{'className':_0xb1645a(0x20c)}):_0x15eab8[_0xb1645a(0x436)]===a['BaseFieldType'][_0xb1645a(0x469)]||_0x15eab8[_0xb1645a(0x436)]===a[_0xb1645a(0x35c)]['CreatedAt']||_0x15eab8[_0xb1645a(0x436)]===a[_0xb1645a(0x35c)][_0xb1645a(0x3b3)]?(0x0,g['jsx'])(s[_0xb1645a(0x324)],{'className':'univer-text-gray-400'}):(0x0,g['jsx'])(s[_0xb1645a(0x180)],{'className':_0xb1645a(0x20c)});}function Cn(_0x43cd10){const _0x247f61=_0x5ed5a2;let {area:_0x5b6d13,dropTarget:_0x56527b,fields:_0x18ff31,label:_0x136fdd,snapshot:_0x562cec}=_0x43cd10,_0x294ce2=(0x0,m[_0x247f61(0x354)])(a[_0x247f61(0x331)]);return(0x0,g['jsxs'])(_0x247f61(0x220),{'className':(0x0,f[_0x247f61(0x328)])(_0x247f61(0x392),f['borderClassName']),'onDragOver':_0x545ae7=>{const _0x7fe0e6=_0x247f61;_0x545ae7['preventDefault'](),_0x43cd10[_0x7fe0e6(0x404)](_0x18ff31[_0x7fe0e6(0x253)]);},'onDrop':_0x2b5001=>{const _0x4992d3=_0x247f61;_0x2b5001[_0x4992d3(0x48a)](),_0x43cd10[_0x4992d3(0x379)]((_0x56527b==null?void 0x0:_0x56527b[_0x4992d3(0x3cc)])===_0x5b6d13?_0x56527b[_0x4992d3(0x296)]:_0x18ff31['length']);},'children':[(0x0,g[_0x247f61(0x40a)])(_0x247f61(0x378),{'className':_0x247f61(0x484),'children':_0x136fdd}),(0x0,g[_0x247f61(0x186)])(_0x247f61(0x378),{'className':'univer-flex\x20univer-flex-col','children':[_0x18ff31[_0x247f61(0x51d)]((_0x55bfcc,_0x48750b)=>{const _0x579a50=_0x247f61;let _0x11fa6f=_0x562cec[_0x579a50(0x42d)][_0x55bfcc]??_0x562cec[_0x579a50(0x492)][_0x55bfcc];if(!_0x11fa6f)return null;let _0x4e3c31=(_0x56527b==null?void 0x0:_0x56527b[_0x579a50(0x3cc)])===_0x5b6d13&&_0x56527b[_0x579a50(0x296)]===_0x48750b;return(0x0,g[_0x579a50(0x186)])(_0x579a50(0x378),{'onDragOver':_0x294d98=>{const _0x341f6f=_0x579a50;_0x294d98[_0x341f6f(0x48a)](),_0x294d98[_0x341f6f(0x314)]();let _0x11c3f2=_0x294d98[_0x341f6f(0x431)][_0x341f6f(0x1eb)]();_0x43cd10[_0x341f6f(0x404)](_0x48750b+ +(_0x294d98[_0x341f6f(0x512)]>_0x11c3f2[_0x341f6f(0x51e)]+_0x11c3f2['height']/0x2));},'onDrop':_0x1692ce=>{const _0x36089a=_0x579a50;_0x1692ce[_0x36089a(0x48a)](),_0x1692ce['stopPropagation'](),_0x43cd10[_0x36089a(0x379)]((_0x56527b==null?void 0x0:_0x56527b[_0x36089a(0x3cc)])===_0x5b6d13?_0x56527b[_0x36089a(0x296)]:_0x48750b);},'children':[_0x4e3c31&&(0x0,g['jsx'])(_0x579a50(0x378),{'className':_0x579a50(0x36d)}),(0x0,g[_0x579a50(0x40a)])(wn,{'area':_0x5b6d13,'field':_0x11fa6f,'onDragEnd':_0x43cd10['onDragEnd'],'onDragStart':()=>_0x43cd10[_0x579a50(0x2f9)](_0x55bfcc),'onFilter':()=>_0x43cd10[_0x579a50(0x31e)](_0x55bfcc),'onRemove':()=>_0x43cd10[_0x579a50(0x25e)](_0x55bfcc),'onSettings':()=>_0x43cd10[_0x579a50(0x1c6)](_0x55bfcc)})]},_0x55bfcc);}),(_0x56527b==null?void 0x0:_0x56527b[_0x247f61(0x3cc)])===_0x5b6d13&&_0x56527b[_0x247f61(0x296)]===_0x18ff31[_0x247f61(0x253)]&&(0x0,g[_0x247f61(0x40a)])('div',{'className':_0x247f61(0x36d)}),_0x18ff31['length']===0x0&&(0x0,g[_0x247f61(0x40a)])('div',{'className':_0x247f61(0x4ec),'children':_0x294ce2['t'](_0x247f61(0x235))})]})]});}function wn(_0x1a18fd){const _0x451c67=_0x5ed5a2;let _0x35cf7e=(0x0,m[_0x451c67(0x354)])(a[_0x451c67(0x331)]),_0x527b09=_0x1a18fd['area']===y[_0x451c67(0x31a)][_0x451c67(0x290)],_0x4a1a82=[{'type':_0x451c67(0x3d9),'children':_0x35cf7e['t'](_0x451c67(0x403)),'onSelect':_0x1a18fd[_0x451c67(0x25e)]},{'type':_0x451c67(0x3d9),'children':_0x35cf7e['t'](_0x527b09?_0x451c67(0x407):'bases-dashboard-ui.pivot.filterField'),'onSelect':_0x527b09?_0x1a18fd['onSettings']:_0x1a18fd[_0x451c67(0x31e)]}];return(0x0,g['jsxs'])(_0x451c67(0x378),{'draggable':!0x0,'className':_0x451c67(0x30b),'onDragEnd':_0x1a18fd[_0x451c67(0x472)],'onDragStart':_0x1a18fd['onDragStart'],'children':[(0x0,g[_0x451c67(0x40a)])(s[_0x451c67(0x130)],{'className':'univer-text-gray-400'}),(0x0,g[_0x451c67(0x40a)])(f[_0x451c67(0x2a0)],{'title':_0x1a18fd[_0x451c67(0x2b1)][_0x451c67(0x20e)],'children':(0x0,g[_0x451c67(0x40a)])(_0x451c67(0x4ba),{'className':_0x451c67(0x4b7),'children':_0x1a18fd[_0x451c67(0x2b1)]['displayName']})}),(0x0,g[_0x451c67(0x40a)])(f[_0x451c67(0x4d0)],{'align':_0x451c67(0x1b6),'items':_0x4a1a82,'children':(0x0,g[_0x451c67(0x40a)])(_0x451c67(0x4ba),{'className':'univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','children':(0x0,g[_0x451c67(0x40a)])(s['MoreDownIcon'],{})})})]});}function Tn(_0x12580b){const _0x26a71e=_0x5ed5a2;var _0x333de3,_0x124956;let _0x2d7775=(0x0,m['useDependency'])(a['LocaleService']),{format:_0x65b01d,items:_0x522dae,itemTypes:_0x4d6fcd}=(0x0,h[_0x26a71e(0x16e)])(()=>{const _0x4731ea=_0x26a71e;let _0x51922e=(0x0,e['createBasePivotTable'])(_0x12580b[_0x4731ea(0x1a8)],_0x12580b[_0x4731ea(0x4dc)]);try{let _0x33b5be=_0x51922e[_0x4731ea(0x4aa)](_0x12580b[_0x4731ea(0x364)]);return{'format':_0x33b5be==null?void 0x0:_0x33b5be[_0x4731ea(0x3a2)],'items':[...(_0x33b5be==null?void 0x0:_0x33b5be[_0x4731ea(0x246)])??[]],'itemTypes':[...(_0x33b5be==null?void 0x0:_0x33b5be[_0x4731ea(0x445)])??[]]};}finally{_0x51922e[_0x4731ea(0x2f1)]();}},[_0x12580b['fieldId'],_0x12580b[_0x26a71e(0x4dc)],_0x12580b[_0x26a71e(0x1a8)]]),_0x36ec83=(_0x333de3=_0x12580b[_0x26a71e(0x4dc)][_0x26a71e(0x42d)][_0x12580b[_0x26a71e(0x364)]])==null?void 0x0:_0x333de3[_0x26a71e(0x37d)],[_0x50cf1f,_0x5c8c75]=(0x0,h[_0x26a71e(0x541)])((_0x36ec83==null?void 0x0:_0x36ec83[_0x26a71e(0x436)])===y[_0x26a71e(0x3f6)][_0x26a71e(0x443)]?_0x36ec83['list']:_0x522dae),[_0x59ab74,_0x4050e8]=(0x0,h[_0x26a71e(0x541)])((_0x124956=_0x12580b['snapshot'][_0x26a71e(0x42d)][_0x12580b['fieldId']])==null||(_0x124956=_0x124956[_0x26a71e(0x33c)])==null?void 0x0:_0x124956[_0x26a71e(0x436)]),_0x19bf71=_0x50cf1f[_0x26a71e(0x253)]===_0x522dae[_0x26a71e(0x253)];return(0x0,g['jsxs'])(_0x26a71e(0x220),{'className':(0x0,f[_0x26a71e(0x328)])(_0x26a71e(0x411),f[_0x26a71e(0x2cc)]),'children':[(0x0,g[_0x26a71e(0x40a)])(_0x26a71e(0x378),{'className':_0x26a71e(0x1fc),'children':_0x2d7775['t']('bases-dashboard-ui.pivot.filterField')}),(0x0,g[_0x26a71e(0x186)])('div',{'className':_0x26a71e(0x14d),'children':[(0x0,g[_0x26a71e(0x186)])(f[_0x26a71e(0x123)],{'className':_0x26a71e(0x462),'variant':_0x59ab74===y[_0x26a71e(0x124)][_0x26a71e(0x34e)]?'primary':_0x26a71e(0x2bc),'onClick':()=>_0x4050e8(y['PivotDataFieldSortOperatorEnum']['ascending']),'children':[(0x0,g['jsx'])(s[_0x26a71e(0x46b)],{}),_0x2d7775['t'](_0x26a71e(0x1ed))]}),(0x0,g[_0x26a71e(0x186)])(f[_0x26a71e(0x123)],{'className':'univer-flex-1','variant':_0x59ab74===y['PivotDataFieldSortOperatorEnum'][_0x26a71e(0x344)]?'primary':'default','onClick':()=>_0x4050e8(y['PivotDataFieldSortOperatorEnum']['descending']),'children':[(0x0,g[_0x26a71e(0x40a)])(s[_0x26a71e(0x4c7)],{}),_0x2d7775['t'](_0x26a71e(0x26a))]})]}),(0x0,g[_0x26a71e(0x186)])(_0x26a71e(0x378),{'className':'univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','children':[(0x0,g[_0x26a71e(0x186)])(_0x26a71e(0x369),{'className':_0x26a71e(0x4c0),'children':[(0x0,g[_0x26a71e(0x40a)])(f[_0x26a71e(0x2b6)],{'checked':_0x19bf71,'indeterminate':_0x50cf1f[_0x26a71e(0x253)]>0x0&&!_0x19bf71,'onChange':()=>_0x5c8c75(_0x19bf71?[]:_0x522dae)}),_0x2d7775['t'](_0x26a71e(0x2a8))]}),_0x522dae[_0x26a71e(0x51d)]((_0x349720,_0x5a1e3d)=>(0x0,g[_0x26a71e(0x186)])(_0x26a71e(0x369),{'className':_0x26a71e(0x4c0),'children':[(0x0,g[_0x26a71e(0x40a)])(f[_0x26a71e(0x2b6)],{'checked':_0x50cf1f[_0x26a71e(0x433)](_0x349720),'onChange':()=>_0x5c8c75(_0x1ab842=>_0x1ab842['includes'](_0x349720)?_0x1ab842[_0x26a71e(0x2ac)](_0x544cd5=>_0x544cd5!==_0x349720):[..._0x1ab842,_0x349720])}),(0x0,g['jsx'])('span',{'className':_0x26a71e(0x126),'children':kn(_0x349720,_0x4d6fcd[_0x5a1e3d],_0x65b01d,_0x2d7775['t'](_0x26a71e(0x522)))})]},_0x349720))]}),(0x0,g[_0x26a71e(0x186)])(_0x26a71e(0x378),{'className':_0x26a71e(0x222),'children':[(0x0,g['jsx'])(f[_0x26a71e(0x123)],{'variant':'link','onClick':()=>_0x12580b['onCommit'](_0x522dae,_0x59ab74),'children':_0x2d7775['t'](_0x26a71e(0x1a3))}),(0x0,g[_0x26a71e(0x186)])(_0x26a71e(0x378),{'className':_0x26a71e(0x391),'children':[(0x0,g[_0x26a71e(0x40a)])(f[_0x26a71e(0x123)],{'onClick':_0x12580b['onCancel'],'children':_0x2d7775['t'](_0x26a71e(0x3eb))}),(0x0,g[_0x26a71e(0x40a)])(f[_0x26a71e(0x123)],{'variant':_0x26a71e(0x12d),'disabled':_0x50cf1f[_0x26a71e(0x253)]===0x0,'onClick':()=>_0x12580b[_0x26a71e(0x151)](_0x50cf1f,_0x59ab74),'children':_0x2d7775['t'](_0x26a71e(0x25d))})]})]})]});}function En(_0x2fc737){const _0x4750ce=_0x5ed5a2;var _0x286909,_0x5a1660,_0x47f1cf;let _0xc64a6d=(0x0,m[_0x4750ce(0x354)])(a[_0x4750ce(0x331)]),[_0x531ce9,_0x318f72]=(0x0,h[_0x4750ce(0x541)])(((_0x286909=_0x2fc737['field'])==null?void 0x0:_0x286909[_0x4750ce(0x20e)])??''),[_0x5f0ab2,_0x43be70]=(0x0,h[_0x4750ce(0x541)])(((_0x5a1660=_0x2fc737[_0x4750ce(0x2b1)])==null?void 0x0:_0x5a1660[_0x4750ce(0x3d3)])??y['PivotSubtotalTypeEnum'][_0x4750ce(0x4b3)]),[_0x1b08fa,_0x5f44ee]=(0x0,h['useState'])(((_0x47f1cf=_0x2fc737[_0x4750ce(0x2b1)])==null?void 0x0:_0x47f1cf[_0x4750ce(0x3a2)])??'');return _0x2fc737['field']?(0x0,g['jsxs'])('section',{'className':(0x0,f[_0x4750ce(0x328)])(_0x4750ce(0x21b),f[_0x4750ce(0x2cc)]),'children':[(0x0,g[_0x4750ce(0x40a)])(_0x4750ce(0x378),{'className':_0x4750ce(0x245),'children':_0xc64a6d['t'](_0x4750ce(0x407))}),(0x0,g['jsxs'])(_0x4750ce(0x369),{'className':_0x4750ce(0x482),'children':[_0xc64a6d['t'](_0x4750ce(0x294)),(0x0,g[_0x4750ce(0x40a)])(f[_0x4750ce(0x345)],{'value':_0x531ce9,'onChange':_0x318f72})]}),(0x0,g[_0x4750ce(0x186)])(_0x4750ce(0x369),{'className':_0x4750ce(0x482),'children':[_0xc64a6d['t'](_0x4750ce(0x14b)),(0x0,g['jsx'])(f[_0x4750ce(0x498)],{'value':String(_0x5f0ab2),'options':yn[_0x4750ce(0x51d)](_0x127181=>({'value':String(_0x127181[_0x4750ce(0x2a2)]),'label':_0xc64a6d['t'](_0x127181[_0x4750ce(0x426)])})),'onChange':_0x2959ae=>{const _0x15d495=_0x4750ce;let _0x69f448=yn[_0x15d495(0x485)](_0x4e9aee=>String(_0x4e9aee[_0x15d495(0x2a2)])===_0x2959ae);_0x69f448&&_0x43be70(_0x69f448[_0x15d495(0x2a2)]);}})]}),(0x0,g[_0x4750ce(0x186)])(_0x4750ce(0x369),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0xc64a6d['t'](_0x4750ce(0x3a0)),(0x0,g['jsx'])(f[_0x4750ce(0x345)],{'value':_0x1b08fa,'onChange':_0x5f44ee})]}),(0x0,g[_0x4750ce(0x186)])(_0x4750ce(0x378),{'className':_0x4750ce(0x287),'children':[(0x0,g[_0x4750ce(0x40a)])(f[_0x4750ce(0x123)],{'onClick':_0x2fc737[_0x4750ce(0x3de)],'children':_0xc64a6d['t'](_0x4750ce(0x3eb))}),(0x0,g[_0x4750ce(0x40a)])(f['Button'],{'variant':_0x4750ce(0x12d),'disabled':!_0x531ce9[_0x4750ce(0x198)](),'onClick':()=>_0x2fc737[_0x4750ce(0x151)](_0x531ce9['trim'](),_0x5f0ab2,_0x1b08fa),'children':_0xc64a6d['t']('bases-dashboard-ui.pivot.confirm')})]})]}):null;}function Dn(_0x34ac2a){const _0x2dcc52=_0x5ed5a2;let {config:_0x181420,commit:_0x1fed70}=_0x34ac2a,_0x4882fb=(0x0,m[_0x2dcc52(0x354)])(a['LocaleService']),_0x2f13db=_0x181420[_0x2dcc52(0x264)]['options'],_0x1f0f3c=_0x17e162=>_0x1fed70(_0x219ce9=>_0x219ce9[_0x2dcc52(0x543)]({..._0x219ce9[_0x2dcc52(0x2e4)](),..._0x17e162}));return(0x0,g[_0x2dcc52(0x186)])(_0x2dcc52(0x378),{'className':_0x2dcc52(0x367),'children':[(0x0,g[_0x2dcc52(0x186)])(_0x2dcc52(0x369),{'className':_0x2dcc52(0x3e7),'children':[_0x4882fb['t']('bases-dashboard-ui.pivot.layout'),(0x0,g['jsx'])(f['Select'],{'className':'univer-w-36','value':String(_0x181420[_0x2dcc52(0x264)][_0x2dcc52(0x18d)]),'options':[{'value':String(y['PivotLayoutTypeEnum'][_0x2dcc52(0x38b)]),'label':_0x4882fb['t'](_0x2dcc52(0x1d9))},{'value':String(y[_0x2dcc52(0x176)][_0x2dcc52(0x1ce)]),'label':_0x4882fb['t'](_0x2dcc52(0x50f))},{'value':String(y[_0x2dcc52(0x176)][_0x2dcc52(0x319)]),'label':_0x4882fb['t'](_0x2dcc52(0x15d))}],'onChange':_0x19d8dd=>{const _0x50a417=_0x2dcc52;let _0x375fd8=[y[_0x50a417(0x176)][_0x50a417(0x38b)],y[_0x50a417(0x176)][_0x50a417(0x1ce)],y['PivotLayoutTypeEnum'][_0x50a417(0x319)]][_0x50a417(0x485)](_0x9529c7=>String(_0x9529c7)===_0x19d8dd);_0x375fd8!==void 0x0&&_0x1fed70(_0xc423d7=>_0xc423d7['setLayout'](_0x375fd8));}})]}),[{'key':_0x2dcc52(0x4a8),'label':_0x2dcc52(0x300),'defaultValue':!0x1},{'key':_0x2dcc52(0x386),'label':_0x2dcc52(0x3db),'defaultValue':!0x1},{'key':_0x2dcc52(0x3e4),'label':_0x2dcc52(0x32e),'defaultValue':!0x0},{'key':'showRowGrandTotal','label':_0x2dcc52(0x2f7),'defaultValue':!0x0},{'key':'showColSubtotal','label':'bases-dashboard-ui.pivot.showColumnSubtotal','defaultValue':!0x0},{'key':_0x2dcc52(0x46d),'label':_0x2dcc52(0x26c),'defaultValue':!0x0}][_0x2dcc52(0x51d)](_0x4157eb=>(0x0,g[_0x2dcc52(0x186)])('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[(0x0,g[_0x2dcc52(0x40a)])(f[_0x2dcc52(0x2b6)],{'checked':!!(_0x2f13db[_0x4157eb['key']]??_0x4157eb[_0x2dcc52(0x388)]),'disabled':_0x4157eb['key']===_0x2dcc52(0x4a8)&&_0x181420[_0x2dcc52(0x264)]['layout']===y[_0x2dcc52(0x176)][_0x2dcc52(0x1ce)],'onChange':_0x1158bd=>_0x1f0f3c({[_0x4157eb['key']]:!!_0x1158bd})}),_0x4882fb['t'](_0x4157eb['label'])]},_0x4157eb[_0x2dcc52(0x3b2)])),_0x181420[_0x2dcc52(0x264)][_0x2dcc52(0x18d)]===y[_0x2dcc52(0x176)][_0x2dcc52(0x319)]&&(0x0,g[_0x2dcc52(0x186)])(_0x2dcc52(0x369),{'className':_0x2dcc52(0x3e7),'children':[_0x4882fb['t'](_0x2dcc52(0x3aa)),(0x0,g[_0x2dcc52(0x40a)])(f['Select'],{'className':_0x2dcc52(0x3ea),'value':String(_0x2f13db[_0x2dcc52(0x32a)]??y['PivotSubtotalPositionEnum'][_0x2dcc52(0x51e)]),'options':[{'value':String(y[_0x2dcc52(0x2c3)][_0x2dcc52(0x51e)]),'label':_0x4882fb['t'](_0x2dcc52(0x4d6))},{'value':String(y[_0x2dcc52(0x2c3)][_0x2dcc52(0x37b)]),'label':_0x4882fb['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x5af88c=>{const _0x130000=_0x2dcc52;let _0xdbd277=[y[_0x130000(0x2c3)]['top'],y[_0x130000(0x2c3)][_0x130000(0x37b)]][_0x130000(0x485)](_0x27f692=>String(_0x27f692)===_0x5af88c);_0xdbd277!==void 0x0&&_0x1f0f3c({'rowSubtotalPosition':_0xdbd277});}})]}),(0x0,g[_0x2dcc52(0x186)])(_0x2dcc52(0x369),{'className':_0x2dcc52(0x3e7),'children':[_0x4882fb['t'](_0x2dcc52(0x127)),(0x0,g['jsx'])(f[_0x2dcc52(0x498)],{'className':'univer-w-36','value':String(_0x181420[_0x2dcc52(0x264)][_0x2dcc52(0x3cb)]===y[_0x2dcc52(0x3ba)][_0x2dcc52(0x1a1)]?y[_0x2dcc52(0x3ba)][_0x2dcc52(0x380)]:_0x181420[_0x2dcc52(0x264)][_0x2dcc52(0x3cb)]),'options':[{'value':String(y['PivotTableValuePositionEnum'][_0x2dcc52(0x380)]),'label':_0x4882fb['t'](_0x2dcc52(0x4cc))},{'value':String(y[_0x2dcc52(0x3ba)][_0x2dcc52(0x1dc)]),'label':_0x4882fb['t'](_0x2dcc52(0x3fb))}],'onChange':_0x3f35f1=>{const _0x8d3390=_0x2dcc52;let _0x106f4e=[y[_0x8d3390(0x3ba)][_0x8d3390(0x380)],y[_0x8d3390(0x3ba)][_0x8d3390(0x1dc)]][_0x8d3390(0x485)](_0x5b6d4e=>String(_0x5b6d4e)===_0x3f35f1);_0x106f4e!==void 0x0&&_0x1fed70(_0x1e1c3d=>_0x1e1c3d[_0x8d3390(0x337)](_0x106f4e,_0x1e1c3d[_0x8d3390(0x33e)]()<0x0?0x0:_0x1e1c3d['getValueIndex']()));}})]}),(0x0,g['jsxs'])(_0x2dcc52(0x369),{'className':_0x2dcc52(0x3e7),'children':[_0x4882fb['t'](_0x2dcc52(0x2ee)),(0x0,g[_0x2dcc52(0x40a)])(f[_0x2dcc52(0x19a)],{'className':_0x2dcc52(0x229),'min':0x1,'max':0x14,'value':_0x2f13db[_0x2dcc52(0x363)]??0x1,'onChange':_0x1e5010=>{let _0x26622e=Number(_0x1e5010);Number['isFinite'](_0x26622e)&&_0x26622e>=0x1&&_0x1f0f3c({'pageWrap':_0x26622e});}})]}),(0x0,g[_0x2dcc52(0x186)])(_0x2dcc52(0x369),{'className':_0x2dcc52(0x3e7),'children':[_0x4882fb['t']('bases-dashboard-ui.pivot.pageDirection'),(0x0,g['jsx'])(f['Select'],{'className':_0x2dcc52(0x3ea),'value':String(_0x2f13db['pageOverThenDown']??!0x1),'options':[{'value':'false','label':_0x4882fb['t'](_0x2dcc52(0x138))},{'value':'true','label':_0x4882fb['t'](_0x2dcc52(0x31b))}],'onChange':_0x30cd11=>_0x1f0f3c({'pageOverThenDown':_0x30cd11===_0x2dcc52(0x556)})})]})]});}function On(_0x58086c,_0x48754c,_0x270e36,_0x5929df){const _0x382a82=_0x5ed5a2;let _0x274b5c=_0x58086c[_0x382a82(0x301)](_0x48754c)[_0x382a82(0x485)](_0x58416e=>_0x58086c['getFieldPositionInfoById'](_0x58416e['getId']())[_0x382a82(0x3cc)]!==y[_0x382a82(0x31a)][_0x382a82(0x290)]);_0x270e36!==y[_0x382a82(0x31a)][_0x382a82(0x290)]&&_0x274b5c?_0x58086c[_0x382a82(0x1ec)](_0x274b5c[_0x382a82(0x2ec)](),_0x270e36,_0x5929df):_0x58086c[_0x382a82(0x163)](_0x48754c,_0x270e36,_0x5929df);}function kn(_0xf34c36,_0x38ee78,_0x1b377b,_0x4cb412){const _0x40b70f=_0x5ed5a2;return _0x38ee78===y[_0x40b70f(0x299)][_0x40b70f(0x4f2)]?_0x4cb412:_0x38ee78===y[_0x40b70f(0x299)][_0x40b70f(0x3ac)]&&_0x1b377b?a[_0x40b70f(0x136)][_0x40b70f(0x3a2)](_0x1b377b,Number(_0xf34c36)):_0xf34c36;}function An(_0x5c769f){const _0x26b1bf=_0x5ed5a2;return _0x5c769f[_0x26b1bf(0x436)]===a[_0x26b1bf(0x35c)][_0x26b1bf(0x461)]||_0x5c769f[_0x26b1bf(0x436)]===a['BaseFieldType'][_0x26b1bf(0x1e4)]||_0x5c769f[_0x26b1bf(0x436)]===a['BaseFieldType'][_0x26b1bf(0x336)]||_0x5c769f['type']===a[_0x26b1bf(0x35c)][_0x26b1bf(0x36b)];}function jn(_0x5cfb6e){const _0x593901=_0x5ed5a2;switch(_0x5cfb6e){case y[_0x593901(0x31a)][_0x593901(0x1dc)]:return _0x593901(0x46e);case y['PivotTableFiledAreaEnum'][_0x593901(0x380)]:return'bases-dashboard-ui.pivot.addToColumn';case y[_0x593901(0x31a)][_0x593901(0x290)]:return _0x593901(0x510);default:return _0x593901(0x48e);}}function Mn({config:_0x4d4fe6,onChange:_0x159229,runtime:_0x7bcb1c,table:_0x1c18c3}){const _0x382c9b=_0x5ed5a2;let _0x582361=(0x0,m[_0x382c9b(0x354)])(a[_0x382c9b(0x331)]),[_0x3331d3,_0x3070a6]=(0x0,h[_0x382c9b(0x541)])(_0x382c9b(0x43a));return(0x0,g[_0x382c9b(0x186)])(_0x382c9b(0x544),{'className':_0x382c9b(0x3d7),'children':[(0x0,g['jsx'])(n[_0x382c9b(0x23d)],{'ariaLabel':_0x582361['t'](_0x382c9b(0x17d)),'className':_0x382c9b(0x228),'items':[{'label':_0x582361['t'](_0x382c9b(0x263)),'panelId':_0x382c9b(0x3c7),'value':_0x382c9b(0x43a)},{'label':_0x582361['t'](_0x382c9b(0x159)),'panelId':_0x382c9b(0x486),'value':_0x382c9b(0x264)}],'value':_0x3331d3,'variant':_0x382c9b(0x381),'onChange':_0x3070a6}),(0x0,g[_0x382c9b(0x40a)])(_0x382c9b(0x378),{'className':_0x382c9b(0x4f5),'children':_0x3331d3===_0x382c9b(0x43a)?_0x7bcb1c&&(0x0,g['jsx'])(Dt,{'config':_0x4d4fe6,'runtime':_0x7bcb1c,'tableName':_0x1c18c3[_0x382c9b(0x416)],'onChange':_0x159229}):(0x0,g[_0x382c9b(0x40a)])(bn,{'config':_0x4d4fe6,'table':_0x1c18c3,'onChange':_0x159229})})]});}function Nn({tableId:_0x53b796,unitId:_0x289f7c,viewId:_0x55083e}){const _0x35ec29=_0x5ed5a2;let _0x85327=(0x0,m[_0x35ec29(0x354)])(a[_0x35ec29(0x1ac)]),_0x1586c2=(0x0,m['useDependency'])(a[_0x35ec29(0x3b0)]),_0x47f661=(0x0,m[_0x35ec29(0x354)])(a[_0x35ec29(0x2bd)]),_0x55bf4f=(0x0,m[_0x35ec29(0x354)])(a['LocaleService']),_0x1760f6=(0x0,m[_0x35ec29(0x354)])(e['BaseChartRuntimeService']),[_0x1bc630,_0x137779]=(0x0,h[_0x35ec29(0x541)])(null),[_0x455824,_0x1eff48]=(0x0,h['useState'])(null),_0x127308=(0x0,h[_0x35ec29(0x1b3)])(_0x35ec29(0x4ac)+(0x0,a[_0x35ec29(0x19c)])(0x8)),[_0x1ebc6c,_0x2910b1]=(0x0,h['useState'])(!0x1),_0x5214a2=_0x1586c2['getUnit'](_0x289f7c,a[_0x35ec29(0x39a)]['UNIVER_BASE']),_0x1ca114=_0x5214a2==null?void 0x0:_0x5214a2[_0x35ec29(0x2c2)]()[_0x35ec29(0x308)][_0x53b796],_0x43a3a1=_0x1ca114==null?void 0x0:_0x1ca114['views'][_0x55083e],_0x4efe66=Pn(_0x43a3a1),_0x1aeef7=T(_0x289f7c,_0x53b796,_0x55083e);if((0x0,h[_0x35ec29(0x45e)])(()=>{const _0xcc6194=_0x35ec29;if(!_0x4efe66)return;let _0x48200a=_0x127308[_0xcc6194(0x28f)];return _0x1760f6['acquireChartRuntime'](_0x48200a,{'unitId':_0x289f7c,'tableId':_0x53b796,'viewId':_0x55083e,'filters':[]}),()=>{_0x1760f6['releaseChartRuntime'](_0x289f7c,_0x48200a);};},[_0x4efe66,_0x1760f6,_0x53b796,_0x289f7c,_0x55083e]),(0x0,h['useEffect'])(()=>{const _0x14f833=_0x35ec29;if(!Pn(_0x43a3a1))return;let _0x342abf=!0x0,_0x315bba={'unitId':_0x289f7c,'tableId':_0x53b796,'viewId':_0x55083e,'filters':[_0x43a3a1[_0x14f833(0x2ac)]??null]};return _0x1760f6[_0x14f833(0x493)](_0x289f7c,_0x127308[_0x14f833(0x28f)],_0x315bba)[_0x14f833(0x52a)](_0x307ae2=>{const _0x49961e=_0x14f833;_0x342abf&&_0x307ae2&&(_0x137779(_0x307ae2),_0x1eff48(_0x1760f6['getChartRuntime'](_0x289f7c,_0x127308[_0x49961e(0x28f)])??null),_0x2910b1(!0x1));})['catch'](_0x16dd1d=>{const _0x371bf5=_0x14f833;_0x47f661[_0x371bf5(0x458)](_0x371bf5(0x4b9),_0x16dd1d),_0x342abf&&(_0x137779(null),_0x2910b1(!0x0));}),()=>{_0x342abf=!0x1;};},[_0x47f661,_0x1760f6,_0x53b796,_0x289f7c,_0x43a3a1,_0x55083e]),!_0x1ca114||!Pn(_0x43a3a1))return null;let _0x59722c=_0x1760f6[_0x35ec29(0x448)](_0x289f7c,_0x127308[_0x35ec29(0x28f)])===_0x455824?_0x455824:null,_0x223faa=_0x1bc630?(0x0,g[_0x35ec29(0x186)])(_0x35ec29(0x378),{'className':'univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','style':{'gridTemplateRows':_0x43a3a1[_0x35ec29(0x489)][_0x35ec29(0x233)]===_0x35ec29(0x546)?'minmax(240px,\x203fr)\x20minmax(180px,\x202fr)':'minmax(0,\x201fr)'},'children':[_0x43a3a1[_0x35ec29(0x489)][_0x35ec29(0x233)]!==_0x35ec29(0x1a8)&&_0x59722c&&(0x0,g[_0x35ec29(0x40a)])(_0x35ec29(0x378),{'className':_0x35ec29(0x2f3),'children':(0x0,g['jsx'])(re,{'isRowDirection':(0x0,e[_0x35ec29(0x199)])(_0x43a3a1[_0x35ec29(0x489)][_0x35ec29(0x43a)][_0x35ec29(0x2e5)]),'runtime':_0x59722c})}),_0x43a3a1[_0x35ec29(0x489)][_0x35ec29(0x233)]!==_0x35ec29(0x43a)&&(0x0,g[_0x35ec29(0x40a)])(_0x35ec29(0x378),{'className':_0x35ec29(0x446),'children':(0x0,g['jsx'])(Ge,{'pivot':_0x43a3a1['config']['pivot'],'view':_0x1bc630[_0x35ec29(0x2b2)]})})]}):(0x0,g[_0x35ec29(0x40a)])(_0x35ec29(0x378),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','children':_0x1ebc6c?_0x55bf4f['t'](_0x35ec29(0x45b)):_0x55bf4f['t'](_0x35ec29(0x42a))});return(0x0,g[_0x35ec29(0x186)])(_0x35ec29(0x378),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','children':[(0x0,g['jsx'])(_0x35ec29(0x378),{'className':_0x35ec29(0x32c),'children':_0x223faa}),_0x1aeef7&&(0x0,g[_0x35ec29(0x40a)])(Mn,{'config':_0x43a3a1[_0x35ec29(0x489)],'runtime':_0x59722c,'table':_0x1ca114,'onChange':_0x497d0d=>{const _0x6fae4f=_0x35ec29;_0x85327['executeCommand'](e[_0x6fae4f(0x303)]['id'],{'unitId':_0x289f7c,'tableId':_0x53b796,'viewId':_0x55083e,'patch':_0x497d0d})['catch'](_0x24b8ab=>_0x47f661[_0x6fae4f(0x458)](_0x6fae4f(0x2b3),_0x24b8ab));}})]});}function Pn(_0x299fca){const _0x10b89e=_0x5ed5a2;return(_0x299fca==null?void 0x0:_0x299fca[_0x10b89e(0x436)])===a[_0x10b89e(0x39b)][_0x10b89e(0x1f7)]&&typeof _0x299fca[_0x10b89e(0x489)]==_0x10b89e(0x335)&&_0x299fca[_0x10b89e(0x489)]!==null&&_0x10b89e(0x264)in _0x299fca[_0x10b89e(0x489)]&&_0x10b89e(0x43a)in _0x299fca['config']&&_0x10b89e(0x233)in _0x299fca['config'];}function _0x4fea(){const _0x5ecb3c=['ImageSourceType','file','bases-dashboard-ui.dashboardInspector.formula','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','sum','pointerup','BaseDashboard','base-pivot-options','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','permissionPointUpdate$','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','span','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','barStyle','separator','AFTER','alignment','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','lineStrokeType','univer-cursor-grabbing','BaseFilterConjunction','createBasePivotTable','custom','DescendingIcon','RightVerticalAxis','DEFAULT_CHART_PIE_VALUES','ChartIcon','TableFilter','bases-dashboard-ui.pivot.columns','add','bases-dashboard-ui.mobile.permissions','pageView','DropdownMenu','GREATER_THAN_OR_EQUAL','bases-dashboard-ui.dashboardInspector.close','bases-dashboard-ui.pivot.countNumbers','trendline','getUnit','bases-dashboard-ui.pivot.top','getDashboard','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','rowFields','setLabelFilterInfo','link','snapshot','toDate','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','DEFAULT_CHART_LINE_AND_AREA_VALUES','ChartTrendlineSection','UniverBaseDashboardUIPlugin','bases-dashboard-ui.dashboard.tableFilter','useObservable','univer-shrink-0\x20univer-px-3','ThemeService','description','getOwnPropertyDescriptor','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','allSeriesStyle','conjunction','addImageSourceCache','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','univer-size-4','resolve','univer-pointer-events-auto\x20univer-opacity-100','ChartTitlesSection','getRect','blank','height','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','percent','ChartUIService','PieStyle','Legend','bases-dashboard-ui.chart.section.gauge','bases-dashboard-ui.chart.chartTypes.line','innerWidth','Module','DatePicker','dataModel','univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','overflow','presentation','bases-dashboard-ui.chart.section.chord','DEFAULT_CHART_AXIS_VALUES','Segmented','bases-dashboard-ui.dashboard.redo','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','pluginName','MobileChartEditorControls','matchMedia','bases-dashboard-ui.pivot.chartAndTable','_createContext','RoundRect','bases-dashboard-ui.pivot.tableOnly','bases-dashboard-ui.pivot.layoutCompact','bases-dashboard-ui.pivot.addToValue','shapeText','clientY','isFinite','Textarea','repeat','bases-dashboard-ui.dashboardInspector.replaceImage','baseOn','ChartThemeField','getRuntimeContext','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','getFieldPositionInfoById','values','map','top','heatmap','fontSizeMode','register','bases-dashboard-ui.pivot.blank','paragraphs','ChartWordCloudStyleSection','bases-dashboard-ui.dashboardInspector.selectOption','CONTAINS','bases-dashboard-ui.dashboard.resizeWidget','bases-dashboard-ui.pivot.filters','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','then','Text','result','bases-dashboard-ui.dashboardInspector.autoFit','requestFullscreen','bases-dashboard-ui.chart.common.setup','defaultPrevented','Series','defineProperty','bases-dashboard-ui.chart.section.funnel','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','ChartWaterfallStyleSection','dom','match','IncreaseIcon','univer-grid\x20univer-gap-4\x20univer-p-4','GeneralSeries','Funnel','executeChartUpdateConfig','syncLayout','ChartSectionAccordionItem','ChartWaterfallSetupFields','Positive','useState','changed$','setOptions','aside','info','chart-and-table','auto','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','Trendline','\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.dashboard.image','UndoIcon','ownerDocument','ChartViewStateRegistry','canEditBaseDashboard','bases-dashboard-ui.chart.section.wordCloud','toUpperCase','IImageIoService','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','stdDev','true','getBaseDashboardPermissionObjectId','pipe','rowSpan','ChartEditPanel','clientHeight','Button','PivotDataFieldSortOperatorEnum','width','univer-truncate','bases-dashboard-ui.pivot.valuePosition','bases-dashboard-ui.dashboardInspector.newCondition','bases-dashboard-ui.operators.greaterThanOrEqual','bases-dashboard-ui.pivot.showColumnSubtotal','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','baseChartDataAnimationDuration','primary','every','appearance','GripVerticalIcon','chartTypeSupportsLineAndAreaStyle','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','bases-dashboard-ui.dashboard.undo','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','MoreHorizontalIcon','numfmt','#,##0','bases-dashboard-ui.pivot.downThenAcross','Base\x20dashboard\x20chart\x20','observe','DEFAULT_CHART_STYLE_VALUES','shapeType','isPrefixValue','Relation','column','test','decorate','SearchIcon','univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize','radar','ChartThemeService','_injector','subUnitId','univer-min-w-0\x20univer-flex-1','bases-dashboard-ui.dashboardInspector.textColor','bases-dashboard-ui.chart.common.customize','bases-dashboard-ui.pivot.summarizeBy','formula','univer-flex','bases-dashboard-ui.dashboardInspector.decimalPlaces','contain','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','onCommit','shapeData','backgroundImage','IChartRenderModelManagerService','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','ChartEditPanelSection','ChartStyle','ChartNumberFormatAtom','bases-dashboard-ui.pivot.pivotConfiguration','UNIVER_BASE','bases-dashboard-ui.pivot.grandTotal','bases-dashboard-ui.dashboard.defaultName','bases-dashboard-ui.pivot.layoutOutline','style$','ensureMount','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','bases-dashboard-ui.pivot.description','ILayoutService','addFieldWithSourceId','columnSpan','system','center','constructor','base-pivot-chart-setup','border','round','2NvkRpn','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','fit','useMemo','flex-end','unsubscribe','ChartHeatmapStyleSection','6mvtBuQ','merge','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','ChartEditPanelTab','PivotLayoutTypeEnum','univer-text-right','fullscreenchange','ShapeFormulaService','relation','bases-dashboard-ui.chart.common.chartAndAxisTitles','gray','bases-dashboard-ui.pivot.name','rows','ChartSeriesSection','TextIcon','WaterfallSeries','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','document','bases-dashboard-ui.chart.common.switchRowColumn','_configService','jsxs','bases-dashboard-ui.dashboardInspector.number','ObjectPermissionButton','DEFAULT_CHART_SERIES_VALUES','bases-dashboard-ui.pivot.layout','rgb','Fragment','layout','bases-dashboard-ui.dashboardInspector.loading','print','Pie','bases-dashboard-ui.pivot.addToColumn','Image','RTLChartStyle','ChartStyleSection','rootContainerElement','group','bases-dashboard-ui.dashboard.addWidget','trim','resolveBasePivotChartRowDirection','InputNumber','ChartEditorCapability','generateRandomId','focusUnit','233208rIKieC','headerRowCount','getFieldCountByArea','None','pageRows','bases-dashboard-ui.pivot.clearFilter','lastCol','univer-flex\x20univer-min-h-full\x20univer-flex-col','DEFAULT_CHART_WORD_CLOUD_VALUES','DEFAULT_CHART_TITLE_VALUES','table','documentStyle','pareto','Boxplot','ICommandService','univer-flex\x20univer-flex-col','prototype','dataView','matches','toMenuFields','onMoveDown','useRef','visibilityState','src','end','viewOrder','bases-dashboard-ui.dashboardInspector.repeat','UniverBaseDashboardMobileUIPlugin','has','Area','\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','conditions','pointerX','clientX','253788mFkHro','corner:','dataset','ExpandIcon','bases-dashboard-ui.operators.isNotEmpty','DeleteBaseDashboardCommand','onSettings','bases-dashboard-ui.dashboardInspector.editData','stroke','ChartWaterfallStyleTarget','bases-dashboard-ui.pivot.product','bases-dashboard-ui.config','GREATER_THAN','documentElement','compact','Inject','scrollbarClassName','bases-dashboard-ui.dashboard.delete','base64Cache','text','univer-border-0\x20univer-bg-transparent','valueFields','bases-dashboard-ui.pivot.sourceFields','IS_EMPTY','startX','bases-dashboard-ui.pivot.layoutTabular','showColSubtotal','bases-dashboard-ui.pivot.average','Row','ShapeTypeEnum','Filter','isHeader','RemoveBaseDashboardWidgetCommand','body','dashboard-chart-setup','bases-dashboard-ui.pivot.searchFields','Currency','numberFormat','BASES_DASHBOARD_DEFAULT_ROW_HEIGHT','ChartAndAxisTitles','CHART_DATA_UPDATE_ANIMATION_DURATION','imageSourceType','HorizontalAxis','getBoundingClientRect','updateFieldPosition','bases-dashboard-ui.pivot.ascending','bases-dashboard-ui.dashboardInspector.checked','CloseIcon','version','bases-dashboard-ui.operators.is','Person','flex-start','630090nbdvnx','BASES_DASHBOARD_GRID_COLUMNS','resolveChartRuntimeStyle','Pivot','minmax(0,\x203fr)\x20minmax(0,\x202fr)','forEach','univer-size-8\x20univer-p-0\x20univer-text-red-500','depthAxis','univer-mb-3\x20univer-text-sm\x20univer-font-medium','DEFAULT_CHART_PARETO_VALUES','size','BEFORE','Style','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','bases-dashboard-ui.dashboardInspector.numberFormat','bases-dashboard-ui.chart.section.waterfall','bases-dashboard-ui.dashboardInspector.description','UpdateBaseDashboardCommand','lastRow','bases-dashboard-ui.dashboardInspector.unchecked','CreateBaseDashboardCommand','\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','undoRedoStatus$','presentationChanged$','univer-text-gray-400','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','displayName','bases-dashboard-ui.dashboardInspector.right','UniverBaseDashboardPlugin','bases-dashboard-ui.dashboardInspector.custom','bases-dashboard-ui.dashboardInspector.cover','Sankey','IConfigService','render','textColor','MobileSelect','bases-dashboard-ui.chart.section.sunburst','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','IS_NOT_EMPTY','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','number','split','bases-dashboard-ui.operators.lessThanOrEqual','ShapeFillEnum','section','chartBitsUtils','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','bases-dashboard-ui.chart.common.editChart','IndicatorLine','univer-mb-2\x20univer-border-collapse\x20univer-text-sm','currentColor','IPermissionService','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','univer-w-24','bases-dashboard-ui.pivot.defaultName','decimal','Waterfall','buildChartTypeSelectOptions','bases-dashboard-ui.chart.common.legend','isBottomTotal','slice','dataSource','createDomChartInstance','displayMode','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','bases-dashboard-ui.pivot.dropFieldsHere','NOT_CONTAINS','PivotChart','dashboards','call','bases-dashboard-ui.pivot.stdDev','setSubtotalType','prefix','ChartEditPanelTabs','bases-dashboard-ui.chart.section.pie','DeleteIcon','config$','univer-min-h-11\x20univer-px-3\x20univer-text-base','context','wordCloud','bases-dashboard-ui.pivot.min','univer-text-sm\x20univer-font-medium','items','bases-dashboard-ui.chart.section.treemap','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','mode','Subtotal','saveAttachment','ChartGradientFillField','getCurrentTheme','bases-dashboard-ui.dashboardInspector.data','showRowGrandTotal','FormulaEditorPanel','General','bases-dashboard-ui.operators.greaterThan','length','UUID','input','data:','bases-dashboard-ui.operators.lessThan','bases-dashboard-ui.dashboardInspector.reset','toPrimitive','univer-w-full','pie','pointerY','bases-dashboard-ui.pivot.confirm','onRemove','1.1.0','setSortInfo','40SpqNpK','blur','bases-dashboard-ui.pivot.chartConfiguration','pivot','univer-text-sm','isArray','ArrowDownIcon','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','univer-grid\x20univer-gap-2\x20univer-p-3','bases-dashboard-ui.pivot.descending','IAttachmentIoService','bases-dashboard-ui.pivot.showColumnGrandTotal','IBaseViewUIRegistryService','catch','bases-dashboard-ui.dashboardInspector.compact','Histogram','4895485XDFMSN','disposeWithMe','_config','rowCount','Gauge','Dialog','backgroundColor','currentTheme$','function','ShapeLineTypeEnum','NumberFormat','ChartRelationStyleSection','fillType','bases-dashboard-ui.dashboardInspector.editFormula','right','onMoveUp','bases-dashboard-ui.dashboardInspector.percent','bases-dashboard-ui.pivot.sum','bases-dashboard-ui.chart.common.rightVerticalAxis','useChartEditorHasRightAxis','bases-dashboard-ui.dashboard.editWidget','bases-dashboard-ui.pivot.fields','univer-flex\x20univer-justify-end\x20univer-gap-2','isConnected','BaseUnitCollaborationStatus','bases-dashboard-ui.chart.chartTypes.','direction$','saveImage','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','string','current','Value','_chartThemeService','isSubtotal','BaseMobileFilterPanel','bases-dashboard-ui.pivot.displayName','bases-dashboard-ui.chart.waterfall.subtotal','index','supports','ChartEditBlockTitle','PivotDataFieldDataTypeEnum','lineAndArea','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.dashboardInspector.grouped','chartId','ChartThreeDSection','Tooltip','entries','value','Axes','tableOrder','renderTransition','bases-dashboard-ui.dashboardInspector.sourceUnavailable','ChartGridlinesAndTicksSection','bases-dashboard-ui.pivot.selectAll','image/*','bases-dashboard-ui.dashboard.pivotChart','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','filter','bases-dashboard-ui.dashboardInspector.currencyCode','bases-dashboard-ui.dashboardInspector.left','Sunburst','AND','field','view','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','pivotViewId','bases-dashboard-ui.dashboardInspector.general','Checkbox','getResult','getImage','bases-dashboard-ui.chart.common.verticalAxis','tbody','resizeDirection','default','ILogService','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','stringify','stdDevp','bases-dashboard-ui.pivot.variancePopulation','getSnapshot','PivotSubtotalPositionEnum','createRenderInput','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','setFieldFormat','options','Group','bases-dashboard-ui.dashboardInspector.removeImage','bases-dashboard-ui.chart.chartTypes.area','title','borderClassName','ChartTypeBits','bases-dashboard-ui.pivot.count','hidden','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','createChartInstance','RedoIcon','subItem','bases-dashboard-ui.dashboard.fullScreen','false','WordCloud','bases-dashboard-ui.chart.common.heatmap','chartType','colCount','\x20/\x20','bases-dashboard-ui.chart.section.radar','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','initial','Radar','base-pivot-chart-style','replace','files','move','PenIcon','getOptions','orient','min','ChartCommonDataMappingSection','bases-dashboard-ui.dashboardInspector.originalSize','symbol','116HWhOQe','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','getId','bases-dashboard-ui.dashboardInspector.contain','bases-dashboard-ui.pivot.pageWrap','DEFAULT_CHART_RELATION_VALUES','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','dispose','15576684ZTFzVp','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','createParagraphId','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','LineAndArea','bases-dashboard-ui.pivot.showRowGrandTotal','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','onDragStart','bases-dashboard-ui.dashboardInspector.dataSource','select','ChartFunnelStyleSection','fontSize','CreatedAt','bases-dashboard-ui.chart.section.histogram','bases-dashboard-ui.pivot.repeatRowLabels','getTableFieldsByDataFieldId','bases-dashboard-ui.pivot.bottom','UpdateBasePivotViewCommand','button','fields','var','header','tables','bases-dashboard-ui.operators.after','chartTypeCanUseTrendLine','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','scrollWidth','Treemap','univer-mt-2','keydown','ceil','BaseDashboardWidgetType','univer-m-3','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','stopPropagation','bases-dashboard-ui.dashboardInspector.dragWidget','bases-dashboard-ui.chart.section.relation','ChartStackField','PivotCellStyleTypeEnum','outline','PivotTableFiledAreaEnum','bases-dashboard-ui.pivot.acrossThenDown','bases-dashboard-ui.chart.common.series','[data-dashboard-widget]','onFilter','bases-dashboard-ui.dashboardInspector.alignment','UniverChartUIPlugin','source','innerHeight','Line','CalendarIcon','VerticalAxis','tableId','change','clsx','widgets','rowSubtotalPosition','DEFAULT_CHART_HEATMAP_VALUES','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','bases-dashboard-ui.pivot.pageDirection','bases-dashboard-ui.pivot.showRowSubtotal','toChartModelUpdate','Disposable','LocaleService','univer-h-full\x20univer-w-full\x20univer-bg-transparent','RecordId','univer-flex\x20univer-min-h-0\x20univer-flex-1','object','Progress','updateValuePosition','Dom','isErrorValue','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','target','sortInfo','article','getValueIndex','DEFAULT_CHART_LEGEND_VALUES','chartTypeSupportsCapability','headerMap','closest','UpsertBaseDashboardWidgetCommand','descending','Input','setCurrentUnitForType','MultipleSelect','border-box','bases-dashboard-ui.operators.isEmpty','ChartPieStyleSection','ChartLegendSection','toFormulaMenuTables','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','ascending','bases-dashboard-ui.chart.section.paretoBar','createElement','some','shapeId','get','useDependency','DEFAULT_CHART_FUNNEL_VALUES','univer-grid\x20univer-gap-4','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','bases-dashboard-ui.dashboard.rename','pattern','varp','IUndoRedoService','BaseFieldType','transparent','univer-relative\x20univer-z-10','original','bases-dashboard-ui.dashboardInspector.textSize','click','BaseMobileDrawer','pageWrap','fieldId','bases-dashboard-ui.dashboard.configure','onStarting','univer-flex\x20univer-flex-col\x20univer-gap-4','DependentOn','label','univer-size-5\x20univer-text-primary-600','Rating','rightY','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','operator','renderRevision','bases-dashboard-ui.dashboard.search','toStringTag','PivotSubtotalTypeEnum','MoreDownIcon','pageOverThenDown','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','div','onDrop','UniverLicensePlugin','bottom','dashboard-widget-','filterInfo','legend','average','Column','segmented','univer-size-5\x20univer-rotate-90','renameField','grouped','getImageSourceCache','repeatColLabels','canView','defaultValue','CHART_TYPE_CATALOG','ArrowUpIcon','tabular','YYYY-MM-DD','univer-bg-transparent\x20dark:!univer-bg-transparent','sourceType','setLayout','onReady','univer-flex\x20univer-gap-2','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','getDirection','dashboard-text-','bases-dashboard-ui.dashboardInspector.delete','bases-dashboard-ui.chart.common.horizontalAxis','delete','formatMap','canEditBasePivotView','UniverInstanceType','BaseViewType','acquireChartRuntime','FormulaShape','bases-dashboard-ui.dashboardInspector.uploadImage','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','bases-dashboard-ui.pivot.numberFormat','useChartEditorChartType','format','univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.filterField','views','BaseFilterOperator','data','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','decimalPlaces','bases-dashboard-ui.pivot.rowSubtotalPosition','row','date','dashboardOrder','bases-dashboard-ui.pivot.display','DEFAULT_CHART_WATERFALL_SETUP_VALUES','IUniverInstanceService','subscribe','key','UpdatedAt','style','bases-dashboard-ui.pivot.max','0\x200','waterfallStyle','DEFAULT_CHART_TRENDLINE_VALUES','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','PivotTableValuePositionEnum','clientWidth','thead','Chord','waterfall.positive','DEFAULT_CHART_RADAR_VALUES','ChartTypeSpecificStyleSection','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','\x20/\x20span\x20','MobileChartEditorProvider','ActivateBaseViewOperation','UndoCommand','ChartTypeSpecificDataSection','base-pivot-chart-configuration','formulaBinding','bases-dashboard-ui.pivot.dataSource','bases-dashboard-ui.pivot.chartOnly','valuePosition','area','ParetoBarSeries','colView','columnFields','NumberIcon','alt','bases-dashboard-ui.dashboard.section','subtotal','bases-dashboard-ui.chart.section.paretoLine','bases-dashboard-ui.pivot.stdDevPopulation','parentElement','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.dashboardInspector.clear','item','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','bases-dashboard-ui.pivot.repeatColumnLabels','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','radius','onCancel','dashboard-chart-style','bases-dashboard-ui.chart.section.candlestick','product','removeField','BaseDashboardResourceService','showRowSubtotal','univer-border-gray-200\x20dark:!univer-border-gray-700','bind','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','ChartSectionAccordionTrigger','flatMap','univer-w-36','bases-dashboard-ui.pivot.cancel','BaseMobileFilterOperand','darkMode$','currency','ChartIndicatorLineSection','onMove','SetBasePermissionCommand','250NlEqLc','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','@univerjs-pro/bases-dashboard-ui','disconnect','PivotFilterTypeEnum','createFormulaShapeData','bases-dashboard-ui.mobile.moveUp','executeCommand','ChartSectionAccordionContent','bases-dashboard-ui.pivot.rows','scrollTop','bases-dashboard-ui.dashboard.widgetActions','dateKit','floor','base-dashboard-pivot-chart-','cornerView','allowMultiple','bases-dashboard-ui.pivot.removeField','onDragOver','UniverBasesUIPlugin','axis','bases-dashboard-ui.pivot.fieldSettings','univer-flex\x20univer-items-center\x20univer-gap-2','darkMode','jsx','DEFAULT_CHART_INDICATOR_LINE_VALUES','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','ProtectIcon','baseChartDataAnimation','left','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','bases-dashboard-ui.pivot.values','ChartTypeField','180741AtxhFM','ChartLineAndAreaSection','name','paragraphId','bases-dashboard-ui.chart.','kind','UniverBasesMobileUIPlugin','bases-dashboard-ui.dashboard.new','_localeService','ChartSectionAccordion','waterfall.negative','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','column:','bases-dashboard-ui.pivot.options','destructive','cover','funnel','series','localeKey','url(','redos','fill','bases-dashboard-ui.pivot.calculating','bases-dashboard-ui.dashboardInspector.backgroundImage','accept','dimension','MobileDialog','model','titles','currentTarget','formulaToEditorFormula','includes','row:','ChartEditorProvider','type','ChartColorField','bases-dashboard-ui.pivot.variance','activeRuntimeModel','chart','small','normalizeEditorFormulaForConfig','chartRowDirection','bases-dashboard-ui.dashboard.add','Data','touchDependencies','ChartAxisSection','addEventListener','ManualFilter','markNotReady','itemTypes','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','dataFieldId','getChartRuntime','Plugin','exitFullscreen','widgetOrder','base-pivot-fields','packageName','FilterIcon','IS_NOT','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','_renderModelManager','univer-mx-auto\x20univer-size-6','page:','bases-dashboard-ui.operators.isNot','getAttachmentUrl','from','DEFAULT_CHART_WATERFALL_STYLE_VALUES','error','general','count','bases-dashboard-ui.pivot.calculationFailed','bases-dashboard-ui.operators.notContains','ParetoLineSeries','useEffect','operand','ChartRadarStyleSection','Number','univer-flex-1','toJSON','max','change$','labelId','bases-dashboard-ui.dashboard.formulaShape','indexOf','Date','Scatter','AscendingIcon','filterFields','showColGrandTotal','bases-dashboard-ui.pivot.addToRow','UniverShapeEditorPlugin','set','MobileDropdownMenu','onDragEnd','releaseChartRuntime','Candlestick','bases-dashboard-ui.dashboard.text','replaceChildren','bases-dashboard-ui.dashboard.deleteWidget','ChartRenderMode','Bubble','bases-dashboard-ui.dashboardInspector.center','Injector','bases-dashboard-ui.dashboardInspector.backgroundColor','ChartParetoSeriesSection','bases-dashboard-ui.chart.section.gridlinesAndTicks','UniverChartMobileUIPlugin','PivotTableIcon','univer-mt-2\x20univer-w-full','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','valueIndex','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','find','base-pivot-table-configuration','isTotal','toLocaleLowerCase','config','preventDefault','dashboard-','bases-dashboard-ui.chart.common.chartStyle','resolveDefaultChartHostFrameStyle','bases-dashboard-ui.pivot.addToFilter','univer-grid\x20univer-gap-3','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','color','measure','refreshChartRuntime','rowView','Pareto','iterator','ChartTypeSpecificSetupSection','Select','Heatmap','86980GLRyXl','getResource','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','countNums','BASE_DASHBOARD_UI_PLUGIN','_element','openObjectPermissionDialog','removeEventListener','rightYAxis','setConfig','setStyle','bases-dashboard-ui.dashboardInspector.currency','createPortal','dataAggregation','repeatRowLabels','UnitObject','getDataFieldByTableId','ChartHostAdapter','base-pivot-chart-','cumulativeLineStyle','fullscreenElement'];_0x4fea=function(){return _0x5ecb3c;};return _0x4fea();}let Fn=class extends a[_0x5ed5a2(0x330)]{constructor(_0x431048,_0x4dfedd,_0x4dda9d,_0x1ab0fb,_0x1f0e34,_0x52271c){const _0xe10e6b=_0x5ed5a2;super(),this[_0xe10e6b(0x272)](_0x4dfedd[_0xe10e6b(0x521)]({'type':a[_0xe10e6b(0x39b)][_0xe10e6b(0x1f7)],'renderMode':_0xe10e6b(0x536),'icon':s[_0xe10e6b(0x480)],'component':Nn,'menu':{get 'label'(){const _0x38b879=_0xe10e6b;return _0x52271c['t'](_0x38b879(0x17d));},get 'description'(){const _0x580d6b=_0xe10e6b;return _0x52271c['t'](_0x580d6b(0x161));},get 'defaultName'(){const _0x456620=_0xe10e6b;return _0x52271c['t'](_0x456620(0x22a));}}})),this[_0xe10e6b(0x272)](_0x431048[_0xe10e6b(0x521)](In(_0x4dda9d,_0x1ab0fb,_0x1f0e34,_0x52271c)));}};Fn=P([N(0x0,t['IBaseDashboardUIExtensionRegistryService']),N(0x1,t['IBaseViewUIRegistryService']),N(0x2,(0x0,a[_0x5ed5a2(0x1cf)])(e[_0x5ed5a2(0x3e3)])),N(0x3,a[_0x5ed5a2(0x1ac)]),N(0x4,a['IPermissionService']),N(0x5,(0x0,a['Inject'])(a[_0x5ed5a2(0x331)]))],Fn);function In(_0x495a8b,_0x49a44d,_0x584df3,_0x1b44bc){const _0x20e390=_0x5ed5a2;return{'change$':(0x0,c[_0x20e390(0x173)])(_0x495a8b['change$'],_0x584df3[_0x20e390(0x4b8)]),'component':ln,get 'labels'(){const _0x18b648=_0x20e390;return{'add':_0x1b44bc['t'](_0x18b648(0x43e)),'configure':_0x1f0c93=>_0x1b44bc['t'](_0x18b648(0x365),_0x1f0c93),'delete':_0x1b44bc['t'](_0x18b648(0x1d1)),'new':_0x1b44bc['t'](_0x18b648(0x41b)),'rename':_0x1b44bc['t'](_0x18b648(0x358)),'search':_0x1b44bc['t']('bases-dashboard-ui.dashboard.search'),'section':_0x1b44bc['t']('bases-dashboard-ui.dashboard.section')};},'getItems':_0xc7d64=>{const _0x18cab4=_0x20e390;let _0x13dc0c=_0x495a8b[_0x18cab4(0x49b)](_0xc7d64);return _0x13dc0c[_0x18cab4(0x3ad)][_0x18cab4(0x3e9)](_0x70ec74=>{const _0x54bd82=_0x18cab4;let _0xa0cb35=_0x13dc0c[_0x54bd82(0x238)][_0x70ec74];return _0xa0cb35?[{'id':_0xa0cb35['id'],'name':_0xa0cb35[_0x54bd82(0x416)],'readonly':!(0x0,e[_0x54bd82(0x550)])(_0x584df3,_0xc7d64,_0xa0cb35['id'])}]:[];});},'create':async _0x59ce37=>{const _0x22105f=_0x20e390;let _0x59c802=_0x495a8b[_0x22105f(0x49b)](_0x59ce37),_0x40d879=_0x22105f(0x48b)+(0x0,a['generateRandomId'])(0x8),_0x5f2822=Ln(_0x59c802[_0x22105f(0x3ad)][_0x22105f(0x3e9)](_0x2f7ea0=>{const _0x2e2bc4=_0x22105f;let _0xe32121=_0x59c802[_0x2e2bc4(0x238)][_0x2f7ea0];return _0xe32121?[_0xe32121[_0x2e2bc4(0x416)]]:[];}),_0x3b4f34=>_0x1b44bc['t'](_0x22105f(0x15c),String(_0x3b4f34)));return await _0x49a44d['executeCommand'](e[_0x22105f(0x208)]['id'],{'unitId':_0x59ce37,'dashboard':{'id':_0x40d879,'name':_0x5f2822,'widgetOrder':[],'widgets':{}}})?_0x40d879:null;},'rename':async(_0x24dc9f,_0x1892d2,_0x541d35)=>{const _0x2622c3=_0x20e390;let _0x47295f=_0x495a8b[_0x2622c3(0x4d7)](_0x24dc9f,_0x1892d2);return!!(_0x47295f&&await _0x49a44d['executeCommand'](e[_0x2622c3(0x205)]['id'],{'unitId':_0x24dc9f,'dashboard':{..._0x47295f,'name':_0x541d35}}));},'remove':(_0x3562c3,_0x2d3861)=>_0x49a44d[_0x20e390(0x3f9)](e[_0x20e390(0x1c5)]['id'],{'unitId':_0x3562c3,'dashboardId':_0x2d3861})};}function Ln(_0x16c6b2,_0x242d01){const _0x5454a2=_0x5ed5a2;let _0x29c193=new Set(_0x16c6b2),_0x3b8cd1=_0x29c193[_0x5454a2(0x1fe)]+0x1,_0x4c9314=_0x242d01(_0x3b8cd1);for(;_0x29c193[_0x5454a2(0x1ba)](_0x4c9314);)_0x3b8cd1+=0x1,_0x4c9314=_0x242d01(_0x3b8cd1);return _0x4c9314;}let $=class extends a['Plugin']{constructor(_0x207482=C,_0x3501fa,_0x325a8){const _0x428822=_0x5ed5a2;super(),this[_0x428822(0x273)]=_0x207482,this['_injector']=_0x3501fa,this[_0x428822(0x185)]=_0x325a8;let {..._0x2cd218}=(0x0,a[_0x428822(0x173)])({},C,this['_config']);this[_0x428822(0x185)][_0x428822(0x4a3)](S,_0x2cd218);}[_0x5ed5a2(0x366)](){const _0x451c3e=_0x5ed5a2;this[_0x451c3e(0x146)]['add']([F]),this['_injector'][_0x451c3e(0x4cd)]([W]),this[_0x451c3e(0x146)][_0x451c3e(0x4cd)]([Fn]);}[_0x5ed5a2(0x390)](){const _0x2021e2=_0x5ed5a2;(0x0,a[_0x2021e2(0x440)])(this[_0x2021e2(0x146)],[[F],[W],[Fn]]);}};B($,'type',a[_0x5ed5a2(0x39a)][_0x5ed5a2(0x15a)]),B($,'pluginName','BASE_DASHBOARD_UI_PLUGIN'),B($,'packageName',b),B($,_0x5ed5a2(0x1f0),x),$=P([(0x0,a[_0x5ed5a2(0x368)])(r[_0x5ed5a2(0x37a)],e[_0x5ed5a2(0x210)],t[_0x5ed5a2(0x405)],n[_0x5ed5a2(0x320)],i[_0x5ed5a2(0x46f)],o['UniverDocsUIPlugin']),N(0x1,(0x0,a[_0x5ed5a2(0x1cf)])(a[_0x5ed5a2(0x47b)])),N(0x2,a[_0x5ed5a2(0x214)])],$),Object['defineProperty'](exports,_0x5ed5a2(0x1b9),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x5ed5a2(0x532)](exports,_0x5ed5a2(0x4e1),{'enumerable':!0x0,'get':function(){return $;}});
|
|
1
|
+
const _0x30b590=_0x1e15;(function(_0x281c2c,_0x145da1){const _0x4f7909=_0x1e15,_0x229c15=_0x281c2c();while(!![]){try{const _0x4a4bf4=parseInt(_0x4f7909(0x310))/0x1+parseInt(_0x4f7909(0x2e4))/0x2*(-parseInt(_0x4f7909(0x3cd))/0x3)+-parseInt(_0x4f7909(0x163))/0x4+parseInt(_0x4f7909(0x184))/0x5+parseInt(_0x4f7909(0xfb))/0x6+-parseInt(_0x4f7909(0x4a9))/0x7+parseInt(_0x4f7909(0x36e))/0x8;if(_0x4a4bf4===_0x145da1)break;else _0x229c15['push'](_0x229c15['shift']());}catch(_0x36f64d){_0x229c15['push'](_0x229c15['shift']());}}}(_0x520f,0x881fe),Object[_0x30b590(0x1a7)](exports,Symbol['toStringTag'],{'value':'Module'}));let e=require('@univerjs-pro/bases-dashboard'),t=require('@univerjs-pro/bases-ui'),n=require('@univerjs-pro/chart-ui'),r=require('@univerjs-pro/license'),i=require('@univerjs-pro/shape-editor'),a=require('@univerjs/core'),o=require('@univerjs/docs-ui'),s=require('@univerjs/icons'),c=require('rxjs'),l=require('@univerjs-pro/bases'),u=require('@univerjs-pro/collaboration-client'),d=require('@univerjs-pro/engine-shape'),f=require('@univerjs/design'),p=require('@univerjs/protocol'),m=require('@univerjs/ui'),h=require('react'),g=require('react/jsx-runtime'),_=require('@univerjs-pro/engine-chart'),v=require('react-dom'),y=require('@univerjs-pro/engine-pivot');var b=_0x30b590(0x297),x='1.3.0';const S=_0x30b590(0x138),C={};function w(_0x27ab89,_0x5e7a91){const _0x2a3ac7=_0x30b590;let _0x426f27=(0x0,m[_0x2a3ac7(0x155)])(a[_0x2a3ac7(0x164)]),_0x243cec=(0x0,e['canEditBaseDashboard'])(_0x426f27,_0x27ab89,_0x5e7a91);return(0x0,m['useObservable'])(()=>_0x426f27[_0x2a3ac7(0x11e)][_0x2a3ac7(0x26c)]((0x0,c['map'])(()=>(0x0,e[_0x2a3ac7(0x3ae)])(_0x426f27,_0x27ab89,_0x5e7a91))),_0x243cec,!0x1,[_0x5e7a91,_0x426f27,_0x27ab89]);}function T(_0x3b900e,_0x228aaa,_0x32d3a2){const _0x131567=_0x30b590;let _0x277989=(0x0,m[_0x131567(0x155)])(a[_0x131567(0x164)]),_0x46c358=(0x0,e[_0x131567(0x33b)])(_0x277989,_0x3b900e,_0x228aaa,_0x32d3a2);return(0x0,m[_0x131567(0xe2)])(()=>_0x277989[_0x131567(0x11e)]['pipe']((0x0,c[_0x131567(0x48a)])(()=>(0x0,e[_0x131567(0x33b)])(_0x277989,_0x3b900e,_0x228aaa,_0x32d3a2))),_0x46c358,!0x1,[_0x277989,_0x228aaa,_0x3b900e,_0x32d3a2]);}function E(_0x10ffc9,_0xbaf4ab=_0x30b590(0x225)){const _0x263a60=_0x30b590;return{'backgroundImage':'url('+JSON[_0x263a60(0x198)](_0x10ffc9)+')','backgroundPosition':_0xbaf4ab===_0x263a60(0x336)?_0x263a60(0x156):_0x263a60(0x334),'backgroundRepeat':_0xbaf4ab==='repeat'?_0x263a60(0x336):_0x263a60(0x44e),'backgroundSize':_0xbaf4ab===_0x263a60(0x225)?_0x263a60(0x225):_0x263a60(0x337)};}const D={'alignment':_0x30b590(0x362),'currency':_0x30b590(0x101),'decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x30b590(0x337),'numberFormat':_0x30b590(0x2b4)},O={'CNY':'¥','EUR':'€','USD':'$'};function k(_0x205520){const _0x487cfe=_0x30b590;var _0x1808fd;let _0x385bc2=te(((_0x1808fd=_0x205520['shapeData']['formulaBinding'])==null||(_0x1808fd=_0x1808fd[_0x487cfe(0x255)])==null?void 0x0:_0x1808fd[_0x487cfe(0x303)])??'');return{...D,..._0x385bc2,..._0x205520[_0x487cfe(0x434)]};}function A(_0x726722,_0x42a334){const _0x481d3d=_0x30b590;let _0x56777b={..._0x726722[_0x481d3d(0x434)],..._0x42a334},_0x253398=k({..._0x726722,'appearance':_0x56777b}),_0xeee392=_0x726722['shapeData'][_0x481d3d(0x44d)]??{'formula':''};return{..._0x726722,'appearance':_0x56777b,'shapeData':{..._0x726722[_0x481d3d(0x34e)],'formulaBinding':{..._0xeee392,'numberFormat':{'pattern':j(_0x253398[_0x481d3d(0x255)],_0x253398[_0x481d3d(0x13b)],_0x253398[_0x481d3d(0x2c4)])}}}};}function _0x520f(){const _0x38934a=['config$','span','version','labelId','currentTarget','dataset','useState','univer-size-4','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','getFieldPositionInfoById','ChartTrendlineSection','refreshChartRuntime','MoreHorizontalIcon','function','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','bases-dashboard-ui.chart.section.wordCloud','useRef','bases-dashboard-ui.dashboardInspector.style','indexOf','bases-dashboard-ui.dashboard.undo','acquireChartRuntime','cornerView','indicatorLine','base-dashboard-pivot-chart-','ShapeTypeEnum','bases-dashboard-ui.pivot.displayName','find','tbody','ChartEditorCapability','Treemap','bases-dashboard-ui.dashboardInspector.right','univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','ChartHostAdapter','UniverChartMobileUIPlugin','replace','createElement','MobileChartEditorProvider','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','Candlestick','bases-dashboard-ui.dashboardInspector.uploadImage','addEventListener','toDate','move','heatmap','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','ChartSeriesSection','contains','appearance','change$','radar','bases-dashboard-ui.chart.section.histogram','kind','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','chartTypeCanUseTrendLine','bases-dashboard-ui.pivot.layoutCompact','IImageIoService','bases-dashboard-ui.pivot.columns','bases-dashboard-ui.operators.isNotEmpty','dashboard-text-','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','bases-dashboard-ui.dashboardInspector.dataSource','innerHeight','from','bases-dashboard-ui.dashboardInspector.compact','true','bases-dashboard-ui.pivot.variance','bases-dashboard-ui.pivot.ascending','split','LESS_THAN_OR_EQUAL','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','DEFAULT_CHART_RELATION_VALUES','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','formulaBinding','no-repeat','Row','chartRowDirection','name','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','dashboardOrder','textStyle','text','setStyle','data','bases-dashboard-ui.pivot.showRowSubtotal','bases-dashboard-ui.dashboard.search','options','dispose','allSeriesStyle','document','IAttachmentIoService','border','div','univer-flex\x20univer-min-h-full\x20univer-flex-col','format','univer-size-8\x20univer-p-0\x20univer-text-red-500','scrollHeight','bases-dashboard-ui.pivot.repeatRowLabels','VerticalAxis','isFinite','supports','setConfig','ThemeService','bases-dashboard-ui.pivot.pivotConfiguration','showRowGrandTotal','univer-h-full\x20univer-w-full\x20univer-bg-transparent','ChartCommonDataMappingSection','onDrop','Style','univer-size-5\x20univer-text-primary-600','flex-start','tableOrder','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','depthAxis','getRenderColor','_injector','bases-dashboard-ui.pivot.chartConfiguration','bases-dashboard-ui.operators.isNot','percent','#,##0','ChartRadarStyleSection','operand','IBaseDashboardUIExtensionRegistryService','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','PivotLayoutTypeEnum','bases-dashboard-ui.dashboardInspector.backgroundImage','setLabelFilterInfo','pointerY','Pie','presentation','call','ChartEditPanelTab','resizeDirection','index','map','Number','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','snapshot','CreateBaseDashboardCommand','IndicatorLine','set','clientX','field','number','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','Injector','WaterfallSeries','image/*','PivotDataFieldDataTypeEnum','getDashboard','getResource','pointermove','univer-relative\x20univer-z-10','change','dashboard-','ILayoutService','Legend','BaseViewType','destructive','getOwnPropertyDescriptor','univer-w-24','bases-dashboard-ui.mobile.moveDown','Relation','bases-dashboard-ui.dashboard.addWidget','minmax(0,\x203fr)\x20minmax(0,\x202fr)','3354995AtDeTj','rowSpan','ArrowUpIcon','errorType','stdDevp','get','GripVerticalIcon','rowView','bases-dashboard-ui.dashboardInspector.sourceUnavailable','initial','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','Axes','accept','BaseChartRuntimeService','item','univer-truncate','bases-dashboard-ui.dashboard.image','dashboard-chart-setup','gray','baseChartDataAnimation','repeatColLabels','lastCol','base-pivot-chart-style','getOptions','valueIndex','PieStyle','useCallback','bases-dashboard-ui.chart.section.candlestick','add','bases-dashboard-ui.pivot.fields','widgetOrder','toUpperCase','aside','bases-dashboard-ui.chart.section.radar','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','waterfallStyle','isArray','info','MobileDropdownMenu','pointerX','date','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','bases-dashboard-ui.dashboardInspector.general','univer-mt-2','push','RecordId','univer-grid\x20univer-gap-3','average','bases-dashboard-ui.pivot.calculationFailed','table','countNums','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','wordCloud','DatePicker','pageOverThenDown','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','ProtectIcon','Positive','flatMap','numfmt','stdDev','bases-dashboard-ui.chart.section.chord','formulaToEditorFormula','DEFAULT_CHART_PIE_VALUES','createChartInstance','segmented','bases-dashboard-ui.chart.common.switchRowColumn','bases-dashboard-ui.pivot.cancel','isConnected','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','NOT_CONTAINS','CreatedAt','dataModel','TextIcon','dataView','createPortal','bases-dashboard-ui.dashboard.pivotChart','header','ChartLineAndAreaSection','ChartWaterfallStyleTarget','bases-dashboard-ui.dashboardInspector.unchecked','DEFAULT_CHART_INDICATOR_LINE_VALUES','IS_NOT_EMPTY','bases-dashboard-ui.dashboardInspector.description','Series','tables','bases-dashboard-ui.pivot.filters','borderRadius','Chord','dashboard-chart-style','univer-text-sm','PivotTableFiledAreaEnum','chart','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','compact','clientWidth','setLayout','ChartWordCloudStyleSection','color','thead','bases-dashboard-ui.dashboardInspector.textSize','useObservable','separator','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','backgroundColor','bases-dashboard-ui.dashboardInspector.replaceImage','resolveBasePivotChartRowDirection','univer-max-h-40\x20univer-text-base','univer-flex\x20univer-min-h-0\x20univer-flex-1','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','then','Bubble','UniverBasesUIPlugin','skip','LineAndArea','addImageSourceCache','HorizontalAxis','Column','baseOn','BASES_DASHBOARD_GRID_COLUMNS','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','ChartIcon','PenIcon','length','toFormulaMenuTables','DEFAULT_CHART_HEATMAP_VALUES','3797166Ouqizr','fontSizeMode','BASES_DASHBOARD_DEFAULT_ROW_HEIGHT','ChartPieStyleSection','onSettings','bases-dashboard-ui.pivot.valuePosition','USD','ChartNumberFormatAtom','fill','Input','BaseMobileDrawer','original','varp','Image','sourceType','pareto','disposeWithMe','bases-dashboard-ui.pivot.addToFilter','pageView','displayMode','focusUnit','widgets','ChartThemeService','univer-w-full','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1\x20univer-items-center\x20univer-overflow-hidden','defaultValue','Text','CHART_DATA_UPDATE_ANIMATION_DURATION','toMenuFields','getBoundingClientRect','resize','constructor','updateValuePosition','type','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','permissionPointUpdate$','shapeText','bases-dashboard-ui.dashboardInspector.editFormula','alignment','layout','Inject','Subtotal','conditions','descending','univer-grid\x20univer-gap-2\x20univer-rounded-xl\x20univer-border\x20univer-border-gray-200\x20univer-bg-gray-50\x20univer-p-3\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-800','ChartGradientFillField','rows','click','BEFORE','bases-dashboard-ui.chart.common.horizontalAxis','target','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','clientY','style','getValueIndex','colView','src','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','minmax(0,\x201fr)','bases-dashboard-ui.dashboard.rename','ChartSectionAccordion','bases-dashboard-ui.config','boxSizing','documentElement','decimalPlaces','markNotReady','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','scrollWidth','createParagraphId','bases-dashboard-ui.pivot.dataSource','filter','backgroundImage','markReady','toLocaleLowerCase','bases-dashboard-ui.mobile.permissions','startY','repeatRowLabels','getBaseDashboardPermissionObjectId','ceil','renameField','PivotTableIcon','Radar','ManualFilter','getCurrentTheme','bases-dashboard-ui.chart.common.editChart','bases-dashboard-ui.dashboard.configure','bases-dashboard-ui.dashboardInspector.percent','dashboards','bases-dashboard-ui.operators.isEmpty','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','useDependency','0\x200','overflow','bases-dashboard-ui.pivot.selectAll','createFormulaShapeData','packageName','bases-dashboard-ui.dashboard.widgetActions','Select','DeleteIcon','row','every','getImageSourceCache','onMoveUp','bases-dashboard-ui.dashboardInspector.close','1196272GVswND','IPermissionService','blur','scrollbarClassName','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','bases-dashboard-ui.chart.section.treemap','openObjectPermissionDialog','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','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','darkMode$','univer-pointer-events-auto\x20univer-opacity-100','DEFAULT_CHART_SERIES_VALUES','bases-dashboard-ui.chart.section.sunburst','_createContext','bases-dashboard-ui.dashboardInspector.originalSize','bases-dashboard-ui.operators.greaterThanOrEqual','pluginName','ChartTypeField','bases-dashboard-ui.dashboardInspector.cover','bases-dashboard-ui.pivot.searchFields','RTLChartStyle','Escape','subscribe','createBasePivotTable','toPrimitive','getAttachmentUrl','merge','bases-dashboard-ui.operators.lessThan','bases-dashboard-ui.dashboardInspector.clear','UpdateBaseDashboardCommand','PivotDataFieldSortOperatorEnum','bases-dashboard-ui.dashboardInspector.currency','ChartSectionAccordionTrigger','1130250EMUeDt','lastRow','bases-dashboard-ui.chart.section.paretoLine','MoreDownIcon','bases-dashboard-ui.pivot.defaultName','ChartRenderMode','sum','register','UniverBaseDashboardPlugin','toChartModelUpdate','univer-flex','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','univer-mx-auto\x20univer-size-6','rowFields','fillType','Date','bases-dashboard-ui.pivot.addToRow','bases-dashboard-ui.dashboardInspector.repeat','isTopTotal','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','stringify','bases-dashboard-ui.dashboardInspector.backgroundColor','flex-end','Value','lineStrokeType','activeRuntimeModel','UUID','end','bases-dashboard-ui.pivot.variancePopulation','bases-dashboard-ui.dashboardInspector.checked','UNIVER_BASE','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','rowSubtotalPosition','keydown','Progress','defineProperty','round','outline','children','bases-dashboard-ui.dashboardInspector.delete','bases-dashboard-ui.chart.waterfall.subtotal','setSubtotalType','bases-dashboard-ui.dashboardInspector.currencyCode','setSortInfo','\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','ChartThreeDSection','bases-dashboard-ui.pivot.addToValue','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','view','bases-dashboard-ui.pivot.stdDevPopulation','disconnect','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','univer-size-6\x20!univer-border\x20!univer-border-solid\x20!univer-border-gray-200\x20!univer-bg-gray-0\x20univer-p-0\x20!univer-shadow-none\x20hover:!univer-bg-gray-100\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900\x20dark:hover:!univer-bg-gray-800','bases-dashboard-ui.pivot.layout','values','bases-dashboard-ui.dashboard.fullScreen','entries','formatMap','area','BASE_DASHBOARD_UI_PLUGIN','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','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','label','bottom','isSubtotal','ChartEditPanel','createRenderInput','Tooltip','ChartLegendSection','cumulativeLineStyle','config','bases-dashboard-ui.chart.section.paretoBar','bases-dashboard-ui.pivot.dropFieldsHere','prefix','bases-dashboard-ui.pivot.min','localeKey','ChartHeatmapStyleSection','DEFAULT_CHART_WATERFALL_STYLE_VALUES','bases-dashboard-ui.pivot.max','conjunction','DeleteBaseDashboardCommand','BaseFieldType','Data','univer-mb-2\x20univer-border-collapse\x20univer-text-sm','BaseMobileFilterOperand','relation','bases-dashboard-ui.pivot.blank','img','univer-w-full\x20univer-justify-start','bases-dashboard-ui.operators.notContains','GeneralSeries','default','var','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','bases-dashboard-ui.chart.common.chartStyle','bases-dashboard-ui.pivot.sourceFields','BaseDashboardWidgetType','bases-dashboard-ui.pivot.showColumnSubtotal','DEFAULT_CHART_TITLE_VALUES','UniverLicensePlugin','string','button','bases-dashboard-ui.operators.lessThanOrEqual','bases-dashboard-ui.dashboardInspector.decimalPlaces','RightVerticalAxis','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','univer-cursor-grab','chartType','join','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','CHART_TYPE_CATALOG','DEFAULT_CHART_LINE_AND_AREA_VALUES','observe','bases-dashboard-ui.chart.common.series','ChartTypeBits','changed$','forEach','bases-dashboard-ui.pivot.repeatColumnLabels','ChartParetoSeriesSection','fieldId','DEFAULT_CHART_TRENDLINE_VALUES','bases-dashboard-ui.dashboard.resizeWidget','bases-dashboard-ui.dashboardInspector.custom','ChartStyleSection','imageSourceType','MultipleGrandTotal','None','bases-dashboard-ui.mobile.moveUp','ascending','rightY','Plugin','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','ChartTypeSpecificDataSection','borderClassName','system','univer-grid\x20univer-gap-4','matchMedia','LESS_THAN','UndoIcon','headerMap','ChartStyle','\x20/\x20','isBottomTotal','Trendline','univer-flex-1','\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','current','setCurrentUnitForType','_localeService','dashboard-widget-','bases-dashboard-ui.dashboardInspector.left','MultiSelect','model','bases-dashboard-ui.pivot.options','ChartAxisSection','univer-size-5\x20univer-rotate-90','visibilityState','univer-grid\x20univer-gap-4\x20univer-p-4','preventDefault','Sankey','getChartRuntime','cover','Fragment','univer-mb-3\x20univer-text-sm\x20univer-font-medium','base64Cache','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','_chartThemeService','UndoCommand','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','univer-shrink-0\x20univer-px-3','PivotTableValuePositionEnum','ChartEditPanelTabs','documentStyle','stopPropagation','bases-dashboard-ui.pivot.showRowGrandTotal','DEFAULT_CHART_STYLE_VALUES','Rating','onStarting','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','decorate','input','\x20has\x20no\x20render\x20config.','source','chart-and-table','bases-dashboard-ui.dashboardInspector.alignment','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','useChartEditorHasRightAxis','jsx','bases-dashboard-ui.dashboardInspector.numberFormat','getFieldCountByArea','IConfigService','MobileChartEditorControls','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','IUniverInstanceService','darkMode','pivotViewId','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','BaseDashboard','waterfall.negative','bases-dashboard-ui.pivot.rows','bases-dashboard-ui.dashboardInspector.removeImage','_element','ChartWaterfallSetupFields','univer-w-36','FormulaEditorPanel','bases-dashboard-ui.pivot.numberFormat','dateKit','headerRowCount','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','numberFormat','columnFields','bases-dashboard-ui.chart.section.gauge','pivot','article','bases-dashboard-ui.pivot.addToColumn','bases-dashboard-ui.dashboard.deleteWidget','CalendarIcon','ChartUIService','touchDependencies','replaceChildren','ShapeLineTypeEnum','univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','bases-dashboard-ui.pivot.pageWrap','PivotSubtotalPositionEnum','Line','DescendingIcon','grouped','bases-dashboard-ui.dashboardInspector.selectOption','max','saveImage','pipe','title','bind','ChartThemeField','bases-dashboard-ui.pivot.chartAndTable','ChartSectionAccordionItem','ExpandIcon','GrandTotal','CloseIcon','releaseChartRuntime','bases-dashboard-ui.dashboardInspector.loading','ChartFunnelStyleSection','column','ICommandService','ChartTypeSpecificSetupSection','requestFullscreen','univer-mt-2\x20univer-w-full','minmax(240px,\x203fr)\x20minmax(180px,\x202fr)','univer-flex\x20univer-flex-col\x20univer-gap-4','bases-dashboard-ui.dashboardInspector.reset','columnSpan','bases-dashboard-ui.pivot.removeField','ChartRelationStyleSection','ParetoLineSeries','matches','ParetoBarSeries','base-pivot-chart-','bases-dashboard-ui.pivot.downThenAcross','bases-dashboard-ui.chart.common.heatmap','iterator','Heatmap','setFieldFormat','onReady','onMoveDown','bases-dashboard-ui.dashboard.redo','getDataFieldByTableId','univer-flex\x20univer-justify-end\x20univer-gap-2','top','Person','renderTransition','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','showRowSubtotal','floor','@univerjs-pro/bases-dashboard-ui','ShapeFormulaService','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','symbol','UnitObject','catch','fullscreenElement','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','Histogram','scrollTop','ChartEditBlockTitle','tableFieldId','removeField','valuePosition','IUndoRedoService','Dom','chartId','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','bases-dashboard-ui.dashboardInspector.textColor','alt','saveAttachment','onRemove','dataStream','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','UpdateBasePivotViewCommand','Sunburst','Base\x20dashboard\x20chart\x20','BaseFilterConjunction','barStyle','general','bases-dashboard-ui.chart.section.indicatorLine','Textarea','bases-dashboard-ui.dashboardInspector.editData','bases-dashboard-ui.chart.chartTypes.','Checkbox','buildChartTypeSelectOptions','_config','debounce','bases-dashboard-ui.dashboard.formulaShape','bases-dashboard-ui.pivot.layoutTabular','getRect','fontSize','useMemo','ChartTypeSpecificStyleSection','innerWidth','currency','PivotCellStyleTypeEnum','redos','DEFAULT_CHART_FUNNEL_VALUES','files','Pareto','bases-dashboard-ui.chart.common.customize','resolve','bases-dashboard-ui.dashboard.tableFilter','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','ChartColorField','chartTypeSupportsLineAndAreaStyle','Pivot','bases-dashboard-ui.dashboardInspector.number','dataAggregation','key','select','bases-dashboard-ui.chart.section.funnel','paragraphId','fit','bases-dashboard-ui.pivot.clearFilter','bases-dashboard-ui.dashboard.editWidget','univer-text-sm\x20univer-font-medium','univer-flex\x20univer-gap-2','bases-dashboard-ui.pivot.description','hidden','bases-dashboard-ui.pivot.filterField','bases-dashboard-ui.pivot.name','General','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','showColSubtotal','univer-cursor-grabbing','2yasnjU','Filter','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.pivot.confirm','prototype','direction$','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','NumberFormat','syncLayout','fullscreenchange','fieldOrder','right','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','IS_NOT','bases-dashboard-ui.dashboardInspector.grouped','bases-dashboard-ui.operators.after','bases-dashboard-ui.dashboard.delete','section','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','min','file','bases-dashboard-ui.pivot.grandTotal','bases-dashboard-ui.pivot.average','baseChartDataAnimationDuration','MobileFormulaEditorPanel','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','WordCloud','small','univer-flex\x20univer-flex-col','pattern','RedoIcon','error','DEFAULT_CHART_WATERFALL_SETUP_VALUES','univer-flex\x20univer-items-center\x20univer-gap-2','pie','ActivateBaseViewOperation','includes','ImageSourceType','undoRedoStatus$','items','RoundRect','isErrorValue','272476rkrZbX','parentElement','PivotSubtotalTypeEnum','IBaseViewUIRegistryService','normalizeEditorFormulaForConfig','clientHeight','context','currentTheme$','rowCount','FilterIcon','chartBitsUtils','bases-dashboard-ui.pivot.top','FormulaShape','primary','AscendingIcon','SearchIcon','\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','YYYY-MM-DD','toJSON','description','Segmented','ILogService','TableFilter','measure','Funnel','bases-dashboard-ui.pivot.rowSubtotalPosition','dimension','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','filterInfo','product','Group','titles','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','border-box','bases-dashboard-ui.dashboardInspector.data','univer-min-w-0\x20univer-flex-1','center','IncreaseIcon','repeat','auto','valueFields','height','InputNumber','canEditBasePivotView','\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','SetBasePermissionCommand','DEFAULT_CHART_AXIS_VALUES','bases-dashboard-ui.pivot.countNumbers','RemoveBaseDashboardWidgetCommand','bases-dashboard-ui.chart.section.waterfall','trim','NumberIcon','unsubscribe','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','removeEventListener','bases-dashboard-ui.dashboard.add','bases-dashboard-ui.dashboardInspector.formula','onMove','itemTypes','list','useChartEditorChartType','slice','shapeData','bases-dashboard-ui.chart.common.chartAndAxisTitles','subtotal','value','rightYAxis','sortInfo','base-pivot-chart','startX','ChartEditorProvider','bases-dashboard-ui.dashboardInspector.dragWidget','Gauge','ChartSectionAccordionContent','Disposable','getResult','UniverShapeEditorPlugin','bases-dashboard-ui.dashboardInspector.autoFit','bases-dashboard-ui.dashboard.new','bases-dashboard-ui.dashboardInspector.enterValue','getPresentation','DEFAULT_CHART_LEGEND_VALUES','left','BaseFilterOperator','some','lineAndArea','dataFieldId','ChartWaterfallStyleSection','object','dom','chartTypeSupportsCapability','axis','IS_EMPTY','ChartAndAxisTitles','8870760KFgJUK','viewOrder','delete','views','closest','clsx','getTableFieldsByDataFieldId','bases-dashboard-ui.pivot.stdDev','funnel','row:','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','count','undos','UniverBasesMobileUIPlugin','bases-dashboard-ui.dashboardInspector.contain','UpsertBaseDashboardWidgetCommand','trendline','DropdownMenu','UpdatedAt','transparent','ChartEditPanelSection','bases-dashboard-ui.pivot.display','bases-dashboard-ui.chart.chartTypes.line','corner:','GridlinesAndTicks','executeCommand','BaseUnitCollaborationStatus','univer-border-gray-200\x20dark:!univer-border-gray-700','bases-dashboard-ui.pivot.fieldSettings','getSnapshot','column:','jsxs','colCount','displayName','rootContainerElement','bases-dashboard-ui.chart.chartTypes.area','series','waterfall','bases-dashboard-ui.dashboardInspector.center','bases-dashboard-ui.operators.is','addFieldWithSourceId','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','onCommit','MobileDialog','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','bases-dashboard-ui.pivot.values','size','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','width','univer-bg-transparent\x20dark:!univer-bg-transparent','base-pivot-chart-configuration','[data-dashboard-widget]','orient','bases-dashboard-ui.chart.section.gridlinesAndTicks','PivotFilterTypeEnum','paragraphs','onDragStart','BaseDashboardResourceService','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','has','Boxplot','DEFAULT_CHART_PARETO_VALUES','formula','updateFieldPosition','canEditBaseDashboard','ObjectPermissionButton','style$','group','ChartIndicatorLineSection','AFTER','setOptions','onCancel','bases-dashboard-ui.dashboard.text','bases-dashboard-ui.chart.common.verticalAxis','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','blank','decimal','univer-grid\x20univer-gap-2\x20univer-p-3','base-pivot-options','renderRevision','bases-dashboard-ui.pivot.summarizeBy','getRuntimeContext','ownerDocument','px\x20solid\x20','bases-dashboard-ui.pivot.pageDirection','base-pivot-chart-setup','bases-dashboard-ui.chart.common.legend','defaultPrevented','fields','PivotChart','filterFields','bases-dashboard-ui.pivot.tableOnly','tabular','test','base-pivot-fields','2712939lEzkYk','SolidFill','ChartStackField','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','onFilter','univer-text-gray-400','tableId','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','UniverInstanceType','pageWrap','bases-dashboard-ui.pivot.sum','base-pivot-table-configuration','onDragEnd','Button','contain','_configService','useEffect','textColor','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','bases-dashboard-ui.pivot.count','isPrefixValue','doc','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','subItem','mode','SingleSelect','getUnit','univer-min-h-11\x20univer-px-3\x20univer-text-base','DependentOn','LocaleService','pageRows','RedoCommand','body','SolidLine','bases-dashboard-ui.chart.common.setup','isHeader','custom','bases-dashboard-ui.pivot.calculating','ChartTitlesSection','createDomChartInstance','univer-m-3','getId','\x20/\x20span\x20','generateRandomId','bases-dashboard-ui.pivot.acrossThenDown','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','getDirection','operator','onDragOver','bases-dashboard-ui.chart.common.trendline','ChartViewStateRegistry','Currency','GREATER_THAN','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','grandTotal'];_0x520f=function(){return _0x38934a;};return _0x520f();}function j(_0x380553,_0x4c1eea,_0xe7dfb0){const _0xc83580=_0x30b590;let _0x2c1b7d=Math['max'](0x0,Math[_0xc83580(0x2f9)](0x8,Math[_0xc83580(0x1a8)](_0x4c1eea))),_0x56cd5f=_0x2c1b7d?'.'+'0'[_0xc83580(0x336)](_0x2c1b7d):'';switch(_0x380553){case _0xc83580(0x493):return'0'+_0x56cd5f;case _0xc83580(0x47a):return'0'+_0x56cd5f+'%';case _0xc83580(0x2c4):return(O[_0xe7dfb0]??_0xe7dfb0)+_0xc83580(0x47b)+_0x56cd5f;case _0xc83580(0x268):return _0xc83580(0x47b)+_0x56cd5f;case'compact':case _0xc83580(0x2b4):return'General';}}function ee(_0x42eb3c,_0x3505e8,_0x519adb){const _0x3d6145=_0x30b590;return _0x519adb['numberFormat']!==_0x3d6145(0xdb)||typeof _0x3505e8!=_0x3d6145(0x493)||!Number[_0x3d6145(0x467)](_0x3505e8)?_0x42eb3c:new Intl[(_0x3d6145(0x2ed))](void 0x0,{'notation':_0x3d6145(0xdb),'minimumFractionDigits':_0x519adb[_0x3d6145(0x13b)]??0x0,'maximumFractionDigits':_0x519adb[_0x3d6145(0x13b)]??0x0})['format'](_0x3505e8);}function te(_0x1b3bef){const _0xfad56c=_0x30b590;var _0x5502cd,_0x31bd59;if(!_0x1b3bef||_0x1b3bef===_0xfad56c(0x2e0))return{};let _0x5e3c99=_0x1b3bef['match'](/\.([0#]+)/),_0x1d5cce=(_0x5e3c99==null||(_0x5502cd=_0x5e3c99[0x1])==null?void 0x0:_0x5502cd['length'])??0x0;if(_0x1b3bef['includes']('%'))return{'decimalPlaces':_0x1d5cce,'numberFormat':_0xfad56c(0x47a)};let _0x2b88f5=(_0x31bd59=Object[_0xfad56c(0x1bc)](O)[_0xfad56c(0x41e)](([,_0x477bb7])=>_0x1b3bef['includes'](_0x477bb7)))==null?void 0x0:_0x31bd59[0x0];return _0x2b88f5?{'currency':_0x2b88f5,'decimalPlaces':_0x1d5cce,'numberFormat':_0xfad56c(0x2c4)}:{'decimalPlaces':_0x1d5cce,'numberFormat':_0x1b3bef['includes'](',')?_0xfad56c(0x268):_0xfad56c(0x493)};}const ne={'center':_0x30b590(0x334),'left':_0x30b590(0x472),'right':_0x30b590(0x19a)};function M({dashboardId:_0x92442a,unitId:_0x3ff1cb,widget:_0x45cc0c}){const _0xb26ff7=_0x30b590;var _0x36fe75,_0x135781,_0x25f1e3,_0x5789c8,_0x4f001a,_0x5d9b51,_0x5df078,_0x2fd324,_0x21e482;let _0x66fa03=(0x0,m[_0xb26ff7(0x155)])(i[_0xb26ff7(0x298)]),_0x5441a5=(0x0,m['useDependency'])(a[_0xb26ff7(0x43c)]),_0x5d6c4b=(0x0,m[_0xb26ff7(0x155)])(a[_0xb26ff7(0x3ea)]),_0x4d4941=(0x0,h[_0xb26ff7(0x2c1)])(()=>({'hostType':a[_0xb26ff7(0x3d5)]['UNIVER_BASE'],'unitId':_0x3ff1cb,'subUnitId':_0x92442a,'shapeId':_0x45cc0c['id']}),[_0x92442a,_0x3ff1cb,_0x45cc0c['id']]),[_0xe5c97c,_0x2d96d2]=(0x0,h[_0xb26ff7(0x40a)])(()=>_0x66fa03[_0xb26ff7(0x360)](_0x4d4941)),[_0x3747db,_0x4f4025]=(0x0,h[_0xb26ff7(0x40a)])(()=>{const _0xfc8241=_0xb26ff7;var _0x3ca53a;return(_0x3ca53a=_0x66fa03[_0xfc8241(0x35b)](_0x4d4941))==null?void 0x0:_0x3ca53a[_0xfc8241(0x351)];}),[_0x4c5767,_0x208396]=(0x0,h[_0xb26ff7(0x40a)])(),_0x2a21f1=(0x0,h['useRef'])(null),_0x3f41dd=(0x0,h[_0xb26ff7(0x414)])(null),_0xf26d65=k(_0x45cc0c);(0x0,h[_0xb26ff7(0x3dd)])(()=>{let _0x1cdc78=_0x66fa03['presentationChanged$']['subscribe'](_0x3bcb0=>{const _0x69d7c1=_0x1e15;_0x3bcb0['unitId']===_0x3ff1cb&&_0x3bcb0['subUnitId']===_0x92442a&&_0x3bcb0['shapeId']===_0x45cc0c['id']&&(_0x2d96d2(_0x3bcb0[_0x69d7c1(0x485)]),_0x4f4025(_0x3bcb0['result'][_0x69d7c1(0x351)]));});return()=>_0x1cdc78['unsubscribe']();},[_0x92442a,_0x66fa03,_0x4d4941,_0x3ff1cb,_0x45cc0c['id']]),(0x0,h[_0xb26ff7(0x3dd)])(()=>{const _0x3f7bc3=_0xb26ff7;let _0x47d47c=_0xf26d65['backgroundImage'];if(!_0x47d47c||_0x47d47c[_0x3f7bc3(0x109)]!==a[_0x3f7bc3(0x30b)]['UUID'])return;let _0x2f8c62=_0x5441a5[_0x3f7bc3(0x160)](_0x47d47c[_0x3f7bc3(0x23a)],_0x47d47c[_0x3f7bc3(0x109)]);if(_0x2f8c62!=null&&_0x2f8c62[_0x3f7bc3(0x133)])return;let _0x28e4a1=!0x0;return _0x5441a5['getImage'](_0x47d47c[_0x3f7bc3(0x23a)])[_0x3f7bc3(0xeb)](_0x5ec6c2=>{const _0x5e2a39=_0x3f7bc3;_0x28e4a1&&_0x208396({'source':_0x47d47c[_0x5e2a39(0x23a)],'value':_0x5ec6c2});})[_0x3f7bc3(0x29c)](()=>void 0x0),()=>{_0x28e4a1=!0x1;};},[_0xf26d65[_0xb26ff7(0x142)],_0x5441a5]);let _0x592b95=((_0x36fe75=_0xf26d65[_0xb26ff7(0x142)])==null?void 0x0:_0x36fe75[_0xb26ff7(0x109)])===a[_0xb26ff7(0x30b)][_0xb26ff7(0x19e)]?((_0x135781=_0x5441a5['getImageSourceCache'](_0xf26d65['backgroundImage'][_0xb26ff7(0x23a)],_0xf26d65[_0xb26ff7(0x142)][_0xb26ff7(0x109)]))==null?void 0x0:_0x135781[_0xb26ff7(0x133)])??((_0x4c5767==null?void 0x0:_0x4c5767['source'])===_0xf26d65['backgroundImage']['source']?_0x4c5767[_0xb26ff7(0x351)]:''):((_0x25f1e3=_0xf26d65['backgroundImage'])==null?void 0x0:_0x25f1e3[_0xb26ff7(0x23a)])??'',_0x2a9ddc=_0x45cc0c[_0xb26ff7(0x34e)][_0xb26ff7(0x11f)],_0x2e9ca0=_0x2a9ddc&&_0xb26ff7(0x4f1)in _0x2a9ddc?(_0x5789c8=_0x2a9ddc[_0xb26ff7(0x4f1)])==null?void 0x0:_0x5789c8[_0xb26ff7(0x3e2)]:void 0x0,_0x3a3b2d=ee((_0xe5c97c==null?void 0x0:_0xe5c97c[_0xb26ff7(0x455)])??'',_0x3747db,_0xf26d65),_0x2d2044=_0x45cc0c[_0xb26ff7(0x34e)][_0xb26ff7(0x103)],_0x37d4a9=_0x45cc0c['shapeData']['stroke'],_0x1e4b1f=_0x2e9ca0==null||(_0x4f001a=_0x2e9ca0[_0xb26ff7(0x230)])==null?void 0x0:_0x4f001a[_0xb26ff7(0x454)],_0x20a8de=_0x45cc0c[_0xb26ff7(0x323)]??_0x45cc0c[_0xb26ff7(0x26d)]??'';return(0x0,h[_0xb26ff7(0x3dd)])(()=>{const _0x3275ae=_0xb26ff7;let _0x567599=_0x2a21f1[_0x3275ae(0x216)],_0x22fd07=_0x3f41dd[_0x3275ae(0x216)];if(!_0x567599||!_0x22fd07)return;let _0x3dc163=()=>{const _0xb27701=_0x3275ae;if(_0xf26d65[_0xb27701(0xfc)]==='custom'||!_0x567599[_0xb27701(0xdc)]||!_0x567599['clientHeight']){_0x22fd07[_0xb27701(0x130)][_0xb27701(0x2c0)]=_0xf26d65[_0xb27701(0x2c0)]+'px';return;}let _0x8e94c1=0x1,_0x5dab43=0x48,_0x5796ff=_0x8e94c1;for(;_0x8e94c1<=_0x5dab43;){let _0x2f5c1c=Math['floor']((_0x8e94c1+_0x5dab43)/0x2);_0x22fd07[_0xb27701(0x130)][_0xb27701(0x2c0)]=_0x2f5c1c+'px',_0x22fd07[_0xb27701(0x13e)]<=_0x567599['clientWidth']&&_0x22fd07[_0xb27701(0x464)]<=_0x567599[_0xb27701(0x315)]?(_0x5796ff=_0x2f5c1c,_0x8e94c1=_0x2f5c1c+0x1):_0x5dab43=_0x2f5c1c-0x1;}_0x22fd07['style']['fontSize']=_0x5796ff+'px';};if(_0x3dc163(),typeof ResizeObserver>'u')return;let _0x47671f=new ResizeObserver(_0x3dc163);return _0x47671f[_0x3275ae(0x1f4)](_0x567599),()=>_0x47671f['disconnect']();},[_0xf26d65[_0xb26ff7(0x2c0)],_0xf26d65['fontSizeMode'],_0x3a3b2d]),(0x0,g[_0xb26ff7(0x38d)])(_0xb26ff7(0x460),{'data-dashboard-formula-shape':_0x45cc0c['id'],'className':_0xb26ff7(0x29e),'style':{'backgroundColor':((_0x5d9b51=_0x45cc0c[_0xb26ff7(0x434)])==null?void 0x0:_0x5d9b51[_0xb26ff7(0xe5)])??((_0x2d2044==null?void 0x0:_0x2d2044[_0xb26ff7(0x192)])===d['ShapeFillEnum'][_0xb26ff7(0x3ce)]?_0x2d2044[_0xb26ff7(0xdf)]??void 0x0:void 0x0),'border':(_0x37d4a9==null?void 0x0:_0x37d4a9[_0xb26ff7(0x19c)])===d[_0xb26ff7(0x260)][_0xb26ff7(0x3ee)]?(_0x37d4a9[_0xb26ff7(0x39e)]??0x1)+_0xb26ff7(0x3c1)+(_0x37d4a9[_0xb26ff7(0xdf)]??'currentColor'):void 0x0,'borderRadius':_0x45cc0c['shapeType']===d[_0xb26ff7(0x41c)][_0xb26ff7(0x30e)]?0xc:void 0x0,'color':((_0x5df078=_0x45cc0c['appearance'])==null?void 0x0:_0x5df078[_0xb26ff7(0x3de)])??(_0xe5c97c==null?void 0x0:_0xe5c97c[_0xb26ff7(0xdf)])??(_0x1e4b1f==null||(_0x2fd324=_0x1e4b1f['cl'])==null?void 0x0:_0x2fd324['rgb'])??void 0x0,'fontWeight':_0x1e4b1f!=null&&_0x1e4b1f['bl']?0x258:void 0x0,'textAlign':_0xf26d65[_0xb26ff7(0x121)]},'children':[_0x592b95&&(0x0,g['jsx'])(_0xb26ff7(0x1db),{'src':_0x592b95,'alt':'','aria-hidden':_0xb26ff7(0x445),'className':'univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','style':{'objectFit':((_0x21e482=_0xf26d65[_0xb26ff7(0x142)])==null?void 0x0:_0x21e482[_0xb26ff7(0x2d7)])??_0xb26ff7(0x225)}}),(0x0,g[_0xb26ff7(0x38d)])(_0xb26ff7(0x460),{'className':_0xb26ff7(0x248),'children':[_0x20a8de&&(0x0,g[_0xb26ff7(0x23f)])(_0xb26ff7(0x460),{'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':_0x20a8de}),(0x0,g[_0xb26ff7(0x23f)])('div',{'ref':_0x2a21f1,'data-dashboard-formula-value':!0x0,'aria-label':_0x20a8de||_0x5d6c4b['t'](_0xb26ff7(0x2bd)),'className':_0xb26ff7(0x113),'style':{'justifyContent':ne[_0xf26d65[_0xb26ff7(0x121)]]},'children':(0x0,g['jsx'])(_0xb26ff7(0x405),{'ref':_0x3f41dd,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0xf26d65[_0xb26ff7(0xfc)],'className':'univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','children':_0x3a3b2d})})]})]});}function N(_0x2e5562,_0xd44e31){return function(_0x46a84b,_0x40daf1){_0xd44e31(_0x46a84b,_0x40daf1,_0x2e5562);};}function P(_0x28d58e,_0x11d6ac,_0x47f021,_0x577dd0){const _0x388072=_0x30b590;var _0x4240b=arguments[_0x388072(0xf8)],_0x38cbf8=_0x4240b<0x3?_0x11d6ac:_0x577dd0===null?_0x577dd0=Object[_0x388072(0x4a3)](_0x11d6ac,_0x47f021):_0x577dd0,_0x2ea273;if(typeof Reflect==_0x388072(0x368)&&typeof Reflect['decorate']==_0x388072(0x411))_0x38cbf8=Reflect[_0x388072(0x237)](_0x28d58e,_0x11d6ac,_0x47f021,_0x577dd0);else{for(var _0x4ecedf=_0x28d58e[_0x388072(0xf8)]-0x1;_0x4ecedf>=0x0;_0x4ecedf--)(_0x2ea273=_0x28d58e[_0x4ecedf])&&(_0x38cbf8=(_0x4240b<0x3?_0x2ea273(_0x38cbf8):_0x4240b>0x3?_0x2ea273(_0x11d6ac,_0x47f021,_0x38cbf8):_0x2ea273(_0x11d6ac,_0x47f021))||_0x38cbf8);}return _0x4240b>0x3&&_0x38cbf8&&Object[_0x388072(0x1a7)](_0x11d6ac,_0x47f021,_0x38cbf8),_0x38cbf8;}let F=class{constructor(_0x40a2cc,_0x5d91f9,_0x1ad72e){const _0x487b0f=_0x30b590;this['_localeService']=_0x40a2cc,this[_0x487b0f(0x22a)]=_0x5d91f9,this['_renderModelManager']=_0x1ad72e;}['createDomChartInstance'](){const _0xad6651=_0x30b590;return this['_renderModelManager'][_0xad6651(0x4e9)](_[_0xad6651(0x189)]['Dom'],this['_createContext']());}['createRenderInput'](_0x13d0df){const _0x7cfaaf=_0x30b590;let _0x4ff40e=_0x13d0df[_0x7cfaaf(0x21c)][_0x7cfaaf(0x1ca)];if(!_0x4ff40e)throw Error(_0x7cfaaf(0x2b1)+_0x13d0df['chartId']+_0x7cfaaf(0x239));let _0x3b1283=this[_0x7cfaaf(0x218)][_0x7cfaaf(0x3fb)]();return{'config':_0x4ff40e,'style':(0x0,_['resolveChartRuntimeStyle'])({..._0x13d0df[_0x7cfaaf(0x21c)]['style'],'runtime':_0x13d0df['model'][_0x7cfaaf(0x3bf)](_0x3b1283),'direction':_0x3b1283},_0x4ff40e[_0x7cfaaf(0x11c)])};}[_0x30b590(0x170)](){const _0x10813c=_0x30b590;return{'resolveHostStyle':({style:_0x28c5c0})=>(0x0,_['resolveDefaultChartHostFrameStyle'])({'style':_0x28c5c0,'getRenderColor':_0x34eb78=>this[_0x10813c(0x22a)][_0x10813c(0x476)](_0x34eb78)}),'resolveRenderBackgroundColor':({hostStyle:_0x272edb})=>_0x272edb[_0x10813c(0x103)]};}};F=P([N(0x0,(0x0,a[_0x30b590(0x123)])(a[_0x30b590(0x3ea)])),N(0x1,(0x0,a['Inject'])(_[_0x30b590(0x111)])),N(0x2,_['IChartRenderModelManagerService'])],F);function I(_0x4757a5,_0x10b9fc){const _0x16c570=_0x30b590;var _0xed5c7;_0x4757a5[_0x16c570(0x130)][_0x16c570(0xe5)]=_0x10b9fc[_0x16c570(0x103)]??_0x16c570(0x381),_0x4757a5[_0x16c570(0x130)][_0x16c570(0x45f)]=(_0xed5c7=_0x10b9fc['border'])!=null&&_0xed5c7[_0x16c570(0xdf)]&&_0x10b9fc['border']['width']?_0x10b9fc[_0x16c570(0x45f)]['width']+_0x16c570(0x3c1)+_0x10b9fc[_0x16c570(0x45f)][_0x16c570(0xdf)]:'',_0x4757a5[_0x16c570(0x130)][_0x16c570(0xd4)]=_0x10b9fc['radius']?_0x10b9fc['radius']+'px':'',_0x4757a5[_0x16c570(0x130)][_0x16c570(0x157)]=_0x16c570(0x2dd),_0x4757a5['style'][_0x16c570(0x139)]=_0x16c570(0x331);}function L(_0x3c44c1){'@babel/helpers - typeof';const _0xb292b4=_0x30b590;return L=typeof Symbol==_0xb292b4(0x411)&&typeof Symbol[_0xb292b4(0x289)]=='symbol'?function(_0x9b7bee){return typeof _0x9b7bee;}:function(_0x56f93a){const _0x4bcab0=_0xb292b4;return _0x56f93a&&typeof Symbol=='function'&&_0x56f93a[_0x4bcab0(0x11a)]===Symbol&&_0x56f93a!==Symbol[_0x4bcab0(0x2e8)]?_0x4bcab0(0x29a):typeof _0x56f93a;},L(_0x3c44c1);}function R(_0x5e1fba,_0x11a4ce){const _0x1d72b6=_0x30b590;if(L(_0x5e1fba)!=_0x1d72b6(0x368)||!_0x5e1fba)return _0x5e1fba;var _0x3e46fa=_0x5e1fba[Symbol[_0x1d72b6(0x17b)]];if(_0x3e46fa!==void 0x0){var _0x5adfab=_0x3e46fa[_0x1d72b6(0x486)](_0x5e1fba,_0x11a4ce||_0x1d72b6(0x1df));if(L(_0x5adfab)!=_0x1d72b6(0x368))return _0x5adfab;throw TypeError(_0x1d72b6(0x44c));}return(_0x11a4ce===_0x1d72b6(0x1e8)?String:Number)(_0x5e1fba);}function z(_0x2f3fe5){const _0xf3aa40=_0x30b590;var _0x2e17d7=R(_0x2f3fe5,_0xf3aa40(0x1e8));return L(_0x2e17d7)==_0xf3aa40(0x29a)?_0x2e17d7:_0x2e17d7+'';}function B(_0x2b367b,_0x3e435f,_0x4f9725){const _0x5eb4b3=_0x30b590;return(_0x3e435f=z(_0x3e435f))in _0x2b367b?Object[_0x5eb4b3(0x1a7)](_0x2b367b,_0x3e435f,{'value':_0x4f9725,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2b367b[_0x3e435f]=_0x4f9725,_0x2b367b;}var V=class extends a[_0x30b590(0x35a)]{constructor(_0x3bfacb,_0x182e1b){const _0x589cc4=_0x30b590;super(),this[_0x589cc4(0x2a7)]=_0x3bfacb,this[_0x589cc4(0x24d)]=_0x182e1b,B(this,_0x589cc4(0x3e5),_[_0x589cc4(0x189)][_0x589cc4(0x2a6)]);}[_0x30b590(0x2bf)](){const _0x24facb=_0x30b590;return{'width':Math[_0x24facb(0x26a)](0x1,this[_0x24facb(0x24d)][_0x24facb(0xdc)]),'height':Math[_0x24facb(0x26a)](0x1,this[_0x24facb(0x24d)][_0x24facb(0x315)])};}[_0x30b590(0x456)](_0x4434c4){const _0x2a5668=_0x30b590;I(this[_0x2a5668(0x24d)],_0x4434c4);}async['ensureMount'](){const _0x5261c1=_0x30b590;return this[_0x5261c1(0x24d)];}['checkMounted'](){const _0x2c4f82=_0x30b590;return this[_0x2c4f82(0x24d)][_0x2c4f82(0x4ed)];}[_0x30b590(0x2ee)](){}[_0x30b590(0x143)](){}[_0x30b590(0x13c)](){}};function re({isRowDirection:_0x35a10d,runtime:_0x173546}){const _0x288947=_0x30b590;let _0x5ac912=(0x0,h[_0x288947(0x414)])(null),_0x24af15=(0x0,m[_0x288947(0x155)])(a['LocaleService']),_0x440244=(0x0,m['useDependency'])(a[_0x288947(0x325)]),_0x40ca81=(0x0,m['useDependency'])(F),_0x1f69da=(0x0,m[_0x288947(0x155)])(a['ThemeService']);return(0x0,h[_0x288947(0x3dd)])(()=>{const _0x4cbef8=_0x288947;let _0x382f96=_0x5ac912[_0x4cbef8(0x216)];if(!_0x382f96)return;_0x382f96[_0x4cbef8(0x25f)]();let {chartId:_0x47f710,model:_0x45e37d}=_0x173546,_0x257d6b=_0x45e37d['dataSource'],_0x23a5a0=new V(_0x47f710,_0x382f96),_0x554e72=_0x40ca81[_0x4cbef8(0x3f4)](),_0x4093dd=!0x1,_0x552072=null,_0x313004=null,_0x731dcd=null,_0x2e6253=null,_0x468750=!0x1,_0x265147=!0x1,_0x5d0400=Promise[_0x4cbef8(0x2cb)]();_0x554e72[_0x4cbef8(0x26e)](_0x23a5a0);let _0x4d8dc3=()=>{const _0x490529=_0x4cbef8;var _0x30a448,_0x5842dc,_0x2ee15b,_0x1dff99;if(document[_0x490529(0x220)]===_0x490529(0x2dd)||(_0x30a448=(_0x5842dc=window)[_0x490529(0x20c)])!=null&&(_0x30a448=_0x30a448[_0x490529(0x486)](_0x5842dc,'(prefers-reduced-motion:\x20reduce)'))!=null&&_0x30a448[_0x490529(0x284)]||(_0x2ee15b=(_0x1dff99=window)['matchMedia'])!=null&&(_0x2ee15b=_0x2ee15b['call'](_0x1dff99,'print'))!=null&&_0x2ee15b['matches']||!_0x382f96['isConnected'])return!0x1;let _0x3622d7=_0x382f96[_0x490529(0x118)]();return _0x3622d7['width']>0x0&&_0x3622d7[_0x490529(0x339)]>0x0&&_0x3622d7[_0x490529(0x2f1)]>0x0&&_0x3622d7['bottom']>0x0&&_0x3622d7[_0x490529(0x362)]<window[_0x490529(0x2c3)]&&_0x3622d7[_0x490529(0x291)]<window[_0x490529(0x442)];},_0x25bcb7=()=>{const _0x5747f1=_0x4cbef8;_0x313004!==null&&clearTimeout(_0x313004),_0x382f96['dataset'][_0x5747f1(0x4bc)]='true',_0x382f96['dataset'][_0x5747f1(0x2fd)]=String(_[_0x5747f1(0x116)]),_0x313004=setTimeout(()=>{const _0x4eba52=_0x5747f1;_0x313004=null,delete _0x382f96[_0x4eba52(0x409)]['baseChartDataAnimation'],delete _0x382f96['dataset']['baseChartDataAnimationDuration'];},_[_0x5747f1(0x116)]);},_0xcf295e=(0x0,a[_0x4cbef8(0x2bc)])(()=>{const _0x2baa28=_0x4cbef8;if(_0x4093dd||(_0x552072!==null&&(clearTimeout(_0x552072),_0x552072=null),!_0x45e37d['config']))return;let _0x2219fa=_0x265147;_0x265147=!0x1,_0x382f96[_0x2baa28(0x409)]['chartType']=String(_0x45e37d[_0x2baa28(0x1ef)]),_0x382f96['dataset'][_0x2baa28(0x450)]=String(_0x35a10d);let _0x5c7e3e=_0x40ca81[_0x2baa28(0x1c6)](_0x173546),_0x3602a1={'chartId':_0x47f710,'config':_0x5c7e3e['config'],'style':_0x5c7e3e[_0x2baa28(0x130)]};_0x5d0400=_0x5d0400[_0x2baa28(0xeb)](async()=>{const _0x3c1e77=_0x2baa28;_0x4093dd||(_0x382f96[_0x3c1e77(0x409)][_0x3c1e77(0x3bd)]=String(Number(_0x382f96[_0x3c1e77(0x409)][_0x3c1e77(0x3bd)]??0x0)+0x1),_0x2219fa&&_0x731dcd&&_0x554e72[_0x3c1e77(0x293)]&&_0x4d8dc3()?(await _0x554e72[_0x3c1e77(0x293)](_0x731dcd,_0x3602a1,{'duration':_['CHART_DATA_UPDATE_ANIMATION_DURATION']}),_0x4093dd||_0x25bcb7()):await _0x554e72['render'](_0x3602a1),_0x731dcd=_0x3602a1);})[_0x2baa28(0x29c)](_0x1e69be=>_0x440244[_0x2baa28(0x305)](_0x2baa28(0x3b8),_0x1e69be));},0x64,{'leading':!0x0,'trailing':!0x0,'maxWait':0x64}),_0x4e0bce=(_0x41f26f=!0x1)=>{_0x265147||=_0x41f26f,!_0x468750&&(_0x468750=!0x0,queueMicrotask(()=>{_0x468750=!0x1,_0x4093dd||_0xcf295e();}));},_0x50d6db=[_0x257d6b['data$']['subscribe'](_0x33e875=>{const _0x513a23=_0x4cbef8;let _0x2bf9b3=JSON[_0x513a23(0x198)](_0x33e875);_0x2e6253!=null&&_0x2e6253!==_0x2bf9b3&&_0x4e0bce(!0x0),_0x2e6253=_0x2bf9b3;}),_0x45e37d[_0x4cbef8(0x404)][_0x4cbef8(0x179)](_0x2cf2c8=>{_0x2cf2c8&&_0x4e0bce();}),_0x45e37d[_0x4cbef8(0x3b0)][_0x4cbef8(0x179)](()=>_0x4e0bce()),_0x24af15[_0x4cbef8(0x2e9)][_0x4cbef8(0x179)](()=>_0x4e0bce()),(0x0,c['combineLatest'])([_0x1f69da[_0x4cbef8(0x317)],_0x1f69da[_0x4cbef8(0x16c)]])[_0x4cbef8(0x26c)]((0x0,c[_0x4cbef8(0xee)])(0x1))['subscribe'](()=>_0x4e0bce())],_0x18dc96=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x3d59f8=_0x4cbef8;_0x4093dd||(_0x23a5a0[_0x3d59f8(0x2ee)](),_0x552072!==null&&clearTimeout(_0x552072),_0x552072=setTimeout(()=>_0x4e0bce(),0x64));});return _0x18dc96==null||_0x18dc96[_0x4cbef8(0x1f4)](_0x382f96),()=>{const _0x5f54ae=_0x4cbef8;_0x4093dd=!0x0,_0xcf295e['cancel'](),_0x552072!==null&&clearTimeout(_0x552072),_0x313004!==null&&clearTimeout(_0x313004),delete _0x382f96[_0x5f54ae(0x409)][_0x5f54ae(0x4bc)],delete _0x382f96[_0x5f54ae(0x409)]['baseChartDataAnimationDuration'],_0x18dc96==null||_0x18dc96[_0x5f54ae(0x1b6)](),_0x50d6db[_0x5f54ae(0x1f8)](_0x17df87=>_0x17df87[_0x5f54ae(0x344)]()),_0x554e72[_0x5f54ae(0x45b)](),_0x23a5a0[_0x5f54ae(0x45b)](),_0x382f96[_0x5f54ae(0x25f)]();};},[_0x35a10d,_0x24af15,_0x440244,_0x40ca81,_0x173546,_0x1f69da]),(0x0,g['jsx'])(_0x288947(0x460),{'ref':_0x5ac912,'data-u-comp':_0x288947(0x354),'className':_0x288947(0x3fa)});}function ie({filters:_0x55f617,onRuntimeChange:_0x16a66c,unitId:_0x3f809,widget:_0x50e8a7}){const _0x4e311b=_0x30b590;let _0x1959fc=(0x0,m[_0x4e311b(0x155)])(a[_0x4e311b(0x245)]),_0x1409f9=(0x0,m[_0x4e311b(0x155)])(a[_0x4e311b(0x3ea)]),_0x3a6a09=(0x0,m['useDependency'])(a['ILogService']),_0x46f5ba=(0x0,m[_0x4e311b(0x155)])(e[_0x4e311b(0x4b6)]),[_0x4e0531,_0x34a0b5]=(0x0,h[_0x4e311b(0x40a)])(null),[_0x5b4e2b,_0x140150]=(0x0,h['useState'])(!0x1),[_0xbd85da,_0xd7c770]=(0x0,h[_0x4e311b(0x40a)])(null),_0x431352=(0x0,h[_0x4e311b(0x414)])(_0x4e311b(0x41b)+(0x0,a[_0x4e311b(0x3f8)])(0x8)),_0x58a98d=_0x1959fc[_0x4e311b(0x3e7)](_0x3f809,a['UniverInstanceType'][_0x4e311b(0x1a2)]),_0xc2f696=_0x58a98d==null?void 0x0:_0x58a98d[_0x4e311b(0x38b)]()[_0x4e311b(0x4fe)][_0x50e8a7[_0x4e311b(0x3d3)]],_0x2c63c3=_0xc2f696==null?void 0x0:_0xc2f696['views'][_0x50e8a7['pivotViewId']],_0x311eba=H(_0x2c63c3);if((0x0,h['useEffect'])(()=>{const _0x575c79=_0x4e311b;if(!_0x311eba)return;let _0x396b92=_0x431352['current'];return _0x46f5ba[_0x575c79(0x418)](_0x396b92,{'unitId':_0x3f809,'tableId':_0x50e8a7[_0x575c79(0x3d3)],'viewId':_0x50e8a7[_0x575c79(0x247)],'filters':[]}),()=>{const _0x5137d6=_0x575c79;_0x46f5ba[_0x5137d6(0x275)](_0x3f809,_0x396b92),_0x16a66c==null||_0x16a66c(_0x50e8a7['id'],null);};},[_0x311eba,_0x16a66c,_0x46f5ba,_0x3f809,_0x50e8a7['id'],_0x50e8a7[_0x4e311b(0x247)],_0x50e8a7[_0x4e311b(0x3d3)]]),(0x0,h[_0x4e311b(0x3dd)])(()=>{const _0x3fad1d=_0x4e311b;if(!H(_0x2c63c3))return;let _0x2c8960=!0x0,_0x5be680=_0x50e8a7[_0x3fad1d(0xd9)]??_0x2c63c3['config'][_0x3fad1d(0xd9)],_0x1a6783={'unitId':_0x3f809,'tableId':_0x50e8a7[_0x3fad1d(0x3d3)],'viewId':_0x50e8a7[_0x3fad1d(0x247)],'filters':[_0x2c63c3[_0x3fad1d(0x141)]??null,..._0x55f617]};return _0x46f5ba['refreshChartRuntime'](_0x3f809,_0x431352['current'],_0x1a6783,_0x5be680)['then'](_0x13705d=>{const _0x54a900=_0x3fad1d;if(!_0x2c8960||!_0x13705d)return;let _0x37b169=_0x46f5ba[_0x54a900(0x224)](_0x3f809,_0x431352[_0x54a900(0x216)])??null;_0x34a0b5(_0x13705d),_0xd7c770(_0x37b169),_0x140150(!0x1),_0x16a66c==null||_0x16a66c(_0x50e8a7['id'],_0x37b169);})['catch'](_0x150880=>{const _0x5cf850=_0x3fad1d;_0x3a6a09[_0x5cf850(0x305)](_0x5cf850(0x32b),_0x150880),_0x2c8960&&(_0x34a0b5(null),_0x140150(!0x0));}),()=>{_0x2c8960=!0x1;};},[_0x55f617,_0x3a6a09,_0x16a66c,_0x46f5ba,_0x3f809,_0x2c63c3,_0x50e8a7['chart'],_0x50e8a7['id'],_0x50e8a7[_0x4e311b(0x247)],_0x50e8a7[_0x4e311b(0x3d3)]]),!H(_0x2c63c3))return(0x0,g[_0x4e311b(0x23f)])(_0x4e311b(0x460),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','children':_0x1409f9['t'](_0x4e311b(0x4b1))});let _0x70e520=_0x46f5ba[_0x4e311b(0x224)](_0x3f809,_0x431352['current'])===_0xbd85da?_0xbd85da:null;return _0x4e0531&&_0x70e520?(0x0,g[_0x4e311b(0x23f)])(re,{'isRowDirection':(0x0,e[_0x4e311b(0xe7)])((_0x50e8a7[_0x4e311b(0xd9)]??_0x2c63c3[_0x4e311b(0x1ca)][_0x4e311b(0xd9)])[_0x4e311b(0x3a2)]),'runtime':_0x70e520}):(0x0,g[_0x4e311b(0x23f)])(_0x4e311b(0x460),{'className':_0x4e311b(0x197),'children':_0x1409f9['t'](_0x5b4e2b?'bases-dashboard-ui.pivot.calculationFailed':_0x4e311b(0x3f2))});}function H(_0x4865b6){const _0x32e6ed=_0x30b590;return(_0x4865b6==null?void 0x0:_0x4865b6[_0x32e6ed(0x11c)])===a['BaseViewType'][_0x32e6ed(0x2d0)]&&typeof _0x4865b6[_0x32e6ed(0x1ca)]==_0x32e6ed(0x368)&&_0x4865b6['config']!==null&&_0x32e6ed(0x258)in _0x4865b6['config']&&_0x32e6ed(0xd9)in _0x4865b6[_0x32e6ed(0x1ca)];}const ae={'alignment':_0x30b590(0x362),'fontSize':0x12,'fontSizeMode':_0x30b590(0x337)};function oe(_0x414a16){return{...ae,..._0x414a16['appearance']};}function U(_0x50a34c){const _0x5837b5=_0x30b590;var _0x8df60a;return((_0x8df60a=_0x50a34c[_0x5837b5(0x3ed)])==null?void 0x0:_0x8df60a[_0x5837b5(0x2ad)]['replace'](/\r\n$/,'')[_0x5837b5(0x426)](/\r/g,'\x0a'))??'';}function se(_0x489ab8,_0x5740bc){const _0x48b874=_0x30b590;var _0x45305f;let _0x37cc1a=_0x5740bc['replace'](/\r\n|\r/g,'\x0a')[_0x48b874(0x448)]('\x0a'),_0x554e3a=_0x37cc1a[_0x48b874(0x1f0)]('\x0d')+'\x0d\x0a',_0x3be3ec=((_0x45305f=_0x489ab8[_0x48b874(0x3ed)])==null?void 0x0:_0x45305f[_0x48b874(0x3a5)])??[],_0x44a6ca=new Set(_0x3be3ec[_0x48b874(0x48a)](_0x1fccaa=>_0x1fccaa[_0x48b874(0x2d6)])),_0x3c0151=0x0,_0x4b6b70=_0x37cc1a['map']((_0xaaf58c,_0xb131f8)=>{const _0x5c0bb4=_0x48b874;_0x3c0151+=_0xaaf58c['length'];let _0x5d30e6={..._0x3be3ec[_0xb131f8]??{'startIndex':_0x3c0151,'paragraphId':(0x0,a[_0x5c0bb4(0x13f)])(_0x44a6ca)},'startIndex':_0x3c0151};return _0x3c0151+=0x1,_0x5d30e6;});return{..._0x489ab8,'body':{..._0x489ab8[_0x48b874(0x3ed)],'dataStream':_0x554e3a,'paragraphs':_0x4b6b70,'textRuns':[]}};}function ce({widget:_0x9d023e}){const _0x30564b=_0x30b590;let _0x833f5f=(0x0,m[_0x30564b(0x155)])(a[_0x30564b(0x46a)]),_0x31d684=(0x0,m[_0x30564b(0x155)])(a['LocaleService']),_0x2c89d5=(0x0,m[_0x30564b(0xe2)])(()=>_0x833f5f[_0x30564b(0x317)],_0x833f5f[_0x30564b(0x14e)](),!0x1,[_0x833f5f]),_0x2a019a=(0x0,h[_0x30564b(0x414)])(null),_0x37e919=(0x0,h[_0x30564b(0x414)])(null),_0x457388=oe(_0x9d023e),_0xff501=_0x457388[_0x30564b(0xe5)]??_0x2c89d5[_0x30564b(0x4bb)][0x0],_0x40c422=_0x457388[_0x30564b(0x3de)]??_0x2c89d5[_0x30564b(0x4bb)][0x3e8],_0x232482=U(_0x9d023e[_0x30564b(0x45d)]);return(0x0,h[_0x30564b(0x3dd)])(()=>{const _0x2e812b=_0x30564b;let _0x5d32b9=_0x2a019a[_0x2e812b(0x216)],_0x411a1f=_0x37e919['current'];if(!_0x5d32b9||!_0x411a1f)return;let _0x48e604=()=>{const _0x23fd18=_0x2e812b;if(_0x457388['fontSizeMode']===_0x23fd18(0x3f1)||!_0x5d32b9[_0x23fd18(0xdc)]||!_0x5d32b9['clientHeight']){_0x411a1f[_0x23fd18(0x130)][_0x23fd18(0x2c0)]=_0x457388[_0x23fd18(0x2c0)]+'px';return;}let _0x2cb17f=0x8,_0x33b6c8=0x48,_0x57312c=_0x2cb17f;for(;_0x2cb17f<=_0x33b6c8;){let _0x4b2150=Math[_0x23fd18(0x296)]((_0x2cb17f+_0x33b6c8)/0x2);_0x411a1f[_0x23fd18(0x130)]['fontSize']=_0x4b2150+'px',_0x411a1f['scrollWidth']<=_0x5d32b9[_0x23fd18(0xdc)]&&_0x411a1f[_0x23fd18(0x464)]<=_0x5d32b9[_0x23fd18(0x315)]?(_0x57312c=_0x4b2150,_0x2cb17f=_0x4b2150+0x1):_0x33b6c8=_0x4b2150-0x1;}_0x411a1f[_0x23fd18(0x130)][_0x23fd18(0x2c0)]=_0x57312c+'px';};if(_0x48e604(),typeof ResizeObserver>'u')return;let _0x136cf9=new ResizeObserver(_0x48e604);return _0x136cf9['observe'](_0x5d32b9),()=>_0x136cf9[_0x2e812b(0x1b6)]();},[_0x457388[_0x30564b(0x2c0)],_0x457388[_0x30564b(0xfc)],_0x232482]),(0x0,g[_0x30564b(0x23f)])(_0x30564b(0x460),{'data-dashboard-text-widget':_0x9d023e['id'],'className':_0x30564b(0x207),'style':{'backgroundColor':_0xff501,'color':_0x40c422},'children':(0x0,g[_0x30564b(0x23f)])('div',{'ref':_0x2a019a,'data-dashboard-text-content':!0x0,'aria-label':_0x31d684['t'](_0x30564b(0x3b6)),'className':_0x30564b(0x474),'children':(0x0,g[_0x30564b(0x23f)])(_0x30564b(0x460),{'ref':_0x37e919,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0x457388['fontSizeMode'],'className':_0x30564b(0x2f8),'style':{'textAlign':_0x457388[_0x30564b(0x121)]},'children':_0x232482})})});}function le({dashboard:_0x594813,editable:_0x253f7f=!0x0,onSelectWidget:_0x4b45bc,renderWidget:_0x21e152,renderWidgetActions:_0x126147,selectedWidgetId:_0x35fd09,widgetLabel:_0x3f9078}){const _0x55de5b=_0x30b590;return(0x0,g['jsx'])(_0x55de5b(0x460),{'data-dashboard-scroll-container':!0x0,'className':(0x0,f['clsx'])('univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950',f[_0x55de5b(0x166)]),'onClick':_0x253f7f?_0x88dc1=>{const _0x36c6d1=_0x55de5b;if(!(_0x88dc1[_0x36c6d1(0x12d)]instanceof Node)||!_0x88dc1[_0x36c6d1(0x408)][_0x36c6d1(0x433)](_0x88dc1['target']))return;let _0x461ed7=_0x88dc1[_0x36c6d1(0x12d)]instanceof Element?_0x88dc1[_0x36c6d1(0x12d)]:_0x88dc1[_0x36c6d1(0x12d)][_0x36c6d1(0x311)];_0x461ed7!=null&&_0x461ed7[_0x36c6d1(0x372)](_0x36c6d1(0x3a1))||_0x4b45bc==null||_0x4b45bc();}:void 0x0,'children':(0x0,g[_0x55de5b(0x23f)])(_0x55de5b(0x460),{'data-dashboard-grid':!0x0,'className':'univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','children':_0x594813['widgetOrder'][_0x55de5b(0x48a)](_0x5f32d5=>{const _0x2e348c=_0x55de5b;let _0x4a7673=_0x594813[_0x2e348c(0x110)][_0x5f32d5];if(!_0x4a7673)return null;let _0x44bb91=Math[_0x2e348c(0x26a)](0xb4,_0x4a7673[_0x2e348c(0x122)]['rowSpan']*e[_0x2e348c(0xfd)]);return(0x0,g['jsxs'])('article',{'data-dashboard-widget':_0x4a7673['id'],'aria-label':_0x4a7673[_0x2e348c(0x26d)]??_0x3f9078(_0x4a7673),'className':(0x0,f[_0x2e348c(0x373)])('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',_0x4a7673[_0x2e348c(0x11c)]===e[_0x2e348c(0x1e4)][_0x2e348c(0x108)]||_0x4a7673[_0x2e348c(0x11c)]===e[_0x2e348c(0x1e4)]['FormulaShape']?_0x2e348c(0x39f):'univer-bg-gray-0\x20dark:!univer-bg-gray-900',_0x253f7f&&_0x35fd09===_0x4a7673['id']?_0x2e348c(0x2ea):_0x2e348c(0x389)),'style':{'minHeight':_0x44bb91,'height':_0x44bb91},'tabIndex':_0x253f7f?0x0:void 0x0,'onClick':_0x253f7f?()=>_0x4b45bc==null?void 0x0:_0x4b45bc(_0x4a7673['id']):void 0x0,'onFocus':_0x253f7f?()=>_0x4b45bc==null?void 0x0:_0x4b45bc(_0x4a7673['id']):void 0x0,'children':[_0x253f7f&&(0x0,g['jsx'])('div',{'className':_0x2e348c(0x3d0),'children':_0x126147==null?void 0x0:_0x126147(_0x4a7673)}),(0x0,g[_0x2e348c(0x23f)])(_0x2e348c(0x460),{'className':_0x2e348c(0x412),'children':_0x21e152(_0x4a7673)})]},_0x4a7673['id']);})})});}let W=class extends n[_0x30b590(0x25d)]{constructor(_0x16eb24){const _0x52ea6a=_0x30b590;super(_0x16eb24),B(this,_0x52ea6a(0x19d),null);}['executeChartUpdateConfig'](_0x41883c){}};W=P([N(0x0,(0x0,a[_0x30b590(0x123)])(n[_0x30b590(0x3ff)]))],W);function ue({children:_0x1e01d6}){const _0x55dd46=_0x30b590;return(0x0,g['jsx'])(n[_0x55dd46(0x243)],{'children':_0x1e01d6});}function G(_0x54c6be){const _0x217c5e=_0x30b590;return(0x0,g[_0x217c5e(0x23f)])(f['MobileSelect'],{..._0x54c6be});}function de(_0x2a9bda){const _0x42e08c=_0x30b590;return(0x0,g[_0x42e08c(0x23f)])(f[_0x42e08c(0x4cf)],{..._0x2a9bda});}function fe(_0x1c589a){const _0x4d1669=_0x30b590;return(0x0,g[_0x4d1669(0x23f)])(f[_0x4d1669(0x399)],{..._0x1c589a});}var pe;const K={'axis':{...n[_0x30b590(0x33e)],'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':n[_0x30b590(0x2c7)],'heatmap':n[_0x30b590(0xfa)],'indicatorLine':n['DEFAULT_CHART_INDICATOR_LINE_VALUES'],'legend':n[_0x30b590(0x361)],'lineAndArea':n[_0x30b590(0x1f3)],'pareto':n['DEFAULT_CHART_PARETO_VALUES'],'pie':n[_0x30b590(0x4e8)],'radar':n['DEFAULT_CHART_RADAR_VALUES'],'relation':{...n[_0x30b590(0x44b)],'useValueAsSymbolSize':!0x0},'series':{...n['DEFAULT_CHART_SERIES_VALUES'],'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((pe=_[_0x30b590(0x177)][_0x30b590(0x45c)])==null?void 0x0:pe['rightYAxis'])??!0x1}},'style':n[_0x30b590(0x233)],'titles':n[_0x30b590(0x1e6)],'trendline':n[_0x30b590(0x1fc)],'waterfall':{...n[_0x30b590(0x306)],'useSubtotal':!0x0},'waterfallStyle':n['DEFAULT_CHART_WATERFALL_STYLE_VALUES'],'wordCloud':n['DEFAULT_CHART_WORD_CLOUD_VALUES']},me=[_[_0x30b590(0x1f6)][_0x30b590(0x266)],_[_0x30b590(0x1f6)][_0x30b590(0x14c)],_[_0x30b590(0x1f6)][_0x30b590(0x300)],_[_0x30b590(0x1f6)]['Scatter'],_[_0x30b590(0x1f6)]['Funnel'],_[_0x30b590(0x1f6)][_0x30b590(0x4a6)],_[_0x30b590(0x1f6)][_0x30b590(0x223)],_[_0x30b590(0x1f6)]['Heatmap'],_[_0x30b590(0x1f6)]['Boxplot'],_[_0x30b590(0x1f6)][_0x30b590(0x42b)],_['ChartTypeBits']['Histogram'],_[_0x30b590(0x1f6)]['Treemap'],_[_0x30b590(0x1f6)][_0x30b590(0x2b0)],_['ChartTypeBits']['Gauge'],_[_0x30b590(0x1f6)][_0x30b590(0xd5)]];function he(_0x1b88b2){const _0x1b1ad1=_0x30b590;let {config:_0x5f2e0e,onChange:_0x3021b1,runtime:_0x11ebab,tableName:_0x5e2d02}=_0x1b88b2,_0x59b0f0=(0x0,m[_0x1b1ad1(0x155)])(W),_0xf95458=(0x0,m[_0x1b1ad1(0x155)])(a['LocaleService']),[_0x483fb3,_0x3d4348]=(0x0,h[_0x1b1ad1(0x40a)])(n[_0x1b1ad1(0x487)][_0x1b1ad1(0x1d6)]),_0x3c7996=(0x0,h[_0x1b1ad1(0x2c1)])(()=>new n[(_0x1b1ad1(0x424))](_0x11ebab[_0x1b1ad1(0x21c)],{'commit':_0x1c108f=>{const _0x4629f7=_0x1b1ad1;var _0x3c9410;let _0x10c5b8=_0x11ebab[_0x4629f7(0x21c)],_0x1ea90d=(0x0,_['toChartModelUpdate'])(_0x1c108f,{'series':(_0x3c9410=_0x10c5b8['config'])==null?void 0x0:_0x3c9410[_0x4629f7(0x392)],'currentChartType':_0x10c5b8[_0x4629f7(0x1ef)],'currentStyle':_0x10c5b8['style'],'currentContext':_0x10c5b8[_0x4629f7(0x316)],'currentDataAggregation':_0x10c5b8[_0x4629f7(0x2d2)]});_0x3021b1({'chart':ge(_0x5f2e0e[_0x4629f7(0xd9)],_0x1ea90d)});}}),[_0x5f2e0e[_0x1b1ad1(0xd9)],_0x3021b1,_0x11ebab]),_0x373df2=(0x0,h[_0x1b1ad1(0x2c1)])(()=>(0x0,n[_0x1b1ad1(0x2ba)])(n[_0x1b1ad1(0x1f2)][_0x1b1ad1(0x48a)](_0x1fbe45=>({..._0x1fbe45,'label':_0xf95458['t'](be(_0x1fbe45[_0x1b1ad1(0x407)]))}))),[_0xf95458]);return(0x0,g[_0x1b1ad1(0x23f)])(n[_0x1b1ad1(0x428)],{'chartUIService':_0x59b0f0,'hostAdapter':_0x3c7996,'children':(0x0,g[_0x1b1ad1(0x38d)])(_0x1b1ad1(0x460),{'className':_0x1b1ad1(0x2ff),'children':[(0x0,g[_0x1b1ad1(0x23f)])(n[_0x1b1ad1(0x22f)],{'ariaLabel':_0xf95458['t'](_0x1b1ad1(0x14f)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0xf95458['t'](_0x1b1ad1(0x3ef)),'panelId':'base-pivot-chart-setup','value':n[_0x1b1ad1(0x487)][_0x1b1ad1(0x1d6)]},{'label':_0xf95458['t'](_0x1b1ad1(0x2ca)),'panelId':_0x1b1ad1(0x4bf),'value':n[_0x1b1ad1(0x487)][_0x1b1ad1(0x470)]}],'value':_0x483fb3,'onChange':_0x3d4348}),_0x483fb3===n[_0x1b1ad1(0x487)]['Data']?(0x0,g[_0x1b1ad1(0x23f)])(n['ChartEditPanel'],{'id':_0x1b1ad1(0x3c3),'label':_0xf95458['t'](_0x1b1ad1(0x3ef)),'children':(0x0,g[_0x1b1ad1(0x38d)])(_0x1b1ad1(0x460),{'className':_0x1b1ad1(0x2ae),'children':[(0x0,g['jsx'])(n['ChartTypeField'],{'options':_0x373df2}),(0x0,g['jsx'])(n['ChartTypeSpecificSetupSection'],{}),(0x0,g[_0x1b1ad1(0x23f)])(n[_0x1b1ad1(0x26f)],{}),(0x0,g[_0x1b1ad1(0x23f)])(_e,{}),(0x0,g[_0x1b1ad1(0x23f)])(n['ChartStackField'],{}),(0x0,g[_0x1b1ad1(0x38d)])('div',{'children':[(0x0,g[_0x1b1ad1(0x23f)])(n['ChartEditBlockTitle'],{'title':_0xf95458['t'](_0x1b1ad1(0x140))}),(0x0,g[_0x1b1ad1(0x23f)])(f[_0x1b1ad1(0x104)],{'disabled':!0x0,'value':_0x5e2d02})]}),(0x0,g[_0x1b1ad1(0x23f)])(n[_0x1b1ad1(0x46e)],{'orientationControl':(0x0,g[_0x1b1ad1(0x23f)])(f['Button'],{'size':_0x1b1ad1(0x301),'onClick':()=>_0x3021b1({'chart':{..._0x5f2e0e[_0x1b1ad1(0xd9)],'orient':_0x5f2e0e[_0x1b1ad1(0xd9)][_0x1b1ad1(0x3a2)]===_0x1b1ad1(0x15e)?'column':_0x1b1ad1(0x15e)}}),'children':_0xf95458['t'](_0x1b1ad1(0x4eb))})}),(0x0,g[_0x1b1ad1(0x23f)])(n[_0x1b1ad1(0x208)],{}),(0x0,g[_0x1b1ad1(0x23f)])(n[_0x1b1ad1(0x24e)],{'defaultValues':K['waterfall']}),(0x0,g['jsxs'])(_0x1b1ad1(0x460),{'children':[(0x0,g[_0x1b1ad1(0x23f)])(n[_0x1b1ad1(0x2a1)],{'title':_0xf95458['t'](_0x1b1ad1(0x383))}),(0x0,g[_0x1b1ad1(0x23f)])(G,{'value':_0x5f2e0e[_0x1b1ad1(0x10e)],'options':[{'value':_0x1b1ad1(0x23b),'label':_0xf95458['t'](_0x1b1ad1(0x270))},{'value':'chart','label':_0xf95458['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':_0x1b1ad1(0x4da),'label':_0xf95458['t'](_0x1b1ad1(0x3c9))}],'onChange':_0x40212f=>{const _0x516dd0=_0x1b1ad1;(_0x40212f===_0x516dd0(0x23b)||_0x40212f===_0x516dd0(0xd9)||_0x40212f===_0x516dd0(0x4da))&&_0x3021b1({'displayMode':_0x40212f});}})]})]})}):(0x0,g[_0x1b1ad1(0x23f)])(n[_0x1b1ad1(0x1c5)],{'id':_0x1b1ad1(0x4bf),'label':_0xf95458['t']('bases-dashboard-ui.chart.common.customize'),'children':(0x0,g[_0x1b1ad1(0x23f)])(ve,{})})]})});}function ge(_0x4a0c0f,_0x1b746d){const _0x12d253=_0x30b590;return{..._0x4a0c0f,'type':_0x1b746d[_0x12d253(0x1ef)]??_0x4a0c0f[_0x12d253(0x11c)],'style':_0x1b746d[_0x12d253(0x130)]??_0x4a0c0f[_0x12d253(0x130)],'context':_0x1b746d[_0x12d253(0x316)]??_0x4a0c0f[_0x12d253(0x316)],'dataAggregation':_0x1b746d['dataAggregation']??_0x4a0c0f[_0x12d253(0x2d2)]};}function _e(){const _0xabd77a=_0x30b590;let _0x499553=(0x0,n[_0xabd77a(0x34c)])();return(0x0,g[_0xabd77a(0x23f)])(n[_0xabd77a(0x128)],{'visible':me['every'](_0x509094=>!_['chartBitsUtils'][_0xabd77a(0xf3)](_0x499553,_0x509094))});}function q(_0x215772){const _0x3f9618=_0x30b590;return(0x0,g[_0x3f9618(0x38d)])(n[_0x3f9618(0x271)],{'id':_0x215772['id'],'children':[(0x0,g[_0x3f9618(0x23f)])(n['ChartSectionAccordionTrigger'],{'children':_0x215772[_0x3f9618(0x1c2)]}),(0x0,g[_0x3f9618(0x23f)])(n[_0x3f9618(0x359)],{'children':_0x215772[_0x3f9618(0x1aa)]})]});}function ve(){const _0x3478a8=_0x30b590;let _0x541697=(0x0,m[_0x3478a8(0x155)])(a[_0x3478a8(0x3ea)]),_0x1f8c86=(0x0,n['useChartEditorChartType'])(),_0x5da0d4=(0x0,n['useChartEditorHasRightAxis'])(),[_0x18f118,_0x4b3c0e]=(0x0,h[_0x3478a8(0x40a)])(null),_0x537436=_['chartBitsUtils'][_0x3478a8(0xf3)](_0x1f8c86,_['ChartTypeBits'][_0x3478a8(0x484)]),_0x13e61c=_0x1f8c86===_['ChartTypeBits'][_0x3478a8(0x14c)],_0x385499=_0x1f8c86===_[_0x3478a8(0x1f6)]['WordCloud'],_0x37c829=_0x1f8c86===_['ChartTypeBits'][_0x3478a8(0x328)],_0xd3e1d9=_[_0x3478a8(0x31a)][_0x3478a8(0xf3)](_0x1f8c86,_[_0x3478a8(0x1f6)][_0x3478a8(0xec)]),_0x39efa0=_0x1f8c86===_['ChartTypeBits'][_0x3478a8(0x4a6)],_0x22778e=_0x1f8c86===_[_0x3478a8(0x1f6)]['Waterfall'],_0x3a0c18=_0x1f8c86===_[_0x3478a8(0x1f6)][_0x3478a8(0x2c9)],_0x3e206d=_0x1f8c86===_[_0x3478a8(0x1f6)][_0x3478a8(0x28a)],_0x4616bc=(0x0,n[_0x3478a8(0x36a)])(_0x1f8c86,n[_0x3478a8(0x420)][_0x3478a8(0x1de)])&&!_0xd3e1d9&&!_0x3a0c18,_0x1f3082=ye(_0x1f8c86,_0x541697);return(0x0,g[_0x3478a8(0x38d)])(n['ChartSectionAccordion'],{'value':_0x18f118,'onChange':_0x4b3c0e,'children':[(0x0,g['jsx'])(q,{'id':n[_0x3478a8(0x382)][_0x3478a8(0x210)],'label':_0x541697['t'](_0x3478a8(0x1e2)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x1ff)],{'defaultValues':K[_0x3478a8(0x130)]})}),(0x0,g['jsx'])(q,{'id':n['ChartEditPanelSection'][_0x3478a8(0x36d)],'label':_0x541697['t'](_0x3478a8(0x34f)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x3f3)],{'commitMode':_0x3478a8(0x165),'defaultValues':K[_0x3478a8(0x32f)]})}),(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x1b1)],{'section':_0x3478a8(0x1b4)}),_0x4616bc&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n['ChartEditPanelSection'][_0x3478a8(0x4fd)],'label':_0x541697['t'](_0x3478a8(0x1f5)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x432)],{'defaultValues':K[_0x3478a8(0x392)],'NumberFormatField':n[_0x3478a8(0x102)]})}),_0x22778e&&(0x0,g['jsx'])(q,{'id':n['ChartEditPanelSection'][_0x3478a8(0x496)],'label':_0x541697['t'](_0x3478a8(0x341)),'children':(0x0,g['jsx'])(n[_0x3478a8(0x367)],{'defaultValues':K['waterfallStyle'],'getDefaultBucketName':({seriesName:_0xe5acbc,target:_0x53e8d2})=>_0x53e8d2===_['ChartWaterfallStyleTarget'][_0x3478a8(0x124)]?_0x541697['t'](_0x3478a8(0x1ac)):_0xe5acbc?_0xe5acbc+'-('+_0x541697['t']('bases-dashboard-ui.chart.'+(_0x53e8d2===_[_0x3478a8(0x4f8)][_0x3478a8(0x4e2)]?'waterfall.positive':_0x3478a8(0x24a)))+')':'','NumberFormatField':n['ChartNumberFormatAtom']})}),_0x3a0c18&&(0x0,g['jsxs'])(g['Fragment'],{'children':[(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)]['ParetoBarSeries'],'label':_0x541697['t'](_0x3478a8(0x1cb)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x1fa)],{'defaultValues':K[_0x3478a8(0x10a)],'NumberFormatField':n[_0x3478a8(0x102)],'showDataPointEditor':!0x0,'target':_0x3478a8(0x2b3)})}),(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)][_0x3478a8(0x283)],'label':_0x541697['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x1fa)],{'defaultValues':K[_0x3478a8(0x10a)],'NumberFormatField':n[_0x3478a8(0x102)],'showDataPointEditor':!0x1,'target':'cumulativeLineStyle'})})]}),_0x537436&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n['ChartEditPanelSection'][_0x3478a8(0x4c2)],'label':_0x541697['t']('bases-dashboard-ui.chart.section.pie'),'children':(0x0,g['jsx'])(n[_0x3478a8(0xfe)],{'defaultValues':K[_0x3478a8(0x308)],'NumberFormatField':n['ChartNumberFormatAtom']})}),_0x385499&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)][_0x3478a8(0x300)],'label':_0x541697['t']('bases-dashboard-ui.chart.section.wordCloud'),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0xde)],{'defaultValues':K[_0x3478a8(0x4dd)]})}),_0x13e61c&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)][_0x3478a8(0x14c)],'label':_0x541697['t'](_0x3478a8(0x4ca)),'children':(0x0,g[_0x3478a8(0x23f)])(n['ChartRadarStyleSection'],{'defaultValues':K[_0x3478a8(0x436)]})}),_0x37c829&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)]['Funnel'],'label':_0x541697['t'](_0x3478a8(0x2d5)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x277)],{'defaultValues':K[_0x3478a8(0x376)],'gapControl':_0x3478a8(0x2d4)})}),_0x3e206d&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)]['Heatmap'],'label':_0x541697['t'](_0x3478a8(0x288)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x1d0)],{'defaultValues':K[_0x3478a8(0x430)]})}),_0x39efa0&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)]['Relation'],'label':_0x541697['t']('bases-dashboard-ui.chart.section.relation'),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x282)],{'defaultValues':K['relation']})}),(0x0,n[_0x3478a8(0x2cf)])(_0x1f8c86)&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)][_0x3478a8(0xef)],'label':_0x541697['t'](_[_0x3478a8(0x31a)][_0x3478a8(0xf3)](_0x1f8c86,_[_0x3478a8(0x1f6)]['Area'])?_0x3478a8(0x391):_0x3478a8(0x384)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x4f7)],{'defaultValues':K[_0x3478a8(0x365)],'lineStyleControl':_0x3478a8(0x4ea)})}),(0x0,n[_0x3478a8(0x36a)])(_0x1f8c86,n[_0x3478a8(0x420)]['Legend'])&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)][_0x3478a8(0x4a0)],'label':_0x541697['t'](_0x3478a8(0x3c4)),'children':(0x0,g['jsx'])(n[_0x3478a8(0x1c8)],{'defaultValues':K['legend']})}),(0x0,n['chartTypeSupportsCapability'])(_0x1f8c86,n[_0x3478a8(0x420)][_0x3478a8(0x4b4)])&&(0x0,g['jsxs'])(g[_0x3478a8(0x226)],{'children':[(0x0,g['jsx'])(q,{'id':n[_0x3478a8(0x382)][_0x3478a8(0xf1)],'label':_0x541697['t'](_0x3478a8(0x12c)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x21e)],{'axis':'x','defaultValues':K[_0x3478a8(0x36b)],'NumberFormatField':n['ChartNumberFormatAtom']})}),(0x0,g[_0x3478a8(0x23f)])(q,{'id':n['ChartEditPanelSection'][_0x3478a8(0x466)],'label':_0x541697['t'](_0x3478a8(0x3b7)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x21e)],{'axis':'y','defaultValues':K[_0x3478a8(0x36b)],'NumberFormatField':n[_0x3478a8(0x102)]})}),(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x1b1)],{'section':'depthAxis'}),_0x5da0d4&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)]['RightVerticalAxis'],'label':_0x541697['t']('bases-dashboard-ui.chart.common.rightVerticalAxis'),'children':(0x0,g['jsx'])(n[_0x3478a8(0x21e)],{'axis':_0x3478a8(0x205),'defaultValues':K['axis'],'NumberFormatField':n[_0x3478a8(0x102)]})}),(0x0,g[_0x3478a8(0x23f)])(q,{'id':n['ChartEditPanelSection'][_0x3478a8(0x386)],'label':_0x541697['t']('bases-dashboard-ui.chart.section.gridlinesAndTicks'),'children':(0x0,g[_0x3478a8(0x23f)])(n['ChartGridlinesAndTicksSection'],{'defaultValues':K['axis']})})]}),(0x0,n[_0x3478a8(0x36a)])(_0x1f8c86,n['ChartEditorCapability']['IndicatorLine'])&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n[_0x3478a8(0x382)]['IndicatorLine'],'label':_0x541697['t'](_0x3478a8(0x2b5)),'children':(0x0,g['jsx'])(n[_0x3478a8(0x3b2)],{'defaultValues':K[_0x3478a8(0x41a)]})}),(0x0,_[_0x3478a8(0x43a)])(_0x1f8c86)&&(0x0,g[_0x3478a8(0x23f)])(q,{'id':n['ChartEditPanelSection'][_0x3478a8(0x213)],'label':_0x541697['t'](_0x3478a8(0x3fe)),'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x40e)],{'defaultValues':K[_0x3478a8(0x37e)]})}),_0x1f3082&&(0x0,g['jsx'])(q,{'id':_0x1f3082['id'],'label':_0x1f3082[_0x3478a8(0x1c2)],'children':(0x0,g[_0x3478a8(0x23f)])(n[_0x3478a8(0x2c2)],{})})]});}function ye(_0x217252,_0x27eeed){const _0x48ae38=_0x30b590;let _0x2effec={[_[_0x48ae38(0x1f6)][_0x48ae38(0x42b)]]:{'id':n[_0x48ae38(0x382)][_0x48ae38(0x42b)],'localeKey':_0x48ae38(0x4c4)},[_['ChartTypeBits'][_0x48ae38(0x29f)]]:{'id':n['ChartEditPanelSection'][_0x48ae38(0x29f)],'localeKey':_0x48ae38(0x437)},[_['ChartTypeBits'][_0x48ae38(0x421)]]:{'id':n[_0x48ae38(0x382)][_0x48ae38(0x421)],'localeKey':_0x48ae38(0x168)},[_['ChartTypeBits'][_0x48ae38(0x2b0)]]:{'id':n[_0x48ae38(0x382)][_0x48ae38(0x2b0)],'localeKey':_0x48ae38(0x16f)},[_[_0x48ae38(0x1f6)]['Gauge']]:{'id':n[_0x48ae38(0x382)][_0x48ae38(0x358)],'localeKey':_0x48ae38(0x257)},[_[_0x48ae38(0x1f6)]['Chord']]:{'id':n['ChartEditPanelSection'][_0x48ae38(0xd5)],'localeKey':'bases-dashboard-ui.chart.section.chord'}}[_0x217252];return _0x2effec?{'id':_0x2effec['id'],'label':_0x27eeed['t'](_0x2effec['localeKey'])}:null;}function be(_0x3034e4){const _0x4d7de2=_0x30b590;return _0x4d7de2(0x2b8)+_0x3034e4;}function xe({onChange:_0x1c4fef,onEditData:_0x511f85,runtime:_0x33fc89,sourceChart:_0x3c9a5d,sourceName:_0x51a303,widget:_0x1441cc}){const _0x2f8026=_0x30b590;let _0x55515f=(0x0,m['useDependency'])(W),_0x21adf7=(0x0,m[_0x2f8026(0x155)])(a[_0x2f8026(0x3ea)]),[_0x2a58c9,_0x7b7859]=(0x0,h[_0x2f8026(0x40a)])(n['ChartEditPanelTab'][_0x2f8026(0x1d6)]),_0x4f491d=_0x1441cc[_0x2f8026(0xd9)]??_0x3c9a5d,_0x58a438=(0x0,h[_0x2f8026(0x2c1)])(()=>new n['ChartHostAdapter'](_0x33fc89[_0x2f8026(0x21c)],{'commit':_0x2ef6db=>{const _0x19840d=_0x2f8026;var _0x4ac4cb;let _0x12d970=_0x33fc89['model'],_0x52d834=(0x0,_[_0x19840d(0x18d)])(_0x2ef6db,{'series':(_0x4ac4cb=_0x12d970[_0x19840d(0x1ca)])==null?void 0x0:_0x4ac4cb['series'],'currentChartType':_0x12d970['chartType'],'currentStyle':_0x12d970[_0x19840d(0x130)],'currentContext':_0x12d970[_0x19840d(0x316)],'currentDataAggregation':_0x12d970[_0x19840d(0x2d2)]});_0x1c4fef({..._0x1441cc,'chart':ge(_0x4f491d,_0x52d834)})[_0x19840d(0x29c)](()=>void 0x0);}}),[_0x4f491d,_0x1c4fef,_0x33fc89,_0x1441cc]),_0x58fb6d=(0x0,h[_0x2f8026(0x2c1)])(()=>(0x0,n[_0x2f8026(0x2ba)])(n[_0x2f8026(0x1f2)]['map'](_0x782d72=>({..._0x782d72,'label':_0x21adf7['t'](Se(_0x782d72[_0x2f8026(0x407)]))}))),[_0x21adf7]);return(0x0,g['jsx'])(n[_0x2f8026(0x356)],{'chartUIService':_0x55515f,'hostAdapter':_0x58a438,'children':(0x0,g[_0x2f8026(0x38d)])('div',{'data-dashboard-chart-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[(0x0,g[_0x2f8026(0x23f)])(n['ChartEditPanelTabs'],{'ariaLabel':_0x21adf7['t'](_0x2f8026(0x14f)),'className':_0x2f8026(0x22d),'items':[{'label':_0x21adf7['t'](_0x2f8026(0x3ef)),'panelId':'dashboard-chart-setup','value':n[_0x2f8026(0x487)]['Data']},{'label':_0x21adf7['t']('bases-dashboard-ui.chart.common.customize'),'panelId':'dashboard-chart-style','value':n['ChartEditPanelTab']['Style']}],'value':_0x2a58c9,'onChange':_0x7b7859}),_0x2a58c9===n[_0x2f8026(0x487)][_0x2f8026(0x1d6)]?(0x0,g[_0x2f8026(0x23f)])(n[_0x2f8026(0x1c5)],{'id':'dashboard-chart-setup','label':_0x21adf7['t'](_0x2f8026(0x3ef)),'children':(0x0,g[_0x2f8026(0x38d)])(_0x2f8026(0x460),{'className':_0x2f8026(0x2ae),'children':[(0x0,g[_0x2f8026(0x23f)])(n[_0x2f8026(0x174)],{'options':_0x58fb6d}),(0x0,g['jsx'])(n[_0x2f8026(0x27a)],{}),(0x0,g[_0x2f8026(0x23f)])(n[_0x2f8026(0x26f)],{}),(0x0,g[_0x2f8026(0x23f)])(_e,{}),(0x0,g[_0x2f8026(0x23f)])(n[_0x2f8026(0x3cf)],{}),(0x0,g['jsxs'])(_0x2f8026(0x460),{'children':[(0x0,g[_0x2f8026(0x23f)])(n[_0x2f8026(0x2a1)],{'title':_0x21adf7['t'](_0x2f8026(0x441))}),(0x0,g[_0x2f8026(0x23f)])(f['Input'],{'disabled':!0x0,'value':_0x51a303}),(0x0,g[_0x2f8026(0x23f)])(f[_0x2f8026(0x3da)],{'className':_0x2f8026(0x27c),'onClick':_0x511f85,'children':_0x21adf7['t']('bases-dashboard-ui.dashboardInspector.editData')})]})]})}):(0x0,g['jsx'])(n['ChartEditPanel'],{'id':_0x2f8026(0xd6),'label':_0x21adf7['t'](_0x2f8026(0x2ca)),'children':(0x0,g['jsx'])(ve,{})})]})});}function Se(_0xd4aa08){return'bases-dashboard-ui.chart.chartTypes.'+_0xd4aa08;}const Ce=[_0x30b590(0x2b4),'number','percent',_0x30b590(0x2c4),_0x30b590(0x268),_0x30b590(0xdb)];function we({base:_0x1daa74,onChange:_0x531761,onSelectBackgroundImage:_0x29c4ee,widget:_0x5ccd8c}){const _0xa0b1f6=_0x30b590;var _0x16b8dc;let _0x12577b=(0x0,m[_0xa0b1f6(0x155)])(a[_0xa0b1f6(0x3ea)]),_0x163ade=(0x0,m[_0xa0b1f6(0x155)])(a[_0xa0b1f6(0x46a)]),_0x2541e5=(0x0,m[_0xa0b1f6(0xe2)])(()=>_0x163ade[_0xa0b1f6(0x317)],_0x163ade['getCurrentTheme'](),!0x1,[_0x163ade]),_0x3e31f8=(0x0,m[_0xa0b1f6(0xe2)])(()=>_0x163ade[_0xa0b1f6(0x16c)],_0x163ade[_0xa0b1f6(0x246)],!0x1,[_0x163ade]),[_0x564fd6,_0x20caf5]=(0x0,h[_0xa0b1f6(0x40a)])(_0xa0b1f6(0x457)),[_0x1fb7b4,_0x34ece5]=(0x0,h[_0xa0b1f6(0x40a)])(!0x1),_0x24e944=k(_0x5ccd8c),_0x281d8f=_0x1daa74[_0xa0b1f6(0x38b)]()['tables'][_0x5ccd8c[_0xa0b1f6(0x3d3)]],_0x1e7a5b=_0x281d8f==null?void 0x0:_0x281d8f[_0xa0b1f6(0x36f)]['find'](_0xc67790=>_0x281d8f[_0xa0b1f6(0x371)][_0xc67790]),_0x4e698a=_0x1e7a5b?_0x281d8f==null?void 0x0:_0x281d8f[_0xa0b1f6(0x371)][_0x1e7a5b]:void 0x0,_0x1f257a=_0x281d8f&&_0x4e698a?(0x0,t[_0xa0b1f6(0xf9)])(_0x1daa74[_0xa0b1f6(0x38b)](),_0x281d8f,_0x4e698a)[_0xa0b1f6(0x48a)](_0x11209c=>({..._0x11209c,'current':!0x1})):[],_0x4e1d3f=((_0x16b8dc=_0x5ccd8c['shapeData']['formulaBinding'])==null?void 0x0:_0x16b8dc[_0xa0b1f6(0x3ac)])??'',_0x1cbde4=_0x188bb8=>_0x531761(A(_0x5ccd8c,_0x188bb8))[_0xa0b1f6(0x29c)](()=>void 0x0),_0x392e1d=_0x34a907=>_0x531761({..._0x5ccd8c,'description':_0x34a907})[_0xa0b1f6(0x29c)](()=>void 0x0);return(0x0,g[_0xa0b1f6(0x38d)])('div',{'data-dashboard-formula-inspector':!0x0,'className':_0xa0b1f6(0x134),'children':[(0x0,g['jsx'])(f[_0xa0b1f6(0x324)],{'className':_0xa0b1f6(0x3f5),'items':[{'value':'data','label':_0x12577b['t'](_0xa0b1f6(0x332))},{'value':'style','label':_0x12577b['t'](_0xa0b1f6(0x415))}],'value':_0x564fd6,'onChange':_0x20caf5}),(0x0,g[_0xa0b1f6(0x23f)])(_0xa0b1f6(0x460),{'className':_0xa0b1f6(0x39a),'children':_0x564fd6===_0xa0b1f6(0x457)?(0x0,g[_0xa0b1f6(0x38d)])('div',{'className':_0xa0b1f6(0x20b),'children':[(0x0,g[_0xa0b1f6(0x23f)])(J,{'label':_0x12577b['t'](_0xa0b1f6(0x4fc)),'children':(0x0,g['jsx'])(f[_0xa0b1f6(0x104)],{'value':_0x5ccd8c['description']??_0x5ccd8c['title']??'','onChange':_0x392e1d,'onBlur':_0x4c52f7=>_0x392e1d(_0x4c52f7[_0xa0b1f6(0x12d)][_0xa0b1f6(0x351)])})}),(0x0,g[_0xa0b1f6(0x23f)])(J,{'label':_0x12577b['t'](_0xa0b1f6(0x441)),'children':(0x0,g[_0xa0b1f6(0x23f)])(f[_0xa0b1f6(0x104)],{'disabled':!0x0,'value':(_0x281d8f==null?void 0x0:_0x281d8f[_0xa0b1f6(0x451)])??_0x12577b['t'](_0xa0b1f6(0x4b1))})}),(0x0,g[_0xa0b1f6(0x38d)])(J,{'label':_0x12577b['t'](_0xa0b1f6(0x348)),'children':[(0x0,g['jsx'])(f['Input'],{'disabled':!0x0,'value':(0x0,t[_0xa0b1f6(0x4e7)])(_0x4e1d3f,_0x1f257a)}),(0x0,g[_0xa0b1f6(0x23f)])(f['Button'],{'className':_0xa0b1f6(0x27c),'onClick':()=>_0x34ece5(!0x0),'children':_0x12577b['t']('bases-dashboard-ui.dashboardInspector.editFormula')})]})]}):(0x0,g['jsxs'])('div',{'className':_0xa0b1f6(0x20b),'children':[(0x0,g[_0xa0b1f6(0x23f)])(n['ChartColorField'],{'emptyLabel':_0x12577b['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x12577b['t'](_0xa0b1f6(0x199)),'pickerFallbackValue':_0x3e31f8?_0x2541e5[_0xa0b1f6(0x4bb)][0x384]:_0x2541e5['gray'][0x0],'resetLabel':_0x12577b['t'](_0xa0b1f6(0x27f)),'value':_0x24e944['backgroundColor']??null,'onChange':_0x2b36fb=>_0x1cbde4({'backgroundColor':_0x2b36fb??void 0x0})}),(0x0,g[_0xa0b1f6(0x38d)])(J,{'label':_0x12577b['t'](_0xa0b1f6(0x481)),'children':[(0x0,g[_0xa0b1f6(0x38d)])('div',{'className':'univer-flex\x20univer-gap-2','children':[(0x0,g[_0xa0b1f6(0x38d)])(f[_0xa0b1f6(0x3da)],{'className':'univer-flex-1','onClick':()=>{const _0x13bd18=_0xa0b1f6;_0x29c4ee()[_0x13bd18(0xeb)](_0x450d4a=>{const _0x3826d5=_0x13bd18;if(_0x450d4a){var _0x430257;return _0x1cbde4({'backgroundImage':{..._0x450d4a,'fit':((_0x430257=_0x24e944[_0x3826d5(0x142)])==null?void 0x0:_0x430257[_0x3826d5(0x2d7)])??'cover'}});}})[_0x13bd18(0x29c)](()=>void 0x0);},'children':[(0x0,g[_0xa0b1f6(0x23f)])(s['IncreaseIcon'],{}),_0x24e944[_0xa0b1f6(0x142)]?_0x12577b['t'](_0xa0b1f6(0xe6)):_0x12577b['t'](_0xa0b1f6(0x42c))]}),_0x24e944[_0xa0b1f6(0x142)]&&(0x0,g[_0xa0b1f6(0x23f)])(f[_0xa0b1f6(0x3da)],{'aria-label':_0x12577b['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'title':_0x12577b['t']('bases-dashboard-ui.dashboardInspector.removeImage'),'onClick':()=>_0x1cbde4({'backgroundImage':void 0x0}),'children':(0x0,g['jsx'])(s[_0xa0b1f6(0x15d)],{})})]}),_0x24e944[_0xa0b1f6(0x142)]&&(0x0,g[_0xa0b1f6(0x23f)])(f[_0xa0b1f6(0x324)],{'className':_0xa0b1f6(0x4d4),'items':[{'value':_0xa0b1f6(0x225),'label':_0x12577b['t'](_0xa0b1f6(0x175))},{'value':_0xa0b1f6(0x3db),'label':_0x12577b['t'](_0xa0b1f6(0x37c))}],'value':_0x24e944[_0xa0b1f6(0x142)][_0xa0b1f6(0x2d7)],'onChange':_0x109681=>_0x1cbde4({'backgroundImage':_0x24e944[_0xa0b1f6(0x142)]?{..._0x24e944['backgroundImage'],'fit':_0x109681}:void 0x0})})]}),(0x0,g[_0xa0b1f6(0x23f)])(n[_0xa0b1f6(0x2ce)],{'emptyLabel':_0x12577b['t'](_0xa0b1f6(0x2a9)),'label':_0x12577b['t'](_0xa0b1f6(0x2a9)),'pickerFallbackValue':_0x3e31f8?_0x2541e5['gray'][0x32]:_0x2541e5[_0xa0b1f6(0x4bb)][0x3e8],'resetLabel':_0x12577b['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x24e944[_0xa0b1f6(0x3de)]??null,'onChange':_0x4fbc7d=>_0x1cbde4({'textColor':_0x4fbc7d??void 0x0})}),(0x0,g[_0xa0b1f6(0x23f)])(J,{'label':_0x12577b['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':(0x0,g[_0xa0b1f6(0x23f)])(f[_0xa0b1f6(0x324)],{'items':[{'value':_0xa0b1f6(0x362),'label':_0x12577b['t'](_0xa0b1f6(0x21a))},{'value':'center','label':_0x12577b['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0xa0b1f6(0x2f1),'label':_0x12577b['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x24e944[_0xa0b1f6(0x121)],'onChange':_0x438210=>_0x1cbde4({'alignment':_0x438210})})}),(0x0,g[_0xa0b1f6(0x38d)])(J,{'label':_0x12577b['t'](_0xa0b1f6(0xe1)),'children':[(0x0,g[_0xa0b1f6(0x23f)])(f[_0xa0b1f6(0x324)],{'items':[{'value':_0xa0b1f6(0x337),'label':_0x12577b['t'](_0xa0b1f6(0x35d))},{'value':_0xa0b1f6(0x3f1),'label':_0x12577b['t'](_0xa0b1f6(0x1fe))}],'value':_0x24e944[_0xa0b1f6(0xfc)],'onChange':_0x388fa0=>_0x1cbde4({'fontSizeMode':_0x388fa0})}),_0x24e944[_0xa0b1f6(0xfc)]===_0xa0b1f6(0x3f1)&&(0x0,g['jsx'])(f[_0xa0b1f6(0x33a)],{'className':_0xa0b1f6(0x4d4),'min':0xc,'max':0x78,'value':_0x24e944['fontSize'],'onChange':_0x1a00aa=>_0x1cbde4({'fontSize':_0x1a00aa??0x28,'fontSizeMode':_0xa0b1f6(0x3f1)})})]}),(0x0,g['jsx'])(J,{'label':_0x12577b['t'](_0xa0b1f6(0x240)),'children':(0x0,g[_0xa0b1f6(0x23f)])(G,{'value':_0x24e944['numberFormat'],'options':[{'value':_0xa0b1f6(0x2b4),'label':_0x12577b['t'](_0xa0b1f6(0x4d3))},{'value':_0xa0b1f6(0x493),'label':_0x12577b['t'](_0xa0b1f6(0x2d1))},{'value':_0xa0b1f6(0x47a),'label':_0x12577b['t'](_0xa0b1f6(0x151))},{'value':_0xa0b1f6(0x2c4),'label':_0x12577b['t'](_0xa0b1f6(0x182))},{'value':_0xa0b1f6(0x268),'label':_0x12577b['t'](_0xa0b1f6(0x2f4))},{'value':_0xa0b1f6(0xdb),'label':_0x12577b['t'](_0xa0b1f6(0x444))}],'onChange':_0x2de0b4=>{let _0x134d5a=Ce['find'](_0x944ea0=>_0x944ea0===_0x2de0b4);_0x134d5a&&_0x1cbde4({'numberFormat':_0x134d5a});}})}),_0x24e944[_0xa0b1f6(0x255)]===_0xa0b1f6(0x2c4)&&(0x0,g[_0xa0b1f6(0x23f)])(J,{'label':_0x12577b['t'](_0xa0b1f6(0x1ae)),'children':(0x0,g[_0xa0b1f6(0x23f)])(f[_0xa0b1f6(0x104)],{'value':_0x24e944[_0xa0b1f6(0x2c4)],'onChange':_0x11d580=>_0x1cbde4({'currency':_0x11d580[_0xa0b1f6(0x34d)](0x0,0x3)[_0xa0b1f6(0x4c8)]()})})}),_0x24e944[_0xa0b1f6(0x255)]!==_0xa0b1f6(0x2b4)&&(0x0,g[_0xa0b1f6(0x23f)])(J,{'label':_0x12577b['t'](_0xa0b1f6(0x1eb)),'children':(0x0,g[_0xa0b1f6(0x23f)])(f[_0xa0b1f6(0x33a)],{'min':0x0,'max':0x8,'value':_0x24e944['decimalPlaces'],'onChange':_0x5bf1f4=>_0x1cbde4({'decimalPlaces':_0x5bf1f4??0x0})})})]})}),_0x1fb7b4&&(0x0,g[_0xa0b1f6(0x23f)])(fe,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':(0x0,g['jsx'])(t[_0xa0b1f6(0x2fe)],{'tables':_0x1f257a,'formula':(0x0,t[_0xa0b1f6(0x4e7)])(_0x4e1d3f,_0x1f257a),'onCancel':()=>_0x34ece5(!0x1),'onSave':_0x44409a=>{const _0x45961d=_0xa0b1f6;let _0x5c668e=_0x5ccd8c[_0x45961d(0x34e)][_0x45961d(0x44d)]??{'formula':''};return _0x531761({..._0x5ccd8c,'shapeData':{..._0x5ccd8c['shapeData'],'formulaBinding':{..._0x5c668e,'formula':(0x0,t['normalizeEditorFormulaForConfig'])(_0x44409a,_0x1f257a)}}})[_0x45961d(0xeb)](()=>_0x34ece5(!0x1))[_0x45961d(0x29c)](()=>void 0x0);}})})]});}function J({children:_0x26b27f,label:_0x16ecd1}){const _0x5d4c20=_0x30b590;return(0x0,g[_0x5d4c20(0x38d)])('div',{'role':_0x5d4c20(0x3b1),'aria-label':_0x16ecd1,'className':_0x5d4c20(0x345),'children':[(0x0,g[_0x5d4c20(0x23f)])('span',{'children':_0x16ecd1}),_0x26b27f]});}function Te({disabled:_0x1b78f4,fields:_0x8e59bb,filter:_0x4ba482,onChange:_0x5a40a5}){const _0x81fd1d=_0x30b590;let _0x4df99d=(0x0,m[_0x81fd1d(0x155)])(m[_0x81fd1d(0x49f)])[_0x81fd1d(0x390)]??null,[_0x40a315,_0x5c9ecc]=(0x0,h[_0x81fd1d(0x40a)])(null),_0x29b285=(0x0,m[_0x81fd1d(0x155)])(a[_0x81fd1d(0x3ea)]),_0x3a98be=(_0x4ba482==null?void 0x0:_0x4ba482[_0x81fd1d(0x125)])??[];if(!_0x3a98be[_0x81fd1d(0xf8)])return(0x0,g[_0x81fd1d(0x38d)])('div',{'className':_0x81fd1d(0x429),'children':[(0x0,g[_0x81fd1d(0x23f)])(s[_0x81fd1d(0x319)],{'className':_0x81fd1d(0x190)}),(0x0,g[_0x81fd1d(0x23f)])(_0x81fd1d(0x405),{'className':_0x81fd1d(0xd7),'children':_0x29b285['t'](_0x81fd1d(0x2cc))})]});let _0x13c511=_0x40a315==null?void 0x0:_0x3a98be[_0x40a315],_0x1372d5=_0x8e59bb[_0x81fd1d(0x41e)](_0x1be4d8=>_0x1be4d8['id']===(_0x13c511==null?void 0x0:_0x13c511[_0x81fd1d(0x1fb)]));return(0x0,g[_0x81fd1d(0x38d)])(_0x81fd1d(0x460),{'className':_0x81fd1d(0x3bb),'children':[_0x3a98be[_0x81fd1d(0x48a)]((_0x4ae278,_0x3e314f)=>{const _0x4ad339=_0x81fd1d;var _0x572876;return(0x0,g['jsxs'])(f['Button'],{'disabled':_0x1b78f4,'onClick':()=>_0x5c9ecc(_0x3e314f),'children':[(0x0,g[_0x4ad339(0x23f)])(_0x4ad339(0x405),{'children':((_0x572876=_0x8e59bb['find'](_0x42b62e=>_0x42b62e['id']===_0x4ae278[_0x4ad339(0x1fb)]))==null?void 0x0:_0x572876[_0x4ad339(0x451)])??_0x4ae278[_0x4ad339(0x1fb)]}),(0x0,g['jsx'])('span',{'className':_0x4ad339(0x4b8),'children':String(_0x4ae278[_0x4ad339(0x47d)]??'')})]},_0x4ae278['fieldId']+'-'+_0x3e314f);}),_0x1372d5&&_0x13c511&&_0x40a315!=null&&_0x4df99d&&(0x0,v[_0x81fd1d(0x4f4)])((0x0,g[_0x81fd1d(0x23f)])(t[_0x81fd1d(0x1d8)],{'field':_0x1372d5,'value':_0x13c511[_0x81fd1d(0x47d)],'onClose':()=>_0x5c9ecc(null),'onSave':_0x3cbd7e=>{const _0xa52814=_0x81fd1d;_0x5a40a5({'conjunction':(_0x4ba482==null?void 0x0:_0x4ba482[_0xa52814(0x1d3)])??a['BaseFilterConjunction']['AND'],'conditions':_0x3a98be[_0xa52814(0x48a)]((_0x1f7986,_0x4937f7)=>_0x4937f7===_0x40a315?{..._0x1f7986,'operand':_0x3cbd7e}:_0x1f7986)}),_0x5c9ecc(null);}}),_0x4df99d)]});}function Ee({fields:_0x52a9b3,filter:_0x8b9810,onChange:_0x4703ce,onClear:_0x3c794f}){const _0x1d96fb=_0x30b590;let _0xd3d2ff=(0x0,m[_0x1d96fb(0x155)])(a['LocaleService']);return(0x0,g[_0x1d96fb(0x38d)])(_0x1d96fb(0x460),{'children':[(0x0,g[_0x1d96fb(0x23f)])(t['BaseMobileFilterPanel'],{'fields':_0x52a9b3,'value':_0x8b9810??{'conjunction':a[_0x1d96fb(0x2b2)]['AND'],'conditions':[]},'onChange':_0x4703ce}),(0x0,g[_0x1d96fb(0x23f)])(f['Button'],{'onClick':_0x3c794f,'children':_0xd3d2ff['t'](_0x1d96fb(0x27f))})]});}function De({base:_0x5c785f,chartRuntime:_0x45cf74,onChange:_0xf1484e,onClose:_0x57c61c,onSelectBackgroundImage:_0x5d6ce5,onSelectImage:_0x105451,unitId:_0x5687d7,widget:_0x213d52}){const _0x3b47a7=_0x30b590;let _0x41af3e=(0x0,m[_0x3b47a7(0x155)])(a['ICommandService']),_0x13617d=(0x0,m[_0x3b47a7(0x155)])(a[_0x3b47a7(0x3ea)]),_0x13c47a=_0x5c785f['getSnapshot'](),_0x24eac1=_0x3b47a7(0x3d3)in _0x213d52?_0x13c47a['tables'][_0x213d52[_0x3b47a7(0x3d3)]]:void 0x0,_0x370fae=_0x213d52[_0x3b47a7(0x11c)]===e[_0x3b47a7(0x1e4)][_0x3b47a7(0x3c7)]?_0x24eac1==null?void 0x0:_0x24eac1[_0x3b47a7(0x371)][_0x213d52[_0x3b47a7(0x247)]]:void 0x0,_0x55fcb2=_0x13617d['t'](Pe(_0x213d52)),_0xaf80e0=(0x0,g[_0x3b47a7(0x38d)])(_0x3b47a7(0x4c9),{'data-dashboard-inspector':!0x0,'className':_0x3b47a7(0x47f),'children':[_0x213d52[_0x3b47a7(0x11c)]===e[_0x3b47a7(0x1e4)][_0x3b47a7(0x3c7)]&&(Ne(_0x370fae)&&_0x45cf74?(0x0,g[_0x3b47a7(0x23f)])(xe,{'runtime':_0x45cf74,'sourceChart':_0x370fae[_0x3b47a7(0x1ca)][_0x3b47a7(0xd9)],'sourceName':((_0x24eac1==null?void 0x0:_0x24eac1[_0x3b47a7(0x451)])??'')+_0x3b47a7(0x211)+_0x370fae[_0x3b47a7(0x451)],'widget':_0x213d52,'onChange':_0xf1484e,'onEditData':()=>{const _0x89f2f0=_0x3b47a7;_0x41af3e[_0x89f2f0(0x387)](t[_0x89f2f0(0x309)]['id'],{'unitId':_0x5687d7,'tableId':_0x213d52[_0x89f2f0(0x3d3)],'viewId':_0x213d52[_0x89f2f0(0x247)]})[_0x89f2f0(0x29c)](()=>void 0x0);}}):(0x0,g[_0x3b47a7(0x23f)])(je,{'message':Ne(_0x370fae)?_0x13617d['t']('bases-dashboard-ui.dashboardInspector.loading'):_0x13617d['t'](_0x3b47a7(0x4b1))})),_0x213d52['type']===e[_0x3b47a7(0x1e4)][_0x3b47a7(0x31c)]&&(0x0,g['jsx'])(we,{'base':_0x5c785f,'widget':_0x213d52,'onChange':_0xf1484e,'onSelectBackgroundImage':_0x5d6ce5}),_0x213d52['type']===e['BaseDashboardWidgetType'][_0x3b47a7(0x326)]&&(0x0,g[_0x3b47a7(0x23f)])(ke,{'base':_0x5c785f,'onChange':_0xf1484e,'widget':_0x213d52}),_0x213d52[_0x3b47a7(0x11c)]===e[_0x3b47a7(0x1e4)][_0x3b47a7(0x115)]&&(0x0,g[_0x3b47a7(0x23f)])(Ae,{'onChange':_0xf1484e,'widget':_0x213d52}),_0x213d52[_0x3b47a7(0x11c)]===e[_0x3b47a7(0x1e4)][_0x3b47a7(0x108)]&&(0x0,g[_0x3b47a7(0x23f)])(Oe,{'onChange':_0xf1484e,'onSelectImage':_0x105451,'widget':_0x213d52})]});return(0x0,g[_0x3b47a7(0x23f)])(t[_0x3b47a7(0x105)],{'title':_0x55fcb2,'onClose':_0x57c61c,'children':_0xaf80e0});}function Oe({onChange:_0x130885,onSelectImage:_0x381282,widget:_0x2bc30b}){const _0x52512c=_0x30b590;let _0x84b0e0=(0x0,m[_0x52512c(0x155)])(a[_0x52512c(0x3ea)]);return(0x0,g['jsxs'])(_0x52512c(0x460),{'className':_0x52512c(0x221),'children':[(0x0,g['jsxs'])(f[_0x52512c(0x3da)],{'className':_0x52512c(0x112),'onClick':()=>_0x381282()[_0x52512c(0xeb)](_0x1da39b=>_0x1da39b&&_0x130885({..._0x2bc30b,'source':_0x1da39b[_0x52512c(0x23a)],'sourceType':_0x1da39b[_0x52512c(0x109)],'alt':_0x1da39b['name']}))[_0x52512c(0x29c)](()=>void 0x0),'children':[(0x0,g[_0x52512c(0x23f)])(s[_0x52512c(0x335)],{}),_0x84b0e0['t'](_0x52512c(0xe6))]}),(0x0,g['jsxs'])(_0x52512c(0x1c2),{'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[(0x0,g[_0x52512c(0x23f)])(_0x52512c(0x405),{'children':_0x84b0e0['t']('bases-dashboard-ui.dashboardInspector.backgroundImage')}),(0x0,g[_0x52512c(0x23f)])(f['Segmented'],{'items':[{'value':_0x52512c(0x225),'label':_0x84b0e0['t'](_0x52512c(0x175))},{'value':_0x52512c(0x336),'label':_0x84b0e0['t'](_0x52512c(0x195))},{'value':_0x52512c(0x106),'label':_0x84b0e0['t'](_0x52512c(0x171))}],'value':_0x2bc30b[_0x52512c(0x10e)]??'cover','onChange':_0x41b5a9=>_0x130885({..._0x2bc30b,'displayMode':_0x41b5a9})[_0x52512c(0x29c)](()=>void 0x0)})]})]});}function ke({base:_0x14a343,onChange:_0x1140f1,widget:_0x3964a8}){const _0x2ccf7c=_0x30b590;let _0x596d79=_0x14a343['getSnapshot']()['tables'][_0x3964a8[_0x2ccf7c(0x3d3)]],_0x19b2f0=_0x596d79==null?void 0x0:_0x596d79[_0x2ccf7c(0x36f)]['find'](_0x354499=>_0x596d79[_0x2ccf7c(0x371)][_0x354499]),_0x56f2ca=_0x19b2f0?_0x596d79==null?void 0x0:_0x596d79[_0x2ccf7c(0x371)][_0x19b2f0]:void 0x0,_0x39b4cd=_0x596d79&&_0x56f2ca?(0x0,t[_0x2ccf7c(0x117)])(_0x596d79,_0x56f2ca):[];return(0x0,g[_0x2ccf7c(0x23f)])(Ee,{'fields':_0x39b4cd,'filter':_0x3964a8['filter'],'onChange':_0x426b71=>_0x1140f1({..._0x3964a8,'filter':_0x426b71})[_0x2ccf7c(0x29c)](()=>void 0x0),'onClear':()=>_0x1140f1({..._0x3964a8,'filter':null})['catch'](()=>void 0x0)});}function Ae({onChange:_0x417f71,widget:_0x34df56}){const _0x2a997e=_0x30b590;let _0x301c3a=(0x0,m[_0x2a997e(0x155)])(a[_0x2a997e(0x3ea)]),_0x371023=(0x0,m[_0x2a997e(0x155)])(a['ThemeService']),_0x2796dd=(0x0,m[_0x2a997e(0xe2)])(()=>_0x371023[_0x2a997e(0x317)],_0x371023[_0x2a997e(0x14e)](),!0x1,[_0x371023]),_0x1f6939=oe(_0x34df56),_0x8a934=_0xaf8631=>_0x417f71({..._0x34df56,'appearance':{..._0x1f6939,..._0xaf8631}})[_0x2a997e(0x29c)](()=>void 0x0);return(0x0,g[_0x2a997e(0x38d)])(_0x2a997e(0x460),{'className':_0x2a997e(0x440),'children':[(0x0,g[_0x2a997e(0x23f)])(f[_0x2a997e(0x2b6)],{'className':_0x2a997e(0xe8),'defaultValue':U(_0x34df56[_0x2a997e(0x45d)]),'rows':0x8,'onBlur':_0x153392=>_0x417f71({..._0x34df56,'document':se(_0x34df56[_0x2a997e(0x45d)],_0x153392[_0x2a997e(0x12d)]['value'])})[_0x2a997e(0x29c)](()=>void 0x0)}),(0x0,g[_0x2a997e(0x23f)])(n[_0x2a997e(0x2ce)],{'emptyLabel':_0x301c3a['t'](_0x2a997e(0x199)),'label':_0x301c3a['t'](_0x2a997e(0x199)),'pickerFallbackValue':_0x2796dd['gray'][0x0],'resetLabel':_0x301c3a['t'](_0x2a997e(0x27f)),'value':_0x1f6939[_0x2a997e(0xe5)]??null,'onChange':_0x27796c=>_0x8a934({'backgroundColor':_0x27796c??void 0x0})}),(0x0,g[_0x2a997e(0x23f)])(n[_0x2a997e(0x2ce)],{'emptyLabel':_0x301c3a['t'](_0x2a997e(0x2a9)),'label':_0x301c3a['t'](_0x2a997e(0x2a9)),'pickerFallbackValue':_0x2796dd[_0x2a997e(0x4bb)][0x3e8],'resetLabel':_0x301c3a['t'](_0x2a997e(0x27f)),'value':_0x1f6939[_0x2a997e(0x3de)]??null,'onChange':_0x809104=>_0x8a934({'textColor':_0x809104??void 0x0})}),(0x0,g[_0x2a997e(0x23f)])(Me,{'label':_0x301c3a['t'](_0x2a997e(0x23c)),'children':(0x0,g[_0x2a997e(0x23f)])(f['Segmented'],{'items':[{'value':'left','label':_0x301c3a['t'](_0x2a997e(0x21a))},{'value':_0x2a997e(0x334),'label':_0x301c3a['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0x2a997e(0x2f1),'label':_0x301c3a['t'](_0x2a997e(0x422))}],'value':_0x1f6939['alignment'],'onChange':_0x2a891f=>_0x8a934({'alignment':_0x2a891f})})}),(0x0,g[_0x2a997e(0x38d)])(Me,{'label':_0x301c3a['t']('bases-dashboard-ui.dashboardInspector.textSize'),'children':[(0x0,g[_0x2a997e(0x23f)])(f[_0x2a997e(0x324)],{'items':[{'value':_0x2a997e(0x337),'label':_0x301c3a['t'](_0x2a997e(0x35d))},{'value':_0x2a997e(0x3f1),'label':_0x301c3a['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x1f6939['fontSizeMode'],'onChange':_0x58b0de=>_0x8a934({'fontSizeMode':_0x58b0de})}),_0x1f6939[_0x2a997e(0xfc)]===_0x2a997e(0x3f1)&&(0x0,g[_0x2a997e(0x23f)])(f[_0x2a997e(0x33a)],{'className':_0x2a997e(0x4d4),'min':0xa,'max':0x78,'value':_0x1f6939[_0x2a997e(0x2c0)],'onChange':_0x5df28f=>_0x8a934({'fontSize':_0x5df28f??0x12,'fontSizeMode':_0x2a997e(0x3f1)})})]})]});}function je({message:_0x301fd6}){const _0x169102=_0x30b590;return(0x0,g[_0x169102(0x23f)])('div',{'className':_0x169102(0x12e),'children':_0x301fd6});}function Me({children:_0x7e7c09,label:_0xb176bc}){const _0x309808=_0x30b590;return(0x0,g['jsxs'])('div',{'role':_0x309808(0x3b1),'aria-':!0x0,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[(0x0,g['jsx'])('span',{'children':_0xb176bc}),_0x7e7c09]});}function Ne(_0x4db607){const _0x466384=_0x30b590;return(_0x4db607==null?void 0x0:_0x4db607[_0x466384(0x11c)])===a[_0x466384(0x4a1)][_0x466384(0x2d0)]&&typeof _0x4db607[_0x466384(0x1ca)]==_0x466384(0x368)&&_0x4db607[_0x466384(0x1ca)]!==null&&_0x466384(0x258)in _0x4db607[_0x466384(0x1ca)]&&'chart'in _0x4db607[_0x466384(0x1ca)];}function Pe(_0x3b30f1){const _0x2a8a03=_0x30b590;switch(_0x3b30f1[_0x2a8a03(0x11c)]){case e[_0x2a8a03(0x1e4)][_0x2a8a03(0x3c7)]:return _0x2a8a03(0x4f5);case e[_0x2a8a03(0x1e4)][_0x2a8a03(0x326)]:return'bases-dashboard-ui.dashboard.tableFilter';case e['BaseDashboardWidgetType']['Text']:return _0x2a8a03(0x3b6);case e[_0x2a8a03(0x1e4)][_0x2a8a03(0x108)]:return _0x2a8a03(0x4b9);case e[_0x2a8a03(0x1e4)][_0x2a8a03(0x31c)]:return _0x2a8a03(0x2bd);}}function Fe({onDelete:_0x4ef602,onEdit:_0x5a1dac,onMoveUp:_0x2a8c17,onMoveDown:_0x20836b}){const _0x55808c=_0x30b590;let [_0x4383ad,_0x1bb5c9]=(0x0,h[_0x55808c(0x40a)])(!0x1),_0x455731=(0x0,m['useDependency'])(a[_0x55808c(0x3ea)]),_0x44cee7=_0x455731['t'](_0x55808c(0x2d9)),_0x2d5606=_0x455731['t'](_0x55808c(0x25b)),_0x2b1477=_0x455731['t'](_0x55808c(0x15b)),_0x4a163d=[{'type':'item','children':(0x0,g[_0x55808c(0x38d)])(_0x55808c(0x405),{'className':_0x55808c(0x307),'children':[(0x0,g[_0x55808c(0x23f)])(s[_0x55808c(0xf7)],{'className':'univer-size-4','aria-hidden':_0x55808c(0x445)}),(0x0,g[_0x55808c(0x23f)])('span',{'children':_0x44cee7})]}),'onSelect':_0x5a1dac},..._0x2a8c17?[{'type':_0x55808c(0x4b7),'children':(0x0,g['jsxs'])(_0x55808c(0x405),{'className':_0x55808c(0x307),'children':[(0x0,g[_0x55808c(0x23f)])(s[_0x55808c(0x4ab)],{'className':_0x55808c(0x40b),'aria-hidden':_0x55808c(0x445)}),(0x0,g['jsx'])(_0x55808c(0x405),{'children':_0x455731['t'](_0x55808c(0x203))})]}),'onSelect':_0x2a8c17}]:[],..._0x20836b?[{'type':_0x55808c(0x4b7),'children':(0x0,g[_0x55808c(0x38d)])(_0x55808c(0x405),{'className':_0x55808c(0x307),'children':[(0x0,g[_0x55808c(0x23f)])(s['ArrowDownIcon'],{'className':_0x55808c(0x40b),'aria-hidden':_0x55808c(0x445)}),(0x0,g[_0x55808c(0x23f)])(_0x55808c(0x405),{'children':_0x455731['t'](_0x55808c(0x4a5))})]}),'onSelect':_0x20836b}]:[],{'type':_0x55808c(0xe3)},{'type':_0x55808c(0x4b7),'variant':_0x55808c(0x4a2),'children':(0x0,g[_0x55808c(0x38d)])(_0x55808c(0x405),{'className':_0x55808c(0x307),'children':[(0x0,g[_0x55808c(0x23f)])(s[_0x55808c(0x15d)],{'className':_0x55808c(0x40b),'aria-hidden':_0x55808c(0x445)}),(0x0,g[_0x55808c(0x23f)])(_0x55808c(0x405),{'children':_0x2d5606})]}),'onSelect':_0x4ef602}];return(0x0,g[_0x55808c(0x23f)])(f['DropdownMenu'],{'open':_0x4383ad,'onOpenChange':_0x1bb5c9,'align':_0x55808c(0x19f),'sideOffset':0x4,'items':_0x4a163d[_0x55808c(0x48a)](_0x50769a=>({..._0x50769a,'className':_0x50769a['type']===_0x55808c(0x4b7)?_0x55808c(0x3e8):void 0x0})),'children':(0x0,g['jsx'])(f[_0x55808c(0x3da)],{'type':_0x55808c(0x1e9),'size':_0x55808c(0x301),'variant':_0x55808c(0x455),'onPointerDown':_0x4a53a1=>_0x4a53a1[_0x55808c(0x222)](),'onClick':()=>_0x1bb5c9(_0x3a6817=>!_0x3a6817),'title':_0x2b1477,'aria-label':_0x2b1477,'className':_0x55808c(0x44a),'children':(0x0,g[_0x55808c(0x23f)])(s['MoreHorizontalIcon'],{'className':'univer-size-4','aria-hidden':_0x55808c(0x445)})})});}function Ie({dashboardId:_0xf3541b,presentation:_0x3b5788=!0x1,unitId:_0x324b20}){const _0x42113a=_0x30b590;let _0x210b07=(0x0,m[_0x42113a(0x155)])(a[_0x42113a(0x495)]),_0x6346e7=(0x0,m[_0x42113a(0x155)])(a['ObjectPermissionService']);(0x0,m[_0x42113a(0xe2)])(_0x6346e7[_0x42113a(0x1f7)],0x0);let _0x49c893=(0x0,m[_0x42113a(0x155)])(a[_0x42113a(0x279)]),_0x198054=(0x0,m['useDependency'])(u[_0x42113a(0x45e)]),_0x2cae03=(0x0,m['useDependency'])(a['IImageIoService']),_0x15e2ed=(0x0,m['useDependency'])(a['IUniverInstanceService']),_0x3700ab=(0x0,m[_0x42113a(0x155)])(a[_0x42113a(0x3ea)]),_0x26fff3=(0x0,m['useDependency'])(e['BaseDashboardResourceService']),_0x415d9a=(0x0,m['useDependency'])(a['IUndoRedoService']),[_0x280aca,_0x36adcb]=(0x0,h['useState'])(!0x1),[_0x20f97a,_0x598ed0]=(0x0,h['useState'])(),[_0xc40e04,_0x2ee31f]=(0x0,h[_0x42113a(0x40a)])(!0x1),[_0x401eed,_0x4e6fde]=(0x0,h[_0x42113a(0x40a)])(()=>new Map()),_0x58cedd=(0x0,h[_0x42113a(0x4c3)])((_0x340a62,_0x4dd5ca)=>{_0x4e6fde(_0x31b059=>{const _0x1c2557=_0x1e15;let _0x4cc419=new Map(_0x31b059);return _0x4dd5ca?_0x4cc419[_0x1c2557(0x490)](_0x340a62,_0x4dd5ca):_0x4cc419[_0x1c2557(0x370)](_0x340a62),_0x4cc419;});},[]),_0x828c48=(0x0,m['useObservable'])(()=>_0x26fff3[_0x42113a(0x435)][_0x42113a(0x26c)]((0x0,c[_0x42113a(0x48a)])(()=>_0x26fff3[_0x42113a(0x499)](_0x324b20,_0xf3541b))),_0x26fff3[_0x42113a(0x499)](_0x324b20,_0xf3541b),!0x1,[_0xf3541b,_0x26fff3,_0x324b20]),_0x1a184f=_0x15e2ed[_0x42113a(0x3e7)](_0x324b20,a[_0x42113a(0x3d5)][_0x42113a(0x1a2)]),_0xa61fbf=(0x0,m[_0x42113a(0xe2)])(()=>_0x415d9a[_0x42113a(0x30c)],{'undos':0x0,'redos':0x0},!0x1,[_0x415d9a]),_0x2ffe1e=w(_0x324b20,_0xf3541b);if((0x0,h[_0x42113a(0x3dd)])(()=>{const _0x45e783=_0x42113a;_0x15e2ed['setCurrentUnitForType'](_0x324b20),_0x15e2ed[_0x45e783(0x10f)](_0x324b20);},[_0x15e2ed,_0x324b20]),!_0x828c48||!_0x1a184f)return null;let _0x434a3f={'unitId':_0x324b20,'objectId':(0x0,l[_0x42113a(0x148)])(_0xf3541b),'objectType':p[_0x42113a(0x29b)][_0x42113a(0x249)]},_0x337cda=(_0x5a9e56,_0x24dbf3)=>{const _0x4bc5b9=_0x42113a;let _0x2d4eac=[..._0x828c48[_0x4bc5b9(0x4c7)]],_0xd63833=_0x2d4eac[_0x4bc5b9(0x416)](_0x5a9e56),_0x3e3b4b=_0xd63833+_0x24dbf3;if(!(_0xd63833<0x0||_0x3e3b4b<0x0||_0x3e3b4b>=_0x2d4eac[_0x4bc5b9(0xf8)]))return[_0x2d4eac[_0xd63833],_0x2d4eac[_0x3e3b4b]]=[_0x2d4eac[_0x3e3b4b],_0x2d4eac[_0xd63833]],_0x49c893[_0x4bc5b9(0x387)](e[_0x4bc5b9(0x180)]['id'],{'unitId':_0x324b20,'dashboard':{..._0x828c48,'widgetOrder':_0x2d4eac}});},_0x1f27cb=_0x5639af=>_0x49c893['executeCommand'](e[_0x42113a(0x37d)]['id'],{'unitId':_0x324b20,'dashboardId':_0xf3541b,'widget':_0x5639af})['catch'](()=>void 0x0),_0x320651=(_0x2b3c19,_0x1b030f,_0x4bf11b)=>{const _0x61a087=_0x42113a;let _0x177477=Math[_0x61a087(0x26a)](0x0,..._0x828c48[_0x61a087(0x4c7)][_0x61a087(0x4e3)](_0xab80e4=>{const _0x38611c=_0x61a087;var _0x4bbc9a;let _0x6dc157=(_0x4bbc9a=_0x828c48['widgets'][_0xab80e4])==null?void 0x0:_0x4bbc9a['layout'];return _0x6dc157?[_0x6dc157[_0x38611c(0x15e)]+_0x6dc157[_0x38611c(0x4aa)]]:[];})),_0x18d66c='dashboard-widget-'+(0x0,a[_0x61a087(0x3f8)])(0x8),_0x340c7a={'column':0x0,'row':_0x177477,'columnSpan':_0x1b030f,'rowSpan':_0x4bf11b};switch(_0x2b3c19[_0x61a087(0x11c)]){case e[_0x61a087(0x1e4)][_0x61a087(0x3c7)]:return _0x1f27cb({..._0x2b3c19,'id':_0x18d66c,'layout':_0x340c7a});case e[_0x61a087(0x1e4)][_0x61a087(0x326)]:return _0x1f27cb({..._0x2b3c19,'id':_0x18d66c,'layout':_0x340c7a});case e[_0x61a087(0x1e4)][_0x61a087(0x115)]:return _0x1f27cb({..._0x2b3c19,'id':_0x18d66c,'layout':_0x340c7a});case e[_0x61a087(0x1e4)][_0x61a087(0x108)]:return _0x1f27cb({..._0x2b3c19,'id':_0x18d66c,'layout':_0x340c7a});case e[_0x61a087(0x1e4)][_0x61a087(0x31c)]:return _0x1f27cb({..._0x2b3c19,'id':_0x18d66c,'layout':_0x340c7a});}},_0x460d8d=_0x1a184f[_0x42113a(0x38b)](),_0x54a4e7=_0x460d8d[_0x42113a(0x473)][_0x42113a(0x4e3)](_0x20ecd6=>{const _0x25ab66=_0x42113a;let _0x58f30c=_0x460d8d['tables'][_0x20ecd6];if(!_0x58f30c)return[];let _0x33120d=_0x58f30c[_0x25ab66(0x36f)][_0x25ab66(0x4e3)](_0x28910c=>{const _0x2d80f4=_0x25ab66;let _0x57c4bc=_0x58f30c[_0x2d80f4(0x371)][_0x28910c];return We(_0x57c4bc)?[{'type':_0x2d80f4(0x4b7),'children':_0x57c4bc[_0x2d80f4(0x451)],'onSelect':()=>_0x320651({'type':e[_0x2d80f4(0x1e4)]['PivotChart'],'tableId':_0x20ecd6,'pivotViewId':_0x28910c,'chart':{..._0x57c4bc[_0x2d80f4(0x1ca)][_0x2d80f4(0xd9)]}},0x6,0xa)}]:[];});return[{'type':_0x25ab66(0x3e4),'children':_0x58f30c[_0x25ab66(0x451)],'options':[..._0x33120d,..._0x33120d[_0x25ab66(0xf8)]?[{'type':_0x25ab66(0xe3)}]:[],{'type':_0x25ab66(0x4b7),'children':_0x3700ab['t'](_0x25ab66(0x2cc)),'onSelect':()=>_0x320651({'type':e[_0x25ab66(0x1e4)]['TableFilter'],'tableId':_0x20ecd6,'filter':null},0x6,0x8)}]}];}),_0x28ee50=[..._0x54a4e7,..._0x54a4e7[_0x42113a(0xf8)]?[{'type':_0x42113a(0xe3)}]:[],{'type':_0x42113a(0x4b7),'children':_0x3700ab['t']('bases-dashboard-ui.dashboard.text'),'onSelect':()=>_0x320651({'type':e['BaseDashboardWidgetType'][_0x42113a(0x115)],'document':Be()},0x4,0x6)},{'type':_0x42113a(0x4b7),'children':_0x3700ab['t'](_0x42113a(0x4b9)),'onSelect':()=>Ve(_0x198054)[_0x42113a(0xeb)](_0x56dc33=>_0x56dc33&&_0x320651({'type':e['BaseDashboardWidgetType'][_0x42113a(0x108)],'source':_0x56dc33['source'],'sourceType':_0x56dc33[_0x42113a(0x109)],'alt':_0x56dc33[_0x42113a(0x451)],'displayMode':_0x42113a(0x225)},0x4,0x6))},{'type':_0x42113a(0x4b7),'children':_0x3700ab['t'](_0x42113a(0x2bd)),'onSelect':()=>{const _0x59c1f7=_0x42113a;let _0xf188de=_0x460d8d[_0x59c1f7(0x473)][_0x59c1f7(0x41e)](_0x2d10cb=>_0x460d8d[_0x59c1f7(0x4fe)][_0x2d10cb]);_0xf188de&&_0x320651({'type':e[_0x59c1f7(0x1e4)][_0x59c1f7(0x31c)],'tableId':_0xf188de,'shapeType':d[_0x59c1f7(0x41c)][_0x59c1f7(0x30e)],'shapeData':(0x0,i[_0x59c1f7(0x159)])(),'description':_0x3700ab['t'](_0x59c1f7(0x2bd))},0x4,0x6);}}],_0x1b899c=_0x20f97a?_0x828c48[_0x42113a(0x110)][_0x20f97a]:void 0x0,_0x49eac4=()=>_0x2ee31f(_0x2cdd09=>!_0x2cdd09),_0x28f384=_0x3b5788||_0xc40e04,_0x15b60c=_0x2ffe1e&&!_0x28f384;return(0x0,g[_0x42113a(0x23f)])(ue,{'children':(0x0,g[_0x42113a(0x38d)])(_0x42113a(0x460),{'className':'\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'+(_0xc40e04?'univer-fixed\x20univer-inset-0\x20univer-z-[1000]':_0x42113a(0x49c))+_0x42113a(0x1c0),'children':[_0xc40e04&&(0x0,g[_0x42113a(0x23f)])(f[_0x42113a(0x3da)],{'onClick':()=>_0x2ee31f(!0x1),'children':_0x3700ab['t'](_0x42113a(0x162))}),!_0x28f384&&(0x0,g[_0x42113a(0x38d)])(_0x42113a(0x4f6),{'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':[(0x0,g[_0x42113a(0x23f)])(s[_0x42113a(0xf6)],{'className':_0x42113a(0x471)}),(0x0,g[_0x42113a(0x23f)])('h2',{'className':_0x42113a(0x431),'children':_0x828c48[_0x42113a(0x451)]}),_0x6346e7[_0x42113a(0x468)](_0x434a3f)&&(0x0,g[_0x42113a(0x23f)])(f[_0x42113a(0x3da)],{'variant':_0x42113a(0x455),'disabled':!_0x6346e7['canView'](_0x434a3f),'aria-label':_0x3700ab['t'](_0x42113a(0x145)),'onClick':()=>{const _0x87080a=_0x42113a;(0x0,m[_0x87080a(0x169)])(_0x210b07,{'target':_0x434a3f,'name':_0x828c48[_0x87080a(0x451)],'commandId':l[_0x87080a(0x33d)]['id'],'exists':()=>!!_0x26fff3[_0x87080a(0x499)](_0x324b20,_0xf3541b)});},'children':(0x0,g[_0x42113a(0x23f)])(s[_0x42113a(0x4e1)],{})}),(0x0,g['jsx'])(t[_0x42113a(0x388)],{'unitId':_0x324b20}),(0x0,g['jsx'])(f['Button'],{'type':_0x42113a(0x1e9),'size':_0x42113a(0x301),'variant':_0x42113a(0x455),'aria-label':_0x3700ab['t'](_0x42113a(0x417)),'disabled':!_0x2ffe1e||_0xa61fbf[_0x42113a(0x37a)]===0x0,'onClick':()=>_0x49c893[_0x42113a(0x387)](a['UndoCommand']['id'])[_0x42113a(0x29c)](()=>void 0x0),'children':(0x0,g[_0x42113a(0x23f)])(s[_0x42113a(0x20e)],{})}),(0x0,g['jsx'])(f[_0x42113a(0x3da)],{'type':_0x42113a(0x1e9),'size':'small','variant':_0x42113a(0x455),'aria-label':_0x3700ab['t'](_0x42113a(0x28e)),'disabled':!_0x2ffe1e||_0xa61fbf[_0x42113a(0x2c6)]===0x0,'onClick':()=>_0x49c893[_0x42113a(0x387)](a[_0x42113a(0x3ec)]['id'])['catch'](()=>void 0x0),'children':(0x0,g[_0x42113a(0x23f)])(s[_0x42113a(0x304)],{})}),(0x0,g[_0x42113a(0x23f)])(f[_0x42113a(0x3da)],{'type':_0x42113a(0x1e9),'size':_0x42113a(0x301),'variant':_0x42113a(0x455),'aria-label':_0x3700ab['t'](_0x42113a(0x1bb)),'onClick':_0x49eac4,'children':(0x0,g[_0x42113a(0x23f)])(s[_0x42113a(0x272)],{})}),(0x0,g['jsx'])(de,{'items':_0x28ee50,'children':(0x0,g[_0x42113a(0x38d)])(f[_0x42113a(0x3da)],{'variant':'primary','disabled':!_0x2ffe1e,'children':[(0x0,g[_0x42113a(0x23f)])(s[_0x42113a(0x335)],{}),_0x3700ab['t'](_0x42113a(0x4a7))]})})]}),(0x0,g[_0x42113a(0x38d)])(_0x42113a(0x460),{'className':_0x42113a(0xe9),'children':[(0x0,g['jsx'])(_0x42113a(0x460),{'className':'univer-min-w-0\x20univer-flex-1','children':(0x0,g[_0x42113a(0x23f)])(le,{'dashboard':_0x828c48,'editable':_0x15b60c,'widgetLabel':_0x43a996=>_0x3700ab['t'](Ue(_0x43a996[_0x42113a(0x11c)])),'selectedWidgetId':_0x15b60c?_0x20f97a:void 0x0,'onSelectWidget':_0x15b60c?_0x87a857=>{_0x598ed0(_0x87a857),_0x87a857||_0x36adcb(!0x1);}:void 0x0,'renderWidget':_0x3aa8c2=>(0x0,g[_0x42113a(0x23f)])(Le,{'base':_0x1a184f,'dashboard':_0x828c48,'unitId':_0x324b20,'widget':_0x3aa8c2,'onChange':_0x1f27cb,'onChartRuntimeChange':_0x58cedd}),'renderWidgetActions':_0x5d1765=>(0x0,g[_0x42113a(0x23f)])(Fe,{'onMoveUp':_0x828c48[_0x42113a(0x4c7)]['indexOf'](_0x5d1765['id'])>0x0?()=>_0x337cda(_0x5d1765['id'],-0x1):void 0x0,'onMoveDown':_0x828c48[_0x42113a(0x4c7)][_0x42113a(0x416)](_0x5d1765['id'])<_0x828c48['widgetOrder'][_0x42113a(0xf8)]-0x1?()=>_0x337cda(_0x5d1765['id'],0x1):void 0x0,'onEdit':()=>{_0x598ed0(_0x5d1765['id']),_0x36adcb(!0x0);},'onDelete':()=>{const _0x3be0ed=_0x42113a;_0x20f97a===_0x5d1765['id']&&(_0x598ed0(void 0x0),_0x36adcb(!0x1)),_0x49c893[_0x3be0ed(0x387)](e[_0x3be0ed(0x340)]['id'],{'unitId':_0x324b20,'dashboardId':_0xf3541b,'widgetId':_0x5d1765['id']})[_0x3be0ed(0x29c)](()=>void 0x0);}})})}),_0x15b60c&&_0x280aca&&_0x1b899c&&(0x0,g[_0x42113a(0x23f)])(De,{'base':_0x1a184f,'chartRuntime':_0x401eed[_0x42113a(0x4ae)](_0x1b899c['id']),'unitId':_0x324b20,'widget':_0x1b899c,'onChange':_0x1f27cb,'onClose':()=>_0x36adcb(!0x1),'onSelectBackgroundImage':()=>He(_0x2cae03),'onSelectImage':()=>Ve(_0x198054)})]})]})});}function Le({base:_0xf2b37c,dashboard:_0x92ceb4,onChange:_0x173403,onChartRuntimeChange:_0x80e4f4,unitId:_0x3d154a,widget:_0x4feea7}){const _0x1c44f0=_0x30b590;let _0x223d5d=(0x0,h[_0x1c44f0(0x2c1)])(()=>_0x92ceb4[_0x1c44f0(0x4c7)][_0x1c44f0(0x4e3)](_0x38ffd0=>{const _0x5d9b2f=_0x1c44f0;let _0xe8cf59=_0x92ceb4[_0x5d9b2f(0x110)][_0x38ffd0];return(_0xe8cf59==null?void 0x0:_0xe8cf59[_0x5d9b2f(0x11c)])===e['BaseDashboardWidgetType']['TableFilter']&&_0xe8cf59[_0x5d9b2f(0x3d3)]===(_0x5d9b2f(0x3d3)in _0x4feea7?_0x4feea7[_0x5d9b2f(0x3d3)]:'')&&_0xe8cf59[_0x5d9b2f(0x141)]?[_0xe8cf59[_0x5d9b2f(0x141)]]:[];}),[_0x92ceb4,_0x4feea7]);switch(_0x4feea7[_0x1c44f0(0x11c)]){case e[_0x1c44f0(0x1e4)][_0x1c44f0(0x3c7)]:return(0x0,g[_0x1c44f0(0x23f)])(ie,{'filters':_0x223d5d,'unitId':_0x3d154a,'widget':_0x4feea7,'onRuntimeChange':_0x80e4f4});case e['BaseDashboardWidgetType']['TableFilter']:return(0x0,g[_0x1c44f0(0x23f)])(Te,{'fields':Re(_0xf2b37c,_0x4feea7[_0x1c44f0(0x3d3)]),'filter':_0x4feea7['filter'],'onChange':_0x50b868=>_0x173403({..._0x4feea7,'filter':_0x50b868})['catch'](()=>void 0x0)});case e[_0x1c44f0(0x1e4)][_0x1c44f0(0x115)]:return(0x0,g[_0x1c44f0(0x23f)])(ce,{'widget':_0x4feea7});case e[_0x1c44f0(0x1e4)][_0x1c44f0(0x108)]:return(0x0,g[_0x1c44f0(0x23f)])(ze,{'widget':_0x4feea7});case e[_0x1c44f0(0x1e4)][_0x1c44f0(0x31c)]:return(0x0,g[_0x1c44f0(0x23f)])(M,{'dashboardId':_0x92ceb4['id'],'unitId':_0x3d154a,'widget':_0x4feea7});}}function Re(_0x503da8,_0x40402c){const _0x33449c=_0x30b590;let _0x5a171f=_0x503da8[_0x33449c(0x38b)]()['tables'][_0x40402c],_0x3f19b3=_0x5a171f==null?void 0x0:_0x5a171f[_0x33449c(0x36f)]['find'](_0x3c325d=>_0x5a171f[_0x33449c(0x371)][_0x3c325d]),_0x553ca9=_0x3f19b3?_0x5a171f==null?void 0x0:_0x5a171f[_0x33449c(0x371)][_0x3f19b3]:void 0x0;return _0x5a171f&&_0x553ca9?(0x0,t['toMenuFields'])(_0x5a171f,_0x553ca9):[];}function ze({widget:_0x3a327a}){const _0x2bbd0b=_0x30b590;let _0x389859=(0x0,m['useDependency'])(u['IAttachmentIoService']),[_0x5acbe2,_0x5d0cb2]=(0x0,h[_0x2bbd0b(0x40a)])(_0x3a327a[_0x2bbd0b(0x109)]===a[_0x2bbd0b(0x30b)]['UUID']?'':_0x3a327a[_0x2bbd0b(0x23a)]);return(0x0,h[_0x2bbd0b(0x3dd)])(()=>{const _0x555f73=_0x2bbd0b;let _0x3e3579=!0x0;return _0x389859[_0x555f73(0x17c)](_0x3a327a[_0x555f73(0x23a)],_0x3a327a[_0x555f73(0x109)])[_0x555f73(0xeb)](_0x3c5233=>{_0x3e3579&&_0x5d0cb2(_0x3c5233);})[_0x555f73(0x29c)](()=>void 0x0),()=>{_0x3e3579=!0x1;};},[_0x389859,_0x3a327a['source'],_0x3a327a[_0x2bbd0b(0x109)]]),_0x5acbe2?(0x0,g[_0x2bbd0b(0x23f)])(_0x2bbd0b(0x460),{'role':_0x3a327a[_0x2bbd0b(0x2aa)]?_0x2bbd0b(0x1db):void 0x0,'aria-label':_0x3a327a[_0x2bbd0b(0x2aa)]||void 0x0,'data-dashboard-image':_0x3a327a['id'],'className':'univer-h-full\x20univer-w-full\x20univer-bg-transparent','style':E(_0x5acbe2,_0x3a327a[_0x2bbd0b(0x10e)])}):null;}function Be(){const _0x3c28fb=_0x30b590;let _0x2b1e94=(0x0,a['createParagraphId'])(new Set());return{'id':_0x3c28fb(0x43f)+(0x0,a[_0x3c28fb(0x3f8)])(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x2b1e94}]},'documentStyle':{}};}function Ve(_0x1fafe0){return new Promise(_0x111979=>{const _0x390321=_0x1e15;let _0x38dc4e=document['createElement'](_0x390321(0x238));_0x38dc4e[_0x390321(0x11c)]=_0x390321(0x2fa),_0x38dc4e[_0x390321(0x4b5)]=_0x390321(0x497),_0x38dc4e[_0x390321(0x42d)]('change',()=>{const _0x3befb2=_0x390321;var _0x30e50b;let _0x543c33=(_0x30e50b=_0x38dc4e[_0x3befb2(0x2c8)])==null?void 0x0:_0x30e50b[0x0];_0x543c33?_0x1fafe0[_0x3befb2(0x2ab)](_0x543c33)[_0x3befb2(0xeb)](_0x1fe3a8=>{const _0x93550e=_0x3befb2;!_0x1fe3a8[_0x93550e(0x23a)]||_0x1fe3a8[_0x93550e(0x109)]===void 0x0?_0x111979(null):_0x111979({'name':_0x1fe3a8[_0x93550e(0x451)],'source':_0x1fe3a8[_0x93550e(0x23a)],'sourceType':_0x1fe3a8['sourceType']});})[_0x3befb2(0x29c)](()=>_0x111979(null)):_0x111979(null);},{'once':!0x0}),_0x38dc4e['click']();});}function He(_0x33fd90){return new Promise(_0x2bac86=>{const _0x4342da=_0x1e15;let _0x5eb571=document[_0x4342da(0x427)](_0x4342da(0x238));_0x5eb571[_0x4342da(0x11c)]=_0x4342da(0x2fa),_0x5eb571[_0x4342da(0x4b5)]='image/*',_0x5eb571[_0x4342da(0x42d)](_0x4342da(0x49d),()=>{var _0x3891c9;let _0x43fe9b=(_0x3891c9=_0x5eb571['files'])==null?void 0x0:_0x3891c9[0x0];_0x43fe9b?_0x33fd90['saveImage'](_0x43fe9b)['then'](_0x3916cc=>{const _0x4702dc=_0x1e15;if(!(_0x3916cc!=null&&_0x3916cc[_0x4702dc(0x23a)]))_0x2bac86(null);else{if(_0x3916cc[_0x4702dc(0x228)]){let _0x480c19=new Image();_0x480c19['src']=_0x3916cc[_0x4702dc(0x228)],_0x33fd90['addImageSourceCache'](_0x3916cc[_0x4702dc(0x23a)],_0x3916cc[_0x4702dc(0x200)],_0x480c19);}_0x2bac86({'source':_0x3916cc[_0x4702dc(0x23a)],'sourceType':_0x3916cc[_0x4702dc(0x200)]});}})['catch'](()=>_0x2bac86(null)):_0x2bac86(null);},{'once':!0x0}),_0x5eb571['click']();});}function Ue(_0x7b743a){const _0x374c07=_0x30b590;switch(_0x7b743a){case e[_0x374c07(0x1e4)]['PivotChart']:return _0x374c07(0x4f5);case e['BaseDashboardWidgetType'][_0x374c07(0x326)]:return _0x374c07(0x2cc);case e['BaseDashboardWidgetType']['Text']:return _0x374c07(0x3b6);case e[_0x374c07(0x1e4)][_0x374c07(0x108)]:return'bases-dashboard-ui.dashboard.image';case e[_0x374c07(0x1e4)][_0x374c07(0x31c)]:return _0x374c07(0x2bd);}}function We(_0x2fd353){const _0x563862=_0x30b590;return(_0x2fd353==null?void 0x0:_0x2fd353[_0x563862(0x11c)])===a[_0x563862(0x4a1)]['Pivot']&&typeof _0x2fd353[_0x563862(0x1ca)]==_0x563862(0x368)&&_0x2fd353['config']!==null&&_0x563862(0x258)in _0x2fd353[_0x563862(0x1ca)]&&_0x563862(0xd9)in _0x2fd353[_0x563862(0x1ca)];}function Ge({pivot:_0x55870f,view:_0x36f207}){const _0x126d59=_0x30b590;let _0x293669=(0x0,m[_0x126d59(0x155)])(a[_0x126d59(0x3ea)]),_0x114a20=(0x0,h[_0x126d59(0x2c1)])(()=>Ke(_0x36f207,_0x55870f,_0x293669['t'](_0x126d59(0x2fb))),[_0x293669,_0x55870f,_0x36f207]);return(0x0,g[_0x126d59(0x38d)])('div',{'className':_0x126d59(0x154),'children':[_0x114a20[_0x126d59(0x3eb)][_0x126d59(0xf8)]>0x0&&(0x0,g[_0x126d59(0x23f)])(_0x126d59(0x4da),{'className':_0x126d59(0x1d7),'children':(0x0,g[_0x126d59(0x23f)])(_0x126d59(0x41f),{'children':qe(_0x114a20['pageRows'])})}),(0x0,g[_0x126d59(0x38d)])('table',{'className':_0x126d59(0x4ee),'children':[_0x114a20[_0x126d59(0x253)]>0x0&&(0x0,g['jsx'])(_0x126d59(0xe0),{'className':_0x126d59(0x18f),'children':qe(_0x114a20[_0x126d59(0x129)][_0x126d59(0x34d)](0x0,_0x114a20['headerRowCount']))}),(0x0,g['jsx'])('tbody',{'children':qe(_0x114a20[_0x126d59(0x129)][_0x126d59(0x34d)](_0x114a20['headerRowCount']))})]})]});}function Ke(_0x529d51,_0x3260d9,_0x2951c5){const _0x1cb00c=_0x30b590;let _0x583537=_0x529d51['colView'][_0x1cb00c(0x318)],_0x23543a=_0x529d51['rowView'][_0x1cb00c(0x38e)],_0x1424e7=_0x529d51[_0x1cb00c(0x4f3)][_0x1cb00c(0x318)],_0x12547f=_0x529d51[_0x1cb00c(0x4f3)][_0x1cb00c(0x38e)],_0x42854f=Array[_0x1cb00c(0x443)]({'length':_0x583537+_0x1424e7},(_0x249095,_0x4be753)=>Array['from']({'length':_0x23543a+_0x12547f},(_0x1155ec,_0x3ccc30)=>{const _0x34db36=_0x1cb00c;var _0x10ad9f,_0x440677;if(_0x4be753<_0x583537&&_0x3ccc30<_0x23543a)return Je(_0x529d51[_0x34db36(0x419)],_0x4be753,_0x3ccc30,void 0x0,_0x2951c5,!0x0,!0x1,_0x34db36(0x385)+_0x4be753+':'+_0x3ccc30);if(_0x4be753<_0x583537){var _0x14f0c9;let _0x3f4203=_0x3ccc30-_0x23543a,_0x65b9e0=(_0x14f0c9=_0x529d51['colView'][_0x34db36(0x20f)][_0x4be753])==null?void 0x0:_0x14f0c9[_0x34db36(0x2a2)];return Je(_0x529d51[_0x34db36(0x132)],_0x4be753,_0x3f4203,_0x65b9e0?_0x529d51['formatMap'][_0x65b9e0]:void 0x0,_0x2951c5,!0x0,Ze(_0x529d51[_0x34db36(0x132)]['info'][_0x3f4203]),_0x34db36(0x38c)+_0x4be753+':'+_0x3f4203);}if(_0x3ccc30<_0x23543a){var _0x2e4608;let _0xaf1907=_0x4be753-_0x583537,_0xab56b8=(_0x2e4608=_0x529d51[_0x34db36(0x4b0)][_0x34db36(0x20f)][_0x3ccc30])==null?void 0x0:_0x2e4608[_0x34db36(0x2a2)];return Je(_0x529d51[_0x34db36(0x4b0)],_0xaf1907,_0x3ccc30,_0xab56b8?_0x529d51[_0x34db36(0x1bd)][_0xab56b8]:void 0x0,_0x2951c5,!0x0,Ze(_0x529d51['rowView'][_0x34db36(0x4ce)][_0xaf1907]),_0x34db36(0x377)+_0xaf1907+':'+_0x3ccc30);}let _0x48cac2=_0x4be753-_0x583537,_0x1f6b9d=_0x3ccc30-_0x23543a,_0x41d7f8=Math[_0x34db36(0x26a)](((_0x10ad9f=_0x529d51[_0x34db36(0x4b0)][_0x34db36(0x4ce)][_0x48cac2])==null?void 0x0:_0x10ad9f[_0x34db36(0x4c1)])??-0x1,((_0x440677=_0x529d51[_0x34db36(0x132)][_0x34db36(0x4ce)][_0x1f6b9d])==null?void 0x0:_0x440677[_0x34db36(0x4c1)])??-0x1),_0x16f09f=_0x3260d9[_0x34db36(0x338)][_0x41d7f8<0x0?0x0:_0x41d7f8];return Je(_0x529d51[_0x34db36(0x4f3)],_0x48cac2,_0x1f6b9d,_0x16f09f?_0x529d51[_0x34db36(0x1bd)][_0x16f09f]:void 0x0,_0x2951c5,!0x1,Ze(_0x529d51[_0x34db36(0x4b0)][_0x34db36(0x4ce)][_0x48cac2])||Ze(_0x529d51[_0x34db36(0x132)][_0x34db36(0x4ce)][_0x1f6b9d]),'data:'+_0x48cac2+':'+_0x1f6b9d);}));return{'headerColumnCount':_0x23543a,'headerRowCount':_0x583537,'pageRows':_0x529d51[_0x1cb00c(0x10d)]['lastRow']<0x0||_0x529d51[_0x1cb00c(0x10d)][_0x1cb00c(0x4be)]<0x0?[]:Array[_0x1cb00c(0x443)]({'length':_0x529d51[_0x1cb00c(0x10d)][_0x1cb00c(0x185)]+0x1},(_0x28a3a8,_0x323e2c)=>Array[_0x1cb00c(0x443)]({'length':_0x529d51['pageView']['lastCol']+0x1},(_0x5d5cab,_0x26e6f3)=>Je(_0x529d51[_0x1cb00c(0x10d)],_0x323e2c,_0x26e6f3,void 0x0,_0x2951c5,!0x0,!0x1,'page:'+_0x323e2c+':'+_0x26e6f3))),'rows':_0x42854f};}function qe(_0x3da1f7){return _0x3da1f7['map'](_0x3897be=>{const _0x57ca89=_0x1e15;var _0x313146;return(0x0,g[_0x57ca89(0x23f)])('tr',{'children':_0x3897be['map'](_0xa651f6=>{const _0x1afb23=_0x57ca89;let _0x1d1f52=_0xa651f6[_0x1afb23(0x3f0)]?'th':'td';return(0x0,g[_0x1afb23(0x23f)])(_0x1d1f52,{'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'+(_0xa651f6['isTotal']?_0x1afb23(0x215):'')+_0x1afb23(0x320)+(_0xa651f6[_0x1afb23(0x3f0)]?'':'univer-text-right')+_0x1afb23(0x1b0),'children':_0xa651f6[_0x1afb23(0x351)]},_0xa651f6[_0x1afb23(0x2d3)]);})},(_0x313146=_0x3897be[0x0])==null?void 0x0:_0x313146['key']);});}function Je(_0x289f21,_0x36f134,_0x4cee7b,_0x2d0fbe,_0x512d98,_0x2dce23,_0x4177e6,_0x4e90ff){const _0x4e7e3c=_0x30b590;var _0x260580;let _0x5042ae=(_0x260580=_0x289f21[_0x4e7e3c(0x457)][_0x36f134])==null?void 0x0:_0x260580[_0x4cee7b],_0x2e3a71=_0x5042ae==null?void 0x0:_0x5042ae['s'],_0x5368cd=_0x4177e6||_0x2e3a71===y[_0x4e7e3c(0x2c5)][_0x4e7e3c(0x273)]||_0x2e3a71===y[_0x4e7e3c(0x2c5)][_0x4e7e3c(0x201)];return{'isHeader':_0x2dce23,'isTotal':_0x5368cd||_0x2e3a71===y['PivotCellStyleTypeEnum'][_0x4e7e3c(0x124)],'key':_0x4e90ff,'style':_0x2e3a71,'value':_0x5368cd&&Xe(_0x5042ae==null?void 0x0:_0x5042ae['v'])?_0x512d98:Ye(_0x5042ae,_0x2d0fbe)};}function Ye(_0x490ec7,_0x392a39){const _0xd1f1c4=_0x30b590;let _0x18d59c=_0x490ec7==null?void 0x0:_0x490ec7['v'];return(0x0,y[_0xd1f1c4(0x3e1)])(_0x18d59c)?String(_0x18d59c[_0xd1f1c4(0x351)]??_0x18d59c[_0xd1f1c4(0x1cd)]??''):(0x0,y[_0xd1f1c4(0x30f)])(_0x18d59c)?'#'+_0x18d59c[_0xd1f1c4(0x4ac)]:_0x392a39&&typeof _0x18d59c==_0xd1f1c4(0x493)?a['numfmt'][_0xd1f1c4(0x462)](_0x392a39,_0x18d59c):String(_0x18d59c??'');}function Xe(_0x3c9981){return _0x3c9981===void 0x0||_0x3c9981==='';}function Ze(_0x37d2c1){const _0x926a3c=_0x30b590;return!!(_0x37d2c1!=null&&_0x37d2c1[_0x926a3c(0x212)]||_0x37d2c1!=null&&_0x37d2c1[_0x926a3c(0x196)]||_0x37d2c1!=null&&_0x37d2c1[_0x926a3c(0x1c4)]||(_0x37d2c1==null?void 0x0:_0x37d2c1['rowType'])===_0x926a3c(0x403));}const Qe=[{'area':y['PivotTableFiledAreaEnum']['Filter'],'key':_0x30b590(0x3c8),'label':_0x30b590(0xd3)},{'area':y[_0x30b590(0xd8)]['Column'],'key':_0x30b590(0x256),'label':_0x30b590(0x43d)},{'area':y['PivotTableFiledAreaEnum'][_0x30b590(0x44f)],'key':_0x30b590(0x191),'label':_0x30b590(0x24b)},{'area':y[_0x30b590(0xd8)][_0x30b590(0x19b)],'key':'valueFields','label':_0x30b590(0x39b)}],$e=[{'value':y[_0x30b590(0x312)]['sum'],'localeKey':_0x30b590(0x3d7)},{'value':y[_0x30b590(0x312)][_0x30b590(0x379)],'localeKey':'bases-dashboard-ui.pivot.count'},{'value':y[_0x30b590(0x312)]['countNums'],'localeKey':'bases-dashboard-ui.pivot.countNumbers'},{'value':y['PivotSubtotalTypeEnum'][_0x30b590(0x4d8)],'localeKey':'bases-dashboard-ui.pivot.average'},{'value':y[_0x30b590(0x312)][_0x30b590(0x26a)],'localeKey':_0x30b590(0x1d2)},{'value':y[_0x30b590(0x312)]['min'],'localeKey':_0x30b590(0x1ce)},{'value':y[_0x30b590(0x312)][_0x30b590(0x32d)],'localeKey':'bases-dashboard-ui.pivot.product'},{'value':y[_0x30b590(0x312)][_0x30b590(0x4e5)],'localeKey':_0x30b590(0x375)},{'value':y[_0x30b590(0x312)]['stdDevp'],'localeKey':_0x30b590(0x1b5)},{'value':y['PivotSubtotalTypeEnum']['var'],'localeKey':_0x30b590(0x446)},{'value':y[_0x30b590(0x312)][_0x30b590(0x107)],'localeKey':_0x30b590(0x1a0)}];function et(_0xd1adf7){const _0x10ca33=_0x30b590;let {config:_0x55c202,onChange:_0x309493,table:_0x3b4067}=_0xd1adf7,_0x44ac2d=(0x0,m[_0x10ca33(0x155)])(a[_0x10ca33(0x3ea)]),[_0x2fe6f0,_0x3caaee]=(0x0,h[_0x10ca33(0x40a)])(_0x10ca33(0x3c6)),[_0x51f9c0,_0x24675a]=(0x0,h[_0x10ca33(0x40a)])(''),[_0x4fa926,_0x40d95b]=(0x0,h[_0x10ca33(0x40a)])(null),[_0x26ae9f,_0x148322]=(0x0,h[_0x10ca33(0x40a)])(null),[_0x287df2,_0x40fad0]=(0x0,h[_0x10ca33(0x40a)])(null),[_0xf5e19d,_0x196d27]=(0x0,h[_0x10ca33(0x40a)])(null),_0xf2a435=(0x0,h[_0x10ca33(0x414)])(null),_0x1dfaec=(0x0,h[_0x10ca33(0x2c1)])(()=>_0x3b4067[_0x10ca33(0x2f0)][_0x10ca33(0x4e3)](_0xec4f5a=>{const _0x406f08=_0x10ca33;let _0x203c20=_0x3b4067['fields'][_0xec4f5a];return _0x203c20&&_0x203c20['system']!==!0x0&&_0x203c20[_0x406f08(0x11c)]!==a[_0x406f08(0x1d5)]['RecordId']?[_0x203c20]:[];})['filter'](_0x2ddab2=>_0x2ddab2[_0x10ca33(0x451)]['toLocaleLowerCase']()[_0x10ca33(0x30a)](_0x51f9c0[_0x10ca33(0x342)]()[_0x10ca33(0x144)]())),[_0x51f9c0,_0x3b4067]),_0x4ffd7b=_0x1c5641=>{const _0x15feec=_0x10ca33;let _0x4c81b8=(0x0,e[_0x15feec(0x17a)])(_0x3b4067,_0x55c202['pivot']);try{_0x1c5641(_0x4c81b8),_0x309493({'pivot':_0x4c81b8[_0x15feec(0x322)]()});}finally{_0x4c81b8['dispose']();}},_0xe1df4=(_0x567ceb,_0x2a4d57)=>{_0x4fa926&&(_0x4ffd7b(_0x1ab661=>{const _0x1a6bdf=_0x1e15;if(_0x4fa926['kind']===_0x1a6bdf(0x492)){let _0x89c7c8=_0x1ab661['getFieldPositionInfoById'](_0x4fa926['id']),_0x2af94b=_0x89c7c8['area']===_0x567ceb&&_0x89c7c8[_0x1a6bdf(0x489)]<_0x2a4d57?_0x2a4d57-0x1:_0x2a4d57;_0x1ab661[_0x1a6bdf(0x3ad)](_0x4fa926['id'],_0x567ceb,_0x2af94b);}else ct(_0x1ab661,_0x4fa926['id'],_0x567ceb,_0x2a4d57);}),_0x40d95b(null),_0x148322(null));};return(0x0,g[_0x10ca33(0x38d)])(_0x10ca33(0x460),{'className':_0x10ca33(0x461),'children':[(0x0,g[_0x10ca33(0x23f)])(n[_0x10ca33(0x22f)],{'ariaLabel':_0x44ac2d['t'](_0x10ca33(0x46b)),'className':_0x10ca33(0x22d),'items':[{'label':_0x44ac2d['t'](_0x10ca33(0x4c6)),'panelId':_0x10ca33(0x3cc),'value':_0x10ca33(0x3c6)},{'label':_0x44ac2d['t'](_0x10ca33(0x21d)),'panelId':_0x10ca33(0x3bc),'value':_0x10ca33(0x45a)}],'value':_0x2fe6f0,'onChange':_0x3caaee}),(0x0,g[_0x10ca33(0x23f)])(_0x10ca33(0x460),{'ref':_0xf2a435,'className':(0x0,f[_0x10ca33(0x373)])(_0x10ca33(0x294),f['scrollbarClassName']),'onDragOver':_0x569f4f=>{const _0xf2d00a=_0x10ca33;let _0x4a60a3=_0xf2a435[_0xf2d00a(0x216)];if(!_0x4a60a3)return;let _0x2d97fe=_0x4a60a3[_0xf2d00a(0x118)]();_0x569f4f['clientY']<_0x2d97fe[_0xf2d00a(0x291)]+0x30?_0x4a60a3['scrollTop']-=0x10:_0x569f4f[_0xf2d00a(0x12f)]>_0x2d97fe[_0xf2d00a(0x1c3)]-0x30&&(_0x4a60a3[_0xf2d00a(0x2a0)]+=0x10);},'children':_0x2fe6f0===_0x10ca33(0x45a)?(0x0,g[_0x10ca33(0x23f)])(st,{'config':_0x55c202,'commit':_0x4ffd7b}):(0x0,g['jsxs'])(_0x10ca33(0x460),{'className':_0x10ca33(0x27e),'children':[(0x0,g[_0x10ca33(0x38d)])('div',{'children':[(0x0,g[_0x10ca33(0x23f)])(_0x10ca33(0x460),{'className':_0x10ca33(0x439),'children':_0x44ac2d['t'](_0x10ca33(0x1e3))}),(0x0,g[_0x10ca33(0x23f)])(f[_0x10ca33(0x104)],{'allowClear':!0x0,'slot':(0x0,g[_0x10ca33(0x23f)])(s['SearchIcon'],{}),'value':_0x51f9c0,'placeholder':_0x44ac2d['t'](_0x10ca33(0x176)),'onChange':_0x24675a}),(0x0,g[_0x10ca33(0x23f)])(_0x10ca33(0x460),{'className':_0x10ca33(0x1e1),'children':_0x1dfaec[_0x10ca33(0x48a)](_0xb2ccbf=>(0x0,g[_0x10ca33(0x23f)])(tt,{'config':_0x55c202,'field':_0xb2ccbf,'onAdd':_0x2f700f=>_0x4ffd7b(_0x596ac7=>ct(_0x596ac7,_0xb2ccbf['id'],_0x2f700f,_0x596ac7[_0x10ca33(0x241)](_0x2f700f))),'onCheckedChange':_0x3f439f=>_0x4ffd7b(_0x24a16f=>{const _0x5bd17f=_0x10ca33;let _0x43c927=_0x24a16f['getTableFieldsByDataFieldId'](_0xb2ccbf['id']);if(!_0x3f439f)_0x43c927['forEach'](_0x2d3e7e=>_0x24a16f[_0x5bd17f(0x2a3)](_0x2d3e7e[_0x5bd17f(0x3f6)]()));else{if(_0x43c927['length']===0x0){let _0x32d0f3=ut(_0xb2ccbf)?y['PivotTableFiledAreaEnum'][_0x5bd17f(0x19b)]:y[_0x5bd17f(0xd8)][_0x5bd17f(0x44f)];_0x24a16f['addFieldWithSourceId'](_0xb2ccbf['id'],_0x32d0f3);}}}),'onDragStart':()=>_0x40d95b({'kind':'source','id':_0xb2ccbf['id']})},_0xb2ccbf['id']))})]}),(0x0,g['jsx'])('div',{'className':_0x10ca33(0x4d7),'children':Qe['map'](_0x3490a4=>(0x0,g[_0x10ca33(0x23f)])(rt,{'area':_0x3490a4[_0x10ca33(0x1be)],'dropTarget':_0x26ae9f,'fields':_0x55c202['pivot'][_0x3490a4[_0x10ca33(0x2d3)]],'label':_0x44ac2d['t'](_0x3490a4[_0x10ca33(0x1c2)]),'snapshot':_0x55c202[_0x10ca33(0x258)],'onDragEnd':()=>{_0x40d95b(null),_0x148322(null);},'onDragStart':_0x20f3e6=>_0x40d95b({'kind':_0x10ca33(0x492),'id':_0x20f3e6,'area':_0x3490a4[_0x10ca33(0x1be)]}),'onDragOver':_0x52ca38=>_0x148322({'area':_0x3490a4[_0x10ca33(0x1be)],'index':_0x52ca38}),'onDrop':_0x3dabc1=>_0xe1df4(_0x3490a4[_0x10ca33(0x1be)],_0x3dabc1),'onFilter':_0x40fad0,'onMove':(_0xe1b8ce,_0x56ed36,_0x23b497)=>_0x4ffd7b(_0x2d238b=>_0x2d238b[_0x10ca33(0x3ad)](_0xe1b8ce,_0x56ed36,_0x23b497)),'onRemove':_0x58862d=>_0x4ffd7b(_0x5d8046=>_0x5d8046[_0x10ca33(0x2a3)](_0x58862d)),'onSettings':_0x196d27},_0x3490a4[_0x10ca33(0x1be)]))}),_0x287df2&&(0x0,g['jsx'])(at,{'fieldId':_0x287df2,'snapshot':_0x55c202[_0x10ca33(0x258)],'table':_0x3b4067,'onCancel':()=>_0x40fad0(null),'onCommit':(_0x2be029,_0x37445a)=>{_0x4ffd7b(_0x7d6890=>{const _0x1c3fe2=_0x1e15;let _0x44a8ed=_0x7d6890[_0x1c3fe2(0x28f)](_0x287df2),_0x4daf2b=(_0x44a8ed==null?void 0x0:_0x44a8ed[_0x1c3fe2(0x30d)])??[];_0x7d6890[_0x1c3fe2(0x482)](_0x287df2,{'type':y['PivotFilterTypeEnum'][_0x1c3fe2(0x14d)],'list':_0x2be029,'isAll':_0x2be029[_0x1c3fe2(0xf8)]===_0x4daf2b[_0x1c3fe2(0xf8)]}),_0x7d6890[_0x1c3fe2(0x1af)](_0x287df2,_0x37445a===void 0x0?void 0x0:{'type':_0x37445a});}),_0x40fad0(null);}},_0x287df2),_0xf5e19d&&(0x0,g[_0x10ca33(0x23f)])(ot,{'field':_0x55c202[_0x10ca33(0x258)][_0x10ca33(0x327)][_0xf5e19d],'onCancel':()=>_0x196d27(null),'onCommit':(_0x73c21e,_0x21fdfd,_0x51bc9d)=>{_0x4ffd7b(_0x5a7f05=>{const _0x5ac847=_0x1e15;_0x5a7f05[_0x5ac847(0x14a)](_0xf5e19d,_0x73c21e),_0x5a7f05[_0x5ac847(0x1ad)](_0xf5e19d,_0x21fdfd),_0x5a7f05[_0x5ac847(0x28b)](_0xf5e19d,_0x51bc9d||void 0x0);}),_0x196d27(null);}},_0xf5e19d)]})})]});}function tt(_0x4173bd){const _0xd0ddcd=_0x30b590;let {config:_0x31209f,field:_0xba86d5,onAdd:_0x1930b7,onCheckedChange:_0x184033,onDragStart:_0x5cedaf}=_0x4173bd,_0x3bab75=(0x0,m[_0xd0ddcd(0x155)])(a[_0xd0ddcd(0x3ea)]),_0x201c31=[...Object[_0xd0ddcd(0x1ba)](_0x31209f[_0xd0ddcd(0x258)][_0xd0ddcd(0x32a)]),...Object['values'](_0x31209f['pivot'][_0xd0ddcd(0x327)])][_0xd0ddcd(0x364)](_0x186108=>_0x186108[_0xd0ddcd(0x366)]===_0xba86d5['id']),_0x3e25df=Qe[_0xd0ddcd(0x48a)](_0x198174=>({'type':_0xd0ddcd(0x4b7),'children':_0x3bab75['t'](dt(_0x198174[_0xd0ddcd(0x1be)])),'onSelect':()=>_0x1930b7(_0x198174['area'])}));return(0x0,g[_0xd0ddcd(0x38d)])(_0xd0ddcd(0x460),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0xd0ddcd(0x16a),'onDragStart':_0x5cedaf,'children':[(0x0,g[_0xd0ddcd(0x23f)])(f[_0xd0ddcd(0x2b9)],{'checked':_0x201c31,'onChange':_0xef77aa=>_0x184033(!!_0xef77aa)}),(0x0,g[_0xd0ddcd(0x23f)])(nt,{'field':_0xba86d5}),(0x0,g[_0xd0ddcd(0x23f)])(_0xd0ddcd(0x405),{'className':_0xd0ddcd(0x16b),'children':_0xba86d5[_0xd0ddcd(0x451)]}),(0x0,g[_0xd0ddcd(0x23f)])(de,{'align':_0xd0ddcd(0x19f),'items':_0x3e25df,'children':(0x0,g['jsx'])(f['Button'],{'variant':_0xd0ddcd(0x455),'aria-label':_0x3bab75['t'](_0xd0ddcd(0x38a)),'children':(0x0,g[_0xd0ddcd(0x23f)])(s[_0xd0ddcd(0x187)],{})})})]});}function nt({field:_0x14e4fd}){const _0x4a8b99=_0x30b590;return ut(_0x14e4fd)?(0x0,g[_0x4a8b99(0x23f)])(s['NumberIcon'],{'className':_0x4a8b99(0x3d2)}):_0x14e4fd['type']===a['BaseFieldType'][_0x4a8b99(0x193)]||_0x14e4fd[_0x4a8b99(0x11c)]===a['BaseFieldType'][_0x4a8b99(0x4f0)]||_0x14e4fd[_0x4a8b99(0x11c)]===a['BaseFieldType'][_0x4a8b99(0x380)]?(0x0,g['jsx'])(s[_0x4a8b99(0x25c)],{'className':_0x4a8b99(0x3d2)}):(0x0,g['jsx'])(s[_0x4a8b99(0x4f2)],{'className':_0x4a8b99(0x3d2)});}function rt(_0x14c3a6){const _0x5e4cae=_0x30b590;let {area:_0x1d1f9a,dropTarget:_0x542cd8,fields:_0x1691e3,label:_0x310b91,snapshot:_0x4813d4}=_0x14c3a6,_0x40f6ad=(0x0,m['useDependency'])(a[_0x5e4cae(0x3ea)]);return(0x0,g[_0x5e4cae(0x38d)])('section',{'className':(0x0,f[_0x5e4cae(0x373)])(_0x5e4cae(0x244),f[_0x5e4cae(0x209)]),'onDragOver':_0x39f08c=>{const _0x4715a3=_0x5e4cae;_0x39f08c['preventDefault'](),_0x14c3a6[_0x4715a3(0x3fd)](_0x1691e3[_0x4715a3(0xf8)]);},'onDrop':_0xe114c3=>{const _0x57f344=_0x5e4cae;_0xe114c3[_0x57f344(0x222)](),_0x14c3a6[_0x57f344(0x46f)]((_0x542cd8==null?void 0x0:_0x542cd8['area'])===_0x1d1f9a?_0x542cd8['index']:_0x1691e3[_0x57f344(0xf8)]);},'children':[(0x0,g[_0x5e4cae(0x23f)])('div',{'className':'univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','children':_0x310b91}),(0x0,g[_0x5e4cae(0x38d)])(_0x5e4cae(0x460),{'className':_0x5e4cae(0x302),'children':[_0x1691e3['map']((_0x2b31ac,_0x163c5a)=>{const _0x57fd35=_0x5e4cae;let _0x3f2454=_0x4813d4[_0x57fd35(0x32a)][_0x2b31ac]??_0x4813d4['measure'][_0x2b31ac];if(!_0x3f2454)return null;let _0x54488e=(_0x542cd8==null?void 0x0:_0x542cd8['area'])===_0x1d1f9a&&_0x542cd8[_0x57fd35(0x489)]===_0x163c5a;return(0x0,g['jsxs'])(_0x57fd35(0x460),{'onDragOver':_0xda50fc=>{const _0x3cf7eb=_0x57fd35;_0xda50fc[_0x3cf7eb(0x222)](),_0xda50fc['stopPropagation']();let _0x29d19c=_0xda50fc[_0x3cf7eb(0x408)][_0x3cf7eb(0x118)]();_0x14c3a6[_0x3cf7eb(0x3fd)](_0x163c5a+ +(_0xda50fc['clientY']>_0x29d19c[_0x3cf7eb(0x291)]+_0x29d19c['height']/0x2));},'onDrop':_0x47ef4c=>{const _0x29f35f=_0x57fd35;_0x47ef4c[_0x29f35f(0x222)](),_0x47ef4c[_0x29f35f(0x231)](),_0x14c3a6[_0x29f35f(0x46f)]((_0x542cd8==null?void 0x0:_0x542cd8[_0x29f35f(0x1be)])===_0x1d1f9a?_0x542cd8[_0x29f35f(0x489)]:_0x163c5a);},'children':[_0x54488e&&(0x0,g[_0x57fd35(0x23f)])(_0x57fd35(0x460),{'className':_0x57fd35(0x1f1)}),(0x0,g[_0x57fd35(0x23f)])(it,{'area':_0x1d1f9a,'field':_0x3f2454,'onDragEnd':_0x14c3a6[_0x57fd35(0x3d9)],'onDragStart':()=>_0x14c3a6[_0x57fd35(0x3a6)](_0x2b31ac),'onFilter':()=>_0x14c3a6[_0x57fd35(0x3d1)](_0x2b31ac),'onMove':_0xa7749e=>_0x14c3a6[_0x57fd35(0x349)](_0x2b31ac,_0xa7749e,0x0),'onMoveUp':_0x163c5a>0x0?()=>_0x14c3a6[_0x57fd35(0x349)](_0x2b31ac,_0x1d1f9a,_0x163c5a-0x1):void 0x0,'onMoveDown':_0x163c5a<_0x1691e3['length']-0x1?()=>_0x14c3a6['onMove'](_0x2b31ac,_0x1d1f9a,_0x163c5a+0x1):void 0x0,'onRemove':()=>_0x14c3a6[_0x57fd35(0x2ac)](_0x2b31ac),'onSettings':()=>_0x14c3a6[_0x57fd35(0xff)](_0x2b31ac)})]},_0x2b31ac);}),(_0x542cd8==null?void 0x0:_0x542cd8[_0x5e4cae(0x1be)])===_0x1d1f9a&&_0x542cd8[_0x5e4cae(0x489)]===_0x1691e3[_0x5e4cae(0xf8)]&&(0x0,g[_0x5e4cae(0x23f)])('div',{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),_0x1691e3[_0x5e4cae(0xf8)]===0x0&&(0x0,g['jsx'])(_0x5e4cae(0x460),{'className':_0x5e4cae(0x40c),'children':_0x40f6ad['t'](_0x5e4cae(0x1e3))})]})]});}function it(_0x34c628){const _0x482bf1=_0x30b590;let _0x3c188f=(0x0,m[_0x482bf1(0x155)])(a[_0x482bf1(0x3ea)]),_0x10e2a9=_0x34c628[_0x482bf1(0x1be)]===y[_0x482bf1(0xd8)][_0x482bf1(0x19b)],_0x45d66c=[...Qe['filter'](_0x1c80e5=>_0x1c80e5[_0x482bf1(0x1be)]!==_0x34c628['area'])['map'](_0x356d2e=>({'type':_0x482bf1(0x4b7),'children':_0x3c188f['t'](dt(_0x356d2e[_0x482bf1(0x1be)])),'onSelect':()=>_0x34c628['onMove'](_0x356d2e['area'])})),..._0x34c628[_0x482bf1(0x161)]?[{'type':_0x482bf1(0x4b7),'children':_0x3c188f['t']('bases-dashboard-ui.mobile.moveUp'),'onSelect':_0x34c628['onMoveUp']}]:[],..._0x34c628[_0x482bf1(0x28d)]?[{'type':'item','children':_0x3c188f['t'](_0x482bf1(0x4a5)),'onSelect':_0x34c628[_0x482bf1(0x28d)]}]:[],{'type':_0x482bf1(0x4b7),'children':_0x3c188f['t'](_0x482bf1(0x281)),'onSelect':_0x34c628['onRemove']},{'type':_0x482bf1(0x4b7),'children':_0x3c188f['t'](_0x10e2a9?'bases-dashboard-ui.pivot.fieldSettings':_0x482bf1(0x2de)),'onSelect':_0x10e2a9?_0x34c628[_0x482bf1(0xff)]:_0x34c628[_0x482bf1(0x3d1)]}];return(0x0,g['jsxs'])(_0x482bf1(0x460),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x482bf1(0x1c1),'onDragEnd':_0x34c628[_0x482bf1(0x3d9)],'onDragStart':_0x34c628[_0x482bf1(0x3a6)],'children':[(0x0,g[_0x482bf1(0x23f)])(f[_0x482bf1(0x1c7)],{'title':_0x34c628['field']['displayName'],'children':(0x0,g['jsx'])(_0x482bf1(0x405),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x34c628[_0x482bf1(0x492)][_0x482bf1(0x38f)]})}),(0x0,g[_0x482bf1(0x23f)])(de,{'align':_0x482bf1(0x19f),'items':_0x45d66c,'children':(0x0,g[_0x482bf1(0x23f)])(f[_0x482bf1(0x3da)],{'variant':'text','aria-label':_0x3c188f['t'](_0x482bf1(0x38a)),'children':(0x0,g[_0x482bf1(0x23f)])(s['MoreDownIcon'],{})})})]});}function at(_0x5dd69c){const _0x369a62=_0x30b590;var _0x59435e,_0x2fb9d6;let _0x1990af=(0x0,m[_0x369a62(0x155)])(a[_0x369a62(0x3ea)]),{format:_0x547e21,items:_0x572ecf,itemTypes:_0x5173cc}=(0x0,h[_0x369a62(0x2c1)])(()=>{const _0x414d75=_0x369a62;let _0x288187=(0x0,e[_0x414d75(0x17a)])(_0x5dd69c[_0x414d75(0x4da)],_0x5dd69c[_0x414d75(0x48d)]);try{let _0x3eb619=_0x288187['getDataFieldByTableId'](_0x5dd69c[_0x414d75(0x1fb)]);return{'format':_0x3eb619==null?void 0x0:_0x3eb619[_0x414d75(0x462)],'items':[...(_0x3eb619==null?void 0x0:_0x3eb619[_0x414d75(0x30d)])??[]],'itemTypes':[...(_0x3eb619==null?void 0x0:_0x3eb619[_0x414d75(0x34a)])??[]]};}finally{_0x288187[_0x414d75(0x45b)]();}},[_0x5dd69c[_0x369a62(0x1fb)],_0x5dd69c[_0x369a62(0x48d)],_0x5dd69c['table']]),_0x105040=(_0x59435e=_0x5dd69c['snapshot']['dimension'][_0x5dd69c[_0x369a62(0x1fb)]])==null?void 0x0:_0x59435e[_0x369a62(0x32c)],[_0x58644b,_0x4bcdc6]=(0x0,h[_0x369a62(0x40a)])((_0x105040==null?void 0x0:_0x105040[_0x369a62(0x11c)])===y['PivotFilterTypeEnum'][_0x369a62(0x14d)]?_0x105040['list']:_0x572ecf),[_0x5e67d1,_0x23f2ec]=(0x0,h[_0x369a62(0x40a)])((_0x2fb9d6=_0x5dd69c[_0x369a62(0x48d)][_0x369a62(0x32a)][_0x5dd69c[_0x369a62(0x1fb)]])==null||(_0x2fb9d6=_0x2fb9d6[_0x369a62(0x353)])==null?void 0x0:_0x2fb9d6[_0x369a62(0x11c)]),_0x4b2f7d=_0x58644b[_0x369a62(0xf8)]===_0x572ecf['length'],_0x34d2ee=(0x0,g[_0x369a62(0x38d)])('section',{'className':(0x0,f[_0x369a62(0x373)])(_0x369a62(0x299),f[_0x369a62(0x209)]),'children':[(0x0,g[_0x369a62(0x23f)])('div',{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0x1990af['t']('bases-dashboard-ui.pivot.filterField')}),(0x0,g['jsxs'])('div',{'className':_0x369a62(0x18e),'children':[(0x0,g[_0x369a62(0x38d)])(f[_0x369a62(0x3da)],{'className':_0x369a62(0x214),'variant':_0x5e67d1===y[_0x369a62(0x181)][_0x369a62(0x204)]?_0x369a62(0x31d):'default','onClick':()=>_0x23f2ec(y['PivotDataFieldSortOperatorEnum'][_0x369a62(0x204)]),'children':[(0x0,g[_0x369a62(0x23f)])(s[_0x369a62(0x31e)],{}),_0x1990af['t']('bases-dashboard-ui.pivot.ascending')]}),(0x0,g['jsxs'])(f['Button'],{'className':_0x369a62(0x214),'variant':_0x5e67d1===y[_0x369a62(0x181)][_0x369a62(0x126)]?_0x369a62(0x31d):_0x369a62(0x1df),'onClick':()=>_0x23f2ec(y[_0x369a62(0x181)]['descending']),'children':[(0x0,g['jsx'])(s[_0x369a62(0x267)],{}),_0x1990af['t']('bases-dashboard-ui.pivot.descending')]})]}),(0x0,g[_0x369a62(0x38d)])(_0x369a62(0x460),{'className':_0x369a62(0x3e3),'children':[(0x0,g['jsxs'])(_0x369a62(0x1c2),{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[(0x0,g[_0x369a62(0x23f)])(f['Checkbox'],{'checked':_0x4b2f7d,'indeterminate':_0x58644b['length']>0x0&&!_0x4b2f7d,'onChange':()=>_0x4bcdc6(_0x4b2f7d?[]:_0x572ecf)}),_0x1990af['t'](_0x369a62(0x158))]}),_0x572ecf['map']((_0x17bfb9,_0xa81d38)=>(0x0,g[_0x369a62(0x38d)])(_0x369a62(0x1c2),{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[(0x0,g['jsx'])(f[_0x369a62(0x2b9)],{'checked':_0x58644b[_0x369a62(0x30a)](_0x17bfb9),'onChange':()=>_0x4bcdc6(_0x897c23=>_0x897c23['includes'](_0x17bfb9)?_0x897c23[_0x369a62(0x141)](_0x476614=>_0x476614!==_0x17bfb9):[..._0x897c23,_0x17bfb9])}),(0x0,g[_0x369a62(0x23f)])(_0x369a62(0x405),{'className':_0x369a62(0x4b8),'children':lt(_0x17bfb9,_0x5173cc[_0xa81d38],_0x547e21,_0x1990af['t']('bases-dashboard-ui.pivot.blank'))})]},_0x17bfb9))]}),(0x0,g[_0x369a62(0x38d)])(_0x369a62(0x460),{'className':_0x369a62(0x2a8),'children':[(0x0,g[_0x369a62(0x23f)])(f[_0x369a62(0x3da)],{'variant':'link','onClick':()=>_0x5dd69c['onCommit'](_0x572ecf,_0x5e67d1),'children':_0x1990af['t'](_0x369a62(0x2d8))}),(0x0,g[_0x369a62(0x38d)])(_0x369a62(0x460),{'className':_0x369a62(0x2db),'children':[(0x0,g[_0x369a62(0x23f)])(f['Button'],{'onClick':_0x5dd69c['onCancel'],'children':_0x1990af['t'](_0x369a62(0x4ec))}),(0x0,g['jsx'])(f['Button'],{'variant':'primary','disabled':_0x58644b[_0x369a62(0xf8)]===0x0,'onClick':()=>_0x5dd69c[_0x369a62(0x398)](_0x58644b,_0x5e67d1),'children':_0x1990af['t'](_0x369a62(0x2e7))})]})]})]});return(0x0,g['jsx'])(t['BaseMobileDrawer'],{'title':_0x1990af['t'](_0x369a62(0x2de)),'onClose':_0x5dd69c[_0x369a62(0x3b5)],'children':_0x34d2ee});}function ot(_0x4d5a52){const _0x36d433=_0x30b590;var _0x483d7f,_0x2dee21,_0x187b91;let _0x94e85f=(0x0,m['useDependency'])(a[_0x36d433(0x3ea)]),[_0x4f4fdd,_0x55e559]=(0x0,h[_0x36d433(0x40a)])(((_0x483d7f=_0x4d5a52[_0x36d433(0x492)])==null?void 0x0:_0x483d7f[_0x36d433(0x38f)])??''),[_0x315b45,_0x3b7053]=(0x0,h[_0x36d433(0x40a)])(((_0x2dee21=_0x4d5a52['field'])==null?void 0x0:_0x2dee21[_0x36d433(0x350)])??y['PivotSubtotalTypeEnum'][_0x36d433(0x18a)]),[_0x371787,_0x32f409]=(0x0,h['useState'])(((_0x187b91=_0x4d5a52[_0x36d433(0x492)])==null?void 0x0:_0x187b91['format'])??'');if(!_0x4d5a52[_0x36d433(0x492)])return null;let _0x28d9af=(0x0,g['jsxs'])(_0x36d433(0x2f7),{'className':(0x0,f[_0x36d433(0x373)])('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',f[_0x36d433(0x209)]),'children':[(0x0,g[_0x36d433(0x23f)])(_0x36d433(0x460),{'className':_0x36d433(0x2da),'children':_0x94e85f['t'](_0x36d433(0x38a))}),(0x0,g[_0x36d433(0x38d)])(_0x36d433(0x1c2),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x94e85f['t'](_0x36d433(0x41d)),(0x0,g[_0x36d433(0x23f)])(f[_0x36d433(0x104)],{'value':_0x4f4fdd,'onChange':_0x55e559})]}),(0x0,g[_0x36d433(0x38d)])(_0x36d433(0x1c2),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x94e85f['t'](_0x36d433(0x3be)),(0x0,g[_0x36d433(0x23f)])(G,{'value':String(_0x315b45),'options':$e[_0x36d433(0x48a)](_0x165019=>({'value':String(_0x165019['value']),'label':_0x94e85f['t'](_0x165019[_0x36d433(0x1cf)])})),'onChange':_0x4e030a=>{const _0x51e567=_0x36d433;let _0x2b378c=$e['find'](_0x375cd8=>String(_0x375cd8[_0x51e567(0x351)])===_0x4e030a);_0x2b378c&&_0x3b7053(_0x2b378c[_0x51e567(0x351)]);}})]}),(0x0,g['jsxs'])(_0x36d433(0x1c2),{'className':_0x36d433(0x13d),'children':[_0x94e85f['t'](_0x36d433(0x251)),(0x0,g[_0x36d433(0x23f)])(f[_0x36d433(0x104)],{'value':_0x371787,'onChange':_0x32f409})]}),(0x0,g[_0x36d433(0x38d)])('div',{'className':_0x36d433(0x290),'children':[(0x0,g['jsx'])(f[_0x36d433(0x3da)],{'onClick':_0x4d5a52['onCancel'],'children':_0x94e85f['t'](_0x36d433(0x4ec))}),(0x0,g[_0x36d433(0x23f)])(f[_0x36d433(0x3da)],{'variant':_0x36d433(0x31d),'disabled':!_0x4f4fdd['trim'](),'onClick':()=>_0x4d5a52[_0x36d433(0x398)](_0x4f4fdd[_0x36d433(0x342)](),_0x315b45,_0x371787),'children':_0x94e85f['t'](_0x36d433(0x2e7))})]})]});return(0x0,g[_0x36d433(0x23f)])(t['BaseMobileDrawer'],{'title':_0x94e85f['t'](_0x36d433(0x38a)),'onClose':_0x4d5a52[_0x36d433(0x3b5)],'children':_0x28d9af});}function st(_0x3476d8){const _0x4ff643=_0x30b590;let {config:_0x1a289c,commit:_0x416fb5}=_0x3476d8,_0x191d0f=(0x0,m[_0x4ff643(0x155)])(a[_0x4ff643(0x3ea)]),_0x4835f0=_0x1a289c[_0x4ff643(0x258)][_0x4ff643(0x45a)],_0x88316b=_0x3e3798=>_0x416fb5(_0x75e506=>_0x75e506[_0x4ff643(0x3b4)]({..._0x75e506[_0x4ff643(0x4c0)](),..._0x3e3798}));return(0x0,g[_0x4ff643(0x38d)])(_0x4ff643(0x460),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[(0x0,g[_0x4ff643(0x38d)])(_0x4ff643(0x1c2),{'className':_0x4ff643(0x2e1),'children':[_0x191d0f['t'](_0x4ff643(0x1b9)),(0x0,g[_0x4ff643(0x23f)])(G,{'className':_0x4ff643(0x24f),'value':String(_0x1a289c[_0x4ff643(0x258)][_0x4ff643(0x122)]),'options':[{'value':String(y[_0x4ff643(0x480)][_0x4ff643(0x3ca)]),'label':_0x191d0f['t']('bases-dashboard-ui.pivot.layoutTabular')},{'value':String(y['PivotLayoutTypeEnum'][_0x4ff643(0xdb)]),'label':_0x191d0f['t'](_0x4ff643(0x43b))},{'value':String(y[_0x4ff643(0x480)][_0x4ff643(0x1a9)]),'label':_0x191d0f['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x38d671=>{const _0xd7a9de=_0x4ff643;let _0x505f45=[y[_0xd7a9de(0x480)][_0xd7a9de(0x3ca)],y[_0xd7a9de(0x480)][_0xd7a9de(0xdb)],y[_0xd7a9de(0x480)][_0xd7a9de(0x1a9)]]['find'](_0x9768ac=>String(_0x9768ac)===_0x38d671);_0x505f45!==void 0x0&&_0x416fb5(_0x277701=>_0x277701[_0xd7a9de(0xdd)](_0x505f45));}})]}),[{'key':_0x4ff643(0x147),'label':_0x4ff643(0x465),'defaultValue':!0x1},{'key':'repeatColLabels','label':_0x4ff643(0x1f9),'defaultValue':!0x1},{'key':_0x4ff643(0x295),'label':_0x4ff643(0x458),'defaultValue':!0x0},{'key':_0x4ff643(0x46c),'label':_0x4ff643(0x232),'defaultValue':!0x0},{'key':'showColSubtotal','label':'bases-dashboard-ui.pivot.showColumnSubtotal','defaultValue':!0x0},{'key':'showColGrandTotal','label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}][_0x4ff643(0x48a)](_0x30f7c6=>(0x0,g[_0x4ff643(0x38d)])(_0x4ff643(0x1c2),{'className':_0x4ff643(0x3d4),'children':[(0x0,g[_0x4ff643(0x23f)])(f['Checkbox'],{'checked':!!(_0x4835f0[_0x30f7c6[_0x4ff643(0x2d3)]]??_0x30f7c6[_0x4ff643(0x114)]),'disabled':_0x30f7c6['key']===_0x4ff643(0x147)&&_0x1a289c['pivot']['layout']===y[_0x4ff643(0x480)][_0x4ff643(0xdb)],'onChange':_0xdc0ac8=>_0x88316b({[_0x30f7c6['key']]:!!_0xdc0ac8})}),_0x191d0f['t'](_0x30f7c6[_0x4ff643(0x1c2)])]},_0x30f7c6[_0x4ff643(0x2d3)])),_0x1a289c[_0x4ff643(0x258)][_0x4ff643(0x122)]===y[_0x4ff643(0x480)][_0x4ff643(0x1a9)]&&(0x0,g[_0x4ff643(0x38d)])(_0x4ff643(0x1c2),{'className':_0x4ff643(0x2e1),'children':[_0x191d0f['t'](_0x4ff643(0x329)),(0x0,g[_0x4ff643(0x23f)])(G,{'className':_0x4ff643(0x24f),'value':String(_0x4835f0[_0x4ff643(0x1a4)]??y[_0x4ff643(0x265)]['top']),'options':[{'value':String(y[_0x4ff643(0x265)][_0x4ff643(0x291)]),'label':_0x191d0f['t'](_0x4ff643(0x31b))},{'value':String(y[_0x4ff643(0x265)][_0x4ff643(0x1c3)]),'label':_0x191d0f['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x140cd5=>{const _0x2613d7=_0x4ff643;let _0x52f7a9=[y['PivotSubtotalPositionEnum'][_0x2613d7(0x291)],y[_0x2613d7(0x265)][_0x2613d7(0x1c3)]]['find'](_0x4e8246=>String(_0x4e8246)===_0x140cd5);_0x52f7a9!==void 0x0&&_0x88316b({'rowSubtotalPosition':_0x52f7a9});}})]}),(0x0,g[_0x4ff643(0x38d)])(_0x4ff643(0x1c2),{'className':_0x4ff643(0x2e1),'children':[_0x191d0f['t']('bases-dashboard-ui.pivot.valuePosition'),(0x0,g['jsx'])(G,{'className':_0x4ff643(0x24f),'value':String(_0x1a289c[_0x4ff643(0x258)][_0x4ff643(0x2a4)]===y[_0x4ff643(0x22e)][_0x4ff643(0x202)]?y[_0x4ff643(0x22e)][_0x4ff643(0xf2)]:_0x1a289c['pivot']['valuePosition']),'options':[{'value':String(y[_0x4ff643(0x22e)]['Column']),'label':_0x191d0f['t'](_0x4ff643(0x43d))},{'value':String(y[_0x4ff643(0x22e)]['Row']),'label':_0x191d0f['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x144fd2=>{const _0x471aeb=_0x4ff643;let _0x9c99b4=[y[_0x471aeb(0x22e)]['Column'],y[_0x471aeb(0x22e)]['Row']][_0x471aeb(0x41e)](_0x2dc2d6=>String(_0x2dc2d6)===_0x144fd2);_0x9c99b4!==void 0x0&&_0x416fb5(_0x365f96=>_0x365f96[_0x471aeb(0x11b)](_0x9c99b4,_0x365f96[_0x471aeb(0x131)]()<0x0?0x0:_0x365f96[_0x471aeb(0x131)]()));}})]}),(0x0,g['jsxs'])(_0x4ff643(0x1c2),{'className':_0x4ff643(0x2e1),'children':[_0x191d0f['t'](_0x4ff643(0x264)),(0x0,g['jsx'])(f['InputNumber'],{'className':_0x4ff643(0x4a4),'min':0x1,'max':0x14,'value':_0x4835f0[_0x4ff643(0x3d6)]??0x1,'onChange':_0x43ff99=>{const _0x1bf5f4=_0x4ff643;let _0x2cb995=Number(_0x43ff99);Number[_0x1bf5f4(0x467)](_0x2cb995)&&_0x2cb995>=0x1&&_0x88316b({'pageWrap':_0x2cb995});}})]}),(0x0,g[_0x4ff643(0x38d)])(_0x4ff643(0x1c2),{'className':_0x4ff643(0x2e1),'children':[_0x191d0f['t'](_0x4ff643(0x3c2)),(0x0,g[_0x4ff643(0x23f)])(G,{'className':_0x4ff643(0x24f),'value':String(_0x4835f0[_0x4ff643(0x4df)]??!0x1),'options':[{'value':'false','label':_0x191d0f['t'](_0x4ff643(0x287))},{'value':_0x4ff643(0x445),'label':_0x191d0f['t'](_0x4ff643(0x3f9))}],'onChange':_0x29a353=>_0x88316b({'pageOverThenDown':_0x29a353===_0x4ff643(0x445)})})]})]});}function ct(_0x18a984,_0x1c1062,_0x4deb97,_0x3fba22){const _0x40d750=_0x30b590;let _0x1bc190=_0x18a984[_0x40d750(0x374)](_0x1c1062)[_0x40d750(0x41e)](_0x119fef=>_0x18a984[_0x40d750(0x40d)](_0x119fef[_0x40d750(0x3f6)]())['area']!==y['PivotTableFiledAreaEnum'][_0x40d750(0x19b)]);_0x4deb97!==y[_0x40d750(0xd8)]['Value']&&_0x1bc190?_0x18a984[_0x40d750(0x3ad)](_0x1bc190['getId'](),_0x4deb97,_0x3fba22):_0x18a984[_0x40d750(0x396)](_0x1c1062,_0x4deb97,_0x3fba22);}function lt(_0x2bf1d6,_0xd5c934,_0x4e759f,_0x2cb198){const _0x4d11c9=_0x30b590;return _0xd5c934===y[_0x4d11c9(0x498)][_0x4d11c9(0x3b9)]?_0x2cb198:_0xd5c934===y[_0x4d11c9(0x498)]['date']&&_0x4e759f?a[_0x4d11c9(0x4e4)]['format'](_0x4e759f,Number(_0x2bf1d6)):_0x2bf1d6;}function ut(_0x4e0da1){const _0x2824d3=_0x30b590;return _0x4e0da1[_0x2824d3(0x11c)]===a['BaseFieldType'][_0x2824d3(0x48b)]||_0x4e0da1[_0x2824d3(0x11c)]===a[_0x2824d3(0x1d5)][_0x2824d3(0x400)]||_0x4e0da1[_0x2824d3(0x11c)]===a['BaseFieldType'][_0x2824d3(0x1a6)]||_0x4e0da1[_0x2824d3(0x11c)]===a['BaseFieldType'][_0x2824d3(0x234)];}function dt(_0x34cae7){const _0x58b62d=_0x30b590;switch(_0x34cae7){case y[_0x58b62d(0xd8)][_0x58b62d(0x44f)]:return _0x58b62d(0x194);case y[_0x58b62d(0xd8)]['Column']:return _0x58b62d(0x25a);case y[_0x58b62d(0xd8)][_0x58b62d(0x19b)]:return'bases-dashboard-ui.pivot.addToValue';default:return'bases-dashboard-ui.pivot.addToFilter';}}function ft({config:_0x19614a,onChange:_0x136f5e,runtime:_0x1bbaf1,table:_0x577208}){const _0xc0ea5a=_0x30b590;let _0x3ba1cf=(0x0,m[_0xc0ea5a(0x155)])(a[_0xc0ea5a(0x3ea)]),[_0xd27b47,_0x40d9b7]=(0x0,h[_0xc0ea5a(0x40a)])(_0xc0ea5a(0xd9));return(0x0,g[_0xc0ea5a(0x38d)])(_0xc0ea5a(0x4c9),{'className':_0xc0ea5a(0x4b3),'children':[(0x0,g[_0xc0ea5a(0x23f)])(n['ChartEditPanelTabs'],{'ariaLabel':_0x3ba1cf['t'](_0xc0ea5a(0x2df)),'className':_0xc0ea5a(0x4e0),'items':[{'label':_0x3ba1cf['t'](_0xc0ea5a(0x478)),'panelId':_0xc0ea5a(0x3a0),'value':_0xc0ea5a(0xd9)},{'label':_0x3ba1cf['t'](_0xc0ea5a(0x46b)),'panelId':_0xc0ea5a(0x3d8),'value':_0xc0ea5a(0x258)}],'value':_0xd27b47,'variant':_0xc0ea5a(0x4ea),'onChange':_0x40d9b7}),(0x0,g['jsx'])('div',{'className':_0xc0ea5a(0x452),'children':_0xd27b47==='chart'?_0x1bbaf1&&(0x0,g['jsx'])(he,{'config':_0x19614a,'runtime':_0x1bbaf1,'tableName':_0x577208[_0xc0ea5a(0x451)],'onChange':_0x136f5e}):(0x0,g['jsx'])(et,{'config':_0x19614a,'table':_0x577208,'onChange':_0x136f5e})})]});}function pt({tableId:_0x41729d,unitId:_0x58234f,viewId:_0x52e040}){const _0x86a241=_0x30b590;let [_0xe6d1fa,_0x167eee]=(0x0,h['useState'])(!0x1),_0x4640d2=(0x0,m[_0x86a241(0x155)])(a[_0x86a241(0x279)]),_0x5a81b5=(0x0,m['useDependency'])(a[_0x86a241(0x245)]),_0x1e72da=(0x0,m['useDependency'])(a[_0x86a241(0x325)]),_0x4d03d5=(0x0,m[_0x86a241(0x155)])(a[_0x86a241(0x3ea)]),_0x1d6b69=(0x0,m['useDependency'])(e[_0x86a241(0x4b6)]),[_0x3cb64f,_0x520adc]=(0x0,h[_0x86a241(0x40a)])(null),[_0x348af1,_0x19a1e4]=(0x0,h['useState'])(null),_0x69e9fe=(0x0,h[_0x86a241(0x414)])(_0x86a241(0x286)+(0x0,a[_0x86a241(0x3f8)])(0x8)),[_0x408780,_0x16f9f3]=(0x0,h['useState'])(!0x1),_0x39d9d2=_0x5a81b5[_0x86a241(0x3e7)](_0x58234f,a[_0x86a241(0x3d5)][_0x86a241(0x1a2)]),_0x5492d5=_0x39d9d2==null?void 0x0:_0x39d9d2['getSnapshot']()[_0x86a241(0x4fe)][_0x41729d],_0x3b7271=_0x5492d5==null?void 0x0:_0x5492d5['views'][_0x52e040],_0x34782c=mt(_0x3b7271),_0x3e8d63=T(_0x58234f,_0x41729d,_0x52e040);if((0x0,h[_0x86a241(0x3dd)])(()=>{const _0x3a4dd6=_0x86a241;if(!_0x34782c)return;let _0x1ce67f=_0x69e9fe[_0x3a4dd6(0x216)];return _0x1d6b69['acquireChartRuntime'](_0x1ce67f,{'unitId':_0x58234f,'tableId':_0x41729d,'viewId':_0x52e040,'filters':[]}),()=>{const _0x166876=_0x3a4dd6;_0x1d6b69[_0x166876(0x275)](_0x58234f,_0x1ce67f);};},[_0x34782c,_0x1d6b69,_0x41729d,_0x58234f,_0x52e040]),(0x0,h[_0x86a241(0x3dd)])(()=>{const _0x3e8734=_0x86a241;if(!mt(_0x3b7271))return;let _0x2766b=!0x0,_0x4f4911={'unitId':_0x58234f,'tableId':_0x41729d,'viewId':_0x52e040,'filters':[_0x3b7271[_0x3e8734(0x141)]??null]};return _0x1d6b69[_0x3e8734(0x40f)](_0x58234f,_0x69e9fe[_0x3e8734(0x216)],_0x4f4911)['then'](_0x4548a9=>{const _0x43ad1c=_0x3e8734;_0x2766b&&_0x4548a9&&(_0x520adc(_0x4548a9),_0x19a1e4(_0x1d6b69['getChartRuntime'](_0x58234f,_0x69e9fe[_0x43ad1c(0x216)])??null),_0x16f9f3(!0x1));})['catch'](_0x1b3604=>{const _0x5e9ec4=_0x3e8734;_0x1e72da[_0x5e9ec4(0x305)](_0x5e9ec4(0x263),_0x1b3604),_0x2766b&&(_0x520adc(null),_0x16f9f3(!0x0));}),()=>{_0x2766b=!0x1;};},[_0x1e72da,_0x1d6b69,_0x41729d,_0x58234f,_0x3b7271,_0x52e040]),!_0x5492d5||!mt(_0x3b7271))return null;let _0xae49dd=_0x1d6b69['getChartRuntime'](_0x58234f,_0x69e9fe[_0x86a241(0x216)])===_0x348af1?_0x348af1:null,_0x4967fd=_0x3cb64f?(0x0,g[_0x86a241(0x38d)])(_0x86a241(0x460),{'className':'univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','style':{'gridTemplateRows':_0x3b7271[_0x86a241(0x1ca)][_0x86a241(0x10e)]===_0x86a241(0x23b)?_0x86a241(0x4a8):_0x86a241(0x135)},'children':[_0x3b7271['config'][_0x86a241(0x10e)]!==_0x86a241(0x4da)&&_0xae49dd&&(0x0,g[_0x86a241(0x23f)])(_0x86a241(0x460),{'className':_0x86a241(0x22c),'children':(0x0,g[_0x86a241(0x23f)])(re,{'isRowDirection':(0x0,e[_0x86a241(0xe7)])(_0x3b7271[_0x86a241(0x1ca)]['chart']['orient']),'runtime':_0xae49dd})}),_0x3b7271[_0x86a241(0x1ca)][_0x86a241(0x10e)]!==_0x86a241(0xd9)&&(0x0,g[_0x86a241(0x23f)])(_0x86a241(0x460),{'className':_0x86a241(0x2eb),'children':(0x0,g['jsx'])(Ge,{'pivot':_0x3b7271[_0x86a241(0x1ca)]['pivot'],'view':_0x3cb64f[_0x86a241(0x1b4)]})})]}):(0x0,g[_0x86a241(0x23f)])(_0x86a241(0x460),{'className':_0x86a241(0x378),'children':_0x408780?_0x4d03d5['t'](_0x86a241(0x4d9)):_0x4d03d5['t'](_0x86a241(0x3f2))}),_0x53c8e2=(0x0,g[_0x86a241(0x23f)])(ft,{'config':_0x3b7271[_0x86a241(0x1ca)],'runtime':_0xae49dd,'table':_0x5492d5,'onChange':_0xd81053=>{const _0x3dc4de=_0x86a241;_0x5a81b5[_0x3dc4de(0x217)](_0x58234f),_0x5a81b5[_0x3dc4de(0x10f)](_0x58234f),_0x4640d2[_0x3dc4de(0x387)](e[_0x3dc4de(0x2af)]['id'],{'unitId':_0x58234f,'tableId':_0x41729d,'viewId':_0x52e040,'patch':_0xd81053})['catch'](_0x7e2c4a=>_0x1e72da['error'](_0x3dc4de(0x402),_0x7e2c4a));}});return(0x0,g['jsx'])(ue,{'children':(0x0,g['jsxs'])(_0x86a241(0x460),{'className':_0x86a241(0x1a3),'children':[_0x3e8d63&&(0x0,g[_0x86a241(0x23f)])(f[_0x86a241(0x3da)],{'onClick':()=>_0x167eee(!0x0),'children':_0x4d03d5['t'](_0x86a241(0x478))}),(0x0,g['jsx'])(_0x86a241(0x460),{'className':_0x86a241(0x3df),'children':_0x4967fd}),_0x3e8d63&&_0xe6d1fa&&(0x0,g[_0x86a241(0x23f)])(t[_0x86a241(0x105)],{'title':_0x4d03d5['t'](_0x86a241(0x2df)),'onClose':()=>_0x167eee(!0x1),'children':_0x53c8e2})]})});}function mt(_0x402bb4){const _0x1e66cc=_0x30b590;return(_0x402bb4==null?void 0x0:_0x402bb4[_0x1e66cc(0x11c)])===a[_0x1e66cc(0x4a1)][_0x1e66cc(0x2d0)]&&typeof _0x402bb4[_0x1e66cc(0x1ca)]==_0x1e66cc(0x368)&&_0x402bb4[_0x1e66cc(0x1ca)]!==null&&_0x1e66cc(0x258)in _0x402bb4['config']&&_0x1e66cc(0xd9)in _0x402bb4[_0x1e66cc(0x1ca)]&&_0x1e66cc(0x10e)in _0x402bb4[_0x1e66cc(0x1ca)];}let ht=class extends a[_0x30b590(0x35a)]{constructor(_0x2b4178,_0x9f28b8,_0x963913,_0x4aebb9,_0x2d0c8c,_0x3c023c){const _0x54e9dd=_0x30b590;super(),this[_0x54e9dd(0x10b)](_0x9f28b8['register']({'type':a[_0x54e9dd(0x4a1)][_0x54e9dd(0x2d0)],'renderMode':_0x54e9dd(0x369),'icon':s[_0x54e9dd(0x14b)],'component':pt,'menu':{get 'label'(){const _0x454a84=_0x54e9dd;return _0x3c023c['t'](_0x454a84(0x2df));},get 'description'(){const _0x5d7695=_0x54e9dd;return _0x3c023c['t'](_0x5d7695(0x2dc));},get 'defaultName'(){return _0x3c023c['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x54e9dd(0x10b)](_0x2b4178[_0x54e9dd(0x18b)](gt(_0x963913,_0x4aebb9,_0x2d0c8c,_0x3c023c)));}};ht=P([N(0x0,t['IBaseDashboardUIExtensionRegistryService']),N(0x1,t[_0x30b590(0x313)]),N(0x2,(0x0,a[_0x30b590(0x123)])(e[_0x30b590(0x3a7)])),N(0x3,a['ICommandService']),N(0x4,a[_0x30b590(0x164)]),N(0x5,(0x0,a[_0x30b590(0x123)])(a[_0x30b590(0x3ea)]))],ht);function gt(_0x14eef4,_0x3dc137,_0xc319f7,_0xac472e){const _0x3f70d0=_0x30b590;return{'change$':(0x0,c[_0x3f70d0(0x17d)])(_0x14eef4[_0x3f70d0(0x435)],_0xc319f7[_0x3f70d0(0x11e)]),'component':Ie,get 'labels'(){const _0x479006=_0x3f70d0;return{'add':_0xac472e['t'](_0x479006(0x347)),'configure':_0x1fd62c=>_0xac472e['t']('bases-dashboard-ui.dashboard.configure',_0x1fd62c),'delete':_0xac472e['t'](_0x479006(0x2f6)),'new':_0xac472e['t'](_0x479006(0x35e)),'rename':_0xac472e['t'](_0x479006(0x136)),'search':_0xac472e['t'](_0x479006(0x459)),'section':_0xac472e['t']('bases-dashboard-ui.dashboard.section')};},'getItems':_0x346141=>{const _0x2a75e6=_0x3f70d0;let _0x5ec6f0=_0x14eef4['getResource'](_0x346141);return _0x5ec6f0[_0x2a75e6(0x453)][_0x2a75e6(0x4e3)](_0x39293e=>{const _0x5cd3ab=_0x2a75e6;let _0x23848a=_0x5ec6f0[_0x5cd3ab(0x152)][_0x39293e];return _0x23848a?[{'id':_0x23848a['id'],'name':_0x23848a[_0x5cd3ab(0x451)],'readonly':!(0x0,e['canEditBaseDashboard'])(_0xc319f7,_0x346141,_0x23848a['id'])}]:[];});},'create':async _0x1ecb2a=>{const _0x10e7cd=_0x3f70d0;let _0x44726a=_0x14eef4['getResource'](_0x1ecb2a),_0x3f1c29='dashboard-'+(0x0,a[_0x10e7cd(0x3f8)])(0x8),_0x1bdf97=_t(_0x44726a[_0x10e7cd(0x453)]['flatMap'](_0x3723de=>{const _0x378a6f=_0x10e7cd;let _0x5affe3=_0x44726a[_0x378a6f(0x152)][_0x3723de];return _0x5affe3?[_0x5affe3[_0x378a6f(0x451)]]:[];}),_0x1ffa58=>_0xac472e['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x1ffa58)));return await _0x3dc137[_0x10e7cd(0x387)](e[_0x10e7cd(0x48e)]['id'],{'unitId':_0x1ecb2a,'dashboard':{'id':_0x3f1c29,'name':_0x1bdf97,'widgetOrder':[],'widgets':{}}})?_0x3f1c29:null;},'rename':async(_0x186776,_0x439012,_0x41331b)=>{const _0x267e26=_0x3f70d0;let _0x55a777=_0x14eef4[_0x267e26(0x499)](_0x186776,_0x439012);return!!(_0x55a777&&await _0x3dc137[_0x267e26(0x387)](e[_0x267e26(0x180)]['id'],{'unitId':_0x186776,'dashboard':{..._0x55a777,'name':_0x41331b}}));},'remove':(_0x49a49b,_0x1b5275)=>_0x3dc137[_0x3f70d0(0x387)](e[_0x3f70d0(0x1d4)]['id'],{'unitId':_0x49a49b,'dashboardId':_0x1b5275})};}function _t(_0xaaf626,_0x186904){const _0x13054a=_0x30b590;let _0x4b6917=new Set(_0xaaf626),_0x202e81=_0x4b6917[_0x13054a(0x39c)]+0x1,_0x2811d7=_0x186904(_0x202e81);for(;_0x4b6917[_0x13054a(0x3a9)](_0x2811d7);)_0x202e81+=0x1,_0x2811d7=_0x186904(_0x202e81);return _0x2811d7;}let Y=class extends a[_0x30b590(0x206)]{constructor(_0x1035bd=C,_0x336561,_0x43e72c){const _0x2c160a=_0x30b590;super(),this['_config']=_0x1035bd,this[_0x2c160a(0x477)]=_0x336561,this[_0x2c160a(0x3dc)]=_0x43e72c;let {..._0x20af9d}=(0x0,a['merge'])({},C,this[_0x2c160a(0x2bb)]);this[_0x2c160a(0x3dc)][_0x2c160a(0x469)](S,_0x20af9d);}[_0x30b590(0x235)](){const _0xe007f=_0x30b590;this['_injector'][_0xe007f(0x4c5)]([F]),this[_0xe007f(0x477)][_0xe007f(0x4c5)]([W]),this[_0xe007f(0x477)][_0xe007f(0x4c5)]([ht]);}[_0x30b590(0x28c)](){const _0x525350=_0x30b590;(0x0,a[_0x525350(0x25e)])(this[_0x525350(0x477)],[[F],[W],[ht]]);}};B(Y,'type',a['UniverInstanceType'][_0x30b590(0x1a2)]),B(Y,_0x30b590(0x173),_0x30b590(0x1bf)),B(Y,'packageName',b),B(Y,_0x30b590(0x406),x),Y=P([(0x0,a['DependentOn'])(r[_0x30b590(0x1e7)],e[_0x30b590(0x18c)],t[_0x30b590(0x37b)],n[_0x30b590(0x425)],i[_0x30b590(0x35c)],o['UniverDocsUIPlugin']),N(0x1,(0x0,a['Inject'])(a[_0x30b590(0x495)])),N(0x2,a['IConfigService'])],Y);function vt(_0x1ad99a,_0x3452f4,_0x4df187,_0x1d0eb5){const _0x817e38=_0x30b590;let _0x236d2d={..._0x1ad99a};if(_0x3452f4[_0x817e38(0x30a)]('w')){let _0x47b2ad=_0x1ad99a[_0x817e38(0x278)]+_0x1ad99a[_0x817e38(0x280)];_0x236d2d[_0x817e38(0x278)]=Math[_0x817e38(0x26a)](0x0,Math[_0x817e38(0x2f9)](_0x47b2ad-0x1,_0x1ad99a['column']+_0x4df187)),_0x236d2d['columnSpan']=_0x47b2ad-_0x236d2d[_0x817e38(0x278)];}else _0x3452f4[_0x817e38(0x30a)]('e')&&(_0x236d2d['columnSpan']=Math['max'](0x1,Math[_0x817e38(0x2f9)](e[_0x817e38(0xf4)]-_0x1ad99a[_0x817e38(0x278)],_0x1ad99a[_0x817e38(0x280)]+_0x4df187)));if(_0x3452f4[_0x817e38(0x30a)]('n')){let _0xd3e485=_0x1ad99a[_0x817e38(0x15e)]+_0x1ad99a[_0x817e38(0x4aa)];_0x236d2d[_0x817e38(0x15e)]=Math[_0x817e38(0x26a)](0x0,Math['min'](_0xd3e485-0x1,_0x1ad99a['row']+_0x1d0eb5)),_0x236d2d[_0x817e38(0x4aa)]=_0xd3e485-_0x236d2d[_0x817e38(0x15e)];}else _0x3452f4[_0x817e38(0x30a)]('s')&&(_0x236d2d[_0x817e38(0x4aa)]=Math[_0x817e38(0x26a)](0x1,_0x1ad99a[_0x817e38(0x4aa)]+_0x1d0eb5));return _0x236d2d;}function yt(_0x38ecd5){const _0x145e77=_0x30b590;let _0x24ae83=Math[_0x145e77(0x26a)](0x1,Math[_0x145e77(0x2f9)](e[_0x145e77(0xf4)],Math[_0x145e77(0x1a8)](_0x38ecd5[_0x145e77(0x280)])));return{'column':Math[_0x145e77(0x26a)](0x0,Math[_0x145e77(0x2f9)](e['BASES_DASHBOARD_GRID_COLUMNS']-_0x24ae83,Math[_0x145e77(0x1a8)](_0x38ecd5[_0x145e77(0x278)]))),'row':Math['max'](0x0,Math['round'](_0x38ecd5[_0x145e77(0x15e)])),'columnSpan':_0x24ae83,'rowSpan':Math['max'](0x1,Math[_0x145e77(0x1a8)](_0x38ecd5[_0x145e77(0x4aa)]))};}function bt(_0xa52afb,_0x49d2ee,_0x2d800a){const _0x208b93=_0x30b590;let _0x2bed05=new Map(_0xa52afb),_0x1e32f7=yt(_0x2d800a);_0x2bed05[_0x208b93(0x490)](_0x49d2ee,_0x1e32f7);let _0x23ada1=[[_0x49d2ee,_0x1e32f7]];for(let [_0x5e3202,_0x12afc4]of _0x2bed05){if(_0x5e3202===_0x49d2ee)continue;let _0x462bcb=yt(_0x12afc4);for(;_0x23ada1[_0x208b93(0x364)](([,_0x50aacf])=>St(_0x462bcb,_0x50aacf));)_0x462bcb={..._0x462bcb,'row':_0x462bcb[_0x208b93(0x15e)]+0x1};for(;_0x462bcb['row']>0x0;){let _0x5c5df7={..._0x462bcb,'row':_0x462bcb['row']-0x1};if(_0x23ada1[_0x208b93(0x364)](([,_0x43a98e])=>St(_0x5c5df7,_0x43a98e)))break;_0x462bcb=_0x5c5df7;}_0x23ada1[_0x208b93(0x4d5)]([_0x5e3202,_0x462bcb]),_0x2bed05[_0x208b93(0x490)](_0x5e3202,_0x462bcb);}return _0x2bed05;}function xt(_0x48fb1c,_0x1fe062,_0x47e1d7,_0x2c04f2=0x38,_0x2675b1=0x16){const _0x26f258=_0x30b590;return _0x48fb1c<_0x1fe062+_0x2c04f2?-Math[_0x26f258(0x149)](_0x2675b1*(0x1-Math[_0x26f258(0x26a)](0x0,_0x48fb1c-_0x1fe062)/_0x2c04f2)):_0x48fb1c>_0x47e1d7-_0x2c04f2?Math['ceil'](_0x2675b1*(0x1-Math[_0x26f258(0x26a)](0x0,_0x47e1d7-_0x48fb1c)/_0x2c04f2)):0x0;}function St(_0x5d25ff,_0x45a87d){const _0x57e645=_0x30b590;return _0x5d25ff[_0x57e645(0x278)]<_0x45a87d[_0x57e645(0x278)]+_0x45a87d[_0x57e645(0x280)]&&_0x5d25ff['column']+_0x5d25ff['columnSpan']>_0x45a87d['column']&&_0x5d25ff[_0x57e645(0x15e)]<_0x45a87d['row']+_0x45a87d['rowSpan']&&_0x5d25ff[_0x57e645(0x15e)]+_0x5d25ff[_0x57e645(0x4aa)]>_0x45a87d[_0x57e645(0x15e)];}const Ct=[{'direction':'nw','className':_0x30b590(0x254)},{'direction':'n','className':_0x30b590(0x1b3)},{'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':_0x30b590(0x11d)},{'direction':'se','className':_0x30b590(0x261)},{'direction':'s','className':_0x30b590(0x2ec)},{'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':_0x30b590(0x4dc)}];function wt({dashboard:_0x5234da,dragLabel:_0x323087,editable:_0x52ab52=!0x0,onLayoutsCommit:_0x202721,onSelectWidget:_0x44985e,renderWidget:_0xda5ba0,renderWidgetActions:_0x4fe516,resizeLabel:_0x2d7279,selectedWidgetId:_0x598fe6,widgetLabel:_0x29795}){const _0x57e339=_0x30b590;let _0x2449bd=(0x0,h[_0x57e339(0x414)])(null),_0x100c7c=(0x0,h[_0x57e339(0x414)])(null),[_0x570862,_0x5a2c39]=(0x0,h[_0x57e339(0x40a)])(!0x1),_0x3d5b23=(0x0,h[_0x57e339(0x2c1)])(()=>new Map(_0x5234da[_0x57e339(0x4c7)][_0x57e339(0x4e3)](_0x28e423=>{const _0x1db7d7=_0x57e339;let _0x3491c8=_0x5234da[_0x1db7d7(0x110)][_0x28e423];return _0x3491c8?[[_0x28e423,_0x3491c8[_0x1db7d7(0x122)]]]:[];})),[_0x5234da]),[_0x40f70c,_0x51af28]=(0x0,h[_0x57e339(0x40a)])(_0x3d5b23);(0x0,h[_0x57e339(0x3dd)])(()=>{const _0x473722=_0x57e339;_0x100c7c[_0x473722(0x216)]||_0x51af28(_0x3d5b23);},[_0x3d5b23]),(0x0,h[_0x57e339(0x3dd)])(()=>{const _0xa30977=_0x57e339;if(!_0x570862)return;let _0x28050a=_0x5ec717=>{const _0x3a20d5=_0x1e15;let _0x373bc2=_0x2449bd[_0x3a20d5(0x216)];if(!_0x373bc2)return null;let _0x279e38=_0x373bc2['getBoundingClientRect'](),_0x50176d=Math[_0x3a20d5(0x26a)](0x1,(_0x279e38[_0x3a20d5(0x39e)]-0x8*(e[_0x3a20d5(0xf4)]-0x1))/e[_0x3a20d5(0xf4)]),_0x46194e=Math[_0x3a20d5(0x1a8)]((_0x373bc2[_0x3a20d5(0x2a0)]-_0x5ec717['startScrollTop'])/(e[_0x3a20d5(0xfd)]+0x8)),_0x2e6244=Math['round']((_0x5ec717[_0x3a20d5(0x4d0)]-_0x5ec717[_0x3a20d5(0x355)])/(_0x50176d+0x8)),_0x1612df=Math[_0x3a20d5(0x1a8)]((_0x5ec717[_0x3a20d5(0x483)]-_0x5ec717[_0x3a20d5(0x146)])/(e[_0x3a20d5(0xfd)]+0x8))+_0x46194e,_0x4fd04c=_0x5ec717[_0x3a20d5(0x3e5)]===_0x3a20d5(0x42f)?{..._0x5ec717[_0x3a20d5(0x4b2)],'column':_0x5ec717[_0x3a20d5(0x4b2)][_0x3a20d5(0x278)]+_0x2e6244,'row':_0x5ec717[_0x3a20d5(0x4b2)][_0x3a20d5(0x15e)]+_0x1612df}:vt(_0x5ec717[_0x3a20d5(0x4b2)],_0x5ec717[_0x3a20d5(0x488)]??'se',_0x2e6244,_0x1612df),_0x375af3=bt(_0x5ec717['initialLayouts'],_0x5ec717['id'],_0x4fd04c);return _0x51af28(_0x375af3),_0x375af3;},_0x3a8ac2=_0x19edd8=>{const _0x21485e=_0x1e15;let _0x2f78e7=_0x100c7c[_0x21485e(0x216)];if(!_0x2f78e7)return;let _0xc4403b={..._0x2f78e7,'pointerX':_0x19edd8[_0x21485e(0x491)],'pointerY':_0x19edd8[_0x21485e(0x12f)]};_0x100c7c[_0x21485e(0x216)]=_0xc4403b;},_0x46eb8c=()=>{const _0xf829b3=_0x1e15;let _0x3fbae4=_0x100c7c[_0xf829b3(0x216)],_0x140ca3=_0x3fbae4?_0x28050a(_0x3fbae4):null;_0x100c7c[_0xf829b3(0x216)]=null,_0x5a2c39(!0x1),_0x140ca3&&_0x202721(_0x140ca3);},_0x3d64ec=0x0,_0x213978=()=>{const _0x3733d4=_0x1e15;let _0x121155=_0x2449bd[_0x3733d4(0x216)],_0x20e74d=_0x100c7c[_0x3733d4(0x216)];if(_0x121155&&_0x20e74d){let _0x115f77=_0x121155[_0x3733d4(0x118)](),_0xbb2c27=xt(_0x20e74d[_0x3733d4(0x483)],_0x115f77[_0x3733d4(0x291)],_0x115f77[_0x3733d4(0x1c3)]);_0xbb2c27!==0x0&&(_0x121155[_0x3733d4(0x2a0)]+=_0xbb2c27),_0x28050a(_0x20e74d),_0x3d64ec=requestAnimationFrame(_0x213978);}};return _0x3d64ec=requestAnimationFrame(_0x213978),window[_0xa30977(0x42d)](_0xa30977(0x49b),_0x3a8ac2),window[_0xa30977(0x42d)]('pointerup',_0x46eb8c),()=>{const _0x518b2c=_0xa30977;cancelAnimationFrame(_0x3d64ec),window['removeEventListener'](_0x518b2c(0x49b),_0x3a8ac2),window['removeEventListener']('pointerup',_0x46eb8c);};},[_0x570862,_0x202721]);let _0x159624=Math[_0x57e339(0x26a)](0x8,...Array[_0x57e339(0x443)](_0x40f70c[_0x57e339(0x1ba)]())[_0x57e339(0x48a)](_0x397e99=>_0x397e99[_0x57e339(0x15e)]+_0x397e99[_0x57e339(0x4aa)])),_0xd0ba07=(_0x258f32,_0x290c03,_0x1890ec,_0x54dcf2)=>{const _0x73d595=_0x57e339;_0x258f32['preventDefault'](),_0x258f32[_0x73d595(0x231)]();let _0x5d4460=_0x2449bd['current'],_0x4099f2={'id':_0x290c03['id'],'mode':_0x1890ec,'pointerX':_0x258f32[_0x73d595(0x491)],'pointerY':_0x258f32[_0x73d595(0x12f)],'startX':_0x258f32[_0x73d595(0x491)],'startY':_0x258f32['clientY'],'startScrollTop':(_0x5d4460==null?void 0x0:_0x5d4460[_0x73d595(0x2a0)])??0x0,'initial':_0x40f70c[_0x73d595(0x4ae)](_0x290c03['id'])??_0x290c03[_0x73d595(0x122)],'initialLayouts':new Map(_0x40f70c),'resizeDirection':_0x54dcf2};_0x100c7c['current']=_0x4099f2,_0x5a2c39(!0x0);};return(0x0,g[_0x57e339(0x23f)])(_0x57e339(0x460),{'ref':_0x2449bd,'data-dashboard-scroll-container':!0x0,'className':(0x0,f[_0x57e339(0x373)])(_0x57e339(0x2cd),f[_0x57e339(0x166)]),'onClick':_0x52ab52?_0x2b81ed=>{const _0x48853f=_0x57e339;if(!(_0x2b81ed[_0x48853f(0x12d)]instanceof Node)||!_0x2b81ed[_0x48853f(0x408)]['contains'](_0x2b81ed[_0x48853f(0x12d)]))return;let _0x402926=_0x2b81ed['target']instanceof Element?_0x2b81ed[_0x48853f(0x12d)]:_0x2b81ed[_0x48853f(0x12d)][_0x48853f(0x311)];_0x402926!=null&&_0x402926[_0x48853f(0x372)]('[data-dashboard-widget]')||_0x44985e==null||_0x44985e();}:void 0x0,'children':(0x0,g[_0x57e339(0x23f)])(_0x57e339(0x460),{'data-dashboard-grid':!0x0,'className':_0x57e339(0x42a),'style':{'gap':0x8,'gridAutoRows':e[_0x57e339(0xfd)],'minHeight':_0x159624*(e[_0x57e339(0xfd)]+0x8)},'children':_0x5234da[_0x57e339(0x4c7)]['map'](_0x25e19d=>{const _0x3712dc=_0x57e339;var _0x42493a;let _0x49c14f=_0x5234da[_0x3712dc(0x110)][_0x25e19d],_0x5aaee4=_0x40f70c[_0x3712dc(0x4ae)](_0x25e19d);return!_0x49c14f||!_0x5aaee4?null:(0x0,g[_0x3712dc(0x38d)])(_0x3712dc(0x259),{'data-dashboard-widget':_0x49c14f['id'],'aria-label':_0x49c14f['title']??_0x29795(_0x49c14f),'className':(0x0,f[_0x3712dc(0x373)])(_0x3712dc(0xf5),_0x49c14f[_0x3712dc(0x11c)]===e[_0x3712dc(0x1e4)][_0x3712dc(0x108)]||_0x49c14f['type']===e['BaseDashboardWidgetType'][_0x3712dc(0x31c)]?'univer-bg-transparent\x20dark:!univer-bg-transparent':'univer-bg-gray-0\x20dark:!univer-bg-gray-900',_0x52ab52&&_0x598fe6===_0x49c14f['id']?_0x3712dc(0x2ea):_0x3712dc(0x389)),'style':{'gridColumn':_0x5aaee4[_0x3712dc(0x278)]+0x1+_0x3712dc(0x3f7)+_0x5aaee4[_0x3712dc(0x280)],'gridRow':_0x5aaee4[_0x3712dc(0x15e)]+0x1+'\x20/\x20span\x20'+_0x5aaee4[_0x3712dc(0x4aa)]},'tabIndex':_0x52ab52?0x0:void 0x0,'onClick':_0x52ab52?()=>_0x44985e==null?void 0x0:_0x44985e(_0x49c14f['id']):void 0x0,'onFocus':_0x52ab52?()=>_0x44985e==null?void 0x0:_0x44985e(_0x49c14f['id']):void 0x0,'children':[_0x52ab52&&(0x0,g[_0x3712dc(0x23f)])(_0x3712dc(0x1e9),{'type':'button','aria-label':_0x323087,'data-dashboard-drag-handle':_0x49c14f['id'],'className':(0x0,f[_0x3712dc(0x373)])(_0x3712dc(0x4cb),_0x570862&&((_0x42493a=_0x100c7c[_0x3712dc(0x216)])==null?void 0x0:_0x42493a['id'])===_0x49c14f['id']&&_0x100c7c[_0x3712dc(0x216)][_0x3712dc(0x3e5)]==='move'?_0x3712dc(0x2e3):_0x3712dc(0x1ee)),'onPointerDown':_0x1a5052=>_0xd0ba07(_0x1a5052,_0x49c14f,_0x3712dc(0x42f)),'children':(0x0,g[_0x3712dc(0x23f)])(s[_0x3712dc(0x4af)],{'className':_0x3712dc(0x21f),'aria-hidden':_0x3712dc(0x445)})}),_0x52ab52&&(0x0,g[_0x3712dc(0x23f)])(_0x3712dc(0x460),{'className':_0x3712dc(0x3d0),'children':_0x4fe516==null?void 0x0:_0x4fe516(_0x49c14f)}),(0x0,g['jsx'])(_0x3712dc(0x460),{'className':_0x3712dc(0x412),'children':_0xda5ba0(_0x49c14f)}),_0x52ab52&&Ct[_0x3712dc(0x48a)](({className:_0x2e3ed8,direction:_0x51a8e4})=>{const _0x4f0d42=_0x3712dc;let _0x1d07c9=_0x51a8e4[_0x4f0d42(0xf8)]===0x2;return(0x0,g[_0x4f0d42(0x23f)])(_0x4f0d42(0x1e9),{'type':_0x4f0d42(0x1e9),'aria-label':_0x2d7279,'data-dashboard-resize-handle':_0x51a8e4,'data-dashboard-resize-control':_0x1d07c9?_0x51a8e4:void 0x0,'data-dashboard-resize-edge':_0x1d07c9?void 0x0:_0x51a8e4,'className':(0x0,f[_0x4f0d42(0x373)])('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',_0x1d07c9?'univer-box-content\x20univer-size-1.5\x20univer-rounded-full\x20!univer-border-2\x20!univer-border-solid\x20!univer-border-white\x20!univer-bg-primary-600':'univer-border-0\x20univer-bg-transparent',_0x2e3ed8,_0x598fe6===_0x49c14f['id']&&_0x4f0d42(0x16d)),'onPointerDown':_0x1123f4=>_0xd0ba07(_0x1123f4,_0x49c14f,_0x4f0d42(0x119),_0x51a8e4)},_0x51a8e4);})]},_0x49c14f['id']);})})});}var Tt;const X={'axis':{...n[_0x30b590(0x33e)],'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':n['DEFAULT_CHART_FUNNEL_VALUES'],'heatmap':n[_0x30b590(0xfa)],'indicatorLine':n[_0x30b590(0x4fa)],'legend':n[_0x30b590(0x361)],'lineAndArea':n[_0x30b590(0x1f3)],'pareto':n[_0x30b590(0x3ab)],'pie':n[_0x30b590(0x4e8)],'radar':n['DEFAULT_CHART_RADAR_VALUES'],'relation':{...n['DEFAULT_CHART_RELATION_VALUES'],'useValueAsSymbolSize':!0x0},'series':{...n[_0x30b590(0x16e)],'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Tt=_[_0x30b590(0x177)][_0x30b590(0x45c)])==null?void 0x0:Tt[_0x30b590(0x352)])??!0x1}},'style':n[_0x30b590(0x233)],'titles':n[_0x30b590(0x1e6)],'trendline':n[_0x30b590(0x1fc)],'waterfall':{...n[_0x30b590(0x306)],'useSubtotal':!0x0},'waterfallStyle':n[_0x30b590(0x1d1)],'wordCloud':n['DEFAULT_CHART_WORD_CLOUD_VALUES']},Et=[_['ChartTypeBits'][_0x30b590(0x266)],_[_0x30b590(0x1f6)][_0x30b590(0x14c)],_[_0x30b590(0x1f6)][_0x30b590(0x300)],_[_0x30b590(0x1f6)]['Scatter'],_['ChartTypeBits']['Funnel'],_['ChartTypeBits'][_0x30b590(0x4a6)],_[_0x30b590(0x1f6)][_0x30b590(0x223)],_[_0x30b590(0x1f6)]['Heatmap'],_[_0x30b590(0x1f6)][_0x30b590(0x3aa)],_[_0x30b590(0x1f6)][_0x30b590(0x42b)],_['ChartTypeBits']['Histogram'],_[_0x30b590(0x1f6)][_0x30b590(0x421)],_[_0x30b590(0x1f6)][_0x30b590(0x2b0)],_[_0x30b590(0x1f6)][_0x30b590(0x358)],_[_0x30b590(0x1f6)][_0x30b590(0xd5)]];function Dt(_0x5e8898){const _0x4fcab4=_0x30b590;let {config:_0x3c11e2,onChange:_0x56ffdf,runtime:_0x5f4a81,tableName:_0x3de085}=_0x5e8898,_0x453248=(0x0,m[_0x4fcab4(0x155)])(W),_0x59b916=(0x0,m[_0x4fcab4(0x155)])(a[_0x4fcab4(0x3ea)]),[_0x41adc1,_0xb57dbe]=(0x0,h[_0x4fcab4(0x40a)])(n[_0x4fcab4(0x487)][_0x4fcab4(0x1d6)]),_0x501aa5=(0x0,h[_0x4fcab4(0x2c1)])(()=>new n[(_0x4fcab4(0x424))](_0x5f4a81[_0x4fcab4(0x21c)],{'commit':_0x4aa08c=>{const _0x386720=_0x4fcab4;var _0x38a7be;let _0x50bd51=_0x5f4a81[_0x386720(0x21c)],_0x204c71=(0x0,_[_0x386720(0x18d)])(_0x4aa08c,{'series':(_0x38a7be=_0x50bd51['config'])==null?void 0x0:_0x38a7be[_0x386720(0x392)],'currentChartType':_0x50bd51[_0x386720(0x1ef)],'currentStyle':_0x50bd51['style'],'currentContext':_0x50bd51['context'],'currentDataAggregation':_0x50bd51[_0x386720(0x2d2)]});_0x56ffdf({'chart':Ot(_0x3c11e2[_0x386720(0xd9)],_0x204c71)});}}),[_0x3c11e2['chart'],_0x56ffdf,_0x5f4a81]),_0x20e209=(0x0,h[_0x4fcab4(0x2c1)])(()=>(0x0,n[_0x4fcab4(0x2ba)])(n[_0x4fcab4(0x1f2)][_0x4fcab4(0x48a)](_0x474b9b=>({..._0x474b9b,'label':_0x59b916['t'](Mt(_0x474b9b[_0x4fcab4(0x407)]))}))),[_0x59b916]);return(0x0,g[_0x4fcab4(0x23f)])(n['ChartEditorProvider'],{'chartUIService':_0x453248,'hostAdapter':_0x501aa5,'children':(0x0,g['jsxs'])(_0x4fcab4(0x460),{'className':_0x4fcab4(0x2ff),'children':[(0x0,g['jsx'])(n[_0x4fcab4(0x22f)],{'ariaLabel':_0x59b916['t'](_0x4fcab4(0x14f)),'className':_0x4fcab4(0x22d),'items':[{'label':_0x59b916['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0x4fcab4(0x3c3),'value':n['ChartEditPanelTab'][_0x4fcab4(0x1d6)]},{'label':_0x59b916['t'](_0x4fcab4(0x2ca)),'panelId':_0x4fcab4(0x4bf),'value':n[_0x4fcab4(0x487)][_0x4fcab4(0x470)]}],'value':_0x41adc1,'onChange':_0xb57dbe}),_0x41adc1===n[_0x4fcab4(0x487)][_0x4fcab4(0x1d6)]?(0x0,g[_0x4fcab4(0x23f)])(n['ChartEditPanel'],{'id':_0x4fcab4(0x3c3),'label':_0x59b916['t'](_0x4fcab4(0x3ef)),'children':(0x0,g[_0x4fcab4(0x38d)])(_0x4fcab4(0x460),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[(0x0,g[_0x4fcab4(0x23f)])(n[_0x4fcab4(0x174)],{'options':_0x20e209}),(0x0,g[_0x4fcab4(0x23f)])(n[_0x4fcab4(0x27a)],{}),(0x0,g[_0x4fcab4(0x23f)])(n[_0x4fcab4(0x26f)],{}),(0x0,g['jsx'])(kt,{}),(0x0,g[_0x4fcab4(0x23f)])(n[_0x4fcab4(0x3cf)],{}),(0x0,g['jsxs'])('div',{'children':[(0x0,g[_0x4fcab4(0x23f)])(n['ChartEditBlockTitle'],{'title':_0x59b916['t']('bases-dashboard-ui.pivot.dataSource')}),(0x0,g[_0x4fcab4(0x23f)])(f[_0x4fcab4(0x104)],{'disabled':!0x0,'value':_0x3de085})]}),(0x0,g[_0x4fcab4(0x23f)])(n[_0x4fcab4(0x46e)],{'orientationControl':(0x0,g['jsx'])(f['Button'],{'size':_0x4fcab4(0x301),'onClick':()=>_0x56ffdf({'chart':{..._0x3c11e2['chart'],'orient':_0x3c11e2[_0x4fcab4(0xd9)]['orient']===_0x4fcab4(0x15e)?_0x4fcab4(0x278):'row'}}),'children':_0x59b916['t'](_0x4fcab4(0x4eb))})}),(0x0,g['jsx'])(n[_0x4fcab4(0x208)],{}),(0x0,g[_0x4fcab4(0x23f)])(n[_0x4fcab4(0x24e)],{'defaultValues':X[_0x4fcab4(0x393)]}),(0x0,g[_0x4fcab4(0x38d)])('div',{'children':[(0x0,g['jsx'])(n[_0x4fcab4(0x2a1)],{'title':_0x59b916['t'](_0x4fcab4(0x383))}),(0x0,g[_0x4fcab4(0x23f)])(f[_0x4fcab4(0x15c)],{'value':_0x3c11e2[_0x4fcab4(0x10e)],'options':[{'value':_0x4fcab4(0x23b),'label':_0x59b916['t']('bases-dashboard-ui.pivot.chartAndTable')},{'value':_0x4fcab4(0xd9),'label':_0x59b916['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':_0x4fcab4(0x4da),'label':_0x59b916['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x501d9f=>{const _0x4b9c54=_0x4fcab4;(_0x501d9f==='chart-and-table'||_0x501d9f===_0x4b9c54(0xd9)||_0x501d9f==='table')&&_0x56ffdf({'displayMode':_0x501d9f});}})]})]})}):(0x0,g[_0x4fcab4(0x23f)])(n[_0x4fcab4(0x1c5)],{'id':'base-pivot-chart-style','label':_0x59b916['t'](_0x4fcab4(0x2ca)),'children':(0x0,g[_0x4fcab4(0x23f)])(At,{})})]})});}function Ot(_0x277d98,_0x42591d){const _0x3c8ed3=_0x30b590;return{..._0x277d98,'type':_0x42591d['chartType']??_0x277d98['type'],'style':_0x42591d['style']??_0x277d98[_0x3c8ed3(0x130)],'context':_0x42591d[_0x3c8ed3(0x316)]??_0x277d98['context'],'dataAggregation':_0x42591d[_0x3c8ed3(0x2d2)]??_0x277d98[_0x3c8ed3(0x2d2)]};}function kt(){const _0x189514=_0x30b590;let _0x5c4a98=(0x0,n['useChartEditorChartType'])();return(0x0,g[_0x189514(0x23f)])(n[_0x189514(0x128)],{'visible':Et[_0x189514(0x15f)](_0x5aecd2=>!_[_0x189514(0x31a)][_0x189514(0xf3)](_0x5c4a98,_0x5aecd2))});}function Z(_0x3a91cd){const _0x58a27e=_0x30b590;return(0x0,g[_0x58a27e(0x38d)])(n['ChartSectionAccordionItem'],{'id':_0x3a91cd['id'],'children':[(0x0,g[_0x58a27e(0x23f)])(n[_0x58a27e(0x183)],{'children':_0x3a91cd[_0x58a27e(0x1c2)]}),(0x0,g[_0x58a27e(0x23f)])(n[_0x58a27e(0x359)],{'children':_0x3a91cd[_0x58a27e(0x1aa)]})]});}function At(){const _0x5277e6=_0x30b590;let _0x3649df=(0x0,m[_0x5277e6(0x155)])(a[_0x5277e6(0x3ea)]),_0xe60106=(0x0,n[_0x5277e6(0x34c)])(),_0x559b38=(0x0,n[_0x5277e6(0x23e)])(),[_0x4179d6,_0x1a206e]=(0x0,h[_0x5277e6(0x40a)])(null),_0x4652c2=_[_0x5277e6(0x31a)][_0x5277e6(0xf3)](_0xe60106,_[_0x5277e6(0x1f6)][_0x5277e6(0x484)]),_0x36165b=_0xe60106===_[_0x5277e6(0x1f6)][_0x5277e6(0x14c)],_0x52f03f=_0xe60106===_[_0x5277e6(0x1f6)]['WordCloud'],_0x14a2dc=_0xe60106===_[_0x5277e6(0x1f6)][_0x5277e6(0x328)],_0x271acb=_['chartBitsUtils'][_0x5277e6(0xf3)](_0xe60106,_['ChartTypeBits']['Bubble']),_0x3e01d1=_0xe60106===_[_0x5277e6(0x1f6)]['Relation'],_0x34cb66=_0xe60106===_['ChartTypeBits']['Waterfall'],_0x103d81=_0xe60106===_[_0x5277e6(0x1f6)]['Pareto'],_0x38c904=_0xe60106===_[_0x5277e6(0x1f6)]['Heatmap'],_0x272c7f=(0x0,n[_0x5277e6(0x36a)])(_0xe60106,n[_0x5277e6(0x420)][_0x5277e6(0x1de)])&&!_0x271acb&&!_0x103d81,_0xcd97b0=jt(_0xe60106,_0x3649df);return(0x0,g[_0x5277e6(0x38d)])(n[_0x5277e6(0x137)],{'value':_0x4179d6,'onChange':_0x1a206e,'children':[(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x210)],'label':_0x3649df['t'](_0x5277e6(0x1e2)),'children':(0x0,g['jsx'])(n[_0x5277e6(0x1ff)],{'defaultValues':X[_0x5277e6(0x130)]})}),(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x36d)],'label':_0x3649df['t'](_0x5277e6(0x34f)),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x3f3)],{'commitMode':'blur','defaultValues':X[_0x5277e6(0x32f)]})}),(0x0,g['jsx'])(n[_0x5277e6(0x1b1)],{'section':'view'}),_0x272c7f&&(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x4fd)],'label':_0x3649df['t'](_0x5277e6(0x1f5)),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x432)],{'defaultValues':X[_0x5277e6(0x392)],'NumberFormatField':n[_0x5277e6(0x102)]})}),_0x34cb66&&(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x496)],'label':_0x3649df['t'](_0x5277e6(0x341)),'children':(0x0,g['jsx'])(n[_0x5277e6(0x367)],{'defaultValues':X[_0x5277e6(0x4cc)],'getDefaultBucketName':({seriesName:_0x2ba625,target:_0x1098aa})=>_0x1098aa===_[_0x5277e6(0x4f8)][_0x5277e6(0x124)]?_0x3649df['t'](_0x5277e6(0x1ac)):_0x2ba625?_0x2ba625+'-('+_0x3649df['t']('bases-dashboard-ui.chart.'+(_0x1098aa===_[_0x5277e6(0x4f8)][_0x5277e6(0x4e2)]?'waterfall.positive':_0x5277e6(0x24a)))+')':'','NumberFormatField':n[_0x5277e6(0x102)]})}),_0x103d81&&(0x0,g[_0x5277e6(0x38d)])(g[_0x5277e6(0x226)],{'children':[(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x285)],'label':_0x3649df['t'](_0x5277e6(0x1cb)),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x1fa)],{'defaultValues':X[_0x5277e6(0x10a)],'NumberFormatField':n[_0x5277e6(0x102)],'showDataPointEditor':!0x0,'target':_0x5277e6(0x2b3)})}),(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)]['ParetoLineSeries'],'label':_0x3649df['t'](_0x5277e6(0x186)),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x1fa)],{'defaultValues':X[_0x5277e6(0x10a)],'NumberFormatField':n[_0x5277e6(0x102)],'showDataPointEditor':!0x1,'target':_0x5277e6(0x1c9)})})]}),_0x4652c2&&(0x0,g['jsx'])(Z,{'id':n['ChartEditPanelSection'][_0x5277e6(0x4c2)],'label':_0x3649df['t']('bases-dashboard-ui.chart.section.pie'),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0xfe)],{'defaultValues':X[_0x5277e6(0x308)],'NumberFormatField':n[_0x5277e6(0x102)]})}),_0x52f03f&&(0x0,g['jsx'])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x300)],'label':_0x3649df['t'](_0x5277e6(0x413)),'children':(0x0,g[_0x5277e6(0x23f)])(n['ChartWordCloudStyleSection'],{'defaultValues':X[_0x5277e6(0x4dd)]})}),_0x36165b&&(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x14c)],'label':_0x3649df['t'](_0x5277e6(0x4ca)),'children':(0x0,g['jsx'])(n[_0x5277e6(0x47c)],{'defaultValues':X[_0x5277e6(0x436)]})}),_0x14a2dc&&(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x328)],'label':_0x3649df['t'](_0x5277e6(0x2d5)),'children':(0x0,g[_0x5277e6(0x23f)])(n['ChartFunnelStyleSection'],{'defaultValues':X[_0x5277e6(0x376)],'gapControl':'select'})}),_0x38c904&&(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)]['Heatmap'],'label':_0x3649df['t']('bases-dashboard-ui.chart.common.heatmap'),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x1d0)],{'defaultValues':X[_0x5277e6(0x430)]})}),_0x3e01d1&&(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x4a6)],'label':_0x3649df['t']('bases-dashboard-ui.chart.section.relation'),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x282)],{'defaultValues':X[_0x5277e6(0x1d9)]})}),(0x0,n['chartTypeSupportsLineAndAreaStyle'])(_0xe60106)&&(0x0,g['jsx'])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0xef)],'label':_0x3649df['t'](_[_0x5277e6(0x31a)]['baseOn'](_0xe60106,_[_0x5277e6(0x1f6)]['Area'])?_0x5277e6(0x391):_0x5277e6(0x384)),'children':(0x0,g['jsx'])(n[_0x5277e6(0x4f7)],{'defaultValues':X[_0x5277e6(0x365)],'lineStyleControl':_0x5277e6(0x4ea)})}),(0x0,n['chartTypeSupportsCapability'])(_0xe60106,n[_0x5277e6(0x420)][_0x5277e6(0x4a0)])&&(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x4a0)],'label':_0x3649df['t'](_0x5277e6(0x3c4)),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x1c8)],{'defaultValues':X['legend']})}),(0x0,n['chartTypeSupportsCapability'])(_0xe60106,n[_0x5277e6(0x420)][_0x5277e6(0x4b4)])&&(0x0,g[_0x5277e6(0x38d)])(g['Fragment'],{'children':[(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0xf1)],'label':_0x3649df['t'](_0x5277e6(0x12c)),'children':(0x0,g['jsx'])(n[_0x5277e6(0x21e)],{'axis':'x','defaultValues':X[_0x5277e6(0x36b)],'NumberFormatField':n[_0x5277e6(0x102)]})}),(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x466)],'label':_0x3649df['t'](_0x5277e6(0x3b7)),'children':(0x0,g['jsx'])(n['ChartAxisSection'],{'axis':'y','defaultValues':X[_0x5277e6(0x36b)],'NumberFormatField':n[_0x5277e6(0x102)]})}),(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x1b1)],{'section':_0x5277e6(0x475)}),_0x559b38&&(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x1ec)],'label':_0x3649df['t']('bases-dashboard-ui.chart.common.rightVerticalAxis'),'children':(0x0,g[_0x5277e6(0x23f)])(n['ChartAxisSection'],{'axis':_0x5277e6(0x205),'defaultValues':X['axis'],'NumberFormatField':n['ChartNumberFormatAtom']})}),(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)]['GridlinesAndTicks'],'label':_0x3649df['t'](_0x5277e6(0x3a3)),'children':(0x0,g[_0x5277e6(0x23f)])(n['ChartGridlinesAndTicksSection'],{'defaultValues':X[_0x5277e6(0x36b)]})})]}),(0x0,n['chartTypeSupportsCapability'])(_0xe60106,n[_0x5277e6(0x420)][_0x5277e6(0x48f)])&&(0x0,g[_0x5277e6(0x23f)])(Z,{'id':n[_0x5277e6(0x382)][_0x5277e6(0x48f)],'label':_0x3649df['t'](_0x5277e6(0x2b5)),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x3b2)],{'defaultValues':X[_0x5277e6(0x41a)]})}),(0x0,_['chartTypeCanUseTrendLine'])(_0xe60106)&&(0x0,g['jsx'])(Z,{'id':n[_0x5277e6(0x382)]['Trendline'],'label':_0x3649df['t'](_0x5277e6(0x3fe)),'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x40e)],{'defaultValues':X['trendline']})}),_0xcd97b0&&(0x0,g['jsx'])(Z,{'id':_0xcd97b0['id'],'label':_0xcd97b0[_0x5277e6(0x1c2)],'children':(0x0,g[_0x5277e6(0x23f)])(n[_0x5277e6(0x2c2)],{})})]});}function jt(_0x26823d,_0x362bbb){const _0x2786e4=_0x30b590;let _0x274731={[_[_0x2786e4(0x1f6)]['Candlestick']]:{'id':n['ChartEditPanelSection'][_0x2786e4(0x42b)],'localeKey':_0x2786e4(0x4c4)},[_[_0x2786e4(0x1f6)][_0x2786e4(0x29f)]]:{'id':n[_0x2786e4(0x382)][_0x2786e4(0x29f)],'localeKey':_0x2786e4(0x437)},[_[_0x2786e4(0x1f6)][_0x2786e4(0x421)]]:{'id':n[_0x2786e4(0x382)][_0x2786e4(0x421)],'localeKey':_0x2786e4(0x168)},[_[_0x2786e4(0x1f6)]['Sunburst']]:{'id':n[_0x2786e4(0x382)]['Sunburst'],'localeKey':_0x2786e4(0x16f)},[_['ChartTypeBits'][_0x2786e4(0x358)]]:{'id':n['ChartEditPanelSection'][_0x2786e4(0x358)],'localeKey':_0x2786e4(0x257)},[_[_0x2786e4(0x1f6)][_0x2786e4(0xd5)]]:{'id':n[_0x2786e4(0x382)]['Chord'],'localeKey':_0x2786e4(0x4e6)}}[_0x26823d];return _0x274731?{'id':_0x274731['id'],'label':_0x362bbb['t'](_0x274731[_0x2786e4(0x1cf)])}:null;}function Mt(_0x37ae8b){return'bases-dashboard-ui.chart.chartTypes.'+_0x37ae8b;}function Nt({onChange:_0x404628,onEditData:_0x2f663b,runtime:_0x13f10d,sourceChart:_0x167cb6,sourceName:_0x707fde,widget:_0x503711}){const _0x973716=_0x30b590;let _0x37eb8d=(0x0,m[_0x973716(0x155)])(W),_0x419863=(0x0,m['useDependency'])(a[_0x973716(0x3ea)]),[_0x167f14,_0x290bfd]=(0x0,h[_0x973716(0x40a)])(n[_0x973716(0x487)][_0x973716(0x1d6)]),_0x48f0f2=_0x503711[_0x973716(0xd9)]??_0x167cb6,_0x14c007=(0x0,h[_0x973716(0x2c1)])(()=>new n[(_0x973716(0x424))](_0x13f10d[_0x973716(0x21c)],{'commit':_0x27b9f9=>{const _0x3781b0=_0x973716;var _0x1a96f9;let _0x3ba1f0=_0x13f10d[_0x3781b0(0x21c)],_0x537661=(0x0,_['toChartModelUpdate'])(_0x27b9f9,{'series':(_0x1a96f9=_0x3ba1f0[_0x3781b0(0x1ca)])==null?void 0x0:_0x1a96f9[_0x3781b0(0x392)],'currentChartType':_0x3ba1f0[_0x3781b0(0x1ef)],'currentStyle':_0x3ba1f0['style'],'currentContext':_0x3ba1f0[_0x3781b0(0x316)],'currentDataAggregation':_0x3ba1f0[_0x3781b0(0x2d2)]});_0x404628({..._0x503711,'chart':Ot(_0x48f0f2,_0x537661)})[_0x3781b0(0x29c)](()=>void 0x0);}}),[_0x48f0f2,_0x404628,_0x13f10d,_0x503711]),_0x53217f=(0x0,h['useMemo'])(()=>(0x0,n[_0x973716(0x2ba)])(n[_0x973716(0x1f2)][_0x973716(0x48a)](_0x4b309f=>({..._0x4b309f,'label':_0x419863['t'](Pt(_0x4b309f['labelId']))}))),[_0x419863]);return(0x0,g[_0x973716(0x23f)])(n[_0x973716(0x356)],{'chartUIService':_0x37eb8d,'hostAdapter':_0x14c007,'children':(0x0,g[_0x973716(0x38d)])('div',{'data-dashboard-chart-inspector':!0x0,'className':_0x973716(0x134),'children':[(0x0,g[_0x973716(0x23f)])(n[_0x973716(0x22f)],{'ariaLabel':_0x419863['t'](_0x973716(0x14f)),'className':_0x973716(0x22d),'items':[{'label':_0x419863['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0x973716(0x4ba),'value':n['ChartEditPanelTab']['Data']},{'label':_0x419863['t'](_0x973716(0x2ca)),'panelId':_0x973716(0xd6),'value':n[_0x973716(0x487)][_0x973716(0x470)]}],'value':_0x167f14,'onChange':_0x290bfd}),_0x167f14===n[_0x973716(0x487)][_0x973716(0x1d6)]?(0x0,g[_0x973716(0x23f)])(n[_0x973716(0x1c5)],{'id':'dashboard-chart-setup','label':_0x419863['t']('bases-dashboard-ui.chart.common.setup'),'children':(0x0,g[_0x973716(0x38d)])(_0x973716(0x460),{'className':_0x973716(0x2ae),'children':[(0x0,g[_0x973716(0x23f)])(n[_0x973716(0x174)],{'options':_0x53217f}),(0x0,g[_0x973716(0x23f)])(n[_0x973716(0x27a)],{}),(0x0,g[_0x973716(0x23f)])(n['ChartThemeField'],{}),(0x0,g[_0x973716(0x23f)])(kt,{}),(0x0,g[_0x973716(0x23f)])(n[_0x973716(0x3cf)],{}),(0x0,g[_0x973716(0x38d)])(_0x973716(0x460),{'children':[(0x0,g[_0x973716(0x23f)])(n[_0x973716(0x2a1)],{'title':_0x419863['t'](_0x973716(0x441))}),(0x0,g[_0x973716(0x23f)])(f[_0x973716(0x104)],{'disabled':!0x0,'value':_0x707fde}),(0x0,g[_0x973716(0x23f)])(f['Button'],{'className':_0x973716(0x27c),'onClick':_0x2f663b,'children':_0x419863['t'](_0x973716(0x2b7))})]})]})}):(0x0,g[_0x973716(0x23f)])(n['ChartEditPanel'],{'id':'dashboard-chart-style','label':_0x419863['t'](_0x973716(0x2ca)),'children':(0x0,g[_0x973716(0x23f)])(At,{})})]})});}function Pt(_0x2a59c1){return'bases-dashboard-ui.chart.chartTypes.'+_0x2a59c1;}const Ft=[_0x30b590(0x2b4),_0x30b590(0x493),_0x30b590(0x47a),_0x30b590(0x2c4),_0x30b590(0x268),_0x30b590(0xdb)];function It({base:_0x11f3d6,onChange:_0x57bd05,onSelectBackgroundImage:_0x4a283a,widget:_0x1ced93}){const _0x32793f=_0x30b590;var _0x67cc47;let _0x1c8d2b=(0x0,m[_0x32793f(0x155)])(a[_0x32793f(0x3ea)]),_0xd4db12=(0x0,m[_0x32793f(0x155)])(a[_0x32793f(0x46a)]),_0x4382ca=(0x0,m[_0x32793f(0xe2)])(()=>_0xd4db12[_0x32793f(0x317)],_0xd4db12['getCurrentTheme'](),!0x1,[_0xd4db12]),_0x3d7615=(0x0,m[_0x32793f(0xe2)])(()=>_0xd4db12[_0x32793f(0x16c)],_0xd4db12['darkMode'],!0x1,[_0xd4db12]),[_0x10544c,_0x14f504]=(0x0,h[_0x32793f(0x40a)])(_0x32793f(0x457)),[_0x1f5a74,_0x1a59c9]=(0x0,h['useState'])(!0x1),_0x3f7801=k(_0x1ced93),_0x593012=_0x11f3d6['getSnapshot']()['tables'][_0x1ced93[_0x32793f(0x3d3)]],_0x3ac114=_0x593012==null?void 0x0:_0x593012['viewOrder'][_0x32793f(0x41e)](_0x479584=>_0x593012[_0x32793f(0x371)][_0x479584]),_0xb58321=_0x3ac114?_0x593012==null?void 0x0:_0x593012[_0x32793f(0x371)][_0x3ac114]:void 0x0,_0x559d54=_0x593012&&_0xb58321?(0x0,t['toFormulaMenuTables'])(_0x11f3d6[_0x32793f(0x38b)](),_0x593012,_0xb58321)[_0x32793f(0x48a)](_0x35df58=>({..._0x35df58,'current':!0x1})):[],_0x514639=((_0x67cc47=_0x1ced93[_0x32793f(0x34e)][_0x32793f(0x44d)])==null?void 0x0:_0x67cc47['formula'])??'',_0x4dfff5=_0x35585a=>_0x57bd05(A(_0x1ced93,_0x35585a))[_0x32793f(0x29c)](()=>void 0x0),_0x27bf6c=_0x195322=>_0x57bd05({..._0x1ced93,'description':_0x195322})[_0x32793f(0x29c)](()=>void 0x0);return(0x0,g[_0x32793f(0x38d)])('div',{'data-dashboard-formula-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[(0x0,g[_0x32793f(0x23f)])(f['Segmented'],{'className':_0x32793f(0x3f5),'items':[{'value':_0x32793f(0x457),'label':_0x1c8d2b['t'](_0x32793f(0x332))},{'value':'style','label':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.style')}],'value':_0x10544c,'onChange':_0x14f504}),(0x0,g[_0x32793f(0x23f)])(_0x32793f(0x460),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0x10544c===_0x32793f(0x457)?(0x0,g['jsxs'])(_0x32793f(0x460),{'className':_0x32793f(0x20b),'children':[(0x0,g[_0x32793f(0x23f)])(Q,{'label':_0x1c8d2b['t'](_0x32793f(0x4fc)),'children':(0x0,g[_0x32793f(0x23f)])(f[_0x32793f(0x104)],{'value':_0x1ced93[_0x32793f(0x323)]??_0x1ced93[_0x32793f(0x26d)]??'','onChange':_0x27bf6c,'onBlur':_0xced135=>_0x27bf6c(_0xced135[_0x32793f(0x12d)][_0x32793f(0x351)])})}),(0x0,g[_0x32793f(0x23f)])(Q,{'label':_0x1c8d2b['t'](_0x32793f(0x441)),'children':(0x0,g['jsx'])(f[_0x32793f(0x104)],{'disabled':!0x0,'value':(_0x593012==null?void 0x0:_0x593012[_0x32793f(0x451)])??_0x1c8d2b['t'](_0x32793f(0x4b1))})}),(0x0,g[_0x32793f(0x38d)])(Q,{'label':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.formula'),'children':[(0x0,g[_0x32793f(0x23f)])(f[_0x32793f(0x104)],{'disabled':!0x0,'value':(0x0,t[_0x32793f(0x4e7)])(_0x514639,_0x559d54)}),(0x0,g[_0x32793f(0x23f)])(f[_0x32793f(0x3da)],{'className':_0x32793f(0x27c),'onClick':()=>_0x1a59c9(!0x0),'children':_0x1c8d2b['t'](_0x32793f(0x120))})]})]}):(0x0,g[_0x32793f(0x38d)])('div',{'className':_0x32793f(0x20b),'children':[(0x0,g[_0x32793f(0x23f)])(n[_0x32793f(0x2ce)],{'emptyLabel':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x1c8d2b['t'](_0x32793f(0x199)),'pickerFallbackValue':_0x3d7615?_0x4382ca['gray'][0x384]:_0x4382ca['gray'][0x0],'resetLabel':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x3f7801['backgroundColor']??null,'onChange':_0x35f494=>_0x4dfff5({'backgroundColor':_0x35f494??void 0x0})}),(0x0,g[_0x32793f(0x38d)])(Q,{'label':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.backgroundImage'),'children':[(0x0,g[_0x32793f(0x38d)])(_0x32793f(0x460),{'className':_0x32793f(0x2db),'children':[(0x0,g[_0x32793f(0x38d)])(f[_0x32793f(0x3da)],{'className':_0x32793f(0x214),'onClick':()=>{const _0x4595ca=_0x32793f;_0x4a283a()['then'](_0xa3c407=>{if(_0xa3c407){var _0x2700ca;return _0x4dfff5({'backgroundImage':{..._0xa3c407,'fit':((_0x2700ca=_0x3f7801['backgroundImage'])==null?void 0x0:_0x2700ca['fit'])??'cover'}});}})[_0x4595ca(0x29c)](()=>void 0x0);},'children':[(0x0,g['jsx'])(s[_0x32793f(0x335)],{}),_0x3f7801[_0x32793f(0x142)]?_0x1c8d2b['t'](_0x32793f(0xe6)):_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.uploadImage')]}),_0x3f7801[_0x32793f(0x142)]&&(0x0,g['jsx'])(f[_0x32793f(0x3da)],{'aria-label':_0x1c8d2b['t'](_0x32793f(0x24c)),'title':_0x1c8d2b['t'](_0x32793f(0x24c)),'onClick':()=>_0x4dfff5({'backgroundImage':void 0x0}),'children':(0x0,g[_0x32793f(0x23f)])(s[_0x32793f(0x15d)],{})})]}),_0x3f7801['backgroundImage']&&(0x0,g['jsx'])(f[_0x32793f(0x324)],{'className':_0x32793f(0x4d4),'items':[{'value':_0x32793f(0x225),'label':_0x1c8d2b['t'](_0x32793f(0x175))},{'value':'contain','label':_0x1c8d2b['t'](_0x32793f(0x37c))}],'value':_0x3f7801[_0x32793f(0x142)]['fit'],'onChange':_0x5e1fd2=>_0x4dfff5({'backgroundImage':_0x3f7801[_0x32793f(0x142)]?{..._0x3f7801['backgroundImage'],'fit':_0x5e1fd2}:void 0x0})})]}),(0x0,g[_0x32793f(0x23f)])(n[_0x32793f(0x2ce)],{'emptyLabel':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x1c8d2b['t'](_0x32793f(0x2a9)),'pickerFallbackValue':_0x3d7615?_0x4382ca[_0x32793f(0x4bb)][0x32]:_0x4382ca[_0x32793f(0x4bb)][0x3e8],'resetLabel':_0x1c8d2b['t'](_0x32793f(0x27f)),'value':_0x3f7801[_0x32793f(0x3de)]??null,'onChange':_0x374649=>_0x4dfff5({'textColor':_0x374649??void 0x0})}),(0x0,g['jsx'])(Q,{'label':_0x1c8d2b['t'](_0x32793f(0x23c)),'children':(0x0,g[_0x32793f(0x23f)])(f[_0x32793f(0x324)],{'items':[{'value':'left','label':_0x1c8d2b['t'](_0x32793f(0x21a))},{'value':'center','label':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':'right','label':_0x1c8d2b['t'](_0x32793f(0x422))}],'value':_0x3f7801[_0x32793f(0x121)],'onChange':_0x12d0b3=>_0x4dfff5({'alignment':_0x12d0b3})})}),(0x0,g[_0x32793f(0x38d)])(Q,{'label':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.textSize'),'children':[(0x0,g[_0x32793f(0x23f)])(f[_0x32793f(0x324)],{'items':[{'value':_0x32793f(0x337),'label':_0x1c8d2b['t'](_0x32793f(0x35d))},{'value':_0x32793f(0x3f1),'label':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x3f7801[_0x32793f(0xfc)],'onChange':_0x5d5618=>_0x4dfff5({'fontSizeMode':_0x5d5618})}),_0x3f7801[_0x32793f(0xfc)]===_0x32793f(0x3f1)&&(0x0,g[_0x32793f(0x23f)])(f[_0x32793f(0x33a)],{'className':_0x32793f(0x4d4),'min':0xc,'max':0x78,'value':_0x3f7801['fontSize'],'onChange':_0x3ba841=>_0x4dfff5({'fontSize':_0x3ba841??0x28,'fontSizeMode':_0x32793f(0x3f1)})})]}),(0x0,g[_0x32793f(0x23f)])(Q,{'label':_0x1c8d2b['t'](_0x32793f(0x240)),'children':(0x0,g[_0x32793f(0x23f)])(f[_0x32793f(0x15c)],{'value':_0x3f7801[_0x32793f(0x255)],'options':[{'value':_0x32793f(0x2b4),'label':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.general')},{'value':_0x32793f(0x493),'label':_0x1c8d2b['t'](_0x32793f(0x2d1))},{'value':_0x32793f(0x47a),'label':_0x1c8d2b['t'](_0x32793f(0x151))},{'value':_0x32793f(0x2c4),'label':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.currency')},{'value':_0x32793f(0x268),'label':_0x1c8d2b['t'](_0x32793f(0x2f4))},{'value':_0x32793f(0xdb),'label':_0x1c8d2b['t'](_0x32793f(0x444))}],'onChange':_0x3ae46f=>{const _0x2c4f01=_0x32793f;let _0x4946f4=Ft[_0x2c4f01(0x41e)](_0x146505=>_0x146505===_0x3ae46f);_0x4946f4&&_0x4dfff5({'numberFormat':_0x4946f4});}})}),_0x3f7801[_0x32793f(0x255)]===_0x32793f(0x2c4)&&(0x0,g[_0x32793f(0x23f)])(Q,{'label':_0x1c8d2b['t'](_0x32793f(0x1ae)),'children':(0x0,g[_0x32793f(0x23f)])(f['Input'],{'value':_0x3f7801[_0x32793f(0x2c4)],'onChange':_0x5e12e8=>_0x4dfff5({'currency':_0x5e12e8[_0x32793f(0x34d)](0x0,0x3)[_0x32793f(0x4c8)]()})})}),_0x3f7801['numberFormat']!=='general'&&(0x0,g['jsx'])(Q,{'label':_0x1c8d2b['t']('bases-dashboard-ui.dashboardInspector.decimalPlaces'),'children':(0x0,g[_0x32793f(0x23f)])(f[_0x32793f(0x33a)],{'min':0x0,'max':0x8,'value':_0x3f7801[_0x32793f(0x13b)],'onChange':_0x1bcf59=>_0x4dfff5({'decimalPlaces':_0x1bcf59??0x0})})})]})}),_0x1f5a74&&(0x0,g['jsx'])(f['Dialog'],{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':(0x0,g[_0x32793f(0x23f)])(t[_0x32793f(0x250)],{'tables':_0x559d54,'formula':(0x0,t['formulaToEditorFormula'])(_0x514639,_0x559d54),'onCancel':()=>_0x1a59c9(!0x1),'onSave':_0x4ee9c0=>{const _0x355abf=_0x32793f;let _0x400dc1=_0x1ced93[_0x355abf(0x34e)][_0x355abf(0x44d)]??{'formula':''};return _0x57bd05({..._0x1ced93,'shapeData':{..._0x1ced93[_0x355abf(0x34e)],'formulaBinding':{..._0x400dc1,'formula':(0x0,t[_0x355abf(0x314)])(_0x4ee9c0,_0x559d54)}}})['then'](()=>_0x1a59c9(!0x1))[_0x355abf(0x29c)](()=>void 0x0);}})})]});}function Q({children:_0x544606,label:_0x37c643}){const _0x2c51f1=_0x30b590;return(0x0,g['jsxs'])(_0x2c51f1(0x460),{'role':_0x2c51f1(0x3b1),'aria-label':_0x37c643,'className':_0x2c51f1(0x345),'children':[(0x0,g['jsx'])(_0x2c51f1(0x405),{'children':_0x37c643}),_0x544606]});}const Lt={[a['BaseFilterOperator']['IS']]:_0x30b590(0x395),[a[_0x30b590(0x363)][_0x30b590(0x2f3)]]:_0x30b590(0x479),[a['BaseFilterOperator']['CONTAINS']]:'bases-dashboard-ui.operators.contains',[a['BaseFilterOperator'][_0x30b590(0x4ef)]]:_0x30b590(0x1dd),[a[_0x30b590(0x363)]['IS_EMPTY']]:_0x30b590(0x153),[a[_0x30b590(0x363)]['IS_NOT_EMPTY']]:_0x30b590(0x43e),[a[_0x30b590(0x363)][_0x30b590(0x401)]]:'bases-dashboard-ui.operators.greaterThan',[a[_0x30b590(0x363)]['GREATER_THAN_OR_EQUAL']]:_0x30b590(0x172),[a[_0x30b590(0x363)][_0x30b590(0x20d)]]:_0x30b590(0x17e),[a['BaseFilterOperator'][_0x30b590(0x449)]]:_0x30b590(0x1ea),[a[_0x30b590(0x363)][_0x30b590(0x12b)]]:'bases-dashboard-ui.operators.before',[a[_0x30b590(0x363)][_0x30b590(0x3b3)]]:_0x30b590(0x2f5)};function Rt({disabled:_0x464b39,fields:_0x1331e8,filter:_0xe5ba06,onChange:_0x2ae761}){const _0x33dfce=_0x30b590;let _0x3275e0=(0x0,m[_0x33dfce(0x155)])(a[_0x33dfce(0x3ea)]),_0x381db8=(_0xe5ba06==null?void 0x0:_0xe5ba06['conditions'])??[];return _0x381db8['length']?(0x0,g[_0x33dfce(0x23f)])(_0x33dfce(0x460),{'className':_0x33dfce(0x229),'children':_0x381db8[_0x33dfce(0x48a)]((_0x59c1e3,_0x37af06)=>{const _0x471089=_0x33dfce;let _0x3a90cb=_0x1331e8['find'](_0x2489b1=>_0x2489b1['id']===_0x59c1e3[_0x471089(0x1fb)]);return(0x0,g[_0x471089(0x38d)])(_0x471089(0x460),{'className':_0x471089(0x127),'children':[(0x0,g[_0x471089(0x38d)])('div',{'className':_0x471089(0x4d2),'children':[(0x0,g[_0x471089(0x23f)])(_0x471089(0x405),{'className':_0x471089(0x1ed),'children':(_0x3a90cb==null?void 0x0:_0x3a90cb[_0x471089(0x451)])??_0x59c1e3[_0x471089(0x1fb)]}),(0x0,g[_0x471089(0x23f)])('span',{'className':_0x471089(0x2e6),'children':_0x3275e0['t'](Lt[_0x59c1e3['operator']])})]}),Kt(_0x59c1e3[_0x471089(0x3fc)])&&(0x0,g['jsx'])(Bt,{'disabled':_0x464b39,'field':_0x3a90cb,'value':_0x59c1e3[_0x471089(0x47d)],'onChange':_0xffc29f=>_0x2ae761(Ut(_0xe5ba06,_0x37af06,{'operand':_0xffc29f}))})]},Yt(_0x381db8,_0x59c1e3,_0x37af06));})}):(0x0,g[_0x33dfce(0x38d)])(_0x33dfce(0x460),{'className':_0x33dfce(0x429),'children':[(0x0,g[_0x33dfce(0x23f)])(s[_0x33dfce(0x319)],{'className':_0x33dfce(0x190)}),(0x0,g[_0x33dfce(0x23f)])(_0x33dfce(0x405),{'className':_0x33dfce(0xd7),'children':_0x3275e0['t'](_0x33dfce(0x2cc))})]});}function zt({fields:_0x7a28bc,filter:_0x25e454,onChange:_0x1c98af,onClear:_0x1479a2}){const _0x4f8f96=_0x30b590;let _0x2b25c6=(0x0,m[_0x4f8f96(0x155)])(a['LocaleService']),_0xe3018a=(_0x25e454==null?void 0x0:_0x25e454[_0x4f8f96(0x125)])??[];return(0x0,g[_0x4f8f96(0x38d)])(_0x4f8f96(0x460),{'data-dashboard-filter-inspector':!0x0,'className':_0x4f8f96(0x423),'children':[_0xe3018a[_0x4f8f96(0x48a)]((_0x1fc659,_0x34d0d1)=>{const _0x450f48=_0x4f8f96;let _0x1b226a=_0x7a28bc['find'](_0x33c8cf=>_0x33c8cf['id']===_0x1fc659[_0x450f48(0x1fb)])??_0x7a28bc[0x0],_0x26e543=Wt(_0x1b226a);return(0x0,g[_0x450f48(0x38d)])(_0x450f48(0x2f7),{'className':_0x450f48(0xda),'children':[(0x0,g[_0x450f48(0x38d)])(_0x450f48(0x460),{'className':_0x450f48(0x39d),'children':[(0x0,g[_0x450f48(0x23f)])(f[_0x450f48(0x15c)],{'value':_0x1fc659[_0x450f48(0x1fb)],'options':_0x7a28bc[_0x450f48(0x48a)](_0x1a3759=>({'value':_0x1a3759['id'],'label':_0x1a3759[_0x450f48(0x451)]})),'onChange':_0x23301a=>{const _0x24b7a8=_0x450f48;let _0x128e3a=_0x7a28bc[_0x24b7a8(0x41e)](_0x129eb3=>_0x129eb3['id']===_0x23301a);if(!_0x128e3a)return;let _0x56dd42=Wt(_0x128e3a)[0x0];_0x1c98af(Ut(_0x25e454,_0x34d0d1,Ht(_0x128e3a,_0x56dd42)));}}),(0x0,g[_0x450f48(0x23f)])(f[_0x450f48(0x3da)],{'type':_0x450f48(0x1e9),'variant':_0x450f48(0x455),'aria-label':_0x2b25c6['t'](_0x450f48(0x1ab)),'className':_0x450f48(0x463),'onClick':()=>_0x1c98af(Vt(_0x25e454,_0xe3018a[_0x450f48(0x141)]((_0x250aa6,_0x3c5456)=>_0x3c5456!==_0x34d0d1))),'children':(0x0,g[_0x450f48(0x23f)])(s[_0x450f48(0x274)],{})})]}),(0x0,g[_0x450f48(0x23f)])(f['Select'],{'value':_0x1fc659[_0x450f48(0x3fc)],'options':_0x26e543[_0x450f48(0x48a)](_0xc976fd=>({'value':_0xc976fd,'label':_0x2b25c6['t'](Lt[_0xc976fd])})),'onChange':_0x508d3f=>{const _0x1bee9e=_0x450f48;let _0x7e699b=_0x26e543[_0x1bee9e(0x41e)](_0x379f83=>_0x379f83===_0x508d3f);_0x7e699b&&_0x1c98af(Ut(_0x25e454,_0x34d0d1,{'operator':_0x7e699b,'operand':Gt(_0x1b226a)}));}}),Kt(_0x1fc659['operator'])&&(0x0,g[_0x450f48(0x23f)])(Bt,{'field':_0x1b226a,'value':_0x1fc659[_0x450f48(0x47d)],'onChange':_0x2c450b=>_0x1c98af(Ut(_0x25e454,_0x34d0d1,{'operand':_0x2c450b}))})]},Yt(_0xe3018a,_0x1fc659,_0x34d0d1));}),(0x0,g[_0x4f8f96(0x38d)])(f[_0x4f8f96(0x3da)],{'type':_0x4f8f96(0x1e9),'variant':'text','className':'univer-w-full\x20univer-justify-start\x20univer-text-primary-600','disabled':!_0x7a28bc[_0x4f8f96(0xf8)],'onClick':()=>{let _0x225dc2=_0x7a28bc[0x0];if(!_0x225dc2)return;let _0x136915=Wt(_0x225dc2)[0x0];_0x1c98af(Vt(_0x25e454,[..._0xe3018a,Ht(_0x225dc2,_0x136915)]));},'children':[(0x0,g[_0x4f8f96(0x23f)])(s[_0x4f8f96(0x335)],{}),_0x2b25c6['t']('bases-dashboard-ui.dashboardInspector.newCondition')]}),_0xe3018a['length']>0x0&&(0x0,g[_0x4f8f96(0x23f)])(f['Button'],{'type':'button','variant':'text','className':_0x4f8f96(0x112),'onClick':_0x1479a2,'children':_0x2b25c6['t'](_0x4f8f96(0x17f))})]});}function Bt({disabled:_0x1dc752,field:_0x2e39b1,onChange:_0x22aa68,value:_0x6d367b}){const _0x366191=_0x30b590;let _0x23732b=(0x0,m[_0x366191(0x155)])(a['LocaleService']),[_0x43d955,_0x1eaa49]=(0x0,h[_0x366191(0x40a)])({'value':_0x6d367b,'text':String(_0x6d367b??'')});Object['is'](_0x43d955[_0x366191(0x351)],_0x6d367b)||_0x1eaa49({'value':_0x6d367b,'text':String(_0x6d367b??'')});let _0x2943f0=_0x43d955[_0x366191(0x455)],_0x418f2c=_0xf71156=>_0x1eaa49({'value':_0x6d367b,'text':_0xf71156}),_0x2cdb3f=_0x2e39b1==null?void 0x0:_0x2e39b1['type'];if(_0x2cdb3f===a['BaseFieldType'][_0x366191(0x2b9)]){let _0x2f715e=_0x6d367b===!0x0||_0x6d367b===_0x366191(0x445);return(0x0,g['jsxs'])(f[_0x366191(0x3da)],{'type':_0x366191(0x1e9),'variant':_0x366191(0x1df),'disabled':_0x1dc752,'className':_0x366191(0x1dc),'onClick':()=>_0x22aa68(!_0x2f715e),'children':[(0x0,g[_0x366191(0x23f)])(f[_0x366191(0x2b9)],{'checked':_0x2f715e,'disabled':_0x1dc752,'onChange':()=>void 0x0}),_0x2f715e?_0x23732b['t'](_0x366191(0x1a1)):_0x23732b['t'](_0x366191(0x4f9))]});}return Xt(_0x2cdb3f)?_0x1dc752?(0x0,g[_0x366191(0x23f)])(f['Button'],{'type':_0x366191(0x1e9),'variant':_0x366191(0x1df),'className':_0x366191(0x112),'disabled':!0x0,'children':(0x0,a[_0x366191(0x252)])(_0x6d367b==null||_0x6d367b===''?void 0x0:String(_0x6d367b))[_0x366191(0x462)](_0x366191(0x321))}):(0x0,g[_0x366191(0x23f)])(f[_0x366191(0x4de)],{'className':'univer-w-full','value':(0x0,a[_0x366191(0x252)])(_0x6d367b==null||_0x6d367b===''?void 0x0:String(_0x6d367b))[_0x366191(0x42e)](),'onValueChange':_0x4df6d6=>_0x22aa68((0x0,a[_0x366191(0x252)])(_0x4df6d6)[_0x366191(0x462)](_0x366191(0x321)))}):Qt(_0x2e39b1)?(0x0,g[_0x366191(0x23f)])(f['MultipleSelect'],{'className':_0x366191(0x112),'disabled':_0x1dc752,'value':Array[_0x366191(0x4cd)](_0x6d367b)?_0x6d367b[_0x366191(0x48a)](String):[],'options':qt(_0x2e39b1),'onChange':_0x22aa68}):_0x2cdb3f===a[_0x366191(0x1d5)][_0x366191(0x3e6)]||_0x2cdb3f===a[_0x366191(0x1d5)][_0x366191(0x32e)]||_0x2cdb3f===a[_0x366191(0x1d5)][_0x366191(0x292)]?(0x0,g[_0x366191(0x23f)])(f[_0x366191(0x15c)],{'className':_0x366191(0x112),'disabled':_0x1dc752,'value':String(_0x6d367b??''),'options':[{'value':'','label':_0x23732b['t'](_0x366191(0x269))},...qt(_0x2e39b1)],'onChange':_0x22aa68}):Zt(_0x2cdb3f)?(0x0,g['jsx'])(f['Input'],{'className':_0x366191(0x112),'disabled':_0x1dc752,'inputMode':_0x366191(0x3ba),'value':_0x2943f0,'aria-invalid':_0x2943f0!==''&&!Number[_0x366191(0x467)](Number(_0x2943f0)),'onChange':_0x1804b4=>{const _0x505e46=_0x366191;_0x418f2c(_0x1804b4),_0x1804b4===''?_0x22aa68(''):Number[_0x505e46(0x467)](Number(_0x1804b4))&&_0x22aa68(Number(_0x1804b4));},'onBlur':()=>_0x418f2c(String(_0x6d367b??''))}):(0x0,g[_0x366191(0x23f)])(f[_0x366191(0x104)],{'disabled':_0x1dc752,'value':String(_0x6d367b??''),'placeholder':_0x23732b['t'](_0x366191(0x35f)),'onChange':_0x22aa68});}function Vt(_0x1b3bfb,_0x247df5){const _0x3ed07c=_0x30b590;return{'conjunction':(_0x1b3bfb==null?void 0x0:_0x1b3bfb[_0x3ed07c(0x1d3)])??a[_0x3ed07c(0x2b2)]['AND'],'conditions':_0x247df5};}function Ht(_0x5bc52f,_0x55cc83){return Kt(_0x55cc83)?{'fieldId':_0x5bc52f['id'],'operator':_0x55cc83,'operand':Gt(_0x5bc52f)}:{'fieldId':_0x5bc52f['id'],'operator':_0x55cc83};}function Ut(_0x25bb60,_0x45a101,_0x2ff309){const _0x3ad21b=_0x30b590;return Vt(_0x25bb60,((_0x25bb60==null?void 0x0:_0x25bb60[_0x3ad21b(0x125)])??[])[_0x3ad21b(0x48a)]((_0x58bbac,_0x1581bc)=>_0x1581bc===_0x45a101?{..._0x58bbac,..._0x2ff309}:_0x58bbac));}function Wt(_0x101ec3){const _0x2f3d38=_0x30b590;let _0x1f64f9=[a[_0x2f3d38(0x363)]['IS_EMPTY'],a['BaseFilterOperator'][_0x2f3d38(0x4fb)]];switch(_0x101ec3==null?void 0x0:_0x101ec3['type']){case a['BaseFieldType'][_0x2f3d38(0x48b)]:case a[_0x2f3d38(0x1d5)][_0x2f3d38(0x400)]:case a[_0x2f3d38(0x1d5)][_0x2f3d38(0x1a6)]:case a[_0x2f3d38(0x1d5)]['Rating']:return[a['BaseFilterOperator']['IS'],a[_0x2f3d38(0x363)][_0x2f3d38(0x2f3)],a[_0x2f3d38(0x363)][_0x2f3d38(0x401)],a[_0x2f3d38(0x363)][_0x2f3d38(0x20d)],..._0x1f64f9];case a[_0x2f3d38(0x1d5)][_0x2f3d38(0x193)]:case a[_0x2f3d38(0x1d5)]['CreatedAt']:case a[_0x2f3d38(0x1d5)]['UpdatedAt']:return[a[_0x2f3d38(0x363)]['IS'],a[_0x2f3d38(0x363)][_0x2f3d38(0x2f3)],a[_0x2f3d38(0x363)]['BEFORE'],a['BaseFilterOperator'][_0x2f3d38(0x3b3)],..._0x1f64f9];case a['BaseFieldType'][_0x2f3d38(0x2b9)]:return[a[_0x2f3d38(0x363)]['IS'],a['BaseFilterOperator'][_0x2f3d38(0x2f3)]];default:return[a['BaseFilterOperator']['IS'],a[_0x2f3d38(0x363)][_0x2f3d38(0x2f3)],a['BaseFilterOperator']['CONTAINS'],a[_0x2f3d38(0x363)][_0x2f3d38(0x4ef)],..._0x1f64f9];}}function Gt(_0x59335d){const _0x26ed3f=_0x30b590;return _0x59335d?_0x59335d[_0x26ed3f(0x11c)]===a[_0x26ed3f(0x1d5)][_0x26ed3f(0x2b9)]?!0x1:Xt(_0x59335d['type'])?(0x0,a['dateKit'])()[_0x26ed3f(0x462)](_0x26ed3f(0x321)):Qt(_0x59335d)?[]:'':'';}function Kt(_0xec4f0a){const _0x43fc80=_0x30b590;return _0xec4f0a!==a[_0x43fc80(0x363)][_0x43fc80(0x36c)]&&_0xec4f0a!==a[_0x43fc80(0x363)]['IS_NOT_EMPTY'];}function qt(_0x28606f){const _0x3364b0=_0x30b590;var _0x3489fa;return(Array[_0x3364b0(0x4cd)](_0x28606f==null||(_0x3489fa=_0x28606f[_0x3364b0(0x1ca)])==null?void 0x0:_0x3489fa[_0x3364b0(0x45a)])?_0x28606f[_0x3364b0(0x1ca)]['options']:[])[_0x3364b0(0x48a)]((_0x3fc1d4,_0x53a84e)=>{const _0x44fe40=_0x3364b0;if(typeof _0x3fc1d4=='string')return{'label':_0x3fc1d4,'value':_0x3fc1d4};if(!Jt(_0x3fc1d4))return{'label':String(_0x53a84e+0x1),'value':String(_0x53a84e+0x1)};let _0x3e38d4=_0x3fc1d4,_0x1d9aa7=String(_0x3e38d4[_0x44fe40(0x451)]??_0x3e38d4['id']??_0x53a84e+0x1),_0x5aa645=String(_0x3e38d4['id']??_0x1d9aa7);return{'label':_0x1d9aa7,'value':/^opt-\d+$/[_0x44fe40(0x3cb)](_0x5aa645)?_0x1d9aa7:_0x5aa645};});}function Jt(_0x3f7a6e){return typeof _0x3f7a6e=='object'&&!!_0x3f7a6e;}function _0x1e15(_0x2f8666,_0xf451e1){_0x2f8666=_0x2f8666-0xd3;const _0x520f33=_0x520f();let _0x1e1554=_0x520f33[_0x2f8666];return _0x1e1554;}function Yt(_0x3da00a,_0x1e50d7,_0x46514a){const _0x2779ad=_0x30b590;let _0x493906=JSON[_0x2779ad(0x198)](_0x1e50d7);return _0x493906+'-'+_0x3da00a['slice'](0x0,_0x46514a)['filter'](_0x11efa0=>JSON['stringify'](_0x11efa0)===_0x493906)[_0x2779ad(0xf8)];}function Xt(_0x213b49){const _0x135196=_0x30b590;return _0x213b49===a['BaseFieldType'][_0x135196(0x193)]||_0x213b49===a['BaseFieldType'][_0x135196(0x4f0)]||_0x213b49===a[_0x135196(0x1d5)][_0x135196(0x380)];}function Zt(_0x1a5088){const _0x4ce4f3=_0x30b590;return _0x1a5088===a[_0x4ce4f3(0x1d5)]['Number']||_0x1a5088===a[_0x4ce4f3(0x1d5)]['Currency']||_0x1a5088===a[_0x4ce4f3(0x1d5)][_0x4ce4f3(0x1a6)]||_0x1a5088===a[_0x4ce4f3(0x1d5)][_0x4ce4f3(0x234)];}function Qt(_0x3e84ac){const _0xa37f10=_0x30b590;var _0x9c713e;return(_0x3e84ac==null?void 0x0:_0x3e84ac[_0xa37f10(0x11c)])===a['BaseFieldType'][_0xa37f10(0x21b)]||(_0x3e84ac==null?void 0x0:_0x3e84ac[_0xa37f10(0x11c)])===a['BaseFieldType'][_0xa37f10(0x32e)]||(_0x3e84ac==null?void 0x0:_0x3e84ac[_0xa37f10(0x11c)])===a[_0xa37f10(0x1d5)][_0xa37f10(0x292)]&&((_0x9c713e=_0x3e84ac['config'])==null?void 0x0:_0x9c713e['allowMultiple'])===!0x0;}function $t({base:_0x5339e6,chartRuntime:_0x412553,onChange:_0xf22c7f,onClose:_0x44fa23,onSelectBackgroundImage:_0x3175a9,onSelectImage:_0x4c5fbf,unitId:_0x1d576b,widget:_0x3f5b36}){const _0x143ab9=_0x30b590;let _0x3423a2=(0x0,m[_0x143ab9(0x155)])(a['ICommandService']),_0x4c27cb=(0x0,m[_0x143ab9(0x155)])(a[_0x143ab9(0x3ea)]),_0x3b6a3b=_0x5339e6[_0x143ab9(0x38b)](),_0x5e5f34=_0x143ab9(0x3d3)in _0x3f5b36?_0x3b6a3b[_0x143ab9(0x4fe)][_0x3f5b36[_0x143ab9(0x3d3)]]:void 0x0,_0x27cdab=_0x3f5b36[_0x143ab9(0x11c)]===e[_0x143ab9(0x1e4)][_0x143ab9(0x3c7)]?_0x5e5f34==null?void 0x0:_0x5e5f34[_0x143ab9(0x371)][_0x3f5b36[_0x143ab9(0x247)]]:void 0x0,_0x4f959c=_0x4c27cb['t'](sn(_0x3f5b36));return(0x0,g[_0x143ab9(0x38d)])(_0x143ab9(0x4c9),{'data-dashboard-inspector':!0x0,'className':_0x143ab9(0x3a8),'children':[(0x0,g[_0x143ab9(0x38d)])(_0x143ab9(0x4f6),{'className':_0x143ab9(0xe4),'children':[(0x0,g['jsx'])('h3',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0x4f959c}),(0x0,g['jsx'])(f[_0x143ab9(0x3da)],{'type':'button','size':_0x143ab9(0x301),'variant':_0x143ab9(0x455),'aria-label':_0x4c27cb['t'](_0x143ab9(0x162)),'onClick':_0x44fa23,'children':(0x0,g[_0x143ab9(0x23f)])(s[_0x143ab9(0x274)],{})})]}),_0x3f5b36[_0x143ab9(0x11c)]===e[_0x143ab9(0x1e4)][_0x143ab9(0x3c7)]&&(on(_0x27cdab)&&_0x412553?(0x0,g[_0x143ab9(0x23f)])(Nt,{'runtime':_0x412553,'sourceChart':_0x27cdab[_0x143ab9(0x1ca)][_0x143ab9(0xd9)],'sourceName':((_0x5e5f34==null?void 0x0:_0x5e5f34[_0x143ab9(0x451)])??'')+'\x20/\x20'+_0x27cdab[_0x143ab9(0x451)],'widget':_0x3f5b36,'onChange':_0xf22c7f,'onEditData':()=>{const _0x579bed=_0x143ab9;_0x3423a2[_0x579bed(0x387)](t[_0x579bed(0x309)]['id'],{'unitId':_0x1d576b,'tableId':_0x3f5b36['tableId'],'viewId':_0x3f5b36[_0x579bed(0x247)]})[_0x579bed(0x29c)](()=>void 0x0);}}):(0x0,g[_0x143ab9(0x23f)])(rn,{'message':on(_0x27cdab)?_0x4c27cb['t'](_0x143ab9(0x276)):_0x4c27cb['t'](_0x143ab9(0x4b1))})),_0x3f5b36['type']===e[_0x143ab9(0x1e4)][_0x143ab9(0x31c)]&&(0x0,g[_0x143ab9(0x23f)])(It,{'base':_0x5339e6,'widget':_0x3f5b36,'onChange':_0xf22c7f,'onSelectBackgroundImage':_0x3175a9}),_0x3f5b36[_0x143ab9(0x11c)]===e['BaseDashboardWidgetType'][_0x143ab9(0x326)]&&(0x0,g['jsx'])(tn,{'base':_0x5339e6,'onChange':_0xf22c7f,'widget':_0x3f5b36}),_0x3f5b36[_0x143ab9(0x11c)]===e[_0x143ab9(0x1e4)]['Text']&&(0x0,g[_0x143ab9(0x23f)])(nn,{'onChange':_0xf22c7f,'widget':_0x3f5b36}),_0x3f5b36[_0x143ab9(0x11c)]===e[_0x143ab9(0x1e4)][_0x143ab9(0x108)]&&(0x0,g[_0x143ab9(0x23f)])(en,{'onChange':_0xf22c7f,'onSelectImage':_0x4c5fbf,'widget':_0x3f5b36})]});}function en({onChange:_0x54f5c3,onSelectImage:_0x4adb1d,widget:_0x5d88d4}){const _0x10a4ad=_0x30b590;let _0x352f66=(0x0,m[_0x10a4ad(0x155)])(a[_0x10a4ad(0x3ea)]);return(0x0,g[_0x10a4ad(0x38d)])(_0x10a4ad(0x460),{'className':_0x10a4ad(0x221),'children':[(0x0,g[_0x10a4ad(0x38d)])(f[_0x10a4ad(0x3da)],{'className':_0x10a4ad(0x112),'onClick':()=>_0x4adb1d()[_0x10a4ad(0xeb)](_0x3211f2=>_0x3211f2&&_0x54f5c3({..._0x5d88d4,'source':_0x3211f2[_0x10a4ad(0x23a)],'sourceType':_0x3211f2[_0x10a4ad(0x109)],'alt':_0x3211f2[_0x10a4ad(0x451)]}))[_0x10a4ad(0x29c)](()=>void 0x0),'children':[(0x0,g['jsx'])(s[_0x10a4ad(0x335)],{}),_0x352f66['t']('bases-dashboard-ui.dashboardInspector.replaceImage')]}),(0x0,g['jsxs'])(_0x10a4ad(0x1c2),{'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[(0x0,g[_0x10a4ad(0x23f)])(_0x10a4ad(0x405),{'children':_0x352f66['t'](_0x10a4ad(0x481))}),(0x0,g[_0x10a4ad(0x23f)])(f[_0x10a4ad(0x324)],{'items':[{'value':'cover','label':_0x352f66['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x10a4ad(0x336),'label':_0x352f66['t'](_0x10a4ad(0x195))},{'value':_0x10a4ad(0x106),'label':_0x352f66['t']('bases-dashboard-ui.dashboardInspector.originalSize')}],'value':_0x5d88d4['displayMode']??_0x10a4ad(0x225),'onChange':_0x51b231=>_0x54f5c3({..._0x5d88d4,'displayMode':_0x51b231})[_0x10a4ad(0x29c)](()=>void 0x0)})]})]});}function tn({base:_0x428b5d,onChange:_0x23bdcf,widget:_0x2a86a2}){const _0x1bb31f=_0x30b590;let _0xeef0d=_0x428b5d[_0x1bb31f(0x38b)]()['tables'][_0x2a86a2['tableId']],_0x5ecc9f=_0xeef0d==null?void 0x0:_0xeef0d[_0x1bb31f(0x36f)][_0x1bb31f(0x41e)](_0x3b7d70=>_0xeef0d[_0x1bb31f(0x371)][_0x3b7d70]),_0x16aebc=_0x5ecc9f?_0xeef0d==null?void 0x0:_0xeef0d[_0x1bb31f(0x371)][_0x5ecc9f]:void 0x0,_0x307c7f=_0xeef0d&&_0x16aebc?(0x0,t['toMenuFields'])(_0xeef0d,_0x16aebc):[];return(0x0,g[_0x1bb31f(0x23f)])(zt,{'fields':_0x307c7f,'filter':_0x2a86a2[_0x1bb31f(0x141)],'onChange':_0x3e2d74=>_0x23bdcf({..._0x2a86a2,'filter':_0x3e2d74})[_0x1bb31f(0x29c)](()=>void 0x0),'onClear':()=>_0x23bdcf({..._0x2a86a2,'filter':null})[_0x1bb31f(0x29c)](()=>void 0x0)});}function nn({onChange:_0x99e83f,widget:_0x1b773d}){const _0x4125d3=_0x30b590;let _0x4ec522=(0x0,m[_0x4125d3(0x155)])(a[_0x4125d3(0x3ea)]),_0xa82c8f=(0x0,m[_0x4125d3(0x155)])(a[_0x4125d3(0x46a)]),_0x330ec8=(0x0,m[_0x4125d3(0xe2)])(()=>_0xa82c8f[_0x4125d3(0x317)],_0xa82c8f[_0x4125d3(0x14e)](),!0x1,[_0xa82c8f]),_0x36ff8f=oe(_0x1b773d),_0x3c0dd3=_0x2fc7ab=>_0x99e83f({..._0x1b773d,'appearance':{..._0x36ff8f,..._0x2fc7ab}})[_0x4125d3(0x29c)](()=>void 0x0);return(0x0,g[_0x4125d3(0x38d)])(_0x4125d3(0x460),{'className':_0x4125d3(0x440),'children':[(0x0,g[_0x4125d3(0x23f)])(f[_0x4125d3(0x2b6)],{'defaultValue':U(_0x1b773d[_0x4125d3(0x45d)]),'rows':0x8,'onBlur':_0x36cbe5=>_0x99e83f({..._0x1b773d,'document':se(_0x1b773d[_0x4125d3(0x45d)],_0x36cbe5[_0x4125d3(0x12d)][_0x4125d3(0x351)])})['catch'](()=>void 0x0)}),(0x0,g[_0x4125d3(0x23f)])(n[_0x4125d3(0x2ce)],{'emptyLabel':_0x4ec522['t'](_0x4125d3(0x199)),'label':_0x4ec522['t'](_0x4125d3(0x199)),'pickerFallbackValue':_0x330ec8[_0x4125d3(0x4bb)][0x0],'resetLabel':_0x4ec522['t'](_0x4125d3(0x27f)),'value':_0x36ff8f[_0x4125d3(0xe5)]??null,'onChange':_0x3ed766=>_0x3c0dd3({'backgroundColor':_0x3ed766??void 0x0})}),(0x0,g[_0x4125d3(0x23f)])(n['ChartColorField'],{'emptyLabel':_0x4ec522['t'](_0x4125d3(0x2a9)),'label':_0x4ec522['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x330ec8[_0x4125d3(0x4bb)][0x3e8],'resetLabel':_0x4ec522['t'](_0x4125d3(0x27f)),'value':_0x36ff8f[_0x4125d3(0x3de)]??null,'onChange':_0x19172e=>_0x3c0dd3({'textColor':_0x19172e??void 0x0})}),(0x0,g[_0x4125d3(0x23f)])(an,{'label':_0x4ec522['t'](_0x4125d3(0x23c)),'children':(0x0,g[_0x4125d3(0x23f)])(f[_0x4125d3(0x324)],{'items':[{'value':_0x4125d3(0x362),'label':_0x4ec522['t'](_0x4125d3(0x21a))},{'value':_0x4125d3(0x334),'label':_0x4ec522['t'](_0x4125d3(0x394))},{'value':_0x4125d3(0x2f1),'label':_0x4ec522['t'](_0x4125d3(0x422))}],'value':_0x36ff8f[_0x4125d3(0x121)],'onChange':_0x37884b=>_0x3c0dd3({'alignment':_0x37884b})})}),(0x0,g['jsxs'])(an,{'label':_0x4ec522['t'](_0x4125d3(0xe1)),'children':[(0x0,g[_0x4125d3(0x23f)])(f[_0x4125d3(0x324)],{'items':[{'value':_0x4125d3(0x337),'label':_0x4ec522['t'](_0x4125d3(0x35d))},{'value':'custom','label':_0x4ec522['t'](_0x4125d3(0x1fe))}],'value':_0x36ff8f['fontSizeMode'],'onChange':_0x321796=>_0x3c0dd3({'fontSizeMode':_0x321796})}),_0x36ff8f[_0x4125d3(0xfc)]===_0x4125d3(0x3f1)&&(0x0,g[_0x4125d3(0x23f)])(f[_0x4125d3(0x33a)],{'className':_0x4125d3(0x4d4),'min':0xa,'max':0x78,'value':_0x36ff8f[_0x4125d3(0x2c0)],'onChange':_0x5ec7fa=>_0x3c0dd3({'fontSize':_0x5ec7fa??0x12,'fontSizeMode':_0x4125d3(0x3f1)})})]})]});}function rn({message:_0x1e6b05}){const _0xe54511=_0x30b590;return(0x0,g[_0xe54511(0x23f)])(_0xe54511(0x460),{'className':_0xe54511(0x12e),'children':_0x1e6b05});}function an({children:_0xeb3bb0,label:_0x1a467e}){const _0x538f7c=_0x30b590;return(0x0,g[_0x538f7c(0x38d)])(_0x538f7c(0x460),{'role':_0x538f7c(0x3b1),'aria-':!0x0,'className':_0x538f7c(0x345),'children':[(0x0,g['jsx'])('span',{'children':_0x1a467e}),_0xeb3bb0]});}function on(_0x39afd3){const _0xc40bf9=_0x30b590;return(_0x39afd3==null?void 0x0:_0x39afd3[_0xc40bf9(0x11c)])===a[_0xc40bf9(0x4a1)][_0xc40bf9(0x2d0)]&&typeof _0x39afd3[_0xc40bf9(0x1ca)]==_0xc40bf9(0x368)&&_0x39afd3[_0xc40bf9(0x1ca)]!==null&&_0xc40bf9(0x258)in _0x39afd3[_0xc40bf9(0x1ca)]&&_0xc40bf9(0xd9)in _0x39afd3['config'];}function sn(_0x7c9662){const _0x31bc58=_0x30b590;switch(_0x7c9662[_0x31bc58(0x11c)]){case e[_0x31bc58(0x1e4)]['PivotChart']:return _0x31bc58(0x4f5);case e[_0x31bc58(0x1e4)][_0x31bc58(0x326)]:return _0x31bc58(0x2cc);case e[_0x31bc58(0x1e4)]['Text']:return _0x31bc58(0x3b6);case e[_0x31bc58(0x1e4)][_0x31bc58(0x108)]:return _0x31bc58(0x4b9);case e[_0x31bc58(0x1e4)]['FormulaShape']:return _0x31bc58(0x2bd);}}function cn({onDelete:_0x1b0ffb,onEdit:_0x528877}){const _0x138620=_0x30b590;let _0x2cd694=(0x0,m[_0x138620(0x155)])(a[_0x138620(0x3ea)]),_0xa7c90a=_0x2cd694['t'](_0x138620(0x2d9)),_0xc08858=_0x2cd694['t'](_0x138620(0x25b)),_0x3025fc=_0x2cd694['t'](_0x138620(0x15b));return(0x0,g[_0x138620(0x23f)])(f[_0x138620(0x37f)],{'items':[{'type':_0x138620(0x4b7),'children':(0x0,g[_0x138620(0x38d)])('span',{'className':_0x138620(0x307),'children':[(0x0,g[_0x138620(0x23f)])(s['PenIcon'],{'className':_0x138620(0x40b),'aria-hidden':'true'}),(0x0,g[_0x138620(0x23f)])(_0x138620(0x405),{'children':_0xa7c90a})]}),'onSelect':_0x528877},{'type':'separator'},{'type':_0x138620(0x4b7),'variant':'destructive','children':(0x0,g[_0x138620(0x38d)])(_0x138620(0x405),{'className':_0x138620(0x307),'children':[(0x0,g[_0x138620(0x23f)])(s['DeleteIcon'],{'className':_0x138620(0x40b),'aria-hidden':_0x138620(0x445)}),(0x0,g[_0x138620(0x23f)])('span',{'children':_0xc08858})]}),'onSelect':_0x1b0ffb}],'children':(0x0,g[_0x138620(0x23f)])(f[_0x138620(0x3da)],{'type':_0x138620(0x1e9),'size':'small','variant':'text','title':_0x3025fc,'aria-label':_0x3025fc,'className':_0x138620(0x1b8),'children':(0x0,g[_0x138620(0x23f)])(s[_0x138620(0x410)],{'className':'univer-size-4','aria-hidden':'true'})})});}function ln({dashboardId:_0x5986b9,presentation:_0x4747fd=!0x1,unitId:_0x4e1de3}){const _0x11e0c7=_0x30b590;let _0x3109ee=(0x0,m['useDependency'])(a[_0x11e0c7(0x279)]),_0x328193=(0x0,m[_0x11e0c7(0x155)])(u['IAttachmentIoService']),_0x5d4451=(0x0,m[_0x11e0c7(0x155)])(a[_0x11e0c7(0x43c)]),_0x5469fb=(0x0,m[_0x11e0c7(0x155)])(a[_0x11e0c7(0x245)]),_0xbc5056=(0x0,m[_0x11e0c7(0x155)])(a['LocaleService']),_0xfd3260=(0x0,m['useDependency'])(e[_0x11e0c7(0x3a7)]),_0xf0dbd1=(0x0,m[_0x11e0c7(0x155)])(a[_0x11e0c7(0x2a5)]),_0x33b75b=(0x0,h[_0x11e0c7(0x414)])(null),[_0xa96d25,_0x47eabd]=(0x0,h[_0x11e0c7(0x40a)])(!0x1),[_0x5367f5,_0x164cb1]=(0x0,h['useState'])(),[_0x1accfc,_0x36605f]=(0x0,h[_0x11e0c7(0x40a)])(!0x1),[_0x2f5ff0,_0x1b9a68]=(0x0,h[_0x11e0c7(0x40a)])(()=>new Map()),_0x1b71d0=(0x0,h[_0x11e0c7(0x4c3)])((_0x773e0b,_0x3737c6)=>{_0x1b9a68(_0x25e291=>{const _0x2ac049=_0x1e15;let _0x2c5fa0=new Map(_0x25e291);return _0x3737c6?_0x2c5fa0[_0x2ac049(0x490)](_0x773e0b,_0x3737c6):_0x2c5fa0['delete'](_0x773e0b),_0x2c5fa0;});},[]),_0x4fe089=(0x0,m[_0x11e0c7(0xe2)])(()=>_0xfd3260['change$'][_0x11e0c7(0x26c)]((0x0,c[_0x11e0c7(0x48a)])(()=>_0xfd3260[_0x11e0c7(0x499)](_0x4e1de3,_0x5986b9))),_0xfd3260[_0x11e0c7(0x499)](_0x4e1de3,_0x5986b9),!0x1,[_0x5986b9,_0xfd3260,_0x4e1de3]),_0x1e82c4=_0x5469fb[_0x11e0c7(0x3e7)](_0x4e1de3,a[_0x11e0c7(0x3d5)][_0x11e0c7(0x1a2)]),_0x3f93fc=(0x0,m[_0x11e0c7(0xe2)])(()=>_0xf0dbd1[_0x11e0c7(0x30c)],{'undos':0x0,'redos':0x0},!0x1,[_0xf0dbd1]),_0x5c1f2a=w(_0x4e1de3,_0x5986b9);if((0x0,h['useEffect'])(()=>{const _0x21069d=_0x11e0c7;_0x5469fb['setCurrentUnitForType'](_0x4e1de3),_0x5469fb[_0x21069d(0x10f)](_0x4e1de3);},[_0x5469fb,_0x4e1de3]),(0x0,h[_0x11e0c7(0x3dd)])(()=>{const _0x1b1681=_0x11e0c7;let _0x4bdf19=_0x33b75b['current'],_0x17a405=_0x4bdf19==null?void 0x0:_0x4bdf19['ownerDocument'];if(!_0x4bdf19||!_0x17a405)return;let _0x339a17=()=>_0x36605f(_0x17a405[_0x1b1681(0x29d)]===_0x17a405[_0x1b1681(0x13a)]),_0x4248f3=_0x529998=>{const _0x5e05b5=_0x1b1681;_0x529998[_0x5e05b5(0x2d3)]===_0x5e05b5(0x178)&&!_0x529998[_0x5e05b5(0x3c5)]&&_0x17a405[_0x5e05b5(0x29d)]===_0x17a405['documentElement']&&_0x17a405['exitFullscreen']()['catch'](_0x339a17);};return _0x17a405[_0x1b1681(0x42d)]('fullscreenchange',_0x339a17),_0x17a405[_0x1b1681(0x42d)]('keydown',_0x4248f3),()=>{const _0x433611=_0x1b1681;_0x17a405['removeEventListener'](_0x433611(0x2ef),_0x339a17),_0x17a405[_0x433611(0x346)](_0x433611(0x1a5),_0x4248f3);};},[]),!_0x4fe089||!_0x1e82c4)return null;let _0xcf4e66=_0x2142e4=>_0x3109ee[_0x11e0c7(0x387)](e[_0x11e0c7(0x37d)]['id'],{'unitId':_0x4e1de3,'dashboardId':_0x5986b9,'widget':_0x2142e4})[_0x11e0c7(0x29c)](()=>void 0x0),_0x317748=(_0x105518,_0x5e85ba,_0xe32642)=>{const _0x19492b=_0x11e0c7;let _0x2ad6ea=Math[_0x19492b(0x26a)](0x0,..._0x4fe089['widgetOrder']['flatMap'](_0x57fdc8=>{const _0x34cf06=_0x19492b;var _0x3df892;let _0x372a09=(_0x3df892=_0x4fe089[_0x34cf06(0x110)][_0x57fdc8])==null?void 0x0:_0x3df892[_0x34cf06(0x122)];return _0x372a09?[_0x372a09['row']+_0x372a09[_0x34cf06(0x4aa)]]:[];})),_0x504a09=_0x19492b(0x219)+(0x0,a[_0x19492b(0x3f8)])(0x8),_0x4966fc={'column':0x0,'row':_0x2ad6ea,'columnSpan':_0x5e85ba,'rowSpan':_0xe32642};switch(_0x105518[_0x19492b(0x11c)]){case e[_0x19492b(0x1e4)]['PivotChart']:return _0xcf4e66({..._0x105518,'id':_0x504a09,'layout':_0x4966fc});case e['BaseDashboardWidgetType']['TableFilter']:return _0xcf4e66({..._0x105518,'id':_0x504a09,'layout':_0x4966fc});case e['BaseDashboardWidgetType'][_0x19492b(0x115)]:return _0xcf4e66({..._0x105518,'id':_0x504a09,'layout':_0x4966fc});case e[_0x19492b(0x1e4)][_0x19492b(0x108)]:return _0xcf4e66({..._0x105518,'id':_0x504a09,'layout':_0x4966fc});case e[_0x19492b(0x1e4)][_0x19492b(0x31c)]:return _0xcf4e66({..._0x105518,'id':_0x504a09,'layout':_0x4966fc});}},_0x2429b2=_0x1e82c4[_0x11e0c7(0x38b)](),_0x32e3c3=_0x2429b2[_0x11e0c7(0x473)]['flatMap'](_0xc9dab3=>{const _0x52e063=_0x11e0c7;let _0x31b196=_0x2429b2[_0x52e063(0x4fe)][_0xc9dab3];if(!_0x31b196)return[];let _0x596eaa=_0x31b196[_0x52e063(0x36f)][_0x52e063(0x4e3)](_0x58f19=>{const _0xa82cbe=_0x52e063;let _0x59d43e=_0x31b196['views'][_0x58f19];return _n(_0x59d43e)?[{'type':_0xa82cbe(0x4b7),'children':_0x59d43e[_0xa82cbe(0x451)],'onSelect':()=>_0x317748({'type':e['BaseDashboardWidgetType']['PivotChart'],'tableId':_0xc9dab3,'pivotViewId':_0x58f19,'chart':{..._0x59d43e[_0xa82cbe(0x1ca)][_0xa82cbe(0xd9)]}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0x31b196['name'],'options':[..._0x596eaa,..._0x596eaa[_0x52e063(0xf8)]?[{'type':_0x52e063(0xe3)}]:[],{'type':_0x52e063(0x4b7),'children':_0xbc5056['t'](_0x52e063(0x2cc)),'onSelect':()=>_0x317748({'type':e['BaseDashboardWidgetType'][_0x52e063(0x326)],'tableId':_0xc9dab3,'filter':null},0x6,0x8)}]}];}),_0x10667c=[..._0x32e3c3,..._0x32e3c3[_0x11e0c7(0xf8)]?[{'type':_0x11e0c7(0xe3)}]:[],{'type':_0x11e0c7(0x4b7),'children':_0xbc5056['t'](_0x11e0c7(0x3b6)),'onSelect':()=>_0x317748({'type':e['BaseDashboardWidgetType'][_0x11e0c7(0x115)],'document':pn()},0x4,0x6)},{'type':_0x11e0c7(0x4b7),'children':_0xbc5056['t'](_0x11e0c7(0x4b9)),'onSelect':()=>mn(_0x328193)['then'](_0x12e7c8=>_0x12e7c8&&_0x317748({'type':e['BaseDashboardWidgetType'][_0x11e0c7(0x108)],'source':_0x12e7c8[_0x11e0c7(0x23a)],'sourceType':_0x12e7c8['sourceType'],'alt':_0x12e7c8[_0x11e0c7(0x451)],'displayMode':_0x11e0c7(0x225)},0x4,0x6))},{'type':_0x11e0c7(0x4b7),'children':_0xbc5056['t'](_0x11e0c7(0x2bd)),'onSelect':()=>{const _0x3a8d35=_0x11e0c7;let _0x283297=_0x2429b2[_0x3a8d35(0x473)][_0x3a8d35(0x41e)](_0x552ed0=>_0x2429b2['tables'][_0x552ed0]);_0x283297&&_0x317748({'type':e[_0x3a8d35(0x1e4)][_0x3a8d35(0x31c)],'tableId':_0x283297,'shapeType':d[_0x3a8d35(0x41c)][_0x3a8d35(0x30e)],'shapeData':(0x0,i['createFormulaShapeData'])(),'description':_0xbc5056['t'](_0x3a8d35(0x2bd))},0x4,0x6);}}],_0x5a9e75=_0x5367f5?_0x4fe089[_0x11e0c7(0x110)][_0x5367f5]:void 0x0,_0x41e631=async()=>{const _0xc565d4=_0x11e0c7;let _0x2a1387=_0x33b75b[_0xc565d4(0x216)];if(!_0x2a1387)return;let _0x5135eb=_0x2a1387[_0xc565d4(0x3c0)];_0x5135eb[_0xc565d4(0x29d)]===_0x5135eb[_0xc565d4(0x13a)]?await _0x5135eb['exitFullscreen']():await _0x5135eb[_0xc565d4(0x13a)][_0xc565d4(0x27b)]();},_0x48e3f9=_0x4747fd||_0x1accfc,_0x1c8067=_0x5c1f2a&&!_0x48e3f9;return(0x0,g['jsxs'])('div',{'ref':_0x33b75b,'className':_0x11e0c7(0x33c)+(_0x1accfc?_0x11e0c7(0x262):_0x11e0c7(0x49c))+_0x11e0c7(0xea),'children':[!_0x48e3f9&&(0x0,g['jsxs'])(_0x11e0c7(0x4f6),{'className':_0x11e0c7(0x2f2),'children':[(0x0,g[_0x11e0c7(0x23f)])(s[_0x11e0c7(0xf6)],{'className':_0x11e0c7(0x471)}),(0x0,g[_0x11e0c7(0x23f)])('h2',{'className':_0x11e0c7(0x431),'children':_0x4fe089[_0x11e0c7(0x451)]}),(0x0,g[_0x11e0c7(0x23f)])(m[_0x11e0c7(0x3af)],{'target':{'unitId':_0x4e1de3,'objectId':(0x0,l[_0x11e0c7(0x148)])(_0x5986b9),'objectType':p['UnitObject'][_0x11e0c7(0x249)]},'name':_0x4fe089[_0x11e0c7(0x451)],'commandId':l[_0x11e0c7(0x33d)]['id'],'exists':()=>!!_0xfd3260[_0x11e0c7(0x499)](_0x4e1de3,_0x5986b9)},_0x4e1de3+'/'+_0x5986b9),(0x0,g[_0x11e0c7(0x23f)])(t[_0x11e0c7(0x388)],{'unitId':_0x4e1de3}),(0x0,g['jsx'])(f[_0x11e0c7(0x3da)],{'type':_0x11e0c7(0x1e9),'size':'small','variant':_0x11e0c7(0x455),'aria-label':_0xbc5056['t']('bases-dashboard-ui.dashboard.undo'),'disabled':!_0x5c1f2a||_0x3f93fc['undos']===0x0,'onClick':()=>_0x3109ee[_0x11e0c7(0x387)](a[_0x11e0c7(0x22b)]['id'])[_0x11e0c7(0x29c)](()=>void 0x0),'children':(0x0,g[_0x11e0c7(0x23f)])(s[_0x11e0c7(0x20e)],{})}),(0x0,g['jsx'])(f[_0x11e0c7(0x3da)],{'type':'button','size':_0x11e0c7(0x301),'variant':'text','aria-label':_0xbc5056['t']('bases-dashboard-ui.dashboard.redo'),'disabled':!_0x5c1f2a||_0x3f93fc['redos']===0x0,'onClick':()=>_0x3109ee[_0x11e0c7(0x387)](a[_0x11e0c7(0x3ec)]['id'])[_0x11e0c7(0x29c)](()=>void 0x0),'children':(0x0,g[_0x11e0c7(0x23f)])(s[_0x11e0c7(0x304)],{})}),(0x0,g[_0x11e0c7(0x23f)])(f['Button'],{'type':_0x11e0c7(0x1e9),'size':_0x11e0c7(0x301),'variant':_0x11e0c7(0x455),'aria-label':_0xbc5056['t'](_0x11e0c7(0x1bb)),'onClick':()=>_0x41e631()['catch'](()=>void 0x0),'children':(0x0,g[_0x11e0c7(0x23f)])(s[_0x11e0c7(0x272)],{})}),(0x0,g[_0x11e0c7(0x23f)])(f['DropdownMenu'],{'items':_0x10667c,'children':(0x0,g[_0x11e0c7(0x38d)])(f['Button'],{'variant':_0x11e0c7(0x31d),'disabled':!_0x5c1f2a,'children':[(0x0,g[_0x11e0c7(0x23f)])(s[_0x11e0c7(0x335)],{}),_0xbc5056['t'](_0x11e0c7(0x4a7))]})})]}),(0x0,g[_0x11e0c7(0x38d)])(_0x11e0c7(0x460),{'className':_0x11e0c7(0xe9),'children':[(0x0,g[_0x11e0c7(0x23f)])(_0x11e0c7(0x460),{'className':_0x11e0c7(0x333),'children':(0x0,g['jsx'])(wt,{'dashboard':_0x4fe089,'dragLabel':_0xbc5056['t'](_0x11e0c7(0x357)),'editable':_0x1c8067,'resizeLabel':_0xbc5056['t'](_0x11e0c7(0x1fd)),'widgetLabel':_0x5445e6=>_0xbc5056['t'](gn(_0x5445e6['type'])),'selectedWidgetId':_0x1c8067?_0x5367f5:void 0x0,'onSelectWidget':_0x1c8067?_0x3f930d=>{_0x164cb1(_0x3f930d),_0x3f930d||_0x47eabd(!0x1);}:void 0x0,'onLayoutsCommit':_0x1ee281=>{const _0x2ed0c1=_0x11e0c7;let _0x5167db={..._0x4fe089['widgets']};_0x1ee281[_0x2ed0c1(0x1f8)]((_0x2a0ead,_0x4cdfee)=>{let _0x21eddd=_0x5167db[_0x4cdfee];_0x21eddd&&(_0x5167db[_0x4cdfee]={..._0x21eddd,'layout':_0x2a0ead});}),_0x3109ee[_0x2ed0c1(0x387)](e[_0x2ed0c1(0x180)]['id'],{'unitId':_0x4e1de3,'dashboard':{..._0x4fe089,'widgets':_0x5167db}})[_0x2ed0c1(0x29c)](()=>void 0x0);},'renderWidget':_0x50723d=>(0x0,g[_0x11e0c7(0x23f)])(un,{'base':_0x1e82c4,'dashboard':_0x4fe089,'unitId':_0x4e1de3,'widget':_0x50723d,'onChange':_0xcf4e66,'onChartRuntimeChange':_0x1b71d0}),'renderWidgetActions':_0x2e46d8=>(0x0,g[_0x11e0c7(0x23f)])(cn,{'onEdit':()=>{_0x164cb1(_0x2e46d8['id']),_0x47eabd(!0x0);},'onDelete':()=>{const _0x4e8de2=_0x11e0c7;_0x5367f5===_0x2e46d8['id']&&(_0x164cb1(void 0x0),_0x47eabd(!0x1)),_0x3109ee[_0x4e8de2(0x387)](e[_0x4e8de2(0x340)]['id'],{'unitId':_0x4e1de3,'dashboardId':_0x5986b9,'widgetId':_0x2e46d8['id']})[_0x4e8de2(0x29c)](()=>void 0x0);}})})}),_0x1c8067&&_0xa96d25&&_0x5a9e75&&(0x0,g[_0x11e0c7(0x23f)])($t,{'base':_0x1e82c4,'chartRuntime':_0x2f5ff0[_0x11e0c7(0x4ae)](_0x5a9e75['id']),'unitId':_0x4e1de3,'widget':_0x5a9e75,'onChange':_0xcf4e66,'onClose':()=>_0x47eabd(!0x1),'onSelectBackgroundImage':()=>hn(_0x5d4451),'onSelectImage':()=>mn(_0x328193)})]})]});}function un({base:_0x1318a1,dashboard:_0x5d11ae,onChange:_0x4c37a7,onChartRuntimeChange:_0x3080ca,unitId:_0x2a678f,widget:_0x1b7f21}){const _0x3306b8=_0x30b590;let _0x349981=(0x0,h[_0x3306b8(0x2c1)])(()=>_0x5d11ae[_0x3306b8(0x4c7)]['flatMap'](_0x1e2be1=>{const _0x3463ca=_0x3306b8;let _0x52eaf9=_0x5d11ae[_0x3463ca(0x110)][_0x1e2be1];return(_0x52eaf9==null?void 0x0:_0x52eaf9[_0x3463ca(0x11c)])===e[_0x3463ca(0x1e4)][_0x3463ca(0x326)]&&_0x52eaf9[_0x3463ca(0x3d3)]===(_0x3463ca(0x3d3)in _0x1b7f21?_0x1b7f21[_0x3463ca(0x3d3)]:'')&&_0x52eaf9[_0x3463ca(0x141)]?[_0x52eaf9[_0x3463ca(0x141)]]:[];}),[_0x5d11ae,_0x1b7f21]);switch(_0x1b7f21[_0x3306b8(0x11c)]){case e[_0x3306b8(0x1e4)][_0x3306b8(0x3c7)]:return(0x0,g[_0x3306b8(0x23f)])(ie,{'filters':_0x349981,'unitId':_0x2a678f,'widget':_0x1b7f21,'onRuntimeChange':_0x3080ca});case e[_0x3306b8(0x1e4)][_0x3306b8(0x326)]:return(0x0,g[_0x3306b8(0x23f)])(Rt,{'fields':dn(_0x1318a1,_0x1b7f21['tableId']),'filter':_0x1b7f21[_0x3306b8(0x141)],'onChange':_0x3d868d=>_0x4c37a7({..._0x1b7f21,'filter':_0x3d868d})[_0x3306b8(0x29c)](()=>void 0x0)});case e[_0x3306b8(0x1e4)]['Text']:return(0x0,g[_0x3306b8(0x23f)])(ce,{'widget':_0x1b7f21});case e[_0x3306b8(0x1e4)]['Image']:return(0x0,g['jsx'])(fn,{'widget':_0x1b7f21});case e['BaseDashboardWidgetType'][_0x3306b8(0x31c)]:return(0x0,g[_0x3306b8(0x23f)])(M,{'dashboardId':_0x5d11ae['id'],'unitId':_0x2a678f,'widget':_0x1b7f21});}}function dn(_0x406ce2,_0x386bd5){const _0x5cbc10=_0x30b590;let _0x748735=_0x406ce2['getSnapshot']()['tables'][_0x386bd5],_0xaff37e=_0x748735==null?void 0x0:_0x748735[_0x5cbc10(0x36f)][_0x5cbc10(0x41e)](_0x45cdba=>_0x748735[_0x5cbc10(0x371)][_0x45cdba]),_0x5bd903=_0xaff37e?_0x748735==null?void 0x0:_0x748735['views'][_0xaff37e]:void 0x0;return _0x748735&&_0x5bd903?(0x0,t[_0x5cbc10(0x117)])(_0x748735,_0x5bd903):[];}function fn({widget:_0x1fa747}){const _0x3db408=_0x30b590;let _0x216536=(0x0,m[_0x3db408(0x155)])(u[_0x3db408(0x45e)]),[_0x1c606c,_0x493a60]=(0x0,h[_0x3db408(0x40a)])(_0x1fa747[_0x3db408(0x109)]===a[_0x3db408(0x30b)][_0x3db408(0x19e)]?'':_0x1fa747[_0x3db408(0x23a)]);return(0x0,h[_0x3db408(0x3dd)])(()=>{const _0xe147aa=_0x3db408;let _0x556cb0=!0x0;return _0x216536[_0xe147aa(0x17c)](_0x1fa747[_0xe147aa(0x23a)],_0x1fa747[_0xe147aa(0x109)])[_0xe147aa(0xeb)](_0x1d187c=>{_0x556cb0&&_0x493a60(_0x1d187c);})[_0xe147aa(0x29c)](()=>void 0x0),()=>{_0x556cb0=!0x1;};},[_0x216536,_0x1fa747['source'],_0x1fa747[_0x3db408(0x109)]]),_0x1c606c?(0x0,g[_0x3db408(0x23f)])(_0x3db408(0x460),{'role':_0x1fa747[_0x3db408(0x2aa)]?_0x3db408(0x1db):void 0x0,'aria-label':_0x1fa747[_0x3db408(0x2aa)]||void 0x0,'data-dashboard-image':_0x1fa747['id'],'className':_0x3db408(0x46d),'style':E(_0x1c606c,_0x1fa747[_0x3db408(0x10e)])}):null;}function pn(){const _0x1ad101=_0x30b590;let _0x355e2e=(0x0,a[_0x1ad101(0x13f)])(new Set());return{'id':_0x1ad101(0x43f)+(0x0,a['generateRandomId'])(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x355e2e}]},'documentStyle':{}};}function mn(_0x812d67){return new Promise(_0x3e26cb=>{const _0x4fafe7=_0x1e15;let _0x58aff6=document[_0x4fafe7(0x427)](_0x4fafe7(0x238));_0x58aff6[_0x4fafe7(0x11c)]=_0x4fafe7(0x2fa),_0x58aff6[_0x4fafe7(0x4b5)]=_0x4fafe7(0x497),_0x58aff6['addEventListener'](_0x4fafe7(0x49d),()=>{const _0x1d9486=_0x4fafe7;var _0x569d16;let _0x13ebea=(_0x569d16=_0x58aff6[_0x1d9486(0x2c8)])==null?void 0x0:_0x569d16[0x0];_0x13ebea?_0x812d67[_0x1d9486(0x2ab)](_0x13ebea)['then'](_0x337f16=>{const _0x4e9a43=_0x1d9486;!_0x337f16[_0x4e9a43(0x23a)]||_0x337f16[_0x4e9a43(0x109)]===void 0x0?_0x3e26cb(null):_0x3e26cb({'name':_0x337f16['name'],'source':_0x337f16[_0x4e9a43(0x23a)],'sourceType':_0x337f16[_0x4e9a43(0x109)]});})['catch'](()=>_0x3e26cb(null)):_0x3e26cb(null);},{'once':!0x0}),_0x58aff6[_0x4fafe7(0x12a)]();});}function hn(_0x5bd42b){return new Promise(_0x307b9c=>{const _0xa587eb=_0x1e15;let _0x2f6fbf=document['createElement'](_0xa587eb(0x238));_0x2f6fbf[_0xa587eb(0x11c)]='file',_0x2f6fbf[_0xa587eb(0x4b5)]=_0xa587eb(0x497),_0x2f6fbf[_0xa587eb(0x42d)](_0xa587eb(0x49d),()=>{const _0x334991=_0xa587eb;var _0x2df101;let _0x2f80aa=(_0x2df101=_0x2f6fbf[_0x334991(0x2c8)])==null?void 0x0:_0x2df101[0x0];_0x2f80aa?_0x5bd42b[_0x334991(0x26b)](_0x2f80aa)[_0x334991(0xeb)](_0x12ee47=>{const _0x32c061=_0x334991;if(!(_0x12ee47!=null&&_0x12ee47[_0x32c061(0x23a)]))_0x307b9c(null);else{if(_0x12ee47[_0x32c061(0x228)]){let _0x4fecdb=new Image();_0x4fecdb[_0x32c061(0x133)]=_0x12ee47[_0x32c061(0x228)],_0x5bd42b[_0x32c061(0xf0)](_0x12ee47['source'],_0x12ee47[_0x32c061(0x200)],_0x4fecdb);}_0x307b9c({'source':_0x12ee47[_0x32c061(0x23a)],'sourceType':_0x12ee47[_0x32c061(0x200)]});}})[_0x334991(0x29c)](()=>_0x307b9c(null)):_0x307b9c(null);},{'once':!0x0}),_0x2f6fbf[_0xa587eb(0x12a)]();});}function gn(_0x126d4d){const _0x42bfd5=_0x30b590;switch(_0x126d4d){case e[_0x42bfd5(0x1e4)]['PivotChart']:return _0x42bfd5(0x4f5);case e[_0x42bfd5(0x1e4)][_0x42bfd5(0x326)]:return _0x42bfd5(0x2cc);case e[_0x42bfd5(0x1e4)][_0x42bfd5(0x115)]:return'bases-dashboard-ui.dashboard.text';case e['BaseDashboardWidgetType']['Image']:return _0x42bfd5(0x4b9);case e[_0x42bfd5(0x1e4)][_0x42bfd5(0x31c)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function _n(_0x541e88){const _0xd042ce=_0x30b590;return(_0x541e88==null?void 0x0:_0x541e88[_0xd042ce(0x11c)])===a[_0xd042ce(0x4a1)][_0xd042ce(0x2d0)]&&typeof _0x541e88[_0xd042ce(0x1ca)]==_0xd042ce(0x368)&&_0x541e88['config']!==null&&_0xd042ce(0x258)in _0x541e88[_0xd042ce(0x1ca)]&&'chart'in _0x541e88[_0xd042ce(0x1ca)];}const vn=[{'area':y['PivotTableFiledAreaEnum'][_0x30b590(0x2e5)],'key':'filterFields','label':_0x30b590(0xd3)},{'area':y[_0x30b590(0xd8)][_0x30b590(0xf2)],'key':_0x30b590(0x256),'label':'bases-dashboard-ui.pivot.columns'},{'area':y['PivotTableFiledAreaEnum'][_0x30b590(0x44f)],'key':_0x30b590(0x191),'label':_0x30b590(0x24b)},{'area':y['PivotTableFiledAreaEnum'][_0x30b590(0x19b)],'key':_0x30b590(0x338),'label':_0x30b590(0x39b)}],yn=[{'value':y['PivotSubtotalTypeEnum'][_0x30b590(0x18a)],'localeKey':_0x30b590(0x3d7)},{'value':y[_0x30b590(0x312)][_0x30b590(0x379)],'localeKey':_0x30b590(0x3e0)},{'value':y[_0x30b590(0x312)][_0x30b590(0x4db)],'localeKey':_0x30b590(0x33f)},{'value':y[_0x30b590(0x312)][_0x30b590(0x4d8)],'localeKey':_0x30b590(0x2fc)},{'value':y[_0x30b590(0x312)][_0x30b590(0x26a)],'localeKey':_0x30b590(0x1d2)},{'value':y[_0x30b590(0x312)][_0x30b590(0x2f9)],'localeKey':_0x30b590(0x1ce)},{'value':y['PivotSubtotalTypeEnum'][_0x30b590(0x32d)],'localeKey':'bases-dashboard-ui.pivot.product'},{'value':y[_0x30b590(0x312)][_0x30b590(0x4e5)],'localeKey':_0x30b590(0x375)},{'value':y['PivotSubtotalTypeEnum'][_0x30b590(0x4ad)],'localeKey':_0x30b590(0x1b5)},{'value':y[_0x30b590(0x312)][_0x30b590(0x1e0)],'localeKey':_0x30b590(0x446)},{'value':y[_0x30b590(0x312)][_0x30b590(0x107)],'localeKey':_0x30b590(0x1a0)}];function bn(_0x59c28f){const _0x5e4bda=_0x30b590;let {config:_0x4d49a9,onChange:_0x27e674,table:_0x41c4ae}=_0x59c28f,_0x35b95e=(0x0,m[_0x5e4bda(0x155)])(a[_0x5e4bda(0x3ea)]),[_0x5c60ad,_0x547e59]=(0x0,h['useState'])(_0x5e4bda(0x3c6)),[_0x31cc57,_0x520a19]=(0x0,h[_0x5e4bda(0x40a)])(''),[_0xb83190,_0x55a8e4]=(0x0,h['useState'])(null),[_0x589063,_0x51f307]=(0x0,h['useState'])(null),[_0x8d73e5,_0x365d19]=(0x0,h[_0x5e4bda(0x40a)])(null),[_0x27ca56,_0xd5e658]=(0x0,h[_0x5e4bda(0x40a)])(null),_0xc39d06=(0x0,h[_0x5e4bda(0x414)])(null),_0x45d5f5=(0x0,h[_0x5e4bda(0x2c1)])(()=>_0x41c4ae[_0x5e4bda(0x2f0)]['flatMap'](_0x29eeb7=>{const _0x51d518=_0x5e4bda;let _0x4c386d=_0x41c4ae['fields'][_0x29eeb7];return _0x4c386d&&_0x4c386d[_0x51d518(0x20a)]!==!0x0&&_0x4c386d[_0x51d518(0x11c)]!==a[_0x51d518(0x1d5)][_0x51d518(0x4d6)]?[_0x4c386d]:[];})['filter'](_0x5a9c64=>_0x5a9c64[_0x5e4bda(0x451)][_0x5e4bda(0x144)]()[_0x5e4bda(0x30a)](_0x31cc57['trim']()[_0x5e4bda(0x144)]())),[_0x31cc57,_0x41c4ae]),_0x184848=_0x5dc2c4=>{const _0x9ccd01=_0x5e4bda;let _0x3ae000=(0x0,e[_0x9ccd01(0x17a)])(_0x41c4ae,_0x4d49a9['pivot']);try{_0x5dc2c4(_0x3ae000),_0x27e674({'pivot':_0x3ae000[_0x9ccd01(0x322)]()});}finally{_0x3ae000['dispose']();}},_0x949f81=(_0x3e8f75,_0x316f3e)=>{_0xb83190&&(_0x184848(_0xb663d=>{const _0x2c1ea5=_0x1e15;if(_0xb83190[_0x2c1ea5(0x438)]===_0x2c1ea5(0x492)){let _0x2ea9b5=_0xb663d[_0x2c1ea5(0x40d)](_0xb83190['id']),_0x49c650=_0x2ea9b5['area']===_0x3e8f75&&_0x2ea9b5['index']<_0x316f3e?_0x316f3e-0x1:_0x316f3e;_0xb663d[_0x2c1ea5(0x3ad)](_0xb83190['id'],_0x3e8f75,_0x49c650);}else On(_0xb663d,_0xb83190['id'],_0x3e8f75,_0x316f3e);}),_0x55a8e4(null),_0x51f307(null));};return(0x0,g[_0x5e4bda(0x38d)])(_0x5e4bda(0x460),{'className':_0x5e4bda(0x461),'children':[(0x0,g['jsx'])(n['ChartEditPanelTabs'],{'ariaLabel':_0x35b95e['t'](_0x5e4bda(0x46b)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x35b95e['t'](_0x5e4bda(0x4c6)),'panelId':_0x5e4bda(0x3cc),'value':_0x5e4bda(0x3c6)},{'label':_0x35b95e['t'](_0x5e4bda(0x21d)),'panelId':_0x5e4bda(0x3bc),'value':'options'}],'value':_0x5c60ad,'onChange':_0x547e59}),(0x0,g[_0x5e4bda(0x23f)])(_0x5e4bda(0x460),{'ref':_0xc39d06,'className':(0x0,f['clsx'])(_0x5e4bda(0x294),f[_0x5e4bda(0x166)]),'onDragOver':_0x195a42=>{const _0x1ddb00=_0x5e4bda;let _0xc98504=_0xc39d06[_0x1ddb00(0x216)];if(!_0xc98504)return;let _0x5f2b0c=_0xc98504['getBoundingClientRect']();_0x195a42[_0x1ddb00(0x12f)]<_0x5f2b0c[_0x1ddb00(0x291)]+0x30?_0xc98504[_0x1ddb00(0x2a0)]-=0x10:_0x195a42['clientY']>_0x5f2b0c[_0x1ddb00(0x1c3)]-0x30&&(_0xc98504['scrollTop']+=0x10);},'children':_0x5c60ad===_0x5e4bda(0x45a)?(0x0,g[_0x5e4bda(0x23f)])(Dn,{'config':_0x4d49a9,'commit':_0x184848}):(0x0,g[_0x5e4bda(0x38d)])(_0x5e4bda(0x460),{'className':_0x5e4bda(0x27e),'children':[(0x0,g[_0x5e4bda(0x38d)])(_0x5e4bda(0x460),{'children':[(0x0,g['jsx'])(_0x5e4bda(0x460),{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x35b95e['t'](_0x5e4bda(0x1e3))}),(0x0,g['jsx'])(f['Input'],{'allowClear':!0x0,'slot':(0x0,g['jsx'])(s[_0x5e4bda(0x31f)],{}),'value':_0x31cc57,'placeholder':_0x35b95e['t'](_0x5e4bda(0x176)),'onChange':_0x520a19}),(0x0,g[_0x5e4bda(0x23f)])(_0x5e4bda(0x460),{'className':_0x5e4bda(0x1e1),'children':_0x45d5f5['map'](_0x3ce6e0=>(0x0,g[_0x5e4bda(0x23f)])(xn,{'config':_0x4d49a9,'field':_0x3ce6e0,'onAdd':_0x1e1e6c=>_0x184848(_0x2dde61=>On(_0x2dde61,_0x3ce6e0['id'],_0x1e1e6c,_0x2dde61[_0x5e4bda(0x241)](_0x1e1e6c))),'onCheckedChange':_0x467265=>_0x184848(_0x413dc1=>{const _0x511a16=_0x5e4bda;let _0x10ed4f=_0x413dc1['getTableFieldsByDataFieldId'](_0x3ce6e0['id']);if(!_0x467265)_0x10ed4f['forEach'](_0x58482c=>_0x413dc1[_0x511a16(0x2a3)](_0x58482c[_0x511a16(0x3f6)]()));else{if(_0x10ed4f['length']===0x0){let _0x125564=An(_0x3ce6e0)?y['PivotTableFiledAreaEnum']['Value']:y[_0x511a16(0xd8)]['Row'];_0x413dc1['addFieldWithSourceId'](_0x3ce6e0['id'],_0x125564);}}}),'onDragStart':()=>_0x55a8e4({'kind':_0x5e4bda(0x23a),'id':_0x3ce6e0['id']})},_0x3ce6e0['id']))})]}),(0x0,g['jsx'])('div',{'className':_0x5e4bda(0x48c),'children':vn['map'](_0x3a9a25=>(0x0,g[_0x5e4bda(0x23f)])(Cn,{'area':_0x3a9a25[_0x5e4bda(0x1be)],'dropTarget':_0x589063,'fields':_0x4d49a9[_0x5e4bda(0x258)][_0x3a9a25[_0x5e4bda(0x2d3)]],'label':_0x35b95e['t'](_0x3a9a25['label']),'snapshot':_0x4d49a9[_0x5e4bda(0x258)],'onDragEnd':()=>{_0x55a8e4(null),_0x51f307(null);},'onDragStart':_0x5d7190=>_0x55a8e4({'kind':_0x5e4bda(0x492),'id':_0x5d7190,'area':_0x3a9a25[_0x5e4bda(0x1be)]}),'onDragOver':_0x8a5b28=>_0x51f307({'area':_0x3a9a25['area'],'index':_0x8a5b28}),'onDrop':_0x47f746=>_0x949f81(_0x3a9a25['area'],_0x47f746),'onFilter':_0x365d19,'onRemove':_0xfa86b9=>_0x184848(_0x53ca54=>_0x53ca54[_0x5e4bda(0x2a3)](_0xfa86b9)),'onSettings':_0xd5e658},_0x3a9a25[_0x5e4bda(0x1be)]))}),_0x8d73e5&&(0x0,g['jsx'])(Tn,{'fieldId':_0x8d73e5,'snapshot':_0x4d49a9[_0x5e4bda(0x258)],'table':_0x41c4ae,'onCancel':()=>_0x365d19(null),'onCommit':(_0x30681d,_0x16a9b0)=>{_0x184848(_0x5622e3=>{const _0x54f587=_0x1e15;let _0x424c93=_0x5622e3[_0x54f587(0x28f)](_0x8d73e5),_0x43f037=(_0x424c93==null?void 0x0:_0x424c93['items'])??[];_0x5622e3[_0x54f587(0x482)](_0x8d73e5,{'type':y['PivotFilterTypeEnum'][_0x54f587(0x14d)],'list':_0x30681d,'isAll':_0x30681d[_0x54f587(0xf8)]===_0x43f037[_0x54f587(0xf8)]}),_0x5622e3[_0x54f587(0x1af)](_0x8d73e5,_0x16a9b0===void 0x0?void 0x0:{'type':_0x16a9b0});}),_0x365d19(null);}},_0x8d73e5),_0x27ca56&&(0x0,g[_0x5e4bda(0x23f)])(En,{'field':_0x4d49a9[_0x5e4bda(0x258)][_0x5e4bda(0x327)][_0x27ca56],'onCancel':()=>_0xd5e658(null),'onCommit':(_0x218260,_0x42a670,_0x31a165)=>{_0x184848(_0x32fdc3=>{const _0x535c16=_0x1e15;_0x32fdc3[_0x535c16(0x14a)](_0x27ca56,_0x218260),_0x32fdc3[_0x535c16(0x1ad)](_0x27ca56,_0x42a670),_0x32fdc3['setFieldFormat'](_0x27ca56,_0x31a165||void 0x0);}),_0xd5e658(null);}},_0x27ca56)]})})]});}function xn(_0x20964d){const _0x1c5561=_0x30b590;let {config:_0xa3f353,field:_0x497ae3,onAdd:_0x3846ae,onCheckedChange:_0x2dc639,onDragStart:_0x598c0f}=_0x20964d,_0x2746d8=(0x0,m[_0x1c5561(0x155)])(a[_0x1c5561(0x3ea)]),_0x59ced4=[...Object[_0x1c5561(0x1ba)](_0xa3f353['pivot'][_0x1c5561(0x32a)]),...Object['values'](_0xa3f353[_0x1c5561(0x258)][_0x1c5561(0x327)])][_0x1c5561(0x364)](_0x2f5f45=>_0x2f5f45[_0x1c5561(0x366)]===_0x497ae3['id']),_0x363f0c=vn[_0x1c5561(0x48a)](_0x77ad4e=>({'type':_0x1c5561(0x4b7),'children':_0x2746d8['t'](jn(_0x77ad4e[_0x1c5561(0x1be)])),'onSelect':()=>_0x3846ae(_0x77ad4e['area'])}));return(0x0,g[_0x1c5561(0x38d)])(_0x1c5561(0x460),{'draggable':!0x0,'className':_0x1c5561(0x16a),'onDragStart':_0x598c0f,'children':[(0x0,g[_0x1c5561(0x23f)])(s['GripVerticalIcon'],{'className':_0x1c5561(0x3d2)}),(0x0,g[_0x1c5561(0x23f)])(f[_0x1c5561(0x2b9)],{'checked':_0x59ced4,'onChange':_0x3b0c19=>_0x2dc639(!!_0x3b0c19)}),(0x0,g['jsx'])(Sn,{'field':_0x497ae3}),(0x0,g[_0x1c5561(0x23f)])(_0x1c5561(0x405),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x497ae3[_0x1c5561(0x451)]}),(0x0,g[_0x1c5561(0x23f)])(f[_0x1c5561(0x37f)],{'align':'end','items':_0x363f0c,'children':(0x0,g[_0x1c5561(0x23f)])(_0x1c5561(0x405),{'className':_0x1c5561(0x1b7),'children':(0x0,g[_0x1c5561(0x23f)])(s[_0x1c5561(0x187)],{})})})]});}function Sn({field:_0x43e6e3}){const _0x427af7=_0x30b590;return An(_0x43e6e3)?(0x0,g[_0x427af7(0x23f)])(s[_0x427af7(0x343)],{'className':_0x427af7(0x3d2)}):_0x43e6e3[_0x427af7(0x11c)]===a[_0x427af7(0x1d5)]['Date']||_0x43e6e3[_0x427af7(0x11c)]===a[_0x427af7(0x1d5)]['CreatedAt']||_0x43e6e3['type']===a['BaseFieldType'][_0x427af7(0x380)]?(0x0,g[_0x427af7(0x23f)])(s[_0x427af7(0x25c)],{'className':_0x427af7(0x3d2)}):(0x0,g[_0x427af7(0x23f)])(s[_0x427af7(0x4f2)],{'className':_0x427af7(0x3d2)});}function Cn(_0x2fdc8f){const _0x2d4cb8=_0x30b590;let {area:_0x8b374f,dropTarget:_0x50adf3,fields:_0x2152b5,label:_0x4c6b39,snapshot:_0x306eb4}=_0x2fdc8f,_0x5597a5=(0x0,m[_0x2d4cb8(0x155)])(a['LocaleService']);return(0x0,g[_0x2d4cb8(0x38d)])(_0x2d4cb8(0x2f7),{'className':(0x0,f['clsx'])(_0x2d4cb8(0x244),f[_0x2d4cb8(0x209)]),'onDragOver':_0x24b728=>{const _0x2eb32c=_0x2d4cb8;_0x24b728[_0x2eb32c(0x222)](),_0x2fdc8f[_0x2eb32c(0x3fd)](_0x2152b5['length']);},'onDrop':_0x533dbe=>{const _0x25effb=_0x2d4cb8;_0x533dbe[_0x25effb(0x222)](),_0x2fdc8f[_0x25effb(0x46f)]((_0x50adf3==null?void 0x0:_0x50adf3[_0x25effb(0x1be)])===_0x8b374f?_0x50adf3[_0x25effb(0x489)]:_0x2152b5[_0x25effb(0xf8)]);},'children':[(0x0,g['jsx'])(_0x2d4cb8(0x460),{'className':_0x2d4cb8(0x330),'children':_0x4c6b39}),(0x0,g[_0x2d4cb8(0x38d)])(_0x2d4cb8(0x460),{'className':_0x2d4cb8(0x302),'children':[_0x2152b5[_0x2d4cb8(0x48a)]((_0x21b7a5,_0x46fa97)=>{const _0x37d8cf=_0x2d4cb8;let _0x170a99=_0x306eb4['dimension'][_0x21b7a5]??_0x306eb4[_0x37d8cf(0x327)][_0x21b7a5];if(!_0x170a99)return null;let _0x5699af=(_0x50adf3==null?void 0x0:_0x50adf3[_0x37d8cf(0x1be)])===_0x8b374f&&_0x50adf3[_0x37d8cf(0x489)]===_0x46fa97;return(0x0,g[_0x37d8cf(0x38d)])(_0x37d8cf(0x460),{'onDragOver':_0x1412e4=>{const _0x245c88=_0x37d8cf;_0x1412e4[_0x245c88(0x222)](),_0x1412e4[_0x245c88(0x231)]();let _0x48da30=_0x1412e4['currentTarget']['getBoundingClientRect']();_0x2fdc8f[_0x245c88(0x3fd)](_0x46fa97+ +(_0x1412e4[_0x245c88(0x12f)]>_0x48da30[_0x245c88(0x291)]+_0x48da30['height']/0x2));},'onDrop':_0x4a9542=>{const _0x2ea83b=_0x37d8cf;_0x4a9542['preventDefault'](),_0x4a9542[_0x2ea83b(0x231)](),_0x2fdc8f['onDrop']((_0x50adf3==null?void 0x0:_0x50adf3[_0x2ea83b(0x1be)])===_0x8b374f?_0x50adf3['index']:_0x46fa97);},'children':[_0x5699af&&(0x0,g[_0x37d8cf(0x23f)])(_0x37d8cf(0x460),{'className':_0x37d8cf(0x1f1)}),(0x0,g['jsx'])(wn,{'area':_0x8b374f,'field':_0x170a99,'onDragEnd':_0x2fdc8f['onDragEnd'],'onDragStart':()=>_0x2fdc8f[_0x37d8cf(0x3a6)](_0x21b7a5),'onFilter':()=>_0x2fdc8f[_0x37d8cf(0x3d1)](_0x21b7a5),'onRemove':()=>_0x2fdc8f['onRemove'](_0x21b7a5),'onSettings':()=>_0x2fdc8f[_0x37d8cf(0xff)](_0x21b7a5)})]},_0x21b7a5);}),(_0x50adf3==null?void 0x0:_0x50adf3[_0x2d4cb8(0x1be)])===_0x8b374f&&_0x50adf3[_0x2d4cb8(0x489)]===_0x2152b5[_0x2d4cb8(0xf8)]&&(0x0,g[_0x2d4cb8(0x23f)])(_0x2d4cb8(0x460),{'className':_0x2d4cb8(0x1f1)}),_0x2152b5[_0x2d4cb8(0xf8)]===0x0&&(0x0,g[_0x2d4cb8(0x23f)])(_0x2d4cb8(0x460),{'className':_0x2d4cb8(0x40c),'children':_0x5597a5['t'](_0x2d4cb8(0x1cc))})]})]});}function wn(_0x2f7e84){const _0x56471b=_0x30b590;let _0x413bce=(0x0,m['useDependency'])(a[_0x56471b(0x3ea)]),_0x2e7327=_0x2f7e84[_0x56471b(0x1be)]===y[_0x56471b(0xd8)][_0x56471b(0x19b)],_0x1cbccd=[{'type':_0x56471b(0x4b7),'children':_0x413bce['t'](_0x56471b(0x281)),'onSelect':_0x2f7e84['onRemove']},{'type':'item','children':_0x413bce['t'](_0x2e7327?_0x56471b(0x38a):_0x56471b(0x2de)),'onSelect':_0x2e7327?_0x2f7e84[_0x56471b(0xff)]:_0x2f7e84['onFilter']}];return(0x0,g[_0x56471b(0x38d)])(_0x56471b(0x460),{'draggable':!0x0,'className':_0x56471b(0x1c1),'onDragEnd':_0x2f7e84['onDragEnd'],'onDragStart':_0x2f7e84[_0x56471b(0x3a6)],'children':[(0x0,g['jsx'])(s[_0x56471b(0x4af)],{'className':_0x56471b(0x3d2)}),(0x0,g[_0x56471b(0x23f)])(f[_0x56471b(0x1c7)],{'title':_0x2f7e84[_0x56471b(0x492)][_0x56471b(0x38f)],'children':(0x0,g[_0x56471b(0x23f)])(_0x56471b(0x405),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x2f7e84[_0x56471b(0x492)][_0x56471b(0x38f)]})}),(0x0,g['jsx'])(f['DropdownMenu'],{'align':_0x56471b(0x19f),'items':_0x1cbccd,'children':(0x0,g[_0x56471b(0x23f)])(_0x56471b(0x405),{'className':'univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','children':(0x0,g['jsx'])(s[_0x56471b(0x187)],{})})})]});}function Tn(_0x29aef1){const _0x2b0384=_0x30b590;var _0x596181,_0x4fd9b4;let _0x22c2df=(0x0,m[_0x2b0384(0x155)])(a[_0x2b0384(0x3ea)]),{format:_0x18235d,items:_0x1a26e3,itemTypes:_0x1c7a7f}=(0x0,h[_0x2b0384(0x2c1)])(()=>{const _0x2d6762=_0x2b0384;let _0x452952=(0x0,e[_0x2d6762(0x17a)])(_0x29aef1[_0x2d6762(0x4da)],_0x29aef1[_0x2d6762(0x48d)]);try{let _0x524dfc=_0x452952[_0x2d6762(0x28f)](_0x29aef1[_0x2d6762(0x1fb)]);return{'format':_0x524dfc==null?void 0x0:_0x524dfc[_0x2d6762(0x462)],'items':[...(_0x524dfc==null?void 0x0:_0x524dfc[_0x2d6762(0x30d)])??[]],'itemTypes':[...(_0x524dfc==null?void 0x0:_0x524dfc[_0x2d6762(0x34a)])??[]]};}finally{_0x452952[_0x2d6762(0x45b)]();}},[_0x29aef1[_0x2b0384(0x1fb)],_0x29aef1['snapshot'],_0x29aef1[_0x2b0384(0x4da)]]),_0x54df4a=(_0x596181=_0x29aef1['snapshot']['dimension'][_0x29aef1[_0x2b0384(0x1fb)]])==null?void 0x0:_0x596181[_0x2b0384(0x32c)],[_0xd2c1c8,_0x50202a]=(0x0,h[_0x2b0384(0x40a)])((_0x54df4a==null?void 0x0:_0x54df4a['type'])===y[_0x2b0384(0x3a4)]['ManualFilter']?_0x54df4a[_0x2b0384(0x34b)]:_0x1a26e3),[_0x3276e7,_0x455efb]=(0x0,h['useState'])((_0x4fd9b4=_0x29aef1[_0x2b0384(0x48d)][_0x2b0384(0x32a)][_0x29aef1[_0x2b0384(0x1fb)]])==null||(_0x4fd9b4=_0x4fd9b4[_0x2b0384(0x353)])==null?void 0x0:_0x4fd9b4[_0x2b0384(0x11c)]),_0x5f04c1=_0xd2c1c8[_0x2b0384(0xf8)]===_0x1a26e3[_0x2b0384(0xf8)];return(0x0,g[_0x2b0384(0x38d)])(_0x2b0384(0x2f7),{'className':(0x0,f[_0x2b0384(0x373)])('univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900',f[_0x2b0384(0x209)]),'children':[(0x0,g[_0x2b0384(0x23f)])(_0x2b0384(0x460),{'className':_0x2b0384(0x227),'children':_0x22c2df['t'](_0x2b0384(0x2de))}),(0x0,g[_0x2b0384(0x38d)])(_0x2b0384(0x460),{'className':_0x2b0384(0x18e),'children':[(0x0,g[_0x2b0384(0x38d)])(f[_0x2b0384(0x3da)],{'className':_0x2b0384(0x214),'variant':_0x3276e7===y['PivotDataFieldSortOperatorEnum']['ascending']?_0x2b0384(0x31d):_0x2b0384(0x1df),'onClick':()=>_0x455efb(y[_0x2b0384(0x181)]['ascending']),'children':[(0x0,g[_0x2b0384(0x23f)])(s[_0x2b0384(0x31e)],{}),_0x22c2df['t'](_0x2b0384(0x447))]}),(0x0,g['jsxs'])(f[_0x2b0384(0x3da)],{'className':_0x2b0384(0x214),'variant':_0x3276e7===y[_0x2b0384(0x181)]['descending']?_0x2b0384(0x31d):_0x2b0384(0x1df),'onClick':()=>_0x455efb(y['PivotDataFieldSortOperatorEnum']['descending']),'children':[(0x0,g['jsx'])(s[_0x2b0384(0x267)],{}),_0x22c2df['t']('bases-dashboard-ui.pivot.descending')]})]}),(0x0,g['jsxs'])(_0x2b0384(0x460),{'className':_0x2b0384(0x3e3),'children':[(0x0,g[_0x2b0384(0x38d)])(_0x2b0384(0x1c2),{'className':_0x2b0384(0x494),'children':[(0x0,g['jsx'])(f[_0x2b0384(0x2b9)],{'checked':_0x5f04c1,'indeterminate':_0xd2c1c8[_0x2b0384(0xf8)]>0x0&&!_0x5f04c1,'onChange':()=>_0x50202a(_0x5f04c1?[]:_0x1a26e3)}),_0x22c2df['t'](_0x2b0384(0x158))]}),_0x1a26e3['map']((_0x2f4c9c,_0x12ba2a)=>(0x0,g[_0x2b0384(0x38d)])(_0x2b0384(0x1c2),{'className':_0x2b0384(0x494),'children':[(0x0,g[_0x2b0384(0x23f)])(f[_0x2b0384(0x2b9)],{'checked':_0xd2c1c8[_0x2b0384(0x30a)](_0x2f4c9c),'onChange':()=>_0x50202a(_0x5e3fe2=>_0x5e3fe2[_0x2b0384(0x30a)](_0x2f4c9c)?_0x5e3fe2[_0x2b0384(0x141)](_0x623eb8=>_0x623eb8!==_0x2f4c9c):[..._0x5e3fe2,_0x2f4c9c])}),(0x0,g['jsx'])(_0x2b0384(0x405),{'className':_0x2b0384(0x4b8),'children':kn(_0x2f4c9c,_0x1c7a7f[_0x12ba2a],_0x18235d,_0x22c2df['t'](_0x2b0384(0x1da)))})]},_0x2f4c9c))]}),(0x0,g[_0x2b0384(0x38d)])('div',{'className':_0x2b0384(0x2a8),'children':[(0x0,g[_0x2b0384(0x23f)])(f[_0x2b0384(0x3da)],{'variant':'link','onClick':()=>_0x29aef1[_0x2b0384(0x398)](_0x1a26e3,_0x3276e7),'children':_0x22c2df['t'](_0x2b0384(0x2d8))}),(0x0,g[_0x2b0384(0x38d)])(_0x2b0384(0x460),{'className':_0x2b0384(0x2db),'children':[(0x0,g[_0x2b0384(0x23f)])(f[_0x2b0384(0x3da)],{'onClick':_0x29aef1[_0x2b0384(0x3b5)],'children':_0x22c2df['t'](_0x2b0384(0x4ec))}),(0x0,g[_0x2b0384(0x23f)])(f['Button'],{'variant':_0x2b0384(0x31d),'disabled':_0xd2c1c8['length']===0x0,'onClick':()=>_0x29aef1[_0x2b0384(0x398)](_0xd2c1c8,_0x3276e7),'children':_0x22c2df['t'](_0x2b0384(0x2e7))})]})]})]});}function En(_0x2c3394){const _0x524d08=_0x30b590;var _0x54deff,_0x46e1d1,_0x407e5d;let _0x80f464=(0x0,m[_0x524d08(0x155)])(a[_0x524d08(0x3ea)]),[_0x56105a,_0x34b4a1]=(0x0,h[_0x524d08(0x40a)])(((_0x54deff=_0x2c3394[_0x524d08(0x492)])==null?void 0x0:_0x54deff[_0x524d08(0x38f)])??''),[_0x462433,_0x2cf0f8]=(0x0,h[_0x524d08(0x40a)])(((_0x46e1d1=_0x2c3394[_0x524d08(0x492)])==null?void 0x0:_0x46e1d1[_0x524d08(0x350)])??y['PivotSubtotalTypeEnum'][_0x524d08(0x18a)]),[_0x9adfd2,_0x11fcf7]=(0x0,h[_0x524d08(0x40a)])(((_0x407e5d=_0x2c3394[_0x524d08(0x492)])==null?void 0x0:_0x407e5d['format'])??'');return _0x2c3394['field']?(0x0,g[_0x524d08(0x38d)])(_0x524d08(0x2f7),{'className':(0x0,f[_0x524d08(0x373)])(_0x524d08(0x23d),f['borderClassName']),'children':[(0x0,g[_0x524d08(0x23f)])('div',{'className':_0x524d08(0x2da),'children':_0x80f464['t'](_0x524d08(0x38a))}),(0x0,g[_0x524d08(0x38d)])(_0x524d08(0x1c2),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x80f464['t'](_0x524d08(0x41d)),(0x0,g['jsx'])(f[_0x524d08(0x104)],{'value':_0x56105a,'onChange':_0x34b4a1})]}),(0x0,g[_0x524d08(0x38d)])(_0x524d08(0x1c2),{'className':_0x524d08(0x13d),'children':[_0x80f464['t']('bases-dashboard-ui.pivot.summarizeBy'),(0x0,g[_0x524d08(0x23f)])(f[_0x524d08(0x15c)],{'value':String(_0x462433),'options':yn[_0x524d08(0x48a)](_0x57abca=>({'value':String(_0x57abca[_0x524d08(0x351)]),'label':_0x80f464['t'](_0x57abca[_0x524d08(0x1cf)])})),'onChange':_0x4878c4=>{const _0x2aa262=_0x524d08;let _0x97e961=yn[_0x2aa262(0x41e)](_0x36157c=>String(_0x36157c[_0x2aa262(0x351)])===_0x4878c4);_0x97e961&&_0x2cf0f8(_0x97e961[_0x2aa262(0x351)]);}})]}),(0x0,g[_0x524d08(0x38d)])(_0x524d08(0x1c2),{'className':_0x524d08(0x13d),'children':[_0x80f464['t'](_0x524d08(0x251)),(0x0,g['jsx'])(f[_0x524d08(0x104)],{'value':_0x9adfd2,'onChange':_0x11fcf7})]}),(0x0,g[_0x524d08(0x38d)])('div',{'className':_0x524d08(0x290),'children':[(0x0,g['jsx'])(f[_0x524d08(0x3da)],{'onClick':_0x2c3394[_0x524d08(0x3b5)],'children':_0x80f464['t'](_0x524d08(0x4ec))}),(0x0,g[_0x524d08(0x23f)])(f['Button'],{'variant':'primary','disabled':!_0x56105a[_0x524d08(0x342)](),'onClick':()=>_0x2c3394['onCommit'](_0x56105a[_0x524d08(0x342)](),_0x462433,_0x9adfd2),'children':_0x80f464['t']('bases-dashboard-ui.pivot.confirm')})]})]}):null;}function Dn(_0x3b4d26){const _0x5a7a11=_0x30b590;let {config:_0x1379be,commit:_0x217200}=_0x3b4d26,_0x426374=(0x0,m['useDependency'])(a[_0x5a7a11(0x3ea)]),_0x207087=_0x1379be[_0x5a7a11(0x258)][_0x5a7a11(0x45a)],_0x5edaf5=_0x48dfd1=>_0x217200(_0x5804b1=>_0x5804b1[_0x5a7a11(0x3b4)]({..._0x5804b1[_0x5a7a11(0x4c0)](),..._0x48dfd1}));return(0x0,g['jsxs'])('div',{'className':_0x5a7a11(0x27e),'children':[(0x0,g[_0x5a7a11(0x38d)])(_0x5a7a11(0x1c2),{'className':_0x5a7a11(0x2e1),'children':[_0x426374['t'](_0x5a7a11(0x1b9)),(0x0,g['jsx'])(f[_0x5a7a11(0x15c)],{'className':_0x5a7a11(0x24f),'value':String(_0x1379be[_0x5a7a11(0x258)][_0x5a7a11(0x122)]),'options':[{'value':String(y[_0x5a7a11(0x480)][_0x5a7a11(0x3ca)]),'label':_0x426374['t'](_0x5a7a11(0x2be))},{'value':String(y[_0x5a7a11(0x480)][_0x5a7a11(0xdb)]),'label':_0x426374['t'](_0x5a7a11(0x43b))},{'value':String(y[_0x5a7a11(0x480)]['outline']),'label':_0x426374['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x140e49=>{const _0x479873=_0x5a7a11;let _0x3c4c41=[y[_0x479873(0x480)][_0x479873(0x3ca)],y[_0x479873(0x480)][_0x479873(0xdb)],y[_0x479873(0x480)]['outline']]['find'](_0x3ce6f2=>String(_0x3ce6f2)===_0x140e49);_0x3c4c41!==void 0x0&&_0x217200(_0x4b93ac=>_0x4b93ac[_0x479873(0xdd)](_0x3c4c41));}})]}),[{'key':'repeatRowLabels','label':'bases-dashboard-ui.pivot.repeatRowLabels','defaultValue':!0x1},{'key':_0x5a7a11(0x4bd),'label':_0x5a7a11(0x1f9),'defaultValue':!0x1},{'key':_0x5a7a11(0x295),'label':'bases-dashboard-ui.pivot.showRowSubtotal','defaultValue':!0x0},{'key':_0x5a7a11(0x46c),'label':_0x5a7a11(0x232),'defaultValue':!0x0},{'key':_0x5a7a11(0x2e2),'label':_0x5a7a11(0x1e5),'defaultValue':!0x0},{'key':'showColGrandTotal','label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}]['map'](_0x4add6e=>(0x0,g['jsxs'])(_0x5a7a11(0x1c2),{'className':_0x5a7a11(0x3d4),'children':[(0x0,g['jsx'])(f[_0x5a7a11(0x2b9)],{'checked':!!(_0x207087[_0x4add6e['key']]??_0x4add6e[_0x5a7a11(0x114)]),'disabled':_0x4add6e[_0x5a7a11(0x2d3)]==='repeatRowLabels'&&_0x1379be[_0x5a7a11(0x258)]['layout']===y[_0x5a7a11(0x480)][_0x5a7a11(0xdb)],'onChange':_0x5e4ff0=>_0x5edaf5({[_0x4add6e[_0x5a7a11(0x2d3)]]:!!_0x5e4ff0})}),_0x426374['t'](_0x4add6e['label'])]},_0x4add6e[_0x5a7a11(0x2d3)])),_0x1379be[_0x5a7a11(0x258)]['layout']===y[_0x5a7a11(0x480)][_0x5a7a11(0x1a9)]&&(0x0,g[_0x5a7a11(0x38d)])(_0x5a7a11(0x1c2),{'className':_0x5a7a11(0x2e1),'children':[_0x426374['t'](_0x5a7a11(0x329)),(0x0,g[_0x5a7a11(0x23f)])(f[_0x5a7a11(0x15c)],{'className':_0x5a7a11(0x24f),'value':String(_0x207087['rowSubtotalPosition']??y[_0x5a7a11(0x265)][_0x5a7a11(0x291)]),'options':[{'value':String(y[_0x5a7a11(0x265)][_0x5a7a11(0x291)]),'label':_0x426374['t'](_0x5a7a11(0x31b))},{'value':String(y['PivotSubtotalPositionEnum'][_0x5a7a11(0x1c3)]),'label':_0x426374['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x50cbd2=>{const _0x2ddd50=_0x5a7a11;let _0x3177ed=[y[_0x2ddd50(0x265)][_0x2ddd50(0x291)],y['PivotSubtotalPositionEnum']['bottom']][_0x2ddd50(0x41e)](_0x2071ee=>String(_0x2071ee)===_0x50cbd2);_0x3177ed!==void 0x0&&_0x5edaf5({'rowSubtotalPosition':_0x3177ed});}})]}),(0x0,g['jsxs'])(_0x5a7a11(0x1c2),{'className':_0x5a7a11(0x2e1),'children':[_0x426374['t'](_0x5a7a11(0x100)),(0x0,g[_0x5a7a11(0x23f)])(f[_0x5a7a11(0x15c)],{'className':'univer-w-36','value':String(_0x1379be[_0x5a7a11(0x258)][_0x5a7a11(0x2a4)]===y['PivotTableValuePositionEnum'][_0x5a7a11(0x202)]?y[_0x5a7a11(0x22e)][_0x5a7a11(0xf2)]:_0x1379be['pivot'][_0x5a7a11(0x2a4)]),'options':[{'value':String(y[_0x5a7a11(0x22e)]['Column']),'label':_0x426374['t'](_0x5a7a11(0x43d))},{'value':String(y[_0x5a7a11(0x22e)][_0x5a7a11(0x44f)]),'label':_0x426374['t'](_0x5a7a11(0x24b))}],'onChange':_0x1405ec=>{const _0x4b8518=_0x5a7a11;let _0x34481d=[y[_0x4b8518(0x22e)][_0x4b8518(0xf2)],y[_0x4b8518(0x22e)]['Row']][_0x4b8518(0x41e)](_0xf59101=>String(_0xf59101)===_0x1405ec);_0x34481d!==void 0x0&&_0x217200(_0x50a473=>_0x50a473[_0x4b8518(0x11b)](_0x34481d,_0x50a473[_0x4b8518(0x131)]()<0x0?0x0:_0x50a473['getValueIndex']()));}})]}),(0x0,g['jsxs'])('label',{'className':_0x5a7a11(0x2e1),'children':[_0x426374['t']('bases-dashboard-ui.pivot.pageWrap'),(0x0,g['jsx'])(f[_0x5a7a11(0x33a)],{'className':_0x5a7a11(0x4a4),'min':0x1,'max':0x14,'value':_0x207087[_0x5a7a11(0x3d6)]??0x1,'onChange':_0x379006=>{const _0x4606a2=_0x5a7a11;let _0x5140f2=Number(_0x379006);Number[_0x4606a2(0x467)](_0x5140f2)&&_0x5140f2>=0x1&&_0x5edaf5({'pageWrap':_0x5140f2});}})]}),(0x0,g[_0x5a7a11(0x38d)])('label',{'className':_0x5a7a11(0x2e1),'children':[_0x426374['t'](_0x5a7a11(0x3c2)),(0x0,g['jsx'])(f['Select'],{'className':_0x5a7a11(0x24f),'value':String(_0x207087[_0x5a7a11(0x4df)]??!0x1),'options':[{'value':'false','label':_0x426374['t'](_0x5a7a11(0x287))},{'value':_0x5a7a11(0x445),'label':_0x426374['t'](_0x5a7a11(0x3f9))}],'onChange':_0x57fa32=>_0x5edaf5({'pageOverThenDown':_0x57fa32==='true'})})]})]});}function On(_0x5d9bac,_0x1a0d15,_0x57604b,_0x2b9415){const _0x5b6ccf=_0x30b590;let _0x3dddf4=_0x5d9bac[_0x5b6ccf(0x374)](_0x1a0d15)[_0x5b6ccf(0x41e)](_0x6b5d96=>_0x5d9bac[_0x5b6ccf(0x40d)](_0x6b5d96[_0x5b6ccf(0x3f6)]())['area']!==y[_0x5b6ccf(0xd8)][_0x5b6ccf(0x19b)]);_0x57604b!==y[_0x5b6ccf(0xd8)]['Value']&&_0x3dddf4?_0x5d9bac[_0x5b6ccf(0x3ad)](_0x3dddf4[_0x5b6ccf(0x3f6)](),_0x57604b,_0x2b9415):_0x5d9bac[_0x5b6ccf(0x396)](_0x1a0d15,_0x57604b,_0x2b9415);}function kn(_0x362afe,_0x1971e0,_0x464ba2,_0xc13452){const _0x3ac469=_0x30b590;return _0x1971e0===y['PivotDataFieldDataTypeEnum'][_0x3ac469(0x3b9)]?_0xc13452:_0x1971e0===y[_0x3ac469(0x498)][_0x3ac469(0x4d1)]&&_0x464ba2?a[_0x3ac469(0x4e4)][_0x3ac469(0x462)](_0x464ba2,Number(_0x362afe)):_0x362afe;}function An(_0xb4d48){const _0x17ed8f=_0x30b590;return _0xb4d48[_0x17ed8f(0x11c)]===a['BaseFieldType'][_0x17ed8f(0x48b)]||_0xb4d48[_0x17ed8f(0x11c)]===a[_0x17ed8f(0x1d5)]['Currency']||_0xb4d48[_0x17ed8f(0x11c)]===a['BaseFieldType'][_0x17ed8f(0x1a6)]||_0xb4d48['type']===a[_0x17ed8f(0x1d5)][_0x17ed8f(0x234)];}function jn(_0xd6e6e4){const _0x50eac3=_0x30b590;switch(_0xd6e6e4){case y[_0x50eac3(0xd8)][_0x50eac3(0x44f)]:return _0x50eac3(0x194);case y[_0x50eac3(0xd8)][_0x50eac3(0xf2)]:return _0x50eac3(0x25a);case y[_0x50eac3(0xd8)][_0x50eac3(0x19b)]:return _0x50eac3(0x1b2);default:return _0x50eac3(0x10c);}}function Mn({config:_0x44dfdb,onChange:_0x2fb111,runtime:_0x4eee5c,table:_0x5d4f5c}){const _0x2973b5=_0x30b590;let _0x12e334=(0x0,m[_0x2973b5(0x155)])(a[_0x2973b5(0x3ea)]),[_0x349fe8,_0x502b9c]=(0x0,h[_0x2973b5(0x40a)])(_0x2973b5(0xd9));return(0x0,g[_0x2973b5(0x38d)])(_0x2973b5(0x4c9),{'className':_0x2973b5(0x236),'children':[(0x0,g[_0x2973b5(0x23f)])(n[_0x2973b5(0x22f)],{'ariaLabel':_0x12e334['t'](_0x2973b5(0x2df)),'className':_0x2973b5(0x4e0),'items':[{'label':_0x12e334['t'](_0x2973b5(0x478)),'panelId':'base-pivot-chart-configuration','value':'chart'},{'label':_0x12e334['t'](_0x2973b5(0x46b)),'panelId':_0x2973b5(0x3d8),'value':_0x2973b5(0x258)}],'value':_0x349fe8,'variant':'segmented','onChange':_0x502b9c}),(0x0,g[_0x2973b5(0x23f)])(_0x2973b5(0x460),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','children':_0x349fe8===_0x2973b5(0xd9)?_0x4eee5c&&(0x0,g[_0x2973b5(0x23f)])(Dt,{'config':_0x44dfdb,'runtime':_0x4eee5c,'tableName':_0x5d4f5c['name'],'onChange':_0x2fb111}):(0x0,g[_0x2973b5(0x23f)])(bn,{'config':_0x44dfdb,'table':_0x5d4f5c,'onChange':_0x2fb111})})]});}function Nn({tableId:_0x2e1a8b,unitId:_0x1ea872,viewId:_0x5258f9}){const _0x1ae9f6=_0x30b590;let _0xc068e6=(0x0,m[_0x1ae9f6(0x155)])(a[_0x1ae9f6(0x279)]),_0x1ec357=(0x0,m[_0x1ae9f6(0x155)])(a[_0x1ae9f6(0x245)]),_0x247d08=(0x0,m[_0x1ae9f6(0x155)])(a[_0x1ae9f6(0x325)]),_0x1d56c8=(0x0,m[_0x1ae9f6(0x155)])(a[_0x1ae9f6(0x3ea)]),_0x502b53=(0x0,m[_0x1ae9f6(0x155)])(e[_0x1ae9f6(0x4b6)]),[_0x184610,_0x3e3c91]=(0x0,h['useState'])(null),[_0x217cf5,_0x39350c]=(0x0,h[_0x1ae9f6(0x40a)])(null),_0x1affb3=(0x0,h[_0x1ae9f6(0x414)])(_0x1ae9f6(0x286)+(0x0,a[_0x1ae9f6(0x3f8)])(0x8)),[_0x1f074d,_0x155ddf]=(0x0,h['useState'])(!0x1),_0x307e7b=_0x1ec357[_0x1ae9f6(0x3e7)](_0x1ea872,a[_0x1ae9f6(0x3d5)][_0x1ae9f6(0x1a2)]),_0x50842e=_0x307e7b==null?void 0x0:_0x307e7b[_0x1ae9f6(0x38b)]()[_0x1ae9f6(0x4fe)][_0x2e1a8b],_0x2f695d=_0x50842e==null?void 0x0:_0x50842e[_0x1ae9f6(0x371)][_0x5258f9],_0x3b8deb=Pn(_0x2f695d),_0x45767d=T(_0x1ea872,_0x2e1a8b,_0x5258f9);if((0x0,h['useEffect'])(()=>{const _0x585b29=_0x1ae9f6;if(!_0x3b8deb)return;let _0x2b8574=_0x1affb3['current'];return _0x502b53[_0x585b29(0x418)](_0x2b8574,{'unitId':_0x1ea872,'tableId':_0x2e1a8b,'viewId':_0x5258f9,'filters':[]}),()=>{const _0x6fdce2=_0x585b29;_0x502b53[_0x6fdce2(0x275)](_0x1ea872,_0x2b8574);};},[_0x3b8deb,_0x502b53,_0x2e1a8b,_0x1ea872,_0x5258f9]),(0x0,h[_0x1ae9f6(0x3dd)])(()=>{const _0x3f3d15=_0x1ae9f6;if(!Pn(_0x2f695d))return;let _0x19a00d=!0x0,_0x2a1c21={'unitId':_0x1ea872,'tableId':_0x2e1a8b,'viewId':_0x5258f9,'filters':[_0x2f695d['filter']??null]};return _0x502b53[_0x3f3d15(0x40f)](_0x1ea872,_0x1affb3['current'],_0x2a1c21)[_0x3f3d15(0xeb)](_0x5bacb2=>{const _0x452e22=_0x3f3d15;_0x19a00d&&_0x5bacb2&&(_0x3e3c91(_0x5bacb2),_0x39350c(_0x502b53[_0x452e22(0x224)](_0x1ea872,_0x1affb3[_0x452e22(0x216)])??null),_0x155ddf(!0x1));})[_0x3f3d15(0x29c)](_0x3bc312=>{const _0x140e92=_0x3f3d15;_0x247d08[_0x140e92(0x305)]('[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x3bc312),_0x19a00d&&(_0x3e3c91(null),_0x155ddf(!0x0));}),()=>{_0x19a00d=!0x1;};},[_0x247d08,_0x502b53,_0x2e1a8b,_0x1ea872,_0x2f695d,_0x5258f9]),!_0x50842e||!Pn(_0x2f695d))return null;let _0x1a7221=_0x502b53[_0x1ae9f6(0x224)](_0x1ea872,_0x1affb3['current'])===_0x217cf5?_0x217cf5:null,_0x46bf6c=_0x184610?(0x0,g[_0x1ae9f6(0x38d)])(_0x1ae9f6(0x460),{'className':_0x1ae9f6(0x397),'style':{'gridTemplateRows':_0x2f695d['config']['displayMode']==='chart-and-table'?_0x1ae9f6(0x27d):_0x1ae9f6(0x135)},'children':[_0x2f695d['config'][_0x1ae9f6(0x10e)]!==_0x1ae9f6(0x4da)&&_0x1a7221&&(0x0,g[_0x1ae9f6(0x23f)])(_0x1ae9f6(0x460),{'className':_0x1ae9f6(0x22c),'children':(0x0,g[_0x1ae9f6(0x23f)])(re,{'isRowDirection':(0x0,e[_0x1ae9f6(0xe7)])(_0x2f695d['config'][_0x1ae9f6(0xd9)]['orient']),'runtime':_0x1a7221})}),_0x2f695d[_0x1ae9f6(0x1ca)]['displayMode']!==_0x1ae9f6(0xd9)&&(0x0,g[_0x1ae9f6(0x23f)])(_0x1ae9f6(0x460),{'className':'univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','children':(0x0,g[_0x1ae9f6(0x23f)])(Ge,{'pivot':_0x2f695d[_0x1ae9f6(0x1ca)][_0x1ae9f6(0x258)],'view':_0x184610[_0x1ae9f6(0x1b4)]})})]}):(0x0,g[_0x1ae9f6(0x23f)])(_0x1ae9f6(0x460),{'className':_0x1ae9f6(0x378),'children':_0x1f074d?_0x1d56c8['t'](_0x1ae9f6(0x4d9)):_0x1d56c8['t']('bases-dashboard-ui.pivot.calculating')});return(0x0,g[_0x1ae9f6(0x38d)])(_0x1ae9f6(0x460),{'className':_0x1ae9f6(0x167),'children':[(0x0,g['jsx'])(_0x1ae9f6(0x460),{'className':_0x1ae9f6(0x3df),'children':_0x46bf6c}),_0x45767d&&(0x0,g[_0x1ae9f6(0x23f)])(Mn,{'config':_0x2f695d['config'],'runtime':_0x1a7221,'table':_0x50842e,'onChange':_0x171dce=>{const _0x885d38=_0x1ae9f6;_0xc068e6[_0x885d38(0x387)](e[_0x885d38(0x2af)]['id'],{'unitId':_0x1ea872,'tableId':_0x2e1a8b,'viewId':_0x5258f9,'patch':_0x171dce})['catch'](_0x2f66a7=>_0x247d08[_0x885d38(0x305)](_0x885d38(0x402),_0x2f66a7));}})]});}function Pn(_0x297c30){const _0x44dc84=_0x30b590;return(_0x297c30==null?void 0x0:_0x297c30[_0x44dc84(0x11c)])===a['BaseViewType'][_0x44dc84(0x2d0)]&&typeof _0x297c30['config']==_0x44dc84(0x368)&&_0x297c30['config']!==null&&'pivot'in _0x297c30[_0x44dc84(0x1ca)]&&_0x44dc84(0xd9)in _0x297c30['config']&&_0x44dc84(0x10e)in _0x297c30[_0x44dc84(0x1ca)];}let Fn=class extends a[_0x30b590(0x35a)]{constructor(_0xda30ed,_0x4ac64b,_0x5bf9f1,_0x23a471,_0xc17b30,_0x549c0f){const _0x2685ef=_0x30b590;super(),this[_0x2685ef(0x10b)](_0x4ac64b[_0x2685ef(0x18b)]({'type':a[_0x2685ef(0x4a1)][_0x2685ef(0x2d0)],'renderMode':_0x2685ef(0x369),'icon':s[_0x2685ef(0x14b)],'component':Nn,'menu':{get 'label'(){return _0x549c0f['t']('bases-dashboard-ui.pivot.name');},get 'description'(){const _0x72633c=_0x2685ef;return _0x549c0f['t'](_0x72633c(0x2dc));},get 'defaultName'(){const _0x22a493=_0x2685ef;return _0x549c0f['t'](_0x22a493(0x188));}}})),this[_0x2685ef(0x10b)](_0xda30ed[_0x2685ef(0x18b)](In(_0x5bf9f1,_0x23a471,_0xc17b30,_0x549c0f)));}};Fn=P([N(0x0,t[_0x30b590(0x47e)]),N(0x1,t[_0x30b590(0x313)]),N(0x2,(0x0,a['Inject'])(e[_0x30b590(0x3a7)])),N(0x3,a['ICommandService']),N(0x4,a[_0x30b590(0x164)]),N(0x5,(0x0,a[_0x30b590(0x123)])(a[_0x30b590(0x3ea)]))],Fn);function In(_0x27382d,_0x5bd039,_0xd6d49c,_0x242567){const _0x1a50fb=_0x30b590;return{'change$':(0x0,c[_0x1a50fb(0x17d)])(_0x27382d[_0x1a50fb(0x435)],_0xd6d49c[_0x1a50fb(0x11e)]),'component':ln,get 'labels'(){const _0x3d94af=_0x1a50fb;return{'add':_0x242567['t'](_0x3d94af(0x347)),'configure':_0x3ce6c1=>_0x242567['t'](_0x3d94af(0x150),_0x3ce6c1),'delete':_0x242567['t']('bases-dashboard-ui.dashboard.delete'),'new':_0x242567['t'](_0x3d94af(0x35e)),'rename':_0x242567['t'](_0x3d94af(0x136)),'search':_0x242567['t'](_0x3d94af(0x459)),'section':_0x242567['t']('bases-dashboard-ui.dashboard.section')};},'getItems':_0x2f2426=>{const _0x217367=_0x1a50fb;let _0x53bc7a=_0x27382d['getResource'](_0x2f2426);return _0x53bc7a[_0x217367(0x453)][_0x217367(0x4e3)](_0x4384f2=>{const _0x1b7e8f=_0x217367;let _0x167e02=_0x53bc7a['dashboards'][_0x4384f2];return _0x167e02?[{'id':_0x167e02['id'],'name':_0x167e02[_0x1b7e8f(0x451)],'readonly':!(0x0,e[_0x1b7e8f(0x3ae)])(_0xd6d49c,_0x2f2426,_0x167e02['id'])}]:[];});},'create':async _0x5ed0d6=>{const _0x286347=_0x1a50fb;let _0x2f249f=_0x27382d[_0x286347(0x49a)](_0x5ed0d6),_0x384b19=_0x286347(0x49e)+(0x0,a['generateRandomId'])(0x8),_0x21973f=Ln(_0x2f249f[_0x286347(0x453)][_0x286347(0x4e3)](_0x3ef555=>{const _0x554da9=_0x286347;let _0x5c3715=_0x2f249f[_0x554da9(0x152)][_0x3ef555];return _0x5c3715?[_0x5c3715[_0x554da9(0x451)]]:[];}),_0x738981=>_0x242567['t']('bases-dashboard-ui.dashboard.defaultName',String(_0x738981)));return await _0x5bd039['executeCommand'](e[_0x286347(0x48e)]['id'],{'unitId':_0x5ed0d6,'dashboard':{'id':_0x384b19,'name':_0x21973f,'widgetOrder':[],'widgets':{}}})?_0x384b19:null;},'rename':async(_0xc22fca,_0x3de666,_0x440ea6)=>{const _0x255552=_0x1a50fb;let _0x16a945=_0x27382d[_0x255552(0x499)](_0xc22fca,_0x3de666);return!!(_0x16a945&&await _0x5bd039[_0x255552(0x387)](e[_0x255552(0x180)]['id'],{'unitId':_0xc22fca,'dashboard':{..._0x16a945,'name':_0x440ea6}}));},'remove':(_0x4d6985,_0x286f53)=>_0x5bd039[_0x1a50fb(0x387)](e[_0x1a50fb(0x1d4)]['id'],{'unitId':_0x4d6985,'dashboardId':_0x286f53})};}function Ln(_0x13c6c3,_0xc0601b){const _0x43df45=_0x30b590;let _0x5a6a0b=new Set(_0x13c6c3),_0x558cfe=_0x5a6a0b[_0x43df45(0x39c)]+0x1,_0x443fb0=_0xc0601b(_0x558cfe);for(;_0x5a6a0b[_0x43df45(0x3a9)](_0x443fb0);)_0x558cfe+=0x1,_0x443fb0=_0xc0601b(_0x558cfe);return _0x443fb0;}let $=class extends a[_0x30b590(0x206)]{constructor(_0x78c1d1=C,_0x4ae454,_0x143793){const _0x3e915e=_0x30b590;super(),this[_0x3e915e(0x2bb)]=_0x78c1d1,this[_0x3e915e(0x477)]=_0x4ae454,this[_0x3e915e(0x3dc)]=_0x143793;let {..._0x59bb5e}=(0x0,a[_0x3e915e(0x17d)])({},C,this[_0x3e915e(0x2bb)]);this[_0x3e915e(0x3dc)]['setConfig'](S,_0x59bb5e);}[_0x30b590(0x235)](){const _0x319c0a=_0x30b590;this[_0x319c0a(0x477)][_0x319c0a(0x4c5)]([F]),this['_injector']['add']([W]),this[_0x319c0a(0x477)][_0x319c0a(0x4c5)]([Fn]);}[_0x30b590(0x28c)](){const _0x170c6e=_0x30b590;(0x0,a[_0x170c6e(0x25e)])(this[_0x170c6e(0x477)],[[F],[W],[Fn]]);}};B($,'type',a[_0x30b590(0x3d5)][_0x30b590(0x1a2)]),B($,_0x30b590(0x173),_0x30b590(0x1bf)),B($,_0x30b590(0x15a),b),B($,_0x30b590(0x406),x),$=P([(0x0,a[_0x30b590(0x3e9)])(r[_0x30b590(0x1e7)],e[_0x30b590(0x18c)],t[_0x30b590(0xed)],n['UniverChartUIPlugin'],i[_0x30b590(0x35c)],o['UniverDocsUIPlugin']),N(0x1,(0x0,a[_0x30b590(0x123)])(a[_0x30b590(0x495)])),N(0x2,a[_0x30b590(0x242)])],$),Object['defineProperty'](exports,'UniverBaseDashboardMobileUIPlugin',{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x30b590(0x1a7)](exports,'UniverBaseDashboardUIPlugin',{'enumerable':!0x0,'get':function(){return $;}});
|