@ckeditor/ckeditor5-export-pdf 41.3.0-alpha.4 → 41.3.1

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.
Files changed (113) hide show
  1. package/build/export-pdf.js +1 -1
  2. package/package.json +2 -3
  3. package/src/exportpdf.d.ts +2 -1
  4. package/src/exportpdf.js +1 -1
  5. package/src/exportpdfcommand.js +1 -1
  6. package/src/exportpdfui.d.ts +23 -0
  7. package/src/exportpdfui.js +23 -0
  8. package/src/index.js +1 -1
  9. package/src/utils.js +1 -1
  10. package/dist/content-index.css +0 -4
  11. package/dist/editor-index.css +0 -4
  12. package/dist/index.css +0 -4
  13. package/dist/translations/af.d.ts +0 -8
  14. package/dist/translations/af.js +0 -23
  15. package/dist/translations/ar.d.ts +0 -8
  16. package/dist/translations/ar.js +0 -23
  17. package/dist/translations/bg.d.ts +0 -8
  18. package/dist/translations/bg.js +0 -23
  19. package/dist/translations/bn.d.ts +0 -8
  20. package/dist/translations/bn.js +0 -23
  21. package/dist/translations/ca.d.ts +0 -8
  22. package/dist/translations/ca.js +0 -23
  23. package/dist/translations/cs.d.ts +0 -8
  24. package/dist/translations/cs.js +0 -23
  25. package/dist/translations/da.d.ts +0 -8
  26. package/dist/translations/da.js +0 -23
  27. package/dist/translations/de.d.ts +0 -8
  28. package/dist/translations/de.js +0 -23
  29. package/dist/translations/el.d.ts +0 -8
  30. package/dist/translations/el.js +0 -23
  31. package/dist/translations/en-au.d.ts +0 -8
  32. package/dist/translations/en-au.js +0 -23
  33. package/dist/translations/en.d.ts +0 -8
  34. package/dist/translations/en.js +0 -23
  35. package/dist/translations/es-co.d.ts +0 -8
  36. package/dist/translations/es-co.js +0 -23
  37. package/dist/translations/es.d.ts +0 -8
  38. package/dist/translations/es.js +0 -23
  39. package/dist/translations/et.d.ts +0 -8
  40. package/dist/translations/et.js +0 -23
  41. package/dist/translations/fi.d.ts +0 -8
  42. package/dist/translations/fi.js +0 -23
  43. package/dist/translations/fr.d.ts +0 -8
  44. package/dist/translations/fr.js +0 -23
  45. package/dist/translations/gl.d.ts +0 -8
  46. package/dist/translations/gl.js +0 -23
  47. package/dist/translations/he.d.ts +0 -8
  48. package/dist/translations/he.js +0 -23
  49. package/dist/translations/hi.d.ts +0 -8
  50. package/dist/translations/hi.js +0 -23
  51. package/dist/translations/hr.d.ts +0 -8
  52. package/dist/translations/hr.js +0 -23
  53. package/dist/translations/hu.d.ts +0 -8
  54. package/dist/translations/hu.js +0 -23
  55. package/dist/translations/id.d.ts +0 -8
  56. package/dist/translations/id.js +0 -23
  57. package/dist/translations/it.d.ts +0 -8
  58. package/dist/translations/it.js +0 -23
  59. package/dist/translations/ja.d.ts +0 -8
  60. package/dist/translations/ja.js +0 -23
  61. package/dist/translations/jv.d.ts +0 -8
  62. package/dist/translations/jv.js +0 -23
  63. package/dist/translations/ko.d.ts +0 -8
  64. package/dist/translations/ko.js +0 -23
  65. package/dist/translations/lt.d.ts +0 -8
  66. package/dist/translations/lt.js +0 -23
  67. package/dist/translations/lv.d.ts +0 -8
  68. package/dist/translations/lv.js +0 -23
  69. package/dist/translations/ms.d.ts +0 -8
  70. package/dist/translations/ms.js +0 -23
  71. package/dist/translations/nl.d.ts +0 -8
  72. package/dist/translations/nl.js +0 -23
  73. package/dist/translations/no.d.ts +0 -8
  74. package/dist/translations/no.js +0 -23
  75. package/dist/translations/pl.d.ts +0 -8
  76. package/dist/translations/pl.js +0 -23
  77. package/dist/translations/pt-br.d.ts +0 -8
  78. package/dist/translations/pt-br.js +0 -23
  79. package/dist/translations/pt.d.ts +0 -8
  80. package/dist/translations/pt.js +0 -23
  81. package/dist/translations/ro.d.ts +0 -8
  82. package/dist/translations/ro.js +0 -23
  83. package/dist/translations/ru.d.ts +0 -8
  84. package/dist/translations/ru.js +0 -23
  85. package/dist/translations/sk.d.ts +0 -8
  86. package/dist/translations/sk.js +0 -23
  87. package/dist/translations/sr-latn.d.ts +0 -8
  88. package/dist/translations/sr-latn.js +0 -23
  89. package/dist/translations/sr.d.ts +0 -8
  90. package/dist/translations/sr.js +0 -23
  91. package/dist/translations/sv.d.ts +0 -8
  92. package/dist/translations/sv.js +0 -23
  93. package/dist/translations/th.d.ts +0 -8
  94. package/dist/translations/th.js +0 -23
  95. package/dist/translations/tr.d.ts +0 -8
  96. package/dist/translations/tr.js +0 -23
  97. package/dist/translations/ug.d.ts +0 -8
  98. package/dist/translations/ug.js +0 -23
  99. package/dist/translations/uk.d.ts +0 -8
  100. package/dist/translations/uk.js +0 -23
  101. package/dist/translations/ur.d.ts +0 -8
  102. package/dist/translations/ur.js +0 -23
  103. package/dist/translations/vi.d.ts +0 -8
  104. package/dist/translations/vi.js +0 -23
  105. package/dist/translations/zh-cn.d.ts +0 -8
  106. package/dist/translations/zh-cn.js +0 -23
  107. package/dist/translations/zh.d.ts +0 -8
  108. package/dist/translations/zh.js +0 -23
  109. package/dist/types/augmentation.d.ts +0 -25
  110. package/dist/types/exportpdf.d.ts +0 -224
  111. package/dist/types/exportpdfcommand.d.ts +0 -43
  112. package/dist/types/index.d.ts +0 -14
  113. package/dist/types/utils.d.ts +0 -14
@@ -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:()=>a});var t=n(782),e=n(311);function o(){const t=["indexOf","trim","fetch","3664JDaNcm","length","cssRules","styleSheets","725498EFJlmt","data-cke","8155RCNXRn","120YQzKkW","1616157QyDTlD","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.","EDITOR_STYLES","hasAttribute","631428oUzLTM","all","push","ownerNode","then",".ck-content","385461bXwbJy","3812140KmSoNN","cssText","join","text",":root","12RLuAEZ","128940DMJLGb","from","warn"];return(o=function(){return t})()}function s(t,e){const n=o();return(s=function(t,e){return n[t-=123]})(t,e)}function i(){const t=s,e=[],n=[];for(const r of Array[t(147)](document[t(124)]))if(r[t(136)][t(132)](t(126)))for(const o of Array[t(147)](r[t(123)]))-1!==o[t(141)][t(149)](t(138))?e[t(135)](o[t(141)]):-1!==o[t(141)][t(149)](t(144))&&n[t(135)](o[t(141)]);return e[t(153)]||console[t(148)](t(130)),[...n,...e][t(142)](" ")[t(150)]()}!function(t,e){const n=s,r=t();for(;;)try{if(478073===-parseInt(n(125))/1+parseInt(n(146))/2+parseInt(n(139))/3*(parseInt(n(145))/4)+-parseInt(n(140))/5+-parseInt(n(133))/6+-parseInt(n(127))/7*(parseInt(n(152))/8)+parseInt(n(129))/9*(parseInt(n(128))/10))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(131)!==r?n[e(135)](window[e(151)](r)[e(137)]((t=>t[e(143)]()))):n[e(135)](i());return Promise[e(134)](n)[e(137)]((t=>t[e(142)](" ")[e(150)]()))}(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",...a?{Authorization:a.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 a extends t.Plugin{static get pluginName(){return"ExportPdf"}static get requires(){return["CloudServices",e.Notification]}init(){const t=this.editor,n=t.t,r=t.config.get("exportPdf")||{};t.commands.add("exportPdf",new c(t)),t.ui.componentFactory.add("exportPdf",(o=>{const s=t.commands.get("exportPdf"),i=new e.ButtonView(o),c=new e.SpinnerView;return i.set({label:n("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',tooltip:!0}),i.children.add(c),i.bind("isOn","isEnabled").to(s,"isBusy","isEnabled"),c.bind("isVisible").to(s,"isBusy"),i.iconView.bind("isVisible").to(s,"isBusy",(t=>!t)),this.listenTo(i,"execute",(()=>{t.execute("exportPdf",r),t.editing.view.focus()})),i}));const o=t.plugins.get("CloudServices");!1===r.tokenUrl?this._token=null:r.tokenUrl?o.registerTokenUrl(r.tokenUrl).then((t=>{this._token=t})):this._token=o.token}}function d(t,e){var n=u();return(d=function(t,e){return n[t-=449]})(t,e)}function u(){var t=["5372600KxTgXA","1164010XuvRZb","18201eihTQH","874476SeWTnL","3034808eEyHqM","5UILNxF","1614456ympbwF","4267632jwURyK","20CmeTmC","7ReJbWa"];return(u=function(){return t})()}!function(t,e){for(var n=d,r=t();;)try{if(382100===-parseInt(n(458))/1*(-parseInt(n(454))/2)+-parseInt(n(452))/3+parseInt(n(450))/4+parseInt(n(451))/5*(-parseInt(n(453))/6)+parseInt(n(455))/7*(parseInt(n(456))/8)+-parseInt(n(449))/9+parseInt(n(457))/10)break;r.push(r.shift())}catch(t){r.push(r.shift())}}(u)})(),(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:()=>p});var t=n(782),e=n(311);function o(){const t=s,e=[],n=[];for(const r of Array[t(473)](document[t(482)]))if(r[t(480)][t(500)](t(476)))for(const o of Array[t(473)](r[t(495)]))-1!==o[t(488)][t(498)](t(490))?e[t(478)](o[t(488)]):-1!==o[t(488)][t(498)](t(474))&&n[t(478)](o[t(488)]);return e[t(494)]||console[t(493)](t(491)),[...n,...e][t(472)](" ")[t(496)]()}function s(t,e){const n=i();return(s=function(t,e){return n[t-=471]})(t,e)}function i(){const t=["trim","2594505olsscO","indexOf","7117060ZqnfdV","hasAttribute","119212gblWTX","396516WpcAKS","join","from",":root","fetch","data-cke","294doArJg","push","5776iKeZxz","ownerNode","27PTMAGm","styleSheets","63592BhqTau","then","EDITOR_STYLES","all","2271411RiRwui","cssText","16jRXldw",".ck-content","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","warn","length","cssRules"];return(i=function(){return t})()}!function(t,e){const n=s,r=t();for(;;)try{if(296017===-parseInt(n(489))/1*(-parseInt(n(483))/2)+parseInt(n(481))/3*(parseInt(n(501))/4)+parseInt(n(497))/5+-parseInt(n(471))/6+parseInt(n(477))/7*(parseInt(n(479))/8)+-parseInt(n(487))/9+-parseInt(n(499))/10)break;r.push(r.shift())}catch(t){r.push(r.shift())}}(i);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/",i=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(485)!==r?n[e(478)](window[e(475)](r)[e(484)]((t=>t[e(492)]()))):n[e(478)](o());return Promise[e(486)](n)[e(484)]((t=>t[e(472)](" ")[e(496)]()))}(t.stylesheets||["EDITOR_STYLES"]).then((async n=>{const o={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 i(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},s={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(o)};return window.fetch(r,s).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=["140865qlkKEV","exportPdf","registerTokenUrl","_token","init","ExportPdf","140mwOWhh","130CyVftQ","CloudServices","add","598860HEMgyn","91445NobtRV","editor","requires","plugins","767511NHxiqb","then","542432DavNKG","token","306736NPgutB","tokenUrl","get","commands","config","pluginName","21406605XeCzPJ","2rMxePI","138tVjUTq"];return(d=function(){return t})()}function h(t,e){const n=d();return(h=function(t,e){return n[t-=405]})(t,e)}!function(t,e){const n=h,r=t();for(;;)try{if(746e3===-parseInt(n(432))/1*(-parseInt(n(419))/2)+-parseInt(n(431))/3+parseInt(n(410))/4+parseInt(n(421))/5*(parseInt(n(420))/6)+-parseInt(n(427))/7*(parseInt(n(412))/8)+-parseInt(n(408))/9*(parseInt(n(428))/10)+parseInt(n(418))/11)break;r.push(r.shift())}catch(t){r.push(r.shift())}}(d);class p extends t.Plugin{static get[u(417)](){return u(426)}static get[u(406)](){return[u(429),e.Notification,c]}[u(425)](){const t=u,e=this[t(405)],n=e[t(416)][t(414)](t(422))||{};e[t(415)][t(430)](t(422),new a(e));const r=e[t(407)][t(414)](t(429));!1===n[t(413)]?this[t(424)]=null:n[t(413)]?r[t(423)](n[t(413)])[t(409)]((e=>{this[t(424)]=e})):this[t(424)]=r[t(411)]}}function l(){var t=["1171497WpXSHq","248117Psbjjs","323169VVrYYf","2vIojIV","1349226jtNMXa","2823021sQjbHf","860916XSuNyr","8IEEaYy","777370PetyXk"];return(l=function(){return t})()}function f(t,e){var n=l();return(f=function(t,e){return n[t-=215]})(t,e)}!function(t,e){for(var n=f,r=t();;)try{if(225282===parseInt(n(215))/1+parseInt(n(217))/2*(parseInt(n(223))/3)+-parseInt(n(220))/4+-parseInt(n(222))/5+parseInt(n(218))/6+parseInt(n(216))/7+parseInt(n(221))/8*(-parseInt(n(219))/9))break;r.push(r.shift())}catch(t){r.push(r.shift())}}(l)})(),(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": "41.3.0-alpha.4",
3
+ "version": "41.3.1",
4
4
  "description": "Export to PDF feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -30,14 +30,13 @@
30
30
  "type": "module",
31
31
  "main": "src/index.js",
32
32
  "dependencies": {
33
- "ckeditor5": "41.3.0-alpha.4"
33
+ "ckeditor5": "41.3.1"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (http://cksource.com/)",
37
37
  "homepage": "https://ckeditor.com/ckeditor-5",
38
38
  "bugs": "https://support.ckeditor.com/hc/en-us/requests/new",
39
39
  "files": [
40
- "dist",
41
40
  "lang",
42
41
  "src/**/*.js",
43
42
  "src/**/*.d.ts",
@@ -9,6 +9,7 @@
9
9
  import { Plugin, type Editor } from 'ckeditor5/src/core.js';
10
10
  import { Notification } from 'ckeditor5/src/ui.js';
11
11
  import type { InitializedToken, TokenUrl } from '@ckeditor/ckeditor5-cloud-services';
12
+ import ExportPdfUI from './exportpdfui.js';
12
13
  /**
13
14
  * The export to PDF feature.
14
15
  *
@@ -24,7 +25,7 @@ export default class ExportPdf extends Plugin {
24
25
  /**
25
26
  * @inheritDoc
26
27
  */
27
- static get requires(): readonly ["CloudServices", typeof Notification];
28
+ static get requires(): readonly ["CloudServices", typeof Notification, typeof ExportPdfUI];
28
29
  /**
29
30
  * @inheritDoc
30
31
  */
package/src/exportpdf.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x4e6027}from'ckeditor5/src/core.js';import{ButtonView as _0x4701f5,Notification as _0x32db76,SpinnerView as _0x86e4c1}from'ckeditor5/src/ui.js';import _0x1a6139 from'./exportpdfcommand.js';import _0x1391b7 from'../theme/icons/exportpdf.svg';export default class p extends _0x4e6027{static get['pluginName'](){return'ExportPdf';}static get['requires'](){return['CloudServices',_0x32db76];}['init'](){const _0x5778c4=this['editor'],t=_0x5778c4['t'],_0x4ba5ca=_0x5778c4['config']['get']('exportPdf')||{};_0x5778c4['commands']['add']('exportPdf',new _0x1a6139(_0x5778c4)),_0x5778c4['ui']['componentFactory']['add']('exportPdf',_0x41a7af=>{const _0x50892f=_0x5778c4['commands']['get']('exportPdf'),_0x60343a=new _0x4701f5(_0x41a7af),_0x182c7e=new _0x86e4c1();return _0x60343a['set']({'label':t('Export\x20to\x20PDF'),'icon':_0x1391b7,'tooltip':!0x0}),_0x60343a['children']['add'](_0x182c7e),_0x60343a['bind']('isOn','isEnabled')['to'](_0x50892f,'isBusy','isEnabled'),_0x182c7e['bind']('isVisible')['to'](_0x50892f,'isBusy'),_0x60343a['iconView']['bind']('isVisible')['to'](_0x50892f,'isBusy',_0x33163c=>!_0x33163c),this['listenTo'](_0x60343a,'execute',()=>{_0x5778c4['execute']('exportPdf',_0x4ba5ca),_0x5778c4['editing']['view']['focus']();}),_0x60343a;});const _0x3e3320=_0x5778c4['plugins']['get']('CloudServices');!0x1===_0x4ba5ca['tokenUrl']?this['_token']=null:_0x4ba5ca['tokenUrl']?_0x3e3320['registerTokenUrl'](_0x4ba5ca['tokenUrl'])['then'](_0x5ebb00=>{this['_token']=_0x5ebb00;}):this['_token']=_0x3e3320['token'];}}
23
+ const _0x92f06a=_0x52db;(function(_0x13a553,_0x592eb3){const _0x204477=_0x52db,_0x47952f=_0x13a553();while(!![]){try{const _0x24e702=-parseInt(_0x204477(0x1b0))/0x1*(-parseInt(_0x204477(0x1a3))/0x2)+-parseInt(_0x204477(0x1af))/0x3+parseInt(_0x204477(0x19a))/0x4+parseInt(_0x204477(0x1a5))/0x5*(parseInt(_0x204477(0x1a4))/0x6)+-parseInt(_0x204477(0x1ab))/0x7*(parseInt(_0x204477(0x19c))/0x8)+-parseInt(_0x204477(0x198))/0x9*(parseInt(_0x204477(0x1ac))/0xa)+parseInt(_0x204477(0x1a2))/0xb;if(_0x24e702===_0x592eb3)break;else _0x47952f['push'](_0x47952f['shift']());}catch(_0x5dbb61){_0x47952f['push'](_0x47952f['shift']());}}}(_0x76a7,0xb6210));function _0x76a7(){const _0x2cafe9=['140865qlkKEV','exportPdf','registerTokenUrl','_token','init','ExportPdf','140mwOWhh','130CyVftQ','CloudServices','add','598860HEMgyn','91445NobtRV','editor','requires','plugins','767511NHxiqb','then','542432DavNKG','token','306736NPgutB','tokenUrl','get','commands','config','pluginName','21406605XeCzPJ','2rMxePI','138tVjUTq'];_0x76a7=function(){return _0x2cafe9;};return _0x76a7();}import{Plugin as _0x3c0966}from'ckeditor5/src/core.js';import{Notification as _0x1c8fcf}from'ckeditor5/src/ui.js';function _0x52db(_0x515d2d,_0x1ad2c2){const _0x76a723=_0x76a7();return _0x52db=function(_0x52db74,_0x1f15c7){_0x52db74=_0x52db74-0x195;let _0x5261a8=_0x76a723[_0x52db74];return _0x5261a8;},_0x52db(_0x515d2d,_0x1ad2c2);}import _0x5d9883 from'./exportpdfcommand.js';import _0x16b52e from'./exportpdfui.js';export default class s extends _0x3c0966{static get[_0x92f06a(0x1a1)](){const _0x12233f=_0x92f06a;return _0x12233f(0x1aa);}static get[_0x92f06a(0x196)](){const _0xff559d=_0x92f06a;return[_0xff559d(0x1ad),_0x1c8fcf,_0x16b52e];}[_0x92f06a(0x1a9)](){const _0x49451c=_0x92f06a,_0x559d2a=this[_0x49451c(0x195)],_0x1a9b3f=_0x559d2a[_0x49451c(0x1a0)][_0x49451c(0x19e)](_0x49451c(0x1a6))||{};_0x559d2a[_0x49451c(0x19f)][_0x49451c(0x1ae)](_0x49451c(0x1a6),new _0x5d9883(_0x559d2a));const _0x63ae9f=_0x559d2a[_0x49451c(0x197)][_0x49451c(0x19e)](_0x49451c(0x1ad));!0x1===_0x1a9b3f[_0x49451c(0x19d)]?this[_0x49451c(0x1a8)]=null:_0x1a9b3f[_0x49451c(0x19d)]?_0x63ae9f[_0x49451c(0x1a7)](_0x1a9b3f[_0x49451c(0x19d)])[_0x49451c(0x199)](_0x30f495=>{const _0x5a2e0c=_0x49451c;this[_0x5a2e0c(0x1a8)]=_0x30f495;}):this[_0x49451c(0x1a8)]=_0x63ae9f[_0x49451c(0x19b)];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0xaa2c1}from'ckeditor5/src/core.js';import{getStyles as _0x493f03}from'./utils.js';export default class o extends _0xaa2c1{constructor(_0x10f5cd){super(_0x10f5cd),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x122ed7={}){const _0x21102f=this['editor'],t=_0x21102f['t'],_0x3fc3f8=_0x122ed7['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x17177b=_0x122ed7['dataCallback']||(_0x51e32f=>_0x51e32f['data']['get']()),_0x4361fd=_0x21102f['plugins']['get']('ExportPdf'),_0x549e8b=_0x122ed7['token']||_0x4361fd['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x493f03(_0x122ed7['stylesheets']||['EDITOR_STYLES'])['then'](async _0xa402a3=>{const _0x235704={'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'+_0x21102f['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x17177b(_0x21102f)+'\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':_0xa402a3,'options':_0x122ed7['converterOptions']},_0x2b1b66={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x549e8b?{'Authorization':_0x549e8b['value']}:null,'x-cs-app-id':_0x122ed7['appID']||'cke5'},'body':JSON['stringify'](_0x235704)};return window['fetch'](_0x3fc3f8,_0x2b1b66)['then'](_0x606bfc=>{if(0xc8!==_0x606bfc['status'])throw _0x606bfc;return _0x606bfc['blob']();})['then'](_0x29c663=>{const _0xd26827='function'==typeof _0x122ed7['fileName']?_0x122ed7['fileName']():_0x122ed7['fileName'];this['_downloadFile'](_0x29c663,_0xd26827||'document.pdf');});})['catch'](_0x50d1b7=>{throw _0x21102f['plugins']['get']('Notification')['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x50d1b7;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x2a8a19,_0x24dc08){const _0x2a3309=document['createElement']('a');_0x2a3309['href']=window['URL']['createObjectURL'](_0x2a8a19),_0x2a3309['download']=_0x24dc08,_0x2a3309['click'](),_0x2a3309['remove']();}}
23
+ import{Command as _0x441053}from'ckeditor5/src/core.js';import{getStyles as _0x4316ee}from'./utils.js';export default class o extends _0x441053{constructor(_0x37547d){super(_0x37547d),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x25a435={}){const _0x505e14=this['editor'],t=_0x505e14['t'],_0x23ab1b=_0x25a435['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x5db239=_0x25a435['dataCallback']||(_0x595143=>_0x595143['data']['get']()),_0x19c751=_0x505e14['plugins']['get']('ExportPdf'),_0xc11c09=_0x25a435['token']||_0x19c751['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x4316ee(_0x25a435['stylesheets']||['EDITOR_STYLES'])['then'](async _0x375cad=>{const _0x5bdf42={'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'+_0x505e14['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x5db239(_0x505e14)+'\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':_0x375cad,'options':_0x25a435['converterOptions']},_0x3ec2e7={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0xc11c09?{'Authorization':_0xc11c09['value']}:null,'x-cs-app-id':_0x25a435['appID']||'cke5'},'body':JSON['stringify'](_0x5bdf42)};return window['fetch'](_0x23ab1b,_0x3ec2e7)['then'](_0x352d33=>{if(0xc8!==_0x352d33['status'])throw _0x352d33;return _0x352d33['blob']();})['then'](_0x4d14d7=>{const _0x270b16='function'==typeof _0x25a435['fileName']?_0x25a435['fileName']():_0x25a435['fileName'];this['_downloadFile'](_0x4d14d7,_0x270b16||'document.pdf');});})['catch'](_0xd8527c=>{throw _0x505e14['plugins']['get']('Notification')['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0xd8527c;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x3e3246,_0x24b1ff){const _0xbc8603=document['createElement']('a');_0xbc8603['href']=window['URL']['createObjectURL'](_0x3e3246),_0xbc8603['download']=_0x24b1ff,_0xbc8603['click'](),_0xbc8603['remove']();}}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+ /**
6
+ * @module export-pdf/exportpdfui
7
+ */
8
+ import { Plugin } from 'ckeditor5/src/core.js';
9
+ /**
10
+ * The export to PDF UI feature.
11
+ *
12
+ * It introduces 'Export to PDF' button in toolbar and menu bar.
13
+ */
14
+ export default class ExportPdfUI extends Plugin {
15
+ /**
16
+ * @inheritDoc
17
+ */
18
+ static get pluginName(): "ExportPdfUI";
19
+ /**
20
+ * @inheritDoc
21
+ */
22
+ init(): void;
23
+ }
@@ -0,0 +1,23 @@
1
+ /*
2
+ * Copyright (c) 2003-2024, 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{Plugin as _0x3061fb}from'ckeditor5/src/core.js';import{ButtonView as _0x2e0849,MenuBarMenuListItemButtonView as _0x23cc73,SpinnerView as _0x253575}from'ckeditor5/src/ui.js';import _0x25618c from'../theme/icons/exportpdf.svg';export default class i extends _0x3061fb{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x7863fa=this['editor'];_0x7863fa['ui']['componentFactory']['add']('exportPdf',()=>{const _0x1ce5e8=this['_createButton'](_0x2e0849),_0x18f183=_0x7863fa['commands']['get']('exportPdf');return _0x1ce5e8['set']({'tooltip':!0x0}),_0x1ce5e8['bind']('isOn')['to'](_0x18f183,'isBusy'),_0x1ce5e8;}),_0x7863fa['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x23cc73));}['_createButton'](_0x137fa9){const _0x44650d=this['editor'],_0x475443=_0x44650d['config']['get']('exportPdf')||{},t=_0x44650d['locale']['t'],_0x50022e=_0x44650d['commands']['get']('exportPdf'),_0x29b0eb=new _0x137fa9(_0x44650d['locale']),_0x4cf9c8=new _0x253575();return _0x29b0eb['children']['add'](_0x4cf9c8),_0x4cf9c8['bind']('isVisible')['to'](_0x50022e,'isBusy'),_0x29b0eb['iconView']['bind']('isVisible')['to'](_0x50022e,'isBusy',_0x5532b8=>!_0x5532b8),_0x29b0eb['set']({'label':t('Export\x20to\x20PDF'),'icon':_0x25618c}),_0x29b0eb['bind']('isEnabled')['to'](_0x50022e,'isEnabled'),this['listenTo'](_0x29b0eb,'execute',()=>{_0x44650d['execute']('exportPdf',_0x475443),_0x44650d['editing']['view']['focus']();}),_0x29b0eb;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0xdb83(_0x169131,_0x3a6450){var _0x164f03=_0x164f();return _0xdb83=function(_0xdb838c,_0x258ac8){_0xdb838c=_0xdb838c-0x1c1;var _0x271379=_0x164f03[_0xdb838c];return _0x271379;},_0xdb83(_0x169131,_0x3a6450);}(function(_0x5d7c5f,_0x49246d){var _0xabeb8e=_0xdb83,_0x15f99f=_0x5d7c5f();while(!![]){try{var _0x1de9e6=-parseInt(_0xabeb8e(0x1ca))/0x1*(-parseInt(_0xabeb8e(0x1c6))/0x2)+-parseInt(_0xabeb8e(0x1c4))/0x3+parseInt(_0xabeb8e(0x1c2))/0x4+parseInt(_0xabeb8e(0x1c3))/0x5*(-parseInt(_0xabeb8e(0x1c5))/0x6)+parseInt(_0xabeb8e(0x1c7))/0x7*(parseInt(_0xabeb8e(0x1c8))/0x8)+-parseInt(_0xabeb8e(0x1c1))/0x9+parseInt(_0xabeb8e(0x1c9))/0xa;if(_0x1de9e6===_0x49246d)break;else _0x15f99f['push'](_0x15f99f['shift']());}catch(_0x56ea97){_0x15f99f['push'](_0x15f99f['shift']());}}}(_0x164f,0x5d494));export{default as ExportPdf}from'./exportpdf.js';import'./augmentation.js';function _0x164f(){var _0x1a8d22=['5372600KxTgXA','1164010XuvRZb','18201eihTQH','874476SeWTnL','3034808eEyHqM','5UILNxF','1614456ympbwF','4267632jwURyK','20CmeTmC','7ReJbWa'];_0x164f=function(){return _0x1a8d22;};return _0x164f();}
23
+ function _0x41e8(){var _0x4afeb9=['1171497WpXSHq','248117Psbjjs','323169VVrYYf','2vIojIV','1349226jtNMXa','2823021sQjbHf','860916XSuNyr','8IEEaYy','777370PetyXk'];_0x41e8=function(){return _0x4afeb9;};return _0x41e8();}(function(_0x21356c,_0x46a510){var _0x2123ef=_0x92b1,_0x39353f=_0x21356c();while(!![]){try{var _0x99df4a=parseInt(_0x2123ef(0xd7))/0x1+parseInt(_0x2123ef(0xd9))/0x2*(parseInt(_0x2123ef(0xdf))/0x3)+-parseInt(_0x2123ef(0xdc))/0x4+-parseInt(_0x2123ef(0xde))/0x5+parseInt(_0x2123ef(0xda))/0x6+parseInt(_0x2123ef(0xd8))/0x7+parseInt(_0x2123ef(0xdd))/0x8*(-parseInt(_0x2123ef(0xdb))/0x9);if(_0x99df4a===_0x46a510)break;else _0x39353f['push'](_0x39353f['shift']());}catch(_0x690142){_0x39353f['push'](_0x39353f['shift']());}}}(_0x41e8,0x37002));export{default as ExportPdf}from'./exportpdf.js';function _0x92b1(_0x522d00,_0x2bce34){var _0x41e89a=_0x41e8();return _0x92b1=function(_0x92b14b,_0x19312f){_0x92b14b=_0x92b14b-0xd7;var _0x8f0798=_0x41e89a[_0x92b14b];return _0x8f0798;},_0x92b1(_0x522d00,_0x2bce34);}import'./augmentation.js';
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- (function(_0x2efc0c,_0x3720ee){const _0x3bd67f=_0x1522,_0x1dd80d=_0x2efc0c();while(!![]){try{const _0x2eedba=-parseInt(_0x3bd67f(0x7d))/0x1+parseInt(_0x3bd67f(0x92))/0x2+parseInt(_0x3bd67f(0x8b))/0x3*(parseInt(_0x3bd67f(0x91))/0x4)+-parseInt(_0x3bd67f(0x8c))/0x5+-parseInt(_0x3bd67f(0x85))/0x6+-parseInt(_0x3bd67f(0x7f))/0x7*(parseInt(_0x3bd67f(0x98))/0x8)+parseInt(_0x3bd67f(0x81))/0x9*(parseInt(_0x3bd67f(0x80))/0xa);if(_0x2eedba===_0x3720ee)break;else _0x1dd80d['push'](_0x1dd80d['shift']());}catch(_0x475ac5){_0x1dd80d['push'](_0x1dd80d['shift']());}}}(_0x4eb2,0x74b79));function _0x4eb2(){const _0x4423ff=['indexOf','trim','fetch','3664JDaNcm','length','cssRules','styleSheets','725498EFJlmt','data-cke','8155RCNXRn','120YQzKkW','1616157QyDTlD','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.','EDITOR_STYLES','hasAttribute','631428oUzLTM','all','push','ownerNode','then','.ck-content','385461bXwbJy','3812140KmSoNN','cssText','join','text',':root','12RLuAEZ','128940DMJLGb','from','warn'];_0x4eb2=function(){return _0x4423ff;};return _0x4eb2();}function _0x1522(_0x14d858,_0xbb139e){const _0x4eb23f=_0x4eb2();return _0x1522=function(_0x15225c,_0x3b84e7){_0x15225c=_0x15225c-0x7b;let _0xfb8a4b=_0x4eb23f[_0x15225c];return _0xfb8a4b;},_0x1522(_0x14d858,_0xbb139e);}export function getStyles(_0x245670){const _0x37e419=_0x1522;if(!_0x245670)return new Promise(_0x2363ce=>_0x2363ce(''));const _0x39ec3e=[];for(const _0x3010a3 of _0x245670)_0x37e419(0x83)!==_0x3010a3?_0x39ec3e[_0x37e419(0x87)](window[_0x37e419(0x97)](_0x3010a3)[_0x37e419(0x89)](_0x4556ad=>_0x4556ad[_0x37e419(0x8f)]())):_0x39ec3e[_0x37e419(0x87)](u());return Promise[_0x37e419(0x86)](_0x39ec3e)[_0x37e419(0x89)](_0x895ff1=>_0x895ff1[_0x37e419(0x8e)]('\x20')[_0x37e419(0x96)]());}function u(){const _0x5a7600=_0x1522,_0x430166=[],_0x239f38=[];for(const _0x1d77f8 of Array[_0x5a7600(0x93)](document[_0x5a7600(0x7c)])){if(_0x1d77f8[_0x5a7600(0x88)][_0x5a7600(0x84)](_0x5a7600(0x7e))){for(const _0x2372d7 of Array[_0x5a7600(0x93)](_0x1d77f8[_0x5a7600(0x7b)]))-0x1!==_0x2372d7[_0x5a7600(0x8d)][_0x5a7600(0x95)](_0x5a7600(0x8a))?_0x430166[_0x5a7600(0x87)](_0x2372d7[_0x5a7600(0x8d)]):-0x1!==_0x2372d7[_0x5a7600(0x8d)][_0x5a7600(0x95)](_0x5a7600(0x90))&&_0x239f38[_0x5a7600(0x87)](_0x2372d7[_0x5a7600(0x8d)]);}}return _0x430166[_0x5a7600(0x99)]||console[_0x5a7600(0x94)](_0x5a7600(0x82)),[..._0x239f38,..._0x430166][_0x5a7600(0x8e)]('\x20')[_0x5a7600(0x96)]();}
23
+ (function(_0x4392ac,_0x280745){const _0x143762=_0x3086,_0x39bdbc=_0x4392ac();while(!![]){try{const _0x6e56ac=-parseInt(_0x143762(0x1e9))/0x1*(-parseInt(_0x143762(0x1e3))/0x2)+parseInt(_0x143762(0x1e1))/0x3*(parseInt(_0x143762(0x1f5))/0x4)+parseInt(_0x143762(0x1f1))/0x5+-parseInt(_0x143762(0x1d7))/0x6+parseInt(_0x143762(0x1dd))/0x7*(parseInt(_0x143762(0x1df))/0x8)+-parseInt(_0x143762(0x1e7))/0x9+-parseInt(_0x143762(0x1f3))/0xa;if(_0x6e56ac===_0x280745)break;else _0x39bdbc['push'](_0x39bdbc['shift']());}catch(_0x3094de){_0x39bdbc['push'](_0x39bdbc['shift']());}}}(_0x3385,0x48451));export function getStyles(_0x17ca48){const _0x20d6dc=_0x3086;if(!_0x17ca48)return new Promise(_0x10fde3=>_0x10fde3(''));const _0x3274fd=[];for(const _0xf02a1b of _0x17ca48)_0x20d6dc(0x1e5)!==_0xf02a1b?_0x3274fd[_0x20d6dc(0x1de)](window[_0x20d6dc(0x1db)](_0xf02a1b)[_0x20d6dc(0x1e4)](_0x34223d=>_0x34223d[_0x20d6dc(0x1ec)]())):_0x3274fd[_0x20d6dc(0x1de)](a());return Promise[_0x20d6dc(0x1e6)](_0x3274fd)[_0x20d6dc(0x1e4)](_0x519121=>_0x519121[_0x20d6dc(0x1d8)]('\x20')[_0x20d6dc(0x1f0)]());}function a(){const _0x4f09db=_0x3086,_0xd42693=[],_0x177d00=[];for(const _0x479cc9 of Array[_0x4f09db(0x1d9)](document[_0x4f09db(0x1e2)])){if(_0x479cc9[_0x4f09db(0x1e0)][_0x4f09db(0x1f4)](_0x4f09db(0x1dc))){for(const _0x2213b6 of Array[_0x4f09db(0x1d9)](_0x479cc9[_0x4f09db(0x1ef)]))-0x1!==_0x2213b6[_0x4f09db(0x1e8)][_0x4f09db(0x1f2)](_0x4f09db(0x1ea))?_0xd42693[_0x4f09db(0x1de)](_0x2213b6[_0x4f09db(0x1e8)]):-0x1!==_0x2213b6[_0x4f09db(0x1e8)][_0x4f09db(0x1f2)](_0x4f09db(0x1da))&&_0x177d00[_0x4f09db(0x1de)](_0x2213b6[_0x4f09db(0x1e8)]);}}return _0xd42693[_0x4f09db(0x1ee)]||console[_0x4f09db(0x1ed)](_0x4f09db(0x1eb)),[..._0x177d00,..._0xd42693][_0x4f09db(0x1d8)]('\x20')[_0x4f09db(0x1f0)]();}function _0x3086(_0x1303ef,_0x2bcafd){const _0x3385da=_0x3385();return _0x3086=function(_0x3086af,_0x4c0633){_0x3086af=_0x3086af-0x1d7;let _0x100729=_0x3385da[_0x3086af];return _0x100729;},_0x3086(_0x1303ef,_0x2bcafd);}function _0x3385(){const _0x149706=['trim','2594505olsscO','indexOf','7117060ZqnfdV','hasAttribute','119212gblWTX','396516WpcAKS','join','from',':root','fetch','data-cke','294doArJg','push','5776iKeZxz','ownerNode','27PTMAGm','styleSheets','63592BhqTau','then','EDITOR_STYLES','all','2271411RiRwui','cssText','16jRXldw','.ck-content','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','warn','length','cssRules'];_0x3385=function(){return _0x149706;};return _0x3385();}
@@ -1,4 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
@@ -1,4 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
package/dist/index.css DELETED
@@ -1,4 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2024, 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 default{'af':{'dictionary':{'Export\x20to\x20PDF':'Voer\x20uit\x20na\x20PDF','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'\x27n\x20Fout\x20het\x20voorgekom\x20tydens\x20die\x20skep\x20van\x20die\x20PDF.'},'getPluralForm':_0xe86c32=>0x1!=_0xe86c32}};
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2024, 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 default{'ar':{'dictionary':{'Export\x20to\x20PDF':'تصدير\x20إلى\x20ملف\x20PDF','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'حدث\x20خطأ\x20ما،\x20أثناء\x20استخراج\x20ملف\x20PDF.'},'getPluralForm':_0x3f9e92=>0x0==_0x3f9e92?0x0:0x1==_0x3f9e92?0x1:0x2==_0x3f9e92?0x2:_0x3f9e92%0x64>=0x3&&_0x3f9e92%0x64<=0xa?0x3:_0x3f9e92%0x64>=0xb&&_0x3f9e92%0x64<=0x63?0x4:0x5}};
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2024, 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 default{'bg':{'dictionary':{'Export\x20to\x20PDF':'Експорт\x20към\x20PDF','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'Възникна\x20грешка\x20при\x20генериране\x20на\x20PDF.'},'getPluralForm':_0x164b40=>0x1!=_0x164b40}};
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2024, 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 default{'bn':{'dictionary':{'Export\x20to\x20PDF':'PDF\x20এ\x20রপ্তানি\x20করুন','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'PDF\x20তৈরি\x20করার\x20সময়\x20একটি\x20ত্রুটি\x20হয়েছে।'},'getPluralForm':_0x298e9a=>0x1!=_0x298e9a}};
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2024, 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 default{'ca':{'dictionary':{'Export\x20to\x20PDF':'Exportar\x20a\x20PDF','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'S\x27ha\x20produït\x20un\x20error\x20en\x20generar\x20el\x20PDF.'},'getPluralForm':_0x37cfbc=>0x1!=_0x37cfbc}};
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2024, 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 default{'cs':{'dictionary':{'Export\x20to\x20PDF':'Exportovat\x20do\x20PDF','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'Při\x20generování\x20PDF\x20souboru\x20se\x20vyskytla\x20chyba.'},'getPluralForm':_0x48eb32=>0x1==_0x48eb32&&_0x48eb32%0x1==0x0?0x0:_0x48eb32>=0x2&&_0x48eb32<=0x4&&_0x48eb32%0x1==0x0?0x1:_0x48eb32%0x1!=0x0?0x2:0x3}};
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2024, 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 default{'da':{'dictionary':{'Export\x20to\x20PDF':'Eksporter\x20til\x20PDF','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'Der\x20opstod\x20en\x20fejl\x20under\x20oprettelse\x20af\x20PDF\x27en.'},'getPluralForm':_0x2a8201=>0x1!=_0x2a8201}};
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2024, 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 default{'de':{'dictionary':{'Export\x20to\x20PDF':'Als\x20PDF\x20exportieren','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'Beim\x20Erstellen\x20der\x20PDF\x20ist\x20ein\x20Fehler\x20aufgetreten.'},'getPluralForm':_0x467044=>0x1!=_0x467044}};
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2024, 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 default{'el':{'dictionary':{'Export\x20to\x20PDF':'Εξαγωγή\x20σε\x20PDF','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'Παρουσιάστηκε\x20σφάλμα\x20κατά\x20τη\x20δημιουργία\x20του\x20PDF.'},'getPluralForm':_0x4bd54a=>0x1!=_0x4bd54a}};
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;
@@ -1,23 +0,0 @@
1
- /*
2
- * Copyright (c) 2003-2024, 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 default{'en-au':{'dictionary':{'Export\x20to\x20PDF':'Export\x20to\x20PDF','An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.':'An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.'},'getPluralForm':_0x3e98a0=>0x1!=_0x3e98a0}};
@@ -1,8 +0,0 @@
1
- /**
2
- * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- import type { Translations } from 'ckeditor5';
7
- declare const translations: Translations;
8
- export default translations;