@univerjs-pro/docs-print 0.21.0 → 0.21.1
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 _0x4f0ace=_0x2f34;(function(_0xfd90df,_0x375ece){const _0x51afa6=_0x2f34,_0x1f9e0c=_0xfd90df();while(!![]){try{const _0x11f72b=-parseInt(_0x51afa6(0x130))/0x1*(-parseInt(_0x51afa6(0x170))/0x2)+parseInt(_0x51afa6(0x1ca))/0x3*(-parseInt(_0x51afa6(0x15c))/0x4)+-parseInt(_0x51afa6(0x149))/0x5+parseInt(_0x51afa6(0x1cb))/0x6*(parseInt(_0x51afa6(0x196))/0x7)+parseInt(_0x51afa6(0x12a))/0x8*(parseInt(_0x51afa6(0x165))/0x9)+parseInt(_0x51afa6(0x11f))/0xa*(parseInt(_0x51afa6(0x120))/0xb)+parseInt(_0x51afa6(0x14b))/0xc*(-parseInt(_0x51afa6(0x1cd))/0xd);if(_0x11f72b===_0x375ece)break;else _0x1f9e0c['push'](_0x1f9e0c['shift']());}catch(_0x308f03){_0x1f9e0c['push'](_0x1f9e0c['shift']());}}}(_0x594d,0x513bb),Object[_0x4f0ace(0x1b2)](exports,Symbol[_0x4f0ace(0x166)],{'value':_0x4f0ace(0x159)}));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(_0x4c66c7){'@babel/helpers - typeof';const _0x1ca69=_0x4f0ace;return _typeof=_0x1ca69(0x187)==typeof Symbol&&_0x1ca69(0x18d)==typeof Symbol[_0x1ca69(0x122)]?function(_0x131a7d){return typeof _0x131a7d;}:function(_0xaa8328){const _0x1e8cc2=_0x1ca69;return _0xaa8328&&_0x1e8cc2(0x187)==typeof Symbol&&_0xaa8328[_0x1e8cc2(0x1b4)]===Symbol&&_0xaa8328!==Symbol[_0x1e8cc2(0x169)]?_0x1e8cc2(0x18d):typeof _0xaa8328;},_typeof(_0x4c66c7);}function toPrimitive(_0x577e00,_0x2319f3){const _0x243d00=_0x4f0ace;if(_0x243d00(0x131)!=_typeof(_0x577e00)||!_0x577e00)return _0x577e00;var _0x3c1d8c=_0x577e00[Symbol[_0x243d00(0x15d)]];if(void 0x0!==_0x3c1d8c){var _0x2bce99=_0x3c1d8c['call'](_0x577e00,_0x2319f3||_0x243d00(0x12b));if(_0x243d00(0x131)!=_typeof(_0x2bce99))return _0x2bce99;throw new TypeError(_0x243d00(0x123));}return(_0x243d00(0x1c8)===_0x2319f3?String:Number)(_0x577e00);}function toPropertyKey(_0x4ddbac){const _0x45b2d7=_0x4f0ace;var _0x5ecade=toPrimitive(_0x4ddbac,_0x45b2d7(0x1c8));return'symbol'==_typeof(_0x5ecade)?_0x5ecade:_0x5ecade+'';}function _defineProperty(_0x40954f,_0x2ae06e,_0x3a1e63){const _0x35d1e3=_0x4f0ace;return(_0x2ae06e=toPropertyKey(_0x2ae06e))in _0x40954f?Object[_0x35d1e3(0x1b2)](_0x40954f,_0x2ae06e,{'value':_0x3a1e63,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x40954f[_0x2ae06e]=_0x3a1e63,_0x40954f;}var DocPrintPageCanvasView=class extends _univerjs_core[_0x4f0ace(0x16f)]{get['container'](){const _0x5ce9ea=_0x4f0ace;return this[_0x5ce9ea(0x1bf)];}get[_0x4f0ace(0x153)](){const _0x3c1a0c=_0x4f0ace;return this[_0x3c1a0c(0x1c0)];}get[_0x4f0ace(0x198)](){const _0x5e504e=_0x4f0ace,_0x2a0178=this[_0x5e504e(0x192)][_0x5e504e(0x19d)](_univerjs_engine_render[_0x5e504e(0x13f)])['getRenderById'](this[_0x5e504e(0x191)]);if(!_0x2a0178)throw new Error(_0x5e504e(0x1b0));return _0x2a0178;}get[_0x4f0ace(0x1a4)](){const _0x3a8680=_0x4f0ace;return this[_0x3a8680(0x198)][_0x3a8680(0x16a)](_univerjs_docs[_0x3a8680(0x1cc)])[_0x3a8680(0x194)]();}get[_0x4f0ace(0x150)](){const _0x3e8b1b=_0x4f0ace,_0x1bd7b4=this['_skeleton'][_0x3e8b1b(0x18a)]();if(!_0x1bd7b4)throw new Error(_0x3e8b1b(0x19f));return _0x1bd7b4;}get[_0x4f0ace(0x199)](){const _0x53bce0=_0x4f0ace,_0x55325d=this[_0x53bce0(0x150)][_0x53bce0(0x1bb)][0x0];return{'width':_0x55325d[_0x53bce0(0x127)],'height':_0x55325d[_0x53bce0(0x1a6)]};}constructor(_0x59c8d4,_0xd02f31,_0x418f62,_0x2a7a6){const _0x300059=_0x4f0ace;super(),this[_0x300059(0x192)]=_0x59c8d4,this['_page']=_0xd02f31,this[_0x300059(0x191)]=_0x418f62,this[_0x300059(0x1a3)]=_0x2a7a6,_defineProperty(this,_0x300059(0x1bf),document[_0x300059(0x180)]('div')),_defineProperty(this,_0x300059(0x1c0),document[_0x300059(0x180)](_0x300059(0x142))),_defineProperty(this,_0x300059(0x124),void 0x0),_defineProperty(this,_0x300059(0x1d3),void 0x0),_defineProperty(this,_0x300059(0x121),void 0x0),_defineProperty(this,_0x300059(0x1ac),void 0x0),_defineProperty(this,_0x300059(0x132),void 0x0),_defineProperty(this,_0x300059(0x1c3),new _univerjs_core[(_0x300059(0x13c))]()),this[_0x300059(0x121)]=(0x0,_univerjs_core[_0x300059(0x1bc)])(0x4),this['_initRenderer'](),this[_0x300059(0x12d)]({'dispose':()=>{const _0x4e0440=_0x300059;this[_0x4e0440(0x124)][_0x4e0440(0x15f)](),this[_0x4e0440(0x1d3)][_0x4e0440(0x15f)](),this['_effects'][_0x4e0440(0x15f)]();}});}[_0x4f0ace(0x18c)](){const _0x125981=_0x4f0ace,{docsTop:_0x59a86a,docsLeft:_0x4645cd}=this['_documents']['getOffsetConfig'](),_0x4c0d3f=this[_0x125981(0x199)][_0x125981(0x1d6)],_0x1f17f0=this[_0x125981(0x199)][_0x125981(0x1c2)];return{'top':_0x59a86a+(_0x59a86a+_0x4c0d3f)*this[_0x125981(0x1a1)],'bottom':_0x59a86a+(_0x59a86a+_0x4c0d3f)*(this[_0x125981(0x1a1)]+0x1),'left':_0x4645cd,'right':_0x4645cd+_0x1f17f0};}[_0x4f0ace(0x1c9)](){const _0x555b24=_0x4f0ace,_0x33b4ef=0x1;this[_0x555b24(0x124)]=new _univerjs_engine_render[(_0x555b24(0x1b7))]('',{'elementWidth':this[_0x555b24(0x199)][_0x555b24(0x1c2)],'elementHeight':this[_0x555b24(0x199)][_0x555b24(0x1d6)],'dpr':0x1,'renderMode':_univerjs_engine_render[_0x555b24(0x15b)][_0x555b24(0x1b1)]}),this[_0x555b24(0x1d3)]=new _univerjs_engine_render[(_0x555b24(0x140))](this[_0x555b24(0x121)],this['_engine']),this['_scene'][_0x555b24(0x19a)](_0x33b4ef,_0x33b4ef),this['_engine']['setContainer'](this[_0x555b24(0x1bf)],![]),this[_0x555b24(0x124)][_0x555b24(0x1c6)]()['getContext']()[_0x555b24(0x1d2)](this[_0x555b24(0x121)]+'_'+(0x0,_univerjs_core[_0x555b24(0x1bc)])(0x4)),this[_0x555b24(0x134)](),this['_addViewport']();}[_0x4f0ace(0x134)](){const _0x537e7d=_0x4f0ace,{pageMarginLeft:_0x4de9e7,pageMarginTop:_0xdba8d2,docsLeft:_0x249887,docsTop:_0x4af64e}=this[_0x537e7d(0x1a3)],_0x167cf5={'pageMarginLeft':_0x4de9e7,'pageMarginTop':_0xdba8d2},_0x3ab1b9=new _univerjs_engine_render['Documents'](_0x537e7d(0x16c),this[_0x537e7d(0x1a4)],_0x167cf5);_0x3ab1b9['translate'](_0x249887,_0x4af64e),this[_0x537e7d(0x1d3)][_0x537e7d(0x188)](_0x3ab1b9),this[_0x537e7d(0x1ac)]=_0x3ab1b9;const _0x50618b=this[_0x537e7d(0x192)]['get'](_univerjs_docs_ui[_0x537e7d(0x163)]);_0x50618b[_0x537e7d(0x18f)][_0x537e7d(0x1d5)](_0x50618b[_0x537e7d(0x18f)]['getInterceptPoints']()[_0x537e7d(0x167)])(void 0x0,{'unitId':this[_0x537e7d(0x191)],'scene':this[_0x537e7d(0x1d3)],'engine':this['_engine'],'root':this['_root'],'documents':this[_0x537e7d(0x1ac)],'skeleton':this[_0x537e7d(0x1a4)]});}[_0x4f0ace(0x137)](){const _0x5acda5=_0x4f0ace;this['_viewMain']=new _univerjs_engine_render[(_0x5acda5(0x14e))](_univerjs_docs_ui['VIEWPORT_KEY'][_0x5acda5(0x11c)],this[_0x5acda5(0x1d3)],{'explicitViewportWidthSet':!![],'explicitViewportHeightSet':!![]});}['prepare'](){const _0x3d2f70=_0x4f0ace,_0x334ef9=this['_calculateLayout']();this['_viewMain'][_0x3d2f70(0x193)]({'viewportScrollX':_0x334ef9['left'],'viewportScrollY':_0x334ef9[_0x3d2f70(0x179)]}),this[_0x3d2f70(0x1c0)][_0x3d2f70(0x14a)][_0x3d2f70(0x17e)]=_0x3d2f70(0x13b),this[_0x3d2f70(0x1c0)]['style'][_0x3d2f70(0x179)]=_0x3d2f70(0x1be),this[_0x3d2f70(0x1c0)][_0x3d2f70(0x14a)][_0x3d2f70(0x128)]='0px',this[_0x3d2f70(0x1c0)][_0x3d2f70(0x14a)][_0x3d2f70(0x1c2)]=_0x3d2f70(0x139),this[_0x3d2f70(0x1c0)][_0x3d2f70(0x14a)][_0x3d2f70(0x1d6)]='100%',this[_0x3d2f70(0x1c3)]=new _univerjs_core['DisposableCollection']();const _0x7207a6=this[_0x3d2f70(0x192)]['get'](_univerjs_docs_ui[_0x3d2f70(0x163)]);_0x7207a6['interceptor'][_0x3d2f70(0x1d5)](_0x7207a6['interceptor'][_0x3d2f70(0x152)]()[_0x3d2f70(0x15e)])(this[_0x3d2f70(0x1c3)],{'unitId':this[_0x3d2f70(0x191)],'scene':this['_scene'],'engine':this[_0x3d2f70(0x124)],'root':this['_root'],'skeleton':this[_0x3d2f70(0x1a4)],'offset':{'x':_0x334ef9[_0x3d2f70(0x128)],'y':_0x334ef9[_0x3d2f70(0x179)]},'bound':{'top':_0x334ef9[_0x3d2f70(0x179)],'left':_0x334ef9[_0x3d2f70(0x128)],'right':_0x334ef9[_0x3d2f70(0x158)],'bottom':_0x334ef9[_0x3d2f70(0x151)]}});}[_0x4f0ace(0x143)](){const _0x586422=_0x4f0ace,_0x464866=this['_engine'][_0x586422(0x1c6)]()[_0x586422(0x17d)]();this[_0x586422(0x1ac)][_0x586422(0x19e)](),this[_0x586422(0x1d3)][_0x586422(0x154)](),_0x464866[_0x586422(0x135)](),this[_0x586422(0x1d3)][_0x586422(0x143)](),_0x464866[_0x586422(0x1cf)]();}};function __decorateParam(_0x2cb8a1,_0x1e7b9f){return function(_0x14be78,_0x19e6fc){_0x1e7b9f(_0x14be78,_0x19e6fc,_0x2cb8a1);};}function __decorate(_0x1e2ed5,_0x5deb77,_0x18fb99,_0x6270c){const _0x5eadd1=_0x4f0ace;var _0x5de724=arguments['length'],_0x59d1ca=_0x5de724<0x3?_0x5deb77:_0x6270c===null?_0x6270c=Object[_0x5eadd1(0x1d4)](_0x5deb77,_0x18fb99):_0x6270c,_0x17b651;if(typeof Reflect==='object'&&typeof Reflect['decorate']===_0x5eadd1(0x187))_0x59d1ca=Reflect['decorate'](_0x1e2ed5,_0x5deb77,_0x18fb99,_0x6270c);else{for(var _0xe2c974=_0x1e2ed5[_0x5eadd1(0x1b6)]-0x1;_0xe2c974>=0x0;_0xe2c974--)if(_0x17b651=_0x1e2ed5[_0xe2c974])_0x59d1ca=(_0x5de724<0x3?_0x17b651(_0x59d1ca):_0x5de724>0x3?_0x17b651(_0x5deb77,_0x18fb99,_0x59d1ca):_0x17b651(_0x5deb77,_0x18fb99))||_0x59d1ca;}return _0x5de724>0x3&&_0x59d1ca&&Object['defineProperty'](_0x5deb77,_0x18fb99,_0x59d1ca),_0x59d1ca;}const BUILD_TIMESTAMP=Number[_0x4f0ace(0x155)](0x69e3503e),DEFAULT_PRINT_LIMIT=0x1,getPrintInfoByLicense=(_0x1e043d,_0xe6db1b,_0x53f366)=>{const _0x33fec9=_0x4f0ace,_0x343f9b={'page':_0x1e043d,'isPro':![],'timeValid':![]};if(!_0xe6db1b||!_0x53f366)return _0x343f9b;const _0x4c64b4=(0x0,_univerjs_pro_license[_0x33fec9(0x17c)])(_0xe6db1b,_0x53f366);if(_0x4c64b4[_0x33fec9(0x146)]){const _0x58ccfc=_0x4c64b4['message'],_0x710820=(0x0,_univerjs_pro_license[_0x33fec9(0x1a2)])(_0x58ccfc,'df',BUILD_TIMESTAMP);_0x343f9b[_0x33fec9(0x195)]=_0x710820,_0x343f9b['timeValid']=_0x710820,_0x343f9b['page']=(0x0,_univerjs_pro_license['getDocFeatureLimit'])(_0x58ccfc,_0x710820,_0x33fec9(0x1b3),_0x1e043d,_0x1e043d,0x0);}return _0x343f9b;};function _0x2f34(_0x56ac51,_0x1277f6){_0x56ac51=_0x56ac51-0x11a;const _0x594d71=_0x594d();let _0x2f3466=_0x594d71[_0x56ac51];return _0x2f3466;}function _0x594d(){const _0x4e2657=['DocPrintInterceptorService','body','9emvFvS','toStringTag','PRINTING_COMPONENT_COLLECT','BUTTON','prototype','with','type','__DocPrintRender__','onafterprint','_initMenus','Disposable','172GpVjzg','map','UNIVER_DOC','_configService','DocumentDataModel\x20is\x20not\x20found','OTHERS','OPERATION','_config','registerCommand','top','forEach','getConfig','getLicenseInfo','getContext','position','getUnit','createElement','removeChild','_menuManagerService','getMenuHiddenObservable','CommandType','createPrintStyle','getCurrentUnitOfType','function','addObject','Portrait','getSkeletonData','Pages\x20are\x20not\x20found','_calculateLayout','symbol','ComponentManager','interceptor','RibbonStartGroup','_unitId','_injector','updateScrollVal','getSkeleton','isPro','45171tZFacc','_initCommands','_currentRender','_paperSize','scale','setConfig','isLocalCheck','get','makeForceDirty','Skeleton\x20data\x20is\x20not\x20found','pluginName','_page','isFeatureAuthorizedWithinTime','_offsetConfig','_skeleton','documentFlavor','pageHeight','POSITIVE_INFINITY','registerDependencies','MenuItemType','register','Inject','_documents','_commandService','prepare','_renderManagerService','Render\x20is\x20not\x20found','Printing','defineProperty','mpn','constructor','syncExecuteCommand','length','Engine','Injector','print','getDocumentStyle','pages','generateRandomId','_componentManager','0px','_container','_root','PRINT_CONTAINER_CLASS','width','_effects','IConfigService','UniverLicensePlugin','getCanvas','Plugin','string','_initRenderer','1547142CKOLsi','498HTigmO','DocSkeletonManagerService','13ZkvNnm','getOffsetConfig','restore','_univerInstanceService','container','setId','_scene','getOwnPropertyDescriptor','fetchThroughInterceptors','height','UniverInstanceType','appendChild','VIEW_MAIN','mergeMenu','PRINT_CANVAS_CLASS','3430aqDzkA','15983WBjXzW','_key','iterator','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_engine','DependentOn','fill','pageWidth','left','@univerjs-pro/docs-print','1801864oavict','default','onStarting','disposeWithMe','LS_CONFIG_KEY','PrintIcon','129CSwojx','object','_viewMain','min','_addComponent','save','menu','_addViewport','PrintDirection','100%','_globalZoneService','absolute','DisposableCollection','IGlobalZoneService','UNIVER_DOCS_PRINT','IRenderManagerService','Scene','_initComponents','div','render','onbeforeprint','ICommandService','valid','packageName','page','1416470mLnipz','style','1662792SveGVZ','IUniverInstanceService','DocPrintOperation','Viewport','IMenuManagerService','_skeletonData','bottom','getInterceptPoints','root','makeDirty','parseInt','docs.operation.print','getUnitId','right','Module','print.menu','CanvasRenderMode','4qScmPa','toPrimitive','PRINTING_DOM_COLLECT','dispose','getRenderById','merge','mainComponent'];_0x594d=function(){return _0x4e2657;};return _0x594d();}let DocPrintService=class DocPrintService extends _univerjs_core[_0x4f0ace(0x16f)]{constructor(_0x24ca7a,_0x58fc72,_0x1c527e,_0x1a5666,_0x3b34f8){const _0x1348b4=_0x4f0ace;super(),this[_0x1348b4(0x1d0)]=_0x24ca7a,this[_0x1348b4(0x1af)]=_0x58fc72,this[_0x1348b4(0x192)]=_0x1c527e,this[_0x1348b4(0x173)]=_0x1a5666,this['_globalZoneService']=_0x3b34f8;}['print'](_0x3d681a){const _0x3e6e92=_0x4f0ace;var _0x11b23f,_0x26218d;const {ls:_0x4e004c,pbk:_0x9b4a2e}=(_0x11b23f=this[_0x3e6e92(0x173)][_0x3e6e92(0x17b)](_univerjs_pro_license[_0x3e6e92(0x12e)]))!==null&&_0x11b23f!==void 0x0?_0x11b23f:{},_0x1e5c45=(0x0,_univerjs_pro_license[_0x3e6e92(0x19c)])()?Number[_0x3e6e92(0x1a7)]:getPrintInfoByLicense(0x1,_0x4e004c,_0x9b4a2e)[_0x3e6e92(0x148)];if(!this['_univerInstanceService'][_0x3e6e92(0x17f)](_0x3d681a,_univerjs_core['UniverInstanceType'][_0x3e6e92(0x172)]))throw new Error(_0x3e6e92(0x174));const _0x1f8831=this[_0x3e6e92(0x1af)][_0x3e6e92(0x160)](_0x3d681a);if(!_0x1f8831)throw new Error(_0x3e6e92(0x1b0));const _0x5329cc=(_0x26218d=_0x1f8831[_0x3e6e92(0x16a)](_univerjs_docs[_0x3e6e92(0x1cc)])[_0x3e6e92(0x194)]()[_0x3e6e92(0x18a)]())===null||_0x26218d===void 0x0?void 0x0:_0x26218d[_0x3e6e92(0x1bb)];if(!_0x5329cc)throw new Error(_0x3e6e92(0x18b));const _0x325e09={'width':_0x5329cc[0x0]['pageWidth'],'height':_0x5329cc[0x0][_0x3e6e92(0x1a6)]},_0x4c93f4=_0x5329cc[_0x3e6e92(0x1b6)],_0x5a55b6=Math[_0x3e6e92(0x133)](_0x1e5c45,_0x4c93f4),_0x3e86dc=_0x1f8831[_0x3e6e92(0x162)][_0x3e6e92(0x1ce)](),_0x2299bd=document['createElement'](_0x3e6e92(0x142));_0x2299bd['className']=_univerjs_pro_print[_0x3e6e92(0x1c1)];const _0x5213cf=new Array(_0x5a55b6)[_0x3e6e92(0x126)](null)[_0x3e6e92(0x171)]((_0x372aaf,_0x7c8ac6)=>{const _0x35922d=_0x3e6e92,_0x555f45=new DocPrintPageCanvasView(this['_injector'],_0x7c8ac6,_0x3d681a,_0x3e86dc);return _0x555f45[_0x35922d(0x1d1)]['className']=_univerjs_pro_print[_0x35922d(0x11e)],_0x555f45;});_0x5213cf[_0x3e6e92(0x17a)](_0x11b35f=>{const _0x5e7dad=_0x3e6e92;_0x2299bd[_0x5e7dad(0x11b)](_0x11b35f[_0x5e7dad(0x1d1)]),_0x11b35f[_0x5e7dad(0x1d1)][_0x5e7dad(0x11b)](_0x11b35f['root']),_0x11b35f[_0x5e7dad(0x1ae)]();});const _0x1d9650=(0x0,_univerjs_pro_print[_0x3e6e92(0x185)])(_0x325e09['width'],_0x325e09[_0x3e6e92(0x1d6)],_univerjs_pro_print[_0x3e6e92(0x138)][_0x3e6e92(0x189)]);return document[_0x3e6e92(0x164)][_0x3e6e92(0x11b)](_0x1d9650),document['body'][_0x3e6e92(0x11b)](_0x2299bd),new Promise(_0xdbd6d3=>{setTimeout(()=>{const _0x135af5=_0x2f34;window[_0x135af5(0x144)]=()=>{const _0x11b3d9=_0x135af5;_0x5213cf[_0x11b3d9(0x17a)](_0x490b01=>{const _0x484144=_0x11b3d9;_0x490b01[_0x484144(0x143)]();});},window[_0x135af5(0x16d)]=()=>{const _0x2281eb=_0x135af5;_0x5213cf['forEach'](_0x2ce960=>{const _0x218497=_0x2f34;_0x2ce960[_0x218497(0x15f)]();}),document[_0x2281eb(0x164)][_0x2281eb(0x181)](_0x2299bd),document[_0x2281eb(0x164)][_0x2281eb(0x181)](_0x1d9650),this[_0x2281eb(0x13a)]['close'](),_0xdbd6d3(!![]);},window[_0x135af5(0x1b9)]();},0x64);});}};DocPrintService=__decorate([__decorateParam(0x0,_univerjs_core[_0x4f0ace(0x14c)]),__decorateParam(0x1,_univerjs_engine_render[_0x4f0ace(0x13f)]),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x4f0ace(0x1b8)])),__decorateParam(0x3,_univerjs_core[_0x4f0ace(0x1c4)]),__decorateParam(0x4,_univerjs_ui[_0x4f0ace(0x13d)])],DocPrintService);const DocPrintOperation={'id':_0x4f0ace(0x156),'type':_univerjs_core[_0x4f0ace(0x184)][_0x4f0ace(0x176)],'handler':async _0x57037c=>{const _0x428d21=_0x4f0ace,_0x21a08f=_0x57037c[_0x428d21(0x19d)](_univerjs_core[_0x428d21(0x14c)]),_0x30964d=_0x57037c[_0x428d21(0x19d)](DocPrintService),_0x20dab5=_0x57037c[_0x428d21(0x19d)](_univerjs_engine_render['IRenderManagerService']),_0x32d606=_0x57037c[_0x428d21(0x19d)](_univerjs_core[_0x428d21(0x145)]),_0x85494b=_0x21a08f[_0x428d21(0x186)](_univerjs_core[_0x428d21(0x11a)][_0x428d21(0x172)]);if(!_0x85494b)return![];if(!_0x20dab5[_0x428d21(0x160)](_0x85494b[_0x428d21(0x157)]()))throw new Error('Render\x20is\x20not\x20found');const _0x337f2b=_0x85494b[_0x428d21(0x1ba)]()[_0x428d21(0x1a5)];if(_0x337f2b!==_univerjs_core['DocumentFlavor']['TRADITIONAL'])_0x32d606[_0x428d21(0x1b5)](_univerjs_docs_ui['SwitchDocModeCommand']['id']);await _0x30964d[_0x428d21(0x1b9)](_0x85494b[_0x428d21(0x157)]());if(_0x337f2b!==_univerjs_core['DocumentFlavor']['TRADITIONAL'])_0x32d606[_0x428d21(0x1b5)](_univerjs_docs_ui['SwitchDocModeCommand']['id']);return!![];}},DOCS_PRINT_PLUGIN_CONFIG_KEY=_0x4f0ace(0x13e),defaultPluginConfig={};var name=_0x4f0ace(0x129),version='0.21.0';const DOCS_PRINT_PLUGIN_NAME=_0x4f0ace(0x13e);function DocPrintMenuItemFactory(_0x41a951){const _0x5c78ef=_0x4f0ace;return{'id':DocPrintOperation['id'],'type':_univerjs_ui[_0x5c78ef(0x1a9)][_0x5c78ef(0x168)],'title':_0x5c78ef(0x15a),'icon':'PrintIcon','tooltip':_0x5c78ef(0x15a),'hidden$':(0x0,_univerjs_ui[_0x5c78ef(0x183)])(_0x41a951,_univerjs_core[_0x5c78ef(0x11a)][_0x5c78ef(0x172)])};}const menuSchema={[_univerjs_ui[_0x4f0ace(0x190)][_0x4f0ace(0x175)]]:{[DocPrintOperation['id']]:{'order':0.1,'menuItemFactory':DocPrintMenuItemFactory}}};let DocsPrintUIController=class DocsPrintUIController extends _univerjs_core[_0x4f0ace(0x16f)]{constructor(_0x8a26d9,_0x52f45f,_0x14c89d){const _0x1af926=_0x4f0ace;super(),this[_0x1af926(0x1ad)]=_0x8a26d9,this[_0x1af926(0x182)]=_0x52f45f,this[_0x1af926(0x1bd)]=_0x14c89d,this[_0x1af926(0x16e)](),this['_initCommands'](),this[_0x1af926(0x141)]();}[_0x4f0ace(0x16e)](){const _0x1ce6f1=_0x4f0ace;this[_0x1ce6f1(0x182)][_0x1ce6f1(0x11d)](menuSchema);}[_0x4f0ace(0x197)](){const _0x2da1bf=_0x4f0ace;this['disposeWithMe'](this[_0x2da1bf(0x1ad)][_0x2da1bf(0x178)](DocPrintOperation));}[_0x4f0ace(0x141)](){const _0x5abd0c=_0x4f0ace;[[_0x5abd0c(0x12f),_univerjs_icons[_0x5abd0c(0x12f)]]]['forEach'](([_0x17a650,_0x59c70b])=>{const _0xa738e9=_0x5abd0c;this['_componentManager'][_0xa738e9(0x1aa)](_0x17a650,_0x59c70b);});}};DocsPrintUIController=__decorate([__decorateParam(0x0,_univerjs_core[_0x4f0ace(0x145)]),__decorateParam(0x1,_univerjs_ui[_0x4f0ace(0x14f)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x4f0ace(0x1ab)])(_univerjs_ui[_0x4f0ace(0x18e)]))],DocsPrintUIController);let UniverDocsPrintPlugin=class UniverDocsPrintPlugin extends _univerjs_core[_0x4f0ace(0x1c7)]{constructor(_0x257fb9=defaultPluginConfig,_0x403c36,_0x3f19ce){const _0x23b34e=_0x4f0ace;super(),this[_0x23b34e(0x177)]=_0x257fb9,this['_injector']=_0x403c36,this[_0x23b34e(0x173)]=_0x3f19ce;const {menu:_0x584313,..._0x35b3b1}=(0x0,_univerjs_core[_0x23b34e(0x161)])({},defaultPluginConfig,this[_0x23b34e(0x177)]);if(_0x584313)this['_configService']['setConfig'](_0x23b34e(0x136),_0x584313,{'merge':!![]});this[_0x23b34e(0x173)][_0x23b34e(0x19b)](DOCS_PRINT_PLUGIN_CONFIG_KEY,_0x35b3b1);}[_0x4f0ace(0x12c)](){const _0x38343e=_0x4f0ace;(0x0,_univerjs_core[_0x38343e(0x1a8)])(this['_injector'],[[DocPrintService],[DocsPrintUIController]]);}['onReady'](){const _0x37d406=_0x4f0ace;this[_0x37d406(0x192)]['get'](DocsPrintUIController);}};_defineProperty(UniverDocsPrintPlugin,_0x4f0ace(0x1a0),DOCS_PRINT_PLUGIN_NAME),_defineProperty(UniverDocsPrintPlugin,_0x4f0ace(0x147),name),_defineProperty(UniverDocsPrintPlugin,'version',version),_defineProperty(UniverDocsPrintPlugin,_0x4f0ace(0x16b),_univerjs_core[_0x4f0ace(0x11a)][_0x4f0ace(0x172)]),UniverDocsPrintPlugin=__decorate([(0x0,_univerjs_core[_0x4f0ace(0x125)])(_univerjs_network['UniverNetworkPlugin'],_univerjs_pro_license[_0x4f0ace(0x1c5)]),__decorateParam(0x1,(0x0,_univerjs_core['Inject'])(_univerjs_core[_0x4f0ace(0x1b8)])),__decorateParam(0x2,_univerjs_core[_0x4f0ace(0x1c4)])],UniverDocsPrintPlugin),exports['DOCS_PRINT_PLUGIN_CONFIG_KEY']=DOCS_PRINT_PLUGIN_CONFIG_KEY,exports[_0x4f0ace(0x14d)]=DocPrintOperation,Object[_0x4f0ace(0x1b2)](exports,'UniverDocsPrintPlugin',{'enumerable':!![],'get':function(){return UniverDocsPrintPlugin;}});
|
|
1
|
+
const _0x2b3765=_0x37dc;(function(_0x58a5d7,_0x2fa653){const _0x53dadd=_0x37dc,_0x448365=_0x58a5d7();while(!![]){try{const _0x460dba=parseInt(_0x53dadd(0x1ba))/0x1+-parseInt(_0x53dadd(0x201))/0x2*(-parseInt(_0x53dadd(0x1e1))/0x3)+parseInt(_0x53dadd(0x1ef))/0x4+parseInt(_0x53dadd(0x249))/0x5*(parseInt(_0x53dadd(0x20d))/0x6)+-parseInt(_0x53dadd(0x200))/0x7+-parseInt(_0x53dadd(0x1d3))/0x8+parseInt(_0x53dadd(0x1aa))/0x9*(-parseInt(_0x53dadd(0x1c9))/0xa);if(_0x460dba===_0x2fa653)break;else _0x448365['push'](_0x448365['shift']());}catch(_0x1e6d28){_0x448365['push'](_0x448365['shift']());}}}(_0x246f,0xee6a1),Object['defineProperty'](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 _0x37dc(_0x561ea4,_0x21ad15){_0x561ea4=_0x561ea4-0x1a5;const _0x246f6c=_0x246f();let _0x37dc3a=_0x246f6c[_0x561ea4];return _0x37dc3a;}function _typeof(_0x1e06d6){'@babel/helpers - typeof';const _0x502e73=_0x37dc;return _typeof=_0x502e73(0x248)==typeof Symbol&&_0x502e73(0x20e)==typeof Symbol[_0x502e73(0x1a6)]?function(_0x438d89){return typeof _0x438d89;}:function(_0x2b9e3a){const _0x219124=_0x502e73;return _0x2b9e3a&&_0x219124(0x248)==typeof Symbol&&_0x2b9e3a[_0x219124(0x1b4)]===Symbol&&_0x2b9e3a!==Symbol['prototype']?_0x219124(0x20e):typeof _0x2b9e3a;},_typeof(_0x1e06d6);}function toPrimitive(_0x4b1ec6,_0x40ddb0){const _0x48de59=_0x37dc;if(_0x48de59(0x1f6)!=_typeof(_0x4b1ec6)||!_0x4b1ec6)return _0x4b1ec6;var _0x38d53d=_0x4b1ec6[Symbol[_0x48de59(0x229)]];if(void 0x0!==_0x38d53d){var _0x3f2f7f=_0x38d53d[_0x48de59(0x1bf)](_0x4b1ec6,_0x40ddb0||_0x48de59(0x1df));if(_0x48de59(0x1f6)!=_typeof(_0x3f2f7f))return _0x3f2f7f;throw new TypeError(_0x48de59(0x1e0));}return('string'===_0x40ddb0?String:Number)(_0x4b1ec6);}function toPropertyKey(_0x3197c1){const _0x13f502=_0x37dc;var _0x567435=toPrimitive(_0x3197c1,'string');return _0x13f502(0x20e)==_typeof(_0x567435)?_0x567435:_0x567435+'';}function _defineProperty(_0x32fcab,_0x23cb6f,_0x22ab40){const _0x15d532=_0x37dc;return(_0x23cb6f=toPropertyKey(_0x23cb6f))in _0x32fcab?Object[_0x15d532(0x21d)](_0x32fcab,_0x23cb6f,{'value':_0x22ab40,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x32fcab[_0x23cb6f]=_0x22ab40,_0x32fcab;}var DocPrintPageCanvasView=class extends _univerjs_core[_0x2b3765(0x1b8)]{get[_0x2b3765(0x1de)](){return this['_container'];}get[_0x2b3765(0x206)](){return this['_root'];}get[_0x2b3765(0x1ae)](){const _0xa475f2=_0x2b3765,_0xbb11c8=this[_0xa475f2(0x1e9)][_0xa475f2(0x237)](_univerjs_engine_render[_0xa475f2(0x225)])[_0xa475f2(0x208)](this[_0xa475f2(0x1c3)]);if(!_0xbb11c8)throw new Error('Render\x20is\x20not\x20found');return _0xbb11c8;}get[_0x2b3765(0x210)](){const _0x53c580=_0x2b3765;return this[_0x53c580(0x1ae)][_0x53c580(0x1fb)](_univerjs_docs[_0x53c580(0x1cf)])['getSkeleton']();}get[_0x2b3765(0x1ca)](){const _0x300d1d=_0x2b3765,_0x18339f=this['_skeleton'][_0x300d1d(0x21f)]();if(!_0x18339f)throw new Error(_0x300d1d(0x231));return _0x18339f;}get['_paperSize'](){const _0x482013=_0x2b3765,_0x25948f=this[_0x482013(0x1ca)][_0x482013(0x1f5)][0x0];return{'width':_0x25948f[_0x482013(0x21a)],'height':_0x25948f[_0x482013(0x205)]};}constructor(_0x4ae9dd,_0x6fd682,_0x5e1730,_0x4df9ac){const _0x2a5b10=_0x2b3765;super(),this[_0x2a5b10(0x1e9)]=_0x4ae9dd,this[_0x2a5b10(0x1eb)]=_0x6fd682,this[_0x2a5b10(0x1c3)]=_0x5e1730,this[_0x2a5b10(0x1dc)]=_0x4df9ac,_defineProperty(this,'_container',document[_0x2a5b10(0x24f)](_0x2a5b10(0x1a7))),_defineProperty(this,_0x2a5b10(0x214),document[_0x2a5b10(0x24f)](_0x2a5b10(0x1a7))),_defineProperty(this,'_engine',void 0x0),_defineProperty(this,_0x2a5b10(0x1b3),void 0x0),_defineProperty(this,'_key',void 0x0),_defineProperty(this,_0x2a5b10(0x244),void 0x0),_defineProperty(this,'_viewMain',void 0x0),_defineProperty(this,_0x2a5b10(0x22a),new _univerjs_core['DisposableCollection']()),this[_0x2a5b10(0x253)]=(0x0,_univerjs_core[_0x2a5b10(0x1e2)])(0x4),this[_0x2a5b10(0x246)](),this[_0x2a5b10(0x247)]({'dispose':()=>{const _0x58e2c9=_0x2a5b10;this['_engine'][_0x58e2c9(0x22d)](),this[_0x58e2c9(0x1b3)][_0x58e2c9(0x22d)](),this['_effects'][_0x58e2c9(0x22d)]();}});}[_0x2b3765(0x23a)](){const _0x46a87f=_0x2b3765,{docsTop:_0x47da69,docsLeft:_0x2a3d5e}=this[_0x46a87f(0x244)]['getOffsetConfig'](),_0x1697c0=this[_0x46a87f(0x227)][_0x46a87f(0x255)],_0x30b6cb=this[_0x46a87f(0x227)]['width'];return{'top':_0x47da69+(_0x47da69+_0x1697c0)*this['_page'],'bottom':_0x47da69+(_0x47da69+_0x1697c0)*(this['_page']+0x1),'left':_0x2a3d5e,'right':_0x2a3d5e+_0x30b6cb};}[_0x2b3765(0x246)](){const _0x4eb54a=_0x2b3765,_0x387a7e=0x1;this['_engine']=new _univerjs_engine_render['Engine']('',{'elementWidth':this[_0x4eb54a(0x227)][_0x4eb54a(0x20f)],'elementHeight':this['_paperSize']['height'],'dpr':0x1,'renderMode':_univerjs_engine_render[_0x4eb54a(0x1e6)]['Printing']}),this['_scene']=new _univerjs_engine_render[(_0x4eb54a(0x207))](this[_0x4eb54a(0x253)],this[_0x4eb54a(0x235)]),this[_0x4eb54a(0x1b3)][_0x4eb54a(0x233)](_0x387a7e,_0x387a7e),this['_engine'][_0x4eb54a(0x20b)](this[_0x4eb54a(0x1ab)],![]),this[_0x4eb54a(0x235)]['getCanvas']()[_0x4eb54a(0x218)]()['setId'](this[_0x4eb54a(0x253)]+'_'+(0x0,_univerjs_core[_0x4eb54a(0x1e2)])(0x4)),this['_addComponent'](),this[_0x4eb54a(0x211)]();}[_0x2b3765(0x1b7)](){const _0x188b1c=_0x2b3765,{pageMarginLeft:_0x511e01,pageMarginTop:_0x45bd4e,docsLeft:_0xf02c43,docsTop:_0x3f26b9}=this[_0x188b1c(0x1dc)],_0x29d6e1={'pageMarginLeft':_0x511e01,'pageMarginTop':_0x45bd4e},_0x2fba8f=new _univerjs_engine_render[(_0x188b1c(0x1d7))](_0x188b1c(0x1d0),this[_0x188b1c(0x210)],_0x29d6e1);_0x2fba8f[_0x188b1c(0x24b)](_0xf02c43,_0x3f26b9),this[_0x188b1c(0x1b3)][_0x188b1c(0x1dd)](_0x2fba8f),this['_documents']=_0x2fba8f;const _0x5b6c0a=this[_0x188b1c(0x1e9)][_0x188b1c(0x237)](_univerjs_docs_ui[_0x188b1c(0x1ed)]);_0x5b6c0a[_0x188b1c(0x24e)][_0x188b1c(0x22b)](_0x5b6c0a[_0x188b1c(0x24e)][_0x188b1c(0x238)]()[_0x188b1c(0x1ce)])(void 0x0,{'unitId':this[_0x188b1c(0x1c3)],'scene':this[_0x188b1c(0x1b3)],'engine':this[_0x188b1c(0x235)],'root':this[_0x188b1c(0x214)],'documents':this[_0x188b1c(0x244)],'skeleton':this[_0x188b1c(0x210)]});}['_addViewport'](){const _0x3c3bc1=_0x2b3765;this[_0x3c3bc1(0x217)]=new _univerjs_engine_render['Viewport'](_univerjs_docs_ui[_0x3c3bc1(0x241)][_0x3c3bc1(0x1c0)],this[_0x3c3bc1(0x1b3)],{'explicitViewportWidthSet':!![],'explicitViewportHeightSet':!![]});}['prepare'](){const _0x2b3aff=_0x2b3765,_0x4f803b=this[_0x2b3aff(0x23a)]();this[_0x2b3aff(0x217)]['updateScrollVal']({'viewportScrollX':_0x4f803b[_0x2b3aff(0x1c6)],'viewportScrollY':_0x4f803b[_0x2b3aff(0x221)]}),this[_0x2b3aff(0x214)][_0x2b3aff(0x1f1)][_0x2b3aff(0x213)]=_0x2b3aff(0x1c8),this[_0x2b3aff(0x214)][_0x2b3aff(0x1f1)][_0x2b3aff(0x221)]=_0x2b3aff(0x1d8),this[_0x2b3aff(0x214)][_0x2b3aff(0x1f1)][_0x2b3aff(0x1c6)]='0px',this['_root'][_0x2b3aff(0x1f1)]['width']=_0x2b3aff(0x22c),this[_0x2b3aff(0x214)][_0x2b3aff(0x1f1)][_0x2b3aff(0x255)]=_0x2b3aff(0x22c),this[_0x2b3aff(0x22a)]=new _univerjs_core[(_0x2b3aff(0x224))]();const _0x2f7966=this[_0x2b3aff(0x1e9)][_0x2b3aff(0x237)](_univerjs_docs_ui[_0x2b3aff(0x1ed)]);_0x2f7966['interceptor'][_0x2b3aff(0x22b)](_0x2f7966[_0x2b3aff(0x24e)][_0x2b3aff(0x238)]()[_0x2b3aff(0x219)])(this['_effects'],{'unitId':this[_0x2b3aff(0x1c3)],'scene':this[_0x2b3aff(0x1b3)],'engine':this[_0x2b3aff(0x235)],'root':this['_root'],'skeleton':this[_0x2b3aff(0x210)],'offset':{'x':_0x4f803b[_0x2b3aff(0x1c6)],'y':_0x4f803b[_0x2b3aff(0x221)]},'bound':{'top':_0x4f803b[_0x2b3aff(0x221)],'left':_0x4f803b['left'],'right':_0x4f803b['right'],'bottom':_0x4f803b['bottom']}});}[_0x2b3765(0x1c4)](){const _0x119e66=_0x2b3765,_0x57a8ec=this[_0x119e66(0x235)][_0x119e66(0x212)]()[_0x119e66(0x218)]();this[_0x119e66(0x244)][_0x119e66(0x1bd)](),this['_scene']['makeDirty'](),_0x57a8ec[_0x119e66(0x1a5)](),this[_0x119e66(0x1b3)]['render'](),_0x57a8ec[_0x119e66(0x1a8)]();}};function __decorateParam(_0x153348,_0x3deb1b){return function(_0x68b440,_0x1fde05){_0x3deb1b(_0x68b440,_0x1fde05,_0x153348);};}function __decorate(_0x4c0614,_0x5b9b69,_0x1645e2,_0x5443c3){const _0x36c960=_0x2b3765;var _0x44d598=arguments[_0x36c960(0x251)],_0x7a9062=_0x44d598<0x3?_0x5b9b69:_0x5443c3===null?_0x5443c3=Object[_0x36c960(0x1e8)](_0x5b9b69,_0x1645e2):_0x5443c3,_0x1f7a60;if(typeof Reflect==='object'&&typeof Reflect[_0x36c960(0x1c2)]==='function')_0x7a9062=Reflect[_0x36c960(0x1c2)](_0x4c0614,_0x5b9b69,_0x1645e2,_0x5443c3);else{for(var _0x2e4cca=_0x4c0614[_0x36c960(0x251)]-0x1;_0x2e4cca>=0x0;_0x2e4cca--)if(_0x1f7a60=_0x4c0614[_0x2e4cca])_0x7a9062=(_0x44d598<0x3?_0x1f7a60(_0x7a9062):_0x44d598>0x3?_0x1f7a60(_0x5b9b69,_0x1645e2,_0x7a9062):_0x1f7a60(_0x5b9b69,_0x1645e2))||_0x7a9062;}return _0x44d598>0x3&&_0x7a9062&&Object[_0x36c960(0x21d)](_0x5b9b69,_0x1645e2,_0x7a9062),_0x7a9062;}const BUILD_TIMESTAMP=Number[_0x2b3765(0x1f7)](0x69ec6f48),DEFAULT_PRINT_LIMIT=0x1,getPrintInfoByLicense=(_0x37a084,_0x241857,_0x1ab5f7)=>{const _0x167833=_0x2b3765,_0x119e6d={'page':_0x37a084,'isPro':![],'timeValid':![]};if(!_0x241857||!_0x1ab5f7)return _0x119e6d;const _0xc50ff8=(0x0,_univerjs_pro_license['getLicenseInfo'])(_0x241857,_0x1ab5f7);if(_0xc50ff8[_0x167833(0x1a9)]){const _0x10e6d3=_0xc50ff8[_0x167833(0x1ee)],_0x4bfba7=(0x0,_univerjs_pro_license[_0x167833(0x1f8)])(_0x10e6d3,'df',BUILD_TIMESTAMP);_0x119e6d['isPro']=_0x4bfba7,_0x119e6d[_0x167833(0x209)]=_0x4bfba7,_0x119e6d[_0x167833(0x1fc)]=(0x0,_univerjs_pro_license[_0x167833(0x1fe)])(_0x10e6d3,_0x4bfba7,_0x167833(0x203),_0x37a084,_0x37a084,0x0);}return _0x119e6d;};let DocPrintService=class DocPrintService extends _univerjs_core[_0x2b3765(0x1b8)]{constructor(_0x4f4442,_0x489611,_0x158e8f,_0x4a8768,_0x3c7555){const _0x5c4729=_0x2b3765;super(),this[_0x5c4729(0x21c)]=_0x4f4442,this[_0x5c4729(0x1db)]=_0x489611,this[_0x5c4729(0x1e9)]=_0x158e8f,this[_0x5c4729(0x1bb)]=_0x4a8768,this[_0x5c4729(0x1d4)]=_0x3c7555;}[_0x2b3765(0x228)](_0x1c51cb){const _0x4678fd=_0x2b3765;var _0x79c85f,_0x4f6abf;const {ls:_0x3e8bbc,pbk:_0x500008}=(_0x79c85f=this[_0x4678fd(0x1bb)][_0x4678fd(0x236)](_univerjs_pro_license[_0x4678fd(0x1af)]))!==null&&_0x79c85f!==void 0x0?_0x79c85f:{},_0x52b79f=(0x0,_univerjs_pro_license['isLocalCheck'])()?Number['POSITIVE_INFINITY']:getPrintInfoByLicense(0x1,_0x3e8bbc,_0x500008)[_0x4678fd(0x1fc)];if(!this[_0x4678fd(0x21c)][_0x4678fd(0x24c)](_0x1c51cb,_univerjs_core[_0x4678fd(0x1e5)][_0x4678fd(0x1c5)]))throw new Error(_0x4678fd(0x1be));const _0x1c3654=this[_0x4678fd(0x1db)][_0x4678fd(0x208)](_0x1c51cb);if(!_0x1c3654)throw new Error(_0x4678fd(0x202));const _0x1c6225=(_0x4f6abf=_0x1c3654[_0x4678fd(0x1fb)](_univerjs_docs[_0x4678fd(0x1cf)])[_0x4678fd(0x1ff)]()[_0x4678fd(0x21f)]())===null||_0x4f6abf===void 0x0?void 0x0:_0x4f6abf[_0x4678fd(0x1f5)];if(!_0x1c6225)throw new Error('Pages\x20are\x20not\x20found');const _0x1be327={'width':_0x1c6225[0x0][_0x4678fd(0x21a)],'height':_0x1c6225[0x0][_0x4678fd(0x205)]},_0xaea457=_0x1c6225[_0x4678fd(0x251)],_0x22807f=Math[_0x4678fd(0x1cb)](_0x52b79f,_0xaea457),_0xc0ef77=_0x1c3654['mainComponent'][_0x4678fd(0x22e)](),_0x88e533=document[_0x4678fd(0x24f)]('div');_0x88e533[_0x4678fd(0x232)]=_univerjs_pro_print['PRINT_CONTAINER_CLASS'];const _0x4b5242=new Array(_0x22807f)[_0x4678fd(0x1ad)](null)[_0x4678fd(0x1d5)]((_0x5c3c24,_0x169702)=>{const _0x2fcb59=_0x4678fd,_0x10b2a0=new DocPrintPageCanvasView(this['_injector'],_0x169702,_0x1c51cb,_0xc0ef77);return _0x10b2a0[_0x2fcb59(0x1de)][_0x2fcb59(0x232)]=_univerjs_pro_print[_0x2fcb59(0x1fa)],_0x10b2a0;});_0x4b5242['forEach'](_0x481e81=>{const _0x1e1ee1=_0x4678fd;_0x88e533[_0x1e1ee1(0x1cd)](_0x481e81[_0x1e1ee1(0x1de)]),_0x481e81[_0x1e1ee1(0x1de)][_0x1e1ee1(0x1cd)](_0x481e81[_0x1e1ee1(0x206)]),_0x481e81[_0x1e1ee1(0x21e)]();});const _0x3bb643=(0x0,_univerjs_pro_print['createPrintStyle'])(_0x1be327['width'],_0x1be327['height'],_univerjs_pro_print[_0x4678fd(0x222)][_0x4678fd(0x1d1)]);return document[_0x4678fd(0x23c)][_0x4678fd(0x1cd)](_0x3bb643),document[_0x4678fd(0x23c)]['appendChild'](_0x88e533),new Promise(_0x3b8ccd=>{setTimeout(()=>{const _0x1314ce=_0x37dc;window[_0x1314ce(0x1c1)]=()=>{const _0xfcd898=_0x1314ce;_0x4b5242[_0xfcd898(0x1b9)](_0x3adf42=>{const _0x13ad11=_0xfcd898;_0x3adf42[_0x13ad11(0x1c4)]();});},window[_0x1314ce(0x1f0)]=()=>{const _0x344f06=_0x1314ce;_0x4b5242[_0x344f06(0x1b9)](_0x3073c1=>{const _0x3ab0dd=_0x344f06;_0x3073c1[_0x3ab0dd(0x22d)]();}),document[_0x344f06(0x23c)][_0x344f06(0x1d2)](_0x88e533),document[_0x344f06(0x23c)][_0x344f06(0x1d2)](_0x3bb643),this['_globalZoneService'][_0x344f06(0x216)](),_0x3b8ccd(!![]);},window[_0x1314ce(0x228)]();},0x64);});}};function _0x246f(){const _0x11bc23=['top','PrintDirection','ComponentManager','DisposableCollection','IRenderManagerService','version','_paperSize','print','toPrimitive','_effects','fetchThroughInterceptors','100%','dispose','getOffsetConfig','UNIVER_DOCS_PRINT','Injector','Skeleton\x20data\x20is\x20not\x20found','className','scale','PrintIcon','_engine','getConfig','get','getInterceptPoints','_config','_calculateLayout','OPERATION','body','documentFlavor','registerDependencies','ICommandService','BUTTON','VIEWPORT_KEY','getCurrentUnitOfType','type','_documents','UniverLicensePlugin','_initRenderer','disposeWithMe','function','115bJolYu','DependentOn','translate','getUnit','mergeMenu','interceptor','createElement','Plugin','length','_initMenus','_key','SwitchDocModeCommand','height','UniverDocsPrintPlugin','save','iterator','div','restore','valid','558kzWLHh','_container','syncExecuteCommand','fill','_currentRender','LS_CONFIG_KEY','OTHERS','_componentManager','getDocumentStyle','_scene','constructor','DocPrintOperation','RibbonStartGroup','_addComponent','Disposable','forEach','1146221SuypKs','_configService','IUniverInstanceService','makeForceDirty','DocumentDataModel\x20is\x20not\x20found','call','VIEW_MAIN','onbeforeprint','decorate','_unitId','render','UNIVER_DOC','left','@univerjs-pro/docs-print','absolute','73810ubCkJL','_skeletonData','min','0.21.1','appendChild','PRINTING_COMPONENT_COLLECT','DocSkeletonManagerService','__DocPrintRender__','Portrait','removeChild','7281760mQUVQT','_globalZoneService','map','CommandType','Documents','0px','_initComponents','setConfig','_renderManagerService','_offsetConfig','addObject','container','default','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','15414rZtdMG','generateRandomId','getMenuHiddenObservable','DOCS_PRINT_PLUGIN_CONFIG_KEY','UniverInstanceType','CanvasRenderMode','TRADITIONAL','getOwnPropertyDescriptor','_injector','docs.operation.print','_page','menu','DocPrintInterceptorService','message','4449720rCbvaN','onafterprint','style','IConfigService','merge','UniverNetworkPlugin','pages','object','parseInt','isFeatureAuthorizedWithinTime','IGlobalZoneService','PRINT_CANVAS_CLASS','with','page','_initCommands','getDocFeatureLimit','getSkeleton','10233391XTMWte','532GRbTPw','Render\x20is\x20not\x20found','mpn','packageName','pageHeight','root','Scene','getRenderById','timeValid','Inject','setContainer','print.menu','47202XMiSLG','symbol','width','_skeleton','_addViewport','getCanvas','position','_root','getUnitId','close','_viewMain','getContext','PRINTING_DOM_COLLECT','pageWidth','DocumentFlavor','_univerInstanceService','defineProperty','prepare','getSkeletonData','register'];_0x246f=function(){return _0x11bc23;};return _0x246f();}DocPrintService=__decorate([__decorateParam(0x0,_univerjs_core['IUniverInstanceService']),__decorateParam(0x1,_univerjs_engine_render['IRenderManagerService']),__decorateParam(0x2,(0x0,_univerjs_core[_0x2b3765(0x20a)])(_univerjs_core[_0x2b3765(0x230)])),__decorateParam(0x3,_univerjs_core[_0x2b3765(0x1f2)]),__decorateParam(0x4,_univerjs_ui[_0x2b3765(0x1f9)])],DocPrintService);const DocPrintOperation={'id':_0x2b3765(0x1ea),'type':_univerjs_core[_0x2b3765(0x1d6)][_0x2b3765(0x23b)],'handler':async _0x3400ab=>{const _0x53451c=_0x2b3765,_0x1bcef5=_0x3400ab[_0x53451c(0x237)](_univerjs_core[_0x53451c(0x1bc)]),_0x370d0e=_0x3400ab['get'](DocPrintService),_0x5a53ec=_0x3400ab['get'](_univerjs_engine_render[_0x53451c(0x225)]),_0x1ac306=_0x3400ab['get'](_univerjs_core[_0x53451c(0x23f)]),_0x31a194=_0x1bcef5[_0x53451c(0x242)](_univerjs_core[_0x53451c(0x1e5)][_0x53451c(0x1c5)]);if(!_0x31a194)return![];if(!_0x5a53ec[_0x53451c(0x208)](_0x31a194['getUnitId']()))throw new Error(_0x53451c(0x202));const _0x4a5cc3=_0x31a194[_0x53451c(0x1b2)]()[_0x53451c(0x23d)];if(_0x4a5cc3!==_univerjs_core['DocumentFlavor'][_0x53451c(0x1e7)])_0x1ac306[_0x53451c(0x1ac)](_univerjs_docs_ui[_0x53451c(0x254)]['id']);await _0x370d0e[_0x53451c(0x228)](_0x31a194[_0x53451c(0x215)]());if(_0x4a5cc3!==_univerjs_core[_0x53451c(0x21b)][_0x53451c(0x1e7)])_0x1ac306[_0x53451c(0x1ac)](_univerjs_docs_ui[_0x53451c(0x254)]['id']);return!![];}},DOCS_PRINT_PLUGIN_CONFIG_KEY=_0x2b3765(0x22f),defaultPluginConfig={};var name=_0x2b3765(0x1c7),version=_0x2b3765(0x1cc);const DOCS_PRINT_PLUGIN_NAME=_0x2b3765(0x22f);function DocPrintMenuItemFactory(_0x5d0323){const _0xf5fd90=_0x2b3765;return{'id':DocPrintOperation['id'],'type':_univerjs_ui['MenuItemType'][_0xf5fd90(0x240)],'title':_0xf5fd90(0x20c),'icon':'PrintIcon','tooltip':_0xf5fd90(0x20c),'hidden$':(0x0,_univerjs_ui[_0xf5fd90(0x1e3)])(_0x5d0323,_univerjs_core['UniverInstanceType']['UNIVER_DOC'])};}const menuSchema={[_univerjs_ui[_0x2b3765(0x1b6)][_0x2b3765(0x1b0)]]:{[DocPrintOperation['id']]:{'order':0.1,'menuItemFactory':DocPrintMenuItemFactory}}};let DocsPrintUIController=class DocsPrintUIController extends _univerjs_core[_0x2b3765(0x1b8)]{constructor(_0x462d0a,_0x35c5b2,_0x10ccce){const _0x4fc197=_0x2b3765;super(),this['_commandService']=_0x462d0a,this['_menuManagerService']=_0x35c5b2,this[_0x4fc197(0x1b1)]=_0x10ccce,this[_0x4fc197(0x252)](),this[_0x4fc197(0x1fd)](),this[_0x4fc197(0x1d9)]();}['_initMenus'](){const _0x2d58af=_0x2b3765;this['_menuManagerService'][_0x2d58af(0x24d)](menuSchema);}[_0x2b3765(0x1fd)](){const _0x1f0fb9=_0x2b3765;this[_0x1f0fb9(0x247)](this['_commandService']['registerCommand'](DocPrintOperation));}['_initComponents'](){const _0x31c73a=_0x2b3765;[[_0x31c73a(0x234),_univerjs_icons['PrintIcon']]][_0x31c73a(0x1b9)](([_0x3b1a0f,_0x31c78d])=>{const _0x5b294c=_0x31c73a;this['_componentManager'][_0x5b294c(0x220)](_0x3b1a0f,_0x31c78d);});}};DocsPrintUIController=__decorate([__decorateParam(0x0,_univerjs_core[_0x2b3765(0x23f)]),__decorateParam(0x1,_univerjs_ui['IMenuManagerService']),__decorateParam(0x2,(0x0,_univerjs_core[_0x2b3765(0x20a)])(_univerjs_ui[_0x2b3765(0x223)]))],DocsPrintUIController);let UniverDocsPrintPlugin=class UniverDocsPrintPlugin extends _univerjs_core[_0x2b3765(0x250)]{constructor(_0x57f3dc=defaultPluginConfig,_0x31d52d,_0x509346){const _0x3e897d=_0x2b3765;super(),this[_0x3e897d(0x239)]=_0x57f3dc,this[_0x3e897d(0x1e9)]=_0x31d52d,this['_configService']=_0x509346;const {menu:_0x2b8a34,..._0x53dc2c}=(0x0,_univerjs_core[_0x3e897d(0x1f3)])({},defaultPluginConfig,this['_config']);if(_0x2b8a34)this[_0x3e897d(0x1bb)]['setConfig'](_0x3e897d(0x1ec),_0x2b8a34,{'merge':!![]});this[_0x3e897d(0x1bb)][_0x3e897d(0x1da)](DOCS_PRINT_PLUGIN_CONFIG_KEY,_0x53dc2c);}['onStarting'](){const _0x82cece=_0x2b3765;(0x0,_univerjs_core[_0x82cece(0x23e)])(this['_injector'],[[DocPrintService],[DocsPrintUIController]]);}['onReady'](){const _0x47ea9d=_0x2b3765;this[_0x47ea9d(0x1e9)]['get'](DocsPrintUIController);}};_defineProperty(UniverDocsPrintPlugin,'pluginName',DOCS_PRINT_PLUGIN_NAME),_defineProperty(UniverDocsPrintPlugin,_0x2b3765(0x204),name),_defineProperty(UniverDocsPrintPlugin,_0x2b3765(0x226),version),_defineProperty(UniverDocsPrintPlugin,_0x2b3765(0x243),_univerjs_core[_0x2b3765(0x1e5)]['UNIVER_DOC']),UniverDocsPrintPlugin=__decorate([(0x0,_univerjs_core[_0x2b3765(0x24a)])(_univerjs_network[_0x2b3765(0x1f4)],_univerjs_pro_license[_0x2b3765(0x245)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x2b3765(0x20a)])(_univerjs_core[_0x2b3765(0x230)])),__decorateParam(0x2,_univerjs_core[_0x2b3765(0x1f2)])],UniverDocsPrintPlugin),exports[_0x2b3765(0x1e4)]=DOCS_PRINT_PLUGIN_CONFIG_KEY,exports[_0x2b3765(0x1b5)]=DocPrintOperation,Object[_0x2b3765(0x21d)](exports,_0x2b3765(0x256),{'enumerable':!![],'get':function(){return UniverDocsPrintPlugin;}});
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x30e05c,_0xe82348){const _0x593a7d=_0x11eb,_0x23f7fd=_0x30e05c();while(!![]){try{const _0x125789=-parseInt(_0x593a7d(0xfd))/0x1*(-parseInt(_0x593a7d(0xf9))/0x2)+parseInt(_0x593a7d(0xf7))/0x3+-parseInt(_0x593a7d(0xff))/0x4+parseInt(_0x593a7d(0xfe))/0x5*(parseInt(_0x593a7d(0xf8))/0x6)+parseInt(_0x593a7d(0xf6))/0x7*(-parseInt(_0x593a7d(0xfb))/0x8)+parseInt(_0x593a7d(0xfa))/0x9+parseInt(_0x593a7d(0xfc))/0xa*(-parseInt(_0x593a7d(0x100))/0xb);if(_0x125789===_0xe82348)break;else _0x23f7fd['push'](_0x23f7fd['shift']());}catch(_0x29b3e8){_0x23f7fd['push'](_0x23f7fd['shift']());}}}(_0x542e,0x76d90));function _0x11eb(_0x35cd82,_0x104e61){_0x35cd82=_0x35cd82-0xf6;const _0x542ef2=_0x542e();let _0x11eb72=_0x542ef2[_0x35cd82];return _0x11eb72;}function _0x542e(){const _0x322fb9=['319xgkuWA','1981PQzwhI','1308642wbOFnP','5076LkEENo','2WumPFq','7092621ZLDgse','3032OLffrc','507750RPfNzd','564781nDVJeU','3640yRaDZf','1353680ylrTGs'];_0x542e=function(){return _0x322fb9;};return _0x542e();}const locale$1={'print':{'menu':'Print'}},locale=locale$1;module['exports']=locale;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x5662(){const _0x138165=['73998XEiLyC','664226qjEsaK','118977SZdqZJ','332724gbyAed','5FVOSlV','63hRRVYa','16uYybXC','1467456sCLfsj','Print','exports','318690JUPzsz','645323XZEqfu'];_0x5662=function(){return _0x138165;};return _0x5662();}const _0x122095=_0xff04;(function(_0x517156,_0x3bdcb3){const _0x3c2435=_0xff04,_0x37e461=_0x517156();while(!![]){try{const _0x34a94e=-parseInt(_0x3c2435(0xe0))/0x1+parseInt(_0x3c2435(0xde))/0x2+parseInt(_0x3c2435(0xdf))/0x3*(-parseInt(_0x3c2435(0xd7))/0x4)+-parseInt(_0x3c2435(0xe1))/0x5*(-parseInt(_0x3c2435(0xdd))/0x6)+-parseInt(_0x3c2435(0xdc))/0x7+parseInt(_0x3c2435(0xd8))/0x8+parseInt(_0x3c2435(0xe2))/0x9*(parseInt(_0x3c2435(0xdb))/0xa);if(_0x34a94e===_0x3bdcb3)break;else _0x37e461['push'](_0x37e461['shift']());}catch(_0x9349ae){_0x37e461['push'](_0x37e461['shift']());}}}(_0x5662,0x28df4));const locale={'print':{'menu':_0x122095(0xd9)}};function _0xff04(_0x15d710,_0x180f72){_0x15d710=_0x15d710-0xd7;const _0x56621f=_0x5662();let _0xff04f6=_0x56621f[_0x15d710];return _0xff04f6;}module[_0x122095(0xda)]=locale;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x5893dd=_0x1309;function _0x1309(_0x322d6e,_0x40df3d){_0x322d6e=_0x322d6e-0x11c;const _0x36a4df=_0x36a4();let _0x130998=_0x36a4df[_0x322d6e];return _0x130998;}(function(_0x42813a,_0x83b97a){const _0xe7669f=_0x1309,_0x1dd200=_0x42813a();while(!![]){try{const _0xd7b9e2=-parseInt(_0xe7669f(0x127))/0x1+parseInt(_0xe7669f(0x121))/0x2*(-parseInt(_0xe7669f(0x123))/0x3)+-parseInt(_0xe7669f(0x126))/0x4+-parseInt(_0xe7669f(0x122))/0x5+parseInt(_0xe7669f(0x11e))/0x6+parseInt(_0xe7669f(0x125))/0x7*(-parseInt(_0xe7669f(0x11c))/0x8)+-parseInt(_0xe7669f(0x120))/0x9*(-parseInt(_0xe7669f(0x11f))/0xa);if(_0xd7b9e2===_0x83b97a)break;else _0x1dd200['push'](_0x1dd200['shift']());}catch(_0x3ca960){_0x1dd200['push'](_0x1dd200['shift']());}}}(_0x36a4,0x9a27f));const locale$1={'print':{'menu':_0x5893dd(0x11d)}},locale=locale$1;function _0x36a4(){const _0x33c0a0=['exports','301yIzKfi','4806264UxjdRr','1191122rlsZUc','12856rVMmKk','Print','653136cdEwth','33320980xMRJOm','9xDriQW','2mIDPFA','1479095wWOQTu','155769lewhLi'];_0x36a4=function(){return _0x33c0a0;};return _0x36a4();}module[_0x5893dd(0x124)]=locale;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x14b8(_0x254f5d,_0x3243a0){_0x254f5d=_0x254f5d-0x107;const _0x177df5=_0x177d();let _0x14b8b4=_0x177df5[_0x254f5d];return _0x14b8b4;}const _0x5e0c78=_0x14b8;function _0x177d(){const _0x4c20a7=['1040NHHRSM','2091ZtRyRe','1318NynwFU','207289wchDFC','exports','6108204HqSzir','21040fBcTMW','چاپ','1660077xmxvsc','4649610GQQjoE','8VCBEGe','3441470bLEOkg'];_0x177d=function(){return _0x4c20a7;};return _0x177d();}(function(_0x5c259e,_0x3bc6de){const _0x42b48a=_0x14b8,_0x446495=_0x5c259e();while(!![]){try{const _0x3cb44f=-parseInt(_0x42b48a(0x10d))/0x1+parseInt(_0x42b48a(0x10c))/0x2*(-parseInt(_0x42b48a(0x10b))/0x3)+parseInt(_0x42b48a(0x10a))/0x4*(parseInt(_0x42b48a(0x110))/0x5)+parseInt(_0x42b48a(0x10f))/0x6+-parseInt(_0x42b48a(0x107))/0x7+-parseInt(_0x42b48a(0x108))/0x8*(parseInt(_0x42b48a(0x112))/0x9)+parseInt(_0x42b48a(0x109))/0xa;if(_0x3cb44f===_0x3bc6de)break;else _0x446495['push'](_0x446495['shift']());}catch(_0x8c21d){_0x446495['push'](_0x446495['shift']());}}}(_0x177d,0xe5ba6));const locale={'print':{'menu':_0x5e0c78(0x111)}};module[_0x5e0c78(0x10e)]=locale;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0xead2cf=_0x2079;(function(_0xe8d208,_0xb21325){const _0x96a2a2=_0x2079,_0x548250=_0xe8d208();while(!![]){try{const _0x3d2046=parseInt(_0x96a2a2(0x1b4))/0x1*(parseInt(_0x96a2a2(0x1ab))/0x2)+-parseInt(_0x96a2a2(0x1b5))/0x3*(-parseInt(_0x96a2a2(0x1ae))/0x4)+parseInt(_0x96a2a2(0x1ad))/0x5+-parseInt(_0x96a2a2(0x1af))/0x6*(-parseInt(_0x96a2a2(0x1b1))/0x7)+parseInt(_0x96a2a2(0x1b0))/0x8+parseInt(_0x96a2a2(0x1b2))/0x9+-parseInt(_0x96a2a2(0x1b3))/0xa;if(_0x3d2046===_0xb21325)break;else _0x548250['push'](_0x548250['shift']());}catch(_0x40bb7e){_0x548250['push'](_0x548250['shift']());}}}(_0x17cb,0x4cf08));const locale={'print':{'menu':_0xead2cf(0x1aa)}};function _0x2079(_0x96ebb8,_0x4ecf00){_0x96ebb8=_0x96ebb8-0x1aa;const _0x17cb82=_0x17cb();let _0x20793f=_0x17cb82[_0x96ebb8];return _0x20793f;}module[_0xead2cf(0x1ac)]=locale;function _0x17cb(){const _0x19edd3=['4960224oReEeR','7VBYOMw','1896678JQTrkE','15619600ovVWRh','1FSjEop','114ayzizI','Imprimer','379124lslaPY','exports','1697210tdwEcy','9464AkJgry','2564532NuFOIj'];_0x17cb=function(){return _0x19edd3;};return _0x17cb();}
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x50f8(){const _0x6189e2=['106422aebgjZ','826384QFRdmf','33fYuDbP','2111487ibuwjn','4923325mggDdk','2617780dgReAe','5028696UOwNTA','3348882ChnYWf','8rZVJRU'];_0x50f8=function(){return _0x6189e2;};return _0x50f8();}(function(_0x309b64,_0xf20519){const _0x333c5a=_0x25a9,_0x56e2c6=_0x309b64();while(!![]){try{const _0x45ba1a=-parseInt(_0x333c5a(0x1f7))/0x1+parseInt(_0x333c5a(0x1f6))/0x2*(parseInt(_0x333c5a(0x1f8))/0x3)+parseInt(_0x333c5a(0x1f2))/0x4+parseInt(_0x333c5a(0x1fa))/0x5+-parseInt(_0x333c5a(0x1f4))/0x6+-parseInt(_0x333c5a(0x1f9))/0x7*(-parseInt(_0x333c5a(0x1f5))/0x8)+-parseInt(_0x333c5a(0x1f3))/0x9;if(_0x45ba1a===_0xf20519)break;else _0x56e2c6['push'](_0x56e2c6['shift']());}catch(_0x2851fa){_0x56e2c6['push'](_0x56e2c6['shift']());}}}(_0x50f8,0x8e48d));const locale={'print':{'menu':'印刷'}};function _0x25a9(_0x3a31b3,_0x2fd5d5){_0x3a31b3=_0x3a31b3-0x1f2;const _0x50f803=_0x50f8();let _0x25a9f4=_0x50f803[_0x3a31b3];return _0x25a9f4;}module['exports']=locale;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x4f4c(){const _0x41beba=['5183394vBIGmm','1101iKCglr','5hZckHd','exports','8306793WsdiZp','10221160iSfvqD','2223128SmdgaL','421533rTIXSe','54978QxJnfX','128toyyCW','4434WoRXlj'];_0x4f4c=function(){return _0x41beba;};return _0x4f4c();}function _0x49b7(_0x14e48c,_0x3bd942){_0x14e48c=_0x14e48c-0x70;const _0x4f4cf8=_0x4f4c();let _0x49b7fc=_0x4f4cf8[_0x14e48c];return _0x49b7fc;}const _0x263a71=_0x49b7;(function(_0x342576,_0x5389a9){const _0x14e090=_0x49b7,_0x513318=_0x342576();while(!![]){try{const _0x57158e=parseInt(_0x14e090(0x71))/0x1+parseInt(_0x14e090(0x73))/0x2*(-parseInt(_0x14e090(0x75))/0x3)+-parseInt(_0x14e090(0x7a))/0x4+-parseInt(_0x14e090(0x76))/0x5*(-parseInt(_0x14e090(0x74))/0x6)+parseInt(_0x14e090(0x70))/0x7*(-parseInt(_0x14e090(0x72))/0x8)+parseInt(_0x14e090(0x78))/0x9+parseInt(_0x14e090(0x79))/0xa;if(_0x57158e===_0x5389a9)break;else _0x513318['push'](_0x513318['shift']());}catch(_0x2068d5){_0x513318['push'](_0x513318['shift']());}}}(_0x4f4c,0x81a65));const locale={'print':{'menu':'인쇄'}};module[_0x263a71(0x77)]=locale;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x229c80=_0x4642;function _0x2b01(){const _0x23d8e7=['1889478ngWyyz','954528HyojeE','310otmvDR','5220378zcdrBB','4lWiURk','9577225ajejxK','25HlaAvc','Печать','6550YKrTuG','34533310qGUTNq','exports','136443RqMFfM'];_0x2b01=function(){return _0x23d8e7;};return _0x2b01();}(function(_0x322016,_0x4dbfe5){const _0x4d041a=_0x4642,_0x32bdb9=_0x322016();while(!![]){try{const _0x2e8a1c=-parseInt(_0x4d041a(0x17b))/0x1*(-parseInt(_0x4d041a(0x181))/0x2)+-parseInt(_0x4d041a(0x178))/0x3*(-parseInt(_0x4d041a(0x17d))/0x4)+parseInt(_0x4d041a(0x17f))/0x5*(-parseInt(_0x4d041a(0x179))/0x6)+-parseInt(_0x4d041a(0x17e))/0x7+-parseInt(_0x4d041a(0x17a))/0x8+-parseInt(_0x4d041a(0x17c))/0x9+parseInt(_0x4d041a(0x182))/0xa;if(_0x2e8a1c===_0x4dbfe5)break;else _0x32bdb9['push'](_0x32bdb9['shift']());}catch(_0x4320c8){_0x32bdb9['push'](_0x32bdb9['shift']());}}}(_0x2b01,0xd4e1c));function _0x4642(_0x2dc95a,_0x3380be){_0x2dc95a=_0x2dc95a-0x177;const _0x2b0189=_0x2b01();let _0x464212=_0x2b0189[_0x2dc95a];return _0x464212;}const locale={'print':{'menu':_0x229c80(0x180)}};module[_0x229c80(0x177)]=locale;
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x51e648=_0x119c;(function(_0x5529fe,_0x46e2b0){const _0x210588=_0x119c,_0x156e1e=_0x5529fe();while(!![]){try{const _0x21659a=-parseInt(_0x210588(0xa4))/0x1+parseInt(_0x210588(0xa5))/0x2+-parseInt(_0x210588(0xa9))/0x3+-parseInt(_0x210588(0xa6))/0x4*(parseInt(_0x210588(0x9f))/0x5)+parseInt(_0x210588(0xa1))/0x6*(parseInt(_0x210588(0xa7))/0x7)+parseInt(_0x210588(0xa8))/0x8+-parseInt(_0x210588(0xa3))/0x9*(-parseInt(_0x210588(0xa2))/0xa);if(_0x21659a===_0x46e2b0)break;else _0x156e1e['push'](_0x156e1e['shift']());}catch(_0x46c66a){_0x156e1e['push'](_0x156e1e['shift']());}}}(_0x203c,0x2f6a1));function _0x119c(_0x1eb3e2,_0x15e2c9){_0x1eb3e2=_0x1eb3e2-0x9f;const _0x203cae=_0x203c();let _0x119c7b=_0x203cae[_0x1eb3e2];return _0x119c7b;}const locale={'print':{'menu':_0x51e648(0xa0)}};function _0x203c(){const _0xda1eca=['324776bNBZpB','16RZvZmD','33894ymiPPh','301856YASBmu','510369CBtjdo','178510KOMHRe','Tlač','150IHItOJ','1220PIbsMA','38313NjlYrZ','333384egguvg'];_0x203c=function(){return _0xda1eca;};return _0x203c();}module['exports']=locale;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3cc8(_0x3e2a5b,_0x4bb142){_0x3e2a5b=_0x3e2a5b-0x15a;const _0xc396eb=_0xc396();let _0x3cc87f=_0xc396eb[_0x3e2a5b];return _0x3cc87f;}(function(_0xe6077,_0x2c5424){const _0x459c7b=_0x3cc8,_0x3c461b=_0xe6077();while(!![]){try{const _0xa82885=parseInt(_0x459c7b(0x15f))/0x1+-parseInt(_0x459c7b(0x15c))/0x2*(parseInt(_0x459c7b(0x161))/0x3)+-parseInt(_0x459c7b(0x15a))/0x4*(parseInt(_0x459c7b(0x164))/0x5)+parseInt(_0x459c7b(0x163))/0x6*(-parseInt(_0x459c7b(0x160))/0x7)+parseInt(_0x459c7b(0x15d))/0x8+parseInt(_0x459c7b(0x15e))/0x9+-parseInt(_0x459c7b(0x15b))/0xa*(-parseInt(_0x459c7b(0x162))/0xb);if(_0xa82885===_0x2c5424)break;else _0x3c461b['push'](_0x3c461b['shift']());}catch(_0x30b99d){_0x3c461b['push'](_0x3c461b['shift']());}}}(_0xc396,0x7c1e4));const locale={'print':{'menu':'In'}};function _0xc396(){const _0x4d5324=['6610576OkajTg','7481835VgsOYt','721037BAgoSa','7fVAUOs','300jUHFkj','22mWRiso','4256034QJIVfK','3582925Nbclyi','4KyCnJo','2743690KQwslS','19862IvVbOs'];_0xc396=function(){return _0x4d5324;};return _0xc396();}module['exports']=locale;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1d1504=_0x3a7b;(function(_0x16be6a,_0x2f7c84){const _0x3e51fb=_0x3a7b,_0x1111fc=_0x16be6a();while(!![]){try{const _0x3dc8d4=-parseInt(_0x3e51fb(0xa1))/0x1+parseInt(_0x3e51fb(0xa2))/0x2+-parseInt(_0x3e51fb(0x9f))/0x3*(-parseInt(_0x3e51fb(0xa5))/0x4)+-parseInt(_0x3e51fb(0xa8))/0x5*(-parseInt(_0x3e51fb(0xa9))/0x6)+-parseInt(_0x3e51fb(0xa0))/0x7+-parseInt(_0x3e51fb(0xa7))/0x8+-parseInt(_0x3e51fb(0xa4))/0x9*(-parseInt(_0x3e51fb(0xa6))/0xa);if(_0x3dc8d4===_0x2f7c84)break;else _0x1111fc['push'](_0x1111fc['shift']());}catch(_0x2a0e7f){_0x1111fc['push'](_0x1111fc['shift']());}}}(_0x275b,0x248fa));function _0x275b(){const _0x357901=['676254mDTdYp','896350pSPPPm','70817kEniYr','152732IGvPKF','exports','9oUxAZA','4yBqVqG','1336150PwRfni','1218056JNXlBX','327395bolGvP','6Bgfpnl'];_0x275b=function(){return _0x357901;};return _0x275b();}function _0x3a7b(_0x589d76,_0x4c5aa2){_0x589d76=_0x589d76-0x9f;const _0x275b51=_0x275b();let _0x3a7b55=_0x275b51[_0x589d76];return _0x3a7b55;}const locale={'print':{'menu':'打印'}};module[_0x1d1504(0xa3)]=locale;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x1a3df0=_0x150f;function _0x150f(_0x29ee33,_0x587e2f){_0x29ee33=_0x29ee33-0x1b4;const _0x13d58a=_0x13d5();let _0x150f73=_0x13d58a[_0x29ee33];return _0x150f73;}(function(_0x134bcc,_0x2a77ca){const _0x22d4cc=_0x150f,_0x39f507=_0x134bcc();while(!![]){try{const _0x1beae9=parseInt(_0x22d4cc(0x1bc))/0x1*(parseInt(_0x22d4cc(0x1b9))/0x2)+parseInt(_0x22d4cc(0x1bb))/0x3+parseInt(_0x22d4cc(0x1b6))/0x4*(parseInt(_0x22d4cc(0x1b8))/0x5)+parseInt(_0x22d4cc(0x1b4))/0x6+-parseInt(_0x22d4cc(0x1b7))/0x7*(parseInt(_0x22d4cc(0x1ba))/0x8)+-parseInt(_0x22d4cc(0x1b5))/0x9+-parseInt(_0x22d4cc(0x1bd))/0xa;if(_0x1beae9===_0x2a77ca)break;else _0x39f507['push'](_0x39f507['shift']());}catch(_0x6b503f){_0x39f507['push'](_0x39f507['shift']());}}}(_0x13d5,0x71dd1));const locale={'print':{'menu':'列印'}};module[_0x1a3df0(0x1be)]=locale;function _0x13d5(){const _0x82f2c5=['2078pJNryI','51032pHpJXk','1761252CxgYOe','181ogyJVG','8640710rfhQdj','exports','921996AmQrJi','4457142eOTccS','388hEvaLx','7mFJyEF','46560TcPNLI'];_0x13d5=function(){return _0x82f2c5;};return _0x13d5();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xe4be79=_0x4b6b;(function(_0x41cfc7,_0x1710eb){const _0x572738=_0x4b6b,_0x37f823=_0x41cfc7();while(!![]){try{const _0x7e6927=-parseInt(_0x572738(0x1bc))/0x1*(-parseInt(_0x572738(0x1be))/0x2)+-parseInt(_0x572738(0x1fa))/0x3*(parseInt(_0x572738(0x1bb))/0x4)+parseInt(_0x572738(0x1ea))/0x5*(parseInt(_0x572738(0x1c6))/0x6)+parseInt(_0x572738(0x219))/0x7*(-parseInt(_0x572738(0x1e0))/0x8)+parseInt(_0x572738(0x1d1))/0x9*(parseInt(_0x572738(0x203))/0xa)+parseInt(_0x572738(0x215))/0xb+parseInt(_0x572738(0x1ab))/0xc;if(_0x7e6927===_0x1710eb)break;else _0x37f823['push'](_0x37f823['shift']());}catch(_0x98679c){_0x37f823['push'](_0x37f823['shift']());}}}(_0x23f4,0xb5604));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';function _0x23f4(){const _0x45658f=['decorate','_initCommands','VIEW_MAIN','onbeforeprint','default','bottom','_documents','object','length','restore','mergeMenu','parseInt','makeDirty','pages','updateScrollVal','Portrait','string','className','UNIVER_DOCS_PRINT','root','1673232YaTeQL','createElement','DocumentDataModel\x20is\x20not\x20found','_addComponent','fetchThroughInterceptors','close','_key','_currentRender','OPERATION','syncExecuteCommand','defineProperty','translate','100%','makeForceDirty','timeValid','version','20XiHGJs','1CaNmng','prepare','272698eZudcw','getInterceptPoints','onafterprint','getCurrentUnitOfType','documentFlavor','_page','page','dispose','12SkgRah','onStarting','getSkeletonData','_unitId','get','BUTTON','_config','right','constructor','setId','with','90EqJGHr','body','_injector','interceptor','OTHERS','_addViewport','getOwnPropertyDescriptor','message','menu','Skeleton\x20data\x20is\x20not\x20found','PrintIcon','call','_calculateLayout','style','_paperSize','3208waDBon','getUnitId','_container','_initMenus','isPro','getSkeleton','position','Pages\x20are\x20not\x20found','appendChild','width','1790855jlfijM','scale','_configService','getRenderById','docs.operation.print','absolute','getDocumentStyle','setContainer','_initRenderer','top','register','getUnit','_menuManagerService','removeChild','getCanvas','_commandService','737889zWRQjw','fill','POSITIVE_INFINITY','min','div','packageName','_root','_effects','getContext','1178990wXjaQn','container','Render\x20is\x20not\x20found','onReady','_engine','symbol','mainComponent','map','left','getOffsetConfig','function','prototype','registerCommand','_skeletonData','getConfig','UNIVER_DOC','_skeleton','disposeWithMe','5567881pwOrbX','render','_scene','forEach','12299yabyDf','_renderManagerService','print.menu','addObject','Printing','valid','mpn','_viewMain','_offsetConfig','_initComponents','__DocPrintRender__','print','pageHeight','0px','height','_componentManager'];_0x23f4=function(){return _0x45658f;};return _0x23f4();}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';import{UniverNetworkPlugin}from'@univerjs/network';import{PrintIcon}from'@univerjs/icons';function _typeof(_0x4d45bb){'@babel/helpers - typeof';const _0x3742bd=_0x4b6b;return _typeof=_0x3742bd(0x20d)==typeof Symbol&&_0x3742bd(0x208)==typeof Symbol['iterator']?function(_0x295df9){return typeof _0x295df9;}:function(_0x29e195){const _0x1fc0a0=_0x3742bd;return _0x29e195&&'function'==typeof Symbol&&_0x29e195[_0x1fc0a0(0x1ce)]===Symbol&&_0x29e195!==Symbol[_0x1fc0a0(0x20e)]?'symbol':typeof _0x29e195;},_typeof(_0x4d45bb);}function toPrimitive(_0x2c2f3c,_0xa034ff){const _0x569829=_0x4b6b;if('object'!=_typeof(_0x2c2f3c)||!_0x2c2f3c)return _0x2c2f3c;var _0x362594=_0x2c2f3c[Symbol['toPrimitive']];if(void 0x0!==_0x362594){var _0x1a22a8=_0x362594[_0x569829(0x1dc)](_0x2c2f3c,_0xa034ff||_0x569829(0x22d));if(_0x569829(0x230)!=_typeof(_0x1a22a8))return _0x1a22a8;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x569829(0x239)===_0xa034ff?String:Number)(_0x2c2f3c);}function toPropertyKey(_0x446019){const _0x3b90f6=_0x4b6b;var _0x3269fd=toPrimitive(_0x446019,'string');return _0x3b90f6(0x208)==_typeof(_0x3269fd)?_0x3269fd:_0x3269fd+'';}function _defineProperty(_0x4776dd,_0x5b3781,_0x25d978){const _0x4b0a44=_0x4b6b;return(_0x5b3781=toPropertyKey(_0x5b3781))in _0x4776dd?Object[_0x4b0a44(0x1b5)](_0x4776dd,_0x5b3781,{'value':_0x25d978,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4776dd[_0x5b3781]=_0x25d978,_0x4776dd;}var DocPrintPageCanvasView=class extends Disposable{get['container'](){const _0x599130=_0x4b6b;return this[_0x599130(0x1e2)];}get[_0xe4be79(0x1aa)](){const _0x1914df=_0xe4be79;return this[_0x1914df(0x200)];}get[_0xe4be79(0x1b2)](){const _0x598ffc=_0xe4be79,_0x1839b1=this[_0x598ffc(0x1d3)][_0x598ffc(0x1ca)](IRenderManagerService)['getRenderById'](this[_0x598ffc(0x1c9)]);if(!_0x1839b1)throw new Error(_0x598ffc(0x205));return _0x1839b1;}get['_skeleton'](){const _0x4528b2=_0xe4be79;return this[_0x4528b2(0x1b2)][_0x4528b2(0x1d0)](DocSkeletonManagerService)[_0x4528b2(0x1e5)]();}get[_0xe4be79(0x210)](){const _0x3ce5ee=_0xe4be79,_0x4842b2=this[_0x3ce5ee(0x213)][_0x3ce5ee(0x1c8)]();if(!_0x4842b2)throw new Error(_0x3ce5ee(0x1da));return _0x4842b2;}get[_0xe4be79(0x1df)](){const _0x34cd0b=_0xe4be79,_0xf0ef8=this[_0x34cd0b(0x210)][_0x34cd0b(0x236)][0x0];return{'width':_0xf0ef8['pageWidth'],'height':_0xf0ef8[_0x34cd0b(0x225)]};}constructor(_0x4dd9ce,_0x42cdc9,_0x3d4ee5,_0x3f449e){const _0x59315b=_0xe4be79;super(),this['_injector']=_0x4dd9ce,this[_0x59315b(0x1c3)]=_0x42cdc9,this[_0x59315b(0x1c9)]=_0x3d4ee5,this[_0x59315b(0x221)]=_0x3f449e,_defineProperty(this,'_container',document[_0x59315b(0x1ac)](_0x59315b(0x1fe))),_defineProperty(this,_0x59315b(0x200),document[_0x59315b(0x1ac)](_0x59315b(0x1fe))),_defineProperty(this,_0x59315b(0x207),void 0x0),_defineProperty(this,_0x59315b(0x217),void 0x0),_defineProperty(this,_0x59315b(0x1b1),void 0x0),_defineProperty(this,_0x59315b(0x22f),void 0x0),_defineProperty(this,_0x59315b(0x220),void 0x0),_defineProperty(this,_0x59315b(0x201),new DisposableCollection()),this[_0x59315b(0x1b1)]=generateRandomId(0x4),this[_0x59315b(0x1f2)](),this[_0x59315b(0x214)]({'dispose':()=>{const _0x354005=_0x59315b;this[_0x354005(0x207)][_0x354005(0x1c5)](),this[_0x354005(0x217)]['dispose'](),this[_0x354005(0x201)]['dispose']();}});}[_0xe4be79(0x1dd)](){const _0x131dc1=_0xe4be79,{docsTop:_0x16f4e0,docsLeft:_0x416ad0}=this[_0x131dc1(0x22f)]['getOffsetConfig'](),_0x3b073d=this[_0x131dc1(0x1df)][_0x131dc1(0x227)],_0x6683a2=this['_paperSize'][_0x131dc1(0x1e9)];return{'top':_0x16f4e0+(_0x16f4e0+_0x3b073d)*this[_0x131dc1(0x1c3)],'bottom':_0x16f4e0+(_0x16f4e0+_0x3b073d)*(this[_0x131dc1(0x1c3)]+0x1),'left':_0x416ad0,'right':_0x416ad0+_0x6683a2};}[_0xe4be79(0x1f2)](){const _0x3a02ad=_0xe4be79,_0x2698e1=0x1;this['_engine']=new Engine('',{'elementWidth':this[_0x3a02ad(0x1df)][_0x3a02ad(0x1e9)],'elementHeight':this[_0x3a02ad(0x1df)][_0x3a02ad(0x227)],'dpr':0x1,'renderMode':CanvasRenderMode[_0x3a02ad(0x21d)]}),this[_0x3a02ad(0x217)]=new Scene(this['_key'],this[_0x3a02ad(0x207)]),this[_0x3a02ad(0x217)][_0x3a02ad(0x1eb)](_0x2698e1,_0x2698e1),this[_0x3a02ad(0x207)][_0x3a02ad(0x1f1)](this[_0x3a02ad(0x1e2)],![]),this[_0x3a02ad(0x207)][_0x3a02ad(0x1f8)]()['getContext']()[_0x3a02ad(0x1cf)](this[_0x3a02ad(0x1b1)]+'_'+generateRandomId(0x4)),this[_0x3a02ad(0x1ae)](),this[_0x3a02ad(0x1d6)]();}['_addComponent'](){const _0x40fc31=_0xe4be79,{pageMarginLeft:_0x338edd,pageMarginTop:_0x5cd317,docsLeft:_0x4bfd59,docsTop:_0x3c687b}=this[_0x40fc31(0x221)],_0x2a0235={'pageMarginLeft':_0x338edd,'pageMarginTop':_0x5cd317},_0x47b193=new Documents(_0x40fc31(0x223),this[_0x40fc31(0x213)],_0x2a0235);_0x47b193[_0x40fc31(0x1b6)](_0x4bfd59,_0x3c687b),this[_0x40fc31(0x217)][_0x40fc31(0x21c)](_0x47b193),this['_documents']=_0x47b193;const _0x351bae=this[_0x40fc31(0x1d3)][_0x40fc31(0x1ca)](DocPrintInterceptorService);_0x351bae[_0x40fc31(0x1d4)][_0x40fc31(0x1af)](_0x351bae[_0x40fc31(0x1d4)][_0x40fc31(0x1bf)]()['PRINTING_COMPONENT_COLLECT'])(void 0x0,{'unitId':this[_0x40fc31(0x1c9)],'scene':this[_0x40fc31(0x217)],'engine':this[_0x40fc31(0x207)],'root':this['_root'],'documents':this[_0x40fc31(0x22f)],'skeleton':this['_skeleton']});}[_0xe4be79(0x1d6)](){const _0x2a69b0=_0xe4be79;this[_0x2a69b0(0x220)]=new Viewport(VIEWPORT_KEY[_0x2a69b0(0x22b)],this['_scene'],{'explicitViewportWidthSet':!![],'explicitViewportHeightSet':!![]});}[_0xe4be79(0x1bd)](){const _0x2bccb0=_0xe4be79,_0x1d69e2=this[_0x2bccb0(0x1dd)]();this['_viewMain'][_0x2bccb0(0x237)]({'viewportScrollX':_0x1d69e2[_0x2bccb0(0x20b)],'viewportScrollY':_0x1d69e2['top']}),this[_0x2bccb0(0x200)]['style'][_0x2bccb0(0x1e6)]=_0x2bccb0(0x1ef),this[_0x2bccb0(0x200)]['style'][_0x2bccb0(0x1f3)]=_0x2bccb0(0x226),this['_root'][_0x2bccb0(0x1de)]['left']='0px',this[_0x2bccb0(0x200)][_0x2bccb0(0x1de)]['width']=_0x2bccb0(0x1b7),this[_0x2bccb0(0x200)][_0x2bccb0(0x1de)][_0x2bccb0(0x227)]=_0x2bccb0(0x1b7),this['_effects']=new DisposableCollection();const _0x4d36cb=this[_0x2bccb0(0x1d3)]['get'](DocPrintInterceptorService);_0x4d36cb['interceptor']['fetchThroughInterceptors'](_0x4d36cb[_0x2bccb0(0x1d4)][_0x2bccb0(0x1bf)]()['PRINTING_DOM_COLLECT'])(this[_0x2bccb0(0x201)],{'unitId':this[_0x2bccb0(0x1c9)],'scene':this[_0x2bccb0(0x217)],'engine':this['_engine'],'root':this[_0x2bccb0(0x200)],'skeleton':this[_0x2bccb0(0x213)],'offset':{'x':_0x1d69e2[_0x2bccb0(0x20b)],'y':_0x1d69e2[_0x2bccb0(0x1f3)]},'bound':{'top':_0x1d69e2['top'],'left':_0x1d69e2[_0x2bccb0(0x20b)],'right':_0x1d69e2[_0x2bccb0(0x1cd)],'bottom':_0x1d69e2[_0x2bccb0(0x22e)]}});}['render'](){const _0x19ae53=_0xe4be79,_0x5169ea=this[_0x19ae53(0x207)][_0x19ae53(0x1f8)]()[_0x19ae53(0x202)]();this[_0x19ae53(0x22f)][_0x19ae53(0x1b8)](),this[_0x19ae53(0x217)][_0x19ae53(0x235)](),_0x5169ea['save'](),this[_0x19ae53(0x217)][_0x19ae53(0x216)](),_0x5169ea[_0x19ae53(0x232)]();}};function __decorateParam(_0x39cc28,_0x455ddc){return function(_0x4a8898,_0x19d53e){_0x455ddc(_0x4a8898,_0x19d53e,_0x39cc28);};}function __decorate(_0xda613a,_0x48fbad,_0x1ff5d6,_0x583fc5){const _0x2b5d67=_0xe4be79;var _0x45c116=arguments[_0x2b5d67(0x231)],_0x249193=_0x45c116<0x3?_0x48fbad:_0x583fc5===null?_0x583fc5=Object[_0x2b5d67(0x1d7)](_0x48fbad,_0x1ff5d6):_0x583fc5,_0x31670c;if(typeof Reflect===_0x2b5d67(0x230)&&typeof Reflect['decorate']==='function')_0x249193=Reflect[_0x2b5d67(0x229)](_0xda613a,_0x48fbad,_0x1ff5d6,_0x583fc5);else{for(var _0x4803bb=_0xda613a['length']-0x1;_0x4803bb>=0x0;_0x4803bb--)if(_0x31670c=_0xda613a[_0x4803bb])_0x249193=(_0x45c116<0x3?_0x31670c(_0x249193):_0x45c116>0x3?_0x31670c(_0x48fbad,_0x1ff5d6,_0x249193):_0x31670c(_0x48fbad,_0x1ff5d6))||_0x249193;}return _0x45c116>0x3&&_0x249193&&Object[_0x2b5d67(0x1b5)](_0x48fbad,_0x1ff5d6,_0x249193),_0x249193;}const BUILD_TIMESTAMP=Number[_0xe4be79(0x234)](0x69e3503e),DEFAULT_PRINT_LIMIT=0x1,getPrintInfoByLicense=(_0x162664,_0x10e4be,_0x1009f5)=>{const _0x1eceab=_0xe4be79,_0x49f403={'page':_0x162664,'isPro':![],'timeValid':![]};if(!_0x10e4be||!_0x1009f5)return _0x49f403;const _0x3bd399=getLicenseInfo(_0x10e4be,_0x1009f5);if(_0x3bd399[_0x1eceab(0x21e)]){const _0x37d466=_0x3bd399[_0x1eceab(0x1d8)],_0x32b77c=isFeatureAuthorizedWithinTime(_0x37d466,'df',BUILD_TIMESTAMP);_0x49f403[_0x1eceab(0x1e4)]=_0x32b77c,_0x49f403[_0x1eceab(0x1b9)]=_0x32b77c,_0x49f403[_0x1eceab(0x1c4)]=getDocFeatureLimit(_0x37d466,_0x32b77c,_0x1eceab(0x21f),_0x162664,_0x162664,0x0);}return _0x49f403;};function _0x4b6b(_0x2608d7,_0x2f38cd){_0x2608d7=_0x2608d7-0x1a8;const _0x23f4fb=_0x23f4();let _0x4b6b9e=_0x23f4fb[_0x2608d7];return _0x4b6b9e;}let DocPrintService=class DocPrintService extends Disposable{constructor(_0x484d19,_0x4e601,_0x53c603,_0x26e1f2,_0x38a0bc){const _0x1b42b0=_0xe4be79;super(),this['_univerInstanceService']=_0x484d19,this[_0x1b42b0(0x21a)]=_0x4e601,this[_0x1b42b0(0x1d3)]=_0x53c603,this[_0x1b42b0(0x1ec)]=_0x26e1f2,this['_globalZoneService']=_0x38a0bc;}[_0xe4be79(0x224)](_0x58640e){const _0x59f6c4=_0xe4be79;var _0x201bea,_0x4a7896;const {ls:_0xc91cba,pbk:_0x254b09}=(_0x201bea=this[_0x59f6c4(0x1ec)][_0x59f6c4(0x211)](LS_CONFIG_KEY))!==null&&_0x201bea!==void 0x0?_0x201bea:{},_0x1deb15=isLocalCheck()?Number[_0x59f6c4(0x1fc)]:getPrintInfoByLicense(0x1,_0xc91cba,_0x254b09)[_0x59f6c4(0x1c4)];if(!this['_univerInstanceService'][_0x59f6c4(0x1f5)](_0x58640e,UniverInstanceType['UNIVER_DOC']))throw new Error(_0x59f6c4(0x1ad));const _0x12f8be=this['_renderManagerService'][_0x59f6c4(0x1ed)](_0x58640e);if(!_0x12f8be)throw new Error(_0x59f6c4(0x205));const _0x4884d6=(_0x4a7896=_0x12f8be[_0x59f6c4(0x1d0)](DocSkeletonManagerService)[_0x59f6c4(0x1e5)]()[_0x59f6c4(0x1c8)]())===null||_0x4a7896===void 0x0?void 0x0:_0x4a7896[_0x59f6c4(0x236)];if(!_0x4884d6)throw new Error(_0x59f6c4(0x1e7));const _0x59286d={'width':_0x4884d6[0x0]['pageWidth'],'height':_0x4884d6[0x0][_0x59f6c4(0x225)]},_0x2dfeee=_0x4884d6[_0x59f6c4(0x231)],_0x5130b2=Math[_0x59f6c4(0x1fd)](_0x1deb15,_0x2dfeee),_0x345dc0=_0x12f8be[_0x59f6c4(0x209)][_0x59f6c4(0x20c)](),_0x7212ab=document['createElement'](_0x59f6c4(0x1fe));_0x7212ab[_0x59f6c4(0x1a8)]=PRINT_CONTAINER_CLASS;const _0x50cea0=new Array(_0x5130b2)[_0x59f6c4(0x1fb)](null)[_0x59f6c4(0x20a)]((_0x198afe,_0x56dc75)=>{const _0x282629=_0x59f6c4,_0x1eeee4=new DocPrintPageCanvasView(this['_injector'],_0x56dc75,_0x58640e,_0x345dc0);return _0x1eeee4['container'][_0x282629(0x1a8)]=PRINT_CANVAS_CLASS,_0x1eeee4;});_0x50cea0[_0x59f6c4(0x218)](_0x18f6ac=>{const _0x1048ed=_0x59f6c4;_0x7212ab[_0x1048ed(0x1e8)](_0x18f6ac[_0x1048ed(0x204)]),_0x18f6ac[_0x1048ed(0x204)][_0x1048ed(0x1e8)](_0x18f6ac['root']),_0x18f6ac['prepare']();});const _0x15de0e=createPrintStyle(_0x59286d[_0x59f6c4(0x1e9)],_0x59286d[_0x59f6c4(0x227)],PrintDirection[_0x59f6c4(0x238)]);return document[_0x59f6c4(0x1d2)][_0x59f6c4(0x1e8)](_0x15de0e),document[_0x59f6c4(0x1d2)][_0x59f6c4(0x1e8)](_0x7212ab),new Promise(_0x3e922c=>{setTimeout(()=>{const _0x17408f=_0x4b6b;window[_0x17408f(0x22c)]=()=>{const _0x4c126a=_0x17408f;_0x50cea0[_0x4c126a(0x218)](_0x49e680=>{const _0x2e4bf3=_0x4c126a;_0x49e680[_0x2e4bf3(0x216)]();});},window[_0x17408f(0x1c0)]=()=>{const _0x2de881=_0x17408f;_0x50cea0['forEach'](_0x1084d2=>{_0x1084d2['dispose']();}),document[_0x2de881(0x1d2)][_0x2de881(0x1f7)](_0x7212ab),document[_0x2de881(0x1d2)]['removeChild'](_0x15de0e),this['_globalZoneService'][_0x2de881(0x1b0)](),_0x3e922c(!![]);},window[_0x17408f(0x224)]();},0x64);});}};DocPrintService=__decorate([__decorateParam(0x0,IUniverInstanceService),__decorateParam(0x1,IRenderManagerService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService),__decorateParam(0x4,IGlobalZoneService)],DocPrintService);const DocPrintOperation={'id':_0xe4be79(0x1ee),'type':CommandType[_0xe4be79(0x1b3)],'handler':async _0x325578=>{const _0x502e8d=_0xe4be79,_0x3a03e9=_0x325578[_0x502e8d(0x1ca)](IUniverInstanceService),_0x27010b=_0x325578['get'](DocPrintService),_0x17e7ce=_0x325578[_0x502e8d(0x1ca)](IRenderManagerService),_0x24163f=_0x325578[_0x502e8d(0x1ca)](ICommandService),_0x34f51a=_0x3a03e9[_0x502e8d(0x1c1)](UniverInstanceType[_0x502e8d(0x212)]);if(!_0x34f51a)return![];if(!_0x17e7ce[_0x502e8d(0x1ed)](_0x34f51a[_0x502e8d(0x1e1)]()))throw new Error(_0x502e8d(0x205));const _0x4d5953=_0x34f51a[_0x502e8d(0x1f0)]()[_0x502e8d(0x1c2)];if(_0x4d5953!==DocumentFlavor['TRADITIONAL'])_0x24163f[_0x502e8d(0x1b4)](SwitchDocModeCommand['id']);await _0x27010b[_0x502e8d(0x224)](_0x34f51a[_0x502e8d(0x1e1)]());if(_0x4d5953!==DocumentFlavor['TRADITIONAL'])_0x24163f['syncExecuteCommand'](SwitchDocModeCommand['id']);return!![];}},DOCS_PRINT_PLUGIN_CONFIG_KEY=_0xe4be79(0x1a9),defaultPluginConfig={};var name='@univerjs-pro/docs-print',version='0.21.0';const DOCS_PRINT_PLUGIN_NAME=_0xe4be79(0x1a9);function DocPrintMenuItemFactory(_0x226985){const _0x10d8fa=_0xe4be79;return{'id':DocPrintOperation['id'],'type':MenuItemType[_0x10d8fa(0x1cb)],'title':_0x10d8fa(0x21b),'icon':_0x10d8fa(0x1db),'tooltip':_0x10d8fa(0x21b),'hidden$':getMenuHiddenObservable(_0x226985,UniverInstanceType[_0x10d8fa(0x212)])};}const menuSchema={[RibbonStartGroup[_0xe4be79(0x1d5)]]:{[DocPrintOperation['id']]:{'order':0.1,'menuItemFactory':DocPrintMenuItemFactory}}};let DocsPrintUIController=class DocsPrintUIController extends Disposable{constructor(_0x22dc40,_0x237512,_0x50fb67){const _0x41b126=_0xe4be79;super(),this['_commandService']=_0x22dc40,this[_0x41b126(0x1f6)]=_0x237512,this['_componentManager']=_0x50fb67,this[_0x41b126(0x1e3)](),this[_0x41b126(0x22a)](),this['_initComponents']();}['_initMenus'](){const _0x3ed7d0=_0xe4be79;this['_menuManagerService'][_0x3ed7d0(0x233)](menuSchema);}[_0xe4be79(0x22a)](){const _0x370539=_0xe4be79;this[_0x370539(0x214)](this[_0x370539(0x1f9)][_0x370539(0x20f)](DocPrintOperation));}[_0xe4be79(0x222)](){const _0x20093d=_0xe4be79;[[_0x20093d(0x1db),PrintIcon]][_0x20093d(0x218)](([_0x396c03,_0x17d232])=>{const _0xec7ff5=_0x20093d;this[_0xec7ff5(0x228)][_0xec7ff5(0x1f4)](_0x396c03,_0x17d232);});}};DocsPrintUIController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService),__decorateParam(0x2,Inject(ComponentManager))],DocsPrintUIController);let UniverDocsPrintPlugin=class UniverDocsPrintPlugin extends Plugin{constructor(_0x37790a=defaultPluginConfig,_0x439c1d,_0x584118){const _0x3ce840=_0xe4be79;super(),this[_0x3ce840(0x1cc)]=_0x37790a,this['_injector']=_0x439c1d,this[_0x3ce840(0x1ec)]=_0x584118;const {menu:_0x576848,..._0xc7fc13}=merge({},defaultPluginConfig,this[_0x3ce840(0x1cc)]);if(_0x576848)this['_configService']['setConfig'](_0x3ce840(0x1d9),_0x576848,{'merge':!![]});this['_configService']['setConfig'](DOCS_PRINT_PLUGIN_CONFIG_KEY,_0xc7fc13);}[_0xe4be79(0x1c7)](){const _0x3fd2bc=_0xe4be79;registerDependencies(this[_0x3fd2bc(0x1d3)],[[DocPrintService],[DocsPrintUIController]]);}[_0xe4be79(0x206)](){const _0x5613ac=_0xe4be79;this[_0x5613ac(0x1d3)][_0x5613ac(0x1ca)](DocsPrintUIController);}};_defineProperty(UniverDocsPrintPlugin,'pluginName',DOCS_PRINT_PLUGIN_NAME),_defineProperty(UniverDocsPrintPlugin,_0xe4be79(0x1ff),name),_defineProperty(UniverDocsPrintPlugin,_0xe4be79(0x1ba),version),_defineProperty(UniverDocsPrintPlugin,'type',UniverInstanceType[_0xe4be79(0x212)]),UniverDocsPrintPlugin=__decorate([DependentOn(UniverNetworkPlugin,UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverDocsPrintPlugin);export{DOCS_PRINT_PLUGIN_CONFIG_KEY,DocPrintOperation,UniverDocsPrintPlugin};
|
|
1
|
+
const _0x3b528b=_0x435b;(function(_0x4a70ed,_0x4352bb){const _0x32a9b5=_0x435b,_0x23d3b8=_0x4a70ed();while(!![]){try{const _0x313d12=parseInt(_0x32a9b5(0x185))/0x1*(-parseInt(_0x32a9b5(0x145))/0x2)+parseInt(_0x32a9b5(0x17b))/0x3+-parseInt(_0x32a9b5(0x144))/0x4*(-parseInt(_0x32a9b5(0x163))/0x5)+-parseInt(_0x32a9b5(0x190))/0x6+-parseInt(_0x32a9b5(0x167))/0x7*(-parseInt(_0x32a9b5(0x174))/0x8)+-parseInt(_0x32a9b5(0x16a))/0x9*(parseInt(_0x32a9b5(0x182))/0xa)+parseInt(_0x32a9b5(0x1d5))/0xb;if(_0x313d12===_0x4352bb)break;else _0x23d3b8['push'](_0x23d3b8['shift']());}catch(_0x130be5){_0x23d3b8['push'](_0x23d3b8['shift']());}}}(_0x3359,0x9a74f));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 _0x435b(_0x5c9b99,_0x9482){_0x5c9b99=_0x5c9b99-0x144;const _0x33590e=_0x3359();let _0x435bc3=_0x33590e[_0x5c9b99];return _0x435bc3;}import{UniverNetworkPlugin}from'@univerjs/network';import{PrintIcon}from'@univerjs/icons';function _typeof(_0x11321b){'@babel/helpers - typeof';const _0xde7f13=_0x435b;return _typeof='function'==typeof Symbol&&_0xde7f13(0x1bb)==typeof Symbol[_0xde7f13(0x19e)]?function(_0x1c4449){return typeof _0x1c4449;}:function(_0x2f293a){const _0x2cc0ac=_0xde7f13;return _0x2f293a&&'function'==typeof Symbol&&_0x2f293a['constructor']===Symbol&&_0x2f293a!==Symbol[_0x2cc0ac(0x14f)]?'symbol':typeof _0x2f293a;},_typeof(_0x11321b);}function toPrimitive(_0x272269,_0x325ed9){const _0x4d9e62=_0x435b;if(_0x4d9e62(0x17c)!=_typeof(_0x272269)||!_0x272269)return _0x272269;var _0x14ae14=_0x272269[Symbol[_0x4d9e62(0x192)]];if(void 0x0!==_0x14ae14){var _0x3ecbf5=_0x14ae14[_0x4d9e62(0x15f)](_0x272269,_0x325ed9||_0x4d9e62(0x18f));if(_0x4d9e62(0x17c)!=_typeof(_0x3ecbf5))return _0x3ecbf5;throw new TypeError(_0x4d9e62(0x1a8));}return('string'===_0x325ed9?String:Number)(_0x272269);}function toPropertyKey(_0x266169){const _0x2ff23e=_0x435b;var _0x458905=toPrimitive(_0x266169,_0x2ff23e(0x1b2));return'symbol'==_typeof(_0x458905)?_0x458905:_0x458905+'';}function _defineProperty(_0x1c17b2,_0x60afae,_0x4898de){const _0x307d0d=_0x435b;return(_0x60afae=toPropertyKey(_0x60afae))in _0x1c17b2?Object[_0x307d0d(0x1b5)](_0x1c17b2,_0x60afae,{'value':_0x4898de,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1c17b2[_0x60afae]=_0x4898de,_0x1c17b2;}var DocPrintPageCanvasView=class extends Disposable{get[_0x3b528b(0x1d1)](){const _0x57aaff=_0x3b528b;return this[_0x57aaff(0x184)];}get[_0x3b528b(0x199)](){const _0xae9c=_0x3b528b;return this[_0xae9c(0x14b)];}get[_0x3b528b(0x14d)](){const _0xc07b7d=_0x3b528b,_0xb741ed=this[_0xc07b7d(0x1b6)][_0xc07b7d(0x146)](IRenderManagerService)[_0xc07b7d(0x187)](this[_0xc07b7d(0x19d)]);if(!_0xb741ed)throw new Error(_0xc07b7d(0x17d));return _0xb741ed;}get[_0x3b528b(0x1ae)](){const _0x1795f6=_0x3b528b;return this[_0x1795f6(0x14d)][_0x1795f6(0x1a0)](DocSkeletonManagerService)[_0x1795f6(0x158)]();}get[_0x3b528b(0x1bf)](){const _0x4dcc71=_0x3b528b,_0xa03d47=this[_0x4dcc71(0x1ae)]['getSkeletonData']();if(!_0xa03d47)throw new Error(_0x4dcc71(0x1c2));return _0xa03d47;}get[_0x3b528b(0x168)](){const _0x185de0=_0x3b528b,_0x4899be=this[_0x185de0(0x1bf)][_0x185de0(0x186)][0x0];return{'width':_0x4899be[_0x185de0(0x1cc)],'height':_0x4899be[_0x185de0(0x1d6)]};}constructor(_0x13d2a9,_0x2172f3,_0x367905,_0xee0475){const _0x3c8e5a=_0x3b528b;super(),this['_injector']=_0x13d2a9,this[_0x3c8e5a(0x17e)]=_0x2172f3,this[_0x3c8e5a(0x19d)]=_0x367905,this[_0x3c8e5a(0x151)]=_0xee0475,_defineProperty(this,_0x3c8e5a(0x184),document[_0x3c8e5a(0x176)]('div')),_defineProperty(this,_0x3c8e5a(0x14b),document['createElement'](_0x3c8e5a(0x149))),_defineProperty(this,'_engine',void 0x0),_defineProperty(this,_0x3c8e5a(0x153),void 0x0),_defineProperty(this,_0x3c8e5a(0x1b7),void 0x0),_defineProperty(this,_0x3c8e5a(0x177),void 0x0),_defineProperty(this,_0x3c8e5a(0x1a5),void 0x0),_defineProperty(this,_0x3c8e5a(0x1cf),new DisposableCollection()),this[_0x3c8e5a(0x1b7)]=generateRandomId(0x4),this[_0x3c8e5a(0x171)](),this[_0x3c8e5a(0x1a9)]({'dispose':()=>{const _0x2646ed=_0x3c8e5a;this['_engine'][_0x2646ed(0x16b)](),this[_0x2646ed(0x153)]['dispose'](),this[_0x2646ed(0x1cf)]['dispose']();}});}[_0x3b528b(0x15d)](){const _0x450c2a=_0x3b528b,{docsTop:_0x4a49bf,docsLeft:_0x4e2e52}=this['_documents'][_0x450c2a(0x19c)](),_0x2e726a=this[_0x450c2a(0x168)][_0x450c2a(0x1a7)],_0x5c0716=this[_0x450c2a(0x168)][_0x450c2a(0x175)];return{'top':_0x4a49bf+(_0x4a49bf+_0x2e726a)*this[_0x450c2a(0x17e)],'bottom':_0x4a49bf+(_0x4a49bf+_0x2e726a)*(this[_0x450c2a(0x17e)]+0x1),'left':_0x4e2e52,'right':_0x4e2e52+_0x5c0716};}[_0x3b528b(0x171)](){const _0x1b39be=_0x3b528b,_0x56ec2e=0x1;this['_engine']=new Engine('',{'elementWidth':this['_paperSize'][_0x1b39be(0x175)],'elementHeight':this[_0x1b39be(0x168)][_0x1b39be(0x1a7)],'dpr':0x1,'renderMode':CanvasRenderMode[_0x1b39be(0x15c)]}),this[_0x1b39be(0x153)]=new Scene(this[_0x1b39be(0x1b7)],this[_0x1b39be(0x164)]),this[_0x1b39be(0x153)]['scale'](_0x56ec2e,_0x56ec2e),this['_engine'][_0x1b39be(0x1a1)](this[_0x1b39be(0x184)],![]),this['_engine'][_0x1b39be(0x1d2)]()[_0x1b39be(0x1be)]()[_0x1b39be(0x1d4)](this[_0x1b39be(0x1b7)]+'_'+generateRandomId(0x4)),this[_0x1b39be(0x1d3)](),this[_0x1b39be(0x1c3)]();}[_0x3b528b(0x1d3)](){const _0x51447c=_0x3b528b,{pageMarginLeft:_0x38d6ae,pageMarginTop:_0x20a078,docsLeft:_0x546a7d,docsTop:_0x496863}=this['_offsetConfig'],_0x4e4924={'pageMarginLeft':_0x38d6ae,'pageMarginTop':_0x20a078},_0x52a074=new Documents(_0x51447c(0x18d),this[_0x51447c(0x1ae)],_0x4e4924);_0x52a074[_0x51447c(0x16d)](_0x546a7d,_0x496863),this[_0x51447c(0x153)][_0x51447c(0x172)](_0x52a074),this[_0x51447c(0x177)]=_0x52a074;const _0x2a4158=this[_0x51447c(0x1b6)][_0x51447c(0x146)](DocPrintInterceptorService);_0x2a4158[_0x51447c(0x1cb)][_0x51447c(0x1ab)](_0x2a4158['interceptor'][_0x51447c(0x152)]()['PRINTING_COMPONENT_COLLECT'])(void 0x0,{'unitId':this['_unitId'],'scene':this[_0x51447c(0x153)],'engine':this['_engine'],'root':this[_0x51447c(0x14b)],'documents':this[_0x51447c(0x177)],'skeleton':this[_0x51447c(0x1ae)]});}['_addViewport'](){const _0x1e300a=_0x3b528b;this['_viewMain']=new Viewport(VIEWPORT_KEY['VIEW_MAIN'],this[_0x1e300a(0x153)],{'explicitViewportWidthSet':!![],'explicitViewportHeightSet':!![]});}[_0x3b528b(0x173)](){const _0x56bea9=_0x3b528b,_0x575bc3=this[_0x56bea9(0x15d)]();this[_0x56bea9(0x1a5)][_0x56bea9(0x1c7)]({'viewportScrollX':_0x575bc3['left'],'viewportScrollY':_0x575bc3[_0x56bea9(0x1b8)]}),this[_0x56bea9(0x14b)]['style'][_0x56bea9(0x1b4)]=_0x56bea9(0x19f),this[_0x56bea9(0x14b)][_0x56bea9(0x178)][_0x56bea9(0x1b8)]=_0x56bea9(0x19b),this[_0x56bea9(0x14b)][_0x56bea9(0x178)][_0x56bea9(0x191)]=_0x56bea9(0x19b),this[_0x56bea9(0x14b)][_0x56bea9(0x178)]['width']=_0x56bea9(0x15a),this[_0x56bea9(0x14b)][_0x56bea9(0x178)][_0x56bea9(0x1a7)]=_0x56bea9(0x15a),this['_effects']=new DisposableCollection();const _0x4e7d64=this[_0x56bea9(0x1b6)][_0x56bea9(0x146)](DocPrintInterceptorService);_0x4e7d64[_0x56bea9(0x1cb)]['fetchThroughInterceptors'](_0x4e7d64['interceptor'][_0x56bea9(0x152)]()[_0x56bea9(0x166)])(this['_effects'],{'unitId':this[_0x56bea9(0x19d)],'scene':this[_0x56bea9(0x153)],'engine':this[_0x56bea9(0x164)],'root':this[_0x56bea9(0x14b)],'skeleton':this[_0x56bea9(0x1ae)],'offset':{'x':_0x575bc3[_0x56bea9(0x191)],'y':_0x575bc3['top']},'bound':{'top':_0x575bc3[_0x56bea9(0x1b8)],'left':_0x575bc3[_0x56bea9(0x191)],'right':_0x575bc3[_0x56bea9(0x1b3)],'bottom':_0x575bc3[_0x56bea9(0x198)]}});}[_0x3b528b(0x1a3)](){const _0x3bf207=_0x3b528b,_0x341e38=this[_0x3bf207(0x164)]['getCanvas']()['getContext']();this[_0x3bf207(0x177)][_0x3bf207(0x18e)](),this[_0x3bf207(0x153)][_0x3bf207(0x162)](),_0x341e38[_0x3bf207(0x18c)](),this[_0x3bf207(0x153)][_0x3bf207(0x1a3)](),_0x341e38[_0x3bf207(0x1c9)]();}};function __decorateParam(_0xbc416e,_0x2a55fa){return function(_0x35044e,_0x21a592){_0x2a55fa(_0x35044e,_0x21a592,_0xbc416e);};}function __decorate(_0x33b986,_0x4fd7c6,_0x2b2b2b,_0x3a0d69){const _0x10b43e=_0x3b528b;var _0x3f5737=arguments[_0x10b43e(0x165)],_0xd6702b=_0x3f5737<0x3?_0x4fd7c6:_0x3a0d69===null?_0x3a0d69=Object[_0x10b43e(0x194)](_0x4fd7c6,_0x2b2b2b):_0x3a0d69,_0x58a4db;if(typeof Reflect===_0x10b43e(0x17c)&&typeof Reflect[_0x10b43e(0x1bc)]===_0x10b43e(0x1ac))_0xd6702b=Reflect[_0x10b43e(0x1bc)](_0x33b986,_0x4fd7c6,_0x2b2b2b,_0x3a0d69);else{for(var _0x2bd6f8=_0x33b986['length']-0x1;_0x2bd6f8>=0x0;_0x2bd6f8--)if(_0x58a4db=_0x33b986[_0x2bd6f8])_0xd6702b=(_0x3f5737<0x3?_0x58a4db(_0xd6702b):_0x3f5737>0x3?_0x58a4db(_0x4fd7c6,_0x2b2b2b,_0xd6702b):_0x58a4db(_0x4fd7c6,_0x2b2b2b))||_0xd6702b;}return _0x3f5737>0x3&&_0xd6702b&&Object[_0x10b43e(0x1b5)](_0x4fd7c6,_0x2b2b2b,_0xd6702b),_0xd6702b;}const BUILD_TIMESTAMP=Number[_0x3b528b(0x1c1)](0x69ec6f48),DEFAULT_PRINT_LIMIT=0x1,getPrintInfoByLicense=(_0x1ff71e,_0x45afa8,_0x35cdc3)=>{const _0x192207=_0x3b528b,_0x4e73ff={'page':_0x1ff71e,'isPro':![],'timeValid':![]};if(!_0x45afa8||!_0x35cdc3)return _0x4e73ff;const _0x17b308=getLicenseInfo(_0x45afa8,_0x35cdc3);if(_0x17b308[_0x192207(0x16f)]){const _0x271e88=_0x17b308['message'],_0x2cf502=isFeatureAuthorizedWithinTime(_0x271e88,'df',BUILD_TIMESTAMP);_0x4e73ff[_0x192207(0x18a)]=_0x2cf502,_0x4e73ff[_0x192207(0x1ce)]=_0x2cf502,_0x4e73ff[_0x192207(0x157)]=getDocFeatureLimit(_0x271e88,_0x2cf502,_0x192207(0x17f),_0x1ff71e,_0x1ff71e,0x0);}return _0x4e73ff;};let DocPrintService=class DocPrintService extends Disposable{constructor(_0xcf97ac,_0x55f9ed,_0x660feb,_0x1d3234,_0xe164ec){const _0x5c1abf=_0x3b528b;super(),this[_0x5c1abf(0x1ad)]=_0xcf97ac,this[_0x5c1abf(0x1c4)]=_0x55f9ed,this['_injector']=_0x660feb,this[_0x5c1abf(0x19a)]=_0x1d3234,this[_0x5c1abf(0x1c6)]=_0xe164ec;}[_0x3b528b(0x1a2)](_0x3bcd95){const _0x5390d9=_0x3b528b;var _0x3e5375,_0x4fafbc;const {ls:_0x3546d5,pbk:_0x57810c}=(_0x3e5375=this['_configService'][_0x5390d9(0x189)](LS_CONFIG_KEY))!==null&&_0x3e5375!==void 0x0?_0x3e5375:{},_0x38dde8=isLocalCheck()?Number['POSITIVE_INFINITY']:getPrintInfoByLicense(0x1,_0x3546d5,_0x57810c)['page'];if(!this[_0x5390d9(0x1ad)]['getUnit'](_0x3bcd95,UniverInstanceType[_0x5390d9(0x161)]))throw new Error('DocumentDataModel\x20is\x20not\x20found');const _0x5e6e75=this[_0x5390d9(0x1c4)][_0x5390d9(0x187)](_0x3bcd95);if(!_0x5e6e75)throw new Error(_0x5390d9(0x17d));const _0x3a522a=(_0x4fafbc=_0x5e6e75[_0x5390d9(0x1a0)](DocSkeletonManagerService)[_0x5390d9(0x158)]()[_0x5390d9(0x14e)]())===null||_0x4fafbc===void 0x0?void 0x0:_0x4fafbc[_0x5390d9(0x186)];if(!_0x3a522a)throw new Error(_0x5390d9(0x170));const _0x8483f2={'width':_0x3a522a[0x0][_0x5390d9(0x1cc)],'height':_0x3a522a[0x0][_0x5390d9(0x1d6)]},_0x2dff45=_0x3a522a['length'],_0x365c1d=Math[_0x5390d9(0x147)](_0x38dde8,_0x2dff45),_0x410438=_0x5e6e75[_0x5390d9(0x159)][_0x5390d9(0x19c)](),_0x12a5e1=document[_0x5390d9(0x176)]('div');_0x12a5e1[_0x5390d9(0x16e)]=PRINT_CONTAINER_CLASS;const _0x54949a=new Array(_0x365c1d)[_0x5390d9(0x1d0)](null)[_0x5390d9(0x156)]((_0x5eb80c,_0x3ce3be)=>{const _0x30aca0=_0x5390d9,_0x2d5e88=new DocPrintPageCanvasView(this[_0x30aca0(0x1b6)],_0x3ce3be,_0x3bcd95,_0x410438);return _0x2d5e88[_0x30aca0(0x1d1)][_0x30aca0(0x16e)]=PRINT_CANVAS_CLASS,_0x2d5e88;});_0x54949a[_0x5390d9(0x14a)](_0x54cdf6=>{const _0x4c9da4=_0x5390d9;_0x12a5e1['appendChild'](_0x54cdf6['container']),_0x54cdf6[_0x4c9da4(0x1d1)]['appendChild'](_0x54cdf6[_0x4c9da4(0x199)]),_0x54cdf6[_0x4c9da4(0x173)]();});const _0x3395c6=createPrintStyle(_0x8483f2['width'],_0x8483f2[_0x5390d9(0x1a7)],PrintDirection[_0x5390d9(0x154)]);return document[_0x5390d9(0x17a)][_0x5390d9(0x160)](_0x3395c6),document[_0x5390d9(0x17a)][_0x5390d9(0x160)](_0x12a5e1),new Promise(_0x53251c=>{setTimeout(()=>{const _0x1e86ec=_0x435b;window[_0x1e86ec(0x179)]=()=>{const _0x47ea22=_0x1e86ec;_0x54949a[_0x47ea22(0x14a)](_0x362679=>{_0x362679['render']();});},window['onafterprint']=()=>{const _0x1b0894=_0x1e86ec;_0x54949a[_0x1b0894(0x14a)](_0x3887dd=>{_0x3887dd['dispose']();}),document[_0x1b0894(0x17a)][_0x1b0894(0x16c)](_0x12a5e1),document[_0x1b0894(0x17a)][_0x1b0894(0x16c)](_0x3395c6),this[_0x1b0894(0x1c6)][_0x1b0894(0x1ca)](),_0x53251c(!![]);},window['print']();},0x64);});}};function _0x3359(){const _0x5eff10=['setId','8825960pokIjG','pageHeight','2188oLxuvE','523346ETTmoN','get','min','_initCommands','div','forEach','_root','mergeMenu','_currentRender','getSkeletonData','prototype','version','_offsetConfig','getInterceptPoints','_scene','Portrait','register','map','page','getSkeleton','mainComponent','100%','_initMenus','Printing','_calculateLayout','OPERATION','call','appendChild','UNIVER_DOC','makeDirty','185Yfqziy','_engine','length','PRINTING_DOM_COLLECT','38472bQqEEg','_paperSize','packageName','5486985ipVwzb','dispose','removeChild','translate','className','valid','Pages\x20are\x20not\x20found','_initRenderer','addObject','prepare','1144xqNzmB','width','createElement','_documents','style','onbeforeprint','body','1957938vyIstb','object','Render\x20is\x20not\x20found','_page','mpn','_config','OTHERS','10jVINsR','0.21.1','_container','2ffRbVQ','pages','getRenderById','onReady','getConfig','isPro','getUnitId','save','__DocPrintRender__','makeForceDirty','default','2973042uJhDaH','left','toPrimitive','menu','getOwnPropertyDescriptor','syncExecuteCommand','UNIVER_DOCS_PRINT','_commandService','bottom','root','_configService','0px','getOffsetConfig','_unitId','iterator','absolute','with','setContainer','print','render','_initComponents','_viewMain','docs.operation.print','height','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','disposeWithMe','PrintIcon','fetchThroughInterceptors','function','_univerInstanceService','_skeleton','onStarting','_menuManagerService','registerCommand','string','right','position','defineProperty','_injector','_key','top','print.menu','setConfig','symbol','decorate','_componentManager','getContext','_skeletonData','pluginName','parseInt','Skeleton\x20data\x20is\x20not\x20found','_addViewport','_renderManagerService','getCurrentUnitOfType','_globalZoneService','updateScrollVal','documentFlavor','restore','close','interceptor','pageWidth','TRADITIONAL','timeValid','_effects','fill','container','getCanvas','_addComponent'];_0x3359=function(){return _0x5eff10;};return _0x3359();}DocPrintService=__decorate([__decorateParam(0x0,IUniverInstanceService),__decorateParam(0x1,IRenderManagerService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService),__decorateParam(0x4,IGlobalZoneService)],DocPrintService);const DocPrintOperation={'id':_0x3b528b(0x1a6),'type':CommandType[_0x3b528b(0x15e)],'handler':async _0x258083=>{const _0x12318f=_0x3b528b,_0x20a288=_0x258083['get'](IUniverInstanceService),_0x27bb7a=_0x258083[_0x12318f(0x146)](DocPrintService),_0x3fb913=_0x258083[_0x12318f(0x146)](IRenderManagerService),_0x459e76=_0x258083[_0x12318f(0x146)](ICommandService),_0x1d1d27=_0x20a288[_0x12318f(0x1c5)](UniverInstanceType[_0x12318f(0x161)]);if(!_0x1d1d27)return![];if(!_0x3fb913['getRenderById'](_0x1d1d27[_0x12318f(0x18b)]()))throw new Error(_0x12318f(0x17d));const _0x385e81=_0x1d1d27['getDocumentStyle']()[_0x12318f(0x1c8)];if(_0x385e81!==DocumentFlavor[_0x12318f(0x1cd)])_0x459e76[_0x12318f(0x195)](SwitchDocModeCommand['id']);await _0x27bb7a[_0x12318f(0x1a2)](_0x1d1d27[_0x12318f(0x18b)]());if(_0x385e81!==DocumentFlavor[_0x12318f(0x1cd)])_0x459e76['syncExecuteCommand'](SwitchDocModeCommand['id']);return!![];}},DOCS_PRINT_PLUGIN_CONFIG_KEY=_0x3b528b(0x196),defaultPluginConfig={};var name='@univerjs-pro/docs-print',version=_0x3b528b(0x183);const DOCS_PRINT_PLUGIN_NAME=_0x3b528b(0x196);function DocPrintMenuItemFactory(_0xd65f7f){const _0x1cd895=_0x3b528b;return{'id':DocPrintOperation['id'],'type':MenuItemType['BUTTON'],'title':_0x1cd895(0x1b9),'icon':_0x1cd895(0x1aa),'tooltip':_0x1cd895(0x1b9),'hidden$':getMenuHiddenObservable(_0xd65f7f,UniverInstanceType[_0x1cd895(0x161)])};}const menuSchema={[RibbonStartGroup[_0x3b528b(0x181)]]:{[DocPrintOperation['id']]:{'order':0.1,'menuItemFactory':DocPrintMenuItemFactory}}};let DocsPrintUIController=class DocsPrintUIController extends Disposable{constructor(_0x42c705,_0x48a41c,_0x28a285){const _0x486133=_0x3b528b;super(),this['_commandService']=_0x42c705,this[_0x486133(0x1b0)]=_0x48a41c,this[_0x486133(0x1bd)]=_0x28a285,this[_0x486133(0x15b)](),this[_0x486133(0x148)](),this[_0x486133(0x1a4)]();}[_0x3b528b(0x15b)](){const _0x5a641b=_0x3b528b;this[_0x5a641b(0x1b0)][_0x5a641b(0x14c)](menuSchema);}[_0x3b528b(0x148)](){const _0x501c82=_0x3b528b;this[_0x501c82(0x1a9)](this[_0x501c82(0x197)][_0x501c82(0x1b1)](DocPrintOperation));}[_0x3b528b(0x1a4)](){const _0x14a585=_0x3b528b;[['PrintIcon',PrintIcon]][_0x14a585(0x14a)](([_0x118652,_0x20a98a])=>{const _0x882b52=_0x14a585;this[_0x882b52(0x1bd)][_0x882b52(0x155)](_0x118652,_0x20a98a);});}};DocsPrintUIController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService),__decorateParam(0x2,Inject(ComponentManager))],DocsPrintUIController);let UniverDocsPrintPlugin=class UniverDocsPrintPlugin extends Plugin{constructor(_0x3e3a5a=defaultPluginConfig,_0x28d3d1,_0x3108c1){const _0x26c8e2=_0x3b528b;super(),this[_0x26c8e2(0x180)]=_0x3e3a5a,this[_0x26c8e2(0x1b6)]=_0x28d3d1,this['_configService']=_0x3108c1;const {menu:_0x5178a6,..._0x2878ba}=merge({},defaultPluginConfig,this[_0x26c8e2(0x180)]);if(_0x5178a6)this[_0x26c8e2(0x19a)][_0x26c8e2(0x1ba)](_0x26c8e2(0x193),_0x5178a6,{'merge':!![]});this['_configService'][_0x26c8e2(0x1ba)](DOCS_PRINT_PLUGIN_CONFIG_KEY,_0x2878ba);}[_0x3b528b(0x1af)](){const _0x4badc8=_0x3b528b;registerDependencies(this[_0x4badc8(0x1b6)],[[DocPrintService],[DocsPrintUIController]]);}[_0x3b528b(0x188)](){const _0x2e9876=_0x3b528b;this['_injector'][_0x2e9876(0x146)](DocsPrintUIController);}};_defineProperty(UniverDocsPrintPlugin,_0x3b528b(0x1c0),DOCS_PRINT_PLUGIN_NAME),_defineProperty(UniverDocsPrintPlugin,_0x3b528b(0x169),name),_defineProperty(UniverDocsPrintPlugin,_0x3b528b(0x150),version),_defineProperty(UniverDocsPrintPlugin,'type',UniverInstanceType[_0x3b528b(0x161)]),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
|
+
const _0x52c723=_0x166f;(function(_0x3184db,_0x1c6efc){const _0x58181f=_0x166f,_0x61c6cd=_0x3184db();while(!![]){try{const _0x465d9c=parseInt(_0x58181f(0x1ed))/0x1+-parseInt(_0x58181f(0x1f5))/0x2*(-parseInt(_0x58181f(0x1f0))/0x3)+parseInt(_0x58181f(0x1f2))/0x4+parseInt(_0x58181f(0x1ee))/0x5*(-parseInt(_0x58181f(0x1f3))/0x6)+parseInt(_0x58181f(0x1f4))/0x7*(parseInt(_0x58181f(0x1f6))/0x8)+parseInt(_0x58181f(0x1ef))/0x9+-parseInt(_0x58181f(0x1f1))/0xa*(parseInt(_0x58181f(0x1f7))/0xb);if(_0x465d9c===_0x1c6efc)break;else _0x61c6cd['push'](_0x61c6cd['shift']());}catch(_0x9cc436){_0x61c6cd['push'](_0x61c6cd['shift']());}}}(_0x50d2,0x862c1));function _0x50d2(){const _0x468a1a=['124048qvRajh','6000203mdFnjo','Print','369089XUxFbQ','10835jNbDlL','3449007jFIuza','14334QnRCtb','10aNvaOi','1775340mIPQej','2166wQbRtD','273pgkbXl','32wAThkT'];_0x50d2=function(){return _0x468a1a;};return _0x50d2();}const locale$1={'print':{'menu':_0x52c723(0x1f8)}},locale=locale$1;function _0x166f(_0x4b9c93,_0x263b56){_0x4b9c93=_0x4b9c93-0x1ed;const _0x50d2b1=_0x50d2();let _0x166fca=_0x50d2b1[_0x4b9c93];return _0x166fca;}export{locale as default};
|
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x7448(){const _0x1afa7f=['25664BitonK','29514spqOqm','16OROnYm','69017IbRiZa','326116szvhoA','125byMYoa','18987uYclGq','Print','10105300EEiuPR','497OQEYaY','2095083gSwvCX'];_0x7448=function(){return _0x1afa7f;};return _0x7448();}function _0x2f09(_0x185c27,_0x58b527){_0x185c27=_0x185c27-0x99;const _0x7448d3=_0x7448();let _0x2f098e=_0x7448d3[_0x185c27];return _0x2f098e;}const _0x14fdf3=_0x2f09;(function(_0x30e260,_0x5260a3){const _0xb94cb4=_0x2f09,_0x19454a=_0x30e260();while(!![]){try{const _0x95e2e5=-parseInt(_0xb94cb4(0xa2))/0x1+-parseInt(_0xb94cb4(0xa3))/0x2+-parseInt(_0xb94cb4(0x9a))/0x3*(parseInt(_0xb94cb4(0xa1))/0x4)+parseInt(_0xb94cb4(0x99))/0x5*(-parseInt(_0xb94cb4(0xa0))/0x6)+parseInt(_0xb94cb4(0x9d))/0x7*(-parseInt(_0xb94cb4(0x9f))/0x8)+-parseInt(_0xb94cb4(0x9e))/0x9+parseInt(_0xb94cb4(0x9c))/0xa;if(_0x95e2e5===_0x5260a3)break;else _0x19454a['push'](_0x19454a['shift']());}catch(_0x40f585){_0x19454a['push'](_0x19454a['shift']());}}}(_0x7448,0x29689));const locale={'print':{'menu':_0x14fdf3(0x9b)}};export{locale as default};
|
package/lib/es/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x2cd597=_0x22de;function _0x22de(_0x262705,_0x123660){_0x262705=_0x262705-0x64;const _0x24daf6=_0x24da();let _0x22de4f=_0x24daf6[_0x262705];return _0x22de4f;}(function(_0x8e1f46,_0x27b1dd){const _0x2a584b=_0x22de,_0x5ea09f=_0x8e1f46();while(!![]){try{const _0x4bffdf=parseInt(_0x2a584b(0x6c))/0x1*(-parseInt(_0x2a584b(0x6e))/0x2)+parseInt(_0x2a584b(0x64))/0x3*(parseInt(_0x2a584b(0x6a))/0x4)+parseInt(_0x2a584b(0x6d))/0x5+parseInt(_0x2a584b(0x66))/0x6+-parseInt(_0x2a584b(0x65))/0x7+-parseInt(_0x2a584b(0x6b))/0x8+parseInt(_0x2a584b(0x69))/0x9*(-parseInt(_0x2a584b(0x67))/0xa);if(_0x4bffdf===_0x27b1dd)break;else _0x5ea09f['push'](_0x5ea09f['shift']());}catch(_0x5dc494){_0x5ea09f['push'](_0x5ea09f['shift']());}}}(_0x24da,0x31aa9));const locale$1={'print':{'menu':_0x2cd597(0x68)}},locale=locale$1;function _0x24da(){const _0x306390=['225696sYVcYF','1141jaAImq','1994155bsYKcW','14vULHTz','3zzoVjL','861294oFiJoQ','1883934SJxcEi','5646870cbQLaU','Print','9bAMWCg','858164TtOxyD'];_0x24da=function(){return _0x306390;};return _0x24da();}export{locale as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x5063(_0x44f5f8,_0x428d07){_0x44f5f8=_0x44f5f8-0xd1;const _0x6f28db=_0x6f28();let _0x506363=_0x6f28db[_0x44f5f8];return _0x506363;}(function(_0x182ee4,_0x3c592d){const _0xffafc0=_0x5063,_0x53c942=_0x182ee4();while(!![]){try{const _0x28cb7b=-parseInt(_0xffafc0(0xda))/0x1*(-parseInt(_0xffafc0(0xd6))/0x2)+parseInt(_0xffafc0(0xd3))/0x3+parseInt(_0xffafc0(0xd2))/0x4*(-parseInt(_0xffafc0(0xd4))/0x5)+-parseInt(_0xffafc0(0xd8))/0x6*(-parseInt(_0xffafc0(0xdb))/0x7)+-parseInt(_0xffafc0(0xd7))/0x8*(parseInt(_0xffafc0(0xd9))/0x9)+parseInt(_0xffafc0(0xd5))/0xa+-parseInt(_0xffafc0(0xd1))/0xb;if(_0x28cb7b===_0x3c592d)break;else _0x53c942['push'](_0x53c942['shift']());}catch(_0x296115){_0x53c942['push'](_0x53c942['shift']());}}}(_0x6f28,0x32d7a));const locale={'print':{'menu':'چاپ'}};export{locale as default};function _0x6f28(){const _0x24283e=['30ZuNVZn','2297450bFhpcC','28iytiUB','30360zOLOcW','4638csMVod','288OaeEjk','17824TqxuvA','3717jMSgFZ','6495346UETjvG','128764iVXsbC','670734neyPsQ'];_0x6f28=function(){return _0x24283e;};return _0x6f28();}
|
package/lib/es/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x828f(){const _0x1c0e17=['2733008WjwPLW','33383PlytIs','1032219kCbFgX','848dngqtD','6405273rCQrrq','194890tSSsaH','50GHamNF','30oPWJWA','4020mVJrdv','1869508WzgQqh','Imprimer'];_0x828f=function(){return _0x1c0e17;};return _0x828f();}const _0x4d15fa=_0x4f02;function _0x4f02(_0x39d2d5,_0x5e3384){_0x39d2d5=_0x39d2d5-0x1b4;const _0x828fa4=_0x828f();let _0x4f02b4=_0x828fa4[_0x39d2d5];return _0x4f02b4;}(function(_0x380c83,_0x5dd69f){const _0x23e793=_0x4f02,_0x40c2e4=_0x380c83();while(!![]){try{const _0x3d5109=parseInt(_0x23e793(0x1b4))/0x1+parseInt(_0x23e793(0x1b6))/0x2*(parseInt(_0x23e793(0x1bb))/0x3)+-parseInt(_0x23e793(0x1bc))/0x4+parseInt(_0x23e793(0x1b8))/0x5*(-parseInt(_0x23e793(0x1ba))/0x6)+parseInt(_0x23e793(0x1b7))/0x7+parseInt(_0x23e793(0x1be))/0x8+parseInt(_0x23e793(0x1b5))/0x9*(-parseInt(_0x23e793(0x1b9))/0xa);if(_0x3d5109===_0x5dd69f)break;else _0x40c2e4['push'](_0x40c2e4['shift']());}catch(_0x506075){_0x40c2e4['push'](_0x40c2e4['shift']());}}}(_0x828f,0x97f96));const locale={'print':{'menu':_0x4d15fa(0x1bd)}};export{locale as default};
|
package/lib/es/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x397d(){const _0x41f4da=['2890145jHFtvi','2606928WDLIil','4wZFQmS','10880856UcHPpL','1359052TovZsH','15769210BqUPwE','7cwUVXy','1170dPdAJR','1374KhwFSP','7988136LBJjSr'];_0x397d=function(){return _0x41f4da;};return _0x397d();}function _0x58d4(_0x3e9592,_0x5d54c9){_0x3e9592=_0x3e9592-0x1b1;const _0x397daf=_0x397d();let _0x58d48c=_0x397daf[_0x3e9592];return _0x58d48c;}(function(_0x579378,_0x5a5f9b){const _0x2055f1=_0x58d4,_0x622160=_0x579378();while(!![]){try{const _0x76e542=-parseInt(_0x2055f1(0x1b8))/0x1+parseInt(_0x2055f1(0x1b1))/0x2*(-parseInt(_0x2055f1(0x1b2))/0x3)+-parseInt(_0x2055f1(0x1b6))/0x4*(-parseInt(_0x2055f1(0x1b4))/0x5)+parseInt(_0x2055f1(0x1b5))/0x6*(parseInt(_0x2055f1(0x1ba))/0x7)+parseInt(_0x2055f1(0x1b3))/0x8+-parseInt(_0x2055f1(0x1b7))/0x9+parseInt(_0x2055f1(0x1b9))/0xa;if(_0x76e542===_0x5a5f9b)break;else _0x622160['push'](_0x622160['shift']());}catch(_0x585724){_0x622160['push'](_0x622160['shift']());}}}(_0x397d,0xb7975));const locale={'print':{'menu':'印刷'}};export{locale as default};
|
package/lib/es/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5e1c12,_0x2c4396){const _0x4e5bd9=_0x1aca,_0xfa20e7=_0x5e1c12();while(!![]){try{const _0x6270bb=-parseInt(_0x4e5bd9(0x145))/0x1+-parseInt(_0x4e5bd9(0x146))/0x2*(-parseInt(_0x4e5bd9(0x144))/0x3)+parseInt(_0x4e5bd9(0x143))/0x4+-parseInt(_0x4e5bd9(0x141))/0x5*(-parseInt(_0x4e5bd9(0x142))/0x6)+-parseInt(_0x4e5bd9(0x140))/0x7+-parseInt(_0x4e5bd9(0x13f))/0x8+parseInt(_0x4e5bd9(0x13e))/0x9;if(_0x6270bb===_0x2c4396)break;else _0xfa20e7['push'](_0xfa20e7['shift']());}catch(_0x18373a){_0xfa20e7['push'](_0xfa20e7['shift']());}}}(_0x1e57,0xaa7ef));const locale={'print':{'menu':'인쇄'}};function _0x1e57(){const _0x494688=['9801312yHNnpc','6868757PdEiZa','70BeONbT','108456VjWMAi','4158784LZblDA','2147229LITxDm','1330279ydDXNR','2nsZyOM','20038878fpHCbE'];_0x1e57=function(){return _0x494688;};return _0x1e57();}function _0x1aca(_0x1e6c58,_0x5ef4c7){_0x1e6c58=_0x1e6c58-0x13e;const _0x1e5711=_0x1e57();let _0x1aca87=_0x1e5711[_0x1e6c58];return _0x1aca87;}export{locale as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x2d9b(_0x1cd684,_0x325d53){_0x1cd684=_0x1cd684-0x1a6;const _0x3e4cdd=_0x3e4c();let _0x2d9bc1=_0x3e4cdd[_0x1cd684];return _0x2d9bc1;}const _0x3f7f4d=_0x2d9b;function _0x3e4c(){const _0x4c9dbb=['20uWeJHc','1764120JpTBGn','5841fOoMhW','Печать','76488EbbBer','4113qiynIB','7SlcMoW','14968lRFTxz','954696KFILDy','2fBFjVY','1986366vJYdEi','261160SgGpqg','1670860dgRfpy'];_0x3e4c=function(){return _0x4c9dbb;};return _0x3e4c();}(function(_0x26ebe8,_0x38c435){const _0xd7e144=_0x2d9b,_0x61b8b9=_0x26ebe8();while(!![]){try{const _0x447e77=parseInt(_0xd7e144(0x1aa))/0x1*(parseInt(_0xd7e144(0x1af))/0x2)+parseInt(_0xd7e144(0x1a9))/0x3+parseInt(_0xd7e144(0x1ad))/0x4*(parseInt(_0xd7e144(0x1ae))/0x5)+parseInt(_0xd7e144(0x1ab))/0x6*(-parseInt(_0xd7e144(0x1a7))/0x7)+-parseInt(_0xd7e144(0x1a8))/0x8*(-parseInt(_0xd7e144(0x1a6))/0x9)+parseInt(_0xd7e144(0x1ac))/0xa+-parseInt(_0xd7e144(0x1b0))/0xb*(parseInt(_0xd7e144(0x1b2))/0xc);if(_0x447e77===_0x38c435)break;else _0x61b8b9['push'](_0x61b8b9['shift']());}catch(_0x521610){_0x61b8b9['push'](_0x61b8b9['shift']());}}}(_0x3e4c,0xe04c0));const locale={'print':{'menu':_0x3f7f4d(0x1b1)}};export{locale as default};
|
package/lib/es/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1501e3=_0x2bce;function _0x2bce(_0x137804,_0xd47b93){_0x137804=_0x137804-0x116;const _0x157829=_0x1578();let _0x2bce04=_0x157829[_0x137804];return _0x2bce04;}(function(_0x9a8b4b,_0x3191f1){const _0x55daac=_0x2bce,_0x2a39c7=_0x9a8b4b();while(!![]){try{const _0x32c3d5=parseInt(_0x55daac(0x116))/0x1+parseInt(_0x55daac(0x11b))/0x2+parseInt(_0x55daac(0x119))/0x3+-parseInt(_0x55daac(0x11a))/0x4+-parseInt(_0x55daac(0x117))/0x5+parseInt(_0x55daac(0x11e))/0x6*(parseInt(_0x55daac(0x11c))/0x7)+parseInt(_0x55daac(0x11f))/0x8*(-parseInt(_0x55daac(0x118))/0x9);if(_0x32c3d5===_0x3191f1)break;else _0x2a39c7['push'](_0x2a39c7['shift']());}catch(_0x13c401){_0x2a39c7['push'](_0x2a39c7['shift']());}}}(_0x1578,0x58e67));const locale={'print':{'menu':_0x1501e3(0x11d)}};export{locale as default};function _0x1578(){const _0x92bb46=['1149168EtGYlk','421948fhebRK','374339lzVhTX','Tlač','6vXUJuX','16496MILmYe','497115mTbKRj','698285areVeS','99RSZkkf','156600udWdgZ'];_0x1578=function(){return _0x92bb46;};return _0x1578();}
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x1edf(){const _0x4fc432=['8XXbQik','1404MKOjhf','29090oNmkPQ','1484245uxZWHe','114OLdtKr','279jOWNeY','386isrQzZ','88592EnENKA','104725PqLCcp','18282lJKIwa','6753iLPOpP','1465312fProjA'];_0x1edf=function(){return _0x4fc432;};return _0x1edf();}(function(_0x1d6a1a,_0xa70137){const _0x3fe52f=_0x11d3,_0xd811aa=_0x1d6a1a();while(!![]){try{const _0x4c33ea=parseInt(_0x3fe52f(0x184))/0x1+-parseInt(_0x3fe52f(0x183))/0x2*(-parseInt(_0x3fe52f(0x187))/0x3)+-parseInt(_0x3fe52f(0x188))/0x4+parseInt(_0x3fe52f(0x185))/0x5*(parseInt(_0x3fe52f(0x181))/0x6)+parseInt(_0x3fe52f(0x180))/0x7*(-parseInt(_0x3fe52f(0x189))/0x8)+-parseInt(_0x3fe52f(0x182))/0x9*(-parseInt(_0x3fe52f(0x18b))/0xa)+parseInt(_0x3fe52f(0x186))/0xb*(-parseInt(_0x3fe52f(0x18a))/0xc);if(_0x4c33ea===_0xa70137)break;else _0xd811aa['push'](_0xd811aa['shift']());}catch(_0x50c6c4){_0xd811aa['push'](_0xd811aa['shift']());}}}(_0x1edf,0x3a310));const locale={'print':{'menu':'In'}};function _0x11d3(_0x188c51,_0x414cd6){_0x188c51=_0x188c51-0x180;const _0x1edfba=_0x1edf();let _0x11d34d=_0x1edfba[_0x188c51];return _0x11d34d;}export{locale as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4314(){const _0x14802b=['385908LDgPPf','1053800AWBAVm','277773bmvxhs','186oIIwyX','10407KYHFjY','17611pllABG','2187423vgjfZn','8420VYvNAh','2268132VLTFDU','5oAnszs','45MLmbwC'];_0x4314=function(){return _0x14802b;};return _0x4314();}(function(_0x3bc999,_0x3191a9){const _0x5dd37c=_0x3c14,_0x266913=_0x3bc999();while(!![]){try{const _0x3ac553=-parseInt(_0x5dd37c(0x112))/0x1+parseInt(_0x5dd37c(0x113))/0x2*(-parseInt(_0x5dd37c(0x114))/0x3)+parseInt(_0x5dd37c(0x118))/0x4+parseInt(_0x5dd37c(0x10e))/0x5*(parseInt(_0x5dd37c(0x110))/0x6)+-parseInt(_0x5dd37c(0x116))/0x7+-parseInt(_0x5dd37c(0x111))/0x8*(parseInt(_0x5dd37c(0x10f))/0x9)+-parseInt(_0x5dd37c(0x117))/0xa*(-parseInt(_0x5dd37c(0x115))/0xb);if(_0x3ac553===_0x3191a9)break;else _0x266913['push'](_0x266913['shift']());}catch(_0x29b618){_0x266913['push'](_0x266913['shift']());}}}(_0x4314,0x63951));function _0x3c14(_0x92c7e1,_0x24059d){_0x92c7e1=_0x92c7e1-0x10e;const _0x4314cc=_0x4314();let _0x3c1407=_0x4314cc[_0x92c7e1];return _0x3c1407;}const locale={'print':{'menu':'打印'}};export{locale as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5c8455,_0x3476a1){const _0x218bbf=_0x209a,_0x42d61b=_0x5c8455();while(!![]){try{const _0x1fe4ff=parseInt(_0x218bbf(0x1e9))/0x1*(-parseInt(_0x218bbf(0x1e3))/0x2)+parseInt(_0x218bbf(0x1eb))/0x3*(parseInt(_0x218bbf(0x1e5))/0x4)+-parseInt(_0x218bbf(0x1e4))/0x5+-parseInt(_0x218bbf(0x1e7))/0x6*(parseInt(_0x218bbf(0x1ec))/0x7)+-parseInt(_0x218bbf(0x1e6))/0x8*(-parseInt(_0x218bbf(0x1e0))/0x9)+-parseInt(_0x218bbf(0x1e2))/0xa*(-parseInt(_0x218bbf(0x1ea))/0xb)+-parseInt(_0x218bbf(0x1e8))/0xc*(-parseInt(_0x218bbf(0x1e1))/0xd);if(_0x1fe4ff===_0x3476a1)break;else _0x42d61b['push'](_0x42d61b['shift']());}catch(_0x4dfca2){_0x42d61b['push'](_0x42d61b['shift']());}}}(_0x13e2,0x4c81e));function _0x13e2(){const _0x3bc684=['2971524irPYzk','3AfAaOv','11ofnPDP','3OUfvfb','3592505bJgneX','234qHxWUE','39NdVBaL','2878270tSAdwP','203380fqRnfn','678535aQSclv','11672yuYmxC','71920gDXlvR','6SEFyVV'];_0x13e2=function(){return _0x3bc684;};return _0x13e2();}function _0x209a(_0x2389a5,_0x48348c){_0x2389a5=_0x2389a5-0x1e0;const _0x13e209=_0x13e2();let _0x209a84=_0x13e209[_0x2389a5];return _0x209a84;}const locale={'print':{'menu':'列印'}};export{locale as default};
|