@univerjs-pro/sheets-print 0.13.0-insiders.20251220-0a5ea4d → 0.14.0

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 +42 -42
  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 +15 -15
@@ -1 +1 @@
1
- const _0x4c2c6c=_0x8f3b;function _0x17dd(){const _0x1d756b=['HH:mm:ss','B4\x20(9.84\x22\x20x\x2013.90\x22)','格式設定','時間D','日期B','2317HpQWNF','日期F','顯示分頁符號','日期C','hh:mm','活頁簿標題','17688fmzhiM','調整至頁面高度','5yRwbUb','已選取的儲存格','重複凍結的欄','95418XzoJKr','A5\x20(5.83\x22\x20x\x208.27\x22)','頁首和頁尾','1289960UaTYRH','927296RKDWaL','總頁數','日期格式','調整至頁面寬度','垂直對齊','日期D','列與欄限制','每頁最大列數','自訂义頁邊距','所有工作表','目前工作表','MM/DD','自訂比例','圖片已成功複製到剪貼簿!','活頁簿','MM-DD','目前時間','列與欄標題','自訂頁首/頁尾','下一步','A3\x20(11.69\x22\x20x\x2016.54\x22)','hh:mm:ss','免費版僅支援\x20{limit}\x20頁列印,進階功能請購買商業版!','每頁最大欄數','3922677KInzcK','A4\x20(8.27\x22\x20x\x2011.69\x22)','顯示浮水印','24595128ZHMrhM','總計:','張工作表','前往\x20檢視\x20>\x20凍結\x20以選擇要在所有頁面重複的列/欄','Letter\x20(8.5\x22\x20x\x2011\x22)','重複凍結的列','關閉並隱藏分頁線','目前日期','複製為圖片','4768984zOUWZq','顯示分頁線','Univer\x20免費版本,由\x20univer.ai\x20提供支援。','紙張大小','列印版面配置','標準\x20(100%)','列印中,請勿關閉頁面','時間C','Folio\x20(8.5\x22\x20x\x2013\x22)','圖片複製到剪貼簿失敗!'];_0x17dd=function(){return _0x1d756b;};return _0x17dd();}(function(_0x441907,_0x16920e){const _0x1cb6f5=_0x8f3b,_0x2bfed0=_0x441907();while(!![]){try{const _0x5f04eb=parseInt(_0x1cb6f5(0xee))/0x1+parseInt(_0x1cb6f5(0xeb))/0x2+-parseInt(_0x1cb6f5(0x107))/0x3+-parseInt(_0x1cb6f5(0xef))/0x4*(parseInt(_0x1cb6f5(0xe8))/0x5)+-parseInt(_0x1cb6f5(0xe6))/0x6*(parseInt(_0x1cb6f5(0xe0))/0x7)+-parseInt(_0x1cb6f5(0x113))/0x8+parseInt(_0x1cb6f5(0x10a))/0x9;if(_0x5f04eb===_0x16920e)break;else _0x2bfed0['push'](_0x2bfed0['shift']());}catch(_0xffe444){_0x2bfed0['push'](_0x2bfed0['shift']());}}}(_0x17dd,0xea2bf));const e={'print':{'header':{'total':_0x4c2c6c(0x10b),'pages':'頁','cancel':'取消','next':_0x4c2c6c(0x102),'printing':_0x4c2c6c(0x119)},'menu':'列印','title':'列印','grid':{'title':_0x4c2c6c(0x117),'showGrid':_0x4c2c6c(0xe2),'showGridLabel':_0x4c2c6c(0x114),'closeAndHide':_0x4c2c6c(0x110)},'screenshot':{'title':_0x4c2c6c(0x112),'success':_0x4c2c6c(0xfc),'fail':_0x4c2c6c(0x11c)},'size':{'title':_0x4c2c6c(0x116),'letter':_0x4c2c6c(0x10e),'tabloid':'Tabloid\x20(11\x22\x20x\x2017\x22)','legal':'Legal\x20(8.5\x22\x20x\x2014\x22)','statement':'Statement\x20(5.5\x22\x20x\x208.5\x22)','executive':'Executive\x20(7.25\x22\x20x\x2010.5\x22)','folio':_0x4c2c6c(0x11b),'a3':_0x4c2c6c(0x103),'a4':_0x4c2c6c(0x108),'a5':_0x4c2c6c(0xec),'b4':_0x4c2c6c(0xdc),'b5':'B5\x20(6.93\x22\x20x\x209.84\x22)'},'margin':{'title':'邊距','normal':'標準','narrow':'窄','wide':'寬','custom':_0x4c2c6c(0xf7),'top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'列印','currentSheet':_0x4c2c6c(0xf9),'workbook':_0x4c2c6c(0xfd),'currentSelection':_0x4c2c6c(0xe9),'maxRowsEachPage':_0x4c2c6c(0xf6),'maxColumnsEachPage':_0x4c2c6c(0x106),'limit':_0x4c2c6c(0xf5),'allSelection':'所有選取的儲存格'},'selection':{'title':'選取範圍','allWorkbook':_0x4c2c6c(0xf8),'workbookUnit':_0x4c2c6c(0x10c)},'scale':{'title':'縮放','normal':_0x4c2c6c(0x118),'fitWidth':_0x4c2c6c(0xf2),'fitHeight':_0x4c2c6c(0xe7),'fitPage':'調整至頁面大小','custom':_0x4c2c6c(0xfb)},'orientation':{'title':'頁面方向','landscape':'橫向','portrait':'直向'},'formatting':{'title':_0x4c2c6c(0xdd),'skeleton':'顯示格線','waterMark':_0x4c2c6c(0x109)},'align':{'title':'對齊','horizontal':{'title':'水平對齊','middle':'置中','start':'靠左','end':'靠右'},'vertical':{'title':_0x4c2c6c(0xf3),'start':'靠上','end':'靠下','middle':'置中'}},'headerFooter':{'title':_0x4c2c6c(0xed),'page':'頁碼','workbook':_0x4c2c6c(0xe5),'sheet':'工作表名稱','date':_0x4c2c6c(0x111),'time':_0x4c2c6c(0xff),'customHeadFooter':_0x4c2c6c(0x101),'editCustomHeadFooter':'編輯自訂頁首/頁尾','header':'頁首','footer':'頁尾','left':'左側','right':'右側','center':'中間','dateFormat':_0x4c2c6c(0xf1),'dateA':'YYYY-MM-DD','dateB':_0x4c2c6c(0xfe),'dateC':'L','dateD':_0x4c2c6c(0xfa),'timeA':_0x4c2c6c(0xdb),'timeB':'HH:mm','timeC':_0x4c2c6c(0x104),'timeD':_0x4c2c6c(0xe4),'display':{'page':'頁碼','title':_0x4c2c6c(0xe5),'sheet':'工作表名稱','dateA':'日期A','dateB':_0x4c2c6c(0xdf),'dateC':_0x4c2c6c(0xe3),'dateD':_0x4c2c6c(0xf4),'dateE':'日期E','dateF':_0x4c2c6c(0xe1),'timeA':'時間A','timeB':'時間B','timeC':_0x4c2c6c(0x11a),'timeD':_0x4c2c6c(0xde),'sheetPage':'工作表頁碼','pageTotal':_0x4c2c6c(0xf0),'sheetPageTotal':'工作表總頁數'},'placeholder':'點擊以新增文字','submit':'確定'},'freeze':{'title':_0x4c2c6c(0x100),'desc':_0x4c2c6c(0x10d),'row':_0x4c2c6c(0x10f),'column':_0x4c2c6c(0xea)},'limit':{'page':_0x4c2c6c(0x105),'waterMark':_0x4c2c6c(0x115),'link':'https://univer.ai/pro'}}};function _0x8f3b(_0xb2c896,_0x2665b0){_0xb2c896=_0xb2c896-0xdb;const _0x17ddf7=_0x17dd();let _0x8f3b3a=_0x17ddf7[_0xb2c896];return _0x8f3b3a;}export{e as default};
1
+ const _0x29d1f9=_0x100e;function _0x3d70(){const _0x5372bd=['B4\x20(9.84\x22\x20x\x2013.90\x22)','總計:','頁首和頁尾','工作表名稱','Legal\x20(8.5\x22\x20x\x2014\x22)','目前日期','317190JGsWHH','1846072GfYRfN','工作表頁碼','時間C','重複凍結的列','1143365hSWgnD','工作表總頁數','日期E','活頁簿標題','日期C','已選取的儲存格','A3\x20(11.69\x22\x20x\x2016.54\x22)','顯示浮水印','前往\x20檢視\x20>\x20凍結\x20以選擇要在所有頁面重複的列/欄','調整至頁面高度','日期F','圖片複製到剪貼簿失敗!','4543YFgtCl','5406984mCYQBD','免費版僅支援\x20{limit}\x20頁列印,進階功能請購買商業版!','垂直對齊','標準\x20(100%)','Univer\x20免費版本,由\x20univer.ai\x20提供支援。','8gHTujs','自訂比例','所有工作表','目前工作表','總頁數','3wKyImE','MM/DD','時間B','調整至頁面寬度','A4\x20(8.27\x22\x20x\x2011.69\x22)','HH:mm:ss','A5\x20(5.83\x22\x20x\x208.27\x22)','每頁最大欄數','列印版面配置','B5\x20(6.93\x22\x20x\x209.84\x22)','7FeZVKe','調整至頁面大小','Executive\x20(7.25\x22\x20x\x2010.5\x22)','自訂頁首/頁尾','複製為圖片','HH:mm','YYYY-MM-DD','hh:mm:ss','Letter\x20(8.5\x22\x20x\x2011\x22)','Folio\x20(8.5\x22\x20x\x2013\x22)','4104720hvZSzP','水平對齊','所有選取的儲存格','活頁簿','編輯自訂頁首/頁尾','6824520bZediK','關閉並隱藏分頁線','張工作表','每頁最大列數','顯示分頁線','Tabloid\x20(11\x22\x20x\x2017\x22)','MM-DD','日期B','重複凍結的欄','選取範圍','格式設定','列與欄標題','列印中,請勿關閉頁面','Statement\x20(5.5\x22\x20x\x208.5\x22)'];_0x3d70=function(){return _0x5372bd;};return _0x3d70();}(function(_0x448979,_0x177ea9){const _0x4daf43=_0x100e,_0x4e5212=_0x448979();while(!![]){try{const _0x298801=parseInt(_0x4daf43(0xb2))/0x1+-parseInt(_0x4daf43(0xa2))/0x2+parseInt(_0x4daf43(0xbd))/0x3*(parseInt(_0x4daf43(0xb3))/0x4)+parseInt(_0x4daf43(0xa6))/0x5+parseInt(_0x4daf43(0xa1))/0x6*(-parseInt(_0x4daf43(0x7e))/0x7)+parseInt(_0x4daf43(0xb8))/0x8*(-parseInt(_0x4daf43(0x88))/0x9)+parseInt(_0x4daf43(0x8d))/0xa;if(_0x298801===_0x177ea9)break;else _0x4e5212['push'](_0x4e5212['shift']());}catch(_0x5b249b){_0x4e5212['push'](_0x4e5212['shift']());}}}(_0x3d70,0xcbf69));const e={'print':{'header':{'total':_0x29d1f9(0x9c),'pages':'頁','cancel':'取消','next':'下一步','printing':_0x29d1f9(0x99)},'menu':'列印','title':'列印','grid':{'title':_0x29d1f9(0x7c),'showGrid':'顯示分頁符號','showGridLabel':_0x29d1f9(0x91),'closeAndHide':_0x29d1f9(0x8e)},'screenshot':{'title':_0x29d1f9(0x82),'success':'圖片已成功複製到剪貼簿!','fail':_0x29d1f9(0xb1)},'size':{'title':'紙張大小','letter':_0x29d1f9(0x86),'tabloid':_0x29d1f9(0x92),'legal':_0x29d1f9(0x9f),'statement':_0x29d1f9(0x9a),'executive':_0x29d1f9(0x80),'folio':_0x29d1f9(0x87),'a3':_0x29d1f9(0xac),'a4':_0x29d1f9(0x78),'a5':_0x29d1f9(0x7a),'b4':_0x29d1f9(0x9b),'b5':_0x29d1f9(0x7d)},'margin':{'title':'邊距','normal':'標準','narrow':'窄','wide':'寬','custom':'自訂义頁邊距','top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'列印','currentSheet':_0x29d1f9(0xbb),'workbook':_0x29d1f9(0x8b),'currentSelection':_0x29d1f9(0xab),'maxRowsEachPage':_0x29d1f9(0x90),'maxColumnsEachPage':_0x29d1f9(0x7b),'limit':'列與欄限制','allSelection':_0x29d1f9(0x8a)},'selection':{'title':_0x29d1f9(0x96),'allWorkbook':_0x29d1f9(0xba),'workbookUnit':_0x29d1f9(0x8f)},'scale':{'title':'縮放','normal':_0x29d1f9(0xb6),'fitWidth':_0x29d1f9(0x77),'fitHeight':_0x29d1f9(0xaf),'fitPage':_0x29d1f9(0x7f),'custom':_0x29d1f9(0xb9)},'orientation':{'title':'頁面方向','landscape':'橫向','portrait':'直向'},'formatting':{'title':_0x29d1f9(0x97),'skeleton':'顯示格線','waterMark':_0x29d1f9(0xad)},'align':{'title':'對齊','horizontal':{'title':_0x29d1f9(0x89),'middle':'置中','start':'靠左','end':'靠右'},'vertical':{'title':_0x29d1f9(0xb5),'start':'靠上','end':'靠下','middle':'置中'}},'headerFooter':{'title':_0x29d1f9(0x9d),'page':'頁碼','workbook':_0x29d1f9(0xa9),'sheet':'工作表名稱','date':_0x29d1f9(0xa0),'time':'目前時間','customHeadFooter':_0x29d1f9(0x81),'editCustomHeadFooter':_0x29d1f9(0x8c),'header':'頁首','footer':'頁尾','left':'左側','right':'右側','center':'中間','dateFormat':'日期格式','dateA':_0x29d1f9(0x84),'dateB':_0x29d1f9(0x93),'dateC':'L','dateD':_0x29d1f9(0xbe),'timeA':_0x29d1f9(0x79),'timeB':_0x29d1f9(0x83),'timeC':_0x29d1f9(0x85),'timeD':'hh:mm','display':{'page':'頁碼','title':_0x29d1f9(0xa9),'sheet':_0x29d1f9(0x9e),'dateA':'日期A','dateB':_0x29d1f9(0x94),'dateC':_0x29d1f9(0xaa),'dateD':'日期D','dateE':_0x29d1f9(0xa8),'dateF':_0x29d1f9(0xb0),'timeA':'時間A','timeB':_0x29d1f9(0xbf),'timeC':_0x29d1f9(0xa4),'timeD':'時間D','sheetPage':_0x29d1f9(0xa3),'pageTotal':_0x29d1f9(0xbc),'sheetPageTotal':_0x29d1f9(0xa7)},'placeholder':'點擊以新增文字','submit':'確定'},'freeze':{'title':_0x29d1f9(0x98),'desc':_0x29d1f9(0xae),'row':_0x29d1f9(0xa5),'column':_0x29d1f9(0x95)},'limit':{'page':_0x29d1f9(0xb4),'waterMark':_0x29d1f9(0xb7),'link':'https://univer.ai/pro'}}};function _0x100e(_0x21639b,_0x8f5c93){_0x21639b=_0x21639b-0x77;const _0x3d707f=_0x3d70();let _0x100e6d=_0x3d707f[_0x21639b];return _0x100e6d;}export{e as default};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x5c0e9d=_0x41fb;(function(_0x3fe7dd,_0x1735f5){const _0x1caeba=_0x41fb,_0xc82b7=_0x3fe7dd();while(!![]){try{const _0x1509ed=parseInt(_0x1caeba(0x218))/0x1*(-parseInt(_0x1caeba(0x1ef))/0x2)+-parseInt(_0x1caeba(0x20e))/0x3*(-parseInt(_0x1caeba(0x1fd))/0x4)+parseInt(_0x1caeba(0x216))/0x5+parseInt(_0x1caeba(0x1fc))/0x6+-parseInt(_0x1caeba(0x1f1))/0x7*(-parseInt(_0x1caeba(0x20a))/0x8)+-parseInt(_0x1caeba(0x1ee))/0x9+parseInt(_0x1caeba(0x201))/0xa*(-parseInt(_0x1caeba(0x1fa))/0xb);if(_0x1509ed===_0x1735f5)break;else _0xc82b7['push'](_0xc82b7['shift']());}catch(_0x851c64){_0xc82b7['push'](_0xc82b7['shift']());}}}(_0x1297,0x221d1));import{ISheetPrintManagerService as _0x402c36,ConfirmSheetPrintOperation as _0x4c96b5,SheetPrintOpenOperation as _0x3b37cb,CancelSheetPrintOperation as _0x3c762a,hasPrintFacadePermission as _0x4c96d1,SheetScreenShotOperation as _0x52481c,SheetPrintClientService as _0x5ed8d9,PrintArea as _0x1c81b1,PrintFreeze as _0xa06ab7,PrintHeaderFooter as _0x3c464a,PrintHeaderFooterSymbol as _0x13410f}from'@univerjs-pro/sheets-print';function _0x1297(){const _0x517ea2=['BeforeSheetPrintCanceled','1934343bbrtnA','4qfquBy','PrintHeaderFooterSymbol','35iuWPJf','updateRenderConfig','_initialize','SheetPrintConfirmed','SheetPrintCanceled','registerEventHandler','PrintScale','_injector','getActiveUniverSheet','77tiWwgc','PrintPaperSize','1481322KwpWfF','16eGjXQV','extend','print','BeforeSheetPrintConfirm','43270UGcbjv','onCommandExecuted','cancel','Event','closePrintDialog','PrintHeaderFooter','getRangeImage','PrintFreeze','get','285896mesyav','executeCommand','SheetPrintOpen','PrintAlign','82659tQFgBv','fireEvent','syncExecuteCommand','PrintPaperMargin','layoutConfig','beforeCommandExecuted','updatePrintConfig','renderConfig','457035zJQmCk','saveScreenshotToClipboard','121123RHjJgB','getUnitId','_range','openPrintDialog','BeforeSheetPrintOpen','getActiveSheet','updateLayoutConfig'];_0x1297=function(){return _0x517ea2;};return _0x1297();}import{ICommandService as _0x402931,PaperType as _0xb3cc6c,CanceledError as _0x27caa4}from'@univerjs/core';import{FWorkbook as _0x15f9bc,FRange as _0xd2bcba}from'@univerjs/sheets/facade';import{FEventName as _0x13d6fb,FEnum as _0x2b4c6d,FUniver as _0x357558}from'@univerjs/core/facade';import{PrintAlign as _0x478b8e,PrintPaperMargin as _0x4568db,PrintScale as _0x26241f,PrintDirection as _0x43588a}from'@univerjs-pro/print';class A extends _0x15f9bc{[_0x5c0e9d(0x214)](_0x21d247){const _0x264e2f=_0x5c0e9d;return this[_0x264e2f(0x1f8)][_0x264e2f(0x209)](_0x402c36)[_0x264e2f(0x1ec)](_0x21d247),this;}['updatePrintRenderConfig'](_0x2682e8){const _0x877a66=_0x5c0e9d;return this[_0x877a66(0x1f8)][_0x877a66(0x209)](_0x402c36)[_0x877a66(0x1f2)](_0x2682e8),this;}[_0x5c0e9d(0x1ff)](){const _0xc5e5f8=_0x5c0e9d;return this[_0xc5e5f8(0x1f8)][_0xc5e5f8(0x209)](_0x402931)['syncExecuteCommand'](_0x4c96b5['id']);}[_0x5c0e9d(0x1e9)](){const _0x2d138f=_0x5c0e9d;return this[_0x2d138f(0x1f8)]['get'](_0x402931)[_0x2d138f(0x210)](_0x3b37cb['id']);}[_0x5c0e9d(0x205)](){const _0x34d7ac=_0x5c0e9d;return this[_0x34d7ac(0x1f8)][_0x34d7ac(0x209)](_0x402931)[_0x34d7ac(0x210)](_0x3c762a['id']);}async[_0x5c0e9d(0x217)](){const _0x368755=_0x5c0e9d;return _0x4c96d1(this['_injector'])?this[_0x368755(0x1f8)][_0x368755(0x209)](_0x402931)[_0x368755(0x20b)](_0x52481c['id']):!0x1;}}_0x15f9bc['extend'](A);function _0x41fb(_0xfa7899,_0x358581){_0xfa7899=_0xfa7899-0x1e8;const _0x1297bf=_0x1297();let _0x41fb7d=_0x1297bf[_0xfa7899];return _0x41fb7d;}class B extends _0xd2bcba{['getScreenshot'](){const _0x1ae7df=_0x5c0e9d;return _0x4c96d1(this[_0x1ae7df(0x1f8)])?this[_0x1ae7df(0x1f8)][_0x1ae7df(0x209)](_0x5ed8d9)[_0x1ae7df(0x207)](this['_workbook'][_0x1ae7df(0x219)](),this['_worksheet']['getSheetId'](),this[_0x1ae7df(0x1e8)]):!0x1;}}_0xd2bcba[_0x5c0e9d(0x1fe)](B);class H{get['BeforeSheetPrintOpen'](){const _0x133dbd=_0x5c0e9d;return _0x133dbd(0x1ea);}get[_0x5c0e9d(0x200)](){return'BeforeSheetPrintConfirm';}get['BeforeSheetPrintCanceled'](){const _0x5e3763=_0x5c0e9d;return _0x5e3763(0x1ed);}get[_0x5c0e9d(0x20c)](){const _0x30abea=_0x5c0e9d;return _0x30abea(0x20c);}get['SheetPrintConfirmed'](){const _0x52d202=_0x5c0e9d;return _0x52d202(0x1f4);}get['SheetPrintCanceled'](){const _0x43d1c6=_0x5c0e9d;return _0x43d1c6(0x1f5);}}_0x13d6fb[_0x5c0e9d(0x1fe)](H);class U{get['PrintArea'](){return _0x1c81b1;}get[_0x5c0e9d(0x20d)](){return _0x478b8e;}get[_0x5c0e9d(0x1fb)](){return _0xb3cc6c;}get[_0x5c0e9d(0x211)](){return _0x4568db;}get[_0x5c0e9d(0x1f7)](){return _0x26241f;}get['PrintDirection'](){return _0x43588a;}get[_0x5c0e9d(0x208)](){return _0xa06ab7;}get[_0x5c0e9d(0x206)](){return _0x3c464a;}get[_0x5c0e9d(0x1f0)](){return _0x13410f;}}_0x2b4c6d[_0x5c0e9d(0x1fe)](U);class M extends _0x357558{[_0x5c0e9d(0x1f3)](_0x42fe4c){const _0x9b425f=_0x5c0e9d,_0x11e24b=_0x42fe4c[_0x9b425f(0x209)](_0x402931);this[_0x9b425f(0x1f6)](this[_0x9b425f(0x204)][_0x9b425f(0x1ea)],()=>_0x11e24b['beforeCommandExecuted'](_0x2d099f=>{const _0x2665ca=_0x9b425f;if(_0x2d099f['id']===_0x3b37cb['id']){const _0x5ace0e=this['getActiveUniverSheet']();if(!_0x5ace0e)return;const _0x594a55={'workbook':_0x5ace0e,'worksheet':_0x5ace0e[_0x2665ca(0x1eb)]()};if(_0x594a55==null)return;if(this[_0x2665ca(0x20f)](this[_0x2665ca(0x204)]['BeforeSheetPrintOpen'],_0x594a55),_0x594a55[_0x2665ca(0x203)])throw new _0x27caa4();}})),this[_0x9b425f(0x1f6)](this['Event'][_0x9b425f(0x200)],()=>_0x11e24b[_0x9b425f(0x213)](_0x49666b=>{const _0x500e90=_0x9b425f;if(_0x49666b['id']===_0x4c96b5['id']){const _0x2e72dc=_0x42fe4c[_0x500e90(0x209)](_0x402c36);if(!this[_0x500e90(0x1f9)]())return;const _0x420f5c={'layoutConfig':_0x2e72dc[_0x500e90(0x212)],'renderConfig':_0x2e72dc[_0x500e90(0x215)]};if(_0x420f5c==null)return;if(this[_0x500e90(0x20f)](this[_0x500e90(0x204)][_0x500e90(0x200)],_0x420f5c),_0x420f5c[_0x500e90(0x203)])throw new _0x27caa4();}})),this[_0x9b425f(0x1f6)](this[_0x9b425f(0x204)]['BeforeSheetPrintCanceled'],()=>_0x11e24b['beforeCommandExecuted'](_0x766c6=>{const _0x444566=_0x9b425f;if(_0x766c6['id']===_0x3c762a['id']){const _0x577112=_0x42fe4c['get'](_0x402c36);if(!this[_0x444566(0x1f9)]())return;const _0x4d0d9f={'layoutConfig':_0x577112[_0x444566(0x212)],'renderConfig':_0x577112[_0x444566(0x215)]};if(_0x4d0d9f==null)return;if(this[_0x444566(0x20f)](this[_0x444566(0x204)][_0x444566(0x1ed)],_0x4d0d9f),_0x4d0d9f[_0x444566(0x203)])throw new _0x27caa4();}})),this[_0x9b425f(0x1f6)](this[_0x9b425f(0x204)][_0x9b425f(0x20c)],()=>_0x11e24b['onCommandExecuted'](_0x573e46=>{const _0x2c025c=_0x9b425f;if(_0x573e46['id']===_0x3b37cb['id']){const _0x23e0dd=this['getActiveUniverSheet']();if(!_0x23e0dd)return;const _0x404e0b={'workbook':_0x23e0dd,'worksheet':_0x23e0dd[_0x2c025c(0x1eb)]()};if(_0x404e0b==null)return;this[_0x2c025c(0x20f)](this[_0x2c025c(0x204)][_0x2c025c(0x20c)],_0x404e0b);}})),this[_0x9b425f(0x1f6)](this[_0x9b425f(0x204)][_0x9b425f(0x1f4)],()=>_0x11e24b[_0x9b425f(0x202)](_0x7096fb=>{const _0x313058=_0x9b425f;if(_0x7096fb['id']===_0x4c96b5['id']){const _0x1d9f35=_0x42fe4c[_0x313058(0x209)](_0x402c36);if(!this['getActiveUniverSheet']())return;const _0x3c4d28={'layoutConfig':_0x1d9f35[_0x313058(0x212)],'renderConfig':_0x1d9f35['renderConfig']};if(_0x3c4d28==null)return;this['fireEvent'](this[_0x313058(0x204)][_0x313058(0x1f4)],_0x3c4d28);}})),this[_0x9b425f(0x1f6)](this[_0x9b425f(0x204)]['SheetPrintCanceled'],()=>_0x11e24b[_0x9b425f(0x202)](_0xb97890=>{const _0x515674=_0x9b425f;if(_0xb97890['id']===_0x3c762a['id']){const _0x2ea556=_0x42fe4c[_0x515674(0x209)](_0x402c36);if(!this[_0x515674(0x1f9)]())return;const _0x45580d={'layoutConfig':_0x2ea556['layoutConfig'],'renderConfig':_0x2ea556[_0x515674(0x215)]};if(_0x45580d==null)return;this[_0x515674(0x20f)](this[_0x515674(0x204)][_0x515674(0x1f5)],_0x45580d);}}));}}_0x357558[_0x5c0e9d(0x1fe)](M);
1
+ const _0x48bd91=_0x1fb7;(function(_0x1ecbf6,_0x277f78){const _0x53e2a7=_0x1fb7,_0x1a495d=_0x1ecbf6();while(!![]){try{const _0x25fc12=parseInt(_0x53e2a7(0x18b))/0x1*(parseInt(_0x53e2a7(0x196))/0x2)+-parseInt(_0x53e2a7(0x19a))/0x3*(parseInt(_0x53e2a7(0x198))/0x4)+-parseInt(_0x53e2a7(0x192))/0x5+parseInt(_0x53e2a7(0x18f))/0x6+parseInt(_0x53e2a7(0x186))/0x7+parseInt(_0x53e2a7(0x194))/0x8+parseInt(_0x53e2a7(0x1ab))/0x9*(-parseInt(_0x53e2a7(0x18a))/0xa);if(_0x25fc12===_0x277f78)break;else _0x1a495d['push'](_0x1a495d['shift']());}catch(_0x1402e9){_0x1a495d['push'](_0x1a495d['shift']());}}}(_0x2cc5,0x586e3));import{ISheetPrintManagerService as _0x31b3fd,ConfirmSheetPrintOperation as _0x388626,SheetPrintOpenOperation as _0x32f946,CancelSheetPrintOperation as _0x494530,hasPrintFacadePermission as _0x2e2c7c,SheetScreenShotOperation as _0xe91663,SheetPrintClientService as _0x3fd8e6,PrintArea as _0xda8706,PrintFreeze as _0x72e8c1,PrintHeaderFooter as _0x59bf93,PrintHeaderFooterSymbol as _0x4a442e}from'@univerjs-pro/sheets-print';import{ICommandService as _0x28a0a0,PaperType as _0x40a77c,CanceledError as _0x58ecd7}from'@univerjs/core';import{FWorkbook as _0x327050,FRange as _0x5cd359}from'@univerjs/sheets/facade';import{FEventName as _0x4560ce,FEnum as _0x1a64e9,FUniver as _0x1bad67}from'@univerjs/core/facade';import{PrintAlign as _0x4b0601,PrintPaperMargin as _0x3c30f0,PrintScale as _0x198a2d,PrintDirection as _0x31500f}from'@univerjs-pro/print';class A extends _0x327050{[_0x48bd91(0x199)](_0xf31f28){const _0x1b17cf=_0x48bd91;return this['_injector'][_0x1b17cf(0x19d)](_0x31b3fd)[_0x1b17cf(0x17d)](_0xf31f28),this;}[_0x48bd91(0x183)](_0x739f7b){const _0x16d8b9=_0x48bd91;return this['_injector'][_0x16d8b9(0x19d)](_0x31b3fd)[_0x16d8b9(0x1a1)](_0x739f7b),this;}[_0x48bd91(0x187)](){const _0xce5ab0=_0x48bd91;return this['_injector'][_0xce5ab0(0x19d)](_0x28a0a0)[_0xce5ab0(0x1ac)](_0x388626['id']);}['openPrintDialog'](){const _0x528c6e=_0x48bd91;return this['_injector'][_0x528c6e(0x19d)](_0x28a0a0)['syncExecuteCommand'](_0x32f946['id']);}[_0x48bd91(0x190)](){const _0x462167=_0x48bd91;return this['_injector'][_0x462167(0x19d)](_0x28a0a0)[_0x462167(0x1ac)](_0x494530['id']);}async['saveScreenshotToClipboard'](){const _0x31998c=_0x48bd91;return _0x2e2c7c(this[_0x31998c(0x1ae)])?this[_0x31998c(0x1ae)][_0x31998c(0x19d)](_0x28a0a0)[_0x31998c(0x197)](_0xe91663['id']):!0x1;}}_0x327050['extend'](A);class B extends _0x5cd359{[_0x48bd91(0x17e)](){const _0x3c1e95=_0x48bd91;return _0x2e2c7c(this['_injector'])?this[_0x3c1e95(0x1ae)][_0x3c1e95(0x19d)](_0x3fd8e6)[_0x3c1e95(0x1ad)](this[_0x3c1e95(0x193)]['getUnitId'](),this[_0x3c1e95(0x195)][_0x3c1e95(0x1a0)](),this[_0x3c1e95(0x1a5)]):!0x1;}}function _0x1fb7(_0x12d723,_0x5535aa){_0x12d723=_0x12d723-0x17d;const _0x2cc566=_0x2cc5();let _0x1fb734=_0x2cc566[_0x12d723];return _0x1fb734;}_0x5cd359[_0x48bd91(0x1a6)](B);class H{get[_0x48bd91(0x18c)](){const _0xe6eed5=_0x48bd91;return _0xe6eed5(0x18c);}get[_0x48bd91(0x188)](){const _0xfdc9b=_0x48bd91;return _0xfdc9b(0x188);}get[_0x48bd91(0x1b0)](){const _0x58d08e=_0x48bd91;return _0x58d08e(0x1b0);}get[_0x48bd91(0x185)](){const _0x3aa958=_0x48bd91;return _0x3aa958(0x185);}get[_0x48bd91(0x1a9)](){const _0x101d9a=_0x48bd91;return _0x101d9a(0x1a9);}get[_0x48bd91(0x18e)](){const _0x479b8a=_0x48bd91;return _0x479b8a(0x18e);}}function _0x2cc5(){const _0x34b60=['404LscYtm','executeCommand','5248FIJAwa','updatePrintConfig','1164DuDbTg','PrintArea','PrintHeaderFooter','get','fireEvent','PrintPaperSize','getSheetId','updateRenderConfig','_initialize','registerEventHandler','PrintAlign','_range','extend','beforeCommandExecuted','PrintScale','SheetPrintConfirmed','Event','918639vrwCUH','syncExecuteCommand','getRangeImage','_injector','getActiveSheet','BeforeSheetPrintCanceled','updateLayoutConfig','getScreenshot','PrintPaperMargin','onCommandExecuted','cancel','renderConfig','updatePrintRenderConfig','getActiveUniverSheet','SheetPrintOpen','1041229MRgEKf','print','BeforeSheetPrintConfirm','layoutConfig','10mWNfgi','289UqwKJG','BeforeSheetPrintOpen','PrintHeaderFooterSymbol','SheetPrintCanceled','2518194KHDDHF','closePrintDialog','PrintFreeze','1532880HgNQgp','_workbook','5224720ySduzP','_worksheet'];_0x2cc5=function(){return _0x34b60;};return _0x2cc5();}_0x4560ce[_0x48bd91(0x1a6)](H);class U{get[_0x48bd91(0x19b)](){return _0xda8706;}get[_0x48bd91(0x1a4)](){return _0x4b0601;}get[_0x48bd91(0x19f)](){return _0x40a77c;}get[_0x48bd91(0x17f)](){return _0x3c30f0;}get[_0x48bd91(0x1a8)](){return _0x198a2d;}get['PrintDirection'](){return _0x31500f;}get[_0x48bd91(0x191)](){return _0x72e8c1;}get[_0x48bd91(0x19c)](){return _0x59bf93;}get[_0x48bd91(0x18d)](){return _0x4a442e;}}_0x1a64e9[_0x48bd91(0x1a6)](U);class M extends _0x1bad67{[_0x48bd91(0x1a2)](_0x281c27){const _0x15c036=_0x48bd91,_0xcb3e67=_0x281c27[_0x15c036(0x19d)](_0x28a0a0);this['registerEventHandler'](this[_0x15c036(0x1aa)][_0x15c036(0x18c)],()=>_0xcb3e67[_0x15c036(0x1a7)](_0x164b0d=>{const _0x4e0482=_0x15c036;if(_0x164b0d['id']===_0x32f946['id']){const _0x56d47c=this[_0x4e0482(0x184)]();if(!_0x56d47c)return;const _0x45a938={'workbook':_0x56d47c,'worksheet':_0x56d47c[_0x4e0482(0x1af)]()};if(_0x45a938==null)return;if(this[_0x4e0482(0x19e)](this[_0x4e0482(0x1aa)]['BeforeSheetPrintOpen'],_0x45a938),_0x45a938[_0x4e0482(0x181)])throw new _0x58ecd7();}})),this[_0x15c036(0x1a3)](this[_0x15c036(0x1aa)][_0x15c036(0x188)],()=>_0xcb3e67[_0x15c036(0x1a7)](_0x5f13e1=>{const _0x5a4a0f=_0x15c036;if(_0x5f13e1['id']===_0x388626['id']){const _0x164cf2=_0x281c27['get'](_0x31b3fd);if(!this[_0x5a4a0f(0x184)]())return;const _0x53e291={'layoutConfig':_0x164cf2['layoutConfig'],'renderConfig':_0x164cf2[_0x5a4a0f(0x182)]};if(_0x53e291==null)return;if(this[_0x5a4a0f(0x19e)](this['Event'][_0x5a4a0f(0x188)],_0x53e291),_0x53e291['cancel'])throw new _0x58ecd7();}})),this[_0x15c036(0x1a3)](this['Event'][_0x15c036(0x1b0)],()=>_0xcb3e67[_0x15c036(0x1a7)](_0x247321=>{const _0x3a09e0=_0x15c036;if(_0x247321['id']===_0x494530['id']){const _0x490c04=_0x281c27[_0x3a09e0(0x19d)](_0x31b3fd);if(!this['getActiveUniverSheet']())return;const _0x5568cc={'layoutConfig':_0x490c04[_0x3a09e0(0x189)],'renderConfig':_0x490c04[_0x3a09e0(0x182)]};if(_0x5568cc==null)return;if(this[_0x3a09e0(0x19e)](this[_0x3a09e0(0x1aa)][_0x3a09e0(0x1b0)],_0x5568cc),_0x5568cc[_0x3a09e0(0x181)])throw new _0x58ecd7();}})),this['registerEventHandler'](this[_0x15c036(0x1aa)][_0x15c036(0x185)],()=>_0xcb3e67['onCommandExecuted'](_0x22bcad=>{const _0x5a8b16=_0x15c036;if(_0x22bcad['id']===_0x32f946['id']){const _0x1c183c=this[_0x5a8b16(0x184)]();if(!_0x1c183c)return;const _0x11b195={'workbook':_0x1c183c,'worksheet':_0x1c183c[_0x5a8b16(0x1af)]()};if(_0x11b195==null)return;this['fireEvent'](this['Event'][_0x5a8b16(0x185)],_0x11b195);}})),this['registerEventHandler'](this['Event'][_0x15c036(0x1a9)],()=>_0xcb3e67[_0x15c036(0x180)](_0x5a33e0=>{const _0x268957=_0x15c036;if(_0x5a33e0['id']===_0x388626['id']){const _0xa04c9e=_0x281c27['get'](_0x31b3fd);if(!this[_0x268957(0x184)]())return;const _0x5906f9={'layoutConfig':_0xa04c9e[_0x268957(0x189)],'renderConfig':_0xa04c9e[_0x268957(0x182)]};if(_0x5906f9==null)return;this[_0x268957(0x19e)](this[_0x268957(0x1aa)]['SheetPrintConfirmed'],_0x5906f9);}})),this[_0x15c036(0x1a3)](this[_0x15c036(0x1aa)][_0x15c036(0x18e)],()=>_0xcb3e67[_0x15c036(0x180)](_0x277fd4=>{const _0x27d0a9=_0x15c036;if(_0x277fd4['id']===_0x494530['id']){const _0x3074d5=_0x281c27['get'](_0x31b3fd);if(!this[_0x27d0a9(0x184)]())return;const _0x21230b={'layoutConfig':_0x3074d5[_0x27d0a9(0x189)],'renderConfig':_0x3074d5[_0x27d0a9(0x182)]};if(_0x21230b==null)return;this[_0x27d0a9(0x19e)](this['Event'][_0x27d0a9(0x18e)],_0x21230b);}}));}}_0x1bad67[_0x48bd91(0x1a6)](M);