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

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 +39 -39
  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 _0x18be(_0x5be67e,_0x170831){const _0x2f17ea=_0x2f17();return _0x18be=function(_0x18becc,_0x497336){_0x18becc=_0x18becc-0xb6;let _0x53f374=_0x2f17ea[_0x18becc];return _0x53f374;},_0x18be(_0x5be67e,_0x170831);}(function(_0x3eee73,_0x3dccb0){const _0x469941=_0x18be,_0x547189=_0x3eee73();while(!![]){try{const _0x12aff0=parseInt(_0x469941(0xc0))/0x1*(-parseInt(_0x469941(0xfc))/0x2)+-parseInt(_0x469941(0xd1))/0x3*(parseInt(_0x469941(0xdf))/0x4)+parseInt(_0x469941(0xe3))/0x5+-parseInt(_0x469941(0xd0))/0x6+parseInt(_0x469941(0xd8))/0x7+-parseInt(_0x469941(0xb6))/0x8*(-parseInt(_0x469941(0xf4))/0x9)+parseInt(_0x469941(0xc8))/0xa*(parseInt(_0x469941(0xfe))/0xb);if(_0x12aff0===_0x3dccb0)break;else _0x547189['push'](_0x547189['shift']());}catch(_0x405246){_0x547189['push'](_0x547189['shift']());}}}(_0x2f17,0x9f733),function(_0x30891b,_0x40c116){const _0x2c6dd1=_0x18be;typeof exports==_0x2c6dd1(0xd9)&&typeof module<'u'?_0x40c116(require(_0x2c6dd1(0xc1)),require('@univerjs/core'),require(_0x2c6dd1(0xb7)),require('@univerjs/core/facade'),require(_0x2c6dd1(0xdb))):typeof define==_0x2c6dd1(0xb9)&&define['amd']?define(['@univerjs-pro/sheets-print','@univerjs/core','@univerjs/sheets/facade','@univerjs/core/facade',_0x2c6dd1(0xdb)],_0x40c116):(_0x30891b=typeof globalThis<'u'?globalThis:_0x30891b||self,_0x40c116(_0x30891b[_0x2c6dd1(0xd6)],_0x30891b['UniverCore'],_0x30891b['UniverSheetsFacade'],_0x30891b[_0x2c6dd1(0xd5)],_0x30891b[_0x2c6dd1(0xbc)]));}(this,function(_0x489803,_0x4aed5b,_0x37a6f5,_0x15a686,_0x457456){'use strict';const _0x49c651=_0x18be;class _0x11d1f2 extends _0x37a6f5[_0x49c651(0xbf)]{['updatePrintConfig'](_0x46e34a){const _0x1554ee=_0x49c651;return this['_injector'][_0x1554ee(0xfa)](_0x489803[_0x1554ee(0xbb)])[_0x1554ee(0xce)](_0x46e34a),this;}[_0x49c651(0xc4)](_0x5a4b5e){const _0x502470=_0x49c651;return this[_0x502470(0xf6)][_0x502470(0xfa)](_0x489803[_0x502470(0xbb)])['updateRenderConfig'](_0x5a4b5e),this;}[_0x49c651(0xee)](){const _0x1b42cc=_0x49c651;return this[_0x1b42cc(0xf6)][_0x1b42cc(0xfa)](_0x4aed5b[_0x1b42cc(0xd7)])[_0x1b42cc(0xf9)](_0x489803[_0x1b42cc(0xe4)]['id']);}[_0x49c651(0xed)](){const _0x49cc2c=_0x49c651;return this[_0x49cc2c(0xf6)][_0x49cc2c(0xfa)](_0x4aed5b[_0x49cc2c(0xd7)])[_0x49cc2c(0xf9)](_0x489803[_0x49cc2c(0xc6)]['id']);}[_0x49c651(0xde)](){const _0x5d9265=_0x49c651;return this['_injector'][_0x5d9265(0xfa)](_0x4aed5b['ICommandService'])[_0x5d9265(0xf9)](_0x489803[_0x5d9265(0xc9)]['id']);}async[_0x49c651(0xeb)](){const _0x469e32=_0x49c651;return _0x489803[_0x469e32(0xb8)](this[_0x469e32(0xf6)])?this[_0x469e32(0xf6)][_0x469e32(0xfa)](_0x4aed5b[_0x469e32(0xd7)])['executeCommand'](_0x489803[_0x469e32(0xf2)]['id']):!0x1;}}_0x37a6f5['FWorkbook'][_0x49c651(0xf0)](_0x11d1f2);class _0x3f76dd extends _0x37a6f5[_0x49c651(0xf3)]{[_0x49c651(0xc7)](){const _0x297608=_0x49c651;return _0x489803[_0x297608(0xb8)](this[_0x297608(0xf6)])?this[_0x297608(0xf6)][_0x297608(0xfa)](_0x489803[_0x297608(0xe7)])[_0x297608(0xe5)](this[_0x297608(0xea)]['getUnitId'](),this[_0x297608(0xdc)]['getSheetId'](),this[_0x297608(0xcb)]):!0x1;}}_0x37a6f5[_0x49c651(0xf3)][_0x49c651(0xf0)](_0x3f76dd);class _0x524c3c{get[_0x49c651(0xd3)](){const _0x576892=_0x49c651;return _0x576892(0xd3);}get[_0x49c651(0xe1)](){return'BeforeSheetPrintConfirm';}get[_0x49c651(0xe2)](){const _0x458427=_0x49c651;return _0x458427(0xe2);}get[_0x49c651(0xca)](){const _0x344d18=_0x49c651;return _0x344d18(0xca);}get[_0x49c651(0xbe)](){const _0x201685=_0x49c651;return _0x201685(0xbe);}get['SheetPrintCanceled'](){const _0x5862d6=_0x49c651;return _0x5862d6(0xc3);}}_0x15a686[_0x49c651(0xda)][_0x49c651(0xf0)](_0x524c3c);class _0xd4131d{get[_0x49c651(0xc5)](){return _0x489803['PrintArea'];}get[_0x49c651(0xcc)](){const _0x26ea61=_0x49c651;return _0x457456[_0x26ea61(0xcc)];}get['PrintPaperSize'](){const _0x11711f=_0x49c651;return _0x4aed5b[_0x11711f(0xe9)];}get[_0x49c651(0xf8)](){const _0x5afc47=_0x49c651;return _0x457456[_0x5afc47(0xf8)];}get[_0x49c651(0xe8)](){return _0x457456['PrintScale'];}get['PrintDirection'](){const _0x484a4b=_0x49c651;return _0x457456[_0x484a4b(0xd4)];}get['PrintFreeze'](){return _0x489803['PrintFreeze'];}get['PrintHeaderFooter'](){const _0x5a6dc5=_0x49c651;return _0x489803[_0x5a6dc5(0xf1)];}get[_0x49c651(0xf5)](){const _0x50a219=_0x49c651;return _0x489803[_0x50a219(0xf5)];}}_0x15a686[_0x49c651(0xfd)][_0x49c651(0xf0)](_0xd4131d);class _0x254c49 extends _0x15a686['FUniver']{[_0x49c651(0xe6)](_0x4c1d52){const _0x5a3c2c=_0x49c651,_0x1110ad=_0x4c1d52[_0x5a3c2c(0xfa)](_0x4aed5b[_0x5a3c2c(0xd7)]);this[_0x5a3c2c(0xd2)](this[_0x5a3c2c(0xfb)][_0x5a3c2c(0xd3)],()=>_0x1110ad[_0x5a3c2c(0xf7)](_0x28a662=>{const _0x4af38b=_0x5a3c2c;if(_0x28a662['id']===_0x489803[_0x4af38b(0xc6)]['id']){const _0x2dff45=this['getActiveUniverSheet']();if(!_0x2dff45)return;const _0x523450={'workbook':_0x2dff45,'worksheet':_0x2dff45[_0x4af38b(0xcd)]()};if(_0x523450==null)return;if(this[_0x4af38b(0xdd)](this['Event'][_0x4af38b(0xd3)],_0x523450),_0x523450[_0x4af38b(0xe0)])throw new _0x4aed5b[(_0x4af38b(0xec))]();}})),this[_0x5a3c2c(0xd2)](this[_0x5a3c2c(0xfb)][_0x5a3c2c(0xe1)],()=>_0x1110ad[_0x5a3c2c(0xf7)](_0x41a82f=>{const _0x51c623=_0x5a3c2c;if(_0x41a82f['id']===_0x489803['ConfirmSheetPrintOperation']['id']){const _0x5d3fc6=_0x4c1d52['get'](_0x489803[_0x51c623(0xbb)]);if(!this[_0x51c623(0xcf)]())return;const _0x310e1a={'layoutConfig':_0x5d3fc6['layoutConfig'],'renderConfig':_0x5d3fc6[_0x51c623(0xba)]};if(_0x310e1a==null)return;if(this[_0x51c623(0xdd)](this[_0x51c623(0xfb)][_0x51c623(0xe1)],_0x310e1a),_0x310e1a[_0x51c623(0xe0)])throw new _0x4aed5b[(_0x51c623(0xec))]();}})),this['registerEventHandler'](this[_0x5a3c2c(0xfb)][_0x5a3c2c(0xe2)],()=>_0x1110ad['beforeCommandExecuted'](_0x40f404=>{const _0x3771f9=_0x5a3c2c;if(_0x40f404['id']===_0x489803[_0x3771f9(0xc9)]['id']){const _0x331067=_0x4c1d52[_0x3771f9(0xfa)](_0x489803[_0x3771f9(0xbb)]);if(!this[_0x3771f9(0xcf)]())return;const _0x438852={'layoutConfig':_0x331067[_0x3771f9(0xbd)],'renderConfig':_0x331067['renderConfig']};if(_0x438852==null)return;if(this[_0x3771f9(0xdd)](this['Event'][_0x3771f9(0xe2)],_0x438852),_0x438852[_0x3771f9(0xe0)])throw new _0x4aed5b[(_0x3771f9(0xec))]();}})),this['registerEventHandler'](this['Event'][_0x5a3c2c(0xca)],()=>_0x1110ad[_0x5a3c2c(0xc2)](_0x582ea5=>{const _0x55662e=_0x5a3c2c;if(_0x582ea5['id']===_0x489803[_0x55662e(0xc6)]['id']){const _0x4867bb=this[_0x55662e(0xcf)]();if(!_0x4867bb)return;const _0x4b88df={'workbook':_0x4867bb,'worksheet':_0x4867bb[_0x55662e(0xcd)]()};if(_0x4b88df==null)return;this[_0x55662e(0xdd)](this[_0x55662e(0xfb)][_0x55662e(0xca)],_0x4b88df);}})),this[_0x5a3c2c(0xd2)](this[_0x5a3c2c(0xfb)][_0x5a3c2c(0xbe)],()=>_0x1110ad[_0x5a3c2c(0xc2)](_0xa982d5=>{const _0xe54217=_0x5a3c2c;if(_0xa982d5['id']===_0x489803['ConfirmSheetPrintOperation']['id']){const _0x153161=_0x4c1d52['get'](_0x489803[_0xe54217(0xbb)]);if(!this[_0xe54217(0xcf)]())return;const _0x1b9eb9={'layoutConfig':_0x153161[_0xe54217(0xbd)],'renderConfig':_0x153161['renderConfig']};if(_0x1b9eb9==null)return;this[_0xe54217(0xdd)](this[_0xe54217(0xfb)][_0xe54217(0xbe)],_0x1b9eb9);}})),this['registerEventHandler'](this[_0x5a3c2c(0xfb)][_0x5a3c2c(0xc3)],()=>_0x1110ad[_0x5a3c2c(0xc2)](_0x1a4e1f=>{const _0x1ecffd=_0x5a3c2c;if(_0x1a4e1f['id']===_0x489803['CancelSheetPrintOperation']['id']){const _0x5a366f=_0x4c1d52['get'](_0x489803[_0x1ecffd(0xbb)]);if(!this['getActiveUniverSheet']())return;const _0x2370f3={'layoutConfig':_0x5a366f['layoutConfig'],'renderConfig':_0x5a366f[_0x1ecffd(0xba)]};if(_0x2370f3==null)return;this[_0x1ecffd(0xdd)](this[_0x1ecffd(0xfb)][_0x1ecffd(0xc3)],_0x2370f3);}}));}}_0x15a686[_0x49c651(0xef)][_0x49c651(0xf0)](_0x254c49);}));function _0x2f17(){const _0x3ffbb8=['saveScreenshotToClipboard','CanceledError','openPrintDialog','print','FUniver','extend','PrintHeaderFooter','SheetScreenShotOperation','FRange','892953zGycCC','PrintHeaderFooterSymbol','_injector','beforeCommandExecuted','PrintPaperMargin','syncExecuteCommand','get','Event','249694bZCUHq','FEnum','66693DNRKRw','104daAsuk','@univerjs/sheets/facade','hasPrintFacadePermission','function','renderConfig','ISheetPrintManagerService','UniverProPrint','layoutConfig','SheetPrintConfirmed','FWorkbook','4WegEqa','@univerjs-pro/sheets-print','onCommandExecuted','SheetPrintCanceled','updatePrintRenderConfig','PrintArea','SheetPrintOpenOperation','getScreenshot','830vxMiuU','CancelSheetPrintOperation','SheetPrintOpen','_range','PrintAlign','getActiveSheet','updateLayoutConfig','getActiveUniverSheet','872196ehohEh','9ZDmVOc','registerEventHandler','BeforeSheetPrintOpen','PrintDirection','UniverCoreFacade','UniverProSheetsPrint','ICommandService','1575518ixVEwh','object','FEventName','@univerjs-pro/print','_worksheet','fireEvent','closePrintDialog','1062508lHCgQb','cancel','BeforeSheetPrintConfirm','BeforeSheetPrintCanceled','383090WGfTHT','ConfirmSheetPrintOperation','getRangeImage','_initialize','SheetPrintClientService','PrintScale','PaperType','_workbook'];_0x2f17=function(){return _0x3ffbb8;};return _0x2f17();}