@univerjs-pro/sheets-print 0.21.1 → 0.22.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 (58) hide show
  1. package/README.md +35 -7
  2. package/lib/cjs/facade.js +1 -1
  3. package/lib/cjs/index.js +1 -1
  4. package/lib/cjs/locale/ca-ES.js +1 -1
  5. package/lib/cjs/locale/en-US.js +1 -1
  6. package/lib/cjs/locale/es-ES.js +1 -1
  7. package/lib/cjs/locale/fa-IR.js +1 -1
  8. package/lib/cjs/locale/fr-FR.js +1 -1
  9. package/lib/cjs/locale/ja-JP.js +1 -1
  10. package/lib/cjs/locale/ko-KR.js +1 -1
  11. package/lib/cjs/locale/ru-RU.js +1 -1
  12. package/lib/cjs/locale/sk-SK.js +1 -1
  13. package/lib/cjs/locale/vi-VN.js +1 -1
  14. package/lib/cjs/locale/zh-CN.js +1 -1
  15. package/lib/cjs/locale/zh-TW.js +1 -1
  16. package/lib/es/facade.js +1 -1
  17. package/lib/es/index.js +1 -1
  18. package/lib/es/locale/ca-ES.js +1 -1
  19. package/lib/es/locale/en-US.js +1 -1
  20. package/lib/es/locale/es-ES.js +1 -1
  21. package/lib/es/locale/fa-IR.js +1 -1
  22. package/lib/es/locale/fr-FR.js +1 -1
  23. package/lib/es/locale/ja-JP.js +1 -1
  24. package/lib/es/locale/ko-KR.js +1 -1
  25. package/lib/es/locale/ru-RU.js +1 -1
  26. package/lib/es/locale/sk-SK.js +1 -1
  27. package/lib/es/locale/vi-VN.js +1 -1
  28. package/lib/es/locale/zh-CN.js +1 -1
  29. package/lib/es/locale/zh-TW.js +1 -1
  30. package/lib/facade.js +1 -1
  31. package/lib/index.js +1 -1
  32. package/lib/locale/ca-ES.js +1 -1
  33. package/lib/locale/en-US.js +1 -1
  34. package/lib/locale/es-ES.js +1 -1
  35. package/lib/locale/fa-IR.js +1 -1
  36. package/lib/locale/fr-FR.js +1 -1
  37. package/lib/locale/ja-JP.js +1 -1
  38. package/lib/locale/ko-KR.js +1 -1
  39. package/lib/locale/ru-RU.js +1 -1
  40. package/lib/locale/sk-SK.js +1 -1
  41. package/lib/locale/vi-VN.js +1 -1
  42. package/lib/locale/zh-CN.js +1 -1
  43. package/lib/locale/zh-TW.js +1 -1
  44. package/lib/umd/facade.js +1 -1
  45. package/lib/umd/index.js +1 -1
  46. package/lib/umd/locale/ca-ES.js +1 -1
  47. package/lib/umd/locale/en-US.js +1 -1
  48. package/lib/umd/locale/es-ES.js +1 -1
  49. package/lib/umd/locale/fa-IR.js +1 -1
  50. package/lib/umd/locale/fr-FR.js +1 -1
  51. package/lib/umd/locale/ja-JP.js +1 -1
  52. package/lib/umd/locale/ko-KR.js +1 -1
  53. package/lib/umd/locale/ru-RU.js +1 -1
  54. package/lib/umd/locale/sk-SK.js +1 -1
  55. package/lib/umd/locale/vi-VN.js +1 -1
  56. package/lib/umd/locale/zh-CN.js +1 -1
  57. package/lib/umd/locale/zh-TW.js +1 -1
  58. package/package.json +23 -17
package/README.md CHANGED
@@ -1,16 +1,44 @@
1
1
  # @univerjs-pro/sheets-print
2
2
 
3
- [![npm version](https://img.shields.io/npm/v/sheets-print)](https://npmjs.org/packages/@univerjs-pro/sheets-print)
4
- [![license](https://img.shields.io/npm/l/sheets-print)](https://img.shields.io/npm/l/@univerjs-pro/sheets-print)
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
+ [![downloads](https://img.shields.io/npm/dm/@univerjs-pro/sheets-print?style=flat-square)](https://npmjs.com/package/@univerjs-pro/sheets-print)
5
5
 
6
- ## Introduction
6
+ `@univerjs-pro/sheets-print` provides print integration for Univer Sheets.
7
7
 
8
- > TODO: Introduction
8
+ ## Package Overview
9
+
10
+ | Package | UMD global | CSS | Locales | Facade entry |
11
+ | --- | --- | :---: | :---: | :---: |
12
+ | `@univerjs-pro/sheets-print` | `UniverProSheetsPrint` | Yes | Yes | Yes |
13
+
14
+ ## Installation
15
+
16
+ ```sh
17
+ pnpm add @univerjs-pro/sheets-print
18
+ # or
19
+ npm install @univerjs-pro/sheets-print
20
+ ```
21
+
22
+ Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
9
23
 
10
24
  ## Usage
11
25
 
12
- ### Installation
26
+ ```ts
27
+ import '@univerjs-pro/sheets-print/lib/index.css';
28
+ import EnUS from '@univerjs-pro/sheets-print/locale/en-US';
29
+ import { UniverSheetsPrintPlugin } from '@univerjs-pro/sheets-print';
30
+
31
+ univer.registerPlugin(UniverSheetsPrintPlugin);
13
32
 
14
- ```shell
15
- npm i @univerjs-pro/sheets-print
33
+ // Merge EnUS into your Univer locale map when this package contributes UI text.
16
34
  ```
35
+
36
+ ## Integration Notes
37
+
38
+ Use this package with `@univerjs-pro/print` and the Univer Sheets UI packages.
39
+
40
+ ## Resources
41
+
42
+ - [Documentation](https://docs.univer.ai/guides/pro)
43
+ - [NPM package](https://npmjs.com/package/@univerjs-pro/sheets-print)
44
+
package/lib/cjs/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x92f4e4=_0x180a;(function(_0x1d8e7d,_0x571bbd){const _0x37fbbc=_0x180a,_0x2101b8=_0x1d8e7d();while(!![]){try{const _0x573728=parseInt(_0x37fbbc(0xc6))/0x1+-parseInt(_0x37fbbc(0xac))/0x2+-parseInt(_0x37fbbc(0xa6))/0x3+parseInt(_0x37fbbc(0x92))/0x4*(parseInt(_0x37fbbc(0xb3))/0x5)+-parseInt(_0x37fbbc(0x8f))/0x6*(-parseInt(_0x37fbbc(0xd2))/0x7)+-parseInt(_0x37fbbc(0xbd))/0x8*(parseInt(_0x37fbbc(0x9f))/0x9)+-parseInt(_0x37fbbc(0x9a))/0xa*(parseInt(_0x37fbbc(0xbf))/0xb);if(_0x573728===_0x571bbd)break;else _0x2101b8['push'](_0x2101b8['shift']());}catch(_0x47db3b){_0x2101b8['push'](_0x2101b8['shift']());}}}(_0xc2aa,0x55dda));let _univerjs_pro_sheets_print=require('@univerjs-pro/sheets-print'),_univerjs_core=require('@univerjs/core'),_univerjs_sheets_facade=require('@univerjs/sheets/facade'),_univerjs_core_facade=require('@univerjs/core/facade'),_univerjs_pro_print=require('@univerjs-pro/print');var FWorkbookSheetsPrintMixin=class extends _univerjs_sheets_facade[_0x92f4e4(0xd0)]{[_0x92f4e4(0xbb)](_0x34ba50){const _0x37b10a=_0x92f4e4;return this[_0x37b10a(0xa8)][_0x37b10a(0xa1)](_univerjs_pro_sheets_print['ISheetPrintManagerService'])[_0x37b10a(0x95)](_0x34ba50),this;}[_0x92f4e4(0x9d)](_0x94f48b){const _0x563498=_0x92f4e4;return this[_0x563498(0xa8)]['get'](_univerjs_pro_sheets_print[_0x563498(0xc5)])[_0x563498(0xaa)](_0x94f48b),this;}[_0x92f4e4(0xb2)](){const _0x27d52c=_0x92f4e4;return this[_0x27d52c(0xa8)][_0x27d52c(0xa1)](_univerjs_core['ICommandService'])[_0x27d52c(0xa3)](_univerjs_pro_sheets_print['ConfirmSheetPrintOperation']['id']);}[_0x92f4e4(0xab)](){const _0x37e65f=_0x92f4e4;return this['_injector'][_0x37e65f(0xa1)](_univerjs_core['ICommandService'])[_0x37e65f(0xa3)](_univerjs_pro_sheets_print[_0x37e65f(0xcf)]['id']);}[_0x92f4e4(0x9c)](){const _0x4df6c1=_0x92f4e4;return this['_injector'][_0x4df6c1(0xa1)](_univerjs_core[_0x4df6c1(0xa9)])[_0x4df6c1(0xa3)](_univerjs_pro_sheets_print[_0x4df6c1(0x8d)]['id']);}async[_0x92f4e4(0xc3)](){const _0x5c3e42=_0x92f4e4;if(!(0x0,_univerjs_pro_sheets_print[_0x5c3e42(0x94)])(this[_0x5c3e42(0xa8)]))return![];return this['_injector']['get'](_univerjs_core['ICommandService'])[_0x5c3e42(0x99)](_univerjs_pro_sheets_print[_0x5c3e42(0xa7)]['id']);}};function _0xc2aa(){const _0x45a837=['ICommandService','updateRenderConfig','openPrintDialog','344118lBJHaO','getActiveUniverSheet','FRange','_worksheet','disposeWithMe','BeforeSheetPrintOpen','print','49870kVfgBE','beforeCommandExecuted','FUniver','PrintDirection','PrintArea','PrintFreeze','CanceledError','PrintScale','updatePrintConfig','SheetPrintOpen','64568lycufS','includeHeaders','25883yqRzrr','PrintHeaderFooter','PrintPaperMargin','getActiveSheet','saveScreenshotToClipboard','onCommandExecuted','ISheetPrintManagerService','416629fHNaaf','PrintHeaderFooterSymbol','FEnum','BeforeSheetPrintConfirm','ConfirmSheetPrintOperation','renderConfig','fireEvent','PrintAlign','SheetPrintCanceled','SheetPrintOpenOperation','FWorkbook','SheetPrintConfirmed','105ZXJDzg','PaperType','CancelSheetPrintOperation','cancel','280338NijdcR','_range','layoutConfig','12byMmja','getScreenshot','hasPrintFacadePermission','updateLayoutConfig','registerEventHandler','FEventName','getSheetId','executeCommand','70AJXwYt','_workbook','closePrintDialog','updatePrintRenderConfig','extend','459TTDdHF','BeforeSheetPrintCanceled','get','getUnitId','syncExecuteCommand','Event','getRangeImage','586617EHfhnQ','SheetScreenShotOperation','_injector'];_0xc2aa=function(){return _0x45a837;};return _0xc2aa();}_univerjs_sheets_facade[_0x92f4e4(0xd0)]['extend'](FWorkbookSheetsPrintMixin);var FRangeSheetsPrint=class extends _univerjs_sheets_facade[_0x92f4e4(0xae)]{[_0x92f4e4(0x93)](_0x13ff02){const _0x567149=_0x92f4e4;if(!(0x0,_univerjs_pro_sheets_print[_0x567149(0x94)])(this[_0x567149(0xa8)]))return![];return this['_injector']['get'](_univerjs_pro_sheets_print['SheetPrintClientService'])[_0x567149(0xa5)](this[_0x567149(0x9b)][_0x567149(0xa2)](),this[_0x567149(0xaf)][_0x567149(0x98)](),this[_0x567149(0x90)],_0x13ff02===null||_0x13ff02===void 0x0?void 0x0:_0x13ff02[_0x567149(0xbe)]);}};_univerjs_sheets_facade['FRange'][_0x92f4e4(0x9e)](FRangeSheetsPrint);function _0x180a(_0x5800f3,_0x31c647){_0x5800f3=_0x5800f3-0x8c;const _0xc2aaac=_0xc2aa();let _0x180a33=_0xc2aaac[_0x5800f3];return _0x180a33;}var FSheetsPrintEventNameMixin=class extends _univerjs_core_facade['FEventName']{get[_0x92f4e4(0xb1)](){const _0x55effe=_0x92f4e4;return _0x55effe(0xb1);}get[_0x92f4e4(0xc9)](){const _0x55d7a8=_0x92f4e4;return _0x55d7a8(0xc9);}get[_0x92f4e4(0xa0)](){const _0x105c7f=_0x92f4e4;return _0x105c7f(0xa0);}get[_0x92f4e4(0xbc)](){const _0x21f4f8=_0x92f4e4;return _0x21f4f8(0xbc);}get['SheetPrintConfirmed'](){const _0x4c6a15=_0x92f4e4;return _0x4c6a15(0xd1);}get[_0x92f4e4(0xce)](){const _0x479861=_0x92f4e4;return _0x479861(0xce);}};_univerjs_core_facade[_0x92f4e4(0x97)][_0x92f4e4(0x9e)](FSheetsPrintEventNameMixin);var FSheetsPrintEnumMixin=class extends _univerjs_core_facade['FEnum']{get[_0x92f4e4(0xb7)](){const _0x4bb681=_0x92f4e4;return _univerjs_pro_sheets_print[_0x4bb681(0xb7)];}get[_0x92f4e4(0xcd)](){const _0x1b9c0a=_0x92f4e4;return _univerjs_pro_print[_0x1b9c0a(0xcd)];}get['PrintPaperSize'](){const _0x38cd37=_0x92f4e4;return _univerjs_core[_0x38cd37(0x8c)];}get[_0x92f4e4(0xc1)](){const _0x991a3f=_0x92f4e4;return _univerjs_pro_print[_0x991a3f(0xc1)];}get[_0x92f4e4(0xba)](){const _0x12f80e=_0x92f4e4;return _univerjs_pro_print[_0x12f80e(0xba)];}get[_0x92f4e4(0xb6)](){const _0x4f6f96=_0x92f4e4;return _univerjs_pro_print[_0x4f6f96(0xb6)];}get[_0x92f4e4(0xb8)](){const _0x64aa3a=_0x92f4e4;return _univerjs_pro_sheets_print[_0x64aa3a(0xb8)];}get[_0x92f4e4(0xc0)](){const _0x5e6c58=_0x92f4e4;return _univerjs_pro_sheets_print[_0x5e6c58(0xc0)];}get[_0x92f4e4(0xc7)](){const _0x3d43b5=_0x92f4e4;return _univerjs_pro_sheets_print[_0x3d43b5(0xc7)];}};_univerjs_core_facade[_0x92f4e4(0xc8)][_0x92f4e4(0x9e)](FSheetsPrintEnumMixin);var FUniverSheetsPrintMixin=class extends _univerjs_core_facade[_0x92f4e4(0xb5)]{['_initialize'](_0x4b37e9){const _0x4f04b5=_0x92f4e4,_0x403dec=_0x4b37e9[_0x4f04b5(0xa1)](_univerjs_core[_0x4f04b5(0xa9)]);this['disposeWithMe'](this[_0x4f04b5(0x96)](this['Event'][_0x4f04b5(0xb1)],()=>_0x403dec['beforeCommandExecuted'](_0x156141=>{const _0x56b594=_0x4f04b5;if(_0x156141['id']===_univerjs_pro_sheets_print[_0x56b594(0xcf)]['id']){const _0x540d92=this[_0x56b594(0xad)]();if(!_0x540d92)return;const _0x5292a2={'workbook':_0x540d92,'worksheet':_0x540d92['getActiveSheet']()};if(_0x5292a2==null)return;this[_0x56b594(0xcc)](this[_0x56b594(0xa4)][_0x56b594(0xb1)],_0x5292a2);if(_0x5292a2[_0x56b594(0x8e)])throw new _univerjs_core['CanceledError']();}}))),this[_0x4f04b5(0xb0)](this[_0x4f04b5(0x96)](this['Event'][_0x4f04b5(0xc9)],()=>_0x403dec[_0x4f04b5(0xb4)](_0x47a32d=>{const _0x695296=_0x4f04b5;if(_0x47a32d['id']===_univerjs_pro_sheets_print[_0x695296(0xca)]['id']){const _0x5f0943=_0x4b37e9[_0x695296(0xa1)](_univerjs_pro_sheets_print[_0x695296(0xc5)]);if(!this[_0x695296(0xad)]())return;const _0x5baf4c={'layoutConfig':_0x5f0943[_0x695296(0x91)],'renderConfig':_0x5f0943[_0x695296(0xcb)]};if(_0x5baf4c==null)return;this[_0x695296(0xcc)](this['Event']['BeforeSheetPrintConfirm'],_0x5baf4c);if(_0x5baf4c[_0x695296(0x8e)])throw new _univerjs_core['CanceledError']();}}))),this[_0x4f04b5(0xb0)](this[_0x4f04b5(0x96)](this['Event'][_0x4f04b5(0xa0)],()=>_0x403dec['beforeCommandExecuted'](_0xb9dc01=>{const _0x30f48a=_0x4f04b5;if(_0xb9dc01['id']===_univerjs_pro_sheets_print['CancelSheetPrintOperation']['id']){const _0x15ecbb=_0x4b37e9[_0x30f48a(0xa1)](_univerjs_pro_sheets_print['ISheetPrintManagerService']);if(!this['getActiveUniverSheet']())return;const _0x481cbf={'layoutConfig':_0x15ecbb['layoutConfig'],'renderConfig':_0x15ecbb[_0x30f48a(0xcb)]};if(_0x481cbf==null)return;this[_0x30f48a(0xcc)](this[_0x30f48a(0xa4)][_0x30f48a(0xa0)],_0x481cbf);if(_0x481cbf[_0x30f48a(0x8e)])throw new _univerjs_core[(_0x30f48a(0xb9))]();}}))),this[_0x4f04b5(0xb0)](this['registerEventHandler'](this[_0x4f04b5(0xa4)][_0x4f04b5(0xbc)],()=>_0x403dec['onCommandExecuted'](_0x436a86=>{const _0xda7cbf=_0x4f04b5;if(_0x436a86['id']===_univerjs_pro_sheets_print[_0xda7cbf(0xcf)]['id']){const _0x354642=this['getActiveUniverSheet']();if(!_0x354642)return;const _0x199cee={'workbook':_0x354642,'worksheet':_0x354642[_0xda7cbf(0xc2)]()};if(_0x199cee==null)return;this['fireEvent'](this[_0xda7cbf(0xa4)][_0xda7cbf(0xbc)],_0x199cee);}}))),this[_0x4f04b5(0xb0)](this[_0x4f04b5(0x96)](this[_0x4f04b5(0xa4)][_0x4f04b5(0xd1)],()=>_0x403dec['onCommandExecuted'](_0x47aa25=>{const _0x5327c0=_0x4f04b5;if(_0x47aa25['id']===_univerjs_pro_sheets_print['ConfirmSheetPrintOperation']['id']){const _0x20f0bc=_0x4b37e9['get'](_univerjs_pro_sheets_print[_0x5327c0(0xc5)]);if(!this[_0x5327c0(0xad)]())return;const _0x1f4284={'layoutConfig':_0x20f0bc['layoutConfig'],'renderConfig':_0x20f0bc[_0x5327c0(0xcb)]};if(_0x1f4284==null)return;this[_0x5327c0(0xcc)](this[_0x5327c0(0xa4)][_0x5327c0(0xd1)],_0x1f4284);}}))),this[_0x4f04b5(0xb0)](this[_0x4f04b5(0x96)](this['Event'][_0x4f04b5(0xce)],()=>_0x403dec[_0x4f04b5(0xc4)](_0x26535b=>{const _0x4c5a03=_0x4f04b5;if(_0x26535b['id']===_univerjs_pro_sheets_print[_0x4c5a03(0x8d)]['id']){const _0x16249e=_0x4b37e9[_0x4c5a03(0xa1)](_univerjs_pro_sheets_print[_0x4c5a03(0xc5)]);if(!this[_0x4c5a03(0xad)]())return;const _0x241658={'layoutConfig':_0x16249e[_0x4c5a03(0x91)],'renderConfig':_0x16249e[_0x4c5a03(0xcb)]};if(_0x241658==null)return;this[_0x4c5a03(0xcc)](this[_0x4c5a03(0xa4)][_0x4c5a03(0xce)],_0x241658);}})));}};_univerjs_core_facade['FUniver'][_0x92f4e4(0x9e)](FUniverSheetsPrintMixin);
1
+ const _0x29e380=_0x3fa6;function _0x3fa6(_0x17b947,_0x2c0275){_0x17b947=_0x17b947-0x10f;const _0x2c3a32=_0x2c3a();let _0x3fa66e=_0x2c3a32[_0x17b947];return _0x3fa66e;}(function(_0x589314,_0xdb6913){const _0x3c8ae=_0x3fa6,_0x22d6fe=_0x589314();while(!![]){try{const _0x556a83=-parseInt(_0x3c8ae(0x14c))/0x1*(-parseInt(_0x3c8ae(0x135))/0x2)+parseInt(_0x3c8ae(0x11d))/0x3*(parseInt(_0x3c8ae(0x110))/0x4)+parseInt(_0x3c8ae(0x149))/0x5+parseInt(_0x3c8ae(0x136))/0x6+parseInt(_0x3c8ae(0x13e))/0x7+parseInt(_0x3c8ae(0x142))/0x8*(parseInt(_0x3c8ae(0x144))/0x9)+-parseInt(_0x3c8ae(0x112))/0xa*(parseInt(_0x3c8ae(0x12d))/0xb);if(_0x556a83===_0xdb6913)break;else _0x22d6fe['push'](_0x22d6fe['shift']());}catch(_0x446578){_0x22d6fe['push'](_0x22d6fe['shift']());}}}(_0x2c3a,0x7fcb5));let _univerjs_pro_sheets_print=require('@univerjs-pro/sheets-print'),_univerjs_core=require('@univerjs/core'),_univerjs_sheets_facade=require('@univerjs/sheets/facade'),_univerjs_core_facade=require('@univerjs/core/facade'),_univerjs_pro_print=require('@univerjs-pro/print');var FWorkbookSheetsPrintMixin=class extends _univerjs_sheets_facade[_0x29e380(0x114)]{[_0x29e380(0x128)](_0x5846f1){const _0x5002a0=_0x29e380;return this[_0x5002a0(0x124)][_0x5002a0(0x123)](_univerjs_pro_sheets_print['ISheetPrintManagerService'])[_0x5002a0(0x12a)](_0x5846f1),this;}[_0x29e380(0x13a)](_0x22ed2e){const _0xcb9bee=_0x29e380;return this['_injector'][_0xcb9bee(0x123)](_univerjs_pro_sheets_print['ISheetPrintManagerService'])[_0xcb9bee(0x14b)](_0x22ed2e),this;}[_0x29e380(0x13c)](){return this['_injector']['get'](_univerjs_core['ICommandService'])['syncExecuteCommand'](_univerjs_pro_sheets_print['ConfirmSheetPrintOperation']['id']);}['openPrintDialog'](){const _0x2ee85f=_0x29e380;return this[_0x2ee85f(0x124)][_0x2ee85f(0x123)](_univerjs_core[_0x2ee85f(0x134)])['syncExecuteCommand'](_univerjs_pro_sheets_print[_0x2ee85f(0x153)]['id']);}[_0x29e380(0x11b)](){const _0x395eed=_0x29e380;return this[_0x395eed(0x124)][_0x395eed(0x123)](_univerjs_core[_0x395eed(0x134)])[_0x395eed(0x139)](_univerjs_pro_sheets_print['CancelSheetPrintOperation']['id']);}async[_0x29e380(0x120)](){const _0x57c622=_0x29e380;if(!(0x0,_univerjs_pro_sheets_print[_0x57c622(0x133)])(this[_0x57c622(0x124)]))return![];return this['_injector'][_0x57c622(0x123)](_univerjs_core[_0x57c622(0x134)])[_0x57c622(0x130)](_univerjs_pro_sheets_print[_0x57c622(0x129)]['id']);}};_univerjs_sheets_facade[_0x29e380(0x114)][_0x29e380(0x150)](FWorkbookSheetsPrintMixin);var FRangeSheetsPrint=class extends _univerjs_sheets_facade['FRange']{[_0x29e380(0x152)](_0x24ed0d){const _0x26aeda=_0x29e380;if(!(0x0,_univerjs_pro_sheets_print[_0x26aeda(0x133)])(this[_0x26aeda(0x124)]))return![];return this[_0x26aeda(0x124)][_0x26aeda(0x123)](_univerjs_pro_sheets_print[_0x26aeda(0x12f)])[_0x26aeda(0x141)](this[_0x26aeda(0x154)][_0x26aeda(0x111)](),this[_0x26aeda(0x151)][_0x26aeda(0x11f)](),this[_0x26aeda(0x118)],_0x24ed0d===null||_0x24ed0d===void 0x0?void 0x0:_0x24ed0d['includeHeaders']);}};_univerjs_sheets_facade['FRange'][_0x29e380(0x150)](FRangeSheetsPrint);var FSheetsPrintEventNameMixin=class extends _univerjs_core_facade[_0x29e380(0x14e)]{get[_0x29e380(0x12c)](){const _0x33e027=_0x29e380;return _0x33e027(0x12c);}get['BeforeSheetPrintConfirm'](){return'BeforeSheetPrintConfirm';}get[_0x29e380(0x119)](){const _0x1db436=_0x29e380;return _0x1db436(0x119);}get[_0x29e380(0x113)](){const _0x2697b8=_0x29e380;return _0x2697b8(0x113);}get[_0x29e380(0x13f)](){const _0x36095d=_0x29e380;return _0x36095d(0x13f);}get[_0x29e380(0x122)](){const _0x500535=_0x29e380;return _0x500535(0x122);}};_univerjs_core_facade[_0x29e380(0x14e)]['extend'](FSheetsPrintEventNameMixin);var FSheetsPrintEnumMixin=class extends _univerjs_core_facade['FEnum']{get['PrintArea'](){const _0x238f6c=_0x29e380;return _univerjs_pro_sheets_print[_0x238f6c(0x10f)];}get[_0x29e380(0x14a)](){return _univerjs_pro_print['PrintAlign'];}get[_0x29e380(0x11e)](){const _0x9b0793=_0x29e380;return _univerjs_core[_0x9b0793(0x147)];}get[_0x29e380(0x14d)](){return _univerjs_pro_print['PrintPaperMargin'];}get[_0x29e380(0x121)](){return _univerjs_pro_print['PrintScale'];}get[_0x29e380(0x140)](){const _0x1a1038=_0x29e380;return _univerjs_pro_print[_0x1a1038(0x140)];}get[_0x29e380(0x143)](){const _0x440442=_0x29e380;return _univerjs_pro_sheets_print[_0x440442(0x143)];}get[_0x29e380(0x115)](){const _0x4975e3=_0x29e380;return _univerjs_pro_sheets_print[_0x4975e3(0x115)];}get['PrintHeaderFooterSymbol'](){const _0x122901=_0x29e380;return _univerjs_pro_sheets_print[_0x122901(0x116)];}};function _0x2c3a(){const _0x205605=['fireEvent','FUniver','syncExecuteCommand','updatePrintRenderConfig','_initialize','print','disposeWithMe','6167707SasHmk','SheetPrintConfirmed','PrintDirection','getRangeImage','28328wDjJTk','PrintFreeze','306hrdPgm','layoutConfig','onCommandExecuted','PaperType','getActiveSheet','1976355ITtrco','PrintAlign','updateRenderConfig','266549yBakIY','PrintPaperMargin','FEventName','CanceledError','extend','_worksheet','getScreenshot','SheetPrintOpenOperation','_workbook','PrintArea','911732HGrIvo','getUnitId','462430auNmdc','SheetPrintOpen','FWorkbook','PrintHeaderFooter','PrintHeaderFooterSymbol','registerEventHandler','_range','BeforeSheetPrintCanceled','ISheetPrintManagerService','closePrintDialog','getActiveUniverSheet','6FEackt','PrintPaperSize','getSheetId','saveScreenshotToClipboard','PrintScale','SheetPrintCanceled','get','_injector','FEnum','beforeCommandExecuted','CancelSheetPrintOperation','updatePrintConfig','SheetScreenShotOperation','updateLayoutConfig','BeforeSheetPrintConfirm','BeforeSheetPrintOpen','583MDSnjW','Event','SheetPrintClientService','executeCommand','cancel','renderConfig','hasPrintFacadePermission','ICommandService','6iwaKor','1932270nyEqXE'];_0x2c3a=function(){return _0x205605;};return _0x2c3a();}_univerjs_core_facade[_0x29e380(0x125)]['extend'](FSheetsPrintEnumMixin);var FUniverSheetsPrintMixin=class extends _univerjs_core_facade[_0x29e380(0x138)]{[_0x29e380(0x13b)](_0x224fc2){const _0x25dfae=_0x29e380,_0x20eb69=_0x224fc2[_0x25dfae(0x123)](_univerjs_core['ICommandService']);this[_0x25dfae(0x13d)](this[_0x25dfae(0x117)](this[_0x25dfae(0x12e)]['BeforeSheetPrintOpen'],()=>_0x20eb69[_0x25dfae(0x126)](_0x2a7ebc=>{const _0x5535df=_0x25dfae;if(_0x2a7ebc['id']===_univerjs_pro_sheets_print[_0x5535df(0x153)]['id']){const _0x239391=this[_0x5535df(0x11c)]();if(!_0x239391)return;const _0x2c823d={'workbook':_0x239391,'worksheet':_0x239391[_0x5535df(0x148)]()};if(_0x2c823d==null)return;this[_0x5535df(0x137)](this[_0x5535df(0x12e)]['BeforeSheetPrintOpen'],_0x2c823d);if(_0x2c823d[_0x5535df(0x131)])throw new _univerjs_core['CanceledError']();}}))),this[_0x25dfae(0x13d)](this[_0x25dfae(0x117)](this[_0x25dfae(0x12e)][_0x25dfae(0x12b)],()=>_0x20eb69[_0x25dfae(0x126)](_0x423441=>{const _0x27d156=_0x25dfae;if(_0x423441['id']===_univerjs_pro_sheets_print['ConfirmSheetPrintOperation']['id']){const _0x514e8c=_0x224fc2[_0x27d156(0x123)](_univerjs_pro_sheets_print[_0x27d156(0x11a)]);if(!this['getActiveUniverSheet']())return;const _0x1345e6={'layoutConfig':_0x514e8c[_0x27d156(0x145)],'renderConfig':_0x514e8c['renderConfig']};if(_0x1345e6==null)return;this[_0x27d156(0x137)](this[_0x27d156(0x12e)][_0x27d156(0x12b)],_0x1345e6);if(_0x1345e6[_0x27d156(0x131)])throw new _univerjs_core[(_0x27d156(0x14f))]();}}))),this['disposeWithMe'](this[_0x25dfae(0x117)](this[_0x25dfae(0x12e)][_0x25dfae(0x119)],()=>_0x20eb69['beforeCommandExecuted'](_0x261555=>{const _0x5bade0=_0x25dfae;if(_0x261555['id']===_univerjs_pro_sheets_print[_0x5bade0(0x127)]['id']){const _0x2dd98f=_0x224fc2['get'](_univerjs_pro_sheets_print['ISheetPrintManagerService']);if(!this[_0x5bade0(0x11c)]())return;const _0x2bba0e={'layoutConfig':_0x2dd98f[_0x5bade0(0x145)],'renderConfig':_0x2dd98f[_0x5bade0(0x132)]};if(_0x2bba0e==null)return;this[_0x5bade0(0x137)](this[_0x5bade0(0x12e)][_0x5bade0(0x119)],_0x2bba0e);if(_0x2bba0e[_0x5bade0(0x131)])throw new _univerjs_core[(_0x5bade0(0x14f))]();}}))),this[_0x25dfae(0x13d)](this[_0x25dfae(0x117)](this['Event'][_0x25dfae(0x113)],()=>_0x20eb69[_0x25dfae(0x146)](_0x3d1019=>{const _0x5aefec=_0x25dfae;if(_0x3d1019['id']===_univerjs_pro_sheets_print[_0x5aefec(0x153)]['id']){const _0x55c5f7=this[_0x5aefec(0x11c)]();if(!_0x55c5f7)return;const _0x284023={'workbook':_0x55c5f7,'worksheet':_0x55c5f7['getActiveSheet']()};if(_0x284023==null)return;this[_0x5aefec(0x137)](this[_0x5aefec(0x12e)]['SheetPrintOpen'],_0x284023);}}))),this[_0x25dfae(0x13d)](this[_0x25dfae(0x117)](this[_0x25dfae(0x12e)][_0x25dfae(0x13f)],()=>_0x20eb69[_0x25dfae(0x146)](_0x43c6f3=>{const _0x31e876=_0x25dfae;if(_0x43c6f3['id']===_univerjs_pro_sheets_print['ConfirmSheetPrintOperation']['id']){const _0x4fd73b=_0x224fc2[_0x31e876(0x123)](_univerjs_pro_sheets_print[_0x31e876(0x11a)]);if(!this[_0x31e876(0x11c)]())return;const _0x3a7405={'layoutConfig':_0x4fd73b[_0x31e876(0x145)],'renderConfig':_0x4fd73b[_0x31e876(0x132)]};if(_0x3a7405==null)return;this[_0x31e876(0x137)](this[_0x31e876(0x12e)][_0x31e876(0x13f)],_0x3a7405);}}))),this[_0x25dfae(0x13d)](this[_0x25dfae(0x117)](this[_0x25dfae(0x12e)][_0x25dfae(0x122)],()=>_0x20eb69[_0x25dfae(0x146)](_0x3e55ac=>{const _0x528d61=_0x25dfae;if(_0x3e55ac['id']===_univerjs_pro_sheets_print[_0x528d61(0x127)]['id']){const _0x58f145=_0x224fc2[_0x528d61(0x123)](_univerjs_pro_sheets_print[_0x528d61(0x11a)]);if(!this[_0x528d61(0x11c)]())return;const _0x24ffeb={'layoutConfig':_0x58f145[_0x528d61(0x145)],'renderConfig':_0x58f145[_0x528d61(0x132)]};if(_0x24ffeb==null)return;this[_0x528d61(0x137)](this[_0x528d61(0x12e)][_0x528d61(0x122)],_0x24ffeb);}})));}};_univerjs_core_facade['FUniver']['extend'](FUniverSheetsPrintMixin);