@univerjs-pro/sheets-pivot 0.5.0-alpha.0 → 0.5.0-beta.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 (89) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/fa-IR.js +1 -1
  5. package/lib/cjs/locale/ru-RU.js +1 -1
  6. package/lib/cjs/locale/vi-VN.js +1 -1
  7. package/lib/cjs/locale/zh-CN.js +1 -1
  8. package/lib/cjs/locale/zh-TW.js +1 -1
  9. package/lib/es/facade.js +1 -1
  10. package/lib/es/index.js +1 -1
  11. package/lib/es/locale/en-US.js +1 -1
  12. package/lib/es/locale/fa-IR.js +1 -1
  13. package/lib/es/locale/ru-RU.js +1 -1
  14. package/lib/es/locale/vi-VN.js +1 -1
  15. package/lib/es/locale/zh-CN.js +1 -1
  16. package/lib/es/locale/zh-TW.js +1 -1
  17. package/lib/types/commands/command/add-pivot-field.command.d.ts +11 -0
  18. package/lib/types/commands/command/add-pivot-table-with-config.command.d.ts +3 -0
  19. package/lib/types/commands/command/add-pivot-table.command.d.ts +9 -0
  20. package/lib/types/commands/command/move-pivot-field.command.d.ts +11 -0
  21. package/lib/types/commands/command/pivot-drill-down.command.d.ts +6 -0
  22. package/lib/types/commands/command/remove-pivot-field.command.d.ts +8 -0
  23. package/lib/types/commands/command/set-pivot-collapse.command.d.ts +9 -0
  24. package/lib/types/commands/command/set-pivot-filter.command.d.ts +10 -0
  25. package/lib/types/commands/command/set-pivot-sort.command.d.ts +10 -0
  26. package/lib/types/commands/command/update-pivot-setting.command.d.ts +15 -0
  27. package/lib/types/commands/command/update-pivot-source.command.d.ts +9 -0
  28. package/lib/types/commands/command/update-value-position.command.d.ts +8 -0
  29. package/lib/types/commands/command/util.d.ts +14 -0
  30. package/lib/types/commands/mutations/add-pivot-field.mutation.d.ts +3 -0
  31. package/lib/types/commands/mutations/add-pivot-table.mutation.d.ts +3 -0
  32. package/lib/types/commands/mutations/change-apply-util.d.ts +15 -0
  33. package/lib/types/commands/mutations/pivot-data-communication.mutation.d.ts +7 -0
  34. package/lib/types/commands/mutations/remove-pivot-field.mutation.d.ts +3 -0
  35. package/lib/types/commands/mutations/remove-pivot-table.mutation.d.ts +3 -0
  36. package/lib/types/commands/mutations/rename-pivot-field.mutation.d.ts +3 -0
  37. package/lib/types/commands/mutations/set-pivot-collapse.mutation.d.ts +3 -0
  38. package/lib/types/commands/mutations/set-pivot-field-format.mutation.d.ts +3 -0
  39. package/lib/types/commands/mutations/set-pivot-filter.mutation.d.ts +3 -0
  40. package/lib/types/commands/mutations/set-pivot-option.mutation.d.ts +3 -0
  41. package/lib/types/commands/mutations/set-pivot-position.mutation.d.ts +3 -0
  42. package/lib/types/commands/mutations/set-pivot-sort.mutation.d.ts +3 -0
  43. package/lib/types/commands/mutations/set-pivot-subtotal-type.mutation.d.ts +3 -0
  44. package/lib/types/commands/mutations/update-field-position.mutation.d.ts +3 -0
  45. package/lib/types/commands/mutations/update-pivot-field-source-info.mutation.d.ts +3 -0
  46. package/lib/types/commands/mutations/update-pivot-table-source.mutation.d.ts +3 -0
  47. package/lib/types/commands/mutations/update-value-position.mutation.d.ts +3 -0
  48. package/lib/types/commands/operations/pivot-table-dirty-view.operation.d.ts +3 -0
  49. package/lib/types/common/const.d.ts +64 -0
  50. package/lib/types/const/const.d.ts +107 -0
  51. package/lib/types/const/template.d.ts +885 -0
  52. package/lib/types/const/type.d.ts +525 -0
  53. package/lib/types/controllers/config.schema.d.ts +6 -0
  54. package/lib/types/controllers/const.d.ts +1 -0
  55. package/lib/types/controllers/sheets-pivot-caculate.controller.d.ts +44 -0
  56. package/lib/types/controllers/sheets-pivot-clear.controller.d.ts +12 -0
  57. package/lib/types/controllers/sheets-pivot-interceptor.controller.d.ts +21 -0
  58. package/lib/types/controllers/sheets-pivot-permission.controller.d.ts +7 -0
  59. package/lib/types/controllers/sheets-pivot-ref-range.controller.d.ts +21 -0
  60. package/lib/types/controllers/sheets-pivot-remove-sheet.controller.d.ts +9 -0
  61. package/lib/types/controllers/sheets-pivot-rpc.controller.d.ts +20 -0
  62. package/lib/types/facade/f-pivot-table.d.ts +83 -0
  63. package/lib/types/facade/f-workbook.d.ts +72 -0
  64. package/lib/types/facade/index.d.ts +2 -0
  65. package/lib/types/index.d.ts +52 -1158
  66. package/lib/types/locale/en-US.d.ts +3 -0
  67. package/lib/types/locale/fa-IR.d.ts +3 -0
  68. package/lib/types/locale/ru-RU.d.ts +3 -0
  69. package/lib/types/locale/vi-VN.d.ts +3 -0
  70. package/lib/types/locale/zh-CN.d.ts +31 -0
  71. package/lib/types/locale/zh-TW.d.ts +3 -0
  72. package/lib/types/models/sheets-pivot-config-model.d.ts +58 -0
  73. package/lib/types/models/sheets-pivot-data-field-manager.d.ts +77 -0
  74. package/lib/types/models/sheets-pivot-data-source-model.d.ts +101 -0
  75. package/lib/types/models/sheets-pivot-table-adaptor-model.d.ts +54 -0
  76. package/lib/types/models/view-util.d.ts +16 -0
  77. package/lib/types/plugin.d.ts +17 -0
  78. package/lib/types/services/sheets-pivot-rpc.service.d.ts +11 -0
  79. package/lib/types/services/sheets-pivot-table.service.d.ts +18 -0
  80. package/lib/types/util.d.ts +84 -0
  81. package/lib/umd/facade.js +1 -1
  82. package/lib/umd/index.js +1 -1
  83. package/lib/umd/locale/en-US.js +1 -1
  84. package/lib/umd/locale/fa-IR.js +1 -1
  85. package/lib/umd/locale/ru-RU.js +1 -1
  86. package/lib/umd/locale/vi-VN.js +1 -1
  87. package/lib/umd/locale/zh-CN.js +1 -1
  88. package/lib/umd/locale/zh-TW.js +1 -1
  89. package/package.json +14 -14
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0xa1e0be=_0x12f2;function _0x2dd6(){const _0x587e9b=['@univerjs/core','2JCLXfN','SetPivotSubtotalTypeMutation','7713503YAFlth','renameField','RenamePivotFieldMutation','FWorkbook','UpdatePivotValuePositionCommand','toStringTag','6GkaDHZ','symbol','Module','ICommandService','removeField','unitId','SetPivotFilterCommand','1477536JxoFvV','@univerjs-pro/engine-pivot','6515058dAtRKp','getConfig','executeCommand','SheetsPivotTableAdaptorModel','generateHexNumber','MovePivotFieldCommand','8MMrXBc','RemovePivotTableMutation','get','SheetsPivotTableConfigModel','_injector','number','setSubtotalType','getPivotTableConfig','@univerjs-pro/sheets-pivot','166513cEjMEn','setLabelSort','2742970VnCTAk','subUnitId','syncExecuteCommand','AddPivotFieldCommand','6264756HrUqIH','getPivotTableByCell','extend','remove','AddPivotTableCommand','updateFieldPosition','getCollection','1013271JjsCVm','pivotTableId','40dgwEin','addField','fieldIds','defineProperty'];_0x2dd6=function(){return _0x587e9b;};return _0x2dd6();}function _0x12f2(_0x191c49,_0x342fd8){const _0x2dd6d7=_0x2dd6();return _0x12f2=function(_0x12f2d0,_0x1554aa){_0x12f2d0=_0x12f2d0-0xb8;let _0x11dabe=_0x2dd6d7[_0x12f2d0];return _0x11dabe;},_0x12f2(_0x191c49,_0x342fd8);}(function(_0x35dd71,_0x23f67d){const _0x254eb8=_0x12f2,_0x3f2629=_0x35dd71();while(!![]){try{const _0x3b6006=-parseInt(_0x254eb8(0xdb))/0x1*(parseInt(_0x254eb8(0xbb))/0x2)+-parseInt(_0x254eb8(0xe8))/0x3*(-parseInt(_0x254eb8(0xd2))/0x4)+-parseInt(_0x254eb8(0xdd))/0x5+-parseInt(_0x254eb8(0xc3))/0x6*(parseInt(_0x254eb8(0xbd))/0x7)+parseInt(_0x254eb8(0xca))/0x8+-parseInt(_0x254eb8(0xe1))/0x9+parseInt(_0x254eb8(0xea))/0xa*(parseInt(_0x254eb8(0xcc))/0xb);if(_0x3b6006===_0x23f67d)break;else _0x3f2629['push'](_0x3f2629['shift']());}catch(_0x2c28c9){_0x3f2629['push'](_0x3f2629['shift']());}}}(_0x2dd6,0xaeda6));var C=Object[_0xa1e0be(0xb9)],g=(_0x1d9c02,_0x59090d,_0x4983d1)=>_0x59090d in _0x1d9c02?C(_0x1d9c02,_0x59090d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4983d1}):_0x1d9c02[_0x59090d]=_0x4983d1,l=(_0x154ffa,_0x2bd761,_0x3a19f6)=>g(_0x154ffa,typeof _0x2bd761!=_0xa1e0be(0xc4)?_0x2bd761+'':_0x2bd761,_0x3a19f6);Object[_0xa1e0be(0xb9)](exports,Symbol[_0xa1e0be(0xc2)],{'value':_0xa1e0be(0xc5)});const r=require(_0xa1e0be(0xba)),b=require('@univerjs/sheets/facade'),P=require(_0xa1e0be(0xcb)),a=require(_0xa1e0be(0xda));class I{constructor(_0x185758,_0x4fe7f5,_0x59ccd4,_0x2c49d9){const _0x47976a=_0xa1e0be;l(this,_0x47976a(0xc8)),l(this,_0x47976a(0xde)),l(this,'pivotTableId'),l(this,_0x47976a(0xd6)),(this[_0x47976a(0xc8)]=_0x185758,this[_0x47976a(0xde)]=_0x4fe7f5,this[_0x47976a(0xe9)]=_0x59ccd4,this[_0x47976a(0xd6)]=_0x2c49d9);}[_0xa1e0be(0xcd)](){const _0x325c19=_0xa1e0be;return this[_0x325c19(0xd6)][_0x325c19(0xd4)](a['SheetsPivotTableConfigModel'])[_0x325c19(0xd9)](this[_0x325c19(0xc8)],this[_0x325c19(0xde)],this['pivotTableId']);}async[_0xa1e0be(0xe4)](){const _0x4e4619=_0xa1e0be;return await this[_0x4e4619(0xd6)][_0x4e4619(0xd4)](r[_0x4e4619(0xc6)])[_0x4e4619(0xdf)](a[_0x4e4619(0xd3)]['id'],{'unitId':this[_0x4e4619(0xc8)],'subUnitId':this[_0x4e4619(0xde)],'pivotTableId':this[_0x4e4619(0xe9)]});}async[_0xa1e0be(0xeb)](_0x3921ce,_0x369ac,_0x1b96e2){const _0x41c551=_0xa1e0be,_0x1b2014=this[_0x41c551(0xd6)],_0x54cebe=this[_0x41c551(0xc8)],_0x357a9b=this[_0x41c551(0xde)],_0x159ecd=this[_0x41c551(0xe9)],_0x1a977c=_0x1b2014['get'](r[_0x41c551(0xc6)]),_0x372025=_0x1b2014['get'](a[_0x41c551(0xd5)]),_0x583cbd=_0x372025[_0x41c551(0xd9)](_0x54cebe,_0x357a9b,_0x159ecd),_0x2bae02=_0x372025[_0x41c551(0xe7)](_0x54cebe,_0x159ecd);if(!_0x583cbd||!_0x2bae02)return!0x1;let _0x3398c6=_0x3921ce;typeof _0x3398c6==_0x41c551(0xd7)&&(_0x3398c6=_0x372025[_0x41c551(0xe7)](_0x54cebe,_0x159ecd)[_0x41c551(0xb8)][_0x3921ce]);const _0x191b96={'unitId':_0x54cebe,'subUnitId':_0x357a9b,'pivotTableId':_0x159ecd,'dataFieldId':_0x3398c6,'fieldArea':_0x369ac,'index':_0x1b96e2};return _0x1a977c['executeCommand'](a[_0x41c551(0xe0)]['id'],_0x191b96);}async[_0xa1e0be(0xc7)](_0x5ab8a1){const _0x48aa20=_0xa1e0be,_0x46e1ca=this[_0x48aa20(0xd6)],_0x233459=this[_0x48aa20(0xc8)],_0x24832b=this[_0x48aa20(0xde)],_0x20ca49=this[_0x48aa20(0xe9)],_0x19f497=_0x46e1ca['get'](r['ICommandService']),_0xb4a156={'unitId':_0x233459,'subUnitId':_0x24832b,'pivotTableId':_0x20ca49,'fieldIds':_0x5ab8a1};return _0x19f497[_0x48aa20(0xce)](a['RemovePivotFieldCommand']['id'],_0xb4a156);}async[_0xa1e0be(0xe6)](_0x1fdb09,_0x23bb1b,_0x4e8a34){const _0x592164=_0xa1e0be,_0x30c697=this[_0x592164(0xd6)],_0x3032a2=this['unitId'],_0x4525a2=this[_0x592164(0xde)],_0x3deac1=this['pivotTableId'],_0x27ed50=_0x30c697['get'](r[_0x592164(0xc6)]),_0x4b22b5={'unitId':_0x3032a2,'subUnitId':_0x4525a2,'pivotTableId':_0x3deac1,'fieldId':_0x1fdb09,'area':_0x23bb1b,'index':_0x4e8a34};return _0x27ed50['executeCommand'](a[_0x592164(0xd1)]['id'],_0x4b22b5);}async['updateValuePosition'](_0x266562,_0xb0ea8a){const _0x2d2b04=_0xa1e0be,_0x50aab3=this['_injector'],_0xab53a1=this[_0x2d2b04(0xc8)],_0x469ff8=this[_0x2d2b04(0xde)],_0x2b2dbb=this['pivotTableId'],_0x306c7c=_0x50aab3[_0x2d2b04(0xd4)](r[_0x2d2b04(0xc6)]),_0x562395={'unitId':_0xab53a1,'subUnitId':_0x469ff8,'pivotTableId':_0x2b2dbb,'position':_0x266562,'index':_0xb0ea8a};return _0x306c7c[_0x2d2b04(0xce)](a[_0x2d2b04(0xc1)]['id'],_0x562395);}async[_0xa1e0be(0xd8)](_0x3f0485,_0x5d4d9f){const _0x5afe64=_0xa1e0be,_0x49a542=this[_0x5afe64(0xd6)],_0x555645=this[_0x5afe64(0xc8)],_0x306628=this['subUnitId'],_0x96e8eb=this[_0x5afe64(0xe9)],_0x269746=_0x49a542[_0x5afe64(0xd4)](r[_0x5afe64(0xc6)]),_0x37d2f1={'unitId':_0x555645,'subUnitId':_0x306628,'pivotTableId':_0x96e8eb,'fieldId':_0x3f0485,'subtotalType':_0x5d4d9f};return _0x269746['executeCommand'](a[_0x5afe64(0xbc)]['id'],_0x37d2f1);}async[_0xa1e0be(0xdc)](_0x4f2ead,_0x55ef66){const _0x3b2dc4=_0xa1e0be,_0x5b473f=this[_0x3b2dc4(0xd6)],_0x5ebc97=this['unitId'],_0x217623=this['subUnitId'],_0x4a821a=this[_0x3b2dc4(0xe9)],_0x53bc56=_0x5b473f[_0x3b2dc4(0xd4)](r['ICommandService']),_0x133634={'unitId':_0x5ebc97,'subUnitId':_0x217623,'tableFieldId':_0x4f2ead,'pivotTableId':_0x4a821a,'info':_0x55ef66};return _0x53bc56[_0x3b2dc4(0xce)](a['SetPivotSortCommand']['id'],_0x133634);}async['setLabelManualFilter'](_0x3a15e8,_0x555677,_0x256b38){const _0x28442f=_0xa1e0be,_0x3abac8=this[_0x28442f(0xd6)],_0x24e922=this['unitId'],_0x5af615=this[_0x28442f(0xde)],_0x528ac8=this[_0x28442f(0xe9)],_0x124cc4=_0x3abac8[_0x28442f(0xd4)](r[_0x28442f(0xc6)]),_0x1e59de={'unitId':_0x24e922,'subUnitId':_0x5af615,'pivotTableId':_0x528ac8,'tableFieldId':_0x3a15e8,'items':_0x555677,'isAll':_0x256b38};return _0x124cc4[_0x28442f(0xce)](a[_0x28442f(0xc9)]['id'],_0x1e59de);}async[_0xa1e0be(0xbe)](_0x469865,_0xa7d097){const _0xdbe481=_0xa1e0be,_0x339701=this[_0xdbe481(0xd6)],_0x56cce0=this[_0xdbe481(0xc8)],_0x301d7d=this[_0xdbe481(0xde)],_0x4699dd=this[_0xdbe481(0xe9)],_0x203b16=_0x339701[_0xdbe481(0xd4)](r[_0xdbe481(0xc6)]),_0xf1f010={'unitId':_0x56cce0,'subUnitId':_0x301d7d,'pivotTableId':_0x4699dd,'fieldId':_0x469865,'name':_0xa7d097};return _0x203b16[_0xdbe481(0xce)](a[_0xdbe481(0xbf)]['id'],_0xf1f010);}}class S extends b[_0xa1e0be(0xc0)]{async['addPivotTable'](_0x7719d1,_0x1834ed,_0x5566d1){const _0x4d1fe7=_0xa1e0be,_0x5c81fe=this[_0x4d1fe7(0xd6)],_0x330034=_0x5c81fe['get'](r[_0x4d1fe7(0xc6)]),_0x288807=P[_0x4d1fe7(0xd0)](0x8),_0x3fcfc5={'positionType':_0x1834ed,'pivotTableId':_0x288807,'pivotTableConfig':{'targetCellInfo':_0x5566d1,'sourceRangeInfo':_0x7719d1,'isEmpty':!0x0}};if(await _0x330034[_0x4d1fe7(0xce)](a[_0x4d1fe7(0xe5)]['id'],_0x3fcfc5))return new I(_0x5566d1['unitId'],_0x5566d1[_0x4d1fe7(0xde)],_0x288807,_0x5c81fe);}[_0xa1e0be(0xe2)](_0x3c3124,_0x28ce0e,_0x44f039,_0x9a3a63){const _0x1fa8cf=_0xa1e0be,_0x1169e4=this['_injector'],_0x2240bd=_0x1169e4[_0x1fa8cf(0xd4)](a[_0x1fa8cf(0xcf)])['getPivotTableIdByCell'](_0x3c3124,_0x28ce0e,_0x44f039,_0x9a3a63);if(_0x2240bd)return new I(_0x3c3124,_0x28ce0e,_0x2240bd,_0x1169e4);}}b[_0xa1e0be(0xc0)][_0xa1e0be(0xe3)](S),exports['FPivotTable']=I;
1
+ 'use strict';const _0x742a36=_0x25fd;function _0x25fd(_0x553b6c,_0x3f62b3){const _0x9b12d3=_0x9b12();return _0x25fd=function(_0x25fd5b,_0x42f06d){_0x25fd5b=_0x25fd5b-0x15e;let _0x187a43=_0x9b12d3[_0x25fd5b];return _0x187a43;},_0x25fd(_0x553b6c,_0x3f62b3);}(function(_0xc700cc,_0x178cd1){const _0x243b31=_0x25fd,_0x8ca467=_0xc700cc();while(!![]){try{const _0x7085a3=-parseInt(_0x243b31(0x16b))/0x1+-parseInt(_0x243b31(0x169))/0x2+parseInt(_0x243b31(0x177))/0x3+parseInt(_0x243b31(0x17a))/0x4+-parseInt(_0x243b31(0x18a))/0x5*(parseInt(_0x243b31(0x15e))/0x6)+-parseInt(_0x243b31(0x160))/0x7*(parseInt(_0x243b31(0x15f))/0x8)+-parseInt(_0x243b31(0x16d))/0x9*(-parseInt(_0x243b31(0x17b))/0xa);if(_0x7085a3===_0x178cd1)break;else _0x8ca467['push'](_0x8ca467['shift']());}catch(_0x29c5ac){_0x8ca467['push'](_0x8ca467['shift']());}}}(_0x9b12,0x78f93));var C=Object[_0x742a36(0x176)],g=(_0x1fdf51,_0x529be5,_0x200e12)=>_0x529be5 in _0x1fdf51?C(_0x1fdf51,_0x529be5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x200e12}):_0x1fdf51[_0x529be5]=_0x200e12,l=(_0x421671,_0x372a8c,_0x3d17e3)=>g(_0x421671,typeof _0x372a8c!='symbol'?_0x372a8c+'':_0x372a8c,_0x3d17e3);Object[_0x742a36(0x176)](exports,Symbol[_0x742a36(0x163)],{'value':_0x742a36(0x171)});function _0x9b12(){const _0x27a0cd=['number','getConfig','Module','_injector','subUnitId','getPivotTableConfig','getCollection','defineProperty','1212894LLoaKe','SheetsPivotTableAdaptorModel','@univerjs-pro/engine-pivot','409944MjOCnX','6620SsISmB','extend','AddPivotTableCommand','executeCommand','renameField','setLabelManualFilter','UpdatePivotValuePositionCommand','@univerjs/sheets/facade','RenamePivotFieldMutation','SheetsPivotTableConfigModel','pivotTableId','FPivotTable','@univerjs-pro/sheets-pivot','updateValuePosition','MovePivotFieldCommand','5yLWdLp','setLabelSort','addPivotTable','4842948Fpzqiv','344xmWPUZ','50946JAvRRO','RemovePivotFieldCommand','ICommandService','toStringTag','SetPivotSubtotalTypeMutation','unitId','FWorkbook','getPivotTableByCell','setSubtotalType','154492bPIcWl','fieldIds','501357afmavb','getPivotTableIdByCell','22941kJfHcu','get'];_0x9b12=function(){return _0x27a0cd;};return _0x9b12();}const r=require('@univerjs/core'),b=require(_0x742a36(0x182)),P=require(_0x742a36(0x179)),a=require(_0x742a36(0x187));class I{constructor(_0x5e262f,_0x402036,_0x473d1f,_0x30ad06){const _0x361a4b=_0x742a36;l(this,_0x361a4b(0x165)),l(this,_0x361a4b(0x173)),l(this,_0x361a4b(0x185)),l(this,_0x361a4b(0x172)),(this['unitId']=_0x5e262f,this[_0x361a4b(0x173)]=_0x402036,this['pivotTableId']=_0x473d1f,this['_injector']=_0x30ad06);}[_0x742a36(0x170)](){const _0x4ec052=_0x742a36;return this[_0x4ec052(0x172)][_0x4ec052(0x16e)](a['SheetsPivotTableConfigModel'])[_0x4ec052(0x174)](this[_0x4ec052(0x165)],this['subUnitId'],this['pivotTableId']);}async['remove'](){const _0x1c1d76=_0x742a36;return await this[_0x1c1d76(0x172)][_0x1c1d76(0x16e)](r[_0x1c1d76(0x162)])['syncExecuteCommand'](a['RemovePivotTableMutation']['id'],{'unitId':this['unitId'],'subUnitId':this['subUnitId'],'pivotTableId':this[_0x1c1d76(0x185)]});}async['addField'](_0xc7866b,_0x3ec7cd,_0x49dd00){const _0x42d420=_0x742a36,_0x41d80d=this[_0x42d420(0x172)],_0x3bf5db=this[_0x42d420(0x165)],_0x375a16=this[_0x42d420(0x173)],_0x32a009=this['pivotTableId'],_0x2d9586=_0x41d80d['get'](r[_0x42d420(0x162)]),_0x1845c6=_0x41d80d['get'](a[_0x42d420(0x184)]),_0x29c9b0=_0x1845c6[_0x42d420(0x174)](_0x3bf5db,_0x375a16,_0x32a009),_0x5ce54d=_0x1845c6[_0x42d420(0x175)](_0x3bf5db,_0x32a009);if(!_0x29c9b0||!_0x5ce54d)return!0x1;let _0x508895=_0xc7866b;typeof _0x508895==_0x42d420(0x16f)&&(_0x508895=_0x1845c6[_0x42d420(0x175)](_0x3bf5db,_0x32a009)[_0x42d420(0x16a)][_0xc7866b]);const _0x31767c={'unitId':_0x3bf5db,'subUnitId':_0x375a16,'pivotTableId':_0x32a009,'dataFieldId':_0x508895,'fieldArea':_0x3ec7cd,'index':_0x49dd00};return _0x2d9586[_0x42d420(0x17e)](a['AddPivotFieldCommand']['id'],_0x31767c);}async['removeField'](_0x3c2bb7){const _0x1806ae=_0x742a36,_0x7ea3cc=this[_0x1806ae(0x172)],_0x487cc1=this[_0x1806ae(0x165)],_0x51bc1a=this['subUnitId'],_0x4a0d03=this[_0x1806ae(0x185)],_0x589972=_0x7ea3cc[_0x1806ae(0x16e)](r[_0x1806ae(0x162)]),_0x17b2a5={'unitId':_0x487cc1,'subUnitId':_0x51bc1a,'pivotTableId':_0x4a0d03,'fieldIds':_0x3c2bb7};return _0x589972[_0x1806ae(0x17e)](a[_0x1806ae(0x161)]['id'],_0x17b2a5);}async['updateFieldPosition'](_0x26f79a,_0x2adb5c,_0xb1655e){const _0x160da2=_0x742a36,_0x55bb65=this[_0x160da2(0x172)],_0x17a151=this[_0x160da2(0x165)],_0x52f11a=this[_0x160da2(0x173)],_0xaadeca=this[_0x160da2(0x185)],_0x4baff2=_0x55bb65[_0x160da2(0x16e)](r['ICommandService']),_0x27c6c5={'unitId':_0x17a151,'subUnitId':_0x52f11a,'pivotTableId':_0xaadeca,'fieldId':_0x26f79a,'area':_0x2adb5c,'index':_0xb1655e};return _0x4baff2['executeCommand'](a[_0x160da2(0x189)]['id'],_0x27c6c5);}async[_0x742a36(0x188)](_0x45047c,_0x3a9401){const _0x5428fa=_0x742a36,_0x8c50e0=this[_0x5428fa(0x172)],_0x30cd19=this[_0x5428fa(0x165)],_0x54a530=this['subUnitId'],_0x441aad=this[_0x5428fa(0x185)],_0xce7cb3=_0x8c50e0[_0x5428fa(0x16e)](r[_0x5428fa(0x162)]),_0x3bf08e={'unitId':_0x30cd19,'subUnitId':_0x54a530,'pivotTableId':_0x441aad,'position':_0x45047c,'index':_0x3a9401};return _0xce7cb3[_0x5428fa(0x17e)](a[_0x5428fa(0x181)]['id'],_0x3bf08e);}async[_0x742a36(0x168)](_0x5198ba,_0x1ef910){const _0x9ad1a3=_0x742a36,_0x8f363b=this['_injector'],_0x50f033=this['unitId'],_0xf6e324=this[_0x9ad1a3(0x173)],_0x5993f4=this[_0x9ad1a3(0x185)],_0x454286=_0x8f363b[_0x9ad1a3(0x16e)](r[_0x9ad1a3(0x162)]),_0x9d7faa={'unitId':_0x50f033,'subUnitId':_0xf6e324,'pivotTableId':_0x5993f4,'fieldId':_0x5198ba,'subtotalType':_0x1ef910};return _0x454286[_0x9ad1a3(0x17e)](a[_0x9ad1a3(0x164)]['id'],_0x9d7faa);}async[_0x742a36(0x18b)](_0x3e0044,_0xda1d85){const _0x5e171a=_0x742a36,_0x160bca=this[_0x5e171a(0x172)],_0x269e5a=this[_0x5e171a(0x165)],_0x32befa=this[_0x5e171a(0x173)],_0x3c848e=this[_0x5e171a(0x185)],_0xaba720=_0x160bca[_0x5e171a(0x16e)](r[_0x5e171a(0x162)]),_0x432a72={'unitId':_0x269e5a,'subUnitId':_0x32befa,'tableFieldId':_0x3e0044,'pivotTableId':_0x3c848e,'info':_0xda1d85};return _0xaba720[_0x5e171a(0x17e)](a['SetPivotSortCommand']['id'],_0x432a72);}async[_0x742a36(0x180)](_0x133644,_0x5ae4c5,_0xd12a53){const _0x3dcc69=_0x742a36,_0x2fd14a=this[_0x3dcc69(0x172)],_0x2a2fc7=this['unitId'],_0x170cdb=this[_0x3dcc69(0x173)],_0x40c85c=this[_0x3dcc69(0x185)],_0x3faa5f=_0x2fd14a['get'](r[_0x3dcc69(0x162)]),_0x2fa23a={'unitId':_0x2a2fc7,'subUnitId':_0x170cdb,'pivotTableId':_0x40c85c,'tableFieldId':_0x133644,'items':_0x5ae4c5,'isAll':_0xd12a53};return _0x3faa5f[_0x3dcc69(0x17e)](a['SetPivotFilterCommand']['id'],_0x2fa23a);}async[_0x742a36(0x17f)](_0x343c73,_0x34a7b9){const _0x25f1e4=_0x742a36,_0x428c2f=this[_0x25f1e4(0x172)],_0x14aaf6=this[_0x25f1e4(0x165)],_0x36cfaf=this['subUnitId'],_0x31d4f7=this['pivotTableId'],_0x44e3be=_0x428c2f[_0x25f1e4(0x16e)](r[_0x25f1e4(0x162)]),_0x362106={'unitId':_0x14aaf6,'subUnitId':_0x36cfaf,'pivotTableId':_0x31d4f7,'fieldId':_0x343c73,'name':_0x34a7b9};return _0x44e3be[_0x25f1e4(0x17e)](a[_0x25f1e4(0x183)]['id'],_0x362106);}}class S extends b[_0x742a36(0x166)]{async[_0x742a36(0x18c)](_0x167de3,_0x52d305,_0x2f6789){const _0x221a04=_0x742a36,_0x3c7f86=this['_injector'],_0x5e5837=_0x3c7f86[_0x221a04(0x16e)](r[_0x221a04(0x162)]),_0x17d4bf=P['generateHexNumber'](0x8),_0x1c2bfe={'positionType':_0x52d305,'pivotTableId':_0x17d4bf,'pivotTableConfig':{'targetCellInfo':_0x2f6789,'sourceRangeInfo':_0x167de3,'isEmpty':!0x0}};if(await _0x5e5837[_0x221a04(0x17e)](a[_0x221a04(0x17d)]['id'],_0x1c2bfe))return new I(_0x2f6789[_0x221a04(0x165)],_0x2f6789[_0x221a04(0x173)],_0x17d4bf,_0x3c7f86);}[_0x742a36(0x167)](_0xfc4f7a,_0xad7abd,_0x14df99,_0x5480d8){const _0x1f9a13=_0x742a36,_0x8a4923=this['_injector'],_0x1d9219=_0x8a4923[_0x1f9a13(0x16e)](a[_0x1f9a13(0x178)])[_0x1f9a13(0x16c)](_0xfc4f7a,_0xad7abd,_0x14df99,_0x5480d8);if(_0x1d9219)return new I(_0xfc4f7a,_0xad7abd,_0x1d9219,_0x8a4923);}}b[_0x742a36(0x166)][_0x742a36(0x17c)](S),exports[_0x742a36(0x186)]=I;