@ckeditor/ckeditor5-export-pdf
Version:
Export to PDF feature for CKEditor 5.
23 lines • 4.83 kB
JavaScript
/*
* 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 _0x5e299e=_0x12c2;function _0x12c2(_0x146a8f,_0x1f1ccc){const _0x239ee9=_0x239e();return _0x12c2=function(_0x12c2bf,_0x49a584){_0x12c2bf=_0x12c2bf-0x175;let _0x58ecab=_0x239ee9[_0x12c2bf];return _0x58ecab;},_0x12c2(_0x146a8f,_0x1f1ccc);}(function(_0x56ab21,_0x272bd6){const _0x3b0263=_0x12c2,_0x1cc8ba=_0x56ab21();while(!![]){try{const _0x5d17fa=-parseInt(_0x3b0263(0x181))/0x1*(-parseInt(_0x3b0263(0x188))/0x2)+parseInt(_0x3b0263(0x18d))/0x3*(-parseInt(_0x3b0263(0x195))/0x4)+parseInt(_0x3b0263(0x194))/0x5*(parseInt(_0x3b0263(0x19a))/0x6)+parseInt(_0x3b0263(0x18c))/0x7+parseInt(_0x3b0263(0x176))/0x8*(-parseInt(_0x3b0263(0x185))/0x9)+parseInt(_0x3b0263(0x193))/0xa+-parseInt(_0x3b0263(0x191))/0xb;if(_0x5d17fa===_0x272bd6)break;else _0x1cc8ba['push'](_0x1cc8ba['shift']());}catch(_0x1e0a4a){_0x1cc8ba['push'](_0x1cc8ba['shift']());}}}(_0x239e,0xdeedc));import{Plugin as _0x3db98b}from'ckeditor5/src/core.js';import{IconExportPdf as _0x36d51e}from'ckeditor5/src/icons.js';import{ButtonView as _0x58c1cb,MenuBarMenuListItemButtonView as _0x411306,SpinnerView as _0x58b42e}from'ckeditor5/src/ui.js';function _0x239e(){const _0x3179e6=['21273945hwehuh','iconView','13466990CJlySR','55yTYBKW','65288Yzzdjy','add','Exporting\x20PDF\x20document','isVisible','view','594642wDAbfJ','editor','isEnabled','componentFactory','editing','set','296sjvoaY','config','_createButton','Export\x20to\x20PDF','locale','isPremiumPlugin','get','isOfficialPlugin','label','focus','isOn','544454NffLVj','menuBar:exportPdf','execute','listenTo','46143bjiBpX','bind','pluginName','4SYXPDn','commands','ExportPdfUI','exportPdf','1832866EbHFaE','138bBwpLd','children','init','isBusy'];_0x239e=function(){return _0x3179e6;};return _0x239e();}import{getTranslation as _0x56efdc}from'./utils/common-translations.js';export default class s extends _0x3db98b{static get[_0x5e299e(0x187)](){const _0x429fea=_0x5e299e;return _0x429fea(0x18a);}static get[_0x5e299e(0x17d)](){return!0x0;}static get[_0x5e299e(0x17b)](){return!0x0;}[_0x5e299e(0x18f)](){const _0x21f72a=_0x5e299e,_0x5b9a46=this[_0x21f72a(0x19b)];_0x5b9a46['ui'][_0x21f72a(0x19d)][_0x21f72a(0x196)](_0x21f72a(0x18b),()=>{const _0x4c9c8c=_0x21f72a,_0x4ef5db=this[_0x4c9c8c(0x178)](_0x58c1cb),_0x3c467a=_0x5b9a46[_0x4c9c8c(0x189)][_0x4c9c8c(0x17c)](_0x4c9c8c(0x18b));return _0x4ef5db[_0x4c9c8c(0x175)]({'tooltip':!0x0}),_0x4ef5db[_0x4c9c8c(0x186)](_0x4c9c8c(0x180))['to'](_0x3c467a,_0x4c9c8c(0x190)),_0x4ef5db;}),_0x5b9a46['ui'][_0x21f72a(0x19d)][_0x21f72a(0x196)](_0x21f72a(0x182),()=>this[_0x21f72a(0x178)](_0x411306));}[_0x5e299e(0x178)](_0x373ecf){const _0x6bd0bc=_0x5e299e,_0x10cfc8=this[_0x6bd0bc(0x19b)],_0x368652=_0x10cfc8[_0x6bd0bc(0x177)][_0x6bd0bc(0x17c)](_0x6bd0bc(0x18b))||{},_0x11d652=_0x10cfc8[_0x6bd0bc(0x189)][_0x6bd0bc(0x17c)](_0x6bd0bc(0x18b)),_0x2be34a=new _0x373ecf(_0x10cfc8[_0x6bd0bc(0x17a)]),_0x54806d=new _0x58b42e();return _0x2be34a[_0x6bd0bc(0x18e)][_0x6bd0bc(0x196)](_0x54806d),_0x54806d[_0x6bd0bc(0x186)](_0x6bd0bc(0x198))['to'](_0x11d652,_0x6bd0bc(0x190)),_0x2be34a[_0x6bd0bc(0x192)][_0x6bd0bc(0x186)](_0x6bd0bc(0x198))['to'](_0x11d652,_0x6bd0bc(0x190),_0xfac34a=>!_0xfac34a),_0x2be34a[_0x6bd0bc(0x175)]({'icon':_0x36d51e}),_0x2be34a[_0x6bd0bc(0x186)](_0x6bd0bc(0x19c))['to'](_0x11d652,_0x6bd0bc(0x19c)),_0x2be34a[_0x6bd0bc(0x186)](_0x6bd0bc(0x17e))['to'](_0x11d652,_0x6bd0bc(0x190),_0x5d8f10=>_0x56efdc(_0x10cfc8[_0x6bd0bc(0x17a)],_0x5d8f10?_0x6bd0bc(0x197):_0x6bd0bc(0x179))),this[_0x6bd0bc(0x184)](_0x2be34a,_0x6bd0bc(0x183),()=>{const _0x56cebf=_0x6bd0bc;_0x10cfc8[_0x56cebf(0x183)](_0x56cebf(0x18b),_0x368652),_0x10cfc8[_0x56cebf(0x19e)][_0x56cebf(0x199)][_0x56cebf(0x17f)]();}),_0x2be34a;}}