@univerjs-pro/sheets-print 1.0.0-alpha.2 → 1.0.0-alpha.4

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 (90) hide show
  1. package/README.md +6 -3
  2. package/lib/cjs/facade.js +1 -1
  3. package/lib/cjs/index.js +1 -1
  4. package/lib/cjs/locale/ar-SA.js +1 -1
  5. package/lib/cjs/locale/ca-ES.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/pl-PL.js +1 -1
  16. package/lib/cjs/locale/pt-BR.js +1 -1
  17. package/lib/cjs/locale/ru-RU.js +1 -1
  18. package/lib/cjs/locale/sk-SK.js +1 -1
  19. package/lib/cjs/locale/vi-VN.js +1 -1
  20. package/lib/cjs/locale/zh-CN.js +1 -1
  21. package/lib/cjs/locale/zh-HK.js +1 -1
  22. package/lib/cjs/locale/zh-TW.js +1 -1
  23. package/lib/es/facade.js +1 -1
  24. package/lib/es/index.js +1 -1
  25. package/lib/es/locale/ar-SA.js +1 -1
  26. package/lib/es/locale/ca-ES.js +1 -1
  27. package/lib/es/locale/de-DE.js +1 -1
  28. package/lib/es/locale/en-US.js +1 -1
  29. package/lib/es/locale/es-ES.js +1 -1
  30. package/lib/es/locale/fa-IR.js +1 -1
  31. package/lib/es/locale/fr-FR.js +1 -1
  32. package/lib/es/locale/id-ID.js +1 -1
  33. package/lib/es/locale/it-IT.js +1 -1
  34. package/lib/es/locale/ja-JP.js +1 -1
  35. package/lib/es/locale/ko-KR.js +1 -1
  36. package/lib/es/locale/pl-PL.js +1 -1
  37. package/lib/es/locale/pt-BR.js +1 -1
  38. package/lib/es/locale/ru-RU.js +1 -1
  39. package/lib/es/locale/sk-SK.js +1 -1
  40. package/lib/es/locale/vi-VN.js +1 -1
  41. package/lib/es/locale/zh-CN.js +1 -1
  42. package/lib/es/locale/zh-HK.js +1 -1
  43. package/lib/es/locale/zh-TW.js +1 -1
  44. package/lib/facade.js +1 -1
  45. package/lib/index.js +1 -1
  46. package/lib/locale/ar-SA.js +1 -1
  47. package/lib/locale/ca-ES.js +1 -1
  48. package/lib/locale/de-DE.js +1 -1
  49. package/lib/locale/en-US.js +1 -1
  50. package/lib/locale/es-ES.js +1 -1
  51. package/lib/locale/fa-IR.js +1 -1
  52. package/lib/locale/fr-FR.js +1 -1
  53. package/lib/locale/id-ID.js +1 -1
  54. package/lib/locale/it-IT.js +1 -1
  55. package/lib/locale/ja-JP.js +1 -1
  56. package/lib/locale/ko-KR.js +1 -1
  57. package/lib/locale/pl-PL.js +1 -1
  58. package/lib/locale/pt-BR.js +1 -1
  59. package/lib/locale/ru-RU.js +1 -1
  60. package/lib/locale/sk-SK.js +1 -1
  61. package/lib/locale/vi-VN.js +1 -1
  62. package/lib/locale/zh-CN.js +1 -1
  63. package/lib/locale/zh-HK.js +1 -1
  64. package/lib/locale/zh-TW.js +1 -1
  65. package/lib/types/index.d.ts +4 -5
  66. package/lib/types/views/components/SheetPrintPagePreview.spec.d.ts +1 -0
  67. package/lib/types/views/components/copy-sheet-extensions-for-printing.d.ts +3 -0
  68. package/lib/types/views/components/sheet-print-canvas-view.d.ts +2 -0
  69. package/lib/umd/facade.js +1 -1
  70. package/lib/umd/index.js +1 -1
  71. package/lib/umd/locale/ar-SA.js +1 -1
  72. package/lib/umd/locale/ca-ES.js +1 -1
  73. package/lib/umd/locale/de-DE.js +1 -1
  74. package/lib/umd/locale/en-US.js +1 -1
  75. package/lib/umd/locale/es-ES.js +1 -1
  76. package/lib/umd/locale/fa-IR.js +1 -1
  77. package/lib/umd/locale/fr-FR.js +1 -1
  78. package/lib/umd/locale/id-ID.js +1 -1
  79. package/lib/umd/locale/it-IT.js +1 -1
  80. package/lib/umd/locale/ja-JP.js +1 -1
  81. package/lib/umd/locale/ko-KR.js +1 -1
  82. package/lib/umd/locale/pl-PL.js +1 -1
  83. package/lib/umd/locale/pt-BR.js +1 -1
  84. package/lib/umd/locale/ru-RU.js +1 -1
  85. package/lib/umd/locale/sk-SK.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-HK.js +1 -1
  89. package/lib/umd/locale/zh-TW.js +1 -1
  90. package/package.json +17 -17
package/README.md CHANGED
@@ -1,9 +1,10 @@
1
1
  # @univerjs-pro/sheets-print
2
2
 
3
3
  [![npm version](https://img.shields.io/npm/v/@univerjs-pro/sheets-print?style=flat-square)](https://npmjs.com/package/@univerjs-pro/sheets-print)
4
+ [![license](https://img.shields.io/npm/l/@univerjs-pro/sheets-print?style=flat-square)](https://npmjs.com/package/@univerjs-pro/sheets-print)
4
5
  [![downloads](https://img.shields.io/npm/dm/@univerjs-pro/sheets-print?style=flat-square)](https://npmjs.com/package/@univerjs-pro/sheets-print)
5
6
 
6
- `@univerjs-pro/sheets-print` provides print integration for Univer Sheets.
7
+ `@univerjs-pro/sheets-print` is part of Univer Pro. Print integration for Univer Sheets.
7
8
 
8
9
  ## Package Overview
9
10
 
@@ -35,10 +36,12 @@ univer.registerPlugin(UniverSheetsPrintPlugin);
35
36
 
36
37
  ## Integration Notes
37
38
 
38
- Use this package with `@univerjs-pro/print` and the Univer Sheets UI packages.
39
+ - Keep this package on the same version as the other `@univerjs/*` and `@univerjs-pro/*` packages in your application.
40
+ - Import the package stylesheet once in the application entry before rendering Univer UI.
41
+ - Import locale files only for the languages your application enables.
42
+ - Use the facade entry when integrating through Univer Facade APIs.
39
43
 
40
44
  ## Resources
41
45
 
42
46
  - [Documentation](https://docs.univer.ai/guides/pro)
43
47
  - [NPM package](https://npmjs.com/package/@univerjs-pro/sheets-print)
44
-
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x488430=_0x21e3;(function(_0x5f424b,_0x3393da){const _0x3e3a41=_0x21e3,_0x2042ce=_0x5f424b();while(!![]){try{const _0x28193a=-parseInt(_0x3e3a41(0x164))/0x1+-parseInt(_0x3e3a41(0x184))/0x2*(-parseInt(_0x3e3a41(0x162))/0x3)+-parseInt(_0x3e3a41(0x151))/0x4+parseInt(_0x3e3a41(0x156))/0x5+-parseInt(_0x3e3a41(0x158))/0x6+parseInt(_0x3e3a41(0x17d))/0x7*(-parseInt(_0x3e3a41(0x16c))/0x8)+parseInt(_0x3e3a41(0x15a))/0x9;if(_0x28193a===_0x3393da)break;else _0x2042ce['push'](_0x2042ce['shift']());}catch(_0x53ecfc){_0x2042ce['push'](_0x2042ce['shift']());}}}(_0x35c5,0x85cba));let e=require('@univerjs-pro/sheets-print'),t=require('@univerjs/core'),n=require('@univerjs/sheets/facade'),r=require('@univerjs/core/facade'),i=require('@univerjs-pro/print');function _0x35c5(){const _0x35e1f8=['5684903xVCPlj','BeforeSheetPrintOpen','onCommandExecuted','SheetPrintOpen','includeHeaders','fireEvent','get','324JMAasg','FEnum','FRange','executeCommand','syncExecuteCommand','CanceledError','BeforeSheetPrintConfirm','extend','PrintScale','Event','SheetPrintConfirmed','updateLayoutConfig','2480068bwlCcX','_workbook','ConfirmSheetPrintOperation','PrintAlign','ICommandService','1036815qmFVOs','PrintHeaderFooterSymbol','5138070ayedlZ','FUniver','29390517Uavszp','getRangeImage','SheetScreenShotOperation','openPrintDialog','renderConfig','PrintFreeze','beforeCommandExecuted','FEventName','5769TsCiPO','getActiveWorkbook','947985oHcaFw','_injector','FWorkbook','PrintHeaderFooter','saveScreenshotToClipboard','registerEventHandler','print','SheetPrintClientService','8QzuPZB','_initialize','PrintArea','PrintPaperSize','ISheetPrintManagerService','cancel','disposeWithMe','getUnitId','hasPrintFacadePermission','layoutConfig','CancelSheetPrintOperation','BeforeSheetPrintCanceled','SheetPrintCanceled','SheetPrintOpenOperation','PrintPaperMargin','PrintDirection','getSheetId'];_0x35c5=function(){return _0x35e1f8;};return _0x35c5();}var a=class extends n[_0x488430(0x166)]{['updatePrintConfig'](_0x2a086f){const _0x3a0ae6=_0x488430;return this[_0x3a0ae6(0x165)][_0x3a0ae6(0x183)](e[_0x3a0ae6(0x170)])[_0x3a0ae6(0x150)](_0x2a086f),this;}['updatePrintRenderConfig'](_0xe10d64){const _0x20f054=_0x488430;return this[_0x20f054(0x165)][_0x20f054(0x183)](e[_0x20f054(0x170)])['updateRenderConfig'](_0xe10d64),this;}[_0x488430(0x16a)](){const _0x55eefd=_0x488430;return this[_0x55eefd(0x165)][_0x55eefd(0x183)](t['ICommandService'])[_0x55eefd(0x188)](e[_0x55eefd(0x153)]['id']);}[_0x488430(0x15d)](){const _0x146aef=_0x488430;return this[_0x146aef(0x165)][_0x146aef(0x183)](t[_0x146aef(0x155)])[_0x146aef(0x188)](e[_0x146aef(0x179)]['id']);}['closePrintDialog'](){const _0x4c6698=_0x488430;return this[_0x4c6698(0x165)][_0x4c6698(0x183)](t[_0x4c6698(0x155)])[_0x4c6698(0x188)](e['CancelSheetPrintOperation']['id']);}async[_0x488430(0x168)](){const _0x1d3c25=_0x488430;return(0x0,e['hasPrintFacadePermission'])(this[_0x1d3c25(0x165)])?this[_0x1d3c25(0x165)][_0x1d3c25(0x183)](t['ICommandService'])[_0x1d3c25(0x187)](e[_0x1d3c25(0x15c)]['id']):!0x1;}};n['FWorkbook']['extend'](a);var o=class extends n[_0x488430(0x186)]{['getScreenshot'](_0x2c3086){const _0x1f8db5=_0x488430;return(0x0,e[_0x1f8db5(0x174)])(this['_injector'])?this[_0x1f8db5(0x165)][_0x1f8db5(0x183)](e[_0x1f8db5(0x16b)])[_0x1f8db5(0x15b)](this[_0x1f8db5(0x152)][_0x1f8db5(0x173)](),this['_worksheet'][_0x1f8db5(0x17c)](),this['_range'],_0x2c3086==null?void 0x0:_0x2c3086[_0x1f8db5(0x181)]):!0x1;}};n[_0x488430(0x186)][_0x488430(0x18b)](o);var s=class extends r[_0x488430(0x161)]{get['BeforeSheetPrintOpen'](){const _0x1ef246=_0x488430;return _0x1ef246(0x17e);}get['BeforeSheetPrintConfirm'](){return'BeforeSheetPrintConfirm';}get[_0x488430(0x177)](){return'BeforeSheetPrintCanceled';}get[_0x488430(0x180)](){const _0x49b0c1=_0x488430;return _0x49b0c1(0x180);}get[_0x488430(0x14f)](){const _0x529f59=_0x488430;return _0x529f59(0x14f);}get['SheetPrintCanceled'](){const _0x73efbc=_0x488430;return _0x73efbc(0x178);}};r[_0x488430(0x161)][_0x488430(0x18b)](s);var c=class extends r[_0x488430(0x185)]{get[_0x488430(0x16e)](){return e['PrintArea'];}get['PrintAlign'](){const _0x468fd1=_0x488430;return i[_0x468fd1(0x154)];}get[_0x488430(0x16f)](){return t['PaperType'];}get[_0x488430(0x17a)](){const _0x3b68cb=_0x488430;return i[_0x3b68cb(0x17a)];}get[_0x488430(0x18c)](){const _0x36610d=_0x488430;return i[_0x36610d(0x18c)];}get[_0x488430(0x17b)](){const _0x231cf9=_0x488430;return i[_0x231cf9(0x17b)];}get[_0x488430(0x15f)](){const _0x2a53b1=_0x488430;return e[_0x2a53b1(0x15f)];}get[_0x488430(0x167)](){const _0x2c204b=_0x488430;return e[_0x2c204b(0x167)];}get['PrintHeaderFooterSymbol'](){const _0xb17983=_0x488430;return e[_0xb17983(0x157)];}};function _0x21e3(_0xabe071,_0x35fda3){_0xabe071=_0xabe071-0x14e;const _0x35c5ca=_0x35c5();let _0x21e3bf=_0x35c5ca[_0xabe071];return _0x21e3bf;}r[_0x488430(0x185)]['extend'](c);var l=class extends r[_0x488430(0x159)]{[_0x488430(0x16d)](_0x53afc6){const _0xbd61ef=_0x488430;let _0x372d98=_0x53afc6[_0xbd61ef(0x183)](t[_0xbd61ef(0x155)]);this[_0xbd61ef(0x172)](this[_0xbd61ef(0x169)](this[_0xbd61ef(0x14e)][_0xbd61ef(0x17e)],()=>_0x372d98[_0xbd61ef(0x160)](_0x3edf47=>{const _0x34abc7=_0xbd61ef;if(_0x3edf47['id']===e['SheetPrintOpenOperation']['id']){let _0x72087c=this[_0x34abc7(0x163)]();if(!_0x72087c)return;let _0x3322ec={'workbook':_0x72087c,'worksheet':_0x72087c['getActiveSheet']()};if(_0x3322ec==null)return;if(this[_0x34abc7(0x182)](this[_0x34abc7(0x14e)][_0x34abc7(0x17e)],_0x3322ec),_0x3322ec['cancel'])throw new t[(_0x34abc7(0x189))]();}}))),this['disposeWithMe'](this[_0xbd61ef(0x169)](this[_0xbd61ef(0x14e)][_0xbd61ef(0x18a)],()=>_0x372d98['beforeCommandExecuted'](_0x1ffcf1=>{const _0x5cefb7=_0xbd61ef;if(_0x1ffcf1['id']===e['ConfirmSheetPrintOperation']['id']){let _0x2e02df=_0x53afc6[_0x5cefb7(0x183)](e[_0x5cefb7(0x170)]);if(!this['getActiveWorkbook']())return;let _0x252e7f={'layoutConfig':_0x2e02df['layoutConfig'],'renderConfig':_0x2e02df[_0x5cefb7(0x15e)]};if(_0x252e7f==null)return;if(this[_0x5cefb7(0x182)](this[_0x5cefb7(0x14e)][_0x5cefb7(0x18a)],_0x252e7f),_0x252e7f[_0x5cefb7(0x171)])throw new t[(_0x5cefb7(0x189))]();}}))),this[_0xbd61ef(0x172)](this[_0xbd61ef(0x169)](this['Event']['BeforeSheetPrintCanceled'],()=>_0x372d98['beforeCommandExecuted'](_0x278356=>{const _0x591ea5=_0xbd61ef;if(_0x278356['id']===e[_0x591ea5(0x176)]['id']){let _0x1a6025=_0x53afc6['get'](e[_0x591ea5(0x170)]);if(!this[_0x591ea5(0x163)]())return;let _0x15872b={'layoutConfig':_0x1a6025[_0x591ea5(0x175)],'renderConfig':_0x1a6025[_0x591ea5(0x15e)]};if(_0x15872b==null)return;if(this[_0x591ea5(0x182)](this[_0x591ea5(0x14e)][_0x591ea5(0x177)],_0x15872b),_0x15872b[_0x591ea5(0x171)])throw new t[(_0x591ea5(0x189))]();}}))),this[_0xbd61ef(0x172)](this[_0xbd61ef(0x169)](this['Event'][_0xbd61ef(0x180)],()=>_0x372d98['onCommandExecuted'](_0xf69b52=>{const _0x56e72e=_0xbd61ef;if(_0xf69b52['id']===e[_0x56e72e(0x179)]['id']){let _0x4c48c4=this[_0x56e72e(0x163)]();if(!_0x4c48c4)return;let _0x1a2101={'workbook':_0x4c48c4,'worksheet':_0x4c48c4['getActiveSheet']()};if(_0x1a2101==null)return;this[_0x56e72e(0x182)](this['Event'][_0x56e72e(0x180)],_0x1a2101);}}))),this[_0xbd61ef(0x172)](this[_0xbd61ef(0x169)](this['Event'][_0xbd61ef(0x14f)],()=>_0x372d98['onCommandExecuted'](_0x27cdeb=>{const _0x1d492f=_0xbd61ef;if(_0x27cdeb['id']===e[_0x1d492f(0x153)]['id']){let _0xd61eca=_0x53afc6[_0x1d492f(0x183)](e[_0x1d492f(0x170)]);if(!this['getActiveWorkbook']())return;let _0x4b266d={'layoutConfig':_0xd61eca[_0x1d492f(0x175)],'renderConfig':_0xd61eca[_0x1d492f(0x15e)]};if(_0x4b266d==null)return;this[_0x1d492f(0x182)](this['Event'][_0x1d492f(0x14f)],_0x4b266d);}}))),this[_0xbd61ef(0x172)](this[_0xbd61ef(0x169)](this[_0xbd61ef(0x14e)]['SheetPrintCanceled'],()=>_0x372d98[_0xbd61ef(0x17f)](_0x13db6a=>{const _0x2f6487=_0xbd61ef;if(_0x13db6a['id']===e[_0x2f6487(0x176)]['id']){let _0x28e658=_0x53afc6[_0x2f6487(0x183)](e[_0x2f6487(0x170)]);if(!this[_0x2f6487(0x163)]())return;let _0x468545={'layoutConfig':_0x28e658[_0x2f6487(0x175)],'renderConfig':_0x28e658['renderConfig']};if(_0x468545==null)return;this[_0x2f6487(0x182)](this[_0x2f6487(0x14e)][_0x2f6487(0x178)],_0x468545);}})));}};r[_0x488430(0x159)]['extend'](l);
1
+ const _0x4a2c53=_0x3771;function _0x13dc(){const _0x84090f=['syncExecuteCommand','PrintPaperSize','SheetPrintCanceled','getScreenshot','includeHeaders','openPrintDialog','PrintFreeze','5622696KGHGjl','810888ODoQiL','8695932vyufjN','PrintHeaderFooter','PrintPaperMargin','PrintHeaderFooterSymbol','FEventName','updatePrintConfig','SheetPrintConfirmed','FUniver','_workbook','5722540GVFzVJ','saveScreenshotToClipboard','PrintDirection','PrintScale','_injector','layoutConfig','BeforeSheetPrintConfirm','onCommandExecuted','getUnitId','Event','disposeWithMe','ConfirmSheetPrintOperation','PrintArea','getActiveWorkbook','PrintAlign','registerEventHandler','BeforeSheetPrintCanceled','getSheetId','closePrintDialog','FRange','PaperType','SheetPrintOpen','CancelSheetPrintOperation','CanceledError','fireEvent','get','5256820CcMtFR','cancel','FEnum','extend','ISheetPrintManagerService','beforeCommandExecuted','FWorkbook','SheetScreenShotOperation','SheetPrintOpenOperation','BeforeSheetPrintOpen','getActiveSheet','1266269UxHIJs','renderConfig','ICommandService','3899841fMhEUm','2uphHgR','_worksheet','updatePrintRenderConfig','6bLjpfD'];_0x13dc=function(){return _0x84090f;};return _0x13dc();}(function(_0x446800,_0x497e77){const _0x132cfe=_0x3771,_0x49dc7d=_0x446800();while(!![]){try{const _0x33ed51=parseInt(_0x132cfe(0x20e))/0x1*(-parseInt(_0x132cfe(0x212))/0x2)+parseInt(_0x132cfe(0x211))/0x3+parseInt(_0x132cfe(0x203))/0x4+parseInt(_0x132cfe(0x228))/0x5*(parseInt(_0x132cfe(0x215))/0x6)+-parseInt(_0x132cfe(0x21f))/0x7+parseInt(_0x132cfe(0x21e))/0x8+-parseInt(_0x132cfe(0x21d))/0x9;if(_0x33ed51===_0x497e77)break;else _0x49dc7d['push'](_0x49dc7d['shift']());}catch(_0x3a0b13){_0x49dc7d['push'](_0x49dc7d['shift']());}}}(_0x13dc,0xb16cc));let e=require('@univerjs-pro/sheets-print'),t=require('@univerjs/core'),n=require('@univerjs/sheets/facade'),r=require('@univerjs/core/facade'),i=require('@univerjs-pro/print');var a=class extends n[_0x4a2c53(0x209)]{[_0x4a2c53(0x224)](_0x314fde){const _0x271e9=_0x4a2c53;return this[_0x271e9(0x22c)][_0x271e9(0x202)](e[_0x271e9(0x207)])['updateLayoutConfig'](_0x314fde),this;}[_0x4a2c53(0x214)](_0x31f359){const _0x2cecdb=_0x4a2c53;return this[_0x2cecdb(0x22c)][_0x2cecdb(0x202)](e['ISheetPrintManagerService'])['updateRenderConfig'](_0x31f359),this;}['print'](){const _0x67529f=_0x4a2c53;return this[_0x67529f(0x22c)][_0x67529f(0x202)](t[_0x67529f(0x210)])[_0x67529f(0x216)](e[_0x67529f(0x1f4)]['id']);}[_0x4a2c53(0x21b)](){const _0x2db01c=_0x4a2c53;return this['_injector']['get'](t[_0x2db01c(0x210)])[_0x2db01c(0x216)](e[_0x2db01c(0x20b)]['id']);}[_0x4a2c53(0x1fb)](){const _0x2b73c9=_0x4a2c53;return this[_0x2b73c9(0x22c)]['get'](t['ICommandService'])[_0x2b73c9(0x216)](e[_0x2b73c9(0x1ff)]['id']);}async[_0x4a2c53(0x229)](){const _0x2c3bef=_0x4a2c53;return(0x0,e['hasPrintFacadePermission'])(this['_injector'])?this[_0x2c3bef(0x22c)][_0x2c3bef(0x202)](t['ICommandService'])['executeCommand'](e[_0x2c3bef(0x20a)]['id']):!0x1;}};n[_0x4a2c53(0x209)][_0x4a2c53(0x206)](a);var o=class extends n[_0x4a2c53(0x1fc)]{[_0x4a2c53(0x219)](_0x45b7cb){const _0x340111=_0x4a2c53;return(0x0,e['hasPrintFacadePermission'])(this['_injector'])?this[_0x340111(0x22c)][_0x340111(0x202)](e['SheetPrintClientService'])['getRangeImage'](this[_0x340111(0x227)][_0x340111(0x1f1)](),this[_0x340111(0x213)][_0x340111(0x1fa)](),this['_range'],_0x45b7cb==null?void 0x0:_0x45b7cb[_0x340111(0x21a)]):!0x1;}};n[_0x4a2c53(0x1fc)][_0x4a2c53(0x206)](o);function _0x3771(_0x3a86f4,_0x1866e5){_0x3a86f4=_0x3a86f4-0x1f0;const _0x13dc15=_0x13dc();let _0x3771e8=_0x13dc15[_0x3a86f4];return _0x3771e8;}var s=class extends r[_0x4a2c53(0x223)]{get['BeforeSheetPrintOpen'](){const _0x38dece=_0x4a2c53;return _0x38dece(0x20c);}get[_0x4a2c53(0x22e)](){const _0x5844e4=_0x4a2c53;return _0x5844e4(0x22e);}get[_0x4a2c53(0x1f9)](){return'BeforeSheetPrintCanceled';}get[_0x4a2c53(0x1fe)](){const _0x4a1a21=_0x4a2c53;return _0x4a1a21(0x1fe);}get[_0x4a2c53(0x225)](){return'SheetPrintConfirmed';}get[_0x4a2c53(0x218)](){const _0x298e7e=_0x4a2c53;return _0x298e7e(0x218);}};r[_0x4a2c53(0x223)]['extend'](s);var c=class extends r[_0x4a2c53(0x205)]{get[_0x4a2c53(0x1f5)](){const _0x5988bd=_0x4a2c53;return e[_0x5988bd(0x1f5)];}get[_0x4a2c53(0x1f7)](){const _0x1a920c=_0x4a2c53;return i[_0x1a920c(0x1f7)];}get[_0x4a2c53(0x217)](){const _0xa08d80=_0x4a2c53;return t[_0xa08d80(0x1fd)];}get['PrintPaperMargin'](){const _0x381784=_0x4a2c53;return i[_0x381784(0x221)];}get[_0x4a2c53(0x22b)](){const _0x16389a=_0x4a2c53;return i[_0x16389a(0x22b)];}get[_0x4a2c53(0x22a)](){const _0x3f371a=_0x4a2c53;return i[_0x3f371a(0x22a)];}get[_0x4a2c53(0x21c)](){const _0x1a4d37=_0x4a2c53;return e[_0x1a4d37(0x21c)];}get['PrintHeaderFooter'](){const _0x47c397=_0x4a2c53;return e[_0x47c397(0x220)];}get[_0x4a2c53(0x222)](){const _0x37e069=_0x4a2c53;return e[_0x37e069(0x222)];}};r[_0x4a2c53(0x205)][_0x4a2c53(0x206)](c);var l=class extends r[_0x4a2c53(0x226)]{['_initialize'](_0x301c49){const _0x51e48d=_0x4a2c53;let _0x3901e1=_0x301c49[_0x51e48d(0x202)](t['ICommandService']);this['disposeWithMe'](this[_0x51e48d(0x1f8)](this[_0x51e48d(0x1f2)]['BeforeSheetPrintOpen'],()=>_0x3901e1[_0x51e48d(0x208)](_0x217587=>{const _0x378312=_0x51e48d;if(_0x217587['id']===e[_0x378312(0x20b)]['id']){let _0x92d69c=this[_0x378312(0x1f6)]();if(!_0x92d69c)return;let _0x44a9a0={'workbook':_0x92d69c,'worksheet':_0x92d69c[_0x378312(0x20d)]()};if(_0x44a9a0==null)return;if(this['fireEvent'](this[_0x378312(0x1f2)][_0x378312(0x20c)],_0x44a9a0),_0x44a9a0[_0x378312(0x204)])throw new t[(_0x378312(0x200))]();}}))),this['disposeWithMe'](this[_0x51e48d(0x1f8)](this[_0x51e48d(0x1f2)][_0x51e48d(0x22e)],()=>_0x3901e1[_0x51e48d(0x208)](_0x4044b4=>{const _0x280b70=_0x51e48d;if(_0x4044b4['id']===e[_0x280b70(0x1f4)]['id']){let _0x1416a5=_0x301c49[_0x280b70(0x202)](e[_0x280b70(0x207)]);if(!this['getActiveWorkbook']())return;let _0x3102e9={'layoutConfig':_0x1416a5[_0x280b70(0x22d)],'renderConfig':_0x1416a5[_0x280b70(0x20f)]};if(_0x3102e9==null)return;if(this[_0x280b70(0x201)](this[_0x280b70(0x1f2)][_0x280b70(0x22e)],_0x3102e9),_0x3102e9[_0x280b70(0x204)])throw new t['CanceledError']();}}))),this[_0x51e48d(0x1f3)](this['registerEventHandler'](this[_0x51e48d(0x1f2)][_0x51e48d(0x1f9)],()=>_0x3901e1[_0x51e48d(0x208)](_0x1270a8=>{const _0x59c7ff=_0x51e48d;if(_0x1270a8['id']===e[_0x59c7ff(0x1ff)]['id']){let _0x38a07c=_0x301c49[_0x59c7ff(0x202)](e[_0x59c7ff(0x207)]);if(!this['getActiveWorkbook']())return;let _0x3f4cdc={'layoutConfig':_0x38a07c[_0x59c7ff(0x22d)],'renderConfig':_0x38a07c[_0x59c7ff(0x20f)]};if(_0x3f4cdc==null)return;if(this[_0x59c7ff(0x201)](this['Event'][_0x59c7ff(0x1f9)],_0x3f4cdc),_0x3f4cdc[_0x59c7ff(0x204)])throw new t[(_0x59c7ff(0x200))]();}}))),this[_0x51e48d(0x1f3)](this['registerEventHandler'](this[_0x51e48d(0x1f2)][_0x51e48d(0x1fe)],()=>_0x3901e1[_0x51e48d(0x1f0)](_0x1c06b1=>{const _0x11c3c5=_0x51e48d;if(_0x1c06b1['id']===e[_0x11c3c5(0x20b)]['id']){let _0x2ec066=this[_0x11c3c5(0x1f6)]();if(!_0x2ec066)return;let _0x3c4c21={'workbook':_0x2ec066,'worksheet':_0x2ec066[_0x11c3c5(0x20d)]()};if(_0x3c4c21==null)return;this[_0x11c3c5(0x201)](this[_0x11c3c5(0x1f2)][_0x11c3c5(0x1fe)],_0x3c4c21);}}))),this['disposeWithMe'](this['registerEventHandler'](this[_0x51e48d(0x1f2)][_0x51e48d(0x225)],()=>_0x3901e1['onCommandExecuted'](_0x2cc07e=>{const _0x18f179=_0x51e48d;if(_0x2cc07e['id']===e[_0x18f179(0x1f4)]['id']){let _0x30fba7=_0x301c49[_0x18f179(0x202)](e[_0x18f179(0x207)]);if(!this[_0x18f179(0x1f6)]())return;let _0x47d152={'layoutConfig':_0x30fba7[_0x18f179(0x22d)],'renderConfig':_0x30fba7['renderConfig']};if(_0x47d152==null)return;this[_0x18f179(0x201)](this['Event'][_0x18f179(0x225)],_0x47d152);}}))),this[_0x51e48d(0x1f3)](this[_0x51e48d(0x1f8)](this[_0x51e48d(0x1f2)][_0x51e48d(0x218)],()=>_0x3901e1['onCommandExecuted'](_0x26f9f1=>{const _0x1e4ba9=_0x51e48d;if(_0x26f9f1['id']===e[_0x1e4ba9(0x1ff)]['id']){let _0x46bdf7=_0x301c49[_0x1e4ba9(0x202)](e['ISheetPrintManagerService']);if(!this['getActiveWorkbook']())return;let _0x4423c0={'layoutConfig':_0x46bdf7[_0x1e4ba9(0x22d)],'renderConfig':_0x46bdf7[_0x1e4ba9(0x20f)]};if(_0x4423c0==null)return;this[_0x1e4ba9(0x201)](this[_0x1e4ba9(0x1f2)][_0x1e4ba9(0x218)],_0x4423c0);}})));}};r[_0x4a2c53(0x226)][_0x4a2c53(0x206)](l);