@ckeditor/ckeditor5-export-word 32.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-export-word",
3
- "version": "32.0.0",
3
+ "version": "33.0.0",
4
4
  "description": "Export to Word feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -29,31 +29,33 @@
29
29
  ],
30
30
  "main": "src/index.js",
31
31
  "dependencies": {
32
- "ckeditor5": "^32.0.0"
32
+ "ckeditor5": "^33.0.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@ckeditor/ckeditor5-alignment": "^32.0.0",
36
- "@ckeditor/ckeditor5-basic-styles": "^32.0.0",
37
- "@ckeditor/ckeditor5-cloud-services": "^32.0.0",
38
- "@ckeditor/ckeditor5-code-block": "^32.0.0",
39
- "@ckeditor/ckeditor5-collaboration-core": "^32.0.0",
40
- "@ckeditor/ckeditor5-comments": "^32.0.0",
41
- "@ckeditor/ckeditor5-core": "^32.0.0",
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",
42
43
  "@ckeditor/ckeditor5-dev-utils": "^28.0.1",
43
- "@ckeditor/ckeditor5-easy-image": "^32.0.0",
44
- "@ckeditor/ckeditor5-editor-decoupled": "^32.0.0",
45
- "@ckeditor/ckeditor5-font": "^32.0.0",
46
- "@ckeditor/ckeditor5-heading": "^32.0.0",
47
- "@ckeditor/ckeditor5-horizontal-line": "^32.0.0",
48
- "@ckeditor/ckeditor5-image": "^32.0.0",
49
- "@ckeditor/ckeditor5-indent": "^32.0.0",
50
- "@ckeditor/ckeditor5-page-break": "^32.0.0",
51
- "@ckeditor/ckeditor5-paragraph": "^32.0.0",
52
- "@ckeditor/ckeditor5-table": "^32.0.0",
53
- "@ckeditor/ckeditor5-theme-lark": "^32.0.0",
54
- "@ckeditor/ckeditor5-track-changes": "^32.0.0",
55
- "@ckeditor/ckeditor5-ui": "^32.0.0",
56
- "@ckeditor/ckeditor5-utils": "^32.0.0",
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",
57
59
  "webpack": "^5.58.1",
58
60
  "webpack-cli": "^4.9.0"
59
61
  },
package/src/exportword.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x151b24}from'ckeditor5/src/core';import{ButtonView as _0x20a137,View as _0x57ff31,Notification as _0x465e86}from'ckeditor5/src/ui';import _0x967f39 from'./exportwordcommand';import _0x5f2acd from'../theme/icons/exportword.svg';import'../theme/exportword.css';export default class c extends _0x151b24{static get['pluginName'](){return'ExportWord';}static get['requires'](){return['CloudServices',_0x465e86];}['init'](){const _0x1484fe=this['editor'],t=_0x1484fe['t'],_0x4ef749=_0x1484fe['config']['get']('exportWord')||{};_0x1484fe['commands']['add']('exportWord',new _0x967f39(_0x1484fe)),_0x1484fe['ui']['componentFactory']['add']('exportWord',_0x404698=>{const _0x1012a7=_0x1484fe['commands']['get']('exportWord'),_0x53523b=new _0x20a137(_0x404698);_0x53523b['set']({'label':t('Export\x20to\x20Word'),'icon':_0x5f2acd,'tooltip':!0x0}),_0x53523b['bind']('isOn','isEnabled')['to'](_0x1012a7,'isBusy','isEnabled'),_0x53523b['extendTemplate']({'attributes':{'class':[_0x53523b['bindTemplate']['if']('isOn','ck-exportword_status-pending')]}});const _0x45aab3=new _0x57ff31();return _0x45aab3['setTemplate']({'tag':'span','attributes':{'class':['ck','ck-exportword__spinner-container']},'children':[{'tag':'span','attributes':{'class':['ck','ck-exportword__spinner']}}]}),_0x53523b['children']['add'](_0x45aab3),this['listenTo'](_0x53523b,'execute',()=>{_0x1484fe['execute']('exportWord',_0x4ef749),_0x1484fe['editing']['view']['focus']();}),_0x53523b;});const _0x5a7f96=_0x1484fe['plugins']['get']('CloudServices');if(!0x1===_0x4ef749['tokenUrl'])this['_token']=null;else{if(_0x4ef749['tokenUrl'])return _0x5a7f96['registerTokenUrl'](_0x4ef749['tokenUrl'])['then'](_0x34faa5=>{this['_token']=_0x34faa5;});this['_token']=_0x5a7f96['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'];}}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x4ecde6}from'ckeditor5/src/core';import{getStyles as _0x3bc817,getConverterOptions as _0x113d3f}from'./utils';export default class i extends _0x4ecde6{constructor(_0x121005){super(_0x121005),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x215bf7={}){const _0x28b6c6=this['editor'],t=_0x28b6c6['t'],_0x11f547=_0x215bf7['converterUrl']||'https://docx-converter.cke-cs.com/v1/convert',_0x2e2789=_0x215bf7['converterOptions']||{},_0x52ce3c=_0x28b6c6['plugins']['get']('ExportWord'),_0x4e9725=_0x215bf7['token']||_0x52ce3c['_token'],_0x52a9d8=!0x1!==_0x2e2789['auto_pagination'],_0x2d45e6=_0x215bf7['dataCallback']||(_0xf262d=>_0xf262d['getData']({'pagination':_0x52a9d8}));return this['isBusy']=!0x0,this['refresh'](),_0x3bc817(_0x215bf7['stylesheets']||['EDITOR_STYLES'])['then'](_0x33a912=>{const _0x3bb2d4=_0x2d45e6(_0x28b6c6),_0x468692={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x28b6c6['locale']['contentLanguageDirection']+'\x22>'+_0x3bb2d4+'</div>','css':_0x33a912,'options':{..._0x2e2789,..._0x113d3f(_0x28b6c6)}},_0x1ce0d9={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0x4e9725?{'Authorization':_0x4e9725['value']}:null},'body':JSON['stringify'](_0x468692)};return window['fetch'](_0x11f547,_0x1ce0d9)['then'](_0x1bcc50=>{if(0xc8!==_0x1bcc50['status'])throw _0x1bcc50;return _0x1bcc50['blob']();})['then'](_0x34e461=>{this['o'](_0x34e461,_0x215bf7['fileName']||'document.docx');});})['catch'](_0x45c691=>{throw _0x28b6c6['plugins']['get']('Notification')['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x45c691;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['o'](_0x4b15d3,_0x2f6f86){const _0x57c245=document['createElement']('a');_0x57c245['href']=window['URL']['createObjectURL'](_0x4b15d3),_0x57c245['download']=_0x2f6f86,_0x57c245['click'](),_0x57c245['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
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- var _0x54c3=['./exportword'];(function(_0x18b0c6,_0x54c3d8){var _0x4e7abe=function(_0x37f797){while(--_0x37f797){_0x18b0c6['push'](_0x18b0c6['shift']());}};_0x4e7abe(++_0x54c3d8);}(_0x54c3,0xcb));var _0x4e7a=function(_0x18b0c6,_0x54c3d8){_0x18b0c6=_0x18b0c6-0x0;var _0x4e7abe=_0x54c3[_0x18b0c6];return _0x4e7abe;};export{default as ExportWord}from_0x4e7a('0x0');
23
+ export{default as ExportWord}from'./exportword';
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x544e=['timezone',':root','length','indexOf','get','author','getSuggestions','map','plugins','CommentsRepository','content','resolvedOptions','name','getCommentThreads','keys','join','.ck-content','has','comments','users','Users','push','then','createdAt','DateTimeFormat','suggestions','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.','text','TrackChanges','ownerNode','warn','timeZone','fetch','data-cke','styleSheets','cssText'];(function(_0x37109e,_0x544edf){const _0x1b9bbc=function(_0x5ba6f4){while(--_0x5ba6f4){_0x37109e['push'](_0x37109e['shift']());}};_0x1b9bbc(++_0x544edf);}(_0x544e,0x14b));const _0x1b9b=function(_0x37109e,_0x544edf){_0x37109e=_0x37109e-0x0;let _0x1b9bbc=_0x544e[_0x37109e];return _0x1b9bbc;};export function getStyles(_0x245255){if(!_0x245255)return new Promise(_0x634d30=>_0x634d30(''));const _0x349e9d=[];for(const _0x45ac50 of _0x245255)'EDITOR_STYLES'!==_0x45ac50?_0x349e9d[_0x1b9b('0xe')](window[_0x1b9b('0x19')](_0x45ac50)['then'](_0x2097f7=>_0x2097f7[_0x1b9b('0x14')]())):_0x349e9d[_0x1b9b('0xe')](u());return Promise['all'](_0x349e9d)[_0x1b9b('0xf')](_0x2be91a=>_0x2be91a[_0x1b9b('0x8')]('\x20')['trim']());}function u(){const _0x2a6e0c=[],_0x32346d=[];for(const _0x3ee4ff of document[_0x1b9b('0x1b')])if(_0x3ee4ff[_0x1b9b('0x16')]['hasAttribute'](_0x1b9b('0x1a')))for(const _0x21c1da of _0x3ee4ff['cssRules'])-0x1!==_0x21c1da[_0x1b9b('0x1c')][_0x1b9b('0x20')](_0x1b9b('0x9'))?_0x2a6e0c[_0x1b9b('0xe')](_0x21c1da[_0x1b9b('0x1c')]):-0x1!==_0x21c1da[_0x1b9b('0x1c')][_0x1b9b('0x20')](_0x1b9b('0x1e'))&&_0x32346d[_0x1b9b('0xe')](_0x21c1da[_0x1b9b('0x1c')]);return _0x2a6e0c[_0x1b9b('0x1f')]||console[_0x1b9b('0x17')](_0x1b9b('0x13')),[..._0x32346d,..._0x2a6e0c][_0x1b9b('0x8')]('\x20')['trim']();}export function getConverterOptions(_0x28bc06){const _0xde75b=_0x28bc06['plugins'][_0x1b9b('0xa')](_0x1b9b('0xd')),_0x5c3b8e=_0x28bc06[_0x1b9b('0x1')][_0x1b9b('0xa')]('CommentsRepository'),_0x812ea9=_0x28bc06[_0x1b9b('0x1')][_0x1b9b('0xa')](_0x1b9b('0x15')),_0x53a22c={};if(_0xde75b&&_0x5c3b8e){const _0x5a4ee5=getComments(_0x28bc06[_0x1b9b('0x1')][_0x1b9b('0x21')](_0x1b9b('0x2'))[_0x1b9b('0x6')]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object['keys'](_0x5a4ee5)[_0x1b9b('0x1f')]&&(_0x53a22c[_0x1b9b('0xb')]=_0x5a4ee5);}if(_0xde75b&&_0x812ea9){const _0x7cfbd4=_0x28bc06['plugins']['get']('TrackChanges'),_0x4154a3=_0x28bc06[_0x1b9b('0x1')][_0x1b9b('0x21')]('Users'),_0x58c0cc=getSuggestions(_0x7cfbd4[_0x1b9b('0x23')]({'toJSON':!0x0}),_0x4154a3[_0x1b9b('0xc')]);Object[_0x1b9b('0x7')](_0x58c0cc)[_0x1b9b('0x1f')]&&(_0x53a22c[_0x1b9b('0x12')]=_0x58c0cc);}return(_0x53a22c[_0x1b9b('0x12')]||_0x53a22c[_0x1b9b('0xb')])&&(_0x53a22c[_0x1b9b('0x1d')]=new Intl[(_0x1b9b('0x11'))]()[_0x1b9b('0x4')]()[_0x1b9b('0x18')]),_0x53a22c;}export function getComments(_0x5e42a1){const _0x41420e={};if(!_0x5e42a1[_0x1b9b('0x1f')])return _0x41420e;for(const _0x52cf35 of _0x5e42a1)_0x52cf35['comments'][_0x1b9b('0x0')](_0x444012=>{void 0x0===_0x41420e[_0x52cf35['id']]&&(_0x41420e[_0x52cf35['id']]=[]),_0x41420e[_0x52cf35['id']][_0x1b9b('0xe')]({'author':_0x444012[_0x1b9b('0x22')][_0x1b9b('0x5')],'content':_0x444012[_0x1b9b('0x3')],'created':_0x444012[_0x1b9b('0x10')]});});return _0x41420e;}export function getSuggestions(_0x547f69,_0x451cfa){const _0x6819bb={};if(!_0x547f69['length']||!_0x451cfa[_0x1b9b('0x1f')])return _0x6819bb;for(const _0x55206d of _0x547f69)_0x6819bb[_0x55206d['id']]={'author':_0x451cfa[_0x1b9b('0x21')](_0x55206d['authorId'])[_0x1b9b('0x5')],'created':_0x55206d[_0x1b9b('0x10')]};return _0x6819bb;}
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;}