UNPKG

@ckeditor/ckeditor5-export-pdf

Version:

Export to PDF feature for CKEditor 5.

23 lines 3.63 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 _0x1b80ce=_0x3efe;(function(_0x8eb8aa,_0x3a6b48){const _0x5c46f6=_0x3efe,_0x587993=_0x8eb8aa();while(!![]){try{const _0x1676ce=parseInt(_0x5c46f6(0x1df))/0x1*(-parseInt(_0x5c46f6(0x1e9))/0x2)+parseInt(_0x5c46f6(0x1da))/0x3*(parseInt(_0x5c46f6(0x1db))/0x4)+parseInt(_0x5c46f6(0x1e4))/0x5+parseInt(_0x5c46f6(0x1e7))/0x6+parseInt(_0x5c46f6(0x1ed))/0x7+-parseInt(_0x5c46f6(0x1ec))/0x8*(parseInt(_0x5c46f6(0x1e3))/0x9)+-parseInt(_0x5c46f6(0x1dd))/0xa;if(_0x1676ce===_0x3a6b48)break;else _0x587993['push'](_0x587993['shift']());}catch(_0x13c5b4){_0x587993['push'](_0x587993['shift']());}}}(_0x9909,0x3c3b7));function _0x3efe(_0x11fea4,_0x4d4644){const _0x99098e=_0x9909();return _0x3efe=function(_0x3efe86,_0x5b6d5a){_0x3efe86=_0x3efe86-0x1d4;let _0x504ac9=_0x99098e[_0x3efe86];return _0x504ac9;},_0x3efe(_0x11fea4,_0x4d4644);}import{Plugin as _0x31fe45}from'ckeditor5/src/core.js';import{Notification as _0x2b1f8d}from'ckeditor5/src/ui.js';import{ExportPdfCommand as _0x193e72}from'./exportpdfcommand.js';import{ExportPdfUI as _0x387e4d}from'./exportpdfui.js';export class ExportPdf extends _0x31fe45{[_0x1b80ce(0x1f0)];static get[_0x1b80ce(0x1e0)](){const _0x9fd073=_0x1b80ce;return _0x9fd073(0x1e2);}static get[_0x1b80ce(0x1de)](){return!0x0;}static get[_0x1b80ce(0x1e5)](){return!0x0;}static get[_0x1b80ce(0x1ea)](){const _0x31f9fd=_0x1b80ce;return[_0x31f9fd(0x1d7),_0x2b1f8d,_0x387e4d];}[_0x1b80ce(0x1e1)](){const _0x41f789=_0x1b80ce,_0x431fe9=this[_0x41f789(0x1ef)],_0x39351e=_0x431fe9[_0x41f789(0x1ee)][_0x41f789(0x1e8)](_0x41f789(0x1dc))||{};_0x431fe9[_0x41f789(0x1d9)][_0x41f789(0x1d6)](_0x41f789(0x1dc),new _0x193e72(_0x431fe9));const _0x22cef7=_0x431fe9[_0x41f789(0x1d4)][_0x41f789(0x1e8)](_0x41f789(0x1d7));!0x1===_0x39351e[_0x41f789(0x1e6)]?this[_0x41f789(0x1f0)]=null:_0x39351e[_0x41f789(0x1e6)]?_0x22cef7[_0x41f789(0x1eb)](_0x39351e[_0x41f789(0x1e6)])[_0x41f789(0x1d8)](_0x82eba1=>{const _0x2689a1=_0x41f789;this[_0x2689a1(0x1f0)]=_0x82eba1;}):this[_0x41f789(0x1f0)]=_0x22cef7[_0x41f789(0x1d5)];}}function _0x9909(){const _0x5478d9=['1522010tYgqcY','isPremiumPlugin','tokenUrl','1011402yCyuUW','get','36tyUZlx','requires','registerTokenUrl','8eYEzfM','3212363UySdXw','config','editor','_token','plugins','token','add','CloudServices','then','commands','316578bvvIZn','16bADntq','exportPdf','8205760HIUTLB','isOfficialPlugin','1409rmoyHv','pluginName','init','ExportPdf','2351997JsagMv'];_0x9909=function(){return _0x5478d9;};return _0x9909();}