UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

24 lines 8.31 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ function _0x2ed9(_0x4f2ba3,_0x25ab02){const _0x34556e=_0x3455();return _0x2ed9=function(_0x2ed9ea,_0x2b0ec0){_0x2ed9ea=_0x2ed9ea-0x99;let _0x5a3d20=_0x34556e[_0x2ed9ea];return _0x5a3d20;},_0x2ed9(_0x4f2ba3,_0x25ab02);}const _0xeab371=_0x2ed9;(function(_0xf01077,_0x255c88){const _0x57a6c7=_0x2ed9,_0x3d583e=_0xf01077();while(!![]){try{const _0xb46b9a=parseInt(_0x57a6c7(0xc4))/0x1*(parseInt(_0x57a6c7(0xbe))/0x2)+-parseInt(_0x57a6c7(0xae))/0x3*(-parseInt(_0x57a6c7(0xbb))/0x4)+-parseInt(_0x57a6c7(0xa8))/0x5+-parseInt(_0x57a6c7(0xa2))/0x6*(-parseInt(_0x57a6c7(0xca))/0x7)+-parseInt(_0x57a6c7(0xb3))/0x8*(parseInt(_0x57a6c7(0xc9))/0x9)+-parseInt(_0x57a6c7(0xc2))/0xa+-parseInt(_0x57a6c7(0xf3))/0xb;if(_0xb46b9a===_0x255c88)break;else _0x3d583e['push'](_0x3d583e['shift']());}catch(_0x4adcc3){_0x3d583e['push'](_0x3d583e['shift']());}}}(_0x3455,0xad9b2));function _0x3455(){const _0x31b57e=['_updateArchivedThreadHeader','isReadOnly','4145640YVVqPQ','resolveButton','removeCommentThread','render','commentsListView','focusables','6hxiVOY','ck-thread__container','_bindFirstCommentView','length','change:isReadOnly','8224rtfoAQ','focus','ck-rounded-corners','removeConfirm','bind','commentThreadChildren','containerElement','isUnlinked','2174408OkdgLV','isActive','add','4EPIEQQ','commentThreadInputView','ck-thread--unlinked','actionBar','4811590hNFKcl','ariaDescriptionView','494521yKdTdO','_model','Delete\x20comment\x20thread?','then','stop','5337OtxZyl','4812619ErtVnU','icon','actionIndicator','showConfirm','fire','element','querySelector','ck-thread--remove-confirmation','_cancelAllConfirms','isResolvable','listitem','ck-comment--resolve','archivedAt','div','_createResolveButton','tooltip','listenTo','commentViews','isVisible','Resolve','cancelConfirm','extendTemplate','removeButton','ck-thread','ck-thread--','getTemplate','_boundFirstCommentView','Write\x20a\x20comment...','isSystemComment','has','isResolved','commentThreadHeaderView','set','ck-reset_all-excluded','unbind','change:isActive','label','ck-thread--active','isEnabled','setTemplate','createCollection','1460602FGBBhk','.ck-thread__container','change:archivedAt','remove','placeholder','high','resolveCommentThread','execute','bindTemplate','get','6whsbHb','locale','ariaLabel','isConfirm'];_0x3455=function(){return _0x31b57e;};return _0x3455();}import{ConfirmMixin as _0x38d75a,LateFocusButtonView as _0x103847}from'ckeditor5-collaboration/src/collaboration-core.js';import{IconCheck as _0xd69240}from'ckeditor5/src/icons.js';import{BaseCommentThreadView as _0x547693}from'./basecommentthreadview.js';import{getTranslation as _0xc51589}from'../../../utils/common-translations.js';export class CommentThreadView extends/* #__PURE__ -- @preserve */ _0x38d75a(_0x547693){[_0xeab371(0xb8)];[_0xeab371(0xb9)];[_0xeab371(0xa9)];[_0xeab371(0xe4)];constructor(_0x5f4179,_0x1af2e9,_0xfc8230,_0x441e96){const _0x1a8438=_0xeab371;super(_0x5f4179,_0x1af2e9,_0xfc8230,_0x441e96),this[_0x1a8438(0xb8)]=this[_0x1a8438(0xf2)]([this[_0x1a8438(0xac)],this[_0x1a8438(0xbf)],this[_0x1a8438(0xc3)]]),this[_0x1a8438(0xea)](_0x1a8438(0xcc),null),this[_0x1a8438(0xb9)]=null,this[_0x1a8438(0xe4)]=null,this[_0x1a8438(0xa3)]=_0x5f4179,this[_0x1a8438(0xa9)]=this[_0x1a8438(0xd8)](),this[_0x1a8438(0xf1)](this[_0x1a8438(0xe3)]()),this['on'](_0x1a8438(0xed),(_0x49a506,_0x304aee,_0x54b7f4)=>{const _0x142c20=_0x1a8438;_0x54b7f4||this[_0x142c20(0xd2)]();}),this[_0x1a8438(0xda)](this[_0x1a8438(0xc5)],_0x1a8438(0xb2),(_0x3f52f8,_0x4ce3,_0x33cb31)=>{const _0x44d49b=_0x1a8438;_0x33cb31&&this[_0x44d49b(0xd2)]();}),this[_0x1a8438(0xb1)]>0x0&&this[_0x1a8438(0xb0)](),this[_0x1a8438(0xda)](this[_0x1a8438(0xac)][_0x1a8438(0xdb)],_0x1a8438(0xbd),()=>{const _0x44dd29=_0x1a8438;this[_0x44dd29(0xb0)]();});}[_0xeab371(0xe3)](){const _0xec603=_0xeab371,_0x8ad2=this[_0xec603(0xa0)];return{'tag':_0xec603(0xd7),'attributes':{'class':['ck',_0xec603(0xe1),_0xec603(0xeb),_0xec603(0xb5),_0x8ad2['if'](_0xec603(0xbc),_0xec603(0xef)),_0x8ad2['if'](_0xec603(0xba),_0xec603(0xc0)),_0x8ad2['if'](_0xec603(0xa5),_0xec603(0xd1)),_0x8ad2['to'](_0xec603(0xcc),_0x516e59=>_0x516e59?_0xec603(0xe2)+_0x516e59:'')],'data-thread-id':this[_0xec603(0xc5)]['id'],'tabindex':0x0,'role':_0xec603(0xd4),'aria-label':_0x8ad2['to'](_0xec603(0xa4)),'aria-describedby':this[_0xec603(0xc3)]['id']},'children':[{'tag':_0xec603(0xd7),'attributes':{'class':_0xec603(0xaf)},'children':this[_0xec603(0xb8)]}]};}[_0xeab371(0xab)](){const _0x1f6a6d=_0xeab371;super[_0x1f6a6d(0xab)](),this[_0x1f6a6d(0xb9)]=this[_0x1f6a6d(0xcf)][_0x1f6a6d(0xd0)](_0x1f6a6d(0x99)),this[_0x1f6a6d(0xc5)]['on'](_0x1f6a6d(0x9a),()=>{const _0x2f0981=_0x1f6a6d;this[_0x2f0981(0xa6)]();}),this[_0x1f6a6d(0xa6)]();}[_0xeab371(0xd2)](){const _0x289429=_0xeab371;this[_0x289429(0xde)]();for(const _0xc19895 of this[_0x289429(0xac)][_0x289429(0xdb)])_0xc19895[_0x289429(0xde)]();}[_0xeab371(0xb0)](){const _0x352086=_0xeab371,{locale:_0xee3d3d}=this,_0x1fc429=this[_0x352086(0xac)][_0x352086(0xdb)][_0x352086(0xa1)](0x0);_0x1fc429===this[_0x352086(0xe4)]||_0x1fc429[_0x352086(0xe6)]||(this[_0x352086(0xe4)]=_0x1fc429,this[_0x352086(0xec)](_0x352086(0xcc)),this[_0x352086(0xb7)](_0x352086(0xcc))['to'](_0x1fc429,_0x352086(0xcc),_0x45ad84=>_0x352086(0x9b)===_0x45ad84?_0x352086(0x9b):null),_0x1fc429[_0x352086(0x9c)]=_0xc51589(_0xee3d3d,_0x352086(0xe5)),_0x1fc429[_0x352086(0xe0)]['on'](_0x352086(0x9f),_0x7dc3dc=>{const _0x5d9ea1=_0x352086;_0x7dc3dc[_0x5d9ea1(0xc8)](),this[_0x5d9ea1(0xcd)](_0xc51589(_0xee3d3d,_0x5d9ea1(0xc6)),this[_0x5d9ea1(0xb9)])[_0x5d9ea1(0xc7)](()=>{const _0x15fb76=_0x5d9ea1;this[_0x15fb76(0xce)](_0x15fb76(0xaa));});},{'priority':_0x352086(0x9d)}),this['on'](_0x352086(0xb6),()=>{const _0xe748ce=_0x352086;_0x1fc429[_0xe748ce(0xb4)]();}),_0x1fc429[_0x352086(0xc1)][_0x352086(0xbd)](this[_0x352086(0xa9)],0x0),_0x1fc429[_0x352086(0xad)][_0x352086(0xbd)](this[_0x352086(0xa9)],0x0));}[_0xeab371(0xd8)](){const _0x28cedb=_0xeab371,_0x4fdf90=new _0x103847(this[_0x28cedb(0xa3)]);return _0x4fdf90[_0x28cedb(0xee)]=_0xc51589(this[_0x28cedb(0xa3)],_0x28cedb(0xdd)),_0x4fdf90[_0x28cedb(0xd9)]=_0xc51589(this[_0x28cedb(0xa3)],_0x28cedb(0xdd)),_0x4fdf90[_0x28cedb(0xcb)]=_0xd69240,_0x4fdf90[_0x28cedb(0xdf)]({'attributes':{'class':_0x28cedb(0xd5)}}),_0x4fdf90[_0x28cedb(0xb7)](_0x28cedb(0xf0))['to'](this[_0x28cedb(0xc5)],_0x28cedb(0xa7),_0x23fb29=>!_0x23fb29),_0x4fdf90[_0x28cedb(0xb7)](_0x28cedb(0xdc))['to'](this[_0x28cedb(0xc5)],_0x28cedb(0xd3),this[_0x28cedb(0xc5)],_0x28cedb(0xe8),(_0x125752,_0x2ad50e)=>_0x125752&&!_0x2ad50e),_0x4fdf90['on'](_0x28cedb(0x9f),()=>{const _0x2eb3a3=_0x28cedb;this[_0x2eb3a3(0xce)](_0x2eb3a3(0x9e),this[_0x2eb3a3(0xc5)]['id']);}),_0x4fdf90;}[_0xeab371(0xa6)](){const _0x1cc223=_0xeab371;this[_0x1cc223(0xc5)][_0x1cc223(0xd6)]?this[_0x1cc223(0xb8)][_0x1cc223(0xe7)](this[_0x1cc223(0xe9)])||(this[_0x1cc223(0xb8)][_0x1cc223(0xbd)](this[_0x1cc223(0xe9)],0x0),this[_0x1cc223(0xad)][_0x1cc223(0xbd)](this[_0x1cc223(0xe9)],0x0)):this[_0x1cc223(0xb8)][_0x1cc223(0xe7)](this[_0x1cc223(0xe9)])&&(this[_0x1cc223(0xb8)][_0x1cc223(0x9b)](this[_0x1cc223(0xe9)]),this[_0x1cc223(0xad)][_0x1cc223(0x9b)](this[_0x1cc223(0xe9)]));}}