@ckeditor/ckeditor5-import-word
Version:
Import from Word feature for CKEditor 5.
23 lines • 4.84 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 _0x1f9fdc=_0x1bb1;function _0x1bb1(_0x55d94c,_0x5628a7){const _0xc06674=_0xc066();return _0x1bb1=function(_0x1bb1fc,_0x295d9c){_0x1bb1fc=_0x1bb1fc-0xee;let _0x2eba53=_0xc06674[_0x1bb1fc];return _0x2eba53;},_0x1bb1(_0x55d94c,_0x5628a7);}(function(_0x5e6b9b,_0x283af2){const _0x5ac56f=_0x1bb1,_0x44b2be=_0x5e6b9b();while(!![]){try{const _0x491a2e=parseInt(_0x5ac56f(0x109))/0x1+parseInt(_0x5ac56f(0xfd))/0x2*(-parseInt(_0x5ac56f(0x10a))/0x3)+parseInt(_0x5ac56f(0xf4))/0x4+-parseInt(_0x5ac56f(0xf1))/0x5+parseInt(_0x5ac56f(0xee))/0x6+parseInt(_0x5ac56f(0x116))/0x7+-parseInt(_0x5ac56f(0xf0))/0x8*(parseInt(_0x5ac56f(0xf9))/0x9);if(_0x491a2e===_0x283af2)break;else _0x44b2be['push'](_0x44b2be['shift']());}catch(_0x4c4056){_0x44b2be['push'](_0x44b2be['shift']());}}}(_0xc066,0x1cf4a));function _0xc066(){const _0xacf419=['Importing\x20Word\x20document','isOfficialPlugin','set','isBusy','814989EIBLXb','1134300FdEmhV','ImportWordUI','1832GhRFxy','1049160ygWPOi','editor','view','486212OIhBum','execute','tooltip','application/vnd.openxmlformats-officedocument.wordprocessingml.document,application/vnd.openxmlformats-officedocument.wordprocessingml.template','focus','4383BoSyHv','editing','menuBar:importWord','pluginName','21176VPzPtQ','isPremiumPlugin','isVisible','_createButton','isOn','children','bind','componentFactory','locale','isEnabled','get','done','44691nFEIBr','9sxpwRW','Import\x20from\x20Word','commands','init','add','importWord','iconView','label'];_0xc066=function(){return _0xacf419;};return _0xc066();}import{Plugin as _0x20bae0}from'ckeditor5/src/core.js';import{MenuBarMenuListItemFileDialogButtonView as _0xacc45a,SpinnerView as _0x3f13ea,FileDialogButtonView as _0x4d7385}from'ckeditor5/src/ui.js';import _0x4371c9 from'../theme/icons/importword.svg';import{getTranslation as _0x3d9b4b}from'./utils/common-translations.js';export default class i extends _0x20bae0{static get[_0x1f9fdc(0xfc)](){const _0x2a012f=_0x1f9fdc;return _0x2a012f(0xef);}static get[_0x1f9fdc(0x113)](){return!0x0;}static get[_0x1f9fdc(0xfe)](){return!0x0;}[_0x1f9fdc(0x10d)](){const _0x376a4a=_0x1f9fdc,_0x5c485e=this[_0x376a4a(0xf2)];_0x5c485e['ui'][_0x376a4a(0x104)][_0x376a4a(0x10e)](_0x376a4a(0x10f),()=>{const _0x7cf2ee=_0x376a4a,_0x4e96f8=this[_0x7cf2ee(0x100)](_0x4d7385),_0x3f7958=_0x5c485e[_0x7cf2ee(0x10c)][_0x7cf2ee(0x107)](_0x7cf2ee(0x10f));return _0x4e96f8[_0x7cf2ee(0x103)](_0x7cf2ee(0x101))['to'](_0x3f7958,_0x7cf2ee(0x115)),_0x4e96f8[_0x7cf2ee(0xf6)]=!0x0,_0x4e96f8;}),_0x5c485e['ui'][_0x376a4a(0x104)][_0x376a4a(0x10e)](_0x376a4a(0xfb),()=>this[_0x376a4a(0x100)](_0xacc45a));}[_0x1f9fdc(0x100)](_0x1da4fa){const _0x296d25=_0x1f9fdc,_0x55303d=this[_0x296d25(0xf2)],_0x512036=_0x55303d[_0x296d25(0x10c)][_0x296d25(0x107)](_0x296d25(0x10f)),_0x480eac=new _0x1da4fa(_0x55303d[_0x296d25(0x105)]),_0x37ddd3=new _0x3f13ea();return _0x480eac[_0x296d25(0x114)]({'acceptedType':_0x296d25(0xf7)}),_0x480eac[_0x296d25(0x114)]({'icon':_0x4371c9}),_0x480eac[_0x296d25(0x103)](_0x296d25(0x106))['to'](_0x512036),_0x480eac[_0x296d25(0x103)](_0x296d25(0x111))['to'](_0x512036,_0x296d25(0x115),_0x2fbd2a=>_0x3d9b4b(_0x55303d[_0x296d25(0x105)],_0x2fbd2a?_0x296d25(0x112):_0x296d25(0x10b))),_0x37ddd3[_0x296d25(0x103)](_0x296d25(0xff))['to'](_0x512036,_0x296d25(0x115)),_0x480eac[_0x296d25(0x110)][_0x296d25(0x103)](_0x296d25(0xff))['to'](_0x512036,_0x296d25(0x115),_0x53d9a0=>!_0x53d9a0),_0x480eac[_0x296d25(0x102)][_0x296d25(0x10e)](_0x37ddd3),_0x480eac['on'](_0x296d25(0x108),(_0x56cd04,_0x20c608)=>{const _0x5e9098=_0x296d25;_0x55303d[_0x5e9098(0xf5)](_0x5e9098(0x10f),_0x20c608[0x0],{}),_0x55303d[_0x5e9098(0xfa)][_0x5e9098(0xf3)][_0x5e9098(0xf8)]();}),_0x480eac;}}