UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

23 lines 4.46 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 _0x50b277=_0x5057;(function(_0x47ec03,_0x369aef){const _0x423254=_0x5057,_0x384bc1=_0x47ec03();while(!![]){try{const _0x20d0fa=parseInt(_0x423254(0x1fb))/0x1*(parseInt(_0x423254(0x1ff))/0x2)+-parseInt(_0x423254(0x1fc))/0x3*(-parseInt(_0x423254(0x1ed))/0x4)+-parseInt(_0x423254(0x204))/0x5*(-parseInt(_0x423254(0x1f3))/0x6)+-parseInt(_0x423254(0x1f6))/0x7+-parseInt(_0x423254(0x201))/0x8*(-parseInt(_0x423254(0x1e9))/0x9)+-parseInt(_0x423254(0x1ec))/0xa+-parseInt(_0x423254(0x1fd))/0xb;if(_0x20d0fa===_0x369aef)break;else _0x384bc1['push'](_0x384bc1['shift']());}catch(_0x2afe85){_0x384bc1['push'](_0x384bc1['shift']());}}}(_0x424c,0xd314f));import{Plugin as _0x55c1f4}from'ckeditor5/src/core.js';function _0x5057(_0x589eb1,_0x5579e3){const _0x424c6d=_0x424c();return _0x5057=function(_0x50573b,_0x4f3a0a){_0x50573b=_0x50573b-0x1e9;let _0x86bf1=_0x424c6d[_0x50573b];return _0x86bf1;},_0x5057(_0x589eb1,_0x5579e3);}import{priorities as _0x12bd98}from'ckeditor5/src/utils.js';import{Users as _0x4db518}from'ckeditor5-collaboration/src/collaboration-core.js';import{CommentsRepository as _0x9011d1}from'../commentsrepository.js';export class CommentsImportWord extends _0x55c1f4{constructor(_0x47a4a6){const _0x4fc98a=_0x5057;super(_0x47a4a6),this[_0x4fc98a(0x1ee)][_0x4fc98a(0x1f2)][_0x4fc98a(0x207)](_0x4fc98a(0x205),_0x4fc98a(0x200));}[_0x50b277(0x1f8)](){const _0x125271=_0x50b277,_0xabccec=this[_0x125271(0x1ee)],_0x24ae42=_0xabccec[_0x125271(0x1ea)][_0x125271(0x1f4)](_0x125271(0x203)),_0x2ea385=_0xabccec[_0x125271(0x1f9)][_0x125271(0x1f4)](_0x4db518);_0x24ae42&&(_0x24ae42['on'](_0x125271(0x1ef),(_0x4952d1,[,_0x524142])=>{const _0x326aac=_0x125271;_0x524142[_0x326aac(0x1fe)]={'comments':!0x0,'user_id':_0x2ea385['me']['id']};},{'priority':_0x12bd98[_0x125271(0x202)]+0xa}),this[_0x125271(0x1eb)](_0x24ae42,_0x125271(0x1f5),this[_0x125271(0x206)]));}[_0x50b277(0x206)](_0x5b4fb7,_0x5a9cd4){const _0x380a26=_0x50b277,{comment_threads:_0x18e467}=_0x5a9cd4;_0x18e467&&_0x18e467[_0x380a26(0x1fa)](({thread_id:_0x48543d,comments:_0x2c42ca,is_resolved:_0x3b912a})=>{const _0x5beb07=_0x380a26,_0x45c9ba=new Date(),_0x196223=_0x2c42ca[_0x5beb07(0x1f7)](({author:_0x5f3e50,content:_0x5d9682,created_at:_0xd0f8eb})=>({'content':_0x5d9682,'authorId':this[_0x5beb07(0x1ee)][_0x5beb07(0x1f9)][_0x5beb07(0x1f4)](_0x4db518)['me']['id'],'createdAt':_0x45c9ba,'attributes':{'@external':{'authorName':_0x5f3e50,'createdAt':_0xd0f8eb?new Date(_0xd0f8eb):new Date(),'source':_0x5beb07(0x203)}}})),_0x325250=this[_0x5beb07(0x1ee)][_0x5beb07(0x1f2)][_0x5beb07(0x1f4)](_0x5beb07(0x1f1));this[_0x5beb07(0x1ee)][_0x5beb07(0x1f9)][_0x5beb07(0x1f4)](_0x9011d1)[_0x5beb07(0x1f0)]({'channelId':_0x325250,'threadId':_0x48543d,'comments':_0x196223,'resolvedAt':_0x3b912a?_0x45c9ba:null});});}}function _0x424c(){const _0x58ae7e=['107512BixQwc','high','importWord','2942540AfOPgL','importWord.formatting.comments','_handleImportedData','define','675SorGTP','commands','listenTo','8090790IgNhOf','4iqipLz','editor','execute','addCommentThread','collaboration.channelId','config','6cIKgBN','get','dataInsert','5836754VAPfzG','map','afterInit','plugins','forEach','79393hgsmEF','2116767RohQZa','16079613QXZuSm','collaboration_features','42VWYyvO','basic'];_0x424c=function(){return _0x58ae7e;};return _0x424c();}