@univerjs-pro/docs-print 0.21.1 → 0.22.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 _0x359676=_0x4135;(function(_0x5073a3,_0x10be92){const _0xbf689f=_0x4135,_0xd9b652=_0x5073a3();while(!![]){try{const _0x38fa21=parseInt(_0xbf689f(0x166))/0x1*(parseInt(_0xbf689f(0x155))/0x2)+parseInt(_0xbf689f(0x1b8))/0x3*(-parseInt(_0xbf689f(0x16f))/0x4)+parseInt(_0xbf689f(0x15a))/0x5*(parseInt(_0xbf689f(0x198))/0x6)+-parseInt(_0xbf689f(0x1a4))/0x7+parseInt(_0xbf689f(0x1b1))/0x8*(parseInt(_0xbf689f(0x18c))/0x9)+parseInt(_0xbf689f(0x19a))/0xa*(-parseInt(_0xbf689f(0x1cd))/0xb)+-parseInt(_0xbf689f(0x1ad))/0xc*(-parseInt(_0xbf689f(0x161))/0xd);if(_0x38fa21===_0x10be92)break;else _0xd9b652['push'](_0xd9b652['shift']());}catch(_0x34befc){_0xd9b652['push'](_0xd9b652['shift']());}}}(_0x1682,0x5d6e2),Object['defineProperty'](exports,Symbol[_0x359676(0x18a)],{'value':'Module'}));let _univerjs_core=require('@univerjs/core'),_univerjs_docs_ui=require('@univerjs/docs-ui'),_univerjs_engine_render=require('@univerjs/engine-render'),_univerjs_pro_license=require('@univerjs-pro/license'),_univerjs_pro_print=require('@univerjs-pro/print'),_univerjs_docs=require('@univerjs/docs'),_univerjs_ui=require('@univerjs/ui'),_univerjs_network=require('@univerjs/network'),_univerjs_icons=require('@univerjs/icons');function _0x1682(){const _0x4fa758=['DocPrintInterceptorService','DocumentFlavor','Render\x20is\x20not\x20found','default','585673uGGurw','constructor','_addComponent','_page','position','_scene','Viewport','interceptor','_paperSize','_skeleton','_componentManager','get','RibbonStartGroup','page','fill','valid','_addViewport','addObject','PrintIcon','0.22.0','updateScrollVal','iterator','timeValid','createElement','PrintDirection','Disposable','BUTTON','documentFlavor','TRADITIONAL','makeForceDirty','getContext','_config','print.menu','PRINTING_COMPONENT_COLLECT','appendChild','Inject','forEach','_documents','ICommandService','removeChild','_initRenderer','SwitchDocModeCommand','_offsetConfig','Portrait','IUniverInstanceService','onStarting','defineProperty','CommandType','prototype','translate','top','UNIVER_DOC','_key','_container','getDocFeatureLimit','Printing','UniverLicensePlugin','Engine','0px','45902aReXuv','version','_renderManagerService','pluginName','with','12770IZkQUC','prepare','pages','_root','getOwnPropertyDescriptor','getOffsetConfig','_initMenus','300391kebFFc','@univerjs-pro/docs-print','100%','save','fetchThroughInterceptors','27LGCwFR','object','Documents','length','_currentRender','disposeWithMe','IGlobalZoneService','IMenuManagerService','min','2063092bLAlmE','absolute','type','_effects','pageWidth','__DocPrintRender__','decorate','_viewMain','parseInt','body','_calculateLayout','getCanvas','print','_univerInstanceService','menu','DocumentDataModel\x20is\x20not\x20found','getConfig','div','message','close','symbol','getUnit','makeDirty','isFeatureAuthorizedWithinTime','_unitId','syncExecuteCommand','LS_CONFIG_KEY','toStringTag','setId','1517382tKblqv','container','getInterceptPoints','right','getMenuHiddenObservable','left','_configService','_initCommands','className','VIEWPORT_KEY','OPERATION','IConfigService','1074UgBFoh','IRenderManagerService','10XPZoBc','mainComponent','UniverInstanceType','getSkeletonData','DisposableCollection','pageHeight','DependentOn','isLocalCheck','_menuManagerService','onbeforeprint','3673635DmdHuV','string','VIEW_MAIN','setConfig','PRINT_CANVAS_CLASS','_engine','DocPrintOperation','CanvasRenderMode','getLicenseInfo','120zgRfTi','getDocumentStyle','dispose','PRINTING_DOM_COLLECT','8GXARjY','register','_skeletonData','_initComponents','function','onReady','bottom','3yJxJBI','onafterprint','root','generateRandomId','call','getCurrentUnitOfType','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','isPro','Pages\x20are\x20not\x20found','style','UNIVER_DOCS_PRINT','height','POSITIVE_INFINITY','width','getSkeleton','_injector','getRenderById'];_0x1682=function(){return _0x4fa758;};return _0x1682();}function _typeof(_0x4155c1){'@babel/helpers - typeof';const _0x51aca5=_0x359676;return _typeof=_0x51aca5(0x1b5)==typeof Symbol&&_0x51aca5(0x183)==typeof Symbol[_0x51aca5(0x1e2)]?function(_0x38e9b4){return typeof _0x38e9b4;}:function(_0x2882ef){const _0xdc2279=_0x51aca5;return _0x2882ef&&_0xdc2279(0x1b5)==typeof Symbol&&_0x2882ef[_0xdc2279(0x1ce)]===Symbol&&_0x2882ef!==Symbol[_0xdc2279(0x14a)]?_0xdc2279(0x183):typeof _0x2882ef;},_typeof(_0x4155c1);}function toPrimitive(_0x4fc6ee,_0x2b2fcd){const _0x236ebb=_0x359676;if('object'!=_typeof(_0x4fc6ee)||!_0x4fc6ee)return _0x4fc6ee;var _0x2ae7c5=_0x4fc6ee[Symbol['toPrimitive']];if(void 0x0!==_0x2ae7c5){var _0x3fa14a=_0x2ae7c5[_0x236ebb(0x1bc)](_0x4fc6ee,_0x2b2fcd||_0x236ebb(0x1cc));if(_0x236ebb(0x167)!=_typeof(_0x3fa14a))return _0x3fa14a;throw new TypeError(_0x236ebb(0x1be));}return(_0x236ebb(0x1a5)===_0x2b2fcd?String:Number)(_0x4fc6ee);}function toPropertyKey(_0x312fc1){const _0x5460e2=_0x359676;var _0x208624=toPrimitive(_0x312fc1,'string');return _0x5460e2(0x183)==_typeof(_0x208624)?_0x208624:_0x208624+'';}function _defineProperty(_0x3d5d5d,_0x356615,_0x4d8723){const _0x25e321=_0x359676;return(_0x356615=toPropertyKey(_0x356615))in _0x3d5d5d?Object[_0x25e321(0x148)](_0x3d5d5d,_0x356615,{'value':_0x4d8723,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3d5d5d[_0x356615]=_0x4d8723,_0x3d5d5d;}var DocPrintPageCanvasView=class extends _univerjs_core['Disposable']{get[_0x359676(0x18d)](){const _0x28c63f=_0x359676;return this[_0x28c63f(0x14f)];}get[_0x359676(0x1ba)](){const _0x578ad4=_0x359676;return this[_0x578ad4(0x15d)];}get[_0x359676(0x16a)](){const _0x1006b0=_0x359676,_0x1e3707=this['_injector'][_0x1006b0(0x1d8)](_univerjs_engine_render[_0x1006b0(0x199)])[_0x1006b0(0x1c8)](this['_unitId']);if(!_0x1e3707)throw new Error(_0x1006b0(0x1cb));return _0x1e3707;}get[_0x359676(0x1d6)](){const _0x4f65e0=_0x359676;return this[_0x4f65e0(0x16a)][_0x4f65e0(0x159)](_univerjs_docs['DocSkeletonManagerService'])[_0x4f65e0(0x1c6)]();}get['_skeletonData'](){const _0x24067b=_0x359676,_0x42ce9a=this[_0x24067b(0x1d6)][_0x24067b(0x19d)]();if(!_0x42ce9a)throw new Error('Skeleton\x20data\x20is\x20not\x20found');return _0x42ce9a;}get['_paperSize'](){const _0xb17db6=_0x359676,_0xfe7566=this[_0xb17db6(0x1b3)][_0xb17db6(0x15c)][0x0];return{'width':_0xfe7566['pageWidth'],'height':_0xfe7566[_0xb17db6(0x19f)]};}constructor(_0x2c1d03,_0x58a8b8,_0x4d4a5b,_0x3692e1){const _0x1e3b9d=_0x359676;super(),this[_0x1e3b9d(0x1c7)]=_0x2c1d03,this['_page']=_0x58a8b8,this['_unitId']=_0x4d4a5b,this[_0x1e3b9d(0x144)]=_0x3692e1,_defineProperty(this,_0x1e3b9d(0x14f),document[_0x1e3b9d(0x1e4)](_0x1e3b9d(0x180))),_defineProperty(this,_0x1e3b9d(0x15d),document[_0x1e3b9d(0x1e4)](_0x1e3b9d(0x180))),_defineProperty(this,_0x1e3b9d(0x1a9),void 0x0),_defineProperty(this,'_scene',void 0x0),_defineProperty(this,_0x1e3b9d(0x14e),void 0x0),_defineProperty(this,_0x1e3b9d(0x1f2),void 0x0),_defineProperty(this,'_viewMain',void 0x0),_defineProperty(this,_0x1e3b9d(0x172),new _univerjs_core[(_0x1e3b9d(0x19e))]()),this[_0x1e3b9d(0x14e)]=(0x0,_univerjs_core['generateRandomId'])(0x4),this[_0x1e3b9d(0x1f5)](),this[_0x1e3b9d(0x16b)]({'dispose':()=>{const _0x446f5f=_0x1e3b9d;this['_engine'][_0x446f5f(0x1af)](),this['_scene'][_0x446f5f(0x1af)](),this[_0x446f5f(0x172)][_0x446f5f(0x1af)]();}});}['_calculateLayout'](){const _0x4479a2=_0x359676,{docsTop:_0x6ff77e,docsLeft:_0x1f6b2b}=this[_0x4479a2(0x1f2)][_0x4479a2(0x15f)](),_0x564c18=this[_0x4479a2(0x1d5)][_0x4479a2(0x1c3)],_0x2a347d=this[_0x4479a2(0x1d5)]['width'];return{'top':_0x6ff77e+(_0x6ff77e+_0x564c18)*this[_0x4479a2(0x1d0)],'bottom':_0x6ff77e+(_0x6ff77e+_0x564c18)*(this['_page']+0x1),'left':_0x1f6b2b,'right':_0x1f6b2b+_0x2a347d};}[_0x359676(0x1f5)](){const _0x10f013=_0x359676,_0x4d703c=0x1,_0x4f863c=0x1;this[_0x10f013(0x1a9)]=new _univerjs_engine_render[(_0x10f013(0x153))]('',{'elementWidth':this[_0x10f013(0x1d5)][_0x10f013(0x1c5)],'elementHeight':this[_0x10f013(0x1d5)][_0x10f013(0x1c3)],'dpr':_0x4f863c,'renderMode':_univerjs_engine_render[_0x10f013(0x1ab)][_0x10f013(0x151)]}),this[_0x10f013(0x1d2)]=new _univerjs_engine_render['Scene'](this['_key'],this[_0x10f013(0x1a9)]),this['_scene']['scale'](_0x4d703c,_0x4d703c),this[_0x10f013(0x1a9)]['setContainer'](this[_0x10f013(0x14f)],![]),this[_0x10f013(0x1a9)][_0x10f013(0x17a)]()[_0x10f013(0x1eb)]()[_0x10f013(0x18b)](this[_0x10f013(0x14e)]+'_'+(0x0,_univerjs_core[_0x10f013(0x1bb)])(0x4)),this['_addComponent'](),this[_0x10f013(0x1dd)]();}[_0x359676(0x1cf)](){const _0x276d0d=_0x359676,{pageMarginLeft:_0x30ddcd,pageMarginTop:_0x18c5ae,docsLeft:_0x2dbea2,docsTop:_0x326f52}=this[_0x276d0d(0x144)],_0x575cae={'pageMarginLeft':_0x30ddcd,'pageMarginTop':_0x18c5ae},_0x2cd3e6=new _univerjs_engine_render[(_0x276d0d(0x168))](_0x276d0d(0x174),this[_0x276d0d(0x1d6)],_0x575cae);_0x2cd3e6[_0x276d0d(0x14b)](_0x2dbea2,_0x326f52),this['_scene'][_0x276d0d(0x1de)](_0x2cd3e6),this[_0x276d0d(0x1f2)]=_0x2cd3e6;const _0x122f91=this[_0x276d0d(0x1c7)][_0x276d0d(0x1d8)](_univerjs_docs_ui[_0x276d0d(0x1c9)]);_0x122f91[_0x276d0d(0x1d4)][_0x276d0d(0x165)](_0x122f91[_0x276d0d(0x1d4)][_0x276d0d(0x18e)]()[_0x276d0d(0x1ee)])(void 0x0,{'unitId':this[_0x276d0d(0x187)],'scene':this[_0x276d0d(0x1d2)],'engine':this[_0x276d0d(0x1a9)],'root':this[_0x276d0d(0x15d)],'documents':this['_documents'],'skeleton':this[_0x276d0d(0x1d6)]});}[_0x359676(0x1dd)](){const _0x38039d=_0x359676;this[_0x38039d(0x176)]=new _univerjs_engine_render[(_0x38039d(0x1d3))](_univerjs_docs_ui[_0x38039d(0x195)][_0x38039d(0x1a6)],this[_0x38039d(0x1d2)],{'explicitViewportWidthSet':!![],'explicitViewportHeightSet':!![]});}['prepare'](){const _0x49927c=_0x359676,_0x5d007b=this[_0x49927c(0x179)]();this['_viewMain'][_0x49927c(0x1e1)]({'viewportScrollX':_0x5d007b['left'],'viewportScrollY':_0x5d007b[_0x49927c(0x14c)]}),this[_0x49927c(0x15d)][_0x49927c(0x1c1)][_0x49927c(0x1d1)]=_0x49927c(0x170),this[_0x49927c(0x15d)][_0x49927c(0x1c1)][_0x49927c(0x14c)]=_0x49927c(0x154),this[_0x49927c(0x15d)]['style'][_0x49927c(0x191)]=_0x49927c(0x154),this[_0x49927c(0x15d)][_0x49927c(0x1c1)][_0x49927c(0x1c5)]=_0x49927c(0x163),this['_root'][_0x49927c(0x1c1)][_0x49927c(0x1c3)]=_0x49927c(0x163),this[_0x49927c(0x172)]=new _univerjs_core[(_0x49927c(0x19e))]();const _0x8293bc=this[_0x49927c(0x1c7)][_0x49927c(0x1d8)](_univerjs_docs_ui[_0x49927c(0x1c9)]);_0x8293bc[_0x49927c(0x1d4)][_0x49927c(0x165)](_0x8293bc['interceptor'][_0x49927c(0x18e)]()[_0x49927c(0x1b0)])(this[_0x49927c(0x172)],{'unitId':this[_0x49927c(0x187)],'scene':this[_0x49927c(0x1d2)],'engine':this[_0x49927c(0x1a9)],'root':this['_root'],'skeleton':this['_skeleton'],'offset':{'x':_0x5d007b[_0x49927c(0x191)],'y':_0x5d007b[_0x49927c(0x14c)]},'bound':{'top':_0x5d007b[_0x49927c(0x14c)],'left':_0x5d007b[_0x49927c(0x191)],'right':_0x5d007b[_0x49927c(0x18f)],'bottom':_0x5d007b[_0x49927c(0x1b7)]}});}['render'](){const _0x22ce29=_0x359676,_0x1fce30=this[_0x22ce29(0x1a9)][_0x22ce29(0x17a)]()[_0x22ce29(0x1eb)]();this[_0x22ce29(0x1f2)][_0x22ce29(0x1ea)](),this[_0x22ce29(0x1d2)][_0x22ce29(0x185)](),_0x1fce30[_0x22ce29(0x164)](),this[_0x22ce29(0x1d2)]['render'](),_0x1fce30['restore']();}};function __decorateParam(_0x5c8f45,_0x5ea4fd){return function(_0xa49425,_0x596858){_0x5ea4fd(_0xa49425,_0x596858,_0x5c8f45);};}function __decorate(_0x5ced61,_0x413f57,_0x4b7144,_0xadf364){const _0x7449b=_0x359676;var _0x3b9b63=arguments['length'],_0x2ce87d=_0x3b9b63<0x3?_0x413f57:_0xadf364===null?_0xadf364=Object[_0x7449b(0x15e)](_0x413f57,_0x4b7144):_0xadf364,_0xbb66b5;if(typeof Reflect===_0x7449b(0x167)&&typeof Reflect[_0x7449b(0x175)]==='function')_0x2ce87d=Reflect[_0x7449b(0x175)](_0x5ced61,_0x413f57,_0x4b7144,_0xadf364);else{for(var _0x72eb09=_0x5ced61[_0x7449b(0x169)]-0x1;_0x72eb09>=0x0;_0x72eb09--)if(_0xbb66b5=_0x5ced61[_0x72eb09])_0x2ce87d=(_0x3b9b63<0x3?_0xbb66b5(_0x2ce87d):_0x3b9b63>0x3?_0xbb66b5(_0x413f57,_0x4b7144,_0x2ce87d):_0xbb66b5(_0x413f57,_0x4b7144))||_0x2ce87d;}return _0x3b9b63>0x3&&_0x2ce87d&&Object[_0x7449b(0x148)](_0x413f57,_0x4b7144,_0x2ce87d),_0x2ce87d;}const BUILD_TIMESTAMP=Number[_0x359676(0x177)](0x69ff10fd),DEFAULT_PRINT_LIMIT=0x1,getPrintInfoByLicense=(_0x4fa3dd,_0x4eedc,_0x42028b)=>{const _0x17ade9=_0x359676,_0x289328={'page':_0x4fa3dd,'isPro':![],'timeValid':![]};if(!_0x4eedc||!_0x42028b)return _0x289328;const _0x3803a7=(0x0,_univerjs_pro_license[_0x17ade9(0x1ac)])(_0x4eedc,_0x42028b);if(_0x3803a7[_0x17ade9(0x1dc)]){const _0x13612f=_0x3803a7[_0x17ade9(0x181)],_0x14d612=(0x0,_univerjs_pro_license[_0x17ade9(0x186)])(_0x13612f,'df',BUILD_TIMESTAMP);_0x289328[_0x17ade9(0x1bf)]=_0x14d612,_0x289328[_0x17ade9(0x1e3)]=_0x14d612,_0x289328[_0x17ade9(0x1da)]=(0x0,_univerjs_pro_license[_0x17ade9(0x150)])(_0x13612f,_0x14d612,'mpn',_0x4fa3dd,_0x4fa3dd,0x0);}return _0x289328;};let DocPrintService=class DocPrintService extends _univerjs_core['Disposable']{constructor(_0x56ae07,_0x525138,_0x278627,_0xf9c459,_0x13d45b){const _0x17a7de=_0x359676;super(),this['_univerInstanceService']=_0x56ae07,this[_0x17a7de(0x157)]=_0x525138,this[_0x17a7de(0x1c7)]=_0x278627,this[_0x17a7de(0x192)]=_0xf9c459,this['_globalZoneService']=_0x13d45b;}[_0x359676(0x17b)](_0x1b38d6){const _0x376ee5=_0x359676;var _0x569fd5,_0x2affea;const {ls:_0x21bfa0,pbk:_0x3b174e}=(_0x569fd5=this[_0x376ee5(0x192)][_0x376ee5(0x17f)](_univerjs_pro_license[_0x376ee5(0x189)]))!==null&&_0x569fd5!==void 0x0?_0x569fd5:{},_0x3d5442=(0x0,_univerjs_pro_license[_0x376ee5(0x1a1)])()?Number[_0x376ee5(0x1c4)]:getPrintInfoByLicense(0x1,_0x21bfa0,_0x3b174e)[_0x376ee5(0x1da)];if(!this[_0x376ee5(0x17c)][_0x376ee5(0x184)](_0x1b38d6,_univerjs_core[_0x376ee5(0x19c)][_0x376ee5(0x14d)]))throw new Error(_0x376ee5(0x17e));const _0x4a094c=this[_0x376ee5(0x157)][_0x376ee5(0x1c8)](_0x1b38d6);if(!_0x4a094c)throw new Error('Render\x20is\x20not\x20found');const _0x10e85d=(_0x2affea=_0x4a094c['with'](_univerjs_docs['DocSkeletonManagerService'])[_0x376ee5(0x1c6)]()[_0x376ee5(0x19d)]())===null||_0x2affea===void 0x0?void 0x0:_0x2affea[_0x376ee5(0x15c)];if(!_0x10e85d)throw new Error(_0x376ee5(0x1c0));const _0x1e0630={'width':_0x10e85d[0x0][_0x376ee5(0x173)],'height':_0x10e85d[0x0][_0x376ee5(0x19f)]},_0x238ef0=_0x10e85d[_0x376ee5(0x169)],_0x19b455=Math[_0x376ee5(0x16e)](_0x3d5442,_0x238ef0),_0x39cb2f=_0x4a094c[_0x376ee5(0x19b)][_0x376ee5(0x15f)](),_0xb943cb=document[_0x376ee5(0x1e4)]('div');_0xb943cb[_0x376ee5(0x194)]=_univerjs_pro_print['PRINT_CONTAINER_CLASS'];const _0x3e91ac=new Array(_0x19b455)[_0x376ee5(0x1db)](null)['map']((_0x3694bc,_0x57e76b)=>{const _0x4e9504=_0x376ee5,_0x441b37=new DocPrintPageCanvasView(this['_injector'],_0x57e76b,_0x1b38d6,_0x39cb2f);return _0x441b37[_0x4e9504(0x18d)][_0x4e9504(0x194)]=_univerjs_pro_print[_0x4e9504(0x1a8)],_0x441b37;});_0x3e91ac[_0x376ee5(0x1f1)](_0x573be0=>{const _0x401df8=_0x376ee5;_0xb943cb[_0x401df8(0x1ef)](_0x573be0[_0x401df8(0x18d)]),_0x573be0['container'][_0x401df8(0x1ef)](_0x573be0['root']),_0x573be0[_0x401df8(0x15b)]();});const _0x593f72=(0x0,_univerjs_pro_print['createPrintStyle'])(_0x1e0630[_0x376ee5(0x1c5)],_0x1e0630[_0x376ee5(0x1c3)],_univerjs_pro_print[_0x376ee5(0x1e5)][_0x376ee5(0x145)]);return document[_0x376ee5(0x178)]['appendChild'](_0x593f72),document['body'][_0x376ee5(0x1ef)](_0xb943cb),new Promise(_0x16bd6d=>{setTimeout(()=>{const _0x5c89aa=_0x4135;window[_0x5c89aa(0x1a3)]=()=>{const _0x2af886=_0x5c89aa;_0x3e91ac[_0x2af886(0x1f1)](_0x31c691=>{_0x31c691['render']();});},window[_0x5c89aa(0x1b9)]=()=>{const _0x28ede5=_0x5c89aa;_0x3e91ac[_0x28ede5(0x1f1)](_0xd0485f=>{const _0x4f4570=_0x28ede5;_0xd0485f[_0x4f4570(0x1af)]();}),document[_0x28ede5(0x178)][_0x28ede5(0x1f4)](_0xb943cb),document[_0x28ede5(0x178)][_0x28ede5(0x1f4)](_0x593f72),this['_globalZoneService'][_0x28ede5(0x182)](),_0x16bd6d(!![]);},window[_0x5c89aa(0x17b)]();},0x64);});}};DocPrintService=__decorate([__decorateParam(0x0,_univerjs_core[_0x359676(0x146)]),__decorateParam(0x1,_univerjs_engine_render[_0x359676(0x199)]),__decorateParam(0x2,(0x0,_univerjs_core[_0x359676(0x1f0)])(_univerjs_core['Injector'])),__decorateParam(0x3,_univerjs_core['IConfigService']),__decorateParam(0x4,_univerjs_ui[_0x359676(0x16c)])],DocPrintService);const DocPrintOperation={'id':'docs.operation.print','type':_univerjs_core[_0x359676(0x149)][_0x359676(0x196)],'handler':async _0x11bf71=>{const _0x31d54b=_0x359676,_0x58953f=_0x11bf71[_0x31d54b(0x1d8)](_univerjs_core[_0x31d54b(0x146)]),_0x3f38c8=_0x11bf71['get'](DocPrintService),_0x367120=_0x11bf71[_0x31d54b(0x1d8)](_univerjs_engine_render[_0x31d54b(0x199)]),_0x54b989=_0x11bf71[_0x31d54b(0x1d8)](_univerjs_core[_0x31d54b(0x1f3)]),_0x488a2c=_0x58953f[_0x31d54b(0x1bd)](_univerjs_core['UniverInstanceType'][_0x31d54b(0x14d)]);if(!_0x488a2c)return![];if(!_0x367120[_0x31d54b(0x1c8)](_0x488a2c['getUnitId']()))throw new Error(_0x31d54b(0x1cb));const _0x5b9c9f=_0x488a2c[_0x31d54b(0x1ae)]()[_0x31d54b(0x1e8)];if(_0x5b9c9f!==_univerjs_core[_0x31d54b(0x1ca)][_0x31d54b(0x1e9)])_0x54b989[_0x31d54b(0x188)](_univerjs_docs_ui[_0x31d54b(0x1f6)]['id']);await _0x3f38c8[_0x31d54b(0x17b)](_0x488a2c['getUnitId']());if(_0x5b9c9f!==_univerjs_core[_0x31d54b(0x1ca)][_0x31d54b(0x1e9)])_0x54b989[_0x31d54b(0x188)](_univerjs_docs_ui[_0x31d54b(0x1f6)]['id']);return!![];}},DOCS_PRINT_PLUGIN_CONFIG_KEY=_0x359676(0x1c2),defaultPluginConfig={};var name=_0x359676(0x162),version=_0x359676(0x1e0);const DOCS_PRINT_PLUGIN_NAME=_0x359676(0x1c2);function DocPrintMenuItemFactory(_0x294141){const _0x13662b=_0x359676;return{'id':DocPrintOperation['id'],'type':_univerjs_ui['MenuItemType'][_0x13662b(0x1e7)],'title':_0x13662b(0x1ed),'icon':'PrintIcon','tooltip':_0x13662b(0x1ed),'hidden$':(0x0,_univerjs_ui[_0x13662b(0x190)])(_0x294141,_univerjs_core[_0x13662b(0x19c)][_0x13662b(0x14d)])};}function _0x4135(_0x396814,_0x31b242){_0x396814=_0x396814-0x144;const _0x168288=_0x1682();let _0x413548=_0x168288[_0x396814];return _0x413548;}const menuSchema={[_univerjs_ui[_0x359676(0x1d9)]['OTHERS']]:{[DocPrintOperation['id']]:{'order':0.1,'menuItemFactory':DocPrintMenuItemFactory}}};let DocsPrintUIController=class DocsPrintUIController extends _univerjs_core[_0x359676(0x1e6)]{constructor(_0x323aeb,_0x39ff12,_0x5ea47d){const _0x210298=_0x359676;super(),this['_commandService']=_0x323aeb,this[_0x210298(0x1a2)]=_0x39ff12,this['_componentManager']=_0x5ea47d,this[_0x210298(0x160)](),this[_0x210298(0x193)](),this[_0x210298(0x1b4)]();}[_0x359676(0x160)](){const _0x47b966=_0x359676;this[_0x47b966(0x1a2)]['mergeMenu'](menuSchema);}[_0x359676(0x193)](){const _0x211b29=_0x359676;this[_0x211b29(0x16b)](this['_commandService']['registerCommand'](DocPrintOperation));}[_0x359676(0x1b4)](){const _0x4e8d68=_0x359676;[[_0x4e8d68(0x1df),_univerjs_icons[_0x4e8d68(0x1df)]]][_0x4e8d68(0x1f1)](([_0x146740,_0x3aac71])=>{const _0x3196ea=_0x4e8d68;this[_0x3196ea(0x1d7)][_0x3196ea(0x1b2)](_0x146740,_0x3aac71);});}};DocsPrintUIController=__decorate([__decorateParam(0x0,_univerjs_core[_0x359676(0x1f3)]),__decorateParam(0x1,_univerjs_ui[_0x359676(0x16d)]),__decorateParam(0x2,(0x0,_univerjs_core['Inject'])(_univerjs_ui['ComponentManager']))],DocsPrintUIController);let UniverDocsPrintPlugin=class UniverDocsPrintPlugin extends _univerjs_core['Plugin']{constructor(_0x50d14b=defaultPluginConfig,_0x2bc04a,_0x3adb2c){const _0x325aaa=_0x359676;super(),this[_0x325aaa(0x1ec)]=_0x50d14b,this[_0x325aaa(0x1c7)]=_0x2bc04a,this[_0x325aaa(0x192)]=_0x3adb2c;const {menu:_0x2574b1,..._0xf6dc7a}=(0x0,_univerjs_core['merge'])({},defaultPluginConfig,this[_0x325aaa(0x1ec)]);if(_0x2574b1)this[_0x325aaa(0x192)][_0x325aaa(0x1a7)](_0x325aaa(0x17d),_0x2574b1,{'merge':!![]});this[_0x325aaa(0x192)][_0x325aaa(0x1a7)](DOCS_PRINT_PLUGIN_CONFIG_KEY,_0xf6dc7a);}[_0x359676(0x147)](){const _0x7c7a5e=_0x359676;(0x0,_univerjs_core['registerDependencies'])(this[_0x7c7a5e(0x1c7)],[[DocPrintService],[DocsPrintUIController]]);}[_0x359676(0x1b6)](){const _0x107bb7=_0x359676;this[_0x107bb7(0x1c7)]['get'](DocsPrintUIController);}};_defineProperty(UniverDocsPrintPlugin,_0x359676(0x158),DOCS_PRINT_PLUGIN_NAME),_defineProperty(UniverDocsPrintPlugin,'packageName',name),_defineProperty(UniverDocsPrintPlugin,_0x359676(0x156),version),_defineProperty(UniverDocsPrintPlugin,_0x359676(0x171),_univerjs_core['UniverInstanceType']['UNIVER_DOC']),UniverDocsPrintPlugin=__decorate([(0x0,_univerjs_core[_0x359676(0x1a0)])(_univerjs_network['UniverNetworkPlugin'],_univerjs_pro_license[_0x359676(0x152)]),__decorateParam(0x1,(0x0,_univerjs_core[_0x359676(0x1f0)])(_univerjs_core['Injector'])),__decorateParam(0x2,_univerjs_core[_0x359676(0x197)])],UniverDocsPrintPlugin),exports['DOCS_PRINT_PLUGIN_CONFIG_KEY']=DOCS_PRINT_PLUGIN_CONFIG_KEY,exports[_0x359676(0x1aa)]=DocPrintOperation,Object[_0x359676(0x148)](exports,'UniverDocsPrintPlugin',{'enumerable':!![],'get':function(){return UniverDocsPrintPlugin;}});
|
package/lib/cjs/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x5398(_0x26c5e4,_0x195971){_0x26c5e4=_0x26c5e4-0x197;const _0x4fb426=_0x4fb4();let _0x5398cf=_0x4fb426[_0x26c5e4];return _0x5398cf;}function _0x4fb4(){const _0x2cb62d=['2528100VPosWa','5CqNCEB','exports','399sTPTOf','1631624oUBtJt','Print','2396700YoDAmv','3054856LHrNnn','4044FnKZmY','2392074ypzJBf','2430eYwicT','7CCMipi','84073EMZnTn'];_0x4fb4=function(){return _0x2cb62d;};return _0x4fb4();}const _0x1ee68c=_0x5398;(function(_0x57cb9e,_0x27c83c){const _0x51c687=_0x5398,_0x16d9e8=_0x57cb9e();while(!![]){try{const _0xa0778e=-parseInt(_0x51c687(0x1a3))/0x1*(-parseInt(_0x51c687(0x19b))/0x2)+parseInt(_0x51c687(0x1a0))/0x3+parseInt(_0x51c687(0x197))/0x4*(parseInt(_0x51c687(0x1a1))/0x5)+-parseInt(_0x51c687(0x199))/0x6+-parseInt(_0x51c687(0x19e))/0x7*(-parseInt(_0x51c687(0x19a))/0x8)+parseInt(_0x51c687(0x19c))/0x9+-parseInt(_0x51c687(0x19d))/0xa*(parseInt(_0x51c687(0x19f))/0xb);if(_0xa0778e===_0x27c83c)break;else _0x16d9e8['push'](_0x16d9e8['shift']());}catch(_0x2b4b95){_0x16d9e8['push'](_0x16d9e8['shift']());}}}(_0x4fb4,0x6d748));const locale$1={'print':{'menu':_0x1ee68c(0x198)}},locale=locale$1;module[_0x1ee68c(0x1a2)]=locale;
|
package/lib/cjs/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0xca818b=_0x4006;(function(_0xa303eb,_0x23ad29){const _0x5d23a0=_0x4006,_0x147473=_0xa303eb();while(!![]){try{const _0x190db6=parseInt(_0x5d23a0(0x1c9))/0x1*(parseInt(_0x5d23a0(0x1cd))/0x2)+-parseInt(_0x5d23a0(0x1c6))/0x3+-parseInt(_0x5d23a0(0x1ca))/0x4*(parseInt(_0x5d23a0(0x1ce))/0x5)+-parseInt(_0x5d23a0(0x1c8))/0x6+-parseInt(_0x5d23a0(0x1cc))/0x7+-parseInt(_0x5d23a0(0x1c7))/0x8+-parseInt(_0x5d23a0(0x1cf))/0x9*(-parseInt(_0x5d23a0(0x1d0))/0xa);if(_0x190db6===_0x23ad29)break;else _0x147473['push'](_0x147473['shift']());}catch(_0xf4f97e){_0x147473['push'](_0x147473['shift']());}}}(_0x2239,0xd37a3));const locale={'print':{'menu':'Print'}};function _0x4006(_0xc14040,_0xbc59a9){_0xc14040=_0xc14040-0x1c6;const _0x2239cc=_0x2239();let _0x400676=_0x2239cc[_0xc14040];return _0x400676;}module[_0xca818b(0x1cb)]=locale;function _0x2239(){const _0x2ddbcc=['5689544hLBhmY','1418022VFwYaf','1SjrjVn','68giJgUh','exports','4031643CvHoEX','1420114zPwxxd','63355QMQXpT','333gxxoiz','610030jysEIh','1086213qtXfaF'];_0x2239=function(){return _0x2ddbcc;};return _0x2239();}
|
package/lib/cjs/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x1fa82c=_0x2dfe;function _0x50dd(){const _0x1b81cd=['Print','8169130GgVoxa','2649962qWMUqq','779598FKfbnk','88rWkhpp','28186pegsPn','6158910Rgcfwb','158136AeYsvQ','2636463woGFtt','exports','5PMXmeb','2544XZuTff','31KcvOqU','4klXvPj'];_0x50dd=function(){return _0x1b81cd;};return _0x50dd();}(function(_0x20c0db,_0x16e730){const _0x3e6705=_0x2dfe,_0x16fe13=_0x20c0db();while(!![]){try{const _0x3ebc1f=parseInt(_0x3e6705(0x80))/0x1*(-parseInt(_0x3e6705(0x87))/0x2)+parseInt(_0x3e6705(0x8a))/0x3*(-parseInt(_0x3e6705(0x81))/0x4)+parseInt(_0x3e6705(0x7e))/0x5*(parseInt(_0x3e6705(0x88))/0x6)+-parseInt(_0x3e6705(0x84))/0x7+parseInt(_0x3e6705(0x86))/0x8*(-parseInt(_0x3e6705(0x85))/0x9)+-parseInt(_0x3e6705(0x83))/0xa+-parseInt(_0x3e6705(0x89))/0xb*(-parseInt(_0x3e6705(0x7f))/0xc);if(_0x3ebc1f===_0x16e730)break;else _0x16fe13['push'](_0x16fe13['shift']());}catch(_0x36dec9){_0x16fe13['push'](_0x16fe13['shift']());}}}(_0x50dd,0x94f7c));const locale$1={'print':{'menu':_0x1fa82c(0x82)}},locale=locale$1;function _0x2dfe(_0x495daa,_0x11f4d6){_0x495daa=_0x495daa-0x7d;const _0x50ddc7=_0x50dd();let _0x2dfed1=_0x50ddc7[_0x495daa];return _0x2dfed1;}module[_0x1fa82c(0x7d)]=locale;
|
package/lib/cjs/locale/fa-IR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x204b86=_0x52b8;(function(_0x30eaff,_0x5f426a){const _0x4fbeca=_0x52b8,_0x4e81c0=_0x30eaff();while(!![]){try{const _0x23a387=parseInt(_0x4fbeca(0x99))/0x1+parseInt(_0x4fbeca(0xa1))/0x2+parseInt(_0x4fbeca(0x9e))/0x3+parseInt(_0x4fbeca(0x9f))/0x4+parseInt(_0x4fbeca(0x9d))/0x5+-parseInt(_0x4fbeca(0x9c))/0x6+-parseInt(_0x4fbeca(0x9b))/0x7;if(_0x23a387===_0x5f426a)break;else _0x4e81c0['push'](_0x4e81c0['shift']());}catch(_0x1fd70a){_0x4e81c0['push'](_0x4e81c0['shift']());}}}(_0x1f40,0x221f6));function _0x52b8(_0x29659f,_0x5a6c24){_0x29659f=_0x29659f-0x99;const _0x1f40a2=_0x1f40();let _0x52b806=_0x1f40a2[_0x29659f];return _0x52b806;}function _0x1f40(){const _0xba5c47=['exports','197504NcPpit','171069BGsQts','چاپ','3864007ZJUVbg','1113798HNRMpd','886455ZUhycZ','565455RhtWap','967212JmIXGG'];_0x1f40=function(){return _0xba5c47;};return _0x1f40();}const locale={'print':{'menu':_0x204b86(0x9a)}};module[_0x204b86(0xa0)]=locale;
|
package/lib/cjs/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function _0x33d5(_0x519f1b,_0x25f4f3){_0x519f1b=_0x519f1b-0x118;const _0x5e7d89=_0x5e7d();let _0x33d5b6=_0x5e7d89[_0x519f1b];return _0x33d5b6;}const _0x5f154b=_0x33d5;(function(_0x325027,_0x5db603){const _0x22abcd=_0x33d5,_0x1d8425=_0x325027();while(!![]){try{const _0x259733=-parseInt(_0x22abcd(0x11c))/0x1+parseInt(_0x22abcd(0x11f))/0x2+-parseInt(_0x22abcd(0x11d))/0x3+-parseInt(_0x22abcd(0x11e))/0x4+parseInt(_0x22abcd(0x11a))/0x5+parseInt(_0x22abcd(0x119))/0x6+-parseInt(_0x22abcd(0x11b))/0x7;if(_0x259733===_0x5db603)break;else _0x1d8425['push'](_0x1d8425['shift']());}catch(_0x124409){_0x1d8425['push'](_0x1d8425['shift']());}}}(_0x5e7d,0xc9439));function _0x5e7d(){const _0x5af9d1=['4907034bVtSAP','6539325yNXOoQ','1665209KMdyEr','1036625LWOAdI','2225865VqSByl','87328lszrys','1473944zOgxUr','exports'];_0x5e7d=function(){return _0x5af9d1;};return _0x5e7d();}const locale={'print':{'menu':'Imprimer'}};module[_0x5f154b(0x118)]=locale;
|
package/lib/cjs/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x3fce(){const _0x5a102d=['585132bQsSeC','616892JRYswk','24TZPeKg','43956iRjtOH','220518cbwyiS','exports','67378OFeOjN','1918816xIeAWm','5110955shsDTN','21vRXZzM'];_0x3fce=function(){return _0x5a102d;};return _0x3fce();}function _0x7d2a(_0x32c8d6,_0x173a76){_0x32c8d6=_0x32c8d6-0x1a5;const _0x3fcef4=_0x3fce();let _0x7d2a97=_0x3fcef4[_0x32c8d6];return _0x7d2a97;}const _0x4205bc=_0x7d2a;(function(_0x53ed60,_0x37ac2d){const _0x38ccb0=_0x7d2a,_0x182623=_0x53ed60();while(!![]){try{const _0x3b94f3=-parseInt(_0x38ccb0(0x1ab))/0x1+-parseInt(_0x38ccb0(0x1a6))/0x2+parseInt(_0x38ccb0(0x1a9))/0x3*(parseInt(_0x38ccb0(0x1a7))/0x4)+parseInt(_0x38ccb0(0x1ad))/0x5+parseInt(_0x38ccb0(0x1a5))/0x6*(-parseInt(_0x38ccb0(0x1ae))/0x7)+-parseInt(_0x38ccb0(0x1ac))/0x8+parseInt(_0x38ccb0(0x1a8))/0x9;if(_0x3b94f3===_0x37ac2d)break;else _0x182623['push'](_0x182623['shift']());}catch(_0x10bb2f){_0x182623['push'](_0x182623['shift']());}}}(_0x3fce,0x88afd));const locale={'print':{'menu':'印刷'}};module[_0x4205bc(0x1aa)]=locale;
|
package/lib/cjs/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const _0x155814=_0x1a10;function _0x6e4a(){const _0xc12804=['5NjFfOQ','13022gUAYgB','2149341skyUEQ','5811282ghHRaa','7wUKtnQ','162832adAxwi','2871702ybyYAP','2879660rPLSIX','4442020VLsnkO','102teBzSz','exports'];_0x6e4a=function(){return _0xc12804;};return _0x6e4a();}(function(_0x3a66e0,_0x1bc26d){const _0x257390=_0x1a10,_0x3942c2=_0x3a66e0();while(!![]){try{const _0x2fd30b=parseInt(_0x257390(0xee))/0x1*(parseInt(_0x257390(0xf1))/0x2)+parseInt(_0x257390(0xf2))/0x3+parseInt(_0x257390(0xec))/0x4+parseInt(_0x257390(0xf0))/0x5*(-parseInt(_0x257390(0xeb))/0x6)+-parseInt(_0x257390(0xf4))/0x7*(parseInt(_0x257390(0xf5))/0x8)+-parseInt(_0x257390(0xf3))/0x9+-parseInt(_0x257390(0xed))/0xa;if(_0x2fd30b===_0x1bc26d)break;else _0x3942c2['push'](_0x3942c2['shift']());}catch(_0x2a550b){_0x3942c2['push'](_0x3942c2['shift']());}}}(_0x6e4a,0x7ce7d));const locale={'print':{'menu':'인쇄'}};function _0x1a10(_0x39b5e2,_0x2bb260){_0x39b5e2=_0x39b5e2-0xeb;const _0x6e4a75=_0x6e4a();let _0x1a10cb=_0x6e4a75[_0x39b5e2];return _0x1a10cb;}module[_0x155814(0xef)]=locale;
|
package/lib/cjs/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x3d1b3a=_0x94c7;function _0x94c7(_0xea7108,_0x1786c6){_0xea7108=_0xea7108-0x135;const _0x11947a=_0x1194();let _0x94c7ed=_0x11947a[_0xea7108];return _0x94c7ed;}(function(_0x22b44e,_0x46f7c2){const _0x4adbc1=_0x94c7,_0x8447f0=_0x22b44e();while(!![]){try{const _0x4a63ec=parseInt(_0x4adbc1(0x13c))/0x1*(parseInt(_0x4adbc1(0x136))/0x2)+-parseInt(_0x4adbc1(0x13e))/0x3+-parseInt(_0x4adbc1(0x13a))/0x4+-parseInt(_0x4adbc1(0x138))/0x5+-parseInt(_0x4adbc1(0x13f))/0x6*(parseInt(_0x4adbc1(0x140))/0x7)+parseInt(_0x4adbc1(0x13d))/0x8*(parseInt(_0x4adbc1(0x13b))/0x9)+parseInt(_0x4adbc1(0x135))/0xa*(parseInt(_0x4adbc1(0x137))/0xb);if(_0x4a63ec===_0x46f7c2)break;else _0x8447f0['push'](_0x8447f0['shift']());}catch(_0x453bce){_0x8447f0['push'](_0x8447f0['shift']());}}}(_0x1194,0x92cdd));const locale={'print':{'menu':_0x3d1b3a(0x139)}};function _0x1194(){const _0x10d90f=['2371VqEVRN','9070856nYRZUw','3095355RWGKTU','42YVpbXF','1152347yRVSpm','3224110tGLYpB','500FQiRaC','55SkWdPS','2505005UGVdhf','Печать','208880JFlAeb','9VsxlmM'];_0x1194=function(){return _0x10d90f;};return _0x1194();}module['exports']=locale;
|
package/lib/cjs/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x376576=_0x5cad;(function(_0x592786,_0x1d73d5){const _0x386d8b=_0x5cad,_0x2edbb4=_0x592786();while(!![]){try{const _0x1b7ef4=parseInt(_0x386d8b(0x194))/0x1+-parseInt(_0x386d8b(0x193))/0x2*(parseInt(_0x386d8b(0x199))/0x3)+-parseInt(_0x386d8b(0x195))/0x4+-parseInt(_0x386d8b(0x198))/0x5+parseInt(_0x386d8b(0x196))/0x6+parseInt(_0x386d8b(0x19b))/0x7+parseInt(_0x386d8b(0x197))/0x8*(parseInt(_0x386d8b(0x192))/0x9);if(_0x1b7ef4===_0x1d73d5)break;else _0x2edbb4['push'](_0x2edbb4['shift']());}catch(_0x335f58){_0x2edbb4['push'](_0x2edbb4['shift']());}}}(_0x276f,0x95504));function _0x276f(){const _0x34c9fb=['8AOCgeJ','4982625qdYdWx','558AGmdqp','Tlač','7429660iaPbcb','1470321ATakIS','6338cVQKKK','493193mmWhex','2365776mPcYXX','6426294LSClkp'];_0x276f=function(){return _0x34c9fb;};return _0x276f();}function _0x5cad(_0x3f24f7,_0x4dd0e0){_0x3f24f7=_0x3f24f7-0x192;const _0x276f79=_0x276f();let _0x5cadce=_0x276f79[_0x3f24f7];return _0x5cadce;}const locale={'print':{'menu':_0x376576(0x19a)}};module['exports']=locale;
|
package/lib/cjs/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x20bfb5=_0x5717;(function(_0x42b039,_0x3fcbb2){const _0x3bd3f3=_0x5717,_0x4671c4=_0x42b039();while(!![]){try{const _0x273dff=-parseInt(_0x3bd3f3(0x101))/0x1+parseInt(_0x3bd3f3(0x100))/0x2*(parseInt(_0x3bd3f3(0x106))/0x3)+-parseInt(_0x3bd3f3(0x109))/0x4*(-parseInt(_0x3bd3f3(0x105))/0x5)+-parseInt(_0x3bd3f3(0x10a))/0x6+parseInt(_0x3bd3f3(0x102))/0x7*(-parseInt(_0x3bd3f3(0x104))/0x8)+-parseInt(_0x3bd3f3(0xff))/0x9+parseInt(_0x3bd3f3(0x108))/0xa*(parseInt(_0x3bd3f3(0x103))/0xb);if(_0x273dff===_0x3fcbb2)break;else _0x4671c4['push'](_0x4671c4['shift']());}catch(_0x2966f1){_0x4671c4['push'](_0x4671c4['shift']());}}}(_0x5993,0x1ba9c));function _0x5993(){const _0x2e4560=['73745lnLOQW','78711bpUayf','exports','10VCcgfg','4wBwGXs','689964plgEUv','692226gDFsKH','14xfYPbo','33570SSQOZd','4319JfDtwN','2026035uuIBfG','568YscCnK'];_0x5993=function(){return _0x2e4560;};return _0x5993();}const locale={'print':{'menu':'In'}};function _0x5717(_0x2cece5,_0x374054){_0x2cece5=_0x2cece5-0xff;const _0x5993bb=_0x5993();let _0x5717b3=_0x5993bb[_0x2cece5];return _0x5717b3;}module[_0x20bfb5(0x107)]=locale;
|
package/lib/cjs/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x691901=_0xd297;(function(_0x34aab4,_0x578074){const _0x5ce392=_0xd297,_0x1a2699=_0x34aab4();while(!![]){try{const _0xd1b1dd=-parseInt(_0x5ce392(0xdf))/0x1+parseInt(_0x5ce392(0xd4))/0x2*(parseInt(_0x5ce392(0xd9))/0x3)+-parseInt(_0x5ce392(0xdd))/0x4*(-parseInt(_0x5ce392(0xd6))/0x5)+-parseInt(_0x5ce392(0xda))/0x6+-parseInt(_0x5ce392(0xd8))/0x7+-parseInt(_0x5ce392(0xd5))/0x8*(-parseInt(_0x5ce392(0xdb))/0x9)+-parseInt(_0x5ce392(0xdc))/0xa*(-parseInt(_0x5ce392(0xd7))/0xb);if(_0xd1b1dd===_0x578074)break;else _0x1a2699['push'](_0x1a2699['shift']());}catch(_0x5e2b33){_0x1a2699['push'](_0x1a2699['shift']());}}}(_0x5af2,0x374ee));function _0x5af2(){const _0x25fb39=['3091JOaoXA','1783446TwwzrJ','264909LGOTFk','2295054zhagVC','1692mDYEap','6890dCiQNO','140884pxKnUC','exports','57503zTojBh','10gpGvkk','6184ZuycLb','20pGnhJK'];_0x5af2=function(){return _0x25fb39;};return _0x5af2();}function _0xd297(_0x14fd81,_0x5aa015){_0x14fd81=_0x14fd81-0xd4;const _0x5af2d7=_0x5af2();let _0xd29740=_0x5af2d7[_0x14fd81];return _0xd29740;}const locale={'print':{'menu':'打印'}};module[_0x691901(0xde)]=locale;
|
package/lib/cjs/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function _0x1235(){const _0x19fb64=['177054CtUjLv','10260852MnpMdh','164481jzSCfY','783258ADOFyF','1617bpRcEa','7HZQqSA','149188ktXdkN','8LyUvvx','6530VLAVue','12ukucqv','1521297LJnLfF','20FRxHkh'];_0x1235=function(){return _0x19fb64;};return _0x1235();}(function(_0x5434ae,_0x4bc3ce){const _0x5a254a=_0x449b,_0x2a3e01=_0x5434ae();while(!![]){try{const _0x563fe8=parseInt(_0x5a254a(0xfe))/0x1+-parseInt(_0x5a254a(0xfb))/0x2*(parseInt(_0x5a254a(0x100))/0x3)+parseInt(_0x5a254a(0xf8))/0x4*(-parseInt(_0x5a254a(0xfd))/0x5)+-parseInt(_0x5a254a(0x101))/0x6*(parseInt(_0x5a254a(0xf7))/0x7)+-parseInt(_0x5a254a(0xf9))/0x8*(-parseInt(_0x5a254a(0xfc))/0x9)+parseInt(_0x5a254a(0xfa))/0xa*(-parseInt(_0x5a254a(0x102))/0xb)+parseInt(_0x5a254a(0xff))/0xc;if(_0x563fe8===_0x4bc3ce)break;else _0x2a3e01['push'](_0x2a3e01['shift']());}catch(_0x4e6811){_0x2a3e01['push'](_0x2a3e01['shift']());}}}(_0x1235,0x7935a));const locale={'print':{'menu':'列印'}};function _0x449b(_0x115b5d,_0x2f393e){_0x115b5d=_0x115b5d-0xf7;const _0x1235b9=_0x1235();let _0x449b17=_0x1235b9[_0x115b5d];return _0x449b17;}module['exports']=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 _0x11ca05=_0x24b8;(function(_0x2819c3,_0x2e112e){const _0x2ebc9c=_0x24b8,_0x383b20=_0x2819c3();while(!![]){try{const _0xa49445=parseInt(_0x2ebc9c(0x169))/0x1+parseInt(_0x2ebc9c(0x1b9))/0x2+parseInt(_0x2ebc9c(0x1ca))/0x3+-parseInt(_0x2ebc9c(0x1b2))/0x4+-parseInt(_0x2ebc9c(0x154))/0x5*(parseInt(_0x2ebc9c(0x19b))/0x6)+-parseInt(_0x2ebc9c(0x16e))/0x7+parseInt(_0x2ebc9c(0x1b1))/0x8*(parseInt(_0x2ebc9c(0x182))/0x9);if(_0xa49445===_0x2e112e)break;else _0x383b20['push'](_0x383b20['shift']());}catch(_0x537da8){_0x383b20['push'](_0x383b20['shift']());}}}(_0x364d,0xf04ac));import{CommandType,DependentOn,Disposable,DisposableCollection,DocumentFlavor,ICommandService,IConfigService,IUniverInstanceService,Inject,Injector,Plugin,UniverInstanceType,generateRandomId,merge,registerDependencies}from'@univerjs/core';import{DocPrintInterceptorService,SwitchDocModeCommand,VIEWPORT_KEY}from'@univerjs/docs-ui';import{CanvasRenderMode,Documents,Engine,IRenderManagerService,Scene,Viewport}from'@univerjs/engine-render';import{LS_CONFIG_KEY,UniverLicensePlugin,getDocFeatureLimit,getLicenseInfo,isFeatureAuthorizedWithinTime,isLocalCheck}from'@univerjs-pro/license';import{PRINT_CANVAS_CLASS,PRINT_CONTAINER_CLASS,PrintDirection,createPrintStyle}from'@univerjs-pro/print';import{DocSkeletonManagerService}from'@univerjs/docs';import{ComponentManager,IGlobalZoneService,IMenuManagerService,MenuItemType,RibbonStartGroup,getMenuHiddenObservable}from'@univerjs/ui';function _0x364d(){const _0x465b43=['body','1788474umMSYt','decorate','_initComponents','string','top','with','left','pageWidth','_addViewport','_scene','register','_key','print.menu','PrintIcon','className','toPrimitive','_documents','container','mpn','position','prototype','height','384bcOPOt','6202948yxqpjl','isPro','UNIVER_DOCS_PRINT','version','timeValid','appendChild','updateScrollVal','1815416LJveIq','_injector','defineProperty','interceptor','UNIVER_DOC','onReady','message','map','fill','absolute','translate','fetchThroughInterceptors','_skeletonData','page','_container','bottom','_root','1892331yfqbXF','_effects','type','_globalZoneService','_renderManagerService','_componentManager','_calculateLayout','createElement','documentFlavor','100%','docs.operation.print','pageHeight','_configService','_skeleton','getSkeleton','0.22.0','restore','5lFneTa','getUnitId','min','dispose','_commandService','BUTTON','getConfig','getSkeletonData','length','iterator','symbol','DocumentDataModel\x20is\x20not\x20found','onbeforeprint','constructor','_viewMain','Pages\x20are\x20not\x20found','default','width','div','Skeleton\x20data\x20is\x20not\x20found','root','1842141BOOSvF','OTHERS','PRINTING_DOM_COLLECT','PRINTING_COMPONENT_COLLECT','Printing','5616842vaJyee','_engine','getRenderById','parseInt','_initCommands','print','_offsetConfig','onStarting','removeChild','render','pages','forEach','_paperSize','_currentRender','makeForceDirty','setConfig','syncExecuteCommand','disposeWithMe','get','packageName','47781LSJqbB','getCurrentUnitOfType','prepare','menu','function','POSITIVE_INFINITY','registerCommand','getUnit','_menuManagerService','Render\x20is\x20not\x20found','getCanvas','_initRenderer','scale','_config','style','_univerInstanceService','getOffsetConfig','_addComponent','getInterceptPoints','TRADITIONAL','_page','save','_unitId','makeDirty'];_0x364d=function(){return _0x465b43;};return _0x364d();}import{UniverNetworkPlugin}from'@univerjs/network';import{PrintIcon}from'@univerjs/icons';function _typeof(_0x24927a){'@babel/helpers - typeof';const _0x23cad4=_0x24b8;return _typeof=_0x23cad4(0x186)==typeof Symbol&&'symbol'==typeof Symbol[_0x23cad4(0x15d)]?function(_0x4a7c8b){return typeof _0x4a7c8b;}:function(_0x4a30f7){const _0x4b0997=_0x23cad4;return _0x4a30f7&&'function'==typeof Symbol&&_0x4a30f7[_0x4b0997(0x161)]===Symbol&&_0x4a30f7!==Symbol[_0x4b0997(0x1af)]?_0x4b0997(0x15e):typeof _0x4a30f7;},_typeof(_0x24927a);}function toPrimitive(_0x311397,_0x3d2094){const _0x4a7657=_0x24b8;if('object'!=_typeof(_0x311397)||!_0x311397)return _0x311397;var _0x379e8e=_0x311397[Symbol[_0x4a7657(0x1aa)]];if(void 0x0!==_0x379e8e){var _0x51db05=_0x379e8e['call'](_0x311397,_0x3d2094||_0x4a7657(0x164));if('object'!=_typeof(_0x51db05))return _0x51db05;throw new TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x4a7657(0x19e)===_0x3d2094?String:Number)(_0x311397);}function toPropertyKey(_0x40113f){const _0x49f5d6=_0x24b8;var _0x3b84be=toPrimitive(_0x40113f,_0x49f5d6(0x19e));return _0x49f5d6(0x15e)==_typeof(_0x3b84be)?_0x3b84be:_0x3b84be+'';}function _defineProperty(_0x4092fc,_0x3e6388,_0x122dbd){return(_0x3e6388=toPropertyKey(_0x3e6388))in _0x4092fc?Object['defineProperty'](_0x4092fc,_0x3e6388,{'value':_0x122dbd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4092fc[_0x3e6388]=_0x122dbd,_0x4092fc;}var DocPrintPageCanvasView=class extends Disposable{get[_0x11ca05(0x1ac)](){const _0x22ebe6=_0x11ca05;return this[_0x22ebe6(0x1c7)];}get['root'](){return this['_root'];}get[_0x11ca05(0x17b)](){const _0x24229f=_0x11ca05,_0x3b85e5=this[_0x24229f(0x1ba)][_0x24229f(0x180)](IRenderManagerService)[_0x24229f(0x170)](this['_unitId']);if(!_0x3b85e5)throw new Error('Render\x20is\x20not\x20found');return _0x3b85e5;}get['_skeleton'](){const _0x1d70c3=_0x11ca05;return this[_0x1d70c3(0x17b)][_0x1d70c3(0x1a0)](DocSkeletonManagerService)[_0x1d70c3(0x151)]();}get[_0x11ca05(0x1c5)](){const _0x570a5a=_0x11ca05,_0xdfdedb=this[_0x570a5a(0x150)][_0x570a5a(0x15b)]();if(!_0xdfdedb)throw new Error(_0x570a5a(0x167));return _0xdfdedb;}get[_0x11ca05(0x17a)](){const _0x1cd451=_0x11ca05,_0x29eef2=this[_0x1cd451(0x1c5)][_0x1cd451(0x178)][0x0];return{'width':_0x29eef2[_0x1cd451(0x1a2)],'height':_0x29eef2[_0x1cd451(0x14e)]};}constructor(_0x4190de,_0x1f852e,_0x58c384,_0x59672d){const _0x166875=_0x11ca05;super(),this[_0x166875(0x1ba)]=_0x4190de,this['_page']=_0x1f852e,this['_unitId']=_0x58c384,this[_0x166875(0x174)]=_0x59672d,_defineProperty(this,'_container',document[_0x166875(0x1d1)]('div')),_defineProperty(this,_0x166875(0x1c9),document[_0x166875(0x1d1)](_0x166875(0x166))),_defineProperty(this,_0x166875(0x16f),void 0x0),_defineProperty(this,_0x166875(0x1a4),void 0x0),_defineProperty(this,_0x166875(0x1a6),void 0x0),_defineProperty(this,_0x166875(0x1ab),void 0x0),_defineProperty(this,_0x166875(0x162),void 0x0),_defineProperty(this,_0x166875(0x1cb),new DisposableCollection()),this[_0x166875(0x1a6)]=generateRandomId(0x4),this[_0x166875(0x18d)](),this[_0x166875(0x17f)]({'dispose':()=>{const _0x5c7290=_0x166875;this['_engine'][_0x5c7290(0x157)](),this['_scene'][_0x5c7290(0x157)](),this[_0x5c7290(0x1cb)][_0x5c7290(0x157)]();}});}[_0x11ca05(0x1d0)](){const _0x4476e0=_0x11ca05,{docsTop:_0x615ba4,docsLeft:_0x356264}=this[_0x4476e0(0x1ab)][_0x4476e0(0x192)](),_0x107110=this[_0x4476e0(0x17a)][_0x4476e0(0x1b0)],_0x47872a=this['_paperSize'][_0x4476e0(0x165)];return{'top':_0x615ba4+(_0x615ba4+_0x107110)*this[_0x4476e0(0x196)],'bottom':_0x615ba4+(_0x615ba4+_0x107110)*(this[_0x4476e0(0x196)]+0x1),'left':_0x356264,'right':_0x356264+_0x47872a};}[_0x11ca05(0x18d)](){const _0x924f08=_0x11ca05,_0x1ff8af=0x1,_0x555f3e=0x1;this[_0x924f08(0x16f)]=new Engine('',{'elementWidth':this[_0x924f08(0x17a)][_0x924f08(0x165)],'elementHeight':this[_0x924f08(0x17a)][_0x924f08(0x1b0)],'dpr':_0x555f3e,'renderMode':CanvasRenderMode[_0x924f08(0x16d)]}),this[_0x924f08(0x1a4)]=new Scene(this[_0x924f08(0x1a6)],this[_0x924f08(0x16f)]),this[_0x924f08(0x1a4)][_0x924f08(0x18e)](_0x1ff8af,_0x1ff8af),this[_0x924f08(0x16f)]['setContainer'](this[_0x924f08(0x1c7)],![]),this['_engine'][_0x924f08(0x18c)]()['getContext']()['setId'](this[_0x924f08(0x1a6)]+'_'+generateRandomId(0x4)),this[_0x924f08(0x193)](),this[_0x924f08(0x1a3)]();}['_addComponent'](){const _0x4f6ac0=_0x11ca05,{pageMarginLeft:_0x2d51e1,pageMarginTop:_0x6638f0,docsLeft:_0x4dd86f,docsTop:_0x132b05}=this[_0x4f6ac0(0x174)],_0x2d8e23={'pageMarginLeft':_0x2d51e1,'pageMarginTop':_0x6638f0},_0xc8b955=new Documents('__DocPrintRender__',this[_0x4f6ac0(0x150)],_0x2d8e23);_0xc8b955[_0x4f6ac0(0x1c3)](_0x4dd86f,_0x132b05),this[_0x4f6ac0(0x1a4)]['addObject'](_0xc8b955),this[_0x4f6ac0(0x1ab)]=_0xc8b955;const _0x41f0b9=this['_injector'][_0x4f6ac0(0x180)](DocPrintInterceptorService);_0x41f0b9['interceptor'][_0x4f6ac0(0x1c4)](_0x41f0b9[_0x4f6ac0(0x1bc)][_0x4f6ac0(0x194)]()[_0x4f6ac0(0x16c)])(void 0x0,{'unitId':this[_0x4f6ac0(0x198)],'scene':this[_0x4f6ac0(0x1a4)],'engine':this['_engine'],'root':this[_0x4f6ac0(0x1c9)],'documents':this[_0x4f6ac0(0x1ab)],'skeleton':this[_0x4f6ac0(0x150)]});}['_addViewport'](){const _0x409f28=_0x11ca05;this[_0x409f28(0x162)]=new Viewport(VIEWPORT_KEY['VIEW_MAIN'],this[_0x409f28(0x1a4)],{'explicitViewportWidthSet':!![],'explicitViewportHeightSet':!![]});}[_0x11ca05(0x184)](){const _0x5d5313=_0x11ca05,_0x2495e1=this[_0x5d5313(0x1d0)]();this[_0x5d5313(0x162)][_0x5d5313(0x1b8)]({'viewportScrollX':_0x2495e1[_0x5d5313(0x1a1)],'viewportScrollY':_0x2495e1[_0x5d5313(0x19f)]}),this['_root'][_0x5d5313(0x190)][_0x5d5313(0x1ae)]=_0x5d5313(0x1c2),this[_0x5d5313(0x1c9)][_0x5d5313(0x190)][_0x5d5313(0x19f)]='0px',this[_0x5d5313(0x1c9)]['style']['left']='0px',this['_root']['style'][_0x5d5313(0x165)]=_0x5d5313(0x1d3),this[_0x5d5313(0x1c9)]['style'][_0x5d5313(0x1b0)]=_0x5d5313(0x1d3),this[_0x5d5313(0x1cb)]=new DisposableCollection();const _0x1c0db3=this['_injector'][_0x5d5313(0x180)](DocPrintInterceptorService);_0x1c0db3[_0x5d5313(0x1bc)][_0x5d5313(0x1c4)](_0x1c0db3[_0x5d5313(0x1bc)][_0x5d5313(0x194)]()[_0x5d5313(0x16b)])(this[_0x5d5313(0x1cb)],{'unitId':this[_0x5d5313(0x198)],'scene':this[_0x5d5313(0x1a4)],'engine':this[_0x5d5313(0x16f)],'root':this[_0x5d5313(0x1c9)],'skeleton':this['_skeleton'],'offset':{'x':_0x2495e1[_0x5d5313(0x1a1)],'y':_0x2495e1[_0x5d5313(0x19f)]},'bound':{'top':_0x2495e1[_0x5d5313(0x19f)],'left':_0x2495e1[_0x5d5313(0x1a1)],'right':_0x2495e1['right'],'bottom':_0x2495e1[_0x5d5313(0x1c8)]}});}[_0x11ca05(0x177)](){const _0x4203b3=_0x11ca05,_0x4a05f6=this[_0x4203b3(0x16f)]['getCanvas']()['getContext']();this['_documents'][_0x4203b3(0x17c)](),this[_0x4203b3(0x1a4)][_0x4203b3(0x199)](),_0x4a05f6[_0x4203b3(0x197)](),this[_0x4203b3(0x1a4)][_0x4203b3(0x177)](),_0x4a05f6[_0x4203b3(0x153)]();}};function __decorateParam(_0x3d920e,_0x51bd9a){return function(_0x423042,_0x1b2a6c){_0x51bd9a(_0x423042,_0x1b2a6c,_0x3d920e);};}function __decorate(_0x545b3c,_0x587521,_0x491163,_0x2a7ae9){const _0x1aa6f9=_0x11ca05;var _0x48977b=arguments[_0x1aa6f9(0x15c)],_0x1148da=_0x48977b<0x3?_0x587521:_0x2a7ae9===null?_0x2a7ae9=Object['getOwnPropertyDescriptor'](_0x587521,_0x491163):_0x2a7ae9,_0x1d9350;if(typeof Reflect==='object'&&typeof Reflect[_0x1aa6f9(0x19c)]===_0x1aa6f9(0x186))_0x1148da=Reflect[_0x1aa6f9(0x19c)](_0x545b3c,_0x587521,_0x491163,_0x2a7ae9);else{for(var _0x1284d9=_0x545b3c['length']-0x1;_0x1284d9>=0x0;_0x1284d9--)if(_0x1d9350=_0x545b3c[_0x1284d9])_0x1148da=(_0x48977b<0x3?_0x1d9350(_0x1148da):_0x48977b>0x3?_0x1d9350(_0x587521,_0x491163,_0x1148da):_0x1d9350(_0x587521,_0x491163))||_0x1148da;}return _0x48977b>0x3&&_0x1148da&&Object[_0x1aa6f9(0x1bb)](_0x587521,_0x491163,_0x1148da),_0x1148da;}const BUILD_TIMESTAMP=Number[_0x11ca05(0x171)](0x69ff10fd),DEFAULT_PRINT_LIMIT=0x1,getPrintInfoByLicense=(_0x34cf42,_0x32cb27,_0xfef254)=>{const _0x431b65=_0x11ca05,_0x253195={'page':_0x34cf42,'isPro':![],'timeValid':![]};if(!_0x32cb27||!_0xfef254)return _0x253195;const _0xeaa1e4=getLicenseInfo(_0x32cb27,_0xfef254);if(_0xeaa1e4['valid']){const _0x2c3672=_0xeaa1e4[_0x431b65(0x1bf)],_0x354130=isFeatureAuthorizedWithinTime(_0x2c3672,'df',BUILD_TIMESTAMP);_0x253195[_0x431b65(0x1b3)]=_0x354130,_0x253195[_0x431b65(0x1b6)]=_0x354130,_0x253195[_0x431b65(0x1c6)]=getDocFeatureLimit(_0x2c3672,_0x354130,_0x431b65(0x1ad),_0x34cf42,_0x34cf42,0x0);}return _0x253195;};let DocPrintService=class DocPrintService extends Disposable{constructor(_0x3541a6,_0x4abe2e,_0x77a2e1,_0x357c8a,_0x272447){const _0xee61e3=_0x11ca05;super(),this[_0xee61e3(0x191)]=_0x3541a6,this[_0xee61e3(0x1ce)]=_0x4abe2e,this[_0xee61e3(0x1ba)]=_0x77a2e1,this['_configService']=_0x357c8a,this['_globalZoneService']=_0x272447;}[_0x11ca05(0x173)](_0x3a71bf){const _0x3cbfb0=_0x11ca05;var _0x57d838,_0x1ccf88;const {ls:_0xb8e99a,pbk:_0x3e477b}=(_0x57d838=this[_0x3cbfb0(0x14f)][_0x3cbfb0(0x15a)](LS_CONFIG_KEY))!==null&&_0x57d838!==void 0x0?_0x57d838:{},_0x8ace78=isLocalCheck()?Number[_0x3cbfb0(0x187)]:getPrintInfoByLicense(0x1,_0xb8e99a,_0x3e477b)['page'];if(!this['_univerInstanceService'][_0x3cbfb0(0x189)](_0x3a71bf,UniverInstanceType[_0x3cbfb0(0x1bd)]))throw new Error(_0x3cbfb0(0x15f));const _0x4caf29=this[_0x3cbfb0(0x1ce)]['getRenderById'](_0x3a71bf);if(!_0x4caf29)throw new Error(_0x3cbfb0(0x18b));const _0x104067=(_0x1ccf88=_0x4caf29[_0x3cbfb0(0x1a0)](DocSkeletonManagerService)[_0x3cbfb0(0x151)]()['getSkeletonData']())===null||_0x1ccf88===void 0x0?void 0x0:_0x1ccf88['pages'];if(!_0x104067)throw new Error(_0x3cbfb0(0x163));const _0x45774b={'width':_0x104067[0x0][_0x3cbfb0(0x1a2)],'height':_0x104067[0x0][_0x3cbfb0(0x14e)]},_0x35ac5b=_0x104067[_0x3cbfb0(0x15c)],_0x54ff55=Math[_0x3cbfb0(0x156)](_0x8ace78,_0x35ac5b),_0x442bd6=_0x4caf29['mainComponent'][_0x3cbfb0(0x192)](),_0x29dfe1=document[_0x3cbfb0(0x1d1)](_0x3cbfb0(0x166));_0x29dfe1[_0x3cbfb0(0x1a9)]=PRINT_CONTAINER_CLASS;const _0x19a9df=new Array(_0x54ff55)[_0x3cbfb0(0x1c1)](null)[_0x3cbfb0(0x1c0)]((_0x2ae0f9,_0x3cd797)=>{const _0x2d1ead=_0x3cbfb0,_0x839680=new DocPrintPageCanvasView(this[_0x2d1ead(0x1ba)],_0x3cd797,_0x3a71bf,_0x442bd6);return _0x839680[_0x2d1ead(0x1ac)][_0x2d1ead(0x1a9)]=PRINT_CANVAS_CLASS,_0x839680;});_0x19a9df[_0x3cbfb0(0x179)](_0x214b1d=>{const _0x37bd44=_0x3cbfb0;_0x29dfe1['appendChild'](_0x214b1d[_0x37bd44(0x1ac)]),_0x214b1d[_0x37bd44(0x1ac)][_0x37bd44(0x1b7)](_0x214b1d[_0x37bd44(0x168)]),_0x214b1d[_0x37bd44(0x184)]();});const _0x52f1df=createPrintStyle(_0x45774b['width'],_0x45774b[_0x3cbfb0(0x1b0)],PrintDirection['Portrait']);return document['body'][_0x3cbfb0(0x1b7)](_0x52f1df),document[_0x3cbfb0(0x19a)][_0x3cbfb0(0x1b7)](_0x29dfe1),new Promise(_0x4e3058=>{setTimeout(()=>{const _0x8c6820=_0x24b8;window[_0x8c6820(0x160)]=()=>{_0x19a9df['forEach'](_0x160787=>{const _0x2ffb28=_0x24b8;_0x160787[_0x2ffb28(0x177)]();});},window['onafterprint']=()=>{const _0x56b2b5=_0x8c6820;_0x19a9df[_0x56b2b5(0x179)](_0x26be51=>{const _0x15cf96=_0x56b2b5;_0x26be51[_0x15cf96(0x157)]();}),document[_0x56b2b5(0x19a)][_0x56b2b5(0x176)](_0x29dfe1),document['body'][_0x56b2b5(0x176)](_0x52f1df),this[_0x56b2b5(0x1cd)]['close'](),_0x4e3058(!![]);},window[_0x8c6820(0x173)]();},0x64);});}};DocPrintService=__decorate([__decorateParam(0x0,IUniverInstanceService),__decorateParam(0x1,IRenderManagerService),__decorateParam(0x2,Inject(Injector)),__decorateParam(0x3,IConfigService),__decorateParam(0x4,IGlobalZoneService)],DocPrintService);const DocPrintOperation={'id':_0x11ca05(0x14d),'type':CommandType['OPERATION'],'handler':async _0xb0657a=>{const _0x2adf5a=_0x11ca05,_0x38a641=_0xb0657a[_0x2adf5a(0x180)](IUniverInstanceService),_0x301fe3=_0xb0657a['get'](DocPrintService),_0x23d42c=_0xb0657a['get'](IRenderManagerService),_0x38636a=_0xb0657a[_0x2adf5a(0x180)](ICommandService),_0x48c512=_0x38a641[_0x2adf5a(0x183)](UniverInstanceType['UNIVER_DOC']);if(!_0x48c512)return![];if(!_0x23d42c[_0x2adf5a(0x170)](_0x48c512[_0x2adf5a(0x155)]()))throw new Error(_0x2adf5a(0x18b));const _0x141d1b=_0x48c512['getDocumentStyle']()[_0x2adf5a(0x1d2)];if(_0x141d1b!==DocumentFlavor[_0x2adf5a(0x195)])_0x38636a['syncExecuteCommand'](SwitchDocModeCommand['id']);await _0x301fe3['print'](_0x48c512[_0x2adf5a(0x155)]());if(_0x141d1b!==DocumentFlavor[_0x2adf5a(0x195)])_0x38636a[_0x2adf5a(0x17e)](SwitchDocModeCommand['id']);return!![];}},DOCS_PRINT_PLUGIN_CONFIG_KEY='UNIVER_DOCS_PRINT',defaultPluginConfig={};var name='@univerjs-pro/docs-print',version=_0x11ca05(0x152);const DOCS_PRINT_PLUGIN_NAME=_0x11ca05(0x1b4);function DocPrintMenuItemFactory(_0x444340){const _0x1b5db4=_0x11ca05;return{'id':DocPrintOperation['id'],'type':MenuItemType[_0x1b5db4(0x159)],'title':_0x1b5db4(0x1a7),'icon':'PrintIcon','tooltip':'print.menu','hidden$':getMenuHiddenObservable(_0x444340,UniverInstanceType[_0x1b5db4(0x1bd)])};}const menuSchema={[RibbonStartGroup[_0x11ca05(0x16a)]]:{[DocPrintOperation['id']]:{'order':0.1,'menuItemFactory':DocPrintMenuItemFactory}}};let DocsPrintUIController=class DocsPrintUIController extends Disposable{constructor(_0x5f5838,_0x5a5140,_0x59e2e4){const _0x533f1f=_0x11ca05;super(),this['_commandService']=_0x5f5838,this['_menuManagerService']=_0x5a5140,this[_0x533f1f(0x1cf)]=_0x59e2e4,this['_initMenus'](),this[_0x533f1f(0x172)](),this[_0x533f1f(0x19d)]();}['_initMenus'](){const _0x11e51d=_0x11ca05;this[_0x11e51d(0x18a)]['mergeMenu'](menuSchema);}[_0x11ca05(0x172)](){const _0x3f68f6=_0x11ca05;this[_0x3f68f6(0x17f)](this[_0x3f68f6(0x158)][_0x3f68f6(0x188)](DocPrintOperation));}[_0x11ca05(0x19d)](){const _0x221cd3=_0x11ca05;[[_0x221cd3(0x1a8),PrintIcon]]['forEach'](([_0x3aae0f,_0x4f7dcf])=>{const _0x2d845f=_0x221cd3;this[_0x2d845f(0x1cf)][_0x2d845f(0x1a5)](_0x3aae0f,_0x4f7dcf);});}};function _0x24b8(_0x27e76b,_0x14a7a9){_0x27e76b=_0x27e76b-0x14d;const _0x364dd1=_0x364d();let _0x24b853=_0x364dd1[_0x27e76b];return _0x24b853;}DocsPrintUIController=__decorate([__decorateParam(0x0,ICommandService),__decorateParam(0x1,IMenuManagerService),__decorateParam(0x2,Inject(ComponentManager))],DocsPrintUIController);let UniverDocsPrintPlugin=class UniverDocsPrintPlugin extends Plugin{constructor(_0x2ea6a2=defaultPluginConfig,_0xd2b593,_0xd6e487){const _0x1caa13=_0x11ca05;super(),this[_0x1caa13(0x18f)]=_0x2ea6a2,this[_0x1caa13(0x1ba)]=_0xd2b593,this['_configService']=_0xd6e487;const {menu:_0x16daa2,..._0x346fdc}=merge({},defaultPluginConfig,this[_0x1caa13(0x18f)]);if(_0x16daa2)this['_configService'][_0x1caa13(0x17d)](_0x1caa13(0x185),_0x16daa2,{'merge':!![]});this['_configService'][_0x1caa13(0x17d)](DOCS_PRINT_PLUGIN_CONFIG_KEY,_0x346fdc);}[_0x11ca05(0x175)](){const _0x4a93d1=_0x11ca05;registerDependencies(this[_0x4a93d1(0x1ba)],[[DocPrintService],[DocsPrintUIController]]);}[_0x11ca05(0x1be)](){const _0x540c81=_0x11ca05;this[_0x540c81(0x1ba)][_0x540c81(0x180)](DocsPrintUIController);}};_defineProperty(UniverDocsPrintPlugin,'pluginName',DOCS_PRINT_PLUGIN_NAME),_defineProperty(UniverDocsPrintPlugin,_0x11ca05(0x181),name),_defineProperty(UniverDocsPrintPlugin,_0x11ca05(0x1b5),version),_defineProperty(UniverDocsPrintPlugin,_0x11ca05(0x1cc),UniverInstanceType['UNIVER_DOC']),UniverDocsPrintPlugin=__decorate([DependentOn(UniverNetworkPlugin,UniverLicensePlugin),__decorateParam(0x1,Inject(Injector)),__decorateParam(0x2,IConfigService)],UniverDocsPrintPlugin);export{DOCS_PRINT_PLUGIN_CONFIG_KEY,DocPrintOperation,UniverDocsPrintPlugin};
|
package/lib/es/locale/ca-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x8cf0a6=_0x3168;function _0x3168(_0x3f2faa,_0x1f14b2){_0x3f2faa=_0x3f2faa-0x183;const _0x21aa98=_0x21aa();let _0x3168a1=_0x21aa98[_0x3f2faa];return _0x3168a1;}function _0x21aa(){const _0x51fd59=['3Tuueyg','748892uRNmdM','917LDNjVq','25510JxwvGH','3787356GmuwOL','117AJGBEM','264qSsWmc','Print','709466BdQYcH','514616ueWtGZ','198740EePXXk','649Eoecll'];_0x21aa=function(){return _0x51fd59;};return _0x21aa();}(function(_0x1c3625,_0x219373){const _0x1d8822=_0x3168,_0x4b6d47=_0x1c3625();while(!![]){try{const _0x4bcf99=parseInt(_0x1d8822(0x18c))/0x1+-parseInt(_0x1d8822(0x187))/0x2+parseInt(_0x1d8822(0x18b))/0x3*(parseInt(_0x1d8822(0x183))/0x4)+-parseInt(_0x1d8822(0x189))/0x5+parseInt(_0x1d8822(0x185))/0x6*(-parseInt(_0x1d8822(0x18d))/0x7)+-parseInt(_0x1d8822(0x188))/0x8*(parseInt(_0x1d8822(0x184))/0x9)+-parseInt(_0x1d8822(0x18e))/0xa*(-parseInt(_0x1d8822(0x18a))/0xb);if(_0x4bcf99===_0x219373)break;else _0x4b6d47['push'](_0x4b6d47['shift']());}catch(_0x4ee4fe){_0x4b6d47['push'](_0x4b6d47['shift']());}}}(_0x21aa,0x94dd0));const locale$1={'print':{'menu':_0x8cf0a6(0x186)}},locale=locale$1;export{locale as default};
|
package/lib/es/locale/en-US.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x649b51,_0x3916d5){const _0x1d9f93=_0xdac1,_0x5404c1=_0x649b51();while(!![]){try{const _0x3a6375=-parseInt(_0x1d9f93(0x144))/0x1*(-parseInt(_0x1d9f93(0x13c))/0x2)+-parseInt(_0x1d9f93(0x13b))/0x3*(-parseInt(_0x1d9f93(0x142))/0x4)+-parseInt(_0x1d9f93(0x13d))/0x5*(-parseInt(_0x1d9f93(0x13e))/0x6)+parseInt(_0x1d9f93(0x141))/0x7+-parseInt(_0x1d9f93(0x140))/0x8+parseInt(_0x1d9f93(0x13a))/0x9+parseInt(_0x1d9f93(0x13f))/0xa*(-parseInt(_0x1d9f93(0x143))/0xb);if(_0x3a6375===_0x3916d5)break;else _0x5404c1['push'](_0x5404c1['shift']());}catch(_0x1f061e){_0x5404c1['push'](_0x5404c1['shift']());}}}(_0x514c,0xc4038));const locale={'print':{'menu':'Print'}};function _0xdac1(_0x72295d,_0xdfbf29){_0x72295d=_0x72295d-0x13a;const _0x514c6f=_0x514c();let _0xdac147=_0x514c6f[_0x72295d];return _0xdac147;}function _0x514c(){const _0x3ba0cb=['849375JJbuLY','6Rgblpf','24jVXnmB','5505dPZLsr','2364GahEQE','2720TdTZbt','6905712FhmrcR','9100805vmZnBS','394972QyqjuC','35717AsQnCM','43625pwqnaA'];_0x514c=function(){return _0x3ba0cb;};return _0x514c();}export{locale as default};
|
package/lib/es/locale/es-ES.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0xd02d5f,_0x2530ff){const _0x1ff6ca=_0x4950,_0x2defdd=_0xd02d5f();while(!![]){try{const _0x13d10f=parseInt(_0x1ff6ca(0x78))/0x1*(parseInt(_0x1ff6ca(0x76))/0x2)+-parseInt(_0x1ff6ca(0x7b))/0x3*(-parseInt(_0x1ff6ca(0x7a))/0x4)+parseInt(_0x1ff6ca(0x7e))/0x5*(-parseInt(_0x1ff6ca(0x79))/0x6)+-parseInt(_0x1ff6ca(0x7d))/0x7*(-parseInt(_0x1ff6ca(0x7c))/0x8)+parseInt(_0x1ff6ca(0x80))/0x9*(-parseInt(_0x1ff6ca(0x7f))/0xa)+parseInt(_0x1ff6ca(0x75))/0xb*(-parseInt(_0x1ff6ca(0x81))/0xc)+-parseInt(_0x1ff6ca(0x77))/0xd;if(_0x13d10f===_0x2530ff)break;else _0x2defdd['push'](_0x2defdd['shift']());}catch(_0x2d1297){_0x2defdd['push'](_0x2defdd['shift']());}}}(_0xc261,0x91bf6));function _0x4950(_0x4f9ec0,_0x1ab5c1){_0x4f9ec0=_0x4f9ec0-0x75;const _0xc2617e=_0xc261();let _0x495070=_0xc2617e[_0x4f9ec0];return _0x495070;}function _0xc261(){const _0x7a1996=['99uakXsl','3945252HULjRU','22yBfztX','6sAmiFI','107393Psgdtg','353789jZrytw','12534EmBjga','519368JSSDLU','15ttmoAY','8ixWXNe','2320416HNUPAv','515FXSnjA','512830pgbcks'];_0xc261=function(){return _0x7a1996;};return _0xc261();}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
|
+
function _0x1d16(_0x4e0d94,_0x536bc4){_0x4e0d94=_0x4e0d94-0x1dd;const _0xcfeb5f=_0xcfeb();let _0x1d1618=_0xcfeb5f[_0x4e0d94];return _0x1d1618;}const _0x2186ef=_0x1d16;(function(_0x1255e1,_0x267a10){const _0x181aa9=_0x1d16,_0x13ca03=_0x1255e1();while(!![]){try{const _0x4a650a=parseInt(_0x181aa9(0x1e1))/0x1+-parseInt(_0x181aa9(0x1e7))/0x2+-parseInt(_0x181aa9(0x1e6))/0x3+-parseInt(_0x181aa9(0x1e0))/0x4*(parseInt(_0x181aa9(0x1dd))/0x5)+parseInt(_0x181aa9(0x1e3))/0x6*(-parseInt(_0x181aa9(0x1de))/0x7)+parseInt(_0x181aa9(0x1df))/0x8*(parseInt(_0x181aa9(0x1e2))/0x9)+parseInt(_0x181aa9(0x1e5))/0xa;if(_0x4a650a===_0x267a10)break;else _0x13ca03['push'](_0x13ca03['shift']());}catch(_0x21a5a4){_0x13ca03['push'](_0x13ca03['shift']());}}}(_0xcfeb,0x382d7));function _0xcfeb(){const _0x3f5eda=['837332OcpSwb','615WPyPmH','392beWjAV','39696UWBvqc','3116IcTwUq','439157VKUUVf','18legVpM','20472tSZEpu','چاپ','9226500kjUwVe','1308219nrOgKQ'];_0xcfeb=function(){return _0x3f5eda;};return _0xcfeb();}const locale={'print':{'menu':_0x2186ef(0x1e4)}};export{locale as default};
|
package/lib/es/locale/fr-FR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x438281=_0x3847;function _0x3847(_0x728d79,_0x75d05a){_0x728d79=_0x728d79-0x187;const _0x4fb0f8=_0x4fb0();let _0x384748=_0x4fb0f8[_0x728d79];return _0x384748;}(function(_0x50289,_0x428149){const _0xd71c59=_0x3847,_0x221cff=_0x50289();while(!![]){try{const _0x5c821a=parseInt(_0xd71c59(0x188))/0x1+parseInt(_0xd71c59(0x18c))/0x2+-parseInt(_0xd71c59(0x189))/0x3*(parseInt(_0xd71c59(0x18a))/0x4)+-parseInt(_0xd71c59(0x18d))/0x5+parseInt(_0xd71c59(0x18b))/0x6*(-parseInt(_0xd71c59(0x18e))/0x7)+-parseInt(_0xd71c59(0x18f))/0x8+parseInt(_0xd71c59(0x191))/0x9*(parseInt(_0xd71c59(0x187))/0xa);if(_0x5c821a===_0x428149)break;else _0x221cff['push'](_0x221cff['shift']());}catch(_0x512c33){_0x221cff['push'](_0x221cff['shift']());}}}(_0x4fb0,0x6a4df));const locale={'print':{'menu':_0x438281(0x190)}};function _0x4fb0(){const _0x3faa32=['1674460dwCkkx','91npFhTp','5542024HAbbPK','Imprimer','521793ttgSBO','350zhajWm','174078BEOWzW','141OnJFed','4504IBGOjD','398478hpxwYz','352172sYRyDB'];_0x4fb0=function(){return _0x3faa32;};return _0x4fb0();}export{locale as default};
|
package/lib/es/locale/ja-JP.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x323235,_0x28c6ff){const _0x1804ae=_0x596c,_0x17e085=_0x323235();while(!![]){try{const _0x4843ad=parseInt(_0x1804ae(0x83))/0x1*(parseInt(_0x1804ae(0x81))/0x2)+parseInt(_0x1804ae(0x7e))/0x3*(-parseInt(_0x1804ae(0x7d))/0x4)+-parseInt(_0x1804ae(0x82))/0x5*(parseInt(_0x1804ae(0x7f))/0x6)+-parseInt(_0x1804ae(0x79))/0x7+-parseInt(_0x1804ae(0x7a))/0x8+parseInt(_0x1804ae(0x7b))/0x9+parseInt(_0x1804ae(0x7c))/0xa*(parseInt(_0x1804ae(0x80))/0xb);if(_0x4843ad===_0x28c6ff)break;else _0x17e085['push'](_0x17e085['shift']());}catch(_0x4f4d45){_0x17e085['push'](_0x17e085['shift']());}}}(_0x369b,0x24081));const locale={'print':{'menu':'印刷'}};function _0x596c(_0x57fa18,_0x268981){_0x57fa18=_0x57fa18-0x79;const _0x369b29=_0x369b();let _0x596c13=_0x369b29[_0x57fa18];return _0x596c13;}export{locale as default};function _0x369b(){const _0x356e64=['445cXwQnr','227zsMPmY','1532412ckIisc','2071800WZAxNq','559953nDgTtT','393580OPnokA','4caqEmO','174147zKScle','2742GldrMW','121RPJREu','2018FnwOBi'];_0x369b=function(){return _0x356e64;};return _0x369b();}
|
package/lib/es/locale/ko-KR.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4d3e29,_0x4fda8e){const _0x493290=_0x3fb9,_0x1faa18=_0x4d3e29();while(!![]){try{const _0x1c06b4=-parseInt(_0x493290(0x135))/0x1+parseInt(_0x493290(0x139))/0x2+-parseInt(_0x493290(0x13c))/0x3+parseInt(_0x493290(0x138))/0x4*(-parseInt(_0x493290(0x137))/0x5)+parseInt(_0x493290(0x13b))/0x6+-parseInt(_0x493290(0x136))/0x7+parseInt(_0x493290(0x134))/0x8*(parseInt(_0x493290(0x13a))/0x9);if(_0x1c06b4===_0x4fda8e)break;else _0x1faa18['push'](_0x1faa18['shift']());}catch(_0x24509c){_0x1faa18['push'](_0x1faa18['shift']());}}}(_0x5bae,0x19de6));const locale={'print':{'menu':'인쇄'}};function _0x3fb9(_0x3c294,_0x1589c1){_0x3c294=_0x3c294-0x134;const _0x5bae59=_0x5bae();let _0x3fb9ef=_0x5bae59[_0x3c294];return _0x3fb9ef;}export{locale as default};function _0x5bae(){const _0x823b44=['453608xKdVhE','203409uMPIhf','1156099ZUxoTj','785vAHbxD','652kkrECd','119908tDXrMz','63HELFOl','358692BWWgwi','49584yJWdsh'];_0x5bae=function(){return _0x823b44;};return _0x5bae();}
|
package/lib/es/locale/ru-RU.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3b6904,_0x2c8f6e){const _0x559b32=_0x14e6,_0xabd1ea=_0x3b6904();while(!![]){try{const _0x1e7595=parseInt(_0x559b32(0x1c9))/0x1*(parseInt(_0x559b32(0x1ca))/0x2)+parseInt(_0x559b32(0x1c8))/0x3*(-parseInt(_0x559b32(0x1cb))/0x4)+parseInt(_0x559b32(0x1cc))/0x5*(-parseInt(_0x559b32(0x1c7))/0x6)+-parseInt(_0x559b32(0x1d0))/0x7*(-parseInt(_0x559b32(0x1ce))/0x8)+parseInt(_0x559b32(0x1c5))/0x9*(parseInt(_0x559b32(0x1cd))/0xa)+parseInt(_0x559b32(0x1cf))/0xb+parseInt(_0x559b32(0x1c6))/0xc;if(_0x1e7595===_0x2c8f6e)break;else _0xabd1ea['push'](_0xabd1ea['shift']());}catch(_0x38b904){_0xabd1ea['push'](_0xabd1ea['shift']());}}}(_0x1ebc,0xa0476));const locale={'print':{'menu':'Печать'}};function _0x1ebc(){const _0x14e94b=['15236532DSQHpG','48AajwxO','22086cmtJQP','5oHsFls','111730PnGebm','708NYQDoF','612265GWikcI','810hAuXLB','3315768VHmBLa','2944392blNlxD','7btmOdb','78669Qtjodn'];_0x1ebc=function(){return _0x14e94b;};return _0x1ebc();}function _0x14e6(_0x504b93,_0x17aa0d){_0x504b93=_0x504b93-0x1c5;const _0x1ebce3=_0x1ebc();let _0x14e6ec=_0x1ebce3[_0x504b93];return _0x14e6ec;}export{locale as default};
|
package/lib/es/locale/sk-SK.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x364bc0=_0x2394;(function(_0x39ae5c,_0x198d07){const _0x341bf8=_0x2394,_0x5420e8=_0x39ae5c();while(!![]){try{const _0x5d4906=-parseInt(_0x341bf8(0x1da))/0x1*(-parseInt(_0x341bf8(0x1df))/0x2)+-parseInt(_0x341bf8(0x1db))/0x3+parseInt(_0x341bf8(0x1d5))/0x4*(parseInt(_0x341bf8(0x1d7))/0x5)+parseInt(_0x341bf8(0x1de))/0x6+-parseInt(_0x341bf8(0x1d8))/0x7+-parseInt(_0x341bf8(0x1dd))/0x8*(-parseInt(_0x341bf8(0x1d9))/0x9)+-parseInt(_0x341bf8(0x1e0))/0xa*(parseInt(_0x341bf8(0x1d6))/0xb);if(_0x5d4906===_0x198d07)break;else _0x5420e8['push'](_0x5420e8['shift']());}catch(_0x2d306c){_0x5420e8['push'](_0x5420e8['shift']());}}}(_0x1007,0xc316b));const locale={'print':{'menu':_0x364bc0(0x1dc)}};export{locale as default};function _0x2394(_0x77b30a,_0x3f41d3){_0x77b30a=_0x77b30a-0x1d5;const _0x10074c=_0x1007();let _0x23940d=_0x10074c[_0x77b30a];return _0x23940d;}function _0x1007(){const _0x580e7f=['3194390PZGJHi','330148xczXSj','216mqFdCf','93UJQlhP','2591904yzzLOM','Tlač','143568mnDNhd','4459686MZdYrv','24358zFTENO','274510YRXMqt','4VupxKW','495XyJySB'];_0x1007=function(){return _0x580e7f;};return _0x1007();}
|
package/lib/es/locale/vi-VN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x4eab(){const _0x53c43e=['279ttuKQj','8004emQbub','33253fYrTYm','4NOTslP','8530emxqTo','8MTleLW','6202WsPXLk','272390WtufMy','680102apdvkw','279824vmlaMa','248859rAjtsM','1446vYUFvx'];_0x4eab=function(){return _0x53c43e;};return _0x4eab();}(function(_0x123348,_0x539875){const _0x225d8d=_0x24ac,_0x25b790=_0x123348();while(!![]){try{const _0x3a2ff6=-parseInt(_0x225d8d(0x1a7))/0x1+-parseInt(_0x225d8d(0x1a2))/0x2*(-parseInt(_0x225d8d(0x1a9))/0x3)+-parseInt(_0x225d8d(0x1a4))/0x4*(-parseInt(_0x225d8d(0x1a3))/0x5)+-parseInt(_0x225d8d(0x1aa))/0x6*(parseInt(_0x225d8d(0x1a5))/0x7)+parseInt(_0x225d8d(0x1a8))/0x8+-parseInt(_0x225d8d(0x1ab))/0x9*(parseInt(_0x225d8d(0x1a6))/0xa)+-parseInt(_0x225d8d(0x1a1))/0xb*(-parseInt(_0x225d8d(0x1a0))/0xc);if(_0x3a2ff6===_0x539875)break;else _0x25b790['push'](_0x25b790['shift']());}catch(_0x23da46){_0x25b790['push'](_0x25b790['shift']());}}}(_0x4eab,0x75d28));const locale={'print':{'menu':'In'}};function _0x24ac(_0x2b144c,_0xa798de){_0x2b144c=_0x2b144c-0x1a0;const _0x4eab5e=_0x4eab();let _0x24acb5=_0x4eab5e[_0x2b144c];return _0x24acb5;}export{locale as default};
|
package/lib/es/locale/zh-CN.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function _0x30b9(_0x4089eb,_0x3132db){_0x4089eb=_0x4089eb-0xe8;const _0x46694b=_0x4669();let _0x30b9aa=_0x46694b[_0x4089eb];return _0x30b9aa;}function _0x4669(){const _0x280b63=['1121280UdEVaN','369880CUOqWE','1340QcqeUv','8YIBEQY','159MxVgmN','3310083VwUcYl','1077906heJWeE','526840VulubE','528640BOFMuL'];_0x4669=function(){return _0x280b63;};return _0x4669();}(function(_0xcd64af,_0x400410){const _0x13eceb=_0x30b9,_0xd91242=_0xcd64af();while(!![]){try{const _0x365927=parseInt(_0x13eceb(0xe8))/0x1+-parseInt(_0x13eceb(0xee))/0x2+parseInt(_0x13eceb(0xeb))/0x3*(-parseInt(_0x13eceb(0xe9))/0x4)+parseInt(_0x13eceb(0xf0))/0x5+parseInt(_0x13eceb(0xed))/0x6+parseInt(_0x13eceb(0xef))/0x7*(parseInt(_0x13eceb(0xea))/0x8)+-parseInt(_0x13eceb(0xec))/0x9;if(_0x365927===_0x400410)break;else _0xd91242['push'](_0xd91242['shift']());}catch(_0x3cf283){_0xd91242['push'](_0xd91242['shift']());}}}(_0x4669,0x30e99));const locale={'print':{'menu':'打印'}};export{locale as default};
|
package/lib/es/locale/zh-TW.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x43a764,_0x376f2d){const _0x11d408=_0x2f85,_0x576925=_0x43a764();while(!![]){try{const _0x3b3f91=-parseInt(_0x11d408(0x10a))/0x1*(-parseInt(_0x11d408(0x10b))/0x2)+-parseInt(_0x11d408(0x109))/0x3+-parseInt(_0x11d408(0x10e))/0x4*(-parseInt(_0x11d408(0x104))/0x5)+-parseInt(_0x11d408(0x105))/0x6*(parseInt(_0x11d408(0x10d))/0x7)+-parseInt(_0x11d408(0x108))/0x8+-parseInt(_0x11d408(0x106))/0x9*(parseInt(_0x11d408(0x107))/0xa)+parseInt(_0x11d408(0x10c))/0xb;if(_0x3b3f91===_0x376f2d)break;else _0x576925['push'](_0x576925['shift']());}catch(_0x410c3f){_0x576925['push'](_0x576925['shift']());}}}(_0x4732,0x68060));const locale={'print':{'menu':'列印'}};function _0x4732(){const _0x7c24fd=['5226655zniSrx','557644Eyphny','5XVGGXN','6JudVZX','78444iZSvRv','750OCKApu','6098712WjiCTB','2075193GsWzts','659FixORa','2134OUlPYL','26817461WVHyyU'];_0x4732=function(){return _0x7c24fd;};return _0x4732();}function _0x2f85(_0x38e529,_0x278554){_0x38e529=_0x38e529-0x104;const _0x473294=_0x4732();let _0x2f85ee=_0x473294[_0x38e529];return _0x2f85ee;}export{locale as default};
|