UNPKG

@ckeditor/ckeditor5-export-pdf

Version:

Export to PDF feature for CKEditor 5.

23 lines 4.76 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 _0x2fd84c=_0x5806;(function(_0x2120db,_0x5c8488){const _0x4324bf=_0x5806,_0x14a460=_0x2120db();while(!![]){try{const _0x2e80f6=-parseInt(_0x4324bf(0xc9))/0x1*(-parseInt(_0x4324bf(0xd1))/0x2)+-parseInt(_0x4324bf(0xbf))/0x3+parseInt(_0x4324bf(0xb4))/0x4*(parseInt(_0x4324bf(0xb7))/0x5)+-parseInt(_0x4324bf(0xb6))/0x6+-parseInt(_0x4324bf(0xc0))/0x7*(parseInt(_0x4324bf(0xca))/0x8)+parseInt(_0x4324bf(0xcf))/0x9*(parseInt(_0x4324bf(0xdc))/0xa)+parseInt(_0x4324bf(0xc3))/0xb;if(_0x2e80f6===_0x5c8488)break;else _0x14a460['push'](_0x14a460['shift']());}catch(_0x5f472b){_0x14a460['push'](_0x14a460['shift']());}}}(_0x2ec5,0x43441));function _0x5806(_0x4d347d,_0x318b86){const _0x2ec5c7=_0x2ec5();return _0x5806=function(_0x5806ed,_0x43fa90){_0x5806ed=_0x5806ed-0xb3;let _0x1da6c0=_0x2ec5c7[_0x5806ed];return _0x1da6c0;},_0x5806(_0x4d347d,_0x318b86);}import{Plugin as _0x35c88b}from'ckeditor5/src/core.js';function _0x2ec5(){const _0x2d3707=['2780436fqQDPV','35quIvap','get','set','iconView','view','pluginName','menuBar:exportPdf','bind','1348668dEGIxA','791hRtnKP','exportPdf','componentFactory','8620887SguJsn','editing','isOn','add','init','editor','52863nzPHNC','4976DVAJxn','listenTo','commands','isOfficialPlugin','children','3260547XrmDJr','execute','2AZWufl','_createButton','focus','config','isBusy','isVisible','label','Export\x20to\x20PDF','ExportPdfUI','locale','isPremiumPlugin','10nRJkNh','isEnabled','34232zXdMRM','Exporting\x20PDF\x20document'];_0x2ec5=function(){return _0x2d3707;};return _0x2ec5();}import{IconExportPdf as _0xd74760}from'ckeditor5/src/icons.js';import{ButtonView as _0x237bbd,MenuBarMenuListItemButtonView as _0xc88c54,SpinnerView as _0x61ba91}from'ckeditor5/src/ui.js';import{getTranslation as _0xa8c8cd}from'./utils/common-translations.js';export class ExportPdfUI extends _0x35c88b{static get[_0x2fd84c(0xbc)](){const _0x3c7e79=_0x2fd84c;return _0x3c7e79(0xd9);}static get[_0x2fd84c(0xcd)](){return!0x0;}static get[_0x2fd84c(0xdb)](){return!0x0;}[_0x2fd84c(0xc7)](){const _0x427e69=_0x2fd84c,_0x3df081=this[_0x427e69(0xc8)];_0x3df081['ui'][_0x427e69(0xc2)][_0x427e69(0xc6)](_0x427e69(0xc1),()=>{const _0xc13976=_0x427e69,_0x3027fd=this[_0xc13976(0xd2)](_0x237bbd),_0x333621=_0x3df081[_0xc13976(0xcc)][_0xc13976(0xb8)](_0xc13976(0xc1));return _0x3027fd[_0xc13976(0xb9)]({'tooltip':!0x0}),_0x3027fd[_0xc13976(0xbe)](_0xc13976(0xc5))['to'](_0x333621,_0xc13976(0xd5)),_0x3027fd;}),_0x3df081['ui'][_0x427e69(0xc2)][_0x427e69(0xc6)](_0x427e69(0xbd),()=>this[_0x427e69(0xd2)](_0xc88c54));}[_0x2fd84c(0xd2)](_0x5a3dd4){const _0x742d2d=_0x2fd84c,_0x1a9bf5=this[_0x742d2d(0xc8)],_0x24e4f0=_0x1a9bf5[_0x742d2d(0xd4)][_0x742d2d(0xb8)](_0x742d2d(0xc1))||{},_0xe53be7=_0x1a9bf5[_0x742d2d(0xcc)][_0x742d2d(0xb8)](_0x742d2d(0xc1)),_0x39b126=new _0x5a3dd4(_0x1a9bf5[_0x742d2d(0xda)]),_0x4c62e5=new _0x61ba91();return _0x39b126[_0x742d2d(0xce)][_0x742d2d(0xc6)](_0x4c62e5),_0x4c62e5[_0x742d2d(0xbe)](_0x742d2d(0xd6))['to'](_0xe53be7,_0x742d2d(0xd5)),_0x39b126[_0x742d2d(0xba)][_0x742d2d(0xbe)](_0x742d2d(0xd6))['to'](_0xe53be7,_0x742d2d(0xd5),_0x437a76=>!_0x437a76),_0x39b126[_0x742d2d(0xb9)]({'icon':_0xd74760}),_0x39b126[_0x742d2d(0xbe)](_0x742d2d(0xb3))['to'](_0xe53be7,_0x742d2d(0xb3)),_0x39b126[_0x742d2d(0xbe)](_0x742d2d(0xd7))['to'](_0xe53be7,_0x742d2d(0xd5),_0x278939=>_0xa8c8cd(_0x1a9bf5[_0x742d2d(0xda)],_0x278939?_0x742d2d(0xb5):_0x742d2d(0xd8))),this[_0x742d2d(0xcb)](_0x39b126,_0x742d2d(0xd0),()=>{const _0x496655=_0x742d2d;_0x1a9bf5[_0x496655(0xd0)](_0x496655(0xc1),_0x24e4f0),_0x1a9bf5[_0x496655(0xc4)][_0x496655(0xbb)][_0x496655(0xd3)]();}),_0x39b126;}}