@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 _0x16fb5c=_0x30d6;(function(_0x2bc772,_0x208c59){const _0x4dc280=_0x30d6,_0x4926d0=_0x2bc772();while(!![]){try{const _0x35ed2b=-parseInt(_0x4dc280(0x1a2))/0x1*(parseInt(_0x4dc280(0x18b))/0x2)+parseInt(_0x4dc280(0x1b7))/0x3*(-parseInt(_0x4dc280(0x1a3))/0x4)+-parseInt(_0x4dc280(0x17b))/0x5+parseInt(_0x4dc280(0x18e))/0x6*(-parseInt(_0x4dc280(0x184))/0x7)+-parseInt(_0x4dc280(0x17d))/0x8+parseInt(_0x4dc280(0x19a))/0x9+parseInt(_0x4dc280(0x196))/0xa*(parseInt(_0x4dc280(0x1a0))/0xb);if(_0x35ed2b===_0x208c59)break;else _0x4926d0['push'](_0x4926d0['shift']());}catch(_0x1fac0e){_0x4926d0['push'](_0x4926d0['shift']());}}}(_0x5efa,0x62671));import{Plugin as _0x531454}from'ckeditor5/src/core.js';function _0x5efa(){const _0x7beb25=['ck-suggestion-marker--active','_registerLegacyDescription','6vfWHFJ','_handleLegacySuggestions','descriptionFactory','forceValue','editing','activeMarkers','writer','parent','20ygPPmJ','item','TableEditing','addMarker:suggestion','2291769yPFsVw','registerCustomCallback','FORMAT_REGULAR_COLUMN','get','afterInit','FORMAT_HEADER_ROW','11009724uifgUW','format','1zcOfkC','496odRbXk','end','_suggestionFactory','requires','addClass','FORMAT_HEADER_COLUMN','consume','data','nodeBefore','mapper','removeClass','ck-suggestion-marker-','_splitMarkerName','nodeAfter','formatBlock','type','headingRows','accept','registerBlockAttribute','commandName','12216NywmqV','markerName','headingColumns','data-suggestion','cell','setAttribute','markerRange','unbindElementFromMarkerName','removeAttribute','has','stop','_acceptFormatSuggestionCallbackFactory','name','start','getSuggestion','registerDescriptionCallback','TrackChangesEditing','commandParams','locale','getCellLocation','toViewElement','markerNameToElements','*Format:*\x20%0','TableUtils','FORMAT_REGULAR_ROW','registerAttributeLabel','options','3550490JwMoAX','consumable','2527200kFHWSy','downcastDispatcher','plugins','editor','enableDefaultAttributesIntegration','setTableColumnHeader','highest','475307HnSOhZ','setTableRowHeader','createTableWalker','removeMarker:suggestion','bindElementToMarker','includes','showSuggestionHighlights','509050IYBBji'];_0x5efa=function(){return _0x7beb25;};return _0x5efa();}import _0x4cc680 from'./table.js';import{getTranslation as _0x35e37e}from'../utils/common-translations.js';function _0x30d6(_0x4c3242,_0x268bdf){const _0x5efa46=_0x5efa();return _0x30d6=function(_0x30d674,_0xdb7d5d){_0x30d674=_0x30d674-0x172;let _0x4303eb=_0x5efa46[_0x30d674];return _0x4303eb;},_0x30d6(_0x4c3242,_0x268bdf);}export default class Dt extends _0x531454{static get[_0x16fb5c(0x1a6)](){return[_0x4cc680];}[_0x16fb5c(0x19e)](){const _0x1c5109=_0x16fb5c,_0x144647=this[_0x1c5109(0x180)];if(!_0x144647[_0x1c5109(0x17f)][_0x1c5109(0x1c0)](_0x1c5109(0x198)))return;const _0x47b74d=_0x144647[_0x1c5109(0x172)],_0x280af5=_0x144647[_0x1c5109(0x17f)][_0x1c5109(0x19d)](_0x1c5109(0x1c7));_0x280af5[_0x1c5109(0x181)](_0x1c5109(0x185)),_0x280af5[_0x1c5109(0x181)](_0x1c5109(0x182)),_0x280af5[_0x1c5109(0x1b5)](_0x1c5109(0x1b3)),_0x280af5[_0x1c5109(0x1b5)](_0x1c5109(0x1b9)),_0x280af5[_0x1c5109(0x190)][_0x1c5109(0x179)](_0x1c5109(0x1b3),_0x35e37e(_0x47b74d,_0x1c5109(0x19f))),_0x280af5[_0x1c5109(0x190)][_0x1c5109(0x179)](_0x1c5109(0x1b9),_0x35e37e(_0x47b74d,_0x1c5109(0x1a8))),this[_0x1c5109(0x18f)]();}[_0x16fb5c(0x18f)](){const _0x3c81e1=_0x16fb5c,_0x16c64a=this[_0x3c81e1(0x180)][_0x3c81e1(0x17f)][_0x3c81e1(0x19d)](_0x3c81e1(0x1c7)),_0x4feb72=this[_0x3c81e1(0x180)][_0x3c81e1(0x17f)][_0x3c81e1(0x19d)](_0x3c81e1(0x177)),_0xda915a=this[_0x3c81e1(0x180)][_0x3c81e1(0x17f)][_0x3c81e1(0x19d)](_0x4cc680)[_0x3c81e1(0x1c2)]();function _0x242752({showActiveMarker:_0x1bb299=!0x0,setDataAttribute:_0x3dcca1=!0x0}={}){return(_0x40a08d,_0xc37cb3,_0x27a17b)=>{const _0x446cb3=_0x30d6,{type:_0x1897f4,id:_0x5bd1ca}=_0x16c64a[_0x446cb3(0x1af)](_0xc37cb3[_0x446cb3(0x1b8)]),_0x1759b6=_0x16c64a[_0x446cb3(0x1c5)](_0x5bd1ca),_0x5e9d73=_0x1759b6[_0x446cb3(0x1aa)];if(_0x446cb3(0x1b1)!=_0x1759b6[_0x446cb3(0x1b2)]||!_0x5e9d73||_0x446cb3(0x182)!=_0x5e9d73[_0x446cb3(0x1b6)])return;if(_0xc37cb3[_0x446cb3(0x197)])return void _0x40a08d[_0x446cb3(0x1c1)]();if(!_0x27a17b[_0x446cb3(0x17c)][_0x446cb3(0x1a9)](_0xc37cb3[_0x446cb3(0x1bd)],_0x40a08d[_0x446cb3(0x1c3)]))return;const _0x2c6bf4=_0xc37cb3[_0x446cb3(0x1bd)][_0x446cb3(0x1c4)][_0x446cb3(0x1b0)],_0x589acc=_0xc37cb3[_0x446cb3(0x1bd)][_0x446cb3(0x1a4)][_0x446cb3(0x1ab)],_0x197b2e=_0x2c6bf4[_0x446cb3(0x195)][_0x446cb3(0x195)],{column:_0x3a652f}=_0x4feb72[_0x446cb3(0x173)](_0x2c6bf4),{column:_0x2ae74c}=_0x4feb72[_0x446cb3(0x173)](_0x589acc);for(let _0x2df234=_0x3a652f;_0x2df234<=_0x2ae74c;_0x2df234++){const _0x28b12e=_0x4feb72[_0x446cb3(0x186)](_0x197b2e,{'column':_0x2df234,'includeAllSlots':!0x1});for(const _0x3ce2cb of _0x28b12e){const _0x4f6f41=_0x3ce2cb[_0x446cb3(0x1bb)],_0x26d4e0=_0x27a17b[_0x446cb3(0x1ac)][_0x446cb3(0x174)](_0x4f6f41);_0x27a17b[_0x446cb3(0x194)][_0x446cb3(0x1a7)](_0x446cb3(0x1ae)+_0x1897f4,_0x26d4e0),_0x3dcca1&&_0x27a17b[_0x446cb3(0x194)][_0x446cb3(0x1bc)](_0x446cb3(0x1ba),_0x5bd1ca,_0x26d4e0),_0x27a17b[_0x446cb3(0x1ac)][_0x446cb3(0x188)](_0x26d4e0,_0xc37cb3[_0x446cb3(0x1b8)]),_0x1bb299&&(_0x16c64a[_0x446cb3(0x193)][_0x446cb3(0x189)](_0xc37cb3[_0x446cb3(0x1b8)])?_0x27a17b[_0x446cb3(0x194)][_0x446cb3(0x1a7)](_0x446cb3(0x18c),_0x26d4e0):_0x27a17b[_0x446cb3(0x194)][_0x446cb3(0x1ad)](_0x446cb3(0x18c),_0x26d4e0));}}};}_0x16c64a[_0x3c81e1(0x1a5)][_0x3c81e1(0x19b)](_0x3c81e1(0x1b1),_0x3c81e1(0x185),_0x3c81e1(0x1b4),_0xda915a),_0x16c64a[_0x3c81e1(0x1a5)][_0x3c81e1(0x19b)](_0x3c81e1(0x1b1),_0x3c81e1(0x182),_0x3c81e1(0x1b4),_0xda915a),this[_0x3c81e1(0x180)][_0x3c81e1(0x192)][_0x3c81e1(0x17e)]['on'](_0x3c81e1(0x199),_0x242752(),{'priority':_0x3c81e1(0x183)}),this[_0x3c81e1(0x180)][_0x3c81e1(0x1aa)][_0x3c81e1(0x17e)]['on'](_0x3c81e1(0x199),(_0x3f001c,_0x90c147,_0x302e92)=>{const _0x589e99=_0x3c81e1;_0x302e92[_0x589e99(0x17a)][_0x589e99(0x18a)]&&_0x242752({'showActiveMarker':!0x1,'setDataAttribute':!0x1})(_0x3f001c,_0x90c147,_0x302e92);},{'priority':_0x3c81e1(0x183)}),this[_0x3c81e1(0x180)][_0x3c81e1(0x192)][_0x3c81e1(0x17e)]['on'](_0x3c81e1(0x187),(_0x2a5b5a,_0x4f6ef3,_0x2f216a)=>{const _0x7f1919=_0x3c81e1,{type:_0x24580a,id:_0x54f872}=_0x16c64a[_0x7f1919(0x1af)](_0x4f6ef3[_0x7f1919(0x1b8)]),_0x5cf14b=_0x16c64a[_0x7f1919(0x1c5)](_0x54f872),_0x9a75f5=_0x5cf14b[_0x7f1919(0x1aa)];if(_0x7f1919(0x1b1)!=_0x5cf14b[_0x7f1919(0x1b2)]||!_0x9a75f5||_0x7f1919(0x182)!=_0x9a75f5[_0x7f1919(0x1b6)])return;const _0x406dc3=_0x2f216a[_0x7f1919(0x1ac)][_0x7f1919(0x175)](_0x4f6ef3[_0x7f1919(0x1b8)]);if(_0x406dc3){for(const _0x5a689e of _0x406dc3)_0x2f216a[_0x7f1919(0x194)][_0x7f1919(0x1ad)](_0x7f1919(0x1ae)+_0x24580a,_0x5a689e),_0x2f216a[_0x7f1919(0x194)][_0x7f1919(0x1ad)](_0x7f1919(0x18c),_0x5a689e),_0x2f216a[_0x7f1919(0x194)][_0x7f1919(0x1bf)](_0x7f1919(0x1ba),_0x5a689e),_0x2f216a[_0x7f1919(0x1ac)][_0x7f1919(0x1be)](_0x5a689e,_0x4f6ef3[_0x7f1919(0x1b8)]);}},{'priority':_0x3c81e1(0x183)}),this[_0x3c81e1(0x18d)]();}[_0x16fb5c(0x18d)](){const _0x3834e7=_0x16fb5c,_0x843d95=this[_0x3834e7(0x180)],_0x12a70e=_0x843d95[_0x3834e7(0x172)];function _0x1d54fa(_0xc593ca){const _0x343c22=_0x3834e7;return{'type':_0x343c22(0x1a1),'content':_0x35e37e(_0x12a70e,_0x343c22(0x176),_0xc593ca)};}_0x843d95[_0x3834e7(0x17f)][_0x3834e7(0x19d)](_0x3834e7(0x1c7))[_0x3834e7(0x190)][_0x3834e7(0x1c6)](_0x42b07b=>{const _0x164942=_0x3834e7;if(_0x164942(0x1b1)!=_0x42b07b[_0x164942(0x1b2)])return;const {data:_0x5642a7}=_0x42b07b;if(_0x5642a7){if(_0x164942(0x185)==_0x5642a7[_0x164942(0x1b6)]){const _0x58eeaa=_0x5642a7[_0x164942(0x1c8)][0x0][_0x164942(0x191)];return _0x1d54fa(_0x35e37e(_0x12a70e,_0x58eeaa?_0x164942(0x19f):_0x164942(0x178)));}if(_0x164942(0x182)==_0x5642a7[_0x164942(0x1b6)]){const _0x1a4586=_0x5642a7[_0x164942(0x1c8)][0x0][_0x164942(0x191)];return _0x1d54fa(_0x35e37e(_0x12a70e,_0x1a4586?_0x164942(0x1a8):_0x164942(0x19c)));}}});}}