@univerjs-pro/sheets-print 0.6.10 → 0.7.0-nightly.202504291607

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 (42) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/en-US.js +1 -1
  4. package/lib/cjs/locale/fa-IR.js +1 -1
  5. package/lib/cjs/locale/fr-FR.js +1 -1
  6. package/lib/cjs/locale/ru-RU.js +1 -1
  7. package/lib/cjs/locale/vi-VN.js +1 -1
  8. package/lib/cjs/locale/zh-CN.js +1 -1
  9. package/lib/cjs/locale/zh-TW.js +1 -1
  10. package/lib/es/facade.js +1 -1
  11. package/lib/es/index.js +1 -1
  12. package/lib/es/locale/en-US.js +1 -1
  13. package/lib/es/locale/fa-IR.js +1 -1
  14. package/lib/es/locale/fr-FR.js +1 -1
  15. package/lib/es/locale/ru-RU.js +1 -1
  16. package/lib/es/locale/vi-VN.js +1 -1
  17. package/lib/es/locale/zh-CN.js +1 -1
  18. package/lib/es/locale/zh-TW.js +1 -1
  19. package/lib/facade.js +1 -1
  20. package/lib/index.css +1 -1
  21. package/lib/index.js +1 -1
  22. package/lib/locale/en-US.js +1 -1
  23. package/lib/locale/fa-IR.js +1 -1
  24. package/lib/locale/fr-FR.js +1 -1
  25. package/lib/locale/ru-RU.js +1 -1
  26. package/lib/locale/vi-VN.js +1 -1
  27. package/lib/locale/zh-CN.js +1 -1
  28. package/lib/locale/zh-TW.js +1 -1
  29. package/lib/types/common/const.d.ts +42 -42
  30. package/lib/types/common/types.d.ts +3 -3
  31. package/lib/types/controllers/const.d.ts +1 -1
  32. package/lib/types/facade/f-enum.d.ts +4 -3
  33. package/lib/umd/facade.js +1 -1
  34. package/lib/umd/index.js +1 -1
  35. package/lib/umd/locale/en-US.js +1 -1
  36. package/lib/umd/locale/fa-IR.js +1 -1
  37. package/lib/umd/locale/fr-FR.js +1 -1
  38. package/lib/umd/locale/ru-RU.js +1 -1
  39. package/lib/umd/locale/vi-VN.js +1 -1
  40. package/lib/umd/locale/zh-CN.js +1 -1
  41. package/lib/umd/locale/zh-TW.js +1 -1
  42. package/package.json +18 -19
package/lib/umd/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x2a52(){const _0x538b8f=['312344wmPbAF','updateLayoutConfig','17918iCKDmX','@univerjs/core','FEnum','hasPrintFacadePermission','getActiveSheet','get','getScreenshot','BeforeSheetPrintConfirm','6057wujZcw','getActiveUniverSheet','UniverProSheetsPrint','FUniver','PrintHeaderFooterSymbol','PrintAlign','print','210UMtFEQ','registerEventHandler','SheetPrintCanceled','updateRenderConfig','@univerjs-pro/sheets-print','UniverCore','SheetPrintOpenOperation','@univerjs-pro/print','beforeCommandExecuted','ConfirmSheetPrintOperation','_initialize','PrintHeaderFooter','PrintArea','357340wVkgPy','@univerjs/core/facade','16710rEQjYI','onCommandExecuted','getUnitId','CanceledError','14203640HtoTQn','BeforeSheetPrintOpen','5LXIoBG','SheetPrintConfirmed','PrintFreeze','getRangeImage','_injector','openPrintDialog','ISheetPrintManagerService','UniverCoreFacade','CancelSheetPrintOperation','SheetScreenShotOperation','closePrintDialog','1619364NIdOXl','PrintScale','FRange','SheetPrintOpen','cancel','BeforeSheetPrintCanceled','fireEvent','layoutConfig','PrintDirection','2001291asvkIj','Event','ICommandService','UniverSheetsFacade','_worksheet','@univerjs/sheets/facade','UniverProPrint','updatePrintConfig','PrintPaperSize','syncExecuteCommand','97yPpeve','extend','renderConfig','FWorkbook','saveScreenshotToClipboard'];_0x2a52=function(){return _0x538b8f;};return _0x2a52();}function _0x154c(_0x144850,_0x2dde37){const _0x2a52d1=_0x2a52();return _0x154c=function(_0x154c88,_0x244be6){_0x154c88=_0x154c88-0x8e;let _0x100fc7=_0x2a52d1[_0x154c88];return _0x100fc7;},_0x154c(_0x144850,_0x2dde37);}(function(_0x410fd8,_0xd124ab){const _0x36a9a9=_0x154c,_0x38a6c3=_0x410fd8();while(!![]){try{const _0x19298b=parseInt(_0x36a9a9(0xb0))/0x1*(parseInt(_0x36a9a9(0xb7))/0x2)+parseInt(_0x36a9a9(0xa6))/0x3+-parseInt(_0x36a9a9(0xd3))/0x4+-parseInt(_0x36a9a9(0x92))/0x5*(-parseInt(_0x36a9a9(0x9d))/0x6)+parseInt(_0x36a9a9(0xc6))/0x7*(-parseInt(_0x36a9a9(0xb5))/0x8)+parseInt(_0x36a9a9(0xbf))/0x9*(-parseInt(_0x36a9a9(0xd5))/0xa)+parseInt(_0x36a9a9(0x90))/0xb;if(_0x19298b===_0xd124ab)break;else _0x38a6c3['push'](_0x38a6c3['shift']());}catch(_0x47b642){_0x38a6c3['push'](_0x38a6c3['shift']());}}}(_0x2a52,0xadd6e),function(_0x5da5f4,_0x5e73c6){const _0x2638e1=_0x154c;typeof exports=='object'&&typeof module<'u'?_0x5e73c6(require(_0x2638e1(0xca)),require(_0x2638e1(0xb8)),require(_0x2638e1(0xab)),require(_0x2638e1(0xd4)),require(_0x2638e1(0xcd))):typeof define=='function'&&define['amd']?define([_0x2638e1(0xca),_0x2638e1(0xb8),_0x2638e1(0xab),'@univerjs/core/facade',_0x2638e1(0xcd)],_0x5e73c6):(_0x5da5f4=typeof globalThis<'u'?globalThis:_0x5da5f4||self,_0x5e73c6(_0x5da5f4[_0x2638e1(0xc1)],_0x5da5f4[_0x2638e1(0xcb)],_0x5da5f4[_0x2638e1(0xa9)],_0x5da5f4[_0x2638e1(0x99)],_0x5da5f4[_0x2638e1(0xac)]));}(this,function(_0x326111,_0xb75dfa,_0x4b56c7,_0x32c58d,_0x3bcff8){'use strict';const _0x32dfd8=_0x154c;class _0x87a5f extends _0x4b56c7[_0x32dfd8(0xb3)]{[_0x32dfd8(0xad)](_0x2e5f88){const _0x547d19=_0x32dfd8;return this['_injector'][_0x547d19(0xbc)](_0x326111[_0x547d19(0x98)])[_0x547d19(0xb6)](_0x2e5f88),this;}['updatePrintRenderConfig'](_0x3a6baf){const _0x26359c=_0x32dfd8;return this[_0x26359c(0x96)][_0x26359c(0xbc)](_0x326111[_0x26359c(0x98)])[_0x26359c(0xc9)](_0x3a6baf),this;}[_0x32dfd8(0xc5)](){const _0x337495=_0x32dfd8;return this[_0x337495(0x96)]['get'](_0xb75dfa[_0x337495(0xa8)])[_0x337495(0xaf)](_0x326111[_0x337495(0xcf)]['id']);}[_0x32dfd8(0x97)](){const _0x1cab0c=_0x32dfd8;return this[_0x1cab0c(0x96)][_0x1cab0c(0xbc)](_0xb75dfa[_0x1cab0c(0xa8)])[_0x1cab0c(0xaf)](_0x326111[_0x1cab0c(0xcc)]['id']);}[_0x32dfd8(0x9c)](){const _0x56d7ac=_0x32dfd8;return this[_0x56d7ac(0x96)][_0x56d7ac(0xbc)](_0xb75dfa[_0x56d7ac(0xa8)])[_0x56d7ac(0xaf)](_0x326111[_0x56d7ac(0x9a)]['id']);}async[_0x32dfd8(0xb4)](){const _0x3a1f05=_0x32dfd8;return _0x326111['hasPrintFacadePermission'](this['_injector'])?this[_0x3a1f05(0x96)][_0x3a1f05(0xbc)](_0xb75dfa[_0x3a1f05(0xa8)])['executeCommand'](_0x326111[_0x3a1f05(0x9b)]['id']):!0x1;}}_0x4b56c7['FWorkbook'][_0x32dfd8(0xb1)](_0x87a5f);class _0x68f926 extends _0x4b56c7[_0x32dfd8(0x9f)]{[_0x32dfd8(0xbd)](){const _0x2ea8b9=_0x32dfd8;return _0x326111[_0x2ea8b9(0xba)](this['_injector'])?this[_0x2ea8b9(0x96)][_0x2ea8b9(0xbc)](_0x326111['SheetPrintClientService'])[_0x2ea8b9(0x95)](this['_workbook'][_0x2ea8b9(0x8e)](),this[_0x2ea8b9(0xaa)]['getSheetId'](),this['_range']):!0x1;}}_0x4b56c7[_0x32dfd8(0x9f)][_0x32dfd8(0xb1)](_0x68f926);class _0x5db852{get['BeforeSheetPrintOpen'](){const _0x45787b=_0x32dfd8;return _0x45787b(0x91);}get[_0x32dfd8(0xbe)](){const _0x102777=_0x32dfd8;return _0x102777(0xbe);}get[_0x32dfd8(0xa2)](){return'BeforeSheetPrintCanceled';}get['SheetPrintOpen'](){const _0x347fff=_0x32dfd8;return _0x347fff(0xa0);}get['SheetPrintConfirmed'](){const _0x27964d=_0x32dfd8;return _0x27964d(0x93);}get['SheetPrintCanceled'](){const _0xf8a383=_0x32dfd8;return _0xf8a383(0xc8);}}_0x32c58d['FEventName'][_0x32dfd8(0xb1)](_0x5db852);class _0x47fb81{get[_0x32dfd8(0xd2)](){const _0xbab27a=_0x32dfd8;return _0x326111[_0xbab27a(0xd2)];}get['PrintAlign'](){const _0x3a08b5=_0x32dfd8;return _0x3bcff8[_0x3a08b5(0xc4)];}get[_0x32dfd8(0xae)](){const _0x40bf86=_0x32dfd8;return _0x3bcff8[_0x40bf86(0xae)];}get['PrintPaperMargin'](){return _0x3bcff8['PrintPaperMargin'];}get[_0x32dfd8(0x9e)](){const _0xd22c7c=_0x32dfd8;return _0x3bcff8[_0xd22c7c(0x9e)];}get[_0x32dfd8(0xa5)](){const _0x156b37=_0x32dfd8;return _0x3bcff8[_0x156b37(0xa5)];}get[_0x32dfd8(0x94)](){return _0x326111['PrintFreeze'];}get[_0x32dfd8(0xd1)](){const _0x44cad1=_0x32dfd8;return _0x326111[_0x44cad1(0xd1)];}get[_0x32dfd8(0xc3)](){return _0x326111['PrintHeaderFooterSymbol'];}}_0x32c58d[_0x32dfd8(0xb9)]['extend'](_0x47fb81);class _0x329872 extends _0x32c58d[_0x32dfd8(0xc2)]{[_0x32dfd8(0xd0)](_0x10d675){const _0x4d0f79=_0x32dfd8,_0xa933ca=_0x10d675[_0x4d0f79(0xbc)](_0xb75dfa['ICommandService']);this[_0x4d0f79(0xc7)](this['Event'][_0x4d0f79(0x91)],()=>_0xa933ca[_0x4d0f79(0xce)](_0x4ab4b3=>{const _0x387e60=_0x4d0f79;if(_0x4ab4b3['id']===_0x326111[_0x387e60(0xcc)]['id']){const _0x48477b=this['getActiveUniverSheet']();if(!_0x48477b)return;const _0x58376e={'workbook':_0x48477b,'worksheet':_0x48477b[_0x387e60(0xbb)]()};if(_0x58376e==null)return;if(this[_0x387e60(0xa3)](this[_0x387e60(0xa7)][_0x387e60(0x91)],_0x58376e),_0x58376e['cancel'])throw new _0xb75dfa[(_0x387e60(0x8f))]();}})),this[_0x4d0f79(0xc7)](this[_0x4d0f79(0xa7)][_0x4d0f79(0xbe)],()=>_0xa933ca[_0x4d0f79(0xce)](_0x40f1dc=>{const _0x117319=_0x4d0f79;if(_0x40f1dc['id']===_0x326111['ConfirmSheetPrintOperation']['id']){const _0x48140a=_0x10d675['get'](_0x326111[_0x117319(0x98)]);if(!this[_0x117319(0xc0)]())return;const _0x2c71d8={'layoutConfig':_0x48140a[_0x117319(0xa4)],'renderConfig':_0x48140a[_0x117319(0xb2)]};if(_0x2c71d8==null)return;if(this[_0x117319(0xa3)](this[_0x117319(0xa7)][_0x117319(0xbe)],_0x2c71d8),_0x2c71d8['cancel'])throw new _0xb75dfa[(_0x117319(0x8f))]();}})),this['registerEventHandler'](this['Event'][_0x4d0f79(0xa2)],()=>_0xa933ca[_0x4d0f79(0xce)](_0x2ce236=>{const _0x2c951f=_0x4d0f79;if(_0x2ce236['id']===_0x326111['CancelSheetPrintOperation']['id']){const _0x3e6910=_0x10d675[_0x2c951f(0xbc)](_0x326111[_0x2c951f(0x98)]);if(!this['getActiveUniverSheet']())return;const _0x611a2c={'layoutConfig':_0x3e6910[_0x2c951f(0xa4)],'renderConfig':_0x3e6910[_0x2c951f(0xb2)]};if(_0x611a2c==null)return;if(this[_0x2c951f(0xa3)](this[_0x2c951f(0xa7)][_0x2c951f(0xa2)],_0x611a2c),_0x611a2c[_0x2c951f(0xa1)])throw new _0xb75dfa[(_0x2c951f(0x8f))]();}})),this[_0x4d0f79(0xc7)](this[_0x4d0f79(0xa7)][_0x4d0f79(0xa0)],()=>_0xa933ca[_0x4d0f79(0xd6)](_0x47801b=>{const _0x389732=_0x4d0f79;if(_0x47801b['id']===_0x326111['SheetPrintOpenOperation']['id']){const _0x1cf133=this[_0x389732(0xc0)]();if(!_0x1cf133)return;const _0x3b558e={'workbook':_0x1cf133,'worksheet':_0x1cf133[_0x389732(0xbb)]()};if(_0x3b558e==null)return;this[_0x389732(0xa3)](this[_0x389732(0xa7)]['SheetPrintOpen'],_0x3b558e);}})),this[_0x4d0f79(0xc7)](this[_0x4d0f79(0xa7)]['SheetPrintConfirmed'],()=>_0xa933ca[_0x4d0f79(0xd6)](_0x4ed2cc=>{const _0x5917c8=_0x4d0f79;if(_0x4ed2cc['id']===_0x326111['ConfirmSheetPrintOperation']['id']){const _0x484dc4=_0x10d675['get'](_0x326111[_0x5917c8(0x98)]);if(!this[_0x5917c8(0xc0)]())return;const _0x21b0e4={'layoutConfig':_0x484dc4['layoutConfig'],'renderConfig':_0x484dc4[_0x5917c8(0xb2)]};if(_0x21b0e4==null)return;this[_0x5917c8(0xa3)](this['Event']['SheetPrintConfirmed'],_0x21b0e4);}})),this[_0x4d0f79(0xc7)](this[_0x4d0f79(0xa7)]['SheetPrintCanceled'],()=>_0xa933ca['onCommandExecuted'](_0xa25bb6=>{const _0x69532e=_0x4d0f79;if(_0xa25bb6['id']===_0x326111['CancelSheetPrintOperation']['id']){const _0x2a556b=_0x10d675[_0x69532e(0xbc)](_0x326111['ISheetPrintManagerService']);if(!this[_0x69532e(0xc0)]())return;const _0x21e256={'layoutConfig':_0x2a556b[_0x69532e(0xa4)],'renderConfig':_0x2a556b['renderConfig']};if(_0x21e256==null)return;this[_0x69532e(0xa3)](this['Event']['SheetPrintCanceled'],_0x21e256);}}));}}_0x32c58d['FUniver'][_0x32dfd8(0xb1)](_0x329872);}));
1
+ (function(_0x40b213,_0x3af5e8){const _0x253e64=_0x1991,_0x53c048=_0x40b213();while(!![]){try{const _0x58ff85=parseInt(_0x253e64(0x13e))/0x1+-parseInt(_0x253e64(0x112))/0x2+parseInt(_0x253e64(0x150))/0x3+-parseInt(_0x253e64(0x11e))/0x4*(parseInt(_0x253e64(0x143))/0x5)+parseInt(_0x253e64(0x12f))/0x6+parseInt(_0x253e64(0x114))/0x7*(-parseInt(_0x253e64(0x145))/0x8)+parseInt(_0x253e64(0x129))/0x9*(parseInt(_0x253e64(0x115))/0xa);if(_0x58ff85===_0x3af5e8)break;else _0x53c048['push'](_0x53c048['shift']());}catch(_0x4bec3b){_0x53c048['push'](_0x53c048['shift']());}}}(_0x56b0,0x37843),function(_0x46aebe,_0x19539c){const _0x46f2d1=_0x1991;typeof exports==_0x46f2d1(0x10f)&&typeof module<'u'?_0x19539c(require(_0x46f2d1(0x126)),require(_0x46f2d1(0x111)),require(_0x46f2d1(0x12c)),require(_0x46f2d1(0x124)),require(_0x46f2d1(0x121))):typeof define=='function'&&define[_0x46f2d1(0x12e)]?define(['@univerjs-pro/sheets-print','@univerjs/core','@univerjs/sheets/facade',_0x46f2d1(0x124),_0x46f2d1(0x121)],_0x19539c):(_0x46aebe=typeof globalThis<'u'?globalThis:_0x46aebe||self,_0x19539c(_0x46aebe[_0x46f2d1(0x135)],_0x46aebe['UniverCore'],_0x46aebe[_0x46f2d1(0x113)],_0x46aebe[_0x46f2d1(0x13c)],_0x46aebe['UniverProPrint']));}(this,function(_0x2024b7,_0x308e7c,_0x5ad475,_0x5303f3,_0x57b69b){'use strict';const _0x1793d4=_0x1991;class _0x45e4cf extends _0x5ad475['FWorkbook']{['updatePrintConfig'](_0xba1f68){const _0x44c4ed=_0x1991;return this[_0x44c4ed(0x141)][_0x44c4ed(0x10a)](_0x2024b7[_0x44c4ed(0x140)])[_0x44c4ed(0x152)](_0xba1f68),this;}[_0x1793d4(0x122)](_0x3e1b5f){const _0x385ff3=_0x1793d4;return this['_injector'][_0x385ff3(0x10a)](_0x2024b7[_0x385ff3(0x140)])['updateRenderConfig'](_0x3e1b5f),this;}[_0x1793d4(0x123)](){const _0x2da3ed=_0x1793d4;return this[_0x2da3ed(0x141)][_0x2da3ed(0x10a)](_0x308e7c[_0x2da3ed(0x10d)])[_0x2da3ed(0x147)](_0x2024b7[_0x2da3ed(0x13d)]['id']);}[_0x1793d4(0x13a)](){const _0x40f2e4=_0x1793d4;return this[_0x40f2e4(0x141)]['get'](_0x308e7c[_0x40f2e4(0x10d)])[_0x40f2e4(0x147)](_0x2024b7['SheetPrintOpenOperation']['id']);}[_0x1793d4(0x10c)](){const _0xae2d00=_0x1793d4;return this['_injector'][_0xae2d00(0x10a)](_0x308e7c[_0xae2d00(0x10d)])['syncExecuteCommand'](_0x2024b7[_0xae2d00(0x11f)]['id']);}async['saveScreenshotToClipboard'](){const _0x1211aa=_0x1793d4;return _0x2024b7['hasPrintFacadePermission'](this[_0x1211aa(0x141)])?this[_0x1211aa(0x141)][_0x1211aa(0x10a)](_0x308e7c[_0x1211aa(0x10d)])[_0x1211aa(0x136)](_0x2024b7[_0x1211aa(0x137)]['id']):!0x1;}}_0x5ad475[_0x1793d4(0x149)][_0x1793d4(0x130)](_0x45e4cf);class _0x36e067 extends _0x5ad475['FRange']{[_0x1793d4(0x134)](){const _0x440a89=_0x1793d4;return _0x2024b7[_0x440a89(0x146)](this[_0x440a89(0x141)])?this['_injector']['get'](_0x2024b7['SheetPrintClientService'])[_0x440a89(0x131)](this[_0x440a89(0x151)]['getUnitId'](),this[_0x440a89(0x14d)]['getSheetId'](),this[_0x440a89(0x10b)]):!0x1;}}_0x5ad475['FRange'][_0x1793d4(0x130)](_0x36e067);class _0x53beb7{get[_0x1793d4(0x110)](){const _0x35bfc9=_0x1793d4;return _0x35bfc9(0x110);}get['BeforeSheetPrintConfirm'](){const _0x82da9e=_0x1793d4;return _0x82da9e(0x12a);}get[_0x1793d4(0x138)](){const _0x34f10f=_0x1793d4;return _0x34f10f(0x138);}get['SheetPrintOpen'](){return'SheetPrintOpen';}get[_0x1793d4(0x13f)](){const _0xff787e=_0x1793d4;return _0xff787e(0x13f);}get['SheetPrintCanceled'](){const _0x23fbd1=_0x1793d4;return _0x23fbd1(0x11d);}}_0x5303f3[_0x1793d4(0x11a)][_0x1793d4(0x130)](_0x53beb7);class _0x5d5c9c{get[_0x1793d4(0x10e)](){const _0x4b8bf7=_0x1793d4;return _0x2024b7[_0x4b8bf7(0x10e)];}get[_0x1793d4(0x120)](){const _0x315715=_0x1793d4;return _0x57b69b[_0x315715(0x120)];}get[_0x1793d4(0x14a)](){const _0x30c253=_0x1793d4;return _0x308e7c[_0x30c253(0x144)];}get[_0x1793d4(0x148)](){const _0xceaea8=_0x1793d4;return _0x57b69b[_0xceaea8(0x148)];}get[_0x1793d4(0x132)](){const _0x5a2a01=_0x1793d4;return _0x57b69b[_0x5a2a01(0x132)];}get[_0x1793d4(0x116)](){const _0x13963c=_0x1793d4;return _0x57b69b[_0x13963c(0x116)];}get[_0x1793d4(0x14e)](){return _0x2024b7['PrintFreeze'];}get[_0x1793d4(0x127)](){const _0x211d37=_0x1793d4;return _0x2024b7[_0x211d37(0x127)];}get['PrintHeaderFooterSymbol'](){const _0x3d74d6=_0x1793d4;return _0x2024b7[_0x3d74d6(0x128)];}}_0x5303f3['FEnum']['extend'](_0x5d5c9c);class _0x39782b extends _0x5303f3[_0x1793d4(0x133)]{[_0x1793d4(0x11c)](_0x21999d){const _0x120809=_0x1793d4,_0x5e286f=_0x21999d[_0x120809(0x10a)](_0x308e7c['ICommandService']);this[_0x120809(0x12d)](this[_0x120809(0x139)][_0x120809(0x110)],()=>_0x5e286f[_0x120809(0x14f)](_0x1b1100=>{const _0x23a667=_0x120809;if(_0x1b1100['id']===_0x2024b7[_0x23a667(0x119)]['id']){const _0x1d8771=this['getActiveUniverSheet']();if(!_0x1d8771)return;const _0x4d53b2={'workbook':_0x1d8771,'worksheet':_0x1d8771[_0x23a667(0x125)]()};if(_0x4d53b2==null)return;if(this['fireEvent'](this[_0x23a667(0x139)][_0x23a667(0x110)],_0x4d53b2),_0x4d53b2[_0x23a667(0x13b)])throw new _0x308e7c[(_0x23a667(0x142))]();}})),this[_0x120809(0x12d)](this[_0x120809(0x139)][_0x120809(0x12a)],()=>_0x5e286f[_0x120809(0x14f)](_0x39307d=>{const _0x2a721f=_0x120809;if(_0x39307d['id']===_0x2024b7['ConfirmSheetPrintOperation']['id']){const _0x46f427=_0x21999d[_0x2a721f(0x10a)](_0x2024b7['ISheetPrintManagerService']);if(!this[_0x2a721f(0x11b)]())return;const _0x29a542={'layoutConfig':_0x46f427[_0x2a721f(0x14b)],'renderConfig':_0x46f427[_0x2a721f(0x117)]};if(_0x29a542==null)return;if(this[_0x2a721f(0x118)](this[_0x2a721f(0x139)][_0x2a721f(0x12a)],_0x29a542),_0x29a542['cancel'])throw new _0x308e7c[(_0x2a721f(0x142))]();}})),this['registerEventHandler'](this['Event']['BeforeSheetPrintCanceled'],()=>_0x5e286f[_0x120809(0x14f)](_0xaf7bd8=>{const _0x4cb646=_0x120809;if(_0xaf7bd8['id']===_0x2024b7['CancelSheetPrintOperation']['id']){const _0x59961e=_0x21999d['get'](_0x2024b7[_0x4cb646(0x140)]);if(!this[_0x4cb646(0x11b)]())return;const _0x488704={'layoutConfig':_0x59961e[_0x4cb646(0x14b)],'renderConfig':_0x59961e[_0x4cb646(0x117)]};if(_0x488704==null)return;if(this['fireEvent'](this[_0x4cb646(0x139)][_0x4cb646(0x138)],_0x488704),_0x488704[_0x4cb646(0x13b)])throw new _0x308e7c[(_0x4cb646(0x142))]();}})),this[_0x120809(0x12d)](this[_0x120809(0x139)][_0x120809(0x14c)],()=>_0x5e286f[_0x120809(0x12b)](_0x2d5dd4=>{const _0x41f687=_0x120809;if(_0x2d5dd4['id']===_0x2024b7[_0x41f687(0x119)]['id']){const _0x415786=this['getActiveUniverSheet']();if(!_0x415786)return;const _0x462e17={'workbook':_0x415786,'worksheet':_0x415786[_0x41f687(0x125)]()};if(_0x462e17==null)return;this[_0x41f687(0x118)](this[_0x41f687(0x139)][_0x41f687(0x14c)],_0x462e17);}})),this[_0x120809(0x12d)](this[_0x120809(0x139)]['SheetPrintConfirmed'],()=>_0x5e286f[_0x120809(0x12b)](_0x5a0462=>{const _0x19a16f=_0x120809;if(_0x5a0462['id']===_0x2024b7[_0x19a16f(0x13d)]['id']){const _0x4ad9cb=_0x21999d[_0x19a16f(0x10a)](_0x2024b7[_0x19a16f(0x140)]);if(!this['getActiveUniverSheet']())return;const _0x3fe18d={'layoutConfig':_0x4ad9cb['layoutConfig'],'renderConfig':_0x4ad9cb[_0x19a16f(0x117)]};if(_0x3fe18d==null)return;this['fireEvent'](this[_0x19a16f(0x139)][_0x19a16f(0x13f)],_0x3fe18d);}})),this[_0x120809(0x12d)](this[_0x120809(0x139)]['SheetPrintCanceled'],()=>_0x5e286f['onCommandExecuted'](_0x54f489=>{const _0x273f64=_0x120809;if(_0x54f489['id']===_0x2024b7[_0x273f64(0x11f)]['id']){const _0x46d92a=_0x21999d['get'](_0x2024b7['ISheetPrintManagerService']);if(!this[_0x273f64(0x11b)]())return;const _0x4ba055={'layoutConfig':_0x46d92a[_0x273f64(0x14b)],'renderConfig':_0x46d92a[_0x273f64(0x117)]};if(_0x4ba055==null)return;this[_0x273f64(0x118)](this[_0x273f64(0x139)][_0x273f64(0x11d)],_0x4ba055);}}));}}_0x5303f3[_0x1793d4(0x133)][_0x1793d4(0x130)](_0x39782b);}));function _0x1991(_0x4256b9,_0x53a834){const _0x56b0e4=_0x56b0();return _0x1991=function(_0x199158,_0x508088){_0x199158=_0x199158-0x10a;let _0x1ac26b=_0x56b0e4[_0x199158];return _0x1ac26b;},_0x1991(_0x4256b9,_0x53a834);}function _0x56b0(){const _0x5d8c5d=['SheetScreenShotOperation','BeforeSheetPrintCanceled','Event','openPrintDialog','cancel','UniverCoreFacade','ConfirmSheetPrintOperation','314411XHPXEH','SheetPrintConfirmed','ISheetPrintManagerService','_injector','CanceledError','5PzvWqP','PaperType','8696KILMwb','hasPrintFacadePermission','syncExecuteCommand','PrintPaperMargin','FWorkbook','PrintPaperSize','layoutConfig','SheetPrintOpen','_worksheet','PrintFreeze','beforeCommandExecuted','1014135xQgKuo','_workbook','updateLayoutConfig','get','_range','closePrintDialog','ICommandService','PrintArea','object','BeforeSheetPrintOpen','@univerjs/core','663222kPZvMN','UniverSheetsFacade','2674xileTe','250bmgvtZ','PrintDirection','renderConfig','fireEvent','SheetPrintOpenOperation','FEventName','getActiveUniverSheet','_initialize','SheetPrintCanceled','910564WYvZit','CancelSheetPrintOperation','PrintAlign','@univerjs-pro/print','updatePrintRenderConfig','print','@univerjs/core/facade','getActiveSheet','@univerjs-pro/sheets-print','PrintHeaderFooter','PrintHeaderFooterSymbol','116973zgFJQs','BeforeSheetPrintConfirm','onCommandExecuted','@univerjs/sheets/facade','registerEventHandler','amd','1347000YhHRrc','extend','getRangeImage','PrintScale','FUniver','getScreenshot','UniverProSheetsPrint','executeCommand'];_0x56b0=function(){return _0x5d8c5d;};return _0x56b0();}