@ckeditor/ckeditor5-export-word 41.4.1 → 41.4.2
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/build/export-word.js +1 -1
- package/dist/index.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.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/package.json +2 -2
- package/src/exportword.js +1 -1
- package/src/exportwordcommand.js +1 -1
- package/src/exportwordui.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\x20Word':'匯出到\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'產生\x20Word\x20檔案時出錯。','Word\x20document\x20export\x20started':'Word\x20文件匯出開始','Word\x20document\x20export\x20failed':'Word\x20文件匯出失敗','Word\x20document\x20export\x20successful':'Word\x20文件匯出成功','Exporting\x20Word\x20document':'正在匯出\x20Word\x20文件'},'getPluralForm':
|
|
23
|
+
export default{'zh':{'dictionary':{'Export\x20to\x20Word':'匯出到\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'產生\x20Word\x20檔案時出錯。','Word\x20document\x20export\x20started':'Word\x20文件匯出開始','Word\x20document\x20export\x20failed':'Word\x20文件匯出失敗','Word\x20document\x20export\x20successful':'Word\x20文件匯出成功','Exporting\x20Word\x20document':'正在匯出\x20Word\x20文件'},'getPluralForm':_0x23bc7e=>0x0}};
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(
|
|
23
|
+
(_0x3bd978=>{const {zh:{dictionary:_0x3802ba,getPluralForm:_0x1d0a24}}={'zh':{'dictionary':{'Export\x20to\x20Word':'匯出到\x20Word','An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.':'產生\x20Word\x20檔案時出錯。','Word\x20document\x20export\x20started':'Word\x20文件匯出開始','Word\x20document\x20export\x20failed':'Word\x20文件匯出失敗','Word\x20document\x20export\x20successful':'Word\x20文件匯出成功','Exporting\x20Word\x20document':'正在匯出\x20Word\x20文件'},'getPluralForm':_0x2277f2=>0x0}};_0x3bd978['zh']||={'dictionary':{},'getPluralForm':null},_0x3bd978['zh']['dictionary']=Object['assign'](_0x3bd978['zh']['dictionary'],_0x3802ba),_0x3bd978['zh']['getPluralForm']=_0x1d0a24;})(window['CKEDITOR_TRANSLATIONS']||={});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-export-word",
|
|
3
|
-
"version": "41.4.
|
|
3
|
+
"version": "41.4.2",
|
|
4
4
|
"description": "Export to Word 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": "41.4.
|
|
33
|
+
"ckeditor5": "41.4.2"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (https://cksource.com/)",
|
package/src/exportword.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x47151d=_0x4c4f;(function(_0x177377,_0x568515){const _0xd88426=_0x4c4f,_0x4e5b99=_0x177377();while(!![]){try{const _0x40a564=-parseInt(_0xd88426(0x159))/0x1*(-parseInt(_0xd88426(0x15a))/0x2)+parseInt(_0xd88426(0x164))/0x3*(-parseInt(_0xd88426(0x155))/0x4)+parseInt(_0xd88426(0x150))/0x5*(parseInt(_0xd88426(0x160))/0x6)+parseInt(_0xd88426(0x15d))/0x7+parseInt(_0xd88426(0x14c))/0x8+-parseInt(_0xd88426(0x153))/0x9+-parseInt(_0xd88426(0x15f))/0xa*(parseInt(_0xd88426(0x166))/0xb);if(_0x40a564===_0x568515)break;else _0x4e5b99['push'](_0x4e5b99['shift']());}catch(_0x4a3179){_0x4e5b99['push'](_0x4e5b99['shift']());}}}(_0x81dc,0x9ee53));function _0x4c4f(_0x256d11,_0x50e5c8){const _0x81dcec=_0x81dc();return _0x4c4f=function(_0x4c4f48,_0x54ef74){_0x4c4f48=_0x4c4f48-0x14b;let _0x3a3bd0=_0x81dcec[_0x4c4f48];return _0x3a3bd0;},_0x4c4f(_0x256d11,_0x50e5c8);}import{Plugin as _0x5c8423}from'ckeditor5/src/core.js';import{Notification as _0x29c33a}from'ckeditor5/src/ui.js';import _0x4ff803 from'./exportwordcommand.js';import _0x325ed1 from'./exportwordui.js';export default class s extends _0x5c8423{static get[_0x47151d(0x154)](){const _0x9b3587=_0x47151d;return _0x9b3587(0x15c);}static get[_0x47151d(0x165)](){const _0x10aa82=_0x47151d;return[_0x10aa82(0x14d),_0x29c33a,_0x325ed1];}[_0x47151d(0x151)](){const _0x4c92b7=_0x47151d,_0x25cc45=this[_0x4c92b7(0x14b)],_0x54e536=_0x25cc45[_0x4c92b7(0x162)][_0x4c92b7(0x161)](_0x4c92b7(0x14e))||{};_0x25cc45[_0x4c92b7(0x14f)][_0x4c92b7(0x158)](_0x4c92b7(0x14e),new _0x4ff803(_0x25cc45));const _0x14d09f=_0x25cc45[_0x4c92b7(0x15b)][_0x4c92b7(0x161)](_0x4c92b7(0x14d));!0x1===_0x54e536[_0x4c92b7(0x163)]?this[_0x4c92b7(0x157)]=null:_0x54e536[_0x4c92b7(0x163)]?_0x14d09f[_0x4c92b7(0x15e)](_0x54e536[_0x4c92b7(0x163)])[_0x4c92b7(0x156)](_0x4800f7=>{const _0x2827db=_0x4c92b7;this[_0x2827db(0x157)]=_0x4800f7;}):this[_0x4c92b7(0x157)]=_0x14d09f[_0x4c92b7(0x152)];}}function _0x81dc(){const _0x4e021f=['8226iVYBSd','get','config','tokenUrl','480gRdTfP','requires','55jzrYjz','editor','9216976wVYodS','CloudServices','exportWord','commands','2325ausgog','init','token','989595kEohhS','pluginName','20576wQfWQC','then','_token','add','3gbskEM','713662YYeFBy','plugins','ExportWord','4209485YHWTZw','registerTokenUrl','3755310YtaFqI'];_0x81dc=function(){return _0x4e021f;};return _0x81dc();}
|
package/src/exportwordcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
23
|
+
import{Command as _0x247c37}from'ckeditor5/src/core.js';import{getStyles as _0x4d5505,getConverterOptions as _0x281583}from'./utils.js';export default class e extends _0x247c37{constructor(_0x1d66b9){super(_0x1d66b9),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x321a9f={}){const _0x59aa62=this['editor'],t=_0x59aa62['t'],_0x500c4a=_0x321a9f['converterUrl']||'https://docx-converter.cke-cs.com/v1/convert',_0x1dd633=_0x321a9f['converterOptions']||{},_0x871593=_0x59aa62['plugins']['get']('ExportWord'),_0xccb8e0=_0x321a9f['token']||_0x871593['_token'],_0x39c8ad=!0x1!==_0x1dd633['auto_pagination'],_0x436638=_0x321a9f['dataCallback']||(_0x5906ef=>_0x5906ef['data']['get']({'pagination':_0x39c8ad}));return this['isBusy']=!0x0,this['refresh'](),_0x4d5505(_0x321a9f['stylesheets']||['EDITOR_STYLES'])['then'](async _0x5ac532=>{_0x59aa62['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20started'));const _0x331621=await _0x436638(_0x59aa62),_0x339bb0={'html':'<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x59aa62['locale']['contentLanguageDirection']+'\x22>'+_0x331621+'</div>','css':_0x5ac532,'options':{..._0x1dd633,..._0x281583(_0x59aa62)}},_0x1ab8ad={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/docx',..._0xccb8e0?{'Authorization':_0xccb8e0['value']}:null},'body':JSON['stringify'](_0x339bb0)};return window['fetch'](_0x500c4a,_0x1ab8ad)['then'](_0x10129d=>{if(0xc8!==_0x10129d['status'])throw _0x10129d;return _0x10129d['blob']();})['then'](_0x11901a=>{_0x59aa62['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20successful'));const _0x1d44c6='function'==typeof _0x321a9f['fileName']?_0x321a9f['fileName']():_0x321a9f['fileName'];this['_downloadFile'](_0x11901a,_0x1d44c6||'document.docx');});})['catch'](_0x5b0b81=>{const _0x1b8348=_0x59aa62['plugins']['get']('Notification');throw _0x59aa62['ui']['ariaLiveAnnouncer']['announce'](t('Word\x20document\x20export\x20failed'),{'politeness':'assertive'}),_0x1b8348['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20Word\x20file.')),_0x5b0b81;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x3d0605,_0x3c42fa){const _0x4cf2fb=document['createElement']('a');_0x4cf2fb['href']=window['URL']['createObjectURL'](_0x3d0605),_0x4cf2fb['download']=_0x3c42fa,_0x4cf2fb['click'](),_0x4cf2fb['remove']();}}
|
package/src/exportwordui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0xf3cbec}from'ckeditor5/src/core.js';import{ButtonView as _0x34d33d,MenuBarMenuListItemButtonView as _0x542797,SpinnerView as _0x5427da}from'ckeditor5/src/ui.js';import _0x5646a3 from'../theme/icons/exportword.svg';export default class i extends _0xf3cbec{static get['pluginName'](){return'ExportWordUI';}['init'](){const _0x2ce3ea=this['editor'];_0x2ce3ea['ui']['componentFactory']['add']('exportWord',()=>{const _0x3456e8=_0x2ce3ea['commands']['get']('exportWord'),_0x299dde=this['_createButton'](_0x34d33d);return _0x299dde['set']({'tooltip':!0x0}),_0x299dde['bind']('isOn')['to'](_0x3456e8,'isBusy'),_0x299dde;}),_0x2ce3ea['ui']['componentFactory']['add']('menuBar:exportWord',()=>this['_createButton'](_0x542797));}['_createButton'](_0x2327da){const _0x1bcf2d=this['editor'],_0x106fd8=_0x1bcf2d['config']['get']('exportWord')||{},t=_0x1bcf2d['locale']['t'],_0x4df08f=_0x1bcf2d['commands']['get']('exportWord'),_0x58d70e=new _0x2327da(_0x1bcf2d['locale']),_0x58c1f7=new _0x5427da();return _0x58d70e['children']['add'](_0x58c1f7),_0x58c1f7['bind']('isVisible')['to'](_0x4df08f,'isBusy'),_0x58d70e['iconView']['bind']('isVisible')['to'](_0x4df08f,'isBusy',_0x231cdc=>!_0x231cdc),_0x58d70e['set']({'icon':_0x5646a3}),_0x58d70e['bind']('isEnabled')['to'](_0x4df08f,'isEnabled'),_0x58d70e['bind']('label')['to'](_0x4df08f,'isBusy',_0x4cab87=>t(_0x4cab87?'Exporting\x20Word\x20document':'Export\x20to\x20Word')),this['listenTo'](_0x58d70e,'execute',()=>{_0x1bcf2d['execute']('exportWord',_0x106fd8),_0x1bcf2d['editing']['view']['focus']();}),_0x58d70e;}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x301b(){var _0x1880af=['136xExBcl','5915819hIbJbg','3496200uGLYUX','8yXBHSD','50pateSm','894OKpyGj','8634wXWCrs','148210hcjHil','944IkDWdg','1224081FYORuF','9568768VoDzvh','210oMGIvN'];_0x301b=function(){return _0x1880af;};return _0x301b();}(function(_0x31e606,_0xfd9a82){var _0x5112b3=_0x439c,_0x44ef7e=_0x31e606();while(!![]){try{var _0x461fd8=-parseInt(_0x5112b3(0x149))/0x1*(parseInt(_0x5112b3(0x146))/0x2)+parseInt(_0x5112b3(0x147))/0x3*(-parseInt(_0x5112b3(0x14d))/0x4)+-parseInt(_0x5112b3(0x148))/0x5*(parseInt(_0x5112b3(0x14c))/0x6)+parseInt(_0x5112b3(0x14e))/0x7*(parseInt(_0x5112b3(0x144))/0x8)+parseInt(_0x5112b3(0x14a))/0x9*(parseInt(_0x5112b3(0x145))/0xa)+parseInt(_0x5112b3(0x14b))/0xb+-parseInt(_0x5112b3(0x14f))/0xc;if(_0x461fd8===_0xfd9a82)break;else _0x44ef7e['push'](_0x44ef7e['shift']());}catch(_0x3dd79d){_0x44ef7e['push'](_0x44ef7e['shift']());}}}(_0x301b,0x8566a));export{default as ExportWord}from'./exportword.js';function _0x439c(_0x5a8dac,_0x2f834e){var _0x301b3b=_0x301b();return _0x439c=function(_0x439c9c,_0x7a10ce){_0x439c9c=_0x439c9c-0x144;var _0x7468b9=_0x301b3b[_0x439c9c];return _0x7468b9;},_0x439c(_0x5a8dac,_0x2f834e);}import'./augmentation.js';
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x1e0398,_0x3166c2){const _0x4873f2=_0x54f2,_0x2be0ee=_0x1e0398();while(!![]){try{const _0x49be67=-parseInt(_0x4873f2(0x1f3))/0x1*(parseInt(_0x4873f2(0x204))/0x2)+parseInt(_0x4873f2(0x20e))/0x3*(parseInt(_0x4873f2(0x215))/0x4)+parseInt(_0x4873f2(0x20f))/0x5+-parseInt(_0x4873f2(0x20c))/0x6+-parseInt(_0x4873f2(0x226))/0x7+-parseInt(_0x4873f2(0x213))/0x8*(-parseInt(_0x4873f2(0x1fa))/0x9)+-parseInt(_0x4873f2(0x221))/0xa;if(_0x49be67===_0x3166c2)break;else _0x2be0ee['push'](_0x2be0ee['shift']());}catch(_0x55cda5){_0x2be0ee['push'](_0x2be0ee['shift']());}}}(_0x1b23,0x2734e));function _0x1b23(){const _0x5d5dc9=['9SmWqpb','plugins','authorId','name','getCommentThreads','keys','users','ownerNode','timezone','text','2VRgWwl','content','resolvedOptions','TrackChanges','length','author','CommentsRepository','hasAttribute','240780OEkWcp','Users','21dKQLNm','534230HZCPMh','DateTimeFormat','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.','EDITOR_STYLES','1914728pLuyWP','join','57284CVdctK','then','data-cke','timeZone','map','get','suggestions','.ck-content','getSuggestions','indexOf','from','comments','1010890AWoRam','styleSheets','trim','push','all','219254mQxkem','has','isResolved','113303mRvlcF',':root','cssText','cssRules','fetch','createdAt','warn'];_0x1b23=function(){return _0x5d5dc9;};return _0x1b23();}export function getStyles(_0x559371){const _0x500883=_0x54f2;if(!_0x559371)return new Promise(_0x135ee1=>_0x135ee1(''));const _0x33f0a8=[];for(const _0x3ecbe0 of _0x559371)_0x500883(0x212)!==_0x3ecbe0?_0x33f0a8[_0x500883(0x224)](window[_0x500883(0x1f7)](_0x3ecbe0)[_0x500883(0x216)](_0xec7514=>_0xec7514[_0x500883(0x203)]())):_0x33f0a8[_0x500883(0x224)](f());return Promise[_0x500883(0x225)](_0x33f0a8)[_0x500883(0x216)](_0x5e4db7=>_0x5e4db7[_0x500883(0x214)]('\x20')[_0x500883(0x223)]());}function f(){const _0x5655d8=_0x54f2,_0x1d9bf5=[],_0x26bbce=[];for(const _0x2da30b of Array[_0x5655d8(0x21f)](document[_0x5655d8(0x222)])){if(_0x2da30b[_0x5655d8(0x201)][_0x5655d8(0x20b)](_0x5655d8(0x217))){for(const _0x5f3825 of Array[_0x5655d8(0x21f)](_0x2da30b[_0x5655d8(0x1f6)]))-0x1!==_0x5f3825[_0x5655d8(0x1f5)][_0x5655d8(0x21e)](_0x5655d8(0x21c))?_0x1d9bf5[_0x5655d8(0x224)](_0x5f3825[_0x5655d8(0x1f5)]):-0x1!==_0x5f3825[_0x5655d8(0x1f5)][_0x5655d8(0x21e)](_0x5655d8(0x1f4))&&_0x26bbce[_0x5655d8(0x224)](_0x5f3825[_0x5655d8(0x1f5)]);}}return _0x1d9bf5[_0x5655d8(0x208)]||console[_0x5655d8(0x1f9)](_0x5655d8(0x211)),[..._0x26bbce,..._0x1d9bf5][_0x5655d8(0x214)]('\x20')[_0x5655d8(0x223)]();}export function getConverterOptions(_0x115eb2){const _0x769f0d=_0x54f2,_0x150511=_0x115eb2[_0x769f0d(0x1fb)][_0x769f0d(0x227)](_0x769f0d(0x20d)),_0x5bd228=_0x115eb2[_0x769f0d(0x1fb)][_0x769f0d(0x227)](_0x769f0d(0x20a)),_0x2a8912=_0x115eb2[_0x769f0d(0x1fb)][_0x769f0d(0x227)](_0x769f0d(0x207)),_0x14d2a6={};if(_0x150511&&_0x5bd228){const _0x3eb7ef=getComments(_0x115eb2[_0x769f0d(0x1fb)][_0x769f0d(0x21a)](_0x769f0d(0x20a))[_0x769f0d(0x1fe)]({'skipNotAttached':!0x0,'skipEmpty':!0x0}));Object[_0x769f0d(0x1ff)](_0x3eb7ef)[_0x769f0d(0x208)]&&(_0x14d2a6[_0x769f0d(0x220)]=_0x3eb7ef);}if(_0x150511&&_0x2a8912){const _0x5b0e30=_0x115eb2[_0x769f0d(0x1fb)][_0x769f0d(0x21a)](_0x769f0d(0x207)),_0x376f1d=_0x115eb2[_0x769f0d(0x1fb)][_0x769f0d(0x21a)](_0x769f0d(0x20d)),_0x2dd138=getSuggestions(_0x5b0e30[_0x769f0d(0x21d)]({'toJSON':!0x0}),_0x376f1d[_0x769f0d(0x200)]);Object[_0x769f0d(0x1ff)](_0x2dd138)[_0x769f0d(0x208)]&&(_0x14d2a6[_0x769f0d(0x21b)]=_0x2dd138);}return(_0x14d2a6[_0x769f0d(0x21b)]||_0x14d2a6[_0x769f0d(0x220)])&&(_0x14d2a6[_0x769f0d(0x202)]=new Intl[(_0x769f0d(0x210))]()[_0x769f0d(0x206)]()[_0x769f0d(0x218)]),_0x14d2a6;}export function getComments(_0x4a504f){const _0x2dc600=_0x54f2,_0x425e02={};if(!_0x4a504f[_0x2dc600(0x208)])return _0x425e02;for(const _0x261dbc of _0x4a504f)_0x261dbc[_0x2dc600(0x220)][_0x2dc600(0x219)](_0x184470=>{const _0xbe7dc5=_0x2dc600;void 0x0===_0x425e02[_0x261dbc['id']]&&(_0x425e02[_0x261dbc['id']]=[]),_0x425e02[_0x261dbc['id']][_0xbe7dc5(0x224)]({'author':_0x184470[_0xbe7dc5(0x209)][_0xbe7dc5(0x1fd)],'content':_0x184470[_0xbe7dc5(0x205)],'created':_0x184470[_0xbe7dc5(0x1f8)],'is_resolved':_0x261dbc[_0xbe7dc5(0x228)]});});return _0x425e02;}function _0x54f2(_0xbed791,_0x575b82){const _0x1b23c5=_0x1b23();return _0x54f2=function(_0x54f26d,_0x48c9a4){_0x54f26d=_0x54f26d-0x1f3;let _0x1ad673=_0x1b23c5[_0x54f26d];return _0x1ad673;},_0x54f2(_0xbed791,_0x575b82);}export function getSuggestions(_0x5acf47,_0xd7cb1f){const _0x5498d7=_0x54f2,_0x519387={};if(!_0x5acf47[_0x5498d7(0x208)]||!_0xd7cb1f[_0x5498d7(0x208)])return _0x519387;for(const _0x5cdd31 of _0x5acf47)_0x519387[_0x5cdd31['id']]={'author':_0xd7cb1f[_0x5498d7(0x21a)](_0x5cdd31[_0x5498d7(0x1fc)])[_0x5498d7(0x1fd)],'created':_0x5cdd31[_0x5498d7(0x1f8)]};return _0x519387;}
|