@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230711.0 → 0.0.0-nightly-20230712.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4725=['ListPropertiesEditing','createRange','editor','enableCommand','handleListStyleCommand','config','ListUtils','has','startIndex','unshift','length','map','getFirstPosition','forward','backward','reversed','handleListStartCommand','filter','get','listReversed','parent','listItem','document','createPositionAt','bind','list.properties','change','TrackChangesEditing','element','listStart','listType','registerDescriptionCallback','handleListReversedCommand','toUpperCase','_getTranslationKeyForListStyle','_getSuggestionBlocksForListStyle','_descriptionFactory','getAttribute','commandParams','markMultiRangeBlockFormat','from','handleDescriptions','before','ELEMENT_','listStyle','model','numbered','replace','getListTypeFromListStyleType','selection','*Change\x20to:*\x20%0','type','getSelectedBlocks','_getSuggestionBlocks','getSiblingNodes','styles','plugins','commandName','locale','format'];(function(_0x5f57c8,_0x47257e){const _0xc1e08a=function(_0x156084){while(--_0x156084){_0x5f57c8['push'](_0x5f57c8['shift']());}};_0xc1e08a(++_0x47257e);}(_0x4725,0x1f4));const _0xc1e0=function(_0x5f57c8,_0x47257e){_0x5f57c8=_0x5f57c8-0x0;let _0xc1e08a=_0x4725[_0x5f57c8];return _0xc1e08a;};import{Plugin as _0x274975}from'ckeditor5/src/core';import{getTranslation as _0x4083e3}from'../utils/common-translations';export default class nt extends _0x274975{['afterInit'](){if(!this[_0xc1e0('0x2a')][_0xc1e0('0x24')][_0xc1e0('0x2f')](_0xc1e0('0x28')))return;const _0xa6f4a5=this['editor'][_0xc1e0('0x2d')][_0xc1e0('0x3a')](_0xc1e0('0x5')),_0x597424=this[_0xc1e0('0x2a')][_0xc1e0('0x24')][_0xc1e0('0x3a')](_0xc1e0('0x7'));_0xa6f4a5[_0xc1e0('0x23')]&&_0x597424[_0xc1e0('0x2b')](_0xc1e0('0x18'),this['handleListStyleCommand'][_0xc1e0('0x4')](this)),_0xa6f4a5['reversed']&&_0x597424[_0xc1e0('0x2b')]('listReversed',this[_0xc1e0('0xc')][_0xc1e0('0x4')](this)),_0xa6f4a5['startIndex']&&_0x597424[_0xc1e0('0x2b')](_0xc1e0('0x9'),this[_0xc1e0('0x38')][_0xc1e0('0x4')](this)),_0x597424[_0xc1e0('0x10')][_0xc1e0('0xb')](this[_0xc1e0('0x15')]['bind'](this));}[_0xc1e0('0x2c')](_0x5ab753,_0x369be8={}){const _0x1a7dbe=this['editor'][_0xc1e0('0x24')][_0xc1e0('0x3a')](_0xc1e0('0x7')),_0x14fa97=this[_0xc1e0('0xf')]();this[_0xc1e0('0x2a')][_0xc1e0('0x19')][_0xc1e0('0x6')](()=>{_0x1a7dbe[_0xc1e0('0x13')](_0x14fa97,{'commandName':_0xc1e0('0x18'),'commandParams':[{'type':_0x369be8[_0xc1e0('0x1f')]}],'formatGroupId':'listStyle'});});}[_0xc1e0('0xc')](_0x3728e8,_0x395e6b={}){const _0x5736f8=this[_0xc1e0('0x2a')][_0xc1e0('0x24')][_0xc1e0('0x3a')](_0xc1e0('0x7')),_0x9f55e7=this[_0xc1e0('0x21')](_0x4cca15=>_0x4cca15['is']('element',_0xc1e0('0x1'))&&_0xc1e0('0x1a')===_0x4cca15[_0xc1e0('0x11')](_0xc1e0('0xa')));if(_0x9f55e7[_0xc1e0('0x32')]<0x1)return;const _0x2c398c=_0x9f55e7[_0xc1e0('0x33')](_0x31f7b9=>this[_0xc1e0('0x2a')][_0xc1e0('0x19')][_0xc1e0('0x29')](this[_0xc1e0('0x2a')][_0xc1e0('0x19')]['createPositionAt'](_0x31f7b9,_0xc1e0('0x16')),this[_0xc1e0('0x2a')]['model']['createPositionAt'](_0x31f7b9,0x0)));this[_0xc1e0('0x2a')][_0xc1e0('0x19')][_0xc1e0('0x6')](()=>{_0x5736f8[_0xc1e0('0x13')](_0x2c398c,{'commandName':_0xc1e0('0x3b'),'commandParams':[{'reversed':_0x395e6b[_0xc1e0('0x37')]}],'formatGroupId':'listReversed'});});}[_0xc1e0('0x38')](_0x236977,_0x2c4d07={}){const _0xac0937=this[_0xc1e0('0x2a')][_0xc1e0('0x24')]['get']('TrackChangesEditing'),_0x4e6f23=this[_0xc1e0('0x21')](_0x2247dd=>_0x2247dd['is'](_0xc1e0('0x8'),_0xc1e0('0x1'))&&_0xc1e0('0x1a')===_0x2247dd[_0xc1e0('0x11')](_0xc1e0('0xa')));if(_0x4e6f23[_0xc1e0('0x32')]<0x1)return;const _0x1cf08f=_0x4e6f23[_0xc1e0('0x33')](_0x2ee44f=>this[_0xc1e0('0x2a')][_0xc1e0('0x19')]['createRange'](this[_0xc1e0('0x2a')][_0xc1e0('0x19')]['createPositionAt'](_0x2ee44f,_0xc1e0('0x16')),this[_0xc1e0('0x2a')][_0xc1e0('0x19')][_0xc1e0('0x3')](_0x2ee44f,0x0)));this[_0xc1e0('0x2a')][_0xc1e0('0x19')][_0xc1e0('0x6')](()=>{_0xac0937[_0xc1e0('0x13')](_0x1cf08f,{'commandName':_0xc1e0('0x9'),'commandParams':[{'startIndex':_0x2c4d07[_0xc1e0('0x30')]}],'formatGroupId':'listStart'});});}[_0xc1e0('0x15')](_0x3730ea){const _0x57e923=this[_0xc1e0('0x2a')][_0xc1e0('0x26')],{data:_0x1b308c}=_0x3730ea;if(!_0x1b308c)return;let _0xffeba4,_0x1f28bd;switch(_0x1b308c[_0xc1e0('0x25')]){case _0xc1e0('0x18'):_0xffeba4=_0xc1e0('0x1e'),_0x1f28bd={'type':_0xc1e0('0x27'),'content':_0x4083e3(_0x57e923,_0xffeba4,_0x4083e3(_0x57e923,this[_0xc1e0('0xe')](_0x1b308c[_0xc1e0('0x12')][0x0][_0xc1e0('0x1f')])))};break;case'listReversed':_0xffeba4=_0x1b308c[_0xc1e0('0x12')][0x0]['reversed']?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x1f28bd={'type':_0xc1e0('0x27'),'content':_0x4083e3(_0x57e923,_0xffeba4)};break;case'listStart':_0xffeba4='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x1f28bd={'type':_0xc1e0('0x27'),'content':_0x4083e3(_0x57e923,_0xffeba4,_0x1b308c['commandParams'][0x0][_0xc1e0('0x30')])};}return _0x1f28bd;}['_getSuggestionBlocksForListStyle'](){var _0x1588a5,_0x3f4954,_0x5e9614,_0x3c2093;const _0x45fe91=this[_0xc1e0('0x2a')][_0xc1e0('0x24')][_0xc1e0('0x3a')](_0xc1e0('0x2e'));let _0x500b08=Array[_0xc1e0('0x14')](this[_0xc1e0('0x2a')]['model']['document']['selection'][_0xc1e0('0x20')]());return(null===(_0x1588a5=_0x500b08[0x0])||void 0x0===_0x1588a5?void 0x0:_0x1588a5['is'](_0xc1e0('0x8'),'listItem'))&&_0x500b08[_0xc1e0('0x31')](..._0x45fe91['getSiblingNodes'](this['editor'][_0xc1e0('0x19')][_0xc1e0('0x2')][_0xc1e0('0x1d')][_0xc1e0('0x34')](),_0xc1e0('0x36'))),(null===(_0x3f4954=_0x500b08[_0x500b08[_0xc1e0('0x32')]-0x1])||void 0x0===_0x3f4954?void 0x0:_0x3f4954['is'](_0xc1e0('0x8'),_0xc1e0('0x1')))&&_0x500b08['push'](..._0x45fe91[_0xc1e0('0x22')](this[_0xc1e0('0x2a')][_0xc1e0('0x19')][_0xc1e0('0x2')][_0xc1e0('0x1d')]['getLastPosition'](),_0xc1e0('0x35'))),_0x500b08=[...new Set(_0x500b08)],(null===(_0x3c2093=null===(_0x5e9614=this['editor'][_0xc1e0('0x19')][_0xc1e0('0x2')]['selection'][_0xc1e0('0x34')]())||void 0x0===_0x5e9614?void 0x0:_0x5e9614[_0xc1e0('0x0')])||void 0x0===_0x3c2093?void 0x0:_0x3c2093['is']('element',_0xc1e0('0x1')))&&(_0x500b08=_0x500b08[_0xc1e0('0x39')](_0x304b33=>_0x304b33['is'](_0xc1e0('0x8'),_0xc1e0('0x1')))),_0x500b08;}['_getSuggestionBlocks'](_0x662c17){const _0x5c919f=this[_0xc1e0('0x2a')][_0xc1e0('0x24')][_0xc1e0('0x3a')](_0xc1e0('0x2e'));let _0x141e3f=Array[_0xc1e0('0x14')](this[_0xc1e0('0x2a')][_0xc1e0('0x19')][_0xc1e0('0x2')][_0xc1e0('0x1d')][_0xc1e0('0x20')]())['filter'](_0x662c17)[_0xc1e0('0x33')](_0x2cb444=>{const _0x39e30a=this[_0xc1e0('0x2a')]['model']['createPositionAt'](_0x2cb444,0x0);return[..._0x5c919f[_0xc1e0('0x22')](_0x39e30a,'backward'),..._0x5c919f[_0xc1e0('0x22')](_0x39e30a,_0xc1e0('0x35'))];})['flat']();return _0x141e3f=[...new Set(_0x141e3f)],_0x141e3f;}[_0xc1e0('0xe')](_0x25555f){return _0xc1e0('0x17')+this[_0xc1e0('0x2a')][_0xc1e0('0x24')][_0xc1e0('0x3a')]('ListUtils')[_0xc1e0('0x1c')](_0x25555f)['toUpperCase']()+'_LIST_'+_0x25555f[_0xc1e0('0xd')]()[_0xc1e0('0x1b')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5f00=['downcastDispatcher','get','media','high','afterInit','mediaEmbed','options','attribute:url:media','stop','has','conversion','createEmptyElement','registerElementLabel','for','ELEMENT_MEDIA','elementToElement','showSuggestionHighlights','data','MediaEmbedEditing','_descriptionFactory'];(function(_0x10c517,_0x5f0060){const _0x25a93e=function(_0x51d192){while(--_0x51d192){_0x10c517['push'](_0x10c517['shift']());}};_0x25a93e(++_0x5f0060);}(_0x5f00,0xaa));const _0x25a9=function(_0x10c517,_0x5f0060){_0x10c517=_0x10c517-0x0;let _0x25a93e=_0x5f00[_0x10c517];return _0x25a93e;};import{Plugin as _0x394b4a}from'ckeditor5/src/core';import{getTranslation as _0x2cafb1}from'../utils/common-translations';export default class ot extends _0x394b4a{[_0x25a9('0xe')](){const _0x9f4945=this['editor'];if(!_0x9f4945['plugins'][_0x25a9('0x13')](_0x25a9('0x8')))return;const _0x44c807=_0x9f4945['plugins'][_0x25a9('0xb')]('TrackChangesEditing'),_0x40d3c8=_0x9f4945['locale'];_0x44c807['enableCommand'](_0x25a9('0xf')),_0x44c807[_0x25a9('0x9')][_0x25a9('0x2')](_0x25a9('0xc'),_0x270266=>_0x2cafb1(_0x40d3c8,_0x25a9('0x4'),_0x270266)),_0x9f4945[_0x25a9('0x0')][_0x25a9('0x3')]('dataDowncast')[_0x25a9('0x5')]({'model':_0x25a9('0xc'),'view':(_0x4f7885,{writer:_0x8267af,options:_0x24c1c1})=>{if(_0x24c1c1[_0x25a9('0x6')])return _0x8267af[_0x25a9('0x1')]('div');},'converterPriority':_0x25a9('0xd')}),_0x9f4945[_0x25a9('0x7')][_0x25a9('0xa')]['on'](_0x25a9('0x11'),(_0x55e6b4,_0x5ecfbf,_0x4d37ae)=>{_0x4d37ae[_0x25a9('0x10')]['showSuggestionHighlights']&&_0x55e6b4[_0x25a9('0x12')]();},{'priority':_0x25a9('0xd')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fef=['plugins','TrackChangesEditing','afterInit','get','has','editor','enableCommand'];(function(_0x5df53b,_0x1fef5d){const _0x10e8a4=function(_0x2e6cec){while(--_0x2e6cec){_0x5df53b['push'](_0x5df53b['shift']());}};_0x10e8a4(++_0x1fef5d);}(_0x1fef,0x7c));const _0x10e8=function(_0x5df53b,_0x1fef5d){_0x5df53b=_0x5df53b-0x0;let _0x10e8a4=_0x1fef[_0x5df53b];return _0x10e8a4;};import{Plugin as _0x4763c3}from'ckeditor5/src/core';export default class rt extends _0x4763c3{[_0x10e8('0x4')](){const _0x3c42d6=this[_0x10e8('0x0')];_0x3c42d6[_0x10e8('0x2')][_0x10e8('0x6')]('MentionEditing')&&_0x3c42d6[_0x10e8('0x2')][_0x10e8('0x5')](_0x10e8('0x3'))[_0x10e8('0x1')]('mention');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4dd9=['enableCommand','pageBreak','PageBreakEditing','_descriptionFactory','editor','ELEMENT_PAGE_BREAK','has','plugins','get','afterInit','locale','registerElementLabel','TrackChangesEditing'];(function(_0x2719c0,_0x4dd9c2){const _0x442312=function(_0x7fdc4d){while(--_0x7fdc4d){_0x2719c0['push'](_0x2719c0['shift']());}};_0x442312(++_0x4dd9c2);}(_0x4dd9,0x108));const _0x4423=function(_0x2719c0,_0x4dd9c2){_0x2719c0=_0x2719c0-0x0;let _0x442312=_0x4dd9[_0x2719c0];return _0x442312;};import{Plugin as _0x17ee06}from'ckeditor5/src/core';import{getTranslation as _0x5ce4f8}from'../utils/common-translations';export default class at extends _0x17ee06{[_0x4423('0x5')](){const _0x17b9f8=this[_0x4423('0x0')];if(!_0x17b9f8[_0x4423('0x3')][_0x4423('0x2')](_0x4423('0xb')))return;_0x17b9f8[_0x4423('0x3')][_0x4423('0x4')](_0x4423('0x8'))[_0x4423('0x9')](_0x4423('0xa'));const _0x131dc3=_0x17b9f8['plugins'][_0x4423('0x4')]('TrackChangesEditing'),_0x169c75=_0x17b9f8[_0x4423('0x6')];_0x131dc3[_0x4423('0xc')][_0x4423('0x7')](_0x4423('0xa'),_0xe2741c=>_0x5ce4f8(_0x169c75,_0x4423('0x1'),_0xe2741c));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2337=['document','getFirstRange','schema','end','mapper','registerDescriptionCallback','markerRange','filter','includes','nodeAfter','data','ELEMENT_PARAGRAPH','checkChild','locale','editor','editing','afterInit','Paragraph','_descriptionFactory','start','selection','markerName','*Change\x20to:*\x20%0','ck-suggestion-marker--active','options','span','from','addMarker:suggestion:insertion','get','highest','insertParagraph','insert','getItemLabel','bindElementToMarker','activeMarkers','type','has','insertion','isTouching','blockName','plugins','enableCommand','downcastDispatcher','*Insert:*\x20%0','commandName','showSuggestionHighlights','markBlockFormat','parent','isObject','model','writer','isBlock','isLimit','change','name','paragraph'];(function(_0x57f84b,_0x2337ff){const _0x8cdc26=function(_0x16caf4){while(--_0x16caf4){_0x57f84b['push'](_0x57f84b['shift']());}};_0x8cdc26(++_0x2337ff);}(_0x2337,0x1d5));const _0x8cdc=function(_0x57f84b,_0x2337ff){_0x57f84b=_0x57f84b-0x0;let _0x8cdc26=_0x2337[_0x57f84b];return _0x8cdc26;};import{Plugin as _0x49b05b}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x1750b8}from'./utils';import{getTranslation as _0x2c3884}from'../utils/common-translations';export default class ct extends _0x49b05b{[_0x8cdc('0x33')](){const _0x5e3fe8=this['editor'];if(!_0x5e3fe8[_0x8cdc('0x13')][_0x8cdc('0xf')](_0x8cdc('0x34')))return;const _0x4076b1=_0x5e3fe8[_0x8cdc('0x30')],_0x475d28=_0x5e3fe8[_0x8cdc('0x13')][_0x8cdc('0x7')]('TrackChangesEditing');_0x475d28[_0x8cdc('0x35')]['registerElementLabel'](_0x8cdc('0x22'),_0x464c56=>_0x2c3884(_0x4076b1,_0x8cdc('0x2e'),_0x464c56)),_0x475d28[_0x8cdc('0x14')](_0x8cdc('0x22'),(_0x89981c,_0x3ff178={})=>{const _0x36e113=_0x5e3fe8[_0x8cdc('0x1c')][_0x8cdc('0x23')],_0x2f6214=_0x3ff178[_0x8cdc('0x37')]||_0x36e113['selection'],_0x5ca2e0=Array[_0x8cdc('0x5')](_0x2f6214['getSelectedBlocks']())[_0x8cdc('0x2a')](_0x1821ca=>function(_0x4c9239,_0x1aa274){return _0x1aa274[_0x8cdc('0x2f')](_0x4c9239[_0x8cdc('0x1a')],_0x8cdc('0x22'))&&!_0x1aa274[_0x8cdc('0x1b')](_0x4c9239)&&_0x8cdc('0x22')!=_0x4c9239[_0x8cdc('0x21')];}(_0x1821ca,this[_0x8cdc('0x31')]['model'][_0x8cdc('0x25')]));_0x5e3fe8[_0x8cdc('0x1c')][_0x8cdc('0x20')](()=>{for(const _0xb46430 of _0x5ca2e0)_0x475d28[_0x8cdc('0x19')](_0xb46430,{'commandName':'paragraph','commandParams':[],'formatGroupId':_0x8cdc('0x12')},_0x1750b8(_0xb46430));});}),_0x475d28[_0x8cdc('0x35')]['registerDescriptionCallback'](_0x1a0a7a=>{const {data:_0x30272b}=_0x1a0a7a;if(_0x30272b&&'paragraph'==_0x30272b[_0x8cdc('0x17')])return{'type':'format','content':_0x2c3884(_0x4076b1,_0x8cdc('0x1'),_0x2c3884(_0x4076b1,_0x8cdc('0x2e')))};}),_0x475d28[_0x8cdc('0x14')](_0x8cdc('0x9')),_0x5e3fe8[_0x8cdc('0x32')]['downcastDispatcher']['on'](_0x8cdc('0x6'),ar(_0x5e3fe8),{'priority':_0x8cdc('0x8')}),_0x5e3fe8[_0x8cdc('0x2d')][_0x8cdc('0x15')]['on'](_0x8cdc('0x6'),(_0x401d38,_0x4496e1,_0x57cb84)=>{_0x57cb84[_0x8cdc('0x3')][_0x8cdc('0x18')]&&ar(_0x5e3fe8,{'showActiveMarker':!0x1})(_0x401d38,_0x4496e1,_0x57cb84);},{'priority':_0x8cdc('0x8')});const _0x536583=_0x475d28['_descriptionFactory'];_0x536583[_0x8cdc('0x28')](_0x44a5d6=>{if(_0x8cdc('0x10')!==_0x44a5d6[_0x8cdc('0xe')])return;const {start:_0xdabf13,end:_0x326a57}=_0x44a5d6[_0x8cdc('0x24')]();if(!_0xdabf13[_0x8cdc('0x11')](_0x326a57)||!_0xdabf13[_0x8cdc('0x2c')])return;const _0x1573d2=_0x5e3fe8[_0x8cdc('0x1c')][_0x8cdc('0x25')],_0x1a2a85=_0xdabf13[_0x8cdc('0x2c')];return _0x1573d2[_0x8cdc('0x1e')](_0x1a2a85)&&!_0x1573d2[_0x8cdc('0x1f')](_0x1a2a85)&&_0x1573d2[_0x8cdc('0x2f')](_0x1a2a85,'$text')?{'type':_0x8cdc('0x10'),'content':_0x2c3884(_0x4076b1,_0x8cdc('0x16'),_0x536583[_0x8cdc('0xb')](_0x1a2a85,0x1))}:void 0x0;});}}function ar(_0x22869b,{showActiveMarker:_0x416571=!0x0}={}){return(_0x456f17,_0x42582c,_0xc5b706)=>{const _0x2a8689=_0x22869b[_0x8cdc('0x13')][_0x8cdc('0x7')]('TrackChangesEditing'),_0x24cff0=_0x42582c[_0x8cdc('0x29')][_0x8cdc('0x36')],_0x4a9975=_0x42582c[_0x8cdc('0x29')][_0x8cdc('0x26')],_0xe46380=_0x22869b[_0x8cdc('0x1c')]['schema'];if(!_0x24cff0[_0x8cdc('0x11')](_0x4a9975)||!_0x24cff0[_0x8cdc('0x2c')])return;const _0x30ffe7=_0x24cff0[_0x8cdc('0x2c')];if(_0xe46380[_0x8cdc('0x1e')](_0x30ffe7)&&!_0xe46380[_0x8cdc('0x1f')](_0x30ffe7)&&_0xe46380['checkChild'](_0x30ffe7,'$text')){if(!_0xc5b706['consumable']['consume'](_0x42582c[_0x8cdc('0x29')],_0x456f17[_0x8cdc('0x21')]))return;const _0x4c48bd=_0xc5b706[_0x8cdc('0x1d')]['createUIElement'](_0x8cdc('0x4'),{'class':'ck-suggestion-marker-split'}),_0x54e9b6=_0xc5b706[_0x8cdc('0x27')]['toViewPosition'](_0x4a9975);_0x416571&&_0x2a8689[_0x8cdc('0xd')][_0x8cdc('0x2b')](_0x42582c[_0x8cdc('0x0')])&&_0xc5b706['writer']['addClass'](_0x8cdc('0x2'),_0x4c48bd),_0xc5b706['writer'][_0x8cdc('0xa')](_0x54e9b6,_0x4c48bd),_0xc5b706[_0x8cdc('0x27')][_0x8cdc('0xc')](_0x4c48bd,_0x42582c[_0x8cdc('0x0')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1d9e=['_descriptionFactory','schema','removeFormat','afterInit','isFormatting','selection','commandName','getAttributeProperties','document','has','*Remove\x20all\x20formatting*','model','isCollapsed','RemoveFormatEditing','change','plugins','registerDescriptionCallback','from','get','format','locale','enableCommand','getItems'];(function(_0x37a005,_0x1d9e7f){const _0x1844ee=function(_0x1b72fe){while(--_0x1b72fe){_0x37a005['push'](_0x37a005['shift']());}};_0x1844ee(++_0x1d9e7f);}(_0x1d9e,0x14d));const _0x1844=function(_0x37a005,_0x1d9e7f){_0x37a005=_0x37a005-0x0;let _0x1844ee=_0x1d9e[_0x37a005];return _0x1844ee;};import{Plugin as _0x5b7820}from'ckeditor5/src/core';import{getTranslation as _0x4e3024}from'../utils/common-translations';export default class ht extends _0x5b7820{[_0x1844('0xf')](){const _0x1e20fc=this['editor'];if(!_0x1e20fc[_0x1844('0x4')][_0x1844('0x15')](_0x1844('0x2')))return;const _0x4459da=_0x1e20fc[_0x1844('0x4')][_0x1844('0x7')]('TrackChangesEditing');_0x4459da[_0x1844('0xa')](_0x1844('0xe'),_0x1b21d5=>{const _0x1e7055=_0x1e20fc['model'][_0x1844('0x14')][_0x1844('0x11')];_0x1e7055[_0x1844('0x1')]?_0x1b21d5():_0x1e20fc[_0x1844('0x0')][_0x1844('0x3')](()=>{const _0x28b8ae=Array[_0x1844('0x6')](_0x1e7055['getRanges']());for(const _0x4faa46 of _0x28b8ae)for(const _0x173f57 of _0x4faa46[_0x1844('0xb')]())eo(_0x173f57,_0x1e20fc[_0x1844('0x0')][_0x1844('0xd')])&&_0x4459da['markInlineFormat'](_0x1e20fc[_0x1844('0x0')]['createRangeOn'](_0x173f57),{'commandName':'removeFormat','commandParams':[]});});}),_0x4459da[_0x1844('0xc')][_0x1844('0x5')](_0x550b32=>{const {data:_0x407aa6}=_0x550b32;if(_0x407aa6&&_0x1844('0xe')==_0x407aa6[_0x1844('0x12')])return{'type':_0x1844('0x8'),'content':_0x4e3024(_0x1e20fc[_0x1844('0x9')],_0x1844('0x16'))};});}}function eo(_0x35c8af,_0x15c021){for(const [_0x2df2f1]of _0x35c8af['getAttributes']()){const _0x62cb61=_0x15c021[_0x1844('0x13')](_0x2df2f1);if(_0x62cb61&&_0x62cb61[_0x1844('0x10')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2e2a=['acceptAllSuggestions','discardSuggestion','goToNextRestrictedEditingException','enableCommand','editor','trackChanges','plugins','has','goToPreviousRestrictedEditingException','get','RestrictedEditingModeEditing'];(function(_0x2b7cb9,_0x2e2acf){const _0x22f479=function(_0xde4d6){while(--_0xde4d6){_0x2b7cb9['push'](_0x2b7cb9['shift']());}};_0x22f479(++_0x2e2acf);}(_0x2e2a,0x11a));const _0x22f4=function(_0x2b7cb9,_0x2e2acf){_0x2b7cb9=_0x2b7cb9-0x0;let _0x22f479=_0x2e2a[_0x2b7cb9];return _0x22f479;};import{Plugin as _0x1b9528}from'ckeditor5/src/core';export default class ut extends _0x1b9528{['afterInit'](){const _0x97cdaa=this[_0x22f4('0x8')];if(!_0x97cdaa[_0x22f4('0xa')][_0x22f4('0x0')](_0x22f4('0x3')))return;const _0x2b5084=_0x97cdaa['plugins'][_0x22f4('0x2')]('TrackChangesEditing');_0x2b5084[_0x22f4('0x7')](_0x22f4('0x1')),_0x2b5084[_0x22f4('0x7')](_0x22f4('0x6'));const _0x55786c=_0x97cdaa[_0x22f4('0xa')][_0x22f4('0x2')](_0x22f4('0x3'));_0x55786c[_0x22f4('0x7')](_0x22f4('0x9')),_0x55786c[_0x22f4('0x7')]('acceptSuggestion'),_0x55786c[_0x22f4('0x7')](_0x22f4('0x5')),_0x55786c[_0x22f4('0x7')](_0x22f4('0x4')),_0x55786c[_0x22f4('0x7')]('discardAllSuggestions'),_0x55786c[_0x22f4('0x7')]('acceptSelectedSuggestions'),_0x55786c[_0x22f4('0x7')]('discardSelectedSuggestions');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x454e=['enableCommand','locale','softBreak','merge','getItems','activeMarkers','init','markerRange','model','span','editing','mapper','get','insert','element','data','consumable','downcastDispatcher','shiftEnter','plugins','markerName','createPositionBefore','requires','_descriptionFactory','split','options','addMarker:suggestion:insertion','writer'];(function(_0x43e136,_0x454eeb){const _0x115ced=function(_0x4d0694){while(--_0x4d0694){_0x43e136['push'](_0x43e136['shift']());}};_0x115ced(++_0x454eeb);}(_0x454e,0x181));const _0x115c=function(_0x43e136,_0x454eeb){_0x43e136=_0x43e136-0x0;let _0x115ced=_0x454e[_0x43e136];return _0x115ced;};import{Plugin as _0x572052}from'ckeditor5/src/core';import{ShiftEnter as _0x3973ca}from'ckeditor5/src/enter';import{getTranslation as _0x295511}from'../utils/common-translations';export default class ft extends _0x572052{static get[_0x115c('0x1')](){return[_0x3973ca];}[_0x115c('0xd')](){const _0x4324e5=this['editor'],_0x2c331f=_0x4324e5['plugins']['get']('TrackChangesEditing');_0x2c331f[_0x115c('0x7')](_0x115c('0x19')),_0x4324e5[_0x115c('0x11')][_0x115c('0x18')]['on'](_0x115c('0x5'),re(_0x4324e5),{'priority':'high'}),_0x4324e5[_0x115c('0x11')]['downcastDispatcher']['on']('addMarker:suggestion:deletion',re(_0x4324e5),{'priority':'high'}),_0x4324e5[_0x115c('0x16')][_0x115c('0x18')]['on']('addMarker:suggestion',(_0x349ef5,_0x14c240,_0x6e60bd)=>{_0x6e60bd[_0x115c('0x4')]['showSuggestionHighlights']&&re(_0x4324e5,{'showActiveMarker':!0x1})(_0x349ef5,_0x14c240,_0x6e60bd);}),_0x2c331f[_0x115c('0x2')]['registerElementLabel'](_0x115c('0x9'),_0x1c5b7d=>_0x295511(_0x4324e5[_0x115c('0x8')],'ELEMENT_LINE_BREAK',_0x1c5b7d));}}function re(_0x55c5d4,{showActiveMarker:_0x2b0d5d=!0x0}={}){return(_0x261688,_0x38b596,_0x54f979)=>{const _0x76fd39=_0x55c5d4[_0x115c('0x1a')][_0x115c('0x13')]('TrackChangesEditing');if(!_0x54f979[_0x115c('0x17')]['test'](_0x38b596[_0x115c('0xe')],_0x261688['name']))return;const _0x1422ef=_0x55c5d4[_0x115c('0xf')];for(const _0x57d172 of _0x38b596['markerRange'][_0x115c('0xb')]()){if(!_0x57d172['is'](_0x115c('0x15'),_0x115c('0x9')))continue;const _0x30e71c='deletion'==_0x38b596['markerName']['split'](':')[0x1]?_0x115c('0xa'):_0x115c('0x3'),_0x968c8d=_0x54f979['writer']['createUIElement'](_0x115c('0x10'),{'class':'ck-suggestion-marker-'+_0x30e71c}),_0x437a95=_0x54f979['mapper']['toViewPosition'](_0x1422ef[_0x115c('0x0')](_0x57d172));_0x2b0d5d&&_0x76fd39[_0x115c('0xc')]['includes'](_0x38b596['markerName'])&&_0x54f979[_0x115c('0x6')]['addClass']('ck-suggestion-marker--active',_0x968c8d),_0x54f979[_0x115c('0x6')][_0x115c('0x14')](_0x437a95,_0x968c8d),_0x54f979[_0x115c('0x12')]['bindElementToMarker'](_0x968c8d,_0x38b596[_0x115c('0x1b')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x9a55=['forceValue','FORMAT_RESTRICTED_ENABLED','locale','getRanges','markInlineFormat','value','commandName','editor','restrictedEditingException','StandardEditingModeEditing','has','plugins','registerDescriptionCallback','format','isCollapsed','selection','TrackChangesEditing','_descriptionFactory','model','enableCommand','get','commands'];(function(_0x343199,_0x9a55dc){const _0x173885=function(_0x52306b){while(--_0x52306b){_0x343199['push'](_0x343199['shift']());}};_0x173885(++_0x9a55dc);}(_0x9a55,0x13f));const _0x1738=function(_0x343199,_0x9a55dc){_0x343199=_0x343199-0x0;let _0x173885=_0x9a55[_0x343199];return _0x173885;};import{Plugin as _0x1be535}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x4c6af1}from'./utils';import{getTranslation as _0x5c50b4}from'../utils/common-translations';export default class lt extends _0x1be535{['afterInit'](){const _0x596094=this[_0x1738('0x12')],_0x1f8040=_0x596094[_0x1738('0x7')],_0xe4ed92=_0x596094[_0x1738('0xd')];if(!_0x596094[_0x1738('0x0')][_0x1738('0x15')](_0x1738('0x14')))return;const _0x6d2c62=_0x596094['plugins']['get'](_0x1738('0x5')),_0x2a06b2=_0x1738('0x13'),_0x3d1d19=_0x596094[_0x1738('0xa')][_0x1738('0x9')](_0x2a06b2);_0x6d2c62[_0x1738('0x8')](_0x2a06b2,(_0x415f7e,_0x3ef416={})=>{const _0x346c97=_0x1f8040['document'][_0x1738('0x4')];if(_0x346c97[_0x1738('0x3')])return void _0x415f7e(_0x3ef416);const _0x58fdb4=void 0x0!==_0x3ef416['forceValue']?_0x3ef416[_0x1738('0xb')]:!_0x3d1d19[_0x1738('0x10')];_0x1f8040['change'](()=>{const _0x2ee16a=Array['from'](_0x346c97[_0x1738('0xe')]());for(const _0x1d0971 of _0x2ee16a){const _0x5065fb=_0x58fdb4?[_0x1d0971]:_0x4c6af1(_0x2a06b2,_0x1d0971,_0x1f8040);for(const _0x10972e of _0x5065fb)_0x6d2c62[_0x1738('0xf')](_0x10972e,{'commandName':_0x2a06b2,'commandParams':[{'forceValue':_0x58fdb4}]});}});}),_0x6d2c62[_0x1738('0x6')][_0x1738('0x1')](_0x386a0c=>{const {data:_0x456763}=_0x386a0c;if(_0x456763&&_0x456763[_0x1738('0x11')]==_0x2a06b2)return _0x456763['commandParams'][0x0][_0x1738('0xb')]?{'type':_0x1738('0x2'),'content':_0x5c50b4(_0xe4ed92,_0x1738('0xc'))}:{'type':_0x1738('0x2'),'content':_0x5c50b4(_0xe4ed92,'FORMAT_RESTRICTED_DISABLED')};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x79ed=['commands','editor','document','block','markBlockFormat','locale','getItems','name','enableCommand','change','getAncestors','*Format:*\x20%0','isBlock','element','markInlineFormat','selection','StyleUtils','modelElements','getSelectedBlocks','_descriptionFactory','classes','includes','_getRangesWithClasses','getRanges','normalizeConfig','plugins','TrackChangesEditing','get','model','push','commandParams','toLowerCase','inline','registerDescriptionCallback','getDefinitionsForView','styleName','getAttribute','_getStyleDefinition','afterInit','Style','commandName','format','from','add','value','forceValue','find','style'];(function(_0x4b4571,_0x79ed72){const _0x381a68=function(_0x4f849f){while(--_0x4f849f){_0x4b4571['push'](_0x4b4571['shift']());}};_0x381a68(++_0x79ed72);}(_0x79ed,0x1a0));const _0x381a=function(_0x4b4571,_0x79ed72){_0x4b4571=_0x4b4571-0x0;let _0x381a68=_0x79ed[_0x4b4571];return _0x381a68;};import{Plugin as _0x23e042}from'ckeditor5/src/core';import{getTranslation as _0x37e62b}from'../utils/common-translations';export default class gt extends _0x23e042{[_0x381a('0x6')](){const _0x64e730=this[_0x381a('0x11')];if(!_0x64e730[_0x381a('0x29')]['has'](_0x381a('0x7')))return;const _0x12b2a7=_0x64e730[_0x381a('0x10')]['get'](_0x381a('0xf')),_0x2ac629=_0x64e730[_0x381a('0x29')]['get'](_0x381a('0x2a')),_0x1a5343=_0x64e730[_0x381a('0x15')],_0x23e490=_0x64e730[_0x381a('0x29')][_0x381a('0x2b')]('DataSchema'),_0x5bfe38=_0x64e730[_0x381a('0x29')][_0x381a('0x2b')](_0x381a('0x20'))[_0x381a('0x28')](_0x23e490,_0x64e730['config'][_0x381a('0x2b')]('style.definitions'));_0x2ac629[_0x381a('0x18')](_0x381a('0xf'),(_0x25a0fe,{styleName:_0x5170a6})=>{const _0x2242aa=_0x64e730[_0x381a('0x2c')][_0x381a('0x12')][_0x381a('0x1f')],_0x8a0ea8=this[_0x381a('0x5')](_0x5170a6,_0x5bfe38);if(!_0x8a0ea8)return;if(!_0x12b2a7['enabledStyles']['includes'](_0x5170a6))return;if(_0x2242aa['isCollapsed']&&!_0x8a0ea8[_0x381a('0x1c')])return void _0x25a0fe({'styleName':_0x5170a6});const _0x5e5daf=!_0x12b2a7[_0x381a('0xc')][_0x381a('0x25')](_0x8a0ea8['name']);if(_0x8a0ea8['isBlock']){const _0x163cac=function(_0x2bb236,_0x5ad759){const _0x7ab069=new Set();for(const _0x663653 of _0x2bb236){const _0x2ce204=_0x663653[_0x381a('0x1a')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x4b1205 of _0x2ce204)if(_0x5ad759[_0x381a('0x25')](_0x4b1205[_0x381a('0x17')])){_0x7ab069[_0x381a('0xb')](_0x4b1205);break;}}return _0x7ab069;}(_0x2242aa[_0x381a('0x22')](),_0x8a0ea8[_0x381a('0x21')]);_0x64e730[_0x381a('0x2c')]['change'](()=>{for(const _0x2c0602 of _0x163cac)_0x2ac629[_0x381a('0x14')](_0x2c0602,{'commandName':_0x381a('0xf'),'commandParams':[{'styleName':_0x5170a6,'forceValue':_0x5e5daf}],'formatGroupId':'style:'+_0x5170a6});});}else{let _0x532078=Array[_0x381a('0xa')](_0x2242aa[_0x381a('0x27')]());if(!_0x5e5daf){const _0x67c426=Array['from'](_0x23e490[_0x381a('0x2')](_0x8a0ea8[_0x381a('0x1d')],!0x1))[0x0]['model'],_0x220f34=[];for(const _0x24b23c of _0x532078){const _0x4f3566=this[_0x381a('0x26')](_0x64e730[_0x381a('0x2c')],_0x24b23c,_0x8a0ea8[_0x381a('0x24')],_0x67c426);_0x220f34[_0x381a('0x2d')](..._0x4f3566);}_0x532078=_0x220f34;}_0x64e730[_0x381a('0x2c')][_0x381a('0x19')](()=>{for(const _0x204864 of _0x532078)_0x2ac629[_0x381a('0x1e')](_0x204864,{'commandName':_0x381a('0xf'),'commandParams':[{'styleName':_0x5170a6,'forceValue':_0x5e5daf}]});});}}),_0x2ac629[_0x381a('0x23')][_0x381a('0x1')](_0x1aa202=>{const {data:_0x307dd4}=_0x1aa202;if(_0x307dd4&&_0x381a('0xf')===_0x307dd4[_0x381a('0x8')])return _0x307dd4[_0x381a('0x2e')][0x0][_0x381a('0xd')]?{'type':_0x381a('0x9'),'content':_0x37e62b(_0x1a5343,_0x381a('0x1b'),_0x307dd4['commandParams'][0x0][_0x381a('0x3')]['toLowerCase']())}:{'type':'format','content':_0x37e62b(_0x1a5343,'*Remove\x20format:*\x20%0',_0x307dd4[_0x381a('0x2e')][0x0][_0x381a('0x3')][_0x381a('0x2f')]())};});}[_0x381a('0x5')](_0x2aff75,_0x140cdd){let _0xaae173=_0x140cdd[_0x381a('0x13')][_0x381a('0xe')](_0x3a5f06=>_0x3a5f06[_0x381a('0x17')]===_0x2aff75);return _0xaae173||(_0xaae173=_0x140cdd[_0x381a('0x0')][_0x381a('0xe')](_0x215d56=>_0x215d56[_0x381a('0x17')]===_0x2aff75)),_0xaae173;}[_0x381a('0x26')](_0x189f45,_0x4ab231,_0x9a1448,_0x5c4621){const _0x134ebd=[];for(const _0x409218 of _0x4ab231[_0x381a('0x16')]()){const _0x3c67c9=_0x409218[_0x381a('0x4')](_0x5c4621);_0x3c67c9&&(_0x9a1448['every'](_0x21e71d=>_0x3c67c9[_0x381a('0x24')][_0x381a('0x25')](_0x21e71d))&&_0x134ebd[_0x381a('0x2d')](_0x189f45['createRangeOn'](_0x409218)));}return _0x134ebd;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x4b49=['root','refresh','from','$graveyard','getChangedMarkers','*Insert:*\x20%0','insertTableRowAbove','map','ELEMENT_TABLE_ROW_WITH_TEXT','getAttribute','substr','subType','get','ELEMENT_TABLE_WITH_TEXT','first','ELEMENT_TABLE_COLUMN_WITH_TEXT','hasAttribute','tablePaste','above','order','getFirstRange','document','plugins','rowspan','has','type','createRangeIn','*Remove:*\x20%0','length','downcastDispatcher','getRowIndexes','selection','writer','$textProxy','every','tableColumn','span','enableCommand','insertTable','getChanges','TableUtils','min','push','tableRow','getSuggestion','isEqual','discard','isIntersectingWithRange','start','_suggestionFactory','item','findAncestor','editor','options','selectTableRow','detach','ELEMENT_TABLE_COLUMN','toLowerCase','accept','getRanges','minRow','TrackChangesEditing','batch','table','_descriptionFactory','removeTableRow','ELEMENT_TABLE','removeTableColumn','insertTableRowBelow','includes','change','filter','commands','getItems','enqueueChange','oldRange','element','getSelectionAffectedTableCells','setSelection','ELEMENT_TABLE_ROW','end','differ','_tableSuggestions','getChildren','execute','last','fromRange','rootName','_splitMarkerName','forceValue','locale','nodeBefore','max','registerPostFixer','_setupColumnsRowsFixing','join','createRangeOn','deletion','registerCustomCallback','suggestion','insert','model','removeClass','createPositionAt','data','selectTableColumn','add','_getCoordsForCells','addClass','_tablePostFixingSubtypes','insertion','markMultiRangeDeletion','isTouching','colspan','insertTableColumnLeft','some','getColumnIndexes','toViewElement','insertTableColumnRight','getCellLocation','_getSuggestionCoords','showSuggestionHighlights','nodeAfter','afterInit','minColumn','position','MIN_SAFE_INTEGER','createTableWalker','markMultiRangeInsertion','registerElementLabel','classes','isInContent','name'];(function(_0x243211,_0x4b4901){const _0x3a207d=function(_0x5d8155){while(--_0x5d8155){_0x243211['push'](_0x243211['shift']());}};_0x3a207d(++_0x4b4901);}(_0x4b49,0xfc));const _0x3a20=function(_0x243211,_0x4b4901){_0x243211=_0x243211-0x0;let _0x3a207d=_0x4b49[_0x243211];return _0x3a207d;};import{Plugin as _0x3fc206}from'ckeditor5/src/core';import{LiveRange as _0x334c83}from'ckeditor5/src/engine';import{setHighlightHandling as _0x4ecc8a}from'ckeditor5/src/widget';import{getTranslation as _0x5e7dfe}from'../utils/common-translations';export default class mt extends _0x3fc206{constructor(_0x531db7){super(_0x531db7),this[_0x3a20('0x7b')]=[_0x3a20('0x39'),'tableColumn'],this['_tableSuggestions']=new Set();}[_0x3a20('0x4')](){const _0x55e63f=this[_0x3a20('0x42')],_0x26b57e=_0x55e63f[_0x3a20('0x73')][_0x3a20('0x23')][_0x3a20('0x2d')];if(!_0x55e63f[_0x3a20('0x24')][_0x3a20('0x26')]('TableEditing'))return;const _0x33644e=_0x55e63f[_0x3a20('0x68')],_0x4ecf83=_0x55e63f[_0x3a20('0x24')][_0x3a20('0x1a')](_0x3a20('0x4b')),_0x4e1f65=_0x55e63f['plugins'][_0x3a20('0x1a')]('TableUtils');_0x4ecf83['_descriptionFactory'][_0x3a20('0xa')]('table',_0x555cd4=>_0x5e7dfe(_0x33644e,_0x3a20('0x50'),_0x555cd4)),this[_0x3a20('0x6c')](),_0x4ecf83[_0x3a20('0x33')](_0x3a20('0x34')),_0x4ecf83[_0x3a20('0x33')](_0x3a20('0x44')),_0x4ecf83[_0x3a20('0x33')](_0x3a20('0x77'));for(const _0x18706c of[_0x3a20('0x14'),_0x3a20('0x52')]){const _0x5edcb7=_0x55e63f['commands'][_0x3a20('0x1a')](_0x18706c);_0x4ecf83[_0x3a20('0x33')](_0x18706c,_0x4229ab=>{_0x55e63f['model'][_0x3a20('0x54')](_0x586b1e=>{_0x4229ab();const _0x4acbdb=_0x3a20('0x20')===_0x5edcb7['order'],_0x2c730d=_0x4e1f65['getSelectionAffectedTableCells'](_0x26b57e),_0xefcf83=_0x4e1f65[_0x3a20('0x2c')](_0x2c730d),_0x371383=_0x4acbdb?_0xefcf83[_0x3a20('0x1c')]-0x1:_0xefcf83[_0x3a20('0x63')]+0x1,_0x5a0231=_0x2c730d[0x0][_0x3a20('0x41')]('table'),_0x6c7923=_0x4e1f65['createTableWalker'](_0x5a0231,{'startRow':_0x371383,'endRow':_0x371383}),_0x512581=Array['from'](_0x6c7923)[_0x3a20('0x15')](_0x451d86=>_0x586b1e['createRangeOn'](_0x451d86['cell']));_0x4ecf83[_0x3a20('0x9')](_0x512581,'tableRow');});});}for(const _0x71befa of[_0x3a20('0x80'),_0x3a20('0x84')]){const _0x514f22=_0x55e63f[_0x3a20('0x56')][_0x3a20('0x1a')](_0x71befa);_0x4ecf83[_0x3a20('0x33')](_0x71befa,_0x57200b=>{_0x55e63f['model'][_0x3a20('0x54')](_0x440421=>{_0x57200b();const _0x362565='left'===_0x514f22[_0x3a20('0x21')],_0x5df564=_0x4e1f65[_0x3a20('0x5b')](_0x26b57e),_0x26ca60=_0x4e1f65[_0x3a20('0x82')](_0x5df564),_0x38a27e=_0x362565?_0x26ca60[_0x3a20('0x1c')]-0x1:_0x26ca60[_0x3a20('0x63')]+0x1,_0x4151e5=_0x5df564[0x0][_0x3a20('0x41')](_0x3a20('0x4d')),_0x439c1d=_0x4e1f65[_0x3a20('0x8')](_0x4151e5,{'startRow':0x0,'column':_0x38a27e,'includeAllSlots':!0x1}),_0x3604b4=Array[_0x3a20('0x10')](_0x439c1d)['map'](_0xb6db87=>_0x440421['createRangeOn'](_0xb6db87['cell']));_0x4ecf83[_0x3a20('0x9')](_0x3604b4,'tableColumn');});});}for(const _0x54aa2a of[_0x3a20('0x4f'),_0x3a20('0x51')]){const _0xf64efa=_0x54aa2a[_0x3a20('0x18')](0xb),_0x4584da=_0xf64efa[_0x3a20('0x47')](),_0x4c430e=_0x4584da[_0x3a20('0x18')](0x0,0x3)+_0x3a20('0x32'),_0x1fcd65=_0x3a20('0x4d')+_0xf64efa,_0x30a64f=_0x3a20('0x37')+_0xf64efa,_0xcc74f6=_0x3a20('0x6a')+_0xf64efa;_0x4ecf83[_0x3a20('0x33')](_0x54aa2a,()=>{_0x55e63f[_0x3a20('0x73')]['change'](_0x2562bb=>{const _0xdaac37=_0x4e1f65[_0x3a20('0x5b')](_0x26b57e),_0x3c0643=_0xdaac37[0x0]['findAncestor']('table');let _0x58f3a3;if(_0x3a20('0x4f')==_0x54aa2a){const _0x1a9691=_0x4e1f65[_0x3a20('0x2c')](_0xdaac37);_0x58f3a3={'startRow':_0x1a9691[_0x3a20('0x1c')],'endRow':_0x1a9691[_0x3a20('0x63')],'includeAllSlots':!0x0};}else{const _0x1856a3=_0x4e1f65[_0x3a20('0x82')](_0xdaac37);_0x58f3a3={'startColumn':_0x1856a3['first'],'endColumn':_0x1856a3[_0x3a20('0x63')],'includeAllSlots':!0x0};}const _0x2f207d=_0x4e1f65[_0x3a20('0x8')](_0x3c0643,_0x58f3a3),_0xc4cfb6=Array['from'](_0x2f207d)[_0x3a20('0x15')](({cell:_0x5492c6})=>_0x5492c6),_0x122cd2=se(_0xc4cfb6[_0x3a20('0x55')](_0x418cdc=>_0x418cdc[_0x3a20('0x1e')](_0x4c430e))),_0x3db04c=se(_0xc4cfb6[_0x3a20('0x55')](_0x25e927=>!_0x25e927[_0x3a20('0x1e')](_0x4c430e)))[_0x3a20('0x15')](_0xefd17c=>_0x2562bb['createRangeOn'](_0xefd17c)),_0x279e54=_0x4ecf83[_0x3a20('0x7d')](_0x3db04c,_0x1fcd65);if(_0x279e54&&(_0x3a20('0x39')==_0x279e54[_0x3a20('0x19')]||_0x3a20('0x31')==_0x279e54['subType'])){const _0x41e76b=this[_0x3a20('0x1')](_0x279e54);for(const _0x30b99c of _0x122cd2){const _0x3cb4e4=_0x2562bb[_0x3a20('0x6e')](_0x30b99c),_0x45aadb=_0x4e1f65[_0x3a20('0x0')](_0x30b99c),_0x2e69df=_0x30b99c[_0x3a20('0x17')](_0x4c430e)-0x1,_0x872842=_0x41e76b[_0x30a64f],_0x42a5b9=_0x41e76b[_0xcc74f6];_0x872842<=_0x45aadb[_0x4584da]&&_0x45aadb[_0x4584da]+_0x2e69df<=_0x42a5b9&&_0x279e54['addRange'](_0x3cb4e4);}}});});}function _0x1c372f(_0x586507){const _0x2b6fa2=Array[_0x3a20('0x10')](_0x26b57e[_0x3a20('0x49')]())[_0x3a20('0x15')](_0x1ca35e=>_0x334c83[_0x3a20('0x64')](_0x1ca35e));_0x55e63f['model'][_0x3a20('0x54')](_0x5ac7c1=>{const _0x5c715d=_0x5ac7c1[_0x3a20('0x4c')];_0x586507=_0x586507[_0x3a20('0x55')](_0x43c744=>_0x3a20('0x11')!=_0x43c744['root'][_0x3a20('0x65')]),_0x5ac7c1[_0x3a20('0x5c')](_0x586507),_0x55e63f[_0x3a20('0x56')][_0x3a20('0x1a')](_0x3a20('0x4f'))[_0x3a20('0xf')](),_0x55e63f[_0x3a20('0x62')](_0x3a20('0x4f'),{'forceDefaultExecution':!0x0}),_0x55e63f[_0x3a20('0x73')][_0x3a20('0x58')](()=>{_0x55e63f[_0x3a20('0x73')][_0x3a20('0x58')](_0x5c715d,_0x1ed6b5=>{const _0x196d9b=_0x2b6fa2['filter'](_0x23a529=>_0x3a20('0x11')!=_0x23a529[_0x3a20('0xe')][_0x3a20('0x65')]);_0x196d9b['length']>0x0&&_0x1ed6b5[_0x3a20('0x5c')](_0x196d9b);for(const _0x1cb33f of _0x2b6fa2)_0x1cb33f[_0x3a20('0x45')]();});});});}function _0x3711bf(_0x503b02){_0x55e63f[_0x3a20('0x73')]['change'](_0xea72ec=>{const _0x4b0681=Array[_0x3a20('0x10')](_0x26b57e['getRanges']())[_0x3a20('0x15')](_0x2942f7=>_0x334c83[_0x3a20('0x64')](_0x2942f7)),_0x1ba9d1=[];for(const _0x2dbe45 of _0x503b02)for(const _0x124285 of _0x2dbe45['getItems']({'shallow':!0x0}))_0x1ba9d1[_0x3a20('0x38')](_0x124285);for(const _0x3c79c8 of _0x1ba9d1)_0x3a20('0x11')!=_0x3c79c8[_0x3a20('0xe')]['rootName']&&(_0xea72ec[_0x3a20('0x5c')](_0xea72ec[_0x3a20('0x75')](_0x3c79c8,0x0)),_0x55e63f[_0x3a20('0x56')][_0x3a20('0x1a')](_0x3a20('0x51'))[_0x3a20('0xf')](),_0x55e63f['execute'](_0x3a20('0x51'),{'forceDefaultExecution':!0x0}));const _0x33ad1a=_0x4b0681[_0x3a20('0x55')](_0x2dbfe2=>_0x3a20('0x11')!=_0x2dbfe2[_0x3a20('0xe')][_0x3a20('0x65')]);_0x33ad1a[_0x3a20('0x2a')]>0x0&&_0xea72ec['setSelection'](_0x33ad1a);for(const _0x36793b of _0x4b0681)_0x36793b[_0x3a20('0x45')]();});}function _0x18424f(_0x494776,_0x1f7c2a){return _0x1f7c2a[_0x3a20('0x30')](_0x4323b=>_0x494776[_0x3a20('0x81')](_0x12ac0a=>_0x12ac0a[_0x3a20('0x5e')]['isEqual'](_0x4323b[_0x3a20('0x3e')])||_0x4323b[_0x3a20('0x5e')][_0x3a20('0x3b')](_0x12ac0a['start'])));}function _0x143210(_0x2583ca,_0x3ed80a){return _0x2583ca[_0x3a20('0x81')](_0xee80a0=>_0x3ed80a[_0x3a20('0x81')](_0x4e612e=>_0xee80a0['end'][_0x3a20('0x7e')](_0x4e612e[_0x3a20('0x3e')])));}_0x55e63f[_0x3a20('0x76')][_0x3a20('0x2b')]['on']('addMarker:suggestion',(_0x38e816,_0x208d7e,_0x5f1c9b)=>{if(!_0x5f1c9b[_0x3a20('0x43')][_0x3a20('0x2')])return;const _0x4c32a0=_0x208d7e[_0x3a20('0x40')];if(!_0x4c32a0)return;const _0x13efff=_0x5f1c9b['mapper'][_0x3a20('0x83')](_0x4c32a0);function _0x273b0f(_0x28fbcb){return Array['isArray'](_0x28fbcb)?_0x28fbcb:[_0x28fbcb];}_0x13efff&&'tableCell'===_0x4c32a0['name']&&_0x4ecc8a(_0x13efff,_0x5f1c9b[_0x3a20('0x2e')],(_0x29abf6,_0x17adc7,_0x9a87ee)=>_0x9a87ee[_0x3a20('0x7a')](_0x273b0f(_0x17adc7[_0x3a20('0xb')]),_0x29abf6),(_0x5c1433,_0x3fc64f,_0x45979a)=>_0x45979a[_0x3a20('0x74')](_0x273b0f(_0x3fc64f[_0x3a20('0xb')]),_0x5c1433));},{'priority':'highest'}),_0x4ecf83[_0x3a20('0x4e')]['registerDescriptionCallback'](_0x267b38=>{if(_0x3a20('0x7c')!=_0x267b38[_0x3a20('0x27')]&&_0x3a20('0x6f')!=_0x267b38[_0x3a20('0x27')])return;const _0x3b00e9=_0x267b38['getContainedElement']();if(null!=_0x3b00e9&&_0x3b00e9['is'](_0x3a20('0x5a'),_0x3a20('0x4d'))){if('insertion'==_0x267b38[_0x3a20('0x27')]){const _0xfa132d=_0x267b38[_0x3a20('0x57')]()[_0x3a20('0x55')](_0x569a20=>_0x569a20['is']('$textProxy'))[_0x3a20('0x15')](_0x3b7f65=>_0x3b7f65[_0x3a20('0x76')]);if(_0xfa132d['length'])return{'type':_0x3a20('0x7c'),'content':_0x5e7dfe(_0x33644e,'*Insert:*\x20%0',_0x5e7dfe(_0x33644e,_0x3a20('0x1b'),'\x22'+_0xfa132d[_0x3a20('0x6d')]('\x20')+'\x22'))};}if(_0x3a20('0x6f')==_0x267b38[_0x3a20('0x27')]){const _0x92ac75=_0x267b38[_0x3a20('0x57')]()[_0x3a20('0x55')](_0x1bb167=>_0x1bb167['is'](_0x3a20('0x2f')))['map'](_0x5a941b=>_0x5a941b[_0x3a20('0x76')]);if(_0x92ac75[_0x3a20('0x2a')])return{'type':_0x3a20('0x6f'),'content':_0x5e7dfe(_0x33644e,'*Remove:*\x20%0',_0x5e7dfe(_0x33644e,_0x3a20('0x1b'),'\x22'+_0x92ac75[_0x3a20('0x6d')]('\x20')+'\x22'))};}}}),_0x4ecf83[_0x3a20('0x4e')]['registerDescriptionCallback'](_0x2d2dd4=>{if('tableRow'==_0x2d2dd4[_0x3a20('0x19')]){const _0x21b741=_0x2d2dd4[_0x3a20('0x57')]()[_0x3a20('0x55')](_0x2615ad=>_0x2615ad['is']('$textProxy'))[_0x3a20('0x15')](_0x40757e=>_0x40757e[_0x3a20('0x76')]),_0x4d07b5=this[_0x3a20('0x1')](_0x2d2dd4),_0x2d5f69=_0x4d07b5['maxRow']-_0x4d07b5[_0x3a20('0x4a')]+0x1;if(_0x3a20('0x7c')==_0x2d2dd4['type'])return _0x21b741[_0x3a20('0x2a')]?{'type':_0x3a20('0x7c'),'content':_0x5e7dfe(_0x33644e,_0x3a20('0x13'),_0x5e7dfe(_0x33644e,_0x3a20('0x16'),[_0x2d5f69,'\x22'+_0x21b741['join']('\x20')+'\x22']))}:{'type':_0x3a20('0x7c'),'content':_0x5e7dfe(_0x33644e,'*Insert:*\x20%0',_0x5e7dfe(_0x33644e,_0x3a20('0x5d'),_0x2d5f69))};if(_0x3a20('0x6f')==_0x2d2dd4[_0x3a20('0x27')])return _0x21b741[_0x3a20('0x2a')]?{'type':_0x3a20('0x6f'),'content':_0x5e7dfe(_0x33644e,_0x3a20('0x29'),_0x5e7dfe(_0x33644e,_0x3a20('0x16'),[_0x2d5f69,'\x22'+_0x21b741['join']('\x20')+'\x22']))}:{'type':'deletion','content':_0x5e7dfe(_0x33644e,_0x3a20('0x29'),_0x5e7dfe(_0x33644e,_0x3a20('0x5d'),_0x2d5f69))};}if(_0x3a20('0x31')==_0x2d2dd4['subType']){const _0x49f942=_0x2d2dd4[_0x3a20('0x57')]()[_0x3a20('0x55')](_0x5666c3=>_0x5666c3['is'](_0x3a20('0x2f')))[_0x3a20('0x15')](_0x12c07d=>_0x12c07d[_0x3a20('0x76')]),_0x296994=this[_0x3a20('0x1')](_0x2d2dd4),_0x2749c0=_0x296994['maxColumn']-_0x296994[_0x3a20('0x5')]+0x1;if(_0x3a20('0x7c')==_0x2d2dd4[_0x3a20('0x27')])return _0x49f942['length']?{'type':_0x3a20('0x7c'),'content':_0x5e7dfe(_0x33644e,'*Insert:*\x20%0',_0x5e7dfe(_0x33644e,_0x3a20('0x1d'),[_0x2749c0,'\x22'+_0x49f942[_0x3a20('0x6d')]('\x20')+'\x22']))}:{'type':_0x3a20('0x7c'),'content':_0x5e7dfe(_0x33644e,'*Insert:*\x20%0',_0x5e7dfe(_0x33644e,_0x3a20('0x46'),_0x2749c0))};if(_0x3a20('0x6f')==_0x2d2dd4[_0x3a20('0x27')])return _0x49f942[_0x3a20('0x2a')]?{'type':_0x3a20('0x6f'),'content':_0x5e7dfe(_0x33644e,'*Remove:*\x20%0',_0x5e7dfe(_0x33644e,_0x3a20('0x1d'),[_0x2749c0,'\x22'+_0x49f942['join']('\x20')+'\x22']))}:{'type':_0x3a20('0x6f'),'content':_0x5e7dfe(_0x33644e,'*Remove:*\x20%0',_0x5e7dfe(_0x33644e,'ELEMENT_TABLE_COLUMN',_0x2749c0))};}}),_0x4ecf83[_0x3a20('0x3f')][_0x3a20('0x70')](_0x3a20('0x7c'),_0x3a20('0x39'),_0x3a20('0x3c'),_0x1c372f),_0x4ecf83[_0x3a20('0x3f')][_0x3a20('0x70')]('deletion',_0x3a20('0x39'),_0x3a20('0x48'),_0x1c372f),_0x4ecf83['_suggestionFactory'][_0x3a20('0x70')](_0x3a20('0x7c'),'tableColumn','discard',_0x3711bf),_0x4ecf83[_0x3a20('0x3f')][_0x3a20('0x70')]('deletion',_0x3a20('0x31'),_0x3a20('0x48'),_0x3711bf),_0x4ecf83[_0x3a20('0x3f')][_0x3a20('0x70')](_0x3a20('0x7c'),_0x3a20('0x31'),'join',_0x18424f),_0x4ecf83[_0x3a20('0x3f')][_0x3a20('0x70')](_0x3a20('0x6f'),_0x3a20('0x31'),_0x3a20('0x6d'),_0x18424f),_0x4ecf83[_0x3a20('0x3f')][_0x3a20('0x70')]('insertion','tableRow','join',_0x143210),_0x4ecf83[_0x3a20('0x3f')][_0x3a20('0x70')](_0x3a20('0x6f'),'tableRow','join',_0x143210);}['_acceptFormatSuggestionCallbackFactory'](){const _0x3b865e=this[_0x3a20('0x42')],_0x24cbfa=_0x3b865e['model'][_0x3a20('0x23')][_0x3a20('0x2d')];return(_0x1b77b4,_0x9de50)=>{_0x3b865e[_0x3a20('0x73')][_0x3a20('0x54')](_0x37f339=>{const {commandName:_0x19b40c,commandParams:_0x26b51f}=_0x9de50;let _0x4ee39e=_0x1b77b4[0x0][_0x3a20('0x5e')][_0x3a20('0x69')];_0x26b51f&&_0x26b51f[0x0]&&!0x1===_0x26b51f[0x0][_0x3a20('0x67')]&&(_0x4ee39e=_0x1b77b4[0x0][_0x3a20('0x3e')][_0x3a20('0x3')]);const _0x2d8271=_0x37f339[_0x3a20('0x28')](_0x4ee39e);if(_0x3a20('0x11')==_0x2d8271[_0x3a20('0xe')]['rootName'])return;const _0x291cfe=Array[_0x3a20('0x10')](_0x24cbfa[_0x3a20('0x49')]())[_0x3a20('0x15')](_0x5bab00=>_0x334c83[_0x3a20('0x64')](_0x5bab00));_0x37f339[_0x3a20('0x5c')](_0x2d8271),_0x3b865e['commands'][_0x3a20('0x1a')](_0x19b40c)[_0x3a20('0xf')](),_0x26b51f[_0x3a20('0x38')]({'forceDefaultExecution':!0x0}),_0x3b865e[_0x3a20('0x62')](_0x19b40c,..._0x26b51f);const _0x5af840=_0x291cfe[_0x3a20('0x55')](_0x3e46f8=>_0x3a20('0x11')!=_0x3e46f8[_0x3a20('0xe')][_0x3a20('0x65')]);_0x5af840['length']>0x0&&_0x37f339[_0x3a20('0x5c')](_0x5af840);for(const _0x464bba of _0x291cfe)_0x464bba[_0x3a20('0x45')]();});};}[_0x3a20('0x79')](_0x168b7f){const _0x523695=this[_0x3a20('0x42')][_0x3a20('0x24')]['get'](_0x3a20('0x36'));let _0x14552f=Number['MAX_SAFE_INTEGER'],_0x4c9985=Number[_0x3a20('0x7')],_0x5861c1=Number['MAX_SAFE_INTEGER'],_0x285456=Number[_0x3a20('0x7')];for(const _0x23750b of _0x168b7f){if(_0x3a20('0x11')==_0x23750b['root'][_0x3a20('0x65')])continue;const {row:_0x3c14b0,column:_0x33a9dd}=_0x523695[_0x3a20('0x0')](_0x23750b),_0x537b74=_0x23750b[_0x3a20('0x1e')](_0x3a20('0x25'))?_0x23750b[_0x3a20('0x17')]('rowspan')-0x1:0x0,_0x5355ca=_0x23750b['hasAttribute'](_0x3a20('0x7f'))?_0x23750b[_0x3a20('0x17')]('colspan')-0x1:0x0;_0x14552f=_0x3c14b0<_0x14552f?_0x3c14b0:_0x14552f,_0x4c9985=_0x3c14b0+_0x537b74>_0x4c9985?_0x3c14b0+_0x537b74:_0x4c9985,_0x5861c1=_0x33a9dd<_0x5861c1?_0x33a9dd:_0x5861c1,_0x285456=_0x33a9dd+_0x5355ca>_0x285456?_0x33a9dd+_0x5355ca:_0x285456;}return{'minRow':_0x14552f,'maxRow':_0x4c9985,'minColumn':_0x5861c1,'maxColumn':_0x285456};}[_0x3a20('0x6c')](){const _0x2939d1=this['editor'],_0x20b37b=_0x2939d1[_0x3a20('0x24')]['get'](_0x3a20('0x4b')),_0x492953=_0x2939d1[_0x3a20('0x24')]['get'](_0x3a20('0x36'));_0x2939d1[_0x3a20('0x73')][_0x3a20('0x23')]['on']('change:data',()=>{const _0x2db243=Array[_0x3a20('0x10')](_0x2939d1[_0x3a20('0x73')][_0x3a20('0x23')]['differ'][_0x3a20('0x12')]());for(const {name:_0x209b7a,data:_0x51a4cc}of _0x2db243){const {group:_0x31dc37,id:_0x212a91,subType:_0x40f358}=_0x20b37b[_0x3a20('0x66')](_0x209b7a);if(_0x3a20('0x71')!=_0x31dc37)continue;if(null!=_0x51a4cc[_0x3a20('0x59')])continue;const _0x25e22f=_0x20b37b[_0x3a20('0x3a')](_0x212a91);this[_0x3a20('0x7b')][_0x3a20('0x53')](_0x40f358)&&this['_tableSuggestions'][_0x3a20('0x78')](_0x25e22f);}},{'priority':'low'});const _0x140083=(_0x5aff72,_0xcf9dd5)=>{let _0x52e4ce=!0x1;const _0x338648=_0xcf9dd5[_0x3a20('0x6e')](_0x5aff72),_0xc1b5fb=_0x5aff72[_0x3a20('0x41')](_0x3a20('0x4d')),_0x1e7a93=_0x492953[_0x3a20('0x0')](_0x5aff72);for(const _0x5af2e6 of this[_0x3a20('0x60')]){const _0x2ada7f=_0x5af2e6[_0x3a20('0x19')],_0x5db87a=_0x2ada7f['startsWith'](_0x3a20('0x1f')),_0x25e72a=_0x2ada7f[_0x3a20('0x18')](_0x5db87a?0xa:0x5),_0x274176=_0x25e72a[_0x3a20('0x47')](),_0x3a003e=_0x274176['substr'](0x0,0x3)+'span',_0x5ea56f=_0x3a20('0x37')+_0x25e72a,_0x20c2eb=_0x3a20('0x6a')+_0x25e72a;if(!_0x5af2e6[_0x3a20('0xc')])continue;if(_0xc1b5fb!=_0x5af2e6[_0x3a20('0x22')]()[_0x3a20('0x3e')][_0x3a20('0x41')]('table'))continue;if(_0x5af2e6[_0x3a20('0x3d')](_0x338648))continue;const _0x402d14=_0x5aff72[_0x3a20('0x1e')](_0x3a003e)?_0x5aff72[_0x3a20('0x17')](_0x3a003e)-0x1:0x0,_0x509dde=this[_0x3a20('0x1')](_0x5af2e6),_0x18e542=_0x509dde[_0x5ea56f],_0x3fe3fe=_0x509dde[_0x20c2eb];_0x18e542<=_0x1e7a93[_0x274176]&&_0x1e7a93[_0x274176]+_0x402d14<=_0x3fe3fe&&(_0x5af2e6['addRange'](_0x338648),_0x52e4ce=!0x0);}return _0x52e4ce;};_0x2939d1[_0x3a20('0x73')][_0x3a20('0x23')][_0x3a20('0x6b')](_0x142dee=>{let _0x5374da=!0x1;for(const _0x22aa6a of _0x2939d1[_0x3a20('0x73')]['document'][_0x3a20('0x5f')][_0x3a20('0x35')]())if(_0x3a20('0x72')==_0x22aa6a['type']){if(_0x3a20('0x39')==_0x22aa6a[_0x3a20('0xd')])for(const _0x26e45a of _0x22aa6a[_0x3a20('0x6')]['nodeAfter'][_0x3a20('0x61')]())_0x5374da=_0x5374da||_0x140083(_0x26e45a,_0x142dee);else'tableCell'==_0x22aa6a[_0x3a20('0xd')]&&(_0x5374da=_0x5374da||_0x140083(_0x22aa6a['position'][_0x3a20('0x3')],_0x142dee));}return _0x5374da;});}[_0x3a20('0x1')](_0xb8d0a4){return this[_0x3a20('0x79')](_0xb8d0a4[_0x3a20('0x49')]()[_0x3a20('0x15')](_0x4f8d79=>_0x4f8d79[_0x3a20('0x3e')][_0x3a20('0x3')]));}}function se(_0xb6da46){return Array[_0x3a20('0x10')](new Set(_0xb6da46)['values']());}
|
|
23
|
+
const _0x546a=['selection','map','add','execute','locale','toViewElement','insertTableColumnRight','order','isEqual','position','length','findAncestor','refresh','ELEMENT_TABLE_WITH_TEXT','change:data','tableCell','join','createTableWalker','_setupColumnsRowsFixing','*Remove:*\x20%0','insertion','substr','ELEMENT_TABLE_ROW_WITH_TEXT','item','hasAttribute','createRangeOn','accept','getSelectionAffectedTableCells','registerDescriptionCallback','values','_suggestionFactory','enqueueChange','TrackChangesEditing','registerPostFixer','classes','maxRow','ELEMENT_TABLE_COLUMN','insert','nodeBefore','getColumnIndexes','data','options','last','element','subType','getChildren','selectTableColumn','insertTableRowAbove','get','name','selectTableRow','from','nodeAfter','getRowIndexes','forceValue','isTouching','ELEMENT_TABLE_COLUMN_WITH_TEXT','every','plugins','suggestion','minRow','ELEMENT_TABLE_ROW','removeTableRow','registerElementLabel','_acceptFormatSuggestionCallbackFactory','document','includes','root','commands','markMultiRangeDeletion','first','getCellLocation','$textProxy','createPositionAt','cell','_descriptionFactory','registerCustomCallback','model','enableCommand','getItems','$graveyard','toLowerCase','_getSuggestionCoords','insertTable','getAttribute','table','isInContent','start','tableRow','getChangedMarkers','oldRange','getContainedElement','max','removeTableColumn','min','rowspan','afterInit','getRanges','left','fromRange','differ','markMultiRangeInsertion','addMarker:suggestion','TableUtils','MAX_SAFE_INTEGER','createRangeIn','getSuggestion','span','tableColumn','editor','showSuggestionHighlights','detach','tablePaste','deletion','rootName','end','maxColumn','minColumn','filter','MIN_SAFE_INTEGER','colspan','getFirstRange','type','ELEMENT_TABLE','_tableSuggestions','change','batch','setSelection','removeClass','push','*Insert:*\x20%0','some','addRange','isIntersectingWithRange','_tablePostFixingSubtypes'];(function(_0x4d4535,_0x546a50){const _0x253d82=function(_0x5e4eef){while(--_0x5e4eef){_0x4d4535['push'](_0x4d4535['shift']());}};_0x253d82(++_0x546a50);}(_0x546a,0x1a8));const _0x253d=function(_0x4d4535,_0x546a50){_0x4d4535=_0x4d4535-0x0;let _0x253d82=_0x546a[_0x4d4535];return _0x253d82;};import{Plugin as _0x116aa7}from'ckeditor5/src/core';import{LiveRange as _0x40fb04}from'ckeditor5/src/engine';import{setHighlightHandling as _0x4c6e02}from'ckeditor5/src/widget';import{getTranslation as _0x3b2a6c}from'../utils/common-translations';export default class mt extends _0x116aa7{constructor(_0xf6c63d){super(_0xf6c63d),this[_0x253d('0x73')]=['tableRow',_0x253d('0x59')],this['_tableSuggestions']=new Set();}[_0x253d('0x4d')](){const _0x131801=this['editor'],_0x3ed342=_0x131801[_0x253d('0x3a')][_0x253d('0x2e')][_0x253d('0x74')];if(!_0x131801[_0x253d('0x27')]['has']('TableEditing'))return;const _0x3a3588=_0x131801[_0x253d('0x78')],_0x422fe3=_0x131801[_0x253d('0x27')][_0x253d('0x1d')](_0x253d('0xd')),_0x2092b1=_0x131801[_0x253d('0x27')][_0x253d('0x1d')](_0x253d('0x54'));_0x422fe3[_0x253d('0x38')][_0x253d('0x2c')]('table',_0x4b06ef=>_0x3b2a6c(_0x3a3588,_0x253d('0x68'),_0x4b06ef)),this[_0x253d('0x86')](),_0x422fe3[_0x253d('0x3b')](_0x253d('0x40')),_0x422fe3['enableCommand'](_0x253d('0x1f')),_0x422fe3['enableCommand'](_0x253d('0x1b'));for(const _0x235bd8 of[_0x253d('0x1c'),'insertTableRowBelow']){const _0x15f479=_0x131801[_0x253d('0x31')][_0x253d('0x1d')](_0x235bd8);_0x422fe3['enableCommand'](_0x235bd8,_0x4e79d2=>{_0x131801[_0x253d('0x3a')][_0x253d('0x6a')](_0x77fd09=>{_0x4e79d2();const _0x5a0fae='above'===_0x15f479[_0x253d('0x7b')],_0x5f24a2=_0x2092b1[_0x253d('0x8')](_0x3ed342),_0x543920=_0x2092b1['getRowIndexes'](_0x5f24a2),_0x3799ba=_0x5a0fae?_0x543920[_0x253d('0x33')]-0x1:_0x543920['last']+0x1,_0x9bdf3c=_0x5f24a2[0x0][_0x253d('0x7f')](_0x253d('0x42')),_0x19620e=_0x2092b1[_0x253d('0x85')](_0x9bdf3c,{'startRow':_0x3799ba,'endRow':_0x3799ba}),_0x37b7d5=Array['from'](_0x19620e)['map'](_0x7c8e26=>_0x77fd09['createRangeOn'](_0x7c8e26['cell']));_0x422fe3['markMultiRangeInsertion'](_0x37b7d5,_0x253d('0x45'));});});}for(const _0x27e6a8 of['insertTableColumnLeft',_0x253d('0x7a')]){const _0x56f59f=_0x131801[_0x253d('0x31')][_0x253d('0x1d')](_0x27e6a8);_0x422fe3[_0x253d('0x3b')](_0x27e6a8,_0x471ce5=>{_0x131801[_0x253d('0x3a')][_0x253d('0x6a')](_0x66749=>{_0x471ce5();const _0x6eea27=_0x253d('0x4f')===_0x56f59f[_0x253d('0x7b')],_0x19a606=_0x2092b1[_0x253d('0x8')](_0x3ed342),_0x27df81=_0x2092b1[_0x253d('0x14')](_0x19a606),_0x580a1a=_0x6eea27?_0x27df81[_0x253d('0x33')]-0x1:_0x27df81[_0x253d('0x17')]+0x1,_0x199d5d=_0x19a606[0x0]['findAncestor'](_0x253d('0x42')),_0x374acd=_0x2092b1['createTableWalker'](_0x199d5d,{'startRow':0x0,'column':_0x580a1a,'includeAllSlots':!0x1}),_0x28b6cd=Array[_0x253d('0x20')](_0x374acd)[_0x253d('0x75')](_0xc01970=>_0x66749['createRangeOn'](_0xc01970[_0x253d('0x37')]));_0x422fe3[_0x253d('0x52')](_0x28b6cd,_0x253d('0x59'));});});}for(const _0x5a107c of[_0x253d('0x2b'),_0x253d('0x4a')]){const _0xca313=_0x5a107c[_0x253d('0x2')](0xb),_0x383a16=_0xca313[_0x253d('0x3e')](),_0x527f6c=_0x383a16['substr'](0x0,0x3)+_0x253d('0x58'),_0x41bb33='table'+_0xca313,_0xd5f1f1=_0x253d('0x4b')+_0xca313,_0x175786=_0x253d('0x49')+_0xca313;_0x422fe3[_0x253d('0x3b')](_0x5a107c,()=>{_0x131801[_0x253d('0x3a')][_0x253d('0x6a')](_0x828685=>{const _0x406fe8=_0x2092b1[_0x253d('0x8')](_0x3ed342),_0x6346a7=_0x406fe8[0x0][_0x253d('0x7f')](_0x253d('0x42'));let _0x8618b5;if(_0x253d('0x2b')==_0x5a107c){const _0x32c084=_0x2092b1[_0x253d('0x22')](_0x406fe8);_0x8618b5={'startRow':_0x32c084[_0x253d('0x33')],'endRow':_0x32c084['last'],'includeAllSlots':!0x0};}else{const _0x2d42c1=_0x2092b1['getColumnIndexes'](_0x406fe8);_0x8618b5={'startColumn':_0x2d42c1[_0x253d('0x33')],'endColumn':_0x2d42c1[_0x253d('0x17')],'includeAllSlots':!0x0};}const _0x2520b9=_0x2092b1[_0x253d('0x85')](_0x6346a7,_0x8618b5),_0x5adb05=Array['from'](_0x2520b9)[_0x253d('0x75')](({cell:_0x6d9523})=>_0x6d9523),_0x203aae=se(_0x5adb05['filter'](_0x1bc5f0=>_0x1bc5f0[_0x253d('0x5')](_0x527f6c))),_0x3f521e=se(_0x5adb05['filter'](_0x5cfbcd=>!_0x5cfbcd['hasAttribute'](_0x527f6c)))['map'](_0x10e83a=>_0x828685[_0x253d('0x6')](_0x10e83a)),_0x3ffb54=_0x422fe3[_0x253d('0x32')](_0x3f521e,_0x41bb33);if(_0x3ffb54&&('tableRow'==_0x3ffb54['subType']||_0x253d('0x59')==_0x3ffb54['subType'])){const _0x1a2613=this[_0x253d('0x3f')](_0x3ffb54);for(const _0x41e968 of _0x203aae){const _0x283d5f=_0x828685['createRangeOn'](_0x41e968),_0x5c417c=_0x2092b1[_0x253d('0x34')](_0x41e968),_0x5e3723=_0x41e968[_0x253d('0x41')](_0x527f6c)-0x1,_0x4b771f=_0x1a2613[_0xd5f1f1],_0x576cc8=_0x1a2613[_0x175786];_0x4b771f<=_0x5c417c[_0x383a16]&&_0x5c417c[_0x383a16]+_0x5e3723<=_0x576cc8&&_0x3ffb54[_0x253d('0x71')](_0x283d5f);}}});});}function _0x14ddf9(_0xedc7db){const _0x420831=Array['from'](_0x3ed342[_0x253d('0x4e')]())[_0x253d('0x75')](_0x45b9f3=>_0x40fb04[_0x253d('0x50')](_0x45b9f3));_0x131801['model']['change'](_0x1b0d13=>{const _0x3ac08b=_0x1b0d13[_0x253d('0x6b')];_0xedc7db=_0xedc7db[_0x253d('0x63')](_0x1b6931=>_0x253d('0x3d')!=_0x1b6931[_0x253d('0x30')]['rootName']),_0x1b0d13['setSelection'](_0xedc7db),_0x131801['commands'][_0x253d('0x1d')](_0x253d('0x2b'))[_0x253d('0x80')](),_0x131801[_0x253d('0x77')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x131801[_0x253d('0x3a')][_0x253d('0xc')](()=>{_0x131801['model'][_0x253d('0xc')](_0x3ac08b,_0x22af20=>{const _0x47f64f=_0x420831[_0x253d('0x63')](_0x3b3d78=>'$graveyard'!=_0x3b3d78[_0x253d('0x30')][_0x253d('0x5f')]);_0x47f64f[_0x253d('0x7e')]>0x0&&_0x22af20[_0x253d('0x6c')](_0x47f64f);for(const _0x5481fd of _0x420831)_0x5481fd[_0x253d('0x5c')]();});});});}function _0x445085(_0x3f7acc){_0x131801[_0x253d('0x3a')][_0x253d('0x6a')](_0x118d24=>{const _0x58d233=Array[_0x253d('0x20')](_0x3ed342[_0x253d('0x4e')]())[_0x253d('0x75')](_0x2975b6=>_0x40fb04[_0x253d('0x50')](_0x2975b6)),_0x53debf=[];for(const _0x8bf14b of _0x3f7acc)for(const _0x5edb51 of _0x8bf14b['getItems']({'shallow':!0x0}))_0x53debf[_0x253d('0x6e')](_0x5edb51);for(const _0x18fa84 of _0x53debf)_0x253d('0x3d')!=_0x18fa84[_0x253d('0x30')][_0x253d('0x5f')]&&(_0x118d24[_0x253d('0x6c')](_0x118d24[_0x253d('0x36')](_0x18fa84,0x0)),_0x131801[_0x253d('0x31')][_0x253d('0x1d')]('removeTableColumn')[_0x253d('0x80')](),_0x131801[_0x253d('0x77')](_0x253d('0x4a'),{'forceDefaultExecution':!0x0}));const _0x54c109=_0x58d233[_0x253d('0x63')](_0xe3bb0b=>'$graveyard'!=_0xe3bb0b[_0x253d('0x30')][_0x253d('0x5f')]);_0x54c109[_0x253d('0x7e')]>0x0&&_0x118d24['setSelection'](_0x54c109);for(const _0xfebe96 of _0x58d233)_0xfebe96[_0x253d('0x5c')]();});}function _0x2aea1d(_0x13948a,_0x23d5cf){return _0x23d5cf[_0x253d('0x26')](_0x12a18e=>_0x13948a['some'](_0x23868b=>_0x23868b[_0x253d('0x60')][_0x253d('0x7c')](_0x12a18e[_0x253d('0x44')])||_0x12a18e[_0x253d('0x60')]['isEqual'](_0x23868b[_0x253d('0x44')])));}function _0x55e587(_0x233bec,_0x3c2786){return _0x233bec[_0x253d('0x70')](_0x3b834b=>_0x3c2786[_0x253d('0x70')](_0x35f538=>_0x3b834b[_0x253d('0x60')][_0x253d('0x24')](_0x35f538[_0x253d('0x44')])));}_0x131801[_0x253d('0x15')]['downcastDispatcher']['on'](_0x253d('0x53'),(_0x50cc0e,_0x4a7fc9,_0x2a938a)=>{if(!_0x2a938a[_0x253d('0x16')][_0x253d('0x5b')])return;const _0x26e25a=_0x4a7fc9[_0x253d('0x4')];if(!_0x26e25a)return;const _0x3bc640=_0x2a938a['mapper'][_0x253d('0x79')](_0x26e25a);function _0x28573c(_0xe7f8a5){return Array['isArray'](_0xe7f8a5)?_0xe7f8a5:[_0xe7f8a5];}_0x3bc640&&'tableCell'===_0x26e25a[_0x253d('0x1e')]&&_0x4c6e02(_0x3bc640,_0x2a938a['writer'],(_0x940f08,_0x490369,_0x23fba4)=>_0x23fba4['addClass'](_0x28573c(_0x490369[_0x253d('0xf')]),_0x940f08),(_0x4fbfed,_0x504da4,_0x5af3aa)=>_0x5af3aa[_0x253d('0x6d')](_0x28573c(_0x504da4[_0x253d('0xf')]),_0x4fbfed));},{'priority':'highest'}),_0x422fe3[_0x253d('0x38')]['registerDescriptionCallback'](_0x25c5f2=>{if(_0x253d('0x1')!=_0x25c5f2[_0x253d('0x67')]&&_0x253d('0x5e')!=_0x25c5f2['type'])return;const _0x1f3ef2=_0x25c5f2[_0x253d('0x48')]();if(null!=_0x1f3ef2&&_0x1f3ef2['is'](_0x253d('0x18'),_0x253d('0x42'))){if(_0x253d('0x1')==_0x25c5f2[_0x253d('0x67')]){const _0x4fe284=_0x25c5f2[_0x253d('0x3c')]()['filter'](_0x4e1809=>_0x4e1809['is'](_0x253d('0x35')))[_0x253d('0x75')](_0x163114=>_0x163114[_0x253d('0x15')]);if(_0x4fe284['length'])return{'type':_0x253d('0x1'),'content':_0x3b2a6c(_0x3a3588,_0x253d('0x6f'),_0x3b2a6c(_0x3a3588,_0x253d('0x81'),'\x22'+_0x4fe284[_0x253d('0x84')]('\x20')+'\x22'))};}if('deletion'==_0x25c5f2[_0x253d('0x67')]){const _0x1da871=_0x25c5f2[_0x253d('0x3c')]()[_0x253d('0x63')](_0x1a9560=>_0x1a9560['is'](_0x253d('0x35')))[_0x253d('0x75')](_0x23a8e6=>_0x23a8e6[_0x253d('0x15')]);if(_0x1da871['length'])return{'type':_0x253d('0x5e'),'content':_0x3b2a6c(_0x3a3588,_0x253d('0x0'),_0x3b2a6c(_0x3a3588,_0x253d('0x81'),'\x22'+_0x1da871[_0x253d('0x84')]('\x20')+'\x22'))};}}}),_0x422fe3[_0x253d('0x38')][_0x253d('0x9')](_0x1593fe=>{if(_0x253d('0x45')==_0x1593fe['subType']){const _0x4fb327=_0x1593fe['getItems']()['filter'](_0x1418b3=>_0x1418b3['is'](_0x253d('0x35')))[_0x253d('0x75')](_0x770b6=>_0x770b6[_0x253d('0x15')]),_0x419a27=this[_0x253d('0x3f')](_0x1593fe),_0x2cf3e9=_0x419a27[_0x253d('0x10')]-_0x419a27[_0x253d('0x29')]+0x1;if(_0x253d('0x1')==_0x1593fe[_0x253d('0x67')])return _0x4fb327['length']?{'type':_0x253d('0x1'),'content':_0x3b2a6c(_0x3a3588,_0x253d('0x6f'),_0x3b2a6c(_0x3a3588,_0x253d('0x3'),[_0x2cf3e9,'\x22'+_0x4fb327[_0x253d('0x84')]('\x20')+'\x22']))}:{'type':_0x253d('0x1'),'content':_0x3b2a6c(_0x3a3588,_0x253d('0x6f'),_0x3b2a6c(_0x3a3588,'ELEMENT_TABLE_ROW',_0x2cf3e9))};if(_0x253d('0x5e')==_0x1593fe[_0x253d('0x67')])return _0x4fb327[_0x253d('0x7e')]?{'type':_0x253d('0x5e'),'content':_0x3b2a6c(_0x3a3588,_0x253d('0x0'),_0x3b2a6c(_0x3a3588,_0x253d('0x3'),[_0x2cf3e9,'\x22'+_0x4fb327[_0x253d('0x84')]('\x20')+'\x22']))}:{'type':_0x253d('0x5e'),'content':_0x3b2a6c(_0x3a3588,_0x253d('0x0'),_0x3b2a6c(_0x3a3588,_0x253d('0x2a'),_0x2cf3e9))};}if(_0x253d('0x59')==_0x1593fe[_0x253d('0x19')]){const _0x341617=_0x1593fe[_0x253d('0x3c')]()[_0x253d('0x63')](_0x4d8d53=>_0x4d8d53['is'](_0x253d('0x35')))[_0x253d('0x75')](_0x3ce6e0=>_0x3ce6e0[_0x253d('0x15')]),_0x32c3da=this[_0x253d('0x3f')](_0x1593fe),_0x2315db=_0x32c3da[_0x253d('0x61')]-_0x32c3da[_0x253d('0x62')]+0x1;if(_0x253d('0x1')==_0x1593fe[_0x253d('0x67')])return _0x341617['length']?{'type':'insertion','content':_0x3b2a6c(_0x3a3588,_0x253d('0x6f'),_0x3b2a6c(_0x3a3588,_0x253d('0x25'),[_0x2315db,'\x22'+_0x341617['join']('\x20')+'\x22']))}:{'type':_0x253d('0x1'),'content':_0x3b2a6c(_0x3a3588,'*Insert:*\x20%0',_0x3b2a6c(_0x3a3588,'ELEMENT_TABLE_COLUMN',_0x2315db))};if(_0x253d('0x5e')==_0x1593fe[_0x253d('0x67')])return _0x341617[_0x253d('0x7e')]?{'type':_0x253d('0x5e'),'content':_0x3b2a6c(_0x3a3588,'*Remove:*\x20%0',_0x3b2a6c(_0x3a3588,_0x253d('0x25'),[_0x2315db,'\x22'+_0x341617[_0x253d('0x84')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x3b2a6c(_0x3a3588,_0x253d('0x0'),_0x3b2a6c(_0x3a3588,_0x253d('0x11'),_0x2315db))};}}),_0x422fe3[_0x253d('0xb')][_0x253d('0x39')](_0x253d('0x1'),_0x253d('0x45'),'discard',_0x14ddf9),_0x422fe3[_0x253d('0xb')]['registerCustomCallback'](_0x253d('0x5e'),_0x253d('0x45'),_0x253d('0x7'),_0x14ddf9),_0x422fe3[_0x253d('0xb')][_0x253d('0x39')](_0x253d('0x1'),_0x253d('0x59'),'discard',_0x445085),_0x422fe3[_0x253d('0xb')]['registerCustomCallback']('deletion',_0x253d('0x59'),'accept',_0x445085),_0x422fe3[_0x253d('0xb')][_0x253d('0x39')]('insertion',_0x253d('0x59'),_0x253d('0x84'),_0x2aea1d),_0x422fe3[_0x253d('0xb')][_0x253d('0x39')](_0x253d('0x5e'),_0x253d('0x59'),_0x253d('0x84'),_0x2aea1d),_0x422fe3[_0x253d('0xb')][_0x253d('0x39')]('insertion',_0x253d('0x45'),_0x253d('0x84'),_0x55e587),_0x422fe3[_0x253d('0xb')][_0x253d('0x39')](_0x253d('0x5e'),_0x253d('0x45'),'join',_0x55e587);}[_0x253d('0x2d')](){const _0x5bd20c=this[_0x253d('0x5a')],_0x5d684f=_0x5bd20c['model'][_0x253d('0x2e')][_0x253d('0x74')];return(_0x5de76f,_0x25e6bd)=>{_0x5bd20c[_0x253d('0x3a')][_0x253d('0x6a')](_0x1994da=>{const {commandName:_0x2bde38,commandParams:_0x46a6a8}=_0x25e6bd;let _0x4762ca=_0x5de76f[0x0]['end'][_0x253d('0x13')];_0x46a6a8&&_0x46a6a8[0x0]&&!0x1===_0x46a6a8[0x0][_0x253d('0x23')]&&(_0x4762ca=_0x5de76f[0x0][_0x253d('0x44')]['nodeAfter']);const _0x357bd0=_0x1994da[_0x253d('0x56')](_0x4762ca);if(_0x253d('0x3d')==_0x357bd0[_0x253d('0x30')][_0x253d('0x5f')])return;const _0x4d2b63=Array[_0x253d('0x20')](_0x5d684f['getRanges']())['map'](_0xb39740=>_0x40fb04[_0x253d('0x50')](_0xb39740));_0x1994da[_0x253d('0x6c')](_0x357bd0),_0x5bd20c[_0x253d('0x31')][_0x253d('0x1d')](_0x2bde38)[_0x253d('0x80')](),_0x46a6a8[_0x253d('0x6e')]({'forceDefaultExecution':!0x0}),_0x5bd20c[_0x253d('0x77')](_0x2bde38,..._0x46a6a8);const _0x513a5b=_0x4d2b63[_0x253d('0x63')](_0x270bce=>'$graveyard'!=_0x270bce['root'][_0x253d('0x5f')]);_0x513a5b[_0x253d('0x7e')]>0x0&&_0x1994da['setSelection'](_0x513a5b);for(const _0x1f6d11 of _0x4d2b63)_0x1f6d11[_0x253d('0x5c')]();});};}['_getCoordsForCells'](_0x2e2c29){const _0x2014ca=this[_0x253d('0x5a')][_0x253d('0x27')][_0x253d('0x1d')](_0x253d('0x54'));let _0x4db821=Number['MAX_SAFE_INTEGER'],_0xb961b3=Number[_0x253d('0x64')],_0x7b015=Number[_0x253d('0x55')],_0x4b7fd7=Number[_0x253d('0x64')];for(const _0x1ec739 of _0x2e2c29){if(_0x253d('0x3d')==_0x1ec739[_0x253d('0x30')][_0x253d('0x5f')])continue;const {row:_0x59dc28,column:_0x51f8e7}=_0x2014ca[_0x253d('0x34')](_0x1ec739),_0x291659=_0x1ec739['hasAttribute'](_0x253d('0x4c'))?_0x1ec739[_0x253d('0x41')](_0x253d('0x4c'))-0x1:0x0,_0x3bd20e=_0x1ec739[_0x253d('0x5')](_0x253d('0x65'))?_0x1ec739['getAttribute'](_0x253d('0x65'))-0x1:0x0;_0x4db821=_0x59dc28<_0x4db821?_0x59dc28:_0x4db821,_0xb961b3=_0x59dc28+_0x291659>_0xb961b3?_0x59dc28+_0x291659:_0xb961b3,_0x7b015=_0x51f8e7<_0x7b015?_0x51f8e7:_0x7b015,_0x4b7fd7=_0x51f8e7+_0x3bd20e>_0x4b7fd7?_0x51f8e7+_0x3bd20e:_0x4b7fd7;}return{'minRow':_0x4db821,'maxRow':_0xb961b3,'minColumn':_0x7b015,'maxColumn':_0x4b7fd7};}[_0x253d('0x86')](){const _0x1babd9=this[_0x253d('0x5a')],_0x5931aa=_0x1babd9['plugins']['get']('TrackChangesEditing'),_0x3f7308=_0x1babd9[_0x253d('0x27')][_0x253d('0x1d')](_0x253d('0x54'));_0x1babd9[_0x253d('0x3a')][_0x253d('0x2e')]['on'](_0x253d('0x82'),()=>{const _0xd4ecbf=Array[_0x253d('0x20')](_0x1babd9[_0x253d('0x3a')][_0x253d('0x2e')][_0x253d('0x51')][_0x253d('0x46')]());for(const {name:_0x3bfa29,data:_0x1b9ec3}of _0xd4ecbf){const {group:_0x3a4371,id:_0x16e4e5,subType:_0x544a64}=_0x5931aa['_splitMarkerName'](_0x3bfa29);if(_0x253d('0x28')!=_0x3a4371)continue;if(null!=_0x1b9ec3[_0x253d('0x47')])continue;const _0x309dc0=_0x5931aa[_0x253d('0x57')](_0x16e4e5);this[_0x253d('0x73')][_0x253d('0x2f')](_0x544a64)&&this[_0x253d('0x69')][_0x253d('0x76')](_0x309dc0);}},{'priority':'low'});const _0x37b804=(_0x3cfd8b,_0x19c309)=>{let _0x5b7260=!0x1;const _0x282368=_0x19c309['createRangeOn'](_0x3cfd8b),_0x3cde4d=_0x3cfd8b[_0x253d('0x7f')](_0x253d('0x42')),_0x2c8a81=_0x3f7308[_0x253d('0x34')](_0x3cfd8b);for(const _0x2624db of this['_tableSuggestions']){const _0x22a6af=_0x2624db[_0x253d('0x19')],_0x3efbd4=_0x22a6af['startsWith'](_0x253d('0x5d')),_0x560e01=_0x22a6af['substr'](_0x3efbd4?0xa:0x5),_0x7f8f6a=_0x560e01[_0x253d('0x3e')](),_0x4bd6cf=_0x7f8f6a['substr'](0x0,0x3)+_0x253d('0x58'),_0x19b46e=_0x253d('0x4b')+_0x560e01,_0x4ae3c0=_0x253d('0x49')+_0x560e01;if(!_0x2624db[_0x253d('0x43')])continue;if(_0x3cde4d!=_0x2624db[_0x253d('0x66')]()[_0x253d('0x44')][_0x253d('0x7f')](_0x253d('0x42')))continue;if(_0x2624db[_0x253d('0x72')](_0x282368))continue;const _0x489b18=_0x3cfd8b[_0x253d('0x5')](_0x4bd6cf)?_0x3cfd8b[_0x253d('0x41')](_0x4bd6cf)-0x1:0x0,_0x19faa6=this[_0x253d('0x3f')](_0x2624db),_0xb31a55=_0x19faa6[_0x19b46e],_0x4f35a9=_0x19faa6[_0x4ae3c0];_0xb31a55<=_0x2c8a81[_0x7f8f6a]&&_0x2c8a81[_0x7f8f6a]+_0x489b18<=_0x4f35a9&&(_0x2624db['addRange'](_0x282368),_0x5b7260=!0x0);}return _0x5b7260;};_0x1babd9[_0x253d('0x3a')][_0x253d('0x2e')][_0x253d('0xe')](_0xf773b3=>{let _0x3b10fd=!0x1;for(const _0x408d71 of _0x1babd9[_0x253d('0x3a')][_0x253d('0x2e')][_0x253d('0x51')]['getChanges']())if(_0x253d('0x12')==_0x408d71[_0x253d('0x67')]){if(_0x253d('0x45')==_0x408d71[_0x253d('0x1e')])for(const _0x3256bc of _0x408d71['position'][_0x253d('0x21')][_0x253d('0x1a')]())_0x3b10fd=_0x3b10fd||_0x37b804(_0x3256bc,_0xf773b3);else _0x253d('0x83')==_0x408d71[_0x253d('0x1e')]&&(_0x3b10fd=_0x3b10fd||_0x37b804(_0x408d71[_0x253d('0x7d')][_0x253d('0x21')],_0xf773b3));}return _0x3b10fd;});}[_0x253d('0x3f')](_0x54fadc){return this['_getCoordsForCells'](_0x54fadc[_0x253d('0x4e')]()['map'](_0x14b2e5=>_0x14b2e5[_0x253d('0x44')][_0x253d('0x21')]));}}function se(_0x4c4b5a){return Array[_0x253d('0x20')](new Set(_0x4c4b5a)[_0x253d('0xa')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4509=['requires','afterInit','TableCaptionEditing','TrackChangesEditing','has','editor','toggleTableCaption','plugins','get'];(function(_0x526ce3,_0x4509d9){const _0x4dd66a=function(_0x1b2fe6){while(--_0x1b2fe6){_0x526ce3['push'](_0x526ce3['shift']());}};_0x4dd66a(++_0x4509d9);}(_0x4509,0x1be));const _0x4dd6=function(_0x526ce3,_0x4509d9){_0x526ce3=_0x526ce3-0x0;let _0x4dd66a=_0x4509[_0x526ce3];return _0x4dd66a;};import{Plugin as _0x1f856a}from'ckeditor5/src/core';import _0xf59066 from'./table';export default class vt extends _0x1f856a{static get[_0x4dd6('0x4')](){return[_0xf59066];}[_0x4dd6('0x5')](){const _0x3dfe9c=this[_0x4dd6('0x0')];if(!_0x3dfe9c[_0x4dd6('0x2')][_0x4dd6('0x8')](_0x4dd6('0x6')))return;_0x3dfe9c[_0x4dd6('0x2')][_0x4dd6('0x3')](_0x4dd6('0x7'))['enableCommand'](_0x4dd6('0x1'));}}
|