@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231206.0 → 0.0.0-nightly-20231207.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 +2 -2
- package/build/translations/ar.js +1 -1
- package/build/translations/az.js +1 -1
- package/build/translations/bg.js +1 -1
- package/build/translations/bn.js +1 -1
- package/build/translations/ca.js +1 -1
- package/build/translations/cs.js +1 -1
- package/build/translations/da.js +1 -1
- package/build/translations/de.js +1 -1
- package/build/translations/el.js +1 -1
- package/build/translations/en-au.js +1 -1
- package/build/translations/es.js +1 -1
- package/build/translations/et.js +1 -1
- package/build/translations/fi.js +1 -1
- package/build/translations/fr.js +1 -1
- package/build/translations/gl.js +1 -1
- package/build/translations/he.js +1 -1
- package/build/translations/hi.js +1 -1
- package/build/translations/hr.js +1 -1
- package/build/translations/hu.js +1 -1
- package/build/translations/id.js +1 -1
- package/build/translations/it.js +1 -1
- package/build/translations/ja.js +1 -1
- package/build/translations/ko.js +1 -1
- package/build/translations/lt.js +1 -1
- package/build/translations/lv.js +1 -1
- package/build/translations/ms.js +1 -1
- package/build/translations/nl.js +1 -1
- package/build/translations/no.js +1 -1
- package/build/translations/pl.js +1 -1
- package/build/translations/pt-br.js +1 -1
- package/build/translations/pt.js +1 -1
- package/build/translations/ro.js +1 -1
- package/build/translations/ru.js +1 -1
- package/build/translations/sk.js +1 -1
- package/build/translations/sq.js +1 -1
- package/build/translations/sr-latn.js +1 -1
- package/build/translations/sr.js +1 -1
- package/build/translations/sv.js +1 -1
- package/build/translations/th.js +1 -1
- package/build/translations/tk.js +1 -1
- package/build/translations/tr.js +1 -1
- package/build/translations/tt.js +1 -1
- package/build/translations/uk.js +1 -1
- package/build/translations/ur.js +1 -1
- package/build/translations/vi.js +1 -1
- package/build/translations/zh-cn.js +1 -1
- package/build/translations/zh.js +1 -1
- package/lang/translations/ar.po +5 -5
- package/lang/translations/az.po +4 -4
- package/lang/translations/bg.po +5 -5
- package/lang/translations/bn.po +5 -5
- package/lang/translations/ca.po +5 -5
- package/lang/translations/cs.po +5 -5
- package/lang/translations/da.po +5 -5
- package/lang/translations/de.po +5 -5
- package/lang/translations/el.po +5 -5
- package/lang/translations/en-au.po +5 -5
- package/lang/translations/en.po +5 -5
- package/lang/translations/es.po +5 -5
- package/lang/translations/et.po +5 -5
- package/lang/translations/fi.po +5 -5
- package/lang/translations/fr.po +5 -5
- package/lang/translations/gl.po +36 -36
- package/lang/translations/he.po +5 -5
- package/lang/translations/hi.po +5 -5
- package/lang/translations/hr.po +5 -5
- package/lang/translations/hu.po +5 -5
- package/lang/translations/id.po +5 -5
- package/lang/translations/it.po +5 -5
- package/lang/translations/ja.po +5 -5
- package/lang/translations/ko.po +5 -5
- package/lang/translations/lt.po +5 -5
- package/lang/translations/lv.po +5 -5
- package/lang/translations/ms.po +5 -5
- package/lang/translations/nl.po +5 -5
- package/lang/translations/no.po +5 -5
- package/lang/translations/pl.po +5 -5
- package/lang/translations/pt-br.po +5 -5
- package/lang/translations/pt.po +5 -5
- package/lang/translations/ro.po +5 -5
- package/lang/translations/ru.po +5 -5
- package/lang/translations/sk.po +5 -5
- package/lang/translations/sq.po +4 -4
- package/lang/translations/sr-latn.po +24 -24
- package/lang/translations/sr.po +5 -5
- package/lang/translations/sv.po +5 -5
- package/lang/translations/th.po +5 -5
- package/lang/translations/tk.po +4 -4
- package/lang/translations/tr.po +5 -5
- package/lang/translations/tt.po +4 -4
- package/lang/translations/uk.po +5 -5
- package/lang/translations/ur.po +4 -4
- package/lang/translations/vi.po +5 -5
- package/lang/translations/zh-cn.po +5 -5
- package/lang/translations/zh.po +5 -5
- 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
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xc16d=['tableCellBorderColor','accept','join','_suggestionFactory','findAncestor','format','getSuggestions','plugins','tableCellBorderWidth','locale','formatBlock','registerCustomCallback','tableCellHeight','tableBorderWidth','get','TrackChangesEditing','getSelectionAffectedTableCells','change','commandParams','subType','TableUtils','tableBorderColor','afterInit','_getSuggestion','*Format:*\x20change\x20table\x20properties','_descriptionFactory','tableAlignment','getContainedElement','TrackChangesTableProperties','has','tableCellPadding','pluginName','_handlePropertyChange','table','getAttribute','tableCellWidth','getFirstPosition','tableHeight','editor','TablePropertiesEditing','enableCommand','selection','model','tableWidth','handleSuggestionDescription','setAttribute','tableBackgroundColor','tableCellProperties','tableBorderStyle','document','tableProperties','getSuggestionCallback','handleDiscardAction','tableCellHorizontalAlignment','enqueueChange','*Format:*\x20change\x20table\x20cell\x20properties','nodeAfter','tableCellVerticalAlignment','discard'];(function(_0x1e562c,_0xc16d92){const _0x136169=function(_0x4a84b5){while(--_0x4a84b5){_0x1e562c['push'](_0x1e562c['shift']());}};_0x136169(++_0xc16d92);}(_0xc16d,0xe3));const _0x1361=function(_0x1e562c,_0xc16d92){_0x1e562c=_0x1e562c-0x0;let _0x136169=_0xc16d[_0x1e562c];return _0x136169;};import{Plugin as _0x182045}from'ckeditor5/src/core';import{getTranslation as _0x4c572c}from'../utils/common-translations';export default class Mt extends _0x182045{constructor(_0xdaa164){super(_0xdaa164),this[_0x1361('0x0')]=[_0x1361('0x1e'),_0x1361('0x39'),_0x1361('0x16'),_0x1361('0x23'),_0x1361('0x34'),_0x1361('0x2e'),_0x1361('0x37')],this[_0x1361('0x38')]=[_0x1361('0x9'),'tableCellBorderStyle',_0x1361('0x11'),_0x1361('0x27'),_0x1361('0x2c'),_0x1361('0x15'),'tableCellBackgroundColor',_0x1361('0x3'),_0x1361('0x7')];}static get[_0x1361('0x28')](){return _0x1361('0x25');}[_0x1361('0x1f')](){const _0x3697c8=this[_0x1361('0x2f')][_0x1361('0x10')]['get'](_0x1361('0x18'));if(this['editor'][_0x1361('0x10')][_0x1361('0x26')](_0x1361('0x30'))){for(const _0x5d2b24 of this[_0x1361('0x0')])_0x3697c8[_0x1361('0x31')](_0x5d2b24,(_0x1658fa,_0x58f68b)=>{const _0x33f374=this[_0x1361('0x2f')][_0x1361('0x33')][_0x1361('0x3a')][_0x1361('0x32')][_0x1361('0x2d')]()[_0x1361('0xd')](_0x1361('0x2a'));this['_handlePropertyChange'](_0x5d2b24,[_0x33f374],this[_0x1361('0x0')],_0x1361('0x0'),_0x1658fa,_0x58f68b);});_0x3697c8[_0x1361('0xc')][_0x1361('0x14')](_0x1361('0x13'),'tableProperties',_0x1361('0xa'),_0x3697c8['_suggestionFactory']['getSuggestionCallback'](_0x1361('0x13'),null,_0x1361('0x8'))),_0x3697c8[_0x1361('0xc')][_0x1361('0x14')](_0x1361('0x13'),'tableProperties',_0x1361('0x8'),(_0x36a3d1,_0x39b5c6)=>this[_0x1361('0x2')](this[_0x1361('0x0')],_0x36a3d1,_0x39b5c6)),_0x3697c8['_suggestionFactory'][_0x1361('0x14')]('formatBlock','tableProperties',_0x1361('0xb'),()=>!0x1);}if(this[_0x1361('0x2f')][_0x1361('0x10')]['has']('TableCellPropertiesEditing')){for(const _0x4728d6 of this[_0x1361('0x38')])_0x3697c8[_0x1361('0x31')](_0x4728d6,(_0x5d0fda,_0x3db61c)=>{const _0x3143ae=this[_0x1361('0x2f')]['plugins'][_0x1361('0x17')](_0x1361('0x1d'))[_0x1361('0x19')](this[_0x1361('0x2f')][_0x1361('0x33')][_0x1361('0x3a')][_0x1361('0x32')]);this[_0x1361('0x29')](_0x4728d6,_0x3143ae,this[_0x1361('0x38')],_0x1361('0x38'),_0x5d0fda,_0x3db61c);});_0x3697c8[_0x1361('0xc')][_0x1361('0x14')]('formatBlock',_0x1361('0x38'),_0x1361('0xa'),_0x3697c8[_0x1361('0xc')][_0x1361('0x1')](_0x1361('0x13'),null,_0x1361('0x8'))),_0x3697c8[_0x1361('0xc')][_0x1361('0x14')]('formatBlock',_0x1361('0x38'),_0x1361('0x8'),(_0x524d0c,_0x3709d7)=>this[_0x1361('0x2')](this['tableCellProperties'],_0x524d0c,_0x3709d7)),_0x3697c8[_0x1361('0xc')]['registerCustomCallback'](_0x1361('0x13'),_0x1361('0x38'),'join',()=>!0x1);}_0x3697c8[_0x1361('0x22')]['registerDescriptionCallback'](_0x566451=>this[_0x1361('0x35')](_0x566451));}[_0x1361('0x29')](_0x4c39ab,_0x4e7511,_0x31629c,_0x4209c8,_0xd7d77d,_0x193c69){const _0x169865=this[_0x1361('0x2f')][_0x1361('0x10')][_0x1361('0x17')](_0x1361('0x18'));this['editor'][_0x1361('0x33')][_0x1361('0x4')](_0x193c69['batch'],()=>{for(const _0x4e6515 of _0x4e7511){if(this[_0x1361('0x20')](_0x4e6515,_0x4209c8))_0xd7d77d(_0x193c69);else{const _0x365f0c={};for(const _0x12452c of _0x31629c){const _0x2307b1=_0x4e6515[_0x1361('0x2b')](_0x12452c);void 0x0!==_0x2307b1&&(_0x365f0c[_0x12452c]=_0x2307b1);}_0xd7d77d(_0x193c69),_0x169865['markBlockFormat'](_0x4e6515,{'commandParams':[_0x365f0c]},[],_0x4209c8);}}});}[_0x1361('0x2')](_0x1588b8,_0xcbb604,_0x123e85){const _0x1308b5=_0xcbb604[0x0]['start'][_0x1361('0x6')],_0x36ff96=_0x123e85[_0x1361('0x1b')][0x0];this['editor'][_0x1361('0x33')][_0x1361('0x1a')](_0x5d57a4=>{for(const _0x3f70c7 of _0x1588b8)void 0x0!==_0x36ff96[_0x3f70c7]?_0x5d57a4[_0x1361('0x36')](_0x3f70c7,_0x36ff96[_0x3f70c7],_0x1308b5):_0x5d57a4['removeAttribute'](_0x3f70c7,_0x1308b5);});}['handleSuggestionDescription'](_0x4154a3){if(_0x4154a3['data'])switch(_0x4154a3[_0x1361('0x1c')]){case'tableProperties':return{'type':_0x1361('0xe'),'content':_0x4c572c(this['editor']['locale'],_0x1361('0x21'))};case _0x1361('0x38'):return{'type':_0x1361('0xe'),'content':_0x4c572c(this[_0x1361('0x2f')][_0x1361('0x12')],_0x1361('0x5'))};}}[_0x1361('0x20')](_0xa3332d,_0x135d52){const _0x183d60=this[_0x1361('0x2f')][_0x1361('0x10')][_0x1361('0x17')](_0x1361('0x18'));for(const _0x221162 of _0x183d60[_0x1361('0xf')]({'skipNotAttached':!0x0})){const _0x568f33=_0x221162[_0x1361('0x24')]();if(_0x221162[_0x1361('0x1c')]===_0x135d52&&_0x568f33===_0xa3332d)return _0x221162;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x44a2=['enableCommand','Template','has','plugins','editor','get','insertTemplate','afterInit','TrackChangesEditing'];(function(_0x5c4a96,_0x44a24a){const _0x36d648=function(_0x3210ef){while(--_0x3210ef){_0x5c4a96['push'](_0x5c4a96['shift']());}};_0x36d648(++_0x44a24a);}(_0x44a2,0x1e8));const _0x36d6=function(_0x5c4a96,_0x44a24a){_0x5c4a96=_0x5c4a96-0x0;let _0x36d648=_0x44a2[_0x5c4a96];return _0x36d648;};import{Plugin as _0xae1c0d}from'ckeditor5/src/core';export default class vt extends _0xae1c0d{[_0x36d6('0x5')](){const _0x3ece3a=this[_0x36d6('0x2')];_0x3ece3a[_0x36d6('0x1')][_0x36d6('0x0')](_0x36d6('0x8'))&&_0x3ece3a[_0x36d6('0x1')][_0x36d6('0x3')](_0x36d6('0x6'))[_0x36d6('0x7')](_0x36d6('0x4'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5911=['getNearestSelectionRange','Title','ELEMENT_TITLE','element','TrackChangesEditing','suggestion','createRange','editor','isCollapsed','registerPostFixer','newRange','isEqual','document','from','_splitMarkerName','plugins','has','afterInit','title-content','_descriptionFactory','differ','forward','end','start','model','removeMarker'];(function(_0x46318a,_0x5911c2){const _0x28751b=function(_0x2c3a57){while(--_0x2c3a57){_0x46318a['push'](_0x46318a['shift']());}};_0x28751b(++_0x5911c2);}(_0x5911,0x18b));const _0x2875=function(_0x46318a,_0x5911c2){_0x46318a=_0x46318a-0x0;let _0x28751b=_0x5911[_0x46318a];return _0x28751b;};import{Plugin as _0x21d318}from'ckeditor5/src/core';import{getTranslation as _0x543cc5}from'../utils/common-translations';export default class _t extends _0x21d318{[_0x2875('0xc')](){const _0x46b794=this[_0x2875('0x2')];if(!_0x46b794[_0x2875('0xa')][_0x2875('0xb')](_0x2875('0x16')))return;const _0x3af13d=_0x46b794[_0x2875('0xa')]['get'](_0x2875('0x19'));_0x3af13d[_0x2875('0xe')]['registerElementLabel'](_0x2875('0xd'),()=>_0x543cc5(_0x46b794['locale'],_0x2875('0x17'))),_0x46b794[_0x2875('0x13')]['document'][_0x2875('0x4')](_0x2e3dfd=>{let _0x554e8c=!0x1;const _0x5273e8=Array[_0x2875('0x8')](_0x46b794[_0x2875('0x13')][_0x2875('0x7')][_0x2875('0xf')]['getChangedMarkers']());for(const {name:_0x3fec72,data:_0xa29740}of _0x5273e8){const {group:_0x131d8a}=_0x3af13d[_0x2875('0x9')](_0x3fec72);if(_0x2875('0x0')!==_0x131d8a||!_0xa29740['newRange'])continue;const _0x14e34e=_0xa29740[_0x2875('0x5')],_0x19daf6=_0x14e34e[_0x2875('0x11')]['nodeBefore'];if(!_0x19daf6||!_0x19daf6['is'](_0x2875('0x18'),'title-content'))continue;if(!_0x14e34e[_0x2875('0x12')]['isTouching'](_0x14e34e[_0x2875('0x11')]))continue;const _0x1bac0b=_0x46b794[_0x2875('0x13')]['schema'][_0x2875('0x15')](_0x14e34e['end'],_0x2875('0x10'));if(_0x1bac0b&&_0x1bac0b[_0x2875('0x3')]){const _0x5a38db=_0x2e3dfd[_0x2875('0x1')](_0x14e34e[_0x2875('0x12')],_0x1bac0b[_0x2875('0x12')]);_0x5a38db[_0x2875('0x6')](_0x14e34e)||(_0x2e3dfd['updateMarker'](_0x3fec72,{'range':_0x5a38db}),_0x554e8c=!0x0);}_0x554e8c||(_0x2e3dfd[_0x2875('0x14')](_0x3fec72),_0x554e8c=!0x0);}return _0x554e8c;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x31d7=['undo','editor','afterInit','get','redo','enableCommand','UndoEditing','TrackChangesEditing','plugins'];(function(_0x20b222,_0x31d72f){const _0x272714=function(_0x2a60e5){while(--_0x2a60e5){_0x20b222['push'](_0x20b222['shift']());}};_0x272714(++_0x31d72f);}(_0x31d7,0xed));const _0x2727=function(_0x20b222,_0x31d72f){_0x20b222=_0x20b222-0x0;let _0x272714=_0x31d7[_0x20b222];return _0x272714;};import{Plugin as _0x1c0dc3}from'ckeditor5/src/core';export default class Dt extends _0x1c0dc3{[_0x2727('0x8')](){const _0x598da0=this[_0x2727('0x7')],_0x136cc7=_0x598da0['plugins'][_0x2727('0x0')](_0x2727('0x4'));_0x598da0[_0x2727('0x5')]['has'](_0x2727('0x3'))&&(_0x136cc7[_0x2727('0x2')](_0x2727('0x6')),_0x136cc7[_0x2727('0x2')](_0x2727('0x1')));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2995=['consumable','mapper','writer','test','previousPosition','toViewPosition','markerName','elementEnd','bindElementToMarker','isContent','nextSibling','name','push','getCustomProperty','insert','addClass','addHighlight','ck-suggestion-marker--active','parent','toViewElement','span','markerRange','item','ck-suggestion-marker-','get','createRangeOn','getItems','hasAttribute','plugins','getAttribute','element','listItem','model','isLimit','createUIElement'];(function(_0x2fde1a,_0x299535){const _0xfde8da=function(_0x2dd37d){while(--_0x2dd37d){_0x2fde1a['push'](_0x2fde1a['shift']());}};_0xfde8da(++_0x299535);}(_0x2995,0x12d));const _0xfde8=function(_0x2fde1a,_0x299535){_0x2fde1a=_0x2fde1a-0x0;let _0xfde8da=_0x2995[_0x2fde1a];return _0xfde8da;};export function getRangesWithAttribute(_0x264d28,_0x355a9f,_0x1ae86f){const _0x1b2c8e=[];for(const _0x2b5532 of _0x355a9f[_0xfde8('0x5')]())_0x2b5532[_0xfde8('0x6')](_0x264d28)&&_0x1b2c8e[_0xfde8('0x1a')](_0x1ae86f[_0xfde8('0x4')](_0x2b5532));return _0x1b2c8e;}export function getElementsAffectedByListItemRename(_0x34c2dd){const _0x54eec8=[];if(_0x34c2dd['is'](_0xfde8('0x9'),_0xfde8('0xa'))){let _0x3b0aa9=_0x34c2dd['nextSibling'];for(;_0x3b0aa9&&_0x3b0aa9['is'](_0xfde8('0x9'),_0xfde8('0xa'))&&_0x3b0aa9[_0xfde8('0x8')]('listIndent')>0x0;)_0x54eec8['push'](_0x3b0aa9),_0x3b0aa9=_0x3b0aa9[_0xfde8('0x18')];}return _0x54eec8;}export function downcastSplitMergeMarker(_0x449f6a,_0x524ad5,{showActiveMarker:_0x17b879=!0x0}={}){const _0x591dcd=_0x449f6a[_0xfde8('0x7')][_0xfde8('0x3')]('TrackChangesEditing');return(_0x433041,_0x586289,_0x3101fa)=>{if(!_0x3101fa[_0xfde8('0xe')][_0xfde8('0x11')](_0x586289[_0xfde8('0x0')],_0x433041[_0xfde8('0x19')]))return;const _0x419b93=_0x586289[_0xfde8('0x0')]['getWalker'](),_0xd98680=_0x586289[_0xfde8('0x0')]['start'],_0x4f747d=_0x449f6a[_0xfde8('0xb')]['schema'];let _0xb390a=null,_0x39afae=null,_0x351613=!0x1,_0x50b693=!0x1;for(const _0xd8d2ec of _0x419b93){const _0x530107=_0xd8d2ec[_0xfde8('0x1')];_0x351613=_0x351613||_0x4f747d[_0xfde8('0x17')](_0x530107);const _0x42d76d=_0x3101fa[_0xfde8('0xf')][_0xfde8('0x21')](_0x530107);if(_0x42d76d&&_0x42d76d[_0xfde8('0x1b')](_0xfde8('0x1e')))return;_0xfde8('0x15')==_0xd8d2ec['type']&&(_0x4f747d['isBlock'](_0x530107)&&!_0x4f747d[_0xfde8('0xc')](_0x530107)&&(_0x530107[_0xfde8('0x18')]||_0xd98680['isAtEnd']?_0xb390a&&_0xb390a[_0xfde8('0x20')]==_0x530107||(_0xb390a=_0x530107,_0x487950(_0xd8d2ec[_0xfde8('0x12')]),_0x50b693=!0x0):_0x39afae=_0x39afae||_0xd8d2ec['previousPosition']));}function _0x487950(_0x1a45f5){const _0x286bf1=_0x3101fa[_0xfde8('0x10')][_0xfde8('0xd')](_0xfde8('0x22'),{'class':_0xfde8('0x2')+_0x524ad5}),_0xd292a3=_0x3101fa[_0xfde8('0xf')][_0xfde8('0x13')](_0x1a45f5);_0x17b879&&_0x591dcd['activeMarkers']['includes'](_0x586289[_0xfde8('0x14')])&&_0x3101fa[_0xfde8('0x10')][_0xfde8('0x1d')](_0xfde8('0x1f'),_0x286bf1),_0x3101fa[_0xfde8('0x10')][_0xfde8('0x1c')](_0xd292a3,_0x286bf1),_0x3101fa[_0xfde8('0xf')][_0xfde8('0x16')](_0x286bf1,_0x586289[_0xfde8('0x14')]);}_0x351613||_0x50b693||!_0x39afae||_0x487950(_0x39afae);};}
|
package/src/suggestion.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57af=['setAttribute','createdAt','removeMarkers','data','get','start','substr','previous','from','creator','@external','_onAccept','split','type','getMarkers','subType','toJSON','isIntersectingWithRange','nodeBefore','next','_markerNames','hasComments','authoredAt','isExternal','_isDataLoaded','head','filter','discard','getContainedElement','push','getAllAdjacentSuggestions','length','getMultiRangeId','removeAttribute','_onAttributesChange','_model','removeMarker','change','addRange','getRange','set','onAccept','getMarkerNames','isMultiRange','clear','getFirstRange','delete','onAttributesChange','addMarker','attributes','accept','decorate','end','_onDiscard','commentThread','getItems','isIntersecting','getRanges','map','getFirstMarker','author','add','addMarkerName'];(function(_0x1d1588,_0x57af1a){const _0x1b3f7c=function(_0xb6ad88){while(--_0xb6ad88){_0x1d1588['push'](_0x1d1588['shift']());}};_0x1b3f7c(++_0x57af1a);}(_0x57af,0xde));const _0x1b3f=function(_0x1d1588,_0x57af1a){_0x1d1588=_0x1d1588-0x0;let _0x1b3f7c=_0x57af[_0x1d1588];return _0x1b3f7c;};import{Element as _0x280974}from'ckeditor5/src/engine';import{ObservableMixin as _0x173b8c,uid as _0x39dcc6}from'ckeditor5/src/utils';import{cloneDeep as _0xb1ecb5,isEqual as _0x3194f4,set as _0x4b7470,unset as _0x2fe9fb}from'lodash-es';export default class u extends _0x173b8c(){constructor(_0x584245,_0x35eb90){super(),this[_0x1b3f('0x36')]=!0x1,this['id']=_0x35eb90['id'],this['type']=_0x35eb90[_0x1b3f('0x2b')],this['subType']=_0x35eb90[_0x1b3f('0x2d')]||null,this[_0x1b3f('0x1b')]=_0x35eb90[_0x1b3f('0x1b')],this[_0x1b3f('0x27')]=_0x35eb90['creator']||_0x35eb90[_0x1b3f('0x1b')],this[_0x1b3f('0x35')]=Boolean(_0x35eb90[_0x1b3f('0x10')]&&_0x35eb90[_0x1b3f('0x10')][_0x1b3f('0x28')]),this['data']=null,this[_0x1b3f('0x2')]=_0x584245,this[_0x1b3f('0x29')]=_0x35eb90[_0x1b3f('0x8')],this[_0x1b3f('0x14')]=_0x35eb90['onDiscard'],this[_0x1b3f('0x1')]=_0x35eb90[_0x1b3f('0xe')],this[_0x1b3f('0x32')]=new Set(),this[_0x1b3f('0x1f')]=null,this[_0x1b3f('0x7')](_0x1b3f('0x34'),null),this[_0x1b3f('0x7')](_0x1b3f('0x10'),_0x35eb90[_0x1b3f('0x10')]||{}),this[_0x1b3f('0x7')](_0x1b3f('0x25'),null),this[_0x1b3f('0x7')]('next',null),this['set'](_0x1b3f('0x15'),null),this[_0x1b3f('0x7')]('_saved',!0x1),this['decorate'](_0x1b3f('0x11')),this[_0x1b3f('0x12')]('discard');}get[_0x1b3f('0x37')](){let _0x1c4273=this;for(;_0x1c4273[_0x1b3f('0x25')];)_0x1c4273=_0x1c4273[_0x1b3f('0x25')];return _0x1c4273;}get[_0x1b3f('0x33')](){return!!this[_0x1b3f('0x15')]&&this['commentThread'][_0x1b3f('0x3d')]>0x0;}get[_0x1b3f('0xa')](){if(0x0==this[_0x1b3f('0x32')]['size'])return!0x1;return 0x6==Array[_0x1b3f('0x26')](this[_0x1b3f('0x32')])[0x0][_0x1b3f('0x2a')](':')[_0x1b3f('0x3d')];}get['isInContent'](){return null!==this[_0x1b3f('0x1a')]();}[_0x1b3f('0x1d')](_0xb756c9){this['_markerNames'][_0x1b3f('0x1c')](_0xb756c9);}['getMarkerNames'](){return Array[_0x1b3f('0x26')](this[_0x1b3f('0x32')]);}[_0x1b3f('0x2c')](){return this[_0x1b3f('0x9')]()[_0x1b3f('0x19')](_0x357105=>this[_0x1b3f('0x2')]['markers'][_0x1b3f('0x22')](_0x357105))[_0x1b3f('0x38')](_0x8695ed=>_0x8695ed);}['getFirstMarker'](){return this['getMarkers']()[0x0]||null;}[_0x1b3f('0x20')](){this[_0x1b3f('0x2')][_0x1b3f('0x4')](_0x3d1c7a=>{for(const _0x320c44 of this[_0x1b3f('0x2c')]())_0x3d1c7a['removeMarker'](_0x320c44);}),this[_0x1b3f('0x32')][_0x1b3f('0xb')]();}[_0x1b3f('0x3')](_0x3ebdb2){this[_0x1b3f('0x2')][_0x1b3f('0x4')](_0x39c250=>{_0x39c250[_0x1b3f('0x3')](_0x3ebdb2);}),this['_markerNames'][_0x1b3f('0xd')](_0x3ebdb2);}[_0x1b3f('0x5')](_0x315494){const _0x40e3f3='suggestion:'+this[_0x1b3f('0x2b')]+':'+this[_0x1b3f('0x2d')]+':'+this['id']+':'+this[_0x1b3f('0x27')]['id']+':'+u[_0x1b3f('0x3e')]();this[_0x1b3f('0x1d')](_0x40e3f3),this[_0x1b3f('0x2')][_0x1b3f('0x4')](_0x1fa0de=>{_0x1fa0de[_0x1b3f('0xf')](_0x40e3f3,{'range':_0x315494,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x1b3f('0x2f')](_0x1b2fbf){for(const _0x254eb7 of this[_0x1b3f('0x18')]())if(_0x254eb7[_0x1b3f('0x17')](_0x1b2fbf))return!0x0;return!0x1;}[_0x1b3f('0x18')](){return this['getMarkers']()[_0x1b3f('0x19')](_0x3f8c58=>_0x3f8c58[_0x1b3f('0x6')]());}[_0x1b3f('0x16')](){return this['getRanges']()['reduce']((_0x1d1683,_0x16641b)=>[..._0x1d1683,..._0x16641b[_0x1b3f('0x16')]()],[]);}[_0x1b3f('0xc')](){var _0x419e81;return(null===(_0x419e81=this[_0x1b3f('0x1a')]())||void 0x0===_0x419e81?void 0x0:_0x419e81[_0x1b3f('0x6')]())||null;}[_0x1b3f('0x3a')](){const _0x42d326=this['getRanges']();if(0x1!=_0x42d326[_0x1b3f('0x3d')])return null;const _0x402b79=_0x42d326[0x0],_0x1f66c2=_0x402b79[_0x1b3f('0x23')]['nodeAfter'],_0x539260=_0x402b79[_0x1b3f('0x13')][_0x1b3f('0x30')];return _0x1f66c2 instanceof _0x280974?_0x1f66c2!=_0x539260?null:_0x1f66c2:null;}['accept'](){this['_onAccept'](this[_0x1b3f('0x18')](),this[_0x1b3f('0x21')],this[_0x1b3f('0x10')]),this[_0x1b3f('0x20')]();}[_0x1b3f('0x39')](){this[_0x1b3f('0x14')](this[_0x1b3f('0x18')](),this['data'],this['attributes']),this['removeMarkers']();}[_0x1b3f('0x3c')](){const _0xf85d0a=[];let _0x445bef=this[_0x1b3f('0x37')];for(;_0x445bef;)_0xf85d0a[_0x1b3f('0x3b')](_0x445bef),_0x445bef=_0x445bef[_0x1b3f('0x31')];return _0xf85d0a;}[_0x1b3f('0x1e')](_0x2bb8a8,_0x3ee3f7){const _0x2585da=_0xb1ecb5(this[_0x1b3f('0x10')]);_0x4b7470(_0x2585da,_0x2bb8a8,_0x3ee3f7),_0x3194f4(_0x2585da,this[_0x1b3f('0x10')])||(this[_0x1b3f('0x10')]=_0x2585da,this[_0x1b3f('0x1')](_0x2585da));}[_0x1b3f('0x0')](_0x2c1793){const _0x37f13f=_0xb1ecb5(this[_0x1b3f('0x10')]);_0x2fe9fb(_0x37f13f,_0x2c1793),_0x3194f4(_0x37f13f,this[_0x1b3f('0x10')])||(this[_0x1b3f('0x10')]=_0x37f13f,this['_onAttributesChange'](this[_0x1b3f('0x10')]));}[_0x1b3f('0x2e')](){return{'id':this['id'],'type':this[_0x1b3f('0x2d')]?this['type']+':'+this['subType']:this[_0x1b3f('0x2b')],'authorId':this['creator']['id'],'createdAt':this[_0x1b3f('0x1f')],'hasComments':this[_0x1b3f('0x33')],'data':this['data'],'attributes':this['attributes']};}static['getMultiRangeId'](){return _0x39dcc6()[_0x1b3f('0x24')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
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');}}}
|
|
23
|
+
const _0x5939=['elementStart','isEmpty','quantity','removeContainer','insertion','map','item','ELEMENT_SPACE','addContainer','addFormat','label','isObject','_handleCustomCallbackDescription','pop','indexOf','subType','type','EmptyContainer','removeFormat','set','elementEnd','has','softBreak','deletion','get','key','skip','replace','isInContent','getWalker','name','removeEmptyContainer','Object','isEqual','function','_handleInsertRemoveSuggestionDescription','Container','registerAttributeLabel','text','_attributeLabels','normal','$1\x20$2','checkChild','getItemLabel','registerElementLabel','_handleAttributeSuggestionDescription','getFirstRange','*Change\x20to:*\x20%0','data','*Remove:*\x20%0','_schema','*Set\x20format:*\x20%0','_handleRenameSuggestionDescription','REPLACE_TEXT','addEmptyContainer','match','_locale','$text','previousSibling','registerDescriptionCallback','length','add','nextSibling','_customCallbacks','_resolveDescriptionItems','element','*Insert:*\x20%0','start','remove','_itemLabelsCallbacks','*Split:*\x20%0','push','_itemLabels','*Remove\x20format:*\x20%0','format'];(function(_0x8b11a3,_0x593906){const _0x4d1f3b=function(_0x3dab09){while(--_0x3dab09){_0x8b11a3['push'](_0x8b11a3['shift']());}};_0x4d1f3b(++_0x593906);}(_0x5939,0x88));const _0x4d1f=function(_0x8b11a3,_0x593906){_0x8b11a3=_0x8b11a3-0x0;let _0x4d1f3b=_0x5939[_0x8b11a3];return _0x4d1f3b;};import{getTranslation as _0x1c37ec}from'./utils/common-translations';import{priorities as _0x3d1a9d,insertToPriorityArray as _0x14c5ad}from'ckeditor5/src/utils';import{renameAttributeKey as _0x2b9e0d}from'./trackchangesediting';export default class f{constructor(_0x4272ab,_0x37dd01){this['_customCallbacks']=[],this[_0x4d1f('0xb')]=new Map(),this['_itemLabelsCallbacks']=[],this[_0x4d1f('0x35')]=new Map(),this[_0x4d1f('0x40')]=_0x4272ab,this[_0x4d1f('0x46')]=_0x37dd01;}['getDescriptions'](_0x53b22d){const _0x241ae0=[],_0x763581=new Set(),_0x4dc359=new Set();for(let _0x51a9eb=0x0;_0x51a9eb<_0x53b22d[_0x4d1f('0x4a')];_0x51a9eb++){const _0x57346e=_0x53b22d[_0x51a9eb];if(!_0x57346e[_0x4d1f('0x2a')])continue;const _0x4d026d=this['_handleCustomCallbackDescription'](_0x57346e);if(_0x4d026d){if(null!=_0x57346e[_0x4d1f('0x1d')]){if(_0x763581[_0x4d1f('0x23')](_0x57346e[_0x4d1f('0x1d')]))continue;_0x763581[_0x4d1f('0x0')](_0x57346e['subType']);}_0x241ae0[_0x4d1f('0xa')](_0x4d026d);}else{if('attribute'!=_0x57346e['type'])_0x4d1f('0x12')!=_0x57346e[_0x4d1f('0x1e')]&&'deletion'!=_0x57346e[_0x4d1f('0x1e')]||this[_0x4d1f('0x31')](_0x241ae0,_0x57346e,_0x53b22d[_0x51a9eb+0x1]);else{const _0x2e1a4d=_0x57346e[_0x4d1f('0x3e')][_0x4d1f('0x27')];if(_0x4dc359[_0x4d1f('0x23')](_0x2e1a4d))continue;_0x4dc359['add'](_0x57346e[_0x4d1f('0x3e')][_0x4d1f('0x27')]),_0x2e1a4d==_0x2b9e0d?this['_handleRenameSuggestionDescription'](_0x241ae0,_0x57346e):this[_0x4d1f('0x3b')](_0x241ae0,_0x57346e);}}}return this[_0x4d1f('0x3')](_0x241ae0);}[_0x4d1f('0x49')](_0x37ff27){this[_0x4d1f('0x2')]['push'](_0x37ff27);}[_0x4d1f('0x3a')](_0x50d744,_0x4cf233,_0x1c351a=_0x3d1a9d[_0x4d1f('0x36')]){_0x4d1f('0x30')==typeof _0x50d744?_0x14c5ad(this['_itemLabelsCallbacks'],{'matchingCallback':_0x50d744,'label':_0x4cf233,'priority':_0x1c351a}):this[_0x4d1f('0xb')][_0x4d1f('0x21')](_0x50d744,_0x4cf233);}[_0x4d1f('0x33')](_0x15a0ba,_0x5ab0a9){this[_0x4d1f('0x35')][_0x4d1f('0x21')](_0x15a0ba,_0x5ab0a9);}['getItemLabel'](_0x18648a,_0x3e46a8=0x1){let _0x3ae8a3;for(const _0x2170f0 of this[_0x4d1f('0x8')])if(_0x2170f0['matchingCallback'](_0x18648a)){_0x3ae8a3=_0x2170f0[_0x4d1f('0x18')];break;}return _0x3ae8a3||(_0x3ae8a3=this['_itemLabels'][_0x4d1f('0x26')](_0x18648a[_0x4d1f('0x2c')])),_0x3ae8a3?_0x3ae8a3(_0x3e46a8):0x1!==_0x3e46a8?_0x3e46a8+'\x20'+_0x18648a[_0x4d1f('0x2c')]+'s':''+_0x18648a[_0x4d1f('0x2c')];}['_addDescriptionItems'](_0x391628,_0x573110){const _0x1a6dde=_0x573110['getFirstRange']()[_0x4d1f('0x2b')](),_0x364be3=_0x4d1f('0x12')==_0x573110[_0x4d1f('0x1e')]?_0x4d1f('0x0'):_0x4d1f('0x7');for(const _0x2d6ebd of _0x1a6dde){const _0x1eb514=_0x2d6ebd[_0x4d1f('0x14')],_0x53645e=_0x391628[_0x391628[_0x4d1f('0x4a')]-0x1];if(_0x1eb514['is']('$textProxy'))_0x53645e&&_0x53645e[_0x4d1f('0x1e')][_0x4d1f('0x1c')]('Container')>-0x1&&_0x391628[_0x4d1f('0x1b')](),_0x53645e&&_0x4d1f('0x34')==_0x53645e[_0x4d1f('0x1e')]?_0x53645e[_0x364be3]+=_0x1eb514[_0x4d1f('0x3e')]:_0x391628[_0x4d1f('0xa')]({'type':_0x4d1f('0x34'),'add':_0x4d1f('0x0')==_0x364be3?_0x1eb514['data']:'','remove':_0x4d1f('0x7')==_0x364be3?_0x1eb514[_0x4d1f('0x3e')]:''});else{if(this[_0x4d1f('0x40')][_0x4d1f('0x19')](_0x1eb514)){const _0x2c174f=_0x1eb514;if(_0x53645e&&_0x53645e['type'][_0x4d1f('0x1c')](_0x4d1f('0x32'))>-0x1&&_0x391628[_0x4d1f('0x1b')](),_0x4d1f('0x22')==_0x2d6ebd['type'])continue;_0x53645e&&_0x53645e['type']==_0x364be3+_0x4d1f('0x2e')&&_0x53645e[_0x4d1f('0x4')][_0x4d1f('0x2c')]==_0x2c174f['name']?_0x53645e['quantity']++:_0x391628[_0x4d1f('0xa')]({'type':_0x364be3+'Object','element':_0x2c174f,'quantity':0x1}),_0x1a6dde[_0x4d1f('0x28')](_0x32cad7=>!(_0x4d1f('0x22')==_0x32cad7[_0x4d1f('0x1e')]&&_0x32cad7[_0x4d1f('0x14')]==_0x1eb514));}else{if(this[_0x4d1f('0x40')][_0x4d1f('0x38')](_0x1eb514,_0x4d1f('0x47'))||_0x1eb514['is'](_0x4d1f('0x4'),_0x4d1f('0x24'))){const _0x282d76=_0x1eb514;if(_0x4d1f('0x0')==_0x364be3&&_0x4d1f('0xe')==_0x2d6ebd[_0x4d1f('0x1e')]||'remove'==_0x364be3&&_0x4d1f('0x22')==_0x2d6ebd['type'])continue;if(_0x53645e&&-0x1==_0x53645e[_0x4d1f('0x1e')][_0x4d1f('0x1c')]('Container')){_0x4d1f('0x34')==_0x53645e['type']&&(_0x53645e[_0x364be3]+='\x0a');continue;}let _0x4fd2f0;if(_0x4fd2f0=_0x4d1f('0x0')==_0x364be3?_0x282d76['nextSibling']&&!this[_0x4d1f('0x40')][_0x4d1f('0x19')](_0x282d76[_0x4d1f('0x1')])?_0x282d76[_0x4d1f('0x1')]:null:_0x282d76['previousSibling']&&!this[_0x4d1f('0x40')][_0x4d1f('0x19')](_0x282d76[_0x4d1f('0x48')])?_0x282d76[_0x4d1f('0x48')]:null,_0x282d76[_0x4d1f('0xf')]||_0x4fd2f0&&_0x4fd2f0[_0x4d1f('0xf')]){const _0x10b44d=_0x4fd2f0&&_0x4fd2f0[_0x4d1f('0xf')]?_0x4fd2f0:_0x282d76;_0x53645e&&_0x53645e[_0x4d1f('0x1e')]==_0x364be3+'EmptyContainer'&&_0x53645e['element'][_0x4d1f('0x2c')]==_0x10b44d[_0x4d1f('0x2c')]?_0x53645e[_0x4d1f('0x10')]++:_0x391628[_0x4d1f('0xa')]({'type':_0x364be3+_0x4d1f('0x1f'),'element':_0x10b44d,'quantity':0x1});}else _0x391628[_0x4d1f('0xa')]({'type':_0x364be3+_0x4d1f('0x32'),'element':_0x282d76});}}}}}[_0x4d1f('0x3')](_0x5d38f9){const _0x4c32f1=this['_locale'],_0x2df7f2=[],_0x3e9fc5=[],_0x3d4d3a=[];for(const _0x19ed7d of _0x5d38f9)switch(_0x19ed7d[_0x4d1f('0x1e')]){case _0x4d1f('0x34'):if(_0x19ed7d['add']=_0x19ed7d[_0x4d1f('0x0')][_0x4d1f('0x29')](/(\S)\u000A+(\S)/g,_0x4d1f('0x37'))[_0x4d1f('0x29')](/\u000A/g,''),_0x19ed7d[_0x4d1f('0x7')]=_0x19ed7d[_0x4d1f('0x7')][_0x4d1f('0x29')](/(\S)\u000A+(\S)/g,_0x4d1f('0x37'))[_0x4d1f('0x29')](/\u000A/g,''),''!=_0x19ed7d['add']&&''!=_0x19ed7d['remove']){_0x2df7f2[_0x4d1f('0xa')]({'type':'replace','content':_0x1c37ec(_0x4c32f1,_0x4d1f('0x43'),['\x22'+_0x19ed7d[_0x4d1f('0x7')]+'\x22','\x22'+_0x19ed7d[_0x4d1f('0x0')]+'\x22'])});continue;}if(null!=_0x19ed7d['add'][_0x4d1f('0x45')](/^ +$/)){_0x2df7f2[_0x4d1f('0xa')]({'type':_0x4d1f('0x12'),'content':_0x1c37ec(_0x4c32f1,'*Insert:*\x20%0',_0x1c37ec(_0x4c32f1,'ELEMENT_SPACE',_0x19ed7d[_0x4d1f('0x0')][_0x4d1f('0x4a')]))});continue;}if(null!=_0x19ed7d['remove'][_0x4d1f('0x45')](/^ +$/)){_0x2df7f2[_0x4d1f('0xa')]({'type':_0x4d1f('0x25'),'content':_0x1c37ec(_0x4c32f1,'*Remove:*\x20%0',_0x1c37ec(_0x4c32f1,_0x4d1f('0x15'),_0x19ed7d[_0x4d1f('0x7')][_0x4d1f('0x4a')]))});continue;}if(''!=_0x19ed7d[_0x4d1f('0x0')]){_0x2df7f2['push']({'type':_0x4d1f('0x12'),'content':_0x1c37ec(_0x4c32f1,_0x4d1f('0x5'),'\x22'+_0x19ed7d['add']+'\x22')});continue;}_0x2df7f2['push']({'type':'deletion','content':_0x1c37ec(_0x4c32f1,_0x4d1f('0x3f'),'\x22'+_0x19ed7d[_0x4d1f('0x7')]+'\x22')});continue;case _0x4d1f('0x44'):case'addObject':_0x2df7f2[_0x4d1f('0xa')]({'type':'insertion','content':_0x1c37ec(_0x4c32f1,'*Insert:*\x20%0',this[_0x4d1f('0x39')](_0x19ed7d[_0x4d1f('0x4')],_0x19ed7d[_0x4d1f('0x10')]))});continue;case _0x4d1f('0x2d'):case'removeObject':_0x2df7f2[_0x4d1f('0xa')]({'type':_0x4d1f('0x25'),'content':_0x1c37ec(_0x4c32f1,'*Remove:*\x20%0',this[_0x4d1f('0x39')](_0x19ed7d[_0x4d1f('0x4')],_0x19ed7d['quantity']))});continue;case _0x4d1f('0x16'):_0x2df7f2[_0x4d1f('0xa')]({'type':_0x4d1f('0x12'),'content':_0x1c37ec(_0x4c32f1,_0x4d1f('0x9'),this[_0x4d1f('0x39')](_0x19ed7d[_0x4d1f('0x4')],_0x19ed7d[_0x4d1f('0x10')]))});continue;case _0x4d1f('0x11'):_0x2df7f2[_0x4d1f('0xa')]({'type':_0x4d1f('0x25'),'content':_0x1c37ec(_0x4c32f1,'*Merge:*\x20%0',this[_0x4d1f('0x39')](_0x19ed7d[_0x4d1f('0x4')],_0x19ed7d[_0x4d1f('0x10')]))});continue;case _0x4d1f('0x17'):_0x3e9fc5[_0x4d1f('0xa')](_0x19ed7d[_0x4d1f('0x27')]);continue;case _0x4d1f('0x20'):_0x3d4d3a[_0x4d1f('0xa')](_0x19ed7d['key']);continue;default:_0x2df7f2[_0x4d1f('0xa')](_0x19ed7d);}if(_0x3e9fc5[_0x4d1f('0x4a')]){const _0x2685eb=_0x3e9fc5[_0x4d1f('0x13')](_0x26884f=>this[_0x4d1f('0x35')][_0x4d1f('0x23')](_0x26884f)?this['_attributeLabels']['get'](_0x26884f):_0x26884f)['join'](',\x20');_0x2df7f2[_0x4d1f('0xa')]({'type':'format','content':_0x1c37ec(this[_0x4d1f('0x46')],_0x4d1f('0x41'),_0x2685eb)});}if(_0x3d4d3a[_0x4d1f('0x4a')]){const _0xb2b5d1=_0x3d4d3a[_0x4d1f('0x13')](_0x39e6ce=>this[_0x4d1f('0x35')]['has'](_0x39e6ce)?this['_attributeLabels']['get'](_0x39e6ce):_0x39e6ce)['join'](',\x20');_0x2df7f2[_0x4d1f('0xa')]({'type':_0x4d1f('0xd'),'content':_0x1c37ec(this[_0x4d1f('0x46')],_0x4d1f('0xc'),_0xb2b5d1)});}return _0x2df7f2;}[_0x4d1f('0x1a')](_0x30e401){for(const _0x1564b3 of this[_0x4d1f('0x2')]){const _0x4cb1c1=_0x1564b3(_0x30e401);if(_0x4cb1c1&&'type'in _0x4cb1c1)return _0x4cb1c1;}}[_0x4d1f('0x3b')](_0x4af738,_0x78f5bb){const _0xe9dbaa=_0x78f5bb[_0x4d1f('0x3e')],_0x4e75c8=void 0x0===_0xe9dbaa['newValue']?_0x4d1f('0x20'):_0x4d1f('0x17');_0x4af738[_0x4d1f('0xa')]({'type':_0x4e75c8,'key':_0xe9dbaa[_0x4d1f('0x27')]});}[_0x4d1f('0x42')](_0x3c2fd5,_0x1e4cd1){_0x3c2fd5[_0x4d1f('0xa')]({'type':_0x4d1f('0xd'),'content':_0x1c37ec(this[_0x4d1f('0x46')],_0x4d1f('0x3d'),this[_0x4d1f('0x39')](_0x1e4cd1[_0x4d1f('0x3c')]()[_0x4d1f('0x6')]['nodeAfter'],0x1))});}['_handleInsertRemoveSuggestionDescription'](_0x378ebf,_0x178c32,_0x5e14ab){if(this['_addDescriptionItems'](_0x378ebf,_0x178c32),_0x5e14ab&&_0x5e14ab[_0x4d1f('0x3c')]()&&!_0x178c32['getFirstRange']()['end'][_0x4d1f('0x2f')](_0x5e14ab[_0x4d1f('0x3c')]()['start'])){const _0x5f127e=_0x378ebf[_0x378ebf[_0x4d1f('0x4a')]-0x1],_0x29603f=_0x4d1f('0x12')==_0x178c32[_0x4d1f('0x1e')]?'add':'remove';_0x5f127e&&_0x4d1f('0x34')==_0x5f127e[_0x4d1f('0x1e')]&&(_0x5f127e[_0x29603f]+='\x0a');}}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5d42=['getSuggestion','get','TrackChanges','plugins','adapter','editor','pluginName','addSuggestionData','addSuggestion','requires'];(function(_0x55304e,_0x5d424a){var _0x281c0a=function(_0x1edc85){while(--_0x1edc85){_0x55304e['push'](_0x55304e['shift']());}};_0x281c0a(++_0x5d424a);}(_0x5d42,0x1ca));var _0x281c=function(_0x55304e,_0x5d424a){_0x55304e=_0x55304e-0x0;var _0x281c0a=_0x5d42[_0x55304e];return _0x281c0a;};import{Plugin as _0x234c83}from'ckeditor5/src/core';import _0x899f11 from'./trackchangesui';import _0x39bd83 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x234c83{static get[_0x281c('0x1')](){return[_0x39bd83,_0x899f11,'Comments'];}static get[_0x281c('0x8')](){return _0x281c('0x4');}set[_0x281c('0x6')](_0x49d12e){this[_0x281c('0x7')][_0x281c('0x5')][_0x281c('0x3')](_0x39bd83)[_0x281c('0x6')]=_0x49d12e;}get[_0x281c('0x6')](){return this[_0x281c('0x7')]['plugins'][_0x281c('0x3')](_0x39bd83)[_0x281c('0x6')];}[_0x281c('0x0')](_0x165209){return this[_0x281c('0x7')][_0x281c('0x5')][_0x281c('0x3')](_0x39bd83)[_0x281c('0x9')](_0x165209);}['getSuggestions']({skipNotAttached:_0x44e2c3=!0x1,toJSON:_0x280536=!0x1}={}){return this[_0x281c('0x7')][_0x281c('0x5')]['get'](_0x39bd83)['getSuggestions']({'skipNotAttached':_0x44e2c3,'toJSON':_0x280536});}[_0x281c('0x2')](_0x2b316c){return this[_0x281c('0x7')][_0x281c('0x5')][_0x281c('0x3')](_0x39bd83)['getSuggestion'](_0x2b316c);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x434d=['createDocumentFragment','editorCreator','getDataWithDiscardedSuggestions','pluginName','Users','trackChangesData','getDataWithAcceptedSuggestions','model','init','editor','result','getFullData','reduce','_adapter','get','set','destroy','define','execute','addSuggestionData','track-changes-data-invalid-editor-creator','data','create','getSuggestions','CommentsRepository','rootsAttributes','getRootsAttributes','getRootNames','users','acceptAllSuggestions','TrackChangesData','appendChild','trackChangesData.editorCreator','TrackChangesEditing','document','getUser','function','TrackChangesDataGetter','plugins','useAnonymousUser','Pagination','addUser','createElement','discardAllSuggestions'];(function(_0x51c2ec,_0x434db7){const _0x45db7a=function(_0x43a7ad){while(--_0x43a7ad){_0x51c2ec['push'](_0x51c2ec['shift']());}};_0x45db7a(++_0x434db7);}(_0x434d,0x1bb));const _0x45db=function(_0x51c2ec,_0x434db7){_0x51c2ec=_0x51c2ec-0x0;let _0x45db7a=_0x434d[_0x51c2ec];return _0x45db7a;};import{Plugin as _0x1882ca}from'ckeditor5/src/core';import{CKEditorError as _0x835f19}from'ckeditor5/src/utils';import _0x4bab2f from'./trackchangesediting';import{sanitizeEditorConfig as _0x56f337}from'ckeditor5-collaboration/src/collaboration-core';const T=[_0x45db('0x25')];export default class P extends _0x1882ca{static get['requires'](){return[_0x4bab2f];}static get[_0x45db('0x0')](){return _0x45db('0x1b');}['init'](){const _0x214bee=this[_0x45db('0x6')];if(_0x214bee['config'][_0x45db('0xe')](_0x45db('0x1d'),_0x35e92e=>{const _0x3d5a7f=_0x214bee[_0x45db('0x4')][_0x45db('0x1f')][_0x45db('0x18')]()[_0x45db('0x9')]((_0xc8b23c,_0x584c25)=>(_0xc8b23c[_0x584c25]='',_0xc8b23c),{});return _0x214bee['constructor'][_0x45db('0x13')](_0x3d5a7f,_0x35e92e);}),_0x45db('0x21')!=typeof _0x214bee['config'][_0x45db('0xb')](_0x45db('0x2'))[_0x45db('0x2a')])throw new _0x835f19(_0x45db('0x11'));}[_0x45db('0x3')](_0x447d5c){return N(this[_0x45db('0x6')],!0x0,_0x447d5c);}[_0x45db('0x2b')](_0x2c1228){return N(this['editor'],!0x1,_0x2c1228);}}class D extends _0x1882ca{static get[_0x45db('0x0')](){return _0x45db('0x22');}constructor(_0x2d779a){super(_0x2d779a),this[_0x45db('0x7')]='end';}[_0x45db('0x5')](){this[_0x45db('0x6')]['plugins'][_0x45db('0xb')](_0x45db('0x15'))[_0x45db('0xa')]={'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[_0x45db('0x6')][_0x45db('0x23')][_0x45db('0xb')](_0x45db('0x1e'))['_adapter']=null;}}function v(_0x29bf3a){return void 0x0!==_0x29bf3a[_0x45db('0x17')];}async function N(_0x40cd69,_0x4391da,_0x40a93d){const _0x5f44ce=_0x56f337(_0x40cd69,T);_0x5f44ce[_0x45db('0x23')]['push'](_0x4bab2f,D),_0x5f44ce[_0x45db('0x16')]=v(_0x40cd69)?_0x40cd69[_0x45db('0x17')]():void 0x0;const _0x5eed2d=document[_0x45db('0x29')](),_0x213880=_0x40cd69['config'][_0x45db('0xb')](_0x45db('0x2'))[_0x45db('0x2a')],_0x289568=await _0x213880(_0x5f44ce,()=>function(_0x66282){const _0x5ab09a=document[_0x45db('0x27')]('div');return _0x66282[_0x45db('0x1c')](_0x5ab09a),_0x5ab09a;}(_0x5eed2d));!function(_0x3d8e0f,_0x4b8754){const _0xe79873=_0x3d8e0f[_0x45db('0x4')]['document'][_0x45db('0x18')]()[_0x45db('0x9')]((_0x21d6a3,_0x52295f)=>(_0x21d6a3[_0x52295f]=_0x3d8e0f[_0x45db('0x12')]['get']({'rootName':_0x52295f}),_0x21d6a3),{}),_0x145a5b=_0x3d8e0f[_0x45db('0x23')][_0x45db('0xb')](_0x45db('0x1'))[_0x45db('0x19')]['map'](_0xc97da7=>({'id':_0xc97da7['id'],'name':_0xc97da7['name']})),_0x7c4030=_0x3d8e0f[_0x45db('0x23')][_0x45db('0xb')](_0x45db('0x1e'))[_0x45db('0x14')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x3564ac=_0x4b8754[_0x45db('0x23')]['get'](_0x45db('0x1')),_0x2ecf6a=_0x4b8754[_0x45db('0x23')][_0x45db('0xb')](_0x45db('0x1e'));for(const _0x407ccf of _0x145a5b)_0x3564ac[_0x45db('0x20')](_0x407ccf['id'])||_0x3564ac[_0x45db('0x26')](_0x407ccf);_0x3564ac['me']||_0x3564ac[_0x45db('0x24')]();for(const _0x5c8256 of _0x7c4030)_0x2ecf6a[_0x45db('0x10')](_0x5c8256);_0x4b8754[_0x45db('0x12')][_0x45db('0xc')](_0xe79873);}(_0x40cd69,_0x289568),_0x289568[_0x45db('0xf')](_0x4391da?_0x45db('0x1a'):_0x45db('0x28'));const _0x4e0030=v(_0x289568)?_0x289568[_0x45db('0x8')](_0x40a93d):_0x289568[_0x45db('0x12')][_0x45db('0xb')](_0x40a93d);return await _0x289568[_0x45db('0xd')](),_0x4e0030;}
|