@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.84 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 _0x297379=_0x9576;(function(_0x4dd646,_0x53e09d){const _0x556b89=_0x9576,_0x1b6480=_0x4dd646();while(!![]){try{const _0x296a9a=parseInt(_0x556b89(0x160))/0x1+parseInt(_0x556b89(0x158))/0x2*(-parseInt(_0x556b89(0x159))/0x3)+-parseInt(_0x556b89(0x164))/0x4+parseInt(_0x556b89(0x15f))/0x5*(parseInt(_0x556b89(0x157))/0x6)+parseInt(_0x556b89(0x147))/0x7+-parseInt(_0x556b89(0x150))/0x8+parseInt(_0x556b89(0x163))/0x9*(parseInt(_0x556b89(0x15a))/0xa);if(_0x296a9a===_0x53e09d)break;else _0x1b6480['push'](_0x1b6480['shift']());}catch(_0x3fc655){_0x1b6480['push'](_0x1b6480['shift']());}}}(_0x4e25,0x5e15f));function _0x9576(_0x21056c,_0x34dd71){const _0x4e2523=_0x4e25();return _0x9576=function(_0x957605,_0x108774){_0x957605=_0x957605-0x13e;let _0x40735f=_0x4e2523[_0x957605];return _0x40735f;},_0x9576(_0x21056c,_0x34dd71);}import{ContextPlugin as _0x266663,Editor as _0x916dc9}from'ckeditor5/src/core.js';import{CKEditorError as _0x40d4bd}from'ckeditor5/src/utils.js';export class Permissions extends _0x266663{static get[_0x297379(0x149)](){const _0x32b5e9=_0x297379;return _0x32b5e9(0x14d);}static get[_0x297379(0x161)](){return!0x0;}static get[_0x297379(0x14c)](){return!0x0;}[_0x297379(0x15c)](_0x1422e3,_0x1889a1){const _0x108ef9=_0x297379;let _0x2c211a;if(_0x1889a1||(_0x1889a1=this[_0x108ef9(0x140)][_0x108ef9(0x143)][_0x108ef9(0x141)](_0x108ef9(0x165))),this[_0x108ef9(0x140)][_0x108ef9(0x143)][_0x108ef9(0x141)](_0x108ef9(0x165))==_0x1889a1?_0x2c211a=this[_0x108ef9(0x140)]:_0x108ef9(0x142)in this[_0x108ef9(0x140)]&&this[_0x108ef9(0x140)][_0x108ef9(0x142)]&&(_0x2c211a=this[_0x108ef9(0x140)][_0x108ef9(0x142)][_0x108ef9(0x146)](_0x342462=>_0x342462[_0x108ef9(0x143)][_0x108ef9(0x141)](_0x108ef9(0x165))==_0x1889a1)),!_0x2c211a)throw new _0x40d4bd(_0x108ef9(0x15b),null);const _0x151567=_0x2c211a[_0x108ef9(0x162)],_0x2cb3d6=_0x151567[_0x108ef9(0x152)](_0x108ef9(0x13e))?_0x151567[_0x108ef9(0x141)](_0x108ef9(0x13e)):void 0x0,_0xa5f61a=_0x151567[_0x108ef9(0x152)](_0x108ef9(0x14b))&&_0x151567[_0x108ef9(0x141)](_0x108ef9(0x14b)),_0x41a5b5=_0x1422e3[_0x108ef9(0x14a)](_0x108ef9(0x145)),_0x57903a=_0x1422e3[_0x108ef9(0x14a)](_0x108ef9(0x153)),_0x20b10d=_0x1422e3[_0x108ef9(0x14a)](_0x108ef9(0x13f)),_0x4df2e4=_0x1422e3[_0x108ef9(0x14a)](_0x108ef9(0x156)),_0x39b3e8=_0x4df2e4||_0x20b10d,_0x24d22c=_0x39b3e8||_0x57903a,_0x12ba42=_0x41a5b5||_0x39b3e8;(_0xa5f61a&&(_0xa5f61a[_0x108ef9(0x14e)]=!_0x41a5b5&&_0x24d22c),_0x2c211a instanceof _0x916dc9)&&(!(_0x41a5b5||_0x24d22c&&_0x2cb3d6)?_0x2c211a[_0x108ef9(0x15d)](_0x108ef9(0x154)):_0x2c211a[_0x108ef9(0x155)](_0x108ef9(0x154)));if(_0x2cb3d6){_0x2cb3d6[_0x108ef9(0x15c)]({'admin':_0x20b10d,'modifyAll':_0x57903a,'write':_0x4df2e4,'resolve':_0x12ba42},_0x1889a1);const _0x52cda4=_0x2c211a instanceof _0x916dc9&&_0x2c211a[_0x108ef9(0x14f)][_0x108ef9(0x141)](_0x108ef9(0x144));_0x52cda4&&(_0x39b3e8?_0x52cda4[_0x108ef9(0x148)](_0x108ef9(0x15e)):_0x52cda4[_0x108ef9(0x151)](_0x108ef9(0x15e)));}}}function _0x4e25(){const _0x5235cd=['forceDisabled','has','comment:modify_all','no-permissions','disableReadOnlyMode','comment:write','6YXxgtR','26GAqwWV','132582MMsFEf','3828930igtKFL','permissions-set-permissions-invalid-channel-id','setPermissions','enableReadOnlyMode','noPermissions','2009635lktdFX','141849vVAUde','isOfficialPlugin','plugins','9GbaFbK','1422932WnUIde','collaboration.channelId','CommentsRepository','comment:admin','context','get','editors','config','addCommentThread','document:write','find','4930527GlGpYr','clearForceDisabled','pluginName','includes','CommentsOnly','isPremiumPlugin','Permissions','isEnabled','commands','2523200sHjVnl'];_0x4e25=function(){return _0x5235cd;};return _0x4e25();}