@ckeditor/ckeditor5-export-word 31.0.0 → 33.0.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/LICENSE.md CHANGED
@@ -2,7 +2,7 @@ Software License Agreement
2
2
  ==========================
3
3
 
4
4
  **CKEditor 5 export to Docs feature** (https://ckeditor.com/ckeditor-5/)<br>
5
- Copyright (c) 2003-2021, [CKSource](https://cksource.com) Frederico Knabben. All rights reserved.
5
+ Copyright (c) 2003-2022, [CKSource](https://cksource.com) Holding sp. z o.o. All rights reserved.
6
6
 
7
7
  CKEditor 5 export to Word feature is licensed under a commercial license and is protected by copyright law.
8
8
  For more details about available licensing options please contact us at sales@cksource.com.
@@ -15,4 +15,4 @@ Where not otherwise indicated, all CKEditor 5 export to Word feature content is
15
15
  Trademarks
16
16
  ----------
17
17
 
18
- **CKEditor** is a trademark of [CKSource](https://cksource.com) Frederico Knabben. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
18
+ **CKEditor** is a trademark of [CKSource](https://cksource.com) Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
package/README.md CHANGED
@@ -29,11 +29,11 @@ As a licensed CKEditor 5 export to Word feature user you can report bugs and req
29
29
  ## License
30
30
 
31
31
  **CKEditor 5 export to Word** (https://ckeditor.com/ckeditor-5/)<br>
32
- Copyright (c) 2003-2021, [CKSource](https://cksource.com) Frederico Knabben. All rights reserved.
32
+ Copyright (c) 2003-2022, [CKSource](https://cksource.com) Holding sp. z o.o. All rights reserved.
33
33
 
34
34
  CKEditor 5 export to Word feature is licensed under a commercial license and is protected by copyright law.
35
35
  For more details about available licensing options please contact us at sales@cksource.com.
36
36
 
37
37
  ### Trademarks
38
38
 
39
- **CKEditor** is a trademark of [CKSource](https://cksource.com) Frederico Knabben. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
39
+ **CKEditor** is a trademark of [CKSource](https://cksource.com) Holding sp. z o.o. All other brand and product names are trademarks, registered trademarks or service marks of their respective holders.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-word",
3
- "version": "31.0.0",
3
+ "version": "33.0.0",
4
4
  "description": "Export to Word feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -29,36 +29,38 @@
29
29
  ],
30
30
  "main": "src/index.js",
31
31
  "dependencies": {
32
- "ckeditor5": ">=25.0.0"
32
+ "ckeditor5": "^33.0.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@ckeditor/ckeditor5-alignment": ">=25.0.0",
36
- "@ckeditor/ckeditor5-basic-styles": ">=25.0.0",
37
- "@ckeditor/ckeditor5-cloud-services": ">=25.0.0",
38
- "@ckeditor/ckeditor5-code-block": ">=25.0.0",
39
- "@ckeditor/ckeditor5-collaboration-core": ">=25.0.0",
40
- "@ckeditor/ckeditor5-comments": ">=25.0.0",
41
- "@ckeditor/ckeditor5-core": ">=25.0.0",
42
- "@ckeditor/ckeditor5-dev-utils": "^25.4.0",
43
- "@ckeditor/ckeditor5-easy-image": ">=25.0.0",
44
- "@ckeditor/ckeditor5-editor-decoupled": ">=25.0.0",
45
- "@ckeditor/ckeditor5-font": ">=25.0.0",
46
- "@ckeditor/ckeditor5-heading": ">=25.0.0",
47
- "@ckeditor/ckeditor5-horizontal-line": ">=25.0.0",
48
- "@ckeditor/ckeditor5-image": ">=25.0.0",
49
- "@ckeditor/ckeditor5-indent": ">=25.0.0",
50
- "@ckeditor/ckeditor5-page-break": ">=25.0.0",
51
- "@ckeditor/ckeditor5-paragraph": ">=25.0.0",
52
- "@ckeditor/ckeditor5-table": ">=25.0.0",
53
- "@ckeditor/ckeditor5-theme-lark": ">=25.0.0",
54
- "@ckeditor/ckeditor5-track-changes": ">=25.0.0",
55
- "@ckeditor/ckeditor5-ui": ">=25.0.0",
56
- "@ckeditor/ckeditor5-utils": ">=25.0.0",
57
- "webpack": "^4.43.0",
58
- "webpack-cli": "^3.3.11"
35
+ "@ckeditor/ckeditor5-alignment": "^33.0.0",
36
+ "@ckeditor/ckeditor5-autoformat": "^33.0.0",
37
+ "@ckeditor/ckeditor5-basic-styles": "^33.0.0",
38
+ "@ckeditor/ckeditor5-cloud-services": "^33.0.0",
39
+ "@ckeditor/ckeditor5-code-block": "^33.0.0",
40
+ "@ckeditor/ckeditor5-collaboration-core": "^33.0.0",
41
+ "@ckeditor/ckeditor5-comments": "^33.0.0",
42
+ "@ckeditor/ckeditor5-core": "^33.0.0",
43
+ "@ckeditor/ckeditor5-dev-utils": "^28.0.1",
44
+ "@ckeditor/ckeditor5-easy-image": "^33.0.0",
45
+ "@ckeditor/ckeditor5-editor-decoupled": "^33.0.0",
46
+ "@ckeditor/ckeditor5-font": "^33.0.0",
47
+ "@ckeditor/ckeditor5-heading": "^33.0.0",
48
+ "@ckeditor/ckeditor5-horizontal-line": "^33.0.0",
49
+ "@ckeditor/ckeditor5-image": "^33.0.0",
50
+ "@ckeditor/ckeditor5-indent": "^33.0.0",
51
+ "@ckeditor/ckeditor5-list": "^33.0.0",
52
+ "@ckeditor/ckeditor5-page-break": "^33.0.0",
53
+ "@ckeditor/ckeditor5-paragraph": "^33.0.0",
54
+ "@ckeditor/ckeditor5-table": "^33.0.0",
55
+ "@ckeditor/ckeditor5-theme-lark": "^33.0.0",
56
+ "@ckeditor/ckeditor5-track-changes": "^33.0.0",
57
+ "@ckeditor/ckeditor5-ui": "^33.0.0",
58
+ "@ckeditor/ckeditor5-utils": "^33.0.0",
59
+ "webpack": "^5.58.1",
60
+ "webpack-cli": "^4.9.0"
59
61
  },
60
62
  "engines": {
61
- "node": ">=12.0.0",
63
+ "node": ">=14.0.0",
62
64
  "npm": ">=5.7.1"
63
65
  },
64
66
  "license": "SEE LICENSE IN LICENSE.md",
package/src/exportword.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1b7a25}from'ckeditor5/src/core';import{ButtonView as _0x54ae54,View as _0x1885cb,Notification as _0x566388}from'ckeditor5/src/ui';import _0x1081ae from'./exportwordcommand';import _0x8267f5 from'../theme/icons/exportword.svg';import'../theme/exportword.css';export default class c extends _0x1b7a25{static get['pluginName'](){return'ExportWord';}static get['requires'](){return['CloudServices',_0x566388];}['init'](){const _0x5a4a39=this['editor'],t=_0x5a4a39['t'],_0x170e86=_0x5a4a39['config']['get']('exportWord')||{};_0x5a4a39['commands']['add']('exportWord',new _0x1081ae(_0x5a4a39)),_0x5a4a39['ui']['componentFactory']['add']('exportWord',_0x2ad38a=>{const _0x2530c4=_0x5a4a39['commands']['get']('exportWord'),_0x1c3657=new _0x54ae54(_0x2ad38a);_0x1c3657['set']({'label':t('Export\x20to\x20Word'),'icon':_0x8267f5,'tooltip':!0x0}),_0x1c3657['bind']('isOn','isEnabled')['to'](_0x2530c4,'isBusy','isEnabled'),_0x1c3657['extendTemplate']({'attributes':{'class':[_0x1c3657['bindTemplate']['if']('isOn','ck-exportword_status-pending')]}});const _0x100b86=new _0x1885cb();return _0x100b86['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-exportword__spinner-container']},'children':[{'tag':'span','attributes':{'class':['ck','ck-exportword__spinner']}}]}),_0x1c3657['children']['add'](_0x100b86),this['listenTo'](_0x1c3657,'execute',()=>{_0x5a4a39['execute']('exportWord',_0x170e86),_0x5a4a39['editing']['view']['focus']();}),_0x1c3657;});const _0x2f4248=_0x5a4a39['plugins']['get']('CloudServices');if(!0x1===_0x170e86['tokenUrl'])this['_token']=null;else{if(_0x170e86['tokenUrl'])return _0x2f4248['registerTokenUrl'](_0x170e86['tokenUrl'])['then'](_0x413cd4=>{this['_token']=_0x413cd4;});this['_token']=_0x2f4248['token'];}}}
23
+ import{Plugin as _0x43a328}from'ckeditor5/src/core';import{ButtonView as _0x4fcfd3,View as _0x222e0b,Notification as _0x488493}from'ckeditor5/src/ui';import _0x4d0e72 from'./exportwordcommand';import _0x1c3578 from'../theme/icons/exportword.svg';import'../theme/exportword.css';export default class c extends _0x43a328{static get['pluginName'](){return'ExportWord';}static get['requires'](){return['CloudServices',_0x488493];}['init'](){const _0x541484=this['editor'],t=_0x541484['t'],_0x173e40=_0x541484['config']['get']('exportWord')||{};_0x541484['commands']['add']('exportWord',new _0x4d0e72(_0x541484)),_0x541484['ui']['componentFactory']['add']('exportWord',_0x4969e3=>{const _0x1aa1ec=_0x541484['commands']['get']('exportWord'),_0xe0c5fe=new _0x4fcfd3(_0x4969e3);_0xe0c5fe['set']({'label':t('Export\x20to\x20Word'),'icon':_0x1c3578,'tooltip':!0x0}),_0xe0c5fe['bind']('isOn','isEnabled')['to'](_0x1aa1ec,'isBusy','isEnabled'),_0xe0c5fe['extendTemplate']({'attributes':{'class':[_0xe0c5fe['bindTemplate']['if']('isOn','ck-exportword_status-pending')]}});const _0x3a5f06=new _0x222e0b();return _0x3a5f06['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-exportword__spinner-container']},'children':[{'tag':'span','attributes':{'class':['ck','ck-exportword__spinner']}}]}),_0xe0c5fe['children']['add'](_0x3a5f06),this['listenTo'](_0xe0c5fe,'execute',()=>{_0x541484['execute']('exportWord',_0x173e40),_0x541484['editing']['view']['focus']();}),_0xe0c5fe;});const _0x306c89=_0x541484['plugins']['get']('CloudServices');if(!0x1===_0x173e40['tokenUrl'])this['_token']=null;else{if(_0x173e40['tokenUrl'])return _0x306c89['registerTokenUrl'](_0x173e40['tokenUrl'])['then'](_0x1b185c=>{this['_token']=_0x1b185c;});this['_token']=_0x306c89['token'];}}}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x1c738f}from'ckeditor5/src/core';import{getStyles as _0x5c7075,getConverterOptions as _0x23ac4a}from'./utils';export default class i extends _0x1c738f{constructor(_0x1f62fc){super(_0x1f62fc),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x194ca4={}){const _0x18dff6=this['editor'],t=_0x18dff6['t'],_0x37add2=_0x194ca4['converterUrl']||'https://docx-converter.cke-cs.com/v1/convert',_0x2e6bec=_0x194ca4['converterOptions']||{},_0x412947=_0x18dff6['plugins']['get']('ExportWord'),_0x15a1f7=_0x194ca4['token']||_0x412947['_token'],_0x5e8c8b=!0x1!==_0x2e6bec['auto_pagination'],_0x1a4b2b=_0x194ca4['dataCallback']||(_0x53015f=>_0x53015f['getData']({'pagination':_0x5e8c8b}));return this['isBusy']=!0x0,this['refresh'](),_0x5c7075(_0x194ca4['stylesheets']||['EDITOR_STYLES'])['then'](_0x5b76ab=>{const _0x55aec2=_0x1a4b2b(_0x18dff6),_0x5d6a7e={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x18dff6['locale']['contentLanguageDirection']+'\x22>'+_0x55aec2+'</div>','css':_0x5b76ab,'options':{..._0x2e6bec,..._0x23ac4a(_0x18dff6)}},_0x5e86d0={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x15a1f7?{'Authorization':_0x15a1f7['value']}:null},'body':JSON['stringify'](_0x5d6a7e)};return window['fetch'](_0x37add2,_0x5e86d0)['then'](_0x1817d7=>{if(0xc8!==_0x1817d7['status'])throw _0x1817d7;return _0x1817d7['blob']();})['then'](_0x5b1820=>{this['o'](_0x5b1820,_0x194ca4['fileName']||'document.docx');});})['catch'](_0x18a824=>{throw _0x18dff6['plugins']['get']('Notification')['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x18a824;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['o'](_0x5954f9,_0x298f5a){const _0x4795be=document['createElement']('a');_0x4795be['href']=window['URL']['createObjectURL'](_0x5954f9),_0x4795be['download']=_0x298f5a,_0x4795be['click'](),_0x4795be['remove']();}}
23
+ import{Command as _0x47fe31}from'ckeditor5/src/core';import{getStyles as _0x21da73,getConverterOptions as _0x45bd87}from'./utils';export default class i extends _0x47fe31{constructor(_0x39fc0d){super(_0x39fc0d),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x3b11e1={}){const _0x37d3c1=this['editor'],t=_0x37d3c1['t'],_0x564498=_0x3b11e1['converterUrl']||'https://docx-converter.cke-cs.com/v1/convert',_0x10fe16=_0x3b11e1['converterOptions']||{},_0x1fcc01=_0x37d3c1['plugins']['get']('ExportWord'),_0x551cc7=_0x3b11e1['token']||_0x1fcc01['_token'],_0x15481d=!0x1!==_0x10fe16['auto_pagination'],_0x572f9b=_0x3b11e1['dataCallback']||(_0x190acf=>_0x190acf['getData']({'pagination':_0x15481d}));return this['isBusy']=!0x0,this['refresh'](),_0x21da73(_0x3b11e1['stylesheets']||['EDITOR_STYLES'])['then'](_0x2bd12d=>{const _0x40aeee=_0x572f9b(_0x37d3c1),_0x27744d={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x37d3c1['locale']['contentLanguageDirection']+'\x22>'+_0x40aeee+'</div>','css':_0x2bd12d,'options':{..._0x10fe16,..._0x45bd87(_0x37d3c1)}},_0x3283c6={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x551cc7?{'Authorization':_0x551cc7['value']}:null},'body':JSON['stringify'](_0x27744d)};return window['fetch'](_0x564498,_0x3283c6)['then'](_0x147881=>{if(0xc8!==_0x147881['status'])throw _0x147881;return _0x147881['blob']();})['then'](_0x25d393=>{this['o'](_0x25d393,_0x3b11e1['fileName']||'document.docx');});})['catch'](_0x5389f2=>{throw _0x37d3c1['plugins']['get']('Notification')['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x5389f2;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['o'](_0x1c4818,_0x4e335a){const _0x4091ca=document['createElement']('a');_0x4091ca['href']=window['URL']['createObjectURL'](_0x1c4818),_0x4091ca['download']=_0x4e335a,_0x4091ca['click'](),_0x4091ca['remove']();}}
package/src/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
package/src/utils.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2016 - 2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2016 - 2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  *
4
4
  *
5
5
  *
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x49d5=['get','text','.ck-content','plugins','content','cssText','push','Users','data-cke','fetch','suggestions','trim','warn','timeZone','join','hasAttribute','getSuggestions',':root','name','DateTimeFormat','has','styleSheets','comments','TrackChanges','then','timezone','map','length','authorId','all','cssRules','author'];(function(_0x4d9b48,_0x49d5fd){const _0x39dd00=function(_0x48f75c){while(--_0x48f75c){_0x4d9b48['push'](_0x4d9b48['shift']());}};_0x39dd00(++_0x49d5fd);}(_0x49d5,0x1aa));const _0x39dd=function(_0x4d9b48,_0x49d5fd){_0x4d9b48=_0x4d9b48-0x0;let _0x39dd00=_0x49d5[_0x4d9b48];return _0x39dd00;};export function getStyles(_0x477c9d){if(!_0x477c9d)return new Promise(_0x31fb1c=>_0x31fb1c(''));const _0x17a18c=[];for(const _0x42cbd7 of _0x477c9d)'EDITOR_STYLES'!==_0x42cbd7?_0x17a18c[_0x39dd('0x1c')](window[_0x39dd('0x1f')](_0x42cbd7)[_0x39dd('0xe')](_0x56b3bc=>_0x56b3bc[_0x39dd('0x17')]())):_0x17a18c[_0x39dd('0x1c')](u());return Promise[_0x39dd('0x13')](_0x17a18c)['then'](_0x295244=>_0x295244[_0x39dd('0x4')]('\x20')[_0x39dd('0x1')]());}function u(){const _0xbd17e1=[],_0x4a4d8b=[];for(const _0x51661c of document[_0x39dd('0xb')])if(_0x51661c['ownerNode'][_0x39dd('0x5')](_0x39dd('0x1e')))for(const _0x28086f of _0x51661c[_0x39dd('0x14')])-0x1!==_0x28086f[_0x39dd('0x1b')]['indexOf'](_0x39dd('0x18'))?_0xbd17e1[_0x39dd('0x1c')](_0x28086f[_0x39dd('0x1b')]):-0x1!==_0x28086f[_0x39dd('0x1b')]['indexOf'](_0x39dd('0x7'))&&_0x4a4d8b[_0x39dd('0x1c')](_0x28086f[_0x39dd('0x1b')]);return _0xbd17e1[_0x39dd('0x11')]||console[_0x39dd('0x2')]('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.'),[..._0x4a4d8b,..._0xbd17e1]['join']('\x20')[_0x39dd('0x1')]();}export function getConverterOptions(_0x59951e){const _0x386074=_0x59951e[_0x39dd('0x19')][_0x39dd('0xa')]('Users'),_0x2fbb25=_0x59951e[_0x39dd('0x19')][_0x39dd('0xa')]('CommentsRepository'),_0x4ecbf7=_0x59951e[_0x39dd('0x19')][_0x39dd('0xa')](_0x39dd('0xd')),_0x366e5a={};if(_0x386074&&_0x2fbb25){const _0x55f1e3=getComments(_0x59951e['plugins'][_0x39dd('0x16')]('CommentsRepository')['getCommentThreads']({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object['keys'](_0x55f1e3)['length']&&(_0x366e5a[_0x39dd('0xc')]=_0x55f1e3);}if(_0x386074&&_0x4ecbf7){const _0x2daeff=_0x59951e[_0x39dd('0x19')][_0x39dd('0x16')](_0x39dd('0xd')),_0x24389c=_0x59951e['plugins'][_0x39dd('0x16')](_0x39dd('0x1d')),_0x162971=getSuggestions(_0x2daeff[_0x39dd('0x6')]({'toJSON':!0x0}),_0x24389c['users']);Object['keys'](_0x162971)[_0x39dd('0x11')]&&(_0x366e5a[_0x39dd('0x0')]=_0x162971);}return(_0x366e5a[_0x39dd('0x0')]||_0x366e5a[_0x39dd('0xc')])&&(_0x366e5a[_0x39dd('0xf')]=new Intl[(_0x39dd('0x9'))]()['resolvedOptions']()[_0x39dd('0x3')]),_0x366e5a;}export function getComments(_0x443366){const _0x5a2c26={};if(!_0x443366[_0x39dd('0x11')])return _0x5a2c26;for(const _0x2cced9 of _0x443366)_0x2cced9['comments'][_0x39dd('0x10')](_0x4166b3=>{void 0x0===_0x5a2c26[_0x2cced9['id']]&&(_0x5a2c26[_0x2cced9['id']]=[]),_0x5a2c26[_0x2cced9['id']][_0x39dd('0x1c')]({'author':_0x4166b3[_0x39dd('0x15')][_0x39dd('0x8')],'content':_0x4166b3[_0x39dd('0x1a')],'created':_0x4166b3['createdAt']});});return _0x5a2c26;}export function getSuggestions(_0x107a6b,_0x5973d8){const _0x40741e={};if(!_0x107a6b[_0x39dd('0x11')]||!_0x5973d8[_0x39dd('0x11')])return _0x40741e;for(const _0x5e83db of _0x107a6b)_0x40741e[_0x5e83db['id']]={'author':_0x5973d8['get'](_0x5e83db[_0x39dd('0x12')])[_0x39dd('0x8')],'created':_0x5e83db['createdAt']};return _0x40741e;}
23
+ const _0x33f7=['timezone','DateTimeFormat','has','keys','trim','users','plugins','get','join','getSuggestions','data-cke','ownerNode','resolvedOptions','cssText','comments','then','fetch','Users','TrackChanges','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.','.ck-content','getCommentThreads','indexOf','CommentsRepository','warn','length','name',':root','content','push','createdAt','suggestions','cssRules','text','all','map'];(function(_0x35936d,_0x33f7c1){const _0x23366e=function(_0x25ff13){while(--_0x25ff13){_0x35936d['push'](_0x35936d['shift']());}};_0x23366e(++_0x33f7c1);}(_0x33f7,0x145));const _0x2336=function(_0x35936d,_0x33f7c1){_0x35936d=_0x35936d-0x0;let _0x23366e=_0x33f7[_0x35936d];return _0x23366e;};export function getStyles(_0x252655){if(!_0x252655)return new Promise(_0x2e8820=>_0x2e8820(''));const _0x22e0b1=[];for(const _0x3f7cd9 of _0x252655)'EDITOR_STYLES'!==_0x3f7cd9?_0x22e0b1[_0x2336('0x1c')](window[_0x2336('0xf')](_0x3f7cd9)[_0x2336('0xe')](_0x2f622f=>_0x2f622f[_0x2336('0x20')]())):_0x22e0b1[_0x2336('0x1c')](u());return Promise[_0x2336('0x21')](_0x22e0b1)[_0x2336('0xe')](_0x4118ab=>_0x4118ab[_0x2336('0x7')]('\x20')[_0x2336('0x3')]());}function u(){const _0x3ca971=[],_0x3db5e1=[];for(const _0x46a007 of document['styleSheets'])if(_0x46a007[_0x2336('0xa')]['hasAttribute'](_0x2336('0x9')))for(const _0x3b56b3 of _0x46a007[_0x2336('0x1f')])-0x1!==_0x3b56b3[_0x2336('0xc')][_0x2336('0x15')](_0x2336('0x13'))?_0x3ca971[_0x2336('0x1c')](_0x3b56b3['cssText']):-0x1!==_0x3b56b3['cssText']['indexOf'](_0x2336('0x1a'))&&_0x3db5e1[_0x2336('0x1c')](_0x3b56b3[_0x2336('0xc')]);return _0x3ca971['length']||console[_0x2336('0x17')](_0x2336('0x12')),[..._0x3db5e1,..._0x3ca971][_0x2336('0x7')]('\x20')[_0x2336('0x3')]();}export function getConverterOptions(_0x1f8bbf){const _0x4c36fc=_0x1f8bbf[_0x2336('0x5')]['has'](_0x2336('0x10')),_0x5371af=_0x1f8bbf[_0x2336('0x5')][_0x2336('0x1')]('CommentsRepository'),_0x25fb04=_0x1f8bbf[_0x2336('0x5')][_0x2336('0x1')](_0x2336('0x11')),_0x4aa937={};if(_0x4c36fc&&_0x5371af){const _0x3eb438=getComments(_0x1f8bbf['plugins'][_0x2336('0x6')](_0x2336('0x16'))[_0x2336('0x14')]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x2336('0x2')](_0x3eb438)[_0x2336('0x18')]&&(_0x4aa937[_0x2336('0xd')]=_0x3eb438);}if(_0x4c36fc&&_0x25fb04){const _0x230ba1=_0x1f8bbf['plugins'][_0x2336('0x6')](_0x2336('0x11')),_0x6526fd=_0x1f8bbf[_0x2336('0x5')]['get'](_0x2336('0x10')),_0x15b82e=getSuggestions(_0x230ba1[_0x2336('0x8')]({'toJSON':!0x0}),_0x6526fd[_0x2336('0x4')]);Object[_0x2336('0x2')](_0x15b82e)[_0x2336('0x18')]&&(_0x4aa937[_0x2336('0x1e')]=_0x15b82e);}return(_0x4aa937[_0x2336('0x1e')]||_0x4aa937[_0x2336('0xd')])&&(_0x4aa937[_0x2336('0x23')]=new Intl[(_0x2336('0x0'))]()[_0x2336('0xb')]()['timeZone']),_0x4aa937;}export function getComments(_0x5ab2ed){const _0x2d2d5b={};if(!_0x5ab2ed[_0x2336('0x18')])return _0x2d2d5b;for(const _0x47f936 of _0x5ab2ed)_0x47f936[_0x2336('0xd')][_0x2336('0x22')](_0x550c86=>{void 0x0===_0x2d2d5b[_0x47f936['id']]&&(_0x2d2d5b[_0x47f936['id']]=[]),_0x2d2d5b[_0x47f936['id']][_0x2336('0x1c')]({'author':_0x550c86['author'][_0x2336('0x19')],'content':_0x550c86[_0x2336('0x1b')],'created':_0x550c86[_0x2336('0x1d')]});});return _0x2d2d5b;}export function getSuggestions(_0x40dc08,_0x50323f){const _0x178f85={};if(!_0x40dc08[_0x2336('0x18')]||!_0x50323f[_0x2336('0x18')])return _0x178f85;for(const _0x450dc4 of _0x40dc08)_0x178f85[_0x450dc4['id']]={'author':_0x50323f[_0x2336('0x6')](_0x450dc4['authorId'])[_0x2336('0x19')],'created':_0x450dc4[_0x2336('0x1d')]};return _0x178f85;}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
2
+ * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.
3
3
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
4
  */
5
5