@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.97 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(_0x1d39ca,_0x4fb2a2){const _0x12dcfe=_0x4c06,_0x17add4=_0x1d39ca();while(!![]){try{const _0x148ccd=parseInt(_0x12dcfe(0x1a7))/0x1*(parseInt(_0x12dcfe(0x1bf))/0x2)+-parseInt(_0x12dcfe(0x1b3))/0x3+parseInt(_0x12dcfe(0x1ba))/0x4+parseInt(_0x12dcfe(0x1c0))/0x5+-parseInt(_0x12dcfe(0x1a5))/0x6+parseInt(_0x12dcfe(0x1be))/0x7*(-parseInt(_0x12dcfe(0x1a4))/0x8)+-parseInt(_0x12dcfe(0x1a6))/0x9*(-parseInt(_0x12dcfe(0x1bb))/0xa);if(_0x148ccd===_0x4fb2a2)break;else _0x17add4['push'](_0x17add4['shift']());}catch(_0x5af7ce){_0x17add4['push'](_0x17add4['shift']());}}}(_0x2a17,0xe605e));import{DateTime as _0x583b32}from'luxon';import{CKEditorError as _0x5bace7}from'ckeditor5/src/utils.js';function _0x4c06(_0x35995e,_0x1004b8){const _0x2a177a=_0x2a17();return _0x4c06=function(_0x4c060b,_0x1daefd){_0x4c060b=_0x4c060b-0x1a3;let _0x1101ae=_0x2a177a[_0x4c060b];return _0x1101ae;},_0x4c06(_0x35995e,_0x1004b8);}import{getTranslation as _0xe6ab2f}from'./common-translations.js';export function getDateTimeFormatter(_0x3036a5={},_0x144084){const _0x188de8=_0x4c06;if(void 0x0!==_0x3036a5[_0x188de8(0x1ab)]&&_0x188de8(0x1a8)!=typeof _0x3036a5[_0x188de8(0x1ab)])throw new _0x5bace7(_0x188de8(0x1bd));return _0x2aaea8=>{const _0x25f2b5=_0x188de8,_0x427da7=_0x25f2b5(0x1b4)==typeof _0x2aaea8?_0x583b32[_0x25f2b5(0x1a3)](_0x2aaea8):_0x583b32[_0x25f2b5(0x1aa)](_0x2aaea8),_0x1b9f61=_0x583b32[_0x25f2b5(0x1b1)](),_0x48322f=Math[_0x25f2b5(0x1af)](_0x1b9f61[_0x25f2b5(0x1b6)](_0x427da7,_0x25f2b5(0x1ac))[_0x25f2b5(0x1ac)]);return _0x3036a5[_0x25f2b5(0x1ab)]?_0x3036a5[_0x25f2b5(0x1ab)](_0x427da7[_0x25f2b5(0x1b0)](),_0x144084&&_0x144084['t']?_0x144084['t']:void 0x0):0x0===_0x48322f?_0x144084?_0xe6ab2f(_0x144084,_0x25f2b5(0x1b7))+'\x20'+_0x427da7[_0x25f2b5(0x1c1)](_0x25f2b5(0x1a9)):_0x427da7[_0x25f2b5(0x1c1)](_0x25f2b5(0x1b5)):0x1===_0x48322f?_0x144084?_0xe6ab2f(_0x144084,_0x25f2b5(0x1ad))+'\x20'+_0x427da7[_0x25f2b5(0x1c1)](_0x25f2b5(0x1a9)):_0x427da7[_0x25f2b5(0x1c1)](_0x25f2b5(0x1b9)):_0x48322f<0x7?_0x144084?_0xe6ab2f(_0x144084,_0x25f2b5(0x1ae))+'\x20'+_0xe6ab2f(_0x144084,_0x427da7[_0x25f2b5(0x1c1)](_0x25f2b5(0x1b2)))+'\x20'+_0x427da7[_0x25f2b5(0x1c1)](_0x25f2b5(0x1a9)):_0x427da7[_0x25f2b5(0x1c1)](_0x25f2b5(0x1bc)):_0x427da7[_0x25f2b5(0x1c1)](_0x25f2b5(0x1b8));};}function _0x2a17(){const _0x445e71=['toJSDate','now','EEEE','4680477QSvQFw','string','\x27Today\x27\x20hh:mma','diff','Today','LL-dd-yyyy\x20hh:mma','\x27Yesterday\x27\x20hh:mma','2415496LhnKLs','50sLiYPL','\x27Last\x27\x20EEEE\x20hh:mma','invalid-date-time-format','4561382tKFMuE','2Xnauqr','2365475zOAhWi','toFormat','fromISO','16zrcVRE','3763902deyuLD','4340961aZhgpI','944288eHPmjp','function','hh:mma','fromJSDate','dateTimeFormat','days','Yesterday','Last','floor'];_0x2a17=function(){return _0x445e71;};return _0x2a17();}