@univerjs-pro/bases-dashboard-ui 1.3.1 → 1.5.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.
Files changed (107) hide show
  1. package/README.md +13 -9
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ar-SA.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/cs-CZ.js +1 -1
  6. package/lib/cjs/locale/de-DE.js +1 -1
  7. package/lib/cjs/locale/en-US.js +1 -1
  8. package/lib/cjs/locale/es-ES.js +1 -1
  9. package/lib/cjs/locale/fa-IR.js +1 -1
  10. package/lib/cjs/locale/fr-FR.js +1 -1
  11. package/lib/cjs/locale/id-ID.js +1 -1
  12. package/lib/cjs/locale/it-IT.js +1 -1
  13. package/lib/cjs/locale/ja-JP.js +1 -1
  14. package/lib/cjs/locale/ko-KR.js +1 -1
  15. package/lib/cjs/locale/nl-NL.js +1 -1
  16. package/lib/cjs/locale/pl-PL.js +1 -1
  17. package/lib/cjs/locale/pt-BR.js +1 -1
  18. package/lib/cjs/locale/ru-RU.js +1 -1
  19. package/lib/cjs/locale/sk-SK.js +1 -1
  20. package/lib/cjs/locale/th-TH.js +1 -1
  21. package/lib/cjs/locale/tr-TR.js +1 -1
  22. package/lib/cjs/locale/uk-UA.js +1 -1
  23. package/lib/cjs/locale/vi-VN.js +1 -1
  24. package/lib/cjs/locale/zh-CN.js +1 -1
  25. package/lib/cjs/locale/zh-HK.js +1 -1
  26. package/lib/cjs/locale/zh-TW.js +1 -1
  27. package/lib/es/index.js +1 -1
  28. package/lib/es/locale/ar-SA.js +1 -1
  29. package/lib/es/locale/ca-ES.js +1 -1
  30. package/lib/es/locale/cs-CZ.js +1 -1
  31. package/lib/es/locale/de-DE.js +1 -1
  32. package/lib/es/locale/en-US.js +1 -1
  33. package/lib/es/locale/es-ES.js +1 -1
  34. package/lib/es/locale/fa-IR.js +1 -1
  35. package/lib/es/locale/fr-FR.js +1 -1
  36. package/lib/es/locale/id-ID.js +1 -1
  37. package/lib/es/locale/it-IT.js +1 -1
  38. package/lib/es/locale/ja-JP.js +1 -1
  39. package/lib/es/locale/ko-KR.js +1 -1
  40. package/lib/es/locale/nl-NL.js +1 -1
  41. package/lib/es/locale/pl-PL.js +1 -1
  42. package/lib/es/locale/pt-BR.js +1 -1
  43. package/lib/es/locale/ru-RU.js +1 -1
  44. package/lib/es/locale/sk-SK.js +1 -1
  45. package/lib/es/locale/th-TH.js +1 -1
  46. package/lib/es/locale/tr-TR.js +1 -1
  47. package/lib/es/locale/uk-UA.js +1 -1
  48. package/lib/es/locale/vi-VN.js +1 -1
  49. package/lib/es/locale/zh-CN.js +1 -1
  50. package/lib/es/locale/zh-HK.js +1 -1
  51. package/lib/es/locale/zh-TW.js +1 -1
  52. package/lib/index.js +1 -1
  53. package/lib/locale/ar-SA.js +1 -1
  54. package/lib/locale/ca-ES.js +1 -1
  55. package/lib/locale/cs-CZ.js +1 -1
  56. package/lib/locale/de-DE.js +1 -1
  57. package/lib/locale/en-US.js +1 -1
  58. package/lib/locale/es-ES.js +1 -1
  59. package/lib/locale/fa-IR.js +1 -1
  60. package/lib/locale/fr-FR.js +1 -1
  61. package/lib/locale/id-ID.js +1 -1
  62. package/lib/locale/it-IT.js +1 -1
  63. package/lib/locale/ja-JP.js +1 -1
  64. package/lib/locale/ko-KR.js +1 -1
  65. package/lib/locale/nl-NL.js +1 -1
  66. package/lib/locale/pl-PL.js +1 -1
  67. package/lib/locale/pt-BR.js +1 -1
  68. package/lib/locale/ru-RU.js +1 -1
  69. package/lib/locale/sk-SK.js +1 -1
  70. package/lib/locale/th-TH.js +1 -1
  71. package/lib/locale/tr-TR.js +1 -1
  72. package/lib/locale/uk-UA.js +1 -1
  73. package/lib/locale/vi-VN.js +1 -1
  74. package/lib/locale/zh-CN.js +1 -1
  75. package/lib/locale/zh-HK.js +1 -1
  76. package/lib/locale/zh-TW.js +1 -1
  77. package/lib/types/components/BasePivotChartEditor.d.ts +9 -9
  78. package/lib/types/components/mobile/BasePivotChartEditor.d.ts +9 -9
  79. package/lib/types/locale/en-US.d.ts +2 -0
  80. package/lib/types/utils/dashboard-formula-shape.d.ts +4 -4
  81. package/lib/types/utils/dashboard-text.d.ts +2 -2
  82. package/lib/umd/index.js +1 -1
  83. package/lib/umd/locale/ar-SA.js +1 -1
  84. package/lib/umd/locale/ca-ES.js +1 -1
  85. package/lib/umd/locale/cs-CZ.js +1 -1
  86. package/lib/umd/locale/de-DE.js +1 -1
  87. package/lib/umd/locale/en-US.js +1 -1
  88. package/lib/umd/locale/es-ES.js +1 -1
  89. package/lib/umd/locale/fa-IR.js +1 -1
  90. package/lib/umd/locale/fr-FR.js +1 -1
  91. package/lib/umd/locale/id-ID.js +1 -1
  92. package/lib/umd/locale/it-IT.js +1 -1
  93. package/lib/umd/locale/ja-JP.js +1 -1
  94. package/lib/umd/locale/ko-KR.js +1 -1
  95. package/lib/umd/locale/nl-NL.js +1 -1
  96. package/lib/umd/locale/pl-PL.js +1 -1
  97. package/lib/umd/locale/pt-BR.js +1 -1
  98. package/lib/umd/locale/ru-RU.js +1 -1
  99. package/lib/umd/locale/sk-SK.js +1 -1
  100. package/lib/umd/locale/th-TH.js +1 -1
  101. package/lib/umd/locale/tr-TR.js +1 -1
  102. package/lib/umd/locale/uk-UA.js +1 -1
  103. package/lib/umd/locale/vi-VN.js +1 -1
  104. package/lib/umd/locale/zh-CN.js +1 -1
  105. package/lib/umd/locale/zh-HK.js +1 -1
  106. package/lib/umd/locale/zh-TW.js +1 -1
  107. package/package.json +23 -23
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x10fa58=_0x16b2;(function(_0x5a3e55,_0x5d887f){const _0x48b2f6=_0x16b2,_0x2a64d7=_0x5a3e55();while(!![]){try{const _0x2b81a6=parseInt(_0x48b2f6(0x3b5))/0x1*(parseInt(_0x48b2f6(0x4d3))/0x2)+parseInt(_0x48b2f6(0x264))/0x3+-parseInt(_0x48b2f6(0x496))/0x4+-parseInt(_0x48b2f6(0x2f5))/0x5*(-parseInt(_0x48b2f6(0x463))/0x6)+-parseInt(_0x48b2f6(0x2ed))/0x7*(-parseInt(_0x48b2f6(0x208))/0x8)+-parseInt(_0x48b2f6(0x1ff))/0x9+-parseInt(_0x48b2f6(0x242))/0xa;if(_0x2b81a6===_0x5d887f)break;else _0x2a64d7['push'](_0x2a64d7['shift']());}catch(_0x43606e){_0x2a64d7['push'](_0x2a64d7['shift']());}}}(_0x14db,0x43104),Object[_0x10fa58(0x419)](exports,Symbol[_0x10fa58(0x1d0)],{'value':_0x10fa58(0x3f5)}));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='@univerjs-pro/bases-dashboard-ui',x=_0x10fa58(0x1e7);const S=_0x10fa58(0x43a),C={};function w(_0x9b475a,_0x5ddc05){const _0x5e28eb=_0x10fa58;let _0x153645=(0x0,m[_0x5e28eb(0x162)])(a[_0x5e28eb(0x492)]),_0x387765=(0x0,e['canEditBaseDashboard'])(_0x153645,_0x9b475a,_0x5ddc05);return(0x0,m[_0x5e28eb(0x3e1)])(()=>_0x153645[_0x5e28eb(0x142)][_0x5e28eb(0x417)]((0x0,c['map'])(()=>(0x0,e[_0x5e28eb(0x1ae)])(_0x153645,_0x9b475a,_0x5ddc05))),_0x387765,!0x1,[_0x5ddc05,_0x153645,_0x9b475a]);}function T(_0x189bc8,_0x214007,_0x4a03b7){const _0x3028ae=_0x10fa58;let _0x9558c=(0x0,m[_0x3028ae(0x162)])(a[_0x3028ae(0x492)]),_0x225ccc=(0x0,e[_0x3028ae(0xe8)])(_0x9558c,_0x189bc8,_0x214007,_0x4a03b7);return(0x0,m['useObservable'])(()=>_0x9558c[_0x3028ae(0x142)][_0x3028ae(0x417)]((0x0,c['map'])(()=>(0x0,e['canEditBasePivotView'])(_0x9558c,_0x189bc8,_0x214007,_0x4a03b7))),_0x225ccc,!0x1,[_0x9558c,_0x214007,_0x189bc8,_0x4a03b7]);}function E(_0x11fff2,_0x2e8636=_0x10fa58(0x2d7)){const _0x14658e=_0x10fa58;return{'backgroundImage':_0x14658e(0x1c3)+JSON['stringify'](_0x11fff2)+')','backgroundPosition':_0x2e8636==='repeat'?_0x14658e(0x286):_0x14658e(0x3ca),'backgroundRepeat':_0x2e8636==='repeat'?_0x14658e(0x475):_0x14658e(0x211),'backgroundSize':_0x2e8636===_0x14658e(0x2d7)?'cover':_0x14658e(0x21a)};}const D={'alignment':_0x10fa58(0x22a),'currency':_0x10fa58(0x4c9),'decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':_0x10fa58(0x21a),'numberFormat':_0x10fa58(0x357)},O={'CNY':'¥','EUR':'€','USD':'$'};function k(_0x2fe44f){const _0x47c819=_0x10fa58;var _0x21e3f4;let _0x54f8b0=te(((_0x21e3f4=_0x2fe44f[_0x47c819(0x471)][_0x47c819(0x2d4)])==null||(_0x21e3f4=_0x21e3f4[_0x47c819(0x217)])==null?void 0x0:_0x21e3f4['pattern'])??'');return{...D,..._0x54f8b0,..._0x2fe44f[_0x47c819(0xd3)]};}function A(_0x485b39,_0x4ffd90){const _0x36cd37=_0x10fa58;let _0x11ad77={..._0x485b39[_0x36cd37(0xd3)],..._0x4ffd90},_0x26a168=k({..._0x485b39,'appearance':_0x11ad77}),_0x1d05de=_0x485b39['shapeData'][_0x36cd37(0x2d4)]??{'formula':''};return{..._0x485b39,'appearance':_0x11ad77,'shapeData':{..._0x485b39[_0x36cd37(0x471)],'formulaBinding':{..._0x1d05de,'numberFormat':{'pattern':j(_0x26a168[_0x36cd37(0x217)],_0x26a168[_0x36cd37(0x387)],_0x26a168[_0x36cd37(0x328)])}}}};}function j(_0x2d6b9e,_0x2950ab,_0x59c8ac){const _0x12158b=_0x10fa58;let _0x169b87=Math[_0x12158b(0x41b)](0x0,Math[_0x12158b(0x2ce)](0x8,Math['round'](_0x2950ab))),_0x2cb3bb=_0x169b87?'.'+'0'['repeat'](_0x169b87):'';switch(_0x2d6b9e){case'number':return'0'+_0x2cb3bb;case'percent':return'0'+_0x2cb3bb+'%';case _0x12158b(0x328):return(O[_0x59c8ac]??_0x59c8ac)+'#,##0'+_0x2cb3bb;case'grouped':return _0x12158b(0x3b1)+_0x2cb3bb;case _0x12158b(0x135):case _0x12158b(0x357):return _0x12158b(0x314);}}function ee(_0x5d1a70,_0x49224f,_0x3dfcec){const _0x444b9e=_0x10fa58;return _0x3dfcec[_0x444b9e(0x217)]!==_0x444b9e(0x135)||typeof _0x49224f!=_0x444b9e(0x25c)||!Number[_0x444b9e(0x355)](_0x49224f)?_0x5d1a70:new Intl['NumberFormat'](void 0x0,{'notation':_0x444b9e(0x135),'minimumFractionDigits':_0x3dfcec['decimalPlaces']??0x0,'maximumFractionDigits':_0x3dfcec[_0x444b9e(0x387)]??0x0})[_0x444b9e(0x2ee)](_0x49224f);}function te(_0x45abb9){const _0x234609=_0x10fa58;var _0xd7a896,_0x22036c;if(!_0x45abb9||_0x45abb9===_0x234609(0x314))return{};let _0x16d258=_0x45abb9['match'](/\.([0#]+)/),_0x569b42=(_0x16d258==null||(_0xd7a896=_0x16d258[0x1])==null?void 0x0:_0xd7a896['length'])??0x0;if(_0x45abb9['includes']('%'))return{'decimalPlaces':_0x569b42,'numberFormat':_0x234609(0x234)};let _0xeb7980=(_0x22036c=Object['entries'](O)['find'](([,_0x57fae8])=>_0x45abb9[_0x234609(0x206)](_0x57fae8)))==null?void 0x0:_0x22036c[0x0];return _0xeb7980?{'currency':_0xeb7980,'decimalPlaces':_0x569b42,'numberFormat':_0x234609(0x328)}:{'decimalPlaces':_0x569b42,'numberFormat':_0x45abb9[_0x234609(0x206)](',')?_0x234609(0x395):_0x234609(0x25c)};}const ne={'center':_0x10fa58(0x3ca),'left':_0x10fa58(0x22f),'right':'flex-end'};function M({dashboardId:_0x180d74,unitId:_0x16fb04,widget:_0xdba469}){const _0x5043dd=_0x10fa58;var _0x31994e,_0x39b5a2,_0x30ce98,_0x1ff8a9,_0x2796e4,_0x12f0b6,_0xa911b6,_0x3007ea,_0x90521a;let _0x294865=(0x0,m['useDependency'])(i[_0x5043dd(0x4dd)]),_0x36ee41=(0x0,m[_0x5043dd(0x162)])(a[_0x5043dd(0x403)]),_0x447ac3=(0x0,m[_0x5043dd(0x162)])(a[_0x5043dd(0x17c)]),_0x3366ff=(0x0,h[_0x5043dd(0x1d9)])(()=>({'hostType':a['UniverInstanceType']['UNIVER_BASE'],'unitId':_0x16fb04,'subUnitId':_0x180d74,'shapeId':_0xdba469['id']}),[_0x180d74,_0x16fb04,_0xdba469['id']]),[_0x36e402,_0xd23243]=(0x0,h[_0x5043dd(0x1cc)])(()=>_0x294865['getPresentation'](_0x3366ff)),[_0x1e3c5c,_0xea6341]=(0x0,h[_0x5043dd(0x1cc)])(()=>{const _0x2bfd50=_0x5043dd;var _0x38b186;return(_0x38b186=_0x294865[_0x2bfd50(0x1f2)](_0x3366ff))==null?void 0x0:_0x38b186[_0x2bfd50(0x16c)];}),[_0x4ed120,_0x228252]=(0x0,h[_0x5043dd(0x1cc)])(),_0x300f04=(0x0,h[_0x5043dd(0xfd)])(null),_0x2bdc19=(0x0,h[_0x5043dd(0xfd)])(null),_0x38cac2=k(_0xdba469);(0x0,h[_0x5043dd(0x1a9)])(()=>{const _0x11eca0=_0x5043dd;let _0x4334dc=_0x294865[_0x11eca0(0x3d9)][_0x11eca0(0x270)](_0x358a4d=>{const _0x2a97ec=_0x11eca0;_0x358a4d['unitId']===_0x16fb04&&_0x358a4d[_0x2a97ec(0x45e)]===_0x180d74&&_0x358a4d[_0x2a97ec(0x1c0)]===_0xdba469['id']&&(_0xd23243(_0x358a4d[_0x2a97ec(0x3bc)]),_0xea6341(_0x358a4d[_0x2a97ec(0x1cb)][_0x2a97ec(0x16c)]));});return()=>_0x4334dc[_0x11eca0(0x39b)]();},[_0x180d74,_0x294865,_0x3366ff,_0x16fb04,_0xdba469['id']]),(0x0,h[_0x5043dd(0x1a9)])(()=>{const _0x1a79a8=_0x5043dd;let _0x514024=_0x38cac2[_0x1a79a8(0x3ae)];if(!_0x514024||_0x514024[_0x1a79a8(0x248)]!==a[_0x1a79a8(0x24d)][_0x1a79a8(0x37d)])return;let _0x26e8a7=_0x36ee41[_0x1a79a8(0x14b)](_0x514024['source'],_0x514024[_0x1a79a8(0x248)]);if(_0x26e8a7!=null&&_0x26e8a7[_0x1a79a8(0x122)])return;let _0xbaa76e=!0x0;return _0x36ee41[_0x1a79a8(0x128)](_0x514024[_0x1a79a8(0x133)])[_0x1a79a8(0x46e)](_0x49dd27=>{const _0x1e6621=_0x1a79a8;_0xbaa76e&&_0x228252({'source':_0x514024[_0x1e6621(0x133)],'value':_0x49dd27});})[_0x1a79a8(0x1f0)](()=>void 0x0),()=>{_0xbaa76e=!0x1;};},[_0x38cac2[_0x5043dd(0x3ae)],_0x36ee41]);let _0x3f9574=((_0x31994e=_0x38cac2[_0x5043dd(0x3ae)])==null?void 0x0:_0x31994e[_0x5043dd(0x248)])===a[_0x5043dd(0x24d)][_0x5043dd(0x37d)]?((_0x39b5a2=_0x36ee41['getImageSourceCache'](_0x38cac2[_0x5043dd(0x3ae)][_0x5043dd(0x133)],_0x38cac2[_0x5043dd(0x3ae)][_0x5043dd(0x248)]))==null?void 0x0:_0x39b5a2[_0x5043dd(0x122)])??((_0x4ed120==null?void 0x0:_0x4ed120[_0x5043dd(0x133)])===_0x38cac2[_0x5043dd(0x3ae)][_0x5043dd(0x133)]?_0x4ed120[_0x5043dd(0x16c)]:''):((_0x30ce98=_0x38cac2[_0x5043dd(0x3ae)])==null?void 0x0:_0x30ce98[_0x5043dd(0x133)])??'',_0x294a68=_0xdba469[_0x5043dd(0x471)]['shapeText'],_0x95a2df=_0x294a68&&_0x5043dd(0x288)in _0x294a68?(_0x1ff8a9=_0x294a68[_0x5043dd(0x288)])==null?void 0x0:_0x1ff8a9['doc']:void 0x0,_0x5b4435=ee((_0x36e402==null?void 0x0:_0x36e402['text'])??'',_0x1e3c5c,_0x38cac2),_0x560fba=_0xdba469['shapeData'][_0x5043dd(0x4c5)],_0x1b6613=_0xdba469[_0x5043dd(0x471)][_0x5043dd(0x4b7)],_0xee171f=_0x95a2df==null||(_0x2796e4=_0x95a2df[_0x5043dd(0x253)])==null?void 0x0:_0x2796e4[_0x5043dd(0x47c)],_0x38c0c2=_0xdba469['description']??_0xdba469[_0x5043dd(0x310)]??'';return(0x0,h['useEffect'])(()=>{const _0x1c86d5=_0x5043dd;let _0x35d5d1=_0x300f04[_0x1c86d5(0x2c3)],_0x54a01f=_0x2bdc19[_0x1c86d5(0x2c3)];if(!_0x35d5d1||!_0x54a01f)return;let _0x42d907=()=>{const _0x492565=_0x1c86d5;if(_0x38cac2[_0x492565(0x456)]===_0x492565(0x14d)||!_0x35d5d1[_0x492565(0x3b7)]||!_0x35d5d1[_0x492565(0x2a6)]){_0x54a01f[_0x492565(0x1d5)][_0x492565(0x44d)]=_0x38cac2['fontSize']+'px';return;}let _0x1d17a7=0x1,_0x3e37e8=0x48,_0xef77d7=_0x1d17a7;for(;_0x1d17a7<=_0x3e37e8;){let _0x251d62=Math[_0x492565(0xee)]((_0x1d17a7+_0x3e37e8)/0x2);_0x54a01f[_0x492565(0x1d5)][_0x492565(0x44d)]=_0x251d62+'px',_0x54a01f[_0x492565(0x22e)]<=_0x35d5d1[_0x492565(0x3b7)]&&_0x54a01f[_0x492565(0x189)]<=_0x35d5d1[_0x492565(0x2a6)]?(_0xef77d7=_0x251d62,_0x1d17a7=_0x251d62+0x1):_0x3e37e8=_0x251d62-0x1;}_0x54a01f['style'][_0x492565(0x44d)]=_0xef77d7+'px';};if(_0x42d907(),typeof ResizeObserver>'u')return;let _0x551ff0=new ResizeObserver(_0x42d907);return _0x551ff0[_0x1c86d5(0x271)](_0x35d5d1),()=>_0x551ff0['disconnect']();},[_0x38cac2[_0x5043dd(0x44d)],_0x38cac2[_0x5043dd(0x456)],_0x5b4435]),(0x0,g[_0x5043dd(0x402)])(_0x5043dd(0x159),{'data-dashboard-formula-shape':_0xdba469['id'],'className':_0x5043dd(0x3dc),'style':{'backgroundColor':((_0x12f0b6=_0xdba469[_0x5043dd(0xd3)])==null?void 0x0:_0x12f0b6[_0x5043dd(0x49d)])??((_0x560fba==null?void 0x0:_0x560fba['fillType'])===d[_0x5043dd(0x243)][_0x5043dd(0x2cb)]?_0x560fba['color']??void 0x0:void 0x0),'border':(_0x1b6613==null?void 0x0:_0x1b6613[_0x5043dd(0x303)])===d[_0x5043dd(0x4da)][_0x5043dd(0x34d)]?(_0x1b6613[_0x5043dd(0x280)]??0x1)+_0x5043dd(0x13e)+(_0x1b6613[_0x5043dd(0x374)]??'currentColor'):void 0x0,'borderRadius':_0xdba469['shapeType']===d[_0x5043dd(0x42d)]['RoundRect']?0xc:void 0x0,'color':((_0xa911b6=_0xdba469[_0x5043dd(0xd3)])==null?void 0x0:_0xa911b6[_0x5043dd(0xcf)])??(_0x36e402==null?void 0x0:_0x36e402['color'])??(_0xee171f==null||(_0x3007ea=_0xee171f['cl'])==null?void 0x0:_0x3007ea[_0x5043dd(0x186)])??void 0x0,'fontWeight':_0xee171f!=null&&_0xee171f['bl']?0x258:void 0x0,'textAlign':_0x38cac2[_0x5043dd(0x164)]},'children':[_0x3f9574&&(0x0,g[_0x5043dd(0x12b)])(_0x5043dd(0x27c),{'src':_0x3f9574,'alt':'','aria-hidden':'true','className':_0x5043dd(0x22b),'style':{'objectFit':((_0x90521a=_0x38cac2[_0x5043dd(0x3ae)])==null?void 0x0:_0x90521a[_0x5043dd(0x354)])??_0x5043dd(0x2d7)}}),(0x0,g[_0x5043dd(0x402)])('div',{'className':'univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','children':[_0x38c0c2&&(0x0,g[_0x5043dd(0x12b)])(_0x5043dd(0x159),{'data-dashboard-formula-description':!0x0,'className':_0x5043dd(0x3d1),'children':_0x38c0c2}),(0x0,g[_0x5043dd(0x12b)])(_0x5043dd(0x159),{'ref':_0x300f04,'data-dashboard-formula-value':!0x0,'aria-label':_0x38c0c2||_0x447ac3['t'](_0x5043dd(0x4d0)),'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[_0x38cac2[_0x5043dd(0x164)]]},'children':(0x0,g[_0x5043dd(0x12b)])(_0x5043dd(0x408),{'ref':_0x2bdc19,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x38cac2['fontSizeMode'],'className':_0x5043dd(0x308),'children':_0x5b4435})})]})]});}function N(_0x1374ae,_0x276c44){return function(_0x135c73,_0x5ebc7b){_0x276c44(_0x135c73,_0x5ebc7b,_0x1374ae);};}function P(_0x71bd23,_0x444bf3,_0x4b93e1,_0x4f0f0c){const _0x2109d2=_0x10fa58;var _0x30c966=arguments[_0x2109d2(0x416)],_0x998718=_0x30c966<0x3?_0x444bf3:_0x4f0f0c===null?_0x4f0f0c=Object[_0x2109d2(0x2be)](_0x444bf3,_0x4b93e1):_0x4f0f0c,_0x7ebd01;if(typeof Reflect==_0x2109d2(0x334)&&typeof Reflect['decorate']=='function')_0x998718=Reflect['decorate'](_0x71bd23,_0x444bf3,_0x4b93e1,_0x4f0f0c);else{for(var _0x1d392f=_0x71bd23['length']-0x1;_0x1d392f>=0x0;_0x1d392f--)(_0x7ebd01=_0x71bd23[_0x1d392f])&&(_0x998718=(_0x30c966<0x3?_0x7ebd01(_0x998718):_0x30c966>0x3?_0x7ebd01(_0x444bf3,_0x4b93e1,_0x998718):_0x7ebd01(_0x444bf3,_0x4b93e1))||_0x998718);}return _0x30c966>0x3&&_0x998718&&Object[_0x2109d2(0x419)](_0x444bf3,_0x4b93e1,_0x998718),_0x998718;}let F=class{constructor(_0x57016e,_0x5e030b,_0x3a6e5c){const _0x51097d=_0x10fa58;this[_0x51097d(0x485)]=_0x57016e,this[_0x51097d(0x134)]=_0x5e030b,this[_0x51097d(0x1ab)]=_0x3a6e5c;}['createDomChartInstance'](){const _0x35ed40=_0x10fa58;return this['_renderModelManager'][_0x35ed40(0x352)](_['ChartRenderMode']['Dom'],this[_0x35ed40(0x24b)]());}[_0x10fa58(0x461)](_0x5b664c){const _0x2eb075=_0x10fa58;let _0x59b62b=_0x5b664c[_0x2eb075(0x32f)][_0x2eb075(0xfb)];if(!_0x59b62b)throw Error(_0x2eb075(0x478)+_0x5b664c[_0x2eb075(0x115)]+_0x2eb075(0x3fe));let _0x3ef581=this[_0x2eb075(0x485)][_0x2eb075(0x455)]();return{'config':_0x59b62b,'style':(0x0,_[_0x2eb075(0x18d)])({..._0x5b664c[_0x2eb075(0x32f)][_0x2eb075(0x1d5)],'runtime':_0x5b664c[_0x2eb075(0x32f)][_0x2eb075(0x236)](_0x3ef581),'direction':_0x3ef581},_0x59b62b[_0x2eb075(0x469)])};}[_0x10fa58(0x24b)](){const _0x5270eb=_0x10fa58;return{'resolveHostStyle':({style:_0xdabdd3})=>(0x0,_['resolveDefaultChartHostFrameStyle'])({'style':_0xdabdd3,'getRenderColor':_0x4fdd81=>this[_0x5270eb(0x134)]['getRenderColor'](_0x4fdd81)}),'resolveRenderBackgroundColor':({hostStyle:_0x50e9e4})=>_0x50e9e4[_0x5270eb(0x4c5)]};}};F=P([N(0x0,(0x0,a[_0x10fa58(0x453)])(a[_0x10fa58(0x17c)])),N(0x1,(0x0,a[_0x10fa58(0x453)])(_[_0x10fa58(0x3a9)])),N(0x2,_[_0x10fa58(0x390)])],F);function I(_0x5823f2,_0xe1fb52){const _0x543003=_0x10fa58;var _0x3794e5;_0x5823f2['style'][_0x543003(0x49d)]=_0xe1fb52['fill']??_0x543003(0x336),_0x5823f2[_0x543003(0x1d5)][_0x543003(0x2f4)]=(_0x3794e5=_0xe1fb52['border'])!=null&&_0x3794e5[_0x543003(0x374)]&&_0xe1fb52[_0x543003(0x2f4)]['width']?_0xe1fb52[_0x543003(0x2f4)][_0x543003(0x280)]+'px\x20solid\x20'+_0xe1fb52[_0x543003(0x2f4)]['color']:'',_0x5823f2[_0x543003(0x1d5)][_0x543003(0x32e)]=_0xe1fb52[_0x543003(0x486)]?_0xe1fb52[_0x543003(0x486)]+'px':'',_0x5823f2[_0x543003(0x1d5)][_0x543003(0x3c1)]=_0x543003(0x153),_0x5823f2[_0x543003(0x1d5)][_0x543003(0x10b)]=_0x543003(0x418);}function L(_0x41ff9a){'@babel/helpers - typeof';const _0x2dd7c3=_0x10fa58;return L=typeof Symbol==_0x2dd7c3(0x227)&&typeof Symbol[_0x2dd7c3(0x376)]==_0x2dd7c3(0x31c)?function(_0x2e5b94){return typeof _0x2e5b94;}:function(_0x54b0ef){const _0x142328=_0x2dd7c3;return _0x54b0ef&&typeof Symbol=='function'&&_0x54b0ef[_0x142328(0x470)]===Symbol&&_0x54b0ef!==Symbol['prototype']?'symbol':typeof _0x54b0ef;},L(_0x41ff9a);}function R(_0x4643d7,_0x7cc122){const _0xac16f8=_0x10fa58;if(L(_0x4643d7)!=_0xac16f8(0x334)||!_0x4643d7)return _0x4643d7;var _0x4dcf6c=_0x4643d7[Symbol['toPrimitive']];if(_0x4dcf6c!==void 0x0){var _0x2aa602=_0x4dcf6c[_0xac16f8(0x3b0)](_0x4643d7,_0x7cc122||_0xac16f8(0x3d7));if(L(_0x2aa602)!=_0xac16f8(0x334))return _0x2aa602;throw TypeError(_0xac16f8(0x47a));}return(_0x7cc122==='string'?String:Number)(_0x4643d7);}function z(_0x10d147){const _0x57375d=_0x10fa58;var _0x125c75=R(_0x10d147,'string');return L(_0x125c75)==_0x57375d(0x31c)?_0x125c75:_0x125c75+'';}function B(_0x572a7a,_0x31183f,_0x9a4744){const _0x46b973=_0x10fa58;return(_0x31183f=z(_0x31183f))in _0x572a7a?Object[_0x46b973(0x419)](_0x572a7a,_0x31183f,{'value':_0x9a4744,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x572a7a[_0x31183f]=_0x9a4744,_0x572a7a;}var V=class extends a['Disposable']{constructor(_0x4be27a,_0x4f640c){const _0x410b99=_0x10fa58;super(),this[_0x410b99(0x115)]=_0x4be27a,this[_0x410b99(0x292)]=_0x4f640c,B(this,_0x410b99(0x1b5),_[_0x410b99(0x36f)][_0x410b99(0x4d9)]);}[_0x10fa58(0x110)](){const _0x3fa451=_0x10fa58;return{'width':Math[_0x3fa451(0x41b)](0x1,this['_element'][_0x3fa451(0x3b7)]),'height':Math[_0x3fa451(0x41b)](0x1,this[_0x3fa451(0x292)]['clientHeight'])};}[_0x10fa58(0x215)](_0x2fdb4b){const _0x31dfe1=_0x10fa58;I(this[_0x31dfe1(0x292)],_0x2fdb4b);}async['ensureMount'](){const _0x2da58f=_0x10fa58;return this[_0x2da58f(0x292)];}[_0x10fa58(0x13f)](){const _0x54c9c1=_0x10fa58;return this[_0x54c9c1(0x292)][_0x54c9c1(0x29e)];}[_0x10fa58(0x45f)](){}[_0x10fa58(0xcb)](){}[_0x10fa58(0x379)](){}};function re({isRowDirection:_0xed1c,runtime:_0x4ae938}){const _0x2b5257=_0x10fa58;let _0xacadac=(0x0,h[_0x2b5257(0xfd)])(null),_0x2278fd=(0x0,m[_0x2b5257(0x162)])(a[_0x2b5257(0x17c)]),_0x45fc33=(0x0,m[_0x2b5257(0x162)])(a[_0x2b5257(0x4ce)]),_0x51f816=(0x0,m[_0x2b5257(0x162)])(F),_0x1881f5=(0x0,m['useDependency'])(a[_0x2b5257(0x45a)]);return(0x0,h['useEffect'])(()=>{const _0x74837c=_0x2b5257;let _0x16168b=_0xacadac[_0x74837c(0x2c3)];if(!_0x16168b)return;_0x16168b[_0x74837c(0x155)]();let {chartId:_0x21f410,model:_0x53cda1}=_0x4ae938,_0x2e04ba=_0x53cda1[_0x74837c(0x149)],_0x573a2e=new V(_0x21f410,_0x16168b),_0x5324e2=_0x51f816[_0x74837c(0x2e2)](),_0x5c5466=!0x1,_0x185446=null,_0x365011=null,_0x140b85=null,_0x1bedc6=null,_0x477ee5=!0x1,_0x5576f2=!0x1,_0x40fcf2=Promise[_0x74837c(0x3ec)]();_0x5324e2['bind'](_0x573a2e);let _0x52b3a8=()=>{const _0x100534=_0x74837c;var _0x54e44e,_0x2fb731,_0x42013b,_0x4c0e3b;if(document[_0x100534(0x26a)]===_0x100534(0x153)||(_0x54e44e=(_0x2fb731=window)[_0x100534(0x27a)])!=null&&(_0x54e44e=_0x54e44e['call'](_0x2fb731,_0x100534(0x295)))!=null&&_0x54e44e[_0x100534(0x319)]||(_0x42013b=(_0x4c0e3b=window)['matchMedia'])!=null&&(_0x42013b=_0x42013b[_0x100534(0x3b0)](_0x4c0e3b,_0x100534(0x136)))!=null&&_0x42013b[_0x100534(0x319)]||!_0x16168b[_0x100534(0x29e)])return!0x1;let _0x6fee43=_0x16168b[_0x100534(0x360)]();return _0x6fee43[_0x100534(0x280)]>0x0&&_0x6fee43[_0x100534(0x1ea)]>0x0&&_0x6fee43[_0x100534(0x3b4)]>0x0&&_0x6fee43[_0x100534(0x219)]>0x0&&_0x6fee43[_0x100534(0x22a)]<window[_0x100534(0x4d2)]&&_0x6fee43['top']<window[_0x100534(0x263)];},_0x3b056e=()=>{const _0x44e4a1=_0x74837c;_0x365011!==null&&clearTimeout(_0x365011),_0x16168b[_0x44e4a1(0x4c2)][_0x44e4a1(0x111)]=_0x44e4a1(0x1c5),_0x16168b[_0x44e4a1(0x4c2)][_0x44e4a1(0x388)]=String(_[_0x44e4a1(0x108)]),_0x365011=setTimeout(()=>{const _0x5ad0b3=_0x44e4a1;_0x365011=null,delete _0x16168b[_0x5ad0b3(0x4c2)][_0x5ad0b3(0x111)],delete _0x16168b[_0x5ad0b3(0x4c2)]['baseChartDataAnimationDuration'];},_[_0x44e4a1(0x108)]);},_0x40f75d=(0x0,a[_0x74837c(0x465)])(()=>{const _0x5896c4=_0x74837c;if(_0x5c5466||(_0x185446!==null&&(clearTimeout(_0x185446),_0x185446=null),!_0x53cda1[_0x5896c4(0xfb)]))return;let _0x4e959d=_0x5576f2;_0x5576f2=!0x1,_0x16168b[_0x5896c4(0x4c2)][_0x5896c4(0x218)]=String(_0x53cda1[_0x5896c4(0x218)]),_0x16168b[_0x5896c4(0x4c2)][_0x5896c4(0x43d)]=String(_0xed1c);let _0x1b75d2=_0x51f816[_0x5896c4(0x461)](_0x4ae938),_0x4633d9={'chartId':_0x21f410,'config':_0x1b75d2[_0x5896c4(0xfb)],'style':_0x1b75d2[_0x5896c4(0x1d5)]};_0x40fcf2=_0x40fcf2[_0x5896c4(0x46e)](async()=>{const _0x2176cc=_0x5896c4;_0x5c5466||(_0x16168b[_0x2176cc(0x4c2)][_0x2176cc(0x35c)]=String(Number(_0x16168b['dataset'][_0x2176cc(0x35c)]??0x0)+0x1),_0x4e959d&&_0x140b85&&_0x5324e2[_0x2176cc(0x184)]&&_0x52b3a8()?(await _0x5324e2[_0x2176cc(0x184)](_0x140b85,_0x4633d9,{'duration':_[_0x2176cc(0x108)]}),_0x5c5466||_0x3b056e()):await _0x5324e2[_0x2176cc(0x3e8)](_0x4633d9),_0x140b85=_0x4633d9);})[_0x5896c4(0x1f0)](_0x5e3220=>_0x45fc33['error'](_0x5896c4(0x38a),_0x5e3220));},0x64,{'leading':!0x0,'trailing':!0x0,'maxWait':0x64}),_0x29e10d=(_0x5559a8=!0x1)=>{_0x5576f2||=_0x5559a8,!_0x477ee5&&(_0x477ee5=!0x0,queueMicrotask(()=>{_0x477ee5=!0x1,_0x5c5466||_0x40f75d();}));},_0x445737=[_0x2e04ba[_0x74837c(0x2ff)][_0x74837c(0x270)](_0x4ecd12=>{const _0xa18cac=_0x74837c;let _0x3477be=JSON[_0xa18cac(0x129)](_0x4ecd12);_0x1bedc6!=null&&_0x1bedc6!==_0x3477be&&_0x29e10d(!0x0),_0x1bedc6=_0x3477be;}),_0x53cda1[_0x74837c(0x1bb)][_0x74837c(0x270)](_0x2d40e7=>{_0x2d40e7&&_0x29e10d();}),_0x53cda1[_0x74837c(0x169)][_0x74837c(0x270)](()=>_0x29e10d()),_0x2278fd[_0x74837c(0x351)][_0x74837c(0x270)](()=>_0x29e10d()),(0x0,c[_0x74837c(0x2db)])([_0x1881f5[_0x74837c(0x199)],_0x1881f5[_0x74837c(0x3a6)]])[_0x74837c(0x417)]((0x0,c['skip'])(0x1))[_0x74837c(0x270)](()=>_0x29e10d())],_0x162f44=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0x2abb48=_0x74837c;_0x5c5466||(_0x573a2e[_0x2abb48(0x45f)](),_0x185446!==null&&clearTimeout(_0x185446),_0x185446=setTimeout(()=>_0x29e10d(),0x64));});return _0x162f44==null||_0x162f44[_0x74837c(0x271)](_0x16168b),()=>{const _0x513d8b=_0x74837c;_0x5c5466=!0x0,_0x40f75d[_0x513d8b(0x1f1)](),_0x185446!==null&&clearTimeout(_0x185446),_0x365011!==null&&clearTimeout(_0x365011),delete _0x16168b[_0x513d8b(0x4c2)][_0x513d8b(0x111)],delete _0x16168b[_0x513d8b(0x4c2)]['baseChartDataAnimationDuration'],_0x162f44==null||_0x162f44[_0x513d8b(0x1f4)](),_0x445737[_0x513d8b(0x362)](_0x20143b=>_0x20143b[_0x513d8b(0x39b)]()),_0x5324e2[_0x513d8b(0x312)](),_0x573a2e[_0x513d8b(0x312)](),_0x16168b[_0x513d8b(0x155)]();};},[_0xed1c,_0x2278fd,_0x45fc33,_0x51f816,_0x4ae938,_0x1881f5]),(0x0,g[_0x2b5257(0x12b)])(_0x2b5257(0x159),{'ref':_0xacadac,'data-u-comp':_0x2b5257(0x428),'className':'univer-absolute\x20univer-inset-0\x20univer-overflow-hidden'});}function ie({filters:_0x2c837f,onRuntimeChange:_0xfb878c,unitId:_0xf42239,widget:_0x1bf7d5}){const _0x21f36a=_0x10fa58;let _0x213435=(0x0,m[_0x21f36a(0x162)])(a['IUniverInstanceService']),_0x207b4f=(0x0,m[_0x21f36a(0x162)])(a[_0x21f36a(0x17c)]),_0x12504a=(0x0,m['useDependency'])(a[_0x21f36a(0x4ce)]),_0x2cc7bc=(0x0,m[_0x21f36a(0x162)])(e[_0x21f36a(0x216)]),[_0x310439,_0x4bc7be]=(0x0,h['useState'])(null),[_0x12784c,_0x3e51fe]=(0x0,h[_0x21f36a(0x1cc)])(!0x1),[_0x5f5390,_0x114e9d]=(0x0,h[_0x21f36a(0x1cc)])(null),_0x16f789=(0x0,h[_0x21f36a(0xfd)])(_0x21f36a(0x4b9)+(0x0,a[_0x21f36a(0x176)])(0x8)),_0x1074e0=_0x213435['getUnit'](_0xf42239,a[_0x21f36a(0x17b)]['UNIVER_BASE']),_0x3f8b86=_0x1074e0==null?void 0x0:_0x1074e0[_0x21f36a(0x47d)]()[_0x21f36a(0x19e)][_0x1bf7d5[_0x21f36a(0x3ce)]],_0x889c63=_0x3f8b86==null?void 0x0:_0x3f8b86[_0x21f36a(0x1d2)][_0x1bf7d5['pivotViewId']],_0x4005de=H(_0x889c63);if((0x0,h['useEffect'])(()=>{const _0x463610=_0x21f36a;if(!_0x4005de)return;let _0x83812b=_0x16f789[_0x463610(0x2c3)];return _0x2cc7bc[_0x463610(0x28f)](_0x83812b,{'unitId':_0xf42239,'tableId':_0x1bf7d5[_0x463610(0x3ce)],'viewId':_0x1bf7d5[_0x463610(0x4c0)],'filters':[]}),()=>{const _0x2ee9c0=_0x463610;_0x2cc7bc[_0x2ee9c0(0x38e)](_0xf42239,_0x83812b),_0xfb878c==null||_0xfb878c(_0x1bf7d5['id'],null);};},[_0x4005de,_0xfb878c,_0x2cc7bc,_0xf42239,_0x1bf7d5['id'],_0x1bf7d5[_0x21f36a(0x4c0)],_0x1bf7d5[_0x21f36a(0x3ce)]]),(0x0,h['useEffect'])(()=>{const _0x5a3e1e=_0x21f36a;if(!H(_0x889c63))return;let _0x55656c=!0x0,_0x4bef35=_0x1bf7d5[_0x5a3e1e(0x1a8)]??_0x889c63[_0x5a3e1e(0xfb)][_0x5a3e1e(0x1a8)],_0x1651da={'unitId':_0xf42239,'tableId':_0x1bf7d5[_0x5a3e1e(0x3ce)],'viewId':_0x1bf7d5[_0x5a3e1e(0x4c0)],'filters':[_0x889c63[_0x5a3e1e(0x3fa)]??null,..._0x2c837f]};return _0x2cc7bc[_0x5a3e1e(0x1fd)](_0xf42239,_0x16f789[_0x5a3e1e(0x2c3)],_0x1651da,_0x4bef35)['then'](_0x2c6b2f=>{const _0x40e72c=_0x5a3e1e;if(!_0x55656c||!_0x2c6b2f)return;let _0x48684e=_0x2cc7bc[_0x40e72c(0x2dd)](_0xf42239,_0x16f789[_0x40e72c(0x2c3)])??null;_0x4bc7be(_0x2c6b2f),_0x114e9d(_0x48684e),_0x3e51fe(!0x1),_0xfb878c==null||_0xfb878c(_0x1bf7d5['id'],_0x48684e);})['catch'](_0x53f5bb=>{const _0x47ed3a=_0x5a3e1e;_0x12504a[_0x47ed3a(0x38d)](_0x47ed3a(0x4bb),_0x53f5bb),_0x55656c&&(_0x4bc7be(null),_0x3e51fe(!0x0));}),()=>{_0x55656c=!0x1;};},[_0x2c837f,_0x12504a,_0xfb878c,_0x2cc7bc,_0xf42239,_0x889c63,_0x1bf7d5[_0x21f36a(0x1a8)],_0x1bf7d5['id'],_0x1bf7d5[_0x21f36a(0x4c0)],_0x1bf7d5[_0x21f36a(0x3ce)]]),!H(_0x889c63))return(0x0,g[_0x21f36a(0x12b)])(_0x21f36a(0x159),{'className':_0x21f36a(0x23e),'children':_0x207b4f['t'](_0x21f36a(0x31d))});let _0x20240c=_0x2cc7bc[_0x21f36a(0x2dd)](_0xf42239,_0x16f789['current'])===_0x5f5390?_0x5f5390:null;return _0x310439&&_0x20240c?(0x0,g[_0x21f36a(0x12b)])(re,{'isRowDirection':(0x0,e[_0x21f36a(0x3b3)])((_0x1bf7d5[_0x21f36a(0x1a8)]??_0x889c63['config'][_0x21f36a(0x1a8)])[_0x21f36a(0x4cc)]),'runtime':_0x20240c}):(0x0,g[_0x21f36a(0x12b)])(_0x21f36a(0x159),{'className':_0x21f36a(0x23e),'children':_0x207b4f['t'](_0x12784c?_0x21f36a(0x35d):'bases-dashboard-ui.pivot.calculating')});}function H(_0x516240){const _0x131903=_0x10fa58;return(_0x516240==null?void 0x0:_0x516240[_0x131903(0x469)])===a[_0x131903(0x22d)][_0x131903(0x48c)]&&typeof _0x516240['config']==_0x131903(0x334)&&_0x516240['config']!==null&&_0x131903(0x2c2)in _0x516240[_0x131903(0xfb)]&&'chart'in _0x516240['config'];}const ae={'alignment':_0x10fa58(0x22a),'fontSize':0x12,'fontSizeMode':_0x10fa58(0x21a)};function oe(_0x3d9f45){const _0x1fc2a2=_0x10fa58;return{...ae,..._0x3d9f45[_0x1fc2a2(0xd3)]};}function U(_0x250a17){const _0x16f26c=_0x10fa58;var _0x18209f;return((_0x18209f=_0x250a17[_0x16f26c(0x39c)])==null?void 0x0:_0x18209f['dataStream'][_0x16f26c(0xca)](/\r\n$/,'')[_0x16f26c(0xca)](/\r/g,'\x0a'))??'';}function se(_0x58875d,_0xba0e0a){const _0x512b7d=_0x10fa58;var _0x5f3e0a;let _0x9be05e=_0xba0e0a[_0x512b7d(0xca)](/\r\n|\r/g,'\x0a')[_0x512b7d(0x1f8)]('\x0a'),_0xa411ba=_0x9be05e['join']('\x0d')+'\x0d\x0a',_0x1d767e=((_0x5f3e0a=_0x58875d[_0x512b7d(0x39c)])==null?void 0x0:_0x5f3e0a['paragraphs'])??[],_0x315892=new Set(_0x1d767e['map'](_0x204bc0=>_0x204bc0['paragraphId'])),_0x2c8c37=0x0,_0x221c27=_0x9be05e[_0x512b7d(0x47e)]((_0x200896,_0x5f55b1)=>{const _0x3d65fa=_0x512b7d;_0x2c8c37+=_0x200896[_0x3d65fa(0x416)];let _0x188976={..._0x1d767e[_0x5f55b1]??{'startIndex':_0x2c8c37,'paragraphId':(0x0,a[_0x3d65fa(0xd2)])(_0x315892)},'startIndex':_0x2c8c37};return _0x2c8c37+=0x1,_0x188976;});return{..._0x58875d,'body':{..._0x58875d[_0x512b7d(0x39c)],'dataStream':_0xa411ba,'paragraphs':_0x221c27,'textRuns':[]}};}function ce({widget:_0x1c40a2}){const _0x2a1d6e=_0x10fa58;let _0x19d0f4=(0x0,m[_0x2a1d6e(0x162)])(a[_0x2a1d6e(0x45a)]),_0x4e97f1=(0x0,m[_0x2a1d6e(0x162)])(a[_0x2a1d6e(0x17c)]),_0x107ed4=(0x0,m[_0x2a1d6e(0x3e1)])(()=>_0x19d0f4[_0x2a1d6e(0x199)],_0x19d0f4[_0x2a1d6e(0x320)](),!0x1,[_0x19d0f4]),_0xc53123=(0x0,h['useRef'])(null),_0xaff90c=(0x0,h[_0x2a1d6e(0xfd)])(null),_0xfb178e=oe(_0x1c40a2),_0x523800=_0xfb178e['backgroundColor']??_0x107ed4[_0x2a1d6e(0x14e)][0x0],_0x1e924d=_0xfb178e['textColor']??_0x107ed4[_0x2a1d6e(0x14e)][0x3e8],_0x543a9c=U(_0x1c40a2[_0x2a1d6e(0x29d)]);return(0x0,h['useEffect'])(()=>{const _0x6d01b4=_0x2a1d6e;let _0x55d583=_0xc53123['current'],_0x19e6f4=_0xaff90c['current'];if(!_0x55d583||!_0x19e6f4)return;let _0x407723=()=>{const _0x95b466=_0x16b2;if(_0xfb178e['fontSizeMode']===_0x95b466(0x14d)||!_0x55d583[_0x95b466(0x3b7)]||!_0x55d583['clientHeight']){_0x19e6f4[_0x95b466(0x1d5)][_0x95b466(0x44d)]=_0xfb178e['fontSize']+'px';return;}let _0x327742=0x8,_0x287674=0x48,_0x4761dd=_0x327742;for(;_0x327742<=_0x287674;){let _0x261fbe=Math[_0x95b466(0xee)]((_0x327742+_0x287674)/0x2);_0x19e6f4[_0x95b466(0x1d5)][_0x95b466(0x44d)]=_0x261fbe+'px',_0x19e6f4[_0x95b466(0x22e)]<=_0x55d583[_0x95b466(0x3b7)]&&_0x19e6f4[_0x95b466(0x189)]<=_0x55d583['clientHeight']?(_0x4761dd=_0x261fbe,_0x327742=_0x261fbe+0x1):_0x287674=_0x261fbe-0x1;}_0x19e6f4[_0x95b466(0x1d5)][_0x95b466(0x44d)]=_0x4761dd+'px';};if(_0x407723(),typeof ResizeObserver>'u')return;let _0x5626a3=new ResizeObserver(_0x407723);return _0x5626a3[_0x6d01b4(0x271)](_0x55d583),()=>_0x5626a3[_0x6d01b4(0x1f4)]();},[_0xfb178e[_0x2a1d6e(0x44d)],_0xfb178e[_0x2a1d6e(0x456)],_0x543a9c]),(0x0,g[_0x2a1d6e(0x12b)])(_0x2a1d6e(0x159),{'data-dashboard-text-widget':_0x1c40a2['id'],'className':_0x2a1d6e(0x267),'style':{'backgroundColor':_0x523800,'color':_0x1e924d},'children':(0x0,g['jsx'])('div',{'ref':_0xc53123,'data-dashboard-text-content':!0x0,'aria-label':_0x4e97f1['t']('bases-dashboard-ui.dashboard.text'),'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','children':(0x0,g[_0x2a1d6e(0x12b)])('div',{'ref':_0xaff90c,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0xfb178e[_0x2a1d6e(0x456)],'className':'univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','style':{'textAlign':_0xfb178e[_0x2a1d6e(0x164)]},'children':_0x543a9c})})});}function le({dashboard:_0x3ea982,editable:_0x4959b8=!0x0,onSelectWidget:_0x2369a9,renderWidget:_0x531d40,renderWidgetActions:_0x2b3095,selectedWidgetId:_0x7f8422,widgetLabel:_0x563c01}){const _0x554c0b=_0x10fa58;return(0x0,g['jsx'])('div',{'data-dashboard-scroll-container':!0x0,'className':(0x0,f['clsx'])(_0x554c0b(0x183),f[_0x554c0b(0xfc)]),'onClick':_0x4959b8?_0x53cd0a=>{const _0x34c27d=_0x554c0b;if(!(_0x53cd0a[_0x34c27d(0x2d9)]instanceof Node)||!_0x53cd0a['currentTarget'][_0x34c27d(0x4b4)](_0x53cd0a['target']))return;let _0x1b13d3=_0x53cd0a[_0x34c27d(0x2d9)]instanceof Element?_0x53cd0a[_0x34c27d(0x2d9)]:_0x53cd0a[_0x34c27d(0x2d9)][_0x34c27d(0x445)];_0x1b13d3!=null&&_0x1b13d3[_0x34c27d(0x11b)](_0x34c27d(0x11a))||_0x2369a9==null||_0x2369a9();}:void 0x0,'children':(0x0,g[_0x554c0b(0x12b)])(_0x554c0b(0x159),{'data-dashboard-grid':!0x0,'className':_0x554c0b(0x344),'children':_0x3ea982[_0x554c0b(0x4c8)][_0x554c0b(0x47e)](_0xd8d4e0=>{const _0x5d600e=_0x554c0b;let _0x2a1444=_0x3ea982[_0x5d600e(0x1bd)][_0xd8d4e0];if(!_0x2a1444)return null;let _0x3f5bfc=Math[_0x5d600e(0x41b)](0xb4,_0x2a1444[_0x5d600e(0x42b)][_0x5d600e(0x44e)]*e[_0x5d600e(0xf0)]);return(0x0,g[_0x5d600e(0x402)])('article',{'data-dashboard-widget':_0x2a1444['id'],'aria-label':_0x2a1444[_0x5d600e(0x310)]??_0x563c01(_0x2a1444),'className':(0x0,f[_0x5d600e(0x4b2)])(_0x5d600e(0x4a0),_0x2a1444[_0x5d600e(0x469)]===e['BaseDashboardWidgetType'][_0x5d600e(0x3e9)]||_0x2a1444['type']===e[_0x5d600e(0x27e)][_0x5d600e(0x3f1)]?'univer-bg-transparent\x20dark:!univer-bg-transparent':_0x5d600e(0x209),_0x4959b8&&_0x7f8422===_0x2a1444['id']?_0x5d600e(0x346):'univer-border-gray-200\x20dark:!univer-border-gray-700'),'style':{'minHeight':_0x3f5bfc,'height':_0x3f5bfc},'tabIndex':_0x4959b8?0x0:void 0x0,'onClick':_0x4959b8?()=>_0x2369a9==null?void 0x0:_0x2369a9(_0x2a1444['id']):void 0x0,'onFocus':_0x4959b8?()=>_0x2369a9==null?void 0x0:_0x2369a9(_0x2a1444['id']):void 0x0,'children':[_0x4959b8&&(0x0,g[_0x5d600e(0x12b)])(_0x5d600e(0x159),{'className':_0x5d600e(0x45c),'children':_0x2b3095==null?void 0x0:_0x2b3095(_0x2a1444)}),(0x0,g['jsx'])('div',{'className':_0x5d600e(0x1d1),'children':_0x531d40(_0x2a1444)})]},_0x2a1444['id']);})})});}let W=class extends n[_0x10fa58(0xc1)]{constructor(_0x31a5c2){const _0x56a0b0=_0x10fa58;super(_0x31a5c2),B(this,_0x56a0b0(0x38f),null);}['executeChartUpdateConfig'](_0xef0297){}};W=P([N(0x0,(0x0,a[_0x10fa58(0x453)])(n[_0x10fa58(0x124)]))],W);function ue({children:_0x5576ce}){const _0x5ccb7e=_0x10fa58;return(0x0,g[_0x5ccb7e(0x12b)])(n[_0x5ccb7e(0x26f)],{'children':_0x5576ce});}function G(_0x20229a){const _0x10e1a1=_0x10fa58;return(0x0,g[_0x10e1a1(0x12b)])(f[_0x10e1a1(0x436)],{..._0x20229a});}function de(_0x19ab5e){const _0x42cfab=_0x10fa58;return(0x0,g[_0x42cfab(0x12b)])(f[_0x42cfab(0x3e4)],{..._0x19ab5e});}function fe(_0xb63d66){const _0x396d85=_0x10fa58;return(0x0,g[_0x396d85(0x12b)])(f['MobileDialog'],{..._0xb63d66});}var pe;const K={'axis':{...n[_0x10fa58(0x4a2)],'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':n['DEFAULT_CHART_FUNNEL_VALUES'],'heatmap':n[_0x10fa58(0x244)],'indicatorLine':n['DEFAULT_CHART_INDICATOR_LINE_VALUES'],'legend':n[_0x10fa58(0x3db)],'lineAndArea':n[_0x10fa58(0x294)],'pareto':n['DEFAULT_CHART_PARETO_VALUES'],'pie':n[_0x10fa58(0x2da)],'radar':n[_0x10fa58(0x30b)],'relation':{...n[_0x10fa58(0xd6)],'useValueAsSymbolSize':!0x0},'series':{...n[_0x10fa58(0x40e)],'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((pe=_[_0x10fa58(0x4ad)][_0x10fa58(0x157)])==null?void 0x0:pe[_0x10fa58(0x440)])??!0x1}},'style':n[_0x10fa58(0x3f8)],'titles':n['DEFAULT_CHART_TITLE_VALUES'],'trendline':n['DEFAULT_CHART_TRENDLINE_VALUES'],'waterfall':{...n['DEFAULT_CHART_WATERFALL_SETUP_VALUES'],'useSubtotal':!0x0},'waterfallStyle':n[_0x10fa58(0x423)],'wordCloud':n[_0x10fa58(0x296)]},me=[_[_0x10fa58(0x203)][_0x10fa58(0x255)],_['ChartTypeBits'][_0x10fa58(0x4b3)],_[_0x10fa58(0x203)][_0x10fa58(0xeb)],_['ChartTypeBits'][_0x10fa58(0x3da)],_['ChartTypeBits'][_0x10fa58(0x4a9)],_[_0x10fa58(0x203)][_0x10fa58(0x2d1)],_[_0x10fa58(0x203)][_0x10fa58(0x338)],_[_0x10fa58(0x203)][_0x10fa58(0x444)],_[_0x10fa58(0x203)][_0x10fa58(0x1bc)],_[_0x10fa58(0x203)][_0x10fa58(0x10c)],_[_0x10fa58(0x203)][_0x10fa58(0xce)],_[_0x10fa58(0x203)][_0x10fa58(0x493)],_[_0x10fa58(0x203)]['Sunburst'],_[_0x10fa58(0x203)][_0x10fa58(0x375)],_[_0x10fa58(0x203)]['Chord']];function _0x14db(){const _0x2e032e=['GREATER_THAN_OR_EQUAL','bases-dashboard-ui.dashboardInspector.uploadImage','ChartEditBlockTitle','headerRowCount','PivotSubtotalPositionEnum','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','bases-dashboard-ui.dashboardInspector.numberFormat','ILayoutService','bases-dashboard-ui.chart.section.radar','UniverDocsUIPlugin','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','RightVerticalAxis','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','bases-dashboard-ui.pivot.removeField','IS_EMPTY','bases-dashboard-ui.mobile.moveDown','isSubtotal','univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','ChartEditorCapability','SolidLine','Style','bases-dashboard-ui.pivot.fields','HorizontalAxis','direction$','createChartInstance','addFieldWithSourceId','fit','isFinite','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','general','version','bases-dashboard-ui.pivot.downThenAcross','normalizeEditorFormulaForConfig','ChartIndicatorLineSection','renderRevision','bases-dashboard-ui.pivot.calculationFailed','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','minmax(0,\x203fr)\x20minmax(0,\x202fr)','getBoundingClientRect','Sunburst','forEach','varp','stdDev','dashboard-chart-style','pageView','accept','thead','bases-dashboard-ui.chart.section.treemap','dataFieldId','context','univer-size-4','description','Segmented','ChartRenderMode','SetBasePermissionCommand','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','univer-flex\x20univer-gap-2','bases-dashboard-ui.chart.common.legend','color','Gauge','iterator','bases-dashboard-ui.dashboardInspector.dataSource','Pareto','markNotReady','bases-dashboard-ui.pivot.descending','bases-dashboard-ui.dashboardInspector.general','children','UUID','lastCol','bases-dashboard-ui.dashboardInspector.originalSize','\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','top','set','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','bases-dashboard-ui.dashboard.text','Bubble','pareto','decimalPlaces','baseChartDataAnimationDuration','addEventListener','[BasePivotChart]\x20Failed\x20to\x20render\x20chart.','dashboardOrder','isBottomTotal','error','releaseChartRuntime','activeRuntimeModel','IChartRenderModelManagerService','UniverBasesMobileUIPlugin','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','setLayout','bases-dashboard-ui.pivot.layoutCompact','grouped','button','formula','bases-dashboard-ui.dashboard.rename','IUndoRedoService','operator','unsubscribe','body','headerMap','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','rows','tabular','buildChartTypeSelectOptions','\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.pivot.ascending','cumulativeLineStyle','columnSpan','darkMode$','bases-dashboard-ui.chart.common.trendline','AFTER','ChartThemeService','bases-dashboard-ui.pivot.display','ChartParetoSeriesSection','univer-flex\x20univer-min-h-0\x20univer-flex-1','bases-dashboard-ui.pivot.chartOnly','backgroundImage','PieStyle','call','#,##0','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','resolveBasePivotChartRowDirection','right','2811oUWebM','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','clientWidth','bases-dashboard-ui.chart.common.heatmap','product','bases-dashboard-ui.chart.section.gridlinesAndTicks','\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','presentation','getFieldPositionInfoById','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','repeatRowLabels','IS_NOT_EMPTY','overflow','useChartEditorChartType','bases-dashboard-ui.dashboard.section','BEFORE','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','bases-dashboard-ui.operators.notContains','setOptions','CloseIcon','setCurrentUnitForType','center','bases-dashboard-ui.pivot.average','bases-dashboard-ui.chart.section.waterfall','Value','tableId','updateValuePosition','chartTypeSupportsCapability','univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','ExpandIcon','BaseMobileDrawer','BaseFilterOperator','Injector','fullscreenElement','default','click','presentationChanged$','Scatter','DEFAULT_CHART_LEGEND_VALUES','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','GREATER_THAN','ChartTypeSpecificSetupSection','ChartSectionAccordionContent','resize','useObservable','kind','group','MobileDropdownMenu','columnFields','trim','Pie','render','Image','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-whitespace-nowrap\x20univer-border\x20univer-border-gray-200\x20univer-px-3\x20univer-py-2\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20univer-text-left\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dark:!univer-border-gray-700\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','univer-w-36','resolve','valueIndex','files','Date','bases-dashboard-ui.pivot.variancePopulation','FormulaShape','bases-dashboard-ui.operators.greaterThan','univer-grid\x20univer-gap-4\x20univer-p-4','bases-dashboard-ui.chart.chartTypes.area','Module','univer-mt-2\x20univer-w-full','isTopTotal','DEFAULT_CHART_STYLE_VALUES','bases-dashboard-ui.pivot.product','filter','chartBitsUtils','bases-dashboard-ui.dashboardInspector.style','Row','\x20has\x20no\x20render\x20config.','bases-dashboard-ui.pivot.count','bases-dashboard-ui.pivot.chartAndTable','conditions','jsxs','IImageIoService','toDate','UpdateBasePivotViewCommand','onMove','sortInfo','span','getTableFieldsByDataFieldId','data:','bases-dashboard-ui.pivot.valuePosition','PivotTableValuePositionEnum','descending','DEFAULT_CHART_SERIES_VALUES','PivotChart','univer-flex\x20univer-h-12\x20univer-shrink-0\x20univer-items-center\x20univer-gap-3\x20univer-border-b\x20univer-border-gray-200\x20univer-bg-gray-0\x20univer-px-4\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','RedoCommand','isPrefixValue','toUpperCase','CreatedAt','length','pipe','border-box','defineProperty','Series','max','_injector','documentElement','bases-dashboard-ui.pivot.showRowSubtotal','bases-dashboard-ui.pivot.displayName','average','bases-dashboard-ui.pivot.calculating','link','DEFAULT_CHART_WATERFALL_STYLE_VALUES','univer-w-full','MultiSelect','trendline','ChartLegendSection','base-pivot-chart','UndoCommand','pointermove','layout','ChartWordCloudStyleSection','ShapeTypeEnum','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','univer-text-sm\x20univer-font-medium','univer-border-gray-200\x20dark:!univer-border-gray-700','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','DependentOn','getResource','AscendingIcon','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','MobileSelect','Legend','Button','input','bases-dashboard-ui.config','DEFAULT_CHART_TRENDLINE_VALUES','bases-dashboard-ui.pivot.addToRow','chartRowDirection','dashboard-chart-setup','sum','rightYAxis','separator','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','bases-dashboard-ui.dashboard.image','Heatmap','parentElement','base-pivot-table-configuration','barStyle','UniverChartMobileUIPlugin','bases-dashboard-ui.chart.section.histogram','bases-dashboard-ui.chart.common.editChart','radar','preventDefault','fontSize','rowSpan','focusUnit','destructive','ChartSectionAccordion','indicatorLine','Inject','change','getDirection','fontSizeMode','bases-dashboard-ui.pivot.chartConfiguration','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','bases-dashboard-ui.pivot.pageWrap','ThemeService','ChartEditPanelSection','univer-pointer-events-none\x20univer-absolute\x20univer-right-1\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-items-center\x20univer-opacity-0\x20univer-transition-opacity\x20focus-within:univer-pointer-events-auto\x20focus-within:univer-opacity-100\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','univer-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','subUnitId','syncLayout','rowType','createRenderInput','onCommit','809856dEcESQ','ICommandService','debounce','BaseFieldType','chart-and-table','CalendarIcon','type','pointerY','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','bases-dashboard-ui.chart.section.wordCloud','base-pivot-fields','then','univer-min-h-11\x20univer-px-3\x20univer-text-base','constructor','shapeData','ChartTypeField','PivotTableFiledAreaEnum','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','repeat','operand','Person','Base\x20dashboard\x20chart\x20','key','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','univer-cursor-grab','textStyle','getSnapshot','map','exitFullscreen','ChartColorField','bases-dashboard-ui.pivot.filters','isArray','change$','univer-flex\x20univer-flex-col\x20univer-gap-4','_localeService','radius','borderClassName','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','bases-dashboard-ui.dashboard.new','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','header','Pivot','valueFields','bases-dashboard-ui.chart.common.switchRowColumn','bases-dashboard-ui.dashboard.editWidget','univer-left-px\x20univer-top-px\x20-univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nwse-resize','primary','IPermissionService','Treemap','bases-dashboard-ui.pivot.clearFilter','wordCloud','1620108ejzTZQ','BaseDashboardResourceService','bases-dashboard-ui.dashboard.resizeWidget','bases-dashboard-ui.chart.chartTypes.','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','univer-h-full\x20univer-w-full\x20univer-bg-transparent','univer-flex\x20univer-flex-col','backgroundColor','YYYY-MM-DD','currentTarget','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','name','DEFAULT_CHART_AXIS_VALUES','updateFieldPosition','bases-dashboard-ui.chart.section.pie','IAttachmentIoService','bases-dashboard-ui.dashboard.tableFilter','items','waterfall.negative','Funnel','some','bases-dashboard-ui.chart.common.customize','bases-dashboard-ui.dashboardInspector.dragWidget','RTLChartStyle','dashboards','ChartSectionAccordionItem','univer-grid\x20univer-gap-3','bases-dashboard-ui.operators.greaterThanOrEqual','clsx','Radar','contains','ChartHeatmapStyleSection','pluginName','stroke','bases-dashboard-ui.pivot.addToFilter','base-dashboard-pivot-chart-','bases-dashboard-ui.pivot.sourceFields','[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','univer-box-content\x20univer-size-1.5\x20univer-rounded-full\x20!univer-border-2\x20!univer-border-solid\x20!univer-border-white\x20!univer-bg-primary-600','bases-dashboard-ui.chart.common.verticalAxis','bases-dashboard-ui.chart.section.sunburst','measure','pivotViewId','toJSON','dataset','UniverBasesUIPlugin','bases-dashboard-ui.chart.section.relation','fill','view','localeKey','widgetOrder','USD','date','onDragStart','orient','lineAndArea','ILogService','isHeader','bases-dashboard-ui.dashboard.formulaShape','UNIVER_BASE','innerWidth','122VhBAoU','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','ChartIcon','NOT_CONTAINS','DEFAULT_CHART_INDICATOR_LINE_VALUES','section','Dom','ShapeLineTypeEnum','heatmap','bases-dashboard-ui.chart.common.series','ShapeFormulaService','DatePicker','useCallback','onFilter','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','ChartUIService','bases-dashboard-ui.pivot.showRowGrandTotal','bases-dashboard-ui.mobile.moveUp','bases-dashboard-ui.pivot.bottom','\x20/\x20span\x20','bases-dashboard-ui.operators.after','saveImage','Fragment','univer-mb-3\x20univer-text-sm\x20univer-font-medium','replace','markReady','IndicatorLine','VerticalAxis','Histogram','textColor','bases-dashboard-ui.pivot.layoutOutline','ChartCommonDataMappingSection','createParagraphId','appearance','bases-dashboard-ui.pivot.max','bases-dashboard-ui.pivot.top','DEFAULT_CHART_RELATION_VALUES','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','bases-dashboard-ui.chart.chartTypes.line','tableFieldId','univer-flex\x20univer-justify-end\x20univer-gap-2','fieldId','ceil','bases-dashboard-ui.chart.section.paretoBar','defaultValue','base-pivot-chart-style','univer-flex','bases-dashboard-ui.chart.common.rightVerticalAxis','bases-dashboard-ui.pivot.acrossThenDown','createElement','getId','displayMode','PivotLayoutTypeEnum','univer-flex-1','canEditBasePivotView','ChartEditPanel','clientX','WordCloud','Dialog','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','floor','legend','BASES_DASHBOARD_DEFAULT_ROW_HEIGHT','_configService','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','bases-dashboard-ui.operators.isNot','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','getDataFieldByTableId','dashboard-widget-','CHART_TYPE_CATALOG','univer-size-5\x20univer-text-primary-600','\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','row:','config','scrollbarClassName','useRef','bases-dashboard-ui.chart.section.indicatorLine','bases-dashboard-ui.pivot.numberFormat','formulaToEditorFormula','pie','ArrowDownIcon','bases-dashboard-ui.dashboardInspector.loading','UpsertBaseDashboardWidgetCommand','alt','useChartEditorHasRightAxis','canView','CHART_DATA_UPDATE_ANIMATION_DURATION','chartTypeSupportsLineAndAreaStyle','ChartGridlinesAndTicksSection','boxSizing','Candlestick','bases-dashboard-ui.dashboard.add','Axes','ChartLineAndAreaSection','getRect','baseChartDataAnimation','bases-dashboard-ui.chart.waterfall.subtotal','delete','univer-size-5\x20univer-rotate-90','chartId','dimension','bases-dashboard-ui.dashboardInspector.currency','series','contain','[data-dashboard-widget]','closest','getAttachmentUrl','InputNumber','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','univer-flex\x20univer-items-center\x20univer-gap-2','pageOverThenDown','ChartAxisSection','src','ChartStackField','ChartViewStateRegistry','bases-dashboard-ui.dashboardInspector.right','ChartHostAdapter','BASES_DASHBOARD_GRID_COLUMNS','getImage','stringify','bases-dashboard-ui.dashboardInspector.percent','jsx','TextIcon','bases-dashboard-ui.operators.lessThanOrEqual','ChartWaterfallSetupFields','Currency','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','ChartWaterfallStyleTarget','univer-relative\x20univer-z-10','source','_chartThemeService','compact','print','rowSubtotalPosition','univer-mx-auto\x20univer-size-6','itemTypes','bases-dashboard-ui.chart.common.setup','imageSourceType','getDashboard','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','px\x20solid\x20','checkMounted','ProtectIcon','onMoveDown','permissionPointUpdate$','Tooltip','bases-dashboard-ui.operators.isEmpty','\x20/\x20','baseOn','bases-dashboard-ui.pivot.selectAll','round','dataSource','createBasePivotTable','getImageSourceCache','univer-max-h-40\x20univer-text-base','custom','gray','snapshot','univer-bg-transparent\x20dark:!univer-bg-transparent','ChartWaterfallStyleSection','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','hidden','univer-text-gray-400','replaceChildren','getBaseDashboardPermissionObjectId','allSeriesStyle','bases-dashboard-ui.chart.common.chartAndAxisTitles','div','setLabelFilterInfo','GeneralSeries','IUniverInstanceService','setSubtotalType','ChartNumberFormatAtom','createFormulaShapeData','GripVerticalIcon','RecordId','useDependency','univer-flex\x20univer-min-h-full\x20univer-flex-col','alignment','MultipleGrandTotal','NumberIcon','ChartGradientFillField','DEFAULT_CHART_PARETO_VALUES','style$','UnitObject','segmented','value','base-pivot-chart-setup','removeEventListener','Filter','ChartThreeDSection','viewOrder','bases-dashboard-ui.pivot.pivotConfiguration','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','dateKit','removeField','generateRandomId','TableFilter','onCancel','bases-dashboard-ui.pivot.sum','Number','UniverInstanceType','LocaleService','select','bases-dashboard-ui.dashboardInspector.formula','initial','getOptions','Rating','PivotTableIcon','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','renderTransition','PivotFilterTypeEnum','rgb','RedoIcon','undos','scrollHeight','bases-dashboard-ui.pivot.confirm','bases-dashboard-ui.dashboardInspector.alignment','bases-dashboard-ui.pivot.rows','resolveChartRuntimeStyle','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','Disposable','supports','showRowSubtotal','bases-dashboard-ui.dashboardInspector.cover','Progress','ChartRelationStyleSection','bases-dashboard-ui.pivot.repeatColumnLabels','univer-truncate','bases-dashboard-ui.dashboardInspector.editFormula','waterfall','currentTheme$','bases-dashboard-ui.pivot.dataSource','minmax(0,\x201fr)','_config','onDrop','tables','bases-dashboard-ui.pivot.countNumbers','bases-dashboard-ui.pivot.fieldSettings','Plugin','titles','aside','bases-dashboard-ui.dashboardInspector.left','PivotDataFieldDataTypeEnum','univer-grid\x20univer-gap-4','DEFAULT_CHART_WATERFALL_SETUP_VALUES','chart','useEffect','fields','_renderModelManager','bases-dashboard-ui.pivot.columns','bases-dashboard-ui.dashboardInspector.custom','canEditBaseDashboard','ActivateBaseViewOperation','lastRow','DescendingIcon','ObjectPermissionService','Column','onDragEnd','mode','labelId','Trendline','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','Select','scrollTop','config$','Boxplot','widgets','UpdateBaseDashboardCommand','univer-w-full\x20univer-justify-start','shapeId','PivotDataFieldSortOperatorEnum','ParetoLineSeries','url(','original','true','CONTAINS','rowCount','bases-dashboard-ui.chart.section.gauge','DropdownMenu','-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','result','useState','ChartRadarStyleSection','ChartSectionAccordionTrigger','bases-dashboard-ui.dashboardInspector.contain','toStringTag','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','views','bases-dashboard-ui.dashboard.defaultName','getUnit','style','IS_NOT','bases-dashboard-ui.dashboard.configure','table','useMemo','count','ChartTypeSpecificStyleSection','bases-dashboard-ui.pivot.stdDevPopulation','base64Cache','ChartTitlesSection','relation','rowView','ChartPieStyleSection','univer-shrink-0\x20univer-px-3','MoreDownIcon','BaseFilterConjunction','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','row','1.3.1','showColSubtotal','filterFields','height','bases-dashboard-ui.pivot.layoutTabular','univer-m-3','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','ManualFilter','pageRows','catch','cancel','getResult','slice','disconnect','dashboard-text-','IConfigService','bases-dashboard-ui.dashboardInspector.autoFit','split','getValueIndex','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','createPortal','SearchIcon','refreshChartRuntime','filterInfo','1239201BErxPT','bases-dashboard-ui.dashboard.addWidget','bases-dashboard-ui.pivot.repeatRowLabels','univer-min-w-0\x20univer-flex-1','ChartTypeBits','waterfall.positive','bases-dashboard-ui.dashboardInspector.delete','includes','bases-dashboard-ui.dashboard.undo','16AlJIMZ','univer-bg-gray-0\x20dark:!univer-bg-gray-900','values','univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','LESS_THAN','Checkbox','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','Chord','numfmt','no-repeat','axis','prefix','countNums','setStyle','BaseChartRuntimeService','numberFormat','chartType','bottom','auto','bases-dashboard-ui.dashboardInspector.center','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','FilterIcon','touchDependencies','dom','ChartFunnelStyleSection','bases-dashboard-ui.dashboardInspector.data','RoundRect','field','displayName','flatMap','function','univer-mt-2','univer-size-8\x20univer-p-0\x20univer-text-red-500','left','univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','changed$','BaseViewType','scrollWidth','flex-start','Textarea','UniverBaseDashboardPlugin','bases-dashboard-ui.pivot.grandTotal','CreateBaseDashboardCommand','percent','PivotSubtotalTypeEnum','getRuntimeContext','None','has','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','redos','BaseDashboard','bases-dashboard-ui.dashboardInspector.textSize','BASE_DASHBOARD_UI_PLUGIN','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','Input','bases-dashboard-ui.pivot.cancel','addImageSourceCache','301080IaOyYk','ShapeFillEnum','DEFAULT_CHART_HEATMAP_VALUES','univer-grid\x20univer-gap-2\x20univer-p-3','funnel','bases-dashboard-ui.dashboardInspector.close','sourceType','univer-mb-2\x20univer-border-collapse\x20univer-text-sm','get','_createContext','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','ImageSourceType','showRowGrandTotal','disposeWithMe','colCount','bases-dashboard-ui.dashboardInspector.grouped','errorType','documentStyle','ArrowUpIcon','Line','fullscreenchange','area','bases-dashboard-ui.dashboardInspector.number','merge','tableOrder','chartTypeCanUseTrendLine','number','bases-dashboard-ui.pivot.description','Subtotal','isErrorValue','bases-dashboard-ui.chart.','repeatColLabels','univer-size-11\x20univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','innerHeight','515853yMBhoK','data','UpdatedAt','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','bases-dashboard-ui.chart.common.horizontalAxis','dataAggregation','visibilityState','size','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','setFieldFormat','valuePosition','MobileChartEditorControls','subscribe','observe','BaseMobileFilterPanel','setConfig','small','register','var','ParetoBarSeries','bases-dashboard-ui.dashboard.pivotChart','DEFAULT_CHART_FUNNEL_VALUES','matchMedia','ascending','img','toLocaleLowerCase','BaseDashboardWidgetType','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','width','univer-text-right','file','ChartTypeSpecificDataSection','stopPropagation','GridlinesAndTicks','0\x200','univer-mx-auto\x20univer-mt-4\x20univer-shrink-0','dataModel','bases-dashboard-ui.dashboard.deleteWidget','allowMultiple','bases-dashboard-ui.pivot.filterField','darkMode','options','ChartEditorProvider','acquireChartRuntime','bases-dashboard-ui.dashboard.widgetActions','univer-w-24','_element','bases-dashboard-ui.pivot.dropFieldsHere','DEFAULT_CHART_LINE_AND_AREA_VALUES','(prefers-reduced-motion:\x20reduce)','DEFAULT_CHART_WORD_CLOUD_VALUES','RemoveBaseDashboardWidgetCommand','label','tbody','ChartTrendlineSection','UniverChartUIPlugin','list','document','isConnected','add','Group','system','Area','bases-dashboard-ui.dashboardInspector.newCondition','PivotCellStyleTypeEnum','bases-dashboard-ui.pivot.variance','clientHeight','Text','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','bases-dashboard-ui.dashboardInspector.backgroundImage','dataView','packageName','toMenuFields','subtotal','DeleteIcon','UniverShapeEditorPlugin','WaterfallSeries','univer-text-sm','IBaseDashboardUIExtensionRegistryService','bases-dashboard-ui.chart.common.chartStyle','bases-dashboard-ui.dashboardInspector.decimalPlaces','ChartEditPanelTab','clientY','bases-dashboard-ui.pivot.defaultName','every','bases-dashboard-ui.dashboardInspector.reset','LineAndArea','univer-pointer-events-auto\x20univer-opacity-100','AND','onMoveUp','getOwnPropertyDescriptor','bases-dashboard-ui.chart.section.paretoLine','subItem','requestFullscreen','pivot','current','bases-dashboard-ui.dashboardInspector.clear','outline','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','bases-dashboard-ui.pivot.stdDev','setSortInfo','ownerDocument','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','SolidFill','DeleteBaseDashboardCommand','from','min','bases-dashboard-ui.dashboard.delete','PenIcon','Relation','blank','indexOf','formulaBinding','bases-dashboard-ui.dashboardInspector.textColor','bases-dashboard-ui.pivot.tableOnly','cover','base-pivot-chart-','target','DEFAULT_CHART_PIE_VALUES','combineLatest','onDragOver','getChartRuntime','ChartThemeField','bases-dashboard-ui.dashboardInspector.description','onReady','bases-dashboard-ui.pivot.summarizeBy','createDomChartInstance','toChartModelUpdate','waterfallStyle','-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','rightY','bases-dashboard-ui.dashboardInspector.repeat','showColGrandTotal','dashboard-','UniverBaseDashboardMobileUIPlugin','ChartEditPanelTabs','UniverLicensePlugin','347081dgbtIs','format','bases-dashboard-ui.pivot.searchFields','column','keydown','ChartStyle','bases-dashboard-ui.dashboardInspector.selectOption','border','15fabhfp','item','bases-dashboard-ui.pivot.options','ChartAndAxisTitles','Positive','ChartStyleSection','rootContainerElement','Waterfall','IBaseViewUIRegistryService','text','data$','bases-dashboard-ui.dashboardInspector.currencyCode','bases-dashboard-ui.dashboardInspector.removeImage','saveAttachment','lineStrokeType','test','page:','bases-dashboard-ui.dashboard.fullScreen','BaseUnitCollaborationStatus','univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','bases-dashboard-ui.pivot.addToColumn','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','DEFAULT_CHART_RADAR_VALUES','onRemove','bases-dashboard-ui.dashboardInspector.compact','end','bases-dashboard-ui.chart.section.chord','title','onSettings','dispose','renameField','General','find','bases-dashboard-ui.dashboardInspector.checked','colView','formatMap','matches','bases-dashboard-ui.dashboardInspector.replaceImage','bases-dashboard-ui.pivot.min','symbol','bases-dashboard-ui.dashboardInspector.sourceUnavailable','move','UndoIcon','getCurrentTheme','image/*','ChartSeriesSection','Data','bases-dashboard-ui.pivot.layout','bases-dashboard-ui.pivot.showColumnGrandTotal','bases-dashboard-ui.dashboardInspector.editData','openObjectPermissionDialog','currency','bases-dashboard-ui.dashboardInspector.backgroundColor','bases-dashboard-ui.pivot.name','bases-dashboard-ui.pivot.values','IncreaseIcon','executeCommand','borderRadius','model','MoreHorizontalIcon','index','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','base-pivot-options','object','pointerup','transparent','info','Sankey'];_0x14db=function(){return _0x2e032e;};return _0x14db();}function he(_0x335cc0){const _0x4c8791=_0x10fa58;let {config:_0x70526b,onChange:_0x430262,runtime:_0x3f87f0,tableName:_0x4209ac}=_0x335cc0,_0x2ad81d=(0x0,m[_0x4c8791(0x162)])(W),_0x3039e5=(0x0,m['useDependency'])(a[_0x4c8791(0x17c)]),[_0x55e936,_0x18f2fd]=(0x0,h[_0x4c8791(0x1cc)])(n['ChartEditPanelTab'][_0x4c8791(0x323)]),_0x47a4e7=(0x0,h['useMemo'])(()=>new n[(_0x4c8791(0x126))](_0x3f87f0[_0x4c8791(0x32f)],{'commit':_0x49a514=>{const _0x8f2565=_0x4c8791;var _0x1b9a7c;let _0xb2971c=_0x3f87f0[_0x8f2565(0x32f)],_0x4e32b2=(0x0,_[_0x8f2565(0x2e3)])(_0x49a514,{'series':(_0x1b9a7c=_0xb2971c['config'])==null?void 0x0:_0x1b9a7c[_0x8f2565(0x118)],'currentChartType':_0xb2971c[_0x8f2565(0x218)],'currentStyle':_0xb2971c[_0x8f2565(0x1d5)],'currentContext':_0xb2971c[_0x8f2565(0x36b)],'currentDataAggregation':_0xb2971c[_0x8f2565(0x269)]});_0x430262({'chart':ge(_0x70526b['chart'],_0x4e32b2)});}}),[_0x70526b[_0x4c8791(0x1a8)],_0x430262,_0x3f87f0]),_0x1467ed=(0x0,h[_0x4c8791(0x1d9)])(()=>(0x0,n[_0x4c8791(0x3a1)])(n[_0x4c8791(0xf7)][_0x4c8791(0x47e)](_0x2abaae=>({..._0x2abaae,'label':_0x3039e5['t'](be(_0x2abaae[_0x4c8791(0x1b6)]))}))),[_0x3039e5]);return(0x0,g[_0x4c8791(0x12b)])(n['MobileChartEditorProvider'],{'chartUIService':_0x2ad81d,'hostAdapter':_0x47a4e7,'children':(0x0,g['jsxs'])(_0x4c8791(0x159),{'className':_0x4c8791(0x1b8),'children':[(0x0,g['jsx'])(n[_0x4c8791(0x2eb)],{'ariaLabel':_0x3039e5['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x4c8791(0x1e2),'items':[{'label':_0x3039e5['t']('bases-dashboard-ui.chart.common.setup'),'panelId':_0x4c8791(0x16d),'value':n['ChartEditPanelTab'][_0x4c8791(0x323)]},{'label':_0x3039e5['t'](_0x4c8791(0x4ab)),'panelId':_0x4c8791(0xdf),'value':n[_0x4c8791(0x2b5)][_0x4c8791(0x34e)]}],'value':_0x55e936,'onChange':_0x18f2fd}),_0x55e936===n['ChartEditPanelTab'][_0x4c8791(0x323)]?(0x0,g[_0x4c8791(0x12b)])(n[_0x4c8791(0xe9)],{'id':'base-pivot-chart-setup','label':_0x3039e5['t'](_0x4c8791(0x13a)),'children':(0x0,g['jsxs'])('div',{'className':_0x4c8791(0x474),'children':[(0x0,g[_0x4c8791(0x12b)])(n[_0x4c8791(0x472)],{'options':_0x1467ed}),(0x0,g[_0x4c8791(0x12b)])(n[_0x4c8791(0x3de)],{}),(0x0,g[_0x4c8791(0x12b)])(n['ChartThemeField'],{}),(0x0,g[_0x4c8791(0x12b)])(_e,{}),(0x0,g['jsx'])(n[_0x4c8791(0x123)],{}),(0x0,g[_0x4c8791(0x402)])('div',{'children':[(0x0,g[_0x4c8791(0x12b)])(n['ChartEditBlockTitle'],{'title':_0x3039e5['t'](_0x4c8791(0x19a))}),(0x0,g[_0x4c8791(0x12b)])(f[_0x4c8791(0x23f)],{'disabled':!0x0,'value':_0x4209ac})]}),(0x0,g[_0x4c8791(0x12b)])(n[_0x4c8791(0xd1)],{'orientationControl':(0x0,g[_0x4c8791(0x12b)])(f[_0x4c8791(0x438)],{'size':_0x4c8791(0x274),'onClick':()=>_0x430262({'chart':{..._0x70526b[_0x4c8791(0x1a8)],'orient':_0x70526b[_0x4c8791(0x1a8)][_0x4c8791(0x4cc)]==='row'?_0x4c8791(0x2f0):_0x4c8791(0x1e6)}}),'children':_0x3039e5['t'](_0x4c8791(0x48e))})}),(0x0,g[_0x4c8791(0x12b)])(n[_0x4c8791(0x283)],{}),(0x0,g[_0x4c8791(0x12b)])(n['ChartWaterfallSetupFields'],{'defaultValues':K[_0x4c8791(0x198)]}),(0x0,g[_0x4c8791(0x402)])(_0x4c8791(0x159),{'children':[(0x0,g[_0x4c8791(0x12b)])(n['ChartEditBlockTitle'],{'title':_0x3039e5['t'](_0x4c8791(0x3aa))}),(0x0,g[_0x4c8791(0x12b)])(G,{'value':_0x70526b[_0x4c8791(0xe5)],'options':[{'value':_0x4c8791(0x467),'label':_0x3039e5['t'](_0x4c8791(0x400))},{'value':'chart','label':_0x3039e5['t'](_0x4c8791(0x3ad))},{'value':_0x4c8791(0x1d8),'label':_0x3039e5['t'](_0x4c8791(0x2d6))}],'onChange':_0x37c1c4=>{const _0x2325a9=_0x4c8791;(_0x37c1c4===_0x2325a9(0x467)||_0x37c1c4===_0x2325a9(0x1a8)||_0x37c1c4===_0x2325a9(0x1d8))&&_0x430262({'displayMode':_0x37c1c4});}})]})]})}):(0x0,g[_0x4c8791(0x12b)])(n[_0x4c8791(0xe9)],{'id':_0x4c8791(0xdf),'label':_0x3039e5['t']('bases-dashboard-ui.chart.common.customize'),'children':(0x0,g[_0x4c8791(0x12b)])(ve,{})})]})});}function ge(_0x3918be,_0x1fb5da){const _0x56e2c6=_0x10fa58;return{..._0x3918be,'type':_0x1fb5da[_0x56e2c6(0x218)]??_0x3918be[_0x56e2c6(0x469)],'style':_0x1fb5da['style']??_0x3918be[_0x56e2c6(0x1d5)],'context':_0x1fb5da[_0x56e2c6(0x36b)]??_0x3918be[_0x56e2c6(0x36b)],'dataAggregation':_0x1fb5da[_0x56e2c6(0x269)]??_0x3918be[_0x56e2c6(0x269)]};}function _e(){const _0x1bdb9e=_0x10fa58;let _0x46f819=(0x0,n['useChartEditorChartType'])();return(0x0,g[_0x1bdb9e(0x12b)])(n[_0x1bdb9e(0x167)],{'visible':me[_0x1bdb9e(0x2b8)](_0x24e3ea=>!_[_0x1bdb9e(0x3fb)][_0x1bdb9e(0x146)](_0x46f819,_0x24e3ea))});}function q(_0x564575){const _0x2a5690=_0x10fa58;return(0x0,g[_0x2a5690(0x402)])(n[_0x2a5690(0x4af)],{'id':_0x564575['id'],'children':[(0x0,g[_0x2a5690(0x12b)])(n[_0x2a5690(0x1ce)],{'children':_0x564575['label']}),(0x0,g['jsx'])(n[_0x2a5690(0x3df)],{'children':_0x564575['children']})]});}function ve(){const _0x404c14=_0x10fa58;let _0x3d7c4c=(0x0,m['useDependency'])(a['LocaleService']),_0x37a2dd=(0x0,n['useChartEditorChartType'])(),_0x28c0ae=(0x0,n[_0x404c14(0x106)])(),[_0x1f803e,_0x4c4002]=(0x0,h[_0x404c14(0x1cc)])(null),_0x41be52=_[_0x404c14(0x3fb)][_0x404c14(0x146)](_0x37a2dd,_[_0x404c14(0x203)][_0x404c14(0x3e7)]),_0x4cf847=_0x37a2dd===_[_0x404c14(0x203)][_0x404c14(0x4b3)],_0x4c5495=_0x37a2dd===_[_0x404c14(0x203)]['WordCloud'],_0x167cdc=_0x37a2dd===_[_0x404c14(0x203)]['Funnel'],_0x2a8176=_['chartBitsUtils'][_0x404c14(0x146)](_0x37a2dd,_['ChartTypeBits'][_0x404c14(0x385)]),_0x5b694d=_0x37a2dd===_[_0x404c14(0x203)][_0x404c14(0x2d1)],_0x1405c7=_0x37a2dd===_[_0x404c14(0x203)][_0x404c14(0x2fc)],_0x67acc5=_0x37a2dd===_[_0x404c14(0x203)][_0x404c14(0x378)],_0x109eaa=_0x37a2dd===_[_0x404c14(0x203)][_0x404c14(0x444)],_0xc81bc6=(0x0,n[_0x404c14(0x3d0)])(_0x37a2dd,n[_0x404c14(0x34c)][_0x404c14(0x15b)])&&!_0x2a8176&&!_0x67acc5,_0x1fc011=ye(_0x37a2dd,_0x3d7c4c);return(0x0,g[_0x404c14(0x402)])(n[_0x404c14(0x451)],{'value':_0x1f803e,'onChange':_0x4c4002,'children':[(0x0,g[_0x404c14(0x12b)])(q,{'id':n['ChartEditPanelSection'][_0x404c14(0x2f2)],'label':_0x3d7c4c['t'](_0x404c14(0x2b3)),'children':(0x0,g[_0x404c14(0x12b)])(n[_0x404c14(0x2fa)],{'defaultValues':K[_0x404c14(0x1d5)]})}),(0x0,g['jsx'])(q,{'id':n[_0x404c14(0x45b)][_0x404c14(0x2f8)],'label':_0x3d7c4c['t'](_0x404c14(0x158)),'children':(0x0,g[_0x404c14(0x12b)])(n[_0x404c14(0x1de)],{'commitMode':'blur','defaultValues':K[_0x404c14(0x1a2)]})}),(0x0,g[_0x404c14(0x12b)])(n['ChartThreeDSection'],{'section':_0x404c14(0x4c6)}),_0xc81bc6&&(0x0,g['jsx'])(q,{'id':n['ChartEditPanelSection'][_0x404c14(0x41a)],'label':_0x3d7c4c['t'](_0x404c14(0x4dc)),'children':(0x0,g[_0x404c14(0x12b)])(n[_0x404c14(0x322)],{'defaultValues':K['series'],'NumberFormatField':n[_0x404c14(0x15e)]})}),_0x1405c7&&(0x0,g[_0x404c14(0x12b)])(q,{'id':n[_0x404c14(0x45b)][_0x404c14(0x2b0)],'label':_0x3d7c4c['t'](_0x404c14(0x3cc)),'children':(0x0,g[_0x404c14(0x12b)])(n['ChartWaterfallStyleSection'],{'defaultValues':K[_0x404c14(0x2e4)],'getDefaultBucketName':({seriesName:_0x43ca69,target:_0x1b16fe})=>_0x1b16fe===_[_0x404c14(0x131)][_0x404c14(0x25e)]?_0x3d7c4c['t'](_0x404c14(0x112)):_0x43ca69?_0x43ca69+'-('+_0x3d7c4c['t']('bases-dashboard-ui.chart.'+(_0x1b16fe===_[_0x404c14(0x131)][_0x404c14(0x2f9)]?_0x404c14(0x204):_0x404c14(0x4a8)))+')':'','NumberFormatField':n['ChartNumberFormatAtom']})}),_0x67acc5&&(0x0,g[_0x404c14(0x402)])(g[_0x404c14(0xc8)],{'children':[(0x0,g[_0x404c14(0x12b)])(q,{'id':n[_0x404c14(0x45b)][_0x404c14(0x277)],'label':_0x3d7c4c['t'](_0x404c14(0xdd)),'children':(0x0,g[_0x404c14(0x12b)])(n[_0x404c14(0x3ab)],{'defaultValues':K[_0x404c14(0x386)],'NumberFormatField':n[_0x404c14(0x15e)],'showDataPointEditor':!0x0,'target':_0x404c14(0x447)})}),(0x0,g['jsx'])(q,{'id':n['ChartEditPanelSection'][_0x404c14(0x1c2)],'label':_0x3d7c4c['t'](_0x404c14(0x2bf)),'children':(0x0,g[_0x404c14(0x12b)])(n[_0x404c14(0x3ab)],{'defaultValues':K[_0x404c14(0x386)],'NumberFormatField':n['ChartNumberFormatAtom'],'showDataPointEditor':!0x1,'target':'cumulativeLineStyle'})})]}),_0x41be52&&(0x0,g[_0x404c14(0x12b)])(q,{'id':n[_0x404c14(0x45b)][_0x404c14(0x3af)],'label':_0x3d7c4c['t']('bases-dashboard-ui.chart.section.pie'),'children':(0x0,g[_0x404c14(0x12b)])(n[_0x404c14(0x1e1)],{'defaultValues':K[_0x404c14(0x101)],'NumberFormatField':n[_0x404c14(0x15e)]})}),_0x4c5495&&(0x0,g[_0x404c14(0x12b)])(q,{'id':n[_0x404c14(0x45b)][_0x404c14(0xeb)],'label':_0x3d7c4c['t'](_0x404c14(0x46c)),'children':(0x0,g[_0x404c14(0x12b)])(n[_0x404c14(0x42c)],{'defaultValues':K[_0x404c14(0x495)]})}),_0x4cf847&&(0x0,g[_0x404c14(0x12b)])(q,{'id':n['ChartEditPanelSection']['Radar'],'label':_0x3d7c4c['t'](_0x404c14(0x342)),'children':(0x0,g[_0x404c14(0x12b)])(n['ChartRadarStyleSection'],{'defaultValues':K[_0x404c14(0x44b)]})}),_0x167cdc&&(0x0,g[_0x404c14(0x12b)])(q,{'id':n[_0x404c14(0x45b)][_0x404c14(0x4a9)],'label':_0x3d7c4c['t']('bases-dashboard-ui.chart.section.funnel'),'children':(0x0,g['jsx'])(n[_0x404c14(0x221)],{'defaultValues':K[_0x404c14(0x246)],'gapControl':'select'})}),_0x109eaa&&(0x0,g[_0x404c14(0x12b)])(q,{'id':n[_0x404c14(0x45b)][_0x404c14(0x444)],'label':_0x3d7c4c['t'](_0x404c14(0x3b8)),'children':(0x0,g['jsx'])(n[_0x404c14(0x4b5)],{'defaultValues':K['heatmap']})}),_0x5b694d&&(0x0,g['jsx'])(q,{'id':n[_0x404c14(0x45b)][_0x404c14(0x2d1)],'label':_0x3d7c4c['t'](_0x404c14(0x4c4)),'children':(0x0,g[_0x404c14(0x12b)])(n[_0x404c14(0x194)],{'defaultValues':K[_0x404c14(0x1df)]})}),(0x0,n['chartTypeSupportsLineAndAreaStyle'])(_0x37a2dd)&&(0x0,g[_0x404c14(0x12b)])(q,{'id':n[_0x404c14(0x45b)][_0x404c14(0x2ba)],'label':_0x3d7c4c['t'](_['chartBitsUtils'][_0x404c14(0x146)](_0x37a2dd,_[_0x404c14(0x203)][_0x404c14(0x2a2)])?_0x404c14(0x3f4):_0x404c14(0xd8)),'children':(0x0,g[_0x404c14(0x12b)])(n[_0x404c14(0x10f)],{'defaultValues':K['lineAndArea'],'lineStyleControl':_0x404c14(0x16b)})}),(0x0,n[_0x404c14(0x3d0)])(_0x37a2dd,n[_0x404c14(0x34c)][_0x404c14(0x437)])&&(0x0,g['jsx'])(q,{'id':n['ChartEditPanelSection'][_0x404c14(0x437)],'label':_0x3d7c4c['t'](_0x404c14(0x373)),'children':(0x0,g[_0x404c14(0x12b)])(n[_0x404c14(0x427)],{'defaultValues':K['legend']})}),(0x0,n[_0x404c14(0x3d0)])(_0x37a2dd,n['ChartEditorCapability'][_0x404c14(0x10e)])&&(0x0,g['jsxs'])(g[_0x404c14(0xc8)],{'children':[(0x0,g[_0x404c14(0x12b)])(q,{'id':n['ChartEditPanelSection']['HorizontalAxis'],'label':_0x3d7c4c['t'](_0x404c14(0x268)),'children':(0x0,g[_0x404c14(0x12b)])(n[_0x404c14(0x121)],{'axis':'x','defaultValues':K[_0x404c14(0x212)],'NumberFormatField':n[_0x404c14(0x15e)]})}),(0x0,g['jsx'])(q,{'id':n[_0x404c14(0x45b)][_0x404c14(0xcd)],'label':_0x3d7c4c['t'](_0x404c14(0x4bd)),'children':(0x0,g[_0x404c14(0x12b)])(n[_0x404c14(0x121)],{'axis':'y','defaultValues':K[_0x404c14(0x212)],'NumberFormatField':n[_0x404c14(0x15e)]})}),(0x0,g[_0x404c14(0x12b)])(n[_0x404c14(0x170)],{'section':'depthAxis'}),_0x28c0ae&&(0x0,g['jsx'])(q,{'id':n[_0x404c14(0x45b)]['RightVerticalAxis'],'label':_0x3d7c4c['t'](_0x404c14(0xe1)),'children':(0x0,g['jsx'])(n[_0x404c14(0x121)],{'axis':'rightY','defaultValues':K[_0x404c14(0x212)],'NumberFormatField':n['ChartNumberFormatAtom']})}),(0x0,g['jsx'])(q,{'id':n[_0x404c14(0x45b)][_0x404c14(0x285)],'label':_0x3d7c4c['t'](_0x404c14(0x3ba)),'children':(0x0,g[_0x404c14(0x12b)])(n[_0x404c14(0x10a)],{'defaultValues':K[_0x404c14(0x212)]})})]}),(0x0,n[_0x404c14(0x3d0)])(_0x37a2dd,n[_0x404c14(0x34c)]['IndicatorLine'])&&(0x0,g[_0x404c14(0x12b)])(q,{'id':n['ChartEditPanelSection']['IndicatorLine'],'label':_0x3d7c4c['t'](_0x404c14(0xfe)),'children':(0x0,g['jsx'])(n[_0x404c14(0x35b)],{'defaultValues':K[_0x404c14(0x452)]})}),(0x0,_[_0x404c14(0x25b)])(_0x37a2dd)&&(0x0,g['jsx'])(q,{'id':n[_0x404c14(0x45b)][_0x404c14(0x1b7)],'label':_0x3d7c4c['t']('bases-dashboard-ui.chart.common.trendline'),'children':(0x0,g[_0x404c14(0x12b)])(n['ChartTrendlineSection'],{'defaultValues':K[_0x404c14(0x426)]})}),_0x1fc011&&(0x0,g[_0x404c14(0x12b)])(q,{'id':_0x1fc011['id'],'label':_0x1fc011[_0x404c14(0x298)],'children':(0x0,g[_0x404c14(0x12b)])(n[_0x404c14(0x1db)],{})})]});}function ye(_0x57529f,_0x5e10c5){const _0x5b546c=_0x10fa58;let _0x3fb5c6={[_['ChartTypeBits'][_0x5b546c(0x10c)]]:{'id':n[_0x5b546c(0x45b)][_0x5b546c(0x10c)],'localeKey':'bases-dashboard-ui.chart.section.candlestick'},[_[_0x5b546c(0x203)][_0x5b546c(0xce)]]:{'id':n[_0x5b546c(0x45b)]['Histogram'],'localeKey':_0x5b546c(0x449)},[_[_0x5b546c(0x203)]['Treemap']]:{'id':n[_0x5b546c(0x45b)][_0x5b546c(0x493)],'localeKey':_0x5b546c(0x369)},[_['ChartTypeBits'][_0x5b546c(0x361)]]:{'id':n['ChartEditPanelSection']['Sunburst'],'localeKey':'bases-dashboard-ui.chart.section.sunburst'},[_[_0x5b546c(0x203)][_0x5b546c(0x375)]]:{'id':n['ChartEditPanelSection'][_0x5b546c(0x375)],'localeKey':_0x5b546c(0x1c8)},[_[_0x5b546c(0x203)][_0x5b546c(0x20f)]]:{'id':n['ChartEditPanelSection'][_0x5b546c(0x20f)],'localeKey':'bases-dashboard-ui.chart.section.chord'}}[_0x57529f];return _0x3fb5c6?{'id':_0x3fb5c6['id'],'label':_0x5e10c5['t'](_0x3fb5c6['localeKey'])}:null;}function be(_0x386b23){const _0x3de922=_0x10fa58;return _0x3de922(0x499)+_0x386b23;}function xe({onChange:_0x2211b6,onEditData:_0x476d59,runtime:_0x25fc26,sourceChart:_0x27f283,sourceName:_0x13ba46,widget:_0x5bbfb4}){const _0x11b496=_0x10fa58;let _0x4b2608=(0x0,m['useDependency'])(W),_0x1f44b0=(0x0,m[_0x11b496(0x162)])(a[_0x11b496(0x17c)]),[_0x5c7b0c,_0x3ca59c]=(0x0,h[_0x11b496(0x1cc)])(n[_0x11b496(0x2b5)][_0x11b496(0x323)]),_0xf41e6d=_0x5bbfb4[_0x11b496(0x1a8)]??_0x27f283,_0x719bcf=(0x0,h['useMemo'])(()=>new n[(_0x11b496(0x126))](_0x25fc26[_0x11b496(0x32f)],{'commit':_0x6bbed8=>{const _0xc7f210=_0x11b496;var _0x4c1ab6;let _0x2632fc=_0x25fc26[_0xc7f210(0x32f)],_0x1711de=(0x0,_[_0xc7f210(0x2e3)])(_0x6bbed8,{'series':(_0x4c1ab6=_0x2632fc['config'])==null?void 0x0:_0x4c1ab6[_0xc7f210(0x118)],'currentChartType':_0x2632fc['chartType'],'currentStyle':_0x2632fc['style'],'currentContext':_0x2632fc[_0xc7f210(0x36b)],'currentDataAggregation':_0x2632fc[_0xc7f210(0x269)]});_0x2211b6({..._0x5bbfb4,'chart':ge(_0xf41e6d,_0x1711de)})['catch'](()=>void 0x0);}}),[_0xf41e6d,_0x2211b6,_0x25fc26,_0x5bbfb4]),_0x4e30e7=(0x0,h[_0x11b496(0x1d9)])(()=>(0x0,n['buildChartTypeSelectOptions'])(n[_0x11b496(0xf7)][_0x11b496(0x47e)](_0x47f77b=>({..._0x47f77b,'label':_0x1f44b0['t'](Se(_0x47f77b[_0x11b496(0x1b6)]))}))),[_0x1f44b0]);return(0x0,g[_0x11b496(0x12b)])(n[_0x11b496(0x28e)],{'chartUIService':_0x4b2608,'hostAdapter':_0x719bcf,'children':(0x0,g['jsxs'])(_0x11b496(0x159),{'data-dashboard-chart-inspector':!0x0,'className':_0x11b496(0x35e),'children':[(0x0,g[_0x11b496(0x12b)])(n[_0x11b496(0x2eb)],{'ariaLabel':_0x1f44b0['t'](_0x11b496(0x44a)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x1f44b0['t'](_0x11b496(0x13a)),'panelId':'dashboard-chart-setup','value':n[_0x11b496(0x2b5)]['Data']},{'label':_0x1f44b0['t'](_0x11b496(0x4ab)),'panelId':_0x11b496(0x365),'value':n[_0x11b496(0x2b5)][_0x11b496(0x34e)]}],'value':_0x5c7b0c,'onChange':_0x3ca59c}),_0x5c7b0c===n[_0x11b496(0x2b5)][_0x11b496(0x323)]?(0x0,g[_0x11b496(0x12b)])(n[_0x11b496(0xe9)],{'id':_0x11b496(0x43e),'label':_0x1f44b0['t'](_0x11b496(0x13a)),'children':(0x0,g[_0x11b496(0x402)])('div',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','children':[(0x0,g[_0x11b496(0x12b)])(n[_0x11b496(0x472)],{'options':_0x4e30e7}),(0x0,g[_0x11b496(0x12b)])(n[_0x11b496(0x3de)],{}),(0x0,g[_0x11b496(0x12b)])(n['ChartThemeField'],{}),(0x0,g[_0x11b496(0x12b)])(_e,{}),(0x0,g['jsx'])(n[_0x11b496(0x123)],{}),(0x0,g['jsxs'])('div',{'children':[(0x0,g[_0x11b496(0x12b)])(n[_0x11b496(0x33b)],{'title':_0x1f44b0['t'](_0x11b496(0x377))}),(0x0,g[_0x11b496(0x12b)])(f[_0x11b496(0x23f)],{'disabled':!0x0,'value':_0x13ba46}),(0x0,g[_0x11b496(0x12b)])(f[_0x11b496(0x438)],{'className':_0x11b496(0x3f6),'onClick':_0x476d59,'children':_0x1f44b0['t'](_0x11b496(0x326))})]})]})}):(0x0,g['jsx'])(n[_0x11b496(0xe9)],{'id':_0x11b496(0x365),'label':_0x1f44b0['t'](_0x11b496(0x4ab)),'children':(0x0,g[_0x11b496(0x12b)])(ve,{})})]})});}function Se(_0x2bd5e1){const _0x303ec0=_0x10fa58;return _0x303ec0(0x499)+_0x2bd5e1;}const Ce=[_0x10fa58(0x357),_0x10fa58(0x25c),_0x10fa58(0x234),_0x10fa58(0x328),'grouped',_0x10fa58(0x135)];function we({base:_0x3ba66a,onChange:_0xc19db9,onSelectBackgroundImage:_0x2c70f7,widget:_0x3f8a19}){const _0x55313=_0x10fa58;var _0x28c2cf;let _0x112f23=(0x0,m[_0x55313(0x162)])(a[_0x55313(0x17c)]),_0x3f32c2=(0x0,m[_0x55313(0x162)])(a[_0x55313(0x45a)]),_0x4d7dce=(0x0,m[_0x55313(0x3e1)])(()=>_0x3f32c2[_0x55313(0x199)],_0x3f32c2[_0x55313(0x320)](),!0x1,[_0x3f32c2]),_0x1101c6=(0x0,m[_0x55313(0x3e1)])(()=>_0x3f32c2[_0x55313(0x3a6)],_0x3f32c2[_0x55313(0x28c)],!0x1,[_0x3f32c2]),[_0x1eabfc,_0x42f51e]=(0x0,h[_0x55313(0x1cc)])('data'),[_0x2dcbeb,_0x2db74d]=(0x0,h[_0x55313(0x1cc)])(!0x1),_0x230ab1=k(_0x3f8a19),_0x4227f2=_0x3ba66a[_0x55313(0x47d)]()[_0x55313(0x19e)][_0x3f8a19[_0x55313(0x3ce)]],_0x489f58=_0x4227f2==null?void 0x0:_0x4227f2['viewOrder'][_0x55313(0x315)](_0x4fa978=>_0x4227f2['views'][_0x4fa978]),_0x116b1c=_0x489f58?_0x4227f2==null?void 0x0:_0x4227f2[_0x55313(0x1d2)][_0x489f58]:void 0x0,_0x375296=_0x4227f2&&_0x116b1c?(0x0,t['toFormulaMenuTables'])(_0x3ba66a[_0x55313(0x47d)](),_0x4227f2,_0x116b1c)[_0x55313(0x47e)](_0x147d10=>({..._0x147d10,'current':!0x1})):[],_0x48479c=((_0x28c2cf=_0x3f8a19[_0x55313(0x471)][_0x55313(0x2d4)])==null?void 0x0:_0x28c2cf[_0x55313(0x397)])??'',_0x15ac30=_0x28c6fe=>_0xc19db9(A(_0x3f8a19,_0x28c6fe))[_0x55313(0x1f0)](()=>void 0x0),_0x4f21a7=_0x5ca3c5=>_0xc19db9({..._0x3f8a19,'description':_0x5ca3c5})[_0x55313(0x1f0)](()=>void 0x0);return(0x0,g[_0x55313(0x402)])(_0x55313(0x159),{'data-dashboard-formula-inspector':!0x0,'className':_0x55313(0x35e),'children':[(0x0,g[_0x55313(0x12b)])(f[_0x55313(0x36e)],{'className':_0x55313(0x1ec),'items':[{'value':_0x55313(0x265),'label':_0x112f23['t']('bases-dashboard-ui.dashboardInspector.data')},{'value':'style','label':_0x112f23['t'](_0x55313(0x3fc))}],'value':_0x1eabfc,'onChange':_0x42f51e}),(0x0,g[_0x55313(0x12b)])(_0x55313(0x159),{'className':_0x55313(0x33f),'children':_0x1eabfc===_0x55313(0x265)?(0x0,g[_0x55313(0x402)])(_0x55313(0x159),{'className':_0x55313(0x1a6),'children':[(0x0,g[_0x55313(0x12b)])(J,{'label':_0x112f23['t'](_0x55313(0x2df)),'children':(0x0,g[_0x55313(0x12b)])(f[_0x55313(0x23f)],{'value':_0x3f8a19[_0x55313(0x36d)]??_0x3f8a19['title']??'','onChange':_0x4f21a7,'onBlur':_0x4460ea=>_0x4f21a7(_0x4460ea[_0x55313(0x2d9)]['value'])})}),(0x0,g[_0x55313(0x12b)])(J,{'label':_0x112f23['t'](_0x55313(0x377)),'children':(0x0,g['jsx'])(f[_0x55313(0x23f)],{'disabled':!0x0,'value':(_0x4227f2==null?void 0x0:_0x4227f2[_0x55313(0x4a1)])??_0x112f23['t'](_0x55313(0x31d))})}),(0x0,g[_0x55313(0x402)])(J,{'label':_0x112f23['t']('bases-dashboard-ui.dashboardInspector.formula'),'children':[(0x0,g[_0x55313(0x12b)])(f[_0x55313(0x23f)],{'disabled':!0x0,'value':(0x0,t[_0x55313(0x100)])(_0x48479c,_0x375296)}),(0x0,g[_0x55313(0x12b)])(f[_0x55313(0x438)],{'className':_0x55313(0x3f6),'onClick':()=>_0x2db74d(!0x0),'children':_0x112f23['t'](_0x55313(0x197))})]})]}):(0x0,g[_0x55313(0x402)])(_0x55313(0x159),{'className':_0x55313(0x1a6),'children':[(0x0,g[_0x55313(0x12b)])(n[_0x55313(0x480)],{'emptyLabel':_0x112f23['t'](_0x55313(0x329)),'label':_0x112f23['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x1101c6?_0x4d7dce[_0x55313(0x14e)][0x384]:_0x4d7dce[_0x55313(0x14e)][0x0],'resetLabel':_0x112f23['t'](_0x55313(0x2b9)),'value':_0x230ab1['backgroundColor']??null,'onChange':_0x32a655=>_0x15ac30({'backgroundColor':_0x32a655??void 0x0})}),(0x0,g[_0x55313(0x402)])(J,{'label':_0x112f23['t'](_0x55313(0x2a9)),'children':[(0x0,g[_0x55313(0x402)])('div',{'className':_0x55313(0x372),'children':[(0x0,g['jsxs'])(f[_0x55313(0x438)],{'className':'univer-flex-1','onClick':()=>{const _0x45ed6c=_0x55313;_0x2c70f7()[_0x45ed6c(0x46e)](_0x12b2ba=>{const _0x22e96b=_0x45ed6c;if(_0x12b2ba){var _0x5a193d;return _0x15ac30({'backgroundImage':{..._0x12b2ba,'fit':((_0x5a193d=_0x230ab1[_0x22e96b(0x3ae)])==null?void 0x0:_0x5a193d['fit'])??'cover'}});}})[_0x45ed6c(0x1f0)](()=>void 0x0);},'children':[(0x0,g[_0x55313(0x12b)])(s['IncreaseIcon'],{}),_0x230ab1[_0x55313(0x3ae)]?_0x112f23['t'](_0x55313(0x31a)):_0x112f23['t'](_0x55313(0x33a))]}),_0x230ab1['backgroundImage']&&(0x0,g[_0x55313(0x12b)])(f['Button'],{'aria-label':_0x112f23['t'](_0x55313(0x301)),'title':_0x112f23['t'](_0x55313(0x301)),'onClick':()=>_0x15ac30({'backgroundImage':void 0x0}),'children':(0x0,g[_0x55313(0x12b)])(s[_0x55313(0x2ae)],{})})]}),_0x230ab1[_0x55313(0x3ae)]&&(0x0,g[_0x55313(0x12b)])(f[_0x55313(0x36e)],{'className':_0x55313(0x228),'items':[{'value':_0x55313(0x2d7),'label':_0x112f23['t'](_0x55313(0x192))},{'value':_0x55313(0x119),'label':_0x112f23['t'](_0x55313(0x1cf))}],'value':_0x230ab1[_0x55313(0x3ae)]['fit'],'onChange':_0x453c3f=>_0x15ac30({'backgroundImage':_0x230ab1['backgroundImage']?{..._0x230ab1['backgroundImage'],'fit':_0x453c3f}:void 0x0})})]}),(0x0,g['jsx'])(n['ChartColorField'],{'emptyLabel':_0x112f23['t'](_0x55313(0x2d5)),'label':_0x112f23['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x1101c6?_0x4d7dce[_0x55313(0x14e)][0x32]:_0x4d7dce[_0x55313(0x14e)][0x3e8],'resetLabel':_0x112f23['t'](_0x55313(0x2b9)),'value':_0x230ab1['textColor']??null,'onChange':_0x29148c=>_0x15ac30({'textColor':_0x29148c??void 0x0})}),(0x0,g['jsx'])(J,{'label':_0x112f23['t'](_0x55313(0x18b)),'children':(0x0,g[_0x55313(0x12b)])(f[_0x55313(0x36e)],{'items':[{'value':'left','label':_0x112f23['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':_0x55313(0x3ca),'label':_0x112f23['t'](_0x55313(0x21b))},{'value':'right','label':_0x112f23['t'](_0x55313(0x125))}],'value':_0x230ab1['alignment'],'onChange':_0x39b6c9=>_0x15ac30({'alignment':_0x39b6c9})})}),(0x0,g[_0x55313(0x402)])(J,{'label':_0x112f23['t']('bases-dashboard-ui.dashboardInspector.textSize'),'children':[(0x0,g[_0x55313(0x12b)])(f[_0x55313(0x36e)],{'items':[{'value':_0x55313(0x21a),'label':_0x112f23['t'](_0x55313(0x1f7))},{'value':_0x55313(0x14d),'label':_0x112f23['t'](_0x55313(0x1ad))}],'value':_0x230ab1[_0x55313(0x456)],'onChange':_0x317c3e=>_0x15ac30({'fontSizeMode':_0x317c3e})}),_0x230ab1['fontSizeMode']===_0x55313(0x14d)&&(0x0,g[_0x55313(0x12b)])(f['InputNumber'],{'className':_0x55313(0x228),'min':0xc,'max':0x78,'value':_0x230ab1[_0x55313(0x44d)],'onChange':_0x4bccb6=>_0x15ac30({'fontSize':_0x4bccb6??0x28,'fontSizeMode':_0x55313(0x14d)})})]}),(0x0,g[_0x55313(0x12b)])(J,{'label':_0x112f23['t'](_0x55313(0x340)),'children':(0x0,g[_0x55313(0x12b)])(G,{'value':_0x230ab1['numberFormat'],'options':[{'value':_0x55313(0x357),'label':_0x112f23['t'](_0x55313(0x37b))},{'value':_0x55313(0x25c),'label':_0x112f23['t'](_0x55313(0x258))},{'value':'percent','label':_0x112f23['t'](_0x55313(0x12a))},{'value':_0x55313(0x328),'label':_0x112f23['t'](_0x55313(0x117))},{'value':'grouped','label':_0x112f23['t'](_0x55313(0x251))},{'value':_0x55313(0x135),'label':_0x112f23['t']('bases-dashboard-ui.dashboardInspector.compact')}],'onChange':_0x30a9a8=>{let _0x2f2e22=Ce['find'](_0xa2c7ea=>_0xa2c7ea===_0x30a9a8);_0x2f2e22&&_0x15ac30({'numberFormat':_0x2f2e22});}})}),_0x230ab1[_0x55313(0x217)]===_0x55313(0x328)&&(0x0,g[_0x55313(0x12b)])(J,{'label':_0x112f23['t'](_0x55313(0x300)),'children':(0x0,g[_0x55313(0x12b)])(f[_0x55313(0x23f)],{'value':_0x230ab1['currency'],'onChange':_0x5138b4=>_0x15ac30({'currency':_0x5138b4['slice'](0x0,0x3)[_0x55313(0x414)]()})})}),_0x230ab1[_0x55313(0x217)]!=='general'&&(0x0,g[_0x55313(0x12b)])(J,{'label':_0x112f23['t']('bases-dashboard-ui.dashboardInspector.decimalPlaces'),'children':(0x0,g[_0x55313(0x12b)])(f[_0x55313(0x11d)],{'min':0x0,'max':0x8,'value':_0x230ab1[_0x55313(0x387)],'onChange':_0x2005f1=>_0x15ac30({'decimalPlaces':_0x2005f1??0x0})})})]})}),_0x2dcbeb&&(0x0,g[_0x55313(0x12b)])(fe,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':(0x0,g[_0x55313(0x12b)])(t['MobileFormulaEditorPanel'],{'tables':_0x375296,'formula':(0x0,t[_0x55313(0x100)])(_0x48479c,_0x375296),'onCancel':()=>_0x2db74d(!0x1),'onSave':_0x56ecf1=>{const _0x16cb55=_0x55313;let _0x94c062=_0x3f8a19[_0x16cb55(0x471)][_0x16cb55(0x2d4)]??{'formula':''};return _0xc19db9({..._0x3f8a19,'shapeData':{..._0x3f8a19['shapeData'],'formulaBinding':{..._0x94c062,'formula':(0x0,t[_0x16cb55(0x35a)])(_0x56ecf1,_0x375296)}}})[_0x16cb55(0x46e)](()=>_0x2db74d(!0x1))[_0x16cb55(0x1f0)](()=>void 0x0);}})})]});}function J({children:_0x2a0653,label:_0x190333}){const _0xf3c907=_0x10fa58;return(0x0,g[_0xf3c907(0x402)])(_0xf3c907(0x159),{'role':_0xf3c907(0x3e3),'aria-label':_0x190333,'className':_0xf3c907(0x3b2),'children':[(0x0,g['jsx'])('span',{'children':_0x190333}),_0x2a0653]});}function Te({disabled:_0x38ab93,fields:_0x48a26a,filter:_0x1370ca,onChange:_0x1fd405}){const _0x5c58d8=_0x10fa58;let _0x81f26a=(0x0,m['useDependency'])(m[_0x5c58d8(0x341)])[_0x5c58d8(0x2fb)]??null,[_0x1f5bbb,_0xa54d0a]=(0x0,h[_0x5c58d8(0x1cc)])(null),_0x323b97=(0x0,m[_0x5c58d8(0x162)])(a[_0x5c58d8(0x17c)]),_0x4199c0=(_0x1370ca==null?void 0x0:_0x1370ca[_0x5c58d8(0x401)])??[];if(!_0x4199c0[_0x5c58d8(0x416)])return(0x0,g[_0x5c58d8(0x402)])(_0x5c58d8(0x159),{'className':_0x5c58d8(0x49a),'children':[(0x0,g['jsx'])(s[_0x5c58d8(0x21e)],{'className':'univer-mx-auto\x20univer-size-6'}),(0x0,g['jsx'])('span',{'className':_0x5c58d8(0x2b1),'children':_0x323b97['t'](_0x5c58d8(0x4a6))})]});let _0x738cdf=_0x1f5bbb==null?void 0x0:_0x4199c0[_0x1f5bbb],_0x5e8164=_0x48a26a[_0x5c58d8(0x315)](_0x554206=>_0x554206['id']===(_0x738cdf==null?void 0x0:_0x738cdf[_0x5c58d8(0xdb)]));return(0x0,g[_0x5c58d8(0x402)])(_0x5c58d8(0x159),{'className':_0x5c58d8(0x245),'children':[_0x4199c0[_0x5c58d8(0x47e)]((_0x118ff9,_0x4b26d0)=>{const _0x5a8d76=_0x5c58d8;var _0xbb7b96;return(0x0,g['jsxs'])(f[_0x5a8d76(0x438)],{'disabled':_0x38ab93,'onClick':()=>_0xa54d0a(_0x4b26d0),'children':[(0x0,g['jsx'])(_0x5a8d76(0x408),{'children':((_0xbb7b96=_0x48a26a[_0x5a8d76(0x315)](_0x42a693=>_0x42a693['id']===_0x118ff9[_0x5a8d76(0xdb)]))==null?void 0x0:_0xbb7b96[_0x5a8d76(0x4a1)])??_0x118ff9[_0x5a8d76(0xdb)]}),(0x0,g[_0x5a8d76(0x12b)])(_0x5a8d76(0x408),{'className':_0x5a8d76(0x196),'children':String(_0x118ff9[_0x5a8d76(0x476)]??'')})]},_0x118ff9[_0x5a8d76(0xdb)]+'-'+_0x4b26d0);}),_0x5e8164&&_0x738cdf&&_0x1f5bbb!=null&&_0x81f26a&&(0x0,v[_0x5c58d8(0x1fb)])((0x0,g[_0x5c58d8(0x12b)])(t['BaseMobileFilterOperand'],{'field':_0x5e8164,'value':_0x738cdf[_0x5c58d8(0x476)],'onClose':()=>_0xa54d0a(null),'onSave':_0xb08234=>{const _0x3b24f4=_0x5c58d8;_0x1fd405({'conjunction':(_0x1370ca==null?void 0x0:_0x1370ca['conjunction'])??a[_0x3b24f4(0x1e4)][_0x3b24f4(0x2bc)],'conditions':_0x4199c0[_0x3b24f4(0x47e)]((_0xb732e0,_0x1f3e9f)=>_0x1f3e9f===_0x1f5bbb?{..._0xb732e0,'operand':_0xb08234}:_0xb732e0)}),_0xa54d0a(null);}}),_0x81f26a)]});}function Ee({fields:_0x2bad58,filter:_0x388faf,onChange:_0x401828,onClear:_0x1d71cd}){const _0x437011=_0x10fa58;let _0x27af3c=(0x0,m[_0x437011(0x162)])(a[_0x437011(0x17c)]);return(0x0,g[_0x437011(0x402)])('div',{'children':[(0x0,g[_0x437011(0x12b)])(t[_0x437011(0x272)],{'fields':_0x2bad58,'value':_0x388faf??{'conjunction':a[_0x437011(0x1e4)][_0x437011(0x2bc)],'conditions':[]},'onChange':_0x401828}),(0x0,g[_0x437011(0x12b)])(f[_0x437011(0x438)],{'onClick':_0x1d71cd,'children':_0x27af3c['t'](_0x437011(0x2b9))})]});}function De({base:_0x31cf4f,chartRuntime:_0x56f63a,onChange:_0x5cd7c6,onClose:_0x195950,onSelectBackgroundImage:_0x2700cc,onSelectImage:_0x2ef310,unitId:_0x5e6113,widget:_0x4c5d3b}){const _0x18e535=_0x10fa58;let _0x2b63dc=(0x0,m[_0x18e535(0x162)])(a[_0x18e535(0x464)]),_0x32a0cf=(0x0,m[_0x18e535(0x162)])(a[_0x18e535(0x17c)]),_0x12b752=_0x31cf4f['getSnapshot'](),_0x18db0e=_0x18e535(0x3ce)in _0x4c5d3b?_0x12b752[_0x18e535(0x19e)][_0x4c5d3b[_0x18e535(0x3ce)]]:void 0x0,_0x3447e8=_0x4c5d3b['type']===e['BaseDashboardWidgetType'][_0x18e535(0x40f)]?_0x18db0e==null?void 0x0:_0x18db0e[_0x18e535(0x1d2)][_0x4c5d3b['pivotViewId']]:void 0x0,_0x32a899=_0x32a0cf['t'](Pe(_0x4c5d3b)),_0xeca9bb=(0x0,g['jsxs'])(_0x18e535(0x1a3),{'data-dashboard-inspector':!0x0,'className':'univer-flex\x20univer-h-full\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x4c5d3b[_0x18e535(0x469)]===e[_0x18e535(0x27e)]['PivotChart']&&(Ne(_0x3447e8)&&_0x56f63a?(0x0,g[_0x18e535(0x12b)])(xe,{'runtime':_0x56f63a,'sourceChart':_0x3447e8[_0x18e535(0xfb)][_0x18e535(0x1a8)],'sourceName':((_0x18db0e==null?void 0x0:_0x18db0e['name'])??'')+_0x18e535(0x145)+_0x3447e8[_0x18e535(0x4a1)],'widget':_0x4c5d3b,'onChange':_0x5cd7c6,'onEditData':()=>{const _0x14800e=_0x18e535;_0x2b63dc[_0x14800e(0x32d)](t[_0x14800e(0x1af)]['id'],{'unitId':_0x5e6113,'tableId':_0x4c5d3b['tableId'],'viewId':_0x4c5d3b['pivotViewId']})['catch'](()=>void 0x0);}}):(0x0,g[_0x18e535(0x12b)])(je,{'message':Ne(_0x3447e8)?_0x32a0cf['t'](_0x18e535(0x103)):_0x32a0cf['t'](_0x18e535(0x31d))})),_0x4c5d3b[_0x18e535(0x469)]===e[_0x18e535(0x27e)][_0x18e535(0x3f1)]&&(0x0,g[_0x18e535(0x12b)])(we,{'base':_0x31cf4f,'widget':_0x4c5d3b,'onChange':_0x5cd7c6,'onSelectBackgroundImage':_0x2700cc}),_0x4c5d3b[_0x18e535(0x469)]===e[_0x18e535(0x27e)][_0x18e535(0x177)]&&(0x0,g['jsx'])(ke,{'base':_0x31cf4f,'onChange':_0x5cd7c6,'widget':_0x4c5d3b}),_0x4c5d3b[_0x18e535(0x469)]===e[_0x18e535(0x27e)][_0x18e535(0x2a7)]&&(0x0,g['jsx'])(Ae,{'onChange':_0x5cd7c6,'widget':_0x4c5d3b}),_0x4c5d3b[_0x18e535(0x469)]===e[_0x18e535(0x27e)]['Image']&&(0x0,g[_0x18e535(0x12b)])(Oe,{'onChange':_0x5cd7c6,'onSelectImage':_0x2ef310,'widget':_0x4c5d3b})]});return(0x0,g[_0x18e535(0x12b)])(t['BaseMobileDrawer'],{'title':_0x32a899,'onClose':_0x195950,'children':_0xeca9bb});}function Oe({onChange:_0x8d401d,onSelectImage:_0x4ab1fc,widget:_0x45aeb3}){const _0x17745e=_0x10fa58;let _0xd67bad=(0x0,m['useDependency'])(a[_0x17745e(0x17c)]);return(0x0,g[_0x17745e(0x402)])(_0x17745e(0x159),{'className':_0x17745e(0x3f3),'children':[(0x0,g['jsxs'])(f[_0x17745e(0x438)],{'className':_0x17745e(0x424),'onClick':()=>_0x4ab1fc()[_0x17745e(0x46e)](_0x5cec13=>_0x5cec13&&_0x8d401d({..._0x45aeb3,'source':_0x5cec13[_0x17745e(0x133)],'sourceType':_0x5cec13['sourceType'],'alt':_0x5cec13[_0x17745e(0x4a1)]}))[_0x17745e(0x1f0)](()=>void 0x0),'children':[(0x0,g[_0x17745e(0x12b)])(s[_0x17745e(0x32c)],{}),_0xd67bad['t'](_0x17745e(0x31a))]}),(0x0,g['jsxs'])('label',{'className':_0x17745e(0x3b2),'children':[(0x0,g['jsx'])(_0x17745e(0x408),{'children':_0xd67bad['t'](_0x17745e(0x2a9))}),(0x0,g[_0x17745e(0x12b)])(f[_0x17745e(0x36e)],{'items':[{'value':_0x17745e(0x2d7),'label':_0xd67bad['t'](_0x17745e(0x192))},{'value':_0x17745e(0x475),'label':_0xd67bad['t'](_0x17745e(0x2e7))},{'value':'original','label':_0xd67bad['t']('bases-dashboard-ui.dashboardInspector.originalSize')}],'value':_0x45aeb3[_0x17745e(0xe5)]??'cover','onChange':_0x470e9c=>_0x8d401d({..._0x45aeb3,'displayMode':_0x470e9c})[_0x17745e(0x1f0)](()=>void 0x0)})]})]});}function ke({base:_0x372108,onChange:_0x500390,widget:_0x2ad4b0}){const _0x2499a3=_0x10fa58;let _0x407827=_0x372108['getSnapshot']()[_0x2499a3(0x19e)][_0x2ad4b0[_0x2499a3(0x3ce)]],_0x278869=_0x407827==null?void 0x0:_0x407827['viewOrder'][_0x2499a3(0x315)](_0x1b7875=>_0x407827[_0x2499a3(0x1d2)][_0x1b7875]),_0x2bbc49=_0x278869?_0x407827==null?void 0x0:_0x407827[_0x2499a3(0x1d2)][_0x278869]:void 0x0,_0x9b27d9=_0x407827&&_0x2bbc49?(0x0,t['toMenuFields'])(_0x407827,_0x2bbc49):[];return(0x0,g[_0x2499a3(0x12b)])(Ee,{'fields':_0x9b27d9,'filter':_0x2ad4b0[_0x2499a3(0x3fa)],'onChange':_0x2a5916=>_0x500390({..._0x2ad4b0,'filter':_0x2a5916})[_0x2499a3(0x1f0)](()=>void 0x0),'onClear':()=>_0x500390({..._0x2ad4b0,'filter':null})[_0x2499a3(0x1f0)](()=>void 0x0)});}function Ae({onChange:_0x101400,widget:_0x2f98ae}){const _0x2f9ca7=_0x10fa58;let _0xfd070e=(0x0,m[_0x2f9ca7(0x162)])(a[_0x2f9ca7(0x17c)]),_0x51205a=(0x0,m['useDependency'])(a[_0x2f9ca7(0x45a)]),_0x977eb8=(0x0,m[_0x2f9ca7(0x3e1)])(()=>_0x51205a[_0x2f9ca7(0x199)],_0x51205a[_0x2f9ca7(0x320)](),!0x1,[_0x51205a]),_0x238dfa=oe(_0x2f98ae),_0xa3fdf0=_0x4679e3=>_0x101400({..._0x2f98ae,'appearance':{..._0x238dfa,..._0x4679e3}})[_0x2f9ca7(0x1f0)](()=>void 0x0);return(0x0,g[_0x2f9ca7(0x402)])(_0x2f9ca7(0x159),{'className':_0x2f9ca7(0x20e),'children':[(0x0,g[_0x2f9ca7(0x12b)])(f['Textarea'],{'className':_0x2f9ca7(0x14c),'defaultValue':U(_0x2f98ae['document']),'rows':0x8,'onBlur':_0x12a6ff=>_0x101400({..._0x2f98ae,'document':se(_0x2f98ae[_0x2f9ca7(0x29d)],_0x12a6ff[_0x2f9ca7(0x2d9)][_0x2f9ca7(0x16c)])})[_0x2f9ca7(0x1f0)](()=>void 0x0)}),(0x0,g[_0x2f9ca7(0x12b)])(n[_0x2f9ca7(0x480)],{'emptyLabel':_0xfd070e['t'](_0x2f9ca7(0x329)),'label':_0xfd070e['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x977eb8['gray'][0x0],'resetLabel':_0xfd070e['t'](_0x2f9ca7(0x2b9)),'value':_0x238dfa[_0x2f9ca7(0x49d)]??null,'onChange':_0xc9897=>_0xa3fdf0({'backgroundColor':_0xc9897??void 0x0})}),(0x0,g[_0x2f9ca7(0x12b)])(n['ChartColorField'],{'emptyLabel':_0xfd070e['t'](_0x2f9ca7(0x2d5)),'label':_0xfd070e['t'](_0x2f9ca7(0x2d5)),'pickerFallbackValue':_0x977eb8[_0x2f9ca7(0x14e)][0x3e8],'resetLabel':_0xfd070e['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x238dfa[_0x2f9ca7(0xcf)]??null,'onChange':_0x399c80=>_0xa3fdf0({'textColor':_0x399c80??void 0x0})}),(0x0,g[_0x2f9ca7(0x12b)])(Me,{'label':_0xfd070e['t'](_0x2f9ca7(0x18b)),'children':(0x0,g[_0x2f9ca7(0x12b)])(f[_0x2f9ca7(0x36e)],{'items':[{'value':_0x2f9ca7(0x22a),'label':_0xfd070e['t'](_0x2f9ca7(0x1a4))},{'value':_0x2f9ca7(0x3ca),'label':_0xfd070e['t'](_0x2f9ca7(0x21b))},{'value':_0x2f9ca7(0x3b4),'label':_0xfd070e['t'](_0x2f9ca7(0x125))}],'value':_0x238dfa[_0x2f9ca7(0x164)],'onChange':_0x5cbfb5=>_0xa3fdf0({'alignment':_0x5cbfb5})})}),(0x0,g[_0x2f9ca7(0x402)])(Me,{'label':_0xfd070e['t'](_0x2f9ca7(0x23c)),'children':[(0x0,g[_0x2f9ca7(0x12b)])(f['Segmented'],{'items':[{'value':'auto','label':_0xfd070e['t'](_0x2f9ca7(0x1f7))},{'value':_0x2f9ca7(0x14d),'label':_0xfd070e['t'](_0x2f9ca7(0x1ad))}],'value':_0x238dfa[_0x2f9ca7(0x456)],'onChange':_0x489575=>_0xa3fdf0({'fontSizeMode':_0x489575})}),_0x238dfa[_0x2f9ca7(0x456)]===_0x2f9ca7(0x14d)&&(0x0,g[_0x2f9ca7(0x12b)])(f[_0x2f9ca7(0x11d)],{'className':_0x2f9ca7(0x228),'min':0xa,'max':0x78,'value':_0x238dfa['fontSize'],'onChange':_0x9fdaf7=>_0xa3fdf0({'fontSize':_0x9fdaf7??0x12,'fontSizeMode':_0x2f9ca7(0x14d)})})]})]});}function je({message:_0x1d67b4}){const _0x2710d3=_0x10fa58;return(0x0,g[_0x2710d3(0x12b)])(_0x2710d3(0x159),{'className':'univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','children':_0x1d67b4});}function Me({children:_0x13ff91,label:_0x2a293d}){const _0x5ac07e=_0x10fa58;return(0x0,g[_0x5ac07e(0x402)])(_0x5ac07e(0x159),{'role':_0x5ac07e(0x3e3),'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[_0x5ac07e(0x12b)])(_0x5ac07e(0x408),{'children':_0x2a293d}),_0x13ff91]});}function Ne(_0x35e494){const _0x5331db=_0x10fa58;return(_0x35e494==null?void 0x0:_0x35e494[_0x5331db(0x469)])===a['BaseViewType']['Pivot']&&typeof _0x35e494[_0x5331db(0xfb)]==_0x5331db(0x334)&&_0x35e494[_0x5331db(0xfb)]!==null&&_0x5331db(0x2c2)in _0x35e494[_0x5331db(0xfb)]&&_0x5331db(0x1a8)in _0x35e494[_0x5331db(0xfb)];}function Pe(_0xc34ab0){const _0x31b725=_0x10fa58;switch(_0xc34ab0[_0x31b725(0x469)]){case e[_0x31b725(0x27e)][_0x31b725(0x40f)]:return _0x31b725(0x278);case e[_0x31b725(0x27e)]['TableFilter']:return _0x31b725(0x4a6);case e[_0x31b725(0x27e)][_0x31b725(0x2a7)]:return'bases-dashboard-ui.dashboard.text';case e[_0x31b725(0x27e)][_0x31b725(0x3e9)]:return _0x31b725(0x443);case e[_0x31b725(0x27e)]['FormulaShape']:return _0x31b725(0x4d0);}}function Fe({onDelete:_0x488cc5,onEdit:_0x7a71f2,onMoveUp:_0x3059d9,onMoveDown:_0x55a93a}){const _0x50e175=_0x10fa58;let [_0x44f8a6,_0x1fd57e]=(0x0,h[_0x50e175(0x1cc)])(!0x1),_0x202796=(0x0,m[_0x50e175(0x162)])(a[_0x50e175(0x17c)]),_0x1927e2=_0x202796['t'](_0x50e175(0x48f)),_0x179635=_0x202796['t'](_0x50e175(0x289)),_0x2b1e42=_0x202796['t'](_0x50e175(0x290)),_0x3a1d4a=[{'type':'item','children':(0x0,g[_0x50e175(0x402)])(_0x50e175(0x408),{'className':_0x50e175(0x11f),'children':[(0x0,g['jsx'])(s[_0x50e175(0x2d0)],{'className':_0x50e175(0x36c),'aria-hidden':_0x50e175(0x1c5)}),(0x0,g[_0x50e175(0x12b)])(_0x50e175(0x408),{'children':_0x1927e2})]}),'onSelect':_0x7a71f2},..._0x3059d9?[{'type':'item','children':(0x0,g[_0x50e175(0x402)])(_0x50e175(0x408),{'className':_0x50e175(0x11f),'children':[(0x0,g['jsx'])(s[_0x50e175(0x254)],{'className':_0x50e175(0x36c),'aria-hidden':'true'}),(0x0,g[_0x50e175(0x12b)])(_0x50e175(0x408),{'children':_0x202796['t']('bases-dashboard-ui.mobile.moveUp')})]}),'onSelect':_0x3059d9}]:[],..._0x55a93a?[{'type':_0x50e175(0x2f6),'children':(0x0,g['jsxs'])(_0x50e175(0x408),{'className':_0x50e175(0x11f),'children':[(0x0,g[_0x50e175(0x12b)])(s[_0x50e175(0x102)],{'className':'univer-size-4','aria-hidden':'true'}),(0x0,g['jsx'])('span',{'children':_0x202796['t'](_0x50e175(0x349))})]}),'onSelect':_0x55a93a}]:[],{'type':_0x50e175(0x441)},{'type':'item','variant':_0x50e175(0x450),'children':(0x0,g[_0x50e175(0x402)])(_0x50e175(0x408),{'className':'univer-flex\x20univer-items-center\x20univer-gap-2','children':[(0x0,g[_0x50e175(0x12b)])(s[_0x50e175(0x2ae)],{'className':_0x50e175(0x36c),'aria-hidden':_0x50e175(0x1c5)}),(0x0,g[_0x50e175(0x12b)])('span',{'children':_0x179635})]}),'onSelect':_0x488cc5}];return(0x0,g[_0x50e175(0x12b)])(f[_0x50e175(0x1c9)],{'open':_0x44f8a6,'onOpenChange':_0x1fd57e,'align':'end','sideOffset':0x4,'items':_0x3a1d4a[_0x50e175(0x47e)](_0x47b4aa=>({..._0x47b4aa,'className':_0x47b4aa['type']===_0x50e175(0x2f6)?_0x50e175(0x46f):void 0x0})),'children':(0x0,g[_0x50e175(0x12b)])(f[_0x50e175(0x438)],{'type':_0x50e175(0x396),'size':'small','variant':_0x50e175(0x2fe),'onPointerDown':_0x57934d=>_0x57934d[_0x50e175(0x44c)](),'onClick':()=>_0x1fd57e(_0x3f9eb4=>!_0x3f9eb4),'title':_0x2b1e42,'aria-label':_0x2b1e42,'className':_0x50e175(0x262),'children':(0x0,g['jsx'])(s[_0x50e175(0x330)],{'className':_0x50e175(0x36c),'aria-hidden':'true'})})});}function Ie({dashboardId:_0x10ed27,presentation:_0x208314=!0x1,unitId:_0x577210}){const _0x2bdc7c=_0x10fa58;let _0x1d7af4=(0x0,m[_0x2bdc7c(0x162)])(a[_0x2bdc7c(0x3d5)]),_0x244152=(0x0,m[_0x2bdc7c(0x162)])(a[_0x2bdc7c(0x1b2)]);(0x0,m['useObservable'])(_0x244152[_0x2bdc7c(0x22c)],0x0);let _0x5337fb=(0x0,m[_0x2bdc7c(0x162)])(a[_0x2bdc7c(0x464)]),_0x2f6e44=(0x0,m[_0x2bdc7c(0x162)])(u[_0x2bdc7c(0x4a5)]),_0x5d8668=(0x0,m[_0x2bdc7c(0x162)])(a['IImageIoService']),_0x4da65b=(0x0,m[_0x2bdc7c(0x162)])(a['IUniverInstanceService']),_0x5c29ba=(0x0,m['useDependency'])(a[_0x2bdc7c(0x17c)]),_0x4b4a64=(0x0,m[_0x2bdc7c(0x162)])(e[_0x2bdc7c(0x497)]),_0x4093b4=(0x0,m[_0x2bdc7c(0x162)])(a[_0x2bdc7c(0x399)]),[_0x16746e,_0x4ecda]=(0x0,h[_0x2bdc7c(0x1cc)])(!0x1),[_0x3cb50b,_0x3dc5d2]=(0x0,h['useState'])(),[_0x50166f,_0x475b06]=(0x0,h[_0x2bdc7c(0x1cc)])(!0x1),[_0x4755fb,_0x247d2b]=(0x0,h['useState'])(()=>new Map()),_0x4a058f=(0x0,h['useCallback'])((_0x21c779,_0x43d803)=>{_0x247d2b(_0x14804d=>{const _0x2d9733=_0x16b2;let _0x5e3cda=new Map(_0x14804d);return _0x43d803?_0x5e3cda[_0x2d9733(0x382)](_0x21c779,_0x43d803):_0x5e3cda[_0x2d9733(0x113)](_0x21c779),_0x5e3cda;});},[]),_0x28432f=(0x0,m['useObservable'])(()=>_0x4b4a64[_0x2bdc7c(0x483)][_0x2bdc7c(0x417)]((0x0,c[_0x2bdc7c(0x47e)])(()=>_0x4b4a64[_0x2bdc7c(0x13c)](_0x577210,_0x10ed27))),_0x4b4a64[_0x2bdc7c(0x13c)](_0x577210,_0x10ed27),!0x1,[_0x10ed27,_0x4b4a64,_0x577210]),_0x4e0676=_0x4da65b[_0x2bdc7c(0x1d4)](_0x577210,a[_0x2bdc7c(0x17b)]['UNIVER_BASE']),_0x1393cd=(0x0,m[_0x2bdc7c(0x3e1)])(()=>_0x4093b4['undoRedoStatus$'],{'undos':0x0,'redos':0x0},!0x1,[_0x4093b4]),_0x1bd639=w(_0x577210,_0x10ed27);if((0x0,h[_0x2bdc7c(0x1a9)])(()=>{const _0x12d302=_0x2bdc7c;_0x4da65b[_0x12d302(0x3c9)](_0x577210),_0x4da65b[_0x12d302(0x44f)](_0x577210);},[_0x4da65b,_0x577210]),!_0x28432f||!_0x4e0676)return null;let _0xce9a58={'unitId':_0x577210,'objectId':(0x0,l[_0x2bdc7c(0x156)])(_0x10ed27),'objectType':p[_0x2bdc7c(0x16a)][_0x2bdc7c(0x23b)]},_0x4ebd2c=(_0x397747,_0x3e345a)=>{const _0x3cb864=_0x2bdc7c;let _0x1ef012=[..._0x28432f['widgetOrder']],_0x58a850=_0x1ef012[_0x3cb864(0x2d3)](_0x397747),_0x4417aa=_0x58a850+_0x3e345a;if(!(_0x58a850<0x0||_0x4417aa<0x0||_0x4417aa>=_0x1ef012[_0x3cb864(0x416)]))return[_0x1ef012[_0x58a850],_0x1ef012[_0x4417aa]]=[_0x1ef012[_0x4417aa],_0x1ef012[_0x58a850]],_0x5337fb[_0x3cb864(0x32d)](e[_0x3cb864(0x1be)]['id'],{'unitId':_0x577210,'dashboard':{..._0x28432f,'widgetOrder':_0x1ef012}});},_0x3e276b=_0x4c3924=>_0x5337fb[_0x2bdc7c(0x32d)](e[_0x2bdc7c(0x104)]['id'],{'unitId':_0x577210,'dashboardId':_0x10ed27,'widget':_0x4c3924})[_0x2bdc7c(0x1f0)](()=>void 0x0),_0x101377=(_0x54d114,_0x4d2a61,_0x2ba611)=>{const _0xbd171a=_0x2bdc7c;let _0x2b07f3=Math[_0xbd171a(0x41b)](0x0,..._0x28432f['widgetOrder'][_0xbd171a(0x226)](_0x3301b5=>{const _0x2cd7f9=_0xbd171a;var _0x27d294;let _0x29b3da=(_0x27d294=_0x28432f['widgets'][_0x3301b5])==null?void 0x0:_0x27d294[_0x2cd7f9(0x42b)];return _0x29b3da?[_0x29b3da['row']+_0x29b3da['rowSpan']]:[];})),_0x333ef1=_0xbd171a(0xf6)+(0x0,a['generateRandomId'])(0x8),_0x4f9d21={'column':0x0,'row':_0x2b07f3,'columnSpan':_0x4d2a61,'rowSpan':_0x2ba611};switch(_0x54d114[_0xbd171a(0x469)]){case e[_0xbd171a(0x27e)][_0xbd171a(0x40f)]:return _0x3e276b({..._0x54d114,'id':_0x333ef1,'layout':_0x4f9d21});case e[_0xbd171a(0x27e)]['TableFilter']:return _0x3e276b({..._0x54d114,'id':_0x333ef1,'layout':_0x4f9d21});case e['BaseDashboardWidgetType'][_0xbd171a(0x2a7)]:return _0x3e276b({..._0x54d114,'id':_0x333ef1,'layout':_0x4f9d21});case e[_0xbd171a(0x27e)][_0xbd171a(0x3e9)]:return _0x3e276b({..._0x54d114,'id':_0x333ef1,'layout':_0x4f9d21});case e['BaseDashboardWidgetType'][_0xbd171a(0x3f1)]:return _0x3e276b({..._0x54d114,'id':_0x333ef1,'layout':_0x4f9d21});}},_0x488661=_0x4e0676[_0x2bdc7c(0x47d)](),_0x3f8930=_0x488661[_0x2bdc7c(0x25a)][_0x2bdc7c(0x226)](_0x1b4de8=>{const _0x4a90b8=_0x2bdc7c;let _0x29ae6c=_0x488661['tables'][_0x1b4de8];if(!_0x29ae6c)return[];let _0x8a03c0=_0x29ae6c[_0x4a90b8(0x171)]['flatMap'](_0x47da1f=>{const _0x4eb576=_0x4a90b8;let _0x132425=_0x29ae6c[_0x4eb576(0x1d2)][_0x47da1f];return We(_0x132425)?[{'type':'item','children':_0x132425[_0x4eb576(0x4a1)],'onSelect':()=>_0x101377({'type':e[_0x4eb576(0x27e)][_0x4eb576(0x40f)],'tableId':_0x1b4de8,'pivotViewId':_0x47da1f,'chart':{..._0x132425[_0x4eb576(0xfb)][_0x4eb576(0x1a8)]}},0x6,0xa)}]:[];});return[{'type':_0x4a90b8(0x2c0),'children':_0x29ae6c['name'],'options':[..._0x8a03c0,..._0x8a03c0[_0x4a90b8(0x416)]?[{'type':_0x4a90b8(0x441)}]:[],{'type':_0x4a90b8(0x2f6),'children':_0x5c29ba['t']('bases-dashboard-ui.dashboard.tableFilter'),'onSelect':()=>_0x101377({'type':e[_0x4a90b8(0x27e)][_0x4a90b8(0x177)],'tableId':_0x1b4de8,'filter':null},0x6,0x8)}]}];}),_0x4bf7d4=[..._0x3f8930,..._0x3f8930[_0x2bdc7c(0x416)]?[{'type':_0x2bdc7c(0x441)}]:[],{'type':_0x2bdc7c(0x2f6),'children':_0x5c29ba['t'](_0x2bdc7c(0x384)),'onSelect':()=>_0x101377({'type':e[_0x2bdc7c(0x27e)][_0x2bdc7c(0x2a7)],'document':Be()},0x4,0x6)},{'type':_0x2bdc7c(0x2f6),'children':_0x5c29ba['t'](_0x2bdc7c(0x443)),'onSelect':()=>Ve(_0x2f6e44)[_0x2bdc7c(0x46e)](_0x112602=>_0x112602&&_0x101377({'type':e[_0x2bdc7c(0x27e)][_0x2bdc7c(0x3e9)],'source':_0x112602[_0x2bdc7c(0x133)],'sourceType':_0x112602[_0x2bdc7c(0x248)],'alt':_0x112602['name'],'displayMode':_0x2bdc7c(0x2d7)},0x4,0x6))},{'type':_0x2bdc7c(0x2f6),'children':_0x5c29ba['t']('bases-dashboard-ui.dashboard.formulaShape'),'onSelect':()=>{const _0x18c7d7=_0x2bdc7c;let _0x30fdd6=_0x488661[_0x18c7d7(0x25a)][_0x18c7d7(0x315)](_0xbab417=>_0x488661['tables'][_0xbab417]);_0x30fdd6&&_0x101377({'type':e[_0x18c7d7(0x27e)][_0x18c7d7(0x3f1)],'tableId':_0x30fdd6,'shapeType':d[_0x18c7d7(0x42d)][_0x18c7d7(0x223)],'shapeData':(0x0,i[_0x18c7d7(0x15f)])(),'description':_0x5c29ba['t'](_0x18c7d7(0x4d0))},0x4,0x6);}}],_0x542160=_0x3cb50b?_0x28432f[_0x2bdc7c(0x1bd)][_0x3cb50b]:void 0x0,_0xcd5b32=()=>_0x475b06(_0x1ea736=>!_0x1ea736),_0x4535c2=_0x208314||_0x50166f,_0x2e6a22=_0x1bd639&&!_0x4535c2;return(0x0,g[_0x2bdc7c(0x12b)])(ue,{'children':(0x0,g[_0x2bdc7c(0x402)])('div',{'className':_0x2bdc7c(0x3bb)+(_0x50166f?_0x2bdc7c(0x458):_0x2bdc7c(0x132))+_0x2bdc7c(0x392),'children':[_0x50166f&&(0x0,g[_0x2bdc7c(0x12b)])(f[_0x2bdc7c(0x438)],{'onClick':()=>_0x475b06(!0x1),'children':_0x5c29ba['t'](_0x2bdc7c(0x247))}),!_0x4535c2&&(0x0,g[_0x2bdc7c(0x402)])(_0x2bdc7c(0x48b),{'className':_0x2bdc7c(0x3be),'children':[(0x0,g[_0x2bdc7c(0x12b)])(s[_0x2bdc7c(0x4d5)],{'className':_0x2bdc7c(0xf8)}),(0x0,g[_0x2bdc7c(0x12b)])('h2',{'className':_0x2bdc7c(0xbf),'children':_0x28432f[_0x2bdc7c(0x4a1)]}),_0x244152[_0x2bdc7c(0x190)](_0xce9a58)&&(0x0,g[_0x2bdc7c(0x12b)])(f[_0x2bdc7c(0x438)],{'variant':_0x2bdc7c(0x2fe),'disabled':!_0x244152[_0x2bdc7c(0x107)](_0xce9a58),'aria-label':_0x5c29ba['t']('bases-dashboard-ui.mobile.permissions'),'onClick':()=>{const _0x358989=_0x2bdc7c;(0x0,m[_0x358989(0x327)])(_0x1d7af4,{'target':_0xce9a58,'name':_0x28432f[_0x358989(0x4a1)],'commandId':l[_0x358989(0x370)]['id'],'exists':()=>!!_0x4b4a64['getDashboard'](_0x577210,_0x10ed27)});},'children':(0x0,g['jsx'])(s[_0x2bdc7c(0x140)],{})}),(0x0,g[_0x2bdc7c(0x12b)])(t['BaseUnitCollaborationStatus'],{'unitId':_0x577210}),(0x0,g[_0x2bdc7c(0x12b)])(f[_0x2bdc7c(0x438)],{'type':'button','size':_0x2bdc7c(0x274),'variant':_0x2bdc7c(0x2fe),'aria-label':_0x5c29ba['t'](_0x2bdc7c(0x207)),'disabled':!_0x1bd639||_0x1393cd[_0x2bdc7c(0x188)]===0x0,'onClick':()=>_0x5337fb[_0x2bdc7c(0x32d)](a[_0x2bdc7c(0x429)]['id'])[_0x2bdc7c(0x1f0)](()=>void 0x0),'children':(0x0,g[_0x2bdc7c(0x12b)])(s[_0x2bdc7c(0x31f)],{})}),(0x0,g['jsx'])(f[_0x2bdc7c(0x438)],{'type':_0x2bdc7c(0x396),'size':'small','variant':_0x2bdc7c(0x2fe),'aria-label':_0x5c29ba['t']('bases-dashboard-ui.dashboard.redo'),'disabled':!_0x1bd639||_0x1393cd[_0x2bdc7c(0x23a)]===0x0,'onClick':()=>_0x5337fb[_0x2bdc7c(0x32d)](a[_0x2bdc7c(0x412)]['id'])[_0x2bdc7c(0x1f0)](()=>void 0x0),'children':(0x0,g['jsx'])(s[_0x2bdc7c(0x187)],{})}),(0x0,g[_0x2bdc7c(0x12b)])(f[_0x2bdc7c(0x438)],{'type':_0x2bdc7c(0x396),'size':_0x2bdc7c(0x274),'variant':_0x2bdc7c(0x2fe),'aria-label':_0x5c29ba['t'](_0x2bdc7c(0x306)),'onClick':_0xcd5b32,'children':(0x0,g[_0x2bdc7c(0x12b)])(s[_0x2bdc7c(0x3d2)],{})}),(0x0,g[_0x2bdc7c(0x12b)])(de,{'items':_0x4bf7d4,'children':(0x0,g['jsxs'])(f['Button'],{'variant':_0x2bdc7c(0x491),'disabled':!_0x1bd639,'children':[(0x0,g[_0x2bdc7c(0x12b)])(s[_0x2bdc7c(0x32c)],{}),_0x5c29ba['t']('bases-dashboard-ui.dashboard.addWidget')]})})]}),(0x0,g[_0x2bdc7c(0x402)])(_0x2bdc7c(0x159),{'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1','children':[(0x0,g[_0x2bdc7c(0x12b)])(_0x2bdc7c(0x159),{'className':'univer-min-w-0\x20univer-flex-1','children':(0x0,g[_0x2bdc7c(0x12b)])(le,{'dashboard':_0x28432f,'editable':_0x2e6a22,'widgetLabel':_0x2f4c10=>_0x5c29ba['t'](Ue(_0x2f4c10[_0x2bdc7c(0x469)])),'selectedWidgetId':_0x2e6a22?_0x3cb50b:void 0x0,'onSelectWidget':_0x2e6a22?_0x349ea2=>{_0x3dc5d2(_0x349ea2),_0x349ea2||_0x4ecda(!0x1);}:void 0x0,'renderWidget':_0xcacd8a=>(0x0,g['jsx'])(Le,{'base':_0x4e0676,'dashboard':_0x28432f,'unitId':_0x577210,'widget':_0xcacd8a,'onChange':_0x3e276b,'onChartRuntimeChange':_0x4a058f}),'renderWidgetActions':_0x399e07=>(0x0,g['jsx'])(Fe,{'onMoveUp':_0x28432f[_0x2bdc7c(0x4c8)][_0x2bdc7c(0x2d3)](_0x399e07['id'])>0x0?()=>_0x4ebd2c(_0x399e07['id'],-0x1):void 0x0,'onMoveDown':_0x28432f[_0x2bdc7c(0x4c8)][_0x2bdc7c(0x2d3)](_0x399e07['id'])<_0x28432f[_0x2bdc7c(0x4c8)][_0x2bdc7c(0x416)]-0x1?()=>_0x4ebd2c(_0x399e07['id'],0x1):void 0x0,'onEdit':()=>{_0x3dc5d2(_0x399e07['id']),_0x4ecda(!0x0);},'onDelete':()=>{const _0x50c124=_0x2bdc7c;_0x3cb50b===_0x399e07['id']&&(_0x3dc5d2(void 0x0),_0x4ecda(!0x1)),_0x5337fb[_0x50c124(0x32d)](e['RemoveBaseDashboardWidgetCommand']['id'],{'unitId':_0x577210,'dashboardId':_0x10ed27,'widgetId':_0x399e07['id']})[_0x50c124(0x1f0)](()=>void 0x0);}})})}),_0x2e6a22&&_0x16746e&&_0x542160&&(0x0,g[_0x2bdc7c(0x12b)])(De,{'base':_0x4e0676,'chartRuntime':_0x4755fb[_0x2bdc7c(0x24a)](_0x542160['id']),'unitId':_0x577210,'widget':_0x542160,'onChange':_0x3e276b,'onClose':()=>_0x4ecda(!0x1),'onSelectBackgroundImage':()=>He(_0x5d8668),'onSelectImage':()=>Ve(_0x2f6e44)})]})]})});}function Le({base:_0x39826e,dashboard:_0x155e4f,onChange:_0x2431e7,onChartRuntimeChange:_0x198b1a,unitId:_0x51a933,widget:_0x1c1092}){const _0x542f04=_0x10fa58;let _0x12ad6f=(0x0,h['useMemo'])(()=>_0x155e4f['widgetOrder'][_0x542f04(0x226)](_0x27e883=>{const _0x40dad6=_0x542f04;let _0x5b100e=_0x155e4f[_0x40dad6(0x1bd)][_0x27e883];return(_0x5b100e==null?void 0x0:_0x5b100e[_0x40dad6(0x469)])===e[_0x40dad6(0x27e)]['TableFilter']&&_0x5b100e[_0x40dad6(0x3ce)]===(_0x40dad6(0x3ce)in _0x1c1092?_0x1c1092['tableId']:'')&&_0x5b100e[_0x40dad6(0x3fa)]?[_0x5b100e[_0x40dad6(0x3fa)]]:[];}),[_0x155e4f,_0x1c1092]);switch(_0x1c1092['type']){case e[_0x542f04(0x27e)][_0x542f04(0x40f)]:return(0x0,g['jsx'])(ie,{'filters':_0x12ad6f,'unitId':_0x51a933,'widget':_0x1c1092,'onRuntimeChange':_0x198b1a});case e[_0x542f04(0x27e)][_0x542f04(0x177)]:return(0x0,g['jsx'])(Te,{'fields':Re(_0x39826e,_0x1c1092[_0x542f04(0x3ce)]),'filter':_0x1c1092[_0x542f04(0x3fa)],'onChange':_0x20ec31=>_0x2431e7({..._0x1c1092,'filter':_0x20ec31})[_0x542f04(0x1f0)](()=>void 0x0)});case e[_0x542f04(0x27e)][_0x542f04(0x2a7)]:return(0x0,g[_0x542f04(0x12b)])(ce,{'widget':_0x1c1092});case e[_0x542f04(0x27e)]['Image']:return(0x0,g['jsx'])(ze,{'widget':_0x1c1092});case e[_0x542f04(0x27e)][_0x542f04(0x3f1)]:return(0x0,g['jsx'])(M,{'dashboardId':_0x155e4f['id'],'unitId':_0x51a933,'widget':_0x1c1092});}}function Re(_0x374d74,_0xa7b580){const _0x2b1e41=_0x10fa58;let _0xbdf067=_0x374d74['getSnapshot']()[_0x2b1e41(0x19e)][_0xa7b580],_0x169752=_0xbdf067==null?void 0x0:_0xbdf067['viewOrder'][_0x2b1e41(0x315)](_0x4b89cb=>_0xbdf067['views'][_0x4b89cb]),_0x113eee=_0x169752?_0xbdf067==null?void 0x0:_0xbdf067[_0x2b1e41(0x1d2)][_0x169752]:void 0x0;return _0xbdf067&&_0x113eee?(0x0,t[_0x2b1e41(0x2ac)])(_0xbdf067,_0x113eee):[];}function ze({widget:_0x34a69a}){const _0x391890=_0x10fa58;let _0x2cbe7e=(0x0,m[_0x391890(0x162)])(u[_0x391890(0x4a5)]),[_0x5eef90,_0x289714]=(0x0,h[_0x391890(0x1cc)])(_0x34a69a['sourceType']===a[_0x391890(0x24d)][_0x391890(0x37d)]?'':_0x34a69a[_0x391890(0x133)]);return(0x0,h[_0x391890(0x1a9)])(()=>{const _0x3457b9=_0x391890;let _0x3f5d92=!0x0;return _0x2cbe7e[_0x3457b9(0x11c)](_0x34a69a[_0x3457b9(0x133)],_0x34a69a[_0x3457b9(0x248)])[_0x3457b9(0x46e)](_0x40f66a=>{_0x3f5d92&&_0x289714(_0x40f66a);})[_0x3457b9(0x1f0)](()=>void 0x0),()=>{_0x3f5d92=!0x1;};},[_0x2cbe7e,_0x34a69a['source'],_0x34a69a[_0x391890(0x248)]]),_0x5eef90?(0x0,g[_0x391890(0x12b)])(_0x391890(0x159),{'role':_0x34a69a[_0x391890(0x105)]?_0x391890(0x27c):void 0x0,'aria-label':_0x34a69a[_0x391890(0x105)]||void 0x0,'data-dashboard-image':_0x34a69a['id'],'className':'univer-h-full\x20univer-w-full\x20univer-bg-transparent','style':E(_0x5eef90,_0x34a69a[_0x391890(0xe5)])}):null;}function Be(){const _0x1b481e=_0x10fa58;let _0x2252fc=(0x0,a[_0x1b481e(0xd2)])(new Set());return{'id':_0x1b481e(0x1f5)+(0x0,a['generateRandomId'])(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x2252fc}]},'documentStyle':{}};}function Ve(_0x2996b2){return new Promise(_0x2e6eff=>{const _0x3f522e=_0x16b2;let _0x3e690d=document['createElement'](_0x3f522e(0x439));_0x3e690d[_0x3f522e(0x469)]=_0x3f522e(0x282),_0x3e690d['accept']='image/*',_0x3e690d[_0x3f522e(0x389)]('change',()=>{const _0x598ed8=_0x3f522e;var _0x5f1f1d;let _0x22ec68=(_0x5f1f1d=_0x3e690d['files'])==null?void 0x0:_0x5f1f1d[0x0];_0x22ec68?_0x2996b2[_0x598ed8(0x302)](_0x22ec68)[_0x598ed8(0x46e)](_0x532220=>{const _0x55f4fb=_0x598ed8;!_0x532220[_0x55f4fb(0x133)]||_0x532220['sourceType']===void 0x0?_0x2e6eff(null):_0x2e6eff({'name':_0x532220[_0x55f4fb(0x4a1)],'source':_0x532220[_0x55f4fb(0x133)],'sourceType':_0x532220['sourceType']});})[_0x598ed8(0x1f0)](()=>_0x2e6eff(null)):_0x2e6eff(null);},{'once':!0x0}),_0x3e690d['click']();});}function _0x16b2(_0x320893,_0x32b780){_0x320893=_0x320893-0xbd;const _0x14db93=_0x14db();let _0x16b2d4=_0x14db93[_0x320893];return _0x16b2d4;}function He(_0x2aebb7){return new Promise(_0x143e46=>{const _0x595a02=_0x16b2;let _0x11ff90=document[_0x595a02(0xe3)](_0x595a02(0x439));_0x11ff90[_0x595a02(0x469)]=_0x595a02(0x282),_0x11ff90[_0x595a02(0x367)]=_0x595a02(0x321),_0x11ff90[_0x595a02(0x389)](_0x595a02(0x454),()=>{const _0x4be23f=_0x595a02;var _0x51d57b;let _0x2936d1=(_0x51d57b=_0x11ff90['files'])==null?void 0x0:_0x51d57b[0x0];_0x2936d1?_0x2aebb7[_0x4be23f(0xc7)](_0x2936d1)[_0x4be23f(0x46e)](_0x8145a3=>{const _0x4965e7=_0x4be23f;if(!(_0x8145a3!=null&&_0x8145a3[_0x4965e7(0x133)]))_0x143e46(null);else{if(_0x8145a3['base64Cache']){let _0x51b6b6=new Image();_0x51b6b6[_0x4965e7(0x122)]=_0x8145a3[_0x4965e7(0x1dd)],_0x2aebb7['addImageSourceCache'](_0x8145a3[_0x4965e7(0x133)],_0x8145a3[_0x4965e7(0x13b)],_0x51b6b6);}_0x143e46({'source':_0x8145a3[_0x4965e7(0x133)],'sourceType':_0x8145a3[_0x4965e7(0x13b)]});}})['catch'](()=>_0x143e46(null)):_0x143e46(null);},{'once':!0x0}),_0x11ff90[_0x595a02(0x3d8)]();});}function Ue(_0x3e971a){const _0x300604=_0x10fa58;switch(_0x3e971a){case e[_0x300604(0x27e)][_0x300604(0x40f)]:return _0x300604(0x278);case e[_0x300604(0x27e)][_0x300604(0x177)]:return _0x300604(0x4a6);case e[_0x300604(0x27e)][_0x300604(0x2a7)]:return _0x300604(0x384);case e['BaseDashboardWidgetType'][_0x300604(0x3e9)]:return _0x300604(0x443);case e['BaseDashboardWidgetType'][_0x300604(0x3f1)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function We(_0x4c3a09){const _0x4c23f3=_0x10fa58;return(_0x4c3a09==null?void 0x0:_0x4c3a09[_0x4c23f3(0x469)])===a[_0x4c23f3(0x22d)][_0x4c23f3(0x48c)]&&typeof _0x4c3a09[_0x4c23f3(0xfb)]==_0x4c23f3(0x334)&&_0x4c3a09['config']!==null&&'pivot'in _0x4c3a09[_0x4c23f3(0xfb)]&&_0x4c23f3(0x1a8)in _0x4c3a09['config'];}function Ge({pivot:_0x58016f,view:_0x372d2b}){const _0x250919=_0x10fa58;let _0x444118=(0x0,m[_0x250919(0x162)])(a[_0x250919(0x17c)]),_0x33c5a4=(0x0,h['useMemo'])(()=>Ke(_0x372d2b,_0x58016f,_0x444118['t'](_0x250919(0x232))),[_0x444118,_0x58016f,_0x372d2b]);return(0x0,g[_0x250919(0x402)])(_0x250919(0x159),{'className':'univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','children':[_0x33c5a4['pageRows'][_0x250919(0x416)]>0x0&&(0x0,g[_0x250919(0x12b)])('table',{'className':_0x250919(0x249),'children':(0x0,g[_0x250919(0x12b)])(_0x250919(0x299),{'children':qe(_0x33c5a4[_0x250919(0x1ef)])})}),(0x0,g[_0x250919(0x402)])('table',{'className':'univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','children':[_0x33c5a4[_0x250919(0x33c)]>0x0&&(0x0,g[_0x250919(0x12b)])(_0x250919(0x368),{'className':'univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','children':qe(_0x33c5a4[_0x250919(0x39f)][_0x250919(0x1f3)](0x0,_0x33c5a4[_0x250919(0x33c)]))}),(0x0,g[_0x250919(0x12b)])('tbody',{'children':qe(_0x33c5a4['rows']['slice'](_0x33c5a4[_0x250919(0x33c)]))})]})]});}function Ke(_0x25cbef,_0x3d2469,_0x38272b){const _0x567b7e=_0x10fa58;let _0x19b3af=_0x25cbef[_0x567b7e(0x317)][_0x567b7e(0x1c7)],_0xa5550c=_0x25cbef[_0x567b7e(0x1e0)][_0x567b7e(0x250)],_0x4199ca=_0x25cbef[_0x567b7e(0x2aa)][_0x567b7e(0x1c7)],_0x2076f2=_0x25cbef[_0x567b7e(0x2aa)][_0x567b7e(0x250)],_0x1a5764=Array[_0x567b7e(0x2cd)]({'length':_0x19b3af+_0x4199ca},(_0x1ee555,_0x5af985)=>Array[_0x567b7e(0x2cd)]({'length':_0xa5550c+_0x2076f2},(_0x205971,_0x2883e7)=>{const _0x18b67a=_0x567b7e;var _0x2cde0f,_0x194269;if(_0x5af985<_0x19b3af&&_0x2883e7<_0xa5550c)return Je(_0x25cbef['cornerView'],_0x5af985,_0x2883e7,void 0x0,_0x38272b,!0x0,!0x1,'corner:'+_0x5af985+':'+_0x2883e7);if(_0x5af985<_0x19b3af){var _0x19e00e;let _0x59e775=_0x2883e7-_0xa5550c,_0x2e36ed=(_0x19e00e=_0x25cbef[_0x18b67a(0x317)][_0x18b67a(0x39d)][_0x5af985])==null?void 0x0:_0x19e00e[_0x18b67a(0xd9)];return Je(_0x25cbef[_0x18b67a(0x317)],_0x5af985,_0x59e775,_0x2e36ed?_0x25cbef[_0x18b67a(0x318)][_0x2e36ed]:void 0x0,_0x38272b,!0x0,Ze(_0x25cbef[_0x18b67a(0x317)]['info'][_0x59e775]),'column:'+_0x5af985+':'+_0x59e775);}if(_0x2883e7<_0xa5550c){var _0x31aaff;let _0x583ef3=_0x5af985-_0x19b3af,_0x2b3817=(_0x31aaff=_0x25cbef[_0x18b67a(0x1e0)][_0x18b67a(0x39d)][_0x2883e7])==null?void 0x0:_0x31aaff['tableFieldId'];return Je(_0x25cbef['rowView'],_0x583ef3,_0x2883e7,_0x2b3817?_0x25cbef[_0x18b67a(0x318)][_0x2b3817]:void 0x0,_0x38272b,!0x0,Ze(_0x25cbef[_0x18b67a(0x1e0)]['info'][_0x583ef3]),_0x18b67a(0xfa)+_0x583ef3+':'+_0x2883e7);}let _0x14b1f7=_0x5af985-_0x19b3af,_0x7a4954=_0x2883e7-_0xa5550c,_0x453a21=Math[_0x18b67a(0x41b)](((_0x2cde0f=_0x25cbef[_0x18b67a(0x1e0)][_0x18b67a(0x337)][_0x14b1f7])==null?void 0x0:_0x2cde0f[_0x18b67a(0x3ed)])??-0x1,((_0x194269=_0x25cbef['colView']['info'][_0x7a4954])==null?void 0x0:_0x194269[_0x18b67a(0x3ed)])??-0x1),_0x3303f0=_0x3d2469[_0x18b67a(0x48d)][_0x453a21<0x0?0x0:_0x453a21];return Je(_0x25cbef[_0x18b67a(0x2aa)],_0x14b1f7,_0x7a4954,_0x3303f0?_0x25cbef[_0x18b67a(0x318)][_0x3303f0]:void 0x0,_0x38272b,!0x1,Ze(_0x25cbef[_0x18b67a(0x1e0)]['info'][_0x14b1f7])||Ze(_0x25cbef['colView'][_0x18b67a(0x337)][_0x7a4954]),_0x18b67a(0x40a)+_0x14b1f7+':'+_0x7a4954);}));return{'headerColumnCount':_0xa5550c,'headerRowCount':_0x19b3af,'pageRows':_0x25cbef[_0x567b7e(0x366)][_0x567b7e(0x1b0)]<0x0||_0x25cbef[_0x567b7e(0x366)][_0x567b7e(0x37e)]<0x0?[]:Array['from']({'length':_0x25cbef[_0x567b7e(0x366)][_0x567b7e(0x1b0)]+0x1},(_0x45afa9,_0xd06d09)=>Array[_0x567b7e(0x2cd)]({'length':_0x25cbef[_0x567b7e(0x366)]['lastCol']+0x1},(_0x1c068e,_0x2687d2)=>Je(_0x25cbef[_0x567b7e(0x366)],_0xd06d09,_0x2687d2,void 0x0,_0x38272b,!0x0,!0x1,_0x567b7e(0x305)+_0xd06d09+':'+_0x2687d2))),'rows':_0x1a5764};}function qe(_0x112ecd){const _0x1e6a48=_0x10fa58;return _0x112ecd[_0x1e6a48(0x47e)](_0x3c1ed4=>{const _0x18ed91=_0x1e6a48;var _0x33ee51;return(0x0,g['jsx'])('tr',{'children':_0x3c1ed4['map'](_0x52f495=>{const _0x34f35e=_0x16b2;let _0x1a177e=_0x52f495[_0x34f35e(0x4cf)]?'th':'td';return(0x0,g[_0x34f35e(0x12b)])(_0x1a177e,{'className':_0x34f35e(0x3ea)+(_0x52f495['isTotal']?_0x34f35e(0x380):'')+_0x34f35e(0x3a2)+(_0x52f495[_0x34f35e(0x4cf)]?'':_0x34f35e(0x281))+_0x34f35e(0xf9),'children':_0x52f495[_0x34f35e(0x16c)]},_0x52f495[_0x34f35e(0x479)]);})},(_0x33ee51=_0x3c1ed4[0x0])==null?void 0x0:_0x33ee51[_0x18ed91(0x479)]);});}function Je(_0x2dcf6a,_0x4d5fbe,_0x222ea9,_0x2fb758,_0x1b422d,_0x6b35b7,_0x366374,_0x2e0448){const _0x216f3f=_0x10fa58;var _0x4ddb71;let _0xd4774d=(_0x4ddb71=_0x2dcf6a[_0x216f3f(0x265)][_0x4d5fbe])==null?void 0x0:_0x4ddb71[_0x222ea9],_0x3789a2=_0xd4774d==null?void 0x0:_0xd4774d['s'],_0x21cbf4=_0x366374||_0x3789a2===y[_0x216f3f(0x2a4)]['GrandTotal']||_0x3789a2===y[_0x216f3f(0x2a4)][_0x216f3f(0x165)];return{'isHeader':_0x6b35b7,'isTotal':_0x21cbf4||_0x3789a2===y[_0x216f3f(0x2a4)][_0x216f3f(0x25e)],'key':_0x2e0448,'style':_0x3789a2,'value':_0x21cbf4&&Xe(_0xd4774d==null?void 0x0:_0xd4774d['v'])?_0x1b422d:Ye(_0xd4774d,_0x2fb758)};}function Ye(_0x5ea7b8,_0x33c76b){const _0x59091d=_0x10fa58;let _0x2cbbaa=_0x5ea7b8==null?void 0x0:_0x5ea7b8['v'];return(0x0,y[_0x59091d(0x413)])(_0x2cbbaa)?String(_0x2cbbaa[_0x59091d(0x16c)]??_0x2cbbaa[_0x59091d(0x213)]??''):(0x0,y[_0x59091d(0x25f)])(_0x2cbbaa)?'#'+_0x2cbbaa[_0x59091d(0x252)]:_0x33c76b&&typeof _0x2cbbaa==_0x59091d(0x25c)?a['numfmt'][_0x59091d(0x2ee)](_0x33c76b,_0x2cbbaa):String(_0x2cbbaa??'');}function Xe(_0x1132c9){return _0x1132c9===void 0x0||_0x1132c9==='';}function Ze(_0x35b938){const _0x31b7ae=_0x10fa58;return!!(_0x35b938!=null&&_0x35b938[_0x31b7ae(0x38c)]||_0x35b938!=null&&_0x35b938[_0x31b7ae(0x3f7)]||_0x35b938!=null&&_0x35b938[_0x31b7ae(0x34a)]||(_0x35b938==null?void 0x0:_0x35b938[_0x31b7ae(0x460)])==='grandTotal');}const Qe=[{'area':y[_0x10fa58(0x473)]['Filter'],'key':_0x10fa58(0x1e9),'label':_0x10fa58(0x481)},{'area':y['PivotTableFiledAreaEnum'][_0x10fa58(0x1b3)],'key':_0x10fa58(0x3e5),'label':_0x10fa58(0x1ac)},{'area':y[_0x10fa58(0x473)]['Row'],'key':'rowFields','label':_0x10fa58(0x18c)},{'area':y[_0x10fa58(0x473)]['Value'],'key':_0x10fa58(0x48d),'label':_0x10fa58(0x32b)}],$e=[{'value':y[_0x10fa58(0x235)][_0x10fa58(0x43f)],'localeKey':_0x10fa58(0x179)},{'value':y[_0x10fa58(0x235)][_0x10fa58(0x1da)],'localeKey':_0x10fa58(0x3ff)},{'value':y[_0x10fa58(0x235)]['countNums'],'localeKey':_0x10fa58(0x19f)},{'value':y['PivotSubtotalTypeEnum'][_0x10fa58(0x420)],'localeKey':_0x10fa58(0x3cb)},{'value':y[_0x10fa58(0x235)]['max'],'localeKey':_0x10fa58(0xd4)},{'value':y['PivotSubtotalTypeEnum'][_0x10fa58(0x2ce)],'localeKey':_0x10fa58(0x31b)},{'value':y['PivotSubtotalTypeEnum'][_0x10fa58(0x3b9)],'localeKey':_0x10fa58(0x3f9)},{'value':y[_0x10fa58(0x235)][_0x10fa58(0x364)],'localeKey':_0x10fa58(0x2c7)},{'value':y['PivotSubtotalTypeEnum']['stdDevp'],'localeKey':'bases-dashboard-ui.pivot.stdDevPopulation'},{'value':y[_0x10fa58(0x235)][_0x10fa58(0x276)],'localeKey':_0x10fa58(0x2a5)},{'value':y[_0x10fa58(0x235)]['varp'],'localeKey':_0x10fa58(0x3f0)}];function et(_0x49b1d1){const _0x188fab=_0x10fa58;let {config:_0x4958f3,onChange:_0x3012f6,table:_0x35e8d6}=_0x49b1d1,_0x11df41=(0x0,m[_0x188fab(0x162)])(a[_0x188fab(0x17c)]),[_0x10c530,_0x5ca878]=(0x0,h[_0x188fab(0x1cc)])(_0x188fab(0x1aa)),[_0x249b94,_0x4ca409]=(0x0,h[_0x188fab(0x1cc)])(''),[_0x366bd3,_0x13cd03]=(0x0,h[_0x188fab(0x1cc)])(null),[_0x462279,_0x913a86]=(0x0,h[_0x188fab(0x1cc)])(null),[_0x115691,_0x3c820b]=(0x0,h['useState'])(null),[_0x2cf332,_0x1c1cc1]=(0x0,h['useState'])(null),_0x139b5d=(0x0,h[_0x188fab(0xfd)])(null),_0x187f21=(0x0,h['useMemo'])(()=>_0x35e8d6['fieldOrder']['flatMap'](_0x38ba46=>{const _0x5a5dbc=_0x188fab;let _0x163eb9=_0x35e8d6[_0x5a5dbc(0x1aa)][_0x38ba46];return _0x163eb9&&_0x163eb9[_0x5a5dbc(0x2a1)]!==!0x0&&_0x163eb9['type']!==a[_0x5a5dbc(0x466)]['RecordId']?[_0x163eb9]:[];})['filter'](_0x2667b6=>_0x2667b6[_0x188fab(0x4a1)][_0x188fab(0x27d)]()[_0x188fab(0x206)](_0x249b94[_0x188fab(0x3e6)]()[_0x188fab(0x27d)]())),[_0x249b94,_0x35e8d6]),_0x418a81=_0x3da832=>{const _0x130bdb=_0x188fab;let _0x156af6=(0x0,e[_0x130bdb(0x14a)])(_0x35e8d6,_0x4958f3[_0x130bdb(0x2c2)]);try{_0x3da832(_0x156af6),_0x3012f6({'pivot':_0x156af6[_0x130bdb(0x4c1)]()});}finally{_0x156af6[_0x130bdb(0x312)]();}},_0x135ff6=(_0x545d4d,_0x16f983)=>{_0x366bd3&&(_0x418a81(_0x55594f=>{const _0x1d90d5=_0x16b2;if(_0x366bd3[_0x1d90d5(0x3e2)]===_0x1d90d5(0x224)){let _0x1b8c70=_0x55594f[_0x1d90d5(0x3bd)](_0x366bd3['id']),_0x264cd5=_0x1b8c70['area']===_0x545d4d&&_0x1b8c70['index']<_0x16f983?_0x16f983-0x1:_0x16f983;_0x55594f[_0x1d90d5(0x4a3)](_0x366bd3['id'],_0x545d4d,_0x264cd5);}else ct(_0x55594f,_0x366bd3['id'],_0x545d4d,_0x16f983);}),_0x13cd03(null),_0x913a86(null));};return(0x0,g[_0x188fab(0x402)])('div',{'className':_0x188fab(0x163),'children':[(0x0,g[_0x188fab(0x12b)])(n[_0x188fab(0x2eb)],{'ariaLabel':_0x11df41['t'](_0x188fab(0x172)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x11df41['t'](_0x188fab(0x34f)),'panelId':_0x188fab(0x46d),'value':_0x188fab(0x1aa)},{'label':_0x11df41['t'](_0x188fab(0x2f7)),'panelId':_0x188fab(0x333),'value':_0x188fab(0x28d)}],'value':_0x10c530,'onChange':_0x5ca878}),(0x0,g[_0x188fab(0x12b)])(_0x188fab(0x159),{'ref':_0x139b5d,'className':(0x0,f[_0x188fab(0x4b2)])(_0x188fab(0x2a8),f[_0x188fab(0xfc)]),'onDragOver':_0x194931=>{const _0x114f5d=_0x188fab;let _0x517056=_0x139b5d[_0x114f5d(0x2c3)];if(!_0x517056)return;let _0x8bbe73=_0x517056[_0x114f5d(0x360)]();_0x194931['clientY']<_0x8bbe73[_0x114f5d(0x381)]+0x30?_0x517056['scrollTop']-=0x10:_0x194931[_0x114f5d(0x2b6)]>_0x8bbe73[_0x114f5d(0x219)]-0x30&&(_0x517056[_0x114f5d(0x1ba)]+=0x10);},'children':_0x10c530===_0x188fab(0x28d)?(0x0,g[_0x188fab(0x12b)])(st,{'config':_0x4958f3,'commit':_0x418a81}):(0x0,g['jsxs'])(_0x188fab(0x159),{'className':_0x188fab(0x484),'children':[(0x0,g['jsxs'])(_0x188fab(0x159),{'children':[(0x0,g['jsx'])(_0x188fab(0x159),{'className':_0x188fab(0x24c),'children':_0x11df41['t'](_0x188fab(0x4ba))}),(0x0,g[_0x188fab(0x12b)])(f[_0x188fab(0x23f)],{'allowClear':!0x0,'slot':(0x0,g[_0x188fab(0x12b)])(s[_0x188fab(0x1fc)],{}),'value':_0x249b94,'placeholder':_0x11df41['t'](_0x188fab(0x2ef)),'onChange':_0x4ca409}),(0x0,g['jsx'])(_0x188fab(0x159),{'className':_0x188fab(0x1e5),'children':_0x187f21[_0x188fab(0x47e)](_0x1b919a=>(0x0,g[_0x188fab(0x12b)])(tt,{'config':_0x4958f3,'field':_0x1b919a,'onAdd':_0x2e90e9=>_0x418a81(_0x4e6553=>ct(_0x4e6553,_0x1b919a['id'],_0x2e90e9,_0x4e6553['getFieldCountByArea'](_0x2e90e9))),'onCheckedChange':_0x1d2c89=>_0x418a81(_0xabffba=>{const _0x1da980=_0x188fab;let _0x2a5e92=_0xabffba[_0x1da980(0x409)](_0x1b919a['id']);if(!_0x1d2c89)_0x2a5e92[_0x1da980(0x362)](_0x11795b=>_0xabffba['removeField'](_0x11795b[_0x1da980(0xe4)]()));else{if(_0x2a5e92[_0x1da980(0x416)]===0x0){let _0x1955e0=ut(_0x1b919a)?y[_0x1da980(0x473)][_0x1da980(0x3cd)]:y[_0x1da980(0x473)][_0x1da980(0x3fd)];_0xabffba[_0x1da980(0x353)](_0x1b919a['id'],_0x1955e0);}}}),'onDragStart':()=>_0x13cd03({'kind':'source','id':_0x1b919a['id']})},_0x1b919a['id']))})]}),(0x0,g['jsx'])(_0x188fab(0x159),{'className':_0x188fab(0x4b0),'children':Qe[_0x188fab(0x47e)](_0x34f2ef=>(0x0,g[_0x188fab(0x12b)])(rt,{'area':_0x34f2ef['area'],'dropTarget':_0x462279,'fields':_0x4958f3[_0x188fab(0x2c2)][_0x34f2ef[_0x188fab(0x479)]],'label':_0x11df41['t'](_0x34f2ef['label']),'snapshot':_0x4958f3[_0x188fab(0x2c2)],'onDragEnd':()=>{_0x13cd03(null),_0x913a86(null);},'onDragStart':_0xa5129b=>_0x13cd03({'kind':_0x188fab(0x224),'id':_0xa5129b,'area':_0x34f2ef[_0x188fab(0x257)]}),'onDragOver':_0x173647=>_0x913a86({'area':_0x34f2ef[_0x188fab(0x257)],'index':_0x173647}),'onDrop':_0xe2fef0=>_0x135ff6(_0x34f2ef[_0x188fab(0x257)],_0xe2fef0),'onFilter':_0x3c820b,'onMove':(_0x870537,_0x369503,_0x1dc8ed)=>_0x418a81(_0x5aa79c=>_0x5aa79c[_0x188fab(0x4a3)](_0x870537,_0x369503,_0x1dc8ed)),'onRemove':_0x52e585=>_0x418a81(_0x14bf84=>_0x14bf84[_0x188fab(0x175)](_0x52e585)),'onSettings':_0x1c1cc1},_0x34f2ef[_0x188fab(0x257)]))}),_0x115691&&(0x0,g[_0x188fab(0x12b)])(at,{'fieldId':_0x115691,'snapshot':_0x4958f3['pivot'],'table':_0x35e8d6,'onCancel':()=>_0x3c820b(null),'onCommit':(_0x177d06,_0x730fac)=>{_0x418a81(_0x1c1e50=>{const _0xeca928=_0x16b2;let _0x25b4bf=_0x1c1e50['getDataFieldByTableId'](_0x115691),_0x2e3687=(_0x25b4bf==null?void 0x0:_0x25b4bf[_0xeca928(0x4a7)])??[];_0x1c1e50[_0xeca928(0x15a)](_0x115691,{'type':y['PivotFilterTypeEnum'][_0xeca928(0x1ee)],'list':_0x177d06,'isAll':_0x177d06['length']===_0x2e3687['length']}),_0x1c1e50[_0xeca928(0x2c8)](_0x115691,_0x730fac===void 0x0?void 0x0:{'type':_0x730fac});}),_0x3c820b(null);}},_0x115691),_0x2cf332&&(0x0,g[_0x188fab(0x12b)])(ot,{'field':_0x4958f3[_0x188fab(0x2c2)][_0x188fab(0x4bf)][_0x2cf332],'onCancel':()=>_0x1c1cc1(null),'onCommit':(_0x30327a,_0x3d1fc2,_0x315bc2)=>{_0x418a81(_0x5efd80=>{const _0x5d9839=_0x16b2;_0x5efd80[_0x5d9839(0x313)](_0x2cf332,_0x30327a),_0x5efd80[_0x5d9839(0x15d)](_0x2cf332,_0x3d1fc2),_0x5efd80['setFieldFormat'](_0x2cf332,_0x315bc2||void 0x0);}),_0x1c1cc1(null);}},_0x2cf332)]})})]});}function tt(_0x1ecf88){const _0x5dfc41=_0x10fa58;let {config:_0x1080e0,field:_0x41be2a,onAdd:_0x4b2ab6,onCheckedChange:_0x50ce1b,onDragStart:_0x2d9932}=_0x1ecf88,_0x1c8c45=(0x0,m[_0x5dfc41(0x162)])(a['LocaleService']),_0x30351d=[...Object[_0x5dfc41(0x20a)](_0x1080e0[_0x5dfc41(0x2c2)][_0x5dfc41(0x116)]),...Object[_0x5dfc41(0x20a)](_0x1080e0[_0x5dfc41(0x2c2)]['measure'])][_0x5dfc41(0x4aa)](_0x33413e=>_0x33413e[_0x5dfc41(0x36a)]===_0x41be2a['id']),_0x4168d6=Qe[_0x5dfc41(0x47e)](_0x19bd56=>({'type':_0x5dfc41(0x2f6),'children':_0x1c8c45['t'](dt(_0x19bd56[_0x5dfc41(0x257)])),'onSelect':()=>_0x4b2ab6(_0x19bd56[_0x5dfc41(0x257)])}));return(0x0,g[_0x5dfc41(0x402)])(_0x5dfc41(0x159),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x5dfc41(0x26c),'onDragStart':_0x2d9932,'children':[(0x0,g[_0x5dfc41(0x12b)])(f[_0x5dfc41(0x20d)],{'checked':_0x30351d,'onChange':_0x26bf11=>_0x50ce1b(!!_0x26bf11)}),(0x0,g[_0x5dfc41(0x12b)])(nt,{'field':_0x41be2a}),(0x0,g['jsx'])('span',{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','children':_0x41be2a['name']}),(0x0,g['jsx'])(de,{'align':_0x5dfc41(0x30e),'items':_0x4168d6,'children':(0x0,g[_0x5dfc41(0x12b)])(f[_0x5dfc41(0x438)],{'variant':'text','aria-label':_0x1c8c45['t'](_0x5dfc41(0x1a0)),'children':(0x0,g[_0x5dfc41(0x12b)])(s[_0x5dfc41(0x1e3)],{})})})]});}function nt({field:_0x2bce83}){const _0x1cace9=_0x10fa58;return ut(_0x2bce83)?(0x0,g['jsx'])(s[_0x1cace9(0x166)],{'className':'univer-text-gray-400'}):_0x2bce83[_0x1cace9(0x469)]===a[_0x1cace9(0x466)]['Date']||_0x2bce83['type']===a[_0x1cace9(0x466)]['CreatedAt']||_0x2bce83[_0x1cace9(0x469)]===a[_0x1cace9(0x466)][_0x1cace9(0x266)]?(0x0,g[_0x1cace9(0x12b)])(s[_0x1cace9(0x468)],{'className':'univer-text-gray-400'}):(0x0,g[_0x1cace9(0x12b)])(s[_0x1cace9(0x12c)],{'className':_0x1cace9(0x154)});}function rt(_0xc9b702){const _0xb1183e=_0x10fa58;let {area:_0x1acb0a,dropTarget:_0xe0bfbb,fields:_0xe66358,label:_0x24c326,snapshot:_0x6ff864}=_0xc9b702,_0x3de932=(0x0,m[_0xb1183e(0x162)])(a[_0xb1183e(0x17c)]);return(0x0,g[_0xb1183e(0x402)])('section',{'className':(0x0,f['clsx'])(_0xb1183e(0x27f),f[_0xb1183e(0x487)]),'onDragOver':_0x4b4e06=>{const _0x42cff4=_0xb1183e;_0x4b4e06[_0x42cff4(0x44c)](),_0xc9b702[_0x42cff4(0x2dc)](_0xe66358[_0x42cff4(0x416)]);},'onDrop':_0x250ba4=>{const _0x1424e5=_0xb1183e;_0x250ba4['preventDefault'](),_0xc9b702['onDrop']((_0xe0bfbb==null?void 0x0:_0xe0bfbb['area'])===_0x1acb0a?_0xe0bfbb[_0x1424e5(0x331)]:_0xe66358[_0x1424e5(0x416)]);},'children':[(0x0,g['jsx'])(_0xb1183e(0x159),{'className':'univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','children':_0x24c326}),(0x0,g[_0xb1183e(0x402)])(_0xb1183e(0x159),{'className':_0xb1183e(0x49c),'children':[_0xe66358[_0xb1183e(0x47e)]((_0x37e3d9,_0xf26a5f)=>{const _0x4bc5df=_0xb1183e;let _0x61073c=_0x6ff864[_0x4bc5df(0x116)][_0x37e3d9]??_0x6ff864[_0x4bc5df(0x4bf)][_0x37e3d9];if(!_0x61073c)return null;let _0x40fd3c=(_0xe0bfbb==null?void 0x0:_0xe0bfbb[_0x4bc5df(0x257)])===_0x1acb0a&&_0xe0bfbb['index']===_0xf26a5f;return(0x0,g[_0x4bc5df(0x402)])(_0x4bc5df(0x159),{'onDragOver':_0x52da69=>{const _0x3390c5=_0x4bc5df;_0x52da69['preventDefault'](),_0x52da69[_0x3390c5(0x284)]();let _0x1049b6=_0x52da69[_0x3390c5(0x49f)]['getBoundingClientRect']();_0xc9b702['onDragOver'](_0xf26a5f+ +(_0x52da69['clientY']>_0x1049b6[_0x3390c5(0x381)]+_0x1049b6[_0x3390c5(0x1ea)]/0x2));},'onDrop':_0x2d209c=>{const _0x4eb10d=_0x4bc5df;_0x2d209c[_0x4eb10d(0x44c)](),_0x2d209c[_0x4eb10d(0x284)](),_0xc9b702[_0x4eb10d(0x19d)]((_0xe0bfbb==null?void 0x0:_0xe0bfbb['area'])===_0x1acb0a?_0xe0bfbb['index']:_0xf26a5f);},'children':[_0x40fd3c&&(0x0,g['jsx'])('div',{'className':_0x4bc5df(0xf4)}),(0x0,g['jsx'])(it,{'area':_0x1acb0a,'field':_0x61073c,'onDragEnd':_0xc9b702['onDragEnd'],'onDragStart':()=>_0xc9b702['onDragStart'](_0x37e3d9),'onFilter':()=>_0xc9b702[_0x4bc5df(0xbe)](_0x37e3d9),'onMove':_0x5ed014=>_0xc9b702['onMove'](_0x37e3d9,_0x5ed014,0x0),'onMoveUp':_0xf26a5f>0x0?()=>_0xc9b702['onMove'](_0x37e3d9,_0x1acb0a,_0xf26a5f-0x1):void 0x0,'onMoveDown':_0xf26a5f<_0xe66358['length']-0x1?()=>_0xc9b702[_0x4bc5df(0x406)](_0x37e3d9,_0x1acb0a,_0xf26a5f+0x1):void 0x0,'onRemove':()=>_0xc9b702[_0x4bc5df(0x30c)](_0x37e3d9),'onSettings':()=>_0xc9b702[_0x4bc5df(0x311)](_0x37e3d9)})]},_0x37e3d9);}),(_0xe0bfbb==null?void 0x0:_0xe0bfbb[_0xb1183e(0x257)])===_0x1acb0a&&_0xe0bfbb[_0xb1183e(0x331)]===_0xe66358[_0xb1183e(0x416)]&&(0x0,g[_0xb1183e(0x12b)])(_0xb1183e(0x159),{'className':_0xb1183e(0xf4)}),_0xe66358['length']===0x0&&(0x0,g[_0xb1183e(0x12b)])(_0xb1183e(0x159),{'className':_0xb1183e(0x332),'children':_0x3de932['t'](_0xb1183e(0x4ba))})]})]});}function it(_0x218683){const _0x31f76c=_0x10fa58;let _0x1c2113=(0x0,m['useDependency'])(a[_0x31f76c(0x17c)]),_0x287a6d=_0x218683[_0x31f76c(0x257)]===y[_0x31f76c(0x473)][_0x31f76c(0x3cd)],_0x4e0d92=[...Qe[_0x31f76c(0x3fa)](_0x303cfb=>_0x303cfb['area']!==_0x218683[_0x31f76c(0x257)])['map'](_0x2036d5=>({'type':_0x31f76c(0x2f6),'children':_0x1c2113['t'](dt(_0x2036d5[_0x31f76c(0x257)])),'onSelect':()=>_0x218683[_0x31f76c(0x406)](_0x2036d5[_0x31f76c(0x257)])})),..._0x218683[_0x31f76c(0x2bd)]?[{'type':_0x31f76c(0x2f6),'children':_0x1c2113['t'](_0x31f76c(0xc3)),'onSelect':_0x218683[_0x31f76c(0x2bd)]}]:[],..._0x218683[_0x31f76c(0x141)]?[{'type':'item','children':_0x1c2113['t'](_0x31f76c(0x349)),'onSelect':_0x218683['onMoveDown']}]:[],{'type':_0x31f76c(0x2f6),'children':_0x1c2113['t'](_0x31f76c(0x347)),'onSelect':_0x218683[_0x31f76c(0x30c)]},{'type':_0x31f76c(0x2f6),'children':_0x1c2113['t'](_0x287a6d?_0x31f76c(0x1a0):'bases-dashboard-ui.pivot.filterField'),'onSelect':_0x287a6d?_0x218683[_0x31f76c(0x311)]:_0x218683[_0x31f76c(0xbe)]}];return(0x0,g['jsxs'])('div',{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x31f76c(0x48a),'onDragEnd':_0x218683[_0x31f76c(0x1b4)],'onDragStart':_0x218683[_0x31f76c(0x4cb)],'children':[(0x0,g[_0x31f76c(0x12b)])(f[_0x31f76c(0x143)],{'title':_0x218683[_0x31f76c(0x224)][_0x31f76c(0x225)],'children':(0x0,g['jsx'])(_0x31f76c(0x408),{'className':_0x31f76c(0x411),'children':_0x218683['field'][_0x31f76c(0x225)]})}),(0x0,g[_0x31f76c(0x12b)])(de,{'align':'end','items':_0x4e0d92,'children':(0x0,g[_0x31f76c(0x12b)])(f[_0x31f76c(0x438)],{'variant':_0x31f76c(0x2fe),'aria-label':_0x1c2113['t'](_0x31f76c(0x1a0)),'children':(0x0,g[_0x31f76c(0x12b)])(s['MoreDownIcon'],{})})})]});}function at(_0x2efc95){const _0x15c62e=_0x10fa58;var _0x2e6486,_0x553fb9;let _0xe1c195=(0x0,m[_0x15c62e(0x162)])(a[_0x15c62e(0x17c)]),{format:_0x2fbd37,items:_0x30e0b7,itemTypes:_0x301ae2}=(0x0,h[_0x15c62e(0x1d9)])(()=>{const _0x5cfb23=_0x15c62e;let _0x43fa86=(0x0,e[_0x5cfb23(0x14a)])(_0x2efc95[_0x5cfb23(0x1d8)],_0x2efc95['snapshot']);try{let _0x887caf=_0x43fa86[_0x5cfb23(0xf5)](_0x2efc95[_0x5cfb23(0xdb)]);return{'format':_0x887caf==null?void 0x0:_0x887caf['format'],'items':[...(_0x887caf==null?void 0x0:_0x887caf[_0x5cfb23(0x4a7)])??[]],'itemTypes':[...(_0x887caf==null?void 0x0:_0x887caf['itemTypes'])??[]]};}finally{_0x43fa86[_0x5cfb23(0x312)]();}},[_0x2efc95[_0x15c62e(0xdb)],_0x2efc95[_0x15c62e(0x14f)],_0x2efc95[_0x15c62e(0x1d8)]]),_0x214417=(_0x2e6486=_0x2efc95['snapshot'][_0x15c62e(0x116)][_0x2efc95['fieldId']])==null?void 0x0:_0x2e6486[_0x15c62e(0x1fe)],[_0x28ea34,_0x3c0f95]=(0x0,h[_0x15c62e(0x1cc)])((_0x214417==null?void 0x0:_0x214417[_0x15c62e(0x469)])===y[_0x15c62e(0x185)][_0x15c62e(0x1ee)]?_0x214417[_0x15c62e(0x29c)]:_0x30e0b7),[_0x207f6f,_0x23237e]=(0x0,h[_0x15c62e(0x1cc)])((_0x553fb9=_0x2efc95['snapshot'][_0x15c62e(0x116)][_0x2efc95['fieldId']])==null||(_0x553fb9=_0x553fb9[_0x15c62e(0x407)])==null?void 0x0:_0x553fb9['type']),_0x20c675=_0x28ea34[_0x15c62e(0x416)]===_0x30e0b7[_0x15c62e(0x416)],_0x26a4eb=(0x0,g[_0x15c62e(0x402)])(_0x15c62e(0x4d8),{'className':(0x0,f[_0x15c62e(0x4b2)])('univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900',f[_0x15c62e(0x487)]),'children':[(0x0,g[_0x15c62e(0x12b)])('div',{'className':_0x15c62e(0xc9),'children':_0xe1c195['t'](_0x15c62e(0x28b))}),(0x0,g['jsxs'])(_0x15c62e(0x159),{'className':_0x15c62e(0xe0),'children':[(0x0,g['jsxs'])(f[_0x15c62e(0x438)],{'className':_0x15c62e(0xe7),'variant':_0x207f6f===y[_0x15c62e(0x1c1)]['ascending']?_0x15c62e(0x491):_0x15c62e(0x3d7),'onClick':()=>_0x23237e(y[_0x15c62e(0x1c1)][_0x15c62e(0x27b)]),'children':[(0x0,g[_0x15c62e(0x12b)])(s[_0x15c62e(0x434)],{}),_0xe1c195['t'](_0x15c62e(0x3a3))]}),(0x0,g[_0x15c62e(0x402)])(f[_0x15c62e(0x438)],{'className':_0x15c62e(0xe7),'variant':_0x207f6f===y[_0x15c62e(0x1c1)]['descending']?'primary':_0x15c62e(0x3d7),'onClick':()=>_0x23237e(y[_0x15c62e(0x1c1)][_0x15c62e(0x40d)]),'children':[(0x0,g[_0x15c62e(0x12b)])(s[_0x15c62e(0x1b1)],{}),_0xe1c195['t'](_0x15c62e(0x37a))]})]}),(0x0,g[_0x15c62e(0x402)])(_0x15c62e(0x159),{'className':_0x15c62e(0x1fa),'children':[(0x0,g['jsxs'])(_0x15c62e(0x298),{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[(0x0,g[_0x15c62e(0x12b)])(f[_0x15c62e(0x20d)],{'checked':_0x20c675,'indeterminate':_0x28ea34[_0x15c62e(0x416)]>0x0&&!_0x20c675,'onChange':()=>_0x3c0f95(_0x20c675?[]:_0x30e0b7)}),_0xe1c195['t'](_0x15c62e(0x147))]}),_0x30e0b7[_0x15c62e(0x47e)]((_0x9e1670,_0x27509a)=>(0x0,g['jsxs'])(_0x15c62e(0x298),{'className':_0x15c62e(0xd7),'children':[(0x0,g['jsx'])(f[_0x15c62e(0x20d)],{'checked':_0x28ea34[_0x15c62e(0x206)](_0x9e1670),'onChange':()=>_0x3c0f95(_0x5bdb79=>_0x5bdb79['includes'](_0x9e1670)?_0x5bdb79[_0x15c62e(0x3fa)](_0x1afd94=>_0x1afd94!==_0x9e1670):[..._0x5bdb79,_0x9e1670])}),(0x0,g[_0x15c62e(0x12b)])(_0x15c62e(0x408),{'className':'univer-truncate','children':lt(_0x9e1670,_0x301ae2[_0x27509a],_0x2fbd37,_0xe1c195['t']('bases-dashboard-ui.pivot.blank'))})]},_0x9e1670))]}),(0x0,g[_0x15c62e(0x402)])(_0x15c62e(0x159),{'className':_0x15c62e(0x39e),'children':[(0x0,g['jsx'])(f[_0x15c62e(0x438)],{'variant':'link','onClick':()=>_0x2efc95[_0x15c62e(0x462)](_0x30e0b7,_0x207f6f),'children':_0xe1c195['t'](_0x15c62e(0x494))}),(0x0,g[_0x15c62e(0x402)])('div',{'className':_0x15c62e(0x372),'children':[(0x0,g['jsx'])(f[_0x15c62e(0x438)],{'onClick':_0x2efc95[_0x15c62e(0x178)],'children':_0xe1c195['t'](_0x15c62e(0x240))}),(0x0,g[_0x15c62e(0x12b)])(f[_0x15c62e(0x438)],{'variant':_0x15c62e(0x491),'disabled':_0x28ea34[_0x15c62e(0x416)]===0x0,'onClick':()=>_0x2efc95[_0x15c62e(0x462)](_0x28ea34,_0x207f6f),'children':_0xe1c195['t'](_0x15c62e(0x18a))})]})]})]});return(0x0,g[_0x15c62e(0x12b)])(t[_0x15c62e(0x3d3)],{'title':_0xe1c195['t'](_0x15c62e(0x28b)),'onClose':_0x2efc95[_0x15c62e(0x178)],'children':_0x26a4eb});}function ot(_0x36dc6d){const _0x1a74a1=_0x10fa58;var _0x5ca212,_0x34a98d,_0x54057b;let _0x1c1c2d=(0x0,m[_0x1a74a1(0x162)])(a['LocaleService']),[_0x3aac1a,_0x430f6a]=(0x0,h[_0x1a74a1(0x1cc)])(((_0x5ca212=_0x36dc6d[_0x1a74a1(0x224)])==null?void 0x0:_0x5ca212[_0x1a74a1(0x225)])??''),[_0x51db86,_0x4455dd]=(0x0,h['useState'])(((_0x34a98d=_0x36dc6d['field'])==null?void 0x0:_0x34a98d[_0x1a74a1(0x2ad)])??y['PivotSubtotalTypeEnum'][_0x1a74a1(0x43f)]),[_0x3fb76e,_0xb658ed]=(0x0,h['useState'])(((_0x54057b=_0x36dc6d[_0x1a74a1(0x224)])==null?void 0x0:_0x54057b[_0x1a74a1(0x2ee)])??'');if(!_0x36dc6d[_0x1a74a1(0x224)])return null;let _0x29d443=(0x0,g[_0x1a74a1(0x402)])(_0x1a74a1(0x4d8),{'className':(0x0,f[_0x1a74a1(0x4b2)])(_0x1a74a1(0x383),f[_0x1a74a1(0x487)]),'children':[(0x0,g[_0x1a74a1(0x12b)])(_0x1a74a1(0x159),{'className':_0x1a74a1(0x42f),'children':_0x1c1c2d['t']('bases-dashboard-ui.pivot.fieldSettings')}),(0x0,g[_0x1a74a1(0x402)])(_0x1a74a1(0x298),{'className':_0x1a74a1(0x431),'children':[_0x1c1c2d['t'](_0x1a74a1(0x41f)),(0x0,g[_0x1a74a1(0x12b)])(f[_0x1a74a1(0x23f)],{'value':_0x3aac1a,'onChange':_0x430f6a})]}),(0x0,g[_0x1a74a1(0x402)])(_0x1a74a1(0x298),{'className':_0x1a74a1(0x431),'children':[_0x1c1c2d['t'](_0x1a74a1(0x2e1)),(0x0,g['jsx'])(G,{'value':String(_0x51db86),'options':$e[_0x1a74a1(0x47e)](_0x54fffc=>({'value':String(_0x54fffc[_0x1a74a1(0x16c)]),'label':_0x1c1c2d['t'](_0x54fffc[_0x1a74a1(0x4c7)])})),'onChange':_0x23c9d0=>{const _0x2adfb6=_0x1a74a1;let _0x2b451e=$e['find'](_0x2ab1f5=>String(_0x2ab1f5['value'])===_0x23c9d0);_0x2b451e&&_0x4455dd(_0x2b451e[_0x2adfb6(0x16c)]);}})]}),(0x0,g[_0x1a74a1(0x402)])(_0x1a74a1(0x298),{'className':_0x1a74a1(0x431),'children':[_0x1c1c2d['t'](_0x1a74a1(0xff)),(0x0,g[_0x1a74a1(0x12b)])(f['Input'],{'value':_0x3fb76e,'onChange':_0xb658ed})]}),(0x0,g[_0x1a74a1(0x402)])(_0x1a74a1(0x159),{'className':_0x1a74a1(0xda),'children':[(0x0,g[_0x1a74a1(0x12b)])(f[_0x1a74a1(0x438)],{'onClick':_0x36dc6d[_0x1a74a1(0x178)],'children':_0x1c1c2d['t'](_0x1a74a1(0x240))}),(0x0,g[_0x1a74a1(0x12b)])(f[_0x1a74a1(0x438)],{'variant':_0x1a74a1(0x491),'disabled':!_0x3aac1a[_0x1a74a1(0x3e6)](),'onClick':()=>_0x36dc6d[_0x1a74a1(0x462)](_0x3aac1a[_0x1a74a1(0x3e6)](),_0x51db86,_0x3fb76e),'children':_0x1c1c2d['t'](_0x1a74a1(0x18a))})]})]});return(0x0,g[_0x1a74a1(0x12b)])(t[_0x1a74a1(0x3d3)],{'title':_0x1c1c2d['t'](_0x1a74a1(0x1a0)),'onClose':_0x36dc6d['onCancel'],'children':_0x29d443});}function st(_0x15ac40){const _0x5d99c8=_0x10fa58;let {config:_0x19bf66,commit:_0x4877bb}=_0x15ac40,_0xcfdac1=(0x0,m[_0x5d99c8(0x162)])(a['LocaleService']),_0xcf20a8=_0x19bf66['pivot']['options'],_0x1fc643=_0x7b1a5a=>_0x4877bb(_0x55ee52=>_0x55ee52['setOptions']({..._0x55ee52[_0x5d99c8(0x180)](),..._0x7b1a5a}));return(0x0,g[_0x5d99c8(0x402)])(_0x5d99c8(0x159),{'className':_0x5d99c8(0x484),'children':[(0x0,g[_0x5d99c8(0x402)])(_0x5d99c8(0x298),{'className':_0x5d99c8(0x488),'children':[_0xcfdac1['t'](_0x5d99c8(0x324)),(0x0,g[_0x5d99c8(0x12b)])(G,{'className':_0x5d99c8(0x3eb),'value':String(_0x19bf66[_0x5d99c8(0x2c2)]['layout']),'options':[{'value':String(y[_0x5d99c8(0xe6)]['tabular']),'label':_0xcfdac1['t']('bases-dashboard-ui.pivot.layoutTabular')},{'value':String(y[_0x5d99c8(0xe6)][_0x5d99c8(0x135)]),'label':_0xcfdac1['t'](_0x5d99c8(0x394))},{'value':String(y[_0x5d99c8(0xe6)][_0x5d99c8(0x2c5)]),'label':_0xcfdac1['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x236a6f=>{const _0x495f9e=_0x5d99c8;let _0x38958f=[y[_0x495f9e(0xe6)][_0x495f9e(0x3a0)],y[_0x495f9e(0xe6)][_0x495f9e(0x135)],y['PivotLayoutTypeEnum'][_0x495f9e(0x2c5)]][_0x495f9e(0x315)](_0x1af09c=>String(_0x1af09c)===_0x236a6f);_0x38958f!==void 0x0&&_0x4877bb(_0x1ee093=>_0x1ee093[_0x495f9e(0x393)](_0x38958f));}})]}),[{'key':_0x5d99c8(0x3bf),'label':_0x5d99c8(0x201),'defaultValue':!0x1},{'key':_0x5d99c8(0x261),'label':_0x5d99c8(0x195),'defaultValue':!0x1},{'key':_0x5d99c8(0x191),'label':_0x5d99c8(0x41e),'defaultValue':!0x0},{'key':_0x5d99c8(0x24e),'label':_0x5d99c8(0xc2),'defaultValue':!0x0},{'key':'showColSubtotal','label':'bases-dashboard-ui.pivot.showColumnSubtotal','defaultValue':!0x0},{'key':_0x5d99c8(0x2e8),'label':_0x5d99c8(0x325),'defaultValue':!0x0}]['map'](_0x490309=>(0x0,g['jsxs'])(_0x5d99c8(0x298),{'className':_0x5d99c8(0x2ca),'children':[(0x0,g[_0x5d99c8(0x12b)])(f[_0x5d99c8(0x20d)],{'checked':!!(_0xcf20a8[_0x490309['key']]??_0x490309['defaultValue']),'disabled':_0x490309[_0x5d99c8(0x479)]===_0x5d99c8(0x3bf)&&_0x19bf66['pivot'][_0x5d99c8(0x42b)]===y[_0x5d99c8(0xe6)]['compact'],'onChange':_0x24b27a=>_0x1fc643({[_0x490309['key']]:!!_0x24b27a})}),_0xcfdac1['t'](_0x490309[_0x5d99c8(0x298)])]},_0x490309['key'])),_0x19bf66[_0x5d99c8(0x2c2)][_0x5d99c8(0x42b)]===y[_0x5d99c8(0xe6)][_0x5d99c8(0x2c5)]&&(0x0,g[_0x5d99c8(0x402)])(_0x5d99c8(0x298),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0xcfdac1['t']('bases-dashboard-ui.pivot.rowSubtotalPosition'),(0x0,g[_0x5d99c8(0x12b)])(G,{'className':_0x5d99c8(0x3eb),'value':String(_0xcf20a8[_0x5d99c8(0x137)]??y[_0x5d99c8(0x33d)][_0x5d99c8(0x381)]),'options':[{'value':String(y[_0x5d99c8(0x33d)][_0x5d99c8(0x381)]),'label':_0xcfdac1['t'](_0x5d99c8(0xd5))},{'value':String(y[_0x5d99c8(0x33d)][_0x5d99c8(0x219)]),'label':_0xcfdac1['t'](_0x5d99c8(0xc4))}],'onChange':_0x48eac2=>{const _0x36030a=_0x5d99c8;let _0x1c0a74=[y[_0x36030a(0x33d)][_0x36030a(0x381)],y[_0x36030a(0x33d)][_0x36030a(0x219)]][_0x36030a(0x315)](_0x3132e8=>String(_0x3132e8)===_0x48eac2);_0x1c0a74!==void 0x0&&_0x1fc643({'rowSubtotalPosition':_0x1c0a74});}})]}),(0x0,g[_0x5d99c8(0x402)])(_0x5d99c8(0x298),{'className':_0x5d99c8(0x488),'children':[_0xcfdac1['t'](_0x5d99c8(0x40b)),(0x0,g[_0x5d99c8(0x12b)])(G,{'className':'univer-w-36','value':String(_0x19bf66['pivot'][_0x5d99c8(0x26e)]===y[_0x5d99c8(0x40c)][_0x5d99c8(0x237)]?y['PivotTableValuePositionEnum']['Column']:_0x19bf66[_0x5d99c8(0x2c2)][_0x5d99c8(0x26e)]),'options':[{'value':String(y[_0x5d99c8(0x40c)]['Column']),'label':_0xcfdac1['t'](_0x5d99c8(0x1ac))},{'value':String(y[_0x5d99c8(0x40c)][_0x5d99c8(0x3fd)]),'label':_0xcfdac1['t'](_0x5d99c8(0x18c))}],'onChange':_0x4659d=>{const _0x4b80e1=_0x5d99c8;let _0x1f2154=[y[_0x4b80e1(0x40c)]['Column'],y[_0x4b80e1(0x40c)]['Row']][_0x4b80e1(0x315)](_0x443434=>String(_0x443434)===_0x4659d);_0x1f2154!==void 0x0&&_0x4877bb(_0x5bb90e=>_0x5bb90e[_0x4b80e1(0x3cf)](_0x1f2154,_0x5bb90e['getValueIndex']()<0x0?0x0:_0x5bb90e[_0x4b80e1(0x1f9)]()));}})]}),(0x0,g['jsxs'])(_0x5d99c8(0x298),{'className':_0x5d99c8(0x488),'children':[_0xcfdac1['t']('bases-dashboard-ui.pivot.pageWrap'),(0x0,g[_0x5d99c8(0x12b)])(f['InputNumber'],{'className':'univer-w-24','min':0x1,'max':0x14,'value':_0xcf20a8['pageWrap']??0x1,'onChange':_0x952608=>{const _0x3940b2=_0x5d99c8;let _0x21da56=Number(_0x952608);Number[_0x3940b2(0x355)](_0x21da56)&&_0x21da56>=0x1&&_0x1fc643({'pageWrap':_0x21da56});}})]}),(0x0,g['jsxs'])('label',{'className':_0x5d99c8(0x488),'children':[_0xcfdac1['t']('bases-dashboard-ui.pivot.pageDirection'),(0x0,g['jsx'])(G,{'className':'univer-w-36','value':String(_0xcf20a8[_0x5d99c8(0x120)]??!0x1),'options':[{'value':'false','label':_0xcfdac1['t'](_0x5d99c8(0x359))},{'value':_0x5d99c8(0x1c5),'label':_0xcfdac1['t'](_0x5d99c8(0xe2))}],'onChange':_0x33d180=>_0x1fc643({'pageOverThenDown':_0x33d180==='true'})})]})]});}function ct(_0x2af1c0,_0x1e27ab,_0x1aef3e,_0x477ce8){const _0x451c71=_0x10fa58;let _0x517fda=_0x2af1c0['getTableFieldsByDataFieldId'](_0x1e27ab)['find'](_0x156ffc=>_0x2af1c0[_0x451c71(0x3bd)](_0x156ffc[_0x451c71(0xe4)]())['area']!==y[_0x451c71(0x473)][_0x451c71(0x3cd)]);_0x1aef3e!==y[_0x451c71(0x473)]['Value']&&_0x517fda?_0x2af1c0[_0x451c71(0x4a3)](_0x517fda['getId'](),_0x1aef3e,_0x477ce8):_0x2af1c0[_0x451c71(0x353)](_0x1e27ab,_0x1aef3e,_0x477ce8);}function lt(_0x51cb8b,_0x1d1523,_0x1c9779,_0x35d443){const _0x4343d7=_0x10fa58;return _0x1d1523===y['PivotDataFieldDataTypeEnum'][_0x4343d7(0x2d2)]?_0x35d443:_0x1d1523===y['PivotDataFieldDataTypeEnum'][_0x4343d7(0x4ca)]&&_0x1c9779?a[_0x4343d7(0x210)]['format'](_0x1c9779,Number(_0x51cb8b)):_0x51cb8b;}function ut(_0xcba93a){const _0x1a3316=_0x10fa58;return _0xcba93a[_0x1a3316(0x469)]===a['BaseFieldType'][_0x1a3316(0x17a)]||_0xcba93a[_0x1a3316(0x469)]===a[_0x1a3316(0x466)][_0x1a3316(0x12f)]||_0xcba93a[_0x1a3316(0x469)]===a[_0x1a3316(0x466)]['Progress']||_0xcba93a[_0x1a3316(0x469)]===a['BaseFieldType'][_0x1a3316(0x181)];}function dt(_0x342ed2){const _0x551ac1=_0x10fa58;switch(_0x342ed2){case y[_0x551ac1(0x473)][_0x551ac1(0x3fd)]:return _0x551ac1(0x43c);case y[_0x551ac1(0x473)][_0x551ac1(0x1b3)]:return _0x551ac1(0x309);case y[_0x551ac1(0x473)][_0x551ac1(0x3cd)]:return'bases-dashboard-ui.pivot.addToValue';default:return _0x551ac1(0x4b8);}}function ft({config:_0x3642ae,onChange:_0x399a6d,runtime:_0x231ed0,table:_0x23bf23}){const _0x324535=_0x10fa58;let _0x1e5733=(0x0,m['useDependency'])(a[_0x324535(0x17c)]),[_0x4a9f2d,_0x275c1c]=(0x0,h[_0x324535(0x1cc)])(_0x324535(0x1a8));return(0x0,g['jsxs'])('aside',{'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[_0x324535(0x12b)])(n[_0x324535(0x2eb)],{'ariaLabel':_0x1e5733['t'](_0x324535(0x32a)),'className':_0x324535(0x287),'items':[{'label':_0x1e5733['t'](_0x324535(0x457)),'panelId':'base-pivot-chart-configuration','value':_0x324535(0x1a8)},{'label':_0x1e5733['t'](_0x324535(0x172)),'panelId':'base-pivot-table-configuration','value':_0x324535(0x2c2)}],'value':_0x4a9f2d,'variant':_0x324535(0x16b),'onChange':_0x275c1c}),(0x0,g[_0x324535(0x12b)])('div',{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','children':_0x4a9f2d==='chart'?_0x231ed0&&(0x0,g[_0x324535(0x12b)])(he,{'config':_0x3642ae,'runtime':_0x231ed0,'tableName':_0x23bf23['name'],'onChange':_0x399a6d}):(0x0,g[_0x324535(0x12b)])(et,{'config':_0x3642ae,'table':_0x23bf23,'onChange':_0x399a6d})})]});}function pt({tableId:_0x4269e5,unitId:_0x94d149,viewId:_0x56eaf2}){const _0x54404b=_0x10fa58;let [_0x4bee70,_0x2bb93d]=(0x0,h[_0x54404b(0x1cc)])(!0x1),_0x1745f1=(0x0,m['useDependency'])(a['ICommandService']),_0x4fe262=(0x0,m[_0x54404b(0x162)])(a['IUniverInstanceService']),_0x1df134=(0x0,m['useDependency'])(a[_0x54404b(0x4ce)]),_0x4d920e=(0x0,m[_0x54404b(0x162)])(a[_0x54404b(0x17c)]),_0xdf373d=(0x0,m[_0x54404b(0x162)])(e[_0x54404b(0x216)]),[_0xbfe4d1,_0x52bf82]=(0x0,h['useState'])(null),[_0x488ae8,_0x3b9d4d]=(0x0,h['useState'])(null),_0x55ec54=(0x0,h[_0x54404b(0xfd)])(_0x54404b(0x2d8)+(0x0,a[_0x54404b(0x176)])(0x8)),[_0x39c4fa,_0x2ec139]=(0x0,h[_0x54404b(0x1cc)])(!0x1),_0x33705b=_0x4fe262[_0x54404b(0x1d4)](_0x94d149,a[_0x54404b(0x17b)][_0x54404b(0x4d1)]),_0x40d109=_0x33705b==null?void 0x0:_0x33705b['getSnapshot']()[_0x54404b(0x19e)][_0x4269e5],_0x47b750=_0x40d109==null?void 0x0:_0x40d109['views'][_0x56eaf2],_0x4526d9=mt(_0x47b750),_0x240ad7=T(_0x94d149,_0x4269e5,_0x56eaf2);if((0x0,h[_0x54404b(0x1a9)])(()=>{const _0x5d9cab=_0x54404b;if(!_0x4526d9)return;let _0x3b3e7f=_0x55ec54['current'];return _0xdf373d[_0x5d9cab(0x28f)](_0x3b3e7f,{'unitId':_0x94d149,'tableId':_0x4269e5,'viewId':_0x56eaf2,'filters':[]}),()=>{const _0x21f975=_0x5d9cab;_0xdf373d[_0x21f975(0x38e)](_0x94d149,_0x3b3e7f);};},[_0x4526d9,_0xdf373d,_0x4269e5,_0x94d149,_0x56eaf2]),(0x0,h[_0x54404b(0x1a9)])(()=>{const _0x4873e9=_0x54404b;if(!mt(_0x47b750))return;let _0x511963=!0x0,_0x31523e={'unitId':_0x94d149,'tableId':_0x4269e5,'viewId':_0x56eaf2,'filters':[_0x47b750['filter']??null]};return _0xdf373d['refreshChartRuntime'](_0x94d149,_0x55ec54[_0x4873e9(0x2c3)],_0x31523e)[_0x4873e9(0x46e)](_0x636a30=>{const _0x10f9da=_0x4873e9;_0x511963&&_0x636a30&&(_0x52bf82(_0x636a30),_0x3b9d4d(_0xdf373d[_0x10f9da(0x2dd)](_0x94d149,_0x55ec54['current'])??null),_0x2ec139(!0x1));})[_0x4873e9(0x1f0)](_0x10b717=>{const _0xc31aec=_0x4873e9;_0x1df134[_0xc31aec(0x38d)](_0xc31aec(0x21c),_0x10b717),_0x511963&&(_0x52bf82(null),_0x2ec139(!0x0));}),()=>{_0x511963=!0x1;};},[_0x1df134,_0xdf373d,_0x4269e5,_0x94d149,_0x47b750,_0x56eaf2]),!_0x40d109||!mt(_0x47b750))return null;let _0x54a1c2=_0xdf373d[_0x54404b(0x2dd)](_0x94d149,_0x55ec54['current'])===_0x488ae8?_0x488ae8:null,_0x47908c=_0xbfe4d1?(0x0,g[_0x54404b(0x402)])('div',{'className':_0x54404b(0x11e),'style':{'gridTemplateRows':_0x47b750[_0x54404b(0xfb)][_0x54404b(0xe5)]===_0x54404b(0x467)?_0x54404b(0x35f):'minmax(0,\x201fr)'},'children':[_0x47b750[_0x54404b(0xfb)][_0x54404b(0xe5)]!=='table'&&_0x54a1c2&&(0x0,g[_0x54404b(0x12b)])(_0x54404b(0x159),{'className':_0x54404b(0x13d),'children':(0x0,g[_0x54404b(0x12b)])(re,{'isRowDirection':(0x0,e[_0x54404b(0x3b3)])(_0x47b750[_0x54404b(0xfb)][_0x54404b(0x1a8)][_0x54404b(0x4cc)]),'runtime':_0x54a1c2})}),_0x47b750[_0x54404b(0xfb)]['displayMode']!==_0x54404b(0x1a8)&&(0x0,g[_0x54404b(0x12b)])(_0x54404b(0x159),{'className':_0x54404b(0x371),'children':(0x0,g['jsx'])(Ge,{'pivot':_0x47b750[_0x54404b(0xfb)][_0x54404b(0x2c2)],'view':_0xbfe4d1['view']})})]}):(0x0,g[_0x54404b(0x12b)])(_0x54404b(0x159),{'className':_0x54404b(0x33e),'children':_0x39c4fa?_0x4d920e['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x4d920e['t']('bases-dashboard-ui.pivot.calculating')}),_0x261f14=(0x0,g[_0x54404b(0x12b)])(ft,{'config':_0x47b750[_0x54404b(0xfb)],'runtime':_0x54a1c2,'table':_0x40d109,'onChange':_0x52b415=>{const _0x598802=_0x54404b;_0x4fe262[_0x598802(0x3c9)](_0x94d149),_0x4fe262['focusUnit'](_0x94d149),_0x1745f1[_0x598802(0x32d)](e[_0x598802(0x405)]['id'],{'unitId':_0x94d149,'tableId':_0x4269e5,'viewId':_0x56eaf2,'patch':_0x52b415})['catch'](_0xabb8ff=>_0x1df134[_0x598802(0x38d)](_0x598802(0xf2),_0xabb8ff));}});return(0x0,g['jsx'])(ue,{'children':(0x0,g['jsxs'])(_0x54404b(0x159),{'className':_0x54404b(0x46b),'children':[_0x240ad7&&(0x0,g[_0x54404b(0x12b)])(f[_0x54404b(0x438)],{'onClick':()=>_0x2bb93d(!0x0),'children':_0x4d920e['t'](_0x54404b(0x457))}),(0x0,g[_0x54404b(0x12b)])(_0x54404b(0x159),{'className':_0x54404b(0x173),'children':_0x47908c}),_0x240ad7&&_0x4bee70&&(0x0,g[_0x54404b(0x12b)])(t[_0x54404b(0x3d3)],{'title':_0x4d920e['t'](_0x54404b(0x32a)),'onClose':()=>_0x2bb93d(!0x1),'children':_0x261f14})]})});}function mt(_0x47f157){const _0x8aabcf=_0x10fa58;return(_0x47f157==null?void 0x0:_0x47f157[_0x8aabcf(0x469)])===a[_0x8aabcf(0x22d)][_0x8aabcf(0x48c)]&&typeof _0x47f157[_0x8aabcf(0xfb)]=='object'&&_0x47f157[_0x8aabcf(0xfb)]!==null&&_0x8aabcf(0x2c2)in _0x47f157[_0x8aabcf(0xfb)]&&_0x8aabcf(0x1a8)in _0x47f157['config']&&_0x8aabcf(0xe5)in _0x47f157['config'];}let ht=class extends a[_0x10fa58(0x18f)]{constructor(_0x1a3750,_0x28c060,_0x28fcf8,_0x5f1d73,_0x3d6c99,_0x1c8c64){const _0x18967d=_0x10fa58;super(),this[_0x18967d(0x24f)](_0x28c060[_0x18967d(0x275)]({'type':a[_0x18967d(0x22d)][_0x18967d(0x48c)],'renderMode':'dom','icon':s[_0x18967d(0x182)],'component':pt,'menu':{get 'label'(){const _0x2d88c0=_0x18967d;return _0x1c8c64['t'](_0x2d88c0(0x32a));},get 'description'(){const _0x51ac11=_0x18967d;return _0x1c8c64['t'](_0x51ac11(0x25d));},get 'defaultName'(){return _0x1c8c64['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x18967d(0x24f)](_0x1a3750[_0x18967d(0x275)](gt(_0x28fcf8,_0x5f1d73,_0x3d6c99,_0x1c8c64)));}};ht=P([N(0x0,t[_0x10fa58(0x2b2)]),N(0x1,t[_0x10fa58(0x2fd)]),N(0x2,(0x0,a['Inject'])(e['BaseDashboardResourceService'])),N(0x3,a[_0x10fa58(0x464)]),N(0x4,a['IPermissionService']),N(0x5,(0x0,a[_0x10fa58(0x453)])(a[_0x10fa58(0x17c)]))],ht);function gt(_0x174885,_0x383905,_0x2ef71a,_0x2c9ce2){const _0x3b74f0=_0x10fa58;return{'change$':(0x0,c[_0x3b74f0(0x259)])(_0x174885[_0x3b74f0(0x483)],_0x2ef71a['permissionPointUpdate$']),'component':Ie,get 'labels'(){const _0x2c1542=_0x3b74f0;return{'add':_0x2c9ce2['t'](_0x2c1542(0x10d)),'configure':_0x47a162=>_0x2c9ce2['t'](_0x2c1542(0x1d7),_0x47a162),'delete':_0x2c9ce2['t'](_0x2c1542(0x2cf)),'new':_0x2c9ce2['t'](_0x2c1542(0x489)),'rename':_0x2c9ce2['t'](_0x2c1542(0x398)),'search':_0x2c9ce2['t']('bases-dashboard-ui.dashboard.search'),'section':_0x2c9ce2['t'](_0x2c1542(0x3c3))};},'getItems':_0x8e86cb=>{const _0x45d7eb=_0x3b74f0;let _0x4a47d2=_0x174885[_0x45d7eb(0x433)](_0x8e86cb);return _0x4a47d2[_0x45d7eb(0x38b)][_0x45d7eb(0x226)](_0x56cc03=>{const _0x1a0955=_0x45d7eb;let _0x1bbb58=_0x4a47d2['dashboards'][_0x56cc03];return _0x1bbb58?[{'id':_0x1bbb58['id'],'name':_0x1bbb58[_0x1a0955(0x4a1)],'readonly':!(0x0,e[_0x1a0955(0x1ae)])(_0x2ef71a,_0x8e86cb,_0x1bbb58['id'])}]:[];});},'create':async _0x9adb67=>{const _0xae843=_0x3b74f0;let _0x330fa0=_0x174885[_0xae843(0x433)](_0x9adb67),_0x5b37bf=_0xae843(0x2e9)+(0x0,a[_0xae843(0x176)])(0x8),_0x549bd2=_t(_0x330fa0[_0xae843(0x38b)][_0xae843(0x226)](_0x1bbf84=>{const _0x3e3070=_0xae843;let _0x15a9e6=_0x330fa0[_0x3e3070(0x4ae)][_0x1bbf84];return _0x15a9e6?[_0x15a9e6[_0x3e3070(0x4a1)]]:[];}),_0x201493=>_0x2c9ce2['t'](_0xae843(0x1d3),String(_0x201493)));return await _0x383905[_0xae843(0x32d)](e[_0xae843(0x233)]['id'],{'unitId':_0x9adb67,'dashboard':{'id':_0x5b37bf,'name':_0x549bd2,'widgetOrder':[],'widgets':{}}})?_0x5b37bf:null;},'rename':async(_0x33a316,_0x3f9f72,_0x48aaa1)=>{const _0x1e9b91=_0x3b74f0;let _0x36caf2=_0x174885['getDashboard'](_0x33a316,_0x3f9f72);return!!(_0x36caf2&&await _0x383905[_0x1e9b91(0x32d)](e[_0x1e9b91(0x1be)]['id'],{'unitId':_0x33a316,'dashboard':{..._0x36caf2,'name':_0x48aaa1}}));},'remove':(_0x22a9ea,_0x40f10b)=>_0x383905['executeCommand'](e['DeleteBaseDashboardCommand']['id'],{'unitId':_0x22a9ea,'dashboardId':_0x40f10b})};}function _t(_0x5d5491,_0x2d4f71){const _0x485af0=_0x10fa58;let _0x2d3b3b=new Set(_0x5d5491),_0x4dabf6=_0x2d3b3b[_0x485af0(0x26b)]+0x1,_0x55d58e=_0x2d4f71(_0x4dabf6);for(;_0x2d3b3b['has'](_0x55d58e);)_0x4dabf6+=0x1,_0x55d58e=_0x2d4f71(_0x4dabf6);return _0x55d58e;}let Y=class extends a[_0x10fa58(0x1a1)]{constructor(_0x173db3=C,_0x3b4ae9,_0xda44a3){const _0x43ffce=_0x10fa58;super(),this[_0x43ffce(0x19c)]=_0x173db3,this[_0x43ffce(0x41c)]=_0x3b4ae9,this[_0x43ffce(0xf1)]=_0xda44a3;let {..._0x47cc0d}=(0x0,a[_0x43ffce(0x259)])({},C,this[_0x43ffce(0x19c)]);this[_0x43ffce(0xf1)][_0x43ffce(0x273)](S,_0x47cc0d);}['onStarting'](){const _0x1d90c0=_0x10fa58;this['_injector'][_0x1d90c0(0x29f)]([F]),this['_injector']['add']([W]),this[_0x1d90c0(0x41c)][_0x1d90c0(0x29f)]([ht]);}['onReady'](){const _0x16bfad=_0x10fa58;(0x0,a[_0x16bfad(0x21f)])(this['_injector'],[[F],[W],[ht]]);}};B(Y,_0x10fa58(0x469),a[_0x10fa58(0x17b)][_0x10fa58(0x4d1)]),B(Y,_0x10fa58(0x4b6),_0x10fa58(0x23d)),B(Y,_0x10fa58(0x2ab),b),B(Y,_0x10fa58(0x358),x),Y=P([(0x0,a[_0x10fa58(0x432)])(r['UniverLicensePlugin'],e[_0x10fa58(0x231)],t[_0x10fa58(0x391)],n[_0x10fa58(0x448)],i[_0x10fa58(0x2af)],o[_0x10fa58(0x343)]),N(0x1,(0x0,a['Inject'])(a[_0x10fa58(0x3d5)])),N(0x2,a[_0x10fa58(0x1f6)])],Y);function vt(_0x566b88,_0x3f05c5,_0x5628d8,_0xe664d){const _0x491d4a=_0x10fa58;let _0x309d44={..._0x566b88};if(_0x3f05c5['includes']('w')){let _0x10d05b=_0x566b88[_0x491d4a(0x2f0)]+_0x566b88['columnSpan'];_0x309d44[_0x491d4a(0x2f0)]=Math[_0x491d4a(0x41b)](0x0,Math[_0x491d4a(0x2ce)](_0x10d05b-0x1,_0x566b88[_0x491d4a(0x2f0)]+_0x5628d8)),_0x309d44[_0x491d4a(0x3a5)]=_0x10d05b-_0x309d44[_0x491d4a(0x2f0)];}else _0x3f05c5['includes']('e')&&(_0x309d44[_0x491d4a(0x3a5)]=Math[_0x491d4a(0x41b)](0x1,Math['min'](e[_0x491d4a(0x127)]-_0x566b88[_0x491d4a(0x2f0)],_0x566b88[_0x491d4a(0x3a5)]+_0x5628d8)));if(_0x3f05c5[_0x491d4a(0x206)]('n')){let _0x119dd4=_0x566b88['row']+_0x566b88['rowSpan'];_0x309d44[_0x491d4a(0x1e6)]=Math[_0x491d4a(0x41b)](0x0,Math[_0x491d4a(0x2ce)](_0x119dd4-0x1,_0x566b88[_0x491d4a(0x1e6)]+_0xe664d)),_0x309d44[_0x491d4a(0x44e)]=_0x119dd4-_0x309d44[_0x491d4a(0x1e6)];}else _0x3f05c5[_0x491d4a(0x206)]('s')&&(_0x309d44[_0x491d4a(0x44e)]=Math[_0x491d4a(0x41b)](0x1,_0x566b88['rowSpan']+_0xe664d));return _0x309d44;}function yt(_0x33c61a){const _0x3c9da0=_0x10fa58;let _0x91fc07=Math['max'](0x1,Math[_0x3c9da0(0x2ce)](e[_0x3c9da0(0x127)],Math[_0x3c9da0(0x148)](_0x33c61a[_0x3c9da0(0x3a5)])));return{'column':Math[_0x3c9da0(0x41b)](0x0,Math[_0x3c9da0(0x2ce)](e[_0x3c9da0(0x127)]-_0x91fc07,Math[_0x3c9da0(0x148)](_0x33c61a[_0x3c9da0(0x2f0)]))),'row':Math[_0x3c9da0(0x41b)](0x0,Math[_0x3c9da0(0x148)](_0x33c61a[_0x3c9da0(0x1e6)])),'columnSpan':_0x91fc07,'rowSpan':Math['max'](0x1,Math[_0x3c9da0(0x148)](_0x33c61a[_0x3c9da0(0x44e)]))};}function bt(_0x5f244d,_0x22d1dc,_0x5832bf){const _0x3d35c1=_0x10fa58;let _0x52c43a=new Map(_0x5f244d),_0x3e5811=yt(_0x5832bf);_0x52c43a[_0x3d35c1(0x382)](_0x22d1dc,_0x3e5811);let _0x397df5=[[_0x22d1dc,_0x3e5811]];for(let [_0x5ebbcd,_0x16dfdb]of _0x52c43a){if(_0x5ebbcd===_0x22d1dc)continue;let _0x695e63=yt(_0x16dfdb);for(;_0x397df5[_0x3d35c1(0x4aa)](([,_0x5899e3])=>St(_0x695e63,_0x5899e3));)_0x695e63={..._0x695e63,'row':_0x695e63[_0x3d35c1(0x1e6)]+0x1};for(;_0x695e63[_0x3d35c1(0x1e6)]>0x0;){let _0x1c58f6={..._0x695e63,'row':_0x695e63[_0x3d35c1(0x1e6)]-0x1};if(_0x397df5['some'](([,_0x155604])=>St(_0x1c58f6,_0x155604)))break;_0x695e63=_0x1c58f6;}_0x397df5['push']([_0x5ebbcd,_0x695e63]),_0x52c43a['set'](_0x5ebbcd,_0x695e63);}return _0x52c43a;}function xt(_0x286f73,_0x5e004e,_0x2d934c,_0x38d452=0x38,_0x20f396=0x16){const _0x4f26dd=_0x10fa58;return _0x286f73<_0x5e004e+_0x38d452?-Math[_0x4f26dd(0xdc)](_0x20f396*(0x1-Math[_0x4f26dd(0x41b)](0x0,_0x286f73-_0x5e004e)/_0x38d452)):_0x286f73>_0x2d934c-_0x38d452?Math[_0x4f26dd(0xdc)](_0x20f396*(0x1-Math[_0x4f26dd(0x41b)](0x0,_0x2d934c-_0x286f73)/_0x38d452)):0x0;}function St(_0x3d5814,_0x44af81){const _0x326669=_0x10fa58;return _0x3d5814[_0x326669(0x2f0)]<_0x44af81[_0x326669(0x2f0)]+_0x44af81[_0x326669(0x3a5)]&&_0x3d5814[_0x326669(0x2f0)]+_0x3d5814['columnSpan']>_0x44af81['column']&&_0x3d5814['row']<_0x44af81[_0x326669(0x1e6)]+_0x44af81['rowSpan']&&_0x3d5814[_0x326669(0x1e6)]+_0x3d5814[_0x326669(0x44e)]>_0x44af81[_0x326669(0x1e6)];}const Ct=[{'direction':'nw','className':_0x10fa58(0x490)},{'direction':'n','className':_0x10fa58(0x2e5)},{'direction':'ne','className':_0x10fa58(0x30a)},{'direction':'e','className':_0x10fa58(0x1ca)},{'direction':'se','className':'univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize'},{'direction':'s','className':_0x10fa58(0x435)},{'direction':'sw','className':_0x10fa58(0x2c6)},{'direction':'w','className':_0x10fa58(0x239)}];function wt({dashboard:_0x48ceb1,dragLabel:_0x196b77,editable:_0x721d23=!0x0,onLayoutsCommit:_0x1a2a8f,onSelectWidget:_0x50143f,renderWidget:_0x35f84a,renderWidgetActions:_0xb75c48,resizeLabel:_0x35e3b3,selectedWidgetId:_0x1c964,widgetLabel:_0x2696f3}){const _0x12c8cb=_0x10fa58;let _0x16fd13=(0x0,h[_0x12c8cb(0xfd)])(null),_0x54d90c=(0x0,h[_0x12c8cb(0xfd)])(null),[_0x2ba576,_0x433d18]=(0x0,h[_0x12c8cb(0x1cc)])(!0x1),_0x104aa4=(0x0,h[_0x12c8cb(0x1d9)])(()=>new Map(_0x48ceb1['widgetOrder'][_0x12c8cb(0x226)](_0x142e1c=>{const _0x59d4d6=_0x12c8cb;let _0x1dcb06=_0x48ceb1[_0x59d4d6(0x1bd)][_0x142e1c];return _0x1dcb06?[[_0x142e1c,_0x1dcb06['layout']]]:[];})),[_0x48ceb1]),[_0x5e8b62,_0x257347]=(0x0,h[_0x12c8cb(0x1cc)])(_0x104aa4);(0x0,h[_0x12c8cb(0x1a9)])(()=>{const _0x39de18=_0x12c8cb;_0x54d90c[_0x39de18(0x2c3)]||_0x257347(_0x104aa4);},[_0x104aa4]),(0x0,h[_0x12c8cb(0x1a9)])(()=>{const _0x378a5c=_0x12c8cb;if(!_0x2ba576)return;let _0x5e7770=_0x54cd17=>{const _0x2b907a=_0x16b2;let _0x3d9c82=_0x16fd13[_0x2b907a(0x2c3)];if(!_0x3d9c82)return null;let _0x3a6750=_0x3d9c82[_0x2b907a(0x360)](),_0x393768=Math[_0x2b907a(0x41b)](0x1,(_0x3a6750['width']-0x8*(e[_0x2b907a(0x127)]-0x1))/e['BASES_DASHBOARD_GRID_COLUMNS']),_0x1b8507=Math[_0x2b907a(0x148)]((_0x3d9c82['scrollTop']-_0x54cd17['startScrollTop'])/(e[_0x2b907a(0xf0)]+0x8)),_0x46249e=Math[_0x2b907a(0x148)]((_0x54cd17['pointerX']-_0x54cd17['startX'])/(_0x393768+0x8)),_0x3cfa68=Math['round']((_0x54cd17['pointerY']-_0x54cd17['startY'])/(e[_0x2b907a(0xf0)]+0x8))+_0x1b8507,_0x3bcff3=_0x54cd17['mode']===_0x2b907a(0x31e)?{..._0x54cd17[_0x2b907a(0x17f)],'column':_0x54cd17[_0x2b907a(0x17f)][_0x2b907a(0x2f0)]+_0x46249e,'row':_0x54cd17['initial'][_0x2b907a(0x1e6)]+_0x3cfa68}:vt(_0x54cd17[_0x2b907a(0x17f)],_0x54cd17['resizeDirection']??'se',_0x46249e,_0x3cfa68),_0x3d6c85=bt(_0x54cd17['initialLayouts'],_0x54cd17['id'],_0x3bcff3);return _0x257347(_0x3d6c85),_0x3d6c85;},_0x56c91a=_0x5d0c19=>{const _0x19a452=_0x16b2;let _0x58332e=_0x54d90c[_0x19a452(0x2c3)];if(!_0x58332e)return;let _0x506ea8={..._0x58332e,'pointerX':_0x5d0c19[_0x19a452(0xea)],'pointerY':_0x5d0c19[_0x19a452(0x2b6)]};_0x54d90c['current']=_0x506ea8;},_0xd18d52=()=>{const _0x30f98e=_0x16b2;let _0x22b5e2=_0x54d90c[_0x30f98e(0x2c3)],_0x32f3ca=_0x22b5e2?_0x5e7770(_0x22b5e2):null;_0x54d90c[_0x30f98e(0x2c3)]=null,_0x433d18(!0x1),_0x32f3ca&&_0x1a2a8f(_0x32f3ca);},_0x5966c4=0x0,_0x4d4e59=()=>{const _0x2d9506=_0x16b2;let _0xd5038b=_0x16fd13[_0x2d9506(0x2c3)],_0x2b0629=_0x54d90c[_0x2d9506(0x2c3)];if(_0xd5038b&&_0x2b0629){let _0x102207=_0xd5038b[_0x2d9506(0x360)](),_0x17be51=xt(_0x2b0629[_0x2d9506(0x46a)],_0x102207[_0x2d9506(0x381)],_0x102207[_0x2d9506(0x219)]);_0x17be51!==0x0&&(_0xd5038b[_0x2d9506(0x1ba)]+=_0x17be51),_0x5e7770(_0x2b0629),_0x5966c4=requestAnimationFrame(_0x4d4e59);}};return _0x5966c4=requestAnimationFrame(_0x4d4e59),window[_0x378a5c(0x389)](_0x378a5c(0x42a),_0x56c91a),window['addEventListener'](_0x378a5c(0x335),_0xd18d52),()=>{const _0x502253=_0x378a5c;cancelAnimationFrame(_0x5966c4),window[_0x502253(0x16e)](_0x502253(0x42a),_0x56c91a),window[_0x502253(0x16e)]('pointerup',_0xd18d52);};},[_0x2ba576,_0x1a2a8f]);let _0x540126=Math[_0x12c8cb(0x41b)](0x8,...Array[_0x12c8cb(0x2cd)](_0x5e8b62[_0x12c8cb(0x20a)]())[_0x12c8cb(0x47e)](_0x35ad05=>_0x35ad05[_0x12c8cb(0x1e6)]+_0x35ad05[_0x12c8cb(0x44e)])),_0x5b5941=(_0x37134d,_0x2dbf81,_0xec5543,_0x10709d)=>{const _0x45a444=_0x12c8cb;_0x37134d['preventDefault'](),_0x37134d[_0x45a444(0x284)]();let _0x493385=_0x16fd13[_0x45a444(0x2c3)],_0x4032c4={'id':_0x2dbf81['id'],'mode':_0xec5543,'pointerX':_0x37134d[_0x45a444(0xea)],'pointerY':_0x37134d['clientY'],'startX':_0x37134d[_0x45a444(0xea)],'startY':_0x37134d['clientY'],'startScrollTop':(_0x493385==null?void 0x0:_0x493385[_0x45a444(0x1ba)])??0x0,'initial':_0x5e8b62[_0x45a444(0x24a)](_0x2dbf81['id'])??_0x2dbf81['layout'],'initialLayouts':new Map(_0x5e8b62),'resizeDirection':_0x10709d};_0x54d90c[_0x45a444(0x2c3)]=_0x4032c4,_0x433d18(!0x0);};return(0x0,g['jsx'])(_0x12c8cb(0x159),{'ref':_0x16fd13,'data-dashboard-scroll-container':!0x0,'className':(0x0,f[_0x12c8cb(0x4b2)])(_0x12c8cb(0x183),f[_0x12c8cb(0xfc)]),'onClick':_0x721d23?_0x36931f=>{const _0x1b8b72=_0x12c8cb;if(!(_0x36931f[_0x1b8b72(0x2d9)]instanceof Node)||!_0x36931f['currentTarget'][_0x1b8b72(0x4b4)](_0x36931f['target']))return;let _0x158c84=_0x36931f[_0x1b8b72(0x2d9)]instanceof Element?_0x36931f[_0x1b8b72(0x2d9)]:_0x36931f[_0x1b8b72(0x2d9)][_0x1b8b72(0x445)];_0x158c84!=null&&_0x158c84[_0x1b8b72(0x11b)]('[data-dashboard-widget]')||_0x50143f==null||_0x50143f();}:void 0x0,'children':(0x0,g['jsx'])(_0x12c8cb(0x159),{'data-dashboard-grid':!0x0,'className':_0x12c8cb(0x21d),'style':{'gap':0x8,'gridAutoRows':e[_0x12c8cb(0xf0)],'minHeight':_0x540126*(e[_0x12c8cb(0xf0)]+0x8)},'children':_0x48ceb1[_0x12c8cb(0x4c8)][_0x12c8cb(0x47e)](_0x11c0c8=>{const _0x55918f=_0x12c8cb;var _0x3577b1;let _0x300e86=_0x48ceb1[_0x55918f(0x1bd)][_0x11c0c8],_0x1498af=_0x5e8b62['get'](_0x11c0c8);return!_0x300e86||!_0x1498af?null:(0x0,g[_0x55918f(0x402)])('article',{'data-dashboard-widget':_0x300e86['id'],'aria-label':_0x300e86[_0x55918f(0x310)]??_0x2696f3(_0x300e86),'className':(0x0,f[_0x55918f(0x4b2)])('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',_0x300e86[_0x55918f(0x469)]===e[_0x55918f(0x27e)]['Image']||_0x300e86[_0x55918f(0x469)]===e['BaseDashboardWidgetType'][_0x55918f(0x3f1)]?_0x55918f(0x150):_0x55918f(0x209),_0x721d23&&_0x1c964===_0x300e86['id']?_0x55918f(0x346):_0x55918f(0x430)),'style':{'gridColumn':_0x1498af[_0x55918f(0x2f0)]+0x1+'\x20/\x20span\x20'+_0x1498af[_0x55918f(0x3a5)],'gridRow':_0x1498af[_0x55918f(0x1e6)]+0x1+_0x55918f(0xc5)+_0x1498af[_0x55918f(0x44e)]},'tabIndex':_0x721d23?0x0:void 0x0,'onClick':_0x721d23?()=>_0x50143f==null?void 0x0:_0x50143f(_0x300e86['id']):void 0x0,'onFocus':_0x721d23?()=>_0x50143f==null?void 0x0:_0x50143f(_0x300e86['id']):void 0x0,'children':[_0x721d23&&(0x0,g[_0x55918f(0x12b)])(_0x55918f(0x396),{'type':_0x55918f(0x396),'aria-label':_0x196b77,'data-dashboard-drag-handle':_0x300e86['id'],'className':(0x0,f[_0x55918f(0x4b2)])(_0x55918f(0x4d4),_0x2ba576&&((_0x3577b1=_0x54d90c['current'])==null?void 0x0:_0x3577b1['id'])===_0x300e86['id']&&_0x54d90c['current'][_0x55918f(0x1b5)]===_0x55918f(0x31e)?'univer-cursor-grabbing':_0x55918f(0x47b)),'onPointerDown':_0x3fc29e=>_0x5b5941(_0x3fc29e,_0x300e86,'move'),'children':(0x0,g[_0x55918f(0x12b)])(s[_0x55918f(0x160)],{'className':_0x55918f(0x114),'aria-hidden':'true'})}),_0x721d23&&(0x0,g[_0x55918f(0x12b)])(_0x55918f(0x159),{'className':_0x55918f(0x45c),'children':_0xb75c48==null?void 0x0:_0xb75c48(_0x300e86)}),(0x0,g[_0x55918f(0x12b)])(_0x55918f(0x159),{'className':_0x55918f(0x1d1),'children':_0x35f84a(_0x300e86)}),_0x721d23&&Ct[_0x55918f(0x47e)](({className:_0x58e95c,direction:_0x3f1671})=>{const _0x406145=_0x55918f;let _0x474f00=_0x3f1671[_0x406145(0x416)]===0x2;return(0x0,g[_0x406145(0x12b)])(_0x406145(0x396),{'type':'button','aria-label':_0x35e3b3,'data-dashboard-resize-handle':_0x3f1671,'data-dashboard-resize-control':_0x474f00?_0x3f1671:void 0x0,'data-dashboard-resize-edge':_0x474f00?void 0x0:_0x3f1671,'className':(0x0,f[_0x406145(0x4b2)])(_0x406145(0x42e),_0x474f00?_0x406145(0x4bc):'univer-border-0\x20univer-bg-transparent',_0x58e95c,_0x1c964===_0x300e86['id']&&_0x406145(0x2bb)),'onPointerDown':_0x56d77d=>_0x5b5941(_0x56d77d,_0x300e86,_0x406145(0x3e0),_0x3f1671)},_0x3f1671);})]},_0x300e86['id']);})})});}var Tt;const X={'axis':{...n['DEFAULT_CHART_AXIS_VALUES'],'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':n[_0x10fa58(0x279)],'heatmap':n['DEFAULT_CHART_HEATMAP_VALUES'],'indicatorLine':n[_0x10fa58(0x4d7)],'legend':n[_0x10fa58(0x3db)],'lineAndArea':n['DEFAULT_CHART_LINE_AND_AREA_VALUES'],'pareto':n[_0x10fa58(0x168)],'pie':n['DEFAULT_CHART_PIE_VALUES'],'radar':n['DEFAULT_CHART_RADAR_VALUES'],'relation':{...n['DEFAULT_CHART_RELATION_VALUES'],'useValueAsSymbolSize':!0x0},'series':{...n[_0x10fa58(0x40e)],'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Tt=_['RTLChartStyle']['allSeriesStyle'])==null?void 0x0:Tt[_0x10fa58(0x440)])??!0x1}},'style':n['DEFAULT_CHART_STYLE_VALUES'],'titles':n['DEFAULT_CHART_TITLE_VALUES'],'trendline':n[_0x10fa58(0x43b)],'waterfall':{...n[_0x10fa58(0x1a7)],'useSubtotal':!0x0},'waterfallStyle':n[_0x10fa58(0x423)],'wordCloud':n[_0x10fa58(0x296)]},Et=[_[_0x10fa58(0x203)][_0x10fa58(0x255)],_[_0x10fa58(0x203)][_0x10fa58(0x4b3)],_[_0x10fa58(0x203)][_0x10fa58(0xeb)],_['ChartTypeBits'][_0x10fa58(0x3da)],_[_0x10fa58(0x203)][_0x10fa58(0x4a9)],_[_0x10fa58(0x203)]['Relation'],_[_0x10fa58(0x203)][_0x10fa58(0x338)],_['ChartTypeBits'][_0x10fa58(0x444)],_['ChartTypeBits']['Boxplot'],_[_0x10fa58(0x203)][_0x10fa58(0x10c)],_[_0x10fa58(0x203)][_0x10fa58(0xce)],_[_0x10fa58(0x203)][_0x10fa58(0x493)],_[_0x10fa58(0x203)][_0x10fa58(0x361)],_[_0x10fa58(0x203)][_0x10fa58(0x375)],_[_0x10fa58(0x203)]['Chord']];function Dt(_0x566318){const _0x33e80e=_0x10fa58;let {config:_0xeb0580,onChange:_0x428f1b,runtime:_0x19283c,tableName:_0x3bf8c6}=_0x566318,_0xb9d4df=(0x0,m[_0x33e80e(0x162)])(W),_0x504ab4=(0x0,m[_0x33e80e(0x162)])(a[_0x33e80e(0x17c)]),[_0x242d7c,_0x346476]=(0x0,h[_0x33e80e(0x1cc)])(n['ChartEditPanelTab'][_0x33e80e(0x323)]),_0x2fdfbd=(0x0,h[_0x33e80e(0x1d9)])(()=>new n[(_0x33e80e(0x126))](_0x19283c[_0x33e80e(0x32f)],{'commit':_0x497d93=>{const _0xb2d0fc=_0x33e80e;var _0x5cdb44;let _0x2ca68a=_0x19283c[_0xb2d0fc(0x32f)],_0x274774=(0x0,_[_0xb2d0fc(0x2e3)])(_0x497d93,{'series':(_0x5cdb44=_0x2ca68a[_0xb2d0fc(0xfb)])==null?void 0x0:_0x5cdb44['series'],'currentChartType':_0x2ca68a['chartType'],'currentStyle':_0x2ca68a[_0xb2d0fc(0x1d5)],'currentContext':_0x2ca68a[_0xb2d0fc(0x36b)],'currentDataAggregation':_0x2ca68a[_0xb2d0fc(0x269)]});_0x428f1b({'chart':Ot(_0xeb0580['chart'],_0x274774)});}}),[_0xeb0580['chart'],_0x428f1b,_0x19283c]),_0x262bf0=(0x0,h[_0x33e80e(0x1d9)])(()=>(0x0,n[_0x33e80e(0x3a1)])(n[_0x33e80e(0xf7)][_0x33e80e(0x47e)](_0x529cd1=>({..._0x529cd1,'label':_0x504ab4['t'](Mt(_0x529cd1[_0x33e80e(0x1b6)]))}))),[_0x504ab4]);return(0x0,g['jsx'])(n['ChartEditorProvider'],{'chartUIService':_0xb9d4df,'hostAdapter':_0x2fdfbd,'children':(0x0,g['jsxs'])(_0x33e80e(0x159),{'className':_0x33e80e(0x1b8),'children':[(0x0,g['jsx'])(n[_0x33e80e(0x2eb)],{'ariaLabel':_0x504ab4['t'](_0x33e80e(0x44a)),'className':_0x33e80e(0x1e2),'items':[{'label':_0x504ab4['t'](_0x33e80e(0x13a)),'panelId':_0x33e80e(0x16d),'value':n[_0x33e80e(0x2b5)]['Data']},{'label':_0x504ab4['t'](_0x33e80e(0x4ab)),'panelId':_0x33e80e(0xdf),'value':n[_0x33e80e(0x2b5)][_0x33e80e(0x34e)]}],'value':_0x242d7c,'onChange':_0x346476}),_0x242d7c===n['ChartEditPanelTab'][_0x33e80e(0x323)]?(0x0,g[_0x33e80e(0x12b)])(n[_0x33e80e(0xe9)],{'id':_0x33e80e(0x16d),'label':_0x504ab4['t'](_0x33e80e(0x13a)),'children':(0x0,g['jsxs'])(_0x33e80e(0x159),{'className':_0x33e80e(0x474),'children':[(0x0,g[_0x33e80e(0x12b)])(n[_0x33e80e(0x472)],{'options':_0x262bf0}),(0x0,g['jsx'])(n[_0x33e80e(0x3de)],{}),(0x0,g['jsx'])(n[_0x33e80e(0x2de)],{}),(0x0,g[_0x33e80e(0x12b)])(kt,{}),(0x0,g[_0x33e80e(0x12b)])(n[_0x33e80e(0x123)],{}),(0x0,g[_0x33e80e(0x402)])(_0x33e80e(0x159),{'children':[(0x0,g[_0x33e80e(0x12b)])(n['ChartEditBlockTitle'],{'title':_0x504ab4['t'](_0x33e80e(0x19a))}),(0x0,g[_0x33e80e(0x12b)])(f[_0x33e80e(0x23f)],{'disabled':!0x0,'value':_0x3bf8c6})]}),(0x0,g['jsx'])(n[_0x33e80e(0xd1)],{'orientationControl':(0x0,g[_0x33e80e(0x12b)])(f[_0x33e80e(0x438)],{'size':'small','onClick':()=>_0x428f1b({'chart':{..._0xeb0580[_0x33e80e(0x1a8)],'orient':_0xeb0580[_0x33e80e(0x1a8)]['orient']==='row'?_0x33e80e(0x2f0):_0x33e80e(0x1e6)}}),'children':_0x504ab4['t'](_0x33e80e(0x48e))})}),(0x0,g[_0x33e80e(0x12b)])(n[_0x33e80e(0x283)],{}),(0x0,g[_0x33e80e(0x12b)])(n[_0x33e80e(0x12e)],{'defaultValues':X['waterfall']}),(0x0,g[_0x33e80e(0x402)])(_0x33e80e(0x159),{'children':[(0x0,g[_0x33e80e(0x12b)])(n[_0x33e80e(0x33b)],{'title':_0x504ab4['t'](_0x33e80e(0x3aa))}),(0x0,g[_0x33e80e(0x12b)])(f[_0x33e80e(0x1b9)],{'value':_0xeb0580[_0x33e80e(0xe5)],'options':[{'value':'chart-and-table','label':_0x504ab4['t'](_0x33e80e(0x400))},{'value':_0x33e80e(0x1a8),'label':_0x504ab4['t']('bases-dashboard-ui.pivot.chartOnly')},{'value':_0x33e80e(0x1d8),'label':_0x504ab4['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x1e3672=>{const _0x342184=_0x33e80e;(_0x1e3672===_0x342184(0x467)||_0x1e3672==='chart'||_0x1e3672===_0x342184(0x1d8))&&_0x428f1b({'displayMode':_0x1e3672});}})]})]})}):(0x0,g[_0x33e80e(0x12b)])(n[_0x33e80e(0xe9)],{'id':_0x33e80e(0xdf),'label':_0x504ab4['t'](_0x33e80e(0x4ab)),'children':(0x0,g[_0x33e80e(0x12b)])(At,{})})]})});}function Ot(_0x506fe4,_0x1084d6){const _0x2a1f48=_0x10fa58;return{..._0x506fe4,'type':_0x1084d6[_0x2a1f48(0x218)]??_0x506fe4['type'],'style':_0x1084d6[_0x2a1f48(0x1d5)]??_0x506fe4[_0x2a1f48(0x1d5)],'context':_0x1084d6['context']??_0x506fe4['context'],'dataAggregation':_0x1084d6[_0x2a1f48(0x269)]??_0x506fe4['dataAggregation']};}function kt(){const _0x5759a5=_0x10fa58;let _0x3790e9=(0x0,n[_0x5759a5(0x3c2)])();return(0x0,g['jsx'])(n[_0x5759a5(0x167)],{'visible':Et[_0x5759a5(0x2b8)](_0xceef39=>!_[_0x5759a5(0x3fb)]['baseOn'](_0x3790e9,_0xceef39))});}function Z(_0x22b534){const _0x1b4f7a=_0x10fa58;return(0x0,g['jsxs'])(n[_0x1b4f7a(0x4af)],{'id':_0x22b534['id'],'children':[(0x0,g['jsx'])(n['ChartSectionAccordionTrigger'],{'children':_0x22b534[_0x1b4f7a(0x298)]}),(0x0,g[_0x1b4f7a(0x12b)])(n['ChartSectionAccordionContent'],{'children':_0x22b534[_0x1b4f7a(0x37c)]})]});}function At(){const _0x544ed8=_0x10fa58;let _0x1a3039=(0x0,m[_0x544ed8(0x162)])(a[_0x544ed8(0x17c)]),_0x5eacdf=(0x0,n['useChartEditorChartType'])(),_0x49accf=(0x0,n['useChartEditorHasRightAxis'])(),[_0xde02be,_0x1eb4dd]=(0x0,h[_0x544ed8(0x1cc)])(null),_0x3e3578=_[_0x544ed8(0x3fb)][_0x544ed8(0x146)](_0x5eacdf,_[_0x544ed8(0x203)][_0x544ed8(0x3e7)]),_0x43821b=_0x5eacdf===_[_0x544ed8(0x203)][_0x544ed8(0x4b3)],_0xbb1a0=_0x5eacdf===_[_0x544ed8(0x203)]['WordCloud'],_0x509f85=_0x5eacdf===_['ChartTypeBits'][_0x544ed8(0x4a9)],_0x132326=_[_0x544ed8(0x3fb)][_0x544ed8(0x146)](_0x5eacdf,_[_0x544ed8(0x203)]['Bubble']),_0x38db6d=_0x5eacdf===_[_0x544ed8(0x203)][_0x544ed8(0x2d1)],_0x20256b=_0x5eacdf===_[_0x544ed8(0x203)][_0x544ed8(0x2fc)],_0x35c2a0=_0x5eacdf===_[_0x544ed8(0x203)][_0x544ed8(0x378)],_0x480d3c=_0x5eacdf===_[_0x544ed8(0x203)]['Heatmap'],_0x1b60a6=(0x0,n[_0x544ed8(0x3d0)])(_0x5eacdf,n[_0x544ed8(0x34c)][_0x544ed8(0x15b)])&&!_0x132326&&!_0x35c2a0,_0x53647c=jt(_0x5eacdf,_0x1a3039);return(0x0,g[_0x544ed8(0x402)])(n[_0x544ed8(0x451)],{'value':_0xde02be,'onChange':_0x1eb4dd,'children':[(0x0,g['jsx'])(Z,{'id':n[_0x544ed8(0x45b)][_0x544ed8(0x2f2)],'label':_0x1a3039['t'](_0x544ed8(0x2b3)),'children':(0x0,g[_0x544ed8(0x12b)])(n[_0x544ed8(0x2fa)],{'defaultValues':X[_0x544ed8(0x1d5)]})}),(0x0,g[_0x544ed8(0x12b)])(Z,{'id':n[_0x544ed8(0x45b)][_0x544ed8(0x2f8)],'label':_0x1a3039['t'](_0x544ed8(0x158)),'children':(0x0,g[_0x544ed8(0x12b)])(n['ChartTitlesSection'],{'commitMode':'blur','defaultValues':X[_0x544ed8(0x1a2)]})}),(0x0,g['jsx'])(n['ChartThreeDSection'],{'section':_0x544ed8(0x4c6)}),_0x1b60a6&&(0x0,g[_0x544ed8(0x12b)])(Z,{'id':n['ChartEditPanelSection']['Series'],'label':_0x1a3039['t']('bases-dashboard-ui.chart.common.series'),'children':(0x0,g[_0x544ed8(0x12b)])(n[_0x544ed8(0x322)],{'defaultValues':X[_0x544ed8(0x118)],'NumberFormatField':n[_0x544ed8(0x15e)]})}),_0x20256b&&(0x0,g[_0x544ed8(0x12b)])(Z,{'id':n[_0x544ed8(0x45b)][_0x544ed8(0x2b0)],'label':_0x1a3039['t']('bases-dashboard-ui.chart.section.waterfall'),'children':(0x0,g[_0x544ed8(0x12b)])(n[_0x544ed8(0x151)],{'defaultValues':X[_0x544ed8(0x2e4)],'getDefaultBucketName':({seriesName:_0x298782,target:_0x29801a})=>_0x29801a===_['ChartWaterfallStyleTarget']['Subtotal']?_0x1a3039['t'](_0x544ed8(0x112)):_0x298782?_0x298782+'-('+_0x1a3039['t'](_0x544ed8(0x260)+(_0x29801a===_[_0x544ed8(0x131)][_0x544ed8(0x2f9)]?_0x544ed8(0x204):_0x544ed8(0x4a8)))+')':'','NumberFormatField':n['ChartNumberFormatAtom']})}),_0x35c2a0&&(0x0,g['jsxs'])(g[_0x544ed8(0xc8)],{'children':[(0x0,g[_0x544ed8(0x12b)])(Z,{'id':n['ChartEditPanelSection'][_0x544ed8(0x277)],'label':_0x1a3039['t'](_0x544ed8(0xdd)),'children':(0x0,g[_0x544ed8(0x12b)])(n['ChartParetoSeriesSection'],{'defaultValues':X[_0x544ed8(0x386)],'NumberFormatField':n['ChartNumberFormatAtom'],'showDataPointEditor':!0x0,'target':_0x544ed8(0x447)})}),(0x0,g[_0x544ed8(0x12b)])(Z,{'id':n[_0x544ed8(0x45b)][_0x544ed8(0x1c2)],'label':_0x1a3039['t'](_0x544ed8(0x2bf)),'children':(0x0,g[_0x544ed8(0x12b)])(n[_0x544ed8(0x3ab)],{'defaultValues':X[_0x544ed8(0x386)],'NumberFormatField':n[_0x544ed8(0x15e)],'showDataPointEditor':!0x1,'target':_0x544ed8(0x3a4)})})]}),_0x3e3578&&(0x0,g['jsx'])(Z,{'id':n[_0x544ed8(0x45b)]['PieStyle'],'label':_0x1a3039['t'](_0x544ed8(0x4a4)),'children':(0x0,g[_0x544ed8(0x12b)])(n[_0x544ed8(0x1e1)],{'defaultValues':X[_0x544ed8(0x101)],'NumberFormatField':n['ChartNumberFormatAtom']})}),_0xbb1a0&&(0x0,g[_0x544ed8(0x12b)])(Z,{'id':n['ChartEditPanelSection']['WordCloud'],'label':_0x1a3039['t'](_0x544ed8(0x46c)),'children':(0x0,g[_0x544ed8(0x12b)])(n[_0x544ed8(0x42c)],{'defaultValues':X[_0x544ed8(0x495)]})}),_0x43821b&&(0x0,g[_0x544ed8(0x12b)])(Z,{'id':n['ChartEditPanelSection'][_0x544ed8(0x4b3)],'label':_0x1a3039['t'](_0x544ed8(0x342)),'children':(0x0,g['jsx'])(n[_0x544ed8(0x1cd)],{'defaultValues':X[_0x544ed8(0x44b)]})}),_0x509f85&&(0x0,g[_0x544ed8(0x12b)])(Z,{'id':n['ChartEditPanelSection']['Funnel'],'label':_0x1a3039['t']('bases-dashboard-ui.chart.section.funnel'),'children':(0x0,g[_0x544ed8(0x12b)])(n[_0x544ed8(0x221)],{'defaultValues':X[_0x544ed8(0x246)],'gapControl':_0x544ed8(0x17d)})}),_0x480d3c&&(0x0,g['jsx'])(Z,{'id':n[_0x544ed8(0x45b)][_0x544ed8(0x444)],'label':_0x1a3039['t']('bases-dashboard-ui.chart.common.heatmap'),'children':(0x0,g[_0x544ed8(0x12b)])(n[_0x544ed8(0x4b5)],{'defaultValues':X[_0x544ed8(0x4db)]})}),_0x38db6d&&(0x0,g[_0x544ed8(0x12b)])(Z,{'id':n[_0x544ed8(0x45b)][_0x544ed8(0x2d1)],'label':_0x1a3039['t']('bases-dashboard-ui.chart.section.relation'),'children':(0x0,g[_0x544ed8(0x12b)])(n[_0x544ed8(0x194)],{'defaultValues':X['relation']})}),(0x0,n[_0x544ed8(0x109)])(_0x5eacdf)&&(0x0,g[_0x544ed8(0x12b)])(Z,{'id':n[_0x544ed8(0x45b)]['LineAndArea'],'label':_0x1a3039['t'](_['chartBitsUtils']['baseOn'](_0x5eacdf,_[_0x544ed8(0x203)][_0x544ed8(0x2a2)])?_0x544ed8(0x3f4):_0x544ed8(0xd8)),'children':(0x0,g[_0x544ed8(0x12b)])(n['ChartLineAndAreaSection'],{'defaultValues':X[_0x544ed8(0x4cd)],'lineStyleControl':_0x544ed8(0x16b)})}),(0x0,n[_0x544ed8(0x3d0)])(_0x5eacdf,n[_0x544ed8(0x34c)][_0x544ed8(0x437)])&&(0x0,g[_0x544ed8(0x12b)])(Z,{'id':n[_0x544ed8(0x45b)][_0x544ed8(0x437)],'label':_0x1a3039['t']('bases-dashboard-ui.chart.common.legend'),'children':(0x0,g['jsx'])(n[_0x544ed8(0x427)],{'defaultValues':X[_0x544ed8(0xef)]})}),(0x0,n[_0x544ed8(0x3d0)])(_0x5eacdf,n['ChartEditorCapability']['Axes'])&&(0x0,g['jsxs'])(g[_0x544ed8(0xc8)],{'children':[(0x0,g[_0x544ed8(0x12b)])(Z,{'id':n[_0x544ed8(0x45b)][_0x544ed8(0x350)],'label':_0x1a3039['t'](_0x544ed8(0x268)),'children':(0x0,g[_0x544ed8(0x12b)])(n[_0x544ed8(0x121)],{'axis':'x','defaultValues':X[_0x544ed8(0x212)],'NumberFormatField':n['ChartNumberFormatAtom']})}),(0x0,g[_0x544ed8(0x12b)])(Z,{'id':n[_0x544ed8(0x45b)]['VerticalAxis'],'label':_0x1a3039['t'](_0x544ed8(0x4bd)),'children':(0x0,g[_0x544ed8(0x12b)])(n['ChartAxisSection'],{'axis':'y','defaultValues':X[_0x544ed8(0x212)],'NumberFormatField':n['ChartNumberFormatAtom']})}),(0x0,g[_0x544ed8(0x12b)])(n['ChartThreeDSection'],{'section':'depthAxis'}),_0x49accf&&(0x0,g[_0x544ed8(0x12b)])(Z,{'id':n[_0x544ed8(0x45b)][_0x544ed8(0x345)],'label':_0x1a3039['t'](_0x544ed8(0xe1)),'children':(0x0,g[_0x544ed8(0x12b)])(n[_0x544ed8(0x121)],{'axis':_0x544ed8(0x2e6),'defaultValues':X[_0x544ed8(0x212)],'NumberFormatField':n[_0x544ed8(0x15e)]})}),(0x0,g['jsx'])(Z,{'id':n[_0x544ed8(0x45b)][_0x544ed8(0x285)],'label':_0x1a3039['t'](_0x544ed8(0x3ba)),'children':(0x0,g[_0x544ed8(0x12b)])(n[_0x544ed8(0x10a)],{'defaultValues':X[_0x544ed8(0x212)]})})]}),(0x0,n[_0x544ed8(0x3d0)])(_0x5eacdf,n[_0x544ed8(0x34c)]['IndicatorLine'])&&(0x0,g['jsx'])(Z,{'id':n[_0x544ed8(0x45b)][_0x544ed8(0xcc)],'label':_0x1a3039['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':(0x0,g[_0x544ed8(0x12b)])(n[_0x544ed8(0x35b)],{'defaultValues':X[_0x544ed8(0x452)]})}),(0x0,_['chartTypeCanUseTrendLine'])(_0x5eacdf)&&(0x0,g[_0x544ed8(0x12b)])(Z,{'id':n[_0x544ed8(0x45b)][_0x544ed8(0x1b7)],'label':_0x1a3039['t'](_0x544ed8(0x3a7)),'children':(0x0,g[_0x544ed8(0x12b)])(n[_0x544ed8(0x29a)],{'defaultValues':X['trendline']})}),_0x53647c&&(0x0,g[_0x544ed8(0x12b)])(Z,{'id':_0x53647c['id'],'label':_0x53647c[_0x544ed8(0x298)],'children':(0x0,g[_0x544ed8(0x12b)])(n[_0x544ed8(0x1db)],{})})]});}function jt(_0x83afcc,_0x165435){const _0x24cfe0=_0x10fa58;let _0x3d609b={[_['ChartTypeBits'][_0x24cfe0(0x10c)]]:{'id':n[_0x24cfe0(0x45b)][_0x24cfe0(0x10c)],'localeKey':'bases-dashboard-ui.chart.section.candlestick'},[_['ChartTypeBits'][_0x24cfe0(0xce)]]:{'id':n[_0x24cfe0(0x45b)][_0x24cfe0(0xce)],'localeKey':_0x24cfe0(0x449)},[_[_0x24cfe0(0x203)]['Treemap']]:{'id':n['ChartEditPanelSection']['Treemap'],'localeKey':'bases-dashboard-ui.chart.section.treemap'},[_[_0x24cfe0(0x203)][_0x24cfe0(0x361)]]:{'id':n[_0x24cfe0(0x45b)][_0x24cfe0(0x361)],'localeKey':_0x24cfe0(0x4be)},[_[_0x24cfe0(0x203)][_0x24cfe0(0x375)]]:{'id':n[_0x24cfe0(0x45b)][_0x24cfe0(0x375)],'localeKey':_0x24cfe0(0x1c8)},[_['ChartTypeBits'][_0x24cfe0(0x20f)]]:{'id':n[_0x24cfe0(0x45b)][_0x24cfe0(0x20f)],'localeKey':_0x24cfe0(0x30f)}}[_0x83afcc];return _0x3d609b?{'id':_0x3d609b['id'],'label':_0x165435['t'](_0x3d609b[_0x24cfe0(0x4c7)])}:null;}function Mt(_0x4996f1){const _0x4d3764=_0x10fa58;return _0x4d3764(0x499)+_0x4996f1;}function Nt({onChange:_0x392cdc,onEditData:_0x5f5c79,runtime:_0x5e3fc9,sourceChart:_0x57d45d,sourceName:_0x1f7f1d,widget:_0x323340}){const _0x5f38e9=_0x10fa58;let _0x336248=(0x0,m[_0x5f38e9(0x162)])(W),_0x585074=(0x0,m[_0x5f38e9(0x162)])(a['LocaleService']),[_0x58aefa,_0x2eeed7]=(0x0,h[_0x5f38e9(0x1cc)])(n['ChartEditPanelTab'][_0x5f38e9(0x323)]),_0x38e347=_0x323340[_0x5f38e9(0x1a8)]??_0x57d45d,_0x2e77cc=(0x0,h[_0x5f38e9(0x1d9)])(()=>new n['ChartHostAdapter'](_0x5e3fc9['model'],{'commit':_0x42ea2b=>{const _0x1d753f=_0x5f38e9;var _0x11c1ac;let _0x303d20=_0x5e3fc9[_0x1d753f(0x32f)],_0x2a8710=(0x0,_[_0x1d753f(0x2e3)])(_0x42ea2b,{'series':(_0x11c1ac=_0x303d20['config'])==null?void 0x0:_0x11c1ac[_0x1d753f(0x118)],'currentChartType':_0x303d20[_0x1d753f(0x218)],'currentStyle':_0x303d20[_0x1d753f(0x1d5)],'currentContext':_0x303d20[_0x1d753f(0x36b)],'currentDataAggregation':_0x303d20[_0x1d753f(0x269)]});_0x392cdc({..._0x323340,'chart':Ot(_0x38e347,_0x2a8710)})['catch'](()=>void 0x0);}}),[_0x38e347,_0x392cdc,_0x5e3fc9,_0x323340]),_0x169648=(0x0,h['useMemo'])(()=>(0x0,n['buildChartTypeSelectOptions'])(n[_0x5f38e9(0xf7)]['map'](_0x8c0438=>({..._0x8c0438,'label':_0x585074['t'](Pt(_0x8c0438['labelId']))}))),[_0x585074]);return(0x0,g['jsx'])(n['ChartEditorProvider'],{'chartUIService':_0x336248,'hostAdapter':_0x2e77cc,'children':(0x0,g['jsxs'])('div',{'data-dashboard-chart-inspector':!0x0,'className':_0x5f38e9(0x35e),'children':[(0x0,g[_0x5f38e9(0x12b)])(n[_0x5f38e9(0x2eb)],{'ariaLabel':_0x585074['t'](_0x5f38e9(0x44a)),'className':'univer-shrink-0\x20univer-px-3','items':[{'label':_0x585074['t'](_0x5f38e9(0x13a)),'panelId':_0x5f38e9(0x43e),'value':n[_0x5f38e9(0x2b5)][_0x5f38e9(0x323)]},{'label':_0x585074['t'](_0x5f38e9(0x4ab)),'panelId':'dashboard-chart-style','value':n[_0x5f38e9(0x2b5)][_0x5f38e9(0x34e)]}],'value':_0x58aefa,'onChange':_0x2eeed7}),_0x58aefa===n['ChartEditPanelTab'][_0x5f38e9(0x323)]?(0x0,g[_0x5f38e9(0x12b)])(n['ChartEditPanel'],{'id':_0x5f38e9(0x43e),'label':_0x585074['t']('bases-dashboard-ui.chart.common.setup'),'children':(0x0,g[_0x5f38e9(0x402)])(_0x5f38e9(0x159),{'className':_0x5f38e9(0x474),'children':[(0x0,g[_0x5f38e9(0x12b)])(n[_0x5f38e9(0x472)],{'options':_0x169648}),(0x0,g[_0x5f38e9(0x12b)])(n[_0x5f38e9(0x3de)],{}),(0x0,g['jsx'])(n['ChartThemeField'],{}),(0x0,g[_0x5f38e9(0x12b)])(kt,{}),(0x0,g[_0x5f38e9(0x12b)])(n['ChartStackField'],{}),(0x0,g[_0x5f38e9(0x402)])(_0x5f38e9(0x159),{'children':[(0x0,g[_0x5f38e9(0x12b)])(n[_0x5f38e9(0x33b)],{'title':_0x585074['t']('bases-dashboard-ui.dashboardInspector.dataSource')}),(0x0,g[_0x5f38e9(0x12b)])(f['Input'],{'disabled':!0x0,'value':_0x1f7f1d}),(0x0,g[_0x5f38e9(0x12b)])(f['Button'],{'className':_0x5f38e9(0x3f6),'onClick':_0x5f5c79,'children':_0x585074['t'](_0x5f38e9(0x326))})]})]})}):(0x0,g[_0x5f38e9(0x12b)])(n['ChartEditPanel'],{'id':_0x5f38e9(0x365),'label':_0x585074['t'](_0x5f38e9(0x4ab)),'children':(0x0,g['jsx'])(At,{})})]})});}function Pt(_0x2495d8){const _0x3547d7=_0x10fa58;return _0x3547d7(0x499)+_0x2495d8;}const Ft=['general',_0x10fa58(0x25c),_0x10fa58(0x234),_0x10fa58(0x328),'grouped',_0x10fa58(0x135)];function It({base:_0xd506e2,onChange:_0x40dded,onSelectBackgroundImage:_0xeda55f,widget:_0x1855b1}){const _0x3ed811=_0x10fa58;var _0x1ff562;let _0x95db36=(0x0,m[_0x3ed811(0x162)])(a[_0x3ed811(0x17c)]),_0x57117b=(0x0,m[_0x3ed811(0x162)])(a['ThemeService']),_0x49c544=(0x0,m[_0x3ed811(0x3e1)])(()=>_0x57117b['currentTheme$'],_0x57117b[_0x3ed811(0x320)](),!0x1,[_0x57117b]),_0x1253ca=(0x0,m[_0x3ed811(0x3e1)])(()=>_0x57117b[_0x3ed811(0x3a6)],_0x57117b['darkMode'],!0x1,[_0x57117b]),[_0x59c0bd,_0x305490]=(0x0,h[_0x3ed811(0x1cc)])(_0x3ed811(0x265)),[_0x30a14d,_0x5cc4ab]=(0x0,h[_0x3ed811(0x1cc)])(!0x1),_0x5e9cab=k(_0x1855b1),_0xb22d69=_0xd506e2[_0x3ed811(0x47d)]()['tables'][_0x1855b1[_0x3ed811(0x3ce)]],_0x5db526=_0xb22d69==null?void 0x0:_0xb22d69['viewOrder']['find'](_0x4201d6=>_0xb22d69[_0x3ed811(0x1d2)][_0x4201d6]),_0x291670=_0x5db526?_0xb22d69==null?void 0x0:_0xb22d69['views'][_0x5db526]:void 0x0,_0x18f278=_0xb22d69&&_0x291670?(0x0,t['toFormulaMenuTables'])(_0xd506e2[_0x3ed811(0x47d)](),_0xb22d69,_0x291670)[_0x3ed811(0x47e)](_0x5f240c=>({..._0x5f240c,'current':!0x1})):[],_0x45d47d=((_0x1ff562=_0x1855b1[_0x3ed811(0x471)][_0x3ed811(0x2d4)])==null?void 0x0:_0x1ff562[_0x3ed811(0x397)])??'',_0x1579a3=_0x249435=>_0x40dded(A(_0x1855b1,_0x249435))['catch'](()=>void 0x0),_0x25ff79=_0xf0ed90=>_0x40dded({..._0x1855b1,'description':_0xf0ed90})[_0x3ed811(0x1f0)](()=>void 0x0);return(0x0,g[_0x3ed811(0x402)])('div',{'data-dashboard-formula-inspector':!0x0,'className':_0x3ed811(0x35e),'children':[(0x0,g[_0x3ed811(0x12b)])(f['Segmented'],{'className':_0x3ed811(0x1ec),'items':[{'value':_0x3ed811(0x265),'label':_0x95db36['t'](_0x3ed811(0x222))},{'value':_0x3ed811(0x1d5),'label':_0x95db36['t']('bases-dashboard-ui.dashboardInspector.style')}],'value':_0x59c0bd,'onChange':_0x305490}),(0x0,g[_0x3ed811(0x12b)])(_0x3ed811(0x159),{'className':_0x3ed811(0x33f),'children':_0x59c0bd===_0x3ed811(0x265)?(0x0,g['jsxs'])(_0x3ed811(0x159),{'className':_0x3ed811(0x1a6),'children':[(0x0,g[_0x3ed811(0x12b)])(Q,{'label':_0x95db36['t'](_0x3ed811(0x2df)),'children':(0x0,g[_0x3ed811(0x12b)])(f[_0x3ed811(0x23f)],{'value':_0x1855b1[_0x3ed811(0x36d)]??_0x1855b1[_0x3ed811(0x310)]??'','onChange':_0x25ff79,'onBlur':_0x1a54a5=>_0x25ff79(_0x1a54a5[_0x3ed811(0x2d9)][_0x3ed811(0x16c)])})}),(0x0,g[_0x3ed811(0x12b)])(Q,{'label':_0x95db36['t'](_0x3ed811(0x377)),'children':(0x0,g[_0x3ed811(0x12b)])(f[_0x3ed811(0x23f)],{'disabled':!0x0,'value':(_0xb22d69==null?void 0x0:_0xb22d69[_0x3ed811(0x4a1)])??_0x95db36['t'](_0x3ed811(0x31d))})}),(0x0,g[_0x3ed811(0x402)])(Q,{'label':_0x95db36['t'](_0x3ed811(0x17e)),'children':[(0x0,g['jsx'])(f[_0x3ed811(0x23f)],{'disabled':!0x0,'value':(0x0,t[_0x3ed811(0x100)])(_0x45d47d,_0x18f278)}),(0x0,g[_0x3ed811(0x12b)])(f[_0x3ed811(0x438)],{'className':'univer-mt-2\x20univer-w-full','onClick':()=>_0x5cc4ab(!0x0),'children':_0x95db36['t']('bases-dashboard-ui.dashboardInspector.editFormula')})]})]}):(0x0,g[_0x3ed811(0x402)])(_0x3ed811(0x159),{'className':'univer-grid\x20univer-gap-4','children':[(0x0,g[_0x3ed811(0x12b)])(n['ChartColorField'],{'emptyLabel':_0x95db36['t'](_0x3ed811(0x329)),'label':_0x95db36['t'](_0x3ed811(0x329)),'pickerFallbackValue':_0x1253ca?_0x49c544[_0x3ed811(0x14e)][0x384]:_0x49c544[_0x3ed811(0x14e)][0x0],'resetLabel':_0x95db36['t'](_0x3ed811(0x2b9)),'value':_0x5e9cab[_0x3ed811(0x49d)]??null,'onChange':_0x67a984=>_0x1579a3({'backgroundColor':_0x67a984??void 0x0})}),(0x0,g[_0x3ed811(0x402)])(Q,{'label':_0x95db36['t'](_0x3ed811(0x2a9)),'children':[(0x0,g['jsxs'])('div',{'className':_0x3ed811(0x372),'children':[(0x0,g['jsxs'])(f[_0x3ed811(0x438)],{'className':_0x3ed811(0xe7),'onClick':()=>{const _0x46314c=_0x3ed811;_0xeda55f()[_0x46314c(0x46e)](_0x3134b4=>{const _0x521901=_0x46314c;if(_0x3134b4){var _0x13f99c;return _0x1579a3({'backgroundImage':{..._0x3134b4,'fit':((_0x13f99c=_0x5e9cab[_0x521901(0x3ae)])==null?void 0x0:_0x13f99c[_0x521901(0x354)])??'cover'}});}})[_0x46314c(0x1f0)](()=>void 0x0);},'children':[(0x0,g[_0x3ed811(0x12b)])(s[_0x3ed811(0x32c)],{}),_0x5e9cab[_0x3ed811(0x3ae)]?_0x95db36['t']('bases-dashboard-ui.dashboardInspector.replaceImage'):_0x95db36['t']('bases-dashboard-ui.dashboardInspector.uploadImage')]}),_0x5e9cab[_0x3ed811(0x3ae)]&&(0x0,g['jsx'])(f[_0x3ed811(0x438)],{'aria-label':_0x95db36['t'](_0x3ed811(0x301)),'title':_0x95db36['t'](_0x3ed811(0x301)),'onClick':()=>_0x1579a3({'backgroundImage':void 0x0}),'children':(0x0,g[_0x3ed811(0x12b)])(s[_0x3ed811(0x2ae)],{})})]}),_0x5e9cab[_0x3ed811(0x3ae)]&&(0x0,g[_0x3ed811(0x12b)])(f['Segmented'],{'className':_0x3ed811(0x228),'items':[{'value':_0x3ed811(0x2d7),'label':_0x95db36['t'](_0x3ed811(0x192))},{'value':_0x3ed811(0x119),'label':_0x95db36['t'](_0x3ed811(0x1cf))}],'value':_0x5e9cab[_0x3ed811(0x3ae)][_0x3ed811(0x354)],'onChange':_0xf7b238=>_0x1579a3({'backgroundImage':_0x5e9cab['backgroundImage']?{..._0x5e9cab[_0x3ed811(0x3ae)],'fit':_0xf7b238}:void 0x0})})]}),(0x0,g['jsx'])(n[_0x3ed811(0x480)],{'emptyLabel':_0x95db36['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x95db36['t'](_0x3ed811(0x2d5)),'pickerFallbackValue':_0x1253ca?_0x49c544[_0x3ed811(0x14e)][0x32]:_0x49c544[_0x3ed811(0x14e)][0x3e8],'resetLabel':_0x95db36['t'](_0x3ed811(0x2b9)),'value':_0x5e9cab[_0x3ed811(0xcf)]??null,'onChange':_0x2383a4=>_0x1579a3({'textColor':_0x2383a4??void 0x0})}),(0x0,g[_0x3ed811(0x12b)])(Q,{'label':_0x95db36['t'](_0x3ed811(0x18b)),'children':(0x0,g['jsx'])(f[_0x3ed811(0x36e)],{'items':[{'value':_0x3ed811(0x22a),'label':_0x95db36['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':'center','label':_0x95db36['t'](_0x3ed811(0x21b))},{'value':_0x3ed811(0x3b4),'label':_0x95db36['t'](_0x3ed811(0x125))}],'value':_0x5e9cab['alignment'],'onChange':_0x3fc1fd=>_0x1579a3({'alignment':_0x3fc1fd})})}),(0x0,g[_0x3ed811(0x402)])(Q,{'label':_0x95db36['t'](_0x3ed811(0x23c)),'children':[(0x0,g['jsx'])(f[_0x3ed811(0x36e)],{'items':[{'value':_0x3ed811(0x21a),'label':_0x95db36['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':_0x3ed811(0x14d),'label':_0x95db36['t']('bases-dashboard-ui.dashboardInspector.custom')}],'value':_0x5e9cab[_0x3ed811(0x456)],'onChange':_0x4aa0ce=>_0x1579a3({'fontSizeMode':_0x4aa0ce})}),_0x5e9cab[_0x3ed811(0x456)]===_0x3ed811(0x14d)&&(0x0,g[_0x3ed811(0x12b)])(f[_0x3ed811(0x11d)],{'className':_0x3ed811(0x228),'min':0xc,'max':0x78,'value':_0x5e9cab[_0x3ed811(0x44d)],'onChange':_0xc69abe=>_0x1579a3({'fontSize':_0xc69abe??0x28,'fontSizeMode':_0x3ed811(0x14d)})})]}),(0x0,g[_0x3ed811(0x12b)])(Q,{'label':_0x95db36['t'](_0x3ed811(0x340)),'children':(0x0,g[_0x3ed811(0x12b)])(f[_0x3ed811(0x1b9)],{'value':_0x5e9cab[_0x3ed811(0x217)],'options':[{'value':_0x3ed811(0x357),'label':_0x95db36['t'](_0x3ed811(0x37b))},{'value':_0x3ed811(0x25c),'label':_0x95db36['t']('bases-dashboard-ui.dashboardInspector.number')},{'value':'percent','label':_0x95db36['t'](_0x3ed811(0x12a))},{'value':_0x3ed811(0x328),'label':_0x95db36['t'](_0x3ed811(0x117))},{'value':'grouped','label':_0x95db36['t']('bases-dashboard-ui.dashboardInspector.grouped')},{'value':'compact','label':_0x95db36['t'](_0x3ed811(0x30d))}],'onChange':_0x373e0f=>{let _0x53e6b4=Ft['find'](_0x3d899d=>_0x3d899d===_0x373e0f);_0x53e6b4&&_0x1579a3({'numberFormat':_0x53e6b4});}})}),_0x5e9cab['numberFormat']===_0x3ed811(0x328)&&(0x0,g[_0x3ed811(0x12b)])(Q,{'label':_0x95db36['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':(0x0,g[_0x3ed811(0x12b)])(f[_0x3ed811(0x23f)],{'value':_0x5e9cab[_0x3ed811(0x328)],'onChange':_0x52d7db=>_0x1579a3({'currency':_0x52d7db[_0x3ed811(0x1f3)](0x0,0x3)[_0x3ed811(0x414)]()})})}),_0x5e9cab[_0x3ed811(0x217)]!==_0x3ed811(0x357)&&(0x0,g[_0x3ed811(0x12b)])(Q,{'label':_0x95db36['t'](_0x3ed811(0x2b4)),'children':(0x0,g[_0x3ed811(0x12b)])(f[_0x3ed811(0x11d)],{'min':0x0,'max':0x8,'value':_0x5e9cab['decimalPlaces'],'onChange':_0x165b8a=>_0x1579a3({'decimalPlaces':_0x165b8a??0x0})})})]})}),_0x30a14d&&(0x0,g[_0x3ed811(0x12b)])(f[_0x3ed811(0xec)],{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':(0x0,g[_0x3ed811(0x12b)])(t['FormulaEditorPanel'],{'tables':_0x18f278,'formula':(0x0,t[_0x3ed811(0x100)])(_0x45d47d,_0x18f278),'onCancel':()=>_0x5cc4ab(!0x1),'onSave':_0x53f5fa=>{const _0x583ce1=_0x3ed811;let _0x8d9aa7=_0x1855b1['shapeData'][_0x583ce1(0x2d4)]??{'formula':''};return _0x40dded({..._0x1855b1,'shapeData':{..._0x1855b1[_0x583ce1(0x471)],'formulaBinding':{..._0x8d9aa7,'formula':(0x0,t['normalizeEditorFormulaForConfig'])(_0x53f5fa,_0x18f278)}}})['then'](()=>_0x5cc4ab(!0x1))[_0x583ce1(0x1f0)](()=>void 0x0);}})})]});}function Q({children:_0x2619da,label:_0x58d187}){const _0x4fd852=_0x10fa58;return(0x0,g['jsxs'])(_0x4fd852(0x159),{'role':_0x4fd852(0x3e3),'aria-label':_0x58d187,'className':_0x4fd852(0x3b2),'children':[(0x0,g[_0x4fd852(0x12b)])('span',{'children':_0x58d187}),_0x2619da]});}const Lt={[a[_0x10fa58(0x3d4)]['IS']]:'bases-dashboard-ui.operators.is',[a[_0x10fa58(0x3d4)][_0x10fa58(0x1d6)]]:_0x10fa58(0xf3),[a[_0x10fa58(0x3d4)][_0x10fa58(0x1c6)]]:'bases-dashboard-ui.operators.contains',[a['BaseFilterOperator'][_0x10fa58(0x4d6)]]:_0x10fa58(0x3c6),[a[_0x10fa58(0x3d4)][_0x10fa58(0x348)]]:_0x10fa58(0x144),[a[_0x10fa58(0x3d4)][_0x10fa58(0x3c0)]]:'bases-dashboard-ui.operators.isNotEmpty',[a[_0x10fa58(0x3d4)]['GREATER_THAN']]:_0x10fa58(0x3f2),[a[_0x10fa58(0x3d4)][_0x10fa58(0x339)]]:_0x10fa58(0x4b1),[a[_0x10fa58(0x3d4)][_0x10fa58(0x20c)]]:'bases-dashboard-ui.operators.lessThan',[a[_0x10fa58(0x3d4)]['LESS_THAN_OR_EQUAL']]:_0x10fa58(0x12d),[a[_0x10fa58(0x3d4)][_0x10fa58(0x3c4)]]:'bases-dashboard-ui.operators.before',[a[_0x10fa58(0x3d4)][_0x10fa58(0x3a8)]]:_0x10fa58(0xc6)};function Rt({disabled:_0x1f31d1,fields:_0x5b1092,filter:_0x4d34e9,onChange:_0x3bdc51}){const _0x39aadb=_0x10fa58;let _0x3a3509=(0x0,m[_0x39aadb(0x162)])(a[_0x39aadb(0x17c)]),_0x2e86fc=(_0x4d34e9==null?void 0x0:_0x4d34e9[_0x39aadb(0x401)])??[];return _0x2e86fc[_0x39aadb(0x416)]?(0x0,g[_0x39aadb(0x12b)])(_0x39aadb(0x159),{'className':_0x39aadb(0x3c5),'children':_0x2e86fc[_0x39aadb(0x47e)]((_0x1676c9,_0x592826)=>{const _0x1f26cc=_0x39aadb;let _0x23c0d6=_0x5b1092[_0x1f26cc(0x315)](_0x183b00=>_0x183b00['id']===_0x1676c9[_0x1f26cc(0xdb)]);return(0x0,g[_0x1f26cc(0x402)])(_0x1f26cc(0x159),{'className':_0x1f26cc(0x3b6),'children':[(0x0,g[_0x1f26cc(0x402)])(_0x1f26cc(0x159),{'className':'univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','children':[(0x0,g[_0x1f26cc(0x12b)])('span',{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','children':(_0x23c0d6==null?void 0x0:_0x23c0d6['name'])??_0x1676c9[_0x1f26cc(0xdb)]}),(0x0,g[_0x1f26cc(0x12b)])(_0x1f26cc(0x408),{'className':_0x1f26cc(0x130),'children':_0x3a3509['t'](Lt[_0x1676c9[_0x1f26cc(0x39a)]])})]}),Kt(_0x1676c9['operator'])&&(0x0,g['jsx'])(Bt,{'disabled':_0x1f31d1,'field':_0x23c0d6,'value':_0x1676c9['operand'],'onChange':_0x39254b=>_0x3bdc51(Ut(_0x4d34e9,_0x592826,{'operand':_0x39254b}))})]},Yt(_0x2e86fc,_0x1676c9,_0x592826));})}):(0x0,g[_0x39aadb(0x402)])(_0x39aadb(0x159),{'className':_0x39aadb(0x49a),'children':[(0x0,g['jsx'])(s[_0x39aadb(0x21e)],{'className':_0x39aadb(0x138)}),(0x0,g[_0x39aadb(0x12b)])(_0x39aadb(0x408),{'className':'univer-text-sm','children':_0x3a3509['t'](_0x39aadb(0x4a6))})]});}function zt({fields:_0x327145,filter:_0x517d19,onChange:_0x40bf01,onClear:_0x342eea}){const _0x4ed077=_0x10fa58;let _0x2c4309=(0x0,m[_0x4ed077(0x162)])(a[_0x4ed077(0x17c)]),_0x239bfe=(_0x517d19==null?void 0x0:_0x517d19[_0x4ed077(0x401)])??[];return(0x0,g[_0x4ed077(0x402)])('div',{'data-dashboard-filter-inspector':!0x0,'className':'univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','children':[_0x239bfe[_0x4ed077(0x47e)]((_0x55c024,_0x25b736)=>{const _0x58a7ca=_0x4ed077;let _0x56815f=_0x327145[_0x58a7ca(0x315)](_0x2ca8a6=>_0x2ca8a6['id']===_0x55c024['fieldId'])??_0x327145[0x0],_0x401ad0=Wt(_0x56815f);return(0x0,g[_0x58a7ca(0x402)])(_0x58a7ca(0x4d8),{'className':_0x58a7ca(0xed),'children':[(0x0,g[_0x58a7ca(0x402)])('div',{'className':_0x58a7ca(0x20b),'children':[(0x0,g['jsx'])(f['Select'],{'value':_0x55c024['fieldId'],'options':_0x327145['map'](_0x3ad14a=>({'value':_0x3ad14a['id'],'label':_0x3ad14a[_0x58a7ca(0x4a1)]})),'onChange':_0x4d86ab=>{const _0xad2488=_0x58a7ca;let _0x522fa3=_0x327145[_0xad2488(0x315)](_0x586ab8=>_0x586ab8['id']===_0x4d86ab);if(!_0x522fa3)return;let _0x580da1=Wt(_0x522fa3)[0x0];_0x40bf01(Ut(_0x517d19,_0x25b736,Ht(_0x522fa3,_0x580da1)));}}),(0x0,g[_0x58a7ca(0x12b)])(f[_0x58a7ca(0x438)],{'type':_0x58a7ca(0x396),'variant':_0x58a7ca(0x2fe),'aria-label':_0x2c4309['t'](_0x58a7ca(0x205)),'className':_0x58a7ca(0x229),'onClick':()=>_0x40bf01(Vt(_0x517d19,_0x239bfe[_0x58a7ca(0x3fa)]((_0xc6b1d4,_0x11e269)=>_0x11e269!==_0x25b736))),'children':(0x0,g['jsx'])(s[_0x58a7ca(0x3c8)],{})})]}),(0x0,g['jsx'])(f[_0x58a7ca(0x1b9)],{'value':_0x55c024[_0x58a7ca(0x39a)],'options':_0x401ad0[_0x58a7ca(0x47e)](_0x1df4a2=>({'value':_0x1df4a2,'label':_0x2c4309['t'](Lt[_0x1df4a2])})),'onChange':_0x2fd48f=>{let _0x3203f3=_0x401ad0['find'](_0x320820=>_0x320820===_0x2fd48f);_0x3203f3&&_0x40bf01(Ut(_0x517d19,_0x25b736,{'operator':_0x3203f3,'operand':Gt(_0x56815f)}));}}),Kt(_0x55c024['operator'])&&(0x0,g[_0x58a7ca(0x12b)])(Bt,{'field':_0x56815f,'value':_0x55c024[_0x58a7ca(0x476)],'onChange':_0x89e91a=>_0x40bf01(Ut(_0x517d19,_0x25b736,{'operand':_0x89e91a}))})]},Yt(_0x239bfe,_0x55c024,_0x25b736));}),(0x0,g['jsxs'])(f[_0x4ed077(0x438)],{'type':_0x4ed077(0x396),'variant':'text','className':'univer-w-full\x20univer-justify-start\x20univer-text-primary-600','disabled':!_0x327145[_0x4ed077(0x416)],'onClick':()=>{let _0x5ee1e0=_0x327145[0x0];if(!_0x5ee1e0)return;let _0x29c798=Wt(_0x5ee1e0)[0x0];_0x40bf01(Vt(_0x517d19,[..._0x239bfe,Ht(_0x5ee1e0,_0x29c798)]));},'children':[(0x0,g['jsx'])(s[_0x4ed077(0x32c)],{}),_0x2c4309['t'](_0x4ed077(0x2a3))]}),_0x239bfe[_0x4ed077(0x416)]>0x0&&(0x0,g['jsx'])(f[_0x4ed077(0x438)],{'type':'button','variant':'text','className':_0x4ed077(0x424),'onClick':_0x342eea,'children':_0x2c4309['t'](_0x4ed077(0x2c4))})]});}function Bt({disabled:_0x2546a9,field:_0x15bec1,onChange:_0x5a4362,value:_0x5e5813}){const _0x14da0d=_0x10fa58;let _0x57999f=(0x0,m[_0x14da0d(0x162)])(a[_0x14da0d(0x17c)]),[_0x26788b,_0x521852]=(0x0,h[_0x14da0d(0x1cc)])({'value':_0x5e5813,'text':String(_0x5e5813??'')});Object['is'](_0x26788b['value'],_0x5e5813)||_0x521852({'value':_0x5e5813,'text':String(_0x5e5813??'')});let _0x13108f=_0x26788b['text'],_0x2e68b1=_0x5318a1=>_0x521852({'value':_0x5e5813,'text':_0x5318a1}),_0x44801d=_0x15bec1==null?void 0x0:_0x15bec1['type'];if(_0x44801d===a[_0x14da0d(0x466)][_0x14da0d(0x20d)]){let _0x1d3057=_0x5e5813===!0x0||_0x5e5813===_0x14da0d(0x1c5);return(0x0,g[_0x14da0d(0x402)])(f[_0x14da0d(0x438)],{'type':_0x14da0d(0x396),'variant':_0x14da0d(0x3d7),'disabled':_0x2546a9,'className':_0x14da0d(0x1bf),'onClick':()=>_0x5a4362(!_0x1d3057),'children':[(0x0,g['jsx'])(f[_0x14da0d(0x20d)],{'checked':_0x1d3057,'disabled':_0x2546a9,'onChange':()=>void 0x0}),_0x1d3057?_0x57999f['t'](_0x14da0d(0x316)):_0x57999f['t']('bases-dashboard-ui.dashboardInspector.unchecked')]});}return Xt(_0x44801d)?_0x2546a9?(0x0,g['jsx'])(f[_0x14da0d(0x438)],{'type':_0x14da0d(0x396),'variant':_0x14da0d(0x3d7),'className':_0x14da0d(0x424),'disabled':!0x0,'children':(0x0,a[_0x14da0d(0x174)])(_0x5e5813==null||_0x5e5813===''?void 0x0:String(_0x5e5813))[_0x14da0d(0x2ee)](_0x14da0d(0x49e))}):(0x0,g[_0x14da0d(0x12b)])(f[_0x14da0d(0x4de)],{'className':_0x14da0d(0x424),'value':(0x0,a[_0x14da0d(0x174)])(_0x5e5813==null||_0x5e5813===''?void 0x0:String(_0x5e5813))[_0x14da0d(0x404)](),'onValueChange':_0x47feb1=>_0x5a4362((0x0,a['dateKit'])(_0x47feb1)['format'](_0x14da0d(0x49e)))}):Qt(_0x15bec1)?(0x0,g[_0x14da0d(0x12b)])(f['MultipleSelect'],{'className':_0x14da0d(0x424),'disabled':_0x2546a9,'value':Array['isArray'](_0x5e5813)?_0x5e5813[_0x14da0d(0x47e)](String):[],'options':qt(_0x15bec1),'onChange':_0x5a4362}):_0x44801d===a[_0x14da0d(0x466)]['SingleSelect']||_0x44801d===a[_0x14da0d(0x466)][_0x14da0d(0x2a0)]||_0x44801d===a[_0x14da0d(0x466)]['Person']?(0x0,g['jsx'])(f[_0x14da0d(0x1b9)],{'className':_0x14da0d(0x424),'disabled':_0x2546a9,'value':String(_0x5e5813??''),'options':[{'value':'','label':_0x57999f['t'](_0x14da0d(0x2f3))},...qt(_0x15bec1)],'onChange':_0x5a4362}):Zt(_0x44801d)?(0x0,g[_0x14da0d(0x12b)])(f[_0x14da0d(0x23f)],{'className':_0x14da0d(0x424),'disabled':_0x2546a9,'inputMode':'decimal','value':_0x13108f,'aria-invalid':_0x13108f!==''&&!Number[_0x14da0d(0x355)](Number(_0x13108f)),'onChange':_0x59431b=>{const _0x5e4c17=_0x14da0d;_0x2e68b1(_0x59431b),_0x59431b===''?_0x5a4362(''):Number[_0x5e4c17(0x355)](Number(_0x59431b))&&_0x5a4362(Number(_0x59431b));},'onBlur':()=>_0x2e68b1(String(_0x5e5813??''))}):(0x0,g[_0x14da0d(0x12b)])(f[_0x14da0d(0x23f)],{'disabled':_0x2546a9,'value':String(_0x5e5813??''),'placeholder':_0x57999f['t']('bases-dashboard-ui.dashboardInspector.enterValue'),'onChange':_0x5a4362});}function Vt(_0x219ebc,_0x4e136c){const _0x51047c=_0x10fa58;return{'conjunction':(_0x219ebc==null?void 0x0:_0x219ebc['conjunction'])??a[_0x51047c(0x1e4)][_0x51047c(0x2bc)],'conditions':_0x4e136c};}function Ht(_0x15b155,_0x11b9d7){return Kt(_0x11b9d7)?{'fieldId':_0x15b155['id'],'operator':_0x11b9d7,'operand':Gt(_0x15b155)}:{'fieldId':_0x15b155['id'],'operator':_0x11b9d7};}function Ut(_0x42d713,_0xe40fd0,_0x26a364){const _0x556fce=_0x10fa58;return Vt(_0x42d713,((_0x42d713==null?void 0x0:_0x42d713[_0x556fce(0x401)])??[])['map']((_0x5cfdf8,_0x2580e2)=>_0x2580e2===_0xe40fd0?{..._0x5cfdf8,..._0x26a364}:_0x5cfdf8));}function Wt(_0x4e869d){const _0x221ac4=_0x10fa58;let _0x46d628=[a[_0x221ac4(0x3d4)]['IS_EMPTY'],a[_0x221ac4(0x3d4)]['IS_NOT_EMPTY']];switch(_0x4e869d==null?void 0x0:_0x4e869d[_0x221ac4(0x469)]){case a['BaseFieldType']['Number']:case a[_0x221ac4(0x466)]['Currency']:case a['BaseFieldType']['Progress']:case a[_0x221ac4(0x466)][_0x221ac4(0x181)]:return[a[_0x221ac4(0x3d4)]['IS'],a[_0x221ac4(0x3d4)]['IS_NOT'],a[_0x221ac4(0x3d4)][_0x221ac4(0x3dd)],a['BaseFilterOperator'][_0x221ac4(0x20c)],..._0x46d628];case a[_0x221ac4(0x466)][_0x221ac4(0x3ef)]:case a['BaseFieldType'][_0x221ac4(0x415)]:case a['BaseFieldType']['UpdatedAt']:return[a[_0x221ac4(0x3d4)]['IS'],a[_0x221ac4(0x3d4)][_0x221ac4(0x1d6)],a[_0x221ac4(0x3d4)][_0x221ac4(0x3c4)],a[_0x221ac4(0x3d4)][_0x221ac4(0x3a8)],..._0x46d628];case a[_0x221ac4(0x466)][_0x221ac4(0x20d)]:return[a[_0x221ac4(0x3d4)]['IS'],a[_0x221ac4(0x3d4)]['IS_NOT']];default:return[a[_0x221ac4(0x3d4)]['IS'],a[_0x221ac4(0x3d4)][_0x221ac4(0x1d6)],a['BaseFilterOperator'][_0x221ac4(0x1c6)],a['BaseFilterOperator'][_0x221ac4(0x4d6)],..._0x46d628];}}function Gt(_0x33b4b2){const _0x3d51f6=_0x10fa58;return _0x33b4b2?_0x33b4b2[_0x3d51f6(0x469)]===a[_0x3d51f6(0x466)][_0x3d51f6(0x20d)]?!0x1:Xt(_0x33b4b2['type'])?(0x0,a[_0x3d51f6(0x174)])()[_0x3d51f6(0x2ee)](_0x3d51f6(0x49e)):Qt(_0x33b4b2)?[]:'':'';}function Kt(_0x3400c0){const _0x29228d=_0x10fa58;return _0x3400c0!==a[_0x29228d(0x3d4)][_0x29228d(0x348)]&&_0x3400c0!==a[_0x29228d(0x3d4)]['IS_NOT_EMPTY'];}function qt(_0x1649d9){const _0x4b3bd3=_0x10fa58;var _0x18e121;return(Array[_0x4b3bd3(0x482)](_0x1649d9==null||(_0x18e121=_0x1649d9[_0x4b3bd3(0xfb)])==null?void 0x0:_0x18e121[_0x4b3bd3(0x28d)])?_0x1649d9[_0x4b3bd3(0xfb)][_0x4b3bd3(0x28d)]:[])[_0x4b3bd3(0x47e)]((_0x10725e,_0x3056d8)=>{const _0x5a041b=_0x4b3bd3;if(typeof _0x10725e=='string')return{'label':_0x10725e,'value':_0x10725e};if(!Jt(_0x10725e))return{'label':String(_0x3056d8+0x1),'value':String(_0x3056d8+0x1)};let _0x43e14e=_0x10725e,_0x5c89fd=String(_0x43e14e[_0x5a041b(0x4a1)]??_0x43e14e['id']??_0x3056d8+0x1),_0x1b3cab=String(_0x43e14e['id']??_0x5c89fd);return{'label':_0x5c89fd,'value':/^opt-\d+$/[_0x5a041b(0x304)](_0x1b3cab)?_0x5c89fd:_0x1b3cab};});}function Jt(_0x2a8a75){return typeof _0x2a8a75=='object'&&!!_0x2a8a75;}function Yt(_0xd31f77,_0x1fcef6,_0x2690c6){const _0xf48ba7=_0x10fa58;let _0x40e8f5=JSON[_0xf48ba7(0x129)](_0x1fcef6);return _0x40e8f5+'-'+_0xd31f77[_0xf48ba7(0x1f3)](0x0,_0x2690c6)[_0xf48ba7(0x3fa)](_0x5c2db6=>JSON[_0xf48ba7(0x129)](_0x5c2db6)===_0x40e8f5)[_0xf48ba7(0x416)];}function Xt(_0x315dea){const _0x141cdd=_0x10fa58;return _0x315dea===a[_0x141cdd(0x466)][_0x141cdd(0x3ef)]||_0x315dea===a[_0x141cdd(0x466)][_0x141cdd(0x415)]||_0x315dea===a[_0x141cdd(0x466)]['UpdatedAt'];}function Zt(_0x548fa1){const _0x1cecbd=_0x10fa58;return _0x548fa1===a[_0x1cecbd(0x466)][_0x1cecbd(0x17a)]||_0x548fa1===a[_0x1cecbd(0x466)][_0x1cecbd(0x12f)]||_0x548fa1===a['BaseFieldType'][_0x1cecbd(0x193)]||_0x548fa1===a['BaseFieldType']['Rating'];}function Qt(_0x2893b2){const _0xd3626a=_0x10fa58;var _0x534752;return(_0x2893b2==null?void 0x0:_0x2893b2['type'])===a[_0xd3626a(0x466)][_0xd3626a(0x425)]||(_0x2893b2==null?void 0x0:_0x2893b2['type'])===a['BaseFieldType'][_0xd3626a(0x2a0)]||(_0x2893b2==null?void 0x0:_0x2893b2[_0xd3626a(0x469)])===a[_0xd3626a(0x466)][_0xd3626a(0x477)]&&((_0x534752=_0x2893b2['config'])==null?void 0x0:_0x534752[_0xd3626a(0x28a)])===!0x0;}function $t({base:_0x4cafb3,chartRuntime:_0x2b0340,onChange:_0x33178c,onClose:_0x126628,onSelectBackgroundImage:_0x336e47,onSelectImage:_0x17fa58,unitId:_0x3891be,widget:_0xcb44db}){const _0x315d44=_0x10fa58;let _0xabb1e2=(0x0,m[_0x315d44(0x162)])(a[_0x315d44(0x464)]),_0x55a7c1=(0x0,m['useDependency'])(a[_0x315d44(0x17c)]),_0x1902ef=_0x4cafb3['getSnapshot'](),_0x31f0d4=_0x315d44(0x3ce)in _0xcb44db?_0x1902ef[_0x315d44(0x19e)][_0xcb44db[_0x315d44(0x3ce)]]:void 0x0,_0x2c26d0=_0xcb44db[_0x315d44(0x469)]===e[_0x315d44(0x27e)][_0x315d44(0x40f)]?_0x31f0d4==null?void 0x0:_0x31f0d4[_0x315d44(0x1d2)][_0xcb44db[_0x315d44(0x4c0)]]:void 0x0,_0x579034=_0x55a7c1['t'](sn(_0xcb44db));return(0x0,g[_0x315d44(0x402)])('aside',{'data-dashboard-inspector':!0x0,'className':_0x315d44(0x152),'children':[(0x0,g[_0x315d44(0x402)])(_0x315d44(0x48b),{'className':_0x315d44(0x45d),'children':[(0x0,g[_0x315d44(0x12b)])('h3',{'className':_0x315d44(0xbf),'children':_0x579034}),(0x0,g[_0x315d44(0x12b)])(f['Button'],{'type':_0x315d44(0x396),'size':'small','variant':_0x315d44(0x2fe),'aria-label':_0x55a7c1['t']('bases-dashboard-ui.dashboardInspector.close'),'onClick':_0x126628,'children':(0x0,g[_0x315d44(0x12b)])(s[_0x315d44(0x3c8)],{})})]}),_0xcb44db[_0x315d44(0x469)]===e[_0x315d44(0x27e)][_0x315d44(0x40f)]&&(on(_0x2c26d0)&&_0x2b0340?(0x0,g[_0x315d44(0x12b)])(Nt,{'runtime':_0x2b0340,'sourceChart':_0x2c26d0[_0x315d44(0xfb)][_0x315d44(0x1a8)],'sourceName':((_0x31f0d4==null?void 0x0:_0x31f0d4[_0x315d44(0x4a1)])??'')+_0x315d44(0x145)+_0x2c26d0[_0x315d44(0x4a1)],'widget':_0xcb44db,'onChange':_0x33178c,'onEditData':()=>{const _0x2db7e5=_0x315d44;_0xabb1e2[_0x2db7e5(0x32d)](t[_0x2db7e5(0x1af)]['id'],{'unitId':_0x3891be,'tableId':_0xcb44db['tableId'],'viewId':_0xcb44db[_0x2db7e5(0x4c0)]})['catch'](()=>void 0x0);}}):(0x0,g[_0x315d44(0x12b)])(rn,{'message':on(_0x2c26d0)?_0x55a7c1['t'](_0x315d44(0x103)):_0x55a7c1['t']('bases-dashboard-ui.dashboardInspector.sourceUnavailable')})),_0xcb44db['type']===e['BaseDashboardWidgetType'][_0x315d44(0x3f1)]&&(0x0,g[_0x315d44(0x12b)])(It,{'base':_0x4cafb3,'widget':_0xcb44db,'onChange':_0x33178c,'onSelectBackgroundImage':_0x336e47}),_0xcb44db[_0x315d44(0x469)]===e[_0x315d44(0x27e)][_0x315d44(0x177)]&&(0x0,g['jsx'])(tn,{'base':_0x4cafb3,'onChange':_0x33178c,'widget':_0xcb44db}),_0xcb44db['type']===e[_0x315d44(0x27e)][_0x315d44(0x2a7)]&&(0x0,g[_0x315d44(0x12b)])(nn,{'onChange':_0x33178c,'widget':_0xcb44db}),_0xcb44db[_0x315d44(0x469)]===e['BaseDashboardWidgetType'][_0x315d44(0x3e9)]&&(0x0,g[_0x315d44(0x12b)])(en,{'onChange':_0x33178c,'onSelectImage':_0x17fa58,'widget':_0xcb44db})]});}function en({onChange:_0x3c10e0,onSelectImage:_0x150af5,widget:_0x4d32ff}){const _0x1b0970=_0x10fa58;let _0x440146=(0x0,m[_0x1b0970(0x162)])(a[_0x1b0970(0x17c)]);return(0x0,g['jsxs'])(_0x1b0970(0x159),{'className':_0x1b0970(0x3f3),'children':[(0x0,g[_0x1b0970(0x402)])(f['Button'],{'className':_0x1b0970(0x424),'onClick':()=>_0x150af5()[_0x1b0970(0x46e)](_0xe8d7e4=>_0xe8d7e4&&_0x3c10e0({..._0x4d32ff,'source':_0xe8d7e4[_0x1b0970(0x133)],'sourceType':_0xe8d7e4[_0x1b0970(0x248)],'alt':_0xe8d7e4[_0x1b0970(0x4a1)]}))[_0x1b0970(0x1f0)](()=>void 0x0),'children':[(0x0,g[_0x1b0970(0x12b)])(s[_0x1b0970(0x32c)],{}),_0x440146['t'](_0x1b0970(0x31a))]}),(0x0,g[_0x1b0970(0x402)])('label',{'className':_0x1b0970(0x3b2),'children':[(0x0,g[_0x1b0970(0x12b)])(_0x1b0970(0x408),{'children':_0x440146['t']('bases-dashboard-ui.dashboardInspector.backgroundImage')}),(0x0,g[_0x1b0970(0x12b)])(f[_0x1b0970(0x36e)],{'items':[{'value':_0x1b0970(0x2d7),'label':_0x440146['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x1b0970(0x475),'label':_0x440146['t']('bases-dashboard-ui.dashboardInspector.repeat')},{'value':_0x1b0970(0x1c4),'label':_0x440146['t'](_0x1b0970(0x37f))}],'value':_0x4d32ff[_0x1b0970(0xe5)]??_0x1b0970(0x2d7),'onChange':_0x3fb1d8=>_0x3c10e0({..._0x4d32ff,'displayMode':_0x3fb1d8})[_0x1b0970(0x1f0)](()=>void 0x0)})]})]});}function tn({base:_0x3d5ee8,onChange:_0x36e34e,widget:_0x144847}){const _0x43156b=_0x10fa58;let _0x32b442=_0x3d5ee8['getSnapshot']()[_0x43156b(0x19e)][_0x144847['tableId']],_0x3ed3a5=_0x32b442==null?void 0x0:_0x32b442[_0x43156b(0x171)][_0x43156b(0x315)](_0x171699=>_0x32b442['views'][_0x171699]),_0x5483d3=_0x3ed3a5?_0x32b442==null?void 0x0:_0x32b442[_0x43156b(0x1d2)][_0x3ed3a5]:void 0x0,_0x4352ea=_0x32b442&&_0x5483d3?(0x0,t['toMenuFields'])(_0x32b442,_0x5483d3):[];return(0x0,g[_0x43156b(0x12b)])(zt,{'fields':_0x4352ea,'filter':_0x144847['filter'],'onChange':_0x245773=>_0x36e34e({..._0x144847,'filter':_0x245773})[_0x43156b(0x1f0)](()=>void 0x0),'onClear':()=>_0x36e34e({..._0x144847,'filter':null})[_0x43156b(0x1f0)](()=>void 0x0)});}function nn({onChange:_0x496145,widget:_0x3f38ac}){const _0x5b3709=_0x10fa58;let _0x44cc75=(0x0,m[_0x5b3709(0x162)])(a[_0x5b3709(0x17c)]),_0x3ac2cd=(0x0,m[_0x5b3709(0x162)])(a[_0x5b3709(0x45a)]),_0x52150e=(0x0,m[_0x5b3709(0x3e1)])(()=>_0x3ac2cd['currentTheme$'],_0x3ac2cd[_0x5b3709(0x320)](),!0x1,[_0x3ac2cd]),_0x203e0a=oe(_0x3f38ac),_0x1d8c0b=_0x34b621=>_0x496145({..._0x3f38ac,'appearance':{..._0x203e0a,..._0x34b621}})['catch'](()=>void 0x0);return(0x0,g['jsxs'])(_0x5b3709(0x159),{'className':'univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','children':[(0x0,g['jsx'])(f[_0x5b3709(0x230)],{'defaultValue':U(_0x3f38ac['document']),'rows':0x8,'onBlur':_0x35b798=>_0x496145({..._0x3f38ac,'document':se(_0x3f38ac[_0x5b3709(0x29d)],_0x35b798[_0x5b3709(0x2d9)][_0x5b3709(0x16c)])})[_0x5b3709(0x1f0)](()=>void 0x0)}),(0x0,g['jsx'])(n['ChartColorField'],{'emptyLabel':_0x44cc75['t'](_0x5b3709(0x329)),'label':_0x44cc75['t'](_0x5b3709(0x329)),'pickerFallbackValue':_0x52150e[_0x5b3709(0x14e)][0x0],'resetLabel':_0x44cc75['t'](_0x5b3709(0x2b9)),'value':_0x203e0a[_0x5b3709(0x49d)]??null,'onChange':_0x59473c=>_0x1d8c0b({'backgroundColor':_0x59473c??void 0x0})}),(0x0,g['jsx'])(n[_0x5b3709(0x480)],{'emptyLabel':_0x44cc75['t'](_0x5b3709(0x2d5)),'label':_0x44cc75['t'](_0x5b3709(0x2d5)),'pickerFallbackValue':_0x52150e[_0x5b3709(0x14e)][0x3e8],'resetLabel':_0x44cc75['t']('bases-dashboard-ui.dashboardInspector.reset'),'value':_0x203e0a[_0x5b3709(0xcf)]??null,'onChange':_0x587686=>_0x1d8c0b({'textColor':_0x587686??void 0x0})}),(0x0,g['jsx'])(an,{'label':_0x44cc75['t'](_0x5b3709(0x18b)),'children':(0x0,g[_0x5b3709(0x12b)])(f[_0x5b3709(0x36e)],{'items':[{'value':_0x5b3709(0x22a),'label':_0x44cc75['t'](_0x5b3709(0x1a4))},{'value':_0x5b3709(0x3ca),'label':_0x44cc75['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':_0x5b3709(0x3b4),'label':_0x44cc75['t'](_0x5b3709(0x125))}],'value':_0x203e0a['alignment'],'onChange':_0x144d0c=>_0x1d8c0b({'alignment':_0x144d0c})})}),(0x0,g[_0x5b3709(0x402)])(an,{'label':_0x44cc75['t'](_0x5b3709(0x23c)),'children':[(0x0,g['jsx'])(f[_0x5b3709(0x36e)],{'items':[{'value':'auto','label':_0x44cc75['t'](_0x5b3709(0x1f7))},{'value':_0x5b3709(0x14d),'label':_0x44cc75['t'](_0x5b3709(0x1ad))}],'value':_0x203e0a[_0x5b3709(0x456)],'onChange':_0x423a2f=>_0x1d8c0b({'fontSizeMode':_0x423a2f})}),_0x203e0a[_0x5b3709(0x456)]===_0x5b3709(0x14d)&&(0x0,g[_0x5b3709(0x12b)])(f[_0x5b3709(0x11d)],{'className':'univer-mt-2','min':0xa,'max':0x78,'value':_0x203e0a[_0x5b3709(0x44d)],'onChange':_0x5b1df1=>_0x1d8c0b({'fontSize':_0x5b1df1??0x12,'fontSizeMode':'custom'})})]})]});}function rn({message:_0x17bef6}){const _0x4ff907=_0x10fa58;return(0x0,g[_0x4ff907(0x12b)])(_0x4ff907(0x159),{'className':_0x4ff907(0x34b),'children':_0x17bef6});}function an({children:_0xad5f17,label:_0x574515}){const _0x5ca778=_0x10fa58;return(0x0,g['jsxs'])(_0x5ca778(0x159),{'role':_0x5ca778(0x3e3),'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'])(_0x5ca778(0x408),{'children':_0x574515}),_0xad5f17]});}function on(_0x4183d9){const _0xff00bd=_0x10fa58;return(_0x4183d9==null?void 0x0:_0x4183d9['type'])===a[_0xff00bd(0x22d)][_0xff00bd(0x48c)]&&typeof _0x4183d9[_0xff00bd(0xfb)]==_0xff00bd(0x334)&&_0x4183d9[_0xff00bd(0xfb)]!==null&&_0xff00bd(0x2c2)in _0x4183d9[_0xff00bd(0xfb)]&&'chart'in _0x4183d9[_0xff00bd(0xfb)];}function sn(_0xd01ebf){const _0x4aaeed=_0x10fa58;switch(_0xd01ebf['type']){case e[_0x4aaeed(0x27e)][_0x4aaeed(0x40f)]:return _0x4aaeed(0x278);case e[_0x4aaeed(0x27e)][_0x4aaeed(0x177)]:return _0x4aaeed(0x4a6);case e['BaseDashboardWidgetType'][_0x4aaeed(0x2a7)]:return _0x4aaeed(0x384);case e['BaseDashboardWidgetType'][_0x4aaeed(0x3e9)]:return _0x4aaeed(0x443);case e[_0x4aaeed(0x27e)][_0x4aaeed(0x3f1)]:return'bases-dashboard-ui.dashboard.formulaShape';}}function cn({onDelete:_0x5c5215,onEdit:_0x36024c}){const _0x576eaf=_0x10fa58;let _0x4f1b6b=(0x0,m['useDependency'])(a[_0x576eaf(0x17c)]),_0x2d272d=_0x4f1b6b['t'](_0x576eaf(0x48f)),_0x411c4b=_0x4f1b6b['t'](_0x576eaf(0x289)),_0x2aee31=_0x4f1b6b['t'](_0x576eaf(0x290));return(0x0,g[_0x576eaf(0x12b)])(f['DropdownMenu'],{'items':[{'type':_0x576eaf(0x2f6),'children':(0x0,g[_0x576eaf(0x402)])('span',{'className':_0x576eaf(0x11f),'children':[(0x0,g[_0x576eaf(0x12b)])(s[_0x576eaf(0x2d0)],{'className':_0x576eaf(0x36c),'aria-hidden':_0x576eaf(0x1c5)}),(0x0,g[_0x576eaf(0x12b)])(_0x576eaf(0x408),{'children':_0x2d272d})]}),'onSelect':_0x36024c},{'type':_0x576eaf(0x441)},{'type':_0x576eaf(0x2f6),'variant':_0x576eaf(0x450),'children':(0x0,g[_0x576eaf(0x402)])('span',{'className':_0x576eaf(0x11f),'children':[(0x0,g[_0x576eaf(0x12b)])(s[_0x576eaf(0x2ae)],{'className':_0x576eaf(0x36c),'aria-hidden':'true'}),(0x0,g[_0x576eaf(0x12b)])(_0x576eaf(0x408),{'children':_0x411c4b})]}),'onSelect':_0x5c5215}],'children':(0x0,g[_0x576eaf(0x12b)])(f[_0x576eaf(0x438)],{'type':'button','size':'small','variant':_0x576eaf(0x2fe),'title':_0x2aee31,'aria-label':_0x2aee31,'className':_0x576eaf(0x1ed),'children':(0x0,g[_0x576eaf(0x12b)])(s[_0x576eaf(0x330)],{'className':'univer-size-4','aria-hidden':'true'})})});}function ln({dashboardId:_0x1e4ca9,presentation:_0x94c57e=!0x1,unitId:_0x200efe}){const _0x27be07=_0x10fa58;let _0x310ee8=(0x0,m[_0x27be07(0x162)])(a[_0x27be07(0x464)]),_0x5a673c=(0x0,m[_0x27be07(0x162)])(u[_0x27be07(0x4a5)]),_0x124ad0=(0x0,m['useDependency'])(a['IImageIoService']),_0x1ef5c0=(0x0,m[_0x27be07(0x162)])(a[_0x27be07(0x15c)]),_0x277788=(0x0,m[_0x27be07(0x162)])(a['LocaleService']),_0x3a5489=(0x0,m[_0x27be07(0x162)])(e['BaseDashboardResourceService']),_0x3294be=(0x0,m[_0x27be07(0x162)])(a['IUndoRedoService']),_0x4be07b=(0x0,h[_0x27be07(0xfd)])(null),[_0x268edc,_0x284910]=(0x0,h[_0x27be07(0x1cc)])(!0x1),[_0x5b2c0f,_0x4f7908]=(0x0,h[_0x27be07(0x1cc)])(),[_0x2ede61,_0x3cb51b]=(0x0,h[_0x27be07(0x1cc)])(!0x1),[_0x50edef,_0x3a5f35]=(0x0,h[_0x27be07(0x1cc)])(()=>new Map()),_0x5e3a93=(0x0,h[_0x27be07(0xbd)])((_0x3d8924,_0x4c2d08)=>{_0x3a5f35(_0x505cc9=>{const _0x2be013=_0x16b2;let _0x555510=new Map(_0x505cc9);return _0x4c2d08?_0x555510[_0x2be013(0x382)](_0x3d8924,_0x4c2d08):_0x555510[_0x2be013(0x113)](_0x3d8924),_0x555510;});},[]),_0x4e99b7=(0x0,m['useObservable'])(()=>_0x3a5489[_0x27be07(0x483)][_0x27be07(0x417)]((0x0,c[_0x27be07(0x47e)])(()=>_0x3a5489[_0x27be07(0x13c)](_0x200efe,_0x1e4ca9))),_0x3a5489[_0x27be07(0x13c)](_0x200efe,_0x1e4ca9),!0x1,[_0x1e4ca9,_0x3a5489,_0x200efe]),_0x572a69=_0x1ef5c0[_0x27be07(0x1d4)](_0x200efe,a[_0x27be07(0x17b)][_0x27be07(0x4d1)]),_0x4195f5=(0x0,m[_0x27be07(0x3e1)])(()=>_0x3294be['undoRedoStatus$'],{'undos':0x0,'redos':0x0},!0x1,[_0x3294be]),_0x1b2d90=w(_0x200efe,_0x1e4ca9);if((0x0,h[_0x27be07(0x1a9)])(()=>{const _0x401933=_0x27be07;_0x1ef5c0[_0x401933(0x3c9)](_0x200efe),_0x1ef5c0['focusUnit'](_0x200efe);},[_0x1ef5c0,_0x200efe]),(0x0,h[_0x27be07(0x1a9)])(()=>{const _0x1c0ac2=_0x27be07;let _0x2e1817=_0x4be07b[_0x1c0ac2(0x2c3)],_0xfb1f58=_0x2e1817==null?void 0x0:_0x2e1817['ownerDocument'];if(!_0x2e1817||!_0xfb1f58)return;let _0x537b07=()=>_0x3cb51b(_0xfb1f58[_0x1c0ac2(0x3d6)]===_0xfb1f58[_0x1c0ac2(0x41d)]),_0x22f826=_0x269f50=>{const _0x15e429=_0x1c0ac2;_0x269f50[_0x15e429(0x479)]==='Escape'&&!_0x269f50['defaultPrevented']&&_0xfb1f58['fullscreenElement']===_0xfb1f58[_0x15e429(0x41d)]&&_0xfb1f58['exitFullscreen']()[_0x15e429(0x1f0)](_0x537b07);};return _0xfb1f58['addEventListener'](_0x1c0ac2(0x256),_0x537b07),_0xfb1f58[_0x1c0ac2(0x389)]('keydown',_0x22f826),()=>{const _0x20846f=_0x1c0ac2;_0xfb1f58[_0x20846f(0x16e)](_0x20846f(0x256),_0x537b07),_0xfb1f58[_0x20846f(0x16e)](_0x20846f(0x2f1),_0x22f826);};},[]),!_0x4e99b7||!_0x572a69)return null;let _0x55bea3=_0x538d37=>_0x310ee8[_0x27be07(0x32d)](e[_0x27be07(0x104)]['id'],{'unitId':_0x200efe,'dashboardId':_0x1e4ca9,'widget':_0x538d37})[_0x27be07(0x1f0)](()=>void 0x0),_0x3eec00=(_0x1f73c7,_0x58507c,_0x502fb7)=>{const _0x3d9fa4=_0x27be07;let _0x489706=Math['max'](0x0,..._0x4e99b7[_0x3d9fa4(0x4c8)][_0x3d9fa4(0x226)](_0x199aa7=>{const _0x52425a=_0x3d9fa4;var _0x24fe29;let _0x53606c=(_0x24fe29=_0x4e99b7[_0x52425a(0x1bd)][_0x199aa7])==null?void 0x0:_0x24fe29[_0x52425a(0x42b)];return _0x53606c?[_0x53606c[_0x52425a(0x1e6)]+_0x53606c[_0x52425a(0x44e)]]:[];})),_0x4f38c8=_0x3d9fa4(0xf6)+(0x0,a[_0x3d9fa4(0x176)])(0x8),_0x24233e={'column':0x0,'row':_0x489706,'columnSpan':_0x58507c,'rowSpan':_0x502fb7};switch(_0x1f73c7[_0x3d9fa4(0x469)]){case e[_0x3d9fa4(0x27e)][_0x3d9fa4(0x40f)]:return _0x55bea3({..._0x1f73c7,'id':_0x4f38c8,'layout':_0x24233e});case e[_0x3d9fa4(0x27e)][_0x3d9fa4(0x177)]:return _0x55bea3({..._0x1f73c7,'id':_0x4f38c8,'layout':_0x24233e});case e['BaseDashboardWidgetType']['Text']:return _0x55bea3({..._0x1f73c7,'id':_0x4f38c8,'layout':_0x24233e});case e['BaseDashboardWidgetType']['Image']:return _0x55bea3({..._0x1f73c7,'id':_0x4f38c8,'layout':_0x24233e});case e[_0x3d9fa4(0x27e)][_0x3d9fa4(0x3f1)]:return _0x55bea3({..._0x1f73c7,'id':_0x4f38c8,'layout':_0x24233e});}},_0x5b038b=_0x572a69[_0x27be07(0x47d)](),_0x1d8a37=_0x5b038b[_0x27be07(0x25a)]['flatMap'](_0x467197=>{const _0x5e564b=_0x27be07;let _0xa4dbcb=_0x5b038b[_0x5e564b(0x19e)][_0x467197];if(!_0xa4dbcb)return[];let _0x4287ab=_0xa4dbcb[_0x5e564b(0x171)][_0x5e564b(0x226)](_0x1c0f7e=>{const _0x19e367=_0x5e564b;let _0x4b9fdc=_0xa4dbcb[_0x19e367(0x1d2)][_0x1c0f7e];return _n(_0x4b9fdc)?[{'type':'item','children':_0x4b9fdc[_0x19e367(0x4a1)],'onSelect':()=>_0x3eec00({'type':e[_0x19e367(0x27e)]['PivotChart'],'tableId':_0x467197,'pivotViewId':_0x1c0f7e,'chart':{..._0x4b9fdc[_0x19e367(0xfb)]['chart']}},0x6,0xa)}]:[];});return[{'type':_0x5e564b(0x2c0),'children':_0xa4dbcb['name'],'options':[..._0x4287ab,..._0x4287ab[_0x5e564b(0x416)]?[{'type':_0x5e564b(0x441)}]:[],{'type':_0x5e564b(0x2f6),'children':_0x277788['t']('bases-dashboard-ui.dashboard.tableFilter'),'onSelect':()=>_0x3eec00({'type':e[_0x5e564b(0x27e)][_0x5e564b(0x177)],'tableId':_0x467197,'filter':null},0x6,0x8)}]}];}),_0x165ef8=[..._0x1d8a37,..._0x1d8a37[_0x27be07(0x416)]?[{'type':_0x27be07(0x441)}]:[],{'type':_0x27be07(0x2f6),'children':_0x277788['t'](_0x27be07(0x384)),'onSelect':()=>_0x3eec00({'type':e[_0x27be07(0x27e)]['Text'],'document':pn()},0x4,0x6)},{'type':_0x27be07(0x2f6),'children':_0x277788['t']('bases-dashboard-ui.dashboard.image'),'onSelect':()=>mn(_0x5a673c)['then'](_0x3cd994=>_0x3cd994&&_0x3eec00({'type':e[_0x27be07(0x27e)][_0x27be07(0x3e9)],'source':_0x3cd994['source'],'sourceType':_0x3cd994[_0x27be07(0x248)],'alt':_0x3cd994['name'],'displayMode':_0x27be07(0x2d7)},0x4,0x6))},{'type':_0x27be07(0x2f6),'children':_0x277788['t'](_0x27be07(0x4d0)),'onSelect':()=>{const _0x298b35=_0x27be07;let _0x1fc029=_0x5b038b[_0x298b35(0x25a)][_0x298b35(0x315)](_0x46c5d9=>_0x5b038b[_0x298b35(0x19e)][_0x46c5d9]);_0x1fc029&&_0x3eec00({'type':e[_0x298b35(0x27e)]['FormulaShape'],'tableId':_0x1fc029,'shapeType':d[_0x298b35(0x42d)]['RoundRect'],'shapeData':(0x0,i[_0x298b35(0x15f)])(),'description':_0x277788['t']('bases-dashboard-ui.dashboard.formulaShape')},0x4,0x6);}}],_0x4dfdb8=_0x5b2c0f?_0x4e99b7[_0x27be07(0x1bd)][_0x5b2c0f]:void 0x0,_0x2077c6=async()=>{const _0xd6564a=_0x27be07;let _0x2c990f=_0x4be07b[_0xd6564a(0x2c3)];if(!_0x2c990f)return;let _0x1e0196=_0x2c990f[_0xd6564a(0x2c9)];_0x1e0196['fullscreenElement']===_0x1e0196[_0xd6564a(0x41d)]?await _0x1e0196[_0xd6564a(0x47f)]():await _0x1e0196[_0xd6564a(0x41d)][_0xd6564a(0x2c1)]();},_0x5d2cfe=_0x94c57e||_0x2ede61,_0x1c4367=_0x1b2d90&&!_0x5d2cfe;return(0x0,g[_0x27be07(0x402)])('div',{'ref':_0x4be07b,'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'+(_0x2ede61?_0x27be07(0x458):_0x27be07(0x132))+_0x27be07(0x18e),'children':[!_0x5d2cfe&&(0x0,g[_0x27be07(0x402)])('header',{'className':_0x27be07(0x410),'children':[(0x0,g[_0x27be07(0x12b)])(s[_0x27be07(0x4d5)],{'className':'univer-size-5\x20univer-text-primary-600'}),(0x0,g['jsx'])('h2',{'className':'univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','children':_0x4e99b7[_0x27be07(0x4a1)]}),(0x0,g[_0x27be07(0x12b)])(m['ObjectPermissionButton'],{'target':{'unitId':_0x200efe,'objectId':(0x0,l[_0x27be07(0x156)])(_0x1e4ca9),'objectType':p[_0x27be07(0x16a)]['BaseDashboard']},'name':_0x4e99b7[_0x27be07(0x4a1)],'commandId':l[_0x27be07(0x370)]['id'],'exists':()=>!!_0x3a5489[_0x27be07(0x13c)](_0x200efe,_0x1e4ca9)},_0x200efe+'/'+_0x1e4ca9),(0x0,g['jsx'])(t[_0x27be07(0x307)],{'unitId':_0x200efe}),(0x0,g[_0x27be07(0x12b)])(f[_0x27be07(0x438)],{'type':'button','size':_0x27be07(0x274),'variant':_0x27be07(0x2fe),'aria-label':_0x277788['t']('bases-dashboard-ui.dashboard.undo'),'disabled':!_0x1b2d90||_0x4195f5['undos']===0x0,'onClick':()=>_0x310ee8['executeCommand'](a['UndoCommand']['id'])['catch'](()=>void 0x0),'children':(0x0,g[_0x27be07(0x12b)])(s[_0x27be07(0x31f)],{})}),(0x0,g[_0x27be07(0x12b)])(f[_0x27be07(0x438)],{'type':_0x27be07(0x396),'size':_0x27be07(0x274),'variant':_0x27be07(0x2fe),'aria-label':_0x277788['t']('bases-dashboard-ui.dashboard.redo'),'disabled':!_0x1b2d90||_0x4195f5[_0x27be07(0x23a)]===0x0,'onClick':()=>_0x310ee8[_0x27be07(0x32d)](a['RedoCommand']['id'])[_0x27be07(0x1f0)](()=>void 0x0),'children':(0x0,g[_0x27be07(0x12b)])(s[_0x27be07(0x187)],{})}),(0x0,g[_0x27be07(0x12b)])(f[_0x27be07(0x438)],{'type':_0x27be07(0x396),'size':_0x27be07(0x274),'variant':'text','aria-label':_0x277788['t'](_0x27be07(0x306)),'onClick':()=>_0x2077c6()[_0x27be07(0x1f0)](()=>void 0x0),'children':(0x0,g[_0x27be07(0x12b)])(s[_0x27be07(0x3d2)],{})}),(0x0,g[_0x27be07(0x12b)])(f[_0x27be07(0x1c9)],{'items':_0x165ef8,'children':(0x0,g[_0x27be07(0x402)])(f[_0x27be07(0x438)],{'variant':_0x27be07(0x491),'disabled':!_0x1b2d90,'children':[(0x0,g[_0x27be07(0x12b)])(s[_0x27be07(0x32c)],{}),_0x277788['t'](_0x27be07(0x200))]})})]}),(0x0,g[_0x27be07(0x402)])('div',{'className':_0x27be07(0x3ac),'children':[(0x0,g['jsx'])(_0x27be07(0x159),{'className':_0x27be07(0x202),'children':(0x0,g[_0x27be07(0x12b)])(wt,{'dashboard':_0x4e99b7,'dragLabel':_0x277788['t'](_0x27be07(0x4ac)),'editable':_0x1c4367,'resizeLabel':_0x277788['t'](_0x27be07(0x498)),'widgetLabel':_0xa38bcb=>_0x277788['t'](gn(_0xa38bcb[_0x27be07(0x469)])),'selectedWidgetId':_0x1c4367?_0x5b2c0f:void 0x0,'onSelectWidget':_0x1c4367?_0x2a5efb=>{_0x4f7908(_0x2a5efb),_0x2a5efb||_0x284910(!0x1);}:void 0x0,'onLayoutsCommit':_0x432497=>{const _0x2c7fd1=_0x27be07;let _0x14e7b1={..._0x4e99b7[_0x2c7fd1(0x1bd)]};_0x432497[_0x2c7fd1(0x362)]((_0x4dd9d5,_0x348d1f)=>{let _0x4ffa21=_0x14e7b1[_0x348d1f];_0x4ffa21&&(_0x14e7b1[_0x348d1f]={..._0x4ffa21,'layout':_0x4dd9d5});}),_0x310ee8[_0x2c7fd1(0x32d)](e['UpdateBaseDashboardCommand']['id'],{'unitId':_0x200efe,'dashboard':{..._0x4e99b7,'widgets':_0x14e7b1}})['catch'](()=>void 0x0);},'renderWidget':_0x564eb4=>(0x0,g[_0x27be07(0x12b)])(un,{'base':_0x572a69,'dashboard':_0x4e99b7,'unitId':_0x200efe,'widget':_0x564eb4,'onChange':_0x55bea3,'onChartRuntimeChange':_0x5e3a93}),'renderWidgetActions':_0x27cd2f=>(0x0,g[_0x27be07(0x12b)])(cn,{'onEdit':()=>{_0x4f7908(_0x27cd2f['id']),_0x284910(!0x0);},'onDelete':()=>{const _0x165d1e=_0x27be07;_0x5b2c0f===_0x27cd2f['id']&&(_0x4f7908(void 0x0),_0x284910(!0x1)),_0x310ee8['executeCommand'](e[_0x165d1e(0x297)]['id'],{'unitId':_0x200efe,'dashboardId':_0x1e4ca9,'widgetId':_0x27cd2f['id']})[_0x165d1e(0x1f0)](()=>void 0x0);}})})}),_0x1c4367&&_0x268edc&&_0x4dfdb8&&(0x0,g[_0x27be07(0x12b)])($t,{'base':_0x572a69,'chartRuntime':_0x50edef['get'](_0x4dfdb8['id']),'unitId':_0x200efe,'widget':_0x4dfdb8,'onChange':_0x55bea3,'onClose':()=>_0x284910(!0x1),'onSelectBackgroundImage':()=>hn(_0x124ad0),'onSelectImage':()=>mn(_0x5a673c)})]})]});}function un({base:_0x1637b8,dashboard:_0x36dadb,onChange:_0x534f1b,onChartRuntimeChange:_0x32e8a7,unitId:_0x1953b7,widget:_0x1f7b18}){const _0x527636=_0x10fa58;let _0x4de161=(0x0,h[_0x527636(0x1d9)])(()=>_0x36dadb[_0x527636(0x4c8)][_0x527636(0x226)](_0x56db39=>{const _0x2679eb=_0x527636;let _0x5e20f5=_0x36dadb['widgets'][_0x56db39];return(_0x5e20f5==null?void 0x0:_0x5e20f5['type'])===e[_0x2679eb(0x27e)]['TableFilter']&&_0x5e20f5[_0x2679eb(0x3ce)]===(_0x2679eb(0x3ce)in _0x1f7b18?_0x1f7b18[_0x2679eb(0x3ce)]:'')&&_0x5e20f5[_0x2679eb(0x3fa)]?[_0x5e20f5['filter']]:[];}),[_0x36dadb,_0x1f7b18]);switch(_0x1f7b18[_0x527636(0x469)]){case e[_0x527636(0x27e)]['PivotChart']:return(0x0,g[_0x527636(0x12b)])(ie,{'filters':_0x4de161,'unitId':_0x1953b7,'widget':_0x1f7b18,'onRuntimeChange':_0x32e8a7});case e['BaseDashboardWidgetType']['TableFilter']:return(0x0,g[_0x527636(0x12b)])(Rt,{'fields':dn(_0x1637b8,_0x1f7b18[_0x527636(0x3ce)]),'filter':_0x1f7b18[_0x527636(0x3fa)],'onChange':_0x2adbc8=>_0x534f1b({..._0x1f7b18,'filter':_0x2adbc8})[_0x527636(0x1f0)](()=>void 0x0)});case e[_0x527636(0x27e)][_0x527636(0x2a7)]:return(0x0,g[_0x527636(0x12b)])(ce,{'widget':_0x1f7b18});case e[_0x527636(0x27e)][_0x527636(0x3e9)]:return(0x0,g['jsx'])(fn,{'widget':_0x1f7b18});case e['BaseDashboardWidgetType'][_0x527636(0x3f1)]:return(0x0,g[_0x527636(0x12b)])(M,{'dashboardId':_0x36dadb['id'],'unitId':_0x1953b7,'widget':_0x1f7b18});}}function dn(_0x3149bb,_0x1af542){const _0x355b0e=_0x10fa58;let _0x246111=_0x3149bb[_0x355b0e(0x47d)]()['tables'][_0x1af542],_0x52138e=_0x246111==null?void 0x0:_0x246111[_0x355b0e(0x171)]['find'](_0x2ea3b1=>_0x246111['views'][_0x2ea3b1]),_0x419e1c=_0x52138e?_0x246111==null?void 0x0:_0x246111[_0x355b0e(0x1d2)][_0x52138e]:void 0x0;return _0x246111&&_0x419e1c?(0x0,t[_0x355b0e(0x2ac)])(_0x246111,_0x419e1c):[];}function fn({widget:_0x28cdd3}){const _0xc0343b=_0x10fa58;let _0x583e41=(0x0,m['useDependency'])(u[_0xc0343b(0x4a5)]),[_0x4e44df,_0x1a850e]=(0x0,h[_0xc0343b(0x1cc)])(_0x28cdd3['sourceType']===a[_0xc0343b(0x24d)]['UUID']?'':_0x28cdd3['source']);return(0x0,h[_0xc0343b(0x1a9)])(()=>{const _0x359610=_0xc0343b;let _0x3bbd08=!0x0;return _0x583e41['getAttachmentUrl'](_0x28cdd3[_0x359610(0x133)],_0x28cdd3[_0x359610(0x248)])[_0x359610(0x46e)](_0x4165d7=>{_0x3bbd08&&_0x1a850e(_0x4165d7);})[_0x359610(0x1f0)](()=>void 0x0),()=>{_0x3bbd08=!0x1;};},[_0x583e41,_0x28cdd3[_0xc0343b(0x133)],_0x28cdd3[_0xc0343b(0x248)]]),_0x4e44df?(0x0,g[_0xc0343b(0x12b)])(_0xc0343b(0x159),{'role':_0x28cdd3[_0xc0343b(0x105)]?_0xc0343b(0x27c):void 0x0,'aria-label':_0x28cdd3[_0xc0343b(0x105)]||void 0x0,'data-dashboard-image':_0x28cdd3['id'],'className':_0xc0343b(0x49b),'style':E(_0x4e44df,_0x28cdd3[_0xc0343b(0xe5)])}):null;}function pn(){const _0x3e70e3=_0x10fa58;let _0x5c6c94=(0x0,a[_0x3e70e3(0xd2)])(new Set());return{'id':_0x3e70e3(0x1f5)+(0x0,a[_0x3e70e3(0x176)])(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x5c6c94}]},'documentStyle':{}};}function mn(_0x466a99){return new Promise(_0x1db6d2=>{const _0x130c17=_0x16b2;let _0x243cf7=document[_0x130c17(0xe3)](_0x130c17(0x439));_0x243cf7[_0x130c17(0x469)]=_0x130c17(0x282),_0x243cf7[_0x130c17(0x367)]=_0x130c17(0x321),_0x243cf7['addEventListener'](_0x130c17(0x454),()=>{const _0x365ef4=_0x130c17;var _0x3a0926;let _0x23464c=(_0x3a0926=_0x243cf7[_0x365ef4(0x3ee)])==null?void 0x0:_0x3a0926[0x0];_0x23464c?_0x466a99['saveAttachment'](_0x23464c)['then'](_0x328546=>{const _0x5e5433=_0x365ef4;!_0x328546['source']||_0x328546[_0x5e5433(0x248)]===void 0x0?_0x1db6d2(null):_0x1db6d2({'name':_0x328546[_0x5e5433(0x4a1)],'source':_0x328546[_0x5e5433(0x133)],'sourceType':_0x328546['sourceType']});})[_0x365ef4(0x1f0)](()=>_0x1db6d2(null)):_0x1db6d2(null);},{'once':!0x0}),_0x243cf7['click']();});}function hn(_0x322a23){return new Promise(_0x335916=>{const _0x40d989=_0x16b2;let _0x508642=document['createElement'](_0x40d989(0x439));_0x508642[_0x40d989(0x469)]=_0x40d989(0x282),_0x508642[_0x40d989(0x367)]=_0x40d989(0x321),_0x508642['addEventListener'](_0x40d989(0x454),()=>{const _0x1b6f3c=_0x40d989;var _0x558380;let _0x9474f0=(_0x558380=_0x508642['files'])==null?void 0x0:_0x558380[0x0];_0x9474f0?_0x322a23['saveImage'](_0x9474f0)[_0x1b6f3c(0x46e)](_0x173e49=>{const _0x62e2a7=_0x1b6f3c;if(!(_0x173e49!=null&&_0x173e49[_0x62e2a7(0x133)]))_0x335916(null);else{if(_0x173e49['base64Cache']){let _0x38a3b8=new Image();_0x38a3b8['src']=_0x173e49[_0x62e2a7(0x1dd)],_0x322a23[_0x62e2a7(0x241)](_0x173e49['source'],_0x173e49['imageSourceType'],_0x38a3b8);}_0x335916({'source':_0x173e49[_0x62e2a7(0x133)],'sourceType':_0x173e49[_0x62e2a7(0x13b)]});}})[_0x1b6f3c(0x1f0)](()=>_0x335916(null)):_0x335916(null);},{'once':!0x0}),_0x508642[_0x40d989(0x3d8)]();});}function gn(_0x22c66c){const _0x55dd9d=_0x10fa58;switch(_0x22c66c){case e[_0x55dd9d(0x27e)][_0x55dd9d(0x40f)]:return'bases-dashboard-ui.dashboard.pivotChart';case e[_0x55dd9d(0x27e)][_0x55dd9d(0x177)]:return'bases-dashboard-ui.dashboard.tableFilter';case e[_0x55dd9d(0x27e)][_0x55dd9d(0x2a7)]:return'bases-dashboard-ui.dashboard.text';case e[_0x55dd9d(0x27e)][_0x55dd9d(0x3e9)]:return _0x55dd9d(0x443);case e[_0x55dd9d(0x27e)][_0x55dd9d(0x3f1)]:return _0x55dd9d(0x4d0);}}function _n(_0x5c84eb){const _0x393e73=_0x10fa58;return(_0x5c84eb==null?void 0x0:_0x5c84eb[_0x393e73(0x469)])===a[_0x393e73(0x22d)]['Pivot']&&typeof _0x5c84eb['config']=='object'&&_0x5c84eb[_0x393e73(0xfb)]!==null&&_0x393e73(0x2c2)in _0x5c84eb[_0x393e73(0xfb)]&&_0x393e73(0x1a8)in _0x5c84eb[_0x393e73(0xfb)];}const vn=[{'area':y['PivotTableFiledAreaEnum'][_0x10fa58(0x16f)],'key':'filterFields','label':'bases-dashboard-ui.pivot.filters'},{'area':y[_0x10fa58(0x473)][_0x10fa58(0x1b3)],'key':_0x10fa58(0x3e5),'label':_0x10fa58(0x1ac)},{'area':y['PivotTableFiledAreaEnum']['Row'],'key':'rowFields','label':'bases-dashboard-ui.pivot.rows'},{'area':y[_0x10fa58(0x473)][_0x10fa58(0x3cd)],'key':'valueFields','label':_0x10fa58(0x32b)}],yn=[{'value':y['PivotSubtotalTypeEnum'][_0x10fa58(0x43f)],'localeKey':_0x10fa58(0x179)},{'value':y[_0x10fa58(0x235)][_0x10fa58(0x1da)],'localeKey':_0x10fa58(0x3ff)},{'value':y['PivotSubtotalTypeEnum'][_0x10fa58(0x214)],'localeKey':_0x10fa58(0x19f)},{'value':y[_0x10fa58(0x235)][_0x10fa58(0x420)],'localeKey':'bases-dashboard-ui.pivot.average'},{'value':y[_0x10fa58(0x235)][_0x10fa58(0x41b)],'localeKey':'bases-dashboard-ui.pivot.max'},{'value':y['PivotSubtotalTypeEnum']['min'],'localeKey':_0x10fa58(0x31b)},{'value':y[_0x10fa58(0x235)][_0x10fa58(0x3b9)],'localeKey':_0x10fa58(0x3f9)},{'value':y[_0x10fa58(0x235)][_0x10fa58(0x364)],'localeKey':_0x10fa58(0x2c7)},{'value':y[_0x10fa58(0x235)]['stdDevp'],'localeKey':_0x10fa58(0x1dc)},{'value':y[_0x10fa58(0x235)][_0x10fa58(0x276)],'localeKey':_0x10fa58(0x2a5)},{'value':y[_0x10fa58(0x235)][_0x10fa58(0x363)],'localeKey':'bases-dashboard-ui.pivot.variancePopulation'}];function bn(_0x40e899){const _0x3b061f=_0x10fa58;let {config:_0x4e0468,onChange:_0x35ed32,table:_0x1ea3c4}=_0x40e899,_0x38a329=(0x0,m['useDependency'])(a[_0x3b061f(0x17c)]),[_0x6ad5d8,_0x3106bb]=(0x0,h[_0x3b061f(0x1cc)])('fields'),[_0x469c7e,_0x3c5ab2]=(0x0,h['useState'])(''),[_0x32baaa,_0x3df44e]=(0x0,h[_0x3b061f(0x1cc)])(null),[_0x12ea5b,_0x381524]=(0x0,h['useState'])(null),[_0x4f9fed,_0x580fa3]=(0x0,h[_0x3b061f(0x1cc)])(null),[_0x170093,_0x4afbd9]=(0x0,h[_0x3b061f(0x1cc)])(null),_0x10a3e3=(0x0,h['useRef'])(null),_0x3b2adc=(0x0,h[_0x3b061f(0x1d9)])(()=>_0x1ea3c4['fieldOrder'][_0x3b061f(0x226)](_0x706de0=>{const _0x6af835=_0x3b061f;let _0x47ba54=_0x1ea3c4[_0x6af835(0x1aa)][_0x706de0];return _0x47ba54&&_0x47ba54['system']!==!0x0&&_0x47ba54['type']!==a[_0x6af835(0x466)][_0x6af835(0x161)]?[_0x47ba54]:[];})[_0x3b061f(0x3fa)](_0x201450=>_0x201450[_0x3b061f(0x4a1)][_0x3b061f(0x27d)]()[_0x3b061f(0x206)](_0x469c7e['trim']()['toLocaleLowerCase']())),[_0x469c7e,_0x1ea3c4]),_0x49437d=_0x12fcd3=>{const _0x16ff00=_0x3b061f;let _0x3891d8=(0x0,e[_0x16ff00(0x14a)])(_0x1ea3c4,_0x4e0468['pivot']);try{_0x12fcd3(_0x3891d8),_0x35ed32({'pivot':_0x3891d8['toJSON']()});}finally{_0x3891d8[_0x16ff00(0x312)]();}},_0x371ce3=(_0x2ae3ae,_0x42139a)=>{_0x32baaa&&(_0x49437d(_0xbbe2c7=>{const _0x256176=_0x16b2;if(_0x32baaa[_0x256176(0x3e2)]===_0x256176(0x224)){let _0x2cf3ab=_0xbbe2c7[_0x256176(0x3bd)](_0x32baaa['id']),_0x360ce3=_0x2cf3ab[_0x256176(0x257)]===_0x2ae3ae&&_0x2cf3ab[_0x256176(0x331)]<_0x42139a?_0x42139a-0x1:_0x42139a;_0xbbe2c7[_0x256176(0x4a3)](_0x32baaa['id'],_0x2ae3ae,_0x360ce3);}else On(_0xbbe2c7,_0x32baaa['id'],_0x2ae3ae,_0x42139a);}),_0x3df44e(null),_0x381524(null));};return(0x0,g[_0x3b061f(0x402)])(_0x3b061f(0x159),{'className':_0x3b061f(0x163),'children':[(0x0,g[_0x3b061f(0x12b)])(n[_0x3b061f(0x2eb)],{'ariaLabel':_0x38a329['t'](_0x3b061f(0x172)),'className':_0x3b061f(0x1e2),'items':[{'label':_0x38a329['t'](_0x3b061f(0x34f)),'panelId':'base-pivot-fields','value':_0x3b061f(0x1aa)},{'label':_0x38a329['t']('bases-dashboard-ui.pivot.options'),'panelId':_0x3b061f(0x333),'value':_0x3b061f(0x28d)}],'value':_0x6ad5d8,'onChange':_0x3106bb}),(0x0,g[_0x3b061f(0x12b)])('div',{'ref':_0x10a3e3,'className':(0x0,f[_0x3b061f(0x4b2)])(_0x3b061f(0x2a8),f[_0x3b061f(0xfc)]),'onDragOver':_0x1a6975=>{const _0x3ae7ed=_0x3b061f;let _0x1ff3fa=_0x10a3e3[_0x3ae7ed(0x2c3)];if(!_0x1ff3fa)return;let _0xbb93b7=_0x1ff3fa[_0x3ae7ed(0x360)]();_0x1a6975['clientY']<_0xbb93b7[_0x3ae7ed(0x381)]+0x30?_0x1ff3fa[_0x3ae7ed(0x1ba)]-=0x10:_0x1a6975['clientY']>_0xbb93b7[_0x3ae7ed(0x219)]-0x30&&(_0x1ff3fa[_0x3ae7ed(0x1ba)]+=0x10);},'children':_0x6ad5d8===_0x3b061f(0x28d)?(0x0,g[_0x3b061f(0x12b)])(Dn,{'config':_0x4e0468,'commit':_0x49437d}):(0x0,g[_0x3b061f(0x402)])('div',{'className':_0x3b061f(0x484),'children':[(0x0,g[_0x3b061f(0x402)])(_0x3b061f(0x159),{'children':[(0x0,g[_0x3b061f(0x12b)])(_0x3b061f(0x159),{'className':_0x3b061f(0x24c),'children':_0x38a329['t']('bases-dashboard-ui.pivot.sourceFields')}),(0x0,g['jsx'])(f[_0x3b061f(0x23f)],{'allowClear':!0x0,'slot':(0x0,g[_0x3b061f(0x12b)])(s[_0x3b061f(0x1fc)],{}),'value':_0x469c7e,'placeholder':_0x38a329['t']('bases-dashboard-ui.pivot.searchFields'),'onChange':_0x3c5ab2}),(0x0,g['jsx'])(_0x3b061f(0x159),{'className':_0x3b061f(0x1e5),'children':_0x3b2adc[_0x3b061f(0x47e)](_0x496d77=>(0x0,g[_0x3b061f(0x12b)])(xn,{'config':_0x4e0468,'field':_0x496d77,'onAdd':_0x692f43=>_0x49437d(_0x43e205=>On(_0x43e205,_0x496d77['id'],_0x692f43,_0x43e205['getFieldCountByArea'](_0x692f43))),'onCheckedChange':_0x4514ef=>_0x49437d(_0x24e7d3=>{const _0x591d11=_0x3b061f;let _0x3f8911=_0x24e7d3[_0x591d11(0x409)](_0x496d77['id']);if(!_0x4514ef)_0x3f8911[_0x591d11(0x362)](_0xb9b864=>_0x24e7d3['removeField'](_0xb9b864[_0x591d11(0xe4)]()));else{if(_0x3f8911[_0x591d11(0x416)]===0x0){let _0x41c1ac=An(_0x496d77)?y[_0x591d11(0x473)]['Value']:y['PivotTableFiledAreaEnum'][_0x591d11(0x3fd)];_0x24e7d3[_0x591d11(0x353)](_0x496d77['id'],_0x41c1ac);}}}),'onDragStart':()=>_0x3df44e({'kind':'source','id':_0x496d77['id']})},_0x496d77['id']))})]}),(0x0,g[_0x3b061f(0x12b)])(_0x3b061f(0x159),{'className':_0x3b061f(0x442),'children':vn['map'](_0xa5b92f=>(0x0,g[_0x3b061f(0x12b)])(Cn,{'area':_0xa5b92f[_0x3b061f(0x257)],'dropTarget':_0x12ea5b,'fields':_0x4e0468[_0x3b061f(0x2c2)][_0xa5b92f[_0x3b061f(0x479)]],'label':_0x38a329['t'](_0xa5b92f[_0x3b061f(0x298)]),'snapshot':_0x4e0468['pivot'],'onDragEnd':()=>{_0x3df44e(null),_0x381524(null);},'onDragStart':_0x2d189a=>_0x3df44e({'kind':_0x3b061f(0x224),'id':_0x2d189a,'area':_0xa5b92f[_0x3b061f(0x257)]}),'onDragOver':_0x562555=>_0x381524({'area':_0xa5b92f[_0x3b061f(0x257)],'index':_0x562555}),'onDrop':_0x4c2d97=>_0x371ce3(_0xa5b92f[_0x3b061f(0x257)],_0x4c2d97),'onFilter':_0x580fa3,'onRemove':_0x3f3c44=>_0x49437d(_0x28740e=>_0x28740e['removeField'](_0x3f3c44)),'onSettings':_0x4afbd9},_0xa5b92f[_0x3b061f(0x257)]))}),_0x4f9fed&&(0x0,g['jsx'])(Tn,{'fieldId':_0x4f9fed,'snapshot':_0x4e0468[_0x3b061f(0x2c2)],'table':_0x1ea3c4,'onCancel':()=>_0x580fa3(null),'onCommit':(_0x10a850,_0x90e0bc)=>{_0x49437d(_0x2f17dd=>{const _0x208226=_0x16b2;let _0x52b42e=_0x2f17dd[_0x208226(0xf5)](_0x4f9fed),_0x5709e1=(_0x52b42e==null?void 0x0:_0x52b42e[_0x208226(0x4a7)])??[];_0x2f17dd[_0x208226(0x15a)](_0x4f9fed,{'type':y[_0x208226(0x185)]['ManualFilter'],'list':_0x10a850,'isAll':_0x10a850[_0x208226(0x416)]===_0x5709e1[_0x208226(0x416)]}),_0x2f17dd[_0x208226(0x2c8)](_0x4f9fed,_0x90e0bc===void 0x0?void 0x0:{'type':_0x90e0bc});}),_0x580fa3(null);}},_0x4f9fed),_0x170093&&(0x0,g[_0x3b061f(0x12b)])(En,{'field':_0x4e0468[_0x3b061f(0x2c2)]['measure'][_0x170093],'onCancel':()=>_0x4afbd9(null),'onCommit':(_0x43bf72,_0x56bef7,_0x6ad826)=>{_0x49437d(_0x1a5926=>{const _0x249f6f=_0x16b2;_0x1a5926[_0x249f6f(0x313)](_0x170093,_0x43bf72),_0x1a5926[_0x249f6f(0x15d)](_0x170093,_0x56bef7),_0x1a5926[_0x249f6f(0x26d)](_0x170093,_0x6ad826||void 0x0);}),_0x4afbd9(null);}},_0x170093)]})})]});}function xn(_0x47a3cc){const _0xa35dab=_0x10fa58;let {config:_0x12fd6a,field:_0x532a56,onAdd:_0x8c1831,onCheckedChange:_0x2aae06,onDragStart:_0x467f25}=_0x47a3cc,_0x533e34=(0x0,m[_0xa35dab(0x162)])(a[_0xa35dab(0x17c)]),_0x238045=[...Object[_0xa35dab(0x20a)](_0x12fd6a['pivot'][_0xa35dab(0x116)]),...Object[_0xa35dab(0x20a)](_0x12fd6a[_0xa35dab(0x2c2)][_0xa35dab(0x4bf)])][_0xa35dab(0x4aa)](_0x3c63a1=>_0x3c63a1[_0xa35dab(0x36a)]===_0x532a56['id']),_0x48ec3b=vn['map'](_0x45224f=>({'type':_0xa35dab(0x2f6),'children':_0x533e34['t'](jn(_0x45224f[_0xa35dab(0x257)])),'onSelect':()=>_0x8c1831(_0x45224f[_0xa35dab(0x257)])}));return(0x0,g[_0xa35dab(0x402)])(_0xa35dab(0x159),{'draggable':!0x0,'className':_0xa35dab(0x26c),'onDragStart':_0x467f25,'children':[(0x0,g[_0xa35dab(0x12b)])(s['GripVerticalIcon'],{'className':_0xa35dab(0x154)}),(0x0,g[_0xa35dab(0x12b)])(f[_0xa35dab(0x20d)],{'checked':_0x238045,'onChange':_0x162ff5=>_0x2aae06(!!_0x162ff5)}),(0x0,g[_0xa35dab(0x12b)])(Sn,{'field':_0x532a56}),(0x0,g[_0xa35dab(0x12b)])('span',{'className':_0xa35dab(0x411),'children':_0x532a56['name']}),(0x0,g[_0xa35dab(0x12b)])(f[_0xa35dab(0x1c9)],{'align':_0xa35dab(0x30e),'items':_0x48ec3b,'children':(0x0,g[_0xa35dab(0x12b)])(_0xa35dab(0x408),{'className':'univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','children':(0x0,g['jsx'])(s[_0xa35dab(0x1e3)],{})})})]});}function Sn({field:_0x57bde8}){const _0x59c95e=_0x10fa58;return An(_0x57bde8)?(0x0,g[_0x59c95e(0x12b)])(s[_0x59c95e(0x166)],{'className':_0x59c95e(0x154)}):_0x57bde8[_0x59c95e(0x469)]===a['BaseFieldType'][_0x59c95e(0x3ef)]||_0x57bde8[_0x59c95e(0x469)]===a[_0x59c95e(0x466)][_0x59c95e(0x415)]||_0x57bde8[_0x59c95e(0x469)]===a[_0x59c95e(0x466)]['UpdatedAt']?(0x0,g[_0x59c95e(0x12b)])(s['CalendarIcon'],{'className':_0x59c95e(0x154)}):(0x0,g[_0x59c95e(0x12b)])(s[_0x59c95e(0x12c)],{'className':_0x59c95e(0x154)});}function Cn(_0x306aee){const _0x1b18d2=_0x10fa58;let {area:_0x25aab9,dropTarget:_0x13a3a1,fields:_0x56e868,label:_0x9daaf,snapshot:_0x5ff06d}=_0x306aee,_0x258319=(0x0,m[_0x1b18d2(0x162)])(a['LocaleService']);return(0x0,g[_0x1b18d2(0x402)])(_0x1b18d2(0x4d8),{'className':(0x0,f['clsx'])(_0x1b18d2(0x27f),f[_0x1b18d2(0x487)]),'onDragOver':_0x553299=>{const _0x282488=_0x1b18d2;_0x553299[_0x282488(0x44c)](),_0x306aee['onDragOver'](_0x56e868[_0x282488(0x416)]);},'onDrop':_0x2845b9=>{const _0x24786a=_0x1b18d2;_0x2845b9[_0x24786a(0x44c)](),_0x306aee[_0x24786a(0x19d)]((_0x13a3a1==null?void 0x0:_0x13a3a1[_0x24786a(0x257)])===_0x25aab9?_0x13a3a1[_0x24786a(0x331)]:_0x56e868[_0x24786a(0x416)]);},'children':[(0x0,g[_0x1b18d2(0x12b)])(_0x1b18d2(0x159),{'className':_0x1b18d2(0x356),'children':_0x9daaf}),(0x0,g[_0x1b18d2(0x402)])(_0x1b18d2(0x159),{'className':'univer-flex\x20univer-flex-col','children':[_0x56e868[_0x1b18d2(0x47e)]((_0x1c598f,_0x20e222)=>{const _0x5c39da=_0x1b18d2;let _0x48e241=_0x5ff06d[_0x5c39da(0x116)][_0x1c598f]??_0x5ff06d[_0x5c39da(0x4bf)][_0x1c598f];if(!_0x48e241)return null;let _0x572256=(_0x13a3a1==null?void 0x0:_0x13a3a1[_0x5c39da(0x257)])===_0x25aab9&&_0x13a3a1[_0x5c39da(0x331)]===_0x20e222;return(0x0,g['jsxs'])(_0x5c39da(0x159),{'onDragOver':_0x2842d7=>{const _0x5e488c=_0x5c39da;_0x2842d7['preventDefault'](),_0x2842d7['stopPropagation']();let _0x45f3fb=_0x2842d7[_0x5e488c(0x49f)][_0x5e488c(0x360)]();_0x306aee[_0x5e488c(0x2dc)](_0x20e222+ +(_0x2842d7[_0x5e488c(0x2b6)]>_0x45f3fb[_0x5e488c(0x381)]+_0x45f3fb[_0x5e488c(0x1ea)]/0x2));},'onDrop':_0x561747=>{const _0x502f2a=_0x5c39da;_0x561747[_0x502f2a(0x44c)](),_0x561747['stopPropagation'](),_0x306aee[_0x502f2a(0x19d)]((_0x13a3a1==null?void 0x0:_0x13a3a1['area'])===_0x25aab9?_0x13a3a1[_0x502f2a(0x331)]:_0x20e222);},'children':[_0x572256&&(0x0,g['jsx'])(_0x5c39da(0x159),{'className':_0x5c39da(0xf4)}),(0x0,g[_0x5c39da(0x12b)])(wn,{'area':_0x25aab9,'field':_0x48e241,'onDragEnd':_0x306aee[_0x5c39da(0x1b4)],'onDragStart':()=>_0x306aee['onDragStart'](_0x1c598f),'onFilter':()=>_0x306aee['onFilter'](_0x1c598f),'onRemove':()=>_0x306aee[_0x5c39da(0x30c)](_0x1c598f),'onSettings':()=>_0x306aee['onSettings'](_0x1c598f)})]},_0x1c598f);}),(_0x13a3a1==null?void 0x0:_0x13a3a1[_0x1b18d2(0x257)])===_0x25aab9&&_0x13a3a1[_0x1b18d2(0x331)]===_0x56e868[_0x1b18d2(0x416)]&&(0x0,g['jsx'])(_0x1b18d2(0x159),{'className':_0x1b18d2(0xf4)}),_0x56e868[_0x1b18d2(0x416)]===0x0&&(0x0,g[_0x1b18d2(0x12b)])(_0x1b18d2(0x159),{'className':'univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','children':_0x258319['t'](_0x1b18d2(0x293))})]})]});}function wn(_0x1e25b8){const _0xd5742a=_0x10fa58;let _0x3c96d8=(0x0,m[_0xd5742a(0x162)])(a[_0xd5742a(0x17c)]),_0x59fd76=_0x1e25b8['area']===y[_0xd5742a(0x473)][_0xd5742a(0x3cd)],_0x43fb1a=[{'type':_0xd5742a(0x2f6),'children':_0x3c96d8['t'](_0xd5742a(0x347)),'onSelect':_0x1e25b8['onRemove']},{'type':_0xd5742a(0x2f6),'children':_0x3c96d8['t'](_0x59fd76?_0xd5742a(0x1a0):_0xd5742a(0x28b)),'onSelect':_0x59fd76?_0x1e25b8['onSettings']:_0x1e25b8[_0xd5742a(0xbe)]}];return(0x0,g[_0xd5742a(0x402)])(_0xd5742a(0x159),{'draggable':!0x0,'className':_0xd5742a(0x48a),'onDragEnd':_0x1e25b8[_0xd5742a(0x1b4)],'onDragStart':_0x1e25b8[_0xd5742a(0x4cb)],'children':[(0x0,g['jsx'])(s[_0xd5742a(0x160)],{'className':'univer-text-gray-400'}),(0x0,g['jsx'])(f[_0xd5742a(0x143)],{'title':_0x1e25b8[_0xd5742a(0x224)]['displayName'],'children':(0x0,g['jsx'])(_0xd5742a(0x408),{'className':_0xd5742a(0x411),'children':_0x1e25b8[_0xd5742a(0x224)][_0xd5742a(0x225)]})}),(0x0,g[_0xd5742a(0x12b)])(f[_0xd5742a(0x1c9)],{'align':_0xd5742a(0x30e),'items':_0x43fb1a,'children':(0x0,g[_0xd5742a(0x12b)])(_0xd5742a(0x408),{'className':_0xd5742a(0xc0),'children':(0x0,g[_0xd5742a(0x12b)])(s['MoreDownIcon'],{})})})]});}function Tn(_0x338897){const _0x2bce3c=_0x10fa58;var _0x4d6817,_0x9fbc06;let _0x37abd4=(0x0,m[_0x2bce3c(0x162)])(a[_0x2bce3c(0x17c)]),{format:_0x4680c8,items:_0x47bb26,itemTypes:_0x1ce895}=(0x0,h[_0x2bce3c(0x1d9)])(()=>{const _0x5ae56e=_0x2bce3c;let _0x19291d=(0x0,e[_0x5ae56e(0x14a)])(_0x338897['table'],_0x338897[_0x5ae56e(0x14f)]);try{let _0x5a4041=_0x19291d['getDataFieldByTableId'](_0x338897['fieldId']);return{'format':_0x5a4041==null?void 0x0:_0x5a4041[_0x5ae56e(0x2ee)],'items':[...(_0x5a4041==null?void 0x0:_0x5a4041['items'])??[]],'itemTypes':[...(_0x5a4041==null?void 0x0:_0x5a4041[_0x5ae56e(0x139)])??[]]};}finally{_0x19291d[_0x5ae56e(0x312)]();}},[_0x338897[_0x2bce3c(0xdb)],_0x338897[_0x2bce3c(0x14f)],_0x338897[_0x2bce3c(0x1d8)]]),_0x148d36=(_0x4d6817=_0x338897[_0x2bce3c(0x14f)][_0x2bce3c(0x116)][_0x338897[_0x2bce3c(0xdb)]])==null?void 0x0:_0x4d6817['filterInfo'],[_0x52f748,_0x4e5fa8]=(0x0,h[_0x2bce3c(0x1cc)])((_0x148d36==null?void 0x0:_0x148d36['type'])===y['PivotFilterTypeEnum'][_0x2bce3c(0x1ee)]?_0x148d36[_0x2bce3c(0x29c)]:_0x47bb26),[_0x20d2af,_0x2a8048]=(0x0,h[_0x2bce3c(0x1cc)])((_0x9fbc06=_0x338897[_0x2bce3c(0x14f)][_0x2bce3c(0x116)][_0x338897[_0x2bce3c(0xdb)]])==null||(_0x9fbc06=_0x9fbc06[_0x2bce3c(0x407)])==null?void 0x0:_0x9fbc06[_0x2bce3c(0x469)]),_0x332e39=_0x52f748[_0x2bce3c(0x416)]===_0x47bb26[_0x2bce3c(0x416)];return(0x0,g[_0x2bce3c(0x402)])('section',{'className':(0x0,f[_0x2bce3c(0x4b2)])('univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900',f[_0x2bce3c(0x487)]),'children':[(0x0,g[_0x2bce3c(0x12b)])(_0x2bce3c(0x159),{'className':_0x2bce3c(0xc9),'children':_0x37abd4['t']('bases-dashboard-ui.pivot.filterField')}),(0x0,g[_0x2bce3c(0x402)])(_0x2bce3c(0x159),{'className':'univer-flex','children':[(0x0,g[_0x2bce3c(0x402)])(f['Button'],{'className':_0x2bce3c(0xe7),'variant':_0x20d2af===y[_0x2bce3c(0x1c1)][_0x2bce3c(0x27b)]?_0x2bce3c(0x491):_0x2bce3c(0x3d7),'onClick':()=>_0x2a8048(y[_0x2bce3c(0x1c1)][_0x2bce3c(0x27b)]),'children':[(0x0,g[_0x2bce3c(0x12b)])(s[_0x2bce3c(0x434)],{}),_0x37abd4['t'](_0x2bce3c(0x3a3))]}),(0x0,g[_0x2bce3c(0x402)])(f[_0x2bce3c(0x438)],{'className':'univer-flex-1','variant':_0x20d2af===y[_0x2bce3c(0x1c1)][_0x2bce3c(0x40d)]?_0x2bce3c(0x491):_0x2bce3c(0x3d7),'onClick':()=>_0x2a8048(y[_0x2bce3c(0x1c1)][_0x2bce3c(0x40d)]),'children':[(0x0,g['jsx'])(s[_0x2bce3c(0x1b1)],{}),_0x37abd4['t'](_0x2bce3c(0x37a))]})]}),(0x0,g[_0x2bce3c(0x402)])(_0x2bce3c(0x159),{'className':_0x2bce3c(0x1fa),'children':[(0x0,g[_0x2bce3c(0x402)])(_0x2bce3c(0x298),{'className':_0x2bce3c(0xd7),'children':[(0x0,g[_0x2bce3c(0x12b)])(f['Checkbox'],{'checked':_0x332e39,'indeterminate':_0x52f748[_0x2bce3c(0x416)]>0x0&&!_0x332e39,'onChange':()=>_0x4e5fa8(_0x332e39?[]:_0x47bb26)}),_0x37abd4['t'](_0x2bce3c(0x147))]}),_0x47bb26[_0x2bce3c(0x47e)]((_0x34ff98,_0x4d8fae)=>(0x0,g[_0x2bce3c(0x402)])(_0x2bce3c(0x298),{'className':_0x2bce3c(0xd7),'children':[(0x0,g[_0x2bce3c(0x12b)])(f[_0x2bce3c(0x20d)],{'checked':_0x52f748[_0x2bce3c(0x206)](_0x34ff98),'onChange':()=>_0x4e5fa8(_0x230b5d=>_0x230b5d[_0x2bce3c(0x206)](_0x34ff98)?_0x230b5d['filter'](_0x54882b=>_0x54882b!==_0x34ff98):[..._0x230b5d,_0x34ff98])}),(0x0,g[_0x2bce3c(0x12b)])(_0x2bce3c(0x408),{'className':_0x2bce3c(0x196),'children':kn(_0x34ff98,_0x1ce895[_0x4d8fae],_0x4680c8,_0x37abd4['t']('bases-dashboard-ui.pivot.blank'))})]},_0x34ff98))]}),(0x0,g[_0x2bce3c(0x402)])('div',{'className':_0x2bce3c(0x39e),'children':[(0x0,g['jsx'])(f[_0x2bce3c(0x438)],{'variant':_0x2bce3c(0x422),'onClick':()=>_0x338897[_0x2bce3c(0x462)](_0x47bb26,_0x20d2af),'children':_0x37abd4['t']('bases-dashboard-ui.pivot.clearFilter')}),(0x0,g['jsxs'])(_0x2bce3c(0x159),{'className':_0x2bce3c(0x372),'children':[(0x0,g[_0x2bce3c(0x12b)])(f[_0x2bce3c(0x438)],{'onClick':_0x338897[_0x2bce3c(0x178)],'children':_0x37abd4['t'](_0x2bce3c(0x240))}),(0x0,g[_0x2bce3c(0x12b)])(f[_0x2bce3c(0x438)],{'variant':_0x2bce3c(0x491),'disabled':_0x52f748['length']===0x0,'onClick':()=>_0x338897[_0x2bce3c(0x462)](_0x52f748,_0x20d2af),'children':_0x37abd4['t'](_0x2bce3c(0x18a))})]})]})]});}function En(_0x112965){const _0x1d4dce=_0x10fa58;var _0x1329e7,_0xe25bf2,_0x513529;let _0x11162a=(0x0,m['useDependency'])(a[_0x1d4dce(0x17c)]),[_0x5e2f0f,_0x1ea895]=(0x0,h['useState'])(((_0x1329e7=_0x112965[_0x1d4dce(0x224)])==null?void 0x0:_0x1329e7['displayName'])??''),[_0x2d197c,_0x3bd285]=(0x0,h[_0x1d4dce(0x1cc)])(((_0xe25bf2=_0x112965[_0x1d4dce(0x224)])==null?void 0x0:_0xe25bf2[_0x1d4dce(0x2ad)])??y[_0x1d4dce(0x235)][_0x1d4dce(0x43f)]),[_0x1e593f,_0xb10ff4]=(0x0,h['useState'])(((_0x513529=_0x112965['field'])==null?void 0x0:_0x513529['format'])??'');return _0x112965[_0x1d4dce(0x224)]?(0x0,g[_0x1d4dce(0x402)])(_0x1d4dce(0x4d8),{'className':(0x0,f[_0x1d4dce(0x4b2)])(_0x1d4dce(0x383),f[_0x1d4dce(0x487)]),'children':[(0x0,g['jsx'])(_0x1d4dce(0x159),{'className':_0x1d4dce(0x42f),'children':_0x11162a['t']('bases-dashboard-ui.pivot.fieldSettings')}),(0x0,g[_0x1d4dce(0x402)])(_0x1d4dce(0x298),{'className':_0x1d4dce(0x431),'children':[_0x11162a['t'](_0x1d4dce(0x41f)),(0x0,g[_0x1d4dce(0x12b)])(f['Input'],{'value':_0x5e2f0f,'onChange':_0x1ea895})]}),(0x0,g[_0x1d4dce(0x402)])(_0x1d4dce(0x298),{'className':_0x1d4dce(0x431),'children':[_0x11162a['t'](_0x1d4dce(0x2e1)),(0x0,g['jsx'])(f['Select'],{'value':String(_0x2d197c),'options':yn['map'](_0x2d5cd8=>({'value':String(_0x2d5cd8[_0x1d4dce(0x16c)]),'label':_0x11162a['t'](_0x2d5cd8['localeKey'])})),'onChange':_0x27c114=>{let _0x4ef9f8=yn['find'](_0x25e546=>String(_0x25e546['value'])===_0x27c114);_0x4ef9f8&&_0x3bd285(_0x4ef9f8['value']);}})]}),(0x0,g[_0x1d4dce(0x402)])('label',{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x11162a['t'](_0x1d4dce(0xff)),(0x0,g[_0x1d4dce(0x12b)])(f['Input'],{'value':_0x1e593f,'onChange':_0xb10ff4})]}),(0x0,g['jsxs'])(_0x1d4dce(0x159),{'className':_0x1d4dce(0xda),'children':[(0x0,g[_0x1d4dce(0x12b)])(f[_0x1d4dce(0x438)],{'onClick':_0x112965[_0x1d4dce(0x178)],'children':_0x11162a['t'](_0x1d4dce(0x240))}),(0x0,g['jsx'])(f['Button'],{'variant':_0x1d4dce(0x491),'disabled':!_0x5e2f0f['trim'](),'onClick':()=>_0x112965[_0x1d4dce(0x462)](_0x5e2f0f['trim'](),_0x2d197c,_0x1e593f),'children':_0x11162a['t']('bases-dashboard-ui.pivot.confirm')})]})]}):null;}function Dn(_0x1ab4d0){const _0x2735db=_0x10fa58;let {config:_0x181174,commit:_0x2e7472}=_0x1ab4d0,_0x4e7895=(0x0,m[_0x2735db(0x162)])(a[_0x2735db(0x17c)]),_0x8bb0e7=_0x181174[_0x2735db(0x2c2)][_0x2735db(0x28d)],_0x5d7a30=_0x452b29=>_0x2e7472(_0x1b8d59=>_0x1b8d59[_0x2735db(0x3c7)]({..._0x1b8d59[_0x2735db(0x180)](),..._0x452b29}));return(0x0,g[_0x2735db(0x402)])(_0x2735db(0x159),{'className':_0x2735db(0x484),'children':[(0x0,g[_0x2735db(0x402)])('label',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x4e7895['t'](_0x2735db(0x324)),(0x0,g[_0x2735db(0x12b)])(f[_0x2735db(0x1b9)],{'className':_0x2735db(0x3eb),'value':String(_0x181174[_0x2735db(0x2c2)][_0x2735db(0x42b)]),'options':[{'value':String(y[_0x2735db(0xe6)][_0x2735db(0x3a0)]),'label':_0x4e7895['t'](_0x2735db(0x1eb))},{'value':String(y[_0x2735db(0xe6)][_0x2735db(0x135)]),'label':_0x4e7895['t'](_0x2735db(0x394))},{'value':String(y[_0x2735db(0xe6)][_0x2735db(0x2c5)]),'label':_0x4e7895['t'](_0x2735db(0xd0))}],'onChange':_0x1b1dc0=>{const _0x286f78=_0x2735db;let _0x4ebb3a=[y[_0x286f78(0xe6)]['tabular'],y[_0x286f78(0xe6)][_0x286f78(0x135)],y[_0x286f78(0xe6)]['outline']][_0x286f78(0x315)](_0x585a26=>String(_0x585a26)===_0x1b1dc0);_0x4ebb3a!==void 0x0&&_0x2e7472(_0x21ebcc=>_0x21ebcc[_0x286f78(0x393)](_0x4ebb3a));}})]}),[{'key':_0x2735db(0x3bf),'label':'bases-dashboard-ui.pivot.repeatRowLabels','defaultValue':!0x1},{'key':_0x2735db(0x261),'label':_0x2735db(0x195),'defaultValue':!0x1},{'key':_0x2735db(0x191),'label':'bases-dashboard-ui.pivot.showRowSubtotal','defaultValue':!0x0},{'key':_0x2735db(0x24e),'label':_0x2735db(0xc2),'defaultValue':!0x0},{'key':_0x2735db(0x1e8),'label':'bases-dashboard-ui.pivot.showColumnSubtotal','defaultValue':!0x0},{'key':_0x2735db(0x2e8),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}][_0x2735db(0x47e)](_0x2fc7a0=>(0x0,g[_0x2735db(0x402)])(_0x2735db(0x298),{'className':_0x2735db(0x2ca),'children':[(0x0,g[_0x2735db(0x12b)])(f['Checkbox'],{'checked':!!(_0x8bb0e7[_0x2fc7a0[_0x2735db(0x479)]]??_0x2fc7a0[_0x2735db(0xde)]),'disabled':_0x2fc7a0['key']===_0x2735db(0x3bf)&&_0x181174['pivot'][_0x2735db(0x42b)]===y[_0x2735db(0xe6)][_0x2735db(0x135)],'onChange':_0x1d3e57=>_0x5d7a30({[_0x2fc7a0['key']]:!!_0x1d3e57})}),_0x4e7895['t'](_0x2fc7a0[_0x2735db(0x298)])]},_0x2fc7a0[_0x2735db(0x479)])),_0x181174[_0x2735db(0x2c2)][_0x2735db(0x42b)]===y[_0x2735db(0xe6)][_0x2735db(0x2c5)]&&(0x0,g[_0x2735db(0x402)])('label',{'className':_0x2735db(0x488),'children':[_0x4e7895['t']('bases-dashboard-ui.pivot.rowSubtotalPosition'),(0x0,g['jsx'])(f[_0x2735db(0x1b9)],{'className':_0x2735db(0x3eb),'value':String(_0x8bb0e7[_0x2735db(0x137)]??y['PivotSubtotalPositionEnum'][_0x2735db(0x381)]),'options':[{'value':String(y[_0x2735db(0x33d)][_0x2735db(0x381)]),'label':_0x4e7895['t'](_0x2735db(0xd5))},{'value':String(y['PivotSubtotalPositionEnum'][_0x2735db(0x219)]),'label':_0x4e7895['t'](_0x2735db(0xc4))}],'onChange':_0x3fb7c3=>{const _0x11b54d=_0x2735db;let _0x204698=[y['PivotSubtotalPositionEnum'][_0x11b54d(0x381)],y[_0x11b54d(0x33d)]['bottom']][_0x11b54d(0x315)](_0xf3c6e3=>String(_0xf3c6e3)===_0x3fb7c3);_0x204698!==void 0x0&&_0x5d7a30({'rowSubtotalPosition':_0x204698});}})]}),(0x0,g[_0x2735db(0x402)])(_0x2735db(0x298),{'className':_0x2735db(0x488),'children':[_0x4e7895['t'](_0x2735db(0x40b)),(0x0,g[_0x2735db(0x12b)])(f[_0x2735db(0x1b9)],{'className':_0x2735db(0x3eb),'value':String(_0x181174['pivot'][_0x2735db(0x26e)]===y[_0x2735db(0x40c)][_0x2735db(0x237)]?y[_0x2735db(0x40c)][_0x2735db(0x1b3)]:_0x181174[_0x2735db(0x2c2)][_0x2735db(0x26e)]),'options':[{'value':String(y['PivotTableValuePositionEnum'][_0x2735db(0x1b3)]),'label':_0x4e7895['t']('bases-dashboard-ui.pivot.columns')},{'value':String(y[_0x2735db(0x40c)]['Row']),'label':_0x4e7895['t']('bases-dashboard-ui.pivot.rows')}],'onChange':_0x1d5808=>{const _0x3a760d=_0x2735db;let _0x430d86=[y[_0x3a760d(0x40c)]['Column'],y[_0x3a760d(0x40c)]['Row']][_0x3a760d(0x315)](_0x230914=>String(_0x230914)===_0x1d5808);_0x430d86!==void 0x0&&_0x2e7472(_0x10e5c4=>_0x10e5c4[_0x3a760d(0x3cf)](_0x430d86,_0x10e5c4[_0x3a760d(0x1f9)]()<0x0?0x0:_0x10e5c4[_0x3a760d(0x1f9)]()));}})]}),(0x0,g[_0x2735db(0x402)])(_0x2735db(0x298),{'className':_0x2735db(0x488),'children':[_0x4e7895['t'](_0x2735db(0x459)),(0x0,g[_0x2735db(0x12b)])(f['InputNumber'],{'className':_0x2735db(0x291),'min':0x1,'max':0x14,'value':_0x8bb0e7['pageWrap']??0x1,'onChange':_0x3b411c=>{const _0x527116=_0x2735db;let _0x526559=Number(_0x3b411c);Number[_0x527116(0x355)](_0x526559)&&_0x526559>=0x1&&_0x5d7a30({'pageWrap':_0x526559});}})]}),(0x0,g[_0x2735db(0x402)])(_0x2735db(0x298),{'className':_0x2735db(0x488),'children':[_0x4e7895['t']('bases-dashboard-ui.pivot.pageDirection'),(0x0,g[_0x2735db(0x12b)])(f[_0x2735db(0x1b9)],{'className':_0x2735db(0x3eb),'value':String(_0x8bb0e7[_0x2735db(0x120)]??!0x1),'options':[{'value':'false','label':_0x4e7895['t'](_0x2735db(0x359))},{'value':_0x2735db(0x1c5),'label':_0x4e7895['t'](_0x2735db(0xe2))}],'onChange':_0x1c6e71=>_0x5d7a30({'pageOverThenDown':_0x1c6e71===_0x2735db(0x1c5)})})]})]});}function On(_0x1fffb0,_0x31ec61,_0x43eab9,_0xe54df5){const _0x562ef5=_0x10fa58;let _0x44fd07=_0x1fffb0[_0x562ef5(0x409)](_0x31ec61)[_0x562ef5(0x315)](_0x1437b8=>_0x1fffb0['getFieldPositionInfoById'](_0x1437b8['getId']())[_0x562ef5(0x257)]!==y[_0x562ef5(0x473)][_0x562ef5(0x3cd)]);_0x43eab9!==y[_0x562ef5(0x473)]['Value']&&_0x44fd07?_0x1fffb0[_0x562ef5(0x4a3)](_0x44fd07[_0x562ef5(0xe4)](),_0x43eab9,_0xe54df5):_0x1fffb0[_0x562ef5(0x353)](_0x31ec61,_0x43eab9,_0xe54df5);}function kn(_0x481bee,_0x2dd8ab,_0x302606,_0x1d08bc){const _0x20146c=_0x10fa58;return _0x2dd8ab===y[_0x20146c(0x1a5)][_0x20146c(0x2d2)]?_0x1d08bc:_0x2dd8ab===y[_0x20146c(0x1a5)][_0x20146c(0x4ca)]&&_0x302606?a['numfmt']['format'](_0x302606,Number(_0x481bee)):_0x481bee;}function An(_0xa7a193){const _0x2c1e32=_0x10fa58;return _0xa7a193[_0x2c1e32(0x469)]===a[_0x2c1e32(0x466)][_0x2c1e32(0x17a)]||_0xa7a193[_0x2c1e32(0x469)]===a[_0x2c1e32(0x466)]['Currency']||_0xa7a193[_0x2c1e32(0x469)]===a['BaseFieldType'][_0x2c1e32(0x193)]||_0xa7a193[_0x2c1e32(0x469)]===a[_0x2c1e32(0x466)][_0x2c1e32(0x181)];}function jn(_0x55f55d){const _0x4b8ad7=_0x10fa58;switch(_0x55f55d){case y[_0x4b8ad7(0x473)]['Row']:return _0x4b8ad7(0x43c);case y[_0x4b8ad7(0x473)][_0x4b8ad7(0x1b3)]:return _0x4b8ad7(0x309);case y[_0x4b8ad7(0x473)]['Value']:return'bases-dashboard-ui.pivot.addToValue';default:return _0x4b8ad7(0x4b8);}}function Mn({config:_0x1c2a9c,onChange:_0x333c56,runtime:_0x462760,table:_0x58724f}){const _0x1ddf3d=_0x10fa58;let _0x504345=(0x0,m[_0x1ddf3d(0x162)])(a[_0x1ddf3d(0x17c)]),[_0x517902,_0x5868d4]=(0x0,h['useState'])(_0x1ddf3d(0x1a8));return(0x0,g[_0x1ddf3d(0x402)])(_0x1ddf3d(0x1a3),{'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-96\x20univer-shrink-0\x20univer-flex-col\x20univer-border-l\x20univer-border-gray-200\x20univer-bg-gray-0\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900','children':[(0x0,g[_0x1ddf3d(0x12b)])(n[_0x1ddf3d(0x2eb)],{'ariaLabel':_0x504345['t'](_0x1ddf3d(0x32a)),'className':_0x1ddf3d(0x287),'items':[{'label':_0x504345['t']('bases-dashboard-ui.pivot.chartConfiguration'),'panelId':'base-pivot-chart-configuration','value':_0x1ddf3d(0x1a8)},{'label':_0x504345['t'](_0x1ddf3d(0x172)),'panelId':_0x1ddf3d(0x446),'value':_0x1ddf3d(0x2c2)}],'value':_0x517902,'variant':_0x1ddf3d(0x16b),'onChange':_0x5868d4}),(0x0,g[_0x1ddf3d(0x12b)])(_0x1ddf3d(0x159),{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','children':_0x517902===_0x1ddf3d(0x1a8)?_0x462760&&(0x0,g[_0x1ddf3d(0x12b)])(Dt,{'config':_0x1c2a9c,'runtime':_0x462760,'tableName':_0x58724f['name'],'onChange':_0x333c56}):(0x0,g[_0x1ddf3d(0x12b)])(bn,{'config':_0x1c2a9c,'table':_0x58724f,'onChange':_0x333c56})})]});}function Nn({tableId:_0x5edecd,unitId:_0x1fe617,viewId:_0x2b3176}){const _0x16c91d=_0x10fa58;let _0x2af50c=(0x0,m[_0x16c91d(0x162)])(a['ICommandService']),_0x503cfc=(0x0,m[_0x16c91d(0x162)])(a['IUniverInstanceService']),_0x42e35d=(0x0,m[_0x16c91d(0x162)])(a[_0x16c91d(0x4ce)]),_0x59d851=(0x0,m['useDependency'])(a[_0x16c91d(0x17c)]),_0x234149=(0x0,m[_0x16c91d(0x162)])(e[_0x16c91d(0x216)]),[_0x2da9bb,_0x2cf6cb]=(0x0,h[_0x16c91d(0x1cc)])(null),[_0x27f3da,_0x5b818c]=(0x0,h['useState'])(null),_0xe99cc1=(0x0,h[_0x16c91d(0xfd)])(_0x16c91d(0x2d8)+(0x0,a[_0x16c91d(0x176)])(0x8)),[_0x46ef72,_0x378b4e]=(0x0,h[_0x16c91d(0x1cc)])(!0x1),_0x2921d7=_0x503cfc[_0x16c91d(0x1d4)](_0x1fe617,a[_0x16c91d(0x17b)][_0x16c91d(0x4d1)]),_0x1ff32e=_0x2921d7==null?void 0x0:_0x2921d7['getSnapshot']()[_0x16c91d(0x19e)][_0x5edecd],_0x160f6c=_0x1ff32e==null?void 0x0:_0x1ff32e[_0x16c91d(0x1d2)][_0x2b3176],_0x348543=Pn(_0x160f6c),_0x39b2c7=T(_0x1fe617,_0x5edecd,_0x2b3176);if((0x0,h['useEffect'])(()=>{const _0x151b7f=_0x16c91d;if(!_0x348543)return;let _0x99d7a3=_0xe99cc1[_0x151b7f(0x2c3)];return _0x234149['acquireChartRuntime'](_0x99d7a3,{'unitId':_0x1fe617,'tableId':_0x5edecd,'viewId':_0x2b3176,'filters':[]}),()=>{const _0xc15ce=_0x151b7f;_0x234149[_0xc15ce(0x38e)](_0x1fe617,_0x99d7a3);};},[_0x348543,_0x234149,_0x5edecd,_0x1fe617,_0x2b3176]),(0x0,h['useEffect'])(()=>{const _0x63e42e=_0x16c91d;if(!Pn(_0x160f6c))return;let _0x148971=!0x0,_0x5ee236={'unitId':_0x1fe617,'tableId':_0x5edecd,'viewId':_0x2b3176,'filters':[_0x160f6c['filter']??null]};return _0x234149[_0x63e42e(0x1fd)](_0x1fe617,_0xe99cc1['current'],_0x5ee236)[_0x63e42e(0x46e)](_0x2bea1d=>{const _0x1511e8=_0x63e42e;_0x148971&&_0x2bea1d&&(_0x2cf6cb(_0x2bea1d),_0x5b818c(_0x234149[_0x1511e8(0x2dd)](_0x1fe617,_0xe99cc1[_0x1511e8(0x2c3)])??null),_0x378b4e(!0x1));})[_0x63e42e(0x1f0)](_0x48e38e=>{const _0x4375d2=_0x63e42e;_0x42e35d[_0x4375d2(0x38d)](_0x4375d2(0x21c),_0x48e38e),_0x148971&&(_0x2cf6cb(null),_0x378b4e(!0x0));}),()=>{_0x148971=!0x1;};},[_0x42e35d,_0x234149,_0x5edecd,_0x1fe617,_0x160f6c,_0x2b3176]),!_0x1ff32e||!Pn(_0x160f6c))return null;let _0xf3a033=_0x234149[_0x16c91d(0x2dd)](_0x1fe617,_0xe99cc1[_0x16c91d(0x2c3)])===_0x27f3da?_0x27f3da:null,_0x5243b7=_0x2da9bb?(0x0,g[_0x16c91d(0x402)])(_0x16c91d(0x159),{'className':_0x16c91d(0x11e),'style':{'gridTemplateRows':_0x160f6c[_0x16c91d(0xfb)][_0x16c91d(0xe5)]==='chart-and-table'?'minmax(240px,\x203fr)\x20minmax(180px,\x202fr)':_0x16c91d(0x19b)},'children':[_0x160f6c[_0x16c91d(0xfb)][_0x16c91d(0xe5)]!==_0x16c91d(0x1d8)&&_0xf3a033&&(0x0,g[_0x16c91d(0x12b)])('div',{'className':_0x16c91d(0x13d),'children':(0x0,g[_0x16c91d(0x12b)])(re,{'isRowDirection':(0x0,e[_0x16c91d(0x3b3)])(_0x160f6c['config']['chart']['orient']),'runtime':_0xf3a033})}),_0x160f6c[_0x16c91d(0xfb)][_0x16c91d(0xe5)]!==_0x16c91d(0x1a8)&&(0x0,g['jsx'])(_0x16c91d(0x159),{'className':_0x16c91d(0x371),'children':(0x0,g[_0x16c91d(0x12b)])(Ge,{'pivot':_0x160f6c[_0x16c91d(0xfb)][_0x16c91d(0x2c2)],'view':_0x2da9bb['view']})})]}):(0x0,g['jsx'])(_0x16c91d(0x159),{'className':_0x16c91d(0x33e),'children':_0x46ef72?_0x59d851['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x59d851['t'](_0x16c91d(0x421))});return(0x0,g[_0x16c91d(0x402)])(_0x16c91d(0x159),{'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[_0x16c91d(0x12b)])(_0x16c91d(0x159),{'className':_0x16c91d(0x173),'children':_0x5243b7}),_0x39b2c7&&(0x0,g['jsx'])(Mn,{'config':_0x160f6c[_0x16c91d(0xfb)],'runtime':_0xf3a033,'table':_0x1ff32e,'onChange':_0x273fc6=>{const _0xf74dca=_0x16c91d;_0x2af50c['executeCommand'](e[_0xf74dca(0x405)]['id'],{'unitId':_0x1fe617,'tableId':_0x5edecd,'viewId':_0x2b3176,'patch':_0x273fc6})[_0xf74dca(0x1f0)](_0x51688e=>_0x42e35d['error'](_0xf74dca(0xf2),_0x51688e));}})]});}function Pn(_0x217746){const _0x49e679=_0x10fa58;return(_0x217746==null?void 0x0:_0x217746[_0x49e679(0x469)])===a['BaseViewType'][_0x49e679(0x48c)]&&typeof _0x217746['config']==_0x49e679(0x334)&&_0x217746[_0x49e679(0xfb)]!==null&&_0x49e679(0x2c2)in _0x217746[_0x49e679(0xfb)]&&_0x49e679(0x1a8)in _0x217746['config']&&_0x49e679(0xe5)in _0x217746['config'];}let Fn=class extends a[_0x10fa58(0x18f)]{constructor(_0x498bc5,_0x502521,_0x5907cf,_0x2df0dd,_0x21c5e7,_0x25470e){const _0x37e363=_0x10fa58;super(),this[_0x37e363(0x24f)](_0x502521[_0x37e363(0x275)]({'type':a[_0x37e363(0x22d)][_0x37e363(0x48c)],'renderMode':_0x37e363(0x220),'icon':s[_0x37e363(0x182)],'component':Nn,'menu':{get 'label'(){const _0xabfa6f=_0x37e363;return _0x25470e['t'](_0xabfa6f(0x32a));},get 'description'(){const _0x26fe2d=_0x37e363;return _0x25470e['t'](_0x26fe2d(0x25d));},get 'defaultName'(){const _0x8ba991=_0x37e363;return _0x25470e['t'](_0x8ba991(0x2b7));}}})),this[_0x37e363(0x24f)](_0x498bc5['register'](In(_0x5907cf,_0x2df0dd,_0x21c5e7,_0x25470e)));}};Fn=P([N(0x0,t['IBaseDashboardUIExtensionRegistryService']),N(0x1,t['IBaseViewUIRegistryService']),N(0x2,(0x0,a[_0x10fa58(0x453)])(e[_0x10fa58(0x497)])),N(0x3,a['ICommandService']),N(0x4,a[_0x10fa58(0x492)]),N(0x5,(0x0,a[_0x10fa58(0x453)])(a[_0x10fa58(0x17c)]))],Fn);function In(_0x35da0b,_0x4a7d8e,_0x5649b5,_0x2c1ec8){const _0x28b0da=_0x10fa58;return{'change$':(0x0,c[_0x28b0da(0x259)])(_0x35da0b[_0x28b0da(0x483)],_0x5649b5[_0x28b0da(0x142)]),'component':ln,get 'labels'(){const _0x363db8=_0x28b0da;return{'add':_0x2c1ec8['t'](_0x363db8(0x10d)),'configure':_0x49dc9d=>_0x2c1ec8['t']('bases-dashboard-ui.dashboard.configure',_0x49dc9d),'delete':_0x2c1ec8['t'](_0x363db8(0x2cf)),'new':_0x2c1ec8['t']('bases-dashboard-ui.dashboard.new'),'rename':_0x2c1ec8['t'](_0x363db8(0x398)),'search':_0x2c1ec8['t']('bases-dashboard-ui.dashboard.search'),'section':_0x2c1ec8['t'](_0x363db8(0x3c3))};},'getItems':_0x38d484=>{const _0x4c0e5d=_0x28b0da;let _0x1547f8=_0x35da0b[_0x4c0e5d(0x433)](_0x38d484);return _0x1547f8['dashboardOrder']['flatMap'](_0x24e27a=>{const _0x5f1bad=_0x4c0e5d;let _0x3eb8c6=_0x1547f8['dashboards'][_0x24e27a];return _0x3eb8c6?[{'id':_0x3eb8c6['id'],'name':_0x3eb8c6[_0x5f1bad(0x4a1)],'readonly':!(0x0,e['canEditBaseDashboard'])(_0x5649b5,_0x38d484,_0x3eb8c6['id'])}]:[];});},'create':async _0x22b995=>{const _0x22c163=_0x28b0da;let _0x5bba8b=_0x35da0b[_0x22c163(0x433)](_0x22b995),_0x188f16=_0x22c163(0x2e9)+(0x0,a[_0x22c163(0x176)])(0x8),_0x22fa48=Ln(_0x5bba8b[_0x22c163(0x38b)][_0x22c163(0x226)](_0x19a528=>{const _0x227525=_0x22c163;let _0x29245d=_0x5bba8b[_0x227525(0x4ae)][_0x19a528];return _0x29245d?[_0x29245d['name']]:[];}),_0x2c163c=>_0x2c1ec8['t'](_0x22c163(0x1d3),String(_0x2c163c)));return await _0x4a7d8e['executeCommand'](e[_0x22c163(0x233)]['id'],{'unitId':_0x22b995,'dashboard':{'id':_0x188f16,'name':_0x22fa48,'widgetOrder':[],'widgets':{}}})?_0x188f16:null;},'rename':async(_0x4a7847,_0x531094,_0x12024c)=>{const _0x28abda=_0x28b0da;let _0x128e83=_0x35da0b[_0x28abda(0x13c)](_0x4a7847,_0x531094);return!!(_0x128e83&&await _0x4a7d8e[_0x28abda(0x32d)](e[_0x28abda(0x1be)]['id'],{'unitId':_0x4a7847,'dashboard':{..._0x128e83,'name':_0x12024c}}));},'remove':(_0x426b4a,_0x38de4e)=>_0x4a7d8e[_0x28b0da(0x32d)](e[_0x28b0da(0x2cc)]['id'],{'unitId':_0x426b4a,'dashboardId':_0x38de4e})};}function Ln(_0x3ef34d,_0x301341){const _0x415c45=_0x10fa58;let _0x3390eb=new Set(_0x3ef34d),_0x351c4a=_0x3390eb['size']+0x1,_0x964b4e=_0x301341(_0x351c4a);for(;_0x3390eb[_0x415c45(0x238)](_0x964b4e);)_0x351c4a+=0x1,_0x964b4e=_0x301341(_0x351c4a);return _0x964b4e;}let $=class extends a[_0x10fa58(0x1a1)]{constructor(_0x2ef189=C,_0x1e047d,_0x254462){const _0x512109=_0x10fa58;super(),this[_0x512109(0x19c)]=_0x2ef189,this[_0x512109(0x41c)]=_0x1e047d,this[_0x512109(0xf1)]=_0x254462;let {..._0x1b7f1e}=(0x0,a['merge'])({},C,this[_0x512109(0x19c)]);this[_0x512109(0xf1)][_0x512109(0x273)](S,_0x1b7f1e);}['onStarting'](){const _0x11d630=_0x10fa58;this['_injector'][_0x11d630(0x29f)]([F]),this['_injector']['add']([W]),this['_injector'][_0x11d630(0x29f)]([Fn]);}[_0x10fa58(0x2e0)](){const _0x358935=_0x10fa58;(0x0,a[_0x358935(0x21f)])(this['_injector'],[[F],[W],[Fn]]);}};B($,'type',a[_0x10fa58(0x17b)]['UNIVER_BASE']),B($,_0x10fa58(0x4b6),_0x10fa58(0x23d)),B($,_0x10fa58(0x2ab),b),B($,_0x10fa58(0x358),x),$=P([(0x0,a[_0x10fa58(0x432)])(r[_0x10fa58(0x2ec)],e[_0x10fa58(0x231)],t[_0x10fa58(0x4c3)],n[_0x10fa58(0x29b)],i[_0x10fa58(0x2af)],o[_0x10fa58(0x343)]),N(0x1,(0x0,a[_0x10fa58(0x453)])(a['Injector'])),N(0x2,a[_0x10fa58(0x1f6)])],$),Object['defineProperty'](exports,_0x10fa58(0x2ea),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0x10fa58(0x419)](exports,'UniverBaseDashboardUIPlugin',{'enumerable':!0x0,'get':function(){return $;}});
1
+ const _0xf14a5a=_0x479a;(function(_0x29bc66,_0xa118a4){const _0x4cacbd=_0x479a,_0x20d5e4=_0x29bc66();while(!![]){try{const _0x14dc4f=-parseInt(_0x4cacbd(0x4a1))/0x1*(parseInt(_0x4cacbd(0x22a))/0x2)+-parseInt(_0x4cacbd(0x432))/0x3*(parseInt(_0x4cacbd(0x3e9))/0x4)+-parseInt(_0x4cacbd(0x209))/0x5*(-parseInt(_0x4cacbd(0x200))/0x6)+-parseInt(_0x4cacbd(0xdc))/0x7*(-parseInt(_0x4cacbd(0x4aa))/0x8)+parseInt(_0x4cacbd(0x2e0))/0x9*(parseInt(_0x4cacbd(0x49a))/0xa)+parseInt(_0x4cacbd(0x270))/0xb*(parseInt(_0x4cacbd(0x4a7))/0xc)+parseInt(_0x4cacbd(0x2e5))/0xd*(-parseInt(_0x4cacbd(0xec))/0xe);if(_0x14dc4f===_0xa118a4)break;else _0x20d5e4['push'](_0x20d5e4['shift']());}catch(_0x27f70d){_0x20d5e4['push'](_0x20d5e4['shift']());}}}(_0x93eb,0xa5dc7),Object[_0xf14a5a(0xcf)](exports,Symbol[_0xf14a5a(0x29e)],{'value':_0xf14a5a(0x4a4)}));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=_0xf14a5a(0x45e),x=_0xf14a5a(0x43d);const S=_0xf14a5a(0x22e),C={};function w(_0x4cd11e,_0x158146){const _0x47c4c9=_0xf14a5a;let _0x1da8dc=(0x0,m[_0x47c4c9(0x491)])(a[_0x47c4c9(0x39d)]),_0x4e56c8=(0x0,e['canEditBaseDashboard'])(_0x1da8dc,_0x4cd11e,_0x158146);return(0x0,m[_0x47c4c9(0x3b4)])(()=>_0x1da8dc[_0x47c4c9(0x118)][_0x47c4c9(0x2f4)]((0x0,c[_0x47c4c9(0x4a6)])(()=>(0x0,e['canEditBaseDashboard'])(_0x1da8dc,_0x4cd11e,_0x158146))),_0x4e56c8,!0x1,[_0x158146,_0x1da8dc,_0x4cd11e]);}function T(_0x4c74ff,_0x19993a,_0x1b5ab5){const _0x638246=_0xf14a5a;let _0x98822f=(0x0,m[_0x638246(0x491)])(a[_0x638246(0x39d)]),_0x4ae100=(0x0,e[_0x638246(0x3b6)])(_0x98822f,_0x4c74ff,_0x19993a,_0x1b5ab5);return(0x0,m['useObservable'])(()=>_0x98822f['permissionPointUpdate$'][_0x638246(0x2f4)]((0x0,c['map'])(()=>(0x0,e[_0x638246(0x3b6)])(_0x98822f,_0x4c74ff,_0x19993a,_0x1b5ab5))),_0x4ae100,!0x1,[_0x98822f,_0x19993a,_0x4c74ff,_0x1b5ab5]);}function E(_0x5a117a,_0x2ffaca=_0xf14a5a(0x313)){const _0x367fd5=_0xf14a5a;return{'backgroundImage':_0x367fd5(0x1f6)+JSON[_0x367fd5(0x2a9)](_0x5a117a)+')','backgroundPosition':_0x2ffaca==='repeat'?_0x367fd5(0x22f):_0x367fd5(0x104),'backgroundRepeat':_0x2ffaca===_0x367fd5(0x264)?'repeat':_0x367fd5(0x285),'backgroundSize':_0x2ffaca===_0x367fd5(0x313)?_0x367fd5(0x313):_0x367fd5(0x2f6)};}const D={'alignment':_0xf14a5a(0x364),'currency':'USD','decimalPlaces':0x0,'fontSize':0x28,'fontSizeMode':'auto','numberFormat':'general'},O={'CNY':'¥','EUR':'€','USD':'$'};function k(_0x1bb2cb){const _0x45baf7=_0xf14a5a;var _0xcad1c2;let _0x2f6fcd=te(((_0xcad1c2=_0x1bb2cb['shapeData'][_0x45baf7(0x408)])==null||(_0xcad1c2=_0xcad1c2[_0x45baf7(0x435)])==null?void 0x0:_0xcad1c2[_0x45baf7(0x402)])??'');return{...D,..._0x2f6fcd,..._0x1bb2cb['appearance']};}function A(_0x1e1805,_0x54392b){const _0x3f1b9b=_0xf14a5a;let _0x2120b5={..._0x1e1805[_0x3f1b9b(0x1bb)],..._0x54392b},_0x44d0a4=k({..._0x1e1805,'appearance':_0x2120b5}),_0x34f725=_0x1e1805[_0x3f1b9b(0x36b)][_0x3f1b9b(0x408)]??{'formula':''};return{..._0x1e1805,'appearance':_0x2120b5,'shapeData':{..._0x1e1805['shapeData'],'formulaBinding':{..._0x34f725,'numberFormat':{'pattern':j(_0x44d0a4[_0x3f1b9b(0x435)],_0x44d0a4[_0x3f1b9b(0xeb)],_0x44d0a4[_0x3f1b9b(0x1e4)])}}}};}function j(_0x1719d0,_0x5f18f1,_0x12b649){const _0x13379d=_0xf14a5a;let _0x2a5e2c=Math[_0x13379d(0x272)](0x0,Math['min'](0x8,Math['round'](_0x5f18f1))),_0x4ae673=_0x2a5e2c?'.'+'0'[_0x13379d(0x264)](_0x2a5e2c):'';switch(_0x1719d0){case _0x13379d(0x106):return'0'+_0x4ae673;case _0x13379d(0x4c1):return'0'+_0x4ae673+'%';case'currency':return(O[_0x12b649]??_0x12b649)+_0x13379d(0x1f7)+_0x4ae673;case'grouped':return _0x13379d(0x1f7)+_0x4ae673;case _0x13379d(0x308):case _0x13379d(0x478):return _0x13379d(0x14b);}}function ee(_0x182e87,_0x2de6e8,_0x1050c7){const _0x108a91=_0xf14a5a;return _0x1050c7['numberFormat']!==_0x108a91(0x308)||typeof _0x2de6e8!=_0x108a91(0x106)||!Number[_0x108a91(0x2fc)](_0x2de6e8)?_0x182e87:new Intl[(_0x108a91(0x4d8))](void 0x0,{'notation':'compact','minimumFractionDigits':_0x1050c7[_0x108a91(0xeb)]??0x0,'maximumFractionDigits':_0x1050c7[_0x108a91(0xeb)]??0x0})[_0x108a91(0x195)](_0x2de6e8);}function te(_0x2bb1cd){const _0x12f6f9=_0xf14a5a;var _0x15f709,_0xc92eb2;if(!_0x2bb1cd||_0x2bb1cd===_0x12f6f9(0x14b))return{};let _0x197373=_0x2bb1cd[_0x12f6f9(0x2a3)](/\.([0#]+)/),_0x2624ba=(_0x197373==null||(_0x15f709=_0x197373[0x1])==null?void 0x0:_0x15f709[_0x12f6f9(0x215)])??0x0;if(_0x2bb1cd['includes']('%'))return{'decimalPlaces':_0x2624ba,'numberFormat':_0x12f6f9(0x4c1)};let _0x58f455=(_0xc92eb2=Object[_0x12f6f9(0x3b2)](O)[_0x12f6f9(0x396)](([,_0x250e0e])=>_0x2bb1cd['includes'](_0x250e0e)))==null?void 0x0:_0xc92eb2[0x0];return _0x58f455?{'currency':_0x58f455,'decimalPlaces':_0x2624ba,'numberFormat':_0x12f6f9(0x1e4)}:{'decimalPlaces':_0x2624ba,'numberFormat':_0x2bb1cd['includes'](',')?_0x12f6f9(0x33d):'number'};}const ne={'center':_0xf14a5a(0x104),'left':'flex-start','right':_0xf14a5a(0x265)};function M({dashboardId:_0x4ddf4b,unitId:_0x380308,widget:_0x359576}){const _0x5e38ea=_0xf14a5a;var _0x19862b,_0x484968,_0x450470,_0x12ff54,_0x1cfe24,_0x1fabb6,_0x3560a2,_0x857f9a,_0x2ae7c7;let _0x2d3387=(0x0,m['useDependency'])(i['ShapeFormulaService']),_0x82dd30=(0x0,m[_0x5e38ea(0x491)])(a['IImageIoService']),_0x1f5951=(0x0,m[_0x5e38ea(0x491)])(a[_0x5e38ea(0x207)]),_0x211a92=(0x0,h[_0x5e38ea(0x177)])(()=>({'hostType':a[_0x5e38ea(0x4cd)][_0x5e38ea(0x31e)],'unitId':_0x380308,'subUnitId':_0x4ddf4b,'shapeId':_0x359576['id']}),[_0x4ddf4b,_0x380308,_0x359576['id']]),[_0x172ae1,_0x578273]=(0x0,h['useState'])(()=>_0x2d3387[_0x5e38ea(0x197)](_0x211a92)),[_0x184e4f,_0x3b8040]=(0x0,h[_0x5e38ea(0x2b8)])(()=>{const _0x179fc1=_0x5e38ea;var _0x3dd5e2;return(_0x3dd5e2=_0x2d3387[_0x179fc1(0x3ea)](_0x211a92))==null?void 0x0:_0x3dd5e2[_0x179fc1(0x1aa)];}),[_0x8e2fb6,_0xeef1b4]=(0x0,h['useState'])(),_0x1f6382=(0x0,h['useRef'])(null),_0x5ec63=(0x0,h[_0x5e38ea(0x45b)])(null),_0x2483a1=k(_0x359576);(0x0,h[_0x5e38ea(0x48c)])(()=>{const _0x1a29c2=_0x5e38ea;let _0x340392=_0x2d3387[_0x1a29c2(0x26f)][_0x1a29c2(0x298)](_0x5767b5=>{const _0x19e9d7=_0x1a29c2;_0x5767b5[_0x19e9d7(0x1e7)]===_0x380308&&_0x5767b5[_0x19e9d7(0x2af)]===_0x4ddf4b&&_0x5767b5[_0x19e9d7(0x263)]===_0x359576['id']&&(_0x578273(_0x5767b5[_0x19e9d7(0x4c4)]),_0x3b8040(_0x5767b5['result']['value']));});return()=>_0x340392[_0x1a29c2(0x3ba)]();},[_0x4ddf4b,_0x2d3387,_0x211a92,_0x380308,_0x359576['id']]),(0x0,h[_0x5e38ea(0x48c)])(()=>{const _0x40cc21=_0x5e38ea;let _0x254a41=_0x2483a1[_0x40cc21(0x148)];if(!_0x254a41||_0x254a41['sourceType']!==a[_0x40cc21(0x44f)]['UUID'])return;let _0x1ca93e=_0x82dd30[_0x40cc21(0x1c7)](_0x254a41[_0x40cc21(0x465)],_0x254a41[_0x40cc21(0x367)]);if(_0x1ca93e!=null&&_0x1ca93e['src'])return;let _0x4be4a5=!0x0;return _0x82dd30[_0x40cc21(0x3b0)](_0x254a41[_0x40cc21(0x465)])[_0x40cc21(0x173)](_0x1ed80b=>{const _0x5b920a=_0x40cc21;_0x4be4a5&&_0xeef1b4({'source':_0x254a41[_0x5b920a(0x465)],'value':_0x1ed80b});})[_0x40cc21(0xc0)](()=>void 0x0),()=>{_0x4be4a5=!0x1;};},[_0x2483a1['backgroundImage'],_0x82dd30]);let _0x54be40=((_0x19862b=_0x2483a1[_0x5e38ea(0x148)])==null?void 0x0:_0x19862b['sourceType'])===a['ImageSourceType']['UUID']?((_0x484968=_0x82dd30[_0x5e38ea(0x1c7)](_0x2483a1[_0x5e38ea(0x148)]['source'],_0x2483a1[_0x5e38ea(0x148)][_0x5e38ea(0x367)]))==null?void 0x0:_0x484968['src'])??((_0x8e2fb6==null?void 0x0:_0x8e2fb6[_0x5e38ea(0x465)])===_0x2483a1['backgroundImage'][_0x5e38ea(0x465)]?_0x8e2fb6['value']:''):((_0x450470=_0x2483a1[_0x5e38ea(0x148)])==null?void 0x0:_0x450470[_0x5e38ea(0x465)])??'',_0x1bb536=_0x359576[_0x5e38ea(0x36b)][_0x5e38ea(0x3a8)],_0x3c8c49=_0x1bb536&&_0x5e38ea(0x46b)in _0x1bb536?(_0x12ff54=_0x1bb536['dataModel'])==null?void 0x0:_0x12ff54['doc']:void 0x0,_0x37f53d=ee((_0x172ae1==null?void 0x0:_0x172ae1['text'])??'',_0x184e4f,_0x2483a1),_0x5b2c10=_0x359576['shapeData'][_0x5e38ea(0x3e8)],_0x43e4de=_0x359576[_0x5e38ea(0x36b)][_0x5e38ea(0x3c8)],_0x4c382c=_0x3c8c49==null||(_0x1cfe24=_0x3c8c49[_0x5e38ea(0x387)])==null?void 0x0:_0x1cfe24['textStyle'],_0x1d3bca=_0x359576[_0x5e38ea(0x315)]??_0x359576[_0x5e38ea(0x3ff)]??'';return(0x0,h[_0x5e38ea(0x48c)])(()=>{const _0x3519c4=_0x5e38ea;let _0x33fe8b=_0x1f6382[_0x3519c4(0x1fa)],_0x4ee256=_0x5ec63[_0x3519c4(0x1fa)];if(!_0x33fe8b||!_0x4ee256)return;let _0x2d150a=()=>{const _0xa594=_0x3519c4;if(_0x2483a1[_0xa594(0x3d7)]===_0xa594(0x121)||!_0x33fe8b['clientWidth']||!_0x33fe8b[_0xa594(0x395)]){_0x4ee256[_0xa594(0x4c8)][_0xa594(0x2c9)]=_0x2483a1['fontSize']+'px';return;}let _0xfc43e1=0x1,_0x760e14=0x48,_0x51b217=_0xfc43e1;for(;_0xfc43e1<=_0x760e14;){let _0x11325f=Math['floor']((_0xfc43e1+_0x760e14)/0x2);_0x4ee256[_0xa594(0x4c8)][_0xa594(0x2c9)]=_0x11325f+'px',_0x4ee256['scrollWidth']<=_0x33fe8b[_0xa594(0x133)]&&_0x4ee256[_0xa594(0x202)]<=_0x33fe8b['clientHeight']?(_0x51b217=_0x11325f,_0xfc43e1=_0x11325f+0x1):_0x760e14=_0x11325f-0x1;}_0x4ee256[_0xa594(0x4c8)][_0xa594(0x2c9)]=_0x51b217+'px';};if(_0x2d150a(),typeof ResizeObserver>'u')return;let _0x2fc0a0=new ResizeObserver(_0x2d150a);return _0x2fc0a0[_0x3519c4(0x2d1)](_0x33fe8b),()=>_0x2fc0a0[_0x3519c4(0xf3)]();},[_0x2483a1[_0x5e38ea(0x2c9)],_0x2483a1['fontSizeMode'],_0x37f53d]),(0x0,g[_0x5e38ea(0x23b)])(_0x5e38ea(0x331),{'data-dashboard-formula-shape':_0x359576['id'],'className':_0x5e38ea(0x351),'style':{'backgroundColor':((_0x1fabb6=_0x359576[_0x5e38ea(0x1bb)])==null?void 0x0:_0x1fabb6[_0x5e38ea(0x23c)])??((_0x5b2c10==null?void 0x0:_0x5b2c10[_0x5e38ea(0x4d1)])===d[_0x5e38ea(0x231)][_0x5e38ea(0x2a1)]?_0x5b2c10[_0x5e38ea(0x192)]??void 0x0:void 0x0),'border':(_0x43e4de==null?void 0x0:_0x43e4de[_0x5e38ea(0x48a)])===d['ShapeLineTypeEnum']['SolidLine']?(_0x43e4de['width']??0x1)+_0x5e38ea(0x394)+(_0x43e4de[_0x5e38ea(0x192)]??'currentColor'):void 0x0,'borderRadius':_0x359576[_0x5e38ea(0x366)]===d[_0x5e38ea(0x156)][_0x5e38ea(0xc5)]?0xc:void 0x0,'color':((_0x3560a2=_0x359576[_0x5e38ea(0x1bb)])==null?void 0x0:_0x3560a2[_0x5e38ea(0x2e9)])??(_0x172ae1==null?void 0x0:_0x172ae1[_0x5e38ea(0x192)])??(_0x4c382c==null||(_0x857f9a=_0x4c382c['cl'])==null?void 0x0:_0x857f9a['rgb'])??void 0x0,'fontWeight':_0x4c382c!=null&&_0x4c382c['bl']?0x258:void 0x0,'textAlign':_0x2483a1['alignment']},'children':[_0x54be40&&(0x0,g[_0x5e38ea(0x205)])(_0x5e38ea(0x1f9),{'src':_0x54be40,'alt':'','aria-hidden':_0x5e38ea(0x109),'className':'univer-pointer-events-none\x20univer-absolute\x20univer-inset-0\x20univer-h-full\x20univer-w-full','style':{'objectFit':((_0x2ae7c7=_0x2483a1[_0x5e38ea(0x148)])==null?void 0x0:_0x2ae7c7[_0x5e38ea(0x345)])??_0x5e38ea(0x313)}}),(0x0,g[_0x5e38ea(0x23b)])('div',{'className':_0x5e38ea(0x13a),'children':[_0x1d3bca&&(0x0,g['jsx'])(_0x5e38ea(0x331),{'data-dashboard-formula-description':!0x0,'className':_0x5e38ea(0x33c),'children':_0x1d3bca}),(0x0,g[_0x5e38ea(0x205)])(_0x5e38ea(0x331),{'ref':_0x1f6382,'data-dashboard-formula-value':!0x0,'aria-label':_0x1d3bca||_0x1f5951['t'](_0x5e38ea(0x322)),'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[_0x2483a1[_0x5e38ea(0x11d)]]},'children':(0x0,g['jsx'])(_0x5e38ea(0x49b),{'ref':_0x5ec63,'data-dashboard-formula-value-text':!0x0,'data-font-size-mode':_0x2483a1[_0x5e38ea(0x3d7)],'className':'univer-inline-block\x20univer-max-w-full\x20univer-whitespace-nowrap\x20univer-leading-none','children':_0x37f53d})})]})]});}function N(_0x5bcda3,_0x4835ae){return function(_0x200aa1,_0x42984c){_0x4835ae(_0x200aa1,_0x42984c,_0x5bcda3);};}function P(_0x8e7206,_0xd04547,_0x54ba98,_0x373fe0){const _0x1efea1=_0xf14a5a;var _0x10401b=arguments[_0x1efea1(0x215)],_0xf20a9b=_0x10401b<0x3?_0xd04547:_0x373fe0===null?_0x373fe0=Object[_0x1efea1(0x365)](_0xd04547,_0x54ba98):_0x373fe0,_0x221c97;if(typeof Reflect==_0x1efea1(0x2f5)&&typeof Reflect[_0x1efea1(0x450)]==_0x1efea1(0x227))_0xf20a9b=Reflect[_0x1efea1(0x450)](_0x8e7206,_0xd04547,_0x54ba98,_0x373fe0);else{for(var _0x158557=_0x8e7206[_0x1efea1(0x215)]-0x1;_0x158557>=0x0;_0x158557--)(_0x221c97=_0x8e7206[_0x158557])&&(_0xf20a9b=(_0x10401b<0x3?_0x221c97(_0xf20a9b):_0x10401b>0x3?_0x221c97(_0xd04547,_0x54ba98,_0xf20a9b):_0x221c97(_0xd04547,_0x54ba98))||_0xf20a9b);}return _0x10401b>0x3&&_0xf20a9b&&Object[_0x1efea1(0xcf)](_0xd04547,_0x54ba98,_0xf20a9b),_0xf20a9b;}let F=class{constructor(_0x52a783,_0x5e9d30,_0x413cdb){const _0x5bab7a=_0xf14a5a;this[_0x5bab7a(0x4a0)]=_0x52a783,this[_0x5bab7a(0x141)]=_0x5e9d30,this[_0x5bab7a(0x2ea)]=_0x413cdb;}[_0xf14a5a(0x417)](){const _0x521d7b=_0xf14a5a;return this[_0x521d7b(0x2ea)][_0x521d7b(0x31f)](_[_0x521d7b(0x348)]['Dom'],this[_0x521d7b(0x235)]());}[_0xf14a5a(0x10b)](_0x23c610){const _0x35ca47=_0xf14a5a;let _0x479079=_0x23c610[_0x35ca47(0x163)][_0x35ca47(0x34a)];if(!_0x479079)throw Error('Base\x20dashboard\x20chart\x20'+_0x23c610['chartId']+_0x35ca47(0x360));let _0x46cb24=this['_localeService']['getDirection']();return{'config':_0x479079,'style':(0x0,_[_0x35ca47(0x371)])({..._0x23c610['model'][_0x35ca47(0x4c8)],'runtime':_0x23c610[_0x35ca47(0x163)][_0x35ca47(0x4bd)](_0x46cb24),'direction':_0x46cb24},_0x479079[_0x35ca47(0xf6)])};}[_0xf14a5a(0x235)](){const _0x1b222a=_0xf14a5a;return{'resolveHostStyle':({style:_0x2c772d})=>(0x0,_[_0x1b222a(0x444)])({'style':_0x2c772d,'getRenderColor':_0x4a7b6d=>this[_0x1b222a(0x141)][_0x1b222a(0x3e1)](_0x4a7b6d)}),'resolveRenderBackgroundColor':({hostStyle:_0x5c4b3e})=>_0x5c4b3e[_0x1b222a(0x3e8)]};}};F=P([N(0x0,(0x0,a['Inject'])(a[_0xf14a5a(0x207)])),N(0x1,(0x0,a[_0xf14a5a(0x268)])(_[_0xf14a5a(0x251)])),N(0x2,_['IChartRenderModelManagerService'])],F);function I(_0x5bf26e,_0x599bbc){const _0x7b84c7=_0xf14a5a;var _0x180dc0;_0x5bf26e['style'][_0x7b84c7(0x23c)]=_0x599bbc[_0x7b84c7(0x3e8)]??_0x7b84c7(0x28b),_0x5bf26e[_0x7b84c7(0x4c8)][_0x7b84c7(0x128)]=(_0x180dc0=_0x599bbc[_0x7b84c7(0x128)])!=null&&_0x180dc0['color']&&_0x599bbc[_0x7b84c7(0x128)]['width']?_0x599bbc['border']['width']+'px\x20solid\x20'+_0x599bbc['border'][_0x7b84c7(0x192)]:'',_0x5bf26e[_0x7b84c7(0x4c8)]['borderRadius']=_0x599bbc['radius']?_0x599bbc[_0x7b84c7(0x1ff)]+'px':'',_0x5bf26e['style'][_0x7b84c7(0x42c)]=_0x7b84c7(0x451),_0x5bf26e['style']['boxSizing']=_0x7b84c7(0x1c0);}function L(_0x4f1f06){'@babel/helpers - typeof';const _0x3cecd8=_0xf14a5a;return L=typeof Symbol==_0x3cecd8(0x227)&&typeof Symbol[_0x3cecd8(0x28f)]==_0x3cecd8(0x123)?function(_0x470412){return typeof _0x470412;}:function(_0x602139){const _0x7ffc5=_0x3cecd8;return _0x602139&&typeof Symbol==_0x7ffc5(0x227)&&_0x602139['constructor']===Symbol&&_0x602139!==Symbol[_0x7ffc5(0x471)]?_0x7ffc5(0x123):typeof _0x602139;},L(_0x4f1f06);}function R(_0x5a4a98,_0x407642){const _0x4bf3f7=_0xf14a5a;if(L(_0x5a4a98)!=_0x4bf3f7(0x2f5)||!_0x5a4a98)return _0x5a4a98;var _0x170403;if(typeof Symbol<'u'&&(_0x170403=_0x5a4a98[Symbol['toPrimitive']])!==void 0x0){var _0x5012ee=_0x170403[_0x4bf3f7(0x468)](_0x5a4a98,_0x407642||_0x4bf3f7(0x24c));if(L(_0x5012ee)!=_0x4bf3f7(0x2f5))return _0x5012ee;throw TypeError(_0x4bf3f7(0x497));}return(_0x407642===_0x4bf3f7(0x4be)?String:Number)(_0x5a4a98);}function z(_0xe6e3de){const _0x3b9067=_0xf14a5a;var _0x18de0c=R(_0xe6e3de,_0x3b9067(0x4be));return L(_0x18de0c)==_0x3b9067(0x123)?_0x18de0c:_0x18de0c+'';}function B(_0xb53cf0,_0x4780eb,_0xaf5fdd){const _0x465ff2=_0xf14a5a;return(_0x4780eb=z(_0x4780eb))in _0xb53cf0?Object[_0x465ff2(0xcf)](_0xb53cf0,_0x4780eb,{'value':_0xaf5fdd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xb53cf0[_0x4780eb]=_0xaf5fdd,_0xb53cf0;}var V=class extends a['Disposable']{constructor(_0x2f777d,_0x5b9e25){const _0x563fae=_0xf14a5a;super(),this['chartId']=_0x2f777d,this[_0x563fae(0x2c0)]=_0x5b9e25,B(this,_0x563fae(0x3ee),_[_0x563fae(0x348)]['Dom']);}[_0xf14a5a(0x2aa)](){const _0x53e897=_0xf14a5a;return{'width':Math[_0x53e897(0x272)](0x1,this[_0x53e897(0x2c0)][_0x53e897(0x133)]),'height':Math[_0x53e897(0x272)](0x1,this['_element']['clientHeight'])};}[_0xf14a5a(0x385)](_0x370355){const _0xf95ce2=_0xf14a5a;I(this[_0xf95ce2(0x2c0)],_0x370355);}async[_0xf14a5a(0xfc)](){const _0x53ba05=_0xf14a5a;return this[_0x53ba05(0x2c0)];}['checkMounted'](){const _0x57e964=_0xf14a5a;return this[_0x57e964(0x2c0)]['isConnected'];}['syncLayout'](){}['markReady'](){}['markNotReady'](){}};function re({isRowDirection:_0x2f85d2,runtime:_0x2e5fe9}){const _0x2fea09=_0xf14a5a;let _0x4ac5c4=(0x0,h[_0x2fea09(0x45b)])(null),_0xdd6a70=(0x0,m['useDependency'])(a[_0x2fea09(0x207)]),_0x11a2ce=(0x0,m[_0x2fea09(0x491)])(a[_0x2fea09(0x363)]),_0xb83f7f=(0x0,m[_0x2fea09(0x491)])(F),_0x22a31b=(0x0,m[_0x2fea09(0x491)])(a[_0x2fea09(0xe4)]);return(0x0,h[_0x2fea09(0x48c)])(()=>{const _0x5b4e2c=_0x2fea09;let _0x56fa2d=_0x4ac5c4[_0x5b4e2c(0x1fa)];if(!_0x56fa2d)return;_0x56fa2d[_0x5b4e2c(0x2b2)]();let {chartId:_0x471a02,model:_0x47d1c9}=_0x2e5fe9,_0x49fad9=_0x47d1c9['dataSource'],_0x3c4501=new V(_0x471a02,_0x56fa2d),_0x2ed459=_0xb83f7f[_0x5b4e2c(0x417)](),_0x5e15de=!0x1,_0x5eeabb=null,_0x3c486a=null,_0x23a905=null,_0x3d486f=null,_0x5589b1=!0x1,_0x12d07b=!0x1,_0xdebf8f=Promise['resolve']();_0x2ed459[_0x5b4e2c(0x120)](_0x3c4501);let _0x448617=()=>{const _0x4715af=_0x5b4e2c;var _0x2d9c70,_0xe5dfaa,_0x5d39bd,_0x515a03;if(document[_0x4715af(0x337)]===_0x4715af(0x451)||(_0x2d9c70=(_0xe5dfaa=window)[_0x4715af(0x10e)])!=null&&(_0x2d9c70=_0x2d9c70[_0x4715af(0x468)](_0xe5dfaa,_0x4715af(0x2a0)))!=null&&_0x2d9c70[_0x4715af(0x375)]||(_0x5d39bd=(_0x515a03=window)[_0x4715af(0x10e)])!=null&&(_0x5d39bd=_0x5d39bd[_0x4715af(0x468)](_0x515a03,_0x4715af(0x38f)))!=null&&_0x5d39bd[_0x4715af(0x375)]||!_0x56fa2d[_0x4715af(0x453)])return!0x1;let _0x4f67be=_0x56fa2d[_0x4715af(0x29c)]();return _0x4f67be[_0x4715af(0x1b4)]>0x0&&_0x4f67be['height']>0x0&&_0x4f67be[_0x4715af(0x433)]>0x0&&_0x4f67be['bottom']>0x0&&_0x4f67be[_0x4715af(0x364)]<window['innerWidth']&&_0x4f67be[_0x4715af(0x1d0)]<window[_0x4715af(0x15e)];},_0x1f1933=()=>{const _0x57595b=_0x5b4e2c;_0x3c486a!==null&&clearTimeout(_0x3c486a),_0x56fa2d[_0x57595b(0x388)]['baseChartDataAnimation']=_0x57595b(0x109),_0x56fa2d[_0x57595b(0x388)]['baseChartDataAnimationDuration']=String(_[_0x57595b(0x110)]),_0x3c486a=setTimeout(()=>{const _0x378c09=_0x57595b;_0x3c486a=null,delete _0x56fa2d['dataset']['baseChartDataAnimation'],delete _0x56fa2d[_0x378c09(0x388)][_0x378c09(0xc4)];},_[_0x57595b(0x110)]);},_0x16ee34=(0x0,a[_0x5b4e2c(0x21f)])(()=>{const _0x5ba3d3=_0x5b4e2c;if(_0x5e15de||(_0x5eeabb!==null&&(clearTimeout(_0x5eeabb),_0x5eeabb=null),!_0x47d1c9[_0x5ba3d3(0x34a)]))return;let _0x2b1826=_0x12d07b;_0x12d07b=!0x1,_0x56fa2d[_0x5ba3d3(0x388)][_0x5ba3d3(0x4d0)]=String(_0x47d1c9['chartType']),_0x56fa2d[_0x5ba3d3(0x388)][_0x5ba3d3(0xea)]=String(_0x2f85d2);let _0x2fdfe9=_0xb83f7f[_0x5ba3d3(0x10b)](_0x2e5fe9),_0x4f9fd9={'chartId':_0x471a02,'config':_0x2fdfe9[_0x5ba3d3(0x34a)],'style':_0x2fdfe9[_0x5ba3d3(0x4c8)]};_0xdebf8f=_0xdebf8f[_0x5ba3d3(0x173)](async()=>{const _0x52ef4b=_0x5ba3d3;_0x5e15de||(_0x56fa2d[_0x52ef4b(0x388)][_0x52ef4b(0x1b6)]=String(Number(_0x56fa2d[_0x52ef4b(0x388)][_0x52ef4b(0x1b6)]??0x0)+0x1),_0x2b1826&&_0x23a905&&_0x2ed459[_0x52ef4b(0x176)]&&_0x448617()?(await _0x2ed459[_0x52ef4b(0x176)](_0x23a905,_0x4f9fd9,{'duration':_[_0x52ef4b(0x110)]}),_0x5e15de||_0x1f1933()):await _0x2ed459[_0x52ef4b(0x37e)](_0x4f9fd9),_0x23a905=_0x4f9fd9);})['catch'](_0x1d09c6=>_0x11a2ce[_0x5ba3d3(0x114)]('[BasePivotChart]\x20Failed\x20to\x20render\x20chart.',_0x1d09c6));},0x64,{'leading':!0x0,'trailing':!0x0,'maxWait':0x64}),_0x3f7a25=(_0x49abb3=!0x1)=>{_0x12d07b||=_0x49abb3,_0x5589b1||(_0x5589b1=!0x0,queueMicrotask(()=>{_0x5589b1=!0x1,_0x5e15de||_0x16ee34();}));},_0x3166f6=[_0x49fad9[_0x5b4e2c(0x249)][_0x5b4e2c(0x298)](_0x54fe20=>{const _0x1463da=_0x5b4e2c;let _0x5c6b30=JSON[_0x1463da(0x2a9)](_0x54fe20);_0x3d486f!=null&&_0x3d486f!==_0x5c6b30&&_0x3f7a25(!0x0),_0x3d486f=_0x5c6b30;}),_0x47d1c9['config$'][_0x5b4e2c(0x298)](_0x3f7bc6=>{_0x3f7bc6&&_0x3f7a25();}),_0x47d1c9['style$'][_0x5b4e2c(0x298)](()=>_0x3f7a25()),_0xdd6a70['direction$'][_0x5b4e2c(0x298)](()=>_0x3f7a25()),(0x0,c[_0x5b4e2c(0x38e)])([_0x22a31b[_0x5b4e2c(0x321)],_0x22a31b[_0x5b4e2c(0x3fc)]])[_0x5b4e2c(0x2f4)]((0x0,c['skip'])(0x1))['subscribe'](()=>_0x3f7a25())],_0x25e667=typeof ResizeObserver>'u'?null:new ResizeObserver(()=>{const _0xc92d76=_0x5b4e2c;_0x5e15de||(_0x3c4501[_0xc92d76(0x130)](),_0x5eeabb!==null&&clearTimeout(_0x5eeabb),_0x5eeabb=setTimeout(()=>_0x3f7a25(),0x64));});return _0x25e667==null||_0x25e667[_0x5b4e2c(0x2d1)](_0x56fa2d),()=>{const _0x45ad01=_0x5b4e2c;_0x5e15de=!0x0,_0x16ee34['cancel'](),_0x5eeabb!==null&&clearTimeout(_0x5eeabb),_0x3c486a!==null&&clearTimeout(_0x3c486a),delete _0x56fa2d[_0x45ad01(0x388)][_0x45ad01(0x147)],delete _0x56fa2d['dataset']['baseChartDataAnimationDuration'],_0x25e667==null||_0x25e667['disconnect'](),_0x3166f6[_0x45ad01(0x398)](_0x342dc1=>_0x342dc1[_0x45ad01(0x3ba)]()),_0x2ed459[_0x45ad01(0x274)](),_0x3c4501['dispose'](),_0x56fa2d['replaceChildren']();};},[_0x2f85d2,_0xdd6a70,_0x11a2ce,_0xb83f7f,_0x2e5fe9,_0x22a31b]),(0x0,g[_0x2fea09(0x205)])(_0x2fea09(0x331),{'ref':_0x4ac5c4,'data-u-comp':_0x2fea09(0x3e3),'className':_0x2fea09(0x340)});}function ie({filters:_0x261e2f,onRuntimeChange:_0x26b64b,unitId:_0x31c35f,widget:_0x4b665a}){const _0x3c460f=_0xf14a5a;let _0x3c3a0a=(0x0,m[_0x3c460f(0x491)])(a['IUniverInstanceService']),_0x5d081f=(0x0,m[_0x3c460f(0x491)])(a[_0x3c460f(0x207)]),_0x702b0a=(0x0,m['useDependency'])(a[_0x3c460f(0x363)]),_0x3cd315=(0x0,m[_0x3c460f(0x491)])(e[_0x3c460f(0x493)]),[_0x54e274,_0x2c2800]=(0x0,h[_0x3c460f(0x2b8)])(null),[_0x4a57be,_0x2b1941]=(0x0,h[_0x3c460f(0x2b8)])(!0x1),[_0x3566a4,_0x455646]=(0x0,h[_0x3c460f(0x2b8)])(null),_0x1b38af=(0x0,h[_0x3c460f(0x45b)])(_0x3c460f(0x225)+(0x0,a[_0x3c460f(0x40b)])(0x8)),_0x2a428f=_0x3c3a0a[_0x3c460f(0x29a)](_0x31c35f,a[_0x3c460f(0x4cd)][_0x3c460f(0x31e)]),_0x140a03=_0x2a428f==null?void 0x0:_0x2a428f[_0x3c460f(0x164)]()[_0x3c460f(0x419)][_0x4b665a[_0x3c460f(0x372)]],_0x48ccea=_0x140a03==null?void 0x0:_0x140a03[_0x3c460f(0x34d)][_0x4b665a[_0x3c460f(0xe5)]],_0x5cfa47=H(_0x48ccea);if((0x0,h[_0x3c460f(0x48c)])(()=>{const _0x3ac05c=_0x3c460f;if(!_0x5cfa47)return;let _0x308242=_0x1b38af[_0x3ac05c(0x1fa)];return _0x3cd315[_0x3ac05c(0x4b3)](_0x308242,{'unitId':_0x31c35f,'tableId':_0x4b665a[_0x3ac05c(0x372)],'viewId':_0x4b665a[_0x3ac05c(0xe5)],'filters':[]}),()=>{const _0x5ccc58=_0x3ac05c;_0x3cd315[_0x5ccc58(0x424)](_0x31c35f,_0x308242),_0x26b64b==null||_0x26b64b(_0x4b665a['id'],null);};},[_0x5cfa47,_0x26b64b,_0x3cd315,_0x31c35f,_0x4b665a['id'],_0x4b665a[_0x3c460f(0xe5)],_0x4b665a[_0x3c460f(0x372)]]),(0x0,h[_0x3c460f(0x48c)])(()=>{const _0x4c8cdd=_0x3c460f;if(!H(_0x48ccea))return;let _0x55fb45=!0x0,_0x509dcf=_0x4b665a[_0x4c8cdd(0x3a9)]??_0x48ccea[_0x4c8cdd(0x34a)][_0x4c8cdd(0x3a9)],_0x24299b={'unitId':_0x31c35f,'tableId':_0x4b665a[_0x4c8cdd(0x372)],'viewId':_0x4b665a[_0x4c8cdd(0xe5)],'filters':[_0x48ccea[_0x4c8cdd(0x4a5)]??null,..._0x261e2f]};return _0x3cd315[_0x4c8cdd(0x4bb)](_0x31c35f,_0x1b38af[_0x4c8cdd(0x1fa)],_0x24299b,_0x509dcf)[_0x4c8cdd(0x173)](_0x1835e3=>{const _0x238a7a=_0x4c8cdd;if(!_0x55fb45||!_0x1835e3)return;let _0x5c5263=_0x3cd315[_0x238a7a(0x1d7)](_0x31c35f,_0x1b38af[_0x238a7a(0x1fa)])??null;_0x2c2800(_0x1835e3),_0x455646(_0x5c5263),_0x2b1941(!0x1),_0x26b64b==null||_0x26b64b(_0x4b665a['id'],_0x5c5263);})[_0x4c8cdd(0xc0)](_0x3d8f3d=>{_0x702b0a['error']('[DashboardPivotChartWidget]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.',_0x3d8f3d),_0x55fb45&&(_0x2c2800(null),_0x2b1941(!0x0));}),()=>{_0x55fb45=!0x1;};},[_0x261e2f,_0x702b0a,_0x26b64b,_0x3cd315,_0x31c35f,_0x48ccea,_0x4b665a[_0x3c460f(0x3a9)],_0x4b665a['id'],_0x4b665a[_0x3c460f(0xe5)],_0x4b665a[_0x3c460f(0x372)]]),!H(_0x48ccea))return(0x0,g[_0x3c460f(0x205)])(_0x3c460f(0x331),{'className':_0x3c460f(0x1d9),'children':_0x5d081f['t'](_0x3c460f(0x143))});let _0x32cdcb=_0x3cd315[_0x3c460f(0x1d7)](_0x31c35f,_0x1b38af[_0x3c460f(0x1fa)])===_0x3566a4?_0x3566a4:null;return _0x54e274&&_0x32cdcb?(0x0,g[_0x3c460f(0x205)])(re,{'isRowDirection':(0x0,e[_0x3c460f(0xdd)])((_0x4b665a[_0x3c460f(0x3a9)]??_0x48ccea['config'][_0x3c460f(0x3a9)])[_0x3c460f(0x175)]),'runtime':_0x32cdcb}):(0x0,g[_0x3c460f(0x205)])(_0x3c460f(0x331),{'className':'univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','children':_0x5d081f['t'](_0x4a57be?'bases-dashboard-ui.pivot.calculationFailed':_0x3c460f(0x28c))});}function H(_0x353378){const _0x33d1db=_0xf14a5a;return(_0x353378==null?void 0x0:_0x353378[_0x33d1db(0xf6)])===a[_0x33d1db(0x40a)][_0x33d1db(0x3af)]&&typeof _0x353378[_0x33d1db(0x34a)]==_0x33d1db(0x2f5)&&_0x353378[_0x33d1db(0x34a)]!==null&&_0x33d1db(0x2f1)in _0x353378['config']&&_0x33d1db(0x3a9)in _0x353378[_0x33d1db(0x34a)];}const ae={'alignment':_0xf14a5a(0x364),'fontSize':0x12,'fontSizeMode':'auto'};function oe(_0x25f8c4){return{...ae,..._0x25f8c4['appearance']};}function U(_0x222db0){const _0x5b90ae=_0xf14a5a;var _0x34665f;return((_0x34665f=_0x222db0[_0x5b90ae(0x1de)])==null?void 0x0:_0x34665f['dataStream'][_0x5b90ae(0x299)](/\r\n$/,'')[_0x5b90ae(0x299)](/\r/g,'\x0a'))??'';}function se(_0x3cbb1e,_0x3d0c97){const _0x22b149=_0xf14a5a;var _0x19d4cf;let _0x170cb4=_0x3d0c97[_0x22b149(0x299)](/\r\n|\r/g,'\x0a')[_0x22b149(0x2e1)]('\x0a'),_0x2e612b=_0x170cb4[_0x22b149(0x34e)]('\x0d')+'\x0d\x0a',_0x53344b=((_0x19d4cf=_0x3cbb1e[_0x22b149(0x1de)])==null?void 0x0:_0x19d4cf[_0x22b149(0x16d)])??[],_0x30770c=new Set(_0x53344b[_0x22b149(0x4a6)](_0x484f05=>_0x484f05[_0x22b149(0x1fe)])),_0x3ae47f=0x0,_0x3f04b3=_0x170cb4[_0x22b149(0x4a6)]((_0x23d250,_0x58aabf)=>{const _0x53c562=_0x22b149;_0x3ae47f+=_0x23d250[_0x53c562(0x215)];let _0x4a57db={..._0x53344b[_0x58aabf]??{'startIndex':_0x3ae47f,'paragraphId':(0x0,a['createParagraphId'])(_0x30770c)},'startIndex':_0x3ae47f};return _0x3ae47f+=0x1,_0x4a57db;});return{..._0x3cbb1e,'body':{..._0x3cbb1e['body'],'dataStream':_0x2e612b,'paragraphs':_0x3f04b3,'textRuns':[]}};}function ce({widget:_0x5d2206}){const _0x592ab9=_0xf14a5a;let _0x590436=(0x0,m[_0x592ab9(0x491)])(a[_0x592ab9(0xe4)]),_0x33a7c0=(0x0,m[_0x592ab9(0x491)])(a['LocaleService']),_0x79a8bd=(0x0,m[_0x592ab9(0x3b4)])(()=>_0x590436[_0x592ab9(0x321)],_0x590436['getCurrentTheme'](),!0x1,[_0x590436]),_0x106d13=(0x0,h[_0x592ab9(0x45b)])(null),_0x57fe35=(0x0,h[_0x592ab9(0x45b)])(null),_0xbf7b9a=oe(_0x5d2206),_0x201c78=_0xbf7b9a[_0x592ab9(0x23c)]??_0x79a8bd['gray'][0x0],_0x120332=_0xbf7b9a[_0x592ab9(0x2e9)]??_0x79a8bd[_0x592ab9(0x287)][0x3e8],_0x213902=U(_0x5d2206[_0x592ab9(0x4b4)]);return(0x0,h[_0x592ab9(0x48c)])(()=>{const _0x433a35=_0x592ab9;let _0x4dbdcd=_0x106d13['current'],_0x23f7d=_0x57fe35[_0x433a35(0x1fa)];if(!_0x4dbdcd||!_0x23f7d)return;let _0x55c9f7=()=>{const _0x5ba775=_0x433a35;if(_0xbf7b9a[_0x5ba775(0x3d7)]===_0x5ba775(0x121)||!_0x4dbdcd[_0x5ba775(0x133)]||!_0x4dbdcd[_0x5ba775(0x395)]){_0x23f7d[_0x5ba775(0x4c8)]['fontSize']=_0xbf7b9a[_0x5ba775(0x2c9)]+'px';return;}let _0x5acff0=0x8,_0x3c3865=0x48,_0x4f2a82=_0x5acff0;for(;_0x5acff0<=_0x3c3865;){let _0x5ce244=Math[_0x5ba775(0x2b4)]((_0x5acff0+_0x3c3865)/0x2);_0x23f7d[_0x5ba775(0x4c8)][_0x5ba775(0x2c9)]=_0x5ce244+'px',_0x23f7d['scrollWidth']<=_0x4dbdcd[_0x5ba775(0x133)]&&_0x23f7d[_0x5ba775(0x202)]<=_0x4dbdcd[_0x5ba775(0x395)]?(_0x4f2a82=_0x5ce244,_0x5acff0=_0x5ce244+0x1):_0x3c3865=_0x5ce244-0x1;}_0x23f7d[_0x5ba775(0x4c8)]['fontSize']=_0x4f2a82+'px';};if(_0x55c9f7(),typeof ResizeObserver>'u')return;let _0x28029d=new ResizeObserver(_0x55c9f7);return _0x28029d[_0x433a35(0x2d1)](_0x4dbdcd),()=>_0x28029d[_0x433a35(0xf3)]();},[_0xbf7b9a[_0x592ab9(0x2c9)],_0xbf7b9a[_0x592ab9(0x3d7)],_0x213902]),(0x0,g['jsx'])('div',{'data-dashboard-text-widget':_0x5d2206['id'],'className':_0x592ab9(0x3a4),'style':{'backgroundColor':_0x201c78,'color':_0x120332},'children':(0x0,g[_0x592ab9(0x205)])(_0x592ab9(0x331),{'ref':_0x106d13,'data-dashboard-text-content':!0x0,'aria-label':_0x33a7c0['t'](_0x592ab9(0x31a)),'className':'univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden','children':(0x0,g[_0x592ab9(0x205)])(_0x592ab9(0x331),{'ref':_0x57fe35,'data-dashboard-text-value':!0x0,'data-font-size-mode':_0xbf7b9a[_0x592ab9(0x3d7)],'className':_0x592ab9(0x14e),'style':{'textAlign':_0xbf7b9a[_0x592ab9(0x11d)]},'children':_0x213902})})});}function le({dashboard:_0xc24236,editable:_0x49b4d2=!0x0,onSelectWidget:_0x236173,renderWidget:_0x489fe2,renderWidgetActions:_0x4cc932,selectedWidgetId:_0x4afd3d,widgetLabel:_0x3e5b7c}){const _0x41ae0d=_0xf14a5a;return(0x0,g[_0x41ae0d(0x205)])(_0x41ae0d(0x331),{'data-dashboard-scroll-container':!0x0,'className':(0x0,f[_0x41ae0d(0x108)])(_0x41ae0d(0x374),f[_0x41ae0d(0x35f)]),'onClick':_0x49b4d2?_0x4eeddf=>{const _0x49eb78=_0x41ae0d;if(!(_0x4eeddf['target']instanceof Node)||!_0x4eeddf[_0x49eb78(0x406)][_0x49eb78(0x320)](_0x4eeddf[_0x49eb78(0x135)]))return;let _0x4483fa=_0x4eeddf['target']instanceof Element?_0x4eeddf[_0x49eb78(0x135)]:_0x4eeddf[_0x49eb78(0x135)][_0x49eb78(0x3c6)];_0x4483fa!=null&&_0x4483fa[_0x49eb78(0x16b)](_0x49eb78(0x2bb))||_0x236173==null||_0x236173();}:void 0x0,'children':(0x0,g[_0x41ae0d(0x205)])(_0x41ae0d(0x331),{'data-dashboard-grid':!0x0,'className':_0x41ae0d(0x489),'children':_0xc24236[_0x41ae0d(0x399)][_0x41ae0d(0x4a6)](_0x4b464e=>{const _0x18e2ee=_0x41ae0d;let _0x28344d=_0xc24236[_0x18e2ee(0x22d)][_0x4b464e];if(!_0x28344d)return null;let _0x202eb6=Math[_0x18e2ee(0x272)](0xb4,_0x28344d[_0x18e2ee(0xf0)][_0x18e2ee(0x442)]*e[_0x18e2ee(0x198)]);return(0x0,g[_0x18e2ee(0x23b)])('article',{'data-dashboard-widget':_0x28344d['id'],'aria-label':_0x28344d[_0x18e2ee(0x3ff)]??_0x3e5b7c(_0x28344d),'className':(0x0,f[_0x18e2ee(0x108)])(_0x18e2ee(0x30d),_0x28344d[_0x18e2ee(0xf6)]===e[_0x18e2ee(0x294)][_0x18e2ee(0x3a3)]||_0x28344d[_0x18e2ee(0xf6)]===e['BaseDashboardWidgetType'][_0x18e2ee(0x2ac)]?_0x18e2ee(0x226):_0x18e2ee(0x3bb),_0x49b4d2&&_0x4afd3d===_0x28344d['id']?_0x18e2ee(0x24e):_0x18e2ee(0x17b)),'style':{'minHeight':_0x202eb6,'height':_0x202eb6},'tabIndex':_0x49b4d2?0x0:void 0x0,'onClick':_0x49b4d2?()=>_0x236173==null?void 0x0:_0x236173(_0x28344d['id']):void 0x0,'onFocus':_0x49b4d2?()=>_0x236173==null?void 0x0:_0x236173(_0x28344d['id']):void 0x0,'children':[_0x49b4d2&&(0x0,g[_0x18e2ee(0x205)])(_0x18e2ee(0x331),{'className':_0x18e2ee(0xe1),'children':_0x4cc932==null?void 0x0:_0x4cc932(_0x28344d)}),(0x0,g[_0x18e2ee(0x205)])(_0x18e2ee(0x331),{'className':_0x18e2ee(0x3fd),'children':_0x489fe2(_0x28344d)})]},_0x28344d['id']);})})});}let W=class extends n[_0xf14a5a(0x1c1)]{constructor(_0x15c722){super(_0x15c722),B(this,'activeRuntimeModel',null);}['executeChartUpdateConfig'](_0x31d033){}};W=P([N(0x0,(0x0,a[_0xf14a5a(0x268)])(n['ChartViewStateRegistry']))],W);function ue({children:_0x78dd81}){const _0x2109bf=_0xf14a5a;return(0x0,g[_0x2109bf(0x205)])(n[_0x2109bf(0x43f)],{'children':_0x78dd81});}function G(_0x48abf7){const _0x40f9bb=_0xf14a5a;return(0x0,g[_0x40f9bb(0x205)])(f['MobileSelect'],{..._0x48abf7,'size':_0x40f9bb(0x4d6)});}function de(_0xaeb8aa){return(0x0,g['jsx'])(f['MobileDropdownMenu'],{..._0xaeb8aa});}function fe(_0x5ed460){const _0x54a6e7=_0xf14a5a;return(0x0,g['jsx'])(f[_0x54a6e7(0x458)],{..._0x5ed460});}function _0x93eb(){const _0x65284e=['createElement','isFinite','univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','YYYY-MM-DD','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','merge','setSortInfo','univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','pie','base-pivot-chart-','bases-dashboard-ui.dashboard.image','univer-shrink-0\x20univer-px-4','SetBasePermissionCommand','compact','values','rightYAxis','ILayoutService','varp','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','ChartWaterfallStyleSection','link','series','Subtotal','univer-bottom-px\x20univer-right-px\x20univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nwse-resize','cover','\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','description','displayName','preventDefault','Radar','bases-dashboard-ui.chart.section.relation','bases-dashboard-ui.dashboard.text','packageName','fieldId','IBaseDashboardUIExtensionRegistryService','UNIVER_BASE','createChartInstance','contains','currentTheme$','bases-dashboard-ui.dashboard.formulaShape','IUniverInstanceService','titles','group','univer-flex\x20univer-min-h-full\x20univer-flex-col','univer-grid\x20univer-gap-2\x20univer-p-3','IncreaseIcon','toLocaleLowerCase','data','from','univer-cursor-grabbing','UniverBaseDashboardUIPlugin','UpdatedAt','bases-dashboard-ui.pivot.description','ChartHeatmapStyleSection','div','bases-dashboard-ui.pivot.addToFilter','bases-dashboard-ui.pivot.fields','filterFields','univer-w-full','undoRedoStatus$','visibilityState','isArray','bases-dashboard-ui.chart.common.series','updateFieldPosition','univer-mt-2\x20univer-w-full','univer-absolute\x20univer-inset-x-0\x20univer-top-0\x20univer-w-full\x20univer-truncate\x20univer-text-sm\x20univer-font-medium\x20univer-opacity-80','grouped','accept','bases-dashboard-ui.operators.lessThan','univer-absolute\x20univer-inset-0\x20univer-overflow-hidden','\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','ChartWaterfallSetupFields','header','destructive','fit','bases-dashboard-ui.dashboardInspector.center','button','ChartRenderMode','dashboard-','config','label','MoreDownIcon','views','join','dashboard-widget-','onDragOver','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','canView','bases-dashboard-ui.chart.section.chord','bases-dashboard-ui.pivot.summarizeBy','univer-grid\x20univer-h-full\x20univer-min-h-0\x20univer-gap-2\x20univer-p-2','bases-dashboard-ui.chart.common.customize','bases-dashboard-ui.dashboardInspector.numberFormat','univer-sticky\x20univer-top-0\x20univer-z-10\x20univer-bg-gray-50\x20dark:!univer-bg-gray-800','bases-dashboard-ui.dashboardInspector.close','univer-w-full\x20univer-justify-start','repeatColLabels','pointermove','bases-dashboard-ui.pivot.values','bases-dashboard-ui.dashboard.defaultName','scrollbarClassName','\x20has\x20no\x20render\x20config.','univer-mb-2\x20univer-text-xs\x20univer-font-medium\x20univer-text-gray-600\x20dark:!univer-text-gray-300','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','ILogService','left','getOwnPropertyDescriptor','shapeType','sourceType','ChartSectionAccordionTrigger','bases-dashboard-ui.dashboard.widgetActions','darkMode','shapeData','redos','bases-dashboard-ui.chart.common.editChart','bases-dashboard-ui.pivot.defaultName','PenIcon','ChartNumberFormatAtom','resolveChartRuntimeStyle','tableId','image/*','univer-h-full\x20univer-min-h-0\x20univer-overflow-auto\x20univer-bg-gray-100\x20univer-p-3\x20dark:!univer-bg-gray-950','matches','Column','ChartTitlesSection','univer-flex\x20univer-items-center\x20univer-gap-2','univer-cursor-grab','bases-dashboard-ui.dashboardInspector.backgroundImage','bases-dashboard-ui.dashboardInspector.general','univer-mt-2','bases-dashboard-ui.pivot.confirm','render','WordCloud','indexOf','bases-dashboard-ui.dashboardInspector.originalSize','toJSON','viewOrder','displayMode','setStyle','univer-grid\x20univer-gap-4\x20univer-p-4','documentStyle','dataset','bases-dashboard-ui.dashboard.tableFilter','select','univer-grid\x20univer-grid-cols-12\x20univer-pb-6','useCallback','items','combineLatest','print','height','numfmt','item','Tooltip','px\x20solid\x20','clientHeight','find','ChartEditPanel','forEach','widgetOrder','blank','bases-dashboard-ui.pivot.calculationFailed','documentElement','IPermissionService','useChartEditorHasRightAxis','IImageIoService','isPrefixValue','bases-dashboard-ui.dashboardInspector.data','pointerup','Image','univer-box-border\x20univer-flex\x20univer-h-full\x20univer-w-full\x20univer-items-center\x20univer-overflow-hidden\x20univer-p-4','univer-flex\x20univer-flex-col\x20univer-gap-4','stdDevp','outline','shapeText','chart','PivotSubtotalPositionEnum','bases-dashboard-ui.pivot.showColumnGrandTotal','_configService','PivotTableFiledAreaEnum','colCount','Pivot','getImage','univer-flex\x20univer-min-h-0\x20univer-flex-1','entries','middle','useObservable','bases-dashboard-ui.operators.isEmpty','canEditBasePivotView','univer-text-sm\x20univer-font-medium','ChartTypeField','Boxplot','unsubscribe','univer-bg-gray-0\x20dark:!univer-bg-gray-900','view','ChartWordCloudStyleSection','PivotLayoutTypeEnum','univer-min-w-0\x20univer-flex-1','primary','resizeDirection','PivotFilterTypeEnum','univer-w-36','univer-bottom-px\x20univer-left-px\x20-univer-translate-x-1/2\x20univer-translate-y-1/2\x20univer-cursor-nesw-resize','DEFAULT_CHART_LEGEND_VALUES','parentElement','bases-dashboard-ui.pivot.variancePopulation','stroke','bases-dashboard-ui.pivot.count','blur','univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','addFieldWithSourceId','Progress','dateKit','icon','size','src','bases-dashboard-ui.chart.section.wordCloud','bases-dashboard-ui.chart.section.waterfall','bases-dashboard-ui.pivot.blank','univer-relative\x20univer-z-10','bases-dashboard-ui.chart.common.verticalAxis','fontSizeMode','univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','bases-dashboard-ui.dashboardInspector.newCondition','Histogram','base64Cache','bases-dashboard-ui.operators.greaterThanOrEqual','GripVerticalIcon','minmax(0,\x203fr)\x20minmax(0,\x202fr)','univer-flex','Injector','getRenderColor','conjunction','base-pivot-chart','bases-dashboard-ui.mobile.permissions','bases-dashboard-ui.pivot.repeatRowLabels','bases-dashboard-ui.dashboardInspector.editFormula','bases-dashboard-ui.chart.chartTypes.line','fill','4viQmax','getResult','ChartStyleSection','ChartSectionAccordionContent','univer-h-full\x20univer-overflow-auto\x20univer-bg-gray-0\x20univer-p-2\x20dark:!univer-bg-gray-900','mode','trendline','bases-dashboard-ui.pivot.chartOnly','Data','DEFAULT_CHART_PARETO_VALUES','univer-min-w-full\x20univer-border-collapse\x20univer-text-sm','bases-dashboard-ui.chart.section.radar','bases-dashboard-ui.dashboardInspector.currency','ChartRelationStyleSection','bases-dashboard-ui.dashboardInspector.repeat','get','axis','flatMap','univer-text-sm','darkMode$','univer-relative\x20univer-min-h-0\x20univer-flex-1\x20univer-overflow-hidden\x20univer-rounded-lg','base-pivot-chart-style','title','bases-dashboard-ui.pivot.name','subtotal','pattern','relation','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','getTableFieldsByDataFieldId','currentTarget','Gauge','formulaBinding','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-sm\x20univer-text-gray-500','BaseViewType','generateRandomId','errorType','onDrop','univer-h-full\x20univer-w-full\x20univer-bg-transparent','dashboardOrder','AND','allSeriesStyle','RedoIcon','ChartGridlinesAndTicksSection','getFieldCountByArea','Textarea','initialLayouts','createDomChartInstance','BaseMobileFilterPanel','tables','Sunburst','product','rootContainerElement','getDashboard','bases-dashboard-ui.dashboardInspector.dragWidget','bases-dashboard-ui.chart.section.gauge','dashboard-chart-style','univer-size-5\x20univer-rotate-90','getResource','rows','releaseChartRuntime','stopPropagation','ChartSectionAccordionItem','dashboard-text-','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','bases-dashboard-ui.operators.before','filterInfo','bases-dashboard-ui.chart.common.rightVerticalAxis','overflow','fullscreenchange','defaultPrevented','bases-dashboard-ui.pivot.layoutCompact','bases-dashboard-ui.dashboardInspector.left','bases-dashboard-ui.dashboard.rename','1397913jnPdXg','right','ChartStyle','numberFormat','showRowGrandTotal','ChartEditPanelSection','SearchIcon','bases-dashboard-ui.operators.notContains','bases-dashboard-ui.dashboardInspector.right','bases-dashboard-ui.dashboardInspector.reset','text','1.5.0','InputNumber','MobileChartEditorControls','ChartHostAdapter','getValueIndex','rowSpan','bases-dashboard-ui.pivot.min','resolveDefaultChartHostFrameStyle','DEFAULT_CHART_TITLE_VALUES','bases-dashboard-ui.dashboardInspector.removeImage','heatmap','round','PivotDataFieldDataTypeEnum','showColGrandTotal','DropdownMenu','requestFullscreen','scrollTop','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','ImageSourceType','decorate','hidden','bases-dashboard-ui.dashboardInspector.number','isConnected','Pie','bases-dashboard-ui.chart.section.paretoBar','radar','ChartCommonDataMappingSection','MobileDialog','Bubble','[BasePivotView]\x20Failed\x20to\x20update\x20the\x20pivot\x20view.','useRef','bases-dashboard-ui.mobile.moveUp','pointerX','@univerjs-pro/bases-dashboard-ui','univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','PivotChart','BaseUnitCollaborationStatus','bases-dashboard-ui.dashboardInspector.grouped','has','univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','source','bases-dashboard-ui.pivot.acrossThenDown','ChartIndicatorLineSection','call','univer-relative\x20univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','bases-dashboard-ui.pivot.cancel','dataModel','Value','bases-dashboard-ui.chart.section.sunburst','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','MoreHorizontalIcon','univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','prototype','Axes','bases-dashboard-ui.dashboardInspector.currencyCode','RecordId','kind','univer-truncate','Legend','general','ChartEditPanelTab','getDataFieldByTableId','RedoCommand','univer-grid\x20univer-gap-4','pageWrap','conditions','rowFields','getFieldPositionInfoById','IS_NOT_EMPTY','operand','bases-dashboard-ui.chart.section.treemap','bases-dashboard-ui.chart.section.candlestick','UniverBaseDashboardMobileUIPlugin','Area','Fragment','ChartSectionAccordion','univer-grid\x20univer-grid-cols-1\x20univer-gap-2\x20univer-pb-6','lineStrokeType','bases-dashboard-ui.pivot.tableOnly','useEffect','DEFAULT_CHART_LINE_AND_AREA_VALUES','updateValuePosition','some','labelId','useDependency','repeatRowLabels','BaseChartRuntimeService','indicatorLine','bases-dashboard-ui.dashboardInspector.decimalPlaces','univer-mx-auto\x20univer-size-6','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','segmented','waterfall.positive','20aCiJDE','span','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','average','info','UniverBasesUIPlugin','_localeService','1naxxOB','setFieldFormat','wordCloud','Module','filter','map','24pxNPoN','barStyle','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','592UPwkSp','columnFields','bases-dashboard-ui.pivot.rowSubtotalPosition','univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-xs','fieldOrder','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','isTotal','delete','startY','acquireChartRuntime','document','saveImage','\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','ActivateBaseViewOperation','chartBitsUtils','ChartEditPanelTabs','onRemove','refreshChartRuntime','pointerY','getRuntimeContext','string','ParetoBarSeries','rowView','percent','set','bases-dashboard-ui.chart.section.gridlinesAndTicks','presentation','touchDependencies','bases-dashboard-ui.dashboard.pivotChart','ChartIcon','style','IAttachmentIoService','bases-dashboard-ui.pivot.displayName','resize','isHeader','UniverInstanceType','UUID','onCancel','chartType','fillType','openObjectPermissionDialog','bases-dashboard-ui.chart.section.funnel','prefix','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','small','executeCommand','NumberFormat','normalizeEditorFormulaForConfig','Waterfall','base-pivot-options','bases-dashboard-ui.pivot.addToRow','bases-dashboard-ui.pivot.countNumbers','showRowSubtotal','bases-dashboard-ui.pivot.dropFieldsHere','renameField','catch','base-pivot-chart-setup','chartTypeSupportsCapability','disposeWithMe','baseChartDataAnimationDuration','RoundRect','bases-dashboard-ui.mobile.moveDown','TableFilter','bases-dashboard-ui.pivot.average','Rating','includes','UpsertBaseDashboardWidgetCommand','createBasePivotTable','Chord','initial','defineProperty','bases-dashboard-ui.dashboardInspector.custom','focusUnit','univer-flex\x20univer-justify-end\x20univer-gap-2','version','univer-grid\x20univer-grid-cols-2\x20univer-gap-3','BaseDashboard','snapshot','DEFAULT_CHART_STYLE_VALUES','isTopTotal','context','bases-dashboard-ui.pivot.repeatColumnLabels','legend','29841fGrQlx','resolveBasePivotChartRowDirection','var','base-pivot-table-configuration','UniverDocsUIPlugin','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','sum','univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','ThemeService','pivotViewId','waterfallStyle','univer-mx-4\x20univer-mt-4\x20univer-shrink-0','options','univer-flex\x20univer-flex-col\x20univer-gap-3\x20univer-px-4\x20univer-pb-5','chartRowDirection','decimalPlaces','847126ZoXFbF','keydown','ChartAxisSection','UpdateBaseDashboardCommand','layout','ObjectPermissionService','bases-dashboard-ui.pivot.pivotConfiguration','disconnect','column:','bases-dashboard-ui.pivot.showColumnSubtotal','type','fields','ChartSeriesSection','bases-dashboard-ui.dashboardInspector.dataSource','_config','CreatedAt','ensureMount','bases-dashboard-ui.dashboardInspector.replaceImage','change$','depthAxis','NOT_CONTAINS','-univer-left-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize','bases-dashboard-ui.pivot.showRowSubtotal','IConfigService','center','change','number','add','clsx','true','onSettings','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','setCurrentUnitForType','matchMedia','BaseFieldType','CHART_DATA_UPDATE_ANIMATION_DURATION','Candlestick','univer-text-right','PieStyle','error','dimension','Currency','bases-dashboard-ui.pivot.fieldSettings','permissionPointUpdate$','bases-dashboard-ui.pivot.pageDirection','onMove','ChartLegendSection','Heatmap','alignment','DEFAULT_CHART_RADAR_VALUES','original','bind','custom','DescendingIcon','symbol','univer-min-h-0\x20univer-min-w-0\x20univer-flex-1','bases-dashboard-ui.pivot.chartAndTable','DEFAULT_CHART_WATERFALL_SETUP_VALUES','ChartWaterfallStyleTarget','border','bases-dashboard-ui.pivot.numberFormat','fullscreenElement','bases-dashboard-ui.chart.common.legend','ExpandIcon','bases-dashboard-ui.chart.common.switchRowColumn','Series','bases-dashboard-ui.pivot.stdDev','syncLayout','CalendarIcon','[BasePivotView]\x20Failed\x20to\x20calculate\x20the\x20pivot\x20result.','clientWidth','Button','target','setOptions','trim','buildChartTypeSelectOptions','univer-min-h-0\x20univer-overflow-hidden\x20univer-rounded-lg\x20univer-border\x20univer-border-gray-200\x20dark:!univer-border-gray-700','univer-relative\x20univer-z-10\x20univer-flex\x20univer-min-h-0\x20univer-w-full\x20univer-flex-1','\x20/\x20span\x20','bases-dashboard-ui.pivot.searchFields','ascending','bases-dashboard-ui.dashboardInspector.delete','Positive','rowSubtotalPosition','_chartThemeService','ChartEditorProvider','bases-dashboard-ui.dashboardInspector.sourceUnavailable','bases-dashboard-ui.dashboardInspector.clear','ChartTypeSpecificStyleSection','isSubtotal','baseChartDataAnimation','backgroundImage','valuePosition','addEventListener','General','dataFieldId','countNums','univer-w-full\x20univer-whitespace-pre-wrap\x20univer-break-words\x20univer-leading-normal','DEFAULT_CHART_SERIES_VALUES','bases-dashboard-ui.chart.chartTypes.area','DEFAULT_CHART_TRENDLINE_VALUES','ownerDocument','onMoveUp','onMoveDown','operator','ShapeTypeEnum','bases-dashboard-ui.chart.common.setup','bases-dashboard-ui.dashboardInspector.alignment','system','SingleSelect','clientX','valueFields','univer-text-gray-400','innerHeight','Number','univer-right-px\x20univer-top-px\x20univer-translate-x-1/2\x20-univer-translate-y-1/2\x20univer-cursor-nesw-resize','defaultValue','ChartEditorCapability','model','getSnapshot','ChartThreeDSection','alt','Trendline','columnSpan','chartTypeSupportsLineAndAreaStyle','pluginName','closest','getCurrentTheme','paragraphs','univer-m-3','UndoCommand','PivotTableIcon','column','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','then','LineAndArea','orient','renderTransition','useMemo','dashboards','rightY','grandTotal','univer-border-gray-200\x20dark:!univer-border-gray-700','_injector','minmax(0,\x201fr)','ICommandService','bases-dashboard-ui.pivot.showRowGrandTotal','section','onDragStart','contain','ChartAndAxisTitles','DEFAULT_CHART_INDICATOR_LINE_VALUES','bases-dashboard-ui.dashboard.configure','bases-dashboard-ui.chart.common.horizontalAxis','ObjectPermissionButton','\x20/\x20','ChartEditBlockTitle','univer-pointer-events-none\x20univer-absolute\x20univer-left-1/2\x20univer-top-1\x20univer-z-20\x20univer-flex\x20univer-h-5\x20univer-w-8\x20-univer-translate-x-1/2\x20univer-appearance-none\x20univer-items-center\x20univer-justify-center\x20univer-border-0\x20univer-bg-transparent\x20univer-p-0\x20univer-text-gray-400\x20univer-opacity-0\x20univer-shadow-none\x20univer-outline-none\x20univer-transition-opacity\x20group-hover:univer-pointer-events-auto\x20group-hover:univer-opacity-100\x20focus:univer-pointer-events-auto\x20focus:univer-opacity-100\x20[@media(hover:none)]:univer-pointer-events-auto\x20[@media(hover:none)]:univer-opacity-100','univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600','univer-w-24','allowMultiple','IS_NOT','false','index','waterfall.negative','color','Plugin','ParetoLineSeries','format','univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-3','getPresentation','BASES_DASHBOARD_DEFAULT_ROW_HEIGHT','sortInfo','bases-dashboard-ui.chart.common.chartAndAxisTitles','ChartLineAndAreaSection','HorizontalAxis','DEFAULT_CHART_RELATION_VALUES','bases-dashboard-ui.chart.common.trendline','children','dom','bases-dashboard-ui.pivot.display','BaseFilterOperator','bases-dashboard-ui.chart.section.histogram','bases-dashboard-ui.dashboard.editWidget','localeKey','univer-grid\x20univer-gap-3','DatePicker','IndicatorLine','key','value','bases-dashboard-ui.dashboard.section','getAttachmentUrl','bases-dashboard-ui.chart.waterfall.subtotal','setSubtotalType','bases-dashboard-ui.pivot.chartConfiguration','end','bases-dashboard-ui.dashboardInspector.contain','tabular','\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','width','bases-dashboard-ui.pivot.ascending','renderRevision','bases-dashboard-ui.dashboardInspector.cover','GREATER_THAN_OR_EQUAL','bases-dashboard-ui.dashboard.new','bases-dashboard-ui.pivot.columns','appearance','formula','base-pivot-chart-configuration','DEFAULT_CHART_AXIS_VALUES','PivotDataFieldSortOperatorEnum','border-box','ChartUIService','BaseMobileDrawer','addImageSourceCache','ChartParetoSeriesSection','univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','bases-dashboard-ui.dashboardInspector.textSize','getImageSourceCache','row:','bases-dashboard-ui.operators.greaterThan','useChartEditorChartType','univer-mb-3\x20univer-text-sm\x20univer-font-medium','Funnel','bases-dashboard-ui.pivot.valuePosition','createFormulaShapeData','Text','top','colView','dashboard-chart-setup','bases-dashboard-ui.pivot.pageWrap','ArrowUpIcon','bases-dashboard-ui.pivot.removeField','UndoIcon','getChartRuntime','dataView','univer-grid\x20univer-h-full\x20univer-place-items-center\x20univer-text-xs\x20univer-text-gray-500','field','bases-dashboard-ui.dashboardInspector.textColor','name','PivotSubtotalTypeEnum','body','bases-dashboard-ui.dashboardInspector.autoFit','Treemap','DeleteIcon','removeEventListener','rowType','currency','thead','bases-dashboard-ui.dashboardInspector.percent','unitId','Checkbox','separator','Person','CloseIcon','move','formulaToEditorFormula','CHART_TYPE_CATALOG','GeneralSeries','toChartModelUpdate','VerticalAxis','MultipleSelect','Pareto','RTLChartStyle','imageSourceType','url(','#,##0','data:','img','current','clientY','univer-flex\x20univer-min-h-full\x20univer-flex-col\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','bases-dashboard-ui.dashboardInspector.compact','paragraphId','radius','738rtWtKH','univer-rounded-lg\x20univer-border\x20univer-bg-gray-0\x20univer-p-3\x20dark:!univer-bg-gray-900','scrollHeight','bases-dashboard-ui.operators.is','Style','jsx','ChartRadarStyleSection','LocaleService','univer-flex\x20univer-flex-col','14390GeQKkB','itemTypes','count','min','TextIcon','bases-dashboard-ui.dashboard.undo','bases-dashboard-ui.pivot.max','row','UniverChartUIPlugin','onFilter','univer-flex\x20univer-min-w-0\x20univer-items-center\x20univer-gap-2','Date','length','univer-min-h-0\x20univer-flex-1\x20univer-overflow-auto','bases-dashboard-ui.dashboardInspector.unchecked','bases-dashboard-ui.dashboardInspector.description','univer-size-8\x20univer-p-0\x20univer-text-red-500','NumberIcon','univer-border-0\x20univer-bg-transparent','ChartColorField','Sankey','onDragEnd','debounce','measure','bases-dashboard-ui.chart.section.indicatorLine','showColSubtotal','register','DEFAULT_CHART_HEATMAP_VALUES','base-dashboard-pivot-chart-','univer-bg-transparent\x20dark:!univer-bg-transparent','function','univer-flex\x20univer-gap-2','Line','1208518aMmXse','univer-grid\x20univer-h-full\x20univer-content-start\x20univer-gap-2\x20univer-overflow-auto\x20univer-p-3','BEFORE','widgets','bases-dashboard-ui.config','0\x200','DeleteBaseDashboardCommand','ShapeFillEnum','ManualFilter','IS_EMPTY','startScrollTop','_createContext','corner:','bases-dashboard-ui.chart.','PivotCellStyleTypeEnum','univer-grid\x20univer-h-20\x20univer-place-items-center\x20univer-text-center\x20univer-text-xs\x20univer-text-gray-400','saveAttachment','jsxs','backgroundColor','MobileChartEditorProvider','Relation','ChartTrendlineSection','BASE_DASHBOARD_UI_PLUGIN','bases-dashboard-ui.dashboardInspector.checked','univer-min-h-32\x20univer-rounded-lg\x20univer-border\x20univer-bg-gray-50\x20univer-p-2\x20dark:!univer-bg-gray-800','setConfig','WaterfallSeries','AFTER','RemoveBaseDashboardWidgetCommand','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','formatMap','data$','CreateBaseDashboardCommand','tableOrder','default','undos','univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500','toFormulaMenuTables','\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','ChartThemeService','bases-dashboard-ui.dashboardInspector.formula','Group','bases-dashboard-ui.pivot.rows','LESS_THAN_OR_EQUAL','bases-dashboard-ui.dashboard.add','bases-dashboard-ui.pivot.layout','baseOn','bottom','bases-dashboard-ui.pivot.options','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','PivotTableValuePositionEnum','pageOverThenDown','pageView','IUndoRedoService','removeField','click','lastCol','shapeId','repeat','flex-end','decimal','univer-flex-1','Inject','slice','MultiSelect','Filter','AscendingIcon','bases-dashboard-ui.pivot.selectAll','input','presentationChanged$','2703954djbQfr','bases-dashboard-ui.dashboardInspector.uploadImage','max','bases-dashboard-ui.dashboard.deleteWidget','dispose','cumulativeLineStyle','DEFAULT_CHART_WATERFALL_STYLE_VALUES','descending','Select','bases-dashboard-ui.pivot.addToColumn','chartTypeCanUseTrendLine','univer-fixed\x20univer-inset-0\x20univer-z-[1000]','Segmented','chart-and-table','bases-dashboard-ui.pivot.layoutOutline','bases-dashboard-ui.pivot.stdDevPopulation','DEFAULT_CHART_WORD_CLOUD_VALUES','univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','file','exitFullscreen','bases-dashboard-ui.pivot.downThenAcross','no-repeat','univer-size-4','gray','-univer-bottom-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize','onCommit','bases-dashboard-ui.dashboardInspector.enterValue','transparent','bases-dashboard-ui.pivot.calculating','BaseDashboardResourceService','bases-dashboard-ui.chart.common.heatmap','iterator','bases-dashboard-ui.pivot.descending','bases-dashboard-ui.dashboardInspector.backgroundColor','bases-dashboard-ui.pivot.filterField','setLayout','BaseDashboardWidgetType','ChartTypeSpecificDataSection','bases-dashboard-ui.pivot.top','ChartTypeBits','subscribe','replace','getUnit','bases-dashboard-ui.chart.chartTypes.','getBoundingClientRect','ChartStackField','toStringTag','toMenuFields','(prefers-reduced-motion:\x20reduce)','SolidFill','valueIndex','match','toDate','LESS_THAN','bases-dashboard-ui.dashboard.search','DependentOn','setLabelFilterInfo','stringify','getRect','bases-dashboard-ui.operators.isNotEmpty','FormulaShape','page:','bases-dashboard-ui.pivot.sum','subUnitId','getOptions','univer-my-3\x20univer-max-h-64\x20univer-overflow-y-auto','replaceChildren','lineAndArea','floor','bases-dashboard-ui.operators.lessThanOrEqual','tbody','univer-min-h-11\x20univer-px-3\x20univer-text-base','useState','UniverBaseDashboardPlugin','headerMap','[data-dashboard-widget]','ChartGradientFillField','bases-dashboard-ui.pivot.filters','univer-size-5\x20univer-text-primary-600','startX','_element','FilterIcon','UpdateBasePivotViewCommand','DEFAULT_CHART_FUNNEL_VALUES','univer-w-full\x20univer-justify-start\x20univer-text-primary-600','BASES_DASHBOARD_GRID_COLUMNS','univer-m-0\x20univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-base\x20univer-font-semibold','GrandTotal','getBaseDashboardPermissionObjectId','fontSize','subItem','createPortal','area','bases-dashboard-ui.dashboard.addWidget','bases-dashboard-ui.pivot.sourceFields','RightVerticalAxis','Input','observe','funnel','borderClassName','bases-dashboard-ui.pivot.addToValue','base-pivot-fields','bases-dashboard-ui.pivot.product','every','bases-dashboard-ui.pivot.dataSource','Row','Scatter','bases-dashboard-ui.dashboard.fullScreen','getId','UnitObject','headerRowCount','CONTAINS','2920599qCcSGi','split','univer-pointer-events-auto\x20univer-opacity-100','univer-flex\x20univer-h-full\x20univer-min-h-0\x20univer-w-full\x20univer-bg-gray-50\x20dark:!univer-bg-gray-950','dataAggregation','13oYEtod','toUpperCase','None','univer-flex\x20univer-size-5\x20univer-cursor-pointer\x20univer-items-center\x20univer-justify-center','textColor','_renderModelManager','aside','bases-dashboard-ui.dashboard.delete','ChartThemeField','tableFieldId','files','ChartTypeSpecificSetupSection','pivot','lastRow','bases-dashboard-ui.pivot.variance','pipe','object','auto','stdDev','createParagraphId','table','pareto'];_0x93eb=function(){return _0x65284e;};return _0x93eb();}var pe;const K={'axis':{...n['DEFAULT_CHART_AXIS_VALUES'],'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':n[_0xf14a5a(0x2c3)],'heatmap':n['DEFAULT_CHART_HEATMAP_VALUES'],'indicatorLine':n['DEFAULT_CHART_INDICATOR_LINE_VALUES'],'legend':n[_0xf14a5a(0x3c5)],'lineAndArea':n[_0xf14a5a(0x48d)],'pareto':n[_0xf14a5a(0x3f2)],'pie':n['DEFAULT_CHART_PIE_VALUES'],'radar':n['DEFAULT_CHART_RADAR_VALUES'],'relation':{...n[_0xf14a5a(0x19d)],'useValueAsSymbolSize':!0x0},'series':{...n[_0xf14a5a(0x14f)],'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((pe=_[_0xf14a5a(0x1f4)][_0xf14a5a(0x411)])==null?void 0x0:pe['rightYAxis'])??!0x1}},'style':n[_0xf14a5a(0xd7)],'titles':n[_0xf14a5a(0x445)],'trendline':n[_0xf14a5a(0x151)],'waterfall':{...n['DEFAULT_CHART_WATERFALL_SETUP_VALUES'],'useSubtotal':!0x0},'waterfallStyle':n[_0xf14a5a(0x276)],'wordCloud':n[_0xf14a5a(0x280)]},me=[_[_0xf14a5a(0x297)]['Line'],_['ChartTypeBits'][_0xf14a5a(0x318)],_[_0xf14a5a(0x297)][_0xf14a5a(0x37f)],_[_0xf14a5a(0x297)][_0xf14a5a(0x2da)],_[_0xf14a5a(0x297)]['Funnel'],_[_0xf14a5a(0x297)][_0xf14a5a(0x23e)],_[_0xf14a5a(0x297)]['Sankey'],_[_0xf14a5a(0x297)][_0xf14a5a(0x11c)],_[_0xf14a5a(0x297)][_0xf14a5a(0x3b9)],_[_0xf14a5a(0x297)][_0xf14a5a(0x111)],_[_0xf14a5a(0x297)][_0xf14a5a(0x3da)],_[_0xf14a5a(0x297)][_0xf14a5a(0x1e0)],_[_0xf14a5a(0x297)][_0xf14a5a(0x41a)],_['ChartTypeBits'][_0xf14a5a(0x407)],_[_0xf14a5a(0x297)][_0xf14a5a(0xcd)]];function he(_0x54c8b5){const _0x2b055d=_0xf14a5a;let {config:_0x27b078,onChange:_0x180209,runtime:_0x3897da,tableName:_0x17c4be}=_0x54c8b5,_0x10e595=(0x0,m[_0x2b055d(0x491)])(W),_0x248730=(0x0,m[_0x2b055d(0x491)])(a[_0x2b055d(0x207)]),[_0x54cafb,_0x3a5480]=(0x0,h[_0x2b055d(0x2b8)])(n[_0x2b055d(0x479)]['Data']),_0x5df696=(0x0,h[_0x2b055d(0x177)])(()=>new n[(_0x2b055d(0x440))](_0x3897da[_0x2b055d(0x163)],{'commit':_0x2a04f4=>{const _0x56deff=_0x2b055d;var _0x4999f1;let _0x56e8f3=_0x3897da[_0x56deff(0x163)],_0x4180c9=(0x0,_[_0x56deff(0x1f0)])(_0x2a04f4,{'series':(_0x4999f1=_0x56e8f3['config'])==null?void 0x0:_0x4999f1[_0x56deff(0x310)],'currentChartType':_0x56e8f3[_0x56deff(0x4d0)],'currentStyle':_0x56e8f3['style'],'currentContext':_0x56e8f3[_0x56deff(0xd9)],'currentDataAggregation':_0x56e8f3[_0x56deff(0x2e4)]});_0x180209({'chart':ge(_0x27b078[_0x56deff(0x3a9)],_0x4180c9)});}}),[_0x27b078['chart'],_0x180209,_0x3897da]),_0x469864=(0x0,h[_0x2b055d(0x177)])(()=>(0x0,n[_0x2b055d(0x138)])(n[_0x2b055d(0x1ee)][_0x2b055d(0x4a6)](_0x244eb5=>({..._0x244eb5,'label':_0x248730['t'](be(_0x244eb5[_0x2b055d(0x490)]))}))),[_0x248730]);return(0x0,g[_0x2b055d(0x205)])(n[_0x2b055d(0x23d)],{'chartUIService':_0x10e595,'hostAdapter':_0x5df696,'children':(0x0,g[_0x2b055d(0x23b)])('div',{'className':_0x2b055d(0x1fc),'children':[(0x0,g[_0x2b055d(0x205)])(n['ChartEditPanelTabs'],{'ariaLabel':_0x248730['t']('bases-dashboard-ui.chart.common.editChart'),'className':_0x2b055d(0x306),'items':[{'label':_0x248730['t'](_0x2b055d(0x157)),'panelId':'base-pivot-chart-setup','value':n['ChartEditPanelTab'][_0x2b055d(0x3f1)]},{'label':_0x248730['t'](_0x2b055d(0x356)),'panelId':'base-pivot-chart-style','value':n[_0x2b055d(0x479)][_0x2b055d(0x204)]}],'value':_0x54cafb,'onChange':_0x3a5480}),_0x54cafb===n[_0x2b055d(0x479)][_0x2b055d(0x3f1)]?(0x0,g[_0x2b055d(0x205)])(n[_0x2b055d(0x397)],{'id':_0x2b055d(0xc1),'label':_0x248730['t'](_0x2b055d(0x157)),'children':(0x0,g[_0x2b055d(0x23b)])(_0x2b055d(0x331),{'className':_0x2b055d(0xe9),'children':[(0x0,g[_0x2b055d(0x205)])(n[_0x2b055d(0x3b8)],{'options':_0x469864}),(0x0,g[_0x2b055d(0x205)])(n[_0x2b055d(0x2f0)],{}),(0x0,g[_0x2b055d(0x205)])(n['ChartThemeField'],{}),(0x0,g[_0x2b055d(0x205)])(_e,{}),(0x0,g[_0x2b055d(0x205)])(n['ChartStackField'],{}),(0x0,g[_0x2b055d(0x23b)])(_0x2b055d(0x331),{'children':[(0x0,g[_0x2b055d(0x205)])(n['ChartEditBlockTitle'],{'title':_0x248730['t'](_0x2b055d(0x2d8))}),(0x0,g['jsx'])(f[_0x2b055d(0x2d0)],{'disabled':!0x0,'value':_0x17c4be,'size':_0x2b055d(0x4d6)})]}),(0x0,g[_0x2b055d(0x205)])(n[_0x2b055d(0x457)],{'orientationControl':(0x0,g['jsx'])(f[_0x2b055d(0x134)],{'size':_0x2b055d(0x3b3),'onClick':()=>_0x180209({'chart':{..._0x27b078[_0x2b055d(0x3a9)],'orient':_0x27b078[_0x2b055d(0x3a9)]['orient']===_0x2b055d(0x210)?_0x2b055d(0x171):_0x2b055d(0x210)}}),'children':_0x248730['t'](_0x2b055d(0x12d))})}),(0x0,g[_0x2b055d(0x205)])(n['ChartTypeSpecificDataSection'],{}),(0x0,g[_0x2b055d(0x205)])(n['ChartWaterfallSetupFields'],{'defaultValues':K['waterfall']}),(0x0,g[_0x2b055d(0x23b)])(_0x2b055d(0x331),{'children':[(0x0,g[_0x2b055d(0x205)])(n['ChartEditBlockTitle'],{'title':_0x248730['t'](_0x2b055d(0x1a1))}),(0x0,g[_0x2b055d(0x205)])(G,{'value':_0x27b078['displayMode'],'options':[{'value':_0x2b055d(0x27d),'label':_0x248730['t'](_0x2b055d(0x125))},{'value':_0x2b055d(0x3a9),'label':_0x248730['t'](_0x2b055d(0x3f0))},{'value':'table','label':_0x248730['t'](_0x2b055d(0x48b))}],'onChange':_0x149202=>{const _0x2aed09=_0x2b055d;(_0x149202===_0x2aed09(0x27d)||_0x149202==='chart'||_0x149202===_0x2aed09(0x2f9))&&_0x180209({'displayMode':_0x149202});}})]})]})}):(0x0,g[_0x2b055d(0x205)])(n[_0x2b055d(0x397)],{'id':_0x2b055d(0x3fe),'label':_0x248730['t'](_0x2b055d(0x356)),'children':(0x0,g[_0x2b055d(0x205)])(ve,{})})]})});}function ge(_0x387e0f,_0x4a57fe){const _0x2f0f3c=_0xf14a5a;return{..._0x387e0f,'type':_0x4a57fe[_0x2f0f3c(0x4d0)]??_0x387e0f['type'],'style':_0x4a57fe[_0x2f0f3c(0x4c8)]??_0x387e0f[_0x2f0f3c(0x4c8)],'context':_0x4a57fe[_0x2f0f3c(0xd9)]??_0x387e0f[_0x2f0f3c(0xd9)],'dataAggregation':_0x4a57fe[_0x2f0f3c(0x2e4)]??_0x387e0f[_0x2f0f3c(0x2e4)]};}function _e(){const _0xf35929=_0xf14a5a;let _0x31c389=(0x0,n[_0xf35929(0x1ca)])();return(0x0,g[_0xf35929(0x205)])(n[_0xf35929(0x2bc)],{'visible':me['every'](_0x29d495=>!_['chartBitsUtils'][_0xf35929(0x258)](_0x31c389,_0x29d495))});}function q(_0x4b0586){const _0x53c0e9=_0xf14a5a;return(0x0,g[_0x53c0e9(0x23b)])(n[_0x53c0e9(0x426)],{'id':_0x4b0586['id'],'children':[(0x0,g[_0x53c0e9(0x205)])(n[_0x53c0e9(0x368)],{'children':_0x4b0586[_0x53c0e9(0x34b)]}),(0x0,g[_0x53c0e9(0x205)])(n[_0x53c0e9(0x3ec)],{'children':_0x4b0586[_0x53c0e9(0x19f)]})]});}function ve(){const _0x2b7fd9=_0xf14a5a;let _0x5817a7=(0x0,m[_0x2b7fd9(0x491)])(a[_0x2b7fd9(0x207)]),_0x100e3a=(0x0,n['useChartEditorChartType'])(),_0x6b3c5a=(0x0,n['useChartEditorHasRightAxis'])(),[_0x482a66,_0x4fa120]=(0x0,h[_0x2b7fd9(0x2b8)])(null),_0x355ad5=_[_0x2b7fd9(0x4b8)][_0x2b7fd9(0x258)](_0x100e3a,_[_0x2b7fd9(0x297)][_0x2b7fd9(0x454)]),_0x3e8bdf=_0x100e3a===_[_0x2b7fd9(0x297)][_0x2b7fd9(0x318)],_0x1ff216=_0x100e3a===_[_0x2b7fd9(0x297)][_0x2b7fd9(0x37f)],_0x2dfb2b=_0x100e3a===_['ChartTypeBits'][_0x2b7fd9(0x1cc)],_0x2a7754=_[_0x2b7fd9(0x4b8)][_0x2b7fd9(0x258)](_0x100e3a,_[_0x2b7fd9(0x297)][_0x2b7fd9(0x459)]),_0x42ec3a=_0x100e3a===_[_0x2b7fd9(0x297)][_0x2b7fd9(0x23e)],_0xa2be9b=_0x100e3a===_[_0x2b7fd9(0x297)]['Waterfall'],_0x5a9b4e=_0x100e3a===_[_0x2b7fd9(0x297)][_0x2b7fd9(0x1f3)],_0x5db08e=_0x100e3a===_[_0x2b7fd9(0x297)]['Heatmap'],_0x347074=(0x0,n[_0x2b7fd9(0xc2)])(_0x100e3a,n[_0x2b7fd9(0x162)][_0x2b7fd9(0x1ef)])&&!_0x2a7754&&!_0x5a9b4e,_0x27f99c=ye(_0x100e3a,_0x5817a7);return(0x0,g['jsxs'])(n[_0x2b7fd9(0x488)],{'value':_0x482a66,'onChange':_0x4fa120,'children':[(0x0,g[_0x2b7fd9(0x205)])(q,{'id':n[_0x2b7fd9(0x437)][_0x2b7fd9(0x434)],'label':_0x5817a7['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':(0x0,g[_0x2b7fd9(0x205)])(n['ChartStyleSection'],{'defaultValues':K[_0x2b7fd9(0x4c8)]})}),(0x0,g[_0x2b7fd9(0x205)])(q,{'id':n[_0x2b7fd9(0x437)][_0x2b7fd9(0x183)],'label':_0x5817a7['t'](_0x2b7fd9(0x19a)),'children':(0x0,g[_0x2b7fd9(0x205)])(n[_0x2b7fd9(0x377)],{'commitMode':_0x2b7fd9(0x3ca),'defaultValues':K[_0x2b7fd9(0x324)]})}),(0x0,g[_0x2b7fd9(0x205)])(n[_0x2b7fd9(0x165)],{'section':'view'}),_0x347074&&(0x0,g[_0x2b7fd9(0x205)])(q,{'id':n[_0x2b7fd9(0x437)]['Series'],'label':_0x5817a7['t'](_0x2b7fd9(0x339)),'children':(0x0,g[_0x2b7fd9(0x205)])(n[_0x2b7fd9(0xf8)],{'defaultValues':K[_0x2b7fd9(0x310)],'NumberFormatField':n[_0x2b7fd9(0x370)]})}),_0xa2be9b&&(0x0,g[_0x2b7fd9(0x205)])(q,{'id':n[_0x2b7fd9(0x437)][_0x2b7fd9(0x244)],'label':_0x5817a7['t']('bases-dashboard-ui.chart.section.waterfall'),'children':(0x0,g[_0x2b7fd9(0x205)])(n[_0x2b7fd9(0x30e)],{'defaultValues':K['waterfallStyle'],'getDefaultBucketName':({seriesName:_0x332860,target:_0x516a98})=>_0x516a98===_[_0x2b7fd9(0x127)][_0x2b7fd9(0x311)]?_0x5817a7['t'](_0x2b7fd9(0x1ad)):_0x332860?_0x332860+'-('+_0x5817a7['t'](_0x2b7fd9(0x237)+(_0x516a98===_[_0x2b7fd9(0x127)]['Positive']?'waterfall.positive':_0x2b7fd9(0x191)))+')':'','NumberFormatField':n['ChartNumberFormatAtom']})}),_0x5a9b4e&&(0x0,g[_0x2b7fd9(0x23b)])(g['Fragment'],{'children':[(0x0,g['jsx'])(q,{'id':n[_0x2b7fd9(0x437)]['ParetoBarSeries'],'label':_0x5817a7['t'](_0x2b7fd9(0x455)),'children':(0x0,g[_0x2b7fd9(0x205)])(n[_0x2b7fd9(0x1c4)],{'defaultValues':K['pareto'],'NumberFormatField':n[_0x2b7fd9(0x370)],'showDataPointEditor':!0x0,'target':_0x2b7fd9(0x4a8)})}),(0x0,g[_0x2b7fd9(0x205)])(q,{'id':n[_0x2b7fd9(0x437)][_0x2b7fd9(0x194)],'label':_0x5817a7['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':(0x0,g['jsx'])(n[_0x2b7fd9(0x1c4)],{'defaultValues':K[_0x2b7fd9(0x2fa)],'NumberFormatField':n[_0x2b7fd9(0x370)],'showDataPointEditor':!0x1,'target':'cumulativeLineStyle'})})]}),_0x355ad5&&(0x0,g['jsx'])(q,{'id':n['ChartEditPanelSection'][_0x2b7fd9(0x113)],'label':_0x5817a7['t']('bases-dashboard-ui.chart.section.pie'),'children':(0x0,g[_0x2b7fd9(0x205)])(n['ChartPieStyleSection'],{'defaultValues':K[_0x2b7fd9(0x303)],'NumberFormatField':n[_0x2b7fd9(0x370)]})}),_0x1ff216&&(0x0,g['jsx'])(q,{'id':n[_0x2b7fd9(0x437)]['WordCloud'],'label':_0x5817a7['t'](_0x2b7fd9(0x3d2)),'children':(0x0,g[_0x2b7fd9(0x205)])(n[_0x2b7fd9(0x3bd)],{'defaultValues':K[_0x2b7fd9(0x4a3)]})}),_0x3e8bdf&&(0x0,g[_0x2b7fd9(0x205)])(q,{'id':n[_0x2b7fd9(0x437)][_0x2b7fd9(0x318)],'label':_0x5817a7['t'](_0x2b7fd9(0x3f4)),'children':(0x0,g[_0x2b7fd9(0x205)])(n[_0x2b7fd9(0x206)],{'defaultValues':K[_0x2b7fd9(0x456)]})}),_0x2dfb2b&&(0x0,g[_0x2b7fd9(0x205)])(q,{'id':n['ChartEditPanelSection'][_0x2b7fd9(0x1cc)],'label':_0x5817a7['t'](_0x2b7fd9(0x4d3)),'children':(0x0,g[_0x2b7fd9(0x205)])(n['ChartFunnelStyleSection'],{'defaultValues':K[_0x2b7fd9(0x2d2)],'gapControl':'select'})}),_0x5db08e&&(0x0,g[_0x2b7fd9(0x205)])(q,{'id':n[_0x2b7fd9(0x437)][_0x2b7fd9(0x11c)],'label':_0x5817a7['t'](_0x2b7fd9(0x28e)),'children':(0x0,g[_0x2b7fd9(0x205)])(n[_0x2b7fd9(0x330)],{'defaultValues':K['heatmap']})}),_0x42ec3a&&(0x0,g['jsx'])(q,{'id':n[_0x2b7fd9(0x437)][_0x2b7fd9(0x23e)],'label':_0x5817a7['t'](_0x2b7fd9(0x319)),'children':(0x0,g['jsx'])(n['ChartRelationStyleSection'],{'defaultValues':K[_0x2b7fd9(0x403)]})}),(0x0,n[_0x2b7fd9(0x169)])(_0x100e3a)&&(0x0,g[_0x2b7fd9(0x205)])(q,{'id':n[_0x2b7fd9(0x437)][_0x2b7fd9(0x174)],'label':_0x5817a7['t'](_['chartBitsUtils'][_0x2b7fd9(0x258)](_0x100e3a,_[_0x2b7fd9(0x297)][_0x2b7fd9(0x486)])?_0x2b7fd9(0x150):_0x2b7fd9(0x3e7)),'children':(0x0,g[_0x2b7fd9(0x205)])(n[_0x2b7fd9(0x19b)],{'defaultValues':K[_0x2b7fd9(0x2b3)],'lineStyleControl':_0x2b7fd9(0x498)})}),(0x0,n['chartTypeSupportsCapability'])(_0x100e3a,n[_0x2b7fd9(0x162)]['Legend'])&&(0x0,g[_0x2b7fd9(0x205)])(q,{'id':n[_0x2b7fd9(0x437)]['Legend'],'label':_0x5817a7['t'](_0x2b7fd9(0x12b)),'children':(0x0,g[_0x2b7fd9(0x205)])(n[_0x2b7fd9(0x11b)],{'defaultValues':K[_0x2b7fd9(0xdb)]})}),(0x0,n[_0x2b7fd9(0xc2)])(_0x100e3a,n['ChartEditorCapability']['Axes'])&&(0x0,g['jsxs'])(g[_0x2b7fd9(0x487)],{'children':[(0x0,g[_0x2b7fd9(0x205)])(q,{'id':n[_0x2b7fd9(0x437)][_0x2b7fd9(0x19c)],'label':_0x5817a7['t'](_0x2b7fd9(0x186)),'children':(0x0,g['jsx'])(n['ChartAxisSection'],{'axis':'x','defaultValues':K[_0x2b7fd9(0x3f9)],'NumberFormatField':n[_0x2b7fd9(0x370)]})}),(0x0,g[_0x2b7fd9(0x205)])(q,{'id':n['ChartEditPanelSection'][_0x2b7fd9(0x1f1)],'label':_0x5817a7['t'](_0x2b7fd9(0x3d6)),'children':(0x0,g[_0x2b7fd9(0x205)])(n[_0x2b7fd9(0xee)],{'axis':'y','defaultValues':K[_0x2b7fd9(0x3f9)],'NumberFormatField':n[_0x2b7fd9(0x370)]})}),(0x0,g[_0x2b7fd9(0x205)])(n[_0x2b7fd9(0x165)],{'section':_0x2b7fd9(0xff)}),_0x6b3c5a&&(0x0,g['jsx'])(q,{'id':n['ChartEditPanelSection'][_0x2b7fd9(0x2cf)],'label':_0x5817a7['t']('bases-dashboard-ui.chart.common.rightVerticalAxis'),'children':(0x0,g[_0x2b7fd9(0x205)])(n['ChartAxisSection'],{'axis':_0x2b7fd9(0x179),'defaultValues':K[_0x2b7fd9(0x3f9)],'NumberFormatField':n['ChartNumberFormatAtom']})}),(0x0,g[_0x2b7fd9(0x205)])(q,{'id':n['ChartEditPanelSection']['GridlinesAndTicks'],'label':_0x5817a7['t']('bases-dashboard-ui.chart.section.gridlinesAndTicks'),'children':(0x0,g['jsx'])(n[_0x2b7fd9(0x413)],{'defaultValues':K[_0x2b7fd9(0x3f9)]})})]}),(0x0,n[_0x2b7fd9(0xc2)])(_0x100e3a,n['ChartEditorCapability']['IndicatorLine'])&&(0x0,g[_0x2b7fd9(0x205)])(q,{'id':n[_0x2b7fd9(0x437)]['IndicatorLine'],'label':_0x5817a7['t'](_0x2b7fd9(0x221)),'children':(0x0,g['jsx'])(n[_0x2b7fd9(0x467)],{'defaultValues':K[_0x2b7fd9(0x494)]})}),(0x0,_[_0x2b7fd9(0x27a)])(_0x100e3a)&&(0x0,g[_0x2b7fd9(0x205)])(q,{'id':n[_0x2b7fd9(0x437)][_0x2b7fd9(0x167)],'label':_0x5817a7['t']('bases-dashboard-ui.chart.common.trendline'),'children':(0x0,g[_0x2b7fd9(0x205)])(n[_0x2b7fd9(0x23f)],{'defaultValues':K['trendline']})}),_0x27f99c&&(0x0,g[_0x2b7fd9(0x205)])(q,{'id':_0x27f99c['id'],'label':_0x27f99c[_0x2b7fd9(0x34b)],'children':(0x0,g['jsx'])(n[_0x2b7fd9(0x145)],{})})]});}function ye(_0x5bf58c,_0x4b7e5b){const _0x33cd37=_0xf14a5a;let _0x2bf008={[_[_0x33cd37(0x297)][_0x33cd37(0x111)]]:{'id':n['ChartEditPanelSection'][_0x33cd37(0x111)],'localeKey':_0x33cd37(0x484)},[_[_0x33cd37(0x297)][_0x33cd37(0x3da)]]:{'id':n[_0x33cd37(0x437)][_0x33cd37(0x3da)],'localeKey':'bases-dashboard-ui.chart.section.histogram'},[_[_0x33cd37(0x297)][_0x33cd37(0x1e0)]]:{'id':n[_0x33cd37(0x437)]['Treemap'],'localeKey':_0x33cd37(0x483)},[_[_0x33cd37(0x297)][_0x33cd37(0x41a)]]:{'id':n[_0x33cd37(0x437)]['Sunburst'],'localeKey':_0x33cd37(0x46d)},[_['ChartTypeBits'][_0x33cd37(0x407)]]:{'id':n[_0x33cd37(0x437)][_0x33cd37(0x407)],'localeKey':_0x33cd37(0x41f)},[_[_0x33cd37(0x297)][_0x33cd37(0xcd)]]:{'id':n[_0x33cd37(0x437)][_0x33cd37(0xcd)],'localeKey':_0x33cd37(0x353)}}[_0x5bf58c];return _0x2bf008?{'id':_0x2bf008['id'],'label':_0x4b7e5b['t'](_0x2bf008[_0x33cd37(0x1a5)])}:null;}function be(_0x521385){const _0x5ae15b=_0xf14a5a;return _0x5ae15b(0x29b)+_0x521385;}function xe({onChange:_0x4539c0,onEditData:_0x121c49,runtime:_0x189959,sourceChart:_0x33c1d3,sourceName:_0x2cb488,widget:_0x5100c9}){const _0x5a3576=_0xf14a5a;let _0x5152a5=(0x0,m['useDependency'])(W),_0x20b4a3=(0x0,m[_0x5a3576(0x491)])(a[_0x5a3576(0x207)]),[_0xf48b59,_0x1c3512]=(0x0,h[_0x5a3576(0x2b8)])(n[_0x5a3576(0x479)]['Data']),_0x3ebb91=_0x5100c9[_0x5a3576(0x3a9)]??_0x33c1d3,_0x24d0c4=(0x0,h[_0x5a3576(0x177)])(()=>new n['ChartHostAdapter'](_0x189959[_0x5a3576(0x163)],{'commit':_0x4664bf=>{const _0x44ea6f=_0x5a3576;var _0x57b854;let _0x4cc951=_0x189959[_0x44ea6f(0x163)],_0x3e3db5=(0x0,_['toChartModelUpdate'])(_0x4664bf,{'series':(_0x57b854=_0x4cc951[_0x44ea6f(0x34a)])==null?void 0x0:_0x57b854[_0x44ea6f(0x310)],'currentChartType':_0x4cc951[_0x44ea6f(0x4d0)],'currentStyle':_0x4cc951[_0x44ea6f(0x4c8)],'currentContext':_0x4cc951[_0x44ea6f(0xd9)],'currentDataAggregation':_0x4cc951[_0x44ea6f(0x2e4)]});_0x4539c0({..._0x5100c9,'chart':ge(_0x3ebb91,_0x3e3db5)})[_0x44ea6f(0xc0)](()=>void 0x0);}}),[_0x3ebb91,_0x4539c0,_0x189959,_0x5100c9]),_0x43ef50=(0x0,h[_0x5a3576(0x177)])(()=>(0x0,n[_0x5a3576(0x138)])(n[_0x5a3576(0x1ee)][_0x5a3576(0x4a6)](_0x3638c3=>({..._0x3638c3,'label':_0x20b4a3['t'](Se(_0x3638c3[_0x5a3576(0x490)]))}))),[_0x20b4a3]);return(0x0,g[_0x5a3576(0x205)])(n[_0x5a3576(0x142)],{'chartUIService':_0x5152a5,'hostAdapter':_0x24d0c4,'children':(0x0,g[_0x5a3576(0x23b)])(_0x5a3576(0x331),{'data-dashboard-chart-inspector':!0x0,'className':_0x5a3576(0x1c5),'children':[(0x0,g[_0x5a3576(0x205)])(n['ChartEditPanelTabs'],{'ariaLabel':_0x20b4a3['t'](_0x5a3576(0x36d)),'className':_0x5a3576(0x306),'items':[{'label':_0x20b4a3['t'](_0x5a3576(0x157)),'panelId':_0x5a3576(0x1d2),'value':n[_0x5a3576(0x479)][_0x5a3576(0x3f1)]},{'label':_0x20b4a3['t'](_0x5a3576(0x356)),'panelId':_0x5a3576(0x420),'value':n[_0x5a3576(0x479)][_0x5a3576(0x204)]}],'value':_0xf48b59,'onChange':_0x1c3512}),_0xf48b59===n[_0x5a3576(0x479)][_0x5a3576(0x3f1)]?(0x0,g[_0x5a3576(0x205)])(n[_0x5a3576(0x397)],{'id':_0x5a3576(0x1d2),'label':_0x20b4a3['t'](_0x5a3576(0x157)),'children':(0x0,g['jsxs'])(_0x5a3576(0x331),{'className':_0x5a3576(0xe9),'children':[(0x0,g[_0x5a3576(0x205)])(n[_0x5a3576(0x3b8)],{'options':_0x43ef50}),(0x0,g['jsx'])(n[_0x5a3576(0x2f0)],{}),(0x0,g['jsx'])(n[_0x5a3576(0x2ed)],{}),(0x0,g[_0x5a3576(0x205)])(_e,{}),(0x0,g[_0x5a3576(0x205)])(n['ChartStackField'],{}),(0x0,g['jsxs'])(_0x5a3576(0x331),{'children':[(0x0,g[_0x5a3576(0x205)])(n[_0x5a3576(0x189)],{'title':_0x20b4a3['t'](_0x5a3576(0xf9))}),(0x0,g[_0x5a3576(0x205)])(f[_0x5a3576(0x2d0)],{'disabled':!0x0,'value':_0x2cb488,'size':_0x5a3576(0x4d6)}),(0x0,g[_0x5a3576(0x205)])(f[_0x5a3576(0x134)],{'className':_0x5a3576(0x33b),'onClick':_0x121c49,'size':_0x5a3576(0x3b3),'children':_0x20b4a3['t']('bases-dashboard-ui.dashboardInspector.editData')})]})]})}):(0x0,g[_0x5a3576(0x205)])(n[_0x5a3576(0x397)],{'id':_0x5a3576(0x420),'label':_0x20b4a3['t'](_0x5a3576(0x356)),'children':(0x0,g[_0x5a3576(0x205)])(ve,{})})]})});}function Se(_0x21a962){const _0x23e805=_0xf14a5a;return _0x23e805(0x29b)+_0x21a962;}const Ce=['general',_0xf14a5a(0x106),_0xf14a5a(0x4c1),_0xf14a5a(0x1e4),_0xf14a5a(0x33d),_0xf14a5a(0x308)];function we({base:_0x24ff9c,onChange:_0x1420c0,onSelectBackgroundImage:_0x52b019,widget:_0x1bb0e0}){const _0x49986a=_0xf14a5a;var _0x3db202;let _0x5c4e9a=(0x0,m[_0x49986a(0x491)])(a['LocaleService']),_0x58961b=(0x0,m[_0x49986a(0x491)])(a[_0x49986a(0xe4)]),_0x1edbbc=(0x0,m[_0x49986a(0x3b4)])(()=>_0x58961b['currentTheme$'],_0x58961b[_0x49986a(0x16c)](),!0x1,[_0x58961b]),_0x188d46=(0x0,m['useObservable'])(()=>_0x58961b[_0x49986a(0x3fc)],_0x58961b['darkMode'],!0x1,[_0x58961b]),[_0x20437a,_0x57bd19]=(0x0,h[_0x49986a(0x2b8)])(_0x49986a(0x32a)),[_0x4c5eb6,_0xc52a1]=(0x0,h['useState'])(!0x1),_0x196498=k(_0x1bb0e0),_0x451d5f=_0x24ff9c[_0x49986a(0x164)]()[_0x49986a(0x419)][_0x1bb0e0[_0x49986a(0x372)]],_0x42df23=_0x451d5f==null?void 0x0:_0x451d5f[_0x49986a(0x383)][_0x49986a(0x396)](_0x23c7ba=>_0x451d5f['views'][_0x23c7ba]),_0x42f687=_0x42df23?_0x451d5f==null?void 0x0:_0x451d5f[_0x49986a(0x34d)][_0x42df23]:void 0x0,_0xcbf40a=_0x451d5f&&_0x42f687?(0x0,t[_0x49986a(0x24f)])(_0x24ff9c[_0x49986a(0x164)](),_0x451d5f,_0x42f687)[_0x49986a(0x4a6)](_0x3427a3=>({..._0x3427a3,'current':!0x1})):[],_0x400d08=((_0x3db202=_0x1bb0e0['shapeData'][_0x49986a(0x408)])==null?void 0x0:_0x3db202[_0x49986a(0x1bc)])??'',_0x364f04=_0x27c117=>_0x1420c0(A(_0x1bb0e0,_0x27c117))[_0x49986a(0xc0)](()=>void 0x0),_0x19ce07=_0x4122e7=>_0x1420c0({..._0x1bb0e0,'description':_0x4122e7})['catch'](()=>void 0x0);return(0x0,g[_0x49986a(0x23b)])(_0x49986a(0x331),{'data-dashboard-formula-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[(0x0,g[_0x49986a(0x205)])(f[_0x49986a(0x27c)],{'className':_0x49986a(0x16e),'items':[{'value':_0x49986a(0x32a),'label':_0x5c4e9a['t']('bases-dashboard-ui.dashboardInspector.data')},{'value':'style','label':_0x5c4e9a['t']('bases-dashboard-ui.dashboardInspector.style')}],'value':_0x20437a,'onChange':_0x57bd19}),(0x0,g[_0x49986a(0x205)])(_0x49986a(0x331),{'className':_0x49986a(0x4af),'children':_0x20437a===_0x49986a(0x32a)?(0x0,g[_0x49986a(0x23b)])('div',{'className':_0x49986a(0x47c),'children':[(0x0,g[_0x49986a(0x205)])(J,{'label':_0x5c4e9a['t'](_0x49986a(0x218)),'children':(0x0,g[_0x49986a(0x205)])(f['Input'],{'value':_0x1bb0e0[_0x49986a(0x315)]??_0x1bb0e0[_0x49986a(0x3ff)]??'','onChange':_0x19ce07,'onBlur':_0xe8d200=>_0x19ce07(_0xe8d200['target'][_0x49986a(0x1aa)]),'size':'small'})}),(0x0,g[_0x49986a(0x205)])(J,{'label':_0x5c4e9a['t']('bases-dashboard-ui.dashboardInspector.dataSource'),'children':(0x0,g['jsx'])(f[_0x49986a(0x2d0)],{'disabled':!0x0,'value':(_0x451d5f==null?void 0x0:_0x451d5f[_0x49986a(0x1dc)])??_0x5c4e9a['t'](_0x49986a(0x143)),'size':_0x49986a(0x4d6)})}),(0x0,g[_0x49986a(0x23b)])(J,{'label':_0x5c4e9a['t'](_0x49986a(0x252)),'children':[(0x0,g[_0x49986a(0x205)])(f['Input'],{'disabled':!0x0,'value':(0x0,t[_0x49986a(0x1ed)])(_0x400d08,_0xcbf40a),'size':_0x49986a(0x4d6)}),(0x0,g[_0x49986a(0x205)])(f[_0x49986a(0x134)],{'className':_0x49986a(0x33b),'onClick':()=>_0xc52a1(!0x0),'size':_0x49986a(0x3b3),'children':_0x5c4e9a['t'](_0x49986a(0x3e6))})]})]}):(0x0,g[_0x49986a(0x23b)])(_0x49986a(0x331),{'className':_0x49986a(0x47c),'children':[(0x0,g[_0x49986a(0x205)])(n['ChartColorField'],{'emptyLabel':_0x5c4e9a['t'](_0x49986a(0x291)),'label':_0x5c4e9a['t'](_0x49986a(0x291)),'pickerFallbackValue':_0x188d46?_0x1edbbc[_0x49986a(0x287)][0x384]:_0x1edbbc[_0x49986a(0x287)][0x0],'resetLabel':_0x5c4e9a['t'](_0x49986a(0x43b)),'value':_0x196498['backgroundColor']??null,'onChange':_0x2f71df=>_0x364f04({'backgroundColor':_0x2f71df??void 0x0})}),(0x0,g[_0x49986a(0x23b)])(J,{'label':_0x5c4e9a['t']('bases-dashboard-ui.dashboardInspector.backgroundImage'),'children':[(0x0,g['jsxs'])(_0x49986a(0x331),{'className':_0x49986a(0x228),'children':[(0x0,g['jsxs'])(f[_0x49986a(0x134)],{'className':_0x49986a(0x267),'onClick':()=>{const _0x311315=_0x49986a;_0x52b019()[_0x311315(0x173)](_0x3861fa=>{const _0x5e24fb=_0x311315;if(_0x3861fa){var _0x261202;return _0x364f04({'backgroundImage':{..._0x3861fa,'fit':((_0x261202=_0x196498[_0x5e24fb(0x148)])==null?void 0x0:_0x261202[_0x5e24fb(0x345)])??_0x5e24fb(0x313)}});}})[_0x311315(0xc0)](()=>void 0x0);},'size':_0x49986a(0x3b3),'children':[(0x0,g[_0x49986a(0x205)])(s['IncreaseIcon'],{}),_0x196498['backgroundImage']?_0x5c4e9a['t'](_0x49986a(0xfd)):_0x5c4e9a['t']('bases-dashboard-ui.dashboardInspector.uploadImage')]}),_0x196498[_0x49986a(0x148)]&&(0x0,g[_0x49986a(0x205)])(f['Button'],{'aria-label':_0x5c4e9a['t'](_0x49986a(0x446)),'title':_0x5c4e9a['t'](_0x49986a(0x446)),'onClick':()=>_0x364f04({'backgroundImage':void 0x0}),'size':_0x49986a(0x3b3),'children':(0x0,g[_0x49986a(0x205)])(s['DeleteIcon'],{})})]}),_0x196498[_0x49986a(0x148)]&&(0x0,g[_0x49986a(0x205)])(f[_0x49986a(0x27c)],{'className':_0x49986a(0x37c),'items':[{'value':'cover','label':_0x5c4e9a['t']('bases-dashboard-ui.dashboardInspector.cover')},{'value':_0x49986a(0x182),'label':_0x5c4e9a['t'](_0x49986a(0x1b1))}],'value':_0x196498[_0x49986a(0x148)][_0x49986a(0x345)],'onChange':_0x4c29c9=>_0x364f04({'backgroundImage':_0x196498['backgroundImage']?{..._0x196498[_0x49986a(0x148)],'fit':_0x4c29c9}:void 0x0})})]}),(0x0,g['jsx'])(n[_0x49986a(0x21c)],{'emptyLabel':_0x5c4e9a['t'](_0x49986a(0x1db)),'label':_0x5c4e9a['t'](_0x49986a(0x1db)),'pickerFallbackValue':_0x188d46?_0x1edbbc[_0x49986a(0x287)][0x32]:_0x1edbbc[_0x49986a(0x287)][0x3e8],'resetLabel':_0x5c4e9a['t'](_0x49986a(0x43b)),'value':_0x196498[_0x49986a(0x2e9)]??null,'onChange':_0x45863b=>_0x364f04({'textColor':_0x45863b??void 0x0})}),(0x0,g[_0x49986a(0x205)])(J,{'label':_0x5c4e9a['t'](_0x49986a(0x158)),'children':(0x0,g[_0x49986a(0x205)])(f[_0x49986a(0x27c)],{'items':[{'value':_0x49986a(0x364),'label':_0x5c4e9a['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':_0x49986a(0x104),'label':_0x5c4e9a['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':'right','label':_0x5c4e9a['t'](_0x49986a(0x43a))}],'value':_0x196498['alignment'],'onChange':_0xfae74d=>_0x364f04({'alignment':_0xfae74d})})}),(0x0,g[_0x49986a(0x23b)])(J,{'label':_0x5c4e9a['t'](_0x49986a(0x1c6)),'children':[(0x0,g[_0x49986a(0x205)])(f['Segmented'],{'items':[{'value':_0x49986a(0x2f6),'label':_0x5c4e9a['t'](_0x49986a(0x1df))},{'value':_0x49986a(0x121),'label':_0x5c4e9a['t'](_0x49986a(0xd0))}],'value':_0x196498[_0x49986a(0x3d7)],'onChange':_0x27bcb3=>_0x364f04({'fontSizeMode':_0x27bcb3})}),_0x196498[_0x49986a(0x3d7)]===_0x49986a(0x121)&&(0x0,g[_0x49986a(0x205)])(f['InputNumber'],{'className':_0x49986a(0x37c),'min':0xc,'max':0x78,'value':_0x196498[_0x49986a(0x2c9)],'onChange':_0x5c58ef=>_0x364f04({'fontSize':_0x5c58ef??0x28,'fontSizeMode':_0x49986a(0x121)}),'size':_0x49986a(0x4d6),'controls':!0x1})]}),(0x0,g[_0x49986a(0x205)])(J,{'label':_0x5c4e9a['t']('bases-dashboard-ui.dashboardInspector.numberFormat'),'children':(0x0,g[_0x49986a(0x205)])(G,{'value':_0x196498[_0x49986a(0x435)],'options':[{'value':_0x49986a(0x478),'label':_0x5c4e9a['t'](_0x49986a(0x37b))},{'value':'number','label':_0x5c4e9a['t'](_0x49986a(0x452))},{'value':'percent','label':_0x5c4e9a['t'](_0x49986a(0x1e6))},{'value':_0x49986a(0x1e4),'label':_0x5c4e9a['t']('bases-dashboard-ui.dashboardInspector.currency')},{'value':_0x49986a(0x33d),'label':_0x5c4e9a['t'](_0x49986a(0x462))},{'value':_0x49986a(0x308),'label':_0x5c4e9a['t'](_0x49986a(0x1fd))}],'onChange':_0x173383=>{const _0x26650=_0x49986a;let _0x454038=Ce[_0x26650(0x396)](_0x5c83eb=>_0x5c83eb===_0x173383);_0x454038&&_0x364f04({'numberFormat':_0x454038});}})}),_0x196498[_0x49986a(0x435)]===_0x49986a(0x1e4)&&(0x0,g[_0x49986a(0x205)])(J,{'label':_0x5c4e9a['t'](_0x49986a(0x473)),'children':(0x0,g[_0x49986a(0x205)])(f[_0x49986a(0x2d0)],{'value':_0x196498[_0x49986a(0x1e4)],'onChange':_0xf6a3b6=>_0x364f04({'currency':_0xf6a3b6[_0x49986a(0x269)](0x0,0x3)[_0x49986a(0x2e6)]()}),'size':_0x49986a(0x4d6)})}),_0x196498[_0x49986a(0x435)]!==_0x49986a(0x478)&&(0x0,g[_0x49986a(0x205)])(J,{'label':_0x5c4e9a['t']('bases-dashboard-ui.dashboardInspector.decimalPlaces'),'children':(0x0,g[_0x49986a(0x205)])(f['InputNumber'],{'min':0x0,'max':0x8,'value':_0x196498[_0x49986a(0xeb)],'onChange':_0x4373db=>_0x364f04({'decimalPlaces':_0x4373db??0x0}),'size':_0x49986a(0x4d6),'controls':!0x1})})]})}),_0x4c5eb6&&(0x0,g[_0x49986a(0x205)])(fe,{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':(0x0,g[_0x49986a(0x205)])(t['MobileFormulaEditorPanel'],{'tables':_0xcbf40a,'formula':(0x0,t['formulaToEditorFormula'])(_0x400d08,_0xcbf40a),'onCancel':()=>_0xc52a1(!0x1),'onSave':_0x365102=>{const _0x5a93e6=_0x49986a;let _0x4705c9=_0x1bb0e0['shapeData'][_0x5a93e6(0x408)]??{'formula':''};return _0x1420c0({..._0x1bb0e0,'shapeData':{..._0x1bb0e0[_0x5a93e6(0x36b)],'formulaBinding':{..._0x4705c9,'formula':(0x0,t[_0x5a93e6(0x4d9)])(_0x365102,_0xcbf40a)}}})[_0x5a93e6(0x173)](()=>_0xc52a1(!0x1))['catch'](()=>void 0x0);}})})]});}function _0x479a(_0x4fe1c7,_0x25e264){_0x4fe1c7=_0x4fe1c7-0xbd;const _0x93ebf7=_0x93eb();let _0x479ab4=_0x93ebf7[_0x4fe1c7];return _0x479ab4;}function J({children:_0x2a5e65,label:_0x4260c2}){const _0x1d5b86=_0xf14a5a;return(0x0,g[_0x1d5b86(0x23b)])(_0x1d5b86(0x331),{'role':_0x1d5b86(0x325),'aria-label':_0x4260c2,'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[(0x0,g[_0x1d5b86(0x205)])(_0x1d5b86(0x49b),{'children':_0x4260c2}),_0x2a5e65]});}function Te({disabled:_0x5ceda4,fields:_0x19dc39,filter:_0x529e05,onChange:_0x487d2f}){const _0x42d1ff=_0xf14a5a;let _0x370ceb=(0x0,m['useDependency'])(m[_0x42d1ff(0x30b)])[_0x42d1ff(0x41c)]??null,[_0x3848db,_0x286e0c]=(0x0,h[_0x42d1ff(0x2b8)])(null),_0x3a55ae=(0x0,m[_0x42d1ff(0x491)])(a[_0x42d1ff(0x207)]),_0x4e25e2=(_0x529e05==null?void 0x0:_0x529e05[_0x42d1ff(0x47e)])??[];if(!_0x4e25e2['length'])return(0x0,g[_0x42d1ff(0x23b)])(_0x42d1ff(0x331),{'className':_0x42d1ff(0x281),'children':[(0x0,g[_0x42d1ff(0x205)])(s[_0x42d1ff(0x2c1)],{'className':_0x42d1ff(0x496)}),(0x0,g[_0x42d1ff(0x205)])(_0x42d1ff(0x49b),{'className':_0x42d1ff(0x3fb),'children':_0x3a55ae['t']('bases-dashboard-ui.dashboard.tableFilter')})]});let _0xf1a75c=_0x3848db==null?void 0x0:_0x4e25e2[_0x3848db],_0x20d12d=_0x19dc39[_0x42d1ff(0x396)](_0x7aba65=>_0x7aba65['id']===(_0xf1a75c==null?void 0x0:_0xf1a75c[_0x42d1ff(0x31c)]));return(0x0,g[_0x42d1ff(0x23b)])(_0x42d1ff(0x331),{'className':_0x42d1ff(0x327),'children':[_0x4e25e2[_0x42d1ff(0x4a6)]((_0x19aad6,_0x30eb62)=>{const _0x2c6c03=_0x42d1ff;var _0x32bc79;return(0x0,g[_0x2c6c03(0x23b)])(f[_0x2c6c03(0x134)],{'disabled':_0x5ceda4,'onClick':()=>_0x286e0c(_0x30eb62),'size':_0x2c6c03(0x3b3),'children':[(0x0,g['jsx'])('span',{'children':((_0x32bc79=_0x19dc39[_0x2c6c03(0x396)](_0x31da2a=>_0x31da2a['id']===_0x19aad6['fieldId']))==null?void 0x0:_0x32bc79[_0x2c6c03(0x1dc)])??_0x19aad6[_0x2c6c03(0x31c)]}),(0x0,g[_0x2c6c03(0x205)])(_0x2c6c03(0x49b),{'className':_0x2c6c03(0x476),'children':String(_0x19aad6[_0x2c6c03(0x482)]??'')})]},_0x19aad6['fieldId']+'-'+_0x30eb62);}),_0x20d12d&&_0xf1a75c&&_0x3848db!=null&&_0x370ceb&&(0x0,v[_0x42d1ff(0x2cb)])((0x0,g[_0x42d1ff(0x205)])(t['BaseMobileFilterOperand'],{'field':_0x20d12d,'value':_0xf1a75c[_0x42d1ff(0x482)],'onClose':()=>_0x286e0c(null),'onSave':_0x567c28=>{const _0x5a88a6=_0x42d1ff;_0x487d2f({'conjunction':(_0x529e05==null?void 0x0:_0x529e05[_0x5a88a6(0x3e2)])??a['BaseFilterConjunction'][_0x5a88a6(0x410)],'conditions':_0x4e25e2[_0x5a88a6(0x4a6)]((_0x5093ae,_0x234091)=>_0x234091===_0x3848db?{..._0x5093ae,'operand':_0x567c28}:_0x5093ae)}),_0x286e0c(null);}}),_0x370ceb)]});}function Ee({fields:_0x3f01ba,filter:_0x1381af,onChange:_0x1763d4,onClear:_0x552c4a}){const _0x26b511=_0xf14a5a;let _0x53a089=(0x0,m[_0x26b511(0x491)])(a[_0x26b511(0x207)]);return(0x0,g[_0x26b511(0x23b)])(_0x26b511(0x331),{'children':[(0x0,g[_0x26b511(0x205)])(t[_0x26b511(0x418)],{'fields':_0x3f01ba,'value':_0x1381af??{'conjunction':a['BaseFilterConjunction']['AND'],'conditions':[]},'onChange':_0x1763d4}),(0x0,g['jsx'])(f[_0x26b511(0x134)],{'onClick':_0x552c4a,'size':'middle','children':_0x53a089['t']('bases-dashboard-ui.dashboardInspector.reset')})]});}function De({base:_0x5c11ea,chartRuntime:_0x2d8a9a,onChange:_0x4c0547,onClose:_0x32ef6b,onSelectBackgroundImage:_0x5245f8,onSelectImage:_0x457752,unitId:_0x10d2cf,widget:_0x55ba18}){const _0x4a1f0a=_0xf14a5a;let _0x4ed120=(0x0,m['useDependency'])(a[_0x4a1f0a(0x17e)]),_0x1c5eb2=(0x0,m[_0x4a1f0a(0x491)])(a['LocaleService']),_0x3f10fa=_0x5c11ea[_0x4a1f0a(0x164)](),_0x139945=_0x4a1f0a(0x372)in _0x55ba18?_0x3f10fa[_0x4a1f0a(0x419)][_0x55ba18[_0x4a1f0a(0x372)]]:void 0x0,_0x12100a=_0x55ba18['type']===e[_0x4a1f0a(0x294)]['PivotChart']?_0x139945==null?void 0x0:_0x139945[_0x4a1f0a(0x34d)][_0x55ba18[_0x4a1f0a(0xe5)]]:void 0x0,_0x13fee7=_0x1c5eb2['t'](Pe(_0x55ba18)),_0x369623=(0x0,g['jsxs'])(_0x4a1f0a(0x2eb),{'data-dashboard-inspector':!0x0,'className':'univer-flex\x20univer-h-full\x20univer-w-full\x20univer-shrink-0\x20univer-flex-col\x20univer-border-0\x20univer-bg-gray-0\x20dark:!univer-bg-gray-900','children':[_0x55ba18[_0x4a1f0a(0xf6)]===e[_0x4a1f0a(0x294)][_0x4a1f0a(0x460)]&&(Ne(_0x12100a)&&_0x2d8a9a?(0x0,g[_0x4a1f0a(0x205)])(xe,{'runtime':_0x2d8a9a,'sourceChart':_0x12100a[_0x4a1f0a(0x34a)][_0x4a1f0a(0x3a9)],'sourceName':((_0x139945==null?void 0x0:_0x139945[_0x4a1f0a(0x1dc)])??'')+_0x4a1f0a(0x188)+_0x12100a[_0x4a1f0a(0x1dc)],'widget':_0x55ba18,'onChange':_0x4c0547,'onEditData':()=>{const _0x4ca620=_0x4a1f0a;_0x4ed120[_0x4ca620(0x4d7)](t['ActivateBaseViewOperation']['id'],{'unitId':_0x10d2cf,'tableId':_0x55ba18[_0x4ca620(0x372)],'viewId':_0x55ba18[_0x4ca620(0xe5)]})[_0x4ca620(0xc0)](()=>void 0x0);}}):(0x0,g['jsx'])(je,{'message':Ne(_0x12100a)?_0x1c5eb2['t']('bases-dashboard-ui.dashboardInspector.loading'):_0x1c5eb2['t'](_0x4a1f0a(0x143))})),_0x55ba18['type']===e['BaseDashboardWidgetType'][_0x4a1f0a(0x2ac)]&&(0x0,g[_0x4a1f0a(0x205)])(we,{'base':_0x5c11ea,'widget':_0x55ba18,'onChange':_0x4c0547,'onSelectBackgroundImage':_0x5245f8}),_0x55ba18[_0x4a1f0a(0xf6)]===e[_0x4a1f0a(0x294)]['TableFilter']&&(0x0,g[_0x4a1f0a(0x205)])(ke,{'base':_0x5c11ea,'onChange':_0x4c0547,'widget':_0x55ba18}),_0x55ba18[_0x4a1f0a(0xf6)]===e['BaseDashboardWidgetType'][_0x4a1f0a(0x1cf)]&&(0x0,g[_0x4a1f0a(0x205)])(Ae,{'onChange':_0x4c0547,'widget':_0x55ba18}),_0x55ba18['type']===e[_0x4a1f0a(0x294)]['Image']&&(0x0,g[_0x4a1f0a(0x205)])(Oe,{'onChange':_0x4c0547,'onSelectImage':_0x457752,'widget':_0x55ba18})]});return(0x0,g['jsx'])(t[_0x4a1f0a(0x1c2)],{'title':_0x13fee7,'onClose':_0x32ef6b,'children':_0x369623});}function Oe({onChange:_0x357bc3,onSelectImage:_0x5d6204,widget:_0x3eb4c9}){const _0x32c391=_0xf14a5a;let _0x14db86=(0x0,m[_0x32c391(0x491)])(a[_0x32c391(0x207)]);return(0x0,g[_0x32c391(0x23b)])(_0x32c391(0x331),{'className':_0x32c391(0x386),'children':[(0x0,g['jsxs'])(f[_0x32c391(0x134)],{'className':_0x32c391(0x335),'onClick':()=>_0x5d6204()[_0x32c391(0x173)](_0x13ac67=>_0x13ac67&&_0x357bc3({..._0x3eb4c9,'source':_0x13ac67[_0x32c391(0x465)],'sourceType':_0x13ac67[_0x32c391(0x367)],'alt':_0x13ac67[_0x32c391(0x1dc)]}))[_0x32c391(0xc0)](()=>void 0x0),'size':_0x32c391(0x3b3),'children':[(0x0,g[_0x32c391(0x205)])(s['IncreaseIcon'],{}),_0x14db86['t'](_0x32c391(0xfd))]}),(0x0,g['jsxs'])(_0x32c391(0x34b),{'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[(0x0,g[_0x32c391(0x205)])(_0x32c391(0x49b),{'children':_0x14db86['t'](_0x32c391(0x37a))}),(0x0,g[_0x32c391(0x205)])(f[_0x32c391(0x27c)],{'items':[{'value':_0x32c391(0x313),'label':_0x14db86['t'](_0x32c391(0x1b7))},{'value':_0x32c391(0x264),'label':_0x14db86['t'](_0x32c391(0x3f7))},{'value':'original','label':_0x14db86['t']('bases-dashboard-ui.dashboardInspector.originalSize')}],'value':_0x3eb4c9[_0x32c391(0x384)]??_0x32c391(0x313),'onChange':_0x4f297a=>_0x357bc3({..._0x3eb4c9,'displayMode':_0x4f297a})['catch'](()=>void 0x0)})]})]});}function ke({base:_0x40a71c,onChange:_0x374a23,widget:_0x26a0d3}){const _0x2a674f=_0xf14a5a;let _0x2fdd04=_0x40a71c[_0x2a674f(0x164)]()[_0x2a674f(0x419)][_0x26a0d3['tableId']],_0x5e1f3a=_0x2fdd04==null?void 0x0:_0x2fdd04[_0x2a674f(0x383)]['find'](_0x1c75d9=>_0x2fdd04['views'][_0x1c75d9]),_0x32d22b=_0x5e1f3a?_0x2fdd04==null?void 0x0:_0x2fdd04['views'][_0x5e1f3a]:void 0x0,_0x37102c=_0x2fdd04&&_0x32d22b?(0x0,t[_0x2a674f(0x29f)])(_0x2fdd04,_0x32d22b):[];return(0x0,g[_0x2a674f(0x205)])(Ee,{'fields':_0x37102c,'filter':_0x26a0d3[_0x2a674f(0x4a5)],'onChange':_0x35eed0=>_0x374a23({..._0x26a0d3,'filter':_0x35eed0})[_0x2a674f(0xc0)](()=>void 0x0),'onClear':()=>_0x374a23({..._0x26a0d3,'filter':null})[_0x2a674f(0xc0)](()=>void 0x0)});}function Ae({onChange:_0x4f362a,widget:_0x13caa9}){const _0x469be5=_0xf14a5a;let _0x4a9279=(0x0,m[_0x469be5(0x491)])(a[_0x469be5(0x207)]),_0x36db56=(0x0,m[_0x469be5(0x491)])(a['ThemeService']),_0x3a6839=(0x0,m['useObservable'])(()=>_0x36db56[_0x469be5(0x321)],_0x36db56[_0x469be5(0x16c)](),!0x1,[_0x36db56]),_0x403ed4=oe(_0x13caa9),_0xaf7a1a=_0x24224b=>_0x4f362a({..._0x13caa9,'appearance':{..._0x403ed4,..._0x24224b}})[_0x469be5(0xc0)](()=>void 0x0);return(0x0,g[_0x469be5(0x23b)])(_0x469be5(0x331),{'className':_0x469be5(0x2fd),'children':[(0x0,g[_0x469be5(0x205)])(f[_0x469be5(0x415)],{'className':'univer-max-h-40','defaultValue':U(_0x13caa9[_0x469be5(0x4b4)]),'rows':0x8,'onBlur':_0x15a8f0=>_0x4f362a({..._0x13caa9,'document':se(_0x13caa9[_0x469be5(0x4b4)],_0x15a8f0['target']['value'])})['catch'](()=>void 0x0),'size':_0x469be5(0x4d6)}),(0x0,g[_0x469be5(0x205)])(n[_0x469be5(0x21c)],{'emptyLabel':_0x4a9279['t'](_0x469be5(0x291)),'label':_0x4a9279['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x3a6839[_0x469be5(0x287)][0x0],'resetLabel':_0x4a9279['t'](_0x469be5(0x43b)),'value':_0x403ed4['backgroundColor']??null,'onChange':_0x2fd44e=>_0xaf7a1a({'backgroundColor':_0x2fd44e??void 0x0})}),(0x0,g[_0x469be5(0x205)])(n[_0x469be5(0x21c)],{'emptyLabel':_0x4a9279['t']('bases-dashboard-ui.dashboardInspector.textColor'),'label':_0x4a9279['t'](_0x469be5(0x1db)),'pickerFallbackValue':_0x3a6839[_0x469be5(0x287)][0x3e8],'resetLabel':_0x4a9279['t'](_0x469be5(0x43b)),'value':_0x403ed4[_0x469be5(0x2e9)]??null,'onChange':_0x587268=>_0xaf7a1a({'textColor':_0x587268??void 0x0})}),(0x0,g[_0x469be5(0x205)])(Me,{'label':_0x4a9279['t']('bases-dashboard-ui.dashboardInspector.alignment'),'children':(0x0,g[_0x469be5(0x205)])(f[_0x469be5(0x27c)],{'items':[{'value':_0x469be5(0x364),'label':_0x4a9279['t']('bases-dashboard-ui.dashboardInspector.left')},{'value':'center','label':_0x4a9279['t'](_0x469be5(0x346))},{'value':'right','label':_0x4a9279['t'](_0x469be5(0x43a))}],'value':_0x403ed4[_0x469be5(0x11d)],'onChange':_0x2b4a8e=>_0xaf7a1a({'alignment':_0x2b4a8e})})}),(0x0,g['jsxs'])(Me,{'label':_0x4a9279['t'](_0x469be5(0x1c6)),'children':[(0x0,g['jsx'])(f[_0x469be5(0x27c)],{'items':[{'value':'auto','label':_0x4a9279['t']('bases-dashboard-ui.dashboardInspector.autoFit')},{'value':'custom','label':_0x4a9279['t'](_0x469be5(0xd0))}],'value':_0x403ed4['fontSizeMode'],'onChange':_0x33b062=>_0xaf7a1a({'fontSizeMode':_0x33b062})}),_0x403ed4[_0x469be5(0x3d7)]===_0x469be5(0x121)&&(0x0,g[_0x469be5(0x205)])(f[_0x469be5(0x43e)],{'className':_0x469be5(0x37c),'min':0xa,'max':0x78,'value':_0x403ed4['fontSize'],'onChange':_0x3d6b80=>_0xaf7a1a({'fontSize':_0x3d6b80??0x12,'fontSizeMode':_0x469be5(0x121)}),'size':_0x469be5(0x4d6),'controls':!0x1})]})]});}function je({message:_0x285e4d}){const _0x2bc8ca=_0xf14a5a;return(0x0,g[_0x2bc8ca(0x205)])(_0x2bc8ca(0x331),{'className':'univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','children':_0x285e4d});}function Me({children:_0x57042e,label:_0x43cee7}){const _0x1f30f5=_0xf14a5a;return(0x0,g[_0x1f30f5(0x23b)])(_0x1f30f5(0x331),{'role':_0x1f30f5(0x325),'aria-':!0x0,'className':_0x1f30f5(0xe3),'children':[(0x0,g[_0x1f30f5(0x205)])(_0x1f30f5(0x49b),{'children':_0x43cee7}),_0x57042e]});}function Ne(_0x3fbfad){const _0x317a85=_0xf14a5a;return(_0x3fbfad==null?void 0x0:_0x3fbfad[_0x317a85(0xf6)])===a[_0x317a85(0x40a)][_0x317a85(0x3af)]&&typeof _0x3fbfad[_0x317a85(0x34a)]==_0x317a85(0x2f5)&&_0x3fbfad[_0x317a85(0x34a)]!==null&&_0x317a85(0x2f1)in _0x3fbfad[_0x317a85(0x34a)]&&'chart'in _0x3fbfad['config'];}function Pe(_0x1297bd){const _0x54f080=_0xf14a5a;switch(_0x1297bd[_0x54f080(0xf6)]){case e[_0x54f080(0x294)][_0x54f080(0x460)]:return _0x54f080(0x4c6);case e[_0x54f080(0x294)]['TableFilter']:return _0x54f080(0x389);case e[_0x54f080(0x294)][_0x54f080(0x1cf)]:return _0x54f080(0x31a);case e[_0x54f080(0x294)][_0x54f080(0x3a3)]:return _0x54f080(0x305);case e[_0x54f080(0x294)]['FormulaShape']:return _0x54f080(0x322);}}function Fe({onDelete:_0x550109,onEdit:_0xbd5dd9,onMoveUp:_0x2e630f,onMoveDown:_0x26934b}){const _0x2d49c2=_0xf14a5a;let [_0x4416ee,_0x293518]=(0x0,h[_0x2d49c2(0x2b8)])(!0x1),_0x4965d6=(0x0,m['useDependency'])(a['LocaleService']),_0x5fa5b1=_0x4965d6['t'](_0x2d49c2(0x1a4)),_0x36e2de=_0x4965d6['t'](_0x2d49c2(0x273)),_0x48fdf1=_0x4965d6['t'](_0x2d49c2(0x369)),_0x460949=[{'type':_0x2d49c2(0x392),'children':(0x0,g[_0x2d49c2(0x23b)])(_0x2d49c2(0x49b),{'className':_0x2d49c2(0x378),'children':[(0x0,g[_0x2d49c2(0x205)])(s[_0x2d49c2(0x36f)],{'className':_0x2d49c2(0x286),'aria-hidden':_0x2d49c2(0x109)}),(0x0,g[_0x2d49c2(0x205)])(_0x2d49c2(0x49b),{'children':_0x5fa5b1})]}),'onSelect':_0xbd5dd9},..._0x2e630f?[{'type':_0x2d49c2(0x392),'children':(0x0,g['jsxs'])(_0x2d49c2(0x49b),{'className':_0x2d49c2(0x378),'children':[(0x0,g[_0x2d49c2(0x205)])(s[_0x2d49c2(0x1d4)],{'className':'univer-size-4','aria-hidden':'true'}),(0x0,g[_0x2d49c2(0x205)])(_0x2d49c2(0x49b),{'children':_0x4965d6['t'](_0x2d49c2(0x45c))})]}),'onSelect':_0x2e630f}]:[],..._0x26934b?[{'type':_0x2d49c2(0x392),'children':(0x0,g['jsxs'])(_0x2d49c2(0x49b),{'className':_0x2d49c2(0x378),'children':[(0x0,g[_0x2d49c2(0x205)])(s['ArrowDownIcon'],{'className':_0x2d49c2(0x286),'aria-hidden':'true'}),(0x0,g[_0x2d49c2(0x205)])(_0x2d49c2(0x49b),{'children':_0x4965d6['t']('bases-dashboard-ui.mobile.moveDown')})]}),'onSelect':_0x26934b}]:[],{'type':'separator'},{'type':_0x2d49c2(0x392),'variant':_0x2d49c2(0x344),'children':(0x0,g['jsxs'])(_0x2d49c2(0x49b),{'className':_0x2d49c2(0x378),'children':[(0x0,g['jsx'])(s['DeleteIcon'],{'className':_0x2d49c2(0x286),'aria-hidden':_0x2d49c2(0x109)}),(0x0,g['jsx'])(_0x2d49c2(0x49b),{'children':_0x36e2de})]}),'onSelect':_0x550109}];return(0x0,g[_0x2d49c2(0x205)])(f['DropdownMenu'],{'open':_0x4416ee,'onOpenChange':_0x293518,'align':_0x2d49c2(0x1b0),'sideOffset':0x4,'items':_0x460949[_0x2d49c2(0x4a6)](_0xdb3da4=>({..._0xdb3da4,'className':_0xdb3da4['type']===_0x2d49c2(0x392)?_0x2d49c2(0x2b7):void 0x0})),'children':(0x0,g[_0x2d49c2(0x205)])(f[_0x2d49c2(0x134)],{'type':_0x2d49c2(0x347),'size':_0x2d49c2(0x3cf),'variant':_0x2d49c2(0x43c),'onPointerDown':_0x4df71d=>_0x4df71d[_0x2d49c2(0x317)](),'onClick':()=>_0x293518(_0x6b294b=>!_0x6b294b),'title':_0x48fdf1,'aria-label':_0x48fdf1,'className':'univer-rounded-full\x20!univer-border-0\x20!univer-shadow-none','children':(0x0,g[_0x2d49c2(0x205)])(s['MoreHorizontalIcon'],{'className':'univer-size-4','aria-hidden':'true'})})});}function Ie({dashboardId:_0x2d66a4,presentation:_0x4b6ddd=!0x1,unitId:_0x5245f3}){const _0x2e8e86=_0xf14a5a;let _0x42822b=(0x0,m['useDependency'])(a[_0x2e8e86(0x3e0)]),_0x4647f2=(0x0,m[_0x2e8e86(0x491)])(a[_0x2e8e86(0xf1)]);(0x0,m[_0x2e8e86(0x3b4)])(_0x4647f2['changed$'],0x0);let _0x3930d8=(0x0,m[_0x2e8e86(0x491)])(a[_0x2e8e86(0x17e)]),_0x154739=(0x0,m[_0x2e8e86(0x491)])(u[_0x2e8e86(0x4c9)]),_0x3cf4b2=(0x0,m[_0x2e8e86(0x491)])(a[_0x2e8e86(0x39f)]),_0x51a829=(0x0,m[_0x2e8e86(0x491)])(a['IUniverInstanceService']),_0xcb35b0=(0x0,m[_0x2e8e86(0x491)])(a[_0x2e8e86(0x207)]),_0x4692dd=(0x0,m[_0x2e8e86(0x491)])(e[_0x2e8e86(0x28d)]),_0x579076=(0x0,m[_0x2e8e86(0x491)])(a[_0x2e8e86(0x25f)]),[_0x1479b8,_0x501d3d]=(0x0,h[_0x2e8e86(0x2b8)])(!0x1),[_0xf7005b,_0x6872a5]=(0x0,h[_0x2e8e86(0x2b8)])(),[_0x3c2865,_0x2fd76d]=(0x0,h[_0x2e8e86(0x2b8)])(!0x1),[_0x2fe907,_0x24b489]=(0x0,h[_0x2e8e86(0x2b8)])(()=>new Map()),_0x57dd21=(0x0,h['useCallback'])((_0x4f8282,_0x3fb8fa)=>{_0x24b489(_0x57455c=>{const _0x351b99=_0x479a;let _0x4cc7b2=new Map(_0x57455c);return _0x3fb8fa?_0x4cc7b2[_0x351b99(0x4c2)](_0x4f8282,_0x3fb8fa):_0x4cc7b2[_0x351b99(0x4b1)](_0x4f8282),_0x4cc7b2;});},[]),_0x177762=(0x0,m[_0x2e8e86(0x3b4)])(()=>_0x4692dd['change$'][_0x2e8e86(0x2f4)]((0x0,c['map'])(()=>_0x4692dd[_0x2e8e86(0x41d)](_0x5245f3,_0x2d66a4))),_0x4692dd['getDashboard'](_0x5245f3,_0x2d66a4),!0x1,[_0x2d66a4,_0x4692dd,_0x5245f3]),_0x266537=_0x51a829[_0x2e8e86(0x29a)](_0x5245f3,a[_0x2e8e86(0x4cd)]['UNIVER_BASE']),_0x3370c9=(0x0,m[_0x2e8e86(0x3b4)])(()=>_0x579076[_0x2e8e86(0x336)],{'undos':0x0,'redos':0x0},!0x1,[_0x579076]),_0x2bd9eb=w(_0x5245f3,_0x2d66a4);if((0x0,h[_0x2e8e86(0x48c)])(()=>{const _0x3014f9=_0x2e8e86;_0x51a829[_0x3014f9(0x10d)](_0x5245f3),_0x51a829[_0x3014f9(0xd1)](_0x5245f3);},[_0x51a829,_0x5245f3]),!_0x177762||!_0x266537)return null;let _0x34391c={'unitId':_0x5245f3,'objectId':(0x0,l[_0x2e8e86(0x2c8)])(_0x2d66a4),'objectType':p[_0x2e8e86(0x2dd)]['BaseDashboard']},_0x506888=(_0x454a93,_0x50d733)=>{const _0x54b5f7=_0x2e8e86;let _0x376723=[..._0x177762[_0x54b5f7(0x399)]],_0xc46d1d=_0x376723[_0x54b5f7(0x380)](_0x454a93),_0x2ec7ad=_0xc46d1d+_0x50d733;if(!(_0xc46d1d<0x0||_0x2ec7ad<0x0||_0x2ec7ad>=_0x376723[_0x54b5f7(0x215)]))return[_0x376723[_0xc46d1d],_0x376723[_0x2ec7ad]]=[_0x376723[_0x2ec7ad],_0x376723[_0xc46d1d]],_0x3930d8[_0x54b5f7(0x4d7)](e[_0x54b5f7(0xef)]['id'],{'unitId':_0x5245f3,'dashboard':{..._0x177762,'widgetOrder':_0x376723}});},_0x17afd6=_0x1fb0b0=>_0x3930d8[_0x2e8e86(0x4d7)](e[_0x2e8e86(0xcb)]['id'],{'unitId':_0x5245f3,'dashboardId':_0x2d66a4,'widget':_0x1fb0b0})[_0x2e8e86(0xc0)](()=>void 0x0),_0x6c721b=(_0x900144,_0xadd4ab,_0x253566)=>{const _0x4f235c=_0x2e8e86;let _0x3b9b37=Math[_0x4f235c(0x272)](0x0,..._0x177762[_0x4f235c(0x399)][_0x4f235c(0x3fa)](_0x443f47=>{const _0xd764f0=_0x4f235c;var _0x52fe5e;let _0x4840e7=(_0x52fe5e=_0x177762[_0xd764f0(0x22d)][_0x443f47])==null?void 0x0:_0x52fe5e[_0xd764f0(0xf0)];return _0x4840e7?[_0x4840e7[_0xd764f0(0x210)]+_0x4840e7[_0xd764f0(0x442)]]:[];})),_0x2098f9='dashboard-widget-'+(0x0,a[_0x4f235c(0x40b)])(0x8),_0x164bb1={'column':0x0,'row':_0x3b9b37,'columnSpan':_0xadd4ab,'rowSpan':_0x253566};switch(_0x900144['type']){case e[_0x4f235c(0x294)][_0x4f235c(0x460)]:return _0x17afd6({..._0x900144,'id':_0x2098f9,'layout':_0x164bb1});case e[_0x4f235c(0x294)]['TableFilter']:return _0x17afd6({..._0x900144,'id':_0x2098f9,'layout':_0x164bb1});case e[_0x4f235c(0x294)][_0x4f235c(0x1cf)]:return _0x17afd6({..._0x900144,'id':_0x2098f9,'layout':_0x164bb1});case e[_0x4f235c(0x294)][_0x4f235c(0x3a3)]:return _0x17afd6({..._0x900144,'id':_0x2098f9,'layout':_0x164bb1});case e[_0x4f235c(0x294)][_0x4f235c(0x2ac)]:return _0x17afd6({..._0x900144,'id':_0x2098f9,'layout':_0x164bb1});}},_0x1b3568=_0x266537[_0x2e8e86(0x164)](),_0x755dbb=_0x1b3568[_0x2e8e86(0x24b)][_0x2e8e86(0x3fa)](_0x179aa2=>{const _0x4d030e=_0x2e8e86;let _0x1ffeaa=_0x1b3568[_0x4d030e(0x419)][_0x179aa2];if(!_0x1ffeaa)return[];let _0x24c10b=_0x1ffeaa[_0x4d030e(0x383)][_0x4d030e(0x3fa)](_0x158020=>{const _0x28d057=_0x4d030e;let _0x29473a=_0x1ffeaa[_0x28d057(0x34d)][_0x158020];return We(_0x29473a)?[{'type':_0x28d057(0x392),'children':_0x29473a[_0x28d057(0x1dc)],'onSelect':()=>_0x6c721b({'type':e[_0x28d057(0x294)]['PivotChart'],'tableId':_0x179aa2,'pivotViewId':_0x158020,'chart':{..._0x29473a[_0x28d057(0x34a)]['chart']}},0x6,0xa)}]:[];});return[{'type':_0x4d030e(0x2ca),'children':_0x1ffeaa['name'],'options':[..._0x24c10b,..._0x24c10b[_0x4d030e(0x215)]?[{'type':_0x4d030e(0x1e9)}]:[],{'type':_0x4d030e(0x392),'children':_0xcb35b0['t'](_0x4d030e(0x389)),'onSelect':()=>_0x6c721b({'type':e[_0x4d030e(0x294)]['TableFilter'],'tableId':_0x179aa2,'filter':null},0x6,0x8)}]}];}),_0x256c61=[..._0x755dbb,..._0x755dbb[_0x2e8e86(0x215)]?[{'type':'separator'}]:[],{'type':_0x2e8e86(0x392),'children':_0xcb35b0['t'](_0x2e8e86(0x31a)),'onSelect':()=>_0x6c721b({'type':e['BaseDashboardWidgetType'][_0x2e8e86(0x1cf)],'document':Be()},0x4,0x6)},{'type':_0x2e8e86(0x392),'children':_0xcb35b0['t'](_0x2e8e86(0x305)),'onSelect':()=>Ve(_0x154739)[_0x2e8e86(0x173)](_0x496b10=>_0x496b10&&_0x6c721b({'type':e[_0x2e8e86(0x294)][_0x2e8e86(0x3a3)],'source':_0x496b10['source'],'sourceType':_0x496b10[_0x2e8e86(0x367)],'alt':_0x496b10[_0x2e8e86(0x1dc)],'displayMode':_0x2e8e86(0x313)},0x4,0x6))},{'type':_0x2e8e86(0x392),'children':_0xcb35b0['t'](_0x2e8e86(0x322)),'onSelect':()=>{const _0x34290b=_0x2e8e86;let _0x37730f=_0x1b3568[_0x34290b(0x24b)][_0x34290b(0x396)](_0x4fc3b8=>_0x1b3568['tables'][_0x4fc3b8]);_0x37730f&&_0x6c721b({'type':e[_0x34290b(0x294)][_0x34290b(0x2ac)],'tableId':_0x37730f,'shapeType':d['ShapeTypeEnum'][_0x34290b(0xc5)],'shapeData':(0x0,i[_0x34290b(0x1ce)])(),'description':_0xcb35b0['t']('bases-dashboard-ui.dashboard.formulaShape')},0x4,0x6);}}],_0x2cec13=_0xf7005b?_0x177762[_0x2e8e86(0x22d)][_0xf7005b]:void 0x0,_0x33f1a3=()=>_0x2fd76d(_0x39c313=>!_0x39c313),_0x1b9be5=_0x4b6ddd||_0x3c2865,_0x3ffacf=_0x2bd9eb&&!_0x1b9be5;return(0x0,g['jsx'])(ue,{'children':(0x0,g[_0x2e8e86(0x23b)])('div',{'className':_0x2e8e86(0x4b6)+(_0x3c2865?_0x2e8e86(0x27b):_0x2e8e86(0x3d5))+_0x2e8e86(0x404),'children':[_0x3c2865&&(0x0,g[_0x2e8e86(0x205)])(f[_0x2e8e86(0x134)],{'onClick':()=>_0x2fd76d(!0x1),'size':_0x2e8e86(0x3b3),'children':_0xcb35b0['t'](_0x2e8e86(0x359))}),!_0x1b9be5&&(0x0,g[_0x2e8e86(0x23b)])(_0x2e8e86(0x343),{'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[_0x2e8e86(0x205)])(s['ChartIcon'],{'className':_0x2e8e86(0x2be)}),(0x0,g[_0x2e8e86(0x205)])('h2',{'className':_0x2e8e86(0x2c6),'children':_0x177762[_0x2e8e86(0x1dc)]}),_0x4647f2['supports'](_0x34391c)&&(0x0,g[_0x2e8e86(0x205)])(f['Button'],{'variant':_0x2e8e86(0x43c),'disabled':!_0x4647f2[_0x2e8e86(0x352)](_0x34391c),'aria-label':_0xcb35b0['t'](_0x2e8e86(0x3e4)),'onClick':()=>{const _0x4f830a=_0x2e8e86;(0x0,m[_0x4f830a(0x4d2)])(_0x42822b,{'target':_0x34391c,'name':_0x177762[_0x4f830a(0x1dc)],'commandId':l[_0x4f830a(0x307)]['id'],'exists':()=>!!_0x4692dd[_0x4f830a(0x41d)](_0x5245f3,_0x2d66a4)});},'size':_0x2e8e86(0x3b3),'children':(0x0,g[_0x2e8e86(0x205)])(s['ProtectIcon'],{})}),(0x0,g['jsx'])(t[_0x2e8e86(0x461)],{'unitId':_0x5245f3}),(0x0,g[_0x2e8e86(0x205)])(f['Button'],{'type':'button','size':'middle','variant':'text','aria-label':_0xcb35b0['t'](_0x2e8e86(0x20e)),'disabled':!_0x2bd9eb||_0x3370c9[_0x2e8e86(0x24d)]===0x0,'onClick':()=>_0x3930d8['executeCommand'](a['UndoCommand']['id'])['catch'](()=>void 0x0),'children':(0x0,g['jsx'])(s[_0x2e8e86(0x1d6)],{})}),(0x0,g[_0x2e8e86(0x205)])(f[_0x2e8e86(0x134)],{'type':_0x2e8e86(0x347),'size':_0x2e8e86(0x3b3),'variant':_0x2e8e86(0x43c),'aria-label':_0xcb35b0['t']('bases-dashboard-ui.dashboard.redo'),'disabled':!_0x2bd9eb||_0x3370c9[_0x2e8e86(0x36c)]===0x0,'onClick':()=>_0x3930d8['executeCommand'](a[_0x2e8e86(0x47b)]['id'])[_0x2e8e86(0xc0)](()=>void 0x0),'children':(0x0,g[_0x2e8e86(0x205)])(s[_0x2e8e86(0x412)],{})}),(0x0,g[_0x2e8e86(0x205)])(f[_0x2e8e86(0x134)],{'type':_0x2e8e86(0x347),'size':_0x2e8e86(0x3b3),'variant':_0x2e8e86(0x43c),'aria-label':_0xcb35b0['t']('bases-dashboard-ui.dashboard.fullScreen'),'onClick':_0x33f1a3,'children':(0x0,g[_0x2e8e86(0x205)])(s[_0x2e8e86(0x12c)],{})}),(0x0,g[_0x2e8e86(0x205)])(de,{'items':_0x256c61,'children':(0x0,g[_0x2e8e86(0x23b)])(f[_0x2e8e86(0x134)],{'variant':_0x2e8e86(0x3c0),'disabled':!_0x2bd9eb,'size':_0x2e8e86(0x3b3),'children':[(0x0,g[_0x2e8e86(0x205)])(s[_0x2e8e86(0x328)],{}),_0xcb35b0['t'](_0x2e8e86(0x2cd))]})})]}),(0x0,g[_0x2e8e86(0x23b)])(_0x2e8e86(0x331),{'className':_0x2e8e86(0x3b1),'children':[(0x0,g[_0x2e8e86(0x205)])(_0x2e8e86(0x331),{'className':'univer-min-w-0\x20univer-flex-1','children':(0x0,g[_0x2e8e86(0x205)])(le,{'dashboard':_0x177762,'editable':_0x3ffacf,'widgetLabel':_0x263a17=>_0xcb35b0['t'](Ue(_0x263a17[_0x2e8e86(0xf6)])),'selectedWidgetId':_0x3ffacf?_0xf7005b:void 0x0,'onSelectWidget':_0x3ffacf?_0x42c0b9=>{_0x6872a5(_0x42c0b9),_0x42c0b9||_0x501d3d(!0x1);}:void 0x0,'renderWidget':_0x443a84=>(0x0,g[_0x2e8e86(0x205)])(Le,{'base':_0x266537,'dashboard':_0x177762,'unitId':_0x5245f3,'widget':_0x443a84,'onChange':_0x17afd6,'onChartRuntimeChange':_0x57dd21}),'renderWidgetActions':_0xccb391=>(0x0,g[_0x2e8e86(0x205)])(Fe,{'onMoveUp':_0x177762[_0x2e8e86(0x399)][_0x2e8e86(0x380)](_0xccb391['id'])>0x0?()=>_0x506888(_0xccb391['id'],-0x1):void 0x0,'onMoveDown':_0x177762['widgetOrder'][_0x2e8e86(0x380)](_0xccb391['id'])<_0x177762[_0x2e8e86(0x399)][_0x2e8e86(0x215)]-0x1?()=>_0x506888(_0xccb391['id'],0x1):void 0x0,'onEdit':()=>{_0x6872a5(_0xccb391['id']),_0x501d3d(!0x0);},'onDelete':()=>{const _0x39bedd=_0x2e8e86;_0xf7005b===_0xccb391['id']&&(_0x6872a5(void 0x0),_0x501d3d(!0x1)),_0x3930d8[_0x39bedd(0x4d7)](e[_0x39bedd(0x246)]['id'],{'unitId':_0x5245f3,'dashboardId':_0x2d66a4,'widgetId':_0xccb391['id']})[_0x39bedd(0xc0)](()=>void 0x0);}})})}),_0x3ffacf&&_0x1479b8&&_0x2cec13&&(0x0,g['jsx'])(De,{'base':_0x266537,'chartRuntime':_0x2fe907[_0x2e8e86(0x3f8)](_0x2cec13['id']),'unitId':_0x5245f3,'widget':_0x2cec13,'onChange':_0x17afd6,'onClose':()=>_0x501d3d(!0x1),'onSelectBackgroundImage':()=>He(_0x3cf4b2),'onSelectImage':()=>Ve(_0x154739)})]})]})});}function Le({base:_0x31b7fd,dashboard:_0x2902dd,onChange:_0x27ebf8,onChartRuntimeChange:_0x42861b,unitId:_0x3f3376,widget:_0x5ab36f}){const _0xae2ce9=_0xf14a5a;let _0x708bf8=(0x0,h[_0xae2ce9(0x177)])(()=>_0x2902dd[_0xae2ce9(0x399)]['flatMap'](_0x26159e=>{const _0x50632e=_0xae2ce9;let _0x2e8492=_0x2902dd['widgets'][_0x26159e];return(_0x2e8492==null?void 0x0:_0x2e8492['type'])===e['BaseDashboardWidgetType'][_0x50632e(0xc7)]&&_0x2e8492['tableId']===('tableId'in _0x5ab36f?_0x5ab36f['tableId']:'')&&_0x2e8492['filter']?[_0x2e8492[_0x50632e(0x4a5)]]:[];}),[_0x2902dd,_0x5ab36f]);switch(_0x5ab36f['type']){case e['BaseDashboardWidgetType']['PivotChart']:return(0x0,g[_0xae2ce9(0x205)])(ie,{'filters':_0x708bf8,'unitId':_0x3f3376,'widget':_0x5ab36f,'onRuntimeChange':_0x42861b});case e[_0xae2ce9(0x294)][_0xae2ce9(0xc7)]:return(0x0,g['jsx'])(Te,{'fields':Re(_0x31b7fd,_0x5ab36f[_0xae2ce9(0x372)]),'filter':_0x5ab36f[_0xae2ce9(0x4a5)],'onChange':_0x328d89=>_0x27ebf8({..._0x5ab36f,'filter':_0x328d89})[_0xae2ce9(0xc0)](()=>void 0x0)});case e['BaseDashboardWidgetType']['Text']:return(0x0,g['jsx'])(ce,{'widget':_0x5ab36f});case e[_0xae2ce9(0x294)][_0xae2ce9(0x3a3)]:return(0x0,g[_0xae2ce9(0x205)])(ze,{'widget':_0x5ab36f});case e[_0xae2ce9(0x294)][_0xae2ce9(0x2ac)]:return(0x0,g[_0xae2ce9(0x205)])(M,{'dashboardId':_0x2902dd['id'],'unitId':_0x3f3376,'widget':_0x5ab36f});}}function Re(_0x13135b,_0xb4905d){const _0xfc1cbf=_0xf14a5a;let _0xfeab72=_0x13135b[_0xfc1cbf(0x164)]()[_0xfc1cbf(0x419)][_0xb4905d],_0x12f552=_0xfeab72==null?void 0x0:_0xfeab72[_0xfc1cbf(0x383)][_0xfc1cbf(0x396)](_0x5af0ee=>_0xfeab72[_0xfc1cbf(0x34d)][_0x5af0ee]),_0x4ba443=_0x12f552?_0xfeab72==null?void 0x0:_0xfeab72[_0xfc1cbf(0x34d)][_0x12f552]:void 0x0;return _0xfeab72&&_0x4ba443?(0x0,t['toMenuFields'])(_0xfeab72,_0x4ba443):[];}function ze({widget:_0x5b0e1d}){const _0x27fb99=_0xf14a5a;let _0x40964f=(0x0,m[_0x27fb99(0x491)])(u[_0x27fb99(0x4c9)]),[_0xc903e3,_0x1c9995]=(0x0,h[_0x27fb99(0x2b8)])(_0x5b0e1d[_0x27fb99(0x367)]===a[_0x27fb99(0x44f)][_0x27fb99(0x4ce)]?'':_0x5b0e1d['source']);return(0x0,h[_0x27fb99(0x48c)])(()=>{const _0x5e3b39=_0x27fb99;let _0x26cde0=!0x0;return _0x40964f[_0x5e3b39(0x1ac)](_0x5b0e1d['source'],_0x5b0e1d[_0x5e3b39(0x367)])[_0x5e3b39(0x173)](_0x5b956d=>{_0x26cde0&&_0x1c9995(_0x5b956d);})[_0x5e3b39(0xc0)](()=>void 0x0),()=>{_0x26cde0=!0x1;};},[_0x40964f,_0x5b0e1d[_0x27fb99(0x465)],_0x5b0e1d['sourceType']]),_0xc903e3?(0x0,g[_0x27fb99(0x205)])(_0x27fb99(0x331),{'role':_0x5b0e1d[_0x27fb99(0x166)]?'img':void 0x0,'aria-label':_0x5b0e1d['alt']||void 0x0,'data-dashboard-image':_0x5b0e1d['id'],'className':_0x27fb99(0x40e),'style':E(_0xc903e3,_0x5b0e1d[_0x27fb99(0x384)])}):null;}function Be(){const _0x200555=_0xf14a5a;let _0x2be63a=(0x0,a[_0x200555(0x2f8)])(new Set());return{'id':'dashboard-text-'+(0x0,a[_0x200555(0x40b)])(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x2be63a}]},'documentStyle':{}};}function Ve(_0x56412e){return new Promise(_0x1d72fc=>{const _0x1f5fed=_0x479a;let _0x1b2144=document[_0x1f5fed(0x2fb)](_0x1f5fed(0x26e));_0x1b2144[_0x1f5fed(0xf6)]=_0x1f5fed(0x282),_0x1b2144[_0x1f5fed(0x33e)]=_0x1f5fed(0x373),_0x1b2144['addEventListener']('change',()=>{const _0x5beccd=_0x1f5fed;var _0x53eb11;let _0x1a2f62=(_0x53eb11=_0x1b2144[_0x5beccd(0x2ef)])==null?void 0x0:_0x53eb11[0x0];_0x1a2f62?_0x56412e[_0x5beccd(0x23a)](_0x1a2f62)[_0x5beccd(0x173)](_0x2f307a=>{const _0x58b1ae=_0x5beccd;!_0x2f307a['source']||_0x2f307a['sourceType']===void 0x0?_0x1d72fc(null):_0x1d72fc({'name':_0x2f307a[_0x58b1ae(0x1dc)],'source':_0x2f307a[_0x58b1ae(0x465)],'sourceType':_0x2f307a[_0x58b1ae(0x367)]});})[_0x5beccd(0xc0)](()=>_0x1d72fc(null)):_0x1d72fc(null);},{'once':!0x0}),_0x1b2144[_0x1f5fed(0x261)]();});}function He(_0x7d94b2){return new Promise(_0x532935=>{const _0x338862=_0x479a;let _0x57b1e5=document['createElement'](_0x338862(0x26e));_0x57b1e5['type']=_0x338862(0x282),_0x57b1e5[_0x338862(0x33e)]='image/*',_0x57b1e5['addEventListener'](_0x338862(0x105),()=>{const _0x198e68=_0x338862;var _0x4ad2e0;let _0x47a017=(_0x4ad2e0=_0x57b1e5[_0x198e68(0x2ef)])==null?void 0x0:_0x4ad2e0[0x0];_0x47a017?_0x7d94b2['saveImage'](_0x47a017)[_0x198e68(0x173)](_0x1d5b22=>{const _0x12e8f6=_0x198e68;if(!(_0x1d5b22!=null&&_0x1d5b22[_0x12e8f6(0x465)]))_0x532935(null);else{if(_0x1d5b22['base64Cache']){let _0x4e3c92=new Image();_0x4e3c92[_0x12e8f6(0x3d1)]=_0x1d5b22[_0x12e8f6(0x3db)],_0x7d94b2[_0x12e8f6(0x1c3)](_0x1d5b22[_0x12e8f6(0x465)],_0x1d5b22[_0x12e8f6(0x1f5)],_0x4e3c92);}_0x532935({'source':_0x1d5b22[_0x12e8f6(0x465)],'sourceType':_0x1d5b22[_0x12e8f6(0x1f5)]});}})[_0x198e68(0xc0)](()=>_0x532935(null)):_0x532935(null);},{'once':!0x0}),_0x57b1e5[_0x338862(0x261)]();});}function Ue(_0x4c9472){const _0x4d8d59=_0xf14a5a;switch(_0x4c9472){case e[_0x4d8d59(0x294)][_0x4d8d59(0x460)]:return'bases-dashboard-ui.dashboard.pivotChart';case e[_0x4d8d59(0x294)][_0x4d8d59(0xc7)]:return _0x4d8d59(0x389);case e[_0x4d8d59(0x294)]['Text']:return _0x4d8d59(0x31a);case e[_0x4d8d59(0x294)]['Image']:return'bases-dashboard-ui.dashboard.image';case e[_0x4d8d59(0x294)]['FormulaShape']:return'bases-dashboard-ui.dashboard.formulaShape';}}function We(_0x30d855){const _0x9012a9=_0xf14a5a;return(_0x30d855==null?void 0x0:_0x30d855['type'])===a[_0x9012a9(0x40a)][_0x9012a9(0x3af)]&&typeof _0x30d855[_0x9012a9(0x34a)]==_0x9012a9(0x2f5)&&_0x30d855[_0x9012a9(0x34a)]!==null&&_0x9012a9(0x2f1)in _0x30d855[_0x9012a9(0x34a)]&&'chart'in _0x30d855[_0x9012a9(0x34a)];}function Ge({pivot:_0x326065,view:_0x259bf4}){const _0x964e51=_0xf14a5a;let _0x4ffcb9=(0x0,m[_0x964e51(0x491)])(a['LocaleService']),_0xd855b5=(0x0,h['useMemo'])(()=>Ke(_0x259bf4,_0x326065,_0x4ffcb9['t']('bases-dashboard-ui.pivot.grandTotal')),[_0x4ffcb9,_0x326065,_0x259bf4]);return(0x0,g['jsxs'])(_0x964e51(0x331),{'className':_0x964e51(0x3ed),'children':[_0xd855b5['pageRows'][_0x964e51(0x215)]>0x0&&(0x0,g[_0x964e51(0x205)])(_0x964e51(0x2f9),{'className':'univer-mb-2\x20univer-border-collapse\x20univer-text-sm','children':(0x0,g['jsx'])(_0x964e51(0x2b6),{'children':qe(_0xd855b5['pageRows'])})}),(0x0,g['jsxs'])('table',{'className':_0x964e51(0x3f3),'children':[_0xd855b5[_0x964e51(0x2de)]>0x0&&(0x0,g[_0x964e51(0x205)])(_0x964e51(0x1e5),{'className':_0x964e51(0x358),'children':qe(_0xd855b5[_0x964e51(0x423)][_0x964e51(0x269)](0x0,_0xd855b5[_0x964e51(0x2de)]))}),(0x0,g[_0x964e51(0x205)])(_0x964e51(0x2b6),{'children':qe(_0xd855b5[_0x964e51(0x423)]['slice'](_0xd855b5[_0x964e51(0x2de)]))})]})]});}function Ke(_0x30cfc9,_0x53f5cf,_0x12d24c){const _0xe468b1=_0xf14a5a;let _0x5a12d0=_0x30cfc9[_0xe468b1(0x1d1)]['rowCount'],_0x243d11=_0x30cfc9['rowView'][_0xe468b1(0x3ae)],_0x24fa68=_0x30cfc9[_0xe468b1(0x1d8)]['rowCount'],_0x47b7cb=_0x30cfc9[_0xe468b1(0x1d8)][_0xe468b1(0x3ae)],_0x39db4e=Array[_0xe468b1(0x32b)]({'length':_0x5a12d0+_0x24fa68},(_0x2642dc,_0x409f32)=>Array[_0xe468b1(0x32b)]({'length':_0x243d11+_0x47b7cb},(_0x56b73d,_0x26f6ce)=>{const _0x46cc50=_0xe468b1;var _0x20fda4,_0x45f84a;if(_0x409f32<_0x5a12d0&&_0x26f6ce<_0x243d11)return Je(_0x30cfc9['cornerView'],_0x409f32,_0x26f6ce,void 0x0,_0x12d24c,!0x0,!0x1,_0x46cc50(0x236)+_0x409f32+':'+_0x26f6ce);if(_0x409f32<_0x5a12d0){var _0x5f2a0e;let _0x32b531=_0x26f6ce-_0x243d11,_0x13a47f=(_0x5f2a0e=_0x30cfc9['colView'][_0x46cc50(0x2ba)][_0x409f32])==null?void 0x0:_0x5f2a0e['tableFieldId'];return Je(_0x30cfc9[_0x46cc50(0x1d1)],_0x409f32,_0x32b531,_0x13a47f?_0x30cfc9[_0x46cc50(0x248)][_0x13a47f]:void 0x0,_0x12d24c,!0x0,Ze(_0x30cfc9['colView'][_0x46cc50(0x49e)][_0x32b531]),_0x46cc50(0xf4)+_0x409f32+':'+_0x32b531);}if(_0x26f6ce<_0x243d11){var _0x45f01b;let _0x4efd44=_0x409f32-_0x5a12d0,_0x213ce6=(_0x45f01b=_0x30cfc9[_0x46cc50(0x4c0)][_0x46cc50(0x2ba)][_0x26f6ce])==null?void 0x0:_0x45f01b[_0x46cc50(0x2ee)];return Je(_0x30cfc9[_0x46cc50(0x4c0)],_0x4efd44,_0x26f6ce,_0x213ce6?_0x30cfc9[_0x46cc50(0x248)][_0x213ce6]:void 0x0,_0x12d24c,!0x0,Ze(_0x30cfc9[_0x46cc50(0x4c0)]['info'][_0x4efd44]),_0x46cc50(0x1c8)+_0x4efd44+':'+_0x26f6ce);}let _0x112f2d=_0x409f32-_0x5a12d0,_0x4b2a44=_0x26f6ce-_0x243d11,_0x2955ab=Math[_0x46cc50(0x272)](((_0x20fda4=_0x30cfc9[_0x46cc50(0x4c0)]['info'][_0x112f2d])==null?void 0x0:_0x20fda4[_0x46cc50(0x2a2)])??-0x1,((_0x45f84a=_0x30cfc9[_0x46cc50(0x1d1)][_0x46cc50(0x49e)][_0x4b2a44])==null?void 0x0:_0x45f84a[_0x46cc50(0x2a2)])??-0x1),_0x222e3e=_0x53f5cf[_0x46cc50(0x15c)][_0x2955ab<0x0?0x0:_0x2955ab];return Je(_0x30cfc9[_0x46cc50(0x1d8)],_0x112f2d,_0x4b2a44,_0x222e3e?_0x30cfc9['formatMap'][_0x222e3e]:void 0x0,_0x12d24c,!0x1,Ze(_0x30cfc9[_0x46cc50(0x4c0)]['info'][_0x112f2d])||Ze(_0x30cfc9[_0x46cc50(0x1d1)][_0x46cc50(0x49e)][_0x4b2a44]),_0x46cc50(0x1f8)+_0x112f2d+':'+_0x4b2a44);}));return{'headerColumnCount':_0x243d11,'headerRowCount':_0x5a12d0,'pageRows':_0x30cfc9['pageView'][_0xe468b1(0x2f2)]<0x0||_0x30cfc9[_0xe468b1(0x25e)]['lastCol']<0x0?[]:Array[_0xe468b1(0x32b)]({'length':_0x30cfc9[_0xe468b1(0x25e)][_0xe468b1(0x2f2)]+0x1},(_0x3ccd5a,_0xd69436)=>Array['from']({'length':_0x30cfc9[_0xe468b1(0x25e)][_0xe468b1(0x262)]+0x1},(_0x503a70,_0xafa3af)=>Je(_0x30cfc9[_0xe468b1(0x25e)],_0xd69436,_0xafa3af,void 0x0,_0x12d24c,!0x0,!0x1,_0xe468b1(0x2ad)+_0xd69436+':'+_0xafa3af))),'rows':_0x39db4e};}function qe(_0x444ba8){const _0x1488ea=_0xf14a5a;return _0x444ba8[_0x1488ea(0x4a6)](_0x516ac5=>{const _0x5da8fa=_0x1488ea;var _0xe87e28;return(0x0,g[_0x5da8fa(0x205)])('tr',{'children':_0x516ac5[_0x5da8fa(0x4a6)](_0x3e51cd=>{const _0x491279=_0x5da8fa;let _0x17641b=_0x3e51cd[_0x491279(0x4cc)]?'th':'td';return(0x0,g[_0x491279(0x205)])(_0x17641b,{'className':_0x491279(0x1b3)+(_0x3e51cd[_0x491279(0x4b0)]?'\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':'')+_0x491279(0x341)+(_0x3e51cd[_0x491279(0x4cc)]?'':_0x491279(0x112))+_0x491279(0x428),'children':_0x3e51cd[_0x491279(0x1aa)]},_0x3e51cd[_0x491279(0x1a9)]);})},(_0xe87e28=_0x516ac5[0x0])==null?void 0x0:_0xe87e28[_0x5da8fa(0x1a9)]);});}function Je(_0x2549b4,_0x7ac6bc,_0x51ec30,_0x2033bc,_0x371b4a,_0x401c28,_0x256e5b,_0x1b2807){const _0x1dd2b8=_0xf14a5a;var _0x112b7e;let _0xb140d2=(_0x112b7e=_0x2549b4['data'][_0x7ac6bc])==null?void 0x0:_0x112b7e[_0x51ec30],_0x2b3830=_0xb140d2==null?void 0x0:_0xb140d2['s'],_0xc8cfed=_0x256e5b||_0x2b3830===y[_0x1dd2b8(0x238)][_0x1dd2b8(0x2c7)]||_0x2b3830===y[_0x1dd2b8(0x238)]['MultipleGrandTotal'];return{'isHeader':_0x401c28,'isTotal':_0xc8cfed||_0x2b3830===y[_0x1dd2b8(0x238)][_0x1dd2b8(0x311)],'key':_0x1b2807,'style':_0x2b3830,'value':_0xc8cfed&&Xe(_0xb140d2==null?void 0x0:_0xb140d2['v'])?_0x371b4a:Ye(_0xb140d2,_0x2033bc)};}function Ye(_0x173c60,_0x4709cc){const _0x5f3f5a=_0xf14a5a;let _0x35b606=_0x173c60==null?void 0x0:_0x173c60['v'];return(0x0,y[_0x5f3f5a(0x3a0)])(_0x35b606)?String(_0x35b606[_0x5f3f5a(0x1aa)]??_0x35b606[_0x5f3f5a(0x4d4)]??''):(0x0,y['isErrorValue'])(_0x35b606)?'#'+_0x35b606[_0x5f3f5a(0x40c)]:_0x4709cc&&typeof _0x35b606==_0x5f3f5a(0x106)?a[_0x5f3f5a(0x391)][_0x5f3f5a(0x195)](_0x4709cc,_0x35b606):String(_0x35b606??'');}function Xe(_0xf92227){return _0xf92227===void 0x0||_0xf92227==='';}function Ze(_0x2f1e70){const _0x6cda26=_0xf14a5a;return!!(_0x2f1e70!=null&&_0x2f1e70['isBottomTotal']||_0x2f1e70!=null&&_0x2f1e70[_0x6cda26(0xd8)]||_0x2f1e70!=null&&_0x2f1e70[_0x6cda26(0x146)]||(_0x2f1e70==null?void 0x0:_0x2f1e70[_0x6cda26(0x1e3)])===_0x6cda26(0x17a));}const Qe=[{'area':y['PivotTableFiledAreaEnum'][_0xf14a5a(0x26b)],'key':_0xf14a5a(0x334),'label':_0xf14a5a(0x2bd)},{'area':y[_0xf14a5a(0x3ad)]['Column'],'key':_0xf14a5a(0x4ab),'label':_0xf14a5a(0x1ba)},{'area':y[_0xf14a5a(0x3ad)][_0xf14a5a(0x2d9)],'key':_0xf14a5a(0x47f),'label':_0xf14a5a(0x254)},{'area':y[_0xf14a5a(0x3ad)][_0xf14a5a(0x46c)],'key':_0xf14a5a(0x15c),'label':'bases-dashboard-ui.pivot.values'}],$e=[{'value':y[_0xf14a5a(0x1dd)]['sum'],'localeKey':_0xf14a5a(0x2ae)},{'value':y[_0xf14a5a(0x1dd)]['count'],'localeKey':_0xf14a5a(0x3c9)},{'value':y[_0xf14a5a(0x1dd)][_0xf14a5a(0x14d)],'localeKey':_0xf14a5a(0x4dd)},{'value':y[_0xf14a5a(0x1dd)][_0xf14a5a(0x49d)],'localeKey':_0xf14a5a(0xc8)},{'value':y[_0xf14a5a(0x1dd)]['max'],'localeKey':_0xf14a5a(0x20f)},{'value':y['PivotSubtotalTypeEnum'][_0xf14a5a(0x20c)],'localeKey':_0xf14a5a(0x443)},{'value':y[_0xf14a5a(0x1dd)][_0xf14a5a(0x41b)],'localeKey':_0xf14a5a(0x2d6)},{'value':y['PivotSubtotalTypeEnum'][_0xf14a5a(0x2f7)],'localeKey':_0xf14a5a(0x12f)},{'value':y[_0xf14a5a(0x1dd)][_0xf14a5a(0x3a6)],'localeKey':_0xf14a5a(0x27f)},{'value':y['PivotSubtotalTypeEnum']['var'],'localeKey':_0xf14a5a(0x2f3)},{'value':y[_0xf14a5a(0x1dd)][_0xf14a5a(0x30c)],'localeKey':_0xf14a5a(0x3c7)}];function et(_0x1e1f9a){const _0x3f4903=_0xf14a5a;let {config:_0x13a788,onChange:_0x5011c3,table:_0x5505c2}=_0x1e1f9a,_0x3fd6fb=(0x0,m[_0x3f4903(0x491)])(a[_0x3f4903(0x207)]),[_0x1a2787,_0x3f2730]=(0x0,h[_0x3f4903(0x2b8)])(_0x3f4903(0xf7)),[_0x2ccd26,_0x3f8905]=(0x0,h[_0x3f4903(0x2b8)])(''),[_0x1c5824,_0x262638]=(0x0,h[_0x3f4903(0x2b8)])(null),[_0x2337bf,_0x3238c7]=(0x0,h['useState'])(null),[_0x20716d,_0x3dae74]=(0x0,h[_0x3f4903(0x2b8)])(null),[_0x58bea4,_0x321f6d]=(0x0,h['useState'])(null),_0x8ff10c=(0x0,h[_0x3f4903(0x45b)])(null),_0x4ef8a2=(0x0,h[_0x3f4903(0x177)])(()=>_0x5505c2[_0x3f4903(0x4ae)][_0x3f4903(0x3fa)](_0x5a3f6b=>{const _0x48c029=_0x3f4903;let _0x50c707=_0x5505c2['fields'][_0x5a3f6b];return _0x50c707&&_0x50c707[_0x48c029(0x159)]!==!0x0&&_0x50c707[_0x48c029(0xf6)]!==a[_0x48c029(0x10f)][_0x48c029(0x474)]?[_0x50c707]:[];})[_0x3f4903(0x4a5)](_0x3948da=>_0x3948da['name']['toLocaleLowerCase']()[_0x3f4903(0xca)](_0x2ccd26['trim']()[_0x3f4903(0x329)]())),[_0x2ccd26,_0x5505c2]),_0x56ff18=_0x484814=>{const _0x280d30=_0x3f4903;let _0x5c4bb5=(0x0,e['createBasePivotTable'])(_0x5505c2,_0x13a788[_0x280d30(0x2f1)]);try{_0x484814(_0x5c4bb5),_0x5011c3({'pivot':_0x5c4bb5[_0x280d30(0x382)]()});}finally{_0x5c4bb5[_0x280d30(0x274)]();}},_0x44513f=(_0x2ed97b,_0xc7853b)=>{_0x1c5824&&(_0x56ff18(_0x3a1145=>{const _0x4f4e95=_0x479a;if(_0x1c5824[_0x4f4e95(0x475)]===_0x4f4e95(0x1da)){let _0x177704=_0x3a1145[_0x4f4e95(0x480)](_0x1c5824['id']),_0x13d88c=_0x177704[_0x4f4e95(0x2cc)]===_0x2ed97b&&_0x177704['index']<_0xc7853b?_0xc7853b-0x1:_0xc7853b;_0x3a1145[_0x4f4e95(0x33a)](_0x1c5824['id'],_0x2ed97b,_0x13d88c);}else ct(_0x3a1145,_0x1c5824['id'],_0x2ed97b,_0xc7853b);}),_0x262638(null),_0x3238c7(null));};return(0x0,g[_0x3f4903(0x23b)])(_0x3f4903(0x331),{'className':_0x3f4903(0x326),'children':[(0x0,g[_0x3f4903(0x205)])(n[_0x3f4903(0x4b9)],{'ariaLabel':_0x3fd6fb['t'](_0x3f4903(0xf2)),'className':_0x3f4903(0x306),'items':[{'label':_0x3fd6fb['t'](_0x3f4903(0x333)),'panelId':_0x3f4903(0x2d5),'value':'fields'},{'label':_0x3fd6fb['t'](_0x3f4903(0x25a)),'panelId':_0x3f4903(0x4db),'value':_0x3f4903(0xe8)}],'value':_0x1a2787,'onChange':_0x3f2730}),(0x0,g['jsx'])(_0x3f4903(0x331),{'ref':_0x8ff10c,'className':(0x0,f[_0x3f4903(0x108)])(_0x3f4903(0x196),f['scrollbarClassName']),'onDragOver':_0x5c53a0=>{const _0x2e3c0c=_0x3f4903;let _0x27dc00=_0x8ff10c[_0x2e3c0c(0x1fa)];if(!_0x27dc00)return;let _0x52c0e6=_0x27dc00[_0x2e3c0c(0x29c)]();_0x5c53a0[_0x2e3c0c(0x1fb)]<_0x52c0e6[_0x2e3c0c(0x1d0)]+0x30?_0x27dc00['scrollTop']-=0x10:_0x5c53a0[_0x2e3c0c(0x1fb)]>_0x52c0e6['bottom']-0x30&&(_0x27dc00['scrollTop']+=0x10);},'children':_0x1a2787===_0x3f4903(0xe8)?(0x0,g['jsx'])(st,{'config':_0x13a788,'commit':_0x56ff18}):(0x0,g[_0x3f4903(0x23b)])(_0x3f4903(0x331),{'className':_0x3f4903(0x3a5),'children':[(0x0,g[_0x3f4903(0x23b)])('div',{'children':[(0x0,g[_0x3f4903(0x205)])('div',{'className':'univer-mb-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':_0x3fd6fb['t'](_0x3f4903(0x2ce))}),(0x0,g[_0x3f4903(0x205)])(f[_0x3f4903(0x2d0)],{'allowClear':!0x0,'slot':(0x0,g['jsx'])(s[_0x3f4903(0x438)],{}),'value':_0x2ccd26,'placeholder':_0x3fd6fb['t'](_0x3f4903(0x13c)),'onChange':_0x3f8905,'size':'small'}),(0x0,g['jsx'])(_0x3f4903(0x331),{'className':'univer-mt-2\x20univer-flex\x20univer-max-h-60\x20univer-flex-col\x20univer-overflow-y-auto','children':_0x4ef8a2[_0x3f4903(0x4a6)](_0x1b33bf=>(0x0,g[_0x3f4903(0x205)])(tt,{'config':_0x13a788,'field':_0x1b33bf,'onAdd':_0x5e2454=>_0x56ff18(_0x157228=>ct(_0x157228,_0x1b33bf['id'],_0x5e2454,_0x157228[_0x3f4903(0x414)](_0x5e2454))),'onCheckedChange':_0x20c76f=>_0x56ff18(_0x23b214=>{const _0x9bab7e=_0x3f4903;let _0xc9bae=_0x23b214[_0x9bab7e(0x405)](_0x1b33bf['id']);if(!_0x20c76f)_0xc9bae['forEach'](_0x3245c7=>_0x23b214[_0x9bab7e(0x260)](_0x3245c7['getId']()));else{if(_0xc9bae[_0x9bab7e(0x215)]===0x0){let _0xeb340a=ut(_0x1b33bf)?y[_0x9bab7e(0x3ad)][_0x9bab7e(0x46c)]:y[_0x9bab7e(0x3ad)][_0x9bab7e(0x2d9)];_0x23b214[_0x9bab7e(0x3cc)](_0x1b33bf['id'],_0xeb340a);}}}),'onDragStart':()=>_0x262638({'kind':_0x3f4903(0x465),'id':_0x1b33bf['id']})},_0x1b33bf['id']))})]}),(0x0,g[_0x3f4903(0x205)])(_0x3f4903(0x331),{'className':_0x3f4903(0x1a6),'children':Qe['map'](_0x1692b2=>(0x0,g['jsx'])(rt,{'area':_0x1692b2[_0x3f4903(0x2cc)],'dropTarget':_0x2337bf,'fields':_0x13a788[_0x3f4903(0x2f1)][_0x1692b2[_0x3f4903(0x1a9)]],'label':_0x3fd6fb['t'](_0x1692b2[_0x3f4903(0x34b)]),'snapshot':_0x13a788[_0x3f4903(0x2f1)],'onDragEnd':()=>{_0x262638(null),_0x3238c7(null);},'onDragStart':_0x58cc69=>_0x262638({'kind':_0x3f4903(0x1da),'id':_0x58cc69,'area':_0x1692b2[_0x3f4903(0x2cc)]}),'onDragOver':_0x374406=>_0x3238c7({'area':_0x1692b2[_0x3f4903(0x2cc)],'index':_0x374406}),'onDrop':_0x5943fe=>_0x44513f(_0x1692b2['area'],_0x5943fe),'onFilter':_0x3dae74,'onMove':(_0x2257cb,_0x19a2ce,_0x4df238)=>_0x56ff18(_0x1c163c=>_0x1c163c[_0x3f4903(0x33a)](_0x2257cb,_0x19a2ce,_0x4df238)),'onRemove':_0x396b1f=>_0x56ff18(_0x39abb5=>_0x39abb5[_0x3f4903(0x260)](_0x396b1f)),'onSettings':_0x321f6d},_0x1692b2[_0x3f4903(0x2cc)]))}),_0x20716d&&(0x0,g[_0x3f4903(0x205)])(at,{'fieldId':_0x20716d,'snapshot':_0x13a788['pivot'],'table':_0x5505c2,'onCancel':()=>_0x3dae74(null),'onCommit':(_0x532897,_0x5ef371)=>{_0x56ff18(_0x59adbe=>{const _0x488c4a=_0x479a;let _0x46d215=_0x59adbe[_0x488c4a(0x47a)](_0x20716d),_0x318427=(_0x46d215==null?void 0x0:_0x46d215[_0x488c4a(0x38d)])??[];_0x59adbe[_0x488c4a(0x2a8)](_0x20716d,{'type':y[_0x488c4a(0x3c2)]['ManualFilter'],'list':_0x532897,'isAll':_0x532897[_0x488c4a(0x215)]===_0x318427['length']}),_0x59adbe[_0x488c4a(0x301)](_0x20716d,_0x5ef371===void 0x0?void 0x0:{'type':_0x5ef371});}),_0x3dae74(null);}},_0x20716d),_0x58bea4&&(0x0,g[_0x3f4903(0x205)])(ot,{'field':_0x13a788[_0x3f4903(0x2f1)][_0x3f4903(0x220)][_0x58bea4],'onCancel':()=>_0x321f6d(null),'onCommit':(_0x49503c,_0x59524a,_0x34d5bd)=>{_0x56ff18(_0x52b9d9=>{const _0x59530a=_0x479a;_0x52b9d9[_0x59530a(0xbf)](_0x58bea4,_0x49503c),_0x52b9d9['setSubtotalType'](_0x58bea4,_0x59524a),_0x52b9d9[_0x59530a(0x4a2)](_0x58bea4,_0x34d5bd||void 0x0);}),_0x321f6d(null);}},_0x58bea4)]})})]});}function tt(_0x53a973){const _0xae3c7f=_0xf14a5a;let {config:_0x48910c,field:_0x66deaa,onAdd:_0x5da623,onCheckedChange:_0x4272e3,onDragStart:_0x210212}=_0x53a973,_0x4ecc12=(0x0,m[_0xae3c7f(0x491)])(a[_0xae3c7f(0x207)]),_0x343708=[...Object[_0xae3c7f(0x309)](_0x48910c[_0xae3c7f(0x2f1)][_0xae3c7f(0x115)]),...Object[_0xae3c7f(0x309)](_0x48910c[_0xae3c7f(0x2f1)][_0xae3c7f(0x220)])]['some'](_0x52ecf6=>_0x52ecf6['dataFieldId']===_0x66deaa['id']),_0x51ce78=Qe[_0xae3c7f(0x4a6)](_0x59b767=>({'type':_0xae3c7f(0x392),'children':_0x4ecc12['t'](dt(_0x59b767['area'])),'onSelect':()=>_0x5da623(_0x59b767[_0xae3c7f(0x2cc)])}));return(0x0,g[_0xae3c7f(0x23b)])(_0xae3c7f(0x331),{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0xae3c7f(0x247),'onDragStart':_0x210212,'children':[(0x0,g[_0xae3c7f(0x205)])(f['Checkbox'],{'checked':_0x343708,'onChange':_0x156f94=>_0x4272e3(!!_0x156f94)}),(0x0,g[_0xae3c7f(0x205)])(nt,{'field':_0x66deaa}),(0x0,g[_0xae3c7f(0x205)])(_0xae3c7f(0x49b),{'className':_0xae3c7f(0x4ad),'children':_0x66deaa['name']}),(0x0,g[_0xae3c7f(0x205)])(de,{'align':_0xae3c7f(0x1b0),'items':_0x51ce78,'children':(0x0,g['jsx'])(f[_0xae3c7f(0x134)],{'variant':_0xae3c7f(0x43c),'aria-label':_0x4ecc12['t'](_0xae3c7f(0x117)),'size':_0xae3c7f(0x3b3),'children':(0x0,g['jsx'])(s['MoreDownIcon'],{})})})]});}function nt({field:_0x4757de}){const _0x175891=_0xf14a5a;return ut(_0x4757de)?(0x0,g[_0x175891(0x205)])(s[_0x175891(0x21a)],{'className':_0x175891(0x15d)}):_0x4757de[_0x175891(0xf6)]===a[_0x175891(0x10f)][_0x175891(0x214)]||_0x4757de[_0x175891(0xf6)]===a[_0x175891(0x10f)][_0x175891(0xfb)]||_0x4757de[_0x175891(0xf6)]===a[_0x175891(0x10f)][_0x175891(0x32e)]?(0x0,g['jsx'])(s['CalendarIcon'],{'className':_0x175891(0x15d)}):(0x0,g['jsx'])(s[_0x175891(0x20d)],{'className':_0x175891(0x15d)});}function rt(_0x3a0576){const _0x173acf=_0xf14a5a;let {area:_0x141d59,dropTarget:_0x252853,fields:_0x492afe,label:_0x1540f3,snapshot:_0x3348bb}=_0x3a0576,_0x856c02=(0x0,m['useDependency'])(a[_0x173acf(0x207)]);return(0x0,g[_0x173acf(0x23b)])(_0x173acf(0x180),{'className':(0x0,f['clsx'])(_0x173acf(0x242),f[_0x173acf(0x2d3)]),'onDragOver':_0x2760c9=>{const _0x338506=_0x173acf;_0x2760c9[_0x338506(0x317)](),_0x3a0576['onDragOver'](_0x492afe['length']);},'onDrop':_0x3a96f8=>{const _0x2effbd=_0x173acf;_0x3a96f8['preventDefault'](),_0x3a0576[_0x2effbd(0x40d)]((_0x252853==null?void 0x0:_0x252853['area'])===_0x141d59?_0x252853[_0x2effbd(0x190)]:_0x492afe['length']);},'children':[(0x0,g[_0x173acf(0x205)])(_0x173acf(0x331),{'className':_0x173acf(0x361),'children':_0x1540f3}),(0x0,g[_0x173acf(0x23b)])(_0x173acf(0x331),{'className':'univer-flex\x20univer-flex-col','children':[_0x492afe['map']((_0x4b02b7,_0x21076e)=>{const _0x398727=_0x173acf;let _0x504818=_0x3348bb[_0x398727(0x115)][_0x4b02b7]??_0x3348bb[_0x398727(0x220)][_0x4b02b7];if(!_0x504818)return null;let _0x5a6b26=(_0x252853==null?void 0x0:_0x252853[_0x398727(0x2cc)])===_0x141d59&&_0x252853[_0x398727(0x190)]===_0x21076e;return(0x0,g[_0x398727(0x23b)])(_0x398727(0x331),{'onDragOver':_0x40a2f7=>{const _0x51f54c=_0x398727;_0x40a2f7[_0x51f54c(0x317)](),_0x40a2f7[_0x51f54c(0x425)]();let _0x54bfe9=_0x40a2f7[_0x51f54c(0x406)][_0x51f54c(0x29c)]();_0x3a0576[_0x51f54c(0x350)](_0x21076e+ +(_0x40a2f7[_0x51f54c(0x1fb)]>_0x54bfe9[_0x51f54c(0x1d0)]+_0x54bfe9['height']/0x2));},'onDrop':_0x2f6d92=>{const _0x3bc66d=_0x398727;_0x2f6d92[_0x3bc66d(0x317)](),_0x2f6d92[_0x3bc66d(0x425)](),_0x3a0576[_0x3bc66d(0x40d)]((_0x252853==null?void 0x0:_0x252853[_0x3bc66d(0x2cc)])===_0x141d59?_0x252853['index']:_0x21076e);},'children':[_0x5a6b26&&(0x0,g['jsx'])(_0x398727(0x331),{'className':_0x398727(0x18b)}),(0x0,g[_0x398727(0x205)])(it,{'area':_0x141d59,'field':_0x504818,'onDragEnd':_0x3a0576[_0x398727(0x21e)],'onDragStart':()=>_0x3a0576[_0x398727(0x181)](_0x4b02b7),'onFilter':()=>_0x3a0576['onFilter'](_0x4b02b7),'onMove':_0x5da671=>_0x3a0576['onMove'](_0x4b02b7,_0x5da671,0x0),'onMoveUp':_0x21076e>0x0?()=>_0x3a0576[_0x398727(0x11a)](_0x4b02b7,_0x141d59,_0x21076e-0x1):void 0x0,'onMoveDown':_0x21076e<_0x492afe[_0x398727(0x215)]-0x1?()=>_0x3a0576['onMove'](_0x4b02b7,_0x141d59,_0x21076e+0x1):void 0x0,'onRemove':()=>_0x3a0576[_0x398727(0x4ba)](_0x4b02b7),'onSettings':()=>_0x3a0576[_0x398727(0x10a)](_0x4b02b7)})]},_0x4b02b7);}),(_0x252853==null?void 0x0:_0x252853[_0x173acf(0x2cc)])===_0x141d59&&_0x252853[_0x173acf(0x190)]===_0x492afe[_0x173acf(0x215)]&&(0x0,g[_0x173acf(0x205)])(_0x173acf(0x331),{'className':_0x173acf(0x18b)}),_0x492afe[_0x173acf(0x215)]===0x0&&(0x0,g[_0x173acf(0x205)])(_0x173acf(0x331),{'className':_0x173acf(0x239),'children':_0x856c02['t'](_0x173acf(0x2ce))})]})]});}function it(_0x19de15){const _0x2420ea=_0xf14a5a;let _0x25ded3=(0x0,m[_0x2420ea(0x491)])(a[_0x2420ea(0x207)]),_0x339268=_0x19de15['area']===y[_0x2420ea(0x3ad)][_0x2420ea(0x46c)],_0x4083d3=[...Qe[_0x2420ea(0x4a5)](_0x56d4ee=>_0x56d4ee[_0x2420ea(0x2cc)]!==_0x19de15[_0x2420ea(0x2cc)])['map'](_0x3772ff=>({'type':_0x2420ea(0x392),'children':_0x25ded3['t'](dt(_0x3772ff['area'])),'onSelect':()=>_0x19de15[_0x2420ea(0x11a)](_0x3772ff['area'])})),..._0x19de15[_0x2420ea(0x153)]?[{'type':_0x2420ea(0x392),'children':_0x25ded3['t'](_0x2420ea(0x45c)),'onSelect':_0x19de15[_0x2420ea(0x153)]}]:[],..._0x19de15[_0x2420ea(0x154)]?[{'type':_0x2420ea(0x392),'children':_0x25ded3['t'](_0x2420ea(0xc6)),'onSelect':_0x19de15[_0x2420ea(0x154)]}]:[],{'type':_0x2420ea(0x392),'children':_0x25ded3['t'](_0x2420ea(0x1d5)),'onSelect':_0x19de15[_0x2420ea(0x4ba)]},{'type':_0x2420ea(0x392),'children':_0x25ded3['t'](_0x339268?_0x2420ea(0x117):_0x2420ea(0x292)),'onSelect':_0x339268?_0x19de15[_0x2420ea(0x10a)]:_0x19de15[_0x2420ea(0x212)]}];return(0x0,g[_0x2420ea(0x23b)])('div',{'draggable':!0x1,'style':{'minHeight':0x30},'className':_0x2420ea(0x172),'onDragEnd':_0x19de15[_0x2420ea(0x21e)],'onDragStart':_0x19de15[_0x2420ea(0x181)],'children':[(0x0,g[_0x2420ea(0x205)])(f[_0x2420ea(0x393)],{'title':_0x19de15[_0x2420ea(0x1da)][_0x2420ea(0x316)],'children':(0x0,g[_0x2420ea(0x205)])(_0x2420ea(0x49b),{'className':_0x2420ea(0x4ad),'children':_0x19de15['field']['displayName']})}),(0x0,g[_0x2420ea(0x205)])(de,{'align':_0x2420ea(0x1b0),'items':_0x4083d3,'children':(0x0,g[_0x2420ea(0x205)])(f[_0x2420ea(0x134)],{'variant':'text','aria-label':_0x25ded3['t'](_0x2420ea(0x117)),'size':_0x2420ea(0x3b3),'children':(0x0,g[_0x2420ea(0x205)])(s['MoreDownIcon'],{})})})]});}function at(_0x3db396){const _0x33818d=_0xf14a5a;var _0xf9ec6d,_0x2e9591;let _0x13cdde=(0x0,m[_0x33818d(0x491)])(a[_0x33818d(0x207)]),{format:_0x17626d,items:_0x5af58d,itemTypes:_0x5293c0}=(0x0,h['useMemo'])(()=>{const _0x169392=_0x33818d;let _0x58a4cb=(0x0,e['createBasePivotTable'])(_0x3db396[_0x169392(0x2f9)],_0x3db396[_0x169392(0xd6)]);try{let _0x43fe1e=_0x58a4cb[_0x169392(0x47a)](_0x3db396[_0x169392(0x31c)]);return{'format':_0x43fe1e==null?void 0x0:_0x43fe1e[_0x169392(0x195)],'items':[...(_0x43fe1e==null?void 0x0:_0x43fe1e[_0x169392(0x38d)])??[]],'itemTypes':[...(_0x43fe1e==null?void 0x0:_0x43fe1e[_0x169392(0x20a)])??[]]};}finally{_0x58a4cb['dispose']();}},[_0x3db396[_0x33818d(0x31c)],_0x3db396['snapshot'],_0x3db396[_0x33818d(0x2f9)]]),_0x57cf8b=(_0xf9ec6d=_0x3db396[_0x33818d(0xd6)][_0x33818d(0x115)][_0x3db396[_0x33818d(0x31c)]])==null?void 0x0:_0xf9ec6d[_0x33818d(0x42a)],[_0xd57b5d,_0x4d8284]=(0x0,h[_0x33818d(0x2b8)])((_0x57cf8b==null?void 0x0:_0x57cf8b[_0x33818d(0xf6)])===y[_0x33818d(0x3c2)][_0x33818d(0x232)]?_0x57cf8b['list']:_0x5af58d),[_0x107987,_0x3377e7]=(0x0,h[_0x33818d(0x2b8)])((_0x2e9591=_0x3db396[_0x33818d(0xd6)][_0x33818d(0x115)][_0x3db396[_0x33818d(0x31c)]])==null||(_0x2e9591=_0x2e9591[_0x33818d(0x199)])==null?void 0x0:_0x2e9591['type']),_0x9faba2=_0xd57b5d[_0x33818d(0x215)]===_0x5af58d[_0x33818d(0x215)],_0xab625c=(0x0,g['jsxs'])(_0x33818d(0x180),{'className':(0x0,f[_0x33818d(0x108)])(_0x33818d(0x201),f[_0x33818d(0x2d3)]),'children':[(0x0,g[_0x33818d(0x205)])(_0x33818d(0x331),{'className':'univer-mb-3\x20univer-text-sm\x20univer-font-medium','children':_0x13cdde['t'](_0x33818d(0x292))}),(0x0,g['jsxs'])(_0x33818d(0x331),{'className':'univer-flex','children':[(0x0,g['jsxs'])(f[_0x33818d(0x134)],{'className':_0x33818d(0x267),'variant':_0x107987===y[_0x33818d(0x1bf)][_0x33818d(0x13d)]?'primary':_0x33818d(0x24c),'onClick':()=>_0x3377e7(y[_0x33818d(0x1bf)][_0x33818d(0x13d)]),'size':'middle','children':[(0x0,g['jsx'])(s[_0x33818d(0x26c)],{}),_0x13cdde['t'](_0x33818d(0x1b5))]}),(0x0,g['jsxs'])(f[_0x33818d(0x134)],{'className':_0x33818d(0x267),'variant':_0x107987===y[_0x33818d(0x1bf)][_0x33818d(0x277)]?_0x33818d(0x3c0):'default','onClick':()=>_0x3377e7(y['PivotDataFieldSortOperatorEnum'][_0x33818d(0x277)]),'size':_0x33818d(0x3b3),'children':[(0x0,g['jsx'])(s['DescendingIcon'],{}),_0x13cdde['t'](_0x33818d(0x290))]})]}),(0x0,g[_0x33818d(0x23b)])(_0x33818d(0x331),{'className':_0x33818d(0x2b1),'children':[(0x0,g['jsxs'])(_0x33818d(0x34b),{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[(0x0,g[_0x33818d(0x205)])(f[_0x33818d(0x1e8)],{'checked':_0x9faba2,'indeterminate':_0xd57b5d[_0x33818d(0x215)]>0x0&&!_0x9faba2,'onChange':()=>_0x4d8284(_0x9faba2?[]:_0x5af58d)}),_0x13cdde['t'](_0x33818d(0x26d))]}),_0x5af58d[_0x33818d(0x4a6)]((_0x368d42,_0x10553c)=>(0x0,g[_0x33818d(0x23b)])('label',{'className':'univer-flex\x20univer-h-7\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[(0x0,g[_0x33818d(0x205)])(f[_0x33818d(0x1e8)],{'checked':_0xd57b5d[_0x33818d(0xca)](_0x368d42),'onChange':()=>_0x4d8284(_0x13e494=>_0x13e494[_0x33818d(0xca)](_0x368d42)?_0x13e494['filter'](_0x286cdb=>_0x286cdb!==_0x368d42):[..._0x13e494,_0x368d42])}),(0x0,g[_0x33818d(0x205)])(_0x33818d(0x49b),{'className':_0x33818d(0x476),'children':lt(_0x368d42,_0x5293c0[_0x10553c],_0x17626d,_0x13cdde['t'](_0x33818d(0x3d4)))})]},_0x368d42))]}),(0x0,g[_0x33818d(0x23b)])('div',{'className':_0x33818d(0x362),'children':[(0x0,g[_0x33818d(0x205)])(f[_0x33818d(0x134)],{'variant':_0x33818d(0x30f),'onClick':()=>_0x3db396[_0x33818d(0x289)](_0x5af58d,_0x107987),'size':_0x33818d(0x3b3),'children':_0x13cdde['t']('bases-dashboard-ui.pivot.clearFilter')}),(0x0,g[_0x33818d(0x23b)])('div',{'className':_0x33818d(0x228),'children':[(0x0,g['jsx'])(f[_0x33818d(0x134)],{'onClick':_0x3db396[_0x33818d(0x4cf)],'size':_0x33818d(0x3b3),'children':_0x13cdde['t'](_0x33818d(0x46a))}),(0x0,g[_0x33818d(0x205)])(f[_0x33818d(0x134)],{'variant':_0x33818d(0x3c0),'disabled':_0xd57b5d[_0x33818d(0x215)]===0x0,'onClick':()=>_0x3db396[_0x33818d(0x289)](_0xd57b5d,_0x107987),'size':_0x33818d(0x3b3),'children':_0x13cdde['t'](_0x33818d(0x37d))})]})]})]});return(0x0,g[_0x33818d(0x205)])(t['BaseMobileDrawer'],{'title':_0x13cdde['t'](_0x33818d(0x292)),'onClose':_0x3db396[_0x33818d(0x4cf)],'children':_0xab625c});}function ot(_0x212202){const _0x4a06a0=_0xf14a5a;var _0x1cab25,_0x3d0d42,_0x2f7410;let _0x2a7293=(0x0,m[_0x4a06a0(0x491)])(a['LocaleService']),[_0x5253f3,_0x44dcc8]=(0x0,h[_0x4a06a0(0x2b8)])(((_0x1cab25=_0x212202[_0x4a06a0(0x1da)])==null?void 0x0:_0x1cab25[_0x4a06a0(0x316)])??''),[_0x4280f0,_0x4be25a]=(0x0,h['useState'])(((_0x3d0d42=_0x212202[_0x4a06a0(0x1da)])==null?void 0x0:_0x3d0d42[_0x4a06a0(0x401)])??y[_0x4a06a0(0x1dd)][_0x4a06a0(0xe2)]),[_0x389ad0,_0x230d90]=(0x0,h[_0x4a06a0(0x2b8)])(((_0x2f7410=_0x212202['field'])==null?void 0x0:_0x2f7410[_0x4a06a0(0x195)])??'');if(!_0x212202[_0x4a06a0(0x1da)])return null;let _0x35a151=(0x0,g[_0x4a06a0(0x23b)])(_0x4a06a0(0x180),{'className':(0x0,f[_0x4a06a0(0x108)])(_0x4a06a0(0x2ff),f[_0x4a06a0(0x2d3)]),'children':[(0x0,g[_0x4a06a0(0x205)])(_0x4a06a0(0x331),{'className':_0x4a06a0(0x3b7),'children':_0x2a7293['t'](_0x4a06a0(0x117))}),(0x0,g[_0x4a06a0(0x23b)])(_0x4a06a0(0x34b),{'className':_0x4a06a0(0x45f),'children':[_0x2a7293['t'](_0x4a06a0(0x4ca)),(0x0,g[_0x4a06a0(0x205)])(f[_0x4a06a0(0x2d0)],{'value':_0x5253f3,'onChange':_0x44dcc8,'size':_0x4a06a0(0x4d6)})]}),(0x0,g[_0x4a06a0(0x23b)])('label',{'className':_0x4a06a0(0x45f),'children':[_0x2a7293['t'](_0x4a06a0(0x354)),(0x0,g[_0x4a06a0(0x205)])(G,{'value':String(_0x4280f0),'options':$e[_0x4a06a0(0x4a6)](_0x433d40=>({'value':String(_0x433d40[_0x4a06a0(0x1aa)]),'label':_0x2a7293['t'](_0x433d40[_0x4a06a0(0x1a5)])})),'onChange':_0xb6dca8=>{const _0x3abb23=_0x4a06a0;let _0x3c1ed6=$e[_0x3abb23(0x396)](_0x3f301a=>String(_0x3f301a['value'])===_0xb6dca8);_0x3c1ed6&&_0x4be25a(_0x3c1ed6[_0x3abb23(0x1aa)]);}})]}),(0x0,g[_0x4a06a0(0x23b)])(_0x4a06a0(0x34b),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x2a7293['t'](_0x4a06a0(0x129)),(0x0,g[_0x4a06a0(0x205)])(f[_0x4a06a0(0x2d0)],{'value':_0x389ad0,'onChange':_0x230d90,'size':'small'})]}),(0x0,g[_0x4a06a0(0x23b)])(_0x4a06a0(0x331),{'className':'univer-flex\x20univer-justify-end\x20univer-gap-2','children':[(0x0,g['jsx'])(f[_0x4a06a0(0x134)],{'onClick':_0x212202[_0x4a06a0(0x4cf)],'size':_0x4a06a0(0x3b3),'children':_0x2a7293['t'](_0x4a06a0(0x46a))}),(0x0,g[_0x4a06a0(0x205)])(f['Button'],{'variant':'primary','disabled':!_0x5253f3[_0x4a06a0(0x137)](),'onClick':()=>_0x212202[_0x4a06a0(0x289)](_0x5253f3[_0x4a06a0(0x137)](),_0x4280f0,_0x389ad0),'size':_0x4a06a0(0x3b3),'children':_0x2a7293['t'](_0x4a06a0(0x37d))})]})]});return(0x0,g[_0x4a06a0(0x205)])(t[_0x4a06a0(0x1c2)],{'title':_0x2a7293['t'](_0x4a06a0(0x117)),'onClose':_0x212202[_0x4a06a0(0x4cf)],'children':_0x35a151});}function st(_0x3cbdfe){const _0x164297=_0xf14a5a;let {config:_0xeeb2f4,commit:_0x308cf1}=_0x3cbdfe,_0x52614d=(0x0,m[_0x164297(0x491)])(a[_0x164297(0x207)]),_0x28a1c6=_0xeeb2f4[_0x164297(0x2f1)][_0x164297(0xe8)],_0x223fad=_0x4ad74e=>_0x308cf1(_0x5ca4fc=>_0x5ca4fc['setOptions']({..._0x5ca4fc[_0x164297(0x2b0)](),..._0x4ad74e}));return(0x0,g['jsxs'])(_0x164297(0x331),{'className':_0x164297(0x3a5),'children':[(0x0,g['jsxs'])(_0x164297(0x34b),{'className':_0x164297(0x3d8),'children':[_0x52614d['t'](_0x164297(0x257)),(0x0,g['jsx'])(G,{'className':_0x164297(0x3c3),'value':String(_0xeeb2f4[_0x164297(0x2f1)][_0x164297(0xf0)]),'options':[{'value':String(y[_0x164297(0x3be)]['tabular']),'label':_0x52614d['t']('bases-dashboard-ui.pivot.layoutTabular')},{'value':String(y[_0x164297(0x3be)][_0x164297(0x308)]),'label':_0x52614d['t']('bases-dashboard-ui.pivot.layoutCompact')},{'value':String(y[_0x164297(0x3be)][_0x164297(0x3a7)]),'label':_0x52614d['t'](_0x164297(0x27e))}],'onChange':_0x5c9d8d=>{const _0x44c509=_0x164297;let _0x98d62b=[y[_0x44c509(0x3be)][_0x44c509(0x1b2)],y[_0x44c509(0x3be)][_0x44c509(0x308)],y['PivotLayoutTypeEnum'][_0x44c509(0x3a7)]][_0x44c509(0x396)](_0x2400b5=>String(_0x2400b5)===_0x5c9d8d);_0x98d62b!==void 0x0&&_0x308cf1(_0x3eb56a=>_0x3eb56a[_0x44c509(0x293)](_0x98d62b));}})]}),[{'key':_0x164297(0x492),'label':_0x164297(0x3e5),'defaultValue':!0x1},{'key':_0x164297(0x35b),'label':_0x164297(0xda),'defaultValue':!0x1},{'key':'showRowSubtotal','label':_0x164297(0x102),'defaultValue':!0x0},{'key':_0x164297(0x436),'label':_0x164297(0x17f),'defaultValue':!0x0},{'key':_0x164297(0x222),'label':'bases-dashboard-ui.pivot.showColumnSubtotal','defaultValue':!0x0},{'key':'showColGrandTotal','label':_0x164297(0x3ab),'defaultValue':!0x0}][_0x164297(0x4a6)](_0x37d849=>(0x0,g['jsxs'])('label',{'className':'univer-flex\x20univer-items-center\x20univer-gap-2\x20univer-text-sm','children':[(0x0,g[_0x164297(0x205)])(f[_0x164297(0x1e8)],{'checked':!!(_0x28a1c6[_0x37d849[_0x164297(0x1a9)]]??_0x37d849[_0x164297(0x161)]),'disabled':_0x37d849[_0x164297(0x1a9)]===_0x164297(0x492)&&_0xeeb2f4[_0x164297(0x2f1)][_0x164297(0xf0)]===y[_0x164297(0x3be)][_0x164297(0x308)],'onChange':_0x1b1be2=>_0x223fad({[_0x37d849[_0x164297(0x1a9)]]:!!_0x1b1be2})}),_0x52614d['t'](_0x37d849[_0x164297(0x34b)])]},_0x37d849[_0x164297(0x1a9)])),_0xeeb2f4[_0x164297(0x2f1)][_0x164297(0xf0)]===y[_0x164297(0x3be)][_0x164297(0x3a7)]&&(0x0,g[_0x164297(0x23b)])(_0x164297(0x34b),{'className':_0x164297(0x3d8),'children':[_0x52614d['t'](_0x164297(0x4ac)),(0x0,g[_0x164297(0x205)])(G,{'className':_0x164297(0x3c3),'value':String(_0x28a1c6[_0x164297(0x140)]??y[_0x164297(0x3aa)]['top']),'options':[{'value':String(y[_0x164297(0x3aa)][_0x164297(0x1d0)]),'label':_0x52614d['t'](_0x164297(0x296))},{'value':String(y[_0x164297(0x3aa)]['bottom']),'label':_0x52614d['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x4082ab=>{const _0x4bf091=_0x164297;let _0xb893e6=[y['PivotSubtotalPositionEnum'][_0x4bf091(0x1d0)],y[_0x4bf091(0x3aa)][_0x4bf091(0x259)]]['find'](_0x57c5e8=>String(_0x57c5e8)===_0x4082ab);_0xb893e6!==void 0x0&&_0x223fad({'rowSubtotalPosition':_0xb893e6});}})]}),(0x0,g[_0x164297(0x23b)])(_0x164297(0x34b),{'className':_0x164297(0x3d8),'children':[_0x52614d['t'](_0x164297(0x1cd)),(0x0,g[_0x164297(0x205)])(G,{'className':_0x164297(0x3c3),'value':String(_0xeeb2f4[_0x164297(0x2f1)]['valuePosition']===y['PivotTableValuePositionEnum'][_0x164297(0x2e7)]?y[_0x164297(0x25c)]['Column']:_0xeeb2f4[_0x164297(0x2f1)][_0x164297(0x149)]),'options':[{'value':String(y[_0x164297(0x25c)][_0x164297(0x376)]),'label':_0x52614d['t']('bases-dashboard-ui.pivot.columns')},{'value':String(y[_0x164297(0x25c)][_0x164297(0x2d9)]),'label':_0x52614d['t'](_0x164297(0x254))}],'onChange':_0x260875=>{const _0x2fd199=_0x164297;let _0x418e42=[y[_0x2fd199(0x25c)][_0x2fd199(0x376)],y[_0x2fd199(0x25c)][_0x2fd199(0x2d9)]][_0x2fd199(0x396)](_0x50a1da=>String(_0x50a1da)===_0x260875);_0x418e42!==void 0x0&&_0x308cf1(_0x3a0591=>_0x3a0591[_0x2fd199(0x48e)](_0x418e42,_0x3a0591['getValueIndex']()<0x0?0x0:_0x3a0591['getValueIndex']()));}})]}),(0x0,g['jsxs'])(_0x164297(0x34b),{'className':_0x164297(0x3d8),'children':[_0x52614d['t']('bases-dashboard-ui.pivot.pageWrap'),(0x0,g[_0x164297(0x205)])(f[_0x164297(0x43e)],{'className':_0x164297(0x18c),'min':0x1,'max':0x14,'value':_0x28a1c6[_0x164297(0x47d)]??0x1,'onChange':_0x5dc21e=>{const _0x5491a9=_0x164297;let _0x6e599=Number(_0x5dc21e);Number[_0x5491a9(0x2fc)](_0x6e599)&&_0x6e599>=0x1&&_0x223fad({'pageWrap':_0x6e599});},'size':_0x164297(0x4d6),'controls':!0x1})]}),(0x0,g[_0x164297(0x23b)])('label',{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x52614d['t'](_0x164297(0x119)),(0x0,g[_0x164297(0x205)])(G,{'className':_0x164297(0x3c3),'value':String(_0x28a1c6[_0x164297(0x25d)]??!0x1),'options':[{'value':_0x164297(0x18f),'label':_0x52614d['t'](_0x164297(0x284))},{'value':'true','label':_0x52614d['t'](_0x164297(0x466))}],'onChange':_0x21f0ae=>_0x223fad({'pageOverThenDown':_0x21f0ae==='true'})})]})]});}function ct(_0x151906,_0x397681,_0x3682cb,_0x22c025){const _0x5112d1=_0xf14a5a;let _0x5172a4=_0x151906['getTableFieldsByDataFieldId'](_0x397681)['find'](_0x2b2914=>_0x151906[_0x5112d1(0x480)](_0x2b2914[_0x5112d1(0x2dc)]())[_0x5112d1(0x2cc)]!==y[_0x5112d1(0x3ad)]['Value']);_0x3682cb!==y[_0x5112d1(0x3ad)][_0x5112d1(0x46c)]&&_0x5172a4?_0x151906[_0x5112d1(0x33a)](_0x5172a4[_0x5112d1(0x2dc)](),_0x3682cb,_0x22c025):_0x151906[_0x5112d1(0x3cc)](_0x397681,_0x3682cb,_0x22c025);}function lt(_0x27fdf9,_0x4e9a85,_0x5ee821,_0x5efbfd){const _0x2de1ac=_0xf14a5a;return _0x4e9a85===y[_0x2de1ac(0x449)][_0x2de1ac(0x39a)]?_0x5efbfd:_0x4e9a85===y[_0x2de1ac(0x449)]['date']&&_0x5ee821?a[_0x2de1ac(0x391)][_0x2de1ac(0x195)](_0x5ee821,Number(_0x27fdf9)):_0x27fdf9;}function ut(_0x555033){const _0x1129a9=_0xf14a5a;return _0x555033[_0x1129a9(0xf6)]===a['BaseFieldType'][_0x1129a9(0x15f)]||_0x555033['type']===a['BaseFieldType'][_0x1129a9(0x116)]||_0x555033[_0x1129a9(0xf6)]===a[_0x1129a9(0x10f)][_0x1129a9(0x3cd)]||_0x555033['type']===a[_0x1129a9(0x10f)][_0x1129a9(0xc9)];}function dt(_0x3a4f79){const _0x589441=_0xf14a5a;switch(_0x3a4f79){case y[_0x589441(0x3ad)][_0x589441(0x2d9)]:return _0x589441(0x4dc);case y[_0x589441(0x3ad)][_0x589441(0x376)]:return _0x589441(0x279);case y[_0x589441(0x3ad)][_0x589441(0x46c)]:return'bases-dashboard-ui.pivot.addToValue';default:return _0x589441(0x332);}}function ft({config:_0x4a60cc,onChange:_0x426f8f,runtime:_0x4fcbb2,table:_0x2339c8}){const _0x3384ec=_0xf14a5a;let _0x4b6d50=(0x0,m[_0x3384ec(0x491)])(a[_0x3384ec(0x207)]),[_0xec9e4e,_0x36d8c7]=(0x0,h[_0x3384ec(0x2b8)])(_0x3384ec(0x3a9));return(0x0,g[_0x3384ec(0x23b)])('aside',{'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['jsx'])(n['ChartEditPanelTabs'],{'ariaLabel':_0x4b6d50['t'](_0x3384ec(0x400)),'className':_0x3384ec(0xe7),'items':[{'label':_0x4b6d50['t'](_0x3384ec(0x1af)),'panelId':_0x3384ec(0x1bd),'value':_0x3384ec(0x3a9)},{'label':_0x4b6d50['t']('bases-dashboard-ui.pivot.pivotConfiguration'),'panelId':'base-pivot-table-configuration','value':_0x3384ec(0x2f1)}],'value':_0xec9e4e,'onChange':_0x36d8c7}),(0x0,g[_0x3384ec(0x205)])(_0x3384ec(0x331),{'className':_0x3384ec(0x216),'children':_0xec9e4e===_0x3384ec(0x3a9)?_0x4fcbb2&&(0x0,g[_0x3384ec(0x205)])(he,{'config':_0x4a60cc,'runtime':_0x4fcbb2,'tableName':_0x2339c8['name'],'onChange':_0x426f8f}):(0x0,g[_0x3384ec(0x205)])(et,{'config':_0x4a60cc,'table':_0x2339c8,'onChange':_0x426f8f})})]});}function pt({tableId:_0x1169d1,unitId:_0x25efe3,viewId:_0x794507}){const _0x1a1ed0=_0xf14a5a;let [_0x1898ea,_0xb6e122]=(0x0,h[_0x1a1ed0(0x2b8)])(!0x1),_0x4339ca=(0x0,m[_0x1a1ed0(0x491)])(a[_0x1a1ed0(0x17e)]),_0x6c6918=(0x0,m[_0x1a1ed0(0x491)])(a[_0x1a1ed0(0x323)]),_0x175bde=(0x0,m[_0x1a1ed0(0x491)])(a[_0x1a1ed0(0x363)]),_0x25d0fa=(0x0,m[_0x1a1ed0(0x491)])(a[_0x1a1ed0(0x207)]),_0x273b9f=(0x0,m[_0x1a1ed0(0x491)])(e[_0x1a1ed0(0x493)]),[_0x276124,_0xc168a9]=(0x0,h['useState'])(null),[_0x5d58bd,_0x2c2738]=(0x0,h['useState'])(null),_0xd82889=(0x0,h['useRef'])(_0x1a1ed0(0x304)+(0x0,a[_0x1a1ed0(0x40b)])(0x8)),[_0x3642ff,_0x86dbed]=(0x0,h[_0x1a1ed0(0x2b8)])(!0x1),_0x42c3d1=_0x6c6918['getUnit'](_0x25efe3,a['UniverInstanceType'][_0x1a1ed0(0x31e)]),_0x5919d6=_0x42c3d1==null?void 0x0:_0x42c3d1[_0x1a1ed0(0x164)]()[_0x1a1ed0(0x419)][_0x1169d1],_0x422d82=_0x5919d6==null?void 0x0:_0x5919d6['views'][_0x794507],_0x2c100c=mt(_0x422d82),_0x579255=T(_0x25efe3,_0x1169d1,_0x794507);if((0x0,h['useEffect'])(()=>{const _0x38250e=_0x1a1ed0;if(!_0x2c100c)return;let _0x23ec08=_0xd82889[_0x38250e(0x1fa)];return _0x273b9f[_0x38250e(0x4b3)](_0x23ec08,{'unitId':_0x25efe3,'tableId':_0x1169d1,'viewId':_0x794507,'filters':[]}),()=>{const _0x18cd19=_0x38250e;_0x273b9f[_0x18cd19(0x424)](_0x25efe3,_0x23ec08);};},[_0x2c100c,_0x273b9f,_0x1169d1,_0x25efe3,_0x794507]),(0x0,h[_0x1a1ed0(0x48c)])(()=>{const _0x5200bc=_0x1a1ed0;if(!mt(_0x422d82))return;let _0x251773=!0x0,_0x36cb0e={'unitId':_0x25efe3,'tableId':_0x1169d1,'viewId':_0x794507,'filters':[_0x422d82[_0x5200bc(0x4a5)]??null]};return _0x273b9f[_0x5200bc(0x4bb)](_0x25efe3,_0xd82889[_0x5200bc(0x1fa)],_0x36cb0e)[_0x5200bc(0x173)](_0x336e48=>{const _0x1a90bc=_0x5200bc;_0x251773&&_0x336e48&&(_0xc168a9(_0x336e48),_0x2c2738(_0x273b9f[_0x1a90bc(0x1d7)](_0x25efe3,_0xd82889[_0x1a90bc(0x1fa)])??null),_0x86dbed(!0x1));})[_0x5200bc(0xc0)](_0x460b42=>{const _0x582184=_0x5200bc;_0x175bde[_0x582184(0x114)](_0x582184(0x132),_0x460b42),_0x251773&&(_0xc168a9(null),_0x86dbed(!0x0));}),()=>{_0x251773=!0x1;};},[_0x175bde,_0x273b9f,_0x1169d1,_0x25efe3,_0x422d82,_0x794507]),!_0x5919d6||!mt(_0x422d82))return null;let _0x376612=_0x273b9f['getChartRuntime'](_0x25efe3,_0xd82889[_0x1a1ed0(0x1fa)])===_0x5d58bd?_0x5d58bd:null,_0x53a929=_0x276124?(0x0,g[_0x1a1ed0(0x23b)])('div',{'className':_0x1a1ed0(0x355),'style':{'gridTemplateRows':_0x422d82[_0x1a1ed0(0x34a)][_0x1a1ed0(0x384)]===_0x1a1ed0(0x27d)?_0x1a1ed0(0x3de):_0x1a1ed0(0x17d)},'children':[_0x422d82[_0x1a1ed0(0x34a)][_0x1a1ed0(0x384)]!==_0x1a1ed0(0x2f9)&&_0x376612&&(0x0,g[_0x1a1ed0(0x205)])(_0x1a1ed0(0x331),{'className':_0x1a1ed0(0x469),'children':(0x0,g[_0x1a1ed0(0x205)])(re,{'isRowDirection':(0x0,e['resolveBasePivotChartRowDirection'])(_0x422d82['config']['chart'][_0x1a1ed0(0x175)]),'runtime':_0x376612})}),_0x422d82[_0x1a1ed0(0x34a)]['displayMode']!=='chart'&&(0x0,g[_0x1a1ed0(0x205)])(_0x1a1ed0(0x331),{'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['jsx'])(Ge,{'pivot':_0x422d82['config'][_0x1a1ed0(0x2f1)],'view':_0x276124['view']})})]}):(0x0,g[_0x1a1ed0(0x205)])('div',{'className':_0x1a1ed0(0x409),'children':_0x3642ff?_0x25d0fa['t'](_0x1a1ed0(0x39b)):_0x25d0fa['t'](_0x1a1ed0(0x28c))}),_0xdbdbd9=(0x0,g[_0x1a1ed0(0x205)])(ft,{'config':_0x422d82[_0x1a1ed0(0x34a)],'runtime':_0x376612,'table':_0x5919d6,'onChange':_0x511e29=>{const _0x260ede=_0x1a1ed0;_0x6c6918[_0x260ede(0x10d)](_0x25efe3),_0x6c6918[_0x260ede(0xd1)](_0x25efe3),_0x4339ca[_0x260ede(0x4d7)](e[_0x260ede(0x2c2)]['id'],{'unitId':_0x25efe3,'tableId':_0x1169d1,'viewId':_0x794507,'patch':_0x511e29})[_0x260ede(0xc0)](_0x17b8ee=>_0x175bde['error'](_0x260ede(0x45a),_0x17b8ee));}});return(0x0,g[_0x1a1ed0(0x205)])(ue,{'children':(0x0,g[_0x1a1ed0(0x23b)])('div',{'className':_0x1a1ed0(0x44e),'children':[_0x579255&&(0x0,g[_0x1a1ed0(0x205)])(f[_0x1a1ed0(0x134)],{'onClick':()=>_0xb6e122(!0x0),'size':'middle','children':_0x25d0fa['t'](_0x1a1ed0(0x1af))}),(0x0,g[_0x1a1ed0(0x205)])('div',{'className':_0x1a1ed0(0x124),'children':_0x53a929}),_0x579255&&_0x1898ea&&(0x0,g[_0x1a1ed0(0x205)])(t[_0x1a1ed0(0x1c2)],{'title':_0x25d0fa['t']('bases-dashboard-ui.pivot.name'),'onClose':()=>_0xb6e122(!0x1),'children':_0xdbdbd9})]})});}function mt(_0x32f9eb){const _0x2be1df=_0xf14a5a;return(_0x32f9eb==null?void 0x0:_0x32f9eb[_0x2be1df(0xf6)])===a[_0x2be1df(0x40a)]['Pivot']&&typeof _0x32f9eb[_0x2be1df(0x34a)]=='object'&&_0x32f9eb[_0x2be1df(0x34a)]!==null&&'pivot'in _0x32f9eb[_0x2be1df(0x34a)]&&'chart'in _0x32f9eb[_0x2be1df(0x34a)]&&'displayMode'in _0x32f9eb[_0x2be1df(0x34a)];}let ht=class extends a['Disposable']{constructor(_0x416f7e,_0xddb97f,_0x289b32,_0x18d65a,_0x132d2d,_0x1a6c0f){const _0x5cecf5=_0xf14a5a;super(),this[_0x5cecf5(0xc3)](_0xddb97f['register']({'type':a[_0x5cecf5(0x40a)]['Pivot'],'renderMode':_0x5cecf5(0x1a0),'icon':s[_0x5cecf5(0x170)],'component':pt,'menu':{get 'label'(){const _0x2821cc=_0x5cecf5;return _0x1a6c0f['t'](_0x2821cc(0x400));},get 'description'(){return _0x1a6c0f['t']('bases-dashboard-ui.pivot.description');},get 'defaultName'(){return _0x1a6c0f['t']('bases-dashboard-ui.pivot.defaultName');}}})),this[_0x5cecf5(0xc3)](_0x416f7e[_0x5cecf5(0x223)](gt(_0x289b32,_0x18d65a,_0x132d2d,_0x1a6c0f)));}};ht=P([N(0x0,t[_0xf14a5a(0x31d)]),N(0x1,t['IBaseViewUIRegistryService']),N(0x2,(0x0,a[_0xf14a5a(0x268)])(e[_0xf14a5a(0x28d)])),N(0x3,a[_0xf14a5a(0x17e)]),N(0x4,a[_0xf14a5a(0x39d)]),N(0x5,(0x0,a['Inject'])(a['LocaleService']))],ht);function gt(_0x4473d2,_0x470b7c,_0xdf9744,_0x3b5a67){const _0x4ee0dd=_0xf14a5a;return{'change$':(0x0,c[_0x4ee0dd(0x300)])(_0x4473d2['change$'],_0xdf9744['permissionPointUpdate$']),'component':Ie,get 'labels'(){const _0x5cd0d7=_0x4ee0dd;return{'add':_0x3b5a67['t'](_0x5cd0d7(0x256)),'configure':_0x2bb78c=>_0x3b5a67['t'](_0x5cd0d7(0x185),_0x2bb78c),'delete':_0x3b5a67['t'](_0x5cd0d7(0x2ec)),'new':_0x3b5a67['t'](_0x5cd0d7(0x1b9)),'rename':_0x3b5a67['t'](_0x5cd0d7(0x431)),'search':_0x3b5a67['t'](_0x5cd0d7(0x2a6)),'section':_0x3b5a67['t']('bases-dashboard-ui.dashboard.section')};},'getItems':_0x1b6222=>{const _0x2bff7b=_0x4ee0dd;let _0x976317=_0x4473d2[_0x2bff7b(0x422)](_0x1b6222);return _0x976317[_0x2bff7b(0x40f)][_0x2bff7b(0x3fa)](_0x321131=>{const _0x554f11=_0x2bff7b;let _0x32cbe4=_0x976317[_0x554f11(0x178)][_0x321131];return _0x32cbe4?[{'id':_0x32cbe4['id'],'name':_0x32cbe4['name'],'readonly':!(0x0,e['canEditBaseDashboard'])(_0xdf9744,_0x1b6222,_0x32cbe4['id'])}]:[];});},'create':async _0x24a21a=>{const _0x57de2c=_0x4ee0dd;let _0xa17d0a=_0x4473d2[_0x57de2c(0x422)](_0x24a21a),_0x116597=_0x57de2c(0x349)+(0x0,a['generateRandomId'])(0x8),_0xd5f474=_t(_0xa17d0a[_0x57de2c(0x40f)][_0x57de2c(0x3fa)](_0x1c3bc7=>{const _0x1cdd6b=_0x57de2c;let _0x583d16=_0xa17d0a[_0x1cdd6b(0x178)][_0x1c3bc7];return _0x583d16?[_0x583d16['name']]:[];}),_0x468cfe=>_0x3b5a67['t'](_0x57de2c(0x35e),String(_0x468cfe)));return await _0x470b7c[_0x57de2c(0x4d7)](e[_0x57de2c(0x24a)]['id'],{'unitId':_0x24a21a,'dashboard':{'id':_0x116597,'name':_0xd5f474,'widgetOrder':[],'widgets':{}}})?_0x116597:null;},'rename':async(_0x36d9a9,_0x47f5ce,_0x53f9c9)=>{const _0x540502=_0x4ee0dd;let _0x322ca7=_0x4473d2['getDashboard'](_0x36d9a9,_0x47f5ce);return!!(_0x322ca7&&await _0x470b7c[_0x540502(0x4d7)](e[_0x540502(0xef)]['id'],{'unitId':_0x36d9a9,'dashboard':{..._0x322ca7,'name':_0x53f9c9}}));},'remove':(_0x42b58e,_0xe7a86f)=>_0x470b7c[_0x4ee0dd(0x4d7)](e[_0x4ee0dd(0x230)]['id'],{'unitId':_0x42b58e,'dashboardId':_0xe7a86f})};}function _t(_0x544e75,_0x2a179c){const _0x3a402f=_0xf14a5a;let _0x5efbdd=new Set(_0x544e75),_0x5f2baf=_0x5efbdd[_0x3a402f(0x3d0)]+0x1,_0x411b71=_0x2a179c(_0x5f2baf);for(;_0x5efbdd['has'](_0x411b71);)_0x5f2baf+=0x1,_0x411b71=_0x2a179c(_0x5f2baf);return _0x411b71;}let Y=class extends a['Plugin']{constructor(_0x1fe168=C,_0x585ed9,_0x586749){const _0x1aa0ec=_0xf14a5a;super(),this[_0x1aa0ec(0xfa)]=_0x1fe168,this[_0x1aa0ec(0x17c)]=_0x585ed9,this[_0x1aa0ec(0x3ac)]=_0x586749;let {..._0x5d8e50}=(0x0,a[_0x1aa0ec(0x300)])({},C,this[_0x1aa0ec(0xfa)]);this[_0x1aa0ec(0x3ac)][_0x1aa0ec(0x243)](S,_0x5d8e50);}['onStarting'](){const _0x536ec8=_0xf14a5a;this['_injector'][_0x536ec8(0x107)]([F]),this[_0x536ec8(0x17c)][_0x536ec8(0x107)]([W]),this[_0x536ec8(0x17c)][_0x536ec8(0x107)]([ht]);}['onReady'](){const _0xbf2aa9=_0xf14a5a;(0x0,a[_0xbf2aa9(0x4c5)])(this[_0xbf2aa9(0x17c)],[[F],[W],[ht]]);}};B(Y,'type',a[_0xf14a5a(0x4cd)]['UNIVER_BASE']),B(Y,_0xf14a5a(0x16a),'BASE_DASHBOARD_UI_PLUGIN'),B(Y,_0xf14a5a(0x31b),b),B(Y,_0xf14a5a(0xd3),x),Y=P([(0x0,a[_0xf14a5a(0x2a7)])(r['UniverLicensePlugin'],e[_0xf14a5a(0x2b9)],t['UniverBasesMobileUIPlugin'],n['UniverChartMobileUIPlugin'],i['UniverShapeEditorPlugin'],o[_0xf14a5a(0xe0)]),N(0x1,(0x0,a[_0xf14a5a(0x268)])(a[_0xf14a5a(0x3e0)])),N(0x2,a[_0xf14a5a(0x103)])],Y);function vt(_0x2aef23,_0x521712,_0x35d213,_0x414204){const _0x25c000=_0xf14a5a;let _0x2eee5f={..._0x2aef23};if(_0x521712['includes']('w')){let _0x3bf0c9=_0x2aef23[_0x25c000(0x171)]+_0x2aef23['columnSpan'];_0x2eee5f['column']=Math[_0x25c000(0x272)](0x0,Math[_0x25c000(0x20c)](_0x3bf0c9-0x1,_0x2aef23[_0x25c000(0x171)]+_0x35d213)),_0x2eee5f[_0x25c000(0x168)]=_0x3bf0c9-_0x2eee5f[_0x25c000(0x171)];}else _0x521712['includes']('e')&&(_0x2eee5f[_0x25c000(0x168)]=Math[_0x25c000(0x272)](0x1,Math[_0x25c000(0x20c)](e[_0x25c000(0x2c5)]-_0x2aef23[_0x25c000(0x171)],_0x2aef23['columnSpan']+_0x35d213)));if(_0x521712['includes']('n')){let _0x363266=_0x2aef23[_0x25c000(0x210)]+_0x2aef23[_0x25c000(0x442)];_0x2eee5f[_0x25c000(0x210)]=Math[_0x25c000(0x272)](0x0,Math[_0x25c000(0x20c)](_0x363266-0x1,_0x2aef23[_0x25c000(0x210)]+_0x414204)),_0x2eee5f[_0x25c000(0x442)]=_0x363266-_0x2eee5f[_0x25c000(0x210)];}else _0x521712[_0x25c000(0xca)]('s')&&(_0x2eee5f[_0x25c000(0x442)]=Math[_0x25c000(0x272)](0x1,_0x2aef23[_0x25c000(0x442)]+_0x414204));return _0x2eee5f;}function yt(_0x56b1b1){const _0x33848f=_0xf14a5a;let _0x3b6b56=Math['max'](0x1,Math[_0x33848f(0x20c)](e[_0x33848f(0x2c5)],Math[_0x33848f(0x448)](_0x56b1b1[_0x33848f(0x168)])));return{'column':Math[_0x33848f(0x272)](0x0,Math[_0x33848f(0x20c)](e[_0x33848f(0x2c5)]-_0x3b6b56,Math[_0x33848f(0x448)](_0x56b1b1[_0x33848f(0x171)]))),'row':Math[_0x33848f(0x272)](0x0,Math[_0x33848f(0x448)](_0x56b1b1[_0x33848f(0x210)])),'columnSpan':_0x3b6b56,'rowSpan':Math[_0x33848f(0x272)](0x1,Math[_0x33848f(0x448)](_0x56b1b1[_0x33848f(0x442)]))};}function bt(_0x4c74cb,_0x1c2e9b,_0x17278e){const _0x5aa983=_0xf14a5a;let _0x531981=new Map(_0x4c74cb),_0x4473d9=yt(_0x17278e);_0x531981[_0x5aa983(0x4c2)](_0x1c2e9b,_0x4473d9);let _0x53be53=[[_0x1c2e9b,_0x4473d9]];for(let [_0x1ce783,_0x31956a]of _0x531981){if(_0x1ce783===_0x1c2e9b)continue;let _0x2d29d2=yt(_0x31956a);for(;_0x53be53[_0x5aa983(0x48f)](([,_0x19da27])=>St(_0x2d29d2,_0x19da27));)_0x2d29d2={..._0x2d29d2,'row':_0x2d29d2[_0x5aa983(0x210)]+0x1};for(;_0x2d29d2[_0x5aa983(0x210)]>0x0;){let _0x5b96dd={..._0x2d29d2,'row':_0x2d29d2[_0x5aa983(0x210)]-0x1};if(_0x53be53[_0x5aa983(0x48f)](([,_0x4dc771])=>St(_0x5b96dd,_0x4dc771)))break;_0x2d29d2=_0x5b96dd;}_0x53be53['push']([_0x1ce783,_0x2d29d2]),_0x531981[_0x5aa983(0x4c2)](_0x1ce783,_0x2d29d2);}return _0x531981;}function xt(_0x2916ca,_0x11f3cb,_0x38465a,_0x5cd3b5=0x38,_0x209aea=0x16){const _0x370151=_0xf14a5a;return _0x2916ca<_0x11f3cb+_0x5cd3b5?-Math['ceil'](_0x209aea*(0x1-Math['max'](0x0,_0x2916ca-_0x11f3cb)/_0x5cd3b5)):_0x2916ca>_0x38465a-_0x5cd3b5?Math['ceil'](_0x209aea*(0x1-Math[_0x370151(0x272)](0x0,_0x38465a-_0x2916ca)/_0x5cd3b5)):0x0;}function St(_0x1d93a0,_0x3bb3bc){const _0x437b58=_0xf14a5a;return _0x1d93a0[_0x437b58(0x171)]<_0x3bb3bc[_0x437b58(0x171)]+_0x3bb3bc['columnSpan']&&_0x1d93a0[_0x437b58(0x171)]+_0x1d93a0[_0x437b58(0x168)]>_0x3bb3bc[_0x437b58(0x171)]&&_0x1d93a0[_0x437b58(0x210)]<_0x3bb3bc[_0x437b58(0x210)]+_0x3bb3bc[_0x437b58(0x442)]&&_0x1d93a0[_0x437b58(0x210)]+_0x1d93a0[_0x437b58(0x442)]>_0x3bb3bc['row'];}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':'-univer-top-1\x20univer-left-2\x20univer-right-2\x20univer-h-2\x20univer-cursor-ns-resize'},{'direction':'ne','className':_0xf14a5a(0x160)},{'direction':'e','className':'-univer-right-1\x20univer-bottom-2\x20univer-top-2\x20univer-w-2\x20univer-cursor-ew-resize'},{'direction':'se','className':_0xf14a5a(0x312)},{'direction':'s','className':_0xf14a5a(0x288)},{'direction':'sw','className':_0xf14a5a(0x3c4)},{'direction':'w','className':_0xf14a5a(0x101)}];function wt({dashboard:_0x4afd80,dragLabel:_0x53abed,editable:_0x82a31=!0x0,onLayoutsCommit:_0x1b7053,onSelectWidget:_0x4ca814,renderWidget:_0x226bd0,renderWidgetActions:_0x43e20b,resizeLabel:_0x311939,selectedWidgetId:_0x45d201,widgetLabel:_0x496791}){const _0x2b2176=_0xf14a5a;let _0x4489a9=(0x0,h[_0x2b2176(0x45b)])(null),_0x342c64=(0x0,h[_0x2b2176(0x45b)])(null),[_0x2bda53,_0x58fdf1]=(0x0,h['useState'])(!0x1),_0x5b7ad0=(0x0,h['useMemo'])(()=>new Map(_0x4afd80[_0x2b2176(0x399)][_0x2b2176(0x3fa)](_0x2878b0=>{const _0x4fc1f3=_0x2b2176;let _0x2e6e8c=_0x4afd80[_0x4fc1f3(0x22d)][_0x2878b0];return _0x2e6e8c?[[_0x2878b0,_0x2e6e8c[_0x4fc1f3(0xf0)]]]:[];})),[_0x4afd80]),[_0x3469ae,_0x611bde]=(0x0,h[_0x2b2176(0x2b8)])(_0x5b7ad0);(0x0,h[_0x2b2176(0x48c)])(()=>{_0x342c64['current']||_0x611bde(_0x5b7ad0);},[_0x5b7ad0]),(0x0,h['useEffect'])(()=>{const _0xdd9926=_0x2b2176;if(!_0x2bda53)return;let _0x3cecfd=_0x152902=>{const _0x190429=_0x479a;let _0xde383f=_0x4489a9['current'];if(!_0xde383f)return null;let _0xdca081=_0xde383f['getBoundingClientRect'](),_0x140d5b=Math[_0x190429(0x272)](0x1,(_0xdca081[_0x190429(0x1b4)]-0x8*(e[_0x190429(0x2c5)]-0x1))/e['BASES_DASHBOARD_GRID_COLUMNS']),_0x4f64d0=Math['round']((_0xde383f[_0x190429(0x44d)]-_0x152902[_0x190429(0x234)])/(e[_0x190429(0x198)]+0x8)),_0x148e30=Math[_0x190429(0x448)]((_0x152902[_0x190429(0x45d)]-_0x152902[_0x190429(0x2bf)])/(_0x140d5b+0x8)),_0x232c85=Math[_0x190429(0x448)]((_0x152902[_0x190429(0x4bc)]-_0x152902[_0x190429(0x4b2)])/(e[_0x190429(0x198)]+0x8))+_0x4f64d0,_0x3eb291=_0x152902['mode']===_0x190429(0x1ec)?{..._0x152902['initial'],'column':_0x152902[_0x190429(0xce)][_0x190429(0x171)]+_0x148e30,'row':_0x152902['initial'][_0x190429(0x210)]+_0x232c85}:vt(_0x152902[_0x190429(0xce)],_0x152902[_0x190429(0x3c1)]??'se',_0x148e30,_0x232c85),_0x4b59fd=bt(_0x152902[_0x190429(0x416)],_0x152902['id'],_0x3eb291);return _0x611bde(_0x4b59fd),_0x4b59fd;},_0xdd4279=_0x5a79be=>{const _0x243441=_0x479a;let _0x23e1be=_0x342c64[_0x243441(0x1fa)];if(!_0x23e1be)return;let _0x1a5931={..._0x23e1be,'pointerX':_0x5a79be[_0x243441(0x15b)],'pointerY':_0x5a79be[_0x243441(0x1fb)]};_0x342c64[_0x243441(0x1fa)]=_0x1a5931;},_0x394fa0=()=>{const _0x4fac07=_0x479a;let _0x26d0b0=_0x342c64[_0x4fac07(0x1fa)],_0xeac44c=_0x26d0b0?_0x3cecfd(_0x26d0b0):null;_0x342c64['current']=null,_0x58fdf1(!0x1),_0xeac44c&&_0x1b7053(_0xeac44c);},_0x33bdd6=0x0,_0x2f74e5=()=>{const _0x4816a6=_0x479a;let _0x5aabdd=_0x4489a9['current'],_0x2d0359=_0x342c64['current'];if(_0x5aabdd&&_0x2d0359){let _0x438ed7=_0x5aabdd[_0x4816a6(0x29c)](),_0x45c225=xt(_0x2d0359[_0x4816a6(0x4bc)],_0x438ed7[_0x4816a6(0x1d0)],_0x438ed7['bottom']);_0x45c225!==0x0&&(_0x5aabdd[_0x4816a6(0x44d)]+=_0x45c225),_0x3cecfd(_0x2d0359),_0x33bdd6=requestAnimationFrame(_0x2f74e5);}};return _0x33bdd6=requestAnimationFrame(_0x2f74e5),window[_0xdd9926(0x14a)](_0xdd9926(0x35c),_0xdd4279),window[_0xdd9926(0x14a)](_0xdd9926(0x3a2),_0x394fa0),()=>{const _0x412aa0=_0xdd9926;cancelAnimationFrame(_0x33bdd6),window[_0x412aa0(0x1e2)](_0x412aa0(0x35c),_0xdd4279),window[_0x412aa0(0x1e2)](_0x412aa0(0x3a2),_0x394fa0);};},[_0x2bda53,_0x1b7053]);let _0xfd7071=Math['max'](0x8,...Array['from'](_0x3469ae[_0x2b2176(0x309)]())[_0x2b2176(0x4a6)](_0x2c24fa=>_0x2c24fa[_0x2b2176(0x210)]+_0x2c24fa[_0x2b2176(0x442)])),_0x14541e=(_0x1a3650,_0x4e48e2,_0x5de2f3,_0x169d93)=>{const _0x357e65=_0x2b2176;_0x1a3650[_0x357e65(0x317)](),_0x1a3650[_0x357e65(0x425)]();let _0x494d65=_0x4489a9[_0x357e65(0x1fa)],_0x314302={'id':_0x4e48e2['id'],'mode':_0x5de2f3,'pointerX':_0x1a3650[_0x357e65(0x15b)],'pointerY':_0x1a3650[_0x357e65(0x1fb)],'startX':_0x1a3650[_0x357e65(0x15b)],'startY':_0x1a3650[_0x357e65(0x1fb)],'startScrollTop':(_0x494d65==null?void 0x0:_0x494d65[_0x357e65(0x44d)])??0x0,'initial':_0x3469ae[_0x357e65(0x3f8)](_0x4e48e2['id'])??_0x4e48e2[_0x357e65(0xf0)],'initialLayouts':new Map(_0x3469ae),'resizeDirection':_0x169d93};_0x342c64['current']=_0x314302,_0x58fdf1(!0x0);};return(0x0,g[_0x2b2176(0x205)])(_0x2b2176(0x331),{'ref':_0x4489a9,'data-dashboard-scroll-container':!0x0,'className':(0x0,f[_0x2b2176(0x108)])(_0x2b2176(0x374),f[_0x2b2176(0x35f)]),'onClick':_0x82a31?_0x39c9c8=>{const _0x200eb8=_0x2b2176;if(!(_0x39c9c8[_0x200eb8(0x135)]instanceof Node)||!_0x39c9c8['currentTarget'][_0x200eb8(0x320)](_0x39c9c8[_0x200eb8(0x135)]))return;let _0x3612f0=_0x39c9c8[_0x200eb8(0x135)]instanceof Element?_0x39c9c8['target']:_0x39c9c8['target'][_0x200eb8(0x3c6)];_0x3612f0!=null&&_0x3612f0[_0x200eb8(0x16b)](_0x200eb8(0x2bb))||_0x4ca814==null||_0x4ca814();}:void 0x0,'children':(0x0,g['jsx'])(_0x2b2176(0x331),{'data-dashboard-grid':!0x0,'className':_0x2b2176(0x38b),'style':{'gap':0x8,'gridAutoRows':e['BASES_DASHBOARD_DEFAULT_ROW_HEIGHT'],'minHeight':_0xfd7071*(e['BASES_DASHBOARD_DEFAULT_ROW_HEIGHT']+0x8)},'children':_0x4afd80[_0x2b2176(0x399)]['map'](_0x51c0c8=>{const _0x3e84f1=_0x2b2176;var _0x400d6a;let _0x32a65b=_0x4afd80[_0x3e84f1(0x22d)][_0x51c0c8],_0x3f9bb0=_0x3469ae[_0x3e84f1(0x3f8)](_0x51c0c8);return!_0x32a65b||!_0x3f9bb0?null:(0x0,g[_0x3e84f1(0x23b)])('article',{'data-dashboard-widget':_0x32a65b['id'],'aria-label':_0x32a65b[_0x3e84f1(0x3ff)]??_0x496791(_0x32a65b),'className':(0x0,f['clsx'])(_0x3e84f1(0x30d),_0x32a65b[_0x3e84f1(0xf6)]===e[_0x3e84f1(0x294)][_0x3e84f1(0x3a3)]||_0x32a65b[_0x3e84f1(0xf6)]===e[_0x3e84f1(0x294)][_0x3e84f1(0x2ac)]?'univer-bg-transparent\x20dark:!univer-bg-transparent':'univer-bg-gray-0\x20dark:!univer-bg-gray-900',_0x82a31&&_0x45d201===_0x32a65b['id']?'univer-z-10\x20univer-border-primary-500\x20univer-ring-1\x20univer-ring-primary-500':_0x3e84f1(0x17b)),'style':{'gridColumn':_0x3f9bb0[_0x3e84f1(0x171)]+0x1+_0x3e84f1(0x13b)+_0x3f9bb0[_0x3e84f1(0x168)],'gridRow':_0x3f9bb0[_0x3e84f1(0x210)]+0x1+_0x3e84f1(0x13b)+_0x3f9bb0[_0x3e84f1(0x442)]},'tabIndex':_0x82a31?0x0:void 0x0,'onClick':_0x82a31?()=>_0x4ca814==null?void 0x0:_0x4ca814(_0x32a65b['id']):void 0x0,'onFocus':_0x82a31?()=>_0x4ca814==null?void 0x0:_0x4ca814(_0x32a65b['id']):void 0x0,'children':[_0x82a31&&(0x0,g[_0x3e84f1(0x205)])(_0x3e84f1(0x347),{'type':_0x3e84f1(0x347),'aria-label':_0x53abed,'data-dashboard-drag-handle':_0x32a65b['id'],'className':(0x0,f[_0x3e84f1(0x108)])(_0x3e84f1(0x18a),_0x2bda53&&((_0x400d6a=_0x342c64['current'])==null?void 0x0:_0x400d6a['id'])===_0x32a65b['id']&&_0x342c64[_0x3e84f1(0x1fa)][_0x3e84f1(0x3ee)]===_0x3e84f1(0x1ec)?_0x3e84f1(0x32c):_0x3e84f1(0x379)),'onPointerDown':_0xfeb843=>_0x14541e(_0xfeb843,_0x32a65b,_0x3e84f1(0x1ec)),'children':(0x0,g[_0x3e84f1(0x205)])(s[_0x3e84f1(0x3dd)],{'className':_0x3e84f1(0x421),'aria-hidden':_0x3e84f1(0x109)})}),_0x82a31&&(0x0,g[_0x3e84f1(0x205)])(_0x3e84f1(0x331),{'className':_0x3e84f1(0xe1),'children':_0x43e20b==null?void 0x0:_0x43e20b(_0x32a65b)}),(0x0,g['jsx'])(_0x3e84f1(0x331),{'className':_0x3e84f1(0x3fd),'children':_0x226bd0(_0x32a65b)}),_0x82a31&&Ct['map'](({className:_0x2c6903,direction:_0x3ecc16})=>{const _0x46b5dc=_0x3e84f1;let _0x5999c8=_0x3ecc16[_0x46b5dc(0x215)]===0x2;return(0x0,g['jsx'])('button',{'type':'button','aria-label':_0x311939,'data-dashboard-resize-handle':_0x3ecc16,'data-dashboard-resize-control':_0x5999c8?_0x3ecc16:void 0x0,'data-dashboard-resize-edge':_0x5999c8?void 0x0:_0x3ecc16,'className':(0x0,f[_0x46b5dc(0x108)])(_0x46b5dc(0x25b),_0x5999c8?'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':_0x46b5dc(0x21b),_0x2c6903,_0x45d201===_0x32a65b['id']&&_0x46b5dc(0x2e2)),'onPointerDown':_0x239c58=>_0x14541e(_0x239c58,_0x32a65b,_0x46b5dc(0x4cb),_0x3ecc16)},_0x3ecc16);})]},_0x32a65b['id']);})})});}var Tt;const X={'axis':{...n[_0xf14a5a(0x1be)],'primaryGridLineVisible':!0x1,'secondaryGridLineVisible':!0x0},'funnel':n[_0xf14a5a(0x2c3)],'heatmap':n[_0xf14a5a(0x224)],'indicatorLine':n[_0xf14a5a(0x184)],'legend':n[_0xf14a5a(0x3c5)],'lineAndArea':n['DEFAULT_CHART_LINE_AND_AREA_VALUES'],'pareto':n[_0xf14a5a(0x3f2)],'pie':n['DEFAULT_CHART_PIE_VALUES'],'radar':n[_0xf14a5a(0x11e)],'relation':{...n[_0xf14a5a(0x19d)],'useValueAsSymbolSize':!0x0},'series':{...n[_0xf14a5a(0x14f)],'radarFillOpacity':0.2,'rightAxis':{'ltr':!0x1,'rtl':((Tt=_[_0xf14a5a(0x1f4)][_0xf14a5a(0x411)])==null?void 0x0:Tt[_0xf14a5a(0x30a)])??!0x1}},'style':n[_0xf14a5a(0xd7)],'titles':n[_0xf14a5a(0x445)],'trendline':n[_0xf14a5a(0x151)],'waterfall':{...n[_0xf14a5a(0x126)],'useSubtotal':!0x0},'waterfallStyle':n['DEFAULT_CHART_WATERFALL_STYLE_VALUES'],'wordCloud':n['DEFAULT_CHART_WORD_CLOUD_VALUES']},Et=[_[_0xf14a5a(0x297)][_0xf14a5a(0x229)],_[_0xf14a5a(0x297)]['Radar'],_[_0xf14a5a(0x297)][_0xf14a5a(0x37f)],_['ChartTypeBits'][_0xf14a5a(0x2da)],_[_0xf14a5a(0x297)][_0xf14a5a(0x1cc)],_[_0xf14a5a(0x297)][_0xf14a5a(0x23e)],_[_0xf14a5a(0x297)][_0xf14a5a(0x21d)],_[_0xf14a5a(0x297)][_0xf14a5a(0x11c)],_['ChartTypeBits'][_0xf14a5a(0x3b9)],_[_0xf14a5a(0x297)][_0xf14a5a(0x111)],_[_0xf14a5a(0x297)][_0xf14a5a(0x3da)],_[_0xf14a5a(0x297)][_0xf14a5a(0x1e0)],_[_0xf14a5a(0x297)][_0xf14a5a(0x41a)],_[_0xf14a5a(0x297)]['Gauge'],_['ChartTypeBits'][_0xf14a5a(0xcd)]];function Dt(_0xa65ea0){const _0x4e03eb=_0xf14a5a;let {config:_0x4ccbd2,onChange:_0x1ded67,runtime:_0x23b6dc,tableName:_0x211c92}=_0xa65ea0,_0x90d38e=(0x0,m['useDependency'])(W),_0x299184=(0x0,m[_0x4e03eb(0x491)])(a['LocaleService']),[_0x51f7a3,_0x282f56]=(0x0,h[_0x4e03eb(0x2b8)])(n[_0x4e03eb(0x479)][_0x4e03eb(0x3f1)]),_0x43e881=(0x0,h[_0x4e03eb(0x177)])(()=>new n[(_0x4e03eb(0x440))](_0x23b6dc[_0x4e03eb(0x163)],{'commit':_0x1c8f54=>{const _0x278c2a=_0x4e03eb;var _0x3a4f46;let _0x149c05=_0x23b6dc['model'],_0x49d912=(0x0,_[_0x278c2a(0x1f0)])(_0x1c8f54,{'series':(_0x3a4f46=_0x149c05['config'])==null?void 0x0:_0x3a4f46['series'],'currentChartType':_0x149c05[_0x278c2a(0x4d0)],'currentStyle':_0x149c05[_0x278c2a(0x4c8)],'currentContext':_0x149c05[_0x278c2a(0xd9)],'currentDataAggregation':_0x149c05[_0x278c2a(0x2e4)]});_0x1ded67({'chart':Ot(_0x4ccbd2['chart'],_0x49d912)});}}),[_0x4ccbd2[_0x4e03eb(0x3a9)],_0x1ded67,_0x23b6dc]),_0x5db44a=(0x0,h[_0x4e03eb(0x177)])(()=>(0x0,n[_0x4e03eb(0x138)])(n[_0x4e03eb(0x1ee)]['map'](_0x2db842=>({..._0x2db842,'label':_0x299184['t'](Mt(_0x2db842[_0x4e03eb(0x490)]))}))),[_0x299184]);return(0x0,g[_0x4e03eb(0x205)])(n[_0x4e03eb(0x142)],{'chartUIService':_0x90d38e,'hostAdapter':_0x43e881,'children':(0x0,g[_0x4e03eb(0x23b)])('div',{'className':_0x4e03eb(0x1fc),'children':[(0x0,g[_0x4e03eb(0x205)])(n[_0x4e03eb(0x4b9)],{'ariaLabel':_0x299184['t'](_0x4e03eb(0x36d)),'className':_0x4e03eb(0x306),'items':[{'label':_0x299184['t'](_0x4e03eb(0x157)),'panelId':_0x4e03eb(0xc1),'value':n[_0x4e03eb(0x479)]['Data']},{'label':_0x299184['t'](_0x4e03eb(0x356)),'panelId':_0x4e03eb(0x3fe),'value':n['ChartEditPanelTab'][_0x4e03eb(0x204)]}],'value':_0x51f7a3,'onChange':_0x282f56}),_0x51f7a3===n[_0x4e03eb(0x479)][_0x4e03eb(0x3f1)]?(0x0,g[_0x4e03eb(0x205)])(n[_0x4e03eb(0x397)],{'id':'base-pivot-chart-setup','label':_0x299184['t']('bases-dashboard-ui.chart.common.setup'),'children':(0x0,g['jsxs'])('div',{'className':_0x4e03eb(0xe9),'children':[(0x0,g[_0x4e03eb(0x205)])(n[_0x4e03eb(0x3b8)],{'options':_0x5db44a}),(0x0,g[_0x4e03eb(0x205)])(n['ChartTypeSpecificSetupSection'],{}),(0x0,g[_0x4e03eb(0x205)])(n['ChartThemeField'],{}),(0x0,g[_0x4e03eb(0x205)])(kt,{}),(0x0,g[_0x4e03eb(0x205)])(n[_0x4e03eb(0x29d)],{}),(0x0,g['jsxs'])('div',{'children':[(0x0,g[_0x4e03eb(0x205)])(n[_0x4e03eb(0x189)],{'title':_0x299184['t'](_0x4e03eb(0x2d8))}),(0x0,g[_0x4e03eb(0x205)])(f[_0x4e03eb(0x2d0)],{'disabled':!0x0,'value':_0x211c92})]}),(0x0,g['jsx'])(n[_0x4e03eb(0x457)],{'orientationControl':(0x0,g[_0x4e03eb(0x205)])(f[_0x4e03eb(0x134)],{'size':_0x4e03eb(0x4d6),'onClick':()=>_0x1ded67({'chart':{..._0x4ccbd2[_0x4e03eb(0x3a9)],'orient':_0x4ccbd2['chart'][_0x4e03eb(0x175)]==='row'?_0x4e03eb(0x171):'row'}}),'children':_0x299184['t'](_0x4e03eb(0x12d))})}),(0x0,g['jsx'])(n[_0x4e03eb(0x295)],{}),(0x0,g[_0x4e03eb(0x205)])(n[_0x4e03eb(0x342)],{'defaultValues':X['waterfall']}),(0x0,g[_0x4e03eb(0x23b)])(_0x4e03eb(0x331),{'children':[(0x0,g[_0x4e03eb(0x205)])(n['ChartEditBlockTitle'],{'title':_0x299184['t'](_0x4e03eb(0x1a1))}),(0x0,g[_0x4e03eb(0x205)])(f[_0x4e03eb(0x278)],{'value':_0x4ccbd2['displayMode'],'options':[{'value':_0x4e03eb(0x27d),'label':_0x299184['t'](_0x4e03eb(0x125))},{'value':_0x4e03eb(0x3a9),'label':_0x299184['t'](_0x4e03eb(0x3f0))},{'value':_0x4e03eb(0x2f9),'label':_0x299184['t']('bases-dashboard-ui.pivot.tableOnly')}],'onChange':_0x292f88=>{const _0x5d20e1=_0x4e03eb;(_0x292f88===_0x5d20e1(0x27d)||_0x292f88==='chart'||_0x292f88===_0x5d20e1(0x2f9))&&_0x1ded67({'displayMode':_0x292f88});}})]})]})}):(0x0,g['jsx'])(n['ChartEditPanel'],{'id':_0x4e03eb(0x3fe),'label':_0x299184['t'](_0x4e03eb(0x356)),'children':(0x0,g[_0x4e03eb(0x205)])(At,{})})]})});}function Ot(_0x6c14c,_0x2e87bd){const _0x5b0fe8=_0xf14a5a;return{..._0x6c14c,'type':_0x2e87bd[_0x5b0fe8(0x4d0)]??_0x6c14c[_0x5b0fe8(0xf6)],'style':_0x2e87bd[_0x5b0fe8(0x4c8)]??_0x6c14c[_0x5b0fe8(0x4c8)],'context':_0x2e87bd[_0x5b0fe8(0xd9)]??_0x6c14c[_0x5b0fe8(0xd9)],'dataAggregation':_0x2e87bd[_0x5b0fe8(0x2e4)]??_0x6c14c[_0x5b0fe8(0x2e4)]};}function kt(){const _0x212a89=_0xf14a5a;let _0x2fa117=(0x0,n[_0x212a89(0x1ca)])();return(0x0,g[_0x212a89(0x205)])(n[_0x212a89(0x2bc)],{'visible':Et[_0x212a89(0x2d7)](_0x1a2e4a=>!_[_0x212a89(0x4b8)][_0x212a89(0x258)](_0x2fa117,_0x1a2e4a))});}function Z(_0x48e978){const _0x401233=_0xf14a5a;return(0x0,g[_0x401233(0x23b)])(n[_0x401233(0x426)],{'id':_0x48e978['id'],'children':[(0x0,g[_0x401233(0x205)])(n[_0x401233(0x368)],{'children':_0x48e978[_0x401233(0x34b)]}),(0x0,g[_0x401233(0x205)])(n['ChartSectionAccordionContent'],{'children':_0x48e978[_0x401233(0x19f)]})]});}function At(){const _0x11e24a=_0xf14a5a;let _0x55ac5e=(0x0,m[_0x11e24a(0x491)])(a[_0x11e24a(0x207)]),_0x2f61ba=(0x0,n[_0x11e24a(0x1ca)])(),_0x207ada=(0x0,n[_0x11e24a(0x39e)])(),[_0x3272fd,_0x4600cd]=(0x0,h['useState'])(null),_0x3de238=_[_0x11e24a(0x4b8)][_0x11e24a(0x258)](_0x2f61ba,_[_0x11e24a(0x297)][_0x11e24a(0x454)]),_0x4bd10a=_0x2f61ba===_[_0x11e24a(0x297)][_0x11e24a(0x318)],_0xcefd69=_0x2f61ba===_[_0x11e24a(0x297)]['WordCloud'],_0x532fc1=_0x2f61ba===_[_0x11e24a(0x297)][_0x11e24a(0x1cc)],_0x2f4ec4=_['chartBitsUtils']['baseOn'](_0x2f61ba,_['ChartTypeBits'][_0x11e24a(0x459)]),_0x2c5fe7=_0x2f61ba===_[_0x11e24a(0x297)][_0x11e24a(0x23e)],_0x51257c=_0x2f61ba===_[_0x11e24a(0x297)][_0x11e24a(0x4da)],_0x115d11=_0x2f61ba===_[_0x11e24a(0x297)][_0x11e24a(0x1f3)],_0x3d8a2b=_0x2f61ba===_[_0x11e24a(0x297)]['Heatmap'],_0x4ede75=(0x0,n[_0x11e24a(0xc2)])(_0x2f61ba,n[_0x11e24a(0x162)]['GeneralSeries'])&&!_0x2f4ec4&&!_0x115d11,_0x1ef241=jt(_0x2f61ba,_0x55ac5e);return(0x0,g[_0x11e24a(0x23b)])(n[_0x11e24a(0x488)],{'value':_0x3272fd,'onChange':_0x4600cd,'children':[(0x0,g[_0x11e24a(0x205)])(Z,{'id':n['ChartEditPanelSection']['ChartStyle'],'label':_0x55ac5e['t']('bases-dashboard-ui.chart.common.chartStyle'),'children':(0x0,g[_0x11e24a(0x205)])(n[_0x11e24a(0x3eb)],{'defaultValues':X[_0x11e24a(0x4c8)]})}),(0x0,g['jsx'])(Z,{'id':n[_0x11e24a(0x437)]['ChartAndAxisTitles'],'label':_0x55ac5e['t'](_0x11e24a(0x19a)),'children':(0x0,g[_0x11e24a(0x205)])(n[_0x11e24a(0x377)],{'commitMode':_0x11e24a(0x3ca),'defaultValues':X['titles']})}),(0x0,g[_0x11e24a(0x205)])(n[_0x11e24a(0x165)],{'section':_0x11e24a(0x3bc)}),_0x4ede75&&(0x0,g[_0x11e24a(0x205)])(Z,{'id':n[_0x11e24a(0x437)][_0x11e24a(0x12e)],'label':_0x55ac5e['t']('bases-dashboard-ui.chart.common.series'),'children':(0x0,g[_0x11e24a(0x205)])(n[_0x11e24a(0xf8)],{'defaultValues':X['series'],'NumberFormatField':n['ChartNumberFormatAtom']})}),_0x51257c&&(0x0,g[_0x11e24a(0x205)])(Z,{'id':n[_0x11e24a(0x437)]['WaterfallSeries'],'label':_0x55ac5e['t'](_0x11e24a(0x3d3)),'children':(0x0,g['jsx'])(n[_0x11e24a(0x30e)],{'defaultValues':X[_0x11e24a(0xe6)],'getDefaultBucketName':({seriesName:_0x4feda8,target:_0x2c39fc})=>_0x2c39fc===_['ChartWaterfallStyleTarget'][_0x11e24a(0x311)]?_0x55ac5e['t']('bases-dashboard-ui.chart.waterfall.subtotal'):_0x4feda8?_0x4feda8+'-('+_0x55ac5e['t'](_0x11e24a(0x237)+(_0x2c39fc===_[_0x11e24a(0x127)][_0x11e24a(0x13f)]?_0x11e24a(0x499):_0x11e24a(0x191)))+')':'','NumberFormatField':n['ChartNumberFormatAtom']})}),_0x115d11&&(0x0,g[_0x11e24a(0x23b)])(g['Fragment'],{'children':[(0x0,g[_0x11e24a(0x205)])(Z,{'id':n[_0x11e24a(0x437)][_0x11e24a(0x4bf)],'label':_0x55ac5e['t'](_0x11e24a(0x455)),'children':(0x0,g[_0x11e24a(0x205)])(n['ChartParetoSeriesSection'],{'defaultValues':X[_0x11e24a(0x2fa)],'NumberFormatField':n['ChartNumberFormatAtom'],'showDataPointEditor':!0x0,'target':_0x11e24a(0x4a8)})}),(0x0,g[_0x11e24a(0x205)])(Z,{'id':n[_0x11e24a(0x437)]['ParetoLineSeries'],'label':_0x55ac5e['t']('bases-dashboard-ui.chart.section.paretoLine'),'children':(0x0,g['jsx'])(n[_0x11e24a(0x1c4)],{'defaultValues':X[_0x11e24a(0x2fa)],'NumberFormatField':n[_0x11e24a(0x370)],'showDataPointEditor':!0x1,'target':_0x11e24a(0x275)})})]}),_0x3de238&&(0x0,g[_0x11e24a(0x205)])(Z,{'id':n[_0x11e24a(0x437)]['PieStyle'],'label':_0x55ac5e['t']('bases-dashboard-ui.chart.section.pie'),'children':(0x0,g[_0x11e24a(0x205)])(n['ChartPieStyleSection'],{'defaultValues':X[_0x11e24a(0x303)],'NumberFormatField':n[_0x11e24a(0x370)]})}),_0xcefd69&&(0x0,g[_0x11e24a(0x205)])(Z,{'id':n[_0x11e24a(0x437)][_0x11e24a(0x37f)],'label':_0x55ac5e['t'](_0x11e24a(0x3d2)),'children':(0x0,g[_0x11e24a(0x205)])(n['ChartWordCloudStyleSection'],{'defaultValues':X['wordCloud']})}),_0x4bd10a&&(0x0,g['jsx'])(Z,{'id':n[_0x11e24a(0x437)][_0x11e24a(0x318)],'label':_0x55ac5e['t'](_0x11e24a(0x3f4)),'children':(0x0,g['jsx'])(n['ChartRadarStyleSection'],{'defaultValues':X[_0x11e24a(0x456)]})}),_0x532fc1&&(0x0,g[_0x11e24a(0x205)])(Z,{'id':n['ChartEditPanelSection']['Funnel'],'label':_0x55ac5e['t'](_0x11e24a(0x4d3)),'children':(0x0,g[_0x11e24a(0x205)])(n['ChartFunnelStyleSection'],{'defaultValues':X['funnel'],'gapControl':_0x11e24a(0x38a)})}),_0x3d8a2b&&(0x0,g['jsx'])(Z,{'id':n['ChartEditPanelSection'][_0x11e24a(0x11c)],'label':_0x55ac5e['t'](_0x11e24a(0x28e)),'children':(0x0,g[_0x11e24a(0x205)])(n['ChartHeatmapStyleSection'],{'defaultValues':X[_0x11e24a(0x447)]})}),_0x2c5fe7&&(0x0,g[_0x11e24a(0x205)])(Z,{'id':n[_0x11e24a(0x437)]['Relation'],'label':_0x55ac5e['t'](_0x11e24a(0x319)),'children':(0x0,g['jsx'])(n[_0x11e24a(0x3f6)],{'defaultValues':X[_0x11e24a(0x403)]})}),(0x0,n[_0x11e24a(0x169)])(_0x2f61ba)&&(0x0,g['jsx'])(Z,{'id':n[_0x11e24a(0x437)]['LineAndArea'],'label':_0x55ac5e['t'](_[_0x11e24a(0x4b8)]['baseOn'](_0x2f61ba,_['ChartTypeBits'][_0x11e24a(0x486)])?_0x11e24a(0x150):'bases-dashboard-ui.chart.chartTypes.line'),'children':(0x0,g[_0x11e24a(0x205)])(n[_0x11e24a(0x19b)],{'defaultValues':X[_0x11e24a(0x2b3)],'lineStyleControl':_0x11e24a(0x498)})}),(0x0,n[_0x11e24a(0xc2)])(_0x2f61ba,n[_0x11e24a(0x162)][_0x11e24a(0x477)])&&(0x0,g[_0x11e24a(0x205)])(Z,{'id':n[_0x11e24a(0x437)][_0x11e24a(0x477)],'label':_0x55ac5e['t']('bases-dashboard-ui.chart.common.legend'),'children':(0x0,g[_0x11e24a(0x205)])(n['ChartLegendSection'],{'defaultValues':X[_0x11e24a(0xdb)]})}),(0x0,n[_0x11e24a(0xc2)])(_0x2f61ba,n['ChartEditorCapability'][_0x11e24a(0x472)])&&(0x0,g[_0x11e24a(0x23b)])(g[_0x11e24a(0x487)],{'children':[(0x0,g[_0x11e24a(0x205)])(Z,{'id':n['ChartEditPanelSection'][_0x11e24a(0x19c)],'label':_0x55ac5e['t'](_0x11e24a(0x186)),'children':(0x0,g[_0x11e24a(0x205)])(n['ChartAxisSection'],{'axis':'x','defaultValues':X[_0x11e24a(0x3f9)],'NumberFormatField':n[_0x11e24a(0x370)]})}),(0x0,g[_0x11e24a(0x205)])(Z,{'id':n[_0x11e24a(0x437)][_0x11e24a(0x1f1)],'label':_0x55ac5e['t'](_0x11e24a(0x3d6)),'children':(0x0,g[_0x11e24a(0x205)])(n[_0x11e24a(0xee)],{'axis':'y','defaultValues':X[_0x11e24a(0x3f9)],'NumberFormatField':n['ChartNumberFormatAtom']})}),(0x0,g[_0x11e24a(0x205)])(n[_0x11e24a(0x165)],{'section':_0x11e24a(0xff)}),_0x207ada&&(0x0,g[_0x11e24a(0x205)])(Z,{'id':n[_0x11e24a(0x437)]['RightVerticalAxis'],'label':_0x55ac5e['t'](_0x11e24a(0x42b)),'children':(0x0,g['jsx'])(n['ChartAxisSection'],{'axis':_0x11e24a(0x179),'defaultValues':X[_0x11e24a(0x3f9)],'NumberFormatField':n[_0x11e24a(0x370)]})}),(0x0,g[_0x11e24a(0x205)])(Z,{'id':n[_0x11e24a(0x437)]['GridlinesAndTicks'],'label':_0x55ac5e['t'](_0x11e24a(0x4c3)),'children':(0x0,g[_0x11e24a(0x205)])(n['ChartGridlinesAndTicksSection'],{'defaultValues':X['axis']})})]}),(0x0,n[_0x11e24a(0xc2)])(_0x2f61ba,n[_0x11e24a(0x162)][_0x11e24a(0x1a8)])&&(0x0,g[_0x11e24a(0x205)])(Z,{'id':n[_0x11e24a(0x437)][_0x11e24a(0x1a8)],'label':_0x55ac5e['t']('bases-dashboard-ui.chart.section.indicatorLine'),'children':(0x0,g[_0x11e24a(0x205)])(n[_0x11e24a(0x467)],{'defaultValues':X[_0x11e24a(0x494)]})}),(0x0,_[_0x11e24a(0x27a)])(_0x2f61ba)&&(0x0,g[_0x11e24a(0x205)])(Z,{'id':n['ChartEditPanelSection'][_0x11e24a(0x167)],'label':_0x55ac5e['t'](_0x11e24a(0x19e)),'children':(0x0,g['jsx'])(n[_0x11e24a(0x23f)],{'defaultValues':X[_0x11e24a(0x3ef)]})}),_0x1ef241&&(0x0,g['jsx'])(Z,{'id':_0x1ef241['id'],'label':_0x1ef241[_0x11e24a(0x34b)],'children':(0x0,g['jsx'])(n[_0x11e24a(0x145)],{})})]});}function jt(_0xdbbde1,_0xc617a){const _0x5f2680=_0xf14a5a;let _0x102008={[_[_0x5f2680(0x297)][_0x5f2680(0x111)]]:{'id':n['ChartEditPanelSection'][_0x5f2680(0x111)],'localeKey':_0x5f2680(0x484)},[_[_0x5f2680(0x297)]['Histogram']]:{'id':n[_0x5f2680(0x437)][_0x5f2680(0x3da)],'localeKey':_0x5f2680(0x1a3)},[_['ChartTypeBits'][_0x5f2680(0x1e0)]]:{'id':n['ChartEditPanelSection'][_0x5f2680(0x1e0)],'localeKey':_0x5f2680(0x483)},[_[_0x5f2680(0x297)]['Sunburst']]:{'id':n[_0x5f2680(0x437)][_0x5f2680(0x41a)],'localeKey':_0x5f2680(0x46d)},[_[_0x5f2680(0x297)][_0x5f2680(0x407)]]:{'id':n[_0x5f2680(0x437)][_0x5f2680(0x407)],'localeKey':_0x5f2680(0x41f)},[_['ChartTypeBits']['Chord']]:{'id':n['ChartEditPanelSection'][_0x5f2680(0xcd)],'localeKey':_0x5f2680(0x353)}}[_0xdbbde1];return _0x102008?{'id':_0x102008['id'],'label':_0xc617a['t'](_0x102008[_0x5f2680(0x1a5)])}:null;}function Mt(_0x1b9875){const _0xc3c73a=_0xf14a5a;return _0xc3c73a(0x29b)+_0x1b9875;}function Nt({onChange:_0x4cb2bb,onEditData:_0x9b2e80,runtime:_0x2fb922,sourceChart:_0xf6c058,sourceName:_0x3dd937,widget:_0x1bb05f}){const _0x1d5461=_0xf14a5a;let _0x857128=(0x0,m[_0x1d5461(0x491)])(W),_0x404cbc=(0x0,m[_0x1d5461(0x491)])(a[_0x1d5461(0x207)]),[_0x44a1e0,_0x2678b9]=(0x0,h['useState'])(n['ChartEditPanelTab'][_0x1d5461(0x3f1)]),_0x273cef=_0x1bb05f[_0x1d5461(0x3a9)]??_0xf6c058,_0x1b5d95=(0x0,h[_0x1d5461(0x177)])(()=>new n[(_0x1d5461(0x440))](_0x2fb922['model'],{'commit':_0x517e24=>{const _0x52475e=_0x1d5461;var _0x5b194e;let _0x6c761a=_0x2fb922[_0x52475e(0x163)],_0x119b14=(0x0,_[_0x52475e(0x1f0)])(_0x517e24,{'series':(_0x5b194e=_0x6c761a[_0x52475e(0x34a)])==null?void 0x0:_0x5b194e['series'],'currentChartType':_0x6c761a[_0x52475e(0x4d0)],'currentStyle':_0x6c761a[_0x52475e(0x4c8)],'currentContext':_0x6c761a[_0x52475e(0xd9)],'currentDataAggregation':_0x6c761a[_0x52475e(0x2e4)]});_0x4cb2bb({..._0x1bb05f,'chart':Ot(_0x273cef,_0x119b14)})[_0x52475e(0xc0)](()=>void 0x0);}}),[_0x273cef,_0x4cb2bb,_0x2fb922,_0x1bb05f]),_0xf59247=(0x0,h['useMemo'])(()=>(0x0,n[_0x1d5461(0x138)])(n[_0x1d5461(0x1ee)][_0x1d5461(0x4a6)](_0x31b8bd=>({..._0x31b8bd,'label':_0x404cbc['t'](Pt(_0x31b8bd[_0x1d5461(0x490)]))}))),[_0x404cbc]);return(0x0,g[_0x1d5461(0x205)])(n[_0x1d5461(0x142)],{'chartUIService':_0x857128,'hostAdapter':_0x1b5d95,'children':(0x0,g['jsxs'])(_0x1d5461(0x331),{'data-dashboard-chart-inspector':!0x0,'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1\x20univer-flex-col','children':[(0x0,g[_0x1d5461(0x205)])(n['ChartEditPanelTabs'],{'ariaLabel':_0x404cbc['t'](_0x1d5461(0x36d)),'className':'univer-shrink-0\x20univer-px-4','items':[{'label':_0x404cbc['t'](_0x1d5461(0x157)),'panelId':'dashboard-chart-setup','value':n[_0x1d5461(0x479)][_0x1d5461(0x3f1)]},{'label':_0x404cbc['t'](_0x1d5461(0x356)),'panelId':_0x1d5461(0x420),'value':n[_0x1d5461(0x479)][_0x1d5461(0x204)]}],'value':_0x44a1e0,'onChange':_0x2678b9}),_0x44a1e0===n[_0x1d5461(0x479)][_0x1d5461(0x3f1)]?(0x0,g[_0x1d5461(0x205)])(n[_0x1d5461(0x397)],{'id':_0x1d5461(0x1d2),'label':_0x404cbc['t']('bases-dashboard-ui.chart.common.setup'),'children':(0x0,g[_0x1d5461(0x23b)])(_0x1d5461(0x331),{'className':_0x1d5461(0xe9),'children':[(0x0,g[_0x1d5461(0x205)])(n[_0x1d5461(0x3b8)],{'options':_0xf59247}),(0x0,g[_0x1d5461(0x205)])(n[_0x1d5461(0x2f0)],{}),(0x0,g['jsx'])(n['ChartThemeField'],{}),(0x0,g[_0x1d5461(0x205)])(kt,{}),(0x0,g[_0x1d5461(0x205)])(n[_0x1d5461(0x29d)],{}),(0x0,g[_0x1d5461(0x23b)])('div',{'children':[(0x0,g[_0x1d5461(0x205)])(n[_0x1d5461(0x189)],{'title':_0x404cbc['t']('bases-dashboard-ui.dashboardInspector.dataSource')}),(0x0,g[_0x1d5461(0x205)])(f[_0x1d5461(0x2d0)],{'disabled':!0x0,'value':_0x3dd937}),(0x0,g['jsx'])(f[_0x1d5461(0x134)],{'className':_0x1d5461(0x33b),'onClick':_0x9b2e80,'children':_0x404cbc['t']('bases-dashboard-ui.dashboardInspector.editData')})]})]})}):(0x0,g[_0x1d5461(0x205)])(n[_0x1d5461(0x397)],{'id':'dashboard-chart-style','label':_0x404cbc['t'](_0x1d5461(0x356)),'children':(0x0,g['jsx'])(At,{})})]})});}function Pt(_0x2caf2d){const _0x344a3d=_0xf14a5a;return _0x344a3d(0x29b)+_0x2caf2d;}const Ft=['general',_0xf14a5a(0x106),'percent',_0xf14a5a(0x1e4),'grouped','compact'];function It({base:_0x3b47f7,onChange:_0xd72245,onSelectBackgroundImage:_0x1b79ac,widget:_0x3770f4}){const _0x422759=_0xf14a5a;var _0x390e53;let _0x50bc0b=(0x0,m[_0x422759(0x491)])(a[_0x422759(0x207)]),_0x2eee49=(0x0,m[_0x422759(0x491)])(a[_0x422759(0xe4)]),_0xafc55f=(0x0,m[_0x422759(0x3b4)])(()=>_0x2eee49['currentTheme$'],_0x2eee49[_0x422759(0x16c)](),!0x1,[_0x2eee49]),_0x16110a=(0x0,m[_0x422759(0x3b4)])(()=>_0x2eee49['darkMode$'],_0x2eee49[_0x422759(0x36a)],!0x1,[_0x2eee49]),[_0x25e378,_0x10b2ce]=(0x0,h[_0x422759(0x2b8)])(_0x422759(0x32a)),[_0x4b6437,_0x2ed142]=(0x0,h[_0x422759(0x2b8)])(!0x1),_0x59e09d=k(_0x3770f4),_0x509506=_0x3b47f7[_0x422759(0x164)]()['tables'][_0x3770f4[_0x422759(0x372)]],_0x242bc9=_0x509506==null?void 0x0:_0x509506[_0x422759(0x383)][_0x422759(0x396)](_0xd6d3af=>_0x509506[_0x422759(0x34d)][_0xd6d3af]),_0x4c4c93=_0x242bc9?_0x509506==null?void 0x0:_0x509506[_0x422759(0x34d)][_0x242bc9]:void 0x0,_0x5dcc64=_0x509506&&_0x4c4c93?(0x0,t[_0x422759(0x24f)])(_0x3b47f7[_0x422759(0x164)](),_0x509506,_0x4c4c93)[_0x422759(0x4a6)](_0x386972=>({..._0x386972,'current':!0x1})):[],_0x1a1ea6=((_0x390e53=_0x3770f4[_0x422759(0x36b)][_0x422759(0x408)])==null?void 0x0:_0x390e53[_0x422759(0x1bc)])??'',_0x1d587e=_0x1842ec=>_0xd72245(A(_0x3770f4,_0x1842ec))[_0x422759(0xc0)](()=>void 0x0),_0x236192=_0x454912=>_0xd72245({..._0x3770f4,'description':_0x454912})[_0x422759(0xc0)](()=>void 0x0);return(0x0,g[_0x422759(0x23b)])('div',{'data-dashboard-formula-inspector':!0x0,'className':_0x422759(0x1c5),'children':[(0x0,g['jsx'])(f[_0x422759(0x27c)],{'className':_0x422759(0x16e),'items':[{'value':_0x422759(0x32a),'label':_0x50bc0b['t'](_0x422759(0x3a1))},{'value':_0x422759(0x4c8),'label':_0x50bc0b['t']('bases-dashboard-ui.dashboardInspector.style')}],'value':_0x25e378,'onChange':_0x10b2ce}),(0x0,g[_0x422759(0x205)])('div',{'className':'univer-min-h-0\x20univer-flex-1\x20univer-overflow-y-auto\x20univer-p-4','children':_0x25e378===_0x422759(0x32a)?(0x0,g[_0x422759(0x23b)])('div',{'className':_0x422759(0x47c),'children':[(0x0,g[_0x422759(0x205)])(Q,{'label':_0x50bc0b['t'](_0x422759(0x218)),'children':(0x0,g[_0x422759(0x205)])(f[_0x422759(0x2d0)],{'value':_0x3770f4[_0x422759(0x315)]??_0x3770f4[_0x422759(0x3ff)]??'','onChange':_0x236192,'onBlur':_0xb050bb=>_0x236192(_0xb050bb[_0x422759(0x135)][_0x422759(0x1aa)])})}),(0x0,g[_0x422759(0x205)])(Q,{'label':_0x50bc0b['t']('bases-dashboard-ui.dashboardInspector.dataSource'),'children':(0x0,g[_0x422759(0x205)])(f[_0x422759(0x2d0)],{'disabled':!0x0,'value':(_0x509506==null?void 0x0:_0x509506[_0x422759(0x1dc)])??_0x50bc0b['t'](_0x422759(0x143))})}),(0x0,g[_0x422759(0x23b)])(Q,{'label':_0x50bc0b['t'](_0x422759(0x252)),'children':[(0x0,g[_0x422759(0x205)])(f['Input'],{'disabled':!0x0,'value':(0x0,t[_0x422759(0x1ed)])(_0x1a1ea6,_0x5dcc64)}),(0x0,g[_0x422759(0x205)])(f['Button'],{'className':_0x422759(0x33b),'onClick':()=>_0x2ed142(!0x0),'children':_0x50bc0b['t'](_0x422759(0x3e6))})]})]}):(0x0,g[_0x422759(0x23b)])(_0x422759(0x331),{'className':'univer-grid\x20univer-gap-4','children':[(0x0,g[_0x422759(0x205)])(n[_0x422759(0x21c)],{'emptyLabel':_0x50bc0b['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'label':_0x50bc0b['t']('bases-dashboard-ui.dashboardInspector.backgroundColor'),'pickerFallbackValue':_0x16110a?_0xafc55f[_0x422759(0x287)][0x384]:_0xafc55f[_0x422759(0x287)][0x0],'resetLabel':_0x50bc0b['t'](_0x422759(0x43b)),'value':_0x59e09d[_0x422759(0x23c)]??null,'onChange':_0x45df9e=>_0x1d587e({'backgroundColor':_0x45df9e??void 0x0})}),(0x0,g[_0x422759(0x23b)])(Q,{'label':_0x50bc0b['t'](_0x422759(0x37a)),'children':[(0x0,g[_0x422759(0x23b)])('div',{'className':_0x422759(0x228),'children':[(0x0,g[_0x422759(0x23b)])(f[_0x422759(0x134)],{'className':_0x422759(0x267),'onClick':()=>{const _0x1f8b4f=_0x422759;_0x1b79ac()[_0x1f8b4f(0x173)](_0x1c87cd=>{const _0x4ebe23=_0x1f8b4f;if(_0x1c87cd){var _0x4e57eb;return _0x1d587e({'backgroundImage':{..._0x1c87cd,'fit':((_0x4e57eb=_0x59e09d[_0x4ebe23(0x148)])==null?void 0x0:_0x4e57eb['fit'])??_0x4ebe23(0x313)}});}})[_0x1f8b4f(0xc0)](()=>void 0x0);},'children':[(0x0,g[_0x422759(0x205)])(s[_0x422759(0x328)],{}),_0x59e09d['backgroundImage']?_0x50bc0b['t'](_0x422759(0xfd)):_0x50bc0b['t'](_0x422759(0x271))]}),_0x59e09d[_0x422759(0x148)]&&(0x0,g['jsx'])(f[_0x422759(0x134)],{'aria-label':_0x50bc0b['t'](_0x422759(0x446)),'title':_0x50bc0b['t'](_0x422759(0x446)),'onClick':()=>_0x1d587e({'backgroundImage':void 0x0}),'children':(0x0,g[_0x422759(0x205)])(s['DeleteIcon'],{})})]}),_0x59e09d[_0x422759(0x148)]&&(0x0,g['jsx'])(f[_0x422759(0x27c)],{'className':_0x422759(0x37c),'items':[{'value':'cover','label':_0x50bc0b['t'](_0x422759(0x1b7))},{'value':_0x422759(0x182),'label':_0x50bc0b['t']('bases-dashboard-ui.dashboardInspector.contain')}],'value':_0x59e09d['backgroundImage'][_0x422759(0x345)],'onChange':_0x325e7b=>_0x1d587e({'backgroundImage':_0x59e09d[_0x422759(0x148)]?{..._0x59e09d['backgroundImage'],'fit':_0x325e7b}:void 0x0})})]}),(0x0,g[_0x422759(0x205)])(n['ChartColorField'],{'emptyLabel':_0x50bc0b['t'](_0x422759(0x1db)),'label':_0x50bc0b['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x16110a?_0xafc55f[_0x422759(0x287)][0x32]:_0xafc55f[_0x422759(0x287)][0x3e8],'resetLabel':_0x50bc0b['t'](_0x422759(0x43b)),'value':_0x59e09d[_0x422759(0x2e9)]??null,'onChange':_0x539c45=>_0x1d587e({'textColor':_0x539c45??void 0x0})}),(0x0,g[_0x422759(0x205)])(Q,{'label':_0x50bc0b['t'](_0x422759(0x158)),'children':(0x0,g[_0x422759(0x205)])(f[_0x422759(0x27c)],{'items':[{'value':_0x422759(0x364),'label':_0x50bc0b['t'](_0x422759(0x430))},{'value':'center','label':_0x50bc0b['t'](_0x422759(0x346))},{'value':_0x422759(0x433),'label':_0x50bc0b['t']('bases-dashboard-ui.dashboardInspector.right')}],'value':_0x59e09d[_0x422759(0x11d)],'onChange':_0x1e81a5=>_0x1d587e({'alignment':_0x1e81a5})})}),(0x0,g[_0x422759(0x23b)])(Q,{'label':_0x50bc0b['t'](_0x422759(0x1c6)),'children':[(0x0,g[_0x422759(0x205)])(f[_0x422759(0x27c)],{'items':[{'value':'auto','label':_0x50bc0b['t'](_0x422759(0x1df))},{'value':'custom','label':_0x50bc0b['t'](_0x422759(0xd0))}],'value':_0x59e09d[_0x422759(0x3d7)],'onChange':_0x36efaa=>_0x1d587e({'fontSizeMode':_0x36efaa})}),_0x59e09d[_0x422759(0x3d7)]===_0x422759(0x121)&&(0x0,g[_0x422759(0x205)])(f[_0x422759(0x43e)],{'className':'univer-mt-2','min':0xc,'max':0x78,'value':_0x59e09d[_0x422759(0x2c9)],'onChange':_0x4f1418=>_0x1d587e({'fontSize':_0x4f1418??0x28,'fontSizeMode':'custom'})})]}),(0x0,g[_0x422759(0x205)])(Q,{'label':_0x50bc0b['t'](_0x422759(0x357)),'children':(0x0,g[_0x422759(0x205)])(f['Select'],{'value':_0x59e09d[_0x422759(0x435)],'options':[{'value':_0x422759(0x478),'label':_0x50bc0b['t'](_0x422759(0x37b))},{'value':'number','label':_0x50bc0b['t'](_0x422759(0x452))},{'value':_0x422759(0x4c1),'label':_0x50bc0b['t'](_0x422759(0x1e6))},{'value':'currency','label':_0x50bc0b['t'](_0x422759(0x3f5))},{'value':_0x422759(0x33d),'label':_0x50bc0b['t'](_0x422759(0x462))},{'value':_0x422759(0x308),'label':_0x50bc0b['t'](_0x422759(0x1fd))}],'onChange':_0x5a33df=>{let _0x21e23a=Ft['find'](_0x5cba13=>_0x5cba13===_0x5a33df);_0x21e23a&&_0x1d587e({'numberFormat':_0x21e23a});}})}),_0x59e09d[_0x422759(0x435)]===_0x422759(0x1e4)&&(0x0,g[_0x422759(0x205)])(Q,{'label':_0x50bc0b['t']('bases-dashboard-ui.dashboardInspector.currencyCode'),'children':(0x0,g[_0x422759(0x205)])(f[_0x422759(0x2d0)],{'value':_0x59e09d[_0x422759(0x1e4)],'onChange':_0x568f64=>_0x1d587e({'currency':_0x568f64['slice'](0x0,0x3)[_0x422759(0x2e6)]()})})}),_0x59e09d['numberFormat']!==_0x422759(0x478)&&(0x0,g[_0x422759(0x205)])(Q,{'label':_0x50bc0b['t'](_0x422759(0x495)),'children':(0x0,g[_0x422759(0x205)])(f['InputNumber'],{'min':0x0,'max':0x8,'value':_0x59e09d['decimalPlaces'],'onChange':_0x3f8b6a=>_0x1d587e({'decimalPlaces':_0x3f8b6a??0x0})})})]})}),_0x4b6437&&(0x0,g['jsx'])(f['Dialog'],{'open':!0x0,'width':0x2f8,'footer':null,'closable':!0x1,'maskClosable':!0x1,'children':(0x0,g[_0x422759(0x205)])(t['FormulaEditorPanel'],{'tables':_0x5dcc64,'formula':(0x0,t[_0x422759(0x1ed)])(_0x1a1ea6,_0x5dcc64),'onCancel':()=>_0x2ed142(!0x1),'onSave':_0x248fe8=>{const _0x88ebb1=_0x422759;let _0x27bc9d=_0x3770f4[_0x88ebb1(0x36b)][_0x88ebb1(0x408)]??{'formula':''};return _0xd72245({..._0x3770f4,'shapeData':{..._0x3770f4[_0x88ebb1(0x36b)],'formulaBinding':{..._0x27bc9d,'formula':(0x0,t[_0x88ebb1(0x4d9)])(_0x248fe8,_0x5dcc64)}}})[_0x88ebb1(0x173)](()=>_0x2ed142(!0x1))[_0x88ebb1(0xc0)](()=>void 0x0);}})})]});}function Q({children:_0x15f737,label:_0x7189f5}){const _0x106758=_0xf14a5a;return(0x0,g[_0x106758(0x23b)])(_0x106758(0x331),{'role':'group','aria-label':_0x7189f5,'className':_0x106758(0xe3),'children':[(0x0,g[_0x106758(0x205)])(_0x106758(0x49b),{'children':_0x7189f5}),_0x15f737]});}const Lt={[a[_0xf14a5a(0x1a2)]['IS']]:_0xf14a5a(0x203),[a[_0xf14a5a(0x1a2)][_0xf14a5a(0x18e)]]:'bases-dashboard-ui.operators.isNot',[a['BaseFilterOperator'][_0xf14a5a(0x2df)]]:'bases-dashboard-ui.operators.contains',[a[_0xf14a5a(0x1a2)][_0xf14a5a(0x100)]]:_0xf14a5a(0x439),[a[_0xf14a5a(0x1a2)][_0xf14a5a(0x233)]]:_0xf14a5a(0x3b5),[a[_0xf14a5a(0x1a2)]['IS_NOT_EMPTY']]:_0xf14a5a(0x2ab),[a['BaseFilterOperator']['GREATER_THAN']]:_0xf14a5a(0x1c9),[a[_0xf14a5a(0x1a2)][_0xf14a5a(0x1b8)]]:_0xf14a5a(0x3dc),[a[_0xf14a5a(0x1a2)][_0xf14a5a(0x2a5)]]:_0xf14a5a(0x33f),[a[_0xf14a5a(0x1a2)][_0xf14a5a(0x255)]]:_0xf14a5a(0x2b5),[a[_0xf14a5a(0x1a2)][_0xf14a5a(0x22c)]]:_0xf14a5a(0x429),[a[_0xf14a5a(0x1a2)][_0xf14a5a(0x245)]]:'bases-dashboard-ui.operators.after'};function Rt({disabled:_0x5e2b0a,fields:_0x259934,filter:_0x24c9e9,onChange:_0x1cb0d0}){const _0xfa432d=_0xf14a5a;let _0x318962=(0x0,m[_0xfa432d(0x491)])(a[_0xfa432d(0x207)]),_0x2fb94c=(_0x24c9e9==null?void 0x0:_0x24c9e9[_0xfa432d(0x47e)])??[];return _0x2fb94c[_0xfa432d(0x215)]?(0x0,g[_0xfa432d(0x205)])('div',{'className':_0xfa432d(0x22b),'children':_0x2fb94c[_0xfa432d(0x4a6)]((_0x542814,_0x3c81f6)=>{const _0x253927=_0xfa432d;let _0x54b83a=_0x259934['find'](_0xca4d3f=>_0xca4d3f['id']===_0x542814[_0x253927(0x31c)]);return(0x0,g['jsxs'])(_0x253927(0x331),{'className':_0x253927(0x46e),'children':[(0x0,g[_0x253927(0x23b)])(_0x253927(0x331),{'className':_0x253927(0x213),'children':[(0x0,g['jsx'])(_0x253927(0x49b),{'className':'univer-min-w-0\x20univer-flex-1\x20univer-truncate\x20univer-text-sm\x20univer-font-medium','children':(_0x54b83a==null?void 0x0:_0x54b83a['name'])??_0x542814[_0x253927(0x31c)]}),(0x0,g[_0x253927(0x205)])('span',{'className':'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','children':_0x318962['t'](Lt[_0x542814[_0x253927(0x155)]])})]}),Kt(_0x542814['operator'])&&(0x0,g[_0x253927(0x205)])(Bt,{'disabled':_0x5e2b0a,'field':_0x54b83a,'value':_0x542814[_0x253927(0x482)],'onChange':_0x88e1f0=>_0x1cb0d0(Ut(_0x24c9e9,_0x3c81f6,{'operand':_0x88e1f0}))})]},Yt(_0x2fb94c,_0x542814,_0x3c81f6));})}):(0x0,g[_0xfa432d(0x23b)])(_0xfa432d(0x331),{'className':'univer-grid\x20univer-h-full\x20univer-place-content-center\x20univer-gap-2\x20univer-text-center\x20univer-text-gray-400','children':[(0x0,g[_0xfa432d(0x205)])(s['FilterIcon'],{'className':_0xfa432d(0x496)}),(0x0,g[_0xfa432d(0x205)])('span',{'className':'univer-text-sm','children':_0x318962['t'](_0xfa432d(0x389))})]});}function zt({fields:_0x55fab2,filter:_0x318264,onChange:_0x26d8e9,onClear:_0x29c4ed}){const _0x3609b8=_0xf14a5a;let _0x338e83=(0x0,m[_0x3609b8(0x491)])(a['LocaleService']),_0x29e09c=(_0x318264==null?void 0x0:_0x318264[_0x3609b8(0x47e)])??[];return(0x0,g['jsxs'])(_0x3609b8(0x331),{'data-dashboard-filter-inspector':!0x0,'className':'univer-grid\x20univer-min-h-0\x20univer-flex-1\x20univer-content-start\x20univer-gap-3\x20univer-overflow-auto\x20univer-p-4','children':[_0x29e09c[_0x3609b8(0x4a6)]((_0x573114,_0x3867f8)=>{const _0x2dec37=_0x3609b8;let _0x873079=_0x55fab2[_0x2dec37(0x396)](_0x17fce8=>_0x17fce8['id']===_0x573114['fieldId'])??_0x55fab2[0x0],_0x268750=Wt(_0x873079);return(0x0,g[_0x2dec37(0x23b)])(_0x2dec37(0x180),{'className':'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','children':[(0x0,g['jsxs'])(_0x2dec37(0x331),{'className':'univer-grid\x20univer-grid-cols-[minmax(0,1fr)_32px]\x20univer-gap-2','children':[(0x0,g[_0x2dec37(0x205)])(f[_0x2dec37(0x278)],{'value':_0x573114['fieldId'],'options':_0x55fab2[_0x2dec37(0x4a6)](_0x6811d5=>({'value':_0x6811d5['id'],'label':_0x6811d5[_0x2dec37(0x1dc)]})),'onChange':_0x40e98e=>{let _0x5d0bec=_0x55fab2['find'](_0x93ccb8=>_0x93ccb8['id']===_0x40e98e);if(!_0x5d0bec)return;let _0x35b4ce=Wt(_0x5d0bec)[0x0];_0x26d8e9(Ut(_0x318264,_0x3867f8,Ht(_0x5d0bec,_0x35b4ce)));}}),(0x0,g['jsx'])(f[_0x2dec37(0x134)],{'type':_0x2dec37(0x347),'variant':_0x2dec37(0x43c),'aria-label':_0x338e83['t'](_0x2dec37(0x13e)),'className':_0x2dec37(0x219),'onClick':()=>_0x26d8e9(Vt(_0x318264,_0x29e09c['filter']((_0x7af435,_0x4e49c0)=>_0x4e49c0!==_0x3867f8))),'children':(0x0,g[_0x2dec37(0x205)])(s[_0x2dec37(0x1eb)],{})})]}),(0x0,g[_0x2dec37(0x205)])(f[_0x2dec37(0x278)],{'value':_0x573114[_0x2dec37(0x155)],'options':_0x268750['map'](_0x1cf9d0=>({'value':_0x1cf9d0,'label':_0x338e83['t'](Lt[_0x1cf9d0])})),'onChange':_0x183904=>{const _0x33f77c=_0x2dec37;let _0x19b3e0=_0x268750[_0x33f77c(0x396)](_0x3fdc17=>_0x3fdc17===_0x183904);_0x19b3e0&&_0x26d8e9(Ut(_0x318264,_0x3867f8,{'operator':_0x19b3e0,'operand':Gt(_0x873079)}));}}),Kt(_0x573114['operator'])&&(0x0,g[_0x2dec37(0x205)])(Bt,{'field':_0x873079,'value':_0x573114[_0x2dec37(0x482)],'onChange':_0x5b8e82=>_0x26d8e9(Ut(_0x318264,_0x3867f8,{'operand':_0x5b8e82}))})]},Yt(_0x29e09c,_0x573114,_0x3867f8));}),(0x0,g['jsxs'])(f[_0x3609b8(0x134)],{'type':_0x3609b8(0x347),'variant':_0x3609b8(0x43c),'className':_0x3609b8(0x2c4),'disabled':!_0x55fab2[_0x3609b8(0x215)],'onClick':()=>{let _0x1a7765=_0x55fab2[0x0];if(!_0x1a7765)return;let _0x6c8b7c=Wt(_0x1a7765)[0x0];_0x26d8e9(Vt(_0x318264,[..._0x29e09c,Ht(_0x1a7765,_0x6c8b7c)]));},'children':[(0x0,g[_0x3609b8(0x205)])(s[_0x3609b8(0x328)],{}),_0x338e83['t'](_0x3609b8(0x3d9))]}),_0x29e09c['length']>0x0&&(0x0,g[_0x3609b8(0x205)])(f['Button'],{'type':'button','variant':_0x3609b8(0x43c),'className':'univer-w-full','onClick':_0x29c4ed,'children':_0x338e83['t'](_0x3609b8(0x144))})]});}function Bt({disabled:_0x29e926,field:_0x657cb3,onChange:_0x24fee1,value:_0x4c299e}){const _0x51c91c=_0xf14a5a;let _0x1747d2=(0x0,m[_0x51c91c(0x491)])(a[_0x51c91c(0x207)]),[_0x90fe6b,_0x13cc80]=(0x0,h[_0x51c91c(0x2b8)])({'value':_0x4c299e,'text':String(_0x4c299e??'')});Object['is'](_0x90fe6b['value'],_0x4c299e)||_0x13cc80({'value':_0x4c299e,'text':String(_0x4c299e??'')});let _0xe0611d=_0x90fe6b[_0x51c91c(0x43c)],_0x778bb2=_0x233c45=>_0x13cc80({'value':_0x4c299e,'text':_0x233c45}),_0xb64188=_0x657cb3==null?void 0x0:_0x657cb3[_0x51c91c(0xf6)];if(_0xb64188===a['BaseFieldType'][_0x51c91c(0x1e8)]){let _0x300954=_0x4c299e===!0x0||_0x4c299e===_0x51c91c(0x109);return(0x0,g[_0x51c91c(0x23b)])(f[_0x51c91c(0x134)],{'type':_0x51c91c(0x347),'variant':_0x51c91c(0x24c),'disabled':_0x29e926,'className':_0x51c91c(0x35a),'onClick':()=>_0x24fee1(!_0x300954),'children':[(0x0,g[_0x51c91c(0x205)])(f['Checkbox'],{'checked':_0x300954,'disabled':_0x29e926,'onChange':()=>void 0x0}),_0x300954?_0x1747d2['t'](_0x51c91c(0x241)):_0x1747d2['t'](_0x51c91c(0x217))]});}return Xt(_0xb64188)?_0x29e926?(0x0,g[_0x51c91c(0x205)])(f[_0x51c91c(0x134)],{'type':_0x51c91c(0x347),'variant':_0x51c91c(0x24c),'className':_0x51c91c(0x335),'disabled':!0x0,'children':(0x0,a['dateKit'])(_0x4c299e==null||_0x4c299e===''?void 0x0:String(_0x4c299e))[_0x51c91c(0x195)]('YYYY-MM-DD')}):(0x0,g[_0x51c91c(0x205)])(f[_0x51c91c(0x1a7)],{'className':'univer-w-full','value':(0x0,a[_0x51c91c(0x3ce)])(_0x4c299e==null||_0x4c299e===''?void 0x0:String(_0x4c299e))[_0x51c91c(0x2a4)](),'onValueChange':_0x57f01e=>_0x24fee1((0x0,a[_0x51c91c(0x3ce)])(_0x57f01e)[_0x51c91c(0x195)](_0x51c91c(0x2fe)))}):Qt(_0x657cb3)?(0x0,g[_0x51c91c(0x205)])(f[_0x51c91c(0x1f2)],{'className':'univer-w-full','disabled':_0x29e926,'value':Array[_0x51c91c(0x338)](_0x4c299e)?_0x4c299e['map'](String):[],'options':qt(_0x657cb3),'onChange':_0x24fee1}):_0xb64188===a[_0x51c91c(0x10f)][_0x51c91c(0x15a)]||_0xb64188===a[_0x51c91c(0x10f)][_0x51c91c(0x253)]||_0xb64188===a[_0x51c91c(0x10f)][_0x51c91c(0x1ea)]?(0x0,g[_0x51c91c(0x205)])(f[_0x51c91c(0x278)],{'className':'univer-w-full','disabled':_0x29e926,'value':String(_0x4c299e??''),'options':[{'value':'','label':_0x1747d2['t']('bases-dashboard-ui.dashboardInspector.selectOption')},...qt(_0x657cb3)],'onChange':_0x24fee1}):Zt(_0xb64188)?(0x0,g[_0x51c91c(0x205)])(f['Input'],{'className':_0x51c91c(0x335),'disabled':_0x29e926,'inputMode':_0x51c91c(0x266),'value':_0xe0611d,'aria-invalid':_0xe0611d!==''&&!Number[_0x51c91c(0x2fc)](Number(_0xe0611d)),'onChange':_0x1546c3=>{const _0x3f7aa0=_0x51c91c;_0x778bb2(_0x1546c3),_0x1546c3===''?_0x24fee1(''):Number[_0x3f7aa0(0x2fc)](Number(_0x1546c3))&&_0x24fee1(Number(_0x1546c3));},'onBlur':()=>_0x778bb2(String(_0x4c299e??''))}):(0x0,g[_0x51c91c(0x205)])(f['Input'],{'disabled':_0x29e926,'value':String(_0x4c299e??''),'placeholder':_0x1747d2['t'](_0x51c91c(0x28a)),'onChange':_0x24fee1});}function Vt(_0x427357,_0x53ce53){const _0xc6c1df=_0xf14a5a;return{'conjunction':(_0x427357==null?void 0x0:_0x427357[_0xc6c1df(0x3e2)])??a['BaseFilterConjunction'][_0xc6c1df(0x410)],'conditions':_0x53ce53};}function Ht(_0x19c6d0,_0x5999f8){return Kt(_0x5999f8)?{'fieldId':_0x19c6d0['id'],'operator':_0x5999f8,'operand':Gt(_0x19c6d0)}:{'fieldId':_0x19c6d0['id'],'operator':_0x5999f8};}function Ut(_0x32b7b2,_0x324c83,_0x293542){return Vt(_0x32b7b2,((_0x32b7b2==null?void 0x0:_0x32b7b2['conditions'])??[])['map']((_0x539d60,_0x392e1a)=>_0x392e1a===_0x324c83?{..._0x539d60,..._0x293542}:_0x539d60));}function Wt(_0x25b1a7){const _0x1794a3=_0xf14a5a;let _0x287eca=[a[_0x1794a3(0x1a2)][_0x1794a3(0x233)],a['BaseFilterOperator']['IS_NOT_EMPTY']];switch(_0x25b1a7==null?void 0x0:_0x25b1a7[_0x1794a3(0xf6)]){case a[_0x1794a3(0x10f)][_0x1794a3(0x15f)]:case a['BaseFieldType'][_0x1794a3(0x116)]:case a['BaseFieldType']['Progress']:case a[_0x1794a3(0x10f)]['Rating']:return[a[_0x1794a3(0x1a2)]['IS'],a[_0x1794a3(0x1a2)][_0x1794a3(0x18e)],a[_0x1794a3(0x1a2)]['GREATER_THAN'],a[_0x1794a3(0x1a2)]['LESS_THAN'],..._0x287eca];case a[_0x1794a3(0x10f)]['Date']:case a[_0x1794a3(0x10f)][_0x1794a3(0xfb)]:case a[_0x1794a3(0x10f)]['UpdatedAt']:return[a[_0x1794a3(0x1a2)]['IS'],a[_0x1794a3(0x1a2)]['IS_NOT'],a[_0x1794a3(0x1a2)][_0x1794a3(0x22c)],a[_0x1794a3(0x1a2)]['AFTER'],..._0x287eca];case a['BaseFieldType'][_0x1794a3(0x1e8)]:return[a[_0x1794a3(0x1a2)]['IS'],a[_0x1794a3(0x1a2)][_0x1794a3(0x18e)]];default:return[a['BaseFilterOperator']['IS'],a[_0x1794a3(0x1a2)][_0x1794a3(0x18e)],a['BaseFilterOperator'][_0x1794a3(0x2df)],a['BaseFilterOperator'][_0x1794a3(0x100)],..._0x287eca];}}function Gt(_0x5d7e22){const _0x53abb8=_0xf14a5a;return _0x5d7e22?_0x5d7e22[_0x53abb8(0xf6)]===a[_0x53abb8(0x10f)][_0x53abb8(0x1e8)]?!0x1:Xt(_0x5d7e22[_0x53abb8(0xf6)])?(0x0,a[_0x53abb8(0x3ce)])()[_0x53abb8(0x195)]('YYYY-MM-DD'):Qt(_0x5d7e22)?[]:'':'';}function Kt(_0x37f6b9){const _0x35af1a=_0xf14a5a;return _0x37f6b9!==a['BaseFilterOperator'][_0x35af1a(0x233)]&&_0x37f6b9!==a[_0x35af1a(0x1a2)][_0x35af1a(0x481)];}function qt(_0x50f2a2){const _0x5cfe86=_0xf14a5a;var _0x196492;return(Array['isArray'](_0x50f2a2==null||(_0x196492=_0x50f2a2[_0x5cfe86(0x34a)])==null?void 0x0:_0x196492['options'])?_0x50f2a2['config']['options']:[])['map']((_0x3a088d,_0x13b354)=>{const _0x35e35c=_0x5cfe86;if(typeof _0x3a088d==_0x35e35c(0x4be))return{'label':_0x3a088d,'value':_0x3a088d};if(!Jt(_0x3a088d))return{'label':String(_0x13b354+0x1),'value':String(_0x13b354+0x1)};let _0x495317=_0x3a088d,_0x2c95bf=String(_0x495317[_0x35e35c(0x1dc)]??_0x495317['id']??_0x13b354+0x1),_0x4c1c82=String(_0x495317['id']??_0x2c95bf);return{'label':_0x2c95bf,'value':/^opt-\d+$/['test'](_0x4c1c82)?_0x2c95bf:_0x4c1c82};});}function Jt(_0x171f90){return typeof _0x171f90=='object'&&!!_0x171f90;}function Yt(_0xfef1cf,_0x5a2469,_0x534722){const _0x427039=_0xf14a5a;let _0x4bc3fa=JSON['stringify'](_0x5a2469);return _0x4bc3fa+'-'+_0xfef1cf['slice'](0x0,_0x534722)[_0x427039(0x4a5)](_0x29ceff=>JSON[_0x427039(0x2a9)](_0x29ceff)===_0x4bc3fa)[_0x427039(0x215)];}function Xt(_0x329df6){const _0x28271e=_0xf14a5a;return _0x329df6===a[_0x28271e(0x10f)][_0x28271e(0x214)]||_0x329df6===a[_0x28271e(0x10f)][_0x28271e(0xfb)]||_0x329df6===a['BaseFieldType'][_0x28271e(0x32e)];}function Zt(_0x26533d){const _0x3acd04=_0xf14a5a;return _0x26533d===a[_0x3acd04(0x10f)][_0x3acd04(0x15f)]||_0x26533d===a[_0x3acd04(0x10f)]['Currency']||_0x26533d===a['BaseFieldType'][_0x3acd04(0x3cd)]||_0x26533d===a[_0x3acd04(0x10f)][_0x3acd04(0xc9)];}function Qt(_0x289576){const _0x516399=_0xf14a5a;var _0x5251a8;return(_0x289576==null?void 0x0:_0x289576[_0x516399(0xf6)])===a[_0x516399(0x10f)][_0x516399(0x26a)]||(_0x289576==null?void 0x0:_0x289576[_0x516399(0xf6)])===a[_0x516399(0x10f)][_0x516399(0x253)]||(_0x289576==null?void 0x0:_0x289576[_0x516399(0xf6)])===a['BaseFieldType'][_0x516399(0x1ea)]&&((_0x5251a8=_0x289576[_0x516399(0x34a)])==null?void 0x0:_0x5251a8[_0x516399(0x18d)])===!0x0;}function $t({base:_0x40b705,chartRuntime:_0x35f94f,onChange:_0x1f46e7,onClose:_0x459fe0,onSelectBackgroundImage:_0x36b3f7,onSelectImage:_0x42fd44,unitId:_0x315995,widget:_0x4fb598}){const _0x447842=_0xf14a5a;let _0x31f6c5=(0x0,m[_0x447842(0x491)])(a[_0x447842(0x17e)]),_0x2e6d88=(0x0,m[_0x447842(0x491)])(a['LocaleService']),_0x1ddb92=_0x40b705[_0x447842(0x164)](),_0x131f2a=_0x447842(0x372)in _0x4fb598?_0x1ddb92[_0x447842(0x419)][_0x4fb598[_0x447842(0x372)]]:void 0x0,_0x3416f0=_0x4fb598[_0x447842(0xf6)]===e[_0x447842(0x294)]['PivotChart']?_0x131f2a==null?void 0x0:_0x131f2a[_0x447842(0x34d)][_0x4fb598['pivotViewId']]:void 0x0,_0x15d588=_0x2e6d88['t'](sn(_0x4fb598));return(0x0,g[_0x447842(0x23b)])(_0x447842(0x2eb),{'data-dashboard-inspector':!0x0,'className':_0x447842(0x10c),'children':[(0x0,g['jsxs'])('header',{'className':_0x447842(0x4d5),'children':[(0x0,g[_0x447842(0x205)])('h3',{'className':_0x447842(0x2c6),'children':_0x15d588}),(0x0,g[_0x447842(0x205)])(f['Button'],{'type':_0x447842(0x347),'size':_0x447842(0x4d6),'variant':_0x447842(0x43c),'aria-label':_0x2e6d88['t'](_0x447842(0x359)),'onClick':_0x459fe0,'children':(0x0,g[_0x447842(0x205)])(s['CloseIcon'],{})})]}),_0x4fb598[_0x447842(0xf6)]===e[_0x447842(0x294)][_0x447842(0x460)]&&(on(_0x3416f0)&&_0x35f94f?(0x0,g[_0x447842(0x205)])(Nt,{'runtime':_0x35f94f,'sourceChart':_0x3416f0['config'][_0x447842(0x3a9)],'sourceName':((_0x131f2a==null?void 0x0:_0x131f2a[_0x447842(0x1dc)])??'')+'\x20/\x20'+_0x3416f0[_0x447842(0x1dc)],'widget':_0x4fb598,'onChange':_0x1f46e7,'onEditData':()=>{const _0x4086e1=_0x447842;_0x31f6c5[_0x4086e1(0x4d7)](t[_0x4086e1(0x4b7)]['id'],{'unitId':_0x315995,'tableId':_0x4fb598[_0x4086e1(0x372)],'viewId':_0x4fb598['pivotViewId']})[_0x4086e1(0xc0)](()=>void 0x0);}}):(0x0,g[_0x447842(0x205)])(rn,{'message':on(_0x3416f0)?_0x2e6d88['t']('bases-dashboard-ui.dashboardInspector.loading'):_0x2e6d88['t'](_0x447842(0x143))})),_0x4fb598[_0x447842(0xf6)]===e['BaseDashboardWidgetType'][_0x447842(0x2ac)]&&(0x0,g[_0x447842(0x205)])(It,{'base':_0x40b705,'widget':_0x4fb598,'onChange':_0x1f46e7,'onSelectBackgroundImage':_0x36b3f7}),_0x4fb598['type']===e['BaseDashboardWidgetType']['TableFilter']&&(0x0,g[_0x447842(0x205)])(tn,{'base':_0x40b705,'onChange':_0x1f46e7,'widget':_0x4fb598}),_0x4fb598[_0x447842(0xf6)]===e[_0x447842(0x294)][_0x447842(0x1cf)]&&(0x0,g[_0x447842(0x205)])(nn,{'onChange':_0x1f46e7,'widget':_0x4fb598}),_0x4fb598[_0x447842(0xf6)]===e[_0x447842(0x294)]['Image']&&(0x0,g['jsx'])(en,{'onChange':_0x1f46e7,'onSelectImage':_0x42fd44,'widget':_0x4fb598})]});}function en({onChange:_0x2c7bf2,onSelectImage:_0x37fb5a,widget:_0x158352}){const _0x17443e=_0xf14a5a;let _0x2ac26b=(0x0,m['useDependency'])(a[_0x17443e(0x207)]);return(0x0,g['jsxs'])(_0x17443e(0x331),{'className':_0x17443e(0x386),'children':[(0x0,g[_0x17443e(0x23b)])(f[_0x17443e(0x134)],{'className':_0x17443e(0x335),'onClick':()=>_0x37fb5a()['then'](_0x45850a=>_0x45850a&&_0x2c7bf2({..._0x158352,'source':_0x45850a[_0x17443e(0x465)],'sourceType':_0x45850a['sourceType'],'alt':_0x45850a['name']}))[_0x17443e(0xc0)](()=>void 0x0),'children':[(0x0,g['jsx'])(s['IncreaseIcon'],{}),_0x2ac26b['t'](_0x17443e(0xfd))]}),(0x0,g[_0x17443e(0x23b)])(_0x17443e(0x34b),{'className':'univer-grid\x20univer-gap-2\x20univer-text-sm\x20univer-font-medium\x20univer-text-gray-700\x20dark:!univer-text-gray-200','children':[(0x0,g[_0x17443e(0x205)])('span',{'children':_0x2ac26b['t'](_0x17443e(0x37a))}),(0x0,g[_0x17443e(0x205)])(f[_0x17443e(0x27c)],{'items':[{'value':_0x17443e(0x313),'label':_0x2ac26b['t'](_0x17443e(0x1b7))},{'value':_0x17443e(0x264),'label':_0x2ac26b['t'](_0x17443e(0x3f7))},{'value':_0x17443e(0x11f),'label':_0x2ac26b['t'](_0x17443e(0x381))}],'value':_0x158352[_0x17443e(0x384)]??'cover','onChange':_0x4511b7=>_0x2c7bf2({..._0x158352,'displayMode':_0x4511b7})[_0x17443e(0xc0)](()=>void 0x0)})]})]});}function tn({base:_0x142648,onChange:_0x546beb,widget:_0x43bdc8}){const _0x11c18b=_0xf14a5a;let _0x19b46a=_0x142648['getSnapshot']()[_0x11c18b(0x419)][_0x43bdc8[_0x11c18b(0x372)]],_0x155a1c=_0x19b46a==null?void 0x0:_0x19b46a['viewOrder'][_0x11c18b(0x396)](_0x553229=>_0x19b46a[_0x11c18b(0x34d)][_0x553229]),_0x576953=_0x155a1c?_0x19b46a==null?void 0x0:_0x19b46a[_0x11c18b(0x34d)][_0x155a1c]:void 0x0,_0x585e2d=_0x19b46a&&_0x576953?(0x0,t[_0x11c18b(0x29f)])(_0x19b46a,_0x576953):[];return(0x0,g['jsx'])(zt,{'fields':_0x585e2d,'filter':_0x43bdc8[_0x11c18b(0x4a5)],'onChange':_0x144283=>_0x546beb({..._0x43bdc8,'filter':_0x144283})[_0x11c18b(0xc0)](()=>void 0x0),'onClear':()=>_0x546beb({..._0x43bdc8,'filter':null})['catch'](()=>void 0x0)});}function nn({onChange:_0x25774b,widget:_0x3225c6}){const _0x4a3da7=_0xf14a5a;let _0x3e20d7=(0x0,m['useDependency'])(a['LocaleService']),_0x3dbafb=(0x0,m[_0x4a3da7(0x491)])(a[_0x4a3da7(0xe4)]),_0x32d5a6=(0x0,m['useObservable'])(()=>_0x3dbafb[_0x4a3da7(0x321)],_0x3dbafb[_0x4a3da7(0x16c)](),!0x1,[_0x3dbafb]),_0x230a44=oe(_0x3225c6),_0x308118=_0x5afe8a=>_0x25774b({..._0x3225c6,'appearance':{..._0x230a44,..._0x5afe8a}})[_0x4a3da7(0xc0)](()=>void 0x0);return(0x0,g[_0x4a3da7(0x23b)])(_0x4a3da7(0x331),{'className':'univer-grid\x20univer-gap-4\x20univer-overflow-y-auto\x20univer-p-4','children':[(0x0,g['jsx'])(f[_0x4a3da7(0x415)],{'defaultValue':U(_0x3225c6[_0x4a3da7(0x4b4)]),'rows':0x8,'onBlur':_0xaf3083=>_0x25774b({..._0x3225c6,'document':se(_0x3225c6[_0x4a3da7(0x4b4)],_0xaf3083[_0x4a3da7(0x135)]['value'])})[_0x4a3da7(0xc0)](()=>void 0x0)}),(0x0,g[_0x4a3da7(0x205)])(n[_0x4a3da7(0x21c)],{'emptyLabel':_0x3e20d7['t'](_0x4a3da7(0x291)),'label':_0x3e20d7['t'](_0x4a3da7(0x291)),'pickerFallbackValue':_0x32d5a6['gray'][0x0],'resetLabel':_0x3e20d7['t'](_0x4a3da7(0x43b)),'value':_0x230a44['backgroundColor']??null,'onChange':_0x3b0e05=>_0x308118({'backgroundColor':_0x3b0e05??void 0x0})}),(0x0,g[_0x4a3da7(0x205)])(n[_0x4a3da7(0x21c)],{'emptyLabel':_0x3e20d7['t'](_0x4a3da7(0x1db)),'label':_0x3e20d7['t']('bases-dashboard-ui.dashboardInspector.textColor'),'pickerFallbackValue':_0x32d5a6[_0x4a3da7(0x287)][0x3e8],'resetLabel':_0x3e20d7['t'](_0x4a3da7(0x43b)),'value':_0x230a44['textColor']??null,'onChange':_0x322cc7=>_0x308118({'textColor':_0x322cc7??void 0x0})}),(0x0,g[_0x4a3da7(0x205)])(an,{'label':_0x3e20d7['t'](_0x4a3da7(0x158)),'children':(0x0,g[_0x4a3da7(0x205)])(f[_0x4a3da7(0x27c)],{'items':[{'value':'left','label':_0x3e20d7['t'](_0x4a3da7(0x430))},{'value':_0x4a3da7(0x104),'label':_0x3e20d7['t']('bases-dashboard-ui.dashboardInspector.center')},{'value':'right','label':_0x3e20d7['t'](_0x4a3da7(0x43a))}],'value':_0x230a44['alignment'],'onChange':_0x5f053c=>_0x308118({'alignment':_0x5f053c})})}),(0x0,g[_0x4a3da7(0x23b)])(an,{'label':_0x3e20d7['t'](_0x4a3da7(0x1c6)),'children':[(0x0,g['jsx'])(f['Segmented'],{'items':[{'value':'auto','label':_0x3e20d7['t'](_0x4a3da7(0x1df))},{'value':_0x4a3da7(0x121),'label':_0x3e20d7['t'](_0x4a3da7(0xd0))}],'value':_0x230a44[_0x4a3da7(0x3d7)],'onChange':_0x1d3c4b=>_0x308118({'fontSizeMode':_0x1d3c4b})}),_0x230a44[_0x4a3da7(0x3d7)]===_0x4a3da7(0x121)&&(0x0,g[_0x4a3da7(0x205)])(f[_0x4a3da7(0x43e)],{'className':_0x4a3da7(0x37c),'min':0xa,'max':0x78,'value':_0x230a44[_0x4a3da7(0x2c9)],'onChange':_0x592a49=>_0x308118({'fontSize':_0x592a49??0x12,'fontSizeMode':_0x4a3da7(0x121)})})]})]});}function rn({message:_0x25542d}){const _0x15401c=_0xf14a5a;return(0x0,g[_0x15401c(0x205)])('div',{'className':'univer-grid\x20univer-min-h-40\x20univer-place-items-center\x20univer-p-4\x20univer-text-sm\x20univer-text-gray-500','children':_0x25542d});}function an({children:_0x1f5a8d,label:_0x2c4e79}){const _0x4530e1=_0xf14a5a;return(0x0,g[_0x4530e1(0x23b)])(_0x4530e1(0x331),{'role':_0x4530e1(0x325),'aria-':!0x0,'className':_0x4530e1(0xe3),'children':[(0x0,g['jsx'])(_0x4530e1(0x49b),{'children':_0x2c4e79}),_0x1f5a8d]});}function on(_0x30a0b7){const _0x1df3ce=_0xf14a5a;return(_0x30a0b7==null?void 0x0:_0x30a0b7[_0x1df3ce(0xf6)])===a[_0x1df3ce(0x40a)]['Pivot']&&typeof _0x30a0b7[_0x1df3ce(0x34a)]==_0x1df3ce(0x2f5)&&_0x30a0b7['config']!==null&&_0x1df3ce(0x2f1)in _0x30a0b7[_0x1df3ce(0x34a)]&&_0x1df3ce(0x3a9)in _0x30a0b7[_0x1df3ce(0x34a)];}function sn(_0x408caf){const _0xf22bf8=_0xf14a5a;switch(_0x408caf[_0xf22bf8(0xf6)]){case e[_0xf22bf8(0x294)][_0xf22bf8(0x460)]:return'bases-dashboard-ui.dashboard.pivotChart';case e[_0xf22bf8(0x294)][_0xf22bf8(0xc7)]:return _0xf22bf8(0x389);case e[_0xf22bf8(0x294)][_0xf22bf8(0x1cf)]:return _0xf22bf8(0x31a);case e[_0xf22bf8(0x294)]['Image']:return _0xf22bf8(0x305);case e['BaseDashboardWidgetType'][_0xf22bf8(0x2ac)]:return _0xf22bf8(0x322);}}function cn({onDelete:_0x3711fb,onEdit:_0x441dbb}){const _0x453833=_0xf14a5a;let _0x30d917=(0x0,m['useDependency'])(a['LocaleService']),_0xaa3f6f=_0x30d917['t'](_0x453833(0x1a4)),_0x27e6ac=_0x30d917['t'](_0x453833(0x273)),_0x2aab6b=_0x30d917['t']('bases-dashboard-ui.dashboard.widgetActions');return(0x0,g[_0x453833(0x205)])(f['DropdownMenu'],{'items':[{'type':_0x453833(0x392),'children':(0x0,g[_0x453833(0x23b)])(_0x453833(0x49b),{'className':_0x453833(0x378),'children':[(0x0,g[_0x453833(0x205)])(s[_0x453833(0x36f)],{'className':_0x453833(0x286),'aria-hidden':_0x453833(0x109)}),(0x0,g[_0x453833(0x205)])(_0x453833(0x49b),{'children':_0xaa3f6f})]}),'onSelect':_0x441dbb},{'type':_0x453833(0x1e9)},{'type':_0x453833(0x392),'variant':'destructive','children':(0x0,g[_0x453833(0x23b)])(_0x453833(0x49b),{'className':_0x453833(0x378),'children':[(0x0,g[_0x453833(0x205)])(s[_0x453833(0x1e1)],{'className':'univer-size-4','aria-hidden':_0x453833(0x109)}),(0x0,g[_0x453833(0x205)])(_0x453833(0x49b),{'children':_0x27e6ac})]}),'onSelect':_0x3711fb}],'children':(0x0,g[_0x453833(0x205)])(f[_0x453833(0x134)],{'type':_0x453833(0x347),'size':'small','variant':_0x453833(0x43c),'title':_0x2aab6b,'aria-label':_0x2aab6b,'className':'univer-size-6\x20!univer-border\x20!univer-border-solid\x20!univer-border-gray-200\x20!univer-bg-gray-0\x20univer-p-0\x20!univer-shadow-none\x20hover:!univer-bg-gray-100\x20dark:!univer-border-gray-700\x20dark:!univer-bg-gray-900\x20dark:hover:!univer-bg-gray-800','children':(0x0,g[_0x453833(0x205)])(s[_0x453833(0x46f)],{'className':_0x453833(0x286),'aria-hidden':_0x453833(0x109)})})});}function ln({dashboardId:_0x233189,presentation:_0x496888=!0x1,unitId:_0x3b4e31}){const _0x4baf28=_0xf14a5a;let _0x47f842=(0x0,m['useDependency'])(a['ICommandService']),_0x230ea4=(0x0,m['useDependency'])(u[_0x4baf28(0x4c9)]),_0x98039d=(0x0,m[_0x4baf28(0x491)])(a[_0x4baf28(0x39f)]),_0x169977=(0x0,m[_0x4baf28(0x491)])(a[_0x4baf28(0x323)]),_0x124c66=(0x0,m['useDependency'])(a['LocaleService']),_0x3e4ee1=(0x0,m[_0x4baf28(0x491)])(e[_0x4baf28(0x28d)]),_0x2f57df=(0x0,m[_0x4baf28(0x491)])(a[_0x4baf28(0x25f)]),_0x1561ff=(0x0,h[_0x4baf28(0x45b)])(null),[_0x5cc70d,_0x1ada82]=(0x0,h[_0x4baf28(0x2b8)])(!0x1),[_0x484e4e,_0x12a245]=(0x0,h[_0x4baf28(0x2b8)])(),[_0x6ff655,_0xd12678]=(0x0,h[_0x4baf28(0x2b8)])(!0x1),[_0x34fc7d,_0x4f8372]=(0x0,h[_0x4baf28(0x2b8)])(()=>new Map()),_0x56781c=(0x0,h[_0x4baf28(0x38c)])((_0x2253fc,_0x3f9fb8)=>{_0x4f8372(_0x269da9=>{const _0x2a0bfb=_0x479a;let _0x34f6e7=new Map(_0x269da9);return _0x3f9fb8?_0x34f6e7[_0x2a0bfb(0x4c2)](_0x2253fc,_0x3f9fb8):_0x34f6e7['delete'](_0x2253fc),_0x34f6e7;});},[]),_0xf3eaf1=(0x0,m['useObservable'])(()=>_0x3e4ee1[_0x4baf28(0xfe)][_0x4baf28(0x2f4)]((0x0,c['map'])(()=>_0x3e4ee1[_0x4baf28(0x41d)](_0x3b4e31,_0x233189))),_0x3e4ee1[_0x4baf28(0x41d)](_0x3b4e31,_0x233189),!0x1,[_0x233189,_0x3e4ee1,_0x3b4e31]),_0x565ca9=_0x169977['getUnit'](_0x3b4e31,a[_0x4baf28(0x4cd)][_0x4baf28(0x31e)]),_0x426b77=(0x0,m['useObservable'])(()=>_0x2f57df[_0x4baf28(0x336)],{'undos':0x0,'redos':0x0},!0x1,[_0x2f57df]),_0x359e72=w(_0x3b4e31,_0x233189);if((0x0,h[_0x4baf28(0x48c)])(()=>{const _0x350d74=_0x4baf28;_0x169977[_0x350d74(0x10d)](_0x3b4e31),_0x169977[_0x350d74(0xd1)](_0x3b4e31);},[_0x169977,_0x3b4e31]),(0x0,h[_0x4baf28(0x48c)])(()=>{const _0x282271=_0x4baf28;let _0x55d92b=_0x1561ff[_0x282271(0x1fa)],_0x446cde=_0x55d92b==null?void 0x0:_0x55d92b[_0x282271(0x152)];if(!_0x55d92b||!_0x446cde)return;let _0x32551b=()=>_0xd12678(_0x446cde[_0x282271(0x12a)]===_0x446cde[_0x282271(0x39c)]),_0xf62073=_0x29281a=>{const _0x353f2b=_0x282271;_0x29281a[_0x353f2b(0x1a9)]==='Escape'&&!_0x29281a[_0x353f2b(0x42e)]&&_0x446cde['fullscreenElement']===_0x446cde[_0x353f2b(0x39c)]&&_0x446cde[_0x353f2b(0x283)]()[_0x353f2b(0xc0)](_0x32551b);};return _0x446cde[_0x282271(0x14a)](_0x282271(0x42d),_0x32551b),_0x446cde[_0x282271(0x14a)](_0x282271(0xed),_0xf62073),()=>{const _0xfc374e=_0x282271;_0x446cde[_0xfc374e(0x1e2)](_0xfc374e(0x42d),_0x32551b),_0x446cde[_0xfc374e(0x1e2)]('keydown',_0xf62073);};},[]),!_0xf3eaf1||!_0x565ca9)return null;let _0x139cc9=_0x39e3dc=>_0x47f842[_0x4baf28(0x4d7)](e[_0x4baf28(0xcb)]['id'],{'unitId':_0x3b4e31,'dashboardId':_0x233189,'widget':_0x39e3dc})[_0x4baf28(0xc0)](()=>void 0x0),_0x380bd1=(_0x943a67,_0x1c094f,_0x28581e)=>{const _0x277d1c=_0x4baf28;let _0x2b0c90=Math['max'](0x0,..._0xf3eaf1[_0x277d1c(0x399)][_0x277d1c(0x3fa)](_0x353c28=>{const _0x2e73e9=_0x277d1c;var _0x60c334;let _0x4641c6=(_0x60c334=_0xf3eaf1[_0x2e73e9(0x22d)][_0x353c28])==null?void 0x0:_0x60c334[_0x2e73e9(0xf0)];return _0x4641c6?[_0x4641c6[_0x2e73e9(0x210)]+_0x4641c6[_0x2e73e9(0x442)]]:[];})),_0x2d311d=_0x277d1c(0x34f)+(0x0,a['generateRandomId'])(0x8),_0x1aba47={'column':0x0,'row':_0x2b0c90,'columnSpan':_0x1c094f,'rowSpan':_0x28581e};switch(_0x943a67[_0x277d1c(0xf6)]){case e[_0x277d1c(0x294)][_0x277d1c(0x460)]:return _0x139cc9({..._0x943a67,'id':_0x2d311d,'layout':_0x1aba47});case e[_0x277d1c(0x294)][_0x277d1c(0xc7)]:return _0x139cc9({..._0x943a67,'id':_0x2d311d,'layout':_0x1aba47});case e['BaseDashboardWidgetType'][_0x277d1c(0x1cf)]:return _0x139cc9({..._0x943a67,'id':_0x2d311d,'layout':_0x1aba47});case e[_0x277d1c(0x294)][_0x277d1c(0x3a3)]:return _0x139cc9({..._0x943a67,'id':_0x2d311d,'layout':_0x1aba47});case e['BaseDashboardWidgetType'][_0x277d1c(0x2ac)]:return _0x139cc9({..._0x943a67,'id':_0x2d311d,'layout':_0x1aba47});}},_0xe87bd1=_0x565ca9[_0x4baf28(0x164)](),_0x20030a=_0xe87bd1[_0x4baf28(0x24b)][_0x4baf28(0x3fa)](_0x3be876=>{const _0x360d54=_0x4baf28;let _0x3222f9=_0xe87bd1['tables'][_0x3be876];if(!_0x3222f9)return[];let _0x1e0009=_0x3222f9[_0x360d54(0x383)]['flatMap'](_0x5d206b=>{const _0x136b8c=_0x360d54;let _0x1aeda1=_0x3222f9[_0x136b8c(0x34d)][_0x5d206b];return _n(_0x1aeda1)?[{'type':_0x136b8c(0x392),'children':_0x1aeda1[_0x136b8c(0x1dc)],'onSelect':()=>_0x380bd1({'type':e[_0x136b8c(0x294)][_0x136b8c(0x460)],'tableId':_0x3be876,'pivotViewId':_0x5d206b,'chart':{..._0x1aeda1['config'][_0x136b8c(0x3a9)]}},0x6,0xa)}]:[];});return[{'type':'subItem','children':_0x3222f9[_0x360d54(0x1dc)],'options':[..._0x1e0009,..._0x1e0009['length']?[{'type':_0x360d54(0x1e9)}]:[],{'type':_0x360d54(0x392),'children':_0x124c66['t'](_0x360d54(0x389)),'onSelect':()=>_0x380bd1({'type':e['BaseDashboardWidgetType']['TableFilter'],'tableId':_0x3be876,'filter':null},0x6,0x8)}]}];}),_0x221ed9=[..._0x20030a,..._0x20030a[_0x4baf28(0x215)]?[{'type':'separator'}]:[],{'type':_0x4baf28(0x392),'children':_0x124c66['t'](_0x4baf28(0x31a)),'onSelect':()=>_0x380bd1({'type':e[_0x4baf28(0x294)][_0x4baf28(0x1cf)],'document':pn()},0x4,0x6)},{'type':'item','children':_0x124c66['t'](_0x4baf28(0x305)),'onSelect':()=>mn(_0x230ea4)[_0x4baf28(0x173)](_0x148a32=>_0x148a32&&_0x380bd1({'type':e['BaseDashboardWidgetType'][_0x4baf28(0x3a3)],'source':_0x148a32[_0x4baf28(0x465)],'sourceType':_0x148a32[_0x4baf28(0x367)],'alt':_0x148a32[_0x4baf28(0x1dc)],'displayMode':_0x4baf28(0x313)},0x4,0x6))},{'type':_0x4baf28(0x392),'children':_0x124c66['t'](_0x4baf28(0x322)),'onSelect':()=>{const _0x279596=_0x4baf28;let _0x4cded2=_0xe87bd1['tableOrder'][_0x279596(0x396)](_0x38d86b=>_0xe87bd1[_0x279596(0x419)][_0x38d86b]);_0x4cded2&&_0x380bd1({'type':e['BaseDashboardWidgetType'][_0x279596(0x2ac)],'tableId':_0x4cded2,'shapeType':d[_0x279596(0x156)][_0x279596(0xc5)],'shapeData':(0x0,i[_0x279596(0x1ce)])(),'description':_0x124c66['t'](_0x279596(0x322))},0x4,0x6);}}],_0x3c3cd3=_0x484e4e?_0xf3eaf1['widgets'][_0x484e4e]:void 0x0,_0x19baa4=async()=>{const _0x4f7aea=_0x4baf28;let _0x50b09b=_0x1561ff[_0x4f7aea(0x1fa)];if(!_0x50b09b)return;let _0x8ddf70=_0x50b09b['ownerDocument'];_0x8ddf70['fullscreenElement']===_0x8ddf70[_0x4f7aea(0x39c)]?await _0x8ddf70[_0x4f7aea(0x283)]():await _0x8ddf70['documentElement'][_0x4f7aea(0x44c)]();},_0x14da19=_0x496888||_0x6ff655,_0x45b040=_0x359e72&&!_0x14da19;return(0x0,g['jsxs'])('div',{'ref':_0x1561ff,'className':_0x4baf28(0x314)+(_0x6ff655?_0x4baf28(0x27b):_0x4baf28(0x3d5))+_0x4baf28(0x250),'children':[!_0x14da19&&(0x0,g['jsxs'])(_0x4baf28(0x343),{'className':_0x4baf28(0x49c),'children':[(0x0,g[_0x4baf28(0x205)])(s[_0x4baf28(0x4c7)],{'className':_0x4baf28(0x2be)}),(0x0,g['jsx'])('h2',{'className':_0x4baf28(0x2c6),'children':_0xf3eaf1[_0x4baf28(0x1dc)]}),(0x0,g[_0x4baf28(0x205)])(m[_0x4baf28(0x187)],{'target':{'unitId':_0x3b4e31,'objectId':(0x0,l[_0x4baf28(0x2c8)])(_0x233189),'objectType':p['UnitObject'][_0x4baf28(0xd5)]},'name':_0xf3eaf1['name'],'commandId':l['SetBasePermissionCommand']['id'],'exists':()=>!!_0x3e4ee1[_0x4baf28(0x41d)](_0x3b4e31,_0x233189)},_0x3b4e31+'/'+_0x233189),(0x0,g['jsx'])(t[_0x4baf28(0x461)],{'unitId':_0x3b4e31}),(0x0,g[_0x4baf28(0x205)])(f[_0x4baf28(0x134)],{'type':_0x4baf28(0x347),'size':_0x4baf28(0x4d6),'variant':_0x4baf28(0x43c),'aria-label':_0x124c66['t'](_0x4baf28(0x20e)),'disabled':!_0x359e72||_0x426b77[_0x4baf28(0x24d)]===0x0,'onClick':()=>_0x47f842[_0x4baf28(0x4d7)](a[_0x4baf28(0x16f)]['id'])[_0x4baf28(0xc0)](()=>void 0x0),'children':(0x0,g[_0x4baf28(0x205)])(s[_0x4baf28(0x1d6)],{})}),(0x0,g[_0x4baf28(0x205)])(f[_0x4baf28(0x134)],{'type':_0x4baf28(0x347),'size':_0x4baf28(0x4d6),'variant':_0x4baf28(0x43c),'aria-label':_0x124c66['t']('bases-dashboard-ui.dashboard.redo'),'disabled':!_0x359e72||_0x426b77[_0x4baf28(0x36c)]===0x0,'onClick':()=>_0x47f842[_0x4baf28(0x4d7)](a[_0x4baf28(0x47b)]['id'])[_0x4baf28(0xc0)](()=>void 0x0),'children':(0x0,g[_0x4baf28(0x205)])(s[_0x4baf28(0x412)],{})}),(0x0,g[_0x4baf28(0x205)])(f[_0x4baf28(0x134)],{'type':_0x4baf28(0x347),'size':_0x4baf28(0x4d6),'variant':_0x4baf28(0x43c),'aria-label':_0x124c66['t'](_0x4baf28(0x2db)),'onClick':()=>_0x19baa4()[_0x4baf28(0xc0)](()=>void 0x0),'children':(0x0,g[_0x4baf28(0x205)])(s['ExpandIcon'],{})}),(0x0,g[_0x4baf28(0x205)])(f['DropdownMenu'],{'items':_0x221ed9,'children':(0x0,g[_0x4baf28(0x23b)])(f[_0x4baf28(0x134)],{'variant':_0x4baf28(0x3c0),'disabled':!_0x359e72,'children':[(0x0,g['jsx'])(s['IncreaseIcon'],{}),_0x124c66['t']('bases-dashboard-ui.dashboard.addWidget')]})})]}),(0x0,g[_0x4baf28(0x23b)])(_0x4baf28(0x331),{'className':'univer-flex\x20univer-min-h-0\x20univer-flex-1','children':[(0x0,g[_0x4baf28(0x205)])('div',{'className':_0x4baf28(0x3bf),'children':(0x0,g['jsx'])(wt,{'dashboard':_0xf3eaf1,'dragLabel':_0x124c66['t'](_0x4baf28(0x41e)),'editable':_0x45b040,'resizeLabel':_0x124c66['t']('bases-dashboard-ui.dashboard.resizeWidget'),'widgetLabel':_0x47b6f1=>_0x124c66['t'](gn(_0x47b6f1[_0x4baf28(0xf6)])),'selectedWidgetId':_0x45b040?_0x484e4e:void 0x0,'onSelectWidget':_0x45b040?_0x23e921=>{_0x12a245(_0x23e921),_0x23e921||_0x1ada82(!0x1);}:void 0x0,'onLayoutsCommit':_0x3b2b4b=>{const _0x541443=_0x4baf28;let _0x28b129={..._0xf3eaf1[_0x541443(0x22d)]};_0x3b2b4b['forEach']((_0x2352de,_0x3f8269)=>{let _0xe300c1=_0x28b129[_0x3f8269];_0xe300c1&&(_0x28b129[_0x3f8269]={..._0xe300c1,'layout':_0x2352de});}),_0x47f842[_0x541443(0x4d7)](e[_0x541443(0xef)]['id'],{'unitId':_0x3b4e31,'dashboard':{..._0xf3eaf1,'widgets':_0x28b129}})[_0x541443(0xc0)](()=>void 0x0);},'renderWidget':_0x39578e=>(0x0,g[_0x4baf28(0x205)])(un,{'base':_0x565ca9,'dashboard':_0xf3eaf1,'unitId':_0x3b4e31,'widget':_0x39578e,'onChange':_0x139cc9,'onChartRuntimeChange':_0x56781c}),'renderWidgetActions':_0x519ef4=>(0x0,g[_0x4baf28(0x205)])(cn,{'onEdit':()=>{_0x12a245(_0x519ef4['id']),_0x1ada82(!0x0);},'onDelete':()=>{const _0x46ac59=_0x4baf28;_0x484e4e===_0x519ef4['id']&&(_0x12a245(void 0x0),_0x1ada82(!0x1)),_0x47f842[_0x46ac59(0x4d7)](e[_0x46ac59(0x246)]['id'],{'unitId':_0x3b4e31,'dashboardId':_0x233189,'widgetId':_0x519ef4['id']})[_0x46ac59(0xc0)](()=>void 0x0);}})})}),_0x45b040&&_0x5cc70d&&_0x3c3cd3&&(0x0,g[_0x4baf28(0x205)])($t,{'base':_0x565ca9,'chartRuntime':_0x34fc7d[_0x4baf28(0x3f8)](_0x3c3cd3['id']),'unitId':_0x3b4e31,'widget':_0x3c3cd3,'onChange':_0x139cc9,'onClose':()=>_0x1ada82(!0x1),'onSelectBackgroundImage':()=>hn(_0x98039d),'onSelectImage':()=>mn(_0x230ea4)})]})]});}function un({base:_0x26d996,dashboard:_0x4a9a3a,onChange:_0x18ee0d,onChartRuntimeChange:_0x488d7f,unitId:_0x536dad,widget:_0x38ff55}){const _0x47efdb=_0xf14a5a;let _0x4a14c1=(0x0,h[_0x47efdb(0x177)])(()=>_0x4a9a3a['widgetOrder'][_0x47efdb(0x3fa)](_0x58621b=>{const _0x1f8c83=_0x47efdb;let _0x5e17dc=_0x4a9a3a['widgets'][_0x58621b];return(_0x5e17dc==null?void 0x0:_0x5e17dc[_0x1f8c83(0xf6)])===e[_0x1f8c83(0x294)]['TableFilter']&&_0x5e17dc[_0x1f8c83(0x372)]===(_0x1f8c83(0x372)in _0x38ff55?_0x38ff55['tableId']:'')&&_0x5e17dc[_0x1f8c83(0x4a5)]?[_0x5e17dc['filter']]:[];}),[_0x4a9a3a,_0x38ff55]);switch(_0x38ff55['type']){case e[_0x47efdb(0x294)]['PivotChart']:return(0x0,g[_0x47efdb(0x205)])(ie,{'filters':_0x4a14c1,'unitId':_0x536dad,'widget':_0x38ff55,'onRuntimeChange':_0x488d7f});case e[_0x47efdb(0x294)][_0x47efdb(0xc7)]:return(0x0,g['jsx'])(Rt,{'fields':dn(_0x26d996,_0x38ff55[_0x47efdb(0x372)]),'filter':_0x38ff55[_0x47efdb(0x4a5)],'onChange':_0x50c8cb=>_0x18ee0d({..._0x38ff55,'filter':_0x50c8cb})[_0x47efdb(0xc0)](()=>void 0x0)});case e[_0x47efdb(0x294)][_0x47efdb(0x1cf)]:return(0x0,g[_0x47efdb(0x205)])(ce,{'widget':_0x38ff55});case e[_0x47efdb(0x294)][_0x47efdb(0x3a3)]:return(0x0,g['jsx'])(fn,{'widget':_0x38ff55});case e[_0x47efdb(0x294)][_0x47efdb(0x2ac)]:return(0x0,g[_0x47efdb(0x205)])(M,{'dashboardId':_0x4a9a3a['id'],'unitId':_0x536dad,'widget':_0x38ff55});}}function dn(_0x1a37d4,_0x4b39b4){const _0x4393df=_0xf14a5a;let _0x51a89e=_0x1a37d4['getSnapshot']()[_0x4393df(0x419)][_0x4b39b4],_0x58e9e4=_0x51a89e==null?void 0x0:_0x51a89e['viewOrder'][_0x4393df(0x396)](_0x8a106f=>_0x51a89e[_0x4393df(0x34d)][_0x8a106f]),_0x598659=_0x58e9e4?_0x51a89e==null?void 0x0:_0x51a89e['views'][_0x58e9e4]:void 0x0;return _0x51a89e&&_0x598659?(0x0,t[_0x4393df(0x29f)])(_0x51a89e,_0x598659):[];}function fn({widget:_0x5bbda0}){const _0x1e34bc=_0xf14a5a;let _0x4712ed=(0x0,m['useDependency'])(u[_0x1e34bc(0x4c9)]),[_0x51b58a,_0x822ad8]=(0x0,h[_0x1e34bc(0x2b8)])(_0x5bbda0[_0x1e34bc(0x367)]===a[_0x1e34bc(0x44f)]['UUID']?'':_0x5bbda0[_0x1e34bc(0x465)]);return(0x0,h[_0x1e34bc(0x48c)])(()=>{const _0x2ca87a=_0x1e34bc;let _0x238105=!0x0;return _0x4712ed['getAttachmentUrl'](_0x5bbda0[_0x2ca87a(0x465)],_0x5bbda0[_0x2ca87a(0x367)])[_0x2ca87a(0x173)](_0x3706ec=>{_0x238105&&_0x822ad8(_0x3706ec);})[_0x2ca87a(0xc0)](()=>void 0x0),()=>{_0x238105=!0x1;};},[_0x4712ed,_0x5bbda0[_0x1e34bc(0x465)],_0x5bbda0[_0x1e34bc(0x367)]]),_0x51b58a?(0x0,g[_0x1e34bc(0x205)])(_0x1e34bc(0x331),{'role':_0x5bbda0[_0x1e34bc(0x166)]?_0x1e34bc(0x1f9):void 0x0,'aria-label':_0x5bbda0['alt']||void 0x0,'data-dashboard-image':_0x5bbda0['id'],'className':'univer-h-full\x20univer-w-full\x20univer-bg-transparent','style':E(_0x51b58a,_0x5bbda0['displayMode'])}):null;}function pn(){const _0x3515fd=_0xf14a5a;let _0x28f2b8=(0x0,a['createParagraphId'])(new Set());return{'id':_0x3515fd(0x427)+(0x0,a[_0x3515fd(0x40b)])(0x8),'body':{'dataStream':'\x0d\x0a','textRuns':[],'paragraphs':[{'startIndex':0x0,'paragraphId':_0x28f2b8}]},'documentStyle':{}};}function mn(_0x5d5612){return new Promise(_0x201a09=>{const _0x29222f=_0x479a;let _0x3bbd83=document[_0x29222f(0x2fb)](_0x29222f(0x26e));_0x3bbd83[_0x29222f(0xf6)]='file',_0x3bbd83[_0x29222f(0x33e)]='image/*',_0x3bbd83['addEventListener'](_0x29222f(0x105),()=>{const _0x4bd30f=_0x29222f;var _0x47b742;let _0x20ec02=(_0x47b742=_0x3bbd83[_0x4bd30f(0x2ef)])==null?void 0x0:_0x47b742[0x0];_0x20ec02?_0x5d5612[_0x4bd30f(0x23a)](_0x20ec02)[_0x4bd30f(0x173)](_0x37d5d9=>{const _0x3afb6b=_0x4bd30f;!_0x37d5d9[_0x3afb6b(0x465)]||_0x37d5d9[_0x3afb6b(0x367)]===void 0x0?_0x201a09(null):_0x201a09({'name':_0x37d5d9[_0x3afb6b(0x1dc)],'source':_0x37d5d9['source'],'sourceType':_0x37d5d9[_0x3afb6b(0x367)]});})[_0x4bd30f(0xc0)](()=>_0x201a09(null)):_0x201a09(null);},{'once':!0x0}),_0x3bbd83['click']();});}function hn(_0x4ba247){return new Promise(_0x3d9751=>{const _0x13157a=_0x479a;let _0x3c2b11=document[_0x13157a(0x2fb)](_0x13157a(0x26e));_0x3c2b11[_0x13157a(0xf6)]='file',_0x3c2b11['accept']=_0x13157a(0x373),_0x3c2b11[_0x13157a(0x14a)](_0x13157a(0x105),()=>{const _0x51cb3e=_0x13157a;var _0xc608d9;let _0x3996fe=(_0xc608d9=_0x3c2b11[_0x51cb3e(0x2ef)])==null?void 0x0:_0xc608d9[0x0];_0x3996fe?_0x4ba247[_0x51cb3e(0x4b5)](_0x3996fe)[_0x51cb3e(0x173)](_0x2f0071=>{const _0x24edf7=_0x51cb3e;if(!(_0x2f0071!=null&&_0x2f0071[_0x24edf7(0x465)]))_0x3d9751(null);else{if(_0x2f0071[_0x24edf7(0x3db)]){let _0x58b768=new Image();_0x58b768['src']=_0x2f0071[_0x24edf7(0x3db)],_0x4ba247[_0x24edf7(0x1c3)](_0x2f0071[_0x24edf7(0x465)],_0x2f0071['imageSourceType'],_0x58b768);}_0x3d9751({'source':_0x2f0071['source'],'sourceType':_0x2f0071[_0x24edf7(0x1f5)]});}})[_0x51cb3e(0xc0)](()=>_0x3d9751(null)):_0x3d9751(null);},{'once':!0x0}),_0x3c2b11[_0x13157a(0x261)]();});}function gn(_0x13b3e6){const _0x1954dd=_0xf14a5a;switch(_0x13b3e6){case e[_0x1954dd(0x294)]['PivotChart']:return _0x1954dd(0x4c6);case e[_0x1954dd(0x294)]['TableFilter']:return _0x1954dd(0x389);case e[_0x1954dd(0x294)][_0x1954dd(0x1cf)]:return _0x1954dd(0x31a);case e[_0x1954dd(0x294)][_0x1954dd(0x3a3)]:return'bases-dashboard-ui.dashboard.image';case e[_0x1954dd(0x294)][_0x1954dd(0x2ac)]:return _0x1954dd(0x322);}}function _n(_0x57e999){const _0x2cce85=_0xf14a5a;return(_0x57e999==null?void 0x0:_0x57e999['type'])===a[_0x2cce85(0x40a)][_0x2cce85(0x3af)]&&typeof _0x57e999[_0x2cce85(0x34a)]==_0x2cce85(0x2f5)&&_0x57e999[_0x2cce85(0x34a)]!==null&&_0x2cce85(0x2f1)in _0x57e999[_0x2cce85(0x34a)]&&'chart'in _0x57e999[_0x2cce85(0x34a)];}const vn=[{'area':y[_0xf14a5a(0x3ad)][_0xf14a5a(0x26b)],'key':_0xf14a5a(0x334),'label':'bases-dashboard-ui.pivot.filters'},{'area':y[_0xf14a5a(0x3ad)][_0xf14a5a(0x376)],'key':_0xf14a5a(0x4ab),'label':_0xf14a5a(0x1ba)},{'area':y[_0xf14a5a(0x3ad)][_0xf14a5a(0x2d9)],'key':_0xf14a5a(0x47f),'label':_0xf14a5a(0x254)},{'area':y[_0xf14a5a(0x3ad)][_0xf14a5a(0x46c)],'key':_0xf14a5a(0x15c),'label':_0xf14a5a(0x35d)}],yn=[{'value':y[_0xf14a5a(0x1dd)][_0xf14a5a(0xe2)],'localeKey':'bases-dashboard-ui.pivot.sum'},{'value':y[_0xf14a5a(0x1dd)][_0xf14a5a(0x20b)],'localeKey':_0xf14a5a(0x3c9)},{'value':y[_0xf14a5a(0x1dd)][_0xf14a5a(0x14d)],'localeKey':_0xf14a5a(0x4dd)},{'value':y[_0xf14a5a(0x1dd)]['average'],'localeKey':'bases-dashboard-ui.pivot.average'},{'value':y[_0xf14a5a(0x1dd)][_0xf14a5a(0x272)],'localeKey':_0xf14a5a(0x20f)},{'value':y[_0xf14a5a(0x1dd)][_0xf14a5a(0x20c)],'localeKey':'bases-dashboard-ui.pivot.min'},{'value':y[_0xf14a5a(0x1dd)][_0xf14a5a(0x41b)],'localeKey':'bases-dashboard-ui.pivot.product'},{'value':y[_0xf14a5a(0x1dd)][_0xf14a5a(0x2f7)],'localeKey':_0xf14a5a(0x12f)},{'value':y['PivotSubtotalTypeEnum'][_0xf14a5a(0x3a6)],'localeKey':_0xf14a5a(0x27f)},{'value':y['PivotSubtotalTypeEnum'][_0xf14a5a(0xde)],'localeKey':_0xf14a5a(0x2f3)},{'value':y['PivotSubtotalTypeEnum'][_0xf14a5a(0x30c)],'localeKey':_0xf14a5a(0x3c7)}];function bn(_0x4d230a){const _0x5d7e1d=_0xf14a5a;let {config:_0x3e68c7,onChange:_0x139e04,table:_0x515884}=_0x4d230a,_0x52b70b=(0x0,m['useDependency'])(a['LocaleService']),[_0x2d8b18,_0x5ea19a]=(0x0,h[_0x5d7e1d(0x2b8)])(_0x5d7e1d(0xf7)),[_0x248cb1,_0x361424]=(0x0,h[_0x5d7e1d(0x2b8)])(''),[_0x40363c,_0x593c66]=(0x0,h[_0x5d7e1d(0x2b8)])(null),[_0x3bf9ca,_0xe0dacd]=(0x0,h[_0x5d7e1d(0x2b8)])(null),[_0x18406e,_0x86b7f1]=(0x0,h[_0x5d7e1d(0x2b8)])(null),[_0x4cabc8,_0x246671]=(0x0,h['useState'])(null),_0x534909=(0x0,h[_0x5d7e1d(0x45b)])(null),_0x32e079=(0x0,h[_0x5d7e1d(0x177)])(()=>_0x515884[_0x5d7e1d(0x4ae)][_0x5d7e1d(0x3fa)](_0xa6d392=>{const _0x51ed9a=_0x5d7e1d;let _0x26a087=_0x515884[_0x51ed9a(0xf7)][_0xa6d392];return _0x26a087&&_0x26a087[_0x51ed9a(0x159)]!==!0x0&&_0x26a087[_0x51ed9a(0xf6)]!==a[_0x51ed9a(0x10f)]['RecordId']?[_0x26a087]:[];})['filter'](_0x45d868=>_0x45d868[_0x5d7e1d(0x1dc)]['toLocaleLowerCase']()[_0x5d7e1d(0xca)](_0x248cb1[_0x5d7e1d(0x137)]()[_0x5d7e1d(0x329)]())),[_0x248cb1,_0x515884]),_0x462c70=_0x4a9ad1=>{const _0x27878f=_0x5d7e1d;let _0x30eac2=(0x0,e[_0x27878f(0xcc)])(_0x515884,_0x3e68c7[_0x27878f(0x2f1)]);try{_0x4a9ad1(_0x30eac2),_0x139e04({'pivot':_0x30eac2[_0x27878f(0x382)]()});}finally{_0x30eac2[_0x27878f(0x274)]();}},_0x4b324f=(_0x14c2db,_0x23225c)=>{_0x40363c&&(_0x462c70(_0x11cebd=>{const _0x4f8a90=_0x479a;if(_0x40363c['kind']===_0x4f8a90(0x1da)){let _0x488ac3=_0x11cebd[_0x4f8a90(0x480)](_0x40363c['id']),_0x1012e8=_0x488ac3[_0x4f8a90(0x2cc)]===_0x14c2db&&_0x488ac3['index']<_0x23225c?_0x23225c-0x1:_0x23225c;_0x11cebd['updateFieldPosition'](_0x40363c['id'],_0x14c2db,_0x1012e8);}else On(_0x11cebd,_0x40363c['id'],_0x14c2db,_0x23225c);}),_0x593c66(null),_0xe0dacd(null));};return(0x0,g['jsxs'])('div',{'className':_0x5d7e1d(0x326),'children':[(0x0,g['jsx'])(n[_0x5d7e1d(0x4b9)],{'ariaLabel':_0x52b70b['t'](_0x5d7e1d(0xf2)),'className':_0x5d7e1d(0x306),'items':[{'label':_0x52b70b['t'](_0x5d7e1d(0x333)),'panelId':_0x5d7e1d(0x2d5),'value':_0x5d7e1d(0xf7)},{'label':_0x52b70b['t'](_0x5d7e1d(0x25a)),'panelId':_0x5d7e1d(0x4db),'value':_0x5d7e1d(0xe8)}],'value':_0x2d8b18,'onChange':_0x5ea19a}),(0x0,g['jsx'])(_0x5d7e1d(0x331),{'ref':_0x534909,'className':(0x0,f['clsx'])(_0x5d7e1d(0x196),f[_0x5d7e1d(0x35f)]),'onDragOver':_0x1b4bb3=>{const _0x3d0f5b=_0x5d7e1d;let _0x3db764=_0x534909[_0x3d0f5b(0x1fa)];if(!_0x3db764)return;let _0x45590a=_0x3db764[_0x3d0f5b(0x29c)]();_0x1b4bb3[_0x3d0f5b(0x1fb)]<_0x45590a[_0x3d0f5b(0x1d0)]+0x30?_0x3db764[_0x3d0f5b(0x44d)]-=0x10:_0x1b4bb3[_0x3d0f5b(0x1fb)]>_0x45590a['bottom']-0x30&&(_0x3db764[_0x3d0f5b(0x44d)]+=0x10);},'children':_0x2d8b18===_0x5d7e1d(0xe8)?(0x0,g[_0x5d7e1d(0x205)])(Dn,{'config':_0x3e68c7,'commit':_0x462c70}):(0x0,g[_0x5d7e1d(0x23b)])('div',{'className':_0x5d7e1d(0x3a5),'children':[(0x0,g[_0x5d7e1d(0x23b)])(_0x5d7e1d(0x331),{'children':[(0x0,g[_0x5d7e1d(0x205)])(_0x5d7e1d(0x331),{'className':_0x5d7e1d(0x3cb),'children':_0x52b70b['t'](_0x5d7e1d(0x2ce))}),(0x0,g['jsx'])(f[_0x5d7e1d(0x2d0)],{'allowClear':!0x0,'slot':(0x0,g[_0x5d7e1d(0x205)])(s[_0x5d7e1d(0x438)],{}),'value':_0x248cb1,'placeholder':_0x52b70b['t'](_0x5d7e1d(0x13c)),'onChange':_0x361424}),(0x0,g['jsx'])(_0x5d7e1d(0x331),{'className':_0x5d7e1d(0x470),'children':_0x32e079[_0x5d7e1d(0x4a6)](_0x24dffa=>(0x0,g[_0x5d7e1d(0x205)])(xn,{'config':_0x3e68c7,'field':_0x24dffa,'onAdd':_0x22942a=>_0x462c70(_0x6cc314=>On(_0x6cc314,_0x24dffa['id'],_0x22942a,_0x6cc314['getFieldCountByArea'](_0x22942a))),'onCheckedChange':_0x49dcf3=>_0x462c70(_0xcd18c8=>{const _0x2dcfb7=_0x5d7e1d;let _0x1ab83b=_0xcd18c8[_0x2dcfb7(0x405)](_0x24dffa['id']);if(!_0x49dcf3)_0x1ab83b[_0x2dcfb7(0x398)](_0x5b8f3b=>_0xcd18c8[_0x2dcfb7(0x260)](_0x5b8f3b[_0x2dcfb7(0x2dc)]()));else{if(_0x1ab83b['length']===0x0){let _0x5df8d5=An(_0x24dffa)?y['PivotTableFiledAreaEnum'][_0x2dcfb7(0x46c)]:y[_0x2dcfb7(0x3ad)][_0x2dcfb7(0x2d9)];_0xcd18c8[_0x2dcfb7(0x3cc)](_0x24dffa['id'],_0x5df8d5);}}}),'onDragStart':()=>_0x593c66({'kind':_0x5d7e1d(0x465),'id':_0x24dffa['id']})},_0x24dffa['id']))})]}),(0x0,g[_0x5d7e1d(0x205)])(_0x5d7e1d(0x331),{'className':_0x5d7e1d(0xd4),'children':vn[_0x5d7e1d(0x4a6)](_0x1624e8=>(0x0,g[_0x5d7e1d(0x205)])(Cn,{'area':_0x1624e8[_0x5d7e1d(0x2cc)],'dropTarget':_0x3bf9ca,'fields':_0x3e68c7['pivot'][_0x1624e8[_0x5d7e1d(0x1a9)]],'label':_0x52b70b['t'](_0x1624e8[_0x5d7e1d(0x34b)]),'snapshot':_0x3e68c7[_0x5d7e1d(0x2f1)],'onDragEnd':()=>{_0x593c66(null),_0xe0dacd(null);},'onDragStart':_0x59c27d=>_0x593c66({'kind':'field','id':_0x59c27d,'area':_0x1624e8[_0x5d7e1d(0x2cc)]}),'onDragOver':_0x4cd598=>_0xe0dacd({'area':_0x1624e8[_0x5d7e1d(0x2cc)],'index':_0x4cd598}),'onDrop':_0x2a769b=>_0x4b324f(_0x1624e8['area'],_0x2a769b),'onFilter':_0x86b7f1,'onRemove':_0x187b19=>_0x462c70(_0x27ff33=>_0x27ff33['removeField'](_0x187b19)),'onSettings':_0x246671},_0x1624e8[_0x5d7e1d(0x2cc)]))}),_0x18406e&&(0x0,g[_0x5d7e1d(0x205)])(Tn,{'fieldId':_0x18406e,'snapshot':_0x3e68c7[_0x5d7e1d(0x2f1)],'table':_0x515884,'onCancel':()=>_0x86b7f1(null),'onCommit':(_0x594f58,_0x165489)=>{_0x462c70(_0x3d1dda=>{const _0x4ef606=_0x479a;let _0x196515=_0x3d1dda[_0x4ef606(0x47a)](_0x18406e),_0x52b434=(_0x196515==null?void 0x0:_0x196515[_0x4ef606(0x38d)])??[];_0x3d1dda['setLabelFilterInfo'](_0x18406e,{'type':y[_0x4ef606(0x3c2)][_0x4ef606(0x232)],'list':_0x594f58,'isAll':_0x594f58[_0x4ef606(0x215)]===_0x52b434[_0x4ef606(0x215)]}),_0x3d1dda[_0x4ef606(0x301)](_0x18406e,_0x165489===void 0x0?void 0x0:{'type':_0x165489});}),_0x86b7f1(null);}},_0x18406e),_0x4cabc8&&(0x0,g['jsx'])(En,{'field':_0x3e68c7['pivot']['measure'][_0x4cabc8],'onCancel':()=>_0x246671(null),'onCommit':(_0x312328,_0x4824dd,_0x48a02d)=>{_0x462c70(_0x523056=>{const _0x423553=_0x479a;_0x523056[_0x423553(0xbf)](_0x4cabc8,_0x312328),_0x523056[_0x423553(0x1ae)](_0x4cabc8,_0x4824dd),_0x523056[_0x423553(0x4a2)](_0x4cabc8,_0x48a02d||void 0x0);}),_0x246671(null);}},_0x4cabc8)]})})]});}function xn(_0x38697e){const _0x166a46=_0xf14a5a;let {config:_0x591a39,field:_0x3bb0d6,onAdd:_0x27d17c,onCheckedChange:_0x2f3e2d,onDragStart:_0x47ecef}=_0x38697e,_0x1b9da5=(0x0,m['useDependency'])(a[_0x166a46(0x207)]),_0x566453=[...Object[_0x166a46(0x309)](_0x591a39[_0x166a46(0x2f1)][_0x166a46(0x115)]),...Object['values'](_0x591a39[_0x166a46(0x2f1)][_0x166a46(0x220)])]['some'](_0x265e19=>_0x265e19[_0x166a46(0x14c)]===_0x3bb0d6['id']),_0x3c52ba=vn['map'](_0x165d15=>({'type':_0x166a46(0x392),'children':_0x1b9da5['t'](jn(_0x165d15[_0x166a46(0x2cc)])),'onSelect':()=>_0x27d17c(_0x165d15[_0x166a46(0x2cc)])}));return(0x0,g[_0x166a46(0x23b)])(_0x166a46(0x331),{'draggable':!0x0,'className':_0x166a46(0x247),'onDragStart':_0x47ecef,'children':[(0x0,g['jsx'])(s[_0x166a46(0x3dd)],{'className':_0x166a46(0x15d)}),(0x0,g[_0x166a46(0x205)])(f[_0x166a46(0x1e8)],{'checked':_0x566453,'onChange':_0x3c188c=>_0x2f3e2d(!!_0x3c188c)}),(0x0,g[_0x166a46(0x205)])(Sn,{'field':_0x3bb0d6}),(0x0,g[_0x166a46(0x205)])(_0x166a46(0x49b),{'className':_0x166a46(0x4ad),'children':_0x3bb0d6[_0x166a46(0x1dc)]}),(0x0,g[_0x166a46(0x205)])(f[_0x166a46(0x44b)],{'align':_0x166a46(0x1b0),'items':_0x3c52ba,'children':(0x0,g[_0x166a46(0x205)])(_0x166a46(0x49b),{'className':_0x166a46(0x2e8),'children':(0x0,g['jsx'])(s[_0x166a46(0x34c)],{})})})]});}function Sn({field:_0x473a68}){const _0x3e2eb9=_0xf14a5a;return An(_0x473a68)?(0x0,g[_0x3e2eb9(0x205)])(s[_0x3e2eb9(0x21a)],{'className':_0x3e2eb9(0x15d)}):_0x473a68[_0x3e2eb9(0xf6)]===a[_0x3e2eb9(0x10f)][_0x3e2eb9(0x214)]||_0x473a68[_0x3e2eb9(0xf6)]===a[_0x3e2eb9(0x10f)][_0x3e2eb9(0xfb)]||_0x473a68[_0x3e2eb9(0xf6)]===a[_0x3e2eb9(0x10f)][_0x3e2eb9(0x32e)]?(0x0,g['jsx'])(s[_0x3e2eb9(0x131)],{'className':'univer-text-gray-400'}):(0x0,g[_0x3e2eb9(0x205)])(s['TextIcon'],{'className':_0x3e2eb9(0x15d)});}function Cn(_0x524dd4){const _0x5c4fd6=_0xf14a5a;let {area:_0x77c9f6,dropTarget:_0x54b48b,fields:_0x486d20,label:_0x3bcf2b,snapshot:_0x5073a1}=_0x524dd4,_0x5e901a=(0x0,m[_0x5c4fd6(0x491)])(a['LocaleService']);return(0x0,g[_0x5c4fd6(0x23b)])(_0x5c4fd6(0x180),{'className':(0x0,f[_0x5c4fd6(0x108)])(_0x5c4fd6(0x242),f[_0x5c4fd6(0x2d3)]),'onDragOver':_0x5dac4c=>{const _0x119334=_0x5c4fd6;_0x5dac4c[_0x119334(0x317)](),_0x524dd4['onDragOver'](_0x486d20[_0x119334(0x215)]);},'onDrop':_0x2a43ec=>{const _0x289c29=_0x5c4fd6;_0x2a43ec[_0x289c29(0x317)](),_0x524dd4['onDrop']((_0x54b48b==null?void 0x0:_0x54b48b['area'])===_0x77c9f6?_0x54b48b[_0x289c29(0x190)]:_0x486d20[_0x289c29(0x215)]);},'children':[(0x0,g[_0x5c4fd6(0x205)])('div',{'className':_0x5c4fd6(0x361),'children':_0x3bcf2b}),(0x0,g[_0x5c4fd6(0x23b)])('div',{'className':_0x5c4fd6(0x208),'children':[_0x486d20[_0x5c4fd6(0x4a6)]((_0x18496,_0x4009c7)=>{const _0x2614f2=_0x5c4fd6;let _0x14d9cd=_0x5073a1[_0x2614f2(0x115)][_0x18496]??_0x5073a1[_0x2614f2(0x220)][_0x18496];if(!_0x14d9cd)return null;let _0x2a2a78=(_0x54b48b==null?void 0x0:_0x54b48b['area'])===_0x77c9f6&&_0x54b48b[_0x2614f2(0x190)]===_0x4009c7;return(0x0,g['jsxs'])('div',{'onDragOver':_0x1392f5=>{const _0x341d9c=_0x2614f2;_0x1392f5[_0x341d9c(0x317)](),_0x1392f5[_0x341d9c(0x425)]();let _0x2dbdc0=_0x1392f5['currentTarget'][_0x341d9c(0x29c)]();_0x524dd4[_0x341d9c(0x350)](_0x4009c7+ +(_0x1392f5[_0x341d9c(0x1fb)]>_0x2dbdc0[_0x341d9c(0x1d0)]+_0x2dbdc0[_0x341d9c(0x390)]/0x2));},'onDrop':_0xdb5949=>{const _0x225634=_0x2614f2;_0xdb5949[_0x225634(0x317)](),_0xdb5949['stopPropagation'](),_0x524dd4[_0x225634(0x40d)]((_0x54b48b==null?void 0x0:_0x54b48b[_0x225634(0x2cc)])===_0x77c9f6?_0x54b48b[_0x225634(0x190)]:_0x4009c7);},'children':[_0x2a2a78&&(0x0,g['jsx'])(_0x2614f2(0x331),{'className':'univer-h-0.5\x20univer-rounded\x20univer-bg-primary-600'}),(0x0,g[_0x2614f2(0x205)])(wn,{'area':_0x77c9f6,'field':_0x14d9cd,'onDragEnd':_0x524dd4[_0x2614f2(0x21e)],'onDragStart':()=>_0x524dd4['onDragStart'](_0x18496),'onFilter':()=>_0x524dd4[_0x2614f2(0x212)](_0x18496),'onRemove':()=>_0x524dd4[_0x2614f2(0x4ba)](_0x18496),'onSettings':()=>_0x524dd4['onSettings'](_0x18496)})]},_0x18496);}),(_0x54b48b==null?void 0x0:_0x54b48b[_0x5c4fd6(0x2cc)])===_0x77c9f6&&_0x54b48b[_0x5c4fd6(0x190)]===_0x486d20['length']&&(0x0,g[_0x5c4fd6(0x205)])('div',{'className':_0x5c4fd6(0x18b)}),_0x486d20[_0x5c4fd6(0x215)]===0x0&&(0x0,g[_0x5c4fd6(0x205)])(_0x5c4fd6(0x331),{'className':_0x5c4fd6(0x239),'children':_0x5e901a['t'](_0x5c4fd6(0xbe))})]})]});}function wn(_0x39fa37){const _0x34efba=_0xf14a5a;let _0x589a3c=(0x0,m[_0x34efba(0x491)])(a[_0x34efba(0x207)]),_0x41c6c5=_0x39fa37[_0x34efba(0x2cc)]===y['PivotTableFiledAreaEnum'][_0x34efba(0x46c)],_0x35088d=[{'type':_0x34efba(0x392),'children':_0x589a3c['t'](_0x34efba(0x1d5)),'onSelect':_0x39fa37[_0x34efba(0x4ba)]},{'type':_0x34efba(0x392),'children':_0x589a3c['t'](_0x41c6c5?_0x34efba(0x117):_0x34efba(0x292)),'onSelect':_0x41c6c5?_0x39fa37[_0x34efba(0x10a)]:_0x39fa37[_0x34efba(0x212)]}];return(0x0,g[_0x34efba(0x23b)])(_0x34efba(0x331),{'draggable':!0x0,'className':_0x34efba(0x172),'onDragEnd':_0x39fa37[_0x34efba(0x21e)],'onDragStart':_0x39fa37[_0x34efba(0x181)],'children':[(0x0,g[_0x34efba(0x205)])(s[_0x34efba(0x3dd)],{'className':'univer-text-gray-400'}),(0x0,g[_0x34efba(0x205)])(f['Tooltip'],{'title':_0x39fa37[_0x34efba(0x1da)][_0x34efba(0x316)],'children':(0x0,g[_0x34efba(0x205)])('span',{'className':_0x34efba(0x4ad),'children':_0x39fa37[_0x34efba(0x1da)][_0x34efba(0x316)]})}),(0x0,g[_0x34efba(0x205)])(f['DropdownMenu'],{'align':'end','items':_0x35088d,'children':(0x0,g[_0x34efba(0x205)])(_0x34efba(0x49b),{'className':_0x34efba(0x2e8),'children':(0x0,g['jsx'])(s[_0x34efba(0x34c)],{})})})]});}function Tn(_0x24aa1b){const _0x4e6823=_0xf14a5a;var _0x23e611,_0x508e98;let _0x374716=(0x0,m[_0x4e6823(0x491)])(a[_0x4e6823(0x207)]),{format:_0x5ec73c,items:_0x5d51bd,itemTypes:_0x5e60f7}=(0x0,h[_0x4e6823(0x177)])(()=>{const _0x31035f=_0x4e6823;let _0x2e98fb=(0x0,e[_0x31035f(0xcc)])(_0x24aa1b['table'],_0x24aa1b['snapshot']);try{let _0x4c3248=_0x2e98fb[_0x31035f(0x47a)](_0x24aa1b[_0x31035f(0x31c)]);return{'format':_0x4c3248==null?void 0x0:_0x4c3248['format'],'items':[...(_0x4c3248==null?void 0x0:_0x4c3248[_0x31035f(0x38d)])??[]],'itemTypes':[...(_0x4c3248==null?void 0x0:_0x4c3248[_0x31035f(0x20a)])??[]]};}finally{_0x2e98fb[_0x31035f(0x274)]();}},[_0x24aa1b[_0x4e6823(0x31c)],_0x24aa1b[_0x4e6823(0xd6)],_0x24aa1b['table']]),_0x20e66d=(_0x23e611=_0x24aa1b[_0x4e6823(0xd6)]['dimension'][_0x24aa1b[_0x4e6823(0x31c)]])==null?void 0x0:_0x23e611['filterInfo'],[_0x2c8b60,_0x3891b0]=(0x0,h['useState'])((_0x20e66d==null?void 0x0:_0x20e66d[_0x4e6823(0xf6)])===y[_0x4e6823(0x3c2)][_0x4e6823(0x232)]?_0x20e66d['list']:_0x5d51bd),[_0x175ebb,_0x313ccf]=(0x0,h[_0x4e6823(0x2b8)])((_0x508e98=_0x24aa1b[_0x4e6823(0xd6)][_0x4e6823(0x115)][_0x24aa1b[_0x4e6823(0x31c)]])==null||(_0x508e98=_0x508e98['sortInfo'])==null?void 0x0:_0x508e98[_0x4e6823(0xf6)]),_0x410c5c=_0x2c8b60['length']===_0x5d51bd[_0x4e6823(0x215)];return(0x0,g[_0x4e6823(0x23b)])(_0x4e6823(0x180),{'className':(0x0,f[_0x4e6823(0x108)])(_0x4e6823(0x201),f['borderClassName']),'children':[(0x0,g[_0x4e6823(0x205)])('div',{'className':_0x4e6823(0x1cb),'children':_0x374716['t'](_0x4e6823(0x292))}),(0x0,g['jsxs'])(_0x4e6823(0x331),{'className':_0x4e6823(0x3df),'children':[(0x0,g[_0x4e6823(0x23b)])(f[_0x4e6823(0x134)],{'className':_0x4e6823(0x267),'variant':_0x175ebb===y['PivotDataFieldSortOperatorEnum']['ascending']?_0x4e6823(0x3c0):'default','onClick':()=>_0x313ccf(y['PivotDataFieldSortOperatorEnum'][_0x4e6823(0x13d)]),'children':[(0x0,g[_0x4e6823(0x205)])(s['AscendingIcon'],{}),_0x374716['t'](_0x4e6823(0x1b5))]}),(0x0,g['jsxs'])(f[_0x4e6823(0x134)],{'className':_0x4e6823(0x267),'variant':_0x175ebb===y[_0x4e6823(0x1bf)][_0x4e6823(0x277)]?_0x4e6823(0x3c0):_0x4e6823(0x24c),'onClick':()=>_0x313ccf(y[_0x4e6823(0x1bf)][_0x4e6823(0x277)]),'children':[(0x0,g[_0x4e6823(0x205)])(s[_0x4e6823(0x122)],{}),_0x374716['t'](_0x4e6823(0x290))]})]}),(0x0,g['jsxs'])('div',{'className':_0x4e6823(0x2b1),'children':[(0x0,g[_0x4e6823(0x23b)])('label',{'className':_0x4e6823(0x302),'children':[(0x0,g[_0x4e6823(0x205)])(f[_0x4e6823(0x1e8)],{'checked':_0x410c5c,'indeterminate':_0x2c8b60[_0x4e6823(0x215)]>0x0&&!_0x410c5c,'onChange':()=>_0x3891b0(_0x410c5c?[]:_0x5d51bd)}),_0x374716['t'](_0x4e6823(0x26d))]}),_0x5d51bd['map']((_0x1e7604,_0x5e19f2)=>(0x0,g[_0x4e6823(0x23b)])(_0x4e6823(0x34b),{'className':_0x4e6823(0x302),'children':[(0x0,g[_0x4e6823(0x205)])(f[_0x4e6823(0x1e8)],{'checked':_0x2c8b60['includes'](_0x1e7604),'onChange':()=>_0x3891b0(_0x3ac0f7=>_0x3ac0f7[_0x4e6823(0xca)](_0x1e7604)?_0x3ac0f7[_0x4e6823(0x4a5)](_0x367baf=>_0x367baf!==_0x1e7604):[..._0x3ac0f7,_0x1e7604])}),(0x0,g['jsx'])(_0x4e6823(0x49b),{'className':_0x4e6823(0x476),'children':kn(_0x1e7604,_0x5e60f7[_0x5e19f2],_0x5ec73c,_0x374716['t'](_0x4e6823(0x3d4)))})]},_0x1e7604))]}),(0x0,g['jsxs'])(_0x4e6823(0x331),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2','children':[(0x0,g['jsx'])(f[_0x4e6823(0x134)],{'variant':_0x4e6823(0x30f),'onClick':()=>_0x24aa1b[_0x4e6823(0x289)](_0x5d51bd,_0x175ebb),'children':_0x374716['t']('bases-dashboard-ui.pivot.clearFilter')}),(0x0,g['jsxs'])(_0x4e6823(0x331),{'className':_0x4e6823(0x228),'children':[(0x0,g[_0x4e6823(0x205)])(f[_0x4e6823(0x134)],{'onClick':_0x24aa1b[_0x4e6823(0x4cf)],'children':_0x374716['t'](_0x4e6823(0x46a))}),(0x0,g[_0x4e6823(0x205)])(f[_0x4e6823(0x134)],{'variant':_0x4e6823(0x3c0),'disabled':_0x2c8b60['length']===0x0,'onClick':()=>_0x24aa1b[_0x4e6823(0x289)](_0x2c8b60,_0x175ebb),'children':_0x374716['t'](_0x4e6823(0x37d))})]})]})]});}function En(_0xdab450){const _0x7ba738=_0xf14a5a;var _0x85c12f,_0x36fdda,_0x506b80;let _0x52554d=(0x0,m[_0x7ba738(0x491)])(a[_0x7ba738(0x207)]),[_0x198466,_0x2b2c86]=(0x0,h['useState'])(((_0x85c12f=_0xdab450[_0x7ba738(0x1da)])==null?void 0x0:_0x85c12f['displayName'])??''),[_0x59fc11,_0x585a30]=(0x0,h[_0x7ba738(0x2b8)])(((_0x36fdda=_0xdab450[_0x7ba738(0x1da)])==null?void 0x0:_0x36fdda['subtotal'])??y['PivotSubtotalTypeEnum'][_0x7ba738(0xe2)]),[_0x49aafd,_0x473772]=(0x0,h[_0x7ba738(0x2b8)])(((_0x506b80=_0xdab450['field'])==null?void 0x0:_0x506b80[_0x7ba738(0x195)])??'');return _0xdab450[_0x7ba738(0x1da)]?(0x0,g['jsxs'])(_0x7ba738(0x180),{'className':(0x0,f['clsx'])('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[_0x7ba738(0x2d3)]),'children':[(0x0,g[_0x7ba738(0x205)])(_0x7ba738(0x331),{'className':_0x7ba738(0x3b7),'children':_0x52554d['t'](_0x7ba738(0x117))}),(0x0,g[_0x7ba738(0x23b)])(_0x7ba738(0x34b),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-1\x20univer-text-xs','children':[_0x52554d['t'](_0x7ba738(0x4ca)),(0x0,g[_0x7ba738(0x205)])(f['Input'],{'value':_0x198466,'onChange':_0x2b2c86})]}),(0x0,g[_0x7ba738(0x23b)])(_0x7ba738(0x34b),{'className':_0x7ba738(0x45f),'children':[_0x52554d['t'](_0x7ba738(0x354)),(0x0,g['jsx'])(f[_0x7ba738(0x278)],{'value':String(_0x59fc11),'options':yn[_0x7ba738(0x4a6)](_0x197ce5=>({'value':String(_0x197ce5['value']),'label':_0x52554d['t'](_0x197ce5[_0x7ba738(0x1a5)])})),'onChange':_0x33d85d=>{const _0x44f006=_0x7ba738;let _0x8aa0df=yn[_0x44f006(0x396)](_0x2645f8=>String(_0x2645f8[_0x44f006(0x1aa)])===_0x33d85d);_0x8aa0df&&_0x585a30(_0x8aa0df['value']);}})]}),(0x0,g[_0x7ba738(0x23b)])(_0x7ba738(0x34b),{'className':_0x7ba738(0x45f),'children':[_0x52554d['t']('bases-dashboard-ui.pivot.numberFormat'),(0x0,g[_0x7ba738(0x205)])(f[_0x7ba738(0x2d0)],{'value':_0x49aafd,'onChange':_0x473772})]}),(0x0,g[_0x7ba738(0x23b)])(_0x7ba738(0x331),{'className':_0x7ba738(0xd2),'children':[(0x0,g[_0x7ba738(0x205)])(f[_0x7ba738(0x134)],{'onClick':_0xdab450['onCancel'],'children':_0x52554d['t'](_0x7ba738(0x46a))}),(0x0,g[_0x7ba738(0x205)])(f[_0x7ba738(0x134)],{'variant':_0x7ba738(0x3c0),'disabled':!_0x198466['trim'](),'onClick':()=>_0xdab450[_0x7ba738(0x289)](_0x198466[_0x7ba738(0x137)](),_0x59fc11,_0x49aafd),'children':_0x52554d['t']('bases-dashboard-ui.pivot.confirm')})]})]}):null;}function Dn(_0x2e1e06){const _0x43c26e=_0xf14a5a;let {config:_0x55f3d5,commit:_0x2cd3e0}=_0x2e1e06,_0x4f85b5=(0x0,m[_0x43c26e(0x491)])(a[_0x43c26e(0x207)]),_0x258d8e=_0x55f3d5[_0x43c26e(0x2f1)]['options'],_0x26f11d=_0x1c8d0c=>_0x2cd3e0(_0x401742=>_0x401742[_0x43c26e(0x136)]({..._0x401742[_0x43c26e(0x2b0)](),..._0x1c8d0c}));return(0x0,g[_0x43c26e(0x23b)])(_0x43c26e(0x331),{'className':'univer-flex\x20univer-flex-col\x20univer-gap-4','children':[(0x0,g[_0x43c26e(0x23b)])(_0x43c26e(0x34b),{'className':_0x43c26e(0x3d8),'children':[_0x4f85b5['t'](_0x43c26e(0x257)),(0x0,g[_0x43c26e(0x205)])(f[_0x43c26e(0x278)],{'className':_0x43c26e(0x3c3),'value':String(_0x55f3d5[_0x43c26e(0x2f1)][_0x43c26e(0xf0)]),'options':[{'value':String(y[_0x43c26e(0x3be)][_0x43c26e(0x1b2)]),'label':_0x4f85b5['t']('bases-dashboard-ui.pivot.layoutTabular')},{'value':String(y[_0x43c26e(0x3be)]['compact']),'label':_0x4f85b5['t'](_0x43c26e(0x42f))},{'value':String(y[_0x43c26e(0x3be)][_0x43c26e(0x3a7)]),'label':_0x4f85b5['t']('bases-dashboard-ui.pivot.layoutOutline')}],'onChange':_0x3cae75=>{const _0x87ac3f=_0x43c26e;let _0x7934be=[y[_0x87ac3f(0x3be)][_0x87ac3f(0x1b2)],y[_0x87ac3f(0x3be)][_0x87ac3f(0x308)],y[_0x87ac3f(0x3be)][_0x87ac3f(0x3a7)]][_0x87ac3f(0x396)](_0x4432fc=>String(_0x4432fc)===_0x3cae75);_0x7934be!==void 0x0&&_0x2cd3e0(_0x56ee53=>_0x56ee53[_0x87ac3f(0x293)](_0x7934be));}})]}),[{'key':_0x43c26e(0x492),'label':'bases-dashboard-ui.pivot.repeatRowLabels','defaultValue':!0x1},{'key':_0x43c26e(0x35b),'label':_0x43c26e(0xda),'defaultValue':!0x1},{'key':_0x43c26e(0xbd),'label':_0x43c26e(0x102),'defaultValue':!0x0},{'key':_0x43c26e(0x436),'label':_0x43c26e(0x17f),'defaultValue':!0x0},{'key':_0x43c26e(0x222),'label':_0x43c26e(0xf5),'defaultValue':!0x0},{'key':_0x43c26e(0x44a),'label':'bases-dashboard-ui.pivot.showColumnGrandTotal','defaultValue':!0x0}][_0x43c26e(0x4a6)](_0x5c0260=>(0x0,g[_0x43c26e(0x23b)])(_0x43c26e(0x34b),{'className':_0x43c26e(0x464),'children':[(0x0,g[_0x43c26e(0x205)])(f[_0x43c26e(0x1e8)],{'checked':!!(_0x258d8e[_0x5c0260['key']]??_0x5c0260['defaultValue']),'disabled':_0x5c0260[_0x43c26e(0x1a9)]==='repeatRowLabels'&&_0x55f3d5[_0x43c26e(0x2f1)][_0x43c26e(0xf0)]===y[_0x43c26e(0x3be)][_0x43c26e(0x308)],'onChange':_0x3574e4=>_0x26f11d({[_0x5c0260[_0x43c26e(0x1a9)]]:!!_0x3574e4})}),_0x4f85b5['t'](_0x5c0260[_0x43c26e(0x34b)])]},_0x5c0260[_0x43c26e(0x1a9)])),_0x55f3d5[_0x43c26e(0x2f1)][_0x43c26e(0xf0)]===y[_0x43c26e(0x3be)]['outline']&&(0x0,g[_0x43c26e(0x23b)])(_0x43c26e(0x34b),{'className':_0x43c26e(0x3d8),'children':[_0x4f85b5['t'](_0x43c26e(0x4ac)),(0x0,g[_0x43c26e(0x205)])(f['Select'],{'className':'univer-w-36','value':String(_0x258d8e['rowSubtotalPosition']??y[_0x43c26e(0x3aa)][_0x43c26e(0x1d0)]),'options':[{'value':String(y[_0x43c26e(0x3aa)][_0x43c26e(0x1d0)]),'label':_0x4f85b5['t'](_0x43c26e(0x296))},{'value':String(y[_0x43c26e(0x3aa)][_0x43c26e(0x259)]),'label':_0x4f85b5['t']('bases-dashboard-ui.pivot.bottom')}],'onChange':_0x5cf155=>{const _0x2f5689=_0x43c26e;let _0x32d760=[y[_0x2f5689(0x3aa)][_0x2f5689(0x1d0)],y[_0x2f5689(0x3aa)][_0x2f5689(0x259)]][_0x2f5689(0x396)](_0x2f592d=>String(_0x2f592d)===_0x5cf155);_0x32d760!==void 0x0&&_0x26f11d({'rowSubtotalPosition':_0x32d760});}})]}),(0x0,g[_0x43c26e(0x23b)])(_0x43c26e(0x34b),{'className':'univer-flex\x20univer-items-center\x20univer-justify-between\x20univer-gap-2\x20univer-text-sm','children':[_0x4f85b5['t']('bases-dashboard-ui.pivot.valuePosition'),(0x0,g[_0x43c26e(0x205)])(f['Select'],{'className':_0x43c26e(0x3c3),'value':String(_0x55f3d5['pivot']['valuePosition']===y[_0x43c26e(0x25c)][_0x43c26e(0x2e7)]?y[_0x43c26e(0x25c)][_0x43c26e(0x376)]:_0x55f3d5[_0x43c26e(0x2f1)]['valuePosition']),'options':[{'value':String(y[_0x43c26e(0x25c)][_0x43c26e(0x376)]),'label':_0x4f85b5['t']('bases-dashboard-ui.pivot.columns')},{'value':String(y[_0x43c26e(0x25c)][_0x43c26e(0x2d9)]),'label':_0x4f85b5['t'](_0x43c26e(0x254))}],'onChange':_0x433680=>{const _0x22ec1d=_0x43c26e;let _0x94f10d=[y['PivotTableValuePositionEnum'][_0x22ec1d(0x376)],y[_0x22ec1d(0x25c)][_0x22ec1d(0x2d9)]][_0x22ec1d(0x396)](_0x33b708=>String(_0x33b708)===_0x433680);_0x94f10d!==void 0x0&&_0x2cd3e0(_0x2081c8=>_0x2081c8['updateValuePosition'](_0x94f10d,_0x2081c8[_0x22ec1d(0x441)]()<0x0?0x0:_0x2081c8[_0x22ec1d(0x441)]()));}})]}),(0x0,g['jsxs'])(_0x43c26e(0x34b),{'className':_0x43c26e(0x3d8),'children':[_0x4f85b5['t'](_0x43c26e(0x1d3)),(0x0,g[_0x43c26e(0x205)])(f[_0x43c26e(0x43e)],{'className':_0x43c26e(0x18c),'min':0x1,'max':0x14,'value':_0x258d8e[_0x43c26e(0x47d)]??0x1,'onChange':_0x171364=>{const _0x5d0f85=_0x43c26e;let _0x7690e0=Number(_0x171364);Number[_0x5d0f85(0x2fc)](_0x7690e0)&&_0x7690e0>=0x1&&_0x26f11d({'pageWrap':_0x7690e0});}})]}),(0x0,g[_0x43c26e(0x23b)])(_0x43c26e(0x34b),{'className':_0x43c26e(0x3d8),'children':[_0x4f85b5['t'](_0x43c26e(0x119)),(0x0,g[_0x43c26e(0x205)])(f[_0x43c26e(0x278)],{'className':_0x43c26e(0x3c3),'value':String(_0x258d8e[_0x43c26e(0x25d)]??!0x1),'options':[{'value':_0x43c26e(0x18f),'label':_0x4f85b5['t'](_0x43c26e(0x284))},{'value':_0x43c26e(0x109),'label':_0x4f85b5['t'](_0x43c26e(0x466))}],'onChange':_0x14eb21=>_0x26f11d({'pageOverThenDown':_0x14eb21==='true'})})]})]});}function On(_0x24b002,_0x440e0c,_0x4ba872,_0x1885a3){const _0x393b7d=_0xf14a5a;let _0x1836d4=_0x24b002[_0x393b7d(0x405)](_0x440e0c)[_0x393b7d(0x396)](_0x156caa=>_0x24b002[_0x393b7d(0x480)](_0x156caa[_0x393b7d(0x2dc)]())['area']!==y['PivotTableFiledAreaEnum'][_0x393b7d(0x46c)]);_0x4ba872!==y[_0x393b7d(0x3ad)][_0x393b7d(0x46c)]&&_0x1836d4?_0x24b002['updateFieldPosition'](_0x1836d4[_0x393b7d(0x2dc)](),_0x4ba872,_0x1885a3):_0x24b002['addFieldWithSourceId'](_0x440e0c,_0x4ba872,_0x1885a3);}function kn(_0x18623d,_0x1a965e,_0x3bb1fd,_0x37b2a7){const _0x50e936=_0xf14a5a;return _0x1a965e===y[_0x50e936(0x449)]['blank']?_0x37b2a7:_0x1a965e===y[_0x50e936(0x449)]['date']&&_0x3bb1fd?a['numfmt'][_0x50e936(0x195)](_0x3bb1fd,Number(_0x18623d)):_0x18623d;}function An(_0x43ada8){const _0x3a490e=_0xf14a5a;return _0x43ada8['type']===a['BaseFieldType'][_0x3a490e(0x15f)]||_0x43ada8[_0x3a490e(0xf6)]===a[_0x3a490e(0x10f)][_0x3a490e(0x116)]||_0x43ada8[_0x3a490e(0xf6)]===a[_0x3a490e(0x10f)][_0x3a490e(0x3cd)]||_0x43ada8[_0x3a490e(0xf6)]===a[_0x3a490e(0x10f)][_0x3a490e(0xc9)];}function jn(_0xb17949){const _0x51cd80=_0xf14a5a;switch(_0xb17949){case y[_0x51cd80(0x3ad)][_0x51cd80(0x2d9)]:return _0x51cd80(0x4dc);case y['PivotTableFiledAreaEnum'][_0x51cd80(0x376)]:return _0x51cd80(0x279);case y['PivotTableFiledAreaEnum'][_0x51cd80(0x46c)]:return _0x51cd80(0x2d4);default:return'bases-dashboard-ui.pivot.addToFilter';}}function Mn({config:_0x2b7ebf,onChange:_0x22a078,runtime:_0x489094,table:_0x5e70d3}){const _0x59dca2=_0xf14a5a;let _0x3fbd7f=(0x0,m[_0x59dca2(0x491)])(a[_0x59dca2(0x207)]),[_0x39bd77,_0x44d448]=(0x0,h[_0x59dca2(0x2b8)])(_0x59dca2(0x3a9));return(0x0,g[_0x59dca2(0x23b)])(_0x59dca2(0x2eb),{'className':_0x59dca2(0x4a9),'children':[(0x0,g['jsx'])(n[_0x59dca2(0x4b9)],{'ariaLabel':_0x3fbd7f['t'](_0x59dca2(0x400)),'className':'univer-mx-4\x20univer-mt-4\x20univer-shrink-0','items':[{'label':_0x3fbd7f['t'](_0x59dca2(0x1af)),'panelId':_0x59dca2(0x1bd),'value':'chart'},{'label':_0x3fbd7f['t'](_0x59dca2(0xf2)),'panelId':_0x59dca2(0xdf),'value':_0x59dca2(0x2f1)}],'value':_0x39bd77,'onChange':_0x44d448}),(0x0,g[_0x59dca2(0x205)])(_0x59dca2(0x331),{'className':_0x59dca2(0x216),'children':_0x39bd77==='chart'?_0x489094&&(0x0,g['jsx'])(Dt,{'config':_0x2b7ebf,'runtime':_0x489094,'tableName':_0x5e70d3[_0x59dca2(0x1dc)],'onChange':_0x22a078}):(0x0,g[_0x59dca2(0x205)])(bn,{'config':_0x2b7ebf,'table':_0x5e70d3,'onChange':_0x22a078})})]});}function Nn({tableId:_0x5260f7,unitId:_0x2fc1e3,viewId:_0x43a1cf}){const _0x534da7=_0xf14a5a;let _0x271702=(0x0,m[_0x534da7(0x491)])(a['ICommandService']),_0x25ab72=(0x0,m[_0x534da7(0x491)])(a[_0x534da7(0x323)]),_0x56f9c3=(0x0,m['useDependency'])(a[_0x534da7(0x363)]),_0x216cd4=(0x0,m[_0x534da7(0x491)])(a[_0x534da7(0x207)]),_0x2435b1=(0x0,m[_0x534da7(0x491)])(e[_0x534da7(0x493)]),[_0x21ac10,_0x12c34b]=(0x0,h[_0x534da7(0x2b8)])(null),[_0x5e8ea0,_0x59f86d]=(0x0,h[_0x534da7(0x2b8)])(null),_0x46db51=(0x0,h[_0x534da7(0x45b)])(_0x534da7(0x304)+(0x0,a['generateRandomId'])(0x8)),[_0x14fdd9,_0x2f704e]=(0x0,h[_0x534da7(0x2b8)])(!0x1),_0x4949e9=_0x25ab72[_0x534da7(0x29a)](_0x2fc1e3,a[_0x534da7(0x4cd)][_0x534da7(0x31e)]),_0x37f6fe=_0x4949e9==null?void 0x0:_0x4949e9[_0x534da7(0x164)]()[_0x534da7(0x419)][_0x5260f7],_0x2895cf=_0x37f6fe==null?void 0x0:_0x37f6fe['views'][_0x43a1cf],_0x1328a2=Pn(_0x2895cf),_0x36f91a=T(_0x2fc1e3,_0x5260f7,_0x43a1cf);if((0x0,h[_0x534da7(0x48c)])(()=>{const _0x554a0d=_0x534da7;if(!_0x1328a2)return;let _0x1de3d9=_0x46db51[_0x554a0d(0x1fa)];return _0x2435b1[_0x554a0d(0x4b3)](_0x1de3d9,{'unitId':_0x2fc1e3,'tableId':_0x5260f7,'viewId':_0x43a1cf,'filters':[]}),()=>{const _0x5e697e=_0x554a0d;_0x2435b1[_0x5e697e(0x424)](_0x2fc1e3,_0x1de3d9);};},[_0x1328a2,_0x2435b1,_0x5260f7,_0x2fc1e3,_0x43a1cf]),(0x0,h['useEffect'])(()=>{const _0x3b42f4=_0x534da7;if(!Pn(_0x2895cf))return;let _0x1558c7=!0x0,_0x265512={'unitId':_0x2fc1e3,'tableId':_0x5260f7,'viewId':_0x43a1cf,'filters':[_0x2895cf['filter']??null]};return _0x2435b1[_0x3b42f4(0x4bb)](_0x2fc1e3,_0x46db51[_0x3b42f4(0x1fa)],_0x265512)[_0x3b42f4(0x173)](_0x1a841b=>{_0x1558c7&&_0x1a841b&&(_0x12c34b(_0x1a841b),_0x59f86d(_0x2435b1['getChartRuntime'](_0x2fc1e3,_0x46db51['current'])??null),_0x2f704e(!0x1));})[_0x3b42f4(0xc0)](_0x545984=>{const _0x1fbab5=_0x3b42f4;_0x56f9c3[_0x1fbab5(0x114)](_0x1fbab5(0x132),_0x545984),_0x1558c7&&(_0x12c34b(null),_0x2f704e(!0x0));}),()=>{_0x1558c7=!0x1;};},[_0x56f9c3,_0x2435b1,_0x5260f7,_0x2fc1e3,_0x2895cf,_0x43a1cf]),!_0x37f6fe||!Pn(_0x2895cf))return null;let _0x42e1af=_0x2435b1[_0x534da7(0x1d7)](_0x2fc1e3,_0x46db51[_0x534da7(0x1fa)])===_0x5e8ea0?_0x5e8ea0:null,_0x5a7bef=_0x21ac10?(0x0,g[_0x534da7(0x23b)])(_0x534da7(0x331),{'className':_0x534da7(0x355),'style':{'gridTemplateRows':_0x2895cf[_0x534da7(0x34a)][_0x534da7(0x384)]===_0x534da7(0x27d)?'minmax(240px,\x203fr)\x20minmax(180px,\x202fr)':_0x534da7(0x17d)},'children':[_0x2895cf[_0x534da7(0x34a)][_0x534da7(0x384)]!=='table'&&_0x42e1af&&(0x0,g[_0x534da7(0x205)])(_0x534da7(0x331),{'className':_0x534da7(0x469),'children':(0x0,g[_0x534da7(0x205)])(re,{'isRowDirection':(0x0,e['resolveBasePivotChartRowDirection'])(_0x2895cf[_0x534da7(0x34a)][_0x534da7(0x3a9)][_0x534da7(0x175)]),'runtime':_0x42e1af})}),_0x2895cf['config'][_0x534da7(0x384)]!==_0x534da7(0x3a9)&&(0x0,g['jsx'])(_0x534da7(0x331),{'className':_0x534da7(0x139),'children':(0x0,g['jsx'])(Ge,{'pivot':_0x2895cf['config'][_0x534da7(0x2f1)],'view':_0x21ac10[_0x534da7(0x3bc)]})})]}):(0x0,g[_0x534da7(0x205)])(_0x534da7(0x331),{'className':_0x534da7(0x409),'children':_0x14fdd9?_0x216cd4['t']('bases-dashboard-ui.pivot.calculationFailed'):_0x216cd4['t'](_0x534da7(0x28c))});return(0x0,g[_0x534da7(0x23b)])(_0x534da7(0x331),{'className':_0x534da7(0x2e3),'children':[(0x0,g[_0x534da7(0x205)])(_0x534da7(0x331),{'className':_0x534da7(0x124),'children':_0x5a7bef}),_0x36f91a&&(0x0,g[_0x534da7(0x205)])(Mn,{'config':_0x2895cf[_0x534da7(0x34a)],'runtime':_0x42e1af,'table':_0x37f6fe,'onChange':_0x42dad9=>{const _0x4b1de4=_0x534da7;_0x271702['executeCommand'](e[_0x4b1de4(0x2c2)]['id'],{'unitId':_0x2fc1e3,'tableId':_0x5260f7,'viewId':_0x43a1cf,'patch':_0x42dad9})[_0x4b1de4(0xc0)](_0x5a6f74=>_0x56f9c3[_0x4b1de4(0x114)](_0x4b1de4(0x45a),_0x5a6f74));}})]});}function Pn(_0x56edc0){const _0x1d0b34=_0xf14a5a;return(_0x56edc0==null?void 0x0:_0x56edc0[_0x1d0b34(0xf6)])===a[_0x1d0b34(0x40a)][_0x1d0b34(0x3af)]&&typeof _0x56edc0[_0x1d0b34(0x34a)]==_0x1d0b34(0x2f5)&&_0x56edc0[_0x1d0b34(0x34a)]!==null&&_0x1d0b34(0x2f1)in _0x56edc0['config']&&_0x1d0b34(0x3a9)in _0x56edc0[_0x1d0b34(0x34a)]&&_0x1d0b34(0x384)in _0x56edc0[_0x1d0b34(0x34a)];}let Fn=class extends a['Disposable']{constructor(_0xa9a006,_0xa8925c,_0x436be1,_0x4c6ea5,_0x2470d5,_0x1b2be8){const _0x2681d1=_0xf14a5a;super(),this[_0x2681d1(0xc3)](_0xa8925c['register']({'type':a['BaseViewType'][_0x2681d1(0x3af)],'renderMode':_0x2681d1(0x1a0),'icon':s[_0x2681d1(0x170)],'component':Nn,'menu':{get 'label'(){const _0x4c8fb8=_0x2681d1;return _0x1b2be8['t'](_0x4c8fb8(0x400));},get 'description'(){const _0x16d3f7=_0x2681d1;return _0x1b2be8['t'](_0x16d3f7(0x32f));},get 'defaultName'(){const _0x4b8015=_0x2681d1;return _0x1b2be8['t'](_0x4b8015(0x36e));}}})),this['disposeWithMe'](_0xa9a006[_0x2681d1(0x223)](In(_0x436be1,_0x4c6ea5,_0x2470d5,_0x1b2be8)));}};Fn=P([N(0x0,t[_0xf14a5a(0x31d)]),N(0x1,t['IBaseViewUIRegistryService']),N(0x2,(0x0,a[_0xf14a5a(0x268)])(e[_0xf14a5a(0x28d)])),N(0x3,a[_0xf14a5a(0x17e)]),N(0x4,a[_0xf14a5a(0x39d)]),N(0x5,(0x0,a['Inject'])(a[_0xf14a5a(0x207)]))],Fn);function In(_0x3111c6,_0x1ad5e5,_0x4686ec,_0x1e91f1){const _0x5848cd=_0xf14a5a;return{'change$':(0x0,c[_0x5848cd(0x300)])(_0x3111c6[_0x5848cd(0xfe)],_0x4686ec[_0x5848cd(0x118)]),'component':ln,get 'labels'(){const _0x3f80e8=_0x5848cd;return{'add':_0x1e91f1['t'](_0x3f80e8(0x256)),'configure':_0x8cbc3b=>_0x1e91f1['t'](_0x3f80e8(0x185),_0x8cbc3b),'delete':_0x1e91f1['t'](_0x3f80e8(0x2ec)),'new':_0x1e91f1['t'](_0x3f80e8(0x1b9)),'rename':_0x1e91f1['t'](_0x3f80e8(0x431)),'search':_0x1e91f1['t']('bases-dashboard-ui.dashboard.search'),'section':_0x1e91f1['t'](_0x3f80e8(0x1ab))};},'getItems':_0xfb3c6a=>{const _0x54843d=_0x5848cd;let _0xe258ed=_0x3111c6['getResource'](_0xfb3c6a);return _0xe258ed[_0x54843d(0x40f)]['flatMap'](_0xbd5da2=>{let _0x33a95f=_0xe258ed['dashboards'][_0xbd5da2];return _0x33a95f?[{'id':_0x33a95f['id'],'name':_0x33a95f['name'],'readonly':!(0x0,e['canEditBaseDashboard'])(_0x4686ec,_0xfb3c6a,_0x33a95f['id'])}]:[];});},'create':async _0x3e8a9b=>{const _0x4b0d4d=_0x5848cd;let _0x48f0c6=_0x3111c6['getResource'](_0x3e8a9b),_0x424bf9=_0x4b0d4d(0x349)+(0x0,a[_0x4b0d4d(0x40b)])(0x8),_0x1f898c=Ln(_0x48f0c6['dashboardOrder'][_0x4b0d4d(0x3fa)](_0x333da6=>{const _0x277277=_0x4b0d4d;let _0x25c3a1=_0x48f0c6['dashboards'][_0x333da6];return _0x25c3a1?[_0x25c3a1[_0x277277(0x1dc)]]:[];}),_0x24474a=>_0x1e91f1['t'](_0x4b0d4d(0x35e),String(_0x24474a)));return await _0x1ad5e5[_0x4b0d4d(0x4d7)](e[_0x4b0d4d(0x24a)]['id'],{'unitId':_0x3e8a9b,'dashboard':{'id':_0x424bf9,'name':_0x1f898c,'widgetOrder':[],'widgets':{}}})?_0x424bf9:null;},'rename':async(_0x4badb4,_0x56980f,_0x3b83bb)=>{const _0x42e82d=_0x5848cd;let _0x1561ee=_0x3111c6[_0x42e82d(0x41d)](_0x4badb4,_0x56980f);return!!(_0x1561ee&&await _0x1ad5e5['executeCommand'](e[_0x42e82d(0xef)]['id'],{'unitId':_0x4badb4,'dashboard':{..._0x1561ee,'name':_0x3b83bb}}));},'remove':(_0x1fc1c9,_0x392cd2)=>_0x1ad5e5['executeCommand'](e[_0x5848cd(0x230)]['id'],{'unitId':_0x1fc1c9,'dashboardId':_0x392cd2})};}function Ln(_0x5fe98c,_0x46f221){const _0x2daf92=_0xf14a5a;let _0x4b9223=new Set(_0x5fe98c),_0x5a59d8=_0x4b9223[_0x2daf92(0x3d0)]+0x1,_0x47dee8=_0x46f221(_0x5a59d8);for(;_0x4b9223[_0x2daf92(0x463)](_0x47dee8);)_0x5a59d8+=0x1,_0x47dee8=_0x46f221(_0x5a59d8);return _0x47dee8;}let $=class extends a[_0xf14a5a(0x193)]{constructor(_0x2b5a56=C,_0x346411,_0x203822){const _0x304d4c=_0xf14a5a;super(),this['_config']=_0x2b5a56,this[_0x304d4c(0x17c)]=_0x346411,this[_0x304d4c(0x3ac)]=_0x203822;let {..._0x574a5c}=(0x0,a[_0x304d4c(0x300)])({},C,this[_0x304d4c(0xfa)]);this[_0x304d4c(0x3ac)]['setConfig'](S,_0x574a5c);}['onStarting'](){const _0x334758=_0xf14a5a;this[_0x334758(0x17c)][_0x334758(0x107)]([F]),this[_0x334758(0x17c)][_0x334758(0x107)]([W]),this[_0x334758(0x17c)][_0x334758(0x107)]([Fn]);}['onReady'](){const _0x5cd924=_0xf14a5a;(0x0,a[_0x5cd924(0x4c5)])(this[_0x5cd924(0x17c)],[[F],[W],[Fn]]);}};B($,_0xf14a5a(0xf6),a['UniverInstanceType'][_0xf14a5a(0x31e)]),B($,'pluginName',_0xf14a5a(0x240)),B($,'packageName',b),B($,_0xf14a5a(0xd3),x),$=P([(0x0,a['DependentOn'])(r['UniverLicensePlugin'],e['UniverBaseDashboardPlugin'],t[_0xf14a5a(0x49f)],n[_0xf14a5a(0x211)],i['UniverShapeEditorPlugin'],o[_0xf14a5a(0xe0)]),N(0x1,(0x0,a[_0xf14a5a(0x268)])(a[_0xf14a5a(0x3e0)])),N(0x2,a[_0xf14a5a(0x103)])],$),Object[_0xf14a5a(0xcf)](exports,_0xf14a5a(0x485),{'enumerable':!0x0,'get':function(){return Y;}}),Object[_0xf14a5a(0xcf)](exports,_0xf14a5a(0x32d),{'enumerable':!0x0,'get':function(){return $;}});