@ckeditor/ckeditor5-export-pdf 0.0.0-nightly-20240411.0 → 0.0.0-nightly-20240412.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/build/export-pdf.js +1 -1
- package/package.json +2 -2
- package/src/exportpdf.js +1 -1
- package/src/exportpdfcommand.js +1 -1
- package/src/exportpdfui.js +1 -1
- package/src/index.js +1 -1
- package/src/utils.js +1 -1
package/build/export-pdf.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={782:(t,e,n)=>{t.exports=n(237)("./src/core.js")},311:(t,e,n)=>{t.exports=n(237)("./src/ui.js")},237:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var s=e[r]={exports:{}};return t[r](s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{ExportPdf:()=>
|
|
5
|
+
*/(()=>{var t={782:(t,e,n)=>{t.exports=n(237)("./src/core.js")},311:(t,e,n)=>{t.exports=n(237)("./src/ui.js")},237:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(r){var o=e[r];if(void 0!==o)return o.exports;var s=e[r]={exports:{}};return t[r](s,s.exports,n),s.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};(()=>{"use strict";n.r(r),n.d(r,{ExportPdf:()=>p});var t=n(782),e=n(311);function o(){const t=["join","EDITOR_STYLES","text","1952024frGpEW","172902nDkfjW","cssRules","536lhyyuk","3343206LjhQvh","59553pcDHuJ","2415312shlAKH","5hHfqrI","push","trim","then","all","2635620tHPtey","The editor stylesheet could not be found in the document. Check your webpack config – style-loader should use data-cke=true attribute for the editor stylesheet.","hasAttribute","warn","69671lElQSz",".ck-content","ownerNode","cssText","length",":root","from","data-cke","styleSheets","indexOf","14aNWpHw","fetch"];return(o=function(){return t})()}function s(t,e){const n=o();return(s=function(t,e){return n[t-=335]})(t,e)}function i(){const t=s,e=[],n=[];for(const r of Array[t(361)](document[t(363)]))if(r[t(357)][t(353)](t(362)))for(const o of Array[t(361)](r[t(341)]))-1!==o[t(358)][t(364)](t(356))?e[t(347)](o[t(358)]):-1!==o[t(358)][t(364)](t(360))&&n[t(347)](o[t(358)]);return e[t(359)]||console[t(354)](t(352)),[...n,...e][t(336)](" ")[t(348)]()}!function(t,e){const n=s,r=t();for(;;)try{if(408779===-parseInt(n(344))/1*(-parseInt(n(365))/2)+parseInt(n(340))/3+-parseInt(n(339))/4+-parseInt(n(346))/5*(-parseInt(n(343))/6)+parseInt(n(355))/7*(-parseInt(n(342))/8)+parseInt(n(345))/9+parseInt(n(351))/10)break;r.push(r.shift())}catch(t){r.push(r.shift())}}(o);class a extends t.Command{constructor(t){super(t),this.set("isBusy",!1),this.affectsData=!1}refresh(){this.isEnabled=!this.isBusy,this.value=this.isBusy?"pending":void 0}execute(t={}){const e=this.editor,n=e.t,r=t.converterUrl||"https://pdf-converter.cke-cs.com/v1/convert/",o=t.dataCallback||(t=>t.data.get()),a=e.plugins.get("ExportPdf"),c=t.token||a._token;return this.isBusy=!0,this.refresh(),function(t){const e=s;if(!t)return new Promise((t=>t("")));const n=[];for(const r of t)e(337)!==r?n[e(347)](window[e(335)](r)[e(349)]((t=>t[e(338)]()))):n[e(347)](i());return Promise[e(350)](n)[e(349)]((t=>t[e(336)](" ")[e(348)]()))}(t.stylesheets||["EDITOR_STYLES"]).then((async n=>{const s={html:'<html>\n\t\t\t\t\t\t<head>\n\t\t\t\t\t\t\t<title>CKEditor 5 PDF document</title>\n\t\t\t\t\t\t\t<meta charset="utf-8">\n\t\t\t\t\t\t</head>\n\t\t\t\t\t\t<body>\n\t\t\t\t\t\t\t<div class="ck-content" dir="'+e.locale.contentLanguageDirection+'">\n\t\t\t\t\t\t\t\t'+await o(e)+"\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</body>\n\t\t\t\t\t</html>",css:n,options:t.converterOptions},i={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/pdf",...c?{Authorization:c.value}:null,"x-cs-app-id":t.appID||"cke5"},body:JSON.stringify(s)};return window.fetch(r,i).then((t=>{if(200!==t.status)throw t;return t.blob()})).then((e=>{const n="function"==typeof t.fileName?t.fileName():t.fileName;this._downloadFile(e,n||"document.pdf")}))})).catch((t=>{throw e.plugins.get("Notification").showWarning(n("An error occurred while generating the PDF.")),t})).finally((()=>{this.isBusy=!1,this.refresh()}))}_downloadFile(t,e){const n=document.createElement("a");n.href=window.URL.createObjectURL(t),n.download=e,n.click(),n.remove()}}class c extends t.Plugin{static get pluginName(){return"ExportPdfUI"}init(){const t=this.editor;t.ui.componentFactory.add("exportPdf",(()=>{const n=this._createButton(e.ButtonView),r=t.commands.get("exportPdf");return n.set({tooltip:!0}),n.bind("isOn").to(r,"isBusy"),n})),t.ui.componentFactory.add("menuBar:exportPdf",(()=>this._createButton(e.MenuBarMenuListItemButtonView)))}_createButton(t){const n=this.editor,r=n.config.get("exportPdf")||{},o=n.locale.t,s=n.commands.get("exportPdf"),i=new t(n.locale),a=new e.SpinnerView;return i.children.add(a),a.bind("isVisible").to(s,"isBusy"),i.iconView.bind("isVisible").to(s,"isBusy",(t=>!t)),i.set({label:o("Export to PDF"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M19 4.5 14 0H3v6.5h1.5v-5h8v5h5V11H19V4.5ZM14 2l3.3 3H14V2Z"/><path d="m12.452 18.5 1.25 1.5H3v-3h1.5v1.5h7.952Z"/><path d="M19.826 16.843a.75.75 0 1 0-1.152-.96L17.5 17.29V13H16v4.29l-1.174-1.408a.75.75 0 1 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Z"/><path d="M1.63 14.24V12.3h.88c.66 0 1.14-.15 1.46-.45.32-.3.48-.71.48-1.24 0-.52-.15-.91-.44-1.2C3.7 9.15 3.28 9 2.69 9H0v5.24h1.63Zm.4-3h-.4v-1.17h.46c.3 0 .5.05.62.17.1.11.16.25.16.42 0 .16-.06.3-.19.41-.13.11-.34.16-.66.16l.01.01Zm5.7 3c.28 0 .6-.05.96-.14.26-.07.5-.21.73-.42.22-.2.4-.47.53-.77.12-.31.19-.75.19-1.3 0-.37-.04-.7-.13-1.02a2.3 2.3 0 0 0-.42-.84c-.19-.24-.43-.43-.72-.56C8.57 9.06 8.2 9 7.72 9h-2.4v5.24H7.73Zm-.4-1.19h-.4v-2.86h.4c.43 0 .73.1.91.3.18.2.27.59.27 1.14 0 .42-.04.73-.12.91a.76.76 0 0 1-.34.4c-.14.07-.38.11-.72.11Zm5.3 1.2V12.1h2.02v-1.06h-2.03v-.91H15V9h-4v5.24h1.62l.01.01Z"/></svg>\n'}),i.bind("isEnabled").to(s,"isEnabled"),this.listenTo(i,"execute",(()=>{n.execute("exportPdf",r),n.editing.view.focus()})),i}}const u=h;function d(){const t=["3Hieset","251664lCFyPQ","38590OZYIGb","70854otMaPV","CloudServices","exportPdf","commands","22284TraDeL","ExportPdf","15qHJOxI","plugins","add","12LoahnR","token","189izdcex","2140MbAnDN","3815432yqNFbg","305652rhHoSI","19346162ziQwoY","init","get","_token","registerTokenUrl","requires","editor","config","pluginName","tokenUrl","then"];return(d=function(){return t})()}function h(t,e){const n=d();return(h=function(t,e){return n[t-=101]})(t,e)}!function(t,e){const n=h,r=t();for(;;)try{if(802602===-parseInt(n(128))/1+parseInt(n(113))/2+parseInt(n(111))/3*(-parseInt(n(127))/4)+-parseInt(n(120))/5*(parseInt(n(114))/6)+parseInt(n(125))/7*(parseInt(n(112))/8)+parseInt(n(118))/9*(-parseInt(n(126))/10)+-parseInt(n(129))/11*(-parseInt(n(123))/12))break;r.push(r.shift())}catch(t){r.push(r.shift())}}(d);class p extends t.Plugin{static get[u(108)](){return u(119)}static get[u(105)](){return[u(115),e.Notification,c]}[u(101)](){const t=u,e=this[t(106)],n=e[t(107)][t(102)](t(116))||{};e[t(117)][t(122)](t(116),new a(e));const r=e[t(121)][t(102)](t(115));!1===n[t(109)]?this[t(103)]=null:n[t(109)]?r[t(104)](n[t(109)])[t(110)]((e=>{this[t(103)]=e})):this[t(103)]=r[t(124)]}}function l(t,e){var n=f();return(l=function(t,e){return n[t-=365]})(t,e)}function f(){var t=["12tnpApS","8596624suYMDP","9197755jstrKs","10169622BCsTcr","9744XRhMlu","39VrJreO","6245720uYJXAe","492520sQIYOL","112zBIpwN","76996IrjrTk"];return(f=function(){return t})()}!function(t,e){for(var n=l,r=t();;)try{if(726910===-parseInt(n(366))/1*(-parseInt(n(372))/2)+parseInt(n(373))/3*(parseInt(n(367))/4)+parseInt(n(365))/5*(parseInt(n(368))/6)+parseInt(n(370))/7+-parseInt(n(369))/8+-parseInt(n(371))/9+parseInt(n(374))/10)break;r.push(r.shift())}catch(t){r.push(r.shift())}}(f)})(),(window.CKEditor5=window.CKEditor5||{}).exportPdf=r})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-export-pdf",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20240412.0",
|
|
4
4
|
"description": "Export to PDF feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"type": "module",
|
|
31
31
|
"main": "src/index.js",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20240412.0"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
package/src/exportpdf.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x21ced4=_0x2e9a;(function(_0x46ee2c,_0xbf162d){const _0x26bfca=_0x2e9a,_0x35959c=_0x46ee2c();while(!![]){try{const _0x24b1cf=-parseInt(_0x26bfca(0x80))/0x1+parseInt(_0x26bfca(0x71))/0x2+parseInt(_0x26bfca(0x6f))/0x3*(-parseInt(_0x26bfca(0x7f))/0x4)+-parseInt(_0x26bfca(0x78))/0x5*(parseInt(_0x26bfca(0x72))/0x6)+parseInt(_0x26bfca(0x7d))/0x7*(parseInt(_0x26bfca(0x70))/0x8)+parseInt(_0x26bfca(0x76))/0x9*(-parseInt(_0x26bfca(0x7e))/0xa)+-parseInt(_0x26bfca(0x81))/0xb*(-parseInt(_0x26bfca(0x7b))/0xc);if(_0x24b1cf===_0xbf162d)break;else _0x35959c['push'](_0x35959c['shift']());}catch(_0xaec56d){_0x35959c['push'](_0x35959c['shift']());}}}(_0x1019,0xc3f2a));function _0x1019(){const _0x514026=['3Hieset','251664lCFyPQ','38590OZYIGb','70854otMaPV','CloudServices','exportPdf','commands','22284TraDeL','ExportPdf','15qHJOxI','plugins','add','12LoahnR','token','189izdcex','2140MbAnDN','3815432yqNFbg','305652rhHoSI','19346162ziQwoY','init','get','_token','registerTokenUrl','requires','editor','config','pluginName','tokenUrl','then'];_0x1019=function(){return _0x514026;};return _0x1019();}import{Plugin as _0x1f83a9}from'ckeditor5/src/core.js';function _0x2e9a(_0x233de3,_0x4d4875){const _0x10195f=_0x1019();return _0x2e9a=function(_0x2e9a3f,_0x2039a6){_0x2e9a3f=_0x2e9a3f-0x65;let _0xbe2e68=_0x10195f[_0x2e9a3f];return _0xbe2e68;},_0x2e9a(_0x233de3,_0x4d4875);}import{Notification as _0x18bb99}from'ckeditor5/src/ui.js';import _0x4346e5 from'./exportpdfcommand.js';import _0x4c55fb from'./exportpdfui.js';export default class s extends _0x1f83a9{static get[_0x21ced4(0x6c)](){const _0x4ebf60=_0x21ced4;return _0x4ebf60(0x77);}static get[_0x21ced4(0x69)](){const _0x564eaf=_0x21ced4;return[_0x564eaf(0x73),_0x18bb99,_0x4c55fb];}[_0x21ced4(0x65)](){const _0x10dbfa=_0x21ced4,_0x4fab58=this[_0x10dbfa(0x6a)],_0x49274e=_0x4fab58[_0x10dbfa(0x6b)][_0x10dbfa(0x66)](_0x10dbfa(0x74))||{};_0x4fab58[_0x10dbfa(0x75)][_0x10dbfa(0x7a)](_0x10dbfa(0x74),new _0x4346e5(_0x4fab58));const _0x24d9b6=_0x4fab58[_0x10dbfa(0x79)][_0x10dbfa(0x66)](_0x10dbfa(0x73));!0x1===_0x49274e[_0x10dbfa(0x6d)]?this[_0x10dbfa(0x67)]=null:_0x49274e[_0x10dbfa(0x6d)]?_0x24d9b6[_0x10dbfa(0x68)](_0x49274e[_0x10dbfa(0x6d)])[_0x10dbfa(0x6e)](_0x3e7585=>{const _0x18ee14=_0x10dbfa;this[_0x18ee14(0x67)]=_0x3e7585;}):this[_0x10dbfa(0x67)]=_0x24d9b6[_0x10dbfa(0x7c)];}}
|
package/src/exportpdfcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
23
|
+
import{Command as _0x1b537b}from'ckeditor5/src/core.js';import{getStyles as _0x5328d6}from'./utils.js';export default class o extends _0x1b537b{constructor(_0x297e8d){super(_0x297e8d),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x4b5792={}){const _0x461474=this['editor'],t=_0x461474['t'],_0x54885f=_0x4b5792['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x4a8dc9=_0x4b5792['dataCallback']||(_0x32a695=>_0x32a695['data']['get']()),_0x3d9eeb=_0x461474['plugins']['get']('ExportPdf'),_0x27ecb0=_0x4b5792['token']||_0x3d9eeb['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x5328d6(_0x4b5792['stylesheets']||['EDITOR_STYLES'])['then'](async _0xbb4d96=>{const _0x542327={'html':'<html>\x0a\x09\x09\x09\x09\x09\x09<head>\x0a\x09\x09\x09\x09\x09\x09\x09<title>CKEditor\x205\x20PDF\x20document</title>\x0a\x09\x09\x09\x09\x09\x09\x09<meta\x20charset=\x22utf-8\x22>\x0a\x09\x09\x09\x09\x09\x09</head>\x0a\x09\x09\x09\x09\x09\x09<body>\x0a\x09\x09\x09\x09\x09\x09\x09<div\x20class=\x22ck-content\x22\x20dir=\x22'+_0x461474['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x4a8dc9(_0x461474)+'\x0a\x09\x09\x09\x09\x09\x09\x09</div>\x0a\x09\x09\x09\x09\x09\x09</body>\x0a\x09\x09\x09\x09\x09</html>','css':_0xbb4d96,'options':_0x4b5792['converterOptions']},_0x3b230c={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x27ecb0?{'Authorization':_0x27ecb0['value']}:null,'x-cs-app-id':_0x4b5792['appID']||'cke5'},'body':JSON['stringify'](_0x542327)};return window['fetch'](_0x54885f,_0x3b230c)['then'](_0x2c129e=>{if(0xc8!==_0x2c129e['status'])throw _0x2c129e;return _0x2c129e['blob']();})['then'](_0xd16d80=>{const _0x1a0642='function'==typeof _0x4b5792['fileName']?_0x4b5792['fileName']():_0x4b5792['fileName'];this['_downloadFile'](_0xd16d80,_0x1a0642||'document.pdf');});})['catch'](_0x194c87=>{throw _0x461474['plugins']['get']('Notification')['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x194c87;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x54c08f,_0x51ae8e){const _0x4b8a4b=document['createElement']('a');_0x4b8a4b['href']=window['URL']['createObjectURL'](_0x54c08f),_0x4b8a4b['download']=_0x51ae8e,_0x4b8a4b['click'](),_0x4b8a4b['remove']();}}
|
package/src/exportpdfui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x225f50}from'ckeditor5/src/core.js';import{ButtonView as _0xe2dd17,MenuBarMenuListItemButtonView as _0x31b969,SpinnerView as _0x328dc7}from'ckeditor5/src/ui.js';import _0x3d6e4a from'../theme/icons/exportpdf.svg';export default class i extends _0x225f50{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x4711bf=this['editor'];_0x4711bf['ui']['componentFactory']['add']('exportPdf',()=>{const _0x405ed1=this['_createButton'](_0xe2dd17),_0x194bed=_0x4711bf['commands']['get']('exportPdf');return _0x405ed1['set']({'tooltip':!0x0}),_0x405ed1['bind']('isOn')['to'](_0x194bed,'isBusy'),_0x405ed1;}),_0x4711bf['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x31b969));}['_createButton'](_0x5cd106){const _0x3a99d2=this['editor'],_0x4635a3=_0x3a99d2['config']['get']('exportPdf')||{},t=_0x3a99d2['locale']['t'],_0x199a37=_0x3a99d2['commands']['get']('exportPdf'),_0x2f215c=new _0x5cd106(_0x3a99d2['locale']),_0x35c4c0=new _0x328dc7();return _0x2f215c['children']['add'](_0x35c4c0),_0x35c4c0['bind']('isVisible')['to'](_0x199a37,'isBusy'),_0x2f215c['iconView']['bind']('isVisible')['to'](_0x199a37,'isBusy',_0x4bd94d=>!_0x4bd94d),_0x2f215c['set']({'label':t('Export\x20to\x20PDF'),'icon':_0x3d6e4a}),_0x2f215c['bind']('isEnabled')['to'](_0x199a37,'isEnabled'),this['listenTo'](_0x2f215c,'execute',()=>{_0x3a99d2['execute']('exportPdf',_0x4635a3),_0x3a99d2['editing']['view']['focus']();}),_0x2f215c;}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
(function(_0x12647f,_0x570bd4){var _0x4dd8ed=_0x711c,_0x4e73c1=_0x12647f();while(!![]){try{var _0x72e8b9=-parseInt(_0x4dd8ed(0x16e))/0x1*(-parseInt(_0x4dd8ed(0x174))/0x2)+parseInt(_0x4dd8ed(0x175))/0x3*(parseInt(_0x4dd8ed(0x16f))/0x4)+parseInt(_0x4dd8ed(0x16d))/0x5*(parseInt(_0x4dd8ed(0x170))/0x6)+parseInt(_0x4dd8ed(0x172))/0x7+-parseInt(_0x4dd8ed(0x171))/0x8+-parseInt(_0x4dd8ed(0x173))/0x9+parseInt(_0x4dd8ed(0x176))/0xa;if(_0x72e8b9===_0x570bd4)break;else _0x4e73c1['push'](_0x4e73c1['shift']());}catch(_0x57251f){_0x4e73c1['push'](_0x4e73c1['shift']());}}}(_0x2f72,0xb177e));function _0x711c(_0xbba7,_0x4ed7a8){var _0x2f72d6=_0x2f72();return _0x711c=function(_0x711c24,_0x321e16){_0x711c24=_0x711c24-0x16d;var _0x5fbfeb=_0x2f72d6[_0x711c24];return _0x5fbfeb;},_0x711c(_0xbba7,_0x4ed7a8);}export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';function _0x2f72(){var _0x2b26a5=['12tnpApS','8596624suYMDP','9197755jstrKs','10169622BCsTcr','9744XRhMlu','39VrJreO','6245720uYJXAe','492520sQIYOL','112zBIpwN','76996IrjrTk'];_0x2f72=function(){return _0x2b26a5;};return _0x2f72();}
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
(function(_0xa5115b,_0x12811b){const _0x37e632=_0xd977,_0x208bd4=_0xa5115b();while(!![]){try{const _0x788ed5=-parseInt(_0x37e632(0x158))/0x1*(-parseInt(_0x37e632(0x16d))/0x2)+parseInt(_0x37e632(0x154))/0x3+-parseInt(_0x37e632(0x153))/0x4+-parseInt(_0x37e632(0x15a))/0x5*(-parseInt(_0x37e632(0x157))/0x6)+parseInt(_0x37e632(0x163))/0x7*(-parseInt(_0x37e632(0x156))/0x8)+parseInt(_0x37e632(0x159))/0x9+parseInt(_0x37e632(0x15f))/0xa;if(_0x788ed5===_0x12811b)break;else _0x208bd4['push'](_0x208bd4['shift']());}catch(_0x23cb31){_0x208bd4['push'](_0x208bd4['shift']());}}}(_0x577d,0x63ccb));function _0x577d(){const _0x4c342a=['join','EDITOR_STYLES','text','1952024frGpEW','172902nDkfjW','cssRules','536lhyyuk','3343206LjhQvh','59553pcDHuJ','2415312shlAKH','5hHfqrI','push','trim','then','all','2635620tHPtey','The\x20editor\x20stylesheet\x20could\x20not\x20be\x20found\x20in\x20the\x20document.\x20Check\x20your\x20webpack\x20config\x20–\x20style-loader\x20should\x20use\x20data-cke=true\x20attribute\x20for\x20the\x20editor\x20stylesheet.','hasAttribute','warn','69671lElQSz','.ck-content','ownerNode','cssText','length',':root','from','data-cke','styleSheets','indexOf','14aNWpHw','fetch'];_0x577d=function(){return _0x4c342a;};return _0x577d();}function _0xd977(_0x16d3f7,_0x202568){const _0x577d26=_0x577d();return _0xd977=function(_0xd9778,_0x46b21d){_0xd9778=_0xd9778-0x14f;let _0x17162a=_0x577d26[_0xd9778];return _0x17162a;},_0xd977(_0x16d3f7,_0x202568);}export function getStyles(_0x5dc697){const _0x4c21d8=_0xd977;if(!_0x5dc697)return new Promise(_0x307770=>_0x307770(''));const _0x51fb94=[];for(const _0x36e4e2 of _0x5dc697)_0x4c21d8(0x151)!==_0x36e4e2?_0x51fb94[_0x4c21d8(0x15b)](window[_0x4c21d8(0x14f)](_0x36e4e2)[_0x4c21d8(0x15d)](_0x37ca47=>_0x37ca47[_0x4c21d8(0x152)]())):_0x51fb94[_0x4c21d8(0x15b)](a());return Promise[_0x4c21d8(0x15e)](_0x51fb94)[_0x4c21d8(0x15d)](_0x528070=>_0x528070[_0x4c21d8(0x150)]('\x20')[_0x4c21d8(0x15c)]());}function a(){const _0x4f295b=_0xd977,_0x2631ed=[],_0x6df6ca=[];for(const _0x392b99 of Array[_0x4f295b(0x169)](document[_0x4f295b(0x16b)])){if(_0x392b99[_0x4f295b(0x165)][_0x4f295b(0x161)](_0x4f295b(0x16a))){for(const _0x46fbac of Array[_0x4f295b(0x169)](_0x392b99[_0x4f295b(0x155)]))-0x1!==_0x46fbac[_0x4f295b(0x166)][_0x4f295b(0x16c)](_0x4f295b(0x164))?_0x2631ed[_0x4f295b(0x15b)](_0x46fbac[_0x4f295b(0x166)]):-0x1!==_0x46fbac[_0x4f295b(0x166)][_0x4f295b(0x16c)](_0x4f295b(0x168))&&_0x6df6ca[_0x4f295b(0x15b)](_0x46fbac[_0x4f295b(0x166)]);}}return _0x2631ed[_0x4f295b(0x167)]||console[_0x4f295b(0x162)](_0x4f295b(0x160)),[..._0x6df6ca,..._0x2631ed][_0x4f295b(0x150)]('\x20')[_0x4f295b(0x15c)]();}
|