@ckeditor/ckeditor5-comments
Version:
Collaborative comments feature for CKEditor 5.
24 lines • 8.36 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. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
function _0x5500(){const _0x336c17=['Resolve','showConfirm','resolveButton','isConfirm','createCollection','commentsListView','isUnlinked','commentThreadInputView','change:isReadOnly','10mePYwu','commentViews','_cancelAllConfirms','locale','isActive','change:archivedAt','placeholder','actionIndicator','removeCommentThread','_model','resolveCommentThread','ck-thread--remove-confirmation','ariaLabel','get','listenTo','check','tooltip','querySelector','bind','commentThreadHeaderView','ck-rounded-corners','stop','has','ck-thread--unlinked','removeConfirm','containerElement','then','removeButton','isVisible','26oklShm','add','ck-reset_all-excluded','_bindFirstCommentView','isEnabled','extendTemplate','6131280SLlivx','focusables','isResolvable','render','Delete\x20comment\x20thread?','execute','element','ariaDescriptionView','4460736ZTmgft','remove','_boundFirstCommentView','fire','isReadOnly','commentThreadChildren','isResolved','div','_createResolveButton','ck-thread__container','archivedAt','icon','set','49948wRSZVM','isSystemComment','14017707DEvpaA','actionBar','change:isActive','.ck-thread__container','setTemplate','getTemplate','_updateArchivedThreadHeader','focus','ck-thread','listitem','1801722DXofXD','ck-thread--active','5WvuFMD','60013mxFzIg','length','high','bindTemplate','unbind','label','ck-thread--','Write\x20a\x20comment...','6379240zwyQEN','cancelConfirm','ck-comment--resolve'];_0x5500=function(){return _0x336c17;};return _0x5500();}const _0x35a01f=_0x2109;(function(_0x2a02e5,_0x5606eb){const _0x4a8c63=_0x2109,_0x151041=_0x2a02e5();while(!![]){try{const _0x284014=parseInt(_0x4a8c63(0x1fb))/0x1*(-parseInt(_0x4a8c63(0x1d1))/0x2)+-parseInt(_0x4a8c63(0x1f8))/0x3+parseInt(_0x4a8c63(0x1ec))/0x4*(-parseInt(_0x4a8c63(0x1fa))/0x5)+-parseInt(_0x4a8c63(0x1d7))/0x6+parseInt(_0x4a8c63(0x1df))/0x7+parseInt(_0x4a8c63(0x203))/0x8+parseInt(_0x4a8c63(0x1ee))/0x9*(parseInt(_0x4a8c63(0x20f))/0xa);if(_0x284014===_0x5606eb)break;else _0x151041['push'](_0x151041['shift']());}catch(_0xf039b4){_0x151041['push'](_0x151041['shift']());}}}(_0x5500,0x8ce2a));import{ConfirmMixin as _0x182d10,LateFocusButtonView as _0xb3a373}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x2109(_0x11ad26,_0x3a5af2){const _0x5500e1=_0x5500();return _0x2109=function(_0x2109b9,_0x7d679){_0x2109b9=_0x2109b9-0x1c5;let _0xb07267=_0x5500e1[_0x2109b9];return _0xb07267;},_0x2109(_0x11ad26,_0x3a5af2);}import{icons as _0x7b7125}from'ckeditor5/src/core.js';import _0x20da28 from'./basecommentthreadview.js';import{getTranslation as _0x37d683}from'../../../utils/common-translations.js';export default class vt extends/* #__PURE__ -- */
_0x182d10(_0x20da28){constructor(_0x336e15,_0x816763,_0x166a16,_0x12d788){const _0x479f0d=_0x2109;super(_0x336e15,_0x816763,_0x166a16,_0x12d788),this[_0x479f0d(0x1e4)]=this[_0x479f0d(0x20a)]([this[_0x479f0d(0x20b)],this[_0x479f0d(0x20d)],this[_0x479f0d(0x1de)]]),this[_0x479f0d(0x1eb)](_0x479f0d(0x216),null),this[_0x479f0d(0x1cd)]=null,this[_0x479f0d(0x1e1)]=null,this[_0x479f0d(0x212)]=_0x336e15,this[_0x479f0d(0x208)]=this[_0x479f0d(0x1e7)](),this[_0x479f0d(0x1f2)](this[_0x479f0d(0x1f3)]()),this['on'](_0x479f0d(0x1f0),(_0x485b32,_0x2562e1,_0x5b5ca2)=>{const _0xd7c1a1=_0x479f0d;_0x5b5ca2||this[_0xd7c1a1(0x211)]();}),this[_0x479f0d(0x21d)](this[_0x479f0d(0x218)],_0x479f0d(0x20e),(_0x3ec593,_0x3c0338,_0x4363a7)=>{const _0x274a13=_0x479f0d;_0x4363a7&&this[_0x274a13(0x211)]();}),this[_0x479f0d(0x1fc)]>0x0&&this[_0x479f0d(0x1d4)](),this[_0x479f0d(0x21d)](this[_0x479f0d(0x20b)][_0x479f0d(0x210)],_0x479f0d(0x1d2),()=>{const _0x21505c=_0x479f0d;this[_0x21505c(0x1d4)]();});}[_0x35a01f(0x1f3)](){const _0x402c93=_0x35a01f,_0x36fa60=this[_0x402c93(0x1fe)];return{'tag':_0x402c93(0x1e6),'attributes':{'class':['ck',_0x402c93(0x1f6),_0x402c93(0x1d3),_0x402c93(0x1c8),_0x36fa60['if'](_0x402c93(0x213),_0x402c93(0x1f9)),_0x36fa60['if'](_0x402c93(0x20c),_0x402c93(0x1cb)),_0x36fa60['if'](_0x402c93(0x209),_0x402c93(0x21a)),_0x36fa60['to'](_0x402c93(0x216),_0x15b96f=>_0x15b96f?_0x402c93(0x201)+_0x15b96f:'')],'data-thread-id':this[_0x402c93(0x218)]['id'],'tabindex':0x0,'role':_0x402c93(0x1f7),'aria-label':_0x36fa60['to'](_0x402c93(0x21b)),'aria-describedby':this[_0x402c93(0x1de)]['id']},'children':[{'tag':_0x402c93(0x1e6),'attributes':{'class':_0x402c93(0x1e8)},'children':this[_0x402c93(0x1e4)]}]};}[_0x35a01f(0x1da)](){const _0x1ad75e=_0x35a01f;super[_0x1ad75e(0x1da)](),this[_0x1ad75e(0x1cd)]=this[_0x1ad75e(0x1dd)][_0x1ad75e(0x1c5)](_0x1ad75e(0x1f1)),this[_0x1ad75e(0x218)]['on'](_0x1ad75e(0x214),()=>{const _0x28c0f5=_0x1ad75e;this[_0x28c0f5(0x1f4)]();}),this[_0x1ad75e(0x1f4)]();}[_0x35a01f(0x211)](){const _0x2f1058=_0x35a01f;this[_0x2f1058(0x204)]();for(const _0x4fd381 of this[_0x2f1058(0x20b)][_0x2f1058(0x210)])_0x4fd381[_0x2f1058(0x204)]();}[_0x35a01f(0x1d4)](){const _0x2f3447=_0x35a01f,{locale:_0x41744c}=this,_0x579717=this[_0x2f3447(0x20b)][_0x2f3447(0x210)][_0x2f3447(0x21c)](0x0);_0x579717===this[_0x2f3447(0x1e1)]||_0x579717[_0x2f3447(0x1ed)]||(this[_0x2f3447(0x1e1)]=_0x579717,this[_0x2f3447(0x1ff)](_0x2f3447(0x216)),this[_0x2f3447(0x1c6)](_0x2f3447(0x216))['to'](_0x579717,_0x2f3447(0x216),_0x40d043=>_0x2f3447(0x1e0)===_0x40d043?_0x2f3447(0x1e0):null),_0x579717[_0x2f3447(0x215)]=_0x37d683(_0x41744c,_0x2f3447(0x202)),_0x579717[_0x2f3447(0x1cf)]['on'](_0x2f3447(0x1dc),_0x357b8e=>{const _0x1676ff=_0x2f3447;_0x357b8e[_0x1676ff(0x1c9)](),this[_0x1676ff(0x207)](_0x37d683(_0x41744c,_0x1676ff(0x1db)),this[_0x1676ff(0x1cd)])[_0x1676ff(0x1ce)](()=>{const _0x3d0ec3=_0x1676ff;this[_0x3d0ec3(0x1e2)](_0x3d0ec3(0x217));});},{'priority':_0x2f3447(0x1fd)}),this['on'](_0x2f3447(0x1cc),()=>{const _0x95ea05=_0x2f3447;_0x579717[_0x95ea05(0x1f5)]();}),_0x579717[_0x2f3447(0x1ef)][_0x2f3447(0x1d2)](this[_0x2f3447(0x208)],0x0),_0x579717[_0x2f3447(0x1d8)][_0x2f3447(0x1d2)](this[_0x2f3447(0x208)],0x0));}[_0x35a01f(0x1e7)](){const _0x4849a8=_0x35a01f,_0xb8f85=new _0xb3a373(this[_0x4849a8(0x212)]);return _0xb8f85[_0x4849a8(0x200)]=_0x37d683(this[_0x4849a8(0x212)],_0x4849a8(0x206)),_0xb8f85[_0x4849a8(0x21f)]=_0x37d683(this[_0x4849a8(0x212)],_0x4849a8(0x206)),_0xb8f85[_0x4849a8(0x1ea)]=_0x7b7125[_0x4849a8(0x21e)],_0xb8f85[_0x4849a8(0x1d6)]({'attributes':{'class':_0x4849a8(0x205)}}),_0xb8f85[_0x4849a8(0x1c6)](_0x4849a8(0x1d5))['to'](this[_0x4849a8(0x218)],_0x4849a8(0x1e3),_0x184f81=>!_0x184f81),_0xb8f85[_0x4849a8(0x1c6)](_0x4849a8(0x1d0))['to'](this[_0x4849a8(0x218)],_0x4849a8(0x1d9),this[_0x4849a8(0x218)],_0x4849a8(0x1e5),(_0x2aa0c6,_0x2ffc6b)=>_0x2aa0c6&&!_0x2ffc6b),_0xb8f85['on'](_0x4849a8(0x1dc),()=>{const _0x143412=_0x4849a8;this[_0x143412(0x1e2)](_0x143412(0x219),this[_0x143412(0x218)]['id']);}),_0xb8f85;}[_0x35a01f(0x1f4)](){const _0x14aec4=_0x35a01f;this[_0x14aec4(0x218)][_0x14aec4(0x1e9)]?this[_0x14aec4(0x1e4)][_0x14aec4(0x1ca)](this[_0x14aec4(0x1c7)])||(this[_0x14aec4(0x1e4)][_0x14aec4(0x1d2)](this[_0x14aec4(0x1c7)],0x0),this[_0x14aec4(0x1d8)][_0x14aec4(0x1d2)](this[_0x14aec4(0x1c7)],0x0)):this[_0x14aec4(0x1e4)][_0x14aec4(0x1ca)](this[_0x14aec4(0x1c7)])&&(this[_0x14aec4(0x1e4)][_0x14aec4(0x1e0)](this[_0x14aec4(0x1c7)]),this[_0x14aec4(0x1d8)][_0x14aec4(0x1e0)](this[_0x14aec4(0x1c7)]));}}