@ckeditor/ckeditor5-export-inline-styles
Version:
The export with inline styles feature for CKEditor 5.
23 lines • 4.39 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(_0x30a740,_0x1fdb0f){const _0x34a79b=_0x111d,_0x2c7b01=_0x30a740();while(!![]){try{const _0x290364=-parseInt(_0x34a79b(0xc6))/0x1*(-parseInt(_0x34a79b(0xda))/0x2)+-parseInt(_0x34a79b(0xc8))/0x3+parseInt(_0x34a79b(0xd5))/0x4*(parseInt(_0x34a79b(0xd3))/0x5)+-parseInt(_0x34a79b(0xd9))/0x6*(-parseInt(_0x34a79b(0xcd))/0x7)+parseInt(_0x34a79b(0xd6))/0x8*(-parseInt(_0x34a79b(0xdb))/0x9)+-parseInt(_0x34a79b(0xcb))/0xa*(-parseInt(_0x34a79b(0xdd))/0xb)+parseInt(_0x34a79b(0xc5))/0xc;if(_0x290364===_0x1fdb0f)break;else _0x2c7b01['push'](_0x2c7b01['shift']());}catch(_0x13efa8){_0x2c7b01['push'](_0x2c7b01['shift']());}}}(_0x559c,0xccc86));import{findMatchingParenthesis as _0x59023e,splitByTopLevelComma as _0x4e0d69}from'../exportinlinestylesutils.js';export function collectRootStylesheetsVariables(_0x2e3445){const _0x2ce9a6=_0x111d,_0x307213=new Map();for(const {stylesMap:_0x51336b,flatSelector:_0x118cdc}of _0x2e3445){if(_0x2ce9a6(0xd7)!==_0x118cdc)continue;const _0x4777b0=inlineStylesMapCSSVariables(_0x307213[_0x2ce9a6(0xd1)][_0x2ce9a6(0xd0)](_0x307213),_0x51336b);for(const [_0x564996,_0x41a4f3]of _0x4777b0)_0x307213[_0x2ce9a6(0xd4)](_0x564996,_0x41a4f3);}return _0x307213;}export function inlineStylesMapCSSVariables(_0x3517a0,_0x2043b1){const _0x19a509=_0x111d,_0x29ccb2=new Map(),_0x42b1cc=_0x43e181=>_0x29ccb2[_0x19a509(0xdc)](_0x43e181)?_0x29ccb2[_0x19a509(0xd1)](_0x43e181):_0x3517a0(_0x43e181);for(const [_0x595f72,_0x462bf1]of _0x2043b1[_0x19a509(0xd8)]())if(_0x462bf1&&_0x595f72[_0x19a509(0xca)]('--')){const _0x388b0e=b(_0x42b1cc,_0x462bf1);_0x29ccb2[_0x19a509(0xd4)](_0x595f72,_0x388b0e),_0x2043b1[_0x19a509(0xcf)](_0x595f72);}for(const [_0x3d9293,_0x1bd50f]of _0x2043b1[_0x19a509(0xd8)]())if(_0x1bd50f){const _0x379d06=b(_0x42b1cc,_0x1bd50f);_0x2043b1[_0x19a509(0xd4)](_0x3d9293,_0x379d06);}return _0x29ccb2;}function b(_0x3e3a7c,_0x3c465a){return function(_0x3c75cc,_0x268d02){const _0x34c4e6=_0x111d;let _0x123eb5='',_0x2e8127=0x0;for(;_0x2e8127<_0x3c75cc[_0x34c4e6(0xd2)];){const _0x5e923d=_0x3c75cc[_0x34c4e6(0xc9)](_0x34c4e6(0xce),_0x2e8127);if(-0x1===_0x5e923d){_0x123eb5+=_0x3c75cc[_0x34c4e6(0xc7)](_0x2e8127);break;}_0x123eb5+=_0x3c75cc[_0x34c4e6(0xc7)](_0x2e8127,_0x5e923d);const _0x554318=_0x5e923d+0x4,_0x2e6c37=_0x59023e(_0x3c75cc,_0x554318);_0x123eb5+=_0x268d02(_0x3c75cc[_0x34c4e6(0xcc)](_0x554318,_0x2e6c37)),_0x2e8127=_0x2e6c37+0x1;}return _0x123eb5;}(_0x3c465a,_0x28ea5d=>{const _0x3d2b99=_0x111d,[_0x41250b,_0x3b938a]=_0x4e0d69(_0x28ea5d),_0x4a30cb=_0x3e3a7c(_0x41250b);return void 0x0!==_0x4a30cb?_0x4a30cb:_0x3b938a?b(_0x3e3a7c,_0x3b938a):_0x3d2b99(0xce)+_0x41250b+')';});}function _0x111d(_0x44c4b2,_0x593554){const _0x559ca2=_0x559c();return _0x111d=function(_0x111dc3,_0xc7a740){_0x111dc3=_0x111dc3-0xc5;let _0x3911dd=_0x559ca2[_0x111dc3];return _0x3911dd;},_0x111d(_0x44c4b2,_0x593554);}function _0x559c(){const _0x75eccb=['12XPMMeF','178024VmDUKp',':root','getStylesEntries','6hlCRxU','1742cEBALd','126JCjdaR','has','11hgMMhv','2505780jXhSzy','1784cUjsJS','slice','4204821CzIeRr','indexOf','startsWith','6354220RMbHje','substring','322651cKtasG','var(','remove','bind','get','length','179575WriOKo','set'];_0x559c=function(){return _0x75eccb;};return _0x559c();}