@univerjs-pro/sheets-print 0.14.0-insiders.20251227-b250a8d → 0.15.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
- 'use strict';const _0x415156=_0xa8c6;(function(_0x3a96ec,_0x4f2504){const _0x3a715c=_0xa8c6,_0x2463ae=_0x3a96ec();while(!![]){try{const _0x15e362=-parseInt(_0x3a715c(0xf8))/0x1*(parseInt(_0x3a715c(0xfb))/0x2)+-parseInt(_0x3a715c(0xc7))/0x3+parseInt(_0x3a715c(0xeb))/0x4*(parseInt(_0x3a715c(0xd6))/0x5)+parseInt(_0x3a715c(0xe0))/0x6*(parseInt(_0x3a715c(0xdb))/0x7)+parseInt(_0x3a715c(0xc5))/0x8*(-parseInt(_0x3a715c(0xea))/0x9)+-parseInt(_0x3a715c(0xf5))/0xa*(-parseInt(_0x3a715c(0xdf))/0xb)+parseInt(_0x3a715c(0xde))/0xc*(parseInt(_0x3a715c(0xbf))/0xd);if(_0x15e362===_0x4f2504)break;else _0x2463ae['push'](_0x2463ae['shift']());}catch(_0x1035c9){_0x2463ae['push'](_0x2463ae['shift']());}}}(_0x52ec,0x6b790));function _0xa8c6(_0x4c614e,_0x5ed51a){_0x4c614e=_0x4c614e-0xb5;const _0x52ecc2=_0x52ec();let _0xa8c6c8=_0x52ecc2[_0x4c614e];return _0xa8c6c8;}const t={'print':{'header':{'total':'打印页数:','pages':'页','cancel':'取消','next':_0x415156(0xe1),'printing':'正在打印,请勿关闭页面'},'menu':'打印','title':_0x415156(0xd4),'grid':{'title':_0x415156(0xbd),'showGrid':_0x415156(0xd2),'showGridLabel':'显示分页辅助线','closeAndHide':_0x415156(0xc4)},'screenshot':{'title':_0x415156(0xe3),'success':_0x415156(0xcb),'fail':_0x415156(0xe4)},'size':{'title':_0x415156(0xb6),'letter':'信纸(21.6厘米\x20x\x2027.9厘米)','tabloid':'小报(27.9厘米\x20x\x2043.2厘米)','legal':'法律专用纸(21.6厘米\x20x\x2035.6厘米)','statement':'报表(14.0厘米\x20x\x2021.6厘米)','executive':_0x415156(0xd0),'folio':_0x415156(0xcf),'a3':_0x415156(0xba),'a4':_0x415156(0xf4),'a5':_0x415156(0xdd),'b4':'B425.0厘米\x20x\x2035.3厘米)','b5':_0x415156(0xd8)},'margin':{'title':'边距','normal':'正常','narrow':'窄','wide':'宽','custom':_0x415156(0xce),'top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'打印范围','currentSheet':_0x415156(0xbe),'workbook':_0x415156(0xc2),'currentSelection':_0x415156(0xef),'maxRowsEachPage':_0x415156(0xf2),'maxColumnsEachPage':_0x415156(0xe8),'limit':_0x415156(0xc3),'allSelection':_0x415156(0xfa)},'selection':{'title':'选择','allWorkbook':_0x415156(0xf1),'workbookUnit':'张工作表'},'scale':{'title':'缩放','normal':'正常\x20(100%)','fitWidth':'适合宽度','fitHeight':'适合高度','fitPage':'适合页面大小','custom':'Custom\x20number'},'orientation':{'title':_0x415156(0xee),'landscape':'横向','portrait':'纵向'},'formatting':{'title':'内容','skeleton':_0x415156(0xcd),'waterMark':_0x415156(0xda)},'align':{'title':'对齐方式','horizontal':{'title':'Horizontal','middle':_0x415156(0xe5),'start':_0x415156(0xdc),'end':_0x415156(0xb7)},'vertical':{'title':'Vertical','start':_0x415156(0xf0),'end':_0x415156(0xb9),'middle':_0x415156(0xb8)}},'headerFooter':{'title':_0x415156(0xe2),'page':'页码','workbook':_0x415156(0xcc),'sheet':_0x415156(0xbc),'date':'当前日期','time':_0x415156(0xbb),'customHeadFooter':'自定义页眉页脚','editCustomHeadFooter':_0x415156(0xe6),'header':'页眉','footer':'页脚','left':'左','right':'右','center':'中','dateFormat':'日期格式','dateA':'YYYY-MM-DD','dateB':_0x415156(0xd1),'dateC':'L','dateD':_0x415156(0xf6),'timeA':'HH:mm:ss','timeB':_0x415156(0xc1),'timeC':_0x415156(0xd5),'timeD':'LT','display':{'page':'页码','title':_0x415156(0xcc),'sheet':'工作簿名称','dateA':_0x415156(0xf3),'dateB':_0x415156(0xd9),'dateC':_0x415156(0xd7),'dateD':'日期4','dateE':_0x415156(0xd3),'dateF':'日期6','timeA':_0x415156(0xf9),'timeB':'时间2','timeC':_0x415156(0xc8),'timeD':'时间4','sheetPage':'子表页码','pageTotal':_0x415156(0xca),'sheetPageTotal':_0x415156(0xc9)},'placeholder':_0x415156(0xec),'submit':'确定'},'freeze':{'title':_0x415156(0xb5),'desc':_0x415156(0xc0),'row':_0x415156(0xe9),'column':_0x415156(0xed)},'limit':{'page':_0x415156(0xf7),'waterMark':_0x415156(0xc6),'link':_0x415156(0xe7)}}};function _0x52ec(){const _0x66b4dd=['左对齐','A5(14.8厘米\x20x\x2021.0厘米)','60YIiOhD','110qZzids','383694eCmGOE','下一步','页眉和页脚','复制为截图','图片已保存失败','水平居中','编辑自定义页眉页脚','https://univer.ai/pro','每页最大列数','重复冻结行','27emGbWQ','2096hoZKzM','点击可添加文本','重复冻结列','页面方向','已选范围','顶部对齐','所有工作表','每页最大行数','日期1','A4(21.0厘米\x20x\x2029.7厘米)','780880qEhbdy','MM月DD日','免费版仅支持\x20{limit}\x20页打印,高级功能请购买商业版!','1SRRymj','时间1','所有已选范围','93286waAJpX','行标题与列标题','纸张大小','右对齐','垂直居中','底部对齐','A3(29.7厘米\x20x\x2042.0厘米)','当前时间','工作簿名称','打印布局','当前工作表','676325zNioME','转到“查看”>“冻结”可选择要在所有页面重复的行/列','HH:mm','工作簿','行和列限制','关闭并隐藏辅助线','1743080MyYakU','Univer\x20免费版本,由\x20univer.ai\x20提供支持。','2058366AnMBmt','时间3','子表总页数','总页数','图片已保存到剪贴板','工作簿标题','网格线','自定义页边距','对折纸(21.6厘米\x20x\x2033.0厘米)','行政公文纸(18.4厘米\x20x\x2026.7厘米)','MM-DD','显示分页辅助线','日期5','打印设置','LTS','3225VsIlzZ','日期3','B5(17.6厘米\x20x\x2025.0厘米)','日期2','显示水印','49DHADHZ'];_0x52ec=function(){return _0x66b4dd;};return _0x52ec();}module['exports']=t;
1
+ 'use strict';const _0x40bbe2=_0x22df;function _0x3b90(){const _0x2bea4e=['209990jKUoVI','显示分页辅助线','B4(25.0厘米\x20x\x2035.3厘米)','图片已保存失败','所有工作表','工作簿名称','286Ucpifm','所有已选范围','页眉和页脚','网格线','日期格式','日期1','正常\x20(100%)','已选范围','B5(17.6厘米\x20x\x2025.0厘米)','行和列限制','Custom\x20number','时间3','适合宽度','当前日期','适合页面大小','MM-DD','114612vXAJvO','重复冻结列','适合高度','当前工作表','152zRaLmB','小报(27.9厘米\x20x\x2043.2厘米)','MM月DD日','顶部对齐','日期3','行标题与列标题','A3(29.7厘米\x20x\x2042.0厘米)','法律专用纸(21.6厘米\x20x\x2035.6厘米)','161gdTsRD','免费版仅支持\x20{limit}\x20页打印,高级功能请购买商业版!','对折纸(21.6厘米\x20x\x2033.0厘米)','信纸(21.6厘米\x20x\x2027.9厘米)','784PEYESy','Univer\x20免费版本,由\x20univer.ai\x20提供支持。','4719qAqXDW','2034CJkUDa','总页数','时间4','显示水印','日期5','每页最大行数','日期6','子表总页数','工作簿标题','点击可添加文本','32532hWyNwG','LTS','exports','行政公文纸(18.4厘米\x20x\x2026.7厘米)','自定义页眉页脚','Vertical','Horizontal','日期2','打印设置','转到“查看”>“冻结”可选择要在所有页面重复的行/列','4646718kmEKgf','关闭并隐藏辅助线','编辑自定义页眉页脚','下一步','报表(14.0厘米\x20x\x2021.6厘米)','A4(21.0厘米\x20x\x2029.7厘米)','472eKkqXg','工作簿','垂直居中','HH:mm:ss','4357DwhpyR','页面方向','左对齐','157280iPYktQ','右对齐','日期4','自定义页边距','对齐方式','底部对齐','时间2','子表页码','复制为截图'];_0x3b90=function(){return _0x2bea4e;};return _0x3b90();}(function(_0x4fc997,_0xf98595){const _0x4004d2=_0x22df,_0x50b6f6=_0x4fc997();while(!![]){try{const _0x45d783=-parseInt(_0x4004d2(0xd7))/0x1*(parseInt(_0x4004d2(0xb6))/0x2)+-parseInt(_0x4004d2(0xcd))/0x3+-parseInt(_0x4004d2(0xaa))/0x4*(-parseInt(_0x4004d2(0xda))/0x5)+-parseInt(_0x4004d2(0xc3))/0x6*(-parseInt(_0x4004d2(0xb2))/0x7)+parseInt(_0x4004d2(0xd3))/0x8*(-parseInt(_0x4004d2(0xb9))/0x9)+parseInt(_0x4004d2(0xe3))/0xa*(-parseInt(_0x4004d2(0xe9))/0xb)+parseInt(_0x4004d2(0xa6))/0xc*(parseInt(_0x4004d2(0xb8))/0xd);if(_0x45d783===_0xf98595)break;else _0x50b6f6['push'](_0x50b6f6['shift']());}catch(_0x5abd63){_0x50b6f6['push'](_0x50b6f6['shift']());}}}(_0x3b90,0xed089));const t={'print':{'header':{'total':'打印页数:','pages':'页','cancel':'取消','next':_0x40bbe2(0xd0),'printing':'正在打印,请勿关闭页面'},'menu':'打印','title':_0x40bbe2(0xcb),'grid':{'title':'打印布局','showGrid':'显示分页辅助线','showGridLabel':_0x40bbe2(0xe4),'closeAndHide':_0x40bbe2(0xce)},'screenshot':{'title':_0x40bbe2(0xe2),'success':'图片已保存到剪贴板','fail':_0x40bbe2(0xe6)},'size':{'title':'纸张大小','letter':_0x40bbe2(0xb5),'tabloid':_0x40bbe2(0xab),'legal':_0x40bbe2(0xb1),'statement':_0x40bbe2(0xd1),'executive':_0x40bbe2(0xc6),'folio':_0x40bbe2(0xb4),'a3':_0x40bbe2(0xb0),'a4':_0x40bbe2(0xd2),'a5':'A514.8厘米\x20x\x2021.0厘米)','b4':_0x40bbe2(0xe5),'b5':_0x40bbe2(0xf1)},'margin':{'title':'边距','normal':'正常','narrow':'窄','wide':'宽','custom':_0x40bbe2(0xdd),'top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'打印范围','currentSheet':_0x40bbe2(0xa9),'workbook':_0x40bbe2(0xd4),'currentSelection':_0x40bbe2(0xf0),'maxRowsEachPage':_0x40bbe2(0xbe),'maxColumnsEachPage':'每页最大列数','limit':_0x40bbe2(0xf2),'allSelection':_0x40bbe2(0xea)},'selection':{'title':'选择','allWorkbook':_0x40bbe2(0xe7),'workbookUnit':'张工作表'},'scale':{'title':'缩放','normal':_0x40bbe2(0xef),'fitWidth':_0x40bbe2(0xf5),'fitHeight':_0x40bbe2(0xa8),'fitPage':_0x40bbe2(0xa4),'custom':_0x40bbe2(0xf3)},'orientation':{'title':_0x40bbe2(0xd8),'landscape':'横向','portrait':'纵向'},'formatting':{'title':'内容','skeleton':_0x40bbe2(0xec),'waterMark':_0x40bbe2(0xbc)},'align':{'title':_0x40bbe2(0xde),'horizontal':{'title':_0x40bbe2(0xc9),'middle':'水平居中','start':_0x40bbe2(0xd9),'end':_0x40bbe2(0xdb)},'vertical':{'title':_0x40bbe2(0xc8),'start':_0x40bbe2(0xad),'end':_0x40bbe2(0xdf),'middle':_0x40bbe2(0xd5)}},'headerFooter':{'title':_0x40bbe2(0xeb),'page':'页码','workbook':_0x40bbe2(0xc1),'sheet':_0x40bbe2(0xe8),'date':_0x40bbe2(0xa3),'time':'当前时间','customHeadFooter':_0x40bbe2(0xc7),'editCustomHeadFooter':_0x40bbe2(0xcf),'header':'页眉','footer':'页脚','left':'左','right':'右','center':'中','dateFormat':_0x40bbe2(0xed),'dateA':'YYYY-MM-DD','dateB':_0x40bbe2(0xa5),'dateC':'L','dateD':_0x40bbe2(0xac),'timeA':_0x40bbe2(0xd6),'timeB':'HH:mm','timeC':_0x40bbe2(0xc4),'timeD':'LT','display':{'page':'页码','title':_0x40bbe2(0xc1),'sheet':'工作簿名称','dateA':_0x40bbe2(0xee),'dateB':_0x40bbe2(0xca),'dateC':_0x40bbe2(0xae),'dateD':_0x40bbe2(0xdc),'dateE':_0x40bbe2(0xbd),'dateF':_0x40bbe2(0xbf),'timeA':'时间1','timeB':_0x40bbe2(0xe0),'timeC':_0x40bbe2(0xf4),'timeD':_0x40bbe2(0xbb),'sheetPage':_0x40bbe2(0xe1),'pageTotal':_0x40bbe2(0xba),'sheetPageTotal':_0x40bbe2(0xc0)},'placeholder':_0x40bbe2(0xc2),'submit':'确定'},'freeze':{'title':_0x40bbe2(0xaf),'desc':_0x40bbe2(0xcc),'row':'重复冻结行','column':_0x40bbe2(0xa7)},'limit':{'page':_0x40bbe2(0xb3),'waterMark':_0x40bbe2(0xb7),'link':'https://univer.ai/pro'}}};function _0x22df(_0x5ba9f3,_0xdc5f01){_0x5ba9f3=_0x5ba9f3-0xa3;const _0x3b90e7=_0x3b90();let _0x22dfb5=_0x3b90e7[_0x5ba9f3];return _0x22dfb5;}module[_0x40bbe2(0xc5)]=t;
@@ -1 +1 @@
1
- 'use strict';function _0x3d66(_0xfe5ef8,_0x2d354a){_0xfe5ef8=_0xfe5ef8-0x173;const _0x3fc22c=_0x3fc2();let _0x3d669f=_0x3fc22c[_0xfe5ef8];return _0x3d669f;}const _0x28f4f2=_0x3d66;(function(_0x1b932f,_0x16a1cd){const _0x513c25=_0x3d66,_0x52ac32=_0x1b932f();while(!![]){try{const _0x144b10=parseInt(_0x513c25(0x1a0))/0x1*(-parseInt(_0x513c25(0x195))/0x2)+-parseInt(_0x513c25(0x186))/0x3+-parseInt(_0x513c25(0x197))/0x4*(-parseInt(_0x513c25(0x1ad))/0x5)+parseInt(_0x513c25(0x177))/0x6*(-parseInt(_0x513c25(0x189))/0x7)+parseInt(_0x513c25(0x1b2))/0x8*(-parseInt(_0x513c25(0x1b8))/0x9)+parseInt(_0x513c25(0x181))/0xa+parseInt(_0x513c25(0x1b4))/0xb*(parseInt(_0x513c25(0x19b))/0xc);if(_0x144b10===_0x16a1cd)break;else _0x52ac32['push'](_0x52ac32['shift']());}catch(_0x4d913c){_0x52ac32['push'](_0x52ac32['shift']());}}}(_0x3fc2,0xe725f));function _0x3fc2(){const _0x530ca2=['Folio\x20(8.5\x22\x20x\x2013\x22)','exports','1236bXbKJH','關閉並隱藏分頁線','Executive\x20(7.25\x22\x20x\x2010.5\x22)','列與欄限制','標準\x20(100%)','1bcJdtv','紙張大小','重複凍結的列','HH:mm:ss','圖片已成功複製到剪貼簿!','活頁簿','時間C','列印中,請勿關閉頁面','B4\x20(9.84\x22\x20x\x2013.90\x22)','列與欄標題','已選取的儲存格','日期D','工作表總頁數','1586240DlqApX','重複凍結的欄','所有工作表','頁面方向','Legal\x20(8.5\x22\x20x\x2014\x22)','92256xQtAqh','Univer\x20免費版本,由\x20univer.ai\x20提供支援。','370579aKFCoE','格式設定','工作表頁碼','日期E','72PvYgVW','日期C','時間B','每頁最大欄數','日期格式','總計:','30EhFcXZ','A4\x20(8.27\x22\x20x\x2011.69\x22)','所有選取的儲存格','顯示浮水印','編輯自訂頁首/頁尾','工作表名稱','複製為圖片','時間D','目前日期','HH:mm','9238770ugXevg','顯示分頁符號','A3\x20(11.69\x22\x20x\x2016.54\x22)','目前時間','自訂頁首/頁尾','5468346OzdmHs','自訂比例','自訂义頁邊距','1378692GWDVyw','選取範圍','免費版僅支援\x20{limit}\x20頁列印,進階功能請購買商業版!','Statement\x20(5.5\x22\x20x\x208.5\x22)','日期A','日期B','目前工作表','下一步','頁首和頁尾','日期F','MM/DD','調整至頁面寬度','3632470RnPyci','總頁數','16faWEah','Tabloid\x20(11\x22\x20x\x2017\x22)'];_0x3fc2=function(){return _0x530ca2;};return _0x3fc2();}const e={'print':{'header':{'total':_0x28f4f2(0x176),'pages':'頁','cancel':'取消','next':_0x28f4f2(0x190),'printing':_0x28f4f2(0x1a7)},'menu':'列印','title':'列印','grid':{'title':'列印版面配置','showGrid':_0x28f4f2(0x182),'showGridLabel':'顯示分頁線','closeAndHide':_0x28f4f2(0x19c)},'screenshot':{'title':_0x28f4f2(0x17d),'success':_0x28f4f2(0x1a4),'fail':'圖片複製到剪貼簿失敗!'},'size':{'title':_0x28f4f2(0x1a1),'letter':'Letter\x20(8.5\x22\x20x\x2011\x22)','tabloid':_0x28f4f2(0x198),'legal':_0x28f4f2(0x1b1),'statement':_0x28f4f2(0x18c),'executive':_0x28f4f2(0x19d),'folio':_0x28f4f2(0x199),'a3':_0x28f4f2(0x183),'a4':_0x28f4f2(0x178),'a5':'A5\x20(5.83\x22\x20x\x208.27\x22)','b4':_0x28f4f2(0x1a8),'b5':'B5\x20(6.93\x22\x20x\x209.84\x22)'},'margin':{'title':'邊距','normal':'標準','narrow':'窄','wide':'寬','custom':_0x28f4f2(0x188),'top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'列印','currentSheet':_0x28f4f2(0x18f),'workbook':_0x28f4f2(0x1a5),'currentSelection':_0x28f4f2(0x1aa),'maxRowsEachPage':'每頁最大列數','maxColumnsEachPage':_0x28f4f2(0x174),'limit':_0x28f4f2(0x19e),'allSelection':_0x28f4f2(0x179)},'selection':{'title':_0x28f4f2(0x18a),'allWorkbook':_0x28f4f2(0x1af),'workbookUnit':'張工作表'},'scale':{'title':'縮放','normal':_0x28f4f2(0x19f),'fitWidth':_0x28f4f2(0x194),'fitHeight':'調整至頁面高度','fitPage':'調整至頁面大小','custom':_0x28f4f2(0x187)},'orientation':{'title':_0x28f4f2(0x1b0),'landscape':'橫向','portrait':'直向'},'formatting':{'title':_0x28f4f2(0x1b5),'skeleton':'顯示格線','waterMark':_0x28f4f2(0x17a)},'align':{'title':'對齊','horizontal':{'title':'水平對齊','middle':'置中','start':'靠左','end':'靠右'},'vertical':{'title':'垂直對齊','start':'靠上','end':'靠下','middle':'置中'}},'headerFooter':{'title':_0x28f4f2(0x191),'page':'頁碼','workbook':'活頁簿標題','sheet':_0x28f4f2(0x17c),'date':_0x28f4f2(0x17f),'time':_0x28f4f2(0x184),'customHeadFooter':_0x28f4f2(0x185),'editCustomHeadFooter':_0x28f4f2(0x17b),'header':'頁首','footer':'頁尾','left':'左側','right':'右側','center':'中間','dateFormat':_0x28f4f2(0x175),'dateA':'YYYY-MM-DD','dateB':'MM-DD','dateC':'L','dateD':_0x28f4f2(0x193),'timeA':_0x28f4f2(0x1a3),'timeB':_0x28f4f2(0x180),'timeC':'hh:mm:ss','timeD':'hh:mm','display':{'page':'頁碼','title':'活頁簿標題','sheet':_0x28f4f2(0x17c),'dateA':_0x28f4f2(0x18d),'dateB':_0x28f4f2(0x18e),'dateC':_0x28f4f2(0x1b9),'dateD':_0x28f4f2(0x1ab),'dateE':_0x28f4f2(0x1b7),'dateF':_0x28f4f2(0x192),'timeA':'時間A','timeB':_0x28f4f2(0x173),'timeC':_0x28f4f2(0x1a6),'timeD':_0x28f4f2(0x17e),'sheetPage':_0x28f4f2(0x1b6),'pageTotal':_0x28f4f2(0x196),'sheetPageTotal':_0x28f4f2(0x1ac)},'placeholder':'點擊以新增文字','submit':'確定'},'freeze':{'title':_0x28f4f2(0x1a9),'desc':'前往\x20檢視\x20>\x20凍結\x20以選擇要在所有頁面重複的列/欄','row':_0x28f4f2(0x1a2),'column':_0x28f4f2(0x1ae)},'limit':{'page':_0x28f4f2(0x18b),'waterMark':_0x28f4f2(0x1b3),'link':'https://univer.ai/pro'}}};module[_0x28f4f2(0x19a)]=e;
1
+ 'use strict';const _0x4e3ec1=_0x12ec;(function(_0x8fade1,_0x2cbc96){const _0x60b764=_0x12ec,_0x251bd0=_0x8fade1();while(!![]){try{const _0x5243c6=-parseInt(_0x60b764(0x160))/0x1+parseInt(_0x60b764(0x161))/0x2+parseInt(_0x60b764(0x13d))/0x3*(-parseInt(_0x60b764(0x16e))/0x4)+-parseInt(_0x60b764(0x16b))/0x5+-parseInt(_0x60b764(0x13f))/0x6*(parseInt(_0x60b764(0x145))/0x7)+-parseInt(_0x60b764(0x165))/0x8*(parseInt(_0x60b764(0x180))/0x9)+parseInt(_0x60b764(0x156))/0xa;if(_0x5243c6===_0x2cbc96)break;else _0x251bd0['push'](_0x251bd0['shift']());}catch(_0x2fbae4){_0x251bd0['push'](_0x251bd0['shift']());}}}(_0x5bd6,0x59816));function _0x12ec(_0x27ac20,_0x1c9933){_0x27ac20=_0x27ac20-0x138;const _0x5bd646=_0x5bd6();let _0x12ecfc=_0x5bd646[_0x27ac20];return _0x12ecfc;}const e={'print':{'header':{'total':_0x4e3ec1(0x17b),'pages':'頁','cancel':'取消','next':'下一步','printing':'列印中,請勿關閉頁面'},'menu':'列印','title':'列印','grid':{'title':_0x4e3ec1(0x150),'showGrid':_0x4e3ec1(0x17e),'showGridLabel':_0x4e3ec1(0x13c),'closeAndHide':_0x4e3ec1(0x175)},'screenshot':{'title':_0x4e3ec1(0x15b),'success':_0x4e3ec1(0x170),'fail':_0x4e3ec1(0x14f)},'size':{'title':'紙張大小','letter':'Letter\x20(8.5\x22\x20x\x2011\x22)','tabloid':_0x4e3ec1(0x140),'legal':_0x4e3ec1(0x143),'statement':_0x4e3ec1(0x142),'executive':_0x4e3ec1(0x17a),'folio':_0x4e3ec1(0x153),'a3':'A3\x20(11.69\x22\x20x\x2016.54\x22)','a4':_0x4e3ec1(0x13b),'a5':'A5\x20(5.83\x22\x20x\x208.27\x22)','b4':_0x4e3ec1(0x173),'b5':_0x4e3ec1(0x167)},'margin':{'title':'邊距','normal':'標準','narrow':'窄','wide':'寬','custom':_0x4e3ec1(0x14e),'top':'上','bottom':'下','left':'左','right':'右'},'area':{'title':'列印','currentSheet':_0x4e3ec1(0x14a),'workbook':_0x4e3ec1(0x14d),'currentSelection':_0x4e3ec1(0x16f),'maxRowsEachPage':_0x4e3ec1(0x149),'maxColumnsEachPage':'每頁最大欄數','limit':'列與欄限制','allSelection':_0x4e3ec1(0x15d)},'selection':{'title':_0x4e3ec1(0x162),'allWorkbook':_0x4e3ec1(0x169),'workbookUnit':_0x4e3ec1(0x172)},'scale':{'title':'縮放','normal':_0x4e3ec1(0x157),'fitWidth':_0x4e3ec1(0x15e),'fitHeight':'調整至頁面高度','fitPage':_0x4e3ec1(0x168),'custom':_0x4e3ec1(0x14b)},'orientation':{'title':_0x4e3ec1(0x166),'landscape':'橫向','portrait':'直向'},'formatting':{'title':_0x4e3ec1(0x158),'skeleton':'顯示格線','waterMark':_0x4e3ec1(0x164)},'align':{'title':'對齊','horizontal':{'title':_0x4e3ec1(0x16a),'middle':'置中','start':'靠左','end':'靠右'},'vertical':{'title':'垂直對齊','start':'靠上','end':'靠下','middle':'置中'}},'headerFooter':{'title':'頁首和頁尾','page':'頁碼','workbook':'活頁簿標題','sheet':'工作表名稱','date':'目前日期','time':_0x4e3ec1(0x17f),'customHeadFooter':_0x4e3ec1(0x17c),'editCustomHeadFooter':_0x4e3ec1(0x16d),'header':'頁首','footer':'頁尾','left':'左側','right':'右側','center':'中間','dateFormat':_0x4e3ec1(0x148),'dateA':_0x4e3ec1(0x154),'dateB':_0x4e3ec1(0x15c),'dateC':'L','dateD':_0x4e3ec1(0x15f),'timeA':'HH:mm:ss','timeB':_0x4e3ec1(0x163),'timeC':_0x4e3ec1(0x171),'timeD':_0x4e3ec1(0x174),'display':{'page':'頁碼','title':_0x4e3ec1(0x146),'sheet':_0x4e3ec1(0x14c),'dateA':'日期A','dateB':_0x4e3ec1(0x147),'dateC':_0x4e3ec1(0x176),'dateD':_0x4e3ec1(0x13e),'dateE':_0x4e3ec1(0x151),'dateF':_0x4e3ec1(0x139),'timeA':_0x4e3ec1(0x152),'timeB':_0x4e3ec1(0x17d),'timeC':_0x4e3ec1(0x177),'timeD':_0x4e3ec1(0x15a),'sheetPage':'工作表頁碼','pageTotal':_0x4e3ec1(0x16c),'sheetPageTotal':_0x4e3ec1(0x155)},'placeholder':'點擊以新增文字','submit':'確定'},'freeze':{'title':_0x4e3ec1(0x179),'desc':_0x4e3ec1(0x141),'row':_0x4e3ec1(0x144),'column':_0x4e3ec1(0x159)},'limit':{'page':_0x4e3ec1(0x13a),'waterMark':_0x4e3ec1(0x178),'link':_0x4e3ec1(0x138)}}};function _0x5bd6(){const _0x3717ef=['HH:mm','顯示浮水印','128fulJEw','頁面方向','B5\x20(6.93\x22\x20x\x209.84\x22)','調整至頁面大小','所有工作表','水平對齊','1784515ztecdL','總頁數','編輯自訂頁首/頁尾','4YBEJcl','已選取的儲存格','圖片已成功複製到剪貼簿!','hh:mm:ss','張工作表','B4\x20(9.84\x22\x20x\x2013.90\x22)','hh:mm','關閉並隱藏分頁線','日期C','時間C','Univer\x20免費版本,由\x20univer.ai\x20提供支援。','列與欄標題','Executive\x20(7.25\x22\x20x\x2010.5\x22)','總計:','自訂頁首/頁尾','時間B','顯示分頁符號','目前時間','7578grmrQy','https://univer.ai/pro','日期F','免費版僅支援\x20{limit}\x20頁列印,進階功能請購買商業版!','A4\x20(8.27\x22\x20x\x2011.69\x22)','顯示分頁線','968187uHABbp','日期D','3721662sOIepF','Tabloid\x20(11\x22\x20x\x2017\x22)','前往\x20檢視\x20>\x20凍結\x20以選擇要在所有頁面重複的列/欄','Statement\x20(5.5\x22\x20x\x208.5\x22)','Legal\x20(8.5\x22\x20x\x2014\x22)','重複凍結的列','7cYoLCx','活頁簿標題','日期B','日期格式','每頁最大列數','目前工作表','自訂比例','工作表名稱','活頁簿','自訂义頁邊距','圖片複製到剪貼簿失敗!','列印版面配置','日期E','時間A','Folio\x20(8.5\x22\x20x\x2013\x22)','YYYY-MM-DD','工作表總頁數','19454290CQlxHv','標準\x20(100%)','格式設定','重複凍結的欄','時間D','複製為圖片','MM-DD','所有選取的儲存格','調整至頁面寬度','MM/DD','292606MQpWFb','54344TyyHXT','選取範圍'];_0x5bd6=function(){return _0x3717ef;};return _0x5bd6();}module['exports']=e;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x4e437b=_0x4eb0;(function(_0x47d25f,_0x44a596){const _0x5c8628=_0x4eb0,_0xfadee9=_0x47d25f();while(!![]){try{const _0x55f328=parseInt(_0x5c8628(0x1ae))/0x1*(parseInt(_0x5c8628(0x1c5))/0x2)+-parseInt(_0x5c8628(0x197))/0x3*(parseInt(_0x5c8628(0x1c0))/0x4)+parseInt(_0x5c8628(0x1a2))/0x5*(parseInt(_0x5c8628(0x1b1))/0x6)+-parseInt(_0x5c8628(0x1a4))/0x7+parseInt(_0x5c8628(0x1be))/0x8+parseInt(_0x5c8628(0x1a1))/0x9*(parseInt(_0x5c8628(0x1c3))/0xa)+-parseInt(_0x5c8628(0x1af))/0xb*(parseInt(_0x5c8628(0x19c))/0xc);if(_0x55f328===_0x44a596)break;else _0xfadee9['push'](_0xfadee9['shift']());}catch(_0x45beec){_0xfadee9['push'](_0xfadee9['shift']());}}}(_0x1cc2,0x47e62));import{ISheetPrintManagerService as _0x10f39d,ConfirmSheetPrintOperation as _0x193289,SheetPrintOpenOperation as _0x1cd345,CancelSheetPrintOperation as _0x43a62c,hasPrintFacadePermission as _0x2f083a,SheetScreenShotOperation as _0x12c281,SheetPrintClientService as _0xe597da,PrintArea as _0x1a7383,PrintFreeze as _0x3e7a58,PrintHeaderFooter as _0x1c04fe,PrintHeaderFooterSymbol as _0x14910a}from'@univerjs-pro/sheets-print';import{ICommandService as _0x2692da,PaperType as _0x5d73a8,CanceledError as _0x5c909e}from'@univerjs/core';import{FWorkbook as _0x2ecdce,FRange as _0x5b69a5}from'@univerjs/sheets/facade';import{FEventName as _0x1434e5,FEnum as _0x251bb3,FUniver as _0x23577d}from'@univerjs/core/facade';import{PrintAlign as _0x426155,PrintPaperMargin as _0x4468cd,PrintScale as _0x3f0645,PrintDirection as _0x5d56d7}from'@univerjs-pro/print';function _0x1cc2(){const _0x4ec9a7=['getSheetId','_initialize','executeCommand','print','beforeCommandExecuted','layoutConfig','BeforeSheetPrintConfirm','90631qFPLwO','1837PFuVvD','_worksheet','6QICkNC','SheetPrintCanceled','onCommandExecuted','SheetPrintOpen','PrintAlign','PrintFreeze','getActiveUniverSheet','PrintScale','syncExecuteCommand','registerEventHandler','_workbook','Event','closePrintDialog','3006272evlvpP','get','448ypxlmT','fireEvent','getScreenshot','310220cLmdhw','getActiveSheet','2EMebSa','renderConfig','PrintArea','updatePrintRenderConfig','339LUfMAW','extend','cancel','BeforeSheetPrintOpen','saveScreenshotToClipboard','55884QRaVhD','updatePrintConfig','SheetPrintConfirmed','PrintHeaderFooterSymbol','PrintPaperSize','126TTQpME','1456435LKAiIM','_injector','749959biIyTR','BeforeSheetPrintCanceled','openPrintDialog'];_0x1cc2=function(){return _0x4ec9a7;};return _0x1cc2();}class A extends _0x2ecdce{[_0x4e437b(0x19d)](_0x1193b6){const _0x160367=_0x4e437b;return this[_0x160367(0x1a3)][_0x160367(0x1bf)](_0x10f39d)['updateLayoutConfig'](_0x1193b6),this;}[_0x4e437b(0x196)](_0x37506b){const _0x40a0a2=_0x4e437b;return this[_0x40a0a2(0x1a3)][_0x40a0a2(0x1bf)](_0x10f39d)['updateRenderConfig'](_0x37506b),this;}[_0x4e437b(0x1aa)](){const _0x4b00a4=_0x4e437b;return this['_injector'][_0x4b00a4(0x1bf)](_0x2692da)['syncExecuteCommand'](_0x193289['id']);}[_0x4e437b(0x1a6)](){const _0x2bbd91=_0x4e437b;return this[_0x2bbd91(0x1a3)][_0x2bbd91(0x1bf)](_0x2692da)[_0x2bbd91(0x1b9)](_0x1cd345['id']);}[_0x4e437b(0x1bd)](){return this['_injector']['get'](_0x2692da)['syncExecuteCommand'](_0x43a62c['id']);}async[_0x4e437b(0x19b)](){const _0xc35523=_0x4e437b;return _0x2f083a(this[_0xc35523(0x1a3)])?this[_0xc35523(0x1a3)][_0xc35523(0x1bf)](_0x2692da)[_0xc35523(0x1a9)](_0x12c281['id']):!0x1;}}_0x2ecdce['extend'](A);class B extends _0x5b69a5{[_0x4e437b(0x1c2)](){const _0x5cc95b=_0x4e437b;return _0x2f083a(this[_0x5cc95b(0x1a3)])?this['_injector']['get'](_0xe597da)['getRangeImage'](this[_0x5cc95b(0x1bb)]['getUnitId'](),this[_0x5cc95b(0x1b0)][_0x5cc95b(0x1a7)](),this['_range']):!0x1;}}function _0x4eb0(_0x112b40,_0x66b4fd){_0x112b40=_0x112b40-0x196;const _0x1cc200=_0x1cc2();let _0x4eb029=_0x1cc200[_0x112b40];return _0x4eb029;}_0x5b69a5[_0x4e437b(0x198)](B);class H{get[_0x4e437b(0x19a)](){return'BeforeSheetPrintOpen';}get[_0x4e437b(0x1ad)](){const _0x24d8f7=_0x4e437b;return _0x24d8f7(0x1ad);}get[_0x4e437b(0x1a5)](){const _0x2306d7=_0x4e437b;return _0x2306d7(0x1a5);}get['SheetPrintOpen'](){return'SheetPrintOpen';}get['SheetPrintConfirmed'](){const _0x29f07f=_0x4e437b;return _0x29f07f(0x19e);}get['SheetPrintCanceled'](){const _0xae0b8=_0x4e437b;return _0xae0b8(0x1b2);}}_0x1434e5[_0x4e437b(0x198)](H);class U{get[_0x4e437b(0x1c7)](){return _0x1a7383;}get[_0x4e437b(0x1b5)](){return _0x426155;}get[_0x4e437b(0x1a0)](){return _0x5d73a8;}get['PrintPaperMargin'](){return _0x4468cd;}get[_0x4e437b(0x1b8)](){return _0x3f0645;}get['PrintDirection'](){return _0x5d56d7;}get[_0x4e437b(0x1b6)](){return _0x3e7a58;}get['PrintHeaderFooter'](){return _0x1c04fe;}get[_0x4e437b(0x19f)](){return _0x14910a;}}_0x251bb3[_0x4e437b(0x198)](U);class M extends _0x23577d{[_0x4e437b(0x1a8)](_0x2e4bf7){const _0x14ef3c=_0x4e437b,_0x2b29a0=_0x2e4bf7[_0x14ef3c(0x1bf)](_0x2692da);this[_0x14ef3c(0x1ba)](this[_0x14ef3c(0x1bc)][_0x14ef3c(0x19a)],()=>_0x2b29a0[_0x14ef3c(0x1ab)](_0x33335b=>{const _0x2b018c=_0x14ef3c;if(_0x33335b['id']===_0x1cd345['id']){const _0x2ab8b3=this[_0x2b018c(0x1b7)]();if(!_0x2ab8b3)return;const _0x264cc0={'workbook':_0x2ab8b3,'worksheet':_0x2ab8b3[_0x2b018c(0x1c4)]()};if(_0x264cc0==null)return;if(this[_0x2b018c(0x1c1)](this[_0x2b018c(0x1bc)][_0x2b018c(0x19a)],_0x264cc0),_0x264cc0[_0x2b018c(0x199)])throw new _0x5c909e();}})),this['registerEventHandler'](this[_0x14ef3c(0x1bc)][_0x14ef3c(0x1ad)],()=>_0x2b29a0[_0x14ef3c(0x1ab)](_0x2f2fe7=>{const _0x1ff31e=_0x14ef3c;if(_0x2f2fe7['id']===_0x193289['id']){const _0x150ec8=_0x2e4bf7[_0x1ff31e(0x1bf)](_0x10f39d);if(!this[_0x1ff31e(0x1b7)]())return;const _0x380974={'layoutConfig':_0x150ec8[_0x1ff31e(0x1ac)],'renderConfig':_0x150ec8['renderConfig']};if(_0x380974==null)return;if(this['fireEvent'](this[_0x1ff31e(0x1bc)][_0x1ff31e(0x1ad)],_0x380974),_0x380974[_0x1ff31e(0x199)])throw new _0x5c909e();}})),this['registerEventHandler'](this[_0x14ef3c(0x1bc)]['BeforeSheetPrintCanceled'],()=>_0x2b29a0[_0x14ef3c(0x1ab)](_0x19c8d2=>{const _0x173cb7=_0x14ef3c;if(_0x19c8d2['id']===_0x43a62c['id']){const _0xf4a2f5=_0x2e4bf7['get'](_0x10f39d);if(!this[_0x173cb7(0x1b7)]())return;const _0x46b2db={'layoutConfig':_0xf4a2f5['layoutConfig'],'renderConfig':_0xf4a2f5[_0x173cb7(0x1c6)]};if(_0x46b2db==null)return;if(this['fireEvent'](this[_0x173cb7(0x1bc)]['BeforeSheetPrintCanceled'],_0x46b2db),_0x46b2db[_0x173cb7(0x199)])throw new _0x5c909e();}})),this[_0x14ef3c(0x1ba)](this[_0x14ef3c(0x1bc)][_0x14ef3c(0x1b4)],()=>_0x2b29a0[_0x14ef3c(0x1b3)](_0x51a18b=>{const _0x16e71a=_0x14ef3c;if(_0x51a18b['id']===_0x1cd345['id']){const _0x454ac2=this['getActiveUniverSheet']();if(!_0x454ac2)return;const _0x428be9={'workbook':_0x454ac2,'worksheet':_0x454ac2[_0x16e71a(0x1c4)]()};if(_0x428be9==null)return;this[_0x16e71a(0x1c1)](this[_0x16e71a(0x1bc)][_0x16e71a(0x1b4)],_0x428be9);}})),this[_0x14ef3c(0x1ba)](this['Event'][_0x14ef3c(0x19e)],()=>_0x2b29a0['onCommandExecuted'](_0x2ce17c=>{const _0x123468=_0x14ef3c;if(_0x2ce17c['id']===_0x193289['id']){const _0x333626=_0x2e4bf7[_0x123468(0x1bf)](_0x10f39d);if(!this[_0x123468(0x1b7)]())return;const _0x86948c={'layoutConfig':_0x333626[_0x123468(0x1ac)],'renderConfig':_0x333626[_0x123468(0x1c6)]};if(_0x86948c==null)return;this['fireEvent'](this[_0x123468(0x1bc)][_0x123468(0x19e)],_0x86948c);}})),this[_0x14ef3c(0x1ba)](this[_0x14ef3c(0x1bc)]['SheetPrintCanceled'],()=>_0x2b29a0[_0x14ef3c(0x1b3)](_0x1538d0=>{const _0x469b0f=_0x14ef3c;if(_0x1538d0['id']===_0x43a62c['id']){const _0x50a4a3=_0x2e4bf7[_0x469b0f(0x1bf)](_0x10f39d);if(!this[_0x469b0f(0x1b7)]())return;const _0xed5114={'layoutConfig':_0x50a4a3[_0x469b0f(0x1ac)],'renderConfig':_0x50a4a3['renderConfig']};if(_0xed5114==null)return;this[_0x469b0f(0x1c1)](this[_0x469b0f(0x1bc)][_0x469b0f(0x1b2)],_0xed5114);}}));}}_0x23577d['extend'](M);
1
+ function _0x5d3e(){const _0x2a2e91=['getRangeImage','updateRenderConfig','layoutConfig','cancel','775182NqGHfA','updatePrintRenderConfig','BeforeSheetPrintConfirm','updatePrintConfig','PrintScale','syncExecuteCommand','get','_workbook','BeforeSheetPrintCanceled','extend','Event','getSheetId','PrintHeaderFooter','_initialize','1094499WLWVJi','getActiveUniverSheet','PrintPaperSize','onCommandExecuted','beforeCommandExecuted','_worksheet','renderConfig','1231002TrsmsR','getUnitId','SheetPrintConfirmed','_injector','PrintHeaderFooterSymbol','getActiveSheet','465006XlSoTb','BeforeSheetPrintOpen','887442pREmRn','closePrintDialog','fireEvent','4709446EHfXVU','saveScreenshotToClipboard','3098720ZmFQJj','160EBOdUE','SheetPrintCanceled','SheetPrintOpen','registerEventHandler','10AqOhBT','PrintFreeze'];_0x5d3e=function(){return _0x2a2e91;};return _0x5d3e();}const _0x481750=_0x3db8;(function(_0x49e24f,_0x49f881){const _0x2af9cf=_0x3db8,_0x54f334=_0x49e24f();while(!![]){try{const _0x2d9232=-parseInt(_0x2af9cf(0x1bc))/0x1+-parseInt(_0x2af9cf(0x1ce))/0x2+parseInt(_0x2af9cf(0x1af))/0x3+-parseInt(_0x2af9cf(0x1c3))/0x4+parseInt(_0x2af9cf(0x1c8))/0x5*(-parseInt(_0x2af9cf(0x1be))/0x6)+-parseInt(_0x2af9cf(0x1c1))/0x7+-parseInt(_0x2af9cf(0x1c4))/0x8*(-parseInt(_0x2af9cf(0x1b6))/0x9);if(_0x2d9232===_0x49f881)break;else _0x54f334['push'](_0x54f334['shift']());}catch(_0x1fb4bd){_0x54f334['push'](_0x54f334['shift']());}}}(_0x5d3e,0x7b2cc));import{ISheetPrintManagerService as _0x329de0,ConfirmSheetPrintOperation as _0x70d282,SheetPrintOpenOperation as _0x14eaa3,CancelSheetPrintOperation as _0x4ac17b,hasPrintFacadePermission as _0x4a8f0d,SheetScreenShotOperation as _0x3f518f,SheetPrintClientService as _0x1a3c1f,PrintArea as _0x30d2c5,PrintFreeze as _0x22b109,PrintHeaderFooter as _0x1c7457,PrintHeaderFooterSymbol as _0x38eceb}from'@univerjs-pro/sheets-print';import{ICommandService as _0x487f42,PaperType as _0x144151,CanceledError as _0x55cefe}from'@univerjs/core';import{FWorkbook as _0x32642f,FRange as _0x48bf38}from'@univerjs/sheets/facade';function _0x3db8(_0x38c1ec,_0x421759){_0x38c1ec=_0x38c1ec-0x1a2;const _0x5d3eef=_0x5d3e();let _0x3db882=_0x5d3eef[_0x38c1ec];return _0x3db882;}import{FEventName as _0x1e48f4,FEnum as _0x15ef98,FUniver as _0x58fb6f}from'@univerjs/core/facade';import{PrintAlign as _0x40d1cf,PrintPaperMargin as _0x181e3c,PrintScale as _0x48deda,PrintDirection as _0x5599ee}from'@univerjs-pro/print';class A extends _0x32642f{[_0x481750(0x1a4)](_0x581922){const _0x22127c=_0x481750;return this[_0x22127c(0x1b9)][_0x22127c(0x1a7)](_0x329de0)['updateLayoutConfig'](_0x581922),this;}[_0x481750(0x1a2)](_0x4bb668){const _0x286f66=_0x481750;return this[_0x286f66(0x1b9)][_0x286f66(0x1a7)](_0x329de0)[_0x286f66(0x1cb)](_0x4bb668),this;}['print'](){const _0x4e9042=_0x481750;return this[_0x4e9042(0x1b9)]['get'](_0x487f42)[_0x4e9042(0x1a6)](_0x70d282['id']);}['openPrintDialog'](){const _0x4028ea=_0x481750;return this[_0x4028ea(0x1b9)][_0x4028ea(0x1a7)](_0x487f42)['syncExecuteCommand'](_0x14eaa3['id']);}[_0x481750(0x1bf)](){const _0x87332a=_0x481750;return this[_0x87332a(0x1b9)]['get'](_0x487f42)[_0x87332a(0x1a6)](_0x4ac17b['id']);}async[_0x481750(0x1c2)](){const _0x1710b2=_0x481750;return _0x4a8f0d(this[_0x1710b2(0x1b9)])?this[_0x1710b2(0x1b9)][_0x1710b2(0x1a7)](_0x487f42)['executeCommand'](_0x3f518f['id']):!0x1;}}_0x32642f[_0x481750(0x1aa)](A);class B extends _0x48bf38{['getScreenshot'](){const _0x452a93=_0x481750;return _0x4a8f0d(this['_injector'])?this[_0x452a93(0x1b9)][_0x452a93(0x1a7)](_0x1a3c1f)[_0x452a93(0x1ca)](this[_0x452a93(0x1a8)][_0x452a93(0x1b7)](),this[_0x452a93(0x1b4)][_0x452a93(0x1ac)](),this['_range']):!0x1;}}_0x48bf38[_0x481750(0x1aa)](B);class H{get[_0x481750(0x1bd)](){const _0x4b1900=_0x481750;return _0x4b1900(0x1bd);}get['BeforeSheetPrintConfirm'](){return'BeforeSheetPrintConfirm';}get[_0x481750(0x1a9)](){const _0x5e2329=_0x481750;return _0x5e2329(0x1a9);}get['SheetPrintOpen'](){return'SheetPrintOpen';}get[_0x481750(0x1b8)](){const _0x28d34d=_0x481750;return _0x28d34d(0x1b8);}get[_0x481750(0x1c5)](){const _0x3da639=_0x481750;return _0x3da639(0x1c5);}}_0x1e48f4[_0x481750(0x1aa)](H);class U{get['PrintArea'](){return _0x30d2c5;}get['PrintAlign'](){return _0x40d1cf;}get[_0x481750(0x1b1)](){return _0x144151;}get['PrintPaperMargin'](){return _0x181e3c;}get[_0x481750(0x1a5)](){return _0x48deda;}get['PrintDirection'](){return _0x5599ee;}get[_0x481750(0x1c9)](){return _0x22b109;}get[_0x481750(0x1ad)](){return _0x1c7457;}get[_0x481750(0x1ba)](){return _0x38eceb;}}_0x15ef98['extend'](U);class M extends _0x58fb6f{[_0x481750(0x1ae)](_0x5709c9){const _0x16f634=_0x481750,_0x5669af=_0x5709c9[_0x16f634(0x1a7)](_0x487f42);this['registerEventHandler'](this['Event'][_0x16f634(0x1bd)],()=>_0x5669af[_0x16f634(0x1b3)](_0x12c252=>{const _0x23311d=_0x16f634;if(_0x12c252['id']===_0x14eaa3['id']){const _0xff7fb7=this['getActiveUniverSheet']();if(!_0xff7fb7)return;const _0x4df367={'workbook':_0xff7fb7,'worksheet':_0xff7fb7[_0x23311d(0x1bb)]()};if(_0x4df367==null)return;if(this[_0x23311d(0x1c0)](this[_0x23311d(0x1ab)][_0x23311d(0x1bd)],_0x4df367),_0x4df367[_0x23311d(0x1cd)])throw new _0x55cefe();}})),this[_0x16f634(0x1c7)](this[_0x16f634(0x1ab)][_0x16f634(0x1a3)],()=>_0x5669af[_0x16f634(0x1b3)](_0x2046dd=>{const _0x3b76e8=_0x16f634;if(_0x2046dd['id']===_0x70d282['id']){const _0x2a98f9=_0x5709c9['get'](_0x329de0);if(!this[_0x3b76e8(0x1b0)]())return;const _0x1ab719={'layoutConfig':_0x2a98f9['layoutConfig'],'renderConfig':_0x2a98f9[_0x3b76e8(0x1b5)]};if(_0x1ab719==null)return;if(this['fireEvent'](this['Event'][_0x3b76e8(0x1a3)],_0x1ab719),_0x1ab719[_0x3b76e8(0x1cd)])throw new _0x55cefe();}})),this[_0x16f634(0x1c7)](this[_0x16f634(0x1ab)][_0x16f634(0x1a9)],()=>_0x5669af['beforeCommandExecuted'](_0x1ac40b=>{const _0x2cac20=_0x16f634;if(_0x1ac40b['id']===_0x4ac17b['id']){const _0x4d68cc=_0x5709c9[_0x2cac20(0x1a7)](_0x329de0);if(!this['getActiveUniverSheet']())return;const _0x339c1e={'layoutConfig':_0x4d68cc[_0x2cac20(0x1cc)],'renderConfig':_0x4d68cc[_0x2cac20(0x1b5)]};if(_0x339c1e==null)return;if(this[_0x2cac20(0x1c0)](this['Event']['BeforeSheetPrintCanceled'],_0x339c1e),_0x339c1e[_0x2cac20(0x1cd)])throw new _0x55cefe();}})),this[_0x16f634(0x1c7)](this['Event'][_0x16f634(0x1c6)],()=>_0x5669af['onCommandExecuted'](_0x476c43=>{const _0x2fac41=_0x16f634;if(_0x476c43['id']===_0x14eaa3['id']){const _0x1b2952=this[_0x2fac41(0x1b0)]();if(!_0x1b2952)return;const _0x2f8c58={'workbook':_0x1b2952,'worksheet':_0x1b2952[_0x2fac41(0x1bb)]()};if(_0x2f8c58==null)return;this[_0x2fac41(0x1c0)](this['Event'][_0x2fac41(0x1c6)],_0x2f8c58);}})),this[_0x16f634(0x1c7)](this['Event']['SheetPrintConfirmed'],()=>_0x5669af[_0x16f634(0x1b2)](_0x437e4d=>{const _0x46942b=_0x16f634;if(_0x437e4d['id']===_0x70d282['id']){const _0x22132c=_0x5709c9[_0x46942b(0x1a7)](_0x329de0);if(!this['getActiveUniverSheet']())return;const _0x442a86={'layoutConfig':_0x22132c['layoutConfig'],'renderConfig':_0x22132c[_0x46942b(0x1b5)]};if(_0x442a86==null)return;this[_0x46942b(0x1c0)](this[_0x46942b(0x1ab)]['SheetPrintConfirmed'],_0x442a86);}})),this[_0x16f634(0x1c7)](this['Event'][_0x16f634(0x1c5)],()=>_0x5669af[_0x16f634(0x1b2)](_0x3102b9=>{const _0x29cfb0=_0x16f634;if(_0x3102b9['id']===_0x4ac17b['id']){const _0x55bb29=_0x5709c9[_0x29cfb0(0x1a7)](_0x329de0);if(!this['getActiveUniverSheet']())return;const _0x2627da={'layoutConfig':_0x55bb29[_0x29cfb0(0x1cc)],'renderConfig':_0x55bb29[_0x29cfb0(0x1b5)]};if(_0x2627da==null)return;this['fireEvent'](this[_0x29cfb0(0x1ab)][_0x29cfb0(0x1c5)],_0x2627da);}}));}}_0x58fb6f[_0x481750(0x1aa)](M);