@univerjs-pro/sheets-print 0.12.4 → 0.13.0-insiders.20251216-1519cb7

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 (55) 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/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/types/common/const.d.ts +41 -41
  41. package/lib/types/controllers/const.d.ts +1 -1
  42. package/lib/umd/facade.js +1 -1
  43. package/lib/umd/index.js +1 -1
  44. package/lib/umd/locale/ca-ES.js +1 -1
  45. package/lib/umd/locale/en-US.js +1 -1
  46. package/lib/umd/locale/es-ES.js +1 -1
  47. package/lib/umd/locale/fa-IR.js +1 -1
  48. package/lib/umd/locale/fr-FR.js +1 -1
  49. package/lib/umd/locale/ja-JP.js +1 -1
  50. package/lib/umd/locale/ko-KR.js +1 -1
  51. package/lib/umd/locale/ru-RU.js +1 -1
  52. package/lib/umd/locale/vi-VN.js +1 -1
  53. package/lib/umd/locale/zh-CN.js +1 -1
  54. package/lib/umd/locale/zh-TW.js +1 -1
  55. package/package.json +16 -16
@@ -1 +1 @@
1
- const _0x3b601e=_0x3e17;(function(_0x52c2b4,_0x19faac){const _0x610a05=_0x3e17,_0x1b2ae2=_0x52c2b4();while(!![]){try{const _0x5dbdf7=-parseInt(_0x610a05(0xdf))/0x1*(parseInt(_0x610a05(0xd9))/0x2)+parseInt(_0x610a05(0xf0))/0x3+parseInt(_0x610a05(0xda))/0x4*(-parseInt(_0x610a05(0xe4))/0x5)+-parseInt(_0x610a05(0xfc))/0x6+-parseInt(_0x610a05(0x114))/0x7*(parseInt(_0x610a05(0xec))/0x8)+-parseInt(_0x610a05(0x105))/0x9+parseInt(_0x610a05(0x113))/0xa*(parseInt(_0x610a05(0xe5))/0xb);if(_0x5dbdf7===_0x19faac)break;else _0x1b2ae2['push'](_0x1b2ae2['shift']());}catch(_0x19de10){_0x1b2ae2['push'](_0x1b2ae2['shift']());}}}(_0x460f,0xd0032));const e={'print':{'header':{'total':_0x3b601e(0x10a),'pages':'頁','cancel':'取消','next':_0x3b601e(0xd5),'printing':_0x3b601e(0xd4)},'menu':'列印','title':'列印','grid':{'title':'列印版面配置','showGrid':_0x3b601e(0xe2),'showGridLabel':'顯示分頁線','closeAndHide':_0x3b601e(0xd3)},'screenshot':{'title':'複製為圖片','success':_0x3b601e(0xd1),'fail':_0x3b601e(0xdd)},'size':{'title':'紙張大小','letter':_0x3b601e(0x101),'tabloid':_0x3b601e(0xf6),'legal':_0x3b601e(0xd7),'statement':_0x3b601e(0xdc),'executive':'Executive\x20(7.25\x22\x20x\x2010.5\x22)','folio':_0x3b601e(0xf4),'a3':_0x3b601e(0xd6),'a4':_0x3b601e(0x10b),'a5':_0x3b601e(0x110),'b4':_0x3b601e(0xe7),'b5':_0x3b601e(0xed)},'margin':{'title':'邊距','normal':'標準','narrow':'窄','wide':'寬','custom':_0x3b601e(0xf1),'top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'列印','currentSheet':'目前工作表','workbook':_0x3b601e(0x10f),'currentSelection':_0x3b601e(0xef),'maxRowsEachPage':_0x3b601e(0xf5),'maxColumnsEachPage':_0x3b601e(0x10c),'limit':_0x3b601e(0xfd),'allSelection':'所有選取的儲存格'},'selection':{'title':'選取範圍','allWorkbook':'所有工作表','workbookUnit':_0x3b601e(0xee)},'scale':{'title':'縮放','normal':_0x3b601e(0x108),'fitWidth':_0x3b601e(0x112),'fitHeight':'調整至頁面高度','fitPage':_0x3b601e(0xe6),'custom':_0x3b601e(0xf2)},'orientation':{'title':_0x3b601e(0x10d),'landscape':'橫向','portrait':'直向'},'formatting':{'title':_0x3b601e(0xde),'skeleton':_0x3b601e(0xfa),'waterMark':'顯示浮水印'},'align':{'title':'對齊','horizontal':{'title':'水平對齊','middle':'置中','start':'靠左','end':'靠右'},'vertical':{'title':_0x3b601e(0x100),'start':'靠上','end':'靠下','middle':'置中'}},'headerFooter':{'title':_0x3b601e(0xe8),'page':'頁碼','workbook':_0x3b601e(0x103),'sheet':_0x3b601e(0xfb),'date':_0x3b601e(0xeb),'time':_0x3b601e(0x106),'customHeadFooter':_0x3b601e(0x102),'editCustomHeadFooter':_0x3b601e(0xdb),'header':'頁首','footer':'頁尾','left':'左側','right':'右側','center':'中間','dateFormat':_0x3b601e(0xf3),'dateA':_0x3b601e(0x104),'dateB':_0x3b601e(0x109),'dateC':'L','dateD':'MM/DD','timeA':'HH:mm:ss','timeB':_0x3b601e(0xfe),'timeC':'hh:mm:ss','timeD':_0x3b601e(0xe0),'display':{'page':'頁碼','title':_0x3b601e(0x103),'sheet':_0x3b601e(0xfb),'dateA':_0x3b601e(0xf8),'dateB':_0x3b601e(0x111),'dateC':_0x3b601e(0x10e),'dateD':_0x3b601e(0xf9),'dateE':'日期E','dateF':'日期F','timeA':'時間A','timeB':'時間B','timeC':_0x3b601e(0xea),'timeD':_0x3b601e(0xe9),'sheetPage':_0x3b601e(0xd2),'pageTotal':_0x3b601e(0xf7),'sheetPageTotal':_0x3b601e(0xff)},'placeholder':_0x3b601e(0xe1),'submit':'確定'},'freeze':{'title':'列與欄標題','desc':_0x3b601e(0x107),'row':_0x3b601e(0xe3),'column':'重複凍結的欄'},'limit':{'page':'免費版僅支援\x20{limit}\x20頁列印,進階功能請購買商業版!','waterMark':'Univer\x20免費版本,由\x20univer.ai\x20提供支援。','link':_0x3b601e(0xd8)}}};function _0x460f(){const _0x385178=['總計:','A4\x20(8.27\x22\x20x\x2011.69\x22)','每頁最大欄數','頁面方向','日期C','活頁簿','A5\x20(5.83\x22\x20x\x208.27\x22)','日期B','調整至頁面寬度','2030yuvWvJ','7OJaWpW','圖片已成功複製到剪貼簿!','工作表頁碼','關閉並隱藏分頁線','列印中,請勿關閉頁面','下一步','A3\x20(11.69\x22\x20x\x2016.54\x22)','Legal\x20(8.5\x22\x20x\x2014\x22)','https://univer.ai/pro','1954oqCOnP','6495228RDOUfH','編輯自訂頁首/頁尾','Statement\x20(5.5\x22\x20x\x208.5\x22)','圖片複製到剪貼簿失敗!','格式設定','641CvHjgM','hh:mm','點擊以新增文字','顯示分頁符號','重複凍結的列','5CqPRUS','382063RhYzpv','調整至頁面大小','B4\x20(9.84\x22\x20x\x2013.90\x22)','頁首和頁尾','時間D','時間C','目前日期','10668920YLfWTE','B5\x20(6.93\x22\x20x\x209.84\x22)','張工作表','已選取的儲存格','711528AnLtmb','自訂义頁邊距','自訂比例','日期格式','Folio\x20(8.5\x22\x20x\x2013\x22)','每頁最大列數','Tabloid\x20(11\x22\x20x\x2017\x22)','總頁數','日期A','日期D','顯示格線','工作表名稱','8273688tJkDTs','列與欄限制','HH:mm','工作表總頁數','垂直對齊','Letter\x20(8.5\x22\x20x\x2011\x22)','自訂頁首/頁尾','活頁簿標題','YYYY-MM-DD','13259970mFhEDv','目前時間','前往\x20檢視\x20>\x20凍結\x20以選擇要在所有頁面重複的列/欄','標準\x20(100%)','MM-DD'];_0x460f=function(){return _0x385178;};return _0x460f();}function _0x3e17(_0x95aba3,_0x5dc880){_0x95aba3=_0x95aba3-0xd1;const _0x460f71=_0x460f();let _0x3e17a0=_0x460f71[_0x95aba3];return _0x3e17a0;}export{e as default};
1
+ const _0x5142bc=_0x46d0;function _0x46d0(_0x448ecd,_0x3d5c90){_0x448ecd=_0x448ecd-0x115;const _0xac40b7=_0xac40();let _0x46d0e4=_0xac40b7[_0x448ecd];return _0x46d0e4;}function _0xac40(){const _0x4df1ce=['顯示分頁線','活頁簿','Univer\x20免費版本,由\x20univer.ai\x20提供支援。','日期格式','活頁簿標題','自訂頁首/頁尾','1366evdbwy','格式設定','https://univer.ai/pro','重複凍結的欄','顯示格線','調整至頁面高度','列印版面配置','顯示浮水印','hh:mm','816OTANzn','工作表名稱','工作表總頁數','目前工作表','頁面方向','日期C','1634008eQRTXD','列印中,請勿關閉頁面','4HnrYlY','所有選取的儲存格','Folio\x20(8.5\x22\x20x\x2013\x22)','調整至頁面寬度','每頁最大欄數','每頁最大列數','自訂比例','下一步','頁首和頁尾','標準\x20(100%)','紙張大小','垂直對齊','目前日期','關閉並隱藏分頁線','張工作表','A5\x20(5.83\x22\x20x\x208.27\x22)','選取範圍','重複凍結的列','Tabloid\x20(11\x22\x20x\x2017\x22)','21707pnhwuC','總頁數','1528295lrxLqC','自訂义頁邊距','所有工作表','時間D','調整至頁面大小','B5\x20(6.93\x22\x20x\x209.84\x22)','A4\x20(8.27\x22\x20x\x2011.69\x22)','日期A','HH:mm:ss','目前時間','MM/DD','圖片已成功複製到剪貼簿!','1128dXsZzo','圖片複製到剪貼簿失敗!','YYYY-MM-DD','時間A','Executive\x20(7.25\x22\x20x\x2010.5\x22)','HH:mm','水平對齊','列與欄標題','11967087WoNmas','B4\x20(9.84\x22\x20x\x2013.90\x22)','日期B','7771ZBRlwv','前往\x20檢視\x20>\x20凍結\x20以選擇要在所有頁面重複的列/欄','MM-DD','9BSzhHv','工作表頁碼','日期F','5952850AUsQPs'];_0xac40=function(){return _0x4df1ce;};return _0xac40();}(function(_0x3daa39,_0x3993a4){const _0x3e6ef1=_0x46d0,_0x14b3e8=_0x3daa39();while(!![]){try{const _0x26ba88=-parseInt(_0x3e6ef1(0x121))/0x1+parseInt(_0x3e6ef1(0x12e))/0x2*(parseInt(_0x3e6ef1(0x137))/0x3)+-parseInt(_0x3e6ef1(0x13f))/0x4*(-parseInt(_0x3e6ef1(0x154))/0x5)+parseInt(_0x3e6ef1(0x116))/0x6*(parseInt(_0x3e6ef1(0x152))/0x7)+-parseInt(_0x3e6ef1(0x13d))/0x8*(parseInt(_0x3e6ef1(0x124))/0x9)+parseInt(_0x3e6ef1(0x127))/0xa+-parseInt(_0x3e6ef1(0x11e))/0xb;if(_0x26ba88===_0x3993a4)break;else _0x14b3e8['push'](_0x14b3e8['shift']());}catch(_0xeb5d65){_0x14b3e8['push'](_0x14b3e8['shift']());}}}(_0xac40,0x5a469));const e={'print':{'header':{'total':'總計:','pages':'頁','cancel':'取消','next':_0x5142bc(0x146),'printing':_0x5142bc(0x13e)},'menu':'列印','title':'列印','grid':{'title':_0x5142bc(0x134),'showGrid':'顯示分頁符號','showGridLabel':_0x5142bc(0x128),'closeAndHide':_0x5142bc(0x14c)},'screenshot':{'title':'複製為圖片','success':_0x5142bc(0x115),'fail':_0x5142bc(0x117)},'size':{'title':_0x5142bc(0x149),'letter':'Letter\x20(8.5\x22\x20x\x2011\x22)','tabloid':_0x5142bc(0x151),'legal':'Legal\x20(8.5\x22\x20x\x2014\x22)','statement':'Statement\x20(5.5\x22\x20x\x208.5\x22)','executive':_0x5142bc(0x11a),'folio':_0x5142bc(0x141),'a3':'A3\x20(11.69\x22\x20x\x2016.54\x22)','a4':_0x5142bc(0x15a),'a5':_0x5142bc(0x14e),'b4':_0x5142bc(0x11f),'b5':_0x5142bc(0x159)},'margin':{'title':'邊距','normal':'標準','narrow':'窄','wide':'寬','custom':_0x5142bc(0x155),'top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'列印','currentSheet':_0x5142bc(0x13a),'workbook':_0x5142bc(0x129),'currentSelection':'已選取的儲存格','maxRowsEachPage':_0x5142bc(0x144),'maxColumnsEachPage':_0x5142bc(0x143),'limit':'列與欄限制','allSelection':_0x5142bc(0x140)},'selection':{'title':_0x5142bc(0x14f),'allWorkbook':_0x5142bc(0x156),'workbookUnit':_0x5142bc(0x14d)},'scale':{'title':'縮放','normal':_0x5142bc(0x148),'fitWidth':_0x5142bc(0x142),'fitHeight':_0x5142bc(0x133),'fitPage':_0x5142bc(0x158),'custom':_0x5142bc(0x145)},'orientation':{'title':_0x5142bc(0x13b),'landscape':'橫向','portrait':'直向'},'formatting':{'title':_0x5142bc(0x12f),'skeleton':_0x5142bc(0x132),'waterMark':_0x5142bc(0x135)},'align':{'title':'對齊','horizontal':{'title':_0x5142bc(0x11c),'middle':'置中','start':'靠左','end':'靠右'},'vertical':{'title':_0x5142bc(0x14a),'start':'靠上','end':'靠下','middle':'置中'}},'headerFooter':{'title':_0x5142bc(0x147),'page':'頁碼','workbook':'活頁簿標題','sheet':_0x5142bc(0x138),'date':_0x5142bc(0x14b),'time':_0x5142bc(0x15d),'customHeadFooter':_0x5142bc(0x12d),'editCustomHeadFooter':'編輯自訂頁首/頁尾','header':'頁首','footer':'頁尾','left':'左側','right':'右側','center':'中間','dateFormat':_0x5142bc(0x12b),'dateA':_0x5142bc(0x118),'dateB':_0x5142bc(0x123),'dateC':'L','dateD':_0x5142bc(0x15e),'timeA':_0x5142bc(0x15c),'timeB':_0x5142bc(0x11b),'timeC':'hh:mm:ss','timeD':_0x5142bc(0x136),'display':{'page':'頁碼','title':_0x5142bc(0x12c),'sheet':_0x5142bc(0x138),'dateA':_0x5142bc(0x15b),'dateB':_0x5142bc(0x120),'dateC':_0x5142bc(0x13c),'dateD':'日期D','dateE':'日期E','dateF':_0x5142bc(0x126),'timeA':_0x5142bc(0x119),'timeB':'時間B','timeC':'時間C','timeD':_0x5142bc(0x157),'sheetPage':_0x5142bc(0x125),'pageTotal':_0x5142bc(0x153),'sheetPageTotal':_0x5142bc(0x139)},'placeholder':'點擊以新增文字','submit':'確定'},'freeze':{'title':_0x5142bc(0x11d),'desc':_0x5142bc(0x122),'row':_0x5142bc(0x150),'column':_0x5142bc(0x131)},'limit':{'page':'免費版僅支援\x20{limit}\x20頁列印,進階功能請購買商業版!','waterMark':_0x5142bc(0x12a),'link':_0x5142bc(0x130)}}};export{e as default};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x12defb=_0x293b;(function(_0x554b20,_0x414a02){const _0xc53168=_0x293b,_0x418600=_0x554b20();while(!![]){try{const _0x2a1563=-parseInt(_0xc53168(0x18d))/0x1+-parseInt(_0xc53168(0x1a9))/0x2+parseInt(_0xc53168(0x197))/0x3+-parseInt(_0xc53168(0x18f))/0x4+-parseInt(_0xc53168(0x18a))/0x5+-parseInt(_0xc53168(0x196))/0x6+-parseInt(_0xc53168(0x186))/0x7*(-parseInt(_0xc53168(0x1a3))/0x8);if(_0x2a1563===_0x414a02)break;else _0x418600['push'](_0x418600['shift']());}catch(_0x5237f2){_0x418600['push'](_0x418600['shift']());}}}(_0x5bf2,0x41638));import{ISheetPrintManagerService as _0x838471,ConfirmSheetPrintOperation as _0x58e40f,SheetPrintOpenOperation as _0x3c4eae,CancelSheetPrintOperation as _0x383684,hasPrintFacadePermission as _0x2fe31b,SheetScreenShotOperation as _0x592f06,SheetPrintClientService as _0x28fd14,PrintArea as _0x452417,PrintFreeze as _0x2a4aa7,PrintHeaderFooter as _0x39d5c7,PrintHeaderFooterSymbol as _0x10d4c9}from'@univerjs-pro/sheets-print';import{ICommandService as _0x1afa1f,PaperType as _0x293063,CanceledError as _0x4bd77a}from'@univerjs/core';import{FWorkbook as _0x532a2f,FRange as _0x240be8}from'@univerjs/sheets/facade';import{FEventName as _0x18a8c5,FEnum as _0x3fc369,FUniver as _0x5dcc7f}from'@univerjs/core/facade';import{PrintAlign as _0x289f58,PrintPaperMargin as _0x3f2715,PrintScale as _0x5161f9,PrintDirection as _0x3a97a6}from'@univerjs-pro/print';class A extends _0x532a2f{['updatePrintConfig'](_0x49f097){const _0x4a5ceb=_0x293b;return this[_0x4a5ceb(0x18c)][_0x4a5ceb(0x18b)](_0x838471)['updateLayoutConfig'](_0x49f097),this;}['updatePrintRenderConfig'](_0x2d3efa){const _0x427466=_0x293b;return this['_injector']['get'](_0x838471)[_0x427466(0x193)](_0x2d3efa),this;}[_0x12defb(0x1ab)](){const _0x3f0cd4=_0x12defb;return this['_injector'][_0x3f0cd4(0x18b)](_0x1afa1f)['syncExecuteCommand'](_0x58e40f['id']);}[_0x12defb(0x184)](){const _0x47e441=_0x12defb;return this[_0x47e441(0x18c)][_0x47e441(0x18b)](_0x1afa1f)[_0x47e441(0x19e)](_0x3c4eae['id']);}['closePrintDialog'](){const _0x23f905=_0x12defb;return this['_injector'][_0x23f905(0x18b)](_0x1afa1f)['syncExecuteCommand'](_0x383684['id']);}async[_0x12defb(0x1a4)](){const _0x9df278=_0x12defb;return _0x2fe31b(this[_0x9df278(0x18c)])?this[_0x9df278(0x18c)][_0x9df278(0x18b)](_0x1afa1f)[_0x9df278(0x183)](_0x592f06['id']):!0x1;}}_0x532a2f[_0x12defb(0x1a2)](A);class B extends _0x240be8{[_0x12defb(0x199)](){const _0x4d9f7b=_0x12defb;return _0x2fe31b(this[_0x4d9f7b(0x18c)])?this[_0x4d9f7b(0x18c)]['get'](_0x28fd14)[_0x4d9f7b(0x1ac)](this[_0x4d9f7b(0x19b)][_0x4d9f7b(0x185)](),this[_0x4d9f7b(0x1a8)][_0x4d9f7b(0x1a0)](),this[_0x4d9f7b(0x191)]):!0x1;}}_0x240be8[_0x12defb(0x1a2)](B);class H{get['BeforeSheetPrintOpen'](){const _0x2563d8=_0x12defb;return _0x2563d8(0x192);}get[_0x12defb(0x182)](){return'BeforeSheetPrintConfirm';}get[_0x12defb(0x190)](){return'BeforeSheetPrintCanceled';}get[_0x12defb(0x181)](){const _0x1bbe3a=_0x12defb;return _0x1bbe3a(0x181);}get['SheetPrintConfirmed'](){const _0x510e94=_0x12defb;return _0x510e94(0x1a6);}get[_0x12defb(0x1a5)](){const _0x19a5dd=_0x12defb;return _0x19a5dd(0x1a5);}}_0x18a8c5[_0x12defb(0x1a2)](H);class U{get['PrintArea'](){return _0x452417;}get[_0x12defb(0x1a1)](){return _0x289f58;}get['PrintPaperSize'](){return _0x293063;}get['PrintPaperMargin'](){return _0x3f2715;}get[_0x12defb(0x189)](){return _0x5161f9;}get['PrintDirection'](){return _0x3a97a6;}get['PrintFreeze'](){return _0x2a4aa7;}get[_0x12defb(0x180)](){return _0x39d5c7;}get[_0x12defb(0x1aa)](){return _0x10d4c9;}}_0x3fc369[_0x12defb(0x1a2)](U);function _0x5bf2(){const _0x540aa8=['fireEvent','getScreenshot','registerEventHandler','_workbook','getActiveSheet','renderConfig','syncExecuteCommand','getActiveUniverSheet','getSheetId','PrintAlign','extend','8TDDHtv','saveScreenshotToClipboard','SheetPrintCanceled','SheetPrintConfirmed','beforeCommandExecuted','_worksheet','381896GflyJa','PrintHeaderFooterSymbol','print','getRangeImage','PrintHeaderFooter','SheetPrintOpen','BeforeSheetPrintConfirm','executeCommand','openPrintDialog','getUnitId','13663055xVgJaz','layoutConfig','Event','PrintScale','1800375gAffnG','get','_injector','290770rFXHfC','_initialize','2001320jtPYyD','BeforeSheetPrintCanceled','_range','BeforeSheetPrintOpen','updateRenderConfig','cancel','onCommandExecuted','2952888qOpmlB','450714eetwCI'];_0x5bf2=function(){return _0x540aa8;};return _0x5bf2();}class M extends _0x5dcc7f{[_0x12defb(0x18e)](_0x3440f7){const _0x2d24f6=_0x12defb,_0x567ebc=_0x3440f7[_0x2d24f6(0x18b)](_0x1afa1f);this['registerEventHandler'](this['Event'][_0x2d24f6(0x192)],()=>_0x567ebc['beforeCommandExecuted'](_0x59cbd5=>{const _0x3083e8=_0x2d24f6;if(_0x59cbd5['id']===_0x3c4eae['id']){const _0x2237c1=this[_0x3083e8(0x19f)]();if(!_0x2237c1)return;const _0x3c0a73={'workbook':_0x2237c1,'worksheet':_0x2237c1[_0x3083e8(0x19c)]()};if(_0x3c0a73==null)return;if(this[_0x3083e8(0x198)](this['Event'][_0x3083e8(0x192)],_0x3c0a73),_0x3c0a73[_0x3083e8(0x194)])throw new _0x4bd77a();}})),this[_0x2d24f6(0x19a)](this[_0x2d24f6(0x188)][_0x2d24f6(0x182)],()=>_0x567ebc[_0x2d24f6(0x1a7)](_0xf55f0e=>{const _0x480678=_0x2d24f6;if(_0xf55f0e['id']===_0x58e40f['id']){const _0xdcd455=_0x3440f7[_0x480678(0x18b)](_0x838471);if(!this[_0x480678(0x19f)]())return;const _0x39f0b1={'layoutConfig':_0xdcd455[_0x480678(0x187)],'renderConfig':_0xdcd455[_0x480678(0x19d)]};if(_0x39f0b1==null)return;if(this[_0x480678(0x198)](this[_0x480678(0x188)]['BeforeSheetPrintConfirm'],_0x39f0b1),_0x39f0b1[_0x480678(0x194)])throw new _0x4bd77a();}})),this[_0x2d24f6(0x19a)](this[_0x2d24f6(0x188)][_0x2d24f6(0x190)],()=>_0x567ebc[_0x2d24f6(0x1a7)](_0x58e265=>{const _0x501764=_0x2d24f6;if(_0x58e265['id']===_0x383684['id']){const _0x23f742=_0x3440f7[_0x501764(0x18b)](_0x838471);if(!this[_0x501764(0x19f)]())return;const _0x16c9d0={'layoutConfig':_0x23f742[_0x501764(0x187)],'renderConfig':_0x23f742[_0x501764(0x19d)]};if(_0x16c9d0==null)return;if(this[_0x501764(0x198)](this[_0x501764(0x188)][_0x501764(0x190)],_0x16c9d0),_0x16c9d0[_0x501764(0x194)])throw new _0x4bd77a();}})),this[_0x2d24f6(0x19a)](this['Event']['SheetPrintOpen'],()=>_0x567ebc['onCommandExecuted'](_0x34d77a=>{const _0x647659=_0x2d24f6;if(_0x34d77a['id']===_0x3c4eae['id']){const _0x1d1174=this['getActiveUniverSheet']();if(!_0x1d1174)return;const _0x3c8845={'workbook':_0x1d1174,'worksheet':_0x1d1174['getActiveSheet']()};if(_0x3c8845==null)return;this[_0x647659(0x198)](this[_0x647659(0x188)][_0x647659(0x181)],_0x3c8845);}})),this[_0x2d24f6(0x19a)](this[_0x2d24f6(0x188)][_0x2d24f6(0x1a6)],()=>_0x567ebc[_0x2d24f6(0x195)](_0x453016=>{const _0x47481d=_0x2d24f6;if(_0x453016['id']===_0x58e40f['id']){const _0x105c5e=_0x3440f7['get'](_0x838471);if(!this['getActiveUniverSheet']())return;const _0x4f5811={'layoutConfig':_0x105c5e[_0x47481d(0x187)],'renderConfig':_0x105c5e['renderConfig']};if(_0x4f5811==null)return;this['fireEvent'](this['Event'][_0x47481d(0x1a6)],_0x4f5811);}})),this[_0x2d24f6(0x19a)](this[_0x2d24f6(0x188)][_0x2d24f6(0x1a5)],()=>_0x567ebc[_0x2d24f6(0x195)](_0x43ac32=>{const _0xd2abfe=_0x2d24f6;if(_0x43ac32['id']===_0x383684['id']){const _0xb24712=_0x3440f7['get'](_0x838471);if(!this['getActiveUniverSheet']())return;const _0x3d2299={'layoutConfig':_0xb24712['layoutConfig'],'renderConfig':_0xb24712['renderConfig']};if(_0x3d2299==null)return;this[_0xd2abfe(0x198)](this[_0xd2abfe(0x188)][_0xd2abfe(0x1a5)],_0x3d2299);}}));}}function _0x293b(_0x33d282,_0x1ce6b3){_0x33d282=_0x33d282-0x180;const _0x5bf23f=_0x5bf2();let _0x293b47=_0x5bf23f[_0x33d282];return _0x293b47;}_0x5dcc7f[_0x12defb(0x1a2)](M);
1
+ const _0x375e71=_0x3a21;(function(_0x52f804,_0x4e18bb){const _0x430bda=_0x3a21,_0x9a5a76=_0x52f804();while(!![]){try{const _0x51701f=parseInt(_0x430bda(0xc2))/0x1+parseInt(_0x430bda(0x9e))/0x2+parseInt(_0x430bda(0xbf))/0x3+-parseInt(_0x430bda(0xca))/0x4+-parseInt(_0x430bda(0xc6))/0x5*(parseInt(_0x430bda(0xa0))/0x6)+parseInt(_0x430bda(0xbc))/0x7+-parseInt(_0x430bda(0xcb))/0x8;if(_0x51701f===_0x4e18bb)break;else _0x9a5a76['push'](_0x9a5a76['shift']());}catch(_0x3e0570){_0x9a5a76['push'](_0x9a5a76['shift']());}}}(_0x2c6b,0x3b44f));import{ISheetPrintManagerService as _0x266cf7,ConfirmSheetPrintOperation as _0x3c9b5c,SheetPrintOpenOperation as _0xd99d60,CancelSheetPrintOperation as _0x259a64,hasPrintFacadePermission as _0x5839ee,SheetScreenShotOperation as _0x182ce8,SheetPrintClientService as _0x2b46ec,PrintArea as _0x3067bd,PrintFreeze as _0x21d708,PrintHeaderFooter as _0x491264,PrintHeaderFooterSymbol as _0x49ac5c}from'@univerjs-pro/sheets-print';import{ICommandService as _0x2ab8ec,PaperType as _0x19d932,CanceledError as _0x29f5a7}from'@univerjs/core';import{FWorkbook as _0x33f5e3,FRange as _0xfb0684}from'@univerjs/sheets/facade';import{FEventName as _0x5d95be,FEnum as _0x381985,FUniver as _0x4c69c8}from'@univerjs/core/facade';import{PrintAlign as _0x3d663a,PrintPaperMargin as _0x5efee3,PrintScale as _0x388542,PrintDirection as _0x4db53c}from'@univerjs-pro/print';class A extends _0x33f5e3{[_0x375e71(0xaf)](_0x21b01c){const _0x4070e1=_0x375e71;return this[_0x4070e1(0xcc)][_0x4070e1(0xa6)](_0x266cf7)[_0x4070e1(0xb3)](_0x21b01c),this;}['updatePrintRenderConfig'](_0xd2ff2a){const _0x449395=_0x375e71;return this[_0x449395(0xcc)][_0x449395(0xa6)](_0x266cf7)['updateRenderConfig'](_0xd2ff2a),this;}[_0x375e71(0xb6)](){const _0x34906d=_0x375e71;return this['_injector'][_0x34906d(0xa6)](_0x2ab8ec)[_0x34906d(0xbe)](_0x3c9b5c['id']);}[_0x375e71(0xb5)](){const _0xb49bc2=_0x375e71;return this[_0xb49bc2(0xcc)][_0xb49bc2(0xa6)](_0x2ab8ec)[_0xb49bc2(0xbe)](_0xd99d60['id']);}[_0x375e71(0xab)](){const _0x1c7b06=_0x375e71;return this[_0x1c7b06(0xcc)]['get'](_0x2ab8ec)[_0x1c7b06(0xbe)](_0x259a64['id']);}async[_0x375e71(0xb2)](){const _0x4079a3=_0x375e71;return _0x5839ee(this[_0x4079a3(0xcc)])?this[_0x4079a3(0xcc)][_0x4079a3(0xa6)](_0x2ab8ec)['executeCommand'](_0x182ce8['id']):!0x1;}}function _0x3a21(_0x176c22,_0x18efc4){_0x176c22=_0x176c22-0x9e;const _0x2c6b10=_0x2c6b();let _0x3a2116=_0x2c6b10[_0x176c22];return _0x3a2116;}_0x33f5e3[_0x375e71(0xaa)](A);class B extends _0xfb0684{['getScreenshot'](){const _0x2234f6=_0x375e71;return _0x5839ee(this[_0x2234f6(0xcc)])?this[_0x2234f6(0xcc)][_0x2234f6(0xa6)](_0x2b46ec)[_0x2234f6(0xbb)](this[_0x2234f6(0xa1)][_0x2234f6(0xc7)](),this[_0x2234f6(0xc5)][_0x2234f6(0xc9)](),this[_0x2234f6(0xc4)]):!0x1;}}_0xfb0684['extend'](B);class H{get['BeforeSheetPrintOpen'](){const _0x237b8f=_0x375e71;return _0x237b8f(0xb9);}get['BeforeSheetPrintConfirm'](){return'BeforeSheetPrintConfirm';}get[_0x375e71(0xad)](){const _0x24d9f3=_0x375e71;return _0x24d9f3(0xad);}get[_0x375e71(0xc8)](){const _0x40f87f=_0x375e71;return _0x40f87f(0xc8);}get[_0x375e71(0xa3)](){return'SheetPrintConfirmed';}get[_0x375e71(0xae)](){return'SheetPrintCanceled';}}_0x5d95be[_0x375e71(0xaa)](H);function _0x2c6b(){const _0x16ae31=['_worksheet','139630tvYhfq','getUnitId','SheetPrintOpen','getSheetId','777928ZjTxRU','7872736eCWNOn','_injector','920352uMNRxT','fireEvent','12BnFley','_workbook','registerEventHandler','SheetPrintConfirmed','getActiveUniverSheet','cancel','get','layoutConfig','PrintFreeze','PrintPaperSize','extend','closePrintDialog','renderConfig','BeforeSheetPrintCanceled','SheetPrintCanceled','updatePrintConfig','PrintAlign','Event','saveScreenshotToClipboard','updateLayoutConfig','beforeCommandExecuted','openPrintDialog','print','onCommandExecuted','BeforeSheetPrintConfirm','BeforeSheetPrintOpen','PrintDirection','getRangeImage','3162404vRXwUh','PrintPaperMargin','syncExecuteCommand','1263471LCmKub','_initialize','PrintScale','144088xqJbgY','getActiveSheet','_range'];_0x2c6b=function(){return _0x16ae31;};return _0x2c6b();}class U{get['PrintArea'](){return _0x3067bd;}get[_0x375e71(0xb0)](){return _0x3d663a;}get[_0x375e71(0xa9)](){return _0x19d932;}get[_0x375e71(0xbd)](){return _0x5efee3;}get[_0x375e71(0xc1)](){return _0x388542;}get[_0x375e71(0xba)](){return _0x4db53c;}get[_0x375e71(0xa8)](){return _0x21d708;}get['PrintHeaderFooter'](){return _0x491264;}get['PrintHeaderFooterSymbol'](){return _0x49ac5c;}}_0x381985[_0x375e71(0xaa)](U);class M extends _0x4c69c8{[_0x375e71(0xc0)](_0x51823f){const _0x340591=_0x375e71,_0x162f28=_0x51823f[_0x340591(0xa6)](_0x2ab8ec);this[_0x340591(0xa2)](this['Event']['BeforeSheetPrintOpen'],()=>_0x162f28[_0x340591(0xb4)](_0x5e3403=>{const _0x5b4c0f=_0x340591;if(_0x5e3403['id']===_0xd99d60['id']){const _0x322f14=this[_0x5b4c0f(0xa4)]();if(!_0x322f14)return;const _0x925dc2={'workbook':_0x322f14,'worksheet':_0x322f14[_0x5b4c0f(0xc3)]()};if(_0x925dc2==null)return;if(this['fireEvent'](this[_0x5b4c0f(0xb1)][_0x5b4c0f(0xb9)],_0x925dc2),_0x925dc2[_0x5b4c0f(0xa5)])throw new _0x29f5a7();}})),this['registerEventHandler'](this['Event'][_0x340591(0xb8)],()=>_0x162f28['beforeCommandExecuted'](_0x19064e=>{const _0x26a812=_0x340591;if(_0x19064e['id']===_0x3c9b5c['id']){const _0x34f318=_0x51823f['get'](_0x266cf7);if(!this[_0x26a812(0xa4)]())return;const _0x570182={'layoutConfig':_0x34f318['layoutConfig'],'renderConfig':_0x34f318['renderConfig']};if(_0x570182==null)return;if(this[_0x26a812(0x9f)](this[_0x26a812(0xb1)]['BeforeSheetPrintConfirm'],_0x570182),_0x570182[_0x26a812(0xa5)])throw new _0x29f5a7();}})),this[_0x340591(0xa2)](this['Event'][_0x340591(0xad)],()=>_0x162f28['beforeCommandExecuted'](_0x8472fe=>{const _0x47898d=_0x340591;if(_0x8472fe['id']===_0x259a64['id']){const _0x4ae654=_0x51823f['get'](_0x266cf7);if(!this[_0x47898d(0xa4)]())return;const _0x452f42={'layoutConfig':_0x4ae654[_0x47898d(0xa7)],'renderConfig':_0x4ae654[_0x47898d(0xac)]};if(_0x452f42==null)return;if(this['fireEvent'](this[_0x47898d(0xb1)]['BeforeSheetPrintCanceled'],_0x452f42),_0x452f42[_0x47898d(0xa5)])throw new _0x29f5a7();}})),this[_0x340591(0xa2)](this['Event'][_0x340591(0xc8)],()=>_0x162f28[_0x340591(0xb7)](_0x346a84=>{const _0x32136b=_0x340591;if(_0x346a84['id']===_0xd99d60['id']){const _0xee75c=this['getActiveUniverSheet']();if(!_0xee75c)return;const _0x3e5949={'workbook':_0xee75c,'worksheet':_0xee75c[_0x32136b(0xc3)]()};if(_0x3e5949==null)return;this[_0x32136b(0x9f)](this[_0x32136b(0xb1)][_0x32136b(0xc8)],_0x3e5949);}})),this[_0x340591(0xa2)](this['Event']['SheetPrintConfirmed'],()=>_0x162f28[_0x340591(0xb7)](_0x231de4=>{const _0x58171b=_0x340591;if(_0x231de4['id']===_0x3c9b5c['id']){const _0xc05057=_0x51823f[_0x58171b(0xa6)](_0x266cf7);if(!this[_0x58171b(0xa4)]())return;const _0x10490f={'layoutConfig':_0xc05057[_0x58171b(0xa7)],'renderConfig':_0xc05057['renderConfig']};if(_0x10490f==null)return;this['fireEvent'](this[_0x58171b(0xb1)][_0x58171b(0xa3)],_0x10490f);}})),this[_0x340591(0xa2)](this['Event'][_0x340591(0xae)],()=>_0x162f28[_0x340591(0xb7)](_0x31b0b1=>{const _0x5c955c=_0x340591;if(_0x31b0b1['id']===_0x259a64['id']){const _0x406664=_0x51823f[_0x5c955c(0xa6)](_0x266cf7);if(!this[_0x5c955c(0xa4)]())return;const _0x1981f8={'layoutConfig':_0x406664[_0x5c955c(0xa7)],'renderConfig':_0x406664[_0x5c955c(0xac)]};if(_0x1981f8==null)return;this[_0x5c955c(0x9f)](this[_0x5c955c(0xb1)]['SheetPrintCanceled'],_0x1981f8);}}));}}_0x4c69c8[_0x375e71(0xaa)](M);