@ckeditor/ckeditor5-track-changes 40.1.0 → 40.2.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/CHANGELOG.md +15 -15
- package/README.md +1 -1
- 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 _0x1ac7=['enableCommand','batch','*Format:*\x20change\x20table\x20cell\x20properties','tableWidth','get','has','nodeAfter','_suggestionFactory','registerDescriptionCallback','TrackChangesEditing','tableCellProperties','model','table','selection','tableHeight','discard','formatBlock','getFirstPosition','getSuggestionCallback','editor','handleDiscardAction','tableCellPadding','_descriptionFactory','_handlePropertyChange','tableBorderStyle','getAttribute','format','registerCustomCallback','TablePropertiesEditing','getContainedElement','tableProperties','tableCellWidth','getSuggestions','removeAttribute','tableBackgroundColor','tableCellHeight','enqueueChange','accept','handleSuggestionDescription','afterInit','data','document','join','plugins','tableCellHorizontalAlignment','locale','TableUtils','TableCellPropertiesEditing','markBlockFormat','tableBorderColor','subType','tableCellBorderColor'];(function(_0x432f1a,_0x1ac7a1){const _0x523dc4=function(_0x5a1688){while(--_0x5a1688){_0x432f1a['push'](_0x432f1a['shift']());}};_0x523dc4(++_0x1ac7a1);}(_0x1ac7,0x17e));const _0x523d=function(_0x432f1a,_0x1ac7a1){_0x432f1a=_0x432f1a-0x0;let _0x523dc4=_0x1ac7[_0x432f1a];return _0x523dc4;};import{Plugin as _0x890481}from'ckeditor5/src/core';import{getTranslation as _0x16f514}from'../utils/common-translations';export default class Mt extends _0x890481{constructor(_0x476054){super(_0x476054),this[_0x523d('0xc')]=[_0x523d('0x1f'),_0x523d('0x6'),'tableBorderWidth','tableAlignment',_0x523d('0x25'),_0x523d('0x30'),_0x523d('0x10')],this[_0x523d('0x2c')]=[_0x523d('0x21'),'tableCellBorderStyle','tableCellBorderWidth',_0x523d('0x3'),_0x523d('0xd'),_0x523d('0x11'),'tableCellBackgroundColor',_0x523d('0x1a'),'tableCellVerticalAlignment'];}static get['pluginName'](){return'TrackChangesTableProperties';}[_0x523d('0x15')](){const _0x5297b9=this[_0x523d('0x1')][_0x523d('0x19')]['get'](_0x523d('0x2b'));if(this[_0x523d('0x1')][_0x523d('0x19')]['has'](_0x523d('0xa'))){for(const _0x32be83 of this[_0x523d('0xc')])_0x5297b9['enableCommand'](_0x32be83,(_0x4c13db,_0x241ad2)=>{const _0x32637e=this[_0x523d('0x1')][_0x523d('0x2d')][_0x523d('0x17')][_0x523d('0x2f')][_0x523d('0x33')]()['findAncestor'](_0x523d('0x2e'));this['_handlePropertyChange'](_0x32be83,[_0x32637e],this[_0x523d('0xc')],_0x523d('0xc'),_0x4c13db,_0x241ad2);});_0x5297b9['_suggestionFactory'][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0xc'),'accept',_0x5297b9[_0x523d('0x29')]['getSuggestionCallback'](_0x523d('0x32'),null,'discard')),_0x5297b9['_suggestionFactory'][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0xc'),_0x523d('0x31'),(_0x1f1e1e,_0x4047cb)=>this[_0x523d('0x2')](this[_0x523d('0xc')],_0x1f1e1e,_0x4047cb)),_0x5297b9[_0x523d('0x29')][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0xc'),'join',()=>!0x1);}if(this[_0x523d('0x1')][_0x523d('0x19')][_0x523d('0x27')](_0x523d('0x1d'))){for(const _0x1d0d22 of this[_0x523d('0x2c')])_0x5297b9[_0x523d('0x22')](_0x1d0d22,(_0x1641c3,_0x3d2060)=>{const _0x35d13f=this[_0x523d('0x1')]['plugins'][_0x523d('0x26')](_0x523d('0x1c'))['getSelectionAffectedTableCells'](this[_0x523d('0x1')]['model'][_0x523d('0x17')]['selection']);this['_handlePropertyChange'](_0x1d0d22,_0x35d13f,this['tableCellProperties'],'tableCellProperties',_0x1641c3,_0x3d2060);});_0x5297b9[_0x523d('0x29')]['registerCustomCallback'](_0x523d('0x32'),_0x523d('0x2c'),_0x523d('0x13'),_0x5297b9[_0x523d('0x29')][_0x523d('0x0')](_0x523d('0x32'),null,'discard')),_0x5297b9[_0x523d('0x29')][_0x523d('0x9')](_0x523d('0x32'),'tableCellProperties',_0x523d('0x31'),(_0x1227d6,_0x14ca83)=>this[_0x523d('0x2')](this[_0x523d('0x2c')],_0x1227d6,_0x14ca83)),_0x5297b9['_suggestionFactory'][_0x523d('0x9')](_0x523d('0x32'),_0x523d('0x2c'),_0x523d('0x18'),()=>!0x1);}_0x5297b9[_0x523d('0x4')][_0x523d('0x2a')](_0x379646=>this[_0x523d('0x14')](_0x379646));}[_0x523d('0x5')](_0xa574e0,_0x2d5b46,_0x52fd71,_0x22749e,_0x3597cc,_0x5aaa70){const _0x4450e6=this['editor']['plugins'][_0x523d('0x26')](_0x523d('0x2b'));this[_0x523d('0x1')]['model'][_0x523d('0x12')](_0x5aaa70[_0x523d('0x23')],()=>{for(const _0x5e2d9d of _0x2d5b46){if(this['_getSuggestion'](_0x5e2d9d,_0x22749e))_0x3597cc(_0x5aaa70);else{const _0xbfcbee={};for(const _0x3e8fa8 of _0x52fd71){const _0x3e4cec=_0x5e2d9d[_0x523d('0x7')](_0x3e8fa8);void 0x0!==_0x3e4cec&&(_0xbfcbee[_0x3e8fa8]=_0x3e4cec);}_0x3597cc(_0x5aaa70),_0x4450e6[_0x523d('0x1e')](_0x5e2d9d,{'commandParams':[_0xbfcbee]},[],_0x22749e);}}});}[_0x523d('0x2')](_0x5b7e39,_0x5d1b58,_0x15c644){const _0x5ae496=_0x5d1b58[0x0]['start'][_0x523d('0x28')],_0x5965bd=_0x15c644['commandParams'][0x0];this['editor'][_0x523d('0x2d')]['change'](_0x203910=>{for(const _0xbabbe3 of _0x5b7e39)void 0x0!==_0x5965bd[_0xbabbe3]?_0x203910['setAttribute'](_0xbabbe3,_0x5965bd[_0xbabbe3],_0x5ae496):_0x203910[_0x523d('0xf')](_0xbabbe3,_0x5ae496);});}['handleSuggestionDescription'](_0x58734a){if(_0x58734a[_0x523d('0x16')])switch(_0x58734a[_0x523d('0x20')]){case _0x523d('0xc'):return{'type':_0x523d('0x8'),'content':_0x16f514(this[_0x523d('0x1')][_0x523d('0x1b')],'*Format:*\x20change\x20table\x20properties')};case _0x523d('0x2c'):return{'type':_0x523d('0x8'),'content':_0x16f514(this['editor'][_0x523d('0x1b')],_0x523d('0x24'))};}}['_getSuggestion'](_0x489a30,_0x206da1){const _0x522fea=this['editor'][_0x523d('0x19')][_0x523d('0x26')](_0x523d('0x2b'));for(const _0x43f9db of _0x522fea[_0x523d('0xe')]({'skipNotAttached':!0x0})){const _0x30fd14=_0x43f9db[_0x523d('0xb')]();if(_0x43f9db[_0x523d('0x20')]===_0x206da1&&_0x30fd14===_0x489a30)return _0x43f9db;}return null;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2828=['afterInit','TrackChangesEditing','has','Template','enableCommand','plugins','get'];(function(_0x588cfb,_0x282820){const _0x4b76e2=function(_0x503933){while(--_0x503933){_0x588cfb['push'](_0x588cfb['shift']());}};_0x4b76e2(++_0x282820);}(_0x2828,0x1d8));const _0x4b76=function(_0x588cfb,_0x282820){_0x588cfb=_0x588cfb-0x0;let _0x4b76e2=_0x2828[_0x588cfb];return _0x4b76e2;};import{Plugin as _0x421c51}from'ckeditor5/src/core';export default class vt extends _0x421c51{[_0x4b76('0x4')](){const _0x2d4cfe=this['editor'];_0x2d4cfe[_0x4b76('0x2')][_0x4b76('0x6')](_0x4b76('0x0'))&&_0x2d4cfe[_0x4b76('0x2')][_0x4b76('0x3')](_0x4b76('0x5'))[_0x4b76('0x1')]('insertTemplate');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5e95=['schema','_splitMarkerName','has','isEqual','document','editor','isCollapsed','end','afterInit','suggestion','start','model','ELEMENT_TITLE','removeMarker','getChangedMarkers','createRange','forward','locale','title-content','from','updateMarker','element'];(function(_0x331b3b,_0x5e950c){const _0x5a9ba6=function(_0x45c03f){while(--_0x45c03f){_0x331b3b['push'](_0x331b3b['shift']());}};_0x5a9ba6(++_0x5e950c);}(_0x5e95,0x13a));const _0x5a9b=function(_0x331b3b,_0x5e950c){_0x331b3b=_0x331b3b-0x0;let _0x5a9ba6=_0x5e95[_0x331b3b];return _0x5a9ba6;};import{Plugin as _0x3f245a}from'ckeditor5/src/core';import{getTranslation as _0x61b65d}from'../utils/common-translations';export default class _t extends _0x3f245a{[_0x5a9b('0x2')](){const _0x14a488=this[_0x5a9b('0x15')];if(!_0x14a488['plugins'][_0x5a9b('0x12')]('Title'))return;const _0x43b8ac=_0x14a488['plugins']['get']('TrackChangesEditing');_0x43b8ac['_descriptionFactory']['registerElementLabel'](_0x5a9b('0xc'),()=>_0x61b65d(_0x14a488[_0x5a9b('0xb')],_0x5a9b('0x6'))),_0x14a488[_0x5a9b('0x5')][_0x5a9b('0x14')]['registerPostFixer'](_0x2cd45a=>{let _0x3b9b55=!0x1;const _0x57180a=Array[_0x5a9b('0xd')](_0x14a488[_0x5a9b('0x5')]['document']['differ'][_0x5a9b('0x8')]());for(const {name:_0x1bec36,data:_0x3ae090}of _0x57180a){const {group:_0xdc6af9}=_0x43b8ac[_0x5a9b('0x11')](_0x1bec36);if(_0x5a9b('0x3')!==_0xdc6af9||!_0x3ae090['newRange'])continue;const _0x1c55c6=_0x3ae090['newRange'],_0x74aab7=_0x1c55c6['end']['nodeBefore'];if(!_0x74aab7||!_0x74aab7['is'](_0x5a9b('0xf'),_0x5a9b('0xc')))continue;if(!_0x1c55c6[_0x5a9b('0x4')]['isTouching'](_0x1c55c6[_0x5a9b('0x1')]))continue;const _0x168464=_0x14a488[_0x5a9b('0x5')][_0x5a9b('0x10')]['getNearestSelectionRange'](_0x1c55c6[_0x5a9b('0x1')],_0x5a9b('0xa'));if(_0x168464&&_0x168464[_0x5a9b('0x0')]){const _0xf59709=_0x2cd45a[_0x5a9b('0x9')](_0x1c55c6[_0x5a9b('0x4')],_0x168464[_0x5a9b('0x4')]);_0xf59709[_0x5a9b('0x13')](_0x1c55c6)||(_0x2cd45a[_0x5a9b('0xe')](_0x1bec36,{'range':_0xf59709}),_0x3b9b55=!0x0);}_0x3b9b55||(_0x2cd45a[_0x5a9b('0x7')](_0x1bec36),_0x3b9b55=!0x0);}return _0x3b9b55;});}}
|
package/src/integrations/undo.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a11=['undo','get','enableCommand','has','TrackChangesEditing','editor','afterInit','plugins'];(function(_0x3c54cb,_0x1a11ad){const _0x31b686=function(_0x1fd816){while(--_0x1fd816){_0x3c54cb['push'](_0x3c54cb['shift']());}};_0x31b686(++_0x1a11ad);}(_0x1a11,0x161));const _0x31b6=function(_0x3c54cb,_0x1a11ad){_0x3c54cb=_0x3c54cb-0x0;let _0x31b686=_0x1a11[_0x3c54cb];return _0x31b686;};import{Plugin as _0x5f1e27}from'ckeditor5/src/core';export default class Dt extends _0x5f1e27{[_0x31b6('0x5')](){const _0xe299cf=this[_0x31b6('0x4')],_0x4bd904=_0xe299cf[_0x31b6('0x6')][_0x31b6('0x0')](_0x31b6('0x3'));_0xe299cf[_0x31b6('0x6')][_0x31b6('0x2')]('UndoEditing')&&(_0x4bd904['enableCommand'](_0x31b6('0x7')),_0x4bd904[_0x31b6('0x1')]('redo'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x24ba=['plugins','writer','activeMarkers','push','schema','getAttribute','getWalker','isAtEnd','ck-suggestion-marker--active','mapper','addClass','isContent','consumable','name','element','nextSibling','createUIElement','test','insert','type','elementEnd','get','markerName','getItems','isLimit','createRangeOn','toViewPosition','includes','parent','markerRange','previousPosition','listItem','item','getCustomProperty'];(function(_0x573cd9,_0x24ba71){const _0x4920d1=function(_0x42eb05){while(--_0x42eb05){_0x573cd9['push'](_0x573cd9['shift']());}};_0x4920d1(++_0x24ba71);}(_0x24ba,0x1d2));const _0x4920=function(_0x573cd9,_0x24ba71){_0x573cd9=_0x573cd9-0x0;let _0x4920d1=_0x24ba[_0x573cd9];return _0x4920d1;};export function getRangesWithAttribute(_0x417211,_0x1f5a50,_0xd96e01){const _0x1bb612=[];for(const _0x2a5d75 of _0x1f5a50[_0x4920('0x21')]())_0x2a5d75['hasAttribute'](_0x417211)&&_0x1bb612[_0x4920('0xd')](_0xd96e01[_0x4920('0x1')](_0x2a5d75));return _0x1bb612;}export function getElementsAffectedByListItemRename(_0x4775ac){const _0xcf7fb3=[];if(_0x4775ac['is'](_0x4920('0x18'),_0x4920('0x7'))){let _0x4a20a1=_0x4775ac[_0x4920('0x19')];for(;_0x4a20a1&&_0x4a20a1['is'](_0x4920('0x18'),_0x4920('0x7'))&&_0x4a20a1[_0x4920('0xf')]('listIndent')>0x0;)_0xcf7fb3[_0x4920('0xd')](_0x4a20a1),_0x4a20a1=_0x4a20a1['nextSibling'];}return _0xcf7fb3;}export function downcastSplitMergeMarker(_0x1320f8,_0x875cd6,{showActiveMarker:_0x54e40b=!0x0}={}){const _0x1aad58=_0x1320f8[_0x4920('0xa')][_0x4920('0x1f')]('TrackChangesEditing');return(_0x2f42e2,_0x33a0cc,_0x2312db)=>{if(!_0x2312db[_0x4920('0x16')][_0x4920('0x1b')](_0x33a0cc['markerRange'],_0x2f42e2[_0x4920('0x17')]))return;const _0x5887da=_0x33a0cc[_0x4920('0x5')][_0x4920('0x10')](),_0x4146d3=_0x33a0cc[_0x4920('0x5')]['start'],_0x3a9cde=_0x1320f8['model'][_0x4920('0xe')];let _0x4d1db5=null,_0x4f7b9f=null,_0x596b7f=!0x1,_0x5a4591=!0x1;for(const _0x408a3c of _0x5887da){const _0x4b44cc=_0x408a3c[_0x4920('0x8')];_0x596b7f=_0x596b7f||_0x3a9cde[_0x4920('0x15')](_0x4b44cc);const _0x342862=_0x2312db[_0x4920('0x13')]['toViewElement'](_0x4b44cc);if(_0x342862&&_0x342862[_0x4920('0x9')]('addHighlight'))return;_0x4920('0x1e')==_0x408a3c[_0x4920('0x1d')]&&(_0x3a9cde['isBlock'](_0x4b44cc)&&!_0x3a9cde[_0x4920('0x0')](_0x4b44cc)&&(_0x4b44cc[_0x4920('0x19')]||_0x4146d3[_0x4920('0x11')]?_0x4d1db5&&_0x4d1db5[_0x4920('0x4')]==_0x4b44cc||(_0x4d1db5=_0x4b44cc,_0x527016(_0x408a3c[_0x4920('0x6')]),_0x5a4591=!0x0):_0x4f7b9f=_0x4f7b9f||_0x408a3c[_0x4920('0x6')]));}function _0x527016(_0x4d97fa){const _0x96e38d=_0x2312db[_0x4920('0xb')][_0x4920('0x1a')]('span',{'class':'ck-suggestion-marker-'+_0x875cd6}),_0x2db5df=_0x2312db[_0x4920('0x13')][_0x4920('0x2')](_0x4d97fa);_0x54e40b&&_0x1aad58[_0x4920('0xc')][_0x4920('0x3')](_0x33a0cc[_0x4920('0x20')])&&_0x2312db['writer'][_0x4920('0x14')](_0x4920('0x12'),_0x96e38d),_0x2312db[_0x4920('0xb')][_0x4920('0x1c')](_0x2db5df,_0x96e38d),_0x2312db[_0x4920('0x13')]['bindElementToMarker'](_0x96e38d,_0x33a0cc[_0x4920('0x20')]);}_0x596b7f||_0x5a4591||!_0x4f7b9f||_0x527016(_0x4f7b9f);};}
|
package/src/suggestion.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2b8d=['from','decorate','_model','getFirstMarker','markers','hasComments','@external','discard','subType','onAttributesChange','getMarkerNames','split','attributes','getMarkers','next','getItems','onAccept','getRanges','creator','reduce','type','_onAccept','clear','nodeAfter','isMultiRange','setAttribute','previous','filter','author','getFirstRange','commentThread','onDiscard','substr','_onAttributesChange','removeMarker','removeMarkers','addMarkerName','getRange','addMarker','authoredAt','get','getMultiRangeId','isExternal','suggestion:','getAllAdjacentSuggestions','size','head','set','length','accept','end','_isDataLoaded','nodeBefore','isIntersectingWithRange','data','_markerNames','removeAttribute','map','createdAt','_onDiscard','change','getContainedElement'];(function(_0x558eef,_0x2b8dfc){const _0x2e70b8=function(_0x536c3c){while(--_0x536c3c){_0x558eef['push'](_0x558eef['shift']());}};_0x2e70b8(++_0x2b8dfc);}(_0x2b8d,0x1cb));const _0x2e70=function(_0x558eef,_0x2b8dfc){_0x558eef=_0x558eef-0x0;let _0x2e70b8=_0x2b8d[_0x558eef];return _0x2e70b8;};import{Element as _0x675665}from'ckeditor5/src/engine';import{ObservableMixin as _0x224d26,uid as _0x4a2373}from'ckeditor5/src/utils';import{cloneDeep as _0x171b68,isEqual as _0x50d259,set as _0x2d51a1,unset as _0x3077bb}from'lodash-es';export default class u extends _0x224d26(){constructor(_0x34df69,_0x1f1fe7){super(),this[_0x2e70('0x1a')]=!0x1,this['id']=_0x1f1fe7['id'],this[_0x2e70('0x39')]=_0x1f1fe7['type'],this[_0x2e70('0x2d')]=_0x1f1fe7[_0x2e70('0x2d')]||null,this[_0x2e70('0x3')]=_0x1f1fe7[_0x2e70('0x3')],this[_0x2e70('0x37')]=_0x1f1fe7[_0x2e70('0x37')]||_0x1f1fe7[_0x2e70('0x3')],this[_0x2e70('0x11')]=Boolean(_0x1f1fe7[_0x2e70('0x31')]&&_0x1f1fe7['attributes'][_0x2e70('0x2b')]),this['data']=null,this[_0x2e70('0x27')]=_0x34df69,this[_0x2e70('0x3a')]=_0x1f1fe7[_0x2e70('0x35')],this[_0x2e70('0x22')]=_0x1f1fe7[_0x2e70('0x6')],this[_0x2e70('0x8')]=_0x1f1fe7[_0x2e70('0x2e')],this[_0x2e70('0x1e')]=new Set(),this[_0x2e70('0x21')]=null,this[_0x2e70('0x16')](_0x2e70('0xe'),null),this[_0x2e70('0x16')](_0x2e70('0x31'),_0x1f1fe7[_0x2e70('0x31')]||{}),this['set'](_0x2e70('0x1'),null),this[_0x2e70('0x16')]('next',null),this[_0x2e70('0x16')](_0x2e70('0x5'),null),this[_0x2e70('0x16')]('_saved',!0x1),this[_0x2e70('0x26')](_0x2e70('0x18')),this['decorate'](_0x2e70('0x2c'));}get['head'](){let _0x9e557d=this;for(;_0x9e557d[_0x2e70('0x1')];)_0x9e557d=_0x9e557d[_0x2e70('0x1')];return _0x9e557d;}get[_0x2e70('0x2a')](){return!!this[_0x2e70('0x5')]&&this[_0x2e70('0x5')]['length']>0x0;}get[_0x2e70('0x3d')](){if(0x0==this[_0x2e70('0x1e')][_0x2e70('0x14')])return!0x1;return 0x6==Array[_0x2e70('0x25')](this[_0x2e70('0x1e')])[0x0][_0x2e70('0x30')](':')[_0x2e70('0x17')];}get['isInContent'](){return null!==this[_0x2e70('0x28')]();}[_0x2e70('0xb')](_0x2c4670){this[_0x2e70('0x1e')]['add'](_0x2c4670);}[_0x2e70('0x2f')](){return Array[_0x2e70('0x25')](this[_0x2e70('0x1e')]);}[_0x2e70('0x32')](){return this[_0x2e70('0x2f')]()[_0x2e70('0x20')](_0x4619df=>this[_0x2e70('0x27')][_0x2e70('0x29')][_0x2e70('0xf')](_0x4619df))[_0x2e70('0x2')](_0x202893=>_0x202893);}[_0x2e70('0x28')](){return this[_0x2e70('0x32')]()[0x0]||null;}[_0x2e70('0xa')](){this['_model'][_0x2e70('0x23')](_0x34c74b=>{for(const _0x411e3f of this[_0x2e70('0x32')]())_0x34c74b[_0x2e70('0x9')](_0x411e3f);}),this['_markerNames'][_0x2e70('0x3b')]();}[_0x2e70('0x9')](_0x594663){this['_model'][_0x2e70('0x23')](_0x4d881b=>{_0x4d881b[_0x2e70('0x9')](_0x594663);}),this['_markerNames']['delete'](_0x594663);}['addRange'](_0x51888c){const _0x10d927=_0x2e70('0x12')+this[_0x2e70('0x39')]+':'+this[_0x2e70('0x2d')]+':'+this['id']+':'+this[_0x2e70('0x37')]['id']+':'+u[_0x2e70('0x10')]();this[_0x2e70('0xb')](_0x10d927),this[_0x2e70('0x27')][_0x2e70('0x23')](_0x391436=>{_0x391436[_0x2e70('0xd')](_0x10d927,{'range':_0x51888c,'usingOperation':!0x0,'affectsData':!0x0});});}[_0x2e70('0x1c')](_0x301632){for(const _0x512aa1 of this['getRanges']())if(_0x512aa1['isIntersecting'](_0x301632))return!0x0;return!0x1;}[_0x2e70('0x36')](){return this['getMarkers']()['map'](_0x3b5c3f=>_0x3b5c3f[_0x2e70('0xc')]());}[_0x2e70('0x34')](){return this[_0x2e70('0x36')]()[_0x2e70('0x38')]((_0x14304e,_0x4c6ae2)=>[..._0x14304e,..._0x4c6ae2['getItems']()],[]);}[_0x2e70('0x4')](){var _0x18656f;return(null===(_0x18656f=this[_0x2e70('0x28')]())||void 0x0===_0x18656f?void 0x0:_0x18656f['getRange']())||null;}[_0x2e70('0x24')](){const _0x1fa947=this[_0x2e70('0x36')]();if(0x1!=_0x1fa947[_0x2e70('0x17')])return null;const _0xf741e2=_0x1fa947[0x0],_0x2bcf34=_0xf741e2['start'][_0x2e70('0x3c')],_0x252914=_0xf741e2[_0x2e70('0x19')][_0x2e70('0x1b')];return _0x2bcf34 instanceof _0x675665?_0x2bcf34!=_0x252914?null:_0x2bcf34:null;}['accept'](){this[_0x2e70('0x3a')](this['getRanges'](),this[_0x2e70('0x1d')],this[_0x2e70('0x31')]),this[_0x2e70('0xa')]();}[_0x2e70('0x2c')](){this[_0x2e70('0x22')](this[_0x2e70('0x36')](),this[_0x2e70('0x1d')],this[_0x2e70('0x31')]),this['removeMarkers']();}[_0x2e70('0x13')](){const _0x25f320=[];let _0x1dfe3b=this[_0x2e70('0x15')];for(;_0x1dfe3b;)_0x25f320['push'](_0x1dfe3b),_0x1dfe3b=_0x1dfe3b[_0x2e70('0x33')];return _0x25f320;}[_0x2e70('0x0')](_0x6994ab,_0x581a32){const _0x224af7=_0x171b68(this[_0x2e70('0x31')]);_0x2d51a1(_0x224af7,_0x6994ab,_0x581a32),_0x50d259(_0x224af7,this[_0x2e70('0x31')])||(this[_0x2e70('0x31')]=_0x224af7,this['_onAttributesChange'](_0x224af7));}[_0x2e70('0x1f')](_0x49dee7){const _0x42b6a0=_0x171b68(this['attributes']);_0x3077bb(_0x42b6a0,_0x49dee7),_0x50d259(_0x42b6a0,this['attributes'])||(this[_0x2e70('0x31')]=_0x42b6a0,this[_0x2e70('0x8')](this[_0x2e70('0x31')]));}['toJSON'](){return{'id':this['id'],'type':this['subType']?this['type']+':'+this[_0x2e70('0x2d')]:this[_0x2e70('0x39')],'authorId':this[_0x2e70('0x37')]['id'],'createdAt':this['createdAt'],'hasComments':this['hasComments'],'data':this['data'],'attributes':this[_0x2e70('0x31')]};}static[_0x2e70('0x10')](){return _0x4a2373()[_0x2e70('0x7')](0x1,0x5);}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2bad=['length','_customCallbacks','end','*Change\x20to:*\x20%0','skip','add','key','_itemLabels','data','start','_handleInsertRemoveSuggestionDescription','Object','addFormat','_itemLabelsCallbacks','format','function','quantity','elementEnd','Container','removeFormat','_handleCustomCallbackDescription','EmptyContainer','_handleAttributeSuggestionDescription','_locale','getDescriptions','*Merge:*\x20%0','push','*Split:*\x20%0','_attributeLabels','getWalker','text','name','removeObject','item','previousSibling','map','isEqual','insertion','normal','isEmpty','getItemLabel','element','*Insert:*\x20%0','pop','isInContent','set','replace','match','nodeAfter','attribute','subType','isObject','indexOf','registerDescriptionCallback','join','_handleRenameSuggestionDescription','get','remove','removeEmptyContainer','*Set\x20format:*\x20%0','_addDescriptionItems','_schema','has','$1\x20$2','deletion','$textProxy','*Remove:*\x20%0','type','$text','ELEMENT_SPACE','getFirstRange'];(function(_0x49d925,_0x2bad40){const _0x4e2a79=function(_0x1ac116){while(--_0x1ac116){_0x49d925['push'](_0x49d925['shift']());}};_0x4e2a79(++_0x2bad40);}(_0x2bad,0x19a));const _0x4e2a=function(_0x49d925,_0x2bad40){_0x49d925=_0x49d925-0x0;let _0x4e2a79=_0x2bad[_0x49d925];return _0x4e2a79;};import{getTranslation as _0x3f1024}from'./utils/common-translations';import{priorities as _0x474877,insertToPriorityArray as _0x449b84}from'ckeditor5/src/utils';import{renameAttributeKey as _0x4b3d76}from'./trackchangesediting';export default class f{constructor(_0x4243d0,_0x201635){this[_0x4e2a('0x11')]=[],this[_0x4e2a('0x17')]=new Map(),this[_0x4e2a('0x1d')]=[],this[_0x4e2a('0x2c')]=new Map(),this[_0x4e2a('0x6')]=_0x4243d0,this[_0x4e2a('0x27')]=_0x201635;}[_0x4e2a('0x28')](_0x1c392f){const _0x294b6b=[],_0x5e1c88=new Set(),_0x5d90cf=new Set();for(let _0x5a00bf=0x0;_0x5a00bf<_0x1c392f['length'];_0x5a00bf++){const _0x2c556c=_0x1c392f[_0x5a00bf];if(!_0x2c556c[_0x4e2a('0x3c')])continue;const _0x111d1f=this[_0x4e2a('0x24')](_0x2c556c);if(_0x111d1f){if(null!=_0x2c556c[_0x4e2a('0x42')]){if(_0x5e1c88['has'](_0x2c556c[_0x4e2a('0x42')]))continue;_0x5e1c88[_0x4e2a('0x15')](_0x2c556c[_0x4e2a('0x42')]);}_0x294b6b['push'](_0x111d1f);}else{if(_0x4e2a('0x41')!=_0x2c556c['type'])_0x4e2a('0x35')!=_0x2c556c[_0x4e2a('0xc')]&&'deletion'!=_0x2c556c[_0x4e2a('0xc')]||this[_0x4e2a('0x1a')](_0x294b6b,_0x2c556c,_0x1c392f[_0x5a00bf+0x1]);else{const _0x2e4211=_0x2c556c[_0x4e2a('0x18')][_0x4e2a('0x16')];if(_0x5d90cf[_0x4e2a('0x7')](_0x2e4211))continue;_0x5d90cf[_0x4e2a('0x15')](_0x2c556c[_0x4e2a('0x18')][_0x4e2a('0x16')]),_0x2e4211==_0x4b3d76?this['_handleRenameSuggestionDescription'](_0x294b6b,_0x2c556c):this[_0x4e2a('0x26')](_0x294b6b,_0x2c556c);}}}return this['_resolveDescriptionItems'](_0x294b6b);}[_0x4e2a('0x45')](_0x1db3a9){this['_customCallbacks']['push'](_0x1db3a9);}['registerElementLabel'](_0x1ef336,_0x4e920b,_0x5d5458=_0x474877[_0x4e2a('0x36')]){_0x4e2a('0x1f')==typeof _0x1ef336?_0x449b84(this['_itemLabelsCallbacks'],{'matchingCallback':_0x1ef336,'label':_0x4e920b,'priority':_0x5d5458}):this[_0x4e2a('0x17')][_0x4e2a('0x3d')](_0x1ef336,_0x4e920b);}['registerAttributeLabel'](_0x492255,_0x5ddaf1){this['_attributeLabels'][_0x4e2a('0x3d')](_0x492255,_0x5ddaf1);}[_0x4e2a('0x38')](_0x4a2b07,_0x46ce56=0x1){let _0x115204;for(const _0x4060db of this[_0x4e2a('0x1d')])if(_0x4060db['matchingCallback'](_0x4a2b07)){_0x115204=_0x4060db['label'];break;}return _0x115204||(_0x115204=this['_itemLabels'][_0x4e2a('0x1')](_0x4a2b07[_0x4e2a('0x2f')])),_0x115204?_0x115204(_0x46ce56):0x1!==_0x46ce56?_0x46ce56+'\x20'+_0x4a2b07[_0x4e2a('0x2f')]+'s':''+_0x4a2b07[_0x4e2a('0x2f')];}[_0x4e2a('0x5')](_0x1e88bb,_0x5b553a){const _0x4b13c0=_0x5b553a[_0x4e2a('0xf')]()[_0x4e2a('0x2d')](),_0x17733d=_0x4e2a('0x35')==_0x5b553a['type']?_0x4e2a('0x15'):_0x4e2a('0x2');for(const _0x772dc6 of _0x4b13c0){const _0x5f4b7f=_0x772dc6[_0x4e2a('0x31')],_0x29c19d=_0x1e88bb[_0x1e88bb[_0x4e2a('0x10')]-0x1];if(_0x5f4b7f['is'](_0x4e2a('0xa')))_0x29c19d&&_0x29c19d[_0x4e2a('0xc')][_0x4e2a('0x44')](_0x4e2a('0x22'))>-0x1&&_0x1e88bb['pop'](),_0x29c19d&&_0x4e2a('0x2e')==_0x29c19d[_0x4e2a('0xc')]?_0x29c19d[_0x17733d]+=_0x5f4b7f['data']:_0x1e88bb[_0x4e2a('0x2a')]({'type':'text','add':_0x4e2a('0x15')==_0x17733d?_0x5f4b7f[_0x4e2a('0x18')]:'','remove':_0x4e2a('0x2')==_0x17733d?_0x5f4b7f[_0x4e2a('0x18')]:''});else{if(this[_0x4e2a('0x6')][_0x4e2a('0x43')](_0x5f4b7f)){const _0x50ab65=_0x5f4b7f;if(_0x29c19d&&_0x29c19d[_0x4e2a('0xc')][_0x4e2a('0x44')](_0x4e2a('0x22'))>-0x1&&_0x1e88bb[_0x4e2a('0x3b')](),_0x4e2a('0x21')==_0x772dc6[_0x4e2a('0xc')])continue;_0x29c19d&&_0x29c19d[_0x4e2a('0xc')]==_0x17733d+_0x4e2a('0x1b')&&_0x29c19d[_0x4e2a('0x39')][_0x4e2a('0x2f')]==_0x50ab65['name']?_0x29c19d[_0x4e2a('0x20')]++:_0x1e88bb['push']({'type':_0x17733d+_0x4e2a('0x1b'),'element':_0x50ab65,'quantity':0x1}),_0x4b13c0[_0x4e2a('0x14')](_0x425582=>!(_0x4e2a('0x21')==_0x425582['type']&&_0x425582[_0x4e2a('0x31')]==_0x5f4b7f));}else{if(this[_0x4e2a('0x6')]['checkChild'](_0x5f4b7f,_0x4e2a('0xd'))||_0x5f4b7f['is'](_0x4e2a('0x39'),'softBreak')){const _0x137d11=_0x5f4b7f;if(_0x4e2a('0x15')==_0x17733d&&'elementStart'==_0x772dc6['type']||'remove'==_0x17733d&&'elementEnd'==_0x772dc6[_0x4e2a('0xc')])continue;if(_0x29c19d&&-0x1==_0x29c19d[_0x4e2a('0xc')][_0x4e2a('0x44')]('Container')){_0x4e2a('0x2e')==_0x29c19d[_0x4e2a('0xc')]&&(_0x29c19d[_0x17733d]+='\x0a');continue;}let _0x2ff14e;if(_0x2ff14e=_0x4e2a('0x15')==_0x17733d?_0x137d11['nextSibling']&&!this[_0x4e2a('0x6')][_0x4e2a('0x43')](_0x137d11['nextSibling'])?_0x137d11['nextSibling']:null:_0x137d11['previousSibling']&&!this[_0x4e2a('0x6')][_0x4e2a('0x43')](_0x137d11['previousSibling'])?_0x137d11[_0x4e2a('0x32')]:null,_0x137d11['isEmpty']||_0x2ff14e&&_0x2ff14e[_0x4e2a('0x37')]){const _0x10cb75=_0x2ff14e&&_0x2ff14e['isEmpty']?_0x2ff14e:_0x137d11;_0x29c19d&&_0x29c19d[_0x4e2a('0xc')]==_0x17733d+_0x4e2a('0x25')&&_0x29c19d['element']['name']==_0x10cb75[_0x4e2a('0x2f')]?_0x29c19d[_0x4e2a('0x20')]++:_0x1e88bb[_0x4e2a('0x2a')]({'type':_0x17733d+_0x4e2a('0x25'),'element':_0x10cb75,'quantity':0x1});}else _0x1e88bb[_0x4e2a('0x2a')]({'type':_0x17733d+_0x4e2a('0x22'),'element':_0x137d11});}}}}}['_resolveDescriptionItems'](_0xc5edde){const _0x3e4024=this[_0x4e2a('0x27')],_0x418d32=[],_0x3b5c37=[],_0x370f5b=[];for(const _0x26791a of _0xc5edde)switch(_0x26791a[_0x4e2a('0xc')]){case _0x4e2a('0x2e'):if(_0x26791a['add']=_0x26791a[_0x4e2a('0x15')][_0x4e2a('0x3e')](/(\S)\u000A+(\S)/g,_0x4e2a('0x8'))[_0x4e2a('0x3e')](/\u000A/g,''),_0x26791a[_0x4e2a('0x2')]=_0x26791a[_0x4e2a('0x2')][_0x4e2a('0x3e')](/(\S)\u000A+(\S)/g,_0x4e2a('0x8'))['replace'](/\u000A/g,''),''!=_0x26791a[_0x4e2a('0x15')]&&''!=_0x26791a[_0x4e2a('0x2')]){_0x418d32[_0x4e2a('0x2a')]({'type':_0x4e2a('0x3e'),'content':_0x3f1024(_0x3e4024,'REPLACE_TEXT',['\x22'+_0x26791a[_0x4e2a('0x2')]+'\x22','\x22'+_0x26791a['add']+'\x22'])});continue;}if(null!=_0x26791a[_0x4e2a('0x15')][_0x4e2a('0x3f')](/^ +$/)){_0x418d32[_0x4e2a('0x2a')]({'type':_0x4e2a('0x35'),'content':_0x3f1024(_0x3e4024,_0x4e2a('0x3a'),_0x3f1024(_0x3e4024,_0x4e2a('0xe'),_0x26791a['add'][_0x4e2a('0x10')]))});continue;}if(null!=_0x26791a[_0x4e2a('0x2')][_0x4e2a('0x3f')](/^ +$/)){_0x418d32[_0x4e2a('0x2a')]({'type':_0x4e2a('0x9'),'content':_0x3f1024(_0x3e4024,_0x4e2a('0xb'),_0x3f1024(_0x3e4024,_0x4e2a('0xe'),_0x26791a[_0x4e2a('0x2')][_0x4e2a('0x10')]))});continue;}if(''!=_0x26791a['add']){_0x418d32[_0x4e2a('0x2a')]({'type':'insertion','content':_0x3f1024(_0x3e4024,'*Insert:*\x20%0','\x22'+_0x26791a['add']+'\x22')});continue;}_0x418d32[_0x4e2a('0x2a')]({'type':'deletion','content':_0x3f1024(_0x3e4024,_0x4e2a('0xb'),'\x22'+_0x26791a[_0x4e2a('0x2')]+'\x22')});continue;case'addEmptyContainer':case'addObject':_0x418d32[_0x4e2a('0x2a')]({'type':'insertion','content':_0x3f1024(_0x3e4024,_0x4e2a('0x3a'),this[_0x4e2a('0x38')](_0x26791a[_0x4e2a('0x39')],_0x26791a[_0x4e2a('0x20')]))});continue;case _0x4e2a('0x3'):case _0x4e2a('0x30'):_0x418d32[_0x4e2a('0x2a')]({'type':_0x4e2a('0x9'),'content':_0x3f1024(_0x3e4024,_0x4e2a('0xb'),this[_0x4e2a('0x38')](_0x26791a['element'],_0x26791a[_0x4e2a('0x20')]))});continue;case'addContainer':_0x418d32[_0x4e2a('0x2a')]({'type':'insertion','content':_0x3f1024(_0x3e4024,_0x4e2a('0x2b'),this[_0x4e2a('0x38')](_0x26791a[_0x4e2a('0x39')],_0x26791a[_0x4e2a('0x20')]))});continue;case'removeContainer':_0x418d32[_0x4e2a('0x2a')]({'type':'deletion','content':_0x3f1024(_0x3e4024,_0x4e2a('0x29'),this[_0x4e2a('0x38')](_0x26791a['element'],_0x26791a[_0x4e2a('0x20')]))});continue;case'addFormat':_0x3b5c37['push'](_0x26791a[_0x4e2a('0x16')]);continue;case _0x4e2a('0x23'):_0x370f5b[_0x4e2a('0x2a')](_0x26791a['key']);continue;default:_0x418d32[_0x4e2a('0x2a')](_0x26791a);}if(_0x3b5c37[_0x4e2a('0x10')]){const _0x404951=_0x3b5c37[_0x4e2a('0x33')](_0x549952=>this[_0x4e2a('0x2c')][_0x4e2a('0x7')](_0x549952)?this[_0x4e2a('0x2c')][_0x4e2a('0x1')](_0x549952):_0x549952)[_0x4e2a('0x46')](',\x20');_0x418d32[_0x4e2a('0x2a')]({'type':_0x4e2a('0x1e'),'content':_0x3f1024(this[_0x4e2a('0x27')],_0x4e2a('0x4'),_0x404951)});}if(_0x370f5b[_0x4e2a('0x10')]){const _0x5494a0=_0x370f5b[_0x4e2a('0x33')](_0x4a57de=>this[_0x4e2a('0x2c')][_0x4e2a('0x7')](_0x4a57de)?this[_0x4e2a('0x2c')][_0x4e2a('0x1')](_0x4a57de):_0x4a57de)['join'](',\x20');_0x418d32[_0x4e2a('0x2a')]({'type':'format','content':_0x3f1024(this[_0x4e2a('0x27')],'*Remove\x20format:*\x20%0',_0x5494a0)});}return _0x418d32;}[_0x4e2a('0x24')](_0x258c4d){for(const _0x4265f8 of this[_0x4e2a('0x11')]){const _0x342d28=_0x4265f8(_0x258c4d);if(_0x342d28&&_0x4e2a('0xc')in _0x342d28)return _0x342d28;}}['_handleAttributeSuggestionDescription'](_0x20623e,_0x12af96){const _0x5b920f=_0x12af96[_0x4e2a('0x18')],_0xd435eb=void 0x0===_0x5b920f['newValue']?_0x4e2a('0x23'):_0x4e2a('0x1c');_0x20623e[_0x4e2a('0x2a')]({'type':_0xd435eb,'key':_0x5b920f[_0x4e2a('0x16')]});}[_0x4e2a('0x0')](_0x497cfc,_0x5a416b){_0x497cfc[_0x4e2a('0x2a')]({'type':_0x4e2a('0x1e'),'content':_0x3f1024(this[_0x4e2a('0x27')],_0x4e2a('0x13'),this[_0x4e2a('0x38')](_0x5a416b[_0x4e2a('0xf')]()[_0x4e2a('0x19')][_0x4e2a('0x40')],0x1))});}[_0x4e2a('0x1a')](_0x75c24f,_0x296d28,_0x300b6b){if(this['_addDescriptionItems'](_0x75c24f,_0x296d28),_0x300b6b&&_0x300b6b[_0x4e2a('0xf')]()&&!_0x296d28[_0x4e2a('0xf')]()[_0x4e2a('0x12')][_0x4e2a('0x34')](_0x300b6b[_0x4e2a('0xf')]()['start'])){const _0x1463ce=_0x75c24f[_0x75c24f[_0x4e2a('0x10')]-0x1],_0x53acc0=_0x4e2a('0x35')==_0x296d28[_0x4e2a('0xc')]?_0x4e2a('0x15'):'remove';_0x1463ce&&'text'==_0x1463ce[_0x4e2a('0xc')]&&(_0x1463ce[_0x53acc0]+='\x0a');}}}
|
|
23
|
+
const _0x27fc=['$text','quantity','_locale','get','_itemLabels','removeFormat','format','push','_attributeLabels','map','_handleAttributeSuggestionDescription','end','name','softBreak','match','type','*Remove:*\x20%0','has','*Change\x20to:*\x20%0','isInContent','$1\x20$2','*Merge:*\x20%0','Container','_handleCustomCallbackDescription','add','text','nextSibling','newValue','_handleRenameSuggestionDescription','addContainer','key','item','getItemLabel','remove','elementStart','getFirstRange','label','pop','registerAttributeLabel','_addDescriptionItems','element','subType','getWalker','start','insertion','_itemLabelsCallbacks','_customCallbacks','registerDescriptionCallback','getDescriptions','set','*Insert:*\x20%0','_handleInsertRemoveSuggestionDescription','*Remove\x20format:*\x20%0','matchingCallback','length','ELEMENT_SPACE','Object','removeEmptyContainer','data','addObject','skip','attribute','*Split:*\x20%0','previousSibling','registerElementLabel','isObject','indexOf','_schema','_resolveDescriptionItems','nodeAfter','elementEnd','removeContainer','EmptyContainer','deletion','replace','addFormat','isEqual','isEmpty','join'];(function(_0x896991,_0x27fc45){const _0x36688a=function(_0x15ca41){while(--_0x15ca41){_0x896991['push'](_0x896991['shift']());}};_0x36688a(++_0x27fc45);}(_0x27fc,0x88));const _0x3668=function(_0x896991,_0x27fc45){_0x896991=_0x896991-0x0;let _0x36688a=_0x27fc[_0x896991];return _0x36688a;};import{getTranslation as _0x373532}from'./utils/common-translations';import{priorities as _0x5b5709,insertToPriorityArray as _0xd71576}from'ckeditor5/src/utils';import{renameAttributeKey as _0x4d149a}from'./trackchangesediting';export default class f{constructor(_0x525239,_0x4c3bc3){this[_0x3668('0x44')]=[],this[_0x3668('0x1a')]=new Map(),this[_0x3668('0x43')]=[],this[_0x3668('0x1e')]=new Map(),this[_0x3668('0xa')]=_0x525239,this[_0x3668('0x18')]=_0x4c3bc3;}[_0x3668('0x46')](_0x59bee2){const _0x117029=[],_0x5c2010=new Set(),_0x12323c=new Set();for(let _0x108cc6=0x0;_0x108cc6<_0x59bee2[_0x3668('0x4c')];_0x108cc6++){const _0x1af494=_0x59bee2[_0x108cc6];if(!_0x1af494[_0x3668('0x29')])continue;const _0x1350fa=this['_handleCustomCallbackDescription'](_0x1af494);if(_0x1350fa){if(null!=_0x1af494[_0x3668('0x3f')]){if(_0x5c2010[_0x3668('0x27')](_0x1af494[_0x3668('0x3f')]))continue;_0x5c2010['add'](_0x1af494['subType']);}_0x117029[_0x3668('0x1d')](_0x1350fa);}else{if(_0x3668('0x4')!=_0x1af494[_0x3668('0x25')])_0x3668('0x42')!=_0x1af494[_0x3668('0x25')]&&_0x3668('0x10')!=_0x1af494['type']||this[_0x3668('0x49')](_0x117029,_0x1af494,_0x59bee2[_0x108cc6+0x1]);else{const _0x30b536=_0x1af494[_0x3668('0x1')][_0x3668('0x34')];if(_0x12323c[_0x3668('0x27')](_0x30b536))continue;_0x12323c[_0x3668('0x2e')](_0x1af494[_0x3668('0x1')][_0x3668('0x34')]),_0x30b536==_0x4d149a?this[_0x3668('0x32')](_0x117029,_0x1af494):this['_handleAttributeSuggestionDescription'](_0x117029,_0x1af494);}}}return this[_0x3668('0xb')](_0x117029);}[_0x3668('0x45')](_0x439ac1){this['_customCallbacks'][_0x3668('0x1d')](_0x439ac1);}[_0x3668('0x7')](_0x2773d7,_0x3c4bfd,_0x363867=_0x5b5709['normal']){'function'==typeof _0x2773d7?_0xd71576(this[_0x3668('0x43')],{'matchingCallback':_0x2773d7,'label':_0x3c4bfd,'priority':_0x363867}):this['_itemLabels']['set'](_0x2773d7,_0x3c4bfd);}[_0x3668('0x3c')](_0x1fa74d,_0xd21adb){this[_0x3668('0x1e')][_0x3668('0x47')](_0x1fa74d,_0xd21adb);}[_0x3668('0x36')](_0x490d5a,_0x4f96c2=0x1){let _0x534f1d;for(const _0x5bcfae of this[_0x3668('0x43')])if(_0x5bcfae[_0x3668('0x4b')](_0x490d5a)){_0x534f1d=_0x5bcfae[_0x3668('0x3a')];break;}return _0x534f1d||(_0x534f1d=this[_0x3668('0x1a')][_0x3668('0x19')](_0x490d5a[_0x3668('0x22')])),_0x534f1d?_0x534f1d(_0x4f96c2):0x1!==_0x4f96c2?_0x4f96c2+'\x20'+_0x490d5a['name']+'s':''+_0x490d5a[_0x3668('0x22')];}[_0x3668('0x3d')](_0x569a2a,_0x843b44){const _0x11dda8=_0x843b44[_0x3668('0x39')]()[_0x3668('0x40')](),_0x6b58c9=_0x3668('0x42')==_0x843b44['type']?_0x3668('0x2e'):_0x3668('0x37');for(const _0x4d8ff3 of _0x11dda8){const _0x122e68=_0x4d8ff3[_0x3668('0x35')],_0x44e7cb=_0x569a2a[_0x569a2a[_0x3668('0x4c')]-0x1];if(_0x122e68['is']('$textProxy'))_0x44e7cb&&_0x44e7cb[_0x3668('0x25')][_0x3668('0x9')](_0x3668('0x2c'))>-0x1&&_0x569a2a[_0x3668('0x3b')](),_0x44e7cb&&_0x3668('0x2f')==_0x44e7cb[_0x3668('0x25')]?_0x44e7cb[_0x6b58c9]+=_0x122e68['data']:_0x569a2a['push']({'type':_0x3668('0x2f'),'add':_0x3668('0x2e')==_0x6b58c9?_0x122e68['data']:'','remove':'remove'==_0x6b58c9?_0x122e68['data']:''});else{if(this['_schema']['isObject'](_0x122e68)){const _0x486b54=_0x122e68;if(_0x44e7cb&&_0x44e7cb[_0x3668('0x25')][_0x3668('0x9')](_0x3668('0x2c'))>-0x1&&_0x569a2a[_0x3668('0x3b')](),_0x3668('0xd')==_0x4d8ff3[_0x3668('0x25')])continue;_0x44e7cb&&_0x44e7cb[_0x3668('0x25')]==_0x6b58c9+_0x3668('0x4e')&&_0x44e7cb[_0x3668('0x3e')][_0x3668('0x22')]==_0x486b54[_0x3668('0x22')]?_0x44e7cb['quantity']++:_0x569a2a[_0x3668('0x1d')]({'type':_0x6b58c9+_0x3668('0x4e'),'element':_0x486b54,'quantity':0x1}),_0x11dda8[_0x3668('0x3')](_0x3871f6=>!('elementEnd'==_0x3871f6[_0x3668('0x25')]&&_0x3871f6['item']==_0x122e68));}else{if(this[_0x3668('0xa')]['checkChild'](_0x122e68,_0x3668('0x16'))||_0x122e68['is'](_0x3668('0x3e'),_0x3668('0x23'))){const _0x19b8a4=_0x122e68;if('add'==_0x6b58c9&&_0x3668('0x38')==_0x4d8ff3[_0x3668('0x25')]||_0x3668('0x37')==_0x6b58c9&&'elementEnd'==_0x4d8ff3[_0x3668('0x25')])continue;if(_0x44e7cb&&-0x1==_0x44e7cb[_0x3668('0x25')][_0x3668('0x9')](_0x3668('0x2c'))){_0x3668('0x2f')==_0x44e7cb[_0x3668('0x25')]&&(_0x44e7cb[_0x6b58c9]+='\x0a');continue;}let _0x285e37;if(_0x285e37=_0x3668('0x2e')==_0x6b58c9?_0x19b8a4[_0x3668('0x30')]&&!this[_0x3668('0xa')]['isObject'](_0x19b8a4[_0x3668('0x30')])?_0x19b8a4[_0x3668('0x30')]:null:_0x19b8a4[_0x3668('0x6')]&&!this['_schema'][_0x3668('0x8')](_0x19b8a4[_0x3668('0x6')])?_0x19b8a4[_0x3668('0x6')]:null,_0x19b8a4[_0x3668('0x14')]||_0x285e37&&_0x285e37['isEmpty']){const _0x2bb532=_0x285e37&&_0x285e37[_0x3668('0x14')]?_0x285e37:_0x19b8a4;_0x44e7cb&&_0x44e7cb[_0x3668('0x25')]==_0x6b58c9+_0x3668('0xf')&&_0x44e7cb[_0x3668('0x3e')][_0x3668('0x22')]==_0x2bb532['name']?_0x44e7cb['quantity']++:_0x569a2a[_0x3668('0x1d')]({'type':_0x6b58c9+_0x3668('0xf'),'element':_0x2bb532,'quantity':0x1});}else _0x569a2a[_0x3668('0x1d')]({'type':_0x6b58c9+_0x3668('0x2c'),'element':_0x19b8a4});}}}}}['_resolveDescriptionItems'](_0xd7c0ef){const _0x5088b0=this[_0x3668('0x18')],_0xa0c954=[],_0x1b09c7=[],_0x8ec6ed=[];for(const _0x1492ae of _0xd7c0ef)switch(_0x1492ae['type']){case _0x3668('0x2f'):if(_0x1492ae[_0x3668('0x2e')]=_0x1492ae[_0x3668('0x2e')][_0x3668('0x11')](/(\S)\u000A+(\S)/g,_0x3668('0x2a'))[_0x3668('0x11')](/\u000A/g,''),_0x1492ae['remove']=_0x1492ae[_0x3668('0x37')][_0x3668('0x11')](/(\S)\u000A+(\S)/g,_0x3668('0x2a'))[_0x3668('0x11')](/\u000A/g,''),''!=_0x1492ae[_0x3668('0x2e')]&&''!=_0x1492ae['remove']){_0xa0c954['push']({'type':_0x3668('0x11'),'content':_0x373532(_0x5088b0,'REPLACE_TEXT',['\x22'+_0x1492ae[_0x3668('0x37')]+'\x22','\x22'+_0x1492ae[_0x3668('0x2e')]+'\x22'])});continue;}if(null!=_0x1492ae[_0x3668('0x2e')]['match'](/^ +$/)){_0xa0c954[_0x3668('0x1d')]({'type':'insertion','content':_0x373532(_0x5088b0,_0x3668('0x48'),_0x373532(_0x5088b0,'ELEMENT_SPACE',_0x1492ae[_0x3668('0x2e')][_0x3668('0x4c')]))});continue;}if(null!=_0x1492ae['remove'][_0x3668('0x24')](/^ +$/)){_0xa0c954[_0x3668('0x1d')]({'type':'deletion','content':_0x373532(_0x5088b0,_0x3668('0x26'),_0x373532(_0x5088b0,_0x3668('0x4d'),_0x1492ae[_0x3668('0x37')][_0x3668('0x4c')]))});continue;}if(''!=_0x1492ae[_0x3668('0x2e')]){_0xa0c954[_0x3668('0x1d')]({'type':_0x3668('0x42'),'content':_0x373532(_0x5088b0,_0x3668('0x48'),'\x22'+_0x1492ae[_0x3668('0x2e')]+'\x22')});continue;}_0xa0c954[_0x3668('0x1d')]({'type':_0x3668('0x10'),'content':_0x373532(_0x5088b0,'*Remove:*\x20%0','\x22'+_0x1492ae[_0x3668('0x37')]+'\x22')});continue;case'addEmptyContainer':case _0x3668('0x2'):_0xa0c954[_0x3668('0x1d')]({'type':'insertion','content':_0x373532(_0x5088b0,_0x3668('0x48'),this[_0x3668('0x36')](_0x1492ae[_0x3668('0x3e')],_0x1492ae[_0x3668('0x17')]))});continue;case _0x3668('0x0'):case'removeObject':_0xa0c954[_0x3668('0x1d')]({'type':_0x3668('0x10'),'content':_0x373532(_0x5088b0,_0x3668('0x26'),this['getItemLabel'](_0x1492ae[_0x3668('0x3e')],_0x1492ae['quantity']))});continue;case _0x3668('0x33'):_0xa0c954['push']({'type':_0x3668('0x42'),'content':_0x373532(_0x5088b0,_0x3668('0x5'),this[_0x3668('0x36')](_0x1492ae[_0x3668('0x3e')],_0x1492ae[_0x3668('0x17')]))});continue;case _0x3668('0xe'):_0xa0c954[_0x3668('0x1d')]({'type':'deletion','content':_0x373532(_0x5088b0,_0x3668('0x2b'),this[_0x3668('0x36')](_0x1492ae[_0x3668('0x3e')],_0x1492ae[_0x3668('0x17')]))});continue;case _0x3668('0x12'):_0x1b09c7[_0x3668('0x1d')](_0x1492ae['key']);continue;case _0x3668('0x1b'):_0x8ec6ed['push'](_0x1492ae[_0x3668('0x34')]);continue;default:_0xa0c954[_0x3668('0x1d')](_0x1492ae);}if(_0x1b09c7[_0x3668('0x4c')]){const _0x43f39d=_0x1b09c7[_0x3668('0x1f')](_0x26a69a=>this['_attributeLabels']['has'](_0x26a69a)?this[_0x3668('0x1e')][_0x3668('0x19')](_0x26a69a):_0x26a69a)[_0x3668('0x15')](',\x20');_0xa0c954[_0x3668('0x1d')]({'type':'format','content':_0x373532(this[_0x3668('0x18')],'*Set\x20format:*\x20%0',_0x43f39d)});}if(_0x8ec6ed[_0x3668('0x4c')]){const _0x310a76=_0x8ec6ed['map'](_0x575210=>this[_0x3668('0x1e')][_0x3668('0x27')](_0x575210)?this[_0x3668('0x1e')][_0x3668('0x19')](_0x575210):_0x575210)['join'](',\x20');_0xa0c954[_0x3668('0x1d')]({'type':'format','content':_0x373532(this['_locale'],_0x3668('0x4a'),_0x310a76)});}return _0xa0c954;}[_0x3668('0x2d')](_0x19c62f){for(const _0x1705f8 of this[_0x3668('0x44')]){const _0x5e6ce5=_0x1705f8(_0x19c62f);if(_0x5e6ce5&&_0x3668('0x25')in _0x5e6ce5)return _0x5e6ce5;}}[_0x3668('0x20')](_0x3166cc,_0x2279f8){const _0x3e1eb3=_0x2279f8[_0x3668('0x1')],_0x4f2064=void 0x0===_0x3e1eb3[_0x3668('0x31')]?_0x3668('0x1b'):_0x3668('0x12');_0x3166cc[_0x3668('0x1d')]({'type':_0x4f2064,'key':_0x3e1eb3[_0x3668('0x34')]});}[_0x3668('0x32')](_0x1f4051,_0x962f9){_0x1f4051['push']({'type':_0x3668('0x1c'),'content':_0x373532(this[_0x3668('0x18')],_0x3668('0x28'),this[_0x3668('0x36')](_0x962f9['getFirstRange']()['start'][_0x3668('0xc')],0x1))});}[_0x3668('0x49')](_0x4a549f,_0x4ba6f9,_0x53d521){if(this[_0x3668('0x3d')](_0x4a549f,_0x4ba6f9),_0x53d521&&_0x53d521[_0x3668('0x39')]()&&!_0x4ba6f9[_0x3668('0x39')]()[_0x3668('0x21')][_0x3668('0x13')](_0x53d521[_0x3668('0x39')]()[_0x3668('0x41')])){const _0xea433b=_0x4a549f[_0x4a549f[_0x3668('0x4c')]-0x1],_0x501b17=_0x3668('0x42')==_0x4ba6f9[_0x3668('0x25')]?_0x3668('0x2e'):_0x3668('0x37');_0xea433b&&_0x3668('0x2f')==_0xea433b[_0x3668('0x25')]&&(_0xea433b[_0x501b17]+='\x0a');}}}
|
package/src/trackchanges.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x5530=['getSuggestion','editor','addSuggestionData','getSuggestions','Comments','requires','get','plugins','adapter'];(function(_0x274512,_0x55305f){var _0x8d564f=function(_0xafaa3a){while(--_0xafaa3a){_0x274512['push'](_0x274512['shift']());}};_0x8d564f(++_0x55305f);}(_0x5530,0x109));var _0x8d56=function(_0x274512,_0x55305f){_0x274512=_0x274512-0x0;var _0x8d564f=_0x5530[_0x274512];return _0x8d564f;};import{Plugin as _0x22d739}from'ckeditor5/src/core';import _0x4b66e5 from'./trackchangesui';import _0x4398e5 from'./trackchangesediting';import'ckeditor5-collaboration/src/collaboration-core';export default class k extends _0x22d739{static get[_0x8d56('0x1')](){return[_0x4398e5,_0x4b66e5,_0x8d56('0x0')];}static get['pluginName'](){return'TrackChanges';}set[_0x8d56('0x4')](_0x1256f4){this[_0x8d56('0x6')][_0x8d56('0x3')][_0x8d56('0x2')](_0x4398e5)[_0x8d56('0x4')]=_0x1256f4;}get[_0x8d56('0x4')](){return this[_0x8d56('0x6')][_0x8d56('0x3')][_0x8d56('0x2')](_0x4398e5)[_0x8d56('0x4')];}['addSuggestion'](_0x567b97){return this[_0x8d56('0x6')][_0x8d56('0x3')][_0x8d56('0x2')](_0x4398e5)[_0x8d56('0x7')](_0x567b97);}[_0x8d56('0x8')]({skipNotAttached:_0x2ba71d=!0x1,toJSON:_0x44b5c3=!0x1}={}){return this[_0x8d56('0x6')][_0x8d56('0x3')][_0x8d56('0x2')](_0x4398e5)['getSuggestions']({'skipNotAttached':_0x2ba71d,'toJSON':_0x44b5c3});}['getSuggestion'](_0x1ee43b){return this[_0x8d56('0x6')][_0x8d56('0x3')]['get'](_0x4398e5)[_0x8d56('0x5')](_0x1ee43b);}}
|
package/src/trackchangesdata.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4007=['map','createDocumentFragment','model','TrackChangesData','reduce','rootsAttributes','getUser','acceptAllSuggestions','useAnonymousUser','requires','push','Users','set','define','appendChild','name','editor','destroy','result','users','execute','get','discardAllSuggestions','editorCreator','addUser','getRootNames','data','init','getFullData','pluginName','plugins','getDataWithDiscardedSuggestions','config','create','document','_adapter','TrackChangesEditing','trackChangesData','TrackChangesDataGetter','function','trackChangesData.editorCreator','getRootsAttributes','track-changes-data-invalid-editor-creator','getSuggestions','end'];(function(_0x5513a1,_0x400779){const _0xbfcfbd=function(_0x3758f5){while(--_0x3758f5){_0x5513a1['push'](_0x5513a1['shift']());}};_0xbfcfbd(++_0x400779);}(_0x4007,0x1c9));const _0xbfcf=function(_0x5513a1,_0x400779){_0x5513a1=_0x5513a1-0x0;let _0xbfcfbd=_0x4007[_0x5513a1];return _0xbfcfbd;};import{Plugin as _0xfd27ab}from'ckeditor5/src/core';import{CKEditorError as _0x39cf0b}from'ckeditor5/src/utils';import _0x5d0f95 from'./trackchangesediting';import{sanitizeEditorConfig as _0x3be4ae}from'ckeditor5-collaboration/src/collaboration-core';const T=['Pagination'];export default class P extends _0xfd27ab{static get[_0xbfcf('0x2')](){return[_0x5d0f95];}static get[_0xbfcf('0x16')](){return _0xbfcf('0x29');}[_0xbfcf('0x14')](){const _0x20b2b6=this['editor'];if(_0x20b2b6['config'][_0xbfcf('0x6')](_0xbfcf('0x21'),_0x46cad6=>{const _0x10492f=_0x20b2b6['model'][_0xbfcf('0x1b')][_0xbfcf('0x12')]()[_0xbfcf('0x2a')]((_0xc84a60,_0x32a510)=>(_0xc84a60[_0x32a510]='',_0xc84a60),{});return _0x20b2b6['constructor'][_0xbfcf('0x1a')](_0x10492f,_0x46cad6);}),_0xbfcf('0x20')!=typeof _0x20b2b6[_0xbfcf('0x19')][_0xbfcf('0xe')]('trackChangesData')['editorCreator'])throw new _0x39cf0b(_0xbfcf('0x23'));}['getDataWithAcceptedSuggestions'](_0x3b073e){return N(this['editor'],!0x0,_0x3b073e);}[_0xbfcf('0x18')](_0x439407){return N(this[_0xbfcf('0x9')],!0x1,_0x439407);}}class D extends _0xfd27ab{static get[_0xbfcf('0x16')](){return _0xbfcf('0x1f');}constructor(_0xeca25a){super(_0xeca25a),this[_0xbfcf('0xb')]=_0xbfcf('0x25');}[_0xbfcf('0x14')](){this[_0xbfcf('0x9')][_0xbfcf('0x17')][_0xbfcf('0xe')]('CommentsRepository')['_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['editor'][_0xbfcf('0x17')][_0xbfcf('0xe')](_0xbfcf('0x1d'))[_0xbfcf('0x1c')]=null;}}function v(_0xd5503e){return void 0x0!==_0xd5503e['getRootsAttributes'];}async function N(_0x270103,_0xbb65e,_0x4c30d9){const _0x38df77=_0x3be4ae(_0x270103,T);_0x38df77[_0xbfcf('0x17')][_0xbfcf('0x3')](_0x5d0f95,D),_0x38df77[_0xbfcf('0x2b')]=v(_0x270103)?_0x270103[_0xbfcf('0x22')]():void 0x0;const _0x2b5982=document[_0xbfcf('0x27')](),_0x4f5fd9=_0x270103[_0xbfcf('0x19')][_0xbfcf('0xe')](_0xbfcf('0x1e'))[_0xbfcf('0x10')],_0x26df41=await _0x4f5fd9(_0x38df77,()=>function(_0x222e20){const _0x39f167=document['createElement']('div');return _0x222e20[_0xbfcf('0x7')](_0x39f167),_0x39f167;}(_0x2b5982));!function(_0x11d8b2,_0x5031fc){const _0x3b203f=_0x11d8b2[_0xbfcf('0x28')][_0xbfcf('0x1b')][_0xbfcf('0x12')]()[_0xbfcf('0x2a')]((_0x282c12,_0x2a8dec)=>(_0x282c12[_0x2a8dec]=_0x11d8b2['data'][_0xbfcf('0xe')]({'rootName':_0x2a8dec}),_0x282c12),{}),_0x4f2fc9=_0x11d8b2['plugins'][_0xbfcf('0xe')](_0xbfcf('0x4'))[_0xbfcf('0xc')][_0xbfcf('0x26')](_0x4dc8eb=>({'id':_0x4dc8eb['id'],'name':_0x4dc8eb[_0xbfcf('0x8')]})),_0x569c7b=_0x11d8b2['plugins'][_0xbfcf('0xe')](_0xbfcf('0x1d'))[_0xbfcf('0x24')]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x326c8c=_0x5031fc[_0xbfcf('0x17')]['get'](_0xbfcf('0x4')),_0x54f7eb=_0x5031fc['plugins'][_0xbfcf('0xe')](_0xbfcf('0x1d'));for(const _0x446b26 of _0x4f2fc9)_0x326c8c[_0xbfcf('0x2c')](_0x446b26['id'])||_0x326c8c[_0xbfcf('0x11')](_0x446b26);_0x326c8c['me']||_0x326c8c[_0xbfcf('0x1')]();for(const _0x3f31ed of _0x569c7b)_0x54f7eb['addSuggestionData'](_0x3f31ed);_0x5031fc['data'][_0xbfcf('0x5')](_0x3b203f);}(_0x270103,_0x26df41),_0x26df41[_0xbfcf('0xd')](_0xbb65e?_0xbfcf('0x0'):_0xbfcf('0xf'));const _0x577eb9=v(_0x26df41)?_0x26df41[_0xbfcf('0x15')](_0x4c30d9):_0x26df41[_0xbfcf('0x13')][_0xbfcf('0xe')](_0x4c30d9);return await _0x26df41[_0xbfcf('0xa')](),_0x577eb9;}
|