UNPKG

@ckeditor/ckeditor5-export-pdf

Version:

Export to PDF feature for CKEditor 5.

23 lines 4.92 kB
/* * Copyright (c) 2003-2025, 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ function _0x1de5(_0x37373a,_0x521262){const _0x4d621a=_0x4d62();return _0x1de5=function(_0x1de565,_0x2c453f){_0x1de565=_0x1de565-0x14a;let _0x4717dd=_0x4d621a[_0x1de565];return _0x4717dd;},_0x1de5(_0x37373a,_0x521262);}const _0x4f49fd=_0x1de5;(function(_0x43990a,_0x16623b){const _0x409cf5=_0x1de5,_0x292032=_0x43990a();while(!![]){try{const _0x1a984a=parseInt(_0x409cf5(0x170))/0x1*(parseInt(_0x409cf5(0x15e))/0x2)+-parseInt(_0x409cf5(0x16c))/0x3*(-parseInt(_0x409cf5(0x155))/0x4)+parseInt(_0x409cf5(0x174))/0x5*(parseInt(_0x409cf5(0x173))/0x6)+parseInt(_0x409cf5(0x14b))/0x7*(-parseInt(_0x409cf5(0x14f))/0x8)+-parseInt(_0x409cf5(0x156))/0x9+-parseInt(_0x409cf5(0x16e))/0xa*(-parseInt(_0x409cf5(0x162))/0xb)+parseInt(_0x409cf5(0x15c))/0xc*(-parseInt(_0x409cf5(0x158))/0xd);if(_0x1a984a===_0x16623b)break;else _0x292032['push'](_0x292032['shift']());}catch(_0x340ccb){_0x292032['push'](_0x292032['shift']());}}}(_0x4d62,0x4fd96));import{Plugin as _0x5e1891}from'ckeditor5/src/core.js';import{IconExportPdf as _0x343471}from'ckeditor5/src/icons.js';import{ButtonView as _0x5a2b17,MenuBarMenuListItemButtonView as _0x16176d,SpinnerView as _0x136e7d}from'ckeditor5/src/ui.js';import{getTranslation as _0x15b934}from'./utils/common-translations.js';export class ExportPdfUI extends _0x5e1891{static get[_0x4f49fd(0x16a)](){const _0x3286ac=_0x4f49fd;return _0x3286ac(0x171);}static get[_0x4f49fd(0x163)](){return!0x0;}static get[_0x4f49fd(0x152)](){return!0x0;}[_0x4f49fd(0x161)](){const _0x71453b=_0x4f49fd,_0x1bcca3=this[_0x71453b(0x172)];_0x1bcca3['ui'][_0x71453b(0x160)][_0x71453b(0x16f)](_0x71453b(0x159),()=>{const _0x2d7f3c=_0x71453b,_0x3be4c4=this[_0x2d7f3c(0x153)](_0x5a2b17),_0x36e7b6=_0x1bcca3[_0x2d7f3c(0x157)][_0x2d7f3c(0x14a)](_0x2d7f3c(0x159));return _0x3be4c4[_0x2d7f3c(0x168)]({'tooltip':!0x0}),_0x3be4c4[_0x2d7f3c(0x167)](_0x2d7f3c(0x15f))['to'](_0x36e7b6,_0x2d7f3c(0x14d)),_0x3be4c4;}),_0x1bcca3['ui'][_0x71453b(0x160)][_0x71453b(0x16f)](_0x71453b(0x154),()=>this[_0x71453b(0x153)](_0x16176d));}[_0x4f49fd(0x153)](_0x4b6a1d){const _0x7ee908=_0x4f49fd,_0x124c26=this[_0x7ee908(0x172)],_0x1d29f9=_0x124c26[_0x7ee908(0x165)][_0x7ee908(0x14a)](_0x7ee908(0x159))||{},_0x271a7e=_0x124c26[_0x7ee908(0x157)][_0x7ee908(0x14a)](_0x7ee908(0x159)),_0x599363=new _0x4b6a1d(_0x124c26[_0x7ee908(0x151)]),_0x36ab15=new _0x136e7d();return _0x599363[_0x7ee908(0x150)][_0x7ee908(0x16f)](_0x36ab15),_0x36ab15[_0x7ee908(0x167)](_0x7ee908(0x16d))['to'](_0x271a7e,_0x7ee908(0x14d)),_0x599363[_0x7ee908(0x15d)][_0x7ee908(0x167)](_0x7ee908(0x16d))['to'](_0x271a7e,_0x7ee908(0x14d),_0x554bf1=>!_0x554bf1),_0x599363[_0x7ee908(0x168)]({'icon':_0x343471}),_0x599363[_0x7ee908(0x167)](_0x7ee908(0x164))['to'](_0x271a7e,_0x7ee908(0x164)),_0x599363[_0x7ee908(0x167)](_0x7ee908(0x169))['to'](_0x271a7e,_0x7ee908(0x14d),_0x1c5c56=>_0x15b934(_0x124c26[_0x7ee908(0x151)],_0x1c5c56?_0x7ee908(0x14e):_0x7ee908(0x14c))),this[_0x7ee908(0x15b)](_0x599363,_0x7ee908(0x166),()=>{const _0x5bc93f=_0x7ee908;_0x124c26[_0x5bc93f(0x166)](_0x5bc93f(0x159),_0x1d29f9),_0x124c26[_0x5bc93f(0x175)][_0x5bc93f(0x15a)][_0x5bc93f(0x16b)]();}),_0x599363;}}function _0x4d62(){const _0x30eb79=['exportPdf','view','listenTo','36tafhOD','iconView','48aMcGoW','isOn','componentFactory','init','154sPcZjQ','isOfficialPlugin','isEnabled','config','execute','bind','set','label','pluginName','focus','3XdQrvo','isVisible','407830xJhDph','add','34brYaFc','ExportPdfUI','editor','521742EUJFRo','5WcjOtS','editing','get','8659ysmkfo','Export\x20to\x20PDF','isBusy','Exporting\x20PDF\x20document','488BzbHnl','children','locale','isPremiumPlugin','_createButton','menuBar:exportPdf','120264uwbNvY','279216QYEheg','commands','1106118LxGObC'];_0x4d62=function(){return _0x30eb79;};return _0x4d62();}