@ckeditor/ckeditor5-collaboration-core
Version:
Base utilities used by CKEditor 5 collaboration features to support multiple users working together in a rich text editor.
23 lines • 5.56 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 _0x2f27(_0x289700,_0x1a01f9){const _0x42d8c6=_0x42d8();return _0x2f27=function(_0x2f2773,_0x23c336){_0x2f2773=_0x2f2773-0x97;let _0x3f1b5b=_0x42d8c6[_0x2f2773];return _0x3f1b5b;},_0x2f27(_0x289700,_0x1a01f9);}const _0x10662b=_0x2f27;function _0x42d8(){const _0x1bf67d=['3420423oqQjrG','div','focusTracker','8496HuXttF','focusCycler','16995PDGSwG','setTemplate','submitView','shift+tab','execute','ck-thread__remove-confirm-','1gKOLTk','ck-thread__remove-confirm','Are\x20you\x20sure?','cancel','keystrokes','add','element','set','render','Yes','414cJlEkP','presentation','cancelView','1447873cIHlpL','_setupKeyboardNavigation','fire','extendTemplate','814240zPTMlH','ck-thread__remove-confirm-actions','label','focusables','focus','createCollection','11MHjJYO','submit','esc','ck-thread__remove-confirm-inner','tab','alertdialog','3069096hpmWTC','_createButtonView','message','10lMUQhl','icon','forEach','3173560nLtIKz','listenTo','bindTemplate','464IegtUc'];_0x42d8=function(){return _0x1bf67d;};return _0x42d8();}(function(_0x2a7e47,_0x1df4aa){const _0x16e906=_0x2f27,_0x207d99=_0x2a7e47();while(!![]){try{const _0x1ccebd=-parseInt(_0x16e906(0xc5))/0x1*(parseInt(_0x16e906(0xa4))/0x2)+parseInt(_0x16e906(0xbd))/0x3*(parseInt(_0x16e906(0xb9))/0x4)+parseInt(_0x16e906(0xbf))/0x5*(parseInt(_0x16e906(0x9d))/0x6)+-parseInt(_0x16e906(0xa0))/0x7+parseInt(_0x16e906(0xb6))/0x8+-parseInt(_0x16e906(0xba))/0x9*(-parseInt(_0x16e906(0xb3))/0xa)+parseInt(_0x16e906(0xaa))/0xb*(-parseInt(_0x16e906(0xb0))/0xc);if(_0x1ccebd===_0x1df4aa)break;else _0x207d99['push'](_0x207d99['shift']());}catch(_0x2f81c7){_0x207d99['push'](_0x207d99['shift']());}}}(_0x42d8,0x72c34));import{IconCancel as _0x4ce3eb,IconCheck as _0x4d748c}from'ckeditor5/src/icons.js';import{View as _0x437927,ButtonView as _0x489242,FocusCycler as _0x5a6242}from'ckeditor5/src/ui.js';import{FocusTracker as _0x19d107,KeystrokeHandler as _0x19974a}from'ckeditor5/src/utils.js';import{getTranslation as _0x3258f6}from'./common-translations.js';export default class m extends _0x437927{[_0x10662b(0xc1)];[_0x10662b(0x9f)];[_0x10662b(0xbc)];[_0x10662b(0x97)];[_0x10662b(0xbe)];[_0x10662b(0xa7)];constructor(_0x13bc5){const _0xdda9a2=_0x10662b;super(_0x13bc5);const _0x235e4a=this[_0xdda9a2(0xb8)];this[_0xdda9a2(0x9a)](_0xdda9a2(0xb2),_0x3258f6(_0x13bc5,_0xdda9a2(0xc7))),this[_0xdda9a2(0xc1)]=this[_0xdda9a2(0xb1)](_0x13bc5,_0x3258f6(_0x13bc5,_0xdda9a2(0x9c)),_0x4d748c,_0xdda9a2(0xab)),this[_0xdda9a2(0x9f)]=this[_0xdda9a2(0xb1)](_0x13bc5,_0x3258f6(_0x13bc5,'No'),_0x4ce3eb,_0xdda9a2(0xc8)),this[_0xdda9a2(0xa7)]=this[_0xdda9a2(0xa9)]([this[_0xdda9a2(0xc1)],this[_0xdda9a2(0x9f)]]),this[_0xdda9a2(0xbc)]=new _0x19d107(),this[_0xdda9a2(0x97)]=new _0x19974a(),this[_0xdda9a2(0xbe)]=new _0x5a6242({'focusables':this[_0xdda9a2(0xa7)],'focusTracker':this[_0xdda9a2(0xbc)],'keystrokeHandler':this[_0xdda9a2(0x97)],'actions':{'focusPrevious':_0xdda9a2(0xc2),'focusNext':_0xdda9a2(0xae)}}),this[_0xdda9a2(0xc0)]({'tag':_0xdda9a2(0xbb),'attributes':{'class':['ck',_0xdda9a2(0xc6)],'tabindex':-0x1,'role':_0xdda9a2(0xaf)},'children':[{'tag':_0xdda9a2(0xbb),'attributes':{'class':_0xdda9a2(0xad),'role':_0xdda9a2(0x9e)},'children':[{'tag':'p','children':[{'text':_0x235e4a['to'](_0xdda9a2(0xb2))}]},{'tag':_0xdda9a2(0xbb),'attributes':{'class':_0xdda9a2(0xa5)},'children':[this[_0xdda9a2(0xc1)],this[_0xdda9a2(0x9f)]]}]}]});}[_0x10662b(0x9b)](){const _0xf39066=_0x10662b;super[_0xf39066(0x9b)](),this[_0xf39066(0xa1)]();}[_0x10662b(0xa8)](){const _0x1aa941=_0x10662b;this[_0x1aa941(0x9f)][_0x1aa941(0x99)][_0x1aa941(0xa8)]({'preventScroll':!0x0});}[_0x10662b(0xb1)](_0x1f571f,_0x49e05d,_0x180e9a,_0xbc71d4){const _0x590e50=_0x10662b,_0x387ce3=new _0x489242(_0x1f571f);return _0x387ce3[_0x590e50(0xa6)]=_0x49e05d,_0x387ce3[_0x590e50(0xb4)]=_0x180e9a,_0x387ce3[_0x590e50(0xa3)]({'attributes':{'class':_0x590e50(0xc4)+_0xbc71d4}}),_0x387ce3['on'](_0x590e50(0xc3),()=>this[_0x590e50(0xa2)](_0xbc71d4)),_0x387ce3;}[_0x10662b(0xa1)](){const _0x3cb319=_0x10662b;this[_0x3cb319(0xa7)][_0x3cb319(0xb5)](_0x2336c3=>{const _0x59e791=_0x3cb319;this[_0x59e791(0x97)][_0x59e791(0xb7)](_0x2336c3[_0x59e791(0x99)]),this[_0x59e791(0xbc)][_0x59e791(0x98)](_0x2336c3[_0x59e791(0x99)]);}),this[_0x3cb319(0x97)][_0x3cb319(0x9a)](_0x3cb319(0xac),(_0x2b98ef,_0x2a7066)=>{const _0x1c6ee7=_0x3cb319;this[_0x1c6ee7(0xa2)](_0x1c6ee7(0xc8)),_0x2a7066();});}}