UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

23 lines 4.69 kB
/* * Copyright (c) 2003-2026, 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 _0x4de1ec=_0x35b2;(function(_0x233cdc,_0x1457a6){const _0x5550df=_0x35b2,_0x50bdeb=_0x233cdc();while(!![]){try{const _0x3b2532=-parseInt(_0x5550df(0x11a))/0x1+-parseInt(_0x5550df(0x107))/0x2+-parseInt(_0x5550df(0x121))/0x3+parseInt(_0x5550df(0x112))/0x4*(-parseInt(_0x5550df(0x120))/0x5)+-parseInt(_0x5550df(0x106))/0x6*(-parseInt(_0x5550df(0xff))/0x7)+parseInt(_0x5550df(0x103))/0x8*(-parseInt(_0x5550df(0x102))/0x9)+parseInt(_0x5550df(0x111))/0xa*(parseInt(_0x5550df(0xfe))/0xb);if(_0x3b2532===_0x1457a6)break;else _0x50bdeb['push'](_0x50bdeb['shift']());}catch(_0x923a16){_0x50bdeb['push'](_0x50bdeb['shift']());}}}(_0x2a1b,0x1a0dd));import{Plugin as _0x5d6615}from'ckeditor5/src/core.js';import{ClipboardPipeline as _0x421522,ClipboardMarkersUtils as _0x4eed3c}from'ckeditor5/src/clipboard.js';function _0x35b2(_0x2f0ccc,_0x4cd388){const _0x2a1b88=_0x2a1b();return _0x35b2=function(_0x35b205,_0x2e19f8){_0x35b205=_0x35b205-0xfd;let _0x3115e6=_0x2a1b88[_0x35b205];return _0x3115e6;},_0x35b2(_0x2f0ccc,_0x4cd388);}function _0x2a1b(){const _0x51203d=['hasCommentThread','keys','_registerMarkerInClipboardPipeline','afterInit','1508430gmkyfa','208TLXaOY','dragstart','comment','always','contentInsertion','config','editor','default','93076rEHjxT','_removeMarkersWithoutThreads','_registerMarkerToCopy','highest','CommentsRepository','get','295kiTKCh','25494xmoBwj','ClipboardPipeline','delete','comments.copyMarkers','requires','listenTo','plugins','cut','33yfothA','120722xqhxka','content','_mapCommentsCopyConfigToRegisterConfiguration','18WhjRUt','697552wcWEVB','has','ClipboardMarkersUtils','12rSapJU','202548sdACkx','never','all','define','split','markers'];_0x2a1b=function(){return _0x51203d;};return _0x2a1b();}export class CommentsClipboard extends _0x5d6615{constructor(_0x354d9){const _0x42183a=_0x35b2;super(_0x354d9),this[_0x42183a(0x118)][_0x42183a(0x117)][_0x42183a(0x10a)](_0x42183a(0x124),_0x42183a(0x119));}static get[_0x4de1ec(0x125)](){return[_0x4eed3c,_0x421522];}[_0x4de1ec(0x110)](){const _0x31667b=_0x4de1ec,_0x5a20c0=this[_0x31667b(0x118)][_0x31667b(0x127)][_0x31667b(0x11f)](_0x31667b(0x122));this[_0x31667b(0x10f)](),this[_0x31667b(0x126)](_0x5a20c0,_0x31667b(0x116),(_0x75cc21,_0x21cb79)=>this[_0x31667b(0x11b)](_0x21cb79[_0x31667b(0x100)][_0x31667b(0x10c)]),{'priority':_0x31667b(0x11d)});}[_0x4de1ec(0x11b)](_0x18b819){const _0xd45d50=_0x4de1ec;if(!this[_0xd45d50(0x118)][_0xd45d50(0x127)][_0xd45d50(0x104)](_0xd45d50(0x11e)))return _0x18b819;const _0x390658=this[_0xd45d50(0x118)][_0xd45d50(0x127)][_0xd45d50(0x11f)](_0xd45d50(0x11e));for(const _0x4bef83 of _0x18b819[_0xd45d50(0x10e)]()){const [_0x19b28e,_0x304545]=_0x4bef83[_0xd45d50(0x10b)](':');_0xd45d50(0x114)!=_0x19b28e||_0x390658[_0xd45d50(0x10d)](_0x304545)||_0x18b819[_0xd45d50(0x123)](_0x4bef83);}return _0x18b819;}[_0x4de1ec(0x10f)](){const _0x5b953b=_0x4de1ec,_0x7018a6=this[_0x5b953b(0x118)][_0x5b953b(0x127)][_0x5b953b(0x11f)](_0x5b953b(0x105)),_0x6a1d86=this[_0x5b953b(0x101)](this[_0x5b953b(0x118)][_0x5b953b(0x117)][_0x5b953b(0x11f)](_0x5b953b(0x124)));_0x6a1d86&&_0x7018a6[_0x5b953b(0x11c)](_0x5b953b(0x114),_0x6a1d86);}[_0x4de1ec(0x101)](_0x3f7a87){const _0x9a197e=_0x4de1ec;switch(_0x3f7a87){case _0x9a197e(0x115):return{'allowedActions':_0x9a197e(0x109),'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case _0x9a197e(0x119):return{'allowedActions':[_0x9a197e(0xfd),_0x9a197e(0x113)],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};case _0x9a197e(0x108):return null;default:return null;}}}