UNPKG

@ckeditor/ckeditor5-export-word

Version:

Export to Word feature for CKEditor 5.

23 lines 4.75 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 _0x3f8296=_0x18ae;(function(_0x1ca2bf,_0x2a610c){const _0x4d72c2=_0x18ae,_0x497560=_0x1ca2bf();while(!![]){try{const _0x3a5d5d=-parseInt(_0x4d72c2(0x144))/0x1+parseInt(_0x4d72c2(0x149))/0x2*(parseInt(_0x4d72c2(0x141))/0x3)+parseInt(_0x4d72c2(0x160))/0x4*(parseInt(_0x4d72c2(0x146))/0x5)+-parseInt(_0x4d72c2(0x13d))/0x6+parseInt(_0x4d72c2(0x15c))/0x7+-parseInt(_0x4d72c2(0x155))/0x8+parseInt(_0x4d72c2(0x14c))/0x9;if(_0x3a5d5d===_0x2a610c)break;else _0x497560['push'](_0x497560['shift']());}catch(_0x433629){_0x497560['push'](_0x497560['shift']());}}}(_0x34ba,0xb0964));import{Plugin as _0x59985f}from'ckeditor5/src/core.js';import{IconExportWord as _0x325076}from'ckeditor5/src/icons.js';import{ButtonView as _0x140a13,MenuBarMenuListItemButtonView as _0x293545,SpinnerView as _0x5bb1fa}from'ckeditor5/src/ui.js';function _0x34ba(){const _0x517dd8=['editing','set','view','commands','7786458nOndrz','init','_createButton','focus','744357YzyYAy','config','execute','462114YDoulG','bind','6553765EGuCQQ','get','label','6ANyBGf','editor','pluginName','3962601kUXWnf','children','componentFactory','isOn','isVisible','Exporting\x20Word\x20document','isBusy','Export\x20to\x20Word','iconView','3456760QPsBwr','ExportWordUI','listenTo','isEnabled','exportWord','isOfficialPlugin','menuBar:exportWord','2938971nxPHkS','isPremiumPlugin','locale','add','4kSRtqD'];_0x34ba=function(){return _0x517dd8;};return _0x34ba();}function _0x18ae(_0x50efe0,_0x25989a){const _0x34bae9=_0x34ba();return _0x18ae=function(_0x18aeeb,_0x118c0d){_0x18aeeb=_0x18aeeb-0x13c;let _0x50562d=_0x34bae9[_0x18aeeb];return _0x50562d;},_0x18ae(_0x50efe0,_0x25989a);}import{getTranslation as _0x5c8ed2}from'./utils/common-translations.js';export class ExportWordUI extends _0x59985f{static get[_0x3f8296(0x14b)](){const _0x3903ac=_0x3f8296;return _0x3903ac(0x156);}static get[_0x3f8296(0x15a)](){return!0x0;}static get[_0x3f8296(0x15d)](){return!0x0;}[_0x3f8296(0x13e)](){const _0x888472=_0x3f8296,_0x2bc286=this[_0x888472(0x14a)];_0x2bc286['ui'][_0x888472(0x14e)][_0x888472(0x15f)](_0x888472(0x159),()=>{const _0x25bcd4=_0x888472,_0xdeffa0=_0x2bc286[_0x25bcd4(0x13c)][_0x25bcd4(0x147)](_0x25bcd4(0x159)),_0x412b82=this[_0x25bcd4(0x13f)](_0x140a13);return _0x412b82[_0x25bcd4(0x162)]({'tooltip':!0x0}),_0x412b82[_0x25bcd4(0x145)](_0x25bcd4(0x14f))['to'](_0xdeffa0,_0x25bcd4(0x152)),_0x412b82;}),_0x2bc286['ui'][_0x888472(0x14e)][_0x888472(0x15f)](_0x888472(0x15b),()=>this[_0x888472(0x13f)](_0x293545));}[_0x3f8296(0x13f)](_0x56a8fa){const _0x2f3ecc=_0x3f8296,_0x1d77f8=this[_0x2f3ecc(0x14a)],_0x438756=_0x1d77f8[_0x2f3ecc(0x142)][_0x2f3ecc(0x147)](_0x2f3ecc(0x159))||{},_0x38ea44=_0x1d77f8[_0x2f3ecc(0x13c)][_0x2f3ecc(0x147)](_0x2f3ecc(0x159)),_0xe8d939=new _0x56a8fa(_0x1d77f8[_0x2f3ecc(0x15e)]),_0x399dce=new _0x5bb1fa();return _0xe8d939[_0x2f3ecc(0x14d)][_0x2f3ecc(0x15f)](_0x399dce),_0x399dce[_0x2f3ecc(0x145)](_0x2f3ecc(0x150))['to'](_0x38ea44,_0x2f3ecc(0x152)),_0xe8d939[_0x2f3ecc(0x154)][_0x2f3ecc(0x145)](_0x2f3ecc(0x150))['to'](_0x38ea44,_0x2f3ecc(0x152),_0x2b7ce3=>!_0x2b7ce3),_0xe8d939[_0x2f3ecc(0x162)]({'icon':_0x325076}),_0xe8d939[_0x2f3ecc(0x145)](_0x2f3ecc(0x158))['to'](_0x38ea44,_0x2f3ecc(0x158)),_0xe8d939[_0x2f3ecc(0x145)](_0x2f3ecc(0x148))['to'](_0x38ea44,_0x2f3ecc(0x152),_0x35bdc0=>_0x5c8ed2(_0x1d77f8[_0x2f3ecc(0x15e)],_0x35bdc0?_0x2f3ecc(0x151):_0x2f3ecc(0x153))),this[_0x2f3ecc(0x157)](_0xe8d939,_0x2f3ecc(0x143),()=>{const _0x46668d=_0x2f3ecc;_0x1d77f8[_0x46668d(0x143)](_0x46668d(0x159),_0x438756),_0x1d77f8[_0x46668d(0x161)][_0x46668d(0x163)][_0x46668d(0x140)]();}),_0xe8d939;}}