@univerjs-pro/docs-print 0.22.0 → 0.22.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 _0x359676=_0x4135;(function(_0x5073a3,_0x10be92){const _0xbf689f=_0x4135,_0xd9b652=_0x5073a3();while(!![]){try{const _0x38fa21=parseInt(_0xbf689f(0x166))/0x1*(parseInt(_0xbf689f(0x155))/0x2)+parseInt(_0xbf689f(0x1b8))/0x3*(-parseInt(_0xbf689f(0x16f))/0x4)+parseInt(_0xbf689f(0x15a))/0x5*(parseInt(_0xbf689f(0x198))/0x6)+-parseInt(_0xbf689f(0x1a4))/0x7+parseInt(_0xbf689f(0x1b1))/0x8*(parseInt(_0xbf689f(0x18c))/0x9)+parseInt(_0xbf689f(0x19a))/0xa*(-parseInt(_0xbf689f(0x1cd))/0xb)+-parseInt(_0xbf689f(0x1ad))/0xc*(-parseInt(_0xbf689f(0x161))/0xd);if(_0x38fa21===_0x10be92)break;else _0xd9b652['push'](_0xd9b652['shift']());}catch(_0x34befc){_0xd9b652['push'](_0xd9b652['shift']());}}}(_0x1682,0x5d6e2),Object['defineProperty'](exports,Symbol[_0x359676(0x18a)],{'value':'Module'}));let _univerjs_core=require('@univerjs/core'),_univerjs_docs_ui=require('@univerjs/docs-ui'),_univerjs_engine_render=require('@univerjs/engine-render'),_univerjs_pro_license=require('@univerjs-pro/license'),_univerjs_pro_print=require('@univerjs-pro/print'),_univerjs_docs=require('@univerjs/docs'),_univerjs_ui=require('@univerjs/ui'),_univerjs_network=require('@univerjs/network'),_univerjs_icons=require('@univerjs/icons');function _0x1682(){const _0x4fa758=['DocPrintInterceptorService','DocumentFlavor','Render\x20is\x20not\x20found','default','585673uGGurw','constructor','_addComponent','_page','position','_scene','Viewport','interceptor','_paperSize','_skeleton','_componentManager','get','RibbonStartGroup','page','fill','valid','_addViewport','addObject','PrintIcon','0.22.0','updateScrollVal','iterator','timeValid','createElement','PrintDirection','Disposable','BUTTON','documentFlavor','TRADITIONAL','makeForceDirty','getContext','_config','print.menu','PRINTING_COMPONENT_COLLECT','appendChild','Inject','forEach','_documents','ICommandService','removeChild','_initRenderer','SwitchDocModeCommand','_offsetConfig','Portrait','IUniverInstanceService','onStarting','defineProperty','CommandType','prototype','translate','top','UNIVER_DOC','_key','_container','getDocFeatureLimit','Printing','UniverLicensePlugin','Engine','0px','45902aReXuv','version','_renderManagerService','pluginName','with','12770IZkQUC','prepare','pages','_root','getOwnPropertyDescriptor','getOffsetConfig','_initMenus','300391kebFFc','@univerjs-pro/docs-print','100%','save','fetchThroughInterceptors','27LGCwFR','object','Documents','length','_currentRender','disposeWithMe','IGlobalZoneService','IMenuManagerService','min','2063092bLAlmE','absolute','type','_effects','pageWidth','__DocPrintRender__','decorate','_viewMain','parseInt','body','_calculateLayout','getCanvas','print','_univerInstanceService','menu','DocumentDataModel\x20is\x20not\x20found','getConfig','div','message','close','symbol','getUnit','makeDirty','isFeatureAuthorizedWithinTime','_unitId','syncExecuteCommand','LS_CONFIG_KEY','toStringTag','setId','1517382tKblqv','container','getInterceptPoints','right','getMenuHiddenObservable','left','_configService','_initCommands','className','VIEWPORT_KEY','OPERATION','IConfigService','1074UgBFoh','IRenderManagerService','10XPZoBc','mainComponent','UniverInstanceType','getSkeletonData','DisposableCollection','pageHeight','DependentOn','isLocalCheck','_menuManagerService','onbeforeprint','3673635DmdHuV','string','VIEW_MAIN','setConfig','PRINT_CANVAS_CLASS','_engine','DocPrintOperation','CanvasRenderMode','getLicenseInfo','120zgRfTi','getDocumentStyle','dispose','PRINTING_DOM_COLLECT','8GXARjY','register','_skeletonData','_initComponents','function','onReady','bottom','3yJxJBI','onafterprint','root','generateRandomId','call','getCurrentUnitOfType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','isPro','Pages\x20are\x20not\x20found','style','UNIVER_DOCS_PRINT','height','POSITIVE_INFINITY','width','getSkeleton','_injector','getRenderById'];_0x1682=function(){return _0x4fa758;};return _0x1682();}function _typeof(_0x4155c1){'@babel/helpers - typeof';const _0x51aca5=_0x359676;return _typeof=_0x51aca5(0x1b5)==typeof Symbol&&_0x51aca5(0x183)==typeof Symbol[_0x51aca5(0x1e2)]?function(_0x38e9b4){return typeof _0x38e9b4;}:function(_0x2882ef){const _0xdc2279=_0x51aca5;return _0x2882ef&&_0xdc2279(0x1b5)==typeof Symbol&&_0x2882ef[_0xdc2279(0x1ce)]===Symbol&&_0x2882ef!==Symbol[_0xdc2279(0x14a)]?_0xdc2279(0x183):typeof _0x2882ef;},_typeof(_0x4155c1);}function toPrimitive(_0x4fc6ee,_0x2b2fcd){const _0x236ebb=_0x359676;if('object'!=_typeof(_0x4fc6ee)||!_0x4fc6ee)return _0x4fc6ee;var _0x2ae7c5=_0x4fc6ee[Symbol['toPrimitive']];if(void 0x0!==_0x2ae7c5){var _0x3fa14a=_0x2ae7c5[_0x236ebb(0x1bc)](_0x4fc6ee,_0x2b2fcd||_0x236ebb(0x1cc));if(_0x236ebb(0x167)!=_typeof(_0x3fa14a))return _0x3fa14a;throw new TypeError(_0x236ebb(0x1be));}return(_0x236ebb(0x1a5)===_0x2b2fcd?String:Number)(_0x4fc6ee);}function toPropertyKey(_0x312fc1){const _0x5460e2=_0x359676;var _0x208624=toPrimitive(_0x312fc1,'string');return _0x5460e2(0x183)==_typeof(_0x208624)?_0x208624:_0x208624+'';}function _defineProperty(_0x3d5d5d,_0x356615,_0x4d8723){const _0x25e321=_0x359676;return(_0x356615=toPropertyKey(_0x356615))in _0x3d5d5d?Object[_0x25e321(0x148)](_0x3d5d5d,_0x356615,{'value':_0x4d8723,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3d5d5d[_0x356615]=_0x4d8723,_0x3d5d5d;}var DocPrintPageCanvasView=class extends _univerjs_core['Disposable']{get[_0x359676(0x18d)](){const _0x28c63f=_0x359676;return this[_0x28c63f(0x14f)];}get[_0x359676(0x1ba)](){const _0x578ad4=_0x359676;return this[_0x578ad4(0x15d)];}get[_0x359676(0x16a)](){const _0x1006b0=_0x359676,_0x1e3707=this['_injector'][_0x1006b0(0x1d8)](_univerjs_engine_render[_0x1006b0(0x199)])[_0x1006b0(0x1c8)](this['_unitId']);if(!_0x1e3707)throw new Error(_0x1006b0(0x1cb));return _0x1e3707;}get[_0x359676(0x1d6)](){const _0x4f65e0=_0x359676;return this[_0x4f65e0(0x16a)][_0x4f65e0(0x159)](_univerjs_docs['DocSkeletonManagerService'])[_0x4f65e0(0x1c6)]();}get['_skeletonData'](){const _0x24067b=_0x359676,_0x42ce9a=this[_0x24067b(0x1d6)][_0x24067b(0x19d)]();if(!_0x42ce9a)throw new Error('Skeleton\x20data\x20is\x20not\x20found');return _0x42ce9a;}get['_paperSize'](){const _0xb17db6=_0x359676,_0xfe7566=this[_0xb17db6(0x1b3)][_0xb17db6(0x15c)][0x0];return{'width':_0xfe7566['pageWidth'],'height':_0xfe7566[_0xb17db6(0x19f)]};}constructor(_0x2c1d03,_0x58a8b8,_0x4d4a5b,_0x3692e1){const _0x1e3b9d=_0x359676;super(),this[_0x1e3b9d(0x1c7)]=_0x2c1d03,this['_page']=_0x58a8b8,this['_unitId']=_0x4d4a5b,this[_0x1e3b9d(0x144)]=_0x3692e1,_defineProperty(this,_0x1e3b9d(0x14f),document[_0x1e3b9d(0x1e4)](_0x1e3b9d(0x180))),_defineProperty(this,_0x1e3b9d(0x15d),document[_0x1e3b9d(0x1e4)](_0x1e3b9d(0x180))),_defineProperty(this,_0x1e3b9d(0x1a9),void 0x0),_defineProperty(this,'_scene',void 0x0),_defineProperty(this,_0x1e3b9d(0x14e),void 0x0),_defineProperty(this,_0x1e3b9d(0x1f2),void 0x0),_defineProperty(this,'_viewMain',void 0x0),_defineProperty(this,_0x1e3b9d(0x172),new _univerjs_core[(_0x1e3b9d(0x19e))]()),this[_0x1e3b9d(0x14e)]=(0x0,_univerjs_core['generateRandomId'])(0x4),this[_0x1e3b9d(0x1f5)](),this[_0x1e3b9d(0x16b)]({'dispose':()=>{const _0x446f5f=_0x1e3b9d;this['_engine'][_0x446f5f(0x1af)](),this['_scene'][_0x446f5f(0x1af)](),this[_0x446f5f(0x172)][_0x446f5f(0x1af)]();}});}['_calculateLayout'](){const _0x4479a2=_0x359676,{docsTop:_0x6ff77e,docsLeft:_0x1f6b2b}=this[_0x4479a2(0x1f2)][_0x4479a2(0x15f)](),_0x564c18=this[_0x4479a2(0x1d5)][_0x4479a2(0x1c3)],_0x2a347d=this[_0x4479a2(0x1d5)]['width'];return{'top':_0x6ff77e+(_0x6ff77e+_0x564c18)*this[_0x4479a2(0x1d0)],'bottom':_0x6ff77e+(_0x6ff77e+_0x564c18)*(this['_page']+0x1),'left':_0x1f6b2b,'right':_0x1f6b2b+_0x2a347d};}[_0x359676(0x1f5)](){const _0x10f013=_0x359676,_0x4d703c=0x1,_0x4f863c=0x1;this[_0x10f013(0x1a9)]=new _univerjs_engine_render[(_0x10f013(0x153))]('',{'elementWidth':this[_0x10f013(0x1d5)][_0x10f013(0x1c5)],'elementHeight':this[_0x10f013(0x1d5)][_0x10f013(0x1c3)],'dpr':_0x4f863c,'renderMode':_univerjs_engine_render[_0x10f013(0x1ab)][_0x10f013(0x151)]}),this[_0x10f013(0x1d2)]=new _univerjs_engine_render['Scene'](this['_key'],this[_0x10f013(0x1a9)]),this['_scene']['scale'](_0x4d703c,_0x4d703c),this[_0x10f013(0x1a9)]['setContainer'](this[_0x10f013(0x14f)],![]),this[_0x10f013(0x1a9)][_0x10f013(0x17a)]()[_0x10f013(0x1eb)]()[_0x10f013(0x18b)](this[_0x10f013(0x14e)]+'_'+(0x0,_univerjs_core[_0x10f013(0x1bb)])(0x4)),this['_addComponent'](),this[_0x10f013(0x1dd)]();}[_0x359676(0x1cf)](){const _0x276d0d=_0x359676,{pageMarginLeft:_0x30ddcd,pageMarginTop:_0x18c5ae,docsLeft:_0x2dbea2,docsTop:_0x326f52}=this[_0x276d0d(0x144)],_0x575cae={'pageMarginLeft':_0x30ddcd,'pageMarginTop':_0x18c5ae},_0x2cd3e6=new _univerjs_engine_render[(_0x276d0d(0x168))](_0x276d0d(0x174),this[_0x276d0d(0x1d6)],_0x575cae);_0x2cd3e6[_0x276d0d(0x14b)](_0x2dbea2,_0x326f52),this['_scene'][_0x276d0d(0x1de)](_0x2cd3e6),this[_0x276d0d(0x1f2)]=_0x2cd3e6;const _0x122f91=this[_0x276d0d(0x1c7)][_0x276d0d(0x1d8)](_univerjs_docs_ui[_0x276d0d(0x1c9)]);_0x122f91[_0x276d0d(0x1d4)][_0x276d0d(0x165)](_0x122f91[_0x276d0d(0x1d4)][_0x276d0d(0x18e)]()[_0x276d0d(0x1ee)])(void 0x0,{'unitId':this[_0x276d0d(0x187)],'scene':this[_0x276d0d(0x1d2)],'engine':this[_0x276d0d(0x1a9)],'root':this[_0x276d0d(0x15d)],'documents':this['_documents'],'skeleton':this[_0x276d0d(0x1d6)]});}[_0x359676(0x1dd)](){const _0x38039d=_0x359676;this[_0x38039d(0x176)]=new _univerjs_engine_render[(_0x38039d(0x1d3))](_univerjs_docs_ui[_0x38039d(0x195)][_0x38039d(0x1a6)],this[_0x38039d(0x1d2)],{'explicitViewportWidthSet':!![],'explicitViewportHeightSet':!![]});}['prepare'](){const _0x49927c=_0x359676,_0x5d007b=this[_0x49927c(0x179)]();this['_viewMain'][_0x49927c(0x1e1)]({'viewportScrollX':_0x5d007b['left'],'viewportScrollY':_0x5d007b[_0x49927c(0x14c)]}),this[_0x49927c(0x15d)][_0x49927c(0x1c1)][_0x49927c(0x1d1)]=_0x49927c(0x170),this[_0x49927c(0x15d)][_0x49927c(0x1c1)][_0x49927c(0x14c)]=_0x49927c(0x154),this[_0x49927c(0x15d)]['style'][_0x49927c(0x191)]=_0x49927c(0x154),this[_0x49927c(0x15d)][_0x49927c(0x1c1)][_0x49927c(0x1c5)]=_0x49927c(0x163),this['_root'][_0x49927c(0x1c1)][_0x49927c(0x1c3)]=_0x49927c(0x163),this[_0x49927c(0x172)]=new _univerjs_core[(_0x49927c(0x19e))]();const _0x8293bc=this[_0x49927c(0x1c7)][_0x49927c(0x1d8)](_univerjs_docs_ui[_0x49927c(0x1c9)]);_0x8293bc[_0x49927c(0x1d4)][_0x49927c(0x165)](_0x8293bc['interceptor'][_0x49927c(0x18e)]()[_0x49927c(0x1b0)])(this[_0x49927c(0x172)],{'unitId':this[_0x49927c(0x187)],'scene':this[_0x49927c(0x1d2)],'engine':this[_0x49927c(0x1a9)],'root':this['_root'],'skeleton':this['_skeleton'],'offset':{'x':_0x5d007b[_0x49927c(0x191)],'y':_0x5d007b[_0x49927c(0x14c)]},'bound':{'top':_0x5d007b[_0x49927c(0x14c)],'left':_0x5d007b[_0x49927c(0x191)],'right':_0x5d007b[_0x49927c(0x18f)],'bottom':_0x5d007b[_0x49927c(0x1b7)]}});}['render'](){const _0x22ce29=_0x359676,_0x1fce30=this[_0x22ce29(0x1a9)][_0x22ce29(0x17a)]()[_0x22ce29(0x1eb)]();this[_0x22ce29(0x1f2)][_0x22ce29(0x1ea)](),this[_0x22ce29(0x1d2)][_0x22ce29(0x185)](),_0x1fce30[_0x22ce29(0x164)](),this[_0x22ce29(0x1d2)]['render'](),_0x1fce30['restore']();}};function __decorateParam(_0x5c8f45,_0x5ea4fd){return function(_0xa49425,_0x596858){_0x5ea4fd(_0xa49425,_0x596858,_0x5c8f45);};}function __decorate(_0x5ced61,_0x413f57,_0x4b7144,_0xadf364){const _0x7449b=_0x359676;var _0x3b9b63=arguments['length'],_0x2ce87d=_0x3b9b63<0x3?_0x413f57:_0xadf364===null?_0xadf364=Object[_0x7449b(0x15e)](_0x413f57,_0x4b7144):_0xadf364,_0xbb66b5;if(typeof Reflect===_0x7449b(0x167)&&typeof Reflect[_0x7449b(0x175)]==='function')_0x2ce87d=Reflect[_0x7449b(0x175)](_0x5ced61,_0x413f57,_0x4b7144,_0xadf364);else{for(var _0x72eb09=_0x5ced61[_0x7449b(0x169)]-0x1;_0x72eb09>=0x0;_0x72eb09--)if(_0xbb66b5=_0x5ced61[_0x72eb09])_0x2ce87d=(_0x3b9b63<0x3?_0xbb66b5(_0x2ce87d):_0x3b9b63>0x3?_0xbb66b5(_0x413f57,_0x4b7144,_0x2ce87d):_0xbb66b5(_0x413f57,_0x4b7144))||_0x2ce87d;}return _0x3b9b63>0x3&&_0x2ce87d&&Object[_0x7449b(0x148)](_0x413f57,_0x4b7144,_0x2ce87d),_0x2ce87d;}const BUILD_TIMESTAMP=Number[_0x359676(0x177)](0x69ff10fd),DEFAULT_PRINT_LIMIT=0x1,getPrintInfoByLicense=(_0x4fa3dd,_0x4eedc,_0x42028b)=>{const _0x17ade9=_0x359676,_0x289328={'page':_0x4fa3dd,'isPro':![],'timeValid':![]};if(!_0x4eedc||!_0x42028b)return _0x289328;const _0x3803a7=(0x0,_univerjs_pro_license[_0x17ade9(0x1ac)])(_0x4eedc,_0x42028b);if(_0x3803a7[_0x17ade9(0x1dc)]){const _0x13612f=_0x3803a7[_0x17ade9(0x181)],_0x14d612=(0x0,_univerjs_pro_license[_0x17ade9(0x186)])(_0x13612f,'df',BUILD_TIMESTAMP);_0x289328[_0x17ade9(0x1bf)]=_0x14d612,_0x289328[_0x17ade9(0x1e3)]=_0x14d612,_0x289328[_0x17ade9(0x1da)]=(0x0,_univerjs_pro_license[_0x17ade9(0x150)])(_0x13612f,_0x14d612,'mpn',_0x4fa3dd,_0x4fa3dd,0x0);}return _0x289328;};let DocPrintService=class DocPrintService extends _univerjs_core['Disposable']{constructor(_0x56ae07,_0x525138,_0x278627,_0xf9c459,_0x13d45b){const _0x17a7de=_0x359676;super(),this['_univerInstanceService']=_0x56ae07,this[_0x17a7de(0x157)]=_0x525138,this[_0x17a7de(0x1c7)]=_0x278627,this[_0x17a7de(0x192)]=_0xf9c459,this['_globalZoneService']=_0x13d45b;}[_0x359676(0x17b)](_0x1b38d6){const _0x376ee5=_0x359676;var _0x569fd5,_0x2affea;const {ls:_0x21bfa0,pbk:_0x3b174e}=(_0x569fd5=this[_0x376ee5(0x192)][_0x376ee5(0x17f)](_univerjs_pro_license[_0x376ee5(0x189)]))!==null&&_0x569fd5!==void 0x0?_0x569fd5:{},_0x3d5442=(0x0,_univerjs_pro_license[_0x376ee5(0x1a1)])()?Number[_0x376ee5(0x1c4)]:getPrintInfoByLicense(0x1,_0x21bfa0,_0x3b174e)[_0x376ee5(0x1da)];if(!this[_0x376ee5(0x17c)][_0x376ee5(0x184)](_0x1b38d6,_univerjs_core[_0x376ee5(0x19c)][_0x376ee5(0x14d)]))throw new Error(_0x376ee5(0x17e));const _0x4a094c=this[_0x376ee5(0x157)][_0x376ee5(0x1c8)](_0x1b38d6);if(!_0x4a094c)throw new Error('Render\x20is\x20not\x20found');const _0x10e85d=(_0x2affea=_0x4a094c['with'](_univerjs_docs['DocSkeletonManagerService'])[_0x376ee5(0x1c6)]()[_0x376ee5(0x19d)]())===null||_0x2affea===void 0x0?void 0x0:_0x2affea[_0x376ee5(0x15c)];if(!_0x10e85d)throw new Error(_0x376ee5(0x1c0));const _0x1e0630={'width':_0x10e85d[0x0][_0x376ee5(0x173)],'height':_0x10e85d[0x0][_0x376ee5(0x19f)]},_0x238ef0=_0x10e85d[_0x376ee5(0x169)],_0x19b455=Math[_0x376ee5(0x16e)](_0x3d5442,_0x238ef0),_0x39cb2f=_0x4a094c[_0x376ee5(0x19b)][_0x376ee5(0x15f)](),_0xb943cb=document[_0x376ee5(0x1e4)]('div');_0xb943cb[_0x376ee5(0x194)]=_univerjs_pro_print['PRINT_CONTAINER_CLASS'];const _0x3e91ac=new Array(_0x19b455)[_0x376ee5(0x1db)](null)['map']((_0x3694bc,_0x57e76b)=>{const _0x4e9504=_0x376ee5,_0x441b37=new DocPrintPageCanvasView(this['_injector'],_0x57e76b,_0x1b38d6,_0x39cb2f);return _0x441b37[_0x4e9504(0x18d)][_0x4e9504(0x194)]=_univerjs_pro_print[_0x4e9504(0x1a8)],_0x441b37;});_0x3e91ac[_0x376ee5(0x1f1)](_0x573be0=>{const _0x401df8=_0x376ee5;_0xb943cb[_0x401df8(0x1ef)](_0x573be0[_0x401df8(0x18d)]),_0x573be0['container'][_0x401df8(0x1ef)](_0x573be0['root']),_0x573be0[_0x401df8(0x15b)]();});const _0x593f72=(0x0,_univerjs_pro_print['createPrintStyle'])(_0x1e0630[_0x376ee5(0x1c5)],_0x1e0630[_0x376ee5(0x1c3)],_univerjs_pro_print[_0x376ee5(0x1e5)][_0x376ee5(0x145)]);return document[_0x376ee5(0x178)]['appendChild'](_0x593f72),document['body'][_0x376ee5(0x1ef)](_0xb943cb),new Promise(_0x16bd6d=>{setTimeout(()=>{const _0x5c89aa=_0x4135;window[_0x5c89aa(0x1a3)]=()=>{const _0x2af886=_0x5c89aa;_0x3e91ac[_0x2af886(0x1f1)](_0x31c691=>{_0x31c691['render']();});},window[_0x5c89aa(0x1b9)]=()=>{const _0x28ede5=_0x5c89aa;_0x3e91ac[_0x28ede5(0x1f1)](_0xd0485f=>{const _0x4f4570=_0x28ede5;_0xd0485f[_0x4f4570(0x1af)]();}),document[_0x28ede5(0x178)][_0x28ede5(0x1f4)](_0xb943cb),document[_0x28ede5(0x178)][_0x28ede5(0x1f4)](_0x593f72),this['_globalZoneService'][_0x28ede5(0x182)](),_0x16bd6d(!![]);},window[_0x5c89aa(0x17b)]();},0x64);});}};DocPrintService=__decorate([__decorateParam(0x0,_univerjs_core[_0x359676(0x146)]),__decorateParam(0x1,_univerjs_engine_render[_0x359676(0x199)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x359676(0x1f0)])(_univerjs_core['Injector'])),__decorateParam(0x3,_univerjs_core['IConfigService']),__decorateParam(0x4,_univerjs_ui[_0x359676(0x16c)])],DocPrintService);const DocPrintOperation={'id':'docs.operation.print','type':_univerjs_core[_0x359676(0x149)][_0x359676(0x196)],'handler':async _0x11bf71=>{const _0x31d54b=_0x359676,_0x58953f=_0x11bf71[_0x31d54b(0x1d8)](_univerjs_core[_0x31d54b(0x146)]),_0x3f38c8=_0x11bf71['get'](DocPrintService),_0x367120=_0x11bf71[_0x31d54b(0x1d8)](_univerjs_engine_render[_0x31d54b(0x199)]),_0x54b989=_0x11bf71[_0x31d54b(0x1d8)](_univerjs_core[_0x31d54b(0x1f3)]),_0x488a2c=_0x58953f[_0x31d54b(0x1bd)](_univerjs_core['UniverInstanceType'][_0x31d54b(0x14d)]);if(!_0x488a2c)return![];if(!_0x367120[_0x31d54b(0x1c8)](_0x488a2c['getUnitId']()))throw new Error(_0x31d54b(0x1cb));const _0x5b9c9f=_0x488a2c[_0x31d54b(0x1ae)]()[_0x31d54b(0x1e8)];if(_0x5b9c9f!==_univerjs_core[_0x31d54b(0x1ca)][_0x31d54b(0x1e9)])_0x54b989[_0x31d54b(0x188)](_univerjs_docs_ui[_0x31d54b(0x1f6)]['id']);await _0x3f38c8[_0x31d54b(0x17b)](_0x488a2c['getUnitId']());if(_0x5b9c9f!==_univerjs_core[_0x31d54b(0x1ca)][_0x31d54b(0x1e9)])_0x54b989[_0x31d54b(0x188)](_univerjs_docs_ui[_0x31d54b(0x1f6)]['id']);return!![];}},DOCS_PRINT_PLUGIN_CONFIG_KEY=_0x359676(0x1c2),defaultPluginConfig={};var name=_0x359676(0x162),version=_0x359676(0x1e0);const DOCS_PRINT_PLUGIN_NAME=_0x359676(0x1c2);function DocPrintMenuItemFactory(_0x294141){const _0x13662b=_0x359676;return{'id':DocPrintOperation['id'],'type':_univerjs_ui['MenuItemType'][_0x13662b(0x1e7)],'title':_0x13662b(0x1ed),'icon':'PrintIcon','tooltip':_0x13662b(0x1ed),'hidden$':(0x0,_univerjs_ui[_0x13662b(0x190)])(_0x294141,_univerjs_core[_0x13662b(0x19c)][_0x13662b(0x14d)])};}function _0x4135(_0x396814,_0x31b242){_0x396814=_0x396814-0x144;const _0x168288=_0x1682();let _0x413548=_0x168288[_0x396814];return _0x413548;}const menuSchema={[_univerjs_ui[_0x359676(0x1d9)]['OTHERS']]:{[DocPrintOperation['id']]:{'order':0.1,'menuItemFactory':DocPrintMenuItemFactory}}};let DocsPrintUIController=class DocsPrintUIController extends _univerjs_core[_0x359676(0x1e6)]{constructor(_0x323aeb,_0x39ff12,_0x5ea47d){const _0x210298=_0x359676;super(),this['_commandService']=_0x323aeb,this[_0x210298(0x1a2)]=_0x39ff12,this['_componentManager']=_0x5ea47d,this[_0x210298(0x160)](),this[_0x210298(0x193)](),this[_0x210298(0x1b4)]();}[_0x359676(0x160)](){const _0x47b966=_0x359676;this[_0x47b966(0x1a2)]['mergeMenu'](menuSchema);}[_0x359676(0x193)](){const _0x211b29=_0x359676;this[_0x211b29(0x16b)](this['_commandService']['registerCommand'](DocPrintOperation));}[_0x359676(0x1b4)](){const _0x4e8d68=_0x359676;[[_0x4e8d68(0x1df),_univerjs_icons[_0x4e8d68(0x1df)]]][_0x4e8d68(0x1f1)](([_0x146740,_0x3aac71])=>{const _0x3196ea=_0x4e8d68;this[_0x3196ea(0x1d7)][_0x3196ea(0x1b2)](_0x146740,_0x3aac71);});}};DocsPrintUIController=__decorate([__decorateParam(0x0,_univerjs_core[_0x359676(0x1f3)]),__decorateParam(0x1,_univerjs_ui[_0x359676(0x16d)]),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_ui['ComponentManager']))],DocsPrintUIController);let UniverDocsPrintPlugin=class UniverDocsPrintPlugin extends _univerjs_core['Plugin']{constructor(_0x50d14b=defaultPluginConfig,_0x2bc04a,_0x3adb2c){const _0x325aaa=_0x359676;super(),this[_0x325aaa(0x1ec)]=_0x50d14b,this[_0x325aaa(0x1c7)]=_0x2bc04a,this[_0x325aaa(0x192)]=_0x3adb2c;const {menu:_0x2574b1,..._0xf6dc7a}=(0x0,_univerjs_core['merge'])({},defaultPluginConfig,this[_0x325aaa(0x1ec)]);if(_0x2574b1)this[_0x325aaa(0x192)][_0x325aaa(0x1a7)](_0x325aaa(0x17d),_0x2574b1,{'merge':!![]});this[_0x325aaa(0x192)][_0x325aaa(0x1a7)](DOCS_PRINT_PLUGIN_CONFIG_KEY,_0xf6dc7a);}[_0x359676(0x147)](){const _0x7c7a5e=_0x359676;(0x0,_univerjs_core['registerDependencies'])(this[_0x7c7a5e(0x1c7)],[[DocPrintService],[DocsPrintUIController]]);}[_0x359676(0x1b6)](){const _0x107bb7=_0x359676;this[_0x107bb7(0x1c7)]['get'](DocsPrintUIController);}};_defineProperty(UniverDocsPrintPlugin,_0x359676(0x158),DOCS_PRINT_PLUGIN_NAME),_defineProperty(UniverDocsPrintPlugin,'packageName',name),_defineProperty(UniverDocsPrintPlugin,_0x359676(0x156),version),_defineProperty(UniverDocsPrintPlugin,_0x359676(0x171),_univerjs_core['UniverInstanceType']['UNIVER_DOC']),UniverDocsPrintPlugin=__decorate([(0x0,_univerjs_core[_0x359676(0x1a0)])(_univerjs_network['UniverNetworkPlugin'],_univerjs_pro_license[_0x359676(0x152)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x359676(0x1f0)])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core[_0x359676(0x197)])],UniverDocsPrintPlugin),exports['DOCS_PRINT_PLUGIN_CONFIG_KEY']=DOCS_PRINT_PLUGIN_CONFIG_KEY,exports[_0x359676(0x1aa)]=DocPrintOperation,Object[_0x359676(0x148)](exports,'UniverDocsPrintPlugin',{'enumerable':!![],'get':function(){return UniverDocsPrintPlugin;}});
|
|
1
|
+
const _0x154bed=_0x3da9;(function(_0x417849,_0x946dd6){const _0x4aaa01=_0x3da9,_0x47d3b3=_0x417849();while(!![]){try{const _0x37d96d=parseInt(_0x4aaa01(0x20b))/0x1*(-parseInt(_0x4aaa01(0x25a))/0x2)+parseInt(_0x4aaa01(0x25d))/0x3+-parseInt(_0x4aaa01(0x24e))/0x4*(parseInt(_0x4aaa01(0x1f6))/0x5)+-parseInt(_0x4aaa01(0x20f))/0x6+parseInt(_0x4aaa01(0x227))/0x7+-parseInt(_0x4aaa01(0x287))/0x8*(-parseInt(_0x4aaa01(0x224))/0x9)+parseInt(_0x4aaa01(0x286))/0xa;if(_0x37d96d===_0x946dd6)break;else _0x47d3b3['push'](_0x47d3b3['shift']());}catch(_0x4c8410){_0x47d3b3['push'](_0x47d3b3['shift']());}}}(_0x55f7,0xd0b18),Object[_0x154bed(0x21b)](exports,Symbol['toStringTag'],{'value':_0x154bed(0x1ff)}));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(_0x4a4601){'@babel/helpers - typeof';const _0x261c88=_0x154bed;return _typeof='function'==typeof Symbol&&'symbol'==typeof Symbol[_0x261c88(0x22f)]?function(_0x1a27d3){return typeof _0x1a27d3;}:function(_0x371d93){const _0x34cfa0=_0x261c88;return _0x371d93&&_0x34cfa0(0x254)==typeof Symbol&&_0x371d93['constructor']===Symbol&&_0x371d93!==Symbol['prototype']?_0x34cfa0(0x267):typeof _0x371d93;},_typeof(_0x4a4601);}function toPrimitive(_0x2f967f,_0x340f4c){const _0xdd246e=_0x154bed;if('object'!=_typeof(_0x2f967f)||!_0x2f967f)return _0x2f967f;var _0x476a7b=_0x2f967f[Symbol[_0xdd246e(0x24d)]];if(void 0x0!==_0x476a7b){var _0x31c5c9=_0x476a7b[_0xdd246e(0x1e2)](_0x2f967f,_0x340f4c||_0xdd246e(0x221));if(_0xdd246e(0x228)!=_typeof(_0x31c5c9))return _0x31c5c9;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xdd246e(0x1f7)===_0x340f4c?String:Number)(_0x2f967f);}function toPropertyKey(_0x2b6de2){const _0x54a713=_0x154bed;var _0x13839b=toPrimitive(_0x2b6de2,_0x54a713(0x1f7));return _0x54a713(0x267)==_typeof(_0x13839b)?_0x13839b:_0x13839b+'';}function _defineProperty(_0x24ca62,_0x278bc1,_0x234bba){return(_0x278bc1=toPropertyKey(_0x278bc1))in _0x24ca62?Object['defineProperty'](_0x24ca62,_0x278bc1,{'value':_0x234bba,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x24ca62[_0x278bc1]=_0x234bba,_0x24ca62;}var DocPrintPageCanvasView=class extends _univerjs_core['Disposable']{get['container'](){const _0x256cb8=_0x154bed;return this[_0x256cb8(0x284)];}get[_0x154bed(0x23b)](){return this['_root'];}get[_0x154bed(0x251)](){const _0x494f4b=_0x154bed,_0x1c0cd7=this[_0x494f4b(0x1f3)][_0x494f4b(0x252)](_univerjs_engine_render[_0x494f4b(0x218)])[_0x494f4b(0x211)](this['_unitId']);if(!_0x1c0cd7)throw new Error(_0x494f4b(0x229));return _0x1c0cd7;}get[_0x154bed(0x28c)](){const _0x32944b=_0x154bed;return this[_0x32944b(0x251)][_0x32944b(0x21a)](_univerjs_docs[_0x32944b(0x23d)])[_0x32944b(0x1df)]();}get[_0x154bed(0x27f)](){const _0x1a1bc3=_0x154bed,_0x58b905=this[_0x1a1bc3(0x28c)][_0x1a1bc3(0x22a)]();if(!_0x58b905)throw new Error('Skeleton\x20data\x20is\x20not\x20found');return _0x58b905;}get[_0x154bed(0x1fa)](){const _0xcd2cb7=_0x154bed,_0x3e0393=this['_skeletonData'][_0xcd2cb7(0x242)][0x0];return{'width':_0x3e0393[_0xcd2cb7(0x26e)],'height':_0x3e0393[_0xcd2cb7(0x248)]};}constructor(_0x3e2998,_0x534b67,_0x4ffda8,_0x4b8437){const _0x3e54cc=_0x154bed;super(),this['_injector']=_0x3e2998,this[_0x3e54cc(0x253)]=_0x534b67,this[_0x3e54cc(0x270)]=_0x4ffda8,this[_0x3e54cc(0x209)]=_0x4b8437,_defineProperty(this,_0x3e54cc(0x284),document[_0x3e54cc(0x24c)](_0x3e54cc(0x26c))),_defineProperty(this,'_root',document[_0x3e54cc(0x24c)](_0x3e54cc(0x26c))),_defineProperty(this,_0x3e54cc(0x201),void 0x0),_defineProperty(this,_0x3e54cc(0x283),void 0x0),_defineProperty(this,_0x3e54cc(0x1e5),void 0x0),_defineProperty(this,'_documents',void 0x0),_defineProperty(this,_0x3e54cc(0x1ed),void 0x0),_defineProperty(this,'_effects',new _univerjs_core[(_0x3e54cc(0x250))]()),this[_0x3e54cc(0x1e5)]=(0x0,_univerjs_core[_0x3e54cc(0x220)])(0x4),this[_0x3e54cc(0x237)](),this[_0x3e54cc(0x273)]({'dispose':()=>{const _0x2f6ffc=_0x3e54cc;this[_0x2f6ffc(0x201)][_0x2f6ffc(0x265)](),this[_0x2f6ffc(0x283)]['dispose'](),this['_effects'][_0x2f6ffc(0x265)]();}});}[_0x154bed(0x210)](){const _0x8c3a31=_0x154bed,{docsTop:_0x86b47,docsLeft:_0x2d79e0}=this[_0x8c3a31(0x1e3)]['getOffsetConfig'](),_0x1b8882=this[_0x8c3a31(0x1fa)][_0x8c3a31(0x247)],_0x467dcc=this[_0x8c3a31(0x1fa)][_0x8c3a31(0x1ee)];return{'top':_0x86b47+(_0x86b47+_0x1b8882)*this[_0x8c3a31(0x253)],'bottom':_0x86b47+(_0x86b47+_0x1b8882)*(this[_0x8c3a31(0x253)]+0x1),'left':_0x2d79e0,'right':_0x2d79e0+_0x467dcc};}[_0x154bed(0x237)](){const _0x55bd8e=_0x154bed,_0x19d520=0x1,_0x132dab=0x1;this['_engine']=new _univerjs_engine_render['Engine']('',{'elementWidth':this[_0x55bd8e(0x1fa)][_0x55bd8e(0x1ee)],'elementHeight':this['_paperSize'][_0x55bd8e(0x247)],'dpr':_0x132dab,'renderMode':_univerjs_engine_render[_0x55bd8e(0x26b)][_0x55bd8e(0x262)]}),this['_scene']=new _univerjs_engine_render[(_0x55bd8e(0x274))](this[_0x55bd8e(0x1e5)],this['_engine']),this[_0x55bd8e(0x283)][_0x55bd8e(0x20a)](_0x19d520,_0x19d520),this[_0x55bd8e(0x201)]['setContainer'](this[_0x55bd8e(0x284)],![]),this[_0x55bd8e(0x201)][_0x55bd8e(0x1fe)]()[_0x55bd8e(0x261)]()['setId'](this[_0x55bd8e(0x1e5)]+'_'+(0x0,_univerjs_core['generateRandomId'])(0x4)),this[_0x55bd8e(0x1fc)](),this[_0x55bd8e(0x260)]();}[_0x154bed(0x1fc)](){const _0x3a9f1f=_0x154bed,{pageMarginLeft:_0x42d5cd,pageMarginTop:_0x578158,docsLeft:_0x2cb13e,docsTop:_0x1d0212}=this[_0x3a9f1f(0x209)],_0x538c9a={'pageMarginLeft':_0x42d5cd,'pageMarginTop':_0x578158},_0x5d4563=new _univerjs_engine_render[(_0x3a9f1f(0x27e))](_0x3a9f1f(0x20d),this['_skeleton'],_0x538c9a);_0x5d4563[_0x3a9f1f(0x205)](_0x2cb13e,_0x1d0212),this[_0x3a9f1f(0x283)][_0x3a9f1f(0x1eb)](_0x5d4563),this[_0x3a9f1f(0x1e3)]=_0x5d4563;const _0x5989c8=this[_0x3a9f1f(0x1f3)]['get'](_univerjs_docs_ui[_0x3a9f1f(0x202)]);_0x5989c8[_0x3a9f1f(0x1f2)][_0x3a9f1f(0x263)](_0x5989c8['interceptor']['getInterceptPoints']()[_0x3a9f1f(0x200)])(void 0x0,{'unitId':this[_0x3a9f1f(0x270)],'scene':this[_0x3a9f1f(0x283)],'engine':this[_0x3a9f1f(0x201)],'root':this[_0x3a9f1f(0x271)],'documents':this[_0x3a9f1f(0x1e3)],'skeleton':this[_0x3a9f1f(0x28c)]});}[_0x154bed(0x260)](){const _0x36da00=_0x154bed;this[_0x36da00(0x1ed)]=new _univerjs_engine_render[(_0x36da00(0x231))](_univerjs_docs_ui[_0x36da00(0x1ef)][_0x36da00(0x23a)],this[_0x36da00(0x283)],{'explicitViewportWidthSet':!![],'explicitViewportHeightSet':!![]});}['prepare'](){const _0x5ee0aa=_0x154bed,_0x401d30=this[_0x5ee0aa(0x210)]();this[_0x5ee0aa(0x1ed)]['updateScrollVal']({'viewportScrollX':_0x401d30['left'],'viewportScrollY':_0x401d30[_0x5ee0aa(0x288)]}),this[_0x5ee0aa(0x271)][_0x5ee0aa(0x204)][_0x5ee0aa(0x212)]=_0x5ee0aa(0x23e),this[_0x5ee0aa(0x271)]['style'][_0x5ee0aa(0x288)]=_0x5ee0aa(0x255),this[_0x5ee0aa(0x271)][_0x5ee0aa(0x204)][_0x5ee0aa(0x275)]=_0x5ee0aa(0x255),this[_0x5ee0aa(0x271)]['style'][_0x5ee0aa(0x1ee)]=_0x5ee0aa(0x280),this[_0x5ee0aa(0x271)]['style']['height']='100%',this[_0x5ee0aa(0x1e9)]=new _univerjs_core[(_0x5ee0aa(0x250))]();const _0xd2d024=this[_0x5ee0aa(0x1f3)]['get'](_univerjs_docs_ui[_0x5ee0aa(0x202)]);_0xd2d024[_0x5ee0aa(0x1f2)]['fetchThroughInterceptors'](_0xd2d024['interceptor'][_0x5ee0aa(0x292)]()[_0x5ee0aa(0x25e)])(this['_effects'],{'unitId':this[_0x5ee0aa(0x270)],'scene':this[_0x5ee0aa(0x283)],'engine':this['_engine'],'root':this[_0x5ee0aa(0x271)],'skeleton':this[_0x5ee0aa(0x28c)],'offset':{'x':_0x401d30[_0x5ee0aa(0x275)],'y':_0x401d30[_0x5ee0aa(0x288)]},'bound':{'top':_0x401d30['top'],'left':_0x401d30['left'],'right':_0x401d30[_0x5ee0aa(0x27d)],'bottom':_0x401d30[_0x5ee0aa(0x23c)]}});}[_0x154bed(0x26f)](){const _0x50a2da=_0x154bed,_0x218b4e=this['_engine'][_0x50a2da(0x1fe)]()[_0x50a2da(0x261)]();this[_0x50a2da(0x1e3)][_0x50a2da(0x233)](),this[_0x50a2da(0x283)]['makeDirty'](),_0x218b4e[_0x50a2da(0x21c)](),this[_0x50a2da(0x283)][_0x50a2da(0x26f)](),_0x218b4e[_0x50a2da(0x238)]();}};function __decorateParam(_0x30cbc6,_0x1c62b8){return function(_0x2c6d03,_0x192c99){_0x1c62b8(_0x2c6d03,_0x192c99,_0x30cbc6);};}function __decorate(_0x38bb6d,_0x1fde8e,_0x581d2f,_0x4653d8){const _0x2dc876=_0x154bed;var _0x568005=arguments[_0x2dc876(0x24f)],_0x15b7b0=_0x568005<0x3?_0x1fde8e:_0x4653d8===null?_0x4653d8=Object[_0x2dc876(0x27c)](_0x1fde8e,_0x581d2f):_0x4653d8,_0x49d6e2;if(typeof Reflect===_0x2dc876(0x228)&&typeof Reflect[_0x2dc876(0x26d)]===_0x2dc876(0x254))_0x15b7b0=Reflect[_0x2dc876(0x26d)](_0x38bb6d,_0x1fde8e,_0x581d2f,_0x4653d8);else{for(var _0x497679=_0x38bb6d[_0x2dc876(0x24f)]-0x1;_0x497679>=0x0;_0x497679--)if(_0x49d6e2=_0x38bb6d[_0x497679])_0x15b7b0=(_0x568005<0x3?_0x49d6e2(_0x15b7b0):_0x568005>0x3?_0x49d6e2(_0x1fde8e,_0x581d2f,_0x15b7b0):_0x49d6e2(_0x1fde8e,_0x581d2f))||_0x15b7b0;}return _0x568005>0x3&&_0x15b7b0&&Object[_0x2dc876(0x21b)](_0x1fde8e,_0x581d2f,_0x15b7b0),_0x15b7b0;}const BUILD_TIMESTAMP=Number[_0x154bed(0x268)](0x6a042e42),DEFAULT_PRINT_LIMIT=0x1,getPrintInfoByLicense=(_0x45d59e,_0x5ecf8f,_0xb5bc19)=>{const _0x4e5e9c=_0x154bed,_0x52a332={'page':_0x45d59e,'isPro':![],'timeValid':![]};if(!_0x5ecf8f||!_0xb5bc19)return _0x52a332;const _0xe9a0da=(0x0,_univerjs_pro_license[_0x4e5e9c(0x1e1)])(_0x5ecf8f,_0xb5bc19);if(_0xe9a0da[_0x4e5e9c(0x1f9)]){const _0x30babf=_0xe9a0da['message'],_0x3edd3b=(0x0,_univerjs_pro_license['isFeatureAuthorizedWithinTime'])(_0x30babf,'df',BUILD_TIMESTAMP);_0x52a332[_0x4e5e9c(0x234)]=_0x3edd3b,_0x52a332[_0x4e5e9c(0x223)]=_0x3edd3b,_0x52a332[_0x4e5e9c(0x22d)]=(0x0,_univerjs_pro_license[_0x4e5e9c(0x1f8)])(_0x30babf,_0x3edd3b,_0x4e5e9c(0x25c),_0x45d59e,_0x45d59e,0x0);}return _0x52a332;};let DocPrintService=class DocPrintService extends _univerjs_core[_0x154bed(0x21d)]{constructor(_0x37d7ae,_0x39b05e,_0x5d7442,_0x7505f0,_0x1643fa){const _0x2eba7d=_0x154bed;super(),this[_0x2eba7d(0x1ea)]=_0x37d7ae,this['_renderManagerService']=_0x39b05e,this[_0x2eba7d(0x1f3)]=_0x5d7442,this[_0x2eba7d(0x28d)]=_0x7505f0,this[_0x2eba7d(0x277)]=_0x1643fa;}['print'](_0x4f0ce8){const _0x4a9568=_0x154bed;var _0x2159a1,_0x2844af;const {ls:_0x250fb8,pbk:_0x4e063c}=(_0x2159a1=this['_configService'][_0x4a9568(0x1e6)](_univerjs_pro_license[_0x4a9568(0x241)]))!==null&&_0x2159a1!==void 0x0?_0x2159a1:{},_0xbe31da=(0x0,_univerjs_pro_license['isLocalCheck'])()?Number[_0x4a9568(0x1fb)]:getPrintInfoByLicense(0x1,_0x250fb8,_0x4e063c)['page'];if(!this[_0x4a9568(0x1ea)][_0x4a9568(0x1f1)](_0x4f0ce8,_univerjs_core[_0x4a9568(0x21f)][_0x4a9568(0x1e8)]))throw new Error(_0x4a9568(0x28f));const _0x4d8a11=this[_0x4a9568(0x28b)][_0x4a9568(0x211)](_0x4f0ce8);if(!_0x4d8a11)throw new Error(_0x4a9568(0x229));const _0x532979=(_0x2844af=_0x4d8a11[_0x4a9568(0x21a)](_univerjs_docs[_0x4a9568(0x23d)])['getSkeleton']()[_0x4a9568(0x22a)]())===null||_0x2844af===void 0x0?void 0x0:_0x2844af[_0x4a9568(0x242)];if(!_0x532979)throw new Error(_0x4a9568(0x245));const _0x68e414={'width':_0x532979[0x0]['pageWidth'],'height':_0x532979[0x0]['pageHeight']},_0x130bda=_0x532979['length'],_0x472a9b=Math['min'](_0xbe31da,_0x130bda),_0x1ad0dc=_0x4d8a11[_0x4a9568(0x259)][_0x4a9568(0x1ec)](),_0x3cdb74=document[_0x4a9568(0x24c)](_0x4a9568(0x26c));_0x3cdb74['className']=_univerjs_pro_print[_0x4a9568(0x289)];const _0x400b8b=new Array(_0x472a9b)[_0x4a9568(0x235)](null)[_0x4a9568(0x28e)]((_0x4a63f3,_0x2b2a37)=>{const _0x211bbe=_0x4a9568,_0x4a5f70=new DocPrintPageCanvasView(this['_injector'],_0x2b2a37,_0x4f0ce8,_0x1ad0dc);return _0x4a5f70[_0x211bbe(0x219)][_0x211bbe(0x213)]=_univerjs_pro_print[_0x211bbe(0x23f)],_0x4a5f70;});_0x400b8b[_0x4a9568(0x22b)](_0x2e29e1=>{const _0xc28ab2=_0x4a9568;_0x3cdb74[_0xc28ab2(0x236)](_0x2e29e1['container']),_0x2e29e1['container'][_0xc28ab2(0x236)](_0x2e29e1[_0xc28ab2(0x23b)]),_0x2e29e1[_0xc28ab2(0x216)]();});const _0x1074d7=(0x0,_univerjs_pro_print['createPrintStyle'])(_0x68e414[_0x4a9568(0x1ee)],_0x68e414[_0x4a9568(0x247)],_univerjs_pro_print[_0x4a9568(0x279)][_0x4a9568(0x249)]);return document[_0x4a9568(0x22c)][_0x4a9568(0x236)](_0x1074d7),document[_0x4a9568(0x22c)]['appendChild'](_0x3cdb74),new Promise(_0x3e3162=>{setTimeout(()=>{const _0x5dcc1b=_0x3da9;window[_0x5dcc1b(0x285)]=()=>{const _0x4b1c31=_0x5dcc1b;_0x400b8b[_0x4b1c31(0x22b)](_0x3576b2=>{_0x3576b2['render']();});},window[_0x5dcc1b(0x269)]=()=>{const _0x5589f4=_0x5dcc1b;_0x400b8b[_0x5589f4(0x22b)](_0x473d8b=>{_0x473d8b['dispose']();}),document[_0x5589f4(0x22c)][_0x5589f4(0x278)](_0x3cdb74),document[_0x5589f4(0x22c)]['removeChild'](_0x1074d7),this['_globalZoneService'][_0x5589f4(0x1fd)](),_0x3e3162(!![]);},window[_0x5dcc1b(0x290)]();},0x64);});}};DocPrintService=__decorate([__decorateParam(0x0,_univerjs_core['IUniverInstanceService']),__decorateParam(0x1,_univerjs_engine_render['IRenderManagerService']),__decorateParam(0x2,(0x0,_univerjs_core[_0x154bed(0x1f0)])(_univerjs_core['Injector'])),__decorateParam(0x3,_univerjs_core[_0x154bed(0x256)]),__decorateParam(0x4,_univerjs_ui[_0x154bed(0x217)])],DocPrintService);const DocPrintOperation={'id':_0x154bed(0x203),'type':_univerjs_core[_0x154bed(0x258)][_0x154bed(0x240)],'handler':async _0x37d638=>{const _0x547406=_0x154bed,_0x2886f9=_0x37d638[_0x547406(0x252)](_univerjs_core['IUniverInstanceService']),_0x42ac05=_0x37d638[_0x547406(0x252)](DocPrintService),_0x371324=_0x37d638[_0x547406(0x252)](_univerjs_engine_render[_0x547406(0x218)]),_0x447395=_0x37d638[_0x547406(0x252)](_univerjs_core[_0x547406(0x20c)]),_0x463416=_0x2886f9['getCurrentUnitOfType'](_univerjs_core[_0x547406(0x21f)]['UNIVER_DOC']);if(!_0x463416)return![];if(!_0x371324[_0x547406(0x211)](_0x463416['getUnitId']()))throw new Error(_0x547406(0x229));const _0x16a62c=_0x463416[_0x547406(0x232)]()[_0x547406(0x291)];if(_0x16a62c!==_univerjs_core[_0x547406(0x239)][_0x547406(0x266)])_0x447395[_0x547406(0x226)](_univerjs_docs_ui[_0x547406(0x246)]['id']);await _0x42ac05[_0x547406(0x290)](_0x463416['getUnitId']());if(_0x16a62c!==_univerjs_core[_0x547406(0x239)]['TRADITIONAL'])_0x447395[_0x547406(0x226)](_univerjs_docs_ui[_0x547406(0x246)]['id']);return!![];}},DOCS_PRINT_PLUGIN_CONFIG_KEY='UNIVER_DOCS_PRINT',defaultPluginConfig={};function _0x55f7(){const _0x3fbc01=['appendChild','_initRenderer','restore','DocumentFlavor','VIEW_MAIN','root','bottom','DocSkeletonManagerService','absolute','PRINT_CANVAS_CLASS','OPERATION','LS_CONFIG_KEY','pages','_config','DependentOn','Pages\x20are\x20not\x20found','SwitchDocModeCommand','height','pageHeight','Portrait','mergeMenu','getMenuHiddenObservable','createElement','toPrimitive','117580GNhErs','length','DisposableCollection','_currentRender','get','_page','function','0px','IConfigService','UniverDocsPrintPlugin','CommandType','mainComponent','1910278xwOcVo','print.menu','mpn','3998649aIgoSN','PRINTING_DOM_COLLECT','_initComponents','_addViewport','getContext','Printing','fetchThroughInterceptors','ComponentManager','dispose','TRADITIONAL','symbol','parseInt','onafterprint','_initCommands','CanvasRenderMode','div','decorate','pageWidth','render','_unitId','_root','_menuManagerService','disposeWithMe','Scene','left','type','_globalZoneService','removeChild','PrintDirection','onReady','PrintIcon','getOwnPropertyDescriptor','right','Documents','_skeletonData','100%','packageName','_componentManager','_scene','_container','onbeforeprint','14434280IisuQe','2944160xUDLWu','top','PRINT_CONTAINER_CLASS','@univerjs-pro/docs-print','_renderManagerService','_skeleton','_configService','map','DocumentDataModel\x20is\x20not\x20found','print','documentFlavor','getInterceptPoints','getSkeleton','UniverNetworkPlugin','getLicenseInfo','call','_documents','Injector','_key','getConfig','pluginName','UNIVER_DOC','_effects','_univerInstanceService','addObject','getOffsetConfig','_viewMain','width','VIEWPORT_KEY','Inject','getUnit','interceptor','_injector','MenuItemType','UNIVER_DOCS_PRINT','275gCSzEx','string','getDocFeatureLimit','valid','_paperSize','POSITIVE_INFINITY','_addComponent','close','getCanvas','Module','PRINTING_COMPONENT_COLLECT','_engine','DocPrintInterceptorService','docs.operation.print','style','translate','0.22.1','version','_initMenus','_offsetConfig','scale','1qcbbgo','ICommandService','__DocPrintRender__','register','5487252LJeoSz','_calculateLayout','getRenderById','position','className','_commandService','onStarting','prepare','IGlobalZoneService','IRenderManagerService','container','with','defineProperty','save','Disposable','setConfig','UniverInstanceType','generateRandomId','default','registerCommand','timeValid','18phKqcJ','merge','syncExecuteCommand','5802041FQGlRs','object','Render\x20is\x20not\x20found','getSkeletonData','forEach','body','page','menu','iterator','DocPrintOperation','Viewport','getDocumentStyle','makeForceDirty','isPro','fill'];_0x55f7=function(){return _0x3fbc01;};return _0x55f7();}var name=_0x154bed(0x28a),version=_0x154bed(0x206);const DOCS_PRINT_PLUGIN_NAME=_0x154bed(0x1f5);function _0x3da9(_0x3dab10,_0x197f14){_0x3dab10=_0x3dab10-0x1df;const _0x55f7e4=_0x55f7();let _0x3da952=_0x55f7e4[_0x3dab10];return _0x3da952;}function DocPrintMenuItemFactory(_0x296c9f){const _0x3f381f=_0x154bed;return{'id':DocPrintOperation['id'],'type':_univerjs_ui[_0x3f381f(0x1f4)]['BUTTON'],'title':_0x3f381f(0x25b),'icon':_0x3f381f(0x27b),'tooltip':_0x3f381f(0x25b),'hidden$':(0x0,_univerjs_ui[_0x3f381f(0x24b)])(_0x296c9f,_univerjs_core[_0x3f381f(0x21f)][_0x3f381f(0x1e8)])};}const menuSchema={[_univerjs_ui['RibbonStartGroup']['OTHERS']]:{[DocPrintOperation['id']]:{'order':0.1,'menuItemFactory':DocPrintMenuItemFactory}}};let DocsPrintUIController=class DocsPrintUIController extends _univerjs_core[_0x154bed(0x21d)]{constructor(_0x1e1452,_0xa4620a,_0xf75060){const _0x4c6c51=_0x154bed;super(),this[_0x4c6c51(0x214)]=_0x1e1452,this['_menuManagerService']=_0xa4620a,this[_0x4c6c51(0x282)]=_0xf75060,this[_0x4c6c51(0x208)](),this[_0x4c6c51(0x26a)](),this['_initComponents']();}['_initMenus'](){const _0x34843b=_0x154bed;this[_0x34843b(0x272)][_0x34843b(0x24a)](menuSchema);}['_initCommands'](){const _0x3ddd42=_0x154bed;this[_0x3ddd42(0x273)](this[_0x3ddd42(0x214)][_0x3ddd42(0x222)](DocPrintOperation));}[_0x154bed(0x25f)](){const _0x1e7cef=_0x154bed;[[_0x1e7cef(0x27b),_univerjs_icons[_0x1e7cef(0x27b)]]][_0x1e7cef(0x22b)](([_0x277f79,_0x4385e4])=>{const _0x39572d=_0x1e7cef;this[_0x39572d(0x282)][_0x39572d(0x20e)](_0x277f79,_0x4385e4);});}};DocsPrintUIController=__decorate([__decorateParam(0x0,_univerjs_core[_0x154bed(0x20c)]),__decorateParam(0x1,_univerjs_ui['IMenuManagerService']),__decorateParam(0x2,(0x0,_univerjs_core[_0x154bed(0x1f0)])(_univerjs_ui[_0x154bed(0x264)]))],DocsPrintUIController);let UniverDocsPrintPlugin=class UniverDocsPrintPlugin extends _univerjs_core['Plugin']{constructor(_0x4afe3f=defaultPluginConfig,_0x5b56be,_0x3bfb54){const _0x52ee57=_0x154bed;super(),this['_config']=_0x4afe3f,this[_0x52ee57(0x1f3)]=_0x5b56be,this[_0x52ee57(0x28d)]=_0x3bfb54;const {menu:_0x3e3e04,..._0x29caa1}=(0x0,_univerjs_core[_0x52ee57(0x225)])({},defaultPluginConfig,this[_0x52ee57(0x243)]);if(_0x3e3e04)this[_0x52ee57(0x28d)][_0x52ee57(0x21e)](_0x52ee57(0x22e),_0x3e3e04,{'merge':!![]});this[_0x52ee57(0x28d)][_0x52ee57(0x21e)](DOCS_PRINT_PLUGIN_CONFIG_KEY,_0x29caa1);}[_0x154bed(0x215)](){const _0x2830b3=_0x154bed;(0x0,_univerjs_core['registerDependencies'])(this[_0x2830b3(0x1f3)],[[DocPrintService],[DocsPrintUIController]]);}[_0x154bed(0x27a)](){this['_injector']['get'](DocsPrintUIController);}};_defineProperty(UniverDocsPrintPlugin,_0x154bed(0x1e7),DOCS_PRINT_PLUGIN_NAME),_defineProperty(UniverDocsPrintPlugin,_0x154bed(0x281),name),_defineProperty(UniverDocsPrintPlugin,_0x154bed(0x207),version),_defineProperty(UniverDocsPrintPlugin,_0x154bed(0x276),_univerjs_core[_0x154bed(0x21f)][_0x154bed(0x1e8)]),UniverDocsPrintPlugin=__decorate([(0x0,_univerjs_core[_0x154bed(0x244)])(_univerjs_network[_0x154bed(0x1e0)],_univerjs_pro_license['UniverLicensePlugin']),__decorateParam(0x1,(0x0,_univerjs_core[_0x154bed(0x1f0)])(_univerjs_core[_0x154bed(0x1e4)])),__decorateParam(0x2,_univerjs_core[_0x154bed(0x256)])],UniverDocsPrintPlugin),exports['DOCS_PRINT_PLUGIN_CONFIG_KEY']=DOCS_PRINT_PLUGIN_CONFIG_KEY,exports[_0x154bed(0x230)]=DocPrintOperation,Object[_0x154bed(0x21b)](exports,_0x154bed(0x257),{'enumerable':!![],'get':function(){return UniverDocsPrintPlugin;}});
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x1fe733=_0x3123;function _0x3123(_0x104eaa,_0x47d7f5){_0x104eaa=_0x104eaa-0x8d;const _0x4865d4=_0x4865();let _0x3123a2=_0x4865d4[_0x104eaa];return _0x3123a2;}(function(_0x2f495b,_0x6c918d){const _0x2ce566=_0x3123,_0x2d5837=_0x2f495b();while(!![]){try{const _0x18dbe7=parseInt(_0x2ce566(0x90))/0x1+parseInt(_0x2ce566(0x8d))/0x2*(parseInt(_0x2ce566(0x92))/0x3)+-parseInt(_0x2ce566(0x91))/0x4+parseInt(_0x2ce566(0x8f))/0x5*(parseInt(_0x2ce566(0x99))/0x6)+-parseInt(_0x2ce566(0x8e))/0x7*(parseInt(_0x2ce566(0x94))/0x8)+-parseInt(_0x2ce566(0x93))/0x9*(-parseInt(_0x2ce566(0x95))/0xa)+-parseInt(_0x2ce566(0x98))/0xb;if(_0x18dbe7===_0x6c918d)break;else _0x2d5837['push'](_0x2d5837['shift']());}catch(_0x566201){_0x2d5837['push'](_0x2d5837['shift']());}}}(_0x4865,0xe825c));function _0x4865(){const _0x2b8dc6=['1318207NUrCMT','15396dyQJqH','113346FAVtcl','63Bqeric','510MIwUtV','30856kMgLRC','2477212XHBBBb','81uLRdVC','2407788IzIybg','355800HgylPM','10AtUTlI','exports','Print'];_0x4865=function(){return _0x2b8dc6;};return _0x4865();}const locale$1={'print':{'menu':_0x1fe733(0x97)}},locale=locale$1;module[_0x1fe733(0x96)]=locale;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x5655(){const _0x336773=['63LSLJcA','3143nvoUGl','1362290zKqDmw','126614StVJoJ','263592ZYfizG','89522VGYsmw','76spqhHa','3318zlWEHk','Print','27327wCtdgk','199135NVfzdY','exports'];_0x5655=function(){return _0x336773;};return _0x5655();}function _0x786c(_0xf1908f,_0x253f2b){_0xf1908f=_0xf1908f-0x10e;const _0x565575=_0x5655();let _0x786c84=_0x565575[_0xf1908f];return _0x786c84;}const _0x3f877d=_0x786c;(function(_0xb754a0,_0x3cf09b){const _0x495c9b=_0x786c,_0x52e863=_0xb754a0();while(!![]){try{const _0x17a41a=parseInt(_0x495c9b(0x116))/0x1+-parseInt(_0x495c9b(0x118))/0x2+-parseInt(_0x495c9b(0x110))/0x3*(-parseInt(_0x495c9b(0x119))/0x4)+parseInt(_0x495c9b(0x111))/0x5+parseInt(_0x495c9b(0x10e))/0x6*(-parseInt(_0x495c9b(0x114))/0x7)+parseInt(_0x495c9b(0x117))/0x8*(parseInt(_0x495c9b(0x113))/0x9)+-parseInt(_0x495c9b(0x115))/0xa;if(_0x17a41a===_0x3cf09b)break;else _0x52e863['push'](_0x52e863['shift']());}catch(_0x1f7297){_0x52e863['push'](_0x52e863['shift']());}}}(_0x5655,0x22644));const locale={'print':{'menu':_0x3f877d(0x10f)}};module[_0x3f877d(0x112)]=locale;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x51e8(){const _0xea3b53=['175336xmrOyh','251538NvlXnH','1752390BZtHTC','13675SLTkAh','7306776vhNMlm','654AghHzB','1251200WohMSL','360048wIlTch','Print'];_0x51e8=function(){return _0xea3b53;};return _0x51e8();}function _0x72fa(_0x4135a8,_0x3b42c0){_0x4135a8=_0x4135a8-0x1d4;const _0x51e8d6=_0x51e8();let _0x72fac3=_0x51e8d6[_0x4135a8];return _0x72fac3;}const _0x240c69=_0x72fa;(function(_0x395f69,_0x3b5b67){const _0x4683b4=_0x72fa,_0x4b8a8c=_0x395f69();while(!![]){try{const _0x22bed7=-parseInt(_0x4683b4(0x1d5))/0x1+parseInt(_0x4683b4(0x1db))/0x2+-parseInt(_0x4683b4(0x1d7))/0x3+-parseInt(_0x4683b4(0x1dc))/0x4+parseInt(_0x4683b4(0x1d8))/0x5*(-parseInt(_0x4683b4(0x1da))/0x6)+-parseInt(_0x4683b4(0x1d6))/0x7+parseInt(_0x4683b4(0x1d9))/0x8;if(_0x22bed7===_0x3b5b67)break;else _0x4b8a8c['push'](_0x4b8a8c['shift']());}catch(_0x1f4b80){_0x4b8a8c['push'](_0x4b8a8c['shift']());}}}(_0x51e8,0x56c5c));const locale$1={'print':{'menu':_0x240c69(0x1d4)}},locale=locale$1;module['exports']=locale;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x31d2(){const _0x2db217=['185571LUXukz','1728710gtDWFg','3511225SFgjDV','670980RVVmSk','چاپ','9095784ipkSdE','933656WHttiB','54640764QtJFHR','35OcSDRV','20lqvOvx','exports'];_0x31d2=function(){return _0x2db217;};return _0x31d2();}const _0x41bcad=_0xcdd8;(function(_0x31bab8,_0x5424e2){const _0x18446a=_0xcdd8,_0x26b6cc=_0x31bab8();while(!![]){try{const _0x106870=-parseInt(_0x18446a(0x1f3))/0x1+-parseInt(_0x18446a(0x1ea))/0x2+-parseInt(_0x18446a(0x1f2))/0x3*(parseInt(_0x18446a(0x1f0))/0x4)+-parseInt(_0x18446a(0x1e9))/0x5+-parseInt(_0x18446a(0x1ec))/0x6+parseInt(_0x18446a(0x1ef))/0x7*(-parseInt(_0x18446a(0x1ed))/0x8)+parseInt(_0x18446a(0x1ee))/0x9;if(_0x106870===_0x5424e2)break;else _0x26b6cc['push'](_0x26b6cc['shift']());}catch(_0x884d07){_0x26b6cc['push'](_0x26b6cc['shift']());}}}(_0x31d2,0xdabdf));function _0xcdd8(_0x587897,_0x59b941){_0x587897=_0x587897-0x1e9;const _0x31d27a=_0x31d2();let _0xcdd81a=_0x31d27a[_0x587897];return _0xcdd81a;}const locale={'print':{'menu':_0x41bcad(0x1eb)}};module[_0x41bcad(0x1f1)]=locale;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x110967=_0x41f0;function _0x13e6(){const _0xe57a72=['3246636MeYvbj','13486AkbFOr','6080lYyfMG','791KBXGlg','1570971FnOcOH','5PUmEuM','2oxPRyd','exports','970431gCwVbG','1123160sXZHal','1245771wnTiJo','40242vdtpvP'];_0x13e6=function(){return _0xe57a72;};return _0x13e6();}(function(_0x47439a,_0x20d543){const _0x5800f9=_0x41f0,_0x144b75=_0x47439a();while(!![]){try{const _0x22b9ed=parseInt(_0x5800f9(0xb4))/0x1+parseInt(_0x5800f9(0xb2))/0x2*(parseInt(_0x5800f9(0xb0))/0x3)+-parseInt(_0x5800f9(0xb8))/0x4*(-parseInt(_0x5800f9(0xb1))/0x5)+parseInt(_0x5800f9(0xb7))/0x6*(-parseInt(_0x5800f9(0xaf))/0x7)+-parseInt(_0x5800f9(0xb5))/0x8+-parseInt(_0x5800f9(0xb6))/0x9+-parseInt(_0x5800f9(0xba))/0xa*(parseInt(_0x5800f9(0xb9))/0xb);if(_0x22b9ed===_0x20d543)break;else _0x144b75['push'](_0x144b75['shift']());}catch(_0x5864ba){_0x144b75['push'](_0x144b75['shift']());}}}(_0x13e6,0x7fd72));const locale={'print':{'menu':'Imprimer'}};function _0x41f0(_0x27f97b,_0x50a1f9){_0x27f97b=_0x27f97b-0xaf;const _0x13e649=_0x13e6();let _0x41f067=_0x13e649[_0x27f97b];return _0x41f067;}module[_0x110967(0xb3)]=locale;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0xd16b(){const _0x45641c=['146145xccHSd','100748CWKiMb','8ivmjZn','30hJucXn','416871WRhHDb','3397757Jisggb','5935080rYzONB','7503272YOILrJ','30NMCWiY','exports','64KjrudB','895145LeTcWi'];_0xd16b=function(){return _0x45641c;};return _0xd16b();}function _0x48c0(_0x3b867b,_0x5acfa0){_0x3b867b=_0x3b867b-0x13a;const _0xd16be7=_0xd16b();let _0x48c0e5=_0xd16be7[_0x3b867b];return _0x48c0e5;}const _0xcc3a35=_0x48c0;(function(_0x5c0f62,_0x492350){const _0x1d8c47=_0x48c0,_0x17de41=_0x5c0f62();while(!![]){try{const _0x4a66dd=-parseInt(_0x1d8c47(0x13b))/0x1+parseInt(_0x1d8c47(0x13e))/0x2*(parseInt(_0x1d8c47(0x13c))/0x3)+parseInt(_0x1d8c47(0x13d))/0x4*(parseInt(_0x1d8c47(0x144))/0x5)+parseInt(_0x1d8c47(0x142))/0x6+-parseInt(_0x1d8c47(0x143))/0x7+-parseInt(_0x1d8c47(0x13a))/0x8*(-parseInt(_0x1d8c47(0x140))/0x9)+parseInt(_0x1d8c47(0x13f))/0xa*(parseInt(_0x1d8c47(0x141))/0xb);if(_0x4a66dd===_0x492350)break;else _0x17de41['push'](_0x17de41['shift']());}catch(_0x45a50d){_0x17de41['push'](_0x17de41['shift']());}}}(_0xd16b,0xa26f6));const locale={'print':{'menu':'印刷'}};module[_0xcc3a35(0x145)]=locale;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x47f8(_0x53c6e7,_0xd3fb79){_0x53c6e7=_0x53c6e7-0x1d1;const _0x3cdd33=_0x3cdd();let _0x47f874=_0x3cdd33[_0x53c6e7];return _0x47f874;}function _0x3cdd(){const _0x5d8a74=['4XsbFRF','330phTDiO','265143VPMGml','212069uIMYTP','4263iIyFRJ','exports','8iDyCZl','1766169CXiZBQ','2934vYrPnd','69444WwwzUz','815915OBuBzB','64100ttAnyY'];_0x3cdd=function(){return _0x5d8a74;};return _0x3cdd();}const _0xf1cc39=_0x47f8;(function(_0x41dcc2,_0x5c552e){const _0x3cfab9=_0x47f8,_0x1d20b4=_0x41dcc2();while(!![]){try{const _0xa02d04=-parseInt(_0x3cfab9(0x1d4))/0x1+parseInt(_0x3cfab9(0x1d1))/0x2+parseInt(_0x3cfab9(0x1db))/0x3+-parseInt(_0x3cfab9(0x1d2))/0x4*(parseInt(_0x3cfab9(0x1dc))/0x5)+parseInt(_0x3cfab9(0x1da))/0x6*(-parseInt(_0x3cfab9(0x1d6))/0x7)+parseInt(_0x3cfab9(0x1d8))/0x8*(parseInt(_0x3cfab9(0x1d9))/0x9)+-parseInt(_0x3cfab9(0x1d3))/0xa*(-parseInt(_0x3cfab9(0x1d5))/0xb);if(_0xa02d04===_0x5c552e)break;else _0x1d20b4['push'](_0x1d20b4['shift']());}catch(_0x2dcee2){_0x1d20b4['push'](_0x1d20b4['shift']());}}}(_0x3cdd,0x276ef));const locale={'print':{'menu':'인쇄'}};module[_0xf1cc39(0x1d7)]=locale;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x27e0ba,_0x29915f){const _0x22b6fd=_0x5931,_0x5798cf=_0x27e0ba();while(!![]){try{const _0x4203a5=-parseInt(_0x22b6fd(0x19d))/0x1*(parseInt(_0x22b6fd(0x198))/0x2)+-parseInt(_0x22b6fd(0x19e))/0x3+-parseInt(_0x22b6fd(0x1a0))/0x4+parseInt(_0x22b6fd(0x19f))/0x5*(parseInt(_0x22b6fd(0x199))/0x6)+parseInt(_0x22b6fd(0x197))/0x7+parseInt(_0x22b6fd(0x19a))/0x8+-parseInt(_0x22b6fd(0x19b))/0x9*(-parseInt(_0x22b6fd(0x19c))/0xa);if(_0x4203a5===_0x29915f)break;else _0x5798cf['push'](_0x5798cf['shift']());}catch(_0x56868a){_0x5798cf['push'](_0x5798cf['shift']());}}}(_0x27f3,0x4fe68));function _0x27f3(){const _0x32afe9=['2250nxFYzK','2921992dGMgyT','3037239mAEaCd','20EZKIbd','214063TGScEG','1192926sjanvZ','2940Ehlyyp','2611300fdYNLS','2317777pVvsvt','2WITQMN'];_0x27f3=function(){return _0x32afe9;};return _0x27f3();}const locale={'print':{'menu':'Печать'}};function _0x5931(_0x2e94d9,_0x5b32a7){_0x2e94d9=_0x2e94d9-0x197;const _0x27f33a=_0x27f3();let _0x593155=_0x27f33a[_0x2e94d9];return _0x593155;}module['exports']=locale;
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x590870=_0x5c6d;function _0x5c6d(_0x25c795,_0x5d5ced){_0x25c795=_0x25c795-0x19e;const _0xa40c67=_0xa40c();let _0x5c6d24=_0xa40c67[_0x25c795];return _0x5c6d24;}(function(_0xad9f94,_0x35805c){const _0x11f047=_0x5c6d,_0x49b8ac=_0xad9f94();while(!![]){try{const _0x45e86f=parseInt(_0x11f047(0x19e))/0x1+parseInt(_0x11f047(0x1a8))/0x2*(-parseInt(_0x11f047(0x1a1))/0x3)+-parseInt(_0x11f047(0x1a7))/0x4+parseInt(_0x11f047(0x1a3))/0x5+parseInt(_0x11f047(0x1a0))/0x6+parseInt(_0x11f047(0x1a6))/0x7+parseInt(_0x11f047(0x1a2))/0x8*(-parseInt(_0x11f047(0x1a4))/0x9);if(_0x45e86f===_0x35805c)break;else _0x49b8ac['push'](_0x49b8ac['shift']());}catch(_0x2902e1){_0x49b8ac['push'](_0x49b8ac['shift']());}}}(_0xa40c,0x6dc37));const locale={'print':{'menu':_0x590870(0x1a5)}};function _0xa40c(){const _0x2a0082=['5440TSUwhH','958965MKsNpg','3087KwBhPd','Tlač','1260658SPNRLa','1258632WkbQwb','2YNuMKI','543093QumUBa','exports','2337540aQHmzT','921243GGmuUl'];_0xa40c=function(){return _0x2a0082;};return _0xa40c();}module[_0x590870(0x19f)]=locale;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x5059(){const _0xeb39b0=['1494392DaQCGz','1077312bgsaVl','1726929GTilIw','909958onWxOg','13809260vMBSSA','10620558njROVQ','11761911mkYRaG','2AVsUsx','10HGpHcN','8uiLLiS','exports'];_0x5059=function(){return _0xeb39b0;};return _0x5059();}const _0x5e5f86=_0x5bf3;(function(_0x492720,_0x288ac8){const _0x1bf1e7=_0x5bf3,_0x4d59a8=_0x492720();while(!![]){try{const _0xafc599=parseInt(_0x1bf1e7(0x1f7))/0x1*(parseInt(_0x1bf1e7(0x1fe))/0x2)+-parseInt(_0x1bf1e7(0x1fc))/0x3+parseInt(_0x1bf1e7(0x1fb))/0x4*(-parseInt(_0x1bf1e7(0x1f8))/0x5)+-parseInt(_0x1bf1e7(0x1f5))/0x6+parseInt(_0x1bf1e7(0x1f6))/0x7+-parseInt(_0x1bf1e7(0x1f9))/0x8*(parseInt(_0x1bf1e7(0x1fd))/0x9)+parseInt(_0x1bf1e7(0x1f4))/0xa;if(_0xafc599===_0x288ac8)break;else _0x4d59a8['push'](_0x4d59a8['shift']());}catch(_0x20a415){_0x4d59a8['push'](_0x4d59a8['shift']());}}}(_0x5059,0xdc6e3));const locale={'print':{'menu':'In'}};function _0x5bf3(_0x300189,_0x584ddc){_0x300189=_0x300189-0x1f4;const _0x505976=_0x5059();let _0x5bf399=_0x505976[_0x300189];return _0x5bf399;}module[_0x5e5f86(0x1fa)]=locale;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x4a96(_0x47491a,_0x3da0c1){_0x47491a=_0x47491a-0x135;const _0x4ceb64=_0x4ceb();let _0x4a9679=_0x4ceb64[_0x47491a];return _0x4a9679;}const _0x3827a7=_0x4a96;(function(_0x274dd4,_0x5e1ba7){const _0x47862b=_0x4a96,_0x171e81=_0x274dd4();while(!![]){try{const _0x6fd98f=parseInt(_0x47862b(0x13b))/0x1+parseInt(_0x47862b(0x13d))/0x2+parseInt(_0x47862b(0x136))/0x3*(parseInt(_0x47862b(0x13e))/0x4)+parseInt(_0x47862b(0x135))/0x5*(parseInt(_0x47862b(0x138))/0x6)+-parseInt(_0x47862b(0x13c))/0x7+-parseInt(_0x47862b(0x137))/0x8+-parseInt(_0x47862b(0x139))/0x9;if(_0x6fd98f===_0x5e1ba7)break;else _0x171e81['push'](_0x171e81['shift']());}catch(_0x5e9c06){_0x171e81['push'](_0x171e81['shift']());}}}(_0x4ceb,0x25de3));const locale={'print':{'menu':'打印'}};module[_0x3827a7(0x13a)]=locale;function _0x4ceb(){const _0x3226d2=['362292mJYSvc','490002DKaELJ','4DUPnse','21495pDpUiJ','242013iUeEJS','1406088VmRziB','402kHCACH','4757886xPTJxZ','exports','297573IfgvcN'];_0x4ceb=function(){return _0x3226d2;};return _0x4ceb();}
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x8b4bde=_0x2fdd;function _0xb82b(){const _0x28e945=['10YZmprc','exports','830772mnAnuy','3064472dKGRbY','33003tQdWfP','6046535QtDuIi','3448qIKQtv','3NwLvai','657jUhLWf','8087232rtvBKa','5YdfYTi','3164805lCQbbh','1098ZTSgAm'];_0xb82b=function(){return _0x28e945;};return _0xb82b();}(function(_0x57cc47,_0x194ca7){const _0x32f7d0=_0x2fdd,_0x560cd7=_0x57cc47();while(!![]){try{const _0x1c0088=-parseInt(_0x32f7d0(0x1df))/0x1*(parseInt(_0x32f7d0(0x1e3))/0x2)+parseInt(_0x32f7d0(0x1de))/0x3*(parseInt(_0x32f7d0(0x1e7))/0x4)+parseInt(_0x32f7d0(0x1e1))/0x5*(-parseInt(_0x32f7d0(0x1e0))/0x6)+-parseInt(_0x32f7d0(0x1e2))/0x7+parseInt(_0x32f7d0(0x1dd))/0x8*(parseInt(_0x32f7d0(0x1db))/0x9)+-parseInt(_0x32f7d0(0x1e4))/0xa*(-parseInt(_0x32f7d0(0x1dc))/0xb)+parseInt(_0x32f7d0(0x1e6))/0xc;if(_0x1c0088===_0x194ca7)break;else _0x560cd7['push'](_0x560cd7['shift']());}catch(_0xfea8e3){_0x560cd7['push'](_0x560cd7['shift']());}}}(_0xb82b,0xc47df));function _0x2fdd(_0x85119b,_0x22d253){_0x85119b=_0x85119b-0x1db;const _0xb82b5=_0xb82b();let _0x2fdd23=_0xb82b5[_0x85119b];return _0x2fdd23;}const locale={'print':{'menu':'列印'}};module[_0x8b4bde(0x1e5)]=locale;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x11ca05=_0x24b8;(function(_0x2819c3,_0x2e112e){const _0x2ebc9c=_0x24b8,_0x383b20=_0x2819c3();while(!![]){try{const _0xa49445=parseInt(_0x2ebc9c(0x169))/0x1+parseInt(_0x2ebc9c(0x1b9))/0x2+parseInt(_0x2ebc9c(0x1ca))/0x3+-parseInt(_0x2ebc9c(0x1b2))/0x4+-parseInt(_0x2ebc9c(0x154))/0x5*(parseInt(_0x2ebc9c(0x19b))/0x6)+-parseInt(_0x2ebc9c(0x16e))/0x7+parseInt(_0x2ebc9c(0x1b1))/0x8*(parseInt(_0x2ebc9c(0x182))/0x9);if(_0xa49445===_0x2e112e)break;else _0x383b20['push'](_0x383b20['shift']());}catch(_0x537da8){_0x383b20['push'](_0x383b20['shift']());}}}(_0x364d,0xf04ac));import{CommandType,DependentOn,Disposable,DisposableCollection,DocumentFlavor,ICommandService,IConfigService,IUniverInstanceService,Inject,Injector,Plugin,UniverInstanceType,generateRandomId,merge,registerDependencies}from'@univerjs/core';import{DocPrintInterceptorService,SwitchDocModeCommand,VIEWPORT_KEY}from'@univerjs/docs-ui';import{CanvasRenderMode,Documents,Engine,IRenderManagerService,Scene,Viewport}from'@univerjs/engine-render';import{LS_CONFIG_KEY,UniverLicensePlugin,getDocFeatureLimit,getLicenseInfo,isFeatureAuthorizedWithinTime,isLocalCheck}from'@univerjs-pro/license';import{PRINT_CANVAS_CLASS,PRINT_CONTAINER_CLASS,PrintDirection,createPrintStyle}from'@univerjs-pro/print';import{DocSkeletonManagerService}from'@univerjs/docs';import{ComponentManager,IGlobalZoneService,IMenuManagerService,MenuItemType,RibbonStartGroup,getMenuHiddenObservable}from'@univerjs/ui';function _0x364d(){const _0x465b43=['body','1788474umMSYt','decorate','_initComponents','string','top','with','left','pageWidth','_addViewport','_scene','register','_key','print.menu','PrintIcon','className','toPrimitive','_documents','container','mpn','position','prototype','height','384bcOPOt','6202948yxqpjl','isPro','UNIVER_DOCS_PRINT','version','timeValid','appendChild','updateScrollVal','1815416LJveIq','_injector','defineProperty','interceptor','UNIVER_DOC','onReady','message','map','fill','absolute','translate','fetchThroughInterceptors','_skeletonData','page','_container','bottom','_root','1892331yfqbXF','_effects','type','_globalZoneService','_renderManagerService','_componentManager','_calculateLayout','createElement','documentFlavor','100%','docs.operation.print','pageHeight','_configService','_skeleton','getSkeleton','0.22.0','restore','5lFneTa','getUnitId','min','dispose','_commandService','BUTTON','getConfig','getSkeletonData','length','iterator','symbol','DocumentDataModel\x20is\x20not\x20found','onbeforeprint','constructor','_viewMain','Pages\x20are\x20not\x20found','default','width','div','Skeleton\x20data\x20is\x20not\x20found','root','1842141BOOSvF','OTHERS','PRINTING_DOM_COLLECT','PRINTING_COMPONENT_COLLECT','Printing','5616842vaJyee','_engine','getRenderById','parseInt','_initCommands','print','_offsetConfig','onStarting','removeChild','render','pages','forEach','_paperSize','_currentRender','makeForceDirty','setConfig','syncExecuteCommand','disposeWithMe','get','packageName','47781LSJqbB','getCurrentUnitOfType','prepare','menu','function','POSITIVE_INFINITY','registerCommand','getUnit','_menuManagerService','Render\x20is\x20not\x20found','getCanvas','_initRenderer','scale','_config','style','_univerInstanceService','getOffsetConfig','_addComponent','getInterceptPoints','TRADITIONAL','_page','save','_unitId','makeDirty'];_0x364d=function(){return _0x465b43;};return _0x364d();}import{UniverNetworkPlugin}from'@univerjs/network';import{PrintIcon}from'@univerjs/icons';function _typeof(_0x24927a){'@babel/helpers - typeof';const _0x23cad4=_0x24b8;return _typeof=_0x23cad4(0x186)==typeof Symbol&&'symbol'==typeof Symbol[_0x23cad4(0x15d)]?function(_0x4a7c8b){return typeof _0x4a7c8b;}:function(_0x4a30f7){const _0x4b0997=_0x23cad4;return _0x4a30f7&&'function'==typeof Symbol&&_0x4a30f7[_0x4b0997(0x161)]===Symbol&&_0x4a30f7!==Symbol[_0x4b0997(0x1af)]?_0x4b0997(0x15e):typeof _0x4a30f7;},_typeof(_0x24927a);}function toPrimitive(_0x311397,_0x3d2094){const _0x4a7657=_0x24b8;if('object'!=_typeof(_0x311397)||!_0x311397)return _0x311397;var _0x379e8e=_0x311397[Symbol[_0x4a7657(0x1aa)]];if(void 0x0!==_0x379e8e){var _0x51db05=_0x379e8e['call'](_0x311397,_0x3d2094||_0x4a7657(0x164));if('object'!=_typeof(_0x51db05))return _0x51db05;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4a7657(0x19e)===_0x3d2094?String:Number)(_0x311397);}function toPropertyKey(_0x40113f){const _0x49f5d6=_0x24b8;var _0x3b84be=toPrimitive(_0x40113f,_0x49f5d6(0x19e));return _0x49f5d6(0x15e)==_typeof(_0x3b84be)?_0x3b84be:_0x3b84be+'';}function _defineProperty(_0x4092fc,_0x3e6388,_0x122dbd){return(_0x3e6388=toPropertyKey(_0x3e6388))in _0x4092fc?Object['defineProperty'](_0x4092fc,_0x3e6388,{'value':_0x122dbd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4092fc[_0x3e6388]=_0x122dbd,_0x4092fc;}var DocPrintPageCanvasView=class extends Disposable{get[_0x11ca05(0x1ac)](){const _0x22ebe6=_0x11ca05;return this[_0x22ebe6(0x1c7)];}get['root'](){return this['_root'];}get[_0x11ca05(0x17b)](){const _0x24229f=_0x11ca05,_0x3b85e5=this[_0x24229f(0x1ba)][_0x24229f(0x180)](IRenderManagerService)[_0x24229f(0x170)](this['_unitId']);if(!_0x3b85e5)throw new Error('Render\x20is\x20not\x20found');return _0x3b85e5;}get['_skeleton'](){const _0x1d70c3=_0x11ca05;return this[_0x1d70c3(0x17b)][_0x1d70c3(0x1a0)](DocSkeletonManagerService)[_0x1d70c3(0x151)]();}get[_0x11ca05(0x1c5)](){const _0x570a5a=_0x11ca05,_0xdfdedb=this[_0x570a5a(0x150)][_0x570a5a(0x15b)]();if(!_0xdfdedb)throw new Error(_0x570a5a(0x167));return _0xdfdedb;}get[_0x11ca05(0x17a)](){const _0x1cd451=_0x11ca05,_0x29eef2=this[_0x1cd451(0x1c5)][_0x1cd451(0x178)][0x0];return{'width':_0x29eef2[_0x1cd451(0x1a2)],'height':_0x29eef2[_0x1cd451(0x14e)]};}constructor(_0x4190de,_0x1f852e,_0x58c384,_0x59672d){const _0x166875=_0x11ca05;super(),this[_0x166875(0x1ba)]=_0x4190de,this['_page']=_0x1f852e,this['_unitId']=_0x58c384,this[_0x166875(0x174)]=_0x59672d,_defineProperty(this,'_container',document[_0x166875(0x1d1)]('div')),_defineProperty(this,_0x166875(0x1c9),document[_0x166875(0x1d1)](_0x166875(0x166))),_defineProperty(this,_0x166875(0x16f),void 0x0),_defineProperty(this,_0x166875(0x1a4),void 0x0),_defineProperty(this,_0x166875(0x1a6),void 0x0),_defineProperty(this,_0x166875(0x1ab),void 0x0),_defineProperty(this,_0x166875(0x162),void 0x0),_defineProperty(this,_0x166875(0x1cb),new DisposableCollection()),this[_0x166875(0x1a6)]=generateRandomId(0x4),this[_0x166875(0x18d)](),this[_0x166875(0x17f)]({'dispose':()=>{const _0x5c7290=_0x166875;this['_engine'][_0x5c7290(0x157)](),this['_scene'][_0x5c7290(0x157)](),this[_0x5c7290(0x1cb)][_0x5c7290(0x157)]();}});}[_0x11ca05(0x1d0)](){const _0x4476e0=_0x11ca05,{docsTop:_0x615ba4,docsLeft:_0x356264}=this[_0x4476e0(0x1ab)][_0x4476e0(0x192)](),_0x107110=this[_0x4476e0(0x17a)][_0x4476e0(0x1b0)],_0x47872a=this['_paperSize'][_0x4476e0(0x165)];return{'top':_0x615ba4+(_0x615ba4+_0x107110)*this[_0x4476e0(0x196)],'bottom':_0x615ba4+(_0x615ba4+_0x107110)*(this[_0x4476e0(0x196)]+0x1),'left':_0x356264,'right':_0x356264+_0x47872a};}[_0x11ca05(0x18d)](){const _0x924f08=_0x11ca05,_0x1ff8af=0x1,_0x555f3e=0x1;this[_0x924f08(0x16f)]=new Engine('',{'elementWidth':this[_0x924f08(0x17a)][_0x924f08(0x165)],'elementHeight':this[_0x924f08(0x17a)][_0x924f08(0x1b0)],'dpr':_0x555f3e,'renderMode':CanvasRenderMode[_0x924f08(0x16d)]}),this[_0x924f08(0x1a4)]=new Scene(this[_0x924f08(0x1a6)],this[_0x924f08(0x16f)]),this[_0x924f08(0x1a4)][_0x924f08(0x18e)](_0x1ff8af,_0x1ff8af),this[_0x924f08(0x16f)]['setContainer'](this[_0x924f08(0x1c7)],![]),this['_engine'][_0x924f08(0x18c)]()['getContext']()['setId'](this[_0x924f08(0x1a6)]+'_'+generateRandomId(0x4)),this[_0x924f08(0x193)](),this[_0x924f08(0x1a3)]();}['_addComponent'](){const _0x4f6ac0=_0x11ca05,{pageMarginLeft:_0x2d51e1,pageMarginTop:_0x6638f0,docsLeft:_0x4dd86f,docsTop:_0x132b05}=this[_0x4f6ac0(0x174)],_0x2d8e23={'pageMarginLeft':_0x2d51e1,'pageMarginTop':_0x6638f0},_0xc8b955=new Documents('__DocPrintRender__',this[_0x4f6ac0(0x150)],_0x2d8e23);_0xc8b955[_0x4f6ac0(0x1c3)](_0x4dd86f,_0x132b05),this[_0x4f6ac0(0x1a4)]['addObject'](_0xc8b955),this[_0x4f6ac0(0x1ab)]=_0xc8b955;const _0x41f0b9=this['_injector'][_0x4f6ac0(0x180)](DocPrintInterceptorService);_0x41f0b9['interceptor'][_0x4f6ac0(0x1c4)](_0x41f0b9[_0x4f6ac0(0x1bc)][_0x4f6ac0(0x194)]()[_0x4f6ac0(0x16c)])(void 0x0,{'unitId':this[_0x4f6ac0(0x198)],'scene':this[_0x4f6ac0(0x1a4)],'engine':this['_engine'],'root':this[_0x4f6ac0(0x1c9)],'documents':this[_0x4f6ac0(0x1ab)],'skeleton':this[_0x4f6ac0(0x150)]});}['_addViewport'](){const _0x409f28=_0x11ca05;this[_0x409f28(0x162)]=new Viewport(VIEWPORT_KEY['VIEW_MAIN'],this[_0x409f28(0x1a4)],{'explicitViewportWidthSet':!![],'explicitViewportHeightSet':!![]});}[_0x11ca05(0x184)](){const _0x5d5313=_0x11ca05,_0x2495e1=this[_0x5d5313(0x1d0)]();this[_0x5d5313(0x162)][_0x5d5313(0x1b8)]({'viewportScrollX':_0x2495e1[_0x5d5313(0x1a1)],'viewportScrollY':_0x2495e1[_0x5d5313(0x19f)]}),this['_root'][_0x5d5313(0x190)][_0x5d5313(0x1ae)]=_0x5d5313(0x1c2),this[_0x5d5313(0x1c9)][_0x5d5313(0x190)][_0x5d5313(0x19f)]='0px',this[_0x5d5313(0x1c9)]['style']['left']='0px',this['_root']['style'][_0x5d5313(0x165)]=_0x5d5313(0x1d3),this[_0x5d5313(0x1c9)]['style'][_0x5d5313(0x1b0)]=_0x5d5313(0x1d3),this[_0x5d5313(0x1cb)]=new DisposableCollection();const _0x1c0db3=this['_injector'][_0x5d5313(0x180)](DocPrintInterceptorService);_0x1c0db3[_0x5d5313(0x1bc)][_0x5d5313(0x1c4)](_0x1c0db3[_0x5d5313(0x1bc)][_0x5d5313(0x194)]()[_0x5d5313(0x16b)])(this[_0x5d5313(0x1cb)],{'unitId':this[_0x5d5313(0x198)],'scene':this[_0x5d5313(0x1a4)],'engine':this[_0x5d5313(0x16f)],'root':this[_0x5d5313(0x1c9)],'skeleton':this['_skeleton'],'offset':{'x':_0x2495e1[_0x5d5313(0x1a1)],'y':_0x2495e1[_0x5d5313(0x19f)]},'bound':{'top':_0x2495e1[_0x5d5313(0x19f)],'left':_0x2495e1[_0x5d5313(0x1a1)],'right':_0x2495e1['right'],'bottom':_0x2495e1[_0x5d5313(0x1c8)]}});}[_0x11ca05(0x177)](){const _0x4203b3=_0x11ca05,_0x4a05f6=this[_0x4203b3(0x16f)]['getCanvas']()['getContext']();this['_documents'][_0x4203b3(0x17c)](),this[_0x4203b3(0x1a4)][_0x4203b3(0x199)](),_0x4a05f6[_0x4203b3(0x197)](),this[_0x4203b3(0x1a4)][_0x4203b3(0x177)](),_0x4a05f6[_0x4203b3(0x153)]();}};function __decorateParam(_0x3d920e,_0x51bd9a){return function(_0x423042,_0x1b2a6c){_0x51bd9a(_0x423042,_0x1b2a6c,_0x3d920e);};}function __decorate(_0x545b3c,_0x587521,_0x491163,_0x2a7ae9){const _0x1aa6f9=_0x11ca05;var _0x48977b=arguments[_0x1aa6f9(0x15c)],_0x1148da=_0x48977b<0x3?_0x587521:_0x2a7ae9===null?_0x2a7ae9=Object['getOwnPropertyDescriptor'](_0x587521,_0x491163):_0x2a7ae9,_0x1d9350;if(typeof Reflect==='object'&&typeof Reflect[_0x1aa6f9(0x19c)]===_0x1aa6f9(0x186))_0x1148da=Reflect[_0x1aa6f9(0x19c)](_0x545b3c,_0x587521,_0x491163,_0x2a7ae9);else{for(var _0x1284d9=_0x545b3c['length']-0x1;_0x1284d9>=0x0;_0x1284d9--)if(_0x1d9350=_0x545b3c[_0x1284d9])_0x1148da=(_0x48977b<0x3?_0x1d9350(_0x1148da):_0x48977b>0x3?_0x1d9350(_0x587521,_0x491163,_0x1148da):_0x1d9350(_0x587521,_0x491163))||_0x1148da;}return _0x48977b>0x3&&_0x1148da&&Object[_0x1aa6f9(0x1bb)](_0x587521,_0x491163,_0x1148da),_0x1148da;}const BUILD_TIMESTAMP=Number[_0x11ca05(0x171)](0x69ff10fd),DEFAULT_PRINT_LIMIT=0x1,getPrintInfoByLicense=(_0x34cf42,_0x32cb27,_0xfef254)=>{const _0x431b65=_0x11ca05,_0x253195={'page':_0x34cf42,'isPro':![],'timeValid':![]};if(!_0x32cb27||!_0xfef254)return _0x253195;const _0xeaa1e4=getLicenseInfo(_0x32cb27,_0xfef254);if(_0xeaa1e4['valid']){const _0x2c3672=_0xeaa1e4[_0x431b65(0x1bf)],_0x354130=isFeatureAuthorizedWithinTime(_0x2c3672,'df',BUILD_TIMESTAMP);_0x253195[_0x431b65(0x1b3)]=_0x354130,_0x253195[_0x431b65(0x1b6)]=_0x354130,_0x253195[_0x431b65(0x1c6)]=getDocFeatureLimit(_0x2c3672,_0x354130,_0x431b65(0x1ad),_0x34cf42,_0x34cf42,0x0);}return _0x253195;};let DocPrintService=class DocPrintService extends Disposable{constructor(_0x3541a6,_0x4abe2e,_0x77a2e1,_0x357c8a,_0x272447){const _0xee61e3=_0x11ca05;super(),this[_0xee61e3(0x191)]=_0x3541a6,this[_0xee61e3(0x1ce)]=_0x4abe2e,this[_0xee61e3(0x1ba)]=_0x77a2e1,this['_configService']=_0x357c8a,this['_globalZoneService']=_0x272447;}[_0x11ca05(0x173)](_0x3a71bf){const _0x3cbfb0=_0x11ca05;var _0x57d838,_0x1ccf88;const {ls:_0xb8e99a,pbk:_0x3e477b}=(_0x57d838=this[_0x3cbfb0(0x14f)][_0x3cbfb0(0x15a)](LS_CONFIG_KEY))!==null&&_0x57d838!==void 0x0?_0x57d838:{},_0x8ace78=isLocalCheck()?Number[_0x3cbfb0(0x187)]:getPrintInfoByLicense(0x1,_0xb8e99a,_0x3e477b)['page'];if(!this['_univerInstanceService'][_0x3cbfb0(0x189)](_0x3a71bf,UniverInstanceType[_0x3cbfb0(0x1bd)]))throw new Error(_0x3cbfb0(0x15f));const _0x4caf29=this[_0x3cbfb0(0x1ce)]['getRenderById'](_0x3a71bf);if(!_0x4caf29)throw new Error(_0x3cbfb0(0x18b));const _0x104067=(_0x1ccf88=_0x4caf29[_0x3cbfb0(0x1a0)](DocSkeletonManagerService)[_0x3cbfb0(0x151)]()['getSkeletonData']())===null||_0x1ccf88===void 0x0?void 0x0:_0x1ccf88['pages'];if(!_0x104067)throw new Error(_0x3cbfb0(0x163));const _0x45774b={'width':_0x104067[0x0][_0x3cbfb0(0x1a2)],'height':_0x104067[0x0][_0x3cbfb0(0x14e)]},_0x35ac5b=_0x104067[_0x3cbfb0(0x15c)],_0x54ff55=Math[_0x3cbfb0(0x156)](_0x8ace78,_0x35ac5b),_0x442bd6=_0x4caf29['mainComponent'][_0x3cbfb0(0x192)](),_0x29dfe1=document[_0x3cbfb0(0x1d1)](_0x3cbfb0(0x166));_0x29dfe1[_0x3cbfb0(0x1a9)]=PRINT_CONTAINER_CLASS;const _0x19a9df=new Array(_0x54ff55)[_0x3cbfb0(0x1c1)](null)[_0x3cbfb0(0x1c0)]((_0x2ae0f9,_0x3cd797)=>{const _0x2d1ead=_0x3cbfb0,_0x839680=new DocPrintPageCanvasView(this[_0x2d1ead(0x1ba)],_0x3cd797,_0x3a71bf,_0x442bd6);return _0x839680[_0x2d1ead(0x1ac)][_0x2d1ead(0x1a9)]=PRINT_CANVAS_CLASS,_0x839680;});_0x19a9df[_0x3cbfb0(0x179)](_0x214b1d=>{const _0x37bd44=_0x3cbfb0;_0x29dfe1['appendChild'](_0x214b1d[_0x37bd44(0x1ac)]),_0x214b1d[_0x37bd44(0x1ac)][_0x37bd44(0x1b7)](_0x214b1d[_0x37bd44(0x168)]),_0x214b1d[_0x37bd44(0x184)]();});const _0x52f1df=createPrintStyle(_0x45774b['width'],_0x45774b[_0x3cbfb0(0x1b0)],PrintDirection['Portrait']);return document['body'][_0x3cbfb0(0x1b7)](_0x52f1df),document[_0x3cbfb0(0x19a)][_0x3cbfb0(0x1b7)](_0x29dfe1),new Promise(_0x4e3058=>{setTimeout(()=>{const _0x8c6820=_0x24b8;window[_0x8c6820(0x160)]=()=>{_0x19a9df['forEach'](_0x160787=>{const _0x2ffb28=_0x24b8;_0x160787[_0x2ffb28(0x177)]();});},window['onafterprint']=()=>{const _0x56b2b5=_0x8c6820;_0x19a9df[_0x56b2b5(0x179)](_0x26be51=>{const _0x15cf96=_0x56b2b5;_0x26be51[_0x15cf96(0x157)]();}),document[_0x56b2b5(0x19a)][_0x56b2b5(0x176)](_0x29dfe1),document['body'][_0x56b2b5(0x176)](_0x52f1df),this[_0x56b2b5(0x1cd)]['close'](),_0x4e3058(!![]);},window[_0x8c6820(0x173)]();},0x64);});}};DocPrintService=__decorate([__decorateParam(0x0,IUniverInstanceService),__decorateParam(0x1,IRenderManagerService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService),__decorateParam(0x4,IGlobalZoneService)],DocPrintService);const DocPrintOperation={'id':_0x11ca05(0x14d),'type':CommandType['OPERATION'],'handler':async _0xb0657a=>{const _0x2adf5a=_0x11ca05,_0x38a641=_0xb0657a[_0x2adf5a(0x180)](IUniverInstanceService),_0x301fe3=_0xb0657a['get'](DocPrintService),_0x23d42c=_0xb0657a['get'](IRenderManagerService),_0x38636a=_0xb0657a[_0x2adf5a(0x180)](ICommandService),_0x48c512=_0x38a641[_0x2adf5a(0x183)](UniverInstanceType['UNIVER_DOC']);if(!_0x48c512)return![];if(!_0x23d42c[_0x2adf5a(0x170)](_0x48c512[_0x2adf5a(0x155)]()))throw new Error(_0x2adf5a(0x18b));const _0x141d1b=_0x48c512['getDocumentStyle']()[_0x2adf5a(0x1d2)];if(_0x141d1b!==DocumentFlavor[_0x2adf5a(0x195)])_0x38636a['syncExecuteCommand'](SwitchDocModeCommand['id']);await _0x301fe3['print'](_0x48c512[_0x2adf5a(0x155)]());if(_0x141d1b!==DocumentFlavor[_0x2adf5a(0x195)])_0x38636a[_0x2adf5a(0x17e)](SwitchDocModeCommand['id']);return!![];}},DOCS_PRINT_PLUGIN_CONFIG_KEY='UNIVER_DOCS_PRINT',defaultPluginConfig={};var name='@univerjs-pro/docs-print',version=_0x11ca05(0x152);const DOCS_PRINT_PLUGIN_NAME=_0x11ca05(0x1b4);function DocPrintMenuItemFactory(_0x444340){const _0x1b5db4=_0x11ca05;return{'id':DocPrintOperation['id'],'type':MenuItemType[_0x1b5db4(0x159)],'title':_0x1b5db4(0x1a7),'icon':'PrintIcon','tooltip':'print.menu','hidden$':getMenuHiddenObservable(_0x444340,UniverInstanceType[_0x1b5db4(0x1bd)])};}const menuSchema={[RibbonStartGroup[_0x11ca05(0x16a)]]:{[DocPrintOperation['id']]:{'order':0.1,'menuItemFactory':DocPrintMenuItemFactory}}};let DocsPrintUIController=class DocsPrintUIController extends Disposable{constructor(_0x5f5838,_0x5a5140,_0x59e2e4){const _0x533f1f=_0x11ca05;super(),this['_commandService']=_0x5f5838,this['_menuManagerService']=_0x5a5140,this[_0x533f1f(0x1cf)]=_0x59e2e4,this['_initMenus'](),this[_0x533f1f(0x172)](),this[_0x533f1f(0x19d)]();}['_initMenus'](){const _0x11e51d=_0x11ca05;this[_0x11e51d(0x18a)]['mergeMenu'](menuSchema);}[_0x11ca05(0x172)](){const _0x3f68f6=_0x11ca05;this[_0x3f68f6(0x17f)](this[_0x3f68f6(0x158)][_0x3f68f6(0x188)](DocPrintOperation));}[_0x11ca05(0x19d)](){const _0x221cd3=_0x11ca05;[[_0x221cd3(0x1a8),PrintIcon]]['forEach'](([_0x3aae0f,_0x4f7dcf])=>{const _0x2d845f=_0x221cd3;this[_0x2d845f(0x1cf)][_0x2d845f(0x1a5)](_0x3aae0f,_0x4f7dcf);});}};function _0x24b8(_0x27e76b,_0x14a7a9){_0x27e76b=_0x27e76b-0x14d;const _0x364dd1=_0x364d();let _0x24b853=_0x364dd1[_0x27e76b];return _0x24b853;}DocsPrintUIController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService),__decorateParam(0x2,Inject(ComponentManager))],DocsPrintUIController);let UniverDocsPrintPlugin=class UniverDocsPrintPlugin extends Plugin{constructor(_0x2ea6a2=defaultPluginConfig,_0xd2b593,_0xd6e487){const _0x1caa13=_0x11ca05;super(),this[_0x1caa13(0x18f)]=_0x2ea6a2,this[_0x1caa13(0x1ba)]=_0xd2b593,this['_configService']=_0xd6e487;const {menu:_0x16daa2,..._0x346fdc}=merge({},defaultPluginConfig,this[_0x1caa13(0x18f)]);if(_0x16daa2)this['_configService'][_0x1caa13(0x17d)](_0x1caa13(0x185),_0x16daa2,{'merge':!![]});this['_configService'][_0x1caa13(0x17d)](DOCS_PRINT_PLUGIN_CONFIG_KEY,_0x346fdc);}[_0x11ca05(0x175)](){const _0x4a93d1=_0x11ca05;registerDependencies(this[_0x4a93d1(0x1ba)],[[DocPrintService],[DocsPrintUIController]]);}[_0x11ca05(0x1be)](){const _0x540c81=_0x11ca05;this[_0x540c81(0x1ba)][_0x540c81(0x180)](DocsPrintUIController);}};_defineProperty(UniverDocsPrintPlugin,'pluginName',DOCS_PRINT_PLUGIN_NAME),_defineProperty(UniverDocsPrintPlugin,_0x11ca05(0x181),name),_defineProperty(UniverDocsPrintPlugin,_0x11ca05(0x1b5),version),_defineProperty(UniverDocsPrintPlugin,_0x11ca05(0x1cc),UniverInstanceType['UNIVER_DOC']),UniverDocsPrintPlugin=__decorate([DependentOn(UniverNetworkPlugin,UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverDocsPrintPlugin);export{DOCS_PRINT_PLUGIN_CONFIG_KEY,DocPrintOperation,UniverDocsPrintPlugin};
|
|
1
|
+
const _0x2b6ce7=_0x3297;(function(_0x5850a1,_0x29ad99){const _0x488a69=_0x3297,_0x516bde=_0x5850a1();while(!![]){try{const _0x5e0873=parseInt(_0x488a69(0x20c))/0x1+-parseInt(_0x488a69(0x1ff))/0x2+parseInt(_0x488a69(0x1ad))/0x3+-parseInt(_0x488a69(0x206))/0x4*(-parseInt(_0x488a69(0x1ca))/0x5)+parseInt(_0x488a69(0x1ac))/0x6*(-parseInt(_0x488a69(0x21b))/0x7)+parseInt(_0x488a69(0x227))/0x8*(-parseInt(_0x488a69(0x1c1))/0x9)+parseInt(_0x488a69(0x1a4))/0xa;if(_0x5e0873===_0x29ad99)break;else _0x516bde['push'](_0x516bde['shift']());}catch(_0x37f06e){_0x516bde['push'](_0x516bde['shift']());}}}(_0x174e,0xde254));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';import{UniverNetworkPlugin}from'@univerjs/network';import{PrintIcon}from'@univerjs/icons';function _typeof(_0x3d7479){'@babel/helpers - typeof';const _0x2b8b2f=_0x3297;return _typeof=_0x2b8b2f(0x1c7)==typeof Symbol&&'symbol'==typeof Symbol[_0x2b8b2f(0x1cc)]?function(_0x5cf2a3){return typeof _0x5cf2a3;}:function(_0x43d892){const _0x169205=_0x2b8b2f;return _0x43d892&&_0x169205(0x1c7)==typeof Symbol&&_0x43d892[_0x169205(0x1f5)]===Symbol&&_0x43d892!==Symbol['prototype']?_0x169205(0x1fd):typeof _0x43d892;},_typeof(_0x3d7479);}function toPrimitive(_0x4ea8dd,_0x88ef0c){const _0x2775ee=_0x3297;if(_0x2775ee(0x1d5)!=_typeof(_0x4ea8dd)||!_0x4ea8dd)return _0x4ea8dd;var _0x3a47ce=_0x4ea8dd[Symbol['toPrimitive']];if(void 0x0!==_0x3a47ce){var _0xcadc07=_0x3a47ce['call'](_0x4ea8dd,_0x88ef0c||_0x2775ee(0x1de));if(_0x2775ee(0x1d5)!=_typeof(_0xcadc07))return _0xcadc07;throw new TypeError(_0x2775ee(0x220));}return(_0x2775ee(0x1e0)===_0x88ef0c?String:Number)(_0x4ea8dd);}function toPropertyKey(_0x4049c3){const _0x322051=_0x3297;var _0x5ce362=toPrimitive(_0x4049c3,_0x322051(0x1e0));return'symbol'==_typeof(_0x5ce362)?_0x5ce362:_0x5ce362+'';}function _defineProperty(_0x466a66,_0x44abd9,_0x5d9a58){const _0x46a618=_0x3297;return(_0x44abd9=toPropertyKey(_0x44abd9))in _0x466a66?Object[_0x46a618(0x1ba)](_0x466a66,_0x44abd9,{'value':_0x5d9a58,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x466a66[_0x44abd9]=_0x5d9a58,_0x466a66;}var DocPrintPageCanvasView=class extends Disposable{get['container'](){const _0x4c98dc=_0x3297;return this[_0x4c98dc(0x1d6)];}get[_0x2b6ce7(0x1ab)](){const _0x360f57=_0x2b6ce7;return this[_0x360f57(0x21c)];}get[_0x2b6ce7(0x203)](){const _0x563f11=_0x2b6ce7,_0x2dbe2f=this[_0x563f11(0x1a7)][_0x563f11(0x1e4)](IRenderManagerService)[_0x563f11(0x1e6)](this[_0x563f11(0x1c0)]);if(!_0x2dbe2f)throw new Error(_0x563f11(0x1c8));return _0x2dbe2f;}get[_0x2b6ce7(0x1fc)](){const _0x3fce29=_0x2b6ce7;return this[_0x3fce29(0x203)][_0x3fce29(0x1e7)](DocSkeletonManagerService)[_0x3fce29(0x1af)]();}get[_0x2b6ce7(0x1bb)](){const _0x47d927=_0x2b6ce7,_0x2fe504=this['_skeleton'][_0x47d927(0x1b4)]();if(!_0x2fe504)throw new Error('Skeleton\x20data\x20is\x20not\x20found');return _0x2fe504;}get[_0x2b6ce7(0x229)](){const _0xaccc46=_0x2b6ce7,_0x30d002=this[_0xaccc46(0x1bb)][_0xaccc46(0x20a)][0x0];return{'width':_0x30d002['pageWidth'],'height':_0x30d002[_0xaccc46(0x1dd)]};}constructor(_0x5b345a,_0x597a42,_0x4fef07,_0x41f97f){const _0x59e0b7=_0x2b6ce7;super(),this[_0x59e0b7(0x1a7)]=_0x5b345a,this['_page']=_0x597a42,this[_0x59e0b7(0x1c0)]=_0x4fef07,this[_0x59e0b7(0x1e9)]=_0x41f97f,_defineProperty(this,_0x59e0b7(0x1d6),document['createElement'](_0x59e0b7(0x201))),_defineProperty(this,'_root',document[_0x59e0b7(0x1db)](_0x59e0b7(0x201))),_defineProperty(this,_0x59e0b7(0x1d3),void 0x0),_defineProperty(this,_0x59e0b7(0x215),void 0x0),_defineProperty(this,_0x59e0b7(0x1fa),void 0x0),_defineProperty(this,_0x59e0b7(0x218),void 0x0),_defineProperty(this,_0x59e0b7(0x221),void 0x0),_defineProperty(this,_0x59e0b7(0x1f1),new DisposableCollection()),this[_0x59e0b7(0x1fa)]=generateRandomId(0x4),this[_0x59e0b7(0x1f8)](),this[_0x59e0b7(0x214)]({'dispose':()=>{const _0x4ebf0d=_0x59e0b7;this[_0x4ebf0d(0x1d3)][_0x4ebf0d(0x216)](),this['_scene'][_0x4ebf0d(0x216)](),this['_effects']['dispose']();}});}[_0x2b6ce7(0x211)](){const _0x220b0e=_0x2b6ce7,{docsTop:_0x3d1774,docsLeft:_0x451844}=this[_0x220b0e(0x218)][_0x220b0e(0x212)](),_0x5e1cec=this[_0x220b0e(0x229)][_0x220b0e(0x20f)],_0x487680=this['_paperSize'][_0x220b0e(0x1da)];return{'top':_0x3d1774+(_0x3d1774+_0x5e1cec)*this[_0x220b0e(0x1a6)],'bottom':_0x3d1774+(_0x3d1774+_0x5e1cec)*(this[_0x220b0e(0x1a6)]+0x1),'left':_0x451844,'right':_0x451844+_0x487680};}[_0x2b6ce7(0x1f8)](){const _0x1d61f1=_0x2b6ce7,_0x1c51aa=0x1,_0x181d01=0x1;this['_engine']=new Engine('',{'elementWidth':this['_paperSize']['width'],'elementHeight':this[_0x1d61f1(0x229)][_0x1d61f1(0x20f)],'dpr':_0x181d01,'renderMode':CanvasRenderMode[_0x1d61f1(0x1cf)]}),this['_scene']=new Scene(this[_0x1d61f1(0x1fa)],this[_0x1d61f1(0x1d3)]),this[_0x1d61f1(0x215)][_0x1d61f1(0x1b3)](_0x1c51aa,_0x1c51aa),this[_0x1d61f1(0x1d3)][_0x1d61f1(0x1e3)](this[_0x1d61f1(0x1d6)],![]),this[_0x1d61f1(0x1d3)]['getCanvas']()[_0x1d61f1(0x1ea)]()[_0x1d61f1(0x208)](this[_0x1d61f1(0x1fa)]+'_'+generateRandomId(0x4)),this[_0x1d61f1(0x224)](),this['_addViewport']();}[_0x2b6ce7(0x224)](){const _0x3de27f=_0x2b6ce7,{pageMarginLeft:_0x498759,pageMarginTop:_0x30d12e,docsLeft:_0x19696f,docsTop:_0x19cc84}=this[_0x3de27f(0x1e9)],_0x3d1304={'pageMarginLeft':_0x498759,'pageMarginTop':_0x30d12e},_0x134604=new Documents(_0x3de27f(0x1ed),this['_skeleton'],_0x3d1304);_0x134604[_0x3de27f(0x1f3)](_0x19696f,_0x19cc84),this[_0x3de27f(0x215)][_0x3de27f(0x1b0)](_0x134604),this[_0x3de27f(0x218)]=_0x134604;const _0x226c80=this[_0x3de27f(0x1a7)][_0x3de27f(0x1e4)](DocPrintInterceptorService);_0x226c80[_0x3de27f(0x1a5)]['fetchThroughInterceptors'](_0x226c80[_0x3de27f(0x1a5)][_0x3de27f(0x205)]()['PRINTING_COMPONENT_COLLECT'])(void 0x0,{'unitId':this['_unitId'],'scene':this[_0x3de27f(0x215)],'engine':this['_engine'],'root':this[_0x3de27f(0x21c)],'documents':this[_0x3de27f(0x218)],'skeleton':this[_0x3de27f(0x1fc)]});}[_0x2b6ce7(0x225)](){const _0x4b7b0e=_0x2b6ce7;this[_0x4b7b0e(0x221)]=new Viewport(VIEWPORT_KEY[_0x4b7b0e(0x1b9)],this[_0x4b7b0e(0x215)],{'explicitViewportWidthSet':!![],'explicitViewportHeightSet':!![]});}['prepare'](){const _0x3e9e8a=_0x2b6ce7,_0x3c0d19=this['_calculateLayout']();this['_viewMain'][_0x3e9e8a(0x207)]({'viewportScrollX':_0x3c0d19['left'],'viewportScrollY':_0x3c0d19[_0x3e9e8a(0x204)]}),this[_0x3e9e8a(0x21c)][_0x3e9e8a(0x1e1)][_0x3e9e8a(0x1b8)]=_0x3e9e8a(0x223),this[_0x3e9e8a(0x21c)]['style'][_0x3e9e8a(0x204)]=_0x3e9e8a(0x1bf),this[_0x3e9e8a(0x21c)][_0x3e9e8a(0x1e1)][_0x3e9e8a(0x21f)]=_0x3e9e8a(0x1bf),this[_0x3e9e8a(0x21c)]['style']['width']='100%',this['_root'][_0x3e9e8a(0x1e1)][_0x3e9e8a(0x20f)]=_0x3e9e8a(0x1c5),this['_effects']=new DisposableCollection();const _0xaa506f=this[_0x3e9e8a(0x1a7)][_0x3e9e8a(0x1e4)](DocPrintInterceptorService);_0xaa506f[_0x3e9e8a(0x1a5)]['fetchThroughInterceptors'](_0xaa506f[_0x3e9e8a(0x1a5)][_0x3e9e8a(0x205)]()[_0x3e9e8a(0x1b5)])(this[_0x3e9e8a(0x1f1)],{'unitId':this['_unitId'],'scene':this[_0x3e9e8a(0x215)],'engine':this[_0x3e9e8a(0x1d3)],'root':this[_0x3e9e8a(0x21c)],'skeleton':this['_skeleton'],'offset':{'x':_0x3c0d19[_0x3e9e8a(0x21f)],'y':_0x3c0d19['top']},'bound':{'top':_0x3c0d19[_0x3e9e8a(0x204)],'left':_0x3c0d19[_0x3e9e8a(0x21f)],'right':_0x3c0d19['right'],'bottom':_0x3c0d19['bottom']}});}[_0x2b6ce7(0x21d)](){const _0x4ba3f9=_0x2b6ce7,_0x540639=this['_engine']['getCanvas']()[_0x4ba3f9(0x1ea)]();this[_0x4ba3f9(0x218)][_0x4ba3f9(0x1a9)](),this[_0x4ba3f9(0x215)][_0x4ba3f9(0x21a)](),_0x540639[_0x4ba3f9(0x21e)](),this[_0x4ba3f9(0x215)]['render'](),_0x540639[_0x4ba3f9(0x1d9)]();}};function __decorateParam(_0x14add6,_0x2ea825){return function(_0x12472d,_0x1ec50a){_0x2ea825(_0x12472d,_0x1ec50a,_0x14add6);};}function __decorate(_0x17452b,_0x38353e,_0x497341,_0x2a1317){const _0x724cbb=_0x2b6ce7;var _0x9cb73e=arguments[_0x724cbb(0x20b)],_0x37c8c1=_0x9cb73e<0x3?_0x38353e:_0x2a1317===null?_0x2a1317=Object[_0x724cbb(0x1d8)](_0x38353e,_0x497341):_0x2a1317,_0x59f87e;if(typeof Reflect===_0x724cbb(0x1d5)&&typeof Reflect['decorate']===_0x724cbb(0x1c7))_0x37c8c1=Reflect[_0x724cbb(0x1d7)](_0x17452b,_0x38353e,_0x497341,_0x2a1317);else{for(var _0x4d3241=_0x17452b[_0x724cbb(0x20b)]-0x1;_0x4d3241>=0x0;_0x4d3241--)if(_0x59f87e=_0x17452b[_0x4d3241])_0x37c8c1=(_0x9cb73e<0x3?_0x59f87e(_0x37c8c1):_0x9cb73e>0x3?_0x59f87e(_0x38353e,_0x497341,_0x37c8c1):_0x59f87e(_0x38353e,_0x497341))||_0x37c8c1;}return _0x9cb73e>0x3&&_0x37c8c1&&Object['defineProperty'](_0x38353e,_0x497341,_0x37c8c1),_0x37c8c1;}const BUILD_TIMESTAMP=Number[_0x2b6ce7(0x20d)](0x6a042e42),DEFAULT_PRINT_LIMIT=0x1,getPrintInfoByLicense=(_0x16f60b,_0x47f078,_0x55c259)=>{const _0x4eb433=_0x2b6ce7,_0x4734bf={'page':_0x16f60b,'isPro':![],'timeValid':![]};if(!_0x47f078||!_0x55c259)return _0x4734bf;const _0x52c561=getLicenseInfo(_0x47f078,_0x55c259);if(_0x52c561[_0x4eb433(0x1df)]){const _0x6a6500=_0x52c561[_0x4eb433(0x1f4)],_0xdd4128=isFeatureAuthorizedWithinTime(_0x6a6500,'df',BUILD_TIMESTAMP);_0x4734bf['isPro']=_0xdd4128,_0x4734bf[_0x4eb433(0x210)]=_0xdd4128,_0x4734bf[_0x4eb433(0x209)]=getDocFeatureLimit(_0x6a6500,_0xdd4128,'mpn',_0x16f60b,_0x16f60b,0x0);}return _0x4734bf;};function _0x174e(){const _0x52eb42=['getContext','0.22.1','onbeforeprint','__DocPrintRender__','PrintIcon','forEach','setConfig','_effects','syncExecuteCommand','translate','message','constructor','map','_componentManager','_initRenderer','_config','_key','_menuManagerService','_skeleton','symbol','OPERATION','1837956Elbtuk','body','div','pluginName','_currentRender','top','getInterceptPoints','52vmVqBL','updateScrollVal','setId','page','pages','length','217873Eczkyl','parseInt','_univerInstanceService','height','timeValid','_calculateLayout','getOffsetConfig','onReady','disposeWithMe','_scene','dispose','container','_documents','TRADITIONAL','makeDirty','7EpbgJG','_root','render','save','left','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_viewMain','_commandService','absolute','_addComponent','_addViewport','_configService','13127256ESZICY','min','_paperSize','12239620fKVJDs','interceptor','_page','_injector','appendChild','makeForceDirty','documentFlavor','root','4948242DRybjS','3237381vYCzIp','_renderManagerService','getSkeleton','addObject','docs.operation.print','close','scale','getSkeletonData','PRINTING_DOM_COLLECT','Portrait','type','position','VIEW_MAIN','defineProperty','_skeletonData','_initCommands','onafterprint','POSITIVE_INFINITY','0px','_unitId','9pPyntD','UNIVER_DOCS_PRINT','print.menu','packageName','100%','Pages\x20are\x20not\x20found','function','Render\x20is\x20not\x20found','register','682130szuLhC','UNIVER_DOC','iterator','_globalZoneService','_initComponents','Printing','removeChild','@univerjs-pro/docs-print','getCurrentUnitOfType','_engine','mainComponent','object','_container','decorate','getOwnPropertyDescriptor','restore','width','createElement','getUnitId','pageHeight','default','valid','string','style','className','setContainer','get','print','getRenderById','with','_initMenus','_offsetConfig'];_0x174e=function(){return _0x52eb42;};return _0x174e();}let DocPrintService=class DocPrintService extends Disposable{constructor(_0x2295f5,_0x2fa4d7,_0x37d664,_0x262c4,_0x550427){const _0x18d9d9=_0x2b6ce7;super(),this[_0x18d9d9(0x20e)]=_0x2295f5,this['_renderManagerService']=_0x2fa4d7,this['_injector']=_0x37d664,this[_0x18d9d9(0x226)]=_0x262c4,this['_globalZoneService']=_0x550427;}[_0x2b6ce7(0x1e5)](_0x3c000e){const _0x3961a6=_0x2b6ce7;var _0xdf3f16,_0x2fd5b1;const {ls:_0x33f24e,pbk:_0x47669b}=(_0xdf3f16=this[_0x3961a6(0x226)]['getConfig'](LS_CONFIG_KEY))!==null&&_0xdf3f16!==void 0x0?_0xdf3f16:{},_0x334b6d=isLocalCheck()?Number[_0x3961a6(0x1be)]:getPrintInfoByLicense(0x1,_0x33f24e,_0x47669b)[_0x3961a6(0x209)];if(!this[_0x3961a6(0x20e)]['getUnit'](_0x3c000e,UniverInstanceType[_0x3961a6(0x1cb)]))throw new Error('DocumentDataModel\x20is\x20not\x20found');const _0xf96e29=this[_0x3961a6(0x1ae)][_0x3961a6(0x1e6)](_0x3c000e);if(!_0xf96e29)throw new Error(_0x3961a6(0x1c8));const _0x349dfc=(_0x2fd5b1=_0xf96e29[_0x3961a6(0x1e7)](DocSkeletonManagerService)[_0x3961a6(0x1af)]()[_0x3961a6(0x1b4)]())===null||_0x2fd5b1===void 0x0?void 0x0:_0x2fd5b1[_0x3961a6(0x20a)];if(!_0x349dfc)throw new Error(_0x3961a6(0x1c6));const _0x4103b7={'width':_0x349dfc[0x0]['pageWidth'],'height':_0x349dfc[0x0][_0x3961a6(0x1dd)]},_0x2c6131=_0x349dfc[_0x3961a6(0x20b)],_0x28f02a=Math[_0x3961a6(0x228)](_0x334b6d,_0x2c6131),_0x45b0fb=_0xf96e29[_0x3961a6(0x1d4)][_0x3961a6(0x212)](),_0x1f8f4d=document[_0x3961a6(0x1db)](_0x3961a6(0x201));_0x1f8f4d['className']=PRINT_CONTAINER_CLASS;const _0x56c12f=new Array(_0x28f02a)['fill'](null)[_0x3961a6(0x1f6)]((_0x42390d,_0x40b565)=>{const _0x2ed332=_0x3961a6,_0x3e2145=new DocPrintPageCanvasView(this[_0x2ed332(0x1a7)],_0x40b565,_0x3c000e,_0x45b0fb);return _0x3e2145[_0x2ed332(0x217)][_0x2ed332(0x1e2)]=PRINT_CANVAS_CLASS,_0x3e2145;});_0x56c12f[_0x3961a6(0x1ef)](_0x56da41=>{const _0x3c8863=_0x3961a6;_0x1f8f4d[_0x3c8863(0x1a8)](_0x56da41[_0x3c8863(0x217)]),_0x56da41['container'][_0x3c8863(0x1a8)](_0x56da41[_0x3c8863(0x1ab)]),_0x56da41['prepare']();});const _0x5904c8=createPrintStyle(_0x4103b7[_0x3961a6(0x1da)],_0x4103b7[_0x3961a6(0x20f)],PrintDirection[_0x3961a6(0x1b6)]);return document[_0x3961a6(0x200)][_0x3961a6(0x1a8)](_0x5904c8),document[_0x3961a6(0x200)][_0x3961a6(0x1a8)](_0x1f8f4d),new Promise(_0x5b226c=>{setTimeout(()=>{const _0x383acd=_0x3297;window[_0x383acd(0x1ec)]=()=>{const _0x108b15=_0x383acd;_0x56c12f[_0x108b15(0x1ef)](_0x42b800=>{const _0x4dbbf5=_0x108b15;_0x42b800[_0x4dbbf5(0x21d)]();});},window[_0x383acd(0x1bd)]=()=>{const _0x2ff987=_0x383acd;_0x56c12f[_0x2ff987(0x1ef)](_0x363cd4=>{const _0x48ffe0=_0x2ff987;_0x363cd4[_0x48ffe0(0x216)]();}),document[_0x2ff987(0x200)][_0x2ff987(0x1d0)](_0x1f8f4d),document[_0x2ff987(0x200)]['removeChild'](_0x5904c8),this[_0x2ff987(0x1cd)][_0x2ff987(0x1b2)](),_0x5b226c(!![]);},window[_0x383acd(0x1e5)]();},0x64);});}};DocPrintService=__decorate([__decorateParam(0x0,IUniverInstanceService),__decorateParam(0x1,IRenderManagerService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService),__decorateParam(0x4,IGlobalZoneService)],DocPrintService);function _0x3297(_0x5db6a0,_0x21e14a){_0x5db6a0=_0x5db6a0-0x1a4;const _0x174ec1=_0x174e();let _0x32972b=_0x174ec1[_0x5db6a0];return _0x32972b;}const DocPrintOperation={'id':_0x2b6ce7(0x1b1),'type':CommandType[_0x2b6ce7(0x1fe)],'handler':async _0x174063=>{const _0x1c37d8=_0x2b6ce7,_0x72b8cd=_0x174063[_0x1c37d8(0x1e4)](IUniverInstanceService),_0x406c41=_0x174063['get'](DocPrintService),_0x12ea26=_0x174063[_0x1c37d8(0x1e4)](IRenderManagerService),_0x36fe7e=_0x174063[_0x1c37d8(0x1e4)](ICommandService),_0x5248e4=_0x72b8cd[_0x1c37d8(0x1d2)](UniverInstanceType[_0x1c37d8(0x1cb)]);if(!_0x5248e4)return![];if(!_0x12ea26[_0x1c37d8(0x1e6)](_0x5248e4[_0x1c37d8(0x1dc)]()))throw new Error('Render\x20is\x20not\x20found');const _0x5cc6bf=_0x5248e4['getDocumentStyle']()[_0x1c37d8(0x1aa)];if(_0x5cc6bf!==DocumentFlavor[_0x1c37d8(0x219)])_0x36fe7e[_0x1c37d8(0x1f2)](SwitchDocModeCommand['id']);await _0x406c41[_0x1c37d8(0x1e5)](_0x5248e4['getUnitId']());if(_0x5cc6bf!==DocumentFlavor['TRADITIONAL'])_0x36fe7e[_0x1c37d8(0x1f2)](SwitchDocModeCommand['id']);return!![];}},DOCS_PRINT_PLUGIN_CONFIG_KEY='UNIVER_DOCS_PRINT',defaultPluginConfig={};var name=_0x2b6ce7(0x1d1),version=_0x2b6ce7(0x1eb);const DOCS_PRINT_PLUGIN_NAME=_0x2b6ce7(0x1c2);function DocPrintMenuItemFactory(_0x43dcf2){const _0x748951=_0x2b6ce7;return{'id':DocPrintOperation['id'],'type':MenuItemType['BUTTON'],'title':'print.menu','icon':'PrintIcon','tooltip':_0x748951(0x1c3),'hidden$':getMenuHiddenObservable(_0x43dcf2,UniverInstanceType[_0x748951(0x1cb)])};}const menuSchema={[RibbonStartGroup['OTHERS']]:{[DocPrintOperation['id']]:{'order':0.1,'menuItemFactory':DocPrintMenuItemFactory}}};let DocsPrintUIController=class DocsPrintUIController extends Disposable{constructor(_0x18caab,_0x26b93a,_0x393d8d){const _0x32e497=_0x2b6ce7;super(),this[_0x32e497(0x222)]=_0x18caab,this[_0x32e497(0x1fb)]=_0x26b93a,this[_0x32e497(0x1f7)]=_0x393d8d,this['_initMenus'](),this[_0x32e497(0x1bc)](),this[_0x32e497(0x1ce)]();}[_0x2b6ce7(0x1e8)](){this['_menuManagerService']['mergeMenu'](menuSchema);}[_0x2b6ce7(0x1bc)](){const _0x4ab598=_0x2b6ce7;this[_0x4ab598(0x214)](this[_0x4ab598(0x222)]['registerCommand'](DocPrintOperation));}[_0x2b6ce7(0x1ce)](){const _0xff73d3=_0x2b6ce7;[[_0xff73d3(0x1ee),PrintIcon]][_0xff73d3(0x1ef)](([_0x981cb4,_0x15ca43])=>{const _0x27cf5e=_0xff73d3;this['_componentManager'][_0x27cf5e(0x1c9)](_0x981cb4,_0x15ca43);});}};DocsPrintUIController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService),__decorateParam(0x2,Inject(ComponentManager))],DocsPrintUIController);let UniverDocsPrintPlugin=class UniverDocsPrintPlugin extends Plugin{constructor(_0x519b26=defaultPluginConfig,_0x552f64,_0x499145){const _0x25ba9e=_0x2b6ce7;super(),this[_0x25ba9e(0x1f9)]=_0x519b26,this[_0x25ba9e(0x1a7)]=_0x552f64,this['_configService']=_0x499145;const {menu:_0x352f5e,..._0x437927}=merge({},defaultPluginConfig,this[_0x25ba9e(0x1f9)]);if(_0x352f5e)this[_0x25ba9e(0x226)][_0x25ba9e(0x1f0)]('menu',_0x352f5e,{'merge':!![]});this[_0x25ba9e(0x226)][_0x25ba9e(0x1f0)](DOCS_PRINT_PLUGIN_CONFIG_KEY,_0x437927);}['onStarting'](){const _0x423198=_0x2b6ce7;registerDependencies(this[_0x423198(0x1a7)],[[DocPrintService],[DocsPrintUIController]]);}[_0x2b6ce7(0x213)](){const _0x4f42bc=_0x2b6ce7;this[_0x4f42bc(0x1a7)]['get'](DocsPrintUIController);}};_defineProperty(UniverDocsPrintPlugin,_0x2b6ce7(0x202),DOCS_PRINT_PLUGIN_NAME),_defineProperty(UniverDocsPrintPlugin,_0x2b6ce7(0x1c4),name),_defineProperty(UniverDocsPrintPlugin,'version',version),_defineProperty(UniverDocsPrintPlugin,_0x2b6ce7(0x1b7),UniverInstanceType[_0x2b6ce7(0x1cb)]),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
|
-
const
|
|
1
|
+
const _0x41cd8f=_0x51a5;(function(_0x86578,_0x1ccf1c){const _0x5a232c=_0x51a5,_0x10f7f6=_0x86578();while(!![]){try{const _0x25331f=parseInt(_0x5a232c(0x150))/0x1*(-parseInt(_0x5a232c(0x14e))/0x2)+parseInt(_0x5a232c(0x14a))/0x3*(parseInt(_0x5a232c(0x148))/0x4)+-parseInt(_0x5a232c(0x14b))/0x5*(parseInt(_0x5a232c(0x14d))/0x6)+-parseInt(_0x5a232c(0x14f))/0x7*(-parseInt(_0x5a232c(0x147))/0x8)+parseInt(_0x5a232c(0x151))/0x9+-parseInt(_0x5a232c(0x149))/0xa*(parseInt(_0x5a232c(0x146))/0xb)+parseInt(_0x5a232c(0x14c))/0xc;if(_0x25331f===_0x1ccf1c)break;else _0x10f7f6['push'](_0x10f7f6['shift']());}catch(_0x56e57c){_0x10f7f6['push'](_0x10f7f6['shift']());}}}(_0x5200,0x2d230));function _0x51a5(_0x1499d2,_0xf12c47){_0x1499d2=_0x1499d2-0x146;const _0x5200f4=_0x5200();let _0x51a5ae=_0x5200f4[_0x1499d2];return _0x51a5ae;}function _0x5200(){const _0x27fdc9=['69nvMFZa','490GFCrgR','1783632LAXSVM','7086ijOThN','219202kgsIez','2737swwqpo','3pYBNeI','2363688UmqVhj','Print','341IPngOP','3176ckevCi','39372OsFbsZ','52730JlUBEz'];_0x5200=function(){return _0x27fdc9;};return _0x5200();}const locale$1={'print':{'menu':_0x41cd8f(0x152)}},locale=locale$1;export{locale as default};
|
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x8c8b6e=_0x31ee;(function(_0x4ac59d,_0x434ac3){const _0x35126a=_0x31ee,_0x5dc7e1=_0x4ac59d();while(!![]){try{const _0x3170db=-parseInt(_0x35126a(0x1ef))/0x1+parseInt(_0x35126a(0x1f0))/0x2*(parseInt(_0x35126a(0x1f6))/0x3)+parseInt(_0x35126a(0x1f2))/0x4*(parseInt(_0x35126a(0x1ec))/0x5)+-parseInt(_0x35126a(0x1f5))/0x6+-parseInt(_0x35126a(0x1f3))/0x7+-parseInt(_0x35126a(0x1f4))/0x8+parseInt(_0x35126a(0x1f1))/0x9*(parseInt(_0x35126a(0x1ee))/0xa);if(_0x3170db===_0x434ac3)break;else _0x5dc7e1['push'](_0x5dc7e1['shift']());}catch(_0x4f6360){_0x5dc7e1['push'](_0x5dc7e1['shift']());}}}(_0x45de,0xd5cac));const locale={'print':{'menu':_0x8c8b6e(0x1ed)}};export{locale as default};function _0x31ee(_0x5c7c11,_0xeaa3ab){_0x5c7c11=_0x5c7c11-0x1ec;const _0x45de75=_0x45de();let _0x31ee7c=_0x45de75[_0x5c7c11];return _0x31ee7c;}function _0x45de(){const _0x29d97f=['617685NeEleR','2926018AFeHQE','198sUxLFs','3055268wQDApX','4824218sEXJFb','6981328jDrklo','924378xYcyFR','3HgnHce','5BQWKEL','Print','446570OMDjmp'];_0x45de=function(){return _0x29d97f;};return _0x45de();}
|
package/lib/es/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x598d0e=_0x2835;(function(_0x47f255,_0x555633){const _0x4aa677=_0x2835,_0x1551d0=_0x47f255();while(!![]){try{const _0x4c4247=parseInt(_0x4aa677(0x13c))/0x1+-parseInt(_0x4aa677(0x139))/0x2*(parseInt(_0x4aa677(0x142))/0x3)+parseInt(_0x4aa677(0x13f))/0x4*(-parseInt(_0x4aa677(0x13a))/0x5)+parseInt(_0x4aa677(0x141))/0x6+-parseInt(_0x4aa677(0x143))/0x7*(parseInt(_0x4aa677(0x140))/0x8)+parseInt(_0x4aa677(0x144))/0x9*(parseInt(_0x4aa677(0x13e))/0xa)+-parseInt(_0x4aa677(0x13b))/0xb*(-parseInt(_0x4aa677(0x13d))/0xc);if(_0x4c4247===_0x555633)break;else _0x1551d0['push'](_0x1551d0['shift']());}catch(_0x4730ab){_0x1551d0['push'](_0x1551d0['shift']());}}}(_0x496b,0x4bb0c));const locale$1={'print':{'menu':_0x598d0e(0x145)}},locale=locale$1;function _0x496b(){const _0x55eadf=['8324eVWuJl','10ikHXuE','11jKSAIk','1614JbTxjP','13217028VfzwKI','10jTLkNH','481812ilLidg','8GVmeKd','281898bpINcB','345QPreag','4124323JlRjQo','4218633JsnvsF','Print'];_0x496b=function(){return _0x55eadf;};return _0x496b();}function _0x2835(_0x16746c,_0x3d75b6){_0x16746c=_0x16746c-0x139;const _0x496b6d=_0x496b();let _0x2835e8=_0x496b6d[_0x16746c];return _0x2835e8;}export{locale as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x300377,_0x44c4eb){const _0x50f666=_0xf786,_0x2f7a63=_0x300377();while(!![]){try{const _0x3e4db1=parseInt(_0x50f666(0x1b3))/0x1*(parseInt(_0x50f666(0x1b5))/0x2)+parseInt(_0x50f666(0x1b7))/0x3*(-parseInt(_0x50f666(0x1b8))/0x4)+parseInt(_0x50f666(0x1b4))/0x5+-parseInt(_0x50f666(0x1b6))/0x6+parseInt(_0x50f666(0x1b0))/0x7+parseInt(_0x50f666(0x1b1))/0x8*(-parseInt(_0x50f666(0x1b9))/0x9)+parseInt(_0x50f666(0x1b2))/0xa;if(_0x3e4db1===_0x44c4eb)break;else _0x2f7a63['push'](_0x2f7a63['shift']());}catch(_0x5efa25){_0x2f7a63['push'](_0x2f7a63['shift']());}}}(_0x2e07,0xa8f92));function _0x2e07(){const _0x3e7bc4=['3121195uIDgxM','2234384wLQtcZ','9160710oBZGkS','2953hrjlGj','6284835wWuChw','24sXAXKp','3504780QAWmqV','39RzSXYE','80284gdaJWp','36vhxAhs'];_0x2e07=function(){return _0x3e7bc4;};return _0x2e07();}const locale={'print':{'menu':'چاپ'}};function _0xf786(_0x1cd1d7,_0x487730){_0x1cd1d7=_0x1cd1d7-0x1b0;const _0x2e076e=_0x2e07();let _0xf786e3=_0x2e076e[_0x1cd1d7];return _0xf786e3;}export{locale as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x1f14(){const _0x234b8f=['1112EMCIzH','1226674vUaZPx','4jcJOQc','1759656JxQekC','5030346vheCLR','25077370IPzfzJ','2038195OtJlXV','2OtETjF','7099288SDoiod','Imprimer','18873WqwCRk'];_0x1f14=function(){return _0x234b8f;};return _0x1f14();}const _0x218cea=_0x2704;(function(_0x4a9fd3,_0x21d64c){const _0x407b59=_0x2704,_0x5d2982=_0x4a9fd3();while(!![]){try{const _0x3ad551=-parseInt(_0x407b59(0x13c))/0x1*(parseInt(_0x407b59(0x142))/0x2)+-parseInt(_0x407b59(0x13e))/0x3+-parseInt(_0x407b59(0x13d))/0x4*(parseInt(_0x407b59(0x141))/0x5)+-parseInt(_0x407b59(0x13f))/0x6+parseInt(_0x407b59(0x143))/0x7+-parseInt(_0x407b59(0x13b))/0x8*(-parseInt(_0x407b59(0x13a))/0x9)+parseInt(_0x407b59(0x140))/0xa;if(_0x3ad551===_0x21d64c)break;else _0x5d2982['push'](_0x5d2982['shift']());}catch(_0x4d2b75){_0x5d2982['push'](_0x5d2982['shift']());}}}(_0x1f14,0xb81e4));function _0x2704(_0x415ec4,_0x10e335){_0x415ec4=_0x415ec4-0x139;const _0x1f14e5=_0x1f14();let _0x270485=_0x1f14e5[_0x415ec4];return _0x270485;}const locale={'print':{'menu':_0x218cea(0x139)}};export{locale as default};
|
package/lib/es/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x20ef(_0x1c2279,_0x2d8316){_0x1c2279=_0x1c2279-0x7c;const _0x3401fc=_0x3401();let _0x20ef5e=_0x3401fc[_0x1c2279];return _0x20ef5e;}(function(_0x35288b,_0x466daf){const _0x494f20=_0x20ef,_0xedb83=_0x35288b();while(!![]){try{const _0x32c27c=-parseInt(_0x494f20(0x82))/0x1*(parseInt(_0x494f20(0x7e))/0x2)+-parseInt(_0x494f20(0x84))/0x3+parseInt(_0x494f20(0x85))/0x4*(-parseInt(_0x494f20(0x7d))/0x5)+parseInt(_0x494f20(0x83))/0x6*(parseInt(_0x494f20(0x7c))/0x7)+-parseInt(_0x494f20(0x81))/0x8+parseInt(_0x494f20(0x80))/0x9+parseInt(_0x494f20(0x7f))/0xa;if(_0x32c27c===_0x466daf)break;else _0xedb83['push'](_0xedb83['shift']());}catch(_0x30a690){_0xedb83['push'](_0xedb83['shift']());}}}(_0x3401,0x929bb));function _0x3401(){const _0x8181bb=['6723801EnGxQI','4423680QWyQhn','1FPreuM','12wlwUMp','3396855vbhhZJ','20cCPXgU','553483XqafwF','1020670dSRWbB','1542484wqSRCW','31724370fWrLQN'];_0x3401=function(){return _0x8181bb;};return _0x3401();}const locale={'print':{'menu':'印刷'}};export{locale as default};
|
package/lib/es/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0xbd69(_0x59f7fe,_0x3c3a98){_0x59f7fe=_0x59f7fe-0x88;const _0x45c022=_0x45c0();let _0xbd6939=_0x45c022[_0x59f7fe];return _0xbd6939;}(function(_0x49df11,_0x11c778){const _0x1de9b0=_0xbd69,_0x5b79d9=_0x49df11();while(!![]){try{const _0x1c90ec=parseInt(_0x1de9b0(0x93))/0x1*(-parseInt(_0x1de9b0(0x8b))/0x2)+parseInt(_0x1de9b0(0x90))/0x3*(-parseInt(_0x1de9b0(0x8f))/0x4)+-parseInt(_0x1de9b0(0x92))/0x5*(parseInt(_0x1de9b0(0x88))/0x6)+-parseInt(_0x1de9b0(0x91))/0x7+parseInt(_0x1de9b0(0x89))/0x8+-parseInt(_0x1de9b0(0x8a))/0x9*(-parseInt(_0x1de9b0(0x8d))/0xa)+-parseInt(_0x1de9b0(0x8c))/0xb*(-parseInt(_0x1de9b0(0x8e))/0xc);if(_0x1c90ec===_0x11c778)break;else _0x5b79d9['push'](_0x5b79d9['shift']());}catch(_0x343afb){_0x5b79d9['push'](_0x5b79d9['shift']());}}}(_0x45c0,0x81d7b));const locale={'print':{'menu':'인쇄'}};function _0x45c0(){const _0x18aa73=['5010810vNGOqT','3272910RrVOXC','24606Ipaeej','6XNfcFS','4406472HvPFZn','27QaQBjb','20wvpitK','6059614dbDZwt','64020tdBzgv','48ILQYFr','16RgBVRL','468903hQEKWD'];_0x45c0=function(){return _0x18aa73;};return _0x45c0();}export{locale as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x37a683=_0x45ae;(function(_0x13882b,_0x349efe){const _0x182eeb=_0x45ae,_0x1b0d44=_0x13882b();while(!![]){try{const _0x729a1f=parseInt(_0x182eeb(0x190))/0x1+-parseInt(_0x182eeb(0x199))/0x2+-parseInt(_0x182eeb(0x194))/0x3+-parseInt(_0x182eeb(0x197))/0x4*(-parseInt(_0x182eeb(0x198))/0x5)+parseInt(_0x182eeb(0x195))/0x6+parseInt(_0x182eeb(0x196))/0x7*(parseInt(_0x182eeb(0x192))/0x8)+-parseInt(_0x182eeb(0x193))/0x9*(parseInt(_0x182eeb(0x191))/0xa);if(_0x729a1f===_0x349efe)break;else _0x1b0d44['push'](_0x1b0d44['shift']());}catch(_0x6e2da){_0x1b0d44['push'](_0x1b0d44['shift']());}}}(_0x5433,0xaa4a0));const locale={'print':{'menu':_0x37a683(0x18f)}};function _0x45ae(_0x48e067,_0x35b7f7){_0x48e067=_0x48e067-0x18f;const _0x5433b0=_0x5433();let _0x45aef7=_0x5433b0[_0x48e067];return _0x45aef7;}function _0x5433(){const _0x32fb4a=['6037686JicXHg','21KgRKlT','502316nCLKMf','35dlICKi','747848xAlCjp','Печать','611182lJIQjO','25110xsBDds','869536QtGlri','4257NBcPjo','1690383bQhBwc'];_0x5433=function(){return _0x32fb4a;};return _0x5433();}export{locale as default};
|
package/lib/es/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0xb292(_0x5f0ce5,_0x4614de){_0x5f0ce5=_0x5f0ce5-0x8a;const _0x184cb3=_0x184c();let _0xb2921=_0x184cb3[_0x5f0ce5];return _0xb2921;}const _0x20dcf9=_0xb292;function _0x184c(){const _0x4fcc1e=['9549byUCgY','368vkXLsi','1417002hXbRLR','1064760WwLdKz','1033636jcJEQu','6PToSgV','Tlač','5gDsRan','1640350EWWxmV','106211AezSFy','65578FXoNaD'];_0x184c=function(){return _0x4fcc1e;};return _0x184c();}(function(_0x44f58e,_0x44900f){const _0x225bf7=_0xb292,_0x5c388d=_0x44f58e();while(!![]){try{const _0x4cfac5=parseInt(_0x225bf7(0x8a))/0x1*(parseInt(_0x225bf7(0x90))/0x2)+parseInt(_0x225bf7(0x8e))/0x3+-parseInt(_0x225bf7(0x8f))/0x4+parseInt(_0x225bf7(0x92))/0x5*(-parseInt(_0x225bf7(0x8d))/0x6)+-parseInt(_0x225bf7(0x94))/0x7+-parseInt(_0x225bf7(0x8c))/0x8*(-parseInt(_0x225bf7(0x8b))/0x9)+parseInt(_0x225bf7(0x93))/0xa;if(_0x4cfac5===_0x44900f)break;else _0x5c388d['push'](_0x5c388d['shift']());}catch(_0x1f1b0b){_0x5c388d['push'](_0x5c388d['shift']());}}}(_0x184c,0x3e31a));const locale={'print':{'menu':_0x20dcf9(0x91)}};export{locale as default};
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3e4a42,_0xdc6b8a){const _0x5ea506=_0x22ae,_0x5c0ff5=_0x3e4a42();while(!![]){try{const _0x19b2c8=parseInt(_0x5ea506(0xd4))/0x1+-parseInt(_0x5ea506(0xd3))/0x2*(parseInt(_0x5ea506(0xd1))/0x3)+parseInt(_0x5ea506(0xd2))/0x4+parseInt(_0x5ea506(0xd7))/0x5*(-parseInt(_0x5ea506(0xd0))/0x6)+-parseInt(_0x5ea506(0xd5))/0x7+-parseInt(_0x5ea506(0xd9))/0x8*(parseInt(_0x5ea506(0xd8))/0x9)+parseInt(_0x5ea506(0xd6))/0xa;if(_0x19b2c8===_0xdc6b8a)break;else _0x5c0ff5['push'](_0x5c0ff5['shift']());}catch(_0x777384){_0x5c0ff5['push'](_0x5c0ff5['shift']());}}}(_0x31b9,0x8e5dd));function _0x31b9(){const _0xe96771=['5qXiNGW','18VGRIvR','4614224NVoehD','5824578nWarLo','381htBIdX','3553448FUIkJS','18058ZEWUCQ','795222tHQvQw','1141567XyKkdu','23336320JKMeyq'];_0x31b9=function(){return _0xe96771;};return _0x31b9();}const locale={'print':{'menu':'In'}};function _0x22ae(_0x4b768e,_0x204c88){_0x4b768e=_0x4b768e-0xd0;const _0x31b9d8=_0x31b9();let _0x22ae51=_0x31b9d8[_0x4b768e];return _0x22ae51;}export{locale as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1abcd1,_0x530e6c){const _0x1251c7=_0x338e,_0x16b13b=_0x1abcd1();while(!![]){try{const _0x3adc48=parseInt(_0x1251c7(0x143))/0x1*(-parseInt(_0x1251c7(0x13f))/0x2)+parseInt(_0x1251c7(0x147))/0x3+-parseInt(_0x1251c7(0x141))/0x4*(-parseInt(_0x1251c7(0x13e))/0x5)+-parseInt(_0x1251c7(0x140))/0x6+parseInt(_0x1251c7(0x145))/0x7*(parseInt(_0x1251c7(0x146))/0x8)+parseInt(_0x1251c7(0x148))/0x9+-parseInt(_0x1251c7(0x144))/0xa*(parseInt(_0x1251c7(0x142))/0xb);if(_0x3adc48===_0x530e6c)break;else _0x16b13b['push'](_0x16b13b['shift']());}catch(_0x35dc4d){_0x16b13b['push'](_0x16b13b['shift']());}}}(_0xf18c,0xc2ee6));function _0x338e(_0x302166,_0x18f7d2){_0x302166=_0x302166-0x13e;const _0xf18c61=_0xf18c();let _0x338ecb=_0xf18c61[_0x302166];return _0x338ecb;}const locale={'print':{'menu':'打印'}};function _0xf18c(){const _0x113d0b=['74396ObaPrV','5464668HxYMPh','44XpCUVc','44lvlpKp','15krFSwS','2014630RicDPl','1855stUchL','15544tcJypw','3697743pnuMkt','1831266heTMZm','510040babNZd'];_0xf18c=function(){return _0x113d0b;};return _0xf18c();}export{locale as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x326e(){const _0x505552=['90543vqjhmT','4732ZEFVTR','5827848JoFCWw','547538vBugVj','52SIDoYL','11bTxGUw','55UPsFWf','3104VnPqaz','40oMPIhw','2060604JurENL','740133vRjGGE','1ghCrRB','324330Nuuias'];_0x326e=function(){return _0x505552;};return _0x326e();}(function(_0x66a6e8,_0x4f13e6){const _0x12a732=_0x5b2c,_0x450a27=_0x66a6e8();while(!![]){try{const _0x43db01=-parseInt(_0x12a732(0x66))/0x1*(parseInt(_0x12a732(0x6b))/0x2)+parseInt(_0x12a732(0x68))/0x3*(-parseInt(_0x12a732(0x6c))/0x4)+parseInt(_0x12a732(0x6e))/0x5*(parseInt(_0x12a732(0x67))/0x6)+parseInt(_0x12a732(0x69))/0x7*(-parseInt(_0x12a732(0x6f))/0x8)+parseInt(_0x12a732(0x65))/0x9*(parseInt(_0x12a732(0x70))/0xa)+-parseInt(_0x12a732(0x6d))/0xb*(-parseInt(_0x12a732(0x6a))/0xc)+-parseInt(_0x12a732(0x71))/0xd;if(_0x43db01===_0x4f13e6)break;else _0x450a27['push'](_0x450a27['shift']());}catch(_0x3824b3){_0x450a27['push'](_0x450a27['shift']());}}}(_0x326e,0x4eaf1));const locale={'print':{'menu':'列印'}};function _0x5b2c(_0x26a1bf,_0x408764){_0x26a1bf=_0x26a1bf-0x65;const _0x326ea8=_0x326e();let _0x5b2caf=_0x326ea8[_0x26a1bf];return _0x5b2caf;}export{locale as default};
|