UNPKG

@ckeditor/ckeditor5-export-pdf

Version:

Export to PDF feature for CKEditor 5.

23 lines 3.72 kB
/* * Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved. * * * * * +---------------------------------------------------------------------------------+ * | | * | Hello stranger! | * | | * | | * | What you're currently looking at is the source code of a legally protected, | * | proprietary software. Any attempts to deobfuscate / disassemble this code | * | are forbidden and will result in legal consequences. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x1ee596=_0x1f48;(function(_0x3e6ffc,_0x533fd5){const _0x1d670a=_0x1f48,_0x189eff=_0x3e6ffc();while(!![]){try{const _0x1c8185=-parseInt(_0x1d670a(0x127))/0x1*(parseInt(_0x1d670a(0x112))/0x2)+-parseInt(_0x1d670a(0x125))/0x3*(-parseInt(_0x1d670a(0x116))/0x4)+-parseInt(_0x1d670a(0x10f))/0x5*(parseInt(_0x1d670a(0x12a))/0x6)+-parseInt(_0x1d670a(0x11b))/0x7*(-parseInt(_0x1d670a(0x128))/0x8)+parseInt(_0x1d670a(0x11f))/0x9+-parseInt(_0x1d670a(0x123))/0xa+-parseInt(_0x1d670a(0x119))/0xb*(-parseInt(_0x1d670a(0x11d))/0xc);if(_0x1c8185===_0x533fd5)break;else _0x189eff['push'](_0x189eff['shift']());}catch(_0x5e40d4){_0x189eff['push'](_0x189eff['shift']());}}}(_0x4535,0x33a50));function _0x4535(){const _0x237053=['pluginName','init','add','5rkERmL','exportPdf','plugins','83842DnHXgT','config','_token','tokenUrl','244OAvDGX','isPremiumPlugin','requires','4350016IXMODd','token','514297taLpkg','ExportPdf','12xIGydQ','then','105435gxNNSS','isOfficialPlugin','commands','CloudServices','1284970cSRAto','editor','4635yynpvB','registerTokenUrl','9DbGSeg','32ZdNLJh','get','467868xdhpQB'];_0x4535=function(){return _0x237053;};return _0x4535();}import{Plugin as _0x2f2392}from'ckeditor5/src/core.js';import{Notification as _0x2097cd}from'ckeditor5/src/ui.js';import{ExportPdfCommand as _0x202aa9}from'./exportpdfcommand.js';function _0x1f48(_0x3288d5,_0x8d8988){const _0x45356f=_0x4535();return _0x1f48=function(_0x1f48c8,_0x44cfbc){_0x1f48c8=_0x1f48c8-0x10f;let _0x2719d1=_0x45356f[_0x1f48c8];return _0x2719d1;},_0x1f48(_0x3288d5,_0x8d8988);}import{ExportPdfUI as _0x18cf39}from'./exportpdfui.js';export class ExportPdf extends _0x2f2392{[_0x1ee596(0x114)];static get[_0x1ee596(0x12b)](){const _0x5cdb57=_0x1ee596;return _0x5cdb57(0x11c);}static get[_0x1ee596(0x120)](){return!0x0;}static get[_0x1ee596(0x117)](){return!0x0;}static get[_0x1ee596(0x118)](){const _0xfb5d57=_0x1ee596;return[_0xfb5d57(0x122),_0x2097cd,_0x18cf39];}[_0x1ee596(0x12c)](){const _0x3fcc18=_0x1ee596,_0x5c0621=this[_0x3fcc18(0x124)],_0x553235=_0x5c0621[_0x3fcc18(0x113)][_0x3fcc18(0x129)](_0x3fcc18(0x110))||{};_0x5c0621[_0x3fcc18(0x121)][_0x3fcc18(0x12d)](_0x3fcc18(0x110),new _0x202aa9(_0x5c0621));const _0x21c3f9=_0x5c0621[_0x3fcc18(0x111)][_0x3fcc18(0x129)](_0x3fcc18(0x122));!0x1===_0x553235[_0x3fcc18(0x115)]?this[_0x3fcc18(0x114)]=null:_0x553235[_0x3fcc18(0x115)]?_0x21c3f9[_0x3fcc18(0x126)](_0x553235[_0x3fcc18(0x115)])[_0x3fcc18(0x11e)](_0x558ef7=>{const _0x7e990d=_0x3fcc18;this[_0x7e990d(0x114)]=_0x558ef7;}):this[_0x3fcc18(0x114)]=_0x21c3f9[_0x3fcc18(0x11a)];}}