@univerjs-pro/sheets-print 0.12.3-nightly.202512060617 → 0.12.4

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 +39 -39
  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
- function _0x38cb(_0x188047,_0x1fc690){_0x188047=_0x188047-0x199;const _0xa95f31=_0xa95f();let _0x38cbfa=_0xa95f31[_0x188047];return _0x38cbfa;}const _0x48d197=_0x38cb;(function(_0x434bb7,_0x142afe){const _0x1969ba=_0x38cb,_0x465c50=_0x434bb7();while(!![]){try{const _0x39be76=-parseInt(_0x1969ba(0x1e0))/0x1*(parseInt(_0x1969ba(0x1c5))/0x2)+parseInt(_0x1969ba(0x1b7))/0x3+-parseInt(_0x1969ba(0x19d))/0x4+-parseInt(_0x1969ba(0x199))/0x5+parseInt(_0x1969ba(0x1ac))/0x6*(parseInt(_0x1969ba(0x1c2))/0x7)+-parseInt(_0x1969ba(0x1ba))/0x8+-parseInt(_0x1969ba(0x1d8))/0x9*(-parseInt(_0x1969ba(0x1af))/0xa);if(_0x39be76===_0x142afe)break;else _0x465c50['push'](_0x465c50['shift']());}catch(_0x178798){_0x465c50['push'](_0x465c50['shift']());}}}(_0xa95f,0x3717c));const e={'print':{'header':{'total':'總計:','pages':'頁','cancel':'取消','next':_0x48d197(0x1d2),'printing':_0x48d197(0x1ce)},'menu':'列印','title':'列印','grid':{'title':_0x48d197(0x1a0),'showGrid':'顯示分頁符號','showGridLabel':_0x48d197(0x1a7),'closeAndHide':'關閉並隱藏分頁線'},'screenshot':{'title':_0x48d197(0x1c7),'success':_0x48d197(0x19b),'fail':_0x48d197(0x1c4)},'size':{'title':_0x48d197(0x1d5),'letter':_0x48d197(0x1e1),'tabloid':_0x48d197(0x1df),'legal':_0x48d197(0x1bf),'statement':_0x48d197(0x1aa),'executive':_0x48d197(0x1cd),'folio':_0x48d197(0x1ad),'a3':'A3\x20(11.69\x22\x20x\x2016.54\x22)','a4':_0x48d197(0x1d0),'a5':_0x48d197(0x1b0),'b4':_0x48d197(0x1be),'b5':_0x48d197(0x1c1)},'margin':{'title':'邊距','normal':'標準','narrow':'窄','wide':'寬','custom':_0x48d197(0x1bb),'top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'列印','currentSheet':'目前工作表','workbook':_0x48d197(0x1a3),'currentSelection':'已選取的儲存格','maxRowsEachPage':_0x48d197(0x1de),'maxColumnsEachPage':_0x48d197(0x1bd),'limit':_0x48d197(0x1cc),'allSelection':_0x48d197(0x1a8)},'selection':{'title':_0x48d197(0x1d3),'allWorkbook':_0x48d197(0x1a9),'workbookUnit':_0x48d197(0x1b9)},'scale':{'title':'縮放','normal':_0x48d197(0x1a4),'fitWidth':_0x48d197(0x1a2),'fitHeight':_0x48d197(0x1bc),'fitPage':'調整至頁面大小','custom':'自訂比例'},'orientation':{'title':'頁面方向','landscape':'橫向','portrait':'直向'},'formatting':{'title':_0x48d197(0x1ca),'skeleton':_0x48d197(0x1c8),'waterMark':_0x48d197(0x1a6)},'align':{'title':'對齊','horizontal':{'title':_0x48d197(0x1d9),'middle':'置中','start':'靠左','end':'靠右'},'vertical':{'title':_0x48d197(0x1a5),'start':'靠上','end':'靠下','middle':'置中'}},'headerFooter':{'title':_0x48d197(0x1db),'page':'頁碼','workbook':'活頁簿標題','sheet':_0x48d197(0x1a1),'date':_0x48d197(0x19a),'time':_0x48d197(0x19f),'customHeadFooter':'自訂頁首/頁尾','editCustomHeadFooter':'編輯自訂頁首/頁尾','header':'頁首','footer':'頁尾','left':'左側','right':'右側','center':'中間','dateFormat':_0x48d197(0x1b3),'dateA':_0x48d197(0x1dc),'dateB':_0x48d197(0x1c6),'dateC':'L','dateD':_0x48d197(0x1c9),'timeA':'HH:mm:ss','timeB':'HH:mm','timeC':_0x48d197(0x1d7),'timeD':_0x48d197(0x1b4),'display':{'page':'頁碼','title':_0x48d197(0x1b6),'sheet':_0x48d197(0x1a1),'dateA':_0x48d197(0x19e),'dateB':'日期B','dateC':_0x48d197(0x1d4),'dateD':_0x48d197(0x1da),'dateE':'日期E','dateF':_0x48d197(0x1c0),'timeA':_0x48d197(0x1b5),'timeB':_0x48d197(0x1cf),'timeC':_0x48d197(0x1cb),'timeD':_0x48d197(0x1ab),'sheetPage':'工作表頁碼','pageTotal':_0x48d197(0x19c),'sheetPageTotal':'工作表總頁數'},'placeholder':_0x48d197(0x1b8),'submit':'確定'},'freeze':{'title':_0x48d197(0x1b1),'desc':_0x48d197(0x1d1),'row':_0x48d197(0x1b2),'column':_0x48d197(0x1dd)},'limit':{'page':_0x48d197(0x1ae),'waterMark':_0x48d197(0x1d6),'link':_0x48d197(0x1c3)}}};function _0xa95f(){const _0x46c49f=['目前日期','圖片已成功複製到剪貼簿!','總頁數','789084HfHUHL','日期A','目前時間','列印版面配置','工作表名稱','調整至頁面寬度','活頁簿','標準\x20(100%)','垂直對齊','顯示浮水印','顯示分頁線','所有選取的儲存格','所有工作表','Statement\x20(5.5\x22\x20x\x208.5\x22)','時間D','54Iyyhlk','Folio\x20(8.5\x22\x20x\x2013\x22)','免費版僅支援\x20{limit}\x20頁列印,進階功能請購買商業版!','8813320YOFTer','A5\x20(5.83\x22\x20x\x208.27\x22)','列與欄標題','重複凍結的列','日期格式','hh:mm','時間A','活頁簿標題','552150JmSiKD','點擊以新增文字','張工作表','1754912MwZAFV','自訂义頁邊距','調整至頁面高度','每頁最大欄數','B4\x20(9.84\x22\x20x\x2013.90\x22)','Legal\x20(8.5\x22\x20x\x2014\x22)','日期F','B5\x20(6.93\x22\x20x\x209.84\x22)','44072qUmJlM','https://univer.ai/pro','圖片複製到剪貼簿失敗!','175174WyPXEu','MM-DD','複製為圖片','顯示格線','MM/DD','格式設定','時間C','列與欄限制','Executive\x20(7.25\x22\x20x\x2010.5\x22)','列印中,請勿關閉頁面','時間B','A4\x20(8.27\x22\x20x\x2011.69\x22)','前往\x20檢視\x20>\x20凍結\x20以選擇要在所有頁面重複的列/欄','下一步','選取範圍','日期C','紙張大小','Univer\x20免費版本,由\x20univer.ai\x20提供支援。','hh:mm:ss','9nQaJVX','水平對齊','日期D','頁首和頁尾','YYYY-MM-DD','重複凍結的欄','每頁最大列數','Tabloid\x20(11\x22\x20x\x2017\x22)','5FIsuXd','Letter\x20(8.5\x22\x20x\x2011\x22)','209080iSgHeN'];_0xa95f=function(){return _0x46c49f;};return _0xa95f();}export{e as default};
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};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x4852cc=_0x5b37;(function(_0x288100,_0x5baed5){const _0x287fe6=_0x5b37,_0x2c3b61=_0x288100();while(!![]){try{const _0x4f26a4=-parseInt(_0x287fe6(0x201))/0x1+parseInt(_0x287fe6(0x20c))/0x2*(parseInt(_0x287fe6(0x206))/0x3)+-parseInt(_0x287fe6(0x200))/0x4*(parseInt(_0x287fe6(0x1ef))/0x5)+parseInt(_0x287fe6(0x1f8))/0x6*(-parseInt(_0x287fe6(0x1f9))/0x7)+-parseInt(_0x287fe6(0x1fc))/0x8+-parseInt(_0x287fe6(0x1f4))/0x9+parseInt(_0x287fe6(0x20d))/0xa;if(_0x4f26a4===_0x5baed5)break;else _0x2c3b61['push'](_0x2c3b61['shift']());}catch(_0x1943dc){_0x2c3b61['push'](_0x2c3b61['shift']());}}}(_0x35b8,0xd1941));import{ISheetPrintManagerService as _0x1eaf2e,ConfirmSheetPrintOperation as _0x430dce,SheetPrintOpenOperation as _0x350849,CancelSheetPrintOperation as _0x8e48c9,hasPrintFacadePermission as _0x5dd0f8,SheetScreenShotOperation as _0x14416a,SheetPrintClientService as _0x51aabb,PrintArea as _0x3862e0,PrintFreeze as _0x228f89,PrintHeaderFooter as _0xce062b,PrintHeaderFooterSymbol as _0x30ac45}from'@univerjs-pro/sheets-print';function _0x5b37(_0x391789,_0x21e743){_0x391789=_0x391789-0x1eb;const _0x35b8ae=_0x35b8();let _0x5b37bc=_0x35b8ae[_0x391789];return _0x5b37bc;}import{ICommandService as _0x41c8b6,PaperType as _0x15a08f,CanceledError as _0x2bc6d8}from'@univerjs/core';import{FWorkbook as _0x595eca,FRange as _0x22fdb6}from'@univerjs/sheets/facade';import{FEventName as _0xfc531c,FEnum as _0x21f351,FUniver as _0x4e054a}from'@univerjs/core/facade';import{PrintAlign as _0x19b211,PrintPaperMargin as _0x50a91a,PrintScale as _0x8b26f1,PrintDirection as _0x3bfde5}from'@univerjs-pro/print';class A extends _0x595eca{[_0x4852cc(0x1fd)](_0x5a82f5){const _0x5f2d0c=_0x4852cc;return this['_injector']['get'](_0x1eaf2e)[_0x5f2d0c(0x1ee)](_0x5a82f5),this;}[_0x4852cc(0x1f7)](_0x2005ad){const _0x274f67=_0x4852cc;return this[_0x274f67(0x1fe)]['get'](_0x1eaf2e)[_0x274f67(0x213)](_0x2005ad),this;}[_0x4852cc(0x1fb)](){const _0x42bd1c=_0x4852cc;return this[_0x42bd1c(0x1fe)][_0x42bd1c(0x218)](_0x41c8b6)['syncExecuteCommand'](_0x430dce['id']);}[_0x4852cc(0x204)](){const _0x20af15=_0x4852cc;return this[_0x20af15(0x1fe)]['get'](_0x41c8b6)[_0x20af15(0x203)](_0x350849['id']);}[_0x4852cc(0x1f3)](){const _0x2941e3=_0x4852cc;return this[_0x2941e3(0x1fe)][_0x2941e3(0x218)](_0x41c8b6)[_0x2941e3(0x203)](_0x8e48c9['id']);}async['saveScreenshotToClipboard'](){const _0x142033=_0x4852cc;return _0x5dd0f8(this[_0x142033(0x1fe)])?this[_0x142033(0x1fe)][_0x142033(0x218)](_0x41c8b6)[_0x142033(0x1fa)](_0x14416a['id']):!0x1;}}_0x595eca[_0x4852cc(0x207)](A);class B extends _0x22fdb6{['getScreenshot'](){const _0x2f000b=_0x4852cc;return _0x5dd0f8(this[_0x2f000b(0x1fe)])?this[_0x2f000b(0x1fe)][_0x2f000b(0x218)](_0x51aabb)[_0x2f000b(0x21a)](this['_workbook']['getUnitId'](),this[_0x2f000b(0x1ff)][_0x2f000b(0x212)](),this[_0x2f000b(0x215)]):!0x1;}}_0x22fdb6[_0x4852cc(0x207)](B);class H{get[_0x4852cc(0x219)](){const _0x4d557a=_0x4852cc;return _0x4d557a(0x219);}get[_0x4852cc(0x208)](){const _0x2f58dd=_0x4852cc;return _0x2f58dd(0x208);}get[_0x4852cc(0x20e)](){const _0x35c956=_0x4852cc;return _0x35c956(0x20e);}get['SheetPrintOpen'](){const _0x4f0795=_0x4852cc;return _0x4f0795(0x1eb);}get[_0x4852cc(0x209)](){const _0x313f22=_0x4852cc;return _0x313f22(0x209);}get[_0x4852cc(0x211)](){const _0x3dd651=_0x4852cc;return _0x3dd651(0x211);}}function _0x35b8(){const _0x28efc4=['layoutConfig','syncExecuteCommand','openPrintDialog','PrintHeaderFooterSymbol','230952OywHHX','extend','BeforeSheetPrintConfirm','SheetPrintConfirmed','PrintScale','beforeCommandExecuted','6uXzTOk','46956910xofJvX','BeforeSheetPrintCanceled','PrintPaperMargin','PrintPaperSize','SheetPrintCanceled','getSheetId','updateRenderConfig','fireEvent','_range','PrintFreeze','onCommandExecuted','get','BeforeSheetPrintOpen','getRangeImage','SheetPrintOpen','getActiveUniverSheet','registerEventHandler','updateLayoutConfig','635mDogal','Event','getActiveSheet','cancel','closePrintDialog','15184170kIUUzc','PrintAlign','renderConfig','updatePrintRenderConfig','6jvcsCM','2165324CiOtvp','executeCommand','print','3049040aScKYb','updatePrintConfig','_injector','_worksheet','32716PUxWJC','651885ierNpQ'];_0x35b8=function(){return _0x28efc4;};return _0x35b8();}_0xfc531c[_0x4852cc(0x207)](H);class U{get['PrintArea'](){return _0x3862e0;}get[_0x4852cc(0x1f5)](){return _0x19b211;}get[_0x4852cc(0x210)](){return _0x15a08f;}get[_0x4852cc(0x20f)](){return _0x50a91a;}get[_0x4852cc(0x20a)](){return _0x8b26f1;}get['PrintDirection'](){return _0x3bfde5;}get[_0x4852cc(0x216)](){return _0x228f89;}get['PrintHeaderFooter'](){return _0xce062b;}get[_0x4852cc(0x205)](){return _0x30ac45;}}_0x21f351[_0x4852cc(0x207)](U);class M extends _0x4e054a{['_initialize'](_0x1310a5){const _0x358c85=_0x4852cc,_0x212583=_0x1310a5['get'](_0x41c8b6);this[_0x358c85(0x1ed)](this[_0x358c85(0x1f0)][_0x358c85(0x219)],()=>_0x212583[_0x358c85(0x20b)](_0x333a74=>{const _0x52e2e9=_0x358c85;if(_0x333a74['id']===_0x350849['id']){const _0x291583=this[_0x52e2e9(0x1ec)]();if(!_0x291583)return;const _0x2a458a={'workbook':_0x291583,'worksheet':_0x291583[_0x52e2e9(0x1f1)]()};if(_0x2a458a==null)return;if(this[_0x52e2e9(0x214)](this[_0x52e2e9(0x1f0)][_0x52e2e9(0x219)],_0x2a458a),_0x2a458a[_0x52e2e9(0x1f2)])throw new _0x2bc6d8();}})),this[_0x358c85(0x1ed)](this['Event'][_0x358c85(0x208)],()=>_0x212583['beforeCommandExecuted'](_0x34facd=>{const _0x2f5821=_0x358c85;if(_0x34facd['id']===_0x430dce['id']){const _0x335877=_0x1310a5['get'](_0x1eaf2e);if(!this[_0x2f5821(0x1ec)]())return;const _0x5e1053={'layoutConfig':_0x335877['layoutConfig'],'renderConfig':_0x335877['renderConfig']};if(_0x5e1053==null)return;if(this[_0x2f5821(0x214)](this[_0x2f5821(0x1f0)][_0x2f5821(0x208)],_0x5e1053),_0x5e1053[_0x2f5821(0x1f2)])throw new _0x2bc6d8();}})),this[_0x358c85(0x1ed)](this[_0x358c85(0x1f0)][_0x358c85(0x20e)],()=>_0x212583[_0x358c85(0x20b)](_0x15eaf3=>{const _0x423e81=_0x358c85;if(_0x15eaf3['id']===_0x8e48c9['id']){const _0x5afb91=_0x1310a5[_0x423e81(0x218)](_0x1eaf2e);if(!this['getActiveUniverSheet']())return;const _0x3a81ef={'layoutConfig':_0x5afb91[_0x423e81(0x202)],'renderConfig':_0x5afb91[_0x423e81(0x1f6)]};if(_0x3a81ef==null)return;if(this[_0x423e81(0x214)](this[_0x423e81(0x1f0)][_0x423e81(0x20e)],_0x3a81ef),_0x3a81ef[_0x423e81(0x1f2)])throw new _0x2bc6d8();}})),this[_0x358c85(0x1ed)](this[_0x358c85(0x1f0)]['SheetPrintOpen'],()=>_0x212583['onCommandExecuted'](_0x136b57=>{const _0x9e7e8e=_0x358c85;if(_0x136b57['id']===_0x350849['id']){const _0x29f15f=this['getActiveUniverSheet']();if(!_0x29f15f)return;const _0x2527fb={'workbook':_0x29f15f,'worksheet':_0x29f15f[_0x9e7e8e(0x1f1)]()};if(_0x2527fb==null)return;this['fireEvent'](this[_0x9e7e8e(0x1f0)][_0x9e7e8e(0x1eb)],_0x2527fb);}})),this[_0x358c85(0x1ed)](this['Event']['SheetPrintConfirmed'],()=>_0x212583[_0x358c85(0x217)](_0x4660f7=>{const _0x22d1d8=_0x358c85;if(_0x4660f7['id']===_0x430dce['id']){const _0x2e6609=_0x1310a5['get'](_0x1eaf2e);if(!this['getActiveUniverSheet']())return;const _0x300a18={'layoutConfig':_0x2e6609[_0x22d1d8(0x202)],'renderConfig':_0x2e6609[_0x22d1d8(0x1f6)]};if(_0x300a18==null)return;this[_0x22d1d8(0x214)](this[_0x22d1d8(0x1f0)][_0x22d1d8(0x209)],_0x300a18);}})),this[_0x358c85(0x1ed)](this['Event'][_0x358c85(0x211)],()=>_0x212583[_0x358c85(0x217)](_0x533f8f=>{const _0x1be43d=_0x358c85;if(_0x533f8f['id']===_0x8e48c9['id']){const _0x456d15=_0x1310a5[_0x1be43d(0x218)](_0x1eaf2e);if(!this[_0x1be43d(0x1ec)]())return;const _0x327a22={'layoutConfig':_0x456d15[_0x1be43d(0x202)],'renderConfig':_0x456d15[_0x1be43d(0x1f6)]};if(_0x327a22==null)return;this[_0x1be43d(0x214)](this['Event']['SheetPrintCanceled'],_0x327a22);}}));}}_0x4e054a[_0x4852cc(0x207)](M);
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);