UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.13 kB
/* * 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ (function(_0x47f756,_0x5553b1){const _0x234c24=_0x226c,_0x6a9ed1=_0x47f756();while(!![]){try{const _0x460782=-parseInt(_0x234c24(0xe3))/0x1*(parseInt(_0x234c24(0xe0))/0x2)+-parseInt(_0x234c24(0xd1))/0x3*(-parseInt(_0x234c24(0xb9))/0x4)+-parseInt(_0x234c24(0xbd))/0x5*(-parseInt(_0x234c24(0xc2))/0x6)+-parseInt(_0x234c24(0xc4))/0x7+parseInt(_0x234c24(0xd4))/0x8*(parseInt(_0x234c24(0xd2))/0x9)+parseInt(_0x234c24(0xc5))/0xa*(-parseInt(_0x234c24(0xb7))/0xb)+-parseInt(_0x234c24(0xbc))/0xc*(parseInt(_0x234c24(0xe6))/0xd);if(_0x460782===_0x5553b1)break;else _0x6a9ed1['push'](_0x6a9ed1['shift']());}catch(_0x12cffc){_0x6a9ed1['push'](_0x6a9ed1['shift']());}}}(_0x34d6,0x514c4));function _0x226c(_0x2961e7,_0x45fb0f){const _0x34d6dc=_0x34d6();return _0x226c=function(_0x226c49,_0xa4a58d){_0x226c49=_0x226c49-0xb5;let _0x6fc0b9=_0x34d6dc[_0x226c49];return _0x6fc0b9;},_0x226c(_0x2961e7,_0x45fb0f);}export function getRangesWithAttribute(_0x2a7e5a,_0x130597,_0x77e387){const _0x4a1879=_0x226c,_0x19dcbe=[];for(const _0x1101aa of _0x130597[_0x4a1879(0xdb)]())_0x1101aa[_0x4a1879(0xd3)](_0x2a7e5a)&&_0x19dcbe[_0x4a1879(0xbf)](_0x77e387[_0x4a1879(0xcb)](_0x1101aa));return _0x19dcbe;}function _0x34d6(){const _0x3aefff=['consumable','createUIElement','addClass','22GmmmIH','span','453204jNaBXS','ck-suggestion-marker-','getWalker','12pnzKar','69865HbMPwU','type','push','isBlock','activeMarkers','282uAkmJj','start','1678222tasBws','2443040keUHvy','isContent','model','toViewPosition','insert','name','createRangeOn','plugins','_splitMarkerName','toViewElement','mapper','isAtEnd','15jWpgSr','81WnoBRs','hasAttribute','398624PFqNEx','get','schema','writer','addHighlight','includes','previousPosition','getItems','markerRange','test','getCustomProperty','TrackChangesEditing','2VRVMqT','isLimit','markerName','527380raNwZi','item','elementEnd','1078454cBKHWS','bindElementToMarker','ck-suggestion-marker--active','parent','nextSibling'];_0x34d6=function(){return _0x3aefff;};return _0x34d6();}export function downcastSplitMergeMarker(_0x1f8a8b,_0x35cea2,{showActiveMarker:_0x4e958c=!0x0}={}){const _0x38c61c=_0x226c,_0x3f75cc=_0x1f8a8b[_0x38c61c(0xcc)][_0x38c61c(0xd5)](_0x38c61c(0xdf));return(_0x259df6,_0xf4f202,_0x329af1)=>{const _0x2c4bc1=_0x38c61c;if(!_0x329af1[_0x2c4bc1(0xeb)][_0x2c4bc1(0xdd)](_0xf4f202[_0x2c4bc1(0xdc)],_0x259df6[_0x2c4bc1(0xca)]))return;const _0xf5fe1b=_0xf4f202[_0x2c4bc1(0xdc)][_0x2c4bc1(0xbb)](),_0x24f023=_0xf4f202[_0x2c4bc1(0xdc)][_0x2c4bc1(0xc3)],_0x194025=_0x1f8a8b[_0x2c4bc1(0xc7)][_0x2c4bc1(0xd6)];let _0x261ec8=null,_0x3826e9=null,_0x10bc25=!0x1,_0x4063a6=!0x1;for(const _0x121439 of _0xf5fe1b){const _0x380c3f=_0x121439[_0x2c4bc1(0xe4)];_0x10bc25=_0x10bc25||_0x194025[_0x2c4bc1(0xc6)](_0x380c3f);const _0x34d5ea=_0x329af1[_0x2c4bc1(0xcf)][_0x2c4bc1(0xce)](_0x380c3f);if(_0x34d5ea&&_0x34d5ea[_0x2c4bc1(0xde)](_0x2c4bc1(0xd8)))return;_0x2c4bc1(0xe5)==_0x121439[_0x2c4bc1(0xbe)]&&(_0x194025[_0x2c4bc1(0xc0)](_0x380c3f)&&!_0x194025[_0x2c4bc1(0xe1)](_0x380c3f)&&(_0x380c3f[_0x2c4bc1(0xea)]||_0x24f023[_0x2c4bc1(0xd0)]?_0x261ec8&&_0x261ec8[_0x2c4bc1(0xe9)]==_0x380c3f||(_0x261ec8=_0x380c3f,_0x53f43b(_0x121439[_0x2c4bc1(0xda)]),_0x4063a6=!0x0):_0x3826e9=_0x3826e9||_0x121439[_0x2c4bc1(0xda)]));}function _0x53f43b(_0x52f987){const _0x334d42=_0x2c4bc1,{id:_0x482c29,authorId:_0x1a092f}=_0x3f75cc[_0x334d42(0xcd)](_0xf4f202[_0x334d42(0xe2)]),_0x2acf2a=_0x329af1[_0x334d42(0xd7)][_0x334d42(0xb5)](_0x334d42(0xb8),{'class':_0x334d42(0xba)+_0x35cea2,'data-suggestion':_0x482c29,'data-author-id':_0x1a092f}),_0x18d105=_0x329af1[_0x334d42(0xcf)][_0x334d42(0xc8)](_0x52f987);_0x4e958c&&_0x3f75cc[_0x334d42(0xc1)][_0x334d42(0xd9)](_0xf4f202[_0x334d42(0xe2)])&&_0x329af1[_0x334d42(0xd7)][_0x334d42(0xb6)](_0x334d42(0xe8),_0x2acf2a),_0x329af1[_0x334d42(0xd7)][_0x334d42(0xc9)](_0x18d105,_0x2acf2a),_0x329af1[_0x334d42(0xcf)][_0x334d42(0xe7)](_0x2acf2a,_0xf4f202[_0x334d42(0xe2)]);}_0x10bc25||_0x4063a6||!_0x3826e9||_0x53f43b(_0x3826e9);};}