@ckeditor/ckeditor5-export-pdf 0.0.0-nightly-20240416.0 → 0.0.0-nightly-20240417.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/lang/contexts.json +4 -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:()=>h});var t=n(782),e=n(311);function o(){const t=["indexOf","80cZrcpG","2019735ysVzqz","from","styleSheets","text","data-cke",".ck-content","all","25wUSCjW","join","424613OnoWzh","19044DWBKiG","cssText","953989VDjLhO","warn","cssRules","506776cUaEMr","hasAttribute","trim","1090170YfIbLE","then","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.",":root","EDITOR_STYLES","ownerNode","706020WoYIlZ","push","fetch","length"];return(o=function(){return t})()}function s(t,e){const n=o();return(s=function(t,e){return n[t-=209]})(t,e)}function i(){const t=s,e=[],n=[];for(const r of Array[t(221)](document[t(222)]))if(r[t(213)][t(236)](t(224)))for(const o of Array[t(221)](r[t(234)]))-1!==o[t(231)][t(218)](t(225))?e[t(215)](o[t(231)]):-1!==o[t(231)][t(218)](t(211))&&n[t(215)](o[t(231)]);return e[t(217)]||console[t(233)](t(210)),[...n,...e][t(228)](" ")[t(237)]()}!function(t,e){const n=s,r=t();for(;;)try{if(523634===-parseInt(n(232))/1+parseInt(n(235))/2+parseInt(n(214))/3+-parseInt(n(230))/4*(parseInt(n(227))/5)+parseInt(n(238))/6+parseInt(n(229))/7*(parseInt(n(219))/8)+parseInt(n(220))/9)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(212)!==r?n[e(215)](window[e(216)](r)[e(209)]((t=>t[e(223)]()))):n[e(215)](i());return Promise[e(226)](n)[e(209)]((t=>t[e(228)](" ")[e(237)]()))}(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-=461]})(t,e)}function p(){const t=["8884869iLnyLu","6107500vgVRRt","init","_token","ExportPdf","get","requires","plugins","7429325lylfZo","CloudServices","exportPdf","token","then","add","registerTokenUrl","commands","18sWVogl","pluginName","5276550limAkT","33hnmTwC","editor","113968tgwmve","6pXLtXS","tokenUrl","13RXPKLN","6087000NXmmQq","config","4375104mogDBy"];return(p=function(){return t})()}!function(t,e){const n=d,r=t();for(;;)try{if(827668===parseInt(n(473))/1*(parseInt(n(470))/2)+parseInt(n(476))/3+-parseInt(n(478))/4+parseInt(n(485))/5*(parseInt(n(471))/6)+-parseInt(n(477))/7+-parseInt(n(474))/8*(-parseInt(n(465))/9)+parseInt(n(467))/10*(-parseInt(n(468))/11))break;r.push(r.shift())}catch(t){r.push(r.shift())}}(p);class h extends t.Plugin{static get[u(466)](){return u(481)}static get[u(483)](){return[u(486),e.Notification,c]}[u(479)](){const t=u,e=this[t(469)],n=e[t(475)][t(482)](t(487))||{};e[t(464)][t(462)](t(487),new a(e));const r=e[t(484)][t(482)](t(486));!1===n[t(472)]?this[t(480)]=null:n[t(472)]?r[t(463)](n[t(472)])[t(461)]((e=>{this[t(480)]=e})):this[t(480)]=r[t(488)]}}function l(t,e){var n=f();return(l=function(t,e){return n[t-=410]})(t,e)}function f(){var t=["1400680CDkQoK","250114nDYPpc","246ztLagJ","9vMeHIU","2934340QJNHsp","3304048dzFXiB","12vJADuJ","3234idTxUk","466010oiuCLN","44204JeAEzo","13596WfYZKc","7DfPfio"];return(f=function(){return t})()}!function(t,e){for(var n=l,r=t();;)try{if(858093===-parseInt(n(418))/1*(-parseInt(n(420))/2)+parseInt(n(421))/3*(-parseInt(n(416))/4)+-parseInt(n(411))/5+-parseInt(n(417))/6*(-parseInt(n(414))/7)+parseInt(n(419))/8+-parseInt(n(410))/9*(parseInt(n(415))/10)+parseInt(n(412))/11*(parseInt(n(413))/12))break;r.push(r.shift())}catch(t){r.push(r.shift())}}(f)})(),(window.CKEditor5=window.CKEditor5||{}).exportPdf=r})();
|
package/lang/contexts.json
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Export to PDF": "A toolbar button tooltip for a PDF export feature.",
|
|
3
|
-
"An error occurred while generating the PDF.": "An error message shown to the user when an error occurred during the generation of the PDF file."
|
|
3
|
+
"An error occurred while generating the PDF.": "An error message shown to the user when an error occurred during the generation of the PDF file.",
|
|
4
|
+
"PDF export started": "Aria status message indicating start of PDF document export. Example: 'PDF export started'.",
|
|
5
|
+
"PDF export failed": "Aria status message indicating failed PDF document export. Example: 'PDF export failed'.",
|
|
6
|
+
"PDF export successful": "Aria status message indicating successful PDF document export. Example: 'PDF export successful'."
|
|
4
7
|
}
|
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-20240417.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-20240417.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 _0x378d56=_0x47b3;(function(_0x21a055,_0x7d12){const _0x3c393e=_0x47b3,_0x359874=_0x21a055();while(!![]){try{const _0x48c70b=parseInt(_0x3c393e(0x1d9))/0x1*(parseInt(_0x3c393e(0x1d6))/0x2)+parseInt(_0x3c393e(0x1dc))/0x3+-parseInt(_0x3c393e(0x1de))/0x4+parseInt(_0x3c393e(0x1e5))/0x5*(parseInt(_0x3c393e(0x1d7))/0x6)+-parseInt(_0x3c393e(0x1dd))/0x7+-parseInt(_0x3c393e(0x1da))/0x8*(-parseInt(_0x3c393e(0x1d1))/0x9)+parseInt(_0x3c393e(0x1d3))/0xa*(-parseInt(_0x3c393e(0x1d4))/0xb);if(_0x48c70b===_0x7d12)break;else _0x359874['push'](_0x359874['shift']());}catch(_0xc9b76){_0x359874['push'](_0x359874['shift']());}}}(_0x25c1,0xca114));import{Plugin as _0x24006b}from'ckeditor5/src/core.js';function _0x47b3(_0x4b9b87,_0x5f0482){const _0x25c1cf=_0x25c1();return _0x47b3=function(_0x47b323,_0x1d060d){_0x47b323=_0x47b323-0x1cd;let _0x1ffde6=_0x25c1cf[_0x47b323];return _0x1ffde6;},_0x47b3(_0x4b9b87,_0x5f0482);}import{Notification as _0x5c4df3}from'ckeditor5/src/ui.js';import _0x356776 from'./exportpdfcommand.js';function _0x25c1(){const _0x252152=['8884869iLnyLu','6107500vgVRRt','init','_token','ExportPdf','get','requires','plugins','7429325lylfZo','CloudServices','exportPdf','token','then','add','registerTokenUrl','commands','18sWVogl','pluginName','5276550limAkT','33hnmTwC','editor','113968tgwmve','6pXLtXS','tokenUrl','13RXPKLN','6087000NXmmQq','config','4375104mogDBy'];_0x25c1=function(){return _0x252152;};return _0x25c1();}import _0x4e0dc3 from'./exportpdfui.js';export default class s extends _0x24006b{static get[_0x378d56(0x1d2)](){const _0xa4279c=_0x378d56;return _0xa4279c(0x1e1);}static get[_0x378d56(0x1e3)](){const _0x43b939=_0x378d56;return[_0x43b939(0x1e6),_0x5c4df3,_0x4e0dc3];}[_0x378d56(0x1df)](){const _0x5c76bb=_0x378d56,_0x2ccce4=this[_0x5c76bb(0x1d5)],_0x2df353=_0x2ccce4[_0x5c76bb(0x1db)][_0x5c76bb(0x1e2)](_0x5c76bb(0x1e7))||{};_0x2ccce4[_0x5c76bb(0x1d0)][_0x5c76bb(0x1ce)](_0x5c76bb(0x1e7),new _0x356776(_0x2ccce4));const _0x494390=_0x2ccce4[_0x5c76bb(0x1e4)][_0x5c76bb(0x1e2)](_0x5c76bb(0x1e6));!0x1===_0x2df353[_0x5c76bb(0x1d8)]?this[_0x5c76bb(0x1e0)]=null:_0x2df353[_0x5c76bb(0x1d8)]?_0x494390[_0x5c76bb(0x1cf)](_0x2df353[_0x5c76bb(0x1d8)])[_0x5c76bb(0x1cd)](_0x1383fe=>{const _0x3ea506=_0x5c76bb;this[_0x3ea506(0x1e0)]=_0x1383fe;}):this[_0x5c76bb(0x1e0)]=_0x494390[_0x5c76bb(0x1e8)];}}
|
package/src/exportpdfcommand.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Command as
|
|
23
|
+
import{Command as _0x4e1781}from'ckeditor5/src/core.js';import{getStyles as _0x2350ca}from'./utils.js';export default class o extends _0x4e1781{constructor(_0x508542){super(_0x508542),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x51b6d7={}){const _0x4173a6=this['editor'],t=_0x4173a6['t'],_0x441dcb=_0x51b6d7['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x139c03=_0x51b6d7['dataCallback']||(_0x34d724=>_0x34d724['data']['get']()),_0x45729d=_0x4173a6['plugins']['get']('ExportPdf'),_0x15a133=_0x51b6d7['token']||_0x45729d['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x2350ca(_0x51b6d7['stylesheets']||['EDITOR_STYLES'])['then'](async _0xecc542=>{_0x4173a6['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20started'));const _0x48ec80={'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'+_0x4173a6['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x139c03(_0x4173a6)+'\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':_0xecc542,'options':_0x51b6d7['converterOptions']},_0x243f10={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x15a133?{'Authorization':_0x15a133['value']}:null,'x-cs-app-id':_0x51b6d7['appID']||'cke5'},'body':JSON['stringify'](_0x48ec80)};return window['fetch'](_0x441dcb,_0x243f10)['then'](_0x20f713=>{if(0xc8!==_0x20f713['status'])throw _0x20f713;return _0x20f713['blob']();})['then'](_0x5c3180=>{_0x4173a6['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20successful'));const _0x215e40='function'==typeof _0x51b6d7['fileName']?_0x51b6d7['fileName']():_0x51b6d7['fileName'];this['_downloadFile'](_0x5c3180,_0x215e40||'document.pdf');});})['catch'](_0x288d37=>{const _0x3354e6=_0x4173a6['plugins']['get']('Notification');throw _0x4173a6['ui']['ariaLiveAnnouncer']['announce'](t('PDF\x20export\x20failed'),{'politeness':'assertive'}),_0x3354e6['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x288d37;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x88c4a0,_0x196948){const _0x3f5769=document['createElement']('a');_0x3f5769['href']=window['URL']['createObjectURL'](_0x88c4a0),_0x3f5769['download']=_0x196948,_0x3f5769['click'](),_0x3f5769['remove']();}}
|
package/src/exportpdfui.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as
|
|
23
|
+
import{Plugin as _0x43e398}from'ckeditor5/src/core.js';import{ButtonView as _0xa02f5b,MenuBarMenuListItemButtonView as _0x361fbf,SpinnerView as _0x3a3bdb}from'ckeditor5/src/ui.js';import _0x6a9f8f from'../theme/icons/exportpdf.svg';export default class i extends _0x43e398{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x30cc23=this['editor'];_0x30cc23['ui']['componentFactory']['add']('exportPdf',()=>{const _0x4c2ec4=this['_createButton'](_0xa02f5b),_0x492c3e=_0x30cc23['commands']['get']('exportPdf');return _0x4c2ec4['set']({'tooltip':!0x0}),_0x4c2ec4['bind']('isOn')['to'](_0x492c3e,'isBusy'),_0x4c2ec4;}),_0x30cc23['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x361fbf));}['_createButton'](_0xa85f28){const _0x55935a=this['editor'],_0x2752cc=_0x55935a['config']['get']('exportPdf')||{},t=_0x55935a['locale']['t'],_0x79ce66=_0x55935a['commands']['get']('exportPdf'),_0x285306=new _0xa85f28(_0x55935a['locale']),_0x5b0710=new _0x3a3bdb();return _0x285306['children']['add'](_0x5b0710),_0x5b0710['bind']('isVisible')['to'](_0x79ce66,'isBusy'),_0x285306['iconView']['bind']('isVisible')['to'](_0x79ce66,'isBusy',_0x3e1642=>!_0x3e1642),_0x285306['set']({'label':t('Export\x20to\x20PDF'),'icon':_0x6a9f8f}),_0x285306['bind']('isEnabled')['to'](_0x79ce66,'isEnabled'),this['listenTo'](_0x285306,'execute',()=>{_0x55935a['execute']('exportPdf',_0x2752cc),_0x55935a['editing']['view']['focus']();}),_0x285306;}}
|
package/src/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
(function(
|
|
23
|
+
function _0x2907(_0x5c0c03,_0x137209){var _0x229456=_0x2294();return _0x2907=function(_0x290764,_0x2c004b){_0x290764=_0x290764-0x19a;var _0x8f3e15=_0x229456[_0x290764];return _0x8f3e15;},_0x2907(_0x5c0c03,_0x137209);}(function(_0x572fad,_0x5d84f7){var _0x1ceedc=_0x2907,_0x33ed8b=_0x572fad();while(!![]){try{var _0x1fec7c=-parseInt(_0x1ceedc(0x1a2))/0x1*(-parseInt(_0x1ceedc(0x1a4))/0x2)+parseInt(_0x1ceedc(0x1a5))/0x3*(-parseInt(_0x1ceedc(0x1a0))/0x4)+-parseInt(_0x1ceedc(0x19b))/0x5+-parseInt(_0x1ceedc(0x1a1))/0x6*(-parseInt(_0x1ceedc(0x19e))/0x7)+parseInt(_0x1ceedc(0x1a3))/0x8+-parseInt(_0x1ceedc(0x19a))/0x9*(parseInt(_0x1ceedc(0x19f))/0xa)+parseInt(_0x1ceedc(0x19c))/0xb*(parseInt(_0x1ceedc(0x19d))/0xc);if(_0x1fec7c===_0x5d84f7)break;else _0x33ed8b['push'](_0x33ed8b['shift']());}catch(_0x4e0773){_0x33ed8b['push'](_0x33ed8b['shift']());}}}(_0x2294,0xd17ed));function _0x2294(){var _0x5bd604=['1400680CDkQoK','250114nDYPpc','246ztLagJ','9vMeHIU','2934340QJNHsp','3304048dzFXiB','12vJADuJ','3234idTxUk','466010oiuCLN','44204JeAEzo','13596WfYZKc','7DfPfio'];_0x2294=function(){return _0x5bd604;};return _0x2294();}export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';
|
package/src/utils.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
(function(_0x34e63,_0xb642f0){const _0x1d36ff=_0xa4b0,_0x7ddb8e=_0x34e63();while(!![]){try{const _0x2fee02=-parseInt(_0x1d36ff(0xe8))/0x1+parseInt(_0x1d36ff(0xeb))/0x2+parseInt(_0x1d36ff(0xd6))/0x3+-parseInt(_0x1d36ff(0xe6))/0x4*(parseInt(_0x1d36ff(0xe3))/0x5)+parseInt(_0x1d36ff(0xee))/0x6+parseInt(_0x1d36ff(0xe5))/0x7*(parseInt(_0x1d36ff(0xdb))/0x8)+parseInt(_0x1d36ff(0xdc))/0x9;if(_0x2fee02===_0xb642f0)break;else _0x7ddb8e['push'](_0x7ddb8e['shift']());}catch(_0x54ba32){_0x7ddb8e['push'](_0x7ddb8e['shift']());}}}(_0x5ae8,0x7fd72));export function getStyles(_0x5360e2){const _0xa77338=_0xa4b0;if(!_0x5360e2)return new Promise(_0x50435c=>_0x50435c(''));const _0x128245=[];for(const _0x13f5cf of _0x5360e2)_0xa77338(0xd4)!==_0x13f5cf?_0x128245[_0xa77338(0xd7)](window[_0xa77338(0xd8)](_0x13f5cf)[_0xa77338(0xd1)](_0x11649c=>_0x11649c[_0xa77338(0xdf)]())):_0x128245[_0xa77338(0xd7)](a());return Promise[_0xa77338(0xe2)](_0x128245)[_0xa77338(0xd1)](_0x421e9e=>_0x421e9e[_0xa77338(0xe4)]('\x20')[_0xa77338(0xed)]());}function _0x5ae8(){const _0x13371b=['indexOf','80cZrcpG','2019735ysVzqz','from','styleSheets','text','data-cke','.ck-content','all','25wUSCjW','join','424613OnoWzh','19044DWBKiG','cssText','953989VDjLhO','warn','cssRules','506776cUaEMr','hasAttribute','trim','1090170YfIbLE','then','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.',':root','EDITOR_STYLES','ownerNode','706020WoYIlZ','push','fetch','length'];_0x5ae8=function(){return _0x13371b;};return _0x5ae8();}function _0xa4b0(_0x3abec4,_0x441531){const _0x5ae849=_0x5ae8();return _0xa4b0=function(_0xa4b0f0,_0x339ba7){_0xa4b0f0=_0xa4b0f0-0xd1;let _0x516eaf=_0x5ae849[_0xa4b0f0];return _0x516eaf;},_0xa4b0(_0x3abec4,_0x441531);}function a(){const _0x20537d=_0xa4b0,_0x1612e2=[],_0x3ced6e=[];for(const _0x1aac16 of Array[_0x20537d(0xdd)](document[_0x20537d(0xde)])){if(_0x1aac16[_0x20537d(0xd5)][_0x20537d(0xec)](_0x20537d(0xe0))){for(const _0x2974ec of Array[_0x20537d(0xdd)](_0x1aac16[_0x20537d(0xea)]))-0x1!==_0x2974ec[_0x20537d(0xe7)][_0x20537d(0xda)](_0x20537d(0xe1))?_0x1612e2[_0x20537d(0xd7)](_0x2974ec[_0x20537d(0xe7)]):-0x1!==_0x2974ec[_0x20537d(0xe7)][_0x20537d(0xda)](_0x20537d(0xd3))&&_0x3ced6e[_0x20537d(0xd7)](_0x2974ec[_0x20537d(0xe7)]);}}return _0x1612e2[_0x20537d(0xd9)]||console[_0x20537d(0xe9)](_0x20537d(0xd2)),[..._0x3ced6e,..._0x1612e2][_0x20537d(0xe4)]('\x20')[_0x20537d(0xed)]();}
|