UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

24 lines 8.47 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 _0x310d5a=_0x2677;(function(_0x101113,_0xe111d0){const _0x1687d0=_0x2677,_0x2f4a92=_0x101113();while(!![]){try{const _0x218776=-parseInt(_0x1687d0(0x1c8))/0x1*(-parseInt(_0x1687d0(0x1c6))/0x2)+-parseInt(_0x1687d0(0x1a2))/0x3*(-parseInt(_0x1687d0(0x178))/0x4)+-parseInt(_0x1687d0(0x176))/0x5+parseInt(_0x1687d0(0x19a))/0x6+-parseInt(_0x1687d0(0x17b))/0x7+-parseInt(_0x1687d0(0x190))/0x8*(parseInt(_0x1687d0(0x1c9))/0x9)+parseInt(_0x1687d0(0x19c))/0xa*(parseInt(_0x1687d0(0x1ac))/0xb);if(_0x218776===_0xe111d0)break;else _0x2f4a92['push'](_0x2f4a92['shift']());}catch(_0x2e3dd6){_0x2f4a92['push'](_0x2f4a92['shift']());}}}(_0x3255,0x8840a));function _0x2677(_0x37d560,_0x247120){const _0x325506=_0x3255();return _0x2677=function(_0x267708,_0x52ec11){_0x267708=_0x267708-0x173;let _0x46c31d=_0x325506[_0x267708];return _0x46c31d;},_0x2677(_0x37d560,_0x247120);}import{ConfirmMixin as _0x3594fc,LateFocusButtonView as _0x4f8ea8}from'ckeditor5-collaboration/src/collaboration-core.js';import{IconCheck as _0x5ba5e0}from'ckeditor5/src/icons.js';function _0x3255(){const _0x49271e=['removeCommentThread','ck-thread--remove-confirmation','commentThreadChildren','ck-thread--active','createCollection','render','listenTo','_createResolveButton','ck-reset_all-excluded','ck-thread--','focusables','stop','containerElement','ck-comment--resolve','.ck-thread__container','_model','extendTemplate','element','change:archivedAt','bind','457542sJHPfU','commentThreadHeaderView','1aSUoio','5351211xCGKzz','actionIndicator','commentsListView','ck-thread__container','removeConfirm','change:isReadOnly','isVisible','isSystemComment','2310160QyuwZr','has','4EtjUvr','bindTemplate','ck-rounded-corners','959763ojULTF','isEnabled','add','set','resolveButton','showConfirm','isResolvable','length','Write\x20a\x20comment...','getTemplate','tooltip','ariaLabel','isReadOnly','ck-thread','placeholder','remove','locale','ariaDescriptionView','high','focus','_updateArchivedThreadHeader','8XKyRtZ','_bindFirstCommentView','cancelConfirm','fire','div','actionBar','resolveCommentThread','Delete\x20comment\x20thread?','removeButton','change:isActive','664806Xtivmn','unbind','25170lJDxxn','isResolved','icon','_cancelAllConfirms','get','isActive','1571211OTEEhj','commentThreadInputView','execute','listitem','Resolve','ck-thread--unlinked','setTemplate','commentViews','_boundFirstCommentView','querySelector','3883VHUNfr','isConfirm','archivedAt','isUnlinked','label','then'];_0x3255=function(){return _0x49271e;};return _0x3255();}import _0x335d35 from'./basecommentthreadview.js';import{getTranslation as _0x34c531}from'../../../utils/common-translations.js';export default class vt extends/* #__PURE__ -- @preserve */ _0x3594fc(_0x335d35){[_0x310d5a(0x1b4)];[_0x310d5a(0x1be)];[_0x310d5a(0x17f)];[_0x310d5a(0x1aa)];constructor(_0x3d69a3,_0x150614,_0x17971b,_0x289442){const _0xafc788=_0x310d5a;super(_0x3d69a3,_0x150614,_0x17971b,_0x289442),this[_0xafc788(0x1b4)]=this[_0xafc788(0x1b6)]([this[_0xafc788(0x1cb)],this[_0xafc788(0x1a3)],this[_0xafc788(0x18c)]]),this[_0xafc788(0x17e)](_0xafc788(0x1ca),null),this[_0xafc788(0x1be)]=null,this[_0xafc788(0x1aa)]=null,this[_0xafc788(0x18b)]=_0x3d69a3,this[_0xafc788(0x17f)]=this[_0xafc788(0x1b9)](),this[_0xafc788(0x1a8)](this[_0xafc788(0x184)]()),this['on'](_0xafc788(0x199),(_0x24ddaf,_0x104b46,_0x352a1f)=>{const _0x4e49b1=_0xafc788;_0x352a1f||this[_0x4e49b1(0x19f)]();}),this[_0xafc788(0x1b8)](this[_0xafc788(0x1c1)],_0xafc788(0x173),(_0x58da53,_0x5d7c23,_0x54ae88)=>{const _0x4169aa=_0xafc788;_0x54ae88&&this[_0x4169aa(0x19f)]();}),this[_0xafc788(0x182)]>0x0&&this[_0xafc788(0x191)](),this[_0xafc788(0x1b8)](this[_0xafc788(0x1cb)][_0xafc788(0x1a9)],_0xafc788(0x17d),()=>{const _0x494641=_0xafc788;this[_0x494641(0x191)]();});}[_0x310d5a(0x184)](){const _0x5b3739=_0x310d5a,_0x5bf060=this[_0x5b3739(0x179)];return{'tag':_0x5b3739(0x194),'attributes':{'class':['ck',_0x5b3739(0x188),_0x5b3739(0x1ba),_0x5b3739(0x17a),_0x5bf060['if'](_0x5b3739(0x1a1),_0x5b3739(0x1b5)),_0x5bf060['if'](_0x5b3739(0x1af),_0x5b3739(0x1a7)),_0x5bf060['if'](_0x5b3739(0x1ad),_0x5b3739(0x1b3)),_0x5bf060['to'](_0x5b3739(0x1ca),_0x2ab870=>_0x2ab870?_0x5b3739(0x1bb)+_0x2ab870:'')],'data-thread-id':this[_0x5b3739(0x1c1)]['id'],'tabindex':0x0,'role':_0x5b3739(0x1a5),'aria-label':_0x5bf060['to'](_0x5b3739(0x186)),'aria-describedby':this[_0x5b3739(0x18c)]['id']},'children':[{'tag':_0x5b3739(0x194),'attributes':{'class':_0x5b3739(0x1cc)},'children':this[_0x5b3739(0x1b4)]}]};}[_0x310d5a(0x1b7)](){const _0x1d397f=_0x310d5a;super[_0x1d397f(0x1b7)](),this[_0x1d397f(0x1be)]=this[_0x1d397f(0x1c3)][_0x1d397f(0x1ab)](_0x1d397f(0x1c0)),this[_0x1d397f(0x1c1)]['on'](_0x1d397f(0x1c4),()=>{const _0x92cdd7=_0x1d397f;this[_0x92cdd7(0x18f)]();}),this[_0x1d397f(0x18f)]();}[_0x310d5a(0x19f)](){const _0xb76206=_0x310d5a;this[_0xb76206(0x192)]();for(const _0x3c8e56 of this[_0xb76206(0x1cb)][_0xb76206(0x1a9)])_0x3c8e56[_0xb76206(0x192)]();}[_0x310d5a(0x191)](){const _0x579e77=_0x310d5a,{locale:_0x3d0759}=this,_0x3d64b6=this[_0x579e77(0x1cb)][_0x579e77(0x1a9)][_0x579e77(0x1a0)](0x0);_0x3d64b6===this[_0x579e77(0x1aa)]||_0x3d64b6[_0x579e77(0x175)]||(this[_0x579e77(0x1aa)]=_0x3d64b6,this[_0x579e77(0x19b)](_0x579e77(0x1ca)),this[_0x579e77(0x1c5)](_0x579e77(0x1ca))['to'](_0x3d64b6,_0x579e77(0x1ca),_0x546541=>_0x579e77(0x18a)===_0x546541?_0x579e77(0x18a):null),_0x3d64b6[_0x579e77(0x189)]=_0x34c531(_0x3d0759,_0x579e77(0x183)),_0x3d64b6[_0x579e77(0x198)]['on'](_0x579e77(0x1a4),_0x1ba783=>{const _0x2fd03d=_0x579e77;_0x1ba783[_0x2fd03d(0x1bd)](),this[_0x2fd03d(0x180)](_0x34c531(_0x3d0759,_0x2fd03d(0x197)),this[_0x2fd03d(0x1be)])[_0x2fd03d(0x1b1)](()=>{const _0xbea02f=_0x2fd03d;this[_0xbea02f(0x193)](_0xbea02f(0x1b2));});},{'priority':_0x579e77(0x18d)}),this['on'](_0x579e77(0x1cd),()=>{const _0x1ee667=_0x579e77;_0x3d64b6[_0x1ee667(0x18e)]();}),_0x3d64b6[_0x579e77(0x195)][_0x579e77(0x17d)](this[_0x579e77(0x17f)],0x0),_0x3d64b6[_0x579e77(0x1bc)][_0x579e77(0x17d)](this[_0x579e77(0x17f)],0x0));}[_0x310d5a(0x1b9)](){const _0x1c5711=_0x310d5a,_0x42ce13=new _0x4f8ea8(this[_0x1c5711(0x18b)]);return _0x42ce13[_0x1c5711(0x1b0)]=_0x34c531(this[_0x1c5711(0x18b)],_0x1c5711(0x1a6)),_0x42ce13[_0x1c5711(0x185)]=_0x34c531(this[_0x1c5711(0x18b)],_0x1c5711(0x1a6)),_0x42ce13[_0x1c5711(0x19e)]=_0x5ba5e0,_0x42ce13[_0x1c5711(0x1c2)]({'attributes':{'class':_0x1c5711(0x1bf)}}),_0x42ce13[_0x1c5711(0x1c5)](_0x1c5711(0x17c))['to'](this[_0x1c5711(0x1c1)],_0x1c5711(0x187),_0x3c7f0d=>!_0x3c7f0d),_0x42ce13[_0x1c5711(0x1c5)](_0x1c5711(0x174))['to'](this[_0x1c5711(0x1c1)],_0x1c5711(0x181),this[_0x1c5711(0x1c1)],_0x1c5711(0x19d),(_0x5289d3,_0x553b19)=>_0x5289d3&&!_0x553b19),_0x42ce13['on'](_0x1c5711(0x1a4),()=>{const _0x406578=_0x1c5711;this[_0x406578(0x193)](_0x406578(0x196),this[_0x406578(0x1c1)]['id']);}),_0x42ce13;}[_0x310d5a(0x18f)](){const _0x22ca11=_0x310d5a;this[_0x22ca11(0x1c1)][_0x22ca11(0x1ae)]?this[_0x22ca11(0x1b4)][_0x22ca11(0x177)](this[_0x22ca11(0x1c7)])||(this[_0x22ca11(0x1b4)][_0x22ca11(0x17d)](this[_0x22ca11(0x1c7)],0x0),this[_0x22ca11(0x1bc)][_0x22ca11(0x17d)](this[_0x22ca11(0x1c7)],0x0)):this[_0x22ca11(0x1b4)][_0x22ca11(0x177)](this[_0x22ca11(0x1c7)])&&(this[_0x22ca11(0x1b4)][_0x22ca11(0x18a)](this[_0x22ca11(0x1c7)]),this[_0x22ca11(0x1bc)][_0x22ca11(0x18a)](this[_0x22ca11(0x1c7)]));}}