UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines • 8.38 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x3883a1=_0xbb1f;(function(_0x436eba,_0xc1d052){const _0x16b03e=_0xbb1f,_0x36b43c=_0x436eba();while(!![]){try{const _0x345a06=-parseInt(_0x16b03e(0x17f))/0x1+-parseInt(_0x16b03e(0x193))/0x2+parseInt(_0x16b03e(0x181))/0x3*(parseInt(_0x16b03e(0x18b))/0x4)+-parseInt(_0x16b03e(0x179))/0x5+-parseInt(_0x16b03e(0x188))/0x6+-parseInt(_0x16b03e(0x18a))/0x7+-parseInt(_0x16b03e(0x183))/0x8*(-parseInt(_0x16b03e(0x187))/0x9);if(_0x345a06===_0xc1d052)break;else _0x36b43c['push'](_0x36b43c['shift']());}catch(_0x2f4058){_0x36b43c['push'](_0x36b43c['shift']());}}}(_0x452b,0xefc0c));import{Plugin as _0x2d3994}from'ckeditor5/src/core.js';import{CKEditorError as _0x85b9ba}from'ckeditor5/src/utils.js';import _0x5a1e09 from'./trackchangesediting.js';import{sanitizeEditorConfig as _0x3aa859}from'ckeditor5-collaboration/src/collaboration-core.js';const w=[_0x3883a1(0x15a)];export default class T extends _0x2d3994{static get[_0x3883a1(0x176)](){return[_0x5a1e09];}static get[_0x3883a1(0x157)](){const _0x34229c=_0x3883a1;return _0x34229c(0x18c);}static get[_0x3883a1(0x189)](){return!0x0;}static get[_0x3883a1(0x161)](){return!0x0;}[_0x3883a1(0x180)](){const _0x2dbb21=_0x3883a1,_0x34d21b=this[_0x2dbb21(0x16b)];if(_0x34d21b[_0x2dbb21(0x18d)][_0x2dbb21(0x18f)](_0x2dbb21(0x191),_0x4122a6=>{const _0x1b30cb=_0x2dbb21,_0x367ed1=_0x34d21b[_0x1b30cb(0x171)][_0x1b30cb(0x160)][_0x1b30cb(0x16e)]()[_0x1b30cb(0x177)]((_0x5ae668,_0x1a33e2)=>(_0x5ae668[_0x1a33e2]='',_0x5ae668),{});return _0x34d21b[_0x1b30cb(0x18e)][_0x1b30cb(0x16d)](_0x367ed1,_0x4122a6);}),_0x2dbb21(0x162)!=typeof _0x34d21b[_0x2dbb21(0x18d)][_0x2dbb21(0x15f)](_0x2dbb21(0x173))[_0x2dbb21(0x172)])throw new _0x85b9ba(_0x2dbb21(0x196));}[_0x3883a1(0x195)](_0x376f2f){const _0x225d54=_0x3883a1;return N(this[_0x225d54(0x16b)],!0x0,_0x376f2f);}[_0x3883a1(0x158)](_0x4255c7){const _0x796681=_0x3883a1;return N(this[_0x796681(0x16b)],!0x1,_0x4255c7);}}class D extends _0x2d3994{[_0x3883a1(0x156)];static get[_0x3883a1(0x157)](){const _0x2b8dcd=_0x3883a1;return _0x2b8dcd(0x182);}static get[_0x3883a1(0x189)](){return!0x0;}static get[_0x3883a1(0x161)](){return!0x0;}constructor(_0x59e9cd){const _0x20081e=_0x3883a1;function _0x1bec3a(_0x5211c9){const _0x463847=_0xbb1f;return _0x5211c9[_0x463847(0x184)](_0x34bcb5=>String[_0x463847(0x199)](_0x34bcb5))[_0x463847(0x194)]('');}super(_0x59e9cd),this[_0x20081e(0x156)]=_0x20081e(0x17d),_0x59e9cd[_0x1bec3a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1bec3a([0x76,0x69,0x65,0x77])][_0x1bec3a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1bec3a([0x61,0x75,0x74,0x6f]),_0x59e9cd[_0x1bec3a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x1bec3a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1bec3a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x1bec3a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x1bec3a([0x6f,0x6b])});}[_0x3883a1(0x180)](){const _0x573f8b=_0x3883a1;this[_0x573f8b(0x16b)][_0x573f8b(0x15c)][_0x573f8b(0x15f)](_0x573f8b(0x170))[_0x573f8b(0x174)]={'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[_0x573f8b(0x16b)][_0x573f8b(0x15c)][_0x573f8b(0x15f)](_0x573f8b(0x159))[_0x573f8b(0x174)]=null;}}function v(_0x5db6b8){const _0x31a182=_0x3883a1;return void 0x0!==_0x5db6b8[_0x31a182(0x186)];}function _0xbb1f(_0xff5f0b,_0x4262e4){const _0x452b88=_0x452b();return _0xbb1f=function(_0xbb1f9e,_0xfa3169){_0xbb1f9e=_0xbb1f9e-0x156;let _0x471a07=_0x452b88[_0xbb1f9e];return _0x471a07;},_0xbb1f(_0xff5f0b,_0x4262e4);}async function N(_0x121ad1,_0x262a4a,_0xb51e5a){const _0x3218d9=_0x3883a1,_0x37aeb1=_0x3aa859(_0x121ad1,w);_0x37aeb1[_0x3218d9(0x15c)][_0x3218d9(0x16a)](_0x5a1e09,D),_0x37aeb1[_0x3218d9(0x165)]=v(_0x121ad1)?_0x121ad1[_0x3218d9(0x186)]():void 0x0;const _0x1432a3=document[_0x3218d9(0x17e)](),_0x4e2343=_0x121ad1[_0x3218d9(0x18d)][_0x3218d9(0x15f)](_0x3218d9(0x173))[_0x3218d9(0x172)],_0x5a7988=await _0x4e2343(_0x37aeb1,()=>function(_0x5b1583){const _0x45ef41=_0x3218d9,_0x345909=document[_0x45ef41(0x17c)](_0x45ef41(0x198));return _0x5b1583[_0x45ef41(0x190)](_0x345909),_0x345909;}(_0x1432a3));!function(_0x440bbc,_0x34386c){const _0xee2a46=_0x3218d9,_0x5e124e=_0x440bbc[_0xee2a46(0x171)][_0xee2a46(0x160)][_0xee2a46(0x16e)]()[_0xee2a46(0x177)]((_0x238215,_0x179c16)=>(_0x238215[_0x179c16]=_0x440bbc[_0xee2a46(0x15e)][_0xee2a46(0x15f)]({'rootName':_0x179c16}),_0x238215),{}),_0x3319ab=_0x440bbc[_0xee2a46(0x15c)][_0xee2a46(0x15f)](_0xee2a46(0x175))[_0xee2a46(0x17a)][_0xee2a46(0x184)](_0x23f8f6=>({'id':_0x23f8f6['id'],'name':_0x23f8f6[_0xee2a46(0x163)]})),_0x419d54=_0x440bbc[_0xee2a46(0x15c)][_0xee2a46(0x15f)](_0xee2a46(0x159))[_0xee2a46(0x164)]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x30d859=_0x440bbc[_0xee2a46(0x15c)][_0xee2a46(0x15f)](_0xee2a46(0x170))[_0xee2a46(0x166)]({'skipNotAttached':!0x0,'toJSON':!0x0}),_0x14211c=_0x34386c[_0xee2a46(0x15c)][_0xee2a46(0x15f)](_0xee2a46(0x175)),_0x4edee5=_0x34386c[_0xee2a46(0x15c)][_0xee2a46(0x15f)](_0xee2a46(0x159)),_0x513f39=_0x34386c[_0xee2a46(0x15c)][_0xee2a46(0x15f)](_0xee2a46(0x170));for(const _0x201904 of _0x513f39[_0xee2a46(0x166)]())_0x201904[_0xee2a46(0x167)]();for(const _0x53835b of _0x3319ab)_0x14211c[_0xee2a46(0x15b)](_0x53835b['id'])||_0x14211c[_0xee2a46(0x192)](_0x53835b);_0x14211c['me']||_0x14211c[_0xee2a46(0x185)]();for(const _0x34566f of _0x30d859)_0x513f39[_0xee2a46(0x197)](_0x34566f);for(const _0x1da9a6 of _0x419d54)_0x4edee5[_0xee2a46(0x168)](_0x1da9a6);_0x34386c[_0xee2a46(0x15e)][_0xee2a46(0x169)](_0x5e124e);}(_0x121ad1,_0x5a7988),_0x5a7988[_0x3218d9(0x17b)](_0x262a4a?_0x3218d9(0x15d):_0x3218d9(0x16c));const _0x585667=v(_0x5a7988)?_0x5a7988[_0x3218d9(0x178)](_0xb51e5a):_0x5a7988[_0x3218d9(0x15e)][_0x3218d9(0x15f)](_0xb51e5a);return await _0x5a7988[_0x3218d9(0x16f)](),_0x585667;}function _0x452b(){const _0x36028f=['getDataWithDiscardedSuggestions','TrackChangesEditing','Pagination','getUser','plugins','acceptAllSuggestions','data','get','document','isPremiumPlugin','function','name','getSuggestions','rootsAttributes','getCommentThreads','remove','addSuggestionData','set','push','editor','discardAllSuggestions','create','getRootNames','destroy','CommentsRepository','model','editorCreator','trackChangesData','_adapter','Users','requires','reduce','getFullData','1211780PNBELJ','users','execute','createElement','end','createDocumentFragment','1082593JDSRFp','init','2283036qFnExj','TrackChangesDataGetter','34250872mXeyZw','map','useAnonymousUser','getRootsAttributes','9boaORn','462132FTOSmS','isOfficialPlugin','13124433MmNZGE','4ECHBPj','TrackChangesData','config','constructor','define','appendChild','trackChangesData.editorCreator','addUser','1566906uUlauG','join','getDataWithAcceptedSuggestions','track-changes-data-invalid-editor-creator','addCommentThread','div','fromCharCode','result','pluginName'];_0x452b=function(){return _0x36028f;};return _0x452b();}