UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 4.62 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 _0x56e4(_0x2431a9,_0x55e7ce){const _0x3cd179=_0x3cd1();return _0x56e4=function(_0x56e4c3,_0x1a25b3){_0x56e4c3=_0x56e4c3-0x1c6;let _0x42d8b9=_0x3cd179[_0x56e4c3];return _0x42d8b9;},_0x56e4(_0x2431a9,_0x55e7ce);}const _0x1990fc=_0x56e4;(function(_0x57e283,_0x20f828){const _0x556219=_0x56e4,_0xb66397=_0x57e283();while(!![]){try{const _0x5dc209=-parseInt(_0x556219(0x1d1))/0x1+parseInt(_0x556219(0x1d3))/0x2*(parseInt(_0x556219(0x1cf))/0x3)+-parseInt(_0x556219(0x1d2))/0x4+parseInt(_0x556219(0x1de))/0x5+-parseInt(_0x556219(0x1e3))/0x6*(parseInt(_0x556219(0x1df))/0x7)+parseInt(_0x556219(0x1e0))/0x8+parseInt(_0x556219(0x1e7))/0x9*(parseInt(_0x556219(0x1e2))/0xa);if(_0x5dc209===_0x20f828)break;else _0xb66397['push'](_0xb66397['shift']());}catch(_0x2974e2){_0xb66397['push'](_0xb66397['shift']());}}}(_0x3cd1,0xacb53));import{Plugin as _0x212641}from'ckeditor5/src/core.js';function _0x3cd1(){const _0x3ec91d=['27wHPJAC','_trackChangesExecuted','high','get','lowest','dataInsert','_handleImportedData','bind','importWord','forEach','795219ttTsiy','_trackChangesValueDuringImport','362546SdhjNl','5565772pLuMyc','8RzdKUz','_setSuggestionData','TrackChangesEditing','collaboration_features','trackChanges','enableCommand','editor','commands','plugins','value','execute','3549755xfKegN','233422ksztkW','11728FAksip','afterInit','5967030tjZKjV','198GGPjeL','track_changes','Users','listenTo'];_0x3cd1=function(){return _0x3ec91d;};return _0x3cd1();}export class TrackChangesImportWord extends _0x212641{[_0x1990fc(0x1d0)];[_0x1990fc(0x1c6)];constructor(_0x26fa01){const _0x1c0e35=_0x1990fc;super(_0x26fa01),this[_0x1c0e35(0x1d0)]=!0x1,this[_0x1c0e35(0x1c6)]=!0x1;}[_0x1990fc(0x1e1)](){const _0x549bcf=_0x1990fc,_0x3fec03=this[_0x549bcf(0x1d9)],_0x50be3c=_0x3fec03[_0x549bcf(0x1da)][_0x549bcf(0x1c8)](_0x549bcf(0x1cd)),_0x15aec3=_0x3fec03[_0x549bcf(0x1da)][_0x549bcf(0x1c8)](_0x549bcf(0x1d7));_0x50be3c&&(_0x50be3c['on'](_0x549bcf(0x1dd),(_0x295d93,[,_0x20b559])=>{const _0x56edea=_0x549bcf;this[_0x56edea(0x1d0)]=_0x15aec3[_0x56edea(0x1dc)],_0x20b559[_0x56edea(0x1d6)][_0x56edea(0x1e4)]=!this[_0x56edea(0x1d0)];},{'priority':_0x549bcf(0x1c7)}),this[_0x549bcf(0x1e6)](_0x50be3c,_0x549bcf(0x1ca),this[_0x549bcf(0x1cb)][_0x549bcf(0x1cc)](this)),this[_0x549bcf(0x1e6)](_0x50be3c,_0x549bcf(0x1ca),()=>{const _0x6c4a65=_0x549bcf;this[_0x6c4a65(0x1c6)]&&(_0x15aec3[_0x6c4a65(0x1dd)](),this[_0x6c4a65(0x1c6)]=!0x1);},{'priority':_0x549bcf(0x1c9)}),_0x3fec03[_0x549bcf(0x1db)][_0x549bcf(0x1c8)](_0x549bcf(0x1d5))[_0x549bcf(0x1d8)](_0x549bcf(0x1cd)));}[_0x1990fc(0x1cb)](_0x5099bd,_0x3c4952){const _0x4b4e03=_0x1990fc,{suggestions:_0x49012d}=_0x3c4952,_0x4da9cf=this[_0x4b4e03(0x1d9)][_0x4b4e03(0x1da)][_0x4b4e03(0x1c8)](_0x4b4e03(0x1d7)),_0x450fc9=_0x4da9cf[_0x4b4e03(0x1dc)];this[_0x4b4e03(0x1d0)]!==_0x450fc9&&(_0x4da9cf[_0x4b4e03(0x1dd)](),this[_0x4b4e03(0x1c6)]=!0x0),_0x49012d&&_0x49012d[_0x4b4e03(0x1ce)](({id:_0x4710e4,type:_0x4b1d0a,author:_0x58ee51,created_at:_0x40f07a})=>{const _0x3e0c63=_0x4b4e03,_0xdb62d6={'id':_0x4710e4,'type':_0x4b1d0a,'authorId':this[_0x3e0c63(0x1d9)][_0x3e0c63(0x1db)][_0x3e0c63(0x1c8)](_0x3e0c63(0x1e5))['me']['id'],'createdAt':new Date(),'data':null,'hasComments':!0x1,'attributes':{'@external':{'authorName':_0x58ee51,'createdAt':_0x40f07a?new Date(_0x40f07a):new Date(),'source':_0x3e0c63(0x1cd)}}};this[_0x3e0c63(0x1d9)][_0x3e0c63(0x1db)][_0x3e0c63(0x1c8)](_0x3e0c63(0x1d5))[_0x3e0c63(0x1d4)](_0xdb62d6);});}}