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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +42 -42
  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 _0x54b1(_0x23263e,_0x66d5ee){const _0x1f28d4=_0x1f28();return _0x54b1=function(_0x54b100,_0x4b2abc){_0x54b100=_0x54b100-0x8f;let _0xf99b26=_0x1f28d4[_0x54b100];return _0xf99b26;},_0x54b1(_0x23263e,_0x66d5ee);}(function(_0x3b8d5a,_0x247df9){const _0x257e3e=_0x54b1,_0x577b4b=_0x3b8d5a();while(!![]){try{const _0x587e30=parseInt(_0x257e3e(0xd3))/0x1*(parseInt(_0x257e3e(0xa8))/0x2)+-parseInt(_0x257e3e(0x9d))/0x3*(parseInt(_0x257e3e(0xae))/0x4)+parseInt(_0x257e3e(0xc4))/0x5+parseInt(_0x257e3e(0xad))/0x6+parseInt(_0x257e3e(0xa4))/0x7+-parseInt(_0x257e3e(0xd0))/0x8+-parseInt(_0x257e3e(0xb7))/0x9;if(_0x587e30===_0x247df9)break;else _0x577b4b['push'](_0x577b4b['shift']());}catch(_0x24b128){_0x577b4b['push'](_0x577b4b['shift']());}}}(_0x1f28,0xbb6e1),function(_0x2651c5,_0x3edffa){const _0x4973fc=_0x54b1;typeof exports==_0x4973fc(0xb4)&&typeof module<'u'?_0x3edffa(require(_0x4973fc(0x91)),require('@univerjs/core'),require(_0x4973fc(0x97)),require(_0x4973fc(0xb6)),require(_0x4973fc(0xc6))):typeof define=='function'&&define[_0x4973fc(0xce)]?define([_0x4973fc(0x91),'@univerjs/core',_0x4973fc(0x97),_0x4973fc(0xb6),_0x4973fc(0xc6)],_0x3edffa):(_0x2651c5=typeof globalThis<'u'?globalThis:_0x2651c5||self,_0x3edffa(_0x2651c5['UniverProSheetsPrint'],_0x2651c5[_0x4973fc(0xca)],_0x2651c5['UniverSheetsFacade'],_0x2651c5[_0x4973fc(0xa1)],_0x2651c5[_0x4973fc(0xc8)]));}(this,function(_0x32b81d,_0x5b3b96,_0x56c593,_0x3e300d,_0x22a64b){'use strict';const _0x4a2aad=_0x54b1;class _0x9410fe extends _0x56c593[_0x4a2aad(0xc7)]{['updatePrintConfig'](_0xced545){const _0x4be499=_0x4a2aad;return this[_0x4be499(0xc5)][_0x4be499(0xbc)](_0x32b81d[_0x4be499(0x9a)])['updateLayoutConfig'](_0xced545),this;}[_0x4a2aad(0xc0)](_0x1fc56d){const _0x5a25d2=_0x4a2aad;return this[_0x5a25d2(0xc5)][_0x5a25d2(0xbc)](_0x32b81d['ISheetPrintManagerService'])[_0x5a25d2(0xba)](_0x1fc56d),this;}[_0x4a2aad(0x93)](){const _0x134b5f=_0x4a2aad;return this[_0x134b5f(0xc5)]['get'](_0x5b3b96[_0x134b5f(0xcd)])[_0x134b5f(0xb0)](_0x32b81d['ConfirmSheetPrintOperation']['id']);}['openPrintDialog'](){const _0x4d81c0=_0x4a2aad;return this[_0x4d81c0(0xc5)][_0x4d81c0(0xbc)](_0x5b3b96[_0x4d81c0(0xcd)])[_0x4d81c0(0xb0)](_0x32b81d[_0x4d81c0(0xcc)]['id']);}[_0x4a2aad(0xa0)](){const _0x392a2d=_0x4a2aad;return this['_injector'][_0x392a2d(0xbc)](_0x5b3b96['ICommandService'])['syncExecuteCommand'](_0x32b81d[_0x392a2d(0x90)]['id']);}async[_0x4a2aad(0x98)](){const _0x2ed0db=_0x4a2aad;return _0x32b81d[_0x2ed0db(0xa3)](this[_0x2ed0db(0xc5)])?this[_0x2ed0db(0xc5)]['get'](_0x5b3b96[_0x2ed0db(0xcd)])[_0x2ed0db(0xa7)](_0x32b81d['SheetScreenShotOperation']['id']):!0x1;}}_0x56c593['FWorkbook'][_0x4a2aad(0xc1)](_0x9410fe);class _0x51d052 extends _0x56c593[_0x4a2aad(0xc2)]{[_0x4a2aad(0xb2)](){const _0x1bcb1f=_0x4a2aad;return _0x32b81d[_0x1bcb1f(0xa3)](this[_0x1bcb1f(0xc5)])?this[_0x1bcb1f(0xc5)]['get'](_0x32b81d[_0x1bcb1f(0x92)])[_0x1bcb1f(0xd5)](this[_0x1bcb1f(0x9e)][_0x1bcb1f(0xa2)](),this[_0x1bcb1f(0xc3)][_0x1bcb1f(0xa9)](),this['_range']):!0x1;}}_0x56c593[_0x4a2aad(0xc2)][_0x4a2aad(0xc1)](_0x51d052);class _0xa47b54{get[_0x4a2aad(0xbf)](){return'BeforeSheetPrintOpen';}get[_0x4a2aad(0x96)](){const _0x597303=_0x4a2aad;return _0x597303(0x96);}get['BeforeSheetPrintCanceled'](){const _0x4be708=_0x4a2aad;return _0x4be708(0xb1);}get['SheetPrintOpen'](){const _0x216072=_0x4a2aad;return _0x216072(0xa5);}get['SheetPrintConfirmed'](){const _0x1c431c=_0x4a2aad;return _0x1c431c(0xc9);}get['SheetPrintCanceled'](){const _0x25a645=_0x4a2aad;return _0x25a645(0xd1);}}_0x3e300d[_0x4a2aad(0x8f)][_0x4a2aad(0xc1)](_0xa47b54);class _0x4ff3a9{get[_0x4a2aad(0x9b)](){const _0x57553a=_0x4a2aad;return _0x32b81d[_0x57553a(0x9b)];}get[_0x4a2aad(0xb3)](){const _0x32ae42=_0x4a2aad;return _0x22a64b[_0x32ae42(0xb3)];}get[_0x4a2aad(0xb5)](){const _0x5b9d38=_0x4a2aad;return _0x5b3b96[_0x5b9d38(0xac)];}get['PrintPaperMargin'](){const _0x3b362a=_0x4a2aad;return _0x22a64b[_0x3b362a(0xd2)];}get[_0x4a2aad(0x94)](){const _0x112c97=_0x4a2aad;return _0x22a64b[_0x112c97(0x94)];}get['PrintDirection'](){return _0x22a64b['PrintDirection'];}get[_0x4a2aad(0xd4)](){const _0x52a4d6=_0x4a2aad;return _0x32b81d[_0x52a4d6(0xd4)];}get[_0x4a2aad(0xb8)](){const _0x38538f=_0x4a2aad;return _0x32b81d[_0x38538f(0xb8)];}get[_0x4a2aad(0xb9)](){const _0x279f06=_0x4a2aad;return _0x32b81d[_0x279f06(0xb9)];}}_0x3e300d['FEnum'][_0x4a2aad(0xc1)](_0x4ff3a9);class _0xa58280 extends _0x3e300d[_0x4a2aad(0xcb)]{[_0x4a2aad(0xaa)](_0xb7160d){const _0x480303=_0x4a2aad,_0x2d082b=_0xb7160d[_0x480303(0xbc)](_0x5b3b96[_0x480303(0xcd)]);this[_0x480303(0xd6)](this[_0x480303(0xcf)][_0x480303(0xbf)],()=>_0x2d082b[_0x480303(0xab)](_0x4d85f9=>{const _0x5c85a4=_0x480303;if(_0x4d85f9['id']===_0x32b81d[_0x5c85a4(0xcc)]['id']){const _0x29f037=this[_0x5c85a4(0xbd)]();if(!_0x29f037)return;const _0x514002={'workbook':_0x29f037,'worksheet':_0x29f037[_0x5c85a4(0xbb)]()};if(_0x514002==null)return;if(this['fireEvent'](this[_0x5c85a4(0xcf)][_0x5c85a4(0xbf)],_0x514002),_0x514002[_0x5c85a4(0x9f)])throw new _0x5b3b96['CanceledError']();}})),this[_0x480303(0xd6)](this[_0x480303(0xcf)][_0x480303(0x96)],()=>_0x2d082b[_0x480303(0xab)](_0x43770f=>{const _0x427a71=_0x480303;if(_0x43770f['id']===_0x32b81d[_0x427a71(0x95)]['id']){const _0x129518=_0xb7160d['get'](_0x32b81d[_0x427a71(0x9a)]);if(!this[_0x427a71(0xbd)]())return;const _0x2ddcd5={'layoutConfig':_0x129518[_0x427a71(0xbe)],'renderConfig':_0x129518['renderConfig']};if(_0x2ddcd5==null)return;if(this[_0x427a71(0xaf)](this['Event'][_0x427a71(0x96)],_0x2ddcd5),_0x2ddcd5['cancel'])throw new _0x5b3b96[(_0x427a71(0x99))]();}})),this[_0x480303(0xd6)](this['Event'][_0x480303(0xb1)],()=>_0x2d082b[_0x480303(0xab)](_0x3eec31=>{const _0x56681b=_0x480303;if(_0x3eec31['id']===_0x32b81d[_0x56681b(0x90)]['id']){const _0xd59b08=_0xb7160d[_0x56681b(0xbc)](_0x32b81d[_0x56681b(0x9a)]);if(!this[_0x56681b(0xbd)]())return;const _0x423e06={'layoutConfig':_0xd59b08[_0x56681b(0xbe)],'renderConfig':_0xd59b08['renderConfig']};if(_0x423e06==null)return;if(this['fireEvent'](this['Event']['BeforeSheetPrintCanceled'],_0x423e06),_0x423e06[_0x56681b(0x9f)])throw new _0x5b3b96[(_0x56681b(0x99))]();}})),this['registerEventHandler'](this[_0x480303(0xcf)][_0x480303(0xa5)],()=>_0x2d082b[_0x480303(0xa6)](_0x2c5834=>{const _0x578b66=_0x480303;if(_0x2c5834['id']===_0x32b81d[_0x578b66(0xcc)]['id']){const _0x42b2f0=this[_0x578b66(0xbd)]();if(!_0x42b2f0)return;const _0x234e32={'workbook':_0x42b2f0,'worksheet':_0x42b2f0[_0x578b66(0xbb)]()};if(_0x234e32==null)return;this[_0x578b66(0xaf)](this[_0x578b66(0xcf)][_0x578b66(0xa5)],_0x234e32);}})),this['registerEventHandler'](this[_0x480303(0xcf)][_0x480303(0xc9)],()=>_0x2d082b[_0x480303(0xa6)](_0x416e76=>{const _0x2ce79f=_0x480303;if(_0x416e76['id']===_0x32b81d[_0x2ce79f(0x95)]['id']){const _0x3ca4fa=_0xb7160d['get'](_0x32b81d[_0x2ce79f(0x9a)]);if(!this['getActiveUniverSheet']())return;const _0x5af5fe={'layoutConfig':_0x3ca4fa['layoutConfig'],'renderConfig':_0x3ca4fa[_0x2ce79f(0x9c)]};if(_0x5af5fe==null)return;this[_0x2ce79f(0xaf)](this[_0x2ce79f(0xcf)][_0x2ce79f(0xc9)],_0x5af5fe);}})),this[_0x480303(0xd6)](this[_0x480303(0xcf)][_0x480303(0xd1)],()=>_0x2d082b['onCommandExecuted'](_0x280e19=>{const _0x316105=_0x480303;if(_0x280e19['id']===_0x32b81d[_0x316105(0x90)]['id']){const _0x5e92d6=_0xb7160d[_0x316105(0xbc)](_0x32b81d[_0x316105(0x9a)]);if(!this[_0x316105(0xbd)]())return;const _0x515ec2={'layoutConfig':_0x5e92d6[_0x316105(0xbe)],'renderConfig':_0x5e92d6[_0x316105(0x9c)]};if(_0x515ec2==null)return;this[_0x316105(0xaf)](this[_0x316105(0xcf)][_0x316105(0xd1)],_0x515ec2);}}));}}_0x3e300d[_0x4a2aad(0xcb)][_0x4a2aad(0xc1)](_0xa58280);}));function _0x1f28(){const _0x36e6f5=['1288986DajWlW','getSheetId','_initialize','beforeCommandExecuted','PaperType','7215588ZrZYBw','1425588Pmjpde','fireEvent','syncExecuteCommand','BeforeSheetPrintCanceled','getScreenshot','PrintAlign','object','PrintPaperSize','@univerjs/core/facade','8557110HfrANq','PrintHeaderFooter','PrintHeaderFooterSymbol','updateRenderConfig','getActiveSheet','get','getActiveUniverSheet','layoutConfig','BeforeSheetPrintOpen','updatePrintRenderConfig','extend','FRange','_worksheet','6014075ydbznK','_injector','@univerjs-pro/print','FWorkbook','UniverProPrint','SheetPrintConfirmed','UniverCore','FUniver','SheetPrintOpenOperation','ICommandService','amd','Event','9085784oVzJjf','SheetPrintCanceled','PrintPaperMargin','1GGEWBl','PrintFreeze','getRangeImage','registerEventHandler','FEventName','CancelSheetPrintOperation','@univerjs-pro/sheets-print','SheetPrintClientService','print','PrintScale','ConfirmSheetPrintOperation','BeforeSheetPrintConfirm','@univerjs/sheets/facade','saveScreenshotToClipboard','CanceledError','ISheetPrintManagerService','PrintArea','renderConfig','3VvDQVR','_workbook','cancel','closePrintDialog','UniverCoreFacade','getUnitId','hasPrintFacadePermission','1125019YTFVGM','SheetPrintOpen','onCommandExecuted','executeCommand'];_0x1f28=function(){return _0x36e6f5;};return _0x1f28();}