@univerjs-pro/sheets-print 0.7.0-nightly.202505221607 → 0.7.0-nightly.202505241606

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 (46) 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.js +1 -1
  21. package/lib/locale/en-US.js +1 -1
  22. package/lib/locale/fa-IR.js +1 -1
  23. package/lib/locale/fr-FR.js +1 -1
  24. package/lib/locale/ru-RU.js +1 -1
  25. package/lib/locale/vi-VN.js +1 -1
  26. package/lib/locale/zh-CN.js +1 -1
  27. package/lib/locale/zh-TW.js +1 -1
  28. package/lib/types/common/const.d.ts +40 -40
  29. package/lib/types/controllers/const.d.ts +1 -1
  30. package/lib/types/locale/en-US.d.ts +141 -2
  31. package/lib/types/locale/fa-IR.d.ts +2 -2
  32. package/lib/types/locale/fr-FR.d.ts +2 -2
  33. package/lib/types/locale/ru-RU.d.ts +2 -2
  34. package/lib/types/locale/vi-VN.d.ts +2 -2
  35. package/lib/types/locale/zh-CN.d.ts +3 -142
  36. package/lib/types/locale/zh-TW.d.ts +2 -2
  37. package/lib/umd/facade.js +1 -1
  38. package/lib/umd/index.js +1 -1
  39. package/lib/umd/locale/en-US.js +1 -1
  40. package/lib/umd/locale/fa-IR.js +1 -1
  41. package/lib/umd/locale/fr-FR.js +1 -1
  42. package/lib/umd/locale/ru-RU.js +1 -1
  43. package/lib/umd/locale/vi-VN.js +1 -1
  44. package/lib/umd/locale/zh-CN.js +1 -1
  45. package/lib/umd/locale/zh-TW.js +1 -1
  46. package/package.json +14 -14
@@ -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 _0x15ce(){const _0x94594c=['8wxoOhH','function','17895130raAtgk','getUnitId','FWorkbook','CancelSheetPrintOperation','_worksheet','PrintHeaderFooterSymbol','executeCommand','getScreenshot','5492HOPYBw','UniverProSheetsPrint','831jQuzFe','SheetPrintConfirmed','getSheetId','fireEvent','PrintFreeze','_range','@univerjs/core','updatePrintConfig','renderConfig','openPrintDialog','1870Rjqugv','updateLayoutConfig','_injector','_initialize','UniverCoreFacade','PrintArea','updatePrintRenderConfig','SheetPrintCanceled','ISheetPrintManagerService','cancel','FUniver','PrintScale','BeforeSheetPrintConfirm','6345017QQUFRm','UniverCore','@univerjs-pro/print','getActiveSheet','getActiveUniverSheet','BeforeSheetPrintOpen','saveScreenshotToClipboard','@univerjs/core/facade','layoutConfig','UniverSheetsFacade','29870MLCInX','638422FvZwtf','get','FRange','CanceledError','beforeCommandExecuted','SheetPrintOpenOperation','PrintPaperSize','closePrintDialog','ConfirmSheetPrintOperation','PrintDirection','UniverProPrint','PrintHeaderFooter','6158028Pgrixu','PrintPaperMargin','Event','registerEventHandler','onCommandExecuted','BeforeSheetPrintCanceled','extend','hasPrintFacadePermission','syncExecuteCommand','getRangeImage','ICommandService','FEventName','@univerjs-pro/sheets-print','1899wmYpSj','SheetPrintOpen','764CpjCBP','updateRenderConfig'];_0x15ce=function(){return _0x94594c;};return _0x15ce();}function _0x96e6(_0x5aa2cc,_0xa3fadd){const _0x15cec7=_0x15ce();return _0x96e6=function(_0x96e68f,_0x168b0a){_0x96e68f=_0x96e68f-0x11f;let _0x33b242=_0x15cec7[_0x96e68f];return _0x33b242;},_0x96e6(_0x5aa2cc,_0xa3fadd);}(function(_0x32467f,_0x1bad85){const _0x44ca6a=_0x96e6,_0x4e783a=_0x32467f();while(!![]){try{const _0x649e16=-parseInt(_0x44ca6a(0x126))/0x1+parseInt(_0x44ca6a(0x141))/0x2*(-parseInt(_0x44ca6a(0x14f))/0x3)+parseInt(_0x44ca6a(0x14d))/0x4*(parseInt(_0x44ca6a(0x159))/0x5)+-parseInt(_0x44ca6a(0x132))/0x6+parseInt(_0x44ca6a(0x166))/0x7*(parseInt(_0x44ca6a(0x143))/0x8)+parseInt(_0x44ca6a(0x13f))/0x9*(-parseInt(_0x44ca6a(0x125))/0xa)+parseInt(_0x44ca6a(0x145))/0xb;if(_0x649e16===_0x1bad85)break;else _0x4e783a['push'](_0x4e783a['shift']());}catch(_0x32fb61){_0x4e783a['push'](_0x4e783a['shift']());}}}(_0x15ce,0x9db2c),function(_0x5f0c79,_0x5ac177){const _0x4ea1a0=_0x96e6;typeof exports=='object'&&typeof module<'u'?_0x5ac177(require(_0x4ea1a0(0x13e)),require(_0x4ea1a0(0x155)),require('@univerjs/sheets/facade'),require(_0x4ea1a0(0x122)),require(_0x4ea1a0(0x168))):typeof define==_0x4ea1a0(0x144)&&define['amd']?define(['@univerjs-pro/sheets-print',_0x4ea1a0(0x155),'@univerjs/sheets/facade','@univerjs/core/facade','@univerjs-pro/print'],_0x5ac177):(_0x5f0c79=typeof globalThis<'u'?globalThis:_0x5f0c79||self,_0x5ac177(_0x5f0c79[_0x4ea1a0(0x14e)],_0x5f0c79[_0x4ea1a0(0x167)],_0x5f0c79[_0x4ea1a0(0x124)],_0x5f0c79[_0x4ea1a0(0x15d)],_0x5f0c79[_0x4ea1a0(0x130)]));}(this,function(_0x5409de,_0x4407dd,_0x9057ed,_0x279cb9,_0x309685){'use strict';const _0x247632=_0x96e6;class _0x46584e extends _0x9057ed['FWorkbook']{[_0x247632(0x156)](_0xabf92b){const _0x508ddc=_0x247632;return this[_0x508ddc(0x15b)][_0x508ddc(0x127)](_0x5409de[_0x508ddc(0x161)])[_0x508ddc(0x15a)](_0xabf92b),this;}[_0x247632(0x15f)](_0x29b79b){const _0x572cc0=_0x247632;return this['_injector'][_0x572cc0(0x127)](_0x5409de[_0x572cc0(0x161)])[_0x572cc0(0x142)](_0x29b79b),this;}['print'](){const _0x348783=_0x247632;return this[_0x348783(0x15b)][_0x348783(0x127)](_0x4407dd[_0x348783(0x13c)])['syncExecuteCommand'](_0x5409de[_0x348783(0x12e)]['id']);}[_0x247632(0x158)](){const _0x402e63=_0x247632;return this[_0x402e63(0x15b)][_0x402e63(0x127)](_0x4407dd[_0x402e63(0x13c)])[_0x402e63(0x13a)](_0x5409de[_0x402e63(0x12b)]['id']);}[_0x247632(0x12d)](){const _0x3e4149=_0x247632;return this[_0x3e4149(0x15b)][_0x3e4149(0x127)](_0x4407dd[_0x3e4149(0x13c)])[_0x3e4149(0x13a)](_0x5409de[_0x3e4149(0x148)]['id']);}async[_0x247632(0x121)](){const _0x23e118=_0x247632;return _0x5409de[_0x23e118(0x139)](this[_0x23e118(0x15b)])?this[_0x23e118(0x15b)][_0x23e118(0x127)](_0x4407dd[_0x23e118(0x13c)])[_0x23e118(0x14b)](_0x5409de['SheetScreenShotOperation']['id']):!0x1;}}_0x9057ed[_0x247632(0x147)][_0x247632(0x138)](_0x46584e);class _0x11615d extends _0x9057ed[_0x247632(0x128)]{[_0x247632(0x14c)](){const _0xfcc926=_0x247632;return _0x5409de['hasPrintFacadePermission'](this[_0xfcc926(0x15b)])?this[_0xfcc926(0x15b)]['get'](_0x5409de['SheetPrintClientService'])[_0xfcc926(0x13b)](this['_workbook'][_0xfcc926(0x146)](),this[_0xfcc926(0x149)][_0xfcc926(0x151)](),this[_0xfcc926(0x154)]):!0x1;}}_0x9057ed['FRange']['extend'](_0x11615d);class _0x3443d7{get[_0x247632(0x120)](){return'BeforeSheetPrintOpen';}get[_0x247632(0x165)](){const _0x324963=_0x247632;return _0x324963(0x165);}get[_0x247632(0x137)](){const _0x57fea7=_0x247632;return _0x57fea7(0x137);}get[_0x247632(0x140)](){return'SheetPrintOpen';}get[_0x247632(0x150)](){const _0x115bd1=_0x247632;return _0x115bd1(0x150);}get[_0x247632(0x160)](){const _0x1c6202=_0x247632;return _0x1c6202(0x160);}}_0x279cb9[_0x247632(0x13d)][_0x247632(0x138)](_0x3443d7);class _0x5aafc2{get['PrintArea'](){const _0x595931=_0x247632;return _0x5409de[_0x595931(0x15e)];}get['PrintAlign'](){return _0x309685['PrintAlign'];}get[_0x247632(0x12c)](){return _0x4407dd['PaperType'];}get[_0x247632(0x133)](){const _0x1d1501=_0x247632;return _0x309685[_0x1d1501(0x133)];}get[_0x247632(0x164)](){const _0x262e28=_0x247632;return _0x309685[_0x262e28(0x164)];}get['PrintDirection'](){const _0x1cd9a7=_0x247632;return _0x309685[_0x1cd9a7(0x12f)];}get[_0x247632(0x153)](){const _0x28f9f9=_0x247632;return _0x5409de[_0x28f9f9(0x153)];}get[_0x247632(0x131)](){const _0x3aa649=_0x247632;return _0x5409de[_0x3aa649(0x131)];}get[_0x247632(0x14a)](){const _0xd05d09=_0x247632;return _0x5409de[_0xd05d09(0x14a)];}}_0x279cb9['FEnum']['extend'](_0x5aafc2);class _0x583216 extends _0x279cb9[_0x247632(0x163)]{[_0x247632(0x15c)](_0x380605){const _0x369f43=_0x247632,_0x536a45=_0x380605[_0x369f43(0x127)](_0x4407dd[_0x369f43(0x13c)]);this[_0x369f43(0x135)](this[_0x369f43(0x134)][_0x369f43(0x120)],()=>_0x536a45[_0x369f43(0x12a)](_0x4a8100=>{const _0x51d7eb=_0x369f43;if(_0x4a8100['id']===_0x5409de['SheetPrintOpenOperation']['id']){const _0x5467b4=this['getActiveUniverSheet']();if(!_0x5467b4)return;const _0x51ea48={'workbook':_0x5467b4,'worksheet':_0x5467b4[_0x51d7eb(0x169)]()};if(_0x51ea48==null)return;if(this[_0x51d7eb(0x152)](this['Event'][_0x51d7eb(0x120)],_0x51ea48),_0x51ea48['cancel'])throw new _0x4407dd[(_0x51d7eb(0x129))]();}})),this[_0x369f43(0x135)](this[_0x369f43(0x134)][_0x369f43(0x165)],()=>_0x536a45[_0x369f43(0x12a)](_0x196752=>{const _0x1b7682=_0x369f43;if(_0x196752['id']===_0x5409de[_0x1b7682(0x12e)]['id']){const _0xadbdba=_0x380605[_0x1b7682(0x127)](_0x5409de[_0x1b7682(0x161)]);if(!this['getActiveUniverSheet']())return;const _0x5beb07={'layoutConfig':_0xadbdba[_0x1b7682(0x123)],'renderConfig':_0xadbdba['renderConfig']};if(_0x5beb07==null)return;if(this[_0x1b7682(0x152)](this[_0x1b7682(0x134)][_0x1b7682(0x165)],_0x5beb07),_0x5beb07[_0x1b7682(0x162)])throw new _0x4407dd[(_0x1b7682(0x129))]();}})),this[_0x369f43(0x135)](this[_0x369f43(0x134)][_0x369f43(0x137)],()=>_0x536a45[_0x369f43(0x12a)](_0x3553b2=>{const _0x4a3824=_0x369f43;if(_0x3553b2['id']===_0x5409de[_0x4a3824(0x148)]['id']){const _0x1ebc12=_0x380605['get'](_0x5409de['ISheetPrintManagerService']);if(!this[_0x4a3824(0x11f)]())return;const _0x5ed7dd={'layoutConfig':_0x1ebc12[_0x4a3824(0x123)],'renderConfig':_0x1ebc12[_0x4a3824(0x157)]};if(_0x5ed7dd==null)return;if(this['fireEvent'](this[_0x4a3824(0x134)][_0x4a3824(0x137)],_0x5ed7dd),_0x5ed7dd['cancel'])throw new _0x4407dd[(_0x4a3824(0x129))]();}})),this[_0x369f43(0x135)](this[_0x369f43(0x134)][_0x369f43(0x140)],()=>_0x536a45['onCommandExecuted'](_0x154655=>{const _0x432f95=_0x369f43;if(_0x154655['id']===_0x5409de['SheetPrintOpenOperation']['id']){const _0x5c6c9f=this[_0x432f95(0x11f)]();if(!_0x5c6c9f)return;const _0x5035b2={'workbook':_0x5c6c9f,'worksheet':_0x5c6c9f['getActiveSheet']()};if(_0x5035b2==null)return;this[_0x432f95(0x152)](this[_0x432f95(0x134)][_0x432f95(0x140)],_0x5035b2);}})),this['registerEventHandler'](this[_0x369f43(0x134)]['SheetPrintConfirmed'],()=>_0x536a45[_0x369f43(0x136)](_0xf6d760=>{const _0x52303e=_0x369f43;if(_0xf6d760['id']===_0x5409de['ConfirmSheetPrintOperation']['id']){const _0x5e10a6=_0x380605[_0x52303e(0x127)](_0x5409de[_0x52303e(0x161)]);if(!this[_0x52303e(0x11f)]())return;const _0x574780={'layoutConfig':_0x5e10a6[_0x52303e(0x123)],'renderConfig':_0x5e10a6[_0x52303e(0x157)]};if(_0x574780==null)return;this[_0x52303e(0x152)](this['Event']['SheetPrintConfirmed'],_0x574780);}})),this[_0x369f43(0x135)](this[_0x369f43(0x134)][_0x369f43(0x160)],()=>_0x536a45['onCommandExecuted'](_0x41e2da=>{const _0x2a7227=_0x369f43;if(_0x41e2da['id']===_0x5409de[_0x2a7227(0x148)]['id']){const _0x253331=_0x380605['get'](_0x5409de[_0x2a7227(0x161)]);if(!this[_0x2a7227(0x11f)]())return;const _0x323df3={'layoutConfig':_0x253331[_0x2a7227(0x123)],'renderConfig':_0x253331['renderConfig']};if(_0x323df3==null)return;this[_0x2a7227(0x152)](this[_0x2a7227(0x134)][_0x2a7227(0x160)],_0x323df3);}}));}}_0x279cb9['FUniver'][_0x247632(0x138)](_0x583216);}));
1
+ function _0x59e6(_0xab9d8c,_0x378cfc){const _0x21f2bf=_0x21f2();return _0x59e6=function(_0x59e653,_0x3f6f3e){_0x59e653=_0x59e653-0xef;let _0x5ae245=_0x21f2bf[_0x59e653];return _0x5ae245;},_0x59e6(_0xab9d8c,_0x378cfc);}(function(_0x50ed7b,_0x1870dd){const _0x2599c0=_0x59e6,_0x1113c1=_0x50ed7b();while(!![]){try{const _0x180ef9=parseInt(_0x2599c0(0x123))/0x1*(parseInt(_0x2599c0(0x12a))/0x2)+parseInt(_0x2599c0(0x130))/0x3*(-parseInt(_0x2599c0(0x101))/0x4)+parseInt(_0x2599c0(0xfe))/0x5*(-parseInt(_0x2599c0(0x11c))/0x6)+-parseInt(_0x2599c0(0x136))/0x7*(parseInt(_0x2599c0(0x108))/0x8)+parseInt(_0x2599c0(0x12e))/0x9+-parseInt(_0x2599c0(0x11f))/0xa+parseInt(_0x2599c0(0xf5))/0xb;if(_0x180ef9===_0x1870dd)break;else _0x1113c1['push'](_0x1113c1['shift']());}catch(_0x3bd10a){_0x1113c1['push'](_0x1113c1['shift']());}}}(_0x21f2,0xc314c),function(_0x3309c6,_0x327cda){const _0x13b2b5=_0x59e6;typeof exports==_0x13b2b5(0x107)&&typeof module<'u'?_0x327cda(require(_0x13b2b5(0x10e)),require(_0x13b2b5(0xf0)),require(_0x13b2b5(0xfd)),require('@univerjs/core/facade'),require(_0x13b2b5(0xfb))):typeof define=='function'&&define[_0x13b2b5(0x10a)]?define([_0x13b2b5(0x10e),_0x13b2b5(0xf0),_0x13b2b5(0xfd),_0x13b2b5(0x114),_0x13b2b5(0xfb)],_0x327cda):(_0x3309c6=typeof globalThis<'u'?globalThis:_0x3309c6||self,_0x327cda(_0x3309c6[_0x13b2b5(0x12b)],_0x3309c6[_0x13b2b5(0xf4)],_0x3309c6[_0x13b2b5(0x100)],_0x3309c6['UniverCoreFacade'],_0x3309c6[_0x13b2b5(0x10d)]));}(this,function(_0x21aebf,_0x3ae49f,_0x1198c8,_0x52c409,_0x2931ae){'use strict';const _0x43c792=_0x59e6;class _0x1ae410 extends _0x1198c8[_0x43c792(0x116)]{[_0x43c792(0x103)](_0xbffdd6){const _0xcf8012=_0x43c792;return this[_0xcf8012(0xf3)][_0xcf8012(0x134)](_0x21aebf[_0xcf8012(0x12c)])[_0xcf8012(0xf1)](_0xbffdd6),this;}[_0x43c792(0x124)](_0x5bb295){const _0x370387=_0x43c792;return this['_injector'][_0x370387(0x134)](_0x21aebf[_0x370387(0x12c)])['updateRenderConfig'](_0x5bb295),this;}[_0x43c792(0xf8)](){const _0x1baef2=_0x43c792;return this['_injector'][_0x1baef2(0x134)](_0x3ae49f[_0x1baef2(0x102)])[_0x1baef2(0x139)](_0x21aebf[_0x1baef2(0x104)]['id']);}[_0x43c792(0x133)](){const _0x1bf387=_0x43c792;return this[_0x1bf387(0xf3)]['get'](_0x3ae49f[_0x1bf387(0x102)])[_0x1bf387(0x139)](_0x21aebf['SheetPrintOpenOperation']['id']);}[_0x43c792(0x126)](){const _0x30474e=_0x43c792;return this[_0x30474e(0xf3)]['get'](_0x3ae49f['ICommandService'])[_0x30474e(0x139)](_0x21aebf['CancelSheetPrintOperation']['id']);}async[_0x43c792(0x122)](){const _0x2ad7c6=_0x43c792;return _0x21aebf[_0x2ad7c6(0x118)](this[_0x2ad7c6(0xf3)])?this[_0x2ad7c6(0xf3)][_0x2ad7c6(0x134)](_0x3ae49f['ICommandService'])[_0x2ad7c6(0x121)](_0x21aebf['SheetScreenShotOperation']['id']):!0x1;}}_0x1198c8[_0x43c792(0x116)][_0x43c792(0xf6)](_0x1ae410);class _0x3c76a extends _0x1198c8['FRange']{[_0x43c792(0xf2)](){const _0x261c2c=_0x43c792;return _0x21aebf['hasPrintFacadePermission'](this[_0x261c2c(0xf3)])?this[_0x261c2c(0xf3)][_0x261c2c(0x134)](_0x21aebf['SheetPrintClientService'])[_0x261c2c(0x138)](this[_0x261c2c(0x11d)]['getUnitId'](),this['_worksheet'][_0x261c2c(0x12f)](),this[_0x261c2c(0x11b)]):!0x1;}}_0x1198c8[_0x43c792(0xff)][_0x43c792(0xf6)](_0x3c76a);class _0x4d36ad{get[_0x43c792(0x119)](){const _0x11ba7d=_0x43c792;return _0x11ba7d(0x119);}get['BeforeSheetPrintConfirm'](){return'BeforeSheetPrintConfirm';}get[_0x43c792(0x117)](){const _0x6e478=_0x43c792;return _0x6e478(0x117);}get[_0x43c792(0x128)](){const _0x988d56=_0x43c792;return _0x988d56(0x128);}get[_0x43c792(0x127)](){const _0x165915=_0x43c792;return _0x165915(0x127);}get[_0x43c792(0x10c)](){const _0x24e1b1=_0x43c792;return _0x24e1b1(0x10c);}}_0x52c409[_0x43c792(0x135)]['extend'](_0x4d36ad);class _0x2911e4{get[_0x43c792(0x131)](){const _0x457da8=_0x43c792;return _0x21aebf[_0x457da8(0x131)];}get[_0x43c792(0x110)](){return _0x2931ae['PrintAlign'];}get[_0x43c792(0xfc)](){const _0x141463=_0x43c792;return _0x3ae49f[_0x141463(0xf9)];}get[_0x43c792(0x11a)](){return _0x2931ae['PrintPaperMargin'];}get['PrintScale'](){const _0x4945f8=_0x43c792;return _0x2931ae[_0x4945f8(0x109)];}get['PrintDirection'](){const _0x59a1ad=_0x43c792;return _0x2931ae[_0x59a1ad(0x111)];}get['PrintFreeze'](){const _0xa1a8e=_0x43c792;return _0x21aebf[_0xa1a8e(0x115)];}get['PrintHeaderFooter'](){const _0x46aece=_0x43c792;return _0x21aebf[_0x46aece(0x10f)];}get[_0x43c792(0x13b)](){return _0x21aebf['PrintHeaderFooterSymbol'];}}_0x52c409['FEnum']['extend'](_0x2911e4);class _0x2d5408 extends _0x52c409[_0x43c792(0x132)]{[_0x43c792(0x125)](_0x3cb270){const _0x9b6349=_0x43c792,_0x48cc63=_0x3cb270[_0x9b6349(0x134)](_0x3ae49f[_0x9b6349(0x102)]);this[_0x9b6349(0x106)](this[_0x9b6349(0x12d)][_0x9b6349(0x119)],()=>_0x48cc63[_0x9b6349(0x129)](_0x1af5e4=>{const _0x4e6e53=_0x9b6349;if(_0x1af5e4['id']===_0x21aebf[_0x4e6e53(0x113)]['id']){const _0x2ae33f=this[_0x4e6e53(0xf7)]();if(!_0x2ae33f)return;const _0x3884c8={'workbook':_0x2ae33f,'worksheet':_0x2ae33f[_0x4e6e53(0x13a)]()};if(_0x3884c8==null)return;if(this['fireEvent'](this[_0x4e6e53(0x12d)]['BeforeSheetPrintOpen'],_0x3884c8),_0x3884c8[_0x4e6e53(0x10b)])throw new _0x3ae49f[(_0x4e6e53(0xfa))]();}})),this[_0x9b6349(0x106)](this[_0x9b6349(0x12d)][_0x9b6349(0x112)],()=>_0x48cc63[_0x9b6349(0x129)](_0x351413=>{const _0x3c7a84=_0x9b6349;if(_0x351413['id']===_0x21aebf['ConfirmSheetPrintOperation']['id']){const _0x1da29f=_0x3cb270[_0x3c7a84(0x134)](_0x21aebf[_0x3c7a84(0x12c)]);if(!this[_0x3c7a84(0xf7)]())return;const _0x349480={'layoutConfig':_0x1da29f['layoutConfig'],'renderConfig':_0x1da29f[_0x3c7a84(0x11e)]};if(_0x349480==null)return;if(this[_0x3c7a84(0xef)](this['Event']['BeforeSheetPrintConfirm'],_0x349480),_0x349480['cancel'])throw new _0x3ae49f[(_0x3c7a84(0xfa))]();}})),this[_0x9b6349(0x106)](this['Event'][_0x9b6349(0x117)],()=>_0x48cc63[_0x9b6349(0x129)](_0x2bd09d=>{const _0xd63c12=_0x9b6349;if(_0x2bd09d['id']===_0x21aebf[_0xd63c12(0x105)]['id']){const _0x1c500f=_0x3cb270[_0xd63c12(0x134)](_0x21aebf[_0xd63c12(0x12c)]);if(!this[_0xd63c12(0xf7)]())return;const _0x5b8a00={'layoutConfig':_0x1c500f[_0xd63c12(0x120)],'renderConfig':_0x1c500f[_0xd63c12(0x11e)]};if(_0x5b8a00==null)return;if(this[_0xd63c12(0xef)](this['Event'][_0xd63c12(0x117)],_0x5b8a00),_0x5b8a00[_0xd63c12(0x10b)])throw new _0x3ae49f[(_0xd63c12(0xfa))]();}})),this[_0x9b6349(0x106)](this[_0x9b6349(0x12d)][_0x9b6349(0x128)],()=>_0x48cc63[_0x9b6349(0x137)](_0x130e9=>{const _0x1ee09a=_0x9b6349;if(_0x130e9['id']===_0x21aebf[_0x1ee09a(0x113)]['id']){const _0x507820=this[_0x1ee09a(0xf7)]();if(!_0x507820)return;const _0x44861c={'workbook':_0x507820,'worksheet':_0x507820[_0x1ee09a(0x13a)]()};if(_0x44861c==null)return;this['fireEvent'](this[_0x1ee09a(0x12d)][_0x1ee09a(0x128)],_0x44861c);}})),this[_0x9b6349(0x106)](this['Event']['SheetPrintConfirmed'],()=>_0x48cc63['onCommandExecuted'](_0x53ab69=>{const _0x326577=_0x9b6349;if(_0x53ab69['id']===_0x21aebf['ConfirmSheetPrintOperation']['id']){const _0x3f53bb=_0x3cb270[_0x326577(0x134)](_0x21aebf[_0x326577(0x12c)]);if(!this['getActiveUniverSheet']())return;const _0x47e3f1={'layoutConfig':_0x3f53bb[_0x326577(0x120)],'renderConfig':_0x3f53bb['renderConfig']};if(_0x47e3f1==null)return;this['fireEvent'](this[_0x326577(0x12d)][_0x326577(0x127)],_0x47e3f1);}})),this['registerEventHandler'](this[_0x9b6349(0x12d)][_0x9b6349(0x10c)],()=>_0x48cc63[_0x9b6349(0x137)](_0x4cfe6e=>{const _0x234856=_0x9b6349;if(_0x4cfe6e['id']===_0x21aebf[_0x234856(0x105)]['id']){const _0x26bd42=_0x3cb270[_0x234856(0x134)](_0x21aebf[_0x234856(0x12c)]);if(!this['getActiveUniverSheet']())return;const _0x4c0c6b={'layoutConfig':_0x26bd42[_0x234856(0x120)],'renderConfig':_0x26bd42[_0x234856(0x11e)]};if(_0x4c0c6b==null)return;this['fireEvent'](this[_0x234856(0x12d)][_0x234856(0x10c)],_0x4c0c6b);}}));}}_0x52c409[_0x43c792(0x132)]['extend'](_0x2d5408);}));function _0x21f2(){const _0x1641ad=['PrintAlign','PrintDirection','BeforeSheetPrintConfirm','SheetPrintOpenOperation','@univerjs/core/facade','PrintFreeze','FWorkbook','BeforeSheetPrintCanceled','hasPrintFacadePermission','BeforeSheetPrintOpen','PrintPaperMargin','_range','8975838SxbANt','_workbook','renderConfig','1057570JfFzZn','layoutConfig','executeCommand','saveScreenshotToClipboard','8eEZvSn','updatePrintRenderConfig','_initialize','closePrintDialog','SheetPrintConfirmed','SheetPrintOpen','beforeCommandExecuted','35276GegvNT','UniverProSheetsPrint','ISheetPrintManagerService','Event','12254922nnsWMC','getSheetId','361278yYypMO','PrintArea','FUniver','openPrintDialog','get','FEventName','7GNZohO','onCommandExecuted','getRangeImage','syncExecuteCommand','getActiveSheet','PrintHeaderFooterSymbol','fireEvent','@univerjs/core','updateLayoutConfig','getScreenshot','_injector','UniverCore','26917385QFnSPs','extend','getActiveUniverSheet','print','PaperType','CanceledError','@univerjs-pro/print','PrintPaperSize','@univerjs/sheets/facade','5KrsYyk','FRange','UniverSheetsFacade','28uSGEuG','ICommandService','updatePrintConfig','ConfirmSheetPrintOperation','CancelSheetPrintOperation','registerEventHandler','object','5648264WZUzWF','PrintScale','amd','cancel','SheetPrintCanceled','UniverProPrint','@univerjs-pro/sheets-print','PrintHeaderFooter'];_0x21f2=function(){return _0x1641ad;};return _0x21f2();}