@univerjs-pro/sheets-print 0.7.0 → 0.8.0-nightly.202505261607

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 (47) 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/fr-FR.js +1 -1
  6. package/lib/cjs/locale/ru-RU.js +1 -1
  7. package/lib/cjs/locale/vi-VN.js +1 -1
  8. package/lib/cjs/locale/zh-CN.js +1 -1
  9. package/lib/cjs/locale/zh-TW.js +1 -1
  10. package/lib/es/facade.js +1 -1
  11. package/lib/es/index.js +1 -1
  12. package/lib/es/locale/en-US.js +1 -1
  13. package/lib/es/locale/fa-IR.js +1 -1
  14. package/lib/es/locale/fr-FR.js +1 -1
  15. package/lib/es/locale/ru-RU.js +1 -1
  16. package/lib/es/locale/vi-VN.js +1 -1
  17. package/lib/es/locale/zh-CN.js +1 -1
  18. package/lib/es/locale/zh-TW.js +1 -1
  19. package/lib/facade.js +1 -1
  20. package/lib/index.css +1 -1
  21. package/lib/index.js +1 -1
  22. package/lib/locale/en-US.js +1 -1
  23. package/lib/locale/fa-IR.js +1 -1
  24. package/lib/locale/fr-FR.js +1 -1
  25. package/lib/locale/ru-RU.js +1 -1
  26. package/lib/locale/vi-VN.js +1 -1
  27. package/lib/locale/zh-CN.js +1 -1
  28. package/lib/locale/zh-TW.js +1 -1
  29. package/lib/types/common/const.d.ts +39 -39
  30. package/lib/types/controllers/const.d.ts +1 -1
  31. package/lib/types/locale/en-US.d.ts +141 -2
  32. package/lib/types/locale/fa-IR.d.ts +2 -2
  33. package/lib/types/locale/fr-FR.d.ts +2 -2
  34. package/lib/types/locale/ru-RU.d.ts +2 -2
  35. package/lib/types/locale/vi-VN.d.ts +2 -2
  36. package/lib/types/locale/zh-CN.d.ts +3 -142
  37. package/lib/types/locale/zh-TW.d.ts +2 -2
  38. package/lib/umd/facade.js +1 -1
  39. package/lib/umd/index.js +1 -1
  40. package/lib/umd/locale/en-US.js +1 -1
  41. package/lib/umd/locale/fa-IR.js +1 -1
  42. package/lib/umd/locale/fr-FR.js +1 -1
  43. package/lib/umd/locale/ru-RU.js +1 -1
  44. package/lib/umd/locale/vi-VN.js +1 -1
  45. package/lib/umd/locale/zh-CN.js +1 -1
  46. package/lib/umd/locale/zh-TW.js +1 -1
  47. package/package.json +16 -16
@@ -1,3 +1,142 @@
1
- import { default as zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
1
+ declare const locale: {
2
+ print: {
3
+ header: {
4
+ total: string;
5
+ pages: string;
6
+ cancel: string;
7
+ next: string;
8
+ printing: string;
9
+ };
10
+ menu: string;
11
+ title: string;
12
+ screenshot: {
13
+ title: string;
14
+ success: string;
15
+ fail: string;
16
+ };
17
+ size: {
18
+ title: string;
19
+ letter: string;
20
+ tabloid: string;
21
+ legal: string;
22
+ statement: string;
23
+ executive: string;
24
+ folio: string;
25
+ a3: string;
26
+ a4: string;
27
+ a5: string;
28
+ b4: string;
29
+ b5: string;
30
+ };
31
+ margin: {
32
+ title: string;
33
+ normal: string;
34
+ narrow: string;
35
+ wide: string;
36
+ };
37
+ area: {
38
+ title: string;
39
+ currentSheet: string;
40
+ workbook: string;
41
+ currentSelection: string;
42
+ maxRowsEachPage: string;
43
+ maxColumnsEachPage: string;
44
+ limit: string;
45
+ allSelection: string;
46
+ };
47
+ selection: {
48
+ title: string;
49
+ allWorkbook: string;
50
+ workbookUnit: string;
51
+ };
52
+ scale: {
53
+ title: string;
54
+ normal: string;
55
+ fitWidth: string;
56
+ fitHeight: string;
57
+ fitPage: string;
58
+ custom: string;
59
+ };
60
+ orientation: {
61
+ title: string;
62
+ landscape: string;
63
+ portrait: string;
64
+ };
65
+ formatting: {
66
+ title: string;
67
+ skeleton: string;
68
+ waterMark: string;
69
+ };
70
+ align: {
71
+ title: string;
72
+ horizontal: {
73
+ title: string;
74
+ middle: string;
75
+ start: string;
76
+ end: string;
77
+ };
78
+ vertical: {
79
+ title: string;
80
+ start: string;
81
+ end: string;
82
+ middle: string;
83
+ };
84
+ };
85
+ headerFooter: {
86
+ title: string;
87
+ page: string;
88
+ workbook: string;
89
+ sheet: string;
90
+ date: string;
91
+ time: string;
92
+ customHeadFooter: string;
93
+ editCustomHeadFooter: string;
94
+ header: string;
95
+ footer: string;
96
+ left: string;
97
+ right: string;
98
+ center: string;
99
+ dateFormat: string;
100
+ dateA: string;
101
+ dateB: string;
102
+ dateC: string;
103
+ dateD: string;
104
+ timeA: string;
105
+ timeB: string;
106
+ timeC: string;
107
+ timeD: string;
108
+ display: {
109
+ page: string;
110
+ title: string;
111
+ sheet: string;
112
+ dateA: string;
113
+ dateB: string;
114
+ dateC: string;
115
+ dateD: string;
116
+ dateE: string;
117
+ dateF: string;
118
+ timeA: string;
119
+ timeB: string;
120
+ timeC: string;
121
+ timeD: string;
122
+ sheetPage: string;
123
+ pageTotal: string;
124
+ sheetPageTotal: string;
125
+ };
126
+ placeholder: string;
127
+ submit: string;
128
+ };
129
+ freeze: {
130
+ title: string;
131
+ desc: string;
132
+ row: string;
133
+ column: string;
134
+ };
135
+ limit: {
136
+ page: string;
137
+ waterMark: string;
138
+ link: string;
139
+ };
140
+ };
141
+ };
3
142
  export default locale;
@@ -1,3 +1,3 @@
1
- import { default as zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { default as zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { default as zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,3 +1,3 @@
1
- import { default as zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
3
  export default locale;
@@ -1,142 +1,3 @@
1
- declare const locales: {
2
- print: {
3
- header: {
4
- total: string;
5
- pages: string;
6
- cancel: string;
7
- next: string;
8
- printing: string;
9
- };
10
- menu: string;
11
- title: string;
12
- screenshot: {
13
- title: string;
14
- success: string;
15
- fail: string;
16
- };
17
- size: {
18
- title: string;
19
- letter: string;
20
- tabloid: string;
21
- legal: string;
22
- statement: string;
23
- executive: string;
24
- folio: string;
25
- a3: string;
26
- a4: string;
27
- a5: string;
28
- b4: string;
29
- b5: string;
30
- };
31
- margin: {
32
- title: string;
33
- normal: string;
34
- narrow: string;
35
- wide: string;
36
- };
37
- area: {
38
- title: string;
39
- currentSheet: string;
40
- workbook: string;
41
- currentSelection: string;
42
- maxRowsEachPage: string;
43
- maxColumnsEachPage: string;
44
- limit: string;
45
- allSelection: string;
46
- };
47
- selection: {
48
- title: string;
49
- allWorkbook: string;
50
- workbookUnit: string;
51
- };
52
- scale: {
53
- title: string;
54
- normal: string;
55
- fitWidth: string;
56
- fitHeight: string;
57
- fitPage: string;
58
- custom: string;
59
- };
60
- orientation: {
61
- title: string;
62
- landscape: string;
63
- portrait: string;
64
- };
65
- formatting: {
66
- title: string;
67
- skeleton: string;
68
- waterMark: string;
69
- };
70
- align: {
71
- title: string;
72
- horizontal: {
73
- title: string;
74
- middle: string;
75
- start: string;
76
- end: string;
77
- };
78
- vertical: {
79
- title: string;
80
- start: string;
81
- end: string;
82
- middle: string;
83
- };
84
- };
85
- headerFooter: {
86
- title: string;
87
- page: string;
88
- workbook: string;
89
- sheet: string;
90
- date: string;
91
- time: string;
92
- customHeadFooter: string;
93
- editCustomHeadFooter: string;
94
- header: string;
95
- footer: string;
96
- left: string;
97
- right: string;
98
- center: string;
99
- dateFormat: string;
100
- dateA: string;
101
- dateB: string;
102
- dateC: string;
103
- dateD: string;
104
- timeA: string;
105
- timeB: string;
106
- timeC: string;
107
- timeD: string;
108
- display: {
109
- page: string;
110
- title: string;
111
- sheet: string;
112
- dateA: string;
113
- dateB: string;
114
- dateC: string;
115
- dateD: string;
116
- dateE: string;
117
- dateF: string;
118
- timeA: string;
119
- timeB: string;
120
- timeC: string;
121
- timeD: string;
122
- sheetPage: string;
123
- pageTotal: string;
124
- sheetPageTotal: string;
125
- };
126
- placeholder: string;
127
- submit: string;
128
- };
129
- freeze: {
130
- title: string;
131
- desc: string;
132
- row: string;
133
- column: string;
134
- };
135
- limit: {
136
- page: string;
137
- waterMark: string;
138
- link: string;
139
- };
140
- };
141
- };
142
- export default locales;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
+ export default locale;
@@ -1,3 +1,3 @@
1
- import { default as zhCN } from './zh-CN';
2
- declare const locale: typeof zhCN;
1
+ import { default as enUS } from './en-US';
2
+ declare const locale: typeof enUS;
3
3
  export default locale;
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x2e32(_0xfb5525,_0x3c8209){const _0x467121=_0x4671();return _0x2e32=function(_0x2e3284,_0x653808){_0x2e3284=_0x2e3284-0xc9;let _0x137bf5=_0x467121[_0x2e3284];return _0x137bf5;},_0x2e32(_0xfb5525,_0x3c8209);}(function(_0x32412b,_0x218cda){const _0x1ed515=_0x2e32,_0x5fffb5=_0x32412b();while(!![]){try{const _0x346d18=-parseInt(_0x1ed515(0xf9))/0x1+-parseInt(_0x1ed515(0x10c))/0x2*(parseInt(_0x1ed515(0xe0))/0x3)+parseInt(_0x1ed515(0x106))/0x4+parseInt(_0x1ed515(0xd0))/0x5*(-parseInt(_0x1ed515(0x113))/0x6)+parseInt(_0x1ed515(0xf8))/0x7+-parseInt(_0x1ed515(0xdc))/0x8+-parseInt(_0x1ed515(0x100))/0x9*(-parseInt(_0x1ed515(0xc9))/0xa);if(_0x346d18===_0x218cda)break;else _0x5fffb5['push'](_0x5fffb5['shift']());}catch(_0x360b61){_0x5fffb5['push'](_0x5fffb5['shift']());}}}(_0x4671,0x3cd2d),function(_0x4679eb,_0x1fd92c){const _0x503f5c=_0x2e32;typeof exports==_0x503f5c(0xdb)&&typeof module<'u'?_0x1fd92c(require(_0x503f5c(0xee)),require('@univerjs/core'),require(_0x503f5c(0xf3)),require(_0x503f5c(0xd9)),require('@univerjs-pro/print')):typeof define==_0x503f5c(0x10f)&&define[_0x503f5c(0xcc)]?define(['@univerjs-pro/sheets-print',_0x503f5c(0x10b),_0x503f5c(0xf3),_0x503f5c(0xd9),'@univerjs-pro/print'],_0x1fd92c):(_0x4679eb=typeof globalThis<'u'?globalThis:_0x4679eb||self,_0x1fd92c(_0x4679eb[_0x503f5c(0x10d)],_0x4679eb['UniverCore'],_0x4679eb['UniverSheetsFacade'],_0x4679eb[_0x503f5c(0xf4)],_0x4679eb['UniverProPrint']));}(this,function(_0x73d623,_0x2e4498,_0x23eb3c,_0x3aa058,_0x355291){'use strict';const _0x270ff7=_0x2e32;class _0x12ac4d extends _0x23eb3c[_0x270ff7(0xe6)]{[_0x270ff7(0x114)](_0x492bec){const _0x2dc483=_0x270ff7;return this[_0x2dc483(0xce)][_0x2dc483(0xfb)](_0x73d623[_0x2dc483(0xf2)])[_0x2dc483(0xef)](_0x492bec),this;}[_0x270ff7(0xf0)](_0x2fe366){const _0x6979da=_0x270ff7;return this[_0x6979da(0xce)][_0x6979da(0xfb)](_0x73d623['ISheetPrintManagerService'])[_0x6979da(0x105)](_0x2fe366),this;}[_0x270ff7(0x109)](){const _0x2a28fa=_0x270ff7;return this['_injector'][_0x2a28fa(0xfb)](_0x2e4498['ICommandService'])[_0x2a28fa(0xf7)](_0x73d623[_0x2a28fa(0xd3)]['id']);}[_0x270ff7(0xcf)](){const _0x15805a=_0x270ff7;return this[_0x15805a(0xce)][_0x15805a(0xfb)](_0x2e4498[_0x15805a(0x10a)])[_0x15805a(0xf7)](_0x73d623[_0x15805a(0xe7)]['id']);}['closePrintDialog'](){const _0x584d43=_0x270ff7;return this['_injector'][_0x584d43(0xfb)](_0x2e4498['ICommandService'])[_0x584d43(0xf7)](_0x73d623[_0x584d43(0x103)]['id']);}async[_0x270ff7(0xec)](){const _0x86dcdb=_0x270ff7;return _0x73d623[_0x86dcdb(0xe4)](this[_0x86dcdb(0xce)])?this['_injector'][_0x86dcdb(0xfb)](_0x2e4498['ICommandService'])[_0x86dcdb(0xe1)](_0x73d623['SheetScreenShotOperation']['id']):!0x1;}}_0x23eb3c[_0x270ff7(0xe6)][_0x270ff7(0xeb)](_0x12ac4d);class _0x167f58 extends _0x23eb3c[_0x270ff7(0xd5)]{[_0x270ff7(0xe8)](){const _0x2603c1=_0x270ff7;return _0x73d623[_0x2603c1(0xe4)](this['_injector'])?this[_0x2603c1(0xce)][_0x2603c1(0xfb)](_0x73d623['SheetPrintClientService'])[_0x2603c1(0xd2)](this[_0x2603c1(0xda)][_0x2603c1(0xd7)](),this[_0x2603c1(0xdf)][_0x2603c1(0xcb)](),this[_0x2603c1(0xca)]):!0x1;}}_0x23eb3c[_0x270ff7(0xd5)][_0x270ff7(0xeb)](_0x167f58);class _0x2a435d{get['BeforeSheetPrintOpen'](){return'BeforeSheetPrintOpen';}get[_0x270ff7(0x104)](){const _0x6602c4=_0x270ff7;return _0x6602c4(0x104);}get['BeforeSheetPrintCanceled'](){return'BeforeSheetPrintCanceled';}get['SheetPrintOpen'](){const _0x100e47=_0x270ff7;return _0x100e47(0xed);}get[_0x270ff7(0xd8)](){const _0x41bf67=_0x270ff7;return _0x41bf67(0xd8);}get[_0x270ff7(0xf5)](){return'SheetPrintCanceled';}}_0x3aa058[_0x270ff7(0xfc)][_0x270ff7(0xeb)](_0x2a435d);class _0x232d1d{get[_0x270ff7(0x108)](){const _0xa5a9a4=_0x270ff7;return _0x73d623[_0xa5a9a4(0x108)];}get[_0x270ff7(0x112)](){const _0x39e4e7=_0x270ff7;return _0x355291[_0x39e4e7(0x112)];}get[_0x270ff7(0x111)](){const _0x4a4f81=_0x270ff7;return _0x2e4498[_0x4a4f81(0xde)];}get[_0x270ff7(0xf1)](){const _0x1d21c8=_0x270ff7;return _0x355291[_0x1d21c8(0xf1)];}get[_0x270ff7(0x107)](){return _0x355291['PrintScale'];}get['PrintDirection'](){const _0x3f2ff8=_0x270ff7;return _0x355291[_0x3f2ff8(0xe5)];}get['PrintFreeze'](){const _0x7e9f6d=_0x270ff7;return _0x73d623[_0x7e9f6d(0xff)];}get[_0x270ff7(0xd1)](){const _0x15b4e0=_0x270ff7;return _0x73d623[_0x15b4e0(0xd1)];}get[_0x270ff7(0x10e)](){const _0x3240bd=_0x270ff7;return _0x73d623[_0x3240bd(0x10e)];}}_0x3aa058[_0x270ff7(0xd6)]['extend'](_0x232d1d);class _0x4e7ba8 extends _0x3aa058[_0x270ff7(0x110)]{[_0x270ff7(0xe3)](_0x5bc578){const _0x19996c=_0x270ff7,_0x148c81=_0x5bc578[_0x19996c(0xfb)](_0x2e4498['ICommandService']);this[_0x19996c(0xdd)](this[_0x19996c(0xfa)][_0x19996c(0xe9)],()=>_0x148c81['beforeCommandExecuted'](_0x3c3b5c=>{const _0x1a6e83=_0x19996c;if(_0x3c3b5c['id']===_0x73d623[_0x1a6e83(0xe7)]['id']){const _0x120c3b=this['getActiveUniverSheet']();if(!_0x120c3b)return;const _0x51dbac={'workbook':_0x120c3b,'worksheet':_0x120c3b['getActiveSheet']()};if(_0x51dbac==null)return;if(this[_0x1a6e83(0xe2)](this[_0x1a6e83(0xfa)][_0x1a6e83(0xe9)],_0x51dbac),_0x51dbac['cancel'])throw new _0x2e4498['CanceledError']();}})),this[_0x19996c(0xdd)](this['Event'][_0x19996c(0x104)],()=>_0x148c81[_0x19996c(0xea)](_0xf7e6c0=>{const _0x51b89e=_0x19996c;if(_0xf7e6c0['id']===_0x73d623[_0x51b89e(0xd3)]['id']){const _0x53d0e1=_0x5bc578['get'](_0x73d623[_0x51b89e(0xf2)]);if(!this[_0x51b89e(0xfd)]())return;const _0x250b31={'layoutConfig':_0x53d0e1[_0x51b89e(0x115)],'renderConfig':_0x53d0e1[_0x51b89e(0x102)]};if(_0x250b31==null)return;if(this[_0x51b89e(0xe2)](this[_0x51b89e(0xfa)][_0x51b89e(0x104)],_0x250b31),_0x250b31['cancel'])throw new _0x2e4498[(_0x51b89e(0x101))]();}})),this[_0x19996c(0xdd)](this[_0x19996c(0xfa)][_0x19996c(0xd4)],()=>_0x148c81[_0x19996c(0xea)](_0x3ad6a2=>{const _0x55328d=_0x19996c;if(_0x3ad6a2['id']===_0x73d623['CancelSheetPrintOperation']['id']){const _0xc508ad=_0x5bc578[_0x55328d(0xfb)](_0x73d623[_0x55328d(0xf2)]);if(!this[_0x55328d(0xfd)]())return;const _0x122092={'layoutConfig':_0xc508ad[_0x55328d(0x115)],'renderConfig':_0xc508ad[_0x55328d(0x102)]};if(_0x122092==null)return;if(this[_0x55328d(0xe2)](this['Event'][_0x55328d(0xd4)],_0x122092),_0x122092[_0x55328d(0xfe)])throw new _0x2e4498[(_0x55328d(0x101))]();}})),this[_0x19996c(0xdd)](this[_0x19996c(0xfa)][_0x19996c(0xed)],()=>_0x148c81[_0x19996c(0xf6)](_0x25203b=>{const _0x42435a=_0x19996c;if(_0x25203b['id']===_0x73d623[_0x42435a(0xe7)]['id']){const _0x395509=this[_0x42435a(0xfd)]();if(!_0x395509)return;const _0x3df166={'workbook':_0x395509,'worksheet':_0x395509[_0x42435a(0xcd)]()};if(_0x3df166==null)return;this['fireEvent'](this[_0x42435a(0xfa)][_0x42435a(0xed)],_0x3df166);}})),this[_0x19996c(0xdd)](this[_0x19996c(0xfa)]['SheetPrintConfirmed'],()=>_0x148c81[_0x19996c(0xf6)](_0x5cac1c=>{const _0x46a2a=_0x19996c;if(_0x5cac1c['id']===_0x73d623[_0x46a2a(0xd3)]['id']){const _0x2fd0a1=_0x5bc578[_0x46a2a(0xfb)](_0x73d623[_0x46a2a(0xf2)]);if(!this[_0x46a2a(0xfd)]())return;const _0x4f6a1f={'layoutConfig':_0x2fd0a1[_0x46a2a(0x115)],'renderConfig':_0x2fd0a1['renderConfig']};if(_0x4f6a1f==null)return;this[_0x46a2a(0xe2)](this['Event'][_0x46a2a(0xd8)],_0x4f6a1f);}})),this[_0x19996c(0xdd)](this[_0x19996c(0xfa)][_0x19996c(0xf5)],()=>_0x148c81['onCommandExecuted'](_0x3136a9=>{const _0x1fe53e=_0x19996c;if(_0x3136a9['id']===_0x73d623[_0x1fe53e(0x103)]['id']){const _0x23a0e4=_0x5bc578[_0x1fe53e(0xfb)](_0x73d623[_0x1fe53e(0xf2)]);if(!this[_0x1fe53e(0xfd)]())return;const _0xe96d26={'layoutConfig':_0x23a0e4[_0x1fe53e(0x115)],'renderConfig':_0x23a0e4[_0x1fe53e(0x102)]};if(_0xe96d26==null)return;this[_0x1fe53e(0xe2)](this[_0x1fe53e(0xfa)][_0x1fe53e(0xf5)],_0xe96d26);}}));}}_0x3aa058[_0x270ff7(0x110)][_0x270ff7(0xeb)](_0x4e7ba8);}));function _0x4671(){const _0x5cb1f8=['openPrintDialog','701295npEbJO','PrintHeaderFooter','getRangeImage','ConfirmSheetPrintOperation','BeforeSheetPrintCanceled','FRange','FEnum','getUnitId','SheetPrintConfirmed','@univerjs/core/facade','_workbook','object','1780880XPzxYD','registerEventHandler','PaperType','_worksheet','3sRIeRJ','executeCommand','fireEvent','_initialize','hasPrintFacadePermission','PrintDirection','FWorkbook','SheetPrintOpenOperation','getScreenshot','BeforeSheetPrintOpen','beforeCommandExecuted','extend','saveScreenshotToClipboard','SheetPrintOpen','@univerjs-pro/sheets-print','updateLayoutConfig','updatePrintRenderConfig','PrintPaperMargin','ISheetPrintManagerService','@univerjs/sheets/facade','UniverCoreFacade','SheetPrintCanceled','onCommandExecuted','syncExecuteCommand','973679ZdrgoE','123565oABSAZ','Event','get','FEventName','getActiveUniverSheet','cancel','PrintFreeze','7884171wULmMA','CanceledError','renderConfig','CancelSheetPrintOperation','BeforeSheetPrintConfirm','updateRenderConfig','1396164WESvcG','PrintScale','PrintArea','print','ICommandService','@univerjs/core','976662BQKieb','UniverProSheetsPrint','PrintHeaderFooterSymbol','function','FUniver','PrintPaperSize','PrintAlign','12DDZFgI','updatePrintConfig','layoutConfig','10critaD','_range','getSheetId','amd','getActiveSheet','_injector'];_0x4671=function(){return _0x5cb1f8;};return _0x4671();}
1
+ function _0x5c0a(_0x2ee0d4,_0x2ab770){const _0x53d323=_0x53d3();return _0x5c0a=function(_0x5c0ab2,_0x11e543){_0x5c0ab2=_0x5c0ab2-0xeb;let _0x327923=_0x53d323[_0x5c0ab2];return _0x327923;},_0x5c0a(_0x2ee0d4,_0x2ab770);}(function(_0x5e23e7,_0x27cb5f){const _0x478d23=_0x5c0a,_0x2b5a29=_0x5e23e7();while(!![]){try{const _0x5a4821=parseInt(_0x478d23(0x12f))/0x1*(parseInt(_0x478d23(0x135))/0x2)+-parseInt(_0x478d23(0x107))/0x3*(parseInt(_0x478d23(0xf8))/0x4)+parseInt(_0x478d23(0xf1))/0x5+-parseInt(_0x478d23(0x128))/0x6+parseInt(_0x478d23(0xef))/0x7*(parseInt(_0x478d23(0x130))/0x8)+-parseInt(_0x478d23(0x115))/0x9+-parseInt(_0x478d23(0x131))/0xa;if(_0x5a4821===_0x27cb5f)break;else _0x2b5a29['push'](_0x2b5a29['shift']());}catch(_0x1fecca){_0x2b5a29['push'](_0x2b5a29['shift']());}}}(_0x53d3,0x83247),function(_0x2b8881,_0x1437fe){const _0x30d80e=_0x5c0a;typeof exports==_0x30d80e(0x12e)&&typeof module<'u'?_0x1437fe(require(_0x30d80e(0x100)),require('@univerjs/core'),require(_0x30d80e(0xf0)),require(_0x30d80e(0xeb)),require('@univerjs-pro/print')):typeof define==_0x30d80e(0x132)&&define['amd']?define([_0x30d80e(0x100),'@univerjs/core',_0x30d80e(0xf0),_0x30d80e(0xeb),_0x30d80e(0xf9)],_0x1437fe):(_0x2b8881=typeof globalThis<'u'?globalThis:_0x2b8881||self,_0x1437fe(_0x2b8881[_0x30d80e(0xff)],_0x2b8881[_0x30d80e(0x116)],_0x2b8881[_0x30d80e(0xec)],_0x2b8881[_0x30d80e(0x133)],_0x2b8881[_0x30d80e(0x12b)]));}(this,function(_0x2da865,_0x320d9b,_0x3ab345,_0x3000e8,_0x99f37c){'use strict';const _0x5a9e7c=_0x5c0a;class _0x442a72 extends _0x3ab345[_0x5a9e7c(0x103)]{[_0x5a9e7c(0x10e)](_0x1a010a){const _0x5cadc4=_0x5a9e7c;return this[_0x5cadc4(0x12a)]['get'](_0x2da865[_0x5cadc4(0x120)])['updateLayoutConfig'](_0x1a010a),this;}[_0x5a9e7c(0xfe)](_0xe7a163){const _0x21b78b=_0x5a9e7c;return this['_injector'][_0x21b78b(0x10b)](_0x2da865[_0x21b78b(0x120)])[_0x21b78b(0x11c)](_0xe7a163),this;}[_0x5a9e7c(0x104)](){const _0x4fbab4=_0x5a9e7c;return this[_0x4fbab4(0x12a)][_0x4fbab4(0x10b)](_0x320d9b['ICommandService'])[_0x4fbab4(0x10c)](_0x2da865['ConfirmSheetPrintOperation']['id']);}[_0x5a9e7c(0xf3)](){const _0x135026=_0x5a9e7c;return this[_0x135026(0x12a)][_0x135026(0x10b)](_0x320d9b[_0x135026(0x110)])[_0x135026(0x10c)](_0x2da865['SheetPrintOpenOperation']['id']);}['closePrintDialog'](){const _0x1f0359=_0x5a9e7c;return this['_injector'][_0x1f0359(0x10b)](_0x320d9b['ICommandService'])[_0x1f0359(0x10c)](_0x2da865[_0x1f0359(0x11a)]['id']);}async[_0x5a9e7c(0xf4)](){const _0x5257b8=_0x5a9e7c;return _0x2da865[_0x5257b8(0xed)](this[_0x5257b8(0x12a)])?this[_0x5257b8(0x12a)]['get'](_0x320d9b['ICommandService'])[_0x5257b8(0x121)](_0x2da865['SheetScreenShotOperation']['id']):!0x1;}}_0x3ab345[_0x5a9e7c(0x103)][_0x5a9e7c(0x11f)](_0x442a72);class _0x21cfd2 extends _0x3ab345[_0x5a9e7c(0x114)]{[_0x5a9e7c(0x11d)](){const _0x3bb9d0=_0x5a9e7c;return _0x2da865[_0x3bb9d0(0xed)](this[_0x3bb9d0(0x12a)])?this[_0x3bb9d0(0x12a)]['get'](_0x2da865['SheetPrintClientService'])['getRangeImage'](this[_0x3bb9d0(0x105)]['getUnitId'](),this[_0x3bb9d0(0xfc)][_0x3bb9d0(0xfd)](),this[_0x3bb9d0(0xee)]):!0x1;}}_0x3ab345[_0x5a9e7c(0x114)]['extend'](_0x21cfd2);class _0x40554f{get[_0x5a9e7c(0x102)](){const _0xb90047=_0x5a9e7c;return _0xb90047(0x102);}get['BeforeSheetPrintConfirm'](){const _0x207183=_0x5a9e7c;return _0x207183(0xf7);}get[_0x5a9e7c(0x101)](){return'BeforeSheetPrintCanceled';}get[_0x5a9e7c(0x122)](){return'SheetPrintOpen';}get[_0x5a9e7c(0xf5)](){const _0x7544a1=_0x5a9e7c;return _0x7544a1(0xf5);}get[_0x5a9e7c(0x10f)](){const _0x35d4f2=_0x5a9e7c;return _0x35d4f2(0x10f);}}_0x3000e8[_0x5a9e7c(0x117)][_0x5a9e7c(0x11f)](_0x40554f);class _0x1adca9{get[_0x5a9e7c(0x129)](){const _0x4019ea=_0x5a9e7c;return _0x2da865[_0x4019ea(0x129)];}get[_0x5a9e7c(0x11e)](){const _0x398f2d=_0x5a9e7c;return _0x99f37c[_0x398f2d(0x11e)];}get[_0x5a9e7c(0x126)](){const _0x441fb6=_0x5a9e7c;return _0x320d9b[_0x441fb6(0x12c)];}get[_0x5a9e7c(0x106)](){const _0x2f5ae5=_0x5a9e7c;return _0x99f37c[_0x2f5ae5(0x106)];}get[_0x5a9e7c(0xf2)](){return _0x99f37c['PrintScale'];}get[_0x5a9e7c(0xfa)](){const _0x2f8e99=_0x5a9e7c;return _0x99f37c[_0x2f8e99(0xfa)];}get[_0x5a9e7c(0x134)](){const _0xa197d7=_0x5a9e7c;return _0x2da865[_0xa197d7(0x134)];}get[_0x5a9e7c(0x113)](){return _0x2da865['PrintHeaderFooter'];}get[_0x5a9e7c(0x112)](){const _0x169fe4=_0x5a9e7c;return _0x2da865[_0x169fe4(0x112)];}}_0x3000e8[_0x5a9e7c(0x108)][_0x5a9e7c(0x11f)](_0x1adca9);class _0x724ba6 extends _0x3000e8['FUniver']{[_0x5a9e7c(0x10a)](_0x1228f5){const _0x2023c0=_0x5a9e7c,_0x390092=_0x1228f5[_0x2023c0(0x10b)](_0x320d9b[_0x2023c0(0x110)]);this[_0x2023c0(0x111)](this['Event'][_0x2023c0(0x102)],()=>_0x390092[_0x2023c0(0x119)](_0xf695c6=>{const _0x1dcdfb=_0x2023c0;if(_0xf695c6['id']===_0x2da865[_0x1dcdfb(0x12d)]['id']){const _0x139d86=this[_0x1dcdfb(0xf6)]();if(!_0x139d86)return;const _0x3d8c25={'workbook':_0x139d86,'worksheet':_0x139d86[_0x1dcdfb(0x11b)]()};if(_0x3d8c25==null)return;if(this['fireEvent'](this[_0x1dcdfb(0x124)][_0x1dcdfb(0x102)],_0x3d8c25),_0x3d8c25[_0x1dcdfb(0x123)])throw new _0x320d9b[(_0x1dcdfb(0x109))]();}})),this['registerEventHandler'](this[_0x2023c0(0x124)][_0x2023c0(0xf7)],()=>_0x390092['beforeCommandExecuted'](_0x246cf3=>{const _0x41b3c5=_0x2023c0;if(_0x246cf3['id']===_0x2da865['ConfirmSheetPrintOperation']['id']){const _0x53d373=_0x1228f5['get'](_0x2da865[_0x41b3c5(0x120)]);if(!this['getActiveUniverSheet']())return;const _0x4c4c30={'layoutConfig':_0x53d373['layoutConfig'],'renderConfig':_0x53d373[_0x41b3c5(0x125)]};if(_0x4c4c30==null)return;if(this[_0x41b3c5(0x10d)](this[_0x41b3c5(0x124)][_0x41b3c5(0xf7)],_0x4c4c30),_0x4c4c30['cancel'])throw new _0x320d9b[(_0x41b3c5(0x109))]();}})),this['registerEventHandler'](this[_0x2023c0(0x124)][_0x2023c0(0x101)],()=>_0x390092[_0x2023c0(0x119)](_0x26166d=>{const _0x5de8d2=_0x2023c0;if(_0x26166d['id']===_0x2da865[_0x5de8d2(0x11a)]['id']){const _0x2e63f1=_0x1228f5['get'](_0x2da865[_0x5de8d2(0x120)]);if(!this[_0x5de8d2(0xf6)]())return;const _0x326144={'layoutConfig':_0x2e63f1['layoutConfig'],'renderConfig':_0x2e63f1[_0x5de8d2(0x125)]};if(_0x326144==null)return;if(this[_0x5de8d2(0x10d)](this[_0x5de8d2(0x124)]['BeforeSheetPrintCanceled'],_0x326144),_0x326144[_0x5de8d2(0x123)])throw new _0x320d9b['CanceledError']();}})),this[_0x2023c0(0x111)](this['Event'][_0x2023c0(0x122)],()=>_0x390092[_0x2023c0(0x118)](_0x40be17=>{const _0x3d3ffb=_0x2023c0;if(_0x40be17['id']===_0x2da865[_0x3d3ffb(0x12d)]['id']){const _0x6e0f9f=this[_0x3d3ffb(0xf6)]();if(!_0x6e0f9f)return;const _0x3ad436={'workbook':_0x6e0f9f,'worksheet':_0x6e0f9f[_0x3d3ffb(0x11b)]()};if(_0x3ad436==null)return;this['fireEvent'](this[_0x3d3ffb(0x124)]['SheetPrintOpen'],_0x3ad436);}})),this[_0x2023c0(0x111)](this[_0x2023c0(0x124)]['SheetPrintConfirmed'],()=>_0x390092[_0x2023c0(0x118)](_0x3f3b98=>{const _0x334c40=_0x2023c0;if(_0x3f3b98['id']===_0x2da865['ConfirmSheetPrintOperation']['id']){const _0x599c23=_0x1228f5['get'](_0x2da865[_0x334c40(0x120)]);if(!this[_0x334c40(0xf6)]())return;const _0x14239e={'layoutConfig':_0x599c23['layoutConfig'],'renderConfig':_0x599c23[_0x334c40(0x125)]};if(_0x14239e==null)return;this[_0x334c40(0x10d)](this[_0x334c40(0x124)][_0x334c40(0xf5)],_0x14239e);}})),this[_0x2023c0(0x111)](this['Event'][_0x2023c0(0x10f)],()=>_0x390092[_0x2023c0(0x118)](_0x106410=>{const _0x569520=_0x2023c0;if(_0x106410['id']===_0x2da865[_0x569520(0x11a)]['id']){const _0x18e78f=_0x1228f5[_0x569520(0x10b)](_0x2da865[_0x569520(0x120)]);if(!this['getActiveUniverSheet']())return;const _0x2baf81={'layoutConfig':_0x18e78f[_0x569520(0xfb)],'renderConfig':_0x18e78f[_0x569520(0x125)]};if(_0x2baf81==null)return;this[_0x569520(0x10d)](this['Event'][_0x569520(0x10f)],_0x2baf81);}}));}}_0x3000e8[_0x5a9e7c(0x127)]['extend'](_0x724ba6);}));function _0x53d3(){const _0x94f17d=['fireEvent','updatePrintConfig','SheetPrintCanceled','ICommandService','registerEventHandler','PrintHeaderFooterSymbol','PrintHeaderFooter','FRange','1603728dtueXk','UniverCore','FEventName','onCommandExecuted','beforeCommandExecuted','CancelSheetPrintOperation','getActiveSheet','updateRenderConfig','getScreenshot','PrintAlign','extend','ISheetPrintManagerService','executeCommand','SheetPrintOpen','cancel','Event','renderConfig','PrintPaperSize','FUniver','4184772oDByzT','PrintArea','_injector','UniverProPrint','PaperType','SheetPrintOpenOperation','object','330470fZpEai','6688kQnosJ','2290340tvcHtD','function','UniverCoreFacade','PrintFreeze','4eUbVbU','@univerjs/core/facade','UniverSheetsFacade','hasPrintFacadePermission','_range','5754zIQFTS','@univerjs/sheets/facade','1745130NPqaJz','PrintScale','openPrintDialog','saveScreenshotToClipboard','SheetPrintConfirmed','getActiveUniverSheet','BeforeSheetPrintConfirm','12ktdFWZ','@univerjs-pro/print','PrintDirection','layoutConfig','_worksheet','getSheetId','updatePrintRenderConfig','UniverProSheetsPrint','@univerjs-pro/sheets-print','BeforeSheetPrintCanceled','BeforeSheetPrintOpen','FWorkbook','print','_workbook','PrintPaperMargin','55311iTaiFc','FEnum','CanceledError','_initialize','get','syncExecuteCommand'];_0x53d3=function(){return _0x94f17d;};return _0x53d3();}