@ckeditor/ckeditor5-track-changes 47.7.0-alpha.0 → 47.7.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/utils/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x5b83b8,_0x441a61){const _0x3d22f9=_0x176a,_0x3a315c=_0x5b83b8();while(!![]){try{const _0x8b5901=-parseInt(_0x3d22f9(0x1e5))/0x1*(-parseInt(_0x3d22f9(0x1e9))/0x2)+-parseInt(_0x3d22f9(0x1f8))/0x3*(-parseInt(_0x3d22f9(0x1e4))/0x4)+-parseInt(_0x3d22f9(0x1fe))/0x5+-parseInt(_0x3d22f9(0x1e2))/0x6+parseInt(_0x3d22f9(0x1fa))/0x7*(parseInt(_0x3d22f9(0x207))/0x8)+parseInt(_0x3d22f9(0x1e1))/0x9+-parseInt(_0x3d22f9(0x201))/0xa;if(_0x8b5901===_0x441a61)break;else _0x3a315c['push'](_0x3a315c['shift']());}catch(_0x315785){_0x3a315c['push'](_0x3a315c['shift']());}}}(_0x1886,0xb3087));export function normalizeDescription(_0x51ad19){const _0x1eeea6=_0x176a;return Array[_0x1eeea6(0x1f5)](_0x51ad19)||(_0x51ad19=[_0x51ad19]),_0x51ad19[_0x1eeea6(0x211)](_0x557a99=>{const _0x22e28c=_0x1eeea6,_0x1130d4=_0x557a99[_0x22e28c(0x206)][_0x22e28c(0x20f)](/\*/g,''),_0x38a48a=_0x557a99[_0x22e28c(0x1ef)]?_0x22e28c(0x1de)+_0x557a99[_0x22e28c(0x1ef)][_0x22e28c(0x1ff)]+']':'';return'['+_0x557a99[_0x22e28c(0x200)]+']\x20'+_0x1130d4+_0x38a48a;})[_0x1eeea6(0x210)](';\x20');}export function renderDescription(_0x454ceb,_0x41d06e){const _0x4b7b1f=_0x176a;let _0x532737='';return _0x532737+=_0x454ceb[_0x4b7b1f(0x204)]('*')[_0x4b7b1f(0x211)]((_0x4ccd1e,_0x4c0cf7)=>_0x4c0cf7%0x2!=0x0?_0x4b7b1f(0x202)+cn(_0x4ccd1e)+_0x4b7b1f(0x205):cn(_0x4ccd1e))[_0x4b7b1f(0x210)](''),_0x41d06e&&(_0x532737+=_0x4b7b1f(0x1f1)+_0x41d06e[_0x4b7b1f(0x1ff)]+_0x4b7b1f(0x1ec)+_0x41d06e[_0x4b7b1f(0x203)]+_0x4b7b1f(0x1df)),_0x532737;}function cn(_0x28a5bb){const _0x2ce718=_0x176a,_0x43dbf4=document[_0x2ce718(0x1f6)](_0x2ce718(0x208));return _0x43dbf4[_0x2ce718(0x1fc)]=_0x28a5bb,_0x43dbf4[_0x2ce718(0x1e8)];}export function sortSuggestions(_0x23771b){const _0x15050b=_0x176a;return _0x23771b[_0x15050b(0x20a)]((_0x49f662,_0x2ec230)=>_0x15050b(0x212)===_0x49f662[_0x15050b(0x200)]&&_0x15050b(0x212)!==_0x2ec230[_0x15050b(0x200)]?-0x1:_0x15050b(0x212)!==_0x49f662[_0x15050b(0x200)]&&_0x15050b(0x212)===_0x2ec230[_0x15050b(0x200)]?0x1:_0x15050b(0x1fd)==_0x49f662[_0x15050b(0x200)]&&_0x15050b(0x1fd)!=_0x2ec230[_0x15050b(0x200)]?-0x1:_0x15050b(0x1fd)!=_0x49f662[_0x15050b(0x200)]&&_0x15050b(0x1fd)==_0x2ec230[_0x15050b(0x200)]?0x1:0x0);}export function getSelectedSuggestions(_0x8060c2,_0x51e8d6){const _0x1a5251=_0x176a,_0x588fa6=Array[_0x1a5251(0x1f3)](_0x8060c2[_0x1a5251(0x1eb)]()),_0x402eca=new Set();for(const _0x4133bd of _0x51e8d6)if(_0x4133bd[_0x1a5251(0x20e)]){for(const _0x50fd0c of _0x588fa6)for(const _0x5a0aed of _0x4133bd[_0x1a5251(0x1eb)]())(_0x50fd0c[_0x1a5251(0x1f2)](_0x5a0aed)||_0x8060c2[_0x1a5251(0x1ee)]&&!_0x4133bd[_0x1a5251(0x1f9)]&&_0x4133bd[_0x1a5251(0x1ed)]&&_0x5a0aed[_0x1a5251(0x1f4)][_0x1a5251(0x1f7)](_0x50fd0c[_0x1a5251(0x20b)]))&&_0x402eca[_0x1a5251(0x1ea)](_0x4133bd);}return _0x402eca;}function _0x1886(){const _0x1c229d=['next','isCollapsed','color','createPositionAt','<span\x20class=\x22ck-suggestion-color\x22\x20style=\x22background-color:\x20','isIntersecting','from','end','isArray','createElement','isTouching','769929yKwaMZ','isMultiRange','3035872mkzbMx','change','innerText','deletion','4684730jPQvvq','value','type','4273860NCujhC','<span\x20class=\x22ck-suggestion-type\x22>','title','split','</span>','content','8RidWej','span','execute','sort','start','push','schema','isInContent','replace','join','map','attribute','isObject','length','\x20[color\x20','\x22></span>','createRange','3459285BGloNV','7742142ZuvJwr','createPositionAfter','20rxlYMY','2flrBru','createPositionBefore','splice','innerHTML','1286732HbgeDv','add','getRanges','\x22\x20title=\x22'];_0x1886=function(){return _0x1c229d;};return _0x1886();}export function getRangesOfBlockGroups(_0x29e828,_0x28ee27){const _0x1cc88f=_0x176a;let _0x3fa20,_0x3e80a0=0x0;const _0x39e44d=[],_0x3325d8=_0x28ee27[_0x1cc88f(0x20d)];for(;_0x3e80a0<_0x29e828[_0x1cc88f(0x214)];){const _0x20f773=_0x29e828[_0x3e80a0],_0x294a1c=_0x29e828[_0x3e80a0+0x1];_0x3fa20||(_0x3fa20=_0x28ee27[_0x1cc88f(0x1e6)](_0x20f773)),un(_0x28ee27,_0x20f773,_0x294a1c)||(_0x39e44d[_0x1cc88f(0x20c)](_0x28ee27[_0x1cc88f(0x1e0)](_0x3fa20,_0x3325d8[_0x1cc88f(0x213)](_0x20f773)?_0x28ee27[_0x1cc88f(0x1e3)](_0x20f773):_0x28ee27[_0x1cc88f(0x1f0)](_0x20f773,_0x1cc88f(0x1f4)))),_0x3fa20=null),_0x3e80a0++;}return _0x39e44d;}function _0x176a(_0x552064,_0x51332f){const _0x1886f3=_0x1886();return _0x176a=function(_0x176a8d,_0x32baf3){_0x176a8d=_0x176a8d-0x1de;let _0x5ea430=_0x1886f3[_0x176a8d];return _0x5ea430;},_0x176a(_0x552064,_0x51332f);}function un(_0x2b989d,_0x35c9f4,_0xf90115){const _0x2b13a3=_0x176a;if(!_0xf90115)return!0x1;const _0x1f9c3f=_0x2b989d[_0x2b13a3(0x1e3)](_0x35c9f4),_0x393377=_0x2b989d[_0x2b13a3(0x1e6)](_0xf90115);return _0x1f9c3f[_0x2b13a3(0x1f7)](_0x393377);}export const MAX_SUGGESTION_ACTIONS_IN_BATCH=0x64;export function executeCommandForSuggestions(_0x452c5b,_0x266da6,_0x562c0e){const _0x46d801=_0x176a;for(;_0x562c0e[_0x46d801(0x214)];){const _0x51e18d=_0x562c0e[_0x46d801(0x1e7)](0x0,0x64);_0x452c5b[_0x46d801(0x1fb)](()=>{const _0x4d85f0=_0x46d801;for(const _0x639abc of _0x51e18d)_0x639abc[_0x4d85f0(0x20e)]&&_0x266da6[_0x4d85f0(0x209)](_0x639abc['id']);});}}
|