@ckeditor/ckeditor5-revision-history
Version:
Document revision history feature for CKEditor 5.
23 lines • 3.49 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 _0x5d01(){const _0x31f3e1=['monthLong','47568300TeMISD','minus','toRelativeCalendar','354396aljIPp','toJSDate','21eSseVC','2WXblKr','256fQWaKO','fromJSDate','week','year','59238WEyDfi','setLocale','hasSame','day','7320486ldzEDi','weekdayLong','local','startOf','7683600bBGTyU','1662086HUyRRp','month','7486087fYGasD'];_0x5d01=function(){return _0x31f3e1;};return _0x5d01();}(function(_0xeb5717,_0x242668){const _0x1b9380=_0x456f,_0x37649e=_0xeb5717();while(!![]){try{const _0x171fce=parseInt(_0x1b9380(0xbd))/0x1*(-parseInt(_0x1b9380(0xaf))/0x2)+-parseInt(_0x1b9380(0xae))/0x3*(parseInt(_0x1b9380(0xc4))/0x4)+-parseInt(_0x1b9380(0xbc))/0x5+parseInt(_0x1b9380(0xb8))/0x6+-parseInt(_0x1b9380(0xbf))/0x7+-parseInt(_0x1b9380(0xb0))/0x8*(parseInt(_0x1b9380(0xb4))/0x9)+parseInt(_0x1b9380(0xc1))/0xa;if(_0x171fce===_0x242668)break;else _0x37649e['push'](_0x37649e['shift']());}catch(_0x3e2fab){_0x37649e['push'](_0x37649e['shift']());}}}(_0x5d01,0xd6517));function _0x456f(_0x52f4c1,_0x25c8e1){const _0x5d0168=_0x5d01();return _0x456f=function(_0x456f2a,_0x4471d8){_0x456f2a=_0x456f2a-0xad;let _0x101950=_0x5d0168[_0x456f2a];return _0x101950;},_0x456f(_0x52f4c1,_0x25c8e1);}import{DateTime as _0x30e93a}from'luxon';export function getDateTimePeriodInfo(_0x487d00,_0x20cccd){const _0xbdf7a=_0x456f,_0x24a0f5=_0x30e93a[_0xbdf7a(0xb1)](_0x487d00)[_0xbdf7a(0xb5)](_0x20cccd),_0x591fe7=_0x30e93a[_0xbdf7a(0xba)](),_0x391e66=_0x591fe7[_0xbdf7a(0xc2)]({'days':0x1})[_0xbdf7a(0xbb)](_0xbdf7a(0xb7));let _0x2efe04,_0x3e1bbe;return _0x24a0f5[_0xbdf7a(0xb6)](_0x591fe7,_0xbdf7a(0xb7))?(_0x2efe04=_0x24a0f5[_0xbdf7a(0xbb)](_0xbdf7a(0xb7))[_0xbdf7a(0xad)](),_0x3e1bbe=_0x24a0f5[_0xbdf7a(0xc3)]()):_0x24a0f5[_0xbdf7a(0xb6)](_0x391e66,_0xbdf7a(0xb7))?(_0x2efe04=_0x391e66[_0xbdf7a(0xad)](),_0x3e1bbe=_0x24a0f5[_0xbdf7a(0xc3)]()):_0x24a0f5[_0xbdf7a(0xb6)](_0x591fe7,_0xbdf7a(0xb2))?(_0x2efe04=_0x24a0f5[_0xbdf7a(0xbb)](_0xbdf7a(0xb2))[_0xbdf7a(0xad)](),_0x3e1bbe=_0x24a0f5[_0xbdf7a(0xb9)]||''):_0x24a0f5[_0xbdf7a(0xb6)](_0x591fe7,_0xbdf7a(0xb3))?(_0x2efe04=_0x24a0f5[_0xbdf7a(0xbb)](_0xbdf7a(0xbe))[_0xbdf7a(0xad)](),_0x3e1bbe=_0x24a0f5[_0xbdf7a(0xc0)]||''):(_0x2efe04=_0x24a0f5[_0xbdf7a(0xbb)](_0xbdf7a(0xb3))[_0xbdf7a(0xad)](),_0x3e1bbe=String(_0x24a0f5[_0xbdf7a(0xb3)])),{'startDate':_0x2efe04,'localizedPeriodName':_0x3e1bbe};}