UNPKG

@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 3.9 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ (function(_0x2035d2,_0x161ee9){const _0x9d9877=_0x47a8,_0x4864e7=_0x2035d2();while(!![]){try{const _0x26a6b1=-parseInt(_0x9d9877(0x154))/0x1*(-parseInt(_0x9d9877(0x146))/0x2)+-parseInt(_0x9d9877(0x153))/0x3+parseInt(_0x9d9877(0x14e))/0x4*(parseInt(_0x9d9877(0x157))/0x5)+parseInt(_0x9d9877(0x13e))/0x6*(-parseInt(_0x9d9877(0x14a))/0x7)+parseInt(_0x9d9877(0x148))/0x8+parseInt(_0x9d9877(0x14c))/0x9*(parseInt(_0x9d9877(0x141))/0xa)+-parseInt(_0x9d9877(0x14f))/0xb;if(_0x26a6b1===_0x161ee9)break;else _0x4864e7['push'](_0x4864e7['shift']());}catch(_0x60f910){_0x4864e7['push'](_0x4864e7['shift']());}}}(_0x5910,0xc8061));function _0x5910(){const _0x52a68a=['filter','20rDbYWd','item','view','mapViewToDom','length','2BubOYd','domConverter','7998328ajgszG','map','56DpssCX','domElement','1345815YSKUwe','getClientRects','244BLbBwv','11015620RnEcWB','sort','push','mapper','1531047YTAnYg','1420681qsvIXB','name','markerNameToElements','13460suPygj','values','414516ntKxft','from'];_0x5910=function(){return _0x52a68a;};return _0x5910();}function _0x47a8(_0x570c02,_0x4f656a){const _0x5910e1=_0x5910();return _0x47a8=function(_0x47a824,_0x44252b){_0x47a824=_0x47a824-0x13e;let _0x3b681c=_0x5910e1[_0x47a824];return _0x3b681c;},_0x47a8(_0x570c02,_0x4f656a);}import{first as _0x1ff9ab}from'ckeditor5/src/utils.js';export function getMarkerDomElement(_0x33af75,_0x15a894){const _0x280721=_0x47a8,_0x1ba2d5=_0x33af75[_0x280721(0x152)][_0x280721(0x156)](_0x15a894[_0x280721(0x155)]);if(!_0x1ba2d5)return null;const _0x3f2aa6=_0x1ff9ab(_0x1ba2d5[_0x280721(0x158)]());return _0x33af75[_0x280721(0x143)][_0x280721(0x147)][_0x280721(0x144)](_0x3f2aa6)||null;}export function getAllMarkersDomElementsSorted(_0x19103d,_0x568414){const _0x2c7822=_0x47a8;if(0x0===_0x568414[_0x2c7822(0x145)])return null;const _0x357f28=[],_0x2e4bd2=_0x19103d[_0x2c7822(0x143)][_0x2c7822(0x147)];for(const _0xe0f62d of _0x568414){const _0x2972a6=_0x19103d[_0x2c7822(0x152)][_0x2c7822(0x156)](_0xe0f62d[_0x2c7822(0x155)]);if(!_0x2972a6)continue;const _0x890b26=Array[_0x2c7822(0x13f)](_0x2972a6)[_0x2c7822(0x149)](_0x244cff=>_0x2e4bd2[_0x2c7822(0x144)](_0x244cff))[_0x2c7822(0x140)](_0xa2d8b5=>!!_0xa2d8b5);_0x357f28[_0x2c7822(0x151)](..._0x890b26);}if(0x0===_0x357f28[_0x2c7822(0x145)])return null;const _0x31d840=[];for(const _0x11b5a3 of _0x357f28){const _0xc7693a=_0x11b5a3[_0x2c7822(0x14d)]()[_0x2c7822(0x142)](0x0);_0xc7693a&&_0x31d840[_0x2c7822(0x151)]({'x':_0xc7693a['x'],'y':_0xc7693a['y'],'domElement':_0x11b5a3});}return 0x0===_0x31d840[_0x2c7822(0x145)]?null:(_0x31d840[_0x2c7822(0x150)]((_0xedc0eb,_0xc9059c)=>_0xedc0eb['y']-_0xc9059c['y']||_0xedc0eb['x']-_0xc9059c['x']),_0x31d840[_0x2c7822(0x149)](_0x541717=>_0x541717[_0x2c7822(0x14b)]));}