@univerjs-pro/sheets-print 0.15.0 → 0.15.1-insiders.20260117-8ce4a01
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.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/types/common/const.d.ts +42 -41
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/types/facade/f-range.d.ts +14 -3
- package/lib/types/services/sheet-print.service.d.ts +1 -1
- package/lib/types/views/components/sheet-print-canvas-view.d.ts +4 -0
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +17 -17
package/lib/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x136b(_0x3de80a,_0x56ec78){_0x3de80a=_0x3de80a-0x124;const _0x327d33=_0x327d();let _0x136b4f=_0x327d33[_0x3de80a];return _0x136b4f;}const _0x170dc0=_0x136b;(function(_0xff584,_0x396dff){const _0x406a3d=_0x136b,_0xfc7ea8=_0xff584();while(!![]){try{const _0x540576=-parseInt(_0x406a3d(0x13b))/0x1+-parseInt(_0x406a3d(0x13e))/0x2*(-parseInt(_0x406a3d(0x148))/0x3)+-parseInt(_0x406a3d(0x13d))/0x4+parseInt(_0x406a3d(0x14f))/0x5+parseInt(_0x406a3d(0x125))/0x6+-parseInt(_0x406a3d(0x14e))/0x7+-parseInt(_0x406a3d(0x135))/0x8*(-parseInt(_0x406a3d(0x13f))/0x9);if(_0x540576===_0x396dff)break;else _0xfc7ea8['push'](_0xfc7ea8['shift']());}catch(_0x1635f9){_0xfc7ea8['push'](_0xfc7ea8['shift']());}}}(_0x327d,0xf0bb3));const e={'print':{'header':{'total':_0x170dc0(0x156),'pages':'頁','cancel':'取消','next':_0x170dc0(0x138),'printing':'列印中,請勿關閉頁面'},'menu':'列印','title':'列印','grid':{'title':'列印版面配置','showGrid':_0x170dc0(0x14a),'showGridLabel':'顯示分頁線','closeAndHide':'關閉並隱藏分頁線'},'screenshot':{'title':_0x170dc0(0x160),'success':_0x170dc0(0x137),'fail':_0x170dc0(0x139)},'size':{'title':'紙張大小','letter':_0x170dc0(0x143),'tabloid':_0x170dc0(0x153),'legal':'Legal\x20(8.5\x22\x20x\x2014\x22)','statement':'Statement\x20(5.5\x22\x20x\x208.5\x22)','executive':_0x170dc0(0x159),'folio':_0x170dc0(0x144),'a3':'A3\x20(11.69\x22\x20x\x2016.54\x22)','a4':_0x170dc0(0x14b),'a5':_0x170dc0(0x15d),'b4':_0x170dc0(0x15f),'b5':_0x170dc0(0x152)},'margin':{'title':'邊距','normal':'標準','narrow':'窄','wide':'寬','custom':_0x170dc0(0x126),'top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'列印','currentSheet':_0x170dc0(0x140),'workbook':'活頁簿','currentSelection':_0x170dc0(0x132),'maxRowsEachPage':_0x170dc0(0x130),'maxColumnsEachPage':_0x170dc0(0x149),'limit':_0x170dc0(0x154),'allSelection':_0x170dc0(0x13c)},'selection':{'title':_0x170dc0(0x127),'allWorkbook':_0x170dc0(0x12f),'workbookUnit':_0x170dc0(0x136)},'scale':{'title':'縮放','normal':_0x170dc0(0x124),'fitWidth':_0x170dc0(0x128),'fitHeight':_0x170dc0(0x141),'fitPage':_0x170dc0(0x151),'custom':_0x170dc0(0x14d)},'orientation':{'title':'頁面方向','landscape':'橫向','portrait':'直向'},'formatting':{'title':'格式設定','skeleton':_0x170dc0(0x147),'waterMark':_0x170dc0(0x146)},'align':{'title':'對齊','horizontal':{'title':_0x170dc0(0x15c),'middle':'置中','start':'靠左','end':'靠右'},'vertical':{'title':'垂直對齊','start':'靠上','end':'靠下','middle':'置中'}},'headerFooter':{'title':_0x170dc0(0x12a),'page':'頁碼','workbook':_0x170dc0(0x12c),'sheet':'工作表名稱','date':_0x170dc0(0x145),'time':_0x170dc0(0x158),'customHeadFooter':_0x170dc0(0x12b),'editCustomHeadFooter':_0x170dc0(0x134),'header':'頁首','footer':'頁尾','left':'左側','right':'右側','center':'中間','dateFormat':_0x170dc0(0x15b),'dateA':'YYYY-MM-DD','dateB':'MM-DD','dateC':'L','dateD':_0x170dc0(0x162),'timeA':'HH:mm:ss','timeB':_0x170dc0(0x163),'timeC':_0x170dc0(0x15a),'timeD':'hh:mm','display':{'page':'頁碼','title':_0x170dc0(0x12c),'sheet':_0x170dc0(0x150),'dateA':_0x170dc0(0x161),'dateB':'日期B','dateC':'日期C','dateD':'日期D','dateE':_0x170dc0(0x14c),'dateF':_0x170dc0(0x129),'timeA':'時間A','timeB':'時間B','timeC':_0x170dc0(0x157),'timeD':_0x170dc0(0x142),'sheetPage':_0x170dc0(0x155),'pageTotal':'總頁數','sheetPageTotal':_0x170dc0(0x12d)},'placeholder':_0x170dc0(0x133),'submit':'確定'},'freeze':{'title':_0x170dc0(0x13a),'desc':_0x170dc0(0x15e),'row':'重複凍結的列','column':'重複凍結的欄'},'limit':{'page':_0x170dc0(0x12e),'waterMark':'Univer\x20免費版本,由\x20univer.ai\x20提供支援。','link':_0x170dc0(0x131)}}};export{e as default};function _0x327d(){const _0x175af8=['所有選取的儲存格','1979736gkBNac','6mdMRoC','9iqTgWu','目前工作表','調整至頁面高度','時間D','Letter\x20(8.5\x22\x20x\x2011\x22)','Folio\x20(8.5\x22\x20x\x2013\x22)','目前日期','顯示浮水印','顯示格線','320907KgLEtK','每頁最大欄數','顯示分頁符號','A4\x20(8.27\x22\x20x\x2011.69\x22)','日期E','自訂比例','5582927LEpBzl','821445lWpdZv','工作表名稱','調整至頁面大小','B5\x20(6.93\x22\x20x\x209.84\x22)','Tabloid\x20(11\x22\x20x\x2017\x22)','列與欄限制','工作表頁碼','總計:','時間C','目前時間','Executive\x20(7.25\x22\x20x\x2010.5\x22)','hh:mm:ss','日期格式','水平對齊','A5\x20(5.83\x22\x20x\x208.27\x22)','前往\x20檢視\x20>\x20凍結\x20以選擇要在所有頁面重複的列/欄','B4\x20(9.84\x22\x20x\x2013.90\x22)','複製為圖片','日期A','MM/DD','HH:mm','標準\x20(100%)','7491246UJKtgC','自訂义頁邊距','選取範圍','調整至頁面寬度','日期F','頁首和頁尾','自訂頁首/頁尾','活頁簿標題','工作表總頁數','免費版僅支援\x20{limit}\x20頁列印,進階功能請購買商業版!','所有工作表','每頁最大列數','https://univer.ai/pro','已選取的儲存格','點擊以新增文字','編輯自訂頁首/頁尾','7521320NfpLTU','張工作表','圖片已成功複製到剪貼簿!','下一步','圖片複製到剪貼簿失敗!','列與欄標題','395372dDPoJS'];_0x327d=function(){return _0x175af8;};return _0x327d();}
|
|
@@ -9,56 +9,57 @@ export declare const ReverseMap: {
|
|
|
9
9
|
"7": string;
|
|
10
10
|
"8": string;
|
|
11
11
|
"9": string;
|
|
12
|
-
I: string;
|
|
13
|
-
O: string;
|
|
14
|
-
D: string;
|
|
15
|
-
y: string;
|
|
16
|
-
H: string;
|
|
17
|
-
v: string;
|
|
18
|
-
E: string;
|
|
19
|
-
W: string;
|
|
20
|
-
F: string;
|
|
21
|
-
C: string;
|
|
22
|
-
s: string;
|
|
23
|
-
b: string;
|
|
24
|
-
T: string;
|
|
25
12
|
f: string;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
X: string;
|
|
29
|
-
Y: string;
|
|
30
|
-
N: string;
|
|
31
|
-
p: string;
|
|
32
|
-
B: string;
|
|
33
|
-
m: string;
|
|
34
|
-
l: string;
|
|
13
|
+
r: string;
|
|
14
|
+
O: string;
|
|
35
15
|
M: string;
|
|
36
|
-
|
|
37
|
-
x: string;
|
|
38
|
-
L: string;
|
|
39
|
-
k: string;
|
|
16
|
+
p: string;
|
|
40
17
|
J: string;
|
|
41
|
-
|
|
42
|
-
j: string;
|
|
43
|
-
n: string;
|
|
44
|
-
R: string;
|
|
45
|
-
o: string;
|
|
46
|
-
P: string;
|
|
47
|
-
Z: string;
|
|
18
|
+
k: string;
|
|
48
19
|
A: string;
|
|
49
|
-
|
|
50
|
-
u: string;
|
|
20
|
+
e: string;
|
|
51
21
|
G: string;
|
|
52
|
-
|
|
53
|
-
q: string;
|
|
54
|
-
U: string;
|
|
22
|
+
H: string;
|
|
55
23
|
c: string;
|
|
56
|
-
|
|
57
|
-
|
|
24
|
+
b: string;
|
|
25
|
+
S: string;
|
|
26
|
+
s: string;
|
|
27
|
+
y: string;
|
|
58
28
|
z: string;
|
|
59
29
|
K: string;
|
|
60
|
-
|
|
30
|
+
a: string;
|
|
31
|
+
d: string;
|
|
32
|
+
X: string;
|
|
33
|
+
T: string;
|
|
34
|
+
o: string;
|
|
35
|
+
C: string;
|
|
36
|
+
W: string;
|
|
37
|
+
q: string;
|
|
38
|
+
E: string;
|
|
39
|
+
U: string;
|
|
40
|
+
I: string;
|
|
41
|
+
u: string;
|
|
42
|
+
h: string;
|
|
43
|
+
L: string;
|
|
61
44
|
t: string;
|
|
45
|
+
P: string;
|
|
46
|
+
" ": string;
|
|
47
|
+
x: string;
|
|
48
|
+
w: string;
|
|
49
|
+
i: string;
|
|
50
|
+
Z: string;
|
|
62
51
|
Q: string;
|
|
52
|
+
g: string;
|
|
53
|
+
l: string;
|
|
54
|
+
n: string;
|
|
55
|
+
N: string;
|
|
56
|
+
F: string;
|
|
57
|
+
Y: string;
|
|
58
|
+
m: string;
|
|
59
|
+
D: string;
|
|
60
|
+
B: string;
|
|
61
|
+
v: string;
|
|
63
62
|
V: string;
|
|
63
|
+
R: string;
|
|
64
|
+
j: string;
|
|
64
65
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const getLsInfoFuncStr = "/*
|
|
1
|
+
export declare const getLsInfoFuncStr = "/*93qayXE-cyqeGa39oW3b3W-E3doaeE39*/bUXHEyTX9c3HWuoEyTX(ayH3Xq3,9oUGayHg3u)9{9999EWu9{99999999HTXqE9ayH3Xq3ZXbTFeWELWWeu9=9ayH3Xq3.qoayE('-');99999999HTXqE9TWySyXn3qqeS39=9QD5N.oeWq3(eETG(ayH3Xq3ZXbTFeWELWWeu[r]));99999999yb9(!TWySyXn3qqeS3.Uc)9{999999999999TWySyXn3qqeS3.Uc9=9NUdG3W(ayH3Xq3ZXbTFeWELWWeu[M]);99999999}99999999HTXqE9yqVTWK3W9=9Euo3Tb9VTWK3WiaTGeaDHTo39!==9'UXc3byX3c'9&&9q3ab9yXqEeXH3Tb9VTWK3WiaTGeaDHTo3;99999999HTXqE9yqtWT1q3W9=9Euo3Tb91yXcT19!==9'UXc3byX3c'9&&9Euo3Tb91yXcT1.aTHeEyTX9!==9'UXc3byX3c';99999999HTXqE9HTXE34E9=9yqVTWK3W9?9q3ab9:9(yqtWT1q3W9?91yXcT19:9SaTGeaBsyq);99999999HTXqE9d3qqeS3VTWc9=9HTXE34E.__teq3JM__.oeWq3(ayH3Xq3ZXbTFeWELWWeu[r]);99999999HTXqE9d3qqeS39=9HTXE34E.__834__.qEWyXSybu(d3qqeS3VTWc);99999999HTXqE9qySXeEUW3VTWc9=9HTXE34E.__teq3JM__.oeWq3(ayH3Xq3ZXbTFeWELWWeu[O]);99999999HTXqE9qySXeEUW39=9HTXE34E.__834__.qEWyXSybu(qySXeEUW3VTWc);99999999HTXqE9qySX7eayc9=9HTXE34E.__I3Wybu__(qySXeEUW3,9d3qqeS3,9oUGayHg3u);99999999HTXqE9cTdeyX9=9TWySyXn3qqeS3.cd;99999999bUXHEyTX9yq TdeyXneEHsyXS(oeEE3WX,9sTqE)9{999999999999yb9(oeEE3WX9===9sTqE)9W3EUWX9EWU3;999999999999yb9(oeEE3WX.qEeWEqVyEs('*.'))9{9999999999999999HTXqE9qUbby49=9oeEE3WX.qayH3(r);9999999999999999yb9(qUbby49&&9qUbby49===9sTqE)9{99999999999999999999W3EUWX9EWU3;9999999999999999}9999999999999999yb9(qUbby49&&9!sTqE.qEeWEqVyEs('.')9&&9sTqE.3XcqVyEs('.'9+9qUbby4))9{99999999999999999999W3EUWX9EWU3;9999999999999999}999999999999}999999999999W3EUWX9beaq3;99999999}99999999a3E9cTdeyX7eayc9=9beaq3;99999999yb9(yqtWT1q3W)9{999999999999cTdeyX7eayc9=9(cTdeyX9&&9cTdeyX.a3XSEs)9?9cTdeyX.qTd3((cdZE3d)9=>9yq TdeyXneEHsyXS(cdZE3d,9aTHeEyTX.sTqEXed3))9:9EWU3;999999999999yb9(aTHeEyTX.sTqEXed39===9'aTHeasTqE')9{9999999999999999cTdeyX7eayc9=9EWU3;999999999999}99999999}93aq39{999999999999cTdeyX7eayc9=9EWU3;99999999}99999999HTXqE9Ieayc9=9qySX7eayc9&&9cTdeyX7eayc;99999999W3EUWX9{999999999999Ieayc,999999999999d3qqeS3:9TWySyXn3qqeS3,99999999};9999}9HeEHs9(3WWTW)9{99999999W3EUWX9{999999999999Ieayc:9beaq3,999999999999d3qqeS3:9{},99999999};9999}}";
|
|
@@ -1,11 +1,19 @@
|
|
|
1
1
|
import { FRange } from '@univerjs/sheets/facade';
|
|
2
|
+
/**
|
|
3
|
+
* Options for range screenshot.
|
|
4
|
+
*/
|
|
5
|
+
export interface IRangeScreenshotOptions {
|
|
6
|
+
/** Whether to include row and column headers in the screenshot. Default is false. */
|
|
7
|
+
includeHeaders?: boolean;
|
|
8
|
+
}
|
|
2
9
|
/**
|
|
3
10
|
* @ignore
|
|
4
11
|
*/
|
|
5
12
|
export interface IFRangePrint {
|
|
6
13
|
/**
|
|
7
14
|
* Get screenshot of this range.
|
|
8
|
-
* This API is only available with a license. Users without a license will face usage restrictions. On failure, it returns false, and on success, it returns the image
|
|
15
|
+
* This API is only available with a license. Users without a license will face usage restrictions. On failure, it returns false, and on success, it returns the image's base64 string.
|
|
16
|
+
* @param options - Screenshot options.
|
|
9
17
|
* @returns {string | false} - The base64 encoded image string, or false if the user does not have permission.
|
|
10
18
|
*
|
|
11
19
|
* @example
|
|
@@ -13,13 +21,16 @@ export interface IFRangePrint {
|
|
|
13
21
|
* const fWorkbook = univerAPI.getActiveWorkbook();
|
|
14
22
|
* const fWorksheet = fWorkbook.getActiveSheet();
|
|
15
23
|
* const fRange = fWorksheet.getRange('A1:D10');
|
|
24
|
+
* // Screenshot without headers
|
|
16
25
|
* console.log(fRange.getScreenshot());
|
|
26
|
+
* // Screenshot with row and column headers
|
|
27
|
+
* console.log(fRange.getScreenshot({ includeHeaders: true }));
|
|
17
28
|
* ```
|
|
18
29
|
*/
|
|
19
|
-
getScreenshot(): string | false;
|
|
30
|
+
getScreenshot(options?: IRangeScreenshotOptions): string | false;
|
|
20
31
|
}
|
|
21
32
|
export declare class FRangePrint extends FRange implements IFRangePrint {
|
|
22
|
-
getScreenshot(): string | false;
|
|
33
|
+
getScreenshot(options?: IRangeScreenshotOptions): string | false;
|
|
23
34
|
}
|
|
24
35
|
declare module '@univerjs/sheets/facade' {
|
|
25
36
|
interface FRange extends IFRangePrint {
|
|
@@ -10,5 +10,5 @@ export declare class SheetPrintClientService {
|
|
|
10
10
|
private readonly _renderManagerService;
|
|
11
11
|
constructor(_injector: Injector, _globalZoneService: IGlobalZoneService, _sheetPrintManagerService: ISheetPrintManagerService, _renderManagerService: IRenderManagerService);
|
|
12
12
|
print(configs: ISheetPrintLayoutInfo[], renderConfig: ISheetPrintRenderConfig): Promise<boolean>;
|
|
13
|
-
getRangeImage(unitId: string, subUnitId: string, range: IRange): string | false;
|
|
13
|
+
getRangeImage(unitId: string, subUnitId: string, range: IRange, includeHeaders?: boolean): string | false;
|
|
14
14
|
}
|
|
@@ -17,6 +17,8 @@ export interface IPrintSheetPageInfo {
|
|
|
17
17
|
pageTotal: number;
|
|
18
18
|
sheetPageTotal: number;
|
|
19
19
|
sheetPage: number;
|
|
20
|
+
/** Whether page size includes row/column header dimensions (for screenshots) */
|
|
21
|
+
includeHeaderDimensions?: boolean;
|
|
20
22
|
}
|
|
21
23
|
export declare class SheetPrintCanvasView extends Disposable {
|
|
22
24
|
private _accessor;
|
|
@@ -33,6 +35,8 @@ export declare class SheetPrintCanvasView extends Disposable {
|
|
|
33
35
|
private _viewLeft;
|
|
34
36
|
private _viewTop;
|
|
35
37
|
private _viewLeftTop;
|
|
38
|
+
private _viewRowBottom;
|
|
39
|
+
private _viewColumnRight;
|
|
36
40
|
private _container;
|
|
37
41
|
private _root;
|
|
38
42
|
private _skeleton;
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x23ee(){const _0x4faa1f=['includeHeaders','PrintDirection','syncExecuteCommand','SheetPrintConfirmed','PrintPaperMargin','closePrintDialog','PrintArea','FWorkbook','CancelSheetPrintOperation','PrintScale','getActiveUniverSheet','ConfirmSheetPrintOperation','updatePrintConfig','@univerjs-pro/sheets-print','SheetPrintOpen','PrintHeaderFooterSymbol','132108rgMAtz','686110QibcaG','layoutConfig','SheetScreenShotOperation','3342600stHzNm','SheetPrintClientService','extend','getSheetId','68160fzuVhl','BeforeSheetPrintConfirm','updatePrintRenderConfig','function','BeforeSheetPrintOpen','UniverProSheetsPrint','updateRenderConfig','_workbook','51zvYUDl','UniverProPrint','beforeCommandExecuted','@univerjs/core','CanceledError','getRangeImage','hasPrintFacadePermission','onCommandExecuted','getActiveSheet','ISheetPrintManagerService','openPrintDialog','PrintAlign','UniverSheetsFacade','object','registerEventHandler','SheetPrintOpenOperation','Event','2208Yhnfbe','PrintFreeze','executeCommand','FEnum','ICommandService','print','BeforeSheetPrintCanceled','100ApAwfe','@univerjs/sheets/facade','getUnitId','_worksheet','FUniver','_injector','PrintHeaderFooter','amd','UniverCoreFacade','UniverCore','cancel','get','_range','updateLayoutConfig','@univerjs-pro/print','PrintPaperSize','3707578yKkLit','fireEvent','renderConfig','8381160qoxEGS','SheetPrintCanceled','saveScreenshotToClipboard','FRange'];_0x23ee=function(){return _0x4faa1f;};return _0x23ee();}function _0x313d(_0x483cd7,_0xe29bf6){_0x483cd7=_0x483cd7-0xa4;const _0x23ee67=_0x23ee();let _0x313d86=_0x23ee67[_0x483cd7];return _0x313d86;}(function(_0x5a765c,_0x26194f){const _0x340504=_0x313d,_0x2eea0f=_0x5a765c();while(!![]){try{const _0x50bdc4=-parseInt(_0x340504(0xbe))/0x1+parseInt(_0x340504(0xb7))/0x2+parseInt(_0x340504(0xc6))/0x3*(-parseInt(_0x340504(0xb6))/0x4)+-parseInt(_0x340504(0xde))/0x5*(-parseInt(_0x340504(0xd7))/0x6)+-parseInt(_0x340504(0xee))/0x7+parseInt(_0x340504(0xf1))/0x8+parseInt(_0x340504(0xba))/0x9;if(_0x50bdc4===_0x26194f)break;else _0x2eea0f['push'](_0x2eea0f['shift']());}catch(_0x2683b3){_0x2eea0f['push'](_0x2eea0f['shift']());}}}(_0x23ee,0x94f8b),function(_0x5aafd0,_0x5554cf){const _0xacaaac=_0x313d;typeof exports==_0xacaaac(0xd3)&&typeof module<'u'?_0x5554cf(require('@univerjs-pro/sheets-print'),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade'),require('@univerjs-pro/print')):typeof define==_0xacaaac(0xc1)&&define[_0xacaaac(0xe5)]?define([_0xacaaac(0xb3),_0xacaaac(0xc9),_0xacaaac(0xdf),'@univerjs/core/facade',_0xacaaac(0xec)],_0x5554cf):(_0x5aafd0=typeof globalThis<'u'?globalThis:_0x5aafd0||self,_0x5554cf(_0x5aafd0[_0xacaaac(0xc3)],_0x5aafd0[_0xacaaac(0xe7)],_0x5aafd0[_0xacaaac(0xd2)],_0x5aafd0[_0xacaaac(0xe6)],_0x5aafd0[_0xacaaac(0xc7)]));}(this,function(_0x1ffb17,_0x23f2ce,_0xaf1a30,_0x51c02a,_0x3d98e3){'use strict';const _0x26ea6e=_0x313d;class _0x12b816 extends _0xaf1a30[_0x26ea6e(0xad)]{[_0x26ea6e(0xb2)](_0x1f4300){const _0x5f0843=_0x26ea6e;return this[_0x5f0843(0xe3)]['get'](_0x1ffb17[_0x5f0843(0xcf)])[_0x5f0843(0xeb)](_0x1f4300),this;}[_0x26ea6e(0xc0)](_0x2c6f4a){const _0x41cde1=_0x26ea6e;return this[_0x41cde1(0xe3)][_0x41cde1(0xe9)](_0x1ffb17['ISheetPrintManagerService'])[_0x41cde1(0xc4)](_0x2c6f4a),this;}[_0x26ea6e(0xdc)](){const _0x2470a4=_0x26ea6e;return this[_0x2470a4(0xe3)][_0x2470a4(0xe9)](_0x23f2ce[_0x2470a4(0xdb)])[_0x2470a4(0xa8)](_0x1ffb17[_0x2470a4(0xb1)]['id']);}[_0x26ea6e(0xd0)](){const _0x494d55=_0x26ea6e;return this[_0x494d55(0xe3)][_0x494d55(0xe9)](_0x23f2ce['ICommandService'])[_0x494d55(0xa8)](_0x1ffb17[_0x494d55(0xd5)]['id']);}[_0x26ea6e(0xab)](){const _0x4915fc=_0x26ea6e;return this[_0x4915fc(0xe3)][_0x4915fc(0xe9)](_0x23f2ce[_0x4915fc(0xdb)])['syncExecuteCommand'](_0x1ffb17[_0x4915fc(0xae)]['id']);}async[_0x26ea6e(0xa4)](){const _0xff844=_0x26ea6e;return _0x1ffb17[_0xff844(0xcc)](this['_injector'])?this[_0xff844(0xe3)][_0xff844(0xe9)](_0x23f2ce['ICommandService'])[_0xff844(0xd9)](_0x1ffb17[_0xff844(0xb9)]['id']):!0x1;}}_0xaf1a30['FWorkbook'][_0x26ea6e(0xbc)](_0x12b816);class _0x1dfc5e extends _0xaf1a30[_0x26ea6e(0xa5)]{['getScreenshot'](_0x1a05e4){const _0x5ba879=_0x26ea6e;return _0x1ffb17['hasPrintFacadePermission'](this[_0x5ba879(0xe3)])?this['_injector']['get'](_0x1ffb17[_0x5ba879(0xbb)])[_0x5ba879(0xcb)](this[_0x5ba879(0xc5)][_0x5ba879(0xe0)](),this[_0x5ba879(0xe1)][_0x5ba879(0xbd)](),this[_0x5ba879(0xea)],_0x1a05e4==null?void 0x0:_0x1a05e4[_0x5ba879(0xa6)]):!0x1;}}_0xaf1a30['FRange'][_0x26ea6e(0xbc)](_0x1dfc5e);class _0x13cc83{get['BeforeSheetPrintOpen'](){return'BeforeSheetPrintOpen';}get[_0x26ea6e(0xbf)](){const _0x492427=_0x26ea6e;return _0x492427(0xbf);}get[_0x26ea6e(0xdd)](){const _0x5141b9=_0x26ea6e;return _0x5141b9(0xdd);}get['SheetPrintOpen'](){const _0x51e4be=_0x26ea6e;return _0x51e4be(0xb4);}get[_0x26ea6e(0xa9)](){const _0x3a2b4d=_0x26ea6e;return _0x3a2b4d(0xa9);}get[_0x26ea6e(0xf2)](){const _0x36b1a8=_0x26ea6e;return _0x36b1a8(0xf2);}}_0x51c02a['FEventName']['extend'](_0x13cc83);class _0x51cd84{get[_0x26ea6e(0xac)](){const _0x1acbd1=_0x26ea6e;return _0x1ffb17[_0x1acbd1(0xac)];}get[_0x26ea6e(0xd1)](){const _0x32d46a=_0x26ea6e;return _0x3d98e3[_0x32d46a(0xd1)];}get[_0x26ea6e(0xed)](){return _0x23f2ce['PaperType'];}get[_0x26ea6e(0xaa)](){const _0xf4618=_0x26ea6e;return _0x3d98e3[_0xf4618(0xaa)];}get[_0x26ea6e(0xaf)](){const _0x27abef=_0x26ea6e;return _0x3d98e3[_0x27abef(0xaf)];}get[_0x26ea6e(0xa7)](){const _0x39c148=_0x26ea6e;return _0x3d98e3[_0x39c148(0xa7)];}get[_0x26ea6e(0xd8)](){const _0x4dd2b6=_0x26ea6e;return _0x1ffb17[_0x4dd2b6(0xd8)];}get[_0x26ea6e(0xe4)](){const _0x156d05=_0x26ea6e;return _0x1ffb17[_0x156d05(0xe4)];}get[_0x26ea6e(0xb5)](){const _0x271e65=_0x26ea6e;return _0x1ffb17[_0x271e65(0xb5)];}}_0x51c02a[_0x26ea6e(0xda)][_0x26ea6e(0xbc)](_0x51cd84);class _0x4e717c extends _0x51c02a[_0x26ea6e(0xe2)]{['_initialize'](_0x45db7b){const _0x20c766=_0x26ea6e,_0x7513e5=_0x45db7b['get'](_0x23f2ce[_0x20c766(0xdb)]);this[_0x20c766(0xd4)](this[_0x20c766(0xd6)][_0x20c766(0xc2)],()=>_0x7513e5[_0x20c766(0xc8)](_0x47df5c=>{const _0x5c2046=_0x20c766;if(_0x47df5c['id']===_0x1ffb17[_0x5c2046(0xd5)]['id']){const _0x1686e5=this[_0x5c2046(0xb0)]();if(!_0x1686e5)return;const _0x5f292c={'workbook':_0x1686e5,'worksheet':_0x1686e5[_0x5c2046(0xce)]()};if(_0x5f292c==null)return;if(this[_0x5c2046(0xef)](this[_0x5c2046(0xd6)][_0x5c2046(0xc2)],_0x5f292c),_0x5f292c[_0x5c2046(0xe8)])throw new _0x23f2ce[(_0x5c2046(0xca))]();}})),this[_0x20c766(0xd4)](this[_0x20c766(0xd6)][_0x20c766(0xbf)],()=>_0x7513e5['beforeCommandExecuted'](_0x3ac367=>{const _0x4b3bdf=_0x20c766;if(_0x3ac367['id']===_0x1ffb17[_0x4b3bdf(0xb1)]['id']){const _0xb68db7=_0x45db7b['get'](_0x1ffb17[_0x4b3bdf(0xcf)]);if(!this['getActiveUniverSheet']())return;const _0x94b3e9={'layoutConfig':_0xb68db7[_0x4b3bdf(0xb8)],'renderConfig':_0xb68db7['renderConfig']};if(_0x94b3e9==null)return;if(this[_0x4b3bdf(0xef)](this['Event'][_0x4b3bdf(0xbf)],_0x94b3e9),_0x94b3e9['cancel'])throw new _0x23f2ce['CanceledError']();}})),this[_0x20c766(0xd4)](this[_0x20c766(0xd6)][_0x20c766(0xdd)],()=>_0x7513e5[_0x20c766(0xc8)](_0x2a5e17=>{const _0x57b28f=_0x20c766;if(_0x2a5e17['id']===_0x1ffb17[_0x57b28f(0xae)]['id']){const _0x555d1f=_0x45db7b[_0x57b28f(0xe9)](_0x1ffb17[_0x57b28f(0xcf)]);if(!this[_0x57b28f(0xb0)]())return;const _0x2b758a={'layoutConfig':_0x555d1f['layoutConfig'],'renderConfig':_0x555d1f['renderConfig']};if(_0x2b758a==null)return;if(this[_0x57b28f(0xef)](this[_0x57b28f(0xd6)][_0x57b28f(0xdd)],_0x2b758a),_0x2b758a[_0x57b28f(0xe8)])throw new _0x23f2ce[(_0x57b28f(0xca))]();}})),this[_0x20c766(0xd4)](this[_0x20c766(0xd6)][_0x20c766(0xb4)],()=>_0x7513e5[_0x20c766(0xcd)](_0x3f30e2=>{const _0x40bffa=_0x20c766;if(_0x3f30e2['id']===_0x1ffb17[_0x40bffa(0xd5)]['id']){const _0x49cff1=this[_0x40bffa(0xb0)]();if(!_0x49cff1)return;const _0x18603d={'workbook':_0x49cff1,'worksheet':_0x49cff1[_0x40bffa(0xce)]()};if(_0x18603d==null)return;this[_0x40bffa(0xef)](this[_0x40bffa(0xd6)][_0x40bffa(0xb4)],_0x18603d);}})),this[_0x20c766(0xd4)](this[_0x20c766(0xd6)]['SheetPrintConfirmed'],()=>_0x7513e5[_0x20c766(0xcd)](_0x403a77=>{const _0x4fc63b=_0x20c766;if(_0x403a77['id']===_0x1ffb17[_0x4fc63b(0xb1)]['id']){const _0x1b5f78=_0x45db7b[_0x4fc63b(0xe9)](_0x1ffb17[_0x4fc63b(0xcf)]);if(!this[_0x4fc63b(0xb0)]())return;const _0xe5fa7e={'layoutConfig':_0x1b5f78[_0x4fc63b(0xb8)],'renderConfig':_0x1b5f78['renderConfig']};if(_0xe5fa7e==null)return;this[_0x4fc63b(0xef)](this[_0x4fc63b(0xd6)][_0x4fc63b(0xa9)],_0xe5fa7e);}})),this[_0x20c766(0xd4)](this[_0x20c766(0xd6)]['SheetPrintCanceled'],()=>_0x7513e5['onCommandExecuted'](_0x323349=>{const _0x5ee91a=_0x20c766;if(_0x323349['id']===_0x1ffb17[_0x5ee91a(0xae)]['id']){const _0x119241=_0x45db7b['get'](_0x1ffb17['ISheetPrintManagerService']);if(!this['getActiveUniverSheet']())return;const _0x5a5184={'layoutConfig':_0x119241[_0x5ee91a(0xb8)],'renderConfig':_0x119241[_0x5ee91a(0xf0)]};if(_0x5a5184==null)return;this[_0x5ee91a(0xef)](this[_0x5ee91a(0xd6)][_0x5ee91a(0xf2)],_0x5a5184);}}));}}_0x51c02a[_0x26ea6e(0xe2)][_0x26ea6e(0xbc)](_0x4e717c);}));
|