@ckeditor/ckeditor5-export-inline-styles 0.0.0-nightly-20250326.0
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/CHANGELOG.md +4 -0
- package/LICENSE.md +22 -0
- package/README.md +47 -0
- package/build/export-inline-styles.js +4 -0
- package/ckeditor5-metadata.json +11 -0
- package/dist/index-content.css +4 -0
- package/dist/index-editor.css +4 -0
- package/dist/index.css +4 -0
- package/dist/index.js +23 -0
- package/package.json +70 -0
- package/src/augmentation.d.ts +22 -0
- package/src/augmentation.js +23 -0
- package/src/exportinlinestyles.d.ts +172 -0
- package/src/exportinlinestyles.js +23 -0
- package/src/exportinlinestylescommand.d.ts +46 -0
- package/src/exportinlinestylescommand.js +23 -0
- package/src/exportinlinestylesediting.d.ts +34 -0
- package/src/exportinlinestylesediting.js +23 -0
- package/src/exportinlinestylesutils.d.ts +57 -0
- package/src/exportinlinestylesutils.js +23 -0
- package/src/index.d.ts +12 -0
- package/src/index.js +23 -0
- package/src/utils/exportinlinestylescollector.d.ts +41 -0
- package/src/utils/exportinlinestylescollector.js +23 -0
- package/src/utils/exportinlinestylescssvariables.d.ts +68 -0
- package/src/utils/exportinlinestylescssvariables.js +23 -0
- package/src/utils/exportinlinestylesmatcher.d.ts +48 -0
- package/src/utils/exportinlinestylesmatcher.js +23 -0
package/CHANGELOG.md
ADDED
package/LICENSE.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Software License Agreement
|
|
2
|
+
==========================
|
|
3
|
+
|
|
4
|
+
**CKEditor 5 Export with inline styles feature** (https://ckeditor.com/ckeditor-5/)<br>
|
|
5
|
+
Copyright (c) 2003–2025, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
|
6
|
+
|
|
7
|
+
CKEditor 5 Export with inline styles feature is licensed under a commercial license and is protected by copyright law.
|
|
8
|
+
For more information, see: [https://ckeditor.com/pricing](https://ckeditor.com/pricing).
|
|
9
|
+
|
|
10
|
+
Sources of Intellectual Property Included in CKEditor 5 Export with inline styles feature
|
|
11
|
+
----------------------------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
Where not otherwise indicated, all CKEditor 5 Export with inline styles feature content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
14
|
+
|
|
15
|
+
The following libraries are included in CKEditor 5 Export Inline Styles feature under the [MIT license](https://opensource.org/licenses/MIT):
|
|
16
|
+
|
|
17
|
+
* specificity - Copyright (c) 2016 Keegan Street and others.
|
|
18
|
+
|
|
19
|
+
Trademarks
|
|
20
|
+
----------
|
|
21
|
+
|
|
22
|
+
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders.
|
package/README.md
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
CKEditor 5 Export with Inline Styles
|
|
2
|
+
=====================================
|
|
3
|
+
|
|
4
|
+
[](https://www.npmjs.com/package/@ckeditor/ckeditor5-export-inline-styles)
|
|
5
|
+
|
|
6
|
+
This package contains an Export with Inline Styles feature for CKEditor 5. It allows you to export editor content with all formatting preserved as inline styles, making it easier to use in environments where external style sheets are unavailable.
|
|
7
|
+
|
|
8
|
+
When enabled, this feature adds utility functions to the editor instance that allow the export of the editor content with inline styles. You can use the exported content in environments where external style sheets are unavailable, such as email clients, or when you want to preserve the formatting after pasting it into a different editor.
|
|
9
|
+
|
|
10
|
+
This is a premium feature. Sign up for a [free non-commitment 14-day trial](https://portal.ckeditor.com/checkout?plan=free), or see: [https://ckeditor.com/pricing](https://ckeditor.com/pricing) for more information.
|
|
11
|
+
|
|
12
|
+
## Installation
|
|
13
|
+
|
|
14
|
+
This plugin is part of the `ckeditor5-premium-features` package. Install the whole package to use it.
|
|
15
|
+
|
|
16
|
+
```bash
|
|
17
|
+
npm install ckeditor5-premium-features
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
## Create free account
|
|
21
|
+
|
|
22
|
+
If you want to check full CKEditor 5 capabilities, sign up for a [free non-commitment 14-day trial](https://portal.ckeditor.com/checkout?plan=free).
|
|
23
|
+
|
|
24
|
+
## Demo
|
|
25
|
+
|
|
26
|
+
Check out the [demo in the Export with inline styles feature](https://ckeditor.com/docs/ckeditor5/latest/features/html/export-inline-styles.html) guide.
|
|
27
|
+
|
|
28
|
+
## Documentation
|
|
29
|
+
|
|
30
|
+
See the [`@ckeditor/ckeditor5-export-inline-styles` package](https://ckeditor.com/docs/ckeditor5/latest/api/export-inline-styles.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/) as well as the [Export with Inline Styles](https://ckeditor.com/docs/ckeditor5/latest/features/html/export-inline-styles.html) feature guide.
|
|
31
|
+
|
|
32
|
+
## Getting support
|
|
33
|
+
|
|
34
|
+
CKEditor 5 Export with Inline Styles feature comes with outstanding support from a dedicated team of customer care specialists, QA engineers and CKEditor 5 developers. The team will gladly assist you in all aspects from setting up your account to integrating CKEditor 5 Export with Inline Styles feature with your application.
|
|
35
|
+
|
|
36
|
+
As a licensed CKEditor 5 Export with Inline Styles feature user you can report bugs and request features directly through the CKEditor Ecosystem customer dashboard.
|
|
37
|
+
|
|
38
|
+
## License
|
|
39
|
+
|
|
40
|
+
**CKEditor 5 Export with Inline Styles feature** (https://ckeditor.com/ckeditor-5/)<br>
|
|
41
|
+
Copyright (c) 2003–2025, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
|
42
|
+
|
|
43
|
+
CKEditor 5 Export with Inline Styles feature is licensed under a commercial license and is protected by copyright law. For more information, see: [https://ckeditor.com/pricing](https://ckeditor.com/pricing).
|
|
44
|
+
|
|
45
|
+
### Trademarks
|
|
46
|
+
|
|
47
|
+
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md.
|
|
4
|
+
*/(()=>{var t={237:t=>{"use strict";t.exports=CKEditor5.dll},584:(t,n,e)=>{t.exports=e(237)("./src/utils.js")},782:(t,n,e)=>{t.exports=e(237)("./src/core.js")},783:(t,n,e)=>{t.exports=e(237)("./src/engine.js")}},n={};function e(r){var s=n[r];if(void 0!==s)return s.exports;var i=n[r]={exports:{}};return t[r](i,i.exports,e),i.exports}e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";e.r(r),e.d(r,{ExportInlineStyles:()=>D,ExportInlineStylesCommand:()=>L,ExportInlineStylesEditing:()=>M,dropImportantStyleSuffix:()=>f});var t=e(782),n=e(584),s=function(t){var n,e,r,s,o=[];for(r=0,s=(n=t.split(",")).length;r<s;r+=1)(e=n[r]).length>0&&o.push(i(e));return o},i=function(t){var n,e,r=t,s={a:0,b:0,c:0},i=[];return n=function(n,e){var o,c,a,u,l,f;if(n.test(r))for(c=0,a=(o=r.match(n)).length;c<a;c+=1)s[e]+=1,u=o[c],l=r.indexOf(u),f=u.length,i.push({selector:t.substr(l,f),type:e,index:l,length:f}),r=r.replace(u,Array(f+1).join(" "))},e=function(t){var n,e,s,i;if(t.test(r))for(e=0,s=(n=r.match(t)).length;e<s;e+=1)i=n[e],r=r.replace(i,Array(i.length+1).join("A"))},e(/\\[0-9A-Fa-f]{6}\s?/g),e(/\\[0-9A-Fa-f]{1,5}\s/g),e(/\\./g),function(){var t,n,e,s,i=/{[^]*/gm;if(i.test(r))for(n=0,e=(t=r.match(i)).length;n<e;n+=1)s=t[n],r=r.replace(s,Array(s.length+1).join(" "))}(),n(/(\[[^\]]+\])/g,"b"),n(/(#[^\#\s\+>~\.\[:\)]+)/g,"a"),n(/(\.[^\s\+>~\.\[:\)]+)/g,"b"),n(/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi,"c"),n(/(:(?!not|global|local)[\w-]+\([^\)]*\))/gi,"b"),n(/(:(?!not|global|local)[^\s\+>~\.\[:]+)/g,"b"),r=(r=(r=(r=(r=(r=r.replace(/[\*\s\+>~]/g," ")).replace(/[#\.]/g," ")).replace(/:not/g," ")).replace(/:local/g," ")).replace(/:global/g," ")).replace(/[\(\)]/g," "),n(/([^\s\+>~\.\[:]+)/g,"c"),i.sort((function(t,n){return t.index-n.index})),{selector:t,specificity:"0,"+s.a.toString()+","+s.b.toString()+","+s.c.toString(),specificityArray:[0,s.a,s.b,s.c],parts:i}},o=e(783);function c(){const t=["endsWith","length","trim","1288216UEllLf","1067756KJagSC","5ATOzYp","9QjKaiG","filter","slice","97741IlZYTP","1814770Hnhjjy","1415301SeNErS","push","2549886gwdrZy","replace","309305aGjSZH","2NIlVOt"];return(c=function(){return t})()}function a(t){const n=u,e=[];let r="",s=0;for(;s<t[n(422)];){const i=t[s];if("("===i){const e=l(t,s+1);if(-1===e)return[];r+=t[n(429)](s,e+1),s=e+1}else","!==i||r[n(421)]("\\")?(r+=i,s++):(e[n(416)](r[n(423)]()),r="",s++)}return r[n(423)]()&&e[n(416)](r[n(423)]()),e[n(428)](Boolean)}function u(t,n){const e=c();return(u=function(t,n){return e[t-=414]})(t,n)}function l(t,n){const e=u;let r=1;for(let s=n;s<t[e(422)];s++){const n=t[s];if("("===n)r++;else if(")"===n&&(r--,0===r))return s}return-1}function f(t){const n=u;return t[n(418)](/!\s*important/i,"")[n(423)]()}function p(t){const n=y,e=new Map;for(const{stylesMap:r,flatSelector:s}of t){if(n(139)!==s)continue;const t=d(e[n(133)][n(141)](e),r);for(const[r,s]of t)e[n(135)](r,s)}return e}function y(t,n){const e=h();return(y=function(t,n){return e[t-=122]})(t,n)}function h(){const t=["remove","get","getStylesEntries","set","indexOf","285829PDXnWt","var(",":root","488871WkZIYv","bind","7EKZnHU","slice","995155WsCcoI","6rPzGUB","512726UtNase","532508gYQWXi","has","1991187wRibRD","startsWith","substring","1452664eYsMzR","length"];return(h=function(){return t})()}function d(t,n){const e=y,r=new Map,s=n=>r[e(126)](n)?r[e(133)](n):t(n);for(const[t,i]of n[e(134)]())if(i&&t[e(128)]("--")){const o=I(s,i);r[e(135)](t,o),n[e(132)](t)}for(const[t,r]of n[e(134)]())if(r){const i=I(s,r);n[e(135)](t,i)}return r}function I(t,n){return function(t,n){const e=y;let r="",s=0;for(;s<t[e(131)];){const i=t[e(136)](e(138),s);if(-1===i){r+=t[e(143)](s);break}r+=t[e(143)](s,i);const o=i+4,c=l(t,o);r+=n(t[e(129)](o,c)),s=c+1}return r}(n,(n=>{const e=y,[r,s]=a(n),i=t(r);return void 0!==i?i:s?I(t,s):e(138)+r+")"}))}function w(){const t=["length","sort","stylesProcessor","3vwCuCG","4204802MIOQzM","7570GbvKbV","inlineCss","20997lIWuJf","445VJMVff","23419fUmNvj","stylesheets","625516ckRnMq","filter","36268dEPwmK","703531YmsNFj","specificityArray","flatMap","specificity","cssText","replace","from","join","cssRules","setTo","4776vLmIoy","map","8148846bKdrkg","trim"];return(w=function(){return t})()}function g(t,n){const e=w();return(g=function(t,n){return e[t-=333]})(t,n)}async function m(t){const e=g,r=[await(0,n.collectStylesheets)(t[e(340)]),t[e(336)]][e(342)]((t=>t&&t[e(358)]))[e(351)]("\n"),c=await async function(t,n){const r=e,c=new CSSStyleSheet;return await c[r(349)](n),S(Array[r(350)](c[r(352)])[r(342)]((t=>t instanceof CSSStyleRule)))[r(346)]((({selectorText:n,contentCssText:e})=>{const i=r,c=a(n),u=new o.StylesMap(t)[i(353)](e);return c[i(355)]((t=>({stylesMap:u,flatSelector:t,specificity:s(t)[0][i(345)]})))}))[r(359)](((t,n)=>function(t,n){var e,r,s;if("string"==typeof t){if(-1!==t.indexOf(","))throw"Invalid CSS selector";e=i(t).specificityArray}else{if(!Array.isArray(t))throw"Invalid CSS selector or specificity array";if(4!==t.filter((function(t){return"number"==typeof t})).length)throw"Invalid specificity array";e=t}if("string"==typeof n){if(-1!==n.indexOf(","))throw"Invalid CSS selector";r=i(n).specificityArray}else{if(!Array.isArray(n))throw"Invalid CSS selector or specificity array";if(4!==n.filter((function(t){return"number"==typeof t})).length)throw"Invalid specificity array";r=n}for(s=0;s<4;s+=1){if(e[s]<r[s])return-1;if(e[s]>r[s])return 1}return 0}(t[r(347)],n[r(347)])))}(t[e(360)],r);return{parsedCssRules:c,rootCssVariables:p(c)}}function S(t,n=""){const e=g;return t[e(346)]((t=>{const r=e,{selectorText:s,cssText:i,cssRules:o}=t;if(!s)return[];const c=s[r(349)](/&/g,n);let a=i[r(349)](s,"")[r(357)]()[r(349)](/^{|}$/g,"");if(!o||!o[r(358)])return[{selectorText:c,contentCssText:a}];for(const t of o)a=a[r(349)](t[r(348)],"")[r(357)]();return[{selectorText:c,contentCssText:a},...S(Array[r(350)](o),c)]}))}function b(t,n){const e=C();return(b=function(t,n){return e[t-=295]})(t,n)}function C(){const t=["fallbackCSSVariablesLookup","1710174bSOrfn","getAttribute","flatSelector","element","10esavtm","5biPXqw","parsedCssRules","filter","stylesProcessor","getStylesEntries","5932780PWdJmy","3uXMDfe","matches","12qoYKVI","style","3820795pzkNQJ","setTo","map","392rxmiDj","965819wqeulB","112987eeqZpK","string","stylesMap","set","9064KPdQWK","5327091peIaED"];return(C=function(){return t})()}function x(t,n){const e=b,r=new o.StylesMap(t);for(const s of n){let n=null;if(n=e(315)==typeof s?new o.StylesMap(t)[e(310)](s):s,n)for(const[t,s]of n[e(303)]())r[e(317)](t,s)}return r}!function(t){const n=u,e=t();for(;;)try{if(294489===-parseInt(n(419))/1*(-parseInt(n(420))/2)+parseInt(n(415))/3+-parseInt(n(425))/4*(-parseInt(n(426))/5)+-parseInt(n(417))/6+parseInt(n(430))/7+-parseInt(n(424))/8+-parseInt(n(427))/9*(parseInt(n(414))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(c),function(t){const n=y,e=t();for(;;)try{if(159735===-parseInt(n(137))/1+parseInt(n(124))/2+parseInt(n(140))/3+-parseInt(n(125))/4+parseInt(n(122))/5*(parseInt(n(123))/6)+-parseInt(n(142))/7*(-parseInt(n(130))/8)+-parseInt(n(127))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(h),function(t){const n=g,e=t();for(;;)try{if(777625===parseInt(n(344))/1+-parseInt(n(341))/2*(-parseInt(n(333))/3)+-parseInt(n(343))/4*(-parseInt(n(338))/5)+parseInt(n(356))/6+parseInt(n(334))/7+-parseInt(n(354))/8*(parseInt(n(337))/9)+-parseInt(n(335))/10*(parseInt(n(339))/11))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(w),function(t){const n=b,e=t();for(;;)try{if(798584===parseInt(n(313))/1+-parseInt(n(318))/2+-parseInt(n(305))/3*(parseInt(n(304))/4)+-parseInt(n(299))/5*(-parseInt(n(321))/6)+parseInt(n(314))/7*(parseInt(n(312))/8)+parseInt(n(319))/9*(parseInt(n(298))/10)+parseInt(n(309))/11*(-parseInt(n(307))/12))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(C);const v=A;function P(){const t=["EDITOR_STYLES","locale","3416697emCDoj","1021775gCPAzB","createDocumentFragment","_collectAndApplyStyles","refresh","pending","main","map","4224115UxKiYQ","style","6364908OyFPZm","3485268NsWSxs","editor","4648380QtKAbK","document","isEnabled","then","firstChild","htmlWriter","viewToDom","isBusy","1428226qqHzYI","ck-content","getHtml","transformations","toView","class","getRoot","size","execute","_processElementTree","_stylesProcessor","div","getStylesEntries","setAttribute","set","config","exportInlineStyles","value","_getRootDataHTMLFragment","get","bind","has","removeAttribute","domConverter","ownerDocument","appendChild","htmlProcessor","stylesProcessor","data","finally","affectsData","join","getAttribute","children"];return(P=function(){return t})()}function A(t,n){const e=P();return(A=function(t,n){return e[t-=267]})(t,n)}!function(t){const n=A,e=t();for(;;)try{if(998752===-parseInt(n(312))/1+-parseInt(n(302))/2+parseInt(n(291))/3+parseInt(n(304))/4+parseInt(n(292))/5+parseInt(n(301))/6+parseInt(n(299))/7)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(P);class L extends t.Command{[v(322)];constructor(t){const n=v;super(t),this[n(269)](n(311),!1),this[n(322)]=this[n(303)][n(283)][n(282)],(0,o.addMarginRules)(this[n(322)]),(0,o.addPaddingRules)(this[n(322)]),this[n(285)]=!1}[v(295)](){const t=v;this[t(306)]=!this[t(311)],this[t(272)]=this[t(311)]?t(296):void 0}async[v(320)](t){const e=v,r=this[e(303)][e(270)][e(274)](e(271)),{contentLanguageDirection:s}=this[e(303)][e(290)],{rootName:i=e(297),dataControllerDowncastOptions:o={},transformations:c=r[e(315)]||[]}=t||{};this[e(311)]=!0,this[e(295)]();const a=this[e(273)](i,o),u=(0,n.createElement)(a[e(279)],e(323),{dir:s,class:e(313)},[a]);return this[e(294)](c,u)[e(307)]((()=>{const t=e,n=function(t){const n=A,e=t[n(279)][n(293)]();for(;t[n(308)];)e[n(280)](t[n(308)]);return e}(u),r=u[t(287)](t(300));if(r)for(const e of n[t(288)]){const n=e[t(287)](t(300)),s=x(this[t(322)],[r,n]);e[t(268)](t(300),K(s))}return this[t(303)][t(283)][t(281)][t(309)][t(314)](n)}))[e(284)]((()=>{const t=e;this[t(311)]=!1,this[t(295)]()}))}[v(273)](t,n){const e=v,{data:r,model:s}=this[e(303)],i=s[e(305)][e(318)](t),o=r[e(316)](i,n);return r[e(281)][e(278)][e(310)](o)}async[v(294)](t,n){const e=v,{stylesheets:r,inlineCss:s,stripCssClasses:i}=this[e(303)][e(270)][e(274)](e(271)),{parsedCssRules:o,rootCssVariables:c}=await m({stylesheets:r||[e(289)],stylesProcessor:this[e(322)],inlineCss:s});this[e(321)]({transformations:t,parsedCssRules:o,element:n,stripCssClasses:i,parentCSSVariablesLookup:c[e(274)][e(275)](c)})}[v(321)]({element:t,parsedCssRules:n,parentCSSVariablesLookup:e,stripCssClasses:r,transformations:s}){const i=v,{stylesMap:o,localCSSVariables:c}=function(t){const n=b,e=t[n(297)][n(295)](n(308))||"",r=t[n(300)][n(301)]((e=>t[n(297)][n(306)](e[n(296)])))[n(311)]((t=>t[n(316)])),s=x(t[n(302)],[...r,e]);return{localCSSVariables:d(t[n(320)],s),stylesMap:s}}({stylesProcessor:this[i(322)],fallbackCSSVariablesLookup:e,parsedCssRules:n,element:t});for(const n of s)n(t,o);o[i(319)]?t[i(268)](i(300),K(o)):t[i(277)](i(300));const a=t=>c[i(276)](t)?c[i(274)](t):e(t);for(const e of t[i(288)])e instanceof HTMLElement&&this[i(321)]({element:e,parentCSSVariablesLookup:a,parsedCssRules:n,stripCssClasses:r,transformations:s});r&&t[i(277)](i(317))}}function K(t){const n=v;return t[n(267)]()[n(298)]((t=>t[n(286)](":")))[n(286)](";")+";"}function E(t,n){const e=k();return(E=function(t,n){return e[t-=283]})(t,n)}const T=E;function k(){const t=["isOfficialPlugin","config","isPremiumPlugin","21942szFCdD","exportInlineStyles","add","616364ZPONmx","pluginName","13708576bixSlW","stop","57354sSIpPj","ExportInlineStylesEditing","5212228wRZyNz","commands","209845nmzpRh","fromCharCode","map","afterInit","join","editor","define","href","13590wTPmlm","300KtJHvb","init"];return(k=function(){return t})()}!function(t){const n=E,e=t();for(;;)try{if(490495===-parseInt(n(302))/1+parseInt(n(298))/2+-parseInt(n(291))/3+-parseInt(n(294))/4+parseInt(n(285))/5*(-parseInt(n(286))/6)+-parseInt(n(300))/7+parseInt(n(296))/8)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(k);class M extends t.Plugin{static get[T(295)](){return T(299)}static get[T(288)](){return!0}static get[T(290)](){return!0}[T(287)](){const t=T;this[t(307)][t(289)][t(283)](t(292),{}),this[t(307)][t(301)][t(293)](t(292),new L(this[t(307)]))}[T(305)](){!async function(t){const e=d([66,99,88,122,90,110,67,51,89,120,104,114,101,106,97,85,75,81,78,118,48,98,86,74,121,55,49,53,76,71,100,117,68,113,77,57,73,56,54,87,80,50,109,119,65,116,79,105,103,52,107,84,83,108,111,69,112,82,70,115,102,72]),r=window[d([68,97,116,101])][d([110,111,119])](),s=t[d([101,100,105,116,111,114])],i=new(window[d([80,114,111,109,105,115,101])])((t=>{s[d([111,110,99,101])](d([114,101,97,100,121]),t)})),o={[d([107,116,121])]:d([69,67]),[d([117,115,101])]:d([115,105,103]),[d([99,114,118])]:d([80,45,50,53,54]),[d([120])]:d([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[d([121])]:d([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[d([97,108,103])]:d([69,83,50,53,54])},c=s[d([99,111,110,102,105,103])][d([103,101,116])](d([108,105,99,101,110,115,101,75,101,121]));function a(t){const n=[new(window[d([80,114,111,109,105,115,101])])((t=>setTimeout(t,605900))),i[d([116,104,101,110])]((()=>new(window[d([80,114,111,109,105,115,101])])((t=>{let n=0;s[d([109,111,100,101,108])][d([111,110])](d([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((e,r)=>{r[0][d([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&n++,504==n&&(t(),e[d([111,102,102])]())}))}))))];return window[d([80,114,111,109,105,115,101])][d([114,97,99,101])](n)[d([116,104,101,110])]((()=>t))}function u(t){return t[d([115,116,97,114,116,115,87,105,116,104])](d([101,121]))?JSON[d([112,97,114,115,101])](l(t)):null}function l(t){return window[d([97,116,111,98])](t[d([114,101,112,108,97,99,101])](/-/g,d([43]))[d([114,101,112,108,97,99,101])](/_/g,d([47])))}function f(t){let n=5381;function e(t){for(let e=0;e<t[d([108,101,110,103,116,104])];e++){const r=t[d([99,104,97,114,67,111,100,101,65,116])](e);n=(n<<5)+n+r,n&=n}}return function t(n){Array[d([105,115,65,114,114,97,121])](n)?n[d([102,111,114,69,97,99,104])](t):n&&typeof n==d([111,98,106,101,99,116])?Object[d([101,110,116,114,105,101,115])](n)[d([115,111,114,116])]()[d([102,111,114,69,97,99,104])]((([n,r])=>{e(n),t(r)})):e(window[d([83,116,114,105,110,103])](n))}(t),n>>>0}function p(t){return t[d([116,111,83,116,114,105,110,103])](16)[d([112,97,100,83,116,97,114,116])](8,d([48]))}function y(t){return t[d([115,112,108,105,116])]("")[d([114,101,118,101,114,115,101])]()[d([106,111,105,110])]("")}function h(){}function d(t){const n=E;return t[n(304)]((t=>String[n(303)](t)))[n(306)]("")}!function(t){const n=function(){const t=window[d([83,116,114,105,110,103])](window[d([112,101,114,102,111,114,109,97,110,99,101])][d([110,111,119])]())[d([114,101,112,108,97,99,101])](d([46]),"");let n=d([66]);for(let r=0;r<t[d([108,101,110,103,116,104])];r+=2){let s=window[d([112,97,114,115,101,73,110,116])](t[d([115,117,98,115,116,114,105,110,103])](r,r+2));s>=e[d([108,101,110,103,116,104])]&&(s-=e[d([108,101,110,103,116,104])]),n+=e[s]}return n}();s[n]=d([101,120,112,111,114,116,73,110,108,105,110,101,83,116,121,108,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=d([86,97,108,105,100])&&async function(){const t=E;await i;const n=s[t(301)][d([103,101,116])](d([101,120,112,111,114,116,73,110,108,105,110,101,83,116,121,108,101,115]));n&&n[d([111,110])](d([101,120,101,99,117,116,101]),(n=>{n[t(297)]()}),{priority:d([104,105,103,104,101,115,116])}),s[d([109,111,100,101,108])][d([99,104,97,110,103,101])]=h,s[d([109,111,100,101,108])][d([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,s[d([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](d([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return c==d([71,80,76])?d([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=c[d([115,112,108,105,116])](d([46]));return 3!=t[d([108,101,110,103,116,104])]?null:n(t[1]);function n(t){const n=u(t);return n&&e()?n:null;function e(){const t=n[d([106,116,105])],e=window[d([112,97,114,115,101,73,110,116])](t[d([115,117,98,115,116,114,105,110,103])](t[d([108,101,110,103,116,104])]-8),16),r={...n,[d([106,116,105])]:t[d([115,117,98,115,116,114,105,110,103])](0,t[d([108,101,110,103,116,104])]-8)};return delete r[d([118,99])],f(r)==e}}}(),t?(t[d([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[d([80,114,111,109,105,115,101])])((a=>{if(o())return a(d([86,97,108,105,100]));c(),s[d([100,101,99,111,114,97,116,101])](d([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let u=!1;const l=(0,n.uid)();function h(t){return!!t&&(typeof t===d([111,98,106,101,99,116])||typeof t===d([102,117,110,99,116,105,111,110]))&&typeof t[d([116,104,101,110])]===d([102,117,110,99,116,105,111,110])&&typeof t[d([99,97,116,99,104])]===d([102,117,110,99,116,105,111,110])}function I(n){c(n)[d([116,104,101,110])]((t=>t&&t[d([115,116,97,116,117,115])]==d([111,107])?p(f(l+e))!=t[d([118,101,114,105,102,105,99,97,116,105,111,110])]?d([85,115,97,103,101,76,105,109,105,116]):d([86,97,108,105,100]):d([85,115,97,103,101,76,105,109,105,116])))[d([116,104,101,110])]((t=>(i(),t)),(()=>{const t=o();return null==t?(i(),d([86,97,108,105,100])):d(r-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])}))[d([116,104,101,110])](a)[d([99,97,116,99,104])]((()=>{a(d([85,115,97,103,101,76,105,109,105,116]))}));const s=36e5;function i(){const n=d([108,108,99,116,45])+p(f(t)),e=y(p(window[d([77,97,116,104])][d([99,101,105,108])](r/s)));window[d([108,111,99,97,108,83,116,111,114,97,103,101])][d([115,101,116,73,116,101,109])](n,e)}function o(){const n=d([108,108,99,116,45])+p(f(t)),e=window[d([108,111,99,97,108,83,116,111,114,97,103,101])][d([103,101,116,73,116,101,109])](n);return e?window[d([112,97,114,115,101,73,110,116])](y(e),16)*s:null}function c(t){return new(window[d([80,114,111,109,105,115,101])])(((n,e)=>{t[d([116,104,101,110])](n,e),window[d([115,101,116,84,105,109,101,111,117,116])](e,12e4)}))}}s[d([111,110])](d([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),((n,e)=>{if(e[0]!=t)return a(d([85,115,97,103,101,76,105,109,105,116]));e[1]={...e[1],[d([114,101,113,117,101,115,116,73,100])]:l}}),{[d([112,114,105,111,114,105,116,121])]:d([104,105,103,104])}),s[d([111,110])](d([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(t=>{h(t[d([114,101,116,117,114,110])])&&(u=!0,I(t[d([114,101,116,117,114,110])]))}),{[d([112,114,105,111,114,105,116,121])]:d([108,111,119])}),i[d([116,104,101,110])]((()=>{u||a(d([85,115,97,103,101,76,105,109,105,116]))}))}));function o(){return s[d([101,100,105,116,105,110,103])][d([118,105,101,119])][d([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==d([97,117,116,111])}function c(){s[d([101,100,105,116,105,110,103])][d([118,105,101,119])][d([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=d([97,117,116,111])}}(t[d([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[d([106,116,105])])),await async function(){let t=!0;try{const r=c[d([115,112,108,105,116])](d([46])),[s,i,o]=r;return n(s),await e(s,i,o),t}catch(t){return!1}function n(n){const e=u(n);e&&e[d([97,108,103])]==d([69,83,50,53,54])||(t=!1)}async function e(n,e,r){const s=window[d([85,105,110,116,56,65,114,114,97,121])][d([102,114,111,109])](l(r),(t=>t[d([99,104,97,114,67,111,100,101,65,116])](0))),i=(new(window[d([84,101,120,116,69,110,99,111,100,101,114])]))[d([101,110,99,111,100,101])](n+d([46])+e),c=window[d([99,114,121,112,116,111])][d([115,117,98,116,108,101])];if(!c)return;const a=await c[d([105,109,112,111,114,116,75,101,121])](d([106,119,107]),o,{[d([110,97,109,101])]:d([69,67,68,83,65]),[d([110,97,109,101,100,67,117,114,118,101])]:d([80,45,50,53,54])},!1,[d([118,101,114,105,102,121])]);await c[d([118,101,114,105,102,121])]({[d([110,97,109,101])]:d([69,67,68,83,65]),[d([104,97,115,104])]:{[d([110,97,109,101])]:d([83,72,65,45,50,53,54])}},a,s,i)||(t=!1)}}()?function(){const n=t[d([102,101,97,116,117,114,101,115])];return!(!n||!n[d([105,110,99,108,117,100,101,115])](d([42]))&&!n[d([105,110,99,108,117,100,101,115])](d([69,73,83])))}()?function(){const n=[d([101,118,97,108,117,97,116,105,111,110]),d([116,114,105,97,108])][d([105,110,99,108,117,100,101,115])](t[d([108,105,99,101,110,115,101,84,121,112,101])])?r/1e3:1742947200;return t[d([101,120,112])]<n}()?d([69,120,112,105,114,101,100]):function(){const n=E,e=t[d([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[d([108,101,110,103,116,104])])return!0;const{hostname:r}=new URL(window[d([108,111,99,97,116,105,111,110])][n(284)]);if(e[d([105,110,99,108,117,100,101,115])](r))return!0;const s=r[d([115,112,108,105,116])](d([46]));return e[d([102,105,108,116,101,114])]((t=>t[d([105,110,99,108,117,100,101,115])](d([42]))))[d([109,97,112])]((t=>t[d([115,112,108,105,116])](d([46]))))[d([115,111,109,101])]((t=>s[d([101,118,101,114,121])](((n,e)=>t[e]===n||t[e]===d([42])))))}()?(t[d([108,105,99,101,110,115,101,84,121,112,101])]==d([101,118,97,108,117,97,116,105,111,110])&&(e=a(d([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[d([108,105,99,101,110,115,101,84,121,112,101])]==d([116,114,105,97,108])&&(e=a(d([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[d([80,114,111,109,105,115,101])])(((t,n)=>{e[d([116,104,101,110])](t,n),h[d([116,104,101,110])]((n=>{n!=d([86,97,108,105,100])&&t(n)}),n)})):e||h||d([86,97,108,105,100]))):d([68,111,109,97,105,110,76,105,109,105,116]):d([78,111,116,65,108,108,111,119,101,100]):d([73,110,118,97,108,105,100])):d([73,110,118,97,108,105,100]))}catch(t){return d([73,110,118,97,108,105,100])}}())}(this)}}function R(){const t=["domainLimit","usageLimit","featureNotAllowed","exportInlineStylesLicenseKeyUsageLimit","evaluationLimit","ExportInlineStyles","_licenseKeyCheckInterval","get","isOfficialPlugin","destroy","21KDNPLA","trialLimit","expired","exportInlineStylesLicenseKeyExpired","_showLicenseError","exportInlineStylesLicenseKeyNotAllowed","301374PDpRlF","exportInlineStylesLicenseKeyInvalid","479560dmeSks","editor","exportInlineStylesLicenseKeyEvaluationLimit","1093790AkXRjA","243083YTOMTs","exportInlineStylesLicenseKeyDomainLimit","36iSJwJe","44325SsubPe","requires","invalid","81066ozeTdp","isPremiumPlugin","187464BkPKPI","exportInlineStylesLicenseKeyValid","init","exportInlineStylesLicenseKeyTrialLimit","config","12Yomznd","licenseKey","pluginName"];return(R=function(){return t})()}function j(t,n){const e=R();return(j=function(t,n){return e[t-=337]})(t,n)}const O=j;!function(t){const n=j,e=t();for(;;)try{if(128346===-parseInt(n(343))/1+-parseInt(n(339))/2+-parseInt(n(349))/3+-parseInt(n(356))/4*(-parseInt(n(346))/5)+parseInt(n(337))/6*(parseInt(n(369))/7)+parseInt(n(351))/8+parseInt(n(345))/9*(parseInt(n(342))/10))break;e.push(e.shift())}catch(t){e.push(e.shift())}}(R);class D extends t.Plugin{[O(357)];[O(365)];static get[O(358)](){return O(364)}static get[O(367)](){return!0}static get[O(350)](){return!0}static get[O(347)](){return[M]}[O(353)](){const t=O;this[t(357)]=this[t(340)][t(355)][t(366)](t(357));const n=this[t(340)];this[t(365)]=setInterval((()=>{const e=t;let r;for(const t in n){const s=t,i=n[s];if(e(352)==i||e(338)==i||e(372)==i||e(344)==i||e(374)==i||e(341)==i||e(354)==i||e(362)==i){delete n[s],r=i,clearInterval(this[e(365)]),this[e(365)]=void 0;break}}e(338)==r&&n[e(373)](e(348)),e(372)==r&&n[e(373)](e(371)),e(344)==r&&n[e(373)](e(359)),e(374)==r&&n[e(373)](e(361),e(364)),e(341)==r&&n[e(373)](e(363)),e(354)==r&&n[e(373)](e(370)),e(362)==r&&n[e(373)](e(360))}),1e3)}[O(368)](){const t=O;super[t(368)](),this[t(365)]&&clearInterval(this[t(365)])}}function V(t,n){var e=N();return(V=function(t,n){return e[t-=179]})(t,n)}function N(){var t=["1705878OEZABd","2756048brRgbS","6XalubQ","1475370WWszSQ","5280918CrZMeD","5132075cQdLQl","460795wdTpVL","2844648aaauaP","7MumiCo"];return(N=function(){return t})()}!function(t){for(var n=V,e=t();;)try{if(869200===parseInt(n(187))/1+parseInt(n(184))/2+parseInt(n(183))/3*(parseInt(n(179))/4)+-parseInt(n(186))/5+-parseInt(n(185))/6*(parseInt(n(180))/7)+parseInt(n(182))/8+-parseInt(n(181))/9)break;e.push(e.shift())}catch(t){e.push(e.shift())}}(N)})(),(window.CKEditor5=window.CKEditor5||{}).exportInlineStyles=r})();
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"plugins": [
|
|
3
|
+
{
|
|
4
|
+
"name": "Export with Inline Styles",
|
|
5
|
+
"className": "ExportInlineStyles",
|
|
6
|
+
"description": "Introduces tools for generating content with inline styles.",
|
|
7
|
+
"docs": "features/export-inline-styles.html",
|
|
8
|
+
"path": "src/exportinlinestyles.js"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
package/dist/index.css
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
import{Command as _0x15fcb6,Plugin as _0x270635}from'@ckeditor/ckeditor5-core/dist/index.js';import{collectStylesheets as _0x57e019,createElement as _0x244fb9,uid as _0x455885}from'@ckeditor/ckeditor5-utils/dist/index.js';import{calculate as _0x102af9,compare as _0x31ff13}from'specificity';import{StylesMap as _0x479950,addMarginRules as _0x1f5bff,addPaddingRules as _0x4e1a72}from'@ckeditor/ckeditor5-engine/dist/index.js';function C(_0x45255c){const _0x3387e4=[];let _0x12e5c7='',_0x5c5cad=0x0;for(;_0x5c5cad<_0x45255c['length'];){const _0x4b1e89=_0x45255c[_0x5c5cad];if('('===_0x4b1e89){const _0x401a9f=M(_0x45255c,_0x5c5cad+0x1);if(-0x1===_0x401a9f)return[];_0x12e5c7+=_0x45255c['slice'](_0x5c5cad,_0x401a9f+0x1),_0x5c5cad=_0x401a9f+0x1;}else','!==_0x4b1e89||_0x12e5c7['endsWith']('\x5c')?(_0x12e5c7+=_0x4b1e89,_0x5c5cad++):(_0x3387e4['push'](_0x12e5c7['trim']()),_0x12e5c7='',_0x5c5cad++);}return _0x12e5c7['trim']()&&_0x3387e4['push'](_0x12e5c7['trim']()),_0x3387e4['filter'](Boolean);}function M(_0x41b51a,_0xcea609){let _0x185f99=0x1;for(let _0x12bf96=_0xcea609;_0x12bf96<_0x41b51a['length'];_0x12bf96++){const _0x2d9a75=_0x41b51a[_0x12bf96];if('('===_0x2d9a75)_0x185f99++;else{if(')'===_0x2d9a75&&(_0x185f99--,0x0===_0x185f99))return _0x12bf96;}}return-0x1;}function g(_0x4d7d2d){return _0x4d7d2d['replace'](/!\s*important/i,'')['trim']();}function d(_0x24d5b6,_0x43c00a){const _0x1f6667=new Map(),_0x2ea56f=_0x22a118=>_0x1f6667['has'](_0x22a118)?_0x1f6667['get'](_0x22a118):_0x24d5b6(_0x22a118);for(const [_0x517db3,_0x5738bf]of _0x43c00a['getStylesEntries']())if(_0x5738bf&&_0x517db3['startsWith']('--')){const _0xaea9e3=b(_0x2ea56f,_0x5738bf);_0x1f6667['set'](_0x517db3,_0xaea9e3),_0x43c00a['remove'](_0x517db3);}for(const [_0x5a72fd,_0x18228c]of _0x43c00a['getStylesEntries']())if(_0x18228c){const _0x163587=b(_0x2ea56f,_0x18228c);_0x43c00a['set'](_0x5a72fd,_0x163587);}return _0x1f6667;}function b(_0x2e4cba,_0x3fac1b){return function(_0x354496,_0x17aba9){let _0x1b77dc='',_0x476267=0x0;for(;_0x476267<_0x354496['length'];){const _0x320cfd=_0x354496['indexOf']('var(',_0x476267);if(-0x1===_0x320cfd){_0x1b77dc+=_0x354496['slice'](_0x476267);break;}_0x1b77dc+=_0x354496['slice'](_0x476267,_0x320cfd);const _0x3a97e7=_0x320cfd+0x4,_0x565fe4=M(_0x354496,_0x3a97e7);_0x1b77dc+=_0x17aba9(_0x354496['substring'](_0x3a97e7,_0x565fe4)),_0x476267=_0x565fe4+0x1;}return _0x1b77dc;}(_0x3fac1b,_0x1d61c8=>{const [_0x15a22b,_0x5c99b5]=C(_0x1d61c8),_0x24eff1=_0x2e4cba(_0x15a22b);return void 0x0!==_0x24eff1?_0x24eff1:_0x5c99b5?b(_0x2e4cba,_0x5c99b5):'var('+_0x15a22b+')';});}async function r(_0x4cd130){const _0x354475=[await _0x57e019(_0x4cd130['stylesheets']),_0x4cd130['inlineCss']]['filter'](_0x2d9834=>_0x2d9834&&_0x2d9834['length'])['join']('\x0a'),_0xfaa9f1=await async function(_0x4c99ad,_0x23ffb8){const _0x55bd24=new CSSStyleSheet();return await _0x55bd24['replace'](_0x23ffb8),w(Array['from'](_0x55bd24['cssRules'])['filter'](_0x14f84a=>_0x14f84a instanceof CSSStyleRule))['flatMap'](({selectorText:_0x3fc63f,contentCssText:_0x5a59de})=>{const _0x5d7853=C(_0x3fc63f),_0x2fbf24=new _0x479950(_0x4c99ad)['setTo'](_0x5a59de);return _0x5d7853['map'](_0x501678=>({'stylesMap':_0x2fbf24,'flatSelector':_0x501678,'specificity':_0x102af9(_0x501678)[0x0]['specificityArray']}));})['sort']((_0x196ab3,_0x3704d1)=>_0x31ff13(_0x196ab3['specificity'],_0x3704d1['specificity']));}(_0x4cd130['stylesProcessor'],_0x354475);return{'parsedCssRules':_0xfaa9f1,'rootCssVariables':function(_0x2aa7d7){const _0xbaafb0=new Map();for(const {stylesMap:_0x3daf52,flatSelector:_0x378975}of _0x2aa7d7){if(':root'!==_0x378975)continue;const _0x44a45e=d(_0xbaafb0['get']['bind'](_0xbaafb0),_0x3daf52);for(const [_0x51f40a,_0x500e72]of _0x44a45e)_0xbaafb0['set'](_0x51f40a,_0x500e72);}return _0xbaafb0;}(_0xfaa9f1)};}function w(_0x24b57c,_0x40e96d=''){return _0x24b57c['flatMap'](_0x2bafd1=>{const {selectorText:_0x5ae0f3,cssText:_0x2eeaa2,cssRules:_0x45f1cb}=_0x2bafd1;if(!_0x5ae0f3)return[];const _0x166ef7=_0x5ae0f3['replace'](/&/g,_0x40e96d);let _0x4d2e8e=_0x2eeaa2['replace'](_0x5ae0f3,'')['trim']()['replace'](/^{|}$/g,'');if(!_0x45f1cb||!_0x45f1cb['length'])return[{'selectorText':_0x166ef7,'contentCssText':_0x4d2e8e}];for(const _0x5f0f7e of _0x45f1cb)_0x4d2e8e=_0x4d2e8e['replace'](_0x5f0f7e['cssText'],'')['trim']();return[{'selectorText':_0x166ef7,'contentCssText':_0x4d2e8e},...w(Array['from'](_0x45f1cb),_0x166ef7)];});}function a(_0x4d8c2e,_0x5eb51e){const _0x41dd04=new _0x479950(_0x4d8c2e);for(const _0x1146b9 of _0x5eb51e){let _0x4f8808=null;if(_0x4f8808='string'==typeof _0x1146b9?new _0x479950(_0x4d8c2e)['setTo'](_0x1146b9):_0x1146b9,_0x4f8808){for(const [_0x15eac8,_0x2f15b0]of _0x4f8808['getStylesEntries']())_0x41dd04['set'](_0x15eac8,_0x2f15b0);}}return _0x41dd04;}class h extends _0x15fcb6{['_stylesProcessor'];constructor(_0x4c8125){super(_0x4c8125),this['set']('isBusy',!0x1),this['_stylesProcessor']=this['editor']['data']['stylesProcessor'],_0x1f5bff(this['_stylesProcessor']),_0x4e1a72(this['_stylesProcessor']),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}async['execute'](_0x3fb319){const _0x5156a3=this['editor']['config']['get']('exportInlineStyles'),{contentLanguageDirection:_0x42bdf9}=this['editor']['locale'],{rootName:_0xafce82='main',dataControllerDowncastOptions:_0x124044={},transformations:_0x555154=_0x5156a3['transformations']||[]}=_0x3fb319||{};this['isBusy']=!0x0,this['refresh']();const _0x4967a8=this['_getRootDataHTMLFragment'](_0xafce82,_0x124044),_0x108386=_0x244fb9(_0x4967a8['ownerDocument'],'div',{'dir':_0x42bdf9,'class':'ck-content'},[_0x4967a8]);return this['_collectAndApplyStyles'](_0x555154,_0x108386)['then'](()=>{const _0x232798=function(_0x364176){const _0x340f28=_0x364176['ownerDocument']['createDocumentFragment']();for(;_0x364176['firstChild'];)_0x340f28['appendChild'](_0x364176['firstChild']);return _0x340f28;}(_0x108386),_0x204467=_0x108386['getAttribute']('style');if(_0x204467)for(const _0x6b38cc of _0x232798['children']){const _0x325670=_0x6b38cc['getAttribute']('style'),_0x3d4fca=a(this['_stylesProcessor'],[_0x204467,_0x325670]);_0x6b38cc['setAttribute']('style',m(_0x3d4fca));}return this['editor']['data']['htmlProcessor']['htmlWriter']['getHtml'](_0x232798);})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_getRootDataHTMLFragment'](_0xf8d285,_0x1cf83e){const {data:_0x10da2d,model:_0x2503c8}=this['editor'],_0x1b99e7=_0x2503c8['document']['getRoot'](_0xf8d285),_0x132270=_0x10da2d['toView'](_0x1b99e7,_0x1cf83e);return _0x10da2d['htmlProcessor']['domConverter']['viewToDom'](_0x132270);}async['_collectAndApplyStyles'](_0x49d65c,_0x590286){const {stylesheets:_0x57809e,inlineCss:_0x48048a,stripCssClasses:_0x30c668}=this['editor']['config']['get']('exportInlineStyles'),{parsedCssRules:_0x49ab19,rootCssVariables:_0xf67aad}=await r({'stylesheets':_0x57809e||['EDITOR_STYLES'],'stylesProcessor':this['_stylesProcessor'],'inlineCss':_0x48048a});this['_processElementTree']({'transformations':_0x49d65c,'parsedCssRules':_0x49ab19,'element':_0x590286,'stripCssClasses':_0x30c668,'parentCSSVariablesLookup':_0xf67aad['get']['bind'](_0xf67aad)});}['_processElementTree']({element:_0x5c05cd,parsedCssRules:_0x5e7f77,parentCSSVariablesLookup:_0x12112a,stripCssClasses:_0x400d47,transformations:_0x5bd3d9}){const {stylesMap:_0x24369f,localCSSVariables:_0x2ec8fb}=function(_0x381191){const _0x4e4e40=_0x381191['element']['getAttribute']('style')||'',_0x19d98d=_0x381191['parsedCssRules']['filter'](_0x473dec=>_0x381191['element']['matches'](_0x473dec['flatSelector']))['map'](_0x24fc78=>_0x24fc78['stylesMap']),_0x4aaa4e=a(_0x381191['stylesProcessor'],[..._0x19d98d,_0x4e4e40]);return{'localCSSVariables':d(_0x381191['fallbackCSSVariablesLookup'],_0x4aaa4e),'stylesMap':_0x4aaa4e};}({'stylesProcessor':this['_stylesProcessor'],'fallbackCSSVariablesLookup':_0x12112a,'parsedCssRules':_0x5e7f77,'element':_0x5c05cd});for(const _0x1caa1c of _0x5bd3d9)_0x1caa1c(_0x5c05cd,_0x24369f);_0x24369f['size']?_0x5c05cd['setAttribute']('style',m(_0x24369f)):_0x5c05cd['removeAttribute']('style');const _0xd416aa=_0x4565cd=>_0x2ec8fb['has'](_0x4565cd)?_0x2ec8fb['get'](_0x4565cd):_0x12112a(_0x4565cd);for(const _0x56fc51 of _0x5c05cd['children'])_0x56fc51 instanceof HTMLElement&&this['_processElementTree']({'element':_0x56fc51,'parentCSSVariablesLookup':_0xd416aa,'parsedCssRules':_0x5e7f77,'stripCssClasses':_0x400d47,'transformations':_0x5bd3d9});_0x400d47&&_0x5c05cd['removeAttribute']('class');}}function m(_0x15aace){return _0x15aace['getStylesEntries']()['map'](_0x18aa28=>_0x18aa28['join'](':'))['join'](';')+';';}class i extends _0x270635{static get['pluginName'](){return'ExportInlineStylesEditing';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['editor']['config']['define']('exportInlineStyles',{}),this['editor']['commands']['add']('exportInlineStyles',new h(this['editor']));}['afterInit'](){!async function(_0x59476d){const _0x30363a=_0x532b3e([0x42,0x63,0x58,0x7a,0x5a,0x6e,0x43,0x33,0x59,0x78,0x68,0x72,0x65,0x6a,0x61,0x55,0x4b,0x51,0x4e,0x76,0x30,0x62,0x56,0x4a,0x79,0x37,0x31,0x35,0x4c,0x47,0x64,0x75,0x44,0x71,0x4d,0x39,0x49,0x38,0x36,0x57,0x50,0x32,0x6d,0x77,0x41,0x74,0x4f,0x69,0x67,0x34,0x6b,0x54,0x53,0x6c,0x6f,0x45,0x70,0x52,0x46,0x73,0x66,0x48]),_0x59e925=0x44ce85b2,_0xae175d=0x44c9e68a^_0x59e925,_0x21dfef=window[_0x532b3e([0x44,0x61,0x74,0x65])][_0x532b3e([0x6e,0x6f,0x77])](),_0x1e9ba0=_0x59476d[_0x532b3e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x42a3f2=new window[(_0x532b3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12dad1=>{_0x1e9ba0[_0x532b3e([0x6f,0x6e,0x63,0x65])](_0x532b3e([0x72,0x65,0x61,0x64,0x79]),_0x12dad1);}),_0x4b9050={[_0x532b3e([0x6b,0x74,0x79])]:_0x532b3e([0x45,0x43]),[_0x532b3e([0x75,0x73,0x65])]:_0x532b3e([0x73,0x69,0x67]),[_0x532b3e([0x63,0x72,0x76])]:_0x532b3e([0x50,0x2d,0x32,0x35,0x36]),[_0x532b3e([0x78])]:_0x532b3e([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x532b3e([0x79])]:_0x532b3e([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x532b3e([0x61,0x6c,0x67])]:_0x532b3e([0x45,0x53,0x32,0x35,0x36])},_0x35088b=_0x1e9ba0[_0x532b3e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x532b3e([0x67,0x65,0x74])](_0x532b3e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2d5d37(){let _0x304c8c,_0x1d77cc=null,_0x39666d=null;try{if(_0x35088b==_0x532b3e([0x47,0x50,0x4c]))return _0x532b3e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x304c8c=_0x2aae01(),!_0x304c8c)return _0x532b3e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x304c8c[_0x532b3e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x39666d=_0xd51066(_0x304c8c[_0x532b3e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x304c8c[_0x532b3e([0x6a,0x74,0x69])])),await _0x47567b()?_0x30a984()?_0x3baa37()?_0x532b3e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4dbd62()?(_0x304c8c[_0x532b3e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x532b3e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d77cc=_0x26384e(_0x532b3e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x304c8c[_0x532b3e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x532b3e([0x74,0x72,0x69,0x61,0x6c])&&(_0x1d77cc=_0x26384e(_0x532b3e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x242a40()):_0x532b3e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x532b3e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x532b3e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x38b32f){return _0x532b3e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3baa37(){const _0x1bfa71=[_0x532b3e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x532b3e([0x74,0x72,0x69,0x61,0x6c])][_0x532b3e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x304c8c[_0x532b3e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x21dfef/0x3e8:0xe10*_0xae175d;return _0x304c8c[_0x532b3e([0x65,0x78,0x70])]<_0x1bfa71;}function _0x30a984(){const _0x30c6b9=_0x304c8c[_0x532b3e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x30c6b9&&(!!_0x30c6b9[_0x532b3e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x532b3e([0x2a]))||!!_0x30c6b9[_0x532b3e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x532b3e([0x45,0x49,0x53])));}function _0x4dbd62(){const _0x6a920d=_0x304c8c[_0x532b3e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x6a920d||0x0==_0x6a920d[_0x532b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x56690a}=new URL(window[_0x532b3e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x6a920d[_0x532b3e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56690a))return!0x0;const _0x1555d0=_0x56690a[_0x532b3e([0x73,0x70,0x6c,0x69,0x74])](_0x532b3e([0x2e]));return _0x6a920d[_0x532b3e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1284d8=>_0x1284d8[_0x532b3e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x532b3e([0x2a])))[_0x532b3e([0x6d,0x61,0x70])](_0x248d5a=>_0x248d5a[_0x532b3e([0x73,0x70,0x6c,0x69,0x74])](_0x532b3e([0x2e])))[_0x532b3e([0x73,0x6f,0x6d,0x65])](_0x55e005=>_0x1555d0[_0x532b3e([0x65,0x76,0x65,0x72,0x79])]((_0x3fbdf2,_0x59c3f0)=>_0x55e005[_0x59c3f0]===_0x3fbdf2||_0x55e005[_0x59c3f0]===_0x532b3e([0x2a])));}function _0x242a40(){return _0x1d77cc&&_0x39666d?new window[(_0x532b3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x301c6b,_0xeaf593)=>{_0x1d77cc[_0x532b3e([0x74,0x68,0x65,0x6e])](_0x301c6b,_0xeaf593),_0x39666d[_0x532b3e([0x74,0x68,0x65,0x6e])](_0x117f53=>{_0x117f53!=_0x532b3e([0x56,0x61,0x6c,0x69,0x64])&&_0x301c6b(_0x117f53);},_0xeaf593);}):_0x1d77cc||_0x39666d||_0x532b3e([0x56,0x61,0x6c,0x69,0x64]);}}function _0xd51066(_0x17192e,_0x16b08a){return new window[(_0x532b3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39c701=>{if(_0x7cd79b())return _0x39c701(_0x532b3e([0x56,0x61,0x6c,0x69,0x64]));_0x92fefa(),_0x1e9ba0[_0x532b3e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x532b3e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x401038=!0x1;const _0x1a852a=_0x455885();function _0x4ad97a(_0x56d23d){return!!_0x56d23d&&(typeof _0x56d23d===_0x532b3e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x56d23d===_0x532b3e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x56d23d[_0x532b3e([0x74,0x68,0x65,0x6e])]===_0x532b3e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x56d23d[_0x532b3e([0x63,0x61,0x74,0x63,0x68])]===_0x532b3e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x16ed56(_0x45d2a6){_0x3183c3(_0x45d2a6)[_0x532b3e([0x74,0x68,0x65,0x6e])](_0x332d76=>{if(!_0x332d76||_0x332d76[_0x532b3e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x532b3e([0x6f,0x6b]))return _0x532b3e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x35525a(_0xe3d5fe(_0x1a852a+_0x16b08a))!=_0x332d76[_0x532b3e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x532b3e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x532b3e([0x56,0x61,0x6c,0x69,0x64]);})[_0x532b3e([0x74,0x68,0x65,0x6e])](_0x4d5faa=>(_0xd10f5d(),_0x4d5faa),()=>{const _0xf0d7de=_0x15922d();return null==_0xf0d7de?(_0xd10f5d(),_0x532b3e([0x56,0x61,0x6c,0x69,0x64])):_0x532b3e(_0x21dfef-_0xf0d7de>(0x60c201b2^_0x59e925)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x532b3e([0x74,0x68,0x65,0x6e])](_0x39c701)[_0x532b3e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x39c701(_0x532b3e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x481c15=0x44f86b32^_0x59e925;function _0xd10f5d(){const _0x41fd87=_0x532b3e([0x6c,0x6c,0x63,0x74,0x2d])+_0x35525a(_0xe3d5fe(_0x17192e)),_0x259034=_0x4ebbf7(_0x35525a(window[_0x532b3e([0x4d,0x61,0x74,0x68])][_0x532b3e([0x63,0x65,0x69,0x6c])](_0x21dfef/_0x481c15)));window[_0x532b3e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x532b3e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x41fd87,_0x259034);}function _0x15922d(){const _0x3cf312=_0x532b3e([0x6c,0x6c,0x63,0x74,0x2d])+_0x35525a(_0xe3d5fe(_0x17192e)),_0x51f225=window[_0x532b3e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x532b3e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3cf312);return _0x51f225?window[_0x532b3e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ebbf7(_0x51f225),0x10)*_0x481c15:null;}function _0x3183c3(_0x16a135){return new window[(_0x532b3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d4892,_0x28f814)=>{_0x16a135[_0x532b3e([0x74,0x68,0x65,0x6e])](_0x2d4892,_0x28f814),window[_0x532b3e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x28f814,0x44cf5172^_0x59e925);});}}_0x1e9ba0[_0x532b3e([0x6f,0x6e])](_0x532b3e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x376132,_0xbf59a4)=>{if(_0xbf59a4[0x0]!=_0x17192e)return _0x39c701(_0x532b3e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xbf59a4[0x1]={..._0xbf59a4[0x1],[_0x532b3e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1a852a};},{[_0x532b3e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x532b3e([0x68,0x69,0x67,0x68])}),_0x1e9ba0[_0x532b3e([0x6f,0x6e])](_0x532b3e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4f0999=>{_0x4ad97a(_0x4f0999[_0x532b3e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x401038=!0x0,_0x16ed56(_0x4f0999[_0x532b3e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x532b3e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x532b3e([0x6c,0x6f,0x77])}),_0x42a3f2[_0x532b3e([0x74,0x68,0x65,0x6e])](()=>{_0x401038||_0x39c701(_0x532b3e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x7cd79b(){return _0x1e9ba0[_0x532b3e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x532b3e([0x76,0x69,0x65,0x77])][_0x532b3e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x532b3e([0x61,0x75,0x74,0x6f]);}function _0x92fefa(){_0x1e9ba0[_0x532b3e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x532b3e([0x76,0x69,0x65,0x77])][_0x532b3e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x532b3e([0x61,0x75,0x74,0x6f]);}}function _0x26384e(_0x411e73){const _0x376086=[new window[(_0x532b3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x524caf=>setTimeout(_0x524caf,0x44c7bb7e^_0x59e925)),_0x42a3f2[_0x532b3e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x532b3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2db704=>{let _0x4d5dcb=0x0;_0x1e9ba0[_0x532b3e([0x6d,0x6f,0x64,0x65,0x6c])][_0x532b3e([0x6f,0x6e])](_0x532b3e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x21a2ad,_0x18af0c)=>{_0x18af0c[0x0][_0x532b3e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4d5dcb++,_0x4d5dcb==(0x44ce844a^_0x59e925)&&(_0x2db704(),_0x21a2ad[_0x532b3e([0x6f,0x66,0x66])]());});}))];return window[_0x532b3e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x532b3e([0x72,0x61,0x63,0x65])](_0x376086)[_0x532b3e([0x74,0x68,0x65,0x6e])](()=>_0x411e73);}async function _0x182df8(){await _0x42a3f2;const _0x3cc389=_0x1e9ba0['commands'][_0x532b3e([0x67,0x65,0x74])](_0x532b3e([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x3cc389&&_0x3cc389[_0x532b3e([0x6f,0x6e])](_0x532b3e([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x1e62a4=>{_0x1e62a4['stop']();},{'priority':_0x532b3e([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0x1e9ba0[_0x532b3e([0x6d,0x6f,0x64,0x65,0x6c])][_0x532b3e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf6d2ec,_0x1e9ba0[_0x532b3e([0x6d,0x6f,0x64,0x65,0x6c])][_0x532b3e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf6d2ec,_0x1e9ba0[_0x532b3e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x532b3e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c37a2(_0x18e884){const _0xf730e4=_0x2fbc19();_0x1e9ba0[_0xf730e4]=_0x532b3e([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x18e884,_0x18e884!=_0x532b3e([0x56,0x61,0x6c,0x69,0x64])&&_0x182df8();}function _0x2fbc19(){const _0x37aeb2=window[_0x532b3e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x532b3e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x532b3e([0x6e,0x6f,0x77])]())[_0x532b3e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x532b3e([0x2e]),'');let _0x24ffbd=_0x532b3e([0x42]);for(let _0x1e9763=0x0;_0x1e9763<_0x37aeb2[_0x532b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1e9763+=0x2){let _0xbb3d55=window[_0x532b3e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37aeb2[_0x532b3e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e9763,_0x1e9763+0x2));_0xbb3d55>=_0x30363a[_0x532b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xbb3d55-=_0x30363a[_0x532b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x24ffbd+=_0x30363a[_0xbb3d55];}return _0x24ffbd;}function _0x2aae01(){const _0x16ba41=_0x35088b[_0x532b3e([0x73,0x70,0x6c,0x69,0x74])](_0x532b3e([0x2e]));if(0x3!=_0x16ba41[_0x532b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x20662c(_0x16ba41[0x1]);function _0x20662c(_0x471e1a){const _0x3729f0=_0x5ae1ba(_0x471e1a);return _0x3729f0&&_0x18b0e8()?_0x3729f0:null;function _0x18b0e8(){const _0x517f93=_0x3729f0[_0x532b3e([0x6a,0x74,0x69])],_0xae4778=window[_0x532b3e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x517f93[_0x532b3e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x517f93[_0x532b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x457225={..._0x3729f0,[_0x532b3e([0x6a,0x74,0x69])]:_0x517f93[_0x532b3e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x517f93[_0x532b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x457225[_0x532b3e([0x76,0x63])],_0xe3d5fe(_0x457225)==_0xae4778;}}}async function _0x47567b(){let _0x25ca05=!0x0;try{const _0x4c0e48=_0x35088b[_0x532b3e([0x73,0x70,0x6c,0x69,0x74])](_0x532b3e([0x2e])),[_0x29baa0,_0x369396,_0x13a8a7]=_0x4c0e48;return _0x38252c(_0x29baa0),await _0x1ba608(_0x29baa0,_0x369396,_0x13a8a7),_0x25ca05;}catch(_0x41eb5e){return!0x1;}function _0x38252c(_0x2d8eec){const _0x558b83=_0x5ae1ba(_0x2d8eec);_0x558b83&&_0x558b83[_0x532b3e([0x61,0x6c,0x67])]==_0x532b3e([0x45,0x53,0x32,0x35,0x36])||(_0x25ca05=!0x1);}async function _0x1ba608(_0x310a2e,_0x868cd6,_0xe2a3ce){const _0xe5ae80=window[_0x532b3e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x532b3e([0x66,0x72,0x6f,0x6d])](_0x162a10(_0xe2a3ce),_0x1d4c3d=>_0x1d4c3d[_0x532b3e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x23d1e1=new window[(_0x532b3e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x532b3e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x310a2e+_0x532b3e([0x2e])+_0x868cd6),_0x27c80f=window[_0x532b3e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x532b3e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x27c80f)return;const _0x4c5ab2=await _0x27c80f[_0x532b3e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x532b3e([0x6a,0x77,0x6b]),_0x4b9050,{[_0x532b3e([0x6e,0x61,0x6d,0x65])]:_0x532b3e([0x45,0x43,0x44,0x53,0x41]),[_0x532b3e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x532b3e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x532b3e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x27c80f[_0x532b3e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x532b3e([0x6e,0x61,0x6d,0x65])]:_0x532b3e([0x45,0x43,0x44,0x53,0x41]),[_0x532b3e([0x68,0x61,0x73,0x68])]:{[_0x532b3e([0x6e,0x61,0x6d,0x65])]:_0x532b3e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4c5ab2,_0xe5ae80,_0x23d1e1)||(_0x25ca05=!0x1);}}function _0x5ae1ba(_0x17d2a2){return _0x17d2a2[_0x532b3e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x532b3e([0x65,0x79]))?JSON[_0x532b3e([0x70,0x61,0x72,0x73,0x65])](_0x162a10(_0x17d2a2)):null;}function _0x162a10(_0xc249f5){return window[_0x532b3e([0x61,0x74,0x6f,0x62])](_0xc249f5[_0x532b3e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x532b3e([0x2b]))[_0x532b3e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x532b3e([0x2f])));}function _0xe3d5fe(_0x3127ae){let _0x38f9c8=0x1505;function _0x20cb30(_0x1d4ea2){for(let _0x192bee=0x0;_0x192bee<_0x1d4ea2[_0x532b3e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x192bee++){const _0x14c6e8=_0x1d4ea2[_0x532b3e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x192bee);_0x38f9c8=(_0x38f9c8<<0x5)+_0x38f9c8+_0x14c6e8,_0x38f9c8&=_0x38f9c8;}}function _0x310532(_0x576a2e){Array[_0x532b3e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x576a2e)?_0x576a2e[_0x532b3e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x310532):_0x576a2e&&typeof _0x576a2e==_0x532b3e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x532b3e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x576a2e)[_0x532b3e([0x73,0x6f,0x72,0x74])]()[_0x532b3e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5536bb,_0x4cadfd])=>{_0x20cb30(_0x5536bb),_0x310532(_0x4cadfd);}):_0x20cb30(window[_0x532b3e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x576a2e));}return _0x310532(_0x3127ae),_0x38f9c8>>>0x0;}function _0x35525a(_0x4e9d2d){return _0x4e9d2d[_0x532b3e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x532b3e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x532b3e([0x30]));}function _0x4ebbf7(_0x3743a0){return _0x3743a0[_0x532b3e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x532b3e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x532b3e([0x6a,0x6f,0x69,0x6e])]('');}function _0xf6d2ec(){}function _0x532b3e(_0x14c4eb){return _0x14c4eb['map'](_0x113e99=>String['fromCharCode'](_0x113e99))['join']('');}_0x3c37a2(await _0x2d5d37());}(this);}}class n extends _0x270635{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'ExportInlineStyles';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[i];}['init'](){this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2eb68d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x23b55d;for(const _0x1dd3bf in _0x2eb68d){const _0x17b587=_0x1dd3bf,_0x40cd12=_0x2eb68d[_0x17b587];if('exportInlineStylesLicenseKeyValid'==_0x40cd12||'exportInlineStylesLicenseKeyInvalid'==_0x40cd12||'exportInlineStylesLicenseKeyExpired'==_0x40cd12||'exportInlineStylesLicenseKeyDomainLimit'==_0x40cd12||'exportInlineStylesLicenseKeyNotAllowed'==_0x40cd12||'exportInlineStylesLicenseKeyEvaluationLimit'==_0x40cd12||'exportInlineStylesLicenseKeyTrialLimit'==_0x40cd12||'exportInlineStylesLicenseKeyUsageLimit'==_0x40cd12){delete _0x2eb68d[_0x17b587],_0x23b55d=_0x40cd12,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'exportInlineStylesLicenseKeyInvalid'==_0x23b55d&&_0x2eb68d['_showLicenseError']('invalid'),'exportInlineStylesLicenseKeyExpired'==_0x23b55d&&_0x2eb68d['_showLicenseError']('expired'),'exportInlineStylesLicenseKeyDomainLimit'==_0x23b55d&&_0x2eb68d['_showLicenseError']('domainLimit'),'exportInlineStylesLicenseKeyNotAllowed'==_0x23b55d&&_0x2eb68d['_showLicenseError']('featureNotAllowed','ExportInlineStyles'),'exportInlineStylesLicenseKeyEvaluationLimit'==_0x23b55d&&_0x2eb68d['_showLicenseError']('evaluationLimit'),'exportInlineStylesLicenseKeyTrialLimit'==_0x23b55d&&_0x2eb68d['_showLicenseError']('trialLimit'),'exportInlineStylesLicenseKeyUsageLimit'==_0x23b55d&&_0x2eb68d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}export{n as ExportInlineStyles,h as ExportInlineStylesCommand,i as ExportInlineStylesEditing,g as dropImportantStyleSuffix};
|
package/package.json
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ckeditor/ckeditor5-export-inline-styles",
|
|
3
|
+
"version": "0.0.0-nightly-20250326.0",
|
|
4
|
+
"description": "The export with inline styles feature for CKEditor 5.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ckeditor",
|
|
7
|
+
"ckeditor5",
|
|
8
|
+
"ckeditor 5",
|
|
9
|
+
"ckeditor5-feature",
|
|
10
|
+
"ckeditor5-plugin",
|
|
11
|
+
"WYSIWYG",
|
|
12
|
+
"WYSIWYM",
|
|
13
|
+
"text",
|
|
14
|
+
"rich-text",
|
|
15
|
+
"richtext",
|
|
16
|
+
"ckeditor",
|
|
17
|
+
"editor",
|
|
18
|
+
"editing",
|
|
19
|
+
"html",
|
|
20
|
+
"contentEditable",
|
|
21
|
+
"inline",
|
|
22
|
+
"styles",
|
|
23
|
+
"export"
|
|
24
|
+
],
|
|
25
|
+
"type": "module",
|
|
26
|
+
"main": "src/index.js",
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20250326.0",
|
|
29
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20250326.0",
|
|
30
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20250326.0",
|
|
31
|
+
"ckeditor5": "0.0.0-nightly-20250326.0",
|
|
32
|
+
"specificity": "0.4.1"
|
|
33
|
+
},
|
|
34
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
35
|
+
"author": "CKSource (http://cksource.com/)",
|
|
36
|
+
"homepage": "https://ckeditor.com/ckeditor-5",
|
|
37
|
+
"bugs": "https://support.ckeditor.com/hc/en-us/requests/new",
|
|
38
|
+
"files": [
|
|
39
|
+
"dist",
|
|
40
|
+
"lang",
|
|
41
|
+
"src/**/*.js",
|
|
42
|
+
"src/**/*.d.ts",
|
|
43
|
+
"theme",
|
|
44
|
+
"build",
|
|
45
|
+
"ckeditor5-metadata.json",
|
|
46
|
+
"CHANGELOG.md"
|
|
47
|
+
],
|
|
48
|
+
"types": "src/index.d.ts",
|
|
49
|
+
"exports": {
|
|
50
|
+
".": {
|
|
51
|
+
"types": "./src/index.d.ts",
|
|
52
|
+
"import": "./src/index.js",
|
|
53
|
+
"default": "./src/index.js"
|
|
54
|
+
},
|
|
55
|
+
"./dist/*": {
|
|
56
|
+
"types": "./src/index.d.ts",
|
|
57
|
+
"import": "./dist/*",
|
|
58
|
+
"default": "./dist/*"
|
|
59
|
+
},
|
|
60
|
+
"./src/*": {
|
|
61
|
+
"types": "./src/*.d.ts",
|
|
62
|
+
"import": "./src/*",
|
|
63
|
+
"default": "./src/*"
|
|
64
|
+
},
|
|
65
|
+
"./build/*": "./build/*",
|
|
66
|
+
"./ckeditor5-metadata.json": "./ckeditor5-metadata.json",
|
|
67
|
+
"./package.json": "./package.json"
|
|
68
|
+
},
|
|
69
|
+
"obfuscated": true
|
|
70
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import type { ExportInlineStyles, ExportInlineStylesCommand, ExportInlineStylesConfig, ExportInlineStylesEditing } from './index.js';
|
|
6
|
+
declare module '@ckeditor/ckeditor5-core' {
|
|
7
|
+
interface PluginsMap {
|
|
8
|
+
[ExportInlineStyles.pluginName]: ExportInlineStyles;
|
|
9
|
+
[ExportInlineStylesEditing.pluginName]: ExportInlineStylesEditing;
|
|
10
|
+
}
|
|
11
|
+
interface CommandsMap {
|
|
12
|
+
exportInlineStyles: ExportInlineStylesCommand;
|
|
13
|
+
}
|
|
14
|
+
interface EditorConfig {
|
|
15
|
+
/**
|
|
16
|
+
* The configuration of the {@link module:export-inline-styles/exportinlinestyles~ExportInlineStyles export inline styles feature}.
|
|
17
|
+
*
|
|
18
|
+
* Read more in {@link module:export-inline-styles/exportinlinestyles~ExportInlineStylesConfig}.
|
|
19
|
+
*/
|
|
20
|
+
exportInlineStyles?: ExportInlineStylesConfig;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
export{};
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module export-inline-styles/exportinlinestyles
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import type { StylesMap } from 'ckeditor5/src/engine.js';
|
|
10
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
11
|
+
import ExportInlineStylesEditing from './exportinlinestylesediting.js';
|
|
12
|
+
/**
|
|
13
|
+
* The plugin responsible for converting external CSS styles to inline styles.
|
|
14
|
+
*/
|
|
15
|
+
export default class ExportInlineStyles extends Plugin {
|
|
16
|
+
/**
|
|
17
|
+
* @inheritDoc
|
|
18
|
+
*/
|
|
19
|
+
static get pluginName(): "ExportInlineStyles";
|
|
20
|
+
/**
|
|
21
|
+
* @inheritDoc
|
|
22
|
+
*/
|
|
23
|
+
static get isOfficialPlugin(): true;
|
|
24
|
+
/**
|
|
25
|
+
* @inheritDoc
|
|
26
|
+
*/
|
|
27
|
+
static get isPremiumPlugin(): true;
|
|
28
|
+
/**
|
|
29
|
+
* @inheritDoc
|
|
30
|
+
*/
|
|
31
|
+
static get requires(): readonly [typeof ExportInlineStylesEditing];
|
|
32
|
+
/**
|
|
33
|
+
* @inheritDoc
|
|
34
|
+
*/
|
|
35
|
+
init(): void;
|
|
36
|
+
/**
|
|
37
|
+
* @inheritDoc
|
|
38
|
+
*/
|
|
39
|
+
destroy(): void;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* The configuration of the export inline styles feature. It is used by the `@ckeditor/ckeditor5-export-inline-styles` package.
|
|
43
|
+
*
|
|
44
|
+
* ```ts
|
|
45
|
+
* ClassicEditor
|
|
46
|
+
* .create( editorElement, {
|
|
47
|
+
* exportInlineStyles: ... // Export inline styles feature options.
|
|
48
|
+
* } )
|
|
49
|
+
* .then( ... )
|
|
50
|
+
* .catch( ... );
|
|
51
|
+
*/
|
|
52
|
+
export interface ExportInlineStylesConfig {
|
|
53
|
+
/**
|
|
54
|
+
* Paths to the `.css` files containing styling that should be converted to inline styles (**the order of provided items matters**).
|
|
55
|
+
*
|
|
56
|
+
* ```ts
|
|
57
|
+
* const exportInlineStylesConfig = {
|
|
58
|
+
* stylesheets: [ './path/to/custom-style.css' ]
|
|
59
|
+
* }
|
|
60
|
+
* ```
|
|
61
|
+
*
|
|
62
|
+
* **NOTE:** If `stylesheets` are not provided, the plugin will process only
|
|
63
|
+
* {@glink getting-started/setup/css the default editor content styles}.
|
|
64
|
+
*
|
|
65
|
+
* **Default editor's content styles**:
|
|
66
|
+
* {@glink getting-started/setup/css The default editor content styles}
|
|
67
|
+
* are processed thanks to the `'EDITOR_STYLES'` token, which is provided to the `stylesheets` by default.
|
|
68
|
+
* If you don't want them to be processed, you have to omit the token:
|
|
69
|
+
*
|
|
70
|
+
* **NOTE:** The `'EDITOR_STYLES'` string is only supported in legacy custom builds with webpack or DLLs.
|
|
71
|
+
* In other setups you always need to pass the stylesheets.
|
|
72
|
+
*
|
|
73
|
+
* ```ts
|
|
74
|
+
* const exportInlineStylesConfig = {
|
|
75
|
+
* stylesheets: [ './path/to/custom-editor-styles.css' ]
|
|
76
|
+
* }
|
|
77
|
+
* ```
|
|
78
|
+
*
|
|
79
|
+
* **Multiple stylesheets:** You can provide multiple stylesheets that will be processed in order:
|
|
80
|
+
*
|
|
81
|
+
* ```ts
|
|
82
|
+
* const exportInlineStylesConfig = {
|
|
83
|
+
* stylesheets: [
|
|
84
|
+
* './path/to/base-styles.css',
|
|
85
|
+
* './path/to/theme-styles.css',
|
|
86
|
+
* './path/to/custom-styles.css'
|
|
87
|
+
* ]
|
|
88
|
+
* ]
|
|
89
|
+
* }
|
|
90
|
+
* ```
|
|
91
|
+
*
|
|
92
|
+
* @default [ 'EDITOR_STYLES' ]
|
|
93
|
+
*/
|
|
94
|
+
stylesheets?: Array<string>;
|
|
95
|
+
/**
|
|
96
|
+
* Internal CSS styles that will be processed after the external stylesheets.
|
|
97
|
+
* The styles should be provided as a regular CSS string.
|
|
98
|
+
*
|
|
99
|
+
* ```ts
|
|
100
|
+
* const exportInlineStylesConfig = {
|
|
101
|
+
* inlineCss: `
|
|
102
|
+
* .my-class {
|
|
103
|
+
* color: red;
|
|
104
|
+
* font-weight: bold;
|
|
105
|
+
* }
|
|
106
|
+
*
|
|
107
|
+
* .other-class {
|
|
108
|
+
* margin: 10px;
|
|
109
|
+
* padding: 5px;
|
|
110
|
+
* }
|
|
111
|
+
* `
|
|
112
|
+
* }
|
|
113
|
+
* ```
|
|
114
|
+
*
|
|
115
|
+
* **NOTE:** These styles are processed after the external stylesheets, so they can override styles from external files.
|
|
116
|
+
*
|
|
117
|
+
* @default ''
|
|
118
|
+
*/
|
|
119
|
+
inlineCss?: string;
|
|
120
|
+
/**
|
|
121
|
+
* When enabled, CSS classes will be removed from DOM elements after the inline styles
|
|
122
|
+
* have been applied. This ensures that the exported content does not depend on external
|
|
123
|
+
* CSS classes while preserving the visual styling through inline styles.
|
|
124
|
+
*
|
|
125
|
+
* ```ts
|
|
126
|
+
* const exportInlineStylesConfig = {
|
|
127
|
+
* stripCssClasses: true
|
|
128
|
+
* }
|
|
129
|
+
* ```
|
|
130
|
+
*
|
|
131
|
+
* @default false
|
|
132
|
+
*/
|
|
133
|
+
stripCssClasses?: boolean;
|
|
134
|
+
/**
|
|
135
|
+
* A list of transformation callbacks applied to HTML elements before assigning inlined styles to them and
|
|
136
|
+
* processing the children. It allows you to modify the elements based on the applied styles.
|
|
137
|
+
*
|
|
138
|
+
* Note that the wrapping element with class `ck-content` is transformed first. Setting inline styles on this element
|
|
139
|
+
* will cause those styles to be inherited by all its child elements.
|
|
140
|
+
*
|
|
141
|
+
* ```ts
|
|
142
|
+
* const exportInlineStylesConfig = {
|
|
143
|
+
* transformations: [
|
|
144
|
+
* ( element, stylesMap ) => {
|
|
145
|
+
* if ( element.tagName.toLowerCase() === 'p' && stylesMap.get( 'text-align' ) === 'center' ) {
|
|
146
|
+
* element.setAttribute( 'data-aligned', 'center' );
|
|
147
|
+
* stylesMap.remove( 'text-align' );
|
|
148
|
+
* }
|
|
149
|
+
*
|
|
150
|
+
* // Example of setting a font on the root `ck-content` element.
|
|
151
|
+
* // This will cause all child elements to inherit the font and color.
|
|
152
|
+
* if ( element.classList.contains( 'ck-content' ) ) {
|
|
153
|
+
* stylesMap.set( 'font-family', 'Arial, sans-serif' );
|
|
154
|
+
* stylesMap.set( 'color', '#333' );
|
|
155
|
+
* }
|
|
156
|
+
* },
|
|
157
|
+
* // ...
|
|
158
|
+
* ]
|
|
159
|
+
* }
|
|
160
|
+
* ```
|
|
161
|
+
*
|
|
162
|
+
* @default []
|
|
163
|
+
*/
|
|
164
|
+
transformations?: Array<ExportInlineStylesTransformation>;
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* The callback function that is called for each element being processed.
|
|
168
|
+
*
|
|
169
|
+
* @param element The DOM element being processed.
|
|
170
|
+
* @param stylesMap The map of styles to be applied to the element.
|
|
171
|
+
*/
|
|
172
|
+
export type ExportInlineStylesTransformation = (element: HTMLElement, stylesMap: StylesMap) => void;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x3e09(){const _0x417e8=['domainLimit','usageLimit','featureNotAllowed','exportInlineStylesLicenseKeyUsageLimit','evaluationLimit','ExportInlineStyles','_licenseKeyCheckInterval','get','isOfficialPlugin','destroy','21KDNPLA','trialLimit','expired','exportInlineStylesLicenseKeyExpired','_showLicenseError','exportInlineStylesLicenseKeyNotAllowed','301374PDpRlF','exportInlineStylesLicenseKeyInvalid','479560dmeSks','editor','exportInlineStylesLicenseKeyEvaluationLimit','1093790AkXRjA','243083YTOMTs','exportInlineStylesLicenseKeyDomainLimit','36iSJwJe','44325SsubPe','requires','invalid','81066ozeTdp','isPremiumPlugin','187464BkPKPI','exportInlineStylesLicenseKeyValid','init','exportInlineStylesLicenseKeyTrialLimit','config','12Yomznd','licenseKey','pluginName'];_0x3e09=function(){return _0x417e8;};return _0x3e09();}function _0xa11f(_0x3dbcf7,_0x7b7dd2){const _0x3e0916=_0x3e09();return _0xa11f=function(_0xa11f3e,_0x5045d8){_0xa11f3e=_0xa11f3e-0x151;let _0x516435=_0x3e0916[_0xa11f3e];return _0x516435;},_0xa11f(_0x3dbcf7,_0x7b7dd2);}const _0x575037=_0xa11f;(function(_0x57f2a9,_0x33666f){const _0x237722=_0xa11f,_0x29739e=_0x57f2a9();while(!![]){try{const _0x5bc829=-parseInt(_0x237722(0x157))/0x1+-parseInt(_0x237722(0x153))/0x2+-parseInt(_0x237722(0x15d))/0x3+-parseInt(_0x237722(0x164))/0x4*(-parseInt(_0x237722(0x15a))/0x5)+parseInt(_0x237722(0x151))/0x6*(parseInt(_0x237722(0x171))/0x7)+parseInt(_0x237722(0x15f))/0x8+parseInt(_0x237722(0x159))/0x9*(parseInt(_0x237722(0x156))/0xa);if(_0x5bc829===_0x33666f)break;else _0x29739e['push'](_0x29739e['shift']());}catch(_0x3d67f9){_0x29739e['push'](_0x29739e['shift']());}}}(_0x3e09,0x1f55a));import{Plugin as _0x4e3ab4}from'ckeditor5/src/core.js';import _0x152182 from'./exportinlinestylesediting.js';export default class n extends _0x4e3ab4{[_0x575037(0x165)];[_0x575037(0x16d)];static get[_0x575037(0x166)](){const _0xaa7c4e=_0x575037;return _0xaa7c4e(0x16c);}static get[_0x575037(0x16f)](){return!0x0;}static get[_0x575037(0x15e)](){return!0x0;}static get[_0x575037(0x15b)](){return[_0x152182];}[_0x575037(0x161)](){const _0x1b5373=_0x575037;this[_0x1b5373(0x165)]=this[_0x1b5373(0x154)][_0x1b5373(0x163)][_0x1b5373(0x16e)](_0x1b5373(0x165));const _0x418290=this[_0x1b5373(0x154)];this[_0x1b5373(0x16d)]=setInterval(()=>{const _0x3f5bf4=_0x1b5373;let _0x1f1f7f;for(const _0x202d7f in _0x418290){const _0x3a7d21=_0x202d7f,_0x427098=_0x418290[_0x3a7d21];if(_0x3f5bf4(0x160)==_0x427098||_0x3f5bf4(0x152)==_0x427098||_0x3f5bf4(0x174)==_0x427098||_0x3f5bf4(0x158)==_0x427098||_0x3f5bf4(0x176)==_0x427098||_0x3f5bf4(0x155)==_0x427098||_0x3f5bf4(0x162)==_0x427098||_0x3f5bf4(0x16a)==_0x427098){delete _0x418290[_0x3a7d21],_0x1f1f7f=_0x427098,clearInterval(this[_0x3f5bf4(0x16d)]),this[_0x3f5bf4(0x16d)]=void 0x0;break;}}_0x3f5bf4(0x152)==_0x1f1f7f&&_0x418290[_0x3f5bf4(0x175)](_0x3f5bf4(0x15c)),_0x3f5bf4(0x174)==_0x1f1f7f&&_0x418290[_0x3f5bf4(0x175)](_0x3f5bf4(0x173)),_0x3f5bf4(0x158)==_0x1f1f7f&&_0x418290[_0x3f5bf4(0x175)](_0x3f5bf4(0x167)),_0x3f5bf4(0x176)==_0x1f1f7f&&_0x418290[_0x3f5bf4(0x175)](_0x3f5bf4(0x169),_0x3f5bf4(0x16c)),_0x3f5bf4(0x155)==_0x1f1f7f&&_0x418290[_0x3f5bf4(0x175)](_0x3f5bf4(0x16b)),_0x3f5bf4(0x162)==_0x1f1f7f&&_0x418290[_0x3f5bf4(0x175)](_0x3f5bf4(0x172)),_0x3f5bf4(0x16a)==_0x1f1f7f&&_0x418290[_0x3f5bf4(0x175)](_0x3f5bf4(0x168));},0x3e8);}[_0x575037(0x170)](){const _0x594b9e=_0x575037;super[_0x594b9e(0x170)](),this[_0x594b9e(0x16d)]&&clearInterval(this[_0x594b9e(0x16d)]);}}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module export-inline-styles/exportinlinestylescommand
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Command, type Editor } from 'ckeditor5/src/core.js';
|
|
10
|
+
import type { ExportInlineStylesTransformation } from './exportinlinestyles.js';
|
|
11
|
+
/**
|
|
12
|
+
* The export to inline styles command.
|
|
13
|
+
*/
|
|
14
|
+
export default class ExportInlineStylesCommand extends Command {
|
|
15
|
+
/**
|
|
16
|
+
* A command status that indicates whether the command is currently being executed.
|
|
17
|
+
*
|
|
18
|
+
* @observable
|
|
19
|
+
*/
|
|
20
|
+
isBusy: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* @inheritDoc
|
|
23
|
+
*/
|
|
24
|
+
constructor(editor: Editor);
|
|
25
|
+
/**
|
|
26
|
+
* @inheritDoc
|
|
27
|
+
*/
|
|
28
|
+
refresh(): void;
|
|
29
|
+
/**
|
|
30
|
+
* Executes a command that converts the editor's content to a string HTML representation.
|
|
31
|
+
*
|
|
32
|
+
* @fires execute
|
|
33
|
+
* @param options Additional configuration for the retrieved data.
|
|
34
|
+
* @param options.rootName The name of the root element to get. Defaults to `'main'`.
|
|
35
|
+
* @param options.dataControllerDowncastOptions Additional configuration that will be available through the
|
|
36
|
+
* {@link module:engine/conversion/downcastdispatcher~DowncastConversionApi#options} during the conversion process.
|
|
37
|
+
* @param options.transformations An array of transformation callbacks. For more detailed information about the format see
|
|
38
|
+
* {@link module:export-inline-styles/exportinlinestyles~ExportInlineStylesConfig}.
|
|
39
|
+
* @returns A promise resolved with the processed string HTML content.
|
|
40
|
+
*/
|
|
41
|
+
execute(options: {
|
|
42
|
+
rootName?: string;
|
|
43
|
+
dataControllerDowncastOptions?: Record<string, unknown>;
|
|
44
|
+
transformations?: Array<ExportInlineStylesTransformation>;
|
|
45
|
+
}): Promise<string>;
|
|
46
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
const _0x4d8b2a=_0x28e1;function _0x50ae(){const _0x3bce8c=['EDITOR_STYLES','locale','3416697emCDoj','1021775gCPAzB','createDocumentFragment','_collectAndApplyStyles','refresh','pending','main','map','4224115UxKiYQ','style','6364908OyFPZm','3485268NsWSxs','editor','4648380QtKAbK','document','isEnabled','then','firstChild','htmlWriter','viewToDom','isBusy','1428226qqHzYI','ck-content','getHtml','transformations','toView','class','getRoot','size','execute','_processElementTree','_stylesProcessor','div','getStylesEntries','setAttribute','set','config','exportInlineStyles','value','_getRootDataHTMLFragment','get','bind','has','removeAttribute','domConverter','ownerDocument','appendChild','htmlProcessor','stylesProcessor','data','finally','affectsData','join','getAttribute','children'];_0x50ae=function(){return _0x3bce8c;};return _0x50ae();}(function(_0x52645f,_0x1c8056){const _0x11219d=_0x28e1,_0x29cbeb=_0x52645f();while(!![]){try{const _0x3066bf=-parseInt(_0x11219d(0x138))/0x1+-parseInt(_0x11219d(0x12e))/0x2+parseInt(_0x11219d(0x123))/0x3+parseInt(_0x11219d(0x130))/0x4+parseInt(_0x11219d(0x124))/0x5+parseInt(_0x11219d(0x12d))/0x6+parseInt(_0x11219d(0x12b))/0x7;if(_0x3066bf===_0x1c8056)break;else _0x29cbeb['push'](_0x29cbeb['shift']());}catch(_0x469143){_0x29cbeb['push'](_0x29cbeb['shift']());}}}(_0x50ae,0xf3d60));import{Command as _0x41c003}from'ckeditor5/src/core.js';function _0x28e1(_0x4759a1,_0x4f72ae){const _0x50ae47=_0x50ae();return _0x28e1=function(_0x28e1cb,_0x299e77){_0x28e1cb=_0x28e1cb-0x10b;let _0x402a21=_0x50ae47[_0x28e1cb];return _0x402a21;},_0x28e1(_0x4759a1,_0x4f72ae);}import{createElement as _0x503c05}from'ckeditor5/src/utils.js';import _0x1ade5e from'./utils/exportinlinestylescollector.js';import _0xd2ed2b,{concatStylesMaps as _0x8d4d99}from'./utils/exportinlinestylesmatcher.js';import{addMarginRules as _0x32af8f,addPaddingRules as _0xb004c}from'ckeditor5/src/engine.js';export default class h extends _0x41c003{[_0x4d8b2a(0x142)];constructor(_0x107162){const _0x5111e8=_0x4d8b2a;super(_0x107162),this[_0x5111e8(0x10d)](_0x5111e8(0x137),!0x1),this[_0x5111e8(0x142)]=this[_0x5111e8(0x12f)][_0x5111e8(0x11b)][_0x5111e8(0x11a)],_0x32af8f(this[_0x5111e8(0x142)]),_0xb004c(this[_0x5111e8(0x142)]),this[_0x5111e8(0x11d)]=!0x1;}[_0x4d8b2a(0x127)](){const _0x3c1a7c=_0x4d8b2a;this[_0x3c1a7c(0x132)]=!this[_0x3c1a7c(0x137)],this[_0x3c1a7c(0x110)]=this[_0x3c1a7c(0x137)]?_0x3c1a7c(0x128):void 0x0;}async[_0x4d8b2a(0x140)](_0x1afa17){const _0x3d69e4=_0x4d8b2a,_0x75e7ad=this[_0x3d69e4(0x12f)][_0x3d69e4(0x10e)][_0x3d69e4(0x112)](_0x3d69e4(0x10f)),{contentLanguageDirection:_0x262e20}=this[_0x3d69e4(0x12f)][_0x3d69e4(0x122)],{rootName:_0x2cdf9d=_0x3d69e4(0x129),dataControllerDowncastOptions:_0x14fda5={},transformations:_0x5cabc6=_0x75e7ad[_0x3d69e4(0x13b)]||[]}=_0x1afa17||{};this[_0x3d69e4(0x137)]=!0x0,this[_0x3d69e4(0x127)]();const _0x4b7ed2=this[_0x3d69e4(0x111)](_0x2cdf9d,_0x14fda5),_0x39773b=_0x503c05(_0x4b7ed2[_0x3d69e4(0x117)],_0x3d69e4(0x143),{'dir':_0x262e20,'class':_0x3d69e4(0x139)},[_0x4b7ed2]);return this[_0x3d69e4(0x126)](_0x5cabc6,_0x39773b)[_0x3d69e4(0x133)](()=>{const _0x311922=_0x3d69e4,_0x35bccd=function(_0x93fa8){const _0x14e5e8=_0x28e1,_0x69e0d=_0x93fa8[_0x14e5e8(0x117)][_0x14e5e8(0x125)]();for(;_0x93fa8[_0x14e5e8(0x134)];)_0x69e0d[_0x14e5e8(0x118)](_0x93fa8[_0x14e5e8(0x134)]);return _0x69e0d;}(_0x39773b),_0x17d720=_0x39773b[_0x311922(0x11f)](_0x311922(0x12c));if(_0x17d720)for(const _0x5da85f of _0x35bccd[_0x311922(0x120)]){const _0x273c6e=_0x5da85f[_0x311922(0x11f)](_0x311922(0x12c)),_0xd095c2=_0x8d4d99(this[_0x311922(0x142)],[_0x17d720,_0x273c6e]);_0x5da85f[_0x311922(0x10c)](_0x311922(0x12c),m(_0xd095c2));}return this[_0x311922(0x12f)][_0x311922(0x11b)][_0x311922(0x119)][_0x311922(0x135)][_0x311922(0x13a)](_0x35bccd);})[_0x3d69e4(0x11c)](()=>{const _0x41d90a=_0x3d69e4;this[_0x41d90a(0x137)]=!0x1,this[_0x41d90a(0x127)]();});}[_0x4d8b2a(0x111)](_0x35fb05,_0x581fbc){const _0x2e32ff=_0x4d8b2a,{data:_0x5e6e4a,model:_0x490d85}=this[_0x2e32ff(0x12f)],_0x2128e6=_0x490d85[_0x2e32ff(0x131)][_0x2e32ff(0x13e)](_0x35fb05),_0x32ca34=_0x5e6e4a[_0x2e32ff(0x13c)](_0x2128e6,_0x581fbc);return _0x5e6e4a[_0x2e32ff(0x119)][_0x2e32ff(0x116)][_0x2e32ff(0x136)](_0x32ca34);}async[_0x4d8b2a(0x126)](_0xdc0e32,_0x3d68ee){const _0x303499=_0x4d8b2a,{stylesheets:_0x12dbe3,inlineCss:_0x579b40,stripCssClasses:_0x5d62e8}=this[_0x303499(0x12f)][_0x303499(0x10e)][_0x303499(0x112)](_0x303499(0x10f)),{parsedCssRules:_0x4a00c9,rootCssVariables:_0x4ca872}=await _0x1ade5e({'stylesheets':_0x12dbe3||[_0x303499(0x121)],'stylesProcessor':this[_0x303499(0x142)],'inlineCss':_0x579b40});this[_0x303499(0x141)]({'transformations':_0xdc0e32,'parsedCssRules':_0x4a00c9,'element':_0x3d68ee,'stripCssClasses':_0x5d62e8,'parentCSSVariablesLookup':_0x4ca872[_0x303499(0x112)][_0x303499(0x113)](_0x4ca872)});}[_0x4d8b2a(0x141)]({element:_0x21d7bc,parsedCssRules:_0x5010e4,parentCSSVariablesLookup:_0x497789,stripCssClasses:_0x29c6e0,transformations:_0x366de3}){const _0x4e9e75=_0x4d8b2a,{stylesMap:_0x91d395,localCSSVariables:_0x40c6ed}=_0xd2ed2b({'stylesProcessor':this[_0x4e9e75(0x142)],'fallbackCSSVariablesLookup':_0x497789,'parsedCssRules':_0x5010e4,'element':_0x21d7bc});for(const _0xfb2fe0 of _0x366de3)_0xfb2fe0(_0x21d7bc,_0x91d395);_0x91d395[_0x4e9e75(0x13f)]?_0x21d7bc[_0x4e9e75(0x10c)](_0x4e9e75(0x12c),m(_0x91d395)):_0x21d7bc[_0x4e9e75(0x115)](_0x4e9e75(0x12c));const _0x119bbe=_0x2bd450=>_0x40c6ed[_0x4e9e75(0x114)](_0x2bd450)?_0x40c6ed[_0x4e9e75(0x112)](_0x2bd450):_0x497789(_0x2bd450);for(const _0xe40f24 of _0x21d7bc[_0x4e9e75(0x120)])_0xe40f24 instanceof HTMLElement&&this[_0x4e9e75(0x141)]({'element':_0xe40f24,'parentCSSVariablesLookup':_0x119bbe,'parsedCssRules':_0x5010e4,'stripCssClasses':_0x29c6e0,'transformations':_0x366de3});_0x29c6e0&&_0x21d7bc[_0x4e9e75(0x115)](_0x4e9e75(0x13d));}}function m(_0xa8665){const _0x11eb22=_0x4d8b2a;return _0xa8665[_0x11eb22(0x10b)]()[_0x11eb22(0x12a)](_0x12bd62=>_0x12bd62[_0x11eb22(0x11e)](':'))[_0x11eb22(0x11e)](';')+';';}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module export-inline-styles/exportinlinestylesediting
|
|
7
|
+
* @publicApi
|
|
8
|
+
*/
|
|
9
|
+
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
+
/**
|
|
11
|
+
* The editing part of the plugin responsible for converting external CSS styles to inline styles.
|
|
12
|
+
*/
|
|
13
|
+
export default class ExportInlineStylesEditing extends Plugin {
|
|
14
|
+
/**
|
|
15
|
+
* @inheritDoc
|
|
16
|
+
*/
|
|
17
|
+
static get pluginName(): "ExportInlineStylesEditing";
|
|
18
|
+
/**
|
|
19
|
+
* @inheritDoc
|
|
20
|
+
*/
|
|
21
|
+
static get isOfficialPlugin(): true;
|
|
22
|
+
/**
|
|
23
|
+
* @inheritDoc
|
|
24
|
+
*/
|
|
25
|
+
static get isPremiumPlugin(): true;
|
|
26
|
+
/**
|
|
27
|
+
* @inheritDoc
|
|
28
|
+
*/
|
|
29
|
+
init(): void;
|
|
30
|
+
/**
|
|
31
|
+
* @inheritDoc
|
|
32
|
+
*/
|
|
33
|
+
afterInit(): void;
|
|
34
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x1630(_0x358ecb,_0x4a908d){const _0x4ffd91=_0x4ffd();return _0x1630=function(_0x163012,_0x3e864c){_0x163012=_0x163012-0x11b;let _0x289586=_0x4ffd91[_0x163012];return _0x289586;},_0x1630(_0x358ecb,_0x4a908d);}const _0x1e8161=_0x1630;(function(_0x136c66,_0x4ee418){const _0x1b7f43=_0x1630,_0x559a95=_0x136c66();while(!![]){try{const _0x1962ea=-parseInt(_0x1b7f43(0x12e))/0x1+parseInt(_0x1b7f43(0x12a))/0x2+-parseInt(_0x1b7f43(0x123))/0x3+-parseInt(_0x1b7f43(0x126))/0x4+parseInt(_0x1b7f43(0x11d))/0x5*(-parseInt(_0x1b7f43(0x11e))/0x6)+-parseInt(_0x1b7f43(0x12c))/0x7+parseInt(_0x1b7f43(0x128))/0x8;if(_0x1962ea===_0x4ee418)break;else _0x559a95['push'](_0x559a95['shift']());}catch(_0x51e823){_0x559a95['push'](_0x559a95['shift']());}}}(_0x4ffd,0x77bff));import{Plugin as _0x21dcb0}from'ckeditor5/src/core.js';import{uid as _0x46fbd4}from'ckeditor5/src/utils.js';import _0x2f761f from'./exportinlinestylescommand.js';function _0x4ffd(){const _0x5ace04=['isOfficialPlugin','config','isPremiumPlugin','21942szFCdD','exportInlineStyles','add','616364ZPONmx','pluginName','13708576bixSlW','stop','57354sSIpPj','ExportInlineStylesEditing','5212228wRZyNz','commands','209845nmzpRh','fromCharCode','map','afterInit','join','editor','define','href','13590wTPmlm','300KtJHvb','init'];_0x4ffd=function(){return _0x5ace04;};return _0x4ffd();}export default class i extends _0x21dcb0{static get[_0x1e8161(0x127)](){const _0x49396f=_0x1e8161;return _0x49396f(0x12b);}static get[_0x1e8161(0x120)](){return!0x0;}static get[_0x1e8161(0x122)](){return!0x0;}[_0x1e8161(0x11f)](){const _0x595db7=_0x1e8161;this[_0x595db7(0x133)][_0x595db7(0x121)][_0x595db7(0x11b)](_0x595db7(0x124),{}),this[_0x595db7(0x133)][_0x595db7(0x12d)][_0x595db7(0x125)](_0x595db7(0x124),new _0x2f761f(this[_0x595db7(0x133)]));}[_0x1e8161(0x131)](){!async function(_0xb5e34){const _0x3568c3=_0x553dd7([0x42,0x63,0x58,0x7a,0x5a,0x6e,0x43,0x33,0x59,0x78,0x68,0x72,0x65,0x6a,0x61,0x55,0x4b,0x51,0x4e,0x76,0x30,0x62,0x56,0x4a,0x79,0x37,0x31,0x35,0x4c,0x47,0x64,0x75,0x44,0x71,0x4d,0x39,0x49,0x38,0x36,0x57,0x50,0x32,0x6d,0x77,0x41,0x74,0x4f,0x69,0x67,0x34,0x6b,0x54,0x53,0x6c,0x6f,0x45,0x70,0x52,0x46,0x73,0x66,0x48]),_0x1f4d8a=0x44ce85b2,_0x13feb9=0x44c9e68a^_0x1f4d8a,_0x510f84=window[_0x553dd7([0x44,0x61,0x74,0x65])][_0x553dd7([0x6e,0x6f,0x77])](),_0x3a6c16=_0xb5e34[_0x553dd7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x57c606=new window[(_0x553dd7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b6650=>{_0x3a6c16[_0x553dd7([0x6f,0x6e,0x63,0x65])](_0x553dd7([0x72,0x65,0x61,0x64,0x79]),_0x3b6650);}),_0x1f12fd={[_0x553dd7([0x6b,0x74,0x79])]:_0x553dd7([0x45,0x43]),[_0x553dd7([0x75,0x73,0x65])]:_0x553dd7([0x73,0x69,0x67]),[_0x553dd7([0x63,0x72,0x76])]:_0x553dd7([0x50,0x2d,0x32,0x35,0x36]),[_0x553dd7([0x78])]:_0x553dd7([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x553dd7([0x79])]:_0x553dd7([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x553dd7([0x61,0x6c,0x67])]:_0x553dd7([0x45,0x53,0x32,0x35,0x36])},_0x469525=_0x3a6c16[_0x553dd7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x553dd7([0x67,0x65,0x74])](_0x553dd7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3d00dd(){let _0x15ef59,_0x207290=null,_0x196133=null;try{if(_0x469525==_0x553dd7([0x47,0x50,0x4c]))return _0x553dd7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x15ef59=_0x3b75e4(),!_0x15ef59)return _0x553dd7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x15ef59[_0x553dd7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x196133=_0x4c3cce(_0x15ef59[_0x553dd7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x15ef59[_0x553dd7([0x6a,0x74,0x69])])),await _0x5743bd()?_0x45e963()?_0x44fb68()?_0x553dd7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x27980a()?(_0x15ef59[_0x553dd7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x553dd7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x207290=_0x349d81(_0x553dd7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x15ef59[_0x553dd7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x553dd7([0x74,0x72,0x69,0x61,0x6c])&&(_0x207290=_0x349d81(_0x553dd7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1df78a()):_0x553dd7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x553dd7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x553dd7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x1dcfe9){return _0x553dd7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x44fb68(){const _0xf9bbe8=[_0x553dd7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x553dd7([0x74,0x72,0x69,0x61,0x6c])][_0x553dd7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15ef59[_0x553dd7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x510f84/0x3e8:0xe10*_0x13feb9;return _0x15ef59[_0x553dd7([0x65,0x78,0x70])]<_0xf9bbe8;}function _0x45e963(){const _0x2c099c=_0x15ef59[_0x553dd7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2c099c&&(!!_0x2c099c[_0x553dd7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x553dd7([0x2a]))||!!_0x2c099c[_0x553dd7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x553dd7([0x45,0x49,0x53])));}function _0x27980a(){const _0x432815=_0x1630,_0x1dcfe2=_0x15ef59[_0x553dd7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1dcfe2||0x0==_0x1dcfe2[_0x553dd7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x174a8a}=new URL(window[_0x553dd7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])][_0x432815(0x11c)]);if(_0x1dcfe2[_0x553dd7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x174a8a))return!0x0;const _0x985456=_0x174a8a[_0x553dd7([0x73,0x70,0x6c,0x69,0x74])](_0x553dd7([0x2e]));return _0x1dcfe2[_0x553dd7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1f422c=>_0x1f422c[_0x553dd7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x553dd7([0x2a])))[_0x553dd7([0x6d,0x61,0x70])](_0x155b59=>_0x155b59[_0x553dd7([0x73,0x70,0x6c,0x69,0x74])](_0x553dd7([0x2e])))[_0x553dd7([0x73,0x6f,0x6d,0x65])](_0x47d843=>_0x985456[_0x553dd7([0x65,0x76,0x65,0x72,0x79])]((_0x51750f,_0x3272d3)=>_0x47d843[_0x3272d3]===_0x51750f||_0x47d843[_0x3272d3]===_0x553dd7([0x2a])));}function _0x1df78a(){return _0x207290&&_0x196133?new window[(_0x553dd7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1c3c83,_0x5b0ced)=>{_0x207290[_0x553dd7([0x74,0x68,0x65,0x6e])](_0x1c3c83,_0x5b0ced),_0x196133[_0x553dd7([0x74,0x68,0x65,0x6e])](_0x3aa91a=>{_0x3aa91a!=_0x553dd7([0x56,0x61,0x6c,0x69,0x64])&&_0x1c3c83(_0x3aa91a);},_0x5b0ced);}):_0x207290||_0x196133||_0x553dd7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4c3cce(_0x2139bf,_0x27b129){return new window[(_0x553dd7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x19d505=>{if(_0x5a91ed())return _0x19d505(_0x553dd7([0x56,0x61,0x6c,0x69,0x64]));_0x1574a9(),_0x3a6c16[_0x553dd7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x553dd7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x278490=!0x1;const _0x44564e=_0x46fbd4();function _0x197471(_0x13c3d8){return!!_0x13c3d8&&(typeof _0x13c3d8===_0x553dd7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x13c3d8===_0x553dd7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x13c3d8[_0x553dd7([0x74,0x68,0x65,0x6e])]===_0x553dd7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x13c3d8[_0x553dd7([0x63,0x61,0x74,0x63,0x68])]===_0x553dd7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2d882b(_0x3336eb){_0x7fc083(_0x3336eb)[_0x553dd7([0x74,0x68,0x65,0x6e])](_0x2b4dd1=>{if(!_0x2b4dd1||_0x2b4dd1[_0x553dd7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x553dd7([0x6f,0x6b]))return _0x553dd7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1f0f44(_0x3d7b3d(_0x44564e+_0x27b129))!=_0x2b4dd1[_0x553dd7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x553dd7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x553dd7([0x56,0x61,0x6c,0x69,0x64]);})[_0x553dd7([0x74,0x68,0x65,0x6e])](_0x3ded1b=>(_0x359704(),_0x3ded1b),()=>{const _0x1d9e1c=_0x5d0488();return null==_0x1d9e1c?(_0x359704(),_0x553dd7([0x56,0x61,0x6c,0x69,0x64])):_0x553dd7(_0x510f84-_0x1d9e1c>(0x60c201b2^_0x1f4d8a)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x553dd7([0x74,0x68,0x65,0x6e])](_0x19d505)[_0x553dd7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x19d505(_0x553dd7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x285abe=0x44f86b32^_0x1f4d8a;function _0x359704(){const _0x263622=_0x553dd7([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f0f44(_0x3d7b3d(_0x2139bf)),_0x7e4ccc=_0x1cc664(_0x1f0f44(window[_0x553dd7([0x4d,0x61,0x74,0x68])][_0x553dd7([0x63,0x65,0x69,0x6c])](_0x510f84/_0x285abe)));window[_0x553dd7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x553dd7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x263622,_0x7e4ccc);}function _0x5d0488(){const _0x4c2de3=_0x553dd7([0x6c,0x6c,0x63,0x74,0x2d])+_0x1f0f44(_0x3d7b3d(_0x2139bf)),_0x4036fe=window[_0x553dd7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x553dd7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4c2de3);return _0x4036fe?window[_0x553dd7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cc664(_0x4036fe),0x10)*_0x285abe:null;}function _0x7fc083(_0x229a64){return new window[(_0x553dd7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x493a28,_0x253f53)=>{_0x229a64[_0x553dd7([0x74,0x68,0x65,0x6e])](_0x493a28,_0x253f53),window[_0x553dd7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x253f53,0x44cf5172^_0x1f4d8a);});}}_0x3a6c16[_0x553dd7([0x6f,0x6e])](_0x553dd7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ae660,_0x4576e9)=>{if(_0x4576e9[0x0]!=_0x2139bf)return _0x19d505(_0x553dd7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4576e9[0x1]={..._0x4576e9[0x1],[_0x553dd7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x44564e};},{[_0x553dd7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x553dd7([0x68,0x69,0x67,0x68])}),_0x3a6c16[_0x553dd7([0x6f,0x6e])](_0x553dd7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1cd512=>{_0x197471(_0x1cd512[_0x553dd7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x278490=!0x0,_0x2d882b(_0x1cd512[_0x553dd7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x553dd7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x553dd7([0x6c,0x6f,0x77])}),_0x57c606[_0x553dd7([0x74,0x68,0x65,0x6e])](()=>{_0x278490||_0x19d505(_0x553dd7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5a91ed(){return _0x3a6c16[_0x553dd7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x553dd7([0x76,0x69,0x65,0x77])][_0x553dd7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x553dd7([0x61,0x75,0x74,0x6f]);}function _0x1574a9(){_0x3a6c16[_0x553dd7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x553dd7([0x76,0x69,0x65,0x77])][_0x553dd7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x553dd7([0x61,0x75,0x74,0x6f]);}}function _0x349d81(_0x4f3286){const _0x37ac8d=[new window[(_0x553dd7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e603a=>setTimeout(_0x5e603a,0x44c7bb7e^_0x1f4d8a)),_0x57c606[_0x553dd7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x553dd7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4f22f6=>{let _0x2d6297=0x0;_0x3a6c16[_0x553dd7([0x6d,0x6f,0x64,0x65,0x6c])][_0x553dd7([0x6f,0x6e])](_0x553dd7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xbf8eba,_0x3e0710)=>{_0x3e0710[0x0][_0x553dd7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2d6297++,_0x2d6297==(0x44ce844a^_0x1f4d8a)&&(_0x4f22f6(),_0xbf8eba[_0x553dd7([0x6f,0x66,0x66])]());});}))];return window[_0x553dd7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x553dd7([0x72,0x61,0x63,0x65])](_0x37ac8d)[_0x553dd7([0x74,0x68,0x65,0x6e])](()=>_0x4f3286);}async function _0x3cb90d(){const _0x3d05aa=_0x1630;await _0x57c606;const _0x46c4d8=_0x3a6c16[_0x3d05aa(0x12d)][_0x553dd7([0x67,0x65,0x74])](_0x553dd7([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73]));_0x46c4d8&&_0x46c4d8[_0x553dd7([0x6f,0x6e])](_0x553dd7([0x65,0x78,0x65,0x63,0x75,0x74,0x65]),_0x33f429=>{const _0x4bdb39=_0x3d05aa;_0x33f429[_0x4bdb39(0x129)]();},{'priority':_0x553dd7([0x68,0x69,0x67,0x68,0x65,0x73,0x74])}),_0x3a6c16[_0x553dd7([0x6d,0x6f,0x64,0x65,0x6c])][_0x553dd7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c7ee5,_0x3a6c16[_0x553dd7([0x6d,0x6f,0x64,0x65,0x6c])][_0x553dd7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c7ee5,_0x3a6c16[_0x553dd7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x553dd7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x390af8(_0x553c4b){const _0x156543=_0x28df5c();_0x3a6c16[_0x156543]=_0x553dd7([0x65,0x78,0x70,0x6f,0x72,0x74,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x53,0x74,0x79,0x6c,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x553c4b,_0x553c4b!=_0x553dd7([0x56,0x61,0x6c,0x69,0x64])&&_0x3cb90d();}function _0x28df5c(){const _0x3fa020=window[_0x553dd7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x553dd7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x553dd7([0x6e,0x6f,0x77])]())[_0x553dd7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x553dd7([0x2e]),'');let _0x452b3f=_0x553dd7([0x42]);for(let _0x3c758a=0x0;_0x3c758a<_0x3fa020[_0x553dd7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3c758a+=0x2){let _0x690ad8=window[_0x553dd7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fa020[_0x553dd7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3c758a,_0x3c758a+0x2));_0x690ad8>=_0x3568c3[_0x553dd7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x690ad8-=_0x3568c3[_0x553dd7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x452b3f+=_0x3568c3[_0x690ad8];}return _0x452b3f;}function _0x3b75e4(){const _0x4f6101=_0x469525[_0x553dd7([0x73,0x70,0x6c,0x69,0x74])](_0x553dd7([0x2e]));if(0x3!=_0x4f6101[_0x553dd7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2b5998(_0x4f6101[0x1]);function _0x2b5998(_0x51bff0){const _0x343a7e=_0x3dcf1c(_0x51bff0);return _0x343a7e&&_0x5c47e0()?_0x343a7e:null;function _0x5c47e0(){const _0x13f03d=_0x343a7e[_0x553dd7([0x6a,0x74,0x69])],_0x223e33=window[_0x553dd7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x13f03d[_0x553dd7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x13f03d[_0x553dd7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x360d4e={..._0x343a7e,[_0x553dd7([0x6a,0x74,0x69])]:_0x13f03d[_0x553dd7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x13f03d[_0x553dd7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x360d4e[_0x553dd7([0x76,0x63])],_0x3d7b3d(_0x360d4e)==_0x223e33;}}}async function _0x5743bd(){let _0x1087a3=!0x0;try{const _0x29fb25=_0x469525[_0x553dd7([0x73,0x70,0x6c,0x69,0x74])](_0x553dd7([0x2e])),[_0x5e2ac5,_0x358bf2,_0x3c52d7]=_0x29fb25;return _0x1fb473(_0x5e2ac5),await _0x537396(_0x5e2ac5,_0x358bf2,_0x3c52d7),_0x1087a3;}catch(_0x20a24d){return!0x1;}function _0x1fb473(_0x483c3b){const _0x2978a8=_0x3dcf1c(_0x483c3b);_0x2978a8&&_0x2978a8[_0x553dd7([0x61,0x6c,0x67])]==_0x553dd7([0x45,0x53,0x32,0x35,0x36])||(_0x1087a3=!0x1);}async function _0x537396(_0x22545e,_0x2b2afd,_0x5f6b06){const _0x17ad90=window[_0x553dd7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x553dd7([0x66,0x72,0x6f,0x6d])](_0x277c21(_0x5f6b06),_0x252fbf=>_0x252fbf[_0x553dd7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x38180a=new window[(_0x553dd7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x553dd7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x22545e+_0x553dd7([0x2e])+_0x2b2afd),_0x40db36=window[_0x553dd7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x553dd7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x40db36)return;const _0x349d09=await _0x40db36[_0x553dd7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x553dd7([0x6a,0x77,0x6b]),_0x1f12fd,{[_0x553dd7([0x6e,0x61,0x6d,0x65])]:_0x553dd7([0x45,0x43,0x44,0x53,0x41]),[_0x553dd7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x553dd7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x553dd7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x40db36[_0x553dd7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x553dd7([0x6e,0x61,0x6d,0x65])]:_0x553dd7([0x45,0x43,0x44,0x53,0x41]),[_0x553dd7([0x68,0x61,0x73,0x68])]:{[_0x553dd7([0x6e,0x61,0x6d,0x65])]:_0x553dd7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x349d09,_0x17ad90,_0x38180a)||(_0x1087a3=!0x1);}}function _0x3dcf1c(_0x54dea4){return _0x54dea4[_0x553dd7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x553dd7([0x65,0x79]))?JSON[_0x553dd7([0x70,0x61,0x72,0x73,0x65])](_0x277c21(_0x54dea4)):null;}function _0x277c21(_0x23b8ac){return window[_0x553dd7([0x61,0x74,0x6f,0x62])](_0x23b8ac[_0x553dd7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x553dd7([0x2b]))[_0x553dd7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x553dd7([0x2f])));}function _0x3d7b3d(_0x9ac4ff){let _0x5a2842=0x1505;function _0x41d432(_0x1874f9){for(let _0x45183a=0x0;_0x45183a<_0x1874f9[_0x553dd7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x45183a++){const _0x4fef92=_0x1874f9[_0x553dd7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x45183a);_0x5a2842=(_0x5a2842<<0x5)+_0x5a2842+_0x4fef92,_0x5a2842&=_0x5a2842;}}function _0x102207(_0x248ad0){Array[_0x553dd7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x248ad0)?_0x248ad0[_0x553dd7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x102207):_0x248ad0&&typeof _0x248ad0==_0x553dd7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x553dd7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x248ad0)[_0x553dd7([0x73,0x6f,0x72,0x74])]()[_0x553dd7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2fed15,_0x3b5766])=>{_0x41d432(_0x2fed15),_0x102207(_0x3b5766);}):_0x41d432(window[_0x553dd7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x248ad0));}return _0x102207(_0x9ac4ff),_0x5a2842>>>0x0;}function _0x1f0f44(_0x5f0c86){return _0x5f0c86[_0x553dd7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x553dd7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x553dd7([0x30]));}function _0x1cc664(_0x55512b){return _0x55512b[_0x553dd7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x553dd7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x553dd7([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c7ee5(){}function _0x553dd7(_0x1f6642){const _0x4c6ec6=_0x1630;return _0x1f6642[_0x4c6ec6(0x130)](_0x6ad38b=>String[_0x4c6ec6(0x12f)](_0x6ad38b))[_0x4c6ec6(0x132)]('');}_0x390af8(await _0x3d00dd());}(this);}}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module export-inline-styles/exportinlinestylesutils
|
|
7
|
+
*/
|
|
8
|
+
/**
|
|
9
|
+
* Splits a string by top-level separators while preserving nested structures in parentheses.
|
|
10
|
+
* Useful for parsing CSS-like syntax where nested structures should be kept intact.
|
|
11
|
+
*
|
|
12
|
+
* @param text The text to split.
|
|
13
|
+
* @returns An array of individual segments.
|
|
14
|
+
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* // CSS selectors with nested pseudo-functions
|
|
17
|
+
* splitByTopLevelComma( ':is(h1, h2, h3).title' );
|
|
18
|
+
* // → [ ':is(h1, h2, h3).title' ]
|
|
19
|
+
*
|
|
20
|
+
* splitByTopLevelComma( '.foo:is(.bar, .baz), .qux' );
|
|
21
|
+
* // → [ '.foo:is(.bar, .baz)', '.qux' ]
|
|
22
|
+
*
|
|
23
|
+
* // CSS values with color functions
|
|
24
|
+
* splitByTopLevelComma( 'rgb(255, 0, 0), blue' );
|
|
25
|
+
* // → [ 'rgb(255, 0, 0)', 'blue' ]
|
|
26
|
+
*
|
|
27
|
+
* // Generic nested structures
|
|
28
|
+
* splitByTopLevelComma( 'foo(1, 2), bar(3, fn(4, 5)), baz' );
|
|
29
|
+
* // → [ 'foo(1, 2)', 'bar(3, fn(4, 5))', 'baz' ]
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export declare function splitByTopLevelComma(text: string): Array<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Finds the position of matching closing parenthesis, handling nested parentheses.
|
|
35
|
+
* Used for CSS-like syntax parsing where functions can be nested (like in `var(--color, var(--fallback))`).
|
|
36
|
+
*
|
|
37
|
+
* @param text The text to search in.
|
|
38
|
+
* @param startPosition Position after the opening parenthesis.
|
|
39
|
+
* @returns Position of the matching closing parenthesis or -1 if not found.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```ts
|
|
43
|
+
* findMatchingParenthesis( 'var(--color, var(--fallback))', 4 ); // returns 28
|
|
44
|
+
* findMatchingParenthesis( 'rgb(255, 0, 0)', 4 ); // returns 13
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export declare function findMatchingParenthesis(text: string, startPosition: number): number;
|
|
48
|
+
/**
|
|
49
|
+
* Removes the `!important` suffix from a CSS property value.
|
|
50
|
+
*
|
|
51
|
+
* @param value The CSS property value which might contain `!important`.
|
|
52
|
+
* @returns The cleaned value without `!important`.
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* // returns "color: red" from "color: red !important"
|
|
56
|
+
*/
|
|
57
|
+
export declare function dropImportantStyleSuffix(value: string): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(function(_0x277161,_0x5ea32a){const _0x3ce4cb=_0x3b56,_0x47877c=_0x277161();while(!![]){try{const _0x3e32c4=-parseInt(_0x3ce4cb(0x1a3))/0x1*(-parseInt(_0x3ce4cb(0x1a4))/0x2)+parseInt(_0x3ce4cb(0x19f))/0x3+-parseInt(_0x3ce4cb(0x1a9))/0x4*(-parseInt(_0x3ce4cb(0x1aa))/0x5)+-parseInt(_0x3ce4cb(0x1a1))/0x6+parseInt(_0x3ce4cb(0x1ae))/0x7+-parseInt(_0x3ce4cb(0x1a8))/0x8+-parseInt(_0x3ce4cb(0x1ab))/0x9*(parseInt(_0x3ce4cb(0x19e))/0xa);if(_0x3e32c4===_0x5ea32a)break;else _0x47877c['push'](_0x47877c['shift']());}catch(_0x48d634){_0x47877c['push'](_0x47877c['shift']());}}}(_0x4944,0x47e59));function _0x4944(){const _0x8b7c02=['endsWith','length','trim','1288216UEllLf','1067756KJagSC','5ATOzYp','9QjKaiG','filter','slice','97741IlZYTP','1814770Hnhjjy','1415301SeNErS','push','2549886gwdrZy','replace','309305aGjSZH','2NIlVOt'];_0x4944=function(){return _0x8b7c02;};return _0x4944();}export function splitByTopLevelComma(_0x5670a1){const _0x2a1f51=_0x3b56,_0x4be20d=[];let _0x2f14e6='',_0x429516=0x0;for(;_0x429516<_0x5670a1[_0x2a1f51(0x1a6)];){const _0x19175b=_0x5670a1[_0x429516];if('('===_0x19175b){const _0x3d6701=findMatchingParenthesis(_0x5670a1,_0x429516+0x1);if(-0x1===_0x3d6701)return[];_0x2f14e6+=_0x5670a1[_0x2a1f51(0x1ad)](_0x429516,_0x3d6701+0x1),_0x429516=_0x3d6701+0x1;}else','!==_0x19175b||_0x2f14e6[_0x2a1f51(0x1a5)]('\x5c')?(_0x2f14e6+=_0x19175b,_0x429516++):(_0x4be20d[_0x2a1f51(0x1a0)](_0x2f14e6[_0x2a1f51(0x1a7)]()),_0x2f14e6='',_0x429516++);}return _0x2f14e6[_0x2a1f51(0x1a7)]()&&_0x4be20d[_0x2a1f51(0x1a0)](_0x2f14e6[_0x2a1f51(0x1a7)]()),_0x4be20d[_0x2a1f51(0x1ac)](Boolean);}function _0x3b56(_0x2c885d,_0x50118f){const _0x494469=_0x4944();return _0x3b56=function(_0x3b56f2,_0x1e6fd9){_0x3b56f2=_0x3b56f2-0x19e;let _0x18fc6d=_0x494469[_0x3b56f2];return _0x18fc6d;},_0x3b56(_0x2c885d,_0x50118f);}export function findMatchingParenthesis(_0x54d198,_0x771e24){const _0x9a8eb5=_0x3b56;let _0x2bd5a8=0x1;for(let _0x29c876=_0x771e24;_0x29c876<_0x54d198[_0x9a8eb5(0x1a6)];_0x29c876++){const _0x4e4dea=_0x54d198[_0x29c876];if('('===_0x4e4dea)_0x2bd5a8++;else{if(')'===_0x4e4dea&&(_0x2bd5a8--,0x0===_0x2bd5a8))return _0x29c876;}}return-0x1;}export function dropImportantStyleSuffix(_0x3562f5){const _0x1c5894=_0x3b56;return _0x3562f5[_0x1c5894(0x1a2)](/!\s*important/i,'')[_0x1c5894(0x1a7)]();}
|
package/src/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module export-inline-styles
|
|
7
|
+
*/
|
|
8
|
+
export { default as ExportInlineStyles, type ExportInlineStylesConfig, type ExportInlineStylesTransformation } from './exportinlinestyles.js';
|
|
9
|
+
export { default as ExportInlineStylesCommand } from './exportinlinestylescommand.js';
|
|
10
|
+
export { default as ExportInlineStylesEditing } from './exportinlinestylesediting.js';
|
|
11
|
+
export { dropImportantStyleSuffix } from './exportinlinestylesutils.js';
|
|
12
|
+
import './augmentation.js';
|
package/src/index.js
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(function(_0x516c47,_0x2ce3c1){var _0x5d42f2=_0x228a,_0x12f45e=_0x516c47();while(!![]){try{var _0x18b1e7=parseInt(_0x5d42f2(0xbb))/0x1+parseInt(_0x5d42f2(0xb8))/0x2+parseInt(_0x5d42f2(0xb7))/0x3*(parseInt(_0x5d42f2(0xb3))/0x4)+-parseInt(_0x5d42f2(0xba))/0x5+-parseInt(_0x5d42f2(0xb9))/0x6*(parseInt(_0x5d42f2(0xb4))/0x7)+parseInt(_0x5d42f2(0xb6))/0x8+-parseInt(_0x5d42f2(0xb5))/0x9;if(_0x18b1e7===_0x2ce3c1)break;else _0x12f45e['push'](_0x12f45e['shift']());}catch(_0x342a08){_0x12f45e['push'](_0x12f45e['shift']());}}}(_0x38bd,0xd4350));export{default as ExportInlineStyles}from'./exportinlinestyles.js';export{default as ExportInlineStylesCommand}from'./exportinlinestylescommand.js';export{default as ExportInlineStylesEditing}from'./exportinlinestylesediting.js';export{dropImportantStyleSuffix}from'./exportinlinestylesutils.js';function _0x228a(_0x12dacc,_0x1229f4){var _0x38bda5=_0x38bd();return _0x228a=function(_0x228a8b,_0x4bd248){_0x228a8b=_0x228a8b-0xb3;var _0x2e60af=_0x38bda5[_0x228a8b];return _0x2e60af;},_0x228a(_0x12dacc,_0x1229f4);}function _0x38bd(){var _0x171e41=['1705878OEZABd','2756048brRgbS','6XalubQ','1475370WWszSQ','5280918CrZMeD','5132075cQdLQl','460795wdTpVL','2844648aaauaP','7MumiCo'];_0x38bd=function(){return _0x171e41;};return _0x38bd();}import'./augmentation.js';
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
import { StylesMap, type StylesProcessor } from 'ckeditor5/src/engine.js';
|
|
6
|
+
import { type CSSVariablesMap } from './exportinlinestylescssvariables.js';
|
|
7
|
+
/**
|
|
8
|
+
* Processes raw stylesheets from various sources and converts them into parsed CSS rules.
|
|
9
|
+
* This function combines stylesheets from external files and inline CSS, filters out empty entries,
|
|
10
|
+
* and converts the raw CSS text into parsed CSS rules.
|
|
11
|
+
*
|
|
12
|
+
* **NOTE:**
|
|
13
|
+
*
|
|
14
|
+
* 1. The order of the stylesheets matters.
|
|
15
|
+
* 2. The rules from the last stylesheet have the highest priority.
|
|
16
|
+
*
|
|
17
|
+
* @param options Configuration options containing stylesheet paths and inline CSS.
|
|
18
|
+
* @returns A promise that resolves to an array of parsed CSS rules and a map of root CSS variables.
|
|
19
|
+
*/
|
|
20
|
+
export default function collectAndProcessStylesheets(options: {
|
|
21
|
+
stylesProcessor: StylesProcessor;
|
|
22
|
+
stylesheets?: Array<string>;
|
|
23
|
+
inlineCss?: string;
|
|
24
|
+
}): Promise<{
|
|
25
|
+
parsedCssRules: Array<ParsedCSSRule>;
|
|
26
|
+
rootCssVariables: CSSVariablesMap;
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* Represents a flattened CSS rule with its selector and style information.
|
|
30
|
+
*/
|
|
31
|
+
export type ParsedCSSRule = {
|
|
32
|
+
/**
|
|
33
|
+
* A single CSS selector extracted from potentially comma-separated selectors.
|
|
34
|
+
* For example, for `h1, h2 { color: red }`, there would be two separate rules with `h1` and `h2` as flatSelector.
|
|
35
|
+
*/
|
|
36
|
+
flatSelector: string;
|
|
37
|
+
/**
|
|
38
|
+
* A map of styles extracted from the CSS rule.
|
|
39
|
+
*/
|
|
40
|
+
stylesMap: StylesMap;
|
|
41
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
function _0x24a0(){const _0x2f51a9=['length','sort','stylesProcessor','3vwCuCG','4204802MIOQzM','7570GbvKbV','inlineCss','20997lIWuJf','445VJMVff','23419fUmNvj','stylesheets','625516ckRnMq','filter','36268dEPwmK','703531YmsNFj','specificityArray','flatMap','specificity','cssText','replace','from','join','cssRules','setTo','4776vLmIoy','map','8148846bKdrkg','trim'];_0x24a0=function(){return _0x2f51a9;};return _0x24a0();}(function(_0x226f4d,_0x3963f0){const _0x517baf=_0x3018,_0x406fc1=_0x226f4d();while(!![]){try{const _0x2f384e=parseInt(_0x517baf(0x158))/0x1+-parseInt(_0x517baf(0x155))/0x2*(-parseInt(_0x517baf(0x14d))/0x3)+-parseInt(_0x517baf(0x157))/0x4*(-parseInt(_0x517baf(0x152))/0x5)+parseInt(_0x517baf(0x164))/0x6+parseInt(_0x517baf(0x14e))/0x7+-parseInt(_0x517baf(0x162))/0x8*(parseInt(_0x517baf(0x151))/0x9)+-parseInt(_0x517baf(0x14f))/0xa*(parseInt(_0x517baf(0x153))/0xb);if(_0x2f384e===_0x3963f0)break;else _0x406fc1['push'](_0x406fc1['shift']());}catch(_0x5e4061){_0x406fc1['push'](_0x406fc1['shift']());}}}(_0x24a0,0xbdd99));import{calculate as _0x4b802f,compare as _0x2c4f5b}from'specificity';import{StylesMap as _0x445c8}from'ckeditor5/src/engine.js';function _0x3018(_0x1768d7,_0x5b8be8){const _0x24a065=_0x24a0();return _0x3018=function(_0x30180f,_0x478c2c){_0x30180f=_0x30180f-0x14d;let _0x15285a=_0x24a065[_0x30180f];return _0x15285a;},_0x3018(_0x1768d7,_0x5b8be8);}import{collectStylesheets as _0x46c7b2}from'ckeditor5/src/utils.js';import{collectRootStylesheetsVariables as _0x169b83}from'./exportinlinestylescssvariables.js';import{splitByTopLevelComma as _0x8befd6}from'../exportinlinestylesutils.js';export default async function r(_0x255998){const _0x10e9c6=_0x3018,_0x2872c3=[await _0x46c7b2(_0x255998[_0x10e9c6(0x154)]),_0x255998[_0x10e9c6(0x150)]][_0x10e9c6(0x156)](_0x2b6247=>_0x2b6247&&_0x2b6247[_0x10e9c6(0x166)])[_0x10e9c6(0x15f)]('\x0a'),_0x4138fb=await async function(_0x10261a,_0x357a9c){const _0x53a9ef=_0x10e9c6,_0x2dac90=new CSSStyleSheet();return await _0x2dac90[_0x53a9ef(0x15d)](_0x357a9c),w(Array[_0x53a9ef(0x15e)](_0x2dac90[_0x53a9ef(0x160)])[_0x53a9ef(0x156)](_0x1641ec=>_0x1641ec instanceof CSSStyleRule))[_0x53a9ef(0x15a)](({selectorText:_0x369942,contentCssText:_0x294346})=>{const _0x137a2f=_0x53a9ef,_0x1ba2e0=_0x8befd6(_0x369942),_0xcc27a=new _0x445c8(_0x10261a)[_0x137a2f(0x161)](_0x294346);return _0x1ba2e0[_0x137a2f(0x163)](_0x2616ac=>({'stylesMap':_0xcc27a,'flatSelector':_0x2616ac,'specificity':_0x4b802f(_0x2616ac)[0x0][_0x137a2f(0x159)]}));})[_0x53a9ef(0x167)]((_0x2185f0,_0xdd6a02)=>_0x2c4f5b(_0x2185f0[_0x53a9ef(0x15b)],_0xdd6a02[_0x53a9ef(0x15b)]));}(_0x255998[_0x10e9c6(0x168)],_0x2872c3);return{'parsedCssRules':_0x4138fb,'rootCssVariables':_0x169b83(_0x4138fb)};}function w(_0x19fd14,_0x19eea7=''){const _0x5a7cbe=_0x3018;return _0x19fd14[_0x5a7cbe(0x15a)](_0x1b3f84=>{const _0x29da39=_0x5a7cbe,{selectorText:_0x5f10fa,cssText:_0x5b0937,cssRules:_0x232e24}=_0x1b3f84;if(!_0x5f10fa)return[];const _0x35e61e=_0x5f10fa[_0x29da39(0x15d)](/&/g,_0x19eea7);let _0x364023=_0x5b0937[_0x29da39(0x15d)](_0x5f10fa,'')[_0x29da39(0x165)]()[_0x29da39(0x15d)](/^{|}$/g,'');if(!_0x232e24||!_0x232e24[_0x29da39(0x166)])return[{'selectorText':_0x35e61e,'contentCssText':_0x364023}];for(const _0x2685bb of _0x232e24)_0x364023=_0x364023[_0x29da39(0x15d)](_0x2685bb[_0x29da39(0x15c)],'')[_0x29da39(0x165)]();return[{'selectorText':_0x35e61e,'contentCssText':_0x364023},...w(Array[_0x29da39(0x15e)](_0x232e24),_0x35e61e)];});}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module export-inline-styles/utils/exportinlinestylescssvariables
|
|
7
|
+
*/
|
|
8
|
+
import type { StylesMap } from 'ckeditor5/src/engine.js';
|
|
9
|
+
import type { ParsedCSSRule } from './exportinlinestylescollector.js';
|
|
10
|
+
/**
|
|
11
|
+
* Collects CSS custom properties (variables) that are defined in `:root` selector rules.
|
|
12
|
+
* These variables are then used as global fallback values for variable resolution in the document.
|
|
13
|
+
*
|
|
14
|
+
* **Note:** Since `element.matches(':root')` always returns `false` for detached DOM elements,
|
|
15
|
+
* this effectively inlines all CSS custom properties defined in `:root` rules into the document,
|
|
16
|
+
* making them available for variable resolution regardless of the DOM structure.
|
|
17
|
+
*
|
|
18
|
+
* @param rules An array of parsed CSS rules to extract variables from.
|
|
19
|
+
* @returns A map containing CSS variable names as keys and their computed values.
|
|
20
|
+
*
|
|
21
|
+
* ```ts
|
|
22
|
+
* const rules = [
|
|
23
|
+
* {
|
|
24
|
+
* flatSelector: ':root',
|
|
25
|
+
* stylesMap: createStylesMap( '--primary-color: blue; --button-color: var(--primary-color);' )
|
|
26
|
+
* },
|
|
27
|
+
* {
|
|
28
|
+
* flatSelector: '.button',
|
|
29
|
+
* stylesMap: createStylesMap( 'background: var(--button-color); border: 1px solid var(--primary-color);' )
|
|
30
|
+
* }
|
|
31
|
+
* ];
|
|
32
|
+
*
|
|
33
|
+
* const rootVariables = collectRootStylesheetsVariables( rules );
|
|
34
|
+
* // Returns: Map {
|
|
35
|
+
* // '--primary-color' => 'blue',
|
|
36
|
+
* // '--button-color' => 'blue'
|
|
37
|
+
* // }
|
|
38
|
+
* ```
|
|
39
|
+
*/
|
|
40
|
+
export declare function collectRootStylesheetsVariables(rules: Array<ParsedCSSRule>): CSSVariablesMap;
|
|
41
|
+
/**
|
|
42
|
+
* Processes CSS variables in a styles map by inlining their values.
|
|
43
|
+
*
|
|
44
|
+
* **Note:** This function modifies the input StylesMap object. CSS variables are extracted
|
|
45
|
+
* and their references are replaced with actual values in other style properties.
|
|
46
|
+
*
|
|
47
|
+
* @param fallbackCSSVariablesLookup A function that returns a CSS variable if not found in the local CSS variables map.
|
|
48
|
+
* @param stylesMap The styles map to process. Will be modified in-place.
|
|
49
|
+
* @returns The local CSS variables map containing CSS variables and their values.
|
|
50
|
+
*
|
|
51
|
+
* ```ts
|
|
52
|
+
* const stylesMap = new StylesMap();
|
|
53
|
+
* stylesMap.set( '--color', 'red' );
|
|
54
|
+
* stylesMap.set( 'color', 'var(--color)' );
|
|
55
|
+
*
|
|
56
|
+
* inlineStylesMapCSSVariables( stylesMap );
|
|
57
|
+
* // stylesMap now contains: color: red
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function inlineStylesMapCSSVariables(fallbackCSSVariablesLookup: CSSVariableLookupCallback, stylesMap: StylesMap): CSSVariablesMap;
|
|
61
|
+
/**
|
|
62
|
+
* A function that returns a CSS variable value for a given variable name.
|
|
63
|
+
*/
|
|
64
|
+
export type CSSVariableLookupCallback = (name: string) => string | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* A map of CSS variables and their values.
|
|
67
|
+
*/
|
|
68
|
+
export type CSSVariablesMap = Map<string, string>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(function(_0x4f4bef,_0x2c27ce){const _0x424a72=_0x4ae1,_0x4a4e7a=_0x4f4bef();while(!![]){try{const _0x2cf332=-parseInt(_0x424a72(0x89))/0x1+parseInt(_0x424a72(0x7c))/0x2+parseInt(_0x424a72(0x8c))/0x3+-parseInt(_0x424a72(0x7d))/0x4+parseInt(_0x424a72(0x7a))/0x5*(parseInt(_0x424a72(0x7b))/0x6)+-parseInt(_0x424a72(0x8e))/0x7*(-parseInt(_0x424a72(0x82))/0x8)+-parseInt(_0x424a72(0x7f))/0x9;if(_0x2cf332===_0x2c27ce)break;else _0x4a4e7a['push'](_0x4a4e7a['shift']());}catch(_0x37b437){_0x4a4e7a['push'](_0x4a4e7a['shift']());}}}(_0x18b7,0x26ff7));import{findMatchingParenthesis as _0x1799eb,splitByTopLevelComma as _0x4b78f3}from'../exportinlinestylesutils.js';export function collectRootStylesheetsVariables(_0x1e1a1b){const _0x23b1af=_0x4ae1,_0x58c982=new Map();for(const {stylesMap:_0x5dded9,flatSelector:_0x523690}of _0x1e1a1b){if(_0x23b1af(0x8b)!==_0x523690)continue;const _0x182ba0=inlineStylesMapCSSVariables(_0x58c982[_0x23b1af(0x85)][_0x23b1af(0x8d)](_0x58c982),_0x5dded9);for(const [_0x31435e,_0x5657a4]of _0x182ba0)_0x58c982[_0x23b1af(0x87)](_0x31435e,_0x5657a4);}return _0x58c982;}function _0x4ae1(_0x100a14,_0x5ceea2){const _0x18b79d=_0x18b7();return _0x4ae1=function(_0x4ae100,_0x229f5f){_0x4ae100=_0x4ae100-0x7a;let _0x2b2180=_0x18b79d[_0x4ae100];return _0x2b2180;},_0x4ae1(_0x100a14,_0x5ceea2);}function _0x18b7(){const _0x815adb=['remove','get','getStylesEntries','set','indexOf','285829PDXnWt','var(',':root','488871WkZIYv','bind','7EKZnHU','slice','995155WsCcoI','6rPzGUB','512726UtNase','532508gYQWXi','has','1991187wRibRD','startsWith','substring','1452664eYsMzR','length'];_0x18b7=function(){return _0x815adb;};return _0x18b7();}export function inlineStylesMapCSSVariables(_0x542351,_0x3a4524){const _0x349259=_0x4ae1,_0x413a28=new Map(),_0x5b7f1=_0x46e69c=>_0x413a28[_0x349259(0x7e)](_0x46e69c)?_0x413a28[_0x349259(0x85)](_0x46e69c):_0x542351(_0x46e69c);for(const [_0x53edab,_0x12e3ab]of _0x3a4524[_0x349259(0x86)]())if(_0x12e3ab&&_0x53edab[_0x349259(0x80)]('--')){const _0x4b974d=b(_0x5b7f1,_0x12e3ab);_0x413a28[_0x349259(0x87)](_0x53edab,_0x4b974d),_0x3a4524[_0x349259(0x84)](_0x53edab);}for(const [_0x3ecb22,_0x371ff4]of _0x3a4524[_0x349259(0x86)]())if(_0x371ff4){const _0x2f4d67=b(_0x5b7f1,_0x371ff4);_0x3a4524[_0x349259(0x87)](_0x3ecb22,_0x2f4d67);}return _0x413a28;}function b(_0x1a8707,_0x16d9d5){return function(_0x175eb7,_0x2ed864){const _0x4d43f6=_0x4ae1;let _0x55796c='',_0x5e3ad2=0x0;for(;_0x5e3ad2<_0x175eb7[_0x4d43f6(0x83)];){const _0x16dce3=_0x175eb7[_0x4d43f6(0x88)](_0x4d43f6(0x8a),_0x5e3ad2);if(-0x1===_0x16dce3){_0x55796c+=_0x175eb7[_0x4d43f6(0x8f)](_0x5e3ad2);break;}_0x55796c+=_0x175eb7[_0x4d43f6(0x8f)](_0x5e3ad2,_0x16dce3);const _0xb31363=_0x16dce3+0x4,_0x434764=_0x1799eb(_0x175eb7,_0xb31363);_0x55796c+=_0x2ed864(_0x175eb7[_0x4d43f6(0x81)](_0xb31363,_0x434764)),_0x5e3ad2=_0x434764+0x1;}return _0x55796c;}(_0x16d9d5,_0x373bd9=>{const _0x3fcc61=_0x4ae1,[_0x502687,_0xccf601]=_0x4b78f3(_0x373bd9),_0x31095b=_0x1a8707(_0x502687);return void 0x0!==_0x31095b?_0x31095b:_0xccf601?b(_0x1a8707,_0xccf601):_0x3fcc61(0x8a)+_0x502687+')';});}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* @module export-inline-styles/utils/exportinlinestylesmatcher
|
|
7
|
+
*/
|
|
8
|
+
import { StylesMap, type StylesProcessor } from 'ckeditor5/src/engine.js';
|
|
9
|
+
import type { ParsedCSSRule } from './exportinlinestylescollector.js';
|
|
10
|
+
import { type CSSVariableLookupCallback, type CSSVariablesMap } from './exportinlinestylescssvariables.js';
|
|
11
|
+
/**
|
|
12
|
+
* Returns inline styles that should be applied to the given element based on matched CSS rules.
|
|
13
|
+
*
|
|
14
|
+
* @param options.stylesProcessor A StylesProcessor instance.
|
|
15
|
+
* @param options.inheritedCSSVariables An object containing inherited CSS variables.
|
|
16
|
+
* @param options.parsedCssRules An array of parsed CSS rules.
|
|
17
|
+
* @param options.element The HTML element to get inline styles for.
|
|
18
|
+
* @returns A string containing inline styles.
|
|
19
|
+
*
|
|
20
|
+
* ```ts
|
|
21
|
+
* const rules = [
|
|
22
|
+
* { flatSelector: 'p.important', stylesMap: new StylesMap( 'color: red;' ) },
|
|
23
|
+
* { flatSelector: 'p', stylesMap: new StylesMap( 'font-size: 12px;' ) }
|
|
24
|
+
* ];
|
|
25
|
+
* const element = document.createElement( 'p' );
|
|
26
|
+
* element.className = 'important';
|
|
27
|
+
*
|
|
28
|
+
* const { stylesMap } = getElementInlineStyles( rules, element );
|
|
29
|
+
* // Returns styles map with: "color: red; font-size: 12px"
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
export default function getElementInlineStyles(options: {
|
|
33
|
+
stylesProcessor: StylesProcessor;
|
|
34
|
+
fallbackCSSVariablesLookup: CSSVariableLookupCallback;
|
|
35
|
+
parsedCssRules: Array<ParsedCSSRule>;
|
|
36
|
+
element: HTMLElement;
|
|
37
|
+
}): {
|
|
38
|
+
localCSSVariables: CSSVariablesMap;
|
|
39
|
+
stylesMap: StylesMap;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Combines multiple StylesMap or String objects into a single StylesMap object.
|
|
43
|
+
*
|
|
44
|
+
* @param stylesProcessor A StylesProcessor instance.
|
|
45
|
+
* @param styles An array of StylesMap objects to combine.
|
|
46
|
+
* @returns A StylesMap object containing all combined styles.
|
|
47
|
+
*/
|
|
48
|
+
export declare function concatStylesMaps(stylesProcessor: StylesProcessor, stylesMaps: Array<StylesMap | string | null>): StylesMap;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* +---------------------------------------------------------------------------------+
|
|
8
|
+
* | |
|
|
9
|
+
* | Hello stranger! |
|
|
10
|
+
* | |
|
|
11
|
+
* | |
|
|
12
|
+
* | What you're currently looking at is the source code of a legally protected, |
|
|
13
|
+
* | proprietary software. Any attempts to deobfuscate / disassemble this code |
|
|
14
|
+
* | are forbidden and will result in legal consequences. |
|
|
15
|
+
* | |
|
|
16
|
+
* | |
|
|
17
|
+
* +---------------------------------------------------------------------------------+
|
|
18
|
+
*
|
|
19
|
+
*
|
|
20
|
+
*
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
(function(_0x1f1cf8,_0x25dc51){const _0x4e86b7=_0x368b,_0x1d378b=_0x1f1cf8();while(!![]){try{const _0x284819=parseInt(_0x4e86b7(0x139))/0x1+-parseInt(_0x4e86b7(0x13e))/0x2+-parseInt(_0x4e86b7(0x131))/0x3*(parseInt(_0x4e86b7(0x130))/0x4)+-parseInt(_0x4e86b7(0x12b))/0x5*(-parseInt(_0x4e86b7(0x141))/0x6)+parseInt(_0x4e86b7(0x13a))/0x7*(parseInt(_0x4e86b7(0x138))/0x8)+parseInt(_0x4e86b7(0x13f))/0x9*(parseInt(_0x4e86b7(0x12a))/0xa)+parseInt(_0x4e86b7(0x135))/0xb*(-parseInt(_0x4e86b7(0x133))/0xc);if(_0x284819===_0x25dc51)break;else _0x1d378b['push'](_0x1d378b['shift']());}catch(_0x20ba64){_0x1d378b['push'](_0x1d378b['shift']());}}}(_0x3312,0xc2f78));import{StylesMap as _0xed7526}from'ckeditor5/src/engine.js';function _0x368b(_0x215ed0,_0x2beccd){const _0x3312cd=_0x3312();return _0x368b=function(_0x368b9c,_0x4e999d){_0x368b9c=_0x368b9c-0x127;let _0x48f1d0=_0x3312cd[_0x368b9c];return _0x48f1d0;},_0x368b(_0x215ed0,_0x2beccd);}import{inlineStylesMapCSSVariables as _0x1dfdba}from'./exportinlinestylescssvariables.js';function _0x3312(){const _0x39fd16=['fallbackCSSVariablesLookup','1710174bSOrfn','getAttribute','flatSelector','element','10esavtm','5biPXqw','parsedCssRules','filter','stylesProcessor','getStylesEntries','5932780PWdJmy','3uXMDfe','matches','12qoYKVI','style','3820795pzkNQJ','setTo','map','392rxmiDj','965819wqeulB','112987eeqZpK','string','stylesMap','set','9064KPdQWK','5327091peIaED'];_0x3312=function(){return _0x39fd16;};return _0x3312();}export default function l(_0xc59078){const _0x35ab26=_0x368b,_0x388151=_0xc59078[_0x35ab26(0x129)][_0x35ab26(0x127)](_0x35ab26(0x134))||'',_0x2d1200=_0xc59078[_0x35ab26(0x12c)][_0x35ab26(0x12d)](_0x16e918=>_0xc59078[_0x35ab26(0x129)][_0x35ab26(0x132)](_0x16e918[_0x35ab26(0x128)]))[_0x35ab26(0x137)](_0x367470=>_0x367470[_0x35ab26(0x13c)]),_0xff2fcf=concatStylesMaps(_0xc59078[_0x35ab26(0x12e)],[..._0x2d1200,_0x388151]);return{'localCSSVariables':_0x1dfdba(_0xc59078[_0x35ab26(0x140)],_0xff2fcf),'stylesMap':_0xff2fcf};}export function concatStylesMaps(_0xb0e89e,_0x3bdcc3){const _0x53fabc=_0x368b,_0x32bb70=new _0xed7526(_0xb0e89e);for(const _0x11b9f2 of _0x3bdcc3){let _0x1c48c6=null;if(_0x1c48c6=_0x53fabc(0x13b)==typeof _0x11b9f2?new _0xed7526(_0xb0e89e)[_0x53fabc(0x136)](_0x11b9f2):_0x11b9f2,_0x1c48c6){for(const [_0x5d9d7a,_0x2301f8]of _0x1c48c6[_0x53fabc(0x12f)]())_0x32bb70[_0x53fabc(0x13d)](_0x5d9d7a,_0x2301f8);}}return _0x32bb70;}
|