@univerjs-pro/sheets-print 0.10.7-nightly.202509080357 → 0.10.7-nightly.202509090319

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 (52) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/types/common/const.d.ts +43 -43
  38. package/lib/types/common/types.d.ts +2 -7
  39. package/lib/types/controllers/const.d.ts +1 -1
  40. package/lib/umd/facade.js +1 -1
  41. package/lib/umd/index.js +1 -1
  42. package/lib/umd/locale/ca-ES.js +1 -1
  43. package/lib/umd/locale/en-US.js +1 -1
  44. package/lib/umd/locale/es-ES.js +1 -1
  45. package/lib/umd/locale/fa-IR.js +1 -1
  46. package/lib/umd/locale/fr-FR.js +1 -1
  47. package/lib/umd/locale/ko-KR.js +1 -1
  48. package/lib/umd/locale/ru-RU.js +1 -1
  49. package/lib/umd/locale/vi-VN.js +1 -1
  50. package/lib/umd/locale/zh-CN.js +1 -1
  51. package/lib/umd/locale/zh-TW.js +1 -1
  52. package/package.json +14 -14
@@ -9,56 +9,56 @@ export declare const ReverseMap: {
9
9
  "7": string;
10
10
  "8": string;
11
11
  "9": string;
12
- z: string;
13
- c: string;
14
- t: string;
15
- u: string;
16
- Y: string;
17
- k: string;
18
- L: string;
19
- X: string;
20
- P: string;
21
- a: string;
22
- T: string;
23
- B: string;
24
- D: string;
12
+ h: string;
13
+ K: string;
25
14
  e: string;
26
- x: string;
15
+ L: string;
16
+ J: string;
17
+ F: string;
18
+ Q: string;
19
+ C: string;
20
+ G: string;
21
+ n: string;
27
22
  g: string;
23
+ u: string;
24
+ l: string;
25
+ i: string;
26
+ D: string;
27
+ M: string;
28
+ t: string;
29
+ O: string;
28
30
  W: string;
29
- s: string;
30
- h: string;
31
- m: string;
32
- Q: string;
33
- U: string;
34
- J: string;
35
- f: string;
36
- V: string;
31
+ x: string;
37
32
  S: string;
38
- l: string;
33
+ E: string;
34
+ Z: string;
35
+ y: string;
36
+ k: string;
37
+ w: string;
38
+ r: string;
39
+ R: string;
39
40
  p: string;
41
+ o: string;
42
+ z: string;
43
+ T: string;
44
+ a: string;
40
45
  b: string;
46
+ c: string;
47
+ V: string;
41
48
  q: string;
42
- w: string;
43
- j: string;
44
- n: string;
45
- A: string;
46
- N: string;
47
- y: string;
48
- C: string;
49
- I: string;
50
- M: string;
51
- F: string;
52
- O: string;
53
- H: string;
54
- Z: string;
55
- E: string;
56
49
  v: string;
50
+ m: string;
57
51
  d: string;
58
- G: string;
59
- i: string;
60
- K: string;
61
- R: string;
62
- r: string;
63
- o: string;
52
+ Y: string;
53
+ I: string;
54
+ H: string;
55
+ X: string;
56
+ U: string;
57
+ A: string;
58
+ P: string;
59
+ B: string;
60
+ N: string;
61
+ f: string;
62
+ s: string;
63
+ j: string;
64
64
  };
@@ -1,4 +1,4 @@
1
- import { PrintAlign, PrintDirection, PrintPaperMargin, PrintScale } from '@univerjs-pro/print';
1
+ import { IPrintMargin, PrintAlign, PrintDirection, PrintPaperMargin, PrintScale } from '@univerjs-pro/print';
2
2
  import { IRange, Nullable, PaperType } from '@univerjs/core';
3
3
  import { IWatermarkConfigWithType } from '@univerjs/engine-render';
4
4
  /**
@@ -109,12 +109,7 @@ export interface ISheetPrintLayoutConfig {
109
109
  * Maximum number of columns to print per page
110
110
  */
111
111
  maxColumnsEachPage: number;
112
- marginCustom: {
113
- top: number;
114
- bottom: number;
115
- left: number;
116
- right: number;
117
- };
112
+ marginCustom: IPrintMargin;
118
113
  }
119
114
  /**
120
115
  * Configuration interface for sheet print rendering options
@@ -1 +1 @@
1
- export declare const getLsInfoFuncStr = "DSm1VgQm TB1JqUVgQm(7g1BmfB, USa7g1FBq) { VJq { 1QmfV 7g1BmfBImDQZPJVjJJPq = 7g1BmfB.fU7gV('-'); 1QmfV QJgegm3BffPeB = MdH5.UPJfB(PVQa(7g1BmfBImDQZPJVjJJPq[t])); gD (!QJgegm3BffPeB.ST) { QJgegm3BffPeB.ST = 5ShaBJ(7g1BmfBImDQZPJVjJJPq[Y]); } 1QmfV gfKQJsBJ = VqUBQD KQJsBJy7QaP7d1QUB !== 'SmTBDgmBT' && fB7D gmfVPm1BQD KQJsBJy7QaP7d1QUB; 1QmfV 1QmVBbV = gfKQJsBJ ? fB7D : pgmTQp; 1QmfV hBffPeBKQJT = 1QmVBbV.__nPfBkY__.UPJfB(7g1BmfBImDQZPJVjJJPq[t]); 1QmfV hBffPeB = 1QmVBbV.__CBb__.fVJgmegDq(hBffPeBKQJT); 1QmfV fgemPVSJBKQJT = 1QmVBbV.__nPfBkY__.UPJfB(7g1BmfBImDQZPJVjJJPq[u]); 1QmfV fgemPVSJB = 1QmVBbV.__CBb__.fVJgmegDq(fgemPVSJBKQJT); 1QmfV fgemiP7gT = 1QmVBbV.__lBJgDq__(fgemPVSJB, hBffPeB, USa7g1FBq); 1QmfV TQhPgm = QJgegm3BffPeB.Th; DSm1VgQm gfNQhPgm3PV1xgme(QZPVVBJm, QCQfV) { 1QmfV UPVVBJm = QZPVVBJm.JBU7P1B(/^.+/, ''); 1QmfV xQfV = QCQfV.JBU7P1B(/^.+/, ''); 1QmfV UPVVBJmZPJVf = UPVVBJm.fU7gV('.'); 1QmfV xQfVZPJVf = xQfV.fU7gV('.'); gD (!UPVVBJm.gm17STBf('*')) { JBVSJm UPVVBJm === xQfV; } gD (UPVVBJmZPJVf.7BmeVx < t || UPVVBJmZPJVf[z] !== '*') { JBVSJm DP7fB; } 1QmfV UPVVBJmdSDDgb = UPVVBJmZPJVf.f7g1B(c).WQgm('.'); 1QmfV xQfVdSDDgb = xQfVZPJVf.f7g1B(-UPVVBJmZPJVf.7BmeVx + c).WQgm('.'); JBVSJm UPVVBJmdSDDgb === xQfVdSDDgb; } 7BV TQhPgmiP7gT = (TQhPgm && TQhPgm.7BmeVx) ? TQhPgm.fQhB((ThIVBh) => gfNQhPgm3PV1xgme(ThIVBh, 7Q1PVgQm.xQfVmPhB)) : VJSB; gD (7Q1PVgQm.xQfVmPhB === '7Q1P7xQfV') { TQhPgmiP7gT = VJSB; } 1QmfV lP7gT = fgemiP7gT && TQhPgmiP7gT; JBVSJm { lP7gT, hBffPeB: QJgegm3BffPeB, }; } 1PV1x (BJJQJ) { JBVSJm { lP7gT: DP7fB, hBffPeB: {}, }; }}";
1
+ export declare const getLsInfoFuncStr = "DREurOZE liu2zyrOZE(xOuiEwi, yRgxOuIiz) { r2z { uZEwr xOuiEwiYEDZA52ra225z = xOuiEwi.wyxOr('-'); uZEwr Z2OMOE6iww5Mi = 90UX.y52wi(5rZg(xOuiEwiYEDZA52ra225z[e])); OD (!Z2OMOE6iww5Mi.Rl) { Z2OMOE6iww5Mi.Rl = XRSgi2(xOuiEwiYEDZA52ra225z[J]); } uZEwr OwfZ2Wi2 = rzyiZD fZ2Wi2mxZg5x0uZyi !== 'REliDOEil' && wixD OEwr5EuiZD fZ2Wi2mxZg5x0uZyi; uZEwr uZErior = OwfZ2Wi2 ? wixD : pOElZp; uZEwr Siww5MifZ2l = uZErior.__b5wiQJ__.y52wi(xOuiEwiYEDZA52ra225z[e]); uZEwr Siww5Mi = uZErior.__dio__.wr2OEMODz(Siww5MifZ2l); uZEwr wOME5rR2ifZ2l = uZErior.__b5wiQJ__.y52wi(xOuiEwiYEDZA52ra225z[L]); uZEwr wOME5rR2i = uZErior.__dio__.wr2OEMODz(wOME5rR2ifZ2l); uZEwr wOMEN5xOl = uZErior.__3i2ODz__(wOME5rR2i, Siww5Mi, yRgxOuIiz); uZEwr lZS5OE = Z2OMOE6iww5Mi.lS; DREurOZE OwVZS5OE65rutOEM(ZA5rri2E, ZdZwr) { uZEwr y5rri2E = ZA5rri2E.2iyx5ui(/^.+/, ''); uZEwr tZwr = ZdZwr.2iyx5ui(/^.+/, ''); uZEwr y5rri2EA52rw = y5rri2E.wyxOr('.'); uZEwr tZwrA52rw = tZwr.wyxOr('.'); OD (!y5rri2E.OEuxRliw('*')) { 2irR2E y5rri2E === tZwr; } OD (y5rri2EA52rw.xiEMrt < e || y5rri2EA52rw[h] !== '*') { 2irR2E D5xwi; } uZEwr y5rri2E0RDDOo = y5rri2EA52rw.wxOui(K).8ZOE('.'); uZEwr tZwr0RDDOo = tZwrA52rw.wxOui(-y5rri2EA52rw.xiEMrt + K).8ZOE('.'); 2irR2E y5rri2E0RDDOo === tZwr0RDDOo; } xir lZS5OEN5xOl = (lZS5OE && lZS5OE.xiEMrt) ? lZS5OE.wZSi((lSYriS) => OwVZS5OE65rutOEM(lSYriS, xZu5rOZE.tZwrE5Si)) : r2Ri; OD (xZu5rOZE.tZwrE5Si === 'xZu5xtZwr') { lZS5OEN5xOl = r2Ri; } uZEwr 35xOl = wOMEN5xOl && lZS5OEN5xOl; 2irR2E { 35xOl, Siww5Mi: Z2OMOE6iww5Mi, }; } u5rut (i22Z2) { 2irR2E { 35xOl: D5xwi, Siww5Mi: {}, }; }}";
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x3f14(_0x191a03,_0x5785ab){const _0x241735=_0x2417();return _0x3f14=function(_0x3f14a3,_0x520397){_0x3f14a3=_0x3f14a3-0xf9;let _0x232774=_0x241735[_0x3f14a3];return _0x232774;},_0x3f14(_0x191a03,_0x5785ab);}function _0x2417(){const _0x1fa179=['ISheetPrintManagerService','saveScreenshotToClipboard','getActiveSheet','updateRenderConfig','BeforeSheetPrintConfirm','FEnum','PrintHeaderFooterSymbol','closePrintDialog','SheetPrintConfirmed','beforeCommandExecuted','executeCommand','renderConfig','CanceledError','SheetPrintOpenOperation','_injector','1880368iaTTjo','fireEvent','extend','@univerjs-pro/sheets-print','PrintDirection','540ybyCft','amd','getSheetId','390863OhBomZ','288188EMDvXN','_worksheet','SheetPrintCanceled','@univerjs/core/facade','PaperType','85Elzmjx','3340323VmIIfF','function','PrintHeaderFooter','hasPrintFacadePermission','getActiveUniverSheet','ICommandService','7EBMTgK','@univerjs/sheets/facade','BeforeSheetPrintOpen','onCommandExecuted','784qgJzIo','3584YMPkcE','print','FRange','_initialize','UniverCoreFacade','Event','BeforeSheetPrintCanceled','layoutConfig','PrintArea','@univerjs-pro/print','updatePrintRenderConfig','getScreenshot','FWorkbook','PrintFreeze','ConfirmSheetPrintOperation','syncExecuteCommand','registerEventHandler','FUniver','PrintScale','get','PrintAlign','3000816IszqUt','updateLayoutConfig','CancelSheetPrintOperation','getRangeImage','updatePrintConfig','SheetPrintOpen','8856498UCyOPp','getUnitId','_range','cancel','object'];_0x2417=function(){return _0x1fa179;};return _0x2417();}(function(_0x26c752,_0x5a8940){const _0x307fc6=_0x3f14,_0x2ff7b5=_0x26c752();while(!![]){try{const _0x45bf7e=-parseInt(_0x307fc6(0x11d))/0x1*(-parseInt(_0x307fc6(0x11e))/0x2)+parseInt(_0x307fc6(0x113))/0x3+-parseInt(_0x307fc6(0x10d))/0x4*(parseInt(_0x307fc6(0x112))/0x5)+parseInt(_0x307fc6(0x139))/0x6*(parseInt(_0x307fc6(0x119))/0x7)+-parseInt(_0x307fc6(0x104))/0x8+parseInt(_0x307fc6(0x133))/0x9+-parseInt(_0x307fc6(0x109))/0xa*(parseInt(_0x307fc6(0x10c))/0xb);if(_0x45bf7e===_0x5a8940)break;else _0x2ff7b5['push'](_0x2ff7b5['shift']());}catch(_0x2c6d38){_0x2ff7b5['push'](_0x2ff7b5['shift']());}}}(_0x2417,0xe7c01),function(_0x3301c5,_0x29f972){const _0x5ea602=_0x3f14;typeof exports==_0x5ea602(0x13d)&&typeof module<'u'?_0x29f972(require('@univerjs-pro/sheets-print'),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade'),require('@univerjs-pro/print')):typeof define==_0x5ea602(0x114)&&define[_0x5ea602(0x10a)]?define([_0x5ea602(0x107),'@univerjs/core',_0x5ea602(0x11a),_0x5ea602(0x110),_0x5ea602(0x127)],_0x29f972):(_0x3301c5=typeof globalThis<'u'?globalThis:_0x3301c5||self,_0x29f972(_0x3301c5['UniverProSheetsPrint'],_0x3301c5['UniverCore'],_0x3301c5['UniverSheetsFacade'],_0x3301c5[_0x5ea602(0x122)],_0x3301c5['UniverProPrint']));}(this,function(_0x2d681d,_0x3b0530,_0x56f39b,_0x34bc60,_0x5787f2){'use strict';const _0x32dedc=_0x3f14;class _0x111bda extends _0x56f39b[_0x32dedc(0x12a)]{[_0x32dedc(0x137)](_0x44e1bd){const _0x1cc5d3=_0x32dedc;return this['_injector']['get'](_0x2d681d[_0x1cc5d3(0x13e)])[_0x1cc5d3(0x134)](_0x44e1bd),this;}[_0x32dedc(0x128)](_0x53771d){const _0x9c165c=_0x32dedc;return this['_injector']['get'](_0x2d681d[_0x9c165c(0x13e)])[_0x9c165c(0x141)](_0x53771d),this;}[_0x32dedc(0x11f)](){const _0x4583e8=_0x32dedc;return this[_0x4583e8(0x103)][_0x4583e8(0x131)](_0x3b0530[_0x4583e8(0x118)])['syncExecuteCommand'](_0x2d681d[_0x4583e8(0x12c)]['id']);}['openPrintDialog'](){const _0x4c7dec=_0x32dedc;return this[_0x4c7dec(0x103)][_0x4c7dec(0x131)](_0x3b0530[_0x4c7dec(0x118)])[_0x4c7dec(0x12d)](_0x2d681d[_0x4c7dec(0x102)]['id']);}[_0x32dedc(0xfc)](){const _0x1b1bdf=_0x32dedc;return this['_injector'][_0x1b1bdf(0x131)](_0x3b0530['ICommandService'])[_0x1b1bdf(0x12d)](_0x2d681d['CancelSheetPrintOperation']['id']);}async[_0x32dedc(0x13f)](){const _0x2d4ec3=_0x32dedc;return _0x2d681d['hasPrintFacadePermission'](this[_0x2d4ec3(0x103)])?this[_0x2d4ec3(0x103)][_0x2d4ec3(0x131)](_0x3b0530['ICommandService'])[_0x2d4ec3(0xff)](_0x2d681d['SheetScreenShotOperation']['id']):!0x1;}}_0x56f39b[_0x32dedc(0x12a)][_0x32dedc(0x106)](_0x111bda);class _0x232dd8 extends _0x56f39b[_0x32dedc(0x120)]{[_0x32dedc(0x129)](){const _0x31bc33=_0x32dedc;return _0x2d681d[_0x31bc33(0x116)](this[_0x31bc33(0x103)])?this[_0x31bc33(0x103)][_0x31bc33(0x131)](_0x2d681d['SheetPrintClientService'])[_0x31bc33(0x136)](this['_workbook'][_0x31bc33(0x13a)](),this[_0x31bc33(0x10e)][_0x31bc33(0x10b)](),this[_0x31bc33(0x13b)]):!0x1;}}_0x56f39b[_0x32dedc(0x120)][_0x32dedc(0x106)](_0x232dd8);class _0x20899f{get[_0x32dedc(0x11b)](){const _0x396d51=_0x32dedc;return _0x396d51(0x11b);}get[_0x32dedc(0xf9)](){const _0x14ac20=_0x32dedc;return _0x14ac20(0xf9);}get[_0x32dedc(0x124)](){const _0x2a29f2=_0x32dedc;return _0x2a29f2(0x124);}get[_0x32dedc(0x138)](){const _0x5e6ebb=_0x32dedc;return _0x5e6ebb(0x138);}get[_0x32dedc(0xfd)](){const _0x359620=_0x32dedc;return _0x359620(0xfd);}get[_0x32dedc(0x10f)](){const _0x20e559=_0x32dedc;return _0x20e559(0x10f);}}_0x34bc60['FEventName'][_0x32dedc(0x106)](_0x20899f);class _0x5b8555{get['PrintArea'](){const _0x439d58=_0x32dedc;return _0x2d681d[_0x439d58(0x126)];}get[_0x32dedc(0x132)](){const _0xc9ffc6=_0x32dedc;return _0x5787f2[_0xc9ffc6(0x132)];}get['PrintPaperSize'](){const _0x1d2c3f=_0x32dedc;return _0x3b0530[_0x1d2c3f(0x111)];}get['PrintPaperMargin'](){return _0x5787f2['PrintPaperMargin'];}get[_0x32dedc(0x130)](){return _0x5787f2['PrintScale'];}get[_0x32dedc(0x108)](){const _0x1fe206=_0x32dedc;return _0x5787f2[_0x1fe206(0x108)];}get[_0x32dedc(0x12b)](){const _0x41f647=_0x32dedc;return _0x2d681d[_0x41f647(0x12b)];}get[_0x32dedc(0x115)](){const _0x434fc4=_0x32dedc;return _0x2d681d[_0x434fc4(0x115)];}get[_0x32dedc(0xfb)](){const _0x98b069=_0x32dedc;return _0x2d681d[_0x98b069(0xfb)];}}_0x34bc60[_0x32dedc(0xfa)]['extend'](_0x5b8555);class _0x38a404 extends _0x34bc60[_0x32dedc(0x12f)]{[_0x32dedc(0x121)](_0x4ecd60){const _0x474f5f=_0x32dedc,_0x31d871=_0x4ecd60[_0x474f5f(0x131)](_0x3b0530[_0x474f5f(0x118)]);this[_0x474f5f(0x12e)](this[_0x474f5f(0x123)][_0x474f5f(0x11b)],()=>_0x31d871[_0x474f5f(0xfe)](_0x56d11c=>{const _0x4a1145=_0x474f5f;if(_0x56d11c['id']===_0x2d681d['SheetPrintOpenOperation']['id']){const _0x52ba7f=this['getActiveUniverSheet']();if(!_0x52ba7f)return;const _0x2163ac={'workbook':_0x52ba7f,'worksheet':_0x52ba7f[_0x4a1145(0x140)]()};if(_0x2163ac==null)return;if(this[_0x4a1145(0x105)](this[_0x4a1145(0x123)][_0x4a1145(0x11b)],_0x2163ac),_0x2163ac[_0x4a1145(0x13c)])throw new _0x3b0530['CanceledError']();}})),this['registerEventHandler'](this[_0x474f5f(0x123)]['BeforeSheetPrintConfirm'],()=>_0x31d871[_0x474f5f(0xfe)](_0x13e939=>{const _0x2071d1=_0x474f5f;if(_0x13e939['id']===_0x2d681d['ConfirmSheetPrintOperation']['id']){const _0x4560a0=_0x4ecd60[_0x2071d1(0x131)](_0x2d681d['ISheetPrintManagerService']);if(!this[_0x2071d1(0x117)]())return;const _0x1ca5e0={'layoutConfig':_0x4560a0[_0x2071d1(0x125)],'renderConfig':_0x4560a0[_0x2071d1(0x100)]};if(_0x1ca5e0==null)return;if(this['fireEvent'](this['Event'][_0x2071d1(0xf9)],_0x1ca5e0),_0x1ca5e0[_0x2071d1(0x13c)])throw new _0x3b0530[(_0x2071d1(0x101))]();}})),this[_0x474f5f(0x12e)](this[_0x474f5f(0x123)][_0x474f5f(0x124)],()=>_0x31d871[_0x474f5f(0xfe)](_0x27b94f=>{const _0xe3fe7c=_0x474f5f;if(_0x27b94f['id']===_0x2d681d['CancelSheetPrintOperation']['id']){const _0x297202=_0x4ecd60[_0xe3fe7c(0x131)](_0x2d681d[_0xe3fe7c(0x13e)]);if(!this[_0xe3fe7c(0x117)]())return;const _0xb80a69={'layoutConfig':_0x297202[_0xe3fe7c(0x125)],'renderConfig':_0x297202[_0xe3fe7c(0x100)]};if(_0xb80a69==null)return;if(this['fireEvent'](this[_0xe3fe7c(0x123)][_0xe3fe7c(0x124)],_0xb80a69),_0xb80a69[_0xe3fe7c(0x13c)])throw new _0x3b0530[(_0xe3fe7c(0x101))]();}})),this[_0x474f5f(0x12e)](this[_0x474f5f(0x123)][_0x474f5f(0x138)],()=>_0x31d871[_0x474f5f(0x11c)](_0x282046=>{const _0x1e667c=_0x474f5f;if(_0x282046['id']===_0x2d681d[_0x1e667c(0x102)]['id']){const _0x99fb9=this[_0x1e667c(0x117)]();if(!_0x99fb9)return;const _0x58f66f={'workbook':_0x99fb9,'worksheet':_0x99fb9[_0x1e667c(0x140)]()};if(_0x58f66f==null)return;this[_0x1e667c(0x105)](this[_0x1e667c(0x123)][_0x1e667c(0x138)],_0x58f66f);}})),this[_0x474f5f(0x12e)](this[_0x474f5f(0x123)][_0x474f5f(0xfd)],()=>_0x31d871[_0x474f5f(0x11c)](_0x36c34c=>{const _0x5ad1be=_0x474f5f;if(_0x36c34c['id']===_0x2d681d[_0x5ad1be(0x12c)]['id']){const _0x57b853=_0x4ecd60[_0x5ad1be(0x131)](_0x2d681d[_0x5ad1be(0x13e)]);if(!this[_0x5ad1be(0x117)]())return;const _0x58d49c={'layoutConfig':_0x57b853[_0x5ad1be(0x125)],'renderConfig':_0x57b853[_0x5ad1be(0x100)]};if(_0x58d49c==null)return;this['fireEvent'](this[_0x5ad1be(0x123)][_0x5ad1be(0xfd)],_0x58d49c);}})),this['registerEventHandler'](this[_0x474f5f(0x123)][_0x474f5f(0x10f)],()=>_0x31d871['onCommandExecuted'](_0x3a0197=>{const _0x19f1d8=_0x474f5f;if(_0x3a0197['id']===_0x2d681d[_0x19f1d8(0x135)]['id']){const _0x27d728=_0x4ecd60[_0x19f1d8(0x131)](_0x2d681d[_0x19f1d8(0x13e)]);if(!this['getActiveUniverSheet']())return;const _0x23f190={'layoutConfig':_0x27d728[_0x19f1d8(0x125)],'renderConfig':_0x27d728[_0x19f1d8(0x100)]};if(_0x23f190==null)return;this[_0x19f1d8(0x105)](this['Event'][_0x19f1d8(0x10f)],_0x23f190);}}));}}_0x34bc60[_0x32dedc(0x12f)][_0x32dedc(0x106)](_0x38a404);}));
1
+ (function(_0x117126,_0x2f4c4b){const _0x3f9190=_0x2ce9,_0x4c5f64=_0x117126();while(!![]){try{const _0x5c9d45=parseInt(_0x3f9190(0xf3))/0x1*(-parseInt(_0x3f9190(0xd8))/0x2)+-parseInt(_0x3f9190(0xf0))/0x3*(-parseInt(_0x3f9190(0x11a))/0x4)+parseInt(_0x3f9190(0x118))/0x5+-parseInt(_0x3f9190(0x113))/0x6+parseInt(_0x3f9190(0xef))/0x7*(parseInt(_0x3f9190(0x116))/0x8)+-parseInt(_0x3f9190(0x10d))/0x9*(parseInt(_0x3f9190(0x110))/0xa)+parseInt(_0x3f9190(0xe5))/0xb;if(_0x5c9d45===_0x2f4c4b)break;else _0x4c5f64['push'](_0x4c5f64['shift']());}catch(_0x87ef2d){_0x4c5f64['push'](_0x4c5f64['shift']());}}}(_0x1c17,0xd854c),function(_0x269550,_0x89012e){const _0x5c67d8=_0x2ce9;typeof exports==_0x5c67d8(0xff)&&typeof module<'u'?_0x89012e(require('@univerjs-pro/sheets-print'),require('@univerjs/core'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade'),require('@univerjs-pro/print')):typeof define==_0x5c67d8(0x102)&&define[_0x5c67d8(0xf1)]?define(['@univerjs-pro/sheets-print','@univerjs/core',_0x5c67d8(0x101),_0x5c67d8(0xe3),_0x5c67d8(0xf9)],_0x89012e):(_0x269550=typeof globalThis<'u'?globalThis:_0x269550||self,_0x89012e(_0x269550[_0x5c67d8(0xe9)],_0x269550[_0x5c67d8(0x10b)],_0x269550[_0x5c67d8(0xd6)],_0x269550['UniverCoreFacade'],_0x269550[_0x5c67d8(0x107)]));}(this,function(_0x57752e,_0x32cdd0,_0x2b6aa8,_0xe6a38d,_0x59b262){'use strict';const _0x223da3=_0x2ce9;class _0x18da79 extends _0x2b6aa8[_0x223da3(0xf6)]{[_0x223da3(0x119)](_0x4e2c2b){const _0x1ec83c=_0x223da3;return this[_0x1ec83c(0x11e)][_0x1ec83c(0xee)](_0x57752e[_0x1ec83c(0x10f)])[_0x1ec83c(0xf8)](_0x4e2c2b),this;}['updatePrintRenderConfig'](_0x6de86d){const _0xb2eba7=_0x223da3;return this[_0xb2eba7(0x11e)][_0xb2eba7(0xee)](_0x57752e[_0xb2eba7(0x10f)])[_0xb2eba7(0xdd)](_0x6de86d),this;}[_0x223da3(0xfb)](){const _0x1bf03e=_0x223da3;return this[_0x1bf03e(0x11e)][_0x1bf03e(0xee)](_0x32cdd0[_0x1bf03e(0xdc)])[_0x1bf03e(0xf7)](_0x57752e[_0x1bf03e(0x11f)]['id']);}[_0x223da3(0x108)](){const _0x4727f3=_0x223da3;return this[_0x4727f3(0x11e)]['get'](_0x32cdd0['ICommandService'])[_0x4727f3(0xf7)](_0x57752e[_0x4727f3(0x115)]['id']);}[_0x223da3(0xe4)](){const _0x489af8=_0x223da3;return this[_0x489af8(0x11e)][_0x489af8(0xee)](_0x32cdd0[_0x489af8(0xdc)])['syncExecuteCommand'](_0x57752e['CancelSheetPrintOperation']['id']);}async[_0x223da3(0xdb)](){const _0x145762=_0x223da3;return _0x57752e[_0x145762(0xf5)](this[_0x145762(0x11e)])?this[_0x145762(0x11e)][_0x145762(0xee)](_0x32cdd0[_0x145762(0xdc)])[_0x145762(0x10c)](_0x57752e[_0x145762(0xfa)]['id']):!0x1;}}_0x2b6aa8[_0x223da3(0xf6)][_0x223da3(0xfd)](_0x18da79);class _0x84166e extends _0x2b6aa8[_0x223da3(0xea)]{[_0x223da3(0x105)](){const _0x210522=_0x223da3;return _0x57752e[_0x210522(0xf5)](this[_0x210522(0x11e)])?this[_0x210522(0x11e)]['get'](_0x57752e[_0x210522(0x10a)])[_0x210522(0xd7)](this[_0x210522(0xe1)]['getUnitId'](),this[_0x210522(0x100)][_0x210522(0x111)](),this[_0x210522(0x104)]):!0x1;}}_0x2b6aa8['FRange'][_0x223da3(0xfd)](_0x84166e);class _0x3ea4ec{get[_0x223da3(0xfe)](){const _0x4a8e1b=_0x223da3;return _0x4a8e1b(0xfe);}get[_0x223da3(0xeb)](){const _0x96fc52=_0x223da3;return _0x96fc52(0xeb);}get[_0x223da3(0x112)](){return'BeforeSheetPrintCanceled';}get[_0x223da3(0x106)](){const _0x4b9e4e=_0x223da3;return _0x4b9e4e(0x106);}get['SheetPrintConfirmed'](){const _0x5e9515=_0x223da3;return _0x5e9515(0xd4);}get[_0x223da3(0xf2)](){const _0x13d79c=_0x223da3;return _0x13d79c(0xf2);}}_0xe6a38d['FEventName'][_0x223da3(0xfd)](_0x3ea4ec);class _0x572d18{get[_0x223da3(0xe8)](){return _0x57752e['PrintArea'];}get['PrintAlign'](){const _0x257bad=_0x223da3;return _0x59b262[_0x257bad(0xe0)];}get['PrintPaperSize'](){const _0x1da42f=_0x223da3;return _0x32cdd0[_0x1da42f(0x114)];}get[_0x223da3(0x11b)](){const _0x1bee30=_0x223da3;return _0x59b262[_0x1bee30(0x11b)];}get[_0x223da3(0x11c)](){const _0x330464=_0x223da3;return _0x59b262[_0x330464(0x11c)];}get[_0x223da3(0xe7)](){return _0x59b262['PrintDirection'];}get['PrintFreeze'](){const _0x340f6d=_0x223da3;return _0x57752e[_0x340f6d(0x103)];}get[_0x223da3(0xed)](){const _0x1ddc26=_0x223da3;return _0x57752e[_0x1ddc26(0xed)];}get[_0x223da3(0xda)](){const _0x1ceed9=_0x223da3;return _0x57752e[_0x1ceed9(0xda)];}}_0xe6a38d[_0x223da3(0xe6)][_0x223da3(0xfd)](_0x572d18);class _0x2e17c3 extends _0xe6a38d['FUniver']{['_initialize'](_0x15ab7d){const _0x13c187=_0x223da3,_0x10c0e8=_0x15ab7d[_0x13c187(0xee)](_0x32cdd0[_0x13c187(0xdc)]);this['registerEventHandler'](this[_0x13c187(0xd9)][_0x13c187(0xfe)],()=>_0x10c0e8[_0x13c187(0xdf)](_0x12cb70=>{const _0x4cb577=_0x13c187;if(_0x12cb70['id']===_0x57752e[_0x4cb577(0x115)]['id']){const _0x376ca0=this[_0x4cb577(0xf4)]();if(!_0x376ca0)return;const _0x3cd329={'workbook':_0x376ca0,'worksheet':_0x376ca0[_0x4cb577(0x11d)]()};if(_0x3cd329==null)return;if(this[_0x4cb577(0x117)](this[_0x4cb577(0xd9)][_0x4cb577(0xfe)],_0x3cd329),_0x3cd329['cancel'])throw new _0x32cdd0[(_0x4cb577(0xde))]();}})),this[_0x13c187(0xfc)](this[_0x13c187(0xd9)][_0x13c187(0xeb)],()=>_0x10c0e8[_0x13c187(0xdf)](_0x307ef9=>{const _0x53e2bd=_0x13c187;if(_0x307ef9['id']===_0x57752e[_0x53e2bd(0x11f)]['id']){const _0x5b2eef=_0x15ab7d[_0x53e2bd(0xee)](_0x57752e[_0x53e2bd(0x10f)]);if(!this[_0x53e2bd(0xf4)]())return;const _0x515adc={'layoutConfig':_0x5b2eef[_0x53e2bd(0x10e)],'renderConfig':_0x5b2eef[_0x53e2bd(0xe2)]};if(_0x515adc==null)return;if(this['fireEvent'](this[_0x53e2bd(0xd9)][_0x53e2bd(0xeb)],_0x515adc),_0x515adc[_0x53e2bd(0xec)])throw new _0x32cdd0['CanceledError']();}})),this[_0x13c187(0xfc)](this[_0x13c187(0xd9)][_0x13c187(0x112)],()=>_0x10c0e8[_0x13c187(0xdf)](_0x38818f=>{const _0x3d6d43=_0x13c187;if(_0x38818f['id']===_0x57752e[_0x3d6d43(0x109)]['id']){const _0x1a8242=_0x15ab7d[_0x3d6d43(0xee)](_0x57752e[_0x3d6d43(0x10f)]);if(!this[_0x3d6d43(0xf4)]())return;const _0xc62ab5={'layoutConfig':_0x1a8242['layoutConfig'],'renderConfig':_0x1a8242[_0x3d6d43(0xe2)]};if(_0xc62ab5==null)return;if(this[_0x3d6d43(0x117)](this[_0x3d6d43(0xd9)][_0x3d6d43(0x112)],_0xc62ab5),_0xc62ab5[_0x3d6d43(0xec)])throw new _0x32cdd0[(_0x3d6d43(0xde))]();}})),this[_0x13c187(0xfc)](this[_0x13c187(0xd9)]['SheetPrintOpen'],()=>_0x10c0e8[_0x13c187(0xd5)](_0x298e2a=>{const _0x2b6101=_0x13c187;if(_0x298e2a['id']===_0x57752e['SheetPrintOpenOperation']['id']){const _0x193ca2=this[_0x2b6101(0xf4)]();if(!_0x193ca2)return;const _0x49b6f5={'workbook':_0x193ca2,'worksheet':_0x193ca2[_0x2b6101(0x11d)]()};if(_0x49b6f5==null)return;this[_0x2b6101(0x117)](this[_0x2b6101(0xd9)][_0x2b6101(0x106)],_0x49b6f5);}})),this[_0x13c187(0xfc)](this[_0x13c187(0xd9)][_0x13c187(0xd4)],()=>_0x10c0e8[_0x13c187(0xd5)](_0x5944ca=>{const _0x4280e9=_0x13c187;if(_0x5944ca['id']===_0x57752e['ConfirmSheetPrintOperation']['id']){const _0x449adb=_0x15ab7d[_0x4280e9(0xee)](_0x57752e['ISheetPrintManagerService']);if(!this[_0x4280e9(0xf4)]())return;const _0x21beab={'layoutConfig':_0x449adb['layoutConfig'],'renderConfig':_0x449adb['renderConfig']};if(_0x21beab==null)return;this[_0x4280e9(0x117)](this[_0x4280e9(0xd9)][_0x4280e9(0xd4)],_0x21beab);}})),this[_0x13c187(0xfc)](this[_0x13c187(0xd9)][_0x13c187(0xf2)],()=>_0x10c0e8[_0x13c187(0xd5)](_0x5d34ad=>{const _0x1cf873=_0x13c187;if(_0x5d34ad['id']===_0x57752e['CancelSheetPrintOperation']['id']){const _0x26c975=_0x15ab7d[_0x1cf873(0xee)](_0x57752e['ISheetPrintManagerService']);if(!this[_0x1cf873(0xf4)]())return;const _0x567661={'layoutConfig':_0x26c975[_0x1cf873(0x10e)],'renderConfig':_0x26c975['renderConfig']};if(_0x567661==null)return;this['fireEvent'](this[_0x1cf873(0xd9)][_0x1cf873(0xf2)],_0x567661);}}));}}_0xe6a38d['FUniver'][_0x223da3(0xfd)](_0x2e17c3);}));function _0x2ce9(_0x45cdf2,_0x55027e){const _0x1c1748=_0x1c17();return _0x2ce9=function(_0x2ce9f6,_0x4f95e3){_0x2ce9f6=_0x2ce9f6-0xd4;let _0x598238=_0x1c1748[_0x2ce9f6];return _0x598238;},_0x2ce9(_0x45cdf2,_0x55027e);}function _0x1c17(){const _0x5a53f0=['fireEvent','1556660fLyrvG','updatePrintConfig','2024948XChHyX','PrintPaperMargin','PrintScale','getActiveSheet','_injector','ConfirmSheetPrintOperation','SheetPrintConfirmed','onCommandExecuted','UniverSheetsFacade','getRangeImage','21478hBvpKB','Event','PrintHeaderFooterSymbol','saveScreenshotToClipboard','ICommandService','updateRenderConfig','CanceledError','beforeCommandExecuted','PrintAlign','_workbook','renderConfig','@univerjs/core/facade','closePrintDialog','14425785yhkqNL','FEnum','PrintDirection','PrintArea','UniverProSheetsPrint','FRange','BeforeSheetPrintConfirm','cancel','PrintHeaderFooter','get','49pHIEGN','6XEDzPc','amd','SheetPrintCanceled','109YnbMJr','getActiveUniverSheet','hasPrintFacadePermission','FWorkbook','syncExecuteCommand','updateLayoutConfig','@univerjs-pro/print','SheetScreenShotOperation','print','registerEventHandler','extend','BeforeSheetPrintOpen','object','_worksheet','@univerjs/sheets/facade','function','PrintFreeze','_range','getScreenshot','SheetPrintOpen','UniverProPrint','openPrintDialog','CancelSheetPrintOperation','SheetPrintClientService','UniverCore','executeCommand','50004HonbOg','layoutConfig','ISheetPrintManagerService','640pqVpnR','getSheetId','BeforeSheetPrintCanceled','5734770rmGXfi','PaperType','SheetPrintOpenOperation','837464JUbXLp'];_0x1c17=function(){return _0x5a53f0;};return _0x1c17();}