@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
24 lines • 8.32 kB
JavaScript
/*
* 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 _0x2f7159=_0x56ab;function _0x1b71(){const _0x331345=['Write\x20a\x20comment...','ck-thread','locale','length','listitem','isVisible','Delete\x20comment\x20thread?','_bindFirstCommentView','stop','then','_cancelAllConfirms','8sFlfsE','extendTemplate','commentsListView','15qCiNbl','element','isReadOnly','isResolved','ariaLabel','createCollection','removeConfirm','3860905pgAWxJ','ck-thread--','resolveButton','ck-rounded-corners','actionBar','remove','isResolvable','actionIndicator','getTemplate','change:archivedAt','bind','cancelConfirm','commentThreadInputView','removeButton','change:isActive','ck-thread--unlinked','querySelector','high','resolveCommentThread','_updateArchivedThreadHeader','showConfirm','ck-thread__container','label','_createResolveButton','Resolve','_model','get','1525380cORBxC','ck-comment--resolve','add','has','placeholder','_boundFirstCommentView','isEnabled','5088902rdIGmg','commentThreadChildren','set','isUnlinked','ariaDescriptionView','466919sabhaB','commentViews','5593635kuDhgB','execute','focusables','156316JxYwlH','setTemplate','listenTo','1849634fhHrjs','fire','containerElement','archivedAt','isActive','ck-reset_all-excluded','unbind','commentThreadHeaderView','focus','change:isReadOnly','render','icon','tooltip','isSystemComment','ck-thread--active','removeCommentThread','bindTemplate','div','.ck-thread__container'];_0x1b71=function(){return _0x331345;};return _0x1b71();}(function(_0x2689ff,_0x2aa179){const _0x4be392=_0x56ab,_0x392a24=_0x2689ff();while(!![]){try{const _0x51bf4e=parseInt(_0x4be392(0x131))/0x1+parseInt(_0x4be392(0x139))/0x2+-parseInt(_0x4be392(0x15a))/0x3*(-parseInt(_0x4be392(0x136))/0x4)+-parseInt(_0x4be392(0x161))/0x5+-parseInt(_0x4be392(0x125))/0x6+parseInt(_0x4be392(0x12c))/0x7+parseInt(_0x4be392(0x157))/0x8*(-parseInt(_0x4be392(0x133))/0x9);if(_0x51bf4e===_0x2aa179)break;else _0x392a24['push'](_0x392a24['shift']());}catch(_0xe46417){_0x392a24['push'](_0x392a24['shift']());}}}(_0x1b71,0xa2a4f));function _0x56ab(_0x2f98d6,_0x4527d1){const _0x1b711e=_0x1b71();return _0x56ab=function(_0x56ab06,_0x29986c){_0x56ab06=_0x56ab06-0x121;let _0xa010bc=_0x1b711e[_0x56ab06];return _0xa010bc;},_0x56ab(_0x2f98d6,_0x4527d1);}import{ConfirmMixin as _0xb262dd,LateFocusButtonView as _0x1e1d51}from'ckeditor5-collaboration/src/collaboration-core.js';import{IconCheck as _0x37452e}from'ckeditor5/src/icons.js';import{BaseCommentThreadView as _0x3da9b5}from'./basecommentthreadview.js';import{getTranslation as _0x306b99}from'../../../utils/common-translations.js';export class CommentThreadView extends/* #__PURE__ -- */
_0xb262dd(_0x3da9b5){[_0x2f7159(0x12d)];[_0x2f7159(0x13b)];[_0x2f7159(0x163)];[_0x2f7159(0x12a)];constructor(_0x1ed846,_0x2f7cce,_0x2e3f67,_0x526da4){const _0x24a764=_0x2f7159;super(_0x1ed846,_0x2f7cce,_0x2e3f67,_0x526da4),this[_0x24a764(0x12d)]=this[_0x24a764(0x15f)]([this[_0x24a764(0x159)],this[_0x24a764(0x16d)],this[_0x24a764(0x130)]]),this[_0x24a764(0x12e)](_0x24a764(0x168),null),this[_0x24a764(0x13b)]=null,this[_0x24a764(0x12a)]=null,this[_0x24a764(0x14e)]=_0x1ed846,this[_0x24a764(0x163)]=this[_0x24a764(0x121)](),this[_0x24a764(0x137)](this[_0x24a764(0x169)]()),this['on'](_0x24a764(0x16f),(_0xe50c67,_0x3a9d22,_0x23dfcd)=>{const _0x3bd1d6=_0x24a764;_0x23dfcd||this[_0x3bd1d6(0x156)]();}),this[_0x24a764(0x138)](this[_0x24a764(0x123)],_0x24a764(0x142),(_0x182482,_0x22f332,_0x3df5ce)=>{const _0x85f298=_0x24a764;_0x3df5ce&&this[_0x85f298(0x156)]();}),this[_0x24a764(0x14f)]>0x0&&this[_0x24a764(0x153)](),this[_0x24a764(0x138)](this[_0x24a764(0x159)][_0x24a764(0x132)],_0x24a764(0x127),()=>{const _0x5290f3=_0x24a764;this[_0x5290f3(0x153)]();});}[_0x2f7159(0x169)](){const _0x4f8092=_0x2f7159,_0x4a4af8=this[_0x4f8092(0x149)];return{'tag':_0x4f8092(0x14a),'attributes':{'class':['ck',_0x4f8092(0x14d),_0x4f8092(0x13e),_0x4f8092(0x164),_0x4a4af8['if'](_0x4f8092(0x13d),_0x4f8092(0x147)),_0x4a4af8['if'](_0x4f8092(0x12f),_0x4f8092(0x170)),_0x4a4af8['to'](_0x4f8092(0x168),_0x1bf8cb=>_0x1bf8cb?_0x4f8092(0x162)+_0x1bf8cb:'')],'data-thread-id':this[_0x4f8092(0x123)]['id'],'tabindex':0x0,'role':_0x4f8092(0x150),'aria-label':_0x4a4af8['to'](_0x4f8092(0x15e)),'aria-describedby':this[_0x4f8092(0x130)]['id']},'children':[{'tag':_0x4f8092(0x14a),'attributes':{'class':_0x4f8092(0x176)},'children':this[_0x4f8092(0x12d)]}]};}[_0x2f7159(0x143)](){const _0x9e592a=_0x2f7159;super[_0x9e592a(0x143)](),this[_0x9e592a(0x13b)]=this[_0x9e592a(0x15b)][_0x9e592a(0x171)](_0x9e592a(0x14b)),this[_0x9e592a(0x123)]['on'](_0x9e592a(0x16a),()=>{const _0x5b7c81=_0x9e592a;this[_0x5b7c81(0x174)]();}),this[_0x9e592a(0x174)]();}[_0x2f7159(0x156)](){const _0xb09c95=_0x2f7159;this[_0xb09c95(0x16c)]();for(const _0xf5a089 of this[_0xb09c95(0x159)][_0xb09c95(0x132)])_0xf5a089[_0xb09c95(0x16c)]();}[_0x2f7159(0x153)](){const _0x5f01d2=_0x2f7159,{locale:_0xd1c226}=this,_0x123aa7=this[_0x5f01d2(0x159)][_0x5f01d2(0x132)][_0x5f01d2(0x124)](0x0);_0x123aa7===this[_0x5f01d2(0x12a)]||_0x123aa7[_0x5f01d2(0x146)]||(this[_0x5f01d2(0x12a)]=_0x123aa7,this[_0x5f01d2(0x13f)](_0x5f01d2(0x168)),this[_0x5f01d2(0x16b)](_0x5f01d2(0x168))['to'](_0x123aa7,_0x5f01d2(0x168),_0x3cf4b3=>_0x5f01d2(0x166)===_0x3cf4b3?_0x5f01d2(0x166):null),_0x123aa7[_0x5f01d2(0x129)]=_0x306b99(_0xd1c226,_0x5f01d2(0x14c)),_0x123aa7[_0x5f01d2(0x16e)]['on'](_0x5f01d2(0x134),_0xeb3be0=>{const _0xb853b3=_0x5f01d2;_0xeb3be0[_0xb853b3(0x154)](),this[_0xb853b3(0x175)](_0x306b99(_0xd1c226,_0xb853b3(0x152)),this[_0xb853b3(0x13b)])[_0xb853b3(0x155)](()=>{const _0x112b9c=_0xb853b3;this[_0x112b9c(0x13a)](_0x112b9c(0x148));});},{'priority':_0x5f01d2(0x172)}),this['on'](_0x5f01d2(0x160),()=>{const _0x43b19b=_0x5f01d2;_0x123aa7[_0x43b19b(0x141)]();}),_0x123aa7[_0x5f01d2(0x165)][_0x5f01d2(0x127)](this[_0x5f01d2(0x163)],0x0),_0x123aa7[_0x5f01d2(0x135)][_0x5f01d2(0x127)](this[_0x5f01d2(0x163)],0x0));}[_0x2f7159(0x121)](){const _0x476a12=_0x2f7159,_0x46e36c=new _0x1e1d51(this[_0x476a12(0x14e)]);return _0x46e36c[_0x476a12(0x177)]=_0x306b99(this[_0x476a12(0x14e)],_0x476a12(0x122)),_0x46e36c[_0x476a12(0x145)]=_0x306b99(this[_0x476a12(0x14e)],_0x476a12(0x122)),_0x46e36c[_0x476a12(0x144)]=_0x37452e,_0x46e36c[_0x476a12(0x158)]({'attributes':{'class':_0x476a12(0x126)}}),_0x46e36c[_0x476a12(0x16b)](_0x476a12(0x12b))['to'](this[_0x476a12(0x123)],_0x476a12(0x15c),_0x280eef=>!_0x280eef),_0x46e36c[_0x476a12(0x16b)](_0x476a12(0x151))['to'](this[_0x476a12(0x123)],_0x476a12(0x167),this[_0x476a12(0x123)],_0x476a12(0x15d),(_0x14902f,_0x245c30)=>_0x14902f&&!_0x245c30),_0x46e36c['on'](_0x476a12(0x134),()=>{const _0x2413e8=_0x476a12;this[_0x2413e8(0x13a)](_0x2413e8(0x173),this[_0x2413e8(0x123)]['id']);}),_0x46e36c;}[_0x2f7159(0x174)](){const _0xec8b01=_0x2f7159;this[_0xec8b01(0x123)][_0xec8b01(0x13c)]?this[_0xec8b01(0x12d)][_0xec8b01(0x128)](this[_0xec8b01(0x140)])||(this[_0xec8b01(0x12d)][_0xec8b01(0x127)](this[_0xec8b01(0x140)],0x0),this[_0xec8b01(0x135)][_0xec8b01(0x127)](this[_0xec8b01(0x140)],0x0)):this[_0xec8b01(0x12d)][_0xec8b01(0x128)](this[_0xec8b01(0x140)])&&(this[_0xec8b01(0x12d)][_0xec8b01(0x166)](this[_0xec8b01(0x140)]),this[_0xec8b01(0x135)][_0xec8b01(0x166)](this[_0xec8b01(0x140)]));}}