UNPKG

@ckeditor/ckeditor5-export-inline-styles

Version:

The export with inline styles feature for CKEditor 5.

23 lines 3.47 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(_0x983308,_0x56d0ae){const _0x17cb6c=_0x3e19,_0x5c606c=_0x983308();while(!![]){try{const _0x464ef8=parseInt(_0x17cb6c(0x14f))/0x1*(-parseInt(_0x17cb6c(0x141))/0x2)+-parseInt(_0x17cb6c(0x13e))/0x3+-parseInt(_0x17cb6c(0x147))/0x4+-parseInt(_0x17cb6c(0x14e))/0x5*(-parseInt(_0x17cb6c(0x148))/0x6)+-parseInt(_0x17cb6c(0x14b))/0x7+parseInt(_0x17cb6c(0x13d))/0x8+parseInt(_0x17cb6c(0x13f))/0x9;if(_0x464ef8===_0x56d0ae)break;else _0x5c606c['push'](_0x5c606c['shift']());}catch(_0xbc80c5){_0x5c606c['push'](_0x5c606c['shift']());}}}(_0x11ec,0xbf30b));import{StylesMap as _0x308bd6}from'ckeditor5/src/engine.js';function _0x3e19(_0x24be80,_0x251c13){const _0x11ec58=_0x11ec();return _0x3e19=function(_0x3e190a,_0x1071fd){_0x3e190a=_0x3e190a-0x13c;let _0x5d4ba4=_0x11ec58[_0x3e190a];return _0x5d4ba4;},_0x3e19(_0x24be80,_0x251c13);}import{inlineStylesMapCSSVariables as _0x5d57d0}from'./exportinlinestylescssvariables.js';export function getElementInlineStyles(_0x25f40b){const _0x26861a=_0x3e19,_0x50c6cf=_0x25f40b[_0x26861a(0x13c)][_0x26861a(0x146)](_0x26861a(0x140))||'',_0x520805=_0x25f40b[_0x26861a(0x14a)][_0x26861a(0x14c)](_0x9b33a0=>_0x25f40b[_0x26861a(0x13c)][_0x26861a(0x152)](_0x9b33a0[_0x26861a(0x150)]))[_0x26861a(0x153)](_0x2d190f=>_0x2d190f[_0x26861a(0x149)]),_0x1d6820=concatStylesMaps(_0x25f40b[_0x26861a(0x142)],[..._0x520805,_0x50c6cf]);return{'localCSSVariables':_0x5d57d0(_0x25f40b[_0x26861a(0x151)],_0x1d6820),'stylesMap':_0x1d6820};}export function concatStylesMaps(_0x3fa637,_0x2077b2){const _0x5d0a00=_0x3e19,_0x42c501=new _0x308bd6(_0x3fa637);for(const _0x346cf5 of _0x2077b2){let _0xd04675=null;if(_0xd04675=_0x5d0a00(0x14d)==typeof _0x346cf5?new _0x308bd6(_0x3fa637)[_0x5d0a00(0x143)](_0x346cf5):_0x346cf5,_0xd04675){for(const [_0x44f879,_0x49e1ea]of _0xd04675[_0x5d0a00(0x144)]())_0x42c501[_0x5d0a00(0x145)](_0x44f879,_0x49e1ea);}}return _0x42c501;}function _0x11ec(){const _0x424c26=['parsedCssRules','2647890zZJauX','filter','string','50kSfAdY','36999WZXpQo','flatSelector','fallbackCSSVariablesLookup','matches','map','element','11463128XBMgaC','2445753jRtppM','17545725guMavl','style','54Ngexnw','stylesProcessor','setTo','getStylesEntries','set','getAttribute','1742668bjnYZP','17316UlkACx','stylesMap'];_0x11ec=function(){return _0x424c26;};return _0x11ec();}