@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230816.0 → 0.0.0-nightly-20230818.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 _0x4fe1=['list.properties','*Format:*\x20set\x20start\x20index\x20to\x20%0','type','model','get','ListUtils','handleDescriptions','reversed','bind','selection','flat','ListPropertiesEditing','listItem','*Format:*\x20set\x20order\x20to\x20reversed','plugins','backward','getSiblingNodes','config','forward','listReversed','handleListReversedCommand','_descriptionFactory','handleListStyleCommand','replace','listType','editor','ELEMENT_','getSelectedBlocks','parent','handleListStartCommand','afterInit','getLastPosition','listStart','change','filter','before','TrackChangesEditing','document','listStyle','styles','from','numbered','*Change\x20to:*\x20%0','map','markMultiRangeBlockFormat','toUpperCase','enableCommand','*Format:*\x20set\x20order\x20to\x20regular','startIndex','length','_getSuggestionBlocks','format','push','getFirstPosition','createPositionAt','element','unshift'];(function(_0x5e563c,_0x4fe107){const _0x3cb66a=function(_0x14324f){while(--_0x14324f){_0x5e563c['push'](_0x5e563c['shift']());}};_0x3cb66a(++_0x4fe107);}(_0x4fe1,0x1f0));const _0x3cb6=function(_0x5e563c,_0x4fe107){_0x5e563c=_0x5e563c-0x0;let _0x3cb66a=_0x4fe1[_0x5e563c];return _0x3cb66a;};import{Plugin as _0x5e387e}from'ckeditor5/src/core';import{getTranslation as _0x1cee0e}from'../utils/common-translations';export default class nt extends _0x5e387e{[_0x3cb6('0x2f')](){if(!this[_0x3cb6('0x2a')][_0x3cb6('0x1f')]['has'](_0x3cb6('0x1c')))return;const _0x1cd405=this[_0x3cb6('0x2a')][_0x3cb6('0x22')][_0x3cb6('0x15')](_0x3cb6('0x11')),_0x34542b=this['editor'][_0x3cb6('0x1f')][_0x3cb6('0x15')]('TrackChangesEditing');_0x1cd405[_0x3cb6('0x38')]&&_0x34542b[_0x3cb6('0x6')](_0x3cb6('0x37'),this[_0x3cb6('0x27')]['bind'](this)),_0x1cd405[_0x3cb6('0x18')]&&_0x34542b[_0x3cb6('0x6')](_0x3cb6('0x24'),this[_0x3cb6('0x25')]['bind'](this)),_0x1cd405['startIndex']&&_0x34542b[_0x3cb6('0x6')](_0x3cb6('0x31'),this[_0x3cb6('0x2e')]['bind'](this)),_0x34542b[_0x3cb6('0x26')]['registerDescriptionCallback'](this[_0x3cb6('0x17')][_0x3cb6('0x19')](this));}[_0x3cb6('0x27')](_0x16d10c,_0x1b92cc={}){const _0x5ec3d3=this[_0x3cb6('0x2a')][_0x3cb6('0x1f')][_0x3cb6('0x15')](_0x3cb6('0x35')),_0x37a518=this['_getSuggestionBlocksForListStyle']();this[_0x3cb6('0x2a')][_0x3cb6('0x14')][_0x3cb6('0x32')](()=>{_0x5ec3d3[_0x3cb6('0x4')](_0x37a518,{'commandName':_0x3cb6('0x37'),'commandParams':[{'type':_0x1b92cc[_0x3cb6('0x13')]}],'formatGroupId':'listStyle'});});}[_0x3cb6('0x25')](_0xf85cf8,_0x290650={}){const _0x1c4232=this[_0x3cb6('0x2a')][_0x3cb6('0x1f')][_0x3cb6('0x15')](_0x3cb6('0x35')),_0x28c9d2=this['_getSuggestionBlocks'](_0x3c4bd1=>_0x3c4bd1['is'](_0x3cb6('0xf'),_0x3cb6('0x1d'))&&_0x3cb6('0x1')===_0x3c4bd1['getAttribute'](_0x3cb6('0x29')));if(_0x28c9d2['length']<0x1)return;const _0x568bff=_0x28c9d2[_0x3cb6('0x3')](_0xf6853d=>this[_0x3cb6('0x2a')][_0x3cb6('0x14')]['createRange'](this[_0x3cb6('0x2a')][_0x3cb6('0x14')][_0x3cb6('0xe')](_0xf6853d,_0x3cb6('0x34')),this['editor'][_0x3cb6('0x14')][_0x3cb6('0xe')](_0xf6853d,0x0)));this[_0x3cb6('0x2a')]['model'][_0x3cb6('0x32')](()=>{_0x1c4232[_0x3cb6('0x4')](_0x568bff,{'commandName':_0x3cb6('0x24'),'commandParams':[{'reversed':_0x290650[_0x3cb6('0x18')]}],'formatGroupId':_0x3cb6('0x24')});});}[_0x3cb6('0x2e')](_0x3c8b7d,_0x9984bd={}){const _0x4a3ead=this[_0x3cb6('0x2a')]['plugins'][_0x3cb6('0x15')](_0x3cb6('0x35')),_0xd49614=this['_getSuggestionBlocks'](_0xb7e9e7=>_0xb7e9e7['is']('element',_0x3cb6('0x1d'))&&'numbered'===_0xb7e9e7['getAttribute']('listType'));if(_0xd49614[_0x3cb6('0x9')]<0x1)return;const _0xf7e2a9=_0xd49614[_0x3cb6('0x3')](_0x64bce4=>this['editor'][_0x3cb6('0x14')]['createRange'](this[_0x3cb6('0x2a')][_0x3cb6('0x14')][_0x3cb6('0xe')](_0x64bce4,'before'),this['editor'][_0x3cb6('0x14')]['createPositionAt'](_0x64bce4,0x0)));this['editor'][_0x3cb6('0x14')][_0x3cb6('0x32')](()=>{_0x4a3ead[_0x3cb6('0x4')](_0xf7e2a9,{'commandName':_0x3cb6('0x31'),'commandParams':[{'startIndex':_0x9984bd[_0x3cb6('0x8')]}],'formatGroupId':_0x3cb6('0x31')});});}[_0x3cb6('0x17')](_0x238f5f){const _0x4e80a5=this['editor']['locale'],{data:_0x5e55d3}=_0x238f5f;if(!_0x5e55d3)return;let _0x1b3842,_0xc31926;switch(_0x5e55d3['commandName']){case'listStyle':_0x1b3842=_0x3cb6('0x2'),_0xc31926={'type':_0x3cb6('0xb'),'content':_0x1cee0e(_0x4e80a5,_0x1b3842,_0x1cee0e(_0x4e80a5,this['_getTranslationKeyForListStyle'](_0x5e55d3['commandParams'][0x0]['type'])))};break;case _0x3cb6('0x24'):_0x1b3842=_0x5e55d3['commandParams'][0x0][_0x3cb6('0x18')]?_0x3cb6('0x1e'):_0x3cb6('0x7'),_0xc31926={'type':'format','content':_0x1cee0e(_0x4e80a5,_0x1b3842)};break;case'listStart':_0x1b3842=_0x3cb6('0x12'),_0xc31926={'type':'format','content':_0x1cee0e(_0x4e80a5,_0x1b3842,_0x5e55d3['commandParams'][0x0]['startIndex'])};}return _0xc31926;}['_getSuggestionBlocksForListStyle'](){var _0x3839ed,_0x95234,_0x1aedc4,_0x467600;const _0x213a2b=this['editor'][_0x3cb6('0x1f')][_0x3cb6('0x15')](_0x3cb6('0x16'));let _0x440ce2=Array[_0x3cb6('0x0')](this[_0x3cb6('0x2a')][_0x3cb6('0x14')][_0x3cb6('0x36')][_0x3cb6('0x1a')][_0x3cb6('0x2c')]());return(null===(_0x3839ed=_0x440ce2[0x0])||void 0x0===_0x3839ed?void 0x0:_0x3839ed['is'](_0x3cb6('0xf'),_0x3cb6('0x1d')))&&_0x440ce2[_0x3cb6('0x10')](..._0x213a2b[_0x3cb6('0x21')](this[_0x3cb6('0x2a')]['model'][_0x3cb6('0x36')][_0x3cb6('0x1a')][_0x3cb6('0xd')](),_0x3cb6('0x20'))),(null===(_0x95234=_0x440ce2[_0x440ce2[_0x3cb6('0x9')]-0x1])||void 0x0===_0x95234?void 0x0:_0x95234['is'](_0x3cb6('0xf'),'listItem'))&&_0x440ce2[_0x3cb6('0xc')](..._0x213a2b['getSiblingNodes'](this[_0x3cb6('0x2a')]['model'][_0x3cb6('0x36')]['selection'][_0x3cb6('0x30')](),_0x3cb6('0x23'))),_0x440ce2=[...new Set(_0x440ce2)],(null===(_0x467600=null===(_0x1aedc4=this[_0x3cb6('0x2a')][_0x3cb6('0x14')][_0x3cb6('0x36')]['selection'][_0x3cb6('0xd')]())||void 0x0===_0x1aedc4?void 0x0:_0x1aedc4[_0x3cb6('0x2d')])||void 0x0===_0x467600?void 0x0:_0x467600['is'](_0x3cb6('0xf'),'listItem'))&&(_0x440ce2=_0x440ce2[_0x3cb6('0x33')](_0xb6e197=>_0xb6e197['is'](_0x3cb6('0xf'),_0x3cb6('0x1d')))),_0x440ce2;}[_0x3cb6('0xa')](_0x5a4611){const _0x262ac2=this[_0x3cb6('0x2a')][_0x3cb6('0x1f')][_0x3cb6('0x15')]('ListUtils');let _0x115636=Array[_0x3cb6('0x0')](this[_0x3cb6('0x2a')][_0x3cb6('0x14')][_0x3cb6('0x36')][_0x3cb6('0x1a')]['getSelectedBlocks']())[_0x3cb6('0x33')](_0x5a4611)[_0x3cb6('0x3')](_0x52a4f6=>{const _0x2de4f7=this[_0x3cb6('0x2a')]['model'][_0x3cb6('0xe')](_0x52a4f6,0x0);return[..._0x262ac2['getSiblingNodes'](_0x2de4f7,'backward'),..._0x262ac2['getSiblingNodes'](_0x2de4f7,_0x3cb6('0x23'))];})[_0x3cb6('0x1b')]();return _0x115636=[...new Set(_0x115636)],_0x115636;}['_getTranslationKeyForListStyle'](_0xd0c54a){return _0x3cb6('0x2b')+this[_0x3cb6('0x2a')][_0x3cb6('0x1f')][_0x3cb6('0x15')]('ListUtils')['getListTypeFromListStyleType'](_0xd0c54a)[_0x3cb6('0x5')]()+'_LIST_'+_0xd0c54a['toUpperCase']()[_0x3cb6('0x28')](/-/g,'_');}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x57d5=['has','stop','options','plugins','for','media','_descriptionFactory','dataDowncast','mediaEmbed','TrackChangesEditing','high','elementToElement','showSuggestionHighlights','get','MediaEmbedEditing','div','registerElementLabel','createEmptyElement','attribute:url:media','locale'];(function(_0x4b13f4,_0x57d591){const _0x56faeb=function(_0x2ff96b){while(--_0x2ff96b){_0x4b13f4['push'](_0x4b13f4['shift']());}};_0x56faeb(++_0x57d591);}(_0x57d5,0x19f));const _0x56fa=function(_0x4b13f4,_0x57d591){_0x4b13f4=_0x4b13f4-0x0;let _0x56faeb=_0x57d5[_0x4b13f4];return _0x56faeb;};import{Plugin as _0x8c9310}from'ckeditor5/src/core';import{getTranslation as _0x27d44e}from'../utils/common-translations';export default class ot extends _0x8c9310{['afterInit'](){const _0x52c801=this['editor'];if(!_0x52c801['plugins'][_0x56fa('0x5')](_0x56fa('0x13')))return;const _0x487596=_0x52c801[_0x56fa('0x8')][_0x56fa('0x12')](_0x56fa('0xe')),_0x1c965f=_0x52c801[_0x56fa('0x4')];_0x487596['enableCommand'](_0x56fa('0xd')),_0x487596[_0x56fa('0xb')][_0x56fa('0x1')](_0x56fa('0xa'),_0x179a4a=>_0x27d44e(_0x1c965f,'ELEMENT_MEDIA',_0x179a4a)),_0x52c801['conversion'][_0x56fa('0x9')](_0x56fa('0xc'))[_0x56fa('0x10')]({'model':'media','view':(_0x336047,{writer:_0x2f9c66,options:_0x32ae88})=>{if(_0x32ae88[_0x56fa('0x11')])return _0x2f9c66[_0x56fa('0x2')](_0x56fa('0x0'));},'converterPriority':'high'}),_0x52c801['data']['downcastDispatcher']['on'](_0x56fa('0x3'),(_0x5891c7,_0x215f37,_0x4f18d1)=>{_0x4f18d1[_0x56fa('0x7')]['showSuggestionHighlights']&&_0x5891c7[_0x56fa('0x6')]();},{'priority':_0x56fa('0xf')});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x203c=['mention','afterInit','has','get','enableCommand','TrackChangesEditing','plugins','editor','MentionEditing'];(function(_0x578473,_0x203c29){const _0x29df2e=function(_0x2eef78){while(--_0x2eef78){_0x578473['push'](_0x578473['shift']());}};_0x29df2e(++_0x203c29);}(_0x203c,0x1d3));const _0x29df=function(_0x578473,_0x203c29){_0x578473=_0x578473-0x0;let _0x29df2e=_0x203c[_0x578473];return _0x29df2e;};import{Plugin as _0xebea8a}from'ckeditor5/src/core';export default class rt extends _0xebea8a{[_0x29df('0x2')](){const _0x4e03db=this[_0x29df('0x8')];_0x4e03db['plugins'][_0x29df('0x3')](_0x29df('0x0'))&&_0x4e03db[_0x29df('0x7')][_0x29df('0x4')](_0x29df('0x6'))[_0x29df('0x5')](_0x29df('0x1'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1b06=['pageBreak','has','plugins','get','ELEMENT_PAGE_BREAK','afterInit','TrackChangesEditing','PageBreakEditing','_descriptionFactory','editor'];(function(_0x4845f9,_0x1b0603){const _0x38d55c=function(_0x459e4c){while(--_0x459e4c){_0x4845f9['push'](_0x4845f9['shift']());}};_0x38d55c(++_0x1b0603);}(_0x1b06,0x193));const _0x38d5=function(_0x4845f9,_0x1b0603){_0x4845f9=_0x4845f9-0x0;let _0x38d55c=_0x1b06[_0x4845f9];return _0x38d55c;};import{Plugin as _0x35aa55}from'ckeditor5/src/core';import{getTranslation as _0x26b475}from'../utils/common-translations';export default class at extends _0x35aa55{[_0x38d5('0x2')](){const _0x1b7e0d=this[_0x38d5('0x6')];if(!_0x1b7e0d[_0x38d5('0x9')][_0x38d5('0x8')](_0x38d5('0x4')))return;_0x1b7e0d['plugins'][_0x38d5('0x0')](_0x38d5('0x3'))['enableCommand']('pageBreak');const _0x52525d=_0x1b7e0d[_0x38d5('0x9')]['get']('TrackChangesEditing'),_0x5a7f42=_0x1b7e0d['locale'];_0x52525d[_0x38d5('0x5')]['registerElementLabel'](_0x38d5('0x7'),_0x154c75=>_0x26b475(_0x5a7f42,_0x38d5('0x1'),_0x154c75));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4b77=['showSuggestionHighlights','commandName','getItemLabel','selection','locale','paragraph','addClass','plugins','data','_descriptionFactory','checkChild','ck-suggestion-marker-split','toViewPosition','editing','change','parent','schema','mapper','editor','consumable','isLimit','insertParagraph','markBlockFormat','markerRange','getFirstRange','addMarker:suggestion:insertion','nodeAfter','Paragraph','filter','markerName','registerDescriptionCallback','blockName','name','insertion','isObject','*Change\x20to:*\x20%0','start','ELEMENT_PARAGRAPH','highest','model','downcastDispatcher','includes','registerElementLabel','$text','*Insert:*\x20%0','TrackChangesEditing','writer','bindElementToMarker','options','from','getSelectedBlocks','isTouching','isBlock','enableCommand','afterInit','get','consume','format','ck-suggestion-marker--active','insert'];(function(_0x5099ce,_0x4b77df){const _0x1c7356=function(_0x204118){while(--_0x204118){_0x5099ce['push'](_0x5099ce['shift']());}};_0x1c7356(++_0x4b77df);}(_0x4b77,0x1b6));const _0x1c73=function(_0x5099ce,_0x4b77df){_0x5099ce=_0x5099ce-0x0;let _0x1c7356=_0x4b77[_0x5099ce];return _0x1c7356;};import{Plugin as _0x3cea3a}from'ckeditor5/src/core';import{getElementsAffectedByListItemRename as _0x5e81e3}from'./utils';import{getTranslation as _0x30c78b}from'../utils/common-translations';export default class ct extends _0x3cea3a{[_0x1c73('0x24')](){const _0x312677=this['editor'];if(!_0x312677[_0x1c73('0x31')]['has'](_0x1c73('0x9')))return;const _0x119e93=_0x312677[_0x1c73('0x2e')],_0x1796eb=_0x312677[_0x1c73('0x31')][_0x1c73('0x25')](_0x1c73('0x1b'));_0x1796eb[_0x1c73('0x33')][_0x1c73('0x18')](_0x1c73('0x2f'),_0x1ee709=>_0x30c78b(_0x119e93,_0x1c73('0x13'),_0x1ee709)),_0x1796eb[_0x1c73('0x23')](_0x1c73('0x2f'),(_0x21e1e7,_0x163c4f={})=>{const _0x3457e6=_0x312677[_0x1c73('0x15')]['document'],_0x112908=_0x163c4f[_0x1c73('0x2d')]||_0x3457e6[_0x1c73('0x2d')],_0xe88fd=Array[_0x1c73('0x1f')](_0x112908[_0x1c73('0x20')]())[_0x1c73('0xa')](_0xe4ce33=>function(_0x2dc30e,_0x530699){return _0x530699['checkChild'](_0x2dc30e[_0x1c73('0x39')],_0x1c73('0x2f'))&&!_0x530699[_0x1c73('0x10')](_0x2dc30e)&&_0x1c73('0x2f')!=_0x2dc30e[_0x1c73('0xe')];}(_0xe4ce33,this[_0x1c73('0x0')][_0x1c73('0x15')][_0x1c73('0x3a')]));_0x312677[_0x1c73('0x15')][_0x1c73('0x38')](()=>{for(const _0x34c57b of _0xe88fd)_0x1796eb[_0x1c73('0x4')](_0x34c57b,{'commandName':_0x1c73('0x2f'),'commandParams':[],'formatGroupId':_0x1c73('0xd')},_0x5e81e3(_0x34c57b));});}),_0x1796eb['_descriptionFactory'][_0x1c73('0xc')](_0x5eccf2=>{const {data:_0x11159a}=_0x5eccf2;if(_0x11159a&&_0x1c73('0x2f')==_0x11159a[_0x1c73('0x2b')])return{'type':_0x1c73('0x27'),'content':_0x30c78b(_0x119e93,_0x1c73('0x11'),_0x30c78b(_0x119e93,_0x1c73('0x13')))};}),_0x1796eb[_0x1c73('0x23')](_0x1c73('0x3')),_0x312677[_0x1c73('0x37')][_0x1c73('0x16')]['on'](_0x1c73('0x7'),ar(_0x312677),{'priority':_0x1c73('0x14')}),_0x312677[_0x1c73('0x32')][_0x1c73('0x16')]['on'](_0x1c73('0x7'),(_0x2ddafc,_0x132ef6,_0x5e89de)=>{_0x5e89de[_0x1c73('0x1e')][_0x1c73('0x2a')]&&ar(_0x312677,{'showActiveMarker':!0x1})(_0x2ddafc,_0x132ef6,_0x5e89de);},{'priority':_0x1c73('0x14')});const _0x444679=_0x1796eb[_0x1c73('0x33')];_0x444679[_0x1c73('0xc')](_0x4ec45c=>{if(_0x1c73('0xf')!==_0x4ec45c['type'])return;const {start:_0x2f9872,end:_0x4b81fd}=_0x4ec45c[_0x1c73('0x6')]();if(!_0x2f9872[_0x1c73('0x21')](_0x4b81fd)||!_0x2f9872[_0x1c73('0x8')])return;const _0x31d626=_0x312677[_0x1c73('0x15')][_0x1c73('0x3a')],_0x88a6fd=_0x2f9872['nodeAfter'];return _0x31d626[_0x1c73('0x22')](_0x88a6fd)&&!_0x31d626['isLimit'](_0x88a6fd)&&_0x31d626[_0x1c73('0x34')](_0x88a6fd,'$text')?{'type':'insertion','content':_0x30c78b(_0x119e93,_0x1c73('0x1a'),_0x444679[_0x1c73('0x2c')](_0x88a6fd,0x1))}:void 0x0;});}}function ar(_0x46f707,{showActiveMarker:_0x558749=!0x0}={}){return(_0x104824,_0x4dec7a,_0x4ea32c)=>{const _0x1f0cdd=_0x46f707[_0x1c73('0x31')][_0x1c73('0x25')](_0x1c73('0x1b')),_0x4de130=_0x4dec7a[_0x1c73('0x5')][_0x1c73('0x12')],_0xbd77d2=_0x4dec7a[_0x1c73('0x5')]['end'],_0xb1243e=_0x46f707[_0x1c73('0x15')]['schema'];if(!_0x4de130[_0x1c73('0x21')](_0xbd77d2)||!_0x4de130['nodeAfter'])return;const _0x18d10d=_0x4de130['nodeAfter'];if(_0xb1243e[_0x1c73('0x22')](_0x18d10d)&&!_0xb1243e[_0x1c73('0x2')](_0x18d10d)&&_0xb1243e[_0x1c73('0x34')](_0x18d10d,_0x1c73('0x19'))){if(!_0x4ea32c[_0x1c73('0x1')][_0x1c73('0x26')](_0x4dec7a[_0x1c73('0x5')],_0x104824[_0x1c73('0xe')]))return;const _0x15a8b4=_0x4ea32c['writer']['createUIElement']('span',{'class':_0x1c73('0x35')}),_0x571f5f=_0x4ea32c[_0x1c73('0x3b')][_0x1c73('0x36')](_0xbd77d2);_0x558749&&_0x1f0cdd['activeMarkers'][_0x1c73('0x17')](_0x4dec7a[_0x1c73('0xb')])&&_0x4ea32c[_0x1c73('0x1c')][_0x1c73('0x30')](_0x1c73('0x28'),_0x15a8b4),_0x4ea32c[_0x1c73('0x1c')][_0x1c73('0x29')](_0x571f5f,_0x15a8b4),_0x4ea32c[_0x1c73('0x3b')][_0x1c73('0x1d')](_0x15a8b4,_0x4dec7a[_0x1c73('0xb')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x17a3=['document','model','editor','isCollapsed','getRanges','from','getAttributeProperties','isFormatting','change','markInlineFormat','registerDescriptionCallback','removeFormat','locale','has','format','plugins','getItems','enableCommand','getAttributes','commandName','RemoveFormatEditing'];(function(_0x375883,_0x17a381){const _0x3665b5=function(_0x5a65d9){while(--_0x5a65d9){_0x375883['push'](_0x375883['shift']());}};_0x3665b5(++_0x17a381);}(_0x17a3,0x14c));const _0x3665=function(_0x375883,_0x17a381){_0x375883=_0x375883-0x0;let _0x3665b5=_0x17a3[_0x375883];return _0x3665b5;};import{Plugin as _0x3cf283}from'ckeditor5/src/core';import{getTranslation as _0x48e82b}from'../utils/common-translations';export default class ht extends _0x3cf283{['afterInit'](){const _0x612209=this[_0x3665('0x6')];if(!_0x612209[_0x3665('0x13')][_0x3665('0x11')](_0x3665('0x3')))return;const _0x46b3da=_0x612209[_0x3665('0x13')]['get']('TrackChangesEditing');_0x46b3da[_0x3665('0x0')]('removeFormat',_0x414dcc=>{const _0x1e290c=_0x612209[_0x3665('0x5')][_0x3665('0x4')]['selection'];_0x1e290c[_0x3665('0x7')]?_0x414dcc():_0x612209[_0x3665('0x5')][_0x3665('0xc')](()=>{const _0x435e8b=Array[_0x3665('0x9')](_0x1e290c[_0x3665('0x8')]());for(const _0x51fa6b of _0x435e8b)for(const _0x20b2cf of _0x51fa6b[_0x3665('0x14')]())eo(_0x20b2cf,_0x612209['model']['schema'])&&_0x46b3da[_0x3665('0xd')](_0x612209[_0x3665('0x5')]['createRangeOn'](_0x20b2cf),{'commandName':_0x3665('0xf'),'commandParams':[]});});}),_0x46b3da['_descriptionFactory'][_0x3665('0xe')](_0x4ea0fc=>{const {data:_0x2ae30f}=_0x4ea0fc;if(_0x2ae30f&&_0x3665('0xf')==_0x2ae30f[_0x3665('0x2')])return{'type':_0x3665('0x12'),'content':_0x48e82b(_0x612209[_0x3665('0x10')],'*Remove\x20all\x20formatting*')};});}}function eo(_0x5e186a,_0x24158b){for(const [_0xdf2d81]of _0x5e186a[_0x3665('0x1')]()){const _0x9dfc26=_0x24158b[_0x3665('0xa')](_0xdf2d81);if(_0x9dfc26&&_0x9dfc26[_0x3665('0xb')])return!0x0;}return!0x1;}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x76db=['goToNextRestrictedEditingException','RestrictedEditingModeEditing','discardAllSuggestions','editor','get','discardSuggestion','afterInit','acceptSuggestion','acceptAllSuggestions','acceptSelectedSuggestions','plugins','enableCommand','has','discardSelectedSuggestions'];(function(_0x5dc6dd,_0x76dbd6){const _0x1fc8e5=function(_0x21ce69){while(--_0x21ce69){_0x5dc6dd['push'](_0x5dc6dd['shift']());}};_0x1fc8e5(++_0x76dbd6);}(_0x76db,0x1ee));const _0x1fc8=function(_0x5dc6dd,_0x76dbd6){_0x5dc6dd=_0x5dc6dd-0x0;let _0x1fc8e5=_0x76db[_0x5dc6dd];return _0x1fc8e5;};import{Plugin as _0xa33136}from'ckeditor5/src/core';export default class ut extends _0xa33136{[_0x1fc8('0x2')](){const _0x3f63a4=this[_0x1fc8('0xd')];if(!_0x3f63a4[_0x1fc8('0x6')][_0x1fc8('0x8')](_0x1fc8('0xb')))return;const _0x38bb32=_0x3f63a4['plugins'][_0x1fc8('0x0')]('TrackChangesEditing');_0x38bb32[_0x1fc8('0x7')]('goToPreviousRestrictedEditingException'),_0x38bb32['enableCommand'](_0x1fc8('0xa'));const _0x4a6b21=_0x3f63a4['plugins'][_0x1fc8('0x0')]('RestrictedEditingModeEditing');_0x4a6b21[_0x1fc8('0x7')]('trackChanges'),_0x4a6b21[_0x1fc8('0x7')](_0x1fc8('0x3')),_0x4a6b21[_0x1fc8('0x7')](_0x1fc8('0x1')),_0x4a6b21[_0x1fc8('0x7')](_0x1fc8('0x4')),_0x4a6b21[_0x1fc8('0x7')](_0x1fc8('0xc')),_0x4a6b21['enableCommand'](_0x1fc8('0x5')),_0x4a6b21[_0x1fc8('0x7')](_0x1fc8('0x9'));}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2af2=['TrackChangesEditing','merge','addClass','span','ELEMENT_LINE_BREAK','markerName','createPositionBefore','addMarker:suggestion:insertion','toViewPosition','addMarker:suggestion:deletion','downcastDispatcher','createUIElement','mapper','name','get','getItems','ck-suggestion-marker--active','insert','options','showSuggestionHighlights','addMarker:suggestion','editing','element','data','writer','locale','deletion','high','softBreak','markerRange','requires','enableCommand','consumable','init','includes','activeMarkers','shiftEnter'];(function(_0x3db97c,_0x2af279){const _0x86bfed=function(_0x11101f){while(--_0x11101f){_0x3db97c['push'](_0x3db97c['shift']());}};_0x86bfed(++_0x2af279);}(_0x2af2,0x167));const _0x86bf=function(_0x3db97c,_0x2af279){_0x3db97c=_0x3db97c-0x0;let _0x86bfed=_0x2af2[_0x3db97c];return _0x86bfed;};import{Plugin as _0x388d03}from'ckeditor5/src/core';import{ShiftEnter as _0x316bc1}from'ckeditor5/src/enter';import{getTranslation as _0x5dad83}from'../utils/common-translations';export default class ft extends _0x388d03{static get[_0x86bf('0x4')](){return[_0x316bc1];}[_0x86bf('0x7')](){const _0x5c6989=this['editor'],_0x4f9217=_0x5c6989['plugins'][_0x86bf('0x19')](_0x86bf('0xb'));_0x4f9217[_0x86bf('0x5')](_0x86bf('0xa')),_0x5c6989[_0x86bf('0x20')][_0x86bf('0x15')]['on'](_0x86bf('0x12'),re(_0x5c6989),{'priority':_0x86bf('0x1')}),_0x5c6989[_0x86bf('0x20')][_0x86bf('0x15')]['on'](_0x86bf('0x14'),re(_0x5c6989),{'priority':_0x86bf('0x1')}),_0x5c6989[_0x86bf('0x22')][_0x86bf('0x15')]['on'](_0x86bf('0x1f'),(_0x734f06,_0x4c7daa,_0x5ba828)=>{_0x5ba828[_0x86bf('0x1d')][_0x86bf('0x1e')]&&re(_0x5c6989,{'showActiveMarker':!0x1})(_0x734f06,_0x4c7daa,_0x5ba828);}),_0x4f9217['_descriptionFactory']['registerElementLabel'](_0x86bf('0x2'),_0x2c2f2e=>_0x5dad83(_0x5c6989[_0x86bf('0x24')],_0x86bf('0xf'),_0x2c2f2e));}}function re(_0x96c900,{showActiveMarker:_0x302558=!0x0}={}){return(_0x586fc1,_0x27170f,_0x42dc97)=>{const _0x42d464=_0x96c900['plugins'][_0x86bf('0x19')]('TrackChangesEditing');if(!_0x42dc97[_0x86bf('0x6')]['test'](_0x27170f[_0x86bf('0x3')],_0x586fc1[_0x86bf('0x18')]))return;const _0x57127e=_0x96c900['model'];for(const _0x137713 of _0x27170f[_0x86bf('0x3')][_0x86bf('0x1a')]()){if(!_0x137713['is'](_0x86bf('0x21'),_0x86bf('0x2')))continue;const _0x21e433=_0x86bf('0x0')==_0x27170f[_0x86bf('0x10')]['split'](':')[0x1]?_0x86bf('0xc'):'split',_0xb35db=_0x42dc97[_0x86bf('0x23')][_0x86bf('0x16')](_0x86bf('0xe'),{'class':'ck-suggestion-marker-'+_0x21e433}),_0x51e27e=_0x42dc97[_0x86bf('0x17')][_0x86bf('0x13')](_0x57127e[_0x86bf('0x11')](_0x137713));_0x302558&&_0x42d464[_0x86bf('0x9')][_0x86bf('0x8')](_0x27170f['markerName'])&&_0x42dc97[_0x86bf('0x23')][_0x86bf('0xd')](_0x86bf('0x1b'),_0xb35db),_0x42dc97[_0x86bf('0x23')][_0x86bf('0x1c')](_0x51e27e,_0xb35db),_0x42dc97['mapper']['bindElementToMarker'](_0xb35db,_0x27170f[_0x86bf('0x10')]);}};}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x1553=['forceValue','value','TrackChangesEditing','model','get','enableCommand','change','plugins','restrictedEditingException','getRanges','from','FORMAT_RESTRICTED_ENABLED','commands','editor','format','FORMAT_RESTRICTED_DISABLED','commandName','markInlineFormat','locale','StandardEditingModeEditing','afterInit','selection','isCollapsed'];(function(_0x559c6d,_0x155352){const _0x1efbf9=function(_0x5d2d8e){while(--_0x5d2d8e){_0x559c6d['push'](_0x559c6d['shift']());}};_0x1efbf9(++_0x155352);}(_0x1553,0x1cb));const _0x1efb=function(_0x559c6d,_0x155352){_0x559c6d=_0x559c6d-0x0;let _0x1efbf9=_0x1553[_0x559c6d];return _0x1efbf9;};import{Plugin as _0x15a30d}from'ckeditor5/src/core';import{getRangesWithAttribute as _0x2f4e7b}from'./utils';import{getTranslation as _0x21b2e}from'../utils/common-translations';export default class lt extends _0x15a30d{[_0x1efb('0x15')](){const _0xef2dbc=this[_0x1efb('0xe')],_0x24d384=_0xef2dbc[_0x1efb('0x4')],_0x11d9c3=_0xef2dbc[_0x1efb('0x13')];if(!_0xef2dbc[_0x1efb('0x8')]['has'](_0x1efb('0x14')))return;const _0x2f3994=_0xef2dbc[_0x1efb('0x8')][_0x1efb('0x5')](_0x1efb('0x3')),_0x3f4cbc=_0x1efb('0x9'),_0x3b1971=_0xef2dbc[_0x1efb('0xd')][_0x1efb('0x5')](_0x3f4cbc);_0x2f3994[_0x1efb('0x6')](_0x3f4cbc,(_0xb9382c,_0x1bd065={})=>{const _0x3ff790=_0x24d384['document'][_0x1efb('0x16')];if(_0x3ff790[_0x1efb('0x0')])return void _0xb9382c(_0x1bd065);const _0x1eb75d=void 0x0!==_0x1bd065[_0x1efb('0x1')]?_0x1bd065['forceValue']:!_0x3b1971[_0x1efb('0x2')];_0x24d384[_0x1efb('0x7')](()=>{const _0x2475cd=Array[_0x1efb('0xb')](_0x3ff790[_0x1efb('0xa')]());for(const _0x3411ac of _0x2475cd){const _0x1d9591=_0x1eb75d?[_0x3411ac]:_0x2f4e7b(_0x3f4cbc,_0x3411ac,_0x24d384);for(const _0x28a520 of _0x1d9591)_0x2f3994[_0x1efb('0x12')](_0x28a520,{'commandName':_0x3f4cbc,'commandParams':[{'forceValue':_0x1eb75d}]});}});}),_0x2f3994['_descriptionFactory']['registerDescriptionCallback'](_0x57edc3=>{const {data:_0x176475}=_0x57edc3;if(_0x176475&&_0x176475[_0x1efb('0x11')]==_0x3f4cbc)return _0x176475['commandParams'][0x0][_0x1efb('0x1')]?{'type':_0x1efb('0xf'),'content':_0x21b2e(_0x11d9c3,_0x1efb('0xc'))}:{'type':_0x1efb('0xf'),'content':_0x21b2e(_0x11d9c3,_0x1efb('0x10'))};});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x530b=['value','from','plugins','enableCommand','block','style','getDefinitionsForView','markBlockFormat','style:','commandName','document','getSelectedBlocks','model','getRanges','*Remove\x20format:*\x20%0','change','registerDescriptionCallback','inline','styleName','get','enabledStyles','commandParams','editor','_getRangesWithClasses','afterInit','modelElements','commands','isCollapsed','_getStyleDefinition','getAncestors','add','includes','getItems','TrackChangesEditing','_descriptionFactory','name','push','StyleUtils','find','isBlock','*Format:*\x20%0','selection','normalizeConfig','classes'];(function(_0x5b3ec1,_0x530bcc){const _0x29f278=function(_0x33a185){while(--_0x33a185){_0x5b3ec1['push'](_0x5b3ec1['shift']());}};_0x29f278(++_0x530bcc);}(_0x530b,0x1e3));const _0x29f2=function(_0x5b3ec1,_0x530bcc){_0x5b3ec1=_0x5b3ec1-0x0;let _0x29f278=_0x530b[_0x5b3ec1];return _0x29f278;};import{Plugin as _0x4ddd8d}from'ckeditor5/src/core';import{getTranslation as _0x47371c}from'../utils/common-translations';export default class gt extends _0x4ddd8d{[_0x29f2('0x19')](){const _0x5de158=this[_0x29f2('0x17')];if(!_0x5de158['plugins']['has']('Style'))return;const _0xd61f5b=_0x5de158[_0x29f2('0x1b')][_0x29f2('0x14')](_0x29f2('0x6')),_0x16e1b6=_0x5de158['plugins'][_0x29f2('0x14')](_0x29f2('0x22')),_0x20d191=_0x5de158['locale'],_0x3a1d37=_0x5de158[_0x29f2('0x3')][_0x29f2('0x14')]('DataSchema'),_0x3404b4=_0x5de158[_0x29f2('0x3')][_0x29f2('0x14')](_0x29f2('0x26'))[_0x29f2('0x2b')](_0x3a1d37,_0x5de158['config'][_0x29f2('0x14')]('style.definitions'));_0x16e1b6[_0x29f2('0x4')](_0x29f2('0x6'),(_0x5395fc,{styleName:_0xf4d9cb})=>{const _0x50187d=_0x5de158[_0x29f2('0xd')][_0x29f2('0xb')][_0x29f2('0x2a')],_0x154d01=this[_0x29f2('0x1d')](_0xf4d9cb,_0x3404b4);if(!_0x154d01)return;if(!_0xd61f5b[_0x29f2('0x15')][_0x29f2('0x20')](_0xf4d9cb))return;if(_0x50187d[_0x29f2('0x1c')]&&!_0x154d01[_0x29f2('0x28')])return void _0x5395fc({'styleName':_0xf4d9cb});const _0x24d034=!_0xd61f5b[_0x29f2('0x1')]['includes'](_0x154d01[_0x29f2('0x24')]);if(_0x154d01['isBlock']){const _0x4aa34b=function(_0x4c0ec2,_0x57ae49){const _0x43756e=new Set();for(const _0x157bdc of _0x4c0ec2){const _0x2455a9=_0x157bdc[_0x29f2('0x1e')]({'includeSelf':!0x0,'parentFirst':!0x0});for(const _0x150f56 of _0x2455a9)if(_0x57ae49['includes'](_0x150f56[_0x29f2('0x24')])){_0x43756e[_0x29f2('0x1f')](_0x150f56);break;}}return _0x43756e;}(_0x50187d[_0x29f2('0xc')](),_0x154d01[_0x29f2('0x1a')]);_0x5de158[_0x29f2('0xd')][_0x29f2('0x10')](()=>{for(const _0x434bdb of _0x4aa34b)_0x16e1b6[_0x29f2('0x8')](_0x434bdb,{'commandName':_0x29f2('0x6'),'commandParams':[{'styleName':_0xf4d9cb,'forceValue':_0x24d034}],'formatGroupId':_0x29f2('0x9')+_0xf4d9cb});});}else{let _0x108a22=Array[_0x29f2('0x2')](_0x50187d[_0x29f2('0xe')]());if(!_0x24d034){const _0x56260b=Array['from'](_0x3a1d37[_0x29f2('0x7')](_0x154d01['element'],!0x1))[0x0][_0x29f2('0xd')],_0x424839=[];for(const _0x594097 of _0x108a22){const _0x1e4ba6=this[_0x29f2('0x18')](_0x5de158['model'],_0x594097,_0x154d01[_0x29f2('0x0')],_0x56260b);_0x424839[_0x29f2('0x25')](..._0x1e4ba6);}_0x108a22=_0x424839;}_0x5de158[_0x29f2('0xd')]['change'](()=>{for(const _0x17663e of _0x108a22)_0x16e1b6['markInlineFormat'](_0x17663e,{'commandName':_0x29f2('0x6'),'commandParams':[{'styleName':_0xf4d9cb,'forceValue':_0x24d034}]});});}}),_0x16e1b6[_0x29f2('0x23')][_0x29f2('0x11')](_0x59a615=>{const {data:_0x2c6c92}=_0x59a615;if(_0x2c6c92&&_0x29f2('0x6')===_0x2c6c92[_0x29f2('0xa')])return _0x2c6c92[_0x29f2('0x16')][0x0]['forceValue']?{'type':'format','content':_0x47371c(_0x20d191,_0x29f2('0x29'),_0x2c6c92[_0x29f2('0x16')][0x0][_0x29f2('0x13')]['toLowerCase']())}:{'type':'format','content':_0x47371c(_0x20d191,_0x29f2('0xf'),_0x2c6c92[_0x29f2('0x16')][0x0][_0x29f2('0x13')]['toLowerCase']())};});}[_0x29f2('0x1d')](_0x462ce1,_0xd0d10a){let _0x2b1514=_0xd0d10a[_0x29f2('0x5')][_0x29f2('0x27')](_0x1afd88=>_0x1afd88[_0x29f2('0x24')]===_0x462ce1);return _0x2b1514||(_0x2b1514=_0xd0d10a[_0x29f2('0x12')]['find'](_0x219b53=>_0x219b53[_0x29f2('0x24')]===_0x462ce1)),_0x2b1514;}[_0x29f2('0x18')](_0x3b8004,_0x48363d,_0x24b518,_0x180bda){const _0x18b2ad=[];for(const _0xcceab6 of _0x48363d[_0x29f2('0x21')]()){const _0x3d2197=_0xcceab6['getAttribute'](_0x180bda);_0x3d2197&&(_0x24b518['every'](_0x9a396=>_0x3d2197[_0x29f2('0x0')][_0x29f2('0x20')](_0x9a396))&&_0x18b2ad['push'](_0x3b8004['createRangeOn'](_0xcceab6)));}return _0x18b2ad;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x127c=['map','nodeAfter','*Remove:*\x20%0','subType','getChangedMarkers','MAX_SAFE_INTEGER','_getCoordsForCells','$textProxy','every','selectTableRow','MIN_SAFE_INTEGER','enableCommand','getCellLocation','detach','insertion','registerElementLabel','*Insert:*\x20%0','insertTable','_tablePostFixingSubtypes','fromRange','$graveyard','getItems','editor','differ','isEqual','_suggestionFactory','from','downcastDispatcher','setSelection','ELEMENT_TABLE','getSelectionAffectedTableCells','max','name','getAttribute','ELEMENT_TABLE_WITH_TEXT','getColumnIndexes','commands','isTouching','length','change','push','start','min','tableCell','tableColumn','change:data','has','ELEMENT_TABLE_COLUMN','deletion','markMultiRangeInsertion','classes','low','addClass','order','insertTableRowBelow','end','values','filter','join','root','above','tableRow','ELEMENT_TABLE_COLUMN_WITH_TEXT','createRangeIn','data','createTableWalker','getRowIndexes','refresh','last','removeTableRow','getChanges','createRangeOn','TrackChangesEditing','insert','rowspan','selection','_tableSuggestions','position','_setupColumnsRowsFixing','getContainedElement','colspan','document','discard','isInContent','_acceptFormatSuggestionCallbackFactory','minRow','enqueueChange','left','maxColumn','cell','TableUtils','execute','registerPostFixer','getRanges','ELEMENT_TABLE_ROW','toViewElement','rootName','plugins','isArray','table','registerCustomCallback','model','some','insertTableColumnLeft','toLowerCase','_descriptionFactory','element','registerDescriptionCallback','substr','suggestion','hasAttribute','insertTableRowAbove','markMultiRangeDeletion','_splitMarkerName','get','type','isIntersectingWithRange','addRange','_getSuggestionCoords','first','TableEditing','removeTableColumn','removeClass','startsWith','findAncestor','accept','addMarker:suggestion','showSuggestionHighlights','nodeBefore'];(function(_0x1aa450,_0x127c20){const _0x4e5228=function(_0x1f2455){while(--_0x1f2455){_0x1aa450['push'](_0x1aa450['shift']());}};_0x4e5228(++_0x127c20);}(_0x127c,0xd3));const _0x4e52=function(_0x1aa450,_0x127c20){_0x1aa450=_0x1aa450-0x0;let _0x4e5228=_0x127c[_0x1aa450];return _0x4e5228;};import{Plugin as _0x26b157}from'ckeditor5/src/core';import{LiveRange as _0x1eeb7c}from'ckeditor5/src/engine';import{setHighlightHandling as _0x18d020}from'ckeditor5/src/widget';import{getTranslation as _0x17c4b4}from'../utils/common-translations';export default class mt extends _0x26b157{constructor(_0xab02da){super(_0xab02da),this[_0x4e52('0x41')]=[_0x4e52('0x6c'),_0x4e52('0x5b')],this[_0x4e52('0x7b')]=new Set();}['afterInit'](){const _0x3e9902=this[_0x4e52('0x45')],_0x3adc28=_0x3e9902[_0x4e52('0x13')]['document'][_0x4e52('0x7a')];if(!_0x3e9902[_0x4e52('0xf')][_0x4e52('0x5d')](_0x4e52('0x26')))return;const _0x19775c=_0x3e9902['locale'],_0x572222=_0x3e9902[_0x4e52('0xf')][_0x4e52('0x20')]('TrackChangesEditing'),_0x4dfb4a=_0x3e9902[_0x4e52('0xf')][_0x4e52('0x20')](_0x4e52('0x8'));_0x572222[_0x4e52('0x17')][_0x4e52('0x3e')]('table',_0x3b694d=>_0x17c4b4(_0x19775c,_0x4e52('0x4c'),_0x3b694d)),this[_0x4e52('0x7d')](),_0x572222[_0x4e52('0x3a')](_0x4e52('0x40')),_0x572222['enableCommand'](_0x4e52('0x38')),_0x572222[_0x4e52('0x3a')]('selectTableColumn');for(const _0x2201de of[_0x4e52('0x1d'),_0x4e52('0x65')]){const _0xe42691=_0x3e9902[_0x4e52('0x53')][_0x4e52('0x20')](_0x2201de);_0x572222[_0x4e52('0x3a')](_0x2201de,_0x1cc548=>{_0x3e9902[_0x4e52('0x13')]['change'](_0x3b259d=>{_0x1cc548();const _0x5ebc54=_0x4e52('0x6b')===_0xe42691[_0x4e52('0x64')],_0x89df36=_0x4dfb4a['getSelectionAffectedTableCells'](_0x3adc28),_0x5a7886=_0x4dfb4a[_0x4e52('0x71')](_0x89df36),_0x21f3bc=_0x5ebc54?_0x5a7886['first']-0x1:_0x5a7886[_0x4e52('0x73')]+0x1,_0x1c74cb=_0x89df36[0x0][_0x4e52('0x2a')](_0x4e52('0x11')),_0x2919fe=_0x4dfb4a['createTableWalker'](_0x1c74cb,{'startRow':_0x21f3bc,'endRow':_0x21f3bc}),_0x49caca=Array[_0x4e52('0x49')](_0x2919fe)[_0x4e52('0x2f')](_0x477972=>_0x3b259d['createRangeOn'](_0x477972[_0x4e52('0x7')]));_0x572222['markMultiRangeInsertion'](_0x49caca,_0x4e52('0x6c'));});});}for(const _0x2272ff of[_0x4e52('0x15'),'insertTableColumnRight']){const _0x1e9344=_0x3e9902[_0x4e52('0x53')][_0x4e52('0x20')](_0x2272ff);_0x572222['enableCommand'](_0x2272ff,_0x5f1d21=>{_0x3e9902[_0x4e52('0x13')][_0x4e52('0x56')](_0x4b3280=>{_0x5f1d21();const _0x56b55c=_0x4e52('0x5')===_0x1e9344[_0x4e52('0x64')],_0x4ba7a7=_0x4dfb4a[_0x4e52('0x4d')](_0x3adc28),_0x1c9b05=_0x4dfb4a[_0x4e52('0x52')](_0x4ba7a7),_0x3da648=_0x56b55c?_0x1c9b05[_0x4e52('0x25')]-0x1:_0x1c9b05['last']+0x1,_0x2183b4=_0x4ba7a7[0x0][_0x4e52('0x2a')](_0x4e52('0x11')),_0x19fdd0=_0x4dfb4a[_0x4e52('0x70')](_0x2183b4,{'startRow':0x0,'column':_0x3da648,'includeAllSlots':!0x1}),_0x5e60cb=Array[_0x4e52('0x49')](_0x19fdd0)[_0x4e52('0x2f')](_0x5e9312=>_0x4b3280[_0x4e52('0x76')](_0x5e9312['cell']));_0x572222[_0x4e52('0x60')](_0x5e60cb,_0x4e52('0x5b'));});});}for(const _0xf45dbd of[_0x4e52('0x74'),_0x4e52('0x27')]){const _0xbb8a40=_0xf45dbd[_0x4e52('0x1a')](0xb),_0x13cba7=_0xbb8a40[_0x4e52('0x16')](),_0x43b75e=_0x13cba7[_0x4e52('0x1a')](0x0,0x3)+'span',_0x44491b='table'+_0xbb8a40,_0x21960e=_0x4e52('0x59')+_0xbb8a40,_0x1cef9d=_0x4e52('0x4e')+_0xbb8a40;_0x572222[_0x4e52('0x3a')](_0xf45dbd,()=>{_0x3e9902[_0x4e52('0x13')]['change'](_0x1d948f=>{const _0x14d5fd=_0x4dfb4a['getSelectionAffectedTableCells'](_0x3adc28),_0x4f8cff=_0x14d5fd[0x0][_0x4e52('0x2a')](_0x4e52('0x11'));let _0x43c46e;if(_0x4e52('0x74')==_0xf45dbd){const _0x549c33=_0x4dfb4a[_0x4e52('0x71')](_0x14d5fd);_0x43c46e={'startRow':_0x549c33[_0x4e52('0x25')],'endRow':_0x549c33[_0x4e52('0x73')],'includeAllSlots':!0x0};}else{const _0x4b263f=_0x4dfb4a[_0x4e52('0x52')](_0x14d5fd);_0x43c46e={'startColumn':_0x4b263f[_0x4e52('0x25')],'endColumn':_0x4b263f[_0x4e52('0x73')],'includeAllSlots':!0x0};}const _0x547400=_0x4dfb4a['createTableWalker'](_0x4f8cff,_0x43c46e),_0x20c3c0=Array[_0x4e52('0x49')](_0x547400)['map'](({cell:_0x218475})=>_0x218475),_0xb4fef6=se(_0x20c3c0[_0x4e52('0x68')](_0x529e71=>_0x529e71[_0x4e52('0x1c')](_0x43b75e))),_0x258e04=se(_0x20c3c0[_0x4e52('0x68')](_0x275165=>!_0x275165[_0x4e52('0x1c')](_0x43b75e)))[_0x4e52('0x2f')](_0x2dcd0d=>_0x1d948f['createRangeOn'](_0x2dcd0d)),_0x5298fa=_0x572222[_0x4e52('0x1e')](_0x258e04,_0x44491b);if(_0x5298fa&&('tableRow'==_0x5298fa[_0x4e52('0x32')]||_0x4e52('0x5b')==_0x5298fa[_0x4e52('0x32')])){const _0x56ad49=this['_getSuggestionCoords'](_0x5298fa);for(const _0x4e6b2f of _0xb4fef6){const _0x468958=_0x1d948f['createRangeOn'](_0x4e6b2f),_0x4b5854=_0x4dfb4a[_0x4e52('0x3b')](_0x4e6b2f),_0x5685e7=_0x4e6b2f[_0x4e52('0x50')](_0x43b75e)-0x1,_0x336068=_0x56ad49[_0x21960e],_0x9c047d=_0x56ad49[_0x1cef9d];_0x336068<=_0x4b5854[_0x13cba7]&&_0x4b5854[_0x13cba7]+_0x5685e7<=_0x9c047d&&_0x5298fa['addRange'](_0x468958);}}});});}function _0x4e922b(_0x13e391){const _0x504a9e=Array[_0x4e52('0x49')](_0x3adc28[_0x4e52('0xb')]())[_0x4e52('0x2f')](_0xcf678d=>_0x1eeb7c[_0x4e52('0x42')](_0xcf678d));_0x3e9902[_0x4e52('0x13')][_0x4e52('0x56')](_0x4b981b=>{const _0x45d6d6=_0x4b981b['batch'];_0x13e391=_0x13e391['filter'](_0x3ac97f=>_0x4e52('0x43')!=_0x3ac97f[_0x4e52('0x6a')][_0x4e52('0xe')]),_0x4b981b[_0x4e52('0x4b')](_0x13e391),_0x3e9902[_0x4e52('0x53')][_0x4e52('0x20')](_0x4e52('0x74'))[_0x4e52('0x72')](),_0x3e9902[_0x4e52('0x9')](_0x4e52('0x74'),{'forceDefaultExecution':!0x0}),_0x3e9902['model'][_0x4e52('0x4')](()=>{_0x3e9902[_0x4e52('0x13')][_0x4e52('0x4')](_0x45d6d6,_0x205509=>{const _0x2596f9=_0x504a9e[_0x4e52('0x68')](_0x4b1308=>_0x4e52('0x43')!=_0x4b1308[_0x4e52('0x6a')][_0x4e52('0xe')]);_0x2596f9[_0x4e52('0x55')]>0x0&&_0x205509['setSelection'](_0x2596f9);for(const _0x285cfe of _0x504a9e)_0x285cfe['detach']();});});});}function _0x313fae(_0x24eef4){_0x3e9902[_0x4e52('0x13')][_0x4e52('0x56')](_0x504503=>{const _0xed9164=Array[_0x4e52('0x49')](_0x3adc28[_0x4e52('0xb')]())[_0x4e52('0x2f')](_0x4b3d85=>_0x1eeb7c[_0x4e52('0x42')](_0x4b3d85)),_0x38568e=[];for(const _0x5b36d8 of _0x24eef4)for(const _0x3c7a8b of _0x5b36d8[_0x4e52('0x44')]({'shallow':!0x0}))_0x38568e[_0x4e52('0x57')](_0x3c7a8b);for(const _0xad35af of _0x38568e)_0x4e52('0x43')!=_0xad35af['root']['rootName']&&(_0x504503[_0x4e52('0x4b')](_0x504503['createPositionAt'](_0xad35af,0x0)),_0x3e9902[_0x4e52('0x53')][_0x4e52('0x20')](_0x4e52('0x27'))['refresh'](),_0x3e9902[_0x4e52('0x9')](_0x4e52('0x27'),{'forceDefaultExecution':!0x0}));const _0x476ed0=_0xed9164['filter'](_0x1d6207=>'$graveyard'!=_0x1d6207[_0x4e52('0x6a')][_0x4e52('0xe')]);_0x476ed0[_0x4e52('0x55')]>0x0&&_0x504503[_0x4e52('0x4b')](_0x476ed0);for(const _0x1eda7e of _0xed9164)_0x1eda7e[_0x4e52('0x3c')]();});}function _0x38d90f(_0x4fd45d,_0x18f8ec){return _0x18f8ec[_0x4e52('0x37')](_0x2710b6=>_0x4fd45d[_0x4e52('0x14')](_0x6ef14f=>_0x6ef14f[_0x4e52('0x66')][_0x4e52('0x47')](_0x2710b6[_0x4e52('0x58')])||_0x2710b6['end'][_0x4e52('0x47')](_0x6ef14f['start'])));}function _0x8f0a76(_0x466a10,_0x1ad144){return _0x466a10[_0x4e52('0x14')](_0x3e4092=>_0x1ad144[_0x4e52('0x14')](_0x243ccc=>_0x3e4092[_0x4e52('0x66')][_0x4e52('0x54')](_0x243ccc[_0x4e52('0x58')])));}_0x3e9902[_0x4e52('0x6f')][_0x4e52('0x4a')]['on'](_0x4e52('0x2c'),(_0x4f9c2a,_0x5a7d50,_0x438b44)=>{if(!_0x438b44['options'][_0x4e52('0x2d')])return;const _0x48556d=_0x5a7d50['item'];if(!_0x48556d)return;const _0x41410c=_0x438b44['mapper'][_0x4e52('0xd')](_0x48556d);function _0x6cc189(_0xdeb9f){return Array[_0x4e52('0x10')](_0xdeb9f)?_0xdeb9f:[_0xdeb9f];}_0x41410c&&'tableCell'===_0x48556d['name']&&_0x18d020(_0x41410c,_0x438b44['writer'],(_0x48b4db,_0x52dde0,_0x42d84f)=>_0x42d84f[_0x4e52('0x63')](_0x6cc189(_0x52dde0[_0x4e52('0x61')]),_0x48b4db),(_0x17c601,_0x2c8989,_0x2e2a90)=>_0x2e2a90[_0x4e52('0x28')](_0x6cc189(_0x2c8989[_0x4e52('0x61')]),_0x17c601));},{'priority':'highest'}),_0x572222[_0x4e52('0x17')][_0x4e52('0x19')](_0x327727=>{if(_0x4e52('0x3d')!=_0x327727[_0x4e52('0x21')]&&_0x4e52('0x5f')!=_0x327727['type'])return;const _0x19715e=_0x327727[_0x4e52('0x7e')]();if(null!=_0x19715e&&_0x19715e['is'](_0x4e52('0x18'),_0x4e52('0x11'))){if('insertion'==_0x327727[_0x4e52('0x21')]){const _0x152a72=_0x327727[_0x4e52('0x44')]()['filter'](_0x3be6dd=>_0x3be6dd['is'](_0x4e52('0x36')))[_0x4e52('0x2f')](_0x2ce9dd=>_0x2ce9dd[_0x4e52('0x6f')]);if(_0x152a72['length'])return{'type':_0x4e52('0x3d'),'content':_0x17c4b4(_0x19775c,_0x4e52('0x3f'),_0x17c4b4(_0x19775c,_0x4e52('0x51'),'\x22'+_0x152a72[_0x4e52('0x69')]('\x20')+'\x22'))};}if(_0x4e52('0x5f')==_0x327727[_0x4e52('0x21')]){const _0x2ef8a3=_0x327727[_0x4e52('0x44')]()[_0x4e52('0x68')](_0x41c58e=>_0x41c58e['is'](_0x4e52('0x36')))[_0x4e52('0x2f')](_0x536d8a=>_0x536d8a[_0x4e52('0x6f')]);if(_0x2ef8a3[_0x4e52('0x55')])return{'type':_0x4e52('0x5f'),'content':_0x17c4b4(_0x19775c,_0x4e52('0x31'),_0x17c4b4(_0x19775c,_0x4e52('0x51'),'\x22'+_0x2ef8a3[_0x4e52('0x69')]('\x20')+'\x22'))};}}}),_0x572222['_descriptionFactory']['registerDescriptionCallback'](_0x92e72e=>{if(_0x4e52('0x6c')==_0x92e72e[_0x4e52('0x32')]){const _0x2183b7=_0x92e72e[_0x4e52('0x44')]()[_0x4e52('0x68')](_0x1f9b3f=>_0x1f9b3f['is'](_0x4e52('0x36')))[_0x4e52('0x2f')](_0x28f1ed=>_0x28f1ed[_0x4e52('0x6f')]),_0x3de147=this[_0x4e52('0x24')](_0x92e72e),_0x470e0e=_0x3de147['maxRow']-_0x3de147[_0x4e52('0x3')]+0x1;if(_0x4e52('0x3d')==_0x92e72e[_0x4e52('0x21')])return _0x2183b7[_0x4e52('0x55')]?{'type':_0x4e52('0x3d'),'content':_0x17c4b4(_0x19775c,'*Insert:*\x20%0',_0x17c4b4(_0x19775c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x470e0e,'\x22'+_0x2183b7['join']('\x20')+'\x22']))}:{'type':_0x4e52('0x3d'),'content':_0x17c4b4(_0x19775c,_0x4e52('0x3f'),_0x17c4b4(_0x19775c,_0x4e52('0xc'),_0x470e0e))};if(_0x4e52('0x5f')==_0x92e72e[_0x4e52('0x21')])return _0x2183b7[_0x4e52('0x55')]?{'type':'deletion','content':_0x17c4b4(_0x19775c,_0x4e52('0x31'),_0x17c4b4(_0x19775c,'ELEMENT_TABLE_ROW_WITH_TEXT',[_0x470e0e,'\x22'+_0x2183b7[_0x4e52('0x69')]('\x20')+'\x22']))}:{'type':'deletion','content':_0x17c4b4(_0x19775c,_0x4e52('0x31'),_0x17c4b4(_0x19775c,'ELEMENT_TABLE_ROW',_0x470e0e))};}if(_0x4e52('0x5b')==_0x92e72e[_0x4e52('0x32')]){const _0x5ab27a=_0x92e72e[_0x4e52('0x44')]()['filter'](_0x26e47e=>_0x26e47e['is']('$textProxy'))[_0x4e52('0x2f')](_0x1be7bb=>_0x1be7bb['data']),_0x515669=this[_0x4e52('0x24')](_0x92e72e),_0x4dbef3=_0x515669[_0x4e52('0x6')]-_0x515669['minColumn']+0x1;if(_0x4e52('0x3d')==_0x92e72e[_0x4e52('0x21')])return _0x5ab27a[_0x4e52('0x55')]?{'type':_0x4e52('0x3d'),'content':_0x17c4b4(_0x19775c,_0x4e52('0x3f'),_0x17c4b4(_0x19775c,_0x4e52('0x6d'),[_0x4dbef3,'\x22'+_0x5ab27a[_0x4e52('0x69')]('\x20')+'\x22']))}:{'type':_0x4e52('0x3d'),'content':_0x17c4b4(_0x19775c,_0x4e52('0x3f'),_0x17c4b4(_0x19775c,'ELEMENT_TABLE_COLUMN',_0x4dbef3))};if('deletion'==_0x92e72e['type'])return _0x5ab27a[_0x4e52('0x55')]?{'type':_0x4e52('0x5f'),'content':_0x17c4b4(_0x19775c,_0x4e52('0x31'),_0x17c4b4(_0x19775c,_0x4e52('0x6d'),[_0x4dbef3,'\x22'+_0x5ab27a[_0x4e52('0x69')]('\x20')+'\x22']))}:{'type':_0x4e52('0x5f'),'content':_0x17c4b4(_0x19775c,_0x4e52('0x31'),_0x17c4b4(_0x19775c,_0x4e52('0x5e'),_0x4dbef3))};}}),_0x572222[_0x4e52('0x48')][_0x4e52('0x12')](_0x4e52('0x3d'),_0x4e52('0x6c'),'discard',_0x4e922b),_0x572222[_0x4e52('0x48')][_0x4e52('0x12')](_0x4e52('0x5f'),_0x4e52('0x6c'),_0x4e52('0x2b'),_0x4e922b),_0x572222[_0x4e52('0x48')][_0x4e52('0x12')](_0x4e52('0x3d'),_0x4e52('0x5b'),_0x4e52('0x0'),_0x313fae),_0x572222[_0x4e52('0x48')]['registerCustomCallback']('deletion',_0x4e52('0x5b'),_0x4e52('0x2b'),_0x313fae),_0x572222[_0x4e52('0x48')][_0x4e52('0x12')](_0x4e52('0x3d'),'tableColumn','join',_0x38d90f),_0x572222[_0x4e52('0x48')][_0x4e52('0x12')](_0x4e52('0x5f'),_0x4e52('0x5b'),_0x4e52('0x69'),_0x38d90f),_0x572222[_0x4e52('0x48')][_0x4e52('0x12')](_0x4e52('0x3d'),_0x4e52('0x6c'),_0x4e52('0x69'),_0x8f0a76),_0x572222[_0x4e52('0x48')][_0x4e52('0x12')](_0x4e52('0x5f'),_0x4e52('0x6c'),_0x4e52('0x69'),_0x8f0a76);}[_0x4e52('0x2')](){const _0x2fc857=this[_0x4e52('0x45')],_0x13b9b5=_0x2fc857[_0x4e52('0x13')][_0x4e52('0x80')][_0x4e52('0x7a')];return(_0x2fa2a4,_0x14a500)=>{_0x2fc857[_0x4e52('0x13')][_0x4e52('0x56')](_0x390950=>{const {commandName:_0x2bc50d,commandParams:_0x29d22f}=_0x14a500;let _0x587812=_0x2fa2a4[0x0]['end'][_0x4e52('0x2e')];_0x29d22f&&_0x29d22f[0x0]&&!0x1===_0x29d22f[0x0]['forceValue']&&(_0x587812=_0x2fa2a4[0x0][_0x4e52('0x58')]['nodeAfter']);const _0x4c1199=_0x390950[_0x4e52('0x6e')](_0x587812);if(_0x4e52('0x43')==_0x4c1199[_0x4e52('0x6a')][_0x4e52('0xe')])return;const _0x489d73=Array[_0x4e52('0x49')](_0x13b9b5[_0x4e52('0xb')]())[_0x4e52('0x2f')](_0x4e05e0=>_0x1eeb7c['fromRange'](_0x4e05e0));_0x390950[_0x4e52('0x4b')](_0x4c1199),_0x2fc857[_0x4e52('0x53')][_0x4e52('0x20')](_0x2bc50d)[_0x4e52('0x72')](),_0x29d22f['push']({'forceDefaultExecution':!0x0}),_0x2fc857[_0x4e52('0x9')](_0x2bc50d,..._0x29d22f);const _0x20cdd8=_0x489d73[_0x4e52('0x68')](_0x229bdf=>'$graveyard'!=_0x229bdf[_0x4e52('0x6a')][_0x4e52('0xe')]);_0x20cdd8[_0x4e52('0x55')]>0x0&&_0x390950[_0x4e52('0x4b')](_0x20cdd8);for(const _0x20d747 of _0x489d73)_0x20d747[_0x4e52('0x3c')]();});};}[_0x4e52('0x35')](_0x1561ad){const _0x43e982=this['editor']['plugins'][_0x4e52('0x20')](_0x4e52('0x8'));let _0x2b13fa=Number[_0x4e52('0x34')],_0x17f1c6=Number[_0x4e52('0x39')],_0x49777a=Number[_0x4e52('0x34')],_0x1e06ea=Number['MIN_SAFE_INTEGER'];for(const _0x20861f of _0x1561ad){if('$graveyard'==_0x20861f[_0x4e52('0x6a')][_0x4e52('0xe')])continue;const {row:_0x254f1b,column:_0x330b39}=_0x43e982['getCellLocation'](_0x20861f),_0x416e9f=_0x20861f['hasAttribute'](_0x4e52('0x79'))?_0x20861f[_0x4e52('0x50')](_0x4e52('0x79'))-0x1:0x0,_0x590388=_0x20861f[_0x4e52('0x1c')]('colspan')?_0x20861f[_0x4e52('0x50')](_0x4e52('0x7f'))-0x1:0x0;_0x2b13fa=_0x254f1b<_0x2b13fa?_0x254f1b:_0x2b13fa,_0x17f1c6=_0x254f1b+_0x416e9f>_0x17f1c6?_0x254f1b+_0x416e9f:_0x17f1c6,_0x49777a=_0x330b39<_0x49777a?_0x330b39:_0x49777a,_0x1e06ea=_0x330b39+_0x590388>_0x1e06ea?_0x330b39+_0x590388:_0x1e06ea;}return{'minRow':_0x2b13fa,'maxRow':_0x17f1c6,'minColumn':_0x49777a,'maxColumn':_0x1e06ea};}[_0x4e52('0x7d')](){const _0x27d81f=this['editor'],_0x1a3f87=_0x27d81f[_0x4e52('0xf')][_0x4e52('0x20')](_0x4e52('0x77')),_0x1c2cc3=_0x27d81f['plugins']['get'](_0x4e52('0x8'));_0x27d81f[_0x4e52('0x13')][_0x4e52('0x80')]['on'](_0x4e52('0x5c'),()=>{const _0x214627=Array[_0x4e52('0x49')](_0x27d81f['model'][_0x4e52('0x80')][_0x4e52('0x46')][_0x4e52('0x33')]());for(const {name:_0x5d72b0,data:_0x2297ac}of _0x214627){const {group:_0x534daa,id:_0xde68d9,subType:_0x3d9624}=_0x1a3f87[_0x4e52('0x1f')](_0x5d72b0);if(_0x4e52('0x1b')!=_0x534daa)continue;if(null!=_0x2297ac['oldRange'])continue;const _0x44e405=_0x1a3f87['getSuggestion'](_0xde68d9);this[_0x4e52('0x41')]['includes'](_0x3d9624)&&this[_0x4e52('0x7b')]['add'](_0x44e405);}},{'priority':_0x4e52('0x62')});const _0x24356e=(_0xf29427,_0x45c1c7)=>{let _0x186ab0=!0x1;const _0x106a0b=_0x45c1c7[_0x4e52('0x76')](_0xf29427),_0x4b11d5=_0xf29427[_0x4e52('0x2a')](_0x4e52('0x11')),_0x496d05=_0x1c2cc3[_0x4e52('0x3b')](_0xf29427);for(const _0x43daf5 of this[_0x4e52('0x7b')]){const _0x3e146f=_0x43daf5['subType'],_0x18ce19=_0x3e146f[_0x4e52('0x29')]('tablePaste'),_0x57d3be=_0x3e146f['substr'](_0x18ce19?0xa:0x5),_0x1e0fbf=_0x57d3be['toLowerCase'](),_0x29351e=_0x1e0fbf[_0x4e52('0x1a')](0x0,0x3)+'span',_0x3387d5=_0x4e52('0x59')+_0x57d3be,_0x1e3cc2=_0x4e52('0x4e')+_0x57d3be;if(!_0x43daf5[_0x4e52('0x1')])continue;if(_0x4b11d5!=_0x43daf5['getFirstRange']()['start'][_0x4e52('0x2a')](_0x4e52('0x11')))continue;if(_0x43daf5[_0x4e52('0x22')](_0x106a0b))continue;const _0x2dc00b=_0xf29427[_0x4e52('0x1c')](_0x29351e)?_0xf29427[_0x4e52('0x50')](_0x29351e)-0x1:0x0,_0x309f01=this[_0x4e52('0x24')](_0x43daf5),_0x11c05f=_0x309f01[_0x3387d5],_0x2677cf=_0x309f01[_0x1e3cc2];_0x11c05f<=_0x496d05[_0x1e0fbf]&&_0x496d05[_0x1e0fbf]+_0x2dc00b<=_0x2677cf&&(_0x43daf5[_0x4e52('0x23')](_0x106a0b),_0x186ab0=!0x0);}return _0x186ab0;};_0x27d81f[_0x4e52('0x13')][_0x4e52('0x80')][_0x4e52('0xa')](_0x24cd30=>{let _0x50f50b=!0x1;for(const _0x28f900 of _0x27d81f[_0x4e52('0x13')]['document'][_0x4e52('0x46')][_0x4e52('0x75')]())if(_0x4e52('0x78')==_0x28f900[_0x4e52('0x21')]){if(_0x4e52('0x6c')==_0x28f900['name'])for(const _0xefbcbe of _0x28f900[_0x4e52('0x7c')][_0x4e52('0x30')]['getChildren']())_0x50f50b=_0x50f50b||_0x24356e(_0xefbcbe,_0x24cd30);else _0x4e52('0x5a')==_0x28f900[_0x4e52('0x4f')]&&(_0x50f50b=_0x50f50b||_0x24356e(_0x28f900['position'][_0x4e52('0x30')],_0x24cd30));}return _0x50f50b;});}[_0x4e52('0x24')](_0x23a919){return this[_0x4e52('0x35')](_0x23a919[_0x4e52('0xb')]()[_0x4e52('0x2f')](_0x56957e=>_0x56957e['start']['nodeAfter']));}}function se(_0x3c00be){return Array['from'](new Set(_0x3c00be)[_0x4e52('0x67')]());}
|
|
23
|
+
const _0x2bb0=['subType','cell','markMultiRangeInsertion','tableCell','left','maxColumn','execute','tableRow','maxRow','_setupColumnsRowsFixing','item','insertion','change:data','isEqual','ELEMENT_TABLE_COLUMN_WITH_TEXT','commands','enqueueChange','markMultiRangeDeletion','getRowIndexes','from','isInContent','highest','start','createRangeIn','createTableWalker','toLowerCase','plugins','setSelection','last','insert','locale','position','removeClass','_getSuggestionCoords','discard','colspan','root','mapper','deletion','oldRange','registerElementLabel','ELEMENT_TABLE_WITH_TEXT','every','getChangedMarkers','options','getSelectionAffectedTableCells','filter','findAncestor','addMarker:suggestion','document','min','has','_tableSuggestions','first','TableUtils','change','removeTableRow','insertTableColumnLeft','showSuggestionHighlights','getSuggestion','createPositionAt','_suggestionFactory','_tablePostFixingSubtypes','getRanges','getFirstRange','hasAttribute','$textProxy','getChildren','differ','_descriptionFactory','table','insertTable','includes','downcastDispatcher','rootName','max','ELEMENT_TABLE','selectTableRow','toViewElement','enableCommand','insertTableRowAbove','get','nodeAfter','batch','type','rowspan','fromRange','accept','tableColumn','map','data','startsWith','isArray','MAX_SAFE_INTEGER','span','getCellLocation','getChanges','getItems','selection','registerDescriptionCallback','editor','low','ELEMENT_TABLE_COLUMN','above','model','ELEMENT_TABLE_ROW','*Remove:*\x20%0','insertTableColumnRight','some','removeTableColumn','element','name','add','isTouching','substr','afterInit','tablePaste','_getCoordsForCells','_acceptFormatSuggestionCallbackFactory','length','$graveyard','writer','end','getAttribute','TableEditing','values','join','MIN_SAFE_INTEGER','*Insert:*\x20%0','TrackChangesEditing','selectTableColumn','registerCustomCallback','ELEMENT_TABLE_ROW_WITH_TEXT','addRange','refresh','insertTableRowBelow','createRangeOn'];(function(_0x5c6e81,_0x2bb0df){const _0x50f152=function(_0x3ad698){while(--_0x3ad698){_0x5c6e81['push'](_0x5c6e81['shift']());}};_0x50f152(++_0x2bb0df);}(_0x2bb0,0x1e8));const _0x50f1=function(_0x5c6e81,_0x2bb0df){_0x5c6e81=_0x5c6e81-0x0;let _0x50f152=_0x2bb0[_0x5c6e81];return _0x50f152;};import{Plugin as _0x3ca5cf}from'ckeditor5/src/core';import{LiveRange as _0xc7d87}from'ckeditor5/src/engine';import{setHighlightHandling as _0x3360c9}from'ckeditor5/src/widget';import{getTranslation as _0x39b536}from'../utils/common-translations';export default class mt extends _0x3ca5cf{constructor(_0x3f1772){super(_0x3f1772),this[_0x50f1('0x7a')]=['tableRow',_0x50f1('0xb')],this[_0x50f1('0x70')]=new Set();}[_0x50f1('0x26')](){const _0x5e2b46=this[_0x50f1('0x17')],_0x4d7e6b=_0x5e2b46[_0x50f1('0x1b')][_0x50f1('0x6d')][_0x50f1('0x15')];if(!_0x5e2b46['plugins'][_0x50f1('0x6f')](_0x50f1('0x2f')))return;const _0x245258=_0x5e2b46[_0x50f1('0x5a')],_0x3d6b46=_0x5e2b46[_0x50f1('0x56')][_0x50f1('0x4')](_0x50f1('0x34')),_0x14cc5c=_0x5e2b46['plugins'][_0x50f1('0x4')](_0x50f1('0x72'));_0x3d6b46[_0x50f1('0x81')][_0x50f1('0x64')]('table',_0xf352bb=>_0x39b536(_0x245258,_0x50f1('0x88'),_0xf352bb)),this[_0x50f1('0x45')](),_0x3d6b46[_0x50f1('0x2')](_0x50f1('0x83')),_0x3d6b46[_0x50f1('0x2')](_0x50f1('0x0')),_0x3d6b46[_0x50f1('0x2')](_0x50f1('0x35'));for(const _0x465f34 of[_0x50f1('0x3'),_0x50f1('0x3a')]){const _0x108377=_0x5e2b46['commands'][_0x50f1('0x4')](_0x465f34);_0x3d6b46['enableCommand'](_0x465f34,_0x2e5a62=>{_0x5e2b46['model'][_0x50f1('0x73')](_0x1e7522=>{_0x2e5a62();const _0x30e6d2=_0x50f1('0x1a')===_0x108377['order'],_0x4f4957=_0x14cc5c['getSelectionAffectedTableCells'](_0x4d7e6b),_0x3318cc=_0x14cc5c[_0x50f1('0x4e')](_0x4f4957),_0x26fc5d=_0x30e6d2?_0x3318cc[_0x50f1('0x71')]-0x1:_0x3318cc[_0x50f1('0x58')]+0x1,_0x4b67f=_0x4f4957[0x0][_0x50f1('0x6b')](_0x50f1('0x82')),_0x5aebc1=_0x14cc5c[_0x50f1('0x54')](_0x4b67f,{'startRow':_0x26fc5d,'endRow':_0x26fc5d}),_0xa3f160=Array[_0x50f1('0x4f')](_0x5aebc1)[_0x50f1('0xc')](_0x58451a=>_0x1e7522[_0x50f1('0x3b')](_0x58451a[_0x50f1('0x3d')]));_0x3d6b46[_0x50f1('0x3e')](_0xa3f160,'tableRow');});});}for(const _0x379562 of[_0x50f1('0x75'),_0x50f1('0x1e')]){const _0x4e5b2d=_0x5e2b46[_0x50f1('0x4b')][_0x50f1('0x4')](_0x379562);_0x3d6b46['enableCommand'](_0x379562,_0xfb5d2f=>{_0x5e2b46[_0x50f1('0x1b')][_0x50f1('0x73')](_0x53419e=>{_0xfb5d2f();const _0x1ca941=_0x50f1('0x40')===_0x4e5b2d['order'],_0x425533=_0x14cc5c[_0x50f1('0x69')](_0x4d7e6b),_0x40f40b=_0x14cc5c['getColumnIndexes'](_0x425533),_0xe0ea58=_0x1ca941?_0x40f40b[_0x50f1('0x71')]-0x1:_0x40f40b[_0x50f1('0x58')]+0x1,_0x19aba6=_0x425533[0x0][_0x50f1('0x6b')]('table'),_0x21a28c=_0x14cc5c['createTableWalker'](_0x19aba6,{'startRow':0x0,'column':_0xe0ea58,'includeAllSlots':!0x1}),_0x10da79=Array[_0x50f1('0x4f')](_0x21a28c)['map'](_0x47ad70=>_0x53419e['createRangeOn'](_0x47ad70[_0x50f1('0x3d')]));_0x3d6b46[_0x50f1('0x3e')](_0x10da79,_0x50f1('0xb'));});});}for(const _0x294985 of[_0x50f1('0x74'),_0x50f1('0x20')]){const _0x387a97=_0x294985[_0x50f1('0x25')](0xb),_0x2d68f3=_0x387a97[_0x50f1('0x55')](),_0x2cc287=_0x2d68f3[_0x50f1('0x25')](0x0,0x3)+'span',_0x1e678d='table'+_0x387a97,_0x5e3202=_0x50f1('0x6e')+_0x387a97,_0x2a1e49=_0x50f1('0x87')+_0x387a97;_0x3d6b46[_0x50f1('0x2')](_0x294985,()=>{_0x5e2b46['model'][_0x50f1('0x73')](_0x272df2=>{const _0x1a2864=_0x14cc5c[_0x50f1('0x69')](_0x4d7e6b),_0x134401=_0x1a2864[0x0]['findAncestor']('table');let _0x4fffaa;if(_0x50f1('0x74')==_0x294985){const _0x5e3d37=_0x14cc5c[_0x50f1('0x4e')](_0x1a2864);_0x4fffaa={'startRow':_0x5e3d37[_0x50f1('0x71')],'endRow':_0x5e3d37[_0x50f1('0x58')],'includeAllSlots':!0x0};}else{const _0x441da2=_0x14cc5c['getColumnIndexes'](_0x1a2864);_0x4fffaa={'startColumn':_0x441da2['first'],'endColumn':_0x441da2[_0x50f1('0x58')],'includeAllSlots':!0x0};}const _0x334079=_0x14cc5c[_0x50f1('0x54')](_0x134401,_0x4fffaa),_0x147b4f=Array['from'](_0x334079)['map'](({cell:_0x97ac50})=>_0x97ac50),_0x158d6a=se(_0x147b4f[_0x50f1('0x6a')](_0x1a77ff=>_0x1a77ff[_0x50f1('0x7d')](_0x2cc287))),_0x50111a=se(_0x147b4f[_0x50f1('0x6a')](_0x552639=>!_0x552639[_0x50f1('0x7d')](_0x2cc287)))['map'](_0xad6297=>_0x272df2[_0x50f1('0x3b')](_0xad6297)),_0x5ae984=_0x3d6b46[_0x50f1('0x4d')](_0x50111a,_0x1e678d);if(_0x5ae984&&(_0x50f1('0x43')==_0x5ae984[_0x50f1('0x3c')]||_0x50f1('0xb')==_0x5ae984[_0x50f1('0x3c')])){const _0x4335c1=this[_0x50f1('0x5d')](_0x5ae984);for(const _0x2b924 of _0x158d6a){const _0x22da9b=_0x272df2[_0x50f1('0x3b')](_0x2b924),_0xcecb64=_0x14cc5c[_0x50f1('0x12')](_0x2b924),_0x9f3204=_0x2b924['getAttribute'](_0x2cc287)-0x1,_0x454c79=_0x4335c1[_0x5e3202],_0x427be3=_0x4335c1[_0x2a1e49];_0x454c79<=_0xcecb64[_0x2d68f3]&&_0xcecb64[_0x2d68f3]+_0x9f3204<=_0x427be3&&_0x5ae984[_0x50f1('0x38')](_0x22da9b);}}});});}function _0xa5ae03(_0x5ab9d3){const _0x564c72=Array[_0x50f1('0x4f')](_0x4d7e6b['getRanges']())[_0x50f1('0xc')](_0x1df823=>_0xc7d87[_0x50f1('0x9')](_0x1df823));_0x5e2b46['model']['change'](_0x256811=>{const _0x34e0dd=_0x256811[_0x50f1('0x6')];_0x5ab9d3=_0x5ab9d3[_0x50f1('0x6a')](_0x476ae6=>_0x50f1('0x2b')!=_0x476ae6[_0x50f1('0x60')][_0x50f1('0x86')]),_0x256811['setSelection'](_0x5ab9d3),_0x5e2b46[_0x50f1('0x4b')][_0x50f1('0x4')](_0x50f1('0x74'))[_0x50f1('0x39')](),_0x5e2b46[_0x50f1('0x42')]('removeTableRow',{'forceDefaultExecution':!0x0}),_0x5e2b46[_0x50f1('0x1b')]['enqueueChange'](()=>{_0x5e2b46['model'][_0x50f1('0x4c')](_0x34e0dd,_0x496c1a=>{const _0x17e331=_0x564c72[_0x50f1('0x6a')](_0xa55b36=>_0x50f1('0x2b')!=_0xa55b36[_0x50f1('0x60')][_0x50f1('0x86')]);_0x17e331[_0x50f1('0x2a')]>0x0&&_0x496c1a['setSelection'](_0x17e331);for(const _0x3482c2 of _0x564c72)_0x3482c2['detach']();});});});}function _0x3fbea7(_0x201354){_0x5e2b46[_0x50f1('0x1b')]['change'](_0x10866e=>{const _0x136281=Array['from'](_0x4d7e6b[_0x50f1('0x7b')]())[_0x50f1('0xc')](_0xae2858=>_0xc7d87[_0x50f1('0x9')](_0xae2858)),_0x14a4f7=[];for(const _0x214861 of _0x201354)for(const _0x179aa5 of _0x214861[_0x50f1('0x14')]({'shallow':!0x0}))_0x14a4f7['push'](_0x179aa5);for(const _0x3dcd34 of _0x14a4f7)_0x50f1('0x2b')!=_0x3dcd34[_0x50f1('0x60')][_0x50f1('0x86')]&&(_0x10866e[_0x50f1('0x57')](_0x10866e[_0x50f1('0x78')](_0x3dcd34,0x0)),_0x5e2b46[_0x50f1('0x4b')][_0x50f1('0x4')]('removeTableColumn')['refresh'](),_0x5e2b46[_0x50f1('0x42')](_0x50f1('0x20'),{'forceDefaultExecution':!0x0}));const _0x572569=_0x136281[_0x50f1('0x6a')](_0x2f9a1f=>_0x50f1('0x2b')!=_0x2f9a1f[_0x50f1('0x60')][_0x50f1('0x86')]);_0x572569['length']>0x0&&_0x10866e[_0x50f1('0x57')](_0x572569);for(const _0x2f8dd7 of _0x136281)_0x2f8dd7['detach']();});}function _0x1efd4f(_0x2943d8,_0x37cf07){return _0x37cf07[_0x50f1('0x66')](_0x38bbc6=>_0x2943d8[_0x50f1('0x1f')](_0x429021=>_0x429021[_0x50f1('0x2d')][_0x50f1('0x49')](_0x38bbc6['start'])||_0x38bbc6[_0x50f1('0x2d')][_0x50f1('0x49')](_0x429021[_0x50f1('0x52')])));}function _0x54e1f0(_0x18aced,_0x1ec7df){return _0x18aced[_0x50f1('0x1f')](_0x296415=>_0x1ec7df[_0x50f1('0x1f')](_0x44762d=>_0x296415[_0x50f1('0x2d')][_0x50f1('0x24')](_0x44762d[_0x50f1('0x52')])));}_0x5e2b46[_0x50f1('0xd')][_0x50f1('0x85')]['on'](_0x50f1('0x6c'),(_0x278d7e,_0x5929ef,_0x1220d8)=>{if(!_0x1220d8[_0x50f1('0x68')][_0x50f1('0x76')])return;const _0x31559e=_0x5929ef[_0x50f1('0x46')];if(!_0x31559e)return;const _0x217d09=_0x1220d8[_0x50f1('0x61')][_0x50f1('0x1')](_0x31559e);function _0x3c39e8(_0x36ac64){return Array[_0x50f1('0xf')](_0x36ac64)?_0x36ac64:[_0x36ac64];}_0x217d09&&_0x50f1('0x3f')===_0x31559e[_0x50f1('0x22')]&&_0x3360c9(_0x217d09,_0x1220d8[_0x50f1('0x2c')],(_0x4f256c,_0xcc792a,_0x22e6f1)=>_0x22e6f1['addClass'](_0x3c39e8(_0xcc792a['classes']),_0x4f256c),(_0x4889ad,_0x35494e,_0xa8ff39)=>_0xa8ff39[_0x50f1('0x5c')](_0x3c39e8(_0x35494e['classes']),_0x4889ad));},{'priority':_0x50f1('0x51')}),_0x3d6b46['_descriptionFactory']['registerDescriptionCallback'](_0x271766=>{if('insertion'!=_0x271766['type']&&_0x50f1('0x62')!=_0x271766[_0x50f1('0x7')])return;const _0x571747=_0x271766['getContainedElement']();if(null!=_0x571747&&_0x571747['is'](_0x50f1('0x21'),_0x50f1('0x82'))){if('insertion'==_0x271766[_0x50f1('0x7')]){const _0x8b57da=_0x271766[_0x50f1('0x14')]()[_0x50f1('0x6a')](_0x3cb30d=>_0x3cb30d['is']('$textProxy'))[_0x50f1('0xc')](_0xf2120b=>_0xf2120b[_0x50f1('0xd')]);if(_0x8b57da['length'])return{'type':_0x50f1('0x47'),'content':_0x39b536(_0x245258,_0x50f1('0x33'),_0x39b536(_0x245258,_0x50f1('0x65'),'\x22'+_0x8b57da[_0x50f1('0x31')]('\x20')+'\x22'))};}if(_0x50f1('0x62')==_0x271766['type']){const _0x3c6ed8=_0x271766[_0x50f1('0x14')]()[_0x50f1('0x6a')](_0x2702c5=>_0x2702c5['is'](_0x50f1('0x7e')))[_0x50f1('0xc')](_0x5a8153=>_0x5a8153[_0x50f1('0xd')]);if(_0x3c6ed8['length'])return{'type':_0x50f1('0x62'),'content':_0x39b536(_0x245258,_0x50f1('0x1d'),_0x39b536(_0x245258,_0x50f1('0x65'),'\x22'+_0x3c6ed8[_0x50f1('0x31')]('\x20')+'\x22'))};}}}),_0x3d6b46[_0x50f1('0x81')][_0x50f1('0x16')](_0x3926be=>{if(_0x50f1('0x43')==_0x3926be[_0x50f1('0x3c')]){const _0x3e61d4=_0x3926be['getItems']()['filter'](_0x172626=>_0x172626['is'](_0x50f1('0x7e')))[_0x50f1('0xc')](_0x55c261=>_0x55c261['data']),_0x3b0f5b=this['_getSuggestionCoords'](_0x3926be),_0x703855=_0x3b0f5b[_0x50f1('0x44')]-_0x3b0f5b['minRow']+0x1;if(_0x50f1('0x47')==_0x3926be[_0x50f1('0x7')])return _0x3e61d4[_0x50f1('0x2a')]?{'type':'insertion','content':_0x39b536(_0x245258,_0x50f1('0x33'),_0x39b536(_0x245258,_0x50f1('0x37'),[_0x703855,'\x22'+_0x3e61d4[_0x50f1('0x31')]('\x20')+'\x22']))}:{'type':_0x50f1('0x47'),'content':_0x39b536(_0x245258,_0x50f1('0x33'),_0x39b536(_0x245258,_0x50f1('0x1c'),_0x703855))};if('deletion'==_0x3926be[_0x50f1('0x7')])return _0x3e61d4[_0x50f1('0x2a')]?{'type':_0x50f1('0x62'),'content':_0x39b536(_0x245258,_0x50f1('0x1d'),_0x39b536(_0x245258,_0x50f1('0x37'),[_0x703855,'\x22'+_0x3e61d4[_0x50f1('0x31')]('\x20')+'\x22']))}:{'type':_0x50f1('0x62'),'content':_0x39b536(_0x245258,_0x50f1('0x1d'),_0x39b536(_0x245258,_0x50f1('0x1c'),_0x703855))};}if(_0x50f1('0xb')==_0x3926be[_0x50f1('0x3c')]){const _0x56f65c=_0x3926be[_0x50f1('0x14')]()[_0x50f1('0x6a')](_0x16fa1c=>_0x16fa1c['is'](_0x50f1('0x7e')))['map'](_0x573811=>_0x573811[_0x50f1('0xd')]),_0x56444b=this[_0x50f1('0x5d')](_0x3926be),_0x10aec6=_0x56444b[_0x50f1('0x41')]-_0x56444b['minColumn']+0x1;if(_0x50f1('0x47')==_0x3926be[_0x50f1('0x7')])return _0x56f65c[_0x50f1('0x2a')]?{'type':'insertion','content':_0x39b536(_0x245258,_0x50f1('0x33'),_0x39b536(_0x245258,_0x50f1('0x4a'),[_0x10aec6,'\x22'+_0x56f65c[_0x50f1('0x31')]('\x20')+'\x22']))}:{'type':_0x50f1('0x47'),'content':_0x39b536(_0x245258,'*Insert:*\x20%0',_0x39b536(_0x245258,_0x50f1('0x19'),_0x10aec6))};if(_0x50f1('0x62')==_0x3926be[_0x50f1('0x7')])return _0x56f65c[_0x50f1('0x2a')]?{'type':_0x50f1('0x62'),'content':_0x39b536(_0x245258,'*Remove:*\x20%0',_0x39b536(_0x245258,_0x50f1('0x4a'),[_0x10aec6,'\x22'+_0x56f65c[_0x50f1('0x31')]('\x20')+'\x22']))}:{'type':_0x50f1('0x62'),'content':_0x39b536(_0x245258,_0x50f1('0x1d'),_0x39b536(_0x245258,_0x50f1('0x19'),_0x10aec6))};}}),_0x3d6b46[_0x50f1('0x79')][_0x50f1('0x36')](_0x50f1('0x47'),'tableRow',_0x50f1('0x5e'),_0xa5ae03),_0x3d6b46['_suggestionFactory'][_0x50f1('0x36')](_0x50f1('0x62'),_0x50f1('0x43'),_0x50f1('0xa'),_0xa5ae03),_0x3d6b46[_0x50f1('0x79')][_0x50f1('0x36')](_0x50f1('0x47'),_0x50f1('0xb'),_0x50f1('0x5e'),_0x3fbea7),_0x3d6b46['_suggestionFactory'][_0x50f1('0x36')](_0x50f1('0x62'),_0x50f1('0xb'),_0x50f1('0xa'),_0x3fbea7),_0x3d6b46['_suggestionFactory']['registerCustomCallback'](_0x50f1('0x47'),_0x50f1('0xb'),_0x50f1('0x31'),_0x1efd4f),_0x3d6b46[_0x50f1('0x79')]['registerCustomCallback'](_0x50f1('0x62'),_0x50f1('0xb'),_0x50f1('0x31'),_0x1efd4f),_0x3d6b46[_0x50f1('0x79')][_0x50f1('0x36')](_0x50f1('0x47'),_0x50f1('0x43'),_0x50f1('0x31'),_0x54e1f0),_0x3d6b46['_suggestionFactory'][_0x50f1('0x36')](_0x50f1('0x62'),'tableRow',_0x50f1('0x31'),_0x54e1f0);}[_0x50f1('0x29')](){const _0x3d834a=this['editor'],_0x1fc142=_0x3d834a[_0x50f1('0x1b')][_0x50f1('0x6d')][_0x50f1('0x15')];return(_0x363edb,_0x3482f8)=>{_0x3d834a[_0x50f1('0x1b')][_0x50f1('0x73')](_0xf69e1b=>{const {commandName:_0x62f8b6,commandParams:_0x314de9}=_0x3482f8;let _0x959d17=_0x363edb[0x0][_0x50f1('0x2d')]['nodeBefore'];_0x314de9&&_0x314de9[0x0]&&!0x1===_0x314de9[0x0]['forceValue']&&(_0x959d17=_0x363edb[0x0][_0x50f1('0x52')]['nodeAfter']);const _0x90d2b6=_0xf69e1b[_0x50f1('0x53')](_0x959d17);if(_0x50f1('0x2b')==_0x90d2b6['root'][_0x50f1('0x86')])return;const _0x1a965e=Array[_0x50f1('0x4f')](_0x1fc142[_0x50f1('0x7b')]())[_0x50f1('0xc')](_0xdcabe7=>_0xc7d87[_0x50f1('0x9')](_0xdcabe7));_0xf69e1b[_0x50f1('0x57')](_0x90d2b6),_0x3d834a[_0x50f1('0x4b')]['get'](_0x62f8b6)[_0x50f1('0x39')](),_0x314de9['push']({'forceDefaultExecution':!0x0}),_0x3d834a['execute'](_0x62f8b6,..._0x314de9);const _0x339ae2=_0x1a965e[_0x50f1('0x6a')](_0x3ec4cb=>'$graveyard'!=_0x3ec4cb[_0x50f1('0x60')]['rootName']);_0x339ae2['length']>0x0&&_0xf69e1b[_0x50f1('0x57')](_0x339ae2);for(const _0x58407f of _0x1a965e)_0x58407f['detach']();});};}[_0x50f1('0x28')](_0x5e5ffc){const _0x1b75b4=this['editor'][_0x50f1('0x56')]['get'](_0x50f1('0x72'));let _0x3d5add=Number[_0x50f1('0x10')],_0x514da7=Number[_0x50f1('0x32')],_0x24612d=Number['MAX_SAFE_INTEGER'],_0x583318=Number[_0x50f1('0x32')];for(const _0x310e50 of _0x5e5ffc){if(_0x50f1('0x2b')==_0x310e50[_0x50f1('0x60')][_0x50f1('0x86')])continue;const {row:_0x3d968c,column:_0x3dd4bb}=_0x1b75b4[_0x50f1('0x12')](_0x310e50),_0x323337=_0x310e50[_0x50f1('0x7d')](_0x50f1('0x8'))?_0x310e50[_0x50f1('0x2e')]('rowspan')-0x1:0x0,_0x21de0f=_0x310e50[_0x50f1('0x7d')]('colspan')?_0x310e50['getAttribute'](_0x50f1('0x5f'))-0x1:0x0;_0x3d5add=_0x3d968c<_0x3d5add?_0x3d968c:_0x3d5add,_0x514da7=_0x3d968c+_0x323337>_0x514da7?_0x3d968c+_0x323337:_0x514da7,_0x24612d=_0x3dd4bb<_0x24612d?_0x3dd4bb:_0x24612d,_0x583318=_0x3dd4bb+_0x21de0f>_0x583318?_0x3dd4bb+_0x21de0f:_0x583318;}return{'minRow':_0x3d5add,'maxRow':_0x514da7,'minColumn':_0x24612d,'maxColumn':_0x583318};}[_0x50f1('0x45')](){const _0x5f2836=this[_0x50f1('0x17')],_0x5c740d=_0x5f2836[_0x50f1('0x56')][_0x50f1('0x4')](_0x50f1('0x34')),_0x55735a=_0x5f2836[_0x50f1('0x56')][_0x50f1('0x4')](_0x50f1('0x72'));_0x5f2836[_0x50f1('0x1b')][_0x50f1('0x6d')]['on'](_0x50f1('0x48'),()=>{const _0x6bf866=Array['from'](_0x5f2836[_0x50f1('0x1b')][_0x50f1('0x6d')][_0x50f1('0x80')][_0x50f1('0x67')]());for(const {name:_0x5ca4d8,data:_0x57e91b}of _0x6bf866){const {group:_0x301cdf,id:_0x4f931e,subType:_0x407842}=_0x5c740d['_splitMarkerName'](_0x5ca4d8);if('suggestion'!=_0x301cdf)continue;if(null!=_0x57e91b[_0x50f1('0x63')])continue;const _0x1600ed=_0x5c740d[_0x50f1('0x77')](_0x4f931e);this[_0x50f1('0x7a')][_0x50f1('0x84')](_0x407842)&&this[_0x50f1('0x70')][_0x50f1('0x23')](_0x1600ed);}},{'priority':_0x50f1('0x18')});const _0x2f2696=(_0xbec238,_0x1f8dda)=>{let _0x12e8d1=!0x1;const _0x284da7=_0x1f8dda[_0x50f1('0x3b')](_0xbec238),_0xa35d5a=_0xbec238[_0x50f1('0x6b')](_0x50f1('0x82')),_0x41336c=_0x55735a[_0x50f1('0x12')](_0xbec238);for(const _0x4c3568 of this['_tableSuggestions']){const _0x4a451e=_0x4c3568[_0x50f1('0x3c')],_0x84e944=_0x4a451e[_0x50f1('0xe')](_0x50f1('0x27')),_0x4a6abf=_0x4a451e[_0x50f1('0x25')](_0x84e944?0xa:0x5),_0xc1e5e3=_0x4a6abf[_0x50f1('0x55')](),_0x159247=_0xc1e5e3[_0x50f1('0x25')](0x0,0x3)+_0x50f1('0x11'),_0x12d1fd=_0x50f1('0x6e')+_0x4a6abf,_0x5c29f2=_0x50f1('0x87')+_0x4a6abf;if(!_0x4c3568[_0x50f1('0x50')])continue;if(_0xa35d5a!=_0x4c3568[_0x50f1('0x7c')]()[_0x50f1('0x52')][_0x50f1('0x6b')](_0x50f1('0x82')))continue;if(_0x4c3568['isIntersectingWithRange'](_0x284da7))continue;const _0x13e187=_0xbec238['hasAttribute'](_0x159247)?_0xbec238[_0x50f1('0x2e')](_0x159247)-0x1:0x0,_0x3c4a22=this[_0x50f1('0x5d')](_0x4c3568),_0x34f04e=_0x3c4a22[_0x12d1fd],_0x33e7ce=_0x3c4a22[_0x5c29f2];_0x34f04e<=_0x41336c[_0xc1e5e3]&&_0x41336c[_0xc1e5e3]+_0x13e187<=_0x33e7ce&&(_0x4c3568[_0x50f1('0x38')](_0x284da7),_0x12e8d1=!0x0);}return _0x12e8d1;};_0x5f2836[_0x50f1('0x1b')][_0x50f1('0x6d')]['registerPostFixer'](_0x167652=>{let _0xbb9692=!0x1;for(const _0x3b186e of _0x5f2836[_0x50f1('0x1b')][_0x50f1('0x6d')][_0x50f1('0x80')][_0x50f1('0x13')]())if(_0x50f1('0x59')==_0x3b186e[_0x50f1('0x7')]){if(_0x50f1('0x43')==_0x3b186e['name'])for(const _0x10fcf4 of _0x3b186e[_0x50f1('0x5b')][_0x50f1('0x5')][_0x50f1('0x7f')]())_0xbb9692=_0xbb9692||_0x2f2696(_0x10fcf4,_0x167652);else _0x50f1('0x3f')==_0x3b186e[_0x50f1('0x22')]&&(_0xbb9692=_0xbb9692||_0x2f2696(_0x3b186e['position']['nodeAfter'],_0x167652));}return _0xbb9692;});}[_0x50f1('0x5d')](_0x2c9122){return this['_getCoordsForCells'](_0x2c9122[_0x50f1('0x7b')]()[_0x50f1('0xc')](_0x4b7c80=>_0x4b7c80[_0x50f1('0x52')][_0x50f1('0x5')]));}}function se(_0x166a11){return Array[_0x50f1('0x4f')](new Set(_0x166a11)[_0x50f1('0x30')]());}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4814=['TableCaptionEditing','toggleTableCaption','get','editor','enableCommand','TrackChangesEditing','afterInit','plugins','has','requires'];(function(_0x46341b,_0x48142a){const _0x395dbe=function(_0x94cb0c){while(--_0x94cb0c){_0x46341b['push'](_0x46341b['shift']());}};_0x395dbe(++_0x48142a);}(_0x4814,0x18b));const _0x395d=function(_0x46341b,_0x48142a){_0x46341b=_0x46341b-0x0;let _0x395dbe=_0x4814[_0x46341b];return _0x395dbe;};import{Plugin as _0x4a7b5a}from'ckeditor5/src/core';import _0x4ce69c from'./table';export default class vt extends _0x4a7b5a{static get[_0x395d('0x4')](){return[_0x4ce69c];}[_0x395d('0x1')](){const _0x90f122=this[_0x395d('0x8')];if(!_0x90f122['plugins'][_0x395d('0x3')](_0x395d('0x5')))return;_0x90f122[_0x395d('0x2')][_0x395d('0x7')](_0x395d('0x0'))[_0x395d('0x9')](_0x395d('0x6'));}}
|