@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20240130.0 → 0.0.0-nightly-20240201.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/build/translations/ro.js +1 -1
- package/lang/translations/ro.po +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/casechange.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/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/legacylist.js +1 -1
- package/src/integrations/legacylistproperties.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 _0xa994=['getMultiRangeId','onAccept','data','size','@external','split','substr','_model','removeMarker','from','decorate','_onAttributesChange','authoredAt','getRanges','markers','createdAt','author','head','getRange','length','_markerNames','_isDataLoaded','next','toJSON','isIntersectingWithRange','removeMarkers','previous','hasComments','discard','_onAccept','getMarkerNames','filter','addMarker','_saved','onAttributesChange','creator','push','start','onDiscard','set','subType','getItems','change','removeAttribute','getFirstMarker','setAttribute','_onDiscard','get','accept','type','commentThread','isIntersecting','add','attributes','getAllAdjacentSuggestions','isMultiRange','nodeBefore','getMarkers','map','addRange'];(function(_0x18d9e7,_0xa99499){const _0x2f7fa9=function(_0x2d55c7){while(--_0x2d55c7){_0x18d9e7['push'](_0x18d9e7['shift']());}};_0x2f7fa9(++_0xa99499);}(_0xa994,0xcc));const _0x2f7f=function(_0x18d9e7,_0xa99499){_0x18d9e7=_0x18d9e7-0x0;let _0x2f7fa9=_0xa994[_0x18d9e7];return _0x2f7fa9;};import{Element as _0x2a92f5}from'ckeditor5/src/engine.js';import{ObservableMixin as _0x30aa6d,uid as _0x1ba0ad}from'ckeditor5/src/utils.js';import{cloneDeep as _0x21c524,isEqual as _0x23a907,set as _0x5d2c27,unset as _0x56d4c7}from'lodash-es';export default class u extends _0x30aa6d(){constructor(_0x16dad5,_0x644fae){super(),this[_0x2f7f('0x39')]=!0x1,this['id']=_0x644fae['id'],this[_0x2f7f('0x19')]=_0x644fae['type'],this[_0x2f7f('0x10')]=_0x644fae[_0x2f7f('0x10')]||null,this['author']=_0x644fae[_0x2f7f('0x34')],this[_0x2f7f('0xb')]=_0x644fae[_0x2f7f('0xb')]||_0x644fae[_0x2f7f('0x34')],this['isExternal']=Boolean(_0x644fae[_0x2f7f('0x1d')]&&_0x644fae[_0x2f7f('0x1d')][_0x2f7f('0x28')]),this['data']=null,this[_0x2f7f('0x2b')]=_0x16dad5,this[_0x2f7f('0x5')]=_0x644fae[_0x2f7f('0x25')],this[_0x2f7f('0x16')]=_0x644fae[_0x2f7f('0xe')],this[_0x2f7f('0x2f')]=_0x644fae[_0x2f7f('0xa')],this[_0x2f7f('0x38')]=new Set(),this[_0x2f7f('0x33')]=null,this['set'](_0x2f7f('0x30'),null),this[_0x2f7f('0xf')](_0x2f7f('0x1d'),_0x644fae['attributes']||{}),this[_0x2f7f('0xf')]('previous',null),this['set']('next',null),this[_0x2f7f('0xf')](_0x2f7f('0x1a'),null),this[_0x2f7f('0xf')](_0x2f7f('0x9'),!0x1),this['decorate'](_0x2f7f('0x18')),this[_0x2f7f('0x2e')](_0x2f7f('0x4'));}get[_0x2f7f('0x35')](){let _0x17a26c=this;for(;_0x17a26c[_0x2f7f('0x2')];)_0x17a26c=_0x17a26c['previous'];return _0x17a26c;}get[_0x2f7f('0x3')](){return!!this[_0x2f7f('0x1a')]&&this[_0x2f7f('0x1a')]['length']>0x0;}get[_0x2f7f('0x1f')](){if(0x0==this[_0x2f7f('0x38')][_0x2f7f('0x27')])return!0x1;return 0x6==Array[_0x2f7f('0x2d')](this[_0x2f7f('0x38')])[0x0][_0x2f7f('0x29')](':')['length'];}get['isInContent'](){return null!==this['getFirstMarker']();}['addMarkerName'](_0x15711d){this[_0x2f7f('0x38')][_0x2f7f('0x1c')](_0x15711d);}[_0x2f7f('0x6')](){return Array[_0x2f7f('0x2d')](this[_0x2f7f('0x38')]);}['getMarkers'](){return this[_0x2f7f('0x6')]()[_0x2f7f('0x22')](_0x4bdc22=>this['_model'][_0x2f7f('0x32')][_0x2f7f('0x17')](_0x4bdc22))[_0x2f7f('0x7')](_0x41c068=>_0x41c068);}[_0x2f7f('0x14')](){return this[_0x2f7f('0x21')]()[0x0]||null;}[_0x2f7f('0x1')](){this[_0x2f7f('0x2b')]['change'](_0x5c726c=>{for(const _0x2ecff3 of this[_0x2f7f('0x21')]())_0x5c726c['removeMarker'](_0x2ecff3);}),this[_0x2f7f('0x38')]['clear']();}[_0x2f7f('0x2c')](_0x15ca74){this[_0x2f7f('0x2b')][_0x2f7f('0x12')](_0x2ee102=>{_0x2ee102[_0x2f7f('0x2c')](_0x15ca74);}),this['_markerNames']['delete'](_0x15ca74);}[_0x2f7f('0x23')](_0x9e94ed){const _0x577383='suggestion:'+this[_0x2f7f('0x19')]+':'+this[_0x2f7f('0x10')]+':'+this['id']+':'+this[_0x2f7f('0xb')]['id']+':'+u[_0x2f7f('0x24')]();this['addMarkerName'](_0x577383),this[_0x2f7f('0x2b')][_0x2f7f('0x12')](_0x11bdfe=>{_0x11bdfe[_0x2f7f('0x8')](_0x577383,{'range':_0x9e94ed,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2f7f('0x0')](_0x301f9c){for(const _0x11271f of this[_0x2f7f('0x31')]())if(_0x11271f[_0x2f7f('0x1b')](_0x301f9c))return!0x0;return!0x1;}[_0x2f7f('0x31')](){return this[_0x2f7f('0x21')]()[_0x2f7f('0x22')](_0xfa2a5c=>_0xfa2a5c[_0x2f7f('0x36')]());}['getItems'](){return this['getRanges']()['reduce']((_0x7051cc,_0xbabd14)=>[..._0x7051cc,..._0xbabd14[_0x2f7f('0x11')]()],[]);}['getFirstRange'](){var _0x12beea;return(null===(_0x12beea=this['getFirstMarker']())||void 0x0===_0x12beea?void 0x0:_0x12beea[_0x2f7f('0x36')]())||null;}['getContainedElement'](){const _0x12c72a=this[_0x2f7f('0x31')]();if(0x1!=_0x12c72a[_0x2f7f('0x37')])return null;const _0x22a4d3=_0x12c72a[0x0],_0x26e6f7=_0x22a4d3[_0x2f7f('0xd')]['nodeAfter'],_0x259c67=_0x22a4d3['end'][_0x2f7f('0x20')];return _0x26e6f7 instanceof _0x2a92f5?_0x26e6f7!=_0x259c67?null:_0x26e6f7:null;}[_0x2f7f('0x18')](){this[_0x2f7f('0x5')](this[_0x2f7f('0x31')](),this['data'],this['attributes']),this[_0x2f7f('0x1')]();}[_0x2f7f('0x4')](){this[_0x2f7f('0x16')](this[_0x2f7f('0x31')](),this[_0x2f7f('0x26')],this[_0x2f7f('0x1d')]),this['removeMarkers']();}[_0x2f7f('0x1e')](){const _0x20daea=[];let _0x4b0571=this['head'];for(;_0x4b0571;)_0x20daea[_0x2f7f('0xc')](_0x4b0571),_0x4b0571=_0x4b0571[_0x2f7f('0x3a')];return _0x20daea;}[_0x2f7f('0x15')](_0x4d4a37,_0xe7f90e){const _0x20f7b0=_0x21c524(this[_0x2f7f('0x1d')]);_0x5d2c27(_0x20f7b0,_0x4d4a37,_0xe7f90e),_0x23a907(_0x20f7b0,this[_0x2f7f('0x1d')])||(this[_0x2f7f('0x1d')]=_0x20f7b0,this[_0x2f7f('0x2f')](_0x20f7b0));}[_0x2f7f('0x13')](_0x3e38b4){const _0x394eda=_0x21c524(this[_0x2f7f('0x1d')]);_0x56d4c7(_0x394eda,_0x3e38b4),_0x23a907(_0x394eda,this[_0x2f7f('0x1d')])||(this['attributes']=_0x394eda,this['_onAttributesChange'](this[_0x2f7f('0x1d')]));}[_0x2f7f('0x3b')](){return{'id':this['id'],'type':this[_0x2f7f('0x10')]?this[_0x2f7f('0x19')]+':'+this[_0x2f7f('0x10')]:this[_0x2f7f('0x19')],'authorId':this[_0x2f7f('0xb')]['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this[_0x2f7f('0x26')],'attributes':this[_0x2f7f('0x1d')]};}static[_0x2f7f('0x24')](){return _0x1ba0ad()[_0x2f7f('0x2a')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4c6a=['$1\x20$2','getDescriptions','_itemLabels','_handleInsertRemoveSuggestionDescription','_customCallbacks','data','*Remove\x20format:*\x20%0','addFormat','getFirstRange','subType','$text','attribute','nodeAfter','newValue','matchingCallback','has','item','match','length','getWalker','push','*Remove:*\x20%0','_schema','_handleAttributeSuggestionDescription','deletion','softBreak','indexOf','checkChild','format','removeFormat','isObject','start','remove','_resolveDescriptionItems','insertion','_locale','Object','getItemLabel','_itemLabelsCallbacks','label','addObject','ELEMENT_SPACE','*Change\x20to:*\x20%0','previousSibling','add','element','_attributeLabels','elementEnd','quantity','addEmptyContainer','EmptyContainer','normal','elementStart','REPLACE_TEXT','text','join','_handleCustomCallbackDescription','*Set\x20format:*\x20%0','registerElementLabel','nextSibling','$textProxy','removeObject','map','removeContainer','_addDescriptionItems','isEmpty','*Insert:*\x20%0','Container','key','replace','name','addContainer','type','registerDescriptionCallback','_handleRenameSuggestionDescription','get','skip','removeEmptyContainer'];(function(_0x426635,_0x4c6a28){const _0x25d5bd=function(_0x9c5ce0){while(--_0x9c5ce0){_0x426635['push'](_0x426635['shift']());}};_0x25d5bd(++_0x4c6a28);}(_0x4c6a,0x17b));const _0x25d5=function(_0x426635,_0x4c6a28){_0x426635=_0x426635-0x0;let _0x25d5bd=_0x4c6a[_0x426635];return _0x25d5bd;};import{getTranslation as _0x4156af}from'./utils/common-translations.js';import{priorities as _0x2d4a56,insertToPriorityArray as _0x2acdcc}from'ckeditor5/src/utils.js';import{renameAttributeKey as _0x38bbf8}from'./trackchangesediting.js';export default class f{constructor(_0x10a83b,_0x3a2565){this[_0x25d5('0xf')]=[],this[_0x25d5('0xd')]=new Map(),this[_0x25d5('0x31')]=[],this[_0x25d5('0x39')]=new Map(),this['_schema']=_0x10a83b,this[_0x25d5('0x2e')]=_0x3a2565;}[_0x25d5('0xc')](_0x353136){const _0x2519ad=[],_0x53dfb2=new Set(),_0x385c26=new Set();for(let _0x3f7f24=0x0;_0x3f7f24<_0x353136[_0x25d5('0x1d')];_0x3f7f24++){const _0x1ed9f9=_0x353136[_0x3f7f24];if(!_0x1ed9f9['isInContent'])continue;const _0x2e439d=this['_handleCustomCallbackDescription'](_0x1ed9f9);if(_0x2e439d){if(null!=_0x1ed9f9['subType']){if(_0x53dfb2[_0x25d5('0x1a')](_0x1ed9f9[_0x25d5('0x14')]))continue;_0x53dfb2[_0x25d5('0x37')](_0x1ed9f9[_0x25d5('0x14')]);}_0x2519ad[_0x25d5('0x1f')](_0x2e439d);}else{if(_0x25d5('0x16')!=_0x1ed9f9[_0x25d5('0x5')])_0x25d5('0x2d')!=_0x1ed9f9['type']&&'deletion'!=_0x1ed9f9['type']||this[_0x25d5('0xe')](_0x2519ad,_0x1ed9f9,_0x353136[_0x3f7f24+0x1]);else{const _0xf6a447=_0x1ed9f9[_0x25d5('0x10')][_0x25d5('0x1')];if(_0x385c26[_0x25d5('0x1a')](_0xf6a447))continue;_0x385c26[_0x25d5('0x37')](_0x1ed9f9[_0x25d5('0x10')][_0x25d5('0x1')]),_0xf6a447==_0x38bbf8?this[_0x25d5('0x7')](_0x2519ad,_0x1ed9f9):this['_handleAttributeSuggestionDescription'](_0x2519ad,_0x1ed9f9);}}}return this[_0x25d5('0x2c')](_0x2519ad);}[_0x25d5('0x6')](_0x565040){this[_0x25d5('0xf')][_0x25d5('0x1f')](_0x565040);}[_0x25d5('0x45')](_0x52f993,_0x5980c2,_0x1cd3aa=_0x2d4a56[_0x25d5('0x3e')]){'function'==typeof _0x52f993?_0x2acdcc(this['_itemLabelsCallbacks'],{'matchingCallback':_0x52f993,'label':_0x5980c2,'priority':_0x1cd3aa}):this[_0x25d5('0xd')]['set'](_0x52f993,_0x5980c2);}['registerAttributeLabel'](_0xda1fcf,_0x289015){this[_0x25d5('0x39')]['set'](_0xda1fcf,_0x289015);}[_0x25d5('0x30')](_0x41b623,_0x276a67=0x1){let _0x331ca9;for(const _0x311c64 of this['_itemLabelsCallbacks'])if(_0x311c64[_0x25d5('0x19')](_0x41b623)){_0x331ca9=_0x311c64[_0x25d5('0x32')];break;}return _0x331ca9||(_0x331ca9=this[_0x25d5('0xd')]['get'](_0x41b623[_0x25d5('0x3')])),_0x331ca9?_0x331ca9(_0x276a67):0x1!==_0x276a67?_0x276a67+'\x20'+_0x41b623[_0x25d5('0x3')]+'s':''+_0x41b623[_0x25d5('0x3')];}[_0x25d5('0x4b')](_0x16f59d,_0x17cf26){const _0x20206b=_0x17cf26[_0x25d5('0x13')]()[_0x25d5('0x1e')](),_0x1c549b=_0x25d5('0x2d')==_0x17cf26[_0x25d5('0x5')]?_0x25d5('0x37'):_0x25d5('0x2b');for(const _0x5e6e08 of _0x20206b){const _0x2120db=_0x5e6e08[_0x25d5('0x1b')],_0x2eb7ef=_0x16f59d[_0x16f59d['length']-0x1];if(_0x2120db['is'](_0x25d5('0x47')))_0x2eb7ef&&_0x2eb7ef[_0x25d5('0x5')][_0x25d5('0x25')](_0x25d5('0x0'))>-0x1&&_0x16f59d['pop'](),_0x2eb7ef&&_0x25d5('0x41')==_0x2eb7ef[_0x25d5('0x5')]?_0x2eb7ef[_0x1c549b]+=_0x2120db[_0x25d5('0x10')]:_0x16f59d[_0x25d5('0x1f')]({'type':_0x25d5('0x41'),'add':_0x25d5('0x37')==_0x1c549b?_0x2120db[_0x25d5('0x10')]:'','remove':'remove'==_0x1c549b?_0x2120db[_0x25d5('0x10')]:''});else{if(this[_0x25d5('0x21')][_0x25d5('0x29')](_0x2120db)){const _0x2a9d74=_0x2120db;if(_0x2eb7ef&&_0x2eb7ef[_0x25d5('0x5')][_0x25d5('0x25')]('Container')>-0x1&&_0x16f59d['pop'](),_0x25d5('0x3a')==_0x5e6e08[_0x25d5('0x5')])continue;_0x2eb7ef&&_0x2eb7ef[_0x25d5('0x5')]==_0x1c549b+_0x25d5('0x2f')&&_0x2eb7ef[_0x25d5('0x38')][_0x25d5('0x3')]==_0x2a9d74[_0x25d5('0x3')]?_0x2eb7ef['quantity']++:_0x16f59d[_0x25d5('0x1f')]({'type':_0x1c549b+_0x25d5('0x2f'),'element':_0x2a9d74,'quantity':0x1}),_0x20206b[_0x25d5('0x9')](_0x40154a=>!(_0x25d5('0x3a')==_0x40154a['type']&&_0x40154a['item']==_0x2120db));}else{if(this[_0x25d5('0x21')][_0x25d5('0x26')](_0x2120db,_0x25d5('0x15'))||_0x2120db['is'](_0x25d5('0x38'),_0x25d5('0x24'))){const _0xe66abf=_0x2120db;if('add'==_0x1c549b&&_0x25d5('0x3f')==_0x5e6e08['type']||'remove'==_0x1c549b&&_0x25d5('0x3a')==_0x5e6e08['type'])continue;if(_0x2eb7ef&&-0x1==_0x2eb7ef[_0x25d5('0x5')][_0x25d5('0x25')]('Container')){'text'==_0x2eb7ef[_0x25d5('0x5')]&&(_0x2eb7ef[_0x1c549b]+='\x0a');continue;}let _0x15ac75;if(_0x15ac75=_0x25d5('0x37')==_0x1c549b?_0xe66abf[_0x25d5('0x46')]&&!this['_schema'][_0x25d5('0x29')](_0xe66abf[_0x25d5('0x46')])?_0xe66abf[_0x25d5('0x46')]:null:_0xe66abf['previousSibling']&&!this[_0x25d5('0x21')][_0x25d5('0x29')](_0xe66abf[_0x25d5('0x36')])?_0xe66abf['previousSibling']:null,_0xe66abf[_0x25d5('0x4c')]||_0x15ac75&&_0x15ac75['isEmpty']){const _0x166e93=_0x15ac75&&_0x15ac75[_0x25d5('0x4c')]?_0x15ac75:_0xe66abf;_0x2eb7ef&&_0x2eb7ef['type']==_0x1c549b+_0x25d5('0x3d')&&_0x2eb7ef[_0x25d5('0x38')][_0x25d5('0x3')]==_0x166e93[_0x25d5('0x3')]?_0x2eb7ef[_0x25d5('0x3b')]++:_0x16f59d[_0x25d5('0x1f')]({'type':_0x1c549b+_0x25d5('0x3d'),'element':_0x166e93,'quantity':0x1});}else _0x16f59d[_0x25d5('0x1f')]({'type':_0x1c549b+_0x25d5('0x0'),'element':_0xe66abf});}}}}}['_resolveDescriptionItems'](_0x48d95e){const _0x2faebb=this[_0x25d5('0x2e')],_0x5dfa99=[],_0x59a67b=[],_0x1bc80b=[];for(const _0x240d6a of _0x48d95e)switch(_0x240d6a[_0x25d5('0x5')]){case _0x25d5('0x41'):if(_0x240d6a[_0x25d5('0x37')]=_0x240d6a[_0x25d5('0x37')][_0x25d5('0x2')](/(\S)\u000A+(\S)/g,_0x25d5('0xb'))[_0x25d5('0x2')](/\u000A/g,''),_0x240d6a[_0x25d5('0x2b')]=_0x240d6a[_0x25d5('0x2b')]['replace'](/(\S)\u000A+(\S)/g,_0x25d5('0xb'))[_0x25d5('0x2')](/\u000A/g,''),''!=_0x240d6a[_0x25d5('0x37')]&&''!=_0x240d6a[_0x25d5('0x2b')]){_0x5dfa99[_0x25d5('0x1f')]({'type':_0x25d5('0x2'),'content':_0x4156af(_0x2faebb,_0x25d5('0x40'),['\x22'+_0x240d6a['remove']+'\x22','\x22'+_0x240d6a['add']+'\x22'])});continue;}if(null!=_0x240d6a[_0x25d5('0x37')][_0x25d5('0x1c')](/^ +$/)){_0x5dfa99['push']({'type':'insertion','content':_0x4156af(_0x2faebb,_0x25d5('0x4d'),_0x4156af(_0x2faebb,_0x25d5('0x34'),_0x240d6a[_0x25d5('0x37')]['length']))});continue;}if(null!=_0x240d6a[_0x25d5('0x2b')]['match'](/^ +$/)){_0x5dfa99[_0x25d5('0x1f')]({'type':_0x25d5('0x23'),'content':_0x4156af(_0x2faebb,_0x25d5('0x20'),_0x4156af(_0x2faebb,_0x25d5('0x34'),_0x240d6a[_0x25d5('0x2b')]['length']))});continue;}if(''!=_0x240d6a[_0x25d5('0x37')]){_0x5dfa99['push']({'type':_0x25d5('0x2d'),'content':_0x4156af(_0x2faebb,_0x25d5('0x4d'),'\x22'+_0x240d6a[_0x25d5('0x37')]+'\x22')});continue;}_0x5dfa99['push']({'type':_0x25d5('0x23'),'content':_0x4156af(_0x2faebb,_0x25d5('0x20'),'\x22'+_0x240d6a[_0x25d5('0x2b')]+'\x22')});continue;case _0x25d5('0x3c'):case _0x25d5('0x33'):_0x5dfa99[_0x25d5('0x1f')]({'type':_0x25d5('0x2d'),'content':_0x4156af(_0x2faebb,_0x25d5('0x4d'),this[_0x25d5('0x30')](_0x240d6a['element'],_0x240d6a[_0x25d5('0x3b')]))});continue;case _0x25d5('0xa'):case _0x25d5('0x48'):_0x5dfa99[_0x25d5('0x1f')]({'type':'deletion','content':_0x4156af(_0x2faebb,_0x25d5('0x20'),this[_0x25d5('0x30')](_0x240d6a[_0x25d5('0x38')],_0x240d6a[_0x25d5('0x3b')]))});continue;case _0x25d5('0x4'):_0x5dfa99[_0x25d5('0x1f')]({'type':_0x25d5('0x2d'),'content':_0x4156af(_0x2faebb,'*Split:*\x20%0',this[_0x25d5('0x30')](_0x240d6a[_0x25d5('0x38')],_0x240d6a[_0x25d5('0x3b')]))});continue;case _0x25d5('0x4a'):_0x5dfa99[_0x25d5('0x1f')]({'type':_0x25d5('0x23'),'content':_0x4156af(_0x2faebb,'*Merge:*\x20%0',this[_0x25d5('0x30')](_0x240d6a[_0x25d5('0x38')],_0x240d6a[_0x25d5('0x3b')]))});continue;case'addFormat':_0x59a67b[_0x25d5('0x1f')](_0x240d6a['key']);continue;case _0x25d5('0x28'):_0x1bc80b[_0x25d5('0x1f')](_0x240d6a[_0x25d5('0x1')]);continue;default:_0x5dfa99[_0x25d5('0x1f')](_0x240d6a);}if(_0x59a67b[_0x25d5('0x1d')]){const _0x3f4c7a=_0x59a67b['map'](_0x3e8d95=>this[_0x25d5('0x39')][_0x25d5('0x1a')](_0x3e8d95)?this['_attributeLabels'][_0x25d5('0x8')](_0x3e8d95):_0x3e8d95)[_0x25d5('0x42')](',\x20');_0x5dfa99[_0x25d5('0x1f')]({'type':_0x25d5('0x27'),'content':_0x4156af(this[_0x25d5('0x2e')],_0x25d5('0x44'),_0x3f4c7a)});}if(_0x1bc80b[_0x25d5('0x1d')]){const _0x2a8585=_0x1bc80b[_0x25d5('0x49')](_0x3ec95f=>this['_attributeLabels']['has'](_0x3ec95f)?this['_attributeLabels'][_0x25d5('0x8')](_0x3ec95f):_0x3ec95f)[_0x25d5('0x42')](',\x20');_0x5dfa99[_0x25d5('0x1f')]({'type':_0x25d5('0x27'),'content':_0x4156af(this[_0x25d5('0x2e')],_0x25d5('0x11'),_0x2a8585)});}return _0x5dfa99;}[_0x25d5('0x43')](_0x51b3ed){for(const _0x40e6fe of this[_0x25d5('0xf')]){const _0x12b891=_0x40e6fe(_0x51b3ed);if(_0x12b891&&_0x25d5('0x5')in _0x12b891)return _0x12b891;}}[_0x25d5('0x22')](_0x3facbc,_0x4cce30){const _0x3f42b8=_0x4cce30['data'],_0x5ecc9a=void 0x0===_0x3f42b8[_0x25d5('0x18')]?_0x25d5('0x28'):_0x25d5('0x12');_0x3facbc[_0x25d5('0x1f')]({'type':_0x5ecc9a,'key':_0x3f42b8[_0x25d5('0x1')]});}[_0x25d5('0x7')](_0x439da8,_0x14ef38){_0x439da8['push']({'type':_0x25d5('0x27'),'content':_0x4156af(this[_0x25d5('0x2e')],_0x25d5('0x35'),this[_0x25d5('0x30')](_0x14ef38[_0x25d5('0x13')]()[_0x25d5('0x2a')][_0x25d5('0x17')],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x203134,_0xf2ee84,_0x1c7ed4){if(this[_0x25d5('0x4b')](_0x203134,_0xf2ee84),_0x1c7ed4&&_0x1c7ed4['getFirstRange']()&&!_0xf2ee84[_0x25d5('0x13')]()['end']['isEqual'](_0x1c7ed4[_0x25d5('0x13')]()['start'])){const _0x4e65ca=_0x203134[_0x203134[_0x25d5('0x1d')]-0x1],_0x4f91e9='insertion'==_0xf2ee84['type']?_0x25d5('0x37'):_0x25d5('0x2b');_0x4e65ca&&'text'==_0x4e65ca[_0x25d5('0x5')]&&(_0x4e65ca[_0x4f91e9]+='\x0a');}}}
|
|
23
|
+
const _0xe027=['format','end','elementEnd','registerDescriptionCallback','deletion','key','has','_attributeLabels','_itemLabels','$text','EmptyContainer','attribute','name','start','_handleInsertRemoveSuggestionDescription','type','removeEmptyContainer','add','addEmptyContainer','removeContainer','isObject','removeObject','subType','_locale','softBreak','addContainer','_handleAttributeSuggestionDescription','addFormat','getItemLabel','set','data','_itemLabelsCallbacks','quantity','length','getDescriptions','Object','*Split:*\x20%0','*Remove\x20format:*\x20%0','indexOf','get','_schema','isEmpty','_handleRenameSuggestionDescription','label','*Change\x20to:*\x20%0','insertion','elementStart','join','_addDescriptionItems','element','text','remove','*Remove:*\x20%0','$1\x20$2','getWalker','getFirstRange','nextSibling','_customCallbacks','_handleCustomCallbackDescription','registerAttributeLabel','pop','*Set\x20format:*\x20%0','$textProxy','isInContent','push','ELEMENT_SPACE','nodeAfter','item','map','*Insert:*\x20%0','previousSibling','Container','match'];(function(_0x13ce9b,_0xe027ee){const _0x38ebbf=function(_0x55a0d1){while(--_0x55a0d1){_0x13ce9b['push'](_0x13ce9b['shift']());}};_0x38ebbf(++_0xe027ee);}(_0xe027,0xb7));const _0x38eb=function(_0x13ce9b,_0xe027ee){_0x13ce9b=_0x13ce9b-0x0;let _0x38ebbf=_0xe027[_0x13ce9b];return _0x38ebbf;};import{getTranslation as _0x257448}from'./utils/common-translations.js';import{priorities as _0x412b99,insertToPriorityArray as _0x426b83}from'ckeditor5/src/utils.js';import{renameAttributeKey as _0x639ef0}from'./trackchangesediting.js';export default class f{constructor(_0x317297,_0x2a81fe){this[_0x38eb('0x14')]=[],this[_0x38eb('0x2c')]=new Map(),this[_0x38eb('0x43')]=[],this[_0x38eb('0x2b')]=new Map(),this[_0x38eb('0x3')]=_0x317297,this[_0x38eb('0x3b')]=_0x2a81fe;}[_0x38eb('0x46')](_0x3003b2){const _0xd71abe=[],_0x487b37=new Set(),_0x409f03=new Set();for(let _0x13b5eb=0x0;_0x13b5eb<_0x3003b2[_0x38eb('0x45')];_0x13b5eb++){const _0x2de91d=_0x3003b2[_0x13b5eb];if(!_0x2de91d[_0x38eb('0x1a')])continue;const _0x59f202=this[_0x38eb('0x15')](_0x2de91d);if(_0x59f202){if(null!=_0x2de91d['subType']){if(_0x487b37[_0x38eb('0x2a')](_0x2de91d[_0x38eb('0x3a')]))continue;_0x487b37[_0x38eb('0x35')](_0x2de91d[_0x38eb('0x3a')]);}_0xd71abe[_0x38eb('0x1b')](_0x59f202);}else{if(_0x38eb('0x2f')!=_0x2de91d[_0x38eb('0x33')])'insertion'!=_0x2de91d[_0x38eb('0x33')]&&_0x38eb('0x28')!=_0x2de91d['type']||this[_0x38eb('0x32')](_0xd71abe,_0x2de91d,_0x3003b2[_0x13b5eb+0x1]);else{const _0x3e39ae=_0x2de91d[_0x38eb('0x42')]['key'];if(_0x409f03['has'](_0x3e39ae))continue;_0x409f03['add'](_0x2de91d[_0x38eb('0x42')][_0x38eb('0x29')]),_0x3e39ae==_0x639ef0?this[_0x38eb('0x5')](_0xd71abe,_0x2de91d):this[_0x38eb('0x3e')](_0xd71abe,_0x2de91d);}}}return this['_resolveDescriptionItems'](_0xd71abe);}[_0x38eb('0x27')](_0x3d069f){this[_0x38eb('0x14')]['push'](_0x3d069f);}['registerElementLabel'](_0x5008b2,_0x10d42b,_0x451f87=_0x412b99['normal']){'function'==typeof _0x5008b2?_0x426b83(this[_0x38eb('0x43')],{'matchingCallback':_0x5008b2,'label':_0x10d42b,'priority':_0x451f87}):this[_0x38eb('0x2c')]['set'](_0x5008b2,_0x10d42b);}[_0x38eb('0x16')](_0x24bcd3,_0x3e7c75){this[_0x38eb('0x2b')][_0x38eb('0x41')](_0x24bcd3,_0x3e7c75);}[_0x38eb('0x40')](_0x38525b,_0x1b5499=0x1){let _0xf6d1ad;for(const _0x1cfb0a of this['_itemLabelsCallbacks'])if(_0x1cfb0a['matchingCallback'](_0x38525b)){_0xf6d1ad=_0x1cfb0a[_0x38eb('0x6')];break;}return _0xf6d1ad||(_0xf6d1ad=this['_itemLabels'][_0x38eb('0x2')](_0x38525b[_0x38eb('0x30')])),_0xf6d1ad?_0xf6d1ad(_0x1b5499):0x1!==_0x1b5499?_0x1b5499+'\x20'+_0x38525b['name']+'s':''+_0x38525b[_0x38eb('0x30')];}['_addDescriptionItems'](_0x3f6fef,_0x3cf4da){const _0x56c68e=_0x3cf4da[_0x38eb('0x12')]()[_0x38eb('0x11')](),_0x4d3857=_0x38eb('0x8')==_0x3cf4da['type']?_0x38eb('0x35'):_0x38eb('0xe');for(const _0x4ceb58 of _0x56c68e){const _0x90977a=_0x4ceb58[_0x38eb('0x1e')],_0x165630=_0x3f6fef[_0x3f6fef['length']-0x1];if(_0x90977a['is'](_0x38eb('0x19')))_0x165630&&_0x165630[_0x38eb('0x33')]['indexOf'](_0x38eb('0x22'))>-0x1&&_0x3f6fef[_0x38eb('0x17')](),_0x165630&&_0x38eb('0xd')==_0x165630[_0x38eb('0x33')]?_0x165630[_0x4d3857]+=_0x90977a[_0x38eb('0x42')]:_0x3f6fef[_0x38eb('0x1b')]({'type':_0x38eb('0xd'),'add':'add'==_0x4d3857?_0x90977a[_0x38eb('0x42')]:'','remove':_0x38eb('0xe')==_0x4d3857?_0x90977a[_0x38eb('0x42')]:''});else{if(this[_0x38eb('0x3')][_0x38eb('0x38')](_0x90977a)){const _0xebac80=_0x90977a;if(_0x165630&&_0x165630[_0x38eb('0x33')][_0x38eb('0x1')]('Container')>-0x1&&_0x3f6fef[_0x38eb('0x17')](),_0x38eb('0x26')==_0x4ceb58[_0x38eb('0x33')])continue;_0x165630&&_0x165630[_0x38eb('0x33')]==_0x4d3857+_0x38eb('0x47')&&_0x165630[_0x38eb('0xc')][_0x38eb('0x30')]==_0xebac80[_0x38eb('0x30')]?_0x165630[_0x38eb('0x44')]++:_0x3f6fef[_0x38eb('0x1b')]({'type':_0x4d3857+_0x38eb('0x47'),'element':_0xebac80,'quantity':0x1}),_0x56c68e['skip'](_0x16ded5=>!(_0x38eb('0x26')==_0x16ded5[_0x38eb('0x33')]&&_0x16ded5[_0x38eb('0x1e')]==_0x90977a));}else{if(this['_schema']['checkChild'](_0x90977a,_0x38eb('0x2d'))||_0x90977a['is'](_0x38eb('0xc'),_0x38eb('0x3c'))){const _0x2dd136=_0x90977a;if(_0x38eb('0x35')==_0x4d3857&&_0x38eb('0x9')==_0x4ceb58[_0x38eb('0x33')]||_0x38eb('0xe')==_0x4d3857&&_0x38eb('0x26')==_0x4ceb58[_0x38eb('0x33')])continue;if(_0x165630&&-0x1==_0x165630[_0x38eb('0x33')]['indexOf'](_0x38eb('0x22'))){_0x38eb('0xd')==_0x165630['type']&&(_0x165630[_0x4d3857]+='\x0a');continue;}let _0x3ef87a;if(_0x3ef87a=_0x38eb('0x35')==_0x4d3857?_0x2dd136[_0x38eb('0x13')]&&!this[_0x38eb('0x3')][_0x38eb('0x38')](_0x2dd136[_0x38eb('0x13')])?_0x2dd136[_0x38eb('0x13')]:null:_0x2dd136[_0x38eb('0x21')]&&!this[_0x38eb('0x3')][_0x38eb('0x38')](_0x2dd136['previousSibling'])?_0x2dd136[_0x38eb('0x21')]:null,_0x2dd136[_0x38eb('0x4')]||_0x3ef87a&&_0x3ef87a[_0x38eb('0x4')]){const _0x38978c=_0x3ef87a&&_0x3ef87a[_0x38eb('0x4')]?_0x3ef87a:_0x2dd136;_0x165630&&_0x165630[_0x38eb('0x33')]==_0x4d3857+_0x38eb('0x2e')&&_0x165630[_0x38eb('0xc')][_0x38eb('0x30')]==_0x38978c[_0x38eb('0x30')]?_0x165630[_0x38eb('0x44')]++:_0x3f6fef[_0x38eb('0x1b')]({'type':_0x4d3857+_0x38eb('0x2e'),'element':_0x38978c,'quantity':0x1});}else _0x3f6fef[_0x38eb('0x1b')]({'type':_0x4d3857+_0x38eb('0x22'),'element':_0x2dd136});}}}}}['_resolveDescriptionItems'](_0xe74435){const _0x287b22=this[_0x38eb('0x3b')],_0x2eba1f=[],_0x52155c=[],_0x2b8aa0=[];for(const _0x520ae5 of _0xe74435)switch(_0x520ae5[_0x38eb('0x33')]){case _0x38eb('0xd'):if(_0x520ae5[_0x38eb('0x35')]=_0x520ae5[_0x38eb('0x35')]['replace'](/(\S)\u000A+(\S)/g,_0x38eb('0x10'))['replace'](/\u000A/g,''),_0x520ae5['remove']=_0x520ae5[_0x38eb('0xe')]['replace'](/(\S)\u000A+(\S)/g,_0x38eb('0x10'))['replace'](/\u000A/g,''),''!=_0x520ae5[_0x38eb('0x35')]&&''!=_0x520ae5[_0x38eb('0xe')]){_0x2eba1f['push']({'type':'replace','content':_0x257448(_0x287b22,'REPLACE_TEXT',['\x22'+_0x520ae5[_0x38eb('0xe')]+'\x22','\x22'+_0x520ae5[_0x38eb('0x35')]+'\x22'])});continue;}if(null!=_0x520ae5[_0x38eb('0x35')]['match'](/^ +$/)){_0x2eba1f[_0x38eb('0x1b')]({'type':_0x38eb('0x8'),'content':_0x257448(_0x287b22,_0x38eb('0x20'),_0x257448(_0x287b22,_0x38eb('0x1c'),_0x520ae5[_0x38eb('0x35')]['length']))});continue;}if(null!=_0x520ae5[_0x38eb('0xe')][_0x38eb('0x23')](/^ +$/)){_0x2eba1f[_0x38eb('0x1b')]({'type':'deletion','content':_0x257448(_0x287b22,_0x38eb('0xf'),_0x257448(_0x287b22,_0x38eb('0x1c'),_0x520ae5[_0x38eb('0xe')][_0x38eb('0x45')]))});continue;}if(''!=_0x520ae5[_0x38eb('0x35')]){_0x2eba1f[_0x38eb('0x1b')]({'type':_0x38eb('0x8'),'content':_0x257448(_0x287b22,_0x38eb('0x20'),'\x22'+_0x520ae5[_0x38eb('0x35')]+'\x22')});continue;}_0x2eba1f[_0x38eb('0x1b')]({'type':_0x38eb('0x28'),'content':_0x257448(_0x287b22,_0x38eb('0xf'),'\x22'+_0x520ae5[_0x38eb('0xe')]+'\x22')});continue;case _0x38eb('0x36'):case'addObject':_0x2eba1f['push']({'type':_0x38eb('0x8'),'content':_0x257448(_0x287b22,_0x38eb('0x20'),this['getItemLabel'](_0x520ae5[_0x38eb('0xc')],_0x520ae5[_0x38eb('0x44')]))});continue;case _0x38eb('0x34'):case _0x38eb('0x39'):_0x2eba1f['push']({'type':'deletion','content':_0x257448(_0x287b22,_0x38eb('0xf'),this['getItemLabel'](_0x520ae5[_0x38eb('0xc')],_0x520ae5[_0x38eb('0x44')]))});continue;case _0x38eb('0x3d'):_0x2eba1f['push']({'type':_0x38eb('0x8'),'content':_0x257448(_0x287b22,_0x38eb('0x48'),this[_0x38eb('0x40')](_0x520ae5[_0x38eb('0xc')],_0x520ae5[_0x38eb('0x44')]))});continue;case _0x38eb('0x37'):_0x2eba1f[_0x38eb('0x1b')]({'type':_0x38eb('0x28'),'content':_0x257448(_0x287b22,'*Merge:*\x20%0',this[_0x38eb('0x40')](_0x520ae5[_0x38eb('0xc')],_0x520ae5['quantity']))});continue;case _0x38eb('0x3f'):_0x52155c[_0x38eb('0x1b')](_0x520ae5[_0x38eb('0x29')]);continue;case'removeFormat':_0x2b8aa0['push'](_0x520ae5[_0x38eb('0x29')]);continue;default:_0x2eba1f[_0x38eb('0x1b')](_0x520ae5);}if(_0x52155c[_0x38eb('0x45')]){const _0x354d99=_0x52155c[_0x38eb('0x1f')](_0x281b4b=>this[_0x38eb('0x2b')][_0x38eb('0x2a')](_0x281b4b)?this[_0x38eb('0x2b')][_0x38eb('0x2')](_0x281b4b):_0x281b4b)[_0x38eb('0xa')](',\x20');_0x2eba1f['push']({'type':_0x38eb('0x24'),'content':_0x257448(this[_0x38eb('0x3b')],_0x38eb('0x18'),_0x354d99)});}if(_0x2b8aa0[_0x38eb('0x45')]){const _0xdfe01e=_0x2b8aa0[_0x38eb('0x1f')](_0x5f55ca=>this[_0x38eb('0x2b')][_0x38eb('0x2a')](_0x5f55ca)?this[_0x38eb('0x2b')]['get'](_0x5f55ca):_0x5f55ca)['join'](',\x20');_0x2eba1f[_0x38eb('0x1b')]({'type':_0x38eb('0x24'),'content':_0x257448(this[_0x38eb('0x3b')],_0x38eb('0x0'),_0xdfe01e)});}return _0x2eba1f;}[_0x38eb('0x15')](_0x47aae5){for(const _0x3460b5 of this[_0x38eb('0x14')]){const _0x238212=_0x3460b5(_0x47aae5);if(_0x238212&&_0x38eb('0x33')in _0x238212)return _0x238212;}}[_0x38eb('0x3e')](_0x3df484,_0x116cda){const _0x37be7c=_0x116cda[_0x38eb('0x42')],_0x592da0=void 0x0===_0x37be7c['newValue']?'removeFormat':_0x38eb('0x3f');_0x3df484[_0x38eb('0x1b')]({'type':_0x592da0,'key':_0x37be7c[_0x38eb('0x29')]});}[_0x38eb('0x5')](_0x5b0b7d,_0x4e8c30){_0x5b0b7d[_0x38eb('0x1b')]({'type':'format','content':_0x257448(this[_0x38eb('0x3b')],_0x38eb('0x7'),this[_0x38eb('0x40')](_0x4e8c30['getFirstRange']()[_0x38eb('0x31')][_0x38eb('0x1d')],0x1))});}[_0x38eb('0x32')](_0x16a53b,_0x17288a,_0xef978f){if(this[_0x38eb('0xb')](_0x16a53b,_0x17288a),_0xef978f&&_0xef978f['getFirstRange']()&&!_0x17288a[_0x38eb('0x12')]()[_0x38eb('0x25')]['isEqual'](_0xef978f[_0x38eb('0x12')]()[_0x38eb('0x31')])){const _0x31e809=_0x16a53b[_0x16a53b[_0x38eb('0x45')]-0x1],_0x4b4001=_0x38eb('0x8')==_0x17288a[_0x38eb('0x33')]?_0x38eb('0x35'):_0x38eb('0xe');_0x31e809&&_0x38eb('0xd')==_0x31e809['type']&&(_0x31e809[_0x4b4001]+='\x0a');}}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x3a5f=['requires','TrackChanges','adapter','addSuggestion','editor','pluginName','getSuggestion','addSuggestionData','get','plugins','getSuggestions'];(function(_0x76b929,_0x3a5fb1){var _0x159ef7=function(_0x3f62f0){while(--_0x3f62f0){_0x76b929['push'](_0x76b929['shift']());}};_0x159ef7(++_0x3a5fb1);}(_0x3a5f,0x83));var _0x159e=function(_0x76b929,_0x3a5fb1){_0x76b929=_0x76b929-0x0;var _0x159ef7=_0x3a5f[_0x76b929];return _0x159ef7;};import{Plugin as _0x5a08b7}from'ckeditor5/src/core.js';import _0x4a3741 from'./trackchangesui.js';import _0x2ffa0c from'./trackchangesediting.js';import'ckeditor5-collaboration/src/collaboration-core.js';export default class k extends _0x5a08b7{static get[_0x159e('0x1')](){return[_0x2ffa0c,_0x4a3741,'Comments'];}static get[_0x159e('0x6')](){return _0x159e('0x2');}set[_0x159e('0x3')](_0x4b7e90){this['editor'][_0x159e('0xa')]['get'](_0x2ffa0c)[_0x159e('0x3')]=_0x4b7e90;}get[_0x159e('0x3')](){return this['editor'][_0x159e('0xa')][_0x159e('0x9')](_0x2ffa0c)['adapter'];}[_0x159e('0x4')](_0x59d738){return this[_0x159e('0x5')][_0x159e('0xa')][_0x159e('0x9')](_0x2ffa0c)[_0x159e('0x8')](_0x59d738);}[_0x159e('0x0')]({skipNotAttached:_0xb52673=!0x1,toJSON:_0x235446=!0x1}={}){return this[_0x159e('0x5')]['plugins']['get'](_0x2ffa0c)[_0x159e('0x0')]({'skipNotAttached':_0xb52673,'toJSON':_0x235446});}[_0x159e('0x7')](_0x126060){return this[_0x159e('0x5')][_0x159e('0xa')][_0x159e('0x9')](_0x2ffa0c)['getSuggestion'](_0x126060);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x518a=['addUser','getRootsAttributes','getUser','createDocumentFragment','useAnonymousUser','rootsAttributes','getDataWithAcceptedSuggestions','getRootNames','model','pluginName','getSuggestions','Users','trackChangesData.editorCreator','init','trackChangesData','div','reduce','createElement','constructor','create','config','get','TrackChangesData','name','execute','define','Pagination','acceptAllSuggestions','CommentsRepository','result','push','plugins','editorCreator','track-changes-data-invalid-editor-creator','discardAllSuggestions','function','set','TrackChangesEditing','_adapter','users','appendChild','data','getDataWithDiscardedSuggestions','requires','editor'];(function(_0x30688d,_0x518a99){const _0x2791bb=function(_0x3a0333){while(--_0x3a0333){_0x30688d['push'](_0x30688d['shift']());}};_0x2791bb(++_0x518a99);}(_0x518a,0x12f));const _0x2791=function(_0x30688d,_0x518a99){_0x30688d=_0x30688d-0x0;let _0x2791bb=_0x518a[_0x30688d];return _0x2791bb;};import{Plugin as _0x1d4325}from'ckeditor5/src/core.js';import{CKEditorError as _0x113bdc}from'ckeditor5/src/utils.js';import _0x200e6c from'./trackchangesediting.js';import{sanitizeEditorConfig as _0xa704c1}from'ckeditor5-collaboration/src/collaboration-core.js';const T=[_0x2791('0x26')];export default class P extends _0x1d4325{static get[_0x2791('0xa')](){return[_0x200e6c];}static get[_0x2791('0x15')](){return _0x2791('0x22');}['init'](){const _0x459713=this[_0x2791('0xb')];if(_0x459713[_0x2791('0x20')][_0x2791('0x25')](_0x2791('0x18'),_0x2f5d0d=>{const _0x13b871=_0x459713[_0x2791('0x14')]['document'][_0x2791('0x13')]()['reduce']((_0x1b9ac2,_0x3c3c76)=>(_0x1b9ac2[_0x3c3c76]='',_0x1b9ac2),{});return _0x459713[_0x2791('0x1e')][_0x2791('0x1f')](_0x13b871,_0x2f5d0d);}),_0x2791('0x2')!=typeof _0x459713[_0x2791('0x20')][_0x2791('0x21')](_0x2791('0x1a'))['editorCreator'])throw new _0x113bdc(_0x2791('0x0'));}[_0x2791('0x12')](_0x3a2bac){return N(this[_0x2791('0xb')],!0x0,_0x3a2bac);}[_0x2791('0x9')](_0xcdd0df){return N(this[_0x2791('0xb')],!0x1,_0xcdd0df);}}class D extends _0x1d4325{static get['pluginName'](){return'TrackChangesDataGetter';}constructor(_0x3a353d){super(_0x3a353d),this[_0x2791('0x29')]='end';}[_0x2791('0x19')](){this[_0x2791('0xb')]['plugins'][_0x2791('0x21')](_0x2791('0x28'))['_adapter']={'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[_0x2791('0xb')][_0x2791('0x2b')][_0x2791('0x21')](_0x2791('0x4'))[_0x2791('0x5')]=null;}}function v(_0x50ecc5){return void 0x0!==_0x50ecc5['getRootsAttributes'];}async function N(_0xe50267,_0x32df0f,_0x214897){const _0x4e319d=_0xa704c1(_0xe50267,T);_0x4e319d[_0x2791('0x2b')][_0x2791('0x2a')](_0x200e6c,D),_0x4e319d[_0x2791('0x11')]=v(_0xe50267)?_0xe50267[_0x2791('0xd')]():void 0x0;const _0x206757=document[_0x2791('0xf')](),_0x46b74b=_0xe50267[_0x2791('0x20')][_0x2791('0x21')](_0x2791('0x1a'))[_0x2791('0x2c')],_0x1acd64=await _0x46b74b(_0x4e319d,()=>function(_0x299bce){const _0x557674=document[_0x2791('0x1d')](_0x2791('0x1b'));return _0x299bce[_0x2791('0x7')](_0x557674),_0x557674;}(_0x206757));!function(_0x113b71,_0xde5e8b){const _0x1bc56a=_0x113b71[_0x2791('0x14')]['document'][_0x2791('0x13')]()[_0x2791('0x1c')]((_0x41159f,_0x5305a0)=>(_0x41159f[_0x5305a0]=_0x113b71[_0x2791('0x8')]['get']({'rootName':_0x5305a0}),_0x41159f),{}),_0x50e369=_0x113b71[_0x2791('0x2b')]['get'](_0x2791('0x17'))[_0x2791('0x6')]['map'](_0x1613b9=>({'id':_0x1613b9['id'],'name':_0x1613b9[_0x2791('0x23')]})),_0x7dde30=_0x113b71[_0x2791('0x2b')][_0x2791('0x21')](_0x2791('0x4'))[_0x2791('0x16')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0xfee312=_0xde5e8b[_0x2791('0x2b')][_0x2791('0x21')](_0x2791('0x17')),_0x1c2f75=_0xde5e8b[_0x2791('0x2b')][_0x2791('0x21')](_0x2791('0x4'));for(const _0x3b0927 of _0x50e369)_0xfee312[_0x2791('0xe')](_0x3b0927['id'])||_0xfee312[_0x2791('0xc')](_0x3b0927);_0xfee312['me']||_0xfee312[_0x2791('0x10')]();for(const _0xca382a of _0x7dde30)_0x1c2f75['addSuggestionData'](_0xca382a);_0xde5e8b[_0x2791('0x8')][_0x2791('0x3')](_0x1bc56a);}(_0xe50267,_0x1acd64),_0x1acd64[_0x2791('0x24')](_0x32df0f?_0x2791('0x27'):_0x2791('0x1'));const _0x361aed=v(_0x1acd64)?_0x1acd64['getFullData'](_0x214897):_0x1acd64[_0x2791('0x8')][_0x2791('0x21')](_0x214897);return await _0x1acd64['destroy'](),_0x361aed;}
|