@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.1 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. |
* | |
* | |
* +---------------------------------------------------------------------------------+
*
*
*
*
*/
const _0x2ddae1=_0x4d26;(function(_0x3acd75,_0x31fa48){const _0x590201=_0x4d26,_0x4a4088=_0x3acd75();while(!![]){try{const _0x19dbf3=-parseInt(_0x590201(0x94))/0x1+parseInt(_0x590201(0x99))/0x2*(-parseInt(_0x590201(0x8c))/0x3)+-parseInt(_0x590201(0x9c))/0x4*(-parseInt(_0x590201(0x89))/0x5)+parseInt(_0x590201(0x9f))/0x6*(parseInt(_0x590201(0x95))/0x7)+parseInt(_0x590201(0x83))/0x8+-parseInt(_0x590201(0xa5))/0x9*(parseInt(_0x590201(0x85))/0xa)+parseInt(_0x590201(0x9a))/0xb;if(_0x19dbf3===_0x31fa48)break;else _0x4a4088['push'](_0x4a4088['shift']());}catch(_0xd119c9){_0x4a4088['push'](_0x4a4088['shift']());}}}(_0x525b,0xa9c5a));import{isViewWithFocusCycler as _0x4f41da}from'ckeditor5/src/ui.js';export const FOCUS_ANNOTATION_KEYSTROKE=_0x2ddae1(0x7e);function _0x4d26(_0x47b72c,_0x1844e7){const _0x525b92=_0x525b();return _0x4d26=function(_0x4d26cc,_0x21f97a){_0x4d26cc=_0x4d26cc-0x7e;let _0xb7047e=_0x525b92[_0x4d26cc];return _0xb7047e;},_0x4d26(_0x47b72c,_0x1844e7);}export function setupThreadKeyboardNavigation(_0x444335,_0x332ff1){const _0x2df31f=_0x2ddae1,_0x5e3abc=_0x444335[_0x2df31f(0x96)];_0x444335[_0x2df31f(0x93)][_0x2df31f(0x80)](_0x5e3abc);for(const _0xf61443 of _0x332ff1)T(_0x444335,_0xf61443);_0x332ff1['on'](_0x2df31f(0x8f),(_0x27c91d,_0x4545aa)=>{const _0x31b424=_0x2df31f;for(const _0x48c8b9 of _0x4545aa[_0x31b424(0xa0)])E(_0x444335,_0x48c8b9);for(const _0x208b28 of Array[_0x31b424(0x82)](_0x4545aa[_0x31b424(0x86)])[_0x31b424(0xa4)]())T(_0x444335,_0x208b28);}),_0x444335[_0x2df31f(0x93)][_0x2df31f(0x8d)](_0x2df31f(0xa3),(_0x5dd0fd,_0x4a12db)=>{const _0x345304=_0x2df31f;_0x5e3abc===_0x5dd0fd[_0x345304(0x8e)]&&(_0x444335[_0x345304(0x9d)][_0x345304(0x81)](),_0x4a12db());},{'filter':_0x39431a=>_0x39431a[_0x2df31f(0x8e)]===_0x5e3abc}),_0x444335[_0x2df31f(0x93)][_0x2df31f(0x8d)](_0x2df31f(0x9e),(_0x3d7570,_0x251020)=>{const _0x502192=_0x2df31f;_0x5e3abc!==_0x3d7570[_0x502192(0x8e)]?_0x444335[_0x502192(0x9b)]():_0x444335[_0x502192(0xa2)](_0x502192(0x84)),_0x251020();}),_0x444335[_0x2df31f(0x93)][_0x2df31f(0x8d)](_0x2df31f(0x8a),(_0x102ebb,_0x20a14b)=>{const _0x4384af=_0x2df31f;_0x5e3abc===_0x102ebb[_0x4384af(0x8e)]&&(_0x444335[_0x4384af(0xa2)](_0x4384af(0x8a)),_0x20a14b());}),_0x444335[_0x2df31f(0x93)][_0x2df31f(0x8d)](_0x2df31f(0x88),(_0x413b5e,_0x1fae52)=>{const _0x33c525=_0x2df31f;_0x5e3abc===_0x413b5e[_0x33c525(0x8e)]&&(_0x444335[_0x33c525(0xa2)](_0x33c525(0x88)),_0x1fae52());});}function T(_0x560ffb,_0x510c2e){const _0x477eb3=_0x2ddae1;_0x510c2e[_0x477eb3(0x90)]&&(_0x560ffb[_0x477eb3(0x97)][_0x477eb3(0x91)](_0x510c2e[_0x477eb3(0x96)]),_0x560ffb[_0x477eb3(0x93)][_0x477eb3(0x80)](_0x510c2e[_0x477eb3(0x96)]),_0x4f41da(_0x510c2e)&&function(_0x39a530,_0x1f8d64){const _0x5db4d8=_0x477eb3,_0x4c5e75=_0x39a530[_0x5db4d8(0x7f)],_0x353a57=_0x1f8d64[_0x5db4d8(0x7f)];for(const _0x3d21f9 of Object[_0x5db4d8(0xa1)](_0x4c5e75))if(_0x3d21f9 in _0x353a57&&_0x4c5e75[_0x3d21f9]!==_0x353a57[_0x3d21f9])return!0x1;return!0x0;}(_0x560ffb[_0x477eb3(0x9d)],_0x510c2e[_0x477eb3(0x9d)])&&_0x560ffb[_0x477eb3(0x9d)][_0x477eb3(0x8b)](_0x510c2e[_0x477eb3(0x9d)]));}function E(_0xbc47a2,_0x38bbc1){const _0x5e76ad=_0x2ddae1;_0xbc47a2[_0x5e76ad(0x97)][_0x5e76ad(0x87)](_0x38bbc1[_0x5e76ad(0x96)]),_0xbc47a2[_0x5e76ad(0x93)][_0x5e76ad(0x92)](_0x38bbc1[_0x5e76ad(0x96)]),_0x4f41da(_0x38bbc1)&&_0xbc47a2[_0x5e76ad(0x9d)][_0x5e76ad(0x98)](_0x38bbc1[_0x5e76ad(0x9d)]);}function _0x525b(){const _0x3cee83=['keys','fire','enter','reverse','5570316qNQcxc','Ctrl+Shift+E','actions','listenTo','focusFirst','from','8871480RBqgoX','escape','20bATpNY','added','remove','arrowup','470965NLCfzu','arrowdown','chain','3zpfieW','set','target','change','isRendered','add','stopListening','keystrokes','1109540EjPoqN','14dLUVdL','element','focusTracker','unchain','2152888ZviBRG','28220280vkIBKC','focus','12JHcFTd','focusCycler','esc','486672eRmgSE','removed'];_0x525b=function(){return _0x3cee83;};return _0x525b();}