UNPKG

@ckeditor/ckeditor5-comments

Version:

Collaborative comments feature for CKEditor 5.

23 lines 7.25 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 _0x13f9b0=_0x224f;(function(_0x2a3a6e,_0x125f9f){const _0x4b7beb=_0x224f,_0x249b2e=_0x2a3a6e();while(!![]){try{const _0x1684e3=parseInt(_0x4b7beb(0x99))/0x1+-parseInt(_0x4b7beb(0xd9))/0x2*(parseInt(_0x4b7beb(0xc0))/0x3)+parseInt(_0x4b7beb(0xa6))/0x4+-parseInt(_0x4b7beb(0xac))/0x5*(-parseInt(_0x4b7beb(0xd0))/0x6)+-parseInt(_0x4b7beb(0xc6))/0x7+parseInt(_0x4b7beb(0xa1))/0x8*(parseInt(_0x4b7beb(0xb9))/0x9)+parseInt(_0x4b7beb(0xc1))/0xa*(parseInt(_0x4b7beb(0xd7))/0xb);if(_0x1684e3===_0x125f9f)break;else _0x249b2e['push'](_0x249b2e['shift']());}catch(_0x3e2a89){_0x249b2e['push'](_0x249b2e['shift']());}}}(_0x55eb,0x57300));import{View as _0x4b7c5d,ButtonView as _0x2e747d,FocusCycler as _0xca0a0}from'ckeditor5/src/ui.js';import{FocusTracker as _0xd11975,KeystrokeHandler as _0x581d2f}from'ckeditor5/src/utils.js';function _0x224f(_0x3d4364,_0x4f5774){const _0x55eb19=_0x55eb();return _0x224f=function(_0x224f26,_0x3cf917){_0x224f26=_0x224f26-0x95;let _0x83ced3=_0x55eb19[_0x224f26];return _0x83ced3;},_0x224f(_0x3d4364,_0x4f5774);}import{IconUndo as _0x1a8461}from'ckeditor5/src/icons.js';import{getTranslation as _0x71c267}from'../../../utils/common-translations.js';import _0x267a87 from'./commentthreadheadercontextview.js';export const MAX_CONTENT_LENGTH=0x96;export default class Xt extends _0x4b7c5d{[_0x13f9b0(0xab)];[_0x13f9b0(0x97)];[_0x13f9b0(0xa7)];[_0x13f9b0(0xb8)];[_0x13f9b0(0x95)];[_0x13f9b0(0xa0)];[_0x13f9b0(0xbf)];constructor(_0x3daa85,_0x4fae96){const _0x29c4d4=_0x13f9b0;super(_0x3daa85);const _0x3b76a3=this[_0x29c4d4(0xd8)];this[_0x29c4d4(0xab)]=_0x4fae96,this[_0x29c4d4(0x97)]=this[_0x29c4d4(0x9c)](),this[_0x29c4d4(0xa7)]=this[_0x29c4d4(0xd1)](),this[_0x29c4d4(0xb8)]=this[_0x29c4d4(0xce)]([this[_0x29c4d4(0xa7)],this[_0x29c4d4(0x97)]]),this[_0x29c4d4(0x95)]=new _0xd11975(),this[_0x29c4d4(0xa0)]=new _0x581d2f(),this[_0x29c4d4(0xbf)]=new _0xca0a0({'focusables':this[_0x29c4d4(0xb8)],'focusTracker':this[_0x29c4d4(0x95)],'keystrokeHandler':this[_0x29c4d4(0xa0)],'actions':{'focusPrevious':_0x29c4d4(0xb6),'focusNext':_0x29c4d4(0xa3)}}),this[_0x29c4d4(0xa8)](_0x29c4d4(0xa9))['to'](this[_0x29c4d4(0xab)],_0x29c4d4(0xdd),_0x4d0847=>!!_0x4d0847),this[_0x29c4d4(0xa8)](_0x29c4d4(0xd3))['to'](this[_0x29c4d4(0xab)],_0x29c4d4(0xdd),_0x50e111=>_0x50e111&&_0x50e111[_0x29c4d4(0x96)]?this[_0x29c4d4(0x9f)](_0x50e111[_0x29c4d4(0x96)]):_0x71c267(this[_0x29c4d4(0xb1)],_0x29c4d4(0xb4))),this[_0x29c4d4(0xca)]({'tag':_0x29c4d4(0xcc),'attributes':{'class':[_0x29c4d4(0xc3)]},'children':[{'tag':_0x29c4d4(0xcc),'attributes':{'class':[_0x29c4d4(0xc2)]},'children':[{'tag':_0x29c4d4(0xcc),'attributes':{'class':[_0x29c4d4(0x9a),_0x3b76a3['if'](_0x29c4d4(0xa9),_0x29c4d4(0xc8))]},'children':[this[_0x29c4d4(0xa7)]]}]},{'tag':_0x29c4d4(0xcc),'attributes':{'class':[_0x29c4d4(0x9b)]},'children':[this[_0x29c4d4(0x97)]]}]});}[_0x13f9b0(0xcd)](){const _0x258311=_0x13f9b0;super[_0x258311(0xcd)](),this[_0x258311(0xd5)](),this[_0x258311(0xad)]();}[_0x13f9b0(0xc5)](){const _0x3406ad=_0x13f9b0;this[_0x3406ad(0xbf)][_0x3406ad(0xdc)]();}[_0x13f9b0(0x9c)](){const _0x33c3bf=_0x13f9b0,_0x221a4d=new _0x2e747d(this[_0x33c3bf(0xb1)]);return _0x221a4d[_0x33c3bf(0xaf)]=_0x71c267(this[_0x33c3bf(0xb1)],_0x33c3bf(0xcf)),_0x221a4d[_0x33c3bf(0x9e)]=_0x71c267(this[_0x33c3bf(0xb1)],_0x33c3bf(0xcf)),_0x221a4d[_0x33c3bf(0xba)]=_0x1a8461,_0x221a4d[_0x33c3bf(0xa8)](_0x33c3bf(0xd4))['to'](this[_0x33c3bf(0xab)],_0x33c3bf(0xcb),_0x5436ad=>!_0x5436ad),_0x221a4d[_0x33c3bf(0xa8)](_0x33c3bf(0xbd))['to'](this[_0x33c3bf(0xab)],_0x33c3bf(0xc9),this[_0x33c3bf(0xab)],_0x33c3bf(0xbe),(_0x39d6b8,_0x983673)=>_0x39d6b8&&_0x983673),_0x221a4d['on'](_0x33c3bf(0xdb),()=>{const _0x13a6d9=_0x33c3bf;this[_0x13a6d9(0xbb)](_0x13a6d9(0xa2),this[_0x13a6d9(0xab)]['id']);}),_0x221a4d;}[_0x13f9b0(0x9f)](_0x1fb830){const _0x15194c=_0x13f9b0;if(_0x1fb830[_0x15194c(0xb7)]<0x96)return _0x1fb830;const _0x4fcde4=_0x1fb830[_0x15194c(0xd2)]('\x20',0x93);return _0x1fb830[_0x15194c(0xa5)](0x0,_0x4fcde4>-0x1?_0x4fcde4:0x93)+_0x15194c(0xd6);}[_0x13f9b0(0xd5)](){const _0x290ea6=_0x13f9b0,_0x3fa748=this[_0x290ea6(0xaa)][_0x290ea6(0xda)](_0x290ea6(0xae)),_0x18d87b=_0x3fa748[_0x290ea6(0xda)](_0x290ea6(0xa4));this[_0x290ea6(0xb3)](_0x3fa748,_0x290ea6(0xb5),()=>{const _0x5166aa=_0x290ea6;_0x18d87b[_0x5166aa(0xb2)]<_0x18d87b[_0x5166aa(0xbc)]&&_0x3fa748[_0x5166aa(0xb0)][_0x5166aa(0x9d)](_0x5166aa(0xc7));}),this[_0x290ea6(0xb3)](_0x3fa748,_0x290ea6(0x98),()=>{const _0x399872=_0x290ea6;_0x3fa748[_0x399872(0xb0)][_0x399872(0xc4)](_0x399872(0xc7));});}[_0x13f9b0(0xad)](){const _0xfccd5=_0x13f9b0;this[_0xfccd5(0xa0)][_0xfccd5(0xb3)](this[_0xfccd5(0xaa)]);for(const _0x8af382 of this[_0xfccd5(0xb8)])this[_0xfccd5(0x95)][_0xfccd5(0x9d)](_0x8af382[_0xfccd5(0xaa)]),this[_0xfccd5(0xa0)][_0xfccd5(0xb3)](_0x8af382[_0xfccd5(0xaa)]);}[_0x13f9b0(0xd1)](){const _0x2f44e7=_0x13f9b0,_0x2e5c61=new _0x267a87(this[_0x2f44e7(0xb1)]);return _0x2e5c61[_0x2f44e7(0xa8)](_0x2f44e7(0xd3))['to'](this),_0x2e5c61;}}function _0x55eb(){const _0x26915a=['offsetWidth','listenTo','Comment\x20was\x20made\x20on\x20an\x20element','mouseenter','shift+tab','length','focusables','45702nbUofG','icon','fire','scrollWidth','isVisible','isResolved','focusCycler','682398ciGTsu','710HDojsG','ck-context-wrapper','ck-thread__header','remove','focus','4831694TFcdGq','overlay','ck-context--quotes','isResolvable','setTemplate','isReadOnly','div','render','createCollection','Reopen','24yegjaG','_createContextView','lastIndexOf','contextValue','isEnabled','_attachContextActions','...','35354SingCS','bindTemplate','2dxyWfa','querySelector','execute','focusFirst','context','focusTracker','value','reopenButtonView','mouseleave','409583LZZhyH','ck-context','ck-annotation__actions','_createReopenButton','add','tooltip','_trimContextValue','keystrokes','592jJofbd','reopenCommentThread','tab','.ck-context__value','substring','233452zHNnCv','contextView','bind','hasContext','element','_model','253645NGSQZw','_setupKeyboardNavigation','.ck-context','label','classList','locale'];_0x55eb=function(){return _0x26915a;};return _0x55eb();}