UNPKG

@ckeditor/ckeditor5-collaboration-core

Version:

Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.

23 lines 4.89 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 _0x4f12c6=_0x59d5;function _0x59d5(_0x2431ef,_0x4ea5e8){const _0x4f8bae=_0x4f8b();return _0x59d5=function(_0x59d54a,_0xb424f0){_0x59d54a=_0x59d54a-0x195;let _0x32d89b=_0x4f8bae[_0x59d54a];return _0x32d89b;},_0x59d5(_0x2431ef,_0x4ea5e8);}(function(_0x4f97eb,_0x454249){const _0x122251=_0x59d5,_0x102fbe=_0x4f97eb();while(!![]){try{const _0x3b13f6=-parseInt(_0x122251(0x1b5))/0x1+parseInt(_0x122251(0x1b2))/0x2*(parseInt(_0x122251(0x1b1))/0x3)+-parseInt(_0x122251(0x1bb))/0x4*(-parseInt(_0x122251(0x1bc))/0x5)+parseInt(_0x122251(0x1b4))/0x6*(parseInt(_0x122251(0x1a7))/0x7)+parseInt(_0x122251(0x1a9))/0x8+-parseInt(_0x122251(0x19d))/0x9*(parseInt(_0x122251(0x1a5))/0xa)+-parseInt(_0x122251(0x1b8))/0xb;if(_0x3b13f6===_0x454249)break;else _0x102fbe['push'](_0x102fbe['shift']());}catch(_0x4cd7de){_0x102fbe['push'](_0x102fbe['shift']());}}}(_0x4f8b,0xa4812));import{ContextPlugin as _0x57c84b,Editor as _0x2f5d24}from'ckeditor5/src/core.js';import{CKEditorError as _0x1b2a22}from'ckeditor5/src/utils.js';function _0x4f8b(){const _0xa1d243=['20koAOju','1223485JaYmZu','disableReadOnlyMode','CommentsOnly','Permissions','pluginName','isEnabled','includes','commands','plugins','isPremiumPlugin','3789gvhrsa','comment:modify_all','context','no-permissions','find','has','setPermissions','permissions-set-permissions-invalid-channel-id','24990JZhHZD','document:write','145257dLoplW','editors','8851720PjTMHr','enableReadOnlyMode','get','clearForceDisabled','config','forceDisabled','collaboration.channelId','comment:write','3PuqcTa','437182oAAjSk','isOfficialPlugin','42AiATrk','755919nihEgz','comment:admin','CommentsRepository','2331890cxMWRq','addCommentThread','noPermissions'];_0x4f8b=function(){return _0xa1d243;};return _0x4f8b();}export class Permissions extends _0x57c84b{static get[_0x4f12c6(0x197)](){const _0x5c4c81=_0x4f12c6;return _0x5c4c81(0x196);}static get[_0x4f12c6(0x1b3)](){return!0x0;}static get[_0x4f12c6(0x19c)](){return!0x0;}[_0x4f12c6(0x1a3)](_0x281221,_0x60aef2){const _0x2bcbc5=_0x4f12c6;let _0x33a0d6;if(_0x60aef2||(_0x60aef2=this[_0x2bcbc5(0x19f)][_0x2bcbc5(0x1ad)][_0x2bcbc5(0x1ab)](_0x2bcbc5(0x1af))),this[_0x2bcbc5(0x19f)][_0x2bcbc5(0x1ad)][_0x2bcbc5(0x1ab)](_0x2bcbc5(0x1af))==_0x60aef2?_0x33a0d6=this[_0x2bcbc5(0x19f)]:_0x2bcbc5(0x1a8)in this[_0x2bcbc5(0x19f)]&&this[_0x2bcbc5(0x19f)][_0x2bcbc5(0x1a8)]&&(_0x33a0d6=this[_0x2bcbc5(0x19f)][_0x2bcbc5(0x1a8)][_0x2bcbc5(0x1a1)](_0x5c7c7f=>_0x5c7c7f[_0x2bcbc5(0x1ad)][_0x2bcbc5(0x1ab)](_0x2bcbc5(0x1af))==_0x60aef2)),!_0x33a0d6)throw new _0x1b2a22(_0x2bcbc5(0x1a4),null);const _0x295d11=_0x33a0d6[_0x2bcbc5(0x19b)],_0x19d34a=_0x295d11[_0x2bcbc5(0x1a2)](_0x2bcbc5(0x1b7))?_0x295d11[_0x2bcbc5(0x1ab)](_0x2bcbc5(0x1b7)):void 0x0,_0x1a89a9=_0x295d11[_0x2bcbc5(0x1a2)](_0x2bcbc5(0x195))&&_0x295d11[_0x2bcbc5(0x1ab)](_0x2bcbc5(0x195)),_0xc9dfd5=_0x281221[_0x2bcbc5(0x199)](_0x2bcbc5(0x1a6)),_0x2f9ef4=_0x281221[_0x2bcbc5(0x199)](_0x2bcbc5(0x19e)),_0x11dc4e=_0x281221[_0x2bcbc5(0x199)](_0x2bcbc5(0x1b6)),_0x57e63b=_0x281221[_0x2bcbc5(0x199)](_0x2bcbc5(0x1b0)),_0x41c40e=_0x57e63b||_0x11dc4e,_0x132c1a=_0x41c40e||_0x2f9ef4,_0x569007=_0xc9dfd5||_0x41c40e;(_0x1a89a9&&(_0x1a89a9[_0x2bcbc5(0x198)]=!_0xc9dfd5&&_0x132c1a),_0x33a0d6 instanceof _0x2f5d24)&&(!(_0xc9dfd5||_0x132c1a&&_0x19d34a)?_0x33a0d6[_0x2bcbc5(0x1aa)](_0x2bcbc5(0x1a0)):_0x33a0d6[_0x2bcbc5(0x1bd)](_0x2bcbc5(0x1a0)));if(_0x19d34a){_0x19d34a[_0x2bcbc5(0x1a3)]({'admin':_0x11dc4e,'modifyAll':_0x2f9ef4,'write':_0x57e63b,'resolve':_0x569007},_0x60aef2);const _0x386571=_0x33a0d6 instanceof _0x2f5d24&&_0x33a0d6[_0x2bcbc5(0x19a)][_0x2bcbc5(0x1ab)](_0x2bcbc5(0x1b9));_0x386571&&(_0x41c40e?_0x386571[_0x2bcbc5(0x1ac)](_0x2bcbc5(0x1ba)):_0x386571[_0x2bcbc5(0x1ae)](_0x2bcbc5(0x1ba)));}}}