@univerjs-pro/sheets-print 0.11.0-nightly.202511151013 → 0.12.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 +40 -40
  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 _0x395355=_0xeb01;(function(_0x292413,_0x47da78){const _0x2ff5cc=_0xeb01,_0x2d8aa6=_0x292413();while(!![]){try{const _0x41709d=-parseInt(_0x2ff5cc(0x79))/0x1+-parseInt(_0x2ff5cc(0x97))/0x2+-parseInt(_0x2ff5cc(0x9f))/0x3*(-parseInt(_0x2ff5cc(0x6f))/0x4)+-parseInt(_0x2ff5cc(0x72))/0x5*(parseInt(_0x2ff5cc(0x9e))/0x6)+parseInt(_0x2ff5cc(0xb9))/0x7*(parseInt(_0x2ff5cc(0xa8))/0x8)+-parseInt(_0x2ff5cc(0xb3))/0x9+parseInt(_0x2ff5cc(0x93))/0xa*(parseInt(_0x2ff5cc(0x71))/0xb);if(_0x41709d===_0x47da78)break;else _0x2d8aa6['push'](_0x2d8aa6['shift']());}catch(_0x5be70e){_0x2d8aa6['push'](_0x2d8aa6['shift']());}}}(_0x45c7,0xba70f));function _0xeb01(_0x1fa7ad,_0x3f0732){const _0x45c779=_0x45c7();return _0xeb01=function(_0xeb0160,_0x1d0e8d){_0xeb0160=_0xeb0160-0x6e;let _0x3fd7a1=_0x45c779[_0xeb0160];return _0x3fd7a1;},_0xeb01(_0x1fa7ad,_0x3f0732);}const e={'print':{'header':{'total':_0x395355(0xa5),'pages':'頁','cancel':'取消','next':_0x395355(0x81),'printing':_0x395355(0xa6)},'menu':'列印','title':'列印','grid':{'title':'列印版面配置','showGrid':_0x395355(0xad),'showGridLabel':_0x395355(0x75),'closeAndHide':_0x395355(0x92)},'screenshot':{'title':_0x395355(0x8e),'success':_0x395355(0x82),'fail':'圖片複製到剪貼簿失敗!'},'size':{'title':_0x395355(0x80),'letter':_0x395355(0x86),'tabloid':_0x395355(0x74),'legal':_0x395355(0xb8),'statement':'Statement\x20(5.5\x22\x20x\x208.5\x22)','executive':_0x395355(0x78),'folio':_0x395355(0x73),'a3':_0x395355(0x99),'a4':'A4\x20(8.27\x22\x20x\x2011.69\x22)','a5':'A5\x20(5.83\x22\x20x\x208.27\x22)','b4':_0x395355(0xb0),'b5':'B5\x20(6.93\x22\x20x\x209.84\x22)'},'margin':{'title':'邊距','normal':'標準','narrow':'窄','wide':'寬','custom':_0x395355(0xa2),'top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'列印','currentSheet':_0x395355(0x7a),'workbook':_0x395355(0xac),'currentSelection':_0x395355(0x76),'maxRowsEachPage':_0x395355(0x9b),'maxColumnsEachPage':'每頁最大欄數','limit':_0x395355(0x70),'allSelection':_0x395355(0xa3)},'selection':{'title':'選取範圍','allWorkbook':'所有工作表','workbookUnit':_0x395355(0xa0)},'scale':{'title':'縮放','normal':'標準\x20(100%)','fitWidth':_0x395355(0x7d),'fitHeight':_0x395355(0xb5),'fitPage':_0x395355(0x94),'custom':_0x395355(0xab)},'orientation':{'title':_0x395355(0x9d),'landscape':'橫向','portrait':'直向'},'formatting':{'title':_0x395355(0x8d),'skeleton':_0x395355(0x89),'waterMark':_0x395355(0x8b)},'align':{'title':'對齊','horizontal':{'title':_0x395355(0xa1),'middle':'置中','start':'靠左','end':'靠右'},'vertical':{'title':_0x395355(0xb7),'start':'靠上','end':'靠下','middle':'置中'}},'headerFooter':{'title':_0x395355(0xa7),'page':'頁碼','workbook':_0x395355(0x6e),'sheet':_0x395355(0xa9),'date':_0x395355(0x84),'time':_0x395355(0x96),'customHeadFooter':_0x395355(0xbb),'editCustomHeadFooter':_0x395355(0x95),'header':'頁首','footer':'頁尾','left':'左側','right':'右側','center':'中間','dateFormat':_0x395355(0x8c),'dateA':_0x395355(0x7b),'dateB':_0x395355(0xb2),'dateC':'L','dateD':_0x395355(0xa4),'timeA':_0x395355(0xaa),'timeB':_0x395355(0x77),'timeC':_0x395355(0x7c),'timeD':_0x395355(0x8f),'display':{'page':'頁碼','title':_0x395355(0x6e),'sheet':_0x395355(0xa9),'dateA':_0x395355(0xb4),'dateB':'日期B','dateC':_0x395355(0x83),'dateD':_0x395355(0xba),'dateE':_0x395355(0x88),'dateF':_0x395355(0x85),'timeA':_0x395355(0x90),'timeB':'時間B','timeC':_0x395355(0x98),'timeD':_0x395355(0x7e),'sheetPage':'工作表頁碼','pageTotal':_0x395355(0x87),'sheetPageTotal':_0x395355(0xb6)},'placeholder':_0x395355(0x7f),'submit':'確定'},'freeze':{'title':_0x395355(0x9c),'desc':_0x395355(0x91),'row':_0x395355(0xb1),'column':_0x395355(0x9a)},'limit':{'page':_0x395355(0xaf),'waterMark':_0x395355(0xae),'link':_0x395355(0x8a)}}};function _0x45c7(){const _0x334867=['MM-DD','9582759GpEMHL','日期A','調整至頁面高度','工作表總頁數','垂直對齊','Legal\x20(8.5\x22\x20x\x2014\x22)','7hDanvR','日期D','自訂頁首/頁尾','活頁簿標題','73592sRZITA','列與欄限制','6301933YLVoQy','6298135EFFqon','Folio\x20(8.5\x22\x20x\x2013\x22)','Tabloid\x20(11\x22\x20x\x2017\x22)','顯示分頁線','已選取的儲存格','HH:mm','Executive\x20(7.25\x22\x20x\x2010.5\x22)','94534AbUjJO','目前工作表','YYYY-MM-DD','hh:mm:ss','調整至頁面寬度','時間D','點擊以新增文字','紙張大小','下一步','圖片已成功複製到剪貼簿!','日期C','目前日期','日期F','Letter\x20(8.5\x22\x20x\x2011\x22)','總頁數','日期E','顯示格線','https://univer.ai/pro','顯示浮水印','日期格式','格式設定','複製為圖片','hh:mm','時間A','前往\x20檢視\x20>\x20凍結\x20以選擇要在所有頁面重複的列/欄','關閉並隱藏分頁線','40apLlhf','調整至頁面大小','編輯自訂頁首/頁尾','目前時間','2017732EMLZtD','時間C','A3\x20(11.69\x22\x20x\x2016.54\x22)','重複凍結的欄','每頁最大列數','列與欄標題','頁面方向','6kuKahV','183gEZnZd','張工作表','水平對齊','自訂义頁邊距','所有選取的儲存格','MM/DD','總計:','列印中,請勿關閉頁面','頁首和頁尾','6220408EcOvQR','工作表名稱','HH:mm:ss','自訂比例','活頁簿','顯示分頁符號','Univer\x20免費版本,由\x20univer.ai\x20提供支援。','免費版僅支援\x20{limit}\x20頁列印,進階功能請購買商業版!','B4\x20(9.84\x22\x20x\x2013.90\x22)','重複凍結的列'];_0x45c7=function(){return _0x334867;};return _0x45c7();}export{e as default};
1
+ const _0x4d3bc1=_0x2f8a;(function(_0x48224a,_0x391bdb){const _0x361d2c=_0x2f8a,_0x33ab98=_0x48224a();while(!![]){try{const _0x53f4f3=parseInt(_0x361d2c(0x1b0))/0x1*(parseInt(_0x361d2c(0x17a))/0x2)+-parseInt(_0x361d2c(0x1b1))/0x3*(-parseInt(_0x361d2c(0x1ac))/0x4)+parseInt(_0x361d2c(0x18d))/0x5*(-parseInt(_0x361d2c(0x171))/0x6)+-parseInt(_0x361d2c(0x17d))/0x7*(-parseInt(_0x361d2c(0x184))/0x8)+-parseInt(_0x361d2c(0x1a9))/0x9+parseInt(_0x361d2c(0x174))/0xa*(-parseInt(_0x361d2c(0x18e))/0xb)+parseInt(_0x361d2c(0x1aa))/0xc*(-parseInt(_0x361d2c(0x19c))/0xd);if(_0x53f4f3===_0x391bdb)break;else _0x33ab98['push'](_0x33ab98['shift']());}catch(_0x1240e4){_0x33ab98['push'](_0x33ab98['shift']());}}}(_0x5b7c,0x22ac7));function _0x2f8a(_0x58f4e1,_0x49a034){const _0x5b7c43=_0x5b7c();return _0x2f8a=function(_0x2f8a69,_0x20e27e){_0x2f8a69=_0x2f8a69-0x16a;let _0x49c4d5=_0x5b7c43[_0x2f8a69];return _0x49c4d5;},_0x2f8a(_0x58f4e1,_0x49a034);}const e={'print':{'header':{'total':'總計:','pages':'頁','cancel':'取消','next':_0x4d3bc1(0x183),'printing':_0x4d3bc1(0x198)},'menu':'列印','title':'列印','grid':{'title':_0x4d3bc1(0x16c),'showGrid':_0x4d3bc1(0x16d),'showGridLabel':_0x4d3bc1(0x195),'closeAndHide':_0x4d3bc1(0x18c)},'screenshot':{'title':'複製為圖片','success':_0x4d3bc1(0x1ad),'fail':_0x4d3bc1(0x1ab)},'size':{'title':'紙張大小','letter':_0x4d3bc1(0x190),'tabloid':_0x4d3bc1(0x1a2),'legal':_0x4d3bc1(0x18f),'statement':_0x4d3bc1(0x196),'executive':_0x4d3bc1(0x173),'folio':_0x4d3bc1(0x192),'a3':_0x4d3bc1(0x19a),'a4':'A4\x20(8.27\x22\x20x\x2011.69\x22)','a5':'A5\x20(5.83\x22\x20x\x208.27\x22)','b4':_0x4d3bc1(0x17e),'b5':_0x4d3bc1(0x180)},'margin':{'title':'邊距','normal':'標準','narrow':'窄','wide':'寬','custom':'自訂义頁邊距','top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'列印','currentSheet':_0x4d3bc1(0x16a),'workbook':_0x4d3bc1(0x16f),'currentSelection':'已選取的儲存格','maxRowsEachPage':_0x4d3bc1(0x19b),'maxColumnsEachPage':_0x4d3bc1(0x1b3),'limit':_0x4d3bc1(0x176),'allSelection':_0x4d3bc1(0x177)},'selection':{'title':_0x4d3bc1(0x19f),'allWorkbook':_0x4d3bc1(0x188),'workbookUnit':'張工作表'},'scale':{'title':'縮放','normal':_0x4d3bc1(0x182),'fitWidth':_0x4d3bc1(0x170),'fitHeight':_0x4d3bc1(0x1a5),'fitPage':_0x4d3bc1(0x181),'custom':_0x4d3bc1(0x1a4)},'orientation':{'title':_0x4d3bc1(0x1a6),'landscape':'橫向','portrait':'直向'},'formatting':{'title':_0x4d3bc1(0x1af),'skeleton':_0x4d3bc1(0x189),'waterMark':_0x4d3bc1(0x18a)},'align':{'title':'對齊','horizontal':{'title':_0x4d3bc1(0x1a0),'middle':'置中','start':'靠左','end':'靠右'},'vertical':{'title':_0x4d3bc1(0x199),'start':'靠上','end':'靠下','middle':'置中'}},'headerFooter':{'title':'頁首和頁尾','page':'頁碼','workbook':'活頁簿標題','sheet':_0x4d3bc1(0x194),'date':_0x4d3bc1(0x1a8),'time':'目前時間','customHeadFooter':_0x4d3bc1(0x187),'editCustomHeadFooter':_0x4d3bc1(0x179),'header':'頁首','footer':'頁尾','left':'左側','right':'右側','center':'中間','dateFormat':_0x4d3bc1(0x17b),'dateA':'YYYY-MM-DD','dateB':_0x4d3bc1(0x19d),'dateC':'L','dateD':'MM/DD','timeA':_0x4d3bc1(0x197),'timeB':'HH:mm','timeC':_0x4d3bc1(0x178),'timeD':_0x4d3bc1(0x175),'display':{'page':'頁碼','title':_0x4d3bc1(0x17c),'sheet':_0x4d3bc1(0x194),'dateA':'日期A','dateB':_0x4d3bc1(0x185),'dateC':_0x4d3bc1(0x1a3),'dateD':_0x4d3bc1(0x1b4),'dateE':_0x4d3bc1(0x16e),'dateF':'日期F','timeA':_0x4d3bc1(0x17f),'timeB':_0x4d3bc1(0x193),'timeC':_0x4d3bc1(0x186),'timeD':_0x4d3bc1(0x18b),'sheetPage':_0x4d3bc1(0x19e),'pageTotal':_0x4d3bc1(0x172),'sheetPageTotal':_0x4d3bc1(0x16b)},'placeholder':_0x4d3bc1(0x1b2),'submit':'確定'},'freeze':{'title':'列與欄標題','desc':_0x4d3bc1(0x1a1),'row':_0x4d3bc1(0x1ae),'column':_0x4d3bc1(0x1a7)},'limit':{'page':'免費版僅支援\x20{limit}\x20頁列印,進階功能請購買商業版!','waterMark':_0x4d3bc1(0x191),'link':'https://univer.ai/pro'}}};function _0x5b7c(){const _0x58887c=['格式設定','34092bneerC','15627FLrDJo','點擊以新增文字','每頁最大欄數','日期D','目前工作表','工作表總頁數','列印版面配置','顯示分頁符號','日期E','活頁簿','調整至頁面寬度','66UUvByC','總頁數','Executive\x20(7.25\x22\x20x\x2010.5\x22)','101860dZQEzA','hh:mm','列與欄限制','所有選取的儲存格','hh:mm:ss','編輯自訂頁首/頁尾','10PkCxoV','日期格式','活頁簿標題','2653lLqEwM','B4\x20(9.84\x22\x20x\x2013.90\x22)','時間A','B5\x20(6.93\x22\x20x\x209.84\x22)','調整至頁面大小','標準\x20(100%)','下一步','3560vdmBSB','日期B','時間C','自訂頁首/頁尾','所有工作表','顯示格線','顯示浮水印','時間D','關閉並隱藏分頁線','90035ArPsFV','44BhNoRx','Legal\x20(8.5\x22\x20x\x2014\x22)','Letter\x20(8.5\x22\x20x\x2011\x22)','Univer\x20免費版本,由\x20univer.ai\x20提供支援。','Folio\x20(8.5\x22\x20x\x2013\x22)','時間B','工作表名稱','顯示分頁線','Statement\x20(5.5\x22\x20x\x208.5\x22)','HH:mm:ss','列印中,請勿關閉頁面','垂直對齊','A3\x20(11.69\x22\x20x\x2016.54\x22)','每頁最大列數','208pdpeKW','MM-DD','工作表頁碼','選取範圍','水平對齊','前往\x20檢視\x20>\x20凍結\x20以選擇要在所有頁面重複的列/欄','Tabloid\x20(11\x22\x20x\x2017\x22)','日期C','自訂比例','調整至頁面高度','頁面方向','重複凍結的欄','目前日期','467721GqQZqp','48AnFAAg','圖片複製到剪貼簿失敗!','72QSJfiO','圖片已成功複製到剪貼簿!','重複凍結的列'];_0x5b7c=function(){return _0x58887c;};return _0x5b7c();}export{e as default};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x535e(_0x32c858,_0x471831){const _0xcd0c93=_0xcd0c();return _0x535e=function(_0x535e9f,_0x37dd44){_0x535e9f=_0x535e9f-0xc8;let _0x6d9af7=_0xcd0c93[_0x535e9f];return _0x6d9af7;},_0x535e(_0x32c858,_0x471831);}const _0x54fc48=_0x535e;(function(_0x58ef65,_0x5743ee){const _0xb06ee=_0x535e,_0x5caee1=_0x58ef65();while(!![]){try{const _0x51a5da=-parseInt(_0xb06ee(0xda))/0x1*(-parseInt(_0xb06ee(0xd5))/0x2)+-parseInt(_0xb06ee(0xf7))/0x3+parseInt(_0xb06ee(0xdc))/0x4*(-parseInt(_0xb06ee(0xf8))/0x5)+-parseInt(_0xb06ee(0xfd))/0x6+-parseInt(_0xb06ee(0xc8))/0x7*(parseInt(_0xb06ee(0xe8))/0x8)+parseInt(_0xb06ee(0xe6))/0x9*(-parseInt(_0xb06ee(0xed))/0xa)+-parseInt(_0xb06ee(0xd2))/0xb*(-parseInt(_0xb06ee(0xd6))/0xc);if(_0x51a5da===_0x5743ee)break;else _0x5caee1['push'](_0x5caee1['shift']());}catch(_0x23ebd1){_0x5caee1['push'](_0x5caee1['shift']());}}}(_0xcd0c,0x1f548));import{ISheetPrintManagerService as _0x6a0231,ConfirmSheetPrintOperation as _0x22c3b0,SheetPrintOpenOperation as _0x1b00d5,CancelSheetPrintOperation as _0x2d088e,hasPrintFacadePermission as _0x14a870,SheetScreenShotOperation as _0x27e508,SheetPrintClientService as _0x3f3267,PrintArea as _0x4d9849,PrintFreeze as _0x5444f0,PrintHeaderFooter as _0x1f6c6d,PrintHeaderFooterSymbol as _0x12faba}from'@univerjs-pro/sheets-print';import{ICommandService as _0x5add99,PaperType as _0x746082,CanceledError as _0x31e4c5}from'@univerjs/core';import{FWorkbook as _0x3ea12c,FRange as _0x8fe33b}from'@univerjs/sheets/facade';import{FEventName as _0x2d4d2a,FEnum as _0x495935,FUniver as _0x18879f}from'@univerjs/core/facade';import{PrintAlign as _0x13f703,PrintPaperMargin as _0x4fbc11,PrintScale as _0x3703e0,PrintDirection as _0x5bb05d}from'@univerjs-pro/print';class A extends _0x3ea12c{['updatePrintConfig'](_0x93c85){const _0x51d54f=_0x535e;return this[_0x51d54f(0xd4)][_0x51d54f(0xf5)](_0x6a0231)[_0x51d54f(0xce)](_0x93c85),this;}[_0x54fc48(0xea)](_0x11d79a){const _0x509f91=_0x54fc48;return this[_0x509f91(0xd4)]['get'](_0x6a0231)[_0x509f91(0xec)](_0x11d79a),this;}[_0x54fc48(0xca)](){const _0x6b8703=_0x54fc48;return this[_0x6b8703(0xd4)][_0x6b8703(0xf5)](_0x5add99)['syncExecuteCommand'](_0x22c3b0['id']);}[_0x54fc48(0xd7)](){const _0x4035c1=_0x54fc48;return this['_injector'][_0x4035c1(0xf5)](_0x5add99)[_0x4035c1(0xeb)](_0x1b00d5['id']);}[_0x54fc48(0xe1)](){const _0x5a1c39=_0x54fc48;return this[_0x5a1c39(0xd4)]['get'](_0x5add99)[_0x5a1c39(0xeb)](_0x2d088e['id']);}async['saveScreenshotToClipboard'](){const _0x1bf184=_0x54fc48;return _0x14a870(this['_injector'])?this[_0x1bf184(0xd4)]['get'](_0x5add99)[_0x1bf184(0xf4)](_0x27e508['id']):!0x1;}}_0x3ea12c[_0x54fc48(0xf2)](A);class B extends _0x8fe33b{[_0x54fc48(0xd1)](){const _0x51f18a=_0x54fc48;return _0x14a870(this[_0x51f18a(0xd4)])?this[_0x51f18a(0xd4)]['get'](_0x3f3267)[_0x51f18a(0xde)](this[_0x51f18a(0xd9)][_0x51f18a(0xfb)](),this[_0x51f18a(0xee)][_0x51f18a(0xf0)](),this['_range']):!0x1;}}_0x8fe33b['extend'](B);class H{get[_0x54fc48(0xef)](){return'BeforeSheetPrintOpen';}get[_0x54fc48(0xd8)](){const _0x272b1d=_0x54fc48;return _0x272b1d(0xd8);}get['BeforeSheetPrintCanceled'](){const _0x408bc0=_0x54fc48;return _0x408bc0(0xcc);}get[_0x54fc48(0xe5)](){const _0x179e72=_0x54fc48;return _0x179e72(0xe5);}get[_0x54fc48(0xdd)](){const _0xef5578=_0x54fc48;return _0xef5578(0xdd);}get[_0x54fc48(0xf1)](){const _0x393d21=_0x54fc48;return _0x393d21(0xf1);}}_0x2d4d2a['extend'](H);class U{get[_0x54fc48(0xcf)](){return _0x4d9849;}get[_0x54fc48(0xf6)](){return _0x13f703;}get[_0x54fc48(0xd3)](){return _0x746082;}get[_0x54fc48(0xe3)](){return _0x4fbc11;}get[_0x54fc48(0xe0)](){return _0x3703e0;}get[_0x54fc48(0xf3)](){return _0x5bb05d;}get[_0x54fc48(0xcd)](){return _0x5444f0;}get[_0x54fc48(0xe9)](){return _0x1f6c6d;}get[_0x54fc48(0xc9)](){return _0x12faba;}}function _0xcd0c(){const _0x3a7bf9=['BeforeSheetPrintCanceled','PrintFreeze','updateLayoutConfig','PrintArea','onCommandExecuted','getScreenshot','123761mlonep','PrintPaperSize','_injector','52rgmmaq','420sHfhPi','openPrintDialog','BeforeSheetPrintConfirm','_workbook','6697BsYSsO','layoutConfig','4OChtVv','SheetPrintConfirmed','getRangeImage','renderConfig','PrintScale','closePrintDialog','beforeCommandExecuted','PrintPaperMargin','cancel','SheetPrintOpen','670077cExNBs','getActiveSheet','9848IUXUYA','PrintHeaderFooter','updatePrintRenderConfig','syncExecuteCommand','updateRenderConfig','10USsqpd','_worksheet','BeforeSheetPrintOpen','getSheetId','SheetPrintCanceled','extend','PrintDirection','executeCommand','get','PrintAlign','57762HpMKHz','232865RkkYfn','Event','registerEventHandler','getUnitId','getActiveUniverSheet','1522512wPwvqv','259gLchoo','PrintHeaderFooterSymbol','print','fireEvent'];_0xcd0c=function(){return _0x3a7bf9;};return _0xcd0c();}_0x495935['extend'](U);class M extends _0x18879f{['_initialize'](_0x4c159a){const _0x302cff=_0x54fc48,_0x5dd993=_0x4c159a[_0x302cff(0xf5)](_0x5add99);this[_0x302cff(0xfa)](this[_0x302cff(0xf9)]['BeforeSheetPrintOpen'],()=>_0x5dd993[_0x302cff(0xe2)](_0x321411=>{const _0x1b4eba=_0x302cff;if(_0x321411['id']===_0x1b00d5['id']){const _0x53c854=this['getActiveUniverSheet']();if(!_0x53c854)return;const _0x26e4c2={'workbook':_0x53c854,'worksheet':_0x53c854['getActiveSheet']()};if(_0x26e4c2==null)return;if(this[_0x1b4eba(0xcb)](this[_0x1b4eba(0xf9)][_0x1b4eba(0xef)],_0x26e4c2),_0x26e4c2[_0x1b4eba(0xe4)])throw new _0x31e4c5();}})),this[_0x302cff(0xfa)](this[_0x302cff(0xf9)][_0x302cff(0xd8)],()=>_0x5dd993['beforeCommandExecuted'](_0x5762b6=>{const _0x24982e=_0x302cff;if(_0x5762b6['id']===_0x22c3b0['id']){const _0x112a26=_0x4c159a[_0x24982e(0xf5)](_0x6a0231);if(!this[_0x24982e(0xfc)]())return;const _0x5ee5de={'layoutConfig':_0x112a26['layoutConfig'],'renderConfig':_0x112a26['renderConfig']};if(_0x5ee5de==null)return;if(this['fireEvent'](this['Event'][_0x24982e(0xd8)],_0x5ee5de),_0x5ee5de[_0x24982e(0xe4)])throw new _0x31e4c5();}})),this['registerEventHandler'](this[_0x302cff(0xf9)]['BeforeSheetPrintCanceled'],()=>_0x5dd993[_0x302cff(0xe2)](_0x41bf8e=>{const _0x17356e=_0x302cff;if(_0x41bf8e['id']===_0x2d088e['id']){const _0x1c4c80=_0x4c159a[_0x17356e(0xf5)](_0x6a0231);if(!this[_0x17356e(0xfc)]())return;const _0x275c89={'layoutConfig':_0x1c4c80[_0x17356e(0xdb)],'renderConfig':_0x1c4c80[_0x17356e(0xdf)]};if(_0x275c89==null)return;if(this[_0x17356e(0xcb)](this['Event']['BeforeSheetPrintCanceled'],_0x275c89),_0x275c89[_0x17356e(0xe4)])throw new _0x31e4c5();}})),this[_0x302cff(0xfa)](this[_0x302cff(0xf9)][_0x302cff(0xe5)],()=>_0x5dd993[_0x302cff(0xd0)](_0xec4a2=>{const _0x268950=_0x302cff;if(_0xec4a2['id']===_0x1b00d5['id']){const _0x4b721a=this[_0x268950(0xfc)]();if(!_0x4b721a)return;const _0x40cb46={'workbook':_0x4b721a,'worksheet':_0x4b721a[_0x268950(0xe7)]()};if(_0x40cb46==null)return;this[_0x268950(0xcb)](this[_0x268950(0xf9)]['SheetPrintOpen'],_0x40cb46);}})),this['registerEventHandler'](this[_0x302cff(0xf9)][_0x302cff(0xdd)],()=>_0x5dd993[_0x302cff(0xd0)](_0x2e9108=>{const _0x5f46f8=_0x302cff;if(_0x2e9108['id']===_0x22c3b0['id']){const _0x1a654f=_0x4c159a[_0x5f46f8(0xf5)](_0x6a0231);if(!this['getActiveUniverSheet']())return;const _0x4ae145={'layoutConfig':_0x1a654f[_0x5f46f8(0xdb)],'renderConfig':_0x1a654f['renderConfig']};if(_0x4ae145==null)return;this['fireEvent'](this[_0x5f46f8(0xf9)][_0x5f46f8(0xdd)],_0x4ae145);}})),this['registerEventHandler'](this[_0x302cff(0xf9)][_0x302cff(0xf1)],()=>_0x5dd993[_0x302cff(0xd0)](_0x1e8c2e=>{const _0x3be8f7=_0x302cff;if(_0x1e8c2e['id']===_0x2d088e['id']){const _0x1cd0fd=_0x4c159a[_0x3be8f7(0xf5)](_0x6a0231);if(!this[_0x3be8f7(0xfc)]())return;const _0x153ece={'layoutConfig':_0x1cd0fd['layoutConfig'],'renderConfig':_0x1cd0fd[_0x3be8f7(0xdf)]};if(_0x153ece==null)return;this[_0x3be8f7(0xcb)](this[_0x3be8f7(0xf9)][_0x3be8f7(0xf1)],_0x153ece);}}));}}_0x18879f[_0x54fc48(0xf2)](M);
1
+ const _0x31021a=_0x4b65;(function(_0x3296cf,_0x55cacc){const _0x47d980=_0x4b65,_0x2a0358=_0x3296cf();while(!![]){try{const _0x414f79=parseInt(_0x47d980(0xea))/0x1*(-parseInt(_0x47d980(0x106))/0x2)+parseInt(_0x47d980(0x111))/0x3+parseInt(_0x47d980(0xe5))/0x4+parseInt(_0x47d980(0x10a))/0x5*(-parseInt(_0x47d980(0x115))/0x6)+-parseInt(_0x47d980(0xe6))/0x7+parseInt(_0x47d980(0xff))/0x8+-parseInt(_0x47d980(0x101))/0x9*(-parseInt(_0x47d980(0x102))/0xa);if(_0x414f79===_0x55cacc)break;else _0x2a0358['push'](_0x2a0358['shift']());}catch(_0x419da2){_0x2a0358['push'](_0x2a0358['shift']());}}}(_0x2290,0xece7e));function _0x4b65(_0x49b26f,_0x1e47ac){const _0x22901f=_0x2290();return _0x4b65=function(_0x4b65d5,_0x23ef88){_0x4b65d5=_0x4b65d5-0xe2;let _0x30840b=_0x22901f[_0x4b65d5];return _0x30840b;},_0x4b65(_0x49b26f,_0x1e47ac);}import{ISheetPrintManagerService as _0x2b8440,ConfirmSheetPrintOperation as _0x4780b6,SheetPrintOpenOperation as _0x1bb617,CancelSheetPrintOperation as _0x4659d1,hasPrintFacadePermission as _0x426c45,SheetScreenShotOperation as _0xe7b58c,SheetPrintClientService as _0x2d2ca4,PrintArea as _0xdaee1f,PrintFreeze as _0xd5bc36,PrintHeaderFooter as _0x5b812e,PrintHeaderFooterSymbol as _0x39d95c}from'@univerjs-pro/sheets-print';import{ICommandService as _0x577950,PaperType as _0x41a1e7,CanceledError as _0x4d951f}from'@univerjs/core';import{FWorkbook as _0x7814cf,FRange as _0x5c534b}from'@univerjs/sheets/facade';import{FEventName as _0x156714,FEnum as _0x5ada8c,FUniver as _0x2803a8}from'@univerjs/core/facade';import{PrintAlign as _0xf9b87c,PrintPaperMargin as _0x1bb101,PrintScale as _0x4fbc0d,PrintDirection as _0x42184b}from'@univerjs-pro/print';class A extends _0x7814cf{[_0x31021a(0x104)](_0x37ff46){const _0x3f3fcc=_0x31021a;return this[_0x3f3fcc(0x103)][_0x3f3fcc(0xec)](_0x2b8440)[_0x3f3fcc(0xe9)](_0x37ff46),this;}[_0x31021a(0xe2)](_0x1904bd){const _0x2815e3=_0x31021a;return this[_0x2815e3(0x103)]['get'](_0x2b8440)[_0x2815e3(0x105)](_0x1904bd),this;}[_0x31021a(0x110)](){const _0xe44313=_0x31021a;return this[_0xe44313(0x103)][_0xe44313(0xec)](_0x577950)[_0xe44313(0x114)](_0x4780b6['id']);}[_0x31021a(0xf9)](){const _0x2a7f62=_0x31021a;return this[_0x2a7f62(0x103)][_0x2a7f62(0xec)](_0x577950)[_0x2a7f62(0x114)](_0x1bb617['id']);}['closePrintDialog'](){const _0x1bbeef=_0x31021a;return this[_0x1bbeef(0x103)]['get'](_0x577950)['syncExecuteCommand'](_0x4659d1['id']);}async[_0x31021a(0x10b)](){const _0x5ad999=_0x31021a;return _0x426c45(this[_0x5ad999(0x103)])?this[_0x5ad999(0x103)]['get'](_0x577950)[_0x5ad999(0x10c)](_0xe7b58c['id']):!0x1;}}function _0x2290(){const _0x457ac7=['renderConfig','_initialize','openPrintDialog','PrintDirection','_range','Event','layoutConfig','PrintAlign','14119288NTppFn','PrintScale','8038719jhhrfV','10owfXRQ','_injector','updatePrintConfig','updateRenderConfig','3388698yUXfVM','onCommandExecuted','SheetPrintConfirmed','getSheetId','1722685mQvHiU','saveScreenshotToClipboard','executeCommand','registerEventHandler','SheetPrintCanceled','PrintArea','print','3464106wnlmie','_worksheet','BeforeSheetPrintConfirm','syncExecuteCommand','18MiNsVr','getScreenshot','updatePrintRenderConfig','getActiveUniverSheet','PrintHeaderFooter','851984KeutxW','2292318KAcLtI','BeforeSheetPrintOpen','fireEvent','updateLayoutConfig','1ttXjAK','beforeCommandExecuted','get','BeforeSheetPrintCanceled','PrintFreeze','getActiveSheet','extend','getUnitId','PrintPaperSize','cancel','SheetPrintOpen','getRangeImage','PrintHeaderFooterSymbol'];_0x2290=function(){return _0x457ac7;};return _0x2290();}_0x7814cf['extend'](A);class B extends _0x5c534b{[_0x31021a(0x116)](){const _0x2ef55c=_0x31021a;return _0x426c45(this['_injector'])?this[_0x2ef55c(0x103)][_0x2ef55c(0xec)](_0x2d2ca4)[_0x2ef55c(0xf5)](this['_workbook'][_0x2ef55c(0xf1)](),this[_0x2ef55c(0x112)][_0x2ef55c(0x109)](),this[_0x2ef55c(0xfb)]):!0x1;}}_0x5c534b['extend'](B);class H{get[_0x31021a(0xe7)](){return'BeforeSheetPrintOpen';}get[_0x31021a(0x113)](){const _0x5c06a9=_0x31021a;return _0x5c06a9(0x113);}get[_0x31021a(0xed)](){const _0x45435e=_0x31021a;return _0x45435e(0xed);}get[_0x31021a(0xf4)](){const _0x5dc80d=_0x31021a;return _0x5dc80d(0xf4);}get[_0x31021a(0x108)](){return'SheetPrintConfirmed';}get['SheetPrintCanceled'](){const _0x2f6333=_0x31021a;return _0x2f6333(0x10e);}}_0x156714[_0x31021a(0xf0)](H);class U{get[_0x31021a(0x10f)](){return _0xdaee1f;}get[_0x31021a(0xfe)](){return _0xf9b87c;}get[_0x31021a(0xf2)](){return _0x41a1e7;}get['PrintPaperMargin'](){return _0x1bb101;}get[_0x31021a(0x100)](){return _0x4fbc0d;}get[_0x31021a(0xfa)](){return _0x42184b;}get[_0x31021a(0xee)](){return _0xd5bc36;}get[_0x31021a(0xe4)](){return _0x5b812e;}get[_0x31021a(0xf6)](){return _0x39d95c;}}_0x5ada8c[_0x31021a(0xf0)](U);class M extends _0x2803a8{[_0x31021a(0xf8)](_0x5d07f8){const _0x1ba245=_0x31021a,_0xd29b0a=_0x5d07f8[_0x1ba245(0xec)](_0x577950);this['registerEventHandler'](this[_0x1ba245(0xfc)][_0x1ba245(0xe7)],()=>_0xd29b0a[_0x1ba245(0xeb)](_0x1a2795=>{const _0x5bafea=_0x1ba245;if(_0x1a2795['id']===_0x1bb617['id']){const _0x20855b=this[_0x5bafea(0xe3)]();if(!_0x20855b)return;const _0x4adce1={'workbook':_0x20855b,'worksheet':_0x20855b[_0x5bafea(0xef)]()};if(_0x4adce1==null)return;if(this[_0x5bafea(0xe8)](this[_0x5bafea(0xfc)][_0x5bafea(0xe7)],_0x4adce1),_0x4adce1[_0x5bafea(0xf3)])throw new _0x4d951f();}})),this[_0x1ba245(0x10d)](this[_0x1ba245(0xfc)][_0x1ba245(0x113)],()=>_0xd29b0a[_0x1ba245(0xeb)](_0x537546=>{const _0x4f1bc9=_0x1ba245;if(_0x537546['id']===_0x4780b6['id']){const _0x169673=_0x5d07f8[_0x4f1bc9(0xec)](_0x2b8440);if(!this['getActiveUniverSheet']())return;const _0x1bb057={'layoutConfig':_0x169673[_0x4f1bc9(0xfd)],'renderConfig':_0x169673[_0x4f1bc9(0xf7)]};if(_0x1bb057==null)return;if(this[_0x4f1bc9(0xe8)](this['Event'][_0x4f1bc9(0x113)],_0x1bb057),_0x1bb057[_0x4f1bc9(0xf3)])throw new _0x4d951f();}})),this[_0x1ba245(0x10d)](this[_0x1ba245(0xfc)][_0x1ba245(0xed)],()=>_0xd29b0a[_0x1ba245(0xeb)](_0x414ad6=>{const _0xb136da=_0x1ba245;if(_0x414ad6['id']===_0x4659d1['id']){const _0xc944d1=_0x5d07f8[_0xb136da(0xec)](_0x2b8440);if(!this[_0xb136da(0xe3)]())return;const _0x5ba3af={'layoutConfig':_0xc944d1[_0xb136da(0xfd)],'renderConfig':_0xc944d1['renderConfig']};if(_0x5ba3af==null)return;if(this[_0xb136da(0xe8)](this['Event'][_0xb136da(0xed)],_0x5ba3af),_0x5ba3af[_0xb136da(0xf3)])throw new _0x4d951f();}})),this[_0x1ba245(0x10d)](this[_0x1ba245(0xfc)]['SheetPrintOpen'],()=>_0xd29b0a[_0x1ba245(0x107)](_0x503d4d=>{const _0x2a865d=_0x1ba245;if(_0x503d4d['id']===_0x1bb617['id']){const _0xa5cc5d=this[_0x2a865d(0xe3)]();if(!_0xa5cc5d)return;const _0x314657={'workbook':_0xa5cc5d,'worksheet':_0xa5cc5d[_0x2a865d(0xef)]()};if(_0x314657==null)return;this[_0x2a865d(0xe8)](this[_0x2a865d(0xfc)][_0x2a865d(0xf4)],_0x314657);}})),this[_0x1ba245(0x10d)](this[_0x1ba245(0xfc)][_0x1ba245(0x108)],()=>_0xd29b0a[_0x1ba245(0x107)](_0x13f781=>{const _0x49e8f5=_0x1ba245;if(_0x13f781['id']===_0x4780b6['id']){const _0x101a1f=_0x5d07f8['get'](_0x2b8440);if(!this[_0x49e8f5(0xe3)]())return;const _0x52de75={'layoutConfig':_0x101a1f[_0x49e8f5(0xfd)],'renderConfig':_0x101a1f[_0x49e8f5(0xf7)]};if(_0x52de75==null)return;this[_0x49e8f5(0xe8)](this['Event'][_0x49e8f5(0x108)],_0x52de75);}})),this[_0x1ba245(0x10d)](this[_0x1ba245(0xfc)][_0x1ba245(0x10e)],()=>_0xd29b0a[_0x1ba245(0x107)](_0x289b27=>{const _0x40dc6a=_0x1ba245;if(_0x289b27['id']===_0x4659d1['id']){const _0x9a520b=_0x5d07f8[_0x40dc6a(0xec)](_0x2b8440);if(!this[_0x40dc6a(0xe3)]())return;const _0x1d8b4f={'layoutConfig':_0x9a520b[_0x40dc6a(0xfd)],'renderConfig':_0x9a520b['renderConfig']};if(_0x1d8b4f==null)return;this[_0x40dc6a(0xe8)](this[_0x40dc6a(0xfc)][_0x40dc6a(0x10e)],_0x1d8b4f);}}));}}_0x2803a8[_0x31021a(0xf0)](M);