UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

23 lines 4.59 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 _0x34cc54=_0x1690;(function(_0x32da79,_0x373097){const _0x21f175=_0x1690,_0x2b4c8e=_0x32da79();while(!![]){try{const _0x118518=parseInt(_0x21f175(0xae))/0x1+parseInt(_0x21f175(0xc1))/0x2+-parseInt(_0x21f175(0xd0))/0x3+-parseInt(_0x21f175(0xc7))/0x4+-parseInt(_0x21f175(0xcd))/0x5*(-parseInt(_0x21f175(0xb7))/0x6)+-parseInt(_0x21f175(0xb1))/0x7*(parseInt(_0x21f175(0xc8))/0x8)+parseInt(_0x21f175(0xbe))/0x9*(parseInt(_0x21f175(0xc2))/0xa);if(_0x118518===_0x373097)break;else _0x2b4c8e['push'](_0x2b4c8e['shift']());}catch(_0x2d5d32){_0x2b4c8e['push'](_0x2b4c8e['shift']());}}}(_0x1bf7,0x91c99));import{Plugin as _0x5b8c4b}from'ckeditor5/src/core.js';function _0x1bf7(){const _0x13bed6=['listenTo','1190346iZSyzR','580gNxnqL','plugins','default','cut','split','1607956gKBqkd','80yGRrkT','get','hasCommentThread','keys','requires','2266345ldqgct','editor','_registerMarkerInClipboardPipeline','3125772TZTWIp','dragstart','afterInit','highest','delete','has','never','comments.copyMarkers','181112yhgEJf','always','ClipboardMarkersUtils','237167AVoJUM','ClipboardPipeline','_removeMarkersWithoutThreads','_mapCommentsCopyConfigToRegisterConfiguration','all','_registerMarkerToCopy','6wRaaig','comment','contentInsertion','config','content','define','CommentsRepository','178497eDapde','markers'];_0x1bf7=function(){return _0x13bed6;};return _0x1bf7();}function _0x1690(_0xfa3e2b,_0x53bd20){const _0x1bf7d0=_0x1bf7();return _0x1690=function(_0x169085,_0x331c20){_0x169085=_0x169085-0xad;let _0x3bc7d6=_0x1bf7d0[_0x169085];return _0x3bc7d6;},_0x1690(_0xfa3e2b,_0x53bd20);}import{ClipboardPipeline as _0x9d1e0a,ClipboardMarkersUtils as _0x27e3cd}from'ckeditor5/src/clipboard.js';export class CommentsClipboard extends _0x5b8c4b{constructor(_0x1d3f79){const _0x2e707e=_0x1690;super(_0x1d3f79),this[_0x2e707e(0xce)][_0x2e707e(0xba)][_0x2e707e(0xbc)](_0x2e707e(0xad),_0x2e707e(0xc4));}static get[_0x34cc54(0xcc)](){return[_0x27e3cd,_0x9d1e0a];}[_0x34cc54(0xd2)](){const _0x14a308=_0x34cc54,_0x27d2e1=this[_0x14a308(0xce)][_0x14a308(0xc3)][_0x14a308(0xc9)](_0x14a308(0xb2));this[_0x14a308(0xcf)](),this[_0x14a308(0xc0)](_0x27d2e1,_0x14a308(0xb9),(_0x1034c2,_0x4ec5a9)=>this[_0x14a308(0xb3)](_0x4ec5a9[_0x14a308(0xbb)][_0x14a308(0xbf)]),{'priority':_0x14a308(0xd3)});}[_0x34cc54(0xb3)](_0x4ad0a9){const _0x3af57c=_0x34cc54;if(!this[_0x3af57c(0xce)][_0x3af57c(0xc3)][_0x3af57c(0xd5)](_0x3af57c(0xbd)))return _0x4ad0a9;const _0x45313e=this[_0x3af57c(0xce)][_0x3af57c(0xc3)][_0x3af57c(0xc9)](_0x3af57c(0xbd));for(const _0x2fdf82 of _0x4ad0a9[_0x3af57c(0xcb)]()){const [_0x3f9b93,_0x450080]=_0x2fdf82[_0x3af57c(0xc6)](':');_0x3af57c(0xb8)!=_0x3f9b93||_0x45313e[_0x3af57c(0xca)](_0x450080)||_0x4ad0a9[_0x3af57c(0xd4)](_0x2fdf82);}return _0x4ad0a9;}[_0x34cc54(0xcf)](){const _0x1957af=_0x34cc54,_0x139076=this[_0x1957af(0xce)][_0x1957af(0xc3)][_0x1957af(0xc9)](_0x1957af(0xb0)),_0x8d3d9f=this[_0x1957af(0xb4)](this[_0x1957af(0xce)][_0x1957af(0xba)][_0x1957af(0xc9)](_0x1957af(0xad)));_0x8d3d9f&&_0x139076[_0x1957af(0xb6)](_0x1957af(0xb8),_0x8d3d9f);}[_0x34cc54(0xb4)](_0x5f2dfe){const _0x5245b8=_0x34cc54;switch(_0x5f2dfe){case _0x5245b8(0xaf):return{'allowedActions':_0x5245b8(0xb5),'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x0};case _0x5245b8(0xc4):return{'allowedActions':[_0x5245b8(0xc5),_0x5245b8(0xd1)],'copyPartiallySelected':!0x1,'duplicateOnPaste':!0x1};case _0x5245b8(0xd6):return null;default:return null;}}}