UNPKG

@ckeditor/ckeditor5-export-pdf

Version:

Export to PDF feature for CKEditor 5.

23 lines 4.76 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. | * | | * | | * +---------------------------------------------------------------------------------+ * * * * */ const _0x4fbe1f=_0x1e40;(function(_0xc23201,_0x74ffab){const _0x3ad929=_0x1e40,_0x3958c0=_0xc23201();while(!![]){try{const _0x97dec0=parseInt(_0x3ad929(0xcf))/0x1*(-parseInt(_0x3ad929(0xda))/0x2)+parseInt(_0x3ad929(0xb4))/0x3+parseInt(_0x3ad929(0xce))/0x4+parseInt(_0x3ad929(0xca))/0x5+-parseInt(_0x3ad929(0xc7))/0x6*(parseInt(_0x3ad929(0xb3))/0x7)+parseInt(_0x3ad929(0xb5))/0x8*(-parseInt(_0x3ad929(0xd8))/0x9)+-parseInt(_0x3ad929(0xc1))/0xa*(-parseInt(_0x3ad929(0xbd))/0xb);if(_0x97dec0===_0x74ffab)break;else _0x3958c0['push'](_0x3958c0['shift']());}catch(_0x163c48){_0x3958c0['push'](_0x3958c0['shift']());}}}(_0x57fc,0x35522));import{Plugin as _0x5a51af}from'ckeditor5/src/core.js';function _0x1e40(_0x4f5816,_0x352b03){const _0x57fc27=_0x57fc();return _0x1e40=function(_0x1e408e,_0x54490f){_0x1e408e=_0x1e408e-0xb2;let _0x2659ee=_0x57fc27[_0x1e408e];return _0x2659ee;},_0x1e40(_0x4f5816,_0x352b03);}import{IconExportPdf as _0x5b8221}from'ckeditor5/src/icons.js';import{ButtonView as _0x272fbb,MenuBarMenuListItemButtonView as _0x2479ab,SpinnerView as _0x303135}from'ckeditor5/src/ui.js';function _0x57fc(){const _0x12ff0d=['ExportPdfUI','config','add','7312613qJHNxW','isOfficialPlugin','_createButton','isPremiumPlugin','10hKBaRC','children','editor','pluginName','view','isEnabled','50874daIAdT','execute','editing','1427525eeXGuX','componentFactory','set','Export\x20to\x20PDF','943524GtvlMG','24191bMvFSE','bind','isBusy','get','label','exportPdf','focus','init','isOn','9JnLYjO','iconView','34vNDUnb','locale','Exporting\x20PDF\x20document','217QSSRik','246726TDYqXL','3007304WLiEYV','listenTo','isVisible','menuBar:exportPdf','commands'];_0x57fc=function(){return _0x12ff0d;};return _0x57fc();}import{getTranslation as _0x98d0b8}from'./utils/common-translations.js';export default class s extends _0x5a51af{static get[_0x4fbe1f(0xc4)](){const _0x270910=_0x4fbe1f;return _0x270910(0xba);}static get[_0x4fbe1f(0xbe)](){return!0x0;}static get[_0x4fbe1f(0xc0)](){return!0x0;}[_0x4fbe1f(0xd6)](){const _0x362130=_0x4fbe1f,_0x1d815b=this[_0x362130(0xc3)];_0x1d815b['ui'][_0x362130(0xcb)][_0x362130(0xbc)](_0x362130(0xd4),()=>{const _0x4c5f47=_0x362130,_0x1f789e=this[_0x4c5f47(0xbf)](_0x272fbb),_0x30bf87=_0x1d815b[_0x4c5f47(0xb9)][_0x4c5f47(0xd2)](_0x4c5f47(0xd4));return _0x1f789e[_0x4c5f47(0xcc)]({'tooltip':!0x0}),_0x1f789e[_0x4c5f47(0xd0)](_0x4c5f47(0xd7))['to'](_0x30bf87,_0x4c5f47(0xd1)),_0x1f789e;}),_0x1d815b['ui'][_0x362130(0xcb)][_0x362130(0xbc)](_0x362130(0xb8),()=>this[_0x362130(0xbf)](_0x2479ab));}[_0x4fbe1f(0xbf)](_0x37cb23){const _0x5d6918=_0x4fbe1f,_0x48a067=this[_0x5d6918(0xc3)],_0x5c9dcf=_0x48a067[_0x5d6918(0xbb)][_0x5d6918(0xd2)](_0x5d6918(0xd4))||{},_0x250443=_0x48a067[_0x5d6918(0xb9)][_0x5d6918(0xd2)](_0x5d6918(0xd4)),_0x136beb=new _0x37cb23(_0x48a067[_0x5d6918(0xdb)]),_0x51f3cb=new _0x303135();return _0x136beb[_0x5d6918(0xc2)][_0x5d6918(0xbc)](_0x51f3cb),_0x51f3cb[_0x5d6918(0xd0)](_0x5d6918(0xb7))['to'](_0x250443,_0x5d6918(0xd1)),_0x136beb[_0x5d6918(0xd9)][_0x5d6918(0xd0)](_0x5d6918(0xb7))['to'](_0x250443,_0x5d6918(0xd1),_0xf6b2f7=>!_0xf6b2f7),_0x136beb[_0x5d6918(0xcc)]({'icon':_0x5b8221}),_0x136beb[_0x5d6918(0xd0)](_0x5d6918(0xc6))['to'](_0x250443,_0x5d6918(0xc6)),_0x136beb[_0x5d6918(0xd0)](_0x5d6918(0xd3))['to'](_0x250443,_0x5d6918(0xd1),_0x52d786=>_0x98d0b8(_0x48a067[_0x5d6918(0xdb)],_0x52d786?_0x5d6918(0xb2):_0x5d6918(0xcd))),this[_0x5d6918(0xb6)](_0x136beb,_0x5d6918(0xc8),()=>{const _0x4281cc=_0x5d6918;_0x48a067[_0x4281cc(0xc8)](_0x4281cc(0xd4),_0x5c9dcf),_0x48a067[_0x4281cc(0xc9)][_0x4281cc(0xc5)][_0x4281cc(0xd5)]();}),_0x136beb;}}