UNPKG

@ckeditor/ckeditor5-track-changes

Version:

CKEditor 5 track changes plugin.

23 lines 5.93 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 _0x12935e=_0x16ee;(function(_0xe16f6,_0x4820f4){const _0xd1d2df=_0x16ee,_0x5f3937=_0xe16f6();while(!![]){try{const _0x2dbc92=-parseInt(_0xd1d2df(0x189))/0x1*(parseInt(_0xd1d2df(0x15a))/0x2)+parseInt(_0xd1d2df(0x178))/0x3*(-parseInt(_0xd1d2df(0x15d))/0x4)+-parseInt(_0xd1d2df(0x15e))/0x5*(parseInt(_0xd1d2df(0x166))/0x6)+-parseInt(_0xd1d2df(0x177))/0x7+parseInt(_0xd1d2df(0x18d))/0x8*(parseInt(_0xd1d2df(0x173))/0x9)+-parseInt(_0xd1d2df(0x183))/0xa+parseInt(_0xd1d2df(0x160))/0xb*(parseInt(_0xd1d2df(0x17d))/0xc);if(_0x2dbc92===_0x4820f4)break;else _0x5f3937['push'](_0x5f3937['shift']());}catch(_0x49e7c1){_0x5f3937['push'](_0x5f3937['shift']());}}}(_0x25af,0x712ea));import{Plugin as _0x6ad4aa}from'ckeditor5/src/core.js';import{getTranslation as _0x1b7546}from'../utils/common-translations.js';function _0x16ee(_0x10bde6,_0x7409b1){const _0x25afb3=_0x25af();return _0x16ee=function(_0x16eec4,_0x10819c){_0x16eec4=_0x16eec4-0x154;let _0xe9ccf0=_0x25afb3[_0x16eec4];return _0xe9ccf0;},_0x16ee(_0x10bde6,_0x7409b1);}function _0x25af(){const _0x24686a=['author','commandParams','getColumnGroupElement','1aArgAC','plugins','editor','Users','56hAwswk','has','markBlockFormat','getSuggestionCallback','handleResizeTableWidthCommand','tableWidth','format','1006qlxTRr','registerDescriptionCallback','subType','112gQJGWW','15DEMsaW','get','5027iCGILX','document','getSelectedElement','afterInit','descriptionFactory','getSuggestions','1712304eVuBRu','columnWidths','handleSuggestionDescription','formatBlock','getContainedElement','selection','TableColumnResizeEditing','model','discard','resizeTable','data','type','accept','1057716ulbsuK','getTableColumnsWidths','TrackChangesEditing','getAttribute','5357268GzrXUI','33315MpYrIk','formatInline','registerCustomCallback','*Format:*\x20resize\x20table','_suggestionFactory','42456vXDfqp','change','table','resizeTableWidth','enableCommand','bind','430210gvJIUr','formatGroupId','locale'];_0x25af=function(){return _0x24686a;};return _0x25af();}export class TrackChangesTableColumnResize extends _0x6ad4aa{[_0x12935e(0x163)](){const _0x14ab35=_0x12935e;if(!this[_0x14ab35(0x18b)][_0x14ab35(0x18a)][_0x14ab35(0x154)](_0x14ab35(0x16c)))return;const _0x4622d5=this[_0x14ab35(0x18b)][_0x14ab35(0x18a)][_0x14ab35(0x15f)](_0x14ab35(0x175));_0x4622d5[_0x14ab35(0x181)](_0x14ab35(0x180),this[_0x14ab35(0x157)][_0x14ab35(0x182)](this)),_0x4622d5[_0x14ab35(0x17c)][_0x14ab35(0x17a)](_0x14ab35(0x169),_0x14ab35(0x16f),_0x14ab35(0x172),_0x4622d5[_0x14ab35(0x17c)][_0x14ab35(0x156)](_0x14ab35(0x169),null,_0x14ab35(0x16e))),_0x4622d5[_0x14ab35(0x17c)][_0x14ab35(0x17a)](_0x14ab35(0x169),_0x14ab35(0x16f),_0x14ab35(0x16e),_0x4622d5[_0x14ab35(0x17c)][_0x14ab35(0x156)](_0x14ab35(0x169),null,_0x14ab35(0x172))),_0x4622d5[_0x14ab35(0x164)][_0x14ab35(0x15b)](this[_0x14ab35(0x168)][_0x14ab35(0x182)](this));}[_0x12935e(0x157)](_0x524600,_0x502029){const _0x1cb379=_0x12935e,_0x23b5c1=this[_0x1cb379(0x18b)][_0x1cb379(0x18a)][_0x1cb379(0x15f)](_0x1cb379(0x175)),_0x4f4e89=this[_0x1cb379(0x18b)][_0x1cb379(0x18a)][_0x1cb379(0x15f)](_0x1cb379(0x16c)),_0x1e7761=_0x502029[_0x1cb379(0x17f)]||this[_0x1cb379(0x18b)][_0x1cb379(0x16d)][_0x1cb379(0x161)][_0x1cb379(0x16b)][_0x1cb379(0x162)]();this[_0x1cb379(0x18b)][_0x1cb379(0x16d)][_0x1cb379(0x17e)](()=>{const _0x124d68=_0x1cb379,_0x45e187=_0x4f4e89[_0x124d68(0x188)](_0x1e7761);let _0x2221cb=_0x45e187?_0x4f4e89[_0x124d68(0x174)](_0x45e187):null,_0x31ed51=_0x1e7761[_0x124d68(0x176)](_0x124d68(0x158))||null;const _0x431fac=_0x502029[_0x124d68(0x158)]||_0x31ed51,_0x3af74d=_0x502029[_0x124d68(0x167)]||_0x2221cb,_0x282ee4=this[_0x124d68(0x18b)][_0x124d68(0x18a)][_0x124d68(0x15f)](_0x124d68(0x18c))['me'];for(const _0x4c80ae of _0x23b5c1[_0x124d68(0x165)]()){const _0x456afe=_0x4c80ae[_0x124d68(0x16a)]();if(_0x124d68(0x16f)===_0x4c80ae[_0x124d68(0x15c)]&&_0x456afe===_0x1e7761){_0x4c80ae[_0x124d68(0x186)]!==_0x282ee4&&_0x4c80ae[_0x124d68(0x16e)]();const _0x5afab3=_0x4c80ae[_0x124d68(0x170)][_0x124d68(0x187)];_0x31ed51=_0x5afab3[0x0][_0x124d68(0x158)],_0x2221cb=_0x5afab3[0x0][_0x124d68(0x167)];break;}}_0x524600({'table':_0x1e7761,'tableWidth':_0x431fac,'columnWidths':_0x3af74d}),_0x23b5c1[_0x124d68(0x155)](_0x1e7761,{'commandName':_0x124d68(0x180),'commandParams':[{'tableWidth':_0x31ed51,'columnWidths':_0x2221cb}],'formatGroupId':_0x124d68(0x16f)},[],_0x124d68(0x16f));});}[_0x12935e(0x168)](_0x51e63d){const _0x23c733=_0x12935e;if(_0x23c733(0x169)!=_0x51e63d[_0x23c733(0x171)]&&_0x23c733(0x179)!=_0x51e63d[_0x23c733(0x171)])return;const {data:_0x5b969a}=_0x51e63d;if(_0x5b969a&&_0x23c733(0x16f)===_0x5b969a[_0x23c733(0x184)]){const _0x5dd101=_0x23c733(0x17b);return{'type':_0x23c733(0x159),'content':_0x1b7546(this[_0x23c733(0x18b)][_0x23c733(0x185)],_0x5dd101)};}}}