@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.17 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 _0x1e2b(_0x38afd2,_0x2b79b6){const _0x1666b7=_0x1666();return _0x1e2b=function(_0x1e2bff,_0x5e1967){_0x1e2bff=_0x1e2bff-0x150;let _0x54d5e1=_0x1666b7[_0x1e2bff];return _0x54d5e1;},_0x1e2b(_0x38afd2,_0x2b79b6);}const _0x5e740f=_0x1e2b;(function(_0x52096f,_0x10996f){const _0x3cc149=_0x1e2b,_0x3544bc=_0x52096f();while(!![]){try{const _0xb71f78=parseInt(_0x3cc149(0x171))/0x1+parseInt(_0x3cc149(0x166))/0x2*(-parseInt(_0x3cc149(0x160))/0x3)+-parseInt(_0x3cc149(0x161))/0x4*(-parseInt(_0x3cc149(0x151))/0x5)+parseInt(_0x3cc149(0x15b))/0x6+-parseInt(_0x3cc149(0x15f))/0x7+parseInt(_0x3cc149(0x163))/0x8*(-parseInt(_0x3cc149(0x162))/0x9)+parseInt(_0x3cc149(0x159))/0xa*(parseInt(_0x3cc149(0x158))/0xb);if(_0xb71f78===_0x10996f)break;else _0x3544bc['push'](_0x3544bc['shift']());}catch(_0x5c7132){_0x3544bc['push'](_0x3544bc['shift']());}}}(_0x1666,0x8597e));function _0x1666(){const _0x46ba27=['reverse','target','802794wIqFrG','arrowup','focusCycler','stopListening','removed','focusFirst','esc','remove','10dKJQKN','added','from','focusTracker','actions','unchain','set','1034XOnjAD','105140NlAMHZ','listenTo','4207068FItVgX','enter','escape','chain','7374017GwKpYH','252mLMCyp','807860kQrulN','1501083beBBjo','24HHGSuq','arrowdown','add','18934KZcYtQ','element','keystrokes','Ctrl+Shift+E','isRendered','fire','keys','focus','change'];_0x1666=function(){return _0x46ba27;};return _0x1666();}import{isViewWithFocusCycler as _0x42efbc}from'ckeditor5/src/ui.js';export const FOCUS_ANNOTATION_KEYSTROKE=_0x5e740f(0x169);export function setupThreadKeyboardNavigation(_0x5902ed,_0x12e417){const _0x1cbd68=_0x5e740f,_0x470745=_0x5902ed[_0x1cbd68(0x167)];_0x5902ed[_0x1cbd68(0x168)][_0x1cbd68(0x15a)](_0x470745);for(const _0x474bac of _0x12e417)ro(_0x5902ed,_0x474bac);_0x12e417['on'](_0x1cbd68(0x16e),(_0x567ed7,_0x317bb1)=>{const _0x5bd39f=_0x1cbd68;for(const _0x4d540a of _0x317bb1[_0x5bd39f(0x175)])to(_0x5902ed,_0x4d540a);for(const _0x3686be of Array[_0x5bd39f(0x153)](_0x317bb1[_0x5bd39f(0x152)])[_0x5bd39f(0x16f)]())ro(_0x5902ed,_0x3686be);}),_0x5902ed[_0x1cbd68(0x168)][_0x1cbd68(0x157)](_0x1cbd68(0x15c),(_0x133a8f,_0xb8507f)=>{const _0x43243b=_0x1cbd68;_0x470745===_0x133a8f[_0x43243b(0x170)]&&(_0x5902ed[_0x43243b(0x173)][_0x43243b(0x176)](),_0xb8507f());},{'filter':_0x4a5847=>_0x4a5847[_0x1cbd68(0x170)]===_0x470745}),_0x5902ed[_0x1cbd68(0x168)][_0x1cbd68(0x157)](_0x1cbd68(0x177),(_0x398238,_0x6970e4)=>{const _0x3ba6c4=_0x1cbd68;_0x470745!==_0x398238[_0x3ba6c4(0x170)]?_0x5902ed[_0x3ba6c4(0x16d)]():_0x5902ed[_0x3ba6c4(0x16b)](_0x3ba6c4(0x15d)),_0x6970e4();}),_0x5902ed[_0x1cbd68(0x168)][_0x1cbd68(0x157)](_0x1cbd68(0x164),(_0x34c2f4,_0x4483dd)=>{const _0x568891=_0x1cbd68;_0x470745===_0x34c2f4[_0x568891(0x170)]&&(_0x5902ed[_0x568891(0x16b)](_0x568891(0x164)),_0x4483dd());}),_0x5902ed[_0x1cbd68(0x168)][_0x1cbd68(0x157)](_0x1cbd68(0x172),(_0x4b4e51,_0x19c263)=>{const _0x4e34d5=_0x1cbd68;_0x470745===_0x4b4e51[_0x4e34d5(0x170)]&&(_0x5902ed[_0x4e34d5(0x16b)](_0x4e34d5(0x172)),_0x19c263());});}function ro(_0x5db82f,_0x4b4e1f){const _0x20e6cc=_0x5e740f;_0x4b4e1f[_0x20e6cc(0x16a)]&&(_0x5db82f[_0x20e6cc(0x154)][_0x20e6cc(0x165)](_0x4b4e1f[_0x20e6cc(0x167)]),_0x5db82f[_0x20e6cc(0x168)][_0x20e6cc(0x15a)](_0x4b4e1f[_0x20e6cc(0x167)]),_0x42efbc(_0x4b4e1f)&&function(_0x173479,_0x510548){const _0x35bd74=_0x20e6cc,_0x3cea08=_0x173479[_0x35bd74(0x155)],_0xf9f314=_0x510548[_0x35bd74(0x155)];for(const _0x3f8e52 of Object[_0x35bd74(0x16c)](_0x3cea08))if(_0x3f8e52 in _0xf9f314&&_0x3cea08[_0x3f8e52]!==_0xf9f314[_0x3f8e52])return!0x1;return!0x0;}(_0x5db82f[_0x20e6cc(0x173)],_0x4b4e1f[_0x20e6cc(0x173)])&&_0x5db82f[_0x20e6cc(0x173)][_0x20e6cc(0x15e)](_0x4b4e1f[_0x20e6cc(0x173)]));}function to(_0x1555c2,_0x3a0012){const _0xce42c4=_0x5e740f;_0x1555c2[_0xce42c4(0x154)][_0xce42c4(0x150)](_0x3a0012[_0xce42c4(0x167)]),_0x1555c2[_0xce42c4(0x168)][_0xce42c4(0x174)](_0x3a0012[_0xce42c4(0x167)]),_0x42efbc(_0x3a0012)&&_0x1555c2[_0xce42c4(0x173)][_0xce42c4(0x156)](_0x3a0012[_0xce42c4(0x173)]);}