@ckeditor/ckeditor5-export-pdf 41.3.0-alpha.3 → 41.3.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.
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=["2343FPLyyt","1033713sTQyot","hasAttribute","cssText","3322CGyTJx","fetch","1157741sEaHSD","push","trim","cssRules","length","325619GPHiRx","styleSheets","5017304zgwQQA","text",":root","then","637782fThgJN","120oTDeaE","all","EDITOR_STYLES","10mjbwtY","data-cke","ownerNode","indexOf","6281345eWPNec","warn","join","from","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.",".ck-content"];return(o=function(){return t})()}function s(t,e){const n=o();return(s=function(t,e){return n[t-=133]})(t,e)}function i(){const t=s,e=[],n=[];for(const r of Array[t(144)](document[t(159)]))if(r[t(139)][t(149)](t(138)))for(const o of Array[t(144)](r[t(156)]))-1!==o[t(150)][t(140)](t(146))?e[t(154)](o[t(150)]):-1!==o[t(150)][t(140)](t(162))&&n[t(154)](o[t(150)]);return e[t(157)]||console[t(142)](t(145)),[...n,...e][t(143)](" ")[t(155)]()}!function(t,e){const n=s,r=t();for(;;)try{if(777466===parseInt(n(153))/1+-parseInt(n(151))/2*(parseInt(n(147))/3)+parseInt(n(160))/4+-parseInt(n(141))/5+parseInt(n(133))/6+-parseInt(n(158))/7*(-parseInt(n(134))/8)+parseInt(n(148))/9*(parseInt(n(137))/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(136)!==r?n[e(154)](window[e(152)](r)[e(163)]((t=>t[e(161)]()))):n[e(154)](i());return Promise[e(135)](n)[e(163)]((t=>t[e(143)](" ")[e(155)]()))}(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-=243]})(t,e)}function u(){var t=["287jxeicH","2XsCFtt","755744tbJLGO","220248xscSaR","118266rhNabI","2246740ltHYPX","23550RHyQUy","52anrHwm","30325PTCLrN","464613DxlVht"];return(u=function(){return t})()}!function(t,e){for(var n=d,r=t();;)try{if(121697===-parseInt(n(252))/1+-parseInt(n(249))/2*(-parseInt(n(247))/3)+-parseInt(n(245))/4*(-parseInt(n(246))/5)+-parseInt(n(244))/6*(-parseInt(n(248))/7)+parseInt(n(250))/8+-parseInt(n(251))/9+-parseInt(n(243))/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=["1642JGFPXf","then","4640812hDghkw","fetch","push","length",".ck-content","hasAttribute","EDITOR_STYLES","all","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.","cssText","from","4265241agQeSk","ownerNode","text","join","cssRules","96yRxdrJ","2544755Henkoj","4361100yeagei","13245804Vpytjo","warn","indexOf","138600CEcjuz","data-cke","trim",":root","1153omBBSJ","styleSheets"];return(o=function(){return t})()}function s(t,e){const n=o();return(s=function(t,e){return n[t-=317]})(t,e)}function i(){const t=s,e=[],n=[];for(const r of Array[t(335)](document[t(322)]))if(r[t(337)][t(330)](t(318)))for(const o of Array[t(335)](r[t(340)]))-1!==o[t(334)][t(346)](t(329))?e[t(327)](o[t(334)]):-1!==o[t(334)][t(346)](t(320))&&n[t(327)](o[t(334)]);return e[t(328)]||console[t(345)](t(333)),[...n,...e][t(339)](" ")[t(319)]()}!function(t,e){const n=s,r=t();for(;;)try{if(766986===-parseInt(n(321))/1*(parseInt(n(323))/2)+parseInt(n(336))/3+-parseInt(n(325))/4+-parseInt(n(342))/5+parseInt(n(343))/6+-parseInt(n(317))/7*(parseInt(n(341))/8)+parseInt(n(344))/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(331)!==r?n[e(327)](window[e(326)](r)[e(324)]((t=>t[e(338)]()))):n[e(327)](i());return Promise[e(332)](n)[e(324)]((t=>t[e(339)](" ")[e(319)]()))}(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"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=h;function d(){const t=["token","config","registerTokenUrl","requires","editor","commands","75156eFzfmM","pluginName","tokenUrl","8055194BWMnBq","8414005xlSsIn","6954024BeLwvH","207ewAKAj","exportPdf","_token","plugins","6515408BiGitB","856230XjnMWU","get","26wNVqzA","ExportPdf","1041528vIPPVf","then","CloudServices","6xXTUky","add","init"];return(d=function(){return t})()}function h(t,e){const n=d();return(h=function(t,e){return n[t-=393]})(t,e)}!function(t,e){const n=h,r=t();for(;;)try{if(907961===-parseInt(n(404))/1+parseInt(n(402))/2*(parseInt(n(416))/3)+parseInt(n(399))/4+parseInt(n(393))/5+-parseInt(n(407))/6*(-parseInt(n(419))/7)+-parseInt(n(394))/8+parseInt(n(395))/9*(-parseInt(n(400))/10))break;r.push(r.shift())}catch(t){r.push(r.shift())}}(d);class p extends t.Plugin{static get[u(417)](){return u(403)}static get[u(413)](){return[u(406),e.Notification,a]}[u(409)](){const t=u,e=this[t(414)],n=e[t(411)][t(401)](t(396))||{};e[t(415)][t(408)](t(396),new c(e));const r=e[t(398)][t(401)](t(406));!1===n[t(418)]?this[t(397)]=null:n[t(418)]?r[t(412)](n[t(418)])[t(405)]((e=>{this[t(397)]=e})):this[t(397)]=r[t(410)]}}function l(t,e){var n=f();return(l=function(t,e){return n[t-=301]})(t,e)}function f(){var t=["19420htZcfl","618764EUJadP","155580UOTzFP","38654gJqxvd","43605iySkYu","64173sdbJgd","2335596aceWyg","360jrTBqu","584kutNij","3LIwCRA","143BrJduu"];return(f=function(){return t})()}!function(t,e){for(var n=l,r=t();;)try{if(207564===parseInt(n(309))/1+-parseInt(n(305))/2*(-parseInt(n(302))/3)+-parseInt(n(304))/4*(parseInt(n(311))/5)+parseInt(n(310))/6+parseInt(n(307))/7*(-parseInt(n(301))/8)+-parseInt(n(308))/9+parseInt(n(306))/10*(parseInt(n(303))/11))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": "41.3.0-alpha.3",
3
+ "version": "41.3.0",
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.3"
33
+ "ckeditor5": "41.3.0"
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 _0x4df85c}from'ckeditor5/src/core.js';import{ButtonView as _0x2953fb,Notification as _0x33bb44,SpinnerView as _0x13a278}from'ckeditor5/src/ui.js';import _0x5f1d4c from'./exportpdfcommand.js';import _0x5e6f5f from'../theme/icons/exportpdf.svg';export default class p extends _0x4df85c{static get['pluginName'](){return'ExportPdf';}static get['requires'](){return['CloudServices',_0x33bb44];}['init'](){const _0x3d52d0=this['editor'],t=_0x3d52d0['t'],_0x196939=_0x3d52d0['config']['get']('exportPdf')||{};_0x3d52d0['commands']['add']('exportPdf',new _0x5f1d4c(_0x3d52d0)),_0x3d52d0['ui']['componentFactory']['add']('exportPdf',_0x5ca657=>{const _0x4f04bc=_0x3d52d0['commands']['get']('exportPdf'),_0x2cab68=new _0x2953fb(_0x5ca657),_0x412ec9=new _0x13a278();return _0x2cab68['set']({'label':t('Export\x20to\x20PDF'),'icon':_0x5e6f5f,'tooltip':!0x0}),_0x2cab68['children']['add'](_0x412ec9),_0x2cab68['bind']('isOn','isEnabled')['to'](_0x4f04bc,'isBusy','isEnabled'),_0x412ec9['bind']('isVisible')['to'](_0x4f04bc,'isBusy'),_0x2cab68['iconView']['bind']('isVisible')['to'](_0x4f04bc,'isBusy',_0x3999e3=>!_0x3999e3),this['listenTo'](_0x2cab68,'execute',()=>{_0x3d52d0['execute']('exportPdf',_0x196939),_0x3d52d0['editing']['view']['focus']();}),_0x2cab68;});const _0x499791=_0x3d52d0['plugins']['get']('CloudServices');!0x1===_0x196939['tokenUrl']?this['_token']=null:_0x196939['tokenUrl']?_0x499791['registerTokenUrl'](_0x196939['tokenUrl'])['then'](_0xc3434e=>{this['_token']=_0xc3434e;}):this['_token']=_0x499791['token'];}}
23
+ const _0x21d6a4=_0x6349;(function(_0x2ea7e8,_0x206e52){const _0x203450=_0x6349,_0x4ede8e=_0x2ea7e8();while(!![]){try{const _0x3cbb83=-parseInt(_0x203450(0x194))/0x1+parseInt(_0x203450(0x192))/0x2*(parseInt(_0x203450(0x1a0))/0x3)+parseInt(_0x203450(0x18f))/0x4+parseInt(_0x203450(0x189))/0x5+-parseInt(_0x203450(0x197))/0x6*(-parseInt(_0x203450(0x1a3))/0x7)+-parseInt(_0x203450(0x18a))/0x8+parseInt(_0x203450(0x18b))/0x9*(-parseInt(_0x203450(0x190))/0xa);if(_0x3cbb83===_0x206e52)break;else _0x4ede8e['push'](_0x4ede8e['shift']());}catch(_0x5781e7){_0x4ede8e['push'](_0x4ede8e['shift']());}}}(_0x5c14,0xddab9));function _0x5c14(){const _0x1a20bb=['token','config','registerTokenUrl','requires','editor','commands','75156eFzfmM','pluginName','tokenUrl','8055194BWMnBq','8414005xlSsIn','6954024BeLwvH','207ewAKAj','exportPdf','_token','plugins','6515408BiGitB','856230XjnMWU','get','26wNVqzA','ExportPdf','1041528vIPPVf','then','CloudServices','6xXTUky','add','init'];_0x5c14=function(){return _0x1a20bb;};return _0x5c14();}import{Plugin as _0x410669}from'ckeditor5/src/core.js';import{Notification as _0xb88791}from'ckeditor5/src/ui.js';function _0x6349(_0xafccf1,_0xdef481){const _0x5c149a=_0x5c14();return _0x6349=function(_0x6349b0,_0x3bdf6c){_0x6349b0=_0x6349b0-0x189;let _0x1f1aad=_0x5c149a[_0x6349b0];return _0x1f1aad;},_0x6349(_0xafccf1,_0xdef481);}import _0xbf2df0 from'./exportpdfcommand.js';import _0x2c6d5d from'./exportpdfui.js';export default class s extends _0x410669{static get[_0x21d6a4(0x1a1)](){const _0x424a72=_0x21d6a4;return _0x424a72(0x193);}static get[_0x21d6a4(0x19d)](){const _0x3b4806=_0x21d6a4;return[_0x3b4806(0x196),_0xb88791,_0x2c6d5d];}[_0x21d6a4(0x199)](){const _0x77557f=_0x21d6a4,_0x563353=this[_0x77557f(0x19e)],_0x4653ad=_0x563353[_0x77557f(0x19b)][_0x77557f(0x191)](_0x77557f(0x18c))||{};_0x563353[_0x77557f(0x19f)][_0x77557f(0x198)](_0x77557f(0x18c),new _0xbf2df0(_0x563353));const _0x5e6cc6=_0x563353[_0x77557f(0x18e)][_0x77557f(0x191)](_0x77557f(0x196));!0x1===_0x4653ad[_0x77557f(0x1a2)]?this[_0x77557f(0x18d)]=null:_0x4653ad[_0x77557f(0x1a2)]?_0x5e6cc6[_0x77557f(0x19c)](_0x4653ad[_0x77557f(0x1a2)])[_0x77557f(0x195)](_0x3f894e=>{const _0x3b5398=_0x77557f;this[_0x3b5398(0x18d)]=_0x3f894e;}):this[_0x77557f(0x18d)]=_0x5e6cc6[_0x77557f(0x19a)];}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Command as _0x3ad7fe}from'ckeditor5/src/core.js';import{getStyles as _0x455516}from'./utils.js';export default class o extends _0x3ad7fe{constructor(_0x56ae83){super(_0x56ae83),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x404ff8={}){const _0x7ecb0a=this['editor'],t=_0x7ecb0a['t'],_0x3fcb2a=_0x404ff8['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x496294=_0x404ff8['dataCallback']||(_0x1b02b7=>_0x1b02b7['data']['get']()),_0x11341d=_0x7ecb0a['plugins']['get']('ExportPdf'),_0x319939=_0x404ff8['token']||_0x11341d['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x455516(_0x404ff8['stylesheets']||['EDITOR_STYLES'])['then'](async _0x19a6b0=>{const _0x2bfded={'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'+_0x7ecb0a['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x496294(_0x7ecb0a)+'\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':_0x19a6b0,'options':_0x404ff8['converterOptions']},_0x128dd6={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x319939?{'Authorization':_0x319939['value']}:null,'x-cs-app-id':_0x404ff8['appID']||'cke5'},'body':JSON['stringify'](_0x2bfded)};return window['fetch'](_0x3fcb2a,_0x128dd6)['then'](_0x267794=>{if(0xc8!==_0x267794['status'])throw _0x267794;return _0x267794['blob']();})['then'](_0x1824ee=>{const _0x49948f='function'==typeof _0x404ff8['fileName']?_0x404ff8['fileName']():_0x404ff8['fileName'];this['_downloadFile'](_0x1824ee,_0x49948f||'document.pdf');});})['catch'](_0x3fdddc=>{throw _0x7ecb0a['plugins']['get']('Notification')['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0x3fdddc;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x5ccc91,_0x26ae4b){const _0x19a0ec=document['createElement']('a');_0x19a0ec['href']=window['URL']['createObjectURL'](_0x5ccc91),_0x19a0ec['download']=_0x26ae4b,_0x19a0ec['click'](),_0x19a0ec['remove']();}}
23
+ import{Command as _0x302481}from'ckeditor5/src/core.js';import{getStyles as _0x507028}from'./utils.js';export default class o extends _0x302481{constructor(_0x499776){super(_0x499776),this['set']('isBusy',!0x1),this['affectsData']=!0x1;}['refresh'](){this['isEnabled']=!this['isBusy'],this['value']=this['isBusy']?'pending':void 0x0;}['execute'](_0x1ce5cc={}){const _0x523da9=this['editor'],t=_0x523da9['t'],_0x311843=_0x1ce5cc['converterUrl']||'https://pdf-converter.cke-cs.com/v1/convert/',_0x55cea3=_0x1ce5cc['dataCallback']||(_0x1b2cf3=>_0x1b2cf3['data']['get']()),_0x4a868f=_0x523da9['plugins']['get']('ExportPdf'),_0x5492d7=_0x1ce5cc['token']||_0x4a868f['_token'];return this['isBusy']=!0x0,this['refresh'](),_0x507028(_0x1ce5cc['stylesheets']||['EDITOR_STYLES'])['then'](async _0x452bf8=>{const _0x2701fa={'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'+_0x523da9['locale']['contentLanguageDirection']+'\x22>\x0a\x09\x09\x09\x09\x09\x09\x09\x09'+await _0x55cea3(_0x523da9)+'\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':_0x452bf8,'options':_0x1ce5cc['converterOptions']},_0x14f92b={'method':'POST','headers':{'Content-Type':'application/json','Accept':'application/pdf',..._0x5492d7?{'Authorization':_0x5492d7['value']}:null,'x-cs-app-id':_0x1ce5cc['appID']||'cke5'},'body':JSON['stringify'](_0x2701fa)};return window['fetch'](_0x311843,_0x14f92b)['then'](_0x45a366=>{if(0xc8!==_0x45a366['status'])throw _0x45a366;return _0x45a366['blob']();})['then'](_0x23fa26=>{const _0x1bc00a='function'==typeof _0x1ce5cc['fileName']?_0x1ce5cc['fileName']():_0x1ce5cc['fileName'];this['_downloadFile'](_0x23fa26,_0x1bc00a||'document.pdf');});})['catch'](_0xae6d5d=>{throw _0x523da9['plugins']['get']('Notification')['showWarning'](t('An\x20error\x20occurred\x20while\x20generating\x20the\x20PDF.')),_0xae6d5d;})['finally'](()=>{this['isBusy']=!0x1,this['refresh']();});}['_downloadFile'](_0x2cd1ab,_0x262f3d){const _0xeaf8d6=document['createElement']('a');_0xeaf8d6['href']=window['URL']['createObjectURL'](_0x2cd1ab),_0xeaf8d6['download']=_0x262f3d,_0xeaf8d6['click'](),_0xeaf8d6['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 _0x1d0923}from'ckeditor5/src/core.js';import{ButtonView as _0x5df30d,MenuBarMenuListItemButtonView as _0x3864ac,SpinnerView as _0x4f5471}from'ckeditor5/src/ui.js';import _0x423a9d from'../theme/icons/exportpdf.svg';export default class i extends _0x1d0923{static get['pluginName'](){return'ExportPdfUI';}['init'](){const _0x17a0ff=this['editor'];_0x17a0ff['ui']['componentFactory']['add']('exportPdf',()=>{const _0x59852a=this['_createButton'](_0x5df30d),_0x44c54d=_0x17a0ff['commands']['get']('exportPdf');return _0x59852a['set']({'tooltip':!0x0}),_0x59852a['bind']('isOn')['to'](_0x44c54d,'isBusy'),_0x59852a;}),_0x17a0ff['ui']['componentFactory']['add']('menuBar:exportPdf',()=>this['_createButton'](_0x3864ac));}['_createButton'](_0x2e2e1a){const _0x220c91=this['editor'],_0x515b14=_0x220c91['config']['get']('exportPdf')||{},t=_0x220c91['locale']['t'],_0x2c2b48=_0x220c91['commands']['get']('exportPdf'),_0x2894db=new _0x2e2e1a(_0x220c91['locale']),_0x57db97=new _0x4f5471();return _0x2894db['children']['add'](_0x57db97),_0x57db97['bind']('isVisible')['to'](_0x2c2b48,'isBusy'),_0x2894db['iconView']['bind']('isVisible')['to'](_0x2c2b48,'isBusy',_0x585bf1=>!_0x585bf1),_0x2894db['set']({'label':t('Export\x20to\x20PDF'),'icon':_0x423a9d}),_0x2894db['bind']('isEnabled')['to'](_0x2c2b48,'isEnabled'),this['listenTo'](_0x2894db,'execute',()=>{_0x220c91['execute']('exportPdf',_0x515b14),_0x220c91['editing']['view']['focus']();}),_0x2894db;}}
package/src/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1ad8(_0x59b710,_0x7afeb2){var _0x33025d=_0x3302();return _0x1ad8=function(_0x1ad8fd,_0x53fb6f){_0x1ad8fd=_0x1ad8fd-0xf3;var _0x2a162c=_0x33025d[_0x1ad8fd];return _0x2a162c;},_0x1ad8(_0x59b710,_0x7afeb2);}(function(_0x71ef68,_0x385dad){var _0x4b2982=_0x1ad8,_0x4e1f37=_0x71ef68();while(!![]){try{var _0x4fc09f=-parseInt(_0x4b2982(0xfc))/0x1+-parseInt(_0x4b2982(0xf9))/0x2*(-parseInt(_0x4b2982(0xf7))/0x3)+-parseInt(_0x4b2982(0xf5))/0x4*(-parseInt(_0x4b2982(0xf6))/0x5)+-parseInt(_0x4b2982(0xf4))/0x6*(-parseInt(_0x4b2982(0xf8))/0x7)+parseInt(_0x4b2982(0xfa))/0x8+-parseInt(_0x4b2982(0xfb))/0x9+-parseInt(_0x4b2982(0xf3))/0xa;if(_0x4fc09f===_0x385dad)break;else _0x4e1f37['push'](_0x4e1f37['shift']());}catch(_0x2e796c){_0x4e1f37['push'](_0x4e1f37['shift']());}}}(_0x3302,0x1db61));export{default as ExportPdf}from'./exportpdf.js';function _0x3302(){var _0x41d653=['287jxeicH','2XsCFtt','755744tbJLGO','220248xscSaR','118266rhNabI','2246740ltHYPX','23550RHyQUy','52anrHwm','30325PTCLrN','464613DxlVht'];_0x3302=function(){return _0x41d653;};return _0x3302();}import'./augmentation.js';
23
+ function _0x4b7f(_0xca9afc,_0x517f05){var _0x24ce8e=_0x24ce();return _0x4b7f=function(_0x4b7f08,_0xcaddc6){_0x4b7f08=_0x4b7f08-0x12d;var _0x247791=_0x24ce8e[_0x4b7f08];return _0x247791;},_0x4b7f(_0xca9afc,_0x517f05);}(function(_0x93abea,_0x1ec846){var _0x4b8f4b=_0x4b7f,_0x4d0955=_0x93abea();while(!![]){try{var _0x2db38f=parseInt(_0x4b8f4b(0x135))/0x1+-parseInt(_0x4b8f4b(0x131))/0x2*(-parseInt(_0x4b8f4b(0x12e))/0x3)+-parseInt(_0x4b8f4b(0x130))/0x4*(parseInt(_0x4b8f4b(0x137))/0x5)+parseInt(_0x4b8f4b(0x136))/0x6+parseInt(_0x4b8f4b(0x133))/0x7*(-parseInt(_0x4b8f4b(0x12d))/0x8)+-parseInt(_0x4b8f4b(0x134))/0x9+parseInt(_0x4b8f4b(0x132))/0xa*(parseInt(_0x4b8f4b(0x12f))/0xb);if(_0x2db38f===_0x1ec846)break;else _0x4d0955['push'](_0x4d0955['shift']());}catch(_0x3c6d7f){_0x4d0955['push'](_0x4d0955['shift']());}}}(_0x24ce,0x32acc));export{default as ExportPdf}from'./exportpdf.js';function _0x24ce(){var _0x330591=['19420htZcfl','618764EUJadP','155580UOTzFP','38654gJqxvd','43605iySkYu','64173sdbJgd','2335596aceWyg','360jrTBqu','584kutNij','3LIwCRA','143BrJduu'];_0x24ce=function(){return _0x330591;};return _0x24ce();}import'./augmentation.js';
package/src/utils.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x1776(){const _0x556e07=['2343FPLyyt','1033713sTQyot','hasAttribute','cssText','3322CGyTJx','fetch','1157741sEaHSD','push','trim','cssRules','length','325619GPHiRx','styleSheets','5017304zgwQQA','text',':root','then','637782fThgJN','120oTDeaE','all','EDITOR_STYLES','10mjbwtY','data-cke','ownerNode','indexOf','6281345eWPNec','warn','join','from','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.','.ck-content'];_0x1776=function(){return _0x556e07;};return _0x1776();}(function(_0x997a1b,_0x3252bd){const _0x31273c=_0x52f9,_0x1e7a4d=_0x997a1b();while(!![]){try{const _0x5e4a01=parseInt(_0x31273c(0x99))/0x1+-parseInt(_0x31273c(0x97))/0x2*(parseInt(_0x31273c(0x93))/0x3)+parseInt(_0x31273c(0xa0))/0x4+-parseInt(_0x31273c(0x8d))/0x5+parseInt(_0x31273c(0x85))/0x6+-parseInt(_0x31273c(0x9e))/0x7*(-parseInt(_0x31273c(0x86))/0x8)+parseInt(_0x31273c(0x94))/0x9*(parseInt(_0x31273c(0x89))/0xa);if(_0x5e4a01===_0x3252bd)break;else _0x1e7a4d['push'](_0x1e7a4d['shift']());}catch(_0x558d77){_0x1e7a4d['push'](_0x1e7a4d['shift']());}}}(_0x1776,0xbdcfa));export function getStyles(_0x1acf9e){const _0x20ce54=_0x52f9;if(!_0x1acf9e)return new Promise(_0x3fe410=>_0x3fe410(''));const _0x5dc872=[];for(const _0x5b7bae of _0x1acf9e)_0x20ce54(0x88)!==_0x5b7bae?_0x5dc872[_0x20ce54(0x9a)](window[_0x20ce54(0x98)](_0x5b7bae)[_0x20ce54(0xa3)](_0x2c6c37=>_0x2c6c37[_0x20ce54(0xa1)]())):_0x5dc872[_0x20ce54(0x9a)](u());return Promise[_0x20ce54(0x87)](_0x5dc872)[_0x20ce54(0xa3)](_0x5a792b=>_0x5a792b[_0x20ce54(0x8f)]('\x20')[_0x20ce54(0x9b)]());}function _0x52f9(_0x2b7617,_0x2b3dc0){const _0x1776b2=_0x1776();return _0x52f9=function(_0x52f949,_0x44981d){_0x52f949=_0x52f949-0x85;let _0x14d906=_0x1776b2[_0x52f949];return _0x14d906;},_0x52f9(_0x2b7617,_0x2b3dc0);}function u(){const _0x53db12=_0x52f9,_0x38e6c3=[],_0x36a3fa=[];for(const _0x1dee87 of Array[_0x53db12(0x90)](document[_0x53db12(0x9f)])){if(_0x1dee87[_0x53db12(0x8b)][_0x53db12(0x95)](_0x53db12(0x8a))){for(const _0x4487c7 of Array[_0x53db12(0x90)](_0x1dee87[_0x53db12(0x9c)]))-0x1!==_0x4487c7[_0x53db12(0x96)][_0x53db12(0x8c)](_0x53db12(0x92))?_0x38e6c3[_0x53db12(0x9a)](_0x4487c7[_0x53db12(0x96)]):-0x1!==_0x4487c7[_0x53db12(0x96)][_0x53db12(0x8c)](_0x53db12(0xa2))&&_0x36a3fa[_0x53db12(0x9a)](_0x4487c7[_0x53db12(0x96)]);}}return _0x38e6c3[_0x53db12(0x9d)]||console[_0x53db12(0x8e)](_0x53db12(0x91)),[..._0x36a3fa,..._0x38e6c3][_0x53db12(0x8f)]('\x20')[_0x53db12(0x9b)]();}
23
+ function _0x2a93(){const _0x2937d8=['1642JGFPXf','then','4640812hDghkw','fetch','push','length','.ck-content','hasAttribute','EDITOR_STYLES','all','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.','cssText','from','4265241agQeSk','ownerNode','text','join','cssRules','96yRxdrJ','2544755Henkoj','4361100yeagei','13245804Vpytjo','warn','indexOf','138600CEcjuz','data-cke','trim',':root','1153omBBSJ','styleSheets'];_0x2a93=function(){return _0x2937d8;};return _0x2a93();}function _0x399b(_0x1cd65b,_0x58c37e){const _0x2a93e3=_0x2a93();return _0x399b=function(_0x399bd8,_0x408fbf){_0x399bd8=_0x399bd8-0x13d;let _0x4e1f77=_0x2a93e3[_0x399bd8];return _0x4e1f77;},_0x399b(_0x1cd65b,_0x58c37e);}(function(_0x154d29,_0x483a71){const _0x3771ef=_0x399b,_0x3079eb=_0x154d29();while(!![]){try{const _0x38c785=-parseInt(_0x3771ef(0x141))/0x1*(parseInt(_0x3771ef(0x143))/0x2)+parseInt(_0x3771ef(0x150))/0x3+-parseInt(_0x3771ef(0x145))/0x4+-parseInt(_0x3771ef(0x156))/0x5+parseInt(_0x3771ef(0x157))/0x6+-parseInt(_0x3771ef(0x13d))/0x7*(parseInt(_0x3771ef(0x155))/0x8)+parseInt(_0x3771ef(0x158))/0x9;if(_0x38c785===_0x483a71)break;else _0x3079eb['push'](_0x3079eb['shift']());}catch(_0x16e7eb){_0x3079eb['push'](_0x3079eb['shift']());}}}(_0x2a93,0xbb40a));export function getStyles(_0x41c2e2){const _0x2332c7=_0x399b;if(!_0x41c2e2)return new Promise(_0x52f911=>_0x52f911(''));const _0x261f74=[];for(const _0x2b17d1 of _0x41c2e2)_0x2332c7(0x14b)!==_0x2b17d1?_0x261f74[_0x2332c7(0x147)](window[_0x2332c7(0x146)](_0x2b17d1)[_0x2332c7(0x144)](_0x2598d4=>_0x2598d4[_0x2332c7(0x152)]())):_0x261f74[_0x2332c7(0x147)](a());return Promise[_0x2332c7(0x14c)](_0x261f74)[_0x2332c7(0x144)](_0x2011cc=>_0x2011cc[_0x2332c7(0x153)]('\x20')[_0x2332c7(0x13f)]());}function a(){const _0x1ef8a3=_0x399b,_0x5c7b19=[],_0x2e5815=[];for(const _0x3cbe1c of Array[_0x1ef8a3(0x14f)](document[_0x1ef8a3(0x142)])){if(_0x3cbe1c[_0x1ef8a3(0x151)][_0x1ef8a3(0x14a)](_0x1ef8a3(0x13e))){for(const _0x5df405 of Array[_0x1ef8a3(0x14f)](_0x3cbe1c[_0x1ef8a3(0x154)]))-0x1!==_0x5df405[_0x1ef8a3(0x14e)][_0x1ef8a3(0x15a)](_0x1ef8a3(0x149))?_0x5c7b19[_0x1ef8a3(0x147)](_0x5df405[_0x1ef8a3(0x14e)]):-0x1!==_0x5df405[_0x1ef8a3(0x14e)][_0x1ef8a3(0x15a)](_0x1ef8a3(0x140))&&_0x2e5815[_0x1ef8a3(0x147)](_0x5df405[_0x1ef8a3(0x14e)]);}}return _0x5c7b19[_0x1ef8a3(0x148)]||console[_0x1ef8a3(0x159)](_0x1ef8a3(0x14d)),[..._0x2e5815,..._0x5c7b19][_0x1ef8a3(0x153)]('\x20')[_0x1ef8a3(0x13f)]();}
@@ -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':_0x1ecccc=>0x1!=_0x1ecccc}};
@@ -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':_0x289cdb=>0x0==_0x289cdb?0x0:0x1==_0x289cdb?0x1:0x2==_0x289cdb?0x2:_0x289cdb%0x64>=0x3&&_0x289cdb%0x64<=0xa?0x3:_0x289cdb%0x64>=0xb&&_0x289cdb%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':_0x5d96f9=>0x1!=_0x5d96f9}};
@@ -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':_0xda7c94=>0x1!=_0xda7c94}};
@@ -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':_0xa5769b=>0x1!=_0xa5769b}};
@@ -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':_0x5726cd=>0x1==_0x5726cd&&_0x5726cd%0x1==0x0?0x0:_0x5726cd>=0x2&&_0x5726cd<=0x4&&_0x5726cd%0x1==0x0?0x1:_0x5726cd%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':_0x59d277=>0x1!=_0x59d277}};
@@ -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':_0x3d0d6b=>0x1!=_0x3d0d6b}};
@@ -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':_0x14b709=>0x1!=_0x14b709}};
@@ -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':_0x737903=>0x1!=_0x737903}};
@@ -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;