@univerjs-pro/sheets-print 0.7.0 → 0.8.0-beta.1

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 +40 -40
  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 +17 -17
@@ -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 _0x2f33(){const _0x304b52=['@univerjs/core','renderConfig','UniverProSheetsPrint','updateLayoutConfig','saveScreenshotToClipboard','executeCommand','fireEvent','getUnitId','191gxLhEw','CancelSheetPrintOperation','updateRenderConfig','ISheetPrintManagerService','@univerjs/core/facade','SheetPrintCanceled','10574564deHwWm','layoutConfig','_initialize','1052aBxpTB','SheetPrintOpenOperation','beforeCommandExecuted','PrintFreeze','updatePrintRenderConfig','SheetPrintOpen','SheetPrintClientService','_injector','amd','extend','getActiveUniverSheet','get','getScreenshot','_worksheet','PrintPaperMargin','SheetPrintConfirmed','7998627QzGvIV','Event','FEnum','@univerjs/sheets/facade','1474140wQkWlW','PrintHeaderFooter','PaperType','8fLxUdw','2770tNlBSM','FRange','FWorkbook','2864GdumuC','registerEventHandler','PrintPaperSize','4442046FqHtSZ','getRangeImage','PrintHeaderFooterSymbol','getSheetId','PrintArea','PrintDirection','PrintAlign','updatePrintConfig','print','hasPrintFacadePermission','FEventName','ICommandService','BeforeSheetPrintConfirm','UniverProPrint','BeforeSheetPrintOpen','FUniver','@univerjs-pro/print','BeforeSheetPrintCanceled','CanceledError','getActiveSheet','function','ConfirmSheetPrintOperation','21245QUXOrm','19503mazISL','object','PrintScale','onCommandExecuted','@univerjs-pro/sheets-print','syncExecuteCommand'];_0x2f33=function(){return _0x304b52;};return _0x2f33();}function _0x5b9a(_0x542d5c,_0xe7b6dd){const _0x2f33b7=_0x2f33();return _0x5b9a=function(_0x5b9a87,_0x3e3b50){_0x5b9a87=_0x5b9a87-0x103;let _0x11fac0=_0x2f33b7[_0x5b9a87];return _0x11fac0;},_0x5b9a(_0x542d5c,_0xe7b6dd);}(function(_0x4adc17,_0x1db880){const _0x261ec8=_0x5b9a,_0xbf1da5=_0x4adc17();while(!![]){try{const _0x10fa06=parseInt(_0x261ec8(0x128))/0x1*(parseInt(_0x261ec8(0x14c))/0x2)+parseInt(_0x261ec8(0x145))/0x3+parseInt(_0x261ec8(0x131))/0x4*(parseInt(_0x261ec8(0x119))/0x5)+-parseInt(_0x261ec8(0x103))/0x6+parseInt(_0x261ec8(0x141))/0x7*(parseInt(_0x261ec8(0x148))/0x8)+-parseInt(_0x261ec8(0x11a))/0x9*(parseInt(_0x261ec8(0x149))/0xa)+-parseInt(_0x261ec8(0x12e))/0xb;if(_0x10fa06===_0x1db880)break;else _0xbf1da5['push'](_0xbf1da5['shift']());}catch(_0x26075f){_0xbf1da5['push'](_0xbf1da5['shift']());}}}(_0x2f33,0xb08ac),function(_0x57f795,_0x481672){const _0x88fd9a=_0x5b9a;typeof exports==_0x88fd9a(0x11b)&&typeof module<'u'?_0x481672(require(_0x88fd9a(0x11e)),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade'),require(_0x88fd9a(0x113))):typeof define==_0x88fd9a(0x117)&&define[_0x88fd9a(0x139)]?define([_0x88fd9a(0x11e),_0x88fd9a(0x120),_0x88fd9a(0x144),_0x88fd9a(0x12c),'@univerjs-pro/print'],_0x481672):(_0x57f795=typeof globalThis<'u'?globalThis:_0x57f795||self,_0x481672(_0x57f795[_0x88fd9a(0x122)],_0x57f795['UniverCore'],_0x57f795['UniverSheetsFacade'],_0x57f795['UniverCoreFacade'],_0x57f795[_0x88fd9a(0x110)]));}(this,function(_0x191f1c,_0x16bc5e,_0x19f0c2,_0x1c9cdf,_0x3162c8){'use strict';const _0x171299=_0x5b9a;class _0x57b719 extends _0x19f0c2[_0x171299(0x14b)]{[_0x171299(0x10a)](_0x580568){const _0x564619=_0x171299;return this[_0x564619(0x138)]['get'](_0x191f1c['ISheetPrintManagerService'])[_0x564619(0x123)](_0x580568),this;}[_0x171299(0x135)](_0x5b8fd7){const _0x2c0c9c=_0x171299;return this[_0x2c0c9c(0x138)][_0x2c0c9c(0x13c)](_0x191f1c['ISheetPrintManagerService'])[_0x2c0c9c(0x12a)](_0x5b8fd7),this;}[_0x171299(0x10b)](){const _0x17b445=_0x171299;return this[_0x17b445(0x138)][_0x17b445(0x13c)](_0x16bc5e[_0x17b445(0x10e)])[_0x17b445(0x11f)](_0x191f1c[_0x17b445(0x118)]['id']);}['openPrintDialog'](){const _0x561dcc=_0x171299;return this[_0x561dcc(0x138)][_0x561dcc(0x13c)](_0x16bc5e[_0x561dcc(0x10e)])['syncExecuteCommand'](_0x191f1c[_0x561dcc(0x132)]['id']);}['closePrintDialog'](){const _0x100ea1=_0x171299;return this[_0x100ea1(0x138)][_0x100ea1(0x13c)](_0x16bc5e[_0x100ea1(0x10e)])[_0x100ea1(0x11f)](_0x191f1c[_0x100ea1(0x129)]['id']);}async[_0x171299(0x124)](){const _0x37d444=_0x171299;return _0x191f1c[_0x37d444(0x10c)](this['_injector'])?this[_0x37d444(0x138)][_0x37d444(0x13c)](_0x16bc5e[_0x37d444(0x10e)])[_0x37d444(0x125)](_0x191f1c['SheetScreenShotOperation']['id']):!0x1;}}_0x19f0c2[_0x171299(0x14b)][_0x171299(0x13a)](_0x57b719);class _0x51aa4d extends _0x19f0c2[_0x171299(0x14a)]{[_0x171299(0x13d)](){const _0xbe78fa=_0x171299;return _0x191f1c[_0xbe78fa(0x10c)](this[_0xbe78fa(0x138)])?this[_0xbe78fa(0x138)][_0xbe78fa(0x13c)](_0x191f1c[_0xbe78fa(0x137)])[_0xbe78fa(0x104)](this['_workbook'][_0xbe78fa(0x127)](),this[_0xbe78fa(0x13e)][_0xbe78fa(0x106)](),this['_range']):!0x1;}}_0x19f0c2[_0x171299(0x14a)][_0x171299(0x13a)](_0x51aa4d);class _0x2bc499{get[_0x171299(0x111)](){return'BeforeSheetPrintOpen';}get['BeforeSheetPrintConfirm'](){const _0x2a261b=_0x171299;return _0x2a261b(0x10f);}get[_0x171299(0x114)](){const _0xe6d90b=_0x171299;return _0xe6d90b(0x114);}get['SheetPrintOpen'](){const _0x44cbe3=_0x171299;return _0x44cbe3(0x136);}get[_0x171299(0x140)](){const _0x3a8059=_0x171299;return _0x3a8059(0x140);}get[_0x171299(0x12d)](){const _0x11548c=_0x171299;return _0x11548c(0x12d);}}_0x1c9cdf[_0x171299(0x10d)][_0x171299(0x13a)](_0x2bc499);class _0x4c4e8b{get[_0x171299(0x107)](){const _0x3ebd42=_0x171299;return _0x191f1c[_0x3ebd42(0x107)];}get[_0x171299(0x109)](){const _0x4b4929=_0x171299;return _0x3162c8[_0x4b4929(0x109)];}get[_0x171299(0x14e)](){const _0x3f630c=_0x171299;return _0x16bc5e[_0x3f630c(0x147)];}get['PrintPaperMargin'](){const _0x41e1ca=_0x171299;return _0x3162c8[_0x41e1ca(0x13f)];}get[_0x171299(0x11c)](){const _0x2c4953=_0x171299;return _0x3162c8[_0x2c4953(0x11c)];}get[_0x171299(0x108)](){const _0x5560b5=_0x171299;return _0x3162c8[_0x5560b5(0x108)];}get[_0x171299(0x134)](){const _0x4df7b5=_0x171299;return _0x191f1c[_0x4df7b5(0x134)];}get[_0x171299(0x146)](){const _0x1eeeab=_0x171299;return _0x191f1c[_0x1eeeab(0x146)];}get[_0x171299(0x105)](){return _0x191f1c['PrintHeaderFooterSymbol'];}}_0x1c9cdf[_0x171299(0x143)]['extend'](_0x4c4e8b);class _0x1627fc extends _0x1c9cdf[_0x171299(0x112)]{[_0x171299(0x130)](_0x118155){const _0x2d0fd8=_0x171299,_0x3e6e10=_0x118155['get'](_0x16bc5e[_0x2d0fd8(0x10e)]);this[_0x2d0fd8(0x14d)](this['Event'][_0x2d0fd8(0x111)],()=>_0x3e6e10[_0x2d0fd8(0x133)](_0x17f0c9=>{const _0x34e4ed=_0x2d0fd8;if(_0x17f0c9['id']===_0x191f1c['SheetPrintOpenOperation']['id']){const _0x284674=this['getActiveUniverSheet']();if(!_0x284674)return;const _0x168dd0={'workbook':_0x284674,'worksheet':_0x284674['getActiveSheet']()};if(_0x168dd0==null)return;if(this['fireEvent'](this[_0x34e4ed(0x142)][_0x34e4ed(0x111)],_0x168dd0),_0x168dd0['cancel'])throw new _0x16bc5e['CanceledError']();}})),this['registerEventHandler'](this[_0x2d0fd8(0x142)][_0x2d0fd8(0x10f)],()=>_0x3e6e10[_0x2d0fd8(0x133)](_0x47d3b4=>{const _0x40504e=_0x2d0fd8;if(_0x47d3b4['id']===_0x191f1c['ConfirmSheetPrintOperation']['id']){const _0x250fca=_0x118155['get'](_0x191f1c[_0x40504e(0x12b)]);if(!this['getActiveUniverSheet']())return;const _0x50f5fc={'layoutConfig':_0x250fca[_0x40504e(0x12f)],'renderConfig':_0x250fca[_0x40504e(0x121)]};if(_0x50f5fc==null)return;if(this[_0x40504e(0x126)](this[_0x40504e(0x142)][_0x40504e(0x10f)],_0x50f5fc),_0x50f5fc['cancel'])throw new _0x16bc5e[(_0x40504e(0x115))]();}})),this[_0x2d0fd8(0x14d)](this[_0x2d0fd8(0x142)][_0x2d0fd8(0x114)],()=>_0x3e6e10[_0x2d0fd8(0x133)](_0x18138d=>{const _0x1531cb=_0x2d0fd8;if(_0x18138d['id']===_0x191f1c[_0x1531cb(0x129)]['id']){const _0x252984=_0x118155['get'](_0x191f1c[_0x1531cb(0x12b)]);if(!this[_0x1531cb(0x13b)]())return;const _0x3446e8={'layoutConfig':_0x252984[_0x1531cb(0x12f)],'renderConfig':_0x252984[_0x1531cb(0x121)]};if(_0x3446e8==null)return;if(this['fireEvent'](this[_0x1531cb(0x142)][_0x1531cb(0x114)],_0x3446e8),_0x3446e8['cancel'])throw new _0x16bc5e[(_0x1531cb(0x115))]();}})),this[_0x2d0fd8(0x14d)](this['Event']['SheetPrintOpen'],()=>_0x3e6e10[_0x2d0fd8(0x11d)](_0x48832e=>{const _0x3a9f54=_0x2d0fd8;if(_0x48832e['id']===_0x191f1c[_0x3a9f54(0x132)]['id']){const _0x56d89a=this[_0x3a9f54(0x13b)]();if(!_0x56d89a)return;const _0x535bfd={'workbook':_0x56d89a,'worksheet':_0x56d89a[_0x3a9f54(0x116)]()};if(_0x535bfd==null)return;this[_0x3a9f54(0x126)](this[_0x3a9f54(0x142)][_0x3a9f54(0x136)],_0x535bfd);}})),this[_0x2d0fd8(0x14d)](this[_0x2d0fd8(0x142)]['SheetPrintConfirmed'],()=>_0x3e6e10[_0x2d0fd8(0x11d)](_0x418119=>{const _0x133288=_0x2d0fd8;if(_0x418119['id']===_0x191f1c[_0x133288(0x118)]['id']){const _0x1c3154=_0x118155[_0x133288(0x13c)](_0x191f1c[_0x133288(0x12b)]);if(!this[_0x133288(0x13b)]())return;const _0x5a64d4={'layoutConfig':_0x1c3154['layoutConfig'],'renderConfig':_0x1c3154['renderConfig']};if(_0x5a64d4==null)return;this['fireEvent'](this[_0x133288(0x142)][_0x133288(0x140)],_0x5a64d4);}})),this[_0x2d0fd8(0x14d)](this['Event'][_0x2d0fd8(0x12d)],()=>_0x3e6e10['onCommandExecuted'](_0x3e06f9=>{const _0x37a610=_0x2d0fd8;if(_0x3e06f9['id']===_0x191f1c[_0x37a610(0x129)]['id']){const _0x17a55a=_0x118155['get'](_0x191f1c[_0x37a610(0x12b)]);if(!this[_0x37a610(0x13b)]())return;const _0x46d8d7={'layoutConfig':_0x17a55a[_0x37a610(0x12f)],'renderConfig':_0x17a55a[_0x37a610(0x121)]};if(_0x46d8d7==null)return;this[_0x37a610(0x126)](this[_0x37a610(0x142)][_0x37a610(0x12d)],_0x46d8d7);}}));}}_0x1c9cdf['FUniver'][_0x171299(0x13a)](_0x1627fc);}));