@ckeditor/ckeditor5-export-pdf 0.0.0-nightly-20240604.0 → 0.0.0-nightly-20240604.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/build/export-pdf.js +1 -1
- package/dist/index.js +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/dist/types/exportpdf.d.ts +5 -4
- package/package.json +2 -2
- package/src/exportpdf.d.ts +5 -4
- package/src/exportpdf.js +1 -1
- package/src/exportpdfcommand.js +1 -1
- package/src/exportpdfui.js +1 -1
- package/src/index.js +1 -1
- package/src/utils.js +1 -1
package/dist/translations/zh.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'zh':{'dictionary':{'Export\x20to\x20PDF':'匯出為\x20PDF','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'產生\x20PDF\x20時發生錯誤。','PDF\x20export\x20started':'PDF\x20匯出開始','PDF\x20export\x20failed':'PDF\x20匯出失敗','PDF\x20export\x20successful':'PDF\x20匯出成功','Exporting\x20PDF\x20document':'正在匯出\x20PDF\x20文件'},'getPluralForm':
|
|
23
|
+
export default{'zh':{'dictionary':{'Export\x20to\x20PDF':'匯出為\x20PDF','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'產生\x20PDF\x20時發生錯誤。','PDF\x20export\x20started':'PDF\x20匯出開始','PDF\x20export\x20failed':'PDF\x20匯出失敗','PDF\x20export\x20successful':'PDF\x20匯出成功','Exporting\x20PDF\x20document':'正在匯出\x20PDF\x20文件'},'getPluralForm':_0x4ba061=>0x0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x4cde31=>{const {zh:{dictionary:_0x21f0a5,getPluralForm:_0x4f6338}}={'zh':{'dictionary':{'Export\x20to\x20PDF':'匯出為\x20PDF','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'產生\x20PDF\x20時發生錯誤。','PDF\x20export\x20started':'PDF\x20匯出開始','PDF\x20export\x20failed':'PDF\x20匯出失敗','PDF\x20export\x20successful':'PDF\x20匯出成功','Exporting\x20PDF\x20document':'正在匯出\x20PDF\x20文件'},'getPluralForm':_0x4e031c=>0x0}};_0x4cde31['zh']||={'dictionary':{},'getPluralForm':null},_0x4cde31['zh']['dictionary']=Object['assign'](_0x4cde31['zh']['dictionary'],_0x21f0a5),_0x4cde31['zh']['getPluralForm']=_0x4f6338;})(window['CKEDITOR_TRANSLATIONS']||={});
|
|
@@ -60,10 +60,11 @@ export interface ExportPdfConfig {
|
|
|
60
60
|
* ```
|
|
61
61
|
*
|
|
62
62
|
* **NOTE:** If `stylesheets` are not provided, the plugin will sent only
|
|
63
|
-
* {@glink
|
|
63
|
+
* {@glink getting-started/setup/css the default editor content styles}
|
|
64
|
+
* to the converter.
|
|
64
65
|
*
|
|
65
66
|
* **Default editor's content styles**:
|
|
66
|
-
* {@glink
|
|
67
|
+
* {@glink getting-started/setup/css The default editor content styles}
|
|
67
68
|
* are applied to the generated PDF thanks to the 'EDITOR_STYLES' token, which is provided to the `stylesheets` by default.
|
|
68
69
|
* If you don't want them to be applied, you have to omit the token:
|
|
69
70
|
*
|
|
@@ -211,7 +212,7 @@ export interface ExportPdfConfig {
|
|
|
211
212
|
appID?: string;
|
|
212
213
|
}
|
|
213
214
|
export type ExportPdfConverterOptions = {
|
|
214
|
-
format?: 'Letter' | 'Legal' | 'Tabloid' | 'Ledger' | 'A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6'
|
|
215
|
+
format?: 'Letter' | 'Legal' | 'Tabloid' | 'Ledger' | 'A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | string & Record<never, never>;
|
|
215
216
|
margin_top?: string;
|
|
216
217
|
margin_bottom?: string;
|
|
217
218
|
margin_right?: string;
|
|
@@ -219,7 +220,7 @@ export type ExportPdfConverterOptions = {
|
|
|
219
220
|
header_html?: string;
|
|
220
221
|
footer_html?: string;
|
|
221
222
|
header_and_footer_css?: string;
|
|
222
|
-
page_orientation?: 'portrait' | 'landscape'
|
|
223
|
+
page_orientation?: 'portrait' | 'landscape' | string & Record<never, never>;
|
|
223
224
|
wait_for_network?: boolean;
|
|
224
225
|
wait_time?: number;
|
|
225
226
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-export-pdf",
|
|
3
|
-
"version": "0.0.0-nightly-20240604.
|
|
3
|
+
"version": "0.0.0-nightly-20240604.1",
|
|
4
4
|
"description": "Export to PDF feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"type": "module",
|
|
31
31
|
"main": "src/index.js",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-20240604.
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20240604.1"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
package/src/exportpdf.d.ts
CHANGED
|
@@ -56,10 +56,11 @@ export interface ExportPdfConfig {
|
|
|
56
56
|
* ```
|
|
57
57
|
*
|
|
58
58
|
* **NOTE:** If `stylesheets` are not provided, the plugin will sent only
|
|
59
|
-
* {@glink
|
|
59
|
+
* {@glink getting-started/setup/css the default editor content styles}
|
|
60
|
+
* to the converter.
|
|
60
61
|
*
|
|
61
62
|
* **Default editor's content styles**:
|
|
62
|
-
* {@glink
|
|
63
|
+
* {@glink getting-started/setup/css The default editor content styles}
|
|
63
64
|
* are applied to the generated PDF thanks to the 'EDITOR_STYLES' token, which is provided to the `stylesheets` by default.
|
|
64
65
|
* If you don't want them to be applied, you have to omit the token:
|
|
65
66
|
*
|
|
@@ -207,7 +208,7 @@ export interface ExportPdfConfig {
|
|
|
207
208
|
appID?: string;
|
|
208
209
|
}
|
|
209
210
|
export type ExportPdfConverterOptions = {
|
|
210
|
-
format?: 'Letter' | 'Legal' | 'Tabloid' | 'Ledger' | 'A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6'
|
|
211
|
+
format?: 'Letter' | 'Legal' | 'Tabloid' | 'Ledger' | 'A0' | 'A1' | 'A2' | 'A3' | 'A4' | 'A5' | 'A6' | string & Record<never, never>;
|
|
211
212
|
margin_top?: string;
|
|
212
213
|
margin_bottom?: string;
|
|
213
214
|
margin_right?: string;
|
|
@@ -215,7 +216,7 @@ export type ExportPdfConverterOptions = {
|
|
|
215
216
|
header_html?: string;
|
|
216
217
|
footer_html?: string;
|
|
217
218
|
header_and_footer_css?: string;
|
|
218
|
-
page_orientation?: 'portrait' | 'landscape'
|
|
219
|
+
page_orientation?: 'portrait' | 'landscape' | string & Record<never, never>;
|
|
219
220
|
wait_for_network?: boolean;
|
|
220
221
|
wait_time?: number;
|
|
221
222
|
};
|
package/src/exportpdf.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
function _0x39d5(_0xccfca0,_0x778727){const _0x30ca24=_0x30ca();return _0x39d5=function(_0x39d5a3,_0x360d8b){_0x39d5a3=_0x39d5a3-0x6c;let _0x213bd8=_0x30ca24[_0x39d5a3];return _0x213bd8;},_0x39d5(_0xccfca0,_0x778727);}const _0x2f8221=_0x39d5;function _0x30ca(){const _0x24f20a=['2749264BuzkVJ','pluginName','editor','commands','9jKkSqu','467850OalRxI','get','_token','init','requires','add','1072368yEbcXV','ExportPdf','then','CloudServices','plugins','1409148XwATef','10MLOhCF','registerTokenUrl','101364ZopHhh','tokenUrl','519818zBhjwm','2723819owuhRT','config','exportPdf','token'];_0x30ca=function(){return _0x24f20a;};return _0x30ca();}(function(_0x2ad3d5,_0x2b6ed0){const _0x174bad=_0x39d5,_0x24341b=_0x2ad3d5();while(!![]){try{const _0x818086=parseInt(_0x174bad(0x7a))/0x1+-parseInt(_0x174bad(0x84))/0x2+-parseInt(_0x174bad(0x70))/0x3+parseInt(_0x174bad(0x78))/0x4*(-parseInt(_0x174bad(0x76))/0x5)+-parseInt(_0x174bad(0x75))/0x6+parseInt(_0x174bad(0x7b))/0x7+parseInt(_0x174bad(0x7f))/0x8*(parseInt(_0x174bad(0x83))/0x9);if(_0x818086===_0x2b6ed0)break;else _0x24341b['push'](_0x24341b['shift']());}catch(_0x29367c){_0x24341b['push'](_0x24341b['shift']());}}}(_0x30ca,0x5bb78));import{Plugin as _0x34d60b}from'ckeditor5/src/core.js';import{Notification as _0x12f63d}from'ckeditor5/src/ui.js';import _0x3d0c63 from'./exportpdfcommand.js';import _0x4f0977 from'./exportpdfui.js';export default class s extends _0x34d60b{static get[_0x2f8221(0x80)](){const _0x1bf930=_0x2f8221;return _0x1bf930(0x71);}static get[_0x2f8221(0x6e)](){const _0x5be1eb=_0x2f8221;return[_0x5be1eb(0x73),_0x12f63d,_0x4f0977];}[_0x2f8221(0x6d)](){const _0x4e2499=_0x2f8221,_0xa43bcf=this[_0x4e2499(0x81)],_0x4305c9=_0xa43bcf[_0x4e2499(0x7c)][_0x4e2499(0x85)](_0x4e2499(0x7d))||{};_0xa43bcf[_0x4e2499(0x82)][_0x4e2499(0x6f)](_0x4e2499(0x7d),new _0x3d0c63(_0xa43bcf));const _0x46e422=_0xa43bcf[_0x4e2499(0x74)][_0x4e2499(0x85)](_0x4e2499(0x73));!0x1===_0x4305c9[_0x4e2499(0x79)]?this[_0x4e2499(0x6c)]=null:_0x4305c9[_0x4e2499(0x79)]?_0x46e422[_0x4e2499(0x77)](_0x4305c9[_0x4e2499(0x79)])[_0x4e2499(0x72)](_0x9074c5=>{const _0x366b07=_0x4e2499;this[_0x366b07(0x6c)]=_0x9074c5;}):this[_0x4e2499(0x6c)]=_0x46e422[_0x4e2499(0x7e)];}}
|
package/src/exportpdfcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
23
|
+
import{Command as _0x59be99}from'ckeditor5/src/core.js';import{getStyles as _0xefeeaf}from'./utils.js';export default class o extends _0x59be99{constructor(_0x39a518){super(_0x39a518),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x4f52b7={}){const _0x101a53=this['editor'],t=_0x101a53['t'],_0x32f7d8=_0x4f52b7['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x5f33c6=_0x4f52b7['dataCallback']||(_0x2d1e96=>_0x2d1e96['data']['get']()),_0x5168dd=_0x101a53['plugins']['get']('ExportPdf'),_0x42e0cc=_0x4f52b7['token']||_0x5168dd['_token'];return this['isBusy']=!0x0,this['refresh'](),_0xefeeaf(_0x4f52b7['stylesheets']||['EDITOR_STYLES'])['then'](async _0xb2db0f=>{_0x101a53['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20started'));const _0x4cb3d2={'html':'<html>\x0a\x09\x09\x09\x09\x09\x09<head>\x0a\x09\x09\x09\x09\x09\x09\x09<title>CKEditor\x205\x20PDF\x20document</title>\x0a\x09\x09\x09\x09\x09\x09\x09<meta\x20charset=\x22utf-8\x22>\x0a\x09\x09\x09\x09\x09\x09</head>\x0a\x09\x09\x09\x09\x09\x09<body>\x0a\x09\x09\x09\x09\x09\x09\x09<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x101a53['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x5f33c6(_0x101a53)+'\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','css':_0xb2db0f,'options':_0x4f52b7['converterOptions']},_0x45591e={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x42e0cc?{'Authorization':_0x42e0cc['value']}:null,'x-cs-app-id':_0x4f52b7['appID']||'cke5'},'body':JSON['stringify'](_0x4cb3d2)};return window['fetch'](_0x32f7d8,_0x45591e)['then'](_0x346f68=>{if(0xc8!==_0x346f68['status'])throw _0x346f68;return _0x346f68['blob']();})['then'](_0xe2eaa=>{_0x101a53['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20successful'));const _0x547b5a='function'==typeof _0x4f52b7['fileName']?_0x4f52b7['fileName']():_0x4f52b7['fileName'];this['_downloadFile'](_0xe2eaa,_0x547b5a||'document.pdf');});})['catch'](_0xa3990f=>{const _0x194eb4=_0x101a53['plugins']['get']('Notification');throw _0x101a53['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x194eb4['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0xa3990f;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x5dbc70,_0x367770){const _0x5a3ef7=document['createElement']('a');_0x5a3ef7['href']=window['URL']['createObjectURL'](_0x5dbc70),_0x5a3ef7['download']=_0x367770,_0x5a3ef7['click'](),_0x5a3ef7['remove']();}}
|
package/src/exportpdfui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x87763f}from'ckeditor5/src/core.js';import{ButtonView as _0x27d39f,MenuBarMenuListItemButtonView as _0x186cf5,SpinnerView as _0x36c300}from'ckeditor5/src/ui.js';import _0x2ab981 from'../theme/icons/exportpdf.svg';export default class i extends _0x87763f{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x4ed882=this['editor'];_0x4ed882['ui']['componentFactory']['add']('exportPdf',()=>{const _0x26e40c=this['_createButton'](_0x27d39f),_0xc0e0ee=_0x4ed882['commands']['get']('exportPdf');return _0x26e40c['set']({'tooltip':!0x0}),_0x26e40c['bind']('isOn')['to'](_0xc0e0ee,'isBusy'),_0x26e40c;}),_0x4ed882['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x186cf5));}['_createButton'](_0x218742){const _0xef6a5=this['editor'],_0x5ec27c=_0xef6a5['config']['get']('exportPdf')||{},t=_0xef6a5['locale']['t'],_0x195292=_0xef6a5['commands']['get']('exportPdf'),_0x7dd667=new _0x218742(_0xef6a5['locale']),_0x144c12=new _0x36c300();return _0x7dd667['children']['add'](_0x144c12),_0x144c12['bind']('isVisible')['to'](_0x195292,'isBusy'),_0x7dd667['iconView']['bind']('isVisible')['to'](_0x195292,'isBusy',_0x238e31=>!_0x238e31),_0x7dd667['set']({'icon':_0x2ab981}),_0x7dd667['bind']('isEnabled')['to'](_0x195292,'isEnabled'),_0x7dd667['bind']('label')['to'](_0x195292,'isBusy',_0x3558fe=>t(_0x3558fe?'Exporting\x20PDF\x20document':'Export\x20to\x20PDF')),this['listenTo'](_0x7dd667,'execute',()=>{_0xef6a5['execute']('exportPdf',_0x5ec27c),_0xef6a5['editing']['view']['focus']();}),_0x7dd667;}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x491b(){var _0xa049e6=['1146330jbySmo','77643LhYHFe','3628915jTFVPw','2407722oveOQk','2442060OBekZi','7iWbJxM','1372260WTXiZi','1808VJMSXx','676781HnMNnF'];_0x491b=function(){return _0xa049e6;};return _0x491b();}(function(_0x306cdf,_0xd8fcf5){var _0x2112ce=_0x15b4,_0xcf5d99=_0x306cdf();while(!![]){try{var _0x56142e=-parseInt(_0x2112ce(0x1dd))/0x1+parseInt(_0x2112ce(0x1de))/0x2+-parseInt(_0x2112ce(0x1db))/0x3+-parseInt(_0x2112ce(0x1d9))/0x4+-parseInt(_0x2112ce(0x1d7))/0x5+parseInt(_0x2112ce(0x1d8))/0x6*(parseInt(_0x2112ce(0x1da))/0x7)+parseInt(_0x2112ce(0x1dc))/0x8*(parseInt(_0x2112ce(0x1df))/0x9);if(_0x56142e===_0xd8fcf5)break;else _0xcf5d99['push'](_0xcf5d99['shift']());}catch(_0x16871f){_0xcf5d99['push'](_0xcf5d99['shift']());}}}(_0x491b,0x6ec17));export{default as ExportPdf}from'./exportpdf.js';function _0x15b4(_0x39b4c9,_0x35673d){var _0x491b6f=_0x491b();return _0x15b4=function(_0x15b418,_0x2c72c0){_0x15b418=_0x15b418-0x1d7;var _0x2e9d64=_0x491b6f[_0x15b418];return _0x2e9d64;},_0x15b4(_0x39b4c9,_0x35673d);}import'./augmentation.js';
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x38fef4,_0x52180c){const _0x4a6fe8=_0x2432,_0x312df5=_0x38fef4();while(!![]){try{const _0x3af64a=-parseInt(_0x4a6fe8(0x13c))/0x1*(parseInt(_0x4a6fe8(0x129))/0x2)+-parseInt(_0x4a6fe8(0x12a))/0x3+parseInt(_0x4a6fe8(0x12d))/0x4*(-parseInt(_0x4a6fe8(0x140))/0x5)+parseInt(_0x4a6fe8(0x123))/0x6*(-parseInt(_0x4a6fe8(0x130))/0x7)+-parseInt(_0x4a6fe8(0x141))/0x8+parseInt(_0x4a6fe8(0x12e))/0x9*(-parseInt(_0x4a6fe8(0x128))/0xa)+-parseInt(_0x4a6fe8(0x125))/0xb*(-parseInt(_0x4a6fe8(0x131))/0xc);if(_0x3af64a===_0x52180c)break;else _0x312df5['push'](_0x312df5['shift']());}catch(_0x26d998){_0x312df5['push'](_0x312df5['shift']());}}}(_0x26af,0xca4ef));function _0x26af(){const _0x1d6a9e=['text','styleSheets','then','1344498SBKTTF','cssText','warn','EDITOR_STYLES','40WXQmlQ','8489216GwCZIr','data-cke','push','1788fRuDIg','cssRules','9894929zFHmgU','all','length','1575180iwunKd','2iOTOwX','2784900cApPWx','The\x20editor\x20stylesheet\x20could\x20not\x20be\x20found\x20in\x20the\x20document.\x20Check\x20your\x20webpack\x20config\x20–\x20style-loader\x20should\x20use\x20data-cke=true\x20attribute\x20for\x20the\x20editor\x20stylesheet.',':root','650108VNLFNU','72JjCdNa','join','32249ODjSXB','108ofobus','hasAttribute','from','fetch','.ck-content','ownerNode','trim','indexOf'];_0x26af=function(){return _0x1d6a9e;};return _0x26af();}export function getStyles(_0x3ad1dd){const _0x35d887=_0x2432;if(!_0x3ad1dd)return new Promise(_0x469811=>_0x469811(''));const _0x2b305a=[];for(const _0x1f431d of _0x3ad1dd)_0x35d887(0x13f)!==_0x1f431d?_0x2b305a[_0x35d887(0x122)](window[_0x35d887(0x134)](_0x1f431d)[_0x35d887(0x13b)](_0x353265=>_0x353265[_0x35d887(0x139)]())):_0x2b305a[_0x35d887(0x122)](f());return Promise[_0x35d887(0x126)](_0x2b305a)[_0x35d887(0x13b)](_0xe80c17=>_0xe80c17[_0x35d887(0x12f)]('\x20')[_0x35d887(0x137)]());}function _0x2432(_0x50bcc1,_0x247a84){const _0x26af2a=_0x26af();return _0x2432=function(_0x2432a2,_0x2bad38){_0x2432a2=_0x2432a2-0x121;let _0x392153=_0x26af2a[_0x2432a2];return _0x392153;},_0x2432(_0x50bcc1,_0x247a84);}function f(){const _0x3a4e1c=_0x2432,_0x56d399=[],_0x4c3190=[];for(const _0x514df6 of Array[_0x3a4e1c(0x133)](document[_0x3a4e1c(0x13a)])){if(_0x514df6[_0x3a4e1c(0x136)][_0x3a4e1c(0x132)](_0x3a4e1c(0x121))){for(const _0x29064a of Array[_0x3a4e1c(0x133)](_0x514df6[_0x3a4e1c(0x124)]))-0x1!==_0x29064a[_0x3a4e1c(0x13d)][_0x3a4e1c(0x138)](_0x3a4e1c(0x135))?_0x56d399[_0x3a4e1c(0x122)](_0x29064a[_0x3a4e1c(0x13d)]):-0x1!==_0x29064a[_0x3a4e1c(0x13d)][_0x3a4e1c(0x138)](_0x3a4e1c(0x12c))&&_0x4c3190[_0x3a4e1c(0x122)](_0x29064a[_0x3a4e1c(0x13d)]);}}return _0x56d399[_0x3a4e1c(0x127)]||console[_0x3a4e1c(0x13e)](_0x3a4e1c(0x12b)),[..._0x4c3190,..._0x56d399][_0x3a4e1c(0x12f)]('\x20')[_0x3a4e1c(0x137)]();}
|