@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230720.0 → 0.0.0-nightly-20230721.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 _0x5cc1=['ListPropertiesEditing','has','toUpperCase','registerDescriptionCallback','selection','_getSuggestionBlocksForListStyle','getAttribute','model','bind','listStyle','styles','push','_LIST_','type','ListUtils','_getTranslationKeyForListStyle','_descriptionFactory','editor','map','_getSuggestionBlocks','commandParams','handleDescriptions','createPositionAt','listType','*Change\x20to:*\x20%0','forward','change','backward','unshift','afterInit','flat','listReversed','getSiblingNodes','listStart','commandName','handleListStartCommand','plugins','getFirstPosition','listItem','locale','getSelectedBlocks','list.properties','createRange','length','filter','parent','element','getLastPosition','get','handleListReversedCommand','startIndex','before','reversed','markMultiRangeBlockFormat','TrackChangesEditing','handleListStyleCommand','replace','enableCommand','format','from'];(function(_0x4bb9c2,_0x5cc1f4){const _0x5e8ce5=function(_0x35abef){while(--_0x35abef){_0x4bb9c2['push'](_0x4bb9c2['shift']());}};_0x5e8ce5(++_0x5cc1f4);}(_0x5cc1,0x1a2));const _0x5e8c=function(_0x4bb9c2,_0x5cc1f4){_0x4bb9c2=_0x4bb9c2-0x0;let _0x5e8ce5=_0x5cc1[_0x4bb9c2];return _0x5e8ce5;};import{Plugin as _0x1d12d8}from'ckeditor5/src/core';import{getTranslation as _0x14e62a}from'../utils/common-translations';export default class nt extends _0x1d12d8{[_0x5e8c('0x1f')](){if(!this[_0x5e8c('0x13')]['plugins'][_0x5e8c('0x3')](_0x5e8c('0x2')))return;const _0x3587e1=this[_0x5e8c('0x13')]['config']['get'](_0x5e8c('0x2b')),_0x217e00=this[_0x5e8c('0x13')]['plugins'][_0x5e8c('0x32')](_0x5e8c('0x38'));_0x3587e1[_0x5e8c('0xc')]&&_0x217e00[_0x5e8c('0x3b')](_0x5e8c('0xb'),this[_0x5e8c('0x39')][_0x5e8c('0xa')](this)),_0x3587e1['reversed']&&_0x217e00[_0x5e8c('0x3b')](_0x5e8c('0x21'),this[_0x5e8c('0x33')][_0x5e8c('0xa')](this)),_0x3587e1[_0x5e8c('0x34')]&&_0x217e00[_0x5e8c('0x3b')]('listStart',this[_0x5e8c('0x25')][_0x5e8c('0xa')](this)),_0x217e00[_0x5e8c('0x12')][_0x5e8c('0x5')](this[_0x5e8c('0x17')][_0x5e8c('0xa')](this));}[_0x5e8c('0x39')](_0x1f6024,_0x132fcb={}){const _0x4a906b=this[_0x5e8c('0x13')][_0x5e8c('0x26')][_0x5e8c('0x32')](_0x5e8c('0x38')),_0x1a598d=this['_getSuggestionBlocksForListStyle']();this['editor'][_0x5e8c('0x9')][_0x5e8c('0x1c')](()=>{_0x4a906b[_0x5e8c('0x37')](_0x1a598d,{'commandName':_0x5e8c('0xb'),'commandParams':[{'type':_0x132fcb[_0x5e8c('0xf')]}],'formatGroupId':_0x5e8c('0xb')});});}[_0x5e8c('0x33')](_0xe65cd6,_0x234109={}){const _0x531865=this[_0x5e8c('0x13')][_0x5e8c('0x26')][_0x5e8c('0x32')](_0x5e8c('0x38')),_0x17ba30=this[_0x5e8c('0x15')](_0x474fe7=>_0x474fe7['is'](_0x5e8c('0x30'),'listItem')&&'numbered'===_0x474fe7[_0x5e8c('0x8')](_0x5e8c('0x19')));if(_0x17ba30[_0x5e8c('0x2d')]<0x1)return;const _0x3fa692=_0x17ba30[_0x5e8c('0x14')](_0x33be18=>this['editor'][_0x5e8c('0x9')][_0x5e8c('0x2c')](this[_0x5e8c('0x13')][_0x5e8c('0x9')]['createPositionAt'](_0x33be18,_0x5e8c('0x35')),this['editor'][_0x5e8c('0x9')][_0x5e8c('0x18')](_0x33be18,0x0)));this[_0x5e8c('0x13')][_0x5e8c('0x9')]['change'](()=>{_0x531865[_0x5e8c('0x37')](_0x3fa692,{'commandName':'listReversed','commandParams':[{'reversed':_0x234109[_0x5e8c('0x36')]}],'formatGroupId':_0x5e8c('0x21')});});}[_0x5e8c('0x25')](_0x2db1fb,_0x2dce99={}){const _0x2d5adb=this[_0x5e8c('0x13')]['plugins'][_0x5e8c('0x32')](_0x5e8c('0x38')),_0x16229e=this['_getSuggestionBlocks'](_0x87920b=>_0x87920b['is']('element',_0x5e8c('0x28'))&&'numbered'===_0x87920b['getAttribute'](_0x5e8c('0x19')));if(_0x16229e['length']<0x1)return;const _0x38372d=_0x16229e[_0x5e8c('0x14')](_0x5c8f83=>this[_0x5e8c('0x13')][_0x5e8c('0x9')][_0x5e8c('0x2c')](this[_0x5e8c('0x13')][_0x5e8c('0x9')][_0x5e8c('0x18')](_0x5c8f83,_0x5e8c('0x35')),this[_0x5e8c('0x13')][_0x5e8c('0x9')][_0x5e8c('0x18')](_0x5c8f83,0x0)));this[_0x5e8c('0x13')][_0x5e8c('0x9')][_0x5e8c('0x1c')](()=>{_0x2d5adb['markMultiRangeBlockFormat'](_0x38372d,{'commandName':_0x5e8c('0x23'),'commandParams':[{'startIndex':_0x2dce99['startIndex']}],'formatGroupId':'listStart'});});}[_0x5e8c('0x17')](_0x29da4d){const _0x4f9ae4=this['editor'][_0x5e8c('0x29')],{data:_0x246fb0}=_0x29da4d;if(!_0x246fb0)return;let _0x3b1f90,_0x5b3b96;switch(_0x246fb0[_0x5e8c('0x24')]){case _0x5e8c('0xb'):_0x3b1f90=_0x5e8c('0x1a'),_0x5b3b96={'type':_0x5e8c('0x0'),'content':_0x14e62a(_0x4f9ae4,_0x3b1f90,_0x14e62a(_0x4f9ae4,this[_0x5e8c('0x11')](_0x246fb0[_0x5e8c('0x16')][0x0][_0x5e8c('0xf')])))};break;case _0x5e8c('0x21'):_0x3b1f90=_0x246fb0[_0x5e8c('0x16')][0x0][_0x5e8c('0x36')]?'*Format:*\x20set\x20order\x20to\x20reversed':'*Format:*\x20set\x20order\x20to\x20regular',_0x5b3b96={'type':_0x5e8c('0x0'),'content':_0x14e62a(_0x4f9ae4,_0x3b1f90)};break;case'listStart':_0x3b1f90='*Format:*\x20set\x20start\x20index\x20to\x20%0',_0x5b3b96={'type':_0x5e8c('0x0'),'content':_0x14e62a(_0x4f9ae4,_0x3b1f90,_0x246fb0[_0x5e8c('0x16')][0x0][_0x5e8c('0x34')])};}return _0x5b3b96;}[_0x5e8c('0x7')](){var _0x488cd6,_0x2c1183,_0xda93d4,_0xff919d;const _0xa8c8c=this['editor']['plugins'][_0x5e8c('0x32')](_0x5e8c('0x10'));let _0x2de694=Array[_0x5e8c('0x1')](this['editor'][_0x5e8c('0x9')]['document'][_0x5e8c('0x6')][_0x5e8c('0x2a')]());return(null===(_0x488cd6=_0x2de694[0x0])||void 0x0===_0x488cd6?void 0x0:_0x488cd6['is'](_0x5e8c('0x30'),'listItem'))&&_0x2de694[_0x5e8c('0x1e')](..._0xa8c8c[_0x5e8c('0x22')](this[_0x5e8c('0x13')][_0x5e8c('0x9')]['document'][_0x5e8c('0x6')][_0x5e8c('0x27')](),_0x5e8c('0x1d'))),(null===(_0x2c1183=_0x2de694[_0x2de694['length']-0x1])||void 0x0===_0x2c1183?void 0x0:_0x2c1183['is'](_0x5e8c('0x30'),'listItem'))&&_0x2de694[_0x5e8c('0xd')](..._0xa8c8c[_0x5e8c('0x22')](this['editor']['model']['document']['selection'][_0x5e8c('0x31')](),_0x5e8c('0x1b'))),_0x2de694=[...new Set(_0x2de694)],(null===(_0xff919d=null===(_0xda93d4=this[_0x5e8c('0x13')][_0x5e8c('0x9')]['document'][_0x5e8c('0x6')][_0x5e8c('0x27')]())||void 0x0===_0xda93d4?void 0x0:_0xda93d4[_0x5e8c('0x2f')])||void 0x0===_0xff919d?void 0x0:_0xff919d['is'](_0x5e8c('0x30'),_0x5e8c('0x28')))&&(_0x2de694=_0x2de694[_0x5e8c('0x2e')](_0x461944=>_0x461944['is'](_0x5e8c('0x30'),_0x5e8c('0x28')))),_0x2de694;}[_0x5e8c('0x15')](_0x1f69d6){const _0x373d22=this['editor'][_0x5e8c('0x26')]['get'](_0x5e8c('0x10'));let _0x539845=Array['from'](this[_0x5e8c('0x13')]['model']['document'][_0x5e8c('0x6')][_0x5e8c('0x2a')]())['filter'](_0x1f69d6)[_0x5e8c('0x14')](_0x435d35=>{const _0x5b06fb=this[_0x5e8c('0x13')][_0x5e8c('0x9')][_0x5e8c('0x18')](_0x435d35,0x0);return[..._0x373d22['getSiblingNodes'](_0x5b06fb,_0x5e8c('0x1d')),..._0x373d22[_0x5e8c('0x22')](_0x5b06fb,_0x5e8c('0x1b'))];})[_0x5e8c('0x20')]();return _0x539845=[...new Set(_0x539845)],_0x539845;}['_getTranslationKeyForListStyle'](_0x58ba32){return'ELEMENT_'+this[_0x5e8c('0x13')]['plugins'][_0x5e8c('0x32')](_0x5e8c('0x10'))['getListTypeFromListStyleType'](_0x58ba32)[_0x5e8c('0x4')]()+_0x5e8c('0xe')+_0x58ba32[_0x5e8c('0x4')]()[_0x5e8c('0x3a')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4dbb=['plugins','options','attribute:url:media','elementToElement','get','locale','registerElementLabel','showSuggestionHighlights','conversion','dataDowncast','for','stop','data','mediaEmbed','MediaEmbedEditing','createEmptyElement','media','afterInit','div','high'];(function(_0x2cd957,_0x4dbb76){const _0x11b906=function(_0x1b3cf4){while(--_0x1b3cf4){_0x2cd957['push'](_0x2cd957['shift']());}};_0x11b906(++_0x4dbb76);}(_0x4dbb,0x120));const _0x11b9=function(_0x2cd957,_0x4dbb76){_0x2cd957=_0x2cd957-0x0;let _0x11b906=_0x4dbb[_0x2cd957];return _0x11b906;};import{Plugin as _0x54e843}from'ckeditor5/src/core';import{getTranslation as _0x1908e0}from'../utils/common-translations';export default class ot extends _0x54e843{[_0x11b9('0x9')](){const _0x422853=this['editor'];if(!_0x422853[_0x11b9('0xc')]['has'](_0x11b9('0x6')))return;const _0x5c30bf=_0x422853[_0x11b9('0xc')][_0x11b9('0x10')]('TrackChangesEditing'),_0x35fd33=_0x422853[_0x11b9('0x11')];_0x5c30bf['enableCommand'](_0x11b9('0x5')),_0x5c30bf['_descriptionFactory'][_0x11b9('0x12')]('media',_0x604aeb=>_0x1908e0(_0x35fd33,'ELEMENT_MEDIA',_0x604aeb)),_0x422853[_0x11b9('0x0')][_0x11b9('0x2')](_0x11b9('0x1'))[_0x11b9('0xf')]({'model':_0x11b9('0x8'),'view':(_0x4c96e0,{writer:_0x4d3274,options:_0x4dd103})=>{if(_0x4dd103[_0x11b9('0x13')])return _0x4d3274[_0x11b9('0x7')](_0x11b9('0xa'));},'converterPriority':_0x11b9('0xb')}),_0x422853[_0x11b9('0x4')]['downcastDispatcher']['on'](_0x11b9('0xe'),(_0x5793ad,_0xf6ede7,_0x67cccc)=>{_0x67cccc[_0x11b9('0xd')][_0x11b9('0x13')]&&_0x5793ad[_0x11b9('0x3')]();},{'priority':'high'});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4bcb=['plugins','TrackChangesEditing','afterInit','MentionEditing','enableCommand'];(function(_0x551957,_0x4bcb4a){const _0x11c702=function(_0x4b4183){while(--_0x4b4183){_0x551957['push'](_0x551957['shift']());}};_0x11c702(++_0x4bcb4a);}(_0x4bcb,0x1c9));const _0x11c7=function(_0x551957,_0x4bcb4a){_0x551957=_0x551957-0x0;let _0x11c702=_0x4bcb[_0x551957];return _0x11c702;};import{Plugin as _0x24a7cd}from'ckeditor5/src/core';export default class rt extends _0x24a7cd{[_0x11c7('0x0')](){const _0x3b418c=this['editor'];_0x3b418c[_0x11c7('0x3')]['has'](_0x11c7('0x1'))&&_0x3b418c['plugins']['get'](_0x11c7('0x4'))[_0x11c7('0x2')]('mention');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4d14=['afterInit','TrackChangesEditing','locale','PageBreakEditing','pageBreak','registerElementLabel','has','get','_descriptionFactory','plugins'];(function(_0x112b1a,_0x4d1449){const _0x4d1c88=function(_0x200c47){while(--_0x200c47){_0x112b1a['push'](_0x112b1a['shift']());}};_0x4d1c88(++_0x4d1449);}(_0x4d14,0xac));const _0x4d1c=function(_0x112b1a,_0x4d1449){_0x112b1a=_0x112b1a-0x0;let _0x4d1c88=_0x4d14[_0x112b1a];return _0x4d1c88;};import{Plugin as _0x28a786}from'ckeditor5/src/core';import{getTranslation as _0x47a757}from'../utils/common-translations';export default class at extends _0x28a786{[_0x4d1c('0x8')](){const _0xa706dd=this['editor'];if(!_0xa706dd['plugins'][_0x4d1c('0x4')](_0x4d1c('0x1')))return;_0xa706dd[_0x4d1c('0x7')][_0x4d1c('0x5')]('TrackChangesEditing')['enableCommand'](_0x4d1c('0x2'));const _0x6421f9=_0xa706dd['plugins']['get'](_0x4d1c('0x9')),_0x88efe9=_0xa706dd[_0x4d1c('0x0')];_0x6421f9[_0x4d1c('0x6')][_0x4d1c('0x3')](_0x4d1c('0x2'),_0x2d02de=>_0x47a757(_0x88efe9,'ELEMENT_PAGE_BREAK',_0x2d02de));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c6c=['writer','isBlock','addMarker:suggestion:insertion','schema','paragraph','downcastDispatcher','selection','options','insert','_descriptionFactory','start','TrackChangesEditing','markerRange','getSelectedBlocks','isLimit','name','plugins','filter','span','ELEMENT_PARAGRAPH','editor','markBlockFormat','registerDescriptionCallback','consumable','blockName','get','registerElementLabel','type','markerName','model','has','enableCommand','*Insert:*\x20%0','insertParagraph','getItemLabel','ck-suggestion-marker-split','activeMarkers','consume','isTouching','end','insertion','commandName','$text','createUIElement','showSuggestionHighlights','ck-suggestion-marker--active','locale','addClass','includes','editing','nodeAfter','mapper','highest','checkChild','isObject'];(function(_0xbfd1c2,_0x2c6cd3){const _0x4baf2a=function(_0x315c86){while(--_0x315c86){_0xbfd1c2['push'](_0xbfd1c2['shift']());}};_0x4baf2a(++_0x2c6cd3);}(_0x2c6c,0x96));const _0x4baf=function(_0xbfd1c2,_0x2c6cd3){_0xbfd1c2=_0xbfd1c2-0x0;let _0x4baf2a=_0x2c6c[_0xbfd1c2];return _0x4baf2a;};import{Plugin as _0x32017b}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x13f42a}from'./utils';import{getTranslation as _0x546385}from'../utils/common-translations';export default class ct extends _0x32017b{['afterInit'](){const _0x594805=this[_0x4baf('0x23')];if(!_0x594805[_0x4baf('0x1f')][_0x4baf('0x2d')]('Paragraph'))return;const _0x952bc0=_0x594805[_0x4baf('0x6')],_0x3a949f=_0x594805[_0x4baf('0x1f')]['get'](_0x4baf('0x1a'));_0x3a949f[_0x4baf('0x18')][_0x4baf('0x29')](_0x4baf('0x13'),_0x2d555f=>_0x546385(_0x952bc0,_0x4baf('0x22'),_0x2d555f)),_0x3a949f['enableCommand'](_0x4baf('0x13'),(_0x469136,_0x3701dd={})=>{const _0x53b7c0=_0x594805[_0x4baf('0x2c')]['document'],_0x52fe5b=_0x3701dd[_0x4baf('0x15')]||_0x53b7c0[_0x4baf('0x15')],_0x217f75=Array['from'](_0x52fe5b[_0x4baf('0x1c')]())[_0x4baf('0x20')](_0x51553f=>function(_0x374d01,_0x5d638e){return _0x5d638e[_0x4baf('0xd')](_0x374d01['parent'],_0x4baf('0x13'))&&!_0x5d638e[_0x4baf('0xe')](_0x374d01)&&_0x4baf('0x13')!=_0x374d01['name'];}(_0x51553f,this[_0x4baf('0x23')][_0x4baf('0x2c')][_0x4baf('0x12')]));_0x594805['model']['change'](()=>{for(const _0x1d04f4 of _0x217f75)_0x3a949f[_0x4baf('0x24')](_0x1d04f4,{'commandName':_0x4baf('0x13'),'commandParams':[],'formatGroupId':_0x4baf('0x27')},_0x13f42a(_0x1d04f4));});}),_0x3a949f[_0x4baf('0x18')][_0x4baf('0x25')](_0x1caade=>{const {data:_0x4d8e1b}=_0x1caade;if(_0x4d8e1b&&_0x4baf('0x13')==_0x4d8e1b[_0x4baf('0x1')])return{'type':'format','content':_0x546385(_0x952bc0,'*Change\x20to:*\x20%0',_0x546385(_0x952bc0,'ELEMENT_PARAGRAPH'))};}),_0x3a949f[_0x4baf('0x2e')](_0x4baf('0x30')),_0x594805[_0x4baf('0x9')]['downcastDispatcher']['on'](_0x4baf('0x11'),ar(_0x594805),{'priority':'highest'}),_0x594805['data'][_0x4baf('0x14')]['on'](_0x4baf('0x11'),(_0x23c0ea,_0x7ebcc2,_0x5db7c0)=>{_0x5db7c0[_0x4baf('0x16')][_0x4baf('0x4')]&&ar(_0x594805,{'showActiveMarker':!0x1})(_0x23c0ea,_0x7ebcc2,_0x5db7c0);},{'priority':_0x4baf('0xc')});const _0x1ea093=_0x3a949f['_descriptionFactory'];_0x1ea093[_0x4baf('0x25')](_0x5f4f95=>{if(_0x4baf('0x0')!==_0x5f4f95[_0x4baf('0x2a')])return;const {start:_0x4e9174,end:_0x4dbd9c}=_0x5f4f95['getFirstRange']();if(!_0x4e9174[_0x4baf('0x35')](_0x4dbd9c)||!_0x4e9174[_0x4baf('0xa')])return;const _0x54b76d=_0x594805[_0x4baf('0x2c')]['schema'],_0x44864e=_0x4e9174[_0x4baf('0xa')];return _0x54b76d[_0x4baf('0x10')](_0x44864e)&&!_0x54b76d[_0x4baf('0x1d')](_0x44864e)&&_0x54b76d[_0x4baf('0xd')](_0x44864e,_0x4baf('0x2'))?{'type':_0x4baf('0x0'),'content':_0x546385(_0x952bc0,_0x4baf('0x2f'),_0x1ea093[_0x4baf('0x31')](_0x44864e,0x1))}:void 0x0;});}}function ar(_0x8588ff,{showActiveMarker:_0x5a6c1c=!0x0}={}){return(_0x4a1959,_0x679451,_0x2b6e84)=>{const _0x412329=_0x8588ff[_0x4baf('0x1f')][_0x4baf('0x28')]('TrackChangesEditing'),_0x187d3e=_0x679451[_0x4baf('0x1b')][_0x4baf('0x19')],_0x415f76=_0x679451['markerRange'][_0x4baf('0x36')],_0x23150f=_0x8588ff[_0x4baf('0x2c')][_0x4baf('0x12')];if(!_0x187d3e[_0x4baf('0x35')](_0x415f76)||!_0x187d3e[_0x4baf('0xa')])return;const _0x142237=_0x187d3e['nodeAfter'];if(_0x23150f[_0x4baf('0x10')](_0x142237)&&!_0x23150f[_0x4baf('0x1d')](_0x142237)&&_0x23150f['checkChild'](_0x142237,_0x4baf('0x2'))){if(!_0x2b6e84[_0x4baf('0x26')][_0x4baf('0x34')](_0x679451[_0x4baf('0x1b')],_0x4a1959[_0x4baf('0x1e')]))return;const _0x55692c=_0x2b6e84[_0x4baf('0xf')][_0x4baf('0x3')](_0x4baf('0x21'),{'class':_0x4baf('0x32')}),_0xa0aed5=_0x2b6e84['mapper']['toViewPosition'](_0x415f76);_0x5a6c1c&&_0x412329[_0x4baf('0x33')][_0x4baf('0x8')](_0x679451[_0x4baf('0x2b')])&&_0x2b6e84['writer'][_0x4baf('0x7')](_0x4baf('0x5'),_0x55692c),_0x2b6e84['writer'][_0x4baf('0x17')](_0xa0aed5,_0x55692c),_0x2b6e84[_0x4baf('0xb')]['bindElementToMarker'](_0x55692c,_0x679451[_0x4baf('0x2b')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x16b8=['plugins','format','markInlineFormat','has','getAttributeProperties','getRanges','change','from','model','removeFormat','TrackChangesEditing','document','afterInit','isFormatting','commandName','createRangeOn','enableCommand','editor','registerDescriptionCallback','locale','schema','isCollapsed','getItems','_descriptionFactory'];(function(_0x305c49,_0x16b804){const _0x596617=function(_0x4dcf10){while(--_0x4dcf10){_0x305c49['push'](_0x305c49['shift']());}};_0x596617(++_0x16b804);}(_0x16b8,0x70));const _0x5966=function(_0x305c49,_0x16b804){_0x305c49=_0x305c49-0x0;let _0x596617=_0x16b8[_0x305c49];return _0x596617;};import{Plugin as _0x283096}from'ckeditor5/src/core';import{getTranslation as _0x3f13ca}from'../utils/common-translations';export default class ht extends _0x283096{[_0x5966('0x14')](){const _0x2efb6b=this[_0x5966('0x1')];if(!_0x2efb6b[_0x5966('0x8')][_0x5966('0xb')]('RemoveFormatEditing'))return;const _0x456a04=_0x2efb6b[_0x5966('0x8')]['get'](_0x5966('0x12'));_0x456a04[_0x5966('0x0')](_0x5966('0x11'),_0x2bf5bc=>{const _0x52153d=_0x2efb6b[_0x5966('0x10')][_0x5966('0x13')]['selection'];_0x52153d[_0x5966('0x5')]?_0x2bf5bc():_0x2efb6b[_0x5966('0x10')][_0x5966('0xe')](()=>{const _0x4a1909=Array[_0x5966('0xf')](_0x52153d[_0x5966('0xd')]());for(const _0x23ee06 of _0x4a1909)for(const _0x1c94f1 of _0x23ee06[_0x5966('0x6')]())eo(_0x1c94f1,_0x2efb6b[_0x5966('0x10')][_0x5966('0x4')])&&_0x456a04[_0x5966('0xa')](_0x2efb6b[_0x5966('0x10')][_0x5966('0x17')](_0x1c94f1),{'commandName':_0x5966('0x11'),'commandParams':[]});});}),_0x456a04[_0x5966('0x7')][_0x5966('0x2')](_0x385015=>{const {data:_0x4530f2}=_0x385015;if(_0x4530f2&&'removeFormat'==_0x4530f2[_0x5966('0x16')])return{'type':_0x5966('0x9'),'content':_0x3f13ca(_0x2efb6b[_0x5966('0x3')],'*Remove\x20all\x20formatting*')};});}}function eo(_0x1e957e,_0x33eaa5){for(const [_0x41df24]of _0x1e957e['getAttributes']()){const _0x28abd3=_0x33eaa5[_0x5966('0xc')](_0x41df24);if(_0x28abd3&&_0x28abd3[_0x5966('0x15')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2ec8=['get','discardSuggestion','acceptSelectedSuggestions','discardAllSuggestions','plugins','acceptSuggestion','goToNextRestrictedEditingException','acceptAllSuggestions','has','enableCommand','goToPreviousRestrictedEditingException','RestrictedEditingModeEditing','TrackChangesEditing'];(function(_0x39991e,_0x2ec8a0){const _0x4f3285=function(_0x3f2e82){while(--_0x3f2e82){_0x39991e['push'](_0x39991e['shift']());}};_0x4f3285(++_0x2ec8a0);}(_0x2ec8,0x156));const _0x4f32=function(_0x39991e,_0x2ec8a0){_0x39991e=_0x39991e-0x0;let _0x4f3285=_0x2ec8[_0x39991e];return _0x4f3285;};import{Plugin as _0x33f453}from'ckeditor5/src/core';export default class ut extends _0x33f453{['afterInit'](){const _0xb8afb8=this['editor'];if(!_0xb8afb8[_0x4f32('0x0')][_0x4f32('0x4')](_0x4f32('0x7')))return;const _0x2d288e=_0xb8afb8[_0x4f32('0x0')][_0x4f32('0x9')](_0x4f32('0x8'));_0x2d288e[_0x4f32('0x5')](_0x4f32('0x6')),_0x2d288e['enableCommand'](_0x4f32('0x2'));const _0xddc7d9=_0xb8afb8[_0x4f32('0x0')][_0x4f32('0x9')](_0x4f32('0x7'));_0xddc7d9[_0x4f32('0x5')]('trackChanges'),_0xddc7d9['enableCommand'](_0x4f32('0x1')),_0xddc7d9[_0x4f32('0x5')](_0x4f32('0xa')),_0xddc7d9[_0x4f32('0x5')](_0x4f32('0x3')),_0xddc7d9[_0x4f32('0x5')](_0x4f32('0xc')),_0xddc7d9[_0x4f32('0x5')](_0x4f32('0xb')),_0xddc7d9[_0x4f32('0x5')]('discardSelectedSuggestions');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x29f8=['softBreak','markerName','addMarker:suggestion','ck-suggestion-marker--active','addMarker:suggestion:insertion','toViewPosition','init','showSuggestionHighlights','ck-suggestion-marker-','consumable','writer','activeMarkers','deletion','_descriptionFactory','get','options','downcastDispatcher','getItems','ELEMENT_LINE_BREAK','locale','includes','test','createUIElement','name','enableCommand','requires','mapper','editor','plugins','addClass','bindElementToMarker','markerRange','element','TrackChangesEditing','addMarker:suggestion:deletion','editing','split','model'];(function(_0x18b29e,_0x29f81f){const _0xa0d13=function(_0x238324){while(--_0x238324){_0x18b29e['push'](_0x18b29e['shift']());}};_0xa0d13(++_0x29f81f);}(_0x29f8,0xcb));const _0xa0d1=function(_0x18b29e,_0x29f81f){_0x18b29e=_0x18b29e-0x0;let _0xa0d13=_0x29f8[_0x18b29e];return _0xa0d13;};import{Plugin as _0x3d21a1}from'ckeditor5/src/core';import{ShiftEnter as _0x462332}from'ckeditor5/src/enter';import{getTranslation as _0x160936}from'../utils/common-translations';export default class ft extends _0x3d21a1{static get[_0xa0d1('0xc')](){return[_0x462332];}[_0xa0d1('0x1f')](){const _0x4776bc=this[_0xa0d1('0xe')],_0x2645fe=_0x4776bc[_0xa0d1('0xf')][_0xa0d1('0x1')](_0xa0d1('0x14'));_0x2645fe[_0xa0d1('0xb')]('shiftEnter'),_0x4776bc[_0xa0d1('0x16')][_0xa0d1('0x3')]['on'](_0xa0d1('0x1d'),re(_0x4776bc),{'priority':'high'}),_0x4776bc['editing'][_0xa0d1('0x3')]['on'](_0xa0d1('0x15'),re(_0x4776bc),{'priority':'high'}),_0x4776bc['data'][_0xa0d1('0x3')]['on'](_0xa0d1('0x1b'),(_0x28818e,_0x7b9b3a,_0x123060)=>{_0x123060[_0xa0d1('0x2')][_0xa0d1('0x20')]&&re(_0x4776bc,{'showActiveMarker':!0x1})(_0x28818e,_0x7b9b3a,_0x123060);}),_0x2645fe[_0xa0d1('0x0')]['registerElementLabel'](_0xa0d1('0x19'),_0x33aab3=>_0x160936(_0x4776bc[_0xa0d1('0x6')],_0xa0d1('0x5'),_0x33aab3));}}function re(_0xf25c0,{showActiveMarker:_0x2d5449=!0x0}={}){return(_0x3cffec,_0x5ca93d,_0xe69def)=>{const _0x2d995a=_0xf25c0['plugins']['get'](_0xa0d1('0x14'));if(!_0xe69def[_0xa0d1('0x22')][_0xa0d1('0x8')](_0x5ca93d['markerRange'],_0x3cffec[_0xa0d1('0xa')]))return;const _0x54dd56=_0xf25c0[_0xa0d1('0x18')];for(const _0x3ff372 of _0x5ca93d[_0xa0d1('0x12')][_0xa0d1('0x4')]()){if(!_0x3ff372['is'](_0xa0d1('0x13'),'softBreak'))continue;const _0x3cd954=_0xa0d1('0x25')==_0x5ca93d[_0xa0d1('0x1a')][_0xa0d1('0x17')](':')[0x1]?'merge':_0xa0d1('0x17'),_0x145404=_0xe69def[_0xa0d1('0x23')][_0xa0d1('0x9')]('span',{'class':_0xa0d1('0x21')+_0x3cd954}),_0x384d80=_0xe69def[_0xa0d1('0xd')][_0xa0d1('0x1e')](_0x54dd56['createPositionBefore'](_0x3ff372));_0x2d5449&&_0x2d995a[_0xa0d1('0x24')][_0xa0d1('0x7')](_0x5ca93d[_0xa0d1('0x1a')])&&_0xe69def[_0xa0d1('0x23')][_0xa0d1('0x10')](_0xa0d1('0x1c'),_0x145404),_0xe69def[_0xa0d1('0x23')]['insert'](_0x384d80,_0x145404),_0xe69def[_0xa0d1('0xd')][_0xa0d1('0x11')](_0x145404,_0x5ca93d[_0xa0d1('0x1a')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2576=['markInlineFormat','forceValue','TrackChangesEditing','commandParams','FORMAT_RESTRICTED_DISABLED','model','restrictedEditingException','selection','get','getRanges','change','has','commands','isCollapsed','format','FORMAT_RESTRICTED_ENABLED','document','locale','editor','plugins','value','_descriptionFactory'];(function(_0xbf98f1,_0x25763a){const _0x8bb5e0=function(_0x4f8c72){while(--_0x4f8c72){_0xbf98f1['push'](_0xbf98f1['shift']());}};_0x8bb5e0(++_0x25763a);}(_0x2576,0x96));const _0x8bb5=function(_0xbf98f1,_0x25763a){_0xbf98f1=_0xbf98f1-0x0;let _0x8bb5e0=_0x2576[_0xbf98f1];return _0x8bb5e0;};import{Plugin as _0x54fc5e}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x252bb5}from'./utils';import{getTranslation as _0x4eb000}from'../utils/common-translations';export default class lt extends _0x54fc5e{['afterInit'](){const _0x23577f=this[_0x8bb5('0x0')],_0x471b97=_0x23577f[_0x8bb5('0x9')],_0x482fba=_0x23577f[_0x8bb5('0x15')];if(!_0x23577f[_0x8bb5('0x1')][_0x8bb5('0xf')]('StandardEditingModeEditing'))return;const _0x767f78=_0x23577f[_0x8bb5('0x1')][_0x8bb5('0xc')](_0x8bb5('0x6')),_0x422085=_0x8bb5('0xa'),_0x2c1a47=_0x23577f[_0x8bb5('0x10')][_0x8bb5('0xc')](_0x422085);_0x767f78['enableCommand'](_0x422085,(_0x136c64,_0x3177cc={})=>{const _0x7cd64=_0x471b97[_0x8bb5('0x14')][_0x8bb5('0xb')];if(_0x7cd64[_0x8bb5('0x11')])return void _0x136c64(_0x3177cc);const _0x3a875b=void 0x0!==_0x3177cc[_0x8bb5('0x5')]?_0x3177cc[_0x8bb5('0x5')]:!_0x2c1a47[_0x8bb5('0x2')];_0x471b97[_0x8bb5('0xe')](()=>{const _0x14912f=Array['from'](_0x7cd64[_0x8bb5('0xd')]());for(const _0x19fbc6 of _0x14912f){const _0x24db6f=_0x3a875b?[_0x19fbc6]:_0x252bb5(_0x422085,_0x19fbc6,_0x471b97);for(const _0x150a3c of _0x24db6f)_0x767f78[_0x8bb5('0x4')](_0x150a3c,{'commandName':_0x422085,'commandParams':[{'forceValue':_0x3a875b}]});}});}),_0x767f78[_0x8bb5('0x3')]['registerDescriptionCallback'](_0x116f6e=>{const {data:_0x15c0c7}=_0x116f6e;if(_0x15c0c7&&_0x15c0c7['commandName']==_0x422085)return _0x15c0c7[_0x8bb5('0x7')][0x0][_0x8bb5('0x5')]?{'type':'format','content':_0x4eb000(_0x482fba,_0x8bb5('0x13'))}:{'type':_0x8bb5('0x12'),'content':_0x4eb000(_0x482fba,_0x8bb5('0x8'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1fa8=['_getStyleDefinition','every','config','_descriptionFactory','getAttribute','add','commandName','Style','modelElements','document','normalizeConfig','markBlockFormat','from','has','editor','plugins','TrackChangesEditing','block','markInlineFormat','style.definitions','*Remove\x20format:*\x20%0','name','forceValue','getSelectedBlocks','format','getItems','classes','enabledStyles','isBlock','styleName','style:','getAncestors','_getRangesWithClasses','style','model','change','getRanges','push','find','includes','toLowerCase','StyleUtils','element','value','commands','commandParams','afterInit','getDefinitionsForView','get','inline','*Format:*\x20%0'];(function(_0x5d0685,_0x1fa855){const _0x364aa7=function(_0x5bc7e2){while(--_0x5bc7e2){_0x5d0685['push'](_0x5d0685['shift']());}};_0x364aa7(++_0x1fa855);}(_0x1fa8,0x1eb));const _0x364a=function(_0x5d0685,_0x1fa855){_0x5d0685=_0x5d0685-0x0;let _0x364aa7=_0x1fa8[_0x5d0685];return _0x364aa7;};import{Plugin as _0x5e3efd}from'ckeditor5/src/core';import{getTranslation as _0x1fed5d}from'../utils/common-translations';export default class gt extends _0x5e3efd{[_0x364a('0xe')](){const _0x24173f=this[_0x364a('0x21')];if(!_0x24173f[_0x364a('0x22')][_0x364a('0x20')](_0x364a('0x1a')))return;const _0x5dddad=_0x24173f[_0x364a('0xc')][_0x364a('0x10')](_0x364a('0x1')),_0x59c719=_0x24173f[_0x364a('0x22')][_0x364a('0x10')](_0x364a('0x23')),_0x4c2a69=_0x24173f['locale'],_0x569173=_0x24173f[_0x364a('0x22')][_0x364a('0x10')]('DataSchema'),_0x410841=_0x24173f['plugins'][_0x364a('0x10')](_0x364a('0x9'))[_0x364a('0x1d')](_0x569173,_0x24173f[_0x364a('0x15')][_0x364a('0x10')](_0x364a('0x26')));_0x59c719['enableCommand'](_0x364a('0x1'),(_0x517373,{styleName:_0x23c9fa})=>{const _0x4aaf84=_0x24173f[_0x364a('0x2')][_0x364a('0x1c')]['selection'],_0x2c0eaf=this[_0x364a('0x13')](_0x23c9fa,_0x410841);if(!_0x2c0eaf)return;if(!_0x5dddad[_0x364a('0x2e')][_0x364a('0x7')](_0x23c9fa))return;if(_0x4aaf84['isCollapsed']&&!_0x2c0eaf['isBlock'])return void _0x517373({'styleName':_0x23c9fa});const _0x182eb0=!_0x5dddad[_0x364a('0xb')]['includes'](_0x2c0eaf[_0x364a('0x28')]);if(_0x2c0eaf[_0x364a('0x2f')]){const _0x2cb623=function(_0x3eeb0a,_0x571a1a){const _0x14f6df=new Set();for(const _0x330085 of _0x3eeb0a){const _0x5c5689=_0x330085[_0x364a('0x32')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x533051 of _0x5c5689)if(_0x571a1a[_0x364a('0x7')](_0x533051[_0x364a('0x28')])){_0x14f6df[_0x364a('0x18')](_0x533051);break;}}return _0x14f6df;}(_0x4aaf84[_0x364a('0x2a')](),_0x2c0eaf[_0x364a('0x1b')]);_0x24173f[_0x364a('0x2')]['change'](()=>{for(const _0x5ea372 of _0x2cb623)_0x59c719[_0x364a('0x1e')](_0x5ea372,{'commandName':_0x364a('0x1'),'commandParams':[{'styleName':_0x23c9fa,'forceValue':_0x182eb0}],'formatGroupId':_0x364a('0x31')+_0x23c9fa});});}else{let _0x4c1d5a=Array[_0x364a('0x1f')](_0x4aaf84[_0x364a('0x4')]());if(!_0x182eb0){const _0x57b787=Array[_0x364a('0x1f')](_0x569173[_0x364a('0xf')](_0x2c0eaf[_0x364a('0xa')],!0x1))[0x0][_0x364a('0x2')],_0x343269=[];for(const _0x37b12f of _0x4c1d5a){const _0xb399c0=this[_0x364a('0x0')](_0x24173f['model'],_0x37b12f,_0x2c0eaf[_0x364a('0x2d')],_0x57b787);_0x343269[_0x364a('0x5')](..._0xb399c0);}_0x4c1d5a=_0x343269;}_0x24173f[_0x364a('0x2')][_0x364a('0x3')](()=>{for(const _0xd6496f of _0x4c1d5a)_0x59c719[_0x364a('0x25')](_0xd6496f,{'commandName':_0x364a('0x1'),'commandParams':[{'styleName':_0x23c9fa,'forceValue':_0x182eb0}]});});}}),_0x59c719[_0x364a('0x16')]['registerDescriptionCallback'](_0x2b33a2=>{const {data:_0x255739}=_0x2b33a2;if(_0x255739&&'style'===_0x255739[_0x364a('0x19')])return _0x255739['commandParams'][0x0][_0x364a('0x29')]?{'type':'format','content':_0x1fed5d(_0x4c2a69,_0x364a('0x12'),_0x255739[_0x364a('0xd')][0x0][_0x364a('0x30')][_0x364a('0x8')]())}:{'type':_0x364a('0x2b'),'content':_0x1fed5d(_0x4c2a69,_0x364a('0x27'),_0x255739[_0x364a('0xd')][0x0]['styleName'][_0x364a('0x8')]())};});}[_0x364a('0x13')](_0x2b53f2,_0x504319){let _0x4e2155=_0x504319[_0x364a('0x24')][_0x364a('0x6')](_0x31c05e=>_0x31c05e[_0x364a('0x28')]===_0x2b53f2);return _0x4e2155||(_0x4e2155=_0x504319[_0x364a('0x11')][_0x364a('0x6')](_0x2d6b28=>_0x2d6b28['name']===_0x2b53f2)),_0x4e2155;}[_0x364a('0x0')](_0x3bda44,_0xa16579,_0x8a88c8,_0x1258a5){const _0x57ba3b=[];for(const _0x37d9f6 of _0xa16579[_0x364a('0x2c')]()){const _0x13bb7c=_0x37d9f6[_0x364a('0x17')](_0x1258a5);_0x13bb7c&&(_0x8a88c8[_0x364a('0x14')](_0x32cf28=>_0x13bb7c['classes']['includes'](_0x32cf28))&&_0x57ba3b['push'](_0x3bda44['createRangeOn'](_0x37d9f6)));}return _0x57ba3b;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x2292=['options','type','TrackChangesEditing','markMultiRangeDeletion','document','oldRange','insertTableColumnLeft','join','discard','cell','addClass','classes','_getSuggestionCoords','table','has','tableRow','nodeAfter','first','name','_descriptionFactory','detach','maxColumn','removeClass','every','TableUtils','map','above','min','some','plugins','locale','fromRange','includes','add','model','afterInit','length','addMarker:suggestion','*Insert:*\x20%0','insertTableColumnRight','tableCell','startsWith','suggestion','getRanges','_tablePostFixingSubtypes','$textProxy','toLowerCase','getChanges','ELEMENT_TABLE_COLUMN','ELEMENT_TABLE_ROW_WITH_TEXT','last','max','enableCommand','tablePaste','_suggestionFactory','_getCoordsForCells','getSelectionAffectedTableCells','push','showSuggestionHighlights','isTouching','hasAttribute','*Remove:*\x20%0','change','_acceptFormatSuggestionCallbackFactory','colspan','from','values','removeTableRow','markMultiRangeInsertion','filter','ELEMENT_TABLE_WITH_TEXT','start','selectTableColumn','setSelection','deletion','MIN_SAFE_INTEGER','isArray','span','rootName','addRange','forceValue','end','editor','get','_setupColumnsRowsFixing','position','selectTableRow','insertTable','order','item','getColumnIndexes','isInContent','tableColumn','highest','$graveyard','_tableSuggestions','element','createTableWalker','_splitMarkerName','data','refresh','maxRow','ELEMENT_TABLE','removeTableColumn','createRangeIn','insertion','registerCustomCallback','getItems','getSuggestion','low','getCellLocation','substr','ELEMENT_TABLE_ROW','enqueueChange','differ','findAncestor','registerElementLabel','root','registerDescriptionCallback','accept','selection','createRangeOn','mapper','getFirstRange','ELEMENT_TABLE_COLUMN_WITH_TEXT','getAttribute','left','commands','subType','change:data','getContainedElement','execute','writer','minColumn'];(function(_0x469ce1,_0x2292c8){const _0x46117a=function(_0x4d322e){while(--_0x4d322e){_0x469ce1['push'](_0x469ce1['shift']());}};_0x46117a(++_0x2292c8);}(_0x2292,0x18c));const _0x4611=function(_0x469ce1,_0x2292c8){_0x469ce1=_0x469ce1-0x0;let _0x46117a=_0x2292[_0x469ce1];return _0x46117a;};import{Plugin as _0x2416be}from'ckeditor5/src/core';import{LiveRange as _0x1bbda1}from'ckeditor5/src/engine';import{setHighlightHandling as _0x5a665d}from'ckeditor5/src/widget';import{getTranslation as _0xf8203}from'../utils/common-translations';export default class mt extends _0x2416be{constructor(_0x1ab8e4){super(_0x1ab8e4),this[_0x4611('0x32')]=['tableRow',_0x4611('0x62')],this['_tableSuggestions']=new Set();}[_0x4611('0x29')](){const _0xb444eb=this[_0x4611('0x58')],_0x50647b=_0xb444eb[_0x4611('0x28')]['document']['selection'];if(!_0xb444eb[_0x4611('0x23')][_0x4611('0x14')]('TableEditing'))return;const _0x2a4afa=_0xb444eb[_0x4611('0x24')],_0x584584=_0xb444eb[_0x4611('0x23')][_0x4611('0x59')](_0x4611('0x8')),_0x281bb7=_0xb444eb[_0x4611('0x23')][_0x4611('0x59')](_0x4611('0x1e'));_0x584584['_descriptionFactory'][_0x4611('0x7a')]('table',_0x29c11e=>_0xf8203(_0x2a4afa,_0x4611('0x6c'),_0x29c11e)),this[_0x4611('0x5a')](),_0x584584[_0x4611('0x3a')](_0x4611('0x5d')),_0x584584[_0x4611('0x3a')](_0x4611('0x5c')),_0x584584[_0x4611('0x3a')](_0x4611('0x4e'));for(const _0x22eaea of['insertTableRowAbove','insertTableRowBelow']){const _0x487996=_0xb444eb[_0x4611('0x85')][_0x4611('0x59')](_0x22eaea);_0x584584[_0x4611('0x3a')](_0x22eaea,_0x2d370e=>{_0xb444eb[_0x4611('0x28')][_0x4611('0x44')](_0xbc5e8a=>{_0x2d370e();const _0x4efa48=_0x4611('0x20')===_0x487996[_0x4611('0x5e')],_0x47faf2=_0x281bb7['getSelectionAffectedTableCells'](_0x50647b),_0x339f4f=_0x281bb7['getRowIndexes'](_0x47faf2),_0x55edd6=_0x4efa48?_0x339f4f[_0x4611('0x17')]-0x1:_0x339f4f[_0x4611('0x38')]+0x1,_0x658193=_0x47faf2[0x0][_0x4611('0x79')](_0x4611('0x13')),_0x1b60c5=_0x281bb7['createTableWalker'](_0x658193,{'startRow':_0x55edd6,'endRow':_0x55edd6}),_0xceecae=Array['from'](_0x1b60c5)['map'](_0x10232e=>_0xbc5e8a['createRangeOn'](_0x10232e[_0x4611('0xf')]));_0x584584[_0x4611('0x4a')](_0xceecae,'tableRow');});});}for(const _0x36b782 of[_0x4611('0xc'),_0x4611('0x2d')]){const _0x2a6a58=_0xb444eb['commands'][_0x4611('0x59')](_0x36b782);_0x584584['enableCommand'](_0x36b782,_0x22cda6=>{_0xb444eb[_0x4611('0x28')]['change'](_0x4db0b7=>{_0x22cda6();const _0x3aa146=_0x4611('0x84')===_0x2a6a58[_0x4611('0x5e')],_0x13cff5=_0x281bb7[_0x4611('0x3e')](_0x50647b),_0x2d45dd=_0x281bb7[_0x4611('0x60')](_0x13cff5),_0x229fc4=_0x3aa146?_0x2d45dd['first']-0x1:_0x2d45dd[_0x4611('0x38')]+0x1,_0x31ce64=_0x13cff5[0x0][_0x4611('0x79')]('table'),_0x48a7b2=_0x281bb7[_0x4611('0x67')](_0x31ce64,{'startRow':0x0,'column':_0x229fc4,'includeAllSlots':!0x1}),_0x360dd9=Array[_0x4611('0x47')](_0x48a7b2)[_0x4611('0x1f')](_0x13bace=>_0x4db0b7[_0x4611('0x7f')](_0x13bace[_0x4611('0xf')]));_0x584584['markMultiRangeInsertion'](_0x360dd9,'tableColumn');});});}for(const _0x4d99ef of[_0x4611('0x49'),_0x4611('0x6d')]){const _0x398012=_0x4d99ef[_0x4611('0x75')](0xb),_0x3eeb8f=_0x398012['toLowerCase'](),_0x32dc79=_0x3eeb8f[_0x4611('0x75')](0x0,0x3)+_0x4611('0x53'),_0x181a19=_0x4611('0x13')+_0x398012,_0x369863=_0x4611('0x21')+_0x398012,_0xe7601=_0x4611('0x39')+_0x398012;_0x584584['enableCommand'](_0x4d99ef,()=>{_0xb444eb[_0x4611('0x28')][_0x4611('0x44')](_0x11f15e=>{const _0xf94bb9=_0x281bb7[_0x4611('0x3e')](_0x50647b),_0x3a7385=_0xf94bb9[0x0][_0x4611('0x79')]('table');let _0xbae6fc;if(_0x4611('0x49')==_0x4d99ef){const _0x45c7d2=_0x281bb7['getRowIndexes'](_0xf94bb9);_0xbae6fc={'startRow':_0x45c7d2[_0x4611('0x17')],'endRow':_0x45c7d2[_0x4611('0x38')],'includeAllSlots':!0x0};}else{const _0x1f6e35=_0x281bb7[_0x4611('0x60')](_0xf94bb9);_0xbae6fc={'startColumn':_0x1f6e35[_0x4611('0x17')],'endColumn':_0x1f6e35['last'],'includeAllSlots':!0x0};}const _0x3eb5dc=_0x281bb7[_0x4611('0x67')](_0x3a7385,_0xbae6fc),_0x39a75d=Array[_0x4611('0x47')](_0x3eb5dc)[_0x4611('0x1f')](({cell:_0x969b89})=>_0x969b89),_0x414b0b=se(_0x39a75d[_0x4611('0x4b')](_0x21201e=>_0x21201e[_0x4611('0x42')](_0x32dc79))),_0x7a0ab6=se(_0x39a75d[_0x4611('0x4b')](_0x32da42=>!_0x32da42[_0x4611('0x42')](_0x32dc79)))[_0x4611('0x1f')](_0x496566=>_0x11f15e[_0x4611('0x7f')](_0x496566)),_0xba9817=_0x584584[_0x4611('0x9')](_0x7a0ab6,_0x181a19);if(_0xba9817&&(_0x4611('0x15')==_0xba9817[_0x4611('0x0')]||_0x4611('0x62')==_0xba9817[_0x4611('0x0')])){const _0x2a0bbd=this[_0x4611('0x12')](_0xba9817);for(const _0x413e53 of _0x414b0b){const _0x374249=_0x11f15e['createRangeOn'](_0x413e53),_0x3664e7=_0x281bb7['getCellLocation'](_0x413e53),_0x3b3e7e=_0x413e53[_0x4611('0x83')](_0x32dc79)-0x1,_0x5a8740=_0x2a0bbd[_0x369863],_0x3b86f9=_0x2a0bbd[_0xe7601];_0x5a8740<=_0x3664e7[_0x3eeb8f]&&_0x3664e7[_0x3eeb8f]+_0x3b3e7e<=_0x3b86f9&&_0xba9817[_0x4611('0x55')](_0x374249);}}});});}function _0x328d9f(_0x172ed5){const _0x4a5202=Array['from'](_0x50647b[_0x4611('0x31')]())[_0x4611('0x1f')](_0x18c3d1=>_0x1bbda1[_0x4611('0x25')](_0x18c3d1));_0xb444eb[_0x4611('0x28')][_0x4611('0x44')](_0x4249b3=>{const _0x3c09cd=_0x4249b3['batch'];_0x172ed5=_0x172ed5[_0x4611('0x4b')](_0x1fc7dd=>_0x4611('0x64')!=_0x1fc7dd[_0x4611('0x7b')][_0x4611('0x54')]),_0x4249b3['setSelection'](_0x172ed5),_0xb444eb[_0x4611('0x85')][_0x4611('0x59')](_0x4611('0x49'))[_0x4611('0x6a')](),_0xb444eb['execute'](_0x4611('0x49'),{'forceDefaultExecution':!0x0}),_0xb444eb[_0x4611('0x28')][_0x4611('0x77')](()=>{_0xb444eb[_0x4611('0x28')][_0x4611('0x77')](_0x3c09cd,_0x3d21d1=>{const _0x5e4783=_0x4a5202[_0x4611('0x4b')](_0x35acf5=>'$graveyard'!=_0x35acf5['root'][_0x4611('0x54')]);_0x5e4783[_0x4611('0x2a')]>0x0&&_0x3d21d1[_0x4611('0x4f')](_0x5e4783);for(const _0x271e29 of _0x4a5202)_0x271e29['detach']();});});});}function _0x36278f(_0x12c9bb){_0xb444eb[_0x4611('0x28')][_0x4611('0x44')](_0x1e3071=>{const _0x54aa6c=Array[_0x4611('0x47')](_0x50647b['getRanges']())['map'](_0x5b0ab2=>_0x1bbda1[_0x4611('0x25')](_0x5b0ab2)),_0x3454e1=[];for(const _0x4f01e5 of _0x12c9bb)for(const _0x36403f of _0x4f01e5[_0x4611('0x71')]({'shallow':!0x0}))_0x3454e1['push'](_0x36403f);for(const _0x1c4dcf of _0x3454e1)_0x4611('0x64')!=_0x1c4dcf['root'][_0x4611('0x54')]&&(_0x1e3071[_0x4611('0x4f')](_0x1e3071['createPositionAt'](_0x1c4dcf,0x0)),_0xb444eb[_0x4611('0x85')][_0x4611('0x59')]('removeTableColumn')[_0x4611('0x6a')](),_0xb444eb[_0x4611('0x3')](_0x4611('0x6d'),{'forceDefaultExecution':!0x0}));const _0x3ea82f=_0x54aa6c['filter'](_0x161534=>_0x4611('0x64')!=_0x161534[_0x4611('0x7b')][_0x4611('0x54')]);_0x3ea82f['length']>0x0&&_0x1e3071['setSelection'](_0x3ea82f);for(const _0x33d1b7 of _0x54aa6c)_0x33d1b7[_0x4611('0x1a')]();});}function _0x1de16c(_0x5d1144,_0x1ac82e){return _0x1ac82e[_0x4611('0x1d')](_0x373f0e=>_0x5d1144[_0x4611('0x22')](_0x19bba0=>_0x19bba0['end']['isEqual'](_0x373f0e['start'])||_0x373f0e[_0x4611('0x57')]['isEqual'](_0x19bba0[_0x4611('0x4d')])));}function _0x9c7a97(_0xdf2c7,_0x5667a4){return _0xdf2c7[_0x4611('0x22')](_0x27ff91=>_0x5667a4[_0x4611('0x22')](_0x537978=>_0x27ff91[_0x4611('0x57')][_0x4611('0x41')](_0x537978[_0x4611('0x4d')])));}_0xb444eb[_0x4611('0x69')]['downcastDispatcher']['on'](_0x4611('0x2b'),(_0x17a82d,_0x5842da,_0x158f08)=>{if(!_0x158f08[_0x4611('0x6')][_0x4611('0x40')])return;const _0x2fda15=_0x5842da[_0x4611('0x5f')];if(!_0x2fda15)return;const _0x9b9f05=_0x158f08[_0x4611('0x80')]['toViewElement'](_0x2fda15);function _0x4ce021(_0x599f79){return Array[_0x4611('0x52')](_0x599f79)?_0x599f79:[_0x599f79];}_0x9b9f05&&_0x4611('0x2e')===_0x2fda15['name']&&_0x5a665d(_0x9b9f05,_0x158f08[_0x4611('0x4')],(_0x4f89d7,_0x3667a8,_0xcf1905)=>_0xcf1905[_0x4611('0x10')](_0x4ce021(_0x3667a8['classes']),_0x4f89d7),(_0x37966f,_0x3295c5,_0x331d60)=>_0x331d60[_0x4611('0x1c')](_0x4ce021(_0x3295c5[_0x4611('0x11')]),_0x37966f));},{'priority':_0x4611('0x63')}),_0x584584['_descriptionFactory']['registerDescriptionCallback'](_0x467dff=>{if(_0x4611('0x6f')!=_0x467dff['type']&&_0x4611('0x50')!=_0x467dff[_0x4611('0x7')])return;const _0x5b4a29=_0x467dff[_0x4611('0x2')]();if(null!=_0x5b4a29&&_0x5b4a29['is'](_0x4611('0x66'),_0x4611('0x13'))){if(_0x4611('0x6f')==_0x467dff['type']){const _0x166981=_0x467dff[_0x4611('0x71')]()[_0x4611('0x4b')](_0x4261f3=>_0x4261f3['is'](_0x4611('0x33')))[_0x4611('0x1f')](_0x3c4347=>_0x3c4347[_0x4611('0x69')]);if(_0x166981[_0x4611('0x2a')])return{'type':'insertion','content':_0xf8203(_0x2a4afa,_0x4611('0x2c'),_0xf8203(_0x2a4afa,_0x4611('0x4c'),'\x22'+_0x166981[_0x4611('0xd')]('\x20')+'\x22'))};}if(_0x4611('0x50')==_0x467dff[_0x4611('0x7')]){const _0x5e9f14=_0x467dff[_0x4611('0x71')]()[_0x4611('0x4b')](_0x1815d2=>_0x1815d2['is'](_0x4611('0x33')))[_0x4611('0x1f')](_0x368425=>_0x368425[_0x4611('0x69')]);if(_0x5e9f14[_0x4611('0x2a')])return{'type':_0x4611('0x50'),'content':_0xf8203(_0x2a4afa,_0x4611('0x43'),_0xf8203(_0x2a4afa,_0x4611('0x4c'),'\x22'+_0x5e9f14[_0x4611('0xd')]('\x20')+'\x22'))};}}}),_0x584584[_0x4611('0x19')][_0x4611('0x7c')](_0x54011b=>{if(_0x4611('0x15')==_0x54011b[_0x4611('0x0')]){const _0x53e8ca=_0x54011b[_0x4611('0x71')]()['filter'](_0x2a2ee9=>_0x2a2ee9['is'](_0x4611('0x33')))[_0x4611('0x1f')](_0x2f0d88=>_0x2f0d88[_0x4611('0x69')]),_0x3745e4=this[_0x4611('0x12')](_0x54011b),_0x22a61e=_0x3745e4[_0x4611('0x6b')]-_0x3745e4['minRow']+0x1;if(_0x4611('0x6f')==_0x54011b[_0x4611('0x7')])return _0x53e8ca[_0x4611('0x2a')]?{'type':_0x4611('0x6f'),'content':_0xf8203(_0x2a4afa,_0x4611('0x2c'),_0xf8203(_0x2a4afa,_0x4611('0x37'),[_0x22a61e,'\x22'+_0x53e8ca[_0x4611('0xd')]('\x20')+'\x22']))}:{'type':_0x4611('0x6f'),'content':_0xf8203(_0x2a4afa,_0x4611('0x2c'),_0xf8203(_0x2a4afa,_0x4611('0x76'),_0x22a61e))};if(_0x4611('0x50')==_0x54011b[_0x4611('0x7')])return _0x53e8ca['length']?{'type':_0x4611('0x50'),'content':_0xf8203(_0x2a4afa,'*Remove:*\x20%0',_0xf8203(_0x2a4afa,_0x4611('0x37'),[_0x22a61e,'\x22'+_0x53e8ca[_0x4611('0xd')]('\x20')+'\x22']))}:{'type':_0x4611('0x50'),'content':_0xf8203(_0x2a4afa,_0x4611('0x43'),_0xf8203(_0x2a4afa,_0x4611('0x76'),_0x22a61e))};}if(_0x4611('0x62')==_0x54011b[_0x4611('0x0')]){const _0x4715c0=_0x54011b[_0x4611('0x71')]()[_0x4611('0x4b')](_0x139e78=>_0x139e78['is'](_0x4611('0x33')))[_0x4611('0x1f')](_0xd8f134=>_0xd8f134['data']),_0x21fe47=this[_0x4611('0x12')](_0x54011b),_0x49d338=_0x21fe47[_0x4611('0x1b')]-_0x21fe47[_0x4611('0x5')]+0x1;if(_0x4611('0x6f')==_0x54011b[_0x4611('0x7')])return _0x4715c0[_0x4611('0x2a')]?{'type':_0x4611('0x6f'),'content':_0xf8203(_0x2a4afa,_0x4611('0x2c'),_0xf8203(_0x2a4afa,_0x4611('0x82'),[_0x49d338,'\x22'+_0x4715c0[_0x4611('0xd')]('\x20')+'\x22']))}:{'type':_0x4611('0x6f'),'content':_0xf8203(_0x2a4afa,_0x4611('0x2c'),_0xf8203(_0x2a4afa,_0x4611('0x36'),_0x49d338))};if(_0x4611('0x50')==_0x54011b[_0x4611('0x7')])return _0x4715c0[_0x4611('0x2a')]?{'type':_0x4611('0x50'),'content':_0xf8203(_0x2a4afa,_0x4611('0x43'),_0xf8203(_0x2a4afa,_0x4611('0x82'),[_0x49d338,'\x22'+_0x4715c0[_0x4611('0xd')]('\x20')+'\x22']))}:{'type':_0x4611('0x50'),'content':_0xf8203(_0x2a4afa,_0x4611('0x43'),_0xf8203(_0x2a4afa,_0x4611('0x36'),_0x49d338))};}}),_0x584584[_0x4611('0x3c')][_0x4611('0x70')](_0x4611('0x6f'),'tableRow',_0x4611('0xe'),_0x328d9f),_0x584584[_0x4611('0x3c')][_0x4611('0x70')](_0x4611('0x50'),_0x4611('0x15'),'accept',_0x328d9f),_0x584584[_0x4611('0x3c')][_0x4611('0x70')]('insertion','tableColumn','discard',_0x36278f),_0x584584[_0x4611('0x3c')][_0x4611('0x70')]('deletion',_0x4611('0x62'),_0x4611('0x7d'),_0x36278f),_0x584584[_0x4611('0x3c')][_0x4611('0x70')](_0x4611('0x6f'),'tableColumn',_0x4611('0xd'),_0x1de16c),_0x584584[_0x4611('0x3c')][_0x4611('0x70')](_0x4611('0x50'),_0x4611('0x62'),'join',_0x1de16c),_0x584584[_0x4611('0x3c')]['registerCustomCallback'](_0x4611('0x6f'),'tableRow',_0x4611('0xd'),_0x9c7a97),_0x584584[_0x4611('0x3c')][_0x4611('0x70')]('deletion',_0x4611('0x15'),_0x4611('0xd'),_0x9c7a97);}[_0x4611('0x45')](){const _0x3f8769=this[_0x4611('0x58')],_0xb31b22=_0x3f8769[_0x4611('0x28')][_0x4611('0xa')][_0x4611('0x7e')];return(_0x101228,_0xb886fd)=>{_0x3f8769[_0x4611('0x28')][_0x4611('0x44')](_0x17de41=>{const {commandName:_0x1d8014,commandParams:_0x128a62}=_0xb886fd;let _0x33b1b1=_0x101228[0x0][_0x4611('0x57')]['nodeBefore'];_0x128a62&&_0x128a62[0x0]&&!0x1===_0x128a62[0x0][_0x4611('0x56')]&&(_0x33b1b1=_0x101228[0x0][_0x4611('0x4d')][_0x4611('0x16')]);const _0x5f18d7=_0x17de41[_0x4611('0x6e')](_0x33b1b1);if(_0x4611('0x64')==_0x5f18d7['root']['rootName'])return;const _0x5039c4=Array[_0x4611('0x47')](_0xb31b22[_0x4611('0x31')]())[_0x4611('0x1f')](_0x20c910=>_0x1bbda1[_0x4611('0x25')](_0x20c910));_0x17de41['setSelection'](_0x5f18d7),_0x3f8769[_0x4611('0x85')][_0x4611('0x59')](_0x1d8014)[_0x4611('0x6a')](),_0x128a62[_0x4611('0x3f')]({'forceDefaultExecution':!0x0}),_0x3f8769[_0x4611('0x3')](_0x1d8014,..._0x128a62);const _0x347058=_0x5039c4[_0x4611('0x4b')](_0x4048b9=>'$graveyard'!=_0x4048b9['root'][_0x4611('0x54')]);_0x347058[_0x4611('0x2a')]>0x0&&_0x17de41[_0x4611('0x4f')](_0x347058);for(const _0x3d5ce2 of _0x5039c4)_0x3d5ce2[_0x4611('0x1a')]();});};}['_getCoordsForCells'](_0x5088bc){const _0x3f4e02=this[_0x4611('0x58')][_0x4611('0x23')][_0x4611('0x59')](_0x4611('0x1e'));let _0x5f284f=Number['MAX_SAFE_INTEGER'],_0x35cf8a=Number[_0x4611('0x51')],_0x5beddb=Number['MAX_SAFE_INTEGER'],_0x35eb73=Number[_0x4611('0x51')];for(const _0x5a6fee of _0x5088bc){if('$graveyard'==_0x5a6fee[_0x4611('0x7b')][_0x4611('0x54')])continue;const {row:_0x1b01f2,column:_0x875457}=_0x3f4e02[_0x4611('0x74')](_0x5a6fee),_0xe9c358=_0x5a6fee[_0x4611('0x42')]('rowspan')?_0x5a6fee[_0x4611('0x83')]('rowspan')-0x1:0x0,_0x22a176=_0x5a6fee[_0x4611('0x42')](_0x4611('0x46'))?_0x5a6fee['getAttribute'](_0x4611('0x46'))-0x1:0x0;_0x5f284f=_0x1b01f2<_0x5f284f?_0x1b01f2:_0x5f284f,_0x35cf8a=_0x1b01f2+_0xe9c358>_0x35cf8a?_0x1b01f2+_0xe9c358:_0x35cf8a,_0x5beddb=_0x875457<_0x5beddb?_0x875457:_0x5beddb,_0x35eb73=_0x875457+_0x22a176>_0x35eb73?_0x875457+_0x22a176:_0x35eb73;}return{'minRow':_0x5f284f,'maxRow':_0x35cf8a,'minColumn':_0x5beddb,'maxColumn':_0x35eb73};}['_setupColumnsRowsFixing'](){const _0x771d65=this['editor'],_0x2c8c9f=_0x771d65['plugins']['get'](_0x4611('0x8')),_0x26176e=_0x771d65['plugins'][_0x4611('0x59')](_0x4611('0x1e'));_0x771d65['model'][_0x4611('0xa')]['on'](_0x4611('0x1'),()=>{const _0x473082=Array[_0x4611('0x47')](_0x771d65[_0x4611('0x28')][_0x4611('0xa')][_0x4611('0x78')]['getChangedMarkers']());for(const {name:_0x2bee5d,data:_0x1152e8}of _0x473082){const {group:_0x1c7b4a,id:_0x405130,subType:_0x47e7cd}=_0x2c8c9f[_0x4611('0x68')](_0x2bee5d);if(_0x4611('0x30')!=_0x1c7b4a)continue;if(null!=_0x1152e8[_0x4611('0xb')])continue;const _0x4d439e=_0x2c8c9f[_0x4611('0x72')](_0x405130);this[_0x4611('0x32')][_0x4611('0x26')](_0x47e7cd)&&this[_0x4611('0x65')][_0x4611('0x27')](_0x4d439e);}},{'priority':_0x4611('0x73')});const _0x2a6285=(_0x292499,_0x3aad30)=>{let _0x3a3974=!0x1;const _0xb5655b=_0x3aad30['createRangeOn'](_0x292499),_0xc18692=_0x292499[_0x4611('0x79')](_0x4611('0x13')),_0x4c78f9=_0x26176e[_0x4611('0x74')](_0x292499);for(const _0x40d054 of this[_0x4611('0x65')]){const _0x30b011=_0x40d054['subType'],_0x5e61d2=_0x30b011[_0x4611('0x2f')](_0x4611('0x3b')),_0x53dfd6=_0x30b011[_0x4611('0x75')](_0x5e61d2?0xa:0x5),_0x1da058=_0x53dfd6[_0x4611('0x34')](),_0x10100f=_0x1da058[_0x4611('0x75')](0x0,0x3)+_0x4611('0x53'),_0x42e036=_0x4611('0x21')+_0x53dfd6,_0x20b494=_0x4611('0x39')+_0x53dfd6;if(!_0x40d054[_0x4611('0x61')])continue;if(_0xc18692!=_0x40d054[_0x4611('0x81')]()[_0x4611('0x4d')][_0x4611('0x79')](_0x4611('0x13')))continue;if(_0x40d054['isIntersectingWithRange'](_0xb5655b))continue;const _0x35d1c0=_0x292499['hasAttribute'](_0x10100f)?_0x292499[_0x4611('0x83')](_0x10100f)-0x1:0x0,_0x41a46e=this[_0x4611('0x12')](_0x40d054),_0x3825ab=_0x41a46e[_0x42e036],_0x31528c=_0x41a46e[_0x20b494];_0x3825ab<=_0x4c78f9[_0x1da058]&&_0x4c78f9[_0x1da058]+_0x35d1c0<=_0x31528c&&(_0x40d054['addRange'](_0xb5655b),_0x3a3974=!0x0);}return _0x3a3974;};_0x771d65[_0x4611('0x28')][_0x4611('0xa')]['registerPostFixer'](_0xc790d8=>{let _0x1b9a57=!0x1;for(const _0x51951a of _0x771d65['model']['document'][_0x4611('0x78')][_0x4611('0x35')]())if('insert'==_0x51951a['type']){if(_0x4611('0x15')==_0x51951a[_0x4611('0x18')])for(const _0x44335b of _0x51951a[_0x4611('0x5b')][_0x4611('0x16')]['getChildren']())_0x1b9a57=_0x1b9a57||_0x2a6285(_0x44335b,_0xc790d8);else _0x4611('0x2e')==_0x51951a[_0x4611('0x18')]&&(_0x1b9a57=_0x1b9a57||_0x2a6285(_0x51951a[_0x4611('0x5b')][_0x4611('0x16')],_0xc790d8));}return _0x1b9a57;});}[_0x4611('0x12')](_0x5780ca){return this[_0x4611('0x3d')](_0x5780ca[_0x4611('0x31')]()['map'](_0x440557=>_0x440557[_0x4611('0x4d')][_0x4611('0x16')]));}}function se(_0x1a5eb1){return Array[_0x4611('0x47')](new Set(_0x1a5eb1)[_0x4611('0x48')]());}
|
|
23
|
+
const _0x43e1=['getSelectionAffectedTableCells','first','last','filter','ELEMENT_TABLE_ROW_WITH_TEXT','markMultiRangeInsertion','start','every','join','*Insert:*\x20%0','suggestion','getCellLocation','_getSuggestionCoords','toViewElement','item','TrackChangesEditing','ELEMENT_TABLE_COLUMN_WITH_TEXT','model','_getCoordsForCells','hasAttribute','selection','createTableWalker','writer','some','minColumn','addMarker:suggestion','registerElementLabel','insertTableRowAbove','selectTableRow','getColumnIndexes','left','_splitMarkerName','change','ELEMENT_TABLE_COLUMN','add','table','span','type','_tablePostFixingSubtypes','commands','markMultiRangeDeletion','colspan','ELEMENT_TABLE','name','order','push','ELEMENT_TABLE_WITH_TEXT','classes','removeTableColumn','nodeBefore','getAttribute','getRanges','_descriptionFactory','selectTableColumn','rootName','setSelection','substr','isIntersectingWithRange','MIN_SAFE_INTEGER','tableColumn','_acceptFormatSuggestionCallbackFactory','ELEMENT_TABLE_ROW','values','above','getChanges','root','addClass','execute','addRange','insertion','getItems','cell','fromRange','end','getContainedElement','_suggestionFactory','includes','getFirstRange','_tableSuggestions','TableUtils','registerCustomCallback','length','deletion','locale','removeTableRow','accept','$textProxy','minRow','insertTableRowBelow','maxRow','editor','startsWith','min','detach','toLowerCase','downcastDispatcher','discard','rowspan','has','findAncestor','insertTableColumnRight','batch','enableCommand','createRangeOn','isEqual','change:data','from','TableEditing','$graveyard','plugins','highest','*Remove:*\x20%0','tableRow','subType','mapper','low','document','isTouching','get','enqueueChange','refresh','max','nodeAfter','registerPostFixer','position','tableCell','data','map','getChangedMarkers'];(function(_0x33e4b5,_0x43e10c){const _0x26672e=function(_0x21bba7){while(--_0x21bba7){_0x33e4b5['push'](_0x33e4b5['shift']());}};_0x26672e(++_0x43e10c);}(_0x43e1,0x13e));const _0x2667=function(_0x33e4b5,_0x43e10c){_0x33e4b5=_0x33e4b5-0x0;let _0x26672e=_0x43e1[_0x33e4b5];return _0x26672e;};import{Plugin as _0x402dc7}from'ckeditor5/src/core';import{LiveRange as _0x118f17}from'ckeditor5/src/engine';import{setHighlightHandling as _0x255fc3}from'ckeditor5/src/widget';import{getTranslation as _0x41f726}from'../utils/common-translations';export default class mt extends _0x402dc7{constructor(_0x2a3041){super(_0x2a3041),this[_0x2667('0x6b')]=[_0x2667('0x34'),_0x2667('0x80')],this[_0x2667('0x12')]=new Set();}['afterInit'](){const _0x26680d=this[_0x2667('0x1e')],_0x4a51a3=_0x26680d[_0x2667('0x56')][_0x2667('0x38')][_0x2667('0x59')];if(!_0x26680d[_0x2667('0x31')][_0x2667('0x26')](_0x2667('0x2f')))return;const _0x48737e=_0x26680d[_0x2667('0x17')],_0x1837f0=_0x26680d[_0x2667('0x31')][_0x2667('0x3a')](_0x2667('0x54')),_0xec472a=_0x26680d[_0x2667('0x31')][_0x2667('0x3a')]('TableUtils');_0x1837f0[_0x2667('0x79')][_0x2667('0x5f')](_0x2667('0x68'),_0x4dff83=>_0x41f726(_0x48737e,_0x2667('0x6f'),_0x4dff83)),this['_setupColumnsRowsFixing'](),_0x1837f0[_0x2667('0x2a')]('insertTable'),_0x1837f0[_0x2667('0x2a')](_0x2667('0x61')),_0x1837f0[_0x2667('0x2a')](_0x2667('0x7a'));for(const _0x4ac696 of[_0x2667('0x60'),_0x2667('0x1c')]){const _0xeb77c5=_0x26680d[_0x2667('0x6c')][_0x2667('0x3a')](_0x4ac696);_0x1837f0[_0x2667('0x2a')](_0x4ac696,_0x4ef07d=>{_0x26680d[_0x2667('0x56')]['change'](_0x3a2410=>{_0x4ef07d();const _0x5ac48c=_0x2667('0x3')===_0xeb77c5[_0x2667('0x71')],_0x2b0068=_0xec472a[_0x2667('0x45')](_0x4a51a3),_0x358045=_0xec472a['getRowIndexes'](_0x2b0068),_0x3e0434=_0x5ac48c?_0x358045[_0x2667('0x46')]-0x1:_0x358045['last']+0x1,_0x23b3e4=_0x2b0068[0x0][_0x2667('0x27')](_0x2667('0x68')),_0x595550=_0xec472a['createTableWalker'](_0x23b3e4,{'startRow':_0x3e0434,'endRow':_0x3e0434}),_0x22e3f8=Array['from'](_0x595550)['map'](_0x539749=>_0x3a2410[_0x2667('0x2b')](_0x539749['cell']));_0x1837f0[_0x2667('0x4a')](_0x22e3f8,_0x2667('0x34'));});});}for(const _0x2359e5 of['insertTableColumnLeft',_0x2667('0x28')]){const _0x5867ef=_0x26680d[_0x2667('0x6c')][_0x2667('0x3a')](_0x2359e5);_0x1837f0[_0x2667('0x2a')](_0x2359e5,_0x481485=>{_0x26680d[_0x2667('0x56')][_0x2667('0x65')](_0x22affd=>{_0x481485();const _0x2e69aa=_0x2667('0x63')===_0x5867ef['order'],_0x43272c=_0xec472a[_0x2667('0x45')](_0x4a51a3),_0x13eefd=_0xec472a[_0x2667('0x62')](_0x43272c),_0x9f745f=_0x2e69aa?_0x13eefd[_0x2667('0x46')]-0x1:_0x13eefd['last']+0x1,_0x53c7ff=_0x43272c[0x0][_0x2667('0x27')](_0x2667('0x68')),_0x1333c4=_0xec472a[_0x2667('0x5a')](_0x53c7ff,{'startRow':0x0,'column':_0x9f745f,'includeAllSlots':!0x1}),_0x103569=Array[_0x2667('0x2e')](_0x1333c4)[_0x2667('0x43')](_0x1209ec=>_0x22affd[_0x2667('0x2b')](_0x1209ec[_0x2667('0xb')]));_0x1837f0[_0x2667('0x4a')](_0x103569,_0x2667('0x80'));});});}for(const _0x3da871 of[_0x2667('0x18'),_0x2667('0x75')]){const _0x1d2983=_0x3da871[_0x2667('0x7d')](0xb),_0x35be26=_0x1d2983[_0x2667('0x22')](),_0x25b38f=_0x35be26[_0x2667('0x7d')](0x0,0x3)+_0x2667('0x69'),_0x16b5c4=_0x2667('0x68')+_0x1d2983,_0x1fd5cf=_0x2667('0x20')+_0x1d2983,_0x428214=_0x2667('0x3d')+_0x1d2983;_0x1837f0['enableCommand'](_0x3da871,()=>{_0x26680d[_0x2667('0x56')][_0x2667('0x65')](_0x111a6a=>{const _0x5849ac=_0xec472a[_0x2667('0x45')](_0x4a51a3),_0x574739=_0x5849ac[0x0][_0x2667('0x27')](_0x2667('0x68'));let _0x1c99c2;if(_0x2667('0x18')==_0x3da871){const _0x563f7b=_0xec472a['getRowIndexes'](_0x5849ac);_0x1c99c2={'startRow':_0x563f7b[_0x2667('0x46')],'endRow':_0x563f7b['last'],'includeAllSlots':!0x0};}else{const _0x47482e=_0xec472a[_0x2667('0x62')](_0x5849ac);_0x1c99c2={'startColumn':_0x47482e[_0x2667('0x46')],'endColumn':_0x47482e[_0x2667('0x47')],'includeAllSlots':!0x0};}const _0x5eaf75=_0xec472a[_0x2667('0x5a')](_0x574739,_0x1c99c2),_0xa68128=Array[_0x2667('0x2e')](_0x5eaf75)[_0x2667('0x43')](({cell:_0x58a779})=>_0x58a779),_0x38bc34=se(_0xa68128[_0x2667('0x48')](_0x1b7a71=>_0x1b7a71[_0x2667('0x58')](_0x25b38f))),_0x3bf099=se(_0xa68128[_0x2667('0x48')](_0x120563=>!_0x120563[_0x2667('0x58')](_0x25b38f)))[_0x2667('0x43')](_0x31dde9=>_0x111a6a['createRangeOn'](_0x31dde9)),_0x5e0754=_0x1837f0[_0x2667('0x6d')](_0x3bf099,_0x16b5c4);if(_0x5e0754&&(_0x2667('0x34')==_0x5e0754[_0x2667('0x35')]||_0x2667('0x80')==_0x5e0754[_0x2667('0x35')])){const _0x2de846=this['_getSuggestionCoords'](_0x5e0754);for(const _0x533688 of _0x38bc34){const _0xbbfce4=_0x111a6a['createRangeOn'](_0x533688),_0x32282a=_0xec472a['getCellLocation'](_0x533688),_0x41bc7d=_0x533688['getAttribute'](_0x25b38f)-0x1,_0x18fd02=_0x2de846[_0x1fd5cf],_0x286ee7=_0x2de846[_0x428214];_0x18fd02<=_0x32282a[_0x35be26]&&_0x32282a[_0x35be26]+_0x41bc7d<=_0x286ee7&&_0x5e0754[_0x2667('0x8')](_0xbbfce4);}}});});}function _0x4fb6d2(_0x1c34f0){const _0xc2cadc=Array[_0x2667('0x2e')](_0x4a51a3['getRanges']())[_0x2667('0x43')](_0x2d48f3=>_0x118f17[_0x2667('0xc')](_0x2d48f3));_0x26680d['model'][_0x2667('0x65')](_0x17183b=>{const _0x17a0b8=_0x17183b[_0x2667('0x29')];_0x1c34f0=_0x1c34f0[_0x2667('0x48')](_0x468595=>_0x2667('0x30')!=_0x468595[_0x2667('0x5')][_0x2667('0x7b')]),_0x17183b[_0x2667('0x7c')](_0x1c34f0),_0x26680d[_0x2667('0x6c')]['get'](_0x2667('0x18'))['refresh'](),_0x26680d[_0x2667('0x7')](_0x2667('0x18'),{'forceDefaultExecution':!0x0}),_0x26680d[_0x2667('0x56')][_0x2667('0x3b')](()=>{_0x26680d[_0x2667('0x56')]['enqueueChange'](_0x17a0b8,_0x5911ba=>{const _0x2daf59=_0xc2cadc[_0x2667('0x48')](_0xa314ad=>_0x2667('0x30')!=_0xa314ad[_0x2667('0x5')]['rootName']);_0x2daf59['length']>0x0&&_0x5911ba['setSelection'](_0x2daf59);for(const _0x170cf6 of _0xc2cadc)_0x170cf6[_0x2667('0x21')]();});});});}function _0x52e6db(_0x27de28){_0x26680d['model'][_0x2667('0x65')](_0x5766b=>{const _0x19fcf4=Array['from'](_0x4a51a3['getRanges']())['map'](_0x56f2b6=>_0x118f17[_0x2667('0xc')](_0x56f2b6)),_0x390626=[];for(const _0x167785 of _0x27de28)for(const _0x10bd42 of _0x167785[_0x2667('0xa')]({'shallow':!0x0}))_0x390626[_0x2667('0x72')](_0x10bd42);for(const _0x5241c6 of _0x390626)'$graveyard'!=_0x5241c6['root'][_0x2667('0x7b')]&&(_0x5766b[_0x2667('0x7c')](_0x5766b['createPositionAt'](_0x5241c6,0x0)),_0x26680d[_0x2667('0x6c')][_0x2667('0x3a')](_0x2667('0x75'))[_0x2667('0x3c')](),_0x26680d['execute'](_0x2667('0x75'),{'forceDefaultExecution':!0x0}));const _0x413f72=_0x19fcf4[_0x2667('0x48')](_0x50250a=>'$graveyard'!=_0x50250a[_0x2667('0x5')][_0x2667('0x7b')]);_0x413f72[_0x2667('0x15')]>0x0&&_0x5766b[_0x2667('0x7c')](_0x413f72);for(const _0x1ac0d3 of _0x19fcf4)_0x1ac0d3['detach']();});}function _0x3902be(_0x39a28b,_0x528198){return _0x528198[_0x2667('0x4c')](_0x5645d2=>_0x39a28b[_0x2667('0x5c')](_0x53a8cb=>_0x53a8cb[_0x2667('0xd')]['isEqual'](_0x5645d2['start'])||_0x5645d2['end'][_0x2667('0x2c')](_0x53a8cb[_0x2667('0x4b')])));}function _0x106d6b(_0x56499b,_0x1a4491){return _0x56499b[_0x2667('0x5c')](_0x30e20e=>_0x1a4491[_0x2667('0x5c')](_0x2cc0ca=>_0x30e20e['end'][_0x2667('0x39')](_0x2cc0ca[_0x2667('0x4b')])));}_0x26680d[_0x2667('0x42')][_0x2667('0x23')]['on'](_0x2667('0x5e'),(_0x3efe90,_0x5a82d8,_0x194894)=>{if(!_0x194894['options']['showSuggestionHighlights'])return;const _0x1da613=_0x5a82d8[_0x2667('0x53')];if(!_0x1da613)return;const _0x4dcd32=_0x194894[_0x2667('0x36')][_0x2667('0x52')](_0x1da613);function _0x1ea0b1(_0x2c6770){return Array['isArray'](_0x2c6770)?_0x2c6770:[_0x2c6770];}_0x4dcd32&&_0x2667('0x41')===_0x1da613['name']&&_0x255fc3(_0x4dcd32,_0x194894[_0x2667('0x5b')],(_0x30ec2c,_0x2a48db,_0x8f2997)=>_0x8f2997[_0x2667('0x6')](_0x1ea0b1(_0x2a48db[_0x2667('0x74')]),_0x30ec2c),(_0x46798c,_0x92c440,_0x158cdf)=>_0x158cdf['removeClass'](_0x1ea0b1(_0x92c440[_0x2667('0x74')]),_0x46798c));},{'priority':_0x2667('0x32')}),_0x1837f0[_0x2667('0x79')]['registerDescriptionCallback'](_0x311dcb=>{if(_0x2667('0x9')!=_0x311dcb[_0x2667('0x6a')]&&_0x2667('0x16')!=_0x311dcb['type'])return;const _0x3b9e74=_0x311dcb[_0x2667('0xe')]();if(null!=_0x3b9e74&&_0x3b9e74['is']('element',_0x2667('0x68'))){if(_0x2667('0x9')==_0x311dcb[_0x2667('0x6a')]){const _0x1a684a=_0x311dcb[_0x2667('0xa')]()['filter'](_0x5ddbb1=>_0x5ddbb1['is']('$textProxy'))['map'](_0x38227b=>_0x38227b[_0x2667('0x42')]);if(_0x1a684a[_0x2667('0x15')])return{'type':'insertion','content':_0x41f726(_0x48737e,_0x2667('0x4e'),_0x41f726(_0x48737e,_0x2667('0x73'),'\x22'+_0x1a684a[_0x2667('0x4d')]('\x20')+'\x22'))};}if(_0x2667('0x16')==_0x311dcb['type']){const _0x104bc0=_0x311dcb[_0x2667('0xa')]()[_0x2667('0x48')](_0x3a0e28=>_0x3a0e28['is'](_0x2667('0x1a')))[_0x2667('0x43')](_0x4314fb=>_0x4314fb['data']);if(_0x104bc0[_0x2667('0x15')])return{'type':_0x2667('0x16'),'content':_0x41f726(_0x48737e,_0x2667('0x33'),_0x41f726(_0x48737e,_0x2667('0x73'),'\x22'+_0x104bc0[_0x2667('0x4d')]('\x20')+'\x22'))};}}}),_0x1837f0[_0x2667('0x79')]['registerDescriptionCallback'](_0x4c419d=>{if('tableRow'==_0x4c419d['subType']){const _0x518551=_0x4c419d[_0x2667('0xa')]()[_0x2667('0x48')](_0x2d2c7d=>_0x2d2c7d['is'](_0x2667('0x1a')))[_0x2667('0x43')](_0x4ee46c=>_0x4ee46c[_0x2667('0x42')]),_0x48027c=this[_0x2667('0x51')](_0x4c419d),_0x432706=_0x48027c[_0x2667('0x1d')]-_0x48027c[_0x2667('0x1b')]+0x1;if(_0x2667('0x9')==_0x4c419d[_0x2667('0x6a')])return _0x518551[_0x2667('0x15')]?{'type':_0x2667('0x9'),'content':_0x41f726(_0x48737e,'*Insert:*\x20%0',_0x41f726(_0x48737e,_0x2667('0x49'),[_0x432706,'\x22'+_0x518551['join']('\x20')+'\x22']))}:{'type':'insertion','content':_0x41f726(_0x48737e,'*Insert:*\x20%0',_0x41f726(_0x48737e,'ELEMENT_TABLE_ROW',_0x432706))};if(_0x2667('0x16')==_0x4c419d[_0x2667('0x6a')])return _0x518551['length']?{'type':'deletion','content':_0x41f726(_0x48737e,_0x2667('0x33'),_0x41f726(_0x48737e,_0x2667('0x49'),[_0x432706,'\x22'+_0x518551[_0x2667('0x4d')]('\x20')+'\x22']))}:{'type':_0x2667('0x16'),'content':_0x41f726(_0x48737e,_0x2667('0x33'),_0x41f726(_0x48737e,_0x2667('0x1'),_0x432706))};}if(_0x2667('0x80')==_0x4c419d[_0x2667('0x35')]){const _0x131721=_0x4c419d['getItems']()[_0x2667('0x48')](_0x44103c=>_0x44103c['is'](_0x2667('0x1a')))[_0x2667('0x43')](_0x56879b=>_0x56879b['data']),_0xe894b0=this[_0x2667('0x51')](_0x4c419d),_0x3cd7b1=_0xe894b0['maxColumn']-_0xe894b0[_0x2667('0x5d')]+0x1;if(_0x2667('0x9')==_0x4c419d[_0x2667('0x6a')])return _0x131721[_0x2667('0x15')]?{'type':_0x2667('0x9'),'content':_0x41f726(_0x48737e,_0x2667('0x4e'),_0x41f726(_0x48737e,_0x2667('0x55'),[_0x3cd7b1,'\x22'+_0x131721[_0x2667('0x4d')]('\x20')+'\x22']))}:{'type':'insertion','content':_0x41f726(_0x48737e,'*Insert:*\x20%0',_0x41f726(_0x48737e,_0x2667('0x66'),_0x3cd7b1))};if(_0x2667('0x16')==_0x4c419d['type'])return _0x131721[_0x2667('0x15')]?{'type':_0x2667('0x16'),'content':_0x41f726(_0x48737e,_0x2667('0x33'),_0x41f726(_0x48737e,_0x2667('0x55'),[_0x3cd7b1,'\x22'+_0x131721[_0x2667('0x4d')]('\x20')+'\x22']))}:{'type':_0x2667('0x16'),'content':_0x41f726(_0x48737e,_0x2667('0x33'),_0x41f726(_0x48737e,'ELEMENT_TABLE_COLUMN',_0x3cd7b1))};}}),_0x1837f0[_0x2667('0xf')][_0x2667('0x14')](_0x2667('0x9'),'tableRow',_0x2667('0x24'),_0x4fb6d2),_0x1837f0[_0x2667('0xf')][_0x2667('0x14')](_0x2667('0x16'),_0x2667('0x34'),_0x2667('0x19'),_0x4fb6d2),_0x1837f0[_0x2667('0xf')][_0x2667('0x14')](_0x2667('0x9'),'tableColumn',_0x2667('0x24'),_0x52e6db),_0x1837f0[_0x2667('0xf')]['registerCustomCallback'](_0x2667('0x16'),_0x2667('0x80'),_0x2667('0x19'),_0x52e6db),_0x1837f0[_0x2667('0xf')][_0x2667('0x14')](_0x2667('0x9'),_0x2667('0x80'),_0x2667('0x4d'),_0x3902be),_0x1837f0['_suggestionFactory'][_0x2667('0x14')](_0x2667('0x16'),_0x2667('0x80'),'join',_0x3902be),_0x1837f0[_0x2667('0xf')][_0x2667('0x14')]('insertion','tableRow',_0x2667('0x4d'),_0x106d6b),_0x1837f0[_0x2667('0xf')][_0x2667('0x14')](_0x2667('0x16'),_0x2667('0x34'),'join',_0x106d6b);}[_0x2667('0x0')](){const _0x461c3f=this[_0x2667('0x1e')],_0x82b1f9=_0x461c3f['model'][_0x2667('0x38')]['selection'];return(_0x21cd40,_0x32aaf0)=>{_0x461c3f['model'][_0x2667('0x65')](_0x15d31b=>{const {commandName:_0x5d9de9,commandParams:_0x24d919}=_0x32aaf0;let _0x44cca0=_0x21cd40[0x0][_0x2667('0xd')][_0x2667('0x76')];_0x24d919&&_0x24d919[0x0]&&!0x1===_0x24d919[0x0]['forceValue']&&(_0x44cca0=_0x21cd40[0x0][_0x2667('0x4b')]['nodeAfter']);const _0x184992=_0x15d31b['createRangeIn'](_0x44cca0);if(_0x2667('0x30')==_0x184992[_0x2667('0x5')][_0x2667('0x7b')])return;const _0x429d21=Array['from'](_0x82b1f9[_0x2667('0x78')]())[_0x2667('0x43')](_0x4f8fc0=>_0x118f17[_0x2667('0xc')](_0x4f8fc0));_0x15d31b[_0x2667('0x7c')](_0x184992),_0x461c3f[_0x2667('0x6c')][_0x2667('0x3a')](_0x5d9de9)[_0x2667('0x3c')](),_0x24d919[_0x2667('0x72')]({'forceDefaultExecution':!0x0}),_0x461c3f['execute'](_0x5d9de9,..._0x24d919);const _0x4183ed=_0x429d21['filter'](_0x109805=>_0x2667('0x30')!=_0x109805[_0x2667('0x5')][_0x2667('0x7b')]);_0x4183ed[_0x2667('0x15')]>0x0&&_0x15d31b[_0x2667('0x7c')](_0x4183ed);for(const _0x18e867 of _0x429d21)_0x18e867[_0x2667('0x21')]();});};}[_0x2667('0x57')](_0x17fa74){const _0x469012=this['editor']['plugins'][_0x2667('0x3a')](_0x2667('0x13'));let _0x25ce8f=Number['MAX_SAFE_INTEGER'],_0x260dfb=Number['MIN_SAFE_INTEGER'],_0x312451=Number['MAX_SAFE_INTEGER'],_0x3b976e=Number[_0x2667('0x7f')];for(const _0x471a8b of _0x17fa74){if(_0x2667('0x30')==_0x471a8b[_0x2667('0x5')][_0x2667('0x7b')])continue;const {row:_0x5c6060,column:_0x244723}=_0x469012['getCellLocation'](_0x471a8b),_0x35d2df=_0x471a8b[_0x2667('0x58')](_0x2667('0x25'))?_0x471a8b[_0x2667('0x77')](_0x2667('0x25'))-0x1:0x0,_0x5f1f65=_0x471a8b[_0x2667('0x58')](_0x2667('0x6e'))?_0x471a8b[_0x2667('0x77')](_0x2667('0x6e'))-0x1:0x0;_0x25ce8f=_0x5c6060<_0x25ce8f?_0x5c6060:_0x25ce8f,_0x260dfb=_0x5c6060+_0x35d2df>_0x260dfb?_0x5c6060+_0x35d2df:_0x260dfb,_0x312451=_0x244723<_0x312451?_0x244723:_0x312451,_0x3b976e=_0x244723+_0x5f1f65>_0x3b976e?_0x244723+_0x5f1f65:_0x3b976e;}return{'minRow':_0x25ce8f,'maxRow':_0x260dfb,'minColumn':_0x312451,'maxColumn':_0x3b976e};}['_setupColumnsRowsFixing'](){const _0x7ed675=this[_0x2667('0x1e')],_0x1a9644=_0x7ed675[_0x2667('0x31')]['get'](_0x2667('0x54')),_0x3e26da=_0x7ed675[_0x2667('0x31')][_0x2667('0x3a')](_0x2667('0x13'));_0x7ed675['model'][_0x2667('0x38')]['on'](_0x2667('0x2d'),()=>{const _0x5bdd97=Array[_0x2667('0x2e')](_0x7ed675[_0x2667('0x56')][_0x2667('0x38')]['differ'][_0x2667('0x44')]());for(const {name:_0x578599,data:_0x34014e}of _0x5bdd97){const {group:_0x3ab963,id:_0x33ffa5,subType:_0x58a472}=_0x1a9644[_0x2667('0x64')](_0x578599);if(_0x2667('0x4f')!=_0x3ab963)continue;if(null!=_0x34014e['oldRange'])continue;const _0x404c2f=_0x1a9644['getSuggestion'](_0x33ffa5);this[_0x2667('0x6b')][_0x2667('0x10')](_0x58a472)&&this[_0x2667('0x12')][_0x2667('0x67')](_0x404c2f);}},{'priority':_0x2667('0x37')});const _0x1b4897=(_0x4e180a,_0x26c4b0)=>{let _0x361339=!0x1;const _0x319b2c=_0x26c4b0['createRangeOn'](_0x4e180a),_0xc99c1d=_0x4e180a['findAncestor'](_0x2667('0x68')),_0x1eb898=_0x3e26da[_0x2667('0x50')](_0x4e180a);for(const _0x2122a5 of this[_0x2667('0x12')]){const _0x262377=_0x2122a5['subType'],_0x4f6860=_0x262377[_0x2667('0x1f')]('tablePaste'),_0x30ac93=_0x262377['substr'](_0x4f6860?0xa:0x5),_0x3141d4=_0x30ac93[_0x2667('0x22')](),_0x44a30c=_0x3141d4[_0x2667('0x7d')](0x0,0x3)+'span',_0x426afa=_0x2667('0x20')+_0x30ac93,_0x5b0d4a=_0x2667('0x3d')+_0x30ac93;if(!_0x2122a5['isInContent'])continue;if(_0xc99c1d!=_0x2122a5[_0x2667('0x11')]()[_0x2667('0x4b')]['findAncestor'](_0x2667('0x68')))continue;if(_0x2122a5[_0x2667('0x7e')](_0x319b2c))continue;const _0x181c04=_0x4e180a[_0x2667('0x58')](_0x44a30c)?_0x4e180a['getAttribute'](_0x44a30c)-0x1:0x0,_0x16ed5a=this['_getSuggestionCoords'](_0x2122a5),_0xed2935=_0x16ed5a[_0x426afa],_0x549fae=_0x16ed5a[_0x5b0d4a];_0xed2935<=_0x1eb898[_0x3141d4]&&_0x1eb898[_0x3141d4]+_0x181c04<=_0x549fae&&(_0x2122a5[_0x2667('0x8')](_0x319b2c),_0x361339=!0x0);}return _0x361339;};_0x7ed675['model'][_0x2667('0x38')][_0x2667('0x3f')](_0x346e60=>{let _0x54ada9=!0x1;for(const _0x11f018 of _0x7ed675[_0x2667('0x56')][_0x2667('0x38')]['differ'][_0x2667('0x4')]())if('insert'==_0x11f018[_0x2667('0x6a')]){if(_0x2667('0x34')==_0x11f018[_0x2667('0x70')])for(const _0x53895c of _0x11f018[_0x2667('0x40')]['nodeAfter']['getChildren']())_0x54ada9=_0x54ada9||_0x1b4897(_0x53895c,_0x346e60);else'tableCell'==_0x11f018[_0x2667('0x70')]&&(_0x54ada9=_0x54ada9||_0x1b4897(_0x11f018[_0x2667('0x40')]['nodeAfter'],_0x346e60));}return _0x54ada9;});}[_0x2667('0x51')](_0x400bc4){return this[_0x2667('0x57')](_0x400bc4[_0x2667('0x78')]()[_0x2667('0x43')](_0x241fed=>_0x241fed[_0x2667('0x4b')][_0x2667('0x3e')]));}}function se(_0x581f8d){return Array[_0x2667('0x2e')](new Set(_0x581f8d)[_0x2667('0x2')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1a3c=['plugins','editor','afterInit','TableCaptionEditing','get','toggleTableCaption','requires'];(function(_0x180665,_0x1a3c8a){const _0x39c072=function(_0x2788b9){while(--_0x2788b9){_0x180665['push'](_0x180665['shift']());}};_0x39c072(++_0x1a3c8a);}(_0x1a3c,0xc8));const _0x39c0=function(_0x180665,_0x1a3c8a){_0x180665=_0x180665-0x0;let _0x39c072=_0x1a3c[_0x180665];return _0x39c072;};import{Plugin as _0x391eb7}from'ckeditor5/src/core';import _0xa9f24 from'./table';export default class vt extends _0x391eb7{static get[_0x39c0('0x2')](){return[_0xa9f24];}[_0x39c0('0x5')](){const _0x4f18e4=this[_0x39c0('0x4')];if(!_0x4f18e4[_0x39c0('0x3')]['has'](_0x39c0('0x6')))return;_0x4f18e4[_0x39c0('0x3')][_0x39c0('0x0')]('TrackChangesEditing')['enableCommand'](_0x39c0('0x1'));}}
|