@univerjs-pro/docs-print 0.21.1 → 0.22.0-insiders.20260513-09bbeca
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/README.md +34 -7
- 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 +19 -13
package/README.md
CHANGED
|
@@ -1,16 +1,43 @@
|
|
|
1
1
|
# @univerjs-pro/docs-print
|
|
2
2
|
|
|
3
|
-
[](https://npmjs.
|
|
4
|
-
[](https://npmjs.com/package/@univerjs-pro/docs-print)
|
|
4
|
+
[](https://npmjs.com/package/@univerjs-pro/docs-print)
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
`@univerjs-pro/docs-print` provides print integration for Univer Docs.
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
## Package Overview
|
|
9
|
+
|
|
10
|
+
| Package | UMD global | CSS | Locales | Facade entry |
|
|
11
|
+
| --- | --- | :---: | :---: | :---: |
|
|
12
|
+
| `@univerjs-pro/docs-print` | `UniverProDocsPrint` | No | Yes | No |
|
|
13
|
+
|
|
14
|
+
## Installation
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
pnpm add @univerjs-pro/docs-print
|
|
18
|
+
# or
|
|
19
|
+
npm install @univerjs-pro/docs-print
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
Keep all `@univerjs/*` and `@univerjs-pro/*` packages on the same version.
|
|
9
23
|
|
|
10
24
|
## Usage
|
|
11
25
|
|
|
12
|
-
|
|
26
|
+
```ts
|
|
27
|
+
import EnUS from '@univerjs-pro/docs-print/locale/en-US';
|
|
28
|
+
import { UniverDocsPrintPlugin } from '@univerjs-pro/docs-print';
|
|
29
|
+
|
|
30
|
+
univer.registerPlugin(UniverDocsPrintPlugin);
|
|
13
31
|
|
|
14
|
-
|
|
15
|
-
npm i @univerjs-pro/docs-print
|
|
32
|
+
// Merge EnUS into your Univer locale map when this package contributes UI text.
|
|
16
33
|
```
|
|
34
|
+
|
|
35
|
+
## Integration Notes
|
|
36
|
+
|
|
37
|
+
Use this package with `@univerjs-pro/print` and the Univer Docs UI packages.
|
|
38
|
+
|
|
39
|
+
## Resources
|
|
40
|
+
|
|
41
|
+
- [Documentation](https://docs.univer.ai/guides/pro)
|
|
42
|
+
- [NPM package](https://npmjs.com/package/@univerjs-pro/docs-print)
|
|
43
|
+
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x2b3765=_0x37dc;(function(_0x58a5d7,_0x2fa653){const _0x53dadd=_0x37dc,_0x448365=_0x58a5d7();while(!![]){try{const _0x460dba=parseInt(_0x53dadd(0x1ba))/0x1+-parseInt(_0x53dadd(0x201))/0x2*(-parseInt(_0x53dadd(0x1e1))/0x3)+parseInt(_0x53dadd(0x1ef))/0x4+parseInt(_0x53dadd(0x249))/0x5*(parseInt(_0x53dadd(0x20d))/0x6)+-parseInt(_0x53dadd(0x200))/0x7+-parseInt(_0x53dadd(0x1d3))/0x8+parseInt(_0x53dadd(0x1aa))/0x9*(-parseInt(_0x53dadd(0x1c9))/0xa);if(_0x460dba===_0x2fa653)break;else _0x448365['push'](_0x448365['shift']());}catch(_0x1e6d28){_0x448365['push'](_0x448365['shift']());}}}(_0x246f,0xee6a1),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'}));let _univerjs_core=require('@univerjs/core'),_univerjs_docs_ui=require('@univerjs/docs-ui'),_univerjs_engine_render=require('@univerjs/engine-render'),_univerjs_pro_license=require('@univerjs-pro/license'),_univerjs_pro_print=require('@univerjs-pro/print'),_univerjs_docs=require('@univerjs/docs'),_univerjs_ui=require('@univerjs/ui'),_univerjs_network=require('@univerjs/network'),_univerjs_icons=require('@univerjs/icons');function _0x37dc(_0x561ea4,_0x21ad15){_0x561ea4=_0x561ea4-0x1a5;const _0x246f6c=_0x246f();let _0x37dc3a=_0x246f6c[_0x561ea4];return _0x37dc3a;}function _typeof(_0x1e06d6){'@babel/helpers - typeof';const _0x502e73=_0x37dc;return _typeof=_0x502e73(0x248)==typeof Symbol&&_0x502e73(0x20e)==typeof Symbol[_0x502e73(0x1a6)]?function(_0x438d89){return typeof _0x438d89;}:function(_0x2b9e3a){const _0x219124=_0x502e73;return _0x2b9e3a&&_0x219124(0x248)==typeof Symbol&&_0x2b9e3a[_0x219124(0x1b4)]===Symbol&&_0x2b9e3a!==Symbol['prototype']?_0x219124(0x20e):typeof _0x2b9e3a;},_typeof(_0x1e06d6);}function toPrimitive(_0x4b1ec6,_0x40ddb0){const _0x48de59=_0x37dc;if(_0x48de59(0x1f6)!=_typeof(_0x4b1ec6)||!_0x4b1ec6)return _0x4b1ec6;var _0x38d53d=_0x4b1ec6[Symbol[_0x48de59(0x229)]];if(void 0x0!==_0x38d53d){var _0x3f2f7f=_0x38d53d[_0x48de59(0x1bf)](_0x4b1ec6,_0x40ddb0||_0x48de59(0x1df));if(_0x48de59(0x1f6)!=_typeof(_0x3f2f7f))return _0x3f2f7f;throw new TypeError(_0x48de59(0x1e0));}return('string'===_0x40ddb0?String:Number)(_0x4b1ec6);}function toPropertyKey(_0x3197c1){const _0x13f502=_0x37dc;var _0x567435=toPrimitive(_0x3197c1,'string');return _0x13f502(0x20e)==_typeof(_0x567435)?_0x567435:_0x567435+'';}function _defineProperty(_0x32fcab,_0x23cb6f,_0x22ab40){const _0x15d532=_0x37dc;return(_0x23cb6f=toPropertyKey(_0x23cb6f))in _0x32fcab?Object[_0x15d532(0x21d)](_0x32fcab,_0x23cb6f,{'value':_0x22ab40,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x32fcab[_0x23cb6f]=_0x22ab40,_0x32fcab;}var DocPrintPageCanvasView=class extends _univerjs_core[_0x2b3765(0x1b8)]{get[_0x2b3765(0x1de)](){return this['_container'];}get[_0x2b3765(0x206)](){return this['_root'];}get[_0x2b3765(0x1ae)](){const _0xa475f2=_0x2b3765,_0xbb11c8=this[_0xa475f2(0x1e9)][_0xa475f2(0x237)](_univerjs_engine_render[_0xa475f2(0x225)])[_0xa475f2(0x208)](this[_0xa475f2(0x1c3)]);if(!_0xbb11c8)throw new Error('Render\x20is\x20not\x20found');return _0xbb11c8;}get[_0x2b3765(0x210)](){const _0x53c580=_0x2b3765;return this[_0x53c580(0x1ae)][_0x53c580(0x1fb)](_univerjs_docs[_0x53c580(0x1cf)])['getSkeleton']();}get[_0x2b3765(0x1ca)](){const _0x300d1d=_0x2b3765,_0x18339f=this['_skeleton'][_0x300d1d(0x21f)]();if(!_0x18339f)throw new Error(_0x300d1d(0x231));return _0x18339f;}get['_paperSize'](){const _0x482013=_0x2b3765,_0x25948f=this[_0x482013(0x1ca)][_0x482013(0x1f5)][0x0];return{'width':_0x25948f[_0x482013(0x21a)],'height':_0x25948f[_0x482013(0x205)]};}constructor(_0x4ae9dd,_0x6fd682,_0x5e1730,_0x4df9ac){const _0x2a5b10=_0x2b3765;super(),this[_0x2a5b10(0x1e9)]=_0x4ae9dd,this[_0x2a5b10(0x1eb)]=_0x6fd682,this[_0x2a5b10(0x1c3)]=_0x5e1730,this[_0x2a5b10(0x1dc)]=_0x4df9ac,_defineProperty(this,'_container',document[_0x2a5b10(0x24f)](_0x2a5b10(0x1a7))),_defineProperty(this,_0x2a5b10(0x214),document[_0x2a5b10(0x24f)](_0x2a5b10(0x1a7))),_defineProperty(this,'_engine',void 0x0),_defineProperty(this,_0x2a5b10(0x1b3),void 0x0),_defineProperty(this,'_key',void 0x0),_defineProperty(this,_0x2a5b10(0x244),void 0x0),_defineProperty(this,'_viewMain',void 0x0),_defineProperty(this,_0x2a5b10(0x22a),new _univerjs_core['DisposableCollection']()),this[_0x2a5b10(0x253)]=(0x0,_univerjs_core[_0x2a5b10(0x1e2)])(0x4),this[_0x2a5b10(0x246)](),this[_0x2a5b10(0x247)]({'dispose':()=>{const _0x58e2c9=_0x2a5b10;this['_engine'][_0x58e2c9(0x22d)](),this[_0x58e2c9(0x1b3)][_0x58e2c9(0x22d)](),this['_effects'][_0x58e2c9(0x22d)]();}});}[_0x2b3765(0x23a)](){const _0x46a87f=_0x2b3765,{docsTop:_0x47da69,docsLeft:_0x2a3d5e}=this[_0x46a87f(0x244)]['getOffsetConfig'](),_0x1697c0=this[_0x46a87f(0x227)][_0x46a87f(0x255)],_0x30b6cb=this[_0x46a87f(0x227)]['width'];return{'top':_0x47da69+(_0x47da69+_0x1697c0)*this['_page'],'bottom':_0x47da69+(_0x47da69+_0x1697c0)*(this['_page']+0x1),'left':_0x2a3d5e,'right':_0x2a3d5e+_0x30b6cb};}[_0x2b3765(0x246)](){const _0x4eb54a=_0x2b3765,_0x387a7e=0x1;this['_engine']=new _univerjs_engine_render['Engine']('',{'elementWidth':this[_0x4eb54a(0x227)][_0x4eb54a(0x20f)],'elementHeight':this['_paperSize']['height'],'dpr':0x1,'renderMode':_univerjs_engine_render[_0x4eb54a(0x1e6)]['Printing']}),this['_scene']=new _univerjs_engine_render[(_0x4eb54a(0x207))](this[_0x4eb54a(0x253)],this[_0x4eb54a(0x235)]),this[_0x4eb54a(0x1b3)][_0x4eb54a(0x233)](_0x387a7e,_0x387a7e),this['_engine'][_0x4eb54a(0x20b)](this[_0x4eb54a(0x1ab)],![]),this[_0x4eb54a(0x235)]['getCanvas']()[_0x4eb54a(0x218)]()['setId'](this[_0x4eb54a(0x253)]+'_'+(0x0,_univerjs_core[_0x4eb54a(0x1e2)])(0x4)),this['_addComponent'](),this[_0x4eb54a(0x211)]();}[_0x2b3765(0x1b7)](){const _0x188b1c=_0x2b3765,{pageMarginLeft:_0x511e01,pageMarginTop:_0x45bd4e,docsLeft:_0xf02c43,docsTop:_0x3f26b9}=this[_0x188b1c(0x1dc)],_0x29d6e1={'pageMarginLeft':_0x511e01,'pageMarginTop':_0x45bd4e},_0x2fba8f=new _univerjs_engine_render[(_0x188b1c(0x1d7))](_0x188b1c(0x1d0),this[_0x188b1c(0x210)],_0x29d6e1);_0x2fba8f[_0x188b1c(0x24b)](_0xf02c43,_0x3f26b9),this[_0x188b1c(0x1b3)][_0x188b1c(0x1dd)](_0x2fba8f),this['_documents']=_0x2fba8f;const _0x5b6c0a=this[_0x188b1c(0x1e9)][_0x188b1c(0x237)](_univerjs_docs_ui[_0x188b1c(0x1ed)]);_0x5b6c0a[_0x188b1c(0x24e)][_0x188b1c(0x22b)](_0x5b6c0a[_0x188b1c(0x24e)][_0x188b1c(0x238)]()[_0x188b1c(0x1ce)])(void 0x0,{'unitId':this[_0x188b1c(0x1c3)],'scene':this[_0x188b1c(0x1b3)],'engine':this[_0x188b1c(0x235)],'root':this[_0x188b1c(0x214)],'documents':this[_0x188b1c(0x244)],'skeleton':this[_0x188b1c(0x210)]});}['_addViewport'](){const _0x3c3bc1=_0x2b3765;this[_0x3c3bc1(0x217)]=new _univerjs_engine_render['Viewport'](_univerjs_docs_ui[_0x3c3bc1(0x241)][_0x3c3bc1(0x1c0)],this[_0x3c3bc1(0x1b3)],{'explicitViewportWidthSet':!![],'explicitViewportHeightSet':!![]});}['prepare'](){const _0x2b3aff=_0x2b3765,_0x4f803b=this[_0x2b3aff(0x23a)]();this[_0x2b3aff(0x217)]['updateScrollVal']({'viewportScrollX':_0x4f803b[_0x2b3aff(0x1c6)],'viewportScrollY':_0x4f803b[_0x2b3aff(0x221)]}),this[_0x2b3aff(0x214)][_0x2b3aff(0x1f1)][_0x2b3aff(0x213)]=_0x2b3aff(0x1c8),this[_0x2b3aff(0x214)][_0x2b3aff(0x1f1)][_0x2b3aff(0x221)]=_0x2b3aff(0x1d8),this[_0x2b3aff(0x214)][_0x2b3aff(0x1f1)][_0x2b3aff(0x1c6)]='0px',this['_root'][_0x2b3aff(0x1f1)]['width']=_0x2b3aff(0x22c),this[_0x2b3aff(0x214)][_0x2b3aff(0x1f1)][_0x2b3aff(0x255)]=_0x2b3aff(0x22c),this[_0x2b3aff(0x22a)]=new _univerjs_core[(_0x2b3aff(0x224))]();const _0x2f7966=this[_0x2b3aff(0x1e9)][_0x2b3aff(0x237)](_univerjs_docs_ui[_0x2b3aff(0x1ed)]);_0x2f7966['interceptor'][_0x2b3aff(0x22b)](_0x2f7966[_0x2b3aff(0x24e)][_0x2b3aff(0x238)]()[_0x2b3aff(0x219)])(this['_effects'],{'unitId':this[_0x2b3aff(0x1c3)],'scene':this[_0x2b3aff(0x1b3)],'engine':this[_0x2b3aff(0x235)],'root':this['_root'],'skeleton':this[_0x2b3aff(0x210)],'offset':{'x':_0x4f803b[_0x2b3aff(0x1c6)],'y':_0x4f803b[_0x2b3aff(0x221)]},'bound':{'top':_0x4f803b[_0x2b3aff(0x221)],'left':_0x4f803b['left'],'right':_0x4f803b['right'],'bottom':_0x4f803b['bottom']}});}[_0x2b3765(0x1c4)](){const _0x119e66=_0x2b3765,_0x57a8ec=this[_0x119e66(0x235)][_0x119e66(0x212)]()[_0x119e66(0x218)]();this[_0x119e66(0x244)][_0x119e66(0x1bd)](),this['_scene']['makeDirty'](),_0x57a8ec[_0x119e66(0x1a5)](),this[_0x119e66(0x1b3)]['render'](),_0x57a8ec[_0x119e66(0x1a8)]();}};function __decorateParam(_0x153348,_0x3deb1b){return function(_0x68b440,_0x1fde05){_0x3deb1b(_0x68b440,_0x1fde05,_0x153348);};}function __decorate(_0x4c0614,_0x5b9b69,_0x1645e2,_0x5443c3){const _0x36c960=_0x2b3765;var _0x44d598=arguments[_0x36c960(0x251)],_0x7a9062=_0x44d598<0x3?_0x5b9b69:_0x5443c3===null?_0x5443c3=Object[_0x36c960(0x1e8)](_0x5b9b69,_0x1645e2):_0x5443c3,_0x1f7a60;if(typeof Reflect==='object'&&typeof Reflect[_0x36c960(0x1c2)]==='function')_0x7a9062=Reflect[_0x36c960(0x1c2)](_0x4c0614,_0x5b9b69,_0x1645e2,_0x5443c3);else{for(var _0x2e4cca=_0x4c0614[_0x36c960(0x251)]-0x1;_0x2e4cca>=0x0;_0x2e4cca--)if(_0x1f7a60=_0x4c0614[_0x2e4cca])_0x7a9062=(_0x44d598<0x3?_0x1f7a60(_0x7a9062):_0x44d598>0x3?_0x1f7a60(_0x5b9b69,_0x1645e2,_0x7a9062):_0x1f7a60(_0x5b9b69,_0x1645e2))||_0x7a9062;}return _0x44d598>0x3&&_0x7a9062&&Object[_0x36c960(0x21d)](_0x5b9b69,_0x1645e2,_0x7a9062),_0x7a9062;}const BUILD_TIMESTAMP=Number[_0x2b3765(0x1f7)](0x69ec6f48),DEFAULT_PRINT_LIMIT=0x1,getPrintInfoByLicense=(_0x37a084,_0x241857,_0x1ab5f7)=>{const _0x167833=_0x2b3765,_0x119e6d={'page':_0x37a084,'isPro':![],'timeValid':![]};if(!_0x241857||!_0x1ab5f7)return _0x119e6d;const _0xc50ff8=(0x0,_univerjs_pro_license['getLicenseInfo'])(_0x241857,_0x1ab5f7);if(_0xc50ff8[_0x167833(0x1a9)]){const _0x10e6d3=_0xc50ff8[_0x167833(0x1ee)],_0x4bfba7=(0x0,_univerjs_pro_license[_0x167833(0x1f8)])(_0x10e6d3,'df',BUILD_TIMESTAMP);_0x119e6d['isPro']=_0x4bfba7,_0x119e6d[_0x167833(0x209)]=_0x4bfba7,_0x119e6d[_0x167833(0x1fc)]=(0x0,_univerjs_pro_license[_0x167833(0x1fe)])(_0x10e6d3,_0x4bfba7,_0x167833(0x203),_0x37a084,_0x37a084,0x0);}return _0x119e6d;};let DocPrintService=class DocPrintService extends _univerjs_core[_0x2b3765(0x1b8)]{constructor(_0x4f4442,_0x489611,_0x158e8f,_0x4a8768,_0x3c7555){const _0x5c4729=_0x2b3765;super(),this[_0x5c4729(0x21c)]=_0x4f4442,this[_0x5c4729(0x1db)]=_0x489611,this[_0x5c4729(0x1e9)]=_0x158e8f,this[_0x5c4729(0x1bb)]=_0x4a8768,this[_0x5c4729(0x1d4)]=_0x3c7555;}[_0x2b3765(0x228)](_0x1c51cb){const _0x4678fd=_0x2b3765;var _0x79c85f,_0x4f6abf;const {ls:_0x3e8bbc,pbk:_0x500008}=(_0x79c85f=this[_0x4678fd(0x1bb)][_0x4678fd(0x236)](_univerjs_pro_license[_0x4678fd(0x1af)]))!==null&&_0x79c85f!==void 0x0?_0x79c85f:{},_0x52b79f=(0x0,_univerjs_pro_license['isLocalCheck'])()?Number['POSITIVE_INFINITY']:getPrintInfoByLicense(0x1,_0x3e8bbc,_0x500008)[_0x4678fd(0x1fc)];if(!this[_0x4678fd(0x21c)][_0x4678fd(0x24c)](_0x1c51cb,_univerjs_core[_0x4678fd(0x1e5)][_0x4678fd(0x1c5)]))throw new Error(_0x4678fd(0x1be));const _0x1c3654=this[_0x4678fd(0x1db)][_0x4678fd(0x208)](_0x1c51cb);if(!_0x1c3654)throw new Error(_0x4678fd(0x202));const _0x1c6225=(_0x4f6abf=_0x1c3654[_0x4678fd(0x1fb)](_univerjs_docs[_0x4678fd(0x1cf)])[_0x4678fd(0x1ff)]()[_0x4678fd(0x21f)]())===null||_0x4f6abf===void 0x0?void 0x0:_0x4f6abf[_0x4678fd(0x1f5)];if(!_0x1c6225)throw new Error('Pages\x20are\x20not\x20found');const _0x1be327={'width':_0x1c6225[0x0][_0x4678fd(0x21a)],'height':_0x1c6225[0x0][_0x4678fd(0x205)]},_0xaea457=_0x1c6225[_0x4678fd(0x251)],_0x22807f=Math[_0x4678fd(0x1cb)](_0x52b79f,_0xaea457),_0xc0ef77=_0x1c3654['mainComponent'][_0x4678fd(0x22e)](),_0x88e533=document[_0x4678fd(0x24f)]('div');_0x88e533[_0x4678fd(0x232)]=_univerjs_pro_print['PRINT_CONTAINER_CLASS'];const _0x4b5242=new Array(_0x22807f)[_0x4678fd(0x1ad)](null)[_0x4678fd(0x1d5)]((_0x5c3c24,_0x169702)=>{const _0x2fcb59=_0x4678fd,_0x10b2a0=new DocPrintPageCanvasView(this['_injector'],_0x169702,_0x1c51cb,_0xc0ef77);return _0x10b2a0[_0x2fcb59(0x1de)][_0x2fcb59(0x232)]=_univerjs_pro_print[_0x2fcb59(0x1fa)],_0x10b2a0;});_0x4b5242['forEach'](_0x481e81=>{const _0x1e1ee1=_0x4678fd;_0x88e533[_0x1e1ee1(0x1cd)](_0x481e81[_0x1e1ee1(0x1de)]),_0x481e81[_0x1e1ee1(0x1de)][_0x1e1ee1(0x1cd)](_0x481e81[_0x1e1ee1(0x206)]),_0x481e81[_0x1e1ee1(0x21e)]();});const _0x3bb643=(0x0,_univerjs_pro_print['createPrintStyle'])(_0x1be327['width'],_0x1be327['height'],_univerjs_pro_print[_0x4678fd(0x222)][_0x4678fd(0x1d1)]);return document[_0x4678fd(0x23c)][_0x4678fd(0x1cd)](_0x3bb643),document[_0x4678fd(0x23c)]['appendChild'](_0x88e533),new Promise(_0x3b8ccd=>{setTimeout(()=>{const _0x1314ce=_0x37dc;window[_0x1314ce(0x1c1)]=()=>{const _0xfcd898=_0x1314ce;_0x4b5242[_0xfcd898(0x1b9)](_0x3adf42=>{const _0x13ad11=_0xfcd898;_0x3adf42[_0x13ad11(0x1c4)]();});},window[_0x1314ce(0x1f0)]=()=>{const _0x344f06=_0x1314ce;_0x4b5242[_0x344f06(0x1b9)](_0x3073c1=>{const _0x3ab0dd=_0x344f06;_0x3073c1[_0x3ab0dd(0x22d)]();}),document[_0x344f06(0x23c)][_0x344f06(0x1d2)](_0x88e533),document[_0x344f06(0x23c)][_0x344f06(0x1d2)](_0x3bb643),this['_globalZoneService'][_0x344f06(0x216)](),_0x3b8ccd(!![]);},window[_0x1314ce(0x228)]();},0x64);});}};function _0x246f(){const _0x11bc23=['top','PrintDirection','ComponentManager','DisposableCollection','IRenderManagerService','version','_paperSize','print','toPrimitive','_effects','fetchThroughInterceptors','100%','dispose','getOffsetConfig','UNIVER_DOCS_PRINT','Injector','Skeleton\x20data\x20is\x20not\x20found','className','scale','PrintIcon','_engine','getConfig','get','getInterceptPoints','_config','_calculateLayout','OPERATION','body','documentFlavor','registerDependencies','ICommandService','BUTTON','VIEWPORT_KEY','getCurrentUnitOfType','type','_documents','UniverLicensePlugin','_initRenderer','disposeWithMe','function','115bJolYu','DependentOn','translate','getUnit','mergeMenu','interceptor','createElement','Plugin','length','_initMenus','_key','SwitchDocModeCommand','height','UniverDocsPrintPlugin','save','iterator','div','restore','valid','558kzWLHh','_container','syncExecuteCommand','fill','_currentRender','LS_CONFIG_KEY','OTHERS','_componentManager','getDocumentStyle','_scene','constructor','DocPrintOperation','RibbonStartGroup','_addComponent','Disposable','forEach','1146221SuypKs','_configService','IUniverInstanceService','makeForceDirty','DocumentDataModel\x20is\x20not\x20found','call','VIEW_MAIN','onbeforeprint','decorate','_unitId','render','UNIVER_DOC','left','@univerjs-pro/docs-print','absolute','73810ubCkJL','_skeletonData','min','0.21.1','appendChild','PRINTING_COMPONENT_COLLECT','DocSkeletonManagerService','__DocPrintRender__','Portrait','removeChild','7281760mQUVQT','_globalZoneService','map','CommandType','Documents','0px','_initComponents','setConfig','_renderManagerService','_offsetConfig','addObject','container','default','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','15414rZtdMG','generateRandomId','getMenuHiddenObservable','DOCS_PRINT_PLUGIN_CONFIG_KEY','UniverInstanceType','CanvasRenderMode','TRADITIONAL','getOwnPropertyDescriptor','_injector','docs.operation.print','_page','menu','DocPrintInterceptorService','message','4449720rCbvaN','onafterprint','style','IConfigService','merge','UniverNetworkPlugin','pages','object','parseInt','isFeatureAuthorizedWithinTime','IGlobalZoneService','PRINT_CANVAS_CLASS','with','page','_initCommands','getDocFeatureLimit','getSkeleton','10233391XTMWte','532GRbTPw','Render\x20is\x20not\x20found','mpn','packageName','pageHeight','root','Scene','getRenderById','timeValid','Inject','setContainer','print.menu','47202XMiSLG','symbol','width','_skeleton','_addViewport','getCanvas','position','_root','getUnitId','close','_viewMain','getContext','PRINTING_DOM_COLLECT','pageWidth','DocumentFlavor','_univerInstanceService','defineProperty','prepare','getSkeletonData','register'];_0x246f=function(){return _0x11bc23;};return _0x246f();}DocPrintService=__decorate([__decorateParam(0x0,_univerjs_core['IUniverInstanceService']),__decorateParam(0x1,_univerjs_engine_render['IRenderManagerService']),__decorateParam(0x2,(0x0,_univerjs_core[_0x2b3765(0x20a)])(_univerjs_core[_0x2b3765(0x230)])),__decorateParam(0x3,_univerjs_core[_0x2b3765(0x1f2)]),__decorateParam(0x4,_univerjs_ui[_0x2b3765(0x1f9)])],DocPrintService);const DocPrintOperation={'id':_0x2b3765(0x1ea),'type':_univerjs_core[_0x2b3765(0x1d6)][_0x2b3765(0x23b)],'handler':async _0x3400ab=>{const _0x53451c=_0x2b3765,_0x1bcef5=_0x3400ab[_0x53451c(0x237)](_univerjs_core[_0x53451c(0x1bc)]),_0x370d0e=_0x3400ab['get'](DocPrintService),_0x5a53ec=_0x3400ab['get'](_univerjs_engine_render[_0x53451c(0x225)]),_0x1ac306=_0x3400ab['get'](_univerjs_core[_0x53451c(0x23f)]),_0x31a194=_0x1bcef5[_0x53451c(0x242)](_univerjs_core[_0x53451c(0x1e5)][_0x53451c(0x1c5)]);if(!_0x31a194)return![];if(!_0x5a53ec[_0x53451c(0x208)](_0x31a194['getUnitId']()))throw new Error(_0x53451c(0x202));const _0x4a5cc3=_0x31a194[_0x53451c(0x1b2)]()[_0x53451c(0x23d)];if(_0x4a5cc3!==_univerjs_core['DocumentFlavor'][_0x53451c(0x1e7)])_0x1ac306[_0x53451c(0x1ac)](_univerjs_docs_ui[_0x53451c(0x254)]['id']);await _0x370d0e[_0x53451c(0x228)](_0x31a194[_0x53451c(0x215)]());if(_0x4a5cc3!==_univerjs_core[_0x53451c(0x21b)][_0x53451c(0x1e7)])_0x1ac306[_0x53451c(0x1ac)](_univerjs_docs_ui[_0x53451c(0x254)]['id']);return!![];}},DOCS_PRINT_PLUGIN_CONFIG_KEY=_0x2b3765(0x22f),defaultPluginConfig={};var name=_0x2b3765(0x1c7),version=_0x2b3765(0x1cc);const DOCS_PRINT_PLUGIN_NAME=_0x2b3765(0x22f);function DocPrintMenuItemFactory(_0x5d0323){const _0xf5fd90=_0x2b3765;return{'id':DocPrintOperation['id'],'type':_univerjs_ui['MenuItemType'][_0xf5fd90(0x240)],'title':_0xf5fd90(0x20c),'icon':'PrintIcon','tooltip':_0xf5fd90(0x20c),'hidden$':(0x0,_univerjs_ui[_0xf5fd90(0x1e3)])(_0x5d0323,_univerjs_core['UniverInstanceType']['UNIVER_DOC'])};}const menuSchema={[_univerjs_ui[_0x2b3765(0x1b6)][_0x2b3765(0x1b0)]]:{[DocPrintOperation['id']]:{'order':0.1,'menuItemFactory':DocPrintMenuItemFactory}}};let DocsPrintUIController=class DocsPrintUIController extends _univerjs_core[_0x2b3765(0x1b8)]{constructor(_0x462d0a,_0x35c5b2,_0x10ccce){const _0x4fc197=_0x2b3765;super(),this['_commandService']=_0x462d0a,this['_menuManagerService']=_0x35c5b2,this[_0x4fc197(0x1b1)]=_0x10ccce,this[_0x4fc197(0x252)](),this[_0x4fc197(0x1fd)](),this[_0x4fc197(0x1d9)]();}['_initMenus'](){const _0x2d58af=_0x2b3765;this['_menuManagerService'][_0x2d58af(0x24d)](menuSchema);}[_0x2b3765(0x1fd)](){const _0x1f0fb9=_0x2b3765;this[_0x1f0fb9(0x247)](this['_commandService']['registerCommand'](DocPrintOperation));}['_initComponents'](){const _0x31c73a=_0x2b3765;[[_0x31c73a(0x234),_univerjs_icons['PrintIcon']]][_0x31c73a(0x1b9)](([_0x3b1a0f,_0x31c78d])=>{const _0x5b294c=_0x31c73a;this['_componentManager'][_0x5b294c(0x220)](_0x3b1a0f,_0x31c78d);});}};DocsPrintUIController=__decorate([__decorateParam(0x0,_univerjs_core[_0x2b3765(0x23f)]),__decorateParam(0x1,_univerjs_ui['IMenuManagerService']),__decorateParam(0x2,(0x0,_univerjs_core[_0x2b3765(0x20a)])(_univerjs_ui[_0x2b3765(0x223)]))],DocsPrintUIController);let UniverDocsPrintPlugin=class UniverDocsPrintPlugin extends _univerjs_core[_0x2b3765(0x250)]{constructor(_0x57f3dc=defaultPluginConfig,_0x31d52d,_0x509346){const _0x3e897d=_0x2b3765;super(),this[_0x3e897d(0x239)]=_0x57f3dc,this[_0x3e897d(0x1e9)]=_0x31d52d,this['_configService']=_0x509346;const {menu:_0x2b8a34,..._0x53dc2c}=(0x0,_univerjs_core[_0x3e897d(0x1f3)])({},defaultPluginConfig,this['_config']);if(_0x2b8a34)this[_0x3e897d(0x1bb)]['setConfig'](_0x3e897d(0x1ec),_0x2b8a34,{'merge':!![]});this[_0x3e897d(0x1bb)][_0x3e897d(0x1da)](DOCS_PRINT_PLUGIN_CONFIG_KEY,_0x53dc2c);}['onStarting'](){const _0x82cece=_0x2b3765;(0x0,_univerjs_core[_0x82cece(0x23e)])(this['_injector'],[[DocPrintService],[DocsPrintUIController]]);}['onReady'](){const _0x47ea9d=_0x2b3765;this[_0x47ea9d(0x1e9)]['get'](DocsPrintUIController);}};_defineProperty(UniverDocsPrintPlugin,'pluginName',DOCS_PRINT_PLUGIN_NAME),_defineProperty(UniverDocsPrintPlugin,_0x2b3765(0x204),name),_defineProperty(UniverDocsPrintPlugin,_0x2b3765(0x226),version),_defineProperty(UniverDocsPrintPlugin,_0x2b3765(0x243),_univerjs_core[_0x2b3765(0x1e5)]['UNIVER_DOC']),UniverDocsPrintPlugin=__decorate([(0x0,_univerjs_core[_0x2b3765(0x24a)])(_univerjs_network[_0x2b3765(0x1f4)],_univerjs_pro_license[_0x2b3765(0x245)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x2b3765(0x20a)])(_univerjs_core[_0x2b3765(0x230)])),__decorateParam(0x2,_univerjs_core[_0x2b3765(0x1f2)])],UniverDocsPrintPlugin),exports[_0x2b3765(0x1e4)]=DOCS_PRINT_PLUGIN_CONFIG_KEY,exports[_0x2b3765(0x1b5)]=DocPrintOperation,Object[_0x2b3765(0x21d)](exports,_0x2b3765(0x256),{'enumerable':!![],'get':function(){return UniverDocsPrintPlugin;}});
|
|
1
|
+
const _0x23becf=_0x27fd;(function(_0x4d19df,_0x41fc6f){const _0x59fe0b=_0x27fd,_0x5113ed=_0x4d19df();while(!![]){try{const _0x4297fa=parseInt(_0x59fe0b(0xeb))/0x1*(-parseInt(_0x59fe0b(0xfc))/0x2)+-parseInt(_0x59fe0b(0x10b))/0x3*(parseInt(_0x59fe0b(0x106))/0x4)+parseInt(_0x59fe0b(0x10a))/0x5+parseInt(_0x59fe0b(0x77))/0x6*(-parseInt(_0x59fe0b(0x11e))/0x7)+-parseInt(_0x59fe0b(0xc0))/0x8*(parseInt(_0x59fe0b(0xd9))/0x9)+-parseInt(_0x59fe0b(0xef))/0xa*(-parseInt(_0x59fe0b(0xd5))/0xb)+parseInt(_0x59fe0b(0xbe))/0xc;if(_0x4297fa===_0x41fc6f)break;else _0x5113ed['push'](_0x5113ed['shift']());}catch(_0x14b825){_0x5113ed['push'](_0x5113ed['shift']());}}}(_0x244c,0x21eec),Object[_0x23becf(0xa5)](exports,Symbol[_0x23becf(0x120)],{'value':_0x23becf(0x111)}));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(_0x44acbe){'@babel/helpers - typeof';const _0x43a212=_0x23becf;return _typeof=_0x43a212(0xa2)==typeof Symbol&&_0x43a212(0x85)==typeof Symbol[_0x43a212(0x99)]?function(_0x431126){return typeof _0x431126;}:function(_0x445fb7){const _0x585a02=_0x43a212;return _0x445fb7&&'function'==typeof Symbol&&_0x445fb7[_0x585a02(0xb9)]===Symbol&&_0x445fb7!==Symbol[_0x585a02(0x109)]?_0x585a02(0x85):typeof _0x445fb7;},_typeof(_0x44acbe);}function toPrimitive(_0x1ffad8,_0x567db5){const _0x4f9265=_0x23becf;if('object'!=_typeof(_0x1ffad8)||!_0x1ffad8)return _0x1ffad8;var _0x18071c=_0x1ffad8[Symbol[_0x4f9265(0x118)]];if(void 0x0!==_0x18071c){var _0x2220f1=_0x18071c[_0x4f9265(0xc3)](_0x1ffad8,_0x567db5||_0x4f9265(0xa0));if('object'!=_typeof(_0x2220f1))return _0x2220f1;throw new TypeError(_0x4f9265(0x94));}return(_0x4f9265(0xce)===_0x567db5?String:Number)(_0x1ffad8);}function toPropertyKey(_0x2ab1ff){const _0x15fdc0=_0x23becf;var _0xa47f35=toPrimitive(_0x2ab1ff,_0x15fdc0(0xce));return _0x15fdc0(0x85)==_typeof(_0xa47f35)?_0xa47f35:_0xa47f35+'';}function _defineProperty(_0xf705a5,_0x32383e,_0x184ad9){return(_0x32383e=toPropertyKey(_0x32383e))in _0xf705a5?Object['defineProperty'](_0xf705a5,_0x32383e,{'value':_0x184ad9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xf705a5[_0x32383e]=_0x184ad9,_0xf705a5;}var DocPrintPageCanvasView=class extends _univerjs_core['Disposable']{get['container'](){const _0x1ad658=_0x23becf;return this[_0x1ad658(0x82)];}get[_0x23becf(0xa1)](){const _0x15d210=_0x23becf;return this[_0x15d210(0xca)];}get[_0x23becf(0xb2)](){const _0x50125c=_0x23becf,_0x2ae8bc=this[_0x50125c(0x8c)]['get'](_univerjs_engine_render[_0x50125c(0xb4)])[_0x50125c(0xd0)](this['_unitId']);if(!_0x2ae8bc)throw new Error(_0x50125c(0x7c));return _0x2ae8bc;}get[_0x23becf(0xe8)](){const _0x1dd451=_0x23becf;return this[_0x1dd451(0xb2)][_0x1dd451(0x96)](_univerjs_docs[_0x1dd451(0x8f)])[_0x1dd451(0x10e)]();}get[_0x23becf(0xe3)](){const _0x12e2a9=_0x23becf,_0x46bf96=this[_0x12e2a9(0xe8)][_0x12e2a9(0xb8)]();if(!_0x46bf96)throw new Error(_0x12e2a9(0x110));return _0x46bf96;}get[_0x23becf(0x84)](){const _0xf6f63f=_0x23becf,_0x32d368=this[_0xf6f63f(0xe3)]['pages'][0x0];return{'width':_0x32d368[_0xf6f63f(0xe9)],'height':_0x32d368[_0xf6f63f(0x87)]};}constructor(_0x321e78,_0x2ca213,_0x535eff,_0x2fd73d){const _0x10cc1e=_0x23becf;super(),this['_injector']=_0x321e78,this[_0x10cc1e(0xcc)]=_0x2ca213,this[_0x10cc1e(0x112)]=_0x535eff,this[_0x10cc1e(0xdc)]=_0x2fd73d,_defineProperty(this,'_container',document['createElement'](_0x10cc1e(0x8e))),_defineProperty(this,_0x10cc1e(0xca),document[_0x10cc1e(0xbc)](_0x10cc1e(0x8e))),_defineProperty(this,_0x10cc1e(0x7f),void 0x0),_defineProperty(this,_0x10cc1e(0x9a),void 0x0),_defineProperty(this,'_key',void 0x0),_defineProperty(this,'_documents',void 0x0),_defineProperty(this,_0x10cc1e(0x122),void 0x0),_defineProperty(this,_0x10cc1e(0x8a),new _univerjs_core['DisposableCollection']()),this[_0x10cc1e(0xe1)]=(0x0,_univerjs_core[_0x10cc1e(0xe2)])(0x4),this[_0x10cc1e(0xd1)](),this[_0x10cc1e(0x97)]({'dispose':()=>{const _0xc472e8=_0x10cc1e;this[_0xc472e8(0x7f)][_0xc472e8(0xbf)](),this[_0xc472e8(0x9a)][_0xc472e8(0xbf)](),this[_0xc472e8(0x8a)][_0xc472e8(0xbf)]();}});}['_calculateLayout'](){const _0x4b409a=_0x23becf,{docsTop:_0xed2d1,docsLeft:_0x40db63}=this[_0x4b409a(0x86)][_0x4b409a(0xfd)](),_0x5f15dd=this['_paperSize'][_0x4b409a(0x117)],_0xd31259=this[_0x4b409a(0x84)][_0x4b409a(0xc4)];return{'top':_0xed2d1+(_0xed2d1+_0x5f15dd)*this['_page'],'bottom':_0xed2d1+(_0xed2d1+_0x5f15dd)*(this[_0x4b409a(0xcc)]+0x1),'left':_0x40db63,'right':_0x40db63+_0xd31259};}[_0x23becf(0xd1)](){const _0x2cb09f=_0x23becf,_0x532e06=0x1,_0x2a024e=0x1;this['_engine']=new _univerjs_engine_render[(_0x2cb09f(0x80))]('',{'elementWidth':this[_0x2cb09f(0x84)][_0x2cb09f(0xc4)],'elementHeight':this[_0x2cb09f(0x84)][_0x2cb09f(0x117)],'dpr':_0x2a024e,'renderMode':_univerjs_engine_render['CanvasRenderMode'][_0x2cb09f(0xd8)]}),this[_0x2cb09f(0x9a)]=new _univerjs_engine_render[(_0x2cb09f(0xf9))](this[_0x2cb09f(0xe1)],this[_0x2cb09f(0x7f)]),this[_0x2cb09f(0x9a)]['scale'](_0x532e06,_0x532e06),this['_engine'][_0x2cb09f(0xb0)](this[_0x2cb09f(0x82)],![]),this[_0x2cb09f(0x7f)]['getCanvas']()[_0x2cb09f(0xf7)]()[_0x2cb09f(0x9f)](this[_0x2cb09f(0xe1)]+'_'+(0x0,_univerjs_core[_0x2cb09f(0xe2)])(0x4)),this[_0x2cb09f(0x79)](),this['_addViewport']();}['_addComponent'](){const _0xad42a3=_0x23becf,{pageMarginLeft:_0x521d88,pageMarginTop:_0x1538af,docsLeft:_0x5baa17,docsTop:_0x4d755b}=this[_0xad42a3(0xdc)],_0x3e6c05={'pageMarginLeft':_0x521d88,'pageMarginTop':_0x1538af},_0x2f45b3=new _univerjs_engine_render[(_0xad42a3(0xc1))](_0xad42a3(0x9b),this[_0xad42a3(0xe8)],_0x3e6c05);_0x2f45b3['translate'](_0x5baa17,_0x4d755b),this[_0xad42a3(0x9a)][_0xad42a3(0x90)](_0x2f45b3),this[_0xad42a3(0x86)]=_0x2f45b3;const _0x483d02=this[_0xad42a3(0x8c)][_0xad42a3(0x126)](_univerjs_docs_ui[_0xad42a3(0xaa)]);_0x483d02[_0xad42a3(0xfb)][_0xad42a3(0xff)](_0x483d02['interceptor'][_0xad42a3(0xe4)]()[_0xad42a3(0xaf)])(void 0x0,{'unitId':this[_0xad42a3(0x112)],'scene':this[_0xad42a3(0x9a)],'engine':this[_0xad42a3(0x7f)],'root':this[_0xad42a3(0xca)],'documents':this['_documents'],'skeleton':this[_0xad42a3(0xe8)]});}[_0x23becf(0x89)](){const _0x1500ca=_0x23becf;this[_0x1500ca(0x122)]=new _univerjs_engine_render[(_0x1500ca(0xd7))](_univerjs_docs_ui[_0x1500ca(0xfe)][_0x1500ca(0x8b)],this[_0x1500ca(0x9a)],{'explicitViewportWidthSet':!![],'explicitViewportHeightSet':!![]});}['prepare'](){const _0x2c812c=_0x23becf,_0x3e10da=this[_0x2c812c(0x119)]();this['_viewMain'][_0x2c812c(0xc2)]({'viewportScrollX':_0x3e10da[_0x2c812c(0x124)],'viewportScrollY':_0x3e10da[_0x2c812c(0xe7)]}),this[_0x2c812c(0xca)][_0x2c812c(0x7a)][_0x2c812c(0xcd)]='absolute',this[_0x2c812c(0xca)][_0x2c812c(0x7a)]['top']=_0x2c812c(0xac),this['_root'][_0x2c812c(0x7a)][_0x2c812c(0x124)]=_0x2c812c(0xac),this[_0x2c812c(0xca)]['style'][_0x2c812c(0xc4)]=_0x2c812c(0x7b),this[_0x2c812c(0xca)][_0x2c812c(0x7a)][_0x2c812c(0x117)]=_0x2c812c(0x7b),this[_0x2c812c(0x8a)]=new _univerjs_core[(_0x2c812c(0xf6))]();const _0x29c237=this[_0x2c812c(0x8c)][_0x2c812c(0x126)](_univerjs_docs_ui[_0x2c812c(0xaa)]);_0x29c237[_0x2c812c(0xfb)][_0x2c812c(0xff)](_0x29c237['interceptor'][_0x2c812c(0xe4)]()[_0x2c812c(0xa4)])(this[_0x2c812c(0x8a)],{'unitId':this[_0x2c812c(0x112)],'scene':this[_0x2c812c(0x9a)],'engine':this[_0x2c812c(0x7f)],'root':this[_0x2c812c(0xca)],'skeleton':this[_0x2c812c(0xe8)],'offset':{'x':_0x3e10da[_0x2c812c(0x124)],'y':_0x3e10da[_0x2c812c(0xe7)]},'bound':{'top':_0x3e10da[_0x2c812c(0xe7)],'left':_0x3e10da[_0x2c812c(0x124)],'right':_0x3e10da[_0x2c812c(0x11f)],'bottom':_0x3e10da[_0x2c812c(0x93)]}});}[_0x23becf(0x103)](){const _0x1fcd18=_0x23becf,_0x3e4e2b=this[_0x1fcd18(0x7f)][_0x1fcd18(0xf2)]()[_0x1fcd18(0xf7)]();this[_0x1fcd18(0x86)][_0x1fcd18(0x128)](),this[_0x1fcd18(0x9a)][_0x1fcd18(0x83)](),_0x3e4e2b['save'](),this['_scene']['render'](),_0x3e4e2b[_0x1fcd18(0x113)]();}};function __decorateParam(_0x3f7878,_0xea9526){return function(_0xe77008,_0x477158){_0xea9526(_0xe77008,_0x477158,_0x3f7878);};}function _0x244c(){const _0x219b33=['ICommandService','DocPrintInterceptorService','PrintIcon','0px','BUTTON','merge','PRINTING_COMPONENT_COLLECT','setContainer','getLicenseInfo','_currentRender','Injector','IRenderManagerService','page','docs.operation.print','removeChild','getSkeletonData','constructor','mergeMenu','prepare','createElement','mainComponent','9714408WiohEx','dispose','670424KxrkNo','Documents','updateScrollVal','call','width','Plugin','IConfigService','onbeforeprint','getUnit','map','_root','OPERATION','_page','position','string','mpn','getRenderById','_initRenderer','getUnitId','CommandType','_initComponents','11CKaQBP','container','Viewport','Printing','18JVOpVu','UniverLicensePlugin','_configService','_offsetConfig','getOwnPropertyDescriptor','DocPrintOperation','Portrait','IUniverInstanceService','_key','generateRandomId','_skeletonData','getInterceptPoints','Disposable','_globalZoneService','top','_skeleton','pageWidth','_menuManagerService','1aXCJfp','onafterprint','POSITIVE_INFINITY','length','703770pakVlf','Inject','PrintDirection','getCanvas','TRADITIONAL','_commandService','RibbonStartGroup','DisposableCollection','getContext','register','Scene','_config','interceptor','242486wkcBbo','getOffsetConfig','VIEWPORT_KEY','fetchThroughInterceptors','parseInt','getConfig','DocumentFlavor','render','decorate','timeValid','452tVLCFj','LS_CONFIG_KEY','DependentOn','prototype','256535WOxNMo','6150DRvZwt','IMenuManagerService','PRINT_CANVAS_CLASS','getSkeleton','DocumentDataModel\x20is\x20not\x20found','Skeleton\x20data\x20is\x20not\x20found','Module','_unitId','restore','className','pluginName','fill','height','toPrimitive','_calculateLayout','print.menu','_componentManager','type','_univerInstanceService','1113cAuMMm','right','toStringTag','0.22.0-insiders.20260513-09bbeca','_viewMain','_initMenus','left','body','get','createPrintStyle','makeForceDirty','10254nWRxyc','getDocumentStyle','_addComponent','style','100%','Render\x20is\x20not\x20found','forEach','isFeatureAuthorizedWithinTime','_engine','Engine','Pages\x20are\x20not\x20found','_container','makeDirty','_paperSize','symbol','_documents','pageHeight','UniverInstanceType','_addViewport','_effects','VIEW_MAIN','_injector','setConfig','div','DocSkeletonManagerService','addObject','onReady','pages','bottom','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_renderManagerService','with','disposeWithMe','IGlobalZoneService','iterator','_scene','__DocPrintRender__','menu','getDocFeatureLimit','UNIVER_DOC','setId','default','root','function','appendChild','PRINTING_DOM_COLLECT','defineProperty','valid','SwitchDocModeCommand','print'];_0x244c=function(){return _0x219b33;};return _0x244c();}function __decorate(_0x196340,_0x2d2e1,_0x3a6919,_0x2163af){const _0x4f4590=_0x23becf;var _0xd506c9=arguments[_0x4f4590(0xee)],_0x39ddb4=_0xd506c9<0x3?_0x2d2e1:_0x2163af===null?_0x2163af=Object[_0x4f4590(0xdd)](_0x2d2e1,_0x3a6919):_0x2163af,_0x311cc3;if(typeof Reflect==='object'&&typeof Reflect[_0x4f4590(0x104)]===_0x4f4590(0xa2))_0x39ddb4=Reflect[_0x4f4590(0x104)](_0x196340,_0x2d2e1,_0x3a6919,_0x2163af);else{for(var _0x55ad6a=_0x196340[_0x4f4590(0xee)]-0x1;_0x55ad6a>=0x0;_0x55ad6a--)if(_0x311cc3=_0x196340[_0x55ad6a])_0x39ddb4=(_0xd506c9<0x3?_0x311cc3(_0x39ddb4):_0xd506c9>0x3?_0x311cc3(_0x2d2e1,_0x3a6919,_0x39ddb4):_0x311cc3(_0x2d2e1,_0x3a6919))||_0x39ddb4;}return _0xd506c9>0x3&&_0x39ddb4&&Object['defineProperty'](_0x2d2e1,_0x3a6919,_0x39ddb4),_0x39ddb4;}const BUILD_TIMESTAMP=Number[_0x23becf(0x100)](0x6a04258e),DEFAULT_PRINT_LIMIT=0x1,getPrintInfoByLicense=(_0xa5ad6c,_0x4b09d1,_0xf7d28f)=>{const _0x511317=_0x23becf,_0x4cd06a={'page':_0xa5ad6c,'isPro':![],'timeValid':![]};if(!_0x4b09d1||!_0xf7d28f)return _0x4cd06a;const _0x186fc6=(0x0,_univerjs_pro_license[_0x511317(0xb1)])(_0x4b09d1,_0xf7d28f);if(_0x186fc6[_0x511317(0xa6)]){const _0x2f2cc0=_0x186fc6['message'],_0x3a52a5=(0x0,_univerjs_pro_license[_0x511317(0x7e)])(_0x2f2cc0,'df',BUILD_TIMESTAMP);_0x4cd06a['isPro']=_0x3a52a5,_0x4cd06a[_0x511317(0x105)]=_0x3a52a5,_0x4cd06a[_0x511317(0xb5)]=(0x0,_univerjs_pro_license[_0x511317(0x9d)])(_0x2f2cc0,_0x3a52a5,_0x511317(0xcf),_0xa5ad6c,_0xa5ad6c,0x0);}return _0x4cd06a;};let DocPrintService=class DocPrintService extends _univerjs_core[_0x23becf(0xe5)]{constructor(_0x3f957f,_0xde3840,_0x3a9038,_0x38c44e,_0x1e6675){const _0x4aacf0=_0x23becf;super(),this[_0x4aacf0(0x11d)]=_0x3f957f,this[_0x4aacf0(0x95)]=_0xde3840,this[_0x4aacf0(0x8c)]=_0x3a9038,this[_0x4aacf0(0xdb)]=_0x38c44e,this[_0x4aacf0(0xe6)]=_0x1e6675;}[_0x23becf(0xa8)](_0x2a2c0d){const _0x487a10=_0x23becf;var _0x28ceb6,_0x5dc2ad;const {ls:_0x2082fa,pbk:_0x4c0784}=(_0x28ceb6=this[_0x487a10(0xdb)][_0x487a10(0x101)](_univerjs_pro_license[_0x487a10(0x107)]))!==null&&_0x28ceb6!==void 0x0?_0x28ceb6:{},_0x260d4f=(0x0,_univerjs_pro_license['isLocalCheck'])()?Number[_0x487a10(0xed)]:getPrintInfoByLicense(0x1,_0x2082fa,_0x4c0784)[_0x487a10(0xb5)];if(!this[_0x487a10(0x11d)][_0x487a10(0xc8)](_0x2a2c0d,_univerjs_core[_0x487a10(0x88)][_0x487a10(0x9e)]))throw new Error(_0x487a10(0x10f));const _0x566728=this['_renderManagerService'][_0x487a10(0xd0)](_0x2a2c0d);if(!_0x566728)throw new Error(_0x487a10(0x7c));const _0x1e544d=(_0x5dc2ad=_0x566728[_0x487a10(0x96)](_univerjs_docs[_0x487a10(0x8f)])[_0x487a10(0x10e)]()[_0x487a10(0xb8)]())===null||_0x5dc2ad===void 0x0?void 0x0:_0x5dc2ad[_0x487a10(0x92)];if(!_0x1e544d)throw new Error(_0x487a10(0x81));const _0x32611e={'width':_0x1e544d[0x0]['pageWidth'],'height':_0x1e544d[0x0]['pageHeight']},_0x346bf3=_0x1e544d['length'],_0x813ee3=Math['min'](_0x260d4f,_0x346bf3),_0x5b29ec=_0x566728[_0x487a10(0xbd)]['getOffsetConfig'](),_0x326605=document[_0x487a10(0xbc)]('div');_0x326605[_0x487a10(0x114)]=_univerjs_pro_print['PRINT_CONTAINER_CLASS'];const _0x10dd36=new Array(_0x813ee3)[_0x487a10(0x116)](null)[_0x487a10(0xc9)]((_0x563b56,_0x279889)=>{const _0x379e19=_0x487a10,_0x440b4d=new DocPrintPageCanvasView(this['_injector'],_0x279889,_0x2a2c0d,_0x5b29ec);return _0x440b4d['container'][_0x379e19(0x114)]=_univerjs_pro_print[_0x379e19(0x10d)],_0x440b4d;});_0x10dd36[_0x487a10(0x7d)](_0x450e99=>{const _0x221159=_0x487a10;_0x326605[_0x221159(0xa3)](_0x450e99[_0x221159(0xd6)]),_0x450e99['container'][_0x221159(0xa3)](_0x450e99['root']),_0x450e99[_0x221159(0xbb)]();});const _0x59727c=(0x0,_univerjs_pro_print[_0x487a10(0x127)])(_0x32611e[_0x487a10(0xc4)],_0x32611e[_0x487a10(0x117)],_univerjs_pro_print[_0x487a10(0xf1)][_0x487a10(0xdf)]);return document[_0x487a10(0x125)][_0x487a10(0xa3)](_0x59727c),document['body'][_0x487a10(0xa3)](_0x326605),new Promise(_0x1886d6=>{setTimeout(()=>{const _0x1338d7=_0x27fd;window[_0x1338d7(0xc7)]=()=>{_0x10dd36['forEach'](_0xc7ea3d=>{const _0x1a14a9=_0x27fd;_0xc7ea3d[_0x1a14a9(0x103)]();});},window[_0x1338d7(0xec)]=()=>{const _0x3e73fc=_0x1338d7;_0x10dd36[_0x3e73fc(0x7d)](_0x1f4c24=>{_0x1f4c24['dispose']();}),document[_0x3e73fc(0x125)][_0x3e73fc(0xb7)](_0x326605),document[_0x3e73fc(0x125)][_0x3e73fc(0xb7)](_0x59727c),this[_0x3e73fc(0xe6)]['close'](),_0x1886d6(!![]);},window[_0x1338d7(0xa8)]();},0x64);});}};DocPrintService=__decorate([__decorateParam(0x0,_univerjs_core[_0x23becf(0xe0)]),__decorateParam(0x1,_univerjs_engine_render['IRenderManagerService']),__decorateParam(0x2,(0x0,_univerjs_core[_0x23becf(0xf0)])(_univerjs_core['Injector'])),__decorateParam(0x3,_univerjs_core[_0x23becf(0xc6)]),__decorateParam(0x4,_univerjs_ui[_0x23becf(0x98)])],DocPrintService);const DocPrintOperation={'id':_0x23becf(0xb6),'type':_univerjs_core[_0x23becf(0xd3)][_0x23becf(0xcb)],'handler':async _0x378d06=>{const _0x259adf=_0x23becf,_0x54ffdc=_0x378d06['get'](_univerjs_core[_0x259adf(0xe0)]),_0x675942=_0x378d06[_0x259adf(0x126)](DocPrintService),_0x484636=_0x378d06[_0x259adf(0x126)](_univerjs_engine_render[_0x259adf(0xb4)]),_0x1ef1e2=_0x378d06[_0x259adf(0x126)](_univerjs_core[_0x259adf(0xa9)]),_0x2de632=_0x54ffdc['getCurrentUnitOfType'](_univerjs_core[_0x259adf(0x88)][_0x259adf(0x9e)]);if(!_0x2de632)return![];if(!_0x484636[_0x259adf(0xd0)](_0x2de632[_0x259adf(0xd2)]()))throw new Error('Render\x20is\x20not\x20found');const _0x417c82=_0x2de632[_0x259adf(0x78)]()['documentFlavor'];if(_0x417c82!==_univerjs_core[_0x259adf(0x102)][_0x259adf(0xf3)])_0x1ef1e2['syncExecuteCommand'](_univerjs_docs_ui[_0x259adf(0xa7)]['id']);await _0x675942[_0x259adf(0xa8)](_0x2de632[_0x259adf(0xd2)]());if(_0x417c82!==_univerjs_core[_0x259adf(0x102)]['TRADITIONAL'])_0x1ef1e2['syncExecuteCommand'](_univerjs_docs_ui[_0x259adf(0xa7)]['id']);return!![];}},DOCS_PRINT_PLUGIN_CONFIG_KEY='UNIVER_DOCS_PRINT',defaultPluginConfig={};function _0x27fd(_0x1e04d6,_0x8c65e5){_0x1e04d6=_0x1e04d6-0x77;const _0x244c1b=_0x244c();let _0x27fd9c=_0x244c1b[_0x1e04d6];return _0x27fd9c;}var name='@univerjs-pro/docs-print',version=_0x23becf(0x121);const DOCS_PRINT_PLUGIN_NAME='UNIVER_DOCS_PRINT';function DocPrintMenuItemFactory(_0x284578){const _0xe4caf=_0x23becf;return{'id':DocPrintOperation['id'],'type':_univerjs_ui['MenuItemType'][_0xe4caf(0xad)],'title':'print.menu','icon':_0xe4caf(0xab),'tooltip':_0xe4caf(0x11a),'hidden$':(0x0,_univerjs_ui['getMenuHiddenObservable'])(_0x284578,_univerjs_core[_0xe4caf(0x88)][_0xe4caf(0x9e)])};}const menuSchema={[_univerjs_ui[_0x23becf(0xf5)]['OTHERS']]:{[DocPrintOperation['id']]:{'order':0.1,'menuItemFactory':DocPrintMenuItemFactory}}};let DocsPrintUIController=class DocsPrintUIController extends _univerjs_core[_0x23becf(0xe5)]{constructor(_0x5aa74c,_0x3f36aa,_0x4a3d1a){const _0xf3d60=_0x23becf;super(),this[_0xf3d60(0xf4)]=_0x5aa74c,this[_0xf3d60(0xea)]=_0x3f36aa,this[_0xf3d60(0x11b)]=_0x4a3d1a,this[_0xf3d60(0x123)](),this['_initCommands'](),this[_0xf3d60(0xd4)]();}[_0x23becf(0x123)](){const _0x38d84c=_0x23becf;this[_0x38d84c(0xea)][_0x38d84c(0xba)](menuSchema);}['_initCommands'](){const _0x4a99c6=_0x23becf;this['disposeWithMe'](this[_0x4a99c6(0xf4)]['registerCommand'](DocPrintOperation));}[_0x23becf(0xd4)](){const _0x46539b=_0x23becf;[[_0x46539b(0xab),_univerjs_icons[_0x46539b(0xab)]]][_0x46539b(0x7d)](([_0x375eda,_0x42fcd1])=>{const _0x3d0468=_0x46539b;this['_componentManager'][_0x3d0468(0xf8)](_0x375eda,_0x42fcd1);});}};DocsPrintUIController=__decorate([__decorateParam(0x0,_univerjs_core[_0x23becf(0xa9)]),__decorateParam(0x1,_univerjs_ui[_0x23becf(0x10c)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x23becf(0xf0)])(_univerjs_ui['ComponentManager']))],DocsPrintUIController);let UniverDocsPrintPlugin=class UniverDocsPrintPlugin extends _univerjs_core[_0x23becf(0xc5)]{constructor(_0x37a831=defaultPluginConfig,_0x198a26,_0x388d88){const _0x2d74fa=_0x23becf;super(),this[_0x2d74fa(0xfa)]=_0x37a831,this['_injector']=_0x198a26,this['_configService']=_0x388d88;const {menu:_0x8787c4,..._0x202879}=(0x0,_univerjs_core[_0x2d74fa(0xae)])({},defaultPluginConfig,this[_0x2d74fa(0xfa)]);if(_0x8787c4)this['_configService'][_0x2d74fa(0x8d)](_0x2d74fa(0x9c),_0x8787c4,{'merge':!![]});this['_configService'][_0x2d74fa(0x8d)](DOCS_PRINT_PLUGIN_CONFIG_KEY,_0x202879);}['onStarting'](){const _0x5a0584=_0x23becf;(0x0,_univerjs_core['registerDependencies'])(this[_0x5a0584(0x8c)],[[DocPrintService],[DocsPrintUIController]]);}[_0x23becf(0x91)](){const _0x3aff56=_0x23becf;this[_0x3aff56(0x8c)]['get'](DocsPrintUIController);}};_defineProperty(UniverDocsPrintPlugin,_0x23becf(0x115),DOCS_PRINT_PLUGIN_NAME),_defineProperty(UniverDocsPrintPlugin,'packageName',name),_defineProperty(UniverDocsPrintPlugin,'version',version),_defineProperty(UniverDocsPrintPlugin,_0x23becf(0x11c),_univerjs_core[_0x23becf(0x88)][_0x23becf(0x9e)]),UniverDocsPrintPlugin=__decorate([(0x0,_univerjs_core[_0x23becf(0x108)])(_univerjs_network['UniverNetworkPlugin'],_univerjs_pro_license[_0x23becf(0xda)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x23becf(0xf0)])(_univerjs_core[_0x23becf(0xb3)])),__decorateParam(0x2,_univerjs_core[_0x23becf(0xc6)])],UniverDocsPrintPlugin),exports['DOCS_PRINT_PLUGIN_CONFIG_KEY']=DOCS_PRINT_PLUGIN_CONFIG_KEY,exports[_0x23becf(0xde)]=DocPrintOperation,Object[_0x23becf(0xa5)](exports,'UniverDocsPrintPlugin',{'enumerable':!![],'get':function(){return UniverDocsPrintPlugin;}});
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const _0x573c7f=_0x5eb5;function _0x253d(){const _0x5a7abe=['exports','145144MMemnn','1881Artcss','6fTiFZN','1255911XyUqGC','2313024JNcsmE','406504cBxhrn','455205uyAyEi','48504ooxkaC','Print','1714770cQWgXX'];_0x253d=function(){return _0x5a7abe;};return _0x253d();}(function(_0xcdf993,_0x308647){const _0x51a0f7=_0x5eb5,_0x719480=_0xcdf993();while(!![]){try{const _0x10d9be=-parseInt(_0x51a0f7(0x19a))/0x1+-parseInt(_0x51a0f7(0x199))/0x2+parseInt(_0x51a0f7(0x197))/0x3+-parseInt(_0x51a0f7(0x19f))/0x4+-parseInt(_0x51a0f7(0x19d))/0x5+parseInt(_0x51a0f7(0x196))/0x6*(-parseInt(_0x51a0f7(0x198))/0x7)+parseInt(_0x51a0f7(0x19b))/0x8*(parseInt(_0x51a0f7(0x1a0))/0x9);if(_0x10d9be===_0x308647)break;else _0x719480['push'](_0x719480['shift']());}catch(_0x537546){_0x719480['push'](_0x719480['shift']());}}}(_0x253d,0x4d8eb));const locale$1={'print':{'menu':_0x573c7f(0x19c)}},locale=locale$1;function _0x5eb5(_0x1a4145,_0x50d35f){_0x1a4145=_0x1a4145-0x196;const _0x253d67=_0x253d();let _0x5eb51c=_0x253d67[_0x1a4145];return _0x5eb51c;}module[_0x573c7f(0x19e)]=locale;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x137b(){const _0x57db12=['163430WfJnrQ','42917PJRkjk','4vLZAkP','1655853lweqgJ','1547648BXWYxJ','22244652GsVOTa','Print','exports','348kzMRpi','1049630imPrqG','5465272xRHNRj'];_0x137b=function(){return _0x57db12;};return _0x137b();}const _0xb77baf=_0x2701;(function(_0x5e5613,_0x982c0b){const _0x258de1=_0x2701,_0x49609d=_0x5e5613();while(!![]){try{const _0x5e637d=parseInt(_0x258de1(0x1bc))/0x1+-parseInt(_0x258de1(0x1c0))/0x2+parseInt(_0x258de1(0x1bf))/0x3*(-parseInt(_0x258de1(0x1be))/0x4)+parseInt(_0x258de1(0x1ba))/0x5+-parseInt(_0x258de1(0x1b9))/0x6*(parseInt(_0x258de1(0x1bd))/0x7)+-parseInt(_0x258de1(0x1bb))/0x8+parseInt(_0x258de1(0x1c1))/0x9;if(_0x5e637d===_0x982c0b)break;else _0x49609d['push'](_0x49609d['shift']());}catch(_0x218ca7){_0x49609d['push'](_0x49609d['shift']());}}}(_0x137b,0x754c4));const locale={'print':{'menu':_0xb77baf(0x1c2)}};function _0x2701(_0xe13ef0,_0x10e00c){_0xe13ef0=_0xe13ef0-0x1b9;const _0x137b6b=_0x137b();let _0x2701bf=_0x137b6b[_0xe13ef0];return _0x2701bf;}module[_0xb77baf(0x1c3)]=locale;
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x10a7(){const _0x327369=['755454MXAwCr','64038XTtiTS','30540jPvTgG','207TmlgHY','3918jRHAHP','613844ZrKUJJ','15063jiQQDl','25AMdSuv','4196460ggiUEm','164xCoWOM','8acRaSg','Print','22NNrlZk'];_0x10a7=function(){return _0x327369;};return _0x10a7();}const _0x34d1a4=_0x305c;(function(_0x10bcb9,_0x37553e){const _0x19eb08=_0x305c,_0x54ce40=_0x10bcb9();while(!![]){try{const _0x428b3e=-parseInt(_0x19eb08(0xe8))/0x1+-parseInt(_0x19eb08(0xe4))/0x2+parseInt(_0x19eb08(0xea))/0x3*(-parseInt(_0x19eb08(0xed))/0x4)+parseInt(_0x19eb08(0xeb))/0x5*(-parseInt(_0x19eb08(0xe5))/0x6)+-parseInt(_0x19eb08(0xe9))/0x7*(-parseInt(_0x19eb08(0xe1))/0x8)+parseInt(_0x19eb08(0xe7))/0x9*(parseInt(_0x19eb08(0xe6))/0xa)+parseInt(_0x19eb08(0xe3))/0xb*(parseInt(_0x19eb08(0xec))/0xc);if(_0x428b3e===_0x37553e)break;else _0x54ce40['push'](_0x54ce40['shift']());}catch(_0x412591){_0x54ce40['push'](_0x54ce40['shift']());}}}(_0x10a7,0x34d99));const locale$1={'print':{'menu':_0x34d1a4(0xe2)}},locale=locale$1;function _0x305c(_0xf10239,_0x225ff4){_0xf10239=_0xf10239-0xe1;const _0x10a76c=_0x10a7();let _0x305c22=_0x10a76c[_0xf10239];return _0x305c22;}module['exports']=locale;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x19ed(){const _0xaffe98=['51jiKQyx','11272928XOAywa','1919345hHsomd','چاپ','1058731HotLJc','66572GxIpUL','7585212naQMtv','250782VqcGZx','9XaCVPf','1907932LoTVIc'];_0x19ed=function(){return _0xaffe98;};return _0x19ed();}const _0x4bcdf1=_0x4644;(function(_0x40bd95,_0x1ff5ed){const _0x34ece6=_0x4644,_0x1b0df5=_0x40bd95();while(!![]){try{const _0x1017ca=-parseInt(_0x34ece6(0x1d5))/0x1+parseInt(_0x34ece6(0x1d0))/0x2+-parseInt(_0x34ece6(0x1d1))/0x3*(-parseInt(_0x34ece6(0x1d6))/0x4)+parseInt(_0x34ece6(0x1d3))/0x5+-parseInt(_0x34ece6(0x1d7))/0x6+-parseInt(_0x34ece6(0x1ce))/0x7+parseInt(_0x34ece6(0x1d2))/0x8*(parseInt(_0x34ece6(0x1cf))/0x9);if(_0x1017ca===_0x1ff5ed)break;else _0x1b0df5['push'](_0x1b0df5['shift']());}catch(_0x530243){_0x1b0df5['push'](_0x1b0df5['shift']());}}}(_0x19ed,0xa3d93));const locale={'print':{'menu':_0x4bcdf1(0x1d4)}};function _0x4644(_0xa04168,_0x248c33){_0xa04168=_0xa04168-0x1ce;const _0x19ed57=_0x19ed();let _0x46445a=_0x19ed57[_0xa04168];return _0x46445a;}module['exports']=locale;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x2c893c=_0xb4f5;function _0x25d0(){const _0x8304a5=['84063uOyzxQ','4230gUlroF','3661210rDqcmL','11187cZqjmy','142453iOCxeK','exports','4HCSiNZ','160ouxobH','74084GpHTGp','Imprimer','20123906jWSvxy','93YtGxDe','5153898Lyxmlf'];_0x25d0=function(){return _0x8304a5;};return _0x25d0();}(function(_0xf0979c,_0x5ed4f9){const _0xefa5eb=_0xb4f5,_0x371c67=_0xf0979c();while(!![]){try{const _0x5149d0=-parseInt(_0xefa5eb(0x164))/0x1*(parseInt(_0xefa5eb(0x166))/0x2)+-parseInt(_0xefa5eb(0x16b))/0x3*(parseInt(_0xefa5eb(0x168))/0x4)+parseInt(_0xefa5eb(0x162))/0x5+-parseInt(_0xefa5eb(0x16c))/0x6+-parseInt(_0xefa5eb(0x16d))/0x7*(-parseInt(_0xefa5eb(0x167))/0x8)+parseInt(_0xefa5eb(0x163))/0x9*(-parseInt(_0xefa5eb(0x16e))/0xa)+parseInt(_0xefa5eb(0x16a))/0xb;if(_0x5149d0===_0x5ed4f9)break;else _0x371c67['push'](_0x371c67['shift']());}catch(_0x954ccc){_0x371c67['push'](_0x371c67['shift']());}}}(_0x25d0,0x883d7));function _0xb4f5(_0x27ddde,_0x3b3812){_0x27ddde=_0x27ddde-0x162;const _0x25d0be=_0x25d0();let _0xb4f5f6=_0x25d0be[_0x27ddde];return _0xb4f5f6;}const locale={'print':{'menu':_0x2c893c(0x169)}};module[_0x2c893c(0x165)]=locale;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x5a03da=_0x47c0;(function(_0x6b6058,_0x485082){const _0x321d7e=_0x47c0,_0x4d5996=_0x6b6058();while(!![]){try{const _0x245ced=-parseInt(_0x321d7e(0x9f))/0x1*(parseInt(_0x321d7e(0x9c))/0x2)+-parseInt(_0x321d7e(0xa0))/0x3+parseInt(_0x321d7e(0x99))/0x4+-parseInt(_0x321d7e(0x9a))/0x5+parseInt(_0x321d7e(0xa2))/0x6+-parseInt(_0x321d7e(0x9e))/0x7*(parseInt(_0x321d7e(0xa3))/0x8)+-parseInt(_0x321d7e(0xa1))/0x9*(-parseInt(_0x321d7e(0x9b))/0xa);if(_0x245ced===_0x485082)break;else _0x4d5996['push'](_0x4d5996['shift']());}catch(_0x1e5300){_0x4d5996['push'](_0x4d5996['shift']());}}}(_0x41c2,0x29f68));function _0x41c2(){const _0xc8e7d0=['3173510uCqDxJ','2FZoKLI','exports','81214MxBVLI','80439bERmsJ','644970GlcLgw','9vcJxFf','833346ZuwsGy','72HBZbDa','628168zamLVV','207785ULrbrU'];_0x41c2=function(){return _0xc8e7d0;};return _0x41c2();}const locale={'print':{'menu':'印刷'}};function _0x47c0(_0x24126b,_0x32a14e){_0x24126b=_0x24126b-0x99;const _0x41c2fd=_0x41c2();let _0x47c0ce=_0x41c2fd[_0x24126b];return _0x47c0ce;}module[_0x5a03da(0x9d)]=locale;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4abc18,_0x463964){const _0x13dc2d=_0xf18e,_0x44ca90=_0x4abc18();while(!![]){try{const _0x3bfcb0=-parseInt(_0x13dc2d(0x185))/0x1+-parseInt(_0x13dc2d(0x17e))/0x2+-parseInt(_0x13dc2d(0x180))/0x3*(parseInt(_0x13dc2d(0x17d))/0x4)+-parseInt(_0x13dc2d(0x17f))/0x5*(parseInt(_0x13dc2d(0x184))/0x6)+-parseInt(_0x13dc2d(0x17c))/0x7*(parseInt(_0x13dc2d(0x183))/0x8)+parseInt(_0x13dc2d(0x182))/0x9*(parseInt(_0x13dc2d(0x17b))/0xa)+parseInt(_0x13dc2d(0x181))/0xb;if(_0x3bfcb0===_0x463964)break;else _0x44ca90['push'](_0x44ca90['shift']());}catch(_0x4a09ef){_0x44ca90['push'](_0x44ca90['shift']());}}}(_0x36ab,0xdeec2));function _0xf18e(_0x32d274,_0x1f0946){_0x32d274=_0x32d274-0x17b;const _0x36ab73=_0x36ab();let _0xf18e49=_0x36ab73[_0x32d274];return _0xf18e49;}const locale={'print':{'menu':'인쇄'}};function _0x36ab(){const _0x81eaa9=['387DUXbWV','8925960lnBIsz','108OdkMkq','1048479ZRKTWR','134660JEGhqN','7ftnntN','532FQRtzN','1588206Pywjan','312115zERkLc','36486wBVopu','66368929JNJiFn'];_0x36ab=function(){return _0x81eaa9;};return _0x36ab();}module['exports']=locale;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x254d(){const _0x53b1f0=['5999463SMnDiq','12sYZgKy','1692eJmhOK','256sGjRwW','Печать','3215982YFGVXB','10JKgbal','200rqetXV','829030NXkghu','21777DNnSvV','608JLyaRk','103537vlwOzU','108bkwZUT','2873091PNMtDD','exports'];_0x254d=function(){return _0x53b1f0;};return _0x254d();}const _0x464bb6=_0x3d11;function _0x3d11(_0x4671ab,_0x4e0cdf){_0x4671ab=_0x4671ab-0xcd;const _0x254d9c=_0x254d();let _0x3d11b1=_0x254d9c[_0x4671ab];return _0x3d11b1;}(function(_0x332a47,_0x4bbef8){const _0x27bb23=_0x3d11,_0x1f5af8=_0x332a47();while(!![]){try{const _0x2ed0fc=-parseInt(_0x27bb23(0xd6))/0x1*(parseInt(_0x27bb23(0xcf))/0x2)+parseInt(_0x27bb23(0xce))/0x3*(-parseInt(_0x27bb23(0xdb))/0x4)+-parseInt(_0x27bb23(0xcd))/0x5*(parseInt(_0x27bb23(0xd5))/0x6)+parseInt(_0x27bb23(0xd0))/0x7*(-parseInt(_0x27bb23(0xd7))/0x8)+parseInt(_0x27bb23(0xd4))/0x9+-parseInt(_0x27bb23(0xda))/0xa*(parseInt(_0x27bb23(0xd9))/0xb)+parseInt(_0x27bb23(0xd1))/0xc*(parseInt(_0x27bb23(0xd2))/0xd);if(_0x2ed0fc===_0x4bbef8)break;else _0x1f5af8['push'](_0x1f5af8['shift']());}catch(_0x29cd4f){_0x1f5af8['push'](_0x1f5af8['shift']());}}}(_0x254d,0xa646a));const locale={'print':{'menu':_0x464bb6(0xd8)}};module[_0x464bb6(0xd3)]=locale;
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x140f(){const _0x5b1906=['347073UjEOxJ','3SBcpmP','1327271Tkbacd','114GAssmX','621zPuSbh','4026820USjPXw','23512oghKPB','4XJlsWf','exports','83461FCPySu','3450935csCKXd','Tlač','1113862CePsIZ'];_0x140f=function(){return _0x5b1906;};return _0x140f();}const _0x273c53=_0x3b97;function _0x3b97(_0x18addd,_0x59d911){_0x18addd=_0x18addd-0x79;const _0x140f13=_0x140f();let _0x3b9770=_0x140f13[_0x18addd];return _0x3b9770;}(function(_0x229f68,_0x21f9b1){const _0x50a7e3=_0x3b97,_0x31992e=_0x229f68();while(!![]){try{const _0x430f82=-parseInt(_0x50a7e3(0x84))/0x1+parseInt(_0x50a7e3(0x83))/0x2*(parseInt(_0x50a7e3(0x85))/0x3)+parseInt(_0x50a7e3(0x7e))/0x4*(parseInt(_0x50a7e3(0x81))/0x5)+parseInt(_0x50a7e3(0x7a))/0x6*(-parseInt(_0x50a7e3(0x80))/0x7)+-parseInt(_0x50a7e3(0x7d))/0x8*(-parseInt(_0x50a7e3(0x7b))/0x9)+-parseInt(_0x50a7e3(0x7c))/0xa+-parseInt(_0x50a7e3(0x79))/0xb;if(_0x430f82===_0x21f9b1)break;else _0x31992e['push'](_0x31992e['shift']());}catch(_0x33a5ea){_0x31992e['push'](_0x31992e['shift']());}}}(_0x140f,0x562bc));const locale={'print':{'menu':_0x273c53(0x82)}};module[_0x273c53(0x7f)]=locale;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x5951c1=_0xf394;(function(_0x253b9c,_0x4b1c98){const _0x48ece1=_0xf394,_0x58d5f4=_0x253b9c();while(!![]){try{const _0x390f29=-parseInt(_0x48ece1(0x1e0))/0x1*(-parseInt(_0x48ece1(0x1df))/0x2)+-parseInt(_0x48ece1(0x1db))/0x3*(parseInt(_0x48ece1(0x1dc))/0x4)+parseInt(_0x48ece1(0x1e1))/0x5*(parseInt(_0x48ece1(0x1e3))/0x6)+-parseInt(_0x48ece1(0x1e2))/0x7+-parseInt(_0x48ece1(0x1de))/0x8*(-parseInt(_0x48ece1(0x1d8))/0x9)+-parseInt(_0x48ece1(0x1dd))/0xa+-parseInt(_0x48ece1(0x1d9))/0xb;if(_0x390f29===_0x4b1c98)break;else _0x58d5f4['push'](_0x58d5f4['shift']());}catch(_0x49ea25){_0x58d5f4['push'](_0x58d5f4['shift']());}}}(_0xadd3,0xac253));function _0xf394(_0x5a9b8e,_0x566015){_0x5a9b8e=_0x5a9b8e-0x1d8;const _0xadd334=_0xadd3();let _0xf394b3=_0xadd334[_0x5a9b8e];return _0xf394b3;}const locale={'print':{'menu':'In'}};module[_0x5951c1(0x1da)]=locale;function _0xadd3(){const _0x32b5e5=['8880480EkDJGp','6728GEXnYY','4pHbmfo','284266PRjFOR','125155VjZNEc','415240iPhdad','186FhSiFI','14472QlZPrE','10729158IWrDmm','exports','111JeKBbP','7456IrUYVE'];_0xadd3=function(){return _0x32b5e5;};return _0xadd3();}
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x4f4a42=_0x12f5;function _0x56ba(){const _0x498565=['14LeLfKa','527664SSZtEs','55405GMQKWf','154488iuYHzI','3197997kqhLxx','215012ZCTEXj','594944cnlOfm','69392qKJspQ','exports','102uyxKFk'];_0x56ba=function(){return _0x498565;};return _0x56ba();}function _0x12f5(_0x5e2da5,_0xa5978){_0x5e2da5=_0x5e2da5-0x189;const _0x56ba75=_0x56ba();let _0x12f52d=_0x56ba75[_0x5e2da5];return _0x12f52d;}(function(_0x1510d1,_0x1c80c5){const _0x166919=_0x12f5,_0x427926=_0x1510d1();while(!![]){try{const _0x49c804=parseInt(_0x166919(0x18a))/0x1+-parseInt(_0x166919(0x18d))/0x2+-parseInt(_0x166919(0x192))/0x3+-parseInt(_0x166919(0x18c))/0x4+parseInt(_0x166919(0x189))/0x5*(parseInt(_0x166919(0x190))/0x6)+-parseInt(_0x166919(0x191))/0x7*(parseInt(_0x166919(0x18e))/0x8)+parseInt(_0x166919(0x18b))/0x9;if(_0x49c804===_0x1c80c5)break;else _0x427926['push'](_0x427926['shift']());}catch(_0x43dc83){_0x427926['push'](_0x427926['shift']());}}}(_0x56ba,0x25889));const locale={'print':{'menu':'打印'}};module[_0x4f4a42(0x18f)]=locale;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x15fadd=_0x4ad3;(function(_0x4e58d5,_0x550b6a){const _0x41da43=_0x4ad3,_0x18e30c=_0x4e58d5();while(!![]){try{const _0x314e33=parseInt(_0x41da43(0x19e))/0x1+-parseInt(_0x41da43(0x196))/0x2*(-parseInt(_0x41da43(0x19a))/0x3)+-parseInt(_0x41da43(0x19f))/0x4*(parseInt(_0x41da43(0x195))/0x5)+-parseInt(_0x41da43(0x19b))/0x6*(-parseInt(_0x41da43(0x199))/0x7)+-parseInt(_0x41da43(0x197))/0x8+-parseInt(_0x41da43(0x194))/0x9+parseInt(_0x41da43(0x19d))/0xa*(parseInt(_0x41da43(0x19c))/0xb);if(_0x314e33===_0x550b6a)break;else _0x18e30c['push'](_0x18e30c['shift']());}catch(_0x3dc6f0){_0x18e30c['push'](_0x18e30c['shift']());}}}(_0x11d6,0xccf20));function _0x11d6(){const _0x10818c=['2645226rAXZWr','426830vVZbMm','738068sdfxCJ','11801552NdxjaH','exports','518ljnVhi','3YHBkjj','15528NjRedc','277893AAZONx','710DjAZlU','851907GLYYet','28qsxRzc'];_0x11d6=function(){return _0x10818c;};return _0x11d6();}const locale={'print':{'menu':'列印'}};function _0x4ad3(_0x3eec4b,_0x4a9dd8){_0x3eec4b=_0x3eec4b-0x194;const _0x11d642=_0x11d6();let _0x4ad351=_0x11d642[_0x3eec4b];return _0x4ad351;}module[_0x15fadd(0x198)]=locale;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x3b528b=_0x435b;(function(_0x4a70ed,_0x4352bb){const _0x32a9b5=_0x435b,_0x23d3b8=_0x4a70ed();while(!![]){try{const _0x313d12=parseInt(_0x32a9b5(0x185))/0x1*(-parseInt(_0x32a9b5(0x145))/0x2)+parseInt(_0x32a9b5(0x17b))/0x3+-parseInt(_0x32a9b5(0x144))/0x4*(-parseInt(_0x32a9b5(0x163))/0x5)+-parseInt(_0x32a9b5(0x190))/0x6+-parseInt(_0x32a9b5(0x167))/0x7*(-parseInt(_0x32a9b5(0x174))/0x8)+-parseInt(_0x32a9b5(0x16a))/0x9*(parseInt(_0x32a9b5(0x182))/0xa)+parseInt(_0x32a9b5(0x1d5))/0xb;if(_0x313d12===_0x4352bb)break;else _0x23d3b8['push'](_0x23d3b8['shift']());}catch(_0x130be5){_0x23d3b8['push'](_0x23d3b8['shift']());}}}(_0x3359,0x9a74f));import{CommandType,DependentOn,Disposable,DisposableCollection,DocumentFlavor,ICommandService,IConfigService,IUniverInstanceService,Inject,Injector,Plugin,UniverInstanceType,generateRandomId,merge,registerDependencies}from'@univerjs/core';import{DocPrintInterceptorService,SwitchDocModeCommand,VIEWPORT_KEY}from'@univerjs/docs-ui';import{CanvasRenderMode,Documents,Engine,IRenderManagerService,Scene,Viewport}from'@univerjs/engine-render';import{LS_CONFIG_KEY,UniverLicensePlugin,getDocFeatureLimit,getLicenseInfo,isFeatureAuthorizedWithinTime,isLocalCheck}from'@univerjs-pro/license';import{PRINT_CANVAS_CLASS,PRINT_CONTAINER_CLASS,PrintDirection,createPrintStyle}from'@univerjs-pro/print';import{DocSkeletonManagerService}from'@univerjs/docs';import{ComponentManager,IGlobalZoneService,IMenuManagerService,MenuItemType,RibbonStartGroup,getMenuHiddenObservable}from'@univerjs/ui';function _0x435b(_0x5c9b99,_0x9482){_0x5c9b99=_0x5c9b99-0x144;const _0x33590e=_0x3359();let _0x435bc3=_0x33590e[_0x5c9b99];return _0x435bc3;}import{UniverNetworkPlugin}from'@univerjs/network';import{PrintIcon}from'@univerjs/icons';function _typeof(_0x11321b){'@babel/helpers - typeof';const _0xde7f13=_0x435b;return _typeof='function'==typeof Symbol&&_0xde7f13(0x1bb)==typeof Symbol[_0xde7f13(0x19e)]?function(_0x1c4449){return typeof _0x1c4449;}:function(_0x2f293a){const _0x2cc0ac=_0xde7f13;return _0x2f293a&&'function'==typeof Symbol&&_0x2f293a['constructor']===Symbol&&_0x2f293a!==Symbol[_0x2cc0ac(0x14f)]?'symbol':typeof _0x2f293a;},_typeof(_0x11321b);}function toPrimitive(_0x272269,_0x325ed9){const _0x4d9e62=_0x435b;if(_0x4d9e62(0x17c)!=_typeof(_0x272269)||!_0x272269)return _0x272269;var _0x14ae14=_0x272269[Symbol[_0x4d9e62(0x192)]];if(void 0x0!==_0x14ae14){var _0x3ecbf5=_0x14ae14[_0x4d9e62(0x15f)](_0x272269,_0x325ed9||_0x4d9e62(0x18f));if(_0x4d9e62(0x17c)!=_typeof(_0x3ecbf5))return _0x3ecbf5;throw new TypeError(_0x4d9e62(0x1a8));}return('string'===_0x325ed9?String:Number)(_0x272269);}function toPropertyKey(_0x266169){const _0x2ff23e=_0x435b;var _0x458905=toPrimitive(_0x266169,_0x2ff23e(0x1b2));return'symbol'==_typeof(_0x458905)?_0x458905:_0x458905+'';}function _defineProperty(_0x1c17b2,_0x60afae,_0x4898de){const _0x307d0d=_0x435b;return(_0x60afae=toPropertyKey(_0x60afae))in _0x1c17b2?Object[_0x307d0d(0x1b5)](_0x1c17b2,_0x60afae,{'value':_0x4898de,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1c17b2[_0x60afae]=_0x4898de,_0x1c17b2;}var DocPrintPageCanvasView=class extends Disposable{get[_0x3b528b(0x1d1)](){const _0x57aaff=_0x3b528b;return this[_0x57aaff(0x184)];}get[_0x3b528b(0x199)](){const _0xae9c=_0x3b528b;return this[_0xae9c(0x14b)];}get[_0x3b528b(0x14d)](){const _0xc07b7d=_0x3b528b,_0xb741ed=this[_0xc07b7d(0x1b6)][_0xc07b7d(0x146)](IRenderManagerService)[_0xc07b7d(0x187)](this[_0xc07b7d(0x19d)]);if(!_0xb741ed)throw new Error(_0xc07b7d(0x17d));return _0xb741ed;}get[_0x3b528b(0x1ae)](){const _0x1795f6=_0x3b528b;return this[_0x1795f6(0x14d)][_0x1795f6(0x1a0)](DocSkeletonManagerService)[_0x1795f6(0x158)]();}get[_0x3b528b(0x1bf)](){const _0x4dcc71=_0x3b528b,_0xa03d47=this[_0x4dcc71(0x1ae)]['getSkeletonData']();if(!_0xa03d47)throw new Error(_0x4dcc71(0x1c2));return _0xa03d47;}get[_0x3b528b(0x168)](){const _0x185de0=_0x3b528b,_0x4899be=this[_0x185de0(0x1bf)][_0x185de0(0x186)][0x0];return{'width':_0x4899be[_0x185de0(0x1cc)],'height':_0x4899be[_0x185de0(0x1d6)]};}constructor(_0x13d2a9,_0x2172f3,_0x367905,_0xee0475){const _0x3c8e5a=_0x3b528b;super(),this['_injector']=_0x13d2a9,this[_0x3c8e5a(0x17e)]=_0x2172f3,this[_0x3c8e5a(0x19d)]=_0x367905,this[_0x3c8e5a(0x151)]=_0xee0475,_defineProperty(this,_0x3c8e5a(0x184),document[_0x3c8e5a(0x176)]('div')),_defineProperty(this,_0x3c8e5a(0x14b),document['createElement'](_0x3c8e5a(0x149))),_defineProperty(this,'_engine',void 0x0),_defineProperty(this,_0x3c8e5a(0x153),void 0x0),_defineProperty(this,_0x3c8e5a(0x1b7),void 0x0),_defineProperty(this,_0x3c8e5a(0x177),void 0x0),_defineProperty(this,_0x3c8e5a(0x1a5),void 0x0),_defineProperty(this,_0x3c8e5a(0x1cf),new DisposableCollection()),this[_0x3c8e5a(0x1b7)]=generateRandomId(0x4),this[_0x3c8e5a(0x171)](),this[_0x3c8e5a(0x1a9)]({'dispose':()=>{const _0x2646ed=_0x3c8e5a;this['_engine'][_0x2646ed(0x16b)](),this[_0x2646ed(0x153)]['dispose'](),this[_0x2646ed(0x1cf)]['dispose']();}});}[_0x3b528b(0x15d)](){const _0x450c2a=_0x3b528b,{docsTop:_0x4a49bf,docsLeft:_0x4e2e52}=this['_documents'][_0x450c2a(0x19c)](),_0x2e726a=this[_0x450c2a(0x168)][_0x450c2a(0x1a7)],_0x5c0716=this[_0x450c2a(0x168)][_0x450c2a(0x175)];return{'top':_0x4a49bf+(_0x4a49bf+_0x2e726a)*this[_0x450c2a(0x17e)],'bottom':_0x4a49bf+(_0x4a49bf+_0x2e726a)*(this[_0x450c2a(0x17e)]+0x1),'left':_0x4e2e52,'right':_0x4e2e52+_0x5c0716};}[_0x3b528b(0x171)](){const _0x1b39be=_0x3b528b,_0x56ec2e=0x1;this['_engine']=new Engine('',{'elementWidth':this['_paperSize'][_0x1b39be(0x175)],'elementHeight':this[_0x1b39be(0x168)][_0x1b39be(0x1a7)],'dpr':0x1,'renderMode':CanvasRenderMode[_0x1b39be(0x15c)]}),this[_0x1b39be(0x153)]=new Scene(this[_0x1b39be(0x1b7)],this[_0x1b39be(0x164)]),this[_0x1b39be(0x153)]['scale'](_0x56ec2e,_0x56ec2e),this['_engine'][_0x1b39be(0x1a1)](this[_0x1b39be(0x184)],![]),this['_engine'][_0x1b39be(0x1d2)]()[_0x1b39be(0x1be)]()[_0x1b39be(0x1d4)](this[_0x1b39be(0x1b7)]+'_'+generateRandomId(0x4)),this[_0x1b39be(0x1d3)](),this[_0x1b39be(0x1c3)]();}[_0x3b528b(0x1d3)](){const _0x51447c=_0x3b528b,{pageMarginLeft:_0x38d6ae,pageMarginTop:_0x20a078,docsLeft:_0x546a7d,docsTop:_0x496863}=this['_offsetConfig'],_0x4e4924={'pageMarginLeft':_0x38d6ae,'pageMarginTop':_0x20a078},_0x52a074=new Documents(_0x51447c(0x18d),this[_0x51447c(0x1ae)],_0x4e4924);_0x52a074[_0x51447c(0x16d)](_0x546a7d,_0x496863),this[_0x51447c(0x153)][_0x51447c(0x172)](_0x52a074),this[_0x51447c(0x177)]=_0x52a074;const _0x2a4158=this[_0x51447c(0x1b6)][_0x51447c(0x146)](DocPrintInterceptorService);_0x2a4158[_0x51447c(0x1cb)][_0x51447c(0x1ab)](_0x2a4158['interceptor'][_0x51447c(0x152)]()['PRINTING_COMPONENT_COLLECT'])(void 0x0,{'unitId':this['_unitId'],'scene':this[_0x51447c(0x153)],'engine':this['_engine'],'root':this[_0x51447c(0x14b)],'documents':this[_0x51447c(0x177)],'skeleton':this[_0x51447c(0x1ae)]});}['_addViewport'](){const _0x1e300a=_0x3b528b;this['_viewMain']=new Viewport(VIEWPORT_KEY['VIEW_MAIN'],this[_0x1e300a(0x153)],{'explicitViewportWidthSet':!![],'explicitViewportHeightSet':!![]});}[_0x3b528b(0x173)](){const _0x56bea9=_0x3b528b,_0x575bc3=this[_0x56bea9(0x15d)]();this[_0x56bea9(0x1a5)][_0x56bea9(0x1c7)]({'viewportScrollX':_0x575bc3['left'],'viewportScrollY':_0x575bc3[_0x56bea9(0x1b8)]}),this[_0x56bea9(0x14b)]['style'][_0x56bea9(0x1b4)]=_0x56bea9(0x19f),this[_0x56bea9(0x14b)][_0x56bea9(0x178)][_0x56bea9(0x1b8)]=_0x56bea9(0x19b),this[_0x56bea9(0x14b)][_0x56bea9(0x178)][_0x56bea9(0x191)]=_0x56bea9(0x19b),this[_0x56bea9(0x14b)][_0x56bea9(0x178)]['width']=_0x56bea9(0x15a),this[_0x56bea9(0x14b)][_0x56bea9(0x178)][_0x56bea9(0x1a7)]=_0x56bea9(0x15a),this['_effects']=new DisposableCollection();const _0x4e7d64=this[_0x56bea9(0x1b6)][_0x56bea9(0x146)](DocPrintInterceptorService);_0x4e7d64[_0x56bea9(0x1cb)]['fetchThroughInterceptors'](_0x4e7d64['interceptor'][_0x56bea9(0x152)]()[_0x56bea9(0x166)])(this['_effects'],{'unitId':this[_0x56bea9(0x19d)],'scene':this[_0x56bea9(0x153)],'engine':this[_0x56bea9(0x164)],'root':this[_0x56bea9(0x14b)],'skeleton':this[_0x56bea9(0x1ae)],'offset':{'x':_0x575bc3[_0x56bea9(0x191)],'y':_0x575bc3['top']},'bound':{'top':_0x575bc3[_0x56bea9(0x1b8)],'left':_0x575bc3[_0x56bea9(0x191)],'right':_0x575bc3[_0x56bea9(0x1b3)],'bottom':_0x575bc3[_0x56bea9(0x198)]}});}[_0x3b528b(0x1a3)](){const _0x3bf207=_0x3b528b,_0x341e38=this[_0x3bf207(0x164)]['getCanvas']()['getContext']();this[_0x3bf207(0x177)][_0x3bf207(0x18e)](),this[_0x3bf207(0x153)][_0x3bf207(0x162)](),_0x341e38[_0x3bf207(0x18c)](),this[_0x3bf207(0x153)][_0x3bf207(0x1a3)](),_0x341e38[_0x3bf207(0x1c9)]();}};function __decorateParam(_0xbc416e,_0x2a55fa){return function(_0x35044e,_0x21a592){_0x2a55fa(_0x35044e,_0x21a592,_0xbc416e);};}function __decorate(_0x33b986,_0x4fd7c6,_0x2b2b2b,_0x3a0d69){const _0x10b43e=_0x3b528b;var _0x3f5737=arguments[_0x10b43e(0x165)],_0xd6702b=_0x3f5737<0x3?_0x4fd7c6:_0x3a0d69===null?_0x3a0d69=Object[_0x10b43e(0x194)](_0x4fd7c6,_0x2b2b2b):_0x3a0d69,_0x58a4db;if(typeof Reflect===_0x10b43e(0x17c)&&typeof Reflect[_0x10b43e(0x1bc)]===_0x10b43e(0x1ac))_0xd6702b=Reflect[_0x10b43e(0x1bc)](_0x33b986,_0x4fd7c6,_0x2b2b2b,_0x3a0d69);else{for(var _0x2bd6f8=_0x33b986['length']-0x1;_0x2bd6f8>=0x0;_0x2bd6f8--)if(_0x58a4db=_0x33b986[_0x2bd6f8])_0xd6702b=(_0x3f5737<0x3?_0x58a4db(_0xd6702b):_0x3f5737>0x3?_0x58a4db(_0x4fd7c6,_0x2b2b2b,_0xd6702b):_0x58a4db(_0x4fd7c6,_0x2b2b2b))||_0xd6702b;}return _0x3f5737>0x3&&_0xd6702b&&Object[_0x10b43e(0x1b5)](_0x4fd7c6,_0x2b2b2b,_0xd6702b),_0xd6702b;}const BUILD_TIMESTAMP=Number[_0x3b528b(0x1c1)](0x69ec6f48),DEFAULT_PRINT_LIMIT=0x1,getPrintInfoByLicense=(_0x1ff71e,_0x45afa8,_0x35cdc3)=>{const _0x192207=_0x3b528b,_0x4e73ff={'page':_0x1ff71e,'isPro':![],'timeValid':![]};if(!_0x45afa8||!_0x35cdc3)return _0x4e73ff;const _0x17b308=getLicenseInfo(_0x45afa8,_0x35cdc3);if(_0x17b308[_0x192207(0x16f)]){const _0x271e88=_0x17b308['message'],_0x2cf502=isFeatureAuthorizedWithinTime(_0x271e88,'df',BUILD_TIMESTAMP);_0x4e73ff[_0x192207(0x18a)]=_0x2cf502,_0x4e73ff[_0x192207(0x1ce)]=_0x2cf502,_0x4e73ff[_0x192207(0x157)]=getDocFeatureLimit(_0x271e88,_0x2cf502,_0x192207(0x17f),_0x1ff71e,_0x1ff71e,0x0);}return _0x4e73ff;};let DocPrintService=class DocPrintService extends Disposable{constructor(_0xcf97ac,_0x55f9ed,_0x660feb,_0x1d3234,_0xe164ec){const _0x5c1abf=_0x3b528b;super(),this[_0x5c1abf(0x1ad)]=_0xcf97ac,this[_0x5c1abf(0x1c4)]=_0x55f9ed,this['_injector']=_0x660feb,this[_0x5c1abf(0x19a)]=_0x1d3234,this[_0x5c1abf(0x1c6)]=_0xe164ec;}[_0x3b528b(0x1a2)](_0x3bcd95){const _0x5390d9=_0x3b528b;var _0x3e5375,_0x4fafbc;const {ls:_0x3546d5,pbk:_0x57810c}=(_0x3e5375=this['_configService'][_0x5390d9(0x189)](LS_CONFIG_KEY))!==null&&_0x3e5375!==void 0x0?_0x3e5375:{},_0x38dde8=isLocalCheck()?Number['POSITIVE_INFINITY']:getPrintInfoByLicense(0x1,_0x3546d5,_0x57810c)['page'];if(!this[_0x5390d9(0x1ad)]['getUnit'](_0x3bcd95,UniverInstanceType[_0x5390d9(0x161)]))throw new Error('DocumentDataModel\x20is\x20not\x20found');const _0x5e6e75=this[_0x5390d9(0x1c4)][_0x5390d9(0x187)](_0x3bcd95);if(!_0x5e6e75)throw new Error(_0x5390d9(0x17d));const _0x3a522a=(_0x4fafbc=_0x5e6e75[_0x5390d9(0x1a0)](DocSkeletonManagerService)[_0x5390d9(0x158)]()[_0x5390d9(0x14e)]())===null||_0x4fafbc===void 0x0?void 0x0:_0x4fafbc[_0x5390d9(0x186)];if(!_0x3a522a)throw new Error(_0x5390d9(0x170));const _0x8483f2={'width':_0x3a522a[0x0][_0x5390d9(0x1cc)],'height':_0x3a522a[0x0][_0x5390d9(0x1d6)]},_0x2dff45=_0x3a522a['length'],_0x365c1d=Math[_0x5390d9(0x147)](_0x38dde8,_0x2dff45),_0x410438=_0x5e6e75[_0x5390d9(0x159)][_0x5390d9(0x19c)](),_0x12a5e1=document[_0x5390d9(0x176)]('div');_0x12a5e1[_0x5390d9(0x16e)]=PRINT_CONTAINER_CLASS;const _0x54949a=new Array(_0x365c1d)[_0x5390d9(0x1d0)](null)[_0x5390d9(0x156)]((_0x5eb80c,_0x3ce3be)=>{const _0x30aca0=_0x5390d9,_0x2d5e88=new DocPrintPageCanvasView(this[_0x30aca0(0x1b6)],_0x3ce3be,_0x3bcd95,_0x410438);return _0x2d5e88[_0x30aca0(0x1d1)][_0x30aca0(0x16e)]=PRINT_CANVAS_CLASS,_0x2d5e88;});_0x54949a[_0x5390d9(0x14a)](_0x54cdf6=>{const _0x4c9da4=_0x5390d9;_0x12a5e1['appendChild'](_0x54cdf6['container']),_0x54cdf6[_0x4c9da4(0x1d1)]['appendChild'](_0x54cdf6[_0x4c9da4(0x199)]),_0x54cdf6[_0x4c9da4(0x173)]();});const _0x3395c6=createPrintStyle(_0x8483f2['width'],_0x8483f2[_0x5390d9(0x1a7)],PrintDirection[_0x5390d9(0x154)]);return document[_0x5390d9(0x17a)][_0x5390d9(0x160)](_0x3395c6),document[_0x5390d9(0x17a)][_0x5390d9(0x160)](_0x12a5e1),new Promise(_0x53251c=>{setTimeout(()=>{const _0x1e86ec=_0x435b;window[_0x1e86ec(0x179)]=()=>{const _0x47ea22=_0x1e86ec;_0x54949a[_0x47ea22(0x14a)](_0x362679=>{_0x362679['render']();});},window['onafterprint']=()=>{const _0x1b0894=_0x1e86ec;_0x54949a[_0x1b0894(0x14a)](_0x3887dd=>{_0x3887dd['dispose']();}),document[_0x1b0894(0x17a)][_0x1b0894(0x16c)](_0x12a5e1),document[_0x1b0894(0x17a)][_0x1b0894(0x16c)](_0x3395c6),this[_0x1b0894(0x1c6)][_0x1b0894(0x1ca)](),_0x53251c(!![]);},window['print']();},0x64);});}};function _0x3359(){const _0x5eff10=['setId','8825960pokIjG','pageHeight','2188oLxuvE','523346ETTmoN','get','min','_initCommands','div','forEach','_root','mergeMenu','_currentRender','getSkeletonData','prototype','version','_offsetConfig','getInterceptPoints','_scene','Portrait','register','map','page','getSkeleton','mainComponent','100%','_initMenus','Printing','_calculateLayout','OPERATION','call','appendChild','UNIVER_DOC','makeDirty','185Yfqziy','_engine','length','PRINTING_DOM_COLLECT','38472bQqEEg','_paperSize','packageName','5486985ipVwzb','dispose','removeChild','translate','className','valid','Pages\x20are\x20not\x20found','_initRenderer','addObject','prepare','1144xqNzmB','width','createElement','_documents','style','onbeforeprint','body','1957938vyIstb','object','Render\x20is\x20not\x20found','_page','mpn','_config','OTHERS','10jVINsR','0.21.1','_container','2ffRbVQ','pages','getRenderById','onReady','getConfig','isPro','getUnitId','save','__DocPrintRender__','makeForceDirty','default','2973042uJhDaH','left','toPrimitive','menu','getOwnPropertyDescriptor','syncExecuteCommand','UNIVER_DOCS_PRINT','_commandService','bottom','root','_configService','0px','getOffsetConfig','_unitId','iterator','absolute','with','setContainer','print','render','_initComponents','_viewMain','docs.operation.print','height','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','disposeWithMe','PrintIcon','fetchThroughInterceptors','function','_univerInstanceService','_skeleton','onStarting','_menuManagerService','registerCommand','string','right','position','defineProperty','_injector','_key','top','print.menu','setConfig','symbol','decorate','_componentManager','getContext','_skeletonData','pluginName','parseInt','Skeleton\x20data\x20is\x20not\x20found','_addViewport','_renderManagerService','getCurrentUnitOfType','_globalZoneService','updateScrollVal','documentFlavor','restore','close','interceptor','pageWidth','TRADITIONAL','timeValid','_effects','fill','container','getCanvas','_addComponent'];_0x3359=function(){return _0x5eff10;};return _0x3359();}DocPrintService=__decorate([__decorateParam(0x0,IUniverInstanceService),__decorateParam(0x1,IRenderManagerService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService),__decorateParam(0x4,IGlobalZoneService)],DocPrintService);const DocPrintOperation={'id':_0x3b528b(0x1a6),'type':CommandType[_0x3b528b(0x15e)],'handler':async _0x258083=>{const _0x12318f=_0x3b528b,_0x20a288=_0x258083['get'](IUniverInstanceService),_0x27bb7a=_0x258083[_0x12318f(0x146)](DocPrintService),_0x3fb913=_0x258083[_0x12318f(0x146)](IRenderManagerService),_0x459e76=_0x258083[_0x12318f(0x146)](ICommandService),_0x1d1d27=_0x20a288[_0x12318f(0x1c5)](UniverInstanceType[_0x12318f(0x161)]);if(!_0x1d1d27)return![];if(!_0x3fb913['getRenderById'](_0x1d1d27[_0x12318f(0x18b)]()))throw new Error(_0x12318f(0x17d));const _0x385e81=_0x1d1d27['getDocumentStyle']()[_0x12318f(0x1c8)];if(_0x385e81!==DocumentFlavor[_0x12318f(0x1cd)])_0x459e76[_0x12318f(0x195)](SwitchDocModeCommand['id']);await _0x27bb7a[_0x12318f(0x1a2)](_0x1d1d27[_0x12318f(0x18b)]());if(_0x385e81!==DocumentFlavor[_0x12318f(0x1cd)])_0x459e76['syncExecuteCommand'](SwitchDocModeCommand['id']);return!![];}},DOCS_PRINT_PLUGIN_CONFIG_KEY=_0x3b528b(0x196),defaultPluginConfig={};var name='@univerjs-pro/docs-print',version=_0x3b528b(0x183);const DOCS_PRINT_PLUGIN_NAME=_0x3b528b(0x196);function DocPrintMenuItemFactory(_0xd65f7f){const _0x1cd895=_0x3b528b;return{'id':DocPrintOperation['id'],'type':MenuItemType['BUTTON'],'title':_0x1cd895(0x1b9),'icon':_0x1cd895(0x1aa),'tooltip':_0x1cd895(0x1b9),'hidden$':getMenuHiddenObservable(_0xd65f7f,UniverInstanceType[_0x1cd895(0x161)])};}const menuSchema={[RibbonStartGroup[_0x3b528b(0x181)]]:{[DocPrintOperation['id']]:{'order':0.1,'menuItemFactory':DocPrintMenuItemFactory}}};let DocsPrintUIController=class DocsPrintUIController extends Disposable{constructor(_0x42c705,_0x48a41c,_0x28a285){const _0x486133=_0x3b528b;super(),this['_commandService']=_0x42c705,this[_0x486133(0x1b0)]=_0x48a41c,this[_0x486133(0x1bd)]=_0x28a285,this[_0x486133(0x15b)](),this[_0x486133(0x148)](),this[_0x486133(0x1a4)]();}[_0x3b528b(0x15b)](){const _0x5a641b=_0x3b528b;this[_0x5a641b(0x1b0)][_0x5a641b(0x14c)](menuSchema);}[_0x3b528b(0x148)](){const _0x501c82=_0x3b528b;this[_0x501c82(0x1a9)](this[_0x501c82(0x197)][_0x501c82(0x1b1)](DocPrintOperation));}[_0x3b528b(0x1a4)](){const _0x14a585=_0x3b528b;[['PrintIcon',PrintIcon]][_0x14a585(0x14a)](([_0x118652,_0x20a98a])=>{const _0x882b52=_0x14a585;this[_0x882b52(0x1bd)][_0x882b52(0x155)](_0x118652,_0x20a98a);});}};DocsPrintUIController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService),__decorateParam(0x2,Inject(ComponentManager))],DocsPrintUIController);let UniverDocsPrintPlugin=class UniverDocsPrintPlugin extends Plugin{constructor(_0x3e3a5a=defaultPluginConfig,_0x28d3d1,_0x3108c1){const _0x26c8e2=_0x3b528b;super(),this[_0x26c8e2(0x180)]=_0x3e3a5a,this[_0x26c8e2(0x1b6)]=_0x28d3d1,this['_configService']=_0x3108c1;const {menu:_0x5178a6,..._0x2878ba}=merge({},defaultPluginConfig,this[_0x26c8e2(0x180)]);if(_0x5178a6)this[_0x26c8e2(0x19a)][_0x26c8e2(0x1ba)](_0x26c8e2(0x193),_0x5178a6,{'merge':!![]});this['_configService'][_0x26c8e2(0x1ba)](DOCS_PRINT_PLUGIN_CONFIG_KEY,_0x2878ba);}[_0x3b528b(0x1af)](){const _0x4badc8=_0x3b528b;registerDependencies(this[_0x4badc8(0x1b6)],[[DocPrintService],[DocsPrintUIController]]);}[_0x3b528b(0x188)](){const _0x2e9876=_0x3b528b;this['_injector'][_0x2e9876(0x146)](DocsPrintUIController);}};_defineProperty(UniverDocsPrintPlugin,_0x3b528b(0x1c0),DOCS_PRINT_PLUGIN_NAME),_defineProperty(UniverDocsPrintPlugin,_0x3b528b(0x169),name),_defineProperty(UniverDocsPrintPlugin,_0x3b528b(0x150),version),_defineProperty(UniverDocsPrintPlugin,'type',UniverInstanceType[_0x3b528b(0x161)]),UniverDocsPrintPlugin=__decorate([DependentOn(UniverNetworkPlugin,UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverDocsPrintPlugin);export{DOCS_PRINT_PLUGIN_CONFIG_KEY,DocPrintOperation,UniverDocsPrintPlugin};
|
|
1
|
+
const _0x2f3d15=_0x144f;(function(_0x4fd140,_0x54c589){const _0x1a0c5c=_0x144f,_0x15cf50=_0x4fd140();while(!![]){try{const _0x5e1134=parseInt(_0x1a0c5c(0x14b))/0x1*(parseInt(_0x1a0c5c(0x188))/0x2)+-parseInt(_0x1a0c5c(0x142))/0x3*(-parseInt(_0x1a0c5c(0x155))/0x4)+-parseInt(_0x1a0c5c(0x19d))/0x5+-parseInt(_0x1a0c5c(0x12d))/0x6*(parseInt(_0x1a0c5c(0x19a))/0x7)+parseInt(_0x1a0c5c(0x166))/0x8*(parseInt(_0x1a0c5c(0x167))/0x9)+parseInt(_0x1a0c5c(0x183))/0xa+-parseInt(_0x1a0c5c(0x122))/0xb*(-parseInt(_0x1a0c5c(0x198))/0xc);if(_0x5e1134===_0x54c589)break;else _0x15cf50['push'](_0x15cf50['shift']());}catch(_0x44961a){_0x15cf50['push'](_0x15cf50['shift']());}}}(_0x585a,0x980f6));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(_0x24f17d){'@babel/helpers - typeof';const _0x479bbb=_0x144f;return _typeof=_0x479bbb(0x153)==typeof Symbol&&_0x479bbb(0x11c)==typeof Symbol[_0x479bbb(0x124)]?function(_0x291559){return typeof _0x291559;}:function(_0x299b0b){const _0x7995f1=_0x479bbb;return _0x299b0b&&_0x7995f1(0x153)==typeof Symbol&&_0x299b0b[_0x7995f1(0x149)]===Symbol&&_0x299b0b!==Symbol[_0x7995f1(0x12f)]?'symbol':typeof _0x299b0b;},_typeof(_0x24f17d);}function toPrimitive(_0x1ef4e7,_0x3fae8e){const _0x3ea7c2=_0x144f;if(_0x3ea7c2(0x11b)!=_typeof(_0x1ef4e7)||!_0x1ef4e7)return _0x1ef4e7;var _0x110b75=_0x1ef4e7[Symbol[_0x3ea7c2(0x156)]];if(void 0x0!==_0x110b75){var _0x3b544e=_0x110b75[_0x3ea7c2(0x17c)](_0x1ef4e7,_0x3fae8e||'default');if('object'!=_typeof(_0x3b544e))return _0x3b544e;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x3ea7c2(0x18c)===_0x3fae8e?String:Number)(_0x1ef4e7);}function toPropertyKey(_0x52cde7){const _0x143274=_0x144f;var _0x4ff90e=toPrimitive(_0x52cde7,_0x143274(0x18c));return _0x143274(0x11c)==_typeof(_0x4ff90e)?_0x4ff90e:_0x4ff90e+'';}function _0x585a(){const _0x3b88a8=['_paperSize','11vDCiOo','type','iterator','page','mainComponent','scale','_commandService','_calculateLayout','onafterprint','mergeMenu','_scene','6xUxqrV','getInterceptPoints','prototype','PrintIcon','style','_initRenderer','root','menu','version','defineProperty','_univerInstanceService','0px','appendChild','parseInt','getUnitId','container','_addViewport','__DocPrintRender__','_initCommands','removeChild','0.22.0-insiders.20260513-09bbeca','33105pGULli','_unitId','position','_page','_config','PRINTING_COMPONENT_COLLECT','_container','constructor','getConfig','157iPpBHI','getDocumentStyle','div','POSITIVE_INFINITY','PRINTING_DOM_COLLECT','top','createElement','_skeletonData','function','save','100XZUmAj','toPrimitive','TRADITIONAL','_configService','updateScrollVal','get','UNIVER_DOC','getOwnPropertyDescriptor','timeValid','disposeWithMe','absolute','print','isPro','Render\x20is\x20not\x20found','mpn','message','left','470600wQGJHH','36dsJBAl','_initComponents','onbeforeprint','getSkeleton','_viewMain','restore','_skeleton','interceptor','setContainer','map','fill','_root','DocumentDataModel\x20is\x20not\x20found','getCurrentUnitOfType','_engine','_globalZoneService','dispose','_menuManagerService','Portrait','registerCommand','getCanvas','call','body','_offsetConfig','_renderManagerService','render','_currentRender','packageName','1320040IFtzUx','height','syncExecuteCommand','setId','fetchThroughInterceptors','1542hIDyPA','BUTTON','getContext','@univerjs-pro/docs-print','string','getOffsetConfig','min','_effects','100%','_injector','print.menu','pageWidth','width','getRenderById','_key','makeDirty','13481076zwVYNL','right','915775WEBeiZ','forEach','pluginName','5669930MIAWSU','setConfig','UNIVER_DOCS_PRINT','getUnit','OPERATION','addObject','decorate','_addComponent','className','length','with','register','pages','prepare','onReady','_componentManager','object','symbol','Skeleton\x20data\x20is\x20not\x20found','documentFlavor','_initMenus','_documents'];_0x585a=function(){return _0x3b88a8;};return _0x585a();}function _defineProperty(_0x43abd9,_0x486257,_0x245ad6){const _0x40ea74=_0x144f;return(_0x486257=toPropertyKey(_0x486257))in _0x43abd9?Object[_0x40ea74(0x136)](_0x43abd9,_0x486257,{'value':_0x245ad6,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x43abd9[_0x486257]=_0x245ad6,_0x43abd9;}var DocPrintPageCanvasView=class extends Disposable{get[_0x2f3d15(0x13c)](){const _0x19881c=_0x2f3d15;return this[_0x19881c(0x148)];}get[_0x2f3d15(0x133)](){const _0x192bab=_0x2f3d15;return this[_0x192bab(0x172)];}get['_currentRender'](){const _0x5505cc=_0x2f3d15,_0x4f9715=this[_0x5505cc(0x191)][_0x5505cc(0x15a)](IRenderManagerService)[_0x5505cc(0x195)](this[_0x5505cc(0x143)]);if(!_0x4f9715)throw new Error('Render\x20is\x20not\x20found');return _0x4f9715;}get[_0x2f3d15(0x16d)](){const _0x1acf6c=_0x2f3d15;return this[_0x1acf6c(0x181)]['with'](DocSkeletonManagerService)[_0x1acf6c(0x16a)]();}get[_0x2f3d15(0x152)](){const _0x1a23af=_0x2f3d15,_0x2660fa=this[_0x1a23af(0x16d)]['getSkeletonData']();if(!_0x2660fa)throw new Error(_0x1a23af(0x11d));return _0x2660fa;}get[_0x2f3d15(0x121)](){const _0x118d83=_0x2f3d15,_0x1c3cdf=this[_0x118d83(0x152)]['pages'][0x0];return{'width':_0x1c3cdf[_0x118d83(0x193)],'height':_0x1c3cdf['pageHeight']};}constructor(_0x31ed87,_0x4850,_0x532d6e,_0x392775){const _0x58f777=_0x2f3d15;super(),this[_0x58f777(0x191)]=_0x31ed87,this[_0x58f777(0x145)]=_0x4850,this[_0x58f777(0x143)]=_0x532d6e,this[_0x58f777(0x17e)]=_0x392775,_defineProperty(this,'_container',document[_0x58f777(0x151)](_0x58f777(0x14d))),_defineProperty(this,'_root',document['createElement'](_0x58f777(0x14d))),_defineProperty(this,_0x58f777(0x175),void 0x0),_defineProperty(this,_0x58f777(0x12c),void 0x0),_defineProperty(this,_0x58f777(0x196),void 0x0),_defineProperty(this,'_documents',void 0x0),_defineProperty(this,_0x58f777(0x16b),void 0x0),_defineProperty(this,_0x58f777(0x18f),new DisposableCollection()),this['_key']=generateRandomId(0x4),this[_0x58f777(0x132)](),this[_0x58f777(0x15e)]({'dispose':()=>{const _0x3d424a=_0x58f777;this[_0x3d424a(0x175)][_0x3d424a(0x177)](),this[_0x3d424a(0x12c)]['dispose'](),this[_0x3d424a(0x18f)][_0x3d424a(0x177)]();}});}[_0x2f3d15(0x129)](){const _0x5ec5f4=_0x2f3d15,{docsTop:_0x1d531a,docsLeft:_0x555a92}=this[_0x5ec5f4(0x120)][_0x5ec5f4(0x18d)](),_0x25517d=this[_0x5ec5f4(0x121)][_0x5ec5f4(0x184)],_0x32600f=this['_paperSize'][_0x5ec5f4(0x194)];return{'top':_0x1d531a+(_0x1d531a+_0x25517d)*this[_0x5ec5f4(0x145)],'bottom':_0x1d531a+(_0x1d531a+_0x25517d)*(this['_page']+0x1),'left':_0x555a92,'right':_0x555a92+_0x32600f};}[_0x2f3d15(0x132)](){const _0x533b0b=_0x2f3d15,_0x4ebd0c=0x1,_0x2b3ff8=0x1;this[_0x533b0b(0x175)]=new Engine('',{'elementWidth':this[_0x533b0b(0x121)][_0x533b0b(0x194)],'elementHeight':this['_paperSize'][_0x533b0b(0x184)],'dpr':_0x2b3ff8,'renderMode':CanvasRenderMode['Printing']}),this[_0x533b0b(0x12c)]=new Scene(this[_0x533b0b(0x196)],this[_0x533b0b(0x175)]),this[_0x533b0b(0x12c)][_0x533b0b(0x127)](_0x4ebd0c,_0x4ebd0c),this[_0x533b0b(0x175)][_0x533b0b(0x16f)](this[_0x533b0b(0x148)],![]),this[_0x533b0b(0x175)][_0x533b0b(0x17b)]()[_0x533b0b(0x18a)]()[_0x533b0b(0x186)](this[_0x533b0b(0x196)]+'_'+generateRandomId(0x4)),this[_0x533b0b(0x112)](),this[_0x533b0b(0x13d)]();}['_addComponent'](){const _0x3cfcec=_0x2f3d15,{pageMarginLeft:_0x1230ac,pageMarginTop:_0x30fceb,docsLeft:_0x165323,docsTop:_0x529872}=this[_0x3cfcec(0x17e)],_0x232b87={'pageMarginLeft':_0x1230ac,'pageMarginTop':_0x30fceb},_0x1ff738=new Documents(_0x3cfcec(0x13e),this[_0x3cfcec(0x16d)],_0x232b87);_0x1ff738['translate'](_0x165323,_0x529872),this[_0x3cfcec(0x12c)][_0x3cfcec(0x1a2)](_0x1ff738),this[_0x3cfcec(0x120)]=_0x1ff738;const _0x50a17d=this[_0x3cfcec(0x191)][_0x3cfcec(0x15a)](DocPrintInterceptorService);_0x50a17d[_0x3cfcec(0x16e)][_0x3cfcec(0x187)](_0x50a17d[_0x3cfcec(0x16e)]['getInterceptPoints']()[_0x3cfcec(0x147)])(void 0x0,{'unitId':this[_0x3cfcec(0x143)],'scene':this['_scene'],'engine':this[_0x3cfcec(0x175)],'root':this[_0x3cfcec(0x172)],'documents':this[_0x3cfcec(0x120)],'skeleton':this[_0x3cfcec(0x16d)]});}[_0x2f3d15(0x13d)](){const _0x5804be=_0x2f3d15;this[_0x5804be(0x16b)]=new Viewport(VIEWPORT_KEY['VIEW_MAIN'],this[_0x5804be(0x12c)],{'explicitViewportWidthSet':!![],'explicitViewportHeightSet':!![]});}[_0x2f3d15(0x118)](){const _0x172db4=_0x2f3d15,_0xfcc555=this[_0x172db4(0x129)]();this['_viewMain'][_0x172db4(0x159)]({'viewportScrollX':_0xfcc555[_0x172db4(0x165)],'viewportScrollY':_0xfcc555[_0x172db4(0x150)]}),this[_0x172db4(0x172)]['style'][_0x172db4(0x144)]=_0x172db4(0x15f),this[_0x172db4(0x172)][_0x172db4(0x131)][_0x172db4(0x150)]=_0x172db4(0x138),this[_0x172db4(0x172)][_0x172db4(0x131)][_0x172db4(0x165)]='0px',this[_0x172db4(0x172)]['style'][_0x172db4(0x194)]=_0x172db4(0x190),this['_root'][_0x172db4(0x131)][_0x172db4(0x184)]='100%',this[_0x172db4(0x18f)]=new DisposableCollection();const _0x25adbe=this[_0x172db4(0x191)][_0x172db4(0x15a)](DocPrintInterceptorService);_0x25adbe[_0x172db4(0x16e)][_0x172db4(0x187)](_0x25adbe[_0x172db4(0x16e)][_0x172db4(0x12e)]()[_0x172db4(0x14f)])(this['_effects'],{'unitId':this[_0x172db4(0x143)],'scene':this[_0x172db4(0x12c)],'engine':this[_0x172db4(0x175)],'root':this[_0x172db4(0x172)],'skeleton':this[_0x172db4(0x16d)],'offset':{'x':_0xfcc555[_0x172db4(0x165)],'y':_0xfcc555[_0x172db4(0x150)]},'bound':{'top':_0xfcc555[_0x172db4(0x150)],'left':_0xfcc555[_0x172db4(0x165)],'right':_0xfcc555[_0x172db4(0x199)],'bottom':_0xfcc555['bottom']}});}['render'](){const _0x363b58=_0x2f3d15,_0x3ba6cc=this['_engine'][_0x363b58(0x17b)]()[_0x363b58(0x18a)]();this[_0x363b58(0x120)]['makeForceDirty'](),this[_0x363b58(0x12c)][_0x363b58(0x197)](),_0x3ba6cc[_0x363b58(0x154)](),this[_0x363b58(0x12c)]['render'](),_0x3ba6cc[_0x363b58(0x16c)]();}};function __decorateParam(_0x17567d,_0x5ecb35){return function(_0xfee673,_0x3d5fd7){_0x5ecb35(_0xfee673,_0x3d5fd7,_0x17567d);};}function __decorate(_0x204153,_0x21f956,_0x1538a6,_0x25af2a){const _0x182dfc=_0x2f3d15;var _0x3c4422=arguments[_0x182dfc(0x114)],_0x487f8b=_0x3c4422<0x3?_0x21f956:_0x25af2a===null?_0x25af2a=Object[_0x182dfc(0x15c)](_0x21f956,_0x1538a6):_0x25af2a,_0x17f4e4;if(typeof Reflect===_0x182dfc(0x11b)&&typeof Reflect[_0x182dfc(0x111)]==='function')_0x487f8b=Reflect[_0x182dfc(0x111)](_0x204153,_0x21f956,_0x1538a6,_0x25af2a);else{for(var _0x5a50da=_0x204153[_0x182dfc(0x114)]-0x1;_0x5a50da>=0x0;_0x5a50da--)if(_0x17f4e4=_0x204153[_0x5a50da])_0x487f8b=(_0x3c4422<0x3?_0x17f4e4(_0x487f8b):_0x3c4422>0x3?_0x17f4e4(_0x21f956,_0x1538a6,_0x487f8b):_0x17f4e4(_0x21f956,_0x1538a6))||_0x487f8b;}return _0x3c4422>0x3&&_0x487f8b&&Object[_0x182dfc(0x136)](_0x21f956,_0x1538a6,_0x487f8b),_0x487f8b;}const BUILD_TIMESTAMP=Number[_0x2f3d15(0x13a)](0x6a04258e),DEFAULT_PRINT_LIMIT=0x1,getPrintInfoByLicense=(_0x1b61b5,_0x38be9f,_0x84da99)=>{const _0x5ba70b=_0x2f3d15,_0x13913e={'page':_0x1b61b5,'isPro':![],'timeValid':![]};if(!_0x38be9f||!_0x84da99)return _0x13913e;const _0x2c465f=getLicenseInfo(_0x38be9f,_0x84da99);if(_0x2c465f['valid']){const _0x30ff31=_0x2c465f[_0x5ba70b(0x164)],_0x39cac5=isFeatureAuthorizedWithinTime(_0x30ff31,'df',BUILD_TIMESTAMP);_0x13913e[_0x5ba70b(0x161)]=_0x39cac5,_0x13913e[_0x5ba70b(0x15d)]=_0x39cac5,_0x13913e[_0x5ba70b(0x125)]=getDocFeatureLimit(_0x30ff31,_0x39cac5,_0x5ba70b(0x163),_0x1b61b5,_0x1b61b5,0x0);}return _0x13913e;};let DocPrintService=class DocPrintService extends Disposable{constructor(_0x3dfae4,_0x392c38,_0x5c4270,_0x2b904d,_0x599712){const _0x537dce=_0x2f3d15;super(),this[_0x537dce(0x137)]=_0x3dfae4,this[_0x537dce(0x17f)]=_0x392c38,this[_0x537dce(0x191)]=_0x5c4270,this[_0x537dce(0x158)]=_0x2b904d,this[_0x537dce(0x176)]=_0x599712;}['print'](_0x447e73){const _0x373194=_0x2f3d15;var _0x382df1,_0x373124;const {ls:_0x5d8f9a,pbk:_0xe66a41}=(_0x382df1=this[_0x373194(0x158)][_0x373194(0x14a)](LS_CONFIG_KEY))!==null&&_0x382df1!==void 0x0?_0x382df1:{},_0x8c922d=isLocalCheck()?Number[_0x373194(0x14e)]:getPrintInfoByLicense(0x1,_0x5d8f9a,_0xe66a41)['page'];if(!this[_0x373194(0x137)][_0x373194(0x1a0)](_0x447e73,UniverInstanceType[_0x373194(0x15b)]))throw new Error(_0x373194(0x173));const _0x299207=this[_0x373194(0x17f)]['getRenderById'](_0x447e73);if(!_0x299207)throw new Error(_0x373194(0x162));const _0x993b39=(_0x373124=_0x299207[_0x373194(0x115)](DocSkeletonManagerService)[_0x373194(0x16a)]()['getSkeletonData']())===null||_0x373124===void 0x0?void 0x0:_0x373124[_0x373194(0x117)];if(!_0x993b39)throw new Error('Pages\x20are\x20not\x20found');const _0x4f8a33={'width':_0x993b39[0x0][_0x373194(0x193)],'height':_0x993b39[0x0]['pageHeight']},_0x5906a0=_0x993b39[_0x373194(0x114)],_0x1f0416=Math[_0x373194(0x18e)](_0x8c922d,_0x5906a0),_0x2a4cff=_0x299207[_0x373194(0x126)][_0x373194(0x18d)](),_0x5459ed=document[_0x373194(0x151)]('div');_0x5459ed[_0x373194(0x113)]=PRINT_CONTAINER_CLASS;const _0x2c0256=new Array(_0x1f0416)[_0x373194(0x171)](null)[_0x373194(0x170)]((_0x172c4d,_0x403e12)=>{const _0x28ecea=_0x373194,_0x5b37f7=new DocPrintPageCanvasView(this['_injector'],_0x403e12,_0x447e73,_0x2a4cff);return _0x5b37f7[_0x28ecea(0x13c)]['className']=PRINT_CANVAS_CLASS,_0x5b37f7;});_0x2c0256[_0x373194(0x19b)](_0x3df42a=>{const _0x48ea31=_0x373194;_0x5459ed[_0x48ea31(0x139)](_0x3df42a[_0x48ea31(0x13c)]),_0x3df42a[_0x48ea31(0x13c)][_0x48ea31(0x139)](_0x3df42a['root']),_0x3df42a[_0x48ea31(0x118)]();});const _0x5520e5=createPrintStyle(_0x4f8a33[_0x373194(0x194)],_0x4f8a33['height'],PrintDirection[_0x373194(0x179)]);return document[_0x373194(0x17d)]['appendChild'](_0x5520e5),document[_0x373194(0x17d)][_0x373194(0x139)](_0x5459ed),new Promise(_0xe13f66=>{setTimeout(()=>{const _0x5349c4=_0x144f;window[_0x5349c4(0x169)]=()=>{const _0x362e7e=_0x5349c4;_0x2c0256[_0x362e7e(0x19b)](_0x144612=>{const _0x38c1fa=_0x362e7e;_0x144612[_0x38c1fa(0x180)]();});},window[_0x5349c4(0x12a)]=()=>{const _0x5cbc9f=_0x5349c4;_0x2c0256[_0x5cbc9f(0x19b)](_0x1b76c2=>{_0x1b76c2['dispose']();}),document[_0x5cbc9f(0x17d)][_0x5cbc9f(0x140)](_0x5459ed),document['body'][_0x5cbc9f(0x140)](_0x5520e5),this[_0x5cbc9f(0x176)]['close'](),_0xe13f66(!![]);},window[_0x5349c4(0x160)]();},0x64);});}};DocPrintService=__decorate([__decorateParam(0x0,IUniverInstanceService),__decorateParam(0x1,IRenderManagerService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService),__decorateParam(0x4,IGlobalZoneService)],DocPrintService);const DocPrintOperation={'id':'docs.operation.print','type':CommandType[_0x2f3d15(0x1a1)],'handler':async _0x34fdda=>{const _0x40527e=_0x2f3d15,_0x5e4b2d=_0x34fdda['get'](IUniverInstanceService),_0x29c523=_0x34fdda[_0x40527e(0x15a)](DocPrintService),_0x166ed0=_0x34fdda[_0x40527e(0x15a)](IRenderManagerService),_0x5550b7=_0x34fdda['get'](ICommandService),_0x1685a1=_0x5e4b2d[_0x40527e(0x174)](UniverInstanceType[_0x40527e(0x15b)]);if(!_0x1685a1)return![];if(!_0x166ed0[_0x40527e(0x195)](_0x1685a1[_0x40527e(0x13b)]()))throw new Error(_0x40527e(0x162));const _0x3d0cab=_0x1685a1[_0x40527e(0x14c)]()[_0x40527e(0x11e)];if(_0x3d0cab!==DocumentFlavor[_0x40527e(0x157)])_0x5550b7[_0x40527e(0x185)](SwitchDocModeCommand['id']);await _0x29c523[_0x40527e(0x160)](_0x1685a1['getUnitId']());if(_0x3d0cab!==DocumentFlavor['TRADITIONAL'])_0x5550b7[_0x40527e(0x185)](SwitchDocModeCommand['id']);return!![];}},DOCS_PRINT_PLUGIN_CONFIG_KEY=_0x2f3d15(0x19f),defaultPluginConfig={};var name=_0x2f3d15(0x18b),version=_0x2f3d15(0x141);const DOCS_PRINT_PLUGIN_NAME=_0x2f3d15(0x19f);function DocPrintMenuItemFactory(_0x4db6c1){const _0x317131=_0x2f3d15;return{'id':DocPrintOperation['id'],'type':MenuItemType[_0x317131(0x189)],'title':_0x317131(0x192),'icon':_0x317131(0x130),'tooltip':_0x317131(0x192),'hidden$':getMenuHiddenObservable(_0x4db6c1,UniverInstanceType[_0x317131(0x15b)])};}const menuSchema={[RibbonStartGroup['OTHERS']]:{[DocPrintOperation['id']]:{'order':0.1,'menuItemFactory':DocPrintMenuItemFactory}}};let DocsPrintUIController=class DocsPrintUIController extends Disposable{constructor(_0x4580e2,_0x9a06b7,_0x4f29bb){const _0x2fe457=_0x2f3d15;super(),this[_0x2fe457(0x128)]=_0x4580e2,this[_0x2fe457(0x178)]=_0x9a06b7,this[_0x2fe457(0x11a)]=_0x4f29bb,this[_0x2fe457(0x11f)](),this[_0x2fe457(0x13f)](),this[_0x2fe457(0x168)]();}[_0x2f3d15(0x11f)](){const _0x4893ab=_0x2f3d15;this['_menuManagerService'][_0x4893ab(0x12b)](menuSchema);}[_0x2f3d15(0x13f)](){const _0x2e559e=_0x2f3d15;this[_0x2e559e(0x15e)](this[_0x2e559e(0x128)][_0x2e559e(0x17a)](DocPrintOperation));}['_initComponents'](){const _0x39ba94=_0x2f3d15;[['PrintIcon',PrintIcon]][_0x39ba94(0x19b)](([_0xc751d9,_0x5e3964])=>{const _0x412fba=_0x39ba94;this[_0x412fba(0x11a)][_0x412fba(0x116)](_0xc751d9,_0x5e3964);});}};DocsPrintUIController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService),__decorateParam(0x2,Inject(ComponentManager))],DocsPrintUIController);function _0x144f(_0x582644,_0x14fc48){_0x582644=_0x582644-0x111;const _0x585acf=_0x585a();let _0x144fbe=_0x585acf[_0x582644];return _0x144fbe;}let UniverDocsPrintPlugin=class UniverDocsPrintPlugin extends Plugin{constructor(_0x2411d3=defaultPluginConfig,_0x58c9bc,_0x4f7a8f){const _0x3cbceb=_0x2f3d15;super(),this[_0x3cbceb(0x146)]=_0x2411d3,this['_injector']=_0x58c9bc,this[_0x3cbceb(0x158)]=_0x4f7a8f;const {menu:_0x49a594,..._0x5485c8}=merge({},defaultPluginConfig,this[_0x3cbceb(0x146)]);if(_0x49a594)this[_0x3cbceb(0x158)][_0x3cbceb(0x19e)](_0x3cbceb(0x134),_0x49a594,{'merge':!![]});this[_0x3cbceb(0x158)][_0x3cbceb(0x19e)](DOCS_PRINT_PLUGIN_CONFIG_KEY,_0x5485c8);}['onStarting'](){registerDependencies(this['_injector'],[[DocPrintService],[DocsPrintUIController]]);}[_0x2f3d15(0x119)](){const _0x1f838c=_0x2f3d15;this['_injector'][_0x1f838c(0x15a)](DocsPrintUIController);}};_defineProperty(UniverDocsPrintPlugin,_0x2f3d15(0x19c),DOCS_PRINT_PLUGIN_NAME),_defineProperty(UniverDocsPrintPlugin,_0x2f3d15(0x182),name),_defineProperty(UniverDocsPrintPlugin,_0x2f3d15(0x135),version),_defineProperty(UniverDocsPrintPlugin,_0x2f3d15(0x123),UniverInstanceType[_0x2f3d15(0x15b)]),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
|
+
function _0x219d(_0x249e9b,_0x36e8ad){_0x249e9b=_0x249e9b-0xc1;const _0x395c6d=_0x395c();let _0x219d5f=_0x395c6d[_0x249e9b];return _0x219d5f;}function _0x395c(){const _0x3f6425=['10qlTfWt','3452082dcORRb','257901cjNDea','14ftmEEA','112066kSDZnq','120SbQnxv','37477eYMlYs','1869444SQCuYU','8436hxCNNK','2966708CqTuDo','5wKgVvO','6201018VBtlJE'];_0x395c=function(){return _0x3f6425;};return _0x395c();}(function(_0x3a7eea,_0x48f0b4){const _0x1ff4a1=_0x219d,_0x234389=_0x3a7eea();while(!![]){try{const _0x338df6=-parseInt(_0x1ff4a1(0xc1))/0x1*(-parseInt(_0x1ff4a1(0xc2))/0x2)+parseInt(_0x1ff4a1(0xc5))/0x3+parseInt(_0x1ff4a1(0xc7))/0x4*(parseInt(_0x1ff4a1(0xc8))/0x5)+-parseInt(_0x1ff4a1(0xcb))/0x6+-parseInt(_0x1ff4a1(0xcc))/0x7*(-parseInt(_0x1ff4a1(0xc3))/0x8)+-parseInt(_0x1ff4a1(0xc9))/0x9*(-parseInt(_0x1ff4a1(0xca))/0xa)+parseInt(_0x1ff4a1(0xc4))/0xb*(-parseInt(_0x1ff4a1(0xc6))/0xc);if(_0x338df6===_0x48f0b4)break;else _0x234389['push'](_0x234389['shift']());}catch(_0x58c65c){_0x234389['push'](_0x234389['shift']());}}}(_0x395c,0x66a72));const locale$1={'print':{'menu':'Print'}},locale=locale$1;export{locale as default};
|
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x4d4367=_0x4bf7;(function(_0x4310bd,_0xfb3967){const _0x4dd1b6=_0x4bf7,_0x2acaaa=_0x4310bd();while(!![]){try{const _0x594594=-parseInt(_0x4dd1b6(0xb9))/0x1+-parseInt(_0x4dd1b6(0xb5))/0x2+-parseInt(_0x4dd1b6(0xb4))/0x3+parseInt(_0x4dd1b6(0xb3))/0x4+-parseInt(_0x4dd1b6(0xb1))/0x5*(-parseInt(_0x4dd1b6(0xb8))/0x6)+-parseInt(_0x4dd1b6(0xb6))/0x7+parseInt(_0x4dd1b6(0xb7))/0x8;if(_0x594594===_0xfb3967)break;else _0x2acaaa['push'](_0x2acaaa['shift']());}catch(_0x556258){_0x2acaaa['push'](_0x2acaaa['shift']());}}}(_0x5d33,0xd3b2d));function _0x5d33(){const _0x1fded7=['Print','6406220leermS','1457562rzrpwy','1884360PwJerB','7007357xaciKA','11544624IODyGf','6337074LGlgRF','804610ArAkIs','5TBOcDc'];_0x5d33=function(){return _0x1fded7;};return _0x5d33();}function _0x4bf7(_0x5718aa,_0x3d15fc){_0x5718aa=_0x5718aa-0xb1;const _0x5d33cf=_0x5d33();let _0x4bf720=_0x5d33cf[_0x5718aa];return _0x4bf720;}const locale={'print':{'menu':_0x4d4367(0xb2)}};export{locale as default};
|
package/lib/es/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x2a41(_0x277428,_0x4947a0){_0x277428=_0x277428-0x13d;const _0x8bbcaf=_0x8bbc();let _0x2a41f2=_0x8bbcaf[_0x277428];return _0x2a41f2;}(function(_0x2b4fc1,_0x538b3a){const _0xe906b9=_0x2a41,_0x51052b=_0x2b4fc1();while(!![]){try{const _0x2bc63a=parseInt(_0xe906b9(0x140))/0x1*(-parseInt(_0xe906b9(0x142))/0x2)+-parseInt(_0xe906b9(0x144))/0x3*(-parseInt(_0xe906b9(0x145))/0x4)+parseInt(_0xe906b9(0x13d))/0x5+parseInt(_0xe906b9(0x146))/0x6+parseInt(_0xe906b9(0x13f))/0x7+-parseInt(_0xe906b9(0x13e))/0x8*(-parseInt(_0xe906b9(0x143))/0x9)+-parseInt(_0xe906b9(0x141))/0xa;if(_0x2bc63a===_0x538b3a)break;else _0x51052b['push'](_0x51052b['shift']());}catch(_0x2ca8a7){_0x51052b['push'](_0x51052b['shift']());}}}(_0x8bbc,0x764ca));function _0x8bbc(){const _0x5af39a=['8720870hXzxhk','28JOxbEt','3078OFPmlR','1180098uRearH','4qHuYtH','382392mnIZLD','3187180ANFMOr','8352gxgKcf','1511601SMCmwq','22206NajEJs'];_0x8bbc=function(){return _0x5af39a;};return _0x8bbc();}const locale$1={'print':{'menu':'Print'}},locale=locale$1;export{locale as default};
|
package/lib/es/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x2ea221=_0x335b;function _0x335b(_0x1a8b32,_0x142c27){_0x1a8b32=_0x1a8b32-0x1a2;const _0x177902=_0x1779();let _0x335b5c=_0x177902[_0x1a8b32];return _0x335b5c;}function _0x1779(){const _0x339233=['80YxfWWA','13824aJREJT','31867PbgNzi','2850655qabXRL','982030wdrGmJ','3933021AfOLKa','4rkKijS','17077820hegAMd','چاپ','6unglfh','1447073OYgMUg','158580XNRedY','2YdIPxM'];_0x1779=function(){return _0x339233;};return _0x1779();}(function(_0x1d303c,_0x3b4b41){const _0x5cf746=_0x335b,_0x32a5a8=_0x1d303c();while(!![]){try{const _0x3c0eb6=parseInt(_0x5cf746(0x1aa))/0x1*(parseInt(_0x5cf746(0x1ac))/0x2)+-parseInt(_0x5cf746(0x1a5))/0x3*(parseInt(_0x5cf746(0x1a6))/0x4)+parseInt(_0x5cf746(0x1a3))/0x5*(parseInt(_0x5cf746(0x1a9))/0x6)+-parseInt(_0x5cf746(0x1a4))/0x7*(parseInt(_0x5cf746(0x1ad))/0x8)+-parseInt(_0x5cf746(0x1ab))/0x9+-parseInt(_0x5cf746(0x1a7))/0xa+-parseInt(_0x5cf746(0x1a2))/0xb*(-parseInt(_0x5cf746(0x1ae))/0xc);if(_0x3c0eb6===_0x3b4b41)break;else _0x32a5a8['push'](_0x32a5a8['shift']());}catch(_0x3bbffe){_0x32a5a8['push'](_0x32a5a8['shift']());}}}(_0x1779,0xdf727));const locale={'print':{'menu':_0x2ea221(0x1a8)}};export{locale as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x483009,_0x7ba1f1){const _0x4f87cf=_0x287c,_0x1657b8=_0x483009();while(!![]){try{const _0x40fd8b=-parseInt(_0x4f87cf(0x100))/0x1+-parseInt(_0x4f87cf(0x102))/0x2*(-parseInt(_0x4f87cf(0xfa))/0x3)+parseInt(_0x4f87cf(0x101))/0x4+-parseInt(_0x4f87cf(0xfd))/0x5*(parseInt(_0x4f87cf(0x103))/0x6)+parseInt(_0x4f87cf(0xfe))/0x7*(-parseInt(_0x4f87cf(0xfb))/0x8)+-parseInt(_0x4f87cf(0xff))/0x9*(-parseInt(_0x4f87cf(0x104))/0xa)+parseInt(_0x4f87cf(0xfc))/0xb;if(_0x40fd8b===_0x7ba1f1)break;else _0x1657b8['push'](_0x1657b8['shift']());}catch(_0x1c4dd8){_0x1657b8['push'](_0x1657b8['shift']());}}}(_0x56eb,0xf29ec));function _0x287c(_0xc079d8,_0x2d7943){_0xc079d8=_0xc079d8-0xfa;const _0x56eba6=_0x56eb();let _0x287c11=_0x56eba6[_0xc079d8];return _0x287c11;}const locale={'print':{'menu':'Imprimer'}};function _0x56eb(){const _0xca3674=['1086TdSTvq','50226TevRag','982840xzccSI','801hZsUXb','128vSzWll','13472712GRziPu','365RpUtix','297633ArhnIh','27FzdSld','151422OWKlMJ','3087824weNeOi'];_0x56eb=function(){return _0xca3674;};return _0x56eb();}export{locale as default};
|
package/lib/es/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3de7(_0x84dd46,_0x465fd5){_0x84dd46=_0x84dd46-0x1b4;const _0x227504=_0x2275();let _0x3de70f=_0x227504[_0x84dd46];return _0x3de70f;}(function(_0x245bfb,_0x573987){const _0x45ac28=_0x3de7,_0x5176a1=_0x245bfb();while(!![]){try{const _0x181b9f=-parseInt(_0x45ac28(0x1b5))/0x1*(parseInt(_0x45ac28(0x1bb))/0x2)+-parseInt(_0x45ac28(0x1ba))/0x3*(-parseInt(_0x45ac28(0x1b6))/0x4)+parseInt(_0x45ac28(0x1b8))/0x5+-parseInt(_0x45ac28(0x1bd))/0x6+parseInt(_0x45ac28(0x1b9))/0x7*(parseInt(_0x45ac28(0x1b4))/0x8)+parseInt(_0x45ac28(0x1b7))/0x9*(-parseInt(_0x45ac28(0x1bc))/0xa)+parseInt(_0x45ac28(0x1be))/0xb;if(_0x181b9f===_0x573987)break;else _0x5176a1['push'](_0x5176a1['shift']());}catch(_0x30fd4a){_0x5176a1['push'](_0x5176a1['shift']());}}}(_0x2275,0x23cd9));function _0x2275(){const _0x40ff91=['35897eSiuEA','288100XzTlRx','9VuStYU','321355mzXQdA','251153rZOHTm','6VPdacn','2dlJNVs','890620JqTriD','1048602yUtukh','1039918zfKlxg','32scQwAx'];_0x2275=function(){return _0x40ff91;};return _0x2275();}const locale={'print':{'menu':'印刷'}};export{locale as default};
|
package/lib/es/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x42de(){const _0x501c31=['6357405idSjGN','11217600RXKRVy','498382HgjDuP','257050VIpLlQ','2674UYeZGz','387wXFBGa','13578719ugaHnO','374776xUsBmt','2IHrwTb','10536swtOxq','18TFQoAB'];_0x42de=function(){return _0x501c31;};return _0x42de();}function _0x43ec(_0x18b516,_0x4500a6){_0x18b516=_0x18b516-0x155;const _0x42dee7=_0x42de();let _0x43ec72=_0x42dee7[_0x18b516];return _0x43ec72;}(function(_0x475852,_0x30a32a){const _0x23d2a4=_0x43ec,_0xb45240=_0x475852();while(!![]){try{const _0x564f1c=parseInt(_0x23d2a4(0x15c))/0x1*(parseInt(_0x23d2a4(0x157))/0x2)+-parseInt(_0x23d2a4(0x159))/0x3*(-parseInt(_0x23d2a4(0x156))/0x4)+parseInt(_0x23d2a4(0x15a))/0x5+parseInt(_0x23d2a4(0x158))/0x6*(-parseInt(_0x23d2a4(0x15e))/0x7)+parseInt(_0x23d2a4(0x15b))/0x8+parseInt(_0x23d2a4(0x15f))/0x9*(-parseInt(_0x23d2a4(0x15d))/0xa)+-parseInt(_0x23d2a4(0x155))/0xb;if(_0x564f1c===_0x30a32a)break;else _0xb45240['push'](_0xb45240['shift']());}catch(_0x3b417a){_0xb45240['push'](_0xb45240['shift']());}}}(_0x42de,0xb0aeb));const locale={'print':{'menu':'인쇄'}};export{locale as default};
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x303cb3=_0x1d20;function _0x1d20(_0x2857cc,_0x4ba280){_0x2857cc=_0x2857cc-0x1ec;const _0x471545=_0x4715();let _0x1d20b8=_0x471545[_0x2857cc];return _0x1d20b8;}(function(_0x20625a,_0x5733f9){const _0x3c042d=_0x1d20,_0x5e0b82=_0x20625a();while(!![]){try{const _0x37ca63=parseInt(_0x3c042d(0x1ed))/0x1*(parseInt(_0x3c042d(0x1f2))/0x2)+parseInt(_0x3c042d(0x1f6))/0x3*(-parseInt(_0x3c042d(0x1f0))/0x4)+-parseInt(_0x3c042d(0x1f5))/0x5*(-parseInt(_0x3c042d(0x1ec))/0x6)+-parseInt(_0x3c042d(0x1ef))/0x7+-parseInt(_0x3c042d(0x1f1))/0x8+-parseInt(_0x3c042d(0x1f4))/0x9+parseInt(_0x3c042d(0x1ee))/0xa;if(_0x37ca63===_0x5733f9)break;else _0x5e0b82['push'](_0x5e0b82['shift']());}catch(_0x13128c){_0x5e0b82['push'](_0x5e0b82['shift']());}}}(_0x4715,0x72866));const locale={'print':{'menu':_0x303cb3(0x1f3)}};export{locale as default};function _0x4715(){const _0x5a9118=['7930tuFrxw','684687hhRbCq','966XlvDZu','5qnhFAi','23644210Qtdugs','4500706kFoypN','12pbiYrV','6489712uErVfn','335336HCzSBx','Печать','7651386liBGaR'];_0x4715=function(){return _0x5a9118;};return _0x4715();}
|
package/lib/es/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3d479a=_0x68ef;(function(_0x5c4abc,_0x5d2d6e){const _0x2ed9a3=_0x68ef,_0x55cb3d=_0x5c4abc();while(!![]){try{const _0x266fa3=parseInt(_0x2ed9a3(0x94))/0x1+-parseInt(_0x2ed9a3(0x9b))/0x2*(-parseInt(_0x2ed9a3(0x9d))/0x3)+parseInt(_0x2ed9a3(0x92))/0x4+parseInt(_0x2ed9a3(0x98))/0x5*(-parseInt(_0x2ed9a3(0x97))/0x6)+parseInt(_0x2ed9a3(0x9a))/0x7*(parseInt(_0x2ed9a3(0x95))/0x8)+parseInt(_0x2ed9a3(0x9c))/0x9*(parseInt(_0x2ed9a3(0x96))/0xa)+-parseInt(_0x2ed9a3(0x99))/0xb;if(_0x266fa3===_0x5d2d6e)break;else _0x55cb3d['push'](_0x55cb3d['shift']());}catch(_0x587550){_0x55cb3d['push'](_0x55cb3d['shift']());}}}(_0x37b7,0x8c18f));const locale={'print':{'menu':_0x3d479a(0x93)}};export{locale as default};function _0x68ef(_0x50103a,_0x135872){_0x50103a=_0x50103a-0x92;const _0x37b776=_0x37b7();let _0x68ef5=_0x37b776[_0x50103a];return _0x68ef5;}function _0x37b7(){const _0x5da7ca=['1146jGBHCR','18890wiHbZB','23330494vrtFkI','7MsPkzT','4IStceS','918dfEPLC','529710SHxhMD','975340wHoCkx','Tlač','625609oBOBrH','9144840HfQyUu','103010cuSVYq'];_0x37b7=function(){return _0x5da7ca;};return _0x37b7();}
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x2b8c(_0x58b703,_0x3a5424){_0x58b703=_0x58b703-0x11e;const _0x190495=_0x1904();let _0x2b8ca3=_0x190495[_0x58b703];return _0x2b8ca3;}(function(_0x3c036a,_0x283483){const _0xda5895=_0x2b8c,_0x24da76=_0x3c036a();while(!![]){try{const _0x2b0044=-parseInt(_0xda5895(0x124))/0x1*(parseInt(_0xda5895(0x128))/0x2)+parseInt(_0xda5895(0x121))/0x3*(parseInt(_0xda5895(0x11e))/0x4)+-parseInt(_0xda5895(0x123))/0x5*(-parseInt(_0xda5895(0x126))/0x6)+parseInt(_0xda5895(0x11f))/0x7*(parseInt(_0xda5895(0x122))/0x8)+parseInt(_0xda5895(0x127))/0x9+parseInt(_0xda5895(0x125))/0xa+-parseInt(_0xda5895(0x120))/0xb;if(_0x2b0044===_0x283483)break;else _0x24da76['push'](_0x24da76['shift']());}catch(_0x14ade2){_0x24da76['push'](_0x24da76['shift']());}}}(_0x1904,0x2376c));const locale={'print':{'menu':'In'}};function _0x1904(){const _0x10c60a=['4YIHQzE','2322580grYsvn','222450bBrzjo','1848168fIqCpz','28828kQqYwl','31100WpovGV','1064iOdtxU','10384638ElizuS','105pRvcOs','13256HXpKKF','25crCiqO'];_0x1904=function(){return _0x10c60a;};return _0x1904();}export{locale as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x357df1,_0x308c05){const _0x21b3dd=_0x3b1d,_0x1949dc=_0x357df1();while(!![]){try{const _0x3bf12e=-parseInt(_0x21b3dd(0x7e))/0x1*(-parseInt(_0x21b3dd(0x7c))/0x2)+-parseInt(_0x21b3dd(0x7b))/0x3+-parseInt(_0x21b3dd(0x7d))/0x4+-parseInt(_0x21b3dd(0x79))/0x5+-parseInt(_0x21b3dd(0x76))/0x6*(parseInt(_0x21b3dd(0x77))/0x7)+-parseInt(_0x21b3dd(0x7a))/0x8+parseInt(_0x21b3dd(0x78))/0x9;if(_0x3bf12e===_0x308c05)break;else _0x1949dc['push'](_0x1949dc['shift']());}catch(_0x4799dd){_0x1949dc['push'](_0x1949dc['shift']());}}}(_0x3988,0xdcd05));function _0x3988(){const _0x4c5a66=['6168DpdFXH','5269548HJPaWA','564qzxLYT','338682ZnPUKr','84yuhhhG','38260476WrObgk','5490825UVusmI','14188408KWULBk','658860GWAMhy'];_0x3988=function(){return _0x4c5a66;};return _0x3988();}function _0x3b1d(_0x333ec4,_0x158d65){_0x333ec4=_0x333ec4-0x76;const _0x3988a1=_0x3988();let _0x3b1d5d=_0x3988a1[_0x333ec4];return _0x3b1d5d;}const locale={'print':{'menu':'打印'}};export{locale as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x2d2d(_0x3f4a8c,_0x38560b){_0x3f4a8c=_0x3f4a8c-0x14f;const _0x497d38=_0x497d();let _0x2d2d1a=_0x497d38[_0x3f4a8c];return _0x2d2d1a;}(function(_0x4928a2,_0x557d73){const _0x48517c=_0x2d2d,_0x36c683=_0x4928a2();while(!![]){try{const _0x11a9ed=-parseInt(_0x48517c(0x157))/0x1+-parseInt(_0x48517c(0x150))/0x2+-parseInt(_0x48517c(0x155))/0x3+parseInt(_0x48517c(0x154))/0x4*(parseInt(_0x48517c(0x151))/0x5)+-parseInt(_0x48517c(0x152))/0x6*(parseInt(_0x48517c(0x153))/0x7)+-parseInt(_0x48517c(0x156))/0x8+-parseInt(_0x48517c(0x14f))/0x9*(-parseInt(_0x48517c(0x158))/0xa);if(_0x11a9ed===_0x557d73)break;else _0x36c683['push'](_0x36c683['shift']());}catch(_0x7a853){_0x36c683['push'](_0x36c683['shift']());}}}(_0x497d,0x3204e));const locale={'print':{'menu':'列印'}};function _0x497d(){const _0x330aa7=['30KyZKhd','3739509lgVzwl','377448mwtOuW','35NCaotI','1102584TpONcW','7wwSbGD','154148tYkNnL','964635AMCYhs','2749672mCfjVi','273642rtMiGc'];_0x497d=function(){return _0x330aa7;};return _0x497d();}export{locale as default};
|