@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231204.0 → 0.0.0-nightly-20231206.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/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/aiassistant.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/imagestyle.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/src/suggestion.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x3723=['removeMarkers','attributes','subType','_model','previous','clear','nodeAfter','decorate','author','isExternal','_saved','discard','_onAccept','removeMarker','hasComments','getAllAdjacentSuggestions','getFirstRange','accept','substr','data','getMultiRangeId','removeAttribute','_onDiscard','change','addMarkerName','setAttribute','getMarkers','markers','next','end','onAccept','_markerNames','getItems','toJSON','split','from','head','type','creator','reduce','delete','isIntersecting','get','_onAttributesChange','push','add','getFirstMarker','_isDataLoaded','nodeBefore','commentThread','map','authoredAt','set','suggestion:','size','addMarker','onDiscard','isMultiRange','createdAt','@external','getRanges','onAttributesChange','isInContent','start','getContainedElement','getMarkerNames','length'];(function(_0x28cd48,_0x3723c9){const _0x2ad545=function(_0x329e8c){while(--_0x329e8c){_0x28cd48['push'](_0x28cd48['shift']());}};_0x2ad545(++_0x3723c9);}(_0x3723,0x10f));const _0x2ad5=function(_0x28cd48,_0x3723c9){_0x28cd48=_0x28cd48-0x0;let _0x2ad545=_0x3723[_0x28cd48];return _0x2ad545;};import{Element as _0x5a33b2}from'ckeditor5/src/engine';import{ObservableMixin as _0x2f1864,uid as _0x33c7ae}from'ckeditor5/src/utils';import{cloneDeep as _0xa789,isEqual as _0x1fb2f5,set as _0x5968ec,unset as _0x36afa8}from'lodash-es';export default class u extends _0x2f1864(){constructor(_0x1190e6,_0x27e8e9){super(),this[_0x2ad5('0x2c')]=!0x1,this['id']=_0x27e8e9['id'],this['type']=_0x27e8e9['type'],this[_0x2ad5('0x42')]=_0x27e8e9['subType']||null,this[_0x2ad5('0x5')]=_0x27e8e9[_0x2ad5('0x5')],this[_0x2ad5('0x23')]=_0x27e8e9[_0x2ad5('0x23')]||_0x27e8e9[_0x2ad5('0x5')],this[_0x2ad5('0x6')]=Boolean(_0x27e8e9[_0x2ad5('0x41')]&&_0x27e8e9[_0x2ad5('0x41')][_0x2ad5('0x38')]),this[_0x2ad5('0x10')]=null,this[_0x2ad5('0x0')]=_0x1190e6,this[_0x2ad5('0x9')]=_0x27e8e9[_0x2ad5('0x1b')],this[_0x2ad5('0x13')]=_0x27e8e9[_0x2ad5('0x35')],this[_0x2ad5('0x28')]=_0x27e8e9[_0x2ad5('0x3a')],this[_0x2ad5('0x1c')]=new Set(),this['createdAt']=null,this[_0x2ad5('0x31')](_0x2ad5('0x30'),null),this['set'](_0x2ad5('0x41'),_0x27e8e9[_0x2ad5('0x41')]||{}),this['set'](_0x2ad5('0x1'),null),this['set'](_0x2ad5('0x19'),null),this['set']('commentThread',null),this[_0x2ad5('0x31')](_0x2ad5('0x7'),!0x1),this[_0x2ad5('0x4')](_0x2ad5('0xe')),this[_0x2ad5('0x4')](_0x2ad5('0x8'));}get[_0x2ad5('0x21')](){let _0x3b5c4a=this;for(;_0x3b5c4a[_0x2ad5('0x1')];)_0x3b5c4a=_0x3b5c4a[_0x2ad5('0x1')];return _0x3b5c4a;}get[_0x2ad5('0xb')](){return!!this[_0x2ad5('0x2e')]&&this[_0x2ad5('0x2e')][_0x2ad5('0x3f')]>0x0;}get[_0x2ad5('0x36')](){if(0x0==this['_markerNames'][_0x2ad5('0x33')])return!0x1;return 0x6==Array[_0x2ad5('0x20')](this[_0x2ad5('0x1c')])[0x0][_0x2ad5('0x1f')](':')['length'];}get[_0x2ad5('0x3b')](){return null!==this[_0x2ad5('0x2b')]();}[_0x2ad5('0x15')](_0x2dad5c){this['_markerNames'][_0x2ad5('0x2a')](_0x2dad5c);}[_0x2ad5('0x3e')](){return Array[_0x2ad5('0x20')](this['_markerNames']);}[_0x2ad5('0x17')](){return this[_0x2ad5('0x3e')]()[_0x2ad5('0x2f')](_0x19a08c=>this[_0x2ad5('0x0')][_0x2ad5('0x18')][_0x2ad5('0x27')](_0x19a08c))['filter'](_0x5c7d1f=>_0x5c7d1f);}[_0x2ad5('0x2b')](){return this[_0x2ad5('0x17')]()[0x0]||null;}[_0x2ad5('0x40')](){this[_0x2ad5('0x0')][_0x2ad5('0x14')](_0xcd0c5=>{for(const _0x2152ed of this['getMarkers']())_0xcd0c5[_0x2ad5('0xa')](_0x2152ed);}),this[_0x2ad5('0x1c')][_0x2ad5('0x2')]();}[_0x2ad5('0xa')](_0x2285ee){this['_model'][_0x2ad5('0x14')](_0xdb6b9=>{_0xdb6b9[_0x2ad5('0xa')](_0x2285ee);}),this['_markerNames'][_0x2ad5('0x25')](_0x2285ee);}['addRange'](_0x4528bc){const _0x1ecb0e=_0x2ad5('0x32')+this[_0x2ad5('0x22')]+':'+this['subType']+':'+this['id']+':'+this[_0x2ad5('0x23')]['id']+':'+u[_0x2ad5('0x11')]();this[_0x2ad5('0x15')](_0x1ecb0e),this[_0x2ad5('0x0')][_0x2ad5('0x14')](_0x4275e4=>{_0x4275e4[_0x2ad5('0x34')](_0x1ecb0e,{'range':_0x4528bc,'usingOperation':!0x0,'affectsData':!0x0});});}['isIntersectingWithRange'](_0x4e288a){for(const _0x5df0ce of this[_0x2ad5('0x39')]())if(_0x5df0ce[_0x2ad5('0x26')](_0x4e288a))return!0x0;return!0x1;}[_0x2ad5('0x39')](){return this[_0x2ad5('0x17')]()[_0x2ad5('0x2f')](_0x1f3d68=>_0x1f3d68['getRange']());}[_0x2ad5('0x1d')](){return this[_0x2ad5('0x39')]()[_0x2ad5('0x24')]((_0x570d75,_0x367441)=>[..._0x570d75,..._0x367441[_0x2ad5('0x1d')]()],[]);}[_0x2ad5('0xd')](){var _0x3f568d;return(null===(_0x3f568d=this['getFirstMarker']())||void 0x0===_0x3f568d?void 0x0:_0x3f568d['getRange']())||null;}[_0x2ad5('0x3d')](){const _0x178ba2=this['getRanges']();if(0x1!=_0x178ba2[_0x2ad5('0x3f')])return null;const _0x64412e=_0x178ba2[0x0],_0x4e3cab=_0x64412e[_0x2ad5('0x3c')][_0x2ad5('0x3')],_0x2b2c1f=_0x64412e[_0x2ad5('0x1a')][_0x2ad5('0x2d')];return _0x4e3cab instanceof _0x5a33b2?_0x4e3cab!=_0x2b2c1f?null:_0x4e3cab:null;}[_0x2ad5('0xe')](){this[_0x2ad5('0x9')](this[_0x2ad5('0x39')](),this['data'],this[_0x2ad5('0x41')]),this[_0x2ad5('0x40')]();}['discard'](){this[_0x2ad5('0x13')](this['getRanges'](),this['data'],this[_0x2ad5('0x41')]),this[_0x2ad5('0x40')]();}[_0x2ad5('0xc')](){const _0x2e7df3=[];let _0x35cfcc=this['head'];for(;_0x35cfcc;)_0x2e7df3[_0x2ad5('0x29')](_0x35cfcc),_0x35cfcc=_0x35cfcc[_0x2ad5('0x19')];return _0x2e7df3;}[_0x2ad5('0x16')](_0x955485,_0x3b3657){const _0x12c61e=_0xa789(this['attributes']);_0x5968ec(_0x12c61e,_0x955485,_0x3b3657),_0x1fb2f5(_0x12c61e,this[_0x2ad5('0x41')])||(this[_0x2ad5('0x41')]=_0x12c61e,this[_0x2ad5('0x28')](_0x12c61e));}[_0x2ad5('0x12')](_0x202d6b){const _0x50587b=_0xa789(this[_0x2ad5('0x41')]);_0x36afa8(_0x50587b,_0x202d6b),_0x1fb2f5(_0x50587b,this[_0x2ad5('0x41')])||(this[_0x2ad5('0x41')]=_0x50587b,this['_onAttributesChange'](this[_0x2ad5('0x41')]));}[_0x2ad5('0x1e')](){return{'id':this['id'],'type':this[_0x2ad5('0x42')]?this[_0x2ad5('0x22')]+':'+this[_0x2ad5('0x42')]:this[_0x2ad5('0x22')],'authorId':this[_0x2ad5('0x23')]['id'],'createdAt':this[_0x2ad5('0x37')],'hasComments':this[_0x2ad5('0xb')],'data':this[_0x2ad5('0x10')],'attributes':this[_0x2ad5('0x41')]};}static[_0x2ad5('0x11')](){return _0x33c7ae()[_0x2ad5('0xf')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x7381=['addEmptyContainer','*Remove:*\x20%0','removeFormat','attribute','type','previousSibling','removeObject','_handleRenameSuggestionDescription','getItemLabel','getWalker','get','elementEnd','registerElementLabel','indexOf','label','length','ELEMENT_SPACE','isInContent','Container','key','EmptyContainer','isObject','join','isEmpty','push','normal','_resolveDescriptionItems','registerAttributeLabel','$textProxy','replace','newValue','_addDescriptionItems','Object','add','start','_locale','$text','_handleCustomCallbackDescription','subType','end','pop','removeContainer','_itemLabelsCallbacks','matchingCallback','getFirstRange','_customCallbacks','skip','_handleInsertRemoveSuggestionDescription','REPLACE_TEXT','elementStart','_schema','match','format','data','nextSibling','*Set\x20format:*\x20%0','*Remove\x20format:*\x20%0','softBreak','_itemLabels','removeEmptyContainer','isEqual','registerDescriptionCallback','*Change\x20to:*\x20%0','deletion','checkChild','remove','element','text','addFormat','$1\x20$2','*Insert:*\x20%0','item','quantity','has','nodeAfter','insertion','*Merge:*\x20%0','getDescriptions','_handleAttributeSuggestionDescription','_attributeLabels','name','map'];(function(_0x5ae8da,_0x73810d){const _0x574d90=function(_0x581917){while(--_0x581917){_0x5ae8da['push'](_0x5ae8da['shift']());}};_0x574d90(++_0x73810d);}(_0x7381,0x1e2));const _0x574d=function(_0x5ae8da,_0x73810d){_0x5ae8da=_0x5ae8da-0x0;let _0x574d90=_0x7381[_0x5ae8da];return _0x574d90;};import{getTranslation as _0x2191b9}from'./utils/common-translations';import{priorities as _0x4db920,insertToPriorityArray as _0x59aad3}from'ckeditor5/src/utils';import{renameAttributeKey as _0x56bbd1}from'./trackchangesediting';export default class f{constructor(_0x40f10e,_0x4758a6){this['_customCallbacks']=[],this[_0x574d('0x44')]=new Map(),this[_0x574d('0x34')]=[],this[_0x574d('0x7')]=new Map(),this['_schema']=_0x40f10e,this[_0x574d('0x2d')]=_0x4758a6;}[_0x574d('0x5')](_0x5ebc0c){const _0x2eaa4f=[],_0x4f7945=new Set(),_0x1fd29b=new Set();for(let _0x398582=0x0;_0x398582<_0x5ebc0c['length'];_0x398582++){const _0x1bbe8b=_0x5ebc0c[_0x398582];if(!_0x1bbe8b[_0x574d('0x1b')])continue;const _0x2dda46=this['_handleCustomCallbackDescription'](_0x1bbe8b);if(_0x2dda46){if(null!=_0x1bbe8b[_0x574d('0x30')]){if(_0x4f7945[_0x574d('0x1')](_0x1bbe8b[_0x574d('0x30')]))continue;_0x4f7945[_0x574d('0x2b')](_0x1bbe8b[_0x574d('0x30')]);}_0x2eaa4f[_0x574d('0x22')](_0x2dda46);}else{if(_0x574d('0xd')!=_0x1bbe8b['type'])_0x574d('0x3')!=_0x1bbe8b['type']&&_0x574d('0x49')!=_0x1bbe8b[_0x574d('0xe')]||this[_0x574d('0x39')](_0x2eaa4f,_0x1bbe8b,_0x5ebc0c[_0x398582+0x1]);else{const _0x159d53=_0x1bbe8b[_0x574d('0x3f')]['key'];if(_0x1fd29b[_0x574d('0x1')](_0x159d53))continue;_0x1fd29b[_0x574d('0x2b')](_0x1bbe8b[_0x574d('0x3f')][_0x574d('0x1d')]),_0x159d53==_0x56bbd1?this['_handleRenameSuggestionDescription'](_0x2eaa4f,_0x1bbe8b):this[_0x574d('0x6')](_0x2eaa4f,_0x1bbe8b);}}}return this[_0x574d('0x24')](_0x2eaa4f);}[_0x574d('0x47')](_0x31fb4b){this['_customCallbacks'][_0x574d('0x22')](_0x31fb4b);}[_0x574d('0x16')](_0x133ac8,_0x57db59,_0x30071e=_0x4db920[_0x574d('0x23')]){'function'==typeof _0x133ac8?_0x59aad3(this[_0x574d('0x34')],{'matchingCallback':_0x133ac8,'label':_0x57db59,'priority':_0x30071e}):this['_itemLabels']['set'](_0x133ac8,_0x57db59);}[_0x574d('0x25')](_0x5708df,_0x4a5f1c){this['_attributeLabels']['set'](_0x5708df,_0x4a5f1c);}[_0x574d('0x12')](_0x3ad97c,_0x39cea8=0x1){let _0xef9322;for(const _0x2efd8b of this[_0x574d('0x34')])if(_0x2efd8b[_0x574d('0x35')](_0x3ad97c)){_0xef9322=_0x2efd8b[_0x574d('0x18')];break;}return _0xef9322||(_0xef9322=this[_0x574d('0x44')][_0x574d('0x14')](_0x3ad97c[_0x574d('0x8')])),_0xef9322?_0xef9322(_0x39cea8):0x1!==_0x39cea8?_0x39cea8+'\x20'+_0x3ad97c[_0x574d('0x8')]+'s':''+_0x3ad97c[_0x574d('0x8')];}[_0x574d('0x29')](_0x4e0d7a,_0x3960b0){const _0x569389=_0x3960b0[_0x574d('0x36')]()[_0x574d('0x13')](),_0x509318='insertion'==_0x3960b0[_0x574d('0xe')]?_0x574d('0x2b'):'remove';for(const _0x46b58e of _0x569389){const _0x50fa84=_0x46b58e[_0x574d('0x51')],_0x496ed6=_0x4e0d7a[_0x4e0d7a[_0x574d('0x19')]-0x1];if(_0x50fa84['is'](_0x574d('0x26')))_0x496ed6&&_0x496ed6[_0x574d('0xe')]['indexOf'](_0x574d('0x1c'))>-0x1&&_0x4e0d7a[_0x574d('0x32')](),_0x496ed6&&_0x574d('0x4d')==_0x496ed6[_0x574d('0xe')]?_0x496ed6[_0x509318]+=_0x50fa84['data']:_0x4e0d7a[_0x574d('0x22')]({'type':_0x574d('0x4d'),'add':'add'==_0x509318?_0x50fa84[_0x574d('0x3f')]:'','remove':_0x574d('0x4b')==_0x509318?_0x50fa84['data']:''});else{if(this['_schema'][_0x574d('0x1f')](_0x50fa84)){const _0x597612=_0x50fa84;if(_0x496ed6&&_0x496ed6['type']['indexOf'](_0x574d('0x1c'))>-0x1&&_0x4e0d7a[_0x574d('0x32')](),_0x574d('0x15')==_0x46b58e[_0x574d('0xe')])continue;_0x496ed6&&_0x496ed6[_0x574d('0xe')]==_0x509318+_0x574d('0x2a')&&_0x496ed6['element'][_0x574d('0x8')]==_0x597612[_0x574d('0x8')]?_0x496ed6[_0x574d('0x0')]++:_0x4e0d7a['push']({'type':_0x509318+'Object','element':_0x597612,'quantity':0x1}),_0x569389[_0x574d('0x38')](_0x554b44=>!(_0x574d('0x15')==_0x554b44['type']&&_0x554b44[_0x574d('0x51')]==_0x50fa84));}else{if(this[_0x574d('0x3c')][_0x574d('0x4a')](_0x50fa84,_0x574d('0x2e'))||_0x50fa84['is'](_0x574d('0x4c'),_0x574d('0x43'))){const _0x39aa30=_0x50fa84;if(_0x574d('0x2b')==_0x509318&&_0x574d('0x3b')==_0x46b58e[_0x574d('0xe')]||_0x574d('0x4b')==_0x509318&&_0x574d('0x15')==_0x46b58e['type'])continue;if(_0x496ed6&&-0x1==_0x496ed6['type'][_0x574d('0x17')]('Container')){_0x574d('0x4d')==_0x496ed6[_0x574d('0xe')]&&(_0x496ed6[_0x509318]+='\x0a');continue;}let _0x2ec6fe;if(_0x2ec6fe=_0x574d('0x2b')==_0x509318?_0x39aa30[_0x574d('0x40')]&&!this[_0x574d('0x3c')][_0x574d('0x1f')](_0x39aa30[_0x574d('0x40')])?_0x39aa30[_0x574d('0x40')]:null:_0x39aa30[_0x574d('0xf')]&&!this[_0x574d('0x3c')]['isObject'](_0x39aa30[_0x574d('0xf')])?_0x39aa30[_0x574d('0xf')]:null,_0x39aa30['isEmpty']||_0x2ec6fe&&_0x2ec6fe[_0x574d('0x21')]){const _0x7fbb47=_0x2ec6fe&&_0x2ec6fe[_0x574d('0x21')]?_0x2ec6fe:_0x39aa30;_0x496ed6&&_0x496ed6[_0x574d('0xe')]==_0x509318+_0x574d('0x1e')&&_0x496ed6[_0x574d('0x4c')][_0x574d('0x8')]==_0x7fbb47[_0x574d('0x8')]?_0x496ed6[_0x574d('0x0')]++:_0x4e0d7a['push']({'type':_0x509318+_0x574d('0x1e'),'element':_0x7fbb47,'quantity':0x1});}else _0x4e0d7a['push']({'type':_0x509318+_0x574d('0x1c'),'element':_0x39aa30});}}}}}[_0x574d('0x24')](_0x119929){const _0x14d0b7=this[_0x574d('0x2d')],_0x4ff9db=[],_0x25d105=[],_0x48adb0=[];for(const _0x45d7bb of _0x119929)switch(_0x45d7bb[_0x574d('0xe')]){case _0x574d('0x4d'):if(_0x45d7bb[_0x574d('0x2b')]=_0x45d7bb[_0x574d('0x2b')][_0x574d('0x27')](/(\S)\u000A+(\S)/g,'$1\x20$2')[_0x574d('0x27')](/\u000A/g,''),_0x45d7bb[_0x574d('0x4b')]=_0x45d7bb[_0x574d('0x4b')][_0x574d('0x27')](/(\S)\u000A+(\S)/g,_0x574d('0x4f'))[_0x574d('0x27')](/\u000A/g,''),''!=_0x45d7bb['add']&&''!=_0x45d7bb[_0x574d('0x4b')]){_0x4ff9db[_0x574d('0x22')]({'type':_0x574d('0x27'),'content':_0x2191b9(_0x14d0b7,_0x574d('0x3a'),['\x22'+_0x45d7bb[_0x574d('0x4b')]+'\x22','\x22'+_0x45d7bb[_0x574d('0x2b')]+'\x22'])});continue;}if(null!=_0x45d7bb[_0x574d('0x2b')][_0x574d('0x3d')](/^ +$/)){_0x4ff9db['push']({'type':_0x574d('0x3'),'content':_0x2191b9(_0x14d0b7,_0x574d('0x50'),_0x2191b9(_0x14d0b7,_0x574d('0x1a'),_0x45d7bb[_0x574d('0x2b')]['length']))});continue;}if(null!=_0x45d7bb[_0x574d('0x4b')][_0x574d('0x3d')](/^ +$/)){_0x4ff9db['push']({'type':_0x574d('0x49'),'content':_0x2191b9(_0x14d0b7,_0x574d('0xb'),_0x2191b9(_0x14d0b7,_0x574d('0x1a'),_0x45d7bb[_0x574d('0x4b')][_0x574d('0x19')]))});continue;}if(''!=_0x45d7bb['add']){_0x4ff9db[_0x574d('0x22')]({'type':_0x574d('0x3'),'content':_0x2191b9(_0x14d0b7,_0x574d('0x50'),'\x22'+_0x45d7bb['add']+'\x22')});continue;}_0x4ff9db[_0x574d('0x22')]({'type':'deletion','content':_0x2191b9(_0x14d0b7,_0x574d('0xb'),'\x22'+_0x45d7bb[_0x574d('0x4b')]+'\x22')});continue;case _0x574d('0xa'):case'addObject':_0x4ff9db['push']({'type':_0x574d('0x3'),'content':_0x2191b9(_0x14d0b7,_0x574d('0x50'),this[_0x574d('0x12')](_0x45d7bb[_0x574d('0x4c')],_0x45d7bb[_0x574d('0x0')]))});continue;case _0x574d('0x45'):case _0x574d('0x10'):_0x4ff9db['push']({'type':_0x574d('0x49'),'content':_0x2191b9(_0x14d0b7,_0x574d('0xb'),this['getItemLabel'](_0x45d7bb['element'],_0x45d7bb['quantity']))});continue;case'addContainer':_0x4ff9db[_0x574d('0x22')]({'type':'insertion','content':_0x2191b9(_0x14d0b7,'*Split:*\x20%0',this[_0x574d('0x12')](_0x45d7bb['element'],_0x45d7bb[_0x574d('0x0')]))});continue;case _0x574d('0x33'):_0x4ff9db['push']({'type':_0x574d('0x49'),'content':_0x2191b9(_0x14d0b7,_0x574d('0x4'),this[_0x574d('0x12')](_0x45d7bb['element'],_0x45d7bb[_0x574d('0x0')]))});continue;case _0x574d('0x4e'):_0x25d105['push'](_0x45d7bb[_0x574d('0x1d')]);continue;case _0x574d('0xc'):_0x48adb0['push'](_0x45d7bb[_0x574d('0x1d')]);continue;default:_0x4ff9db[_0x574d('0x22')](_0x45d7bb);}if(_0x25d105['length']){const _0x1639e7=_0x25d105[_0x574d('0x9')](_0x1244b4=>this[_0x574d('0x7')]['has'](_0x1244b4)?this[_0x574d('0x7')][_0x574d('0x14')](_0x1244b4):_0x1244b4)[_0x574d('0x20')](',\x20');_0x4ff9db[_0x574d('0x22')]({'type':_0x574d('0x3e'),'content':_0x2191b9(this[_0x574d('0x2d')],_0x574d('0x41'),_0x1639e7)});}if(_0x48adb0[_0x574d('0x19')]){const _0x34511a=_0x48adb0[_0x574d('0x9')](_0x539c80=>this['_attributeLabels'][_0x574d('0x1')](_0x539c80)?this['_attributeLabels'][_0x574d('0x14')](_0x539c80):_0x539c80)[_0x574d('0x20')](',\x20');_0x4ff9db[_0x574d('0x22')]({'type':'format','content':_0x2191b9(this['_locale'],_0x574d('0x42'),_0x34511a)});}return _0x4ff9db;}[_0x574d('0x2f')](_0x39f189){for(const _0x1d5732 of this[_0x574d('0x37')]){const _0x60ff11=_0x1d5732(_0x39f189);if(_0x60ff11&&_0x574d('0xe')in _0x60ff11)return _0x60ff11;}}['_handleAttributeSuggestionDescription'](_0x56f428,_0x2e5527){const _0x2c8a51=_0x2e5527[_0x574d('0x3f')],_0x2b3293=void 0x0===_0x2c8a51[_0x574d('0x28')]?_0x574d('0xc'):_0x574d('0x4e');_0x56f428[_0x574d('0x22')]({'type':_0x2b3293,'key':_0x2c8a51[_0x574d('0x1d')]});}[_0x574d('0x11')](_0x28419b,_0x6cca25){_0x28419b['push']({'type':_0x574d('0x3e'),'content':_0x2191b9(this['_locale'],_0x574d('0x48'),this[_0x574d('0x12')](_0x6cca25[_0x574d('0x36')]()[_0x574d('0x2c')][_0x574d('0x2')],0x1))});}[_0x574d('0x39')](_0x1c5fff,_0x2d5bc4,_0x53c0f3){if(this['_addDescriptionItems'](_0x1c5fff,_0x2d5bc4),_0x53c0f3&&_0x53c0f3['getFirstRange']()&&!_0x2d5bc4[_0x574d('0x36')]()[_0x574d('0x31')][_0x574d('0x46')](_0x53c0f3['getFirstRange']()[_0x574d('0x2c')])){const _0x324b5a=_0x1c5fff[_0x1c5fff[_0x574d('0x19')]-0x1],_0x4a714a=_0x574d('0x3')==_0x2d5bc4['type']?_0x574d('0x2b'):_0x574d('0x4b');_0x324b5a&&_0x574d('0x4d')==_0x324b5a[_0x574d('0xe')]&&(_0x324b5a[_0x4a714a]+='\x0a');}}}
|
|
23
|
+
const _0x46cc=['replace','addObject','newValue','type','addContainer','insertion','isEqual','matchingCallback','isObject','add','_itemLabels','match','elementStart','nodeAfter','*Remove:*\x20%0','label','text','key','elementEnd','join','format','_attributeLabels','removeFormat','subType','$textProxy','_handleAttributeSuggestionDescription','isEmpty','REPLACE_TEXT','getFirstRange','map','Object','removeObject','getItemLabel','_locale','nextSibling','pop','indexOf','*Merge:*\x20%0','removeContainer','function','_resolveDescriptionItems','*Insert:*\x20%0','_handleInsertRemoveSuggestionDescription','*Change\x20to:*\x20%0','item','name','element','_itemLabelsCallbacks','_schema','EmptyContainer','$1\x20$2','data','registerElementLabel','Container','deletion','softBreak','attribute','remove','_handleCustomCallbackDescription','isInContent','push','length','get','quantity','_handleRenameSuggestionDescription','start','registerAttributeLabel','normal','_addDescriptionItems','set','_customCallbacks','addEmptyContainer','has','addFormat','ELEMENT_SPACE'];(function(_0x225df4,_0x46cc1d){const _0x2577ec=function(_0x392f4d){while(--_0x392f4d){_0x225df4['push'](_0x225df4['shift']());}};_0x2577ec(++_0x46cc1d);}(_0x46cc,0xf4));const _0x2577=function(_0x225df4,_0x46cc1d){_0x225df4=_0x225df4-0x0;let _0x2577ec=_0x46cc[_0x225df4];return _0x2577ec;};import{getTranslation as _0xd1e2b}from'./utils/common-translations';import{priorities as _0x2247ff,insertToPriorityArray as _0x303e1a}from'ckeditor5/src/utils';import{renameAttributeKey as _0x50673f}from'./trackchangesediting';export default class f{constructor(_0x168a73,_0x5eecfb){this[_0x2577('0x33')]=[],this[_0x2577('0x42')]=new Map(),this[_0x2577('0x1c')]=[],this['_attributeLabels']=new Map(),this['_schema']=_0x168a73,this['_locale']=_0x5eecfb;}['getDescriptions'](_0x355ed6){const _0x33ab69=[],_0x1cd37d=new Set(),_0x5157be=new Set();for(let _0x7e0a67=0x0;_0x7e0a67<_0x355ed6['length'];_0x7e0a67++){const _0x4ddd08=_0x355ed6[_0x7e0a67];if(!_0x4ddd08[_0x2577('0x28')])continue;const _0x3cb7c4=this[_0x2577('0x27')](_0x4ddd08);if(_0x3cb7c4){if(null!=_0x4ddd08[_0x2577('0x4')]){if(_0x1cd37d[_0x2577('0x35')](_0x4ddd08['subType']))continue;_0x1cd37d['add'](_0x4ddd08[_0x2577('0x4')]);}_0x33ab69[_0x2577('0x29')](_0x3cb7c4);}else{if(_0x2577('0x25')!=_0x4ddd08['type'])_0x2577('0x3d')!=_0x4ddd08['type']&&'deletion'!=_0x4ddd08[_0x2577('0x3b')]||this[_0x2577('0x17')](_0x33ab69,_0x4ddd08,_0x355ed6[_0x7e0a67+0x1]);else{const _0x25f694=_0x4ddd08[_0x2577('0x20')][_0x2577('0x49')];if(_0x5157be[_0x2577('0x35')](_0x25f694))continue;_0x5157be[_0x2577('0x41')](_0x4ddd08[_0x2577('0x20')]['key']),_0x25f694==_0x50673f?this[_0x2577('0x2d')](_0x33ab69,_0x4ddd08):this[_0x2577('0x6')](_0x33ab69,_0x4ddd08);}}}return this['_resolveDescriptionItems'](_0x33ab69);}['registerDescriptionCallback'](_0x192ed2){this['_customCallbacks'][_0x2577('0x29')](_0x192ed2);}[_0x2577('0x21')](_0x2722aa,_0x47d51b,_0x2308bf=_0x2247ff[_0x2577('0x30')]){_0x2577('0x14')==typeof _0x2722aa?_0x303e1a(this[_0x2577('0x1c')],{'matchingCallback':_0x2722aa,'label':_0x47d51b,'priority':_0x2308bf}):this['_itemLabels']['set'](_0x2722aa,_0x47d51b);}[_0x2577('0x2f')](_0x8a6af9,_0x39396e){this[_0x2577('0x2')][_0x2577('0x32')](_0x8a6af9,_0x39396e);}[_0x2577('0xd')](_0x5ebe47,_0x3a573d=0x1){let _0x33ab1a;for(const _0xef136c of this['_itemLabelsCallbacks'])if(_0xef136c[_0x2577('0x3f')](_0x5ebe47)){_0x33ab1a=_0xef136c[_0x2577('0x47')];break;}return _0x33ab1a||(_0x33ab1a=this[_0x2577('0x42')][_0x2577('0x2b')](_0x5ebe47[_0x2577('0x1a')])),_0x33ab1a?_0x33ab1a(_0x3a573d):0x1!==_0x3a573d?_0x3a573d+'\x20'+_0x5ebe47[_0x2577('0x1a')]+'s':''+_0x5ebe47[_0x2577('0x1a')];}[_0x2577('0x31')](_0x1a47a7,_0x3b5cfb){const _0x122c33=_0x3b5cfb['getFirstRange']()['getWalker'](),_0x5a8ea0=_0x2577('0x3d')==_0x3b5cfb[_0x2577('0x3b')]?_0x2577('0x41'):_0x2577('0x26');for(const _0x6aa0db of _0x122c33){const _0x58a407=_0x6aa0db[_0x2577('0x19')],_0x16c594=_0x1a47a7[_0x1a47a7[_0x2577('0x2a')]-0x1];if(_0x58a407['is'](_0x2577('0x5')))_0x16c594&&_0x16c594[_0x2577('0x3b')][_0x2577('0x11')]('Container')>-0x1&&_0x1a47a7[_0x2577('0x10')](),_0x16c594&&_0x2577('0x48')==_0x16c594[_0x2577('0x3b')]?_0x16c594[_0x5a8ea0]+=_0x58a407[_0x2577('0x20')]:_0x1a47a7[_0x2577('0x29')]({'type':_0x2577('0x48'),'add':_0x2577('0x41')==_0x5a8ea0?_0x58a407[_0x2577('0x20')]:'','remove':_0x2577('0x26')==_0x5a8ea0?_0x58a407['data']:''});else{if(this['_schema'][_0x2577('0x40')](_0x58a407)){const _0x108f63=_0x58a407;if(_0x16c594&&_0x16c594['type']['indexOf'](_0x2577('0x22'))>-0x1&&_0x1a47a7[_0x2577('0x10')](),_0x2577('0x4a')==_0x6aa0db[_0x2577('0x3b')])continue;_0x16c594&&_0x16c594['type']==_0x5a8ea0+'Object'&&_0x16c594[_0x2577('0x1b')][_0x2577('0x1a')]==_0x108f63[_0x2577('0x1a')]?_0x16c594[_0x2577('0x2c')]++:_0x1a47a7[_0x2577('0x29')]({'type':_0x5a8ea0+_0x2577('0xb'),'element':_0x108f63,'quantity':0x1}),_0x122c33['skip'](_0x134293=>!(_0x2577('0x4a')==_0x134293[_0x2577('0x3b')]&&_0x134293[_0x2577('0x19')]==_0x58a407));}else{if(this[_0x2577('0x1d')]['checkChild'](_0x58a407,'$text')||_0x58a407['is'](_0x2577('0x1b'),_0x2577('0x24'))){const _0x14d7b1=_0x58a407;if(_0x2577('0x41')==_0x5a8ea0&&_0x2577('0x44')==_0x6aa0db[_0x2577('0x3b')]||'remove'==_0x5a8ea0&&_0x2577('0x4a')==_0x6aa0db[_0x2577('0x3b')])continue;if(_0x16c594&&-0x1==_0x16c594[_0x2577('0x3b')][_0x2577('0x11')](_0x2577('0x22'))){_0x2577('0x48')==_0x16c594[_0x2577('0x3b')]&&(_0x16c594[_0x5a8ea0]+='\x0a');continue;}let _0x1868c6;if(_0x1868c6=_0x2577('0x41')==_0x5a8ea0?_0x14d7b1['nextSibling']&&!this[_0x2577('0x1d')][_0x2577('0x40')](_0x14d7b1[_0x2577('0xf')])?_0x14d7b1[_0x2577('0xf')]:null:_0x14d7b1['previousSibling']&&!this[_0x2577('0x1d')][_0x2577('0x40')](_0x14d7b1['previousSibling'])?_0x14d7b1['previousSibling']:null,_0x14d7b1[_0x2577('0x7')]||_0x1868c6&&_0x1868c6[_0x2577('0x7')]){const _0x347a6e=_0x1868c6&&_0x1868c6[_0x2577('0x7')]?_0x1868c6:_0x14d7b1;_0x16c594&&_0x16c594['type']==_0x5a8ea0+_0x2577('0x1e')&&_0x16c594[_0x2577('0x1b')][_0x2577('0x1a')]==_0x347a6e['name']?_0x16c594[_0x2577('0x2c')]++:_0x1a47a7[_0x2577('0x29')]({'type':_0x5a8ea0+'EmptyContainer','element':_0x347a6e,'quantity':0x1});}else _0x1a47a7[_0x2577('0x29')]({'type':_0x5a8ea0+'Container','element':_0x14d7b1});}}}}}[_0x2577('0x15')](_0x202b79){const _0x43d928=this['_locale'],_0xa9874f=[],_0x3f1a7c=[],_0x299c0b=[];for(const _0x39caa5 of _0x202b79)switch(_0x39caa5[_0x2577('0x3b')]){case _0x2577('0x48'):if(_0x39caa5[_0x2577('0x41')]=_0x39caa5['add'][_0x2577('0x38')](/(\S)\u000A+(\S)/g,_0x2577('0x1f'))[_0x2577('0x38')](/\u000A/g,''),_0x39caa5[_0x2577('0x26')]=_0x39caa5[_0x2577('0x26')][_0x2577('0x38')](/(\S)\u000A+(\S)/g,_0x2577('0x1f'))[_0x2577('0x38')](/\u000A/g,''),''!=_0x39caa5[_0x2577('0x41')]&&''!=_0x39caa5[_0x2577('0x26')]){_0xa9874f['push']({'type':_0x2577('0x38'),'content':_0xd1e2b(_0x43d928,_0x2577('0x8'),['\x22'+_0x39caa5[_0x2577('0x26')]+'\x22','\x22'+_0x39caa5['add']+'\x22'])});continue;}if(null!=_0x39caa5[_0x2577('0x41')][_0x2577('0x43')](/^ +$/)){_0xa9874f[_0x2577('0x29')]({'type':'insertion','content':_0xd1e2b(_0x43d928,_0x2577('0x16'),_0xd1e2b(_0x43d928,_0x2577('0x37'),_0x39caa5[_0x2577('0x41')][_0x2577('0x2a')]))});continue;}if(null!=_0x39caa5['remove']['match'](/^ +$/)){_0xa9874f[_0x2577('0x29')]({'type':_0x2577('0x23'),'content':_0xd1e2b(_0x43d928,_0x2577('0x46'),_0xd1e2b(_0x43d928,_0x2577('0x37'),_0x39caa5['remove'][_0x2577('0x2a')]))});continue;}if(''!=_0x39caa5[_0x2577('0x41')]){_0xa9874f['push']({'type':_0x2577('0x3d'),'content':_0xd1e2b(_0x43d928,_0x2577('0x16'),'\x22'+_0x39caa5[_0x2577('0x41')]+'\x22')});continue;}_0xa9874f[_0x2577('0x29')]({'type':_0x2577('0x23'),'content':_0xd1e2b(_0x43d928,_0x2577('0x46'),'\x22'+_0x39caa5[_0x2577('0x26')]+'\x22')});continue;case _0x2577('0x34'):case _0x2577('0x39'):_0xa9874f['push']({'type':_0x2577('0x3d'),'content':_0xd1e2b(_0x43d928,_0x2577('0x16'),this[_0x2577('0xd')](_0x39caa5[_0x2577('0x1b')],_0x39caa5[_0x2577('0x2c')]))});continue;case'removeEmptyContainer':case _0x2577('0xc'):_0xa9874f['push']({'type':_0x2577('0x23'),'content':_0xd1e2b(_0x43d928,_0x2577('0x46'),this[_0x2577('0xd')](_0x39caa5[_0x2577('0x1b')],_0x39caa5['quantity']))});continue;case _0x2577('0x3c'):_0xa9874f['push']({'type':_0x2577('0x3d'),'content':_0xd1e2b(_0x43d928,'*Split:*\x20%0',this['getItemLabel'](_0x39caa5[_0x2577('0x1b')],_0x39caa5[_0x2577('0x2c')]))});continue;case _0x2577('0x13'):_0xa9874f[_0x2577('0x29')]({'type':_0x2577('0x23'),'content':_0xd1e2b(_0x43d928,_0x2577('0x12'),this[_0x2577('0xd')](_0x39caa5[_0x2577('0x1b')],_0x39caa5[_0x2577('0x2c')]))});continue;case'addFormat':_0x3f1a7c[_0x2577('0x29')](_0x39caa5[_0x2577('0x49')]);continue;case _0x2577('0x3'):_0x299c0b[_0x2577('0x29')](_0x39caa5['key']);continue;default:_0xa9874f[_0x2577('0x29')](_0x39caa5);}if(_0x3f1a7c[_0x2577('0x2a')]){const _0x3a102d=_0x3f1a7c[_0x2577('0xa')](_0x3ad743=>this[_0x2577('0x2')]['has'](_0x3ad743)?this[_0x2577('0x2')]['get'](_0x3ad743):_0x3ad743)[_0x2577('0x0')](',\x20');_0xa9874f[_0x2577('0x29')]({'type':_0x2577('0x1'),'content':_0xd1e2b(this[_0x2577('0xe')],'*Set\x20format:*\x20%0',_0x3a102d)});}if(_0x299c0b[_0x2577('0x2a')]){const _0x62c932=_0x299c0b[_0x2577('0xa')](_0x1b78c0=>this[_0x2577('0x2')][_0x2577('0x35')](_0x1b78c0)?this[_0x2577('0x2')]['get'](_0x1b78c0):_0x1b78c0)[_0x2577('0x0')](',\x20');_0xa9874f[_0x2577('0x29')]({'type':_0x2577('0x1'),'content':_0xd1e2b(this[_0x2577('0xe')],'*Remove\x20format:*\x20%0',_0x62c932)});}return _0xa9874f;}[_0x2577('0x27')](_0x5d5950){for(const _0x124a92 of this[_0x2577('0x33')]){const _0x5bdbb9=_0x124a92(_0x5d5950);if(_0x5bdbb9&&'type'in _0x5bdbb9)return _0x5bdbb9;}}[_0x2577('0x6')](_0x36116a,_0x4f0f8c){const _0x5e9d5c=_0x4f0f8c[_0x2577('0x20')],_0x3aca68=void 0x0===_0x5e9d5c[_0x2577('0x3a')]?'removeFormat':_0x2577('0x36');_0x36116a[_0x2577('0x29')]({'type':_0x3aca68,'key':_0x5e9d5c[_0x2577('0x49')]});}['_handleRenameSuggestionDescription'](_0xbb30a7,_0x4a60bb){_0xbb30a7[_0x2577('0x29')]({'type':_0x2577('0x1'),'content':_0xd1e2b(this[_0x2577('0xe')],_0x2577('0x18'),this[_0x2577('0xd')](_0x4a60bb[_0x2577('0x9')]()[_0x2577('0x2e')][_0x2577('0x45')],0x1))});}[_0x2577('0x17')](_0x329471,_0x1e8329,_0xa364d1){if(this[_0x2577('0x31')](_0x329471,_0x1e8329),_0xa364d1&&_0xa364d1[_0x2577('0x9')]()&&!_0x1e8329['getFirstRange']()['end'][_0x2577('0x3e')](_0xa364d1[_0x2577('0x9')]()[_0x2577('0x2e')])){const _0x34905c=_0x329471[_0x329471[_0x2577('0x2a')]-0x1],_0x328e64=_0x2577('0x3d')==_0x1e8329[_0x2577('0x3b')]?_0x2577('0x41'):_0x2577('0x26');_0x34905c&&_0x2577('0x48')==_0x34905c[_0x2577('0x3b')]&&(_0x34905c[_0x328e64]+='\x0a');}}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3f7c=['requires','TrackChanges','get','getSuggestion','plugins','addSuggestion','adapter','editor','pluginName'];(function(_0x21c93b,_0x3f7ce5){var _0x460be3=function(_0x262617){while(--_0x262617){_0x21c93b['push'](_0x21c93b['shift']());}};_0x460be3(++_0x3f7ce5);}(_0x3f7c,0xf2));var _0x460b=function(_0x21c93b,_0x3f7ce5){_0x21c93b=_0x21c93b-0x0;var _0x460be3=_0x3f7c[_0x21c93b];return _0x460be3;};import{Plugin as _0x5adb36}from'ckeditor5/src/core';import _0x4f05fb from'./trackchangesui';import _0x4eb974 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x5adb36{static get[_0x460b('0x1')](){return[_0x4eb974,_0x4f05fb,'Comments'];}static get[_0x460b('0x0')](){return _0x460b('0x2');}set[_0x460b('0x7')](_0x42a31a){this[_0x460b('0x8')][_0x460b('0x5')]['get'](_0x4eb974)[_0x460b('0x7')]=_0x42a31a;}get[_0x460b('0x7')](){return this[_0x460b('0x8')][_0x460b('0x5')][_0x460b('0x3')](_0x4eb974)[_0x460b('0x7')];}[_0x460b('0x6')](_0x5a20f2){return this['editor']['plugins'][_0x460b('0x3')](_0x4eb974)['addSuggestionData'](_0x5a20f2);}['getSuggestions']({skipNotAttached:_0x19391e=!0x1,toJSON:_0x4ca820=!0x1}={}){return this[_0x460b('0x8')][_0x460b('0x5')][_0x460b('0x3')](_0x4eb974)['getSuggestions']({'skipNotAttached':_0x19391e,'toJSON':_0x4ca820});}[_0x460b('0x4')](_0x12fa43){return this[_0x460b('0x8')][_0x460b('0x5')][_0x460b('0x3')](_0x4eb974)[_0x460b('0x4')](_0x12fa43);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xe9f5=['end','map','getRootsAttributes','getDataWithAcceptedSuggestions','get','plugins','editor','getRootNames','document','createElement','_adapter','TrackChangesEditing','pluginName','requires','init','set','div','discardAllSuggestions','reduce','createDocumentFragment','getUser','define','CommentsRepository','editorCreator','addSuggestionData','getFullData','Pagination','getDataWithDiscardedSuggestions','trackChangesData','execute','track-changes-data-invalid-editor-creator','rootsAttributes','model','constructor','addUser','data','config'];(function(_0x41bd8f,_0xe9f5ef){const _0x32cc6b=function(_0x404f90){while(--_0x404f90){_0x41bd8f['push'](_0x41bd8f['shift']());}};_0x32cc6b(++_0xe9f5ef);}(_0xe9f5,0x178));const _0x32cc=function(_0x41bd8f,_0xe9f5ef){_0x41bd8f=_0x41bd8f-0x0;let _0x32cc6b=_0xe9f5[_0x41bd8f];return _0x32cc6b;};import{Plugin as _0x35c0b6}from'ckeditor5/src/core';import{CKEditorError as _0x1d29b1}from'ckeditor5/src/utils';import _0x5209b4 from'./trackchangesediting';import{sanitizeEditorConfig as _0x54266e}from'ckeditor5-collaboration/src/collaboration-core';const T=[_0x32cc('0x14')];export default class P extends _0x35c0b6{static get[_0x32cc('0x7')](){return[_0x5209b4];}static get[_0x32cc('0x6')](){return'TrackChangesData';}[_0x32cc('0x8')](){const _0xef8592=this[_0x32cc('0x0')];if(_0xef8592[_0x32cc('0x1e')][_0x32cc('0xf')]('trackChangesData.editorCreator',_0x144d86=>{const _0x3e42db=_0xef8592['model'][_0x32cc('0x2')][_0x32cc('0x1')]()[_0x32cc('0xc')]((_0x43b2b,_0x523553)=>(_0x43b2b[_0x523553]='',_0x43b2b),{});return _0xef8592[_0x32cc('0x1b')]['create'](_0x3e42db,_0x144d86);}),'function'!=typeof _0xef8592[_0x32cc('0x1e')][_0x32cc('0x23')]('trackChangesData')['editorCreator'])throw new _0x1d29b1(_0x32cc('0x18'));}[_0x32cc('0x22')](_0x377092){return N(this['editor'],!0x0,_0x377092);}[_0x32cc('0x15')](_0x4ccd4a){return N(this['editor'],!0x1,_0x4ccd4a);}}class D extends _0x35c0b6{static get[_0x32cc('0x6')](){return'TrackChangesDataGetter';}constructor(_0x13a50a){super(_0x13a50a),this['result']=_0x32cc('0x1f');}['init'](){this[_0x32cc('0x0')][_0x32cc('0x24')][_0x32cc('0x23')](_0x32cc('0x10'))[_0x32cc('0x4')]={'addCommentThread':()=>new Promise(()=>{}),'getCommentThread':()=>new Promise(()=>{}),'updateCommentThread':()=>new Promise(()=>{}),'resolveCommentThread':()=>new Promise(()=>{}),'reopenCommentThread':()=>new Promise(()=>{}),'removeCommentThread':()=>new Promise(()=>{}),'addComment':()=>new Promise(()=>{}),'updateComment':()=>new Promise(()=>{}),'removeComment':()=>new Promise(()=>{})},this[_0x32cc('0x0')][_0x32cc('0x24')][_0x32cc('0x23')](_0x32cc('0x5'))[_0x32cc('0x4')]=null;}}function v(_0x3d630a){return void 0x0!==_0x3d630a[_0x32cc('0x21')];}async function N(_0x1c8502,_0x115298,_0x2d6dda){const _0xaa5c10=_0x54266e(_0x1c8502,T);_0xaa5c10[_0x32cc('0x24')]['push'](_0x5209b4,D),_0xaa5c10[_0x32cc('0x19')]=v(_0x1c8502)?_0x1c8502[_0x32cc('0x21')]():void 0x0;const _0x4e03c0=document[_0x32cc('0xd')](),_0x1c20bc=_0x1c8502[_0x32cc('0x1e')]['get'](_0x32cc('0x16'))[_0x32cc('0x11')],_0x384242=await _0x1c20bc(_0xaa5c10,()=>function(_0x22c815){const _0x366270=document[_0x32cc('0x3')](_0x32cc('0xa'));return _0x22c815['appendChild'](_0x366270),_0x366270;}(_0x4e03c0));!function(_0x42f71e,_0x2afae0){const _0x84c05d=_0x42f71e[_0x32cc('0x1a')]['document'][_0x32cc('0x1')]()[_0x32cc('0xc')]((_0x1f11ff,_0x55244d)=>(_0x1f11ff[_0x55244d]=_0x42f71e[_0x32cc('0x1d')][_0x32cc('0x23')]({'rootName':_0x55244d}),_0x1f11ff),{}),_0x45a827=_0x42f71e[_0x32cc('0x24')][_0x32cc('0x23')]('Users')['users'][_0x32cc('0x20')](_0x33cfa3=>({'id':_0x33cfa3['id'],'name':_0x33cfa3['name']})),_0x3239b9=_0x42f71e[_0x32cc('0x24')][_0x32cc('0x23')]('TrackChangesEditing')['getSuggestions']({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x10f210=_0x2afae0[_0x32cc('0x24')][_0x32cc('0x23')]('Users'),_0x3e52ea=_0x2afae0['plugins'][_0x32cc('0x23')]('TrackChangesEditing');for(const _0x16239e of _0x45a827)_0x10f210[_0x32cc('0xe')](_0x16239e['id'])||_0x10f210[_0x32cc('0x1c')](_0x16239e);_0x10f210['me']||_0x10f210['useAnonymousUser']();for(const _0x3c345a of _0x3239b9)_0x3e52ea[_0x32cc('0x12')](_0x3c345a);_0x2afae0['data'][_0x32cc('0x9')](_0x84c05d);}(_0x1c8502,_0x384242),_0x384242[_0x32cc('0x17')](_0x115298?'acceptAllSuggestions':_0x32cc('0xb'));const _0x4ea82f=v(_0x384242)?_0x384242[_0x32cc('0x13')](_0x2d6dda):_0x384242[_0x32cc('0x1d')][_0x32cc('0x23')](_0x2d6dda);return await _0x384242['destroy'](),_0x4ea82f;}
|