@ckeditor/ckeditor5-export-pdf 0.0.0-nightly-20240422.0 → 0.0.0-nightly-20240423.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.
@@ -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:()=>h});var t=n(782),e=n(311);function o(){const t=["join","from","378oJHCoQ","trim","48249xmaPfk","cssRules","2080428nXEwQD","warn","769621EBhbqW","length","then","push","856BgqopE","15234820DgnLed","indexOf","197826UvTmYj","ownerNode","cssText","all","9230bfpxfe","EDITOR_STYLES","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.","text","data-cke","fetch",".ck-content","36620BssyKv","hasAttribute","styleSheets","24WukwRC",":root"];return(o=function(){return t})()}function s(t,e){const n=o();return(s=function(t,e){return n[t-=125]})(t,e)}function i(){const t=s,e=[],n=[];for(const r of Array[t(150)](document[t(146)]))if(r[t(134)][t(145)](t(141)))for(const o of Array[t(150)](r[t(154)]))-1!==o[t(135)][t(132)](t(143))?e[t(129)](o[t(135)]):-1!==o[t(135)][t(132)](t(148))&&n[t(129)](o[t(135)]);return e[t(127)]||console[t(125)](t(139)),[...n,...e][t(149)](" ")[t(152)]()}!function(t,e){const n=s,r=t();for(;;)try{if(568063===-parseInt(n(126))/1+-parseInt(n(133))/2+-parseInt(n(147))/3*(-parseInt(n(144))/4)+parseInt(n(137))/5*(parseInt(n(151))/6)+parseInt(n(155))/7+parseInt(n(130))/8*(-parseInt(n(153))/9)+parseInt(n(131))/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(138)!==r?n[e(129)](window[e(142)](r)[e(128)]((t=>t[e(140)]()))):n[e(129)](i());return Promise[e(136)](n)[e(128)]((t=>t[e(149)](" ")[e(152)]()))}(t.stylesheets||["EDITOR_STYLES"]).then((async s=>{e.ui.ariaLiveAnnouncer.announce(n("PDF export started"));const i={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:s,options:t.converterOptions},a={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(i)};return window.fetch(r,a).then((t=>{if(200!==t.status)throw t;return t.blob()})).then((r=>{e.ui.ariaLiveAnnouncer.announce(n("PDF export successful"));const o="function"==typeof t.fileName?t.fileName():t.fileName;this._downloadFile(r,o||"document.pdf")}))})).catch((t=>{const r=e.plugins.get("Notification");throw e.ui.ariaLiveAnnouncer.announce(n("PDF export failed"),{politeness:"assertive"}),r.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=d;function d(t,e){const n=p();return(d=function(t,e){return n[t-=300]})(t,e)}function p(){const t=["235644QfQmLS","1295448aouOkX","185344SbRXGo","6892500VOhNMs","CloudServices","config","init","pluginName","6UyvsAb","_token","commands","4aQEYFB","4490OoLCBR","69XmdMUT","requires","371rjXpId","exportPdf","registerTokenUrl","2979LAwXSp","3889895iqkUFi","ExportPdf","tokenUrl","then","167368KKRZZf","token","editor","get","add","plugins"];return(p=function(){return t})()}!function(t,e){const n=d,r=t();for(;;)try{if(789581===parseInt(n(305))/1*(parseInt(n(314))/2)+parseInt(n(316))/3*(parseInt(n(303))/4)+-parseInt(n(322))/5*(-parseInt(n(311))/6)+parseInt(n(318))/7*(-parseInt(n(326))/8)+-parseInt(n(321))/9*(parseInt(n(315))/10)+parseInt(n(304))/11+-parseInt(n(306))/12)break;r.push(r.shift())}catch(t){r.push(r.shift())}}(p);class h extends t.Plugin{static get[u(310)](){return u(323)}static get[u(317)](){return[u(307),e.Notification,c]}[u(309)](){const t=u,e=this[t(328)],n=e[t(308)][t(300)](t(319))||{};e[t(313)][t(301)](t(319),new a(e));const r=e[t(302)][t(300)](t(307));!1===n[t(324)]?this[t(312)]=null:n[t(324)]?r[t(320)](n[t(324)])[t(325)]((e=>{this[t(312)]=e})):this[t(312)]=r[t(327)]}}function l(t,e){var n=f();return(l=function(t,e){return n[t-=372]})(t,e)}function f(){var t=["9928OQAqRY","2soHWfC","183324GkWxjI","107757BInjoy","2600VnaZDV","1320397iNRGWv","180KhOaKf","12FCyOpW","473622yuGBVM","7TCIKAl","11duabYz","1542220jDPiPE","4995OWbqQA"];return(f=function(){return t})()}!function(t,e){for(var n=l,r=t();;)try{if(106838===parseInt(n(383))/1+parseInt(n(382))/2*(-parseInt(n(384))/3)+parseInt(n(381))/4*(-parseInt(n(374))/5)+-parseInt(n(376))/6*(parseInt(n(377))/7)+-parseInt(n(372))/8*(-parseInt(n(380))/9)+-parseInt(n(379))/10*(parseInt(n(378))/11)+-parseInt(n(375))/12*(-parseInt(n(373))/13))break;r.push(r.shift())}catch(t){r.push(r.shift())}}(f)})(),(window.CKEditor5=window.CKEditor5||{}).exportPdf=r})();
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:()=>h});var t=n(782),e=n(311);function o(){const t=["cssRules","styleSheets","trim","push",".ck-content","19359EkYCll","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.","3437259Lbozys","then","all","from","join","9WXXMQj",":root","EDITOR_STYLES","warn","indexOf","cssText","text","length","fetch","7131065WaurCP","hasAttribute","ownerNode","1702242SwDgmo","1333707tNZnYd","1013958ikUdux","540PiAzbj","data-cke","16787128pGzuir"];return(o=function(){return t})()}function s(t,e){const n=o();return(s=function(t,e){return n[t-=274]})(t,e)}function i(){const t=s,e=[],n=[];for(const r of Array[t(285)](document[t(276)]))if(r[t(298)][t(297)](t(303)))for(const o of Array[t(285)](r[t(275)]))-1!==o[t(292)][t(291)](t(279))?e[t(278)](o[t(292)]):-1!==o[t(292)][t(291)](t(288))&&n[t(278)](o[t(292)]);return e[t(294)]||console[t(290)](t(281)),[...n,...e][t(286)](" ")[t(277)]()}!function(t,e){const n=s,r=t();for(;;)try{if(738703===-parseInt(n(300))/1+parseInt(n(299))/2+parseInt(n(280))/3*(parseInt(n(302))/4)+-parseInt(n(296))/5+parseInt(n(301))/6+-parseInt(n(282))/7+parseInt(n(274))/8*(parseInt(n(287))/9))break;r.push(r.shift())}catch(t){r.push(r.shift())}}(o);class c 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()),c=e.plugins.get("ExportPdf"),a=t.token||c._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(289)!==r?n[e(278)](window[e(295)](r)[e(283)]((t=>t[e(293)]()))):n[e(278)](i());return Promise[e(284)](n)[e(283)]((t=>t[e(286)](" ")[e(277)]()))}(t.stylesheets||["EDITOR_STYLES"]).then((async s=>{e.ui.ariaLiveAnnouncer.announce(n("PDF export started"));const i={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:s,options:t.converterOptions},c={method:"POST",headers:{"Content-Type":"application/json",Accept:"application/pdf",...a?{Authorization:a.value}:null,"x-cs-app-id":t.appID||"cke5"},body:JSON.stringify(i)};return window.fetch(r,c).then((t=>{if(200!==t.status)throw t;return t.blob()})).then((r=>{e.ui.ariaLiveAnnouncer.announce(n("PDF export successful"));const o="function"==typeof t.fileName?t.fileName():t.fileName;this._downloadFile(r,o||"document.pdf")}))})).catch((t=>{const r=e.plugins.get("Notification");throw e.ui.ariaLiveAnnouncer.announce(n("PDF export failed"),{politeness:"assertive"}),r.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 a 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),c=new e.SpinnerView;return i.children.add(c),c.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=p;function d(){const t=["49596ZwjIwW","9YolXZi","18106YqCFWs","5609890fHHObI","35VOMvbT","token","157410VvouVM","plugins","ExportPdf","requires","commands","registerTokenUrl","add","exportPdf","tokenUrl","init","832336YsnAJn","13UQjgzQ","then","editor","15FhFFft","CloudServices","pluginName","get","122036IWHQKG","config","_token","1483845xRFcfc"];return(d=function(){return t})()}function p(t,e){const n=d();return(p=function(t,e){return n[t-=211]})(t,e)}!function(t,e){const n=p,r=t();for(;;)try{if(272294===-parseInt(n(232))/1*(-parseInt(n(217))/2)+parseInt(n(214))/3+parseInt(n(211))/4*(parseInt(n(235))/5)+parseInt(n(215))/6*(-parseInt(n(219))/7)+parseInt(n(231))/8+-parseInt(n(216))/9*(-parseInt(n(221))/10)+-parseInt(n(218))/11)break;r.push(r.shift())}catch(t){r.push(r.shift())}}(d);class h extends t.Plugin{static get[u(237)](){return u(223)}static get[u(224)](){return[u(236),e.Notification,a]}[u(230)](){const t=u,e=this[t(234)],n=e[t(212)][t(238)](t(228))||{};e[t(225)][t(227)](t(228),new c(e));const r=e[t(222)][t(238)](t(236));!1===n[t(229)]?this[t(213)]=null:n[t(229)]?r[t(226)](n[t(229)])[t(233)]((e=>{this[t(213)]=e})):this[t(213)]=r[t(220)]}}function l(t,e){var n=f();return(l=function(t,e){return n[t-=306]})(t,e)}function f(){var t=["798734jdhOoi","42219qwMleO","860422kjMjid","5zvlzBg","648109QimHJN","3510cFNxms","5697858YHRSbM","6zJPlxW","4137208bXndpQ","4067632syRMXR"];return(f=function(){return t})()}!function(t,e){for(var n=l,r=t();;)try{if(528997===parseInt(n(313))/1+parseInt(n(315))/2*(parseInt(n(310))/3)+-parseInt(n(311))/4*(parseInt(n(306))/5)+parseInt(n(309))/6+parseInt(n(307))/7+parseInt(n(312))/8+parseInt(n(314))/9*(-parseInt(n(308))/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-20240422.0",
3
+ "version": "0.0.0-nightly-20240423.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-20240422.0"
33
+ "ckeditor5": "0.0.0-nightly-20240423.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 _0x41de35=_0x259f;(function(_0x5d3804,_0x2ed824){const _0x652168=_0x259f,_0x3fbbfe=_0x5d3804();while(!![]){try{const _0x390625=parseInt(_0x652168(0x131))/0x1*(parseInt(_0x652168(0x13a))/0x2)+parseInt(_0x652168(0x13c))/0x3*(parseInt(_0x652168(0x12f))/0x4)+-parseInt(_0x652168(0x142))/0x5*(-parseInt(_0x652168(0x137))/0x6)+parseInt(_0x652168(0x13e))/0x7*(-parseInt(_0x652168(0x146))/0x8)+-parseInt(_0x652168(0x141))/0x9*(parseInt(_0x652168(0x13b))/0xa)+parseInt(_0x652168(0x130))/0xb+-parseInt(_0x652168(0x132))/0xc;if(_0x390625===_0x2ed824)break;else _0x3fbbfe['push'](_0x3fbbfe['shift']());}catch(_0x3ee046){_0x3fbbfe['push'](_0x3fbbfe['shift']());}}}(_0x2cef,0xc0c4d));import{Plugin as _0x2579fc}from'ckeditor5/src/core.js';function _0x259f(_0x5a4a29,_0x232edb){const _0x2cefac=_0x2cef();return _0x259f=function(_0x259f0f,_0x173d5c){_0x259f0f=_0x259f0f-0x12c;let _0x4d09c6=_0x2cefac[_0x259f0f];return _0x4d09c6;},_0x259f(_0x5a4a29,_0x232edb);}import{Notification as _0x3bd7b0}from'ckeditor5/src/ui.js';import _0x36f599 from'./exportpdfcommand.js';function _0x2cef(){const _0x22644e=['235644QfQmLS','1295448aouOkX','185344SbRXGo','6892500VOhNMs','CloudServices','config','init','pluginName','6UyvsAb','_token','commands','4aQEYFB','4490OoLCBR','69XmdMUT','requires','371rjXpId','exportPdf','registerTokenUrl','2979LAwXSp','3889895iqkUFi','ExportPdf','tokenUrl','then','167368KKRZZf','token','editor','get','add','plugins'];_0x2cef=function(){return _0x22644e;};return _0x2cef();}import _0x4c4513 from'./exportpdfui.js';export default class s extends _0x2579fc{static get[_0x41de35(0x136)](){const _0x5e4008=_0x41de35;return _0x5e4008(0x143);}static get[_0x41de35(0x13d)](){const _0x50a885=_0x41de35;return[_0x50a885(0x133),_0x3bd7b0,_0x4c4513];}[_0x41de35(0x135)](){const _0x40aaa6=_0x41de35,_0x4d4eb7=this[_0x40aaa6(0x148)],_0x4b2c9b=_0x4d4eb7[_0x40aaa6(0x134)][_0x40aaa6(0x12c)](_0x40aaa6(0x13f))||{};_0x4d4eb7[_0x40aaa6(0x139)][_0x40aaa6(0x12d)](_0x40aaa6(0x13f),new _0x36f599(_0x4d4eb7));const _0x3545de=_0x4d4eb7[_0x40aaa6(0x12e)][_0x40aaa6(0x12c)](_0x40aaa6(0x133));!0x1===_0x4b2c9b[_0x40aaa6(0x144)]?this[_0x40aaa6(0x138)]=null:_0x4b2c9b[_0x40aaa6(0x144)]?_0x3545de[_0x40aaa6(0x140)](_0x4b2c9b[_0x40aaa6(0x144)])[_0x40aaa6(0x145)](_0x51cc04=>{const _0x50fa01=_0x40aaa6;this[_0x50fa01(0x138)]=_0x51cc04;}):this[_0x40aaa6(0x138)]=_0x3545de[_0x40aaa6(0x147)];}}
23
+ const _0x37845c=_0x4447;(function(_0x20440c,_0x5f50a0){const _0x1c1964=_0x4447,_0x4e7c77=_0x20440c();while(!![]){try{const _0x48313c=-parseInt(_0x1c1964(0xe8))/0x1*(-parseInt(_0x1c1964(0xd9))/0x2)+parseInt(_0x1c1964(0xd6))/0x3+parseInt(_0x1c1964(0xd3))/0x4*(parseInt(_0x1c1964(0xeb))/0x5)+parseInt(_0x1c1964(0xd7))/0x6*(-parseInt(_0x1c1964(0xdb))/0x7)+parseInt(_0x1c1964(0xe7))/0x8+-parseInt(_0x1c1964(0xd8))/0x9*(-parseInt(_0x1c1964(0xdd))/0xa)+-parseInt(_0x1c1964(0xda))/0xb;if(_0x48313c===_0x5f50a0)break;else _0x4e7c77['push'](_0x4e7c77['shift']());}catch(_0x2a377c){_0x4e7c77['push'](_0x4e7c77['shift']());}}}(_0x131e,0x427a6));import{Plugin as _0x340676}from'ckeditor5/src/core.js';import{Notification as _0x32d3ca}from'ckeditor5/src/ui.js';import _0x43a637 from'./exportpdfcommand.js';function _0x131e(){const _0x43e82c=['49596ZwjIwW','9YolXZi','18106YqCFWs','5609890fHHObI','35VOMvbT','token','157410VvouVM','plugins','ExportPdf','requires','commands','registerTokenUrl','add','exportPdf','tokenUrl','init','832336YsnAJn','13UQjgzQ','then','editor','15FhFFft','CloudServices','pluginName','get','122036IWHQKG','config','_token','1483845xRFcfc'];_0x131e=function(){return _0x43e82c;};return _0x131e();}import _0x39f1a7 from'./exportpdfui.js';function _0x4447(_0x10615c,_0x26abef){const _0x131e13=_0x131e();return _0x4447=function(_0x4447bf,_0x2b4afb){_0x4447bf=_0x4447bf-0xd3;let _0x3883e5=_0x131e13[_0x4447bf];return _0x3883e5;},_0x4447(_0x10615c,_0x26abef);}export default class s extends _0x340676{static get[_0x37845c(0xed)](){const _0x26aa67=_0x37845c;return _0x26aa67(0xdf);}static get[_0x37845c(0xe0)](){const _0x5bf48c=_0x37845c;return[_0x5bf48c(0xec),_0x32d3ca,_0x39f1a7];}[_0x37845c(0xe6)](){const _0x47d82b=_0x37845c,_0x86cd37=this[_0x47d82b(0xea)],_0x4078d9=_0x86cd37[_0x47d82b(0xd4)][_0x47d82b(0xee)](_0x47d82b(0xe4))||{};_0x86cd37[_0x47d82b(0xe1)][_0x47d82b(0xe3)](_0x47d82b(0xe4),new _0x43a637(_0x86cd37));const _0x55f586=_0x86cd37[_0x47d82b(0xde)][_0x47d82b(0xee)](_0x47d82b(0xec));!0x1===_0x4078d9[_0x47d82b(0xe5)]?this[_0x47d82b(0xd5)]=null:_0x4078d9[_0x47d82b(0xe5)]?_0x55f586[_0x47d82b(0xe2)](_0x4078d9[_0x47d82b(0xe5)])[_0x47d82b(0xe9)](_0x295848=>{const _0x37d871=_0x47d82b;this[_0x37d871(0xd5)]=_0x295848;}):this[_0x47d82b(0xd5)]=_0x55f586[_0x47d82b(0xdc)];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x27cd5b}from'ckeditor5/src/core.js';import{getStyles as _0x13d76e}from'./utils.js';export default class o extends _0x27cd5b{constructor(_0x536117){super(_0x536117),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x3e942c={}){const _0x569e0e=this['editor'],t=_0x569e0e['t'],_0x57a4e3=_0x3e942c['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x79f597=_0x3e942c['dataCallback']||(_0x420bf0=>_0x420bf0['data']['get']()),_0xb3dc6a=_0x569e0e['plugins']['get']('ExportPdf'),_0x584c2e=_0x3e942c['token']||_0xb3dc6a['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x13d76e(_0x3e942c['stylesheets']||['EDITOR_STYLES'])['then'](async _0x5edda3=>{_0x569e0e['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20started'));const _0x5c718f={'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'+_0x569e0e['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x79f597(_0x569e0e)+'\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':_0x5edda3,'options':_0x3e942c['converterOptions']},_0x30a328={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x584c2e?{'Authorization':_0x584c2e['value']}:null,'x-cs-app-id':_0x3e942c['appID']||'cke5'},'body':JSON['stringify'](_0x5c718f)};return window['fetch'](_0x57a4e3,_0x30a328)['then'](_0x5c7f6a=>{if(0xc8!==_0x5c7f6a['status'])throw _0x5c7f6a;return _0x5c7f6a['blob']();})['then'](_0x29e4bd=>{_0x569e0e['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20successful'));const _0x301bd8='function'==typeof _0x3e942c['fileName']?_0x3e942c['fileName']():_0x3e942c['fileName'];this['_downloadFile'](_0x29e4bd,_0x301bd8||'document.pdf');});})['catch'](_0x5f07a9=>{const _0x231ec7=_0x569e0e['plugins']['get']('Notification');throw _0x569e0e['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x231ec7['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x5f07a9;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x22027e,_0x1c94a7){const _0x50f003=document['createElement']('a');_0x50f003['href']=window['URL']['createObjectURL'](_0x22027e),_0x50f003['download']=_0x1c94a7,_0x50f003['click'](),_0x50f003['remove']();}}
23
+ import{Command as _0x57a1ca}from'ckeditor5/src/core.js';import{getStyles as _0x2fcfc2}from'./utils.js';export default class o extends _0x57a1ca{constructor(_0x54c72b){super(_0x54c72b),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x693fe9={}){const _0x29c521=this['editor'],t=_0x29c521['t'],_0x4f274a=_0x693fe9['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x5d679d=_0x693fe9['dataCallback']||(_0x129608=>_0x129608['data']['get']()),_0xb0fca=_0x29c521['plugins']['get']('ExportPdf'),_0xffc322=_0x693fe9['token']||_0xb0fca['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x2fcfc2(_0x693fe9['stylesheets']||['EDITOR_STYLES'])['then'](async _0x3718af=>{_0x29c521['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20started'));const _0x875a99={'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'+_0x29c521['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x5d679d(_0x29c521)+'\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':_0x3718af,'options':_0x693fe9['converterOptions']},_0x50d9ad={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0xffc322?{'Authorization':_0xffc322['value']}:null,'x-cs-app-id':_0x693fe9['appID']||'cke5'},'body':JSON['stringify'](_0x875a99)};return window['fetch'](_0x4f274a,_0x50d9ad)['then'](_0x1570d7=>{if(0xc8!==_0x1570d7['status'])throw _0x1570d7;return _0x1570d7['blob']();})['then'](_0x5a658b=>{_0x29c521['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20successful'));const _0x2d664c='function'==typeof _0x693fe9['fileName']?_0x693fe9['fileName']():_0x693fe9['fileName'];this['_downloadFile'](_0x5a658b,_0x2d664c||'document.pdf');});})['catch'](_0xefba0=>{const _0x42a299=_0x29c521['plugins']['get']('Notification');throw _0x29c521['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x42a299['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0xefba0;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x1e5b16,_0x48cddc){const _0x3e2d65=document['createElement']('a');_0x3e2d65['href']=window['URL']['createObjectURL'](_0x1e5b16),_0x3e2d65['download']=_0x48cddc,_0x3e2d65['click'](),_0x3e2d65['remove']();}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x56f4c3}from'ckeditor5/src/core.js';import{ButtonView as _0xda3746,MenuBarMenuListItemButtonView as _0x228d44,SpinnerView as _0x3e103b}from'ckeditor5/src/ui.js';import _0x11c3be from'../theme/icons/exportpdf.svg';export default class i extends _0x56f4c3{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x5da107=this['editor'];_0x5da107['ui']['componentFactory']['add']('exportPdf',()=>{const _0x2675cd=this['_createButton'](_0xda3746),_0x3def32=_0x5da107['commands']['get']('exportPdf');return _0x2675cd['set']({'tooltip':!0x0}),_0x2675cd['bind']('isOn')['to'](_0x3def32,'isBusy'),_0x2675cd;}),_0x5da107['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x228d44));}['_createButton'](_0x1c72b6){const _0x49f42c=this['editor'],_0x24afb1=_0x49f42c['config']['get']('exportPdf')||{},t=_0x49f42c['locale']['t'],_0x3e3fcd=_0x49f42c['commands']['get']('exportPdf'),_0x9d34d4=new _0x1c72b6(_0x49f42c['locale']),_0x491e44=new _0x3e103b();return _0x9d34d4['children']['add'](_0x491e44),_0x491e44['bind']('isVisible')['to'](_0x3e3fcd,'isBusy'),_0x9d34d4['iconView']['bind']('isVisible')['to'](_0x3e3fcd,'isBusy',_0xc84a0b=>!_0xc84a0b),_0x9d34d4['set']({'label':t('Export\x20to\x20PDF'),'icon':_0x11c3be}),_0x9d34d4['bind']('isEnabled')['to'](_0x3e3fcd,'isEnabled'),this['listenTo'](_0x9d34d4,'execute',()=>{_0x49f42c['execute']('exportPdf',_0x24afb1),_0x49f42c['editing']['view']['focus']();}),_0x9d34d4;}}
23
+ import{Plugin as _0x253162}from'ckeditor5/src/core.js';import{ButtonView as _0xb620e8,MenuBarMenuListItemButtonView as _0x5cd620,SpinnerView as _0x1c605e}from'ckeditor5/src/ui.js';import _0x33ba8e from'../theme/icons/exportpdf.svg';export default class i extends _0x253162{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x1a5c35=this['editor'];_0x1a5c35['ui']['componentFactory']['add']('exportPdf',()=>{const _0x144abf=this['_createButton'](_0xb620e8),_0x391967=_0x1a5c35['commands']['get']('exportPdf');return _0x144abf['set']({'tooltip':!0x0}),_0x144abf['bind']('isOn')['to'](_0x391967,'isBusy'),_0x144abf;}),_0x1a5c35['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x5cd620));}['_createButton'](_0x4196a0){const _0x1b26cb=this['editor'],_0x240a19=_0x1b26cb['config']['get']('exportPdf')||{},t=_0x1b26cb['locale']['t'],_0x5d4ea4=_0x1b26cb['commands']['get']('exportPdf'),_0x4d27aa=new _0x4196a0(_0x1b26cb['locale']),_0x4c3cbe=new _0x1c605e();return _0x4d27aa['children']['add'](_0x4c3cbe),_0x4c3cbe['bind']('isVisible')['to'](_0x5d4ea4,'isBusy'),_0x4d27aa['iconView']['bind']('isVisible')['to'](_0x5d4ea4,'isBusy',_0x44da05=>!_0x44da05),_0x4d27aa['set']({'label':t('Export\x20to\x20PDF'),'icon':_0x33ba8e}),_0x4d27aa['bind']('isEnabled')['to'](_0x5d4ea4,'isEnabled'),this['listenTo'](_0x4d27aa,'execute',()=>{_0x1b26cb['execute']('exportPdf',_0x240a19),_0x1b26cb['editing']['view']['focus']();}),_0x4d27aa;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x4b82(_0x351495,_0x16d6fb){var _0xe0948=_0xe094();return _0x4b82=function(_0x4b82e4,_0x2527a7){_0x4b82e4=_0x4b82e4-0x174;var _0x44822d=_0xe0948[_0x4b82e4];return _0x44822d;},_0x4b82(_0x351495,_0x16d6fb);}(function(_0x35b843,_0x346a9c){var _0x8228b7=_0x4b82,_0x455382=_0x35b843();while(!![]){try{var _0x50a0d3=parseInt(_0x8228b7(0x17f))/0x1+parseInt(_0x8228b7(0x17e))/0x2*(-parseInt(_0x8228b7(0x180))/0x3)+parseInt(_0x8228b7(0x17d))/0x4*(-parseInt(_0x8228b7(0x176))/0x5)+-parseInt(_0x8228b7(0x178))/0x6*(parseInt(_0x8228b7(0x179))/0x7)+-parseInt(_0x8228b7(0x174))/0x8*(-parseInt(_0x8228b7(0x17c))/0x9)+-parseInt(_0x8228b7(0x17b))/0xa*(parseInt(_0x8228b7(0x17a))/0xb)+-parseInt(_0x8228b7(0x177))/0xc*(-parseInt(_0x8228b7(0x175))/0xd);if(_0x50a0d3===_0x346a9c)break;else _0x455382['push'](_0x455382['shift']());}catch(_0x12f4b9){_0x455382['push'](_0x455382['shift']());}}}(_0xe094,0x1a156));export{default as ExportPdf}from'./exportpdf.js';function _0xe094(){var _0x5bbab2=['9928OQAqRY','2soHWfC','183324GkWxjI','107757BInjoy','2600VnaZDV','1320397iNRGWv','180KhOaKf','12FCyOpW','473622yuGBVM','7TCIKAl','11duabYz','1542220jDPiPE','4995OWbqQA'];_0xe094=function(){return _0x5bbab2;};return _0xe094();}import'./augmentation.js';
23
+ (function(_0x51c0a8,_0x580609){var _0x27053e=_0x4817,_0x101e99=_0x51c0a8();while(!![]){try{var _0x1a2906=parseInt(_0x27053e(0x139))/0x1+parseInt(_0x27053e(0x13b))/0x2*(parseInt(_0x27053e(0x136))/0x3)+-parseInt(_0x27053e(0x137))/0x4*(parseInt(_0x27053e(0x132))/0x5)+parseInt(_0x27053e(0x135))/0x6+parseInt(_0x27053e(0x133))/0x7+parseInt(_0x27053e(0x138))/0x8+parseInt(_0x27053e(0x13a))/0x9*(-parseInt(_0x27053e(0x134))/0xa);if(_0x1a2906===_0x580609)break;else _0x101e99['push'](_0x101e99['shift']());}catch(_0x13e962){_0x101e99['push'](_0x101e99['shift']());}}}(_0xe6ab,0x81265));export{default as ExportPdf}from'./exportpdf.js';function _0x4817(_0x4313f4,_0x1f94a8){var _0xe6ab59=_0xe6ab();return _0x4817=function(_0x481761,_0x24a16f){_0x481761=_0x481761-0x132;var _0x56e28a=_0xe6ab59[_0x481761];return _0x56e28a;},_0x4817(_0x4313f4,_0x1f94a8);}import'./augmentation.js';function _0xe6ab(){var _0x527830=['798734jdhOoi','42219qwMleO','860422kjMjid','5zvlzBg','648109QimHJN','3510cFNxms','5697858YHRSbM','6zJPlxW','4137208bXndpQ','4067632syRMXR'];_0xe6ab=function(){return _0x527830;};return _0xe6ab();}
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x294408,_0x15d460){const _0x4ad76c=_0x59ab,_0x4b25d1=_0x294408();while(!![]){try{const _0x403716=-parseInt(_0x4ad76c(0x7e))/0x1+-parseInt(_0x4ad76c(0x85))/0x2+-parseInt(_0x4ad76c(0x93))/0x3*(-parseInt(_0x4ad76c(0x90))/0x4)+parseInt(_0x4ad76c(0x89))/0x5*(parseInt(_0x4ad76c(0x97))/0x6)+parseInt(_0x4ad76c(0x9b))/0x7+parseInt(_0x4ad76c(0x82))/0x8*(-parseInt(_0x4ad76c(0x99))/0x9)+parseInt(_0x4ad76c(0x83))/0xa;if(_0x403716===_0x15d460)break;else _0x4b25d1['push'](_0x4b25d1['shift']());}catch(_0x276842){_0x4b25d1['push'](_0x4b25d1['shift']());}}}(_0x3339,0x8aaff));function _0x3339(){const _0x2c37a6=['join','from','378oJHCoQ','trim','48249xmaPfk','cssRules','2080428nXEwQD','warn','769621EBhbqW','length','then','push','856BgqopE','15234820DgnLed','indexOf','197826UvTmYj','ownerNode','cssText','all','9230bfpxfe','EDITOR_STYLES','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.','text','data-cke','fetch','.ck-content','36620BssyKv','hasAttribute','styleSheets','24WukwRC',':root'];_0x3339=function(){return _0x2c37a6;};return _0x3339();}function _0x59ab(_0xf39645,_0x2c66c7){const _0x333925=_0x3339();return _0x59ab=function(_0x59abd7,_0x530ce1){_0x59abd7=_0x59abd7-0x7d;let _0x348a44=_0x333925[_0x59abd7];return _0x348a44;},_0x59ab(_0xf39645,_0x2c66c7);}export function getStyles(_0x3200ea){const _0x3cffb1=_0x59ab;if(!_0x3200ea)return new Promise(_0x493f0e=>_0x493f0e(''));const _0x3193c4=[];for(const _0x5be5fa of _0x3200ea)_0x3cffb1(0x8a)!==_0x5be5fa?_0x3193c4[_0x3cffb1(0x81)](window[_0x3cffb1(0x8e)](_0x5be5fa)[_0x3cffb1(0x80)](_0x496aae=>_0x496aae[_0x3cffb1(0x8c)]())):_0x3193c4[_0x3cffb1(0x81)](a());return Promise[_0x3cffb1(0x88)](_0x3193c4)[_0x3cffb1(0x80)](_0x1a5e61=>_0x1a5e61[_0x3cffb1(0x95)]('\x20')[_0x3cffb1(0x98)]());}function a(){const _0x150aaf=_0x59ab,_0x69e56c=[],_0x2b8e22=[];for(const _0x10c49f of Array[_0x150aaf(0x96)](document[_0x150aaf(0x92)])){if(_0x10c49f[_0x150aaf(0x86)][_0x150aaf(0x91)](_0x150aaf(0x8d))){for(const _0x4627d6 of Array[_0x150aaf(0x96)](_0x10c49f[_0x150aaf(0x9a)]))-0x1!==_0x4627d6[_0x150aaf(0x87)][_0x150aaf(0x84)](_0x150aaf(0x8f))?_0x69e56c[_0x150aaf(0x81)](_0x4627d6[_0x150aaf(0x87)]):-0x1!==_0x4627d6[_0x150aaf(0x87)][_0x150aaf(0x84)](_0x150aaf(0x94))&&_0x2b8e22[_0x150aaf(0x81)](_0x4627d6[_0x150aaf(0x87)]);}}return _0x69e56c[_0x150aaf(0x7f)]||console[_0x150aaf(0x7d)](_0x150aaf(0x8b)),[..._0x2b8e22,..._0x69e56c][_0x150aaf(0x95)]('\x20')[_0x150aaf(0x98)]();}
23
+ function _0x4611(){const _0x374b9c=['cssRules','styleSheets','trim','push','.ck-content','19359EkYCll','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.','3437259Lbozys','then','all','from','join','9WXXMQj',':root','EDITOR_STYLES','warn','indexOf','cssText','text','length','fetch','7131065WaurCP','hasAttribute','ownerNode','1702242SwDgmo','1333707tNZnYd','1013958ikUdux','540PiAzbj','data-cke','16787128pGzuir'];_0x4611=function(){return _0x374b9c;};return _0x4611();}(function(_0xcba472,_0x2ebdd2){const _0x440f87=_0x2318,_0x6375c9=_0xcba472();while(!![]){try{const _0x244932=-parseInt(_0x440f87(0x12c))/0x1+parseInt(_0x440f87(0x12b))/0x2+parseInt(_0x440f87(0x118))/0x3*(parseInt(_0x440f87(0x12e))/0x4)+-parseInt(_0x440f87(0x128))/0x5+parseInt(_0x440f87(0x12d))/0x6+-parseInt(_0x440f87(0x11a))/0x7+parseInt(_0x440f87(0x112))/0x8*(parseInt(_0x440f87(0x11f))/0x9);if(_0x244932===_0x2ebdd2)break;else _0x6375c9['push'](_0x6375c9['shift']());}catch(_0x5b6610){_0x6375c9['push'](_0x6375c9['shift']());}}}(_0x4611,0xb458f));function _0x2318(_0x21fd7b,_0x59c801){const _0x46110f=_0x4611();return _0x2318=function(_0x2318e3,_0x1fadca){_0x2318e3=_0x2318e3-0x112;let _0xfe37d8=_0x46110f[_0x2318e3];return _0xfe37d8;},_0x2318(_0x21fd7b,_0x59c801);}export function getStyles(_0x4e9413){const _0x1a61e8=_0x2318;if(!_0x4e9413)return new Promise(_0x50391d=>_0x50391d(''));const _0x2117d5=[];for(const _0x4ce760 of _0x4e9413)_0x1a61e8(0x121)!==_0x4ce760?_0x2117d5[_0x1a61e8(0x116)](window[_0x1a61e8(0x127)](_0x4ce760)[_0x1a61e8(0x11b)](_0x2714f4=>_0x2714f4[_0x1a61e8(0x125)]())):_0x2117d5[_0x1a61e8(0x116)](a());return Promise[_0x1a61e8(0x11c)](_0x2117d5)[_0x1a61e8(0x11b)](_0x36ac03=>_0x36ac03[_0x1a61e8(0x11e)]('\x20')[_0x1a61e8(0x115)]());}function a(){const _0xbf0128=_0x2318,_0x162338=[],_0x27aaa4=[];for(const _0xc9e06 of Array[_0xbf0128(0x11d)](document[_0xbf0128(0x114)])){if(_0xc9e06[_0xbf0128(0x12a)][_0xbf0128(0x129)](_0xbf0128(0x12f))){for(const _0x2a97c3 of Array[_0xbf0128(0x11d)](_0xc9e06[_0xbf0128(0x113)]))-0x1!==_0x2a97c3[_0xbf0128(0x124)][_0xbf0128(0x123)](_0xbf0128(0x117))?_0x162338[_0xbf0128(0x116)](_0x2a97c3[_0xbf0128(0x124)]):-0x1!==_0x2a97c3[_0xbf0128(0x124)][_0xbf0128(0x123)](_0xbf0128(0x120))&&_0x27aaa4[_0xbf0128(0x116)](_0x2a97c3[_0xbf0128(0x124)]);}}return _0x162338[_0xbf0128(0x126)]||console[_0xbf0128(0x122)](_0xbf0128(0x119)),[..._0x27aaa4,..._0x162338][_0xbf0128(0x11e)]('\x20')[_0xbf0128(0x115)]();}