@univerjs-pro/docs-print 0.22.0 → 0.22.1-insiders.20260516-8900c44
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.
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/ca-ES.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/es-ES.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ja-JP.js +1 -1
- package/lib/cjs/locale/ko-KR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/sk-SK.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/ca-ES.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/es-ES.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ja-JP.js +1 -1
- package/lib/es/locale/ko-KR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/sk-SK.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/index.js +1 -1
- package/lib/locale/ca-ES.js +1 -1
- package/lib/locale/en-US.js +1 -1
- package/lib/locale/es-ES.js +1 -1
- package/lib/locale/fa-IR.js +1 -1
- package/lib/locale/fr-FR.js +1 -1
- package/lib/locale/ja-JP.js +1 -1
- package/lib/locale/ko-KR.js +1 -1
- package/lib/locale/ru-RU.js +1 -1
- package/lib/locale/sk-SK.js +1 -1
- package/lib/locale/vi-VN.js +1 -1
- package/lib/locale/zh-CN.js +1 -1
- package/lib/locale/zh-TW.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/ca-ES.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/es-ES.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ja-JP.js +1 -1
- package/lib/umd/locale/ko-KR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/sk-SK.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x359676=_0x4135;(function(_0x5073a3,_0x10be92){const _0xbf689f=_0x4135,_0xd9b652=_0x5073a3();while(!![]){try{const _0x38fa21=parseInt(_0xbf689f(0x166))/0x1*(parseInt(_0xbf689f(0x155))/0x2)+parseInt(_0xbf689f(0x1b8))/0x3*(-parseInt(_0xbf689f(0x16f))/0x4)+parseInt(_0xbf689f(0x15a))/0x5*(parseInt(_0xbf689f(0x198))/0x6)+-parseInt(_0xbf689f(0x1a4))/0x7+parseInt(_0xbf689f(0x1b1))/0x8*(parseInt(_0xbf689f(0x18c))/0x9)+parseInt(_0xbf689f(0x19a))/0xa*(-parseInt(_0xbf689f(0x1cd))/0xb)+-parseInt(_0xbf689f(0x1ad))/0xc*(-parseInt(_0xbf689f(0x161))/0xd);if(_0x38fa21===_0x10be92)break;else _0xd9b652['push'](_0xd9b652['shift']());}catch(_0x34befc){_0xd9b652['push'](_0xd9b652['shift']());}}}(_0x1682,0x5d6e2),Object['defineProperty'](exports,Symbol[_0x359676(0x18a)],{'value':'Module'}));let _univerjs_core=require('@univerjs/core'),_univerjs_docs_ui=require('@univerjs/docs-ui'),_univerjs_engine_render=require('@univerjs/engine-render'),_univerjs_pro_license=require('@univerjs-pro/license'),_univerjs_pro_print=require('@univerjs-pro/print'),_univerjs_docs=require('@univerjs/docs'),_univerjs_ui=require('@univerjs/ui'),_univerjs_network=require('@univerjs/network'),_univerjs_icons=require('@univerjs/icons');function _0x1682(){const _0x4fa758=['DocPrintInterceptorService','DocumentFlavor','Render\x20is\x20not\x20found','default','585673uGGurw','constructor','_addComponent','_page','position','_scene','Viewport','interceptor','_paperSize','_skeleton','_componentManager','get','RibbonStartGroup','page','fill','valid','_addViewport','addObject','PrintIcon','0.22.0','updateScrollVal','iterator','timeValid','createElement','PrintDirection','Disposable','BUTTON','documentFlavor','TRADITIONAL','makeForceDirty','getContext','_config','print.menu','PRINTING_COMPONENT_COLLECT','appendChild','Inject','forEach','_documents','ICommandService','removeChild','_initRenderer','SwitchDocModeCommand','_offsetConfig','Portrait','IUniverInstanceService','onStarting','defineProperty','CommandType','prototype','translate','top','UNIVER_DOC','_key','_container','getDocFeatureLimit','Printing','UniverLicensePlugin','Engine','0px','45902aReXuv','version','_renderManagerService','pluginName','with','12770IZkQUC','prepare','pages','_root','getOwnPropertyDescriptor','getOffsetConfig','_initMenus','300391kebFFc','@univerjs-pro/docs-print','100%','save','fetchThroughInterceptors','27LGCwFR','object','Documents','length','_currentRender','disposeWithMe','IGlobalZoneService','IMenuManagerService','min','2063092bLAlmE','absolute','type','_effects','pageWidth','__DocPrintRender__','decorate','_viewMain','parseInt','body','_calculateLayout','getCanvas','print','_univerInstanceService','menu','DocumentDataModel\x20is\x20not\x20found','getConfig','div','message','close','symbol','getUnit','makeDirty','isFeatureAuthorizedWithinTime','_unitId','syncExecuteCommand','LS_CONFIG_KEY','toStringTag','setId','1517382tKblqv','container','getInterceptPoints','right','getMenuHiddenObservable','left','_configService','_initCommands','className','VIEWPORT_KEY','OPERATION','IConfigService','1074UgBFoh','IRenderManagerService','10XPZoBc','mainComponent','UniverInstanceType','getSkeletonData','DisposableCollection','pageHeight','DependentOn','isLocalCheck','_menuManagerService','onbeforeprint','3673635DmdHuV','string','VIEW_MAIN','setConfig','PRINT_CANVAS_CLASS','_engine','DocPrintOperation','CanvasRenderMode','getLicenseInfo','120zgRfTi','getDocumentStyle','dispose','PRINTING_DOM_COLLECT','8GXARjY','register','_skeletonData','_initComponents','function','onReady','bottom','3yJxJBI','onafterprint','root','generateRandomId','call','getCurrentUnitOfType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','isPro','Pages\x20are\x20not\x20found','style','UNIVER_DOCS_PRINT','height','POSITIVE_INFINITY','width','getSkeleton','_injector','getRenderById'];_0x1682=function(){return _0x4fa758;};return _0x1682();}function _typeof(_0x4155c1){'@babel/helpers - typeof';const _0x51aca5=_0x359676;return _typeof=_0x51aca5(0x1b5)==typeof Symbol&&_0x51aca5(0x183)==typeof Symbol[_0x51aca5(0x1e2)]?function(_0x38e9b4){return typeof _0x38e9b4;}:function(_0x2882ef){const _0xdc2279=_0x51aca5;return _0x2882ef&&_0xdc2279(0x1b5)==typeof Symbol&&_0x2882ef[_0xdc2279(0x1ce)]===Symbol&&_0x2882ef!==Symbol[_0xdc2279(0x14a)]?_0xdc2279(0x183):typeof _0x2882ef;},_typeof(_0x4155c1);}function toPrimitive(_0x4fc6ee,_0x2b2fcd){const _0x236ebb=_0x359676;if('object'!=_typeof(_0x4fc6ee)||!_0x4fc6ee)return _0x4fc6ee;var _0x2ae7c5=_0x4fc6ee[Symbol['toPrimitive']];if(void 0x0!==_0x2ae7c5){var _0x3fa14a=_0x2ae7c5[_0x236ebb(0x1bc)](_0x4fc6ee,_0x2b2fcd||_0x236ebb(0x1cc));if(_0x236ebb(0x167)!=_typeof(_0x3fa14a))return _0x3fa14a;throw new TypeError(_0x236ebb(0x1be));}return(_0x236ebb(0x1a5)===_0x2b2fcd?String:Number)(_0x4fc6ee);}function toPropertyKey(_0x312fc1){const _0x5460e2=_0x359676;var _0x208624=toPrimitive(_0x312fc1,'string');return _0x5460e2(0x183)==_typeof(_0x208624)?_0x208624:_0x208624+'';}function _defineProperty(_0x3d5d5d,_0x356615,_0x4d8723){const _0x25e321=_0x359676;return(_0x356615=toPropertyKey(_0x356615))in _0x3d5d5d?Object[_0x25e321(0x148)](_0x3d5d5d,_0x356615,{'value':_0x4d8723,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3d5d5d[_0x356615]=_0x4d8723,_0x3d5d5d;}var DocPrintPageCanvasView=class extends _univerjs_core['Disposable']{get[_0x359676(0x18d)](){const _0x28c63f=_0x359676;return this[_0x28c63f(0x14f)];}get[_0x359676(0x1ba)](){const _0x578ad4=_0x359676;return this[_0x578ad4(0x15d)];}get[_0x359676(0x16a)](){const _0x1006b0=_0x359676,_0x1e3707=this['_injector'][_0x1006b0(0x1d8)](_univerjs_engine_render[_0x1006b0(0x199)])[_0x1006b0(0x1c8)](this['_unitId']);if(!_0x1e3707)throw new Error(_0x1006b0(0x1cb));return _0x1e3707;}get[_0x359676(0x1d6)](){const _0x4f65e0=_0x359676;return this[_0x4f65e0(0x16a)][_0x4f65e0(0x159)](_univerjs_docs['DocSkeletonManagerService'])[_0x4f65e0(0x1c6)]();}get['_skeletonData'](){const _0x24067b=_0x359676,_0x42ce9a=this[_0x24067b(0x1d6)][_0x24067b(0x19d)]();if(!_0x42ce9a)throw new Error('Skeleton\x20data\x20is\x20not\x20found');return _0x42ce9a;}get['_paperSize'](){const _0xb17db6=_0x359676,_0xfe7566=this[_0xb17db6(0x1b3)][_0xb17db6(0x15c)][0x0];return{'width':_0xfe7566['pageWidth'],'height':_0xfe7566[_0xb17db6(0x19f)]};}constructor(_0x2c1d03,_0x58a8b8,_0x4d4a5b,_0x3692e1){const _0x1e3b9d=_0x359676;super(),this[_0x1e3b9d(0x1c7)]=_0x2c1d03,this['_page']=_0x58a8b8,this['_unitId']=_0x4d4a5b,this[_0x1e3b9d(0x144)]=_0x3692e1,_defineProperty(this,_0x1e3b9d(0x14f),document[_0x1e3b9d(0x1e4)](_0x1e3b9d(0x180))),_defineProperty(this,_0x1e3b9d(0x15d),document[_0x1e3b9d(0x1e4)](_0x1e3b9d(0x180))),_defineProperty(this,_0x1e3b9d(0x1a9),void 0x0),_defineProperty(this,'_scene',void 0x0),_defineProperty(this,_0x1e3b9d(0x14e),void 0x0),_defineProperty(this,_0x1e3b9d(0x1f2),void 0x0),_defineProperty(this,'_viewMain',void 0x0),_defineProperty(this,_0x1e3b9d(0x172),new _univerjs_core[(_0x1e3b9d(0x19e))]()),this[_0x1e3b9d(0x14e)]=(0x0,_univerjs_core['generateRandomId'])(0x4),this[_0x1e3b9d(0x1f5)](),this[_0x1e3b9d(0x16b)]({'dispose':()=>{const _0x446f5f=_0x1e3b9d;this['_engine'][_0x446f5f(0x1af)](),this['_scene'][_0x446f5f(0x1af)](),this[_0x446f5f(0x172)][_0x446f5f(0x1af)]();}});}['_calculateLayout'](){const _0x4479a2=_0x359676,{docsTop:_0x6ff77e,docsLeft:_0x1f6b2b}=this[_0x4479a2(0x1f2)][_0x4479a2(0x15f)](),_0x564c18=this[_0x4479a2(0x1d5)][_0x4479a2(0x1c3)],_0x2a347d=this[_0x4479a2(0x1d5)]['width'];return{'top':_0x6ff77e+(_0x6ff77e+_0x564c18)*this[_0x4479a2(0x1d0)],'bottom':_0x6ff77e+(_0x6ff77e+_0x564c18)*(this['_page']+0x1),'left':_0x1f6b2b,'right':_0x1f6b2b+_0x2a347d};}[_0x359676(0x1f5)](){const _0x10f013=_0x359676,_0x4d703c=0x1,_0x4f863c=0x1;this[_0x10f013(0x1a9)]=new _univerjs_engine_render[(_0x10f013(0x153))]('',{'elementWidth':this[_0x10f013(0x1d5)][_0x10f013(0x1c5)],'elementHeight':this[_0x10f013(0x1d5)][_0x10f013(0x1c3)],'dpr':_0x4f863c,'renderMode':_univerjs_engine_render[_0x10f013(0x1ab)][_0x10f013(0x151)]}),this[_0x10f013(0x1d2)]=new _univerjs_engine_render['Scene'](this['_key'],this[_0x10f013(0x1a9)]),this['_scene']['scale'](_0x4d703c,_0x4d703c),this[_0x10f013(0x1a9)]['setContainer'](this[_0x10f013(0x14f)],![]),this[_0x10f013(0x1a9)][_0x10f013(0x17a)]()[_0x10f013(0x1eb)]()[_0x10f013(0x18b)](this[_0x10f013(0x14e)]+'_'+(0x0,_univerjs_core[_0x10f013(0x1bb)])(0x4)),this['_addComponent'](),this[_0x10f013(0x1dd)]();}[_0x359676(0x1cf)](){const _0x276d0d=_0x359676,{pageMarginLeft:_0x30ddcd,pageMarginTop:_0x18c5ae,docsLeft:_0x2dbea2,docsTop:_0x326f52}=this[_0x276d0d(0x144)],_0x575cae={'pageMarginLeft':_0x30ddcd,'pageMarginTop':_0x18c5ae},_0x2cd3e6=new _univerjs_engine_render[(_0x276d0d(0x168))](_0x276d0d(0x174),this[_0x276d0d(0x1d6)],_0x575cae);_0x2cd3e6[_0x276d0d(0x14b)](_0x2dbea2,_0x326f52),this['_scene'][_0x276d0d(0x1de)](_0x2cd3e6),this[_0x276d0d(0x1f2)]=_0x2cd3e6;const _0x122f91=this[_0x276d0d(0x1c7)][_0x276d0d(0x1d8)](_univerjs_docs_ui[_0x276d0d(0x1c9)]);_0x122f91[_0x276d0d(0x1d4)][_0x276d0d(0x165)](_0x122f91[_0x276d0d(0x1d4)][_0x276d0d(0x18e)]()[_0x276d0d(0x1ee)])(void 0x0,{'unitId':this[_0x276d0d(0x187)],'scene':this[_0x276d0d(0x1d2)],'engine':this[_0x276d0d(0x1a9)],'root':this[_0x276d0d(0x15d)],'documents':this['_documents'],'skeleton':this[_0x276d0d(0x1d6)]});}[_0x359676(0x1dd)](){const _0x38039d=_0x359676;this[_0x38039d(0x176)]=new _univerjs_engine_render[(_0x38039d(0x1d3))](_univerjs_docs_ui[_0x38039d(0x195)][_0x38039d(0x1a6)],this[_0x38039d(0x1d2)],{'explicitViewportWidthSet':!![],'explicitViewportHeightSet':!![]});}['prepare'](){const _0x49927c=_0x359676,_0x5d007b=this[_0x49927c(0x179)]();this['_viewMain'][_0x49927c(0x1e1)]({'viewportScrollX':_0x5d007b['left'],'viewportScrollY':_0x5d007b[_0x49927c(0x14c)]}),this[_0x49927c(0x15d)][_0x49927c(0x1c1)][_0x49927c(0x1d1)]=_0x49927c(0x170),this[_0x49927c(0x15d)][_0x49927c(0x1c1)][_0x49927c(0x14c)]=_0x49927c(0x154),this[_0x49927c(0x15d)]['style'][_0x49927c(0x191)]=_0x49927c(0x154),this[_0x49927c(0x15d)][_0x49927c(0x1c1)][_0x49927c(0x1c5)]=_0x49927c(0x163),this['_root'][_0x49927c(0x1c1)][_0x49927c(0x1c3)]=_0x49927c(0x163),this[_0x49927c(0x172)]=new _univerjs_core[(_0x49927c(0x19e))]();const _0x8293bc=this[_0x49927c(0x1c7)][_0x49927c(0x1d8)](_univerjs_docs_ui[_0x49927c(0x1c9)]);_0x8293bc[_0x49927c(0x1d4)][_0x49927c(0x165)](_0x8293bc['interceptor'][_0x49927c(0x18e)]()[_0x49927c(0x1b0)])(this[_0x49927c(0x172)],{'unitId':this[_0x49927c(0x187)],'scene':this[_0x49927c(0x1d2)],'engine':this[_0x49927c(0x1a9)],'root':this['_root'],'skeleton':this['_skeleton'],'offset':{'x':_0x5d007b[_0x49927c(0x191)],'y':_0x5d007b[_0x49927c(0x14c)]},'bound':{'top':_0x5d007b[_0x49927c(0x14c)],'left':_0x5d007b[_0x49927c(0x191)],'right':_0x5d007b[_0x49927c(0x18f)],'bottom':_0x5d007b[_0x49927c(0x1b7)]}});}['render'](){const _0x22ce29=_0x359676,_0x1fce30=this[_0x22ce29(0x1a9)][_0x22ce29(0x17a)]()[_0x22ce29(0x1eb)]();this[_0x22ce29(0x1f2)][_0x22ce29(0x1ea)](),this[_0x22ce29(0x1d2)][_0x22ce29(0x185)](),_0x1fce30[_0x22ce29(0x164)](),this[_0x22ce29(0x1d2)]['render'](),_0x1fce30['restore']();}};function __decorateParam(_0x5c8f45,_0x5ea4fd){return function(_0xa49425,_0x596858){_0x5ea4fd(_0xa49425,_0x596858,_0x5c8f45);};}function __decorate(_0x5ced61,_0x413f57,_0x4b7144,_0xadf364){const _0x7449b=_0x359676;var _0x3b9b63=arguments['length'],_0x2ce87d=_0x3b9b63<0x3?_0x413f57:_0xadf364===null?_0xadf364=Object[_0x7449b(0x15e)](_0x413f57,_0x4b7144):_0xadf364,_0xbb66b5;if(typeof Reflect===_0x7449b(0x167)&&typeof Reflect[_0x7449b(0x175)]==='function')_0x2ce87d=Reflect[_0x7449b(0x175)](_0x5ced61,_0x413f57,_0x4b7144,_0xadf364);else{for(var _0x72eb09=_0x5ced61[_0x7449b(0x169)]-0x1;_0x72eb09>=0x0;_0x72eb09--)if(_0xbb66b5=_0x5ced61[_0x72eb09])_0x2ce87d=(_0x3b9b63<0x3?_0xbb66b5(_0x2ce87d):_0x3b9b63>0x3?_0xbb66b5(_0x413f57,_0x4b7144,_0x2ce87d):_0xbb66b5(_0x413f57,_0x4b7144))||_0x2ce87d;}return _0x3b9b63>0x3&&_0x2ce87d&&Object[_0x7449b(0x148)](_0x413f57,_0x4b7144,_0x2ce87d),_0x2ce87d;}const BUILD_TIMESTAMP=Number[_0x359676(0x177)](0x69ff10fd),DEFAULT_PRINT_LIMIT=0x1,getPrintInfoByLicense=(_0x4fa3dd,_0x4eedc,_0x42028b)=>{const _0x17ade9=_0x359676,_0x289328={'page':_0x4fa3dd,'isPro':![],'timeValid':![]};if(!_0x4eedc||!_0x42028b)return _0x289328;const _0x3803a7=(0x0,_univerjs_pro_license[_0x17ade9(0x1ac)])(_0x4eedc,_0x42028b);if(_0x3803a7[_0x17ade9(0x1dc)]){const _0x13612f=_0x3803a7[_0x17ade9(0x181)],_0x14d612=(0x0,_univerjs_pro_license[_0x17ade9(0x186)])(_0x13612f,'df',BUILD_TIMESTAMP);_0x289328[_0x17ade9(0x1bf)]=_0x14d612,_0x289328[_0x17ade9(0x1e3)]=_0x14d612,_0x289328[_0x17ade9(0x1da)]=(0x0,_univerjs_pro_license[_0x17ade9(0x150)])(_0x13612f,_0x14d612,'mpn',_0x4fa3dd,_0x4fa3dd,0x0);}return _0x289328;};let DocPrintService=class DocPrintService extends _univerjs_core['Disposable']{constructor(_0x56ae07,_0x525138,_0x278627,_0xf9c459,_0x13d45b){const _0x17a7de=_0x359676;super(),this['_univerInstanceService']=_0x56ae07,this[_0x17a7de(0x157)]=_0x525138,this[_0x17a7de(0x1c7)]=_0x278627,this[_0x17a7de(0x192)]=_0xf9c459,this['_globalZoneService']=_0x13d45b;}[_0x359676(0x17b)](_0x1b38d6){const _0x376ee5=_0x359676;var _0x569fd5,_0x2affea;const {ls:_0x21bfa0,pbk:_0x3b174e}=(_0x569fd5=this[_0x376ee5(0x192)][_0x376ee5(0x17f)](_univerjs_pro_license[_0x376ee5(0x189)]))!==null&&_0x569fd5!==void 0x0?_0x569fd5:{},_0x3d5442=(0x0,_univerjs_pro_license[_0x376ee5(0x1a1)])()?Number[_0x376ee5(0x1c4)]:getPrintInfoByLicense(0x1,_0x21bfa0,_0x3b174e)[_0x376ee5(0x1da)];if(!this[_0x376ee5(0x17c)][_0x376ee5(0x184)](_0x1b38d6,_univerjs_core[_0x376ee5(0x19c)][_0x376ee5(0x14d)]))throw new Error(_0x376ee5(0x17e));const _0x4a094c=this[_0x376ee5(0x157)][_0x376ee5(0x1c8)](_0x1b38d6);if(!_0x4a094c)throw new Error('Render\x20is\x20not\x20found');const _0x10e85d=(_0x2affea=_0x4a094c['with'](_univerjs_docs['DocSkeletonManagerService'])[_0x376ee5(0x1c6)]()[_0x376ee5(0x19d)]())===null||_0x2affea===void 0x0?void 0x0:_0x2affea[_0x376ee5(0x15c)];if(!_0x10e85d)throw new Error(_0x376ee5(0x1c0));const _0x1e0630={'width':_0x10e85d[0x0][_0x376ee5(0x173)],'height':_0x10e85d[0x0][_0x376ee5(0x19f)]},_0x238ef0=_0x10e85d[_0x376ee5(0x169)],_0x19b455=Math[_0x376ee5(0x16e)](_0x3d5442,_0x238ef0),_0x39cb2f=_0x4a094c[_0x376ee5(0x19b)][_0x376ee5(0x15f)](),_0xb943cb=document[_0x376ee5(0x1e4)]('div');_0xb943cb[_0x376ee5(0x194)]=_univerjs_pro_print['PRINT_CONTAINER_CLASS'];const _0x3e91ac=new Array(_0x19b455)[_0x376ee5(0x1db)](null)['map']((_0x3694bc,_0x57e76b)=>{const _0x4e9504=_0x376ee5,_0x441b37=new DocPrintPageCanvasView(this['_injector'],_0x57e76b,_0x1b38d6,_0x39cb2f);return _0x441b37[_0x4e9504(0x18d)][_0x4e9504(0x194)]=_univerjs_pro_print[_0x4e9504(0x1a8)],_0x441b37;});_0x3e91ac[_0x376ee5(0x1f1)](_0x573be0=>{const _0x401df8=_0x376ee5;_0xb943cb[_0x401df8(0x1ef)](_0x573be0[_0x401df8(0x18d)]),_0x573be0['container'][_0x401df8(0x1ef)](_0x573be0['root']),_0x573be0[_0x401df8(0x15b)]();});const _0x593f72=(0x0,_univerjs_pro_print['createPrintStyle'])(_0x1e0630[_0x376ee5(0x1c5)],_0x1e0630[_0x376ee5(0x1c3)],_univerjs_pro_print[_0x376ee5(0x1e5)][_0x376ee5(0x145)]);return document[_0x376ee5(0x178)]['appendChild'](_0x593f72),document['body'][_0x376ee5(0x1ef)](_0xb943cb),new Promise(_0x16bd6d=>{setTimeout(()=>{const _0x5c89aa=_0x4135;window[_0x5c89aa(0x1a3)]=()=>{const _0x2af886=_0x5c89aa;_0x3e91ac[_0x2af886(0x1f1)](_0x31c691=>{_0x31c691['render']();});},window[_0x5c89aa(0x1b9)]=()=>{const _0x28ede5=_0x5c89aa;_0x3e91ac[_0x28ede5(0x1f1)](_0xd0485f=>{const _0x4f4570=_0x28ede5;_0xd0485f[_0x4f4570(0x1af)]();}),document[_0x28ede5(0x178)][_0x28ede5(0x1f4)](_0xb943cb),document[_0x28ede5(0x178)][_0x28ede5(0x1f4)](_0x593f72),this['_globalZoneService'][_0x28ede5(0x182)](),_0x16bd6d(!![]);},window[_0x5c89aa(0x17b)]();},0x64);});}};DocPrintService=__decorate([__decorateParam(0x0,_univerjs_core[_0x359676(0x146)]),__decorateParam(0x1,_univerjs_engine_render[_0x359676(0x199)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x359676(0x1f0)])(_univerjs_core['Injector'])),__decorateParam(0x3,_univerjs_core['IConfigService']),__decorateParam(0x4,_univerjs_ui[_0x359676(0x16c)])],DocPrintService);const DocPrintOperation={'id':'docs.operation.print','type':_univerjs_core[_0x359676(0x149)][_0x359676(0x196)],'handler':async _0x11bf71=>{const _0x31d54b=_0x359676,_0x58953f=_0x11bf71[_0x31d54b(0x1d8)](_univerjs_core[_0x31d54b(0x146)]),_0x3f38c8=_0x11bf71['get'](DocPrintService),_0x367120=_0x11bf71[_0x31d54b(0x1d8)](_univerjs_engine_render[_0x31d54b(0x199)]),_0x54b989=_0x11bf71[_0x31d54b(0x1d8)](_univerjs_core[_0x31d54b(0x1f3)]),_0x488a2c=_0x58953f[_0x31d54b(0x1bd)](_univerjs_core['UniverInstanceType'][_0x31d54b(0x14d)]);if(!_0x488a2c)return![];if(!_0x367120[_0x31d54b(0x1c8)](_0x488a2c['getUnitId']()))throw new Error(_0x31d54b(0x1cb));const _0x5b9c9f=_0x488a2c[_0x31d54b(0x1ae)]()[_0x31d54b(0x1e8)];if(_0x5b9c9f!==_univerjs_core[_0x31d54b(0x1ca)][_0x31d54b(0x1e9)])_0x54b989[_0x31d54b(0x188)](_univerjs_docs_ui[_0x31d54b(0x1f6)]['id']);await _0x3f38c8[_0x31d54b(0x17b)](_0x488a2c['getUnitId']());if(_0x5b9c9f!==_univerjs_core[_0x31d54b(0x1ca)][_0x31d54b(0x1e9)])_0x54b989[_0x31d54b(0x188)](_univerjs_docs_ui[_0x31d54b(0x1f6)]['id']);return!![];}},DOCS_PRINT_PLUGIN_CONFIG_KEY=_0x359676(0x1c2),defaultPluginConfig={};var name=_0x359676(0x162),version=_0x359676(0x1e0);const DOCS_PRINT_PLUGIN_NAME=_0x359676(0x1c2);function DocPrintMenuItemFactory(_0x294141){const _0x13662b=_0x359676;return{'id':DocPrintOperation['id'],'type':_univerjs_ui['MenuItemType'][_0x13662b(0x1e7)],'title':_0x13662b(0x1ed),'icon':'PrintIcon','tooltip':_0x13662b(0x1ed),'hidden$':(0x0,_univerjs_ui[_0x13662b(0x190)])(_0x294141,_univerjs_core[_0x13662b(0x19c)][_0x13662b(0x14d)])};}function _0x4135(_0x396814,_0x31b242){_0x396814=_0x396814-0x144;const _0x168288=_0x1682();let _0x413548=_0x168288[_0x396814];return _0x413548;}const menuSchema={[_univerjs_ui[_0x359676(0x1d9)]['OTHERS']]:{[DocPrintOperation['id']]:{'order':0.1,'menuItemFactory':DocPrintMenuItemFactory}}};let DocsPrintUIController=class DocsPrintUIController extends _univerjs_core[_0x359676(0x1e6)]{constructor(_0x323aeb,_0x39ff12,_0x5ea47d){const _0x210298=_0x359676;super(),this['_commandService']=_0x323aeb,this[_0x210298(0x1a2)]=_0x39ff12,this['_componentManager']=_0x5ea47d,this[_0x210298(0x160)](),this[_0x210298(0x193)](),this[_0x210298(0x1b4)]();}[_0x359676(0x160)](){const _0x47b966=_0x359676;this[_0x47b966(0x1a2)]['mergeMenu'](menuSchema);}[_0x359676(0x193)](){const _0x211b29=_0x359676;this[_0x211b29(0x16b)](this['_commandService']['registerCommand'](DocPrintOperation));}[_0x359676(0x1b4)](){const _0x4e8d68=_0x359676;[[_0x4e8d68(0x1df),_univerjs_icons[_0x4e8d68(0x1df)]]][_0x4e8d68(0x1f1)](([_0x146740,_0x3aac71])=>{const _0x3196ea=_0x4e8d68;this[_0x3196ea(0x1d7)][_0x3196ea(0x1b2)](_0x146740,_0x3aac71);});}};DocsPrintUIController=__decorate([__decorateParam(0x0,_univerjs_core[_0x359676(0x1f3)]),__decorateParam(0x1,_univerjs_ui[_0x359676(0x16d)]),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_ui['ComponentManager']))],DocsPrintUIController);let UniverDocsPrintPlugin=class UniverDocsPrintPlugin extends _univerjs_core['Plugin']{constructor(_0x50d14b=defaultPluginConfig,_0x2bc04a,_0x3adb2c){const _0x325aaa=_0x359676;super(),this[_0x325aaa(0x1ec)]=_0x50d14b,this[_0x325aaa(0x1c7)]=_0x2bc04a,this[_0x325aaa(0x192)]=_0x3adb2c;const {menu:_0x2574b1,..._0xf6dc7a}=(0x0,_univerjs_core['merge'])({},defaultPluginConfig,this[_0x325aaa(0x1ec)]);if(_0x2574b1)this[_0x325aaa(0x192)][_0x325aaa(0x1a7)](_0x325aaa(0x17d),_0x2574b1,{'merge':!![]});this[_0x325aaa(0x192)][_0x325aaa(0x1a7)](DOCS_PRINT_PLUGIN_CONFIG_KEY,_0xf6dc7a);}[_0x359676(0x147)](){const _0x7c7a5e=_0x359676;(0x0,_univerjs_core['registerDependencies'])(this[_0x7c7a5e(0x1c7)],[[DocPrintService],[DocsPrintUIController]]);}[_0x359676(0x1b6)](){const _0x107bb7=_0x359676;this[_0x107bb7(0x1c7)]['get'](DocsPrintUIController);}};_defineProperty(UniverDocsPrintPlugin,_0x359676(0x158),DOCS_PRINT_PLUGIN_NAME),_defineProperty(UniverDocsPrintPlugin,'packageName',name),_defineProperty(UniverDocsPrintPlugin,_0x359676(0x156),version),_defineProperty(UniverDocsPrintPlugin,_0x359676(0x171),_univerjs_core['UniverInstanceType']['UNIVER_DOC']),UniverDocsPrintPlugin=__decorate([(0x0,_univerjs_core[_0x359676(0x1a0)])(_univerjs_network['UniverNetworkPlugin'],_univerjs_pro_license[_0x359676(0x152)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x359676(0x1f0)])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core[_0x359676(0x197)])],UniverDocsPrintPlugin),exports['DOCS_PRINT_PLUGIN_CONFIG_KEY']=DOCS_PRINT_PLUGIN_CONFIG_KEY,exports[_0x359676(0x1aa)]=DocPrintOperation,Object[_0x359676(0x148)](exports,'UniverDocsPrintPlugin',{'enumerable':!![],'get':function(){return UniverDocsPrintPlugin;}});
|
|
1
|
+
const _0xf5eb8d=_0x486d;(function(_0x2e8f89,_0x56595b){const _0x3b4a03=_0x486d,_0x25a6d6=_0x2e8f89();while(!![]){try{const _0x20fe22=parseInt(_0x3b4a03(0x14f))/0x1+-parseInt(_0x3b4a03(0x1aa))/0x2+-parseInt(_0x3b4a03(0x138))/0x3+parseInt(_0x3b4a03(0x1ad))/0x4*(-parseInt(_0x3b4a03(0x18e))/0x5)+-parseInt(_0x3b4a03(0x151))/0x6+parseInt(_0x3b4a03(0x183))/0x7+parseInt(_0x3b4a03(0x128))/0x8;if(_0x20fe22===_0x56595b)break;else _0x25a6d6['push'](_0x25a6d6['shift']());}catch(_0x44cfc8){_0x25a6d6['push'](_0x25a6d6['shift']());}}}(_0x5aa2,0x30140),Object[_0xf5eb8d(0x195)](exports,Symbol['toStringTag'],{'value':'Module'}));let _univerjs_core=require('@univerjs/core'),_univerjs_docs_ui=require('@univerjs/docs-ui'),_univerjs_engine_render=require('@univerjs/engine-render'),_univerjs_pro_license=require('@univerjs-pro/license'),_univerjs_pro_print=require('@univerjs-pro/print'),_univerjs_docs=require('@univerjs/docs'),_univerjs_ui=require('@univerjs/ui'),_univerjs_network=require('@univerjs/network'),_univerjs_icons=require('@univerjs/icons');function _typeof(_0x452bcf){'@babel/helpers - typeof';const _0x476c29=_0xf5eb8d;return _typeof='function'==typeof Symbol&&_0x476c29(0x12e)==typeof Symbol[_0x476c29(0x159)]?function(_0x49ed65){return typeof _0x49ed65;}:function(_0x1cab2f){const _0x3ecdf7=_0x476c29;return _0x1cab2f&&_0x3ecdf7(0x131)==typeof Symbol&&_0x1cab2f['constructor']===Symbol&&_0x1cab2f!==Symbol[_0x3ecdf7(0x139)]?_0x3ecdf7(0x12e):typeof _0x1cab2f;},_typeof(_0x452bcf);}function toPrimitive(_0x20b8bf,_0x5d90e6){const _0xeea050=_0xf5eb8d;if(_0xeea050(0x126)!=_typeof(_0x20b8bf)||!_0x20b8bf)return _0x20b8bf;var _0x317d58=_0x20b8bf[Symbol[_0xeea050(0x147)]];if(void 0x0!==_0x317d58){var _0x1b89de=_0x317d58['call'](_0x20b8bf,_0x5d90e6||_0xeea050(0x173));if(_0xeea050(0x126)!=_typeof(_0x1b89de))return _0x1b89de;throw new TypeError(_0xeea050(0x161));}return(_0xeea050(0x17c)===_0x5d90e6?String:Number)(_0x20b8bf);}function toPropertyKey(_0x101589){const _0xde2df8=_0xf5eb8d;var _0x18ab61=toPrimitive(_0x101589,_0xde2df8(0x17c));return _0xde2df8(0x12e)==_typeof(_0x18ab61)?_0x18ab61:_0x18ab61+'';}function _defineProperty(_0x177223,_0xb0a87a,_0x47a9a4){const _0x48d764=_0xf5eb8d;return(_0xb0a87a=toPropertyKey(_0xb0a87a))in _0x177223?Object[_0x48d764(0x195)](_0x177223,_0xb0a87a,{'value':_0x47a9a4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x177223[_0xb0a87a]=_0x47a9a4,_0x177223;}var DocPrintPageCanvasView=class extends _univerjs_core[_0xf5eb8d(0x187)]{get[_0xf5eb8d(0x197)](){const _0x48d5e2=_0xf5eb8d;return this[_0x48d5e2(0x170)];}get['root'](){const _0x1df5ff=_0xf5eb8d;return this[_0x1df5ff(0x1b3)];}get[_0xf5eb8d(0x17b)](){const _0x4a78a0=_0xf5eb8d,_0x32791f=this[_0x4a78a0(0x1c2)][_0x4a78a0(0x11c)](_univerjs_engine_render[_0x4a78a0(0x143)])[_0x4a78a0(0x179)](this[_0x4a78a0(0x1bf)]);if(!_0x32791f)throw new Error('Render\x20is\x20not\x20found');return _0x32791f;}get[_0xf5eb8d(0x1a9)](){const _0x2ff3f5=_0xf5eb8d;return this[_0x2ff3f5(0x17b)]['with'](_univerjs_docs[_0x2ff3f5(0x186)])['getSkeleton']();}get[_0xf5eb8d(0x12d)](){const _0x4752a4=_0xf5eb8d,_0x197bb5=this[_0x4752a4(0x1a9)][_0x4752a4(0x19b)]();if(!_0x197bb5)throw new Error(_0x4752a4(0x1b7));return _0x197bb5;}get[_0xf5eb8d(0x180)](){const _0x5850e8=_0xf5eb8d,_0x535258=this[_0x5850e8(0x12d)]['pages'][0x0];return{'width':_0x535258[_0x5850e8(0x121)],'height':_0x535258[_0x5850e8(0x1b1)]};}constructor(_0x142be5,_0x326e8c,_0x40f283,_0x56cad5){const _0x57653b=_0xf5eb8d;super(),this['_injector']=_0x142be5,this[_0x57653b(0x15d)]=_0x326e8c,this['_unitId']=_0x40f283,this[_0x57653b(0x130)]=_0x56cad5,_defineProperty(this,_0x57653b(0x170),document[_0x57653b(0x148)](_0x57653b(0x17a))),_defineProperty(this,_0x57653b(0x1b3),document[_0x57653b(0x148)](_0x57653b(0x17a))),_defineProperty(this,'_engine',void 0x0),_defineProperty(this,_0x57653b(0x19f),void 0x0),_defineProperty(this,_0x57653b(0x1be),void 0x0),_defineProperty(this,_0x57653b(0x125),void 0x0),_defineProperty(this,_0x57653b(0x11a),void 0x0),_defineProperty(this,_0x57653b(0x145),new _univerjs_core[(_0x57653b(0x18b))]()),this[_0x57653b(0x1be)]=(0x0,_univerjs_core[_0x57653b(0x19c)])(0x4),this['_initRenderer'](),this[_0x57653b(0x14d)]({'dispose':()=>{const _0x37e8e5=_0x57653b;this[_0x37e8e5(0x13f)][_0x37e8e5(0x144)](),this[_0x37e8e5(0x19f)][_0x37e8e5(0x144)](),this[_0x37e8e5(0x145)][_0x37e8e5(0x144)]();}});}[_0xf5eb8d(0x1a5)](){const _0x2fe539=_0xf5eb8d,{docsTop:_0x242d17,docsLeft:_0xbfdb5c}=this[_0x2fe539(0x125)][_0x2fe539(0x1b8)](),_0x26ff2d=this[_0x2fe539(0x180)]['height'],_0x460a01=this[_0x2fe539(0x180)][_0x2fe539(0x1a7)];return{'top':_0x242d17+(_0x242d17+_0x26ff2d)*this['_page'],'bottom':_0x242d17+(_0x242d17+_0x26ff2d)*(this['_page']+0x1),'left':_0xbfdb5c,'right':_0xbfdb5c+_0x460a01};}['_initRenderer'](){const _0x514cbc=_0xf5eb8d,_0x1089e2=0x1,_0xcd67c0=0x1;this[_0x514cbc(0x13f)]=new _univerjs_engine_render[(_0x514cbc(0x1b0))]('',{'elementWidth':this[_0x514cbc(0x180)][_0x514cbc(0x1a7)],'elementHeight':this[_0x514cbc(0x180)][_0x514cbc(0x14e)],'dpr':_0xcd67c0,'renderMode':_univerjs_engine_render['CanvasRenderMode']['Printing']}),this[_0x514cbc(0x19f)]=new _univerjs_engine_render[(_0x514cbc(0x15b))](this['_key'],this['_engine']),this[_0x514cbc(0x19f)][_0x514cbc(0x142)](_0x1089e2,_0x1089e2),this[_0x514cbc(0x13f)]['setContainer'](this[_0x514cbc(0x170)],![]),this['_engine'][_0x514cbc(0x171)]()[_0x514cbc(0x12f)]()[_0x514cbc(0x1bb)](this[_0x514cbc(0x1be)]+'_'+(0x0,_univerjs_core['generateRandomId'])(0x4)),this[_0x514cbc(0x193)](),this['_addViewport']();}[_0xf5eb8d(0x193)](){const _0x4de790=_0xf5eb8d,{pageMarginLeft:_0x272dc9,pageMarginTop:_0x59485d,docsLeft:_0x443100,docsTop:_0x18c55b}=this[_0x4de790(0x130)],_0x200a9b={'pageMarginLeft':_0x272dc9,'pageMarginTop':_0x59485d},_0x4c2a51=new _univerjs_engine_render[(_0x4de790(0x176))]('__DocPrintRender__',this[_0x4de790(0x1a9)],_0x200a9b);_0x4c2a51[_0x4de790(0x1b6)](_0x443100,_0x18c55b),this[_0x4de790(0x19f)][_0x4de790(0x19a)](_0x4c2a51),this['_documents']=_0x4c2a51;const _0x216c22=this[_0x4de790(0x1c2)]['get'](_univerjs_docs_ui[_0x4de790(0x155)]);_0x216c22['interceptor'][_0x4de790(0x177)](_0x216c22[_0x4de790(0x165)][_0x4de790(0x1a1)]()[_0x4de790(0x124)])(void 0x0,{'unitId':this['_unitId'],'scene':this[_0x4de790(0x19f)],'engine':this[_0x4de790(0x13f)],'root':this['_root'],'documents':this[_0x4de790(0x125)],'skeleton':this[_0x4de790(0x1a9)]});}['_addViewport'](){const _0x5ba457=_0xf5eb8d;this[_0x5ba457(0x11a)]=new _univerjs_engine_render[(_0x5ba457(0x12a))](_univerjs_docs_ui[_0x5ba457(0x18a)][_0x5ba457(0x11e)],this[_0x5ba457(0x19f)],{'explicitViewportWidthSet':!![],'explicitViewportHeightSet':!![]});}[_0xf5eb8d(0x18d)](){const _0x232768=_0xf5eb8d,_0x142f14=this[_0x232768(0x1a5)]();this['_viewMain'][_0x232768(0x14b)]({'viewportScrollX':_0x142f14[_0x232768(0x188)],'viewportScrollY':_0x142f14[_0x232768(0x14c)]}),this[_0x232768(0x1b3)][_0x232768(0x15a)][_0x232768(0x141)]=_0x232768(0x11d),this[_0x232768(0x1b3)][_0x232768(0x15a)][_0x232768(0x14c)]='0px',this['_root'][_0x232768(0x15a)]['left']=_0x232768(0x184),this[_0x232768(0x1b3)]['style'][_0x232768(0x1a7)]=_0x232768(0x127),this[_0x232768(0x1b3)][_0x232768(0x15a)]['height']=_0x232768(0x127),this['_effects']=new _univerjs_core['DisposableCollection']();const _0x1aebab=this[_0x232768(0x1c2)]['get'](_univerjs_docs_ui['DocPrintInterceptorService']);_0x1aebab[_0x232768(0x165)][_0x232768(0x177)](_0x1aebab[_0x232768(0x165)][_0x232768(0x1a1)]()[_0x232768(0x16b)])(this[_0x232768(0x145)],{'unitId':this[_0x232768(0x1bf)],'scene':this[_0x232768(0x19f)],'engine':this[_0x232768(0x13f)],'root':this[_0x232768(0x1b3)],'skeleton':this[_0x232768(0x1a9)],'offset':{'x':_0x142f14[_0x232768(0x188)],'y':_0x142f14[_0x232768(0x14c)]},'bound':{'top':_0x142f14[_0x232768(0x14c)],'left':_0x142f14['left'],'right':_0x142f14[_0x232768(0x14a)],'bottom':_0x142f14['bottom']}});}['render'](){const _0x2f2464=_0xf5eb8d,_0x5ee89f=this['_engine'][_0x2f2464(0x171)]()[_0x2f2464(0x12f)]();this[_0x2f2464(0x125)]['makeForceDirty'](),this[_0x2f2464(0x19f)]['makeDirty'](),_0x5ee89f['save'](),this[_0x2f2464(0x19f)][_0x2f2464(0x194)](),_0x5ee89f['restore']();}};function __decorateParam(_0x1a0e71,_0x212fbd){return function(_0x2f666f,_0xfa5b5){_0x212fbd(_0x2f666f,_0xfa5b5,_0x1a0e71);};}function __decorate(_0xcc82a6,_0x51e948,_0x20769f,_0x482beb){const _0x1c719f=_0xf5eb8d;var _0x3abb38=arguments[_0x1c719f(0x1b9)],_0x423dba=_0x3abb38<0x3?_0x51e948:_0x482beb===null?_0x482beb=Object[_0x1c719f(0x182)](_0x51e948,_0x20769f):_0x482beb,_0x49b220;if(typeof Reflect===_0x1c719f(0x126)&&typeof Reflect[_0x1c719f(0x17f)]==='function')_0x423dba=Reflect['decorate'](_0xcc82a6,_0x51e948,_0x20769f,_0x482beb);else{for(var _0x3c1323=_0xcc82a6[_0x1c719f(0x1b9)]-0x1;_0x3c1323>=0x0;_0x3c1323--)if(_0x49b220=_0xcc82a6[_0x3c1323])_0x423dba=(_0x3abb38<0x3?_0x49b220(_0x423dba):_0x3abb38>0x3?_0x49b220(_0x51e948,_0x20769f,_0x423dba):_0x49b220(_0x51e948,_0x20769f))||_0x423dba;}return _0x3abb38>0x3&&_0x423dba&&Object[_0x1c719f(0x195)](_0x51e948,_0x20769f,_0x423dba),_0x423dba;}const BUILD_TIMESTAMP=Number[_0xf5eb8d(0x12b)](0x6a08148d),DEFAULT_PRINT_LIMIT=0x1,getPrintInfoByLicense=(_0x175f12,_0x233878,_0x5c49fd)=>{const _0x21afd9=_0xf5eb8d,_0x4541d3={'page':_0x175f12,'isPro':![],'timeValid':![]};if(!_0x233878||!_0x5c49fd)return _0x4541d3;const _0x519269=(0x0,_univerjs_pro_license[_0x21afd9(0x154)])(_0x233878,_0x5c49fd);if(_0x519269[_0x21afd9(0x158)]){const _0x2448c1=_0x519269['message'],_0x16362c=(0x0,_univerjs_pro_license[_0x21afd9(0x196)])(_0x2448c1,'df',BUILD_TIMESTAMP);_0x4541d3[_0x21afd9(0x166)]=_0x16362c,_0x4541d3[_0x21afd9(0x16d)]=_0x16362c,_0x4541d3[_0x21afd9(0x11f)]=(0x0,_univerjs_pro_license[_0x21afd9(0x140)])(_0x2448c1,_0x16362c,_0x21afd9(0x15f),_0x175f12,_0x175f12,0x0);}return _0x4541d3;};let DocPrintService=class DocPrintService extends _univerjs_core[_0xf5eb8d(0x187)]{constructor(_0x494f44,_0x4a5da6,_0x2cbc67,_0x48b9db,_0x5800e4){const _0x141649=_0xf5eb8d;super(),this[_0x141649(0x157)]=_0x494f44,this[_0x141649(0x15c)]=_0x4a5da6,this[_0x141649(0x1c2)]=_0x2cbc67,this[_0x141649(0x119)]=_0x48b9db,this[_0x141649(0x13c)]=_0x5800e4;}[_0xf5eb8d(0x199)](_0xd90696){const _0x480dcb=_0xf5eb8d;var _0x29ea2a,_0x2559c0;const {ls:_0x1d9e99,pbk:_0x5512e1}=(_0x29ea2a=this[_0x480dcb(0x119)][_0x480dcb(0x153)](_univerjs_pro_license['LS_CONFIG_KEY']))!==null&&_0x29ea2a!==void 0x0?_0x29ea2a:{},_0x414bda=(0x0,_univerjs_pro_license[_0x480dcb(0x16e)])()?Number[_0x480dcb(0x18f)]:getPrintInfoByLicense(0x1,_0x1d9e99,_0x5512e1)[_0x480dcb(0x11f)];if(!this[_0x480dcb(0x157)][_0x480dcb(0x1ac)](_0xd90696,_univerjs_core[_0x480dcb(0x16c)][_0x480dcb(0x120)]))throw new Error(_0x480dcb(0x146));const _0x4ecfb5=this[_0x480dcb(0x15c)][_0x480dcb(0x179)](_0xd90696);if(!_0x4ecfb5)throw new Error(_0x480dcb(0x152));const _0x5caee5=(_0x2559c0=_0x4ecfb5['with'](_univerjs_docs[_0x480dcb(0x186)])[_0x480dcb(0x1a3)]()[_0x480dcb(0x19b)]())===null||_0x2559c0===void 0x0?void 0x0:_0x2559c0[_0x480dcb(0x1b2)];if(!_0x5caee5)throw new Error(_0x480dcb(0x1bc));const _0x4119d3={'width':_0x5caee5[0x0]['pageWidth'],'height':_0x5caee5[0x0][_0x480dcb(0x1b1)]},_0xec9e0a=_0x5caee5[_0x480dcb(0x1b9)],_0x406e0a=Math[_0x480dcb(0x1a0)](_0x414bda,_0xec9e0a),_0x52d353=_0x4ecfb5[_0x480dcb(0x16a)][_0x480dcb(0x1b8)](),_0x410c12=document[_0x480dcb(0x148)]('div');_0x410c12[_0x480dcb(0x192)]=_univerjs_pro_print['PRINT_CONTAINER_CLASS'];const _0x2c28e3=new Array(_0x406e0a)['fill'](null)[_0x480dcb(0x137)]((_0x58fd46,_0x28928c)=>{const _0x4bec9f=_0x480dcb,_0x3f3408=new DocPrintPageCanvasView(this[_0x4bec9f(0x1c2)],_0x28928c,_0xd90696,_0x52d353);return _0x3f3408[_0x4bec9f(0x197)]['className']=_univerjs_pro_print[_0x4bec9f(0x1a6)],_0x3f3408;});_0x2c28e3[_0x480dcb(0x1b5)](_0x192b5a=>{const _0x5e8569=_0x480dcb;_0x410c12[_0x5e8569(0x1bd)](_0x192b5a[_0x5e8569(0x197)]),_0x192b5a['container'][_0x5e8569(0x1bd)](_0x192b5a['root']),_0x192b5a['prepare']();});const _0x2ab3c0=(0x0,_univerjs_pro_print[_0x480dcb(0x17d)])(_0x4119d3[_0x480dcb(0x1a7)],_0x4119d3['height'],_univerjs_pro_print['PrintDirection'][_0x480dcb(0x190)]);return document[_0x480dcb(0x1c1)][_0x480dcb(0x1bd)](_0x2ab3c0),document[_0x480dcb(0x1c1)][_0x480dcb(0x1bd)](_0x410c12),new Promise(_0x40da12=>{setTimeout(()=>{const _0x332954=_0x486d;window['onbeforeprint']=()=>{const _0x3d6526=_0x486d;_0x2c28e3[_0x3d6526(0x1b5)](_0x4f259b=>{const _0x331de8=_0x3d6526;_0x4f259b[_0x331de8(0x194)]();});},window['onafterprint']=()=>{const _0x590927=_0x486d;_0x2c28e3[_0x590927(0x1b5)](_0xff0b06=>{const _0x2fbbf2=_0x590927;_0xff0b06[_0x2fbbf2(0x144)]();}),document[_0x590927(0x1c1)]['removeChild'](_0x410c12),document[_0x590927(0x1c1)][_0x590927(0x174)](_0x2ab3c0),this['_globalZoneService'][_0x590927(0x1ba)](),_0x40da12(!![]);},window[_0x332954(0x199)]();},0x64);});}};DocPrintService=__decorate([__decorateParam(0x0,_univerjs_core[_0xf5eb8d(0x13e)]),__decorateParam(0x1,_univerjs_engine_render[_0xf5eb8d(0x143)]),__decorateParam(0x2,(0x0,_univerjs_core[_0xf5eb8d(0x19e)])(_univerjs_core[_0xf5eb8d(0x198)])),__decorateParam(0x3,_univerjs_core['IConfigService']),__decorateParam(0x4,_univerjs_ui[_0xf5eb8d(0x129)])],DocPrintService);const DocPrintOperation={'id':_0xf5eb8d(0x134),'type':_univerjs_core['CommandType'][_0xf5eb8d(0x162)],'handler':async _0x4ec0f3=>{const _0x21f238=_0xf5eb8d,_0x21a98d=_0x4ec0f3['get'](_univerjs_core[_0x21f238(0x13e)]),_0x18fd8b=_0x4ec0f3[_0x21f238(0x11c)](DocPrintService),_0x36334e=_0x4ec0f3[_0x21f238(0x11c)](_univerjs_engine_render[_0x21f238(0x143)]),_0x4c3f03=_0x4ec0f3[_0x21f238(0x11c)](_univerjs_core[_0x21f238(0x13a)]),_0x32b233=_0x21a98d['getCurrentUnitOfType'](_univerjs_core[_0x21f238(0x16c)][_0x21f238(0x120)]);if(!_0x32b233)return![];if(!_0x36334e[_0x21f238(0x179)](_0x32b233[_0x21f238(0x122)]()))throw new Error(_0x21f238(0x152));const _0x1cf4dd=_0x32b233[_0x21f238(0x168)]()[_0x21f238(0x1a4)];if(_0x1cf4dd!==_univerjs_core[_0x21f238(0x1ab)][_0x21f238(0x156)])_0x4c3f03[_0x21f238(0x164)](_univerjs_docs_ui[_0x21f238(0x150)]['id']);await _0x18fd8b['print'](_0x32b233[_0x21f238(0x122)]());if(_0x1cf4dd!==_univerjs_core['DocumentFlavor'][_0x21f238(0x156)])_0x4c3f03[_0x21f238(0x164)](_univerjs_docs_ui[_0x21f238(0x150)]['id']);return!![];}},DOCS_PRINT_PLUGIN_CONFIG_KEY='UNIVER_DOCS_PRINT',defaultPluginConfig={};var name=_0xf5eb8d(0x149),version=_0xf5eb8d(0x18c);const DOCS_PRINT_PLUGIN_NAME='UNIVER_DOCS_PRINT';function DocPrintMenuItemFactory(_0x352131){const _0x449b65=_0xf5eb8d;return{'id':DocPrintOperation['id'],'type':_univerjs_ui['MenuItemType'][_0x449b65(0x123)],'title':_0x449b65(0x189),'icon':_0x449b65(0x175),'tooltip':_0x449b65(0x189),'hidden$':(0x0,_univerjs_ui[_0x449b65(0x13b)])(_0x352131,_univerjs_core[_0x449b65(0x16c)][_0x449b65(0x120)])};}const menuSchema={[_univerjs_ui['RibbonStartGroup'][_0xf5eb8d(0x160)]]:{[DocPrintOperation['id']]:{'order':0.1,'menuItemFactory':DocPrintMenuItemFactory}}};function _0x486d(_0x2cf101,_0x12d236){_0x2cf101=_0x2cf101-0x119;const _0x5aa278=_0x5aa2();let _0x486d0c=_0x5aa278[_0x2cf101];return _0x486d0c;}let DocsPrintUIController=class DocsPrintUIController extends _univerjs_core[_0xf5eb8d(0x187)]{constructor(_0x20e164,_0x3d2daa,_0x7b1675){const _0x2709c1=_0xf5eb8d;super(),this[_0x2709c1(0x133)]=_0x20e164,this[_0x2709c1(0x19d)]=_0x3d2daa,this[_0x2709c1(0x178)]=_0x7b1675,this[_0x2709c1(0x1b4)](),this[_0x2709c1(0x1c0)](),this[_0x2709c1(0x135)]();}['_initMenus'](){const _0x319304=_0xf5eb8d;this[_0x319304(0x19d)][_0x319304(0x167)](menuSchema);}['_initCommands'](){const _0x177adc=_0xf5eb8d;this[_0x177adc(0x14d)](this[_0x177adc(0x133)][_0x177adc(0x185)](DocPrintOperation));}[_0xf5eb8d(0x135)](){const _0x2ea16e=_0xf5eb8d;[[_0x2ea16e(0x175),_univerjs_icons[_0x2ea16e(0x175)]]][_0x2ea16e(0x1b5)](([_0x448cd7,_0x1f76e9])=>{const _0x3f7021=_0x2ea16e;this[_0x3f7021(0x178)][_0x3f7021(0x12c)](_0x448cd7,_0x1f76e9);});}};DocsPrintUIController=__decorate([__decorateParam(0x0,_univerjs_core['ICommandService']),__decorateParam(0x1,_univerjs_ui[_0xf5eb8d(0x172)]),__decorateParam(0x2,(0x0,_univerjs_core[_0xf5eb8d(0x19e)])(_univerjs_ui[_0xf5eb8d(0x181)]))],DocsPrintUIController);let UniverDocsPrintPlugin=class UniverDocsPrintPlugin extends _univerjs_core['Plugin']{constructor(_0x138c92=defaultPluginConfig,_0x27d801,_0xfb39c){const _0x1749f2=_0xf5eb8d;super(),this[_0x1749f2(0x191)]=_0x138c92,this['_injector']=_0x27d801,this[_0x1749f2(0x119)]=_0xfb39c;const {menu:_0x4b0f38,..._0x130ea3}=(0x0,_univerjs_core[_0x1749f2(0x1af)])({},defaultPluginConfig,this['_config']);if(_0x4b0f38)this['_configService'][_0x1749f2(0x1a8)](_0x1749f2(0x11b),_0x4b0f38,{'merge':!![]});this[_0x1749f2(0x119)][_0x1749f2(0x1a8)](DOCS_PRINT_PLUGIN_CONFIG_KEY,_0x130ea3);}[_0xf5eb8d(0x16f)](){const _0x5d40b6=_0xf5eb8d;(0x0,_univerjs_core[_0x5d40b6(0x17e)])(this[_0x5d40b6(0x1c2)],[[DocPrintService],[DocsPrintUIController]]);}[_0xf5eb8d(0x169)](){const _0x33bc08=_0xf5eb8d;this['_injector'][_0x33bc08(0x11c)](DocsPrintUIController);}};function _0x5aa2(){const _0x29519a=['onStarting','_container','getCanvas','IMenuManagerService','default','removeChild','PrintIcon','Documents','fetchThroughInterceptors','_componentManager','getRenderById','div','_currentRender','string','createPrintStyle','registerDependencies','decorate','_paperSize','ComponentManager','getOwnPropertyDescriptor','1577317wVbObu','0px','registerCommand','DocSkeletonManagerService','Disposable','left','print.menu','VIEWPORT_KEY','DisposableCollection','0.22.1-insiders.20260516-8900c44','prepare','795cRdXhq','POSITIVE_INFINITY','Portrait','_config','className','_addComponent','render','defineProperty','isFeatureAuthorizedWithinTime','container','Injector','print','addObject','getSkeletonData','generateRandomId','_menuManagerService','Inject','_scene','min','getInterceptPoints','version','getSkeleton','documentFlavor','_calculateLayout','PRINT_CANVAS_CLASS','width','setConfig','_skeleton','453742UzAQxa','DocumentFlavor','getUnit','6756EprsuY','DependentOn','merge','Engine','pageHeight','pages','_root','_initMenus','forEach','translate','Skeleton\x20data\x20is\x20not\x20found','getOffsetConfig','length','close','setId','Pages\x20are\x20not\x20found','appendChild','_key','_unitId','_initCommands','body','_injector','_configService','_viewMain','menu','get','absolute','VIEW_MAIN','page','UNIVER_DOC','pageWidth','getUnitId','BUTTON','PRINTING_COMPONENT_COLLECT','_documents','object','100%','8026008yDzGPF','IGlobalZoneService','Viewport','parseInt','register','_skeletonData','symbol','getContext','_offsetConfig','function','packageName','_commandService','docs.operation.print','_initComponents','DocPrintOperation','map','1107957QNlSvx','prototype','ICommandService','getMenuHiddenObservable','_globalZoneService','type','IUniverInstanceService','_engine','getDocFeatureLimit','position','scale','IRenderManagerService','dispose','_effects','DocumentDataModel\x20is\x20not\x20found','toPrimitive','createElement','@univerjs-pro/docs-print','right','updateScrollVal','top','disposeWithMe','height','98437PYkQXh','SwitchDocModeCommand','1592100JWJDay','Render\x20is\x20not\x20found','getConfig','getLicenseInfo','DocPrintInterceptorService','TRADITIONAL','_univerInstanceService','valid','iterator','style','Scene','_renderManagerService','_page','DOCS_PRINT_PLUGIN_CONFIG_KEY','mpn','OTHERS','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','OPERATION','IConfigService','syncExecuteCommand','interceptor','isPro','mergeMenu','getDocumentStyle','onReady','mainComponent','PRINTING_DOM_COLLECT','UniverInstanceType','timeValid','isLocalCheck'];_0x5aa2=function(){return _0x29519a;};return _0x5aa2();}_defineProperty(UniverDocsPrintPlugin,'pluginName',DOCS_PRINT_PLUGIN_NAME),_defineProperty(UniverDocsPrintPlugin,_0xf5eb8d(0x132),name),_defineProperty(UniverDocsPrintPlugin,_0xf5eb8d(0x1a2),version),_defineProperty(UniverDocsPrintPlugin,_0xf5eb8d(0x13d),_univerjs_core[_0xf5eb8d(0x16c)]['UNIVER_DOC']),UniverDocsPrintPlugin=__decorate([(0x0,_univerjs_core[_0xf5eb8d(0x1ae)])(_univerjs_network['UniverNetworkPlugin'],_univerjs_pro_license['UniverLicensePlugin']),__decorateParam(0x1,(0x0,_univerjs_core[_0xf5eb8d(0x19e)])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core[_0xf5eb8d(0x163)])],UniverDocsPrintPlugin),exports[_0xf5eb8d(0x15e)]=DOCS_PRINT_PLUGIN_CONFIG_KEY,exports[_0xf5eb8d(0x136)]=DocPrintOperation,Object['defineProperty'](exports,'UniverDocsPrintPlugin',{'enumerable':!![],'get':function(){return UniverDocsPrintPlugin;}});
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x588bca=_0x4a85;(function(_0x26acfc,_0x5d243c){const _0x183e91=_0x4a85,_0x1985be=_0x26acfc();while(!![]){try{const _0x4a6567=parseInt(_0x183e91(0xe4))/0x1*(parseInt(_0x183e91(0xe3))/0x2)+-parseInt(_0x183e91(0xe5))/0x3+-parseInt(_0x183e91(0xe7))/0x4*(-parseInt(_0x183e91(0xdf))/0x5)+-parseInt(_0x183e91(0xe0))/0x6+-parseInt(_0x183e91(0xe2))/0x7+parseInt(_0x183e91(0xe6))/0x8+parseInt(_0x183e91(0xde))/0x9;if(_0x4a6567===_0x5d243c)break;else _0x1985be['push'](_0x1985be['shift']());}catch(_0x3b6ba5){_0x1985be['push'](_0x1985be['shift']());}}}(_0x2ad0,0x57b1b));function _0x4a85(_0x5a86eb,_0x396685){_0x5a86eb=_0x5a86eb-0xde;const _0x2ad090=_0x2ad0();let _0x4a850b=_0x2ad090[_0x5a86eb];return _0x4a850b;}function _0x2ad0(){const _0xf2db62=['637448KPLJlw','1WkcAyR','1609035JAgNZM','314536BklOEs','376fiVOKb','8015643QmCDzv','21530EFXljd','2014224NMWGyR','exports','2955316WYLFuL'];_0x2ad0=function(){return _0xf2db62;};return _0x2ad0();}const locale$1={'print':{'menu':'Print'}},locale=locale$1;module[_0x588bca(0xe1)]=locale;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x1860(_0xca1be8,_0x24898f){_0xca1be8=_0xca1be8-0x142;const _0x5af415=_0x5af4();let _0x186053=_0x5af415[_0xca1be8];return _0x186053;}const _0x35588a=_0x1860;(function(_0x14bd06,_0x20d49b){const _0xee7e92=_0x1860,_0x35d61a=_0x14bd06();while(!![]){try{const _0x4a69a9=-parseInt(_0xee7e92(0x149))/0x1+-parseInt(_0xee7e92(0x142))/0x2+-parseInt(_0xee7e92(0x14c))/0x3+parseInt(_0xee7e92(0x143))/0x4*(parseInt(_0xee7e92(0x147))/0x5)+parseInt(_0xee7e92(0x144))/0x6*(parseInt(_0xee7e92(0x148))/0x7)+parseInt(_0xee7e92(0x145))/0x8+-parseInt(_0xee7e92(0x146))/0x9*(parseInt(_0xee7e92(0x14a))/0xa);if(_0x4a69a9===_0x20d49b)break;else _0x35d61a['push'](_0x35d61a['shift']());}catch(_0x42e052){_0x35d61a['push'](_0x35d61a['shift']());}}}(_0x5af4,0x68c3c));const locale={'print':{'menu':_0x35588a(0x14b)}};function _0x5af4(){const _0x405f2b=['1021119rLREwz','246892GPXSaO','1148IUASER','114zqSFkq','6535784BgnzCS','467739npjINM','1485gtibVi','300923IoXCbk','774097IVJSet','10FplaFq','Print'];_0x5af4=function(){return _0x405f2b;};return _0x5af4();}module['exports']=locale;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x595bcb=_0x3221;(function(_0x1f6962,_0x52c06a){const _0x5a8f5c=_0x3221,_0x441d07=_0x1f6962();while(!![]){try{const _0x21dc71=-parseInt(_0x5a8f5c(0x1f8))/0x1*(parseInt(_0x5a8f5c(0x1f1))/0x2)+-parseInt(_0x5a8f5c(0x1ef))/0x3*(-parseInt(_0x5a8f5c(0x1f5))/0x4)+-parseInt(_0x5a8f5c(0x1f9))/0x5*(-parseInt(_0x5a8f5c(0x1f7))/0x6)+-parseInt(_0x5a8f5c(0x1ec))/0x7*(parseInt(_0x5a8f5c(0x1f0))/0x8)+-parseInt(_0x5a8f5c(0x1ee))/0x9+parseInt(_0x5a8f5c(0x1f4))/0xa*(-parseInt(_0x5a8f5c(0x1ed))/0xb)+parseInt(_0x5a8f5c(0x1f6))/0xc;if(_0x21dc71===_0x52c06a)break;else _0x441d07['push'](_0x441d07['shift']());}catch(_0x2b31b2){_0x441d07['push'](_0x441d07['shift']());}}}(_0x7232,0x40219));function _0x3221(_0x138dfd,_0xbb8c1){_0x138dfd=_0x138dfd-0x1ec;const _0x723270=_0x7232();let _0x32215f=_0x723270[_0x138dfd];return _0x32215f;}const locale$1={'print':{'menu':_0x595bcb(0x1f3)}},locale=locale$1;function _0x7232(){const _0x3c51dd=['420RkOxhq','93mIBtel','3295KVUXVx','133oSfIyZ','4830353ergcYr','1475343NfpFWV','40062qRqRlU','63816zhKvVx','52wTTPsW','exports','Print','10DnZQMv','76CDvxji','8638272bEEAqs'];_0x7232=function(){return _0x3c51dd;};return _0x7232();}module[_0x595bcb(0x1f2)]=locale;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x5a73(_0x5e9758,_0x36f516){_0x5e9758=_0x5e9758-0x180;const _0x4a4d15=_0x4a4d();let _0x5a7301=_0x4a4d15[_0x5e9758];return _0x5a7301;}const _0x71d0aa=_0x5a73;(function(_0x413ef8,_0x3f40ba){const _0x5cd60f=_0x5a73,_0x5a56cd=_0x413ef8();while(!![]){try{const _0x3d83c6=-parseInt(_0x5cd60f(0x18b))/0x1+-parseInt(_0x5cd60f(0x189))/0x2+parseInt(_0x5cd60f(0x181))/0x3*(-parseInt(_0x5cd60f(0x182))/0x4)+parseInt(_0x5cd60f(0x180))/0x5+-parseInt(_0x5cd60f(0x183))/0x6*(-parseInt(_0x5cd60f(0x188))/0x7)+parseInt(_0x5cd60f(0x18a))/0x8+-parseInt(_0x5cd60f(0x184))/0x9*(-parseInt(_0x5cd60f(0x186))/0xa);if(_0x3d83c6===_0x3f40ba)break;else _0x5a56cd['push'](_0x5a56cd['shift']());}catch(_0x1200a6){_0x5a56cd['push'](_0x5a56cd['shift']());}}}(_0x4a4d,0xc4f6d));const locale={'print':{'menu':_0x71d0aa(0x185)}};function _0x4a4d(){const _0x13d476=['1035475XoPFyO','12bjrPmA','695944IRpvSy','42qOYybL','306RepIdB','چاپ','212830SxJgRk','exports','1216348FAiyvs','1487914EJRoYI','12801488aPmraB','1500585vaslnb'];_0x4a4d=function(){return _0x13d476;};return _0x4a4d();}module[_0x71d0aa(0x187)]=locale;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5d43(_0x3b11db,_0x11c2bc){_0x3b11db=_0x3b11db-0x1a8;const _0x57b20c=_0x57b2();let _0x5d438e=_0x57b20c[_0x3b11db];return _0x5d438e;}const _0x4b6080=_0x5d43;(function(_0x33c013,_0x1a17f1){const _0x2f7da7=_0x5d43,_0x167935=_0x33c013();while(!![]){try{const _0x4f038e=-parseInt(_0x2f7da7(0x1af))/0x1*(parseInt(_0x2f7da7(0x1b1))/0x2)+-parseInt(_0x2f7da7(0x1ae))/0x3+parseInt(_0x2f7da7(0x1ad))/0x4+parseInt(_0x2f7da7(0x1b0))/0x5*(-parseInt(_0x2f7da7(0x1a8))/0x6)+parseInt(_0x2f7da7(0x1b3))/0x7*(-parseInt(_0x2f7da7(0x1b2))/0x8)+-parseInt(_0x2f7da7(0x1ac))/0x9+parseInt(_0x2f7da7(0x1ab))/0xa*(parseInt(_0x2f7da7(0x1a9))/0xb);if(_0x4f038e===_0x1a17f1)break;else _0x167935['push'](_0x167935['shift']());}catch(_0x3ccdc9){_0x167935['push'](_0x167935['shift']());}}}(_0x57b2,0xc14fe));const locale={'print':{'menu':'Imprimer'}};function _0x57b2(){const _0x249b26=['6006qdXBXf','11bpyYLk','exports','33856090zNfafX','13989087SGBWIm','6038260JkzGmV','2248416ARjQKu','2729qnIDpc','1590JYeyQt','78BPBRXN','1222048ehDymx','63wbefZf'];_0x57b2=function(){return _0x249b26;};return _0x57b2();}module[_0x4b6080(0x1aa)]=locale;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2a4ca8=_0x408a;(function(_0x34517c,_0x27e185){const _0x521734=_0x408a,_0x2b014b=_0x34517c();while(!![]){try{const _0x5e63a3=parseInt(_0x521734(0x7c))/0x1*(-parseInt(_0x521734(0x7d))/0x2)+parseInt(_0x521734(0x79))/0x3+parseInt(_0x521734(0x7b))/0x4*(-parseInt(_0x521734(0x7f))/0x5)+-parseInt(_0x521734(0x80))/0x6+-parseInt(_0x521734(0x7a))/0x7+-parseInt(_0x521734(0x7e))/0x8+parseInt(_0x521734(0x82))/0x9;if(_0x5e63a3===_0x27e185)break;else _0x2b014b['push'](_0x2b014b['shift']());}catch(_0x5989fb){_0x2b014b['push'](_0x2b014b['shift']());}}}(_0x5255,0x64bcc));function _0x408a(_0x3bb45f,_0x5644bb){_0x3bb45f=_0x3bb45f-0x79;const _0x52555c=_0x5255();let _0x408a18=_0x52555c[_0x3bb45f];return _0x408a18;}function _0x5255(){const _0x7b2b86=['5743836mpCWJx','4MpjPkz','10345ggDvEA','96zupvwO','3510440LYsRxG','811695pmZMmL','3069192WjZcyV','exports','22483143CmPMJR','1032831rVidxW'];_0x5255=function(){return _0x7b2b86;};return _0x5255();}const locale={'print':{'menu':'印刷'}};module[_0x2a4ca8(0x81)]=locale;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2e1f(){const _0x3d4196=['15PYTwMD','2430552mNXOgx','674805zLnIlp','301777xuglab','35042WLGamC','exports','12BVZVVy','72855zGpwPC','873356yimFpc','3620214DScYHE'];_0x2e1f=function(){return _0x3d4196;};return _0x2e1f();}const _0x739966=_0x4aa5;function _0x4aa5(_0x449be0,_0x4d1716){_0x449be0=_0x449be0-0x1bd;const _0x2e1fa8=_0x2e1f();let _0x4aa532=_0x2e1fa8[_0x449be0];return _0x4aa532;}(function(_0x4872f8,_0x384404){const _0x2521a3=_0x4aa5,_0x79d854=_0x4872f8();while(!![]){try{const _0x41281f=parseInt(_0x2521a3(0x1be))/0x1+parseInt(_0x2521a3(0x1c5))/0x2*(parseInt(_0x2521a3(0x1c1))/0x3)+-parseInt(_0x2521a3(0x1bf))/0x4+parseInt(_0x2521a3(0x1c3))/0x5+-parseInt(_0x2521a3(0x1bd))/0x6*(-parseInt(_0x2521a3(0x1c4))/0x7)+-parseInt(_0x2521a3(0x1c2))/0x8+parseInt(_0x2521a3(0x1c0))/0x9;if(_0x41281f===_0x384404)break;else _0x79d854['push'](_0x79d854['shift']());}catch(_0x3040ba){_0x79d854['push'](_0x79d854['shift']());}}}(_0x2e1f,0x3fe63));const locale={'print':{'menu':'인쇄'}};module[_0x739966(0x1c6)]=locale;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x29c364=_0xff81;(function(_0x5c3280,_0x2e13bc){const _0x29e87d=_0xff81,_0x34fc00=_0x5c3280();while(!![]){try{const _0x450ab9=-parseInt(_0x29e87d(0x12c))/0x1+parseInt(_0x29e87d(0x12a))/0x2+parseInt(_0x29e87d(0x12e))/0x3+-parseInt(_0x29e87d(0x133))/0x4*(parseInt(_0x29e87d(0x131))/0x5)+-parseInt(_0x29e87d(0x12f))/0x6+parseInt(_0x29e87d(0x12b))/0x7+parseInt(_0x29e87d(0x12d))/0x8*(-parseInt(_0x29e87d(0x132))/0x9);if(_0x450ab9===_0x2e13bc)break;else _0x34fc00['push'](_0x34fc00['shift']());}catch(_0x488046){_0x34fc00['push'](_0x34fc00['shift']());}}}(_0x4b93,0x30f72));const locale={'print':{'menu':_0x29c364(0x130)}};function _0xff81(_0x2181ae,_0x44b9bd){_0x2181ae=_0x2181ae-0x12a;const _0x4b93d0=_0x4b93();let _0xff8129=_0x4b93d0[_0x2181ae];return _0xff8129;}function _0x4b93(){const _0x565db3=['93872BcFXFR','8USNFmY','654924aVpMTy','2165274xHUDxs','Печать','290NUppiI','432909HLAITB','10792ssEjgW','497012WJSzSU','2751588wVtJYP'];_0x4b93=function(){return _0x565db3;};return _0x4b93();}module['exports']=locale;
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x1b5e(_0x5aa695,_0x5e8424){_0x5aa695=_0x5aa695-0x15e;const _0x2df2e2=_0x2df2();let _0x1b5e13=_0x2df2e2[_0x5aa695];return _0x1b5e13;}const _0x1d49ce=_0x1b5e;(function(_0x21593b,_0x30550a){const _0x3db70c=_0x1b5e,_0x499b6f=_0x21593b();while(!![]){try{const _0x503bab=parseInt(_0x3db70c(0x15f))/0x1*(-parseInt(_0x3db70c(0x161))/0x2)+-parseInt(_0x3db70c(0x162))/0x3+-parseInt(_0x3db70c(0x165))/0x4+-parseInt(_0x3db70c(0x166))/0x5+parseInt(_0x3db70c(0x167))/0x6*(parseInt(_0x3db70c(0x169))/0x7)+-parseInt(_0x3db70c(0x168))/0x8+-parseInt(_0x3db70c(0x163))/0x9*(-parseInt(_0x3db70c(0x164))/0xa);if(_0x503bab===_0x30550a)break;else _0x499b6f['push'](_0x499b6f['shift']());}catch(_0x2f4db6){_0x499b6f['push'](_0x499b6f['shift']());}}}(_0x2df2,0xe815e));function _0x2df2(){const _0x5ac7ab=['Tlač','1LhxvfV','exports','3187938KUtKxI','5299953hOWNal','99LWkvJu','4383170tlnmkd','1102440vkIEEF','6953700vNgihu','12ESTabW','5393848OKSksW','6406176UMUCPl'];_0x2df2=function(){return _0x5ac7ab;};return _0x2df2();}const locale={'print':{'menu':_0x1d49ce(0x15e)}};module[_0x1d49ce(0x160)]=locale;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x35e6a4=_0x3abe;(function(_0x11796f,_0x14260b){const _0xdc57f7=_0x3abe,_0x300059=_0x11796f();while(!![]){try{const _0x49e39c=parseInt(_0xdc57f7(0x1b2))/0x1*(-parseInt(_0xdc57f7(0x1ac))/0x2)+-parseInt(_0xdc57f7(0x1b1))/0x3+-parseInt(_0xdc57f7(0x1af))/0x4+-parseInt(_0xdc57f7(0x1ad))/0x5+parseInt(_0xdc57f7(0x1b4))/0x6*(-parseInt(_0xdc57f7(0x1b3))/0x7)+parseInt(_0xdc57f7(0x1ae))/0x8*(parseInt(_0xdc57f7(0x1b0))/0x9)+parseInt(_0xdc57f7(0x1ab))/0xa;if(_0x49e39c===_0x14260b)break;else _0x300059['push'](_0x300059['shift']());}catch(_0x2ed4f0){_0x300059['push'](_0x300059['shift']());}}}(_0x55fa,0x9cf8c));function _0x3abe(_0x2265fa,_0x58359c){_0x2265fa=_0x2265fa-0x1aa;const _0x55fac5=_0x55fa();let _0x3abed8=_0x55fac5[_0x2265fa];return _0x3abed8;}const locale={'print':{'menu':'In'}};function _0x55fa(){const _0x1cd413=['964071cdkuww','397278yDPgAl','69Vncvvb','92057PIZjoh','558CPvHBH','exports','38361690cCmrNr','35312tGwvTL','4746830eqUrmE','56hFpzJn','1679788JJNyUc'];_0x55fa=function(){return _0x1cd413;};return _0x55fa();}module[_0x35e6a4(0x1aa)]=locale;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3f813e=_0x3957;function _0x3957(_0xcec11b,_0x4187eb){_0xcec11b=_0xcec11b-0x1cf;const _0x13cf36=_0x13cf();let _0x39579b=_0x13cf36[_0xcec11b];return _0x39579b;}(function(_0x3bd858,_0x517aa1){const _0x49393a=_0x3957,_0x15c80a=_0x3bd858();while(!![]){try{const _0x51ac27=parseInt(_0x49393a(0x1d9))/0x1+-parseInt(_0x49393a(0x1d8))/0x2*(-parseInt(_0x49393a(0x1d4))/0x3)+-parseInt(_0x49393a(0x1d3))/0x4+-parseInt(_0x49393a(0x1d2))/0x5*(parseInt(_0x49393a(0x1d6))/0x6)+-parseInt(_0x49393a(0x1d7))/0x7*(parseInt(_0x49393a(0x1d0))/0x8)+parseInt(_0x49393a(0x1d1))/0x9*(-parseInt(_0x49393a(0x1d5))/0xa)+parseInt(_0x49393a(0x1da))/0xb*(parseInt(_0x49393a(0x1db))/0xc);if(_0x51ac27===_0x517aa1)break;else _0x15c80a['push'](_0x15c80a['shift']());}catch(_0x386ea3){_0x15c80a['push'](_0x15c80a['shift']());}}}(_0x13cf,0x99fe4));const locale={'print':{'menu':'打印'}};module[_0x3f813e(0x1cf)]=locale;function _0x13cf(){const _0x73c42f=['703646EvIVwp','241131bLhynQ','1212IrZpKH','exports','80etKsBb','6850458lOLLap','84890eNYowV','400980AkZmaI','1009608fnbIKr','10Fsoqiu','342uxSSfr','791581OtXKMV','4TNeuPS'];_0x13cf=function(){return _0x73c42f;};return _0x13cf();}
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4499(_0x2709cc,_0xac71e){_0x2709cc=_0x2709cc-0xde;const _0xd97faf=_0xd97f();let _0x44991d=_0xd97faf[_0x2709cc];return _0x44991d;}const _0x4151c3=_0x4499;function _0xd97f(){const _0x2f0e8c=['325786HQrYUx','147oRNwwr','exports','531932OEsqFQ','620790pqGShs','7nmrTMJ','6219072KDgJRM','1158712gZswJY','1558630LluXwe','5572WoryjU'];_0xd97f=function(){return _0x2f0e8c;};return _0xd97f();}(function(_0x27de70,_0x5a65b0){const _0x5af179=_0x4499,_0x1bf955=_0x27de70();while(!![]){try{const _0x58a5e2=parseInt(_0x5af179(0xde))/0x1+parseInt(_0x5af179(0xe1))/0x2+parseInt(_0x5af179(0xdf))/0x3*(-parseInt(_0x5af179(0xe7))/0x4)+parseInt(_0x5af179(0xe6))/0x5+-parseInt(_0x5af179(0xe2))/0x6+-parseInt(_0x5af179(0xe3))/0x7*(-parseInt(_0x5af179(0xe5))/0x8)+-parseInt(_0x5af179(0xe4))/0x9;if(_0x58a5e2===_0x5a65b0)break;else _0x1bf955['push'](_0x1bf955['shift']());}catch(_0x3b49b1){_0x1bf955['push'](_0x1bf955['shift']());}}}(_0xd97f,0x2d4f3));const locale={'print':{'menu':'列印'}};module[_0x4151c3(0xe0)]=locale;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x11ca05=_0x24b8;(function(_0x2819c3,_0x2e112e){const _0x2ebc9c=_0x24b8,_0x383b20=_0x2819c3();while(!![]){try{const _0xa49445=parseInt(_0x2ebc9c(0x169))/0x1+parseInt(_0x2ebc9c(0x1b9))/0x2+parseInt(_0x2ebc9c(0x1ca))/0x3+-parseInt(_0x2ebc9c(0x1b2))/0x4+-parseInt(_0x2ebc9c(0x154))/0x5*(parseInt(_0x2ebc9c(0x19b))/0x6)+-parseInt(_0x2ebc9c(0x16e))/0x7+parseInt(_0x2ebc9c(0x1b1))/0x8*(parseInt(_0x2ebc9c(0x182))/0x9);if(_0xa49445===_0x2e112e)break;else _0x383b20['push'](_0x383b20['shift']());}catch(_0x537da8){_0x383b20['push'](_0x383b20['shift']());}}}(_0x364d,0xf04ac));import{CommandType,DependentOn,Disposable,DisposableCollection,DocumentFlavor,ICommandService,IConfigService,IUniverInstanceService,Inject,Injector,Plugin,UniverInstanceType,generateRandomId,merge,registerDependencies}from'@univerjs/core';import{DocPrintInterceptorService,SwitchDocModeCommand,VIEWPORT_KEY}from'@univerjs/docs-ui';import{CanvasRenderMode,Documents,Engine,IRenderManagerService,Scene,Viewport}from'@univerjs/engine-render';import{LS_CONFIG_KEY,UniverLicensePlugin,getDocFeatureLimit,getLicenseInfo,isFeatureAuthorizedWithinTime,isLocalCheck}from'@univerjs-pro/license';import{PRINT_CANVAS_CLASS,PRINT_CONTAINER_CLASS,PrintDirection,createPrintStyle}from'@univerjs-pro/print';import{DocSkeletonManagerService}from'@univerjs/docs';import{ComponentManager,IGlobalZoneService,IMenuManagerService,MenuItemType,RibbonStartGroup,getMenuHiddenObservable}from'@univerjs/ui';function _0x364d(){const _0x465b43=['body','1788474umMSYt','decorate','_initComponents','string','top','with','left','pageWidth','_addViewport','_scene','register','_key','print.menu','PrintIcon','className','toPrimitive','_documents','container','mpn','position','prototype','height','384bcOPOt','6202948yxqpjl','isPro','UNIVER_DOCS_PRINT','version','timeValid','appendChild','updateScrollVal','1815416LJveIq','_injector','defineProperty','interceptor','UNIVER_DOC','onReady','message','map','fill','absolute','translate','fetchThroughInterceptors','_skeletonData','page','_container','bottom','_root','1892331yfqbXF','_effects','type','_globalZoneService','_renderManagerService','_componentManager','_calculateLayout','createElement','documentFlavor','100%','docs.operation.print','pageHeight','_configService','_skeleton','getSkeleton','0.22.0','restore','5lFneTa','getUnitId','min','dispose','_commandService','BUTTON','getConfig','getSkeletonData','length','iterator','symbol','DocumentDataModel\x20is\x20not\x20found','onbeforeprint','constructor','_viewMain','Pages\x20are\x20not\x20found','default','width','div','Skeleton\x20data\x20is\x20not\x20found','root','1842141BOOSvF','OTHERS','PRINTING_DOM_COLLECT','PRINTING_COMPONENT_COLLECT','Printing','5616842vaJyee','_engine','getRenderById','parseInt','_initCommands','print','_offsetConfig','onStarting','removeChild','render','pages','forEach','_paperSize','_currentRender','makeForceDirty','setConfig','syncExecuteCommand','disposeWithMe','get','packageName','47781LSJqbB','getCurrentUnitOfType','prepare','menu','function','POSITIVE_INFINITY','registerCommand','getUnit','_menuManagerService','Render\x20is\x20not\x20found','getCanvas','_initRenderer','scale','_config','style','_univerInstanceService','getOffsetConfig','_addComponent','getInterceptPoints','TRADITIONAL','_page','save','_unitId','makeDirty'];_0x364d=function(){return _0x465b43;};return _0x364d();}import{UniverNetworkPlugin}from'@univerjs/network';import{PrintIcon}from'@univerjs/icons';function _typeof(_0x24927a){'@babel/helpers - typeof';const _0x23cad4=_0x24b8;return _typeof=_0x23cad4(0x186)==typeof Symbol&&'symbol'==typeof Symbol[_0x23cad4(0x15d)]?function(_0x4a7c8b){return typeof _0x4a7c8b;}:function(_0x4a30f7){const _0x4b0997=_0x23cad4;return _0x4a30f7&&'function'==typeof Symbol&&_0x4a30f7[_0x4b0997(0x161)]===Symbol&&_0x4a30f7!==Symbol[_0x4b0997(0x1af)]?_0x4b0997(0x15e):typeof _0x4a30f7;},_typeof(_0x24927a);}function toPrimitive(_0x311397,_0x3d2094){const _0x4a7657=_0x24b8;if('object'!=_typeof(_0x311397)||!_0x311397)return _0x311397;var _0x379e8e=_0x311397[Symbol[_0x4a7657(0x1aa)]];if(void 0x0!==_0x379e8e){var _0x51db05=_0x379e8e['call'](_0x311397,_0x3d2094||_0x4a7657(0x164));if('object'!=_typeof(_0x51db05))return _0x51db05;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4a7657(0x19e)===_0x3d2094?String:Number)(_0x311397);}function toPropertyKey(_0x40113f){const _0x49f5d6=_0x24b8;var _0x3b84be=toPrimitive(_0x40113f,_0x49f5d6(0x19e));return _0x49f5d6(0x15e)==_typeof(_0x3b84be)?_0x3b84be:_0x3b84be+'';}function _defineProperty(_0x4092fc,_0x3e6388,_0x122dbd){return(_0x3e6388=toPropertyKey(_0x3e6388))in _0x4092fc?Object['defineProperty'](_0x4092fc,_0x3e6388,{'value':_0x122dbd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4092fc[_0x3e6388]=_0x122dbd,_0x4092fc;}var DocPrintPageCanvasView=class extends Disposable{get[_0x11ca05(0x1ac)](){const _0x22ebe6=_0x11ca05;return this[_0x22ebe6(0x1c7)];}get['root'](){return this['_root'];}get[_0x11ca05(0x17b)](){const _0x24229f=_0x11ca05,_0x3b85e5=this[_0x24229f(0x1ba)][_0x24229f(0x180)](IRenderManagerService)[_0x24229f(0x170)](this['_unitId']);if(!_0x3b85e5)throw new Error('Render\x20is\x20not\x20found');return _0x3b85e5;}get['_skeleton'](){const _0x1d70c3=_0x11ca05;return this[_0x1d70c3(0x17b)][_0x1d70c3(0x1a0)](DocSkeletonManagerService)[_0x1d70c3(0x151)]();}get[_0x11ca05(0x1c5)](){const _0x570a5a=_0x11ca05,_0xdfdedb=this[_0x570a5a(0x150)][_0x570a5a(0x15b)]();if(!_0xdfdedb)throw new Error(_0x570a5a(0x167));return _0xdfdedb;}get[_0x11ca05(0x17a)](){const _0x1cd451=_0x11ca05,_0x29eef2=this[_0x1cd451(0x1c5)][_0x1cd451(0x178)][0x0];return{'width':_0x29eef2[_0x1cd451(0x1a2)],'height':_0x29eef2[_0x1cd451(0x14e)]};}constructor(_0x4190de,_0x1f852e,_0x58c384,_0x59672d){const _0x166875=_0x11ca05;super(),this[_0x166875(0x1ba)]=_0x4190de,this['_page']=_0x1f852e,this['_unitId']=_0x58c384,this[_0x166875(0x174)]=_0x59672d,_defineProperty(this,'_container',document[_0x166875(0x1d1)]('div')),_defineProperty(this,_0x166875(0x1c9),document[_0x166875(0x1d1)](_0x166875(0x166))),_defineProperty(this,_0x166875(0x16f),void 0x0),_defineProperty(this,_0x166875(0x1a4),void 0x0),_defineProperty(this,_0x166875(0x1a6),void 0x0),_defineProperty(this,_0x166875(0x1ab),void 0x0),_defineProperty(this,_0x166875(0x162),void 0x0),_defineProperty(this,_0x166875(0x1cb),new DisposableCollection()),this[_0x166875(0x1a6)]=generateRandomId(0x4),this[_0x166875(0x18d)](),this[_0x166875(0x17f)]({'dispose':()=>{const _0x5c7290=_0x166875;this['_engine'][_0x5c7290(0x157)](),this['_scene'][_0x5c7290(0x157)](),this[_0x5c7290(0x1cb)][_0x5c7290(0x157)]();}});}[_0x11ca05(0x1d0)](){const _0x4476e0=_0x11ca05,{docsTop:_0x615ba4,docsLeft:_0x356264}=this[_0x4476e0(0x1ab)][_0x4476e0(0x192)](),_0x107110=this[_0x4476e0(0x17a)][_0x4476e0(0x1b0)],_0x47872a=this['_paperSize'][_0x4476e0(0x165)];return{'top':_0x615ba4+(_0x615ba4+_0x107110)*this[_0x4476e0(0x196)],'bottom':_0x615ba4+(_0x615ba4+_0x107110)*(this[_0x4476e0(0x196)]+0x1),'left':_0x356264,'right':_0x356264+_0x47872a};}[_0x11ca05(0x18d)](){const _0x924f08=_0x11ca05,_0x1ff8af=0x1,_0x555f3e=0x1;this[_0x924f08(0x16f)]=new Engine('',{'elementWidth':this[_0x924f08(0x17a)][_0x924f08(0x165)],'elementHeight':this[_0x924f08(0x17a)][_0x924f08(0x1b0)],'dpr':_0x555f3e,'renderMode':CanvasRenderMode[_0x924f08(0x16d)]}),this[_0x924f08(0x1a4)]=new Scene(this[_0x924f08(0x1a6)],this[_0x924f08(0x16f)]),this[_0x924f08(0x1a4)][_0x924f08(0x18e)](_0x1ff8af,_0x1ff8af),this[_0x924f08(0x16f)]['setContainer'](this[_0x924f08(0x1c7)],![]),this['_engine'][_0x924f08(0x18c)]()['getContext']()['setId'](this[_0x924f08(0x1a6)]+'_'+generateRandomId(0x4)),this[_0x924f08(0x193)](),this[_0x924f08(0x1a3)]();}['_addComponent'](){const _0x4f6ac0=_0x11ca05,{pageMarginLeft:_0x2d51e1,pageMarginTop:_0x6638f0,docsLeft:_0x4dd86f,docsTop:_0x132b05}=this[_0x4f6ac0(0x174)],_0x2d8e23={'pageMarginLeft':_0x2d51e1,'pageMarginTop':_0x6638f0},_0xc8b955=new Documents('__DocPrintRender__',this[_0x4f6ac0(0x150)],_0x2d8e23);_0xc8b955[_0x4f6ac0(0x1c3)](_0x4dd86f,_0x132b05),this[_0x4f6ac0(0x1a4)]['addObject'](_0xc8b955),this[_0x4f6ac0(0x1ab)]=_0xc8b955;const _0x41f0b9=this['_injector'][_0x4f6ac0(0x180)](DocPrintInterceptorService);_0x41f0b9['interceptor'][_0x4f6ac0(0x1c4)](_0x41f0b9[_0x4f6ac0(0x1bc)][_0x4f6ac0(0x194)]()[_0x4f6ac0(0x16c)])(void 0x0,{'unitId':this[_0x4f6ac0(0x198)],'scene':this[_0x4f6ac0(0x1a4)],'engine':this['_engine'],'root':this[_0x4f6ac0(0x1c9)],'documents':this[_0x4f6ac0(0x1ab)],'skeleton':this[_0x4f6ac0(0x150)]});}['_addViewport'](){const _0x409f28=_0x11ca05;this[_0x409f28(0x162)]=new Viewport(VIEWPORT_KEY['VIEW_MAIN'],this[_0x409f28(0x1a4)],{'explicitViewportWidthSet':!![],'explicitViewportHeightSet':!![]});}[_0x11ca05(0x184)](){const _0x5d5313=_0x11ca05,_0x2495e1=this[_0x5d5313(0x1d0)]();this[_0x5d5313(0x162)][_0x5d5313(0x1b8)]({'viewportScrollX':_0x2495e1[_0x5d5313(0x1a1)],'viewportScrollY':_0x2495e1[_0x5d5313(0x19f)]}),this['_root'][_0x5d5313(0x190)][_0x5d5313(0x1ae)]=_0x5d5313(0x1c2),this[_0x5d5313(0x1c9)][_0x5d5313(0x190)][_0x5d5313(0x19f)]='0px',this[_0x5d5313(0x1c9)]['style']['left']='0px',this['_root']['style'][_0x5d5313(0x165)]=_0x5d5313(0x1d3),this[_0x5d5313(0x1c9)]['style'][_0x5d5313(0x1b0)]=_0x5d5313(0x1d3),this[_0x5d5313(0x1cb)]=new DisposableCollection();const _0x1c0db3=this['_injector'][_0x5d5313(0x180)](DocPrintInterceptorService);_0x1c0db3[_0x5d5313(0x1bc)][_0x5d5313(0x1c4)](_0x1c0db3[_0x5d5313(0x1bc)][_0x5d5313(0x194)]()[_0x5d5313(0x16b)])(this[_0x5d5313(0x1cb)],{'unitId':this[_0x5d5313(0x198)],'scene':this[_0x5d5313(0x1a4)],'engine':this[_0x5d5313(0x16f)],'root':this[_0x5d5313(0x1c9)],'skeleton':this['_skeleton'],'offset':{'x':_0x2495e1[_0x5d5313(0x1a1)],'y':_0x2495e1[_0x5d5313(0x19f)]},'bound':{'top':_0x2495e1[_0x5d5313(0x19f)],'left':_0x2495e1[_0x5d5313(0x1a1)],'right':_0x2495e1['right'],'bottom':_0x2495e1[_0x5d5313(0x1c8)]}});}[_0x11ca05(0x177)](){const _0x4203b3=_0x11ca05,_0x4a05f6=this[_0x4203b3(0x16f)]['getCanvas']()['getContext']();this['_documents'][_0x4203b3(0x17c)](),this[_0x4203b3(0x1a4)][_0x4203b3(0x199)](),_0x4a05f6[_0x4203b3(0x197)](),this[_0x4203b3(0x1a4)][_0x4203b3(0x177)](),_0x4a05f6[_0x4203b3(0x153)]();}};function __decorateParam(_0x3d920e,_0x51bd9a){return function(_0x423042,_0x1b2a6c){_0x51bd9a(_0x423042,_0x1b2a6c,_0x3d920e);};}function __decorate(_0x545b3c,_0x587521,_0x491163,_0x2a7ae9){const _0x1aa6f9=_0x11ca05;var _0x48977b=arguments[_0x1aa6f9(0x15c)],_0x1148da=_0x48977b<0x3?_0x587521:_0x2a7ae9===null?_0x2a7ae9=Object['getOwnPropertyDescriptor'](_0x587521,_0x491163):_0x2a7ae9,_0x1d9350;if(typeof Reflect==='object'&&typeof Reflect[_0x1aa6f9(0x19c)]===_0x1aa6f9(0x186))_0x1148da=Reflect[_0x1aa6f9(0x19c)](_0x545b3c,_0x587521,_0x491163,_0x2a7ae9);else{for(var _0x1284d9=_0x545b3c['length']-0x1;_0x1284d9>=0x0;_0x1284d9--)if(_0x1d9350=_0x545b3c[_0x1284d9])_0x1148da=(_0x48977b<0x3?_0x1d9350(_0x1148da):_0x48977b>0x3?_0x1d9350(_0x587521,_0x491163,_0x1148da):_0x1d9350(_0x587521,_0x491163))||_0x1148da;}return _0x48977b>0x3&&_0x1148da&&Object[_0x1aa6f9(0x1bb)](_0x587521,_0x491163,_0x1148da),_0x1148da;}const BUILD_TIMESTAMP=Number[_0x11ca05(0x171)](0x69ff10fd),DEFAULT_PRINT_LIMIT=0x1,getPrintInfoByLicense=(_0x34cf42,_0x32cb27,_0xfef254)=>{const _0x431b65=_0x11ca05,_0x253195={'page':_0x34cf42,'isPro':![],'timeValid':![]};if(!_0x32cb27||!_0xfef254)return _0x253195;const _0xeaa1e4=getLicenseInfo(_0x32cb27,_0xfef254);if(_0xeaa1e4['valid']){const _0x2c3672=_0xeaa1e4[_0x431b65(0x1bf)],_0x354130=isFeatureAuthorizedWithinTime(_0x2c3672,'df',BUILD_TIMESTAMP);_0x253195[_0x431b65(0x1b3)]=_0x354130,_0x253195[_0x431b65(0x1b6)]=_0x354130,_0x253195[_0x431b65(0x1c6)]=getDocFeatureLimit(_0x2c3672,_0x354130,_0x431b65(0x1ad),_0x34cf42,_0x34cf42,0x0);}return _0x253195;};let DocPrintService=class DocPrintService extends Disposable{constructor(_0x3541a6,_0x4abe2e,_0x77a2e1,_0x357c8a,_0x272447){const _0xee61e3=_0x11ca05;super(),this[_0xee61e3(0x191)]=_0x3541a6,this[_0xee61e3(0x1ce)]=_0x4abe2e,this[_0xee61e3(0x1ba)]=_0x77a2e1,this['_configService']=_0x357c8a,this['_globalZoneService']=_0x272447;}[_0x11ca05(0x173)](_0x3a71bf){const _0x3cbfb0=_0x11ca05;var _0x57d838,_0x1ccf88;const {ls:_0xb8e99a,pbk:_0x3e477b}=(_0x57d838=this[_0x3cbfb0(0x14f)][_0x3cbfb0(0x15a)](LS_CONFIG_KEY))!==null&&_0x57d838!==void 0x0?_0x57d838:{},_0x8ace78=isLocalCheck()?Number[_0x3cbfb0(0x187)]:getPrintInfoByLicense(0x1,_0xb8e99a,_0x3e477b)['page'];if(!this['_univerInstanceService'][_0x3cbfb0(0x189)](_0x3a71bf,UniverInstanceType[_0x3cbfb0(0x1bd)]))throw new Error(_0x3cbfb0(0x15f));const _0x4caf29=this[_0x3cbfb0(0x1ce)]['getRenderById'](_0x3a71bf);if(!_0x4caf29)throw new Error(_0x3cbfb0(0x18b));const _0x104067=(_0x1ccf88=_0x4caf29[_0x3cbfb0(0x1a0)](DocSkeletonManagerService)[_0x3cbfb0(0x151)]()['getSkeletonData']())===null||_0x1ccf88===void 0x0?void 0x0:_0x1ccf88['pages'];if(!_0x104067)throw new Error(_0x3cbfb0(0x163));const _0x45774b={'width':_0x104067[0x0][_0x3cbfb0(0x1a2)],'height':_0x104067[0x0][_0x3cbfb0(0x14e)]},_0x35ac5b=_0x104067[_0x3cbfb0(0x15c)],_0x54ff55=Math[_0x3cbfb0(0x156)](_0x8ace78,_0x35ac5b),_0x442bd6=_0x4caf29['mainComponent'][_0x3cbfb0(0x192)](),_0x29dfe1=document[_0x3cbfb0(0x1d1)](_0x3cbfb0(0x166));_0x29dfe1[_0x3cbfb0(0x1a9)]=PRINT_CONTAINER_CLASS;const _0x19a9df=new Array(_0x54ff55)[_0x3cbfb0(0x1c1)](null)[_0x3cbfb0(0x1c0)]((_0x2ae0f9,_0x3cd797)=>{const _0x2d1ead=_0x3cbfb0,_0x839680=new DocPrintPageCanvasView(this[_0x2d1ead(0x1ba)],_0x3cd797,_0x3a71bf,_0x442bd6);return _0x839680[_0x2d1ead(0x1ac)][_0x2d1ead(0x1a9)]=PRINT_CANVAS_CLASS,_0x839680;});_0x19a9df[_0x3cbfb0(0x179)](_0x214b1d=>{const _0x37bd44=_0x3cbfb0;_0x29dfe1['appendChild'](_0x214b1d[_0x37bd44(0x1ac)]),_0x214b1d[_0x37bd44(0x1ac)][_0x37bd44(0x1b7)](_0x214b1d[_0x37bd44(0x168)]),_0x214b1d[_0x37bd44(0x184)]();});const _0x52f1df=createPrintStyle(_0x45774b['width'],_0x45774b[_0x3cbfb0(0x1b0)],PrintDirection['Portrait']);return document['body'][_0x3cbfb0(0x1b7)](_0x52f1df),document[_0x3cbfb0(0x19a)][_0x3cbfb0(0x1b7)](_0x29dfe1),new Promise(_0x4e3058=>{setTimeout(()=>{const _0x8c6820=_0x24b8;window[_0x8c6820(0x160)]=()=>{_0x19a9df['forEach'](_0x160787=>{const _0x2ffb28=_0x24b8;_0x160787[_0x2ffb28(0x177)]();});},window['onafterprint']=()=>{const _0x56b2b5=_0x8c6820;_0x19a9df[_0x56b2b5(0x179)](_0x26be51=>{const _0x15cf96=_0x56b2b5;_0x26be51[_0x15cf96(0x157)]();}),document[_0x56b2b5(0x19a)][_0x56b2b5(0x176)](_0x29dfe1),document['body'][_0x56b2b5(0x176)](_0x52f1df),this[_0x56b2b5(0x1cd)]['close'](),_0x4e3058(!![]);},window[_0x8c6820(0x173)]();},0x64);});}};DocPrintService=__decorate([__decorateParam(0x0,IUniverInstanceService),__decorateParam(0x1,IRenderManagerService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService),__decorateParam(0x4,IGlobalZoneService)],DocPrintService);const DocPrintOperation={'id':_0x11ca05(0x14d),'type':CommandType['OPERATION'],'handler':async _0xb0657a=>{const _0x2adf5a=_0x11ca05,_0x38a641=_0xb0657a[_0x2adf5a(0x180)](IUniverInstanceService),_0x301fe3=_0xb0657a['get'](DocPrintService),_0x23d42c=_0xb0657a['get'](IRenderManagerService),_0x38636a=_0xb0657a[_0x2adf5a(0x180)](ICommandService),_0x48c512=_0x38a641[_0x2adf5a(0x183)](UniverInstanceType['UNIVER_DOC']);if(!_0x48c512)return![];if(!_0x23d42c[_0x2adf5a(0x170)](_0x48c512[_0x2adf5a(0x155)]()))throw new Error(_0x2adf5a(0x18b));const _0x141d1b=_0x48c512['getDocumentStyle']()[_0x2adf5a(0x1d2)];if(_0x141d1b!==DocumentFlavor[_0x2adf5a(0x195)])_0x38636a['syncExecuteCommand'](SwitchDocModeCommand['id']);await _0x301fe3['print'](_0x48c512[_0x2adf5a(0x155)]());if(_0x141d1b!==DocumentFlavor[_0x2adf5a(0x195)])_0x38636a[_0x2adf5a(0x17e)](SwitchDocModeCommand['id']);return!![];}},DOCS_PRINT_PLUGIN_CONFIG_KEY='UNIVER_DOCS_PRINT',defaultPluginConfig={};var name='@univerjs-pro/docs-print',version=_0x11ca05(0x152);const DOCS_PRINT_PLUGIN_NAME=_0x11ca05(0x1b4);function DocPrintMenuItemFactory(_0x444340){const _0x1b5db4=_0x11ca05;return{'id':DocPrintOperation['id'],'type':MenuItemType[_0x1b5db4(0x159)],'title':_0x1b5db4(0x1a7),'icon':'PrintIcon','tooltip':'print.menu','hidden$':getMenuHiddenObservable(_0x444340,UniverInstanceType[_0x1b5db4(0x1bd)])};}const menuSchema={[RibbonStartGroup[_0x11ca05(0x16a)]]:{[DocPrintOperation['id']]:{'order':0.1,'menuItemFactory':DocPrintMenuItemFactory}}};let DocsPrintUIController=class DocsPrintUIController extends Disposable{constructor(_0x5f5838,_0x5a5140,_0x59e2e4){const _0x533f1f=_0x11ca05;super(),this['_commandService']=_0x5f5838,this['_menuManagerService']=_0x5a5140,this[_0x533f1f(0x1cf)]=_0x59e2e4,this['_initMenus'](),this[_0x533f1f(0x172)](),this[_0x533f1f(0x19d)]();}['_initMenus'](){const _0x11e51d=_0x11ca05;this[_0x11e51d(0x18a)]['mergeMenu'](menuSchema);}[_0x11ca05(0x172)](){const _0x3f68f6=_0x11ca05;this[_0x3f68f6(0x17f)](this[_0x3f68f6(0x158)][_0x3f68f6(0x188)](DocPrintOperation));}[_0x11ca05(0x19d)](){const _0x221cd3=_0x11ca05;[[_0x221cd3(0x1a8),PrintIcon]]['forEach'](([_0x3aae0f,_0x4f7dcf])=>{const _0x2d845f=_0x221cd3;this[_0x2d845f(0x1cf)][_0x2d845f(0x1a5)](_0x3aae0f,_0x4f7dcf);});}};function _0x24b8(_0x27e76b,_0x14a7a9){_0x27e76b=_0x27e76b-0x14d;const _0x364dd1=_0x364d();let _0x24b853=_0x364dd1[_0x27e76b];return _0x24b853;}DocsPrintUIController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService),__decorateParam(0x2,Inject(ComponentManager))],DocsPrintUIController);let UniverDocsPrintPlugin=class UniverDocsPrintPlugin extends Plugin{constructor(_0x2ea6a2=defaultPluginConfig,_0xd2b593,_0xd6e487){const _0x1caa13=_0x11ca05;super(),this[_0x1caa13(0x18f)]=_0x2ea6a2,this[_0x1caa13(0x1ba)]=_0xd2b593,this['_configService']=_0xd6e487;const {menu:_0x16daa2,..._0x346fdc}=merge({},defaultPluginConfig,this[_0x1caa13(0x18f)]);if(_0x16daa2)this['_configService'][_0x1caa13(0x17d)](_0x1caa13(0x185),_0x16daa2,{'merge':!![]});this['_configService'][_0x1caa13(0x17d)](DOCS_PRINT_PLUGIN_CONFIG_KEY,_0x346fdc);}[_0x11ca05(0x175)](){const _0x4a93d1=_0x11ca05;registerDependencies(this[_0x4a93d1(0x1ba)],[[DocPrintService],[DocsPrintUIController]]);}[_0x11ca05(0x1be)](){const _0x540c81=_0x11ca05;this[_0x540c81(0x1ba)][_0x540c81(0x180)](DocsPrintUIController);}};_defineProperty(UniverDocsPrintPlugin,'pluginName',DOCS_PRINT_PLUGIN_NAME),_defineProperty(UniverDocsPrintPlugin,_0x11ca05(0x181),name),_defineProperty(UniverDocsPrintPlugin,_0x11ca05(0x1b5),version),_defineProperty(UniverDocsPrintPlugin,_0x11ca05(0x1cc),UniverInstanceType['UNIVER_DOC']),UniverDocsPrintPlugin=__decorate([DependentOn(UniverNetworkPlugin,UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverDocsPrintPlugin);export{DOCS_PRINT_PLUGIN_CONFIG_KEY,DocPrintOperation,UniverDocsPrintPlugin};
|
|
1
|
+
const _0x2e5b8d=_0x1143;(function(_0x3cf3cd,_0x458fb6){const _0x1f36ed=_0x1143,_0x180a05=_0x3cf3cd();while(!![]){try{const _0x1a9c2e=-parseInt(_0x1f36ed(0x119))/0x1+parseInt(_0x1f36ed(0x176))/0x2*(parseInt(_0x1f36ed(0xf0))/0x3)+-parseInt(_0x1f36ed(0x149))/0x4+-parseInt(_0x1f36ed(0x121))/0x5*(-parseInt(_0x1f36ed(0x142))/0x6)+-parseInt(_0x1f36ed(0xec))/0x7*(-parseInt(_0x1f36ed(0x167))/0x8)+-parseInt(_0x1f36ed(0xfd))/0x9*(parseInt(_0x1f36ed(0x122))/0xa)+parseInt(_0x1f36ed(0x136))/0xb*(parseInt(_0x1f36ed(0x11c))/0xc);if(_0x1a9c2e===_0x458fb6)break;else _0x180a05['push'](_0x180a05['shift']());}catch(_0x3a2ab3){_0x180a05['push'](_0x180a05['shift']());}}}(_0x97ba,0x31da0));import{CommandType,DependentOn,Disposable,DisposableCollection,DocumentFlavor,ICommandService,IConfigService,IUniverInstanceService,Inject,Injector,Plugin,UniverInstanceType,generateRandomId,merge,registerDependencies}from'@univerjs/core';import{DocPrintInterceptorService,SwitchDocModeCommand,VIEWPORT_KEY}from'@univerjs/docs-ui';import{CanvasRenderMode,Documents,Engine,IRenderManagerService,Scene,Viewport}from'@univerjs/engine-render';import{LS_CONFIG_KEY,UniverLicensePlugin,getDocFeatureLimit,getLicenseInfo,isFeatureAuthorizedWithinTime,isLocalCheck}from'@univerjs-pro/license';import{PRINT_CANVAS_CLASS,PRINT_CONTAINER_CLASS,PrintDirection,createPrintStyle}from'@univerjs-pro/print';import{DocSkeletonManagerService}from'@univerjs/docs';import{ComponentManager,IGlobalZoneService,IMenuManagerService,MenuItemType,RibbonStartGroup,getMenuHiddenObservable}from'@univerjs/ui';function _0x97ba(){const _0x3d61f1=['prepare','decorate','TRADITIONAL','register','8tWrgly','_skeletonData','pageWidth','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','disposeWithMe','function','menu','7doVsBA','_addComponent','_effects','registerCommand','136077nbdYYQ','top','get','dispose','UNIVER_DOC','__DocPrintRender__','width','save','mpn','onbeforeprint','parseInt','isPro','_addViewport','18279bqDMfZ','_initMenus','defineProperty','getCanvas','_currentRender','0px','OTHERS','print','restore','mergeMenu','container','height','_unitId','_menuManagerService','100%','right','translate','_initComponents','_scene','0.22.1-insiders.20260516-8900c44','OPERATION','symbol','left','UNIVER_DOCS_PRINT','forEach','version','getSkeletonData','getInterceptPoints','304522PtkCyZ','_injector','DocumentDataModel\x20is\x20not\x20found','207372tfZQdc','_calculateLayout','_container','PrintIcon','_root','94210CjZcSD','1660WRdzmM','message','mainComponent','Render\x20is\x20not\x20found','removeChild','packageName','getUnitId','object','constructor','Portrait','className','getOwnPropertyDescriptor','Skeleton\x20data\x20is\x20not\x20found','pageHeight','docs.operation.print','getRenderById','map','_page','length','syncExecuteCommand','143QdkuXQ','onafterprint','getConfig','getDocumentStyle','_offsetConfig','_globalZoneService','_commandService','fill','_key','render','call','string','84cTbBWS','min','interceptor','makeForceDirty','getUnit','scale','body','237976cwjtKU','root','onReady','default','getContext','createElement','close','_skeleton','setConfig','_initCommands','absolute','fetchThroughInterceptors','_config','_documents','timeValid','_paperSize','pages','_univerInstanceService','@univerjs-pro/docs-print','updateScrollVal','position','getOffsetConfig','_engine','_viewMain','iterator','print.menu','setId','getSkeleton','PRINTING_COMPONENT_COLLECT','appendChild','1883816skJsQh','BUTTON','VIEW_MAIN','style','_componentManager','_renderManagerService','page','_configService','div','Printing','_initRenderer'];_0x97ba=function(){return _0x3d61f1;};return _0x97ba();}import{UniverNetworkPlugin}from'@univerjs/network';import{PrintIcon}from'@univerjs/icons';function _typeof(_0x2749f1){'@babel/helpers - typeof';const _0x5be340=_0x1143;return _typeof=_0x5be340(0xea)==typeof Symbol&&_0x5be340(0x112)==typeof Symbol[_0x5be340(0x161)]?function(_0x453d79){return typeof _0x453d79;}:function(_0x21645b){const _0xe003d=_0x5be340;return _0x21645b&&_0xe003d(0xea)==typeof Symbol&&_0x21645b[_0xe003d(0x12a)]===Symbol&&_0x21645b!==Symbol['prototype']?'symbol':typeof _0x21645b;},_typeof(_0x2749f1);}function toPrimitive(_0x44d02f,_0xd2dffe){const _0x7c3f52=_0x1143;if(_0x7c3f52(0x129)!=_typeof(_0x44d02f)||!_0x44d02f)return _0x44d02f;var _0x29225f=_0x44d02f[Symbol['toPrimitive']];if(void 0x0!==_0x29225f){var _0x56ccab=_0x29225f[_0x7c3f52(0x140)](_0x44d02f,_0xd2dffe||_0x7c3f52(0x14c));if(_0x7c3f52(0x129)!=_typeof(_0x56ccab))return _0x56ccab;throw new TypeError(_0x7c3f52(0x179));}return(_0x7c3f52(0x141)===_0xd2dffe?String:Number)(_0x44d02f);}function toPropertyKey(_0x19fc0c){const _0x31d125=_0x1143;var _0x46ed85=toPrimitive(_0x19fc0c,_0x31d125(0x141));return _0x31d125(0x112)==_typeof(_0x46ed85)?_0x46ed85:_0x46ed85+'';}function _defineProperty(_0x34f957,_0x8f311e,_0x5b1370){return(_0x8f311e=toPropertyKey(_0x8f311e))in _0x34f957?Object['defineProperty'](_0x34f957,_0x8f311e,{'value':_0x5b1370,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x34f957[_0x8f311e]=_0x5b1370,_0x34f957;}var DocPrintPageCanvasView=class extends Disposable{get[_0x2e5b8d(0x107)](){const _0x5d38fe=_0x2e5b8d;return this[_0x5d38fe(0x11e)];}get[_0x2e5b8d(0x14a)](){const _0x14ded5=_0x2e5b8d;return this[_0x14ded5(0x120)];}get[_0x2e5b8d(0x101)](){const _0x318186=_0x2e5b8d,_0x479b86=this[_0x318186(0x11a)][_0x318186(0xf2)](IRenderManagerService)[_0x318186(0x131)](this['_unitId']);if(!_0x479b86)throw new Error(_0x318186(0x125));return _0x479b86;}get['_skeleton'](){const _0x45c5f5=_0x2e5b8d;return this[_0x45c5f5(0x101)]['with'](DocSkeletonManagerService)[_0x45c5f5(0x164)]();}get['_skeletonData'](){const _0x1d641f=_0x2e5b8d,_0x581850=this[_0x1d641f(0x150)][_0x1d641f(0x117)]();if(!_0x581850)throw new Error(_0x1d641f(0x12e));return _0x581850;}get['_paperSize'](){const _0x267ff8=_0x2e5b8d,_0x3b6a8f=this[_0x267ff8(0x177)][_0x267ff8(0x159)][0x0];return{'width':_0x3b6a8f[_0x267ff8(0x178)],'height':_0x3b6a8f[_0x267ff8(0x12f)]};}constructor(_0x58ed51,_0x596f9d,_0x5eec04,_0x209606){const _0x579640=_0x2e5b8d;super(),this[_0x579640(0x11a)]=_0x58ed51,this[_0x579640(0x133)]=_0x596f9d,this['_unitId']=_0x5eec04,this[_0x579640(0x13a)]=_0x209606,_defineProperty(this,_0x579640(0x11e),document[_0x579640(0x14e)](_0x579640(0x16f))),_defineProperty(this,_0x579640(0x120),document[_0x579640(0x14e)](_0x579640(0x16f))),_defineProperty(this,_0x579640(0x15f),void 0x0),_defineProperty(this,'_scene',void 0x0),_defineProperty(this,_0x579640(0x13e),void 0x0),_defineProperty(this,_0x579640(0x156),void 0x0),_defineProperty(this,_0x579640(0x160),void 0x0),_defineProperty(this,_0x579640(0xee),new DisposableCollection()),this[_0x579640(0x13e)]=generateRandomId(0x4),this[_0x579640(0x171)](),this[_0x579640(0xe9)]({'dispose':()=>{const _0x258a95=_0x579640;this[_0x258a95(0x15f)][_0x258a95(0xf3)](),this['_scene']['dispose'](),this[_0x258a95(0xee)][_0x258a95(0xf3)]();}});}[_0x2e5b8d(0x11d)](){const _0x223899=_0x2e5b8d,{docsTop:_0xe6bac4,docsLeft:_0x19d027}=this[_0x223899(0x156)][_0x223899(0x15e)](),_0x4b68e4=this['_paperSize'][_0x223899(0x108)],_0x2b9238=this[_0x223899(0x158)][_0x223899(0xf6)];return{'top':_0xe6bac4+(_0xe6bac4+_0x4b68e4)*this[_0x223899(0x133)],'bottom':_0xe6bac4+(_0xe6bac4+_0x4b68e4)*(this[_0x223899(0x133)]+0x1),'left':_0x19d027,'right':_0x19d027+_0x2b9238};}[_0x2e5b8d(0x171)](){const _0x471cde=_0x2e5b8d,_0x3f69eb=0x1,_0x224314=0x1;this[_0x471cde(0x15f)]=new Engine('',{'elementWidth':this[_0x471cde(0x158)][_0x471cde(0xf6)],'elementHeight':this[_0x471cde(0x158)][_0x471cde(0x108)],'dpr':_0x224314,'renderMode':CanvasRenderMode[_0x471cde(0x170)]}),this['_scene']=new Scene(this['_key'],this[_0x471cde(0x15f)]),this[_0x471cde(0x10f)][_0x471cde(0x147)](_0x3f69eb,_0x3f69eb),this[_0x471cde(0x15f)]['setContainer'](this[_0x471cde(0x11e)],![]),this[_0x471cde(0x15f)]['getCanvas']()[_0x471cde(0x14d)]()[_0x471cde(0x163)](this[_0x471cde(0x13e)]+'_'+generateRandomId(0x4)),this[_0x471cde(0xed)](),this[_0x471cde(0xfc)]();}[_0x2e5b8d(0xed)](){const _0x3e1467=_0x2e5b8d,{pageMarginLeft:_0x1bdd59,pageMarginTop:_0x548c9e,docsLeft:_0x12d863,docsTop:_0x2ce233}=this[_0x3e1467(0x13a)],_0x408cf5={'pageMarginLeft':_0x1bdd59,'pageMarginTop':_0x548c9e},_0x54649c=new Documents(_0x3e1467(0xf5),this[_0x3e1467(0x150)],_0x408cf5);_0x54649c[_0x3e1467(0x10d)](_0x12d863,_0x2ce233),this[_0x3e1467(0x10f)]['addObject'](_0x54649c),this['_documents']=_0x54649c;const _0x444079=this[_0x3e1467(0x11a)][_0x3e1467(0xf2)](DocPrintInterceptorService);_0x444079['interceptor'][_0x3e1467(0x154)](_0x444079['interceptor'][_0x3e1467(0x118)]()[_0x3e1467(0x165)])(void 0x0,{'unitId':this[_0x3e1467(0x109)],'scene':this['_scene'],'engine':this[_0x3e1467(0x15f)],'root':this[_0x3e1467(0x120)],'documents':this[_0x3e1467(0x156)],'skeleton':this[_0x3e1467(0x150)]});}[_0x2e5b8d(0xfc)](){const _0x1922c2=_0x2e5b8d;this[_0x1922c2(0x160)]=new Viewport(VIEWPORT_KEY[_0x1922c2(0x169)],this[_0x1922c2(0x10f)],{'explicitViewportWidthSet':!![],'explicitViewportHeightSet':!![]});}[_0x2e5b8d(0x172)](){const _0x52e983=_0x2e5b8d,_0x3e34d6=this[_0x52e983(0x11d)]();this[_0x52e983(0x160)][_0x52e983(0x15c)]({'viewportScrollX':_0x3e34d6[_0x52e983(0x113)],'viewportScrollY':_0x3e34d6[_0x52e983(0xf1)]}),this['_root'][_0x52e983(0x16a)][_0x52e983(0x15d)]=_0x52e983(0x153),this[_0x52e983(0x120)]['style']['top']=_0x52e983(0x102),this[_0x52e983(0x120)]['style'][_0x52e983(0x113)]=_0x52e983(0x102),this[_0x52e983(0x120)]['style']['width']=_0x52e983(0x10b),this[_0x52e983(0x120)][_0x52e983(0x16a)][_0x52e983(0x108)]=_0x52e983(0x10b),this[_0x52e983(0xee)]=new DisposableCollection();const _0x1d1485=this[_0x52e983(0x11a)]['get'](DocPrintInterceptorService);_0x1d1485['interceptor']['fetchThroughInterceptors'](_0x1d1485[_0x52e983(0x144)]['getInterceptPoints']()['PRINTING_DOM_COLLECT'])(this[_0x52e983(0xee)],{'unitId':this[_0x52e983(0x109)],'scene':this[_0x52e983(0x10f)],'engine':this[_0x52e983(0x15f)],'root':this['_root'],'skeleton':this[_0x52e983(0x150)],'offset':{'x':_0x3e34d6[_0x52e983(0x113)],'y':_0x3e34d6['top']},'bound':{'top':_0x3e34d6[_0x52e983(0xf1)],'left':_0x3e34d6['left'],'right':_0x3e34d6[_0x52e983(0x10c)],'bottom':_0x3e34d6['bottom']}});}[_0x2e5b8d(0x13f)](){const _0x13394a=_0x2e5b8d,_0xb90202=this[_0x13394a(0x15f)][_0x13394a(0x100)]()['getContext']();this['_documents'][_0x13394a(0x145)](),this[_0x13394a(0x10f)]['makeDirty'](),_0xb90202[_0x13394a(0xf7)](),this[_0x13394a(0x10f)]['render'](),_0xb90202[_0x13394a(0x105)]();}};function __decorateParam(_0x148004,_0x27fb04){return function(_0x5b904f,_0x5ba71e){_0x27fb04(_0x5b904f,_0x5ba71e,_0x148004);};}function __decorate(_0x1d9847,_0x250812,_0x2e48d,_0x2f5164){const _0xf150c1=_0x2e5b8d;var _0xdca1f6=arguments[_0xf150c1(0x134)],_0x562b32=_0xdca1f6<0x3?_0x250812:_0x2f5164===null?_0x2f5164=Object[_0xf150c1(0x12d)](_0x250812,_0x2e48d):_0x2f5164,_0x4f6de0;if(typeof Reflect===_0xf150c1(0x129)&&typeof Reflect[_0xf150c1(0x173)]===_0xf150c1(0xea))_0x562b32=Reflect['decorate'](_0x1d9847,_0x250812,_0x2e48d,_0x2f5164);else{for(var _0x12c2c3=_0x1d9847[_0xf150c1(0x134)]-0x1;_0x12c2c3>=0x0;_0x12c2c3--)if(_0x4f6de0=_0x1d9847[_0x12c2c3])_0x562b32=(_0xdca1f6<0x3?_0x4f6de0(_0x562b32):_0xdca1f6>0x3?_0x4f6de0(_0x250812,_0x2e48d,_0x562b32):_0x4f6de0(_0x250812,_0x2e48d))||_0x562b32;}return _0xdca1f6>0x3&&_0x562b32&&Object[_0xf150c1(0xff)](_0x250812,_0x2e48d,_0x562b32),_0x562b32;}const BUILD_TIMESTAMP=Number[_0x2e5b8d(0xfa)](0x6a08148d),DEFAULT_PRINT_LIMIT=0x1,getPrintInfoByLicense=(_0x145253,_0x171ba7,_0x5698ed)=>{const _0x443c37=_0x2e5b8d,_0x379d59={'page':_0x145253,'isPro':![],'timeValid':![]};if(!_0x171ba7||!_0x5698ed)return _0x379d59;const _0x4fe2b4=getLicenseInfo(_0x171ba7,_0x5698ed);if(_0x4fe2b4['valid']){const _0x5c25a4=_0x4fe2b4[_0x443c37(0x123)],_0x2348fd=isFeatureAuthorizedWithinTime(_0x5c25a4,'df',BUILD_TIMESTAMP);_0x379d59[_0x443c37(0xfb)]=_0x2348fd,_0x379d59[_0x443c37(0x157)]=_0x2348fd,_0x379d59[_0x443c37(0x16d)]=getDocFeatureLimit(_0x5c25a4,_0x2348fd,_0x443c37(0xf8),_0x145253,_0x145253,0x0);}return _0x379d59;};function _0x1143(_0x3a0bcc,_0x450547){_0x3a0bcc=_0x3a0bcc-0xe9;const _0x97ba32=_0x97ba();let _0x114352=_0x97ba32[_0x3a0bcc];return _0x114352;}let DocPrintService=class DocPrintService extends Disposable{constructor(_0x39490e,_0x42ddb7,_0x5e9d15,_0x18905e,_0x53bdb3){const _0x3eaf06=_0x2e5b8d;super(),this[_0x3eaf06(0x15a)]=_0x39490e,this[_0x3eaf06(0x16c)]=_0x42ddb7,this[_0x3eaf06(0x11a)]=_0x5e9d15,this[_0x3eaf06(0x16e)]=_0x18905e,this[_0x3eaf06(0x13b)]=_0x53bdb3;}['print'](_0x2d4889){const _0x18b280=_0x2e5b8d;var _0x9fe4e2,_0x5e2429;const {ls:_0x51c166,pbk:_0x33d3e3}=(_0x9fe4e2=this[_0x18b280(0x16e)][_0x18b280(0x138)](LS_CONFIG_KEY))!==null&&_0x9fe4e2!==void 0x0?_0x9fe4e2:{},_0x18e1fc=isLocalCheck()?Number['POSITIVE_INFINITY']:getPrintInfoByLicense(0x1,_0x51c166,_0x33d3e3)[_0x18b280(0x16d)];if(!this[_0x18b280(0x15a)][_0x18b280(0x146)](_0x2d4889,UniverInstanceType[_0x18b280(0xf4)]))throw new Error(_0x18b280(0x11b));const _0x3c585c=this['_renderManagerService']['getRenderById'](_0x2d4889);if(!_0x3c585c)throw new Error(_0x18b280(0x125));const _0x4e0a3d=(_0x5e2429=_0x3c585c['with'](DocSkeletonManagerService)['getSkeleton']()[_0x18b280(0x117)]())===null||_0x5e2429===void 0x0?void 0x0:_0x5e2429[_0x18b280(0x159)];if(!_0x4e0a3d)throw new Error('Pages\x20are\x20not\x20found');const _0x474f58={'width':_0x4e0a3d[0x0][_0x18b280(0x178)],'height':_0x4e0a3d[0x0][_0x18b280(0x12f)]},_0xc422fe=_0x4e0a3d[_0x18b280(0x134)],_0x29d34f=Math[_0x18b280(0x143)](_0x18e1fc,_0xc422fe),_0x5b59ce=_0x3c585c[_0x18b280(0x124)][_0x18b280(0x15e)](),_0x3f1fc3=document[_0x18b280(0x14e)](_0x18b280(0x16f));_0x3f1fc3[_0x18b280(0x12c)]=PRINT_CONTAINER_CLASS;const _0xa7ddc7=new Array(_0x29d34f)[_0x18b280(0x13d)](null)[_0x18b280(0x132)]((_0x1ed429,_0x403825)=>{const _0x4a7741=_0x18b280,_0x30f4a2=new DocPrintPageCanvasView(this[_0x4a7741(0x11a)],_0x403825,_0x2d4889,_0x5b59ce);return _0x30f4a2['container']['className']=PRINT_CANVAS_CLASS,_0x30f4a2;});_0xa7ddc7[_0x18b280(0x115)](_0x15386b=>{const _0x372947=_0x18b280;_0x3f1fc3[_0x372947(0x166)](_0x15386b['container']),_0x15386b['container'][_0x372947(0x166)](_0x15386b[_0x372947(0x14a)]),_0x15386b[_0x372947(0x172)]();});const _0x10ff77=createPrintStyle(_0x474f58[_0x18b280(0xf6)],_0x474f58[_0x18b280(0x108)],PrintDirection[_0x18b280(0x12b)]);return document['body'][_0x18b280(0x166)](_0x10ff77),document['body'][_0x18b280(0x166)](_0x3f1fc3),new Promise(_0x1af720=>{setTimeout(()=>{const _0x5b2a4b=_0x1143;window[_0x5b2a4b(0xf9)]=()=>{const _0x5e714f=_0x5b2a4b;_0xa7ddc7[_0x5e714f(0x115)](_0x11281a=>{const _0x1a7517=_0x5e714f;_0x11281a[_0x1a7517(0x13f)]();});},window[_0x5b2a4b(0x137)]=()=>{const _0x2a6f64=_0x5b2a4b;_0xa7ddc7[_0x2a6f64(0x115)](_0x323f80=>{_0x323f80['dispose']();}),document[_0x2a6f64(0x148)][_0x2a6f64(0x126)](_0x3f1fc3),document[_0x2a6f64(0x148)][_0x2a6f64(0x126)](_0x10ff77),this[_0x2a6f64(0x13b)][_0x2a6f64(0x14f)](),_0x1af720(!![]);},window[_0x5b2a4b(0x104)]();},0x64);});}};DocPrintService=__decorate([__decorateParam(0x0,IUniverInstanceService),__decorateParam(0x1,IRenderManagerService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService),__decorateParam(0x4,IGlobalZoneService)],DocPrintService);const DocPrintOperation={'id':_0x2e5b8d(0x130),'type':CommandType[_0x2e5b8d(0x111)],'handler':async _0x1e3c76=>{const _0x4cfd37=_0x2e5b8d,_0x770ba9=_0x1e3c76[_0x4cfd37(0xf2)](IUniverInstanceService),_0x5048e8=_0x1e3c76['get'](DocPrintService),_0x5daa7d=_0x1e3c76[_0x4cfd37(0xf2)](IRenderManagerService),_0x24f1cf=_0x1e3c76[_0x4cfd37(0xf2)](ICommandService),_0x445ff0=_0x770ba9['getCurrentUnitOfType'](UniverInstanceType[_0x4cfd37(0xf4)]);if(!_0x445ff0)return![];if(!_0x5daa7d[_0x4cfd37(0x131)](_0x445ff0[_0x4cfd37(0x128)]()))throw new Error('Render\x20is\x20not\x20found');const _0x3b7461=_0x445ff0[_0x4cfd37(0x139)]()['documentFlavor'];if(_0x3b7461!==DocumentFlavor[_0x4cfd37(0x174)])_0x24f1cf[_0x4cfd37(0x135)](SwitchDocModeCommand['id']);await _0x5048e8[_0x4cfd37(0x104)](_0x445ff0['getUnitId']());if(_0x3b7461!==DocumentFlavor[_0x4cfd37(0x174)])_0x24f1cf[_0x4cfd37(0x135)](SwitchDocModeCommand['id']);return!![];}},DOCS_PRINT_PLUGIN_CONFIG_KEY=_0x2e5b8d(0x114),defaultPluginConfig={};var name=_0x2e5b8d(0x15b),version=_0x2e5b8d(0x110);const DOCS_PRINT_PLUGIN_NAME=_0x2e5b8d(0x114);function DocPrintMenuItemFactory(_0x286567){const _0x32ae09=_0x2e5b8d;return{'id':DocPrintOperation['id'],'type':MenuItemType[_0x32ae09(0x168)],'title':_0x32ae09(0x162),'icon':_0x32ae09(0x11f),'tooltip':_0x32ae09(0x162),'hidden$':getMenuHiddenObservable(_0x286567,UniverInstanceType[_0x32ae09(0xf4)])};}const menuSchema={[RibbonStartGroup[_0x2e5b8d(0x103)]]:{[DocPrintOperation['id']]:{'order':0.1,'menuItemFactory':DocPrintMenuItemFactory}}};let DocsPrintUIController=class DocsPrintUIController extends Disposable{constructor(_0x3fab6a,_0x20772e,_0x33c7bb){const _0x1693de=_0x2e5b8d;super(),this[_0x1693de(0x13c)]=_0x3fab6a,this[_0x1693de(0x10a)]=_0x20772e,this[_0x1693de(0x16b)]=_0x33c7bb,this['_initMenus'](),this[_0x1693de(0x152)](),this[_0x1693de(0x10e)]();}[_0x2e5b8d(0xfe)](){const _0x2c061d=_0x2e5b8d;this[_0x2c061d(0x10a)][_0x2c061d(0x106)](menuSchema);}[_0x2e5b8d(0x152)](){const _0x1ad321=_0x2e5b8d;this[_0x1ad321(0xe9)](this['_commandService'][_0x1ad321(0xef)](DocPrintOperation));}[_0x2e5b8d(0x10e)](){const _0x2b5739=_0x2e5b8d;[[_0x2b5739(0x11f),PrintIcon]][_0x2b5739(0x115)](([_0x3177d8,_0x4fa6f1])=>{const _0x2b984e=_0x2b5739;this[_0x2b984e(0x16b)][_0x2b984e(0x175)](_0x3177d8,_0x4fa6f1);});}};DocsPrintUIController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService),__decorateParam(0x2,Inject(ComponentManager))],DocsPrintUIController);let UniverDocsPrintPlugin=class UniverDocsPrintPlugin extends Plugin{constructor(_0x5a8da9=defaultPluginConfig,_0x31b6a1,_0x295cd3){const _0x4609e6=_0x2e5b8d;super(),this[_0x4609e6(0x155)]=_0x5a8da9,this[_0x4609e6(0x11a)]=_0x31b6a1,this[_0x4609e6(0x16e)]=_0x295cd3;const {menu:_0x4a61d2,..._0x2c75e7}=merge({},defaultPluginConfig,this[_0x4609e6(0x155)]);if(_0x4a61d2)this[_0x4609e6(0x16e)][_0x4609e6(0x151)](_0x4609e6(0xeb),_0x4a61d2,{'merge':!![]});this[_0x4609e6(0x16e)][_0x4609e6(0x151)](DOCS_PRINT_PLUGIN_CONFIG_KEY,_0x2c75e7);}['onStarting'](){const _0x2374f9=_0x2e5b8d;registerDependencies(this[_0x2374f9(0x11a)],[[DocPrintService],[DocsPrintUIController]]);}[_0x2e5b8d(0x14b)](){const _0x1e1a1f=_0x2e5b8d;this[_0x1e1a1f(0x11a)][_0x1e1a1f(0xf2)](DocsPrintUIController);}};_defineProperty(UniverDocsPrintPlugin,'pluginName',DOCS_PRINT_PLUGIN_NAME),_defineProperty(UniverDocsPrintPlugin,_0x2e5b8d(0x127),name),_defineProperty(UniverDocsPrintPlugin,_0x2e5b8d(0x116),version),_defineProperty(UniverDocsPrintPlugin,'type',UniverInstanceType[_0x2e5b8d(0xf4)]),UniverDocsPrintPlugin=__decorate([DependentOn(UniverNetworkPlugin,UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverDocsPrintPlugin);export{DOCS_PRINT_PLUGIN_CONFIG_KEY,DocPrintOperation,UniverDocsPrintPlugin};
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2291(){const _0x3e7c0f=['129712rHdecb','1777aNfgyF','10LQQgOd','1183527SmNLwO','1148264ekMDvS','61885LLOTzf','18yYGYib','556761JpvKpK','158IhTbkS','Print','4xFYVyf','890729DEYPkG'];_0x2291=function(){return _0x3e7c0f;};return _0x2291();}const _0x3b5600=_0x467d;(function(_0x56a768,_0x424d2a){const _0x4545d4=_0x467d,_0x320049=_0x56a768();while(!![]){try{const _0x387d7d=-parseInt(_0x4545d4(0x124))/0x1*(parseInt(_0x4545d4(0x11f))/0x2)+parseInt(_0x4545d4(0x11e))/0x3*(-parseInt(_0x4545d4(0x121))/0x4)+-parseInt(_0x4545d4(0x11c))/0x5*(-parseInt(_0x4545d4(0x11d))/0x6)+parseInt(_0x4545d4(0x122))/0x7+parseInt(_0x4545d4(0x127))/0x8+parseInt(_0x4545d4(0x126))/0x9*(parseInt(_0x4545d4(0x125))/0xa)+parseInt(_0x4545d4(0x123))/0xb;if(_0x387d7d===_0x424d2a)break;else _0x320049['push'](_0x320049['shift']());}catch(_0x3ab9e3){_0x320049['push'](_0x320049['shift']());}}}(_0x2291,0x1e934));const locale$1={'print':{'menu':_0x3b5600(0x120)}},locale=locale$1;function _0x467d(_0xdfad65,_0x47d368){_0xdfad65=_0xdfad65-0x11c;const _0x2291be=_0x2291();let _0x467d9c=_0x2291be[_0xdfad65];return _0x467d9c;}export{locale as default};
|
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x248559=_0x2278;function _0x1b99(){const _0x4ca80e=['35KBVyuH','2634237MOXNQe','Print','40311jrqHzl','787188lzrGCR','23ZSuaQH','121iNWVuo','10859709GAluoO','40qQaNlV','10235992fnbUel','70678aywlJy','1122972CzGWLf','40UhJrtb'];_0x1b99=function(){return _0x4ca80e;};return _0x1b99();}function _0x2278(_0x21ab2e,_0x59d74a){_0x21ab2e=_0x21ab2e-0x90;const _0x1b9953=_0x1b99();let _0x2278dc=_0x1b9953[_0x21ab2e];return _0x2278dc;}(function(_0x5152b7,_0x303d1e){const _0x5740f7=_0x2278,_0xd85a20=_0x5152b7();while(!![]){try{const _0x5340fc=-parseInt(_0x5740f7(0x98))/0x1*(parseInt(_0x5740f7(0x90))/0x2)+-parseInt(_0x5740f7(0x96))/0x3*(parseInt(_0x5740f7(0x9b))/0x4)+parseInt(_0x5740f7(0x93))/0x5*(-parseInt(_0x5740f7(0x97))/0x6)+parseInt(_0x5740f7(0x9a))/0x7+parseInt(_0x5740f7(0x9c))/0x8+-parseInt(_0x5740f7(0x94))/0x9*(parseInt(_0x5740f7(0x92))/0xa)+-parseInt(_0x5740f7(0x99))/0xb*(-parseInt(_0x5740f7(0x91))/0xc);if(_0x5340fc===_0x303d1e)break;else _0xd85a20['push'](_0xd85a20['shift']());}catch(_0x140766){_0xd85a20['push'](_0xd85a20['shift']());}}}(_0x1b99,0xc9290));const locale={'print':{'menu':_0x248559(0x95)}};export{locale as default};
|
package/lib/es/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x12d922=_0xd21a;function _0xd21a(_0x432c71,_0x1dea56){_0x432c71=_0x432c71-0x13c;const _0x537b51=_0x537b();let _0xd21acd=_0x537b51[_0x432c71];return _0xd21acd;}(function(_0x461619,_0x1bd9e4){const _0x315bfe=_0xd21a,_0x5d39d1=_0x461619();while(!![]){try{const _0x1c7725=parseInt(_0x315bfe(0x145))/0x1*(parseInt(_0x315bfe(0x13f))/0x2)+parseInt(_0x315bfe(0x141))/0x3+-parseInt(_0x315bfe(0x142))/0x4+parseInt(_0x315bfe(0x144))/0x5*(-parseInt(_0x315bfe(0x13d))/0x6)+-parseInt(_0x315bfe(0x147))/0x7*(parseInt(_0x315bfe(0x143))/0x8)+-parseInt(_0x315bfe(0x13c))/0x9*(-parseInt(_0x315bfe(0x146))/0xa)+-parseInt(_0x315bfe(0x140))/0xb;if(_0x1c7725===_0x1bd9e4)break;else _0x5d39d1['push'](_0x5d39d1['shift']());}catch(_0x4f3e8e){_0x5d39d1['push'](_0x5d39d1['shift']());}}}(_0x537b,0x3cb2e));const locale$1={'print':{'menu':_0x12d922(0x13e)}},locale=locale$1;function _0x537b(){const _0x54990e=['Print','2lGysSt','687269JhTlKD','552519nQaFoe','793484LmKpua','8ojjFOx','10JGEvBF','358661CFcwLr','1870QWqPxH','1067115uQOTDW','6795lAFoNE','66306mIshKg'];_0x537b=function(){return _0x54990e;};return _0x537b();}export{locale as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x1f831a=_0x5acd;(function(_0x4776b5,_0x3bcc3e){const _0x455a05=_0x5acd,_0x434837=_0x4776b5();while(!![]){try{const _0x5507a6=-parseInt(_0x455a05(0x132))/0x1+parseInt(_0x455a05(0x134))/0x2*(-parseInt(_0x455a05(0x137))/0x3)+-parseInt(_0x455a05(0x130))/0x4*(-parseInt(_0x455a05(0x12d))/0x5)+-parseInt(_0x455a05(0x12f))/0x6*(parseInt(_0x455a05(0x135))/0x7)+parseInt(_0x455a05(0x133))/0x8*(parseInt(_0x455a05(0x12e))/0x9)+parseInt(_0x455a05(0x12c))/0xa*(-parseInt(_0x455a05(0x136))/0xb)+parseInt(_0x455a05(0x131))/0xc;if(_0x5507a6===_0x3bcc3e)break;else _0x434837['push'](_0x434837['shift']());}catch(_0x1aa03e){_0x434837['push'](_0x434837['shift']());}}}(_0xf57b,0xac9df));const locale={'print':{'menu':_0x1f831a(0x138)}};function _0x5acd(_0x5477e5,_0x794d21){_0x5477e5=_0x5477e5-0x12c;const _0xf57ba3=_0xf57b();let _0x5acd60=_0xf57ba3[_0x5477e5];return _0x5acd60;}export{locale as default};function _0xf57b(){const _0x28c454=['5462343osYjQd','2526LnEGtU','4790636IrKIXC','8694552wDtRCg','51863nHPtqb','8NduLNc','2ceWSaW','5187iXftoO','11RsQtmu','540126ndyIfN','چاپ','12782270pKUoBF','5wcAtcc'];_0xf57b=function(){return _0x28c454;};return _0xf57b();}
|
package/lib/es/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x4834(){const _0x2a39d2=['27533vvUBCC','474CpSxJA','4295owSAbs','10clJJSY','7786848JSTurw','14160366NJIEFG','129929ySLRSP','13VNiXnR','4311629yUiSZL','1780972afKwOG','Imprimer','2830LmqaGm','6AEOSUD','8guDTrT'];_0x4834=function(){return _0x2a39d2;};return _0x4834();}function _0x165a(_0x1bfd09,_0x1ab969){_0x1bfd09=_0x1bfd09-0x73;const _0x4834d8=_0x4834();let _0x165a0b=_0x4834d8[_0x1bfd09];return _0x165a0b;}const _0x493ed8=_0x165a;(function(_0x203f65,_0x4e0523){const _0x25ae40=_0x165a,_0x3f7ce8=_0x203f65();while(!![]){try{const _0x552ca9=parseInt(_0x25ae40(0x73))/0x1*(parseInt(_0x25ae40(0x7e))/0x2)+-parseInt(_0x25ae40(0x79))/0x3*(parseInt(_0x25ae40(0x76))/0x4)+parseInt(_0x25ae40(0x7d))/0x5*(parseInt(_0x25ae40(0x7c))/0x6)+-parseInt(_0x25ae40(0x75))/0x7*(parseInt(_0x25ae40(0x7a))/0x8)+parseInt(_0x25ae40(0x80))/0x9+parseInt(_0x25ae40(0x78))/0xa*(parseInt(_0x25ae40(0x7b))/0xb)+-parseInt(_0x25ae40(0x7f))/0xc*(parseInt(_0x25ae40(0x74))/0xd);if(_0x552ca9===_0x4e0523)break;else _0x3f7ce8['push'](_0x3f7ce8['shift']());}catch(_0x223b8d){_0x3f7ce8['push'](_0x3f7ce8['shift']());}}}(_0x4834,0xce074));const locale={'print':{'menu':_0x493ed8(0x77)}};export{locale as default};
|
package/lib/es/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x25ba(_0x411329,_0x3f38fd){_0x411329=_0x411329-0x1b1;const _0x1e1610=_0x1e16();let _0x25ba97=_0x1e1610[_0x411329];return _0x25ba97;}function _0x1e16(){const _0x30b18c=['54yoUyeX','99159lPBuij','1197pabcaB','739960LZdTzf','17530cmeoiF','4LSNlca','96768FFlnhw','3256143OpLRiE','202105ptOQSH','2FVartY','37746UVvyIh'];_0x1e16=function(){return _0x30b18c;};return _0x1e16();}(function(_0x1e94d2,_0x569add){const _0x45c748=_0x25ba,_0x3c2fa8=_0x1e94d2();while(!![]){try{const _0x48aaf7=-parseInt(_0x45c748(0x1ba))/0x1*(parseInt(_0x45c748(0x1bb))/0x2)+-parseInt(_0x45c748(0x1b2))/0x3*(-parseInt(_0x45c748(0x1b6))/0x4)+-parseInt(_0x45c748(0x1b9))/0x5*(parseInt(_0x45c748(0x1b1))/0x6)+parseInt(_0x45c748(0x1b7))/0x7+parseInt(_0x45c748(0x1b4))/0x8+-parseInt(_0x45c748(0x1b3))/0x9*(-parseInt(_0x45c748(0x1b5))/0xa)+parseInt(_0x45c748(0x1b8))/0xb;if(_0x48aaf7===_0x569add)break;else _0x3c2fa8['push'](_0x3c2fa8['shift']());}catch(_0x1b07a2){_0x3c2fa8['push'](_0x3c2fa8['shift']());}}}(_0x1e16,0x412f7));const locale={'print':{'menu':'印刷'}};export{locale as default};
|
package/lib/es/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a8059,_0x3ee8ae){const _0x1ebe6b=_0x550f,_0x57b725=_0x4a8059();while(!![]){try{const _0x263b0f=parseInt(_0x1ebe6b(0x12a))/0x1*(-parseInt(_0x1ebe6b(0x12d))/0x2)+parseInt(_0x1ebe6b(0x132))/0x3+-parseInt(_0x1ebe6b(0x133))/0x4*(parseInt(_0x1ebe6b(0x12b))/0x5)+parseInt(_0x1ebe6b(0x134))/0x6*(parseInt(_0x1ebe6b(0x135))/0x7)+-parseInt(_0x1ebe6b(0x130))/0x8*(parseInt(_0x1ebe6b(0x12e))/0x9)+parseInt(_0x1ebe6b(0x12c))/0xa+parseInt(_0x1ebe6b(0x131))/0xb*(parseInt(_0x1ebe6b(0x12f))/0xc);if(_0x263b0f===_0x3ee8ae)break;else _0x57b725['push'](_0x57b725['shift']());}catch(_0x32cdf2){_0x57b725['push'](_0x57b725['shift']());}}}(_0x3c73,0x240d0));const locale={'print':{'menu':'인쇄'}};export{locale as default};function _0x550f(_0x167315,_0x376882){_0x167315=_0x167315-0x12a;const _0x3c73ec=_0x3c73();let _0x550f13=_0x3c73ec[_0x167315];return _0x550f13;}function _0x3c73(){const _0x37d1b2=['11LNjPKh','64765gnahou','1599840hGOnig','9946aasjJB','45rhLfxe','48INVYTl','429592oadrMV','383878tQMLDn','622404ZnomXl','24XPSprE','124608vUjFMz','14dpUpAX'];_0x3c73=function(){return _0x37d1b2;};return _0x3c73();}
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x323135=_0x11a3;(function(_0x199033,_0x125e65){const _0x39bbdb=_0x11a3,_0x20bfd3=_0x199033();while(!![]){try{const _0x1fe391=-parseInt(_0x39bbdb(0xf6))/0x1+-parseInt(_0x39bbdb(0xf7))/0x2*(parseInt(_0x39bbdb(0xfa))/0x3)+parseInt(_0x39bbdb(0xf3))/0x4*(parseInt(_0x39bbdb(0xee))/0x5)+parseInt(_0x39bbdb(0xf9))/0x6*(parseInt(_0x39bbdb(0xf8))/0x7)+parseInt(_0x39bbdb(0xf4))/0x8*(-parseInt(_0x39bbdb(0xf5))/0x9)+parseInt(_0x39bbdb(0xf2))/0xa*(-parseInt(_0x39bbdb(0xf0))/0xb)+parseInt(_0x39bbdb(0xef))/0xc;if(_0x1fe391===_0x125e65)break;else _0x20bfd3['push'](_0x20bfd3['shift']());}catch(_0x5681b7){_0x20bfd3['push'](_0x20bfd3['shift']());}}}(_0x509d,0xd8ec3));function _0x11a3(_0x27a42e,_0xc6ac55){_0x27a42e=_0x27a42e-0xee;const _0x509db6=_0x509d();let _0x11a3f8=_0x509db6[_0x27a42e];return _0x11a3f8;}function _0x509d(){const _0x4d6274=['121780fxKIuJ','47476140pnuJVa','583YdwqjD','Печать','301470DaEhJD','36fHMQGN','197456Heufyh','612sMgJJH','457343Bmolkb','3118IUbDRb','14kHwhka','4491726yLNwUj','2022nSfdpG'];_0x509d=function(){return _0x4d6274;};return _0x509d();}const locale={'print':{'menu':_0x323135(0xf1)}};export{locale as default};
|
package/lib/es/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x16eb(_0x3f9667,_0x34f588){_0x3f9667=_0x3f9667-0x14e;const _0x194de3=_0x194d();let _0x16eb14=_0x194de3[_0x3f9667];return _0x16eb14;}const _0x46d6a4=_0x16eb;function _0x194d(){const _0x2e74c0=['562195KUsNmj','5027533XjaQDD','3359716ecMLYK','2113894nCPPPU','30613592vhRzHa','1893642uIpZEp','Tlač','1840440JhyJgo','3ayDcyk'];_0x194d=function(){return _0x2e74c0;};return _0x194d();}(function(_0x2650fd,_0x2c4760){const _0x3f5d52=_0x16eb,_0x133dab=_0x2650fd();while(!![]){try{const _0x1e5f9f=-parseInt(_0x3f5d52(0x14e))/0x1+-parseInt(_0x3f5d52(0x151))/0x2*(parseInt(_0x3f5d52(0x156))/0x3)+-parseInt(_0x3f5d52(0x150))/0x4+-parseInt(_0x3f5d52(0x155))/0x5+parseInt(_0x3f5d52(0x153))/0x6+-parseInt(_0x3f5d52(0x14f))/0x7+parseInt(_0x3f5d52(0x152))/0x8;if(_0x1e5f9f===_0x2c4760)break;else _0x133dab['push'](_0x133dab['shift']());}catch(_0x3f0622){_0x133dab['push'](_0x133dab['shift']());}}}(_0x194d,0x91bc0));const locale={'print':{'menu':_0x46d6a4(0x154)}};export{locale as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x548dfc,_0xc72758){const _0x1078c9=_0x3164,_0x5e654a=_0x548dfc();while(!![]){try{const _0x218a67=parseInt(_0x1078c9(0x126))/0x1*(-parseInt(_0x1078c9(0x127))/0x2)+-parseInt(_0x1078c9(0x125))/0x3*(-parseInt(_0x1078c9(0x122))/0x4)+parseInt(_0x1078c9(0x123))/0x5+-parseInt(_0x1078c9(0x12a))/0x6+-parseInt(_0x1078c9(0x128))/0x7+parseInt(_0x1078c9(0x129))/0x8+parseInt(_0x1078c9(0x124))/0x9;if(_0x218a67===_0xc72758)break;else _0x5e654a['push'](_0x5e654a['shift']());}catch(_0x435ff1){_0x5e654a['push'](_0x5e654a['shift']());}}}(_0x43b0,0x6f87f));const locale={'print':{'menu':'In'}};function _0x43b0(){const _0x578b11=['4061232rZDCZx','4118952mvyiAZ','2444FCNkOO','736475GBoVVQ','2519910BrcFbd','3351CCVDma','429jNHTVI','550DtEsPQ','2492896sBLquz'];_0x43b0=function(){return _0x578b11;};return _0x43b0();}function _0x3164(_0x241c2d,_0x2730d7){_0x241c2d=_0x241c2d-0x122;const _0x43b03d=_0x43b0();let _0x31647=_0x43b03d[_0x241c2d];return _0x31647;}export{locale as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3dc1(){const _0x123adb=['1783752GJrmxX','1813491MEdBBV','9vFeAoU','48EmFFkJ','221462UCRggu','1052740FEvPaC','3870eTeEXa','369747bXVJVQ','8094910lOSICW','4548fvJfvQ'];_0x3dc1=function(){return _0x123adb;};return _0x3dc1();}function _0x2b6f(_0xab1eb,_0x4e6b6b){_0xab1eb=_0xab1eb-0x134;const _0x3dc19a=_0x3dc1();let _0x2b6f71=_0x3dc19a[_0xab1eb];return _0x2b6f71;}(function(_0x416a9e,_0x11d18a){const _0x36cd4c=_0x2b6f,_0x3c01d0=_0x416a9e();while(!![]){try{const _0x5b114b=parseInt(_0x36cd4c(0x134))/0x1+-parseInt(_0x36cd4c(0x13d))/0x2*(-parseInt(_0x36cd4c(0x13b))/0x3)+parseInt(_0x36cd4c(0x139))/0x4+parseInt(_0x36cd4c(0x135))/0x5*(-parseInt(_0x36cd4c(0x138))/0x6)+parseInt(_0x36cd4c(0x136))/0x7*(parseInt(_0x36cd4c(0x13c))/0x8)+-parseInt(_0x36cd4c(0x13a))/0x9+-parseInt(_0x36cd4c(0x137))/0xa;if(_0x5b114b===_0x11d18a)break;else _0x3c01d0['push'](_0x3c01d0['shift']());}catch(_0x1336b5){_0x3c01d0['push'](_0x3c01d0['shift']());}}}(_0x3dc1,0x864e3));const locale={'print':{'menu':'打印'}};export{locale as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a666f,_0x2528f0){const _0x44246d=_0x55cb,_0x11f29b=_0x4a666f();while(!![]){try{const _0x4a1c13=parseInt(_0x44246d(0x174))/0x1+parseInt(_0x44246d(0x173))/0x2+-parseInt(_0x44246d(0x171))/0x3+parseInt(_0x44246d(0x175))/0x4+-parseInt(_0x44246d(0x176))/0x5*(parseInt(_0x44246d(0x177))/0x6)+-parseInt(_0x44246d(0x178))/0x7+parseInt(_0x44246d(0x172))/0x8;if(_0x4a1c13===_0x2528f0)break;else _0x11f29b['push'](_0x11f29b['shift']());}catch(_0x3d1d3e){_0x11f29b['push'](_0x11f29b['shift']());}}}(_0x3809,0x31e7a));function _0x3809(){const _0x3f3f63=['106768GBwOaM','1097256TkIpoW','1195neIFva','1986JeweWt','472227eyKajc','601704GEmpAq','1136080ZGHwuo','56912OoagJj'];_0x3809=function(){return _0x3f3f63;};return _0x3809();}function _0x55cb(_0x173b87,_0x3bfa76){_0x173b87=_0x173b87-0x171;const _0x38098b=_0x3809();let _0x55cb4c=_0x38098b[_0x173b87];return _0x55cb4c;}const locale={'print':{'menu':'列印'}};export{locale as default};
|