@ckeditor/ckeditor5-track-changes
Version:
CKEditor 5 track changes plugin.
23 lines • 9.08 kB
JavaScript
/*
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
*
*
*
*
* +---------------------------------------------------------------------------------+
* | |
* | Hello stranger! |
* | |
* | |
* | What you're currently looking at is the source code of a legally protected, |
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
* | are forbidden and will result in legal consequences. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
const _0x494a4d=_0x3dc9;(function(_0x5d4cdf,_0x3031ef){const _0x35f1b2=_0x3dc9,_0x16d137=_0x5d4cdf();while(!![]){try{const _0xe1dcc1=parseInt(_0x35f1b2(0x1fc))/0x1*(parseInt(_0x35f1b2(0x1e6))/0x2)+-parseInt(_0x35f1b2(0x1fd))/0x3+parseInt(_0x35f1b2(0x1fa))/0x4+-parseInt(_0x35f1b2(0x22e))/0x5*(parseInt(_0x35f1b2(0x1eb))/0x6)+parseInt(_0x35f1b2(0x213))/0x7+parseInt(_0x35f1b2(0x228))/0x8*(parseInt(_0x35f1b2(0x1f8))/0x9)+parseInt(_0x35f1b2(0x209))/0xa*(-parseInt(_0x35f1b2(0x206))/0xb);if(_0xe1dcc1===_0x3031ef)break;else _0x16d137['push'](_0x16d137['shift']());}catch(_0x745903){_0x16d137['push'](_0x16d137['shift']());}}}(_0x1d0f,0x4bf0f));import{Plugin as _0x15d32a}from'ckeditor5/src/core.js';import _0x2f714f from'./table.js';import{getTranslation as _0x3a0932}from'../utils/common-translations.js';function _0x3dc9(_0x160f18,_0x358ead){const _0x1d0f50=_0x1d0f();return _0x3dc9=function(_0x3dc97e,_0x400538){_0x3dc97e=_0x3dc97e-0x1d8;let _0x4cec18=_0x1d0f50[_0x3dc97e];return _0x4cec18;},_0x3dc9(_0x160f18,_0x358ead);}export default class Dt extends _0x15d32a{static get[_0x494a4d(0x1df)](){return[_0x2f714f];}[_0x494a4d(0x1e1)](){const _0x3925dc=_0x494a4d,_0x44f3a8=this[_0x3925dc(0x21c)];if(!_0x44f3a8[_0x3925dc(0x22d)][_0x3925dc(0x208)](_0x3925dc(0x201)))return;const _0x5cd007=_0x44f3a8[_0x3925dc(0x203)],_0x50ca1c=_0x44f3a8[_0x3925dc(0x22d)][_0x3925dc(0x229)](_0x3925dc(0x1da));_0x50ca1c[_0x3925dc(0x1ee)](_0x3925dc(0x1ed)),_0x50ca1c[_0x3925dc(0x1ee)](_0x3925dc(0x1f3)),_0x50ca1c[_0x3925dc(0x202)](_0x3925dc(0x1f2)),_0x50ca1c[_0x3925dc(0x202)](_0x3925dc(0x1fe)),_0x50ca1c[_0x3925dc(0x1d8)][_0x3925dc(0x222)](_0x3925dc(0x1f2),_0x3a0932(_0x5cd007,_0x3925dc(0x1f6))),_0x50ca1c[_0x3925dc(0x1d8)][_0x3925dc(0x222)](_0x3925dc(0x1fe),_0x3a0932(_0x5cd007,_0x3925dc(0x1f1))),this[_0x3925dc(0x1e8)]();}[_0x494a4d(0x1e8)](){const _0x1058a4=_0x494a4d,_0x99f382=this[_0x1058a4(0x21c)][_0x1058a4(0x22d)][_0x1058a4(0x229)](_0x1058a4(0x1da)),_0x378557=this[_0x1058a4(0x21c)][_0x1058a4(0x22d)][_0x1058a4(0x229)](_0x1058a4(0x1de)),_0x2357b7=this[_0x1058a4(0x21c)][_0x1058a4(0x22d)][_0x1058a4(0x229)](_0x2f714f)[_0x1058a4(0x1ef)]();function _0x3a6a24({showActiveMarker:_0x217454=!0x0,setDataAttribute:_0x491854=!0x0}={}){return(_0x57d0f5,_0x4121c6,_0x294ed1)=>{const _0x449cd6=_0x3dc9,{type:_0x4e1d47,id:_0x3ca49f}=_0x99f382[_0x449cd6(0x1f7)](_0x4121c6[_0x449cd6(0x21d)]),_0x4bd7b3=_0x99f382[_0x449cd6(0x21a)](_0x3ca49f),_0x457c61=_0x4bd7b3[_0x449cd6(0x215)];if(_0x449cd6(0x1dc)!=_0x4bd7b3[_0x449cd6(0x226)]||!_0x457c61||_0x449cd6(0x1f3)!=_0x457c61[_0x449cd6(0x22a)])return;if(_0x4121c6[_0x449cd6(0x1ec)])return void _0x57d0f5[_0x449cd6(0x207)]();if(!_0x294ed1[_0x449cd6(0x1db)][_0x449cd6(0x219)](_0x4121c6[_0x449cd6(0x211)],_0x57d0f5[_0x449cd6(0x220)]))return;const _0x3da75e=_0x4121c6[_0x449cd6(0x211)][_0x449cd6(0x205)][_0x449cd6(0x1e5)],_0x28f4bb=_0x4121c6[_0x449cd6(0x211)][_0x449cd6(0x20a)][_0x449cd6(0x20e)],_0x20362f=_0x3da75e[_0x449cd6(0x1e7)][_0x449cd6(0x1e7)],{column:_0x5f5415}=_0x378557[_0x449cd6(0x20f)](_0x3da75e),{column:_0x357572}=_0x378557[_0x449cd6(0x20f)](_0x28f4bb);for(let _0x5814d3=_0x5f5415;_0x5814d3<=_0x357572;_0x5814d3++){const _0x2b2a9c=_0x378557[_0x449cd6(0x210)](_0x20362f,{'column':_0x5814d3,'includeAllSlots':!0x1});for(const _0x2f1d93 of _0x2b2a9c){const _0x16ddb4=_0x2f1d93[_0x449cd6(0x1ea)],_0x19c6ba=_0x294ed1[_0x449cd6(0x1e0)][_0x449cd6(0x22b)](_0x16ddb4);_0x294ed1[_0x449cd6(0x223)][_0x449cd6(0x1f9)](_0x449cd6(0x22c)+_0x4e1d47,_0x19c6ba),_0x491854&&_0x294ed1[_0x449cd6(0x223)][_0x449cd6(0x1ff)](_0x449cd6(0x214),_0x3ca49f,_0x19c6ba),_0x294ed1[_0x449cd6(0x1e0)][_0x449cd6(0x225)](_0x19c6ba,_0x4121c6[_0x449cd6(0x21d)]),_0x217454&&(_0x99f382[_0x449cd6(0x221)][_0x449cd6(0x1e4)](_0x4121c6[_0x449cd6(0x21d)])?_0x294ed1[_0x449cd6(0x223)][_0x449cd6(0x1f9)](_0x449cd6(0x20c),_0x19c6ba):_0x294ed1[_0x449cd6(0x223)][_0x449cd6(0x218)](_0x449cd6(0x20c),_0x19c6ba));}}};}_0x99f382[_0x1058a4(0x212)][_0x1058a4(0x1e2)](_0x1058a4(0x1dc),_0x1058a4(0x1ed),_0x1058a4(0x21f),_0x2357b7),_0x99f382[_0x1058a4(0x212)][_0x1058a4(0x1e2)](_0x1058a4(0x1dc),_0x1058a4(0x1f3),_0x1058a4(0x21f),_0x2357b7),this[_0x1058a4(0x21c)][_0x1058a4(0x1d9)][_0x1058a4(0x20d)]['on'](_0x1058a4(0x217),_0x3a6a24(),{'priority':_0x1058a4(0x204)}),this[_0x1058a4(0x21c)][_0x1058a4(0x215)][_0x1058a4(0x20d)]['on'](_0x1058a4(0x217),(_0x2ea72c,_0x36715c,_0x1ff6fc)=>{const _0x30709b=_0x1058a4;_0x1ff6fc[_0x30709b(0x1f5)][_0x30709b(0x224)]&&_0x3a6a24({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x2ea72c,_0x36715c,_0x1ff6fc);},{'priority':_0x1058a4(0x204)}),this[_0x1058a4(0x21c)][_0x1058a4(0x1d9)][_0x1058a4(0x20d)]['on'](_0x1058a4(0x1e9),(_0x40cdbd,_0x24cd3c,_0x335f34)=>{const _0x679de2=_0x1058a4,{type:_0x27be5c,id:_0x5f37ee}=_0x99f382[_0x679de2(0x1f7)](_0x24cd3c[_0x679de2(0x21d)]),_0x3cd0b4=_0x99f382[_0x679de2(0x21a)](_0x5f37ee),_0x295151=_0x3cd0b4[_0x679de2(0x215)];if(_0x679de2(0x1dc)!=_0x3cd0b4[_0x679de2(0x226)]||!_0x295151||_0x679de2(0x1f3)!=_0x295151[_0x679de2(0x22a)])return;const _0xbb4da6=_0x335f34[_0x679de2(0x1e0)][_0x679de2(0x21b)](_0x24cd3c[_0x679de2(0x21d)]);if(_0xbb4da6){for(const _0xdf94f9 of _0xbb4da6)_0x335f34[_0x679de2(0x223)][_0x679de2(0x218)](_0x679de2(0x22c)+_0x27be5c,_0xdf94f9),_0x335f34[_0x679de2(0x223)][_0x679de2(0x218)](_0x679de2(0x20c),_0xdf94f9),_0x335f34[_0x679de2(0x223)][_0x679de2(0x1dd)](_0x679de2(0x214),_0xdf94f9),_0x335f34[_0x679de2(0x1e0)][_0x679de2(0x1f4)](_0xdf94f9,_0x24cd3c[_0x679de2(0x21d)]);}},{'priority':_0x1058a4(0x204)}),this[_0x1058a4(0x227)]();}[_0x494a4d(0x227)](){const _0x4cf626=_0x494a4d,_0x51e91a=this[_0x4cf626(0x21c)],_0x433017=_0x51e91a[_0x4cf626(0x203)];function _0x184059(_0x1435a4){const _0x164aac=_0x4cf626;return{'type':_0x164aac(0x216),'content':_0x3a0932(_0x433017,_0x164aac(0x1fb),_0x1435a4)};}_0x51e91a[_0x4cf626(0x22d)][_0x4cf626(0x229)](_0x4cf626(0x1da))[_0x4cf626(0x1d8)][_0x4cf626(0x1f0)](_0x2a93f3=>{const _0x457abb=_0x4cf626;if(_0x457abb(0x1dc)!=_0x2a93f3[_0x457abb(0x226)])return;const {data:_0x31ba35}=_0x2a93f3;if(_0x31ba35){if(_0x457abb(0x1ed)==_0x31ba35[_0x457abb(0x22a)]){const _0x1ce11c=_0x31ba35[_0x457abb(0x200)][0x0][_0x457abb(0x1e3)];return _0x184059(_0x3a0932(_0x433017,_0x1ce11c?_0x457abb(0x1f6):_0x457abb(0x21e)));}if(_0x457abb(0x1f3)==_0x31ba35[_0x457abb(0x22a)]){const _0x54441b=_0x31ba35[_0x457abb(0x200)][0x0][_0x457abb(0x1e3)];return _0x184059(_0x3a0932(_0x433017,_0x54441b?_0x457abb(0x1f1):_0x457abb(0x20b)));}}});}}function _0x1d0f(){const _0x425e86=['TableEditing','registerBlockAttribute','locale','highest','start','62876ohRFhk','stop','has','870RbBcNY','end','FORMAT_REGULAR_COLUMN','ck-suggestion-marker--active','downcastDispatcher','nodeBefore','getCellLocation','createTableWalker','markerRange','_suggestionFactory','1409751OzOUqj','data-suggestion','data','format','addMarker:suggestion','removeClass','consume','getSuggestion','markerNameToElements','editor','markerName','FORMAT_REGULAR_ROW','accept','name','activeMarkers','registerAttributeLabel','writer','showSuggestionHighlights','bindElementToMarker','type','_registerLegacyDescription','8jGYmKc','get','commandName','toViewElement','ck-suggestion-marker-','plugins','40INhsSe','descriptionFactory','editing','TrackChangesEditing','consumable','formatBlock','removeAttribute','TableUtils','requires','mapper','afterInit','registerCustomCallback','forceValue','includes','nodeAfter','366myWlsu','parent','_handleLegacySuggestions','removeMarker:suggestion','cell','155166rntVLw','item','setTableRowHeader','enableDefaultAttributesIntegration','_acceptFormatSuggestionCallbackFactory','registerDescriptionCallback','FORMAT_HEADER_COLUMN','headingRows','setTableColumnHeader','unbindElementFromMarkerName','options','FORMAT_HEADER_ROW','_splitMarkerName','3079737Isdlrv','addClass','2465172SeegKO','*Format:*\x20%0','1861yQLZew','1455621EEiVmh','headingColumns','setAttribute','commandParams'];_0x1d0f=function(){return _0x425e86;};return _0x1d0f();}